diff --git a/eslint.config.mjs b/eslint.config.mjs index 0450f09b..ae445742 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,11 +1,19 @@ -import jest from 'eslint-plugin-jest' -import typescriptEslint from '@typescript-eslint/eslint-plugin' -import globals from 'globals' -import tsParser from '@typescript-eslint/parser' import path from 'node:path' import { fileURLToPath } from 'node:url' -import js from '@eslint/js' + +import { fixupConfigRules, fixupPluginRules } from '@eslint/compat' import { FlatCompat } from '@eslint/eslintrc' +import js from '@eslint/js' +import typescriptEslint from '@typescript-eslint/eslint-plugin' +import tsParser from '@typescript-eslint/parser' +import filenames from 'eslint-plugin-filenames' +import github from 'eslint-plugin-github' +import _import from 'eslint-plugin-import' +import noAsyncForeach from 'eslint-plugin-no-async-foreach' +import globals from 'globals' + +const pluginHeader = require('eslint-plugin-header') +pluginHeader.rules.header.meta.schema = false const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) @@ -16,78 +24,120 @@ const compat = new FlatCompat({ }) export default [ - ...compat.extends('plugin:github/recommended'), { - files: ['src/**/*.ts'], - + ignores: ['eslint.config.mjs', '.github/**/*'] + }, + ...fixupConfigRules( + compat.extends( + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:github/recommended', + 'plugin:github/typescript', + 'plugin:import/typescript' + ) + ), + { plugins: { - jest, - '@typescript-eslint': typescriptEslint + '@typescript-eslint': fixupPluginRules(typescriptEslint), + filenames: fixupPluginRules(filenames), + github: fixupPluginRules(github), + import: fixupPluginRules(_import), + 'no-async-foreach': noAsyncForeach }, languageOptions: { - globals: { - ...globals.node, - ...jest.environments.globals.globals - }, - parser: tsParser, - ecmaVersion: 9, + ecmaVersion: 5, sourceType: 'module', + globals: { + ...globals.node + }, + parserOptions: { project: './tsconfig.json' } }, + settings: { + 'import/resolver': { + node: { + moduleDirectory: ['node_modules', 'src'] + }, + + typescript: {} + }, + 'import/ignore': ['sinon', 'uuid', '@octokit/plugin-retry'] + }, + rules: { - 'eslint-comments/no-use': 'off', - 'import/no-namespace': 'off', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', + 'filenames/match-regex': ['error', '^[a-z0-9-]+(\\.test)?$'], + 'i18n-text/no-en': 'off', + + 'import/extensions': [ + 'error', + { + json: {} + } + ], - '@typescript-eslint/explicit-member-accessibility': [ + 'import/no-amd': 'error', + 'import/no-commonjs': 'error', + 'import/no-cycle': 'error', + 'import/no-dynamic-require': 'error', + + 'import/no-extraneous-dependencies': [ 'error', { - accessibility: 'no-public' + devDependencies: true } ], - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/await-thenable': 'error', - camelcase: 'off', + 'import/no-namespace': 'off', + 'import/no-unresolved': 'error', + 'import/no-webpack-loader-syntax': 'error', + + 'import/order': [ + 'error', + { + alphabetize: { + order: 'asc' + }, + + 'newlines-between': 'always' + } + ], - '@typescript-eslint/explicit-function-return-type': [ + 'max-len': [ 'error', { - allowExpressions: true + code: 120, + ignoreUrls: true, + ignoreStrings: true, + ignoreTemplateLiterals: true } ], - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-empty-interface': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-assertion': 'warn', - '@typescript-eslint/no-unnecessary-qualifier': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-var-requires': 'error', - '@typescript-eslint/prefer-for-of': 'warn', - '@typescript-eslint/prefer-function-type': 'warn', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - '@typescript-eslint/promise-function-async': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - semi: 'off', - '@typescript-eslint/unbound-method': 'error' + 'no-async-foreach/no-async-foreach': 'error', + 'no-sequences': 'error', + 'no-shadow': 'off', + '@typescript-eslint/no-shadow': 'error', + 'one-var': ['error', 'never'] + } + }, + { + files: ['**/*.ts', '**/*.js'], + + rules: { + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', + '@typescript-eslint/no-unsafe-member-access': 'off', + '@typescript-eslint/no-var-requires': 'off', + '@typescript-eslint/prefer-regexp-exec': 'off', + '@typescript-eslint/require-await': 'off', + '@typescript-eslint/restrict-template-expressions': 'off', + 'func-style': 'off' } } ] diff --git a/node_modules/@eslint-community/regexpp/index.d.ts b/node_modules/@eslint-community/regexpp/index.d.ts index 2c54145d..c75657aa 100644 --- a/node_modules/@eslint-community/regexpp/index.d.ts +++ b/node_modules/@eslint-community/regexpp/index.d.ts @@ -51,6 +51,7 @@ declare module "@eslint-community/regexpp/ast" { | ExpressionCharacterClass | Group | LookaroundAssertion + | Modifiers | Pattern | Quantifier | RegExpLiteral @@ -63,7 +64,8 @@ declare module "@eslint-community/regexpp/ast" { | BoundaryAssertion | Character | CharacterSet - | Flags; + | Flags + | ModifierFlags; /** * The type which includes all atom nodes. */ @@ -147,6 +149,7 @@ declare module "@eslint-community/regexpp/ast" { export interface Group extends NodeBase { type: "Group"; parent: Alternative | Quantifier; + modifiers: Modifiers | null; alternatives: Alternative[]; } /** @@ -447,6 +450,34 @@ declare module "@eslint-community/regexpp/ast" { ambiguous: false; resolved: CapturingGroup; } + /** + * The modifiers. + */ + export interface Modifiers extends NodeBase { + type: "Modifiers"; + parent: Group; + /** + * The add modifier flags. + */ + add: ModifierFlags; + /** + * The remove modifier flags. + * + * `null` means no remove modifier flags. e.g. `(?ims:x)` + * The reason for `null` is that there is no position where the remove modifier flags appears. Must be behind the minus mark. + */ + remove: ModifierFlags | null; + } + /** + * The modifier flags. + */ + export interface ModifierFlags extends NodeBase { + type: "ModifierFlags"; + parent: Modifiers; + dotAll: boolean; + ignoreCase: boolean; + multiline: boolean; + } /** * The flags. */ @@ -490,7 +521,7 @@ declare module "@eslint-community/regexpp/parser" { * - `2022` added `d` flag. * - `2023` added more valid Unicode Property Escapes. * - `2024` added `v` flag. - * - `2025` added duplicate named capturing groups. + * - `2025` added duplicate named capturing groups, modifiers. */ ecmaVersion?: EcmaVersion; } @@ -579,7 +610,7 @@ declare module "@eslint-community/regexpp/validator" { * - `2022` added `d` flag. * - `2023` added more valid Unicode Property Escapes. * - `2024` added `v` flag. - * - `2025` added duplicate named capturing groups. + * - `2025` added duplicate named capturing groups, modifiers. */ ecmaVersion?: EcmaVersion; /** @@ -691,6 +722,53 @@ declare module "@eslint-community/regexpp/validator" { * @param end The next 0-based index of the last character. */ onGroupLeave?: (start: number, end: number) => void; + /** + * A function that is called when the validator entered a modifiers. + * @param start The 0-based index of the first character. + */ + onModifiersEnter?: (start: number) => void; + /** + * A function that is called when the validator left a modifiers. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + */ + onModifiersLeave?: (start: number, end: number) => void; + /** + * A function that is called when the validator found an add modifiers. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + * @param flags flags. + * @param flags.ignoreCase `i` flag. + * @param flags.multiline `m` flag. + * @param flags.dotAll `s` flag. + */ + onAddModifiers?: ( + start: number, + end: number, + flags: { + ignoreCase: boolean; + multiline: boolean; + dotAll: boolean; + } + ) => void; + /** + * A function that is called when the validator found a remove modifiers. + * @param start The 0-based index of the first character. + * @param end The next 0-based index of the last character. + * @param flags flags. + * @param flags.ignoreCase `i` flag. + * @param flags.multiline `m` flag. + * @param flags.dotAll `s` flag. + */ + onRemoveModifiers?: ( + start: number, + end: number, + flags: { + ignoreCase: boolean; + multiline: boolean; + dotAll: boolean; + } + ) => void; /** * A function that is called when the validator entered a capturing group. * @param start The 0-based index of the first character. @@ -977,6 +1055,8 @@ declare module "@eslint-community/regexpp/visitor" { ExpressionCharacterClass, Flags, Group, + ModifierFlags, + Modifiers, Node, Pattern, Quantifier, @@ -1032,6 +1112,10 @@ declare module "@eslint-community/regexpp/visitor" { onFlagsLeave?: (node: Flags) => void; onGroupEnter?: (node: Group) => void; onGroupLeave?: (node: Group) => void; + onModifierFlagsEnter?: (node: ModifierFlags) => void; + onModifierFlagsLeave?: (node: ModifierFlags) => void; + onModifiersEnter?: (node: Modifiers) => void; + onModifiersLeave?: (node: Modifiers) => void; onPatternEnter?: (node: Pattern) => void; onPatternLeave?: (node: Pattern) => void; onQuantifierEnter?: (node: Quantifier) => void; diff --git a/node_modules/@eslint-community/regexpp/index.js b/node_modules/@eslint-community/regexpp/index.js index dce2a035..ac5d686e 100644 --- a/node_modules/@eslint-community/regexpp/index.js +++ b/node_modules/@eslint-community/regexpp/index.js @@ -552,6 +552,17 @@ const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ GRAVE_ACCENT, TILDE, ]); +const FLAG_PROP_TO_CODEPOINT = { + global: LATIN_SMALL_LETTER_G, + ignoreCase: LATIN_SMALL_LETTER_I, + multiline: LATIN_SMALL_LETTER_M, + unicode: LATIN_SMALL_LETTER_U, + sticky: LATIN_SMALL_LETTER_Y, + dotAll: LATIN_SMALL_LETTER_S, + hasIndices: LATIN_SMALL_LETTER_D, + unicodeSets: LATIN_SMALL_LETTER_V, +}; +const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k])); function isSyntaxCharacter(cp) { return SYNTAX_CHARACTER.has(cp); } @@ -579,6 +590,11 @@ function isUnicodePropertyNameCharacter(cp) { function isUnicodePropertyValueCharacter(cp) { return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp); } +function isRegularExpressionModifier(ch) { + return (ch === LATIN_SMALL_LETTER_I || + ch === LATIN_SMALL_LETTER_M || + ch === LATIN_SMALL_LETTER_S); +} class RegExpValidator { constructor(options) { this._reader = new Reader(); @@ -649,64 +665,8 @@ class RegExpValidator { } } validateFlagsInternal(source, start, end) { - const existingFlags = new Set(); - let global = false; - let ignoreCase = false; - let multiline = false; - let sticky = false; - let unicode = false; - let dotAll = false; - let hasIndices = false; - let unicodeSets = false; - for (let i = start; i < end; ++i) { - const flag = source.charCodeAt(i); - if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`, { index: start }); - } - existingFlags.add(flag); - if (flag === LATIN_SMALL_LETTER_G) { - global = true; - } - else if (flag === LATIN_SMALL_LETTER_I) { - ignoreCase = true; - } - else if (flag === LATIN_SMALL_LETTER_M) { - multiline = true; - } - else if (flag === LATIN_SMALL_LETTER_U && - this.ecmaVersion >= 2015) { - unicode = true; - } - else if (flag === LATIN_SMALL_LETTER_Y && - this.ecmaVersion >= 2015) { - sticky = true; - } - else if (flag === LATIN_SMALL_LETTER_S && - this.ecmaVersion >= 2018) { - dotAll = true; - } - else if (flag === LATIN_SMALL_LETTER_D && - this.ecmaVersion >= 2022) { - hasIndices = true; - } - else if (flag === LATIN_SMALL_LETTER_V && - this.ecmaVersion >= 2024) { - unicodeSets = true; - } - else { - this.raise(`Invalid flag '${source[i]}'`, { index: start }); - } - } - this.onRegExpFlags(start, end, { - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }); + const flags = this.parseFlags(source, start, end); + this.onRegExpFlags(start, end, flags); } _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { let unicode = false; @@ -801,6 +761,26 @@ class RegExpValidator { this._options.onGroupLeave(start, end); } } + onModifiersEnter(start) { + if (this._options.onModifiersEnter) { + this._options.onModifiersEnter(start); + } + } + onModifiersLeave(start, end) { + if (this._options.onModifiersLeave) { + this._options.onModifiersLeave(start, end); + } + } + onAddModifiers(start, end, flags) { + if (this._options.onAddModifiers) { + this._options.onAddModifiers(start, end, flags); + } + } + onRemoveModifiers(start, end, flags) { + if (this._options.onRemoveModifiers) { + this._options.onRemoveModifiers(start, end, flags); + } + } onCapturingGroupEnter(start, name) { if (this._options.onCapturingGroupEnter) { this._options.onCapturingGroupEnter(start, name); @@ -1173,8 +1153,8 @@ class RegExpValidator { this.consumeDot() || this.consumeReverseSolidusAtomEscape() || Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup()); + this.consumeCapturingGroup() || + this.consumeUncapturingGroup()); } consumeDot() { if (this.eat(FULL_STOP)) { @@ -1195,8 +1175,15 @@ class RegExpValidator { } consumeUncapturingGroup() { const start = this.index; - if (this.eat3(LEFT_PARENTHESIS, QUESTION_MARK, COLON)) { + if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) { this.onGroupEnter(start); + if (this.ecmaVersion >= 2025) { + this.consumeModifiers(); + } + if (!this.eat(COLON)) { + this.rewind(start + 1); + this.raise("Invalid group"); + } this.consumeDisjunction(); if (!this.eat(RIGHT_PARENTHESIS)) { this.raise("Unterminated group"); @@ -1206,6 +1193,35 @@ class RegExpValidator { } return false; } + consumeModifiers() { + const start = this.index; + const hasAddModifiers = this.eatModifiers(); + const addModifiersEnd = this.index; + const hasHyphen = this.eat(HYPHEN_MINUS); + if (!hasAddModifiers && !hasHyphen) { + return false; + } + this.onModifiersEnter(start); + const addModifiers = this.parseModifiers(start, addModifiersEnd); + this.onAddModifiers(start, addModifiersEnd, addModifiers); + if (hasHyphen) { + const modifiersStart = this.index; + if (!this.eatModifiers() && + !hasAddModifiers && + this.currentCodePoint === COLON) { + this.raise("Invalid empty flags"); + } + const modifiers = this.parseModifiers(modifiersStart, this.index); + for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) { + if (addModifiers[flagName]) { + this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`); + } + } + this.onRemoveModifiers(modifiersStart, this.index, modifiers); + } + this.onModifiersLeave(start, this.index); + return true; + } consumeCapturingGroup() { const start = this.index; if (this.eat(LEFT_PARENTHESIS)) { @@ -1214,9 +1230,14 @@ class RegExpValidator { if (this.consumeGroupSpecifier()) { name = this._lastStrValue; } + else if (this.currentCodePoint === QUESTION_MARK) { + this.rewind(start); + return false; + } } else if (this.currentCodePoint === QUESTION_MARK) { - this.raise("Invalid group"); + this.rewind(start); + return false; } this.onCapturingGroupEnter(start, name); this.consumeDisjunction(); @@ -1233,8 +1254,8 @@ class RegExpValidator { this.consumeReverseSolidusAtomEscape() || this.consumeReverseSolidusFollowedByC() || Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || this.consumeCapturingGroup() || + this.consumeUncapturingGroup() || this.consumeInvalidBracedQuantifier() || this.consumeExtendedPatternCharacter()); } @@ -1287,6 +1308,7 @@ class RegExpValidator { return false; } consumeGroupSpecifier() { + const start = this.index; if (this.eat(QUESTION_MARK)) { if (this.eatGroupName()) { if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) { @@ -1295,7 +1317,7 @@ class RegExpValidator { } this.raise("Duplicate capture group name"); } - this.raise("Invalid group"); + this.rewind(start); } return false; } @@ -2043,6 +2065,63 @@ class RegExpValidator { } return true; } + eatModifiers() { + let ate = false; + while (isRegularExpressionModifier(this.currentCodePoint)) { + this.advance(); + ate = true; + } + return ate; + } + parseModifiers(start, end) { + const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end); + return { ignoreCase, multiline, dotAll }; + } + parseFlags(source, start, end) { + const flags = { + global: false, + ignoreCase: false, + multiline: false, + unicode: false, + sticky: false, + dotAll: false, + hasIndices: false, + unicodeSets: false, + }; + const validFlags = new Set(); + validFlags.add(LATIN_SMALL_LETTER_G); + validFlags.add(LATIN_SMALL_LETTER_I); + validFlags.add(LATIN_SMALL_LETTER_M); + if (this.ecmaVersion >= 2015) { + validFlags.add(LATIN_SMALL_LETTER_U); + validFlags.add(LATIN_SMALL_LETTER_Y); + if (this.ecmaVersion >= 2018) { + validFlags.add(LATIN_SMALL_LETTER_S); + if (this.ecmaVersion >= 2022) { + validFlags.add(LATIN_SMALL_LETTER_D); + if (this.ecmaVersion >= 2024) { + validFlags.add(LATIN_SMALL_LETTER_V); + } + } + } + } + for (let i = start; i < end; ++i) { + const flag = source.charCodeAt(i); + if (validFlags.has(flag)) { + const prop = FLAG_CODEPOINT_TO_PROP[flag]; + if (flags[prop]) { + this.raise(`Duplicated flag '${source[i]}'`, { + index: start, + }); + } + flags[prop] = true; + } + else { + this.raise(`Invalid flag '${source[i]}'`, { index: start }); + } + } + return flags; + } } const DUMMY_PATTERN = {}; @@ -2162,14 +2241,16 @@ class RegExpParserState { if (parent.type !== "Alternative") { throw new Error("UnknownError"); } - this._node = { + const group = { type: "Group", parent, start, end: start, raw: "", + modifiers: null, alternatives: [], }; + this._node = group; parent.elements.push(this._node); } onGroupLeave(start, end) { @@ -2181,6 +2262,63 @@ class RegExpParserState { node.raw = this.source.slice(start, end); this._node = node.parent; } + onModifiersEnter(start) { + const parent = this._node; + if (parent.type !== "Group") { + throw new Error("UnknownError"); + } + this._node = { + type: "Modifiers", + parent, + start, + end: start, + raw: "", + add: null, + remove: null, + }; + parent.modifiers = this._node; + } + onModifiersLeave(start, end) { + const node = this._node; + if (node.type !== "Modifiers" || node.parent.type !== "Group") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } + onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) { + const parent = this._node; + if (parent.type !== "Modifiers") { + throw new Error("UnknownError"); + } + parent.add = { + type: "ModifierFlags", + parent, + start, + end, + raw: this.source.slice(start, end), + ignoreCase, + multiline, + dotAll, + }; + } + onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) { + const parent = this._node; + if (parent.type !== "Modifiers") { + throw new Error("UnknownError"); + } + parent.remove = { + type: "ModifierFlags", + parent, + start, + end, + raw: this.source.slice(start, end), + ignoreCase, + multiline, + dotAll, + }; + } onCapturingGroupEnter(start, name) { const parent = this._node; if (parent.type !== "Alternative") { @@ -2666,6 +2804,12 @@ class RegExpVisitor { case "Group": this.visitGroup(node); break; + case "Modifiers": + this.visitModifiers(node); + break; + case "ModifierFlags": + this.visitModifierFlags(node); + break; case "Pattern": this.visitPattern(node); break; @@ -2804,11 +2948,36 @@ class RegExpVisitor { if (this._handlers.onGroupEnter) { this._handlers.onGroupEnter(node); } + if (node.modifiers) { + this.visit(node.modifiers); + } node.alternatives.forEach(this.visit, this); if (this._handlers.onGroupLeave) { this._handlers.onGroupLeave(node); } } + visitModifiers(node) { + if (this._handlers.onModifiersEnter) { + this._handlers.onModifiersEnter(node); + } + if (node.add) { + this.visit(node.add); + } + if (node.remove) { + this.visit(node.remove); + } + if (this._handlers.onModifiersLeave) { + this._handlers.onModifiersLeave(node); + } + } + visitModifierFlags(node) { + if (this._handlers.onModifierFlagsEnter) { + this._handlers.onModifierFlagsEnter(node); + } + if (this._handlers.onModifierFlagsLeave) { + this._handlers.onModifierFlagsLeave(node); + } + } visitPattern(node) { if (this._handlers.onPatternEnter) { this._handlers.onPatternEnter(node); diff --git a/node_modules/@eslint-community/regexpp/index.js.map b/node_modules/@eslint-community/regexpp/index.js.map index b966d4a6..a13b289a 100644 --- a/node_modules/@eslint-community/regexpp/index.js.map +++ b/node_modules/@eslint-community/regexpp/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA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C,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACvC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;ACjRe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"index.js.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,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vB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint-community/regexpp/index.mjs b/node_modules/@eslint-community/regexpp/index.mjs index ebd5503b..7652c62b 100644 --- a/node_modules/@eslint-community/regexpp/index.mjs +++ b/node_modules/@eslint-community/regexpp/index.mjs @@ -548,6 +548,17 @@ const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ GRAVE_ACCENT, TILDE, ]); +const FLAG_PROP_TO_CODEPOINT = { + global: LATIN_SMALL_LETTER_G, + ignoreCase: LATIN_SMALL_LETTER_I, + multiline: LATIN_SMALL_LETTER_M, + unicode: LATIN_SMALL_LETTER_U, + sticky: LATIN_SMALL_LETTER_Y, + dotAll: LATIN_SMALL_LETTER_S, + hasIndices: LATIN_SMALL_LETTER_D, + unicodeSets: LATIN_SMALL_LETTER_V, +}; +const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k])); function isSyntaxCharacter(cp) { return SYNTAX_CHARACTER.has(cp); } @@ -575,6 +586,11 @@ function isUnicodePropertyNameCharacter(cp) { function isUnicodePropertyValueCharacter(cp) { return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp); } +function isRegularExpressionModifier(ch) { + return (ch === LATIN_SMALL_LETTER_I || + ch === LATIN_SMALL_LETTER_M || + ch === LATIN_SMALL_LETTER_S); +} class RegExpValidator { constructor(options) { this._reader = new Reader(); @@ -645,64 +661,8 @@ class RegExpValidator { } } validateFlagsInternal(source, start, end) { - const existingFlags = new Set(); - let global = false; - let ignoreCase = false; - let multiline = false; - let sticky = false; - let unicode = false; - let dotAll = false; - let hasIndices = false; - let unicodeSets = false; - for (let i = start; i < end; ++i) { - const flag = source.charCodeAt(i); - if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`, { index: start }); - } - existingFlags.add(flag); - if (flag === LATIN_SMALL_LETTER_G) { - global = true; - } - else if (flag === LATIN_SMALL_LETTER_I) { - ignoreCase = true; - } - else if (flag === LATIN_SMALL_LETTER_M) { - multiline = true; - } - else if (flag === LATIN_SMALL_LETTER_U && - this.ecmaVersion >= 2015) { - unicode = true; - } - else if (flag === LATIN_SMALL_LETTER_Y && - this.ecmaVersion >= 2015) { - sticky = true; - } - else if (flag === LATIN_SMALL_LETTER_S && - this.ecmaVersion >= 2018) { - dotAll = true; - } - else if (flag === LATIN_SMALL_LETTER_D && - this.ecmaVersion >= 2022) { - hasIndices = true; - } - else if (flag === LATIN_SMALL_LETTER_V && - this.ecmaVersion >= 2024) { - unicodeSets = true; - } - else { - this.raise(`Invalid flag '${source[i]}'`, { index: start }); - } - } - this.onRegExpFlags(start, end, { - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }); + const flags = this.parseFlags(source, start, end); + this.onRegExpFlags(start, end, flags); } _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { let unicode = false; @@ -797,6 +757,26 @@ class RegExpValidator { this._options.onGroupLeave(start, end); } } + onModifiersEnter(start) { + if (this._options.onModifiersEnter) { + this._options.onModifiersEnter(start); + } + } + onModifiersLeave(start, end) { + if (this._options.onModifiersLeave) { + this._options.onModifiersLeave(start, end); + } + } + onAddModifiers(start, end, flags) { + if (this._options.onAddModifiers) { + this._options.onAddModifiers(start, end, flags); + } + } + onRemoveModifiers(start, end, flags) { + if (this._options.onRemoveModifiers) { + this._options.onRemoveModifiers(start, end, flags); + } + } onCapturingGroupEnter(start, name) { if (this._options.onCapturingGroupEnter) { this._options.onCapturingGroupEnter(start, name); @@ -1169,8 +1149,8 @@ class RegExpValidator { this.consumeDot() || this.consumeReverseSolidusAtomEscape() || Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup()); + this.consumeCapturingGroup() || + this.consumeUncapturingGroup()); } consumeDot() { if (this.eat(FULL_STOP)) { @@ -1191,8 +1171,15 @@ class RegExpValidator { } consumeUncapturingGroup() { const start = this.index; - if (this.eat3(LEFT_PARENTHESIS, QUESTION_MARK, COLON)) { + if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) { this.onGroupEnter(start); + if (this.ecmaVersion >= 2025) { + this.consumeModifiers(); + } + if (!this.eat(COLON)) { + this.rewind(start + 1); + this.raise("Invalid group"); + } this.consumeDisjunction(); if (!this.eat(RIGHT_PARENTHESIS)) { this.raise("Unterminated group"); @@ -1202,6 +1189,35 @@ class RegExpValidator { } return false; } + consumeModifiers() { + const start = this.index; + const hasAddModifiers = this.eatModifiers(); + const addModifiersEnd = this.index; + const hasHyphen = this.eat(HYPHEN_MINUS); + if (!hasAddModifiers && !hasHyphen) { + return false; + } + this.onModifiersEnter(start); + const addModifiers = this.parseModifiers(start, addModifiersEnd); + this.onAddModifiers(start, addModifiersEnd, addModifiers); + if (hasHyphen) { + const modifiersStart = this.index; + if (!this.eatModifiers() && + !hasAddModifiers && + this.currentCodePoint === COLON) { + this.raise("Invalid empty flags"); + } + const modifiers = this.parseModifiers(modifiersStart, this.index); + for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) { + if (addModifiers[flagName]) { + this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`); + } + } + this.onRemoveModifiers(modifiersStart, this.index, modifiers); + } + this.onModifiersLeave(start, this.index); + return true; + } consumeCapturingGroup() { const start = this.index; if (this.eat(LEFT_PARENTHESIS)) { @@ -1210,9 +1226,14 @@ class RegExpValidator { if (this.consumeGroupSpecifier()) { name = this._lastStrValue; } + else if (this.currentCodePoint === QUESTION_MARK) { + this.rewind(start); + return false; + } } else if (this.currentCodePoint === QUESTION_MARK) { - this.raise("Invalid group"); + this.rewind(start); + return false; } this.onCapturingGroupEnter(start, name); this.consumeDisjunction(); @@ -1229,8 +1250,8 @@ class RegExpValidator { this.consumeReverseSolidusAtomEscape() || this.consumeReverseSolidusFollowedByC() || Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || this.consumeCapturingGroup() || + this.consumeUncapturingGroup() || this.consumeInvalidBracedQuantifier() || this.consumeExtendedPatternCharacter()); } @@ -1283,6 +1304,7 @@ class RegExpValidator { return false; } consumeGroupSpecifier() { + const start = this.index; if (this.eat(QUESTION_MARK)) { if (this.eatGroupName()) { if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) { @@ -1291,7 +1313,7 @@ class RegExpValidator { } this.raise("Duplicate capture group name"); } - this.raise("Invalid group"); + this.rewind(start); } return false; } @@ -2039,6 +2061,63 @@ class RegExpValidator { } return true; } + eatModifiers() { + let ate = false; + while (isRegularExpressionModifier(this.currentCodePoint)) { + this.advance(); + ate = true; + } + return ate; + } + parseModifiers(start, end) { + const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end); + return { ignoreCase, multiline, dotAll }; + } + parseFlags(source, start, end) { + const flags = { + global: false, + ignoreCase: false, + multiline: false, + unicode: false, + sticky: false, + dotAll: false, + hasIndices: false, + unicodeSets: false, + }; + const validFlags = new Set(); + validFlags.add(LATIN_SMALL_LETTER_G); + validFlags.add(LATIN_SMALL_LETTER_I); + validFlags.add(LATIN_SMALL_LETTER_M); + if (this.ecmaVersion >= 2015) { + validFlags.add(LATIN_SMALL_LETTER_U); + validFlags.add(LATIN_SMALL_LETTER_Y); + if (this.ecmaVersion >= 2018) { + validFlags.add(LATIN_SMALL_LETTER_S); + if (this.ecmaVersion >= 2022) { + validFlags.add(LATIN_SMALL_LETTER_D); + if (this.ecmaVersion >= 2024) { + validFlags.add(LATIN_SMALL_LETTER_V); + } + } + } + } + for (let i = start; i < end; ++i) { + const flag = source.charCodeAt(i); + if (validFlags.has(flag)) { + const prop = FLAG_CODEPOINT_TO_PROP[flag]; + if (flags[prop]) { + this.raise(`Duplicated flag '${source[i]}'`, { + index: start, + }); + } + flags[prop] = true; + } + else { + this.raise(`Invalid flag '${source[i]}'`, { index: start }); + } + } + return flags; + } } const DUMMY_PATTERN = {}; @@ -2158,14 +2237,16 @@ class RegExpParserState { if (parent.type !== "Alternative") { throw new Error("UnknownError"); } - this._node = { + const group = { type: "Group", parent, start, end: start, raw: "", + modifiers: null, alternatives: [], }; + this._node = group; parent.elements.push(this._node); } onGroupLeave(start, end) { @@ -2177,6 +2258,63 @@ class RegExpParserState { node.raw = this.source.slice(start, end); this._node = node.parent; } + onModifiersEnter(start) { + const parent = this._node; + if (parent.type !== "Group") { + throw new Error("UnknownError"); + } + this._node = { + type: "Modifiers", + parent, + start, + end: start, + raw: "", + add: null, + remove: null, + }; + parent.modifiers = this._node; + } + onModifiersLeave(start, end) { + const node = this._node; + if (node.type !== "Modifiers" || node.parent.type !== "Group") { + throw new Error("UnknownError"); + } + node.end = end; + node.raw = this.source.slice(start, end); + this._node = node.parent; + } + onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) { + const parent = this._node; + if (parent.type !== "Modifiers") { + throw new Error("UnknownError"); + } + parent.add = { + type: "ModifierFlags", + parent, + start, + end, + raw: this.source.slice(start, end), + ignoreCase, + multiline, + dotAll, + }; + } + onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) { + const parent = this._node; + if (parent.type !== "Modifiers") { + throw new Error("UnknownError"); + } + parent.remove = { + type: "ModifierFlags", + parent, + start, + end, + raw: this.source.slice(start, end), + ignoreCase, + multiline, + dotAll, + }; + } onCapturingGroupEnter(start, name) { const parent = this._node; if (parent.type !== "Alternative") { @@ -2662,6 +2800,12 @@ class RegExpVisitor { case "Group": this.visitGroup(node); break; + case "Modifiers": + this.visitModifiers(node); + break; + case "ModifierFlags": + this.visitModifierFlags(node); + break; case "Pattern": this.visitPattern(node); break; @@ -2800,11 +2944,36 @@ class RegExpVisitor { if (this._handlers.onGroupEnter) { this._handlers.onGroupEnter(node); } + if (node.modifiers) { + this.visit(node.modifiers); + } node.alternatives.forEach(this.visit, this); if (this._handlers.onGroupLeave) { this._handlers.onGroupLeave(node); } } + visitModifiers(node) { + if (this._handlers.onModifiersEnter) { + this._handlers.onModifiersEnter(node); + } + if (node.add) { + this.visit(node.add); + } + if (node.remove) { + this.visit(node.remove); + } + if (this._handlers.onModifiersLeave) { + this._handlers.onModifiersLeave(node); + } + } + visitModifierFlags(node) { + if (this._handlers.onModifierFlagsEnter) { + this._handlers.onModifierFlagsEnter(node); + } + if (this._handlers.onModifierFlagsLeave) { + this._handlers.onModifierFlagsLeave(node); + } + } visitPattern(node) { if (this._handlers.onPatternEnter) { this._handlers.onPatternEnter(node); diff --git a/node_modules/@eslint-community/regexpp/index.mjs.map b/node_modules/@eslint-community/regexpp/index.mjs.map index cc9c80ff..0d1c5f78 100644 --- a/node_modules/@eslint-community/regexpp/index.mjs.map +++ b/node_modules/@eslint-community/regexpp/index.mjs.map @@ -1 +1 @@ -{"version":3,"file":"index.mjs.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,S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,SAAA;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACvC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;ACjRe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;"} \ No newline at end of file +{"version":3,"file":"index.mjs.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,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B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint-community/regexpp/package.json b/node_modules/@eslint-community/regexpp/package.json index 5f973c6a..39cbfde7 100644 --- a/node_modules/@eslint-community/regexpp/package.json +++ b/node_modules/@eslint-community/regexpp/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-community/regexpp", - "version": "4.11.2", + "version": "4.12.1", "description": "Regular expression parser for ECMAScript.", "keywords": [ "regexp", diff --git a/node_modules/@humanwhocodes/config-array/LICENSE b/node_modules/@eslint/compat/LICENSE similarity index 100% rename from node_modules/@humanwhocodes/config-array/LICENSE rename to node_modules/@eslint/compat/LICENSE diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/README.md b/node_modules/@eslint/compat/README.md similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/README.md rename to node_modules/@eslint/compat/README.md diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/cjs/index.cjs b/node_modules/@eslint/compat/dist/cjs/index.cjs similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/cjs/index.cjs rename to node_modules/@eslint/compat/dist/cjs/index.cjs diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/cjs/index.d.cts b/node_modules/@eslint/compat/dist/cjs/index.d.cts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/cjs/index.d.cts rename to node_modules/@eslint/compat/dist/cjs/index.d.cts diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/esm/index.d.ts b/node_modules/@eslint/compat/dist/esm/index.d.ts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/esm/index.d.ts rename to node_modules/@eslint/compat/dist/esm/index.d.ts diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/esm/index.js b/node_modules/@eslint/compat/dist/esm/index.js similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/dist/esm/index.js rename to node_modules/@eslint/compat/dist/esm/index.js diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/package.json b/node_modules/@eslint/compat/package.json similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/package.json rename to node_modules/@eslint/compat/package.json diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/compat/LICENSE b/node_modules/@eslint/config-array/LICENSE similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/compat/LICENSE rename to node_modules/@eslint/config-array/LICENSE diff --git a/node_modules/@eslint/config-array/README.md b/node_modules/@eslint/config-array/README.md new file mode 100644 index 00000000..9d343aae --- /dev/null +++ b/node_modules/@eslint/config-array/README.md @@ -0,0 +1,358 @@ +# Config Array + +## Description + +A config array is a way of managing configurations that are based on glob pattern matching of filenames. Each config array contains the information needed to determine the correct configuration for any file based on the filename. + +**Note:** This is a generic package that can be used outside of ESLint. It contains no ESLint-specific functionality. + +## Installation + +For Node.js and compatible runtimes: + +```shell +npm install @eslint/config-array +# or +yarn add @eslint/config-array +# or +pnpm install @eslint/config-array +# or +bun install @eslint/config-array +``` + +For Deno: + +```shell +deno add @eslint/config-array +``` + +## Background + +The basic idea is that all configuration, including overrides, can be represented by a single array where each item in the array is a config object. Config objects appearing later in the array override config objects appearing earlier in the array. You can calculate a config for a given file by traversing all config objects in the array to find the ones that match the filename. Matching is done by specifying glob patterns in `files` and `ignores` properties on each config object. Here's an example: + +```js +export default [ + // match all JSON files + { + name: "JSON Handler", + files: ["**/*.json"], + handler: jsonHandler, + }, + + // match only package.json + { + name: "package.json Handler", + files: ["package.json"], + handler: packageJsonHandler, + }, +]; +``` + +In this example, there are two config objects: the first matches all JSON files in all directories and the second matches just `package.json` in the base path directory (all the globs are evaluated as relative to a base path that can be specified). When you retrieve a configuration for `foo.json`, only the first config object matches so `handler` is equal to `jsonHandler`; when you retrieve a configuration for `package.json`, `handler` is equal to `packageJsonHandler` (because both config objects match, the second one wins). + +## Usage + +First, import the `ConfigArray` constructor: + +```js +import { ConfigArray } from "@eslint/config-array"; + +// or using CommonJS + +const { ConfigArray } = require("@eslint/config-array"); +``` + +When you create a new instance of `ConfigArray`, you must pass in two arguments: an array of configs and an options object. The array of configs is most likely read in from a configuration file, so here's a typical example: + +```js +const configFilename = path.resolve(process.cwd(), "my.config.js"); +const { default: rawConfigs } = await import(configFilename); +const configs = new ConfigArray(rawConfigs, { + // the path to match filenames from + basePath: process.cwd(), + + // additional items in each config + schema: mySchema, +}); +``` + +This example reads in an object or array from `my.config.js` and passes it into the `ConfigArray` constructor as the first argument. The second argument is an object specifying the `basePath` (the directory in which `my.config.js` is found) and a `schema` to define the additional properties of a config object beyond `files`, `ignores`, and `name`. + +### Specifying a Schema + +The `schema` option is required for you to use additional properties in config objects. The schema is an object that follows the format of an [`ObjectSchema`](https://npmjs.com/package/@eslint/object-schema). The schema specifies both validation and merge rules that the `ConfigArray` instance needs to combine configs when there are multiple matches. Here's an example: + +```js +const configFilename = path.resolve(process.cwd(), "my.config.js"); +const { default: rawConfigs } = await import(configFilename); + +const mySchema = { + + // define the handler key in configs + handler: { + required: true, + merge(a, b) { + if (!b) return a; + if (!a) return b; + }, + validate(value) { + if (typeof value !== "function") { + throw new TypeError("Function expected."); + } + } + } +}; + +const configs = new ConfigArray(rawConfigs, { + + // the path to match filenames from + basePath: process.cwd(), + + // additional item schemas in each config + schema: mySchema, + + // additional config types supported (default: []) + extraConfigTypes: ["array", "function"]; +}); +``` + +### Config Arrays + +Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as: + +```js +export default [ + // JS config + { + files: ["**/*.js"], + handler: jsHandler, + }, + + // JSON configs + [ + // match all JSON files + { + name: "JSON Handler", + files: ["**/*.json"], + handler: jsonHandler, + }, + + // match only package.json + { + name: "package.json Handler", + files: ["package.json"], + handler: packageJsonHandler, + }, + ], + + // filename must match function + { + files: [filePath => filePath.endsWith(".md")], + handler: markdownHandler, + }, + + // filename must match all patterns in subarray + { + files: [["*.test.*", "*.js"]], + handler: jsTestHandler, + }, + + // filename must not match patterns beginning with ! + { + name: "Non-JS files", + files: ["!*.js"], + settings: { + js: false, + }, + }, +]; +``` + +In this example, the array contains both config objects and a config array. When a config array is normalized (see details below), it is flattened so only config objects remain. However, the order of evaluation remains the same. + +If the `files` array contains a function, then that function is called with the path of the file as it was passed in. The function is expected to return `true` if there is a match and `false` if not. (The `ignores` array can also contain functions.) + +If the `files` array contains an item that is an array of strings and functions, then all patterns must match in order for the config to match. In the preceding examples, both `*.test.*` and `*.js` must match in order for the config object to be used. + +If a pattern in the files array begins with `!` then it excludes that pattern. In the preceding example, any filename that doesn't end with `.js` will automatically get a `settings.js` property set to `false`. + +You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without any other keys, then those ignores will always be applied; otherwise those ignores act as exclusions. Here's an example: + +```js +export default [ + + // Always ignored + { + ignores: ["**/.git/**", "**/node_modules/**"] + }, + + // .eslintrc.js file is ignored only when .js file matches + { + files: ["**/*.js"], + ignores: [".eslintrc.js"] + handler: jsHandler + } +]; +``` + +You can use negated patterns in `ignores` to exclude a file that was already ignored, such as: + +```js +export default [ + // Ignore all JSON files except tsconfig.json + { + files: ["**/*"], + ignores: ["**/*.json", "!tsconfig.json"], + }, +]; +``` + +### Config Functions + +Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example: + +```js +export default [ + // JS config + { + files: ["**/*.js"], + handler: jsHandler, + }, + + // JSON configs + function (context) { + return [ + // match all JSON files + { + name: context.name + " JSON Handler", + files: ["**/*.json"], + handler: jsonHandler, + }, + + // match only package.json + { + name: context.name + " package.json Handler", + files: ["package.json"], + handler: packageJsonHandler, + }, + ]; + }, +]; +``` + +When a config array is normalized, each function is executed and replaced in the config array with the return value. + +**Note:** Config functions can also be async. + +### Normalizing Config Arrays + +Once a config array has been created and loaded with all of the raw config data, it must be normalized before it can be used. The normalization process goes through and flattens the config array as well as executing all config functions to get their final values. + +To normalize a config array, call the `normalize()` method and pass in a context object: + +```js +await configs.normalize({ + name: "MyApp", +}); +``` + +The `normalize()` method returns a promise, so be sure to use the `await` operator. The config array instance is normalized in-place, so you don't need to create a new variable. + +If you want to disallow async config functions, you can call `normalizeSync()` instead. This method is completely synchronous and does not require using the `await` operator as it does not return a promise: + +```js +await configs.normalizeSync({ + name: "MyApp", +}); +``` + +**Important:** Once a `ConfigArray` is normalized, it cannot be changed further. You can, however, create a new `ConfigArray` and pass in the normalized instance to create an unnormalized copy. + +### Getting Config for a File + +To get the config for a file, use the `getConfig()` method on a normalized config array and pass in the filename to get a config for: + +```js +// pass in filename +const fileConfig = configs.getConfig( + path.resolve(process.cwd(), "package.json"), +); +``` + +The config array always returns an object, even if there are no configs matching the given filename. You can then inspect the returned config object to determine how to proceed. + +A few things to keep in mind: + +- If a filename is not an absolute path, it will be resolved relative to the base path directory. +- The returned config object never has `files`, `ignores`, or `name` properties; the only properties on the object will be the other configuration options specified. +- The config array caches configs, so subsequent calls to `getConfig()` with the same filename will return in a fast lookup rather than another calculation. +- A config will only be generated if the filename matches an entry in a `files` key. A config will not be generated without matching a `files` key (configs without a `files` key are only applied when another config with a `files` key is applied; configs without `files` are never applied on their own). Any config with a `files` key entry that is `*` or ends with `/**` or `/*` will only be applied if another entry in the same `files` key matches or another config matches. + +## Determining Ignored Paths + +You can determine if a file is ignored by using the `isFileIgnored()` method and passing in the path of any file, as in this example: + +```js +const ignored = configs.isFileIgnored("/foo/bar/baz.txt"); +``` + +A file is considered ignored if any of the following is true: + +- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/a.js` is considered ignored. +- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/baz/a.js` is considered ignored. +- **It matches an ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. +- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. +- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. + +For directories, use the `isDirectoryIgnored()` method and pass in the path of any directory, as in this example: + +```js +const ignored = configs.isDirectoryIgnored("/foo/bar/"); +``` + +A directory is considered ignored if any of the following is true: + +- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/baz` is considered ignored. +- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/bar/baz/a.js` is considered ignored. +- **It matches and ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. +- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. +- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. + +**Important:** A pattern such as `foo/**` means that `foo` and `foo/` are _not_ ignored whereas `foo/bar` is ignored. If you want to ignore `foo` and all of its subdirectories, use the pattern `foo` or `foo/` in `ignores`. + +## Caching Mechanisms + +Each `ConfigArray` aggressively caches configuration objects to avoid unnecessary work. This caching occurs in two ways: + +1. **File-based Caching.** For each filename that is passed into a method, the resulting config is cached against that filename so you're always guaranteed to get the same object returned from `getConfig()` whenever you pass the same filename in. +2. **Index-based Caching.** Whenever a config is calculated, the config elements that were used to create the config are also cached. So if a given filename matches elements 1, 5, and 7, the resulting config is cached with a key of `1,5,7`. That way, if another file is passed that matches the same config elements, the result is already known and doesn't have to be recalculated. That means two files that match all the same elements will return the same config from `getConfig()`. + +## Acknowledgements + +The design of this project was influenced by feedback on the ESLint RFC, and incorporates ideas from: + +- Teddy Katz (@not-an-aardvark) +- Toru Nagashima (@mysticatea) +- Kai Cataldo (@kaicataldo) + +## License + +Apache 2.0 + + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/@eslint/config-array/dist/cjs/index.cjs b/node_modules/@eslint/config-array/dist/cjs/index.cjs new file mode 100644 index 00000000..cc033c31 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/cjs/index.cjs @@ -0,0 +1,1304 @@ +'use strict'; + +var posixPath = require('./std__path/posix.cjs'); +var windowsPath = require('./std__path/windows.cjs'); +var minimatch = require('minimatch'); +var createDebug = require('debug'); +var objectSchema = require('@eslint/object-schema'); + +function _interopNamespaceDefault(e) { + var n = Object.create(null); + if (e) { + Object.keys(e).forEach(function (k) { + if (k !== 'default') { + var d = Object.getOwnPropertyDescriptor(e, k); + Object.defineProperty(n, k, d.get ? d : { + enumerable: true, + get: function () { return e[k]; } + }); + } + }); + } + n.default = e; + return Object.freeze(n); +} + +var posixPath__namespace = /*#__PURE__*/_interopNamespaceDefault(posixPath); +var windowsPath__namespace = /*#__PURE__*/_interopNamespaceDefault(windowsPath); + +/** + * @fileoverview ConfigSchema + * @author Nicholas C. Zakas + */ + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + +/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ +/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * A strategy that does nothing. + * @type {PropertyDefinition} + */ +const NOOP_STRATEGY = { + required: false, + merge() { + return undefined; + }, + validate() {}, +}; + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * The base schema that every ConfigArray uses. + * @type {ObjectDefinition} + */ +const baseSchema = Object.freeze({ + name: { + required: false, + merge() { + return undefined; + }, + validate(value) { + if (typeof value !== "string") { + throw new TypeError("Property must be a string."); + } + }, + }, + files: NOOP_STRATEGY, + ignores: NOOP_STRATEGY, +}); + +/** + * @fileoverview ConfigSchema + * @author Nicholas C. Zakas + */ + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * Asserts that a given value is an array. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array. + */ +function assertIsArray(value) { + if (!Array.isArray(value)) { + throw new TypeError("Expected value to be an array."); + } +} + +/** + * Asserts that a given value is an array containing only strings and functions. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array of strings and functions. + */ +function assertIsArrayOfStringsAndFunctions(value) { + assertIsArray(value); + + if ( + value.some( + item => typeof item !== "string" && typeof item !== "function", + ) + ) { + throw new TypeError( + "Expected array to only contain strings and functions.", + ); + } +} + +/** + * Asserts that a given value is a non-empty array. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array or an empty array. + */ +function assertIsNonEmptyArray(value) { + if (!Array.isArray(value) || value.length === 0) { + throw new TypeError("Expected value to be a non-empty array."); + } +} + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * The schema for `files` and `ignores` that every ConfigArray uses. + * @type {ObjectDefinition} + */ +const filesAndIgnoresSchema = Object.freeze({ + files: { + required: false, + merge() { + return undefined; + }, + validate(value) { + // first check if it's an array + assertIsNonEmptyArray(value); + + // then check each member + value.forEach(item => { + if (Array.isArray(item)) { + assertIsArrayOfStringsAndFunctions(item); + } else if ( + typeof item !== "string" && + typeof item !== "function" + ) { + throw new TypeError( + "Items must be a string, a function, or an array of strings and functions.", + ); + } + }); + }, + }, + ignores: { + required: false, + merge() { + return undefined; + }, + validate: assertIsArrayOfStringsAndFunctions, + }, +}); + +/** + * @fileoverview ConfigArray + * @author Nicholas C. Zakas + */ + + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + +/** @typedef {import("./types.ts").ConfigObject} ConfigObject */ +/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ +/** @typedef {import("minimatch").IMinimatch} IMinimatch */ +/** @typedef {import("@jsr/std__path")} PathImpl */ + +/* + * This is a bit of a hack to make TypeScript happy with the Rollup-created + * CommonJS file. Rollup doesn't do object destructuring for imported files + * and instead imports the default via `require()`. This messes up type checking + * for `ObjectSchema`. To work around that, we just import the type manually + * and give it a different name to use in the JSDoc comments. + */ +/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +const Minimatch = minimatch.Minimatch; +const debug = createDebug("@eslint/config-array"); + +/** + * A cache for minimatch instances. + * @type {Map} + */ +const minimatchCache = new Map(); + +/** + * A cache for negated minimatch instances. + * @type {Map} + */ +const negatedMinimatchCache = new Map(); + +/** + * Options to use with minimatch. + * @type {Object} + */ +const MINIMATCH_OPTIONS = { + // matchBase: true, + dot: true, + allowWindowsEscape: true, +}; + +/** + * The types of config objects that are supported. + * @type {Set} + */ +const CONFIG_TYPES = new Set(["array", "function"]); + +/** + * Fields that are considered metadata and not part of the config object. + * @type {Set} + */ +const META_FIELDS = new Set(["name"]); + +/** + * A schema containing just files and ignores for early validation. + * @type {ObjectSchemaInstance} + */ +const FILES_AND_IGNORES_SCHEMA = new objectSchema.ObjectSchema(filesAndIgnoresSchema); + +// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`. + +const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" }); +const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" }); +const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({ + status: "unconfigured", +}); + +// Match two leading dots followed by a slash or the end of input. +const EXTERNAL_PATH_REGEX = /^\.\.(?:\/|$)/u; + +/** + * Wrapper error for config validation errors that adds a name to the front of the + * error message. + */ +class ConfigError extends Error { + /** + * Creates a new instance. + * @param {string} name The config object name causing the error. + * @param {number} index The index of the config object in the array. + * @param {Object} options The options for the error. + * @param {Error} [options.cause] The error that caused this error. + * @param {string} [options.message] The message to use for the error. + */ + constructor(name, index, { cause, message }) { + const finalMessage = message || cause.message; + + super(`Config ${name}: ${finalMessage}`, { cause }); + + // copy over custom properties that aren't represented + if (cause) { + for (const key of Object.keys(cause)) { + if (!(key in this)) { + this[key] = cause[key]; + } + } + } + + /** + * The name of the error. + * @type {string} + * @readonly + */ + this.name = "ConfigError"; + + /** + * The index of the config object in the array. + * @type {number} + * @readonly + */ + this.index = index; + } +} + +/** + * Gets the name of a config object. + * @param {ConfigObject} config The config object to get the name of. + * @returns {string} The name of the config object. + */ +function getConfigName(config) { + if (config && typeof config.name === "string" && config.name) { + return `"${config.name}"`; + } + + return "(unnamed)"; +} + +/** + * Rethrows a config error with additional information about the config object. + * @param {object} config The config object to get the name of. + * @param {number} index The index of the config object in the array. + * @param {Error} error The error to rethrow. + * @throws {ConfigError} When the error is rethrown for a config. + */ +function rethrowConfigError(config, index, error) { + const configName = getConfigName(config); + throw new ConfigError(configName, index, { cause: error }); +} + +/** + * Shorthand for checking if a value is a string. + * @param {any} value The value to check. + * @returns {boolean} True if a string, false if not. + */ +function isString(value) { + return typeof value === "string"; +} + +/** + * Creates a function that asserts that the config is valid + * during normalization. This checks that the config is not nullish + * and that files and ignores keys of a config object are valid as per base schema. + * @param {Object} config The config object to check. + * @param {number} index The index of the config object in the array. + * @returns {void} + * @throws {ConfigError} If the files and ignores keys of a config object are not valid. + */ +function assertValidBaseConfig(config, index) { + if (config === null) { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected null config.", + }); + } + + if (config === undefined) { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected undefined config.", + }); + } + + if (typeof config !== "object") { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected non-object config.", + }); + } + + const validateConfig = {}; + + if ("files" in config) { + validateConfig.files = config.files; + } + + if ("ignores" in config) { + validateConfig.ignores = config.ignores; + } + + try { + FILES_AND_IGNORES_SCHEMA.validate(validateConfig); + } catch (validationError) { + rethrowConfigError(config, index, validationError); + } +} + +/** + * Wrapper around minimatch that caches minimatch patterns for + * faster matching speed over multiple file path evaluations. + * @param {string} filepath The file path to match. + * @param {string} pattern The glob pattern to match against. + * @param {object} options The minimatch options to use. + * @returns + */ +function doMatch(filepath, pattern, options = {}) { + let cache = minimatchCache; + + if (options.flipNegate) { + cache = negatedMinimatchCache; + } + + let matcher = cache.get(pattern); + + if (!matcher) { + matcher = new Minimatch( + pattern, + Object.assign({}, MINIMATCH_OPTIONS, options), + ); + cache.set(pattern, matcher); + } + + return matcher.match(filepath); +} + +/** + * Normalizes a `ConfigArray` by flattening it and executing any functions + * that are found inside. + * @param {Array} items The items in a `ConfigArray`. + * @param {Object} context The context object to pass into any function + * found. + * @param {Array} extraConfigTypes The config types to check. + * @returns {Promise} A flattened array containing only config objects. + * @throws {TypeError} When a config function returns a function. + */ +async function normalize(items, context, extraConfigTypes) { + const allowFunctions = extraConfigTypes.includes("function"); + const allowArrays = extraConfigTypes.includes("array"); + + async function* flatTraverse(array) { + for (let item of array) { + if (typeof item === "function") { + if (!allowFunctions) { + throw new TypeError("Unexpected function."); + } + + item = item(context); + if (item.then) { + item = await item; + } + } + + if (Array.isArray(item)) { + if (!allowArrays) { + throw new TypeError("Unexpected array."); + } + yield* flatTraverse(item); + } else if (typeof item === "function") { + throw new TypeError( + "A config function can only return an object or array.", + ); + } else { + yield item; + } + } + } + + /* + * Async iterables cannot be used with the spread operator, so we need to manually + * create the array to return. + */ + const asyncIterable = await flatTraverse(items); + const configs = []; + + for await (const config of asyncIterable) { + configs.push(config); + } + + return configs; +} + +/** + * Normalizes a `ConfigArray` by flattening it and executing any functions + * that are found inside. + * @param {Array} items The items in a `ConfigArray`. + * @param {Object} context The context object to pass into any function + * found. + * @param {Array} extraConfigTypes The config types to check. + * @returns {Array} A flattened array containing only config objects. + * @throws {TypeError} When a config function returns a function. + */ +function normalizeSync(items, context, extraConfigTypes) { + const allowFunctions = extraConfigTypes.includes("function"); + const allowArrays = extraConfigTypes.includes("array"); + + function* flatTraverse(array) { + for (let item of array) { + if (typeof item === "function") { + if (!allowFunctions) { + throw new TypeError("Unexpected function."); + } + + item = item(context); + if (item.then) { + throw new TypeError( + "Async config functions are not supported.", + ); + } + } + + if (Array.isArray(item)) { + if (!allowArrays) { + throw new TypeError("Unexpected array."); + } + + yield* flatTraverse(item); + } else if (typeof item === "function") { + throw new TypeError( + "A config function can only return an object or array.", + ); + } else { + yield item; + } + } + } + + return [...flatTraverse(items)]; +} + +/** + * Determines if a given file path should be ignored based on the given + * matcher. + * @param {Array boolean)>} ignores The ignore patterns to check. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @returns {boolean} True if the path should be ignored and false if not. + */ +function shouldIgnorePath(ignores, filePath, relativeFilePath) { + return ignores.reduce((ignored, matcher) => { + if (!ignored) { + if (typeof matcher === "function") { + return matcher(filePath); + } + + // don't check negated patterns because we're not ignored yet + if (!matcher.startsWith("!")) { + return doMatch(relativeFilePath, matcher); + } + + // otherwise we're still not ignored + return false; + } + + // only need to check negated patterns because we're ignored + if (typeof matcher === "string" && matcher.startsWith("!")) { + return !doMatch(relativeFilePath, matcher, { + flipNegate: true, + }); + } + + return ignored; + }, false); +} + +/** + * Determines if a given file path is matched by a config based on + * `ignores` only. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @param {Object} config The config object to check. + * @returns {boolean} True if the file path is matched by the config, + * false if not. + */ +function pathMatchesIgnores(filePath, relativeFilePath, config) { + return ( + Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && + !shouldIgnorePath(config.ignores, filePath, relativeFilePath) + ); +} + +/** + * Determines if a given file path is matched by a config. If the config + * has no `files` field, then it matches; otherwise, if a `files` field + * is present then we match the globs in `files` and exclude any globs in + * `ignores`. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @param {Object} config The config object to check. + * @returns {boolean} True if the file path is matched by the config, + * false if not. + */ +function pathMatches(filePath, relativeFilePath, config) { + // match both strings and functions + function match(pattern) { + if (isString(pattern)) { + return doMatch(relativeFilePath, pattern); + } + + if (typeof pattern === "function") { + return pattern(filePath); + } + + throw new TypeError(`Unexpected matcher type ${pattern}.`); + } + + // check for all matches to config.files + let filePathMatchesPattern = config.files.some(pattern => { + if (Array.isArray(pattern)) { + return pattern.every(match); + } + + return match(pattern); + }); + + /* + * If the file path matches the config.files patterns, then check to see + * if there are any files to ignore. + */ + if (filePathMatchesPattern && config.ignores) { + filePathMatchesPattern = !shouldIgnorePath( + config.ignores, + filePath, + relativeFilePath, + ); + } + + return filePathMatchesPattern; +} + +/** + * Ensures that a ConfigArray has been normalized. + * @param {ConfigArray} configArray The ConfigArray to check. + * @returns {void} + * @throws {Error} When the `ConfigArray` is not normalized. + */ +function assertNormalized(configArray) { + // TODO: Throw more verbose error + if (!configArray.isNormalized()) { + throw new Error( + "ConfigArray must be normalized to perform this operation.", + ); + } +} + +/** + * Ensures that config types are valid. + * @param {Array} extraConfigTypes The config types to check. + * @returns {void} + * @throws {Error} When the config types array is invalid. + */ +function assertExtraConfigTypes(extraConfigTypes) { + if (extraConfigTypes.length > 2) { + throw new TypeError( + "configTypes must be an array with at most two items.", + ); + } + + for (const configType of extraConfigTypes) { + if (!CONFIG_TYPES.has(configType)) { + throw new TypeError( + `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`, + ); + } + } +} + +/** + * Returns path-handling implementations for Unix or Windows, depending on a given absolute path. + * @param {string} fileOrDirPath The absolute path to check. + * @returns {PathImpl} Path-handling implementations for the specified path. + * @throws An error is thrown if the specified argument is not an absolute path. + */ +function getPathImpl(fileOrDirPath) { + // Posix absolute paths always start with a slash. + if (fileOrDirPath.startsWith("/")) { + return posixPath__namespace; + } + + // Windows absolute paths start with a letter followed by a colon and at least one backslash, + // or with two backslashes in the case of UNC paths. + // Forward slashed are automatically normalized to backslashes. + if (/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(fileOrDirPath)) { + return windowsPath__namespace; + } + + throw new Error( + `Expected an absolute path but received "${fileOrDirPath}"`, + ); +} + +/** + * Converts a given path to a relative path with all separator characters replaced by forward slashes (`"/"`). + * @param {string} fileOrDirPath The unprocessed path to convert. + * @param {string} namespacedBasePath The namespaced base path of the directory to which the calculated path shall be relative. + * @param {PathImpl} path Path-handling implementations. + * @returns {string} A relative path with all separator characters replaced by forward slashes. + */ +function toRelativePath(fileOrDirPath, namespacedBasePath, path) { + const fullPath = path.resolve(namespacedBasePath, fileOrDirPath); + const namespacedFullPath = path.toNamespacedPath(fullPath); + const relativePath = path.relative(namespacedBasePath, namespacedFullPath); + return relativePath.replaceAll(path.SEPARATOR, "/"); +} + +//------------------------------------------------------------------------------ +// Public Interface +//------------------------------------------------------------------------------ + +const ConfigArraySymbol = { + isNormalized: Symbol("isNormalized"), + configCache: Symbol("configCache"), + schema: Symbol("schema"), + finalizeConfig: Symbol("finalizeConfig"), + preprocessConfig: Symbol("preprocessConfig"), +}; + +// used to store calculate data for faster lookup +const dataCache = new WeakMap(); + +/** + * Represents an array of config objects and provides method for working with + * those config objects. + */ +class ConfigArray extends Array { + /** + * The namespaced path of the config file directory. + * @type {string} + */ + #namespacedBasePath; + + /** + * Path-handling implementations. + * @type {PathImpl} + */ + #path; + + /** + * Creates a new instance of ConfigArray. + * @param {Iterable|Function|Object} configs An iterable yielding config + * objects, or a config function, or a config object. + * @param {Object} options The options for the ConfigArray. + * @param {string} [options.basePath="/"] The absolute path of the config file directory. + * Defaults to `"/"`. + * @param {boolean} [options.normalized=false] Flag indicating if the + * configs have already been normalized. + * @param {Object} [options.schema] The additional schema + * definitions to use for the ConfigArray schema. + * @param {Array} [options.extraConfigTypes] List of config types supported. + */ + constructor( + configs, + { + basePath = "/", + normalized = false, + schema: customSchema, + extraConfigTypes = [], + } = {}, + ) { + super(); + + /** + * Tracks if the array has been normalized. + * @property isNormalized + * @type {boolean} + * @private + */ + this[ConfigArraySymbol.isNormalized] = normalized; + + /** + * The schema used for validating and merging configs. + * @property schema + * @type {ObjectSchemaInstance} + * @private + */ + this[ConfigArraySymbol.schema] = new objectSchema.ObjectSchema( + Object.assign({}, customSchema, baseSchema), + ); + + if (!isString(basePath) || !basePath) { + throw new TypeError("basePath must be a non-empty string"); + } + + /** + * The path of the config file that this array was loaded from. + * This is used to calculate filename matches. + * @property basePath + * @type {string} + */ + this.basePath = basePath; + + assertExtraConfigTypes(extraConfigTypes); + + /** + * The supported config types. + * @type {Array} + */ + this.extraConfigTypes = [...extraConfigTypes]; + Object.freeze(this.extraConfigTypes); + + /** + * A cache to store calculated configs for faster repeat lookup. + * @property configCache + * @type {Map} + * @private + */ + this[ConfigArraySymbol.configCache] = new Map(); + + // init cache + dataCache.set(this, { + explicitMatches: new Map(), + directoryMatches: new Map(), + files: undefined, + ignores: undefined, + }); + + // load the configs into this array + if (Array.isArray(configs)) { + this.push(...configs); + } else { + this.push(configs); + } + + // select path-handling implementations depending on the base path + this.#path = getPathImpl(basePath); + + // On Windows, `path.relative()` returns an absolute path when given two paths on different drives. + // The namespaced base path is useful to make sure that calculated relative paths are always relative. + // On Unix, it is identical to the base path. + this.#namespacedBasePath = this.#path.toNamespacedPath(basePath); + } + + /** + * Prevent normal array methods from creating a new `ConfigArray` instance. + * This is to ensure that methods such as `slice()` won't try to create a + * new instance of `ConfigArray` behind the scenes as doing so may throw + * an error due to the different constructor signature. + * @type {ArrayConstructor} The `Array` constructor. + */ + static get [Symbol.species]() { + return Array; + } + + /** + * Returns the `files` globs from every config object in the array. + * This can be used to determine which files will be matched by a + * config array or to use as a glob pattern when no patterns are provided + * for a command line interface. + * @returns {Array} An array of matchers. + */ + get files() { + assertNormalized(this); + + // if this data has been cached, retrieve it + const cache = dataCache.get(this); + + if (cache.files) { + return cache.files; + } + + // otherwise calculate it + + const result = []; + + for (const config of this) { + if (config.files) { + config.files.forEach(filePattern => { + result.push(filePattern); + }); + } + } + + // store result + cache.files = result; + dataCache.set(this, cache); + + return result; + } + + /** + * Returns ignore matchers that should always be ignored regardless of + * the matching `files` fields in any configs. This is necessary to mimic + * the behavior of things like .gitignore and .eslintignore, allowing a + * globbing operation to be faster. + * @returns {string[]} An array of string patterns and functions to be ignored. + */ + get ignores() { + assertNormalized(this); + + // if this data has been cached, retrieve it + const cache = dataCache.get(this); + + if (cache.ignores) { + return cache.ignores; + } + + // otherwise calculate it + + const result = []; + + for (const config of this) { + /* + * We only count ignores if there are no other keys in the object. + * In this case, it acts list a globally ignored pattern. If there + * are additional keys, then ignores act like exclusions. + */ + if ( + config.ignores && + Object.keys(config).filter(key => !META_FIELDS.has(key)) + .length === 1 + ) { + result.push(...config.ignores); + } + } + + // store result + cache.ignores = result; + dataCache.set(this, cache); + + return result; + } + + /** + * Indicates if the config array has been normalized. + * @returns {boolean} True if the config array is normalized, false if not. + */ + isNormalized() { + return this[ConfigArraySymbol.isNormalized]; + } + + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {Promise} The current ConfigArray instance. + */ + async normalize(context = {}) { + if (!this.isNormalized()) { + const normalizedConfigs = await normalize( + this, + context, + this.extraConfigTypes, + ); + this.length = 0; + this.push( + ...normalizedConfigs.map( + this[ConfigArraySymbol.preprocessConfig].bind(this), + ), + ); + this.forEach(assertValidBaseConfig); + this[ConfigArraySymbol.isNormalized] = true; + + // prevent further changes + Object.freeze(this); + } + + return this; + } + + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {ConfigArray} The current ConfigArray instance. + */ + normalizeSync(context = {}) { + if (!this.isNormalized()) { + const normalizedConfigs = normalizeSync( + this, + context, + this.extraConfigTypes, + ); + this.length = 0; + this.push( + ...normalizedConfigs.map( + this[ConfigArraySymbol.preprocessConfig].bind(this), + ), + ); + this.forEach(assertValidBaseConfig); + this[ConfigArraySymbol.isNormalized] = true; + + // prevent further changes + Object.freeze(this); + } + + return this; + } + + /* eslint-disable class-methods-use-this -- Desired as instance methods */ + + /** + * Finalizes the state of a config before being cached and returned by + * `getConfig()`. Does nothing by default but is provided to be + * overridden by subclasses as necessary. + * @param {Object} config The config to finalize. + * @returns {Object} The finalized config. + */ + [ConfigArraySymbol.finalizeConfig](config) { + return config; + } + + /** + * Preprocesses a config during the normalization process. This is the + * method to override if you want to convert an array item before it is + * validated for the first time. For example, if you want to replace a + * string with an object, this is the method to override. + * @param {Object} config The config to preprocess. + * @returns {Object} The config to use in place of the argument. + */ + [ConfigArraySymbol.preprocessConfig](config) { + return config; + } + + /* eslint-enable class-methods-use-this -- Desired as instance methods */ + + /** + * Returns the config object for a given file path and a status that can be used to determine why a file has no config. + * @param {string} filePath The path of a file to get a config for. + * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} + * An object with an optional property `config` and property `status`. + * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, + * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. + */ + getConfigWithStatus(filePath) { + assertNormalized(this); + + const cache = this[ConfigArraySymbol.configCache]; + + // first check the cache for a filename match to avoid duplicate work + if (cache.has(filePath)) { + return cache.get(filePath); + } + + // check to see if the file is outside the base path + + const relativeFilePath = toRelativePath( + filePath, + this.#namespacedBasePath, + this.#path, + ); + + if (EXTERNAL_PATH_REGEX.test(relativeFilePath)) { + debug(`No config for file ${filePath} outside of base path`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL); + return CONFIG_WITH_STATUS_EXTERNAL; + } + + // next check to see if the file should be ignored + + // check if this should be ignored due to its directory + if (this.isDirectoryIgnored(this.#path.dirname(filePath))) { + debug(`Ignoring ${filePath} based on directory pattern`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); + return CONFIG_WITH_STATUS_IGNORED; + } + + if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { + debug(`Ignoring ${filePath} based on file pattern`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); + return CONFIG_WITH_STATUS_IGNORED; + } + + // filePath isn't automatically ignored, so try to construct config + + const matchingConfigIndices = []; + let matchFound = false; + const universalPattern = /^\*$|\/\*{1,2}$/u; + + this.forEach((config, index) => { + if (!config.files) { + if (!config.ignores) { + debug(`Universal config found for ${filePath}`); + matchingConfigIndices.push(index); + return; + } + + if (pathMatchesIgnores(filePath, relativeFilePath, config)) { + debug( + `Matching config found for ${filePath} (based on ignores: ${config.ignores})`, + ); + matchingConfigIndices.push(index); + return; + } + + debug( + `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`, + ); + return; + } + + /* + * If a config has a files pattern * or patterns ending in /** or /*, + * and the filePath only matches those patterns, then the config is only + * applied if there is another config where the filePath matches + * a file with a specific extensions such as *.js. + */ + + const universalFiles = config.files.filter(pattern => + universalPattern.test(pattern), + ); + + // universal patterns were found so we need to check the config twice + if (universalFiles.length) { + debug("Universal files patterns found. Checking carefully."); + + const nonUniversalFiles = config.files.filter( + pattern => !universalPattern.test(pattern), + ); + + // check that the config matches without the non-universal files first + if ( + nonUniversalFiles.length && + pathMatches(filePath, relativeFilePath, { + files: nonUniversalFiles, + ignores: config.ignores, + }) + ) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + matchFound = true; + return; + } + + // if there wasn't a match then check if it matches with universal files + if ( + universalFiles.length && + pathMatches(filePath, relativeFilePath, { + files: universalFiles, + ignores: config.ignores, + }) + ) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + return; + } + + // if we make here, then there was no match + return; + } + + // the normal case + if (pathMatches(filePath, relativeFilePath, config)) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + matchFound = true; + } + }); + + // if matching both files and ignores, there will be no config to create + if (!matchFound) { + debug(`No matching configs found for ${filePath}`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED); + return CONFIG_WITH_STATUS_UNCONFIGURED; + } + + // check to see if there is a config cached by indices + const indicesKey = matchingConfigIndices.toString(); + let configWithStatus = cache.get(indicesKey); + + if (configWithStatus) { + // also store for filename for faster lookup next time + cache.set(filePath, configWithStatus); + + return configWithStatus; + } + + // otherwise construct the config + + // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error + let finalConfig = matchingConfigIndices.reduce((result, index) => { + try { + return this[ConfigArraySymbol.schema].merge( + result, + this[index], + ); + } catch (validationError) { + rethrowConfigError(this[index], index, validationError); + } + }, {}); + + finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig); + + configWithStatus = Object.freeze({ + config: finalConfig, + status: "matched", + }); + cache.set(filePath, configWithStatus); + cache.set(indicesKey, configWithStatus); + + return configWithStatus; + } + + /** + * Returns the config object for a given file path. + * @param {string} filePath The path of a file to get a config for. + * @returns {Object|undefined} The config object for this file or `undefined`. + */ + getConfig(filePath) { + return this.getConfigWithStatus(filePath).config; + } + + /** + * Determines whether a file has a config or why it doesn't. + * @param {string} filePath The path of the file to check. + * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: + * * `"ignored"`: the file is ignored + * * `"external"`: the file is outside the base path + * * `"unconfigured"`: the file is not matched by any config + * * `"matched"`: the file has a matching config + */ + getConfigStatus(filePath) { + return this.getConfigWithStatus(filePath).status; + } + + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + * @deprecated Use `isFileIgnored` instead. + */ + isIgnored(filePath) { + return this.isFileIgnored(filePath); + } + + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + */ + isFileIgnored(filePath) { + return this.getConfigStatus(filePath) === "ignored"; + } + + /** + * Determines if the given directory is ignored based on the configs. + * This checks only default `ignores` that don't have `files` in the + * same config. A pattern such as `/foo` be considered to ignore the directory + * while a pattern such as `/foo/**` is not considered to ignore the + * directory because it is matching files. + * @param {string} directoryPath The path of a directory to check. + * @returns {boolean} True if the directory is ignored, false if not. Will + * return true for any directory that is not inside of `basePath`. + * @throws {Error} When the `ConfigArray` is not normalized. + */ + isDirectoryIgnored(directoryPath) { + assertNormalized(this); + + const relativeDirectoryPath = toRelativePath( + directoryPath, + this.#namespacedBasePath, + this.#path, + ); + + // basePath directory can never be ignored + if (relativeDirectoryPath === "") { + return false; + } + + if (EXTERNAL_PATH_REGEX.test(relativeDirectoryPath)) { + return true; + } + + // first check the cache + const cache = dataCache.get(this).directoryMatches; + + if (cache.has(relativeDirectoryPath)) { + return cache.get(relativeDirectoryPath); + } + + const directoryParts = relativeDirectoryPath.split("/"); + let relativeDirectoryToCheck = ""; + let result; + + /* + * In order to get the correct gitignore-style ignores, where an + * ignored parent directory cannot have any descendants unignored, + * we need to check every directory starting at the parent all + * the way down to the actual requested directory. + * + * We aggressively cache all of this info to make sure we don't + * have to recalculate everything for every call. + */ + do { + relativeDirectoryToCheck += `${directoryParts.shift()}/`; + + result = shouldIgnorePath( + this.ignores, + this.#path.join(this.basePath, relativeDirectoryToCheck), + relativeDirectoryToCheck, + ); + + cache.set(relativeDirectoryToCheck, result); + } while (!result && directoryParts.length); + + // also cache the result for the requested path + cache.set(relativeDirectoryPath, result); + + return result; + } +} + +Object.defineProperty(exports, "ObjectSchema", { + enumerable: true, + get: function () { return objectSchema.ObjectSchema; } +}); +exports.ConfigArray = ConfigArray; +exports.ConfigArraySymbol = ConfigArraySymbol; diff --git a/node_modules/@eslint/config-array/dist/cjs/index.d.cts b/node_modules/@eslint/config-array/dist/cjs/index.d.cts new file mode 100644 index 00000000..6fb977e0 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/cjs/index.d.cts @@ -0,0 +1,141 @@ +export { ObjectSchema } from "@eslint/object-schema"; +export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition; +export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition; +export type ConfigObject = import("./types.ts").ConfigObject; +export type IMinimatchStatic = import("minimatch").IMinimatchStatic; +export type IMinimatch = import("minimatch").IMinimatch; +export type PathImpl = typeof import("@jsr/std__path"); +export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema; +/** + * Represents an array of config objects and provides method for working with + * those config objects. + */ +export class ConfigArray extends Array { + /** + * Creates a new instance of ConfigArray. + * @param {Iterable|Function|Object} configs An iterable yielding config + * objects, or a config function, or a config object. + * @param {Object} options The options for the ConfigArray. + * @param {string} [options.basePath="/"] The absolute path of the config file directory. + * Defaults to `"/"`. + * @param {boolean} [options.normalized=false] Flag indicating if the + * configs have already been normalized. + * @param {Object} [options.schema] The additional schema + * definitions to use for the ConfigArray schema. + * @param {Array} [options.extraConfigTypes] List of config types supported. + */ + constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: { + basePath?: string; + normalized?: boolean; + schema?: any; + extraConfigTypes?: Array; + }); + /** + * The path of the config file that this array was loaded from. + * This is used to calculate filename matches. + * @property basePath + * @type {string} + */ + basePath: string; + /** + * The supported config types. + * @type {Array} + */ + extraConfigTypes: Array; + /** + * Returns the `files` globs from every config object in the array. + * This can be used to determine which files will be matched by a + * config array or to use as a glob pattern when no patterns are provided + * for a command line interface. + * @returns {Array} An array of matchers. + */ + get files(): (string | Function)[]; + /** + * Returns ignore matchers that should always be ignored regardless of + * the matching `files` fields in any configs. This is necessary to mimic + * the behavior of things like .gitignore and .eslintignore, allowing a + * globbing operation to be faster. + * @returns {string[]} An array of string patterns and functions to be ignored. + */ + get ignores(): string[]; + /** + * Indicates if the config array has been normalized. + * @returns {boolean} True if the config array is normalized, false if not. + */ + isNormalized(): boolean; + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {Promise} The current ConfigArray instance. + */ + normalize(context?: any): Promise; + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {ConfigArray} The current ConfigArray instance. + */ + normalizeSync(context?: any): ConfigArray; + /** + * Returns the config object for a given file path and a status that can be used to determine why a file has no config. + * @param {string} filePath The path of a file to get a config for. + * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} + * An object with an optional property `config` and property `status`. + * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, + * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. + */ + getConfigWithStatus(filePath: string): { + config?: any; + status: "ignored" | "external" | "unconfigured" | "matched"; + }; + /** + * Returns the config object for a given file path. + * @param {string} filePath The path of a file to get a config for. + * @returns {Object|undefined} The config object for this file or `undefined`. + */ + getConfig(filePath: string): any | undefined; + /** + * Determines whether a file has a config or why it doesn't. + * @param {string} filePath The path of the file to check. + * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: + * * `"ignored"`: the file is ignored + * * `"external"`: the file is outside the base path + * * `"unconfigured"`: the file is not matched by any config + * * `"matched"`: the file has a matching config + */ + getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched"; + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + * @deprecated Use `isFileIgnored` instead. + */ + isIgnored(filePath: string): boolean; + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + */ + isFileIgnored(filePath: string): boolean; + /** + * Determines if the given directory is ignored based on the configs. + * This checks only default `ignores` that don't have `files` in the + * same config. A pattern such as `/foo` be considered to ignore the directory + * while a pattern such as `/foo/**` is not considered to ignore the + * directory because it is matching files. + * @param {string} directoryPath The path of a directory to check. + * @returns {boolean} True if the directory is ignored, false if not. Will + * return true for any directory that is not inside of `basePath`. + * @throws {Error} When the `ConfigArray` is not normalized. + */ + isDirectoryIgnored(directoryPath: string): boolean; + #private; +} +export namespace ConfigArraySymbol { + let isNormalized: symbol; + let configCache: symbol; + let schema: symbol; + let finalizeConfig: symbol; + let preprocessConfig: symbol; +} diff --git a/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs b/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs new file mode 100644 index 00000000..036cff9a --- /dev/null +++ b/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs @@ -0,0 +1,1323 @@ +'use strict'; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +function assertPath(path) { + if (typeof path !== "string") { + throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function stripSuffix(name, suffix) { + if (suffix.length >= name.length) { + return name; + } + const lenDiff = name.length - suffix.length; + for(let i = suffix.length - 1; i >= 0; --i){ + if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) { + return name; + } + } + return name.slice(0, -suffix.length); +} +function lastPathSegment(path, isSep, start = 0) { + let matchedNonSeparator = false; + let end = path.length; + for(let i = path.length - 1; i >= start; --i){ + if (isSep(path.charCodeAt(i))) { + if (matchedNonSeparator) { + start = i + 1; + break; + } + } else if (!matchedNonSeparator) { + matchedNonSeparator = true; + end = i + 1; + } + } + return path.slice(start, end); +} +function assertArgs$1(path, suffix) { + assertPath(path); + if (path.length === 0) return path; + if (typeof suffix !== "string") { + throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function stripTrailingSeparators(segment, isSep) { + if (segment.length <= 1) { + return segment; + } + let end = segment.length; + for(let i = segment.length - 1; i > 0; i--){ + if (isSep(segment.charCodeAt(i))) { + end = i; + } else { + break; + } + } + return segment.slice(0, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Alphabet chars. +// Non-alphabetic chars. +const CHAR_DOT = 46; /* . */ +const CHAR_FORWARD_SLASH = 47; /* / */ + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function isPosixPathSeparator(code) { + return code === CHAR_FORWARD_SLASH; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the last portion of a `path`. + * Trailing directory separators are ignored, and optional suffix is removed. + * + * @example Usage + * ```ts + * import { basename } from "@std/path/posix/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("/home/user/Documents/"), "Documents"); + * assertEquals(basename("/home/user/Documents/image.png"), "image.png"); + * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image"); + * ``` + * + * @example Working with URLs + * + * Note: This function doesn't automatically strip hash and query parts from + * URLs. If your URL contains a hash or query, remove them before passing the + * URL to the function. This can be done by passing the URL to `new URL(url)`, + * and setting the `hash` and `search` properties to empty strings. + * + * ```ts + * import { basename } from "@std/path/posix/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts"); + * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod"); + * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b"); + * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `basename` from `@std/path/posix/unstable-basename`. + * + * @param path The path to extract the name from. + * @param suffix The suffix to remove from extracted name. + * @returns The extracted name. + */ function basename(path, suffix = "") { + assertArgs$1(path, suffix); + const lastSegment = lastPathSegment(path, isPosixPathSeparator); + const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator); + return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * The character used to separate entries in the PATH environment variable. + */ const DELIMITER = ":"; +/** + * The character used to separate components of a file path. + */ const SEPARATOR = "/"; +/** + * A regular expression that matches one or more path separators. + */ const SEPARATOR_PATTERN = /\/+/; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$3(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the directory path of a `path`. + * + * @example Usage + * ```ts + * import { dirname } from "@std/path/posix/dirname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(dirname("/home/user/Documents/"), "/home/user"); + * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path"); + * ``` + * + * @example Working with URLs + * + * ```ts + * import { dirname } from "@std/path/posix/dirname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `dirname` from `@std/path/posix/unstable-dirname`. + * + * @param path The path to get the directory from. + * @returns The directory path. + */ function dirname(path) { + assertArg$3(path); + let end = -1; + let matchedNonSeparator = false; + for(let i = path.length - 1; i >= 1; --i){ + if (isPosixPathSeparator(path.charCodeAt(i))) { + if (matchedNonSeparator) { + end = i; + break; + } + } else { + matchedNonSeparator = true; + } + } + // No matches. Fallback based on provided path: + // + // - leading slashes paths + // "/foo" => "/" + // "///foo" => "/" + // - no slash path + // "foo" => "." + if (end === -1) { + return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : "."; + } + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the extension of the `path` with leading period. + * + * @example Usage + * ```ts + * import { extname } from "@std/path/posix/extname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(extname("/home/user/Documents/file.ts"), ".ts"); + * assertEquals(extname("/home/user/Documents/"), ""); + * assertEquals(extname("/home/user/Documents/image.png"), ".png"); + * ``` + * + * @example Working with URLs + * + * Note: This function doesn't automatically strip hash and query parts from + * URLs. If your URL contains a hash or query, remove them before passing the + * URL to the function. This can be done by passing the URL to `new URL(url)`, + * and setting the `hash` and `search` properties to empty strings. + * + * ```ts + * import { extname } from "@std/path/posix/extname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts"); + * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b"); + * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `extname` from `@std/path/posix/unstable-extname`. + * + * @param path The path to get the extension from. + * @returns The extension (ex. for `file.ts` returns `.ts`). + */ function extname(path) { + assertPath(path); + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + for(let i = path.length - 1; i >= 0; --i){ + const code = path.charCodeAt(i); + if (isPosixPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + return ""; + } + return path.slice(startDot, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function _format(sep, pathObject) { + const dir = pathObject.dir || pathObject.root; + const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? ""); + if (!dir) return base; + if (base === sep) return dir; + if (dir === pathObject.root) return dir + base; + return dir + sep + base; +} +function assertArg$2(pathObject) { + if (pathObject === null || typeof pathObject !== "object") { + throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Generate a path from `ParsedPath` object. + * + * @example Usage + * ```ts + * import { format } from "@std/path/posix/format"; + * import { assertEquals } from "@std/assert"; + * + * const path = format({ + * root: "/", + * dir: "/path/dir", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * assertEquals(path, "/path/dir/file.txt"); + * ``` + * + * @param pathObject The path object to format. + * @returns The formatted path. + */ function format(pathObject) { + assertArg$2(pathObject); + return _format("/", pathObject); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$1(url) { + url = url instanceof URL ? url : new URL(url); + if (url.protocol !== "file:") { + throw new TypeError(`URL must be a file URL: received "${url.protocol}"`); + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a file URL to a path string. + * + * @example Usage + * ```ts + * import { fromFileUrl } from "@std/path/posix/from-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo"); + * ``` + * + * @param url The file URL to convert. + * @returns The path string. + */ function fromFileUrl(url) { + url = assertArg$1(url); + return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25")); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Verifies whether provided path is absolute. + * + * @example Usage + * ```ts + * import { isAbsolute } from "@std/path/posix/is-absolute"; + * import { assert, assertFalse } from "@std/assert"; + * + * assert(isAbsolute("/home/user/Documents/")); + * assertFalse(isAbsolute("home/user/Documents/")); + * ``` + * + * @param path The path to verify. + * @returns Whether the path is absolute. + */ function isAbsolute(path) { + assertPath(path); + return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0)); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Resolves . and .. elements in a path with directory names +function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { + let res = ""; + let lastSegmentLength = 0; + let lastSlash = -1; + let dots = 0; + let code; + for(let i = 0; i <= path.length; ++i){ + if (i < path.length) code = path.charCodeAt(i); + else if (isPathSeparator(code)) break; + else code = CHAR_FORWARD_SLASH; + if (isPathSeparator(code)) { + if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) { + if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { + if (res.length > 2) { + const lastSlashIndex = res.lastIndexOf(separator); + if (lastSlashIndex === -1) { + res = ""; + lastSegmentLength = 0; + } else { + res = res.slice(0, lastSlashIndex); + lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); + } + lastSlash = i; + dots = 0; + continue; + } else if (res.length === 2 || res.length === 1) { + res = ""; + lastSegmentLength = 0; + lastSlash = i; + dots = 0; + continue; + } + } + if (allowAboveRoot) { + if (res.length > 0) res += `${separator}..`; + else res = ".."; + lastSegmentLength = 2; + } + } else { + if (res.length > 0) res += separator + path.slice(lastSlash + 1, i); + else res = path.slice(lastSlash + 1, i); + lastSegmentLength = i - lastSlash - 1; + } + lastSlash = i; + dots = 0; + } else if (code === CHAR_DOT && dots !== -1) { + ++dots; + } else { + dots = -1; + } + } + return res; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Normalize the `path`, resolving `'..'` and `'.'` segments. + * Note that resolving these segments does not necessarily mean that all will be eliminated. + * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`. + * + * @example Usage + * ```ts + * import { normalize } from "@std/path/posix/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const path = normalize("/foo/bar//baz/asdf/quux/.."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @example Working with URLs + * + * Note: This function will remove the double slashes from a URL's scheme. + * Hence, do not pass a full URL to this function. Instead, pass the pathname of + * the URL. + * + * ```ts + * import { normalize } from "@std/path/posix/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const url = new URL("https://deno.land"); + * url.pathname = normalize("//std//assert//.//mod.ts"); + * assertEquals(url.href, "https://deno.land/std/assert/mod.ts"); + * + * url.pathname = normalize("std/assert/../async/retry.ts"); + * assertEquals(url.href, "https://deno.land/std/async/retry.ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `normalize` from `@std/path/posix/unstable-normalize`. + * + * @param path The path to normalize. + * @returns The normalized path. + */ function normalize(path) { + assertArg(path); + const isAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1)); + // Normalize the path + path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator); + if (path.length === 0 && !isAbsolute) path = "."; + if (path.length > 0 && trailingSeparator) path += "/"; + if (isAbsolute) return `/${path}`; + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Join all given a sequence of `paths`,then normalizes the resulting path. + * + * @example Usage + * ```ts + * import { join } from "@std/path/posix/join"; + * import { assertEquals } from "@std/assert"; + * + * const path = join("/foo", "bar", "baz/asdf", "quux", ".."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @example Working with URLs + * ```ts + * import { join } from "@std/path/posix/join"; + * import { assertEquals } from "@std/assert"; + * + * const url = new URL("https://deno.land"); + * url.pathname = join("std", "path", "mod.ts"); + * assertEquals(url.href, "https://deno.land/std/path/mod.ts"); + * + * url.pathname = join("//std", "path/", "/mod.ts"); + * assertEquals(url.href, "https://deno.land/std/path/mod.ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `join` from `@std/path/posix/unstable-join`. + * + * @param paths The paths to join. + * @returns The joined path. + */ function join(...paths) { + if (paths.length === 0) return "."; + paths.forEach((path)=>assertPath(path)); + const joined = paths.filter((path)=>path.length > 0).join("/"); + return joined === "" ? "." : normalize(joined); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return a `ParsedPath` object of the `path`. + * + * @example Usage + * ```ts + * import { parse } from "@std/path/posix/parse"; + * import { assertEquals } from "@std/assert"; + * + * const path = parse("/home/user/file.txt"); + * assertEquals(path, { + * root: "/", + * dir: "/home/user", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * ``` + * + * @param path The path to parse. + * @returns The parsed path object. + */ function parse(path) { + assertPath(path); + const ret = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + if (path.length === 0) return ret; + const isAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + let start; + if (isAbsolute) { + ret.root = "/"; + start = 1; + } else { + start = 0; + } + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + let i = path.length - 1; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Get non-dir info + for(; i >= start; --i){ + const code = path.charCodeAt(i); + if (isPosixPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + if (end !== -1) { + if (startPart === 0 && isAbsolute) { + ret.base = ret.name = path.slice(1, end); + } else { + ret.base = ret.name = path.slice(startPart, end); + } + } + // Fallback to '/' in case there is no basename + ret.base = ret.base || "/"; + } else { + if (startPart === 0 && isAbsolute) { + ret.name = path.slice(1, startDot); + ret.base = path.slice(1, end); + } else { + ret.name = path.slice(startPart, startDot); + ret.base = path.slice(startPart, end); + } + ret.ext = path.slice(startDot, end); + } + if (startPart > 0) { + ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator); + } else if (isAbsolute) ret.dir = "/"; + return ret; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path segments into a `path`. + * + * @example Usage + * ```ts + * import { resolve } from "@std/path/posix/resolve"; + * import { assertEquals } from "@std/assert"; + * + * const path = resolve("/foo", "bar", "baz/asdf", "quux", ".."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @param pathSegments The path segments to resolve. + * @returns The resolved path. + */ function resolve(...pathSegments) { + let resolvedPath = ""; + let resolvedAbsolute = false; + for(let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--){ + let path; + if (i >= 0) path = pathSegments[i]; + else { + // deno-lint-ignore no-explicit-any + const { Deno } = globalThis; + if (typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a relative path without a current working directory (CWD)"); + } + path = Deno.cwd(); + } + assertPath(path); + // Skip empty entries + if (path.length === 0) { + continue; + } + resolvedPath = `${path}/${resolvedPath}`; + resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + } + // At this point the path should be resolved to a full absolute path, but + // handle relative paths to be safe (might happen when Deno.cwd() fails) + // Normalize the path + resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator); + if (resolvedAbsolute) { + if (resolvedPath.length > 0) return `/${resolvedPath}`; + else return "/"; + } else if (resolvedPath.length > 0) return resolvedPath; + else return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArgs(from, to) { + assertPath(from); + assertPath(to); + if (from === to) return ""; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the relative path from `from` to `to` based on current working directory. + * + * If `from` and `to` are the same, return an empty string. + * + * @example Usage + * ```ts + * import { relative } from "@std/path/posix/relative"; + * import { assertEquals } from "@std/assert"; + * + * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb"); + * assertEquals(path, "../../impl/bbb"); + * ``` + * + * @param from The path to start from. + * @param to The path to reach. + * @returns The relative path. + */ function relative(from, to) { + assertArgs(from, to); + from = resolve(from); + to = resolve(to); + if (from === to) return ""; + // Trim any leading backslashes + let fromStart = 1; + const fromEnd = from.length; + for(; fromStart < fromEnd; ++fromStart){ + if (!isPosixPathSeparator(from.charCodeAt(fromStart))) break; + } + const fromLen = fromEnd - fromStart; + // Trim any leading backslashes + let toStart = 1; + const toEnd = to.length; + for(; toStart < toEnd; ++toStart){ + if (!isPosixPathSeparator(to.charCodeAt(toStart))) break; + } + const toLen = toEnd - toStart; + // Compare paths to find the longest common path from root + const length = fromLen < toLen ? fromLen : toLen; + let lastCommonSep = -1; + let i = 0; + for(; i <= length; ++i){ + if (i === length) { + if (toLen > length) { + if (isPosixPathSeparator(to.charCodeAt(toStart + i))) { + // We get here if `from` is the exact base path for `to`. + // For example: from='/foo/bar'; to='/foo/bar/baz' + return to.slice(toStart + i + 1); + } else if (i === 0) { + // We get here if `from` is the root + // For example: from='/'; to='/foo' + return to.slice(toStart + i); + } + } else if (fromLen > length) { + if (isPosixPathSeparator(from.charCodeAt(fromStart + i))) { + // We get here if `to` is the exact base path for `from`. + // For example: from='/foo/bar/baz'; to='/foo/bar' + lastCommonSep = i; + } else if (i === 0) { + // We get here if `to` is the root. + // For example: from='/foo'; to='/' + lastCommonSep = 0; + } + } + break; + } + const fromCode = from.charCodeAt(fromStart + i); + const toCode = to.charCodeAt(toStart + i); + if (fromCode !== toCode) break; + else if (isPosixPathSeparator(fromCode)) lastCommonSep = i; + } + let out = ""; + // Generate the relative path based on the path difference between `to` + // and `from` + for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){ + if (i === fromEnd || isPosixPathSeparator(from.charCodeAt(i))) { + if (out.length === 0) out += ".."; + else out += "/.."; + } + } + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts + if (out.length > 0) return out + to.slice(toStart + lastCommonSep); + else { + toStart += lastCommonSep; + if (isPosixPathSeparator(to.charCodeAt(toStart))) ++toStart; + return to.slice(toStart); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const WHITESPACE_ENCODINGS = { + "\u0009": "%09", + "\u000A": "%0A", + "\u000B": "%0B", + "\u000C": "%0C", + "\u000D": "%0D", + "\u0020": "%20" +}; +function encodeWhitespace(string) { + return string.replaceAll(/[\s]/g, (c)=>{ + return WHITESPACE_ENCODINGS[c] ?? c; + }); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path string to a file URL. + * + * @example Usage + * ```ts + * import { toFileUrl } from "@std/path/posix/to-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo")); + * assertEquals(toFileUrl("/home/foo bar"), new URL("file:///home/foo%20bar")); + * ``` + * + * @param path The path to convert. + * @returns The file URL. + */ function toFileUrl(path) { + if (!isAbsolute(path)) { + throw new TypeError(`Path must be absolute: received "${path}"`); + } + const url = new URL("file:///"); + url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C")); + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path to a namespaced path. This function returns the path as is on posix. + * + * @example Usage + * ```ts + * import { toNamespacedPath } from "@std/path/posix/to-namespaced-path"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toNamespacedPath("/home/foo"), "/home/foo"); + * ``` + * + * @param path The path. + * @returns The namespaced path. + */ function toNamespacedPath(path) { + // Non-op on posix systems + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function common$1(paths, sep) { + const [first = "", ...remaining] = paths; + const parts = first.split(sep); + let endOfPrefix = parts.length; + let append = ""; + for (const path of remaining){ + const compare = path.split(sep); + if (compare.length <= endOfPrefix) { + endOfPrefix = compare.length; + append = ""; + } + for(let i = 0; i < endOfPrefix; i++){ + if (compare[i] !== parts[i]) { + endOfPrefix = i; + append = i === 0 ? "" : sep; + break; + } + } + } + return parts.slice(0, endOfPrefix).join(sep) + append; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** Determines the common path from a set of paths for POSIX systems. + * + * @example Usage + * ```ts + * import { common } from "@std/path/posix/common"; + * import { assertEquals } from "@std/assert"; + * + * const path = common([ + * "./deno/std/path/mod.ts", + * "./deno/std/fs/mod.ts", + * ]); + * assertEquals(path, "./deno/std/"); + * ``` + * + * @param paths The paths to compare. + * @returns The common path. + */ function common(paths) { + return common$1(paths, SEPARATOR); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs}, + * {@linkcode normalizeGlob} and {@linkcode expandGlob}. + */ const REG_EXP_ESCAPE_CHARS = [ + "!", + "$", + "(", + ")", + "*", + "+", + ".", + "=", + "?", + "[", + "\\", + "^", + "{", + "|" +]; +const RANGE_ESCAPE_CHARS = [ + "-", + "\\", + "]" +]; +function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType, +caseInsensitive = false } = {}) { + if (glob === "") { + return /(?!)/; + } + // Remove trailing separators. + let newLength = glob.length; + for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--); + glob = glob.slice(0, newLength); + let regExpString = ""; + // Terminates correctly. Trust that `j` is incremented every iteration. + for(let j = 0; j < glob.length;){ + let segment = ""; + const groupStack = []; + let inRange = false; + let inEscape = false; + let endsWithSep = false; + let i = j; + // Terminates with `i` at the non-inclusive end of the current segment. + for(; i < glob.length && !c.seps.includes(glob[i]); i++){ + if (inEscape) { + inEscape = false; + const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS; + segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + continue; + } + if (glob[i] === c.escapePrefix) { + inEscape = true; + continue; + } + if (glob[i] === "[") { + if (!inRange) { + inRange = true; + segment += "["; + if (glob[i + 1] === "!") { + i++; + segment += "^"; + } else if (glob[i + 1] === "^") { + i++; + segment += "\\^"; + } + continue; + } else if (glob[i + 1] === ":") { + let k = i + 1; + let value = ""; + while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){ + value += glob[k + 1]; + k++; + } + if (glob[k + 1] === ":" && glob[k + 2] === "]") { + i = k + 2; + if (value === "alnum") segment += "\\dA-Za-z"; + else if (value === "alpha") segment += "A-Za-z"; + else if (value === "ascii") segment += "\x00-\x7F"; + else if (value === "blank") segment += "\t "; + else if (value === "cntrl") segment += "\x00-\x1F\x7F"; + else if (value === "digit") segment += "\\d"; + else if (value === "graph") segment += "\x21-\x7E"; + else if (value === "lower") segment += "a-z"; + else if (value === "print") segment += "\x20-\x7E"; + else if (value === "punct") { + segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~"; + } else if (value === "space") segment += "\\s\v"; + else if (value === "upper") segment += "A-Z"; + else if (value === "word") segment += "\\w"; + else if (value === "xdigit") segment += "\\dA-Fa-f"; + continue; + } + } + } + if (glob[i] === "]" && inRange) { + inRange = false; + segment += "]"; + continue; + } + if (inRange) { + segment += glob[i]; + continue; + } + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += ")"; + const type = groupStack.pop(); + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { + segment += type; + } + continue; + } + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "+" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("+"); + segment += "(?:"; + continue; + } + if (glob[i] === "@" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("@"); + segment += "(?:"; + continue; + } + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("?"); + segment += "(?:"; + } else { + segment += "."; + } + continue; + } + if (glob[i] === "!" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("!"); + segment += "(?!"; + continue; + } + if (glob[i] === "{") { + groupStack.push("BRACE"); + segment += "(?:"; + continue; + } + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { + groupStack.pop(); + segment += ")"; + continue; + } + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("*"); + segment += "(?:"; + } else { + const prevChar = glob[i - 1]; + let numStars = 1; + while(glob[i + 1] === "*"){ + i++; + numStars++; + } + const nextChar = glob[i + 1]; + if (globstarOption && numStars === 2 && [ + ...c.seps, + undefined + ].includes(prevChar) && [ + ...c.seps, + undefined + ].includes(nextChar)) { + segment += c.globstar; + endsWithSep = true; + } else { + segment += c.wildcard; + } + } + continue; + } + segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + } + // Check for unclosed groups or a dangling backslash. + if (groupStack.length > 0 || inRange || inEscape) { + // Parse failure. Take all characters from this segment literally. + segment = ""; + for (const c of glob.slice(j, i)){ + segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c; + endsWithSep = false; + } + } + regExpString += segment; + if (!endsWithSep) { + regExpString += i < glob.length ? c.sep : c.sepMaybe; + endsWithSep = true; + } + // Terminates with `i` at the start of the next segment. + while(c.seps.includes(glob[i]))i++; + j = i; + } + regExpString = `^${regExpString}$`; + return new RegExp(regExpString, caseInsensitive ? "i" : ""); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const constants = { + sep: "/+", + sepMaybe: "/*", + seps: [ + "/" + ], + globstar: "(?:[^/]*(?:/|$)+)*", + wildcard: "[^/]*", + escapePrefix: "\\" +}; +/** Convert a glob string to a regular expression. + * + * Tries to match bash glob expansion as closely as possible. + * + * Basic glob syntax: + * - `*` - Matches everything without leaving the path segment. + * - `?` - Matches any single character. + * - `{foo,bar}` - Matches `foo` or `bar`. + * - `[abcd]` - Matches `a`, `b`, `c` or `d`. + * - `[a-d]` - Matches `a`, `b`, `c` or `d`. + * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`. + * - `[[::]]` - Matches any character belonging to ``. + * - `[[:alnum:]]` - Matches any digit or letter. + * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`. + * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes + * for a complete list of supported character classes. + * - `\` - Escapes the next character for an `os` other than `"windows"`. + * - \` - Escapes the next character for `os` set to `"windows"`. + * - `/` - Path separator. + * - `\` - Additional path separator only for `os` set to `"windows"`. + * + * Extended syntax: + * - Requires `{ extended: true }`. + * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`. + * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same. + * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`. + * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`. + * - `!(foo|bar)` - Matches anything other than `{foo,bar}`. + * - See https://www.linuxjournal.com/content/bash-extended-globbing. + * + * Globstar syntax: + * - Requires `{ globstar: true }`. + * - `**` - Matches any number of any path segments. + * - Must comprise its entire path segment in the provided glob. + * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option. + * + * Note the following properties: + * - The generated `RegExp` is anchored at both start and end. + * - Repeating and trailing separators are tolerated. Trailing separators in the + * provided glob have no meaning and are discarded. + * - Absolute globs will only match absolute paths, etc. + * - Empty globs will match nothing. + * - Any special glob syntax must be contained to one path segment. For example, + * `?(foo|bar/baz)` is invalid. The separator will take precedence and the + * first segment ends with an unclosed group. + * - If a path segment ends with unclosed groups or a dangling escape prefix, a + * parse error has occurred. Every character for that segment is taken + * literally in this event. + * + * Limitations: + * - A negative group like `!(foo|bar)` will wrongly be converted to a negative + * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly + * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively, + * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if + * the group occurs not nested at the end of the segment. + * + * @example Usage + * ```ts + * import { globToRegExp } from "@std/path/posix/glob-to-regexp"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/); + * ``` + * + * @param glob Glob string to convert. + * @param options Conversion options. + * @returns The regular expression equivalent to the glob. + */ function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Test whether the given string is a glob. + * + * @example Usage + * ```ts + * import { isGlob } from "@std/path/is-glob"; + * import { assert } from "@std/assert"; + * + * assert(!isGlob("foo/bar/../baz")); + * assert(isGlob("foo/*ar/../baz")); + * ``` + * + * @param str String to test. + * @returns `true` if the given string is a glob, otherwise `false` + */ function isGlob(str) { + const chars = { + "{": "}", + "(": ")", + "[": "]" + }; + const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; + if (str === "") { + return false; + } + let match; + while(match = regex.exec(str)){ + if (match[2]) return true; + let idx = match.index + match[0].length; + // if an open bracket/brace/paren is escaped, + // set the index to the next closing character + const open = match[1]; + const close = open ? chars[open] : null; + if (open && close) { + const n = str.indexOf(close, idx); + if (n !== -1) { + idx = n + 1; + } + } + str = str.slice(idx); + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { normalizeGlob } from "@std/path/posix/normalize-glob"; + * import { assertEquals } from "@std/assert"; + * + * const path = normalizeGlob("foo/bar/../*", { globstar: true }); + * assertEquals(path, "foo/*"); + * ``` + * + * @param glob The glob to normalize. + * @param options The options to use. + * @returns The normalized path. + */ function normalizeGlob(glob, { globstar = false } = {}) { + if (glob.match(/\0/g)) { + throw new Error(`Glob contains invalid characters: "${glob}"`); + } + if (!globstar) { + return normalize(glob); + } + const s = SEPARATOR_PATTERN.source; + const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g"); + return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, ".."); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like join(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { joinGlobs } from "@std/path/posix/join-globs"; + * import { assertEquals } from "@std/assert"; + * + * const path = joinGlobs(["foo", "bar", "**"], { globstar: true }); + * assertEquals(path, "foo/bar/**"); + * ``` + * + * @param globs The globs to join. + * @param options The options to use. + * @returns The joined path. + */ function joinGlobs(globs, { extended = true, globstar = false } = {}) { + if (!globstar || globs.length === 0) { + return join(...globs); + } + let joined; + for (const glob of globs){ + const path = glob; + if (path.length > 0) { + if (!joined) joined = path; + else joined += `${SEPARATOR}${path}`; + } + } + if (!joined) return "."; + return normalizeGlob(joined, { + extended, + globstar + }); +} + +exports.DELIMITER = DELIMITER; +exports.SEPARATOR = SEPARATOR; +exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN; +exports.basename = basename; +exports.common = common; +exports.dirname = dirname; +exports.extname = extname; +exports.format = format; +exports.fromFileUrl = fromFileUrl; +exports.globToRegExp = globToRegExp; +exports.isAbsolute = isAbsolute; +exports.isGlob = isGlob; +exports.join = join; +exports.joinGlobs = joinGlobs; +exports.normalize = normalize; +exports.normalizeGlob = normalizeGlob; +exports.parse = parse; +exports.relative = relative; +exports.resolve = resolve; +exports.toFileUrl = toFileUrl; +exports.toNamespacedPath = toNamespacedPath; diff --git a/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs b/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs new file mode 100644 index 00000000..95616595 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs @@ -0,0 +1,1669 @@ +'use strict'; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +function assertPath(path) { + if (typeof path !== "string") { + throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function stripSuffix(name, suffix) { + if (suffix.length >= name.length) { + return name; + } + const lenDiff = name.length - suffix.length; + for(let i = suffix.length - 1; i >= 0; --i){ + if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) { + return name; + } + } + return name.slice(0, -suffix.length); +} +function lastPathSegment(path, isSep, start = 0) { + let matchedNonSeparator = false; + let end = path.length; + for(let i = path.length - 1; i >= start; --i){ + if (isSep(path.charCodeAt(i))) { + if (matchedNonSeparator) { + start = i + 1; + break; + } + } else if (!matchedNonSeparator) { + matchedNonSeparator = true; + end = i + 1; + } + } + return path.slice(start, end); +} +function assertArgs$1(path, suffix) { + assertPath(path); + if (path.length === 0) return path; + if (typeof suffix !== "string") { + throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Alphabet chars. +const CHAR_UPPERCASE_A = 65; /* A */ +const CHAR_LOWERCASE_A = 97; /* a */ +const CHAR_UPPERCASE_Z = 90; /* Z */ +const CHAR_LOWERCASE_Z = 122; /* z */ +// Non-alphabetic chars. +const CHAR_DOT = 46; /* . */ +const CHAR_FORWARD_SLASH = 47; /* / */ +const CHAR_BACKWARD_SLASH = 92; /* \ */ +const CHAR_COLON = 58; /* : */ +const CHAR_QUESTION_MARK = 63; /* ? */ + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function stripTrailingSeparators(segment, isSep) { + if (segment.length <= 1) { + return segment; + } + let end = segment.length; + for(let i = segment.length - 1; i > 0; i--){ + if (isSep(segment.charCodeAt(i))) { + end = i; + } else { + break; + } + } + return segment.slice(0, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function isPosixPathSeparator(code) { + return code === CHAR_FORWARD_SLASH; +} +function isPathSeparator(code) { + return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; +} +function isWindowsDeviceRoot(code) { + return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the last portion of a `path`. + * Trailing directory separators are ignored, and optional suffix is removed. + * + * @example Usage + * ```ts + * import { basename } from "@std/path/windows/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("C:\\user\\Documents\\"), "Documents"); + * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png"); + * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `basename` from `@std/path/windows/unstable-basename`. + * + * @param path The path to extract the name from. + * @param suffix The suffix to remove from extracted name. + * @returns The extracted name. + */ function basename(path, suffix = "") { + assertArgs$1(path, suffix); + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded + let start = 0; + if (path.length >= 2) { + const drive = path.charCodeAt(0); + if (isWindowsDeviceRoot(drive)) { + if (path.charCodeAt(1) === CHAR_COLON) start = 2; + } + } + const lastSegment = lastPathSegment(path, isPathSeparator, start); + const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator); + return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * The character used to separate entries in the PATH environment variable. + */ const DELIMITER = ";"; +/** + * The character used to separate components of a file path. + */ const SEPARATOR = "\\"; +/** + * A regular expression that matches one or more path separators. + */ const SEPARATOR_PATTERN = /[\\/]+/; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$3(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the directory path of a `path`. + * + * @example Usage + * ```ts + * import { dirname } from "@std/path/windows/dirname"; + * import { assertEquals } from "@std/assert"; + * + * const dir = dirname("C:\\foo\\bar\\baz.ext"); + * assertEquals(dir, "C:\\foo\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `dirname` from `@std/path/windows/unstable-dirname`. + * + * @param path The path to get the directory from. + * @returns The directory path. + */ function dirname(path) { + assertArg$3(path); + const len = path.length; + let rootEnd = -1; + let end = -1; + let matchedSlash = true; + let offset = 0; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = offset = 1; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + return path; + } + if (j !== last) { + // We matched a UNC root with leftovers + // Offset by 1 to include the separator after the UNC root to + // treat it as a "normal root" on top of a (UNC) root + rootEnd = offset = j + 1; + } + } + } + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + rootEnd = offset = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3; + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work + return path; + } + for(let i = len - 1; i >= offset; --i){ + if (isPathSeparator(path.charCodeAt(i))) { + if (!matchedSlash) { + end = i; + break; + } + } else { + // We saw the first non-path separator + matchedSlash = false; + } + } + if (end === -1) { + if (rootEnd === -1) return "."; + else end = rootEnd; + } + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the extension of the `path` with leading period. + * + * @example Usage + * ```ts + * import { extname } from "@std/path/windows/extname"; + * import { assertEquals } from "@std/assert"; + * + * const ext = extname("file.ts"); + * assertEquals(ext, ".ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `extname` from `@std/path/windows/unstable-extname`. + * + * @param path The path to get the extension from. + * @returns The extension of the `path`. + */ function extname(path) { + assertPath(path); + let start = 0; + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded + if (path.length >= 2 && path.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path.charCodeAt(0))) { + start = startPart = 2; + } + for(let i = path.length - 1; i >= start; --i){ + const code = path.charCodeAt(i); + if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + return ""; + } + return path.slice(startDot, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function _format(sep, pathObject) { + const dir = pathObject.dir || pathObject.root; + const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? ""); + if (!dir) return base; + if (base === sep) return dir; + if (dir === pathObject.root) return dir + base; + return dir + sep + base; +} +function assertArg$2(pathObject) { + if (pathObject === null || typeof pathObject !== "object") { + throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Generate a path from `ParsedPath` object. + * + * @example Usage + * ```ts + * import { format } from "@std/path/windows/format"; + * import { assertEquals } from "@std/assert"; + * + * const path = format({ + * root: "C:\\", + * dir: "C:\\path\\dir", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * assertEquals(path, "C:\\path\\dir\\file.txt"); + * ``` + * + * @param pathObject The path object to format. + * @returns The formatted path. + */ function format(pathObject) { + assertArg$2(pathObject); + return _format("\\", pathObject); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$1(url) { + url = url instanceof URL ? url : new URL(url); + if (url.protocol !== "file:") { + throw new TypeError(`URL must be a file URL: received "${url.protocol}"`); + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a file URL to a path string. + * + * @example Usage + * ```ts + * import { fromFileUrl } from "@std/path/windows/from-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo"); + * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo"); + * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo"); + * ``` + * + * @param url The file URL to convert. + * @returns The path string. + */ function fromFileUrl(url) { + url = assertArg$1(url); + let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\"); + if (url.hostname !== "") { + // Note: The `URL` implementation guarantees that the drive letter and + // hostname are mutually exclusive. Otherwise it would not have been valid + // to append the hostname and path like this. + path = `\\\\${url.hostname}${path}`; + } + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Verifies whether provided path is absolute. + * + * @example Usage + * ```ts + * import { isAbsolute } from "@std/path/windows/is-absolute"; + * import { assert, assertFalse } from "@std/assert"; + * + * assert(isAbsolute("C:\\foo\\bar")); + * assertFalse(isAbsolute("..\\baz")); + * ``` + * + * @param path The path to verify. + * @returns `true` if the path is absolute, `false` otherwise. + */ function isAbsolute(path) { + assertPath(path); + const len = path.length; + if (len === 0) return false; + const code = path.charCodeAt(0); + if (isPathSeparator(code)) { + return true; + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (len > 2 && path.charCodeAt(1) === CHAR_COLON) { + if (isPathSeparator(path.charCodeAt(2))) return true; + } + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Resolves . and .. elements in a path with directory names +function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { + let res = ""; + let lastSegmentLength = 0; + let lastSlash = -1; + let dots = 0; + let code; + for(let i = 0; i <= path.length; ++i){ + if (i < path.length) code = path.charCodeAt(i); + else if (isPathSeparator(code)) break; + else code = CHAR_FORWARD_SLASH; + if (isPathSeparator(code)) { + if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) { + if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { + if (res.length > 2) { + const lastSlashIndex = res.lastIndexOf(separator); + if (lastSlashIndex === -1) { + res = ""; + lastSegmentLength = 0; + } else { + res = res.slice(0, lastSlashIndex); + lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); + } + lastSlash = i; + dots = 0; + continue; + } else if (res.length === 2 || res.length === 1) { + res = ""; + lastSegmentLength = 0; + lastSlash = i; + dots = 0; + continue; + } + } + if (allowAboveRoot) { + if (res.length > 0) res += `${separator}..`; + else res = ".."; + lastSegmentLength = 2; + } + } else { + if (res.length > 0) res += separator + path.slice(lastSlash + 1, i); + else res = path.slice(lastSlash + 1, i); + lastSegmentLength = i - lastSlash - 1; + } + lastSlash = i; + dots = 0; + } else if (code === CHAR_DOT && dots !== -1) { + ++dots; + } else { + dots = -1; + } + } + return res; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Normalize the `path`, resolving `'..'` and `'.'` segments. + * Note that resolving these segments does not necessarily mean that all will be eliminated. + * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`. + * + * @example Usage + * ```ts + * import { normalize } from "@std/path/windows/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const normalized = normalize("C:\\foo\\..\\bar"); + * assertEquals(normalized, "C:\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `normalize` from `@std/path/windows/unstable-normalize`. + * + * @param path The path to normalize + * @returns The normalized path + */ function normalize(path) { + assertArg(path); + const len = path.length; + let rootEnd = 0; + let device; + let isAbsolute = false; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + // If we started with a separator, we know we at least have an absolute + // path of some kind (UNC or otherwise) + isAbsolute = true; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + const firstPart = path.slice(last, j); + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + // Return the normalized version of the UNC root since there + // is nothing left to process + return `\\\\${firstPart}\\${path.slice(last)}\\`; + } else if (j !== last) { + // We matched a UNC root with leftovers + device = `\\\\${firstPart}\\${path.slice(last, j)}`; + rootEnd = j; + } + } + } + } else { + rootEnd = 1; + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + device = path.slice(0, 2); + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + // Treat separator following drive name as an absolute path + // indicator + isAbsolute = true; + rootEnd = 3; + } + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid unnecessary + // work + return "\\"; + } + let tail; + if (rootEnd < len) { + tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator); + } else { + tail = ""; + } + if (tail.length === 0 && !isAbsolute) tail = "."; + if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) { + tail += "\\"; + } + if (device === undefined) { + if (isAbsolute) { + if (tail.length > 0) return `\\${tail}`; + else return "\\"; + } + return tail; + } else if (isAbsolute) { + if (tail.length > 0) return `${device}\\${tail}`; + else return `${device}\\`; + } + return device + tail; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Join all given a sequence of `paths`,then normalizes the resulting path. + * + * @example Usage + * ```ts + * import { join } from "@std/path/windows/join"; + * import { assertEquals } from "@std/assert"; + * + * const joined = join("C:\\foo", "bar", "baz\\.."); + * assertEquals(joined, "C:\\foo\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `join` from `@std/path/windows/unstable-join`. + * + * @param paths The paths to join. + * @returns The joined path. + */ function join(...paths) { + paths.forEach((path)=>assertPath(path)); + paths = paths.filter((path)=>path.length > 0); + if (paths.length === 0) return "."; + // Make sure that the joined path doesn't start with two slashes, because + // normalize() will mistake it for an UNC path then. + // + // This step is skipped when it is very clear that the user actually + // intended to point at an UNC path. This is assumed when the first + // non-empty string arguments starts with exactly two slashes followed by + // at least one more non-slash character. + // + // Note that for normalize() to treat a path as an UNC path it needs to + // have at least 2 components, so we don't filter for that here. + // This means that the user can use join to construct UNC paths from + // a server name and a share name; for example: + // path.join('//server', 'share') -> '\\\\server\\share\\' + let needsReplace = true; + let slashCount = 0; + const firstPart = paths[0]; + if (isPathSeparator(firstPart.charCodeAt(0))) { + ++slashCount; + const firstLen = firstPart.length; + if (firstLen > 1) { + if (isPathSeparator(firstPart.charCodeAt(1))) { + ++slashCount; + if (firstLen > 2) { + if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount; + else { + // We matched a UNC path in the first part + needsReplace = false; + } + } + } + } + } + let joined = paths.join("\\"); + if (needsReplace) { + // Find any more consecutive slashes we need to replace + for(; slashCount < joined.length; ++slashCount){ + if (!isPathSeparator(joined.charCodeAt(slashCount))) break; + } + // Replace the slashes if needed + if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`; + } + return normalize(joined); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return a `ParsedPath` object of the `path`. + * + * @example Usage + * ```ts + * import { parse } from "@std/path/windows/parse"; + * import { assertEquals } from "@std/assert"; + * + * const parsed = parse("C:\\foo\\bar\\baz.ext"); + * assertEquals(parsed, { + * root: "C:\\", + * dir: "C:\\foo\\bar", + * base: "baz.ext", + * ext: ".ext", + * name: "baz", + * }); + * ``` + * + * @param path The path to parse. + * @returns The `ParsedPath` object. + */ function parse(path) { + assertPath(path); + const ret = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + const len = path.length; + if (len === 0) return ret; + let rootEnd = 0; + let code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = 1; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + rootEnd = j; + } else if (j !== last) { + // We matched a UNC root with leftovers + rootEnd = j + 1; + } + } + } + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + if (len === 3) { + // `path` contains just a drive root, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + ret.base = "\\"; + return ret; + } + rootEnd = 3; + } + } else { + // `path` contains just a relative drive root, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + return ret; + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + ret.base = "\\"; + return ret; + } + if (rootEnd > 0) ret.root = path.slice(0, rootEnd); + let startDot = -1; + let startPart = rootEnd; + let end = -1; + let matchedSlash = true; + let i = path.length - 1; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Get non-dir info + for(; i >= rootEnd; --i){ + code = path.charCodeAt(i); + if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + if (end !== -1) { + ret.base = ret.name = path.slice(startPart, end); + } + } else { + ret.name = path.slice(startPart, startDot); + ret.base = path.slice(startPart, end); + ret.ext = path.slice(startDot, end); + } + // Fallback to '\' in case there is no basename + ret.base = ret.base || "\\"; + // If the directory is the root, use the entire root as the `dir` including + // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the + // trailing slash (`C:\abc\def` -> `C:\abc`). + if (startPart > 0 && startPart !== rootEnd) { + ret.dir = path.slice(0, startPart - 1); + } else ret.dir = ret.root; + return ret; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path segments into a `path`. + * + * @example Usage + * ```ts + * import { resolve } from "@std/path/windows/resolve"; + * import { assertEquals } from "@std/assert"; + * + * const resolved = resolve("C:\\foo\\bar", "..\\baz"); + * assertEquals(resolved, "C:\\foo\\baz"); + * ``` + * + * @param pathSegments The path segments to process to path + * @returns The resolved path + */ function resolve(...pathSegments) { + let resolvedDevice = ""; + let resolvedTail = ""; + let resolvedAbsolute = false; + for(let i = pathSegments.length - 1; i >= -1; i--){ + let path; + // deno-lint-ignore no-explicit-any + const { Deno } = globalThis; + if (i >= 0) { + path = pathSegments[i]; + } else if (!resolvedDevice) { + if (typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)"); + } + path = Deno.cwd(); + } else { + if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a relative path without a current working directory (CWD)"); + } + path = Deno.cwd(); + // Verify that a cwd was found and that it actually points + // to our drive. If not, default to the drive's root. + if (path === undefined || path.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) { + path = `${resolvedDevice}\\`; + } + } + assertPath(path); + const len = path.length; + // Skip empty entries + if (len === 0) continue; + let rootEnd = 0; + let device = ""; + let isAbsolute = false; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + // If we started with a separator, we know we at least have an + // absolute path of some kind (UNC or otherwise) + isAbsolute = true; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + const firstPart = path.slice(last, j); + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + device = `\\\\${firstPart}\\${path.slice(last)}`; + rootEnd = j; + } else if (j !== last) { + // We matched a UNC root with leftovers + device = `\\\\${firstPart}\\${path.slice(last, j)}`; + rootEnd = j; + } + } + } + } else { + rootEnd = 1; + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + device = path.slice(0, 2); + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + // Treat separator following drive name as an absolute path + // indicator + isAbsolute = true; + rootEnd = 3; + } + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator + rootEnd = 1; + isAbsolute = true; + } + if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) { + continue; + } + if (resolvedDevice.length === 0 && device.length > 0) { + resolvedDevice = device; + } + if (!resolvedAbsolute) { + resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`; + resolvedAbsolute = isAbsolute; + } + if (resolvedAbsolute && resolvedDevice.length > 0) break; + } + // At this point the path should be resolved to a full absolute path, + // but handle relative paths to be safe (might happen when Deno.cwd() + // fails) + // Normalize the tail path + resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator); + return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArgs(from, to) { + assertPath(from); + assertPath(to); + if (from === to) return ""; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the relative path from `from` to `to` based on current working directory. + * + * An example in windws, for instance: + * from = 'C:\\orandea\\test\\aaa' + * to = 'C:\\orandea\\impl\\bbb' + * The output of the function should be: '..\\..\\impl\\bbb' + * + * @example Usage + * ```ts + * import { relative } from "@std/path/windows/relative"; + * import { assertEquals } from "@std/assert"; + * + * const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb"); + * assertEquals(relativePath, "..\\..\\impl\\bbb"); + * ``` + * + * @param from The path from which to calculate the relative path + * @param to The path to which to calculate the relative path + * @returns The relative path from `from` to `to` + */ function relative(from, to) { + assertArgs(from, to); + const fromOrig = resolve(from); + const toOrig = resolve(to); + if (fromOrig === toOrig) return ""; + from = fromOrig.toLowerCase(); + to = toOrig.toLowerCase(); + if (from === to) return ""; + // Trim any leading backslashes + let fromStart = 0; + let fromEnd = from.length; + for(; fromStart < fromEnd; ++fromStart){ + if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) break; + } + // Trim trailing backslashes (applicable to UNC paths only) + for(; fromEnd - 1 > fromStart; --fromEnd){ + if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) break; + } + const fromLen = fromEnd - fromStart; + // Trim any leading backslashes + let toStart = 0; + let toEnd = to.length; + for(; toStart < toEnd; ++toStart){ + if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) break; + } + // Trim trailing backslashes (applicable to UNC paths only) + for(; toEnd - 1 > toStart; --toEnd){ + if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) break; + } + const toLen = toEnd - toStart; + // Compare paths to find the longest common path from root + const length = fromLen < toLen ? fromLen : toLen; + let lastCommonSep = -1; + let i = 0; + for(; i <= length; ++i){ + if (i === length) { + if (toLen > length) { + if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) { + // We get here if `from` is the exact base path for `to`. + // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz' + return toOrig.slice(toStart + i + 1); + } else if (i === 2) { + // We get here if `from` is the device root. + // For example: from='C:\\'; to='C:\\foo' + return toOrig.slice(toStart + i); + } + } + if (fromLen > length) { + if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) { + // We get here if `to` is the exact base path for `from`. + // For example: from='C:\\foo\\bar'; to='C:\\foo' + lastCommonSep = i; + } else if (i === 2) { + // We get here if `to` is the device root. + // For example: from='C:\\foo\\bar'; to='C:\\' + lastCommonSep = 3; + } + } + break; + } + const fromCode = from.charCodeAt(fromStart + i); + const toCode = to.charCodeAt(toStart + i); + if (fromCode !== toCode) break; + else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i; + } + // We found a mismatch before the first common path separator was seen, so + // return the original `to`. + if (i !== length && lastCommonSep === -1) { + return toOrig; + } + let out = ""; + if (lastCommonSep === -1) lastCommonSep = 0; + // Generate the relative path based on the path difference between `to` and + // `from` + for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){ + if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) { + if (out.length === 0) out += ".."; + else out += "\\.."; + } + } + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts + if (out.length > 0) { + return out + toOrig.slice(toStart + lastCommonSep, toEnd); + } else { + toStart += lastCommonSep; + if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) ++toStart; + return toOrig.slice(toStart, toEnd); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const WHITESPACE_ENCODINGS = { + "\u0009": "%09", + "\u000A": "%0A", + "\u000B": "%0B", + "\u000C": "%0C", + "\u000D": "%0D", + "\u0020": "%20" +}; +function encodeWhitespace(string) { + return string.replaceAll(/[\s]/g, (c)=>{ + return WHITESPACE_ENCODINGS[c] ?? c; + }); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path string to a file URL. + * + * @example Usage + * ```ts + * import { toFileUrl } from "@std/path/windows/to-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo")); + * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo")); + * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo")); + * ``` + * @param path The path to convert. + * @returns The file URL. + */ function toFileUrl(path) { + if (!isAbsolute(path)) { + throw new TypeError(`Path must be absolute: received "${path}"`); + } + const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/); + const url = new URL("file:///"); + url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25")); + if (hostname !== undefined && hostname !== "localhost") { + url.hostname = hostname; + if (!url.hostname) { + throw new TypeError(`Invalid hostname: "${url.hostname}"`); + } + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path to a namespace path + * + * @example Usage + * ```ts + * import { toNamespacedPath } from "@std/path/windows/to-namespaced-path"; + * import { assertEquals } from "@std/assert"; + * + * const namespaced = toNamespacedPath("C:\\foo\\bar"); + * assertEquals(namespaced, "\\\\?\\C:\\foo\\bar"); + * ``` + * + * @param path The path to resolve to namespaced path + * @returns The resolved namespaced path + */ function toNamespacedPath(path) { + // Note: this will *probably* throw somewhere. + if (typeof path !== "string") return path; + if (path.length === 0) return ""; + const resolvedPath = resolve(path); + if (resolvedPath.length >= 3) { + if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) { + // Possible UNC root + if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) { + const code = resolvedPath.charCodeAt(2); + if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) { + // Matched non-long UNC root, convert the path to a long UNC path + return `\\\\?\\UNC\\${resolvedPath.slice(2)}`; + } + } + } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) { + // Possible device root + if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) { + // Matched device root, convert the path to a long UNC path + return `\\\\?\\${resolvedPath}`; + } + } + } + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function common$1(paths, sep) { + const [first = "", ...remaining] = paths; + const parts = first.split(sep); + let endOfPrefix = parts.length; + let append = ""; + for (const path of remaining){ + const compare = path.split(sep); + if (compare.length <= endOfPrefix) { + endOfPrefix = compare.length; + append = ""; + } + for(let i = 0; i < endOfPrefix; i++){ + if (compare[i] !== parts[i]) { + endOfPrefix = i; + append = i === 0 ? "" : sep; + break; + } + } + } + return parts.slice(0, endOfPrefix).join(sep) + append; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Determines the common path from a set of paths for Windows systems. + * + * @example Usage + * ```ts + * import { common } from "@std/path/windows/common"; + * import { assertEquals } from "@std/assert"; + * + * const path = common([ + * "C:\\foo\\bar", + * "C:\\foo\\baz", + * ]); + * assertEquals(path, "C:\\foo\\"); + * ``` + * + * @param paths The paths to compare. + * @returns The common path. + */ function common(paths) { + return common$1(paths, SEPARATOR); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs}, + * {@linkcode normalizeGlob} and {@linkcode expandGlob}. + */ const REG_EXP_ESCAPE_CHARS = [ + "!", + "$", + "(", + ")", + "*", + "+", + ".", + "=", + "?", + "[", + "\\", + "^", + "{", + "|" +]; +const RANGE_ESCAPE_CHARS = [ + "-", + "\\", + "]" +]; +function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType, +caseInsensitive = false } = {}) { + if (glob === "") { + return /(?!)/; + } + // Remove trailing separators. + let newLength = glob.length; + for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--); + glob = glob.slice(0, newLength); + let regExpString = ""; + // Terminates correctly. Trust that `j` is incremented every iteration. + for(let j = 0; j < glob.length;){ + let segment = ""; + const groupStack = []; + let inRange = false; + let inEscape = false; + let endsWithSep = false; + let i = j; + // Terminates with `i` at the non-inclusive end of the current segment. + for(; i < glob.length && !c.seps.includes(glob[i]); i++){ + if (inEscape) { + inEscape = false; + const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS; + segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + continue; + } + if (glob[i] === c.escapePrefix) { + inEscape = true; + continue; + } + if (glob[i] === "[") { + if (!inRange) { + inRange = true; + segment += "["; + if (glob[i + 1] === "!") { + i++; + segment += "^"; + } else if (glob[i + 1] === "^") { + i++; + segment += "\\^"; + } + continue; + } else if (glob[i + 1] === ":") { + let k = i + 1; + let value = ""; + while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){ + value += glob[k + 1]; + k++; + } + if (glob[k + 1] === ":" && glob[k + 2] === "]") { + i = k + 2; + if (value === "alnum") segment += "\\dA-Za-z"; + else if (value === "alpha") segment += "A-Za-z"; + else if (value === "ascii") segment += "\x00-\x7F"; + else if (value === "blank") segment += "\t "; + else if (value === "cntrl") segment += "\x00-\x1F\x7F"; + else if (value === "digit") segment += "\\d"; + else if (value === "graph") segment += "\x21-\x7E"; + else if (value === "lower") segment += "a-z"; + else if (value === "print") segment += "\x20-\x7E"; + else if (value === "punct") { + segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~"; + } else if (value === "space") segment += "\\s\v"; + else if (value === "upper") segment += "A-Z"; + else if (value === "word") segment += "\\w"; + else if (value === "xdigit") segment += "\\dA-Fa-f"; + continue; + } + } + } + if (glob[i] === "]" && inRange) { + inRange = false; + segment += "]"; + continue; + } + if (inRange) { + segment += glob[i]; + continue; + } + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += ")"; + const type = groupStack.pop(); + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { + segment += type; + } + continue; + } + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "+" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("+"); + segment += "(?:"; + continue; + } + if (glob[i] === "@" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("@"); + segment += "(?:"; + continue; + } + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("?"); + segment += "(?:"; + } else { + segment += "."; + } + continue; + } + if (glob[i] === "!" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("!"); + segment += "(?!"; + continue; + } + if (glob[i] === "{") { + groupStack.push("BRACE"); + segment += "(?:"; + continue; + } + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { + groupStack.pop(); + segment += ")"; + continue; + } + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("*"); + segment += "(?:"; + } else { + const prevChar = glob[i - 1]; + let numStars = 1; + while(glob[i + 1] === "*"){ + i++; + numStars++; + } + const nextChar = glob[i + 1]; + if (globstarOption && numStars === 2 && [ + ...c.seps, + undefined + ].includes(prevChar) && [ + ...c.seps, + undefined + ].includes(nextChar)) { + segment += c.globstar; + endsWithSep = true; + } else { + segment += c.wildcard; + } + } + continue; + } + segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + } + // Check for unclosed groups or a dangling backslash. + if (groupStack.length > 0 || inRange || inEscape) { + // Parse failure. Take all characters from this segment literally. + segment = ""; + for (const c of glob.slice(j, i)){ + segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c; + endsWithSep = false; + } + } + regExpString += segment; + if (!endsWithSep) { + regExpString += i < glob.length ? c.sep : c.sepMaybe; + endsWithSep = true; + } + // Terminates with `i` at the start of the next segment. + while(c.seps.includes(glob[i]))i++; + j = i; + } + regExpString = `^${regExpString}$`; + return new RegExp(regExpString, caseInsensitive ? "i" : ""); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const constants = { + sep: "(?:\\\\|/)+", + sepMaybe: "(?:\\\\|/)*", + seps: [ + "\\", + "/" + ], + globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*", + wildcard: "[^\\\\/]*", + escapePrefix: "`" +}; +/** Convert a glob string to a regular expression. + * + * Tries to match bash glob expansion as closely as possible. + * + * Basic glob syntax: + * - `*` - Matches everything without leaving the path segment. + * - `?` - Matches any single character. + * - `{foo,bar}` - Matches `foo` or `bar`. + * - `[abcd]` - Matches `a`, `b`, `c` or `d`. + * - `[a-d]` - Matches `a`, `b`, `c` or `d`. + * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`. + * - `[[::]]` - Matches any character belonging to ``. + * - `[[:alnum:]]` - Matches any digit or letter. + * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`. + * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes + * for a complete list of supported character classes. + * - `\` - Escapes the next character for an `os` other than `"windows"`. + * - \` - Escapes the next character for `os` set to `"windows"`. + * - `/` - Path separator. + * - `\` - Additional path separator only for `os` set to `"windows"`. + * + * Extended syntax: + * - Requires `{ extended: true }`. + * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`. + * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same. + * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`. + * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`. + * - `!(foo|bar)` - Matches anything other than `{foo,bar}`. + * - See https://www.linuxjournal.com/content/bash-extended-globbing. + * + * Globstar syntax: + * - Requires `{ globstar: true }`. + * - `**` - Matches any number of any path segments. + * - Must comprise its entire path segment in the provided glob. + * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option. + * + * Note the following properties: + * - The generated `RegExp` is anchored at both start and end. + * - Repeating and trailing separators are tolerated. Trailing separators in the + * provided glob have no meaning and are discarded. + * - Absolute globs will only match absolute paths, etc. + * - Empty globs will match nothing. + * - Any special glob syntax must be contained to one path segment. For example, + * `?(foo|bar/baz)` is invalid. The separator will take precedence and the + * first segment ends with an unclosed group. + * - If a path segment ends with unclosed groups or a dangling escape prefix, a + * parse error has occurred. Every character for that segment is taken + * literally in this event. + * + * Limitations: + * - A negative group like `!(foo|bar)` will wrongly be converted to a negative + * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly + * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively, + * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if + * the group occurs not nested at the end of the segment. + * + * @example Usage + * ```ts + * import { globToRegExp } from "@std/path/windows/glob-to-regexp"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/); + * ``` + * + * @param glob Glob string to convert. + * @param options Conversion options. + * @returns The regular expression equivalent to the glob. + */ function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Test whether the given string is a glob. + * + * @example Usage + * ```ts + * import { isGlob } from "@std/path/is-glob"; + * import { assert } from "@std/assert"; + * + * assert(!isGlob("foo/bar/../baz")); + * assert(isGlob("foo/*ar/../baz")); + * ``` + * + * @param str String to test. + * @returns `true` if the given string is a glob, otherwise `false` + */ function isGlob(str) { + const chars = { + "{": "}", + "(": ")", + "[": "]" + }; + const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; + if (str === "") { + return false; + } + let match; + while(match = regex.exec(str)){ + if (match[2]) return true; + let idx = match.index + match[0].length; + // if an open bracket/brace/paren is escaped, + // set the index to the next closing character + const open = match[1]; + const close = open ? chars[open] : null; + if (open && close) { + const n = str.indexOf(close, idx); + if (n !== -1) { + idx = n + 1; + } + } + str = str.slice(idx); + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { normalizeGlob } from "@std/path/windows/normalize-glob"; + * import { assertEquals } from "@std/assert"; + * + * const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true }); + * assertEquals(normalized, "**\\bar"); + * ``` + * + * @param glob The glob pattern to normalize. + * @param options The options for glob pattern. + * @returns The normalized glob pattern. + */ function normalizeGlob(glob, { globstar = false } = {}) { + if (glob.match(/\0/g)) { + throw new Error(`Glob contains invalid characters: "${glob}"`); + } + if (!globstar) { + return normalize(glob); + } + const s = SEPARATOR_PATTERN.source; + const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g"); + return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, ".."); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like join(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * + * ```ts + * import { joinGlobs } from "@std/path/windows/join-globs"; + * import { assertEquals } from "@std/assert"; + * + * const joined = joinGlobs(["foo", "**", "bar"], { globstar: true }); + * assertEquals(joined, "foo\\**\\bar"); + * ``` + * + * @param globs The globs to join. + * @param options The options for glob pattern. + * @returns The joined glob pattern. + */ function joinGlobs(globs, { extended = true, globstar = false } = {}) { + if (!globstar || globs.length === 0) { + return join(...globs); + } + let joined; + for (const glob of globs){ + const path = glob; + if (path.length > 0) { + if (!joined) joined = path; + else joined += `${SEPARATOR}${path}`; + } + } + if (!joined) return "."; + return normalizeGlob(joined, { + extended, + globstar + }); +} + +exports.DELIMITER = DELIMITER; +exports.SEPARATOR = SEPARATOR; +exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN; +exports.basename = basename; +exports.common = common; +exports.dirname = dirname; +exports.extname = extname; +exports.format = format; +exports.fromFileUrl = fromFileUrl; +exports.globToRegExp = globToRegExp; +exports.isAbsolute = isAbsolute; +exports.isGlob = isGlob; +exports.join = join; +exports.joinGlobs = joinGlobs; +exports.normalize = normalize; +exports.normalizeGlob = normalizeGlob; +exports.parse = parse; +exports.relative = relative; +exports.resolve = resolve; +exports.toFileUrl = toFileUrl; +exports.toNamespacedPath = toNamespacedPath; diff --git a/node_modules/@eslint/config-array/dist/cjs/types.ts b/node_modules/@eslint/config-array/dist/cjs/types.ts new file mode 100644 index 00000000..1af40113 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/cjs/types.ts @@ -0,0 +1,24 @@ +/** + * @fileoverview Types for the config-array package. + * @author Nicholas C. Zakas + */ + +export interface ConfigObject { + /** + * The files to include. + */ + files?: string[]; + + /** + * The files to exclude. + */ + ignores?: string[]; + + /** + * The name of the config object. + */ + name?: string; + + // may also have any number of other properties + [key: string]: unknown; +} diff --git a/node_modules/@eslint/config-array/dist/esm/index.d.ts b/node_modules/@eslint/config-array/dist/esm/index.d.ts new file mode 100644 index 00000000..6fb977e0 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/index.d.ts @@ -0,0 +1,141 @@ +export { ObjectSchema } from "@eslint/object-schema"; +export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition; +export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition; +export type ConfigObject = import("./types.ts").ConfigObject; +export type IMinimatchStatic = import("minimatch").IMinimatchStatic; +export type IMinimatch = import("minimatch").IMinimatch; +export type PathImpl = typeof import("@jsr/std__path"); +export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema; +/** + * Represents an array of config objects and provides method for working with + * those config objects. + */ +export class ConfigArray extends Array { + /** + * Creates a new instance of ConfigArray. + * @param {Iterable|Function|Object} configs An iterable yielding config + * objects, or a config function, or a config object. + * @param {Object} options The options for the ConfigArray. + * @param {string} [options.basePath="/"] The absolute path of the config file directory. + * Defaults to `"/"`. + * @param {boolean} [options.normalized=false] Flag indicating if the + * configs have already been normalized. + * @param {Object} [options.schema] The additional schema + * definitions to use for the ConfigArray schema. + * @param {Array} [options.extraConfigTypes] List of config types supported. + */ + constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: { + basePath?: string; + normalized?: boolean; + schema?: any; + extraConfigTypes?: Array; + }); + /** + * The path of the config file that this array was loaded from. + * This is used to calculate filename matches. + * @property basePath + * @type {string} + */ + basePath: string; + /** + * The supported config types. + * @type {Array} + */ + extraConfigTypes: Array; + /** + * Returns the `files` globs from every config object in the array. + * This can be used to determine which files will be matched by a + * config array or to use as a glob pattern when no patterns are provided + * for a command line interface. + * @returns {Array} An array of matchers. + */ + get files(): (string | Function)[]; + /** + * Returns ignore matchers that should always be ignored regardless of + * the matching `files` fields in any configs. This is necessary to mimic + * the behavior of things like .gitignore and .eslintignore, allowing a + * globbing operation to be faster. + * @returns {string[]} An array of string patterns and functions to be ignored. + */ + get ignores(): string[]; + /** + * Indicates if the config array has been normalized. + * @returns {boolean} True if the config array is normalized, false if not. + */ + isNormalized(): boolean; + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {Promise} The current ConfigArray instance. + */ + normalize(context?: any): Promise; + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {ConfigArray} The current ConfigArray instance. + */ + normalizeSync(context?: any): ConfigArray; + /** + * Returns the config object for a given file path and a status that can be used to determine why a file has no config. + * @param {string} filePath The path of a file to get a config for. + * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} + * An object with an optional property `config` and property `status`. + * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, + * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. + */ + getConfigWithStatus(filePath: string): { + config?: any; + status: "ignored" | "external" | "unconfigured" | "matched"; + }; + /** + * Returns the config object for a given file path. + * @param {string} filePath The path of a file to get a config for. + * @returns {Object|undefined} The config object for this file or `undefined`. + */ + getConfig(filePath: string): any | undefined; + /** + * Determines whether a file has a config or why it doesn't. + * @param {string} filePath The path of the file to check. + * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: + * * `"ignored"`: the file is ignored + * * `"external"`: the file is outside the base path + * * `"unconfigured"`: the file is not matched by any config + * * `"matched"`: the file has a matching config + */ + getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched"; + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + * @deprecated Use `isFileIgnored` instead. + */ + isIgnored(filePath: string): boolean; + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + */ + isFileIgnored(filePath: string): boolean; + /** + * Determines if the given directory is ignored based on the configs. + * This checks only default `ignores` that don't have `files` in the + * same config. A pattern such as `/foo` be considered to ignore the directory + * while a pattern such as `/foo/**` is not considered to ignore the + * directory because it is matching files. + * @param {string} directoryPath The path of a directory to check. + * @returns {boolean} True if the directory is ignored, false if not. Will + * return true for any directory that is not inside of `basePath`. + * @throws {Error} When the `ConfigArray` is not normalized. + */ + isDirectoryIgnored(directoryPath: string): boolean; + #private; +} +export namespace ConfigArraySymbol { + let isNormalized: symbol; + let configCache: symbol; + let schema: symbol; + let finalizeConfig: symbol; + let preprocessConfig: symbol; +} diff --git a/node_modules/@eslint/config-array/dist/esm/index.js b/node_modules/@eslint/config-array/dist/esm/index.js new file mode 100644 index 00000000..1e68f33e --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/index.js @@ -0,0 +1,1279 @@ +// @ts-self-types="./index.d.ts" +import * as posixPath from './std__path/posix.js'; +import * as windowsPath from './std__path/windows.js'; +import minimatch from 'minimatch'; +import createDebug from 'debug'; +import { ObjectSchema } from '@eslint/object-schema'; +export { ObjectSchema } from '@eslint/object-schema'; + +/** + * @fileoverview ConfigSchema + * @author Nicholas C. Zakas + */ + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + +/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ +/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * A strategy that does nothing. + * @type {PropertyDefinition} + */ +const NOOP_STRATEGY = { + required: false, + merge() { + return undefined; + }, + validate() {}, +}; + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * The base schema that every ConfigArray uses. + * @type {ObjectDefinition} + */ +const baseSchema = Object.freeze({ + name: { + required: false, + merge() { + return undefined; + }, + validate(value) { + if (typeof value !== "string") { + throw new TypeError("Property must be a string."); + } + }, + }, + files: NOOP_STRATEGY, + ignores: NOOP_STRATEGY, +}); + +/** + * @fileoverview ConfigSchema + * @author Nicholas C. Zakas + */ + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * Asserts that a given value is an array. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array. + */ +function assertIsArray(value) { + if (!Array.isArray(value)) { + throw new TypeError("Expected value to be an array."); + } +} + +/** + * Asserts that a given value is an array containing only strings and functions. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array of strings and functions. + */ +function assertIsArrayOfStringsAndFunctions(value) { + assertIsArray(value); + + if ( + value.some( + item => typeof item !== "string" && typeof item !== "function", + ) + ) { + throw new TypeError( + "Expected array to only contain strings and functions.", + ); + } +} + +/** + * Asserts that a given value is a non-empty array. + * @param {*} value The value to check. + * @returns {void} + * @throws {TypeError} When the value is not an array or an empty array. + */ +function assertIsNonEmptyArray(value) { + if (!Array.isArray(value) || value.length === 0) { + throw new TypeError("Expected value to be a non-empty array."); + } +} + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * The schema for `files` and `ignores` that every ConfigArray uses. + * @type {ObjectDefinition} + */ +const filesAndIgnoresSchema = Object.freeze({ + files: { + required: false, + merge() { + return undefined; + }, + validate(value) { + // first check if it's an array + assertIsNonEmptyArray(value); + + // then check each member + value.forEach(item => { + if (Array.isArray(item)) { + assertIsArrayOfStringsAndFunctions(item); + } else if ( + typeof item !== "string" && + typeof item !== "function" + ) { + throw new TypeError( + "Items must be a string, a function, or an array of strings and functions.", + ); + } + }); + }, + }, + ignores: { + required: false, + merge() { + return undefined; + }, + validate: assertIsArrayOfStringsAndFunctions, + }, +}); + +/** + * @fileoverview ConfigArray + * @author Nicholas C. Zakas + */ + + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + +/** @typedef {import("./types.ts").ConfigObject} ConfigObject */ +/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ +/** @typedef {import("minimatch").IMinimatch} IMinimatch */ +/** @typedef {import("@jsr/std__path")} PathImpl */ + +/* + * This is a bit of a hack to make TypeScript happy with the Rollup-created + * CommonJS file. Rollup doesn't do object destructuring for imported files + * and instead imports the default via `require()`. This messes up type checking + * for `ObjectSchema`. To work around that, we just import the type manually + * and give it a different name to use in the JSDoc comments. + */ +/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +const Minimatch = minimatch.Minimatch; +const debug = createDebug("@eslint/config-array"); + +/** + * A cache for minimatch instances. + * @type {Map} + */ +const minimatchCache = new Map(); + +/** + * A cache for negated minimatch instances. + * @type {Map} + */ +const negatedMinimatchCache = new Map(); + +/** + * Options to use with minimatch. + * @type {Object} + */ +const MINIMATCH_OPTIONS = { + // matchBase: true, + dot: true, + allowWindowsEscape: true, +}; + +/** + * The types of config objects that are supported. + * @type {Set} + */ +const CONFIG_TYPES = new Set(["array", "function"]); + +/** + * Fields that are considered metadata and not part of the config object. + * @type {Set} + */ +const META_FIELDS = new Set(["name"]); + +/** + * A schema containing just files and ignores for early validation. + * @type {ObjectSchemaInstance} + */ +const FILES_AND_IGNORES_SCHEMA = new ObjectSchema(filesAndIgnoresSchema); + +// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`. + +const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" }); +const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" }); +const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({ + status: "unconfigured", +}); + +// Match two leading dots followed by a slash or the end of input. +const EXTERNAL_PATH_REGEX = /^\.\.(?:\/|$)/u; + +/** + * Wrapper error for config validation errors that adds a name to the front of the + * error message. + */ +class ConfigError extends Error { + /** + * Creates a new instance. + * @param {string} name The config object name causing the error. + * @param {number} index The index of the config object in the array. + * @param {Object} options The options for the error. + * @param {Error} [options.cause] The error that caused this error. + * @param {string} [options.message] The message to use for the error. + */ + constructor(name, index, { cause, message }) { + const finalMessage = message || cause.message; + + super(`Config ${name}: ${finalMessage}`, { cause }); + + // copy over custom properties that aren't represented + if (cause) { + for (const key of Object.keys(cause)) { + if (!(key in this)) { + this[key] = cause[key]; + } + } + } + + /** + * The name of the error. + * @type {string} + * @readonly + */ + this.name = "ConfigError"; + + /** + * The index of the config object in the array. + * @type {number} + * @readonly + */ + this.index = index; + } +} + +/** + * Gets the name of a config object. + * @param {ConfigObject} config The config object to get the name of. + * @returns {string} The name of the config object. + */ +function getConfigName(config) { + if (config && typeof config.name === "string" && config.name) { + return `"${config.name}"`; + } + + return "(unnamed)"; +} + +/** + * Rethrows a config error with additional information about the config object. + * @param {object} config The config object to get the name of. + * @param {number} index The index of the config object in the array. + * @param {Error} error The error to rethrow. + * @throws {ConfigError} When the error is rethrown for a config. + */ +function rethrowConfigError(config, index, error) { + const configName = getConfigName(config); + throw new ConfigError(configName, index, { cause: error }); +} + +/** + * Shorthand for checking if a value is a string. + * @param {any} value The value to check. + * @returns {boolean} True if a string, false if not. + */ +function isString(value) { + return typeof value === "string"; +} + +/** + * Creates a function that asserts that the config is valid + * during normalization. This checks that the config is not nullish + * and that files and ignores keys of a config object are valid as per base schema. + * @param {Object} config The config object to check. + * @param {number} index The index of the config object in the array. + * @returns {void} + * @throws {ConfigError} If the files and ignores keys of a config object are not valid. + */ +function assertValidBaseConfig(config, index) { + if (config === null) { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected null config.", + }); + } + + if (config === undefined) { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected undefined config.", + }); + } + + if (typeof config !== "object") { + throw new ConfigError(getConfigName(config), index, { + message: "Unexpected non-object config.", + }); + } + + const validateConfig = {}; + + if ("files" in config) { + validateConfig.files = config.files; + } + + if ("ignores" in config) { + validateConfig.ignores = config.ignores; + } + + try { + FILES_AND_IGNORES_SCHEMA.validate(validateConfig); + } catch (validationError) { + rethrowConfigError(config, index, validationError); + } +} + +/** + * Wrapper around minimatch that caches minimatch patterns for + * faster matching speed over multiple file path evaluations. + * @param {string} filepath The file path to match. + * @param {string} pattern The glob pattern to match against. + * @param {object} options The minimatch options to use. + * @returns + */ +function doMatch(filepath, pattern, options = {}) { + let cache = minimatchCache; + + if (options.flipNegate) { + cache = negatedMinimatchCache; + } + + let matcher = cache.get(pattern); + + if (!matcher) { + matcher = new Minimatch( + pattern, + Object.assign({}, MINIMATCH_OPTIONS, options), + ); + cache.set(pattern, matcher); + } + + return matcher.match(filepath); +} + +/** + * Normalizes a `ConfigArray` by flattening it and executing any functions + * that are found inside. + * @param {Array} items The items in a `ConfigArray`. + * @param {Object} context The context object to pass into any function + * found. + * @param {Array} extraConfigTypes The config types to check. + * @returns {Promise} A flattened array containing only config objects. + * @throws {TypeError} When a config function returns a function. + */ +async function normalize(items, context, extraConfigTypes) { + const allowFunctions = extraConfigTypes.includes("function"); + const allowArrays = extraConfigTypes.includes("array"); + + async function* flatTraverse(array) { + for (let item of array) { + if (typeof item === "function") { + if (!allowFunctions) { + throw new TypeError("Unexpected function."); + } + + item = item(context); + if (item.then) { + item = await item; + } + } + + if (Array.isArray(item)) { + if (!allowArrays) { + throw new TypeError("Unexpected array."); + } + yield* flatTraverse(item); + } else if (typeof item === "function") { + throw new TypeError( + "A config function can only return an object or array.", + ); + } else { + yield item; + } + } + } + + /* + * Async iterables cannot be used with the spread operator, so we need to manually + * create the array to return. + */ + const asyncIterable = await flatTraverse(items); + const configs = []; + + for await (const config of asyncIterable) { + configs.push(config); + } + + return configs; +} + +/** + * Normalizes a `ConfigArray` by flattening it and executing any functions + * that are found inside. + * @param {Array} items The items in a `ConfigArray`. + * @param {Object} context The context object to pass into any function + * found. + * @param {Array} extraConfigTypes The config types to check. + * @returns {Array} A flattened array containing only config objects. + * @throws {TypeError} When a config function returns a function. + */ +function normalizeSync(items, context, extraConfigTypes) { + const allowFunctions = extraConfigTypes.includes("function"); + const allowArrays = extraConfigTypes.includes("array"); + + function* flatTraverse(array) { + for (let item of array) { + if (typeof item === "function") { + if (!allowFunctions) { + throw new TypeError("Unexpected function."); + } + + item = item(context); + if (item.then) { + throw new TypeError( + "Async config functions are not supported.", + ); + } + } + + if (Array.isArray(item)) { + if (!allowArrays) { + throw new TypeError("Unexpected array."); + } + + yield* flatTraverse(item); + } else if (typeof item === "function") { + throw new TypeError( + "A config function can only return an object or array.", + ); + } else { + yield item; + } + } + } + + return [...flatTraverse(items)]; +} + +/** + * Determines if a given file path should be ignored based on the given + * matcher. + * @param {Array boolean)>} ignores The ignore patterns to check. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @returns {boolean} True if the path should be ignored and false if not. + */ +function shouldIgnorePath(ignores, filePath, relativeFilePath) { + return ignores.reduce((ignored, matcher) => { + if (!ignored) { + if (typeof matcher === "function") { + return matcher(filePath); + } + + // don't check negated patterns because we're not ignored yet + if (!matcher.startsWith("!")) { + return doMatch(relativeFilePath, matcher); + } + + // otherwise we're still not ignored + return false; + } + + // only need to check negated patterns because we're ignored + if (typeof matcher === "string" && matcher.startsWith("!")) { + return !doMatch(relativeFilePath, matcher, { + flipNegate: true, + }); + } + + return ignored; + }, false); +} + +/** + * Determines if a given file path is matched by a config based on + * `ignores` only. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @param {Object} config The config object to check. + * @returns {boolean} True if the file path is matched by the config, + * false if not. + */ +function pathMatchesIgnores(filePath, relativeFilePath, config) { + return ( + Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && + !shouldIgnorePath(config.ignores, filePath, relativeFilePath) + ); +} + +/** + * Determines if a given file path is matched by a config. If the config + * has no `files` field, then it matches; otherwise, if a `files` field + * is present then we match the globs in `files` and exclude any globs in + * `ignores`. + * @param {string} filePath The unprocessed file path to check. + * @param {string} relativeFilePath The path of the file to check relative to the base path, + * using forward slash (`"/"`) as a separator. + * @param {Object} config The config object to check. + * @returns {boolean} True if the file path is matched by the config, + * false if not. + */ +function pathMatches(filePath, relativeFilePath, config) { + // match both strings and functions + function match(pattern) { + if (isString(pattern)) { + return doMatch(relativeFilePath, pattern); + } + + if (typeof pattern === "function") { + return pattern(filePath); + } + + throw new TypeError(`Unexpected matcher type ${pattern}.`); + } + + // check for all matches to config.files + let filePathMatchesPattern = config.files.some(pattern => { + if (Array.isArray(pattern)) { + return pattern.every(match); + } + + return match(pattern); + }); + + /* + * If the file path matches the config.files patterns, then check to see + * if there are any files to ignore. + */ + if (filePathMatchesPattern && config.ignores) { + filePathMatchesPattern = !shouldIgnorePath( + config.ignores, + filePath, + relativeFilePath, + ); + } + + return filePathMatchesPattern; +} + +/** + * Ensures that a ConfigArray has been normalized. + * @param {ConfigArray} configArray The ConfigArray to check. + * @returns {void} + * @throws {Error} When the `ConfigArray` is not normalized. + */ +function assertNormalized(configArray) { + // TODO: Throw more verbose error + if (!configArray.isNormalized()) { + throw new Error( + "ConfigArray must be normalized to perform this operation.", + ); + } +} + +/** + * Ensures that config types are valid. + * @param {Array} extraConfigTypes The config types to check. + * @returns {void} + * @throws {Error} When the config types array is invalid. + */ +function assertExtraConfigTypes(extraConfigTypes) { + if (extraConfigTypes.length > 2) { + throw new TypeError( + "configTypes must be an array with at most two items.", + ); + } + + for (const configType of extraConfigTypes) { + if (!CONFIG_TYPES.has(configType)) { + throw new TypeError( + `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`, + ); + } + } +} + +/** + * Returns path-handling implementations for Unix or Windows, depending on a given absolute path. + * @param {string} fileOrDirPath The absolute path to check. + * @returns {PathImpl} Path-handling implementations for the specified path. + * @throws An error is thrown if the specified argument is not an absolute path. + */ +function getPathImpl(fileOrDirPath) { + // Posix absolute paths always start with a slash. + if (fileOrDirPath.startsWith("/")) { + return posixPath; + } + + // Windows absolute paths start with a letter followed by a colon and at least one backslash, + // or with two backslashes in the case of UNC paths. + // Forward slashed are automatically normalized to backslashes. + if (/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(fileOrDirPath)) { + return windowsPath; + } + + throw new Error( + `Expected an absolute path but received "${fileOrDirPath}"`, + ); +} + +/** + * Converts a given path to a relative path with all separator characters replaced by forward slashes (`"/"`). + * @param {string} fileOrDirPath The unprocessed path to convert. + * @param {string} namespacedBasePath The namespaced base path of the directory to which the calculated path shall be relative. + * @param {PathImpl} path Path-handling implementations. + * @returns {string} A relative path with all separator characters replaced by forward slashes. + */ +function toRelativePath(fileOrDirPath, namespacedBasePath, path) { + const fullPath = path.resolve(namespacedBasePath, fileOrDirPath); + const namespacedFullPath = path.toNamespacedPath(fullPath); + const relativePath = path.relative(namespacedBasePath, namespacedFullPath); + return relativePath.replaceAll(path.SEPARATOR, "/"); +} + +//------------------------------------------------------------------------------ +// Public Interface +//------------------------------------------------------------------------------ + +const ConfigArraySymbol = { + isNormalized: Symbol("isNormalized"), + configCache: Symbol("configCache"), + schema: Symbol("schema"), + finalizeConfig: Symbol("finalizeConfig"), + preprocessConfig: Symbol("preprocessConfig"), +}; + +// used to store calculate data for faster lookup +const dataCache = new WeakMap(); + +/** + * Represents an array of config objects and provides method for working with + * those config objects. + */ +class ConfigArray extends Array { + /** + * The namespaced path of the config file directory. + * @type {string} + */ + #namespacedBasePath; + + /** + * Path-handling implementations. + * @type {PathImpl} + */ + #path; + + /** + * Creates a new instance of ConfigArray. + * @param {Iterable|Function|Object} configs An iterable yielding config + * objects, or a config function, or a config object. + * @param {Object} options The options for the ConfigArray. + * @param {string} [options.basePath="/"] The absolute path of the config file directory. + * Defaults to `"/"`. + * @param {boolean} [options.normalized=false] Flag indicating if the + * configs have already been normalized. + * @param {Object} [options.schema] The additional schema + * definitions to use for the ConfigArray schema. + * @param {Array} [options.extraConfigTypes] List of config types supported. + */ + constructor( + configs, + { + basePath = "/", + normalized = false, + schema: customSchema, + extraConfigTypes = [], + } = {}, + ) { + super(); + + /** + * Tracks if the array has been normalized. + * @property isNormalized + * @type {boolean} + * @private + */ + this[ConfigArraySymbol.isNormalized] = normalized; + + /** + * The schema used for validating and merging configs. + * @property schema + * @type {ObjectSchemaInstance} + * @private + */ + this[ConfigArraySymbol.schema] = new ObjectSchema( + Object.assign({}, customSchema, baseSchema), + ); + + if (!isString(basePath) || !basePath) { + throw new TypeError("basePath must be a non-empty string"); + } + + /** + * The path of the config file that this array was loaded from. + * This is used to calculate filename matches. + * @property basePath + * @type {string} + */ + this.basePath = basePath; + + assertExtraConfigTypes(extraConfigTypes); + + /** + * The supported config types. + * @type {Array} + */ + this.extraConfigTypes = [...extraConfigTypes]; + Object.freeze(this.extraConfigTypes); + + /** + * A cache to store calculated configs for faster repeat lookup. + * @property configCache + * @type {Map} + * @private + */ + this[ConfigArraySymbol.configCache] = new Map(); + + // init cache + dataCache.set(this, { + explicitMatches: new Map(), + directoryMatches: new Map(), + files: undefined, + ignores: undefined, + }); + + // load the configs into this array + if (Array.isArray(configs)) { + this.push(...configs); + } else { + this.push(configs); + } + + // select path-handling implementations depending on the base path + this.#path = getPathImpl(basePath); + + // On Windows, `path.relative()` returns an absolute path when given two paths on different drives. + // The namespaced base path is useful to make sure that calculated relative paths are always relative. + // On Unix, it is identical to the base path. + this.#namespacedBasePath = this.#path.toNamespacedPath(basePath); + } + + /** + * Prevent normal array methods from creating a new `ConfigArray` instance. + * This is to ensure that methods such as `slice()` won't try to create a + * new instance of `ConfigArray` behind the scenes as doing so may throw + * an error due to the different constructor signature. + * @type {ArrayConstructor} The `Array` constructor. + */ + static get [Symbol.species]() { + return Array; + } + + /** + * Returns the `files` globs from every config object in the array. + * This can be used to determine which files will be matched by a + * config array or to use as a glob pattern when no patterns are provided + * for a command line interface. + * @returns {Array} An array of matchers. + */ + get files() { + assertNormalized(this); + + // if this data has been cached, retrieve it + const cache = dataCache.get(this); + + if (cache.files) { + return cache.files; + } + + // otherwise calculate it + + const result = []; + + for (const config of this) { + if (config.files) { + config.files.forEach(filePattern => { + result.push(filePattern); + }); + } + } + + // store result + cache.files = result; + dataCache.set(this, cache); + + return result; + } + + /** + * Returns ignore matchers that should always be ignored regardless of + * the matching `files` fields in any configs. This is necessary to mimic + * the behavior of things like .gitignore and .eslintignore, allowing a + * globbing operation to be faster. + * @returns {string[]} An array of string patterns and functions to be ignored. + */ + get ignores() { + assertNormalized(this); + + // if this data has been cached, retrieve it + const cache = dataCache.get(this); + + if (cache.ignores) { + return cache.ignores; + } + + // otherwise calculate it + + const result = []; + + for (const config of this) { + /* + * We only count ignores if there are no other keys in the object. + * In this case, it acts list a globally ignored pattern. If there + * are additional keys, then ignores act like exclusions. + */ + if ( + config.ignores && + Object.keys(config).filter(key => !META_FIELDS.has(key)) + .length === 1 + ) { + result.push(...config.ignores); + } + } + + // store result + cache.ignores = result; + dataCache.set(this, cache); + + return result; + } + + /** + * Indicates if the config array has been normalized. + * @returns {boolean} True if the config array is normalized, false if not. + */ + isNormalized() { + return this[ConfigArraySymbol.isNormalized]; + } + + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {Promise} The current ConfigArray instance. + */ + async normalize(context = {}) { + if (!this.isNormalized()) { + const normalizedConfigs = await normalize( + this, + context, + this.extraConfigTypes, + ); + this.length = 0; + this.push( + ...normalizedConfigs.map( + this[ConfigArraySymbol.preprocessConfig].bind(this), + ), + ); + this.forEach(assertValidBaseConfig); + this[ConfigArraySymbol.isNormalized] = true; + + // prevent further changes + Object.freeze(this); + } + + return this; + } + + /** + * Normalizes a config array by flattening embedded arrays and executing + * config functions. + * @param {Object} [context] The context object for config functions. + * @returns {ConfigArray} The current ConfigArray instance. + */ + normalizeSync(context = {}) { + if (!this.isNormalized()) { + const normalizedConfigs = normalizeSync( + this, + context, + this.extraConfigTypes, + ); + this.length = 0; + this.push( + ...normalizedConfigs.map( + this[ConfigArraySymbol.preprocessConfig].bind(this), + ), + ); + this.forEach(assertValidBaseConfig); + this[ConfigArraySymbol.isNormalized] = true; + + // prevent further changes + Object.freeze(this); + } + + return this; + } + + /* eslint-disable class-methods-use-this -- Desired as instance methods */ + + /** + * Finalizes the state of a config before being cached and returned by + * `getConfig()`. Does nothing by default but is provided to be + * overridden by subclasses as necessary. + * @param {Object} config The config to finalize. + * @returns {Object} The finalized config. + */ + [ConfigArraySymbol.finalizeConfig](config) { + return config; + } + + /** + * Preprocesses a config during the normalization process. This is the + * method to override if you want to convert an array item before it is + * validated for the first time. For example, if you want to replace a + * string with an object, this is the method to override. + * @param {Object} config The config to preprocess. + * @returns {Object} The config to use in place of the argument. + */ + [ConfigArraySymbol.preprocessConfig](config) { + return config; + } + + /* eslint-enable class-methods-use-this -- Desired as instance methods */ + + /** + * Returns the config object for a given file path and a status that can be used to determine why a file has no config. + * @param {string} filePath The path of a file to get a config for. + * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} + * An object with an optional property `config` and property `status`. + * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, + * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. + */ + getConfigWithStatus(filePath) { + assertNormalized(this); + + const cache = this[ConfigArraySymbol.configCache]; + + // first check the cache for a filename match to avoid duplicate work + if (cache.has(filePath)) { + return cache.get(filePath); + } + + // check to see if the file is outside the base path + + const relativeFilePath = toRelativePath( + filePath, + this.#namespacedBasePath, + this.#path, + ); + + if (EXTERNAL_PATH_REGEX.test(relativeFilePath)) { + debug(`No config for file ${filePath} outside of base path`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL); + return CONFIG_WITH_STATUS_EXTERNAL; + } + + // next check to see if the file should be ignored + + // check if this should be ignored due to its directory + if (this.isDirectoryIgnored(this.#path.dirname(filePath))) { + debug(`Ignoring ${filePath} based on directory pattern`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); + return CONFIG_WITH_STATUS_IGNORED; + } + + if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { + debug(`Ignoring ${filePath} based on file pattern`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); + return CONFIG_WITH_STATUS_IGNORED; + } + + // filePath isn't automatically ignored, so try to construct config + + const matchingConfigIndices = []; + let matchFound = false; + const universalPattern = /^\*$|\/\*{1,2}$/u; + + this.forEach((config, index) => { + if (!config.files) { + if (!config.ignores) { + debug(`Universal config found for ${filePath}`); + matchingConfigIndices.push(index); + return; + } + + if (pathMatchesIgnores(filePath, relativeFilePath, config)) { + debug( + `Matching config found for ${filePath} (based on ignores: ${config.ignores})`, + ); + matchingConfigIndices.push(index); + return; + } + + debug( + `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`, + ); + return; + } + + /* + * If a config has a files pattern * or patterns ending in /** or /*, + * and the filePath only matches those patterns, then the config is only + * applied if there is another config where the filePath matches + * a file with a specific extensions such as *.js. + */ + + const universalFiles = config.files.filter(pattern => + universalPattern.test(pattern), + ); + + // universal patterns were found so we need to check the config twice + if (universalFiles.length) { + debug("Universal files patterns found. Checking carefully."); + + const nonUniversalFiles = config.files.filter( + pattern => !universalPattern.test(pattern), + ); + + // check that the config matches without the non-universal files first + if ( + nonUniversalFiles.length && + pathMatches(filePath, relativeFilePath, { + files: nonUniversalFiles, + ignores: config.ignores, + }) + ) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + matchFound = true; + return; + } + + // if there wasn't a match then check if it matches with universal files + if ( + universalFiles.length && + pathMatches(filePath, relativeFilePath, { + files: universalFiles, + ignores: config.ignores, + }) + ) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + return; + } + + // if we make here, then there was no match + return; + } + + // the normal case + if (pathMatches(filePath, relativeFilePath, config)) { + debug(`Matching config found for ${filePath}`); + matchingConfigIndices.push(index); + matchFound = true; + } + }); + + // if matching both files and ignores, there will be no config to create + if (!matchFound) { + debug(`No matching configs found for ${filePath}`); + + // cache and return result + cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED); + return CONFIG_WITH_STATUS_UNCONFIGURED; + } + + // check to see if there is a config cached by indices + const indicesKey = matchingConfigIndices.toString(); + let configWithStatus = cache.get(indicesKey); + + if (configWithStatus) { + // also store for filename for faster lookup next time + cache.set(filePath, configWithStatus); + + return configWithStatus; + } + + // otherwise construct the config + + // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error + let finalConfig = matchingConfigIndices.reduce((result, index) => { + try { + return this[ConfigArraySymbol.schema].merge( + result, + this[index], + ); + } catch (validationError) { + rethrowConfigError(this[index], index, validationError); + } + }, {}); + + finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig); + + configWithStatus = Object.freeze({ + config: finalConfig, + status: "matched", + }); + cache.set(filePath, configWithStatus); + cache.set(indicesKey, configWithStatus); + + return configWithStatus; + } + + /** + * Returns the config object for a given file path. + * @param {string} filePath The path of a file to get a config for. + * @returns {Object|undefined} The config object for this file or `undefined`. + */ + getConfig(filePath) { + return this.getConfigWithStatus(filePath).config; + } + + /** + * Determines whether a file has a config or why it doesn't. + * @param {string} filePath The path of the file to check. + * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: + * * `"ignored"`: the file is ignored + * * `"external"`: the file is outside the base path + * * `"unconfigured"`: the file is not matched by any config + * * `"matched"`: the file has a matching config + */ + getConfigStatus(filePath) { + return this.getConfigWithStatus(filePath).status; + } + + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + * @deprecated Use `isFileIgnored` instead. + */ + isIgnored(filePath) { + return this.isFileIgnored(filePath); + } + + /** + * Determines if the given filepath is ignored based on the configs. + * @param {string} filePath The path of a file to check. + * @returns {boolean} True if the path is ignored, false if not. + */ + isFileIgnored(filePath) { + return this.getConfigStatus(filePath) === "ignored"; + } + + /** + * Determines if the given directory is ignored based on the configs. + * This checks only default `ignores` that don't have `files` in the + * same config. A pattern such as `/foo` be considered to ignore the directory + * while a pattern such as `/foo/**` is not considered to ignore the + * directory because it is matching files. + * @param {string} directoryPath The path of a directory to check. + * @returns {boolean} True if the directory is ignored, false if not. Will + * return true for any directory that is not inside of `basePath`. + * @throws {Error} When the `ConfigArray` is not normalized. + */ + isDirectoryIgnored(directoryPath) { + assertNormalized(this); + + const relativeDirectoryPath = toRelativePath( + directoryPath, + this.#namespacedBasePath, + this.#path, + ); + + // basePath directory can never be ignored + if (relativeDirectoryPath === "") { + return false; + } + + if (EXTERNAL_PATH_REGEX.test(relativeDirectoryPath)) { + return true; + } + + // first check the cache + const cache = dataCache.get(this).directoryMatches; + + if (cache.has(relativeDirectoryPath)) { + return cache.get(relativeDirectoryPath); + } + + const directoryParts = relativeDirectoryPath.split("/"); + let relativeDirectoryToCheck = ""; + let result; + + /* + * In order to get the correct gitignore-style ignores, where an + * ignored parent directory cannot have any descendants unignored, + * we need to check every directory starting at the parent all + * the way down to the actual requested directory. + * + * We aggressively cache all of this info to make sure we don't + * have to recalculate everything for every call. + */ + do { + relativeDirectoryToCheck += `${directoryParts.shift()}/`; + + result = shouldIgnorePath( + this.ignores, + this.#path.join(this.basePath, relativeDirectoryToCheck), + relativeDirectoryToCheck, + ); + + cache.set(relativeDirectoryToCheck, result); + } while (!result && directoryParts.length); + + // also cache the result for the requested path + cache.set(relativeDirectoryPath, result); + + return result; + } +} + +export { ConfigArray, ConfigArraySymbol }; diff --git a/node_modules/@eslint/config-array/dist/esm/std__path/posix.js b/node_modules/@eslint/config-array/dist/esm/std__path/posix.js new file mode 100644 index 00000000..f9660969 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/std__path/posix.js @@ -0,0 +1,1301 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +function assertPath(path) { + if (typeof path !== "string") { + throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function stripSuffix(name, suffix) { + if (suffix.length >= name.length) { + return name; + } + const lenDiff = name.length - suffix.length; + for(let i = suffix.length - 1; i >= 0; --i){ + if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) { + return name; + } + } + return name.slice(0, -suffix.length); +} +function lastPathSegment(path, isSep, start = 0) { + let matchedNonSeparator = false; + let end = path.length; + for(let i = path.length - 1; i >= start; --i){ + if (isSep(path.charCodeAt(i))) { + if (matchedNonSeparator) { + start = i + 1; + break; + } + } else if (!matchedNonSeparator) { + matchedNonSeparator = true; + end = i + 1; + } + } + return path.slice(start, end); +} +function assertArgs$1(path, suffix) { + assertPath(path); + if (path.length === 0) return path; + if (typeof suffix !== "string") { + throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function stripTrailingSeparators(segment, isSep) { + if (segment.length <= 1) { + return segment; + } + let end = segment.length; + for(let i = segment.length - 1; i > 0; i--){ + if (isSep(segment.charCodeAt(i))) { + end = i; + } else { + break; + } + } + return segment.slice(0, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Alphabet chars. +// Non-alphabetic chars. +const CHAR_DOT = 46; /* . */ +const CHAR_FORWARD_SLASH = 47; /* / */ + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function isPosixPathSeparator(code) { + return code === CHAR_FORWARD_SLASH; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the last portion of a `path`. + * Trailing directory separators are ignored, and optional suffix is removed. + * + * @example Usage + * ```ts + * import { basename } from "@std/path/posix/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("/home/user/Documents/"), "Documents"); + * assertEquals(basename("/home/user/Documents/image.png"), "image.png"); + * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image"); + * ``` + * + * @example Working with URLs + * + * Note: This function doesn't automatically strip hash and query parts from + * URLs. If your URL contains a hash or query, remove them before passing the + * URL to the function. This can be done by passing the URL to `new URL(url)`, + * and setting the `hash` and `search` properties to empty strings. + * + * ```ts + * import { basename } from "@std/path/posix/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts"); + * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod"); + * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b"); + * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `basename` from `@std/path/posix/unstable-basename`. + * + * @param path The path to extract the name from. + * @param suffix The suffix to remove from extracted name. + * @returns The extracted name. + */ function basename(path, suffix = "") { + assertArgs$1(path, suffix); + const lastSegment = lastPathSegment(path, isPosixPathSeparator); + const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator); + return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * The character used to separate entries in the PATH environment variable. + */ const DELIMITER = ":"; +/** + * The character used to separate components of a file path. + */ const SEPARATOR = "/"; +/** + * A regular expression that matches one or more path separators. + */ const SEPARATOR_PATTERN = /\/+/; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$3(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the directory path of a `path`. + * + * @example Usage + * ```ts + * import { dirname } from "@std/path/posix/dirname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(dirname("/home/user/Documents/"), "/home/user"); + * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path"); + * ``` + * + * @example Working with URLs + * + * ```ts + * import { dirname } from "@std/path/posix/dirname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path"); + * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `dirname` from `@std/path/posix/unstable-dirname`. + * + * @param path The path to get the directory from. + * @returns The directory path. + */ function dirname(path) { + assertArg$3(path); + let end = -1; + let matchedNonSeparator = false; + for(let i = path.length - 1; i >= 1; --i){ + if (isPosixPathSeparator(path.charCodeAt(i))) { + if (matchedNonSeparator) { + end = i; + break; + } + } else { + matchedNonSeparator = true; + } + } + // No matches. Fallback based on provided path: + // + // - leading slashes paths + // "/foo" => "/" + // "///foo" => "/" + // - no slash path + // "foo" => "." + if (end === -1) { + return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : "."; + } + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the extension of the `path` with leading period. + * + * @example Usage + * ```ts + * import { extname } from "@std/path/posix/extname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(extname("/home/user/Documents/file.ts"), ".ts"); + * assertEquals(extname("/home/user/Documents/"), ""); + * assertEquals(extname("/home/user/Documents/image.png"), ".png"); + * ``` + * + * @example Working with URLs + * + * Note: This function doesn't automatically strip hash and query parts from + * URLs. If your URL contains a hash or query, remove them before passing the + * URL to the function. This can be done by passing the URL to `new URL(url)`, + * and setting the `hash` and `search` properties to empty strings. + * + * ```ts + * import { extname } from "@std/path/posix/extname"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts"); + * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b"); + * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `extname` from `@std/path/posix/unstable-extname`. + * + * @param path The path to get the extension from. + * @returns The extension (ex. for `file.ts` returns `.ts`). + */ function extname(path) { + assertPath(path); + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + for(let i = path.length - 1; i >= 0; --i){ + const code = path.charCodeAt(i); + if (isPosixPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + return ""; + } + return path.slice(startDot, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function _format(sep, pathObject) { + const dir = pathObject.dir || pathObject.root; + const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? ""); + if (!dir) return base; + if (base === sep) return dir; + if (dir === pathObject.root) return dir + base; + return dir + sep + base; +} +function assertArg$2(pathObject) { + if (pathObject === null || typeof pathObject !== "object") { + throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Generate a path from `ParsedPath` object. + * + * @example Usage + * ```ts + * import { format } from "@std/path/posix/format"; + * import { assertEquals } from "@std/assert"; + * + * const path = format({ + * root: "/", + * dir: "/path/dir", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * assertEquals(path, "/path/dir/file.txt"); + * ``` + * + * @param pathObject The path object to format. + * @returns The formatted path. + */ function format(pathObject) { + assertArg$2(pathObject); + return _format("/", pathObject); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$1(url) { + url = url instanceof URL ? url : new URL(url); + if (url.protocol !== "file:") { + throw new TypeError(`URL must be a file URL: received "${url.protocol}"`); + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a file URL to a path string. + * + * @example Usage + * ```ts + * import { fromFileUrl } from "@std/path/posix/from-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo"); + * ``` + * + * @param url The file URL to convert. + * @returns The path string. + */ function fromFileUrl(url) { + url = assertArg$1(url); + return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25")); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Verifies whether provided path is absolute. + * + * @example Usage + * ```ts + * import { isAbsolute } from "@std/path/posix/is-absolute"; + * import { assert, assertFalse } from "@std/assert"; + * + * assert(isAbsolute("/home/user/Documents/")); + * assertFalse(isAbsolute("home/user/Documents/")); + * ``` + * + * @param path The path to verify. + * @returns Whether the path is absolute. + */ function isAbsolute(path) { + assertPath(path); + return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0)); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Resolves . and .. elements in a path with directory names +function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { + let res = ""; + let lastSegmentLength = 0; + let lastSlash = -1; + let dots = 0; + let code; + for(let i = 0; i <= path.length; ++i){ + if (i < path.length) code = path.charCodeAt(i); + else if (isPathSeparator(code)) break; + else code = CHAR_FORWARD_SLASH; + if (isPathSeparator(code)) { + if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) { + if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { + if (res.length > 2) { + const lastSlashIndex = res.lastIndexOf(separator); + if (lastSlashIndex === -1) { + res = ""; + lastSegmentLength = 0; + } else { + res = res.slice(0, lastSlashIndex); + lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); + } + lastSlash = i; + dots = 0; + continue; + } else if (res.length === 2 || res.length === 1) { + res = ""; + lastSegmentLength = 0; + lastSlash = i; + dots = 0; + continue; + } + } + if (allowAboveRoot) { + if (res.length > 0) res += `${separator}..`; + else res = ".."; + lastSegmentLength = 2; + } + } else { + if (res.length > 0) res += separator + path.slice(lastSlash + 1, i); + else res = path.slice(lastSlash + 1, i); + lastSegmentLength = i - lastSlash - 1; + } + lastSlash = i; + dots = 0; + } else if (code === CHAR_DOT && dots !== -1) { + ++dots; + } else { + dots = -1; + } + } + return res; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Normalize the `path`, resolving `'..'` and `'.'` segments. + * Note that resolving these segments does not necessarily mean that all will be eliminated. + * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`. + * + * @example Usage + * ```ts + * import { normalize } from "@std/path/posix/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const path = normalize("/foo/bar//baz/asdf/quux/.."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @example Working with URLs + * + * Note: This function will remove the double slashes from a URL's scheme. + * Hence, do not pass a full URL to this function. Instead, pass the pathname of + * the URL. + * + * ```ts + * import { normalize } from "@std/path/posix/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const url = new URL("https://deno.land"); + * url.pathname = normalize("//std//assert//.//mod.ts"); + * assertEquals(url.href, "https://deno.land/std/assert/mod.ts"); + * + * url.pathname = normalize("std/assert/../async/retry.ts"); + * assertEquals(url.href, "https://deno.land/std/async/retry.ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `normalize` from `@std/path/posix/unstable-normalize`. + * + * @param path The path to normalize. + * @returns The normalized path. + */ function normalize(path) { + assertArg(path); + const isAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1)); + // Normalize the path + path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator); + if (path.length === 0 && !isAbsolute) path = "."; + if (path.length > 0 && trailingSeparator) path += "/"; + if (isAbsolute) return `/${path}`; + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Join all given a sequence of `paths`,then normalizes the resulting path. + * + * @example Usage + * ```ts + * import { join } from "@std/path/posix/join"; + * import { assertEquals } from "@std/assert"; + * + * const path = join("/foo", "bar", "baz/asdf", "quux", ".."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @example Working with URLs + * ```ts + * import { join } from "@std/path/posix/join"; + * import { assertEquals } from "@std/assert"; + * + * const url = new URL("https://deno.land"); + * url.pathname = join("std", "path", "mod.ts"); + * assertEquals(url.href, "https://deno.land/std/path/mod.ts"); + * + * url.pathname = join("//std", "path/", "/mod.ts"); + * assertEquals(url.href, "https://deno.land/std/path/mod.ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `join` from `@std/path/posix/unstable-join`. + * + * @param paths The paths to join. + * @returns The joined path. + */ function join(...paths) { + if (paths.length === 0) return "."; + paths.forEach((path)=>assertPath(path)); + const joined = paths.filter((path)=>path.length > 0).join("/"); + return joined === "" ? "." : normalize(joined); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return a `ParsedPath` object of the `path`. + * + * @example Usage + * ```ts + * import { parse } from "@std/path/posix/parse"; + * import { assertEquals } from "@std/assert"; + * + * const path = parse("/home/user/file.txt"); + * assertEquals(path, { + * root: "/", + * dir: "/home/user", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * ``` + * + * @param path The path to parse. + * @returns The parsed path object. + */ function parse(path) { + assertPath(path); + const ret = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + if (path.length === 0) return ret; + const isAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + let start; + if (isAbsolute) { + ret.root = "/"; + start = 1; + } else { + start = 0; + } + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + let i = path.length - 1; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Get non-dir info + for(; i >= start; --i){ + const code = path.charCodeAt(i); + if (isPosixPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + if (end !== -1) { + if (startPart === 0 && isAbsolute) { + ret.base = ret.name = path.slice(1, end); + } else { + ret.base = ret.name = path.slice(startPart, end); + } + } + // Fallback to '/' in case there is no basename + ret.base = ret.base || "/"; + } else { + if (startPart === 0 && isAbsolute) { + ret.name = path.slice(1, startDot); + ret.base = path.slice(1, end); + } else { + ret.name = path.slice(startPart, startDot); + ret.base = path.slice(startPart, end); + } + ret.ext = path.slice(startDot, end); + } + if (startPart > 0) { + ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator); + } else if (isAbsolute) ret.dir = "/"; + return ret; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path segments into a `path`. + * + * @example Usage + * ```ts + * import { resolve } from "@std/path/posix/resolve"; + * import { assertEquals } from "@std/assert"; + * + * const path = resolve("/foo", "bar", "baz/asdf", "quux", ".."); + * assertEquals(path, "/foo/bar/baz/asdf"); + * ``` + * + * @param pathSegments The path segments to resolve. + * @returns The resolved path. + */ function resolve(...pathSegments) { + let resolvedPath = ""; + let resolvedAbsolute = false; + for(let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--){ + let path; + if (i >= 0) path = pathSegments[i]; + else { + // deno-lint-ignore no-explicit-any + const { Deno } = globalThis; + if (typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a relative path without a current working directory (CWD)"); + } + path = Deno.cwd(); + } + assertPath(path); + // Skip empty entries + if (path.length === 0) { + continue; + } + resolvedPath = `${path}/${resolvedPath}`; + resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0)); + } + // At this point the path should be resolved to a full absolute path, but + // handle relative paths to be safe (might happen when Deno.cwd() fails) + // Normalize the path + resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator); + if (resolvedAbsolute) { + if (resolvedPath.length > 0) return `/${resolvedPath}`; + else return "/"; + } else if (resolvedPath.length > 0) return resolvedPath; + else return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArgs(from, to) { + assertPath(from); + assertPath(to); + if (from === to) return ""; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the relative path from `from` to `to` based on current working directory. + * + * If `from` and `to` are the same, return an empty string. + * + * @example Usage + * ```ts + * import { relative } from "@std/path/posix/relative"; + * import { assertEquals } from "@std/assert"; + * + * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb"); + * assertEquals(path, "../../impl/bbb"); + * ``` + * + * @param from The path to start from. + * @param to The path to reach. + * @returns The relative path. + */ function relative(from, to) { + assertArgs(from, to); + from = resolve(from); + to = resolve(to); + if (from === to) return ""; + // Trim any leading backslashes + let fromStart = 1; + const fromEnd = from.length; + for(; fromStart < fromEnd; ++fromStart){ + if (!isPosixPathSeparator(from.charCodeAt(fromStart))) break; + } + const fromLen = fromEnd - fromStart; + // Trim any leading backslashes + let toStart = 1; + const toEnd = to.length; + for(; toStart < toEnd; ++toStart){ + if (!isPosixPathSeparator(to.charCodeAt(toStart))) break; + } + const toLen = toEnd - toStart; + // Compare paths to find the longest common path from root + const length = fromLen < toLen ? fromLen : toLen; + let lastCommonSep = -1; + let i = 0; + for(; i <= length; ++i){ + if (i === length) { + if (toLen > length) { + if (isPosixPathSeparator(to.charCodeAt(toStart + i))) { + // We get here if `from` is the exact base path for `to`. + // For example: from='/foo/bar'; to='/foo/bar/baz' + return to.slice(toStart + i + 1); + } else if (i === 0) { + // We get here if `from` is the root + // For example: from='/'; to='/foo' + return to.slice(toStart + i); + } + } else if (fromLen > length) { + if (isPosixPathSeparator(from.charCodeAt(fromStart + i))) { + // We get here if `to` is the exact base path for `from`. + // For example: from='/foo/bar/baz'; to='/foo/bar' + lastCommonSep = i; + } else if (i === 0) { + // We get here if `to` is the root. + // For example: from='/foo'; to='/' + lastCommonSep = 0; + } + } + break; + } + const fromCode = from.charCodeAt(fromStart + i); + const toCode = to.charCodeAt(toStart + i); + if (fromCode !== toCode) break; + else if (isPosixPathSeparator(fromCode)) lastCommonSep = i; + } + let out = ""; + // Generate the relative path based on the path difference between `to` + // and `from` + for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){ + if (i === fromEnd || isPosixPathSeparator(from.charCodeAt(i))) { + if (out.length === 0) out += ".."; + else out += "/.."; + } + } + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts + if (out.length > 0) return out + to.slice(toStart + lastCommonSep); + else { + toStart += lastCommonSep; + if (isPosixPathSeparator(to.charCodeAt(toStart))) ++toStart; + return to.slice(toStart); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const WHITESPACE_ENCODINGS = { + "\u0009": "%09", + "\u000A": "%0A", + "\u000B": "%0B", + "\u000C": "%0C", + "\u000D": "%0D", + "\u0020": "%20" +}; +function encodeWhitespace(string) { + return string.replaceAll(/[\s]/g, (c)=>{ + return WHITESPACE_ENCODINGS[c] ?? c; + }); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path string to a file URL. + * + * @example Usage + * ```ts + * import { toFileUrl } from "@std/path/posix/to-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo")); + * assertEquals(toFileUrl("/home/foo bar"), new URL("file:///home/foo%20bar")); + * ``` + * + * @param path The path to convert. + * @returns The file URL. + */ function toFileUrl(path) { + if (!isAbsolute(path)) { + throw new TypeError(`Path must be absolute: received "${path}"`); + } + const url = new URL("file:///"); + url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C")); + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path to a namespaced path. This function returns the path as is on posix. + * + * @example Usage + * ```ts + * import { toNamespacedPath } from "@std/path/posix/to-namespaced-path"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toNamespacedPath("/home/foo"), "/home/foo"); + * ``` + * + * @param path The path. + * @returns The namespaced path. + */ function toNamespacedPath(path) { + // Non-op on posix systems + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function common$1(paths, sep) { + const [first = "", ...remaining] = paths; + const parts = first.split(sep); + let endOfPrefix = parts.length; + let append = ""; + for (const path of remaining){ + const compare = path.split(sep); + if (compare.length <= endOfPrefix) { + endOfPrefix = compare.length; + append = ""; + } + for(let i = 0; i < endOfPrefix; i++){ + if (compare[i] !== parts[i]) { + endOfPrefix = i; + append = i === 0 ? "" : sep; + break; + } + } + } + return parts.slice(0, endOfPrefix).join(sep) + append; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** Determines the common path from a set of paths for POSIX systems. + * + * @example Usage + * ```ts + * import { common } from "@std/path/posix/common"; + * import { assertEquals } from "@std/assert"; + * + * const path = common([ + * "./deno/std/path/mod.ts", + * "./deno/std/fs/mod.ts", + * ]); + * assertEquals(path, "./deno/std/"); + * ``` + * + * @param paths The paths to compare. + * @returns The common path. + */ function common(paths) { + return common$1(paths, SEPARATOR); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs}, + * {@linkcode normalizeGlob} and {@linkcode expandGlob}. + */ const REG_EXP_ESCAPE_CHARS = [ + "!", + "$", + "(", + ")", + "*", + "+", + ".", + "=", + "?", + "[", + "\\", + "^", + "{", + "|" +]; +const RANGE_ESCAPE_CHARS = [ + "-", + "\\", + "]" +]; +function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType, +caseInsensitive = false } = {}) { + if (glob === "") { + return /(?!)/; + } + // Remove trailing separators. + let newLength = glob.length; + for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--); + glob = glob.slice(0, newLength); + let regExpString = ""; + // Terminates correctly. Trust that `j` is incremented every iteration. + for(let j = 0; j < glob.length;){ + let segment = ""; + const groupStack = []; + let inRange = false; + let inEscape = false; + let endsWithSep = false; + let i = j; + // Terminates with `i` at the non-inclusive end of the current segment. + for(; i < glob.length && !c.seps.includes(glob[i]); i++){ + if (inEscape) { + inEscape = false; + const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS; + segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + continue; + } + if (glob[i] === c.escapePrefix) { + inEscape = true; + continue; + } + if (glob[i] === "[") { + if (!inRange) { + inRange = true; + segment += "["; + if (glob[i + 1] === "!") { + i++; + segment += "^"; + } else if (glob[i + 1] === "^") { + i++; + segment += "\\^"; + } + continue; + } else if (glob[i + 1] === ":") { + let k = i + 1; + let value = ""; + while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){ + value += glob[k + 1]; + k++; + } + if (glob[k + 1] === ":" && glob[k + 2] === "]") { + i = k + 2; + if (value === "alnum") segment += "\\dA-Za-z"; + else if (value === "alpha") segment += "A-Za-z"; + else if (value === "ascii") segment += "\x00-\x7F"; + else if (value === "blank") segment += "\t "; + else if (value === "cntrl") segment += "\x00-\x1F\x7F"; + else if (value === "digit") segment += "\\d"; + else if (value === "graph") segment += "\x21-\x7E"; + else if (value === "lower") segment += "a-z"; + else if (value === "print") segment += "\x20-\x7E"; + else if (value === "punct") { + segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~"; + } else if (value === "space") segment += "\\s\v"; + else if (value === "upper") segment += "A-Z"; + else if (value === "word") segment += "\\w"; + else if (value === "xdigit") segment += "\\dA-Fa-f"; + continue; + } + } + } + if (glob[i] === "]" && inRange) { + inRange = false; + segment += "]"; + continue; + } + if (inRange) { + segment += glob[i]; + continue; + } + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += ")"; + const type = groupStack.pop(); + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { + segment += type; + } + continue; + } + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "+" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("+"); + segment += "(?:"; + continue; + } + if (glob[i] === "@" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("@"); + segment += "(?:"; + continue; + } + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("?"); + segment += "(?:"; + } else { + segment += "."; + } + continue; + } + if (glob[i] === "!" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("!"); + segment += "(?!"; + continue; + } + if (glob[i] === "{") { + groupStack.push("BRACE"); + segment += "(?:"; + continue; + } + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { + groupStack.pop(); + segment += ")"; + continue; + } + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("*"); + segment += "(?:"; + } else { + const prevChar = glob[i - 1]; + let numStars = 1; + while(glob[i + 1] === "*"){ + i++; + numStars++; + } + const nextChar = glob[i + 1]; + if (globstarOption && numStars === 2 && [ + ...c.seps, + undefined + ].includes(prevChar) && [ + ...c.seps, + undefined + ].includes(nextChar)) { + segment += c.globstar; + endsWithSep = true; + } else { + segment += c.wildcard; + } + } + continue; + } + segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + } + // Check for unclosed groups or a dangling backslash. + if (groupStack.length > 0 || inRange || inEscape) { + // Parse failure. Take all characters from this segment literally. + segment = ""; + for (const c of glob.slice(j, i)){ + segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c; + endsWithSep = false; + } + } + regExpString += segment; + if (!endsWithSep) { + regExpString += i < glob.length ? c.sep : c.sepMaybe; + endsWithSep = true; + } + // Terminates with `i` at the start of the next segment. + while(c.seps.includes(glob[i]))i++; + j = i; + } + regExpString = `^${regExpString}$`; + return new RegExp(regExpString, caseInsensitive ? "i" : ""); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const constants = { + sep: "/+", + sepMaybe: "/*", + seps: [ + "/" + ], + globstar: "(?:[^/]*(?:/|$)+)*", + wildcard: "[^/]*", + escapePrefix: "\\" +}; +/** Convert a glob string to a regular expression. + * + * Tries to match bash glob expansion as closely as possible. + * + * Basic glob syntax: + * - `*` - Matches everything without leaving the path segment. + * - `?` - Matches any single character. + * - `{foo,bar}` - Matches `foo` or `bar`. + * - `[abcd]` - Matches `a`, `b`, `c` or `d`. + * - `[a-d]` - Matches `a`, `b`, `c` or `d`. + * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`. + * - `[[::]]` - Matches any character belonging to ``. + * - `[[:alnum:]]` - Matches any digit or letter. + * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`. + * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes + * for a complete list of supported character classes. + * - `\` - Escapes the next character for an `os` other than `"windows"`. + * - \` - Escapes the next character for `os` set to `"windows"`. + * - `/` - Path separator. + * - `\` - Additional path separator only for `os` set to `"windows"`. + * + * Extended syntax: + * - Requires `{ extended: true }`. + * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`. + * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same. + * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`. + * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`. + * - `!(foo|bar)` - Matches anything other than `{foo,bar}`. + * - See https://www.linuxjournal.com/content/bash-extended-globbing. + * + * Globstar syntax: + * - Requires `{ globstar: true }`. + * - `**` - Matches any number of any path segments. + * - Must comprise its entire path segment in the provided glob. + * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option. + * + * Note the following properties: + * - The generated `RegExp` is anchored at both start and end. + * - Repeating and trailing separators are tolerated. Trailing separators in the + * provided glob have no meaning and are discarded. + * - Absolute globs will only match absolute paths, etc. + * - Empty globs will match nothing. + * - Any special glob syntax must be contained to one path segment. For example, + * `?(foo|bar/baz)` is invalid. The separator will take precedence and the + * first segment ends with an unclosed group. + * - If a path segment ends with unclosed groups or a dangling escape prefix, a + * parse error has occurred. Every character for that segment is taken + * literally in this event. + * + * Limitations: + * - A negative group like `!(foo|bar)` will wrongly be converted to a negative + * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly + * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively, + * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if + * the group occurs not nested at the end of the segment. + * + * @example Usage + * ```ts + * import { globToRegExp } from "@std/path/posix/glob-to-regexp"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/); + * ``` + * + * @param glob Glob string to convert. + * @param options Conversion options. + * @returns The regular expression equivalent to the glob. + */ function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Test whether the given string is a glob. + * + * @example Usage + * ```ts + * import { isGlob } from "@std/path/is-glob"; + * import { assert } from "@std/assert"; + * + * assert(!isGlob("foo/bar/../baz")); + * assert(isGlob("foo/*ar/../baz")); + * ``` + * + * @param str String to test. + * @returns `true` if the given string is a glob, otherwise `false` + */ function isGlob(str) { + const chars = { + "{": "}", + "(": ")", + "[": "]" + }; + const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; + if (str === "") { + return false; + } + let match; + while(match = regex.exec(str)){ + if (match[2]) return true; + let idx = match.index + match[0].length; + // if an open bracket/brace/paren is escaped, + // set the index to the next closing character + const open = match[1]; + const close = open ? chars[open] : null; + if (open && close) { + const n = str.indexOf(close, idx); + if (n !== -1) { + idx = n + 1; + } + } + str = str.slice(idx); + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { normalizeGlob } from "@std/path/posix/normalize-glob"; + * import { assertEquals } from "@std/assert"; + * + * const path = normalizeGlob("foo/bar/../*", { globstar: true }); + * assertEquals(path, "foo/*"); + * ``` + * + * @param glob The glob to normalize. + * @param options The options to use. + * @returns The normalized path. + */ function normalizeGlob(glob, { globstar = false } = {}) { + if (glob.match(/\0/g)) { + throw new Error(`Glob contains invalid characters: "${glob}"`); + } + if (!globstar) { + return normalize(glob); + } + const s = SEPARATOR_PATTERN.source; + const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g"); + return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, ".."); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like join(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { joinGlobs } from "@std/path/posix/join-globs"; + * import { assertEquals } from "@std/assert"; + * + * const path = joinGlobs(["foo", "bar", "**"], { globstar: true }); + * assertEquals(path, "foo/bar/**"); + * ``` + * + * @param globs The globs to join. + * @param options The options to use. + * @returns The joined path. + */ function joinGlobs(globs, { extended = true, globstar = false } = {}) { + if (!globstar || globs.length === 0) { + return join(...globs); + } + let joined; + for (const glob of globs){ + const path = glob; + if (path.length > 0) { + if (!joined) joined = path; + else joined += `${SEPARATOR}${path}`; + } + } + if (!joined) return "."; + return normalizeGlob(joined, { + extended, + globstar + }); +} + +export { DELIMITER, SEPARATOR, SEPARATOR_PATTERN, basename, common, dirname, extname, format, fromFileUrl, globToRegExp, isAbsolute, isGlob, join, joinGlobs, normalize, normalizeGlob, parse, relative, resolve, toFileUrl, toNamespacedPath }; diff --git a/node_modules/@eslint/config-array/dist/esm/std__path/windows.js b/node_modules/@eslint/config-array/dist/esm/std__path/windows.js new file mode 100644 index 00000000..ae8759d8 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/std__path/windows.js @@ -0,0 +1,1647 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +function assertPath(path) { + if (typeof path !== "string") { + throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function stripSuffix(name, suffix) { + if (suffix.length >= name.length) { + return name; + } + const lenDiff = name.length - suffix.length; + for(let i = suffix.length - 1; i >= 0; --i){ + if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) { + return name; + } + } + return name.slice(0, -suffix.length); +} +function lastPathSegment(path, isSep, start = 0) { + let matchedNonSeparator = false; + let end = path.length; + for(let i = path.length - 1; i >= start; --i){ + if (isSep(path.charCodeAt(i))) { + if (matchedNonSeparator) { + start = i + 1; + break; + } + } else if (!matchedNonSeparator) { + matchedNonSeparator = true; + end = i + 1; + } + } + return path.slice(start, end); +} +function assertArgs$1(path, suffix) { + assertPath(path); + if (path.length === 0) return path; + if (typeof suffix !== "string") { + throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Alphabet chars. +const CHAR_UPPERCASE_A = 65; /* A */ +const CHAR_LOWERCASE_A = 97; /* a */ +const CHAR_UPPERCASE_Z = 90; /* Z */ +const CHAR_LOWERCASE_Z = 122; /* z */ +// Non-alphabetic chars. +const CHAR_DOT = 46; /* . */ +const CHAR_FORWARD_SLASH = 47; /* / */ +const CHAR_BACKWARD_SLASH = 92; /* \ */ +const CHAR_COLON = 58; /* : */ +const CHAR_QUESTION_MARK = 63; /* ? */ + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function stripTrailingSeparators(segment, isSep) { + if (segment.length <= 1) { + return segment; + } + let end = segment.length; + for(let i = segment.length - 1; i > 0; i--){ + if (isSep(segment.charCodeAt(i))) { + end = i; + } else { + break; + } + } + return segment.slice(0, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +function isPosixPathSeparator(code) { + return code === CHAR_FORWARD_SLASH; +} +function isPathSeparator(code) { + return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; +} +function isWindowsDeviceRoot(code) { + return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the last portion of a `path`. + * Trailing directory separators are ignored, and optional suffix is removed. + * + * @example Usage + * ```ts + * import { basename } from "@std/path/windows/basename"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(basename("C:\\user\\Documents\\"), "Documents"); + * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png"); + * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `basename` from `@std/path/windows/unstable-basename`. + * + * @param path The path to extract the name from. + * @param suffix The suffix to remove from extracted name. + * @returns The extracted name. + */ function basename(path, suffix = "") { + assertArgs$1(path, suffix); + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded + let start = 0; + if (path.length >= 2) { + const drive = path.charCodeAt(0); + if (isWindowsDeviceRoot(drive)) { + if (path.charCodeAt(1) === CHAR_COLON) start = 2; + } + } + const lastSegment = lastPathSegment(path, isPathSeparator, start); + const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator); + return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * The character used to separate entries in the PATH environment variable. + */ const DELIMITER = ";"; +/** + * The character used to separate components of a file path. + */ const SEPARATOR = "\\"; +/** + * A regular expression that matches one or more path separators. + */ const SEPARATOR_PATTERN = /[\\/]+/; + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$3(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the directory path of a `path`. + * + * @example Usage + * ```ts + * import { dirname } from "@std/path/windows/dirname"; + * import { assertEquals } from "@std/assert"; + * + * const dir = dirname("C:\\foo\\bar\\baz.ext"); + * assertEquals(dir, "C:\\foo\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `dirname` from `@std/path/windows/unstable-dirname`. + * + * @param path The path to get the directory from. + * @returns The directory path. + */ function dirname(path) { + assertArg$3(path); + const len = path.length; + let rootEnd = -1; + let end = -1; + let matchedSlash = true; + let offset = 0; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = offset = 1; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + return path; + } + if (j !== last) { + // We matched a UNC root with leftovers + // Offset by 1 to include the separator after the UNC root to + // treat it as a "normal root" on top of a (UNC) root + rootEnd = offset = j + 1; + } + } + } + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + rootEnd = offset = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3; + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work + return path; + } + for(let i = len - 1; i >= offset; --i){ + if (isPathSeparator(path.charCodeAt(i))) { + if (!matchedSlash) { + end = i; + break; + } + } else { + // We saw the first non-path separator + matchedSlash = false; + } + } + if (end === -1) { + if (rootEnd === -1) return "."; + else end = rootEnd; + } + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the extension of the `path` with leading period. + * + * @example Usage + * ```ts + * import { extname } from "@std/path/windows/extname"; + * import { assertEquals } from "@std/assert"; + * + * const ext = extname("file.ts"); + * assertEquals(ext, ".ts"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `extname` from `@std/path/windows/unstable-extname`. + * + * @param path The path to get the extension from. + * @returns The extension of the `path`. + */ function extname(path) { + assertPath(path); + let start = 0; + let startDot = -1; + let startPart = 0; + let end = -1; + let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded + if (path.length >= 2 && path.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path.charCodeAt(0))) { + start = startPart = 2; + } + for(let i = path.length - 1; i >= start; --i){ + const code = path.charCodeAt(i); + if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + return ""; + } + return path.slice(startDot, end); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function _format(sep, pathObject) { + const dir = pathObject.dir || pathObject.root; + const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? ""); + if (!dir) return base; + if (base === sep) return dir; + if (dir === pathObject.root) return dir + base; + return dir + sep + base; +} +function assertArg$2(pathObject) { + if (pathObject === null || typeof pathObject !== "object") { + throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Generate a path from `ParsedPath` object. + * + * @example Usage + * ```ts + * import { format } from "@std/path/windows/format"; + * import { assertEquals } from "@std/assert"; + * + * const path = format({ + * root: "C:\\", + * dir: "C:\\path\\dir", + * base: "file.txt", + * ext: ".txt", + * name: "file" + * }); + * assertEquals(path, "C:\\path\\dir\\file.txt"); + * ``` + * + * @param pathObject The path object to format. + * @returns The formatted path. + */ function format(pathObject) { + assertArg$2(pathObject); + return _format("\\", pathObject); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg$1(url) { + url = url instanceof URL ? url : new URL(url); + if (url.protocol !== "file:") { + throw new TypeError(`URL must be a file URL: received "${url.protocol}"`); + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a file URL to a path string. + * + * @example Usage + * ```ts + * import { fromFileUrl } from "@std/path/windows/from-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo"); + * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo"); + * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo"); + * ``` + * + * @param url The file URL to convert. + * @returns The path string. + */ function fromFileUrl(url) { + url = assertArg$1(url); + let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\"); + if (url.hostname !== "") { + // Note: The `URL` implementation guarantees that the drive letter and + // hostname are mutually exclusive. Otherwise it would not have been valid + // to append the hostname and path like this. + path = `\\\\${url.hostname}${path}`; + } + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Verifies whether provided path is absolute. + * + * @example Usage + * ```ts + * import { isAbsolute } from "@std/path/windows/is-absolute"; + * import { assert, assertFalse } from "@std/assert"; + * + * assert(isAbsolute("C:\\foo\\bar")); + * assertFalse(isAbsolute("..\\baz")); + * ``` + * + * @param path The path to verify. + * @returns `true` if the path is absolute, `false` otherwise. + */ function isAbsolute(path) { + assertPath(path); + const len = path.length; + if (len === 0) return false; + const code = path.charCodeAt(0); + if (isPathSeparator(code)) { + return true; + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (len > 2 && path.charCodeAt(1) === CHAR_COLON) { + if (isPathSeparator(path.charCodeAt(2))) return true; + } + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArg(path) { + assertPath(path); + if (path.length === 0) return "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// Copyright the Browserify authors. MIT License. +// Ported from https://github.com/browserify/path-browserify/ +// This module is browser compatible. +// Resolves . and .. elements in a path with directory names +function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { + let res = ""; + let lastSegmentLength = 0; + let lastSlash = -1; + let dots = 0; + let code; + for(let i = 0; i <= path.length; ++i){ + if (i < path.length) code = path.charCodeAt(i); + else if (isPathSeparator(code)) break; + else code = CHAR_FORWARD_SLASH; + if (isPathSeparator(code)) { + if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) { + if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { + if (res.length > 2) { + const lastSlashIndex = res.lastIndexOf(separator); + if (lastSlashIndex === -1) { + res = ""; + lastSegmentLength = 0; + } else { + res = res.slice(0, lastSlashIndex); + lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); + } + lastSlash = i; + dots = 0; + continue; + } else if (res.length === 2 || res.length === 1) { + res = ""; + lastSegmentLength = 0; + lastSlash = i; + dots = 0; + continue; + } + } + if (allowAboveRoot) { + if (res.length > 0) res += `${separator}..`; + else res = ".."; + lastSegmentLength = 2; + } + } else { + if (res.length > 0) res += separator + path.slice(lastSlash + 1, i); + else res = path.slice(lastSlash + 1, i); + lastSegmentLength = i - lastSlash - 1; + } + lastSlash = i; + dots = 0; + } else if (code === CHAR_DOT && dots !== -1) { + ++dots; + } else { + dots = -1; + } + } + return res; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Normalize the `path`, resolving `'..'` and `'.'` segments. + * Note that resolving these segments does not necessarily mean that all will be eliminated. + * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`. + * + * @example Usage + * ```ts + * import { normalize } from "@std/path/windows/normalize"; + * import { assertEquals } from "@std/assert"; + * + * const normalized = normalize("C:\\foo\\..\\bar"); + * assertEquals(normalized, "C:\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `normalize` from `@std/path/windows/unstable-normalize`. + * + * @param path The path to normalize + * @returns The normalized path + */ function normalize(path) { + assertArg(path); + const len = path.length; + let rootEnd = 0; + let device; + let isAbsolute = false; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + // If we started with a separator, we know we at least have an absolute + // path of some kind (UNC or otherwise) + isAbsolute = true; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + const firstPart = path.slice(last, j); + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + // Return the normalized version of the UNC root since there + // is nothing left to process + return `\\\\${firstPart}\\${path.slice(last)}\\`; + } else if (j !== last) { + // We matched a UNC root with leftovers + device = `\\\\${firstPart}\\${path.slice(last, j)}`; + rootEnd = j; + } + } + } + } else { + rootEnd = 1; + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + device = path.slice(0, 2); + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + // Treat separator following drive name as an absolute path + // indicator + isAbsolute = true; + rootEnd = 3; + } + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid unnecessary + // work + return "\\"; + } + let tail; + if (rootEnd < len) { + tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator); + } else { + tail = ""; + } + if (tail.length === 0 && !isAbsolute) tail = "."; + if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) { + tail += "\\"; + } + if (device === undefined) { + if (isAbsolute) { + if (tail.length > 0) return `\\${tail}`; + else return "\\"; + } + return tail; + } else if (isAbsolute) { + if (tail.length > 0) return `${device}\\${tail}`; + else return `${device}\\`; + } + return device + tail; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Join all given a sequence of `paths`,then normalizes the resulting path. + * + * @example Usage + * ```ts + * import { join } from "@std/path/windows/join"; + * import { assertEquals } from "@std/assert"; + * + * const joined = join("C:\\foo", "bar", "baz\\.."); + * assertEquals(joined, "C:\\foo\\bar"); + * ``` + * + * Note: If you are working with file URLs, + * use the new version of `join` from `@std/path/windows/unstable-join`. + * + * @param paths The paths to join. + * @returns The joined path. + */ function join(...paths) { + paths.forEach((path)=>assertPath(path)); + paths = paths.filter((path)=>path.length > 0); + if (paths.length === 0) return "."; + // Make sure that the joined path doesn't start with two slashes, because + // normalize() will mistake it for an UNC path then. + // + // This step is skipped when it is very clear that the user actually + // intended to point at an UNC path. This is assumed when the first + // non-empty string arguments starts with exactly two slashes followed by + // at least one more non-slash character. + // + // Note that for normalize() to treat a path as an UNC path it needs to + // have at least 2 components, so we don't filter for that here. + // This means that the user can use join to construct UNC paths from + // a server name and a share name; for example: + // path.join('//server', 'share') -> '\\\\server\\share\\' + let needsReplace = true; + let slashCount = 0; + const firstPart = paths[0]; + if (isPathSeparator(firstPart.charCodeAt(0))) { + ++slashCount; + const firstLen = firstPart.length; + if (firstLen > 1) { + if (isPathSeparator(firstPart.charCodeAt(1))) { + ++slashCount; + if (firstLen > 2) { + if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount; + else { + // We matched a UNC path in the first part + needsReplace = false; + } + } + } + } + } + let joined = paths.join("\\"); + if (needsReplace) { + // Find any more consecutive slashes we need to replace + for(; slashCount < joined.length; ++slashCount){ + if (!isPathSeparator(joined.charCodeAt(slashCount))) break; + } + // Replace the slashes if needed + if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`; + } + return normalize(joined); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return a `ParsedPath` object of the `path`. + * + * @example Usage + * ```ts + * import { parse } from "@std/path/windows/parse"; + * import { assertEquals } from "@std/assert"; + * + * const parsed = parse("C:\\foo\\bar\\baz.ext"); + * assertEquals(parsed, { + * root: "C:\\", + * dir: "C:\\foo\\bar", + * base: "baz.ext", + * ext: ".ext", + * name: "baz", + * }); + * ``` + * + * @param path The path to parse. + * @returns The `ParsedPath` object. + */ function parse(path) { + assertPath(path); + const ret = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + const len = path.length; + if (len === 0) return ret; + let rootEnd = 0; + let code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = 1; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + rootEnd = j; + } else if (j !== last) { + // We matched a UNC root with leftovers + rootEnd = j + 1; + } + } + } + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + if (len === 3) { + // `path` contains just a drive root, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + ret.base = "\\"; + return ret; + } + rootEnd = 3; + } + } else { + // `path` contains just a relative drive root, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + return ret; + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work + ret.root = ret.dir = path; + ret.base = "\\"; + return ret; + } + if (rootEnd > 0) ret.root = path.slice(0, rootEnd); + let startDot = -1; + let startPart = rootEnd; + let end = -1; + let matchedSlash = true; + let i = path.length - 1; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find + let preDotState = 0; + // Get non-dir info + for(; i >= rootEnd; --i){ + code = path.charCodeAt(i); + if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now + if (!matchedSlash) { + startPart = i + 1; + break; + } + continue; + } + if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension + matchedSlash = false; + end = i + 1; + } + if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension + if (startDot === -1) startDot = i; + else if (preDotState !== 1) preDotState = 1; + } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension + preDotState = -1; + } + } + if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot + preDotState === 0 || // The (right-most) trimmed path component is exactly '..' + preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { + if (end !== -1) { + ret.base = ret.name = path.slice(startPart, end); + } + } else { + ret.name = path.slice(startPart, startDot); + ret.base = path.slice(startPart, end); + ret.ext = path.slice(startDot, end); + } + // Fallback to '\' in case there is no basename + ret.base = ret.base || "\\"; + // If the directory is the root, use the entire root as the `dir` including + // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the + // trailing slash (`C:\abc\def` -> `C:\abc`). + if (startPart > 0 && startPart !== rootEnd) { + ret.dir = path.slice(0, startPart - 1); + } else ret.dir = ret.root; + return ret; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path segments into a `path`. + * + * @example Usage + * ```ts + * import { resolve } from "@std/path/windows/resolve"; + * import { assertEquals } from "@std/assert"; + * + * const resolved = resolve("C:\\foo\\bar", "..\\baz"); + * assertEquals(resolved, "C:\\foo\\baz"); + * ``` + * + * @param pathSegments The path segments to process to path + * @returns The resolved path + */ function resolve(...pathSegments) { + let resolvedDevice = ""; + let resolvedTail = ""; + let resolvedAbsolute = false; + for(let i = pathSegments.length - 1; i >= -1; i--){ + let path; + // deno-lint-ignore no-explicit-any + const { Deno } = globalThis; + if (i >= 0) { + path = pathSegments[i]; + } else if (!resolvedDevice) { + if (typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)"); + } + path = Deno.cwd(); + } else { + if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") { + throw new TypeError("Resolved a relative path without a current working directory (CWD)"); + } + path = Deno.cwd(); + // Verify that a cwd was found and that it actually points + // to our drive. If not, default to the drive's root. + if (path === undefined || path.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) { + path = `${resolvedDevice}\\`; + } + } + assertPath(path); + const len = path.length; + // Skip empty entries + if (len === 0) continue; + let rootEnd = 0; + let device = ""; + let isAbsolute = false; + const code = path.charCodeAt(0); + // Try to match a root + if (len > 1) { + if (isPathSeparator(code)) { + // Possible UNC root + // If we started with a separator, we know we at least have an + // absolute path of some kind (UNC or otherwise) + isAbsolute = true; + if (isPathSeparator(path.charCodeAt(1))) { + // Matched double path separator at beginning + let j = 2; + let last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + const firstPart = path.slice(last, j); + // Matched! + last = j; + // Match 1 or more path separators + for(; j < len; ++j){ + if (!isPathSeparator(path.charCodeAt(j))) break; + } + if (j < len && j !== last) { + // Matched! + last = j; + // Match 1 or more non-path separators + for(; j < len; ++j){ + if (isPathSeparator(path.charCodeAt(j))) break; + } + if (j === len) { + // We matched a UNC root only + device = `\\\\${firstPart}\\${path.slice(last)}`; + rootEnd = j; + } else if (j !== last) { + // We matched a UNC root with leftovers + device = `\\\\${firstPart}\\${path.slice(last, j)}`; + rootEnd = j; + } + } + } + } else { + rootEnd = 1; + } + } else if (isWindowsDeviceRoot(code)) { + // Possible device root + if (path.charCodeAt(1) === CHAR_COLON) { + device = path.slice(0, 2); + rootEnd = 2; + if (len > 2) { + if (isPathSeparator(path.charCodeAt(2))) { + // Treat separator following drive name as an absolute path + // indicator + isAbsolute = true; + rootEnd = 3; + } + } + } + } + } else if (isPathSeparator(code)) { + // `path` contains just a path separator + rootEnd = 1; + isAbsolute = true; + } + if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) { + continue; + } + if (resolvedDevice.length === 0 && device.length > 0) { + resolvedDevice = device; + } + if (!resolvedAbsolute) { + resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`; + resolvedAbsolute = isAbsolute; + } + if (resolvedAbsolute && resolvedDevice.length > 0) break; + } + // At this point the path should be resolved to a full absolute path, + // but handle relative paths to be safe (might happen when Deno.cwd() + // fails) + // Normalize the tail path + resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator); + return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || "."; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function assertArgs(from, to) { + assertPath(from); + assertPath(to); + if (from === to) return ""; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Return the relative path from `from` to `to` based on current working directory. + * + * An example in windws, for instance: + * from = 'C:\\orandea\\test\\aaa' + * to = 'C:\\orandea\\impl\\bbb' + * The output of the function should be: '..\\..\\impl\\bbb' + * + * @example Usage + * ```ts + * import { relative } from "@std/path/windows/relative"; + * import { assertEquals } from "@std/assert"; + * + * const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb"); + * assertEquals(relativePath, "..\\..\\impl\\bbb"); + * ``` + * + * @param from The path from which to calculate the relative path + * @param to The path to which to calculate the relative path + * @returns The relative path from `from` to `to` + */ function relative(from, to) { + assertArgs(from, to); + const fromOrig = resolve(from); + const toOrig = resolve(to); + if (fromOrig === toOrig) return ""; + from = fromOrig.toLowerCase(); + to = toOrig.toLowerCase(); + if (from === to) return ""; + // Trim any leading backslashes + let fromStart = 0; + let fromEnd = from.length; + for(; fromStart < fromEnd; ++fromStart){ + if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) break; + } + // Trim trailing backslashes (applicable to UNC paths only) + for(; fromEnd - 1 > fromStart; --fromEnd){ + if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) break; + } + const fromLen = fromEnd - fromStart; + // Trim any leading backslashes + let toStart = 0; + let toEnd = to.length; + for(; toStart < toEnd; ++toStart){ + if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) break; + } + // Trim trailing backslashes (applicable to UNC paths only) + for(; toEnd - 1 > toStart; --toEnd){ + if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) break; + } + const toLen = toEnd - toStart; + // Compare paths to find the longest common path from root + const length = fromLen < toLen ? fromLen : toLen; + let lastCommonSep = -1; + let i = 0; + for(; i <= length; ++i){ + if (i === length) { + if (toLen > length) { + if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) { + // We get here if `from` is the exact base path for `to`. + // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz' + return toOrig.slice(toStart + i + 1); + } else if (i === 2) { + // We get here if `from` is the device root. + // For example: from='C:\\'; to='C:\\foo' + return toOrig.slice(toStart + i); + } + } + if (fromLen > length) { + if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) { + // We get here if `to` is the exact base path for `from`. + // For example: from='C:\\foo\\bar'; to='C:\\foo' + lastCommonSep = i; + } else if (i === 2) { + // We get here if `to` is the device root. + // For example: from='C:\\foo\\bar'; to='C:\\' + lastCommonSep = 3; + } + } + break; + } + const fromCode = from.charCodeAt(fromStart + i); + const toCode = to.charCodeAt(toStart + i); + if (fromCode !== toCode) break; + else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i; + } + // We found a mismatch before the first common path separator was seen, so + // return the original `to`. + if (i !== length && lastCommonSep === -1) { + return toOrig; + } + let out = ""; + if (lastCommonSep === -1) lastCommonSep = 0; + // Generate the relative path based on the path difference between `to` and + // `from` + for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){ + if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) { + if (out.length === 0) out += ".."; + else out += "\\.."; + } + } + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts + if (out.length > 0) { + return out + toOrig.slice(toStart + lastCommonSep, toEnd); + } else { + toStart += lastCommonSep; + if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) ++toStart; + return toOrig.slice(toStart, toEnd); + } +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const WHITESPACE_ENCODINGS = { + "\u0009": "%09", + "\u000A": "%0A", + "\u000B": "%0B", + "\u000C": "%0C", + "\u000D": "%0D", + "\u0020": "%20" +}; +function encodeWhitespace(string) { + return string.replaceAll(/[\s]/g, (c)=>{ + return WHITESPACE_ENCODINGS[c] ?? c; + }); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Converts a path string to a file URL. + * + * @example Usage + * ```ts + * import { toFileUrl } from "@std/path/windows/to-file-url"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo")); + * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo")); + * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo")); + * ``` + * @param path The path to convert. + * @returns The file URL. + */ function toFileUrl(path) { + if (!isAbsolute(path)) { + throw new TypeError(`Path must be absolute: received "${path}"`); + } + const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/); + const url = new URL("file:///"); + url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25")); + if (hostname !== undefined && hostname !== "localhost") { + url.hostname = hostname; + if (!url.hostname) { + throw new TypeError(`Invalid hostname: "${url.hostname}"`); + } + } + return url; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Resolves path to a namespace path + * + * @example Usage + * ```ts + * import { toNamespacedPath } from "@std/path/windows/to-namespaced-path"; + * import { assertEquals } from "@std/assert"; + * + * const namespaced = toNamespacedPath("C:\\foo\\bar"); + * assertEquals(namespaced, "\\\\?\\C:\\foo\\bar"); + * ``` + * + * @param path The path to resolve to namespaced path + * @returns The resolved namespaced path + */ function toNamespacedPath(path) { + // Note: this will *probably* throw somewhere. + if (typeof path !== "string") return path; + if (path.length === 0) return ""; + const resolvedPath = resolve(path); + if (resolvedPath.length >= 3) { + if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) { + // Possible UNC root + if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) { + const code = resolvedPath.charCodeAt(2); + if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) { + // Matched non-long UNC root, convert the path to a long UNC path + return `\\\\?\\UNC\\${resolvedPath.slice(2)}`; + } + } + } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) { + // Possible device root + if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) { + // Matched device root, convert the path to a long UNC path + return `\\\\?\\${resolvedPath}`; + } + } + } + return path; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +function common$1(paths, sep) { + const [first = "", ...remaining] = paths; + const parts = first.split(sep); + let endOfPrefix = parts.length; + let append = ""; + for (const path of remaining){ + const compare = path.split(sep); + if (compare.length <= endOfPrefix) { + endOfPrefix = compare.length; + append = ""; + } + for(let i = 0; i < endOfPrefix; i++){ + if (compare[i] !== parts[i]) { + endOfPrefix = i; + append = i === 0 ? "" : sep; + break; + } + } + } + return parts.slice(0, endOfPrefix).join(sep) + append; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Determines the common path from a set of paths for Windows systems. + * + * @example Usage + * ```ts + * import { common } from "@std/path/windows/common"; + * import { assertEquals } from "@std/assert"; + * + * const path = common([ + * "C:\\foo\\bar", + * "C:\\foo\\baz", + * ]); + * assertEquals(path, "C:\\foo\\"); + * ``` + * + * @param paths The paths to compare. + * @returns The common path. + */ function common(paths) { + return common$1(paths, SEPARATOR); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs}, + * {@linkcode normalizeGlob} and {@linkcode expandGlob}. + */ const REG_EXP_ESCAPE_CHARS = [ + "!", + "$", + "(", + ")", + "*", + "+", + ".", + "=", + "?", + "[", + "\\", + "^", + "{", + "|" +]; +const RANGE_ESCAPE_CHARS = [ + "-", + "\\", + "]" +]; +function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType, +caseInsensitive = false } = {}) { + if (glob === "") { + return /(?!)/; + } + // Remove trailing separators. + let newLength = glob.length; + for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--); + glob = glob.slice(0, newLength); + let regExpString = ""; + // Terminates correctly. Trust that `j` is incremented every iteration. + for(let j = 0; j < glob.length;){ + let segment = ""; + const groupStack = []; + let inRange = false; + let inEscape = false; + let endsWithSep = false; + let i = j; + // Terminates with `i` at the non-inclusive end of the current segment. + for(; i < glob.length && !c.seps.includes(glob[i]); i++){ + if (inEscape) { + inEscape = false; + const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS; + segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + continue; + } + if (glob[i] === c.escapePrefix) { + inEscape = true; + continue; + } + if (glob[i] === "[") { + if (!inRange) { + inRange = true; + segment += "["; + if (glob[i + 1] === "!") { + i++; + segment += "^"; + } else if (glob[i + 1] === "^") { + i++; + segment += "\\^"; + } + continue; + } else if (glob[i + 1] === ":") { + let k = i + 1; + let value = ""; + while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){ + value += glob[k + 1]; + k++; + } + if (glob[k + 1] === ":" && glob[k + 2] === "]") { + i = k + 2; + if (value === "alnum") segment += "\\dA-Za-z"; + else if (value === "alpha") segment += "A-Za-z"; + else if (value === "ascii") segment += "\x00-\x7F"; + else if (value === "blank") segment += "\t "; + else if (value === "cntrl") segment += "\x00-\x1F\x7F"; + else if (value === "digit") segment += "\\d"; + else if (value === "graph") segment += "\x21-\x7E"; + else if (value === "lower") segment += "a-z"; + else if (value === "print") segment += "\x20-\x7E"; + else if (value === "punct") { + segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~"; + } else if (value === "space") segment += "\\s\v"; + else if (value === "upper") segment += "A-Z"; + else if (value === "word") segment += "\\w"; + else if (value === "xdigit") segment += "\\dA-Fa-f"; + continue; + } + } + } + if (glob[i] === "]" && inRange) { + inRange = false; + segment += "]"; + continue; + } + if (inRange) { + segment += glob[i]; + continue; + } + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += ")"; + const type = groupStack.pop(); + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { + segment += type; + } + continue; + } + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "+" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("+"); + segment += "(?:"; + continue; + } + if (glob[i] === "@" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("@"); + segment += "(?:"; + continue; + } + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("?"); + segment += "(?:"; + } else { + segment += "."; + } + continue; + } + if (glob[i] === "!" && extended && glob[i + 1] === "(") { + i++; + groupStack.push("!"); + segment += "(?!"; + continue; + } + if (glob[i] === "{") { + groupStack.push("BRACE"); + segment += "(?:"; + continue; + } + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { + groupStack.pop(); + segment += ")"; + continue; + } + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { + segment += "|"; + continue; + } + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { + i++; + groupStack.push("*"); + segment += "(?:"; + } else { + const prevChar = glob[i - 1]; + let numStars = 1; + while(glob[i + 1] === "*"){ + i++; + numStars++; + } + const nextChar = glob[i + 1]; + if (globstarOption && numStars === 2 && [ + ...c.seps, + undefined + ].includes(prevChar) && [ + ...c.seps, + undefined + ].includes(nextChar)) { + segment += c.globstar; + endsWithSep = true; + } else { + segment += c.wildcard; + } + } + continue; + } + segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; + } + // Check for unclosed groups or a dangling backslash. + if (groupStack.length > 0 || inRange || inEscape) { + // Parse failure. Take all characters from this segment literally. + segment = ""; + for (const c of glob.slice(j, i)){ + segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c; + endsWithSep = false; + } + } + regExpString += segment; + if (!endsWithSep) { + regExpString += i < glob.length ? c.sep : c.sepMaybe; + endsWithSep = true; + } + // Terminates with `i` at the start of the next segment. + while(c.seps.includes(glob[i]))i++; + j = i; + } + regExpString = `^${regExpString}$`; + return new RegExp(regExpString, caseInsensitive ? "i" : ""); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +const constants = { + sep: "(?:\\\\|/)+", + sepMaybe: "(?:\\\\|/)*", + seps: [ + "\\", + "/" + ], + globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*", + wildcard: "[^\\\\/]*", + escapePrefix: "`" +}; +/** Convert a glob string to a regular expression. + * + * Tries to match bash glob expansion as closely as possible. + * + * Basic glob syntax: + * - `*` - Matches everything without leaving the path segment. + * - `?` - Matches any single character. + * - `{foo,bar}` - Matches `foo` or `bar`. + * - `[abcd]` - Matches `a`, `b`, `c` or `d`. + * - `[a-d]` - Matches `a`, `b`, `c` or `d`. + * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`. + * - `[[::]]` - Matches any character belonging to ``. + * - `[[:alnum:]]` - Matches any digit or letter. + * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`. + * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes + * for a complete list of supported character classes. + * - `\` - Escapes the next character for an `os` other than `"windows"`. + * - \` - Escapes the next character for `os` set to `"windows"`. + * - `/` - Path separator. + * - `\` - Additional path separator only for `os` set to `"windows"`. + * + * Extended syntax: + * - Requires `{ extended: true }`. + * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`. + * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same. + * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`. + * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`. + * - `!(foo|bar)` - Matches anything other than `{foo,bar}`. + * - See https://www.linuxjournal.com/content/bash-extended-globbing. + * + * Globstar syntax: + * - Requires `{ globstar: true }`. + * - `**` - Matches any number of any path segments. + * - Must comprise its entire path segment in the provided glob. + * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option. + * + * Note the following properties: + * - The generated `RegExp` is anchored at both start and end. + * - Repeating and trailing separators are tolerated. Trailing separators in the + * provided glob have no meaning and are discarded. + * - Absolute globs will only match absolute paths, etc. + * - Empty globs will match nothing. + * - Any special glob syntax must be contained to one path segment. For example, + * `?(foo|bar/baz)` is invalid. The separator will take precedence and the + * first segment ends with an unclosed group. + * - If a path segment ends with unclosed groups or a dangling escape prefix, a + * parse error has occurred. Every character for that segment is taken + * literally in this event. + * + * Limitations: + * - A negative group like `!(foo|bar)` will wrongly be converted to a negative + * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly + * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively, + * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if + * the group occurs not nested at the end of the segment. + * + * @example Usage + * ```ts + * import { globToRegExp } from "@std/path/windows/glob-to-regexp"; + * import { assertEquals } from "@std/assert"; + * + * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/); + * ``` + * + * @param glob Glob string to convert. + * @param options Conversion options. + * @returns The regular expression equivalent to the glob. + */ function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Test whether the given string is a glob. + * + * @example Usage + * ```ts + * import { isGlob } from "@std/path/is-glob"; + * import { assert } from "@std/assert"; + * + * assert(!isGlob("foo/bar/../baz")); + * assert(isGlob("foo/*ar/../baz")); + * ``` + * + * @param str String to test. + * @returns `true` if the given string is a glob, otherwise `false` + */ function isGlob(str) { + const chars = { + "{": "}", + "(": ")", + "[": "]" + }; + const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; + if (str === "") { + return false; + } + let match; + while(match = regex.exec(str)){ + if (match[2]) return true; + let idx = match.index + match[0].length; + // if an open bracket/brace/paren is escaped, + // set the index to the next closing character + const open = match[1]; + const close = open ? chars[open] : null; + if (open && close) { + const n = str.indexOf(close, idx); + if (n !== -1) { + idx = n + 1; + } + } + str = str.slice(idx); + } + return false; +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * ```ts + * import { normalizeGlob } from "@std/path/windows/normalize-glob"; + * import { assertEquals } from "@std/assert"; + * + * const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true }); + * assertEquals(normalized, "**\\bar"); + * ``` + * + * @param glob The glob pattern to normalize. + * @param options The options for glob pattern. + * @returns The normalized glob pattern. + */ function normalizeGlob(glob, { globstar = false } = {}) { + if (glob.match(/\0/g)) { + throw new Error(`Glob contains invalid characters: "${glob}"`); + } + if (!globstar) { + return normalize(glob); + } + const s = SEPARATOR_PATTERN.source; + const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g"); + return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, ".."); +} + +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. +/** + * Like join(), but doesn't collapse "**\/.." when `globstar` is true. + * + * @example Usage + * + * ```ts + * import { joinGlobs } from "@std/path/windows/join-globs"; + * import { assertEquals } from "@std/assert"; + * + * const joined = joinGlobs(["foo", "**", "bar"], { globstar: true }); + * assertEquals(joined, "foo\\**\\bar"); + * ``` + * + * @param globs The globs to join. + * @param options The options for glob pattern. + * @returns The joined glob pattern. + */ function joinGlobs(globs, { extended = true, globstar = false } = {}) { + if (!globstar || globs.length === 0) { + return join(...globs); + } + let joined; + for (const glob of globs){ + const path = glob; + if (path.length > 0) { + if (!joined) joined = path; + else joined += `${SEPARATOR}${path}`; + } + } + if (!joined) return "."; + return normalizeGlob(joined, { + extended, + globstar + }); +} + +export { DELIMITER, SEPARATOR, SEPARATOR_PATTERN, basename, common, dirname, extname, format, fromFileUrl, globToRegExp, isAbsolute, isGlob, join, joinGlobs, normalize, normalizeGlob, parse, relative, resolve, toFileUrl, toNamespacedPath }; diff --git a/node_modules/@eslint/config-array/dist/esm/types.d.ts b/node_modules/@eslint/config-array/dist/esm/types.d.ts new file mode 100644 index 00000000..a495d940 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/types.d.ts @@ -0,0 +1,19 @@ +/** + * @fileoverview Types for the config-array package. + * @author Nicholas C. Zakas + */ +export interface ConfigObject { + /** + * The files to include. + */ + files?: string[]; + /** + * The files to exclude. + */ + ignores?: string[]; + /** + * The name of the config object. + */ + name?: string; + [key: string]: unknown; +} diff --git a/node_modules/@eslint/config-array/dist/esm/types.ts b/node_modules/@eslint/config-array/dist/esm/types.ts new file mode 100644 index 00000000..1af40113 --- /dev/null +++ b/node_modules/@eslint/config-array/dist/esm/types.ts @@ -0,0 +1,24 @@ +/** + * @fileoverview Types for the config-array package. + * @author Nicholas C. Zakas + */ + +export interface ConfigObject { + /** + * The files to include. + */ + files?: string[]; + + /** + * The files to exclude. + */ + ignores?: string[]; + + /** + * The name of the config object. + */ + name?: string; + + // may also have any number of other properties + [key: string]: unknown; +} diff --git a/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/LICENSE b/node_modules/@eslint/config-array/node_modules/brace-expansion/LICENSE similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/LICENSE rename to node_modules/@eslint/config-array/node_modules/brace-expansion/LICENSE diff --git a/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/README.md b/node_modules/@eslint/config-array/node_modules/brace-expansion/README.md similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/README.md rename to node_modules/@eslint/config-array/node_modules/brace-expansion/README.md diff --git a/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/index.js b/node_modules/@eslint/config-array/node_modules/brace-expansion/index.js similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/index.js rename to node_modules/@eslint/config-array/node_modules/brace-expansion/index.js diff --git a/node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/package.json b/node_modules/@eslint/config-array/node_modules/brace-expansion/package.json similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/brace-expansion/package.json rename to node_modules/@eslint/config-array/node_modules/brace-expansion/package.json diff --git a/node_modules/@humanwhocodes/config-array/node_modules/minimatch/LICENSE b/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/minimatch/LICENSE rename to node_modules/@eslint/config-array/node_modules/minimatch/LICENSE diff --git a/node_modules/@humanwhocodes/config-array/node_modules/minimatch/README.md b/node_modules/@eslint/config-array/node_modules/minimatch/README.md similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/minimatch/README.md rename to node_modules/@eslint/config-array/node_modules/minimatch/README.md diff --git a/node_modules/@humanwhocodes/config-array/node_modules/minimatch/minimatch.js b/node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/minimatch/minimatch.js rename to node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js diff --git a/node_modules/@humanwhocodes/config-array/node_modules/minimatch/package.json b/node_modules/@eslint/config-array/node_modules/minimatch/package.json similarity index 100% rename from node_modules/@humanwhocodes/config-array/node_modules/minimatch/package.json rename to node_modules/@eslint/config-array/node_modules/minimatch/package.json diff --git a/node_modules/@eslint/config-array/package.json b/node_modules/@eslint/config-array/package.json new file mode 100644 index 00000000..299906b6 --- /dev/null +++ b/node_modules/@eslint/config-array/package.json @@ -0,0 +1,66 @@ +{ + "name": "@eslint/config-array", + "version": "0.19.0", + "description": "General purpose glob-based configuration matching.", + "author": "Nicholas C. Zakas", + "type": "module", + "main": "dist/esm/index.js", + "types": "dist/esm/index.d.ts", + "exports": { + "require": { + "types": "./dist/cjs/index.d.cts", + "default": "./dist/cjs/index.cjs" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/eslint/rewrite.git" + }, + "bugs": { + "url": "https://github.com/eslint/rewrite/issues" + }, + "homepage": "https://github.com/eslint/rewrite#readme", + "scripts": { + "build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js", + "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"", + "build:std__path": "rollup -c rollup.std__path-config.js && node fix-std__path-imports", + "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts && npm run build:std__path", + "test:jsr": "npx jsr@latest publish --dry-run", + "pretest": "npm run build", + "test": "mocha tests/", + "test:coverage": "c8 npm test" + }, + "keywords": [ + "configuration", + "configarray", + "config file" + ], + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.4", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "devDependencies": { + "@jsr/std__path": "^1.0.4", + "@types/minimatch": "^3.0.5", + "c8": "^9.1.0", + "mocha": "^10.4.0", + "rollup": "^4.16.2", + "rollup-plugin-copy": "^3.5.0", + "typescript": "^5.4.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } +} diff --git a/node_modules/@eslint/core/LICENSE b/node_modules/@eslint/core/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@eslint/core/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@eslint/core/README.md b/node_modules/@eslint/core/README.md new file mode 100644 index 00000000..6a2576f5 --- /dev/null +++ b/node_modules/@eslint/core/README.md @@ -0,0 +1,29 @@ +# ESLint Core + +## Overview + +This package is the future home of the rewritten, runtime-agnostic ESLint core. + +Right now, it exports the core types necessary to implement language plugins. + +## License + +Apache 2.0 + + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

SERP Triumph JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

Cybozu Syntax WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/@eslint/core/dist/cjs/types.d.cts b/node_modules/@eslint/core/dist/cjs/types.d.cts new file mode 100644 index 00000000..4ec26b9c --- /dev/null +++ b/node_modules/@eslint/core/dist/cjs/types.d.cts @@ -0,0 +1,735 @@ +/** + * @fileoverview Shared types for ESLint Core. + */ +import { JSONSchema4 } from "json-schema"; +/** + * Represents an error inside of a file. + */ +export interface FileError { + message: string; + line: number; + column: number; + endLine?: number; + endColumn?: number; +} +/** + * Represents a problem found in a file. + */ +export interface FileProblem { + ruleId: string | null; + message: string; + loc: SourceLocation; +} +/** + * Represents the start and end coordinates of a node inside the source. + */ +export interface SourceLocation { + start: Position; + end: Position; +} +/** + * Represents the start and end coordinates of a node inside the source with an offset. + */ +export interface SourceLocationWithOffset { + start: PositionWithOffset; + end: PositionWithOffset; +} +/** + * Represents a location coordinate inside the source. ESLint-style formats + * have just `line` and `column` while others may have `offset` as well. + */ +export interface Position { + line: number; + column: number; +} +/** + * Represents a location coordinate inside the source with an offset. + */ +export interface PositionWithOffset extends Position { + offset: number; +} +/** + * Represents a range of characters in the source. + */ +export type SourceRange = [number, number]; +/** + * What the rule is responsible for finding: + * - `problem` means the rule has noticed a potential error. + * - `suggestion` means the rule suggests an alternate or better approach. + * - `layout` means the rule is looking at spacing, indentation, etc. + */ +export type RuleType = "problem" | "suggestion" | "layout"; +/** + * The type of fix the rule can provide: + * - `code` means the rule can fix syntax. + * - `whitespace` means the rule can fix spacing and indentation. + */ +export type RuleFixType = "code" | "whitespace"; +/** + * An object containing visitor information for a rule. Each method is either the + * name of a node type or a selector, or is a method that will be called at specific + * times during the traversal. + */ +export interface RuleVisitor { + /** + * Called for each node in the AST or at specific times during the traversal. + */ + [key: string]: (...args: any[]) => void; +} +/** + * Rule meta information used for documentation. + */ +export interface RulesMetaDocs { + /** + * A short description of the rule. + */ + description?: string | undefined; + /** + * The URL to the documentation for the rule. + */ + url?: string | undefined; + /** + * The category the rule falls under. + * @deprecated No longer used. + */ + category?: string | undefined; + /** + * Indicates if the rule is generally recommended for all users. + */ + recommended?: boolean | undefined; +} +/** + * Meta information about a rule. + */ +export interface RulesMeta { + /** + * Properties that are used when documenting the rule. + */ + docs?: (RulesMetaDocs & ExtRuleDocs) | undefined; + /** + * The type of rule. + */ + type?: RuleType | undefined; + /** + * The schema for the rule options. Required if the rule has options. + */ + schema?: JSONSchema4 | JSONSchema4[] | false | undefined; + /** + * The messages that the rule can report. + */ + messages?: Record; + /** + * The deprecated rules for the rule. + */ + deprecated?: boolean | undefined; + /** + * When a rule is deprecated, indicates the rule ID(s) that should be used instead. + */ + replacedBy?: string[] | undefined; + /** + * Indicates if the rule is fixable, and if so, what type of fix it provides. + */ + fixable?: RuleFixType | undefined; + /** + * Indicates if the rule may provide suggestions. + */ + hasSuggestions?: boolean | undefined; +} +/** + * Generic type for `RuleContext`. + */ +export interface RuleContextTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RuleOptions: unknown[]; + Node: unknown; +} +/** + * Represents the context object that is passed to a rule. This object contains + * information about the current state of the linting process and is the rule's + * view into the outside world. + */ +export interface RuleContext { + /** + * The current working directory for the session. + */ + cwd: string; + /** + * Returns the current working directory for the session. + * @deprecated Use `cwd` instead. + */ + getCwd(): string; + /** + * The filename of the file being linted. + */ + filename: string; + /** + * Returns the filename of the file being linted. + * @deprecated Use `filename` instead. + */ + getFilename(): string; + /** + * The physical filename of the file being linted. + */ + physicalFilename: string; + /** + * Returns the physical filename of the file being linted. + * @deprecated Use `physicalFilename` instead. + */ + getPhysicalFilename(): string; + /** + * The source code object that the rule is running on. + */ + sourceCode: Options["Code"]; + /** + * Returns the source code object that the rule is running on. + * @deprecated Use `sourceCode` instead. + */ + getSourceCode(): Options["Code"]; + /** + * Shared settings for the configuration. + */ + settings: SettingsConfig; + /** + * Parser-specific options for the configuration. + * @deprecated Use `languageOptions.parserOptions` instead. + */ + parserOptions: Record; + /** + * The language options for the configuration. + */ + languageOptions: Options["LangOptions"]; + /** + * The CommonJS path to the parser used while parsing this file. + * @deprecated No longer used. + */ + parserPath: string | undefined; + /** + * The rule ID. + */ + id: string; + /** + * The rule's configured options. + */ + options: Options["RuleOptions"]; + /** + * The report function that the rule should use to report problems. + * @param violation The violation to report. + */ + report(violation: ViolationReport): void; +} +/** + * Manager of text edits for a rule fix. + */ +export interface RuleTextEditor { + /** + * Inserts text after the specified node or token. + * @param syntaxElement The node or token to insert after. + * @param text The edit to insert after the node or token. + */ + insertTextAfter(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Inserts text after the specified range. + * @param range The range to insert after. + * @param text The edit to insert after the range. + */ + insertTextAfterRange(range: SourceRange, text: string): RuleTextEdit; + /** + * Inserts text before the specified node or token. + * @param syntaxElement A syntax element with location information to insert before. + * @param text The edit to insert before the node or token. + */ + insertTextBefore(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Inserts text before the specified range. + * @param range The range to insert before. + * @param text The edit to insert before the range. + */ + insertTextBeforeRange(range: SourceRange, text: string): RuleTextEdit; + /** + * Removes the specified node or token. + * @param syntaxElement A syntax element with location information to remove. + * @returns The edit to remove the node or token. + */ + remove(syntaxElement: EditableSyntaxElement): RuleTextEdit; + /** + * Removes the specified range. + * @param range The range to remove. + * @returns The edit to remove the range. + */ + removeRange(range: SourceRange): RuleTextEdit; + /** + * Replaces the specified node or token with the given text. + * @param syntaxElement A syntax element with location information to replace. + * @param text The text to replace the node or token with. + * @returns The edit to replace the node or token. + */ + replaceText(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Replaces the specified range with the given text. + * @param range The range to replace. + * @param text The text to replace the range with. + * @returns The edit to replace the range. + */ + replaceTextRange(range: SourceRange, text: string): RuleTextEdit; +} +/** + * Represents a fix for a rule violation implemented as a text edit. + */ +export interface RuleTextEdit { + /** + * The range to replace. + */ + range: SourceRange; + /** + * The text to insert. + */ + text: string; +} +interface ViolationReportBase { + /** + * The type of node that the violation is for. + * @deprecated May be removed in the future. + */ + nodeType?: string | undefined; + /** + * The data to insert into the message. + */ + data?: Record | undefined; + /** + * The fix to be applied for the violation. + * @param fixer The text editor to apply the fix. + * @returns The fix(es) for the violation. + */ + fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null; + /** + * An array of suggested fixes for the problem. These fixes may change the + * behavior of the code, so they are not applied automatically. + */ + suggest?: SuggestedEdit[]; +} +type ViolationMessage = { + message: string; +} | { + messageId: string; +}; +type ViolationLocation = { + loc: SourceLocation; +} | { + node: Node; +}; +export type ViolationReport = ViolationReportBase & ViolationMessage & ViolationLocation; +interface SuggestedEditBase { + /** + * The data to insert into the message. + */ + data?: Record | undefined; + /** + * The fix to be applied for the suggestion. + * @param fixer The text editor to apply the fix. + * @returns The fix for the suggestion. + */ + fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null; +} +type SuggestionMessage = { + desc: string; +} | { + messageId: string; +}; +/** + * A suggested edit for a rule violation. + */ +export type SuggestedEdit = SuggestedEditBase & SuggestionMessage; +/** + * Generic options for the `RuleDefinition` type. + */ +export interface RuleDefinitionTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RuleOptions: unknown[]; + Visitor: RuleVisitor; + Node: unknown; + MessageIds: string; + ExtRuleDocs: unknown; +} +/** + * The definition of an ESLint rule. + */ +export interface RuleDefinition { + /** + * The meta information for the rule. + */ + meta?: RulesMeta; + /** + * Creates the visitor that ESLint uses to apply the rule during traversal. + * @param context The rule context. + * @returns The rule visitor. + */ + create(context: RuleContext<{ + LangOptions: Options["LangOptions"]; + Code: Options["Code"]; + RuleOptions: Options["RuleOptions"]; + Node: Options["Node"]; + }>): Options["Visitor"]; +} +/** + * The human readable severity level used in a configuration. + */ +export type SeverityName = "off" | "warn" | "error"; +/** + * The numeric severity level for a rule. + * + * - `0` means off. + * - `1` means warn. + * - `2` means error. + */ +export type SeverityLevel = 0 | 1 | 2; +/** + * The severity of a rule in a configuration. + */ +export type Severity = SeverityName | SeverityLevel; +/** + * Represents the configuration options for the core linter. + */ +export interface LinterOptionsConfig { + /** + * Indicates whether or not inline configuration is evaluated. + */ + noInlineConfig?: boolean; + /** + * Indicates what to do when an unused disable directive is found. + */ + reportUnusedDisableDirectives?: boolean | Severity; +} +/** + * Shared settings that are accessible from within plugins. + */ +export type SettingsConfig = Record; +/** + * The configuration for a rule. + */ +export type RuleConfig = Severity | [Severity, ...unknown[]]; +/** + * A collection of rules and their configurations. + */ +export type RulesConfig = Record; +/** + * Generic options for the `Language` type. + */ +export interface LanguageTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RootNode: unknown; + Node: unknown; +} +/** + * Represents a plugin language. + */ +export interface Language { + /** + * Indicates how ESLint should read the file. + */ + fileType: "text"; + /** + * First line number returned from the parser (text mode only). + */ + lineStart: 0 | 1; + /** + * First column number returned from the parser (text mode only). + */ + columnStart: 0 | 1; + /** + * The property to read the node type from. Used in selector querying. + */ + nodeTypeKey: string; + /** + * The traversal path that tools should take when evaluating the AST + */ + visitorKeys?: Record; + /** + * Default language options. User-defined options are merged with this object. + */ + defaultLanguageOptions?: LanguageOptions; + /** + * Validates languageOptions for this language. + */ + validateLanguageOptions(languageOptions: Options["LangOptions"]): void; + /** + * Normalizes languageOptions for this language. + */ + normalizeLanguageOptions?(languageOptions: Options["LangOptions"]): Options["LangOptions"]; + /** + * Helper for esquery that allows languages to match nodes against + * class. esquery currently has classes like `function` that will + * match all the various function nodes. This method allows languages + * to implement similar shorthands. + */ + matchesSelectorClass?(className: string, node: Options["Node"], ancestry: Options["Node"][]): boolean; + /** + * Parses the given file input into its component parts. This file should not + * throws errors for parsing errors but rather should return any parsing + * errors as parse of the ParseResult object. + */ + parse(file: File, context: LanguageContext): ParseResult; + /** + * Creates SourceCode object that ESLint uses to work with a file. + */ + createSourceCode(file: File, input: OkParseResult, context: LanguageContext): Options["Code"]; +} +/** + * Plugin-defined options for the language. + */ +export type LanguageOptions = Record; +/** + * The context object that is passed to the language plugin methods. + */ +export interface LanguageContext { + languageOptions: LangOptions; +} +/** + * Represents a file read by ESLint. + */ +export interface File { + /** + * The path that ESLint uses for this file. May be a virtual path + * if it was returned by a processor. + */ + path: string; + /** + * The path to the file on disk. This always maps directly to a file + * regardless of whether it was returned from a processor. + */ + physicalPath: string; + /** + * Indicates if the original source contained a byte-order marker. + * ESLint strips the BOM from the `body`, but this info is needed + * to correctly apply autofixing. + */ + bom: boolean; + /** + * The body of the file to parse. + */ + body: string | Uint8Array; +} +/** + * Represents the successful result of parsing a file. + */ +export interface OkParseResult { + /** + * Indicates if the parse was successful. If true, the parse was successful + * and ESLint should continue on to create a SourceCode object and run rules; + * if false, ESLint should just report the error(s) without doing anything + * else. + */ + ok: true; + /** + * The abstract syntax tree created by the parser. (only when ok: true) + */ + ast: RootNode; + /** + * Any additional data that the parser wants to provide. + */ + [key: string]: any; +} +/** + * Represents the unsuccessful result of parsing a file. + */ +export interface NotOkParseResult { + /** + * Indicates if the parse was successful. If true, the parse was successful + * and ESLint should continue on to create a SourceCode object and run rules; + * if false, ESLint should just report the error(s) without doing anything + * else. + */ + ok: false; + /** + * Any parsing errors, whether fatal or not. (only when ok: false) + */ + errors: FileError[]; + /** + * Any additional data that the parser wants to provide. + */ + [key: string]: any; +} +export type ParseResult = OkParseResult | NotOkParseResult; +/** + * Represents inline configuration found in the source code. + */ +interface InlineConfigElement { + /** + * The location of the inline config element. + */ + loc: SourceLocation; + /** + * The interpreted configuration from the inline config element. + */ + config: { + rules: RulesConfig; + }; +} +/** + * Generic options for the `SourceCodeBase` type. + */ +interface SourceCodeBaseTypeOptions { + LangOptions: LanguageOptions; + RootNode: unknown; + SyntaxElementWithLoc: unknown; + ConfigNode: unknown; +} +/** + * Represents the basic interface for a source code object. + */ +interface SourceCodeBase { + /** + * Root of the AST. + */ + ast: Options["RootNode"]; + /** + * The traversal path that tools should take when evaluating the AST. + * When present, this overrides the `visitorKeys` on the language for + * just this source code object. + */ + visitorKeys?: Record; + /** + * Retrieves the equivalent of `loc` for a given node or token. + * @param syntaxElement The node or token to get the location for. + * @returns The location of the node or token. + */ + getLoc(syntaxElement: Options["SyntaxElementWithLoc"]): SourceLocation; + /** + * Retrieves the equivalent of `range` for a given node or token. + * @param syntaxElement The node or token to get the range for. + * @returns The range of the node or token. + */ + getRange(syntaxElement: Options["SyntaxElementWithLoc"]): SourceRange; + /** + * Traversal of AST. + */ + traverse(): Iterable; + /** + * Applies language options passed in from the ESLint core. + */ + applyLanguageOptions?(languageOptions: Options["LangOptions"]): void; + /** + * Return all of the inline areas where ESLint should be disabled/enabled + * along with any problems found in evaluating the directives. + */ + getDisableDirectives?(): { + directives: Directive[]; + problems: FileProblem[]; + }; + /** + * Returns an array of all inline configuration nodes found in the + * source code. + */ + getInlineConfigNodes?(): Options["ConfigNode"][]; + /** + * Applies configuration found inside of the source code. This method is only + * called when ESLint is running with inline configuration allowed. + */ + applyInlineConfig?(): { + configs: InlineConfigElement[]; + problems: FileProblem[]; + }; + /** + * Called by ESLint core to indicate that it has finished providing + * information. We now add in all the missing variables and ensure that + * state-changing methods cannot be called by rules. + * @returns {void} + */ + finalize?(): void; +} +/** + * Represents the source of a text file being linted. + */ +export interface TextSourceCode extends SourceCodeBase { + /** + * The body of the file that you'd like rule developers to access. + */ + text: string; +} +/** + * Represents the source of a binary file being linted. + */ +export interface BinarySourceCode extends SourceCodeBase { + /** + * The body of the file that you'd like rule developers to access. + */ + body: Uint8Array; +} +export type SourceCode = TextSourceCode | BinarySourceCode; +/** + * Represents a traversal step visiting the AST. + */ +export interface VisitTraversalStep { + kind: 1; + target: unknown; + phase: 1 | 2; + args: unknown[]; +} +/** + * Represents a traversal step calling a function. + */ +export interface CallTraversalStep { + kind: 2; + target: string; + phase?: string; + args: unknown[]; +} +export type TraversalStep = VisitTraversalStep | CallTraversalStep; +/** + * The type of disable directive. This determines how ESLint will disable rules. + */ +export type DirectiveType = "disable" | "enable" | "disable-line" | "disable-next-line"; +/** + * Represents a disable directive. + */ +export interface Directive { + /** + * The type of directive. + */ + type: DirectiveType; + /** + * The node of the directive. May be in the AST or a comment/token. + */ + node: unknown; + /** + * The value of the directive. + */ + value: string; + /** + * The justification for the directive. + */ + justification?: string; +} +export {}; diff --git a/node_modules/@eslint/core/dist/esm/types.d.ts b/node_modules/@eslint/core/dist/esm/types.d.ts new file mode 100644 index 00000000..4ec26b9c --- /dev/null +++ b/node_modules/@eslint/core/dist/esm/types.d.ts @@ -0,0 +1,735 @@ +/** + * @fileoverview Shared types for ESLint Core. + */ +import { JSONSchema4 } from "json-schema"; +/** + * Represents an error inside of a file. + */ +export interface FileError { + message: string; + line: number; + column: number; + endLine?: number; + endColumn?: number; +} +/** + * Represents a problem found in a file. + */ +export interface FileProblem { + ruleId: string | null; + message: string; + loc: SourceLocation; +} +/** + * Represents the start and end coordinates of a node inside the source. + */ +export interface SourceLocation { + start: Position; + end: Position; +} +/** + * Represents the start and end coordinates of a node inside the source with an offset. + */ +export interface SourceLocationWithOffset { + start: PositionWithOffset; + end: PositionWithOffset; +} +/** + * Represents a location coordinate inside the source. ESLint-style formats + * have just `line` and `column` while others may have `offset` as well. + */ +export interface Position { + line: number; + column: number; +} +/** + * Represents a location coordinate inside the source with an offset. + */ +export interface PositionWithOffset extends Position { + offset: number; +} +/** + * Represents a range of characters in the source. + */ +export type SourceRange = [number, number]; +/** + * What the rule is responsible for finding: + * - `problem` means the rule has noticed a potential error. + * - `suggestion` means the rule suggests an alternate or better approach. + * - `layout` means the rule is looking at spacing, indentation, etc. + */ +export type RuleType = "problem" | "suggestion" | "layout"; +/** + * The type of fix the rule can provide: + * - `code` means the rule can fix syntax. + * - `whitespace` means the rule can fix spacing and indentation. + */ +export type RuleFixType = "code" | "whitespace"; +/** + * An object containing visitor information for a rule. Each method is either the + * name of a node type or a selector, or is a method that will be called at specific + * times during the traversal. + */ +export interface RuleVisitor { + /** + * Called for each node in the AST or at specific times during the traversal. + */ + [key: string]: (...args: any[]) => void; +} +/** + * Rule meta information used for documentation. + */ +export interface RulesMetaDocs { + /** + * A short description of the rule. + */ + description?: string | undefined; + /** + * The URL to the documentation for the rule. + */ + url?: string | undefined; + /** + * The category the rule falls under. + * @deprecated No longer used. + */ + category?: string | undefined; + /** + * Indicates if the rule is generally recommended for all users. + */ + recommended?: boolean | undefined; +} +/** + * Meta information about a rule. + */ +export interface RulesMeta { + /** + * Properties that are used when documenting the rule. + */ + docs?: (RulesMetaDocs & ExtRuleDocs) | undefined; + /** + * The type of rule. + */ + type?: RuleType | undefined; + /** + * The schema for the rule options. Required if the rule has options. + */ + schema?: JSONSchema4 | JSONSchema4[] | false | undefined; + /** + * The messages that the rule can report. + */ + messages?: Record; + /** + * The deprecated rules for the rule. + */ + deprecated?: boolean | undefined; + /** + * When a rule is deprecated, indicates the rule ID(s) that should be used instead. + */ + replacedBy?: string[] | undefined; + /** + * Indicates if the rule is fixable, and if so, what type of fix it provides. + */ + fixable?: RuleFixType | undefined; + /** + * Indicates if the rule may provide suggestions. + */ + hasSuggestions?: boolean | undefined; +} +/** + * Generic type for `RuleContext`. + */ +export interface RuleContextTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RuleOptions: unknown[]; + Node: unknown; +} +/** + * Represents the context object that is passed to a rule. This object contains + * information about the current state of the linting process and is the rule's + * view into the outside world. + */ +export interface RuleContext { + /** + * The current working directory for the session. + */ + cwd: string; + /** + * Returns the current working directory for the session. + * @deprecated Use `cwd` instead. + */ + getCwd(): string; + /** + * The filename of the file being linted. + */ + filename: string; + /** + * Returns the filename of the file being linted. + * @deprecated Use `filename` instead. + */ + getFilename(): string; + /** + * The physical filename of the file being linted. + */ + physicalFilename: string; + /** + * Returns the physical filename of the file being linted. + * @deprecated Use `physicalFilename` instead. + */ + getPhysicalFilename(): string; + /** + * The source code object that the rule is running on. + */ + sourceCode: Options["Code"]; + /** + * Returns the source code object that the rule is running on. + * @deprecated Use `sourceCode` instead. + */ + getSourceCode(): Options["Code"]; + /** + * Shared settings for the configuration. + */ + settings: SettingsConfig; + /** + * Parser-specific options for the configuration. + * @deprecated Use `languageOptions.parserOptions` instead. + */ + parserOptions: Record; + /** + * The language options for the configuration. + */ + languageOptions: Options["LangOptions"]; + /** + * The CommonJS path to the parser used while parsing this file. + * @deprecated No longer used. + */ + parserPath: string | undefined; + /** + * The rule ID. + */ + id: string; + /** + * The rule's configured options. + */ + options: Options["RuleOptions"]; + /** + * The report function that the rule should use to report problems. + * @param violation The violation to report. + */ + report(violation: ViolationReport): void; +} +/** + * Manager of text edits for a rule fix. + */ +export interface RuleTextEditor { + /** + * Inserts text after the specified node or token. + * @param syntaxElement The node or token to insert after. + * @param text The edit to insert after the node or token. + */ + insertTextAfter(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Inserts text after the specified range. + * @param range The range to insert after. + * @param text The edit to insert after the range. + */ + insertTextAfterRange(range: SourceRange, text: string): RuleTextEdit; + /** + * Inserts text before the specified node or token. + * @param syntaxElement A syntax element with location information to insert before. + * @param text The edit to insert before the node or token. + */ + insertTextBefore(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Inserts text before the specified range. + * @param range The range to insert before. + * @param text The edit to insert before the range. + */ + insertTextBeforeRange(range: SourceRange, text: string): RuleTextEdit; + /** + * Removes the specified node or token. + * @param syntaxElement A syntax element with location information to remove. + * @returns The edit to remove the node or token. + */ + remove(syntaxElement: EditableSyntaxElement): RuleTextEdit; + /** + * Removes the specified range. + * @param range The range to remove. + * @returns The edit to remove the range. + */ + removeRange(range: SourceRange): RuleTextEdit; + /** + * Replaces the specified node or token with the given text. + * @param syntaxElement A syntax element with location information to replace. + * @param text The text to replace the node or token with. + * @returns The edit to replace the node or token. + */ + replaceText(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit; + /** + * Replaces the specified range with the given text. + * @param range The range to replace. + * @param text The text to replace the range with. + * @returns The edit to replace the range. + */ + replaceTextRange(range: SourceRange, text: string): RuleTextEdit; +} +/** + * Represents a fix for a rule violation implemented as a text edit. + */ +export interface RuleTextEdit { + /** + * The range to replace. + */ + range: SourceRange; + /** + * The text to insert. + */ + text: string; +} +interface ViolationReportBase { + /** + * The type of node that the violation is for. + * @deprecated May be removed in the future. + */ + nodeType?: string | undefined; + /** + * The data to insert into the message. + */ + data?: Record | undefined; + /** + * The fix to be applied for the violation. + * @param fixer The text editor to apply the fix. + * @returns The fix(es) for the violation. + */ + fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null; + /** + * An array of suggested fixes for the problem. These fixes may change the + * behavior of the code, so they are not applied automatically. + */ + suggest?: SuggestedEdit[]; +} +type ViolationMessage = { + message: string; +} | { + messageId: string; +}; +type ViolationLocation = { + loc: SourceLocation; +} | { + node: Node; +}; +export type ViolationReport = ViolationReportBase & ViolationMessage & ViolationLocation; +interface SuggestedEditBase { + /** + * The data to insert into the message. + */ + data?: Record | undefined; + /** + * The fix to be applied for the suggestion. + * @param fixer The text editor to apply the fix. + * @returns The fix for the suggestion. + */ + fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null; +} +type SuggestionMessage = { + desc: string; +} | { + messageId: string; +}; +/** + * A suggested edit for a rule violation. + */ +export type SuggestedEdit = SuggestedEditBase & SuggestionMessage; +/** + * Generic options for the `RuleDefinition` type. + */ +export interface RuleDefinitionTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RuleOptions: unknown[]; + Visitor: RuleVisitor; + Node: unknown; + MessageIds: string; + ExtRuleDocs: unknown; +} +/** + * The definition of an ESLint rule. + */ +export interface RuleDefinition { + /** + * The meta information for the rule. + */ + meta?: RulesMeta; + /** + * Creates the visitor that ESLint uses to apply the rule during traversal. + * @param context The rule context. + * @returns The rule visitor. + */ + create(context: RuleContext<{ + LangOptions: Options["LangOptions"]; + Code: Options["Code"]; + RuleOptions: Options["RuleOptions"]; + Node: Options["Node"]; + }>): Options["Visitor"]; +} +/** + * The human readable severity level used in a configuration. + */ +export type SeverityName = "off" | "warn" | "error"; +/** + * The numeric severity level for a rule. + * + * - `0` means off. + * - `1` means warn. + * - `2` means error. + */ +export type SeverityLevel = 0 | 1 | 2; +/** + * The severity of a rule in a configuration. + */ +export type Severity = SeverityName | SeverityLevel; +/** + * Represents the configuration options for the core linter. + */ +export interface LinterOptionsConfig { + /** + * Indicates whether or not inline configuration is evaluated. + */ + noInlineConfig?: boolean; + /** + * Indicates what to do when an unused disable directive is found. + */ + reportUnusedDisableDirectives?: boolean | Severity; +} +/** + * Shared settings that are accessible from within plugins. + */ +export type SettingsConfig = Record; +/** + * The configuration for a rule. + */ +export type RuleConfig = Severity | [Severity, ...unknown[]]; +/** + * A collection of rules and their configurations. + */ +export type RulesConfig = Record; +/** + * Generic options for the `Language` type. + */ +export interface LanguageTypeOptions { + LangOptions: LanguageOptions; + Code: SourceCode; + RootNode: unknown; + Node: unknown; +} +/** + * Represents a plugin language. + */ +export interface Language { + /** + * Indicates how ESLint should read the file. + */ + fileType: "text"; + /** + * First line number returned from the parser (text mode only). + */ + lineStart: 0 | 1; + /** + * First column number returned from the parser (text mode only). + */ + columnStart: 0 | 1; + /** + * The property to read the node type from. Used in selector querying. + */ + nodeTypeKey: string; + /** + * The traversal path that tools should take when evaluating the AST + */ + visitorKeys?: Record; + /** + * Default language options. User-defined options are merged with this object. + */ + defaultLanguageOptions?: LanguageOptions; + /** + * Validates languageOptions for this language. + */ + validateLanguageOptions(languageOptions: Options["LangOptions"]): void; + /** + * Normalizes languageOptions for this language. + */ + normalizeLanguageOptions?(languageOptions: Options["LangOptions"]): Options["LangOptions"]; + /** + * Helper for esquery that allows languages to match nodes against + * class. esquery currently has classes like `function` that will + * match all the various function nodes. This method allows languages + * to implement similar shorthands. + */ + matchesSelectorClass?(className: string, node: Options["Node"], ancestry: Options["Node"][]): boolean; + /** + * Parses the given file input into its component parts. This file should not + * throws errors for parsing errors but rather should return any parsing + * errors as parse of the ParseResult object. + */ + parse(file: File, context: LanguageContext): ParseResult; + /** + * Creates SourceCode object that ESLint uses to work with a file. + */ + createSourceCode(file: File, input: OkParseResult, context: LanguageContext): Options["Code"]; +} +/** + * Plugin-defined options for the language. + */ +export type LanguageOptions = Record; +/** + * The context object that is passed to the language plugin methods. + */ +export interface LanguageContext { + languageOptions: LangOptions; +} +/** + * Represents a file read by ESLint. + */ +export interface File { + /** + * The path that ESLint uses for this file. May be a virtual path + * if it was returned by a processor. + */ + path: string; + /** + * The path to the file on disk. This always maps directly to a file + * regardless of whether it was returned from a processor. + */ + physicalPath: string; + /** + * Indicates if the original source contained a byte-order marker. + * ESLint strips the BOM from the `body`, but this info is needed + * to correctly apply autofixing. + */ + bom: boolean; + /** + * The body of the file to parse. + */ + body: string | Uint8Array; +} +/** + * Represents the successful result of parsing a file. + */ +export interface OkParseResult { + /** + * Indicates if the parse was successful. If true, the parse was successful + * and ESLint should continue on to create a SourceCode object and run rules; + * if false, ESLint should just report the error(s) without doing anything + * else. + */ + ok: true; + /** + * The abstract syntax tree created by the parser. (only when ok: true) + */ + ast: RootNode; + /** + * Any additional data that the parser wants to provide. + */ + [key: string]: any; +} +/** + * Represents the unsuccessful result of parsing a file. + */ +export interface NotOkParseResult { + /** + * Indicates if the parse was successful. If true, the parse was successful + * and ESLint should continue on to create a SourceCode object and run rules; + * if false, ESLint should just report the error(s) without doing anything + * else. + */ + ok: false; + /** + * Any parsing errors, whether fatal or not. (only when ok: false) + */ + errors: FileError[]; + /** + * Any additional data that the parser wants to provide. + */ + [key: string]: any; +} +export type ParseResult = OkParseResult | NotOkParseResult; +/** + * Represents inline configuration found in the source code. + */ +interface InlineConfigElement { + /** + * The location of the inline config element. + */ + loc: SourceLocation; + /** + * The interpreted configuration from the inline config element. + */ + config: { + rules: RulesConfig; + }; +} +/** + * Generic options for the `SourceCodeBase` type. + */ +interface SourceCodeBaseTypeOptions { + LangOptions: LanguageOptions; + RootNode: unknown; + SyntaxElementWithLoc: unknown; + ConfigNode: unknown; +} +/** + * Represents the basic interface for a source code object. + */ +interface SourceCodeBase { + /** + * Root of the AST. + */ + ast: Options["RootNode"]; + /** + * The traversal path that tools should take when evaluating the AST. + * When present, this overrides the `visitorKeys` on the language for + * just this source code object. + */ + visitorKeys?: Record; + /** + * Retrieves the equivalent of `loc` for a given node or token. + * @param syntaxElement The node or token to get the location for. + * @returns The location of the node or token. + */ + getLoc(syntaxElement: Options["SyntaxElementWithLoc"]): SourceLocation; + /** + * Retrieves the equivalent of `range` for a given node or token. + * @param syntaxElement The node or token to get the range for. + * @returns The range of the node or token. + */ + getRange(syntaxElement: Options["SyntaxElementWithLoc"]): SourceRange; + /** + * Traversal of AST. + */ + traverse(): Iterable; + /** + * Applies language options passed in from the ESLint core. + */ + applyLanguageOptions?(languageOptions: Options["LangOptions"]): void; + /** + * Return all of the inline areas where ESLint should be disabled/enabled + * along with any problems found in evaluating the directives. + */ + getDisableDirectives?(): { + directives: Directive[]; + problems: FileProblem[]; + }; + /** + * Returns an array of all inline configuration nodes found in the + * source code. + */ + getInlineConfigNodes?(): Options["ConfigNode"][]; + /** + * Applies configuration found inside of the source code. This method is only + * called when ESLint is running with inline configuration allowed. + */ + applyInlineConfig?(): { + configs: InlineConfigElement[]; + problems: FileProblem[]; + }; + /** + * Called by ESLint core to indicate that it has finished providing + * information. We now add in all the missing variables and ensure that + * state-changing methods cannot be called by rules. + * @returns {void} + */ + finalize?(): void; +} +/** + * Represents the source of a text file being linted. + */ +export interface TextSourceCode extends SourceCodeBase { + /** + * The body of the file that you'd like rule developers to access. + */ + text: string; +} +/** + * Represents the source of a binary file being linted. + */ +export interface BinarySourceCode extends SourceCodeBase { + /** + * The body of the file that you'd like rule developers to access. + */ + body: Uint8Array; +} +export type SourceCode = TextSourceCode | BinarySourceCode; +/** + * Represents a traversal step visiting the AST. + */ +export interface VisitTraversalStep { + kind: 1; + target: unknown; + phase: 1 | 2; + args: unknown[]; +} +/** + * Represents a traversal step calling a function. + */ +export interface CallTraversalStep { + kind: 2; + target: string; + phase?: string; + args: unknown[]; +} +export type TraversalStep = VisitTraversalStep | CallTraversalStep; +/** + * The type of disable directive. This determines how ESLint will disable rules. + */ +export type DirectiveType = "disable" | "enable" | "disable-line" | "disable-next-line"; +/** + * Represents a disable directive. + */ +export interface Directive { + /** + * The type of directive. + */ + type: DirectiveType; + /** + * The node of the directive. May be in the AST or a comment/token. + */ + node: unknown; + /** + * The value of the directive. + */ + value: string; + /** + * The justification for the directive. + */ + justification?: string; +} +export {}; diff --git a/node_modules/@eslint/core/package.json b/node_modules/@eslint/core/package.json new file mode 100644 index 00000000..797e3a65 --- /dev/null +++ b/node_modules/@eslint/core/package.json @@ -0,0 +1,45 @@ +{ + "name": "@eslint/core", + "version": "0.9.0", + "description": "Runtime-agnostic core of ESLint", + "type": "module", + "types": "./dist/esm/types.d.ts", + "exports": { + "types": { + "import": "./dist/esm/types.d.ts", + "require": "./dist/cjs/types.d.cts" + } + }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public" + }, + "scripts": { + "build:cts": "node -e \"fs.cpSync('dist/esm/types.d.ts', 'dist/cjs/types.d.cts')\"", + "build": "tsc && npm run build:cts", + "test:jsr": "npx jsr@latest publish --dry-run" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/eslint/rewrite.git" + }, + "keywords": [ + "eslint", + "core" + ], + "author": "Nicholas C. Zakas", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/rewrite/issues" + }, + "homepage": "https://github.com/eslint/rewrite#readme", + "devDependencies": { + "json-schema": "^0.4.0", + "typescript": "^5.4.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } +} diff --git a/node_modules/@eslint/eslintrc/README.md b/node_modules/@eslint/eslintrc/README.md index 7641c741..cdcf0a63 100644 --- a/node_modules/@eslint/eslintrc/README.md +++ b/node_modules/@eslint/eslintrc/README.md @@ -33,14 +33,14 @@ const __dirname = path.dirname(__filename); const compat = new FlatCompat({ baseDirectory: __dirname, // optional; default: process.cwd() resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional - allConfig: js.configs.all, // optional + recommendedConfig: js.configs.recommended, // optional unless you're using "eslint:recommended" + allConfig: js.configs.all, // optional unless you're using "eslint:all" }); export default [ // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), + ...compat.extends("standard", "example", "plugin:react/recommended"), // mimic environments ...compat.env({ @@ -49,11 +49,11 @@ export default [ }), // mimic plugins - ...compat.plugins("airbnb", "react"), + ...compat.plugins("jsx-a11y", "react"), // translate an entire config ...compat.config({ - plugins: ["airbnb", "react"], + plugins: ["jsx-a11y", "react"], extends: "standard", env: { es2020: true, @@ -77,14 +77,14 @@ const js = require("@eslint/js"); const compat = new FlatCompat({ baseDirectory: __dirname, // optional; default: process.cwd() resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional - allConfig: js.configs.all, // optional + recommendedConfig: js.configs.recommended, // optional unless using "eslint:recommended" + allConfig: js.configs.all, // optional unless using "eslint:all" }); module.exports = [ // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), + ...compat.extends("standard", "example", "plugin:react/recommended"), // mimic environments ...compat.env({ @@ -93,11 +93,11 @@ module.exports = [ }), // mimic plugins - ...compat.plugins("airbnb", "react"), + ...compat.plugins("jsx-a11y", "react"), // translate an entire config ...compat.config({ - plugins: ["airbnb", "react"], + plugins: ["jsx-a11y", "react"], extends: "standard", env: { es2020: true, @@ -110,6 +110,17 @@ module.exports = [ ]; ``` +## Troubleshooting + +**TypeError: Missing parameter 'recommendedConfig' in FlatCompat constructor** + +The `recommendedConfig` option is required when any config uses `eslint:recommended`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:recommended` config. + +**TypeError: Missing parameter 'allConfig' in FlatCompat constructor** + +The `allConfig` option is required when any config uses `eslint:all`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:all` config. + + ## License MIT License diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs index 64e66666..c0414cfd 100644 --- a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +++ b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs @@ -387,6 +387,63 @@ var ajvOrig = (additionalOptions = {}) => { return ajv; }; +/** + * @fileoverview Applies default rule options + * @author JoshuaKGoldberg + */ + +/** + * Check if the variable contains an object strictly rejecting arrays + * @param {unknown} value an object + * @returns {boolean} Whether value is an object + */ +function isObjectNotArray(value) { + return typeof value === "object" && value !== null && !Array.isArray(value); +} + +/** + * Deeply merges second on top of first, creating a new {} object if needed. + * @param {T} first Base, default value. + * @param {U} second User-specified value. + * @returns {T | U | (T & U)} Merged equivalent of second on top of first. + */ +function deepMergeObjects(first, second) { + if (second === void 0) { + return first; + } + + if (!isObjectNotArray(first) || !isObjectNotArray(second)) { + return second; + } + + const result = { ...first, ...second }; + + for (const key of Object.keys(second)) { + if (Object.prototype.propertyIsEnumerable.call(first, key)) { + result[key] = deepMergeObjects(first[key], second[key]); + } + } + + return result; +} + +/** + * Deeply merges second on top of first, creating a new [] array if needed. + * @param {T[] | undefined} first Base, default values. + * @param {U[] | undefined} second User-specified values. + * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first. + */ +function deepMergeArrays(first, second) { + if (!first || !second) { + return second || first || []; + } + + return [ + ...first.map((value, i) => deepMergeObjects(value, second[i])), + ...second.slice(first.length) + ]; +} + /** * @fileoverview Defines a schema for configs. * @author Sylvan Mably @@ -697,6 +754,13 @@ const severityMap = { const validated = new WeakSet(); +// JSON schema that disallows passing any options +const noOptionsSchema = Object.freeze({ + type: "array", + minItems: 0, + maxItems: 0 +}); + //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- @@ -708,17 +772,36 @@ class ConfigValidator { /** * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. + * @param {Rule} rule A rule object + * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. + * @returns {Object|null} JSON Schema for the rule's options. + * `null` if rule wasn't passed or its `meta.schema` is `false`. */ getRuleOptionsSchema(rule) { if (!rule) { return null; } - const schema = rule.schema || rule.meta && rule.meta.schema; + if (!rule.meta) { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + const schema = rule.meta.schema; + + if (typeof schema === "undefined") { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + // `schema:false` is an allowed explicit opt-out of options validation for the rule + if (schema === false) { + return null; + } + + if (typeof schema !== "object" || schema === null) { + throw new TypeError("Rule's `meta.schema` must be an array or object"); + } - // Given a tuple of schemas, insert warning level at the beginning + // ESLint-specific array form needs to be converted into a valid JSON Schema definition if (Array.isArray(schema)) { if (schema.length) { return { @@ -728,16 +811,13 @@ class ConfigValidator { maxItems: schema.length }; } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; + // `schema:[]` is an explicit way to specify that the rule does not accept any options + return { ...noOptionsSchema }; } - // Given a full schema, leave it alone - return schema || null; + // `schema:` is assumed to be a valid JSON Schema definition + return schema; } /** @@ -765,17 +845,28 @@ class ConfigValidator { */ validateRuleSchema(rule, localOptions) { if (!ruleValidators.has(rule)) { - const schema = this.getRuleOptionsSchema(rule); + try { + const schema = this.getRuleOptionsSchema(rule); + + if (schema) { + ruleValidators.set(rule, ajv.compile(schema)); + } + } catch (err) { + const errorWithCode = new Error(err.message, { cause: err }); + + errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); + throw errorWithCode; } } const validateRule = ruleValidators.get(rule); if (validateRule) { - validateRule(localOptions); + const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); + + validateRule(mergedOptions); + if (validateRule.errors) { throw new Error(validateRule.errors.map( error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` @@ -801,13 +892,21 @@ class ConfigValidator { this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); } } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; + let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" + ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` + : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); + enhancedMessage = `${source}:\n\t${enhancedMessage}`; } + + const enhancedError = new Error(enhancedMessage, { cause: err }); + + if (err.code) { + enhancedError.code = err.code; + } + + throw enhancedError; } } diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map index 12895a6c..c1c84999 100644 --- a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +++ b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map @@ -1 +1 @@ -{"version":3,"file":"eslintrc-universal.cjs","sources":["../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/index-universal.js"],"sourcesContent":["/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object\n * @returns {Object} JSON Schema for the rule's options.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n const schema = rule.schema || rule.meta && rule.meta.schema;\n\n // Given a tuple of schemas, insert warning level at the beginning\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n return {\n type: \"array\",\n minItems: 0,\n maxItems: 0\n };\n\n }\n\n // Given a full schema, leave it alone\n return schema || null;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n const enhancedMessage = `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n throw new Error(`${source}:\\n\\t${enhancedMessage}`);\n } else {\n throw new Error(enhancedMessage);\n }\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n naming\n};\n\nexport {\n Legacy\n};\n"],"names":["path","Ajv","globals","util","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;AACtD,IAAI,aAAa,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK;AACxE,QAAQ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC3B,QAAQ,OAAO,GAAG,CAAC;AACnB,KAAK,EAAE,EAAE,CAAC;AACV,IAAI,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CA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AO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,SAAS;AACT,KAAK,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;AAClD,QAAQ,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjD,KAAK;AACL;AACA,IAAI,OAAO,QAAQ,CAAC;AACpB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,IAAI,EAAE;AACpC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAC9C;AACA,IAAI,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACjC;;;;;;;;;ACrFA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,MAAM;AACV;;;;"} \ No newline at end of file +{"version":3,"file":"eslintrc-universal.cjs","sources":["../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../lib/shared/deep-merge-arrays.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/index-universal.js"],"sourcesContent":["/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Applies default rule options\n * @author JoshuaKGoldberg\n */\n\n/**\n * Check if the variable contains an object strictly rejecting arrays\n * @param {unknown} value an object\n * @returns {boolean} Whether value is an object\n */\nfunction isObjectNotArray(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\n/**\n * Deeply merges second on top of first, creating a new {} object if needed.\n * @param {T} first Base, default value.\n * @param {U} second User-specified value.\n * @returns {T | U | (T & U)} Merged equivalent of second on top of first.\n */\nfunction deepMergeObjects(first, second) {\n if (second === void 0) {\n return first;\n }\n\n if (!isObjectNotArray(first) || !isObjectNotArray(second)) {\n return second;\n }\n\n const result = { ...first, ...second };\n\n for (const key of Object.keys(second)) {\n if (Object.prototype.propertyIsEnumerable.call(first, key)) {\n result[key] = deepMergeObjects(first[key], second[key]);\n }\n }\n\n return result;\n}\n\n/**\n * Deeply merges second on top of first, creating a new [] array if needed.\n * @param {T[] | undefined} first Base, default values.\n * @param {U[] | undefined} second User-specified values.\n * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first.\n */\nfunction deepMergeArrays(first, second) {\n if (!first || !second) {\n return second || first || [];\n }\n\n return [\n ...first.map((value, i) => deepMergeObjects(value, second[i])),\n ...second.slice(first.length)\n ];\n}\n\nexport { deepMergeArrays };\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport { deepMergeArrays } from \"./deep-merge-arrays.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);\n\n validateRule(mergedOptions);\n\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n naming\n};\n\nexport {\n Legacy\n};\n"],"names":["path","Ajv","globals","util","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;AACtD,IAAI,aAAa,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK;AACxE,QAAQ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC3B,QAAQ,OAAO,GAAG,CAAC;AACnB,KAAK,EAAE,EAAE,CAAC;AACV,IAAI,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,UAAU,EAAE;AACrC,IAAI,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;AACjF;AACA,IAAI,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE;AAC3E,QAAQ,OAAO,aAAa,CAAC;AAC7B,KAAK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CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,SAAS;AACT,KAAK,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;AAClD,QAAQ,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjD,KAAK;AACL;AACA,IAAI,OAAO,QAAQ,CAAC;AACpB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,IAAI,EAAE;AACpC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAC9C;AACA,IAAI,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACjC;;;;;;;;;ACrFA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,MAAM;AACV;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs index eb2ed8d3..756320f5 100644 --- a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +++ b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs @@ -716,31 +716,18 @@ function createConfig(instance, indices) { * @param {string} pluginId The plugin ID for prefix. * @param {Record} defs The definitions to collect. * @param {Map} map The map to output. - * @param {function(T): U} [normalize] The normalize function for each value. * @returns {void} */ -function collect(pluginId, defs, map, normalize) { +function collect(pluginId, defs, map) { if (defs) { const prefix = pluginId && `${pluginId}/`; for (const [key, value] of Object.entries(defs)) { - map.set( - `${prefix}${key}`, - normalize ? normalize(value) : value - ); + map.set(`${prefix}${key}`, value); } } } -/** - * Normalize a rule definition. - * @param {Function|Rule} rule The rule definition to normalize. - * @returns {Rule} The normalized rule definition. - */ -function normalizePluginRule(rule) { - return typeof rule === "function" ? { create: rule } : rule; -} - /** * Delete the mutation methods from a given map. * @param {Map} map The map object to delete. @@ -782,7 +769,7 @@ function initPluginMemberMaps(elements, slots) { collect(pluginId, plugin.environments, slots.envMap); collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap, normalizePluginRule); + collect(pluginId, plugin.rules, slots.ruleMap); } } @@ -1628,6 +1615,63 @@ var ajvOrig = (additionalOptions = {}) => { return ajv; }; +/** + * @fileoverview Applies default rule options + * @author JoshuaKGoldberg + */ + +/** + * Check if the variable contains an object strictly rejecting arrays + * @param {unknown} value an object + * @returns {boolean} Whether value is an object + */ +function isObjectNotArray(value) { + return typeof value === "object" && value !== null && !Array.isArray(value); +} + +/** + * Deeply merges second on top of first, creating a new {} object if needed. + * @param {T} first Base, default value. + * @param {U} second User-specified value. + * @returns {T | U | (T & U)} Merged equivalent of second on top of first. + */ +function deepMergeObjects(first, second) { + if (second === void 0) { + return first; + } + + if (!isObjectNotArray(first) || !isObjectNotArray(second)) { + return second; + } + + const result = { ...first, ...second }; + + for (const key of Object.keys(second)) { + if (Object.prototype.propertyIsEnumerable.call(first, key)) { + result[key] = deepMergeObjects(first[key], second[key]); + } + } + + return result; +} + +/** + * Deeply merges second on top of first, creating a new [] array if needed. + * @param {T[] | undefined} first Base, default values. + * @param {U[] | undefined} second User-specified values. + * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first. + */ +function deepMergeArrays(first, second) { + if (!first || !second) { + return second || first || []; + } + + return [ + ...first.map((value, i) => deepMergeObjects(value, second[i])), + ...second.slice(first.length) + ]; +} + /** * @fileoverview Defines a schema for configs. * @author Sylvan Mably @@ -1938,6 +1982,13 @@ const severityMap = { const validated = new WeakSet(); +// JSON schema that disallows passing any options +const noOptionsSchema = Object.freeze({ + type: "array", + minItems: 0, + maxItems: 0 +}); + //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- @@ -1949,17 +2000,36 @@ class ConfigValidator { /** * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. + * @param {Rule} rule A rule object + * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. + * @returns {Object|null} JSON Schema for the rule's options. + * `null` if rule wasn't passed or its `meta.schema` is `false`. */ getRuleOptionsSchema(rule) { if (!rule) { return null; } - const schema = rule.schema || rule.meta && rule.meta.schema; + if (!rule.meta) { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + const schema = rule.meta.schema; + + if (typeof schema === "undefined") { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + // `schema:false` is an allowed explicit opt-out of options validation for the rule + if (schema === false) { + return null; + } + + if (typeof schema !== "object" || schema === null) { + throw new TypeError("Rule's `meta.schema` must be an array or object"); + } - // Given a tuple of schemas, insert warning level at the beginning + // ESLint-specific array form needs to be converted into a valid JSON Schema definition if (Array.isArray(schema)) { if (schema.length) { return { @@ -1969,16 +2039,13 @@ class ConfigValidator { maxItems: schema.length }; } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; + // `schema:[]` is an explicit way to specify that the rule does not accept any options + return { ...noOptionsSchema }; } - // Given a full schema, leave it alone - return schema || null; + // `schema:` is assumed to be a valid JSON Schema definition + return schema; } /** @@ -2006,17 +2073,28 @@ class ConfigValidator { */ validateRuleSchema(rule, localOptions) { if (!ruleValidators.has(rule)) { - const schema = this.getRuleOptionsSchema(rule); + try { + const schema = this.getRuleOptionsSchema(rule); - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); + if (schema) { + ruleValidators.set(rule, ajv.compile(schema)); + } + } catch (err) { + const errorWithCode = new Error(err.message, { cause: err }); + + errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; + + throw errorWithCode; } } const validateRule = ruleValidators.get(rule); if (validateRule) { - validateRule(localOptions); + const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); + + validateRule(mergedOptions); + if (validateRule.errors) { throw new Error(validateRule.errors.map( error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` @@ -2042,13 +2120,21 @@ class ConfigValidator { this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); } } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; + let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" + ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` + : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); + enhancedMessage = `${source}:\n\t${enhancedMessage}`; + } + + const enhancedError = new Error(enhancedMessage, { cause: err }); + + if (err.code) { + enhancedError.code = err.code; } + + throw enhancedError; } } @@ -4331,6 +4417,7 @@ const Legacy = { OverrideTester, getUsedExtractedConfigs, environments, + loadConfigFile, // shared ConfigOps, diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map index c4f4fced..e7893202 100644 --- a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +++ b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map @@ -1 +1 @@ -{"version":3,"file":"eslintrc.cjs","sources":["../lib/config-array/ignore-pattern.js","../lib/config-array/extracted-config.js","../lib/config-array/config-array.js","../lib/config-array/config-dependency.js","../lib/config-array/override-tester.js","../lib/config-array/index.js","../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/shared/relative-module-resolver.js","../lib/config-array-factory.js","../lib/cascading-config-array-factory.js","../lib/flat-compat.js","../lib/index.js"],"sourcesContent":["/**\n * @fileoverview `IgnorePattern` class.\n *\n * `IgnorePattern` class has the set of glob patterns and the base path.\n *\n * It provides two static methods.\n *\n * - `IgnorePattern.createDefaultIgnore(cwd)`\n * Create the default predicate function.\n * - `IgnorePattern.createIgnore(ignorePatterns)`\n * Create the predicate function from multiple `IgnorePattern` objects.\n *\n * It provides two properties and a method.\n *\n * - `patterns`\n * The glob patterns that ignore to lint.\n * - `basePath`\n * The base path of the glob patterns. If absolute paths existed in the\n * glob patterns, those are handled as relative paths to the base path.\n * - `getPatternsRelativeTo(basePath)`\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n *\n * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes\n * `ignorePatterns` properties.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport ignore from \"ignore\";\nimport debugOrig from \"debug\";\n\nconst debug = debugOrig(\"eslintrc:ignore-pattern\");\n\n/** @typedef {ReturnType} Ignore */\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the path to the common ancestor directory of given paths.\n * @param {string[]} sourcePaths The paths to calculate the common ancestor.\n * @returns {string} The path to the common ancestor directory.\n */\nfunction getCommonAncestorPath(sourcePaths) {\n let result = sourcePaths[0];\n\n for (let i = 1; i < sourcePaths.length; ++i) {\n const a = result;\n const b = sourcePaths[i];\n\n // Set the shorter one (it's the common ancestor if one includes the other).\n result = a.length < b.length ? a : b;\n\n // Set the common ancestor.\n for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) {\n if (a[j] !== b[j]) {\n result = a.slice(0, lastSepPos);\n break;\n }\n if (a[j] === path.sep) {\n lastSepPos = j;\n }\n }\n }\n\n let resolvedResult = result || path.sep;\n\n // if Windows common ancestor is root of drive must have trailing slash to be absolute.\n if (resolvedResult && resolvedResult.endsWith(\":\") && process.platform === \"win32\") {\n resolvedResult += path.sep;\n }\n return resolvedResult;\n}\n\n/**\n * Make relative path.\n * @param {string} from The source path to get relative path.\n * @param {string} to The destination path to get relative path.\n * @returns {string} The relative path.\n */\nfunction relative(from, to) {\n const relPath = path.relative(from, to);\n\n if (path.sep === \"/\") {\n return relPath;\n }\n return relPath.split(path.sep).join(\"/\");\n}\n\n/**\n * Get the trailing slash if existed.\n * @param {string} filePath The path to check.\n * @returns {string} The trailing slash if existed.\n */\nfunction dirSuffix(filePath) {\n const isDir = (\n filePath.endsWith(path.sep) ||\n (process.platform === \"win32\" && filePath.endsWith(\"/\"))\n );\n\n return isDir ? \"/\" : \"\";\n}\n\nconst DefaultPatterns = Object.freeze([\"/**/node_modules/*\"]);\nconst DotPatterns = Object.freeze([\".*\", \"!.eslintrc.*\", \"!../\"]);\n\n//------------------------------------------------------------------------------\n// Public\n//------------------------------------------------------------------------------\n\nclass IgnorePattern {\n\n /**\n * The default patterns.\n * @type {string[]}\n */\n static get DefaultPatterns() {\n return DefaultPatterns;\n }\n\n /**\n * Create the default predicate function.\n * @param {string} cwd The current working directory.\n * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createDefaultIgnore(cwd) {\n return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]);\n }\n\n /**\n * Create the predicate function from multiple `IgnorePattern` objects.\n * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns.\n * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createIgnore(ignorePatterns) {\n debug(\"Create with: %o\", ignorePatterns);\n\n const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath));\n const patterns = [].concat(\n ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath))\n );\n const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]);\n const dotIg = ignore({ allowRelativePaths: true }).add(patterns);\n\n debug(\" processed: %o\", { basePath, patterns });\n\n return Object.assign(\n (filePath, dot = false) => {\n assert(path.isAbsolute(filePath), \"'filePath' should be an absolute path.\");\n const relPathRaw = relative(basePath, filePath);\n const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath));\n const adoptedIg = dot ? dotIg : ig;\n const result = relPath !== \"\" && adoptedIg.ignores(relPath);\n\n debug(\"Check\", { filePath, dot, relativePath: relPath, result });\n return result;\n },\n { basePath, patterns }\n );\n }\n\n /**\n * Initialize a new `IgnorePattern` instance.\n * @param {string[]} patterns The glob patterns that ignore to lint.\n * @param {string} basePath The base path of `patterns`.\n */\n constructor(patterns, basePath) {\n assert(path.isAbsolute(basePath), \"'basePath' should be an absolute path.\");\n\n /**\n * The glob patterns that ignore to lint.\n * @type {string[]}\n */\n this.patterns = patterns;\n\n /**\n * The base path of `patterns`.\n * @type {string}\n */\n this.basePath = basePath;\n\n /**\n * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`.\n *\n * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility.\n * It's `false` as-is for `ignorePatterns` property in config files.\n * @type {boolean}\n */\n this.loose = false;\n }\n\n /**\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n * @param {string} newBasePath The base path.\n * @returns {string[]} Modifired patterns.\n */\n getPatternsRelativeTo(newBasePath) {\n assert(path.isAbsolute(newBasePath), \"'newBasePath' should be an absolute path.\");\n const { basePath, loose, patterns } = this;\n\n if (newBasePath === basePath) {\n return patterns;\n }\n const prefix = `/${relative(newBasePath, basePath)}`;\n\n return patterns.map(pattern => {\n const negative = pattern.startsWith(\"!\");\n const head = negative ? \"!\" : \"\";\n const body = negative ? pattern.slice(1) : pattern;\n\n if (body.startsWith(\"/\") || body.startsWith(\"../\")) {\n return `${head}${prefix}${body}`;\n }\n return loose ? pattern : `${head}${prefix}/**/${body}`;\n });\n }\n}\n\nexport { IgnorePattern };\n","/**\n * @fileoverview `ExtractedConfig` class.\n *\n * `ExtractedConfig` class expresses a final configuration for a specific file.\n *\n * It provides one method.\n *\n * - `toCompatibleObjectAsConfigFileContent()`\n * Convert this configuration to the compatible object as the content of\n * config files. It converts the loaded parser and plugins to strings.\n * `CLIEngine#getConfigForFile(filePath)` method uses this method.\n *\n * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance.\n *\n * @author Toru Nagashima \n */\n\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n// For VSCode intellisense\n/** @typedef {import(\"../../shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").SeverityConf} SeverityConf */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n\n/**\n * Check if `xs` starts with `ys`.\n * @template T\n * @param {T[]} xs The array to check.\n * @param {T[]} ys The array that may be the first part of `xs`.\n * @returns {boolean} `true` if `xs` starts with `ys`.\n */\nfunction startsWith(xs, ys) {\n return xs.length >= ys.length && ys.every((y, i) => y === xs[i]);\n}\n\n/**\n * The class for extracted config data.\n */\nclass ExtractedConfig {\n constructor() {\n\n /**\n * The config name what `noInlineConfig` setting came from.\n * @type {string}\n */\n this.configNameOfNoInlineConfig = \"\";\n\n /**\n * Environments.\n * @type {Record}\n */\n this.env = {};\n\n /**\n * Global variables.\n * @type {Record}\n */\n this.globals = {};\n\n /**\n * The glob patterns that ignore to lint.\n * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined}\n */\n this.ignores = void 0;\n\n /**\n * The flag that disables directive comments.\n * @type {boolean|undefined}\n */\n this.noInlineConfig = void 0;\n\n /**\n * Parser definition.\n * @type {DependentParser|null}\n */\n this.parser = null;\n\n /**\n * Options for the parser.\n * @type {Object}\n */\n this.parserOptions = {};\n\n /**\n * Plugin definitions.\n * @type {Record}\n */\n this.plugins = {};\n\n /**\n * Processor ID.\n * @type {string|null}\n */\n this.processor = null;\n\n /**\n * The flag that reports unused `eslint-disable` directive comments.\n * @type {boolean|undefined}\n */\n this.reportUnusedDisableDirectives = void 0;\n\n /**\n * Rule settings.\n * @type {Record}\n */\n this.rules = {};\n\n /**\n * Shared settings.\n * @type {Object}\n */\n this.settings = {};\n }\n\n /**\n * Convert this config to the compatible object as a config file content.\n * @returns {ConfigData} The converted object.\n */\n toCompatibleObjectAsConfigFileContent() {\n const {\n /* eslint-disable no-unused-vars */\n configNameOfNoInlineConfig: _ignore1,\n processor: _ignore2,\n /* eslint-enable no-unused-vars */\n ignores,\n ...config\n } = this;\n\n config.parser = config.parser && config.parser.filePath;\n config.plugins = Object.keys(config.plugins).filter(Boolean).reverse();\n config.ignorePatterns = ignores ? ignores.patterns : [];\n\n // Strip the default patterns from `ignorePatterns`.\n if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) {\n config.ignorePatterns =\n config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length);\n }\n\n return config;\n }\n}\n\nexport { ExtractedConfig };\n","/**\n * @fileoverview `ConfigArray` class.\n *\n * `ConfigArray` class expresses the full of a configuration. It has the entry\n * config file, base config files that were extended, loaded parsers, and loaded\n * plugins.\n *\n * `ConfigArray` class provides three properties and two methods.\n *\n * - `pluginEnvironments`\n * - `pluginProcessors`\n * - `pluginRules`\n * The `Map` objects that contain the members of all plugins that this\n * config array contains. Those map objects don't have mutation methods.\n * Those keys are the member ID such as `pluginId/memberName`.\n * - `isRoot()`\n * If `true` then this configuration has `root:true` property.\n * - `extractConfig(filePath)`\n * Extract the final configuration for a given file. This means merging\n * every config array element which that `criteria` property matched. The\n * `filePath` argument must be an absolute path.\n *\n * `ConfigArrayFactory` provides the loading logic of config files.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").RuleConf} RuleConf */\n/** @typedef {import(\"../../shared/types\").Rule} Rule */\n/** @typedef {import(\"../../shared/types\").Plugin} Plugin */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {import(\"./override-tester\")[\"OverrideTester\"]} OverrideTester */\n\n/**\n * @typedef {Object} ConfigArrayElement\n * @property {string} name The name of this config element.\n * @property {string} filePath The path to the source file of this config element.\n * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element.\n * @property {Record|undefined} env The environment settings.\n * @property {Record|undefined} globals The global variable settings.\n * @property {IgnorePattern|undefined} ignorePattern The ignore patterns.\n * @property {boolean|undefined} noInlineConfig The flag that disables directive comments.\n * @property {DependentParser|undefined} parser The parser loader.\n * @property {Object|undefined} parserOptions The parser options.\n * @property {Record|undefined} plugins The plugin loaders.\n * @property {string|undefined} processor The processor name to refer plugin's processor.\n * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments.\n * @property {boolean|undefined} root The flag to express root.\n * @property {Record|undefined} rules The rule settings\n * @property {Object|undefined} settings The shared settings.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The element type.\n */\n\n/**\n * @typedef {Object} ConfigArrayInternalSlots\n * @property {Map} cache The cache to extract configs.\n * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition.\n * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition.\n * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new class extends WeakMap {\n get(key) {\n let value = super.get(key);\n\n if (!value) {\n value = {\n cache: new Map(),\n envMap: null,\n processorMap: null,\n ruleMap: null\n };\n super.set(key, value);\n }\n\n return value;\n }\n}();\n\n/**\n * Get the indices which are matched to a given file.\n * @param {ConfigArrayElement[]} elements The elements.\n * @param {string} filePath The path to a target file.\n * @returns {number[]} The indices.\n */\nfunction getMatchedIndices(elements, filePath) {\n const indices = [];\n\n for (let i = elements.length - 1; i >= 0; --i) {\n const element = elements[i];\n\n if (!element.criteria || (filePath && element.criteria.test(filePath))) {\n indices.push(i);\n }\n }\n\n return indices;\n}\n\n/**\n * Check if a value is a non-null object.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is a non-null object.\n */\nfunction isNonNullObject(x) {\n return typeof x === \"object\" && x !== null;\n}\n\n/**\n * Merge two objects.\n *\n * Assign every property values of `y` to `x` if `x` doesn't have the property.\n * If `x`'s property value is an object, it does recursive.\n * @param {Object} target The destination to merge\n * @param {Object|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeWithoutOverwrite(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n\n if (isNonNullObject(target[key])) {\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (target[key] === void 0) {\n if (isNonNullObject(source[key])) {\n target[key] = Array.isArray(source[key]) ? [] : {};\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (source[key] !== void 0) {\n target[key] = source[key];\n }\n }\n }\n}\n\n/**\n * The error for plugin conflicts.\n */\nclass PluginConflictError extends Error {\n\n /**\n * Initialize this error object.\n * @param {string} pluginId The plugin ID.\n * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins.\n */\n constructor(pluginId, plugins) {\n super(`Plugin \"${pluginId}\" was conflicted between ${plugins.map(p => `\"${p.importerName}\"`).join(\" and \")}.`);\n this.messageTemplate = \"plugin-conflict\";\n this.messageData = { pluginId, plugins };\n }\n}\n\n/**\n * Merge plugins.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergePlugins(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetValue = target[key];\n const sourceValue = source[key];\n\n // Adopt the plugin which was found at first.\n if (targetValue === void 0) {\n if (sourceValue.error) {\n throw sourceValue.error;\n }\n target[key] = sourceValue;\n } else if (sourceValue.filePath !== targetValue.filePath) {\n throw new PluginConflictError(key, [\n {\n filePath: targetValue.filePath,\n importerName: targetValue.importerName\n },\n {\n filePath: sourceValue.filePath,\n importerName: sourceValue.importerName\n }\n ]);\n }\n }\n}\n\n/**\n * Merge rule configs.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeRuleConfigs(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetDef = target[key];\n const sourceDef = source[key];\n\n // Adopt the rule config which was found at first.\n if (targetDef === void 0) {\n if (Array.isArray(sourceDef)) {\n target[key] = [...sourceDef];\n } else {\n target[key] = [sourceDef];\n }\n\n /*\n * If the first found rule config is severity only and the current rule\n * config has options, merge the severity and the options.\n */\n } else if (\n targetDef.length === 1 &&\n Array.isArray(sourceDef) &&\n sourceDef.length >= 2\n ) {\n targetDef.push(...sourceDef.slice(1));\n }\n }\n}\n\n/**\n * Create the extracted config.\n * @param {ConfigArray} instance The config elements.\n * @param {number[]} indices The indices to use.\n * @returns {ExtractedConfig} The extracted config.\n */\nfunction createConfig(instance, indices) {\n const config = new ExtractedConfig();\n const ignorePatterns = [];\n\n // Merge elements.\n for (const index of indices) {\n const element = instance[index];\n\n // Adopt the parser which was found at first.\n if (!config.parser && element.parser) {\n if (element.parser.error) {\n throw element.parser.error;\n }\n config.parser = element.parser;\n }\n\n // Adopt the processor which was found at first.\n if (!config.processor && element.processor) {\n config.processor = element.processor;\n }\n\n // Adopt the noInlineConfig which was found at first.\n if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) {\n config.noInlineConfig = element.noInlineConfig;\n config.configNameOfNoInlineConfig = element.name;\n }\n\n // Adopt the reportUnusedDisableDirectives which was found at first.\n if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) {\n config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives;\n }\n\n // Collect ignorePatterns\n if (element.ignorePattern) {\n ignorePatterns.push(element.ignorePattern);\n }\n\n // Merge others.\n mergeWithoutOverwrite(config.env, element.env);\n mergeWithoutOverwrite(config.globals, element.globals);\n mergeWithoutOverwrite(config.parserOptions, element.parserOptions);\n mergeWithoutOverwrite(config.settings, element.settings);\n mergePlugins(config.plugins, element.plugins);\n mergeRuleConfigs(config.rules, element.rules);\n }\n\n // Create the predicate function for ignore patterns.\n if (ignorePatterns.length > 0) {\n config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse());\n }\n\n return config;\n}\n\n/**\n * Collect definitions.\n * @template T, U\n * @param {string} pluginId The plugin ID for prefix.\n * @param {Record} defs The definitions to collect.\n * @param {Map} map The map to output.\n * @param {function(T): U} [normalize] The normalize function for each value.\n * @returns {void}\n */\nfunction collect(pluginId, defs, map, normalize) {\n if (defs) {\n const prefix = pluginId && `${pluginId}/`;\n\n for (const [key, value] of Object.entries(defs)) {\n map.set(\n `${prefix}${key}`,\n normalize ? normalize(value) : value\n );\n }\n }\n}\n\n/**\n * Normalize a rule definition.\n * @param {Function|Rule} rule The rule definition to normalize.\n * @returns {Rule} The normalized rule definition.\n */\nfunction normalizePluginRule(rule) {\n return typeof rule === \"function\" ? { create: rule } : rule;\n}\n\n/**\n * Delete the mutation methods from a given map.\n * @param {Map} map The map object to delete.\n * @returns {void}\n */\nfunction deleteMutationMethods(map) {\n Object.defineProperties(map, {\n clear: { configurable: true, value: void 0 },\n delete: { configurable: true, value: void 0 },\n set: { configurable: true, value: void 0 }\n });\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArrayElement[]} elements The config elements.\n * @param {ConfigArrayInternalSlots} slots The internal slots.\n * @returns {void}\n */\nfunction initPluginMemberMaps(elements, slots) {\n const processed = new Set();\n\n slots.envMap = new Map();\n slots.processorMap = new Map();\n slots.ruleMap = new Map();\n\n for (const element of elements) {\n if (!element.plugins) {\n continue;\n }\n\n for (const [pluginId, value] of Object.entries(element.plugins)) {\n const plugin = value.definition;\n\n if (!plugin || processed.has(pluginId)) {\n continue;\n }\n processed.add(pluginId);\n\n collect(pluginId, plugin.environments, slots.envMap);\n collect(pluginId, plugin.processors, slots.processorMap);\n collect(pluginId, plugin.rules, slots.ruleMap, normalizePluginRule);\n }\n }\n\n deleteMutationMethods(slots.envMap);\n deleteMutationMethods(slots.processorMap);\n deleteMutationMethods(slots.ruleMap);\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArray} instance The config elements.\n * @returns {ConfigArrayInternalSlots} The extracted config.\n */\nfunction ensurePluginMemberMaps(instance) {\n const slots = internalSlotsMap.get(instance);\n\n if (!slots.ruleMap) {\n initPluginMemberMaps(instance, slots);\n }\n\n return slots;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The Config Array.\n *\n * `ConfigArray` instance contains all settings, parsers, and plugins.\n * You need to call `ConfigArray#extractConfig(filePath)` method in order to\n * extract, merge and get only the config data which is related to an arbitrary\n * file.\n * @extends {Array}\n */\nclass ConfigArray extends Array {\n\n /**\n * Get the plugin environments.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin environments.\n */\n get pluginEnvironments() {\n return ensurePluginMemberMaps(this).envMap;\n }\n\n /**\n * Get the plugin processors.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin processors.\n */\n get pluginProcessors() {\n return ensurePluginMemberMaps(this).processorMap;\n }\n\n /**\n * Get the plugin rules.\n * The returned map cannot be mutated.\n * @returns {ReadonlyMap} The plugin rules.\n */\n get pluginRules() {\n return ensurePluginMemberMaps(this).ruleMap;\n }\n\n /**\n * Check if this config has `root` flag.\n * @returns {boolean} `true` if this config array is root.\n */\n isRoot() {\n for (let i = this.length - 1; i >= 0; --i) {\n const root = this[i].root;\n\n if (typeof root === \"boolean\") {\n return root;\n }\n }\n return false;\n }\n\n /**\n * Extract the config data which is related to a given file.\n * @param {string} filePath The absolute path to the target file.\n * @returns {ExtractedConfig} The extracted config data.\n */\n extractConfig(filePath) {\n const { cache } = internalSlotsMap.get(this);\n const indices = getMatchedIndices(this, filePath);\n const cacheKey = indices.join(\",\");\n\n if (!cache.has(cacheKey)) {\n cache.set(cacheKey, createConfig(this, indices));\n }\n\n return cache.get(cacheKey);\n }\n\n /**\n * Check if a given path is an additional lint target.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the file is an additional lint target.\n */\n isAdditionalTargetPath(filePath) {\n for (const { criteria, type } of this) {\n if (\n type === \"config\" &&\n criteria &&\n !criteria.endsWithWildcard &&\n criteria.test(filePath)\n ) {\n return true;\n }\n }\n return false;\n }\n}\n\n/**\n * Get the used extracted configs.\n * CLIEngine will use this method to collect used deprecated rules.\n * @param {ConfigArray} instance The config array object to get.\n * @returns {ExtractedConfig[]} The used extracted configs.\n * @private\n */\nfunction getUsedExtractedConfigs(instance) {\n const { cache } = internalSlotsMap.get(instance);\n\n return Array.from(cache.values());\n}\n\n\nexport {\n ConfigArray,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview `ConfigDependency` class.\n *\n * `ConfigDependency` class expresses a loaded parser or plugin.\n *\n * If the parser or plugin was loaded successfully, it has `definition` property\n * and `filePath` property. Otherwise, it has `error` property.\n *\n * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it\n * omits `definition` property.\n *\n * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers\n * or plugins.\n *\n * @author Toru Nagashima \n */\n\nimport util from \"util\";\n\n/**\n * The class is to store parsers or plugins.\n * This class hides the loaded object from `JSON.stringify()` and `console.log`.\n * @template T\n */\nclass ConfigDependency {\n\n /**\n * Initialize this instance.\n * @param {Object} data The dependency data.\n * @param {T} [data.definition] The dependency if the loading succeeded.\n * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded.\n * @param {Error} [data.error] The error object if the loading failed.\n * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded.\n * @param {string} data.id The ID of this dependency.\n * @param {string} data.importerName The name of the config file which loads this dependency.\n * @param {string} data.importerPath The path to the config file which loads this dependency.\n */\n constructor({\n definition = null,\n original = null,\n error = null,\n filePath = null,\n id,\n importerName,\n importerPath\n }) {\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {T|null}\n */\n this.definition = definition;\n\n /**\n * The original dependency as loaded directly from disk if the loading succeeded.\n * @type {T|null}\n */\n this.original = original;\n\n /**\n * The error object if the loading failed.\n * @type {Error|null}\n */\n this.error = error;\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {string|null}\n */\n this.filePath = filePath;\n\n /**\n * The ID of this dependency.\n * @type {string}\n */\n this.id = id;\n\n /**\n * The name of the config file which loads this dependency.\n * @type {string}\n */\n this.importerName = importerName;\n\n /**\n * The path to the config file which loads this dependency.\n * @type {string}\n */\n this.importerPath = importerPath;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n const obj = this[util.inspect.custom]();\n\n // Display `error.message` (`Error#message` is unenumerable).\n if (obj.error instanceof Error) {\n obj.error = { ...obj.error, message: obj.error.message };\n }\n\n return obj;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n const {\n definition: _ignore1, // eslint-disable-line no-unused-vars\n original: _ignore2, // eslint-disable-line no-unused-vars\n ...obj\n } = this;\n\n return obj;\n }\n}\n\n/** @typedef {ConfigDependency} DependentParser */\n/** @typedef {ConfigDependency} DependentPlugin */\n\nexport { ConfigDependency };\n","/**\n * @fileoverview `OverrideTester` class.\n *\n * `OverrideTester` class handles `files` property and `excludedFiles` property\n * of `overrides` config.\n *\n * It provides one method.\n *\n * - `test(filePath)`\n * Test if a file path matches the pair of `files` property and\n * `excludedFiles` property. The `filePath` argument must be an absolute\n * path.\n *\n * `ConfigArrayFactory` creates `OverrideTester` objects when it processes\n * `overrides` properties.\n *\n * @author Toru Nagashima \n */\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport util from \"util\";\nimport minimatch from \"minimatch\";\n\nconst { Minimatch } = minimatch;\n\nconst minimatchOpts = { dot: true, matchBase: true };\n\n/**\n * @typedef {Object} Pattern\n * @property {InstanceType[] | null} includes The positive matchers.\n * @property {InstanceType[] | null} excludes The negative matchers.\n */\n\n/**\n * Normalize a given pattern to an array.\n * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns.\n * @returns {string[]|null} Normalized patterns.\n * @private\n */\nfunction normalizePatterns(patterns) {\n if (Array.isArray(patterns)) {\n return patterns.filter(Boolean);\n }\n if (typeof patterns === \"string\" && patterns) {\n return [patterns];\n }\n return [];\n}\n\n/**\n * Create the matchers of given patterns.\n * @param {string[]} patterns The patterns.\n * @returns {InstanceType[] | null} The matchers.\n */\nfunction toMatcher(patterns) {\n if (patterns.length === 0) {\n return null;\n }\n return patterns.map(pattern => {\n if (/^\\.[/\\\\]/u.test(pattern)) {\n return new Minimatch(\n pattern.slice(2),\n\n // `./*.js` should not match with `subdir/foo.js`\n { ...minimatchOpts, matchBase: false }\n );\n }\n return new Minimatch(pattern, minimatchOpts);\n });\n}\n\n/**\n * Convert a given matcher to string.\n * @param {Pattern} matchers The matchers.\n * @returns {string} The string expression of the matcher.\n */\nfunction patternToJson({ includes, excludes }) {\n return {\n includes: includes && includes.map(m => m.pattern),\n excludes: excludes && excludes.map(m => m.pattern)\n };\n}\n\n/**\n * The class to test given paths are matched by the patterns.\n */\nclass OverrideTester {\n\n /**\n * Create a tester with given criteria.\n * If there are no criteria, returns `null`.\n * @param {string|string[]} files The glob patterns for included files.\n * @param {string|string[]} excludedFiles The glob patterns for excluded files.\n * @param {string} basePath The path to the base directory to test paths.\n * @returns {OverrideTester|null} The created instance or `null`.\n */\n static create(files, excludedFiles, basePath) {\n const includePatterns = normalizePatterns(files);\n const excludePatterns = normalizePatterns(excludedFiles);\n let endsWithWildcard = false;\n\n if (includePatterns.length === 0) {\n return null;\n }\n\n // Rejects absolute paths or relative paths to parents.\n for (const pattern of includePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n if (pattern.endsWith(\"*\")) {\n endsWithWildcard = true;\n }\n }\n for (const pattern of excludePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n }\n\n const includes = toMatcher(includePatterns);\n const excludes = toMatcher(excludePatterns);\n\n return new OverrideTester(\n [{ includes, excludes }],\n basePath,\n endsWithWildcard\n );\n }\n\n /**\n * Combine two testers by logical and.\n * If either of the testers was `null`, returns the other tester.\n * The `basePath` property of the two must be the same value.\n * @param {OverrideTester|null} a A tester.\n * @param {OverrideTester|null} b Another tester.\n * @returns {OverrideTester|null} Combined tester.\n */\n static and(a, b) {\n if (!b) {\n return a && new OverrideTester(\n a.patterns,\n a.basePath,\n a.endsWithWildcard\n );\n }\n if (!a) {\n return new OverrideTester(\n b.patterns,\n b.basePath,\n b.endsWithWildcard\n );\n }\n\n assert.strictEqual(a.basePath, b.basePath);\n return new OverrideTester(\n a.patterns.concat(b.patterns),\n a.basePath,\n a.endsWithWildcard || b.endsWithWildcard\n );\n }\n\n /**\n * Initialize this instance.\n * @param {Pattern[]} patterns The matchers.\n * @param {string} basePath The base path.\n * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`.\n */\n constructor(patterns, basePath, endsWithWildcard = false) {\n\n /** @type {Pattern[]} */\n this.patterns = patterns;\n\n /** @type {string} */\n this.basePath = basePath;\n\n /** @type {boolean} */\n this.endsWithWildcard = endsWithWildcard;\n }\n\n /**\n * Test if a given path is matched or not.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the path was matched.\n */\n test(filePath) {\n if (typeof filePath !== \"string\" || !path.isAbsolute(filePath)) {\n throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`);\n }\n const relativePath = path.relative(this.basePath, filePath);\n\n return this.patterns.every(({ includes, excludes }) => (\n (!includes || includes.some(m => m.match(relativePath))) &&\n (!excludes || !excludes.some(m => m.match(relativePath)))\n ));\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n if (this.patterns.length === 1) {\n return {\n ...patternToJson(this.patterns[0]),\n basePath: this.basePath\n };\n }\n return {\n AND: this.patterns.map(patternToJson),\n basePath: this.basePath\n };\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n return this.toJSON();\n }\n}\n\nexport { OverrideTester };\n","/**\n * @fileoverview `ConfigArray` class.\n * @author Toru Nagashima \n */\n\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array.js\";\nimport { ConfigDependency } from \"./config-dependency.js\";\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\nimport { OverrideTester } from \"./override-tester.js\";\n\nexport {\n ConfigArray,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object\n * @returns {Object} JSON Schema for the rule's options.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n const schema = rule.schema || rule.meta && rule.meta.schema;\n\n // Given a tuple of schemas, insert warning level at the beginning\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n return {\n type: \"array\",\n minItems: 0,\n maxItems: 0\n };\n\n }\n\n // Given a full schema, leave it alone\n return schema || null;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n const enhancedMessage = `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n throw new Error(`${source}:\\n\\t${enhancedMessage}`);\n } else {\n throw new Error(enhancedMessage);\n }\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * Utility for resolving a module relative to another module\n * @author Teddy Katz\n */\n\nimport Module from \"module\";\n\n/*\n * `Module.createRequire` is added in v12.2.0. It supports URL as well.\n * We only support the case where the argument is a filepath, not a URL.\n */\nconst createRequire = Module.createRequire;\n\n/**\n * Resolves a Node module relative to another module\n * @param {string} moduleName The name of a Node module, or a path to a Node module.\n * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be\n * a file rather than a directory, but the file need not actually exist.\n * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`\n */\nfunction resolve(moduleName, relativeToPath) {\n try {\n return createRequire(relativeToPath).resolve(moduleName);\n } catch (error) {\n\n // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future.\n if (\n typeof error === \"object\" &&\n error !== null &&\n error.code === \"MODULE_NOT_FOUND\" &&\n !error.requireStack &&\n error.message.includes(moduleName)\n ) {\n error.message += `\\nRequire stack:\\n- ${relativeToPath}`;\n }\n throw error;\n }\n}\n\nexport {\n resolve\n};\n","/**\n * @fileoverview The factory of `ConfigArray` objects.\n *\n * This class provides methods to create `ConfigArray` instance.\n *\n * - `create(configData, options)`\n * Create a `ConfigArray` instance from a config data. This is to handle CLI\n * options except `--config`.\n * - `loadFile(filePath, options)`\n * Create a `ConfigArray` instance from a config file. This is to handle\n * `--config` option. If the file was not found, throws the following error:\n * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error.\n * - If the filename was `package.json`, an IO error or an\n * `ESLINT_CONFIG_FIELD_NOT_FOUND` error.\n * - Otherwise, an IO error such as `ENOENT`.\n * - `loadInDirectory(directoryPath, options)`\n * Create a `ConfigArray` instance from a config file which is on a given\n * directory. This tries to load `.eslintrc.*` or `package.json`. If not\n * found, returns an empty `ConfigArray`.\n * - `loadESLintIgnore(filePath)`\n * Create a `ConfigArray` instance from a config file that is `.eslintignore`\n * format. This is to handle `--ignore-path` option.\n * - `loadDefaultESLintIgnore()`\n * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in\n * the current working directory.\n *\n * `ConfigArrayFactory` class has the responsibility that loads configuration\n * files, including loading `extends`, `parser`, and `plugins`. The created\n * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`.\n *\n * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class\n * handles cascading and hierarchy.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport fs from \"fs\";\nimport importFresh from \"import-fresh\";\nimport { createRequire } from \"module\";\nimport path from \"path\";\nimport stripComments from \"strip-json-comments\";\n\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern,\n OverrideTester\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\n\nconst require = createRequire(import.meta.url);\n\nconst debug = debugOrig(\"eslintrc:config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\nconst configFilenames = [\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\",\n \"package.json\"\n];\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").OverrideConfigData} OverrideConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {import(\"./config-array/config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-array/config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {ConfigArray[0]} ConfigArrayElement */\n\n/**\n * @typedef {Object} ConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {string} [cwd] The path to the current working directory.\n * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryInternalSlots\n * @property {Map} additionalPluginPool The map for additional plugins.\n * @property {string} cwd The path to the current working directory.\n * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {string} pluginBasePath The base path to resolve plugins.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/** @type {WeakMap} */\nconst normalizedPlugins = new WeakMap();\n\n/**\n * Check if a given string is a file path.\n * @param {string} nameOrPath A module name or file path.\n * @returns {boolean} `true` if the `nameOrPath` is a file path.\n */\nfunction isFilePath(nameOrPath) {\n return (\n /^\\.{1,2}[/\\\\]/u.test(nameOrPath) ||\n path.isAbsolute(nameOrPath)\n );\n}\n\n/**\n * Convenience wrapper for synchronously reading file contents.\n * @param {string} filePath The filename to read.\n * @returns {string} The file contents, with the BOM removed.\n * @private\n */\nfunction readFile(filePath) {\n return fs.readFileSync(filePath, \"utf8\").replace(/^\\ufeff/u, \"\");\n}\n\n/**\n * Loads a YAML configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadYAMLConfigFile(filePath) {\n debug(`Loading YAML config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n\n // empty YAML file can be null, so always use\n return yaml.load(readFile(filePath)) || {};\n } catch (e) {\n debug(`Error reading YAML file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JSON configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSONConfigFile(filePath) {\n debug(`Loading JSON config file: ${filePath}`);\n\n try {\n return JSON.parse(stripComments(readFile(filePath)));\n } catch (e) {\n debug(`Error reading JSON file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n e.messageTemplate = \"failed-to-read-json\";\n e.messageData = {\n path: filePath,\n message: e.message\n };\n throw e;\n }\n}\n\n/**\n * Loads a legacy (.eslintrc) configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadLegacyConfigFile(filePath) {\n debug(`Loading legacy config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};\n } catch (e) {\n debug(\"Error reading YAML file: %s\\n%o\", filePath, e);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JavaScript configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSConfigFile(filePath) {\n debug(`Loading JS config file: ${filePath}`);\n try {\n return importFresh(filePath);\n } catch (e) {\n debug(`Error reading JavaScript file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a configuration from a package.json file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadPackageJSONConfigFile(filePath) {\n debug(`Loading package.json config file: ${filePath}`);\n try {\n const packageData = loadJSONConfigFile(filePath);\n\n if (!Object.hasOwnProperty.call(packageData, \"eslintConfig\")) {\n throw Object.assign(\n new Error(\"package.json file doesn't have 'eslintConfig' field.\"),\n { code: \"ESLINT_CONFIG_FIELD_NOT_FOUND\" }\n );\n }\n\n return packageData.eslintConfig;\n } catch (e) {\n debug(`Error reading package.json file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a `.eslintignore` from a file.\n * @param {string} filePath The filename to load.\n * @returns {string[]} The ignore patterns from the file.\n * @private\n */\nfunction loadESLintIgnoreFile(filePath) {\n debug(`Loading .eslintignore file: ${filePath}`);\n\n try {\n return readFile(filePath)\n .split(/\\r?\\n/gu)\n .filter(line => line.trim() !== \"\" && !line.startsWith(\"#\"));\n } catch (e) {\n debug(`Error reading .eslintignore file: ${filePath}`);\n e.message = `Cannot read .eslintignore file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Creates an error to notify about a missing config to extend from.\n * @param {string} configName The name of the missing config.\n * @param {string} importerName The name of the config that imported the missing config\n * @param {string} messageTemplate The text template to source error strings from.\n * @returns {Error} The error object to throw\n * @private\n */\nfunction configInvalidError(configName, importerName, messageTemplate) {\n return Object.assign(\n new Error(`Failed to load config \"${configName}\" to extend from.`),\n {\n messageTemplate,\n messageData: { configName, importerName }\n }\n );\n}\n\n/**\n * Loads a configuration file regardless of the source. Inspects the file path\n * to determine the correctly way to load the config file.\n * @param {string} filePath The path to the configuration.\n * @returns {ConfigData|null} The configuration information.\n * @private\n */\nfunction loadConfigFile(filePath) {\n switch (path.extname(filePath)) {\n case \".js\":\n case \".cjs\":\n return loadJSConfigFile(filePath);\n\n case \".json\":\n if (path.basename(filePath) === \"package.json\") {\n return loadPackageJSONConfigFile(filePath);\n }\n return loadJSONConfigFile(filePath);\n\n case \".yaml\":\n case \".yml\":\n return loadYAMLConfigFile(filePath);\n\n default:\n return loadLegacyConfigFile(filePath);\n }\n}\n\n/**\n * Write debug log.\n * @param {string} request The requested module name.\n * @param {string} relativeTo The file path to resolve the request relative to.\n * @param {string} filePath The resolved file path.\n * @returns {void}\n */\nfunction writeDebugLogForLoading(request, relativeTo, filePath) {\n /* istanbul ignore next */\n if (debug.enabled) {\n let nameAndVersion = null;\n\n try {\n const packageJsonPath = ModuleResolver.resolve(\n `${request}/package.json`,\n relativeTo\n );\n const { version = \"unknown\" } = require(packageJsonPath);\n\n nameAndVersion = `${request}@${version}`;\n } catch (error) {\n debug(\"package.json was not found:\", error.message);\n nameAndVersion = request;\n }\n\n debug(\"Loaded: %s (%s)\", nameAndVersion, filePath);\n }\n}\n\n/**\n * Create a new context with default values.\n * @param {ConfigArrayFactoryInternalSlots} slots The internal slots.\n * @param {\"config\" | \"ignore\" | \"implicit-processor\" | undefined} providedType The type of the current configuration. Default is `\"config\"`.\n * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`.\n * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string.\n * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`.\n * @returns {ConfigArrayFactoryLoadingContext} The created context.\n */\nfunction createContext(\n { cwd, resolvePluginsRelativeTo },\n providedType,\n providedName,\n providedFilePath,\n providedMatchBasePath\n) {\n const filePath = providedFilePath\n ? path.resolve(cwd, providedFilePath)\n : \"\";\n const matchBasePath =\n (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const name =\n providedName ||\n (filePath && path.relative(cwd, filePath)) ||\n \"\";\n const pluginBasePath =\n resolvePluginsRelativeTo ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const type = providedType || \"config\";\n\n return { filePath, matchBasePath, name, pluginBasePath, type };\n}\n\n/**\n * Normalize a given plugin.\n * - Ensure the object to have four properties: configs, environments, processors, and rules.\n * - Ensure the object to not have other properties.\n * @param {Plugin} plugin The plugin to normalize.\n * @returns {Plugin} The normalized plugin.\n */\nfunction normalizePlugin(plugin) {\n\n // first check the cache\n let normalizedPlugin = normalizedPlugins.get(plugin);\n\n if (normalizedPlugin) {\n return normalizedPlugin;\n }\n\n normalizedPlugin = {\n configs: plugin.configs || {},\n environments: plugin.environments || {},\n processors: plugin.processors || {},\n rules: plugin.rules || {}\n };\n\n // save the reference for later\n normalizedPlugins.set(plugin, normalizedPlugin);\n\n return normalizedPlugin;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The factory of `ConfigArray` objects.\n */\nclass ConfigArrayFactory {\n\n /**\n * Initialize this instance.\n * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins.\n */\n constructor({\n additionalPluginPool = new Map(),\n cwd = process.cwd(),\n resolvePluginsRelativeTo,\n builtInRules,\n resolver = ModuleResolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = {}) {\n internalSlotsMap.set(this, {\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo:\n resolvePluginsRelativeTo &&\n path.resolve(cwd, resolvePluginsRelativeTo),\n builtInRules,\n resolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n });\n }\n\n /**\n * Create `ConfigArray` instance from a config data.\n * @param {ConfigData|null} configData The config data to create.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.filePath] The path to this config data.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n create(configData, { basePath, filePath, name } = {}) {\n if (!configData) {\n return new ConfigArray();\n }\n\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n const elements = this._normalizeConfigData(configData, ctx);\n\n return new ConfigArray(...elements);\n }\n\n /**\n * Load a config file.\n * @param {string} filePath The path to a config file.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n loadFile(filePath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n\n return new ConfigArray(...this._loadConfigData(ctx));\n }\n\n /**\n * Load the config file on a given directory if exists.\n * @param {string} directoryPath The path to a directory.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadInDirectory(directoryPath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n\n for (const filename of configFilenames) {\n const ctx = createContext(\n slots,\n \"config\",\n name,\n path.join(directoryPath, filename),\n basePath\n );\n\n if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) {\n let configData;\n\n try {\n configData = loadConfigFile(ctx.filePath);\n } catch (error) {\n if (!error || error.code !== \"ESLINT_CONFIG_FIELD_NOT_FOUND\") {\n throw error;\n }\n }\n\n if (configData) {\n debug(`Config file found: ${ctx.filePath}`);\n return new ConfigArray(\n ...this._normalizeConfigData(configData, ctx)\n );\n }\n }\n }\n\n debug(`Config file not found on ${directoryPath}`);\n return new ConfigArray();\n }\n\n /**\n * Check if a config file on a given directory exists or not.\n * @param {string} directoryPath The path to a directory.\n * @returns {string | null} The path to the found config file. If not found then null.\n */\n static getPathToConfigFileInDirectory(directoryPath) {\n for (const filename of configFilenames) {\n const filePath = path.join(directoryPath, filename);\n\n if (fs.existsSync(filePath)) {\n if (filename === \"package.json\") {\n try {\n loadPackageJSONConfigFile(filePath);\n return filePath;\n } catch { /* ignore */ }\n } else {\n return filePath;\n }\n }\n }\n return null;\n }\n\n /**\n * Load `.eslintignore` file.\n * @param {string} filePath The path to a `.eslintignore` file to load.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadESLintIgnore(filePath) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(\n slots,\n \"ignore\",\n void 0,\n filePath,\n slots.cwd\n );\n const ignorePatterns = loadESLintIgnoreFile(ctx.filePath);\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(ignorePatterns, ctx)\n );\n }\n\n /**\n * Load `.eslintignore` file in the current working directory.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadDefaultESLintIgnore() {\n const slots = internalSlotsMap.get(this);\n const eslintIgnorePath = path.resolve(slots.cwd, \".eslintignore\");\n const packageJsonPath = path.resolve(slots.cwd, \"package.json\");\n\n if (fs.existsSync(eslintIgnorePath)) {\n return this.loadESLintIgnore(eslintIgnorePath);\n }\n if (fs.existsSync(packageJsonPath)) {\n const data = loadJSONConfigFile(packageJsonPath);\n\n if (Object.hasOwnProperty.call(data, \"eslintIgnore\")) {\n if (!Array.isArray(data.eslintIgnore)) {\n throw new Error(\"Package.json eslintIgnore property requires an array of paths\");\n }\n const ctx = createContext(\n slots,\n \"ignore\",\n \"eslintIgnore in package.json\",\n packageJsonPath,\n slots.cwd\n );\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx)\n );\n }\n }\n\n return new ConfigArray();\n }\n\n /**\n * Load a given config file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} Loaded config.\n * @private\n */\n _loadConfigData(ctx) {\n return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx);\n }\n\n /**\n * Normalize a given `.eslintignore` data to config array elements.\n * @param {string[]} ignorePatterns The patterns to ignore files.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeESLintIgnoreData(ignorePatterns, ctx) {\n const elements = this._normalizeObjectConfigData(\n { ignorePatterns },\n ctx\n );\n\n // Set `ignorePattern.loose` flag for backward compatibility.\n for (const element of elements) {\n if (element.ignorePattern) {\n element.ignorePattern.loose = true;\n }\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _normalizeConfigData(configData, ctx) {\n const validator = new ConfigValidator();\n\n validator.validateConfigSchema(configData, ctx.name || ctx.filePath);\n return this._normalizeObjectConfigData(configData, ctx);\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData|OverrideConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigData(configData, ctx) {\n const { files, excludedFiles, ...configBody } = configData;\n const criteria = OverrideTester.create(\n files,\n excludedFiles,\n ctx.matchBasePath\n );\n const elements = this._normalizeObjectConfigDataBody(configBody, ctx);\n\n // Apply the criteria to every element.\n for (const element of elements) {\n\n /*\n * Merge the criteria.\n * This is for the `overrides` entries that came from the\n * configurations of `overrides[].extends`.\n */\n element.criteria = OverrideTester.and(criteria, element.criteria);\n\n /*\n * Remove `root` property to ignore `root` settings which came from\n * `extends` in `overrides`.\n */\n if (element.criteria) {\n element.root = void 0;\n }\n\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigDataBody(\n {\n env,\n extends: extend,\n globals,\n ignorePatterns,\n noInlineConfig,\n parser: parserName,\n parserOptions,\n plugins: pluginList,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings,\n overrides: overrideList = []\n },\n ctx\n ) {\n const extendList = Array.isArray(extend) ? extend : [extend];\n const ignorePattern = ignorePatterns && new IgnorePattern(\n Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns],\n ctx.matchBasePath\n );\n\n // Flatten `extends`.\n for (const extendName of extendList.filter(Boolean)) {\n yield* this._loadExtends(extendName, ctx);\n }\n\n // Load parser & plugins.\n const parser = parserName && this._loadParser(parserName, ctx);\n const plugins = pluginList && this._loadPlugins(pluginList, ctx);\n\n // Yield pseudo config data for file extension processors.\n if (plugins) {\n yield* this._takeFileExtensionProcessors(plugins, ctx);\n }\n\n // Yield the config data except `extends` and `overrides`.\n yield {\n\n // Debug information.\n type: ctx.type,\n name: ctx.name,\n filePath: ctx.filePath,\n\n // Config data.\n criteria: null,\n env,\n globals,\n ignorePattern,\n noInlineConfig,\n parser,\n parserOptions,\n plugins,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings\n };\n\n // Flatten `overries`.\n for (let i = 0; i < overrideList.length; ++i) {\n yield* this._normalizeObjectConfigData(\n overrideList[i],\n { ...ctx, name: `${ctx.name}#overrides[${i}]` }\n );\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtends(extendName, ctx) {\n debug(\"Loading {extends:%j} relative to %s\", extendName, ctx.filePath);\n try {\n if (extendName.startsWith(\"eslint:\")) {\n return this._loadExtendedBuiltInConfig(extendName, ctx);\n }\n if (extendName.startsWith(\"plugin:\")) {\n return this._loadExtendedPluginConfig(extendName, ctx);\n }\n return this._loadExtendedShareableConfig(extendName, ctx);\n } catch (error) {\n error.message += `\\nReferenced from: ${ctx.filePath || ctx.name}`;\n throw error;\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedBuiltInConfig(extendName, ctx) {\n const {\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = internalSlotsMap.get(this);\n\n if (extendName === \"eslint:recommended\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintRecommendedConfig) {\n if (typeof getEslintRecommendedConfig !== \"function\") {\n throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);\n }\n return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintRecommendedPath\n });\n }\n if (extendName === \"eslint:all\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintAllConfig) {\n if (typeof getEslintAllConfig !== \"function\") {\n throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);\n }\n return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintAllPath\n });\n }\n\n throw configInvalidError(extendName, ctx.name, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedPluginConfig(extendName, ctx) {\n const slashIndex = extendName.lastIndexOf(\"/\");\n\n if (slashIndex === -1) {\n throw configInvalidError(extendName, ctx.filePath, \"plugin-invalid\");\n }\n\n const pluginName = extendName.slice(\"plugin:\".length, slashIndex);\n const configName = extendName.slice(slashIndex + 1);\n\n if (isFilePath(pluginName)) {\n throw new Error(\"'extends' cannot use a file path for plugins.\");\n }\n\n const plugin = this._loadPlugin(pluginName, ctx);\n const configData =\n plugin.definition &&\n plugin.definition.configs[configName];\n\n if (configData) {\n return this._normalizeConfigData(configData, {\n ...ctx,\n filePath: plugin.filePath || ctx.filePath,\n name: `${ctx.name} » plugin:${plugin.id}/${configName}`\n });\n }\n\n throw plugin.error || configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedShareableConfig(extendName, ctx) {\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n let request;\n\n if (isFilePath(extendName)) {\n request = extendName;\n } else if (extendName.startsWith(\".\")) {\n request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior.\n } else {\n request = naming.normalizePackageName(\n extendName,\n \"eslint-config\"\n );\n }\n\n let filePath;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (error) {\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n throw configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n throw error;\n }\n\n writeDebugLogForLoading(request, relativeTo, filePath);\n return this._loadConfigData({\n ...ctx,\n filePath,\n name: `${ctx.name} » ${request}`\n });\n }\n\n /**\n * Load given plugins.\n * @param {string[]} names The plugin names to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {Record} The loaded parser.\n * @private\n */\n _loadPlugins(names, ctx) {\n return names.reduce((map, name) => {\n if (isFilePath(name)) {\n throw new Error(\"Plugins array cannot includes file paths.\");\n }\n const plugin = this._loadPlugin(name, ctx);\n\n map[plugin.id] = plugin;\n\n return map;\n }, {});\n }\n\n /**\n * Load a given parser.\n * @param {string} nameOrPath The package name or the path to a parser file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentParser} The loaded parser.\n */\n _loadParser(nameOrPath, ctx) {\n debug(\"Loading parser %j from %s\", nameOrPath, ctx.filePath);\n\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n\n try {\n const filePath = resolver.resolve(nameOrPath, relativeTo);\n\n writeDebugLogForLoading(nameOrPath, relativeTo, filePath);\n\n return new ConfigDependency({\n definition: require(filePath),\n filePath,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (error) {\n\n // If the parser name is \"espree\", load the espree of ESLint.\n if (nameOrPath === \"espree\") {\n debug(\"Fallback espree.\");\n return new ConfigDependency({\n definition: require(\"espree\"),\n filePath: require.resolve(\"espree\"),\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n debug(\"Failed to load parser '%s' declared in '%s'.\", nameOrPath, ctx.name);\n error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`;\n\n return new ConfigDependency({\n error,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n }\n\n /**\n * Load a given plugin.\n * @param {string} name The plugin name to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentPlugin} The loaded plugin.\n * @private\n */\n _loadPlugin(name, ctx) {\n debug(\"Loading plugin %j from %s\", name, ctx.filePath);\n\n const { additionalPluginPool, resolver } = internalSlotsMap.get(this);\n const request = naming.normalizePackageName(name, \"eslint-plugin\");\n const id = naming.getShorthandName(request, \"eslint-plugin\");\n const relativeTo = path.join(ctx.pluginBasePath, \"__placeholder__.js\");\n\n if (name.match(/\\s+/u)) {\n const error = Object.assign(\n new Error(`Whitespace found in plugin name '${name}'`),\n {\n messageTemplate: \"whitespace-found\",\n messageData: { pluginName: request }\n }\n );\n\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n // Check for additional pool.\n const plugin =\n additionalPluginPool.get(request) ||\n additionalPluginPool.get(id);\n\n if (plugin) {\n return new ConfigDependency({\n definition: normalizePlugin(plugin),\n original: plugin,\n filePath: \"\", // It's unknown where the plugin came from.\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n let filePath;\n let error;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (resolveError) {\n error = resolveError;\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n error.messageTemplate = \"plugin-missing\";\n error.messageData = {\n pluginName: request,\n resolvePluginsRelativeTo: ctx.pluginBasePath,\n importerName: ctx.name\n };\n }\n }\n\n if (filePath) {\n try {\n writeDebugLogForLoading(request, relativeTo, filePath);\n\n const startTime = Date.now();\n const pluginDefinition = require(filePath);\n\n debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`);\n\n return new ConfigDependency({\n definition: normalizePlugin(pluginDefinition),\n original: pluginDefinition,\n filePath,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (loadError) {\n error = loadError;\n }\n }\n\n debug(\"Failed to load plugin '%s' declared in '%s'.\", name, ctx.name);\n error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`;\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n /**\n * Take file expression processors as config array elements.\n * @param {Record} plugins The plugin definitions.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The config array elements of file expression processors.\n * @private\n */\n *_takeFileExtensionProcessors(plugins, ctx) {\n for (const pluginId of Object.keys(plugins)) {\n const processors =\n plugins[pluginId] &&\n plugins[pluginId].definition &&\n plugins[pluginId].definition.processors;\n\n if (!processors) {\n continue;\n }\n\n for (const processorId of Object.keys(processors)) {\n if (processorId.startsWith(\".\")) {\n yield* this._normalizeObjectConfigData(\n {\n files: [`*${processorId}`],\n processor: `${pluginId}/${processorId}`\n },\n {\n ...ctx,\n type: \"implicit-processor\",\n name: `${ctx.name}#processors[\"${pluginId}/${processorId}\"]`\n }\n );\n }\n }\n }\n }\n}\n\nexport { ConfigArrayFactory, createContext };\n","/**\n * @fileoverview `CascadingConfigArrayFactory` class.\n *\n * `CascadingConfigArrayFactory` class has a responsibility:\n *\n * 1. Handles cascading of config files.\n *\n * It provides two methods:\n *\n * - `getConfigArrayForFile(filePath)`\n * Get the corresponded configuration of a given file. This method doesn't\n * throw even if the given file didn't exist.\n * - `clearCache()`\n * Clear the internal cache. You have to call this method when\n * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends\n * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport os from \"os\";\nimport path from \"path\";\n\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport { emitDeprecationWarning } from \"./shared/deprecation-warnings.js\";\n\nconst debug = debugOrig(\"eslintrc:cascading-config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {ReturnType} ConfigArray */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {ConfigData} [baseConfig] The config by `baseConfig` option.\n * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.\n * @property {string} [cwd] The base directory to start lookup.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]} [rulePaths] The value of `--rulesdir` option.\n * @property {string} [specificConfigPath] The value of `--config` option.\n * @property {boolean} [useEslintrc] if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryInternalSlots\n * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.\n * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.\n * @property {ConfigArray} cliConfigArray The config array of CLI options.\n * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.\n * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.\n * @property {Map} configCache The cache from directory paths to config arrays.\n * @property {string} cwd The base directory to start lookup.\n * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.\n * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.\n * @property {boolean} useEslintrc if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/**\n * Create the config array from `baseConfig` and `rulePaths`.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createBaseConfigArray({\n configArrayFactory,\n baseConfigData,\n rulePaths,\n cwd,\n loadRules\n}) {\n const baseConfigArray = configArrayFactory.create(\n baseConfigData,\n { name: \"BaseConfig\" }\n );\n\n /*\n * Create the config array element for the default ignore patterns.\n * This element has `ignorePattern` property that ignores the default\n * patterns in the current working directory.\n */\n baseConfigArray.unshift(configArrayFactory.create(\n { ignorePatterns: IgnorePattern.DefaultPatterns },\n { name: \"DefaultIgnorePattern\" }\n )[0]);\n\n /*\n * Load rules `--rulesdir` option as a pseudo plugin.\n * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate\n * the rule's options with only information in the config array.\n */\n if (rulePaths && rulePaths.length > 0) {\n baseConfigArray.push({\n type: \"config\",\n name: \"--rulesdir\",\n filePath: \"\",\n plugins: {\n \"\": new ConfigDependency({\n definition: {\n rules: rulePaths.reduce(\n (map, rulesPath) => Object.assign(\n map,\n loadRules(rulesPath, cwd)\n ),\n {}\n )\n },\n filePath: \"\",\n id: \"\",\n importerName: \"--rulesdir\",\n importerPath: \"\"\n })\n }\n });\n }\n\n return baseConfigArray;\n}\n\n/**\n * Create the config array from CLI options.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n}) {\n const cliConfigArray = configArrayFactory.create(\n cliConfigData,\n { name: \"CLIOptions\" }\n );\n\n cliConfigArray.unshift(\n ...(ignorePath\n ? configArrayFactory.loadESLintIgnore(ignorePath)\n : configArrayFactory.loadDefaultESLintIgnore())\n );\n\n if (specificConfigPath) {\n cliConfigArray.unshift(\n ...configArrayFactory.loadFile(\n specificConfigPath,\n { name: \"--config\", basePath: cwd }\n )\n );\n }\n\n return cliConfigArray;\n}\n\n/**\n * The error type when there are files matched by a glob, but all of them have been ignored.\n */\nclass ConfigurationNotFoundError extends Error {\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @param {string} directoryPath The directory path.\n */\n constructor(directoryPath) {\n super(`No ESLint configuration found in ${directoryPath}.`);\n this.messageTemplate = \"no-config-found\";\n this.messageData = { directoryPath };\n }\n}\n\n/**\n * This class provides the functionality that enumerates every file which is\n * matched by given glob patterns and that configuration.\n */\nclass CascadingConfigArrayFactory {\n\n /**\n * Initialize this enumerator.\n * @param {CascadingConfigArrayFactoryOptions} options The options.\n */\n constructor({\n additionalPluginPool = new Map(),\n baseConfig: baseConfigData = null,\n cliConfig: cliConfigData = null,\n cwd = process.cwd(),\n ignorePath,\n resolvePluginsRelativeTo,\n rulePaths = [],\n specificConfigPath = null,\n useEslintrc = true,\n builtInRules = new Map(),\n loadRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n } = {}) {\n const configArrayFactory = new ConfigArrayFactory({\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo,\n builtInRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n });\n\n internalSlotsMap.set(this, {\n baseConfigArray: createBaseConfigArray({\n baseConfigData,\n configArrayFactory,\n cwd,\n rulePaths,\n loadRules\n }),\n baseConfigData,\n cliConfigArray: createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n }),\n cliConfigData,\n configArrayFactory,\n configCache: new Map(),\n cwd,\n finalizeCache: new WeakMap(),\n ignorePath,\n rulePaths,\n specificConfigPath,\n useEslintrc,\n builtInRules,\n loadRules\n });\n }\n\n /**\n * The path to the current working directory.\n * This is used by tests.\n * @type {string}\n */\n get cwd() {\n const { cwd } = internalSlotsMap.get(this);\n\n return cwd;\n }\n\n /**\n * Get the config array of a given file.\n * If `filePath` was not given, it returns the config which contains only\n * `baseConfigData` and `cliConfigData`.\n * @param {string} [filePath] The file path to a file.\n * @param {Object} [options] The options.\n * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The config array of the file.\n */\n getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {\n const {\n baseConfigArray,\n cliConfigArray,\n cwd\n } = internalSlotsMap.get(this);\n\n if (!filePath) {\n return new ConfigArray(...baseConfigArray, ...cliConfigArray);\n }\n\n const directoryPath = path.dirname(path.resolve(cwd, filePath));\n\n debug(`Load config files for ${directoryPath}.`);\n\n return this._finalizeConfigArray(\n this._loadConfigInAncestors(directoryPath),\n directoryPath,\n ignoreNotFoundError\n );\n }\n\n /**\n * Set the config data to override all configs.\n * Require to call `clearCache()` method after this method is called.\n * @param {ConfigData} configData The config data to override all configs.\n * @returns {void}\n */\n setOverrideConfig(configData) {\n const slots = internalSlotsMap.get(this);\n\n slots.cliConfigData = configData;\n }\n\n /**\n * Clear config cache.\n * @returns {void}\n */\n clearCache() {\n const slots = internalSlotsMap.get(this);\n\n slots.baseConfigArray = createBaseConfigArray(slots);\n slots.cliConfigArray = createCLIConfigArray(slots);\n slots.configCache.clear();\n }\n\n /**\n * Load and normalize config files from the ancestor directories.\n * @param {string} directoryPath The path to a leaf directory.\n * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {\n const {\n baseConfigArray,\n configArrayFactory,\n configCache,\n cwd,\n useEslintrc\n } = internalSlotsMap.get(this);\n\n if (!useEslintrc) {\n return baseConfigArray;\n }\n\n let configArray = configCache.get(directoryPath);\n\n // Hit cache.\n if (configArray) {\n debug(`Cache hit: ${directoryPath}.`);\n return configArray;\n }\n debug(`No cache found: ${directoryPath}.`);\n\n const homePath = os.homedir();\n\n // Consider this is root.\n if (directoryPath === homePath && cwd !== homePath) {\n debug(\"Stop traversing because of considered root.\");\n if (configsExistInSubdirs) {\n const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);\n\n if (filePath) {\n emitDeprecationWarning(\n filePath,\n \"ESLINT_PERSONAL_CONFIG_SUPPRESS\"\n );\n }\n }\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n\n // Load the config on this directory.\n try {\n configArray = configArrayFactory.loadInDirectory(directoryPath);\n } catch (error) {\n /* istanbul ignore next */\n if (error.code === \"EACCES\") {\n debug(\"Stop traversing because of 'EACCES' error.\");\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n throw error;\n }\n\n if (configArray.length > 0 && configArray.isRoot()) {\n debug(\"Stop traversing because of 'root:true'.\");\n configArray.unshift(...baseConfigArray);\n return this._cacheConfig(directoryPath, configArray);\n }\n\n // Load from the ancestors and merge it.\n const parentPath = path.dirname(directoryPath);\n const parentConfigArray = parentPath && parentPath !== directoryPath\n ? this._loadConfigInAncestors(\n parentPath,\n configsExistInSubdirs || configArray.length > 0\n )\n : baseConfigArray;\n\n if (configArray.length > 0) {\n configArray.unshift(...parentConfigArray);\n } else {\n configArray = parentConfigArray;\n }\n\n // Cache and return.\n return this._cacheConfig(directoryPath, configArray);\n }\n\n /**\n * Freeze and cache a given config.\n * @param {string} directoryPath The path to a directory as a cache key.\n * @param {ConfigArray} configArray The config array as a cache value.\n * @returns {ConfigArray} The `configArray` (frozen).\n */\n _cacheConfig(directoryPath, configArray) {\n const { configCache } = internalSlotsMap.get(this);\n\n Object.freeze(configArray);\n configCache.set(directoryPath, configArray);\n\n return configArray;\n }\n\n /**\n * Finalize a given config array.\n * Concatenate `--config` and other CLI options.\n * @param {ConfigArray} configArray The parent config array.\n * @param {string} directoryPath The path to the leaf directory to find config files.\n * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {\n const {\n cliConfigArray,\n configArrayFactory,\n finalizeCache,\n useEslintrc,\n builtInRules\n } = internalSlotsMap.get(this);\n\n let finalConfigArray = finalizeCache.get(configArray);\n\n if (!finalConfigArray) {\n finalConfigArray = configArray;\n\n // Load the personal config if there are no regular config files.\n if (\n useEslintrc &&\n configArray.every(c => !c.filePath) &&\n cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.\n ) {\n const homePath = os.homedir();\n\n debug(\"Loading the config file of the home directory:\", homePath);\n\n const personalConfigArray = configArrayFactory.loadInDirectory(\n homePath,\n { name: \"PersonalConfig\" }\n );\n\n if (\n personalConfigArray.length > 0 &&\n !directoryPath.startsWith(homePath)\n ) {\n const lastElement =\n personalConfigArray[personalConfigArray.length - 1];\n\n emitDeprecationWarning(\n lastElement.filePath,\n \"ESLINT_PERSONAL_CONFIG_LOAD\"\n );\n }\n\n finalConfigArray = finalConfigArray.concat(personalConfigArray);\n }\n\n // Apply CLI options.\n if (cliConfigArray.length > 0) {\n finalConfigArray = finalConfigArray.concat(cliConfigArray);\n }\n\n // Validate rule settings and environments.\n const validator = new ConfigValidator({\n builtInRules\n });\n\n validator.validateConfigArray(finalConfigArray);\n\n // Cache it.\n Object.freeze(finalConfigArray);\n finalizeCache.set(configArray, finalConfigArray);\n\n debug(\n \"Configuration was determined: %o on %s\",\n finalConfigArray,\n directoryPath\n );\n }\n\n // At least one element (the default ignore patterns) exists.\n if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {\n throw new ConfigurationNotFoundError(directoryPath);\n }\n\n return finalConfigArray;\n }\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport { CascadingConfigArrayFactory };\n","/**\n * @fileoverview Compatibility class for flat config.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nimport createDebug from \"debug\";\nimport path from \"path\";\n\nimport environments from \"../conf/environments.js\";\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n\nconst debug = createDebug(\"eslintrc:flat-compat\");\nconst cafactory = Symbol(\"cafactory\");\n\n/**\n * Translates an ESLintRC-style config object into a flag-config-style config\n * object.\n * @param {Object} eslintrcConfig An ESLintRC-style config object.\n * @param {Object} options Options to help translate the config.\n * @param {string} options.resolveConfigRelativeTo To the directory to resolve\n * configs from.\n * @param {string} options.resolvePluginsRelativeTo The directory to resolve\n * plugins from.\n * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment\n * names to objects.\n * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor\n * names to objects.\n * @returns {Object} A flag-config-style config object.\n */\nfunction translateESLintRC(eslintrcConfig, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo,\n pluginEnvironments,\n pluginProcessors\n}) {\n\n const flatConfig = {};\n const configs = [];\n const languageOptions = {};\n const linterOptions = {};\n const keysToCopy = [\"settings\", \"rules\", \"processor\"];\n const languageOptionsKeysToCopy = [\"globals\", \"parser\", \"parserOptions\"];\n const linterOptionsKeysToCopy = [\"noInlineConfig\", \"reportUnusedDisableDirectives\"];\n\n // copy over simple translations\n for (const key of keysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig[key] = eslintrcConfig[key];\n }\n }\n\n // copy over languageOptions\n for (const key of languageOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n\n // create the languageOptions key in the flat config\n flatConfig.languageOptions = languageOptions;\n\n if (key === \"parser\") {\n debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`);\n\n if (eslintrcConfig[key].error) {\n throw eslintrcConfig[key].error;\n }\n\n languageOptions[key] = eslintrcConfig[key].definition;\n continue;\n }\n\n // clone any object values that are in the eslintrc config\n if (eslintrcConfig[key] && typeof eslintrcConfig[key] === \"object\") {\n languageOptions[key] = {\n ...eslintrcConfig[key]\n };\n } else {\n languageOptions[key] = eslintrcConfig[key];\n }\n }\n }\n\n // copy over linterOptions\n for (const key of linterOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig.linterOptions = linterOptions;\n linterOptions[key] = eslintrcConfig[key];\n }\n }\n\n // move ecmaVersion a level up\n if (languageOptions.parserOptions) {\n\n if (\"ecmaVersion\" in languageOptions.parserOptions) {\n languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion;\n delete languageOptions.parserOptions.ecmaVersion;\n }\n\n if (\"sourceType\" in languageOptions.parserOptions) {\n languageOptions.sourceType = languageOptions.parserOptions.sourceType;\n delete languageOptions.parserOptions.sourceType;\n }\n\n // check to see if we even need parserOptions anymore and remove it if not\n if (Object.keys(languageOptions.parserOptions).length === 0) {\n delete languageOptions.parserOptions;\n }\n }\n\n // overrides\n if (eslintrcConfig.criteria) {\n flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)];\n }\n\n // translate plugins\n if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === \"object\") {\n debug(`Translating plugins: ${eslintrcConfig.plugins}`);\n\n flatConfig.plugins = {};\n\n for (const pluginName of Object.keys(eslintrcConfig.plugins)) {\n\n debug(`Translating plugin: ${pluginName}`);\n debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`);\n\n const { original: plugin, error } = eslintrcConfig.plugins[pluginName];\n\n if (error) {\n throw error;\n }\n\n flatConfig.plugins[pluginName] = plugin;\n\n // create a config for any processors\n if (plugin.processors) {\n for (const processorName of Object.keys(plugin.processors)) {\n if (processorName.startsWith(\".\")) {\n debug(`Assigning processor: ${pluginName}/${processorName}`);\n\n configs.unshift({\n files: [`**/*${processorName}`],\n processor: pluginProcessors.get(`${pluginName}/${processorName}`)\n });\n }\n\n }\n }\n }\n }\n\n // translate env - must come after plugins\n if (eslintrcConfig.env && typeof eslintrcConfig.env === \"object\") {\n for (const envName of Object.keys(eslintrcConfig.env)) {\n\n // only add environments that are true\n if (eslintrcConfig.env[envName]) {\n debug(`Translating environment: ${envName}`);\n\n if (environments.has(envName)) {\n\n // built-in environments should be defined first\n configs.unshift(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...environments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n } else if (pluginEnvironments.has(envName)) {\n\n // if the environment comes from a plugin, it should come after the plugin config\n configs.push(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...pluginEnvironments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n }\n }\n }\n }\n\n // only add if there are actually keys in the config\n if (Object.keys(flatConfig).length > 0) {\n configs.push(flatConfig);\n }\n\n return configs;\n}\n\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * A compatibility class for working with configs.\n */\nclass FlatCompat {\n\n constructor({\n baseDirectory = process.cwd(),\n resolvePluginsRelativeTo = baseDirectory,\n recommendedConfig,\n allConfig\n } = {}) {\n this.baseDirectory = baseDirectory;\n this.resolvePluginsRelativeTo = resolvePluginsRelativeTo;\n this[cafactory] = new ConfigArrayFactory({\n cwd: baseDirectory,\n resolvePluginsRelativeTo,\n getEslintAllConfig: () => {\n\n if (!allConfig) {\n throw new TypeError(\"Missing parameter 'allConfig' in FlatCompat constructor.\");\n }\n\n return allConfig;\n },\n getEslintRecommendedConfig: () => {\n\n if (!recommendedConfig) {\n throw new TypeError(\"Missing parameter 'recommendedConfig' in FlatCompat constructor.\");\n }\n\n return recommendedConfig;\n }\n });\n }\n\n /**\n * Translates an ESLintRC-style config into a flag-config-style config.\n * @param {Object} eslintrcConfig The ESLintRC-style config object.\n * @returns {Object} A flag-config-style config object.\n */\n config(eslintrcConfig) {\n const eslintrcArray = this[cafactory].create(eslintrcConfig, {\n basePath: this.baseDirectory\n });\n\n const flatArray = [];\n let hasIgnorePatterns = false;\n\n eslintrcArray.forEach(configData => {\n if (configData.type === \"config\") {\n hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern;\n flatArray.push(...translateESLintRC(configData, {\n resolveConfigRelativeTo: path.join(this.baseDirectory, \"__placeholder.js\"),\n resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, \"__placeholder.js\"),\n pluginEnvironments: eslintrcArray.pluginEnvironments,\n pluginProcessors: eslintrcArray.pluginProcessors\n }));\n }\n });\n\n // combine ignorePatterns to emulate ESLintRC behavior better\n if (hasIgnorePatterns) {\n flatArray.unshift({\n ignores: [filePath => {\n\n // Compute the final config for this file.\n // This filters config array elements by `files`/`excludedFiles` then merges the elements.\n const finalConfig = eslintrcArray.extractConfig(filePath);\n\n // Test the `ignorePattern` properties of the final config.\n return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath);\n }]\n });\n }\n\n return flatArray;\n }\n\n /**\n * Translates the `env` section of an ESLintRC-style config.\n * @param {Object} envConfig The `env` section of an ESLintRC config.\n * @returns {Object[]} An array of flag-config objects representing the environments.\n */\n env(envConfig) {\n return this.config({\n env: envConfig\n });\n }\n\n /**\n * Translates the `extends` section of an ESLintRC-style config.\n * @param {...string} configsToExtend The names of the configs to load.\n * @returns {Object[]} An array of flag-config objects representing the config.\n */\n extends(...configsToExtend) {\n return this.config({\n extends: configsToExtend\n });\n }\n\n /**\n * Translates the `plugins` section of an ESLintRC-style config.\n * @param {...string} plugins The names of the plugins to load.\n * @returns {Object[]} An array of flag-config objects representing the plugins.\n */\n plugins(...plugins) {\n return this.config({\n plugins\n });\n }\n}\n\nexport { FlatCompat };\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport {\n ConfigArrayFactory,\n createContext as createConfigArrayFactoryContext\n} from \"./config-array-factory.js\";\n\nimport { CascadingConfigArrayFactory } from \"./cascading-config-array-factory.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array/index.js\";\nimport { ConfigDependency } from \"./config-array/config-dependency.js\";\nimport { ExtractedConfig } from \"./config-array/extracted-config.js\";\nimport { IgnorePattern } from \"./config-array/ignore-pattern.js\";\nimport { OverrideTester } from \"./config-array/override-tester.js\";\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport { FlatCompat } from \"./flat-compat.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n ConfigArray,\n createConfigArrayFactoryContext,\n CascadingConfigArrayFactory,\n ConfigArrayFactory,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs,\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n ModuleResolver,\n naming\n};\n\nexport {\n\n Legacy,\n\n FlatCompat\n\n};\n"],"names":["debug","debugOrig","path","ignore","assert","internalSlotsMap","util","minimatch","Ajv","globals","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal","Module","require","createRequire","fs","stripComments","importFresh","ModuleResolver.resolve","naming.normalizePackageName","naming.getShorthandName","os","createDebug","createConfigArray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IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC;AACxF,yBAAyB;AACzB,qBAAqB,CAAC;AACtB,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AC5nCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkBA;AACA,MAAMA,OAAK,GAAGC,6BAAS,CAAC,yCAAyC,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC;AAC/B,IAAI,kBAAkB;AACtB,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,GAAG;AACP,IAAI,SAAS;AACb,CAAC,EAAE;AACH,IAAI,MAAM,eAAe,GAAG,kBAAkB,CAAC,MAAM;AACrD,QAAQ,cAAc;AACtB,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE;AAC9B,KAAK,CAAC;AACN;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM;AACrD,QAAQ,EAAE,cAAc,EAAE,aAAa,CAAC,eAAe,EAAE;AACzD,QAAQ,EAAE,IAAI,EAAE,sBAAsB,EAAE;AACxC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA,I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AACA;AACA;AACA;AACA,IAAI,OAAO,CAAC,GAAG,OAAO,EAAE;AACxB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO;AACnB,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;AC3TA;AACA;AACA;AACA;AAsBA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,WAAW;AACf,qCAAIqB,aAA+B;AACnC,IAAI,2BAA2B;AAC/B,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,uBAAuB;AAC3B,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,MAAM;AACV;;;;;"} \ No newline at end of file +{"version":3,"file":"eslintrc.cjs","sources":["../lib/config-array/ignore-pattern.js","../lib/config-array/extracted-config.js","../lib/config-array/config-array.js","../lib/config-array/config-dependency.js","../lib/config-array/override-tester.js","../lib/config-array/index.js","../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../lib/shared/deep-merge-arrays.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/shared/relative-module-resolver.js","../lib/config-array-factory.js","../lib/cascading-config-array-factory.js","../lib/flat-compat.js","../lib/index.js"],"sourcesContent":["/**\n * @fileoverview `IgnorePattern` class.\n *\n * `IgnorePattern` class has the set of glob patterns and the base path.\n *\n * It provides two static methods.\n *\n * - `IgnorePattern.createDefaultIgnore(cwd)`\n * Create the default predicate function.\n * - `IgnorePattern.createIgnore(ignorePatterns)`\n * Create the predicate function from multiple `IgnorePattern` objects.\n *\n * It provides two properties and a method.\n *\n * - `patterns`\n * The glob patterns that ignore to lint.\n * - `basePath`\n * The base path of the glob patterns. If absolute paths existed in the\n * glob patterns, those are handled as relative paths to the base path.\n * - `getPatternsRelativeTo(basePath)`\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n *\n * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes\n * `ignorePatterns` properties.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport ignore from \"ignore\";\nimport debugOrig from \"debug\";\n\nconst debug = debugOrig(\"eslintrc:ignore-pattern\");\n\n/** @typedef {ReturnType} Ignore */\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the path to the common ancestor directory of given paths.\n * @param {string[]} sourcePaths The paths to calculate the common ancestor.\n * @returns {string} The path to the common ancestor directory.\n */\nfunction getCommonAncestorPath(sourcePaths) {\n let result = sourcePaths[0];\n\n for (let i = 1; i < sourcePaths.length; ++i) {\n const a = result;\n const b = sourcePaths[i];\n\n // Set the shorter one (it's the common ancestor if one includes the other).\n result = a.length < b.length ? a : b;\n\n // Set the common ancestor.\n for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) {\n if (a[j] !== b[j]) {\n result = a.slice(0, lastSepPos);\n break;\n }\n if (a[j] === path.sep) {\n lastSepPos = j;\n }\n }\n }\n\n let resolvedResult = result || path.sep;\n\n // if Windows common ancestor is root of drive must have trailing slash to be absolute.\n if (resolvedResult && resolvedResult.endsWith(\":\") && process.platform === \"win32\") {\n resolvedResult += path.sep;\n }\n return resolvedResult;\n}\n\n/**\n * Make relative path.\n * @param {string} from The source path to get relative path.\n * @param {string} to The destination path to get relative path.\n * @returns {string} The relative path.\n */\nfunction relative(from, to) {\n const relPath = path.relative(from, to);\n\n if (path.sep === \"/\") {\n return relPath;\n }\n return relPath.split(path.sep).join(\"/\");\n}\n\n/**\n * Get the trailing slash if existed.\n * @param {string} filePath The path to check.\n * @returns {string} The trailing slash if existed.\n */\nfunction dirSuffix(filePath) {\n const isDir = (\n filePath.endsWith(path.sep) ||\n (process.platform === \"win32\" && filePath.endsWith(\"/\"))\n );\n\n return isDir ? \"/\" : \"\";\n}\n\nconst DefaultPatterns = Object.freeze([\"/**/node_modules/*\"]);\nconst DotPatterns = Object.freeze([\".*\", \"!.eslintrc.*\", \"!../\"]);\n\n//------------------------------------------------------------------------------\n// Public\n//------------------------------------------------------------------------------\n\nclass IgnorePattern {\n\n /**\n * The default patterns.\n * @type {string[]}\n */\n static get DefaultPatterns() {\n return DefaultPatterns;\n }\n\n /**\n * Create the default predicate function.\n * @param {string} cwd The current working directory.\n * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createDefaultIgnore(cwd) {\n return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]);\n }\n\n /**\n * Create the predicate function from multiple `IgnorePattern` objects.\n * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns.\n * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createIgnore(ignorePatterns) {\n debug(\"Create with: %o\", ignorePatterns);\n\n const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath));\n const patterns = [].concat(\n ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath))\n );\n const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]);\n const dotIg = ignore({ allowRelativePaths: true }).add(patterns);\n\n debug(\" processed: %o\", { basePath, patterns });\n\n return Object.assign(\n (filePath, dot = false) => {\n assert(path.isAbsolute(filePath), \"'filePath' should be an absolute path.\");\n const relPathRaw = relative(basePath, filePath);\n const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath));\n const adoptedIg = dot ? dotIg : ig;\n const result = relPath !== \"\" && adoptedIg.ignores(relPath);\n\n debug(\"Check\", { filePath, dot, relativePath: relPath, result });\n return result;\n },\n { basePath, patterns }\n );\n }\n\n /**\n * Initialize a new `IgnorePattern` instance.\n * @param {string[]} patterns The glob patterns that ignore to lint.\n * @param {string} basePath The base path of `patterns`.\n */\n constructor(patterns, basePath) {\n assert(path.isAbsolute(basePath), \"'basePath' should be an absolute path.\");\n\n /**\n * The glob patterns that ignore to lint.\n * @type {string[]}\n */\n this.patterns = patterns;\n\n /**\n * The base path of `patterns`.\n * @type {string}\n */\n this.basePath = basePath;\n\n /**\n * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`.\n *\n * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility.\n * It's `false` as-is for `ignorePatterns` property in config files.\n * @type {boolean}\n */\n this.loose = false;\n }\n\n /**\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n * @param {string} newBasePath The base path.\n * @returns {string[]} Modifired patterns.\n */\n getPatternsRelativeTo(newBasePath) {\n assert(path.isAbsolute(newBasePath), \"'newBasePath' should be an absolute path.\");\n const { basePath, loose, patterns } = this;\n\n if (newBasePath === basePath) {\n return patterns;\n }\n const prefix = `/${relative(newBasePath, basePath)}`;\n\n return patterns.map(pattern => {\n const negative = pattern.startsWith(\"!\");\n const head = negative ? \"!\" : \"\";\n const body = negative ? pattern.slice(1) : pattern;\n\n if (body.startsWith(\"/\") || body.startsWith(\"../\")) {\n return `${head}${prefix}${body}`;\n }\n return loose ? pattern : `${head}${prefix}/**/${body}`;\n });\n }\n}\n\nexport { IgnorePattern };\n","/**\n * @fileoverview `ExtractedConfig` class.\n *\n * `ExtractedConfig` class expresses a final configuration for a specific file.\n *\n * It provides one method.\n *\n * - `toCompatibleObjectAsConfigFileContent()`\n * Convert this configuration to the compatible object as the content of\n * config files. It converts the loaded parser and plugins to strings.\n * `CLIEngine#getConfigForFile(filePath)` method uses this method.\n *\n * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance.\n *\n * @author Toru Nagashima \n */\n\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n// For VSCode intellisense\n/** @typedef {import(\"../../shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").SeverityConf} SeverityConf */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n\n/**\n * Check if `xs` starts with `ys`.\n * @template T\n * @param {T[]} xs The array to check.\n * @param {T[]} ys The array that may be the first part of `xs`.\n * @returns {boolean} `true` if `xs` starts with `ys`.\n */\nfunction startsWith(xs, ys) {\n return xs.length >= ys.length && ys.every((y, i) => y === xs[i]);\n}\n\n/**\n * The class for extracted config data.\n */\nclass ExtractedConfig {\n constructor() {\n\n /**\n * The config name what `noInlineConfig` setting came from.\n * @type {string}\n */\n this.configNameOfNoInlineConfig = \"\";\n\n /**\n * Environments.\n * @type {Record}\n */\n this.env = {};\n\n /**\n * Global variables.\n * @type {Record}\n */\n this.globals = {};\n\n /**\n * The glob patterns that ignore to lint.\n * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined}\n */\n this.ignores = void 0;\n\n /**\n * The flag that disables directive comments.\n * @type {boolean|undefined}\n */\n this.noInlineConfig = void 0;\n\n /**\n * Parser definition.\n * @type {DependentParser|null}\n */\n this.parser = null;\n\n /**\n * Options for the parser.\n * @type {Object}\n */\n this.parserOptions = {};\n\n /**\n * Plugin definitions.\n * @type {Record}\n */\n this.plugins = {};\n\n /**\n * Processor ID.\n * @type {string|null}\n */\n this.processor = null;\n\n /**\n * The flag that reports unused `eslint-disable` directive comments.\n * @type {boolean|undefined}\n */\n this.reportUnusedDisableDirectives = void 0;\n\n /**\n * Rule settings.\n * @type {Record}\n */\n this.rules = {};\n\n /**\n * Shared settings.\n * @type {Object}\n */\n this.settings = {};\n }\n\n /**\n * Convert this config to the compatible object as a config file content.\n * @returns {ConfigData} The converted object.\n */\n toCompatibleObjectAsConfigFileContent() {\n const {\n /* eslint-disable no-unused-vars */\n configNameOfNoInlineConfig: _ignore1,\n processor: _ignore2,\n /* eslint-enable no-unused-vars */\n ignores,\n ...config\n } = this;\n\n config.parser = config.parser && config.parser.filePath;\n config.plugins = Object.keys(config.plugins).filter(Boolean).reverse();\n config.ignorePatterns = ignores ? ignores.patterns : [];\n\n // Strip the default patterns from `ignorePatterns`.\n if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) {\n config.ignorePatterns =\n config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length);\n }\n\n return config;\n }\n}\n\nexport { ExtractedConfig };\n","/**\n * @fileoverview `ConfigArray` class.\n *\n * `ConfigArray` class expresses the full of a configuration. It has the entry\n * config file, base config files that were extended, loaded parsers, and loaded\n * plugins.\n *\n * `ConfigArray` class provides three properties and two methods.\n *\n * - `pluginEnvironments`\n * - `pluginProcessors`\n * - `pluginRules`\n * The `Map` objects that contain the members of all plugins that this\n * config array contains. Those map objects don't have mutation methods.\n * Those keys are the member ID such as `pluginId/memberName`.\n * - `isRoot()`\n * If `true` then this configuration has `root:true` property.\n * - `extractConfig(filePath)`\n * Extract the final configuration for a given file. This means merging\n * every config array element which that `criteria` property matched. The\n * `filePath` argument must be an absolute path.\n *\n * `ConfigArrayFactory` provides the loading logic of config files.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").RuleConf} RuleConf */\n/** @typedef {import(\"../../shared/types\").Rule} Rule */\n/** @typedef {import(\"../../shared/types\").Plugin} Plugin */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {import(\"./override-tester\")[\"OverrideTester\"]} OverrideTester */\n\n/**\n * @typedef {Object} ConfigArrayElement\n * @property {string} name The name of this config element.\n * @property {string} filePath The path to the source file of this config element.\n * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element.\n * @property {Record|undefined} env The environment settings.\n * @property {Record|undefined} globals The global variable settings.\n * @property {IgnorePattern|undefined} ignorePattern The ignore patterns.\n * @property {boolean|undefined} noInlineConfig The flag that disables directive comments.\n * @property {DependentParser|undefined} parser The parser loader.\n * @property {Object|undefined} parserOptions The parser options.\n * @property {Record|undefined} plugins The plugin loaders.\n * @property {string|undefined} processor The processor name to refer plugin's processor.\n * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments.\n * @property {boolean|undefined} root The flag to express root.\n * @property {Record|undefined} rules The rule settings\n * @property {Object|undefined} settings The shared settings.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The element type.\n */\n\n/**\n * @typedef {Object} ConfigArrayInternalSlots\n * @property {Map} cache The cache to extract configs.\n * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition.\n * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition.\n * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new class extends WeakMap {\n get(key) {\n let value = super.get(key);\n\n if (!value) {\n value = {\n cache: new Map(),\n envMap: null,\n processorMap: null,\n ruleMap: null\n };\n super.set(key, value);\n }\n\n return value;\n }\n}();\n\n/**\n * Get the indices which are matched to a given file.\n * @param {ConfigArrayElement[]} elements The elements.\n * @param {string} filePath The path to a target file.\n * @returns {number[]} The indices.\n */\nfunction getMatchedIndices(elements, filePath) {\n const indices = [];\n\n for (let i = elements.length - 1; i >= 0; --i) {\n const element = elements[i];\n\n if (!element.criteria || (filePath && element.criteria.test(filePath))) {\n indices.push(i);\n }\n }\n\n return indices;\n}\n\n/**\n * Check if a value is a non-null object.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is a non-null object.\n */\nfunction isNonNullObject(x) {\n return typeof x === \"object\" && x !== null;\n}\n\n/**\n * Merge two objects.\n *\n * Assign every property values of `y` to `x` if `x` doesn't have the property.\n * If `x`'s property value is an object, it does recursive.\n * @param {Object} target The destination to merge\n * @param {Object|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeWithoutOverwrite(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n\n if (isNonNullObject(target[key])) {\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (target[key] === void 0) {\n if (isNonNullObject(source[key])) {\n target[key] = Array.isArray(source[key]) ? [] : {};\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (source[key] !== void 0) {\n target[key] = source[key];\n }\n }\n }\n}\n\n/**\n * The error for plugin conflicts.\n */\nclass PluginConflictError extends Error {\n\n /**\n * Initialize this error object.\n * @param {string} pluginId The plugin ID.\n * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins.\n */\n constructor(pluginId, plugins) {\n super(`Plugin \"${pluginId}\" was conflicted between ${plugins.map(p => `\"${p.importerName}\"`).join(\" and \")}.`);\n this.messageTemplate = \"plugin-conflict\";\n this.messageData = { pluginId, plugins };\n }\n}\n\n/**\n * Merge plugins.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergePlugins(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetValue = target[key];\n const sourceValue = source[key];\n\n // Adopt the plugin which was found at first.\n if (targetValue === void 0) {\n if (sourceValue.error) {\n throw sourceValue.error;\n }\n target[key] = sourceValue;\n } else if (sourceValue.filePath !== targetValue.filePath) {\n throw new PluginConflictError(key, [\n {\n filePath: targetValue.filePath,\n importerName: targetValue.importerName\n },\n {\n filePath: sourceValue.filePath,\n importerName: sourceValue.importerName\n }\n ]);\n }\n }\n}\n\n/**\n * Merge rule configs.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeRuleConfigs(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetDef = target[key];\n const sourceDef = source[key];\n\n // Adopt the rule config which was found at first.\n if (targetDef === void 0) {\n if (Array.isArray(sourceDef)) {\n target[key] = [...sourceDef];\n } else {\n target[key] = [sourceDef];\n }\n\n /*\n * If the first found rule config is severity only and the current rule\n * config has options, merge the severity and the options.\n */\n } else if (\n targetDef.length === 1 &&\n Array.isArray(sourceDef) &&\n sourceDef.length >= 2\n ) {\n targetDef.push(...sourceDef.slice(1));\n }\n }\n}\n\n/**\n * Create the extracted config.\n * @param {ConfigArray} instance The config elements.\n * @param {number[]} indices The indices to use.\n * @returns {ExtractedConfig} The extracted config.\n */\nfunction createConfig(instance, indices) {\n const config = new ExtractedConfig();\n const ignorePatterns = [];\n\n // Merge elements.\n for (const index of indices) {\n const element = instance[index];\n\n // Adopt the parser which was found at first.\n if (!config.parser && element.parser) {\n if (element.parser.error) {\n throw element.parser.error;\n }\n config.parser = element.parser;\n }\n\n // Adopt the processor which was found at first.\n if (!config.processor && element.processor) {\n config.processor = element.processor;\n }\n\n // Adopt the noInlineConfig which was found at first.\n if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) {\n config.noInlineConfig = element.noInlineConfig;\n config.configNameOfNoInlineConfig = element.name;\n }\n\n // Adopt the reportUnusedDisableDirectives which was found at first.\n if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) {\n config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives;\n }\n\n // Collect ignorePatterns\n if (element.ignorePattern) {\n ignorePatterns.push(element.ignorePattern);\n }\n\n // Merge others.\n mergeWithoutOverwrite(config.env, element.env);\n mergeWithoutOverwrite(config.globals, element.globals);\n mergeWithoutOverwrite(config.parserOptions, element.parserOptions);\n mergeWithoutOverwrite(config.settings, element.settings);\n mergePlugins(config.plugins, element.plugins);\n mergeRuleConfigs(config.rules, element.rules);\n }\n\n // Create the predicate function for ignore patterns.\n if (ignorePatterns.length > 0) {\n config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse());\n }\n\n return config;\n}\n\n/**\n * Collect definitions.\n * @template T, U\n * @param {string} pluginId The plugin ID for prefix.\n * @param {Record} defs The definitions to collect.\n * @param {Map} map The map to output.\n * @returns {void}\n */\nfunction collect(pluginId, defs, map) {\n if (defs) {\n const prefix = pluginId && `${pluginId}/`;\n\n for (const [key, value] of Object.entries(defs)) {\n map.set(`${prefix}${key}`, value);\n }\n }\n}\n\n/**\n * Delete the mutation methods from a given map.\n * @param {Map} map The map object to delete.\n * @returns {void}\n */\nfunction deleteMutationMethods(map) {\n Object.defineProperties(map, {\n clear: { configurable: true, value: void 0 },\n delete: { configurable: true, value: void 0 },\n set: { configurable: true, value: void 0 }\n });\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArrayElement[]} elements The config elements.\n * @param {ConfigArrayInternalSlots} slots The internal slots.\n * @returns {void}\n */\nfunction initPluginMemberMaps(elements, slots) {\n const processed = new Set();\n\n slots.envMap = new Map();\n slots.processorMap = new Map();\n slots.ruleMap = new Map();\n\n for (const element of elements) {\n if (!element.plugins) {\n continue;\n }\n\n for (const [pluginId, value] of Object.entries(element.plugins)) {\n const plugin = value.definition;\n\n if (!plugin || processed.has(pluginId)) {\n continue;\n }\n processed.add(pluginId);\n\n collect(pluginId, plugin.environments, slots.envMap);\n collect(pluginId, plugin.processors, slots.processorMap);\n collect(pluginId, plugin.rules, slots.ruleMap);\n }\n }\n\n deleteMutationMethods(slots.envMap);\n deleteMutationMethods(slots.processorMap);\n deleteMutationMethods(slots.ruleMap);\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArray} instance The config elements.\n * @returns {ConfigArrayInternalSlots} The extracted config.\n */\nfunction ensurePluginMemberMaps(instance) {\n const slots = internalSlotsMap.get(instance);\n\n if (!slots.ruleMap) {\n initPluginMemberMaps(instance, slots);\n }\n\n return slots;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The Config Array.\n *\n * `ConfigArray` instance contains all settings, parsers, and plugins.\n * You need to call `ConfigArray#extractConfig(filePath)` method in order to\n * extract, merge and get only the config data which is related to an arbitrary\n * file.\n * @extends {Array}\n */\nclass ConfigArray extends Array {\n\n /**\n * Get the plugin environments.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin environments.\n */\n get pluginEnvironments() {\n return ensurePluginMemberMaps(this).envMap;\n }\n\n /**\n * Get the plugin processors.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin processors.\n */\n get pluginProcessors() {\n return ensurePluginMemberMaps(this).processorMap;\n }\n\n /**\n * Get the plugin rules.\n * The returned map cannot be mutated.\n * @returns {ReadonlyMap} The plugin rules.\n */\n get pluginRules() {\n return ensurePluginMemberMaps(this).ruleMap;\n }\n\n /**\n * Check if this config has `root` flag.\n * @returns {boolean} `true` if this config array is root.\n */\n isRoot() {\n for (let i = this.length - 1; i >= 0; --i) {\n const root = this[i].root;\n\n if (typeof root === \"boolean\") {\n return root;\n }\n }\n return false;\n }\n\n /**\n * Extract the config data which is related to a given file.\n * @param {string} filePath The absolute path to the target file.\n * @returns {ExtractedConfig} The extracted config data.\n */\n extractConfig(filePath) {\n const { cache } = internalSlotsMap.get(this);\n const indices = getMatchedIndices(this, filePath);\n const cacheKey = indices.join(\",\");\n\n if (!cache.has(cacheKey)) {\n cache.set(cacheKey, createConfig(this, indices));\n }\n\n return cache.get(cacheKey);\n }\n\n /**\n * Check if a given path is an additional lint target.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the file is an additional lint target.\n */\n isAdditionalTargetPath(filePath) {\n for (const { criteria, type } of this) {\n if (\n type === \"config\" &&\n criteria &&\n !criteria.endsWithWildcard &&\n criteria.test(filePath)\n ) {\n return true;\n }\n }\n return false;\n }\n}\n\n/**\n * Get the used extracted configs.\n * CLIEngine will use this method to collect used deprecated rules.\n * @param {ConfigArray} instance The config array object to get.\n * @returns {ExtractedConfig[]} The used extracted configs.\n * @private\n */\nfunction getUsedExtractedConfigs(instance) {\n const { cache } = internalSlotsMap.get(instance);\n\n return Array.from(cache.values());\n}\n\n\nexport {\n ConfigArray,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview `ConfigDependency` class.\n *\n * `ConfigDependency` class expresses a loaded parser or plugin.\n *\n * If the parser or plugin was loaded successfully, it has `definition` property\n * and `filePath` property. Otherwise, it has `error` property.\n *\n * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it\n * omits `definition` property.\n *\n * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers\n * or plugins.\n *\n * @author Toru Nagashima \n */\n\nimport util from \"util\";\n\n/**\n * The class is to store parsers or plugins.\n * This class hides the loaded object from `JSON.stringify()` and `console.log`.\n * @template T\n */\nclass ConfigDependency {\n\n /**\n * Initialize this instance.\n * @param {Object} data The dependency data.\n * @param {T} [data.definition] The dependency if the loading succeeded.\n * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded.\n * @param {Error} [data.error] The error object if the loading failed.\n * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded.\n * @param {string} data.id The ID of this dependency.\n * @param {string} data.importerName The name of the config file which loads this dependency.\n * @param {string} data.importerPath The path to the config file which loads this dependency.\n */\n constructor({\n definition = null,\n original = null,\n error = null,\n filePath = null,\n id,\n importerName,\n importerPath\n }) {\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {T|null}\n */\n this.definition = definition;\n\n /**\n * The original dependency as loaded directly from disk if the loading succeeded.\n * @type {T|null}\n */\n this.original = original;\n\n /**\n * The error object if the loading failed.\n * @type {Error|null}\n */\n this.error = error;\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {string|null}\n */\n this.filePath = filePath;\n\n /**\n * The ID of this dependency.\n * @type {string}\n */\n this.id = id;\n\n /**\n * The name of the config file which loads this dependency.\n * @type {string}\n */\n this.importerName = importerName;\n\n /**\n * The path to the config file which loads this dependency.\n * @type {string}\n */\n this.importerPath = importerPath;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n const obj = this[util.inspect.custom]();\n\n // Display `error.message` (`Error#message` is unenumerable).\n if (obj.error instanceof Error) {\n obj.error = { ...obj.error, message: obj.error.message };\n }\n\n return obj;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n const {\n definition: _ignore1, // eslint-disable-line no-unused-vars\n original: _ignore2, // eslint-disable-line no-unused-vars\n ...obj\n } = this;\n\n return obj;\n }\n}\n\n/** @typedef {ConfigDependency} DependentParser */\n/** @typedef {ConfigDependency} DependentPlugin */\n\nexport { ConfigDependency };\n","/**\n * @fileoverview `OverrideTester` class.\n *\n * `OverrideTester` class handles `files` property and `excludedFiles` property\n * of `overrides` config.\n *\n * It provides one method.\n *\n * - `test(filePath)`\n * Test if a file path matches the pair of `files` property and\n * `excludedFiles` property. The `filePath` argument must be an absolute\n * path.\n *\n * `ConfigArrayFactory` creates `OverrideTester` objects when it processes\n * `overrides` properties.\n *\n * @author Toru Nagashima \n */\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport util from \"util\";\nimport minimatch from \"minimatch\";\n\nconst { Minimatch } = minimatch;\n\nconst minimatchOpts = { dot: true, matchBase: true };\n\n/**\n * @typedef {Object} Pattern\n * @property {InstanceType[] | null} includes The positive matchers.\n * @property {InstanceType[] | null} excludes The negative matchers.\n */\n\n/**\n * Normalize a given pattern to an array.\n * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns.\n * @returns {string[]|null} Normalized patterns.\n * @private\n */\nfunction normalizePatterns(patterns) {\n if (Array.isArray(patterns)) {\n return patterns.filter(Boolean);\n }\n if (typeof patterns === \"string\" && patterns) {\n return [patterns];\n }\n return [];\n}\n\n/**\n * Create the matchers of given patterns.\n * @param {string[]} patterns The patterns.\n * @returns {InstanceType[] | null} The matchers.\n */\nfunction toMatcher(patterns) {\n if (patterns.length === 0) {\n return null;\n }\n return patterns.map(pattern => {\n if (/^\\.[/\\\\]/u.test(pattern)) {\n return new Minimatch(\n pattern.slice(2),\n\n // `./*.js` should not match with `subdir/foo.js`\n { ...minimatchOpts, matchBase: false }\n );\n }\n return new Minimatch(pattern, minimatchOpts);\n });\n}\n\n/**\n * Convert a given matcher to string.\n * @param {Pattern} matchers The matchers.\n * @returns {string} The string expression of the matcher.\n */\nfunction patternToJson({ includes, excludes }) {\n return {\n includes: includes && includes.map(m => m.pattern),\n excludes: excludes && excludes.map(m => m.pattern)\n };\n}\n\n/**\n * The class to test given paths are matched by the patterns.\n */\nclass OverrideTester {\n\n /**\n * Create a tester with given criteria.\n * If there are no criteria, returns `null`.\n * @param {string|string[]} files The glob patterns for included files.\n * @param {string|string[]} excludedFiles The glob patterns for excluded files.\n * @param {string} basePath The path to the base directory to test paths.\n * @returns {OverrideTester|null} The created instance or `null`.\n */\n static create(files, excludedFiles, basePath) {\n const includePatterns = normalizePatterns(files);\n const excludePatterns = normalizePatterns(excludedFiles);\n let endsWithWildcard = false;\n\n if (includePatterns.length === 0) {\n return null;\n }\n\n // Rejects absolute paths or relative paths to parents.\n for (const pattern of includePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n if (pattern.endsWith(\"*\")) {\n endsWithWildcard = true;\n }\n }\n for (const pattern of excludePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n }\n\n const includes = toMatcher(includePatterns);\n const excludes = toMatcher(excludePatterns);\n\n return new OverrideTester(\n [{ includes, excludes }],\n basePath,\n endsWithWildcard\n );\n }\n\n /**\n * Combine two testers by logical and.\n * If either of the testers was `null`, returns the other tester.\n * The `basePath` property of the two must be the same value.\n * @param {OverrideTester|null} a A tester.\n * @param {OverrideTester|null} b Another tester.\n * @returns {OverrideTester|null} Combined tester.\n */\n static and(a, b) {\n if (!b) {\n return a && new OverrideTester(\n a.patterns,\n a.basePath,\n a.endsWithWildcard\n );\n }\n if (!a) {\n return new OverrideTester(\n b.patterns,\n b.basePath,\n b.endsWithWildcard\n );\n }\n\n assert.strictEqual(a.basePath, b.basePath);\n return new OverrideTester(\n a.patterns.concat(b.patterns),\n a.basePath,\n a.endsWithWildcard || b.endsWithWildcard\n );\n }\n\n /**\n * Initialize this instance.\n * @param {Pattern[]} patterns The matchers.\n * @param {string} basePath The base path.\n * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`.\n */\n constructor(patterns, basePath, endsWithWildcard = false) {\n\n /** @type {Pattern[]} */\n this.patterns = patterns;\n\n /** @type {string} */\n this.basePath = basePath;\n\n /** @type {boolean} */\n this.endsWithWildcard = endsWithWildcard;\n }\n\n /**\n * Test if a given path is matched or not.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the path was matched.\n */\n test(filePath) {\n if (typeof filePath !== \"string\" || !path.isAbsolute(filePath)) {\n throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`);\n }\n const relativePath = path.relative(this.basePath, filePath);\n\n return this.patterns.every(({ includes, excludes }) => (\n (!includes || includes.some(m => m.match(relativePath))) &&\n (!excludes || !excludes.some(m => m.match(relativePath)))\n ));\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n if (this.patterns.length === 1) {\n return {\n ...patternToJson(this.patterns[0]),\n basePath: this.basePath\n };\n }\n return {\n AND: this.patterns.map(patternToJson),\n basePath: this.basePath\n };\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n return this.toJSON();\n }\n}\n\nexport { OverrideTester };\n","/**\n * @fileoverview `ConfigArray` class.\n * @author Toru Nagashima \n */\n\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array.js\";\nimport { ConfigDependency } from \"./config-dependency.js\";\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\nimport { OverrideTester } from \"./override-tester.js\";\n\nexport {\n ConfigArray,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Applies default rule options\n * @author JoshuaKGoldberg\n */\n\n/**\n * Check if the variable contains an object strictly rejecting arrays\n * @param {unknown} value an object\n * @returns {boolean} Whether value is an object\n */\nfunction isObjectNotArray(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\n/**\n * Deeply merges second on top of first, creating a new {} object if needed.\n * @param {T} first Base, default value.\n * @param {U} second User-specified value.\n * @returns {T | U | (T & U)} Merged equivalent of second on top of first.\n */\nfunction deepMergeObjects(first, second) {\n if (second === void 0) {\n return first;\n }\n\n if (!isObjectNotArray(first) || !isObjectNotArray(second)) {\n return second;\n }\n\n const result = { ...first, ...second };\n\n for (const key of Object.keys(second)) {\n if (Object.prototype.propertyIsEnumerable.call(first, key)) {\n result[key] = deepMergeObjects(first[key], second[key]);\n }\n }\n\n return result;\n}\n\n/**\n * Deeply merges second on top of first, creating a new [] array if needed.\n * @param {T[] | undefined} first Base, default values.\n * @param {U[] | undefined} second User-specified values.\n * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first.\n */\nfunction deepMergeArrays(first, second) {\n if (!first || !second) {\n return second || first || [];\n }\n\n return [\n ...first.map((value, i) => deepMergeObjects(value, second[i])),\n ...second.slice(first.length)\n ];\n}\n\nexport { deepMergeArrays };\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport { deepMergeArrays } from \"./deep-merge-arrays.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);\n\n validateRule(mergedOptions);\n\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * Utility for resolving a module relative to another module\n * @author Teddy Katz\n */\n\nimport Module from \"module\";\n\n/*\n * `Module.createRequire` is added in v12.2.0. It supports URL as well.\n * We only support the case where the argument is a filepath, not a URL.\n */\nconst createRequire = Module.createRequire;\n\n/**\n * Resolves a Node module relative to another module\n * @param {string} moduleName The name of a Node module, or a path to a Node module.\n * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be\n * a file rather than a directory, but the file need not actually exist.\n * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`\n */\nfunction resolve(moduleName, relativeToPath) {\n try {\n return createRequire(relativeToPath).resolve(moduleName);\n } catch (error) {\n\n // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future.\n if (\n typeof error === \"object\" &&\n error !== null &&\n error.code === \"MODULE_NOT_FOUND\" &&\n !error.requireStack &&\n error.message.includes(moduleName)\n ) {\n error.message += `\\nRequire stack:\\n- ${relativeToPath}`;\n }\n throw error;\n }\n}\n\nexport {\n resolve\n};\n","/**\n * @fileoverview The factory of `ConfigArray` objects.\n *\n * This class provides methods to create `ConfigArray` instance.\n *\n * - `create(configData, options)`\n * Create a `ConfigArray` instance from a config data. This is to handle CLI\n * options except `--config`.\n * - `loadFile(filePath, options)`\n * Create a `ConfigArray` instance from a config file. This is to handle\n * `--config` option. If the file was not found, throws the following error:\n * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error.\n * - If the filename was `package.json`, an IO error or an\n * `ESLINT_CONFIG_FIELD_NOT_FOUND` error.\n * - Otherwise, an IO error such as `ENOENT`.\n * - `loadInDirectory(directoryPath, options)`\n * Create a `ConfigArray` instance from a config file which is on a given\n * directory. This tries to load `.eslintrc.*` or `package.json`. If not\n * found, returns an empty `ConfigArray`.\n * - `loadESLintIgnore(filePath)`\n * Create a `ConfigArray` instance from a config file that is `.eslintignore`\n * format. This is to handle `--ignore-path` option.\n * - `loadDefaultESLintIgnore()`\n * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in\n * the current working directory.\n *\n * `ConfigArrayFactory` class has the responsibility that loads configuration\n * files, including loading `extends`, `parser`, and `plugins`. The created\n * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`.\n *\n * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class\n * handles cascading and hierarchy.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport fs from \"fs\";\nimport importFresh from \"import-fresh\";\nimport { createRequire } from \"module\";\nimport path from \"path\";\nimport stripComments from \"strip-json-comments\";\n\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern,\n OverrideTester\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\n\nconst require = createRequire(import.meta.url);\n\nconst debug = debugOrig(\"eslintrc:config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\nconst configFilenames = [\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\",\n \"package.json\"\n];\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").OverrideConfigData} OverrideConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {import(\"./config-array/config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-array/config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {ConfigArray[0]} ConfigArrayElement */\n\n/**\n * @typedef {Object} ConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {string} [cwd] The path to the current working directory.\n * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryInternalSlots\n * @property {Map} additionalPluginPool The map for additional plugins.\n * @property {string} cwd The path to the current working directory.\n * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {string} pluginBasePath The base path to resolve plugins.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/** @type {WeakMap} */\nconst normalizedPlugins = new WeakMap();\n\n/**\n * Check if a given string is a file path.\n * @param {string} nameOrPath A module name or file path.\n * @returns {boolean} `true` if the `nameOrPath` is a file path.\n */\nfunction isFilePath(nameOrPath) {\n return (\n /^\\.{1,2}[/\\\\]/u.test(nameOrPath) ||\n path.isAbsolute(nameOrPath)\n );\n}\n\n/**\n * Convenience wrapper for synchronously reading file contents.\n * @param {string} filePath The filename to read.\n * @returns {string} The file contents, with the BOM removed.\n * @private\n */\nfunction readFile(filePath) {\n return fs.readFileSync(filePath, \"utf8\").replace(/^\\ufeff/u, \"\");\n}\n\n/**\n * Loads a YAML configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadYAMLConfigFile(filePath) {\n debug(`Loading YAML config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n\n // empty YAML file can be null, so always use\n return yaml.load(readFile(filePath)) || {};\n } catch (e) {\n debug(`Error reading YAML file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JSON configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSONConfigFile(filePath) {\n debug(`Loading JSON config file: ${filePath}`);\n\n try {\n return JSON.parse(stripComments(readFile(filePath)));\n } catch (e) {\n debug(`Error reading JSON file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n e.messageTemplate = \"failed-to-read-json\";\n e.messageData = {\n path: filePath,\n message: e.message\n };\n throw e;\n }\n}\n\n/**\n * Loads a legacy (.eslintrc) configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadLegacyConfigFile(filePath) {\n debug(`Loading legacy config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};\n } catch (e) {\n debug(\"Error reading YAML file: %s\\n%o\", filePath, e);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JavaScript configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSConfigFile(filePath) {\n debug(`Loading JS config file: ${filePath}`);\n try {\n return importFresh(filePath);\n } catch (e) {\n debug(`Error reading JavaScript file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a configuration from a package.json file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadPackageJSONConfigFile(filePath) {\n debug(`Loading package.json config file: ${filePath}`);\n try {\n const packageData = loadJSONConfigFile(filePath);\n\n if (!Object.hasOwnProperty.call(packageData, \"eslintConfig\")) {\n throw Object.assign(\n new Error(\"package.json file doesn't have 'eslintConfig' field.\"),\n { code: \"ESLINT_CONFIG_FIELD_NOT_FOUND\" }\n );\n }\n\n return packageData.eslintConfig;\n } catch (e) {\n debug(`Error reading package.json file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a `.eslintignore` from a file.\n * @param {string} filePath The filename to load.\n * @returns {string[]} The ignore patterns from the file.\n * @private\n */\nfunction loadESLintIgnoreFile(filePath) {\n debug(`Loading .eslintignore file: ${filePath}`);\n\n try {\n return readFile(filePath)\n .split(/\\r?\\n/gu)\n .filter(line => line.trim() !== \"\" && !line.startsWith(\"#\"));\n } catch (e) {\n debug(`Error reading .eslintignore file: ${filePath}`);\n e.message = `Cannot read .eslintignore file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Creates an error to notify about a missing config to extend from.\n * @param {string} configName The name of the missing config.\n * @param {string} importerName The name of the config that imported the missing config\n * @param {string} messageTemplate The text template to source error strings from.\n * @returns {Error} The error object to throw\n * @private\n */\nfunction configInvalidError(configName, importerName, messageTemplate) {\n return Object.assign(\n new Error(`Failed to load config \"${configName}\" to extend from.`),\n {\n messageTemplate,\n messageData: { configName, importerName }\n }\n );\n}\n\n/**\n * Loads a configuration file regardless of the source. Inspects the file path\n * to determine the correctly way to load the config file.\n * @param {string} filePath The path to the configuration.\n * @returns {ConfigData|null} The configuration information.\n * @private\n */\nfunction loadConfigFile(filePath) {\n switch (path.extname(filePath)) {\n case \".js\":\n case \".cjs\":\n return loadJSConfigFile(filePath);\n\n case \".json\":\n if (path.basename(filePath) === \"package.json\") {\n return loadPackageJSONConfigFile(filePath);\n }\n return loadJSONConfigFile(filePath);\n\n case \".yaml\":\n case \".yml\":\n return loadYAMLConfigFile(filePath);\n\n default:\n return loadLegacyConfigFile(filePath);\n }\n}\n\n/**\n * Write debug log.\n * @param {string} request The requested module name.\n * @param {string} relativeTo The file path to resolve the request relative to.\n * @param {string} filePath The resolved file path.\n * @returns {void}\n */\nfunction writeDebugLogForLoading(request, relativeTo, filePath) {\n /* istanbul ignore next */\n if (debug.enabled) {\n let nameAndVersion = null;\n\n try {\n const packageJsonPath = ModuleResolver.resolve(\n `${request}/package.json`,\n relativeTo\n );\n const { version = \"unknown\" } = require(packageJsonPath);\n\n nameAndVersion = `${request}@${version}`;\n } catch (error) {\n debug(\"package.json was not found:\", error.message);\n nameAndVersion = request;\n }\n\n debug(\"Loaded: %s (%s)\", nameAndVersion, filePath);\n }\n}\n\n/**\n * Create a new context with default values.\n * @param {ConfigArrayFactoryInternalSlots} slots The internal slots.\n * @param {\"config\" | \"ignore\" | \"implicit-processor\" | undefined} providedType The type of the current configuration. Default is `\"config\"`.\n * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`.\n * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string.\n * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`.\n * @returns {ConfigArrayFactoryLoadingContext} The created context.\n */\nfunction createContext(\n { cwd, resolvePluginsRelativeTo },\n providedType,\n providedName,\n providedFilePath,\n providedMatchBasePath\n) {\n const filePath = providedFilePath\n ? path.resolve(cwd, providedFilePath)\n : \"\";\n const matchBasePath =\n (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const name =\n providedName ||\n (filePath && path.relative(cwd, filePath)) ||\n \"\";\n const pluginBasePath =\n resolvePluginsRelativeTo ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const type = providedType || \"config\";\n\n return { filePath, matchBasePath, name, pluginBasePath, type };\n}\n\n/**\n * Normalize a given plugin.\n * - Ensure the object to have four properties: configs, environments, processors, and rules.\n * - Ensure the object to not have other properties.\n * @param {Plugin} plugin The plugin to normalize.\n * @returns {Plugin} The normalized plugin.\n */\nfunction normalizePlugin(plugin) {\n\n // first check the cache\n let normalizedPlugin = normalizedPlugins.get(plugin);\n\n if (normalizedPlugin) {\n return normalizedPlugin;\n }\n\n normalizedPlugin = {\n configs: plugin.configs || {},\n environments: plugin.environments || {},\n processors: plugin.processors || {},\n rules: plugin.rules || {}\n };\n\n // save the reference for later\n normalizedPlugins.set(plugin, normalizedPlugin);\n\n return normalizedPlugin;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The factory of `ConfigArray` objects.\n */\nclass ConfigArrayFactory {\n\n /**\n * Initialize this instance.\n * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins.\n */\n constructor({\n additionalPluginPool = new Map(),\n cwd = process.cwd(),\n resolvePluginsRelativeTo,\n builtInRules,\n resolver = ModuleResolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = {}) {\n internalSlotsMap.set(this, {\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo:\n resolvePluginsRelativeTo &&\n path.resolve(cwd, resolvePluginsRelativeTo),\n builtInRules,\n resolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n });\n }\n\n /**\n * Create `ConfigArray` instance from a config data.\n * @param {ConfigData|null} configData The config data to create.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.filePath] The path to this config data.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n create(configData, { basePath, filePath, name } = {}) {\n if (!configData) {\n return new ConfigArray();\n }\n\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n const elements = this._normalizeConfigData(configData, ctx);\n\n return new ConfigArray(...elements);\n }\n\n /**\n * Load a config file.\n * @param {string} filePath The path to a config file.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n loadFile(filePath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n\n return new ConfigArray(...this._loadConfigData(ctx));\n }\n\n /**\n * Load the config file on a given directory if exists.\n * @param {string} directoryPath The path to a directory.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadInDirectory(directoryPath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n\n for (const filename of configFilenames) {\n const ctx = createContext(\n slots,\n \"config\",\n name,\n path.join(directoryPath, filename),\n basePath\n );\n\n if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) {\n let configData;\n\n try {\n configData = loadConfigFile(ctx.filePath);\n } catch (error) {\n if (!error || error.code !== \"ESLINT_CONFIG_FIELD_NOT_FOUND\") {\n throw error;\n }\n }\n\n if (configData) {\n debug(`Config file found: ${ctx.filePath}`);\n return new ConfigArray(\n ...this._normalizeConfigData(configData, ctx)\n );\n }\n }\n }\n\n debug(`Config file not found on ${directoryPath}`);\n return new ConfigArray();\n }\n\n /**\n * Check if a config file on a given directory exists or not.\n * @param {string} directoryPath The path to a directory.\n * @returns {string | null} The path to the found config file. If not found then null.\n */\n static getPathToConfigFileInDirectory(directoryPath) {\n for (const filename of configFilenames) {\n const filePath = path.join(directoryPath, filename);\n\n if (fs.existsSync(filePath)) {\n if (filename === \"package.json\") {\n try {\n loadPackageJSONConfigFile(filePath);\n return filePath;\n } catch { /* ignore */ }\n } else {\n return filePath;\n }\n }\n }\n return null;\n }\n\n /**\n * Load `.eslintignore` file.\n * @param {string} filePath The path to a `.eslintignore` file to load.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadESLintIgnore(filePath) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(\n slots,\n \"ignore\",\n void 0,\n filePath,\n slots.cwd\n );\n const ignorePatterns = loadESLintIgnoreFile(ctx.filePath);\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(ignorePatterns, ctx)\n );\n }\n\n /**\n * Load `.eslintignore` file in the current working directory.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadDefaultESLintIgnore() {\n const slots = internalSlotsMap.get(this);\n const eslintIgnorePath = path.resolve(slots.cwd, \".eslintignore\");\n const packageJsonPath = path.resolve(slots.cwd, \"package.json\");\n\n if (fs.existsSync(eslintIgnorePath)) {\n return this.loadESLintIgnore(eslintIgnorePath);\n }\n if (fs.existsSync(packageJsonPath)) {\n const data = loadJSONConfigFile(packageJsonPath);\n\n if (Object.hasOwnProperty.call(data, \"eslintIgnore\")) {\n if (!Array.isArray(data.eslintIgnore)) {\n throw new Error(\"Package.json eslintIgnore property requires an array of paths\");\n }\n const ctx = createContext(\n slots,\n \"ignore\",\n \"eslintIgnore in package.json\",\n packageJsonPath,\n slots.cwd\n );\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx)\n );\n }\n }\n\n return new ConfigArray();\n }\n\n /**\n * Load a given config file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} Loaded config.\n * @private\n */\n _loadConfigData(ctx) {\n return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx);\n }\n\n /**\n * Normalize a given `.eslintignore` data to config array elements.\n * @param {string[]} ignorePatterns The patterns to ignore files.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeESLintIgnoreData(ignorePatterns, ctx) {\n const elements = this._normalizeObjectConfigData(\n { ignorePatterns },\n ctx\n );\n\n // Set `ignorePattern.loose` flag for backward compatibility.\n for (const element of elements) {\n if (element.ignorePattern) {\n element.ignorePattern.loose = true;\n }\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _normalizeConfigData(configData, ctx) {\n const validator = new ConfigValidator();\n\n validator.validateConfigSchema(configData, ctx.name || ctx.filePath);\n return this._normalizeObjectConfigData(configData, ctx);\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData|OverrideConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigData(configData, ctx) {\n const { files, excludedFiles, ...configBody } = configData;\n const criteria = OverrideTester.create(\n files,\n excludedFiles,\n ctx.matchBasePath\n );\n const elements = this._normalizeObjectConfigDataBody(configBody, ctx);\n\n // Apply the criteria to every element.\n for (const element of elements) {\n\n /*\n * Merge the criteria.\n * This is for the `overrides` entries that came from the\n * configurations of `overrides[].extends`.\n */\n element.criteria = OverrideTester.and(criteria, element.criteria);\n\n /*\n * Remove `root` property to ignore `root` settings which came from\n * `extends` in `overrides`.\n */\n if (element.criteria) {\n element.root = void 0;\n }\n\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigDataBody(\n {\n env,\n extends: extend,\n globals,\n ignorePatterns,\n noInlineConfig,\n parser: parserName,\n parserOptions,\n plugins: pluginList,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings,\n overrides: overrideList = []\n },\n ctx\n ) {\n const extendList = Array.isArray(extend) ? extend : [extend];\n const ignorePattern = ignorePatterns && new IgnorePattern(\n Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns],\n ctx.matchBasePath\n );\n\n // Flatten `extends`.\n for (const extendName of extendList.filter(Boolean)) {\n yield* this._loadExtends(extendName, ctx);\n }\n\n // Load parser & plugins.\n const parser = parserName && this._loadParser(parserName, ctx);\n const plugins = pluginList && this._loadPlugins(pluginList, ctx);\n\n // Yield pseudo config data for file extension processors.\n if (plugins) {\n yield* this._takeFileExtensionProcessors(plugins, ctx);\n }\n\n // Yield the config data except `extends` and `overrides`.\n yield {\n\n // Debug information.\n type: ctx.type,\n name: ctx.name,\n filePath: ctx.filePath,\n\n // Config data.\n criteria: null,\n env,\n globals,\n ignorePattern,\n noInlineConfig,\n parser,\n parserOptions,\n plugins,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings\n };\n\n // Flatten `overries`.\n for (let i = 0; i < overrideList.length; ++i) {\n yield* this._normalizeObjectConfigData(\n overrideList[i],\n { ...ctx, name: `${ctx.name}#overrides[${i}]` }\n );\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtends(extendName, ctx) {\n debug(\"Loading {extends:%j} relative to %s\", extendName, ctx.filePath);\n try {\n if (extendName.startsWith(\"eslint:\")) {\n return this._loadExtendedBuiltInConfig(extendName, ctx);\n }\n if (extendName.startsWith(\"plugin:\")) {\n return this._loadExtendedPluginConfig(extendName, ctx);\n }\n return this._loadExtendedShareableConfig(extendName, ctx);\n } catch (error) {\n error.message += `\\nReferenced from: ${ctx.filePath || ctx.name}`;\n throw error;\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedBuiltInConfig(extendName, ctx) {\n const {\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = internalSlotsMap.get(this);\n\n if (extendName === \"eslint:recommended\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintRecommendedConfig) {\n if (typeof getEslintRecommendedConfig !== \"function\") {\n throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);\n }\n return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintRecommendedPath\n });\n }\n if (extendName === \"eslint:all\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintAllConfig) {\n if (typeof getEslintAllConfig !== \"function\") {\n throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);\n }\n return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintAllPath\n });\n }\n\n throw configInvalidError(extendName, ctx.name, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedPluginConfig(extendName, ctx) {\n const slashIndex = extendName.lastIndexOf(\"/\");\n\n if (slashIndex === -1) {\n throw configInvalidError(extendName, ctx.filePath, \"plugin-invalid\");\n }\n\n const pluginName = extendName.slice(\"plugin:\".length, slashIndex);\n const configName = extendName.slice(slashIndex + 1);\n\n if (isFilePath(pluginName)) {\n throw new Error(\"'extends' cannot use a file path for plugins.\");\n }\n\n const plugin = this._loadPlugin(pluginName, ctx);\n const configData =\n plugin.definition &&\n plugin.definition.configs[configName];\n\n if (configData) {\n return this._normalizeConfigData(configData, {\n ...ctx,\n filePath: plugin.filePath || ctx.filePath,\n name: `${ctx.name} » plugin:${plugin.id}/${configName}`\n });\n }\n\n throw plugin.error || configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedShareableConfig(extendName, ctx) {\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n let request;\n\n if (isFilePath(extendName)) {\n request = extendName;\n } else if (extendName.startsWith(\".\")) {\n request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior.\n } else {\n request = naming.normalizePackageName(\n extendName,\n \"eslint-config\"\n );\n }\n\n let filePath;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (error) {\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n throw configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n throw error;\n }\n\n writeDebugLogForLoading(request, relativeTo, filePath);\n return this._loadConfigData({\n ...ctx,\n filePath,\n name: `${ctx.name} » ${request}`\n });\n }\n\n /**\n * Load given plugins.\n * @param {string[]} names The plugin names to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {Record} The loaded parser.\n * @private\n */\n _loadPlugins(names, ctx) {\n return names.reduce((map, name) => {\n if (isFilePath(name)) {\n throw new Error(\"Plugins array cannot includes file paths.\");\n }\n const plugin = this._loadPlugin(name, ctx);\n\n map[plugin.id] = plugin;\n\n return map;\n }, {});\n }\n\n /**\n * Load a given parser.\n * @param {string} nameOrPath The package name or the path to a parser file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentParser} The loaded parser.\n */\n _loadParser(nameOrPath, ctx) {\n debug(\"Loading parser %j from %s\", nameOrPath, ctx.filePath);\n\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n\n try {\n const filePath = resolver.resolve(nameOrPath, relativeTo);\n\n writeDebugLogForLoading(nameOrPath, relativeTo, filePath);\n\n return new ConfigDependency({\n definition: require(filePath),\n filePath,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (error) {\n\n // If the parser name is \"espree\", load the espree of ESLint.\n if (nameOrPath === \"espree\") {\n debug(\"Fallback espree.\");\n return new ConfigDependency({\n definition: require(\"espree\"),\n filePath: require.resolve(\"espree\"),\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n debug(\"Failed to load parser '%s' declared in '%s'.\", nameOrPath, ctx.name);\n error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`;\n\n return new ConfigDependency({\n error,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n }\n\n /**\n * Load a given plugin.\n * @param {string} name The plugin name to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentPlugin} The loaded plugin.\n * @private\n */\n _loadPlugin(name, ctx) {\n debug(\"Loading plugin %j from %s\", name, ctx.filePath);\n\n const { additionalPluginPool, resolver } = internalSlotsMap.get(this);\n const request = naming.normalizePackageName(name, \"eslint-plugin\");\n const id = naming.getShorthandName(request, \"eslint-plugin\");\n const relativeTo = path.join(ctx.pluginBasePath, \"__placeholder__.js\");\n\n if (name.match(/\\s+/u)) {\n const error = Object.assign(\n new Error(`Whitespace found in plugin name '${name}'`),\n {\n messageTemplate: \"whitespace-found\",\n messageData: { pluginName: request }\n }\n );\n\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n // Check for additional pool.\n const plugin =\n additionalPluginPool.get(request) ||\n additionalPluginPool.get(id);\n\n if (plugin) {\n return new ConfigDependency({\n definition: normalizePlugin(plugin),\n original: plugin,\n filePath: \"\", // It's unknown where the plugin came from.\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n let filePath;\n let error;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (resolveError) {\n error = resolveError;\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n error.messageTemplate = \"plugin-missing\";\n error.messageData = {\n pluginName: request,\n resolvePluginsRelativeTo: ctx.pluginBasePath,\n importerName: ctx.name\n };\n }\n }\n\n if (filePath) {\n try {\n writeDebugLogForLoading(request, relativeTo, filePath);\n\n const startTime = Date.now();\n const pluginDefinition = require(filePath);\n\n debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`);\n\n return new ConfigDependency({\n definition: normalizePlugin(pluginDefinition),\n original: pluginDefinition,\n filePath,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (loadError) {\n error = loadError;\n }\n }\n\n debug(\"Failed to load plugin '%s' declared in '%s'.\", name, ctx.name);\n error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`;\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n /**\n * Take file expression processors as config array elements.\n * @param {Record} plugins The plugin definitions.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The config array elements of file expression processors.\n * @private\n */\n *_takeFileExtensionProcessors(plugins, ctx) {\n for (const pluginId of Object.keys(plugins)) {\n const processors =\n plugins[pluginId] &&\n plugins[pluginId].definition &&\n plugins[pluginId].definition.processors;\n\n if (!processors) {\n continue;\n }\n\n for (const processorId of Object.keys(processors)) {\n if (processorId.startsWith(\".\")) {\n yield* this._normalizeObjectConfigData(\n {\n files: [`*${processorId}`],\n processor: `${pluginId}/${processorId}`\n },\n {\n ...ctx,\n type: \"implicit-processor\",\n name: `${ctx.name}#processors[\"${pluginId}/${processorId}\"]`\n }\n );\n }\n }\n }\n }\n}\n\nexport {\n ConfigArrayFactory,\n createContext,\n loadConfigFile\n};\n","/**\n * @fileoverview `CascadingConfigArrayFactory` class.\n *\n * `CascadingConfigArrayFactory` class has a responsibility:\n *\n * 1. Handles cascading of config files.\n *\n * It provides two methods:\n *\n * - `getConfigArrayForFile(filePath)`\n * Get the corresponded configuration of a given file. This method doesn't\n * throw even if the given file didn't exist.\n * - `clearCache()`\n * Clear the internal cache. You have to call this method when\n * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends\n * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport os from \"os\";\nimport path from \"path\";\n\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport { emitDeprecationWarning } from \"./shared/deprecation-warnings.js\";\n\nconst debug = debugOrig(\"eslintrc:cascading-config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {ReturnType} ConfigArray */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {ConfigData} [baseConfig] The config by `baseConfig` option.\n * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.\n * @property {string} [cwd] The base directory to start lookup.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]} [rulePaths] The value of `--rulesdir` option.\n * @property {string} [specificConfigPath] The value of `--config` option.\n * @property {boolean} [useEslintrc] if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryInternalSlots\n * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.\n * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.\n * @property {ConfigArray} cliConfigArray The config array of CLI options.\n * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.\n * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.\n * @property {Map} configCache The cache from directory paths to config arrays.\n * @property {string} cwd The base directory to start lookup.\n * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.\n * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.\n * @property {boolean} useEslintrc if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/**\n * Create the config array from `baseConfig` and `rulePaths`.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createBaseConfigArray({\n configArrayFactory,\n baseConfigData,\n rulePaths,\n cwd,\n loadRules\n}) {\n const baseConfigArray = configArrayFactory.create(\n baseConfigData,\n { name: \"BaseConfig\" }\n );\n\n /*\n * Create the config array element for the default ignore patterns.\n * This element has `ignorePattern` property that ignores the default\n * patterns in the current working directory.\n */\n baseConfigArray.unshift(configArrayFactory.create(\n { ignorePatterns: IgnorePattern.DefaultPatterns },\n { name: \"DefaultIgnorePattern\" }\n )[0]);\n\n /*\n * Load rules `--rulesdir` option as a pseudo plugin.\n * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate\n * the rule's options with only information in the config array.\n */\n if (rulePaths && rulePaths.length > 0) {\n baseConfigArray.push({\n type: \"config\",\n name: \"--rulesdir\",\n filePath: \"\",\n plugins: {\n \"\": new ConfigDependency({\n definition: {\n rules: rulePaths.reduce(\n (map, rulesPath) => Object.assign(\n map,\n loadRules(rulesPath, cwd)\n ),\n {}\n )\n },\n filePath: \"\",\n id: \"\",\n importerName: \"--rulesdir\",\n importerPath: \"\"\n })\n }\n });\n }\n\n return baseConfigArray;\n}\n\n/**\n * Create the config array from CLI options.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n}) {\n const cliConfigArray = configArrayFactory.create(\n cliConfigData,\n { name: \"CLIOptions\" }\n );\n\n cliConfigArray.unshift(\n ...(ignorePath\n ? configArrayFactory.loadESLintIgnore(ignorePath)\n : configArrayFactory.loadDefaultESLintIgnore())\n );\n\n if (specificConfigPath) {\n cliConfigArray.unshift(\n ...configArrayFactory.loadFile(\n specificConfigPath,\n { name: \"--config\", basePath: cwd }\n )\n );\n }\n\n return cliConfigArray;\n}\n\n/**\n * The error type when there are files matched by a glob, but all of them have been ignored.\n */\nclass ConfigurationNotFoundError extends Error {\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @param {string} directoryPath The directory path.\n */\n constructor(directoryPath) {\n super(`No ESLint configuration found in ${directoryPath}.`);\n this.messageTemplate = \"no-config-found\";\n this.messageData = { directoryPath };\n }\n}\n\n/**\n * This class provides the functionality that enumerates every file which is\n * matched by given glob patterns and that configuration.\n */\nclass CascadingConfigArrayFactory {\n\n /**\n * Initialize this enumerator.\n * @param {CascadingConfigArrayFactoryOptions} options The options.\n */\n constructor({\n additionalPluginPool = new Map(),\n baseConfig: baseConfigData = null,\n cliConfig: cliConfigData = null,\n cwd = process.cwd(),\n ignorePath,\n resolvePluginsRelativeTo,\n rulePaths = [],\n specificConfigPath = null,\n useEslintrc = true,\n builtInRules = new Map(),\n loadRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n } = {}) {\n const configArrayFactory = new ConfigArrayFactory({\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo,\n builtInRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n });\n\n internalSlotsMap.set(this, {\n baseConfigArray: createBaseConfigArray({\n baseConfigData,\n configArrayFactory,\n cwd,\n rulePaths,\n loadRules\n }),\n baseConfigData,\n cliConfigArray: createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n }),\n cliConfigData,\n configArrayFactory,\n configCache: new Map(),\n cwd,\n finalizeCache: new WeakMap(),\n ignorePath,\n rulePaths,\n specificConfigPath,\n useEslintrc,\n builtInRules,\n loadRules\n });\n }\n\n /**\n * The path to the current working directory.\n * This is used by tests.\n * @type {string}\n */\n get cwd() {\n const { cwd } = internalSlotsMap.get(this);\n\n return cwd;\n }\n\n /**\n * Get the config array of a given file.\n * If `filePath` was not given, it returns the config which contains only\n * `baseConfigData` and `cliConfigData`.\n * @param {string} [filePath] The file path to a file.\n * @param {Object} [options] The options.\n * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The config array of the file.\n */\n getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {\n const {\n baseConfigArray,\n cliConfigArray,\n cwd\n } = internalSlotsMap.get(this);\n\n if (!filePath) {\n return new ConfigArray(...baseConfigArray, ...cliConfigArray);\n }\n\n const directoryPath = path.dirname(path.resolve(cwd, filePath));\n\n debug(`Load config files for ${directoryPath}.`);\n\n return this._finalizeConfigArray(\n this._loadConfigInAncestors(directoryPath),\n directoryPath,\n ignoreNotFoundError\n );\n }\n\n /**\n * Set the config data to override all configs.\n * Require to call `clearCache()` method after this method is called.\n * @param {ConfigData} configData The config data to override all configs.\n * @returns {void}\n */\n setOverrideConfig(configData) {\n const slots = internalSlotsMap.get(this);\n\n slots.cliConfigData = configData;\n }\n\n /**\n * Clear config cache.\n * @returns {void}\n */\n clearCache() {\n const slots = internalSlotsMap.get(this);\n\n slots.baseConfigArray = createBaseConfigArray(slots);\n slots.cliConfigArray = createCLIConfigArray(slots);\n slots.configCache.clear();\n }\n\n /**\n * Load and normalize config files from the ancestor directories.\n * @param {string} directoryPath The path to a leaf directory.\n * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {\n const {\n baseConfigArray,\n configArrayFactory,\n configCache,\n cwd,\n useEslintrc\n } = internalSlotsMap.get(this);\n\n if (!useEslintrc) {\n return baseConfigArray;\n }\n\n let configArray = configCache.get(directoryPath);\n\n // Hit cache.\n if (configArray) {\n debug(`Cache hit: ${directoryPath}.`);\n return configArray;\n }\n debug(`No cache found: ${directoryPath}.`);\n\n const homePath = os.homedir();\n\n // Consider this is root.\n if (directoryPath === homePath && cwd !== homePath) {\n debug(\"Stop traversing because of considered root.\");\n if (configsExistInSubdirs) {\n const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);\n\n if (filePath) {\n emitDeprecationWarning(\n filePath,\n \"ESLINT_PERSONAL_CONFIG_SUPPRESS\"\n );\n }\n }\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n\n // Load the config on this directory.\n try {\n configArray = configArrayFactory.loadInDirectory(directoryPath);\n } catch (error) {\n /* istanbul ignore next */\n if (error.code === \"EACCES\") {\n debug(\"Stop traversing because of 'EACCES' error.\");\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n throw error;\n }\n\n if (configArray.length > 0 && configArray.isRoot()) {\n debug(\"Stop traversing because of 'root:true'.\");\n configArray.unshift(...baseConfigArray);\n return this._cacheConfig(directoryPath, configArray);\n }\n\n // Load from the ancestors and merge it.\n const parentPath = path.dirname(directoryPath);\n const parentConfigArray = parentPath && parentPath !== directoryPath\n ? this._loadConfigInAncestors(\n parentPath,\n configsExistInSubdirs || configArray.length > 0\n )\n : baseConfigArray;\n\n if (configArray.length > 0) {\n configArray.unshift(...parentConfigArray);\n } else {\n configArray = parentConfigArray;\n }\n\n // Cache and return.\n return this._cacheConfig(directoryPath, configArray);\n }\n\n /**\n * Freeze and cache a given config.\n * @param {string} directoryPath The path to a directory as a cache key.\n * @param {ConfigArray} configArray The config array as a cache value.\n * @returns {ConfigArray} The `configArray` (frozen).\n */\n _cacheConfig(directoryPath, configArray) {\n const { configCache } = internalSlotsMap.get(this);\n\n Object.freeze(configArray);\n configCache.set(directoryPath, configArray);\n\n return configArray;\n }\n\n /**\n * Finalize a given config array.\n * Concatenate `--config` and other CLI options.\n * @param {ConfigArray} configArray The parent config array.\n * @param {string} directoryPath The path to the leaf directory to find config files.\n * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {\n const {\n cliConfigArray,\n configArrayFactory,\n finalizeCache,\n useEslintrc,\n builtInRules\n } = internalSlotsMap.get(this);\n\n let finalConfigArray = finalizeCache.get(configArray);\n\n if (!finalConfigArray) {\n finalConfigArray = configArray;\n\n // Load the personal config if there are no regular config files.\n if (\n useEslintrc &&\n configArray.every(c => !c.filePath) &&\n cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.\n ) {\n const homePath = os.homedir();\n\n debug(\"Loading the config file of the home directory:\", homePath);\n\n const personalConfigArray = configArrayFactory.loadInDirectory(\n homePath,\n { name: \"PersonalConfig\" }\n );\n\n if (\n personalConfigArray.length > 0 &&\n !directoryPath.startsWith(homePath)\n ) {\n const lastElement =\n personalConfigArray[personalConfigArray.length - 1];\n\n emitDeprecationWarning(\n lastElement.filePath,\n \"ESLINT_PERSONAL_CONFIG_LOAD\"\n );\n }\n\n finalConfigArray = finalConfigArray.concat(personalConfigArray);\n }\n\n // Apply CLI options.\n if (cliConfigArray.length > 0) {\n finalConfigArray = finalConfigArray.concat(cliConfigArray);\n }\n\n // Validate rule settings and environments.\n const validator = new ConfigValidator({\n builtInRules\n });\n\n validator.validateConfigArray(finalConfigArray);\n\n // Cache it.\n Object.freeze(finalConfigArray);\n finalizeCache.set(configArray, finalConfigArray);\n\n debug(\n \"Configuration was determined: %o on %s\",\n finalConfigArray,\n directoryPath\n );\n }\n\n // At least one element (the default ignore patterns) exists.\n if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {\n throw new ConfigurationNotFoundError(directoryPath);\n }\n\n return finalConfigArray;\n }\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport { CascadingConfigArrayFactory };\n","/**\n * @fileoverview Compatibility class for flat config.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nimport createDebug from \"debug\";\nimport path from \"path\";\n\nimport environments from \"../conf/environments.js\";\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n\nconst debug = createDebug(\"eslintrc:flat-compat\");\nconst cafactory = Symbol(\"cafactory\");\n\n/**\n * Translates an ESLintRC-style config object into a flag-config-style config\n * object.\n * @param {Object} eslintrcConfig An ESLintRC-style config object.\n * @param {Object} options Options to help translate the config.\n * @param {string} options.resolveConfigRelativeTo To the directory to resolve\n * configs from.\n * @param {string} options.resolvePluginsRelativeTo The directory to resolve\n * plugins from.\n * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment\n * names to objects.\n * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor\n * names to objects.\n * @returns {Object} A flag-config-style config object.\n */\nfunction translateESLintRC(eslintrcConfig, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo,\n pluginEnvironments,\n pluginProcessors\n}) {\n\n const flatConfig = {};\n const configs = [];\n const languageOptions = {};\n const linterOptions = {};\n const keysToCopy = [\"settings\", \"rules\", \"processor\"];\n const languageOptionsKeysToCopy = [\"globals\", \"parser\", \"parserOptions\"];\n const linterOptionsKeysToCopy = [\"noInlineConfig\", \"reportUnusedDisableDirectives\"];\n\n // copy over simple translations\n for (const key of keysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig[key] = eslintrcConfig[key];\n }\n }\n\n // copy over languageOptions\n for (const key of languageOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n\n // create the languageOptions key in the flat config\n flatConfig.languageOptions = languageOptions;\n\n if (key === \"parser\") {\n debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`);\n\n if (eslintrcConfig[key].error) {\n throw eslintrcConfig[key].error;\n }\n\n languageOptions[key] = eslintrcConfig[key].definition;\n continue;\n }\n\n // clone any object values that are in the eslintrc config\n if (eslintrcConfig[key] && typeof eslintrcConfig[key] === \"object\") {\n languageOptions[key] = {\n ...eslintrcConfig[key]\n };\n } else {\n languageOptions[key] = eslintrcConfig[key];\n }\n }\n }\n\n // copy over linterOptions\n for (const key of linterOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig.linterOptions = linterOptions;\n linterOptions[key] = eslintrcConfig[key];\n }\n }\n\n // move ecmaVersion a level up\n if (languageOptions.parserOptions) {\n\n if (\"ecmaVersion\" in languageOptions.parserOptions) {\n languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion;\n delete languageOptions.parserOptions.ecmaVersion;\n }\n\n if (\"sourceType\" in languageOptions.parserOptions) {\n languageOptions.sourceType = languageOptions.parserOptions.sourceType;\n delete languageOptions.parserOptions.sourceType;\n }\n\n // check to see if we even need parserOptions anymore and remove it if not\n if (Object.keys(languageOptions.parserOptions).length === 0) {\n delete languageOptions.parserOptions;\n }\n }\n\n // overrides\n if (eslintrcConfig.criteria) {\n flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)];\n }\n\n // translate plugins\n if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === \"object\") {\n debug(`Translating plugins: ${eslintrcConfig.plugins}`);\n\n flatConfig.plugins = {};\n\n for (const pluginName of Object.keys(eslintrcConfig.plugins)) {\n\n debug(`Translating plugin: ${pluginName}`);\n debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`);\n\n const { original: plugin, error } = eslintrcConfig.plugins[pluginName];\n\n if (error) {\n throw error;\n }\n\n flatConfig.plugins[pluginName] = plugin;\n\n // create a config for any processors\n if (plugin.processors) {\n for (const processorName of Object.keys(plugin.processors)) {\n if (processorName.startsWith(\".\")) {\n debug(`Assigning processor: ${pluginName}/${processorName}`);\n\n configs.unshift({\n files: [`**/*${processorName}`],\n processor: pluginProcessors.get(`${pluginName}/${processorName}`)\n });\n }\n\n }\n }\n }\n }\n\n // translate env - must come after plugins\n if (eslintrcConfig.env && typeof eslintrcConfig.env === \"object\") {\n for (const envName of Object.keys(eslintrcConfig.env)) {\n\n // only add environments that are true\n if (eslintrcConfig.env[envName]) {\n debug(`Translating environment: ${envName}`);\n\n if (environments.has(envName)) {\n\n // built-in environments should be defined first\n configs.unshift(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...environments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n } else if (pluginEnvironments.has(envName)) {\n\n // if the environment comes from a plugin, it should come after the plugin config\n configs.push(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...pluginEnvironments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n }\n }\n }\n }\n\n // only add if there are actually keys in the config\n if (Object.keys(flatConfig).length > 0) {\n configs.push(flatConfig);\n }\n\n return configs;\n}\n\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * A compatibility class for working with configs.\n */\nclass FlatCompat {\n\n constructor({\n baseDirectory = process.cwd(),\n resolvePluginsRelativeTo = baseDirectory,\n recommendedConfig,\n allConfig\n } = {}) {\n this.baseDirectory = baseDirectory;\n this.resolvePluginsRelativeTo = resolvePluginsRelativeTo;\n this[cafactory] = new ConfigArrayFactory({\n cwd: baseDirectory,\n resolvePluginsRelativeTo,\n getEslintAllConfig: () => {\n\n if (!allConfig) {\n throw new TypeError(\"Missing parameter 'allConfig' in FlatCompat constructor.\");\n }\n\n return allConfig;\n },\n getEslintRecommendedConfig: () => {\n\n if (!recommendedConfig) {\n throw new TypeError(\"Missing parameter 'recommendedConfig' in FlatCompat constructor.\");\n }\n\n return recommendedConfig;\n }\n });\n }\n\n /**\n * Translates an ESLintRC-style config into a flag-config-style config.\n * @param {Object} eslintrcConfig The ESLintRC-style config object.\n * @returns {Object} A flag-config-style config object.\n */\n config(eslintrcConfig) {\n const eslintrcArray = this[cafactory].create(eslintrcConfig, {\n basePath: this.baseDirectory\n });\n\n const flatArray = [];\n let hasIgnorePatterns = false;\n\n eslintrcArray.forEach(configData => {\n if (configData.type === \"config\") {\n hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern;\n flatArray.push(...translateESLintRC(configData, {\n resolveConfigRelativeTo: path.join(this.baseDirectory, \"__placeholder.js\"),\n resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, \"__placeholder.js\"),\n pluginEnvironments: eslintrcArray.pluginEnvironments,\n pluginProcessors: eslintrcArray.pluginProcessors\n }));\n }\n });\n\n // combine ignorePatterns to emulate ESLintRC behavior better\n if (hasIgnorePatterns) {\n flatArray.unshift({\n ignores: [filePath => {\n\n // Compute the final config for this file.\n // This filters config array elements by `files`/`excludedFiles` then merges the elements.\n const finalConfig = eslintrcArray.extractConfig(filePath);\n\n // Test the `ignorePattern` properties of the final config.\n return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath);\n }]\n });\n }\n\n return flatArray;\n }\n\n /**\n * Translates the `env` section of an ESLintRC-style config.\n * @param {Object} envConfig The `env` section of an ESLintRC config.\n * @returns {Object[]} An array of flag-config objects representing the environments.\n */\n env(envConfig) {\n return this.config({\n env: envConfig\n });\n }\n\n /**\n * Translates the `extends` section of an ESLintRC-style config.\n * @param {...string} configsToExtend The names of the configs to load.\n * @returns {Object[]} An array of flag-config objects representing the config.\n */\n extends(...configsToExtend) {\n return this.config({\n extends: configsToExtend\n });\n }\n\n /**\n * Translates the `plugins` section of an ESLintRC-style config.\n * @param {...string} plugins The names of the plugins to load.\n * @returns {Object[]} An array of flag-config objects representing the plugins.\n */\n plugins(...plugins) {\n return this.config({\n plugins\n });\n }\n}\n\nexport { FlatCompat };\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport {\n ConfigArrayFactory,\n createContext as createConfigArrayFactoryContext,\n loadConfigFile\n} from \"./config-array-factory.js\";\n\nimport { CascadingConfigArrayFactory } from \"./cascading-config-array-factory.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array/index.js\";\nimport { ConfigDependency } from \"./config-array/config-dependency.js\";\nimport { ExtractedConfig } from \"./config-array/extracted-config.js\";\nimport { IgnorePattern } from \"./config-array/ignore-pattern.js\";\nimport { OverrideTester } from \"./config-array/override-tester.js\";\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport { FlatCompat } from \"./flat-compat.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n ConfigArray,\n createConfigArrayFactoryContext,\n CascadingConfigArrayFactory,\n ConfigArrayFactory,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs,\n environments,\n loadConfigFile,\n\n // shared\n ConfigOps,\n ConfigValidator,\n ModuleResolver,\n naming\n};\n\nexport {\n\n Legacy,\n\n FlatCompat\n\n};\n"],"names":["debug","debugOrig","path","ignore","assert","internalSlotsMap","util","minimatch","Ajv","globals","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal","Module","require","createRequire","fs","stripComments","importFresh","ModuleResolver.resolve","naming.normalizePackageName","naming.getShorthandName","os","createDebug","createConfigArrayFactoryContext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AC,EAAE,WAAW,CAAC,EAAE,CAAC;AACxF,yBAAyB;AACzB,qBAAqB,CAAC;AACtB,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,KAAK;AACL;;AC5nCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkBA;AACA,MAAMA,OAAK,GAAGC,6BAAS,CAAC,yCAAyC,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC;AAC/B,IAAI,kBAAkB;AACtB,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,GAAG;AACP,IAAI,SAAS;AACb,CAAC,EAAE;AACH,IAAI,MAAM,eAAe,GAAG,kBAAkB,CAAC,MAAM;AACrD,QAAQ,cAAc;AACtB,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE;AAC9B,KAAK,CAAC;AACN;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM;AACrD,QAAQ,EAAE,cAAc,EAAE,aAAa,CAAC,eAAe,EAAE;AACzD,QAAQ,EAAE,IAAI,EAAE,sBAAsB,EAAE;AACxC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACV;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3C,QAAQ,eA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AAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO;AACnB,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;AC3TA;AACA;AACA;AACA;AAuBA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,WAAW;AACf,qCAAIqB,aAA+B;AACnC,IAAI,2BAA2B;AAC/B,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,uBAAuB;AAC3B,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,MAAM;AACV;;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint/eslintrc/lib/config-array-factory.js b/node_modules/@eslint/eslintrc/lib/config-array-factory.js index 58c1e808..e4b18ebd 100644 --- a/node_modules/@eslint/eslintrc/lib/config-array-factory.js +++ b/node_modules/@eslint/eslintrc/lib/config-array-factory.js @@ -1148,4 +1148,8 @@ class ConfigArrayFactory { } } -export { ConfigArrayFactory, createContext }; +export { + ConfigArrayFactory, + createContext, + loadConfigFile +}; diff --git a/node_modules/@eslint/eslintrc/lib/config-array/config-array.js b/node_modules/@eslint/eslintrc/lib/config-array/config-array.js index 133f5a24..5766fc46 100644 --- a/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +++ b/node_modules/@eslint/eslintrc/lib/config-array/config-array.js @@ -319,31 +319,18 @@ function createConfig(instance, indices) { * @param {string} pluginId The plugin ID for prefix. * @param {Record} defs The definitions to collect. * @param {Map} map The map to output. - * @param {function(T): U} [normalize] The normalize function for each value. * @returns {void} */ -function collect(pluginId, defs, map, normalize) { +function collect(pluginId, defs, map) { if (defs) { const prefix = pluginId && `${pluginId}/`; for (const [key, value] of Object.entries(defs)) { - map.set( - `${prefix}${key}`, - normalize ? normalize(value) : value - ); + map.set(`${prefix}${key}`, value); } } } -/** - * Normalize a rule definition. - * @param {Function|Rule} rule The rule definition to normalize. - * @returns {Rule} The normalized rule definition. - */ -function normalizePluginRule(rule) { - return typeof rule === "function" ? { create: rule } : rule; -} - /** * Delete the mutation methods from a given map. * @param {Map} map The map object to delete. @@ -385,7 +372,7 @@ function initPluginMemberMaps(elements, slots) { collect(pluginId, plugin.environments, slots.envMap); collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap, normalizePluginRule); + collect(pluginId, plugin.rules, slots.ruleMap); } } diff --git a/node_modules/@eslint/eslintrc/lib/index.js b/node_modules/@eslint/eslintrc/lib/index.js index 9e3d13f5..a37e5746 100644 --- a/node_modules/@eslint/eslintrc/lib/index.js +++ b/node_modules/@eslint/eslintrc/lib/index.js @@ -8,7 +8,8 @@ import { ConfigArrayFactory, - createContext as createConfigArrayFactoryContext + createContext as createConfigArrayFactoryContext, + loadConfigFile } from "./config-array-factory.js"; import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js"; @@ -39,6 +40,7 @@ const Legacy = { OverrideTester, getUsedExtractedConfigs, environments, + loadConfigFile, // shared ConfigOps, diff --git a/node_modules/@eslint/eslintrc/lib/shared/config-validator.js b/node_modules/@eslint/eslintrc/lib/shared/config-validator.js index 32174a56..0829bf9d 100644 --- a/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +++ b/node_modules/@eslint/eslintrc/lib/shared/config-validator.js @@ -5,6 +5,12 @@ /* eslint class-methods-use-this: "off" */ +//------------------------------------------------------------------------------ +// Typedefs +//------------------------------------------------------------------------------ + +/** @typedef {import("../shared/types").Rule} Rule */ + //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ @@ -13,6 +19,7 @@ import util from "util"; import * as ConfigOps from "./config-ops.js"; import { emitDeprecationWarning } from "./deprecation-warnings.js"; import ajvOrig from "./ajv.js"; +import { deepMergeArrays } from "./deep-merge-arrays.js"; import configSchema from "../../conf/config-schema.js"; import BuiltInEnvironments from "../../conf/environments.js"; @@ -33,6 +40,13 @@ const severityMap = { const validated = new WeakSet(); +// JSON schema that disallows passing any options +const noOptionsSchema = Object.freeze({ + type: "array", + minItems: 0, + maxItems: 0 +}); + //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- @@ -44,17 +58,36 @@ export default class ConfigValidator { /** * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. + * @param {Rule} rule A rule object + * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. + * @returns {Object|null} JSON Schema for the rule's options. + * `null` if rule wasn't passed or its `meta.schema` is `false`. */ getRuleOptionsSchema(rule) { if (!rule) { return null; } - const schema = rule.schema || rule.meta && rule.meta.schema; + if (!rule.meta) { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + const schema = rule.meta.schema; + + if (typeof schema === "undefined") { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + // `schema:false` is an allowed explicit opt-out of options validation for the rule + if (schema === false) { + return null; + } - // Given a tuple of schemas, insert warning level at the beginning + if (typeof schema !== "object" || schema === null) { + throw new TypeError("Rule's `meta.schema` must be an array or object"); + } + + // ESLint-specific array form needs to be converted into a valid JSON Schema definition if (Array.isArray(schema)) { if (schema.length) { return { @@ -64,16 +97,13 @@ export default class ConfigValidator { maxItems: schema.length }; } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; + // `schema:[]` is an explicit way to specify that the rule does not accept any options + return { ...noOptionsSchema }; } - // Given a full schema, leave it alone - return schema || null; + // `schema:` is assumed to be a valid JSON Schema definition + return schema; } /** @@ -101,17 +131,28 @@ export default class ConfigValidator { */ validateRuleSchema(rule, localOptions) { if (!ruleValidators.has(rule)) { - const schema = this.getRuleOptionsSchema(rule); + try { + const schema = this.getRuleOptionsSchema(rule); + + if (schema) { + ruleValidators.set(rule, ajv.compile(schema)); + } + } catch (err) { + const errorWithCode = new Error(err.message, { cause: err }); + + errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); + throw errorWithCode; } } const validateRule = ruleValidators.get(rule); if (validateRule) { - validateRule(localOptions); + const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); + + validateRule(mergedOptions); + if (validateRule.errors) { throw new Error(validateRule.errors.map( error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` @@ -137,13 +178,21 @@ export default class ConfigValidator { this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); } } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; + let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" + ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` + : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); + enhancedMessage = `${source}:\n\t${enhancedMessage}`; } + + const enhancedError = new Error(enhancedMessage, { cause: err }); + + if (err.code) { + enhancedError.code = err.code; + } + + throw enhancedError; } } diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/deep-merge-arrays.js b/node_modules/@eslint/eslintrc/lib/shared/deep-merge-arrays.js similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/deep-merge-arrays.js rename to node_modules/@eslint/eslintrc/lib/shared/deep-merge-arrays.js diff --git a/node_modules/@eslint/eslintrc/package.json b/node_modules/@eslint/eslintrc/package.json index aa43e756..dac77b45 100644 --- a/node_modules/@eslint/eslintrc/package.json +++ b/node_modules/@eslint/eslintrc/package.json @@ -1,6 +1,6 @@ { "name": "@eslint/eslintrc", - "version": "2.1.4", + "version": "3.2.0", "description": "The legacy ESLintRC config file format for ESLint", "type": "module", "main": "./dist/eslintrc.cjs", @@ -61,15 +61,15 @@ "fs-teardown": "^0.1.3", "mocha": "^9.0.3", "rollup": "^2.70.1", - "shelljs": "^0.8.4", + "shelljs": "^0.8.5", "sinon": "^11.1.2", "temp-dir": "^2.0.0" }, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -77,6 +77,6 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } } diff --git a/node_modules/@eslint/js/README.md b/node_modules/@eslint/js/README.md index a8121c3a..04fc5b2a 100644 --- a/node_modules/@eslint/js/README.md +++ b/node_modules/@eslint/js/README.md @@ -28,12 +28,14 @@ export default [ // apply recommended rules to JS files { + name: "your-project/recommended-rules", files: ["**/*.js"], rules: js.configs.recommended.rules }, // apply recommended rules to JS files with an override { + name: "your-project/recommended-rules-with-override", files: ["**/*.js"], rules: { ...js.configs.recommended.rules, @@ -43,6 +45,7 @@ export default [ // apply all rules to JS files { + name: "your-project/all-rules", files: ["**/*.js"], rules: { ...js.configs.all.rules, diff --git a/node_modules/@eslint/js/package.json b/node_modules/@eslint/js/package.json index e9ec6a28..a151eafe 100644 --- a/node_modules/@eslint/js/package.json +++ b/node_modules/@eslint/js/package.json @@ -1,13 +1,17 @@ { "name": "@eslint/js", - "version": "8.57.1", + "version": "9.16.0", "description": "ESLint JavaScript language implementation", "main": "./src/index.js", - "scripts": {}, + "types": "./types/index.d.ts", + "scripts": { + "test:types": "tsc -p tests/types/tsconfig.json" + }, "files": [ "LICENSE", "README.md", - "src" + "src", + "types" ], "publishConfig": { "access": "public" @@ -26,6 +30,6 @@ ], "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } } diff --git a/node_modules/@eslint/js/src/configs/eslint-all.js b/node_modules/@eslint/js/src/configs/eslint-all.js index f2f7a664..e7f4e0e3 100644 --- a/node_modules/@eslint/js/src/configs/eslint-all.js +++ b/node_modules/@eslint/js/src/configs/eslint-all.js @@ -6,6 +6,14 @@ /* eslint quote-props: off -- autogenerated so don't lint */ +/* + * IMPORTANT! + * + * We cannot add a "name" property to this object because it's still used in eslintrc + * which doesn't support the "name" property. If we add a "name" property, it will + * cause an error. + */ + module.exports = Object.freeze({ "rules": { "accessor-pairs": "error", @@ -36,7 +44,6 @@ module.exports = Object.freeze({ "id-length": "error", "id-match": "error", "init-declarations": "error", - "line-comment-position": "error", "logical-assignment-operators": "error", "max-classes-per-file": "error", "max-depth": "error", @@ -45,7 +52,6 @@ module.exports = Object.freeze({ "max-nested-callbacks": "error", "max-params": "error", "max-statements": "error", - "multiline-comment-style": "error", "new-cap": "error", "no-alert": "error", "no-array-constructor": "error", @@ -114,7 +120,6 @@ module.exports = Object.freeze({ "no-new": "error", "no-new-func": "error", "no-new-native-nonconstructor": "error", - "no-new-symbol": "error", "no-new-wrappers": "error", "no-nonoctal-decimal-escape": "error", "no-obj-calls": "error", @@ -163,6 +168,7 @@ module.exports = Object.freeze({ "no-unused-private-class-members": "error", "no-unused-vars": "error", "no-use-before-define": "error", + "no-useless-assignment": "error", "no-useless-backreference": "error", "no-useless-call": "error", "no-useless-catch": "error", diff --git a/node_modules/@eslint/js/src/configs/eslint-recommended.js b/node_modules/@eslint/js/src/configs/eslint-recommended.js index 248c613c..3559267e 100644 --- a/node_modules/@eslint/js/src/configs/eslint-recommended.js +++ b/node_modules/@eslint/js/src/configs/eslint-recommended.js @@ -8,7 +8,14 @@ /* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */ -/** @type {import("../lib/shared/types").ConfigData} */ +/* + * IMPORTANT! + * + * We cannot add a "name" property to this object because it's still used in eslintrc + * which doesn't support the "name" property. If we add a "name" property, it will + * cause an error. + */ + module.exports = Object.freeze({ rules: Object.freeze({ "constructor-super": "error", @@ -20,6 +27,7 @@ module.exports = Object.freeze({ "no-compare-neg-zero": "error", "no-cond-assign": "error", "no-const-assign": "error", + "no-constant-binary-expression": "error", "no-constant-condition": "error", "no-control-regex": "error", "no-debugger": "error", @@ -32,20 +40,18 @@ module.exports = Object.freeze({ "no-empty": "error", "no-empty-character-class": "error", "no-empty-pattern": "error", + "no-empty-static-block": "error", "no-ex-assign": "error", "no-extra-boolean-cast": "error", - "no-extra-semi": "error", "no-fallthrough": "error", "no-func-assign": "error", "no-global-assign": "error", "no-import-assign": "error", - "no-inner-declarations": "error", "no-invalid-regexp": "error", "no-irregular-whitespace": "error", "no-loss-of-precision": "error", "no-misleading-character-class": "error", - "no-mixed-spaces-and-tabs": "error", - "no-new-symbol": "error", + "no-new-native-nonconstructor": "error", "no-nonoctal-decimal-escape": "error", "no-obj-calls": "error", "no-octal": "error", @@ -64,6 +70,7 @@ module.exports = Object.freeze({ "no-unsafe-negation": "error", "no-unsafe-optional-chaining": "error", "no-unused-labels": "error", + "no-unused-private-class-members": "error", "no-unused-vars": "error", "no-useless-backreference": "error", "no-useless-catch": "error", diff --git a/node_modules/@eslint/js/src/index.js b/node_modules/@eslint/js/src/index.js index 0d4be486..f58dd798 100644 --- a/node_modules/@eslint/js/src/index.js +++ b/node_modules/@eslint/js/src/index.js @@ -5,11 +5,17 @@ "use strict"; +const { version } = require("../package.json"); + //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ module.exports = { + meta: { + name: "@eslint/js", + version + }, configs: { all: require("./configs/eslint-all"), recommended: require("./configs/eslint-recommended") diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/types/index.d.ts b/node_modules/@eslint/js/types/index.d.ts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/@eslint/js/types/index.d.ts rename to node_modules/@eslint/js/types/index.d.ts diff --git a/node_modules/@eslint/object-schema/LICENSE b/node_modules/@eslint/object-schema/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@eslint/object-schema/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@eslint/object-schema/README.md b/node_modules/@eslint/object-schema/README.md new file mode 100644 index 00000000..ff1d3063 --- /dev/null +++ b/node_modules/@eslint/object-schema/README.md @@ -0,0 +1,237 @@ +# ObjectSchema Package + +## Overview + +A JavaScript object merge/validation utility where you can define a different merge and validation strategy for each key. This is helpful when you need to validate complex data structures and then merge them in a way that is more complex than `Object.assign()`. This is used in the [`@eslint/config-array`](https://npmjs.com/package/@eslint/config-array) package but can also be used on its own. + +## Installation + +For Node.js and compatible runtimes: + +```shell +npm install @eslint/object-schema +# or +yarn add @eslint/object-schema +# or +pnpm install @eslint/object-schema +# or +bun install @eslint/object-schema +``` + +For Deno: + +```shell +deno add @eslint/object-schema +``` + +## Usage + +Import the `ObjectSchema` constructor: + +```js +// using ESM +import { ObjectSchema } from "@eslint/object-schema"; + +// using CommonJS +const { ObjectSchema } = require("@eslint/object-schema"); + +const schema = new ObjectSchema({ + // define a definition for the "downloads" key + downloads: { + required: true, + merge(value1, value2) { + return value1 + value2; + }, + validate(value) { + if (typeof value !== "number") { + throw new Error("Expected downloads to be a number."); + } + }, + }, + + // define a strategy for the "versions" key + version: { + required: true, + merge(value1, value2) { + return value1.concat(value2); + }, + validate(value) { + if (!Array.isArray(value)) { + throw new Error("Expected versions to be an array."); + } + }, + }, +}); + +const record1 = { + downloads: 25, + versions: ["v1.0.0", "v1.1.0", "v1.2.0"], +}; + +const record2 = { + downloads: 125, + versions: ["v2.0.0", "v2.1.0", "v3.0.0"], +}; + +// make sure the records are valid +schema.validate(record1); +schema.validate(record2); + +// merge together (schema.merge() accepts any number of objects) +const result = schema.merge(record1, record2); + +// result looks like this: + +const result = { + downloads: 75, + versions: ["v1.0.0", "v1.1.0", "v1.2.0", "v2.0.0", "v2.1.0", "v3.0.0"], +}; +``` + +## Tips and Tricks + +### Named merge strategies + +Instead of specifying a `merge()` method, you can specify one of the following strings to use a default merge strategy: + +- `"assign"` - use `Object.assign()` to merge the two values into one object. +- `"overwrite"` - the second value always replaces the first. +- `"replace"` - the second value replaces the first if the second is not `undefined`. + +For example: + +```js +const schema = new ObjectSchema({ + name: { + merge: "replace", + validate() {}, + }, +}); +``` + +### Named validation strategies + +Instead of specifying a `validate()` method, you can specify one of the following strings to use a default validation strategy: + +- `"array"` - value must be an array. +- `"boolean"` - value must be a boolean. +- `"number"` - value must be a number. +- `"object"` - value must be an object. +- `"object?"` - value must be an object or null. +- `"string"` - value must be a string. +- `"string!"` - value must be a non-empty string. + +For example: + +```js +const schema = new ObjectSchema({ + name: { + merge: "replace", + validate: "string", + }, +}); +``` + +### Subschemas + +If you are defining a key that is, itself, an object, you can simplify the process by using a subschema. Instead of defining `merge()` and `validate()`, assign a `schema` key that contains a schema definition, like this: + +```js +const schema = new ObjectSchema({ + name: { + schema: { + first: { + merge: "replace", + validate: "string", + }, + last: { + merge: "replace", + validate: "string", + }, + }, + }, +}); + +schema.validate({ + name: { + first: "n", + last: "z", + }, +}); +``` + +### Remove Keys During Merge + +If the merge strategy for a key returns `undefined`, then the key will not appear in the final object. For example: + +```js +const schema = new ObjectSchema({ + date: { + merge() { + return undefined; + }, + validate(value) { + Date.parse(value); // throws an error when invalid + }, + }, +}); + +const object1 = { date: "5/5/2005" }; +const object2 = { date: "6/6/2006" }; + +const result = schema.merge(object1, object2); + +console.log("date" in result); // false +``` + +### Requiring Another Key Be Present + +If you'd like the presence of one key to require the presence of another key, you can use the `requires` property to specify an array of other properties that any key requires. For example: + +```js +const schema = new ObjectSchema(); + +const schema = new ObjectSchema({ + date: { + merge() { + return undefined; + }, + validate(value) { + Date.parse(value); // throws an error when invalid + }, + }, + time: { + requires: ["date"], + merge(first, second) { + return second; + }, + validate(value) { + // ... + }, + }, +}); + +// throws error: Key "time" requires keys "date" +schema.validate({ + time: "13:45", +}); +``` + +In this example, even though `date` is an optional key, it is required to be present whenever `time` is present. + +## License + +Apache 2.0 + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. + + + +

Platinum Sponsors

+

Automattic

Gold Sponsors

+

Eli Schleifer Salesforce Airbnb

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

notion Anagram Solver Icons8 Discord Ignition Nx HeroCoders

+ diff --git a/node_modules/@eslint/object-schema/dist/cjs/index.cjs b/node_modules/@eslint/object-schema/dist/cjs/index.cjs new file mode 100644 index 00000000..a9687a5f --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/cjs/index.cjs @@ -0,0 +1,455 @@ +'use strict'; + +/** + * @fileoverview Merge Strategy + */ + +//----------------------------------------------------------------------------- +// Class +//----------------------------------------------------------------------------- + +/** + * Container class for several different merge strategies. + */ +class MergeStrategy { + /** + * Merges two keys by overwriting the first with the second. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value. + */ + static overwrite(value1, value2) { + return value2; + } + + /** + * Merges two keys by replacing the first with the second only if the + * second is defined. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value if it is defined. + */ + static replace(value1, value2) { + if (typeof value2 !== "undefined") { + return value2; + } + + return value1; + } + + /** + * Merges two properties by assigning properties from the second to the first. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} A new object containing properties from both value1 and + * value2. + */ + static assign(value1, value2) { + return Object.assign({}, value1, value2); + } +} + +/** + * @fileoverview Validation Strategy + */ + +//----------------------------------------------------------------------------- +// Class +//----------------------------------------------------------------------------- + +/** + * Container class for several different validation strategies. + */ +class ValidationStrategy { + /** + * Validates that a value is an array. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static array(value) { + if (!Array.isArray(value)) { + throw new TypeError("Expected an array."); + } + } + + /** + * Validates that a value is a boolean. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static boolean(value) { + if (typeof value !== "boolean") { + throw new TypeError("Expected a Boolean."); + } + } + + /** + * Validates that a value is a number. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static number(value) { + if (typeof value !== "number") { + throw new TypeError("Expected a number."); + } + } + + /** + * Validates that a value is a object. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static object(value) { + if (!value || typeof value !== "object") { + throw new TypeError("Expected an object."); + } + } + + /** + * Validates that a value is a object or null. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "object?"(value) { + if (typeof value !== "object") { + throw new TypeError("Expected an object or null."); + } + } + + /** + * Validates that a value is a string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static string(value) { + if (typeof value !== "string") { + throw new TypeError("Expected a string."); + } + } + + /** + * Validates that a value is a non-empty string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "string!"(value) { + if (typeof value !== "string" || value.length === 0) { + throw new TypeError("Expected a non-empty string."); + } + } +} + +/** + * @fileoverview Object Schema + */ + + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("./types.ts").ObjectDefinition} ObjectDefinition */ +/** @typedef {import("./types.ts").PropertyDefinition} PropertyDefinition */ + +//----------------------------------------------------------------------------- +// Private +//----------------------------------------------------------------------------- + +/** + * Validates a schema strategy. + * @param {string} name The name of the key this strategy is for. + * @param {PropertyDefinition} definition The strategy for the object key. + * @returns {void} + * @throws {Error} When the strategy is missing a name. + * @throws {Error} When the strategy is missing a merge() method. + * @throws {Error} When the strategy is missing a validate() method. + */ +function validateDefinition(name, definition) { + let hasSchema = false; + if (definition.schema) { + if (typeof definition.schema === "object") { + hasSchema = true; + } else { + throw new TypeError("Schema must be an object."); + } + } + + if (typeof definition.merge === "string") { + if (!(definition.merge in MergeStrategy)) { + throw new TypeError( + `Definition for key "${name}" missing valid merge strategy.`, + ); + } + } else if (!hasSchema && typeof definition.merge !== "function") { + throw new TypeError( + `Definition for key "${name}" must have a merge property.`, + ); + } + + if (typeof definition.validate === "string") { + if (!(definition.validate in ValidationStrategy)) { + throw new TypeError( + `Definition for key "${name}" missing valid validation strategy.`, + ); + } + } else if (!hasSchema && typeof definition.validate !== "function") { + throw new TypeError( + `Definition for key "${name}" must have a validate() method.`, + ); + } +} + +//----------------------------------------------------------------------------- +// Errors +//----------------------------------------------------------------------------- + +/** + * Error when an unexpected key is found. + */ +class UnexpectedKeyError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was unexpected. + */ + constructor(key) { + super(`Unexpected key "${key}" found.`); + } +} + +/** + * Error when a required key is missing. + */ +class MissingKeyError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was missing. + */ + constructor(key) { + super(`Missing required key "${key}".`); + } +} + +/** + * Error when a key requires other keys that are missing. + */ +class MissingDependentKeysError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was unexpected. + * @param {Array} requiredKeys The keys that are required. + */ + constructor(key, requiredKeys) { + super(`Key "${key}" requires keys "${requiredKeys.join('", "')}".`); + } +} + +/** + * Wrapper error for errors occuring during a merge or validate operation. + */ +class WrapperError extends Error { + /** + * Creates a new instance. + * @param {string} key The object key causing the error. + * @param {Error} source The source error. + */ + constructor(key, source) { + super(`Key "${key}": ${source.message}`, { cause: source }); + + // copy over custom properties that aren't represented + for (const sourceKey of Object.keys(source)) { + if (!(sourceKey in this)) { + this[sourceKey] = source[sourceKey]; + } + } + } +} + +//----------------------------------------------------------------------------- +// Main +//----------------------------------------------------------------------------- + +/** + * Represents an object validation/merging schema. + */ +class ObjectSchema { + /** + * Track all definitions in the schema by key. + * @type {Map} + */ + #definitions = new Map(); + + /** + * Separately track any keys that are required for faster validtion. + * @type {Map} + */ + #requiredKeys = new Map(); + + /** + * Creates a new instance. + * @param {ObjectDefinition} definitions The schema definitions. + */ + constructor(definitions) { + if (!definitions) { + throw new Error("Schema definitions missing."); + } + + // add in all strategies + for (const key of Object.keys(definitions)) { + validateDefinition(key, definitions[key]); + + // normalize merge and validate methods if subschema is present + if (typeof definitions[key].schema === "object") { + const schema = new ObjectSchema(definitions[key].schema); + definitions[key] = { + ...definitions[key], + merge(first = {}, second = {}) { + return schema.merge(first, second); + }, + validate(value) { + ValidationStrategy.object(value); + schema.validate(value); + }, + }; + } + + // normalize the merge method in case there's a string + if (typeof definitions[key].merge === "string") { + definitions[key] = { + ...definitions[key], + merge: MergeStrategy[ + /** @type {string} */ (definitions[key].merge) + ], + }; + } + + // normalize the validate method in case there's a string + if (typeof definitions[key].validate === "string") { + definitions[key] = { + ...definitions[key], + validate: + ValidationStrategy[ + /** @type {string} */ (definitions[key].validate) + ], + }; + } + + this.#definitions.set(key, definitions[key]); + + if (definitions[key].required) { + this.#requiredKeys.set(key, definitions[key]); + } + } + } + + /** + * Determines if a strategy has been registered for the given object key. + * @param {string} key The object key to find a strategy for. + * @returns {boolean} True if the key has a strategy registered, false if not. + */ + hasKey(key) { + return this.#definitions.has(key); + } + + /** + * Merges objects together to create a new object comprised of the keys + * of the all objects. Keys are merged based on the each key's merge + * strategy. + * @param {...Object} objects The objects to merge. + * @returns {Object} A new object with a mix of all objects' keys. + * @throws {Error} If any object is invalid. + */ + merge(...objects) { + // double check arguments + if (objects.length < 2) { + throw new TypeError("merge() requires at least two arguments."); + } + + if ( + objects.some( + object => object === null || typeof object !== "object", + ) + ) { + throw new TypeError("All arguments must be objects."); + } + + return objects.reduce((result, object) => { + this.validate(object); + + for (const [key, strategy] of this.#definitions) { + try { + if (key in result || key in object) { + const merge = /** @type {Function} */ (strategy.merge); + const value = merge.call( + this, + result[key], + object[key], + ); + if (value !== undefined) { + result[key] = value; + } + } + } catch (ex) { + throw new WrapperError(key, ex); + } + } + return result; + }, {}); + } + + /** + * Validates an object's keys based on the validate strategy for each key. + * @param {Object} object The object to validate. + * @returns {void} + * @throws {Error} When the object is invalid. + */ + validate(object) { + // check existing keys first + for (const key of Object.keys(object)) { + // check to see if the key is defined + if (!this.hasKey(key)) { + throw new UnexpectedKeyError(key); + } + + // validate existing keys + const definition = this.#definitions.get(key); + + // first check to see if any other keys are required + if (Array.isArray(definition.requires)) { + if ( + !definition.requires.every(otherKey => otherKey in object) + ) { + throw new MissingDependentKeysError( + key, + definition.requires, + ); + } + } + + // now apply remaining validation strategy + try { + const validate = /** @type {Function} */ (definition.validate); + validate.call(definition, object[key]); + } catch (ex) { + throw new WrapperError(key, ex); + } + } + + // ensure required keys aren't missing + for (const [key] of this.#requiredKeys) { + if (!(key in object)) { + throw new MissingKeyError(key); + } + } + } +} + +exports.MergeStrategy = MergeStrategy; +exports.ObjectSchema = ObjectSchema; +exports.ValidationStrategy = ValidationStrategy; diff --git a/node_modules/@eslint/object-schema/dist/cjs/index.d.cts b/node_modules/@eslint/object-schema/dist/cjs/index.d.cts new file mode 100644 index 00000000..0775e9a6 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/cjs/index.d.cts @@ -0,0 +1,123 @@ +export type ObjectDefinition = import("./types.ts").ObjectDefinition; +export type PropertyDefinition = import("./types.ts").PropertyDefinition; +/** + * @fileoverview Merge Strategy + */ +/** + * Container class for several different merge strategies. + */ +export class MergeStrategy { + /** + * Merges two keys by overwriting the first with the second. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value. + */ + static overwrite(value1: any, value2: any): any; + /** + * Merges two keys by replacing the first with the second only if the + * second is defined. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value if it is defined. + */ + static replace(value1: any, value2: any): any; + /** + * Merges two properties by assigning properties from the second to the first. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} A new object containing properties from both value1 and + * value2. + */ + static assign(value1: any, value2: any): any; +} +/** + * Represents an object validation/merging schema. + */ +export class ObjectSchema { + /** + * Creates a new instance. + * @param {ObjectDefinition} definitions The schema definitions. + */ + constructor(definitions: ObjectDefinition); + /** + * Determines if a strategy has been registered for the given object key. + * @param {string} key The object key to find a strategy for. + * @returns {boolean} True if the key has a strategy registered, false if not. + */ + hasKey(key: string): boolean; + /** + * Merges objects together to create a new object comprised of the keys + * of the all objects. Keys are merged based on the each key's merge + * strategy. + * @param {...Object} objects The objects to merge. + * @returns {Object} A new object with a mix of all objects' keys. + * @throws {Error} If any object is invalid. + */ + merge(...objects: any[]): any; + /** + * Validates an object's keys based on the validate strategy for each key. + * @param {Object} object The object to validate. + * @returns {void} + * @throws {Error} When the object is invalid. + */ + validate(object: any): void; + #private; +} +/** + * @fileoverview Validation Strategy + */ +/** + * Container class for several different validation strategies. + */ +export class ValidationStrategy { + /** + * Validates that a value is an array. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static array(value: any): void; + /** + * Validates that a value is a boolean. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static boolean(value: any): void; + /** + * Validates that a value is a number. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static number(value: any): void; + /** + * Validates that a value is a object. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static object(value: any): void; + /** + * Validates that a value is a object or null. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "object?"(value: any): void; + /** + * Validates that a value is a string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static string(value: any): void; + /** + * Validates that a value is a non-empty string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "string!"(value: any): void; +} diff --git a/node_modules/@eslint/object-schema/dist/cjs/types.ts b/node_modules/@eslint/object-schema/dist/cjs/types.ts new file mode 100644 index 00000000..a4ca9a01 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/cjs/types.ts @@ -0,0 +1,55 @@ +/** + * @fileoverview Types for object-schema package. + */ + +/** + * Built-in validation strategies. + */ +export type BuiltInValidationStrategy = + | "array" + | "boolean" + | "number" + | "object" + | "object?" + | "string" + | "string!"; + +/** + * Built-in merge strategies. + */ +export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; + +/** + * Property definition. + */ +export interface PropertyDefinition { + /** + * Indicates if the property is required. + */ + required: boolean; + + /** + * The other properties that must be present when this property is used. + */ + requires?: string[]; + + /** + * The strategy to merge the property. + */ + merge: BuiltInMergeStrategy | ((target: any, source: any) => any); + + /** + * The strategy to validate the property. + */ + validate: BuiltInValidationStrategy | ((value: any) => void); + + /** + * The schema for the object value of this property. + */ + schema?: ObjectDefinition; +} + +/** + * Object definition. + */ +export type ObjectDefinition = Record; diff --git a/node_modules/@eslint/object-schema/dist/esm/index.d.ts b/node_modules/@eslint/object-schema/dist/esm/index.d.ts new file mode 100644 index 00000000..0775e9a6 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/esm/index.d.ts @@ -0,0 +1,123 @@ +export type ObjectDefinition = import("./types.ts").ObjectDefinition; +export type PropertyDefinition = import("./types.ts").PropertyDefinition; +/** + * @fileoverview Merge Strategy + */ +/** + * Container class for several different merge strategies. + */ +export class MergeStrategy { + /** + * Merges two keys by overwriting the first with the second. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value. + */ + static overwrite(value1: any, value2: any): any; + /** + * Merges two keys by replacing the first with the second only if the + * second is defined. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value if it is defined. + */ + static replace(value1: any, value2: any): any; + /** + * Merges two properties by assigning properties from the second to the first. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} A new object containing properties from both value1 and + * value2. + */ + static assign(value1: any, value2: any): any; +} +/** + * Represents an object validation/merging schema. + */ +export class ObjectSchema { + /** + * Creates a new instance. + * @param {ObjectDefinition} definitions The schema definitions. + */ + constructor(definitions: ObjectDefinition); + /** + * Determines if a strategy has been registered for the given object key. + * @param {string} key The object key to find a strategy for. + * @returns {boolean} True if the key has a strategy registered, false if not. + */ + hasKey(key: string): boolean; + /** + * Merges objects together to create a new object comprised of the keys + * of the all objects. Keys are merged based on the each key's merge + * strategy. + * @param {...Object} objects The objects to merge. + * @returns {Object} A new object with a mix of all objects' keys. + * @throws {Error} If any object is invalid. + */ + merge(...objects: any[]): any; + /** + * Validates an object's keys based on the validate strategy for each key. + * @param {Object} object The object to validate. + * @returns {void} + * @throws {Error} When the object is invalid. + */ + validate(object: any): void; + #private; +} +/** + * @fileoverview Validation Strategy + */ +/** + * Container class for several different validation strategies. + */ +export class ValidationStrategy { + /** + * Validates that a value is an array. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static array(value: any): void; + /** + * Validates that a value is a boolean. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static boolean(value: any): void; + /** + * Validates that a value is a number. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static number(value: any): void; + /** + * Validates that a value is a object. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static object(value: any): void; + /** + * Validates that a value is a object or null. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "object?"(value: any): void; + /** + * Validates that a value is a string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static string(value: any): void; + /** + * Validates that a value is a non-empty string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "string!"(value: any): void; +} diff --git a/node_modules/@eslint/object-schema/dist/esm/index.js b/node_modules/@eslint/object-schema/dist/esm/index.js new file mode 100644 index 00000000..2e7bcd42 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/esm/index.js @@ -0,0 +1,452 @@ +// @ts-self-types="./index.d.ts" +/** + * @fileoverview Merge Strategy + */ + +//----------------------------------------------------------------------------- +// Class +//----------------------------------------------------------------------------- + +/** + * Container class for several different merge strategies. + */ +class MergeStrategy { + /** + * Merges two keys by overwriting the first with the second. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value. + */ + static overwrite(value1, value2) { + return value2; + } + + /** + * Merges two keys by replacing the first with the second only if the + * second is defined. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} The second value if it is defined. + */ + static replace(value1, value2) { + if (typeof value2 !== "undefined") { + return value2; + } + + return value1; + } + + /** + * Merges two properties by assigning properties from the second to the first. + * @param {*} value1 The value from the first object key. + * @param {*} value2 The value from the second object key. + * @returns {*} A new object containing properties from both value1 and + * value2. + */ + static assign(value1, value2) { + return Object.assign({}, value1, value2); + } +} + +/** + * @fileoverview Validation Strategy + */ + +//----------------------------------------------------------------------------- +// Class +//----------------------------------------------------------------------------- + +/** + * Container class for several different validation strategies. + */ +class ValidationStrategy { + /** + * Validates that a value is an array. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static array(value) { + if (!Array.isArray(value)) { + throw new TypeError("Expected an array."); + } + } + + /** + * Validates that a value is a boolean. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static boolean(value) { + if (typeof value !== "boolean") { + throw new TypeError("Expected a Boolean."); + } + } + + /** + * Validates that a value is a number. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static number(value) { + if (typeof value !== "number") { + throw new TypeError("Expected a number."); + } + } + + /** + * Validates that a value is a object. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static object(value) { + if (!value || typeof value !== "object") { + throw new TypeError("Expected an object."); + } + } + + /** + * Validates that a value is a object or null. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "object?"(value) { + if (typeof value !== "object") { + throw new TypeError("Expected an object or null."); + } + } + + /** + * Validates that a value is a string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static string(value) { + if (typeof value !== "string") { + throw new TypeError("Expected a string."); + } + } + + /** + * Validates that a value is a non-empty string. + * @param {*} value The value to validate. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ + static "string!"(value) { + if (typeof value !== "string" || value.length === 0) { + throw new TypeError("Expected a non-empty string."); + } + } +} + +/** + * @fileoverview Object Schema + */ + + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("./types.ts").ObjectDefinition} ObjectDefinition */ +/** @typedef {import("./types.ts").PropertyDefinition} PropertyDefinition */ + +//----------------------------------------------------------------------------- +// Private +//----------------------------------------------------------------------------- + +/** + * Validates a schema strategy. + * @param {string} name The name of the key this strategy is for. + * @param {PropertyDefinition} definition The strategy for the object key. + * @returns {void} + * @throws {Error} When the strategy is missing a name. + * @throws {Error} When the strategy is missing a merge() method. + * @throws {Error} When the strategy is missing a validate() method. + */ +function validateDefinition(name, definition) { + let hasSchema = false; + if (definition.schema) { + if (typeof definition.schema === "object") { + hasSchema = true; + } else { + throw new TypeError("Schema must be an object."); + } + } + + if (typeof definition.merge === "string") { + if (!(definition.merge in MergeStrategy)) { + throw new TypeError( + `Definition for key "${name}" missing valid merge strategy.`, + ); + } + } else if (!hasSchema && typeof definition.merge !== "function") { + throw new TypeError( + `Definition for key "${name}" must have a merge property.`, + ); + } + + if (typeof definition.validate === "string") { + if (!(definition.validate in ValidationStrategy)) { + throw new TypeError( + `Definition for key "${name}" missing valid validation strategy.`, + ); + } + } else if (!hasSchema && typeof definition.validate !== "function") { + throw new TypeError( + `Definition for key "${name}" must have a validate() method.`, + ); + } +} + +//----------------------------------------------------------------------------- +// Errors +//----------------------------------------------------------------------------- + +/** + * Error when an unexpected key is found. + */ +class UnexpectedKeyError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was unexpected. + */ + constructor(key) { + super(`Unexpected key "${key}" found.`); + } +} + +/** + * Error when a required key is missing. + */ +class MissingKeyError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was missing. + */ + constructor(key) { + super(`Missing required key "${key}".`); + } +} + +/** + * Error when a key requires other keys that are missing. + */ +class MissingDependentKeysError extends Error { + /** + * Creates a new instance. + * @param {string} key The key that was unexpected. + * @param {Array} requiredKeys The keys that are required. + */ + constructor(key, requiredKeys) { + super(`Key "${key}" requires keys "${requiredKeys.join('", "')}".`); + } +} + +/** + * Wrapper error for errors occuring during a merge or validate operation. + */ +class WrapperError extends Error { + /** + * Creates a new instance. + * @param {string} key The object key causing the error. + * @param {Error} source The source error. + */ + constructor(key, source) { + super(`Key "${key}": ${source.message}`, { cause: source }); + + // copy over custom properties that aren't represented + for (const sourceKey of Object.keys(source)) { + if (!(sourceKey in this)) { + this[sourceKey] = source[sourceKey]; + } + } + } +} + +//----------------------------------------------------------------------------- +// Main +//----------------------------------------------------------------------------- + +/** + * Represents an object validation/merging schema. + */ +class ObjectSchema { + /** + * Track all definitions in the schema by key. + * @type {Map} + */ + #definitions = new Map(); + + /** + * Separately track any keys that are required for faster validtion. + * @type {Map} + */ + #requiredKeys = new Map(); + + /** + * Creates a new instance. + * @param {ObjectDefinition} definitions The schema definitions. + */ + constructor(definitions) { + if (!definitions) { + throw new Error("Schema definitions missing."); + } + + // add in all strategies + for (const key of Object.keys(definitions)) { + validateDefinition(key, definitions[key]); + + // normalize merge and validate methods if subschema is present + if (typeof definitions[key].schema === "object") { + const schema = new ObjectSchema(definitions[key].schema); + definitions[key] = { + ...definitions[key], + merge(first = {}, second = {}) { + return schema.merge(first, second); + }, + validate(value) { + ValidationStrategy.object(value); + schema.validate(value); + }, + }; + } + + // normalize the merge method in case there's a string + if (typeof definitions[key].merge === "string") { + definitions[key] = { + ...definitions[key], + merge: MergeStrategy[ + /** @type {string} */ (definitions[key].merge) + ], + }; + } + + // normalize the validate method in case there's a string + if (typeof definitions[key].validate === "string") { + definitions[key] = { + ...definitions[key], + validate: + ValidationStrategy[ + /** @type {string} */ (definitions[key].validate) + ], + }; + } + + this.#definitions.set(key, definitions[key]); + + if (definitions[key].required) { + this.#requiredKeys.set(key, definitions[key]); + } + } + } + + /** + * Determines if a strategy has been registered for the given object key. + * @param {string} key The object key to find a strategy for. + * @returns {boolean} True if the key has a strategy registered, false if not. + */ + hasKey(key) { + return this.#definitions.has(key); + } + + /** + * Merges objects together to create a new object comprised of the keys + * of the all objects. Keys are merged based on the each key's merge + * strategy. + * @param {...Object} objects The objects to merge. + * @returns {Object} A new object with a mix of all objects' keys. + * @throws {Error} If any object is invalid. + */ + merge(...objects) { + // double check arguments + if (objects.length < 2) { + throw new TypeError("merge() requires at least two arguments."); + } + + if ( + objects.some( + object => object === null || typeof object !== "object", + ) + ) { + throw new TypeError("All arguments must be objects."); + } + + return objects.reduce((result, object) => { + this.validate(object); + + for (const [key, strategy] of this.#definitions) { + try { + if (key in result || key in object) { + const merge = /** @type {Function} */ (strategy.merge); + const value = merge.call( + this, + result[key], + object[key], + ); + if (value !== undefined) { + result[key] = value; + } + } + } catch (ex) { + throw new WrapperError(key, ex); + } + } + return result; + }, {}); + } + + /** + * Validates an object's keys based on the validate strategy for each key. + * @param {Object} object The object to validate. + * @returns {void} + * @throws {Error} When the object is invalid. + */ + validate(object) { + // check existing keys first + for (const key of Object.keys(object)) { + // check to see if the key is defined + if (!this.hasKey(key)) { + throw new UnexpectedKeyError(key); + } + + // validate existing keys + const definition = this.#definitions.get(key); + + // first check to see if any other keys are required + if (Array.isArray(definition.requires)) { + if ( + !definition.requires.every(otherKey => otherKey in object) + ) { + throw new MissingDependentKeysError( + key, + definition.requires, + ); + } + } + + // now apply remaining validation strategy + try { + const validate = /** @type {Function} */ (definition.validate); + validate.call(definition, object[key]); + } catch (ex) { + throw new WrapperError(key, ex); + } + } + + // ensure required keys aren't missing + for (const [key] of this.#requiredKeys) { + if (!(key in object)) { + throw new MissingKeyError(key); + } + } + } +} + +export { MergeStrategy, ObjectSchema, ValidationStrategy }; diff --git a/node_modules/@eslint/object-schema/dist/esm/types.d.ts b/node_modules/@eslint/object-schema/dist/esm/types.d.ts new file mode 100644 index 00000000..5a5f9206 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/esm/types.d.ts @@ -0,0 +1,40 @@ +/** + * @fileoverview Types for object-schema package. + */ +/** + * Built-in validation strategies. + */ +export type BuiltInValidationStrategy = "array" | "boolean" | "number" | "object" | "object?" | "string" | "string!"; +/** + * Built-in merge strategies. + */ +export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; +/** + * Property definition. + */ +export interface PropertyDefinition { + /** + * Indicates if the property is required. + */ + required: boolean; + /** + * The other properties that must be present when this property is used. + */ + requires?: string[]; + /** + * The strategy to merge the property. + */ + merge: BuiltInMergeStrategy | ((target: any, source: any) => any); + /** + * The strategy to validate the property. + */ + validate: BuiltInValidationStrategy | ((value: any) => void); + /** + * The schema for the object value of this property. + */ + schema?: ObjectDefinition; +} +/** + * Object definition. + */ +export type ObjectDefinition = Record; diff --git a/node_modules/@eslint/object-schema/dist/esm/types.ts b/node_modules/@eslint/object-schema/dist/esm/types.ts new file mode 100644 index 00000000..a4ca9a01 --- /dev/null +++ b/node_modules/@eslint/object-schema/dist/esm/types.ts @@ -0,0 +1,55 @@ +/** + * @fileoverview Types for object-schema package. + */ + +/** + * Built-in validation strategies. + */ +export type BuiltInValidationStrategy = + | "array" + | "boolean" + | "number" + | "object" + | "object?" + | "string" + | "string!"; + +/** + * Built-in merge strategies. + */ +export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; + +/** + * Property definition. + */ +export interface PropertyDefinition { + /** + * Indicates if the property is required. + */ + required: boolean; + + /** + * The other properties that must be present when this property is used. + */ + requires?: string[]; + + /** + * The strategy to merge the property. + */ + merge: BuiltInMergeStrategy | ((target: any, source: any) => any); + + /** + * The strategy to validate the property. + */ + validate: BuiltInValidationStrategy | ((value: any) => void); + + /** + * The schema for the object value of this property. + */ + schema?: ObjectDefinition; +} + +/** + * Object definition. + */ +export type ObjectDefinition = Record; diff --git a/node_modules/@eslint/object-schema/package.json b/node_modules/@eslint/object-schema/package.json new file mode 100644 index 00000000..2a09a765 --- /dev/null +++ b/node_modules/@eslint/object-schema/package.json @@ -0,0 +1,60 @@ +{ + "name": "@eslint/object-schema", + "version": "2.1.4", + "description": "An object schema merger/validator", + "type": "module", + "main": "dist/esm/index.js", + "types": "dist/esm/index.d.ts", + "exports": { + "require": { + "types": "./dist/cjs/index.d.cts", + "default": "./dist/cjs/index.cjs" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public" + }, + "directories": { + "test": "tests" + }, + "scripts": { + "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"", + "build": "rollup -c && tsc -p tsconfig.esm.json && npm run build:cts", + "test:jsr": "npx jsr@latest publish --dry-run", + "test": "mocha tests/", + "test:coverage": "c8 npm test" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/eslint/rewrite.git" + }, + "keywords": [ + "object", + "validation", + "schema", + "merge" + ], + "author": "Nicholas C. Zakas", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/rewrite/issues" + }, + "homepage": "https://github.com/eslint/rewrite#readme", + "devDependencies": { + "c8": "^9.1.0", + "mocha": "^10.4.0", + "rollup": "^4.16.2", + "rollup-plugin-copy": "^3.5.0", + "typescript": "^5.4.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } +} diff --git a/node_modules/@eslint/plugin-kit/LICENSE b/node_modules/@eslint/plugin-kit/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@eslint/plugin-kit/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@eslint/plugin-kit/README.md b/node_modules/@eslint/plugin-kit/README.md new file mode 100644 index 00000000..bd77edce --- /dev/null +++ b/node_modules/@eslint/plugin-kit/README.md @@ -0,0 +1,273 @@ +# ESLint Plugin Kit + +## Description + +A collection of utilities to help build ESLint plugins. + +## Installation + +For Node.js and compatible runtimes: + +```shell +npm install @eslint/plugin-kit +# or +yarn add @eslint/plugin-kit +# or +pnpm install @eslint/plugin-kit +# or +bun install @eslint/plugin-kit +``` + +For Deno: + +```shell +deno add @eslint/plugin-kit +``` + +## Usage + +This package exports the following utilities: + +- `ConfigCommentParser` - used to parse ESLint configuration comments (i.e., `/* eslint-disable rule */`) +- `VisitNodeStep` and `CallMethodStep` - used to help implement `SourceCode#traverse()` +- `Directive` - used to help implement `SourceCode#getDisableDirectives()` +- `TextSourceCodeBase` - base class to help implement the `SourceCode` interface + +### `ConfigCommentParser` + +To use the `ConfigCommentParser` class, import it from the package and create a new instance, such as: + +```js +import { ConfigCommentParser } from "@eslint/plugin-kit"; + +// create a new instance +const commentParser = new ConfigCommentParser(); + +// pass in a comment string without the comment delimiters +const directive = commentParser.parseDirective( + "eslint-disable prefer-const, semi -- I don't want to use these.", +); + +// will be undefined when a directive can't be parsed +if (directive) { + console.log(directive.label); // "eslint-disable" + console.log(directive.value); // "prefer-const, semi" + console.log(directive.justification); // "I don't want to use these" +} +``` + +There are different styles of directive values that you'll need to parse separately to get the correct format: + +```js +import { ConfigCommentParser } from "@eslint/plugin-kit"; + +// create a new instance +const commentParser = new ConfigCommentParser(); + +// list format +const list = commentParser.parseListConfig("prefer-const, semi"); +console.log(Object.entries(list)); // [["prefer-const", true], ["semi", true]] + +// string format +const strings = commentParser.parseStringConfig("foo:off, bar"); +console.log(Object.entries(strings)); // [["foo", "off"], ["bar", null]] + +// JSON-like config format +const jsonLike = commentParser.parseJSONLikeConfig( + "semi:[error, never], prefer-const: warn", +); +console.log(Object.entries(jsonLike.config)); // [["semi", ["error", "never"]], ["prefer-const", "warn"]] +``` + +### `VisitNodeStep` and `CallMethodStep` + +The `VisitNodeStep` and `CallMethodStep` classes represent steps in the traversal of source code. They implement the correct interfaces to return from the `SourceCode#traverse()` method. + +The `VisitNodeStep` class is the more common of the two, where you are describing a visit to a particular node during the traversal. The constructor accepts three arguments: + +- `target` - the node being visited. This is used to determine the method to call inside of a rule. For instance, if the node's type is `Literal` then ESLint will call a method named `Literal()` on the rule (if present). +- `phase` - either 1 for enter or 2 for exit. +- `args` - an array of arguments to pass into the visitor method of a rule. + +For example: + +```js +import { VisitNodeStep } from "@eslint/plugin-kit"; + +class MySourceCode { + traverse() { + const steps = []; + + for (const { node, parent, phase } of iterator(this.ast)) { + steps.push( + new VisitNodeStep({ + target: node, + phase: phase === "enter" ? 1 : 2, + args: [node, parent], + }), + ); + } + + return steps; + } +} +``` + +The `CallMethodStep` class is less common and is used to tell ESLint to call a specific method on the rule. The constructor accepts two arguments: + +- `target` - the name of the method to call, frequently beginning with `"on"` such as `"onCodePathStart"`. +- `args` - an array of arguments to pass to the method. + +For example: + +```js +import { VisitNodeStep, CallMethodStep } from "@eslint/plugin-kit"; + +class MySourceCode { + + traverse() { + + const steps = []; + + for (const { node, parent, phase } of iterator(this.ast)) { + steps.push( + new VisitNodeStep({ + target: node, + phase: phase === "enter" ? 1 : 2, + args: [node, parent], + }), + ); + + // call a method indicating how many times we've been through the loop + steps.push( + new CallMethodStep({ + target: "onIteration", + args: [steps.length] + }); + ) + } + + return steps; + } +} +``` + +### `Directive` + +The `Directive` class represents a disable directive in the source code and implements the `Directive` interface from `@eslint/core`. You can tell ESLint about disable directives using the `SourceCode#getDisableDirectives()` method, where part of the return value is an array of `Directive` objects. Here's an example: + +```js +import { Directive, ConfigCommentParser } from "@eslint/plugin-kit"; + +class MySourceCode { + getDisableDirectives() { + const directives = []; + const problems = []; + const commentParser = new ConfigCommentParser(); + + // read in the inline config nodes to check each one + this.getInlineConfigNodes().forEach(comment => { + // Step 1: Parse the directive + const { label, value, justification } = + commentParser.parseDirective(comment.value); + + // Step 2: Extract the directive value and create the `Directive` object + switch (label) { + case "eslint-disable": + case "eslint-enable": + case "eslint-disable-next-line": + case "eslint-disable-line": { + const directiveType = label.slice("eslint-".length); + + directives.push( + new Directive({ + type: directiveType, + node: comment, + value, + justification, + }), + ); + } + + // ignore any comments that don't begin with known labels + } + }); + + return { + directives, + problems, + }; + } +} +``` + +### `TextSourceCodeBase` + +The `TextSourceCodeBase` class is intended to be a base class that has several of the common members found in `SourceCode` objects already implemented. Those members are: + +- `lines` - an array of text lines that is created automatically when the constructor is called. +- `getLoc(node)` - gets the location of a node. Works for nodes that have the ESLint-style `loc` property and nodes that have the Unist-style [`position` property](https://github.com/syntax-tree/unist?tab=readme-ov-file#position). If you're using an AST with a different location format, you'll still need to implement this method yourself. +- `getRange(node)` - gets the range of a node within the source text. Works for nodes that have the ESLint-style `range` property and nodes that have the Unist-style [`position` property](https://github.com/syntax-tree/unist?tab=readme-ov-file#position). If you're using an AST with a different range format, you'll still need to implement this method yourself. +- `getText(nodeOrToken, charsBefore, charsAfter)` - gets the source text for the given node or token that has range information attached. Optionally, can return additional characters before and after the given node or token. As long as `getRange()` is properly implemented, this method will just work. +- `getAncestors(node)` - returns the ancestry of the node. In order for this to work, you must implement the `getParent()` method yourself. + +Here's an example: + +```js +import { TextSourceCodeBase } from "@eslint/plugin-kit"; + +export class MySourceCode extends TextSourceCodeBase { + #parents = new Map(); + + constructor({ ast, text }) { + super({ ast, text }); + } + + getParent(node) { + return this.#parents.get(node); + } + + traverse() { + const steps = []; + + for (const { node, parent, phase } of iterator(this.ast)) { + //save the parent information + this.#parent.set(node, parent); + + steps.push( + new VisitNodeStep({ + target: node, + phase: phase === "enter" ? 1 : 2, + args: [node, parent], + }), + ); + } + + return steps; + } +} +``` + +In general, it's safe to collect the parent information during the `traverse()` method as `getParent()` and `getAncestor()` will only be called from rules once the AST has been traversed at least once. + +## License + +Apache 2.0 + + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

SERP Triumph JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

Cybozu Syntax WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs b/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs new file mode 100644 index 00000000..0445173e --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs @@ -0,0 +1,610 @@ +'use strict'; + +var levn = require('levn'); + +/** + * @fileoverview Config Comment Parser + * @author Nicholas C. Zakas + */ + + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").RuleConfig} RuleConfig */ +/** @typedef {import("@eslint/core").RulesConfig} RulesConfig */ +/** @typedef {import("./types.ts").StringConfig} StringConfig */ +/** @typedef {import("./types.ts").BooleanConfig} BooleanConfig */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +const directivesPattern = /^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u; +const validSeverities = new Set([0, 1, 2, "off", "warn", "error"]); + +/** + * Determines if the severity in the rule configuration is valid. + * @param {RuleConfig} ruleConfig A rule's configuration. + */ +function isSeverityValid(ruleConfig) { + const severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; + return validSeverities.has(severity); +} + +/** + * Determines if all severities in the rules configuration are valid. + * @param {RulesConfig} rulesConfig The rules configuration to check. + * @returns {boolean} `true` if all severities are valid, otherwise `false`. + */ +function isEverySeverityValid(rulesConfig) { + return Object.values(rulesConfig).every(isSeverityValid); +} + +/** + * Represents a directive comment. + */ +class DirectiveComment { + /** + * The label of the directive, such as "eslint", "eslint-disable", etc. + * @type {string} + */ + label = ""; + + /** + * The value of the directive (the string after the label). + * @type {string} + */ + value = ""; + + /** + * The justification of the directive (the string after the --). + * @type {string} + */ + justification = ""; + + /** + * Creates a new directive comment. + * @param {string} label The label of the directive. + * @param {string} value The value of the directive. + * @param {string} justification The justification of the directive. + */ + constructor(label, value, justification) { + this.label = label; + this.value = value; + this.justification = justification; + } +} + +//------------------------------------------------------------------------------ +// Public Interface +//------------------------------------------------------------------------------ + +/** + * Object to parse ESLint configuration comments. + */ +class ConfigCommentParser { + /** + * Parses a list of "name:string_value" or/and "name" options divided by comma or + * whitespace. Used for "global" comments. + * @param {string} string The string to parse. + * @returns {StringConfig} Result map object of names and string values, or null values if no value was provided. + */ + parseStringConfig(string) { + const items = /** @type {StringConfig} */ ({}); + + // Collapse whitespace around `:` and `,` to make parsing easier + const trimmedString = string + .trim() + .replace(/(? { + if (!name) { + return; + } + + // value defaults to null (if not provided), e.g: "foo" => ["foo", null] + const [key, value = null] = name.split(":"); + + items[key] = value; + }); + + return items; + } + + /** + * Parses a JSON-like config. + * @param {string} string The string to parse. + * @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object + */ + parseJSONLikeConfig(string) { + // Parses a JSON-like comment by the same way as parsing CLI option. + try { + const items = levn.parse("Object", string) || {}; + + /* + * When the configuration has any invalid severities, it should be completely + * ignored. This is because the configuration is not valid and should not be + * applied. + * + * For example, the following configuration is invalid: + * + * "no-alert: 2 no-console: 2" + * + * This results in a configuration of { "no-alert": "2 no-console: 2" }, which is + * not valid. In this case, the configuration should be ignored. + */ + if (isEverySeverityValid(items)) { + return { + ok: true, + config: items, + }; + } + } catch { + // levn parsing error: ignore to parse the string by a fallback. + } + + /* + * Optionator cannot parse commaless notations. + * But we are supporting that. So this is a fallback for that. + */ + const normalizedString = string + .replace(/([-a-zA-Z0-9/]+):/gu, '"$1":') + .replace(/(\]|[0-9])\s+(?=")/u, "$1,"); + + try { + const items = JSON.parse(`{${normalizedString}}`); + + return { + ok: true, + config: items, + }; + } catch (ex) { + const errorMessage = ex instanceof Error ? ex.message : String(ex); + + return { + ok: false, + error: { + message: `Failed to parse JSON from '${normalizedString}': ${errorMessage}`, + }, + }; + } + } + + /** + * Parses a config of values separated by comma. + * @param {string} string The string to parse. + * @returns {BooleanConfig} Result map of values and true values + */ + parseListConfig(string) { + const items = /** @type {BooleanConfig} */ ({}); + + string.split(",").forEach(name => { + const trimmedName = name + .trim() + .replace( + /^(?['"]?)(?.*)\k$/su, + "$", + ); + + if (trimmedName) { + items[trimmedName] = true; + } + }); + + return items; + } + + /** + * Extract the directive and the justification from a given directive comment and trim them. + * @param {string} value The comment text to extract. + * @returns {{directivePart: string, justificationPart: string}} The extracted directive and justification. + */ + #extractDirectiveComment(value) { + const match = /\s-{2,}\s/u.exec(value); + + if (!match) { + return { directivePart: value.trim(), justificationPart: "" }; + } + + const directive = value.slice(0, match.index).trim(); + const justification = value.slice(match.index + match[0].length).trim(); + + return { directivePart: directive, justificationPart: justification }; + } + + /** + * Parses a directive comment into directive text and value. + * @param {string} string The string with the directive to be parsed. + * @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid. + */ + parseDirective(string) { + const { directivePart, justificationPart } = + this.#extractDirectiveComment(string); + const match = directivesPattern.exec(directivePart); + + if (!match) { + return undefined; + } + + const directiveText = match[1]; + const directiveValue = directivePart.slice( + match.index + directiveText.length, + ); + + return new DirectiveComment( + directiveText, + directiveValue.trim(), + justificationPart, + ); + } +} + +/** + * @fileoverview A collection of helper classes for implementing `SourceCode`. + * @author Nicholas C. Zakas + */ + +/* eslint class-methods-use-this: off -- Required to complete interface. */ + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").VisitTraversalStep} VisitTraversalStep */ +/** @typedef {import("@eslint/core").CallTraversalStep} CallTraversalStep */ +/** @typedef {import("@eslint/core").TextSourceCode} TextSourceCode */ +/** @typedef {import("@eslint/core").TraversalStep} TraversalStep */ +/** @typedef {import("@eslint/core").SourceLocation} SourceLocation */ +/** @typedef {import("@eslint/core").SourceLocationWithOffset} SourceLocationWithOffset */ +/** @typedef {import("@eslint/core").SourceRange} SourceRange */ +/** @typedef {import("@eslint/core").Directive} IDirective */ +/** @typedef {import("@eslint/core").DirectiveType} DirectiveType */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Determines if a node has ESTree-style loc information. + * @param {object} node The node to check. + * @returns {node is {loc:SourceLocation}} `true` if the node has ESTree-style loc information, `false` if not. + */ +function hasESTreeStyleLoc(node) { + return "loc" in node; +} + +/** + * Determines if a node has position-style loc information. + * @param {object} node The node to check. + * @returns {node is {position:SourceLocation}} `true` if the node has position-style range information, `false` if not. + */ +function hasPosStyleLoc(node) { + return "position" in node; +} + +/** + * Determines if a node has ESTree-style range information. + * @param {object} node The node to check. + * @returns {node is {range:SourceRange}} `true` if the node has ESTree-style range information, `false` if not. + */ +function hasESTreeStyleRange(node) { + return "range" in node; +} + +/** + * Determines if a node has position-style range information. + * @param {object} node The node to check. + * @returns {node is {position:SourceLocationWithOffset}} `true` if the node has position-style range information, `false` if not. + */ +function hasPosStyleRange(node) { + return "position" in node; +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class to represent a step in the traversal process where a node is visited. + * @implements {VisitTraversalStep} + */ +class VisitNodeStep { + /** + * The type of the step. + * @type {"visit"} + * @readonly + */ + type = "visit"; + + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {1} + * @readonly + */ + kind = 1; + + /** + * The target of the step. + * @type {object} + */ + target; + + /** + * The phase of the step. + * @type {1|2} + */ + phase; + + /** + * The arguments of the step. + * @type {Array} + */ + args; + + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {object} options.target The target of the step. + * @param {1|2} options.phase The phase of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, phase, args }) { + this.target = target; + this.phase = phase; + this.args = args; + } +} + +/** + * A class to represent a step in the traversal process where a + * method is called. + * @implements {CallTraversalStep} + */ +class CallMethodStep { + /** + * The type of the step. + * @type {"call"} + * @readonly + */ + type = "call"; + + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {2} + * @readonly + */ + kind = 2; + + /** + * The name of the method to call. + * @type {string} + */ + target; + + /** + * The arguments to pass to the method. + * @type {Array} + */ + args; + + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {string} options.target The target of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, args }) { + this.target = target; + this.args = args; + } +} + +/** + * A class to represent a directive comment. + * @implements {IDirective} + */ +class Directive { + /** + * The type of directive. + * @type {DirectiveType} + * @readonly + */ + type; + + /** + * The node representing the directive. + * @type {unknown} + * @readonly + */ + node; + + /** + * Everything after the "eslint-disable" portion of the directive, + * but before the "--" that indicates the justification. + * @type {string} + * @readonly + */ + value; + + /** + * The justification for the directive. + * @type {string} + * @readonly + */ + justification; + + /** + * Creates a new instance. + * @param {Object} options The options for the directive. + * @param {"disable"|"enable"|"disable-next-line"|"disable-line"} options.type The type of directive. + * @param {unknown} options.node The node representing the directive. + * @param {string} options.value The value of the directive. + * @param {string} options.justification The justification for the directive. + */ + constructor({ type, node, value, justification }) { + this.type = type; + this.node = node; + this.value = value; + this.justification = justification; + } +} + +/** + * Source Code Base Object + * @implements {TextSourceCode} + */ +class TextSourceCodeBase { + /** + * The lines of text in the source code. + * @type {Array} + */ + #lines; + + /** + * The AST of the source code. + * @type {object} + */ + ast; + + /** + * The text of the source code. + * @type {string} + */ + text; + + /** + * Creates a new instance. + * @param {Object} options The options for the instance. + * @param {string} options.text The source code text. + * @param {object} options.ast The root AST node. + * @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code. + */ + constructor({ text, ast, lineEndingPattern = /\r?\n/u }) { + this.ast = ast; + this.text = text; + this.#lines = text.split(lineEndingPattern); + } + + /** + * Returns the loc information for the given node or token. + * @param {object} nodeOrToken The node or token to get the loc information for. + * @returns {SourceLocation} The loc information for the node or token. + */ + getLoc(nodeOrToken) { + if (hasESTreeStyleLoc(nodeOrToken)) { + return nodeOrToken.loc; + } + + if (hasPosStyleLoc(nodeOrToken)) { + return nodeOrToken.position; + } + + throw new Error( + "Custom getLoc() method must be implemented in the subclass.", + ); + } + + /** + * Returns the range information for the given node or token. + * @param {object} nodeOrToken The node or token to get the range information for. + * @returns {SourceRange} The range information for the node or token. + */ + getRange(nodeOrToken) { + if (hasESTreeStyleRange(nodeOrToken)) { + return nodeOrToken.range; + } + + if (hasPosStyleRange(nodeOrToken)) { + return [ + nodeOrToken.position.start.offset, + nodeOrToken.position.end.offset, + ]; + } + + throw new Error( + "Custom getRange() method must be implemented in the subclass.", + ); + } + + /* eslint-disable no-unused-vars -- Required to complete interface. */ + /** + * Returns the parent of the given node. + * @param {object} node The node to get the parent of. + * @returns {object|undefined} The parent of the node. + */ + getParent(node) { + throw new Error("Not implemented."); + } + /* eslint-enable no-unused-vars -- Required to complete interface. */ + + /** + * Gets all the ancestors of a given node + * @param {object} node The node + * @returns {Array} All the ancestor nodes in the AST, not including the provided node, starting + * from the root node at index 0 and going inwards to the parent node. + * @throws {TypeError} When `node` is missing. + */ + getAncestors(node) { + if (!node) { + throw new TypeError("Missing required argument: node."); + } + + const ancestorsStartingAtParent = []; + + for ( + let ancestor = this.getParent(node); + ancestor; + ancestor = this.getParent(ancestor) + ) { + ancestorsStartingAtParent.push(ancestor); + } + + return ancestorsStartingAtParent.reverse(); + } + + /** + * Gets the source code for the given node. + * @param {object} [node] The AST node to get the text for. + * @param {number} [beforeCount] The number of characters before the node to retrieve. + * @param {number} [afterCount] The number of characters after the node to retrieve. + * @returns {string} The text representing the AST node. + * @public + */ + getText(node, beforeCount, afterCount) { + if (node) { + const range = this.getRange(node); + return this.text.slice( + Math.max(range[0] - (beforeCount || 0), 0), + range[1] + (afterCount || 0), + ); + } + return this.text; + } + + /** + * Gets the entire source text split into an array of lines. + * @returns {Array} The source text as an array of lines. + * @public + */ + get lines() { + return this.#lines; + } + + /** + * Traverse the source code and return the steps that were taken. + * @returns {Iterable} The steps that were taken while traversing the source code. + */ + traverse() { + throw new Error("Not implemented."); + } +} + +exports.CallMethodStep = CallMethodStep; +exports.ConfigCommentParser = ConfigCommentParser; +exports.Directive = Directive; +exports.TextSourceCodeBase = TextSourceCodeBase; +exports.VisitNodeStep = VisitNodeStep; diff --git a/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts b/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts new file mode 100644 index 00000000..90b4a319 --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts @@ -0,0 +1,286 @@ +export type VisitTraversalStep = import("@eslint/core").VisitTraversalStep; +export type CallTraversalStep = import("@eslint/core").CallTraversalStep; +export type TextSourceCode = import("@eslint/core").TextSourceCode; +export type TraversalStep = import("@eslint/core").TraversalStep; +export type SourceLocation = import("@eslint/core").SourceLocation; +export type SourceLocationWithOffset = import("@eslint/core").SourceLocationWithOffset; +export type SourceRange = import("@eslint/core").SourceRange; +export type IDirective = import("@eslint/core").Directive; +export type DirectiveType = import("@eslint/core").DirectiveType; +export type RuleConfig = import("@eslint/core").RuleConfig; +export type RulesConfig = import("@eslint/core").RulesConfig; +export type StringConfig = import("./types.ts").StringConfig; +export type BooleanConfig = import("./types.ts").BooleanConfig; +/** + * A class to represent a step in the traversal process where a + * method is called. + * @implements {CallTraversalStep} + */ +export class CallMethodStep implements CallTraversalStep { + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {string} options.target The target of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, args }: { + target: string; + args: Array; + }); + /** + * The type of the step. + * @type {"call"} + * @readonly + */ + readonly type: "call"; + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {2} + * @readonly + */ + readonly kind: 2; + /** + * The name of the method to call. + * @type {string} + */ + target: string; + /** + * The arguments to pass to the method. + * @type {Array} + */ + args: Array; +} +/** + * Object to parse ESLint configuration comments. + */ +export class ConfigCommentParser { + /** + * Parses a list of "name:string_value" or/and "name" options divided by comma or + * whitespace. Used for "global" comments. + * @param {string} string The string to parse. + * @returns {StringConfig} Result map object of names and string values, or null values if no value was provided. + */ + parseStringConfig(string: string): StringConfig; + /** + * Parses a JSON-like config. + * @param {string} string The string to parse. + * @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object + */ + parseJSONLikeConfig(string: string): ({ + ok: true; + config: RulesConfig; + } | { + ok: false; + error: { + message: string; + }; + }); + /** + * Parses a config of values separated by comma. + * @param {string} string The string to parse. + * @returns {BooleanConfig} Result map of values and true values + */ + parseListConfig(string: string): BooleanConfig; + /** + * Parses a directive comment into directive text and value. + * @param {string} string The string with the directive to be parsed. + * @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid. + */ + parseDirective(string: string): DirectiveComment | undefined; + #private; +} +/** + * A class to represent a directive comment. + * @implements {IDirective} + */ +export class Directive implements IDirective { + /** + * Creates a new instance. + * @param {Object} options The options for the directive. + * @param {"disable"|"enable"|"disable-next-line"|"disable-line"} options.type The type of directive. + * @param {unknown} options.node The node representing the directive. + * @param {string} options.value The value of the directive. + * @param {string} options.justification The justification for the directive. + */ + constructor({ type, node, value, justification }: { + type: "disable" | "enable" | "disable-next-line" | "disable-line"; + node: unknown; + value: string; + justification: string; + }); + /** + * The type of directive. + * @type {DirectiveType} + * @readonly + */ + readonly type: DirectiveType; + /** + * The node representing the directive. + * @type {unknown} + * @readonly + */ + readonly node: unknown; + /** + * Everything after the "eslint-disable" portion of the directive, + * but before the "--" that indicates the justification. + * @type {string} + * @readonly + */ + readonly value: string; + /** + * The justification for the directive. + * @type {string} + * @readonly + */ + readonly justification: string; +} +/** + * Source Code Base Object + * @implements {TextSourceCode} + */ +export class TextSourceCodeBase implements TextSourceCode { + /** + * Creates a new instance. + * @param {Object} options The options for the instance. + * @param {string} options.text The source code text. + * @param {object} options.ast The root AST node. + * @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code. + */ + constructor({ text, ast, lineEndingPattern }: { + text: string; + ast: object; + lineEndingPattern?: RegExp; + }); + /** + * The AST of the source code. + * @type {object} + */ + ast: object; + /** + * The text of the source code. + * @type {string} + */ + text: string; + /** + * Returns the loc information for the given node or token. + * @param {object} nodeOrToken The node or token to get the loc information for. + * @returns {SourceLocation} The loc information for the node or token. + */ + getLoc(nodeOrToken: object): SourceLocation; + /** + * Returns the range information for the given node or token. + * @param {object} nodeOrToken The node or token to get the range information for. + * @returns {SourceRange} The range information for the node or token. + */ + getRange(nodeOrToken: object): SourceRange; + /** + * Returns the parent of the given node. + * @param {object} node The node to get the parent of. + * @returns {object|undefined} The parent of the node. + */ + getParent(node: object): object | undefined; + /** + * Gets all the ancestors of a given node + * @param {object} node The node + * @returns {Array} All the ancestor nodes in the AST, not including the provided node, starting + * from the root node at index 0 and going inwards to the parent node. + * @throws {TypeError} When `node` is missing. + */ + getAncestors(node: object): Array; + /** + * Gets the source code for the given node. + * @param {object} [node] The AST node to get the text for. + * @param {number} [beforeCount] The number of characters before the node to retrieve. + * @param {number} [afterCount] The number of characters after the node to retrieve. + * @returns {string} The text representing the AST node. + * @public + */ + public getText(node?: object, beforeCount?: number, afterCount?: number): string; + /** + * Gets the entire source text split into an array of lines. + * @returns {Array} The source text as an array of lines. + * @public + */ + public get lines(): string[]; + /** + * Traverse the source code and return the steps that were taken. + * @returns {Iterable} The steps that were taken while traversing the source code. + */ + traverse(): Iterable; + #private; +} +/** + * A class to represent a step in the traversal process where a node is visited. + * @implements {VisitTraversalStep} + */ +export class VisitNodeStep implements VisitTraversalStep { + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {object} options.target The target of the step. + * @param {1|2} options.phase The phase of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, phase, args }: { + target: object; + phase: 1 | 2; + args: Array; + }); + /** + * The type of the step. + * @type {"visit"} + * @readonly + */ + readonly type: "visit"; + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {1} + * @readonly + */ + readonly kind: 1; + /** + * The target of the step. + * @type {object} + */ + target: object; + /** + * The phase of the step. + * @type {1|2} + */ + phase: 1 | 2; + /** + * The arguments of the step. + * @type {Array} + */ + args: Array; +} +/** + * Represents a directive comment. + */ +declare class DirectiveComment { + /** + * Creates a new directive comment. + * @param {string} label The label of the directive. + * @param {string} value The value of the directive. + * @param {string} justification The justification of the directive. + */ + constructor(label: string, value: string, justification: string); + /** + * The label of the directive, such as "eslint", "eslint-disable", etc. + * @type {string} + */ + label: string; + /** + * The value of the directive (the string after the label). + * @type {string} + */ + value: string; + /** + * The justification of the directive (the string after the --). + * @type {string} + */ + justification: string; +} +export {}; diff --git a/node_modules/@eslint/plugin-kit/dist/cjs/types.ts b/node_modules/@eslint/plugin-kit/dist/cjs/types.ts new file mode 100644 index 00000000..d3f6a888 --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/cjs/types.ts @@ -0,0 +1,7 @@ +/** + * @fileoverview Types for the plugin-kit package. + * @author Nicholas C. Zakas + */ + +export type StringConfig = Record; +export type BooleanConfig = Record; diff --git a/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts b/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts new file mode 100644 index 00000000..90b4a319 --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts @@ -0,0 +1,286 @@ +export type VisitTraversalStep = import("@eslint/core").VisitTraversalStep; +export type CallTraversalStep = import("@eslint/core").CallTraversalStep; +export type TextSourceCode = import("@eslint/core").TextSourceCode; +export type TraversalStep = import("@eslint/core").TraversalStep; +export type SourceLocation = import("@eslint/core").SourceLocation; +export type SourceLocationWithOffset = import("@eslint/core").SourceLocationWithOffset; +export type SourceRange = import("@eslint/core").SourceRange; +export type IDirective = import("@eslint/core").Directive; +export type DirectiveType = import("@eslint/core").DirectiveType; +export type RuleConfig = import("@eslint/core").RuleConfig; +export type RulesConfig = import("@eslint/core").RulesConfig; +export type StringConfig = import("./types.ts").StringConfig; +export type BooleanConfig = import("./types.ts").BooleanConfig; +/** + * A class to represent a step in the traversal process where a + * method is called. + * @implements {CallTraversalStep} + */ +export class CallMethodStep implements CallTraversalStep { + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {string} options.target The target of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, args }: { + target: string; + args: Array; + }); + /** + * The type of the step. + * @type {"call"} + * @readonly + */ + readonly type: "call"; + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {2} + * @readonly + */ + readonly kind: 2; + /** + * The name of the method to call. + * @type {string} + */ + target: string; + /** + * The arguments to pass to the method. + * @type {Array} + */ + args: Array; +} +/** + * Object to parse ESLint configuration comments. + */ +export class ConfigCommentParser { + /** + * Parses a list of "name:string_value" or/and "name" options divided by comma or + * whitespace. Used for "global" comments. + * @param {string} string The string to parse. + * @returns {StringConfig} Result map object of names and string values, or null values if no value was provided. + */ + parseStringConfig(string: string): StringConfig; + /** + * Parses a JSON-like config. + * @param {string} string The string to parse. + * @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object + */ + parseJSONLikeConfig(string: string): ({ + ok: true; + config: RulesConfig; + } | { + ok: false; + error: { + message: string; + }; + }); + /** + * Parses a config of values separated by comma. + * @param {string} string The string to parse. + * @returns {BooleanConfig} Result map of values and true values + */ + parseListConfig(string: string): BooleanConfig; + /** + * Parses a directive comment into directive text and value. + * @param {string} string The string with the directive to be parsed. + * @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid. + */ + parseDirective(string: string): DirectiveComment | undefined; + #private; +} +/** + * A class to represent a directive comment. + * @implements {IDirective} + */ +export class Directive implements IDirective { + /** + * Creates a new instance. + * @param {Object} options The options for the directive. + * @param {"disable"|"enable"|"disable-next-line"|"disable-line"} options.type The type of directive. + * @param {unknown} options.node The node representing the directive. + * @param {string} options.value The value of the directive. + * @param {string} options.justification The justification for the directive. + */ + constructor({ type, node, value, justification }: { + type: "disable" | "enable" | "disable-next-line" | "disable-line"; + node: unknown; + value: string; + justification: string; + }); + /** + * The type of directive. + * @type {DirectiveType} + * @readonly + */ + readonly type: DirectiveType; + /** + * The node representing the directive. + * @type {unknown} + * @readonly + */ + readonly node: unknown; + /** + * Everything after the "eslint-disable" portion of the directive, + * but before the "--" that indicates the justification. + * @type {string} + * @readonly + */ + readonly value: string; + /** + * The justification for the directive. + * @type {string} + * @readonly + */ + readonly justification: string; +} +/** + * Source Code Base Object + * @implements {TextSourceCode} + */ +export class TextSourceCodeBase implements TextSourceCode { + /** + * Creates a new instance. + * @param {Object} options The options for the instance. + * @param {string} options.text The source code text. + * @param {object} options.ast The root AST node. + * @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code. + */ + constructor({ text, ast, lineEndingPattern }: { + text: string; + ast: object; + lineEndingPattern?: RegExp; + }); + /** + * The AST of the source code. + * @type {object} + */ + ast: object; + /** + * The text of the source code. + * @type {string} + */ + text: string; + /** + * Returns the loc information for the given node or token. + * @param {object} nodeOrToken The node or token to get the loc information for. + * @returns {SourceLocation} The loc information for the node or token. + */ + getLoc(nodeOrToken: object): SourceLocation; + /** + * Returns the range information for the given node or token. + * @param {object} nodeOrToken The node or token to get the range information for. + * @returns {SourceRange} The range information for the node or token. + */ + getRange(nodeOrToken: object): SourceRange; + /** + * Returns the parent of the given node. + * @param {object} node The node to get the parent of. + * @returns {object|undefined} The parent of the node. + */ + getParent(node: object): object | undefined; + /** + * Gets all the ancestors of a given node + * @param {object} node The node + * @returns {Array} All the ancestor nodes in the AST, not including the provided node, starting + * from the root node at index 0 and going inwards to the parent node. + * @throws {TypeError} When `node` is missing. + */ + getAncestors(node: object): Array; + /** + * Gets the source code for the given node. + * @param {object} [node] The AST node to get the text for. + * @param {number} [beforeCount] The number of characters before the node to retrieve. + * @param {number} [afterCount] The number of characters after the node to retrieve. + * @returns {string} The text representing the AST node. + * @public + */ + public getText(node?: object, beforeCount?: number, afterCount?: number): string; + /** + * Gets the entire source text split into an array of lines. + * @returns {Array} The source text as an array of lines. + * @public + */ + public get lines(): string[]; + /** + * Traverse the source code and return the steps that were taken. + * @returns {Iterable} The steps that were taken while traversing the source code. + */ + traverse(): Iterable; + #private; +} +/** + * A class to represent a step in the traversal process where a node is visited. + * @implements {VisitTraversalStep} + */ +export class VisitNodeStep implements VisitTraversalStep { + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {object} options.target The target of the step. + * @param {1|2} options.phase The phase of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, phase, args }: { + target: object; + phase: 1 | 2; + args: Array; + }); + /** + * The type of the step. + * @type {"visit"} + * @readonly + */ + readonly type: "visit"; + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {1} + * @readonly + */ + readonly kind: 1; + /** + * The target of the step. + * @type {object} + */ + target: object; + /** + * The phase of the step. + * @type {1|2} + */ + phase: 1 | 2; + /** + * The arguments of the step. + * @type {Array} + */ + args: Array; +} +/** + * Represents a directive comment. + */ +declare class DirectiveComment { + /** + * Creates a new directive comment. + * @param {string} label The label of the directive. + * @param {string} value The value of the directive. + * @param {string} justification The justification of the directive. + */ + constructor(label: string, value: string, justification: string); + /** + * The label of the directive, such as "eslint", "eslint-disable", etc. + * @type {string} + */ + label: string; + /** + * The value of the directive (the string after the label). + * @type {string} + */ + value: string; + /** + * The justification of the directive (the string after the --). + * @type {string} + */ + justification: string; +} +export {}; diff --git a/node_modules/@eslint/plugin-kit/dist/esm/index.js b/node_modules/@eslint/plugin-kit/dist/esm/index.js new file mode 100644 index 00000000..92eed6ce --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/esm/index.js @@ -0,0 +1,605 @@ +// @ts-self-types="./index.d.ts" +import levn from 'levn'; + +/** + * @fileoverview Config Comment Parser + * @author Nicholas C. Zakas + */ + + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").RuleConfig} RuleConfig */ +/** @typedef {import("@eslint/core").RulesConfig} RulesConfig */ +/** @typedef {import("./types.ts").StringConfig} StringConfig */ +/** @typedef {import("./types.ts").BooleanConfig} BooleanConfig */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +const directivesPattern = /^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u; +const validSeverities = new Set([0, 1, 2, "off", "warn", "error"]); + +/** + * Determines if the severity in the rule configuration is valid. + * @param {RuleConfig} ruleConfig A rule's configuration. + */ +function isSeverityValid(ruleConfig) { + const severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; + return validSeverities.has(severity); +} + +/** + * Determines if all severities in the rules configuration are valid. + * @param {RulesConfig} rulesConfig The rules configuration to check. + * @returns {boolean} `true` if all severities are valid, otherwise `false`. + */ +function isEverySeverityValid(rulesConfig) { + return Object.values(rulesConfig).every(isSeverityValid); +} + +/** + * Represents a directive comment. + */ +class DirectiveComment { + /** + * The label of the directive, such as "eslint", "eslint-disable", etc. + * @type {string} + */ + label = ""; + + /** + * The value of the directive (the string after the label). + * @type {string} + */ + value = ""; + + /** + * The justification of the directive (the string after the --). + * @type {string} + */ + justification = ""; + + /** + * Creates a new directive comment. + * @param {string} label The label of the directive. + * @param {string} value The value of the directive. + * @param {string} justification The justification of the directive. + */ + constructor(label, value, justification) { + this.label = label; + this.value = value; + this.justification = justification; + } +} + +//------------------------------------------------------------------------------ +// Public Interface +//------------------------------------------------------------------------------ + +/** + * Object to parse ESLint configuration comments. + */ +class ConfigCommentParser { + /** + * Parses a list of "name:string_value" or/and "name" options divided by comma or + * whitespace. Used for "global" comments. + * @param {string} string The string to parse. + * @returns {StringConfig} Result map object of names and string values, or null values if no value was provided. + */ + parseStringConfig(string) { + const items = /** @type {StringConfig} */ ({}); + + // Collapse whitespace around `:` and `,` to make parsing easier + const trimmedString = string + .trim() + .replace(/(? { + if (!name) { + return; + } + + // value defaults to null (if not provided), e.g: "foo" => ["foo", null] + const [key, value = null] = name.split(":"); + + items[key] = value; + }); + + return items; + } + + /** + * Parses a JSON-like config. + * @param {string} string The string to parse. + * @returns {({ok: true, config: RulesConfig}|{ok: false, error: {message: string}})} Result map object + */ + parseJSONLikeConfig(string) { + // Parses a JSON-like comment by the same way as parsing CLI option. + try { + const items = levn.parse("Object", string) || {}; + + /* + * When the configuration has any invalid severities, it should be completely + * ignored. This is because the configuration is not valid and should not be + * applied. + * + * For example, the following configuration is invalid: + * + * "no-alert: 2 no-console: 2" + * + * This results in a configuration of { "no-alert": "2 no-console: 2" }, which is + * not valid. In this case, the configuration should be ignored. + */ + if (isEverySeverityValid(items)) { + return { + ok: true, + config: items, + }; + } + } catch { + // levn parsing error: ignore to parse the string by a fallback. + } + + /* + * Optionator cannot parse commaless notations. + * But we are supporting that. So this is a fallback for that. + */ + const normalizedString = string + .replace(/([-a-zA-Z0-9/]+):/gu, '"$1":') + .replace(/(\]|[0-9])\s+(?=")/u, "$1,"); + + try { + const items = JSON.parse(`{${normalizedString}}`); + + return { + ok: true, + config: items, + }; + } catch (ex) { + const errorMessage = ex instanceof Error ? ex.message : String(ex); + + return { + ok: false, + error: { + message: `Failed to parse JSON from '${normalizedString}': ${errorMessage}`, + }, + }; + } + } + + /** + * Parses a config of values separated by comma. + * @param {string} string The string to parse. + * @returns {BooleanConfig} Result map of values and true values + */ + parseListConfig(string) { + const items = /** @type {BooleanConfig} */ ({}); + + string.split(",").forEach(name => { + const trimmedName = name + .trim() + .replace( + /^(?['"]?)(?.*)\k$/su, + "$", + ); + + if (trimmedName) { + items[trimmedName] = true; + } + }); + + return items; + } + + /** + * Extract the directive and the justification from a given directive comment and trim them. + * @param {string} value The comment text to extract. + * @returns {{directivePart: string, justificationPart: string}} The extracted directive and justification. + */ + #extractDirectiveComment(value) { + const match = /\s-{2,}\s/u.exec(value); + + if (!match) { + return { directivePart: value.trim(), justificationPart: "" }; + } + + const directive = value.slice(0, match.index).trim(); + const justification = value.slice(match.index + match[0].length).trim(); + + return { directivePart: directive, justificationPart: justification }; + } + + /** + * Parses a directive comment into directive text and value. + * @param {string} string The string with the directive to be parsed. + * @returns {DirectiveComment|undefined} The parsed directive or `undefined` if the directive is invalid. + */ + parseDirective(string) { + const { directivePart, justificationPart } = + this.#extractDirectiveComment(string); + const match = directivesPattern.exec(directivePart); + + if (!match) { + return undefined; + } + + const directiveText = match[1]; + const directiveValue = directivePart.slice( + match.index + directiveText.length, + ); + + return new DirectiveComment( + directiveText, + directiveValue.trim(), + justificationPart, + ); + } +} + +/** + * @fileoverview A collection of helper classes for implementing `SourceCode`. + * @author Nicholas C. Zakas + */ + +/* eslint class-methods-use-this: off -- Required to complete interface. */ + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").VisitTraversalStep} VisitTraversalStep */ +/** @typedef {import("@eslint/core").CallTraversalStep} CallTraversalStep */ +/** @typedef {import("@eslint/core").TextSourceCode} TextSourceCode */ +/** @typedef {import("@eslint/core").TraversalStep} TraversalStep */ +/** @typedef {import("@eslint/core").SourceLocation} SourceLocation */ +/** @typedef {import("@eslint/core").SourceLocationWithOffset} SourceLocationWithOffset */ +/** @typedef {import("@eslint/core").SourceRange} SourceRange */ +/** @typedef {import("@eslint/core").Directive} IDirective */ +/** @typedef {import("@eslint/core").DirectiveType} DirectiveType */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Determines if a node has ESTree-style loc information. + * @param {object} node The node to check. + * @returns {node is {loc:SourceLocation}} `true` if the node has ESTree-style loc information, `false` if not. + */ +function hasESTreeStyleLoc(node) { + return "loc" in node; +} + +/** + * Determines if a node has position-style loc information. + * @param {object} node The node to check. + * @returns {node is {position:SourceLocation}} `true` if the node has position-style range information, `false` if not. + */ +function hasPosStyleLoc(node) { + return "position" in node; +} + +/** + * Determines if a node has ESTree-style range information. + * @param {object} node The node to check. + * @returns {node is {range:SourceRange}} `true` if the node has ESTree-style range information, `false` if not. + */ +function hasESTreeStyleRange(node) { + return "range" in node; +} + +/** + * Determines if a node has position-style range information. + * @param {object} node The node to check. + * @returns {node is {position:SourceLocationWithOffset}} `true` if the node has position-style range information, `false` if not. + */ +function hasPosStyleRange(node) { + return "position" in node; +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class to represent a step in the traversal process where a node is visited. + * @implements {VisitTraversalStep} + */ +class VisitNodeStep { + /** + * The type of the step. + * @type {"visit"} + * @readonly + */ + type = "visit"; + + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {1} + * @readonly + */ + kind = 1; + + /** + * The target of the step. + * @type {object} + */ + target; + + /** + * The phase of the step. + * @type {1|2} + */ + phase; + + /** + * The arguments of the step. + * @type {Array} + */ + args; + + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {object} options.target The target of the step. + * @param {1|2} options.phase The phase of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, phase, args }) { + this.target = target; + this.phase = phase; + this.args = args; + } +} + +/** + * A class to represent a step in the traversal process where a + * method is called. + * @implements {CallTraversalStep} + */ +class CallMethodStep { + /** + * The type of the step. + * @type {"call"} + * @readonly + */ + type = "call"; + + /** + * The kind of the step. Represents the same data as the `type` property + * but it's a number for performance. + * @type {2} + * @readonly + */ + kind = 2; + + /** + * The name of the method to call. + * @type {string} + */ + target; + + /** + * The arguments to pass to the method. + * @type {Array} + */ + args; + + /** + * Creates a new instance. + * @param {Object} options The options for the step. + * @param {string} options.target The target of the step. + * @param {Array} options.args The arguments of the step. + */ + constructor({ target, args }) { + this.target = target; + this.args = args; + } +} + +/** + * A class to represent a directive comment. + * @implements {IDirective} + */ +class Directive { + /** + * The type of directive. + * @type {DirectiveType} + * @readonly + */ + type; + + /** + * The node representing the directive. + * @type {unknown} + * @readonly + */ + node; + + /** + * Everything after the "eslint-disable" portion of the directive, + * but before the "--" that indicates the justification. + * @type {string} + * @readonly + */ + value; + + /** + * The justification for the directive. + * @type {string} + * @readonly + */ + justification; + + /** + * Creates a new instance. + * @param {Object} options The options for the directive. + * @param {"disable"|"enable"|"disable-next-line"|"disable-line"} options.type The type of directive. + * @param {unknown} options.node The node representing the directive. + * @param {string} options.value The value of the directive. + * @param {string} options.justification The justification for the directive. + */ + constructor({ type, node, value, justification }) { + this.type = type; + this.node = node; + this.value = value; + this.justification = justification; + } +} + +/** + * Source Code Base Object + * @implements {TextSourceCode} + */ +class TextSourceCodeBase { + /** + * The lines of text in the source code. + * @type {Array} + */ + #lines; + + /** + * The AST of the source code. + * @type {object} + */ + ast; + + /** + * The text of the source code. + * @type {string} + */ + text; + + /** + * Creates a new instance. + * @param {Object} options The options for the instance. + * @param {string} options.text The source code text. + * @param {object} options.ast The root AST node. + * @param {RegExp} [options.lineEndingPattern] The pattern to match lineEndings in the source code. + */ + constructor({ text, ast, lineEndingPattern = /\r?\n/u }) { + this.ast = ast; + this.text = text; + this.#lines = text.split(lineEndingPattern); + } + + /** + * Returns the loc information for the given node or token. + * @param {object} nodeOrToken The node or token to get the loc information for. + * @returns {SourceLocation} The loc information for the node or token. + */ + getLoc(nodeOrToken) { + if (hasESTreeStyleLoc(nodeOrToken)) { + return nodeOrToken.loc; + } + + if (hasPosStyleLoc(nodeOrToken)) { + return nodeOrToken.position; + } + + throw new Error( + "Custom getLoc() method must be implemented in the subclass.", + ); + } + + /** + * Returns the range information for the given node or token. + * @param {object} nodeOrToken The node or token to get the range information for. + * @returns {SourceRange} The range information for the node or token. + */ + getRange(nodeOrToken) { + if (hasESTreeStyleRange(nodeOrToken)) { + return nodeOrToken.range; + } + + if (hasPosStyleRange(nodeOrToken)) { + return [ + nodeOrToken.position.start.offset, + nodeOrToken.position.end.offset, + ]; + } + + throw new Error( + "Custom getRange() method must be implemented in the subclass.", + ); + } + + /* eslint-disable no-unused-vars -- Required to complete interface. */ + /** + * Returns the parent of the given node. + * @param {object} node The node to get the parent of. + * @returns {object|undefined} The parent of the node. + */ + getParent(node) { + throw new Error("Not implemented."); + } + /* eslint-enable no-unused-vars -- Required to complete interface. */ + + /** + * Gets all the ancestors of a given node + * @param {object} node The node + * @returns {Array} All the ancestor nodes in the AST, not including the provided node, starting + * from the root node at index 0 and going inwards to the parent node. + * @throws {TypeError} When `node` is missing. + */ + getAncestors(node) { + if (!node) { + throw new TypeError("Missing required argument: node."); + } + + const ancestorsStartingAtParent = []; + + for ( + let ancestor = this.getParent(node); + ancestor; + ancestor = this.getParent(ancestor) + ) { + ancestorsStartingAtParent.push(ancestor); + } + + return ancestorsStartingAtParent.reverse(); + } + + /** + * Gets the source code for the given node. + * @param {object} [node] The AST node to get the text for. + * @param {number} [beforeCount] The number of characters before the node to retrieve. + * @param {number} [afterCount] The number of characters after the node to retrieve. + * @returns {string} The text representing the AST node. + * @public + */ + getText(node, beforeCount, afterCount) { + if (node) { + const range = this.getRange(node); + return this.text.slice( + Math.max(range[0] - (beforeCount || 0), 0), + range[1] + (afterCount || 0), + ); + } + return this.text; + } + + /** + * Gets the entire source text split into an array of lines. + * @returns {Array} The source text as an array of lines. + * @public + */ + get lines() { + return this.#lines; + } + + /** + * Traverse the source code and return the steps that were taken. + * @returns {Iterable} The steps that were taken while traversing the source code. + */ + traverse() { + throw new Error("Not implemented."); + } +} + +export { CallMethodStep, ConfigCommentParser, Directive, TextSourceCodeBase, VisitNodeStep }; diff --git a/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts b/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts new file mode 100644 index 00000000..e4a442a4 --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts @@ -0,0 +1,6 @@ +/** + * @fileoverview Types for the plugin-kit package. + * @author Nicholas C. Zakas + */ +export type StringConfig = Record; +export type BooleanConfig = Record; diff --git a/node_modules/@eslint/plugin-kit/dist/esm/types.ts b/node_modules/@eslint/plugin-kit/dist/esm/types.ts new file mode 100644 index 00000000..d3f6a888 --- /dev/null +++ b/node_modules/@eslint/plugin-kit/dist/esm/types.ts @@ -0,0 +1,7 @@ +/** + * @fileoverview Types for the plugin-kit package. + * @author Nicholas C. Zakas + */ + +export type StringConfig = Record; +export type BooleanConfig = Record; diff --git a/node_modules/@eslint/plugin-kit/package.json b/node_modules/@eslint/plugin-kit/package.json new file mode 100644 index 00000000..155d501e --- /dev/null +++ b/node_modules/@eslint/plugin-kit/package.json @@ -0,0 +1,62 @@ +{ + "name": "@eslint/plugin-kit", + "version": "0.2.3", + "description": "Utilities for building ESLint plugins.", + "author": "Nicholas C. Zakas", + "type": "module", + "main": "dist/esm/index.js", + "types": "dist/esm/index.d.ts", + "exports": { + "require": { + "types": "./dist/cjs/index.d.cts", + "default": "./dist/cjs/index.cjs" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + } + }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/eslint/rewrite.git" + }, + "bugs": { + "url": "https://github.com/eslint/rewrite/issues" + }, + "homepage": "https://github.com/eslint/rewrite#readme", + "scripts": { + "build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js", + "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"", + "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts", + "test:jsr": "npx jsr@latest publish --dry-run", + "pretest": "npm run build", + "test": "mocha tests/", + "test:coverage": "c8 npm test" + }, + "keywords": [ + "eslint", + "eslintplugin", + "eslint-plugin" + ], + "license": "Apache-2.0", + "devDependencies": { + "@eslint/core": "^0.9.0", + "c8": "^9.1.0", + "mocha": "^10.4.0", + "rollup": "^4.16.2", + "rollup-plugin-copy": "^3.5.0", + "typescript": "^5.4.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "dependencies": { + "levn": "^0.4.1" + } +} diff --git a/node_modules/@humanfs/core/LICENSE b/node_modules/@humanfs/core/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@humanfs/core/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@humanfs/core/README.md b/node_modules/@humanfs/core/README.md new file mode 100644 index 00000000..4f86d14d --- /dev/null +++ b/node_modules/@humanfs/core/README.md @@ -0,0 +1,140 @@ +# `@humanfs/core` + +by [Nicholas C. Zakas](https://humanwhocodes.com) + +If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star. + +## Description + +The core functionality for humanfs that is shared across all implementations for all runtimes. The contents of this package are intentionally runtime agnostic and are not intended to be used alone. + +Currently, this package simply exports the `Hfs` class, which is an abstract base class intended to be inherited from in runtime-specific hfs packages (like `@humanfs/node`). + +> [!WARNING] +> This project is **experimental** and may change significantly before v1.0.0. Use at your own caution and definitely not in production! + +## Installation + +### Node.js + +Install using your favorite package manager for Node.js: + +```shell +npm install @humanfs/core + +# or + +pnpm install @humanfs/core + +# or + +yarn add @humanfs/core + +# or + +bun install @humanfs/core +``` + +Then you can import the `Hfs` and `Path` classes like this: + +```js +import { Hfs, Path } from "@humanfs/core"; +``` + +### Deno + +Install using [JSR](https://jsr.io): + +```shell +deno add @humanfs/core + +# or + +jsr add @humanfs/core +``` + +Then you can import the `Hfs` class like this: + +```js +import { Hfs, Path } from "@humanfs/core"; +``` + +### Browser + +It's recommended to import the minified version to save bandwidth: + +```js +import { Hfs, Path } from "https://cdn.skypack.dev/@humanfs/core?min"; +``` + +However, you can also import the unminified version for debugging purposes: + +```js +import { Hfs, Path } from "https://cdn.skypack.dev/@humanfs/core"; +``` + +## Usage + +### `Hfs` Class + +The `Hfs` class contains all of the basic functionality for an `Hfs` instance *without* a predefined impl. This class is mostly used for creating runtime-specific impls, such as `NodeHfs` and `DenoHfs`. + +You can create your own instance by providing an `impl` directly: + +```js +const hfs = new Hfs({ impl: { async text() {} }}); +``` + +The specified `impl` becomes the base impl for the instance, meaning you can always reset back to it using `resetImpl()`. + +You can also inherit from `Hfs` to create your own class with a preconfigured impl, such as: + +```js +class MyHfs extends Hfs { + constructor() { + super({ + impl: myImpl + }); + } +} +``` + +### `Path` Class + +The `Path` class represents the path to a directory or file within a file system. It's an abstract representation that can be used even outside of traditional file systems where string paths might not make sense. + +```js +const myPath = new Path(["dir", "subdir"]); +console.log(myPath.toString()); // "dir/subdir" + +// add another step +myPath.push("file.txt"); +console.log(myPath.toString()); // "dir/subdir/file.txt" + +// get just the last step +console.log(myPath.name); // "file.txt" + +// change just the last step +myPath.name = "file.json"; +console.log(myPath.name); // "file.json" +console.log(myPath.toString()); // "dir/subdir/file.json" + +// get the size of the path +console.log(myPath.size); // 3 + +// remove the last step +myPath.pop(); +console.log(myPath.toString()); // "dir/subdir" + +// iterate over the steps +for (const step of myPath) { + // do something +} + +// create a new path from a string +const newPath = Path.fromString("/foo/bar"); +``` + +## License + +Apache 2.0 diff --git a/node_modules/@humanfs/core/dist/errors.d.ts b/node_modules/@humanfs/core/dist/errors.d.ts new file mode 100644 index 00000000..c885bbf4 --- /dev/null +++ b/node_modules/@humanfs/core/dist/errors.d.ts @@ -0,0 +1,64 @@ +/** + * @fileoverview Common error classes + * @author Nicholas C. Zakas + */ +/** + * Error thrown when a file or directory is not found. + */ +export class NotFoundError extends Error { + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message: string); + /** + * Error code. + * @type {string} + */ + code: string; +} +/** + * Error thrown when an operation is not permitted. + */ +export class PermissionError extends Error { + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message: string); + /** + * Error code. + * @type {string} + */ + code: string; +} +/** + * Error thrown when an operation is not allowed on a directory. + */ +export class DirectoryError extends Error { + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message: string); + /** + * Error code. + * @type {string} + */ + code: string; +} +/** + * Error thrown when a directory is not empty. + */ +export class NotEmptyError extends Error { + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message: string); + /** + * Error code. + * @type {string} + */ + code: string; +} diff --git a/node_modules/@humanfs/core/dist/fsx.d.ts b/node_modules/@humanfs/core/dist/fsx.d.ts new file mode 100644 index 00000000..ef85093a --- /dev/null +++ b/node_modules/@humanfs/core/dist/fsx.d.ts @@ -0,0 +1,193 @@ +/** + * @fileoverview The main file for the hfs package. + * @author Nicholas C. Zakas + */ +/** @typedef{import("@humanfs/types").HfsImpl} HfsImpl */ +/** @typedef{import("@humanfs/types").HfsDirectoryEntry} HfsDirectoryEntry */ +/** + * Error to represent when a method is missing on an impl. + */ +export class NoSuchMethodError extends Error { + /** + * Creates a new instance. + * @param {string} methodName The name of the method that was missing. + */ + constructor(methodName: string); +} +/** + * Error to represent when an impl is already set. + */ +export class ImplAlreadySetError extends Error { + /** + * Creates a new instance. + */ + constructor(); +} +/** + * A class representing a log entry. + */ +export class LogEntry { + /** + * Creates a new instance. + * @param {string} type The type of log entry. + * @param {any} [data] The data associated with the log entry. + */ + constructor(type: string, data?: any); + /** + * The time at which the log entry was created. + * @type {number} + */ + timestamp: number; + methodName: string; + data: any; + #private; +} +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class Hfs implements HfsImpl { + /** + * Creates a new instance. + * @param {object} options The options for the instance. + * @param {HfsImpl} options.impl The implementation to use. + */ + constructor({ impl }: { + impl: HfsImpl; + }); + /** + * Starts a new log with the given name. + * @param {string} name The name of the log to start; + * @returns {void} + * @throws {Error} When the log already exists. + * @throws {TypeError} When the name is not a non-empty string. + */ + logStart(name: string): void; + /** + * Ends a log with the given name and returns the entries. + * @param {string} name The name of the log to end. + * @returns {Array} The entries in the log. + * @throws {Error} When the log does not exist. + */ + logEnd(name: string): Array; + /** + * Determines if the current implementation is the base implementation. + * @returns {boolean} True if the current implementation is the base implementation. + */ + isBaseImpl(): boolean; + /** + * Sets the implementation for this instance. + * @param {object} impl The implementation to use. + * @returns {void} + */ + setImpl(impl: object): void; + /** + * Resets the implementation for this instance back to its original. + * @returns {void} + */ + resetImpl(): void; + /** + * Reads the given file and returns the contents as text. Assumes UTF-8 encoding. + * @param {string} filePath The file to read. + * @returns {Promise} The contents of the file. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + text(filePath: string): Promise; + /** + * Reads the given file and returns the contents as JSON. Assumes UTF-8 encoding. + * @param {string} filePath The file to read. + * @returns {Promise} The contents of the file as JSON. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {SyntaxError} When the file contents are not valid JSON. + * @throws {TypeError} When the file path is not a non-empty string. + */ + json(filePath: string): Promise; + /** + * Reads the given file and returns the contents as an ArrayBuffer. + * @param {string} filePath The file to read. + * @returns {Promise} The contents of the file as an ArrayBuffer. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + * @deprecated Use bytes() instead. + */ + arrayBuffer(filePath: string): Promise; + /** + * Reads the given file and returns the contents as an Uint8Array. + * @param {string} filePath The file to read. + * @returns {Promise} The contents of the file as an Uint8Array. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + bytes(filePath: string): Promise; + /** + * Writes the given data to the given file. Creates any necessary directories along the way. + * If the data is a string, UTF-8 encoding is used. + * @param {string} filePath The file to write. + * @param {any} contents The data to write. + * @returns {Promise} A promise that resolves when the file is written. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + write(filePath: string, contents: any): Promise; + /** + * Determines if the given file exists. + * @param {string} filePath The file to check. + * @returns {Promise} True if the file exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + isFile(filePath: string): Promise; + /** + * Determines if the given directory exists. + * @param {string} dirPath The directory to check. + * @returns {Promise} True if the directory exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + isDirectory(dirPath: string): Promise; + /** + * Creates the given directory. + * @param {string} dirPath The directory to create. + * @returns {Promise} A promise that resolves when the directory is created. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + createDirectory(dirPath: string): Promise; + /** + * Deletes the given file. + * @param {string} filePath The file to delete. + * @returns {Promise} A promise that resolves when the file is deleted. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + delete(filePath: string): Promise; + /** + * Deletes the given directory. + * @param {string} dirPath The directory to delete. + * @returns {Promise} A promise that resolves when the directory is deleted. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + deleteAll(dirPath: string): Promise; + /** + * Returns a list of directory entries for the given path. + * @param {string} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string. + * @throws {Error} If the directory cannot be read. + */ + list(dirPath: string): AsyncIterable; + /** + * Returns the size of the given file. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the file. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be read. + */ + size(filePath: string): Promise; + #private; +} +export type HfsImpl = import("@humanfs/types").HfsImpl; +export type HfsDirectoryEntry = import("@humanfs/types").HfsDirectoryEntry; diff --git a/node_modules/@humanfs/core/dist/hfs.d.ts b/node_modules/@humanfs/core/dist/hfs.d.ts new file mode 100644 index 00000000..69ec3681 --- /dev/null +++ b/node_modules/@humanfs/core/dist/hfs.d.ts @@ -0,0 +1,288 @@ +/** + * Error to represent when a method is missing on an impl. + */ +export class NoSuchMethodError extends Error { + /** + * Creates a new instance. + * @param {string} methodName The name of the method that was missing. + */ + constructor(methodName: string); +} +/** + * Error to represent when a method is not supported on an impl. This happens + * when a method on `Hfs` is called with one name and the corresponding method + * on the impl has a different name. (Example: `text()` and `bytes()`.) + */ +export class MethodNotSupportedError extends Error { + /** + * Creates a new instance. + * @param {string} methodName The name of the method that was missing. + */ + constructor(methodName: string); +} +/** + * Error to represent when an impl is already set. + */ +export class ImplAlreadySetError extends Error { + /** + * Creates a new instance. + */ + constructor(); +} +/** + * A class representing a log entry. + */ +export class LogEntry { + /** + * Creates a new instance. + * @param {string} type The type of log entry. + * @param {any} [data] The data associated with the log entry. + */ + constructor(type: string, data?: any); + /** + * The type of log entry. + * @type {string} + */ + type: string; + /** + * The data associated with the log entry. + * @type {any} + */ + data: any; + /** + * The time at which the log entry was created. + * @type {number} + */ + timestamp: number; +} +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class Hfs implements HfsImpl { + /** + * Creates a new instance. + * @param {object} options The options for the instance. + * @param {HfsImpl} options.impl The implementation to use. + */ + constructor({ impl }: { + impl: HfsImpl; + }); + /** + * Starts a new log with the given name. + * @param {string} name The name of the log to start; + * @returns {void} + * @throws {Error} When the log already exists. + * @throws {TypeError} When the name is not a non-empty string. + */ + logStart(name: string): void; + /** + * Ends a log with the given name and returns the entries. + * @param {string} name The name of the log to end. + * @returns {Array} The entries in the log. + * @throws {Error} When the log does not exist. + */ + logEnd(name: string): Array; + /** + * Determines if the current implementation is the base implementation. + * @returns {boolean} True if the current implementation is the base implementation. + */ + isBaseImpl(): boolean; + /** + * Sets the implementation for this instance. + * @param {object} impl The implementation to use. + * @returns {void} + */ + setImpl(impl: object): void; + /** + * Resets the implementation for this instance back to its original. + * @returns {void} + */ + resetImpl(): void; + /** + * Reads the given file and returns the contents as text. Assumes UTF-8 encoding. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + text(filePath: string | URL): Promise; + /** + * Reads the given file and returns the contents as JSON. Assumes UTF-8 encoding. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as JSON. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {SyntaxError} When the file contents are not valid JSON. + * @throws {TypeError} When the file path is not a non-empty string. + */ + json(filePath: string | URL): Promise; + /** + * Reads the given file and returns the contents as an ArrayBuffer. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as an ArrayBuffer. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + * @deprecated Use bytes() instead. + */ + arrayBuffer(filePath: string | URL): Promise; + /** + * Reads the given file and returns the contents as an Uint8Array. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as an Uint8Array. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + bytes(filePath: string | URL): Promise; + /** + * Writes the given data to the given file. Creates any necessary directories along the way. + * If the data is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The file to write. + * @param {string|ArrayBuffer|ArrayBufferView} contents The data to write. + * @returns {Promise} A promise that resolves when the file is written. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + write(filePath: string | URL, contents: string | ArrayBuffer | ArrayBufferView): Promise; + /** + * Appends the given data to the given file. Creates any necessary directories along the way. + * If the data is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The file to append to. + * @param {string|ArrayBuffer|ArrayBufferView} contents The data to append. + * @returns {Promise} A promise that resolves when the file is appended to. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + * @throws {TypeError} When the file contents are not a string or ArrayBuffer. + * @throws {Error} When the file cannot be appended to. + */ + append(filePath: string | URL, contents: string | ArrayBuffer | ArrayBufferView): Promise; + /** + * Determines if the given file exists. + * @param {string|URL} filePath The file to check. + * @returns {Promise} True if the file exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + isFile(filePath: string | URL): Promise; + /** + * Determines if the given directory exists. + * @param {string|URL} dirPath The directory to check. + * @returns {Promise} True if the directory exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + isDirectory(dirPath: string | URL): Promise; + /** + * Creates the given directory. + * @param {string|URL} dirPath The directory to create. + * @returns {Promise} A promise that resolves when the directory is created. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + createDirectory(dirPath: string | URL): Promise; + /** + * Deletes the given file or empty directory. + * @param {string|URL} filePath The file to delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + delete(filePath: string | URL): Promise; + /** + * Deletes the given file or directory recursively. + * @param {string|URL} dirPath The directory to delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + deleteAll(dirPath: string | URL): Promise; + /** + * Returns a list of directory entries for the given path. + * @param {string|URL} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be read. + */ + list(dirPath: string | URL): AsyncIterable; + /** + * Walks a directory using a depth-first traversal and returns the entries + * from the traversal. + * @param {string|URL} dirPath The path to the directory to walk. + * @param {Object} [options] The options for the walk. + * @param {(entry:HfsWalkEntry) => Promise|boolean} [options.directoryFilter] A filter function to determine + * if a directory's entries should be included in the walk. + * @param {(entry:HfsWalkEntry) => Promise|boolean} [options.entryFilter] A filter function to determine if + * an entry should be included in the walk. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be read. + */ + walk(dirPath: string | URL, { directoryFilter, entryFilter }?: { + directoryFilter?: (entry: HfsWalkEntry) => Promise | boolean; + entryFilter?: (entry: HfsWalkEntry) => Promise | boolean; + }): AsyncIterable; + /** + * Returns the size of the given file. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the file. + * @throws {TypeError} If the file path is not a string or URL. + * @throws {Error} If the file cannot be read. + */ + size(filePath: string | URL): Promise; + /** + * Returns the last modified timestamp of the given file or directory. + * @param {string|URL} fileOrDirPath The path to the file or directory. + * @returns {Promise} A promise that resolves with the last modified date + * or undefined if the file or directory does not exist. + * @throws {TypeError} If the path is not a string or URL. + */ + lastModified(fileOrDirPath: string | URL): Promise; + /** + * Copys a file from one location to another. + * @param {string|URL} source The path to the file to copy. + * @param {string|URL} destination The path to the new file. + * @returns {Promise} A promise that resolves when the file is copied. + * @throws {TypeError} If the file path is not a string or URL. + * @throws {Error} If the file cannot be copied. + */ + copy(source: string | URL, destination: string | URL): Promise; + /** + * Copies a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to copy. + * @param {string|URL} destination The path to copy the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * copied. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be copied. + */ + copyAll(source: string | URL, destination: string | URL): Promise; + /** + * Moves a file from the source path to the destination path. + * @param {string|URL} source The location of the file to move. + * @param {string|URL} destination The destination of the file to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file or directory paths are not strings. + * @throws {Error} If the file or directory cannot be moved. + */ + move(source: string | URL, destination: string | URL): Promise; + /** + * Moves a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to move. + * @param {string|URL} destination The path to move the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * moved. + * @throws {TypeError} If the source is not a string or URL. + * @throws {TypeError} If the destination is not a string or URL. + * @throws {Error} If the file or directory cannot be moved. + */ + moveAll(source: string | URL, destination: string | URL): Promise; + #private; +} +export type HfsImpl = import("@humanfs/types").HfsImpl; +export type HfsDirectoryEntry = import("@humanfs/types").HfsDirectoryEntry; +export type HfsWalkEntry = import("@humanfs/types").HfsWalkEntry; diff --git a/node_modules/@humanfs/core/dist/index.d.ts b/node_modules/@humanfs/core/dist/index.d.ts new file mode 100644 index 00000000..d2dd30f1 --- /dev/null +++ b/node_modules/@humanfs/core/dist/index.d.ts @@ -0,0 +1,3 @@ +export { Hfs } from "./hfs.js"; +export { Path } from "./path.js"; +export * from "./errors.js"; diff --git a/node_modules/@humanfs/core/dist/path.d.ts b/node_modules/@humanfs/core/dist/path.d.ts new file mode 100644 index 00000000..6e29395b --- /dev/null +++ b/node_modules/@humanfs/core/dist/path.d.ts @@ -0,0 +1,82 @@ +export class Path { + /** + * Creates a new path based on the argument type. If the argument is a string, + * it is assumed to be a file or directory path and is converted to a Path + * instance. If the argument is a URL, it is assumed to be a file URL and is + * converted to a Path instance. If the argument is a Path instance, it is + * copied into a new Path instance. If the argument is an array, it is assumed + * to be the steps of a path and is used to create a new Path instance. + * @param {string|URL|Path|Array} pathish The value to convert to a Path instance. + * @returns {Path} A new Path instance. + * @throws {TypeError} When pathish is not a string, URL, Path, or Array. + * @throws {TypeError} When pathish is a string and is empty. + */ + static from(pathish: string | URL | Path | Array): Path; + /** + * Creates a new Path instance from a string. + * @param {string} fileOrDirPath The file or directory path to convert. + * @returns {Path} A new Path instance. + * @deprecated Use Path.from() instead. + */ + static fromString(fileOrDirPath: string): Path; + /** + * Creates a new Path instance from a URL. + * @param {URL} url The URL to convert. + * @returns {Path} A new Path instance. + * @throws {TypeError} When url is not a URL instance. + * @throws {TypeError} When url.pathname is empty. + * @throws {TypeError} When url.protocol is not "file:". + * @deprecated Use Path.from() instead. + */ + static fromURL(url: URL): Path; + /** + * Creates a new instance. + * @param {Iterable} [steps] The steps to use for the path. + * @throws {TypeError} When steps is not iterable. + */ + constructor(steps?: Iterable); + /** + * Adds steps to the end of the path. + * @param {...string} steps The steps to add to the path. + * @returns {void} + */ + push(...steps: string[]): void; + /** + * Removes the last step from the path. + * @returns {string} The last step in the path. + */ + pop(): string; + /** + * Returns an iterator for steps in the path. + * @returns {IterableIterator} An iterator for the steps in the path. + */ + steps(): IterableIterator; + /** + * Sets the name (the last step) of the path. + * @type {string} + */ + set name(value: string); + /** + * Retrieves the name (the last step) of the path. + * @type {string} + */ + get name(): string; + /** + * Retrieves the size of the path. + * @type {number} + */ + get size(): number; + /** + * Returns the path as a string. + * @returns {string} The path as a string. + */ + toString(): string; + /** + * Returns an iterator for the steps in the path. + * @returns {IterableIterator} An iterator for the steps in the path. + */ + [Symbol.iterator](): IterableIterator; + #private; +} +export type HfsImpl = import("@humanfs/types").HfsImpl; +export type HfsDirectoryEntry = import("@humanfs/types").HfsDirectoryEntry; diff --git a/node_modules/@humanfs/core/package.json b/node_modules/@humanfs/core/package.json new file mode 100644 index 00000000..e1f9f40f --- /dev/null +++ b/node_modules/@humanfs/core/package.json @@ -0,0 +1,52 @@ +{ + "name": "@humanfs/core", + "version": "0.19.1", + "description": "The core of the humanfs library.", + "type": "module", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "exports": { + "import": { + "types": "./dist/index.d.ts", + "default": "./src/index.js" + } + }, + "files": [ + "dist", + "src" + ], + "scripts": { + "build": "tsc", + "prepare": "npm run build", + "pretest": "npm run build", + "test": "c8 mocha tests" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/humanwhocodes/humanfs.git" + }, + "publishConfig": { + "access": "public" + }, + "keywords": [ + "filesystem", + "fs", + "hfs", + "files" + ], + "author": "Nicholas C. Zakas", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/humanwhocodes/humanfs/issues" + }, + "homepage": "https://github.com/humanwhocodes/humanfs#readme", + "engines": { + "node": ">=18.18.0" + }, + "devDependencies": { + "@humanfs/types": "^0.15.0", + "c8": "^9.0.0", + "mocha": "^10.2.0", + "typescript": "^5.2.2" + } +} diff --git a/node_modules/@humanfs/core/src/errors.js b/node_modules/@humanfs/core/src/errors.js new file mode 100644 index 00000000..8fb35be7 --- /dev/null +++ b/node_modules/@humanfs/core/src/errors.js @@ -0,0 +1,105 @@ +/** + * @fileoverview Common error classes + * @author Nicholas C. Zakas + */ + +/** + * Error thrown when a file or directory is not found. + */ +export class NotFoundError extends Error { + /** + * Name of the error class. + * @type {string} + */ + name = "NotFoundError"; + + /** + * Error code. + * @type {string} + */ + code = "ENOENT"; + + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message) { + super(`ENOENT: No such file or directory, ${message}`); + } +} + +/** + * Error thrown when an operation is not permitted. + */ +export class PermissionError extends Error { + /** + * Name of the error class. + * @type {string} + */ + name = "PermissionError"; + + /** + * Error code. + * @type {string} + */ + code = "EPERM"; + + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message) { + super(`EPERM: Operation not permitted, ${message}`); + } +} + +/** + * Error thrown when an operation is not allowed on a directory. + */ + +export class DirectoryError extends Error { + /** + * Name of the error class. + * @type {string} + */ + name = "DirectoryError"; + + /** + * Error code. + * @type {string} + */ + code = "EISDIR"; + + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message) { + super(`EISDIR: Illegal operation on a directory, ${message}`); + } +} + +/** + * Error thrown when a directory is not empty. + */ +export class NotEmptyError extends Error { + /** + * Name of the error class. + * @type {string} + */ + name = "NotEmptyError"; + + /** + * Error code. + * @type {string} + */ + code = "ENOTEMPTY"; + + /** + * Creates a new instance. + * @param {string} message The error message. + */ + constructor(message) { + super(`ENOTEMPTY: Directory not empty, ${message}`); + } +} diff --git a/node_modules/@humanfs/core/src/hfs.js b/node_modules/@humanfs/core/src/hfs.js new file mode 100644 index 00000000..38ee31c5 --- /dev/null +++ b/node_modules/@humanfs/core/src/hfs.js @@ -0,0 +1,699 @@ +/** + * @fileoverview The main file for the humanfs package. + * @author Nicholas C. Zakas + */ + +/* global URL, TextDecoder, TextEncoder */ + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("@humanfs/types").HfsImpl} HfsImpl */ +/** @typedef {import("@humanfs/types").HfsDirectoryEntry} HfsDirectoryEntry */ +/** @typedef {import("@humanfs/types").HfsWalkEntry} HfsWalkEntry */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +const decoder = new TextDecoder(); +const encoder = new TextEncoder(); + +/** + * Error to represent when a method is missing on an impl. + */ +export class NoSuchMethodError extends Error { + /** + * Creates a new instance. + * @param {string} methodName The name of the method that was missing. + */ + constructor(methodName) { + super(`Method "${methodName}" does not exist on impl.`); + } +} + +/** + * Error to represent when a method is not supported on an impl. This happens + * when a method on `Hfs` is called with one name and the corresponding method + * on the impl has a different name. (Example: `text()` and `bytes()`.) + */ +export class MethodNotSupportedError extends Error { + /** + * Creates a new instance. + * @param {string} methodName The name of the method that was missing. + */ + constructor(methodName) { + super(`Method "${methodName}" is not supported on this impl.`); + } +} + +/** + * Error to represent when an impl is already set. + */ +export class ImplAlreadySetError extends Error { + /** + * Creates a new instance. + */ + constructor() { + super(`Implementation already set.`); + } +} + +/** + * Asserts that the given path is a valid file path. + * @param {any} fileOrDirPath The path to check. + * @returns {void} + * @throws {TypeError} When the path is not a non-empty string. + */ +function assertValidFileOrDirPath(fileOrDirPath) { + if ( + !fileOrDirPath || + (!(fileOrDirPath instanceof URL) && typeof fileOrDirPath !== "string") + ) { + throw new TypeError("Path must be a non-empty string or URL."); + } +} + +/** + * Asserts that the given file contents are valid. + * @param {any} contents The contents to check. + * @returns {void} + * @throws {TypeError} When the contents are not a string or ArrayBuffer. + */ +function assertValidFileContents(contents) { + if ( + typeof contents !== "string" && + !(contents instanceof ArrayBuffer) && + !ArrayBuffer.isView(contents) + ) { + throw new TypeError( + "File contents must be a string, ArrayBuffer, or ArrayBuffer view.", + ); + } +} + +/** + * Converts the given contents to Uint8Array. + * @param {any} contents The data to convert. + * @returns {Uint8Array} The converted Uint8Array. + * @throws {TypeError} When the contents are not a string or ArrayBuffer. + */ +function toUint8Array(contents) { + if (contents instanceof Uint8Array) { + return contents; + } + + if (typeof contents === "string") { + return encoder.encode(contents); + } + + if (contents instanceof ArrayBuffer) { + return new Uint8Array(contents); + } + + if (ArrayBuffer.isView(contents)) { + const bytes = contents.buffer.slice( + contents.byteOffset, + contents.byteOffset + contents.byteLength, + ); + return new Uint8Array(bytes); + } + throw new TypeError( + "Invalid contents type. Expected string or ArrayBuffer.", + ); +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class representing a log entry. + */ +export class LogEntry { + /** + * The type of log entry. + * @type {string} + */ + type; + + /** + * The data associated with the log entry. + * @type {any} + */ + data; + + /** + * The time at which the log entry was created. + * @type {number} + */ + timestamp = Date.now(); + + /** + * Creates a new instance. + * @param {string} type The type of log entry. + * @param {any} [data] The data associated with the log entry. + */ + constructor(type, data) { + this.type = type; + this.data = data; + } +} + +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class Hfs { + /** + * The base implementation for this instance. + * @type {HfsImpl} + */ + #baseImpl; + + /** + * The current implementation for this instance. + * @type {HfsImpl} + */ + #impl; + + /** + * A map of log names to their corresponding entries. + * @type {Map>} + */ + #logs = new Map(); + + /** + * Creates a new instance. + * @param {object} options The options for the instance. + * @param {HfsImpl} options.impl The implementation to use. + */ + constructor({ impl }) { + this.#baseImpl = impl; + this.#impl = impl; + } + + /** + * Logs an entry onto all currently open logs. + * @param {string} methodName The name of the method being called. + * @param {...*} args The arguments to the method. + * @returns {void} + */ + #log(methodName, ...args) { + for (const logs of this.#logs.values()) { + logs.push(new LogEntry("call", { methodName, args })); + } + } + + /** + * Starts a new log with the given name. + * @param {string} name The name of the log to start; + * @returns {void} + * @throws {Error} When the log already exists. + * @throws {TypeError} When the name is not a non-empty string. + */ + logStart(name) { + if (!name || typeof name !== "string") { + throw new TypeError("Log name must be a non-empty string."); + } + + if (this.#logs.has(name)) { + throw new Error(`Log "${name}" already exists.`); + } + + this.#logs.set(name, []); + } + + /** + * Ends a log with the given name and returns the entries. + * @param {string} name The name of the log to end. + * @returns {Array} The entries in the log. + * @throws {Error} When the log does not exist. + */ + logEnd(name) { + if (this.#logs.has(name)) { + const logs = this.#logs.get(name); + this.#logs.delete(name); + return logs; + } + + throw new Error(`Log "${name}" does not exist.`); + } + + /** + * Determines if the current implementation is the base implementation. + * @returns {boolean} True if the current implementation is the base implementation. + */ + isBaseImpl() { + return this.#impl === this.#baseImpl; + } + + /** + * Sets the implementation for this instance. + * @param {object} impl The implementation to use. + * @returns {void} + */ + setImpl(impl) { + this.#log("implSet", impl); + + if (this.#impl !== this.#baseImpl) { + throw new ImplAlreadySetError(); + } + + this.#impl = impl; + } + + /** + * Resets the implementation for this instance back to its original. + * @returns {void} + */ + resetImpl() { + this.#log("implReset"); + this.#impl = this.#baseImpl; + } + + /** + * Asserts that the given method exists on the current implementation. + * @param {string} methodName The name of the method to check. + * @returns {void} + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + */ + #assertImplMethod(methodName) { + if (typeof this.#impl[methodName] !== "function") { + throw new NoSuchMethodError(methodName); + } + } + + /** + * Asserts that the given method exists on the current implementation, and if not, + * throws an error with a different method name. + * @param {string} methodName The name of the method to check. + * @param {string} targetMethodName The name of the method that should be reported + * as an error when methodName does not exist. + * @returns {void} + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + */ + #assertImplMethodAlt(methodName, targetMethodName) { + if (typeof this.#impl[methodName] !== "function") { + throw new MethodNotSupportedError(targetMethodName); + } + } + + /** + * Calls the given method on the current implementation. + * @param {string} methodName The name of the method to call. + * @param {...any} args The arguments to the method. + * @returns {any} The return value from the method. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + */ + #callImplMethod(methodName, ...args) { + this.#log(methodName, ...args); + this.#assertImplMethod(methodName); + return this.#impl[methodName](...args); + } + + /** + * Calls the given method on the current implementation and doesn't log the call. + * @param {string} methodName The name of the method to call. + * @param {...any} args The arguments to the method. + * @returns {any} The return value from the method. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + */ + #callImplMethodWithoutLog(methodName, ...args) { + this.#assertImplMethod(methodName); + return this.#impl[methodName](...args); + } + + /** + * Calls the given method on the current implementation but logs a different method name. + * @param {string} methodName The name of the method to call. + * @param {string} targetMethodName The name of the method to log. + * @param {...any} args The arguments to the method. + * @returns {any} The return value from the method. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + */ + #callImplMethodAlt(methodName, targetMethodName, ...args) { + this.#log(targetMethodName, ...args); + this.#assertImplMethodAlt(methodName, targetMethodName); + return this.#impl[methodName](...args); + } + + /** + * Reads the given file and returns the contents as text. Assumes UTF-8 encoding. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async text(filePath) { + assertValidFileOrDirPath(filePath); + + const result = await this.#callImplMethodAlt("bytes", "text", filePath); + return result ? decoder.decode(result) : undefined; + } + + /** + * Reads the given file and returns the contents as JSON. Assumes UTF-8 encoding. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as JSON. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {SyntaxError} When the file contents are not valid JSON. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async json(filePath) { + assertValidFileOrDirPath(filePath); + + const result = await this.#callImplMethodAlt("bytes", "json", filePath); + return result ? JSON.parse(decoder.decode(result)) : undefined; + } + + /** + * Reads the given file and returns the contents as an ArrayBuffer. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as an ArrayBuffer. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + * @deprecated Use bytes() instead. + */ + async arrayBuffer(filePath) { + assertValidFileOrDirPath(filePath); + + const result = await this.#callImplMethodAlt( + "bytes", + "arrayBuffer", + filePath, + ); + return result?.buffer; + } + + /** + * Reads the given file and returns the contents as an Uint8Array. + * @param {string|URL} filePath The file to read. + * @returns {Promise} The contents of the file as an Uint8Array. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async bytes(filePath) { + assertValidFileOrDirPath(filePath); + return this.#callImplMethod("bytes", filePath); + } + + /** + * Writes the given data to the given file. Creates any necessary directories along the way. + * If the data is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The file to write. + * @param {string|ArrayBuffer|ArrayBufferView} contents The data to write. + * @returns {Promise} A promise that resolves when the file is written. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async write(filePath, contents) { + assertValidFileOrDirPath(filePath); + assertValidFileContents(contents); + this.#log("write", filePath, contents); + + let value = toUint8Array(contents); + return this.#callImplMethodWithoutLog("write", filePath, value); + } + + /** + * Appends the given data to the given file. Creates any necessary directories along the way. + * If the data is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The file to append to. + * @param {string|ArrayBuffer|ArrayBufferView} contents The data to append. + * @returns {Promise} A promise that resolves when the file is appended to. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + * @throws {TypeError} When the file contents are not a string or ArrayBuffer. + * @throws {Error} When the file cannot be appended to. + */ + async append(filePath, contents) { + assertValidFileOrDirPath(filePath); + assertValidFileContents(contents); + this.#log("append", filePath, contents); + + let value = toUint8Array(contents); + return this.#callImplMethodWithoutLog("append", filePath, value); + } + + /** + * Determines if the given file exists. + * @param {string|URL} filePath The file to check. + * @returns {Promise} True if the file exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async isFile(filePath) { + assertValidFileOrDirPath(filePath); + return this.#callImplMethod("isFile", filePath); + } + + /** + * Determines if the given directory exists. + * @param {string|URL} dirPath The directory to check. + * @returns {Promise} True if the directory exists. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + async isDirectory(dirPath) { + assertValidFileOrDirPath(dirPath); + return this.#callImplMethod("isDirectory", dirPath); + } + + /** + * Creates the given directory. + * @param {string|URL} dirPath The directory to create. + * @returns {Promise} A promise that resolves when the directory is created. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + async createDirectory(dirPath) { + assertValidFileOrDirPath(dirPath); + return this.#callImplMethod("createDirectory", dirPath); + } + + /** + * Deletes the given file or empty directory. + * @param {string|URL} filePath The file to delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the file path is not a non-empty string. + */ + async delete(filePath) { + assertValidFileOrDirPath(filePath); + return this.#callImplMethod("delete", filePath); + } + + /** + * Deletes the given file or directory recursively. + * @param {string|URL} dirPath The directory to delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {NoSuchMethodError} When the method does not exist on the current implementation. + * @throws {TypeError} When the directory path is not a non-empty string. + */ + async deleteAll(dirPath) { + assertValidFileOrDirPath(dirPath); + return this.#callImplMethod("deleteAll", dirPath); + } + + /** + * Returns a list of directory entries for the given path. + * @param {string|URL} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be read. + */ + async *list(dirPath) { + assertValidFileOrDirPath(dirPath); + yield* await this.#callImplMethod("list", dirPath); + } + + /** + * Walks a directory using a depth-first traversal and returns the entries + * from the traversal. + * @param {string|URL} dirPath The path to the directory to walk. + * @param {Object} [options] The options for the walk. + * @param {(entry:HfsWalkEntry) => Promise|boolean} [options.directoryFilter] A filter function to determine + * if a directory's entries should be included in the walk. + * @param {(entry:HfsWalkEntry) => Promise|boolean} [options.entryFilter] A filter function to determine if + * an entry should be included in the walk. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be read. + */ + async *walk( + dirPath, + { directoryFilter = () => true, entryFilter = () => true } = {}, + ) { + assertValidFileOrDirPath(dirPath); + this.#log("walk", dirPath, { directoryFilter, entryFilter }); + + // inner function for recursion without additional logging + const walk = async function* ( + dirPath, + { directoryFilter, entryFilter, parentPath = "", depth = 1 }, + ) { + let dirEntries; + + try { + dirEntries = await this.#callImplMethodWithoutLog( + "list", + dirPath, + ); + } catch (error) { + // if the directory does not exist then return an empty array + if (error.code === "ENOENT") { + return; + } + + // otherwise, rethrow the error + throw error; + } + + for await (const listEntry of dirEntries) { + const walkEntry = { + path: listEntry.name, + depth, + ...listEntry, + }; + + if (parentPath) { + walkEntry.path = `${parentPath}/${walkEntry.path}`; + } + + // first emit the entry but only if the entry filter returns true + let shouldEmitEntry = entryFilter(walkEntry); + if (shouldEmitEntry.then) { + shouldEmitEntry = await shouldEmitEntry; + } + + if (shouldEmitEntry) { + yield walkEntry; + } + + // if it's a directory then yield the entry and walk the directory + if (listEntry.isDirectory) { + // if the directory filter returns false, skip the directory + let shouldWalkDirectory = directoryFilter(walkEntry); + if (shouldWalkDirectory.then) { + shouldWalkDirectory = await shouldWalkDirectory; + } + + if (!shouldWalkDirectory) { + continue; + } + + // make sure there's a trailing slash on the directory path before appending + const directoryPath = + dirPath instanceof URL + ? new URL( + listEntry.name, + dirPath.href.endsWith("/") + ? dirPath.href + : `${dirPath.href}/`, + ) + : `${dirPath.endsWith("/") ? dirPath : `${dirPath}/`}${listEntry.name}`; + + yield* walk(directoryPath, { + directoryFilter, + entryFilter, + parentPath: walkEntry.path, + depth: depth + 1, + }); + } + } + }.bind(this); + + yield* walk(dirPath, { directoryFilter, entryFilter }); + } + + /** + * Returns the size of the given file. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the file. + * @throws {TypeError} If the file path is not a string or URL. + * @throws {Error} If the file cannot be read. + */ + async size(filePath) { + assertValidFileOrDirPath(filePath); + return this.#callImplMethod("size", filePath); + } + + /** + * Returns the last modified timestamp of the given file or directory. + * @param {string|URL} fileOrDirPath The path to the file or directory. + * @returns {Promise} A promise that resolves with the last modified date + * or undefined if the file or directory does not exist. + * @throws {TypeError} If the path is not a string or URL. + */ + async lastModified(fileOrDirPath) { + assertValidFileOrDirPath(fileOrDirPath); + return this.#callImplMethod("lastModified", fileOrDirPath); + } + + /** + * Copys a file from one location to another. + * @param {string|URL} source The path to the file to copy. + * @param {string|URL} destination The path to the new file. + * @returns {Promise} A promise that resolves when the file is copied. + * @throws {TypeError} If the file path is not a string or URL. + * @throws {Error} If the file cannot be copied. + */ + async copy(source, destination) { + assertValidFileOrDirPath(source); + assertValidFileOrDirPath(destination); + return this.#callImplMethod("copy", source, destination); + } + + /** + * Copies a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to copy. + * @param {string|URL} destination The path to copy the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * copied. + * @throws {TypeError} If the directory path is not a string or URL. + * @throws {Error} If the directory cannot be copied. + */ + async copyAll(source, destination) { + assertValidFileOrDirPath(source); + assertValidFileOrDirPath(destination); + return this.#callImplMethod("copyAll", source, destination); + } + + /** + * Moves a file from the source path to the destination path. + * @param {string|URL} source The location of the file to move. + * @param {string|URL} destination The destination of the file to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file or directory paths are not strings. + * @throws {Error} If the file or directory cannot be moved. + */ + async move(source, destination) { + assertValidFileOrDirPath(source); + assertValidFileOrDirPath(destination); + return this.#callImplMethod("move", source, destination); + } + + /** + * Moves a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to move. + * @param {string|URL} destination The path to move the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * moved. + * @throws {TypeError} If the source is not a string or URL. + * @throws {TypeError} If the destination is not a string or URL. + * @throws {Error} If the file or directory cannot be moved. + */ + async moveAll(source, destination) { + assertValidFileOrDirPath(source); + assertValidFileOrDirPath(destination); + return this.#callImplMethod("moveAll", source, destination); + } +} diff --git a/node_modules/@humanfs/core/src/index.js b/node_modules/@humanfs/core/src/index.js new file mode 100644 index 00000000..1b662d48 --- /dev/null +++ b/node_modules/@humanfs/core/src/index.js @@ -0,0 +1,8 @@ +/** + * @fileoverview API entrypoint for hfs/core + * @author Nicholas C. Zakas + */ + +export { Hfs } from "./hfs.js"; +export { Path } from "./path.js"; +export * from "./errors.js"; diff --git a/node_modules/@humanfs/core/src/path.js b/node_modules/@humanfs/core/src/path.js new file mode 100644 index 00000000..4798091b --- /dev/null +++ b/node_modules/@humanfs/core/src/path.js @@ -0,0 +1,237 @@ +/** + * @fileoverview The Path class. + * @author Nicholas C. Zakas + */ + +/* globals URL */ + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef{import("@humanfs/types").HfsImpl} HfsImpl */ +/** @typedef{import("@humanfs/types").HfsDirectoryEntry} HfsDirectoryEntry */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Normalizes a path to use forward slashes. + * @param {string} filePath The path to normalize. + * @returns {string} The normalized path. + */ +function normalizePath(filePath) { + let startIndex = 0; + let endIndex = filePath.length; + + if (/[a-z]:\//i.test(filePath)) { + startIndex = 3; + } + + if (filePath.startsWith("./")) { + startIndex = 2; + } + + if (filePath.startsWith("/")) { + startIndex = 1; + } + + if (filePath.endsWith("/")) { + endIndex = filePath.length - 1; + } + + return filePath.slice(startIndex, endIndex).replace(/\\/g, "/"); +} + +/** + * Asserts that the given name is a non-empty string, no equal to "." or "..", + * and does not contain a forward slash or backslash. + * @param {string} name The name to check. + * @returns {void} + * @throws {TypeError} When name is not valid. + */ +function assertValidName(name) { + if (typeof name !== "string") { + throw new TypeError("name must be a string"); + } + + if (!name) { + throw new TypeError("name cannot be empty"); + } + + if (name === ".") { + throw new TypeError(`name cannot be "."`); + } + + if (name === "..") { + throw new TypeError(`name cannot be ".."`); + } + + if (name.includes("/") || name.includes("\\")) { + throw new TypeError( + `name cannot contain a slash or backslash: "${name}"`, + ); + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +export class Path { + /** + * The steps in the path. + * @type {Array} + */ + #steps; + + /** + * Creates a new instance. + * @param {Iterable} [steps] The steps to use for the path. + * @throws {TypeError} When steps is not iterable. + */ + constructor(steps = []) { + if (typeof steps[Symbol.iterator] !== "function") { + throw new TypeError("steps must be iterable"); + } + + this.#steps = [...steps]; + this.#steps.forEach(assertValidName); + } + + /** + * Adds steps to the end of the path. + * @param {...string} steps The steps to add to the path. + * @returns {void} + */ + push(...steps) { + steps.forEach(assertValidName); + this.#steps.push(...steps); + } + + /** + * Removes the last step from the path. + * @returns {string} The last step in the path. + */ + pop() { + return this.#steps.pop(); + } + + /** + * Returns an iterator for steps in the path. + * @returns {IterableIterator} An iterator for the steps in the path. + */ + steps() { + return this.#steps.values(); + } + + /** + * Returns an iterator for the steps in the path. + * @returns {IterableIterator} An iterator for the steps in the path. + */ + [Symbol.iterator]() { + return this.steps(); + } + + /** + * Retrieves the name (the last step) of the path. + * @type {string} + */ + get name() { + return this.#steps[this.#steps.length - 1]; + } + + /** + * Sets the name (the last step) of the path. + * @type {string} + */ + set name(value) { + assertValidName(value); + this.#steps[this.#steps.length - 1] = value; + } + + /** + * Retrieves the size of the path. + * @type {number} + */ + get size() { + return this.#steps.length; + } + + /** + * Returns the path as a string. + * @returns {string} The path as a string. + */ + toString() { + return this.#steps.join("/"); + } + + /** + * Creates a new path based on the argument type. If the argument is a string, + * it is assumed to be a file or directory path and is converted to a Path + * instance. If the argument is a URL, it is assumed to be a file URL and is + * converted to a Path instance. If the argument is a Path instance, it is + * copied into a new Path instance. If the argument is an array, it is assumed + * to be the steps of a path and is used to create a new Path instance. + * @param {string|URL|Path|Array} pathish The value to convert to a Path instance. + * @returns {Path} A new Path instance. + * @throws {TypeError} When pathish is not a string, URL, Path, or Array. + * @throws {TypeError} When pathish is a string and is empty. + */ + static from(pathish) { + if (typeof pathish === "string") { + if (!pathish) { + throw new TypeError("argument cannot be empty"); + } + + return Path.fromString(pathish); + } + + if (pathish instanceof URL) { + return Path.fromURL(pathish); + } + + if (pathish instanceof Path || Array.isArray(pathish)) { + return new Path(pathish); + } + + throw new TypeError("argument must be a string, URL, Path, or Array"); + } + + /** + * Creates a new Path instance from a string. + * @param {string} fileOrDirPath The file or directory path to convert. + * @returns {Path} A new Path instance. + * @deprecated Use Path.from() instead. + */ + static fromString(fileOrDirPath) { + return new Path(normalizePath(fileOrDirPath).split("/")); + } + + /** + * Creates a new Path instance from a URL. + * @param {URL} url The URL to convert. + * @returns {Path} A new Path instance. + * @throws {TypeError} When url is not a URL instance. + * @throws {TypeError} When url.pathname is empty. + * @throws {TypeError} When url.protocol is not "file:". + * @deprecated Use Path.from() instead. + */ + static fromURL(url) { + if (!(url instanceof URL)) { + throw new TypeError("url must be a URL instance"); + } + + if (!url.pathname || url.pathname === "/") { + throw new TypeError("url.pathname cannot be empty"); + } + + if (url.protocol !== "file:") { + throw new TypeError(`url.protocol must be "file:"`); + } + + // Remove leading slash in pathname + return new Path(normalizePath(url.pathname.slice(1)).split("/")); + } +} diff --git a/node_modules/@humanfs/node/LICENSE b/node_modules/@humanfs/node/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@humanfs/node/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@humanfs/node/README.md b/node_modules/@humanfs/node/README.md new file mode 100644 index 00000000..c3e4be47 --- /dev/null +++ b/node_modules/@humanfs/node/README.md @@ -0,0 +1,141 @@ +# `@humanfs/node` + +by [Nicholas C. Zakas](https://humanwhocodes.com) + +If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star. + +## Description + +The `hfs` bindings for use in Node.js and Node.js-compatible runtimes. + +> [!WARNING] +> This project is **experimental** and may change significantly before v1.0.0. Use at your own caution and definitely not in production! + +## Installation + +Install using your favorite package manager: + +```shell +npm install @humanfs/node + +# or + +pnpm install @humanfs/node + +# or + +yarn add @humanfs/node + +# or + +bun install @humanfs/node +``` + +## Usage + +The easiest way to use hfs in your project is to import the `hfs` object: + +```js +import { hfs } from "@humanfs/node"; +``` + +Then, you can use the API methods: + +```js +// 1. Files + +// read from a text file +const text = await hfs.text("file.txt"); + +// read from a JSON file +const json = await hfs.json("file.json"); + +// read raw bytes from a text file +const arrayBuffer = await hfs.arrayBuffer("file.txt"); + +// write text to a file +await hfs.write("file.txt", "Hello world!"); + +// write bytes to a file +await hfs.write("file.txt", new TextEncoder().encode("Hello world!")); + +// append text to a file +await hfs.append("file.txt", "Hello world!"); + +// append bytes to a file +await hfs.append("file.txt", new TextEncoder().encode("Hello world!")); + +// does the file exist? +const found = await hfs.isFile("file.txt"); + +// how big is the file? +const size = await hfs.size("file.txt"); + +// when was the file modified? +const mtime = await hfs.lastModified("file.txt"); + +// copy a file from one location to another +await hfs.copy("file.txt", "file-copy.txt"); + +// move a file from one location to another +await hfs.move("file.txt", "renamed.txt"); + +// delete a file +await hfs.delete("file.txt"); + +// 2. Directories + +// create a directory +await hfs.createDirectory("dir"); + +// create a directory recursively +await hfs.createDirectory("dir/subdir"); + +// does the directory exist? +const dirFound = await hfs.isDirectory("dir"); + +// copy the entire directory +hfs.copyAll("from-dir", "to-dir"); + +// move the entire directory +hfs.moveAll("from-dir", "to-dir"); + +// delete a directory +await hfs.delete("dir"); + +// delete a non-empty directory +await hfs.deleteAll("dir"); +``` + +If you'd like to create your own instance, import the `NodeHfs` constructor: + +```js +import { NodeHfs } from "@humanfs/node"; +import fsp from "fs/promises"; + +const hfs = new NodeHfs(); + +// optionally specify the fs/promises object to use +const hfs = new NodeHfs({ fsp }); +``` + +If you'd like to use just the impl, import the `NodeHfsImpl` constructor: + +```js +import { NodeHfsImpl } from "@humanfs/node"; +import fsp from "fs/promises"; + +const hfs = new NodeHfsImpl(); + +// optionally specify the fs/promises object to use +const hfs = new NodeHfsImpl({ fsp }); +``` + +## Errors Handled + +* `ENOENT` - in most cases, these errors are handled silently. +* `ENFILE` and `EMFILE` - calls that result in these errors are retried for up to 60 seconds before giving up for good. + +## License + +Apache 2.0 diff --git a/node_modules/@humanfs/node/dist/index.d.ts b/node_modules/@humanfs/node/dist/index.d.ts new file mode 100644 index 00000000..c2d1d306 --- /dev/null +++ b/node_modules/@humanfs/node/dist/index.d.ts @@ -0,0 +1,2 @@ +export * from "./node-hfs.js"; +export { Hfs } from "@humanfs/core"; diff --git a/node_modules/@humanfs/node/dist/node-fsx.d.ts b/node_modules/@humanfs/node/dist/node-fsx.d.ts new file mode 100644 index 00000000..78e8dbd9 --- /dev/null +++ b/node_modules/@humanfs/node/dist/node-fsx.d.ts @@ -0,0 +1,150 @@ +/// +/** + * A class representing the Node.js implementation of Hfs. + * @implements {HfsImpl} + */ +export class NodeHfsImpl implements HfsImpl { + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp }?: { + fsp?: Fsp; + }); + /** + * Reads a file and returns the contents as a string. Assumes UTF-8 encoding. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents of + * the file or undefined if the file doesn't exist. + * @throws {TypeError} If the file path is not a string. + * @throws {RangeError} If the file path is empty. + * @throws {RangeError} If the file path is not absolute. + * @throws {RangeError} If the file path is not a file. + * @throws {RangeError} If the file path is not readable. + */ + text(filePath: string): Promise; + /** + * Reads a file and returns the contents as a JSON object. Assumes UTF-8 encoding. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents of + * the file or undefined if the file doesn't exist. + * @throws {SyntaxError} If the file contents are not valid JSON. + * @throws {Error} If the file cannot be read. + * @throws {TypeError} If the file path is not a string. + */ + json(filePath: string): Promise; + /** + * Reads a file and returns the contents as an ArrayBuffer. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents + * of the file or undefined if the file doesn't exist. + * @throws {Error} If the file cannot be read. + * @throws {TypeError} If the file path is not a string. + * @deprecated Use bytes() instead. + */ + arrayBuffer(filePath: string): Promise; + /** + * Reads a file and returns the contents as an Uint8Array. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents + * of the file or undefined if the file doesn't exist. + * @throws {Error} If the file cannot be read. + * @throws {TypeError} If the file path is not a string. + */ + bytes(filePath: string): Promise; + /** + * Writes a value to a file. If the value is a string, UTF-8 encoding is used. + * @param {string} filePath The path to the file to write. + * @param {string|ArrayBuffer|ArrayBufferView} contents The contents to write to the + * file. + * @returns {Promise} A promise that resolves when the file is + * written. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be written. + */ + write(filePath: string, contents: string | ArrayBuffer | ArrayBufferView): Promise; + /** + * Checks if a file exists. + * @param {string} filePath The path to the file to check. + * @returns {Promise} A promise that resolves with true if the + * file exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isFile(filePath: string): Promise; + /** + * Checks if a directory exists. + * @param {string} dirPath The path to the directory to check. + * @returns {Promise} A promise that resolves with true if the + * directory exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isDirectory(dirPath: string): Promise; + /** + * Creates a directory recursively. + * @param {string} dirPath The path to the directory to create. + * @returns {Promise} A promise that resolves when the directory is + * created. + */ + createDirectory(dirPath: string): Promise; + /** + * Deletes a file or empty directory. + * @param {string} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + * @throws {Error} If the file or directory is not found. + */ + delete(fileOrDirPath: string): Promise; + /** + * Deletes a file or directory recursively. + * @param {string} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + * @throws {Error} If the file or directory is not found. + */ + deleteAll(fileOrDirPath: string): Promise; + /** + * Returns a list of directory entries for the given path. + * @param {string} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string. + * @throws {Error} If the directory cannot be read. + */ + list(dirPath: string): AsyncIterable; + /** + * Returns the size of a file. + * @param {string} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the + * file in bytes or undefined if the file doesn't exist. + */ + size(filePath: string): Promise; + #private; +} +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class NodeHfs extends Hfs implements HfsImpl { + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp }?: { + fsp?: Fsp; + }); +} +export const hfs: NodeHfs; +export type HfsImpl = import("@humanfs/types").HfsImpl; +export type HfsDirectoryEntry = import("@humanfs/types").HfsDirectoryEntry; +export type Fsp = typeof nativeFsp; +export type Dirent = import("fs").Dirent; +import { Hfs } from "@humanfs/core"; +import nativeFsp from "node:fs/promises"; diff --git a/node_modules/@humanfs/node/dist/node-hfs.d.ts b/node_modules/@humanfs/node/dist/node-hfs.d.ts new file mode 100644 index 00000000..1fd63222 --- /dev/null +++ b/node_modules/@humanfs/node/dist/node-hfs.d.ts @@ -0,0 +1,176 @@ +/// +/** + * A class representing the Node.js implementation of Hfs. + * @implements {HfsImpl} + */ +export class NodeHfsImpl implements HfsImpl { + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp }?: { + fsp?: Fsp; + }); + /** + * Reads a file and returns the contents as an Uint8Array. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents + * of the file or undefined if the file doesn't exist. + * @throws {Error} If the file cannot be read. + * @throws {TypeError} If the file path is not a string. + */ + bytes(filePath: string | URL): Promise; + /** + * Writes a value to a file. If the value is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The path to the file to write. + * @param {Uint8Array} contents The contents to write to the + * file. + * @returns {Promise} A promise that resolves when the file is + * written. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be written. + */ + write(filePath: string | URL, contents: Uint8Array): Promise; + /** + * Appends a value to a file. If the value is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The path to the file to append to. + * @param {Uint8Array} contents The contents to append to the + * file. + * @returns {Promise} A promise that resolves when the file is + * written. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be appended to. + */ + append(filePath: string | URL, contents: Uint8Array): Promise; + /** + * Checks if a file exists. + * @param {string|URL} filePath The path to the file to check. + * @returns {Promise} A promise that resolves with true if the + * file exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isFile(filePath: string | URL): Promise; + /** + * Checks if a directory exists. + * @param {string|URL} dirPath The path to the directory to check. + * @returns {Promise} A promise that resolves with true if the + * directory exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isDirectory(dirPath: string | URL): Promise; + /** + * Creates a directory recursively. + * @param {string|URL} dirPath The path to the directory to create. + * @returns {Promise} A promise that resolves when the directory is + * created. + */ + createDirectory(dirPath: string | URL): Promise; + /** + * Deletes a file or empty directory. + * @param {string|URL} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + */ + delete(fileOrDirPath: string | URL): Promise; + /** + * Deletes a file or directory recursively. + * @param {string|URL} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + */ + deleteAll(fileOrDirPath: string | URL): Promise; + /** + * Returns a list of directory entries for the given path. + * @param {string|URL} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string. + * @throws {Error} If the directory cannot be read. + */ + list(dirPath: string | URL): AsyncIterable; + /** + * Returns the size of a file. This method handles ENOENT errors + * and returns undefined in that case. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the + * file in bytes or undefined if the file doesn't exist. + */ + size(filePath: string | URL): Promise; + /** + * Returns the last modified date of a file or directory. This method handles ENOENT errors + * and returns undefined in that case. + * @param {string|URL} fileOrDirPath The path to the file to read. + * @returns {Promise} A promise that resolves with the last modified + * date of the file or directory, or undefined if the file doesn't exist. + */ + lastModified(fileOrDirPath: string | URL): Promise; + /** + * Copies a file from one location to another. + * @param {string|URL} source The path to the file to copy. + * @param {string|URL} destination The path to copy the file to. + * @returns {Promise} A promise that resolves when the file is copied. + * @throws {Error} If the source file does not exist. + * @throws {Error} If the source file is a directory. + * @throws {Error} If the destination file is a directory. + */ + copy(source: string | URL, destination: string | URL): Promise; + /** + * Copies a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to copy. + * @param {string|URL} destination The path to copy the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * copied. + * @throws {Error} If the source file or directory does not exist. + * @throws {Error} If the destination file or directory is a directory. + */ + copyAll(source: string | URL, destination: string | URL): Promise; + /** + * Moves a file from the source path to the destination path. + * @param {string|URL} source The location of the file to move. + * @param {string|URL} destination The destination of the file to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file paths are not strings. + * @throws {Error} If the file cannot be moved. + */ + move(source: string | URL, destination: string | URL): Promise; + /** + * Moves a file or directory from the source path to the destination path. + * @param {string|URL} source The location of the file or directory to move. + * @param {string|URL} destination The destination of the file or directory to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file paths are not strings. + * @throws {Error} If the file or directory cannot be moved. + */ + moveAll(source: string | URL, destination: string | URL): Promise; + #private; +} +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class NodeHfs extends Hfs implements HfsImpl { + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp }?: { + fsp?: Fsp; + }); +} +export const hfs: NodeHfs; +export type HfsImpl = import("@humanfs/types").HfsImpl; +export type HfsDirectoryEntry = import("@humanfs/types").HfsDirectoryEntry; +export type Fsp = typeof nativeFsp; +export type Dirent = import("fs").Dirent; +import { Hfs } from "@humanfs/core"; +import nativeFsp from "node:fs/promises"; diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/LICENSE b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/README.md b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/README.md new file mode 100644 index 00000000..c419ef13 --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/README.md @@ -0,0 +1,138 @@ +# Retry utility + +by [Nicholas C. Zakas](https://humanwhocodes.com) + +If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star. + +## Description + +A utility for retrying failed async JavaScript calls based on the error returned. + +## Usage + +### Node.js + +Install using [npm][npm] or [yarn][yarn]: + +``` +npm install @humanwhocodes/retry + +# or + +yarn add @humanwhocodes/retry +``` + +Import into your Node.js project: + +```js +// CommonJS +const { Retrier } = require("@humanwhocodes/retry"); + +// ESM +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Deno + +Install using [JSR](https://jsr.io): + +```shell +deno add @humanwhocodes/retry + +#or + +jsr add @humanwhocodes/retry +``` + +Then import into your Deno project: + +```js +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Bun + +Install using this command: + +``` +bun add @humanwhocodes/retry +``` + +Import into your Bun project: + +```js +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Browser + +It's recommended to import the minified version to save bandwidth: + +```js +import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?min"; +``` + +However, you can also import the unminified version for debugging purposes: + +```js +import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry"; +``` + +## API + +After importing, create a new instance of `Retrier` and specify the function to run on the error. This function should return `true` if you want the call retried and `false` if not. + +```js +// this instance will retry if the specific error code is found +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); +``` + +Then, call the `retry()` method around the function you'd like to retry, such as: + +```js +import fs from "fs/promises"; + +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); + +const text = await retrier.retry(() => fs.readFile("README.md", "utf8")); +``` + +The `retry()` method will either pass through the result on success or wait and retry on failure. Any error that isn't caught by the retrier is automatically rejected so the end result is a transparent passing through of both success and failure. + +You can also pass an `AbortSignal` to cancel a retry: + +```js +import fs from "fs/promises"; + +const controller = new AbortController(); +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); + +const text = await retrier.retry( + () => fs.readFile("README.md", "utf8"), + { signal: controller.signal } +); +``` + +## Developer Setup + +1. Fork the repository +2. Clone your fork +3. Run `npm install` to setup dependencies +4. Run `npm test` to run tests + +## License + +Apache 2.0 + +## Prior Art + +This utility is inspired by, and contains code from [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). + +[npm]: https://npmjs.com/ +[yarn]: https://yarnpkg.com/ diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.cjs b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.cjs new file mode 100644 index 00000000..5e06a42c --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.cjs @@ -0,0 +1,303 @@ +'use strict'; + +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #queue = []; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + return Promise.reject(new Error("Result is not a promise.")); + } + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result).catch(error => { + if (!this.#check(error)) { + throw error; + } + + return new Promise((resolve, reject) => { + this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); + + signal?.addEventListener("abort", () => { + reject(signal.reason); + }); + + this.#processQueue(); + }); + }); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + // if there's nothing in the queue, we're done + const task = this.#queue.shift(); + if (!task) { + return; + } + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processQueue(), 0); + }; + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + this.#queue.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => task.resolve(result)) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#queue.push(task); + + }) + .finally(() => this.#processQueue()); + } +} + +exports.Retrier = Retrier; diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.cts b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.cts new file mode 100644 index 00000000..f1529650 --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.cts @@ -0,0 +1,28 @@ +/** + * A class that manages a queue of retry jobs. + */ +export class Retrier { + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + */ + constructor(check: Function, { timeout, maxDelay }?: { + timeout?: number | undefined; + maxDelay?: number | undefined; + } | undefined); + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn: Function, { signal }?: { + signal?: AbortSignal | undefined; + } | undefined): Promise; + #private; +} diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.ts b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.ts new file mode 100644 index 00000000..f1529650 --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.d.ts @@ -0,0 +1,28 @@ +/** + * A class that manages a queue of retry jobs. + */ +export class Retrier { + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + */ + constructor(check: Function, { timeout, maxDelay }?: { + timeout?: number | undefined; + maxDelay?: number | undefined; + } | undefined); + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn: Function, { signal }?: { + signal?: AbortSignal | undefined; + } | undefined): Promise; + #private; +} diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.js b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.js new file mode 100644 index 00000000..4343d58c --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.js @@ -0,0 +1,302 @@ +// @ts-self-types="./retrier.d.ts" +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #queue = []; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + return Promise.reject(new Error("Result is not a promise.")); + } + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result).catch(error => { + if (!this.#check(error)) { + throw error; + } + + return new Promise((resolve, reject) => { + this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); + + signal?.addEventListener("abort", () => { + reject(signal.reason); + }); + + this.#processQueue(); + }); + }); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + // if there's nothing in the queue, we're done + const task = this.#queue.shift(); + if (!task) { + return; + } + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processQueue(), 0); + }; + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + this.#queue.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => task.resolve(result)) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#queue.push(task); + + }) + .finally(() => this.#processQueue()); + } +} + +export { Retrier }; diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.min.js b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.min.js new file mode 100644 index 00000000..6021e1a0 --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.min.js @@ -0,0 +1 @@ +class RetryTask{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(t,e,r,s,i){this.fn=t,this.error=e,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=s,this.signal=i}get age(){return Date.now()-this.timestamp}}class Retrier{#t=[];#e;#r;#s;#i;constructor(t,{timeout:e=6e4,maxDelay:r=100}={}){if("function"!=typeof t)throw new Error("Missing function to check errors");this.#i=t,this.#e=e,this.#r=r}retry(t,{signal:e}={}){let r;e?.throwIfAborted();try{r=t()}catch(t){return Promise.reject(new Error(`Synchronous error: ${t.message}`,{cause:t}))}return r&&"function"==typeof r.then?Promise.resolve(r).catch((r=>{if(!this.#i(r))throw r;return new Promise(((s,i)=>{this.#t.push(new RetryTask(t,r,s,i,e)),e?.addEventListener("abort",(()=>{i(e.reason)})),this.#o()}))})):Promise.reject(new Error("Result is not a promise."))}#o(){clearTimeout(this.#s),this.#s=void 0;const t=this.#t.shift();if(!t)return;const e=()=>{this.#s=setTimeout((()=>this.#o()),0)};return function(t,e){return t.age>e}(t,this.#e)?(t.reject(t.error),void e()):function(t,e){const r=Date.now()-t.lastAttempt,s=Math.max(t.lastAttempt-t.timestamp,1);return r>=Math.min(1.2*s,e)}(t,this.#r)?(t.lastAttempt=Date.now(),void Promise.resolve(t.fn()).then((e=>t.resolve(e))).catch((e=>{this.#i(e)?(t.lastAttempt=Date.now(),this.#t.push(t)):t.reject(e)})).finally((()=>this.#o()))):(this.#t.push(t),void e())}}export{Retrier}; diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.mjs b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.mjs new file mode 100644 index 00000000..6794621a --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/dist/retrier.mjs @@ -0,0 +1,301 @@ +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #queue = []; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + return Promise.reject(new Error("Result is not a promise.")); + } + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result).catch(error => { + if (!this.#check(error)) { + throw error; + } + + return new Promise((resolve, reject) => { + this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); + + signal?.addEventListener("abort", () => { + reject(signal.reason); + }); + + this.#processQueue(); + }); + }); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + // if there's nothing in the queue, we're done + const task = this.#queue.shift(); + if (!task) { + return; + } + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processQueue(), 0); + }; + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + this.#queue.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => task.resolve(result)) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#queue.push(task); + + }) + .finally(() => this.#processQueue()); + } +} + +export { Retrier }; diff --git a/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/package.json b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/package.json new file mode 100644 index 00000000..a33e7490 --- /dev/null +++ b/node_modules/@humanfs/node/node_modules/@humanwhocodes/retry/package.json @@ -0,0 +1,77 @@ +{ + "name": "@humanwhocodes/retry", + "version": "0.3.1", + "description": "A utility to retry failed async methods.", + "type": "module", + "main": "dist/retrier.cjs", + "module": "dist/retrier.js", + "types": "dist/retrier.d.ts", + "exports": { + "require": { + "types": "./dist/retrier.d.cts", + "default": "./dist/retrier.cjs" + }, + "import": { + "types": "./dist/retrier.d.ts", + "default": "./dist/retrier.js" + } + }, + "files": [ + "dist" + ], + "engines": { + "node": ">=18.18" + }, + "publishConfig": { + "access": "public" + }, + "gitHooks": { + "pre-commit": "lint-staged" + }, + "lint-staged": { + "*.js": [ + "eslint --fix" + ] + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + }, + "scripts": { + "build:cts-types": "node -e \"fs.copyFileSync('dist/retrier.d.ts', 'dist/retrier.d.cts')\"", + "build": "rollup -c && tsc && npm run build:cts-types", + "prepare": "npm run build", + "lint": "eslint src/ tests/", + "pretest": "npm run build", + "test:unit": "mocha tests/retrier.test.js", + "test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs", + "test:jsr": "npx jsr@latest publish --dry-run", + "test:emfile": "node tools/check-emfile-handling.js", + "test": "npm run test:unit && npm run test:build" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/humanwhocodes/retry.git" + }, + "keywords": [ + "nodejs", + "retry", + "async", + "promises" + ], + "author": "Nicholas C. Zaks", + "license": "Apache-2.0", + "devDependencies": { + "@eslint/js": "^8.49.0", + "@rollup/plugin-terser": "0.4.4", + "@tsconfig/node16": "^16.1.1", + "@types/mocha": "^10.0.3", + "@types/node": "20.12.6", + "eslint": "^8.21.0", + "lint-staged": "15.2.1", + "mocha": "^10.3.0", + "rollup": "3.29.4", + "typescript": "5.4.4", + "yorkie": "2.0.0" + } +} diff --git a/node_modules/@humanfs/node/package.json b/node_modules/@humanfs/node/package.json new file mode 100644 index 00000000..5b303fa1 --- /dev/null +++ b/node_modules/@humanfs/node/package.json @@ -0,0 +1,57 @@ +{ + "name": "@humanfs/node", + "version": "0.16.6", + "description": "The Node.js bindings of the humanfs library.", + "type": "module", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "exports": { + "import": { + "types": "./dist/index.d.ts", + "default": "./src/index.js" + } + }, + "files": [ + "dist", + "src" + ], + "scripts": { + "build": "tsc", + "prepare": "npm run build", + "pretest": "npm run build", + "test": "mocha ./tests/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/humanwhocodes/humanfs.git" + }, + "publishConfig": { + "access": "public" + }, + "keywords": [ + "filesystem", + "fs", + "hfs", + "files" + ], + "author": "Nicholas C. Zakas", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/humanwhocodes/humanfs/issues" + }, + "homepage": "https://github.com/humanwhocodes/humanfs#readme", + "engines": { + "node": ">=18.18.0" + }, + "devDependencies": { + "@types/node": "^20.9.4", + "@humanfs/test": "^0.15.0", + "@humanfs/types": "^0.15.0", + "mocha": "^10.2.0", + "typescript": "^5.2.2" + }, + "dependencies": { + "@humanwhocodes/retry": "^0.3.0", + "@humanfs/core": "^0.19.1" + } +} diff --git a/node_modules/@humanfs/node/src/index.js b/node_modules/@humanfs/node/src/index.js new file mode 100644 index 00000000..6d551aa7 --- /dev/null +++ b/node_modules/@humanfs/node/src/index.js @@ -0,0 +1,7 @@ +/** + * @fileoverview This file exports everything for this package. + * @author Nicholas C. Zakas + */ + +export * from "./node-hfs.js"; +export { Hfs } from "@humanfs/core"; diff --git a/node_modules/@humanfs/node/src/node-hfs.js b/node_modules/@humanfs/node/src/node-hfs.js new file mode 100644 index 00000000..7840c872 --- /dev/null +++ b/node_modules/@humanfs/node/src/node-hfs.js @@ -0,0 +1,452 @@ +/** + * @fileoverview The main file for the hfs package. + * @author Nicholas C. Zakas + */ +/* global Buffer:readonly, URL */ + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("@humanfs/types").HfsImpl} HfsImpl */ +/** @typedef {import("@humanfs/types").HfsDirectoryEntry} HfsDirectoryEntry */ +/** @typedef {import("node:fs/promises")} Fsp */ +/** @typedef {import("fs").Dirent} Dirent */ + +//----------------------------------------------------------------------------- +// Imports +//----------------------------------------------------------------------------- + +import { Hfs } from "@humanfs/core"; +import path from "node:path"; +import { Retrier } from "@humanwhocodes/retry"; +import nativeFsp from "node:fs/promises"; +import { fileURLToPath } from "node:url"; + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const RETRY_ERROR_CODES = new Set(["ENFILE", "EMFILE"]); + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * A class representing a directory entry. + * @implements {HfsDirectoryEntry} + */ +class NodeHfsDirectoryEntry { + /** + * The name of the directory entry. + * @type {string} + */ + name; + + /** + * True if the entry is a file. + * @type {boolean} + */ + isFile; + + /** + * True if the entry is a directory. + * @type {boolean} + */ + isDirectory; + + /** + * True if the entry is a symbolic link. + * @type {boolean} + */ + isSymlink; + + /** + * Creates a new instance. + * @param {Dirent} dirent The directory entry to wrap. + */ + constructor(dirent) { + this.name = dirent.name; + this.isFile = dirent.isFile(); + this.isDirectory = dirent.isDirectory(); + this.isSymlink = dirent.isSymbolicLink(); + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class representing the Node.js implementation of Hfs. + * @implements {HfsImpl} + */ +export class NodeHfsImpl { + /** + * The file system module to use. + * @type {Fsp} + */ + #fsp; + + /** + * The retryer object used for retrying operations. + * @type {Retrier} + */ + #retrier; + + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp = nativeFsp } = {}) { + this.#fsp = fsp; + this.#retrier = new Retrier(error => RETRY_ERROR_CODES.has(error.code)); + } + + /** + * Reads a file and returns the contents as an Uint8Array. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the contents + * of the file or undefined if the file doesn't exist. + * @throws {Error} If the file cannot be read. + * @throws {TypeError} If the file path is not a string. + */ + bytes(filePath) { + return this.#retrier + .retry(() => this.#fsp.readFile(filePath)) + .then(buffer => new Uint8Array(buffer.buffer)) + .catch(error => { + if (error.code === "ENOENT") { + return undefined; + } + + throw error; + }); + } + + /** + * Writes a value to a file. If the value is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The path to the file to write. + * @param {Uint8Array} contents The contents to write to the + * file. + * @returns {Promise} A promise that resolves when the file is + * written. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be written. + */ + async write(filePath, contents) { + const value = Buffer.from(contents); + + return this.#retrier + .retry(() => this.#fsp.writeFile(filePath, value)) + .catch(error => { + // the directory may not exist, so create it + if (error.code === "ENOENT") { + const dirPath = path.dirname( + filePath instanceof URL + ? fileURLToPath(filePath) + : filePath, + ); + + return this.#fsp + .mkdir(dirPath, { recursive: true }) + .then(() => this.#fsp.writeFile(filePath, value)); + } + + throw error; + }); + } + + /** + * Appends a value to a file. If the value is a string, UTF-8 encoding is used. + * @param {string|URL} filePath The path to the file to append to. + * @param {Uint8Array} contents The contents to append to the + * file. + * @returns {Promise} A promise that resolves when the file is + * written. + * @throws {TypeError} If the file path is not a string. + * @throws {Error} If the file cannot be appended to. + */ + async append(filePath, contents) { + const value = Buffer.from(contents); + + return this.#retrier + .retry(() => this.#fsp.appendFile(filePath, value)) + .catch(error => { + // the directory may not exist, so create it + if (error.code === "ENOENT") { + const dirPath = path.dirname( + filePath instanceof URL + ? fileURLToPath(filePath) + : filePath, + ); + + return this.#fsp + .mkdir(dirPath, { recursive: true }) + .then(() => this.#fsp.appendFile(filePath, value)); + } + + throw error; + }); + } + + /** + * Checks if a file exists. + * @param {string|URL} filePath The path to the file to check. + * @returns {Promise} A promise that resolves with true if the + * file exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isFile(filePath) { + return this.#fsp + .stat(filePath) + .then(stat => stat.isFile()) + .catch(error => { + if (error.code === "ENOENT") { + return false; + } + + throw error; + }); + } + + /** + * Checks if a directory exists. + * @param {string|URL} dirPath The path to the directory to check. + * @returns {Promise} A promise that resolves with true if the + * directory exists or false if it does not. + * @throws {Error} If the operation fails with a code other than ENOENT. + */ + isDirectory(dirPath) { + return this.#fsp + .stat(dirPath) + .then(stat => stat.isDirectory()) + .catch(error => { + if (error.code === "ENOENT") { + return false; + } + + throw error; + }); + } + + /** + * Creates a directory recursively. + * @param {string|URL} dirPath The path to the directory to create. + * @returns {Promise} A promise that resolves when the directory is + * created. + */ + async createDirectory(dirPath) { + await this.#fsp.mkdir(dirPath, { recursive: true }); + } + + /** + * Deletes a file or empty directory. + * @param {string|URL} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + */ + delete(fileOrDirPath) { + return this.#fsp + .rm(fileOrDirPath) + .then(() => true) + .catch(error => { + if (error.code === "ERR_FS_EISDIR") { + return this.#fsp.rmdir(fileOrDirPath).then(() => true); + } + + if (error.code === "ENOENT") { + return false; + } + + throw error; + }); + } + + /** + * Deletes a file or directory recursively. + * @param {string|URL} fileOrDirPath The path to the file or directory to + * delete. + * @returns {Promise} A promise that resolves when the file or + * directory is deleted, true if the file or directory is deleted, false + * if the file or directory does not exist. + * @throws {TypeError} If the file or directory path is not a string. + * @throws {Error} If the file or directory cannot be deleted. + */ + deleteAll(fileOrDirPath) { + return this.#fsp + .rm(fileOrDirPath, { recursive: true }) + .then(() => true) + .catch(error => { + if (error.code === "ENOENT") { + return false; + } + + throw error; + }); + } + + /** + * Returns a list of directory entries for the given path. + * @param {string|URL} dirPath The path to the directory to read. + * @returns {AsyncIterable} A promise that resolves with the + * directory entries. + * @throws {TypeError} If the directory path is not a string. + * @throws {Error} If the directory cannot be read. + */ + async *list(dirPath) { + const entries = await this.#fsp.readdir(dirPath, { + withFileTypes: true, + }); + + for (const entry of entries) { + yield new NodeHfsDirectoryEntry(entry); + } + } + + /** + * Returns the size of a file. This method handles ENOENT errors + * and returns undefined in that case. + * @param {string|URL} filePath The path to the file to read. + * @returns {Promise} A promise that resolves with the size of the + * file in bytes or undefined if the file doesn't exist. + */ + size(filePath) { + return this.#fsp + .stat(filePath) + .then(stat => stat.size) + .catch(error => { + if (error.code === "ENOENT") { + return undefined; + } + + throw error; + }); + } + + /** + * Returns the last modified date of a file or directory. This method handles ENOENT errors + * and returns undefined in that case. + * @param {string|URL} fileOrDirPath The path to the file to read. + * @returns {Promise} A promise that resolves with the last modified + * date of the file or directory, or undefined if the file doesn't exist. + */ + lastModified(fileOrDirPath) { + return this.#fsp + .stat(fileOrDirPath) + .then(stat => stat.mtime) + .catch(error => { + if (error.code === "ENOENT") { + return undefined; + } + + throw error; + }); + } + + /** + * Copies a file from one location to another. + * @param {string|URL} source The path to the file to copy. + * @param {string|URL} destination The path to copy the file to. + * @returns {Promise} A promise that resolves when the file is copied. + * @throws {Error} If the source file does not exist. + * @throws {Error} If the source file is a directory. + * @throws {Error} If the destination file is a directory. + */ + copy(source, destination) { + return this.#fsp.copyFile(source, destination); + } + + /** + * Copies a file or directory from one location to another. + * @param {string|URL} source The path to the file or directory to copy. + * @param {string|URL} destination The path to copy the file or directory to. + * @returns {Promise} A promise that resolves when the file or directory is + * copied. + * @throws {Error} If the source file or directory does not exist. + * @throws {Error} If the destination file or directory is a directory. + */ + async copyAll(source, destination) { + // for files use copy() and exit + if (await this.isFile(source)) { + return this.copy(source, destination); + } + + const sourceStr = + source instanceof URL ? fileURLToPath(source) : source; + + const destinationStr = + destination instanceof URL + ? fileURLToPath(destination) + : destination; + + // for directories, create the destination directory and copy each entry + await this.createDirectory(destination); + + for await (const entry of this.list(source)) { + const fromEntryPath = path.join(sourceStr, entry.name); + const toEntryPath = path.join(destinationStr, entry.name); + + if (entry.isDirectory) { + await this.copyAll(fromEntryPath, toEntryPath); + } else { + await this.copy(fromEntryPath, toEntryPath); + } + } + } + + /** + * Moves a file from the source path to the destination path. + * @param {string|URL} source The location of the file to move. + * @param {string|URL} destination The destination of the file to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file paths are not strings. + * @throws {Error} If the file cannot be moved. + */ + move(source, destination) { + return this.#fsp.stat(source).then(stat => { + if (stat.isDirectory()) { + throw new Error( + `EISDIR: illegal operation on a directory, move '${source}' -> '${destination}'`, + ); + } + + return this.#fsp.rename(source, destination); + }); + } + + /** + * Moves a file or directory from the source path to the destination path. + * @param {string|URL} source The location of the file or directory to move. + * @param {string|URL} destination The destination of the file or directory to move. + * @returns {Promise} A promise that resolves when the move is complete. + * @throws {TypeError} If the file paths are not strings. + * @throws {Error} If the file or directory cannot be moved. + */ + async moveAll(source, destination) { + return this.#fsp.rename(source, destination); + } +} + +/** + * A class representing a file system utility library. + * @implements {HfsImpl} + */ +export class NodeHfs extends Hfs { + /** + * Creates a new instance. + * @param {object} [options] The options for the instance. + * @param {Fsp} [options.fsp] The file system module to use. + */ + constructor({ fsp } = {}) { + super({ impl: new NodeHfsImpl({ fsp }) }); + } +} + +export const hfs = new NodeHfs(); diff --git a/node_modules/@humanwhocodes/config-array/README.md b/node_modules/@humanwhocodes/config-array/README.md deleted file mode 100644 index d64784c1..00000000 --- a/node_modules/@humanwhocodes/config-array/README.md +++ /dev/null @@ -1,342 +0,0 @@ -# Config Array - -by [Nicholas C. Zakas](https://humanwhocodes.com) - -If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate). - -## Description - -A config array is a way of managing configurations that are based on glob pattern matching of filenames. Each config array contains the information needed to determine the correct configuration for any file based on the filename. - -## Background - -In 2019, I submitted an [ESLint RFC](https://github.com/eslint/rfcs/pull/9) proposing a new way of configuring ESLint. The goal was to streamline what had become an increasingly complicated configuration process. Over several iterations, this proposal was eventually born. - -The basic idea is that all configuration, including overrides, can be represented by a single array where each item in the array is a config object. Config objects appearing later in the array override config objects appearing earlier in the array. You can calculate a config for a given file by traversing all config objects in the array to find the ones that match the filename. Matching is done by specifying glob patterns in `files` and `ignores` properties on each config object. Here's an example: - -```js -export default [ - - // match all JSON files - { - name: "JSON Handler", - files: ["**/*.json"], - handler: jsonHandler - }, - - // match only package.json - { - name: "package.json Handler", - files: ["package.json"], - handler: packageJsonHandler - } -]; -``` - -In this example, there are two config objects: the first matches all JSON files in all directories and the second matches just `package.json` in the base path directory (all the globs are evaluated as relative to a base path that can be specified). When you retrieve a configuration for `foo.json`, only the first config object matches so `handler` is equal to `jsonHandler`; when you retrieve a configuration for `package.json`, `handler` is equal to `packageJsonHandler` (because both config objects match, the second one wins). - -## Installation - -You can install the package using npm or Yarn: - -```bash -npm install @humanwhocodes/config-array --save - -# or - -yarn add @humanwhocodes/config-array -``` - -## Usage - -First, import the `ConfigArray` constructor: - -```js -import { ConfigArray } from "@humanwhocodes/config-array"; - -// or using CommonJS - -const { ConfigArray } = require("@humanwhocodes/config-array"); -``` - -When you create a new instance of `ConfigArray`, you must pass in two arguments: an array of configs and an options object. The array of configs is most likely read in from a configuration file, so here's a typical example: - -```js -const configFilename = path.resolve(process.cwd(), "my.config.js"); -const { default: rawConfigs } = await import(configFilename); -const configs = new ConfigArray(rawConfigs, { - - // the path to match filenames from - basePath: process.cwd(), - - // additional items in each config - schema: mySchema -}); -``` - -This example reads in an object or array from `my.config.js` and passes it into the `ConfigArray` constructor as the first argument. The second argument is an object specifying the `basePath` (the directory in which `my.config.js` is found) and a `schema` to define the additional properties of a config object beyond `files`, `ignores`, and `name`. - -### Specifying a Schema - -The `schema` option is required for you to use additional properties in config objects. The schema is an object that follows the format of an [`ObjectSchema`](https://npmjs.com/package/@humanwhocodes/object-schema). The schema specifies both validation and merge rules that the `ConfigArray` instance needs to combine configs when there are multiple matches. Here's an example: - -```js -const configFilename = path.resolve(process.cwd(), "my.config.js"); -const { default: rawConfigs } = await import(configFilename); - -const mySchema = { - - // define the handler key in configs - handler: { - required: true, - merge(a, b) { - if (!b) return a; - if (!a) return b; - }, - validate(value) { - if (typeof value !== "function") { - throw new TypeError("Function expected."); - } - } - } -}; - -const configs = new ConfigArray(rawConfigs, { - - // the path to match filenames from - basePath: process.cwd(), - - // additional item schemas in each config - schema: mySchema, - - // additional config types supported (default: []) - extraConfigTypes: ["array", "function"]; -}); -``` - -### Config Arrays - -Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as: - -```js -export default [ - - // JS config - { - files: ["**/*.js"], - handler: jsHandler - }, - - // JSON configs - [ - - // match all JSON files - { - name: "JSON Handler", - files: ["**/*.json"], - handler: jsonHandler - }, - - // match only package.json - { - name: "package.json Handler", - files: ["package.json"], - handler: packageJsonHandler - } - ], - - // filename must match function - { - files: [ filePath => filePath.endsWith(".md") ], - handler: markdownHandler - }, - - // filename must match all patterns in subarray - { - files: [ ["*.test.*", "*.js"] ], - handler: jsTestHandler - }, - - // filename must not match patterns beginning with ! - { - name: "Non-JS files", - files: ["!*.js"], - settings: { - js: false - } - } -]; -``` - -In this example, the array contains both config objects and a config array. When a config array is normalized (see details below), it is flattened so only config objects remain. However, the order of evaluation remains the same. - -If the `files` array contains a function, then that function is called with the absolute path of the file and is expected to return `true` if there is a match and `false` if not. (The `ignores` array can also contain functions.) - -If the `files` array contains an item that is an array of strings and functions, then all patterns must match in order for the config to match. In the preceding examples, both `*.test.*` and `*.js` must match in order for the config object to be used. - -If a pattern in the files array begins with `!` then it excludes that pattern. In the preceding example, any filename that doesn't end with `.js` will automatically get a `settings.js` property set to `false`. - -You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without any other keys, then those ignores will always be applied; otherwise those ignores act as exclusions. Here's an example: - -```js -export default [ - - // Always ignored - { - ignores: ["**/.git/**", "**/node_modules/**"] - }, - - // .eslintrc.js file is ignored only when .js file matches - { - files: ["**/*.js"], - ignores: [".eslintrc.js"] - handler: jsHandler - } -]; -``` - -You can use negated patterns in `ignores` to exclude a file that was already ignored, such as: - -```js -export default [ - - // Ignore all JSON files except tsconfig.json - { - files: ["**/*"], - ignores: ["**/*.json", "!tsconfig.json"] - }, - -]; -``` - -### Config Functions - -Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example: - -```js -export default [ - - // JS config - { - files: ["**/*.js"], - handler: jsHandler - }, - - // JSON configs - function (context) { - return [ - - // match all JSON files - { - name: context.name + " JSON Handler", - files: ["**/*.json"], - handler: jsonHandler - }, - - // match only package.json - { - name: context.name + " package.json Handler", - files: ["package.json"], - handler: packageJsonHandler - } - ]; - } -]; -``` - -When a config array is normalized, each function is executed and replaced in the config array with the return value. - -**Note:** Config functions can also be async. - -### Normalizing Config Arrays - -Once a config array has been created and loaded with all of the raw config data, it must be normalized before it can be used. The normalization process goes through and flattens the config array as well as executing all config functions to get their final values. - -To normalize a config array, call the `normalize()` method and pass in a context object: - -```js -await configs.normalize({ - name: "MyApp" -}); -``` - -The `normalize()` method returns a promise, so be sure to use the `await` operator. The config array instance is normalized in-place, so you don't need to create a new variable. - -If you want to disallow async config functions, you can call `normalizeSync()` instead. This method is completely synchronous and does not require using the `await` operator as it does not return a promise: - -```js -await configs.normalizeSync({ - name: "MyApp" -}); -``` - -**Important:** Once a `ConfigArray` is normalized, it cannot be changed further. You can, however, create a new `ConfigArray` and pass in the normalized instance to create an unnormalized copy. - -### Getting Config for a File - -To get the config for a file, use the `getConfig()` method on a normalized config array and pass in the filename to get a config for: - -```js -// pass in absolute filename -const fileConfig = configs.getConfig(path.resolve(process.cwd(), "package.json")); -``` - -The config array always returns an object, even if there are no configs matching the given filename. You can then inspect the returned config object to determine how to proceed. - -A few things to keep in mind: - -* You must pass in the absolute filename to get a config for. -* The returned config object never has `files`, `ignores`, or `name` properties; the only properties on the object will be the other configuration options specified. -* The config array caches configs, so subsequent calls to `getConfig()` with the same filename will return in a fast lookup rather than another calculation. -* A config will only be generated if the filename matches an entry in a `files` key. A config will not be generated without matching a `files` key (configs without a `files` key are only applied when another config with a `files` key is applied; configs without `files` are never applied on their own). Any config with a `files` key entry ending with `/**` or `/*` will only be applied if another entry in the same `files` key matches or another config matches. - -## Determining Ignored Paths - -You can determine if a file is ignored by using the `isFileIgnored()` method and passing in the absolute path of any file, as in this example: - -```js -const ignored = configs.isFileIgnored('/foo/bar/baz.txt'); -``` - -A file is considered ignored if any of the following is true: - -* **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/a.js` is considered ignored. -* **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/baz/a.js` is considered ignored. -* **It matches an ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -* **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -* **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. - -For directories, use the `isDirectoryIgnored()` method and pass in the absolute path of any directory, as in this example: - -```js -const ignored = configs.isDirectoryIgnored('/foo/bar/'); -``` - -A directory is considered ignored if any of the following is true: - -* **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/baz` is considered ignored. -* **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/bar/baz/a.js` is considered ignored. -* **It matches and ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -* **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -* **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. - -**Important:** A pattern such as `foo/**` means that `foo` and `foo/` are *not* ignored whereas `foo/bar` is ignored. If you want to ignore `foo` and all of its subdirectories, use the pattern `foo` or `foo/` in `ignores`. - -## Caching Mechanisms - -Each `ConfigArray` aggressively caches configuration objects to avoid unnecessary work. This caching occurs in two ways: - -1. **File-based Caching.** For each filename that is passed into a method, the resulting config is cached against that filename so you're always guaranteed to get the same object returned from `getConfig()` whenever you pass the same filename in. -2. **Index-based Caching.** Whenever a config is calculated, the config elements that were used to create the config are also cached. So if a given filename matches elements 1, 5, and 7, the resulting config is cached with a key of `1,5,7`. That way, if another file is passed that matches the same config elements, the result is already known and doesn't have to be recalculated. That means two files that match all the same elements will return the same config from `getConfig()`. - -## Acknowledgements - -The design of this project was influenced by feedback on the ESLint RFC, and incorporates ideas from: - -* Teddy Katz (@not-an-aardvark) -* Toru Nagashima (@mysticatea) -* Kai Cataldo (@kaicataldo) - -## License - -Apache 2.0 diff --git a/node_modules/@humanwhocodes/config-array/api.js b/node_modules/@humanwhocodes/config-array/api.js deleted file mode 100644 index 88c96194..00000000 --- a/node_modules/@humanwhocodes/config-array/api.js +++ /dev/null @@ -1,1128 +0,0 @@ -'use strict'; - -var path = require('path'); -var minimatch = require('minimatch'); -var createDebug = require('debug'); -var objectSchema = require('@humanwhocodes/object-schema'); - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const NOOP_STRATEGY = { - required: false, - merge() { - return undefined; - }, - validate() { } -}; - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The base schema that every ConfigArray uses. - * @type Object - */ -const baseSchema = Object.freeze({ - name: { - required: false, - merge() { - return undefined; - }, - validate(value) { - if (typeof value !== 'string') { - throw new TypeError('Property must be a string.'); - } - } - }, - files: NOOP_STRATEGY, - ignores: NOOP_STRATEGY -}); - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Asserts that a given value is an array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array. - */ -function assertIsArray(value) { - if (!Array.isArray(value)) { - throw new TypeError('Expected value to be an array.'); - } -} - -/** - * Asserts that a given value is an array containing only strings and functions. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array of strings and functions. - */ -function assertIsArrayOfStringsAndFunctions(value, name) { - assertIsArray(value); - - if (value.some(item => typeof item !== 'string' && typeof item !== 'function')) { - throw new TypeError('Expected array to only contain strings and functions.'); - } -} - -/** - * Asserts that a given value is a non-empty array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array or an empty array. - */ -function assertIsNonEmptyArray(value) { - if (!Array.isArray(value) || value.length === 0) { - throw new TypeError('Expected value to be a non-empty array.'); - } -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The schema for `files` and `ignores` that every ConfigArray uses. - * @type Object - */ -const filesAndIgnoresSchema = Object.freeze({ - files: { - required: false, - merge() { - return undefined; - }, - validate(value) { - - // first check if it's an array - assertIsNonEmptyArray(value); - - // then check each member - value.forEach(item => { - if (Array.isArray(item)) { - assertIsArrayOfStringsAndFunctions(item); - } else if (typeof item !== 'string' && typeof item !== 'function') { - throw new TypeError('Items must be a string, a function, or an array of strings and functions.'); - } - }); - - } - }, - ignores: { - required: false, - merge() { - return undefined; - }, - validate: assertIsArrayOfStringsAndFunctions - } -}); - -/** - * @fileoverview ConfigArray - * @author Nicholas C. Zakas - */ - - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const Minimatch = minimatch.Minimatch; -const minimatchCache = new Map(); -const negatedMinimatchCache = new Map(); -const debug = createDebug('@hwc/config-array'); - -const MINIMATCH_OPTIONS = { - // matchBase: true, - dot: true -}; - -const CONFIG_TYPES = new Set(['array', 'function']); - -/** - * Fields that are considered metadata and not part of the config object. - */ -const META_FIELDS = new Set(['name']); - -const FILES_AND_IGNORES_SCHEMA = new objectSchema.ObjectSchema(filesAndIgnoresSchema); - -/** - * Wrapper error for config validation errors that adds a name to the front of the - * error message. - */ -class ConfigError extends Error { - - /** - * Creates a new instance. - * @param {string} name The config object name causing the error. - * @param {number} index The index of the config object in the array. - * @param {Error} source The source error. - */ - constructor(name, index, { cause, message }) { - - - const finalMessage = message || cause.message; - - super(`Config ${name}: ${finalMessage}`, { cause }); - - // copy over custom properties that aren't represented - if (cause) { - for (const key of Object.keys(cause)) { - if (!(key in this)) { - this[key] = cause[key]; - } - } - } - - /** - * The name of the error. - * @type {string} - * @readonly - */ - this.name = 'ConfigError'; - - /** - * The index of the config object in the array. - * @type {number} - * @readonly - */ - this.index = index; - } -} - -/** - * Gets the name of a config object. - * @param {object} config The config object to get the name of. - * @returns {string} The name of the config object. - */ -function getConfigName(config) { - if (config && typeof config.name === 'string' && config.name) { - return `"${config.name}"`; - } - - return '(unnamed)'; -} - -/** - * Rethrows a config error with additional information about the config object. - * @param {object} config The config object to get the name of. - * @param {number} index The index of the config object in the array. - * @param {Error} error The error to rethrow. - * @throws {ConfigError} When the error is rethrown for a config. - */ -function rethrowConfigError(config, index, error) { - const configName = getConfigName(config); - throw new ConfigError(configName, index, error); -} - -/** - * Shorthand for checking if a value is a string. - * @param {any} value The value to check. - * @returns {boolean} True if a string, false if not. - */ -function isString(value) { - return typeof value === 'string'; -} - -/** - * Creates a function that asserts that the config is valid - * during normalization. This checks that the config is not nullish - * and that files and ignores keys of a config object are valid as per base schema. - * @param {Object} config The config object to check. - * @param {number} index The index of the config object in the array. - * @returns {void} - * @throws {ConfigError} If the files and ignores keys of a config object are not valid. - */ -function assertValidBaseConfig(config, index) { - - if (config === null) { - throw new ConfigError(getConfigName(config), index, { message: 'Unexpected null config.' }); - } - - if (config === undefined) { - throw new ConfigError(getConfigName(config), index, { message: 'Unexpected undefined config.' }); - } - - if (typeof config !== 'object') { - throw new ConfigError(getConfigName(config), index, { message: 'Unexpected non-object config.' }); - } - - const validateConfig = { }; - - if ('files' in config) { - validateConfig.files = config.files; - } - - if ('ignores' in config) { - validateConfig.ignores = config.ignores; - } - - try { - FILES_AND_IGNORES_SCHEMA.validate(validateConfig); - } catch (validationError) { - rethrowConfigError(config, index, { cause: validationError }); - } -} - -/** - * Wrapper around minimatch that caches minimatch patterns for - * faster matching speed over multiple file path evaluations. - * @param {string} filepath The file path to match. - * @param {string} pattern The glob pattern to match against. - * @param {object} options The minimatch options to use. - * @returns - */ -function doMatch(filepath, pattern, options = {}) { - - let cache = minimatchCache; - - if (options.flipNegate) { - cache = negatedMinimatchCache; - } - - let matcher = cache.get(pattern); - - if (!matcher) { - matcher = new Minimatch(pattern, Object.assign({}, MINIMATCH_OPTIONS, options)); - cache.set(pattern, matcher); - } - - return matcher.match(filepath); -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Promise} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -async function normalize(items, context, extraConfigTypes) { - - const allowFunctions = extraConfigTypes.includes('function'); - const allowArrays = extraConfigTypes.includes('array'); - - async function* flatTraverse(array) { - for (let item of array) { - if (typeof item === 'function') { - if (!allowFunctions) { - throw new TypeError('Unexpected function.'); - } - - item = item(context); - if (item.then) { - item = await item; - } - } - - if (Array.isArray(item)) { - if (!allowArrays) { - throw new TypeError('Unexpected array.'); - } - yield* flatTraverse(item); - } else if (typeof item === 'function') { - throw new TypeError('A config function can only return an object or array.'); - } else { - yield item; - } - } - } - - /* - * Async iterables cannot be used with the spread operator, so we need to manually - * create the array to return. - */ - const asyncIterable = await flatTraverse(items); - const configs = []; - - for await (const config of asyncIterable) { - configs.push(config); - } - - return configs; -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Array} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -function normalizeSync(items, context, extraConfigTypes) { - - const allowFunctions = extraConfigTypes.includes('function'); - const allowArrays = extraConfigTypes.includes('array'); - - function* flatTraverse(array) { - for (let item of array) { - if (typeof item === 'function') { - - if (!allowFunctions) { - throw new TypeError('Unexpected function.'); - } - - item = item(context); - if (item.then) { - throw new TypeError('Async config functions are not supported.'); - } - } - - if (Array.isArray(item)) { - - if (!allowArrays) { - throw new TypeError('Unexpected array.'); - } - - yield* flatTraverse(item); - } else if (typeof item === 'function') { - throw new TypeError('A config function can only return an object or array.'); - } else { - yield item; - } - } - } - - return [...flatTraverse(items)]; -} - -/** - * Determines if a given file path should be ignored based on the given - * matcher. - * @param {Array boolean>} ignores The ignore patterns to check. - * @param {string} filePath The absolute path of the file to check. - * @param {string} relativeFilePath The relative path of the file to check. - * @returns {boolean} True if the path should be ignored and false if not. - */ -function shouldIgnorePath(ignores, filePath, relativeFilePath) { - - // all files outside of the basePath are ignored - if (relativeFilePath.startsWith('..')) { - return true; - } - - return ignores.reduce((ignored, matcher) => { - - if (!ignored) { - - if (typeof matcher === 'function') { - return matcher(filePath); - } - - // don't check negated patterns because we're not ignored yet - if (!matcher.startsWith('!')) { - return doMatch(relativeFilePath, matcher); - } - - // otherwise we're still not ignored - return false; - - } - - // only need to check negated patterns because we're ignored - if (typeof matcher === 'string' && matcher.startsWith('!')) { - return !doMatch(relativeFilePath, matcher, { - flipNegate: true - }); - } - - return ignored; - - }, false); - -} - -/** - * Determines if a given file path is matched by a config based on - * `ignores` only. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatchesIgnores(filePath, basePath, config) { - - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - return Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && - !shouldIgnorePath(config.ignores, filePath, relativeFilePath); -} - - -/** - * Determines if a given file path is matched by a config. If the config - * has no `files` field, then it matches; otherwise, if a `files` field - * is present then we match the globs in `files` and exclude any globs in - * `ignores`. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatches(filePath, basePath, config) { - - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - // match both strings and functions - const match = pattern => { - - if (isString(pattern)) { - return doMatch(relativeFilePath, pattern); - } - - if (typeof pattern === 'function') { - return pattern(filePath); - } - - throw new TypeError(`Unexpected matcher type ${pattern}.`); - }; - - // check for all matches to config.files - let filePathMatchesPattern = config.files.some(pattern => { - if (Array.isArray(pattern)) { - return pattern.every(match); - } - - return match(pattern); - }); - - /* - * If the file path matches the config.files patterns, then check to see - * if there are any files to ignore. - */ - if (filePathMatchesPattern && config.ignores) { - filePathMatchesPattern = !shouldIgnorePath(config.ignores, filePath, relativeFilePath); - } - - return filePathMatchesPattern; -} - -/** - * Ensures that a ConfigArray has been normalized. - * @param {ConfigArray} configArray The ConfigArray to check. - * @returns {void} - * @throws {Error} When the `ConfigArray` is not normalized. - */ -function assertNormalized(configArray) { - // TODO: Throw more verbose error - if (!configArray.isNormalized()) { - throw new Error('ConfigArray must be normalized to perform this operation.'); - } -} - -/** - * Ensures that config types are valid. - * @param {Array} extraConfigTypes The config types to check. - * @returns {void} - * @throws {Error} When the config types array is invalid. - */ -function assertExtraConfigTypes(extraConfigTypes) { - if (extraConfigTypes.length > 2) { - throw new TypeError('configTypes must be an array with at most two items.'); - } - - for (const configType of extraConfigTypes) { - if (!CONFIG_TYPES.has(configType)) { - throw new TypeError(`Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`); - } - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -const ConfigArraySymbol = { - isNormalized: Symbol('isNormalized'), - configCache: Symbol('configCache'), - schema: Symbol('schema'), - finalizeConfig: Symbol('finalizeConfig'), - preprocessConfig: Symbol('preprocessConfig') -}; - -// used to store calculate data for faster lookup -const dataCache = new WeakMap(); - -/** - * Represents an array of config objects and provides method for working with - * those config objects. - */ -class ConfigArray extends Array { - - /** - * Creates a new instance of ConfigArray. - * @param {Iterable|Function|Object} configs An iterable yielding config - * objects, or a config function, or a config object. - * @param {string} [options.basePath=""] The path of the config file - * @param {boolean} [options.normalized=false] Flag indicating if the - * configs have already been normalized. - * @param {Object} [options.schema] The additional schema - * definitions to use for the ConfigArray schema. - * @param {Array} [options.configTypes] List of config types supported. - */ - constructor(configs, { - basePath = '', - normalized = false, - schema: customSchema, - extraConfigTypes = [] - } = {} - ) { - super(); - - /** - * Tracks if the array has been normalized. - * @property isNormalized - * @type {boolean} - * @private - */ - this[ConfigArraySymbol.isNormalized] = normalized; - - /** - * The schema used for validating and merging configs. - * @property schema - * @type ObjectSchema - * @private - */ - this[ConfigArraySymbol.schema] = new objectSchema.ObjectSchema( - Object.assign({}, customSchema, baseSchema) - ); - - /** - * The path of the config file that this array was loaded from. - * This is used to calculate filename matches. - * @property basePath - * @type {string} - */ - this.basePath = basePath; - - assertExtraConfigTypes(extraConfigTypes); - - /** - * The supported config types. - * @property configTypes - * @type {Array} - */ - this.extraConfigTypes = Object.freeze([...extraConfigTypes]); - - /** - * A cache to store calculated configs for faster repeat lookup. - * @property configCache - * @type {Map} - * @private - */ - this[ConfigArraySymbol.configCache] = new Map(); - - // init cache - dataCache.set(this, { - explicitMatches: new Map(), - directoryMatches: new Map(), - files: undefined, - ignores: undefined - }); - - // load the configs into this array - if (Array.isArray(configs)) { - this.push(...configs); - } else { - this.push(configs); - } - - } - - /** - * Prevent normal array methods from creating a new `ConfigArray` instance. - * This is to ensure that methods such as `slice()` won't try to create a - * new instance of `ConfigArray` behind the scenes as doing so may throw - * an error due to the different constructor signature. - * @returns {Function} The `Array` constructor. - */ - static get [Symbol.species]() { - return Array; - } - - /** - * Returns the `files` globs from every config object in the array. - * This can be used to determine which files will be matched by a - * config array or to use as a glob pattern when no patterns are provided - * for a command line interface. - * @returns {Array} An array of matchers. - */ - get files() { - - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.files) { - return cache.files; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - if (config.files) { - config.files.forEach(filePattern => { - result.push(filePattern); - }); - } - } - - // store result - cache.files = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Returns ignore matchers that should always be ignored regardless of - * the matching `files` fields in any configs. This is necessary to mimic - * the behavior of things like .gitignore and .eslintignore, allowing a - * globbing operation to be faster. - * @returns {string[]} An array of string patterns and functions to be ignored. - */ - get ignores() { - - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.ignores) { - return cache.ignores; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - - /* - * We only count ignores if there are no other keys in the object. - * In this case, it acts list a globally ignored pattern. If there - * are additional keys, then ignores act like exclusions. - */ - if (config.ignores && Object.keys(config).filter(key => !META_FIELDS.has(key)).length === 1) { - result.push(...config.ignores); - } - } - - // store result - cache.ignores = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Indicates if the config array has been normalized. - * @returns {boolean} True if the config array is normalized, false if not. - */ - isNormalized() { - return this[ConfigArraySymbol.isNormalized]; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {ConfigContext} context The context object for config functions. - * @returns {Promise} The current ConfigArray instance. - */ - async normalize(context = {}) { - - if (!this.isNormalized()) { - const normalizedConfigs = await normalize(this, context, this.extraConfigTypes); - this.length = 0; - this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this))); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {ConfigContext} context The context object for config functions. - * @returns {ConfigArray} The current ConfigArray instance. - */ - normalizeSync(context = {}) { - - if (!this.isNormalized()) { - const normalizedConfigs = normalizeSync(this, context, this.extraConfigTypes); - this.length = 0; - this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this))); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /** - * Finalizes the state of a config before being cached and returned by - * `getConfig()`. Does nothing by default but is provided to be - * overridden by subclasses as necessary. - * @param {Object} config The config to finalize. - * @returns {Object} The finalized config. - */ - [ConfigArraySymbol.finalizeConfig](config) { - return config; - } - - /** - * Preprocesses a config during the normalization process. This is the - * method to override if you want to convert an array item before it is - * validated for the first time. For example, if you want to replace a - * string with an object, this is the method to override. - * @param {Object} config The config to preprocess. - * @returns {Object} The config to use in place of the argument. - */ - [ConfigArraySymbol.preprocessConfig](config) { - return config; - } - - /** - * Determines if a given file path explicitly matches a `files` entry - * and also doesn't match an `ignores` entry. Configs that don't have - * a `files` property are not considered an explicit match. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the file path matches a `files` entry - * or false if not. - */ - isExplicitMatch(filePath) { - - assertNormalized(this); - - const cache = dataCache.get(this); - - // first check the cache to avoid duplicate work - let result = cache.explicitMatches.get(filePath); - - if (typeof result == 'boolean') { - return result; - } - - // TODO: Maybe move elsewhere? Maybe combine with getConfig() logic? - const relativeFilePath = path.relative(this.basePath, filePath); - - if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { - debug(`Ignoring ${filePath}`); - - // cache and return result - cache.explicitMatches.set(filePath, false); - return false; - } - - // filePath isn't automatically ignored, so try to find a match - - for (const config of this) { - - if (!config.files) { - continue; - } - - if (pathMatches(filePath, this.basePath, config)) { - debug(`Matching config found for ${filePath}`); - cache.explicitMatches.set(filePath, true); - return true; - } - } - - return false; - } - - /** - * Returns the config object for a given file path. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {Object} The config object for this file. - */ - getConfig(filePath) { - - assertNormalized(this); - - const cache = this[ConfigArraySymbol.configCache]; - - // first check the cache for a filename match to avoid duplicate work - if (cache.has(filePath)) { - return cache.get(filePath); - } - - let finalConfig; - - // next check to see if the file should be ignored - - // check if this should be ignored due to its directory - if (this.isDirectoryIgnored(path.dirname(filePath))) { - debug(`Ignoring ${filePath} based on directory pattern`); - - // cache and return result - finalConfig is undefined at this point - cache.set(filePath, finalConfig); - return finalConfig; - } - - // TODO: Maybe move elsewhere? - const relativeFilePath = path.relative(this.basePath, filePath); - - if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { - debug(`Ignoring ${filePath} based on file pattern`); - - // cache and return result - finalConfig is undefined at this point - cache.set(filePath, finalConfig); - return finalConfig; - } - - // filePath isn't automatically ignored, so try to construct config - - const matchingConfigIndices = []; - let matchFound = false; - const universalPattern = /\/\*{1,2}$/; - - this.forEach((config, index) => { - - if (!config.files) { - - if (!config.ignores) { - debug(`Anonymous universal config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - if (pathMatchesIgnores(filePath, this.basePath, config)) { - debug(`Matching config found for ${filePath} (based on ignores: ${config.ignores})`); - matchingConfigIndices.push(index); - return; - } - - debug(`Skipped config found for ${filePath} (based on ignores: ${config.ignores})`); - return; - } - - /* - * If a config has a files pattern ending in /** or /*, and the - * filePath only matches those patterns, then the config is only - * applied if there is another config where the filePath matches - * a file with a specific extensions such as *.js. - */ - - const universalFiles = config.files.filter( - pattern => universalPattern.test(pattern) - ); - - // universal patterns were found so we need to check the config twice - if (universalFiles.length) { - - debug('Universal files patterns found. Checking carefully.'); - - const nonUniversalFiles = config.files.filter( - pattern => !universalPattern.test(pattern) - ); - - // check that the config matches without the non-universal files first - if ( - nonUniversalFiles.length && - pathMatches( - filePath, this.basePath, - { files: nonUniversalFiles, ignores: config.ignores } - ) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - return; - } - - // if there wasn't a match then check if it matches with universal files - if ( - universalFiles.length && - pathMatches( - filePath, this.basePath, - { files: universalFiles, ignores: config.ignores } - ) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - // if we make here, then there was no match - return; - } - - // the normal case - if (pathMatches(filePath, this.basePath, config)) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - return; - } - - }); - - // if matching both files and ignores, there will be no config to create - if (!matchFound) { - debug(`No matching configs found for ${filePath}`); - - // cache and return result - finalConfig is undefined at this point - cache.set(filePath, finalConfig); - return finalConfig; - } - - // check to see if there is a config cached by indices - finalConfig = cache.get(matchingConfigIndices.toString()); - - if (finalConfig) { - - // also store for filename for faster lookup next time - cache.set(filePath, finalConfig); - - return finalConfig; - } - - // otherwise construct the config - - finalConfig = matchingConfigIndices.reduce((result, index) => { - try { - return this[ConfigArraySymbol.schema].merge(result, this[index]); - } catch (validationError) { - rethrowConfigError(this[index], index, { cause: validationError}); - } - }, {}, this); - - finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig); - - cache.set(filePath, finalConfig); - cache.set(matchingConfigIndices.toString(), finalConfig); - - return finalConfig; - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - * @deprecated Use `isFileIgnored` instead. - */ - isIgnored(filePath) { - return this.isFileIgnored(filePath); - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - */ - isFileIgnored(filePath) { - return this.getConfig(filePath) === undefined; - } - - /** - * Determines if the given directory is ignored based on the configs. - * This checks only default `ignores` that don't have `files` in the - * same config. A pattern such as `/foo` be considered to ignore the directory - * while a pattern such as `/foo/**` is not considered to ignore the - * directory because it is matching files. - * @param {string} directoryPath The complete path of a directory to check. - * @returns {boolean} True if the directory is ignored, false if not. Will - * return true for any directory that is not inside of `basePath`. - * @throws {Error} When the `ConfigArray` is not normalized. - */ - isDirectoryIgnored(directoryPath) { - - assertNormalized(this); - - const relativeDirectoryPath = path.relative(this.basePath, directoryPath) - .replace(/\\/g, '/'); - - if (relativeDirectoryPath.startsWith('..')) { - return true; - } - - // first check the cache - const cache = dataCache.get(this).directoryMatches; - - if (cache.has(relativeDirectoryPath)) { - return cache.get(relativeDirectoryPath); - } - - const directoryParts = relativeDirectoryPath.split('/'); - let relativeDirectoryToCheck = ''; - let result = false; - - /* - * In order to get the correct gitignore-style ignores, where an - * ignored parent directory cannot have any descendants unignored, - * we need to check every directory starting at the parent all - * the way down to the actual requested directory. - * - * We aggressively cache all of this info to make sure we don't - * have to recalculate everything for every call. - */ - do { - - relativeDirectoryToCheck += directoryParts.shift() + '/'; - - result = shouldIgnorePath( - this.ignores, - path.join(this.basePath, relativeDirectoryToCheck), - relativeDirectoryToCheck - ); - - cache.set(relativeDirectoryToCheck, result); - - } while (!result && directoryParts.length); - - // also cache the result for the requested path - cache.set(relativeDirectoryPath, result); - - return result; - } - -} - -exports.ConfigArray = ConfigArray; -exports.ConfigArraySymbol = ConfigArraySymbol; diff --git a/node_modules/@humanwhocodes/config-array/package.json b/node_modules/@humanwhocodes/config-array/package.json deleted file mode 100644 index 4215d658..00000000 --- a/node_modules/@humanwhocodes/config-array/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@humanwhocodes/config-array", - "version": "0.13.0", - "description": "Glob-based configuration matching.", - "author": "Nicholas C. Zakas", - "main": "api.js", - "files": [ - "api.js", - "LICENSE", - "README.md" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/humanwhocodes/config-array.git" - }, - "bugs": { - "url": "https://github.com/humanwhocodes/config-array/issues" - }, - "homepage": "https://github.com/humanwhocodes/config-array#readme", - "scripts": { - "build": "rollup -c", - "format": "nitpik", - "lint": "eslint *.config.js src/*.js tests/*.js", - "lint:fix": "eslint --fix *.config.js src/*.js tests/*.js", - "prepublish": "npm run build", - "test:coverage": "nyc --include src/*.js npm run test", - "test": "mocha -r esm tests/ --recursive" - }, - "gitHooks": { - "pre-commit": "lint-staged" - }, - "lint-staged": { - "*.js": [ - "eslint --fix --ignore-pattern '!.eslintrc.js'" - ] - }, - "keywords": [ - "configuration", - "configarray", - "config file" - ], - "license": "Apache-2.0", - "engines": { - "node": ">=10.10.0" - }, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "devDependencies": { - "@nitpik/javascript": "0.4.0", - "@nitpik/node": "0.0.5", - "chai": "4.3.10", - "eslint": "8.52.0", - "esm": "3.2.25", - "lint-staged": "15.0.2", - "mocha": "6.2.3", - "nyc": "15.1.0", - "rollup": "3.28.1", - "yorkie": "2.0.0" - } -} diff --git a/node_modules/@humanwhocodes/object-schema/CHANGELOG.md b/node_modules/@humanwhocodes/object-schema/CHANGELOG.md deleted file mode 100644 index 3b0b6a39..00000000 --- a/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +++ /dev/null @@ -1,40 +0,0 @@ -# Changelog - -## [2.0.3](https://github.com/humanwhocodes/object-schema/compare/v2.0.2...v2.0.3) (2024-04-01) - - -### Bug Fixes - -* Ensure test files are not including in package ([6eeb32c](https://github.com/humanwhocodes/object-schema/commit/6eeb32cc76a3e37d76b2990bd603d72061c816e0)), closes [#19](https://github.com/humanwhocodes/object-schema/issues/19) - -## [2.0.2](https://github.com/humanwhocodes/object-schema/compare/v2.0.1...v2.0.2) (2024-01-10) - - -### Bug Fixes - -* WrapperError should be an actual error ([2523f01](https://github.com/humanwhocodes/object-schema/commit/2523f014168167e5a40bb63e0cc03231b2c0f1bf)) - -## [2.0.1](https://github.com/humanwhocodes/object-schema/compare/v2.0.0...v2.0.1) (2023-10-20) - - -### Bug Fixes - -* Custom properties should be available on thrown errors ([6ca80b0](https://github.com/humanwhocodes/object-schema/commit/6ca80b001a4ffb678b9b5544fc53322117374376)) - -## [2.0.0](https://github.com/humanwhocodes/object-schema/compare/v1.2.1...v2.0.0) (2023-10-18) - - -### ⚠ BREAKING CHANGES - -* Throw custom errors instead of generics. - -### Features - -* Throw custom errors instead of generics. ([c6c01d7](https://github.com/humanwhocodes/object-schema/commit/c6c01d71eb354bf7b1fb3e883c40f7bd9b61647c)) - -### [1.2.1](https://www.github.com/humanwhocodes/object-schema/compare/v1.2.0...v1.2.1) (2021-11-02) - - -### Bug Fixes - -* Never return original object from individual config ([5463c5c](https://www.github.com/humanwhocodes/object-schema/commit/5463c5c6d2cb35a7b7948dffc37c899a41d1775f)) diff --git a/node_modules/@humanwhocodes/object-schema/LICENSE b/node_modules/@humanwhocodes/object-schema/LICENSE deleted file mode 100644 index a5e3ae46..00000000 --- a/node_modules/@humanwhocodes/object-schema/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2019, Human Who Codes -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/@humanwhocodes/object-schema/README.md b/node_modules/@humanwhocodes/object-schema/README.md deleted file mode 100644 index 2163797f..00000000 --- a/node_modules/@humanwhocodes/object-schema/README.md +++ /dev/null @@ -1,234 +0,0 @@ -# JavaScript ObjectSchema Package - -by [Nicholas C. Zakas](https://humanwhocodes.com) - -If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate). - -## Overview - -A JavaScript object merge/validation utility where you can define a different merge and validation strategy for each key. This is helpful when you need to validate complex data structures and then merge them in a way that is more complex than `Object.assign()`. - -## Installation - -You can install using either npm: - -``` -npm install @humanwhocodes/object-schema -``` - -Or Yarn: - -``` -yarn add @humanwhocodes/object-schema -``` - -## Usage - -Use CommonJS to get access to the `ObjectSchema` constructor: - -```js -const { ObjectSchema } = require("@humanwhocodes/object-schema"); - -const schema = new ObjectSchema({ - - // define a definition for the "downloads" key - downloads: { - required: true, - merge(value1, value2) { - return value1 + value2; - }, - validate(value) { - if (typeof value !== "number") { - throw new Error("Expected downloads to be a number."); - } - } - }, - - // define a strategy for the "versions" key - version: { - required: true, - merge(value1, value2) { - return value1.concat(value2); - }, - validate(value) { - if (!Array.isArray(value)) { - throw new Error("Expected versions to be an array."); - } - } - } -}); - -const record1 = { - downloads: 25, - versions: [ - "v1.0.0", - "v1.1.0", - "v1.2.0" - ] -}; - -const record2 = { - downloads: 125, - versions: [ - "v2.0.0", - "v2.1.0", - "v3.0.0" - ] -}; - -// make sure the records are valid -schema.validate(record1); -schema.validate(record2); - -// merge together (schema.merge() accepts any number of objects) -const result = schema.merge(record1, record2); - -// result looks like this: - -const result = { - downloads: 75, - versions: [ - "v1.0.0", - "v1.1.0", - "v1.2.0", - "v2.0.0", - "v2.1.0", - "v3.0.0" - ] -}; -``` - -## Tips and Tricks - -### Named merge strategies - -Instead of specifying a `merge()` method, you can specify one of the following strings to use a default merge strategy: - -* `"assign"` - use `Object.assign()` to merge the two values into one object. -* `"overwrite"` - the second value always replaces the first. -* `"replace"` - the second value replaces the first if the second is not `undefined`. - -For example: - -```js -const schema = new ObjectSchema({ - name: { - merge: "replace", - validate() {} - } -}); -``` - -### Named validation strategies - -Instead of specifying a `validate()` method, you can specify one of the following strings to use a default validation strategy: - -* `"array"` - value must be an array. -* `"boolean"` - value must be a boolean. -* `"number"` - value must be a number. -* `"object"` - value must be an object. -* `"object?"` - value must be an object or null. -* `"string"` - value must be a string. -* `"string!"` - value must be a non-empty string. - -For example: - -```js -const schema = new ObjectSchema({ - name: { - merge: "replace", - validate: "string" - } -}); -``` - -### Subschemas - -If you are defining a key that is, itself, an object, you can simplify the process by using a subschema. Instead of defining `merge()` and `validate()`, assign a `schema` key that contains a schema definition, like this: - -```js -const schema = new ObjectSchema({ - name: { - schema: { - first: { - merge: "replace", - validate: "string" - }, - last: { - merge: "replace", - validate: "string" - } - } - } -}); - -schema.validate({ - name: { - first: "n", - last: "z" - } -}); -``` - -### Remove Keys During Merge - -If the merge strategy for a key returns `undefined`, then the key will not appear in the final object. For example: - -```js -const schema = new ObjectSchema({ - date: { - merge() { - return undefined; - }, - validate(value) { - Date.parse(value); // throws an error when invalid - } - } -}); - -const object1 = { date: "5/5/2005" }; -const object2 = { date: "6/6/2006" }; - -const result = schema.merge(object1, object2); - -console.log("date" in result); // false -``` - -### Requiring Another Key Be Present - -If you'd like the presence of one key to require the presence of another key, you can use the `requires` property to specify an array of other properties that any key requires. For example: - -```js -const schema = new ObjectSchema(); - -const schema = new ObjectSchema({ - date: { - merge() { - return undefined; - }, - validate(value) { - Date.parse(value); // throws an error when invalid - } - }, - time: { - requires: ["date"], - merge(first, second) { - return second; - }, - validate(value) { - // ... - } - } -}); - -// throws error: Key "time" requires keys "date" -schema.validate({ - time: "13:45" -}); -``` - -In this example, even though `date` is an optional key, it is required to be present whenever `time` is present. - -## License - -BSD 3-Clause diff --git a/node_modules/@humanwhocodes/object-schema/package.json b/node_modules/@humanwhocodes/object-schema/package.json deleted file mode 100644 index 0098b442..00000000 --- a/node_modules/@humanwhocodes/object-schema/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@humanwhocodes/object-schema", - "version": "2.0.3", - "description": "An object schema merger/validator", - "main": "src/index.js", - "files": [ - "src", - "LICENSE", - "README.md" - ], - "directories": { - "test": "tests" - }, - "scripts": { - "test": "mocha tests/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/humanwhocodes/object-schema.git" - }, - "keywords": [ - "object", - "validation", - "schema", - "merge" - ], - "author": "Nicholas C. Zakas", - "license": "BSD-3-Clause", - "bugs": { - "url": "https://github.com/humanwhocodes/object-schema/issues" - }, - "homepage": "https://github.com/humanwhocodes/object-schema#readme", - "devDependencies": { - "chai": "^4.2.0", - "eslint": "^5.13.0", - "mocha": "^5.2.0" - } -} diff --git a/node_modules/@humanwhocodes/object-schema/src/index.js b/node_modules/@humanwhocodes/object-schema/src/index.js deleted file mode 100644 index b2bc4fb9..00000000 --- a/node_modules/@humanwhocodes/object-schema/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @filedescription Object Schema Package - */ - -exports.ObjectSchema = require("./object-schema").ObjectSchema; -exports.MergeStrategy = require("./merge-strategy").MergeStrategy; -exports.ValidationStrategy = require("./validation-strategy").ValidationStrategy; diff --git a/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js b/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js deleted file mode 100644 index 82174492..00000000 --- a/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @filedescription Merge Strategy - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different merge strategies. - */ -class MergeStrategy { - - /** - * Merges two keys by overwriting the first with the second. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value. - */ - static overwrite(value1, value2) { - return value2; - } - - /** - * Merges two keys by replacing the first with the second only if the - * second is defined. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value if it is defined. - */ - static replace(value1, value2) { - if (typeof value2 !== "undefined") { - return value2; - } - - return value1; - } - - /** - * Merges two properties by assigning properties from the second to the first. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} A new object containing properties from both value1 and - * value2. - */ - static assign(value1, value2) { - return Object.assign({}, value1, value2); - } -} - -exports.MergeStrategy = MergeStrategy; diff --git a/node_modules/@humanwhocodes/object-schema/src/object-schema.js b/node_modules/@humanwhocodes/object-schema/src/object-schema.js deleted file mode 100644 index 62d198e4..00000000 --- a/node_modules/@humanwhocodes/object-schema/src/object-schema.js +++ /dev/null @@ -1,301 +0,0 @@ -/** - * @filedescription Object Schema - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { MergeStrategy } = require("./merge-strategy"); -const { ValidationStrategy } = require("./validation-strategy"); - -//----------------------------------------------------------------------------- -// Private -//----------------------------------------------------------------------------- - -const strategies = Symbol("strategies"); -const requiredKeys = Symbol("requiredKeys"); - -/** - * Validates a schema strategy. - * @param {string} name The name of the key this strategy is for. - * @param {Object} strategy The strategy for the object key. - * @param {boolean} [strategy.required=true] Whether the key is required. - * @param {string[]} [strategy.requires] Other keys that are required when - * this key is present. - * @param {Function} strategy.merge A method to call when merging two objects - * with the same key. - * @param {Function} strategy.validate A method to call when validating an - * object with the key. - * @returns {void} - * @throws {Error} When the strategy is missing a name. - * @throws {Error} When the strategy is missing a merge() method. - * @throws {Error} When the strategy is missing a validate() method. - */ -function validateDefinition(name, strategy) { - - let hasSchema = false; - if (strategy.schema) { - if (typeof strategy.schema === "object") { - hasSchema = true; - } else { - throw new TypeError("Schema must be an object."); - } - } - - if (typeof strategy.merge === "string") { - if (!(strategy.merge in MergeStrategy)) { - throw new TypeError(`Definition for key "${name}" missing valid merge strategy.`); - } - } else if (!hasSchema && typeof strategy.merge !== "function") { - throw new TypeError(`Definition for key "${name}" must have a merge property.`); - } - - if (typeof strategy.validate === "string") { - if (!(strategy.validate in ValidationStrategy)) { - throw new TypeError(`Definition for key "${name}" missing valid validation strategy.`); - } - } else if (!hasSchema && typeof strategy.validate !== "function") { - throw new TypeError(`Definition for key "${name}" must have a validate() method.`); - } -} - -//----------------------------------------------------------------------------- -// Errors -//----------------------------------------------------------------------------- - -/** - * Error when an unexpected key is found. - */ -class UnexpectedKeyError extends Error { - - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - */ - constructor(key) { - super(`Unexpected key "${key}" found.`); - } -} - -/** - * Error when a required key is missing. - */ -class MissingKeyError extends Error { - - /** - * Creates a new instance. - * @param {string} key The key that was missing. - */ - constructor(key) { - super(`Missing required key "${key}".`); - } -} - -/** - * Error when a key requires other keys that are missing. - */ -class MissingDependentKeysError extends Error { - - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - * @param {Array} requiredKeys The keys that are required. - */ - constructor(key, requiredKeys) { - super(`Key "${key}" requires keys "${requiredKeys.join("\", \"")}".`); - } -} - -/** - * Wrapper error for errors occuring during a merge or validate operation. - */ -class WrapperError extends Error { - - /** - * Creates a new instance. - * @param {string} key The object key causing the error. - * @param {Error} source The source error. - */ - constructor(key, source) { - super(`Key "${key}": ${source.message}`, { cause: source }); - - // copy over custom properties that aren't represented - for (const key of Object.keys(source)) { - if (!(key in this)) { - this[key] = source[key]; - } - } - } -} - -//----------------------------------------------------------------------------- -// Main -//----------------------------------------------------------------------------- - -/** - * Represents an object validation/merging schema. - */ -class ObjectSchema { - - /** - * Creates a new instance. - */ - constructor(definitions) { - - if (!definitions) { - throw new Error("Schema definitions missing."); - } - - /** - * Track all strategies in the schema by key. - * @type {Map} - * @property strategies - */ - this[strategies] = new Map(); - - /** - * Separately track any keys that are required for faster validation. - * @type {Map} - * @property requiredKeys - */ - this[requiredKeys] = new Map(); - - // add in all strategies - for (const key of Object.keys(definitions)) { - validateDefinition(key, definitions[key]); - - // normalize merge and validate methods if subschema is present - if (typeof definitions[key].schema === "object") { - const schema = new ObjectSchema(definitions[key].schema); - definitions[key] = { - ...definitions[key], - merge(first = {}, second = {}) { - return schema.merge(first, second); - }, - validate(value) { - ValidationStrategy.object(value); - schema.validate(value); - } - }; - } - - // normalize the merge method in case there's a string - if (typeof definitions[key].merge === "string") { - definitions[key] = { - ...definitions[key], - merge: MergeStrategy[definitions[key].merge] - }; - }; - - // normalize the validate method in case there's a string - if (typeof definitions[key].validate === "string") { - definitions[key] = { - ...definitions[key], - validate: ValidationStrategy[definitions[key].validate] - }; - }; - - this[strategies].set(key, definitions[key]); - - if (definitions[key].required) { - this[requiredKeys].set(key, definitions[key]); - } - } - } - - /** - * Determines if a strategy has been registered for the given object key. - * @param {string} key The object key to find a strategy for. - * @returns {boolean} True if the key has a strategy registered, false if not. - */ - hasKey(key) { - return this[strategies].has(key); - } - - /** - * Merges objects together to create a new object comprised of the keys - * of the all objects. Keys are merged based on the each key's merge - * strategy. - * @param {...Object} objects The objects to merge. - * @returns {Object} A new object with a mix of all objects' keys. - * @throws {Error} If any object is invalid. - */ - merge(...objects) { - - // double check arguments - if (objects.length < 2) { - throw new TypeError("merge() requires at least two arguments."); - } - - if (objects.some(object => (object == null || typeof object !== "object"))) { - throw new TypeError("All arguments must be objects."); - } - - return objects.reduce((result, object) => { - - this.validate(object); - - for (const [key, strategy] of this[strategies]) { - try { - if (key in result || key in object) { - const value = strategy.merge.call(this, result[key], object[key]); - if (value !== undefined) { - result[key] = value; - } - } - } catch (ex) { - throw new WrapperError(key, ex); - } - } - return result; - }, {}); - } - - /** - * Validates an object's keys based on the validate strategy for each key. - * @param {Object} object The object to validate. - * @returns {void} - * @throws {Error} When the object is invalid. - */ - validate(object) { - - // check existing keys first - for (const key of Object.keys(object)) { - - // check to see if the key is defined - if (!this.hasKey(key)) { - throw new UnexpectedKeyError(key); - } - - // validate existing keys - const strategy = this[strategies].get(key); - - // first check to see if any other keys are required - if (Array.isArray(strategy.requires)) { - if (!strategy.requires.every(otherKey => otherKey in object)) { - throw new MissingDependentKeysError(key, strategy.requires); - } - } - - // now apply remaining validation strategy - try { - strategy.validate.call(strategy, object[key]); - } catch (ex) { - throw new WrapperError(key, ex); - } - } - - // ensure required keys aren't missing - for (const [key] of this[requiredKeys]) { - if (!(key in object)) { - throw new MissingKeyError(key); - } - } - - } -} - -exports.ObjectSchema = ObjectSchema; diff --git a/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js b/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js deleted file mode 100644 index ecf918bd..00000000 --- a/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @filedescription Validation Strategy - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different validation strategies. - */ -class ValidationStrategy { - - /** - * Validates that a value is an array. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static array(value) { - if (!Array.isArray(value)) { - throw new TypeError("Expected an array."); - } - } - - /** - * Validates that a value is a boolean. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static boolean(value) { - if (typeof value !== "boolean") { - throw new TypeError("Expected a Boolean."); - } - } - - /** - * Validates that a value is a number. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static number(value) { - if (typeof value !== "number") { - throw new TypeError("Expected a number."); - } - } - - /** - * Validates that a value is a object. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static object(value) { - if (!value || typeof value !== "object") { - throw new TypeError("Expected an object."); - } - } - - /** - * Validates that a value is a object or null. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "object?"(value) { - if (typeof value !== "object") { - throw new TypeError("Expected an object or null."); - } - } - - /** - * Validates that a value is a string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static string(value) { - if (typeof value !== "string") { - throw new TypeError("Expected a string."); - } - } - - /** - * Validates that a value is a non-empty string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "string!"(value) { - if (typeof value !== "string" || value.length === 0) { - throw new TypeError("Expected a non-empty string."); - } - } - -} - -exports.ValidationStrategy = ValidationStrategy; diff --git a/node_modules/@humanwhocodes/retry/LICENSE b/node_modules/@humanwhocodes/retry/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/node_modules/@humanwhocodes/retry/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@humanwhocodes/retry/README.md b/node_modules/@humanwhocodes/retry/README.md new file mode 100644 index 00000000..0ec7a471 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/README.md @@ -0,0 +1,177 @@ +# Retry utility + +by [Nicholas C. Zakas](https://humanwhocodes.com) + +If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star. + +## Description + +A utility for retrying failed async JavaScript calls based on the error returned. + +## Usage + +### Node.js + +Install using [npm][npm] or [yarn][yarn]: + +``` +npm install @humanwhocodes/retry + +# or + +yarn add @humanwhocodes/retry +``` + +Import into your Node.js project: + +```js +// CommonJS +const { Retrier } = require("@humanwhocodes/retry"); + +// ESM +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Deno + +Install using [JSR](https://jsr.io): + +```shell +deno add @humanwhocodes/retry + +#or + +jsr add @humanwhocodes/retry +``` + +Then import into your Deno project: + +```js +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Bun + +Install using this command: + +``` +bun add @humanwhocodes/retry +``` + +Import into your Bun project: + +```js +import { Retrier } from "@humanwhocodes/retry"; +``` + +### Browser + +It's recommended to import the minified version to save bandwidth: + +```js +import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?min"; +``` + +However, you can also import the unminified version for debugging purposes: + +```js +import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry"; +``` + +## API + +After importing, create a new instance of `Retrier` and specify the function to run on the error. This function should return `true` if you want the call retried and `false` if not. + +```js +// this instance will retry if the specific error code is found +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); +``` + +Then, call the `retry()` method around the function you'd like to retry, such as: + +```js +import fs from "fs/promises"; + +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); + +const text = await retrier.retry(() => fs.readFile("README.md", "utf8")); +``` + +The `retry()` method will either pass through the result on success or wait and retry on failure. Any error that isn't caught by the retrier is automatically rejected so the end result is a transparent passing through of both success and failure. + +### Setting a Timeout + +You can control how long a task will attempt to retry before giving up by passing the `timeout` option to the `Retrier` constructor. By default, the timeout is one minute. + +```js +import fs from "fs/promises"; + +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}, { timeout: 100_000 }); + +const text = await retrier.retry(() => fs.readFile("README.md", "utf8")); +``` + +When a call times out, it rejects the first error that was received from calling the function. + +### Setting a Concurrency Limit + +When processing a large number of function calls, you can limit the number of concurrent function calls by passing the `concurrency` option to the `Retrier` constructor. By default, `concurrency` is 1000. + +```js +import fs from "fs/promises"; + +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}, { concurrency: 100 }); + +const filenames = getFilenames(); +const contents = await Promise.all( + filenames.map(filename => retrier.retry(() => fs.readFile(filename, "utf8")) +); +``` + +### Aborting with `AbortSignal` + +You can also pass an `AbortSignal` to cancel a retry: + +```js +import fs from "fs/promises"; + +const controller = new AbortController(); +const retrier = new Retrier(error => { + return error.code === "ENFILE" || error.code === "EMFILE"; +}); + +const text = await retrier.retry( + () => fs.readFile("README.md", "utf8"), + { signal: controller.signal } +); +``` + +## Developer Setup + +1. Fork the repository +2. Clone your fork +3. Run `npm install` to setup dependencies +4. Run `npm test` to run tests + +### Debug Output + +Enable debugging output by setting the `DEBUG` environment variable to `"@hwc/retry"` before running. + +## License + +Apache 2.0 + +## Prior Art + +This utility is inspired by, and contains code from [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). + +[npm]: https://npmjs.com/ +[yarn]: https://yarnpkg.com/ diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.cjs b/node_modules/@humanwhocodes/retry/dist/retrier.cjs new file mode 100644 index 00000000..b1897043 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.cjs @@ -0,0 +1,477 @@ +'use strict'; + +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; +const MAX_CONCURRENCY = 1000; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Logs a message to the console if the DEBUG environment variable is set. + * @param {string} message The message to log. + * @returns {void} + */ +function debug(message) { + if (globalThis?.process?.env.DEBUG === "@hwc/retry") { + console.debug(message); + } +} + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + +/** + * Creates a new promise with resolve and reject functions. + * @returns {{promise:Promise, resolve:(value:any) => any, reject: (value:any) => any}} A new promise. + */ +function createPromise() { + if (Promise.withResolvers) { + return Promise.withResolvers(); + } + + let resolve, reject; + + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + + if (resolve === undefined || reject === undefined) { + throw new Error("Promise executor did not initialize resolve or reject."); + } + + return { promise, resolve, reject }; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #retrying = []; + + /** + * Represents the queue for pending tasks. + * @type {Array} + */ + #pending = []; + + /** + * The number of tasks currently being processed. + * @type {number} + */ + #working = 0; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * The maximum number of concurrent tasks. + * @type {number} + */ + #concurrency; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + * @param {number} [options.concurrency] The maximum number of concurrent tasks. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY, concurrency = MAX_CONCURRENCY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + this.#concurrency = concurrency; + } + + /** + * Gets the number of tasks waiting to be retried. + * @returns {number} The number of tasks in the retry queue. + */ + get retrying() { + return this.#retrying.length; + } + + /** + * Gets the number of tasks waiting to be processed in the pending queue. + * @returns {number} The number of tasks in the pending queue. + */ + get pending() { + return this.#pending.length; + } + + /** + * Gets the number of tasks currently being processed. + * @returns {number} The number of tasks currently being processed. + */ + get working() { + return this.#working; + } + + /** + * Calls the function and retries if it fails. + * @param {Function} fn The function to call. + * @param {Object} options The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @param {Promise} options.promise The promise to return when the function settles. + * @param {Function} options.resolve The resolve function for the promise. + * @param {Function} options.reject The reject function for the promise. + * @returns {Promise} A promise that resolves when the function is + * called successfully. + */ + #call(fn, { signal, promise, resolve, reject }) { + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + return promise; + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + reject(new Error("Result is not a promise.")); + return promise; + } + + this.#working++; + promise.finally(() => { + this.#working--; + this.#processPending(); + }); + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result) + .then(value => { + debug("Function called successfully without retry."); + resolve(value); + return promise; + }) + .catch(error => { + if (!this.#check(error)) { + reject(error); + return promise; + } + + const task = new RetryTask(fn, error, resolve, reject, signal); + + debug(`Function failed, queuing for retry with task ${task.id}.`); + this.#retrying.push(task); + + signal?.addEventListener("abort", () => { + debug(`Task ${task.id} was aborted due to AbortSignal.`); + reject(signal.reason); + }); + + this.#processQueue(); + + return promise; + }); + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + const { promise, resolve, reject } = createPromise(); + + this.#pending.push(() => this.#call(fn, { signal, promise, resolve, reject })); + this.#processPending(); + + return promise; + } + + + /** + * Processes the pending queue and the retry queue. + * @returns {void} + */ + #processAll() { + if (this.pending) { + this.#processPending(); + } + + if (this.retrying) { + this.#processQueue(); + } + } + + /** + * Processes the pending queue to see which tasks can be started. + * @returns {void} + */ + #processPending() { + + debug(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`); + + const available = this.#concurrency - this.working; + + if (available <= 0) { + return; + } + + const count = Math.min(this.pending, available); + + for (let i = 0; i < count; i++) { + const task = this.#pending.shift(); + task?.(); + } + + debug(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + debug(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`); + + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processAll(), 0); + }; + + // if there's nothing in the queue, we're done + const task = this.#retrying.shift(); + if (!task) { + debug("Queue is empty, exiting."); + + if (this.pending) { + processAgain(); + } + return; + } + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + debug(`Task ${task.id} was abandoned due to timeout.`); + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + debug(`Task ${task.id} is not ready to retry, skipping.`); + this.#retrying.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => { + debug(`Task ${task.id} succeeded after ${task.age}ms.`); + task.resolve(result); + }) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + debug(`Task ${task.id} failed with non-retryable error: ${error.message}.`); + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#retrying.push(task); + debug(`Task ${task.id} failed, requeueing to try again.`); + }) + .finally(() => { + this.#processAll(); + }); + } +} + +exports.Retrier = Retrier; diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.d.cts b/node_modules/@humanwhocodes/retry/dist/retrier.d.cts new file mode 100644 index 00000000..4b60d6f0 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.d.cts @@ -0,0 +1,45 @@ +/** + * A class that manages a queue of retry jobs. + */ +export class Retrier { + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + * @param {number} [options.concurrency] The maximum number of concurrent tasks. + */ + constructor(check: Function, { timeout, maxDelay, concurrency }?: { + timeout?: number | undefined; + maxDelay?: number | undefined; + concurrency?: number | undefined; + } | undefined); + /** + * Gets the number of tasks waiting to be retried. + * @returns {number} The number of tasks in the retry queue. + */ + get retrying(): number; + /** + * Gets the number of tasks waiting to be processed in the pending queue. + * @returns {number} The number of tasks in the pending queue. + */ + get pending(): number; + /** + * Gets the number of tasks currently being processed. + * @returns {number} The number of tasks currently being processed. + */ + get working(): number; + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn: Function, { signal }?: { + signal?: AbortSignal | undefined; + } | undefined): Promise; + #private; +} diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.d.ts b/node_modules/@humanwhocodes/retry/dist/retrier.d.ts new file mode 100644 index 00000000..4b60d6f0 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.d.ts @@ -0,0 +1,45 @@ +/** + * A class that manages a queue of retry jobs. + */ +export class Retrier { + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + * @param {number} [options.concurrency] The maximum number of concurrent tasks. + */ + constructor(check: Function, { timeout, maxDelay, concurrency }?: { + timeout?: number | undefined; + maxDelay?: number | undefined; + concurrency?: number | undefined; + } | undefined); + /** + * Gets the number of tasks waiting to be retried. + * @returns {number} The number of tasks in the retry queue. + */ + get retrying(): number; + /** + * Gets the number of tasks waiting to be processed in the pending queue. + * @returns {number} The number of tasks in the pending queue. + */ + get pending(): number; + /** + * Gets the number of tasks currently being processed. + * @returns {number} The number of tasks currently being processed. + */ + get working(): number; + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn: Function, { signal }?: { + signal?: AbortSignal | undefined; + } | undefined): Promise; + #private; +} diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.js b/node_modules/@humanwhocodes/retry/dist/retrier.js new file mode 100644 index 00000000..4d52580b --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.js @@ -0,0 +1,476 @@ +// @ts-self-types="./retrier.d.ts" +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; +const MAX_CONCURRENCY = 1000; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Logs a message to the console if the DEBUG environment variable is set. + * @param {string} message The message to log. + * @returns {void} + */ +function debug(message) { + if (globalThis?.process?.env.DEBUG === "@hwc/retry") { + console.debug(message); + } +} + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + +/** + * Creates a new promise with resolve and reject functions. + * @returns {{promise:Promise, resolve:(value:any) => any, reject: (value:any) => any}} A new promise. + */ +function createPromise() { + if (Promise.withResolvers) { + return Promise.withResolvers(); + } + + let resolve, reject; + + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + + if (resolve === undefined || reject === undefined) { + throw new Error("Promise executor did not initialize resolve or reject."); + } + + return { promise, resolve, reject }; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #retrying = []; + + /** + * Represents the queue for pending tasks. + * @type {Array} + */ + #pending = []; + + /** + * The number of tasks currently being processed. + * @type {number} + */ + #working = 0; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * The maximum number of concurrent tasks. + * @type {number} + */ + #concurrency; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + * @param {number} [options.concurrency] The maximum number of concurrent tasks. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY, concurrency = MAX_CONCURRENCY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + this.#concurrency = concurrency; + } + + /** + * Gets the number of tasks waiting to be retried. + * @returns {number} The number of tasks in the retry queue. + */ + get retrying() { + return this.#retrying.length; + } + + /** + * Gets the number of tasks waiting to be processed in the pending queue. + * @returns {number} The number of tasks in the pending queue. + */ + get pending() { + return this.#pending.length; + } + + /** + * Gets the number of tasks currently being processed. + * @returns {number} The number of tasks currently being processed. + */ + get working() { + return this.#working; + } + + /** + * Calls the function and retries if it fails. + * @param {Function} fn The function to call. + * @param {Object} options The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @param {Promise} options.promise The promise to return when the function settles. + * @param {Function} options.resolve The resolve function for the promise. + * @param {Function} options.reject The reject function for the promise. + * @returns {Promise} A promise that resolves when the function is + * called successfully. + */ + #call(fn, { signal, promise, resolve, reject }) { + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + return promise; + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + reject(new Error("Result is not a promise.")); + return promise; + } + + this.#working++; + promise.finally(() => { + this.#working--; + this.#processPending(); + }); + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result) + .then(value => { + debug("Function called successfully without retry."); + resolve(value); + return promise; + }) + .catch(error => { + if (!this.#check(error)) { + reject(error); + return promise; + } + + const task = new RetryTask(fn, error, resolve, reject, signal); + + debug(`Function failed, queuing for retry with task ${task.id}.`); + this.#retrying.push(task); + + signal?.addEventListener("abort", () => { + debug(`Task ${task.id} was aborted due to AbortSignal.`); + reject(signal.reason); + }); + + this.#processQueue(); + + return promise; + }); + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + const { promise, resolve, reject } = createPromise(); + + this.#pending.push(() => this.#call(fn, { signal, promise, resolve, reject })); + this.#processPending(); + + return promise; + } + + + /** + * Processes the pending queue and the retry queue. + * @returns {void} + */ + #processAll() { + if (this.pending) { + this.#processPending(); + } + + if (this.retrying) { + this.#processQueue(); + } + } + + /** + * Processes the pending queue to see which tasks can be started. + * @returns {void} + */ + #processPending() { + + debug(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`); + + const available = this.#concurrency - this.working; + + if (available <= 0) { + return; + } + + const count = Math.min(this.pending, available); + + for (let i = 0; i < count; i++) { + const task = this.#pending.shift(); + task?.(); + } + + debug(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + debug(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`); + + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processAll(), 0); + }; + + // if there's nothing in the queue, we're done + const task = this.#retrying.shift(); + if (!task) { + debug("Queue is empty, exiting."); + + if (this.pending) { + processAgain(); + } + return; + } + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + debug(`Task ${task.id} was abandoned due to timeout.`); + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + debug(`Task ${task.id} is not ready to retry, skipping.`); + this.#retrying.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => { + debug(`Task ${task.id} succeeded after ${task.age}ms.`); + task.resolve(result); + }) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + debug(`Task ${task.id} failed with non-retryable error: ${error.message}.`); + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#retrying.push(task); + debug(`Task ${task.id} failed, requeueing to try again.`); + }) + .finally(() => { + this.#processAll(); + }); + } +} + +export { Retrier }; diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.min.js b/node_modules/@humanwhocodes/retry/dist/retrier.min.js new file mode 100644 index 00000000..61a88b03 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.min.js @@ -0,0 +1 @@ +function e(e){"@hwc/retry"===globalThis?.process?.env.DEBUG&&console.debug(e)}class RetryTask{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,r,i,s){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=i,this.signal=s}get age(){return Date.now()-this.timestamp}}class Retrier{#e=[];#t=[];#r=0;#i;#s;#n;#o;#c;constructor(e,{timeout:t=6e4,maxDelay:r=100,concurrency:i=1e3}={}){if("function"!=typeof e)throw new Error("Missing function to check errors");this.#o=e,this.#i=t,this.#s=r,this.#c=i}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#r}#a(t,{signal:r,promise:i,resolve:s,reject:n}){let o;try{o=t()}catch(e){return n(new Error(`Synchronous error: ${e.message}`,{cause:e})),i}return o&&"function"==typeof o.then?(this.#r++,i.finally((()=>{this.#r--,this.#h()})),Promise.resolve(o).then((t=>(e("Function called successfully without retry."),s(t),i))).catch((o=>{if(!this.#o(o))return n(o),i;const c=new RetryTask(t,o,s,n,r);return e(`Function failed, queuing for retry with task ${c.id}.`),this.#e.push(c),r?.addEventListener("abort",(()=>{e(`Task ${c.id} was aborted due to AbortSignal.`),n(r.reason)})),this.#g(),i}))):(n(new Error("Result is not a promise.")),i)}retry(e,{signal:t}={}){t?.throwIfAborted();const{promise:r,resolve:i,reject:s}=function(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;const r=new Promise(((r,i)=>{e=r,t=i}));if(void 0===e||void 0===t)throw new Error("Promise executor did not initialize resolve or reject.");return{promise:r,resolve:e,reject:t}}();return this.#t.push((()=>this.#a(e,{signal:t,promise:r,resolve:i,reject:s}))),this.#h(),r}#u(){this.pending&&this.#h(),this.retrying&&this.#g()}#h(){e(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);const t=this.#c-this.working;if(t<=0)return;const r=Math.min(this.pending,t);for(let e=0;e{this.#n=setTimeout((()=>this.#u()),0)},r=this.#e.shift();return r?function(e,t){return e.age>t}(r,this.#i)?(e(`Task ${r.id} was abandoned due to timeout.`),r.reject(r.error),void t()):function(e,t){const r=Date.now()-e.lastAttempt,i=Math.max(e.lastAttempt-e.timestamp,1);return r>=Math.min(1.2*i,t)}(r,this.#s)?(r.lastAttempt=Date.now(),void Promise.resolve(r.fn()).then((t=>{e(`Task ${r.id} succeeded after ${r.age}ms.`),r.resolve(t)})).catch((t=>{if(!this.#o(t))return e(`Task ${r.id} failed with non-retryable error: ${t.message}.`),void r.reject(t);r.lastAttempt=Date.now(),this.#e.push(r),e(`Task ${r.id} failed, requeueing to try again.`)})).finally((()=>{this.#u()}))):(e(`Task ${r.id} is not ready to retry, skipping.`),this.#e.push(r),void t()):(e("Queue is empty, exiting."),void(this.pending&&t()))}}export{Retrier}; diff --git a/node_modules/@humanwhocodes/retry/dist/retrier.mjs b/node_modules/@humanwhocodes/retry/dist/retrier.mjs new file mode 100644 index 00000000..85cdbfc5 --- /dev/null +++ b/node_modules/@humanwhocodes/retry/dist/retrier.mjs @@ -0,0 +1,475 @@ +/** + * @fileoverview A utility for retrying failed async method calls. + */ + +/* global setTimeout, clearTimeout */ + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +const MAX_TASK_TIMEOUT = 60000; +const MAX_TASK_DELAY = 100; +const MAX_CONCURRENCY = 1000; + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +/** + * Logs a message to the console if the DEBUG environment variable is set. + * @param {string} message The message to log. + * @returns {void} + */ +function debug(message) { + if (globalThis?.process?.env.DEBUG === "@hwc/retry") { + console.debug(message); + } +} + +/* + * The following logic has been extracted from graceful-fs. + * + * The ISC License + * + * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/** + * Checks if it is time to retry a task based on the timestamp and last attempt time. + * @param {RetryTask} task The task to check. + * @param {number} maxDelay The maximum delay for the queue. + * @returns {boolean} true if it is time to retry, false otherwise. + */ +function isTimeToRetry(task, maxDelay) { + const timeSinceLastAttempt = Date.now() - task.lastAttempt; + const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); + const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); + + return timeSinceLastAttempt >= desiredDelay; +} + +/** + * Checks if it is time to bail out based on the given timestamp. + * @param {RetryTask} task The task to check. + * @param {number} timeout The timeout for the queue. + * @returns {boolean} true if it is time to bail, false otherwise. + */ +function isTimeToBail(task, timeout) { + return task.age > timeout; +} + +/** + * Creates a new promise with resolve and reject functions. + * @returns {{promise:Promise, resolve:(value:any) => any, reject: (value:any) => any}} A new promise. + */ +function createPromise() { + if (Promise.withResolvers) { + return Promise.withResolvers(); + } + + let resolve, reject; + + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + + if (resolve === undefined || reject === undefined) { + throw new Error("Promise executor did not initialize resolve or reject."); + } + + return { promise, resolve, reject }; +} + + +/** + * A class to represent a task in the retry queue. + */ +class RetryTask { + + /** + * The unique ID for the task. + * @type {string} + */ + id = Math.random().toString(36).slice(2); + + /** + * The function to call. + * @type {Function} + */ + fn; + + /** + * The error that was thrown. + * @type {Error} + */ + error; + + /** + * The timestamp of the task. + * @type {number} + */ + timestamp = Date.now(); + + /** + * The timestamp of the last attempt. + * @type {number} + */ + lastAttempt = this.timestamp; + + /** + * The resolve function for the promise. + * @type {Function} + */ + resolve; + + /** + * The reject function for the promise. + * @type {Function} + */ + reject; + + /** + * The AbortSignal to monitor for cancellation. + * @type {AbortSignal|undefined} + */ + signal; + + /** + * Creates a new instance. + * @param {Function} fn The function to call. + * @param {Error} error The error that was thrown. + * @param {Function} resolve The resolve function for the promise. + * @param {Function} reject The reject function for the promise. + * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. + */ + constructor(fn, error, resolve, reject, signal) { + this.fn = fn; + this.error = error; + this.timestamp = Date.now(); + this.lastAttempt = Date.now(); + this.resolve = resolve; + this.reject = reject; + this.signal = signal; + } + + /** + * Gets the age of the task. + * @returns {number} The age of the task in milliseconds. + * @readonly + */ + get age() { + return Date.now() - this.timestamp; + } +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * A class that manages a queue of retry jobs. + */ +class Retrier { + + /** + * Represents the queue for processing tasks. + * @type {Array} + */ + #retrying = []; + + /** + * Represents the queue for pending tasks. + * @type {Array} + */ + #pending = []; + + /** + * The number of tasks currently being processed. + * @type {number} + */ + #working = 0; + + /** + * The timeout for the queue. + * @type {number} + */ + #timeout; + + /** + * The maximum delay for the queue. + * @type {number} + */ + #maxDelay; + + /** + * The setTimeout() timer ID. + * @type {NodeJS.Timeout|undefined} + */ + #timerId; + + /** + * The function to call. + * @type {Function} + */ + #check; + + /** + * The maximum number of concurrent tasks. + * @type {number} + */ + #concurrency; + + /** + * Creates a new instance. + * @param {Function} check The function to call. + * @param {object} [options] The options for the instance. + * @param {number} [options.timeout] The timeout for the queue. + * @param {number} [options.maxDelay] The maximum delay for the queue. + * @param {number} [options.concurrency] The maximum number of concurrent tasks. + */ + constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY, concurrency = MAX_CONCURRENCY } = {}) { + + if (typeof check !== "function") { + throw new Error("Missing function to check errors"); + } + + this.#check = check; + this.#timeout = timeout; + this.#maxDelay = maxDelay; + this.#concurrency = concurrency; + } + + /** + * Gets the number of tasks waiting to be retried. + * @returns {number} The number of tasks in the retry queue. + */ + get retrying() { + return this.#retrying.length; + } + + /** + * Gets the number of tasks waiting to be processed in the pending queue. + * @returns {number} The number of tasks in the pending queue. + */ + get pending() { + return this.#pending.length; + } + + /** + * Gets the number of tasks currently being processed. + * @returns {number} The number of tasks currently being processed. + */ + get working() { + return this.#working; + } + + /** + * Calls the function and retries if it fails. + * @param {Function} fn The function to call. + * @param {Object} options The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @param {Promise} options.promise The promise to return when the function settles. + * @param {Function} options.resolve The resolve function for the promise. + * @param {Function} options.reject The reject function for the promise. + * @returns {Promise} A promise that resolves when the function is + * called successfully. + */ + #call(fn, { signal, promise, resolve, reject }) { + + let result; + + try { + result = fn(); + } catch (/** @type {any} */ error) { + reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); + return promise; + } + + // if the result is not a promise then reject an error + if (!result || typeof result.then !== "function") { + reject(new Error("Result is not a promise.")); + return promise; + } + + this.#working++; + promise.finally(() => { + this.#working--; + this.#processPending(); + }); + + // call the original function and catch any ENFILE or EMFILE errors + // @ts-ignore because we know it's any + return Promise.resolve(result) + .then(value => { + debug("Function called successfully without retry."); + resolve(value); + return promise; + }) + .catch(error => { + if (!this.#check(error)) { + reject(error); + return promise; + } + + const task = new RetryTask(fn, error, resolve, reject, signal); + + debug(`Function failed, queuing for retry with task ${task.id}.`); + this.#retrying.push(task); + + signal?.addEventListener("abort", () => { + debug(`Task ${task.id} was aborted due to AbortSignal.`); + reject(signal.reason); + }); + + this.#processQueue(); + + return promise; + }); + } + + /** + * Adds a new retry job to the queue. + * @param {Function} fn The function to call. + * @param {object} [options] The options for the job. + * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. + * @returns {Promise} A promise that resolves when the queue is + * processed. + */ + retry(fn, { signal } = {}) { + + signal?.throwIfAborted(); + + const { promise, resolve, reject } = createPromise(); + + this.#pending.push(() => this.#call(fn, { signal, promise, resolve, reject })); + this.#processPending(); + + return promise; + } + + + /** + * Processes the pending queue and the retry queue. + * @returns {void} + */ + #processAll() { + if (this.pending) { + this.#processPending(); + } + + if (this.retrying) { + this.#processQueue(); + } + } + + /** + * Processes the pending queue to see which tasks can be started. + * @returns {void} + */ + #processPending() { + + debug(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`); + + const available = this.#concurrency - this.working; + + if (available <= 0) { + return; + } + + const count = Math.min(this.pending, available); + + for (let i = 0; i < count; i++) { + const task = this.#pending.shift(); + task?.(); + } + + debug(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`); + } + + /** + * Processes the queue. + * @returns {void} + */ + #processQueue() { + // clear any timer because we're going to check right now + clearTimeout(this.#timerId); + this.#timerId = undefined; + + debug(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`); + + const processAgain = () => { + this.#timerId = setTimeout(() => this.#processAll(), 0); + }; + + // if there's nothing in the queue, we're done + const task = this.#retrying.shift(); + if (!task) { + debug("Queue is empty, exiting."); + + if (this.pending) { + processAgain(); + } + return; + } + + // if it's time to bail, then bail + if (isTimeToBail(task, this.#timeout)) { + debug(`Task ${task.id} was abandoned due to timeout.`); + task.reject(task.error); + processAgain(); + return; + } + + // if it's not time to retry, then wait and try again + if (!isTimeToRetry(task, this.#maxDelay)) { + debug(`Task ${task.id} is not ready to retry, skipping.`); + this.#retrying.push(task); + processAgain(); + return; + } + + // otherwise, try again + task.lastAttempt = Date.now(); + + // Promise.resolve needed in case it's a thenable but not a Promise + Promise.resolve(task.fn()) + // @ts-ignore because we know it's any + .then(result => { + debug(`Task ${task.id} succeeded after ${task.age}ms.`); + task.resolve(result); + }) + + // @ts-ignore because we know it's any + .catch(error => { + if (!this.#check(error)) { + debug(`Task ${task.id} failed with non-retryable error: ${error.message}.`); + task.reject(error); + return; + } + + // update the task timestamp and push to back of queue to try again + task.lastAttempt = Date.now(); + this.#retrying.push(task); + debug(`Task ${task.id} failed, requeueing to try again.`); + }) + .finally(() => { + this.#processAll(); + }); + } +} + +export { Retrier }; diff --git a/node_modules/@humanwhocodes/retry/package.json b/node_modules/@humanwhocodes/retry/package.json new file mode 100644 index 00000000..337e108b --- /dev/null +++ b/node_modules/@humanwhocodes/retry/package.json @@ -0,0 +1,77 @@ +{ + "name": "@humanwhocodes/retry", + "version": "0.4.1", + "description": "A utility to retry failed async methods.", + "type": "module", + "main": "dist/retrier.cjs", + "module": "dist/retrier.js", + "types": "dist/retrier.d.ts", + "exports": { + "require": { + "types": "./dist/retrier.d.cts", + "default": "./dist/retrier.cjs" + }, + "import": { + "types": "./dist/retrier.d.ts", + "default": "./dist/retrier.js" + } + }, + "files": [ + "dist" + ], + "engines": { + "node": ">=18.18" + }, + "publishConfig": { + "access": "public" + }, + "gitHooks": { + "pre-commit": "lint-staged" + }, + "lint-staged": { + "*.js": [ + "eslint --fix" + ] + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + }, + "scripts": { + "build:cts-types": "node -e \"fs.copyFileSync('dist/retrier.d.ts', 'dist/retrier.d.cts')\"", + "build": "rollup -c && tsc && npm run build:cts-types", + "prepare": "npm run build", + "lint": "eslint src/ tests/", + "pretest": "npm run build", + "test:unit": "mocha tests/retrier.test.js", + "test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs", + "test:jsr": "npx jsr@latest publish --dry-run", + "test:emfile": "node tools/check-emfile-handling.js", + "test": "npm run test:unit && npm run test:build" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/humanwhocodes/retry.git" + }, + "keywords": [ + "nodejs", + "retry", + "async", + "promises" + ], + "author": "Nicholas C. Zaks", + "license": "Apache-2.0", + "devDependencies": { + "@eslint/js": "^8.49.0", + "@rollup/plugin-terser": "0.4.4", + "@tsconfig/node16": "^16.1.1", + "@types/mocha": "^10.0.3", + "@types/node": "20.12.6", + "eslint": "^8.21.0", + "lint-staged": "15.2.1", + "mocha": "^10.3.0", + "rollup": "3.29.4", + "typescript": "5.4.4", + "yorkie": "2.0.0" + } +} diff --git a/node_modules/@pulumi/pulumi/package.json b/node_modules/@pulumi/pulumi/package.json index 170ab51c..fdbe4f16 100644 --- a/node_modules/@pulumi/pulumi/package.json +++ b/node_modules/@pulumi/pulumi/package.json @@ -1,6 +1,6 @@ { "name": "@pulumi/pulumi", - "version": "3.141.0", + "version": "3.142.0", "description": "Pulumi's Node.js SDK", "license": "Apache-2.0", "repository": { diff --git a/node_modules/@pulumi/pulumi/version.d.ts b/node_modules/@pulumi/pulumi/version.d.ts index 7928a7a4..7393d25b 100644 --- a/node_modules/@pulumi/pulumi/version.d.ts +++ b/node_modules/@pulumi/pulumi/version.d.ts @@ -1 +1 @@ -export declare const version = "3.141.0"; +export declare const version = "3.142.0"; diff --git a/node_modules/@pulumi/pulumi/version.js b/node_modules/@pulumi/pulumi/version.js index 9e3cb51b..6f7a02de 100644 --- a/node_modules/@pulumi/pulumi/version.js +++ b/node_modules/@pulumi/pulumi/version.js @@ -13,5 +13,5 @@ // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = "3.141.0"; +exports.version = "3.142.0"; //# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/node_modules/@types/estree/LICENSE b/node_modules/@types/estree/LICENSE new file mode 100644 index 00000000..9e841e7a --- /dev/null +++ b/node_modules/@types/estree/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + 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 diff --git a/node_modules/@types/estree/README.md b/node_modules/@types/estree/README.md new file mode 100644 index 00000000..6e40c08d --- /dev/null +++ b/node_modules/@types/estree/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/estree` + +# Summary +This package contains type definitions for estree (https://github.com/estree/estree). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree. + +### Additional Details + * Last updated: Wed, 18 Sep 2024 09:37:00 GMT + * Dependencies: none + +# Credits +These definitions were written by [RReverser](https://github.com/RReverser). diff --git a/node_modules/@types/estree/flow.d.ts b/node_modules/@types/estree/flow.d.ts new file mode 100644 index 00000000..9d001a92 --- /dev/null +++ b/node_modules/@types/estree/flow.d.ts @@ -0,0 +1,167 @@ +declare namespace ESTree { + interface FlowTypeAnnotation extends Node {} + + interface FlowBaseTypeAnnotation extends FlowTypeAnnotation {} + + interface FlowLiteralTypeAnnotation extends FlowTypeAnnotation, Literal {} + + interface FlowDeclaration extends Declaration {} + + interface AnyTypeAnnotation extends FlowBaseTypeAnnotation {} + + interface ArrayTypeAnnotation extends FlowTypeAnnotation { + elementType: FlowTypeAnnotation; + } + + interface BooleanLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} + + interface BooleanTypeAnnotation extends FlowBaseTypeAnnotation {} + + interface ClassImplements extends Node { + id: Identifier; + typeParameters?: TypeParameterInstantiation | null; + } + + interface ClassProperty { + key: Expression; + value?: Expression | null; + typeAnnotation?: TypeAnnotation | null; + computed: boolean; + static: boolean; + } + + interface DeclareClass extends FlowDeclaration { + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + body: ObjectTypeAnnotation; + extends: InterfaceExtends[]; + } + + interface DeclareFunction extends FlowDeclaration { + id: Identifier; + } + + interface DeclareModule extends FlowDeclaration { + id: Literal | Identifier; + body: BlockStatement; + } + + interface DeclareVariable extends FlowDeclaration { + id: Identifier; + } + + interface FunctionTypeAnnotation extends FlowTypeAnnotation { + params: FunctionTypeParam[]; + returnType: FlowTypeAnnotation; + rest?: FunctionTypeParam | null; + typeParameters?: TypeParameterDeclaration | null; + } + + interface FunctionTypeParam { + name: Identifier; + typeAnnotation: FlowTypeAnnotation; + optional: boolean; + } + + interface GenericTypeAnnotation extends FlowTypeAnnotation { + id: Identifier | QualifiedTypeIdentifier; + typeParameters?: TypeParameterInstantiation | null; + } + + interface InterfaceExtends extends Node { + id: Identifier | QualifiedTypeIdentifier; + typeParameters?: TypeParameterInstantiation | null; + } + + interface InterfaceDeclaration extends FlowDeclaration { + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + extends: InterfaceExtends[]; + body: ObjectTypeAnnotation; + } + + interface IntersectionTypeAnnotation extends FlowTypeAnnotation { + types: FlowTypeAnnotation[]; + } + + interface MixedTypeAnnotation extends FlowBaseTypeAnnotation {} + + interface NullableTypeAnnotation extends FlowTypeAnnotation { + typeAnnotation: TypeAnnotation; + } + + interface NumberLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} + + interface NumberTypeAnnotation extends FlowBaseTypeAnnotation {} + + interface StringLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} + + interface StringTypeAnnotation extends FlowBaseTypeAnnotation {} + + interface TupleTypeAnnotation extends FlowTypeAnnotation { + types: FlowTypeAnnotation[]; + } + + interface TypeofTypeAnnotation extends FlowTypeAnnotation { + argument: FlowTypeAnnotation; + } + + interface TypeAlias extends FlowDeclaration { + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + right: FlowTypeAnnotation; + } + + interface TypeAnnotation extends Node { + typeAnnotation: FlowTypeAnnotation; + } + + interface TypeCastExpression extends Expression { + expression: Expression; + typeAnnotation: TypeAnnotation; + } + + interface TypeParameterDeclaration extends Node { + params: Identifier[]; + } + + interface TypeParameterInstantiation extends Node { + params: FlowTypeAnnotation[]; + } + + interface ObjectTypeAnnotation extends FlowTypeAnnotation { + properties: ObjectTypeProperty[]; + indexers: ObjectTypeIndexer[]; + callProperties: ObjectTypeCallProperty[]; + } + + interface ObjectTypeCallProperty extends Node { + value: FunctionTypeAnnotation; + static: boolean; + } + + interface ObjectTypeIndexer extends Node { + id: Identifier; + key: FlowTypeAnnotation; + value: FlowTypeAnnotation; + static: boolean; + } + + interface ObjectTypeProperty extends Node { + key: Expression; + value: FlowTypeAnnotation; + optional: boolean; + static: boolean; + } + + interface QualifiedTypeIdentifier extends Node { + qualification: Identifier | QualifiedTypeIdentifier; + id: Identifier; + } + + interface UnionTypeAnnotation extends FlowTypeAnnotation { + types: FlowTypeAnnotation[]; + } + + interface VoidTypeAnnotation extends FlowBaseTypeAnnotation {} +} diff --git a/node_modules/@types/estree/index.d.ts b/node_modules/@types/estree/index.d.ts new file mode 100644 index 00000000..81a351f9 --- /dev/null +++ b/node_modules/@types/estree/index.d.ts @@ -0,0 +1,684 @@ +// This definition file follows a somewhat unusual format. ESTree allows +// runtime type checks based on the `type` parameter. In order to explain this +// to typescript we want to use discriminated union types: +// https://github.com/Microsoft/TypeScript/pull/9163 +// +// For ESTree this is a bit tricky because the high level interfaces like +// Node or Function are pulling double duty. We want to pass common fields down +// to the interfaces that extend them (like Identifier or +// ArrowFunctionExpression), but you can't extend a type union or enforce +// common fields on them. So we've split the high level interfaces into two +// types, a base type which passes down inherited fields, and a type union of +// all types which extend the base type. Only the type union is exported, and +// the union is how other types refer to the collection of inheriting types. +// +// This makes the definitions file here somewhat more difficult to maintain, +// but it has the notable advantage of making ESTree much easier to use as +// an end user. + +export interface BaseNodeWithoutComments { + // Every leaf interface that extends BaseNode must specify a type property. + // The type property should be a string literal. For example, Identifier + // has: `type: "Identifier"` + type: string; + loc?: SourceLocation | null | undefined; + range?: [number, number] | undefined; +} + +export interface BaseNode extends BaseNodeWithoutComments { + leadingComments?: Comment[] | undefined; + trailingComments?: Comment[] | undefined; +} + +export interface NodeMap { + AssignmentProperty: AssignmentProperty; + CatchClause: CatchClause; + Class: Class; + ClassBody: ClassBody; + Expression: Expression; + Function: Function; + Identifier: Identifier; + Literal: Literal; + MethodDefinition: MethodDefinition; + ModuleDeclaration: ModuleDeclaration; + ModuleSpecifier: ModuleSpecifier; + Pattern: Pattern; + PrivateIdentifier: PrivateIdentifier; + Program: Program; + Property: Property; + PropertyDefinition: PropertyDefinition; + SpreadElement: SpreadElement; + Statement: Statement; + Super: Super; + SwitchCase: SwitchCase; + TemplateElement: TemplateElement; + VariableDeclarator: VariableDeclarator; +} + +export type Node = NodeMap[keyof NodeMap]; + +export interface Comment extends BaseNodeWithoutComments { + type: "Line" | "Block"; + value: string; +} + +export interface SourceLocation { + source?: string | null | undefined; + start: Position; + end: Position; +} + +export interface Position { + /** >= 1 */ + line: number; + /** >= 0 */ + column: number; +} + +export interface Program extends BaseNode { + type: "Program"; + sourceType: "script" | "module"; + body: Array; + comments?: Comment[] | undefined; +} + +export interface Directive extends BaseNode { + type: "ExpressionStatement"; + expression: Literal; + directive: string; +} + +export interface BaseFunction extends BaseNode { + params: Pattern[]; + generator?: boolean | undefined; + async?: boolean | undefined; + // The body is either BlockStatement or Expression because arrow functions + // can have a body that's either. FunctionDeclarations and + // FunctionExpressions have only BlockStatement bodies. + body: BlockStatement | Expression; +} + +export type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression; + +export type Statement = + | ExpressionStatement + | BlockStatement + | StaticBlock + | EmptyStatement + | DebuggerStatement + | WithStatement + | ReturnStatement + | LabeledStatement + | BreakStatement + | ContinueStatement + | IfStatement + | SwitchStatement + | ThrowStatement + | TryStatement + | WhileStatement + | DoWhileStatement + | ForStatement + | ForInStatement + | ForOfStatement + | Declaration; + +export interface BaseStatement extends BaseNode {} + +export interface EmptyStatement extends BaseStatement { + type: "EmptyStatement"; +} + +export interface BlockStatement extends BaseStatement { + type: "BlockStatement"; + body: Statement[]; + innerComments?: Comment[] | undefined; +} + +export interface StaticBlock extends Omit { + type: "StaticBlock"; +} + +export interface ExpressionStatement extends BaseStatement { + type: "ExpressionStatement"; + expression: Expression; +} + +export interface IfStatement extends BaseStatement { + type: "IfStatement"; + test: Expression; + consequent: Statement; + alternate?: Statement | null | undefined; +} + +export interface LabeledStatement extends BaseStatement { + type: "LabeledStatement"; + label: Identifier; + body: Statement; +} + +export interface BreakStatement extends BaseStatement { + type: "BreakStatement"; + label?: Identifier | null | undefined; +} + +export interface ContinueStatement extends BaseStatement { + type: "ContinueStatement"; + label?: Identifier | null | undefined; +} + +export interface WithStatement extends BaseStatement { + type: "WithStatement"; + object: Expression; + body: Statement; +} + +export interface SwitchStatement extends BaseStatement { + type: "SwitchStatement"; + discriminant: Expression; + cases: SwitchCase[]; +} + +export interface ReturnStatement extends BaseStatement { + type: "ReturnStatement"; + argument?: Expression | null | undefined; +} + +export interface ThrowStatement extends BaseStatement { + type: "ThrowStatement"; + argument: Expression; +} + +export interface TryStatement extends BaseStatement { + type: "TryStatement"; + block: BlockStatement; + handler?: CatchClause | null | undefined; + finalizer?: BlockStatement | null | undefined; +} + +export interface WhileStatement extends BaseStatement { + type: "WhileStatement"; + test: Expression; + body: Statement; +} + +export interface DoWhileStatement extends BaseStatement { + type: "DoWhileStatement"; + body: Statement; + test: Expression; +} + +export interface ForStatement extends BaseStatement { + type: "ForStatement"; + init?: VariableDeclaration | Expression | null | undefined; + test?: Expression | null | undefined; + update?: Expression | null | undefined; + body: Statement; +} + +export interface BaseForXStatement extends BaseStatement { + left: VariableDeclaration | Pattern; + right: Expression; + body: Statement; +} + +export interface ForInStatement extends BaseForXStatement { + type: "ForInStatement"; +} + +export interface DebuggerStatement extends BaseStatement { + type: "DebuggerStatement"; +} + +export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration; + +export interface BaseDeclaration extends BaseStatement {} + +export interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration { + type: "FunctionDeclaration"; + /** It is null when a function declaration is a part of the `export default function` statement */ + id: Identifier | null; + body: BlockStatement; +} + +export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration { + id: Identifier; +} + +export interface VariableDeclaration extends BaseDeclaration { + type: "VariableDeclaration"; + declarations: VariableDeclarator[]; + kind: "var" | "let" | "const"; +} + +export interface VariableDeclarator extends BaseNode { + type: "VariableDeclarator"; + id: Pattern; + init?: Expression | null | undefined; +} + +export interface ExpressionMap { + ArrayExpression: ArrayExpression; + ArrowFunctionExpression: ArrowFunctionExpression; + AssignmentExpression: AssignmentExpression; + AwaitExpression: AwaitExpression; + BinaryExpression: BinaryExpression; + CallExpression: CallExpression; + ChainExpression: ChainExpression; + ClassExpression: ClassExpression; + ConditionalExpression: ConditionalExpression; + FunctionExpression: FunctionExpression; + Identifier: Identifier; + ImportExpression: ImportExpression; + Literal: Literal; + LogicalExpression: LogicalExpression; + MemberExpression: MemberExpression; + MetaProperty: MetaProperty; + NewExpression: NewExpression; + ObjectExpression: ObjectExpression; + SequenceExpression: SequenceExpression; + TaggedTemplateExpression: TaggedTemplateExpression; + TemplateLiteral: TemplateLiteral; + ThisExpression: ThisExpression; + UnaryExpression: UnaryExpression; + UpdateExpression: UpdateExpression; + YieldExpression: YieldExpression; +} + +export type Expression = ExpressionMap[keyof ExpressionMap]; + +export interface BaseExpression extends BaseNode {} + +export type ChainElement = SimpleCallExpression | MemberExpression; + +export interface ChainExpression extends BaseExpression { + type: "ChainExpression"; + expression: ChainElement; +} + +export interface ThisExpression extends BaseExpression { + type: "ThisExpression"; +} + +export interface ArrayExpression extends BaseExpression { + type: "ArrayExpression"; + elements: Array; +} + +export interface ObjectExpression extends BaseExpression { + type: "ObjectExpression"; + properties: Array; +} + +export interface PrivateIdentifier extends BaseNode { + type: "PrivateIdentifier"; + name: string; +} + +export interface Property extends BaseNode { + type: "Property"; + key: Expression | PrivateIdentifier; + value: Expression | Pattern; // Could be an AssignmentProperty + kind: "init" | "get" | "set"; + method: boolean; + shorthand: boolean; + computed: boolean; +} + +export interface PropertyDefinition extends BaseNode { + type: "PropertyDefinition"; + key: Expression | PrivateIdentifier; + value?: Expression | null | undefined; + computed: boolean; + static: boolean; +} + +export interface FunctionExpression extends BaseFunction, BaseExpression { + id?: Identifier | null | undefined; + type: "FunctionExpression"; + body: BlockStatement; +} + +export interface SequenceExpression extends BaseExpression { + type: "SequenceExpression"; + expressions: Expression[]; +} + +export interface UnaryExpression extends BaseExpression { + type: "UnaryExpression"; + operator: UnaryOperator; + prefix: true; + argument: Expression; +} + +export interface BinaryExpression extends BaseExpression { + type: "BinaryExpression"; + operator: BinaryOperator; + left: Expression | PrivateIdentifier; + right: Expression; +} + +export interface AssignmentExpression extends BaseExpression { + type: "AssignmentExpression"; + operator: AssignmentOperator; + left: Pattern | MemberExpression; + right: Expression; +} + +export interface UpdateExpression extends BaseExpression { + type: "UpdateExpression"; + operator: UpdateOperator; + argument: Expression; + prefix: boolean; +} + +export interface LogicalExpression extends BaseExpression { + type: "LogicalExpression"; + operator: LogicalOperator; + left: Expression; + right: Expression; +} + +export interface ConditionalExpression extends BaseExpression { + type: "ConditionalExpression"; + test: Expression; + alternate: Expression; + consequent: Expression; +} + +export interface BaseCallExpression extends BaseExpression { + callee: Expression | Super; + arguments: Array; +} +export type CallExpression = SimpleCallExpression | NewExpression; + +export interface SimpleCallExpression extends BaseCallExpression { + type: "CallExpression"; + optional: boolean; +} + +export interface NewExpression extends BaseCallExpression { + type: "NewExpression"; +} + +export interface MemberExpression extends BaseExpression, BasePattern { + type: "MemberExpression"; + object: Expression | Super; + property: Expression | PrivateIdentifier; + computed: boolean; + optional: boolean; +} + +export type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression; + +export interface BasePattern extends BaseNode {} + +export interface SwitchCase extends BaseNode { + type: "SwitchCase"; + test?: Expression | null | undefined; + consequent: Statement[]; +} + +export interface CatchClause extends BaseNode { + type: "CatchClause"; + param: Pattern | null; + body: BlockStatement; +} + +export interface Identifier extends BaseNode, BaseExpression, BasePattern { + type: "Identifier"; + name: string; +} + +export type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral; + +export interface SimpleLiteral extends BaseNode, BaseExpression { + type: "Literal"; + value: string | boolean | number | null; + raw?: string | undefined; +} + +export interface RegExpLiteral extends BaseNode, BaseExpression { + type: "Literal"; + value?: RegExp | null | undefined; + regex: { + pattern: string; + flags: string; + }; + raw?: string | undefined; +} + +export interface BigIntLiteral extends BaseNode, BaseExpression { + type: "Literal"; + value?: bigint | null | undefined; + bigint: string; + raw?: string | undefined; +} + +export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; + +export type BinaryOperator = + | "==" + | "!=" + | "===" + | "!==" + | "<" + | "<=" + | ">" + | ">=" + | "<<" + | ">>" + | ">>>" + | "+" + | "-" + | "*" + | "/" + | "%" + | "**" + | "|" + | "^" + | "&" + | "in" + | "instanceof"; + +export type LogicalOperator = "||" | "&&" | "??"; + +export type AssignmentOperator = + | "=" + | "+=" + | "-=" + | "*=" + | "/=" + | "%=" + | "**=" + | "<<=" + | ">>=" + | ">>>=" + | "|=" + | "^=" + | "&=" + | "||=" + | "&&=" + | "??="; + +export type UpdateOperator = "++" | "--"; + +export interface ForOfStatement extends BaseForXStatement { + type: "ForOfStatement"; + await: boolean; +} + +export interface Super extends BaseNode { + type: "Super"; +} + +export interface SpreadElement extends BaseNode { + type: "SpreadElement"; + argument: Expression; +} + +export interface ArrowFunctionExpression extends BaseExpression, BaseFunction { + type: "ArrowFunctionExpression"; + expression: boolean; + body: BlockStatement | Expression; +} + +export interface YieldExpression extends BaseExpression { + type: "YieldExpression"; + argument?: Expression | null | undefined; + delegate: boolean; +} + +export interface TemplateLiteral extends BaseExpression { + type: "TemplateLiteral"; + quasis: TemplateElement[]; + expressions: Expression[]; +} + +export interface TaggedTemplateExpression extends BaseExpression { + type: "TaggedTemplateExpression"; + tag: Expression; + quasi: TemplateLiteral; +} + +export interface TemplateElement extends BaseNode { + type: "TemplateElement"; + tail: boolean; + value: { + /** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */ + cooked?: string | null | undefined; + raw: string; + }; +} + +export interface AssignmentProperty extends Property { + value: Pattern; + kind: "init"; + method: boolean; // false +} + +export interface ObjectPattern extends BasePattern { + type: "ObjectPattern"; + properties: Array; +} + +export interface ArrayPattern extends BasePattern { + type: "ArrayPattern"; + elements: Array; +} + +export interface RestElement extends BasePattern { + type: "RestElement"; + argument: Pattern; +} + +export interface AssignmentPattern extends BasePattern { + type: "AssignmentPattern"; + left: Pattern; + right: Expression; +} + +export type Class = ClassDeclaration | ClassExpression; +export interface BaseClass extends BaseNode { + superClass?: Expression | null | undefined; + body: ClassBody; +} + +export interface ClassBody extends BaseNode { + type: "ClassBody"; + body: Array; +} + +export interface MethodDefinition extends BaseNode { + type: "MethodDefinition"; + key: Expression | PrivateIdentifier; + value: FunctionExpression; + kind: "constructor" | "method" | "get" | "set"; + computed: boolean; + static: boolean; +} + +export interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration { + type: "ClassDeclaration"; + /** It is null when a class declaration is a part of the `export default class` statement */ + id: Identifier | null; +} + +export interface ClassDeclaration extends MaybeNamedClassDeclaration { + id: Identifier; +} + +export interface ClassExpression extends BaseClass, BaseExpression { + type: "ClassExpression"; + id?: Identifier | null | undefined; +} + +export interface MetaProperty extends BaseExpression { + type: "MetaProperty"; + meta: Identifier; + property: Identifier; +} + +export type ModuleDeclaration = + | ImportDeclaration + | ExportNamedDeclaration + | ExportDefaultDeclaration + | ExportAllDeclaration; +export interface BaseModuleDeclaration extends BaseNode {} + +export type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier; +export interface BaseModuleSpecifier extends BaseNode { + local: Identifier; +} + +export interface ImportDeclaration extends BaseModuleDeclaration { + type: "ImportDeclaration"; + specifiers: Array; + source: Literal; +} + +export interface ImportSpecifier extends BaseModuleSpecifier { + type: "ImportSpecifier"; + imported: Identifier | Literal; +} + +export interface ImportExpression extends BaseExpression { + type: "ImportExpression"; + source: Expression; +} + +export interface ImportDefaultSpecifier extends BaseModuleSpecifier { + type: "ImportDefaultSpecifier"; +} + +export interface ImportNamespaceSpecifier extends BaseModuleSpecifier { + type: "ImportNamespaceSpecifier"; +} + +export interface ExportNamedDeclaration extends BaseModuleDeclaration { + type: "ExportNamedDeclaration"; + declaration?: Declaration | null | undefined; + specifiers: ExportSpecifier[]; + source?: Literal | null | undefined; +} + +export interface ExportSpecifier extends Omit { + type: "ExportSpecifier"; + local: Identifier | Literal; + exported: Identifier | Literal; +} + +export interface ExportDefaultDeclaration extends BaseModuleDeclaration { + type: "ExportDefaultDeclaration"; + declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression; +} + +export interface ExportAllDeclaration extends BaseModuleDeclaration { + type: "ExportAllDeclaration"; + exported: Identifier | Literal | null; + source: Literal; +} + +export interface AwaitExpression extends BaseExpression { + type: "AwaitExpression"; + argument: Expression; +} diff --git a/node_modules/@types/estree/package.json b/node_modules/@types/estree/package.json new file mode 100644 index 00000000..f4107619 --- /dev/null +++ b/node_modules/@types/estree/package.json @@ -0,0 +1,26 @@ +{ + "name": "@types/estree", + "version": "1.0.6", + "description": "TypeScript definitions for estree", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree", + "license": "MIT", + "contributors": [ + { + "name": "RReverser", + "githubUsername": "RReverser", + "url": "https://github.com/RReverser" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/estree" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "0310b41994a6f8d7530af6c53d47d8b227f32925e43718507fdb1178e05006b1", + "typeScriptVersion": "4.8", + "nonNpm": true +} \ No newline at end of file diff --git a/node_modules/@types/json-schema/LICENSE b/node_modules/@types/json-schema/LICENSE new file mode 100644 index 00000000..9e841e7a --- /dev/null +++ b/node_modules/@types/json-schema/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + 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 diff --git a/node_modules/@types/json-schema/README.md b/node_modules/@types/json-schema/README.md new file mode 100644 index 00000000..42d55d37 --- /dev/null +++ b/node_modules/@types/json-schema/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/json-schema` + +# Summary +This package contains type definitions for json-schema (https://github.com/kriszyp/json-schema). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema. + +### Additional Details + * Last updated: Tue, 07 Nov 2023 03:09:37 GMT + * Dependencies: none + +# Credits +These definitions were written by [Boris Cherny](https://github.com/bcherny), [Lucian Buzzo](https://github.com/lucianbuzzo), [Roland Groza](https://github.com/rolandjitsu), and [Jason Kwok](https://github.com/JasonHK). diff --git a/node_modules/@types/json-schema/index.d.ts b/node_modules/@types/json-schema/index.d.ts new file mode 100644 index 00000000..9381e999 --- /dev/null +++ b/node_modules/@types/json-schema/index.d.ts @@ -0,0 +1,749 @@ +// ================================================================================================== +// JSON Schema Draft 04 +// ================================================================================================== + +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 + */ +export type JSONSchema4TypeName = + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null" + | "any"; + +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 + */ +export type JSONSchema4Type = + | string // + | number + | boolean + | JSONSchema4Object + | JSONSchema4Array + | null; + +// Workaround for infinite type recursion +export interface JSONSchema4Object { + [key: string]: JSONSchema4Type; +} + +// Workaround for infinite type recursion +// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 +export interface JSONSchema4Array extends Array {} + +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-04/schema#' + * - 'http://json-schema.org/draft-04/hyper-schema#' + * - 'http://json-schema.org/draft-03/schema#' + * - 'http://json-schema.org/draft-03/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchema4Version = string; + +/** + * JSON Schema V4 + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 + */ +export interface JSONSchema4 { + id?: string | undefined; + $ref?: string | undefined; + $schema?: JSONSchema4Version | undefined; + + /** + * This attribute is a string that provides a short description of the + * instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21 + */ + title?: string | undefined; + + /** + * This attribute is a string that provides a full description of the of + * purpose the instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22 + */ + description?: string | undefined; + + default?: JSONSchema4Type | undefined; + multipleOf?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: boolean | undefined; + minimum?: number | undefined; + exclusiveMinimum?: boolean | undefined; + maxLength?: number | undefined; + minLength?: number | undefined; + pattern?: string | undefined; + + /** + * May only be defined when "items" is defined, and is a tuple of JSONSchemas. + * + * This provides a definition for additional items in an array instance + * when tuple definitions of the items is provided. This can be false + * to indicate additional items in the array are not allowed, or it can + * be a schema that defines the schema of the additional items. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6 + */ + additionalItems?: boolean | JSONSchema4 | undefined; + + /** + * This attribute defines the allowed items in an instance array, and + * MUST be a schema or an array of schemas. The default value is an + * empty schema which allows any value for items in the instance array. + * + * When this attribute value is a schema and the instance value is an + * array, then all the items in the array MUST be valid according to the + * schema. + * + * When this attribute value is an array of schemas and the instance + * value is an array, each position in the instance array MUST conform + * to the schema in the corresponding position for this array. This + * called tuple typing. When tuple typing is used, additional items are + * allowed, disallowed, or constrained by the "additionalItems" + * (Section 5.6) attribute using the same rules as + * "additionalProperties" (Section 5.4) for objects. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5 + */ + items?: JSONSchema4 | JSONSchema4[] | undefined; + + maxItems?: number | undefined; + minItems?: number | undefined; + uniqueItems?: boolean | undefined; + maxProperties?: number | undefined; + minProperties?: number | undefined; + + /** + * This attribute indicates if the instance must have a value, and not + * be undefined. This is false by default, making the instance + * optional. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7 + */ + required?: boolean | string[] | undefined; + + /** + * This attribute defines a schema for all properties that are not + * explicitly defined in an object type definition. If specified, the + * value MUST be a schema or a boolean. If false is provided, no + * additional properties are allowed beyond the properties defined in + * the schema. The default value is an empty schema which allows any + * value for additional properties. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4 + */ + additionalProperties?: boolean | JSONSchema4 | undefined; + + definitions?: { + [k: string]: JSONSchema4; + } | undefined; + + /** + * This attribute is an object with property definitions that define the + * valid values of instance object property values. When the instance + * value is an object, the property values of the instance object MUST + * conform to the property definitions in this object. In this object, + * each property definition's value MUST be a schema, and the property's + * name MUST be the name of the instance property that it defines. The + * instance property value MUST be valid according to the schema from + * the property definition. Properties are considered unordered, the + * order of the instance properties MAY be in any order. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2 + */ + properties?: { + [k: string]: JSONSchema4; + } | undefined; + + /** + * This attribute is an object that defines the schema for a set of + * property names of an object instance. The name of each property of + * this attribute's object is a regular expression pattern in the ECMA + * 262/Perl 5 format, while the value is a schema. If the pattern + * matches the name of a property on the instance object, the value of + * the instance's property MUST be valid against the pattern name's + * schema value. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3 + */ + patternProperties?: { + [k: string]: JSONSchema4; + } | undefined; + dependencies?: { + [k: string]: JSONSchema4 | string[]; + } | undefined; + + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: JSONSchema4Type[] | undefined; + + /** + * A single type, or a union of simple types + */ + type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined; + + allOf?: JSONSchema4[] | undefined; + anyOf?: JSONSchema4[] | undefined; + oneOf?: JSONSchema4[] | undefined; + not?: JSONSchema4 | undefined; + + /** + * The value of this property MUST be another schema which will provide + * a base schema which the current schema will inherit from. The + * inheritance rules are such that any instance that is valid according + * to the current schema MUST be valid according to the referenced + * schema. This MAY also be an array, in which case, the instance MUST + * be valid for all the schemas in the array. A schema that extends + * another schema MAY define additional attributes, constrain existing + * attributes, or add other constraints. + * + * Conceptually, the behavior of extends can be seen as validating an + * instance against all constraints in the extending schema as well as + * the extended schema(s). + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26 + */ + extends?: string | string[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-5.6 + */ + [k: string]: any; + + format?: string | undefined; +} + +// ================================================================================================== +// JSON Schema Draft 06 +// ================================================================================================== + +export type JSONSchema6TypeName = + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null" + | "any"; + +export type JSONSchema6Type = + | string // + | number + | boolean + | JSONSchema6Object + | JSONSchema6Array + | null; + +// Workaround for infinite type recursion +export interface JSONSchema6Object { + [key: string]: JSONSchema6Type; +} + +// Workaround for infinite type recursion +// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 +export interface JSONSchema6Array extends Array {} + +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-06/schema#' + * - 'http://json-schema.org/draft-06/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchema6Version = string; + +/** + * JSON Schema V6 + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01 + */ +export type JSONSchema6Definition = JSONSchema6 | boolean; +export interface JSONSchema6 { + $id?: string | undefined; + $ref?: string | undefined; + $schema?: JSONSchema6Version | undefined; + + /** + * Must be strictly greater than 0. + * A numeric instance is valid only if division by this keyword's value results in an integer. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.1 + */ + multipleOf?: number | undefined; + + /** + * Representing an inclusive upper limit for a numeric instance. + * This keyword validates only if the instance is less than or exactly equal to "maximum". + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.2 + */ + maximum?: number | undefined; + + /** + * Representing an exclusive upper limit for a numeric instance. + * This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum". + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.3 + */ + exclusiveMaximum?: number | undefined; + + /** + * Representing an inclusive lower limit for a numeric instance. + * This keyword validates only if the instance is greater than or exactly equal to "minimum". + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.4 + */ + minimum?: number | undefined; + + /** + * Representing an exclusive lower limit for a numeric instance. + * This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum". + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.5 + */ + exclusiveMinimum?: number | undefined; + + /** + * Must be a non-negative integer. + * A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.6 + */ + maxLength?: number | undefined; + + /** + * Must be a non-negative integer. + * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword. + * Omitting this keyword has the same behavior as a value of 0. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.7 + */ + minLength?: number | undefined; + + /** + * Should be a valid regular expression, according to the ECMA 262 regular expression dialect. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.8 + */ + pattern?: string | undefined; + + /** + * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself. + * Omitting this keyword has the same behavior as an empty schema. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.9 + */ + items?: JSONSchema6Definition | JSONSchema6Definition[] | undefined; + + /** + * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself. + * If "items" is an array of schemas, validation succeeds if every instance element + * at a position greater than the size of "items" validates against "additionalItems". + * Otherwise, "additionalItems" MUST be ignored, as the "items" schema + * (possibly the default value of an empty schema) is applied to all elements. + * Omitting this keyword has the same behavior as an empty schema. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.10 + */ + additionalItems?: JSONSchema6Definition | undefined; + + /** + * Must be a non-negative integer. + * An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.11 + */ + maxItems?: number | undefined; + + /** + * Must be a non-negative integer. + * An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword. + * Omitting this keyword has the same behavior as a value of 0. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.12 + */ + minItems?: number | undefined; + + /** + * If this keyword has boolean value false, the instance validates successfully. + * If it has boolean value true, the instance validates successfully if all of its elements are unique. + * Omitting this keyword has the same behavior as a value of false. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.13 + */ + uniqueItems?: boolean | undefined; + + /** + * An array instance is valid against "contains" if at least one of its elements is valid against the given schema. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.14 + */ + contains?: JSONSchema6Definition | undefined; + + /** + * Must be a non-negative integer. + * An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.15 + */ + maxProperties?: number | undefined; + + /** + * Must be a non-negative integer. + * An object instance is valid against "maxProperties" if its number of properties is greater than, + * or equal to, the value of this keyword. + * Omitting this keyword has the same behavior as a value of 0. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.16 + */ + minProperties?: number | undefined; + + /** + * Elements of this array must be unique. + * An object instance is valid against this keyword if every item in the array is the name of a property in the instance. + * Omitting this keyword has the same behavior as an empty array. + * + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.17 + */ + required?: string[] | undefined; + + /** + * This keyword determines how child instances validate for objects, and does not directly validate the immediate instance itself. + * Validation succeeds if, for each name that appears in both the instance and as a name within this keyword's value, + * the child instance for that name successfully validates against the corresponding schema. + * Omitting this keyword has the same behavior as an empty object. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.18 + */ + properties?: { + [k: string]: JSONSchema6Definition; + } | undefined; + + /** + * This attribute is an object that defines the schema for a set of property names of an object instance. + * The name of each property of this attribute's object is a regular expression pattern in the ECMA 262, while the value is a schema. + * If the pattern matches the name of a property on the instance object, the value of the instance's property + * MUST be valid against the pattern name's schema value. + * Omitting this keyword has the same behavior as an empty object. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.19 + */ + patternProperties?: { + [k: string]: JSONSchema6Definition; + } | undefined; + + /** + * This attribute defines a schema for all properties that are not explicitly defined in an object type definition. + * If specified, the value MUST be a schema or a boolean. + * If false is provided, no additional properties are allowed beyond the properties defined in the schema. + * The default value is an empty schema which allows any value for additional properties. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.20 + */ + additionalProperties?: JSONSchema6Definition | undefined; + + /** + * This keyword specifies rules that are evaluated if the instance is an object and contains a certain property. + * Each property specifies a dependency. + * If the dependency value is an array, each element in the array must be unique. + * Omitting this keyword has the same behavior as an empty object. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.21 + */ + dependencies?: { + [k: string]: JSONSchema6Definition | string[]; + } | undefined; + + /** + * Takes a schema which validates the names of all properties rather than their values. + * Note the property name that the schema is testing will always be a string. + * Omitting this keyword has the same behavior as an empty schema. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.22 + */ + propertyNames?: JSONSchema6Definition | undefined; + + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23 + */ + enum?: JSONSchema6Type[] | undefined; + + /** + * More readable form of a one-element "enum" + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.24 + */ + const?: JSONSchema6Type | undefined; + + /** + * A single type, or a union of simple types + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.25 + */ + type?: JSONSchema6TypeName | JSONSchema6TypeName[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.26 + */ + allOf?: JSONSchema6Definition[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27 + */ + anyOf?: JSONSchema6Definition[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.28 + */ + oneOf?: JSONSchema6Definition[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.29 + */ + not?: JSONSchema6Definition | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.1 + */ + definitions?: { + [k: string]: JSONSchema6Definition; + } | undefined; + + /** + * This attribute is a string that provides a short description of the instance property. + * + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2 + */ + title?: string | undefined; + + /** + * This attribute is a string that provides a full description of the of purpose the instance property. + * + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2 + */ + description?: string | undefined; + + /** + * This keyword can be used to supply a default JSON value associated with a particular schema. + * It is RECOMMENDED that a default value be valid against the associated schema. + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.3 + */ + default?: JSONSchema6Type | undefined; + + /** + * Array of examples with no validation effect the value of "default" is usable as an example without repeating it under this keyword + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.4 + */ + examples?: JSONSchema6Type[] | undefined; + + /** + * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8 + */ + format?: string | undefined; +} + +// ================================================================================================== +// JSON Schema Draft 07 +// ================================================================================================== +// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 +// -------------------------------------------------------------------------------------------------- + +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchema7TypeName = + | "string" // + | "number" + | "integer" + | "boolean" + | "object" + | "array" + | "null"; + +/** + * Primitive type + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 + */ +export type JSONSchema7Type = + | string // + | number + | boolean + | JSONSchema7Object + | JSONSchema7Array + | null; + +// Workaround for infinite type recursion +export interface JSONSchema7Object { + [key: string]: JSONSchema7Type; +} + +// Workaround for infinite type recursion +// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 +export interface JSONSchema7Array extends Array {} + +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-07/schema#' + * - 'http://json-schema.org/draft-07/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchema7Version = string; + +/** + * JSON Schema v7 + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 + */ +export type JSONSchema7Definition = JSONSchema7 | boolean; +export interface JSONSchema7 { + $id?: string | undefined; + $ref?: string | undefined; + $schema?: JSONSchema7Version | undefined; + $comment?: string | undefined; + + /** + * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4 + * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A + */ + $defs?: { + [key: string]: JSONSchema7Definition; + } | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1 + */ + type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined; + enum?: JSONSchema7Type[] | undefined; + const?: JSONSchema7Type | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2 + */ + multipleOf?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3 + */ + maxLength?: number | undefined; + minLength?: number | undefined; + pattern?: string | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4 + */ + items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined; + additionalItems?: JSONSchema7Definition | undefined; + maxItems?: number | undefined; + minItems?: number | undefined; + uniqueItems?: boolean | undefined; + contains?: JSONSchema7Definition | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5 + */ + maxProperties?: number | undefined; + minProperties?: number | undefined; + required?: string[] | undefined; + properties?: { + [key: string]: JSONSchema7Definition; + } | undefined; + patternProperties?: { + [key: string]: JSONSchema7Definition; + } | undefined; + additionalProperties?: JSONSchema7Definition | undefined; + dependencies?: { + [key: string]: JSONSchema7Definition | string[]; + } | undefined; + propertyNames?: JSONSchema7Definition | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6 + */ + if?: JSONSchema7Definition | undefined; + then?: JSONSchema7Definition | undefined; + else?: JSONSchema7Definition | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7 + */ + allOf?: JSONSchema7Definition[] | undefined; + anyOf?: JSONSchema7Definition[] | undefined; + oneOf?: JSONSchema7Definition[] | undefined; + not?: JSONSchema7Definition | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7 + */ + format?: string | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8 + */ + contentMediaType?: string | undefined; + contentEncoding?: string | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9 + */ + definitions?: { + [key: string]: JSONSchema7Definition; + } | undefined; + + /** + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10 + */ + title?: string | undefined; + description?: string | undefined; + default?: JSONSchema7Type | undefined; + readOnly?: boolean | undefined; + writeOnly?: boolean | undefined; + examples?: JSONSchema7Type | undefined; +} + +export interface ValidationResult { + valid: boolean; + errors: ValidationError[]; +} + +export interface ValidationError { + property: string; + message: string; +} + +/** + * To use the validator call JSONSchema.validate with an instance object and an optional schema object. + * If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating), + * that schema will be used to validate and the schema parameter is not necessary (if both exist, + * both validations will occur). + */ +export function validate(instance: {}, schema: JSONSchema4 | JSONSchema6 | JSONSchema7): ValidationResult; + +/** + * The checkPropertyChange method will check to see if an value can legally be in property with the given schema + * This is slightly different than the validate method in that it will fail if the schema is readonly and it will + * not check for self-validation, it is assumed that the passed in value is already internally valid. + */ +export function checkPropertyChange( + value: any, + schema: JSONSchema4 | JSONSchema6 | JSONSchema7, + property: string, +): ValidationResult; + +/** + * This checks to ensure that the result is valid and will throw an appropriate error message if it is not. + */ +export function mustBeValid(result: ValidationResult): void; diff --git a/node_modules/@types/json-schema/package.json b/node_modules/@types/json-schema/package.json new file mode 100644 index 00000000..3c41bd7f --- /dev/null +++ b/node_modules/@types/json-schema/package.json @@ -0,0 +1,40 @@ +{ + "name": "@types/json-schema", + "version": "7.0.15", + "description": "TypeScript definitions for json-schema", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema", + "license": "MIT", + "contributors": [ + { + "name": "Boris Cherny", + "githubUsername": "bcherny", + "url": "https://github.com/bcherny" + }, + { + "name": "Lucian Buzzo", + "githubUsername": "lucianbuzzo", + "url": "https://github.com/lucianbuzzo" + }, + { + "name": "Roland Groza", + "githubUsername": "rolandjitsu", + "url": "https://github.com/rolandjitsu" + }, + { + "name": "Jason Kwok", + "githubUsername": "JasonHK", + "url": "https://github.com/JasonHK" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/json-schema" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "79984fd70cd25c3f7d72b84368778c763c89728ea0073832d745d4691b705257", + "typeScriptVersion": "4.5" +} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js index 17236924..6161a2b8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const util_1 = require("../util"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map index 123efe08..af9dad69 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map @@ -1 +1 @@ -{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AAExC,kCAUiB;AACjB,2EAAwE;AASxE,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,KAAK,EAAE,6DAA6D;YACpE,8BAA8B,EAC5B,mEAAmE;YACrE,oBAAoB,EAAE,yCAAyC;YAC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H,QAAQ,CAAC,EAAE,CACT,OAAO,CAAC,gCAAgC,CACtC,QAAQ,EACR,cAAc,EACd,OAAO,CACR,IAAI,IAAI,CACZ,CAAC;oBAEJ,IAAI,CAAC,qBAAqB,EAAE,CAAC;wBAC3B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,IAAI;4BACV,SAAS,EAAE,gCAAgC;4BAC3C,gDAAgD;4BAChD,mCAAmC;4BACnC,oDAAoD;4BACpD,GAAG,IAAA,sBAAe,EAAC;gCACjB,YAAY,EACV,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gCAErD,UAAU,EAAE;oCACV,SAAS,EAAE,aAAa;oCACxB,GAAG,CAAC,KAAK;wCACP,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,qBAAc,CAAC,EACtD,wBAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,CACvD,CAAC;wCACF,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oCAClC,CAAC;iCACF;6BACF,CAAC;yBACH,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AAExC,kCAUiB;AACjB,2EAAwE;AASxE,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EA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EAAE,CAAC;wBACxB,SAAS;oBACX,CAAC;oBAED,MAAM,qBAAqB,GAAG,OAAO;yBAClC,cAAc,CAAC,IAAI,CAAC;yBACpB,IAAI,CACH,QAAQ,CAAC,EAAE,CACT,OAAO,CAAC,gCAAgC,CACtC,QAAQ,EACR,cAAc,EACd,OAAO,CACR,IAAI,IAAI,CACZ,CAAC;oBAEJ,IAAI,CAAC,qBAAqB,EAAE,CAAC;wBAC3B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,IAAI;4BACV,SAAS,EAAE,gCAAgC;4BAC3C,gDAAgD;4BAChD,mCAAmC;4BACnC,oDAAoD;4BACpD,GAAG,IAAA,sBAAe,EAAC;gCACjB,YAAY,EACV,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gCAErD,UAAU,EAAE;oCACV,SAAS,EAAE,aAAa;oCACxB,GAAG,CAAC,KAAK;wCACP,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,qBAAc,CAAC,EACtD,wBAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,CACvD,CAAC;wCACF,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oCAClC,CAAC;iCACF;6BACF,CAAC;yBACH,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js index abb7e5fe..05223f3d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map index 80501fe4..7500b2d8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map @@ -1 +1 @@ -{"version":3,"file":"consistent-return.js","sourceRoot":"","sources":["../../src/rules/consistent-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAOjC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAUxD,MAAM,cAAc,GAAY,CAAC,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC,CAAC;AACzE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;Q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,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;gBAC1C,IACE,CAAC,IAAI,CAAC,QAAQ;oBACd,YAAY;oBACZ,0BAA0B,CAAC,YAAY,CAAC,EACxC,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,2BAA2B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAClE,IAAI,eAAe,CAAC,KAAK,KAAK,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;wBACrD,KAAK,CAAC,eAAe,CAAC;4BACpB,GAAG,IAAI;4BACP,QAAQ,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;gBAED,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"consistent-return.js","sourceRoot":"","sources":["../../src/rules/consistent-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAOjC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAUxD,MAAM,cAAc,GAAY,CAAC,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC,CAAC;AACzE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,IAAI,EAAE;YACJ,WAAW,EACT,sEAAsE;YACxE,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QA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BACD,OAAO;gBACT,CAAC;gBACD,IAAI,2BAA2B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAClE,IAAI,eAAe,CAAC,KAAK,KAAK,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;wBACrD,KAAK,CAAC,eAAe,CAAC;4BACpB,GAAG,IAAI;4BACP,QAAQ,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;gBAED,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js index a24ec128..6e9c2ed2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map index 2fd9390c..205fc4fe 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map @@ -1 +1 @@ -{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,2DAAwD;AAoBxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EAAE,4CAA4C;YAC7D,EAAE,EAAE,4CAA4C;YAChD,KAAK,EAAE,iCAAiC;YACxC,wCAAwC,EACtC,0CAA0C;YAC5C,uCAAuC,EACrC,mDAAmD;YACrD,6BAA6B,EAAE,qCAAqC;SACrE;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,KAAK;wBAC3B,UAAU,EAAE;4BACV,cAAc,EAAE;gCACd,IAAI,EAAE,QAAQ;gCACd,WAAW,EAAE,0CAA0C;gCACvD,IAAI,EAAE,CAAC,OAAO,CAAC;6BAChB;yBACF;wBACD,QAAQ,EAAE,CAAC,gBAAgB,CA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AE,KAAK,CAAC,EAAE,CAAC;wBACZ,KAAK,CAAC,WAAW,CACf,IAAI,EACJ,IAAA,6BAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAC5D;wBACD,KAAK,CAAC,eAAe,CACnB,IAAI,EACJ,cAAc,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAChE;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,+BAA+B;oBAC1C,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;oBACpC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,IAAI,OAAO,CAAC,cAAc,KAAK,eAAe,EAAE,CAAC;oBAC/C,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,2DAAwD;AAoBxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,WAAW;SACzB;QACD,O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AAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js index c62ba207..505a8fc8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map index c25f1434..d623f065 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map @@ -1 +1 @@ -{"version":3,"file":"consistent-type-exports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AA2BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EACrB,yFAAyF;YAC3F,kBAAkB,EAChB,wFAAwF;YAC1F,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,sCAAsC,EAAE;wBACtC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qFAAqF;qBACxF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,sCAAsC,EAAE,KAAK;SAC9C;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,sCAAsC,EAAE,CAAC;QAC1D,MAAM,gBAAgB,GAAkC,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD;;;;;;WAMG;QACH,SAAS,iBAAiB,CACxB,MAA6B;YAE7B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAC3C,MAAM,EACN,EAAE,CAAC,WAAW,CAAC,KAAK,CACrB;gBACC,CAAC,CAAC,OAAO,CAAC,gB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c,CAAC,OAAO;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,EACrC,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CAAC,SAAmC;IAC3D,MAAM,YAAY,GAChB,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAChD,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG;QACxB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC9B,MAAM,SAAS,GACb,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC7C,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG;QACrB,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;IAE3B,OAAO,GAAG,SAAS,GACjB,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC,EACvD,EAAE,CAAC;AACL,CAAC"} \ No newline at end of file +{"version":3,"file":"consistent-type-exports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AA2BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EACrB,yFAAyF;YAC3F,kBAAkB,EAChB,wFAAwF;YAC1F,aAAa,EACX,2EAA2E;SAC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;QAC7C,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG;QACrB,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;IAE3B,OAAO,GAAG,SAAS,GACjB,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC,EACvD,EAAE,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js index 358a590d..62943c1a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js @@ -452,7 +452,7 @@ exports.default = (0, util_1.createRule)({ } return; } - else if (defaultSpecifier) { + if (defaultSpecifier) { if (report.typeSpecifiers.includes(defaultSpecifier) && namedSpecifiers.length === 0 && !namespaceSpecifier) { @@ -460,7 +460,7 @@ exports.default = (0, util_1.createRule)({ yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, true); return; } - else if (fixStyle === 'inline-type-imports' && + if (fixStyle === 'inline-type-imports' && !report.typeSpecifiers.includes(defaultSpecifier) && namedSpecifiers.length > 0 && !namespaceSpecifier) { @@ -477,7 +477,7 @@ exports.default = (0, util_1.createRule)({ yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); return; } - else if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) { + if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) { // import {Type1, Type2} from 'foo' yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); return; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map index 568bdcce..3cffc616 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map @@ -1 +1 @@ -{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAE1D,kCAWiB;AAoCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,eAAe,EAAE,8CAA8C;YAC/D,uBAAuB,EAAE,4CAA4C;YACrE,uBAAuB,EAAE,gDAAgD;YACzE,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,oEAAoE;qBACvE;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,sGAAsG;wBACxG,IAAI,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;qBACvD;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iDAAiD;wBAC9D,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;iBACF;aACF;SACF;KACF;IAED,cAAc,EAAE;QACd;YACE,uBAAuB,EAAE,IAAI;YAC7B,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,cAAc;SACvB;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,cAAc,CAAC;QAC/C,MAAM,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,KAAK,KAAK,CAAC;QAEz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AC,CAAC,yCAAyC,CACjD,KAAyB,EACzB,IAA8B;YAE9B,iCAAiC;YACjC,uBAAuB;YACvB,MAAM,SAAS,GAAG,IAAA,iBAAU,EAC1B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,oBAAa,CAAC,EACrD,wBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;YACF,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EACtE,wBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAE1D,kCAWiB;AAoCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,eAAe,EAAE,8CAA8C;YAC/D,uBAAuB,EAAE,4CAA4C;YACrE,uBAAuB,EAAE,gDAAgD;YACzE,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WA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AC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js index 57361dbd..42a8d50c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map index 34b066e3..aabceed1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map @@ -1 +1 @@ -{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+C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AE,CAAC,UAAU,CAAC,cAAc,CAAC;wBAChD,CAAC,iCAAiC;4BAChC,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAClD,CAAC;wBACD,OAAO;oBACT,CAAC;oBACD,IACE,cAAc,KAAK,SAAS;wBAC5B,iCAAiC,EACjC,CAAC;wBACD,MAAM,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBAC3D,MAAM,SAAS,GAAG,UAAU;6BACzB,kBAAkB,EAAE;6BACpB,kBAAkB,EAAE,CAAC;wBACxB,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;4BAC5B,OAAO;wBACT,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAOjC,kCAAsE;AACtE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,MAAM,cAAc,GAAY;IAC9B;QACE,iCAAiC,EAAE,KAAK;QACxC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,EAAE;QAChB,+BAA+B,EAAE,KAAK;QACtC,iCAAiC,EAAE,KAAK;KACzC;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,wCAAwC;YACrD,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE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I,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js index 632b09de..122b135b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.getEnumLiterals = getEnumLiterals; exports.getEnumTypes = getEnumTypes; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map index 726984cc..74eecb84 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map @@ -1 +1 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/enum-utils/shared.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AC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;oBAEpE,OAAO,GAAG,QAAQ,KAAK,UAAU,IAAI,CAAC;gBACxC,CAAC;gBAED,KAAK,EAAE,CAAC,UAAU,CAAC,oBAAoB;oBACrC,OAAO,GAAG,QAAQ,IAAI,oBAAoB,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;gBAErE;oBACE,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js index 97c56979..f02b1dec 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js @@ -203,7 +203,7 @@ exports.default = (0, util_1.createRule)({ return (node.id?.type === utils_1.AST_NODE_TYPES.Identifier && options.allowedNames.includes(node.id.name)); } - else if (node.type === utils_1.AST_NODE_TYPES.MethodDefinition || + if (node.type === utils_1.AST_NODE_TYPES.MethodDefinition || node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || (node.type === utils_1.AST_NODE_TYPES.Property && node.method) || node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map index c12cb724..834a3b0b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map @@ -1 +1 @@ -{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;A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,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YAED,IAAA,iDAAuB,EACrB,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG;oBACH,IAAI;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;AAEA,oEAAkE;AAClE,oDAA0D;AAQ1D,kCAA8E;AAC9E,6EAMyC;AAkBzC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qGAAqG;SACxG;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,0DAA0D;YACvE,kBAAkB,EAChB,wDAAwD;YAC1D,cAAc,EAAE,sCAAsC;YACtD,qBAAqB,EAAE,oCAAoC;YAC3D,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kCAAkC,EAAE;wBAClC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,iEAAiE;qBACpE;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACX,kHAAkH;4BAClH,qDAAqD;yBACtD,CAAC,IAAI,CAAC,IAAI,CA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I,EAAE,OAAO,CAAC;gBACxC,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAC3B,CAAC;gBACD,OAAO;YACT,CAAC;YAED,IAAA,2DAAiC,EAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG;oBACH,IAAI;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QAED,SAAS,aAAa,CAAC,EACrB,IAAI,EACJ,OAAO,GACoC;YAC3C,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,OAAO;YACT,CAAC;YACD,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YAED,IAAA,iDAAuB,EACrB,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG;oBACH,IAAI;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js index be16a801..e3e807aa 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js @@ -65,6 +65,8 @@ exports.default = (0, util_1.createRule)({ ArrowFunctionExpression: wrapListener(baseRules.ArrowFunctionExpression), FunctionDeclaration: wrapListener(baseRules.FunctionDeclaration), FunctionExpression: wrapListener(baseRules.FunctionExpression), + TSDeclareFunction: wrapListener(baseRules.FunctionDeclaration), + TSFunctionType: wrapListener(baseRules.FunctionDeclaration), }; }, }); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map index 397141b5..187e02b1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map @@ -1 +1 @@ -{"version":3,"file":"max-params.js","sourceRoot":"","sources":["../../src/rules/max-params.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAS9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,YAAY,CAAC,CAAC;AAKjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,gEAAgE;qBACnE;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yDAAyD;wBAC3D,OAAO,EAAE,CAAC;qBACX;oBACD,OAAO,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sEAAsE;wBACxE,OAAO,EAAE,CAAC;qBACX;iBACF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C;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"max-params.js","sourceRoot":"","sources":["../../src/rules/max-params.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAW9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,YAAY,CAAC,CAAC;AAKjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,gEAAgE;qBACnE;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yDAAyD;wBAC3D,OAAO,EAAE,CAAC;qBACX;oBACD,OAAO,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sEAAsE;wBACxE,OAAO,EAAE,CAAC;qBACX;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;IAElD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC;QACjC,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3C,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;YAC3B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,mBAAmB,GAAG,CAAyB,IAAO,EAAK,EAAE;YACjE,IACE,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;gBACxB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACjD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM;gBAC9B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,cAAc,CAAC,IAAI;oBAChD,sBAAc,CAAC,aAAa,EAC9B,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO;gBACL,GAAG,IAAI;gBACP,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;aAC7B,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,YAAY,GAAG,CACnB,QAAiC,EACR,EAAE;YAC3B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;YACtC,CAAC,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,uBAAuB,EAAE,YAAY,CAAC,SAAS,CAAC,uBAAuB,CAAC;YACxE,mBAAmB,EAAE,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC;YAChE,kBAAkB,EAAE,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC;YAC9D,iBAAiB,EAAE,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC;YAC9D,cAAc,EAAE,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC;SAC5D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js index 9435878e..a80583d1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js @@ -15,15 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); const util_1 = require("../util"); var Usefulness; @@ -42,6 +53,7 @@ exports.default = (0, util_1.createRule)({ requiresTypeChecking: true, }, messages: { + baseArrayJoin: "Using `join()` for {{name}} {{certainty}} use Object's default stringification format ('[object Object]') when stringified.", baseToString: "'{{name}}' {{certainty}} use Object's default stringification format ('[object Object]') when stringified.", }, schema: [ @@ -86,6 +98,63 @@ exports.default = (0, util_1.createRule)({ }, }); } + function checkExpressionForArrayJoin(node, type) { + const certainty = collectJoinCertainty(type); + if (certainty === Usefulness.Always) { + return; + } + context.report({ + node, + messageId: 'baseArrayJoin', + data: { + name: context.sourceCode.getText(node), + certainty, + }, + }); + } + function collectUnionTypeCertainty(type, collectSubTypeCertainty) { + const certainties = type.types.map(t => collectSubTypeCertainty(t)); + if (certainties.every(certainty => certainty === Usefulness.Never)) { + return Usefulness.Never; + } + if (certainties.every(certainty => certainty === Usefulness.Always)) { + return Usefulness.Always; + } + return Usefulness.Sometimes; + } + function collectIntersectionTypeCertainty(type, collectSubTypeCertainty) { + for (const subType of type.types) { + const subtypeUsefulness = collectSubTypeCertainty(subType); + if (subtypeUsefulness === Usefulness.Always) { + return Usefulness.Always; + } + } + return Usefulness.Never; + } + function collectJoinCertainty(type) { + if (tsutils.isUnionType(type)) { + return collectUnionTypeCertainty(type, collectJoinCertainty); + } + if (tsutils.isIntersectionType(type)) { + return collectIntersectionTypeCertainty(type, collectJoinCertainty); + } + if (checker.isTupleType(type)) { + const typeArgs = checker.getTypeArguments(type); + const certainties = typeArgs.map(t => collectToStringCertainty(t)); + if (certainties.some(certainty => certainty === Usefulness.Never)) { + return Usefulness.Never; + } + if (certainties.some(certainty => certainty === Usefulness.Sometimes)) { + return Usefulness.Sometimes; + } + return Usefulness.Always; + } + if (checker.isArrayType(type)) { + const elemType = (0, util_1.nullThrows)(type.getNumberIndexType(), 'array should have number index type'); + return collectToStringCertainty(elemType); + } + return Usefulness.Always; + } function collectToStringCertainty(type) { const toString = checker.getPropertyOfType(type, 'toString') ?? checker.getPropertyOfType(type, 'toLocaleString'); @@ -105,35 +174,12 @@ exports.default = (0, util_1.createRule)({ return Usefulness.Always; } if (type.isIntersection()) { - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness === Usefulness.Always) { - return Usefulness.Always; - } - } - return Usefulness.Never; + return collectIntersectionTypeCertainty(type, collectToStringCertainty); } if (!type.isUnion()) { return Usefulness.Never; } - let allSubtypesUseful = true; - let someSubtypeUseful = false; - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness !== Usefulness.Always && allSubtypesUseful) { - allSubtypesUseful = false; - } - if (subtypeUsefulness !== Usefulness.Never && !someSubtypeUseful) { - someSubtypeUseful = true; - } - } - if (allSubtypesUseful && someSubtypeUseful) { - return Usefulness.Always; - } - if (someSubtypeUseful) { - return Usefulness.Sometimes; - } - return Usefulness.Never; + return collectUnionTypeCertainty(type, collectToStringCertainty); } function isBuiltInStringCall(node) { if (node.callee.type === utils_1.AST_NODE_TYPES.Identifier && @@ -162,6 +208,11 @@ exports.default = (0, util_1.createRule)({ checkExpression(node.arguments[0]); } }, + 'CallExpression > MemberExpression.callee > Identifier[name = "join"].property'(node) { + const memberExpr = node.parent; + const type = (0, util_1.getConstrainedTypeAtLocation)(services, memberExpr.object); + checkExpressionForArrayJoin(memberExpr.object, type); + }, 'CallExpression > MemberExpression.callee > Identifier[name = /^(toLocaleString|toString)$/].property'(node) { const memberExpr = node.parent; checkExpression(memberExpr.object); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map index e5697c72..526940f7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map @@ -1 +1 @@ -{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAqE;AAErE,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+BAAiB,CAAA;IACjB,4BAAc,CAAA;IACd,+BAAiB,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AASD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8HAA8H;YAChI,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EACV,4GAA4G;SAC/G;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,OAAO;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BAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEzD,IAAI,IAAA,kBAAW,EAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,QAAQ,EAAE,CAAC;oBAChD,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;gBACzC,CAAC;qBAAM,IACL,IAAA,kBAAW,EAAC,OAAO,EAAE,SAAS,CAAC,KAAK,QAAQ;oBAC5C,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EACnD,CAAC;oBACD,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;YACD,cAAc,CAAC,IAA6B;gBAC1C,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9B,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;YACD,sGAAsG,CACpG,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB,EAAE,CAAC;oBACjE,OAAO;gBACT,CAAC;gBACD,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBAC1C,eAAe,CAAC,UAAU,CAAC,CAAC;gBAC9B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;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AI,KAAK,sBAAc,CAAC,iBAAiB,EACnD,CAAC;oBACD,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;YACD,cAAc,CAAC,IAA6B;gBAC1C,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9B,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;YACD,+EAA+E,CAC7E,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;gBACvE,2BAA2B,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACvD,CAAC;YACD,sGAAsG,CACpG,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YAED,eAAe,CAAC,IAA8B;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB,EAAE,CAAC;oBACjE,OAAO;gBACT,CAAC;gBACD,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBAC1C,eAAe,CAAC,UAAU,CAAC,CAAC;gBAC9B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js index b7fefbd7..1541895c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map index 791936a2..23b3349d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map @@ -1 +1 @@ -{"version":3,"file":"no-confusing-void-expression.js","sourceRoot":"","sources":["../../src/rules/no-confusing-void-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCASiB;AACjB,yEAAsE;AAoBtE,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,E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;YAED,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-confusing-void-expression.js","sourceRoot":"","sources":["../../src/rules/no-confusing-void-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCASiB;AACjB,yEAAsE;AAoBtE,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EACb,oEAAoE;gBACpE,uCAAuC;YACzC,oBAAoB,EAClB,6EAA6E;gBAC7E,0CAA0C;YAC5C,4BAA4B,EAC1B,6DAA6D;gBAC7D,qDAAqD;YACvD,qBAAqB,EACnB,4DAA4D;gBAC5D,+CAA+C;YACjD,yBAAyB,EACvB,4DAA4D;gBAC5D,uCAAuC;YACzC,6BAA6B,EAC3B,4CAA4C;gBAC5C,qDAAqD;YACvD,uBAAuB,EACrB,kDAAkD;gBAClD,qCAAqC;gBACrC,gDAAgD;YAClD,gBAAgB,EAAE,wCAAwC;SAC3D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,wFAAwF;qBAC3F;oBACD,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,gEAAgE;qBACnE;oBACD,4BAA4B,EAAE;wBAC5B,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,+HA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BAAmB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;gBAEpE,OAAO,OAAO;qBACX,cAAc,CAAC,UAAU,CAAC;qBAC1B,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;YACvC,CAAC;YAED,IAAI,EAAE,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,CAAC;gBACpC,MAAM,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;gBAE/D,IAAI,YAAY,EAAE,CAAC;oBACjB,OAAO,OAAO;yBACX,cAAc,CAAC,YAAY,CAAC;yBAC5B,IAAI,CAAC,gCAAgC,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js index f03ea02b..d4215a2b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map index 630806b4..8d6f4a90 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map @@ -1 +1 @@ -{"version":3,"file":"no-deprecated.js","sourceRoot":"","sources":["../../src/rules/no-deprecated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAoE;AAIpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,6BAA6B;YACzC,oBAAoB,EAAE,wCAAwC;SAC/D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;QACnD,IAAI,gBAAgB,KAAK,MAAM,IAAI,gBAAgB,KAAK,WAAW,EAAE,CAAC;YACpE,MAAM,IAAI,KAAK,CACb,0CAA0C,gBAAgB,IAAI,CAC/D,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD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I,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE,CAAC;oBAC1D,eAAe,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-deprecated.js","sourceRoot":"","sources":["../../src/rules/no-deprecated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAoE;AAIpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,6BAA6B;YACzC,oBAAoB,EAAE,wCAAwC;SAC/D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;QACnD,IAAI,gBAAgB,KAAK,MAAM,IAAI,gBAAgB,KAAK,WAAW,EAAE,CAAC;YACpE,MAAM,IAAI,KAAK,CACb,0CAA0C,gBAAgB,IAAI,CAC/D,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,gEAAgE;QAChE,EAAE;QACF,oCAAoC;QACpC,EAAE;QACF,0EAA0E;QAC1E,0EAA0E;QAC1E,yEAAyE;QACzE,sCAAsC;QACtC,SAAS,kCAAkC,CACzC,MAA6B,EAC7B,gCAAyC;YAEzC,IAAI,CAA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No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js index 8f24171d..7fc9dead 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map index 31d032fd..7b2a2bdd 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map @@ -1 +1 @@ -{"version":3,"file":"no-duplicate-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-type-constituents.ts"],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AAC"} \ No newline at end of file +{"version":3,"file":"no-duplicate-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AAWjB,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,UAAmB,EAAE,YAAqB,EAAW,EAAE;IAC5E,IAAI,UAAU,KAAK,YAAY,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IACE,UAAU;QACV,YAAY;QACZ,OAAO,UAAU,KAAK,QAAQ;QAC9B,OAAO,YAAY,KAAK,QAAQ,EAChC,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAC7D,IAAI,UAAU,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,CAAC,UAAU,CAAC,IAAI,CACrB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CACjE,CAAC;QACJ,CAAC;QACD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CACnD,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAC/B,CAAC;QACF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,CACvD,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAC/B,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AC;4BACxB,CAAC;wBACH,CAAC;oBACH,CAAC;gBACH,CAAC,CAAC;aACL,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js index e9110b2a..c622860f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); @@ -280,7 +290,7 @@ exports.default = (0, util_1.createRule)({ // All other cases are unhandled. return { isUnhandled: true }; } - else if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { + if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { // We must be getting the promise-like value from one of the branches of the // ternary. Check them directly. const alternateResult = isUnhandledPromise(checker, node.alternate); @@ -289,7 +299,7 @@ exports.default = (0, util_1.createRule)({ } return isUnhandledPromise(checker, node.consequent); } - else if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { const leftResult = isUnhandledPromise(checker, node.left); if (leftResult.isUnhandled) { return leftResult; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map index c5a71989..ec2a9788 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map @@ -1 +1 @@ -{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCAUiB;AAsBjB,MAAM,WAAW,GACf,4GAA4G,CAAC;AAE/G,MAAM,eAAe,GACnB,wGAAwG;IACxG,+DAA+D,CAAC;AAElE,MAAM,uBAAuB,GAC3B,6DAA6D,CAAC;AAEhE,MAAM,mBAAmB,GACvB,kIAAkI,CAAC;AAErI,MAAM,uBAAuB,GAC3B,kIAAkI;IAClI,4EAA4E,CAAC;AAE/E,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,QAAQ,EAAE,WAAW;YACrB,gBAAgB,EAAE,qBAAqB;YACvC,eAAe,EAAE,8BAA8B;YAC/C,oBAAoB,EAAE,mBAAmB;YACzC,wBAAwB,EAAE,uBAAuB;YACjD,+BAA+B,EAAE,GAAG,WAAW,IAAI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;IAE7C,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CACtB,OAAuB,EACvB,KAAgB,EAChB,IAAa;IAEb,MAAM,IAAI,GAAwB,OAAO,CAAC,eAAe,CACvD,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,CAC/C,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCAUiB;AAsBjB,MAAM,WAAW,GACf,4GAA4G,CAAC;AAE/G,MAAM,eAAe,GACnB,wGAAwG;IACxG,+DAA+D,CAAC;AAElE,MAAM,uBAAuB,GAC3B,6DAA6D,CAAC;AAEhE,MAAM,mBAAmB,GACvB,kIAAkI,CAAC;AAErI,MAAM,uBAAuB,GAC3B,kIAAkI;IAClI,4EAA4E,CAAC;AAE/E,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAA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ACvD,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAC1D,EACD,CAAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,oBAAoB,CAC3B,IAAa,EACb,OAA6C;IAE7C,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CACtB,OAAuB,EACvB,KAAgB,EAChB,IAAa;IAEb,MAAM,IAAI,GAAwB,OAAO,CAAC,eAAe,CACvD,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,CAC/C,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js index e4d5fd27..d4c48260 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const ts = __importStar(require("typescript")); const util_1 = require("../util"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map index 5f9bf7fa..963a101b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map @@ -1 +1 @@ -{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,kCAKiB;AACjB,2EAAwE;AAExE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,iNAAiN;SACpN;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;gBAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAElD,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEhE,IACE,IAAA,yCAAkC,EAAC,IAAI,EAAE,OAAO,CAAC;oBACjD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;wBACrD,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,kCAKiB;AACjB,2EAAwE;AAExE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,iNAAiN;SACpN;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;gBAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAElD,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEhE,IACE,IAAA,yCAAkC,EAAC,IAAI,EAAE,OAAO,CAAC;oBACjD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;wBACrD,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js index 48e6b4c7..da016efa 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map index afe4d6b1..1362432c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map @@ -1 +1 @@ -{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAEjB,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,YAAY;IACZ,cAAc;IACd,aAAa;IACb,YAAY;CACb,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,qBAAqB,EACnB,wEAAwE;YAC1E,kBAAkB,EAAE,4CAA4C;SACjE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,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,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACrD,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;gBAChC,IAAI,MAAM,EAAE,CAAC;oBACX,IACE,IAAA,0BAAmB,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,qBAAqB,CAAC,EAClE,CAAC;wBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;wBAC7D,OAAO;oBACT,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;oBAC7D,OAAO;gBACT,CAAC;YACH,CAAC;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChC,OAAO;YACT,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IACE,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACpB,IAAA,kCAA2B,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACjE,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,aAAa,EAAE,gBAAgB;SAChC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACx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S,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChC,OAAO;YACT,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IACE,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACpB,IAAA,kCAA2B,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACjE,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,aAAa,EAAE,gBAAgB;SAChC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js index 2e2c3b0d..582ca410 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js @@ -92,7 +92,7 @@ exports.default = (0, util_1.createRule)({ return; } // If the ignore option is *not* set we can report it now - else if (isAllowed === false) { + if (isAllowed === false) { let fullNumberNode = node; let raw = node.raw; if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map index ae454ab7..d3116c81 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map @@ -1 +1 @@ -{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"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AAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAAC;AACvE,CAAC"} \ No newline at end of file +{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAO1D,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,kBAAkB,CAAC,CAAC;AAKvD,iFAAiF;AACjF,MAAM,MAAM,GAAG,IAAA,gBAAS;AACtB,yHAAyH;AACzH,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EACxB;IACE,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;SACrE;QACD,yBAAyB,EAAE;YACzB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,+EAA+E;SAClF;QACD,6BAA6B,EAAE;YAC7B,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0DAA0D;SACxE;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+CAA+C;SAC7D;KACF;CACF,CACwB,CAAC;AAE5B,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EAAE,wBAAwB;YACrC,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,CAAC,MAAM,CAAC;KACjB;IACD,cAAc,EAAE;QACd;YACE,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;YACnB,MAAM,EAAE,EAAE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I,KAAK,sBAAc,CAAC,kBAAkB,EAC5D,CAAC;QACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAAC;AACvE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js index 240fe340..38c1cf14 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map index 9346419f..8a5728e4 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map @@ -1 +1 @@ -{"version":3,"file":"no-meaningless-void-operator.js","sourceRoot":"","sources":["../../src/rules/no-meaningless-void-operator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAqC;AAQrC,kBAAe,IAAA,iBAAU,EAAoD;IAC3E,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,uBAAuB,EACrB,oGAAoG;YACtG,UAAU,EAAE,eAAe;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACT,wEAAwE;qBAC3E;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAEvC,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;QAC9B,MAAM,QAAQ,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,OAAO;YACL,kCAAkC,CAAC,IAA8B;gBAC/D,MAAM,GAAG,GAAG,CAAC,KAAyB,EAAoB,EAAE;oBAC1D,OAAO,KAAK,CAAC,WAAW,CAAC;wBACvB,OAAO,CAAC,UA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YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-meaningless-void-operator.js","sourceRoot":"","sources":["../../src/rules/no-meaningless-void-operator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAqC;AAQrC,kBAAe,IAAA,iBAAU,EAAoD;IAC3E,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,uBAAuB,EACrB,oGAAoG;YACtG,UAAU,EAAE,eAAe;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACT,wEAAwE;qBAC3E;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAEvC,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;QAC9B,MAAM,QAAQ,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,OAAO;YACL,kCAAkC,CAAC,IAA8B;gBAC/D,MAAM,GAAG,GAAG,CAAC,KAAyB,EAAoB,EAAE;oBAC1D,OAAO,KAAK,CAAC,WAAW,CAAC;wBACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI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,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js index 038f1a05..7deedded 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map index 72b14de4..7cd2e782 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map @@ -1 +1 @@ -{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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C,MAAM,CAAC,KAAK,CAAC;SAChC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;AACtE,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAa,EACb,UAAkB;IAElB,MAAM,iBAAiB,GAAG,EAAE,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5E,OAAO,CACL,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,IAAmB;IACzC,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC5C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,MAAM,CACZ,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCASiB;AA8BjB,SAAS,qBAAqB,CAC5B,gBAA+D;IAE/D,QAAQ,gBAAgB,EAAE,CAAC;QACzB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QAEf,KAAK,IAAI,CAAC;QACV,KAAK,SAAS;YACZ,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,UAAU,EAAE,IAAI;gBAChB,gBAAgB,EAAE,IAAI;gBACtB,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,IAAI;aAChB,CAAC;QAEJ;YACE,OAAO;gBACL,SAAS,EAAE,gBA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AiB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,IAAmB;IACzC,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC5C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,MAAM,CACZ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js index 6763d33d..a67731ba 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const scope_manager_1 = require("@typescript-eslint/scope-manager"); const utils_1 = require("@typescript-eslint/utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map index 9f2b4833..46fb3966 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map @@ -1 +1 @@ -{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oEAAkE;AAClE,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,iDAAM,CAAA;IACN,iDAAM,CAAA;IACN,mDAAO,CAAA;AACT,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,kDAAkD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAClD,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAO5D,SAAS,sBAAsB,CAC7B,IAAgC;YAEhC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;YACzB,MAAM,KAAK,GAAyB;gBAClC,OAAO,EAAE,EAAE;gBACX,eAAe,EAAE,SAAS;aAC3B,CAAC;YACF,IAAI,KAAK,GAAiB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAE5D,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,KAAK,EAAE,GAAG,C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QAC7C,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;oBAC9B,OAAO;gBACT,CAAC;gBAED,IAAI,WAAW,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;gBACpD,IAAI,WAAW,KAAK,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;oBACzC,OAAO;gBACT,CAAC;gBAED,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACvC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;oBAC1C,IAAI,WAAW,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;wBACxC,OAAO;oBACT,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;wBACvC,WAAW,KAAK,WAAW,CAAC;oBAC9B,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;wBAChC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;4BAClC,SAAS,EAAE,OAAO;yBACnB,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oEAAkE;AAClE,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,iDAAM,CAAA;IACN,iDAAM,CAAA;IACN,mDAAO,CAAA;AACT,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAED,kBAAe,IAAA,iBAAU,EAAC;I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;wBACxC,OAAO;oBACT,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;wBACvC,WAAW,KAAK,WAAW,CAAC;oBAC9B,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;wBAChC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;4BAClC,SAAS,EAAE,OAAO;yBACnB,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js index cbfd2353..c43290bf 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map index 6821bb5d..9aa63e29 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map @@ -1 +1 @@ -{"version":3,"file":"no-redundant-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-redundant-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAUiB;AAEjB,MAAM,2BAA2B,GAAG;IAClC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO;IACnD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;CAC3C,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,cAAc;IAC3B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,eAAe;CACpB,CAAC;AAEX,MAAM,kBAAkB,GAAG;IACzB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CA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AY;gCACZ,iBAAiB;6BAClB,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;gBAED,+DAA+D;gBAC/D,gDAAgD;gBAChD,wDAAwD;gBACxD,KAAK,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,IAAI,mBAAmB,EAAE,CAAC;oBAChE,MAAM,OAAO,GAAG,IAAA,wBAAiB,EAC/B,iBAAiB,EACjB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/B,CAAC;oBAEF,KAAK,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE,CAAC;wBACjD,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,QAAQ;4BACd,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE;gCACJ,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gCACzD,SAAS,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;6BACrD;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-redundant-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-redundant-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAUiB;AAEjB,MAAM,2BAA2B,GAAG;IAClC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO;IACnD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SA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CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js index aafbde04..181ab0a1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const util = __importStar(require("../util")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map index 2c0c677b..0ab3ffd2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map @@ -1 +1 @@ -{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;A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M,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAoE;AAEpE,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,0CAA0C;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC1B;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,qDAAqD;qBACnE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IACrD,MAAM,CAAC,OAAO,EAAE,OAAO;QACrB,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QAC/C,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,CACzC,OAAO,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CACpC,CAAC;QACF,SAAS,mBAAmB,CAAC,UAAkB;YAC7C,OAAO,aAAa,EAAE,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AAO,QAAQ,KAAK,QAAQ,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAClE,OAAO;oBACT,CAAC;gBACH,CAAC;gBACD,IACE,aAAa;oBACb,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,yBAAyB,EAC7D,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js index 28f040ec..eb0377ef 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map index add839e5..f2e3f27e 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAgF;AA0BhF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;YACtE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,iIAAiI;YACnI,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;SAChG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,qCAAqC,EAAE;wBACrC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,8EAA8E;qBACjF;oBACD,oCAAoC,EAAE;wBACpC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,6EAA6E;qBAChF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,qCAAqC,E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OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAgF;AA0BhF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;YACtE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,iIAAiI;YACnI,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;SAChG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,qCAAqC,EAAE;wBACrC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,8EAA8E;qBACjF;oBACD,oCAAoC,EAAE;wBACpC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,6EAA6E;qBAChF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,qCAAqC,EAAE,IAAI;YAC3C,oCAAoC,EAAE,IAAI;SAC3C;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C,SAAS,oBAAoB,CAC3B,IAA+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CAAC;4BACrC,MAAM,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;4BAE/C,kFAAkF;4BAClF,IAAI,CAAC,IAAA,6BAAsB,EAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;gCACnD,MAAM,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;gCAC/C,MAAM,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;4BAChD,CAAC;wBACH,CAAC;wBAED,2FAA2F;wBAC3F,IACE,UAAU,CAAC,2BAA2B;4BACtC,CAAC,UAAU,CAAC,0BAA0B,EACtC,CAAC;4BACD,6BAA6B;4BAC7B,MAAM,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;4BAC/C,MAAM,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;wBACxD,CAAC;oBACH,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAOH,SAAS,aAAa,CAAC,QAAgB;IACrC,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js index 62053e36..084fbb60 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map index e669993d..2cd17d15 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAciB;A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,EAAE,GAAG,IAAI,CAAC;gBAC1B,IAAI,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC7B,2CAA2C,CACzC,IAAI,EACJ,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,EACV,QAAQ,CACT,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,cAAc,EAAE,mBAAmB;YACnC,iCAAiC,EAAE,2BAA2B;YAC9D,qBAAqB,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3D,gBAAgB,EAAE,iCAAiC;YACnD,YAAY,EAAE,iCAAiC;YAC/C,WAAW,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YACjD,iBAAiB,EAAE,gDAAgD;YACnE,mCAAmC,EAAE,6BAA6B;YAClE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;gBACzB,yCAAyC;gBACzC,IAAI,IAAI,EAAE,CAAC;oBACT,2CAA2C,CACzC,IAAI,EACJ,MAAM,CAAC,YAAY,EACnB,IAAI,EACJ,KAAK,CACN,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,cAAc,EAAE,iCAAiC;SAClD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAciB;AACjB,2EAGwC;AAExC,uBAAuB;AACvB,UAAU;AACV,MAAM,mBAAmB,GAAG,CAC1B,KAAwC,EACd,EAAE;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAC5B,IAAoB,EACM,EAAE;IAC5B,IAAI,m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BAAmB;YACnC,iCAAiC,EAAE,2BAA2B;YAC9D,qBAAqB,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3D,gBAAgB,EAAE,iCAAiC;YACnD,YAAY,EAAE,iCAAiC;YAC/C,WAAW,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YACjD,iBAAiB,EAAE,gDAAgD;YACnE,mCAAmC,EAAE,6BAA6B;YAClE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;gBACzB,yCAAyC;gBACzC,IAAI,IAAI,EAAE,CAAC;oBACT,2CAA2C,CACzC,IAAI,EACJ,MAAM,CAAC,YAAY,EACnB,IAAI,EACJ,KAAK,CACN,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,cAAc,EAAE,iCAAiC;SAClD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js index c0310078..b6651dfb 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map index 1ca3bcc1..d2192cb5 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,iBAAiB,GAAc,EAAE,CAAC;QACxC,IAAI,gCAAgC,GAAyB,IAAI,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,qBAAqB,CAAC;QAC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oB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,sBAAsB,EAAE,+BAA+B;SACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,iBAAiB,GAAc,EAAE,CAAC;QACxC,IAAI,gCAAgC,GAAyB,IAAI,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,qBAAqB,CAAC;QAC7D,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,mBAAmB,CAC1B,MAAiB,EACjB,OAAuB;YAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;gBAClC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;QAED,SAAS,wBAAwB,CAAC,MAAiB;YACjD,MAAM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AAc,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzE,CAAC;QAED,SAAS,sBAAsB,CAC7B,IAAmB;YAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACvC,CAAC,0BAA0B,CAAC,IAAI,CAAC;oBAC/B,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CACvC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,8DAA8D,EAC5D,gBAAgB;YAClB,mEAAmE,EACjE,eAAe;YACjB,gEAAgE,EAC9D,gBAAgB;YAClB,qEAAqE,EACnE,eAAe;YACjB,uBAAuB,EAAE,+BAA+B;YACxD,kCAAkC,CAChC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;YACD,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,eAAe;YACzC,0BAA0B,EAAE,eAAe;YAC3C,qCAAqC,CACnC,IAA4B;gBAE5B,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,sBAAsB,EAAE,+BAA+B;SACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js index 9945de4a..9e68ce15 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map index eb7a515d..57cc377d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-template-expression.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-template-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,mDAAgD;AAIhD,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAEjE,iBAAiB;AACjB,kBAAkB;AAClB,qBAAqB;AACrB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oBACvB,aAAa;oBACb,IACE,gCAAgC;wBAChC,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAChD,CAAC;wBACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;4BACnB,KAAK,CAAC,gBAAgB,CACpB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAChD,KAAK,CACN;yBACF,CAAC,CAAC;oBACL,CAAC;oBAED,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;oBAC5C,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;oBAE1C,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,IAAA,uBAAU,EAAC,OAAO,CAAC,UAAU,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;wBAC/D,SAAS,EAAE,iCAAiC;wBAC5C,GAAG,CAAC,KAAK;4BACP,OAAO;gCACL,uEAAuE;gCACvE,KAAK,CAAC,WAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gCACtD,KAAK,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;gCAEpD,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;6BACnC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-template-expression.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-template-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;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gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js index d77b7921..1bbf4f9a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map index da71764e..dd47794c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map @@ -1 +1 @@ -{"version":3,"file":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AAS,CAAC;IACnB,CAAC;IAED,OAAO,IAAA,sBAAe,EAAC,YAAY,EAAE,IAAI,CAAC,EAAE,CAC1C,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;QACpB,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,cAAc;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAAwE,EACxE,OAAuB;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAejB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,YAA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;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAAwE,EACxE,OAAuB;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js index 1b48482a..bed24371 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map index 9204d828..c8bcf38b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAWiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,uEAAuE;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EACrB,+FAA+F;YACjG,oBAAoB,EAClB,oFAAoF;SACvF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,I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GAAG,qBAAqB;4BAC5C,CAAC,CAAC,+BAA+B;4BACjC,CAAC,CAAC,IAAI,CAAC;wBACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBAET,IAAI,gBAAgB,IAAI,WAAW,IAAI,WAAW,EAAE,CAAC;4BACnD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,yBAAyB;gCACpC,GAAG,EAAE,oBAAoB;6BAC1B,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAWiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,uEAAuE;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EACrB,+FAA+F;YACjG,oBAAoB,EAClB,oFAAoF;SACvF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,iCAAiC;wBAC9C,KAAK,EAAE;4BACL,IAAI,E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ACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBAET,IAAI,gBAAgB,IAAI,WAAW,IAAI,WAAW,EAAE,CAAC;4BACnD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,yBAAyB;gCACpC,GAAG,EAAE,oBAAoB;6BAC1B,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js index 11e534e3..7449f10e 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const node_path_1 = require("node:path"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map index 520247ac..55cee2a6 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-type-constraint.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-constraint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,yCAAoC;AACpC,+CAAiC;AAIjC,kCAAqC;AAOrC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,2BAA2B,EACzB,qDAAqD;YACvD,qBAAqB,EACnB,+FAA+F;SAClG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,iFAAiF;QACjF,sFAAsF;QACtF,yFAAyF;QACzF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;YACrC,CAAC,sBAAc,CAAC,YAAY,EAAE,KAAK,CAAC;YACpC,CAAC,sBAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC;SAC7C,CAAC,CAAC;QAEH,SAAS,6CAA6C,CACpD,QAAgB;YAEhB,MAAM,OAAO,GAAG,IAAA,mBAAO,EAAC,QAAQ,CAAC,CAAC,iBAAiB,EAAkB,CAA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,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACpC,CAAC;4BACJ,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;QAEF,OAAO;YACL,0FAA0F,CACxF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACzB,CAAC;YACD,oFAAoF,CAClF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-type-constraint.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-constraint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,yCAAoC;AACpC,+CAAiC;AAIjC,kCAAqC;AAOrC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,2BAA2B,EACzB,qDAAqD;YACvD,qBAAqB,EACnB,+FAA+F;SAClG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,iFAAiF;QACjF,sFAAsF;QACtF,yFAAyF;QACzF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;YACrC,CAAC,sBAAc,CAAC,YAAY,EAAE,KAAK,CAAC;YACpC,CAAC,sBAAc,CAAC,gBAAgB,EAAE,SAAS,CAAC;SAC7C,CAAC,CAAC;QAEH,SAAS,6CAA6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KAAK;gCACP,OAAO,KAAK,CAAC,gBAAgB,CAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACpC,CAAC;4BACJ,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;QAEF,OAAO;YACL,0FAA0F,CACxF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACzB,CAAC;YACD,oFAAoF,CAClF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js index 1d74d9e6..da5558e2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map index a20655dc..7a6c0dce 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unnecessary-type-parameters.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCAKiB;AAOjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,2BAA2B,EACzB,2DAA2D;YAC7D,IAAI,EAAE,sEAAsE;SAC7E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAElD,SAAS,SAAS,CAAC,IAA2B,EAAE,UAAkB;YAChE,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CACrD,IAAI,CACqB,CAAC;Y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,IAAI,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,EAAE,CAAC;YAChE,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,SAAS,CACP,OAAO,CAAC,2BAA2B,CAAC,SAAS,CAAC,EAAE,IAAI;YAClD,SAAS,CAAC,aAAa,EAAE,EAC3B,KAAK,CACN,CAAC;IACJ,CAAC;IAED,SAAS,oBAAoB,CAC3B,OAAoB,EACpB,kBAA2B;QAE3B,IAAI,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACpC,OAAO;QACT,CAAC;QAED,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEhC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,SAAS,cAAc,CACrB,KAAyB,EACzB,kBAA2B;QAE3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;AACH,CAAC;AAQD,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,eAAe,IAAI,IAAI,CAAC;AACjC,CAAC;AAMD,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unnecessary-type-parameters.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCAKiB;AAOjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IA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AAC;QACtC,CAAC;IACH,CAAC;AACH,CAAC;AAQD,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,eAAe,IAAI,IAAI,CAAC;AACjC,CAAC;AAMD,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js index 3a8a3301..12f63b62 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map index 74a583a6..1f349eca 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-argument.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-argument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AA8BjB,MAAM,iBAAiB;IAMX;IACA;IANF,oBAAoB,GAAG,KAAK,CAAC;IAE7B,kBAAkB,GAAG,CAAC,CAAC;IAE/B,YACU,UAAqB,EACrB,QAAyB;QADzB,eAAU,GAAV,UAAU,CAAW;QACrB,aAAQ,GAAR,QAAQ,CAAiB;IAChC,CAAC;IAEG,MAAM,CAAC,MAAM,CAClB,OAAuB,EACvB,MAA6B;QAE7B,MAAM,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,UAAU,GAAc,EAAE,CAAC;QACjC,IAAI,QAAQ,GAAoB,IAAI,CAAC;QAErC,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;YAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAE9D,MAAM,IAAI,GAAG,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,IAAI,IAAI,IAAA,iCAA0B,EAAC,IAAI,CAAC,EAAE,CAAC;gBAC7C,kBAAk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+B,CAC7B,IAAsD;gBAEtD,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAC1D,CAAC;YACD,wBAAwB,CAAC,IAAuC;gBAC9D,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-argument.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-argument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AA8BjB,MAAM,iBAAiB;IAMX;IACA;IANF,oBAAoB,GAAG,KAAK,CAAC;IAE7B,kBAAkB,GAAG,CAAC,CAAC;IAE/B,YACU,UAAqB,EACrB,QAAyB;QADzB,eAAU,GAAV,UAAU,CAAW;QACrB,aAAQ,GAAR,QAAQ,CAAiB;IAChC,CAAC;IAEG,MAAM,CAAC,MAAM,CAClB,OAAuB,EACvB,MAA6B;QAE7B,MAAM,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,UAAU,GAAc,EAAE,CAAC;QACjC,IAAI,QAAQ,GAAoB,IAAI,CAAC;QAErC,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;YAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,yBAAyB,C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,EAAE;oCACJ,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC;oCACrC,MAAM,EAAE,YAAY,CAAC,YAAY,CAAC;iCACnC;6BACF,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,+BAA+B,CAC7B,IAAsD;gBAEtD,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAC1D,CAAC;YACD,wBAAwB,CAAC,IAAuC;gBAC9D,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js index 2298e072..aa35a0d7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map index 14a0be90..a81e7586 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-assignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAYiB;AAWjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,wEAAwE;YAC1E,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,2CAA2C;YAC1D,iBAAiB,EAAE;gBACjB,qEAAqE;gBACrE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,kBAAkB,EAChB,0DAA0D;YAC5D,2BAA2B,EACzB,yEAAyE;YAC3E,iBAAiB,EAAE,mDAAmD;YACtE,gBAAgB,EACd,0EAA0E;SAC7E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;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AAC;oBACrE,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;qBAC3B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,6BAA6B,CAAC,IAA2B;gBACvD,MAAM,KAAK,GAAG,IAAA,iBAAU,EACtB,IAAI,CAAC,KAAK,EACV,wBAAiB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CACnD,CAAC;gBACF,IACE,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;oBACpD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC3D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,eAAe,CACb,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,oCAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-assignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAYiB;AAWjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,wEAAwE;YAC1E,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,2CAA2C;YAC1D,iBAAiB,EAAE;gBACjB,qEAAqE;gBACrE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,kBAAkB,EAChB,0DAA0D;YAC5D,2BAA2B,EACzB,yEAAyE;YAC3E,iBAA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K,EAAE,IAAI,oCAA4B,CAAC;YACzE,CAAC;YACD,iCAAiC,CAAC,IAA4B;gBAC5D,MAAM,QAAQ,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC3D,IAAI,IAAA,oBAAa,EAAC,QAAQ,CAAC,IAAI,IAAA,yBAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC;oBACrE,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;qBAC3B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,6BAA6B,CAAC,IAA2B;gBACvD,MAAM,KAAK,GAAG,IAAA,iBAAU,EACtB,IAAI,CAAC,KAAK,EACV,wBAAiB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CACnD,CAAC;gBACF,IACE,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;oBACpD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC3D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,eAAe,CACb,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,oCAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js index 39e0bd9a..c6ca5668 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const util_1 = require("../util"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map index 370993f3..e27acb65 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AAExC,kCAOiB;AAQjB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,2CAA2C;YACvD,cAAc,EAAE;gBACd,wEAAwE;gBACxE,2HAA2H;aAC5H,CAAC,IAAI,CAA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;gBACH,OAAO;YACT,CAAC;QACH,CAAC;QAED,OAAO;YACL,2BAA2B,CACzB,IAAuC;gBAEvC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;YACtC,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;YAC5C,CAAC;YACD,kCAAkC,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js index ded996f4..ae7dacb9 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map index 75274b89..914eac98 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-enum-comparison.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-enum-comparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwE;AACxE,gDAI6B;AAE7B;;GAEG;AACH,SAAS,YAAY,CAAC,aAAwB,EAAE,SAAkB;IAChE,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAExE,OAAO,CACL,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC;QACxE,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC,CACzE,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAEtD,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;QAC/B,OAAO,OAAO,CAAC,aAAa,CAC1B,QAAQ,EACR,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;A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I,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;oBACtB,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;gBAExB,MAAM,QAAQ,GAAG,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBACvE,MAAM,SAAS,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAE9D,IAAI,sBAAsB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;oBAChD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-enum-comparison.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-enum-comparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwE;AACxE,gDAI6B;AAE7B;;GAEG;AACH,SAAS,YAAY,CAAC,aAAwB,EAAE,SAAkB;IAChE,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAExE,OAAO,CACL,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC;QACxE,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC,CACzE,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAEtD,OAAO,SAAS,CAAC,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AI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;oCACpD,CAAC;oCAED,OAAO,IAAI,CAAC;gCACd,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,UAAU,CAAC,IAAI;gBACb,0BAA0B;gBAC1B,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;oBACtB,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;gBAExB,MAAM,QAAQ,GAAG,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBACvE,MAAM,SAAS,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAE9D,IAAI,sBAAsB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;oBAChD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js index 7e71fbcc..8e7d6407 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map index b9e698e5..25f8402b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAMiB;AAOjB,SAAS,cAAc,CAAC,IAAa;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,0BAA0B,EACxB,2DAA2D;YAC7D,sBAAsB,EACpB,yDAAyD;YAC3D,0B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CAAC;oBACtD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;4BAC1B,QAAQ,EAAE,IAAI,YAAY,GAAG;yBAC9B;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAMiB;AAOjB,SAAS,cAAc,CAAC,IAAa;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,0BAA0B,EACxB,2DAA2D;YAC7D,sBAAsB,EACpB,yDAAyD;YAC3D,0BAA0B,EAAE;gBAC1B,gFAAgF;gBAChF,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,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plugin/dist/rules/no-unsafe-return.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js index aa2ad369..eb561f99 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map index 1ccece73..029c127a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAaiB;AACjB,yEAAs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AAQ,CAAC;gBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,OAAO;gBACT,CAAC;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAaiB;AACjB,yEAAsE;AAEtE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,4CAA4C;YAC1D,sBAAsB,EACpB,mFAAmF;YACrF,gBAAgB,EAAE;gBAChB,wEAAwE;gBACxE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAClD,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,gBAAgB,GAAG,OAAO,CAAC,6BAA6B,CAC5D,eAAe,EACf,gBAAgB,CACjB,CAAC;QAEF,SAAS,WAAW,CAClB,UAAyB,EACzB,gBAA+B,UAAU;YAEzC,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAC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ACpC,OAAO,OAAO,CAAC,MAAM,CAAC;oBACpB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE;wBACJ,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;wBACxC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC;qBACrC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,qDAAqD,EAAE,WAAW;YAClE,eAAe,CAAC,IAAI;gBAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;gBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,OAAO;gBACT,CAAC;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js index b5454f9d..464f2273 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map index b2ecfe51..76401177 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,wBAAwB,EACtB,iFAAiF;YACnF,wBAAwB,EACtB,yFAAyF;YAC3F,mBAAmB,EACjB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,cAAc,CAAC,IAAa;YACnC,OAAO,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CA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AiB,EAAE,CAAC;gBACtB,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,0BAA0B;oBACrC,IAAI,EAAE;wBACJ,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC;qBAC/C;iBACF,CAAC,CAAC;gBAEH,OAAO;YACT,CAAC;YAED,8EAA8E;YAC9E,uCAAuC;YACvC,MAAM,eAAe,GAAG,mBAAmB,CAAC,cAAc,CAAC;gBACzD,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;gBACxC,CAAC,CAAC,cAAc,CAAC;YAEnB,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAChD,eAAe,EACf,YAAY,CACb,CAAC;YAEF,IAAI,CAAC,eAAe,EAAE,CAAC;gBACrB,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,qBAAqB;oBAChC,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;qBACzC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,iCAAiC,CAC/B,IAAwD;gBAExD,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,wBAAwB,EACtB,iFAAiF;YAC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slint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js index c94807f8..a2a05414 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map index e5aae17d..f453affb 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map @@ -1 +1 @@ -{"version":3,"file":"no-unsafe-unary-minus.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-unary-minus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;A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CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"no-unsafe-unary-minus.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-unary-minus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yCAAyC;YACtD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EACR,6FAA6F;SAChG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC;oBAC1B,OAAO;gBACT,CAAC;gBACD,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAM,OAAO,GAAG,IAAI,CAAC,4BAA4B,CAC/C,QAAQ,EACR,IAAI,CAAC,QAAQ,CACd,CAAC;gBACF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAClD,IACE,OAAO;qBACJ,cAAc,CAAC,OAAO,CAAC;qBACvB,IAAI,CACH,IAAI,CAAC,EAAE,CACL,CAAC,OAAO,CAAC,aAAa,CACpB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;oBACd,EAAE,CAAC,SAAS,CAAC,KAAK;oBAClB,EAAE,CAAC,SAAS,CAAC,UAAU;oBACvB,EAAE,CAAC,SAAS,CAAC,UAAU,CAC1B,CACJ,EACH,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;wBACvB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;qBAC9C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js index 5ca0f598..29837976 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); @@ -57,7 +67,7 @@ exports.default = (0, util_1.createRule)({ const constraint = type.getConstraint(); return constraint == null || couldBeNullish(constraint); } - else if (tsutils.isUnionType(type)) { + if (tsutils.isUnionType(type)) { for (const part of type.types) { if (couldBeNullish(part)) { return true; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map index bc8d70a2..f76e1763 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map @@ -1 +1 @@ -{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,sBAAsB,EACpB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,kBAAkB,GAAG,CAAC,IAAmB,EAAyB,EAAE;YACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IACE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EACpE,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACtC,CA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AAC,OAAO,CACtB,GAAG,yBAAkB,CAAC,KAAK,CAAC;oBAE/B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,wBAAwB;wBACnC,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,yBAAyB;gCACvB,CAAC,CAAC,GAAG,oBAAoB,GAAG;gCAC5B,CAAC,CAAC,IAAI,oBAAoB,IAAI,CACjC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,sBAAsB,EACpB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,kBAAkB,GAAG,CAAC,IAAmB,EAAyB,EAAE;YACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IACE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,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yB,GAC7B,IAAA,4BAAqB,EACnB,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,EACxD,EAAE,CAAC,UAAU,CAAC,OAAO,CACtB,GAAG,yBAAkB,CAAC,KAAK,CAAC;oBAE/B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,wBAAwB;wBACnC,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,yBAAyB;gCACvB,CAAC,CAAC,GAAG,oBAAoB,GAAG;gCAC5B,CAAC,CAAC,IAAI,oBAAoB,IAAI,CACjC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js index 80bd4d2b..af1accf8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map index 92a291a2..1db93b5d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map @@ -1 +1 @@ -{"version":3,"file":"only-throw-error.js","sourceRoot":"","sources":["../../src/rules/only-throw-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAIjC,kCAQiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,eAAe,EAAE,kBAAkB;YACnC,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,wCAAwC;YAChD,KAAK,EAAE,yBAAyB;SACjC;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,GAAG,kCAA2B;wBAC9B,WAAW,EAAE,qCAAqC;qBACnD;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yDAAyD;qBAC5D;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,6DAA6D;qBAChE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,KAAK,EAAE,EAAE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kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"only-throw-error.js","sourceRoot":"","sources":["../../src/rules/only-throw-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAIjC,kCAQiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,eAAe,EAAE,kBAAkB;YACnC,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,wCAAwC;YAChD,KAAK,EAAE,yBAAyB;SACjC;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,GAAG,kCAA2B;wBAC9B,WAAW,EAAE,qCAAqC;qBACnD;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yDAAyD;qBAC5D;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,6DAA6D;qBAChE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE,IAAI;YACtB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,SAAS,kBAAkB,CAAC,IAAmB;YAC7C,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC5C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAC5C,CAAC;gBACD,OAAO;YACT,CAAC;YAED,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IAAI,IAAA,+BAAwB,EAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC5D,OAAO;YACT,CAAC;YAED,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;gBACxC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;gBAC7C,OAAO;YACT,CAAC;YAED,IAAI,OAAO,CAAC,gBAAgB,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,EAAE,CAAC;gBACpD,OAAO;YACT,CAAC;YAED,IAAI,OAAO,CAAC,oBAAoB,IAAI,IAAA,wBAAiB,EAAC,IAAI,CAAC,EAAE,CAAC;gBAC5D,OAAO;YACT,CAAC;YAED,IAAI,IAAA,kBAAW,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;gBACxC,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js index 7cc5defc..71074cbd 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map index 26c378ea..35f8ef11 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,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,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,MAAM,GAA2B;IACrC;QACE,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE,uBAAuB;oBAC7C,kBAAkB,EAAE,uBAAuB;iBAC5C;aACF;YACD,uBAAuB;SACxB;KACF;IACD;QACE,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,uCAAuC,EAAE;gBACvC,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,kFAAkF;aACrF;YACD,2BAA2B,EAAE;gBAC3B,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,6FAA6F;aAChG;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,I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ACb,WAA2B;IAE3B,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,OAAO,CAAC,gCAAgC,CACvD,IAAI,EACJ,UAAU,EACV,WAAW,CACZ,CAAC;QACF,OAAO,QAAQ,KAAK,SAAS,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,gCAAgC,CACvC,IAAyB;IAEzB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js index f61d2997..0e1757e7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map index 717fe788..058a2718 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-find.js","sourceRoot":"","sources":["../../src/rules/prefer-find.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0HAA0H;YAC5H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,UAAU,EAAE,+CAA+C;YAC3D,oBAAoB,EAAE,4CAA4C;SACnE;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,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L,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-find.js","sourceRoot":"","sources":["../../src/rules/prefer-find.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0HAA0H;YAC5H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,UAAU,EAAE,+CAA+C;YAC3D,oBAAoB,EAAE,4CAA4C;SACnE;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAOlD,SAAS,2BAA2B,CAClC,UAA+B;YAE/B,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAAE,CAAC;gBAC1D,6EAA6E;gBAC7E,MAAM,cAAc,GAAG,IAAA,iBAAU,EAC/B,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAC7B,sEAAsE,CACvE,CAAC;gBACF,OAAO,2BAA2B,CAAC,cAAc,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAAE,CAAC;g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AE;YACF,uEAAuE;YACvE,sEAAsE;YACtE,iCAAiC,CAC/B,IAA2C;gBAE3C,IAAI,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAC3B,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC;oBAC9D,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACnC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,YAAY;4BACvB,OAAO,EAAE;gCACP;oCACE,SAAS,EAAE,sBAAsB;oCACjC,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE;wCACjC,OAAO;4CACL,GAAG,iBAAiB,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAC1C,kCAAkC,CAChC,KAAK,EACL,gBAAgB,CACjB,CACF;4CACD,sBAAsB;4CACtB,qCAAqC,CACnC,KAAK,EACL,MAAM,EACN,IAAI,CACL;yCACF,CAAC;oCACJ,CAAC;iCACF;6BACF;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js index 00b92a04..7618ac8d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js @@ -55,7 +55,7 @@ exports.default = (0, util_1.createRule)({ // x += 1 return isLiteral(node.right, 1); } - else if (node.operator === '=') { + if (node.operator === '=') { // x = x + 1 or x = 1 + x const expr = node.right; return (expr.type === utils_1.AST_NODE_TYPES.BinaryExpression && diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map index cd02187d..92cfabb2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAiD;AAEjD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,2BAA2B,CAClC,IAA0B;YAE1B,OAAO,CACL,IAAI,EAAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB;gBACjD,IAAI,CAAC,IAAI,KAAK,OAAO;gBACrB,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAC/B,CAAC;QACJ,CAAC;QAED,SAAS,SAAS,CAChB,IAAsD,EACtD,KAAa;YAEb,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QACtE,CAAC;QAED,SAAS,iBAAiB,CAAC,IAAiC;YAC1D,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACtD,CAAC;QAED,SAAS,oBAAoB,CAC3B,IAAsD,EACtD,IAAY;YAEZ,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CA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AAK,SAAS;wBACrD,CAAC,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC,CACrB,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,mBAAmB,CAAC,IAA2B;gBAC7C,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5C,OAAO;gBACT,CAAC;gBAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAE9B,CAAC;gBACd,IACE,CAAC,UAAU;oBACX,CAAC,iBAAiB,CAAC,UAAU,CAAC;oBAC9B,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAChD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,MAAM,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC;gBACrC,MAAM,eAAe,GAAG,0BAA0B,CAChD,IAAI,CAAC,IAAI,EACT,SAAS,CACV,CAAC;gBACF,IAAI,CAAC,eAAe,EAAE,CAAC;oBACrB,OAAO;gBACT,CAAC;gBAED,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtE,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAiD;AAEjD,kBAAe,IAAA,iBAAU,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B,CAAC;gBACd,IACE,CAAC,UAAU;oBACX,CAAC,iBAAiB,CAAC,UAAU,CAAC;oBAC9B,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAChD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,MAAM,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC;gBACrC,MAAM,eAAe,GAAG,0BAA0B,CAChD,IAAI,CAAC,IAAI,EACT,SAAS,CACV,CAAC;gBACF,IAAI,CAAC,eAAe,EAAE,CAAC;oBACrB,OAAO;gBACT,CAAC;gBAED,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtE,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js index 4a05933a..12412510 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const regexpp_1 = require("@eslint-community/regexpp"); const utils_1 = require("@typescript-eslint/utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map index 5fd6f43b..f8a09561 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAA+D;AAC/D,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAMiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,kCAAkC;YAClD,oBAAoB,EAClB,uDAAuD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC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I,CAAC,IAAI,CACjE,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js index 422e08d7..9a434928 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); @@ -412,7 +422,7 @@ function isMixedLogicalExpression(node) { if (current.operator === '&&') { return true; } - else if (['||', '||='].includes(current.operator)) { + if (['||', '||='].includes(current.operator)) { // check the pieces of the node to catch cases like `a || b || c && d` queue.push(current.parent, current.left, current.right); } diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map index 66fd0163..d37329c2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAYiB;AA0BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0FAA0F;YAC5F,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,kGAAkG;YACpG,mBAAmB,EACjB,mJAAmJ;YACrJ,wBAAwB,EACtB,wHAAwH;YAC1H,cAAc,EAAE,wDAAwD;SACzE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,sDAAsD,EAAE;wBACtD,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,2KAA2K;qBAC9K;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,0DAA0D;qBAC7D;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qEAAqE;qBACxE;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,uGAAuG;qBAC1G;oBACD,gBAAgB,EAAE;wBAChB,WAAW,EACT,qFAAqF;wBACvF,KAAK,EAAE;4BACL;gCACE,IAAI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iBAAM,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpD,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAYiB;AA0BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0FAA0F;YAC5F,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,kGAAkG;YACpG,mBAAmB,EACjB,mJAAmJ;YACrJ,wBAAwB,EACtB,wHAAwH;YAC1H,cAAc,EAAE,wDAAwD;SACzE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,sDAAsD,EAAE;wBACtD,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,2KAA2K;qBAC9K;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,0DAA0D;qBAC7D;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qEAAqE;qBACxE;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,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K,sBAAc,CAAC,iBAAiB,EAAE,CAAC;YACtD,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC;YACd,CAAC;YAED,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC7C,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js index 9b3fe8d2..0685eb01 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.analyzeChain = analyzeChain; const utils_1 = require("@typescript-eslint/utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map index d8f712e3..416916c1 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map @@ -1 +1 @@ -{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAigBA,oCAoHC;AA1mBD,oDAA0D;AAC1D,+CAA8C;AAC9C,+CAAiC;AAQjC,qCASoB;AACpB,mEAAgE;AAChE,iDAAoE;AAGpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KAAK,EACL,KAAK,EACL,EAAE;IACF,QAAQ,OAAO,CAAC,cAAc,EAAE,CAAC;QAC/B,kDAA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B,CAAC,iBAAiB,CAAC,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,oEAAoE;gBACpE,qDAAqD;gBACrD,aAAa;YACf,CAAC;QACH,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAigBA,oCAoHC;AA1mBD,oDAA0D;AAC1D,+CAA8C;AAC9C,+CAAiC;AAQjC,qCASoB;AACpB,mEAAgE;AAChE,iDAAoE;AAGpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KAAK,EACL,KAAK,EACL,EAAE;IACF,QAAQ,OAAO,CAAC,cAAc,EAAE,CAAC;QAC/B,kDAAkC,CAAC,CAAC,CAAC;YACnC,MAAM,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YACxC,IACE,WAAW,EAAE,cAAc;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AC;YACN,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js index fe50be13..9e308d35 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.checkNullishAndReport = checkNullishAndReport; const type_utils_1 = require("@typescript-eslint/type-utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map index b1188b7f..a8842814 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map @@ -1 +1 @@ -{"version":3,"file":"checkNullishAndReport.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/checkNullishAndReport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDAoBC;AA7BD,8DAA8D;AAC9D,+CAA8C;AAC9C,+CAAiC;AAOjC,SAAgB,qBAAqB,CACnC,OAGC,EACD,cAAiD,EACjD,EAAE,cAAc,EAA8B,EAC9C,iBAAwC,EACxC,UAA2D;IAE3D,IACE,CAAC,cAAc;QACf,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5B,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAA,0BAAa,EAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAC7D,CACF,EACD,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"checkNullishAndReport.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/checkNullishAndReport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDAoBC;AA7BD,8DAA8D;AAC9D,+CAA8C;AAC9C,+CAAiC;AAOjC,SAAgB,qBAAqB,CACnC,OAGC,EACD,cAAiD,EACjD,EAAE,cAAc,EAA8B,EAC9C,iBAAwC,EACxC,UAA2D;IAE3D,IACE,CAAC,cAAc;QACf,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5B,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAA,0BAAa,EAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAC7D,CACF,EACD,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js index 1aaafd1c..44d54c6e 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.gatherLogicalOperands = gatherLogicalOperands; const utils_1 = require("@typescript-eslint/utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map index 0360591d..5aa1345b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map @@ -1 +1 @@ -{"version":3,"file":"gatherLogicalOperands.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/gatherLogicalOperands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,sDAkQC;AAhXD,oDAA0D;AAC1D,+CAMsB;AACtB,+CAAiC;AAIjC,qCAAwE;AA4CxE,MAAM,aAAa,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;AACjE,SAAS,4BAA4B,CACnC,IAAmB,EACnB,qBAA8B,EAC9B,cAAiD,EACjD,OAAmC;IAEnC,MAAM,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,IACE,qBAAqB;QACrB;;;;;;;;;;UAUE,CAAC,CAAC,KAAK,CAAC,IAAI,CACZ,CAAC,CAAC,EAAE,CAAC,IAAA,mCAAoB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,CAC5D;YACC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CA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3B,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO;YACL,iBAAiB;YACjB,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,SAAS,sBAAsB,CAC7B,IAAmB;QAEnB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,sBAAc,CAAC,OAAO;gBACzB,+EAA+E;gBAC/E,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;oBAC/C,6CAAgC;gBAClC,CAAC;gBACD,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;oBAC/B,iFAAkD;gBACpD,CAAC;gBACD,OAAO,IAAI,CAAC;YAEd,KAAK,sBAAc,CAAC,UAAU;gBAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC9B,uDAAqC;gBACvC,CAAC;gBACD,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"gatherLogicalOperands.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/gatherLogicalOperands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,sDAkQC;AAhXD,oDAA0D;AAC1D,+CAMsB;AACtB,+CAAiC;AAIjC,qCAAwE;AA4CxE,MAAM,aAAa,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;AACjE,SAAS,4BAA4B,CACnC,IAAmB,EACnB,qBAA8B,EAC9B,cAAiD,EACjD,OAAmC;IAEnC,MAAM,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,IAA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AC;QAC7D,IAAI,OAAwC,CAAC;QAC7C,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;YAC/B,IACE,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBACjD,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAClC,CAAC;gBACD,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBAC/B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBAC1B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO;YACL,iBAAiB;YACjB,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,SAAS,sBAAsB,CAC7B,IAAmB;QAEnB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,sBAAc,CAAC,OAAO;gBACzB,+EAA+E;gBAC/E,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;oBAC/C,6CAAgC;gBAClC,CAAC;gBACD,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;oBAC/B,iFAAkD;gBACpD,CAAC;gBACD,OAAO,IAAI,CAAC;YAEd,KAAK,sBAAc,CAAC,UAAU;gBAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC9B,uDAAqC;gBACvC,CAAC;gBACD,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js index 2a40caa1..18413996 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map index 73488f3e..cdf5ade6 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AACjB,+DAGkC;AASlC,MAAM,uBAAuB,GAAG;IAC9B,sBAAc,CAAC,uBAAuB;IACtC,s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 No newline at end of file +{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AACjB,+DAGkC;AASlC,MAAM,uBAAuB,GAAG;IAC9B,sBAAc,CAAC,uBAAuB;IACtC,sBAAc,CAAC,mBAAmB;IAClC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,gBAAgB;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yGAAyG;YAC3G,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,mFAAmF;qBACtF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACrC,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAClD,MAAM,eAAe,GAAiB,EAAE,CAAC;QAEzC,SAAS,8BAA8B,CACrC,IAAiC,EACjC,MAAe,EACf,UAAsB;YAEtB,IAAI,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC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f,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;YAC1B,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAE1D,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,mBAAmB,CAAC,KAAK,CAAC;QACnC,CAAC;QAED,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACtC,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js index d693d337..6a877fe7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const util_1 = require("../util"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map index f65b9b1e..19af9a5d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sDAAwC;AAExC,kCAMiB;AAMjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6EAA6E;YAC/E,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,mBAAmB,EACjB,gFAAgF;SACnF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,WAAW,CAAC,IAAa;YAChC,OAAO,OAAO;iBACX,cAAc,CAAC,IAAI,CAAC;iBACpB,KAAK,CAAC,SAAS,CAAC,EAAE,CACjB,OAAO;iBACJ,qBAAqB,CAAC,SAAS,CAAC;iBAChC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAChE,CAAC;QACN,CAAC;QAED,OAAO;YACL,0CAA0C,CACxC,MAAgD;gBAEhD,IAAI,CAAC,IAAA,kCAA2B,EAAC,MAAM,EAAE,OAAO,EAAE,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;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sDAAwC;AAExC,kCAMiB;AAMjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6EAA6E;YAC/E,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,mBAAmB,EACjB,gFAAgF;SACnF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,WAAW,CAAC,IAAa;YAChC,OAAO,OAAO;iBACX,cAAc,CAAC,IAAI,CAAC;iBACpB,KAAK,CAAC,SAAS,CAAC,EAAE,CACjB,OAAO;iBACJ,qBAAqB,CAAC,SAAS,CAAC;iBAChC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAChE,CAAC;QACN,CAAC;QAED,OAAO;YACL,0CAA0C,CACxC,MAAgD;gBAEhD,IAAI,CAAC,IAAA,kCAA2B,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC;oBAC5D,OAAO;gBACT,CAAC;gBAED,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;gBAE9C,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAA,sBAAe,EAAC,SAAS,CAAC,EAAE,CAAC;oBACtE,OAAO;gBACT,CAAC;gBAED,yCAAyC;gBACzC,MAAM,aAAa,GAAG,IAAA,mCAA4B,EAChD,QAAQ,EACR,MAAM,CAAC,MAAM,CACd,CAAC;gBAEF,+CAA+C;gBAC/C,IAAI,WAAW,CAAC,aAAa,CAAC,EAAE,CAAC;oBAC/B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,SAAS;wBACf,SAAS,EAAE,qBAAqB;wBAChC,GAAG,EAAE,KAAK,CAAC,EAAE;4BACX,MAAM,KAAK,GAAG;gCACZ,KAAK,CAAC,WAAW,CAAC;oCAChB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oCAClB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;iCAC9B,CAAC;gCACF,KAAK,CAAC,WAAW,CAAC;oCAChB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;oCAC7B,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;iCACnB,CAAC;6BACH,CAAC;4BAEF,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;gCACjC,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,eAAe,CACnB,MAAM,EACN,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CAC5D,CACF,CAAC;4BACJ,CAAC;4BAED,OAAO,KAAK,CAAC;wBACf,CAAC;qBACF,CAAC,CAAC;oBAEH,OAAO;gBACT,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js index 8e025989..f7d97ad9 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map index a26df812..798f3e4a 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,iDAAS,CAAA;IACT,m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,uBAAgB,EAAC;gCACpB,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,UAAU,EAAE,OAAO,CAAC,UAAU;gCAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,GAAG,YAAY,SAAS,UAAU,GAAG;6BACxC,CAAC;yBACH,CAAC,CAAC;oBAEL,KAAK,YAAY,CAAC,MAAM;wBACtB,OAAO,OAAO,CAAC,MAAM,CAAC;4BACpB,IAAI,EAAE,UAAU,CAAC,QAAQ;4BACzB,SAAS,EAAE,2BAA2B;4BACtC,GAAG,EAAE,IAAA,uBAAgB,EAAC;gCACpB,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,UAAU,EAAE,OAAO,CAAC,UAAU;gCAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,UAAU,YAAY,UAAU,UAAU,GAAG;6BAChD,CAAC;yBACH,CAAC,CAAC;gBACP,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,iDAAS,CAAA;IACT,mDAAe,CAAA;IACf,mDAAe,CAAA;IACf,+CAAsB,CAAA;AACxB,CAAC,EALI,YAAY,KAAZ,YAAY,QAKhB;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yEAAyE;YAC3E,WAAW,EAAE,WAAW;YAC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YAAY,CAAC,MAAM;wBACtB,OAAO,OAAO,CAAC,MAAM,CAAC;4BACpB,IAAI,EAAE,UAAU,CAAC,QAAQ;4BACzB,SAAS,EAAE,2BAA2B;4BACtC,GAAG,EAAE,IAAA,uBAAgB,EAAC;gCACpB,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,UAAU,EAAE,OAAO,CAAC,UAAU;gCAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,UAAU,YAAY,UAAU,UAAU,GAAG;6BAChD,CAAC;yBACH,CAAC,CAAC;gBACP,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js index e2fb4e8a..b0af2757 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map index fb47f7cb..0aaebb73 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map @@ -1 +1 @@ -{"version":3,"file":"prefer-return-this-type.js","sourceRoot":"","sources":["../../src/rules/prefer-return-this-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAgF;AAUhF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,WAAW,EAAE,0BAA0B;SACxC;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,gBAAgB,CACvB,IAAY,EACZ,QAA2B;YAE3B,IACE,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAChD,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACpD,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI,EAC/B,CAAC;gBACD,O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J,SAAS,EAAE,aAAa;oBACxB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;iBAC9C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,8BAA8B,CAAC,IAA+B;gBAC5D,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;YACD,gCAAgC,CAC9B,IAAiC;gBAEjC,IACE,CAAC,CACC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB;oBACtD,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB,CAC5D,EACD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"prefer-return-this-type.js","sourceRoot":"","sources":["../../src/rules/prefer-return-this-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAgF;AAUhF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,WAAW,EAAE,0BAA0B;SACxC;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,C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CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;gBAC3C,OAAO;YACT,CAAC;YAED,MAAM,IAAI,GAAG,gBAAgB,CAC3B,SAAS,EACT,YAAY,CAAC,UAAU,CAAC,cAAc,CACvC,CAAC;YACF,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO;YACT,CAAC;YAED,IAAI,uBAAuB,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE,CAAC;gBACzD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,aAAa;oBACxB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;iBAC9C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,8BAA8B,CAAC,IAA+B;gBAC5D,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;YACD,gCAAgC,CAC9B,IAAiC;gBAEjC,IACE,CAAC,CACC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB;oBACtD,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB,CAC5D,EACD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js index 58f16d26..16dd3daf 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map index 506baae8..c0bf2c23 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map @@ -1 +1 @@ -{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,+CAAiC;AAEjC,kCAQiB;AAcjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EAAE,+CAA+C;SAC9D;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Y,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,+CAAiC;AAEjC,kCAQiB;AAcjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EAAE,+CAA+C;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yDAAyD;qBAC5D;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,qEAAqE;wBACvE,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,mCAAmC;qBACjD;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,oDAAoD;qBAClE;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,8CAA8C;qBAC5D;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,0DAA0D;qBAC7D;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,QAAQ,EAAE,IAAI;YACd,mBAAmB,EAAE,EAAE;YAC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wCAAwC,CACtC,IAAsC;oBAEtC,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,GAAG,CAAC,yBAAyB,IAAI;gBAC/B,oCAAoC,CAClC,IAAkC;oBAElC,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,mCAAmC,CACjC,IAAiC;gBAEjC,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAC7B,CAAC;oBACD,IAAI,uBAAuB,EAAE,CAAC;wBAC5B,YAAY,CAAC,IAAI,CAAC,CAAC;oBACrB,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,wBAAwB,EAAE,CAAC;oBAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js index 7321a56f..a87dc517 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map index 166b6b29..0d75d4be 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map @@ -1 +1 @@ -{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AAExC,kCASiB;AAcjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sFAAsF;YACxF,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,YAAY,EAAE,qCAAqC;YACnD,WAAW,EAAE,iBAAiB;SAC/B;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,IAAI,SAAS,GAAqB,IAAI,CAAC;QAEvC;;WAEG;QACH,SAAS,aAAa,CAAC,IAAkB;YACvC,SAAS,GAAG;gBACV,QAA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AAO;gBACT,CAAC;gBAED,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAChE,IAAI,UAAU,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC7C,cAAc,EAAE,CAAC;gBACnB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,eAAe,CAAC,IAAkB;IACzC,OAAO,CACL,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAChD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CAAC,IAAa;IAClD,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAClB,aAAuC,EACvC,QAAgB;IAEhB,OAAO,CACL,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACzD,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CACzC,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AAExC,kCASiB;AAcjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sFAAsF;YACxF,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,I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,CAAC,IAAI,KAAK,QAAQ,CACzC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js index 763d5697..d4f996fe 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map index d4be0c1d..1c62ac2e 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map @@ -1 +1 @@ -{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-pl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us-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AAejB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE;oBACN;wBACE,QAAQ,EAAE,KAAK;wBACf,YAAY,EAAE,KAAK;wBACnB,YAAY,EAAE,KAAK;wBACnB,oBAAoB,EAAE,KAAK;wBAC3B,WAAW,EAAE,KAAK;qBACnB;iBACF;aACF;YACD,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,eAAe,EACb,mGAAmG;YACrG,OAAO,EACL,wGAAwG;YAC1G,UAAU,EACR,8FAA8F;SACjG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,sCAAsC;qBACpD;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,0CAA0C;qBACxD;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,kEAAkE;qBACrE;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,iGAAiG;qBACpG;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,yCAAyC;qBACvD;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,oDAAoD;qBAClE;iBACF;aACF;SACF;KACF;IACD,cAAc,EA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CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js index 03a2bb42..51d1c249 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map index 5a608841..08f48787 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map @@ -1 +1 @@ -{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCASiB;AACjB,yEAAs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;IACN,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCASiB;AACjB,yEAAsE;AAkBtE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,eAAe,EAAE,iBAAiB;YAClC,WAAW,EAAE;gBACX,MAAM,EAAE,CAAC,iCAAiC,CAAC;aAC5C;YACD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,mHAAmH;QACnH,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,sBAAsB,EACpB,8DAA8D;YAChE,gCAAgC,EAC9B,oFAAoF;YACtF,eAAe,EACb,kEAAkE;YACpE,oBAAoB,EAClB,2DAA2D;YAC7D,8BAA8B,EAC5B,iFAAiF;SACpF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iDAAiD;wBAC9D,IAAI,EAAE,CAAC,QAAQ,CAAC;qBACjB;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,6MAA6M;wBAC/M,IAAI,EAAE,CAAC,iCAAiC,CAAC;qBAC1C;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,6KAA6K;wBAC/K,IAAI,EAAE,CAAC,cAAc,CAAC;qBACvB;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2CAA2C;wBACxD,IAAI,EAAE,CAAC,OAAO,CAAC;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,CAA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C9B,CAAC;QACJ,KAAK,cAAc;YACjB,OAAO;gBACL,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,UAAU;aAC5B,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,oBAAoB,EAAE,UAAU;gBAChC,eAAe,EAAE,UAAU;aAC5B,CAAC;IACN,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js index 130a32de..cd53a7a2 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js @@ -85,7 +85,7 @@ function caseSensitiveSort(a, b) { if (a < b) { return -1; } - else if (a > b) { + if (a > b) { return 1; } return 0; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map index 549ad185..c250eb1d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map @@ -1 +1 @@ -{"version":3,"file":"sort-type-constituents.js","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAgF;AAEhF,IAAK,KAaJ;AAbD,WAAK,KAAK;IACR,oCAA2B,CAAA;IAC3B,8BAAqB,CAAA;IACrB,0BAAiB,CAAA;IACjB,sCAA6B,CAAA;IAC7B,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,wBAAe,CAAA;IACf,0BAAiB,CAAA;IACjB,8BAAqB,CAAA;IACrB,wBAAe,CAAA;IACf,wBAAe,CAAA;AACjB,CAAC,EAbI,KAAK,KAAL,KAAK,QAaT;AAED,SAA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,CAAC"} \ No newline at end of file +{"version":3,"file":"sort-type-constituents.js","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAgF;AAEhF,IAAK,KAaJ;AAbD,WAAK,KAAK;IACR,oCAA2B,CAAA;IAC3B,8BAAqB,CAAA;IACrB,0BAAiB,CAAA;IACjB,sCAA6B,CAAA;IAC7B,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,wBAAe,CAAA;IACf,0BAAiB,CAAA;IACjB,8BAAqB,CAAA;IACrB,wBAAe,CAAA;IACf,wBAAe,CAAA;AACjB,CAAC,EAbI,KAAK,KAAL,KAAK,QAaT;AAED,SAAS,QAAQ,CAAC,IAAuB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,iBAAiB;YACnC,OAAO,KAAK,CAAC,WAAW,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB,CAAC;QACtC,KAAK,sBAAc,CAAC,cAAc;YAChC,OAAO,KAAK,CAAC,QAAQ,CAAC;QAExB,KAAK,sBAAc,CAAC,YAAY;YAC9B,OAAO,KAAK,CAAC,MAAM,CAAC;QAEtB,KAAK,sBAAc,CAAC,kBAAkB;YACpC,OAAO,KAAK,CAAC,YAAY,CAAC;QAE5B,KAAK,sBAAc,CAAC,YAAY,CAAC;QACjC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,K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AAC;gCACE,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,YAAY;wCACvB,GAAG;qCACJ;iCACF;6BACF;4BACH,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,GAAG,CAAC,kBAAkB,IAAI;gBACxB,kBAAkB,CAAC,IAAI;oBACrB,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,GAAG,CAAC,WAAW,IAAI;gBACjB,WAAW,CAAC,IAAI;oBACd,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js index 0e826b71..850169a3 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map index 364edb7e..77d9e049 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map @@ -1 +1 @@ -{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AACjB,2EAAgF;AAyChF,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,uCAAuC;gBACvC,kDAAkD;YACpD,6BAA6B,EAC3B,oDAAoD;gBACpD,4CAA4C;YAC9C,0BAA0B,EACxB,iDAAiD;gBACjD,sDAAsD;YACxD,4BAA4B,EAC1B,mDAAmD;gBACnD,sDAAsD;YACxD,4BAA4B,EAC1B,mDAAmD;gBACnD,qCAAqC;YACvC,4BAA4B,EAC1B,mDAAmD;gBACnD,mDAAmD;YACrD,qBAAqB,EACnB,2CAA2C;gBAC3C,gCAAgC;YAClC,oBAAoB,EAClB,0CAA0C;gBAC1C,yCAAyC;YAC3C,oBAAoB,EAClB,0CAA0C;gBAC1C,+BAA+B;YACjC,mBAAmB,EACjB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AAC,CAAC,EAAE,CAAC;gBACxE,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,YAAY,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,2BAA2B,CAClC,IAAmB;IAEnB,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC/E,CAAC;AAED,SAAS,uBAAuB,CAC9B,IAAmB,EACnB,WAA2B,EAC3B,QAA2C;IAE3C,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,UAAU,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACvE,OAAO,IAAA,yCAAkC,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,IAAa;IACrC,OAAO,CACL,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAC1B,OAAO,CAAC,aAAa,CACnB,SAAS,EACT,EAAE,CAAC,SAAS,CAAC,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CACnD,CACF,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK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,QAAQ,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,UAAU,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACvE,OAAO,IAAA,yCAAkC,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,IAAa;IACrC,OAAO,CACL,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAC1B,OAAO,CAAC,aAAa,CACnB,SAAS,EACT,EAAE,CAAC,SAAS,CAAC,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CACnD,CACF,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js index 1fcf2025..79e7ee10 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const tsutils = __importStar(require("ts-api-utils")); const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map index b2907a87..0ec750ce 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map @@ -1 +1 @@ -{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCASiB;AAwCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EAAE,iCAAiC;YAClD,oBAAoB,EAClB,yEAAyE;YAC3E,qBAAqB,EACnB,kEAAkE;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,mCAAmC,EAAE;wBACnC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,8EAA8E;qBAC5F;oBACD,kCAAkC,EAAE;wBAClC,IAAI,EAAE,SAAS;wBACf,W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AS,6BAA6B,CAAC,IAAa;IAClD,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,IAAI,CAAC,EAAE,CACX,OAAO;SACJ,qBAAqB,CAAC,IAAI,CAAC;SAC3B,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CACrD,CAAC;AACN,CAAC"} \ No newline at end of file +{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCASiB;AAwCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EAAE,iCAAiC;YAClD,oBAAoB,EAClB,yEAAyE;YAC3E,qBAAqB,EACnB,kEAAkE;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,mCAAmC,EAAE;wBACnC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,8EAA8E;qBAC5F;oBACD,kCAAkC,EAAE;wBAClC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,gHAAgH;qBAC9H;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,wEAAwE;qBACtF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,mCAAmC,EAAE,IAAI;YACzC,kCAAkC,EAAE,KAAK;YACzC,yBAAyB,EAAE,KAAK;SACjC;KACF;IACD,MAA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N,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js index ad306337..ec08126d 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map index ff3f6080..4c530b03 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map @@ -1 +1 @@ -{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+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AgB;YAClC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE5E,KAAK,sBAAc,CAAC,oBAAoB;YACtC,OAAO,CACL,MAAM,CAAC,QAAQ,KAAK,GAAG;gBACvB,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;oBACnB,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,KAAK;wBACzC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBACpD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC,CAAC,CAChE,CAAC;QAEJ,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,mBAAmB,CAAC;QACxC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBACrD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AAcjB;;;;;;;;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K,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE5E,KAAK,sBAAc,CAAC,oBAAoB;YACtC,OAAO,CACL,MAAM,CAAC,QAAQ,KAAK,GAAG;gBACvB,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;oBACnB,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,KAAK;wBACzC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBACpD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC,CAAC,CAChE,CAAC;QAEJ,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,mBAAmB,CAAC;QACxC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBACrD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js index 161d4ab3..c9b78e41 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@typescript-eslint/utils"); const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map index 0de16f0e..a3671844 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map @@ -1 +1 @@ -{"version":3,"file":"use-unknown-in-catch-callback-variable.js","sourceRoot":"","sources":["../../src/rules/use-unknown-in-catch-callback-variable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAWjB,MAAM,qBAAqB,GACzB,6EAA6E,CAAC;AAEhF,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,wCAAwC;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CAAC,CAAC;oBAC/C,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;wBACvB,IAAI;wBACJ,GAAG,SAAS;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"use-unknown-in-catch-callback-variable.js","sourceRoot":"","sources":["../../src/rules/use-unknown-in-catch-callback-variable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAWjB,MAAM,qBAAqB,GACzB,6EAA6E,CAAC;AAEhF,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sEAAsE;YACxE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,sCAAsC,EACpC,wFAAwF;YAC1F,kCAAkC,EAChC,iFAAiF;YACnF,UAAU,EAAE,qBAAqB;YACjC,mCAAmC,EAAE,GAAG,qBAAqB,wCAAwC;YACrG,oCAAoC,EAAE,GACpC,qBACF,wEAAwE;YACxE,iCAAiC,EAC/B,mDAAmD;YACrD,6BAA6B,EAC3B,iDAAiD;SACpD;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QACtE,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QAEzC,SAAS,sBAAsB,CAAC,IAAa;YAC3C,KAAK,MAAM,SAAS,IAAI,OAAO,CAA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,IAAI,KAAK,sBAAc,CAAC,aAAa,CAAC,EACrE,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,IACE,CAAC,OAAO,CAAC,cAAc,CACrB,OAAO,EACP,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,EACjC,OAAO,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACpE,EACD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,iGAAiG;gBACjG,MAAM,IAAI,GAAG,WAAW,CAAC,eAAe,CAGvC,CAAC;gBACF,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC7B,mEAAmE;oBACnE,yDAAyD;oBACzD,MAAM,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC/C,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;wBACvB,IAAI;wBACJ,GAAG,SAAS;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js index 68a2d905..d598a39f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.findTruthinessAssertedArgument = findTruthinessAssertedArgument; exports.findTypeGuardAssertedArgument = findTypeGuardAssertedArgument; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map index 09abc57a..7924c859 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"assertionFunctionUtils.js","sourceRoot":"","sources":["../../src/util/assertionFunctionUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wEAyCC;AAMD,sEA4DC;AAlHD,oDAA0D;AAC1D,+CAAiC;AAEjC;;;GAGG;AACH,SAAgB,8BAA8B,CAC5C,QAA2C,EAC3C,IAA6B;IAE7B,4EAA4E;IAC5E,2EAA2E;IAC3E,qEAAqE;IACrE,MAAM,kBAAkB,GAA0B,EAAE,CAAC;IACrD,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa,EAAE,CAAC;YACnD,MAAM;QACR,CAAC;QACD,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,gBAAgB;IAChB,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,SAAS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AED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE3D,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,iBAAiB,GAAG,OAAO,CAAC,2BAA2B,CAAC,aAAa,CAAC,CAAC;IAE7E,IAAI,iBAAiB,IAAI,IAAI,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,iBAAiB,CAAC;IACzD,IACE,CAAC,CACC,CAAC,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,iBAAiB;QAC9C,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC;QAC3C,IAAI,IAAI,IAAI,CACb,EACD,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,cAAc,IAAI,kBAAkB,CAAC,MAAM,EAAE,CAAC;QAChD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,kBAAkB,CAAC,cAAc,CAAC;QAC5C,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,iBAAiB;QACxD,IAAI;KACL,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"assertionFunctionUtils.js","sourceRoot":"","sources":["../../src/util/assertionFunctionUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wEAyCC;AAMD,sEA4DC;AAlHD,oDAA0D;AAC1D,+CAAiC;AAEjC;;;GAGG;AACH,SAAgB,8BAA8B,CAC5C,QAA2C,EAC3C,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,QAAQ,EAAE,kBAAkB,CAAC,cAAc,CAAC;QAC5C,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,iBAAiB;QACxD,IAAI;KACL,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js index 1decfe60..444addb7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map index 8a74bea7..1c052ca8 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map @@ -1 +1 @@ -{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0B,CAAC,CAAC;YAC7C,KAAK,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;YAC7B,KAAK,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;YACzB,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;YAC/B,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;YAC/B,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;YACjC,KAAK,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC;YACnC,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;YAC9B,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;YACjC,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC;YACpC,KAAK,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js index c62756d9..f285af4c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.isArrayMethodCallWithPredicate = isArrayMethodCallWithPredicate; const type_utils_1 = require("@typescript-eslint/type-utils"); diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map index 3c3902c3..045c694c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map @@ -1 +1 @@ -{"version":3,"file":"isArrayMethodCallWithPredicate.js","sourceRoot":"","sources":["../../src/util/isArrayMethodCallWithPredicate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,wEAqBC;AArCD,8DAA6E;AAC7E,oDAA0D;AAC1D,sDAAwC;AAExC,iCAAoD;AAEpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAU;IACjD,OAAO;IACP,QAAQ;IACR,MAAM;IACN,WAAW;IACX,UAAU;IACV,eAAe;IACf,MAAM;CACP,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,OAAuC,EACvC,QAA2C,EAC3C,IAA6B;IAE7B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,yCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;SACpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"} \ No newline at end of file +{"version":3,"file":"isArrayMethodCallWithPredicate.js","sourceRoot":"","sources":["../../src/util/isArrayMethodCallWithPredicate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,wEAqBC;AArCD,8DAA6E;AAC7E,oDAA0D;AAC1D,sDAAwC;AAExC,iCAAoD;AAEpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAU;IACjD,OAAO;IACP,QAAQ;IACR,MAAM;IACN,WAAW;IACX,UAAU;IACV,eAAe;IACf,MAAM;CACP,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,OAAuC,EACvC,QAA2C,EAC3C,IAA6B;IAE7B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,yCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;SACpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js index aae9eb5a..66a7b0d7 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MemberNameType = exports.isStaticMemberAccessOfValue = void 0; exports.arrayGroupByToMap = arrayGroupByToMap; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map index 775c17c8..106752d5 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map @@ -1 +1 @@ -{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqUE,8CAAiB;AACjB,wCAAc;AAGd,0CAAe;AACf,sCAAa;AACb,wCAAc;AACd,oCAAY;AACZ,8DAAyB;AACzB,8CAAiB;AACjB,gEAA0B;AAC1B,4CAAgB;AAChB,4DAAwB;AACxB,gEAA0B;AAI1B,kEAA2B;AAC3B,wCAAc;AAjVhB,8DAAgE;AAChE,oDAA0D;AAC1D,+CAAiC;AAEjC,yCAA6D;AAE7D,MAAM,qBAAqB,GAAG;IAC5B,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,IAAI;IACjB,EAAE,CAAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX;;GAEG;AACH,SAAS,gBAAgB,CAAC,QAAgB;IACxC,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC7C,KAAK,MAAM,aAAa,IAAI,qBAAqB,EAAE,CAAC;QAClD,IAAI,aAAa,CAAC,QAAQ,C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,0BAAe,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CACzE,CAAC;AACJ,CAAC;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,SAAS,0BAA0B,CACjC,IAAiB,EACjB,EAAE,UAAU,EAAkC;IAE9C,MAAM,GAAG,GACP,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;IAC3E,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;IACrB,IACE,CAAC,IAAI,CAAC,QAAQ;QACd,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;YACjC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAC5C,CAAC;QACD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,IAAA,yBAAc,EAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACzB,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,2BAA2B,GAAG,CAClC,gBAA6B,EAC7B,OAAuC,EACvC,GAAG,MAA2B,EACrB,EAAE,CACV,MAA0C,CAAC,QAAQ,CAClD,0BAA0B,CAAC,gBAAgB,EAAE,OAAO,CAAC,CACtD,CAAC;AAiBF,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js index 2818bd78..719f147f 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Awaitable = void 0; exports.needsToBeAwaited = needsToBeAwaited; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map index 35d77944..9e8c72ac 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map +++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map @@ -1 +1 @@ -{"version":3,"file":"needsToBeAwaited.js","sourceRoot":"","sources":["../../src/util/needsToBeAwaited.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,4CA4BC;AAxCD,8DAGuC;AACvC,sDAAwC;AAExC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,2CAAK,CAAA;IACL,uCAAG,CAAA;AACL,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,SAAgB,gBAAgB,CAC9B,OAAuB,EACvB,IAAa,EACb,IAAa;IAEb,0EAA0E;IAC1E,0BAA0B;IAC1B,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;QACpD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C,2DAA2D;IAC3D,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,mDAAmD;IACnD,IAAI,IAAA,0BAAa,EAAC,eAAe,CAAC,IAAI,IAAA,8BAAiB,EAAC,eAAe,CAAC,EAAE,CAAC;QACzE,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,gDAAgD;IAChD,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,sCAAsC;IACtC,OAAO,SAAS,CAAC,KAAK,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"needsToBeAwaited.js","sourceRoot":"","sources":["../../src/util/needsToBeAwaited.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,4CA4BC;AAxCD,8DAGuC;AACvC,sDAAwC;AAExC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,2CAAK,CAAA;IACL,uCAAG,CAAA;AACL,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,SAAgB,gBAAgB,CAC9B,OAAuB,EACvB,IAAa,EACb,IAAa;IAEb,0EAA0E;IAC1E,0BAA0B;IAC1B,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;QACpD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C,2DAA2D;IAC3D,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,mDAAmD;IACnD,IAAI,IAAA,0BAAa,EAAC,eAAe,CAAC,IAAI,IAAA,8BAAiB,EAAC,eAAe,CAAC,EAAE,CAAC;QACzE,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,gDAAgD;IAChD,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,sCAAsC;IACtC,OAAO,SAAS,CAAC,KAAK,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx index d3238025..8c520c8c 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx @@ -43,7 +43,7 @@ const y: readonly string[] = ['a', 'b']; ### `"generic"` Always use `Array`, `ReadonlyArray`, or `Readonly>` for all array types. -`readonly T[]` will be modified to `ReadonlyArray` and `Readonly` will be modified to `Readonly`. +`readonly T[]` will be modified to `ReadonlyArray` and `Readonly` will be modified to `Readonly>`. diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx index 1da882c1..8097ca8b 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx +++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx @@ -34,6 +34,9 @@ value + ''; String({}); ({}).toString(); ({}).toLocaleString(); + +// Stringifying objects or instances in an array with the `Array.prototype.join`. +[{}, new MyClass()].join(''); ``` diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/README.md new file mode 100644 index 00000000..b730e9d8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/scope-manager` + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) + +👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts new file mode 100644 index 00000000..679109f2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts @@ -0,0 +1,4 @@ +declare function createIdGenerator(): () => number; +declare function resetIds(): void; +export { createIdGenerator, resetIds }; +//# sourceMappingURL=ID.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map new file mode 100644 index 00000000..2c9c0fd0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js new file mode 100644 index 00000000..de2f32af --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIdGenerator = createIdGenerator; +exports.resetIds = resetIds; +const ID_CACHE = new Map(); +let NEXT_KEY = 0; +function createIdGenerator() { + const key = (NEXT_KEY += 1); + ID_CACHE.set(key, 0); + return () => { + const current = ID_CACHE.get(key) ?? 0; + const next = current + 1; + ID_CACHE.set(key, next); + return next; + }; +} +function resetIds() { + ID_CACHE.clear(); +} +//# sourceMappingURL=ID.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map new file mode 100644 index 00000000..e880ddeb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;AAmBS,8CAAiB;AAAE,4BAAQ;AAnBpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;QAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts new file mode 100644 index 00000000..f745bfb7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts @@ -0,0 +1,72 @@ +import type { SourceType, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from './scope'; +import type { Variable } from './variable'; +import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope'; +import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope'; +import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope'; +interface ScopeManagerOptions { + globalReturn?: boolean; + impliedStrict?: boolean; + sourceType?: SourceType; +} +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +declare class ScopeManager { + #private; + currentScope: Scope | null; + readonly declaredVariables: WeakMap; + /** + * The root scope + */ + globalScope: GlobalScope | null; + readonly nodeToScope: WeakMap; + /** + * All scopes + * @public + */ + readonly scopes: Scope[]; + constructor(options: ScopeManagerOptions); + isES6(): boolean; + isGlobalReturn(): boolean; + isImpliedStrict(): boolean; + isModule(): boolean; + isStrictModeSupported(): boolean; + get variables(): Variable[]; + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node: TSESTree.Node): Variable[]; + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node: TSESTree.Node, inner?: boolean): Scope | null; + nestBlockScope(node: BlockScope['block']): BlockScope; + nestCatchScope(node: CatchScope['block']): CatchScope; + nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope; + nestClassScope(node: ClassScope['block']): ClassScope; + nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope; + nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope; + nestForScope(node: ForScope['block']): ForScope; + nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope; + nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope; + nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope; + nestGlobalScope(node: GlobalScope['block']): GlobalScope; + nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope; + nestModuleScope(node: ModuleScope['block']): ModuleScope; + nestSwitchScope(node: SwitchScope['block']): SwitchScope; + nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope; + nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope; + nestTypeScope(node: TypeScope['block']): TypeScope; + nestWithScope(node: WithScope['block']): WithScope; + protected nestScope(scope: T): T; +} +export { ScopeManager }; +//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map new file mode 100644 index 00000000..a9493652 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map @@ -0,0 +1 @@ +{"version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,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa;IAK9D,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAKlD,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAOzD,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;CASlD;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js new file mode 100644 index 00000000..3cf4eab9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = void 0; +const assert_1 = require("./assert"); +const scope_1 = require("./scope"); +const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope"); +const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope"); +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +class ScopeManager { + #options; + currentScope; + declaredVariables; + /** + * The root scope + */ + globalScope; + nodeToScope; + /** + * All scopes + * @public + */ + scopes; + constructor(options) { + this.scopes = []; + this.globalScope = null; + this.nodeToScope = new WeakMap(); + this.currentScope = null; + this.#options = options; + this.declaredVariables = new WeakMap(); + } + isES6() { + return true; + } + isGlobalReturn() { + return this.#options.globalReturn === true; + } + isImpliedStrict() { + return this.#options.impliedStrict === true; + } + isModule() { + return this.#options.sourceType === 'module'; + } + isStrictModeSupported() { + return true; + } + get variables() { + const variables = new Set(); + function recurse(scope) { + scope.variables.forEach(v => variables.add(v)); + scope.childScopes.forEach(recurse); + } + this.scopes.forEach(recurse); + return [...variables].sort((a, b) => a.$id - b.$id); + } + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node) { + return this.declaredVariables.get(node) ?? []; + } + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node, inner = false) { + function predicate(testScope) { + if (testScope.type === scope_1.ScopeType.function && + testScope.functionExpressionScope) { + return false; + } + return true; + } + const scopes = this.nodeToScope.get(node); + if (!scopes || scopes.length === 0) { + return null; + } + // Heuristic selection from all scopes. + // If you would like to get all scopes, please use ScopeManager#acquireAll. + if (scopes.length === 1) { + return scopes[0]; + } + if (inner) { + for (let i = scopes.length - 1; i >= 0; --i) { + const scope = scopes[i]; + if (predicate(scope)) { + return scope; + } + } + return null; + } + return scopes.find(predicate) ?? null; + } + nestBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node)); + } + nestCatchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node)); + } + nestClassFieldInitializerScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node)); + } + nestClassScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node)); + } + nestClassStaticBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node)); + } + nestConditionalTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node)); + } + nestForScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ForScope(this, this.currentScope, node)); + } + nestFunctionExpressionNameScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node)); + } + nestFunctionScope(node, isMethodDefinition) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition)); + } + nestFunctionTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node)); + } + nestGlobalScope(node) { + return this.nestScope(new scope_1.GlobalScope(this, node)); + } + nestMappedTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node)); + } + nestModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node)); + } + nestSwitchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node)); + } + nestTSEnumScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node)); + } + nestTSModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node)); + } + nestTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node)); + } + nestWithScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.WithScope(this, this.currentScope, node)); + } + nestScope(scope) { + if (scope instanceof scope_1.GlobalScope) { + (0, assert_1.assert)(this.currentScope == null); + this.globalScope = scope; + } + this.currentScope = scope; + return scope; + } +} +exports.ScopeManager = ScopeManager; +//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map new file mode 100644 index 00000000..ab9bb2f9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":";;;AAKA,qCAAkC;AAClC,mCAkBiB;AACjB,mFAAgF;AAChF,yEAAsE;AAQtE;;GAEG;AACH,MAAM,YAAY;IACP,QAAQ,CAAsB;IAEhC,YAAY,CAAe;IAElB,iBAAiB,CAAqC;IAEtE;;OAEG;IACI,WAAW,CAAqB;IAEvB,WAAW,CAAkC;IAE7D;;;OAGG;IACa,MAAM,CAAU;IAEhC,YAAY,OAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;IACzC,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,cAAc;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,IAAI,CAAC;IAC7C,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,KAAK,IAAI,CAAC;IAC9C,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC;IAC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AAC,IAAI,qBAAa,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IAEM,aAAa,CAAC,IAAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,aAAa,CAAC,IAAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAKS,SAAS,CAAC,KAAY;QAC9B,IAAI,KAAK,YAAY,mBAAW,EAAE,CAAC;YACjC,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts new file mode 100644 index 00000000..3cbb7805 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts @@ -0,0 +1,55 @@ +import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types'; +import type { ReferencerOptions } from './referencer'; +import { ScopeManager } from './ScopeManager'; +interface AnalyzeOptions { + /** + * Known visitor keys. + */ + childVisitorKeys?: ReferencerOptions['childVisitorKeys']; + /** + * Whether the whole script is executed under node.js environment. + * When enabled, the scope manager adds a function scope immediately following the global scope. + * Defaults to `false`. + */ + globalReturn?: boolean; + /** + * Implied strict mode. + * Defaults to `false`. + */ + impliedStrict?: boolean; + /** + * The identifier that's used for JSX Element creation (after transpilation). + * This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement"). + * Defaults to `"React"`. + */ + jsxPragma?: string | null; + /** + * The identifier that's used for JSX fragment elements (after transpilation). + * If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment). + * This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment"). + * Defaults to `null`. + */ + jsxFragmentName?: string | null; + /** + * The lib used by the project. + * This automatically defines a type variable for any types provided by the configured TS libs. + * Defaults to ['esnext']. + * + * https://www.typescriptlang.org/tsconfig#lib + */ + lib?: Lib[]; + /** + * The source type of the script. + */ + sourceType?: SourceType; + /** + * @deprecated This option never did what it was intended for and will be removed in a future major release. + */ + emitDecoratorMetadata?: boolean; +} +/** + * Takes an AST and returns the analyzed scopes. + */ +declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager; +export { analyze, type AnalyzeOptions }; +//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map new file mode 100644 index 00000000..e4848bf5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA2Bd;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js new file mode 100644 index 00000000..c6edf6b8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.analyze = analyze; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +const referencer_1 = require("./referencer"); +const ScopeManager_1 = require("./ScopeManager"); +const DEFAULT_OPTIONS = { + childVisitorKeys: visitor_keys_1.visitorKeys, + emitDecoratorMetadata: false, + globalReturn: false, + impliedStrict: false, + jsxFragmentName: null, + jsxPragma: 'React', + lib: ['es2018'], + sourceType: 'script', +}; +/** + * Takes an AST and returns the analyzed scopes. + */ +function analyze(tree, providedOptions) { + const options = { + childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys, + emitDecoratorMetadata: false, + globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn, + impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict, + jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName, + jsxPragma: providedOptions?.jsxPragma === undefined + ? DEFAULT_OPTIONS.jsxPragma + : providedOptions.jsxPragma, + lib: providedOptions?.lib ?? ['esnext'], + sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType, + }; + // ensure the option is lower cased + options.lib = options.lib.map(l => l.toLowerCase()); + const scopeManager = new ScopeManager_1.ScopeManager(options); + const referencer = new referencer_1.Referencer(options, scopeManager); + referencer.visit(tree); + return scopeManager; +} +//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map new file mode 100644 index 00000000..c51a9df8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;AAkHS,0BAAO;AAhHhB,kEAA8D;AAI9D,6CAA0C;AAC1C,iDAA8C;AA6D9C,MAAM,eAAe,GAA6B;IAChD,gBAAgB,EAAE,0BAAW;IAC7B,qBAAqB,EAAE,KAAK;IAC5B,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,OAAO;IAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF;;GAEG;AACH,SAAS,OAAO,CACd,IAAmB,EACnB,eAAgC;IAEhC,MAAM,OAAO,GAA6B;QACxC,gBAAgB,EACd,eAAe,EAAE,gBAAgB,IAAI,eAAe,CAAC,gBAAgB;QACvE,qBAAqB,EAAE,KAAK;QAC5B,YAAY,EAAE,eAAe,EAAE,YAAY,IAAI,eAAe,CAAC,YAAY;QAC3E,aAAa,EACX,eAAe,EAAE,aAAa,IAAI,eAAe,CAAC,aAAa;QACjE,eAAe,EACb,eAAe,EAAE,eAAe,IAAI,eAAe,CAAC,eAAe;QACrE,SAAS,EACP,eAAe,EAAE,SAAS,KAAK,SAAS;YACtC,CAAC,CAAC,eAAe,CAAC,SAAS;YAC3B,CAAC,CAAC,eAAe,CAAC,SAAS;QAC/B,GAAG,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QACvC,UAAU,EAAE,eAAe,EAAE,UAAU,IAAI,eAAe,CAAC,UAAU;KACtE,CAAC;IAEF,mCAAmC;IACnC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAS,CAAC,CAAC;IAE3D,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEzD,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts new file mode 100644 index 00000000..bd40c9e2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts @@ -0,0 +1,3 @@ +declare function assert(value: unknown, message?: string): asserts value; +export { assert }; +//# sourceMappingURL=assert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map new file mode 100644 index 00000000..72f278dd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js new file mode 100644 index 00000000..a6dd9463 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.assert = assert; +// the base assert module doesn't use ts assertion syntax +function assert(value, message) { + if (value == null) { + throw new Error(message); + } +} +//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map new file mode 100644 index 00000000..6ea63863 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;AAOS,wBAAM;AAPf,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts new file mode 100644 index 00000000..7fde46bd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class CatchClauseDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']); +} +export { CatchClauseDefinition }; +//# sourceMappingURL=CatchClauseDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map new file mode 100644 index 00000000..41af006e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js new file mode 100644 index 00000000..f295da21 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchClauseDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.CatchClause, name, node, null); + } +} +exports.CatchClauseDefinition = CatchClauseDefinition; +//# sourceMappingURL=CatchClauseDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map new file mode 100644 index 00000000..e86f2712 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts new file mode 100644 index 00000000..507ba646 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ClassNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']); +} +export { ClassNameDefinition }; +//# sourceMappingURL=ClassNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map new file mode 100644 index 00000000..f90e30b4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;CAGzE;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js new file mode 100644 index 00000000..32e41b81 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ClassNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ClassName, name, node, null); + } +} +exports.ClassNameDefinition = ClassNameDefinition; +//# sourceMappingURL=ClassNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map new file mode 100644 index 00000000..75f3c2e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts new file mode 100644 index 00000000..41329f32 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts @@ -0,0 +1,14 @@ +import type { CatchClauseDefinition } from './CatchClauseDefinition'; +import type { ClassNameDefinition } from './ClassNameDefinition'; +import type { FunctionNameDefinition } from './FunctionNameDefinition'; +import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition'; +import type { ImportBindingDefinition } from './ImportBindingDefinition'; +import type { ParameterDefinition } from './ParameterDefinition'; +import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition'; +import type { TSEnumNameDefinition } from './TSEnumNameDefinition'; +import type { TSModuleNameDefinition } from './TSModuleNameDefinition'; +import type { TypeDefinition } from './TypeDefinition'; +import type { VariableDefinition } from './VariableDefinition'; +type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition; +export type { Definition }; +//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map new file mode 100644 index 00000000..98d0799a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js new file mode 100644 index 00000000..0d4aab95 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map new file mode 100644 index 00000000..be4a7fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts new file mode 100644 index 00000000..962ffed4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts @@ -0,0 +1,35 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { DefinitionType } from './DefinitionType'; +declare abstract class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + readonly type: Type; + /** + * The `Identifier` node of this definition + * @public + */ + readonly name: Name; + /** + * The enclosing node of the name. + * @public + */ + readonly node: Node; + /** + * the enclosing statement node of the identifier. + * @public + */ + readonly parent: Parent; + constructor(type: Type, name: Name, node: Node, parent: Parent); + /** + * `true` if the variable is valid in a type context, false otherwise + */ + abstract readonly isTypeDefinition: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + abstract readonly isVariableDefinition: boolean; +} +export { DefinitionBase }; +//# sourceMappingURL=DefinitionBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map new file mode 100644 index 00000000..ef27cc62 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,uBAAe,cAAc,CAC3B,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js new file mode 100644 index 00000000..41c74847 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + type; + /** + * The `Identifier` node of this definition + * @public + */ + name; + /** + * The enclosing node of the name. + * @public + */ + node; + /** + * the enclosing statement node of the identifier. + * @public + */ + parent; + constructor(type, name, node, parent) { + this.type = type; + this.name = name; + this.node = node; + this.parent = parent; + } +} +exports.DefinitionBase = DefinitionBase; +//# sourceMappingURL=DefinitionBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map new file mode 100644 index 00000000..9a620a89 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAIA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAM3B;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1B,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,MAAM,CAAS;IAE/B,YAAY,IAAU,EAAE,IAAU,EAAE,IAAU,EAAE,MAAc;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts new file mode 100644 index 00000000..d86220d8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts @@ -0,0 +1,15 @@ +declare enum DefinitionType { + CatchClause = "CatchClause", + ClassName = "ClassName", + FunctionName = "FunctionName", + ImplicitGlobalVariable = "ImplicitGlobalVariable", + ImportBinding = "ImportBinding", + Parameter = "Parameter", + TSEnumName = "TSEnumName", + TSEnumMember = "TSEnumMemberName", + TSModuleName = "TSModuleName", + Type = "Type", + Variable = "Variable" +} +export { DefinitionType }; +//# sourceMappingURL=DefinitionType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map new file mode 100644 index 00000000..c3614a6b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js new file mode 100644 index 00000000..07cc9afa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionType = void 0; +var DefinitionType; +(function (DefinitionType) { + DefinitionType["CatchClause"] = "CatchClause"; + DefinitionType["ClassName"] = "ClassName"; + DefinitionType["FunctionName"] = "FunctionName"; + DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable"; + DefinitionType["ImportBinding"] = "ImportBinding"; + DefinitionType["Parameter"] = "Parameter"; + DefinitionType["TSEnumName"] = "TSEnumName"; + DefinitionType["TSEnumMember"] = "TSEnumMemberName"; + DefinitionType["TSModuleName"] = "TSModuleName"; + DefinitionType["Type"] = "Type"; + DefinitionType["Variable"] = "Variable"; +})(DefinitionType || (exports.DefinitionType = DefinitionType = {})); +//# sourceMappingURL=DefinitionType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map new file mode 100644 index 00000000..042fd302 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts new file mode 100644 index 00000000..3561fb29 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class FunctionNameDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']); +} +export { FunctionNameDefinition }; +//# sourceMappingURL=FunctionNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map new file mode 100644 index 00000000..7a955a55 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js new file mode 100644 index 00000000..1e14b4cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.FunctionName, name, node, null); + } +} +exports.FunctionNameDefinition = FunctionNameDefinition; +//# sourceMappingURL=FunctionNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map new file mode 100644 index 00000000..5a839e8f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts new file mode 100644 index 00000000..237f7727 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImplicitGlobalVariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']); +} +export { ImplicitGlobalVariableDefinition }; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map new file mode 100644 index 00000000..054541f7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAIjD;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js new file mode 100644 index 00000000..557074bc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitGlobalVariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null); + } +} +exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map new file mode 100644 index 00000000..17dd5256 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,4EAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts new file mode 100644 index 00000000..7a5c4563 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImportBindingDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration); + constructor(name: TSESTree.Identifier, node: Exclude, decl: TSESTree.ImportDeclaration); +} +export { ImportBindingDefinition }; +//# sourceMappingURL=ImportBindingDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map new file mode 100644 index 00000000..f53c0e3d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;CASnC;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js new file mode 100644 index 00000000..ca070594 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportBindingDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl); + } +} +exports.ImportBindingDefinition = ImportBindingDefinition; +//# sourceMappingURL=ImportBindingDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map new file mode 100644 index 00000000..c9c33078 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAe5C,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;CACF;AAEQ,0DAAuB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts new file mode 100644 index 00000000..2c9dea1c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ParameterDefinition extends DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + readonly rest: boolean; + constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean); +} +export { ParameterDefinition }; +//# sourceMappingURL=ParameterDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map new file mode 100644 index 00000000..01802e86 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;IAC5C,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAG5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;CAKhB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js new file mode 100644 index 00000000..f7bd0697 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParameterDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ParameterDefinition extends DefinitionBase_1.DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + isTypeDefinition = false; + isVariableDefinition = true; + rest; + constructor(name, node, rest) { + super(DefinitionType_1.DefinitionType.Parameter, name, node, null); + this.rest = rest; + } +} +exports.ParameterDefinition = ParameterDefinition; +//# sourceMappingURL=ParameterDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map new file mode 100644 index 00000000..1421a093 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.js","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAcjC;IACC;;OAEG;IACa,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAU;IAE9B,YACE,IAA0B,EAC1B,IAAiC,EACjC,IAAa;QAEb,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts new file mode 100644 index 00000000..da382ead --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumMemberDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']); +} +export { TSEnumMemberDefinition }; +//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map new file mode 100644 index 00000000..3ad9cf7b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAIvC;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js new file mode 100644 index 00000000..19ebd8db --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumMemberDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null); + } +} +exports.TSEnumMemberDefinition = TSEnumMemberDefinition; +//# sourceMappingURL=TSEnumMemberDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map new file mode 100644 index 00000000..5589e2a9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAkD,EAClD,IAAoC;QAEpC,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts new file mode 100644 index 00000000..499a8073 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']); +} +export { TSEnumNameDefinition }; +//# sourceMappingURL=TSEnumNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map new file mode 100644 index 00000000..1d43f9e0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,oBAAqB,SAAQ,cAAc,CAC/C,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;CAG1E;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js new file mode 100644 index 00000000..367ea231 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null); + } +} +exports.TSEnumNameDefinition = TSEnumNameDefinition; +//# sourceMappingURL=TSEnumNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map new file mode 100644 index 00000000..13089875 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,oBAAqB,SAAQ,+BAKlC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAkC;QACvE,KAAK,CAAC,+BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts new file mode 100644 index 00000000..5b52afa9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSModuleNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']); +} +export { TSModuleNameDefinition }; +//# sourceMappingURL=TSModuleNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map new file mode 100644 index 00000000..bd6d85ca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js new file mode 100644 index 00000000..fc3aca60 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null); + } +} +exports.TSModuleNameDefinition = TSModuleNameDefinition; +//# sourceMappingURL=TSModuleNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map new file mode 100644 index 00000000..c0e5e3f6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts new file mode 100644 index 00000000..91158b6e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TypeDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = false; + constructor(name: TSESTree.Identifier, node: TypeDefinition['node']); +} +export { TypeDefinition }; +//# sourceMappingURL=TypeDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map new file mode 100644 index 00000000..1c5f8173 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,cAAe,SAAQ,cAAc,CACzC,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;gBAEjC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;CAGpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js new file mode 100644 index 00000000..91f337cd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TypeDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = false; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.Type, name, node, null); + } +} +exports.TypeDefinition = TypeDefinition; +//# sourceMappingURL=TypeDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map new file mode 100644 index 00000000..7dc70ad7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.js","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,cAAe,SAAQ,+BAQ5B;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,KAAK,CAAC;IAE7C,YAAY,IAAyB,EAAE,IAA4B;QACjE,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts new file mode 100644 index 00000000..86260792 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class VariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration); +} +export { VariableDefinition }; +//# sourceMappingURL=VariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map new file mode 100644 index 00000000..dca94680 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,cAAc,CAC7C,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;CAIrC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js new file mode 100644 index 00000000..65dc6b45 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class VariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.Variable, name, node, decl); + } +} +exports.VariableDefinition = VariableDefinition; +//# sourceMappingURL=VariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map new file mode 100644 index 00000000..86801dcd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.js","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,kBAAmB,SAAQ,+BAKhC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAyB,EACzB,IAAgC,EAChC,IAAkC;QAElC,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts new file mode 100644 index 00000000..2be95a12 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts @@ -0,0 +1,14 @@ +export * from './CatchClauseDefinition'; +export * from './ClassNameDefinition'; +export * from './Definition'; +export * from './DefinitionType'; +export * from './FunctionNameDefinition'; +export * from './ImplicitGlobalVariableDefinition'; +export * from './ImportBindingDefinition'; +export * from './ParameterDefinition'; +export * from './TSEnumMemberDefinition'; +export * from './TSEnumNameDefinition'; +export * from './TSModuleNameDefinition'; +export * from './TypeDefinition'; +export * from './VariableDefinition'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map new file mode 100644 index 00000000..dfd43be8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js new file mode 100644 index 00000000..71d1559d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js @@ -0,0 +1,30 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./CatchClauseDefinition"), exports); +__exportStar(require("./ClassNameDefinition"), exports); +__exportStar(require("./Definition"), exports); +__exportStar(require("./DefinitionType"), exports); +__exportStar(require("./FunctionNameDefinition"), exports); +__exportStar(require("./ImplicitGlobalVariableDefinition"), exports); +__exportStar(require("./ImportBindingDefinition"), exports); +__exportStar(require("./ParameterDefinition"), exports); +__exportStar(require("./TSEnumMemberDefinition"), exports); +__exportStar(require("./TSEnumNameDefinition"), exports); +__exportStar(require("./TSModuleNameDefinition"), exports); +__exportStar(require("./TypeDefinition"), exports); +__exportStar(require("./VariableDefinition"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map new file mode 100644 index 00000000..136726cd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts new file mode 100644 index 00000000..435c05cc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts @@ -0,0 +1,9 @@ +export { analyze, type AnalyzeOptions } from './analyze'; +export * from './definition'; +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, } from './referencer/PatternVisitor'; +export { Reference } from './referencer/Reference'; +export { Visitor } from './referencer/Visitor'; +export * from './scope'; +export { ScopeManager } from './ScopeManager'; +export * from './variable'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map new file mode 100644 index 00000000..dd3d5544 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js new file mode 100644 index 00000000..28e0cb85 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = exports.Visitor = exports.Reference = exports.PatternVisitor = exports.analyze = void 0; +var analyze_1 = require("./analyze"); +Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } }); +__exportStar(require("./definition"), exports); +var PatternVisitor_1 = require("./referencer/PatternVisitor"); +Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } }); +var Reference_1 = require("./referencer/Reference"); +Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } }); +var Visitor_1 = require("./referencer/Visitor"); +Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } }); +__exportStar(require("./scope"), exports); +var ScopeManager_1 = require("./ScopeManager"); +Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } }); +__exportStar(require("./variable"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js.map new file mode 100644 index 00000000..ffff526a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAyD;AAAhD,kGAAA,OAAO,OAAA;AAChB,+CAA6B;AAC7B,8DAIqC;AAHnC,gHAAA,cAAc,OAAA;AAIhB,oDAAmD;AAA1C,sGAAA,SAAS,OAAA;AAClB,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,0CAAwB;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts new file mode 100644 index 00000000..6b2fddaa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts @@ -0,0 +1,16 @@ +export declare const TYPE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: false; +}>; +export declare const VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: false; + isValueVariable: true; +}>; +export declare const TYPE_VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: true; +}>; +//# sourceMappingURL=base-config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map new file mode 100644 index 00000000..632981a2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js new file mode 100644 index 00000000..e0526301 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0; +exports.TYPE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, +}); +exports.VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: false, + isValueVariable: true, +}); +exports.TYPE_VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, +}); +//# sourceMappingURL=base-config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map new file mode 100644 index 00000000..b99400cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.js","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAEd,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;CACvB,CAAC,CAAC;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts new file mode 100644 index 00000000..288f0524 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators: Record; +//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map new file mode 100644 index 00000000..07113a33 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAalB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js new file mode 100644 index 00000000..b97c16ea --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators = void 0; +const base_config_1 = require("./base-config"); +exports.decorators = { + ClassAccessorDecoratorContext: base_config_1.TYPE, + ClassAccessorDecoratorResult: base_config_1.TYPE, + ClassAccessorDecoratorTarget: base_config_1.TYPE, + ClassDecoratorContext: base_config_1.TYPE, + ClassFieldDecoratorContext: base_config_1.TYPE, + ClassGetterDecoratorContext: base_config_1.TYPE, + ClassMemberDecoratorContext: base_config_1.TYPE, + ClassMethodDecoratorContext: base_config_1.TYPE, + ClassSetterDecoratorContext: base_config_1.TYPE, + DecoratorContext: base_config_1.TYPE, + DecoratorMetadata: base_config_1.TYPE, + DecoratorMetadataObject: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map new file mode 100644 index 00000000..3769ae2b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,UAAU,GAAG;IACxB,6BAA6B,EAAE,kBAAI;IACnC,4BAA4B,EAAE,kBAAI;IAClC,4BAA4B,EAAE,kBAAI;IAClC,qBAAqB,EAAE,kBAAI;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,iBAAiB,EAAE,kBAAI;IACvB,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts new file mode 100644 index 00000000..a7363bd8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators_legacy: Record; +//# sourceMappingURL=decorators.legacy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map new file mode 100644 index 00000000..f73fc491 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js new file mode 100644 index 00000000..d82d6096 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators_legacy = void 0; +const base_config_1 = require("./base-config"); +exports.decorators_legacy = { + ClassDecorator: base_config_1.TYPE, + MethodDecorator: base_config_1.TYPE, + ParameterDecorator: base_config_1.TYPE, + PropertyDecorator: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.legacy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map new file mode 100644 index 00000000..cd979547 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.js","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts new file mode 100644 index 00000000..cfd2ea00 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_asynciterable: Record; +//# sourceMappingURL=dom.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map new file mode 100644 index 00000000..2542309e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js new file mode 100644 index 00000000..564ce985 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map new file mode 100644 index 00000000..59078e84 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.js","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts new file mode 100644 index 00000000..f76da8eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom: Record; +//# sourceMappingURL=dom.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map new file mode 100644 index 00000000..ac1e8a55 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,GAAG,EA48CX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts new file mode 100644 index 00000000..94f9807e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_iterable: Record; +//# sourceMappingURL=dom.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map new file mode 100644 index 00000000..5ea51812 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EA0EpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js new file mode 100644 index 00000000..5a784df7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js @@ -0,0 +1,84 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_iterable = { + AbortSignal: base_config_1.TYPE, + AudioParam: base_config_1.TYPE, + AudioParamMap: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSKeyframesRule: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSRuleList: base_config_1.TYPE, + CSSStyleDeclaration: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE, + DataTransferItemList: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + DOMTokenList: base_config_1.TYPE, + EventCounts: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + Highlight: base_config_1.TYPE, + HighlightRegistry: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLFormElement: base_config_1.TYPE, + HTMLSelectElement: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE, + MediaKeyStatusMapIterator: base_config_1.TYPE, + MediaList: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE, + MIDIOutputMap: base_config_1.TYPE, + MimeTypeArray: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE, + Navigator: base_config_1.TYPE, + NodeList: base_config_1.TYPE, + NodeListOf: base_config_1.TYPE, + Plugin: base_config_1.TYPE, + PluginArray: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE, + SpeechRecognitionResult: base_config_1.TYPE, + SpeechRecognitionResultList: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + StyleSheetList: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + SVGLengthList: base_config_1.TYPE, + SVGNumberList: base_config_1.TYPE, + SVGPointList: base_config_1.TYPE, + SVGStringList: base_config_1.TYPE, + SVGTransformList: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE, + TouchList: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map new file mode 100644 index 00000000..e764338b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.js","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,cAAc,EAAE,kBAAI;IACpB,oBAAoB,EAAE,kBAAI;IAC1B,WAAW,EAAE,kBAAI;IACjB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,kBAAI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AI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js new file mode 100644 index 00000000..62371bdc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js @@ -0,0 +1,1494 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom = void 0; +const base_config_1 = require("./base-config"); +exports.dom = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractRange: base_config_1.TYPE_VALUE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AddressErrors: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AlignSetting: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + AnalyserNode: base_config_1.TYPE_VALUE, + AnalyserOptions: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + Animatable: base_config_1.TYPE, + Animation: base_config_1.TYPE_VALUE, + AnimationEffect: base_config_1.TYPE_VALUE, + AnimationEvent: base_config_1.TYPE_VALUE, + AnimationEventInit: base_config_1.TYPE, + AnimationEventMap: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AnimationPlaybackEvent: base_config_1.TYPE_VALUE, + AnimationPlaybackEventInit: base_config_1.TYPE, + AnimationPlayState: base_config_1.TYPE, + AnimationReplaceState: base_config_1.TYPE, + AnimationTimeline: base_config_1.TYPE_VALUE, + AppendMode: base_config_1.TYPE, + ARIAMixin: base_config_1.TYPE, + AssignedNodesOptions: base_config_1.TYPE, + AttestationConveyancePreference: base_config_1.TYPE, + Attr: base_config_1.TYPE_VALUE, + AudioBuffer: base_config_1.TYPE_VALUE, + AudioBufferOptions: base_config_1.TYPE, + AudioBufferSourceNode: base_config_1.TYPE_VALUE, + AudioBufferSourceOptions: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioContext: base_config_1.TYPE_VALUE, + AudioContextLatencyCategory: base_config_1.TYPE, + AudioContextOptions: base_config_1.TYPE, + AudioContextState: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioDestinationNode: base_config_1.TYPE_VALUE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioListener: base_config_1.TYPE_VALUE, + AudioNode: base_config_1.TYPE_VALUE, + AudioNodeOptions: base_config_1.TYPE, + AudioParam: base_config_1.TYPE_VALUE, + AudioParamMap: base_config_1.TYPE_VALUE, + AudioProcessingEvent: base_config_1.TYPE_VALUE, + AudioProcessingEventInit: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AudioScheduledSourceNode: base_config_1.TYPE_VALUE, + AudioScheduledSourceNodeEventMap: base_config_1.TYPE, + AudioTimestamp: base_config_1.TYPE, + AudioWorklet: base_config_1.TYPE_VALUE, + AudioWorkletNode: base_config_1.TYPE_VALUE, + AudioWorkletNodeEventMap: base_config_1.TYPE, + AudioWorkletNodeOptions: base_config_1.TYPE, + AuthenticationExtensionsClientInputs: base_config_1.TYPE, + AuthenticationExtensionsClientInputsJSON: base_config_1.TYPE, + AuthenticationExtensionsClientOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFInputs: base_config_1.TYPE, + AuthenticationExtensionsPRFOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFValues: base_config_1.TYPE, + AuthenticatorAssertionResponse: base_config_1.TYPE_VALUE, + AuthenticatorAttachment: base_config_1.TYPE, + AuthenticatorAttestationResponse: base_config_1.TYPE_VALUE, + AuthenticatorResponse: base_config_1.TYPE_VALUE, + AuthenticatorSelectionCriteria: base_config_1.TYPE, + AuthenticatorTransport: base_config_1.TYPE, + AutoFill: base_config_1.TYPE, + AutoFillAddressKind: base_config_1.TYPE, + AutoFillBase: base_config_1.TYPE, + AutoFillContactField: base_config_1.TYPE, + AutoFillContactKind: base_config_1.TYPE, + AutoFillCredentialField: base_config_1.TYPE, + AutoFillField: base_config_1.TYPE, + AutoFillNormalField: base_config_1.TYPE, + AutoFillSection: base_config_1.TYPE, + AutoKeyword: base_config_1.TYPE, + AutomationRate: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BarProp: base_config_1.TYPE_VALUE, + Base64URLString: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE_VALUE, + BaseAudioContextEventMap: base_config_1.TYPE, + BeforeUnloadEvent: base_config_1.TYPE_VALUE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BiquadFilterNode: base_config_1.TYPE_VALUE, + BiquadFilterOptions: base_config_1.TYPE, + BiquadFilterType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobCallback: base_config_1.TYPE, + BlobEvent: base_config_1.TYPE_VALUE, + BlobEventInit: base_config_1.TYPE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanPlayTypeResult: base_config_1.TYPE, + CanvasCaptureMediaStreamTrack: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasRenderingContext2D: base_config_1.TYPE_VALUE, + CanvasRenderingContext2DSettings: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + CanvasUserInterface: base_config_1.TYPE, + CaretPosition: base_config_1.TYPE_VALUE, + CaretPositionFromPointOptions: base_config_1.TYPE, + CDATASection: base_config_1.TYPE_VALUE, + ChannelCountMode: base_config_1.TYPE, + ChannelInterpretation: base_config_1.TYPE, + ChannelMergerNode: base_config_1.TYPE_VALUE, + ChannelMergerOptions: base_config_1.TYPE, + ChannelSplitterNode: base_config_1.TYPE_VALUE, + ChannelSplitterOptions: base_config_1.TYPE, + CharacterData: base_config_1.TYPE_VALUE, + CheckVisibilityOptions: base_config_1.TYPE, + ChildNode: base_config_1.TYPE, + ClientQueryOptions: base_config_1.TYPE, + ClientRect: base_config_1.TYPE, + ClientTypes: base_config_1.TYPE, + Clipboard: base_config_1.TYPE_VALUE, + ClipboardEvent: base_config_1.TYPE_VALUE, + ClipboardEventInit: base_config_1.TYPE, + ClipboardItem: base_config_1.TYPE_VALUE, + ClipboardItemData: base_config_1.TYPE, + ClipboardItemOptions: base_config_1.TYPE, + ClipboardItems: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + Comment: base_config_1.TYPE_VALUE, + CompositeOperation: base_config_1.TYPE, + CompositeOperationOrAuto: base_config_1.TYPE, + CompositionEvent: base_config_1.TYPE_VALUE, + CompositionEventInit: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + ComputedEffectTiming: base_config_1.TYPE, + ComputedKeyframe: base_config_1.TYPE, + Console: base_config_1.TYPE, + ConstantSourceNode: base_config_1.TYPE_VALUE, + ConstantSourceOptions: base_config_1.TYPE, + ConstrainBoolean: base_config_1.TYPE, + ConstrainBooleanParameters: base_config_1.TYPE, + ConstrainDOMString: base_config_1.TYPE, + ConstrainDOMStringParameters: base_config_1.TYPE, + ConstrainDouble: base_config_1.TYPE, + ConstrainDoubleRange: base_config_1.TYPE, + ConstrainULong: base_config_1.TYPE, + ConstrainULongRange: base_config_1.TYPE, + ContentVisibilityAutoStateChangeEvent: base_config_1.TYPE_VALUE, + ContentVisibilityAutoStateChangeEventInit: base_config_1.TYPE, + ConvolverNode: base_config_1.TYPE_VALUE, + ConvolverOptions: base_config_1.TYPE, + COSEAlgorithmIdentifier: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Credential: base_config_1.TYPE_VALUE, + CredentialCreationOptions: base_config_1.TYPE, + CredentialMediationRequirement: base_config_1.TYPE, + CredentialPropertiesOutput: base_config_1.TYPE, + CredentialRequestOptions: base_config_1.TYPE, + CredentialsContainer: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSS: base_config_1.TYPE_VALUE, + CSSAnimation: base_config_1.TYPE_VALUE, + CSSConditionRule: base_config_1.TYPE_VALUE, + CSSContainerRule: base_config_1.TYPE_VALUE, + CSSCounterStyleRule: base_config_1.TYPE_VALUE, + CSSFontFaceRule: base_config_1.TYPE_VALUE, + CSSFontFeatureValuesRule: base_config_1.TYPE_VALUE, + CSSFontPaletteValuesRule: base_config_1.TYPE_VALUE, + CSSGroupingRule: base_config_1.TYPE_VALUE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSImportRule: base_config_1.TYPE_VALUE, + CSSKeyframeRule: base_config_1.TYPE_VALUE, + CSSKeyframesRule: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSLayerBlockRule: base_config_1.TYPE_VALUE, + CSSLayerStatementRule: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSMediaRule: base_config_1.TYPE_VALUE, + CSSNamespaceRule: base_config_1.TYPE_VALUE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPageRule: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSPropertyRule: base_config_1.TYPE_VALUE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSRule: base_config_1.TYPE_VALUE, + CSSRuleList: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSScopeRule: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStartingStyleRule: base_config_1.TYPE_VALUE, + CSSStyleDeclaration: base_config_1.TYPE_VALUE, + CSSStyleRule: base_config_1.TYPE_VALUE, + CSSStyleSheet: base_config_1.TYPE_VALUE, + CSSStyleSheetInit: base_config_1.TYPE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSSupportsRule: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTransition: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomElementConstructor: base_config_1.TYPE, + CustomElementRegistry: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE_VALUE, + DataTransfer: base_config_1.TYPE_VALUE, + DataTransferItem: base_config_1.TYPE_VALUE, + DataTransferItemList: base_config_1.TYPE_VALUE, + DecodeErrorCallback: base_config_1.TYPE, + DecodeSuccessCallback: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DelayNode: base_config_1.TYPE_VALUE, + DelayOptions: base_config_1.TYPE, + DeviceMotionEvent: base_config_1.TYPE_VALUE, + DeviceMotionEventAcceleration: base_config_1.TYPE, + DeviceMotionEventAccelerationInit: base_config_1.TYPE, + DeviceMotionEventInit: base_config_1.TYPE, + DeviceMotionEventRotationRate: base_config_1.TYPE, + DeviceMotionEventRotationRateInit: base_config_1.TYPE, + DeviceOrientationEvent: base_config_1.TYPE_VALUE, + DeviceOrientationEventInit: base_config_1.TYPE, + DirectionSetting: base_config_1.TYPE, + DisplayCaptureSurfaceType: base_config_1.TYPE, + DisplayMediaStreamOptions: base_config_1.TYPE, + DistanceModelType: base_config_1.TYPE, + Document: base_config_1.TYPE_VALUE, + DocumentEventMap: base_config_1.TYPE, + DocumentFragment: base_config_1.TYPE_VALUE, + DocumentOrShadowRoot: base_config_1.TYPE, + DocumentReadyState: base_config_1.TYPE, + DocumentTimeline: base_config_1.TYPE_VALUE, + DocumentTimelineOptions: base_config_1.TYPE, + DocumentType: base_config_1.TYPE_VALUE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMImplementation: base_config_1.TYPE_VALUE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMParser: base_config_1.TYPE_VALUE, + DOMParserSupportedType: base_config_1.TYPE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE_VALUE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + DOMStringMap: base_config_1.TYPE_VALUE, + DOMTokenList: base_config_1.TYPE_VALUE, + DoubleRange: base_config_1.TYPE, + DragEvent: base_config_1.TYPE_VALUE, + DragEventInit: base_config_1.TYPE, + DynamicsCompressorNode: base_config_1.TYPE_VALUE, + DynamicsCompressorOptions: base_config_1.TYPE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyAlgorithm: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EffectTiming: base_config_1.TYPE, + Element: base_config_1.TYPE_VALUE, + ElementContentEditable: base_config_1.TYPE, + ElementCreationOptions: base_config_1.TYPE, + ElementCSSInlineStyle: base_config_1.TYPE, + ElementDefinitionOptions: base_config_1.TYPE, + ElementEventMap: base_config_1.TYPE, + ElementInternals: base_config_1.TYPE_VALUE, + ElementTagNameMap: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EndOfStreamError: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorCallback: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventCounts: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventModifierInit: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + External: base_config_1.TYPE_VALUE, + File: base_config_1.TYPE_VALUE, + FileCallback: base_config_1.TYPE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileSystem: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryEntry: base_config_1.TYPE_VALUE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemDirectoryReader: base_config_1.TYPE_VALUE, + FileSystemEntriesCallback: base_config_1.TYPE, + FileSystemEntry: base_config_1.TYPE_VALUE, + FileSystemEntryCallback: base_config_1.TYPE, + FileSystemFileEntry: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemFlags: base_config_1.TYPE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + FillMode: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FocusEvent: base_config_1.TYPE_VALUE, + FocusEventInit: base_config_1.TYPE, + FocusOptions: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FormDataEvent: base_config_1.TYPE_VALUE, + FormDataEventInit: base_config_1.TYPE, + FragmentDirective: base_config_1.TYPE_VALUE, + FrameRequestCallback: base_config_1.TYPE, + FullscreenNavigationUI: base_config_1.TYPE, + FullscreenOptions: base_config_1.TYPE, + FunctionStringCallback: base_config_1.TYPE, + GainNode: base_config_1.TYPE_VALUE, + GainOptions: base_config_1.TYPE, + Gamepad: base_config_1.TYPE_VALUE, + GamepadButton: base_config_1.TYPE_VALUE, + GamepadEffectParameters: base_config_1.TYPE, + GamepadEvent: base_config_1.TYPE_VALUE, + GamepadEventInit: base_config_1.TYPE, + GamepadHapticActuator: base_config_1.TYPE_VALUE, + GamepadHapticEffectType: base_config_1.TYPE, + GamepadHapticsResult: base_config_1.TYPE, + GamepadMappingType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + Geolocation: base_config_1.TYPE_VALUE, + GeolocationCoordinates: base_config_1.TYPE_VALUE, + GeolocationPosition: base_config_1.TYPE_VALUE, + GeolocationPositionError: base_config_1.TYPE_VALUE, + GetAnimationsOptions: base_config_1.TYPE, + GetHTMLOptions: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GetRootNodeOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GlobalEventHandlers: base_config_1.TYPE, + GlobalEventHandlersEventMap: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HashChangeEvent: base_config_1.TYPE_VALUE, + HashChangeEventInit: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + Highlight: base_config_1.TYPE_VALUE, + HighlightRegistry: base_config_1.TYPE_VALUE, + HighlightType: base_config_1.TYPE, + History: base_config_1.TYPE_VALUE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyAlgorithm: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE_VALUE, + HTMLAnchorElement: base_config_1.TYPE_VALUE, + HTMLAreaElement: base_config_1.TYPE_VALUE, + HTMLAudioElement: base_config_1.TYPE_VALUE, + HTMLBaseElement: base_config_1.TYPE_VALUE, + HTMLBodyElement: base_config_1.TYPE_VALUE, + HTMLBodyElementEventMap: base_config_1.TYPE, + HTMLBRElement: base_config_1.TYPE_VALUE, + HTMLButtonElement: base_config_1.TYPE_VALUE, + HTMLCanvasElement: base_config_1.TYPE_VALUE, + HTMLCollection: base_config_1.TYPE_VALUE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLDataElement: base_config_1.TYPE_VALUE, + HTMLDataListElement: base_config_1.TYPE_VALUE, + HTMLDetailsElement: base_config_1.TYPE_VALUE, + HTMLDialogElement: base_config_1.TYPE_VALUE, + HTMLDirectoryElement: base_config_1.TYPE_VALUE, + HTMLDivElement: base_config_1.TYPE_VALUE, + HTMLDListElement: base_config_1.TYPE_VALUE, + HTMLDocument: base_config_1.TYPE_VALUE, + HTMLElement: base_config_1.TYPE_VALUE, + HTMLElementDeprecatedTagNameMap: base_config_1.TYPE, + HTMLElementEventMap: base_config_1.TYPE, + HTMLElementTagNameMap: base_config_1.TYPE, + HTMLEmbedElement: base_config_1.TYPE_VALUE, + HTMLFieldSetElement: base_config_1.TYPE_VALUE, + HTMLFontElement: base_config_1.TYPE_VALUE, + HTMLFormControlsCollection: base_config_1.TYPE_VALUE, + HTMLFormElement: base_config_1.TYPE_VALUE, + HTMLFrameElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElementEventMap: base_config_1.TYPE, + HTMLHeadElement: base_config_1.TYPE_VALUE, + HTMLHeadingElement: base_config_1.TYPE_VALUE, + HTMLHRElement: base_config_1.TYPE_VALUE, + HTMLHtmlElement: base_config_1.TYPE_VALUE, + HTMLHyperlinkElementUtils: base_config_1.TYPE, + HTMLIFrameElement: base_config_1.TYPE_VALUE, + HTMLImageElement: base_config_1.TYPE_VALUE, + HTMLInputElement: base_config_1.TYPE_VALUE, + HTMLLabelElement: base_config_1.TYPE_VALUE, + HTMLLegendElement: base_config_1.TYPE_VALUE, + HTMLLIElement: base_config_1.TYPE_VALUE, + HTMLLinkElement: base_config_1.TYPE_VALUE, + HTMLMapElement: base_config_1.TYPE_VALUE, + HTMLMarqueeElement: base_config_1.TYPE_VALUE, + HTMLMediaElement: base_config_1.TYPE_VALUE, + HTMLMediaElementEventMap: base_config_1.TYPE, + HTMLMenuElement: base_config_1.TYPE_VALUE, + HTMLMetaElement: base_config_1.TYPE_VALUE, + HTMLMeterElement: base_config_1.TYPE_VALUE, + HTMLModElement: base_config_1.TYPE_VALUE, + HTMLObjectElement: base_config_1.TYPE_VALUE, + HTMLOListElement: base_config_1.TYPE_VALUE, + HTMLOptGroupElement: base_config_1.TYPE_VALUE, + HTMLOptionElement: base_config_1.TYPE_VALUE, + HTMLOptionsCollection: base_config_1.TYPE_VALUE, + HTMLOrSVGElement: base_config_1.TYPE, + HTMLOrSVGImageElement: base_config_1.TYPE, + HTMLOrSVGScriptElement: base_config_1.TYPE, + HTMLOutputElement: base_config_1.TYPE_VALUE, + HTMLParagraphElement: base_config_1.TYPE_VALUE, + HTMLParamElement: base_config_1.TYPE_VALUE, + HTMLPictureElement: base_config_1.TYPE_VALUE, + HTMLPreElement: base_config_1.TYPE_VALUE, + HTMLProgressElement: base_config_1.TYPE_VALUE, + HTMLQuoteElement: base_config_1.TYPE_VALUE, + HTMLScriptElement: base_config_1.TYPE_VALUE, + HTMLSelectElement: base_config_1.TYPE_VALUE, + HTMLSlotElement: base_config_1.TYPE_VALUE, + HTMLSourceElement: base_config_1.TYPE_VALUE, + HTMLSpanElement: base_config_1.TYPE_VALUE, + HTMLStyleElement: base_config_1.TYPE_VALUE, + HTMLTableCaptionElement: base_config_1.TYPE_VALUE, + HTMLTableCellElement: base_config_1.TYPE_VALUE, + HTMLTableColElement: base_config_1.TYPE_VALUE, + HTMLTableDataCellElement: base_config_1.TYPE, + HTMLTableElement: base_config_1.TYPE_VALUE, + HTMLTableHeaderCellElement: base_config_1.TYPE, + HTMLTableRowElement: base_config_1.TYPE_VALUE, + HTMLTableSectionElement: base_config_1.TYPE_VALUE, + HTMLTemplateElement: base_config_1.TYPE_VALUE, + HTMLTextAreaElement: base_config_1.TYPE_VALUE, + HTMLTimeElement: base_config_1.TYPE_VALUE, + HTMLTitleElement: base_config_1.TYPE_VALUE, + HTMLTrackElement: base_config_1.TYPE_VALUE, + HTMLUListElement: base_config_1.TYPE_VALUE, + HTMLUnknownElement: base_config_1.TYPE_VALUE, + HTMLVideoElement: base_config_1.TYPE_VALUE, + HTMLVideoElementEventMap: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + IdleDeadline: base_config_1.TYPE_VALUE, + IdleRequestCallback: base_config_1.TYPE, + IdleRequestOptions: base_config_1.TYPE, + IIRFilterNode: base_config_1.TYPE_VALUE, + IIRFilterOptions: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InputDeviceInfo: base_config_1.TYPE_VALUE, + InputEvent: base_config_1.TYPE_VALUE, + InputEventInit: base_config_1.TYPE, + InsertPosition: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + IntersectionObserver: base_config_1.TYPE_VALUE, + IntersectionObserverCallback: base_config_1.TYPE, + IntersectionObserverEntry: base_config_1.TYPE_VALUE, + IntersectionObserverInit: base_config_1.TYPE, + IterationCompositeOperation: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyboardEvent: base_config_1.TYPE_VALUE, + KeyboardEventInit: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + Keyframe: base_config_1.TYPE, + KeyframeAnimationOptions: base_config_1.TYPE, + KeyframeEffect: base_config_1.TYPE_VALUE, + KeyframeEffectOptions: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LargestContentfulPaint: base_config_1.TYPE_VALUE, + LatencyMode: base_config_1.TYPE, + LineAlignSetting: base_config_1.TYPE, + LineAndPositionSetting: base_config_1.TYPE, + LinkStyle: base_config_1.TYPE, + Location: base_config_1.TYPE_VALUE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MathMLElement: base_config_1.TYPE_VALUE, + MathMLElementEventMap: base_config_1.TYPE, + MathMLElementTagNameMap: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaDeviceInfo: base_config_1.TYPE_VALUE, + MediaDeviceKind: base_config_1.TYPE, + MediaDevices: base_config_1.TYPE_VALUE, + MediaDevicesEventMap: base_config_1.TYPE, + MediaElementAudioSourceNode: base_config_1.TYPE_VALUE, + MediaElementAudioSourceOptions: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaEncryptedEvent: base_config_1.TYPE_VALUE, + MediaEncryptedEventInit: base_config_1.TYPE, + MediaError: base_config_1.TYPE_VALUE, + MediaImage: base_config_1.TYPE, + MediaKeyMessageEvent: base_config_1.TYPE_VALUE, + MediaKeyMessageEventInit: base_config_1.TYPE, + MediaKeyMessageType: base_config_1.TYPE, + MediaKeys: base_config_1.TYPE_VALUE, + MediaKeySession: base_config_1.TYPE_VALUE, + MediaKeySessionClosedReason: base_config_1.TYPE, + MediaKeySessionEventMap: base_config_1.TYPE, + MediaKeySessionType: base_config_1.TYPE, + MediaKeysPolicy: base_config_1.TYPE, + MediaKeysRequirement: base_config_1.TYPE, + MediaKeyStatus: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE_VALUE, + MediaKeySystemAccess: base_config_1.TYPE_VALUE, + MediaKeySystemConfiguration: base_config_1.TYPE, + MediaKeySystemMediaCapability: base_config_1.TYPE, + MediaList: base_config_1.TYPE_VALUE, + MediaMetadata: base_config_1.TYPE_VALUE, + MediaMetadataInit: base_config_1.TYPE, + MediaPositionState: base_config_1.TYPE, + MediaProvider: base_config_1.TYPE, + MediaQueryList: base_config_1.TYPE_VALUE, + MediaQueryListEvent: base_config_1.TYPE_VALUE, + MediaQueryListEventInit: base_config_1.TYPE, + MediaQueryListEventMap: base_config_1.TYPE, + MediaRecorder: base_config_1.TYPE_VALUE, + MediaRecorderEventMap: base_config_1.TYPE, + MediaRecorderOptions: base_config_1.TYPE, + MediaSession: base_config_1.TYPE_VALUE, + MediaSessionAction: base_config_1.TYPE, + MediaSessionActionDetails: base_config_1.TYPE, + MediaSessionActionHandler: base_config_1.TYPE, + MediaSessionPlaybackState: base_config_1.TYPE, + MediaSource: base_config_1.TYPE_VALUE, + MediaSourceEventMap: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStream: base_config_1.TYPE_VALUE, + MediaStreamAudioDestinationNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceOptions: base_config_1.TYPE, + MediaStreamConstraints: base_config_1.TYPE, + MediaStreamEventMap: base_config_1.TYPE, + MediaStreamTrack: base_config_1.TYPE_VALUE, + MediaStreamTrackEvent: base_config_1.TYPE_VALUE, + MediaStreamTrackEventInit: base_config_1.TYPE, + MediaStreamTrackEventMap: base_config_1.TYPE, + MediaStreamTrackState: base_config_1.TYPE, + MediaTrackCapabilities: base_config_1.TYPE, + MediaTrackConstraints: base_config_1.TYPE, + MediaTrackConstraintSet: base_config_1.TYPE, + MediaTrackSettings: base_config_1.TYPE, + MediaTrackSupportedConstraints: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MIDIAccess: base_config_1.TYPE_VALUE, + MIDIAccessEventMap: base_config_1.TYPE, + MIDIConnectionEvent: base_config_1.TYPE_VALUE, + MIDIConnectionEventInit: base_config_1.TYPE, + MIDIInput: base_config_1.TYPE_VALUE, + MIDIInputEventMap: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE_VALUE, + MIDIMessageEvent: base_config_1.TYPE_VALUE, + MIDIMessageEventInit: base_config_1.TYPE, + MIDIOptions: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE_VALUE, + MIDIOutputMap: base_config_1.TYPE_VALUE, + MIDIPort: base_config_1.TYPE_VALUE, + MIDIPortConnectionState: base_config_1.TYPE, + MIDIPortDeviceState: base_config_1.TYPE, + MIDIPortEventMap: base_config_1.TYPE, + MIDIPortType: base_config_1.TYPE, + MimeType: base_config_1.TYPE_VALUE, + MimeTypeArray: base_config_1.TYPE_VALUE, + MouseEvent: base_config_1.TYPE_VALUE, + MouseEventInit: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + MutationCallback: base_config_1.TYPE, + MutationObserver: base_config_1.TYPE_VALUE, + MutationObserverInit: base_config_1.TYPE, + MutationRecord: base_config_1.TYPE_VALUE, + MutationRecordType: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE_VALUE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigationTimingType: base_config_1.TYPE, + Navigator: base_config_1.TYPE_VALUE, + NavigatorAutomationInformation: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorContentUtils: base_config_1.TYPE, + NavigatorCookies: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorPlugins: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Node: base_config_1.TYPE_VALUE, + NodeFilter: base_config_1.TYPE_VALUE, + NodeIterator: base_config_1.TYPE_VALUE, + NodeList: base_config_1.TYPE_VALUE, + NodeListOf: base_config_1.TYPE, + NonDocumentTypeChildNode: base_config_1.TYPE, + NonElementParentNode: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + NotificationPermissionCallback: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OfflineAudioCompletionEvent: base_config_1.TYPE_VALUE, + OfflineAudioCompletionEventInit: base_config_1.TYPE, + OfflineAudioContext: base_config_1.TYPE_VALUE, + OfflineAudioContextEventMap: base_config_1.TYPE, + OfflineAudioContextOptions: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnBeforeUnloadEventHandler: base_config_1.TYPE, + OnBeforeUnloadEventHandlerNonNull: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OptionalEffectTiming: base_config_1.TYPE, + OptionalPostfixToken: base_config_1.TYPE, + OptionalPrefixToken: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OrientationType: base_config_1.TYPE, + OscillatorNode: base_config_1.TYPE_VALUE, + OscillatorOptions: base_config_1.TYPE, + OscillatorType: base_config_1.TYPE, + OverconstrainedError: base_config_1.TYPE_VALUE, + OverSampleType: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + PageTransitionEvent: base_config_1.TYPE_VALUE, + PageTransitionEventInit: base_config_1.TYPE, + PannerNode: base_config_1.TYPE_VALUE, + PannerOptions: base_config_1.TYPE, + PanningModelType: base_config_1.TYPE, + ParentNode: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + PayerErrors: base_config_1.TYPE, + PaymentAddress: base_config_1.TYPE_VALUE, + PaymentComplete: base_config_1.TYPE, + PaymentCurrencyAmount: base_config_1.TYPE, + PaymentDetailsBase: base_config_1.TYPE, + PaymentDetailsInit: base_config_1.TYPE, + PaymentDetailsModifier: base_config_1.TYPE, + PaymentDetailsUpdate: base_config_1.TYPE, + PaymentItem: base_config_1.TYPE, + PaymentMethodChangeEvent: base_config_1.TYPE_VALUE, + PaymentMethodChangeEventInit: base_config_1.TYPE, + PaymentMethodData: base_config_1.TYPE, + PaymentOptions: base_config_1.TYPE, + PaymentRequest: base_config_1.TYPE_VALUE, + PaymentRequestEventMap: base_config_1.TYPE, + PaymentRequestUpdateEvent: base_config_1.TYPE_VALUE, + PaymentRequestUpdateEventInit: base_config_1.TYPE, + PaymentResponse: base_config_1.TYPE_VALUE, + PaymentResponseEventMap: base_config_1.TYPE, + PaymentShippingOption: base_config_1.TYPE, + PaymentShippingType: base_config_1.TYPE, + PaymentValidationErrors: base_config_1.TYPE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceEventTiming: base_config_1.TYPE_VALUE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceNavigation: base_config_1.TYPE_VALUE, + PerformanceNavigationTiming: base_config_1.TYPE_VALUE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformancePaintTiming: base_config_1.TYPE_VALUE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PerformanceTiming: base_config_1.TYPE_VALUE, + PeriodicWave: base_config_1.TYPE_VALUE, + PeriodicWaveConstraints: base_config_1.TYPE, + PeriodicWaveOptions: base_config_1.TYPE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PictureInPictureEvent: base_config_1.TYPE_VALUE, + PictureInPictureEventInit: base_config_1.TYPE, + PictureInPictureWindow: base_config_1.TYPE_VALUE, + PictureInPictureWindowEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PlaybackDirection: base_config_1.TYPE, + Plugin: base_config_1.TYPE_VALUE, + PluginArray: base_config_1.TYPE_VALUE, + PointerEvent: base_config_1.TYPE_VALUE, + PointerEventInit: base_config_1.TYPE, + PointerLockOptions: base_config_1.TYPE, + PopoverInvokerElement: base_config_1.TYPE, + PopStateEvent: base_config_1.TYPE_VALUE, + PopStateEventInit: base_config_1.TYPE, + PositionAlignSetting: base_config_1.TYPE, + PositionCallback: base_config_1.TYPE, + PositionErrorCallback: base_config_1.TYPE, + PositionOptions: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + PresentationStyle: base_config_1.TYPE, + ProcessingInstruction: base_config_1.TYPE_VALUE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PropertyDefinition: base_config_1.TYPE, + PropertyIndexedKeyframes: base_config_1.TYPE, + PublicKeyCredential: base_config_1.TYPE_VALUE, + PublicKeyCredentialCreationOptions: base_config_1.TYPE, + PublicKeyCredentialCreationOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialDescriptor: base_config_1.TYPE, + PublicKeyCredentialDescriptorJSON: base_config_1.TYPE, + PublicKeyCredentialEntity: base_config_1.TYPE, + PublicKeyCredentialJSON: base_config_1.TYPE, + PublicKeyCredentialParameters: base_config_1.TYPE, + PublicKeyCredentialRequestOptions: base_config_1.TYPE, + PublicKeyCredentialRequestOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialRpEntity: base_config_1.TYPE, + PublicKeyCredentialType: base_config_1.TYPE, + PublicKeyCredentialUserEntity: base_config_1.TYPE, + PublicKeyCredentialUserEntityJSON: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + RadioNodeList: base_config_1.TYPE_VALUE, + Range: base_config_1.TYPE_VALUE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReadyState: base_config_1.TYPE, + RecordingState: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + RemotePlayback: base_config_1.TYPE_VALUE, + RemotePlaybackAvailabilityCallback: base_config_1.TYPE, + RemotePlaybackEventMap: base_config_1.TYPE, + RemotePlaybackState: base_config_1.TYPE, + RenderingContext: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResidentKeyRequirement: base_config_1.TYPE, + ResizeObserver: base_config_1.TYPE_VALUE, + ResizeObserverBoxOptions: base_config_1.TYPE, + ResizeObserverCallback: base_config_1.TYPE, + ResizeObserverEntry: base_config_1.TYPE_VALUE, + ResizeObserverOptions: base_config_1.TYPE, + ResizeObserverSize: base_config_1.TYPE_VALUE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyAlgorithm: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyAlgorithm: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCAnswerOptions: base_config_1.TYPE, + RTCBundlePolicy: base_config_1.TYPE, + RTCCertificate: base_config_1.TYPE_VALUE, + RTCCertificateExpiration: base_config_1.TYPE, + RTCConfiguration: base_config_1.TYPE, + RTCDataChannel: base_config_1.TYPE_VALUE, + RTCDataChannelEvent: base_config_1.TYPE_VALUE, + RTCDataChannelEventInit: base_config_1.TYPE, + RTCDataChannelEventMap: base_config_1.TYPE, + RTCDataChannelInit: base_config_1.TYPE, + RTCDataChannelState: base_config_1.TYPE, + RTCDegradationPreference: base_config_1.TYPE, + RTCDtlsFingerprint: base_config_1.TYPE, + RTCDtlsTransport: base_config_1.TYPE_VALUE, + RTCDtlsTransportEventMap: base_config_1.TYPE, + RTCDtlsTransportState: base_config_1.TYPE, + RTCDTMFSender: base_config_1.TYPE_VALUE, + RTCDTMFSenderEventMap: base_config_1.TYPE, + RTCDTMFToneChangeEvent: base_config_1.TYPE_VALUE, + RTCDTMFToneChangeEventInit: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCError: base_config_1.TYPE_VALUE, + RTCErrorDetailType: base_config_1.TYPE, + RTCErrorEvent: base_config_1.TYPE_VALUE, + RTCErrorEventInit: base_config_1.TYPE, + RTCErrorInit: base_config_1.TYPE, + RTCIceCandidate: base_config_1.TYPE_VALUE, + RTCIceCandidateInit: base_config_1.TYPE, + RTCIceCandidatePair: base_config_1.TYPE, + RTCIceCandidatePairStats: base_config_1.TYPE, + RTCIceCandidateType: base_config_1.TYPE, + RTCIceComponent: base_config_1.TYPE, + RTCIceConnectionState: base_config_1.TYPE, + RTCIceGathererState: base_config_1.TYPE, + RTCIceGatheringState: base_config_1.TYPE, + RTCIceProtocol: base_config_1.TYPE, + RTCIceServer: base_config_1.TYPE, + RTCIceTcpCandidateType: base_config_1.TYPE, + RTCIceTransport: base_config_1.TYPE_VALUE, + RTCIceTransportEventMap: base_config_1.TYPE, + RTCIceTransportPolicy: base_config_1.TYPE, + RTCIceTransportState: base_config_1.TYPE, + RTCInboundRtpStreamStats: base_config_1.TYPE, + RTCLocalSessionDescriptionInit: base_config_1.TYPE, + RTCOfferAnswerOptions: base_config_1.TYPE, + RTCOfferOptions: base_config_1.TYPE, + RTCOutboundRtpStreamStats: base_config_1.TYPE, + RTCPeerConnection: base_config_1.TYPE_VALUE, + RTCPeerConnectionErrorCallback: base_config_1.TYPE, + RTCPeerConnectionEventMap: base_config_1.TYPE, + RTCPeerConnectionIceErrorEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceErrorEventInit: base_config_1.TYPE, + RTCPeerConnectionIceEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceEventInit: base_config_1.TYPE, + RTCPeerConnectionState: base_config_1.TYPE, + RTCPriorityType: base_config_1.TYPE, + RTCReceivedRtpStreamStats: base_config_1.TYPE, + RTCRtcpMuxPolicy: base_config_1.TYPE, + RTCRtcpParameters: base_config_1.TYPE, + RTCRtpCapabilities: base_config_1.TYPE, + RTCRtpCodec: base_config_1.TYPE, + RTCRtpCodecParameters: base_config_1.TYPE, + RTCRtpCodingParameters: base_config_1.TYPE, + RTCRtpContributingSource: base_config_1.TYPE, + RTCRtpEncodingParameters: base_config_1.TYPE, + RTCRtpHeaderExtensionCapability: base_config_1.TYPE, + RTCRtpHeaderExtensionParameters: base_config_1.TYPE, + RTCRtpParameters: base_config_1.TYPE, + RTCRtpReceiveParameters: base_config_1.TYPE, + RTCRtpReceiver: base_config_1.TYPE_VALUE, + RTCRtpScriptTransform: base_config_1.TYPE_VALUE, + RTCRtpSender: base_config_1.TYPE_VALUE, + RTCRtpSendParameters: base_config_1.TYPE, + RTCRtpStreamStats: base_config_1.TYPE, + RTCRtpSynchronizationSource: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE_VALUE, + RTCRtpTransceiverDirection: base_config_1.TYPE, + RTCRtpTransceiverInit: base_config_1.TYPE, + RTCRtpTransform: base_config_1.TYPE, + RTCSctpTransport: base_config_1.TYPE_VALUE, + RTCSctpTransportEventMap: base_config_1.TYPE, + RTCSctpTransportState: base_config_1.TYPE, + RTCSdpType: base_config_1.TYPE, + RTCSentRtpStreamStats: base_config_1.TYPE, + RTCSessionDescription: base_config_1.TYPE_VALUE, + RTCSessionDescriptionCallback: base_config_1.TYPE, + RTCSessionDescriptionInit: base_config_1.TYPE, + RTCSetParameterOptions: base_config_1.TYPE, + RTCSignalingState: base_config_1.TYPE, + RTCStats: base_config_1.TYPE, + RTCStatsIceCandidatePairState: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE_VALUE, + RTCStatsType: base_config_1.TYPE, + RTCTrackEvent: base_config_1.TYPE_VALUE, + RTCTrackEventInit: base_config_1.TYPE, + RTCTransportStats: base_config_1.TYPE, + Screen: base_config_1.TYPE_VALUE, + ScreenOrientation: base_config_1.TYPE_VALUE, + ScreenOrientationEventMap: base_config_1.TYPE, + ScriptProcessorNode: base_config_1.TYPE_VALUE, + ScriptProcessorNodeEventMap: base_config_1.TYPE, + ScrollBehavior: base_config_1.TYPE, + ScrollIntoViewOptions: base_config_1.TYPE, + ScrollLogicalPosition: base_config_1.TYPE, + ScrollOptions: base_config_1.TYPE, + ScrollRestoration: base_config_1.TYPE, + ScrollSetting: base_config_1.TYPE, + ScrollToOptions: base_config_1.TYPE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + Selection: base_config_1.TYPE_VALUE, + SelectionMode: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + ShadowRoot: base_config_1.TYPE_VALUE, + ShadowRootEventMap: base_config_1.TYPE, + ShadowRootInit: base_config_1.TYPE, + ShadowRootMode: base_config_1.TYPE, + ShareData: base_config_1.TYPE, + SharedWorker: base_config_1.TYPE_VALUE, + SlotAssignmentMode: base_config_1.TYPE, + Slottable: base_config_1.TYPE, + SourceBuffer: base_config_1.TYPE_VALUE, + SourceBufferEventMap: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE_VALUE, + SourceBufferListEventMap: base_config_1.TYPE, + SpeechRecognitionAlternative: base_config_1.TYPE_VALUE, + SpeechRecognitionResult: base_config_1.TYPE_VALUE, + SpeechRecognitionResultList: base_config_1.TYPE_VALUE, + SpeechSynthesis: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorCode: base_config_1.TYPE, + SpeechSynthesisErrorEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorEventInit: base_config_1.TYPE, + SpeechSynthesisEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisEventInit: base_config_1.TYPE, + SpeechSynthesisEventMap: base_config_1.TYPE, + SpeechSynthesisUtterance: base_config_1.TYPE_VALUE, + SpeechSynthesisUtteranceEventMap: base_config_1.TYPE, + SpeechSynthesisVoice: base_config_1.TYPE_VALUE, + StaticRange: base_config_1.TYPE_VALUE, + StaticRangeInit: base_config_1.TYPE, + StereoPannerNode: base_config_1.TYPE_VALUE, + StereoPannerOptions: base_config_1.TYPE, + Storage: base_config_1.TYPE_VALUE, + StorageEstimate: base_config_1.TYPE, + StorageEvent: base_config_1.TYPE_VALUE, + StorageEventInit: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StyleMedia: base_config_1.TYPE, + StylePropertyMap: base_config_1.TYPE_VALUE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + StyleSheet: base_config_1.TYPE_VALUE, + StyleSheetList: base_config_1.TYPE_VALUE, + SubmitEvent: base_config_1.TYPE_VALUE, + SubmitEventInit: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE_VALUE, + SVGAElement: base_config_1.TYPE_VALUE, + SVGAngle: base_config_1.TYPE_VALUE, + SVGAnimatedAngle: base_config_1.TYPE_VALUE, + SVGAnimatedBoolean: base_config_1.TYPE_VALUE, + SVGAnimatedEnumeration: base_config_1.TYPE_VALUE, + SVGAnimatedInteger: base_config_1.TYPE_VALUE, + SVGAnimatedLength: base_config_1.TYPE_VALUE, + SVGAnimatedLengthList: base_config_1.TYPE_VALUE, + SVGAnimatedNumber: base_config_1.TYPE_VALUE, + SVGAnimatedNumberList: base_config_1.TYPE_VALUE, + SVGAnimatedPoints: base_config_1.TYPE, + SVGAnimatedPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGAnimatedRect: base_config_1.TYPE_VALUE, + SVGAnimatedString: base_config_1.TYPE_VALUE, + SVGAnimatedTransformList: base_config_1.TYPE_VALUE, + SVGAnimateElement: base_config_1.TYPE_VALUE, + SVGAnimateMotionElement: base_config_1.TYPE_VALUE, + SVGAnimateTransformElement: base_config_1.TYPE_VALUE, + SVGAnimationElement: base_config_1.TYPE_VALUE, + SVGBoundingBoxOptions: base_config_1.TYPE, + SVGCircleElement: base_config_1.TYPE_VALUE, + SVGClipPathElement: base_config_1.TYPE_VALUE, + SVGComponentTransferFunctionElement: base_config_1.TYPE_VALUE, + SVGDefsElement: base_config_1.TYPE_VALUE, + SVGDescElement: base_config_1.TYPE_VALUE, + SVGElement: base_config_1.TYPE_VALUE, + SVGElementEventMap: base_config_1.TYPE, + SVGElementTagNameMap: base_config_1.TYPE, + SVGEllipseElement: base_config_1.TYPE_VALUE, + SVGFEBlendElement: base_config_1.TYPE_VALUE, + SVGFEColorMatrixElement: base_config_1.TYPE_VALUE, + SVGFEComponentTransferElement: base_config_1.TYPE_VALUE, + SVGFECompositeElement: base_config_1.TYPE_VALUE, + SVGFEConvolveMatrixElement: base_config_1.TYPE_VALUE, + SVGFEDiffuseLightingElement: base_config_1.TYPE_VALUE, + SVGFEDisplacementMapElement: base_config_1.TYPE_VALUE, + SVGFEDistantLightElement: base_config_1.TYPE_VALUE, + SVGFEDropShadowElement: base_config_1.TYPE_VALUE, + SVGFEFloodElement: base_config_1.TYPE_VALUE, + SVGFEFuncAElement: base_config_1.TYPE_VALUE, + SVGFEFuncBElement: base_config_1.TYPE_VALUE, + SVGFEFuncGElement: base_config_1.TYPE_VALUE, + SVGFEFuncRElement: base_config_1.TYPE_VALUE, + SVGFEGaussianBlurElement: base_config_1.TYPE_VALUE, + SVGFEImageElement: base_config_1.TYPE_VALUE, + SVGFEMergeElement: base_config_1.TYPE_VALUE, + SVGFEMergeNodeElement: base_config_1.TYPE_VALUE, + SVGFEMorphologyElement: base_config_1.TYPE_VALUE, + SVGFEOffsetElement: base_config_1.TYPE_VALUE, + SVGFEPointLightElement: base_config_1.TYPE_VALUE, + SVGFESpecularLightingElement: base_config_1.TYPE_VALUE, + SVGFESpotLightElement: base_config_1.TYPE_VALUE, + SVGFETileElement: base_config_1.TYPE_VALUE, + SVGFETurbulenceElement: base_config_1.TYPE_VALUE, + SVGFilterElement: base_config_1.TYPE_VALUE, + SVGFilterPrimitiveStandardAttributes: base_config_1.TYPE, + SVGFitToViewBox: base_config_1.TYPE, + SVGForeignObjectElement: base_config_1.TYPE_VALUE, + SVGGElement: base_config_1.TYPE_VALUE, + SVGGeometryElement: base_config_1.TYPE_VALUE, + SVGGradientElement: base_config_1.TYPE_VALUE, + SVGGraphicsElement: base_config_1.TYPE_VALUE, + SVGImageElement: base_config_1.TYPE_VALUE, + SVGLength: base_config_1.TYPE_VALUE, + SVGLengthList: base_config_1.TYPE_VALUE, + SVGLinearGradientElement: base_config_1.TYPE_VALUE, + SVGLineElement: base_config_1.TYPE_VALUE, + SVGMarkerElement: base_config_1.TYPE_VALUE, + SVGMaskElement: base_config_1.TYPE_VALUE, + SVGMatrix: base_config_1.TYPE_VALUE, + SVGMetadataElement: base_config_1.TYPE_VALUE, + SVGMPathElement: base_config_1.TYPE_VALUE, + SVGNumber: base_config_1.TYPE_VALUE, + SVGNumberList: base_config_1.TYPE_VALUE, + SVGPathElement: base_config_1.TYPE_VALUE, + SVGPatternElement: base_config_1.TYPE_VALUE, + SVGPoint: base_config_1.TYPE_VALUE, + SVGPointList: base_config_1.TYPE_VALUE, + SVGPolygonElement: base_config_1.TYPE_VALUE, + SVGPolylineElement: base_config_1.TYPE_VALUE, + SVGPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGRadialGradientElement: base_config_1.TYPE_VALUE, + SVGRect: base_config_1.TYPE_VALUE, + SVGRectElement: base_config_1.TYPE_VALUE, + SVGScriptElement: base_config_1.TYPE_VALUE, + SVGSetElement: base_config_1.TYPE_VALUE, + SVGStopElement: base_config_1.TYPE_VALUE, + SVGStringList: base_config_1.TYPE_VALUE, + SVGStyleElement: base_config_1.TYPE_VALUE, + SVGSVGElement: base_config_1.TYPE_VALUE, + SVGSVGElementEventMap: base_config_1.TYPE, + SVGSwitchElement: base_config_1.TYPE_VALUE, + SVGSymbolElement: base_config_1.TYPE_VALUE, + SVGTests: base_config_1.TYPE, + SVGTextContentElement: base_config_1.TYPE_VALUE, + SVGTextElement: base_config_1.TYPE_VALUE, + SVGTextPathElement: base_config_1.TYPE_VALUE, + SVGTextPositioningElement: base_config_1.TYPE_VALUE, + SVGTitleElement: base_config_1.TYPE_VALUE, + SVGTransform: base_config_1.TYPE_VALUE, + SVGTransformList: base_config_1.TYPE_VALUE, + SVGTSpanElement: base_config_1.TYPE_VALUE, + SVGUnitTypes: base_config_1.TYPE_VALUE, + SVGURIReference: base_config_1.TYPE, + SVGUseElement: base_config_1.TYPE_VALUE, + SVGViewElement: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + Text: base_config_1.TYPE_VALUE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextEvent: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TextTrack: base_config_1.TYPE_VALUE, + TextTrackCue: base_config_1.TYPE_VALUE, + TextTrackCueEventMap: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE_VALUE, + TextTrackEventMap: base_config_1.TYPE, + TextTrackKind: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE_VALUE, + TextTrackListEventMap: base_config_1.TYPE, + TextTrackMode: base_config_1.TYPE, + TimeRanges: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + ToggleEvent: base_config_1.TYPE_VALUE, + ToggleEventInit: base_config_1.TYPE, + Touch: base_config_1.TYPE_VALUE, + TouchEvent: base_config_1.TYPE_VALUE, + TouchEventInit: base_config_1.TYPE, + TouchInit: base_config_1.TYPE, + TouchList: base_config_1.TYPE_VALUE, + TouchType: base_config_1.TYPE, + TrackEvent: base_config_1.TYPE_VALUE, + TrackEventInit: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + TransitionEvent: base_config_1.TYPE_VALUE, + TransitionEventInit: base_config_1.TYPE, + TreeWalker: base_config_1.TYPE_VALUE, + UIEvent: base_config_1.TYPE_VALUE, + UIEventInit: base_config_1.TYPE, + Uint32List: base_config_1.TYPE, + ULongRange: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + UserActivation: base_config_1.TYPE_VALUE, + UserVerificationRequirement: base_config_1.TYPE, + ValidityState: base_config_1.TYPE_VALUE, + ValidityStateFlags: base_config_1.TYPE, + VibratePattern: base_config_1.TYPE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFacingModeEnum: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCallbackMetadata: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoFrameRequestCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoPlaybackQuality: base_config_1.TYPE_VALUE, + VideoTransferCharacteristics: base_config_1.TYPE, + ViewTransition: base_config_1.TYPE_VALUE, + ViewTransitionUpdateCallback: base_config_1.TYPE, + VisualViewport: base_config_1.TYPE_VALUE, + VisualViewportEventMap: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + VTTCue: base_config_1.TYPE_VALUE, + VTTRegion: base_config_1.TYPE_VALUE, + WakeLock: base_config_1.TYPE_VALUE, + WakeLockSentinel: base_config_1.TYPE_VALUE, + WakeLockSentinelEventMap: base_config_1.TYPE, + WakeLockType: base_config_1.TYPE, + WaveShaperNode: base_config_1.TYPE_VALUE, + WaveShaperOptions: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebKitCSSMatrix: base_config_1.TYPE_VALUE, + webkitURL: base_config_1.TYPE_VALUE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WheelEvent: base_config_1.TYPE_VALUE, + WheelEventInit: base_config_1.TYPE, + Window: base_config_1.TYPE_VALUE, + WindowEventHandlers: base_config_1.TYPE, + WindowEventHandlersEventMap: base_config_1.TYPE, + WindowEventMap: base_config_1.TYPE, + WindowLocalStorage: base_config_1.TYPE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + WindowPostMessageOptions: base_config_1.TYPE, + WindowProxy: base_config_1.TYPE, + WindowSessionStorage: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + Worklet: base_config_1.TYPE_VALUE, + WorkletOptions: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLDocument: base_config_1.TYPE_VALUE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, + XMLSerializer: base_config_1.TYPE_VALUE, + XPathEvaluator: base_config_1.TYPE_VALUE, + XPathEvaluatorBase: base_config_1.TYPE, + XPathExpression: base_config_1.TYPE_VALUE, + XPathNSResolver: base_config_1.TYPE, + XPathResult: base_config_1.TYPE_VALUE, + XSLTProcessor: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=dom.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map new file mode 100644 index 00000000..d1387ff2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../src/lib/dom.ts"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zB,6BAA6B,EAAE,kBAAI;IACnC,UAAU,EAAE,wBAAU;IACtB,cAAc,EAAE,kBAAI;IACpB,MAAM,EAAE,wBAAU;IAClB,mBAAmB,EAAE,kBAAI;IACzB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,kBAAI;IACpB,kBAAkB,EAAE,kBAAI;IACxB,yBAAyB,EAAE,kBAAI;IAC/B,wBAAwB,EAAE,kBAAI;IAC9B,WAAW,EAAE,kBAAI;IACjB,oBAAoB,EAAE,kBAAI;IAC1B,MAAM,EAAE,wBAAU;IAClB,cAAc,EAAE,kBAAI;IACpB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,OAAO,EAAE,wBAAU;IACnB,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,wBAAU;IAC1B,+BAA+B,EAAE,wBAAU;IAC3C,2BAA2B,EAAE,wBAAU;IACvC,gBAAgB,EAAE,kBAAI;IACtB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,wBAAU;IACvB,cAAc,EAAE,wBAAU;IAC1B,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;IAChC,aAAa,EAAE,wBAAU;IACzB,cAAc,EAAE,wBAAU;IAC1B,kBAAkB,EAAE,kBAAI;IACxB,eAAe,EAAE,wBAAU;IAC3B,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,wBAAU;IACvB,aAAa,EAAE,wBAAU;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts new file mode 100644 index 00000000..8bc3c49f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_collection: Record; +//# sourceMappingURL=es2015.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map new file mode 100644 index 00000000..a703b5c9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAWzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js new file mode 100644 index 00000000..0ebec850 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js @@ -0,0 +1,21 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_collection = { + Map: base_config_1.TYPE_VALUE, + MapConstructor: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE_VALUE, + SetConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE_VALUE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE_VALUE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map new file mode 100644 index 00000000..91c43d4b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.js","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts new file mode 100644 index 00000000..c309d52d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_core: Record; +//# sourceMappingURL=es2015.core.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map new file mode 100644 index 00000000..2433e218 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAsBnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js new file mode 100644 index 00000000..e65b6e6f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js @@ -0,0 +1,32 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_core = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_core = { + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Math: base_config_1.TYPE, + NumberConstructor: base_config_1.TYPE, + ObjectConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + StringConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.core.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map new file mode 100644 index 00000000..cc66bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.js","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts new file mode 100644 index 00000000..7f7de237 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015: Record; +//# sourceMappingURL=es2015.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map new file mode 100644 index 00000000..114858ec --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,MAAM,EAWd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts new file mode 100644 index 00000000..cb5ce5da --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_generator: Record; +//# sourceMappingURL=es2015.generator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map new file mode 100644 index 00000000..6fff309a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,gBAAgB,EAKxB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js new file mode 100644 index 00000000..1449b264 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_generator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2015_generator = { + ...es2015_iterable_1.es2015_iterable, + Generator: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + GeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.generator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map new file mode 100644 index 00000000..6895ef3e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.js","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,SAAS,EAAE,kBAAI;IACf,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts new file mode 100644 index 00000000..9daa14ef --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_iterable: Record; +//# sourceMappingURL=es2015.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map new file mode 100644 index 00000000..924c3ca4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAkDvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js new file mode 100644 index 00000000..2e9bbc4a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js @@ -0,0 +1,61 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_iterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_iterable = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayIterator: base_config_1.TYPE, + BuiltinIteratorReturn: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Iterable: base_config_1.TYPE, + IterableIterator: base_config_1.TYPE, + Iterator: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + IteratorResult: base_config_1.TYPE, + IteratorReturnResult: base_config_1.TYPE, + IteratorYieldResult: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + MapIterator: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + SetIterator: base_config_1.TYPE, + String: base_config_1.TYPE, + StringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map new file mode 100644 index 00000000..4a6651bc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.js","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;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I;IAC5B,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js new file mode 100644 index 00000000..6144de8d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2015 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es2015.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map new file mode 100644 index 00000000..2cb76d40 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.js","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts new file mode 100644 index 00000000..4b0b7d19 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_promise: Record; +//# sourceMappingURL=es2015.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map new file mode 100644 index 00000000..00e9596c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js new file mode 100644 index 00000000..93baf9f0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_promise = { + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map new file mode 100644 index 00000000..cbab7fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.js","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts new file mode 100644 index 00000000..a2a87c0f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_proxy: Record; +//# sourceMappingURL=es2015.proxy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map new file mode 100644 index 00000000..07cafbda --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAGpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js new file mode 100644 index 00000000..24876c6f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_proxy = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_proxy = { + ProxyConstructor: base_config_1.TYPE, + ProxyHandler: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.proxy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map new file mode 100644 index 00000000..17ef6bc9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.js","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts new file mode 100644 index 00000000..7e94f32c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_reflect: Record; +//# sourceMappingURL=es2015.reflect.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map new file mode 100644 index 00000000..c9708893 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js new file mode 100644 index 00000000..c8d8b044 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_reflect = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_reflect = { + Reflect: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2015.reflect.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map new file mode 100644 index 00000000..b7bbca9f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.js","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts new file mode 100644 index 00000000..e78a6670 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol: Record; +//# sourceMappingURL=es2015.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map new file mode 100644 index 00000000..3741cc8a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js new file mode 100644 index 00000000..62876aa5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_symbol = { + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map new file mode 100644 index 00000000..9bdff523 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts new file mode 100644 index 00000000..7b18f41c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol_wellknown: Record; +//# sourceMappingURL=es2015.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..7781adbf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,uBAAuB,EAmC/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js new file mode 100644 index 00000000..39404d66 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js @@ -0,0 +1,46 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_symbol_wellknown = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Date: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + JSON: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + Math: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map new file mode 100644 index 00000000..590f3d62 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,6BAAa;IAChB,KAAK,EAAE,kBAAI;IACX,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,kBAAI;IACV,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;IACvB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,IAAI,EAAE,kBAAI;IACV,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,MAAM,EAAE,kBAAI;IACZ,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts new file mode 100644 index 00000000..7e6c8903 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_array_include: Record; +//# sourceMappingURL=es2016.array.include.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map new file mode 100644 index 00000000..05a090d4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAY5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js new file mode 100644 index 00000000..59a860df --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_array_include = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_array_include = { + Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2016.array.include.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map new file mode 100644 index 00000000..9b9cbf76 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.js","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAI;IACX,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts new file mode 100644 index 00000000..2049c83e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016: Record; +//# sourceMappingURL=es2016.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map new file mode 100644 index 00000000..69328de8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,MAAM,EAId,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts new file mode 100644 index 00000000..f940014b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_full: Record; +//# sourceMappingURL=es2016.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map new file mode 100644 index 00000000..b4acbeca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js new file mode 100644 index 00000000..75156509 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2016_1 = require("./es2016"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2016_full = { + ...es2016_1.es2016, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2016.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map new file mode 100644 index 00000000..7e363a78 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.js","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts new file mode 100644 index 00000000..c5567ffb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_intl: Record; +//# sourceMappingURL=es2016.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map new file mode 100644 index 00000000..a53c670d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js new file mode 100644 index 00000000..c63368d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2016.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map new file mode 100644 index 00000000..4ff4dc3d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.js","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js new file mode 100644 index 00000000..65d6ace4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es2016 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es2016.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map new file mode 100644 index 00000000..1bbe7d0b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.js","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts new file mode 100644 index 00000000..5c91e313 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_arraybuffer: Record; +//# sourceMappingURL=es2017.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map new file mode 100644 index 00000000..dc2e35e6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAE1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js new file mode 100644 index 00000000..f6cd2009 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_arraybuffer = { + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map new file mode 100644 index 00000000..ce09c918 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts new file mode 100644 index 00000000..7c40c712 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017: Record; +//# sourceMappingURL=es2017.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map new file mode 100644 index 00000000..9b8e303c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts new file mode 100644 index 00000000..68d2c05e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_date: Record; +//# sourceMappingURL=es2017.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map new file mode 100644 index 00000000..01887fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js new file mode 100644 index 00000000..6184d2a4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_date = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_date = { + DateConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map new file mode 100644 index 00000000..cb5ec85a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.js","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,eAAe,EAAE,kBAAI;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts new file mode 100644 index 00000000..385bd1c3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_full: Record; +//# sourceMappingURL=es2017.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map new file mode 100644 index 00000000..daf9b22e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js new file mode 100644 index 00000000..5d478b96 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2017_1 = require("./es2017"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2017_full = { + ...es2017_1.es2017, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2017.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map new file mode 100644 index 00000000..14812363 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.js","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts new file mode 100644 index 00000000..4db70db8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_intl: Record; +//# sourceMappingURL=es2017.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map new file mode 100644 index 00000000..095c5df2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js new file mode 100644 index 00000000..2115eda7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2017.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map new file mode 100644 index 00000000..2143dc6a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.js","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js new file mode 100644 index 00000000..c4fecc34 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017 = void 0; +const es2016_1 = require("./es2016"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +exports.es2017 = { + ...es2016_1.es2016, + ...es2017_arraybuffer_1.es2017_arraybuffer, + ...es2017_date_1.es2017_date, + ...es2017_intl_1.es2017_intl, + ...es2017_object_1.es2017_object, + ...es2017_sharedmemory_1.es2017_sharedmemory, + ...es2017_string_1.es2017_string, + ...es2017_typedarrays_1.es2017_typedarrays, +}; +//# sourceMappingURL=es2017.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map new file mode 100644 index 00000000..514e6dca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.js","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAE7C,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,yBAAW;IACd,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,uCAAkB;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts new file mode 100644 index 00000000..268df74f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_object: Record; +//# sourceMappingURL=es2017.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map new file mode 100644 index 00000000..95c3f65a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js new file mode 100644 index 00000000..1aa0ee7b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map new file mode 100644 index 00000000..3e9b2e20 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.js","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts new file mode 100644 index 00000000..e647026b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_sharedmemory: Record; +//# sourceMappingURL=es2017.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map new file mode 100644 index 00000000..f5cc83f4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,mBAAmB,EAO3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js new file mode 100644 index 00000000..f0d77cc4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js @@ -0,0 +1,19 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2017_sharedmemory = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + ArrayBufferTypes: base_config_1.TYPE, + Atomics: base_config_1.TYPE_VALUE, + SharedArrayBuffer: base_config_1.TYPE_VALUE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map new file mode 100644 index 00000000..571f04f8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts new file mode 100644 index 00000000..effb6ad8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_string: Record; +//# sourceMappingURL=es2017.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map new file mode 100644 index 00000000..81f180e5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js new file mode 100644 index 00000000..9ab29367 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map new file mode 100644 index 00000000..48600fb2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.js","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts new file mode 100644 index 00000000..97b9cce1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_typedarrays: Record; +//# sourceMappingURL=es2017.typedarrays.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map new file mode 100644 index 00000000..7b000cac --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAU1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js new file mode 100644 index 00000000..750a787b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_typedarrays = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_typedarrays = { + Float32ArrayConstructor: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.typedarrays.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map new file mode 100644 index 00000000..cd63f8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.js","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;IAC7B,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,4BAA4B,EAAE,kBAAI;IAClC,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts new file mode 100644 index 00000000..1c0ad385 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asyncgenerator: Record; +//# sourceMappingURL=es2018.asyncgenerator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map new file mode 100644 index 00000000..b3488fdb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,qBAAqB,EAK7B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js new file mode 100644 index 00000000..9e7f03f2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asyncgenerator = void 0; +const base_config_1 = require("./base-config"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.es2018_asyncgenerator = { + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncGenerator: base_config_1.TYPE, + AsyncGeneratorFunction: base_config_1.TYPE, + AsyncGeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asyncgenerator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map new file mode 100644 index 00000000..82c23fb4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.js","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,iEAA8D;AAEjD,QAAA,qBAAqB,GAAG;IACnC,GAAG,2CAAoB;IACvB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,iCAAiC,EAAE,kBAAI;CACM,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts new file mode 100644 index 00000000..441e1b4a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asynciterable: Record; +//# sourceMappingURL=es2018.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map new file mode 100644 index 00000000..26194f5b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js new file mode 100644 index 00000000..57dbcbc1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2018_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map new file mode 100644 index 00000000..27ec60cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.js","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts new file mode 100644 index 00000000..d6a57e0b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018: Record; +//# sourceMappingURL=es2018.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map new file mode 100644 index 00000000..e0c93481 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts new file mode 100644 index 00000000..def2b62d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_full: Record; +//# sourceMappingURL=es2018.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map new file mode 100644 index 00000000..73ff781d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js new file mode 100644 index 00000000..65c7681b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2018_1 = require("./es2018"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2018_full = { + ...es2018_1.es2018, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2018.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map new file mode 100644 index 00000000..94599c84 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.js","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts new file mode 100644 index 00000000..e80a6793 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_intl: Record; +//# sourceMappingURL=es2018.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map new file mode 100644 index 00000000..1e7036c0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js new file mode 100644 index 00000000..d3553a73 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2018.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map new file mode 100644 index 00000000..69869715 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.js","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js new file mode 100644 index 00000000..307a6d47 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018 = void 0; +const es2017_1 = require("./es2017"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +exports.es2018 = { + ...es2017_1.es2017, + ...es2018_asynciterable_1.es2018_asynciterable, + ...es2018_asyncgenerator_1.es2018_asyncgenerator, + ...es2018_promise_1.es2018_promise, + ...es2018_regexp_1.es2018_regexp, + ...es2018_intl_1.es2018_intl, +}; +//# sourceMappingURL=es2018.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map new file mode 100644 index 00000000..0ef7f4b7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.js","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,6CAAqB;IACxB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts new file mode 100644 index 00000000..2ff021b6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_promise: Record; +//# sourceMappingURL=es2018.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map new file mode 100644 index 00000000..5523cb25 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js new file mode 100644 index 00000000..7d0b41e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_promise = { + Promise: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map new file mode 100644 index 00000000..e0d94c8f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.js","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts new file mode 100644 index 00000000..2e69d45a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_regexp: Record; +//# sourceMappingURL=es2018.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map new file mode 100644 index 00000000..e8e21db9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAIrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js new file mode 100644 index 00000000..2ee6743c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map new file mode 100644 index 00000000..0bf9586c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.js","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts new file mode 100644 index 00000000..845c62f7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_array: Record; +//# sourceMappingURL=es2019.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map new file mode 100644 index 00000000..7c24db41 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAIpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js new file mode 100644 index 00000000..9073956d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_array = { + Array: base_config_1.TYPE, + FlatArray: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map new file mode 100644 index 00000000..5875c7ba --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.js","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,SAAS,EAAE,kBAAI;IACf,aAAa,EAAE,kBAAI;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts new file mode 100644 index 00000000..1d01d51d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019: Record; +//# sourceMappingURL=es2019.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map new file mode 100644 index 00000000..39a630af --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts new file mode 100644 index 00000000..d43d283b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_full: Record; +//# sourceMappingURL=es2019.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map new file mode 100644 index 00000000..2e2c2ef9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js new file mode 100644 index 00000000..548e3842 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2019_1 = require("./es2019"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2019_full = { + ...es2019_1.es2019, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2019.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map new file mode 100644 index 00000000..07df3cd5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.js","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts new file mode 100644 index 00000000..c560ab4a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_intl: Record; +//# sourceMappingURL=es2019.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map new file mode 100644 index 00000000..ebcc2efc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js new file mode 100644 index 00000000..32e3360c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2019.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map new file mode 100644 index 00000000..74276766 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.js","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js new file mode 100644 index 00000000..af8b4ab3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019 = void 0; +const es2018_1 = require("./es2018"); +const es2019_array_1 = require("./es2019.array"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +exports.es2019 = { + ...es2018_1.es2018, + ...es2019_array_1.es2019_array, + ...es2019_object_1.es2019_object, + ...es2019_string_1.es2019_string, + ...es2019_symbol_1.es2019_symbol, + ...es2019_intl_1.es2019_intl, +}; +//# sourceMappingURL=es2019.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map new file mode 100644 index 00000000..9ffafde4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.js","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts new file mode 100644 index 00000000..317dc348 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_object: Record; +//# sourceMappingURL=es2019.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map new file mode 100644 index 00000000..8b3b3192 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js new file mode 100644 index 00000000..2d3f9c8e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_object = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2019_object = { + ...es2015_iterable_1.es2015_iterable, + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map new file mode 100644 index 00000000..4cee0a9c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.js","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts new file mode 100644 index 00000000..6400ddca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_string: Record; +//# sourceMappingURL=es2019.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map new file mode 100644 index 00000000..1b2c8b82 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js new file mode 100644 index 00000000..cd44d0d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map new file mode 100644 index 00000000..8cdce85b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.js","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts new file mode 100644 index 00000000..66073bcd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_symbol: Record; +//# sourceMappingURL=es2019.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map new file mode 100644 index 00000000..8494681c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js new file mode 100644 index 00000000..5bb7979f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map new file mode 100644 index 00000000..f5101510 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.js","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts new file mode 100644 index 00000000..05bbb19e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_bigint: Record; +//# sourceMappingURL=es2020.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map new file mode 100644 index 00000000..56ab0964 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js new file mode 100644 index 00000000..58e91ae9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map new file mode 100644 index 00000000..c97b00d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.js","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts new file mode 100644 index 00000000..9786e11e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020: Record; +//# sourceMappingURL=es2020.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map new file mode 100644 index 00000000..dfcb06f5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,EAUd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts new file mode 100644 index 00000000..e7ee0517 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_date: Record; +//# sourceMappingURL=es2020.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map new file mode 100644 index 00000000..01ca954e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js new file mode 100644 index 00000000..bcfa2ee6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_date = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_date = { + ...es2020_intl_1.es2020_intl, + Date: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map new file mode 100644 index 00000000..94db60f7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.js","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts new file mode 100644 index 00000000..67ce5201 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_full: Record; +//# sourceMappingURL=es2020.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map new file mode 100644 index 00000000..888da8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js new file mode 100644 index 00000000..15fabbc3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2020_1 = require("./es2020"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2020_full = { + ...es2020_1.es2020, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2020.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map new file mode 100644 index 00000000..1193ecc2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.js","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts new file mode 100644 index 00000000..6fe292a7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_intl: Record; +//# sourceMappingURL=es2020.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map new file mode 100644 index 00000000..5947cdf1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js new file mode 100644 index 00000000..f934de56 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_intl = void 0; +const base_config_1 = require("./base-config"); +const es2018_intl_1 = require("./es2018.intl"); +exports.es2020_intl = { + ...es2018_intl_1.es2018_intl, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map new file mode 100644 index 00000000..9a6d7e1d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.js","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAC3C,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js new file mode 100644 index 00000000..57b30c03 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020 = void 0; +const es2019_1 = require("./es2019"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020 = { + ...es2019_1.es2019, + ...es2020_bigint_1.es2020_bigint, + ...es2020_date_1.es2020_date, + ...es2020_number_1.es2020_number, + ...es2020_promise_1.es2020_promise, + ...es2020_sharedmemory_1.es2020_sharedmemory, + ...es2020_string_1.es2020_string, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + ...es2020_intl_1.es2020_intl, +}; +//# sourceMappingURL=es2020.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map new file mode 100644 index 00000000..0b516166 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.js","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,6BAAa;IAChB,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts new file mode 100644 index 00000000..dff240d7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_number: Record; +//# sourceMappingURL=es2020.number.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map new file mode 100644 index 00000000..c4d193d7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js new file mode 100644 index 00000000..8f50949b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_number = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_number = { + ...es2020_intl_1.es2020_intl, + Number: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.number.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map new file mode 100644 index 00000000..b4398867 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.js","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts new file mode 100644 index 00000000..b45f2053 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_promise: Record; +//# sourceMappingURL=es2020.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map new file mode 100644 index 00000000..bbd33b97 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js new file mode 100644 index 00000000..ea610c08 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2020_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseFulfilledResult: base_config_1.TYPE, + PromiseRejectedResult: base_config_1.TYPE, + PromiseSettledResult: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map new file mode 100644 index 00000000..4c26bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.js","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts new file mode 100644 index 00000000..ebbb06c0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_sharedmemory: Record; +//# sourceMappingURL=es2020.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map new file mode 100644 index 00000000..d7037521 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAG3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js new file mode 100644 index 00000000..97e08a30 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2020_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map new file mode 100644 index 00000000..96acd864 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts new file mode 100644 index 00000000..2d116e7d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_string: Record; +//# sourceMappingURL=es2020.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map new file mode 100644 index 00000000..ca61963d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js new file mode 100644 index 00000000..5a37ea87 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_string = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020_string = { + ...es2015_iterable_1.es2015_iterable, + ...es2020_intl_1.es2020_intl, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map new file mode 100644 index 00000000..ec556aea --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.js","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,+CAA4C;AAC5C,uEAAoE;AAEvD,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,GAAG,yBAAW;IACd,GAAG,iDAAuB;IAC1B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts new file mode 100644 index 00000000..682c705a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_symbol_wellknown: Record; +//# sourceMappingURL=es2020.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..e83fc905 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,uBAAuB,EAM/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js new file mode 100644 index 00000000..d2542af2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2020_symbol_wellknown = { + ...es2015_iterable_1.es2015_iterable, + ...es2015_symbol_1.es2015_symbol, + RegExp: base_config_1.TYPE, + RegExpStringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map new file mode 100644 index 00000000..a170f1da --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,iCAAe;IAClB,GAAG,6BAAa;IAChB,MAAM,EAAE,kBAAI;IACZ,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts new file mode 100644 index 00000000..c9ff9f6b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021: Record; +//# sourceMappingURL=es2021.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map new file mode 100644 index 00000000..e0f8e9a8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,EAMd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts new file mode 100644 index 00000000..31fc0ef7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_full: Record; +//# sourceMappingURL=es2021.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map new file mode 100644 index 00000000..88d7bb50 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js new file mode 100644 index 00000000..2465a4b0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2021_1 = require("./es2021"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2021_full = { + ...es2021_1.es2021, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2021.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map new file mode 100644 index 00000000..aa11a6bd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.js","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts new file mode 100644 index 00000000..4435689d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_intl: Record; +//# sourceMappingURL=es2021.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map new file mode 100644 index 00000000..aede0332 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js new file mode 100644 index 00000000..d5c1956a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2021.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map new file mode 100644 index 00000000..9da715fe --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.js","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js new file mode 100644 index 00000000..86b11bb8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021 = void 0; +const es2020_1 = require("./es2020"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +exports.es2021 = { + ...es2020_1.es2020, + ...es2021_promise_1.es2021_promise, + ...es2021_string_1.es2021_string, + ...es2021_weakref_1.es2021_weakref, + ...es2021_intl_1.es2021_intl, +}; +//# sourceMappingURL=es2021.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map new file mode 100644 index 00000000..4edb4433 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.js","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts new file mode 100644 index 00000000..8eb9e9ec --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_promise: Record; +//# sourceMappingURL=es2021.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map new file mode 100644 index 00000000..50a09e7f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAItB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js new file mode 100644 index 00000000..85ed0f14 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_promise = { + AggregateError: base_config_1.TYPE_VALUE, + AggregateErrorConstructor: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map new file mode 100644 index 00000000..0bfb4dd7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.js","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts new file mode 100644 index 00000000..f54d34a0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_string: Record; +//# sourceMappingURL=es2021.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map new file mode 100644 index 00000000..8eecd383 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js new file mode 100644 index 00000000..f6c16c75 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map new file mode 100644 index 00000000..9f3d3cb5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.js","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts new file mode 100644 index 00000000..d7f5b674 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_weakref: Record; +//# sourceMappingURL=es2021.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map new file mode 100644 index 00000000..bf279179 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js new file mode 100644 index 00000000..73ca39ba --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2021_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map new file mode 100644 index 00000000..c2889a11 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.js","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts new file mode 100644 index 00000000..b9d87cde --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_array: Record; +//# sourceMappingURL=es2022.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map new file mode 100644 index 00000000..ede578de --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js new file mode 100644 index 00000000..f76a4e24 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map new file mode 100644 index 00000000..c0b839eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.js","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts new file mode 100644 index 00000000..12bc2fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022: Record; +//# sourceMappingURL=es2022.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map new file mode 100644 index 00000000..1f369cd3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts new file mode 100644 index 00000000..6619e107 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_error: Record; +//# sourceMappingURL=es2022.error.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map new file mode 100644 index 00000000..25c46d44 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,YAAY,EAYpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js new file mode 100644 index 00000000..af9c5264 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_error = void 0; +const base_config_1 = require("./base-config"); +const es2021_promise_1 = require("./es2021.promise"); +exports.es2022_error = { + ...es2021_promise_1.es2021_promise, + AggregateErrorConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE, + ErrorConstructor: base_config_1.TYPE, + ErrorOptions: base_config_1.TYPE, + EvalErrorConstructor: base_config_1.TYPE, + RangeErrorConstructor: base_config_1.TYPE, + ReferenceErrorConstructor: base_config_1.TYPE, + SyntaxErrorConstructor: base_config_1.TYPE, + TypeErrorConstructor: base_config_1.TYPE, + URIErrorConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.error.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map new file mode 100644 index 00000000..e0155666 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.js","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,qDAAkD;AAErC,QAAA,YAAY,GAAG;IAC1B,GAAG,+BAAc;IACjB,yBAAyB,EAAE,kBAAI;IAC/B,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;IAClB,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,yBAAyB,EAAE,kBAAI;IAC/B,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts new file mode 100644 index 00000000..df141b03 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_full: Record; +//# sourceMappingURL=es2022.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map new file mode 100644 index 00000000..fd3624eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js new file mode 100644 index 00000000..aab18ad6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2022_1 = require("./es2022"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2022_full = { + ...es2022_1.es2022, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2022.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map new file mode 100644 index 00000000..529ffaef --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.js","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts new file mode 100644 index 00000000..2b2c0813 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_intl: Record; +//# sourceMappingURL=es2022.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map new file mode 100644 index 00000000..b72b4f63 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js new file mode 100644 index 00000000..8c9373a5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2022.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map new file mode 100644 index 00000000..d49a40b3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.js","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js new file mode 100644 index 00000000..159ac906 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022 = void 0; +const es2021_1 = require("./es2021"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +exports.es2022 = { + ...es2021_1.es2021, + ...es2022_array_1.es2022_array, + ...es2022_error_1.es2022_error, + ...es2022_intl_1.es2022_intl, + ...es2022_object_1.es2022_object, + ...es2022_regexp_1.es2022_regexp, + ...es2022_string_1.es2022_string, +}; +//# sourceMappingURL=es2022.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map new file mode 100644 index 00000000..6b047d8b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.js","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,2BAAY;IACf,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts new file mode 100644 index 00000000..ffbb45d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_object: Record; +//# sourceMappingURL=es2022.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map new file mode 100644 index 00000000..951140e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js new file mode 100644 index 00000000..a03f8695 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map new file mode 100644 index 00000000..026d25d1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.js","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts new file mode 100644 index 00000000..1501510d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_regexp: Record; +//# sourceMappingURL=es2022.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map new file mode 100644 index 00000000..a3548a8a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js new file mode 100644 index 00000000..93cc712a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpIndicesArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map new file mode 100644 index 00000000..a3618bd9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.js","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts new file mode 100644 index 00000000..d1284cd4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_string: Record; +//# sourceMappingURL=es2022.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map new file mode 100644 index 00000000..6ee0b619 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js new file mode 100644 index 00000000..18621ed2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map new file mode 100644 index 00000000..4dcf0034 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.js","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts new file mode 100644 index 00000000..ef56316f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_array: Record; +//# sourceMappingURL=es2023.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map new file mode 100644 index 00000000..c92b4b27 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js new file mode 100644 index 00000000..c06c15b2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map new file mode 100644 index 00000000..6fefbb19 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.js","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts new file mode 100644 index 00000000..4f773c89 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_collection: Record; +//# sourceMappingURL=es2023.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map new file mode 100644 index 00000000..13873583 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js new file mode 100644 index 00000000..66c80e60 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_collection = { + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map new file mode 100644 index 00000000..9210e59b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.js","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts new file mode 100644 index 00000000..17e3cf0d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023: Record; +//# sourceMappingURL=es2023.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map new file mode 100644 index 00000000..de8c9830 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,MAAM,EAKd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts new file mode 100644 index 00000000..ac43b5cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_full: Record; +//# sourceMappingURL=es2023.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map new file mode 100644 index 00000000..3c65b5f8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js new file mode 100644 index 00000000..1c7ecc7a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2023_1 = require("./es2023"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2023_full = { + ...es2023_1.es2023, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2023.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map new file mode 100644 index 00000000..f3f07ca0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.js","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts new file mode 100644 index 00000000..e8581d3d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_intl: Record; +//# sourceMappingURL=es2023.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map new file mode 100644 index 00000000..33dbb147 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js new file mode 100644 index 00000000..c6a2c6ff --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2023.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map new file mode 100644 index 00000000..85d8454f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.js","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js new file mode 100644 index 00000000..1cc68e47 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023 = void 0; +const es2022_1 = require("./es2022"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_intl_1 = require("./es2023.intl"); +exports.es2023 = { + ...es2022_1.es2022, + ...es2023_array_1.es2023_array, + ...es2023_collection_1.es2023_collection, + ...es2023_intl_1.es2023_intl, +}; +//# sourceMappingURL=es2023.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map new file mode 100644 index 00000000..3fc9f994 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.js","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,qCAAiB;IACpB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts new file mode 100644 index 00000000..0a80d4dc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_arraybuffer: Record; +//# sourceMappingURL=es2024.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map new file mode 100644 index 00000000..39fda514 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAG1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js new file mode 100644 index 00000000..be7726ed --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_arraybuffer = { + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map new file mode 100644 index 00000000..aafcc843 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts new file mode 100644 index 00000000..576c0a1a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_collection: Record; +//# sourceMappingURL=es2024.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map new file mode 100644 index 00000000..600c030d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js new file mode 100644 index 00000000..26cc4a66 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_collection = { + MapConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map new file mode 100644 index 00000000..3c0f5384 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.js","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts new file mode 100644 index 00000000..307c99f1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024: Record; +//# sourceMappingURL=es2024.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map new file mode 100644 index 00000000..f7185271 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts new file mode 100644 index 00000000..d875abb0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_full: Record; +//# sourceMappingURL=es2024.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map new file mode 100644 index 00000000..295d5b9d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js new file mode 100644 index 00000000..21f549f6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2024_1 = require("./es2024"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2024_full = { + ...es2024_1.es2024, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2024.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map new file mode 100644 index 00000000..8e25e889 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.js","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js new file mode 100644 index 00000000..7b2cd672 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024 = void 0; +const es2023_1 = require("./es2023"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +exports.es2024 = { + ...es2023_1.es2023, + ...es2024_arraybuffer_1.es2024_arraybuffer, + ...es2024_collection_1.es2024_collection, + ...es2024_object_1.es2024_object, + ...es2024_promise_1.es2024_promise, + ...es2024_regexp_1.es2024_regexp, + ...es2024_sharedmemory_1.es2024_sharedmemory, + ...es2024_string_1.es2024_string, +}; +//# sourceMappingURL=es2024.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map new file mode 100644 index 00000000..44605c7a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.js","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,2DAAwD;AACxD,mDAAgD;AAChD,qDAAkD;AAClD,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,qCAAiB;IACpB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts new file mode 100644 index 00000000..532a1333 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_object: Record; +//# sourceMappingURL=es2024.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map new file mode 100644 index 00000000..3a3c8a50 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js new file mode 100644 index 00000000..4af32569 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map new file mode 100644 index 00000000..a86f3b4b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.js","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts new file mode 100644 index 00000000..c38ec2ea --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_promise: Record; +//# sourceMappingURL=es2024.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map new file mode 100644 index 00000000..2919b17e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js new file mode 100644 index 00000000..b05487fe --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map new file mode 100644 index 00000000..d31e7e95 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.js","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts new file mode 100644 index 00000000..6c192725 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_regexp: Record; +//# sourceMappingURL=es2024.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map new file mode 100644 index 00000000..b2e8427e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js new file mode 100644 index 00000000..3b5d9d5a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map new file mode 100644 index 00000000..d4883bb6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.js","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts new file mode 100644 index 00000000..75865c5e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_sharedmemory: Record; +//# sourceMappingURL=es2024.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map new file mode 100644 index 00000000..38f6f650 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAK3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js new file mode 100644 index 00000000..9769eb27 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2024_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, + SharedArrayBuffer: base_config_1.TYPE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map new file mode 100644 index 00000000..d0dca258 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;IACb,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts new file mode 100644 index 00000000..9680181f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_string: Record; +//# sourceMappingURL=es2024.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map new file mode 100644 index 00000000..40b35333 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js new file mode 100644 index 00000000..eae1cb1b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map new file mode 100644 index 00000000..9922fdaa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.js","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts new file mode 100644 index 00000000..24dc6090 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es5: Record; +//# sourceMappingURL=es5.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map new file mode 100644 index 00000000..143906d2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.d.ts","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EA0GX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js new file mode 100644 index 00000000..d77b03ba --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js @@ -0,0 +1,118 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es5 = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +exports.es5 = { + ...decorators_1.decorators, + ...decorators_legacy_1.decorators_legacy, + Array: base_config_1.TYPE_VALUE, + ArrayBuffer: base_config_1.TYPE_VALUE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayBufferLike: base_config_1.TYPE, + ArrayBufferTypes: base_config_1.TYPE, + ArrayBufferView: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayLike: base_config_1.TYPE, + Awaited: base_config_1.TYPE, + Boolean: base_config_1.TYPE_VALUE, + BooleanConstructor: base_config_1.TYPE, + CallableFunction: base_config_1.TYPE, + Capitalize: base_config_1.TYPE, + ConcatArray: base_config_1.TYPE, + ConstructorParameters: base_config_1.TYPE, + DataView: base_config_1.TYPE_VALUE, + DataViewConstructor: base_config_1.TYPE, + Date: base_config_1.TYPE_VALUE, + DateConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE_VALUE, + ErrorConstructor: base_config_1.TYPE, + EvalError: base_config_1.TYPE_VALUE, + EvalErrorConstructor: base_config_1.TYPE, + Exclude: base_config_1.TYPE, + Extract: base_config_1.TYPE, + Float32Array: base_config_1.TYPE_VALUE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE_VALUE, + Float64ArrayConstructor: base_config_1.TYPE, + Function: base_config_1.TYPE_VALUE, + FunctionConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + ImportAssertions: base_config_1.TYPE, + ImportAttributes: base_config_1.TYPE, + ImportCallOptions: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InstanceType: base_config_1.TYPE, + Int8Array: base_config_1.TYPE_VALUE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE_VALUE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE_VALUE, + Int32ArrayConstructor: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, + JSON: base_config_1.TYPE_VALUE, + Lowercase: base_config_1.TYPE, + Math: base_config_1.TYPE_VALUE, + NewableFunction: base_config_1.TYPE, + NoInfer: base_config_1.TYPE, + NonNullable: base_config_1.TYPE, + Number: base_config_1.TYPE_VALUE, + NumberConstructor: base_config_1.TYPE, + Object: base_config_1.TYPE_VALUE, + ObjectConstructor: base_config_1.TYPE, + Omit: base_config_1.TYPE, + OmitThisParameter: base_config_1.TYPE, + Parameters: base_config_1.TYPE, + Partial: base_config_1.TYPE, + Pick: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructorLike: base_config_1.TYPE, + PromiseLike: base_config_1.TYPE, + PropertyDescriptor: base_config_1.TYPE, + PropertyDescriptorMap: base_config_1.TYPE, + PropertyKey: base_config_1.TYPE, + RangeError: base_config_1.TYPE_VALUE, + RangeErrorConstructor: base_config_1.TYPE, + Readonly: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Record: base_config_1.TYPE, + ReferenceError: base_config_1.TYPE_VALUE, + ReferenceErrorConstructor: base_config_1.TYPE, + RegExp: base_config_1.TYPE_VALUE, + RegExpConstructor: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, + Required: base_config_1.TYPE, + ReturnType: base_config_1.TYPE, + String: base_config_1.TYPE_VALUE, + StringConstructor: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SyntaxError: base_config_1.TYPE_VALUE, + SyntaxErrorConstructor: base_config_1.TYPE, + TemplateStringsArray: base_config_1.TYPE, + ThisParameterType: base_config_1.TYPE, + ThisType: base_config_1.TYPE, + TypedPropertyDescriptor: base_config_1.TYPE, + TypeError: base_config_1.TYPE_VALUE, + TypeErrorConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE_VALUE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE_VALUE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE_VALUE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE_VALUE, + Uint32ArrayConstructor: base_config_1.TYPE, + Uncapitalize: base_config_1.TYPE, + Uppercase: base_config_1.TYPE, + URIError: base_config_1.TYPE_VALUE, + URIErrorConstructor: base_config_1.TYPE, + WeakKey: base_config_1.TYPE, + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es5.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map new file mode 100644 index 00000000..a2b6f144 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.js","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,6CAA0C;AAC1C,2DAAwD;AAE3C,QAAA,GAAG,GAAG;IACjB,GAAG,uBAAU;IACb,GAAG,qCAAiB;IACpB,KAAK,EAAE,wBAAU;IACjB,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,kBAAI;IACf,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,qBAAqB,EAAE,kBAAI;IAC3B,QAAQ,EAAE,wBAAU;IACpB,mBAAmB,EAAE,kBAAI;IACzB,IAAI,EAAE,wBAAU;IAChB,eAAe,EAAE,kBAAI;IACrB,KAAK,EAAE,wBAAU;IACjB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,wBAAU;IACrB,o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AM,EAAE,kBAAI;IACZ,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,UAAU,EAAE,kBAAI;IAChB,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;IACvB,QAAQ,EAAE,kBAAI;IACd,uBAAuB,EAAE,kBAAI;IAC7B,SAAS,EAAE,wBAAU;IACrB,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,QAAQ,EAAE,wBAAU;IACpB,mBAAmB,EAAE,kBAAI;IACzB,OAAO,EAAE,kBAAI;IACb,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts new file mode 100644 index 00000000..b0fc22fa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es6: Record; +//# sourceMappingURL=es6.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map new file mode 100644 index 00000000..25745050 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.d.ts","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,GAAG,EAWX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js new file mode 100644 index 00000000..da4ad08c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es6 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es6 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es6.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map new file mode 100644 index 00000000..04b3a572 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts new file mode 100644 index 00000000..474bbd1e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es7: Record; +//# sourceMappingURL=es7.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map new file mode 100644 index 00000000..ef417554 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.d.ts","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EAIX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js new file mode 100644 index 00000000..9f60737d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es7 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es7 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es7.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map new file mode 100644 index 00000000..0c45e5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.js","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,GAAG,GAAG;IACjB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts new file mode 100644 index 00000000..779fb649 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_array: Record; +//# sourceMappingURL=esnext.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map new file mode 100644 index 00000000..036ead0e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAEpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js new file mode 100644 index 00000000..dd322261 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_array = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_array = { + ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map new file mode 100644 index 00000000..a1f50999 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.js","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts new file mode 100644 index 00000000..0cb2d185 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_asynciterable: Record; +//# sourceMappingURL=esnext.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map new file mode 100644 index 00000000..4369b973 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js new file mode 100644 index 00000000..f6638067 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map new file mode 100644 index 00000000..902e821c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.js","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts new file mode 100644 index 00000000..d879c0e7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_bigint: Record; +//# sourceMappingURL=esnext.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map new file mode 100644 index 00000000..accd0f69 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js new file mode 100644 index 00000000..316694f3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.esnext_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map new file mode 100644 index 00000000..fbfb3d27 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.js","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts new file mode 100644 index 00000000..94de9e18 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_collection: Record; +//# sourceMappingURL=esnext.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map new file mode 100644 index 00000000..b504a841 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js new file mode 100644 index 00000000..efb74f62 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_collection = void 0; +const base_config_1 = require("./base-config"); +const es2024_collection_1 = require("./es2024.collection"); +exports.esnext_collection = { + ...es2024_collection_1.es2024_collection, + ReadonlySet: base_config_1.TYPE, + ReadonlySetLike: base_config_1.TYPE, + Set: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map new file mode 100644 index 00000000..e00e2113 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.js","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,2DAAwD;AAE3C,QAAA,iBAAiB,GAAG;IAC/B,GAAG,qCAAiB;IACpB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,GAAG,EAAE,kBAAI;CACoC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts new file mode 100644 index 00000000..30897cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext: Record; +//# sourceMappingURL=esnext.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map new file mode 100644 index 00000000..fa915dc7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts new file mode 100644 index 00000000..b9cd30ca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_decorators: Record; +//# sourceMappingURL=esnext.decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map new file mode 100644 index 00000000..18f6d5c2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js new file mode 100644 index 00000000..de338568 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_decorators = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_decorators = { + ...es2015_symbol_1.es2015_symbol, + ...decorators_1.decorators, + Function: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map new file mode 100644 index 00000000..99b3d9c4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.js","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,6CAA0C;AAC1C,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,uBAAU;IACb,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts new file mode 100644 index 00000000..86f4a6e6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_disposable: Record; +//# sourceMappingURL=esnext.disposable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map new file mode 100644 index 00000000..07c61bcf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,iBAAiB,EAezB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js new file mode 100644 index 00000000..9920dc32 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_disposable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.esnext_disposable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncDisposable: base_config_1.TYPE, + AsyncDisposableStack: base_config_1.TYPE_VALUE, + AsyncDisposableStackConstructor: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + Disposable: base_config_1.TYPE, + DisposableStack: base_config_1.TYPE_VALUE, + DisposableStackConstructor: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + SuppressedError: base_config_1.TYPE_VALUE, + SuppressedErrorConstructor: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.disposable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map new file mode 100644 index 00000000..e0516446 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.js","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AACpD,mDAAgD;AAChD,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,GAAG,2CAAoB;IACvB,eAAe,EAAE,kBAAI;IACrB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,mBAAmB,EAAE,kBAAI;IACzB,UAAU,EAAE,kBAAI;IAChB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts new file mode 100644 index 00000000..6c0fb48d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_full: Record; +//# sourceMappingURL=esnext.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map new file mode 100644 index 00000000..ef5cc83c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js new file mode 100644 index 00000000..60077f5f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const esnext_1 = require("./esnext"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.esnext_full = { + ...esnext_1.esnext, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=esnext.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map new file mode 100644 index 00000000..7327212a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.js","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts new file mode 100644 index 00000000..892587a4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_intl: Record; +//# sourceMappingURL=esnext.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map new file mode 100644 index 00000000..26224dde --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js new file mode 100644 index 00000000..cc49679a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_intl = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map new file mode 100644 index 00000000..9d1eaeac --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.js","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts new file mode 100644 index 00000000..d09f9da5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_iterator: Record; +//# sourceMappingURL=esnext.iterator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map new file mode 100644 index 00000000..fbdccfb5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAIvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js new file mode 100644 index 00000000..ab1f9589 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_iterator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.esnext_iterator = { + ...es2015_iterable_1.es2015_iterable, + Iterator: base_config_1.TYPE_VALUE, + IteratorObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.iterator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map new file mode 100644 index 00000000..59b37847 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.js","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AAEvC,QAAA,eAAe,GAAG;IAC7B,GAAG,iCAAe;IAClB,QAAQ,EAAE,wBAAU;IACpB,yBAAyB,EAAE,kBAAI;CACc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js new file mode 100644 index 00000000..69cce1a0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext = void 0; +const es2024_1 = require("./es2024"); +const esnext_array_1 = require("./esnext.array"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +exports.esnext = { + ...es2024_1.es2024, + ...esnext_intl_1.esnext_intl, + ...esnext_decorators_1.esnext_decorators, + ...esnext_disposable_1.esnext_disposable, + ...esnext_collection_1.esnext_collection, + ...esnext_array_1.esnext_array, + ...esnext_iterator_1.esnext_iterator, +}; +//# sourceMappingURL=esnext.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map new file mode 100644 index 00000000..f336e082 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.js","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,+CAA4C;AAC5C,uDAAoD;AAEvC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,2BAAY;IACf,GAAG,iCAAe;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts new file mode 100644 index 00000000..3e43e0b1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_object: Record; +//# sourceMappingURL=esnext.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map new file mode 100644 index 00000000..3d59cc83 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js new file mode 100644 index 00000000..8e180d68 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_object = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map new file mode 100644 index 00000000..9154dd13 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.js","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts new file mode 100644 index 00000000..aae1ed13 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_promise: Record; +//# sourceMappingURL=esnext.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map new file mode 100644 index 00000000..4173b503 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js new file mode 100644 index 00000000..447a1ac5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_promise = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map new file mode 100644 index 00000000..32b45b2a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.js","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts new file mode 100644 index 00000000..acc6dda4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_regexp: Record; +//# sourceMappingURL=esnext.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map new file mode 100644 index 00000000..1672df44 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js new file mode 100644 index 00000000..819aa882 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map new file mode 100644 index 00000000..0defba2a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.js","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts new file mode 100644 index 00000000..238f2890 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_string: Record; +//# sourceMappingURL=esnext.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map new file mode 100644 index 00000000..fd057738 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js new file mode 100644 index 00000000..0aab283d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_string = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map new file mode 100644 index 00000000..355d2606 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.js","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts new file mode 100644 index 00000000..a09a2927 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_symbol: Record; +//# sourceMappingURL=esnext.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map new file mode 100644 index 00000000..50a438b1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js new file mode 100644 index 00000000..df46aa26 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map new file mode 100644 index 00000000..e8e636fd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.js","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts new file mode 100644 index 00000000..1f2b6727 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_weakref: Record; +//# sourceMappingURL=esnext.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map new file mode 100644 index 00000000..109aa745 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js new file mode 100644 index 00000000..29f616b3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.esnext_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map new file mode 100644 index 00000000..3282d719 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.js","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts new file mode 100644 index 00000000..56ef4453 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts @@ -0,0 +1,109 @@ +declare const lib: { + readonly decorators: Record; + readonly 'decorators.legacy': Record; + readonly dom: Record; + readonly 'dom.asynciterable': Record; + readonly 'dom.iterable': Record; + readonly es5: Record; + readonly es6: Record; + readonly es7: Record; + readonly es2015: Record; + readonly 'es2015.collection': Record; + readonly 'es2015.core': Record; + readonly 'es2015.generator': Record; + readonly 'es2015.iterable': Record; + readonly 'es2015.promise': Record; + readonly 'es2015.proxy': Record; + readonly 'es2015.reflect': Record; + readonly 'es2015.symbol': Record; + readonly 'es2015.symbol.wellknown': Record; + readonly es2016: Record; + readonly 'es2016.array.include': Record; + readonly 'es2016.full': Record; + readonly 'es2016.intl': Record; + readonly es2017: Record; + readonly 'es2017.arraybuffer': Record; + readonly 'es2017.date': Record; + readonly 'es2017.full': Record; + readonly 'es2017.intl': Record; + readonly 'es2017.object': Record; + readonly 'es2017.sharedmemory': Record; + readonly 'es2017.string': Record; + readonly 'es2017.typedarrays': Record; + readonly es2018: Record; + readonly 'es2018.asyncgenerator': Record; + readonly 'es2018.asynciterable': Record; + readonly 'es2018.full': Record; + readonly 'es2018.intl': Record; + readonly 'es2018.promise': Record; + readonly 'es2018.regexp': Record; + readonly es2019: Record; + readonly 'es2019.array': Record; + readonly 'es2019.full': Record; + readonly 'es2019.intl': Record; + readonly 'es2019.object': Record; + readonly 'es2019.string': Record; + readonly 'es2019.symbol': Record; + readonly es2020: Record; + readonly 'es2020.bigint': Record; + readonly 'es2020.date': Record; + readonly 'es2020.full': Record; + readonly 'es2020.intl': Record; + readonly 'es2020.number': Record; + readonly 'es2020.promise': Record; + readonly 'es2020.sharedmemory': Record; + readonly 'es2020.string': Record; + readonly 'es2020.symbol.wellknown': Record; + readonly es2021: Record; + readonly 'es2021.full': Record; + readonly 'es2021.intl': Record; + readonly 'es2021.promise': Record; + readonly 'es2021.string': Record; + readonly 'es2021.weakref': Record; + readonly es2022: Record; + readonly 'es2022.array': Record; + readonly 'es2022.error': Record; + readonly 'es2022.full': Record; + readonly 'es2022.intl': Record; + readonly 'es2022.object': Record; + readonly 'es2022.regexp': Record; + readonly 'es2022.string': Record; + readonly es2023: Record; + readonly 'es2023.array': Record; + readonly 'es2023.collection': Record; + readonly 'es2023.full': Record; + readonly 'es2023.intl': Record; + readonly es2024: Record; + readonly 'es2024.arraybuffer': Record; + readonly 'es2024.collection': Record; + readonly 'es2024.full': Record; + readonly 'es2024.object': Record; + readonly 'es2024.promise': Record; + readonly 'es2024.regexp': Record; + readonly 'es2024.sharedmemory': Record; + readonly 'es2024.string': Record; + readonly esnext: Record; + readonly 'esnext.array': Record; + readonly 'esnext.asynciterable': Record; + readonly 'esnext.bigint': Record; + readonly 'esnext.collection': Record; + readonly 'esnext.decorators': Record; + readonly 'esnext.disposable': Record; + readonly 'esnext.full': Record; + readonly 'esnext.intl': Record; + readonly 'esnext.iterator': Record; + readonly 'esnext.object': Record; + readonly 'esnext.promise': Record; + readonly 'esnext.regexp': Record; + readonly 'esnext.string': Record; + readonly 'esnext.symbol': Record; + readonly 'esnext.weakref': Record; + readonly lib: Record; + readonly scripthost: Record; + readonly webworker: Record; + readonly 'webworker.asynciterable': Record; + readonly 'webworker.importscripts': Record; + readonly 'webworker.iterable': Record; +}; +export { lib }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map new file mode 100644 index 00000000..1508f374 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AA+GA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GC,CAAC;AAEX,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js new file mode 100644 index 00000000..67f08d37 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js @@ -0,0 +1,221 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es5_1 = require("./es5"); +const es6_1 = require("./es6"); +const es7_1 = require("./es7"); +const es2015_1 = require("./es2015"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +const es2016_1 = require("./es2016"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_full_1 = require("./es2016.full"); +const es2016_intl_1 = require("./es2016.intl"); +const es2017_1 = require("./es2017"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_full_1 = require("./es2017.full"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +const es2018_1 = require("./es2018"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_full_1 = require("./es2018.full"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +const es2019_1 = require("./es2019"); +const es2019_array_1 = require("./es2019.array"); +const es2019_full_1 = require("./es2019.full"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +const es2020_1 = require("./es2020"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_full_1 = require("./es2020.full"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +const es2021_1 = require("./es2021"); +const es2021_full_1 = require("./es2021.full"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +const es2022_1 = require("./es2022"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_full_1 = require("./es2022.full"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +const es2023_1 = require("./es2023"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_full_1 = require("./es2023.full"); +const es2023_intl_1 = require("./es2023.intl"); +const es2024_1 = require("./es2024"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_full_1 = require("./es2024.full"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +const esnext_1 = require("./esnext"); +const esnext_array_1 = require("./esnext.array"); +const esnext_asynciterable_1 = require("./esnext.asynciterable"); +const esnext_bigint_1 = require("./esnext.bigint"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_full_1 = require("./esnext.full"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +const esnext_object_1 = require("./esnext.object"); +const esnext_promise_1 = require("./esnext.promise"); +const esnext_regexp_1 = require("./esnext.regexp"); +const esnext_string_1 = require("./esnext.string"); +const esnext_symbol_1 = require("./esnext.symbol"); +const esnext_weakref_1 = require("./esnext.weakref"); +const lib_1 = require("./lib"); +const scripthost_1 = require("./scripthost"); +const webworker_1 = require("./webworker"); +const webworker_asynciterable_1 = require("./webworker.asynciterable"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +const webworker_iterable_1 = require("./webworker.iterable"); +const lib = { + decorators: decorators_1.decorators, + 'decorators.legacy': decorators_legacy_1.decorators_legacy, + dom: dom_1.dom, + 'dom.asynciterable': dom_asynciterable_1.dom_asynciterable, + 'dom.iterable': dom_iterable_1.dom_iterable, + es5: es5_1.es5, + es6: es6_1.es6, + es7: es7_1.es7, + es2015: es2015_1.es2015, + 'es2015.collection': es2015_collection_1.es2015_collection, + 'es2015.core': es2015_core_1.es2015_core, + 'es2015.generator': es2015_generator_1.es2015_generator, + 'es2015.iterable': es2015_iterable_1.es2015_iterable, + 'es2015.promise': es2015_promise_1.es2015_promise, + 'es2015.proxy': es2015_proxy_1.es2015_proxy, + 'es2015.reflect': es2015_reflect_1.es2015_reflect, + 'es2015.symbol': es2015_symbol_1.es2015_symbol, + 'es2015.symbol.wellknown': es2015_symbol_wellknown_1.es2015_symbol_wellknown, + es2016: es2016_1.es2016, + 'es2016.array.include': es2016_array_include_1.es2016_array_include, + 'es2016.full': es2016_full_1.es2016_full, + 'es2016.intl': es2016_intl_1.es2016_intl, + es2017: es2017_1.es2017, + 'es2017.arraybuffer': es2017_arraybuffer_1.es2017_arraybuffer, + 'es2017.date': es2017_date_1.es2017_date, + 'es2017.full': es2017_full_1.es2017_full, + 'es2017.intl': es2017_intl_1.es2017_intl, + 'es2017.object': es2017_object_1.es2017_object, + 'es2017.sharedmemory': es2017_sharedmemory_1.es2017_sharedmemory, + 'es2017.string': es2017_string_1.es2017_string, + 'es2017.typedarrays': es2017_typedarrays_1.es2017_typedarrays, + es2018: es2018_1.es2018, + 'es2018.asyncgenerator': es2018_asyncgenerator_1.es2018_asyncgenerator, + 'es2018.asynciterable': es2018_asynciterable_1.es2018_asynciterable, + 'es2018.full': es2018_full_1.es2018_full, + 'es2018.intl': es2018_intl_1.es2018_intl, + 'es2018.promise': es2018_promise_1.es2018_promise, + 'es2018.regexp': es2018_regexp_1.es2018_regexp, + es2019: es2019_1.es2019, + 'es2019.array': es2019_array_1.es2019_array, + 'es2019.full': es2019_full_1.es2019_full, + 'es2019.intl': es2019_intl_1.es2019_intl, + 'es2019.object': es2019_object_1.es2019_object, + 'es2019.string': es2019_string_1.es2019_string, + 'es2019.symbol': es2019_symbol_1.es2019_symbol, + es2020: es2020_1.es2020, + 'es2020.bigint': es2020_bigint_1.es2020_bigint, + 'es2020.date': es2020_date_1.es2020_date, + 'es2020.full': es2020_full_1.es2020_full, + 'es2020.intl': es2020_intl_1.es2020_intl, + 'es2020.number': es2020_number_1.es2020_number, + 'es2020.promise': es2020_promise_1.es2020_promise, + 'es2020.sharedmemory': es2020_sharedmemory_1.es2020_sharedmemory, + 'es2020.string': es2020_string_1.es2020_string, + 'es2020.symbol.wellknown': es2020_symbol_wellknown_1.es2020_symbol_wellknown, + es2021: es2021_1.es2021, + 'es2021.full': es2021_full_1.es2021_full, + 'es2021.intl': es2021_intl_1.es2021_intl, + 'es2021.promise': es2021_promise_1.es2021_promise, + 'es2021.string': es2021_string_1.es2021_string, + 'es2021.weakref': es2021_weakref_1.es2021_weakref, + es2022: es2022_1.es2022, + 'es2022.array': es2022_array_1.es2022_array, + 'es2022.error': es2022_error_1.es2022_error, + 'es2022.full': es2022_full_1.es2022_full, + 'es2022.intl': es2022_intl_1.es2022_intl, + 'es2022.object': es2022_object_1.es2022_object, + 'es2022.regexp': es2022_regexp_1.es2022_regexp, + 'es2022.string': es2022_string_1.es2022_string, + es2023: es2023_1.es2023, + 'es2023.array': es2023_array_1.es2023_array, + 'es2023.collection': es2023_collection_1.es2023_collection, + 'es2023.full': es2023_full_1.es2023_full, + 'es2023.intl': es2023_intl_1.es2023_intl, + es2024: es2024_1.es2024, + 'es2024.arraybuffer': es2024_arraybuffer_1.es2024_arraybuffer, + 'es2024.collection': es2024_collection_1.es2024_collection, + 'es2024.full': es2024_full_1.es2024_full, + 'es2024.object': es2024_object_1.es2024_object, + 'es2024.promise': es2024_promise_1.es2024_promise, + 'es2024.regexp': es2024_regexp_1.es2024_regexp, + 'es2024.sharedmemory': es2024_sharedmemory_1.es2024_sharedmemory, + 'es2024.string': es2024_string_1.es2024_string, + esnext: esnext_1.esnext, + 'esnext.array': esnext_array_1.esnext_array, + 'esnext.asynciterable': esnext_asynciterable_1.esnext_asynciterable, + 'esnext.bigint': esnext_bigint_1.esnext_bigint, + 'esnext.collection': esnext_collection_1.esnext_collection, + 'esnext.decorators': esnext_decorators_1.esnext_decorators, + 'esnext.disposable': esnext_disposable_1.esnext_disposable, + 'esnext.full': esnext_full_1.esnext_full, + 'esnext.intl': esnext_intl_1.esnext_intl, + 'esnext.iterator': esnext_iterator_1.esnext_iterator, + 'esnext.object': esnext_object_1.esnext_object, + 'esnext.promise': esnext_promise_1.esnext_promise, + 'esnext.regexp': esnext_regexp_1.esnext_regexp, + 'esnext.string': esnext_string_1.esnext_string, + 'esnext.symbol': esnext_symbol_1.esnext_symbol, + 'esnext.weakref': esnext_weakref_1.esnext_weakref, + lib: lib_1.lib, + scripthost: scripthost_1.scripthost, + webworker: webworker_1.webworker, + 'webworker.asynciterable': webworker_asynciterable_1.webworker_asynciterable, + 'webworker.importscripts': webworker_importscripts_1.webworker_importscripts, + 'webworker.iterable': webworker_iterable_1.webworker_iterable, +}; +exports.lib = lib; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map new file mode 100644 index 00000000..c58f9ae2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAE3B,6CAA0C;AAC1C,2DAAwD;AACxD,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,qCAAkC;AAClC,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AACpE,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qCAAkC;AAClC,6DAA0D;AAC1D,+CAA4C;AAC5C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAC1D,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAChD,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAA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/scope-manager/dist/lib/lib.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts new file mode 100644 index 00000000..a6b2263d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const lib: Record; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map new file mode 100644 index 00000000..46c421fa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,GAAG,EAKX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js new file mode 100644 index 00000000..566b4a72 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const dom_1 = require("./dom"); +const es5_1 = require("./es5"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.lib = { + ...es5_1.es5, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, +}; +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map new file mode 100644 index 00000000..c0724cc5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,+BAA4B;AAC5B,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts new file mode 100644 index 00000000..4e066f50 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const scripthost: Record; +//# sourceMappingURL=scripthost.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map new file mode 100644 index 00000000..9824c2bb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.d.ts","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAclB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js new file mode 100644 index 00000000..f0e5b455 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.scripthost = void 0; +const base_config_1 = require("./base-config"); +exports.scripthost = { + ActiveXObject: base_config_1.TYPE_VALUE, + Date: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Enumerator: base_config_1.TYPE_VALUE, + EnumeratorConstructor: base_config_1.TYPE, + ITextWriter: base_config_1.TYPE, + SafeArray: base_config_1.TYPE_VALUE, + TextStreamBase: base_config_1.TYPE, + TextStreamReader: base_config_1.TYPE, + TextStreamWriter: base_config_1.TYPE, + VarDate: base_config_1.TYPE_VALUE, + VBArray: base_config_1.TYPE_VALUE, + VBArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=scripthost.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map new file mode 100644 index 00000000..23d28b96 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.js","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,wBAAU;IACzB,IAAI,EAAE,kBAAI;IACV,eAAe,EAAE,kBAAI;IACrB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,SAAS,EAAE,wBAAU;IACrB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts new file mode 100644 index 00000000..d8da1baa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_asynciterable: Record; +//# sourceMappingURL=webworker.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map new file mode 100644 index 00000000..49751a07 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,uBAAuB,EAK/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js new file mode 100644 index 00000000..886eac52 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map new file mode 100644 index 00000000..3c404133 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.js","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,uBAAuB,GAAG;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts new file mode 100644 index 00000000..87c0e941 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker: Record; +//# sourceMappingURL=webworker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map new file mode 100644 index 00000000..728c2fcb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,SAAS,EA+lBjB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts new file mode 100644 index 00000000..c042e506 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_importscripts: Record; +//# sourceMappingURL=webworker.importscripts.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map new file mode 100644 index 00000000..1885ad20 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAS,MAAM,CACjD,MAAM,EACN,0BAA0B,CAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js new file mode 100644 index 00000000..06726a77 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js @@ -0,0 +1,9 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_importscripts = void 0; +exports.webworker_importscripts = {}; +//# sourceMappingURL=webworker.importscripts.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map new file mode 100644 index 00000000..4c4f6774 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.js","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAId,QAAA,uBAAuB,GAAG,EAGtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts new file mode 100644 index 00000000..207cf1f7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_iterable: Record; +//# sourceMappingURL=webworker.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map new file mode 100644 index 00000000..7e3d24f8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EA6B1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js new file mode 100644 index 00000000..4d8c3378 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js @@ -0,0 +1,39 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_iterable = { + AbortSignal: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map new file mode 100644 index 00000000..e96fbd2c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.js","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,kBAAI;IACb,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,wBAAwB,EAAE,kBAAI;IAC9B,gCAAgC,EAAE,kBAAI;IACtC,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,uBAAuB,EAAE,kBAAI;IAC7B,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js new file mode 100644 index 00000000..537f084b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js @@ -0,0 +1,617 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker = void 0; +const base_config_1 = require("./base-config"); +exports.webworker = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + Client: base_config_1.TYPE_VALUE, + ClientQueryOptions: base_config_1.TYPE, + Clients: base_config_1.TYPE_VALUE, + ClientTypes: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + Console: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScope: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScopeEventMap: base_config_1.TYPE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + ExtendableEvent: base_config_1.TYPE_VALUE, + ExtendableEventInit: base_config_1.TYPE, + ExtendableMessageEvent: base_config_1.TYPE_VALUE, + ExtendableMessageEventInit: base_config_1.TYPE, + FetchEvent: base_config_1.TYPE_VALUE, + FetchEventInit: base_config_1.TYPE, + File: base_config_1.TYPE_VALUE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileReaderSync: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemReadWriteOptions: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemSyncAccessHandle: base_config_1.TYPE_VALUE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FrameRequestCallback: base_config_1.TYPE, + FrameType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LatencyMode: base_config_1.TYPE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessor: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessorInit: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEvent: base_config_1.TYPE_VALUE, + NotificationEventInit: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushEvent: base_config_1.TYPE_VALUE, + PushEventInit: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushMessageData: base_config_1.TYPE_VALUE, + PushMessageDataInit: base_config_1.TYPE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCRtpScriptTransformer: base_config_1.TYPE_VALUE, + RTCTransformEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerGlobalScope: base_config_1.TYPE_VALUE, + ServiceWorkerGlobalScopeEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + SharedWorkerGlobalScope: base_config_1.TYPE_VALUE, + SharedWorkerGlobalScopeEventMap: base_config_1.TYPE, + StorageEstimate: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + SubtleCrypto: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + Uint32List: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoTransferCharacteristics: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WindowClient: base_config_1.TYPE_VALUE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerGlobalScope: base_config_1.TYPE_VALUE, + WorkerGlobalScopeEventMap: base_config_1.TYPE, + WorkerLocation: base_config_1.TYPE_VALUE, + WorkerNavigator: base_config_1.TYPE_VALUE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=webworker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map new file mode 100644 index 00000000..a9956c68 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.js","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,eAAe,EAAE,wBAAU;IAC3B,WAAW,EAAE,wBAAU;IACvB,mBAAmB,EAAE,kBAAI;IACzB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,SAAS,EAAE,kBAAI;IACf,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,SAAS,EAAE,wBAAU;IACrB,sBAAsB,EAAE,kBAAI;IAC5B,aAAa,EAAE,kBAAI;IACnB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,wBAAU;IACxB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,wBAAU;IACxB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;IACvB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAA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;IACzB,6BAA6B,EAAE,kBAAI;IACnC,YAAY,EAAE,wBAAU;IACxB,yBAAyB,EAAE,kBAAI;IAC/B,MAAM,EAAE,wBAAU;IAClB,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,wBAAU;IAC7B,yBAAyB,EAAE,kBAAI;IAC/B,cAAc,EAAE,wBAAU;IAC1B,eAAe,EAAE,wBAAU;IAC3B,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,cAAc,EAAE,wBAAU;IAC1B,+BAA+B,EAAE,wBAAU;IAC3C,2BAA2B,EAAE,wBAAU;IACvC,gBAAgB,EAAE,kBAAI;IACtB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,wBAAU;IAC1B,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts new file mode 100644 index 00000000..42aecaa6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ClassVisitor extends Visitor { + #private; + constructor(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression); + static visit(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + visit(node: TSESTree.Node | null | undefined): void; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitMethod(node: TSESTree.MethodDefinition): void; + protected visitMethodFunction(node: TSESTree.FunctionExpression, methodNode: TSESTree.MethodDefinition): void; + protected visitPropertyBase(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition): void; + protected visitPropertyDefinition(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected AccessorProperty(node: TSESTree.AccessorProperty): void; + protected ClassBody(node: TSESTree.ClassBody): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MethodDefinition(node: TSESTree.MethodDefinition): void; + protected PrivateIdentifier(): void; + protected PropertyDefinition(node: TSESTree.PropertyDefinition): void; + protected StaticBlock(node: TSESTree.StaticBlock): void; + protected TSAbstractAccessorProperty(node: TSESTree.TSAbstractAccessorProperty): void; + protected TSAbstractMethodDefinition(node: TSESTree.TSAbstractMethodDefinition): void; + protected TSAbstractPropertyDefinition(node: TSESTree.TSAbstractPropertyDefinition): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; +} +export { ClassVisitor }; +//# sourceMappingURL=ClassVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map new file mode 100644 index 00000000..df5afab2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":"AAAA,OAAO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C,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAWjE,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI;IAMnD,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAIrD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAInC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAIrE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAQvD,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,4BAA4B,CACpC,IAAI,EAAE,QAAQ,CAAC,4BAA4B,GAC1C,IAAI;IAIP,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;CAGlE;AAsCD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js new file mode 100644 index 00000000..1384c5c0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js @@ -0,0 +1,266 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +class ClassVisitor extends Visitor_1.Visitor { + #classNode; + #referencer; + constructor(referencer, node) { + super(referencer); + this.#referencer = referencer; + this.#classNode = node; + } + static visit(referencer, node) { + const classVisitor = new ClassVisitor(referencer, node); + classVisitor.visitClass(node); + } + visit(node) { + // make sure we only handle the nodes we are designed to handle + if (node && node.type in this) { + super.visit(node); + } + else { + this.#referencer.visit(node); + } + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + if (node.type === types_1.AST_NODE_TYPES.ClassDeclaration && node.id) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + this.#referencer.scopeManager.nestClassScope(node); + if (node.id) { + // define the class name again inside the new scope + // references to the class should not resolve directly to the parent class + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + this.#referencer.visit(node.superClass); + // visit the type param declarations + this.visitType(node.typeParameters); + // then the usages + this.visitType(node.superTypeArguments); + node.implements.forEach(imp => this.visitType(imp)); + this.visit(node.body); + this.#referencer.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + } + } + visitMethod(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value.type === types_1.AST_NODE_TYPES.FunctionExpression) { + this.visitMethodFunction(node.value, node); + } + else { + this.#referencer.visit(node.value); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitMethodFunction(node, methodNode) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.#referencer.scopeManager.nestFunctionExpressionNameScope(node); + } + // Consider this function is in the MethodDefinition. + this.#referencer.scopeManager.nestFunctionScope(node, true); + /** + * class A { + * @meta // <--- check this + * foo(a: Type) {} + * + * @meta // <--- check this + * foo(): Type {} + * } + */ + let withMethodDecorators = !!methodNode.decorators.length; + /** + * class A { + * foo( + * @meta // <--- check this + * a: Type + * ) {} + * + * set foo( + * @meta // <--- EXCEPT this. TS do nothing for this + * a: Type + * ) {} + * } + */ + withMethodDecorators ||= + methodNode.kind !== 'set' && + node.params.some(param => param.decorators.length); + if (!withMethodDecorators && methodNode.kind === 'set') { + const keyName = getLiteralMethodKeyName(methodNode); + /** + * class A { + * @meta // <--- check this + * get a() {} + * set ['a'](v: Type) {} + * } + */ + if (keyName != null && + this.#classNode.body.body.find((node) => node !== methodNode && + node.type === types_1.AST_NODE_TYPES.MethodDefinition && + // Node must both be static or not + node.static === methodNode.static && + getLiteralMethodKeyName(node) === keyName)?.decorators.length) { + withMethodDecorators = true; + } + } + /** + * @meta // <--- check this + * class A { + * constructor(a: Type) {} + * } + */ + if (!withMethodDecorators && + methodNode.kind === 'constructor' && + this.#classNode.decorators.length) { + withMethodDecorators = true; + } + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.#referencer.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + this.#referencer.visitChildren(node.body); + this.#referencer.close(node); + } + visitPropertyBase(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value) { + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.scopeManager.nestClassFieldInitializerScope(node.value); + } + this.#referencer.visit(node.value); + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.close(node.value); + } + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitPropertyDefinition(node) { + this.visitPropertyBase(node); + /** + * class A { + * @meta // <--- check this + * foo: Type; + * } + */ + this.visitType(node.typeAnnotation); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this.#referencer, node); + } + ///////////////////// + // Visit selectors // + ///////////////////// + AccessorProperty(node) { + this.visitPropertyDefinition(node); + } + ClassBody(node) { + // this is here on purpose so that this visitor explicitly declares visitors + // for all nodes it cares about (see the instance visit method above) + this.visitChildren(node); + } + Identifier(node) { + this.#referencer.visit(node); + } + MethodDefinition(node) { + this.visitMethod(node); + } + PrivateIdentifier() { + // intentionally skip + } + PropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + StaticBlock(node) { + this.#referencer.scopeManager.nestClassStaticBlockScope(node); + node.body.forEach(b => this.visit(b)); + this.#referencer.close(node); + } + TSAbstractAccessorProperty(node) { + this.visitPropertyDefinition(node); + } + TSAbstractMethodDefinition(node) { + this.visitPropertyBase(node); + } + TSAbstractPropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + TSIndexSignature(node) { + this.visitType(node); + } +} +exports.ClassVisitor = ClassVisitor; +/** + * Only if key is one of [identifier, string, number], ts will combine metadata of accessors . + * class A { + * get a() {} + * set ['a'](v: Type) {} + * + * get [1]() {} + * set [1](v: Type) {} + * + * // Following won't be combined + * get [key]() {} + * set [key](v: Type) {} + * + * get [true]() {} + * set [true](v: Type) {} + * + * get ['a'+'b']() {} + * set ['a'+'b']() {} + * } + */ +function getLiteralMethodKeyName(node) { + if (node.computed && node.key.type === types_1.AST_NODE_TYPES.Literal) { + if (typeof node.key.value === 'string' || + typeof node.key.value === 'number') { + return node.key.value; + } + } + else if (!node.computed && node.key.type === types_1.AST_NODE_TYPES.Identifier) { + return node.key.name; + } + return null; +} +//# sourceMappingURL=ClassVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map new file mode 100644 index 00000000..b43ce036 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,8CAAyE;AACzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IACvB,UAAU,CAAuD;IACjE,WAAW,CAAa;IAEjC,YACE,UAAsB,EACtB,IAA0D;QAE1D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,IAA0D;QAE1D,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACxD,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAsC;QAC1C,+DAA+D;QAC/D,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IA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git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts new file mode 100644 index 00000000..1b78cb84 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +type ExportNode = TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration; +declare class ExportVisitor extends Visitor { + #private; + constructor(node: ExportNode, referencer: Referencer); + static visit(referencer: Referencer, node: ExportNode): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ExportSpecifier(node: TSESTree.ExportSpecifier): void; + protected Identifier(node: TSESTree.Identifier): void; +} +export { ExportVisitor }; +//# sourceMappingURL=ExportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map new file mode 100644 index 00000000..0b07ac45 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GACX,QAAQ,CAAC,oBAAoB,GAC7B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,sBAAsB,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAMpD,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAK5D,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAaP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAgBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAgB/D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAStD;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js new file mode 100644 index 00000000..ae8fade8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js @@ -0,0 +1,72 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const Visitor_1 = require("./Visitor"); +class ExportVisitor extends Visitor_1.Visitor { + #exportNode; + #referencer; + constructor(node, referencer) { + super(referencer); + this.#exportNode = node; + this.#referencer = referencer; + } + static visit(referencer, node) { + const exportReferencer = new ExportVisitor(node, referencer); + exportReferencer.visit(node); + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + // export default A; + // this could be a type or a variable + this.visit(node.declaration); + } + else { + // export const a = 1; + // export something(); + // etc + // these not included in the scope of this visitor as they are all guaranteed to be values or declare variables + } + } + ExportNamedDeclaration(node) { + if (node.source) { + // export ... from 'foo'; + // these are external identifiers so there shouldn't be references or defs + return; + } + if (!node.declaration) { + // export { x }; + this.visitChildren(node); + } + else { + // export const x = 1; + // this is not included in the scope of this visitor as it creates a variable + } + } + ExportSpecifier(node) { + if (node.exportKind === 'type' && + node.local.type === types_1.AST_NODE_TYPES.Identifier) { + // export { type T }; + // type exports can only reference types + // + // we can't let this fall through to the Identifier selector because the exportKind is on this node + // and we don't have access to the `.parent` during scope analysis + this.#referencer.currentScope().referenceType(node.local); + } + else { + this.visit(node.local); + } + } + Identifier(node) { + if (this.#exportNode.exportKind === 'type') { + // export type { T }; + // type exports can only reference types + this.#referencer.currentScope().referenceType(node); + } + else { + this.#referencer.currentScope().referenceDualValueType(node); + } + } +} +exports.ExportVisitor = ExportVisitor; +//# sourceMappingURL=ExportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map new file mode 100644 index 00000000..474e3abd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,uCAAoC;AAOpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,WAAW,CAAa;IACxB,WAAW,CAAa;IAEjC,YAAY,IAAgB,EAAE,UAAsB;QAClD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAA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C,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAES,UAAU,CAAC,IAAyB;QAC5C,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC3C,qBAAqB;YACrB,wCAAwC;YACxC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts new file mode 100644 index 00000000..bb2f9b44 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ImportVisitor extends Visitor { + #private; + constructor(declaration: TSESTree.ImportDeclaration, referencer: Referencer); + static visit(referencer: Referencer, declaration: TSESTree.ImportDeclaration): void; + protected ImportDefaultSpecifier(node: TSESTree.ImportDefaultSpecifier): void; + protected ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void; + protected ImportSpecifier(node: TSESTree.ImportSpecifier): void; + protected visitImport(id: TSESTree.Identifier, specifier: TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier): void; +} +export { ImportVisitor }; +//# sourceMappingURL=ImportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map new file mode 100644 index 00000000..5eb27d7a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU;IAM3E,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,GACtC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAKP,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAKP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,WAAW,CACnB,EAAE,EAAE,QAAQ,CAAC,UAAU,EACvB,SAAS,EACL,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GAC3B,IAAI;CAQR;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js new file mode 100644 index 00000000..73db475b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportVisitor = void 0; +const definition_1 = require("../definition"); +const Visitor_1 = require("./Visitor"); +class ImportVisitor extends Visitor_1.Visitor { + #declaration; + #referencer; + constructor(declaration, referencer) { + super(referencer); + this.#declaration = declaration; + this.#referencer = referencer; + } + static visit(referencer, declaration) { + const importReferencer = new ImportVisitor(declaration, referencer); + importReferencer.visit(declaration); + } + ImportDefaultSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportNamespaceSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + visitImport(id, specifier) { + this.#referencer + .currentScope() + .defineIdentifier(id, new definition_1.ImportBindingDefinition(id, specifier, this.#declaration)); + } +} +exports.ImportVisitor = ImportVisitor; +//# sourceMappingURL=ImportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map new file mode 100644 index 00000000..f7a18a65 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":";;;AAIA,8CAAwD;AACxD,uCAAoC;AAEpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,YAAY,CAA6B;IACzC,WAAW,CAAa;IAEjC,YAAY,WAAuC,EAAE,UAAsB;QACzE,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,WAAuC;QAEvC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACpE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,WAAW,CACnB,EAAuB,EACvB,SAG4B;QAE5B,IAAI,CAAC,WAAW;aACb,YAAY,EAAE;aACd,gBAAgB,CACf,EAAE,EACF,IAAI,oCAAuB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC9D,CAAC;IACN,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts new file mode 100644 index 00000000..63b8a0b0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { + assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[]; + rest: boolean; + topLevel: boolean; +}) => void; +type PatternVisitorOptions = VisitorOptions; +declare class PatternVisitor extends VisitorBase { + #private; + readonly rightHandNodes: TSESTree.Node[]; + constructor(options: PatternVisitorOptions, rootPattern: TSESTree.Node, callback: PatternVisitorCallback); + static isPattern(node: TSESTree.Node): node is TSESTree.ArrayPattern | TSESTree.AssignmentPattern | TSESTree.Identifier | TSESTree.ObjectPattern | TSESTree.RestElement | TSESTree.SpreadElement; + protected ArrayExpression(node: TSESTree.ArrayExpression): void; + protected ArrayPattern(pattern: TSESTree.ArrayPattern): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected AssignmentPattern(pattern: TSESTree.AssignmentPattern): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected Decorator(): void; + protected Identifier(pattern: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected Property(property: TSESTree.Property): void; + protected RestElement(pattern: TSESTree.RestElement): void; + protected SpreadElement(node: TSESTree.SpreadElement): void; + protected TSTypeAnnotation(): void; +} +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, }; +//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map new file mode 100644 index 00000000..58c2a660 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map @@ -0,0 +1 @@ +{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iBAAiB,GAAG,IAAI;IAOtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,GAAG,IAAI;IAQ7D,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUxD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAUjE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI;IAYrD,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAM1D,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAI3D,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC;AAED,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js new file mode 100644 index 00000000..85751e8a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PatternVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const VisitorBase_1 = require("./VisitorBase"); +class PatternVisitor extends VisitorBase_1.VisitorBase { + #assignments = []; + #callback; + #restElements = []; + #rootPattern; + rightHandNodes = []; + constructor(options, rootPattern, callback) { + super(options); + this.#rootPattern = rootPattern; + this.#callback = callback; + } + static isPattern(node) { + const nodeType = node.type; + return (nodeType === types_1.AST_NODE_TYPES.Identifier || + nodeType === types_1.AST_NODE_TYPES.ObjectPattern || + nodeType === types_1.AST_NODE_TYPES.ArrayPattern || + nodeType === types_1.AST_NODE_TYPES.SpreadElement || + nodeType === types_1.AST_NODE_TYPES.RestElement || + nodeType === types_1.AST_NODE_TYPES.AssignmentPattern); + } + ArrayExpression(node) { + node.elements.forEach(this.visit, this); + } + ArrayPattern(pattern) { + for (const element of pattern.elements) { + this.visit(element); + } + } + AssignmentExpression(node) { + this.#assignments.push(node); + this.visit(node.left); + this.rightHandNodes.push(node.right); + this.#assignments.pop(); + } + AssignmentPattern(pattern) { + this.#assignments.push(pattern); + this.visit(pattern.left); + this.rightHandNodes.push(pattern.right); + this.#assignments.pop(); + } + CallExpression(node) { + // arguments are right hand nodes. + node.arguments.forEach(a => { + this.rightHandNodes.push(a); + }); + this.visit(node.callee); + } + Decorator() { + // don't visit any decorators when exploring a pattern + } + Identifier(pattern) { + const lastRestElement = this.#restElements.at(-1); + this.#callback(pattern, { + assignments: this.#assignments, + rest: lastRestElement?.argument === pattern, + topLevel: pattern === this.#rootPattern, + }); + } + MemberExpression(node) { + // Computed property's key is a right hand node. + if (node.computed) { + this.rightHandNodes.push(node.property); + } + // the object is only read, write to its property. + this.rightHandNodes.push(node.object); + } + Property(property) { + // Computed property's key is a right hand node. + if (property.computed) { + this.rightHandNodes.push(property.key); + } + // If it's shorthand, its key is same as its value. + // If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern). + // If it's not shorthand, the name of new variable is its value's. + this.visit(property.value); + } + RestElement(pattern) { + this.#restElements.push(pattern); + this.visit(pattern.argument); + this.#restElements.pop(); + } + SpreadElement(node) { + this.visit(node.argument); + } + TSTypeAnnotation() { + // we don't want to visit types + } +} +exports.PatternVisitor = PatternVisitor; +//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map new file mode 100644 index 00000000..03e66cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,+CAA4C;AAY5C,MAAM,cAAe,SAAQ,yBAAW;IAC7B,YAAY,GAGf,EAAE,CAAC;IACA,SAAS,CAAyB;IAClC,aAAa,GAA2B,EAAE,CAAC;IAC3C,YAAY,CAAgB;IAErB,cAAc,GAAoB,EAAE,CAAC;IAErD,YACE,OAA8B,EAC9B,WAA0B,EAC1B,QAAgC;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,SAAS,CACrB,IAAmB;QAQnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,OAAO,CACL,QAAQ,KAAK,sBAAc,CAAC,UAAU;YACtC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,YAAY;YACxC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,WAAW;YACvC,QAAQ,KAAK,sBAAc,CAAC,iBAAiB,CAC9C,CAAC;IACJ,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC;IAES,YAAY,CAAC,OAA8B;QACnD,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACvC,IAAI,CAAC,KAAK,CAA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AAC,IAA+B;QACxD,gDAAgD;QAChD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;QAED,kDAAkD;QAClD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAES,QAAQ,CAAC,QAA2B;QAC5C,gDAAgD;QAChD,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;QAED,mDAAmD;QACnD,mHAAmH;QACnH,kEAAkE;QAClE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAES,WAAW,CAAC,OAA6B;QACjD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;IAC3B,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,+BAA+B;IACjC,CAAC;CACF;AAGC,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts new file mode 100644 index 00000000..1ffe72da --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts @@ -0,0 +1,89 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { Variable } from '../variable'; +declare enum ReferenceFlag { + Read = 1, + Write = 2, + ReadWrite = 3 +} +interface ReferenceImplicitGlobal { + node: TSESTree.Node; + pattern: TSESTree.BindingName; + ref?: Reference; +} +declare enum ReferenceTypeFlag { + Value = 1, + Type = 2 +} +/** + * A Reference represents a single occurrence of an identifier in code. + */ +declare class Reference { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * Reference to the enclosing Scope. + * @public + */ + readonly from: Scope; + /** + * Identifier syntax node. + * @public + */ + readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + readonly init?: boolean; + readonly maybeImplicitGlobal?: ReferenceImplicitGlobal | null; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved: Variable | null; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + readonly writeExpr?: TSESTree.Node | null; + constructor(identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag); + /** + * True if this reference can reference types + */ + get isTypeReference(): boolean; + /** + * True if this reference can reference values + */ + get isValueReference(): boolean; + /** + * Whether the reference is writeable. + * @public + */ + isWrite(): boolean; + /** + * Whether the reference is readable. + * @public + */ + isRead(): boolean; + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly(): boolean; + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly(): boolean; + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite(): boolean; +} +export { Reference, ReferenceFlag, type ReferenceImplicitGlobal, ReferenceTypeFlag, }; +//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map new file mode 100644 index 00000000..093cc331 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,aAAK,aAAa;IAChB,IAAI,IAAM;IACV,KAAK,IAAM;IACX,SAAS,IAAM;CAChB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAID,aAAK,iBAAiB;IACpB,KAAK,IAAM;IACX,IAAI,IAAM;CACX;AAED;;GAEG;AACH,cAAM,SAAS;;IACb;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAO1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC;IAEzE;;;OAGG;IACH,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAE/B,SAAgB,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAErE;;;OAGG;IACI,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,SAAgB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;gBAQ/C,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EACxD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,aAAa,EACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAChC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,CAAC,EAAE,OAAO,EACd,aAAa,oBAA0B;IAgBzC;;OAEG;IACH,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;IAED;;;OAGG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;;OAGG;IACI,UAAU,IAAI,OAAO;IAI5B;;;OAGG;IACI,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,WAAW,IAAI,OAAO;CAG9B;AAED,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,uBAAuB,EAC5B,iBAAiB,GAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js new file mode 100644 index 00000000..1739c0bb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js @@ -0,0 +1,120 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferenceTypeFlag = exports.ReferenceFlag = exports.Reference = void 0; +const ID_1 = require("../ID"); +var ReferenceFlag; +(function (ReferenceFlag) { + ReferenceFlag[ReferenceFlag["Read"] = 1] = "Read"; + ReferenceFlag[ReferenceFlag["Write"] = 2] = "Write"; + ReferenceFlag[ReferenceFlag["ReadWrite"] = 3] = "ReadWrite"; +})(ReferenceFlag || (exports.ReferenceFlag = ReferenceFlag = {})); +const generator = (0, ID_1.createIdGenerator)(); +var ReferenceTypeFlag; +(function (ReferenceTypeFlag) { + ReferenceTypeFlag[ReferenceTypeFlag["Value"] = 1] = "Value"; + ReferenceTypeFlag[ReferenceTypeFlag["Type"] = 2] = "Type"; +})(ReferenceTypeFlag || (exports.ReferenceTypeFlag = ReferenceTypeFlag = {})); +/** + * A Reference represents a single occurrence of an identifier in code. + */ +class Reference { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The read-write mode of the reference. + */ + #flag; + /** + * Reference to the enclosing Scope. + * @public + */ + from; + /** + * Identifier syntax node. + * @public + */ + identifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + init; + maybeImplicitGlobal; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + writeExpr; + /** + * In some cases, a reference may be a type, value or both a type and value reference. + */ + #referenceType; + constructor(identifier, scope, flag, writeExpr, maybeImplicitGlobal, init, referenceType = ReferenceTypeFlag.Value) { + this.identifier = identifier; + this.from = scope; + this.resolved = null; + this.#flag = flag; + if (this.isWrite()) { + this.writeExpr = writeExpr; + this.init = init; + } + this.maybeImplicitGlobal = maybeImplicitGlobal; + this.#referenceType = referenceType; + } + /** + * True if this reference can reference types + */ + get isTypeReference() { + return (this.#referenceType & ReferenceTypeFlag.Type) !== 0; + } + /** + * True if this reference can reference values + */ + get isValueReference() { + return (this.#referenceType & ReferenceTypeFlag.Value) !== 0; + } + /** + * Whether the reference is writeable. + * @public + */ + isWrite() { + return !!(this.#flag & ReferenceFlag.Write); + } + /** + * Whether the reference is readable. + * @public + */ + isRead() { + return !!(this.#flag & ReferenceFlag.Read); + } + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly() { + return this.#flag === ReferenceFlag.Read; + } + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly() { + return this.#flag === ReferenceFlag.Write; + } + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite() { + return this.#flag === ReferenceFlag.ReadWrite; + } +} +exports.Reference = Reference; +//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map new file mode 100644 index 00000000..0af1ca43 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":";;;AAKA,8BAA0C;AAE1C,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,iDAAU,CAAA;IACV,mDAAW,CAAA;IACX,2DAAe,CAAA;AACjB,CAAC,EAJI,aAAa,6BAAb,aAAa,QAIjB;AAQD,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,IAAK,iBAGJ;AAHD,WAAK,iBAAiB;IACpB,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EAHI,iBAAiB,iCAAjB,iBAAiB,QAGrB;AAED;;GAEG;AACH,MAAM,SAAS;IACb;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;OAEG;IACM,KAAK,CAAgB;IAE9B;;;OAGG;IACa,IAAI,CAAQ;IAE5B;;;OAGG;IACa,UAAU,CAA+C;IAEzE;;;OAGG;IACa,IAAI,CAAW;IAEf,mBAAmB,CAAkC;IAErE;;;OAGG;IACI,QAAQ,CAAkB;IAEjC;;;OAGG;IACa,SAAS,CAAwB;IAEjD;;OAEG;IACM,cAAc,CAAoB;IAE3C,YACE,UAAwD,EACxD,KAAY,EACZ,IAAmB,EACnB,SAAgC,EAChC,mBAAoD,EACpD,IAAc,EACd,aAAa,GAAG,iBAAiB,CAAC,KAAK;QAEvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAA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ope-manager/dist/referencer/Referencer.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts new file mode 100644 index 00000000..d7799ca2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts @@ -0,0 +1,87 @@ +import type { Lib, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { ScopeManager } from '../ScopeManager'; +import type { ReferenceImplicitGlobal } from './Reference'; +import type { VisitorOptions } from './Visitor'; +import { Visitor } from './Visitor'; +interface ReferencerOptions extends VisitorOptions { + jsxFragmentName: string | null; + jsxPragma: string | null; + lib: Lib[]; +} +declare class Referencer extends Visitor { + #private; + readonly scopeManager: ScopeManager; + constructor(options: ReferencerOptions, scopeManager: ScopeManager); + private populateGlobalsFromLib; + close(node: TSESTree.Node): void; + currentScope(): Scope; + currentScope(throwOnNull: true): Scope | null; + referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void; + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + private referenceInSomeUpperScope; + private referenceJsxFragment; + private referenceJsxPragma; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void; + protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitProperty(node: TSESTree.Property): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion): void; + protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected BlockStatement(node: TSESTree.BlockStatement): void; + protected BreakStatement(): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected CatchClause(node: TSESTree.CatchClause): void; + protected ClassDeclaration(node: TSESTree.ClassDeclaration): void; + protected ClassExpression(node: TSESTree.ClassExpression): void; + protected ContinueStatement(): void; + protected ExportAllDeclaration(): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ForInStatement(node: TSESTree.ForInStatement): void; + protected ForOfStatement(node: TSESTree.ForOfStatement): void; + protected ForStatement(node: TSESTree.ForStatement): void; + protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void; + protected FunctionExpression(node: TSESTree.FunctionExpression): void; + protected Identifier(node: TSESTree.Identifier): void; + protected ImportAttribute(): void; + protected ImportDeclaration(node: TSESTree.ImportDeclaration): void; + protected JSXAttribute(node: TSESTree.JSXAttribute): void; + protected JSXClosingElement(): void; + protected JSXFragment(node: TSESTree.JSXFragment): void; + protected JSXIdentifier(node: TSESTree.JSXIdentifier): void; + protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void; + protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void; + protected LabeledStatement(node: TSESTree.LabeledStatement): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected MetaProperty(): void; + protected NewExpression(node: TSESTree.NewExpression): void; + protected PrivateIdentifier(): void; + protected Program(node: TSESTree.Program): void; + protected Property(node: TSESTree.Property): void; + protected SwitchStatement(node: TSESTree.SwitchStatement): void; + protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void; + protected TSAsExpression(node: TSESTree.TSAsExpression): void; + protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void; + protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void; + protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void; + protected TSExportAssignment(node: TSESTree.TSExportAssignment): void; + protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void; + protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void; + protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void; + protected UpdateExpression(node: TSESTree.UpdateExpression): void; + protected VariableDeclaration(node: TSESTree.VariableDeclaration): void; + protected WithStatement(node: TSESTree.WithStatement): void; + private visitExpressionTarget; +} +export { Referencer, type ReferencerOptions }; +//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map new file mode 100644 index 00000000..30658571 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAoBhD,OAAO,EAAE,OAAO,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,IAAI;IAI/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAgBjE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAoCvE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAW3D,OAAO,CAAC,qBAAqB;CAc9B;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js new file mode 100644 index 00000000..381cd44b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js @@ -0,0 +1,540 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const lib_1 = require("../lib"); +const ClassVisitor_1 = require("./ClassVisitor"); +const ExportVisitor_1 = require("./ExportVisitor"); +const ImportVisitor_1 = require("./ImportVisitor"); +const PatternVisitor_1 = require("./PatternVisitor"); +const Reference_1 = require("./Reference"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +// Referencing variables and creating bindings. +class Referencer extends Visitor_1.Visitor { + #hasReferencedJsxFactory = false; + #hasReferencedJsxFragmentFactory = false; + #jsxFragmentName; + #jsxPragma; + #lib; + scopeManager; + constructor(options, scopeManager) { + super(options); + this.scopeManager = scopeManager; + this.#jsxPragma = options.jsxPragma; + this.#jsxFragmentName = options.jsxFragmentName; + this.#lib = options.lib; + } + populateGlobalsFromLib(globalScope) { + for (const lib of this.#lib) { + const variables = lib_1.lib[lib]; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + /* istanbul ignore if */ if (!variables) { + throw new Error(`Invalid value for lib provided: ${lib}`); + } + for (const [name, variable] of Object.entries(variables)) { + globalScope.defineImplicitVariable(name, variable); + } + } + // for const assertions (`{} as const` / `{}`) + globalScope.defineImplicitVariable('const', { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + }); + } + close(node) { + while (this.currentScope(true) && node === this.currentScope().block) { + this.scopeManager.currentScope = this.currentScope().close(this.scopeManager); + } + } + currentScope(dontThrowOnNull) { + if (!dontThrowOnNull) { + (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa'); + } + return this.scopeManager.currentScope; + } + referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { + assignments.forEach(assignment => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, assignment.right, maybeImplicitGlobal, init); + }); + } + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + referenceInSomeUpperScope(name) { + let scope = this.scopeManager.currentScope; + while (scope) { + const variable = scope.set.get(name); + if (!variable) { + scope = scope.upper; + continue; + } + scope.referenceValue(variable.identifiers[0]); + return true; + } + return false; + } + referenceJsxFragment() { + if (this.#jsxFragmentName == null || + this.#hasReferencedJsxFragmentFactory) { + return; + } + this.#hasReferencedJsxFragmentFactory = this.referenceInSomeUpperScope(this.#jsxFragmentName); + } + referenceJsxPragma() { + if (this.#jsxPragma == null || this.#hasReferencedJsxFactory) { + return; + } + this.#hasReferencedJsxFactory = this.referenceInSomeUpperScope(this.#jsxPragma); + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + ClassVisitor_1.ClassVisitor.visit(this, node); + } + visitForIn(node) { + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.left.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration) { + this.visit(node.left); + this.visitPattern(node.left.declarations[0].id, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, null, true); + }); + } + else { + this.visitPattern(node.left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + this.visit(node.right); + this.visit(node.body); + this.close(node); + } + visitFunction(node) { + // FunctionDeclaration name is defined in upper scope + // NOTE: Not referring variableScope. It is intended. + // Since + // in ES5, FunctionDeclaration should be in FunctionBody. + // in ES6, FunctionDeclaration should be block scoped. + if (node.type === types_1.AST_NODE_TYPES.FunctionExpression) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.scopeManager.nestFunctionExpressionNameScope(node); + } + } + else if (node.id) { + // id is defined in upper scope + this.currentScope().defineIdentifier(node.id, new definition_1.FunctionNameDefinition(node.id, node)); + } + // Consider this function is in the MethodDefinition. + this.scopeManager.nestFunctionScope(node, false); + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + // In TypeScript there are a number of function-like constructs which have no body, + // so check it exists before traversing + if (node.body) { + // Skip BlockStatement to prevent creating BlockStatement scope. + if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { + this.visitChildren(node.body); + } + else { + this.visit(node.body); + } + } + this.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + break; + } + } + visitProperty(node) { + if (node.computed) { + this.visit(node.key); + } + this.visit(node.value); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this, node); + } + visitTypeAssertion(node) { + this.visit(node.expression); + this.visitType(node.typeAnnotation); + } + ///////////////////// + // Visit selectors // + ///////////////////// + ArrowFunctionExpression(node) { + this.visitFunction(node); + } + AssignmentExpression(node) { + const left = this.visitExpressionTarget(node.left); + if (PatternVisitor_1.PatternVisitor.isPattern(left)) { + if (node.operator === '=') { + this.visitPattern(left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + else if (left.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().referenceValue(left, Reference_1.ReferenceFlag.ReadWrite, node.right); + } + } + else { + this.visit(left); + } + this.visit(node.right); + } + BlockStatement(node) { + this.scopeManager.nestBlockScope(node); + this.visitChildren(node); + this.close(node); + } + BreakStatement() { + // don't reference the break statement's label + } + CallExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + CatchClause(node) { + this.scopeManager.nestCatchScope(node); + if (node.param) { + const param = node.param; + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + } + this.visit(node.body); + this.close(node); + } + ClassDeclaration(node) { + this.visitClass(node); + } + ClassExpression(node) { + this.visitClass(node); + } + ContinueStatement() { + // don't reference the continue statement's label + } + ExportAllDeclaration() { + // this defines no local variables + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + else { + this.visit(node.declaration); + } + } + ExportNamedDeclaration(node) { + if (node.declaration) { + this.visit(node.declaration); + } + else { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + } + ForInStatement(node) { + this.visitForIn(node); + } + ForOfStatement(node) { + this.visitForIn(node); + } + ForStatement(node) { + // Create ForStatement declaration. + // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is + // a static analyzer, we only generate one scope for ForStatement. + if (node.init && + node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.init.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + this.visitChildren(node); + this.close(node); + } + FunctionDeclaration(node) { + this.visitFunction(node); + } + FunctionExpression(node) { + this.visitFunction(node); + } + Identifier(node) { + this.currentScope().referenceValue(node); + this.visitType(node.typeAnnotation); + } + ImportAttribute() { + // import assertions are module metadata and thus have no variables to reference + } + ImportDeclaration(node) { + (0, assert_1.assert)(this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); + ImportVisitor_1.ImportVisitor.visit(this, node); + } + JSXAttribute(node) { + this.visit(node.value); + } + JSXClosingElement() { + // should not be counted as a reference + } + JSXFragment(node) { + this.referenceJsxPragma(); + this.referenceJsxFragment(); + this.visitChildren(node); + } + JSXIdentifier(node) { + this.currentScope().referenceValue(node); + } + JSXMemberExpression(node) { + if (node.object.type !== types_1.AST_NODE_TYPES.JSXIdentifier || + node.object.name !== 'this') { + this.visit(node.object); + } + // we don't ever reference the property as it's always going to be a property on the thing + } + JSXOpeningElement(node) { + this.referenceJsxPragma(); + if (node.name.type === types_1.AST_NODE_TYPES.JSXIdentifier) { + if (node.name.name[0].toUpperCase() === node.name.name[0] || + node.name.name === 'this') { + // lower cased component names are always treated as "intrinsic" names, and are converted to a string, + // not a variable by JSX transforms: + //
=> React.createElement("div", null) + // the only case we want to visit a lower-cased component has its name as "this", + this.visit(node.name); + } + } + else { + this.visit(node.name); + } + this.visitType(node.typeArguments); + for (const attr of node.attributes) { + this.visit(attr); + } + } + LabeledStatement(node) { + this.visit(node.body); + } + MemberExpression(node) { + this.visit(node.object); + if (node.computed) { + this.visit(node.property); + } + } + MetaProperty() { + // meta properties all builtin globals + } + NewExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + PrivateIdentifier() { + // private identifiers are members on classes and thus have no variables to reference + } + Program(node) { + const globalScope = this.scopeManager.nestGlobalScope(node); + this.populateGlobalsFromLib(globalScope); + if (this.scopeManager.isGlobalReturn()) { + // Force strictness of GlobalScope to false when using node.js scope. + this.currentScope().isStrict = false; + this.scopeManager.nestFunctionScope(node, false); + } + if (this.scopeManager.isModule()) { + this.scopeManager.nestModuleScope(node); + } + if (this.scopeManager.isImpliedStrict()) { + this.currentScope().isStrict = true; + } + this.visitChildren(node); + this.close(node); + } + Property(node) { + this.visitProperty(node); + } + SwitchStatement(node) { + this.visit(node.discriminant); + this.scopeManager.nestSwitchScope(node); + for (const switchCase of node.cases) { + this.visit(switchCase); + } + this.close(node); + } + TaggedTemplateExpression(node) { + this.visit(node.tag); + this.visit(node.quasi); + this.visitType(node.typeArguments); + } + TSAsExpression(node) { + this.visitTypeAssertion(node); + } + TSDeclareFunction(node) { + this.visitFunction(node); + } + TSEmptyBodyFunctionExpression(node) { + this.visitFunction(node); + } + TSEnumDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); + // enum members can be referenced within the enum body + this.scopeManager.nestTSEnumScope(node); + for (const member of node.body.members) { + // TS resolves literal named members to be actual names + // enum Foo { + // 'a' = 1, + // b = a, // this references the 'a' member + // } + if (member.id.type === types_1.AST_NODE_TYPES.Literal && + typeof member.id.value === 'string') { + const name = member.id; + this.currentScope().defineLiteralIdentifier(name, new definition_1.TSEnumMemberDefinition(name, member)); + } + else if (!member.computed && + member.id.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().defineIdentifier(member.id, new definition_1.TSEnumMemberDefinition(member.id, member)); + } + this.visit(member.initializer); + } + this.close(node); + } + TSExportAssignment(node) { + if (node.expression.type === types_1.AST_NODE_TYPES.Identifier) { + // this is a special case - you can `export = T` where `T` is a type OR a + // value however `T[U]` is illegal when `T` is a type and `T.U` is illegal + // when `T.U` is a type + // i.e. if the expression is JUST an Identifier - it could be either ref + // kind; otherwise the standard rules apply + this.currentScope().referenceDualValueType(node.expression); + } + else { + this.visit(node.expression); + } + } + TSImportEqualsDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.ImportBindingDefinition(node.id, node, node)); + if (node.moduleReference.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let moduleIdentifier = node.moduleReference.left; + while (moduleIdentifier.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + moduleIdentifier = moduleIdentifier.left; + } + this.visit(moduleIdentifier); + } + else { + this.visit(node.moduleReference); + } + } + TSInstantiationExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + TSInterfaceDeclaration(node) { + this.visitType(node); + } + TSModuleDeclaration(node) { + if (node.id.type === types_1.AST_NODE_TYPES.Identifier && node.kind !== 'global') { + this.currentScope().defineIdentifier(node.id, new definition_1.TSModuleNameDefinition(node.id, node)); + } + this.scopeManager.nestTSModuleScope(node); + this.visit(node.body); + this.close(node); + } + TSSatisfiesExpression(node) { + this.visitTypeAssertion(node); + } + TSTypeAliasDeclaration(node) { + this.visitType(node); + } + TSTypeAssertion(node) { + this.visitTypeAssertion(node); + } + UpdateExpression(node) { + const argument = this.visitExpressionTarget(node.argument); + if (PatternVisitor_1.PatternVisitor.isPattern(argument)) { + this.visitPattern(argument, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.ReadWrite, null); + }); + } + else { + this.visitChildren(node); + } + } + VariableDeclaration(node) { + const variableTargetScope = node.kind === 'var' + ? this.currentScope().variableScope + : this.currentScope(); + for (const decl of node.declarations) { + const init = decl.init; + this.visitPattern(decl.id, (pattern, info) => { + variableTargetScope.defineIdentifier(pattern, new definition_1.VariableDefinition(pattern, decl, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + if (init) { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, init, null, true); + } + }, { processRightHandNodes: true }); + this.visit(decl.init); + this.visitType(decl.id.typeAnnotation); + } + } + WithStatement(node) { + this.visit(node.object); + // Then nest scope for WithStatement. + this.scopeManager.nestWithScope(node); + this.visit(node.body); + this.close(node); + } + visitExpressionTarget(left) { + switch (left.type) { + case types_1.AST_NODE_TYPES.TSAsExpression: + case types_1.AST_NODE_TYPES.TSTypeAssertion: + // explicitly visit the type annotation + this.visitType(left.typeAnnotation); + // intentional fallthrough + case types_1.AST_NODE_TYPES.TSNonNullExpression: + // unwrap the expression + left = left.expression; + } + return left; + } +} +exports.Referencer = Referencer; +//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map new file mode 100644 index 00000000..5281caf1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAmC;AACnC,8CASuB;AACvB,gCAA4C;AAC5C,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,2CAA4C;AAC5C,+CAA4C;AAC5C,uCAAoC;AAQpC,+CAA+C;AAC/C,MAAM,UAAW,SAAQ,iBAAO;IAC9B,wBAAwB,GAAG,KAAK,CAAC;IACjC,gCAAgC,GAAG,KAAK,CAAC;IACzC,gBAAgB,CAAgB;IAChC,UAA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,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACtC,0BAA0B;YAC1B,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,wBAAwB;gBACxB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts new file mode 100644 index 00000000..6d37e6a4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts @@ -0,0 +1,33 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class TypeVisitor extends Visitor { + #private; + constructor(referencer: Referencer); + static visit(referencer: Referencer, node: TSESTree.Node): void; + protected visitFunctionType(node: TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSFunctionType | TSESTree.TSMethodSignature): void; + protected visitPropertyKey(node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected TSCallSignatureDeclaration(node: TSESTree.TSCallSignatureDeclaration): void; + protected TSConditionalType(node: TSESTree.TSConditionalType): void; + protected TSConstructorType(node: TSESTree.TSConstructorType): void; + protected TSConstructSignatureDeclaration(node: TSESTree.TSConstructSignatureDeclaration): void; + protected TSFunctionType(node: TSESTree.TSFunctionType): void; + protected TSImportType(node: TSESTree.TSImportType): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; + protected TSInferType(node: TSESTree.TSInferType): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSMappedType(node: TSESTree.TSMappedType): void; + protected TSMethodSignature(node: TSESTree.TSMethodSignature): void; + protected TSNamedTupleMember(node: TSESTree.TSNamedTupleMember): void; + protected TSPropertySignature(node: TSESTree.TSPropertySignature): void; + protected TSQualifiedName(node: TSESTree.TSQualifiedName): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeParameter(node: TSESTree.TSTypeParameter): void; + protected TSTypePredicate(node: TSESTree.TSTypePredicate): void; + protected TSTypeAnnotation(node: TSESTree.TSTypeAnnotation): void; + protected TSTypeQuery(node: TSESTree.TSTypeQuery): void; +} +export { TypeVisitor }; +//# sourceMappingURL=TypeVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map new file mode 100644 index 00000000..9e2402d3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,WAAY,SAAQ,OAAO;;gBAGnB,UAAU,EAAE,UAAU;IAKlC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI;IAS/D,SAAS,CAAC,iBAAiB,CACzB,IAAI,EACA,QAAQ,CAAC,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GAAG,IAAI;IAKnE,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAKrE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAKvE,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAkBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAS/D,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAQ/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAKjE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;CAwBxD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js new file mode 100644 index 00000000..dcb28e05 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js @@ -0,0 +1,222 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const scope_1 = require("../scope"); +const Visitor_1 = require("./Visitor"); +class TypeVisitor extends Visitor_1.Visitor { + #referencer; + constructor(referencer) { + super(referencer); + this.#referencer = referencer; + } + static visit(referencer, node) { + const typeReferencer = new TypeVisitor(referencer); + typeReferencer.visit(node); + } + /////////////////// + // Visit helpers // + /////////////////// + visitFunctionType(node) { + // arguments and type parameters can only be referenced from within the function + this.#referencer.scopeManager.nestFunctionTypeScope(node); + this.visit(node.typeParameters); + for (const param of node.params) { + let didVisitAnnotation = false; + this.visitPattern(param, (pattern, info) => { + // a parameter name creates a value type variable which can be referenced later via typeof arg + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + if (pattern.typeAnnotation) { + this.visit(pattern.typeAnnotation); + didVisitAnnotation = true; + } + }); + // there are a few special cases where the type annotation is owned by the parameter, not the pattern + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (!didVisitAnnotation && 'typeAnnotation' in param) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.returnType); + this.#referencer.close(node); + } + visitPropertyKey(node) { + if (!node.computed) { + return; + } + // computed members are treated as value references, and TS expects they have a literal type + this.#referencer.visit(node.key); + } + ///////////////////// + // Visit selectors // + ///////////////////// + Identifier(node) { + this.#referencer.currentScope().referenceType(node); + } + MemberExpression(node) { + this.visit(node.object); + // don't visit the property + } + TSCallSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSConditionalType(node) { + // conditional types can define inferred type parameters + // which are only accessible from inside the conditional parameter + this.#referencer.scopeManager.nestConditionalTypeScope(node); + // type parameters inferred in the condition clause are not accessible within the false branch + this.visitChildren(node, ['falseType']); + this.#referencer.close(node); + this.visit(node.falseType); + } + TSConstructorType(node) { + this.visitFunctionType(node); + } + TSConstructSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSFunctionType(node) { + this.visitFunctionType(node); + } + TSImportType(node) { + // the TS parser allows any type to be the parameter, but it's a syntax error - so we can ignore it + this.visit(node.typeArguments); + // the qualifier is just part of a standard EntityName, so it should not be visited + } + TSIndexSignature(node) { + for (const param of node.parameters) { + if (param.type === types_1.AST_NODE_TYPES.Identifier) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.typeAnnotation); + } + TSInferType(node) { + const typeParameter = node.typeParameter; + let scope = this.#referencer.currentScope(); + /* + In cases where there is a sub-type scope created within a conditional type, then the generic should be defined in the + conditional type's scope, not the child type scope. + If we define it within the child type's scope then it won't be able to be referenced outside the child type + */ + if (scope.type === scope_1.ScopeType.functionType || + scope.type === scope_1.ScopeType.mappedType) { + // search up the scope tree to figure out if we're in a nested type scope + let currentScope = scope.upper; + while (currentScope) { + if (currentScope.type === scope_1.ScopeType.functionType || + currentScope.type === scope_1.ScopeType.mappedType) { + // ensure valid type parents only + currentScope = currentScope.upper; + continue; + } + if (currentScope.type === scope_1.ScopeType.conditionalType) { + scope = currentScope; + break; + } + break; + } + } + scope.defineIdentifier(typeParameter.name, new definition_1.TypeDefinition(typeParameter.name, typeParameter)); + this.visit(typeParameter.constraint); + } + TSInterfaceDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + node.extends.forEach(this.visit, this); + this.visit(node.body); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSMappedType(node) { + // mapped types key can only be referenced within their return value + this.#referencer.scopeManager.nestMappedTypeScope(node); + this.#referencer + .currentScope() + .defineIdentifier(node.key, new definition_1.TypeDefinition(node.key, node)); + this.visit(node.constraint); + this.visit(node.nameType); + this.visit(node.typeAnnotation); + this.#referencer.close(node); + } + TSMethodSignature(node) { + this.visitPropertyKey(node); + this.visitFunctionType(node); + } + TSNamedTupleMember(node) { + this.visit(node.elementType); + // we don't visit the label as the label only exists for the purposes of documentation + } + TSPropertySignature(node) { + this.visitPropertyKey(node); + this.visit(node.typeAnnotation); + } + TSQualifiedName(node) { + this.visit(node.left); + // we don't visit the right as it a name on the thing, not a name to reference + } + TSTypeAliasDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + this.visit(node.typeAnnotation); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSTypeParameter(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.name, new definition_1.TypeDefinition(node.name, node)); + this.visit(node.constraint); + this.visit(node.default); + } + TSTypePredicate(node) { + if (node.parameterName.type !== types_1.AST_NODE_TYPES.TSThisType) { + this.#referencer.currentScope().referenceValue(node.parameterName); + } + this.visit(node.typeAnnotation); + } + // a type query `typeof foo` is a special case that references a _non-type_ variable, + TSTypeAnnotation(node) { + // check + this.visitChildren(node); + } + TSTypeQuery(node) { + let entityName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let iter = node.exprName; + while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + iter = iter.left; + } + entityName = iter.left; + } + else { + entityName = node.exprName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSImportType) { + this.visit(node.exprName); + } + } + if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { + this.#referencer.currentScope().referenceValue(entityName); + } + this.visit(node.typeArguments); + } +} +exports.TypeVisitor = TypeVisitor; +//# sourceMappingURL=TypeVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map new file mode 100644 index 00000000..00905e04 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.js","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAK1D,8CAAoE;AACpE,oCAAqC;AACrC,uCAAoC;AAEpC,MAAM,WAAY,SAA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ACvD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts new file mode 100644 index 00000000..d0a474a6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { PatternVisitorCallback, PatternVisitorOptions } from './PatternVisitor'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +interface VisitPatternOptions extends PatternVisitorOptions { + processRightHandNodes?: boolean; +} +declare class Visitor extends VisitorBase { + #private; + constructor(optionsOrVisitor: Visitor | VisitorOptions); + protected visitPattern(node: TSESTree.Node, callback: PatternVisitorCallback, options?: VisitPatternOptions): void; +} +export { Visitor }; +export { VisitorBase, type VisitorOptions } from './VisitorBase'; +//# sourceMappingURL=Visitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map new file mode 100644 index 00000000..1dc951ce --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AACD,cAAM,OAAQ,SAAQ,WAAW;;gBAEnB,gBAAgB,EAAE,OAAO,GAAG,cAAc;IAatD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,mBAAsD,GAC9D,IAAI;CAWR;AAED,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js new file mode 100644 index 00000000..5bc200f3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = exports.Visitor = void 0; +const PatternVisitor_1 = require("./PatternVisitor"); +const VisitorBase_1 = require("./VisitorBase"); +class Visitor extends VisitorBase_1.VisitorBase { + #options; + constructor(optionsOrVisitor) { + super(optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor); + this.#options = + optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor; + } + visitPattern(node, callback, options = { processRightHandNodes: false }) { + // Call the callback at left hand identifier nodes, and Collect right hand nodes. + const visitor = new PatternVisitor_1.PatternVisitor(this.#options, node, callback); + visitor.visit(node); + // Process the right hand nodes recursively. + if (options.processRightHandNodes) { + visitor.rightHandNodes.forEach(this.visit, this); + } + } +} +exports.Visitor = Visitor; +var VisitorBase_2 = require("./VisitorBase"); +Object.defineProperty(exports, "VisitorBase", { enumerable: true, get: function () { return VisitorBase_2.VisitorBase; } }); +//# sourceMappingURL=Visitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map new file mode 100644 index 00000000..0e4878ce --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":";;;AAQA,qDAAkD;AAClD,+CAA4C;AAK5C,MAAM,OAAQ,SAAQ,yBAAW;IACtB,QAAQ,CAAiB;IAClC,YAAY,gBAA0C;QACpD,KAAK,CACH,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;YAC3B,CAAC,CAAC,gBAAgB,CACrB,CAAC;QAEF,IAAI,CAAC,QAAQ;YACX,gBAAgB,YAAY,OAAO;gBACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;gBAC3B,CAAC,CAAC,gBAAgB,CAAC;IACzB,CAAC;IAES,YAAY,CACpB,IAAmB,EACnB,QAAgC,EAChC,UAA+B,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAE/D,iFAAiF;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAElE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpB,4CAA4C;QAC5C,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAClC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AAEQ,0BAAO;AAEhB,6CAAiE;AAAxD,0GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts new file mode 100644 index 00000000..1a4883b2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts @@ -0,0 +1,23 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +interface VisitorOptions { + childVisitorKeys?: VisitorKeys | null; + visitChildrenEvenIfSelectorExists?: boolean; +} +declare abstract class VisitorBase { + #private; + constructor(options: VisitorOptions); + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node: T | null | undefined, excludeArr?: (keyof T)[]): void; + /** + * Dispatching node. + */ + visit(node: TSESTree.Node | null | undefined): void; +} +export { VisitorBase, type VisitorOptions }; +export type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +//# sourceMappingURL=VisitorBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map new file mode 100644 index 00000000..2036e9d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.d.ts","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,UAAU,cAAc;IACtB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C;AAaD,uBAAe,WAAW;;gBAGZ,OAAO,EAAE,cAAc;IAMnC;;;;OAIG;IACH,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,UAAU,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAC3B,IAAI;IA6BP;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAepD;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,CAAC;AAE5C,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js new file mode 100644 index 00000000..22d9d258 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = void 0; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isObject(obj) { + return typeof obj === 'object' && obj != null; +} +function isNode(node) { + return isObject(node) && typeof node.type === 'string'; +} +class VisitorBase { + #childVisitorKeys; + #visitChildrenEvenIfSelectorExists; + constructor(options) { + this.#childVisitorKeys = options.childVisitorKeys ?? visitor_keys_1.visitorKeys; + this.#visitChildrenEvenIfSelectorExists = + options.visitChildrenEvenIfSelectorExists ?? false; + } + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node, excludeArr = []) { + if (node?.type == null) { + return; + } + const exclude = new Set([...excludeArr, 'parent']); + const children = this.#childVisitorKeys[node.type] ?? Object.keys(node); + for (const key of children) { + if (exclude.has(key)) { + continue; + } + const child = node[key]; + if (!child) { + continue; + } + if (Array.isArray(child)) { + for (const subChild of child) { + if (isNode(subChild)) { + this.visit(subChild); + } + } + } + else if (isNode(child)) { + this.visit(child); + } + } + } + /** + * Dispatching node. + */ + visit(node) { + if (node?.type == null) { + return; + } + const visitor = this[node.type]; + if (visitor) { + visitor.call(this, node); + if (!this.#visitChildrenEvenIfSelectorExists) { + return; + } + } + this.visitChildren(node); + } +} +exports.VisitorBase = VisitorBase; +//# sourceMappingURL=VisitorBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map new file mode 100644 index 00000000..f9d611ab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.js","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":";;;AAGA,kEAA8D;AAO9D,SAAS,QAAQ,CAAC,GAAY;IAC5B,OA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,CAAC,CAAC;oBACvB,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsC;QAC1C,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAI,IAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,kCAAkC,EAAE,CAAC;gBAC7C,OAAO;YACT,CAAC;QACH,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts new file mode 100644 index 00000000..7f232ed4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts @@ -0,0 +1,2 @@ +export { Referencer, type ReferencerOptions } from './Referencer'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map new file mode 100644 index 00000000..36b3e570 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js new file mode 100644 index 00000000..16625137 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +var Referencer_1 = require("./Referencer"); +Object.defineProperty(exports, "Referencer", { enumerable: true, get: function () { return Referencer_1.Referencer; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map new file mode 100644 index 00000000..daf5a5e4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":";;;AAAA,2CAAkE;AAAzD,wGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts new file mode 100644 index 00000000..66f2713f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class BlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']); +} +export { BlockScope }; +//# sourceMappingURL=BlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map new file mode 100644 index 00000000..4a9d37ee --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,cAAc,EACvB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js new file mode 100644 index 00000000..0fc34d61 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class BlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.block, upperScope, block, false); + } +} +exports.BlockScope = BlockScope; +//# sourceMappingURL=BlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map new file mode 100644 index 00000000..c014e70c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.js","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts new file mode 100644 index 00000000..59532d23 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class CatchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']); +} +export { CatchScope }; +//# sourceMappingURL=CatchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map new file mode 100644 index 00000000..a8a78341 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.d.ts","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js new file mode 100644 index 00000000..dbb630f2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class CatchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.catch, upperScope, block, false); + } +} +exports.CatchScope = CatchScope; +//# sourceMappingURL=CatchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map new file mode 100644 index 00000000..0ead4562 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.js","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts new file mode 100644 index 00000000..a6467363 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassFieldInitializerScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']); +} +export { ClassFieldInitializerScope }; +//# sourceMappingURL=ClassFieldInitializerScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map new file mode 100644 index 00000000..d10ba967 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,0BAA2B,SAAQ,SAAS,CAChD,SAAS,CAAC,qBAAqB,EAE/B,QAAQ,CAAC,UAAU,EACnB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAU7C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js new file mode 100644 index 00000000..5d3bb691 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassFieldInitializerScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassFieldInitializerScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classFieldInitializer, upperScope, block, false); + } +} +exports.ClassFieldInitializerScope = ClassFieldInitializerScope; +//# sourceMappingURL=ClassFieldInitializerScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map new file mode 100644 index 00000000..6f517d67 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.js","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,0BAA2B,SAAQ,qBAKxC;IACC,YACE,YAA0B,EAC1B,UAA+C,EAC/C,KAA0C;QAE1C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,qBAAqB,EAC/B,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,gEAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts new file mode 100644 index 00000000..c31a3364 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']); +} +export { ClassScope }; +//# sourceMappingURL=ClassScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map new file mode 100644 index 00000000..de93ece0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js new file mode 100644 index 00000000..003e214f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.class, upperScope, block, false); + } +} +exports.ClassScope = ClassScope; +//# sourceMappingURL=ClassScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map new file mode 100644 index 00000000..2728afb1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.js","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts new file mode 100644 index 00000000..7d7e81b0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassStaticBlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']); +} +export { ClassStaticBlockScope }; +//# sourceMappingURL=ClassStaticBlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map new file mode 100644 index 00000000..7a2ed823 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,qBAAsB,SAAQ,SAAS,CAC3C,SAAS,CAAC,gBAAgB,EAC1B,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAC1C,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC;CAIxC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js new file mode 100644 index 00000000..3f23aa68 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassStaticBlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassStaticBlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false); + } +} +exports.ClassStaticBlockScope = ClassStaticBlockScope; +//# sourceMappingURL=ClassStaticBlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map new file mode 100644 index 00000000..fdfdc3a2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.js","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,qBAAsB,SAAQ,qBAInC;IACC,YACE,YAA0B,EAC1B,UAA0C,EAC1C,KAAqC;QAErC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts new file mode 100644 index 00000000..6d35e6ec --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ConditionalTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']); +} +export { ConditionalTypeScope }; +//# sourceMappingURL=ConditionalTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map new file mode 100644 index 00000000..296425aa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,oBAAqB,SAAQ,SAAS,CAC1C,SAAS,CAAC,eAAe,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAIvC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js new file mode 100644 index 00000000..8fbd7c50 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConditionalTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ConditionalTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.conditionalType, upperScope, block, false); + } +} +exports.ConditionalTypeScope = ConditionalTypeScope; +//# sourceMappingURL=ConditionalTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map new file mode 100644 index 00000000..8288f23b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.js","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,oBAAqB,SAAQ,qBAIlC;IACC,YACE,YAA0B,EAC1B,UAAyC,EACzC,KAAoC;QAEpC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts new file mode 100644 index 00000000..ed2f2245 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ForScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']); +} +export { ForScope }; +//# sourceMappingURL=ForScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map new file mode 100644 index 00000000..b4ee2161 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.d.ts","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,QAAS,SAAQ,SAAS,CAC9B,SAAS,CAAC,GAAG,EACb,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,EACzE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;CAI3B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js new file mode 100644 index 00000000..cd27683e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ForScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ForScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.for, upperScope, block, false); + } +} +exports.ForScope = ForScope; +//# sourceMappingURL=ForScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map new file mode 100644 index 00000000..97f1b25d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.js","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,QAAS,SAAQ,qBAItB;IACC,YACE,YAA0B,EAC1B,UAA6B,EAC7B,KAAwB;QAExB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts new file mode 100644 index 00000000..2f5044ca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionExpressionNameScope extends ScopeBase { + readonly functionExpressionScope: true; + constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']); +} +export { FunctionExpressionNameScope }; +//# sourceMappingURL=FunctionExpressionNameScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map new file mode 100644 index 00000000..ba95ba4d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,2BAA4B,SAAQ,SAAS,CACjD,SAAS,CAAC,sBAAsB,EAChC,QAAQ,CAAC,kBAAkB,EAC3B,KAAK,CACN;IACC,SAAgB,uBAAuB,EAAE,IAAI,CAAC;gBAE5C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAChD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC;CAiB9C;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js new file mode 100644 index 00000000..ed1f061b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionExpressionNameScope = void 0; +const definition_1 = require("../definition"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionExpressionNameScope extends ScopeBase_1.ScopeBase { + functionExpressionScope; + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionExpressionName, upperScope, block, false); + if (block.id) { + this.defineIdentifier(block.id, new definition_1.FunctionNameDefinition(block.id, block)); + } + this.functionExpressionScope = true; + } +} +exports.FunctionExpressionNameScope = FunctionExpressionNameScope; +//# sourceMappingURL=FunctionExpressionNameScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map new file mode 100644 index 00000000..30d1e1b4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.js","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":";;;AAKA,8CAAuD;AACvD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,2BAA4B,SAAQ,qBAIzC;IACiB,uBAAuB,CAAO;IAC9C,YACE,YAA0B,EAC1B,UAAgD,EAChD,KAA2C;QAE3C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,sBAAsB,EAChC,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;QACF,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACb,IAAI,CAAC,gBAAgB,CACnB,KAAK,CAAC,EAAE,EACR,IAAI,mCAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAC5C,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;CACF;AAEQ,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts new file mode 100644 index 00000000..f1bf5e11 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts @@ -0,0 +1,13 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Reference } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { Variable } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean); + protected isValidResolution(ref: Reference, variable: Variable): boolean; +} +export { FunctionScope }; +//# sourceMappingURL=FunctionScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map new file mode 100644 index 00000000..c0dca2c7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAChB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,OAAO,GAChB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,kBAAkB,EAAE,OAAO;IAuB7B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAiBzE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js new file mode 100644 index 00000000..a45b74f0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block, isMethodDefinition) { + super(scopeManager, ScopeType_1.ScopeType.function, upperScope, block, isMethodDefinition); + // section 9.2.13, FunctionDeclarationInstantiation. + // NOTE Arrow functions never have an arguments objects. + if (this.block.type !== types_1.AST_NODE_TYPES.ArrowFunctionExpression) { + this.defineVariable('arguments', this.set, this.variables, null, null); + } + } + // References in default parameters isn't resolved to variables which are in their function body. + // const x = 1 + // function f(a = x) { // This `x` is resolved to the `x` in the outer scope. + // const x = 2 + // console.log(a) + // } + isValidResolution(ref, variable) { + // If `options.globalReturn` is true, `this.block` becomes a Program node. + if (this.block.type === types_1.AST_NODE_TYPES.Program) { + return true; + } + const bodyStart = this.block.body?.range[0] ?? -1; + // It's invalid resolution in the following case: + return !((variable.scope === this && + ref.identifier.range[0] < bodyStart && // the reference is in the parameter part. + variable.defs.every(d => d.name.range[0] >= bodyStart)) // the variable is in the body. + ); + } +} +exports.FunctionScope = FunctionScope; +//# sourceMappingURL=FunctionScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map new file mode 100644 index 00000000..a96b318f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.js","sourceRoot":"","sources":["../../src/scope/F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"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts new file mode 100644 index 00000000..5cdeb57f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']); +} +export { FunctionTypeScope }; +//# sourceMappingURL=FunctionTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map new file mode 100644 index 00000000..540d46bb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,iBAAkB,SAAQ,SAAS,CACvC,SAAS,CAAC,YAAY,EACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC;CAIpC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js new file mode 100644 index 00000000..3d7fe797 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionType, upperScope, block, false); + } +} +exports.FunctionTypeScope = FunctionTypeScope; +//# sourceMappingURL=FunctionTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map new file mode 100644 index 00000000..30f3dded --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.js","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,iBAAkB,SAAQ,qBAQ/B;IACC,YACE,YAA0B,EAC1B,UAAsC,EACtC,KAAiC;QAEjC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;CACF;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts new file mode 100644 index 00000000..7895720c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts @@ -0,0 +1,18 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { ImplicitLibVariableOptions } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class GlobalScope extends ScopeBase { + private readonly implicit; + constructor(scopeManager: ScopeManager, block: GlobalScope['block']); + close(scopeManager: ScopeManager): Scope | null; + defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void; +} +export { GlobalScope }; +//# sourceMappingURL=GlobalScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map new file mode 100644 index 00000000..89400338 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.d.ts","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAY,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,OAAO;AAChB;;GAEG;AACH,IAAI,CACL;IAEC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;gBAEU,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAS5D,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;IAwB/C,sBAAsB,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI;CASR;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js new file mode 100644 index 00000000..aa4451ff --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GlobalScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const ImplicitGlobalVariableDefinition_1 = require("../definition/ImplicitGlobalVariableDefinition"); +const variable_1 = require("../variable"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class GlobalScope extends ScopeBase_1.ScopeBase { + // note this is accessed in used in the legacy eslint-scope tests, so it can't be true private + implicit; + constructor(scopeManager, block) { + super(scopeManager, ScopeType_1.ScopeType.global, null, block, false); + this.implicit = { + leftToBeResolved: [], + set: new Map(), + variables: [], + }; + } + close(scopeManager) { + (0, assert_1.assert)(this.leftToResolve); + for (const ref of this.leftToResolve) { + if (ref.maybeImplicitGlobal && !this.set.has(ref.identifier.name)) { + // create an implicit global variable from assignment expression + const info = ref.maybeImplicitGlobal; + const node = info.pattern; + if (node.type === types_1.AST_NODE_TYPES.Identifier) { + this.defineVariable(node.name, this.implicit.set, this.implicit.variables, node, new ImplicitGlobalVariableDefinition_1.ImplicitGlobalVariableDefinition(info.pattern, info.node)); + } + } + } + this.implicit.leftToBeResolved = this.leftToResolve; + return super.close(scopeManager); + } + defineImplicitVariable(name, options) { + this.defineVariable(new variable_1.ImplicitLibVariable(this, name, options), this.set, this.variables, null, null); + } +} +exports.GlobalScope = GlobalScope; +//# sourceMappingURL=GlobalScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map new file mode 100644 index 00000000..4ba16c7c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.js","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAmC;AACnC,qGAAkG;AAClG,0CAAkD;AAClD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAOzB;IACC,8FAA8F;I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C,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAC5C,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts new file mode 100644 index 00000000..b8ee01c0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class MappedTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']); +} +export { MappedTypeScope }; +//# sourceMappingURL=MappedTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map new file mode 100644 index 00000000..2bb0eb74 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,eAAgB,SAAQ,SAAS,CACrC,SAAS,CAAC,UAAU,EACpB,QAAQ,CAAC,YAAY,EACrB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,CAAC,OAAO,CAAC,EACpC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;CAIlC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js new file mode 100644 index 00000000..81879c5f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MappedTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class MappedTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.mappedType, upperScope, block, false); + } +} +exports.MappedTypeScope = MappedTypeScope; +//# sourceMappingURL=MappedTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map new file mode 100644 index 00000000..a8fd9101 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.js","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAI7B;IACC,YACE,YAA0B,EAC1B,UAAoC,EACpC,KAA+B;QAE/B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts new file mode 100644 index 00000000..ac537d89 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']); +} +export { ModuleScope }; +//# sourceMappingURL=ModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map new file mode 100644 index 00000000..f32436c2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;gBAE1E,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js new file mode 100644 index 00000000..9d84e34a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.module, upperScope, block, false); + } +} +exports.ModuleScope = ModuleScope; +//# sourceMappingURL=ModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map new file mode 100644 index 00000000..984b690c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.js","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAAoD;IAC5E,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts new file mode 100644 index 00000000..73cc9eea --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts @@ -0,0 +1,21 @@ +import type { BlockScope } from './BlockScope'; +import type { CatchScope } from './CatchScope'; +import type { ClassFieldInitializerScope } from './ClassFieldInitializerScope'; +import type { ClassScope } from './ClassScope'; +import type { ClassStaticBlockScope } from './ClassStaticBlockScope'; +import type { ConditionalTypeScope } from './ConditionalTypeScope'; +import type { ForScope } from './ForScope'; +import type { FunctionExpressionNameScope } from './FunctionExpressionNameScope'; +import type { FunctionScope } from './FunctionScope'; +import type { FunctionTypeScope } from './FunctionTypeScope'; +import type { GlobalScope } from './GlobalScope'; +import type { MappedTypeScope } from './MappedTypeScope'; +import type { ModuleScope } from './ModuleScope'; +import type { SwitchScope } from './SwitchScope'; +import type { TSEnumScope } from './TSEnumScope'; +import type { TSModuleScope } from './TSModuleScope'; +import type { TypeScope } from './TypeScope'; +import type { WithScope } from './WithScope'; +type Scope = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope; +export type { Scope }; +//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map new file mode 100644 index 00000000..40a584fa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,KAAK,KAAK,GACN,UAAU,GACV,UAAU,GACV,0BAA0B,GAC1B,UAAU,GACV,qBAAqB,GACrB,oBAAoB,GACpB,QAAQ,GACR,2BAA2B,GAC3B,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd,YAAY,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js new file mode 100644 index 00000000..676430c1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map new file mode 100644 index 00000000..03b04c83 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts new file mode 100644 index 00000000..0f605fa4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts @@ -0,0 +1,98 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { ReferenceImplicitGlobal } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { FunctionScope } from './FunctionScope'; +import type { GlobalScope } from './GlobalScope'; +import type { ModuleScope } from './ModuleScope'; +import type { Scope } from './Scope'; +import type { TSModuleScope } from './TSModuleScope'; +import { Reference, ReferenceFlag } from '../referencer/Reference'; +import { Variable } from '../variable'; +import { ScopeType } from './ScopeType'; +type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope; +declare abstract class ScopeBase { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The AST node which created this scope. + * @public + */ + readonly block: Block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + readonly childScopes: Scope[]; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + readonly functionExpressionScope: boolean; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict: boolean; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + protected leftToResolve: Reference[] | null; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + readonly references: Reference[]; + /** + * The map from variable names to variable objects. + * @public + */ + readonly set: Map; + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + readonly through: Reference[]; + readonly type: Type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + readonly upper: Upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + readonly variables: Variable[]; + readonly variableScope: VariableScope; + constructor(scopeManager: ScopeManager, type: Type, upperScope: Upper, block: Block, isMethodDefinition: boolean); + private isVariableScope; + private shouldStaticallyCloseForGlobal; + close(scopeManager: ScopeManager): Scope | null; + shouldStaticallyClose(): boolean; + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + protected defineVariable(nameOrVariable: string | Variable, set: Map, variables: Variable[], node: TSESTree.Identifier | null, def: Definition | null): void; + protected delegateToUpperScope(ref: Reference): void; + protected isValidResolution(_ref: Reference, _variable: Variable): boolean; + private addDeclaredVariablesOfNode; + defineIdentifier(node: TSESTree.Identifier, def: Definition): void; + defineLiteralIdentifier(node: TSESTree.StringLiteral, def: Definition): void; + referenceDualValueType(node: TSESTree.Identifier): void; + referenceType(node: TSESTree.Identifier): void; + referenceValue(node: TSESTree.Identifier | TSESTree.JSXIdentifier, assign?: ReferenceFlag, writeExpr?: TSESTree.Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void; +} +export { ScopeBase }; +//# sourceMappingURL=ScopeBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map new file mode 100644 index 00000000..a827de48 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase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AAG,EAAE,UAAU,GACd,IAAI;IAIA,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAevD,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAe9C,cAAc,CACnB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,MAAM,GAAE,aAAkC,EAC1C,SAAS,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EACtC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,UAAQ,GACX,IAAI;CAcR;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js new file mode 100644 index 00000000..f9665edc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js @@ -0,0 +1,361 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeBase = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const ID_1 = require("../ID"); +const Reference_1 = require("../referencer/Reference"); +const variable_1 = require("../variable"); +const ScopeType_1 = require("./ScopeType"); +/** + * Test if scope is strict + */ +function isStrictScope(scope, block, isMethodDefinition) { + let body; + // When upper scope is exists and strict, inner scope is also strict. + if (scope.upper?.isStrict) { + return true; + } + if (isMethodDefinition) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.class || + scope.type === ScopeType_1.ScopeType.conditionalType || + scope.type === ScopeType_1.ScopeType.functionType || + scope.type === ScopeType_1.ScopeType.mappedType || + scope.type === ScopeType_1.ScopeType.module || + scope.type === ScopeType_1.ScopeType.tsEnum || + scope.type === ScopeType_1.ScopeType.tsModule || + scope.type === ScopeType_1.ScopeType.type) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.block || scope.type === ScopeType_1.ScopeType.switch) { + return false; + } + if (scope.type === ScopeType_1.ScopeType.function) { + const functionBody = block; + switch (functionBody.type) { + case types_1.AST_NODE_TYPES.ArrowFunctionExpression: + if (functionBody.body.type !== types_1.AST_NODE_TYPES.BlockStatement) { + return false; + } + body = functionBody.body; + break; + case types_1.AST_NODE_TYPES.Program: + body = functionBody; + break; + default: + body = functionBody.body; + } + if (!body) { + return false; + } + } + else if (scope.type === ScopeType_1.ScopeType.global) { + body = block; + } + else { + return false; + } + // Search 'use strict' directive. + for (const stmt of body.body) { + if (stmt.type !== types_1.AST_NODE_TYPES.ExpressionStatement) { + break; + } + if (stmt.directive === 'use strict') { + return true; + } + const expr = stmt.expression; + if (expr.type !== types_1.AST_NODE_TYPES.Literal) { + break; + } + if (expr.raw === '"use strict"' || expr.raw === "'use strict'") { + return true; + } + if (expr.value === 'use strict') { + return true; + } + } + return false; +} +function registerScope(scopeManager, scope) { + scopeManager.scopes.push(scope); + const scopes = scopeManager.nodeToScope.get(scope.block); + if (scopes) { + scopes.push(scope); + } + else { + scopeManager.nodeToScope.set(scope.block, [scope]); + } +} +const generator = (0, ID_1.createIdGenerator)(); +const VARIABLE_SCOPE_TYPES = new Set([ + ScopeType_1.ScopeType.classFieldInitializer, + ScopeType_1.ScopeType.classStaticBlock, + ScopeType_1.ScopeType.function, + ScopeType_1.ScopeType.global, + ScopeType_1.ScopeType.module, + ScopeType_1.ScopeType.tsModule, +]); +class ScopeBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The AST node which created this scope. + * @public + */ + block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + childScopes = []; + /** + * A map of the variables for each node in this scope. + * This is map is a pointer to the one in the parent ScopeManager instance + */ + #declaredVariables; + /** + * Generally, through the lexical scoping of JS you can always know which variable an identifier in the source code + * refers to. There are a few exceptions to this rule. With `global` and `with` scopes you can only decide at runtime + * which variable a reference refers to. + * All those scopes are considered "dynamic". + */ + #dynamic; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + functionExpressionScope = false; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + leftToResolve = []; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + references = []; + /** + * The map from variable names to variable objects. + * @public + */ + set = new Map(); + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + through = []; + type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + variables = []; + /** + * For scopes that can contain variable declarations, this is a self-reference. + * For other scope types this is the *variableScope* value of the parent scope. + * @public + */ + #dynamicCloseRef = (ref) => { + // notify all names are through to global + let current = this; + do { + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + current.through.push(ref); + current = current.upper; + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + } while (current); + }; + #globalCloseRef = (ref, scopeManager) => { + // let/const/class declarations should be resolved statically. + // others should be resolved dynamically. + if (this.shouldStaticallyCloseForGlobal(ref, scopeManager)) { + this.#staticCloseRef(ref); + } + else { + this.#dynamicCloseRef(ref); + } + }; + #staticCloseRef = (ref) => { + const resolve = () => { + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + if (!this.isValidResolution(ref, variable)) { + return false; + } + // make sure we don't match a type reference to a value variable + const isValidTypeReference = ref.isTypeReference && variable.isTypeVariable; + const isValidValueReference = ref.isValueReference && variable.isValueVariable; + if (!isValidTypeReference && !isValidValueReference) { + return false; + } + variable.references.push(ref); + ref.resolved = variable; + return true; + }; + if (!resolve()) { + this.delegateToUpperScope(ref); + } + }; + variableScope; + constructor(scopeManager, type, upperScope, block, isMethodDefinition) { + const upperScopeAsScopeBase = upperScope; + this.type = type; + this.#dynamic = + this.type === ScopeType_1.ScopeType.global || this.type === ScopeType_1.ScopeType.with; + this.block = block; + this.variableScope = this.isVariableScope() + ? this + : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + upperScopeAsScopeBase.variableScope; + this.upper = upperScope; + /** + * Whether 'use strict' is in effect in this scope. + * @member {boolean} Scope#isStrict + */ + this.isStrict = isStrictScope(this, block, isMethodDefinition); + // this is guaranteed to be correct at runtime + upperScopeAsScopeBase?.childScopes.push(this); + this.#declaredVariables = scopeManager.declaredVariables; + registerScope(scopeManager, this); + } + isVariableScope() { + return VARIABLE_SCOPE_TYPES.has(this.type); + } + shouldStaticallyCloseForGlobal(ref, scopeManager) { + // On global scope, let/const/class declarations should be resolved statically. + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + // variable exists on the scope + // in module mode, we can statically resolve everything, regardless of its decl type + if (scopeManager.isModule()) { + return true; + } + // in script mode, only certain cases should be statically resolved + // Example: + // a `var` decl is ignored by the runtime if it clashes with a global name + // this means that we should not resolve the reference to the variable + const defs = variable.defs; + return (defs.length > 0 && + defs.every(def => { + if (def.type === definition_1.DefinitionType.Variable && def.parent.kind === 'var') { + return false; + } + return true; + })); + } + close(scopeManager) { + let closeRef; + if (this.shouldStaticallyClose()) { + closeRef = this.#staticCloseRef; + } + else if (this.type !== 'global') { + closeRef = this.#dynamicCloseRef; + } + else { + closeRef = this.#globalCloseRef; + } + // Try Resolving all references in this scope. + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => closeRef(ref, scopeManager)); + this.leftToResolve = null; + return this.upper; + } + shouldStaticallyClose() { + return !this.#dynamic; + } + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + defineVariable(nameOrVariable, set, variables, node, def) { + const name = typeof nameOrVariable === 'string' ? nameOrVariable : nameOrVariable.name; + let variable = set.get(name); + if (!variable) { + variable = + typeof nameOrVariable === 'string' + ? new variable_1.Variable(name, this) + : nameOrVariable; + set.set(name, variable); + variables.push(variable); + } + if (def) { + variable.defs.push(def); + this.addDeclaredVariablesOfNode(variable, def.node); + this.addDeclaredVariablesOfNode(variable, def.parent); + } + if (node) { + variable.identifiers.push(node); + } + } + delegateToUpperScope(ref) { + this.upper?.leftToResolve?.push(ref); + this.through.push(ref); + } + isValidResolution(_ref, _variable) { + return true; + } + addDeclaredVariablesOfNode(variable, node) { + if (node == null) { + return; + } + let variables = this.#declaredVariables.get(node); + if (variables == null) { + variables = []; + this.#declaredVariables.set(node, variables); + } + if (!variables.includes(variable)) { + variables.push(variable); + } + } + defineIdentifier(node, def) { + this.defineVariable(node.name, this.set, this.variables, node, def); + } + defineLiteralIdentifier(node, def) { + this.defineVariable(node.value, this.set, this.variables, null, def); + } + referenceDualValueType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type | Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceValue(node, assign = Reference_1.ReferenceFlag.Read, writeExpr, maybeImplicitGlobal, init = false) { + const ref = new Reference_1.Reference(node, this, assign, writeExpr, maybeImplicitGlobal, init, Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } +} +exports.ScopeBase = ScopeBase; +//# sourceMappingURL=ScopeBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map new file mode 100644 index 00000000..7315c8d2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase.js","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAW1D,sCAAmC;AACnC,8CAA+C;AAC/C,8BAA0C;AAC1C,uDAIiC;AACjC,0CAAuC;AACvC,2CAAwC;AAExC;;GAEG;AACH,SAAS,aAAa,CACpB,KAAY,EACZ,KAAoB,EACpB,kBAA2B;IAE3B,IAAI,IAAmE,CAAC;IAExE,qEAAqE;IACrE,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK;QAC9B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,eAAe;QACxC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,YAAY;QACrC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,UAAU;QACnC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,QAAQ;QACjC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,IAAI,EAC7B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM,EAAE,CAAC;QACtE,OAAO,KAAK,CAAC;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AE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IACvE,CAAC;IAEM,sBAAsB,CAAC,IAAyB;QACrD,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,yBAAa,CAAC,IAAI,EAClB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,6BAAiB,CAAC,IAAI,GAAG,6BAAiB,CAAC,KAAK,CACjD,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,aAAa,CAAC,IAAyB;QAC5C,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,yBAAa,CAAC,IAAI,EAClB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,6BAAiB,CAAC,IAAI,CACvB,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,cAAc,CACnB,IAAkD,EAClD,SAAwB,yBAAa,CAAC,IAAI,EAC1C,SAAsC,EACtC,mBAAoD,EACpD,IAAI,GAAG,KAAK;QAEZ,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,6BAAiB,CAAC,KAAK,CACxB,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts new file mode 100644 index 00000000..8b5dea31 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts @@ -0,0 +1,22 @@ +declare enum ScopeType { + block = "block", + catch = "catch", + class = "class", + classFieldInitializer = "class-field-initializer", + classStaticBlock = "class-static-block", + conditionalType = "conditionalType", + for = "for", + function = "function", + functionExpressionName = "function-expression-name", + functionType = "functionType", + global = "global", + mappedType = "mappedType", + module = "module", + switch = "switch", + tsEnum = "tsEnum", + tsModule = "tsModule", + type = "type", + with = "with" +} +export { ScopeType }; +//# sourceMappingURL=ScopeType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map new file mode 100644 index 00000000..7201b33a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACZ,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,sBAAsB,6BAA6B;IACnD,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js new file mode 100644 index 00000000..93dab0eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeType = void 0; +var ScopeType; +(function (ScopeType) { + ScopeType["block"] = "block"; + ScopeType["catch"] = "catch"; + ScopeType["class"] = "class"; + ScopeType["classFieldInitializer"] = "class-field-initializer"; + ScopeType["classStaticBlock"] = "class-static-block"; + ScopeType["conditionalType"] = "conditionalType"; + ScopeType["for"] = "for"; + ScopeType["function"] = "function"; + ScopeType["functionExpressionName"] = "function-expression-name"; + ScopeType["functionType"] = "functionType"; + ScopeType["global"] = "global"; + ScopeType["mappedType"] = "mappedType"; + ScopeType["module"] = "module"; + ScopeType["switch"] = "switch"; + ScopeType["tsEnum"] = "tsEnum"; + ScopeType["tsModule"] = "tsModule"; + ScopeType["type"] = "type"; + ScopeType["with"] = "with"; +})(ScopeType || (exports.ScopeType = ScopeType = {})); +//# sourceMappingURL=ScopeType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map new file mode 100644 index 00000000..6481f328 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.js","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAnBI,SAAS,yBAAT,SAAS,QAmBb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts new file mode 100644 index 00000000..fe4c0dc1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class SwitchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']); +} +export { SwitchScope }; +//# sourceMappingURL=SwitchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map new file mode 100644 index 00000000..17f5e86f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.d.ts","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,eAAe,EACxB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js new file mode 100644 index 00000000..9229e4ed --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwitchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class SwitchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.switch, upperScope, block, false); + } +} +exports.SwitchScope = SwitchScope; +//# sourceMappingURL=SwitchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map new file mode 100644 index 00000000..cb5fe27c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.js","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts new file mode 100644 index 00000000..38c09ea9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSEnumScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']); +} +export { TSEnumScope }; +//# sourceMappingURL=TSEnumScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map new file mode 100644 index 00000000..3f6d4862 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js new file mode 100644 index 00000000..1f51bfb1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSEnumScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsEnum, upperScope, block, false); + } +} +exports.TSEnumScope = TSEnumScope; +//# sourceMappingURL=TSEnumScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map new file mode 100644 index 00000000..c438ce55 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.js","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts new file mode 100644 index 00000000..386180a0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']); +} +export { TSModuleScope }; +//# sourceMappingURL=TSModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map new file mode 100644 index 00000000..e16892b2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAClB,QAAQ,CAAC,mBAAmB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;CAIhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js new file mode 100644 index 00000000..86279082 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsModule, upperScope, block, false); + } +} +exports.TSModuleScope = TSModuleScope; +//# sourceMappingURL=TSModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map new file mode 100644 index 00000000..330396c4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.js","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAI3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B;QAE7B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts new file mode 100644 index 00000000..bde4d536 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']); +} +export { TypeScope }; +//# sourceMappingURL=TypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map new file mode 100644 index 00000000..9efd512a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,EACjE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CAI5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js new file mode 100644 index 00000000..ebbf5fe6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.type, upperScope, block, false); + } +} +exports.TypeScope = TypeScope; +//# sourceMappingURL=TypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map new file mode 100644 index 00000000..74272f42 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.js","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts new file mode 100644 index 00000000..1eaa4854 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class WithScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']); + close(scopeManager: ScopeManager): Scope | null; +} +export { WithScope }; +//# sourceMappingURL=WithScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map new file mode 100644 index 00000000..a2cc41d8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.d.ts","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,aAAa,EACtB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAI3B,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAShD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js new file mode 100644 index 00000000..734034d6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithScope = void 0; +const assert_1 = require("../assert"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class WithScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false); + } + close(scopeManager) { + if (this.shouldStaticallyClose()) { + return super.close(scopeManager); + } + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref)); + this.leftToResolve = null; + return this.upper; + } +} +exports.WithScope = WithScope; +//# sourceMappingURL=WithScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map new file mode 100644 index 00000000..567a872a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.js","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":";;;AAKA,sCAAmC;AACnC,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,CAAC,YAA0B;QAC9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;QACD,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts new file mode 100644 index 00000000..7bf60717 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts @@ -0,0 +1,20 @@ +export * from './BlockScope'; +export * from './CatchScope'; +export * from './ClassFieldInitializerScope'; +export * from './ClassScope'; +export * from './ConditionalTypeScope'; +export * from './ForScope'; +export * from './FunctionExpressionNameScope'; +export * from './FunctionScope'; +export * from './FunctionTypeScope'; +export * from './GlobalScope'; +export * from './MappedTypeScope'; +export * from './ModuleScope'; +export * from './Scope'; +export * from './ScopeType'; +export * from './SwitchScope'; +export * from './TSEnumScope'; +export * from './TSModuleScope'; +export * from './TypeScope'; +export * from './WithScope'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map new file mode 100644 index 00000000..43f10ba3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js new file mode 100644 index 00000000..22187136 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js @@ -0,0 +1,36 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./BlockScope"), exports); +__exportStar(require("./CatchScope"), exports); +__exportStar(require("./ClassFieldInitializerScope"), exports); +__exportStar(require("./ClassScope"), exports); +__exportStar(require("./ConditionalTypeScope"), exports); +__exportStar(require("./ForScope"), exports); +__exportStar(require("./FunctionExpressionNameScope"), exports); +__exportStar(require("./FunctionScope"), exports); +__exportStar(require("./FunctionTypeScope"), exports); +__exportStar(require("./GlobalScope"), exports); +__exportStar(require("./MappedTypeScope"), exports); +__exportStar(require("./ModuleScope"), exports); +__exportStar(require("./Scope"), exports); +__exportStar(require("./ScopeType"), exports); +__exportStar(require("./SwitchScope"), exports); +__exportStar(require("./TSEnumScope"), exports); +__exportStar(require("./TSModuleScope"), exports); +__exportStar(require("./TypeScope"), exports); +__exportStar(require("./WithScope"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map new file mode 100644 index 00000000..2ceff644 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts new file mode 100644 index 00000000..fd5e08be --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts @@ -0,0 +1,34 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { VariableBase } from './VariableBase'; +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +declare class ESLintScopeVariable extends VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable?: boolean; + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal?: boolean; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting?: 'readonly' | 'writable'; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments?: TSESTree.Comment[]; +} +export { ESLintScopeVariable }; +//# sourceMappingURL=ESLintScopeVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map new file mode 100644 index 00000000..b544931c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACI,2BAA2B,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE7D;;;;OAIG;IACI,4BAA4B,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC1D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js new file mode 100644 index 00000000..d36def70 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ESLintScopeVariable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +class ESLintScopeVariable extends VariableBase_1.VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable; // note that this isn't a typo - ESlint uses this spelling here + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments; +} +exports.ESLintScopeVariable = ESLintScopeVariable; +//# sourceMappingURL=ESLintScopeVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map new file mode 100644 index 00000000..973b7314 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.js","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C;;;GAGG;AACH,MAAM,mBAAoB,SAAQ,2BAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAW,CAAC,+DAA+D;IAE3F;;;;OAIG;IACI,oBAAoB,CAAW;IAEtC;;;OAGG;IACI,2BAA2B,CAA2B;IAE7D;;;;OAIG;IACI,4BAA4B,CAAsB;CAC1D;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts new file mode 100644 index 00000000..79eef8fc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts @@ -0,0 +1,25 @@ +import type { Scope } from '../scope'; +import type { Variable } from './Variable'; +import { ESLintScopeVariable } from './ESLintScopeVariable'; +interface ImplicitLibVariableOptions { + readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting']; + readonly isTypeVariable?: boolean; + readonly isValueVariable?: boolean; + readonly writeable?: boolean; +} +/** + * An variable implicitly defined by the TS Lib + */ +declare class ImplicitLibVariable extends ESLintScopeVariable implements Variable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + readonly isTypeVariable: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + readonly isValueVariable: boolean; + constructor(scope: Scope, name: string, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }: ImplicitLibVariableOptions); +} +export { ImplicitLibVariable, type ImplicitLibVariableOptions }; +//# sourceMappingURL=ImplicitLibVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map new file mode 100644 index 00000000..2eb2db90 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,cAAM,mBAAoB,SAAQ,mBAAoB,YAAW,QAAQ;IACvE;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;gBAGvC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACV,EAAE,0BAA0B;CAShC;AAED,OAAO,EAAE,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js new file mode 100644 index 00000000..046c4109 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitLibVariable = void 0; +const ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +/** + * An variable implicitly defined by the TS Lib + */ +class ImplicitLibVariable extends ESLintScopeVariable_1.ESLintScopeVariable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + isTypeVariable; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + isValueVariable; + constructor(scope, name, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }) { + super(name, scope); + this.isTypeVariable = isTypeVariable ?? false; + this.isValueVariable = isValueVariable ?? false; + this.writeable = writeable ?? false; + this.eslintImplicitGlobalSetting = + eslintImplicitGlobalSetting ?? 'readonly'; + } +} +exports.ImplicitLibVariable = ImplicitLibVariable; +//# sourceMappingURL=ImplicitLibVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map new file mode 100644 index 00000000..3149b8bb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.js","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAS5D;;GAEG;AACH,MAAM,mBAAoB,SAAQ,yCAAmB;IACnD;;OAEG;IACa,cAAc,CAAU;IAExC;;OAEG;IACa,eAAe,CAAU;IAEzC,YACE,KAAY,EACZ,IAAY,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACkB;QAE7B,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,KAAK,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,KAAK,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;QACpC,IAAI,CAAC,2BAA2B;YAC9B,2BAA2B,IAAI,UAAU,CAAC;IAC9C,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts new file mode 100644 index 00000000..83754b17 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts @@ -0,0 +1,18 @@ +import { VariableBase } from './VariableBase'; +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +declare class Variable extends VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable(): boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable(): boolean; +} +export { Variable }; +//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map new file mode 100644 index 00000000..9b56c4f4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,cAAM,QAAS,SAAQ,YAAY;IACjC;;;OAGG;IACH,IAAW,cAAc,IAAI,OAAO,CAOnC;IAED;;;OAGG;IACH,IAAW,eAAe,IAAI,OAAO,CAOpC;CACF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js new file mode 100644 index 00000000..8b72550e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +class Variable extends VariableBase_1.VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isTypeDefinition); + } + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isVariableDefinition); + } +} +exports.Variable = Variable; +//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map new file mode 100644 index 00000000..ba767144 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C;;GAEG;AACH,MAAM,QAAS,SAAQ,2BAAY;IACjC;;;OAGG;IACH,IAAW,cAAc;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts new file mode 100644 index 00000000..c74c7a38 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts @@ -0,0 +1,44 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { Reference } from '../referencer/Reference'; +import type { Scope } from '../scope'; +declare class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The array of the definitions of this variable. + * @public + */ + readonly defs: Definition[]; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed: boolean; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + readonly identifiers: TSESTree.Identifier[]; + /** + * The variable name, as given in the source code. + * @public + */ + readonly name: string; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + readonly references: Reference[]; + /** + * Reference to the enclosing Scope. + */ + readonly scope: Scope; + constructor(name: string, scope: Scope); +} +export { VariableBase }; +//# sourceMappingURL=VariableBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map new file mode 100644 index 00000000..02d49843 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.d.ts","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMtC,cAAM,YAAY;IAChB;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,UAAU,EAAE,CAAM;IACxC;;;OAGG;IACI,UAAU,UAAS;IAC1B;;;;OAIG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAM;IACxD;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7C;;OAEG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAIvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js new file mode 100644 index 00000000..911cb766 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The array of the definitions of this variable. + * @public + */ + defs = []; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed = false; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + identifiers = []; + /** + * The variable name, as given in the source code. + * @public + */ + name; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + references = []; + /** + * Reference to the enclosing Scope. + */ + scope; + constructor(name, scope) { + this.name = name; + this.scope = scope; + } +} +exports.VariableBase = VariableBase; +//# sourceMappingURL=VariableBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map new file mode 100644 index 00000000..2bcb51cd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.js","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":";;;AAMA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAM,YAAY;IAChB;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;;OAGG;IACa,IAAI,GAAiB,EAAE,CAAC;IACxC;;;OAGG;IACI,UAAU,GAAG,KAAK,CAAC;IAC1B;;;;OAIG;IACa,WAAW,GAA0B,EAAE,CAAC;IACxD;;;OAGG;IACa,IAAI,CAAS;IAC7B;;;;OAIG;IACa,UAAU,GAAgB,EAAE,CAAC;IAC7C;;OAEG;IACa,KAAK,CAAQ;IAE7B,YAAY,IAAY,EAAE,KAAY;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts new file mode 100644 index 00000000..d4c06283 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts @@ -0,0 +1,7 @@ +import type { ESLintScopeVariable } from './ESLintScopeVariable'; +import type { Variable } from './Variable'; +export { ESLintScopeVariable } from './ESLintScopeVariable'; +export { ImplicitLibVariable, type ImplicitLibVariableOptions, } from './ImplicitLibVariable'; +export { Variable } from './Variable'; +export type ScopeVariable = ESLintScopeVariable | Variable; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map new file mode 100644 index 00000000..7fc712e1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js new file mode 100644 index 00000000..1e36582b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = exports.ImplicitLibVariable = exports.ESLintScopeVariable = void 0; +var ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +Object.defineProperty(exports, "ESLintScopeVariable", { enumerable: true, get: function () { return ESLintScopeVariable_1.ESLintScopeVariable; } }); +var ImplicitLibVariable_1 = require("./ImplicitLibVariable"); +Object.defineProperty(exports, "ImplicitLibVariable", { enumerable: true, get: function () { return ImplicitLibVariable_1.ImplicitLibVariable; } }); +var Variable_1 = require("./Variable"); +Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map new file mode 100644 index 00000000..51902f54 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":";;;AAGA,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,6DAG+B;AAF7B,0HAAA,mBAAmB,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/package.json new file mode 100644 index 00000000..0293f8fe --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/package.json @@ -0,0 +1,74 @@ +{ + "name": "@typescript-eslint/scope-manager", + "version": "8.16.0", + "description": "TypeScript scope analyser for ESLint", + "files": [ + "dist", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/scope-manager" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/scope-manager", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "npx nx build", + "clean": "npx nx clean", + "clean-fixtures": "npx nx clean-fixtures", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx generate-lib repo", + "lint": "npx nx lint", + "test": "npx nx test --code-coverage", + "typecheck": "npx nx typecheck" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/glob": "*", + "@typescript-eslint/typescript-estree": "8.16.0", + "glob": "*", + "jest-specific-snapshot": "*", + "make-dir": "*", + "prettier": "^3.2.5", + "pretty-format": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/README.md new file mode 100644 index 00000000..7a3008bb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/types` + +> Types for the TypeScript-ESTree AST spec + +This package exists to help us reduce cycles and provide lighter-weight packages at runtime. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts new file mode 100644 index 00000000..3c00ec40 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts @@ -0,0 +1,2159 @@ +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +import type { SyntaxKind } from 'typescript'; +export declare type Accessibility = 'private' | 'protected' | 'public'; +export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; +export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface ArrayExpression extends BaseNode { + type: AST_NODE_TYPES.ArrayExpression; + /** + * an element will be `null` in the case of a sparse array: `[1, ,3]` + */ + elements: (Expression | SpreadElement | null)[]; +} +export declare interface ArrayPattern extends BaseNode { + type: AST_NODE_TYPES.ArrayPattern; + decorators: Decorator[]; + elements: (DestructuringPattern | null)[]; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface ArrowFunctionExpression extends BaseNode { + type: AST_NODE_TYPES.ArrowFunctionExpression; + async: boolean; + body: BlockStatement | Expression; + expression: boolean; + generator: boolean; + id: null; + params: Parameter[]; + returnType: TSTypeAnnotation | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface AssignmentExpression extends BaseNode { + type: AST_NODE_TYPES.AssignmentExpression; + left: Expression; + operator: ValueOf; + right: Expression; +} +export declare interface AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; + [SyntaxKind.AmpersandEqualsToken]: '&='; + [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; + [SyntaxKind.AsteriskEqualsToken]: '*='; + [SyntaxKind.BarBarEqualsToken]: '||='; + [SyntaxKind.BarEqualsToken]: '|='; + [SyntaxKind.CaretEqualsToken]: '^='; + [SyntaxKind.EqualsToken]: '='; + [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; + [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; + [SyntaxKind.MinusEqualsToken]: '-='; + [SyntaxKind.PercentEqualsToken]: '%='; + [SyntaxKind.PlusEqualsToken]: '+='; + [SyntaxKind.QuestionQuestionEqualsToken]: '??='; + [SyntaxKind.SlashEqualsToken]: '/='; +} +export declare interface AssignmentPattern extends BaseNode { + type: AST_NODE_TYPES.AssignmentPattern; + decorators: Decorator[]; + left: BindingName; + optional: boolean; + right: Expression; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare enum AST_NODE_TYPES { + AccessorProperty = "AccessorProperty", + ArrayExpression = "ArrayExpression", + ArrayPattern = "ArrayPattern", + ArrowFunctionExpression = "ArrowFunctionExpression", + AssignmentExpression = "AssignmentExpression", + AssignmentPattern = "AssignmentPattern", + AwaitExpression = "AwaitExpression", + BinaryExpression = "BinaryExpression", + BlockStatement = "BlockStatement", + BreakStatement = "BreakStatement", + CallExpression = "CallExpression", + CatchClause = "CatchClause", + ChainExpression = "ChainExpression", + ClassBody = "ClassBody", + ClassDeclaration = "ClassDeclaration", + ClassExpression = "ClassExpression", + ConditionalExpression = "ConditionalExpression", + ContinueStatement = "ContinueStatement", + DebuggerStatement = "DebuggerStatement", + Decorator = "Decorator", + DoWhileStatement = "DoWhileStatement", + EmptyStatement = "EmptyStatement", + ExportAllDeclaration = "ExportAllDeclaration", + ExportDefaultDeclaration = "ExportDefaultDeclaration", + ExportNamedDeclaration = "ExportNamedDeclaration", + ExportSpecifier = "ExportSpecifier", + ExpressionStatement = "ExpressionStatement", + ForInStatement = "ForInStatement", + ForOfStatement = "ForOfStatement", + ForStatement = "ForStatement", + FunctionDeclaration = "FunctionDeclaration", + FunctionExpression = "FunctionExpression", + Identifier = "Identifier", + IfStatement = "IfStatement", + ImportAttribute = "ImportAttribute", + ImportDeclaration = "ImportDeclaration", + ImportDefaultSpecifier = "ImportDefaultSpecifier", + ImportExpression = "ImportExpression", + ImportNamespaceSpecifier = "ImportNamespaceSpecifier", + ImportSpecifier = "ImportSpecifier", + JSXAttribute = "JSXAttribute", + JSXClosingElement = "JSXClosingElement", + JSXClosingFragment = "JSXClosingFragment", + JSXElement = "JSXElement", + JSXEmptyExpression = "JSXEmptyExpression", + JSXExpressionContainer = "JSXExpressionContainer", + JSXFragment = "JSXFragment", + JSXIdentifier = "JSXIdentifier", + JSXMemberExpression = "JSXMemberExpression", + JSXNamespacedName = "JSXNamespacedName", + JSXOpeningElement = "JSXOpeningElement", + JSXOpeningFragment = "JSXOpeningFragment", + JSXSpreadAttribute = "JSXSpreadAttribute", + JSXSpreadChild = "JSXSpreadChild", + JSXText = "JSXText", + LabeledStatement = "LabeledStatement", + Literal = "Literal", + LogicalExpression = "LogicalExpression", + MemberExpression = "MemberExpression", + MetaProperty = "MetaProperty", + MethodDefinition = "MethodDefinition", + NewExpression = "NewExpression", + ObjectExpression = "ObjectExpression", + ObjectPattern = "ObjectPattern", + PrivateIdentifier = "PrivateIdentifier", + Program = "Program", + Property = "Property", + PropertyDefinition = "PropertyDefinition", + RestElement = "RestElement", + ReturnStatement = "ReturnStatement", + SequenceExpression = "SequenceExpression", + SpreadElement = "SpreadElement", + StaticBlock = "StaticBlock", + Super = "Super", + SwitchCase = "SwitchCase", + SwitchStatement = "SwitchStatement", + TaggedTemplateExpression = "TaggedTemplateExpression", + TemplateElement = "TemplateElement", + TemplateLiteral = "TemplateLiteral", + ThisExpression = "ThisExpression", + ThrowStatement = "ThrowStatement", + TryStatement = "TryStatement", + UnaryExpression = "UnaryExpression", + UpdateExpression = "UpdateExpression", + VariableDeclaration = "VariableDeclaration", + VariableDeclarator = "VariableDeclarator", + WhileStatement = "WhileStatement", + WithStatement = "WithStatement", + YieldExpression = "YieldExpression", + TSAbstractAccessorProperty = "TSAbstractAccessorProperty", + TSAbstractKeyword = "TSAbstractKeyword", + TSAbstractMethodDefinition = "TSAbstractMethodDefinition", + TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", + TSAnyKeyword = "TSAnyKeyword", + TSArrayType = "TSArrayType", + TSAsExpression = "TSAsExpression", + TSAsyncKeyword = "TSAsyncKeyword", + TSBigIntKeyword = "TSBigIntKeyword", + TSBooleanKeyword = "TSBooleanKeyword", + TSCallSignatureDeclaration = "TSCallSignatureDeclaration", + TSClassImplements = "TSClassImplements", + TSConditionalType = "TSConditionalType", + TSConstructorType = "TSConstructorType", + TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", + TSDeclareFunction = "TSDeclareFunction", + TSDeclareKeyword = "TSDeclareKeyword", + TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", + TSEnumBody = "TSEnumBody", + TSEnumDeclaration = "TSEnumDeclaration", + TSEnumMember = "TSEnumMember", + TSExportAssignment = "TSExportAssignment", + TSExportKeyword = "TSExportKeyword", + TSExternalModuleReference = "TSExternalModuleReference", + TSFunctionType = "TSFunctionType", + TSImportEqualsDeclaration = "TSImportEqualsDeclaration", + TSImportType = "TSImportType", + TSIndexedAccessType = "TSIndexedAccessType", + TSIndexSignature = "TSIndexSignature", + TSInferType = "TSInferType", + TSInstantiationExpression = "TSInstantiationExpression", + TSInterfaceBody = "TSInterfaceBody", + TSInterfaceDeclaration = "TSInterfaceDeclaration", + TSInterfaceHeritage = "TSInterfaceHeritage", + TSIntersectionType = "TSIntersectionType", + TSIntrinsicKeyword = "TSIntrinsicKeyword", + TSLiteralType = "TSLiteralType", + TSMappedType = "TSMappedType", + TSMethodSignature = "TSMethodSignature", + TSModuleBlock = "TSModuleBlock", + TSModuleDeclaration = "TSModuleDeclaration", + TSNamedTupleMember = "TSNamedTupleMember", + TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", + TSNeverKeyword = "TSNeverKeyword", + TSNonNullExpression = "TSNonNullExpression", + TSNullKeyword = "TSNullKeyword", + TSNumberKeyword = "TSNumberKeyword", + TSObjectKeyword = "TSObjectKeyword", + TSOptionalType = "TSOptionalType", + TSParameterProperty = "TSParameterProperty", + TSPrivateKeyword = "TSPrivateKeyword", + TSPropertySignature = "TSPropertySignature", + TSProtectedKeyword = "TSProtectedKeyword", + TSPublicKeyword = "TSPublicKeyword", + TSQualifiedName = "TSQualifiedName", + TSReadonlyKeyword = "TSReadonlyKeyword", + TSRestType = "TSRestType", + TSSatisfiesExpression = "TSSatisfiesExpression", + TSStaticKeyword = "TSStaticKeyword", + TSStringKeyword = "TSStringKeyword", + TSSymbolKeyword = "TSSymbolKeyword", + TSTemplateLiteralType = "TSTemplateLiteralType", + TSThisType = "TSThisType", + TSTupleType = "TSTupleType", + TSTypeAliasDeclaration = "TSTypeAliasDeclaration", + TSTypeAnnotation = "TSTypeAnnotation", + TSTypeAssertion = "TSTypeAssertion", + TSTypeLiteral = "TSTypeLiteral", + TSTypeOperator = "TSTypeOperator", + TSTypeParameter = "TSTypeParameter", + TSTypeParameterDeclaration = "TSTypeParameterDeclaration", + TSTypeParameterInstantiation = "TSTypeParameterInstantiation", + TSTypePredicate = "TSTypePredicate", + TSTypeQuery = "TSTypeQuery", + TSTypeReference = "TSTypeReference", + TSUndefinedKeyword = "TSUndefinedKeyword", + TSUnionType = "TSUnionType", + TSUnknownKeyword = "TSUnknownKeyword", + TSVoidKeyword = "TSVoidKeyword" +} +export declare enum AST_TOKEN_TYPES { + Boolean = "Boolean", + Identifier = "Identifier", + JSXIdentifier = "JSXIdentifier", + JSXText = "JSXText", + Keyword = "Keyword", + Null = "Null", + Numeric = "Numeric", + Punctuator = "Punctuator", + RegularExpression = "RegularExpression", + String = "String", + Template = "Template", + Block = "Block", + Line = "Line" +} +export declare interface AwaitExpression extends BaseNode { + type: AST_NODE_TYPES.AwaitExpression; + argument: Expression; +} +export declare interface BaseNode extends NodeOrTokenData { + type: AST_NODE_TYPES; +} +declare interface BaseToken extends NodeOrTokenData { + type: AST_TOKEN_TYPES; + value: string; +} +export declare interface BigIntLiteral extends LiteralBase { + bigint: string; + value: bigint | null; +} +export declare interface BinaryExpression extends BaseNode { + type: AST_NODE_TYPES.BinaryExpression; + left: Expression | PrivateIdentifier; + operator: ValueOf; + right: Expression; +} +export declare interface BinaryOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.InKeyword]: 'in'; + [SyntaxKind.InstanceOfKeyword]: 'instanceof'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanToken]: '<'; + [SyntaxKind.MinusToken]: '-'; + [SyntaxKind.PercentToken]: '%'; + [SyntaxKind.PlusToken]: '+'; + [SyntaxKind.SlashToken]: '/'; +} +export declare type BindingName = BindingPattern | Identifier; +export declare type BindingPattern = ArrayPattern | ObjectPattern; +export declare interface BlockComment extends BaseToken { + type: AST_TOKEN_TYPES.Block; +} +export declare interface BlockStatement extends BaseNode { + type: AST_NODE_TYPES.BlockStatement; + body: Statement[]; +} +export declare interface BooleanLiteral extends LiteralBase { + raw: 'false' | 'true'; + value: boolean; +} +export declare interface BooleanToken extends BaseToken { + type: AST_TOKEN_TYPES.Boolean; +} +export declare interface BreakStatement extends BaseNode { + type: AST_NODE_TYPES.BreakStatement; + label: Identifier | null; +} +export declare interface CallExpression extends BaseNode { + type: AST_NODE_TYPES.CallExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + optional: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type CallExpressionArgument = Expression | SpreadElement; +export declare interface CatchClause extends BaseNode { + type: AST_NODE_TYPES.CatchClause; + body: BlockStatement; + param: BindingName | null; +} +export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; +export declare interface ChainExpression extends BaseNode { + type: AST_NODE_TYPES.ChainExpression; + expression: ChainElement; +} +declare interface ClassBase extends BaseNode { + /** + * Whether the class is an abstract class. + * @example + * ```ts + * abstract class Foo {} + * ``` + */ + abstract: boolean; + /** + * The class body. + */ + body: ClassBody; + /** + * Whether the class has been `declare`d: + * @example + * ```ts + * declare class Foo {} + * ``` + */ + declare: boolean; + /** + * The decorators declared for the class. + * @example + * ```ts + * @deco + * class Foo {} + * ``` + */ + decorators: Decorator[]; + /** + * The class's name. + * - For a `ClassExpression` this may be `null` if the name is omitted. + * - For a `ClassDeclaration` this may be `null` if and only if the parent is + * an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The implemented interfaces for the class. + */ + implements: TSClassImplements[]; + /** + * The super class this class extends. + */ + superClass: LeftHandSideExpression | null; + /** + * The generic type parameters passed to the superClass. + */ + superTypeArguments: TSTypeParameterInstantiation | undefined; + /** + * The generic type parameters declared for the class. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface ClassBody extends BaseNode { + type: AST_NODE_TYPES.ClassBody; + body: ClassElement[]; +} +export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; +declare interface ClassDeclarationBase extends ClassBase { + type: AST_NODE_TYPES.ClassDeclaration; +} +/** + * A normal class declaration: + * ``` + * class A {} + * ``` + */ +export declare interface ClassDeclarationWithName extends ClassDeclarationBase { + id: Identifier; +} +/** + * Default-exported class declarations have optional names: + * ``` + * export default class {} + * ``` + */ +export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { + id: Identifier | null; +} +export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; +export declare interface ClassExpression extends ClassBase { + type: AST_NODE_TYPES.ClassExpression; + abstract: false; + declare: false; +} +declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; +export declare type Comment = BlockComment | LineComment; +export declare interface ConditionalExpression extends BaseNode { + type: AST_NODE_TYPES.ConditionalExpression; + alternate: Expression; + consequent: Expression; + test: Expression; +} +export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare const` declaration, the declarators may have initializers, but + * not definite assignment assertions. Each declarator cannot have both an + * initializer and a type annotation. + * + * Even if the declaration has no `declare`, it may still be ambient and have + * no initializer. + */ + declarations: VariableDeclaratorMaybeInit[]; + kind: 'const'; +} +export declare interface ContinueStatement extends BaseNode { + type: AST_NODE_TYPES.ContinueStatement; + label: Identifier | null; +} +export declare interface DebuggerStatement extends BaseNode { + type: AST_NODE_TYPES.DebuggerStatement; +} +/** + * @deprecated + * Note that this is neither up to date nor fully correct. + */ +export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; +export declare interface Decorator extends BaseNode { + type: AST_NODE_TYPES.Decorator; + expression: LeftHandSideExpression; +} +export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; +export declare interface DoWhileStatement extends BaseNode { + type: AST_NODE_TYPES.DoWhileStatement; + body: Statement; + test: Expression; +} +export declare interface EmptyStatement extends BaseNode { + type: AST_NODE_TYPES.EmptyStatement; +} +export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; +export declare interface ExportAllDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportAllDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The name for the exported items (`as X`). `null` if no name is assigned. + */ + exported: Identifier | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral; +} +declare type ExportAndImportKind = 'type' | 'value'; +export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; +export declare interface ExportDefaultDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportDefaultDeclaration; + /** + * The declaration being exported. + */ + declaration: DefaultExportDeclarations; + /** + * The kind of the export. Always `value` for default exports. + */ + exportKind: 'value'; +} +declare type ExportKind = ExportAndImportKind; +export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; +declare interface ExportNamedDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.ExportNamedDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export { foo } from 'mod' assert \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export { foo } from 'mod' with \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + */ + attributes: ImportAttribute[]; + /** + * The exported declaration. + * @example + * ```ts + * export const x = 1; + * ``` + * This will be `null` if `source` is not `null`, or if there are `specifiers` + */ + declaration: NamedExportDeclarations | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral | null; + /** + * The specifiers being exported. + * @example + * ```ts + * export { a, b }; + * ``` + * This will be an empty array if `declaration` is not `null` + */ + specifiers: ExportSpecifier[]; +} +export declare type ExportNamedDeclarationWithoutSource = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle; +/** + * Exporting names from the current module. + * ``` + * export {}; + * export { a, b }; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: null; + source: null; + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Exporting a single named declaration. + * ``` + * export const x = 1; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: NamedExportDeclarations; + source: null; + /** + * This will always be an empty array. + */ + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Export names from another module. + * ``` + * export { a, b } from 'mod'; + * ``` + */ +export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { + declaration: null; + source: StringLiteral; +} +export declare type ExportSpecifier = ExportSpecifierWithIdentifierLocal | ExportSpecifierWithStringOrLiteralLocal; +declare interface ExportSpecifierBase extends BaseNode { + type: AST_NODE_TYPES.ExportSpecifier; + exported: Identifier | StringLiteral; + exportKind: ExportKind; + local: Identifier | StringLiteral; +} +export declare interface ExportSpecifierWithIdentifierLocal extends ExportSpecifierBase { + local: Identifier; +} +export declare interface ExportSpecifierWithStringOrLiteralLocal extends ExportSpecifierBase { + local: Identifier | StringLiteral; +} +export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; +export declare interface ExpressionStatement extends BaseNode { + type: AST_NODE_TYPES.ExpressionStatement; + directive: string | undefined; + expression: Expression; +} +export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration; +export declare interface ForInStatement extends BaseNode { + type: AST_NODE_TYPES.ForInStatement; + body: Statement; + left: ForInitialiser; + right: Expression; +} +declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration; +export declare interface ForOfStatement extends BaseNode { + type: AST_NODE_TYPES.ForOfStatement; + await: boolean; + body: Statement; + left: ForOfInitialiser; + right: Expression; +} +export declare interface ForStatement extends BaseNode { + type: AST_NODE_TYPES.ForStatement; + body: Statement; + init: Expression | ForInitialiser | null; + test: Expression | null; + update: Expression | null; +} +declare interface FunctionBase extends BaseNode { + /** + * Whether the function is async: + * ``` + * async function foo() {} + * const x = async function () {} + * const x = async () => {} + * ``` + */ + async: boolean; + /** + * The body of the function. + * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. + * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`. + * - For a `TSDeclareFunction` this is always `undefined`. + * - For a `TSEmptyBodyFunctionExpression` this is always `null`. + */ + body: BlockStatement | Expression | null | undefined; + /** + * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: + * ``` + * declare function foo() {} + * ``` + */ + declare: boolean; + /** + * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body + * is an expression: + * ``` + * (() => 1) + * ``` + */ + expression: boolean; + /** + * Whether the function is a generator function: + * ``` + * function *foo() {} + * const x = function *() {} + * ``` + * This is always `false` for arrow functions as they cannot be generators. + */ + generator: boolean; + /** + * The function's name. + * - For an `ArrowFunctionExpression` this is always `null`. + * - For a `FunctionExpression` this may be `null` if the name is omitted. + * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if + * and only if the parent is an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The list of parameters declared for the function. + */ + params: Parameter[]; + /** + * The return type annotation for the function. + */ + returnType: TSTypeAnnotation | undefined; + /** + * The generic type parameter declaration for the function. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; +declare interface FunctionDeclarationBase extends FunctionBase { + type: AST_NODE_TYPES.FunctionDeclaration; + body: BlockStatement; + declare: false; + expression: false; +} +/** + * A normal function declaration: + * ``` + * function f() {} + * ``` + */ +export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { + id: Identifier; +} +/** + * Default-exported function declarations have optional names: + * ``` + * export default function () {} + * ``` + */ +export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { + id: Identifier | null; +} +export declare interface FunctionExpression extends FunctionBase { + type: AST_NODE_TYPES.FunctionExpression; + body: BlockStatement; + expression: false; +} +export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; +export declare interface Identifier extends BaseNode { + type: AST_NODE_TYPES.Identifier; + decorators: Decorator[]; + name: string; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface IdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.Identifier; +} +export declare interface IfStatement extends BaseNode { + type: AST_NODE_TYPES.IfStatement; + alternate: Statement | null; + consequent: Statement; + test: Expression; +} +export declare interface ImportAttribute extends BaseNode { + type: AST_NODE_TYPES.ImportAttribute; + key: Identifier | Literal; + value: Literal; +} +export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; +export declare interface ImportDeclaration extends BaseNode { + type: AST_NODE_TYPES.ImportDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * import * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * import * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The kind of the import. + */ + importKind: ImportKind; + /** + * The source module being imported from. + */ + source: StringLiteral; + /** + * The specifiers being imported. + * If this is an empty array then either there are no specifiers: + * ``` + * import {} from 'mod'; + * ``` + * Or it is a side-effect import: + * ``` + * import 'mod'; + * ``` + */ + specifiers: ImportClause[]; +} +export declare interface ImportDefaultSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportDefaultSpecifier; + local: Identifier; +} +export declare interface ImportExpression extends BaseNode { + type: AST_NODE_TYPES.ImportExpression; + /** + * The attributes declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + * @deprecated Replaced with {@link `options`}. + */ + attributes: Expression | null; + /** + * The options bag declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + */ + options: Expression | null; + source: Expression; +} +declare type ImportKind = ExportAndImportKind; +export declare interface ImportNamespaceSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportNamespaceSpecifier; + local: Identifier; +} +export declare interface ImportSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportSpecifier; + imported: Identifier | StringLiteral; + importKind: ImportKind; + local: Identifier; +} +export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; +export declare interface JSXAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXAttribute; + name: JSXIdentifier | JSXNamespacedName; + value: JSXElement | JSXExpression | Literal | null; +} +export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; +export declare interface JSXClosingElement extends BaseNode { + type: AST_NODE_TYPES.JSXClosingElement; + name: JSXTagNameExpression; +} +export declare interface JSXClosingFragment extends BaseNode { + type: AST_NODE_TYPES.JSXClosingFragment; +} +export declare interface JSXElement extends BaseNode { + type: AST_NODE_TYPES.JSXElement; + children: JSXChild[]; + closingElement: JSXClosingElement | null; + openingElement: JSXOpeningElement; +} +export declare interface JSXEmptyExpression extends BaseNode { + type: AST_NODE_TYPES.JSXEmptyExpression; +} +export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; +export declare interface JSXExpressionContainer extends BaseNode { + type: AST_NODE_TYPES.JSXExpressionContainer; + expression: Expression | JSXEmptyExpression; +} +export declare interface JSXFragment extends BaseNode { + type: AST_NODE_TYPES.JSXFragment; + children: JSXChild[]; + closingFragment: JSXClosingFragment; + openingFragment: JSXOpeningFragment; +} +export declare interface JSXIdentifier extends BaseNode { + type: AST_NODE_TYPES.JSXIdentifier; + name: string; +} +export declare interface JSXIdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXIdentifier; +} +export declare interface JSXMemberExpression extends BaseNode { + type: AST_NODE_TYPES.JSXMemberExpression; + object: JSXTagNameExpression; + property: JSXIdentifier; +} +export declare interface JSXNamespacedName extends BaseNode { + type: AST_NODE_TYPES.JSXNamespacedName; + name: JSXIdentifier; + namespace: JSXIdentifier; +} +export declare interface JSXOpeningElement extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningElement; + attributes: (JSXAttribute | JSXSpreadAttribute)[]; + name: JSXTagNameExpression; + selfClosing: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface JSXOpeningFragment extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningFragment; +} +export declare interface JSXSpreadAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadAttribute; + argument: Expression; +} +export declare interface JSXSpreadChild extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadChild; + expression: Expression | JSXEmptyExpression; +} +export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; +export declare interface JSXText extends BaseNode { + type: AST_NODE_TYPES.JSXText; + raw: string; + value: string; +} +export declare interface JSXTextToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXText; +} +export declare interface KeywordToken extends BaseToken { + type: AST_TOKEN_TYPES.Keyword; +} +export declare interface LabeledStatement extends BaseNode { + type: AST_NODE_TYPES.LabeledStatement; + body: Statement; + label: Identifier; +} +export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; +export declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration; +declare interface LetOrConstOrVarDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * let x; + * let y, z; + * ``` + */ + declarations: LetOrConstOrVarDeclarator[]; + /** + * Whether the declaration is `declare`d + * @example + * ```ts + * declare const x = 1; + * ``` + */ + declare: boolean; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * const x = 1; + * let y = 2; + * var z = 3; + * ``` + */ + kind: 'const' | 'let' | 'var'; +} +export declare type LetOrConstOrVarDeclarator = VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit; +export declare interface LetOrVarDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare let` declaration, the declarators must not have definite assignment + * assertions or initializers. + * + * @example + * ```ts + * using x = 1; + * using y =1, z = 2; + * ``` + */ + declarations: VariableDeclaratorNoInit[]; + declare: true; + kind: 'let' | 'var'; +} +export declare interface LetOrVarNonDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `let`/`var` declaration, the declarators may have definite assignment + * assertions or initializers, but not both. + */ + declarations: (VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit)[]; + declare: false; + kind: 'let' | 'var'; +} +export declare interface LineComment extends BaseToken { + type: AST_TOKEN_TYPES.Line; +} +export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; +declare interface LiteralBase extends BaseNode { + type: AST_NODE_TYPES.Literal; + raw: string; + value: bigint | boolean | number | string | RegExp | null; +} +export declare type LiteralExpression = Literal | TemplateLiteral; +export declare interface LogicalExpression extends BaseNode { + type: AST_NODE_TYPES.LogicalExpression; + left: Expression; + operator: '&&' | '??' | '||'; + right: Expression; +} +export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; +declare interface MemberExpressionBase extends BaseNode { + computed: boolean; + object: Expression; + optional: boolean; + property: Expression | Identifier | PrivateIdentifier; +} +export declare interface MemberExpressionComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: true; + property: Expression; +} +export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: false; + property: Identifier | PrivateIdentifier; +} +export declare interface MetaProperty extends BaseNode { + type: AST_NODE_TYPES.MetaProperty; + meta: Identifier; + property: Identifier; +} +export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; +/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ +declare interface MethodDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + decorators: Decorator[]; + key: PropertyName; + kind: 'constructor' | 'get' | 'method' | 'set'; + optional: boolean; + override: boolean; + static: boolean; + value: FunctionExpression | TSEmptyBodyFunctionExpression; +} +export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare interface NewExpression extends BaseNode { + type: AST_NODE_TYPES.NewExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; +export declare interface NodeOrTokenData { + type: string; + /** + * The source location information of the node. + * + * The loc property is defined as nullable by ESTree, but ESLint requires this property. + */ + loc: SourceLocation; + range: Range; +} +export declare interface NullLiteral extends LiteralBase { + raw: 'null'; + value: null; +} +export declare interface NullToken extends BaseToken { + type: AST_TOKEN_TYPES.Null; +} +export declare interface NumberLiteral extends LiteralBase { + value: number; +} +export declare interface NumericToken extends BaseToken { + type: AST_TOKEN_TYPES.Numeric; +} +export declare interface ObjectExpression extends BaseNode { + type: AST_NODE_TYPES.ObjectExpression; + properties: ObjectLiteralElement[]; +} +export declare type ObjectLiteralElement = Property | SpreadElement; +export declare type ObjectLiteralElementLike = ObjectLiteralElement; +export declare interface ObjectPattern extends BaseNode { + type: AST_NODE_TYPES.ObjectPattern; + decorators: Decorator[]; + optional: boolean; + properties: (Property | RestElement)[]; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare type OptionalRangeAndLoc = { + loc?: SourceLocation; + range?: Range; +} & Pick>; +export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; +export declare interface Position { + /** + * Column number on the line (0-indexed) + */ + column: number; + /** + * Line number (1-indexed) + */ + line: number; +} +export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; +export declare interface PrivateIdentifier extends BaseNode { + type: AST_NODE_TYPES.PrivateIdentifier; + name: string; +} +export declare interface Program extends NodeOrTokenData { + type: AST_NODE_TYPES.Program; + body: ProgramStatement[]; + comments: Comment[] | undefined; + sourceType: 'module' | 'script'; + tokens: Token[] | undefined; +} +export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; +export declare type Property = PropertyComputedName | PropertyNonComputedName; +declare interface PropertyBase extends BaseNode { + type: AST_NODE_TYPES.Property; + computed: boolean; + key: PropertyName; + kind: 'get' | 'init' | 'set'; + method: boolean; + optional: boolean; + shorthand: boolean; + value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; +} +export declare interface PropertyComputedName extends PropertyBase { + computed: true; + key: PropertyNameComputed; +} +export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; +declare interface PropertyDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + declare: boolean; + decorators: Decorator[]; + definite: boolean; + key: PropertyName; + optional: boolean; + override: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; + value: Expression | null; +} +export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; +export declare type PropertyNameComputed = Expression; +export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; +export declare interface PropertyNonComputedName extends PropertyBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface PunctuatorToken extends BaseToken { + type: AST_TOKEN_TYPES.Punctuator; + value: ValueOf; +} +export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.AtToken]: '@'; + [SyntaxKind.BacktickToken]: '`'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.CloseBraceToken]: '}'; + [SyntaxKind.CloseBracketToken]: ']'; + [SyntaxKind.CloseParenToken]: ')'; + [SyntaxKind.ColonToken]: ':'; + [SyntaxKind.CommaToken]: ','; + [SyntaxKind.DotDotDotToken]: '...'; + [SyntaxKind.DotToken]: '.'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.EqualsGreaterThanToken]: '=>'; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.ExclamationToken]: '!'; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.HashToken]: '#'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanSlashToken]: '`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSInterfaceHeritage extends TSHeritageBase { + type: AST_NODE_TYPES.TSInterfaceHeritage; +} +export declare interface TSIntersectionType extends BaseNode { + type: AST_NODE_TYPES.TSIntersectionType; + types: TypeNode[]; +} +export declare interface TSIntrinsicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSIntrinsicKeyword; +} +export declare interface TSLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSLiteralType; + literal: LiteralExpression | UnaryExpression | UpdateExpression; +} +export declare interface TSMappedType extends BaseNode { + type: AST_NODE_TYPES.TSMappedType; + constraint: TypeNode; + key: Identifier; + nameType: TypeNode | null; + optional: boolean | '+' | '-' | undefined; + readonly: boolean | '+' | '-' | undefined; + typeAnnotation: TypeNode | undefined; + /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */ + typeParameter: TSTypeParameter; +} +export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; +declare interface TSMethodSignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSMethodSignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + kind: 'get' | 'method' | 'set'; + optional: boolean; + params: Parameter[]; + readonly: boolean; + returnType: TSTypeAnnotation | undefined; + static: boolean; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSModuleBlock extends BaseNode { + type: AST_NODE_TYPES.TSModuleBlock; + body: ProgramStatement[]; +} +export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; +declare interface TSModuleDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.TSModuleDeclaration; + /** + * The body of the module. + * This can only be `undefined` for the code `declare module 'mod';` + */ + body?: TSModuleBlock; + /** + * Whether the module is `declare`d + * @example + * ```ts + * declare namespace F {} + * ``` + */ + declare: boolean; + /** + * Whether this is a global declaration + * @example + * ```ts + * declare global {} + * ``` + * + * @deprecated Use {@link kind} instead + */ + global: boolean; + /** + * The name of the module + * ``` + * namespace A {} + * namespace A.B.C {} + * module 'a' {} + * ``` + */ + id: Identifier | Literal | TSQualifiedName; + /** + * The keyword used to define this module declaration + * @example + * ```ts + * namespace Foo {} + * ^^^^^^^^^ + * + * module 'foo' {} + * ^^^^^^ + * + * global {} + * ^^^^^^ + * ``` + */ + kind: TSModuleDeclarationKind; +} +export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { + body: TSModuleBlock; + /** + * This will always be an Identifier with name `global` + */ + id: Identifier; + kind: 'global'; +} +export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; +export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; +declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { + kind: 'module'; +} +/** + * The legacy module declaration, replaced with namespace declarations. + * ``` + * module A {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + id: Identifier; + kind: 'module'; +} +export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; +/** + * A string module declaration that is declared: + * ``` + * declare module 'foo' {} + * declare module 'foo'; + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { + body?: TSModuleBlock; + declare: true; + id: StringLiteral; + kind: 'module'; +} +/** + * A string module declaration that is not declared: + * ``` + * module 'foo' {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + declare: false; + id: StringLiteral; + kind: 'module'; +} +export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { + body: TSModuleBlock; + id: Identifier | TSQualifiedName; + kind: 'namespace'; +} +export declare interface TSNamedTupleMember extends BaseNode { + type: AST_NODE_TYPES.TSNamedTupleMember; + elementType: TypeNode; + label: Identifier; + optional: boolean; +} +/** + * For the following declaration: + * ``` + * export as namespace X; + * ``` + */ +export declare interface TSNamespaceExportDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSNamespaceExportDeclaration; + /** + * The name of the global variable that's exported as namespace + */ + id: Identifier; +} +export declare interface TSNeverKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNeverKeyword; +} +export declare interface TSNonNullExpression extends BaseNode { + type: AST_NODE_TYPES.TSNonNullExpression; + expression: Expression; +} +export declare interface TSNullKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNullKeyword; +} +export declare interface TSNumberKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNumberKeyword; +} +export declare interface TSObjectKeyword extends BaseNode { + type: AST_NODE_TYPES.TSObjectKeyword; +} +export declare interface TSOptionalType extends BaseNode { + type: AST_NODE_TYPES.TSOptionalType; + typeAnnotation: TypeNode; +} +export declare interface TSParameterProperty extends BaseNode { + type: AST_NODE_TYPES.TSParameterProperty; + accessibility: Accessibility | undefined; + decorators: Decorator[]; + override: boolean; + parameter: AssignmentPattern | BindingName | RestElement; + readonly: boolean; + static: boolean; +} +export declare interface TSPrivateKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPrivateKeyword; +} +export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; +declare interface TSPropertySignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSPropertySignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + optional: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSProtectedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSProtectedKeyword; +} +export declare interface TSPublicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPublicKeyword; +} +export declare interface TSQualifiedName extends BaseNode { + type: AST_NODE_TYPES.TSQualifiedName; + left: EntityName; + right: Identifier; +} +export declare interface TSReadonlyKeyword extends BaseNode { + type: AST_NODE_TYPES.TSReadonlyKeyword; +} +export declare interface TSRestType extends BaseNode { + type: AST_NODE_TYPES.TSRestType; + typeAnnotation: TypeNode; +} +export declare interface TSSatisfiesExpression extends BaseNode { + type: AST_NODE_TYPES.TSSatisfiesExpression; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSStaticKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStaticKeyword; +} +export declare interface TSStringKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStringKeyword; +} +export declare interface TSSymbolKeyword extends BaseNode { + type: AST_NODE_TYPES.TSSymbolKeyword; +} +export declare interface TSTemplateLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSTemplateLiteralType; + quasis: TemplateElement[]; + types: TypeNode[]; +} +export declare interface TSThisType extends BaseNode { + type: AST_NODE_TYPES.TSThisType; +} +export declare interface TSTupleType extends BaseNode { + type: AST_NODE_TYPES.TSTupleType; + elementTypes: TypeNode[]; +} +export declare interface TSTypeAliasDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeAliasDeclaration; + /** + * Whether the type was `declare`d. + * @example + * ```ts + * declare type T = 1; + * ``` + */ + declare: boolean; + /** + * The name of the type. + */ + id: Identifier; + /** + * The "value" (type) of the declaration + */ + typeAnnotation: TypeNode; + /** + * The generic type parameters declared for the type. Empty declaration + * (`<>`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSTypeAnnotation extends BaseNode { + type: AST_NODE_TYPES.TSTypeAnnotation; + typeAnnotation: TypeNode; +} +export declare interface TSTypeAssertion extends BaseNode { + type: AST_NODE_TYPES.TSTypeAssertion; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSTypeLiteral extends BaseNode { + type: AST_NODE_TYPES.TSTypeLiteral; + members: TypeElement[]; +} +export declare interface TSTypeOperator extends BaseNode { + type: AST_NODE_TYPES.TSTypeOperator; + operator: 'keyof' | 'readonly' | 'unique'; + typeAnnotation: TypeNode | undefined; +} +export declare interface TSTypeParameter extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameter; + const: boolean; + constraint: TypeNode | undefined; + default: TypeNode | undefined; + in: boolean; + name: Identifier; + out: boolean; +} +export declare interface TSTypeParameterDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterDeclaration; + params: TSTypeParameter[]; +} +export declare interface TSTypeParameterInstantiation extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterInstantiation; + params: TypeNode[]; +} +export declare interface TSTypePredicate extends BaseNode { + type: AST_NODE_TYPES.TSTypePredicate; + asserts: boolean; + parameterName: Identifier | TSThisType; + typeAnnotation: TSTypeAnnotation | null; +} +export declare interface TSTypeQuery extends BaseNode { + type: AST_NODE_TYPES.TSTypeQuery; + exprName: EntityName | TSImportType; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface TSTypeReference extends BaseNode { + type: AST_NODE_TYPES.TSTypeReference; + typeArguments: TSTypeParameterInstantiation | undefined; + typeName: EntityName; +} +export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; +export declare interface TSUndefinedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUndefinedKeyword; +} +export declare interface TSUnionType extends BaseNode { + type: AST_NODE_TYPES.TSUnionType; + types: TypeNode[]; +} +export declare interface TSUnknownKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUnknownKeyword; +} +export declare interface TSVoidKeyword extends BaseNode { + type: AST_NODE_TYPES.TSVoidKeyword; +} +export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; +export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; +export declare interface UnaryExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UnaryExpression; + operator: '!' | '+' | '~' | '-' | 'delete' | 'typeof' | 'void'; +} +declare interface UnaryExpressionBase extends BaseNode { + argument: Expression; + operator: string; + prefix: boolean; +} +export declare interface UpdateExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UpdateExpression; + operator: '++' | '--'; +} +export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration; +declare interface UsingDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * This value will always be `false` + * because 'declare' modifier cannot appear on a 'using' declaration. + */ + declare: false; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * using x = 1; + * await using y = 2; + * ``` + */ + kind: 'await using' | 'using'; +} +export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNormalContextDeclarator; +export declare interface UsingInForOfDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always has exactly one element. + * @example + * ```ts + * for (using x of y) {} + * ``` + */ + declarations: [UsingInForOfDeclarator]; +} +export declare interface UsingInForOfDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: null; +} +export declare interface UsingInNormalContextDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * using x = 1; + * using y = 1, z = 2; + * ``` + */ + declarations: UsingInNormalContextDeclarator[]; +} +export declare interface UsingInNormalContextDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: Expression; +} +declare type ValueOf = T[keyof T]; +export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration; +export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator; +declare interface VariableDeclaratorBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclarator; + /** + * Whether there's definite assignment assertion (`let x!: number`). + * If `true`, then: `id` must be an identifier with a type annotation, + * `init` must be `null`, and the declarator must be a `var`/`let` declarator. + */ + definite: boolean; + /** + * The name(s) of the variable(s). + */ + id: BindingName; + /** + * The initializer expression of the variable. Must be present for `const` unless + * in a `declare const`. + */ + init: Expression | null; +} +export declare interface VariableDeclaratorDefiniteAssignment extends VariableDeclaratorBase { + definite: true; + /** + * The name of the variable. Must have a type annotation. + */ + id: Identifier; + init: null; +} +export declare interface VariableDeclaratorMaybeInit extends VariableDeclaratorBase { + definite: false; +} +export declare interface VariableDeclaratorNoInit extends VariableDeclaratorBase { + definite: false; + init: null; +} +export declare interface WhileStatement extends BaseNode { + type: AST_NODE_TYPES.WhileStatement; + body: Statement; + test: Expression; +} +export declare interface WithStatement extends BaseNode { + type: AST_NODE_TYPES.WithStatement; + body: Statement; + object: Expression; +} +export declare interface YieldExpression extends BaseNode { + type: AST_NODE_TYPES.YieldExpression; + argument: Expression | undefined; + delegate: boolean; +} +export {}; +//# sourceMappingURL=ast-spec.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map new file mode 100644 index 00000000..92d884b7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.d.ts","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;gDAQgD;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvE,MAAM,CAAC,OAAO,MAAM,gBAAg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I,EAAE,cAAc,CAAC,cAAc,CAAC;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,aAAc,SAAQ,QAAQ;IACrD,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js new file mode 100644 index 00000000..45d31f46 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js @@ -0,0 +1,200 @@ +"use strict"; +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var AST_NODE_TYPES; +(function (AST_NODE_TYPES) { + AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty"; + AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression"; + AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern"; + AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression"; + AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression"; + AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern"; + AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression"; + AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression"; + AST_NODE_TYPES["BlockStatement"] = "BlockStatement"; + AST_NODE_TYPES["BreakStatement"] = "BreakStatement"; + AST_NODE_TYPES["CallExpression"] = "CallExpression"; + AST_NODE_TYPES["CatchClause"] = "CatchClause"; + AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; + AST_NODE_TYPES["ClassBody"] = "ClassBody"; + AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; + AST_NODE_TYPES["ClassExpression"] = "ClassExpression"; + AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression"; + AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement"; + AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement"; + AST_NODE_TYPES["Decorator"] = "Decorator"; + AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement"; + AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement"; + AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration"; + AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; + AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration"; + AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier"; + AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement"; + AST_NODE_TYPES["ForInStatement"] = "ForInStatement"; + AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement"; + AST_NODE_TYPES["ForStatement"] = "ForStatement"; + AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration"; + AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression"; + AST_NODE_TYPES["Identifier"] = "Identifier"; + AST_NODE_TYPES["IfStatement"] = "IfStatement"; + AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute"; + AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration"; + AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; + AST_NODE_TYPES["ImportExpression"] = "ImportExpression"; + AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; + AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier"; + AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute"; + AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement"; + AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment"; + AST_NODE_TYPES["JSXElement"] = "JSXElement"; + AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression"; + AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer"; + AST_NODE_TYPES["JSXFragment"] = "JSXFragment"; + AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression"; + AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName"; + AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement"; + AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment"; + AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute"; + AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild"; + AST_NODE_TYPES["JSXText"] = "JSXText"; + AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement"; + AST_NODE_TYPES["Literal"] = "Literal"; + AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression"; + AST_NODE_TYPES["MemberExpression"] = "MemberExpression"; + AST_NODE_TYPES["MetaProperty"] = "MetaProperty"; + AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition"; + AST_NODE_TYPES["NewExpression"] = "NewExpression"; + AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression"; + AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; + AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier"; + AST_NODE_TYPES["Program"] = "Program"; + AST_NODE_TYPES["Property"] = "Property"; + AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition"; + AST_NODE_TYPES["RestElement"] = "RestElement"; + AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement"; + AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression"; + AST_NODE_TYPES["SpreadElement"] = "SpreadElement"; + AST_NODE_TYPES["StaticBlock"] = "StaticBlock"; + AST_NODE_TYPES["Super"] = "Super"; + AST_NODE_TYPES["SwitchCase"] = "SwitchCase"; + AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement"; + AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression"; + AST_NODE_TYPES["TemplateElement"] = "TemplateElement"; + AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral"; + AST_NODE_TYPES["ThisExpression"] = "ThisExpression"; + AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement"; + AST_NODE_TYPES["TryStatement"] = "TryStatement"; + AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression"; + AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression"; + AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration"; + AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator"; + AST_NODE_TYPES["WhileStatement"] = "WhileStatement"; + AST_NODE_TYPES["WithStatement"] = "WithStatement"; + AST_NODE_TYPES["YieldExpression"] = "YieldExpression"; + AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; + AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword"; + AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; + AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; + AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword"; + AST_NODE_TYPES["TSArrayType"] = "TSArrayType"; + AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression"; + AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; + AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; + AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; + AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; + AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; + AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; + AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; + AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; + AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; + AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; + AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; + AST_NODE_TYPES["TSEnumBody"] = "TSEnumBody"; + AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; + AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember"; + AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment"; + AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword"; + AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; + AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; + AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; + AST_NODE_TYPES["TSImportType"] = "TSImportType"; + AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; + AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; + AST_NODE_TYPES["TSInferType"] = "TSInferType"; + AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression"; + AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; + AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; + AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; + AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; + AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; + AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; + AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; + AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; + AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; + AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; + AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; + AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; + AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; + AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; + AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; + AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; + AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; + AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; + AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; + AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; + AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; + AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword"; + AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword"; + AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName"; + AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword"; + AST_NODE_TYPES["TSRestType"] = "TSRestType"; + AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression"; + AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword"; + AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword"; + AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword"; + AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType"; + AST_NODE_TYPES["TSThisType"] = "TSThisType"; + AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; + AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; + AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; + AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; + AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; + AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator"; + AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter"; + AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; + AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; + AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; + AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; + AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; + AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; + AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; + AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; + AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; +})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {})); +var AST_TOKEN_TYPES; +(function (AST_TOKEN_TYPES) { + AST_TOKEN_TYPES["Boolean"] = "Boolean"; + AST_TOKEN_TYPES["Identifier"] = "Identifier"; + AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_TOKEN_TYPES["JSXText"] = "JSXText"; + AST_TOKEN_TYPES["Keyword"] = "Keyword"; + AST_TOKEN_TYPES["Null"] = "Null"; + AST_TOKEN_TYPES["Numeric"] = "Numeric"; + AST_TOKEN_TYPES["Punctuator"] = "Punctuator"; + AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression"; + AST_TOKEN_TYPES["String"] = "String"; + AST_TOKEN_TYPES["Template"] = "Template"; + AST_TOKEN_TYPES["Block"] = "Block"; + AST_TOKEN_TYPES["Line"] = "Line"; +})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); +//# sourceMappingURL=ast-spec.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map new file mode 100644 index 00000000..2bbef05b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cAyKX;AAzKD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,+DAA6C,CAAA;IAC7C,uEAAqD,CAAA;IACrD,mEAAiD,CAAA;IACjD,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,2CAAyB,CAAA;IACzB,6CAA2B,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6CAA2B,CAAA;IAC3B,mEAAiD,CAAA;IACjD,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,2EAAyD,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EAzKW,cAAc,8BAAd,cAAc,QAyKzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts new file mode 100644 index 00000000..3d39147f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts @@ -0,0 +1,5 @@ +export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; +export * from './lib'; +export * from './parser-options'; +export * from './ts-estree'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts.map new file mode 100644 index 00000000..6a86c537 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js new file mode 100644 index 00000000..00ff6a17 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js @@ -0,0 +1,24 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var ast_spec_1 = require("./generated/ast-spec"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } }); +__exportStar(require("./lib"), exports); +__exportStar(require("./parser-options"), exports); +__exportStar(require("./ts-estree"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js.map new file mode 100644 index 00000000..075ac156 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts new file mode 100644 index 00000000..d007fce8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts @@ -0,0 +1,3 @@ +type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable'; +export { Lib }; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts.map new file mode 100644 index 00000000..51e8fd13 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,YAAY,GACZ,mBAAmB,GACnB,KAAK,GACL,mBAAmB,GACnB,cAAc,GACd,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,mBAAmB,GACnB,aAAa,GACb,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,oBAAoB,GACpB,QAAQ,GACR,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,eAAe,GACf,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,cAAc,GACd,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,KAAK,GACL,YAAY,GACZ,WAAW,GACX,yBAAyB,GACzB,yBAAyB,GACzB,oBAAoB,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js new file mode 100644 index 00000000..6d09838c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js @@ -0,0 +1,7 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js.map new file mode 100644 index 00000000..3ee438a9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts new file mode 100644 index 00000000..bf097423 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts @@ -0,0 +1,69 @@ +import type { Program } from 'typescript'; +import type { Lib } from './lib'; +type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[]; +type CacheDurationSeconds = number | 'Infinity'; +type EcmaVersion = 'latest' | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | undefined; +type SourceTypeClassic = 'module' | 'script'; +type SourceType = 'commonjs' | SourceTypeClassic; +type JSDocParsingMode = 'all' | 'none' | 'type-info'; +/** + * Granular options to configure the project service. + */ +interface ProjectServiceOptions { + /** + * Globs of files to allow running with the default project compiler options + * despite not being matched by the project service. + */ + allowDefaultProject?: string[]; + /** + * Path to a TSConfig to use instead of TypeScript's default project configuration. + * @default 'tsconfig.json' + */ + defaultProject?: string; + /** + * Whether to allow TypeScript plugins as configured in the TSConfig. + */ + loadTypeScriptPlugins?: boolean; + /** + * The maximum number of files {@link allowDefaultProject} may match. + * Each file match slows down linting, so if you do need to use this, please + * file an informative issue on typescript-eslint explaining why - so we can + * help you avoid using it! + * @default 8 + */ + maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number; +} +interface ParserOptions { + [additionalProperties: string]: unknown; + cacheLifetime?: { + glob?: CacheDurationSeconds; + }; + debugLevel?: DebugLevel; + ecmaFeatures?: { + [key: string]: unknown; + globalReturn?: boolean | undefined; + jsx?: boolean | undefined; + } | undefined; + ecmaVersion?: EcmaVersion; + emitDecoratorMetadata?: boolean; + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + errorOnUnknownASTType?: boolean; + experimentalDecorators?: boolean; + extraFileExtensions?: string[]; + filePath?: string; + jsDocParsingMode?: JSDocParsingMode; + jsxFragmentName?: string | null; + jsxPragma?: string | null; + lib?: Lib[]; + programs?: Program[] | null; + project?: boolean | string | string[] | null; + projectFolderIgnoreList?: string[]; + projectService?: boolean | ProjectServiceOptions; + range?: boolean; + sourceType?: SourceType | undefined; + tokens?: boolean; + tsconfigRootDir?: string; + warnOnUnsupportedTypeScriptVersion?: boolean; +} +export type { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, ProjectServiceOptions, SourceType, }; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map new file mode 100644 index 00000000..ff550366 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,OAAO,GAAG,CAAC,QAAQ,GAAG,YAAY,GAAG,mBAAmB,CAAC,EAAE,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,QAAQ,GACR,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,CAAC;AAEd,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,KAAK,UAAU,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEjD,KAAK,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAErD;;GAEG;AACH,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;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ACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,YAAY,EACV,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,UAAU,GACX,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts new file mode 100644 index 00000000..56266642 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts @@ -0,0 +1,173 @@ +import type * as TSESTree from './generated/ast-spec'; +declare module './generated/ast-spec' { + interface BaseNode { + parent: TSESTree.Node; + } + interface Program { + /** + * @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly. + */ + parent?: never; + } + interface AccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface AccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface VariableDeclaratorDefiniteAssignment { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorMaybeInit { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorNoInit { + parent: TSESTree.VariableDeclaration; + } + interface UsingInForOfDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface UsingInNormalContextDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface CatchClause { + parent: TSESTree.TryStatement; + } + interface ClassBody { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface ImportAttribute { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface ImportDefaultSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportNamespaceSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportSpecifier { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface JSXAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface JSXClosingElement { + parent: TSESTree.JSXElement; + } + interface JSXClosingFragment { + parent: TSESTree.JSXFragment; + } + interface JSXOpeningElement { + parent: TSESTree.JSXElement; + } + interface JSXOpeningFragment { + parent: TSESTree.JSXFragment; + } + interface JSXSpreadAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface MethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface MethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyNonComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface SpreadElement { + parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.NewExpression | TSESTree.ObjectExpression; + } + interface StaticBlock { + parent: TSESTree.ClassBody; + } + interface SwitchCase { + parent: TSESTree.SwitchStatement; + } + interface TemplateElement { + parent: TSESTree.TemplateLiteral | TSESTree.TSTemplateLiteralType; + } + interface TSCallSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSConstructSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSClassImplements { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface TSEnumBody { + parent: TSESTree.TSEnumDeclaration; + } + interface TSEnumMemberComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSEnumMemberNonComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSIndexSignature { + parent: TSESTree.ClassBody | TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSInterfaceBody { + parent: TSESTree.TSInterfaceDeclaration; + } + interface TSInterfaceHeritage { + parent: TSESTree.TSInterfaceBody; + } + interface TSMethodSignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSMethodSignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSModuleBlock { + parent: TSESTree.TSModuleDeclaration; + } + interface TSParameterProperty { + parent: TSESTree.FunctionLike; + } + interface TSPropertySignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSPropertySignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSTypeParameter { + parent: TSESTree.TSInferType | TSESTree.TSMappedType | TSESTree.TSTypeParameterDeclaration; + } + interface ExportSpecifierWithIdentifierLocal { + parent: TSESTree.ExportNamedDeclaration; + } + interface ExportSpecifierWithStringOrLiteralLocal { + parent: TSESTree.ExportNamedDeclaration; + } +} +export * as TSESTree from './generated/ast-spec'; +//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map new file mode 100644 index 00000000..975e02e1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;IAED,UAAU,4BAA4B;QACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,sCAAsC;QAC9C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,yCAAyC;QACjD,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IAED,UAAU,oCAAoC;QAC5C,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,2BAA2B;QACnC,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pB,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,0BAA0B,CAAC;KACzC;IAED,UAAU,kCAAkC;QAC1C,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;KACzC;IACD,UAAU,uCAAuC;QAC/C,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;KACzC;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js new file mode 100644 index 00000000..9e361e6e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js @@ -0,0 +1,38 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = void 0; +exports.TSESTree = __importStar(require("./generated/ast-spec")); +//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js.map new file mode 100644 index 00000000..ac9ead2c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/dist/ts-estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkOA,iEAAiD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/package.json new file mode 100644 index 00000000..a5c435e5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types/package.json @@ -0,0 +1,88 @@ +{ + "name": "@typescript-eslint/types", + "version": "8.16.0", + "description": "Types for the TypeScript-ESTree AST spec", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/types" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "copy-ast-spec": "tsx ./tools/copy-ast-spec.ts", + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx run scope-manager:generate-lib", + "lint": "npx nx lint", + "typecheck": "tsc --noEmit" + }, + "nx": { + "targets": { + "copy-ast-spec": { + "dependsOn": [ + "^build" + ], + "outputs": [ + "{projectRoot}/src/generated" + ], + "cache": true + }, + "build": { + "dependsOn": [ + "^build", + "copy-ast-spec" + ] + } + } + }, + "devDependencies": { + "@jest/types": "29.6.3", + "downlevel-dts": "*", + "prettier": "^3.2.5", + "rimraf": "*", + "tsx": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/LICENSE new file mode 100644 index 00000000..26018f87 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/LICENSE @@ -0,0 +1,28 @@ +BSD 2-Clause License + +TypeScript ESTree + +Originally extracted from: + +TypeScript ESLint Parser +Copyright JS Foundation and other contributors, https://js.foundation + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/README.md new file mode 100644 index 00000000..c98838da --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/README.md @@ -0,0 +1,14 @@ +# `@typescript-eslint/typescript-estree` + +> A parser that produces an ESTree-compatible AST for TypeScript code. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +## Contributing + +👉 See **https://typescript-eslint.io/packages/typescript-estree** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts new file mode 100644 index 00000000..684f35a8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts @@ -0,0 +1,9 @@ +import type { SourceFile } from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParseSettings } from './parseSettings'; +import type { TSESTree } from './ts-estree'; +export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { + astMaps: ASTMaps; + estree: TSESTree.Program; +}; +//# sourceMappingURL=ast-converter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map new file mode 100644 index 00000000..8da91fde --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAA;CAAE,CA4DhD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js new file mode 100644 index 00000000..9435609a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.astConverter = astConverter; +const convert_1 = require("./convert"); +const convert_comments_1 = require("./convert-comments"); +const node_utils_1 = require("./node-utils"); +const simple_traverse_1 = require("./simple-traverse"); +function astConverter(ast, parseSettings, shouldPreserveNodeMaps) { + /** + * The TypeScript compiler produced fundamental parse errors when parsing the + * source. + */ + const { parseDiagnostics } = ast; + if (parseDiagnostics.length) { + throw (0, convert_1.convertError)(parseDiagnostics[0]); + } + /** + * Recursively convert the TypeScript AST into an ESTree-compatible AST + */ + const instance = new convert_1.Converter(ast, { + allowInvalidAST: parseSettings.allowInvalidAST, + errorOnUnknownASTType: parseSettings.errorOnUnknownASTType, + shouldPreserveNodeMaps, + suppressDeprecatedPropertyWarnings: parseSettings.suppressDeprecatedPropertyWarnings, + }); + const estree = instance.convertProgram(); + /** + * Optionally remove range and loc if specified + */ + if (!parseSettings.range || !parseSettings.loc) { + (0, simple_traverse_1.simpleTraverse)(estree, { + enter: node => { + if (!parseSettings.range) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.range; + } + if (!parseSettings.loc) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.loc; + } + }, + }); + } + /** + * Optionally convert and include all tokens in the AST + */ + if (parseSettings.tokens) { + estree.tokens = (0, node_utils_1.convertTokens)(ast); + } + /** + * Optionally convert and include all comments in the AST + */ + if (parseSettings.comment) { + estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.codeFullText); + } + const astMaps = instance.getASTMaps(); + return { astMaps, estree }; +} +//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map new file mode 100644 index 00000000..af967afe --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":";;AAWA,oCAgEC;AArED,uCAAoD;AACpD,yDAAqD;AACrD,6CAA6C;AAC7C,uDAAmD;AAEnD,SAAgB,YAAY,CAC1B,GAAe,EACf,aAA4B,EAC5B,sBAA+B;IAE/B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,MAAM,IAAA,sBAAY,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,MAAM,QAAQ,GAAG,IAAI,mBAAS,CAAC,GAAG,EAAE;QAClC,eAAe,EAAE,aAAa,CAAC,eAAe;QAC9C,qBAAqB,EAAE,aAAa,CAAC,qBAAqB;QAC1D,sBAAsB;QACtB,kCAAkC,EAChC,aAAa,CAAC,kCAAkC;KACnD,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QAC/C,IAAA,gCAAc,EAAC,MAAM,EAAE;YACrB,KAAK,EAAE,IAAI,CAAC,EAAE;gBACZ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;oBACzB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,KAAK,CAAC;gBACpB,CAAC;gBACD,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;oBACvB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,GAAG,CAAC;gBAClB,CAAC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,CAAC,MAAM,GAAG,IAAA,0BAAa,EAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,MAAM,CAAC,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts new file mode 100644 index 00000000..18457024 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts @@ -0,0 +1,10 @@ +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +export declare function clearCaches(): void; +export declare const clearProgramCache: typeof clearCaches; +//# sourceMappingURL=clear-caches.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map new file mode 100644 index 00000000..eeec191b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js new file mode 100644 index 00000000..e8b8c7df --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearProgramCache = void 0; +exports.clearCaches = clearCaches; +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const parser_1 = require("./parser"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const resolveProjectList_1 = require("./parseSettings/resolveProjectList"); +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +function clearCaches() { + (0, parser_1.clearDefaultProjectMatchedFiles)(); + (0, parser_1.clearProgramCache)(); + (0, getWatchProgramsForProjects_1.clearWatchCaches)(); + (0, createParseSettings_1.clearTSConfigMatchCache)(); + (0, createParseSettings_1.clearTSServerProjectService)(); + (0, resolveProjectList_1.clearGlobCache)(); +} +// TODO - delete this in next major +exports.clearProgramCache = clearCaches; +//# sourceMappingURL=clear-caches.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map new file mode 100644 index 00000000..eacff3a6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAkBA,kCAOC;AAzBD,8FAAgF;AAChF,qCAGkB;AAClB,6EAG6C;AAC7C,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,wCAA+B,GAAE,CAAC;IAClC,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,iDAA2B,GAAE,CAAC;IAC9B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts new file mode 100644 index 00000000..bdf93691 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts @@ -0,0 +1,11 @@ +import * as ts from 'typescript'; +import type { TSESTree } from './ts-estree'; +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; +//# sourceMappingURL=convert-comments.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map new file mode 100644 index 00000000..4ac22871 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js new file mode 100644 index 00000000..31aca933 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js @@ -0,0 +1,72 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertComments = convertComments; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +function convertComments(ast, code) { + const comments = []; + tsutils.forEachComment(ast, (_, comment) => { + const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? ts_estree_1.AST_TOKEN_TYPES.Line + : ts_estree_1.AST_TOKEN_TYPES.Block; + const range = [comment.pos, comment.end]; + const loc = (0, node_utils_1.getLocFor)(range, ast); + // both comments start with 2 characters - /* or // + const textStart = range[0] + 2; + const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? // single line comments end at the end + range[1] - textStart + : // multiline comments end 2 characters early + range[1] - textStart - 2; + comments.push({ + type, + loc, + range, + value: code.slice(textStart, textStart + textEnd), + }); + }, ast); + return comments; +} +//# sourceMappingURL=convert-comments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map new file mode 100644 index 00000000..f4addc76 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.js","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,0CAmCC;AAlDD,sDAAwC;AACxC,+CAAiC;AAIjC,6CAAyC;AACzC,2CAA8C;AAE9C;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,GAAkB,EAClB,IAAY;IAEZ,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,OAAO,CAAC,cAAc,CACpB,GAAG,EACH,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACb,MAAM,IAAI,GACR,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,2BAAe,CAAC,IAAI;YACtB,CAAC,CAAC,2BAAe,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,GAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAA,sBAAS,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,mDAAmD;QACnD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,sCAAsC;gBACtC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS;YACtB,CAAC,CAAC,4CAA4C;gBAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI;YACJ,GAAG;YACH,KAAK;YACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;SAClD,CAAC,CAAC;IACL,CAAC,EACD,GAAG,CACJ,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts new file mode 100644 index 00000000..eec3ee4c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts @@ -0,0 +1,137 @@ +import * as ts from 'typescript'; +import type { TSError } from './node-utils'; +import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; +import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; +import type { TSESTree, TSNode } from './ts-estree'; +export interface ConverterOptions { + allowInvalidAST?: boolean; + errorOnUnknownASTType?: boolean; + shouldPreserveNodeMaps?: boolean; + suppressDeprecatedPropertyWarnings?: boolean; +} +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError; +export interface ASTMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export declare class Converter { + #private; + private allowPattern; + private readonly ast; + private readonly esTreeNodeToTSNodeMap; + private readonly options; + private readonly tsNodeToESTreeNodeMap; + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast: ts.SourceFile, options?: ConverterOptions); + private assertModuleSpecifier; + private convertBindingNameWithTypeAnnotation; + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + private convertBodyExpressions; + private convertChainExpression; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertChild; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertPattern; + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + private convertTypeAnnotation; + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + private convertTypeArgumentsToTypeParameterInstantiation; + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + private convertTSTypeParametersToTypeParametersDeclaration; + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + private convertParameters; + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + private converter; + private convertImportAttributes; + private convertJSXIdentifier; + private convertJSXNamespaceOrIdentifier; + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + private convertJSXTagName; + private convertMethodSignature; + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + private fixParentLocation; + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + private convertNode; + private createNode; + convertProgram(): TSESTree.Program; + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + private deeplyCopy; + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + private fixExports; + getASTMaps(): ASTMaps; + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + private registerTSNodeInNodeMap; +} +//# sourceMappingURL=convert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map new file mode 100644 index 00000000..92463b3c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IA49EnB,OAAO,CAAC,UAAU;IAelB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAiFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js new file mode 100644 index 00000000..7d868416 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js @@ -0,0 +1,2681 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Converter = void 0; +exports.convertError = convertError; +// There's lots of funny stuff due to the typing of ts.Node +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */ +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +const SyntaxKind = ts.SyntaxKind; +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +function convertError(error) { + return (0, node_utils_1.createError)(('message' in error && error.message) || error.messageText, error.file, error.start); +} +class Converter { + allowPattern = false; + ast; + esTreeNodeToTSNodeMap = new WeakMap(); + options; + tsNodeToESTreeNodeMap = new WeakMap(); + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast, options) { + this.ast = ast; + this.options = { ...options }; + } + #checkForStatementDeclaration(initializer, kind) { + const loop = kind === ts.SyntaxKind.ForInStatement ? 'for...in' : 'for...of'; + if (ts.isVariableDeclarationList(initializer)) { + if (initializer.declarations.length !== 1) { + this.#throwError(initializer, `Only a single variable declaration is allowed in a '${loop}' statement.`); + } + const declaration = initializer.declarations[0]; + if (declaration.initializer) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have an initializer.`); + } + else if (declaration.type) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have a type annotation.`); + } + if (kind === ts.SyntaxKind.ForInStatement && + initializer.flags & ts.NodeFlags.Using) { + this.#throwError(initializer, "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."); + } + } + else if (!(0, node_utils_1.isValidAssignmentTarget)(initializer) && + initializer.kind !== ts.SyntaxKind.ObjectLiteralExpression && + initializer.kind !== ts.SyntaxKind.ArrayLiteralExpression) { + this.#throwError(initializer, `The left-hand side of a '${loop}' statement must be a variable or a property access.`); + } + } + #checkModifiers(node) { + if (this.options.allowInvalidAST) { + return; + } + // typescript<5.0.0 + if ((0, node_utils_1.nodeHasIllegalDecorators)(node)) { + this.#throwError(node.illegalDecorators[0], 'Decorators are not valid here.'); + } + for (const decorator of (0, getModifiers_1.getDecorators)(node, + /* includeIllegalDecorators */ true) ?? []) { + // `checkGrammarModifiers` function in typescript + if (!(0, node_utils_1.nodeCanBeDecorated)(node)) { + if (ts.isMethodDeclaration(node) && !(0, node_utils_1.nodeIsPresent)(node.body)) { + this.#throwError(decorator, 'A decorator can only decorate a method implementation, not an overload.'); + } + else { + this.#throwError(decorator, 'Decorators are not valid here.'); + } + } + } + for (const modifier of (0, getModifiers_1.getModifiers)(node, + /* includeIllegalModifiers */ true) ?? []) { + if (modifier.kind !== SyntaxKind.ReadonlyKeyword) { + if (node.kind === SyntaxKind.PropertySignature || + node.kind === SyntaxKind.MethodSignature) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type member`); + } + if (node.kind === SyntaxKind.IndexSignature && + (modifier.kind !== SyntaxKind.StaticKeyword || + !ts.isClassLike(node.parent))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on an index signature`); + } + } + if (modifier.kind !== SyntaxKind.InKeyword && + modifier.kind !== SyntaxKind.OutKeyword && + modifier.kind !== SyntaxKind.ConstKeyword && + node.kind === SyntaxKind.TypeParameter) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type parameter`); + } + if ((modifier.kind === SyntaxKind.InKeyword || + modifier.kind === SyntaxKind.OutKeyword) && + (node.kind !== SyntaxKind.TypeParameter || + !(ts.isInterfaceDeclaration(node.parent) || + ts.isClassLike(node.parent) || + ts.isTypeAliasDeclaration(node.parent)))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`); + } + if (modifier.kind === SyntaxKind.ReadonlyKeyword && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.PropertySignature && + node.kind !== SyntaxKind.IndexSignature && + node.kind !== SyntaxKind.Parameter) { + this.#throwError(modifier, "'readonly' modifier can only appear on a property declaration or index signature."); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isClassLike(node.parent) && + !ts.isPropertyDeclaration(node)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on class elements of this kind.`); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isVariableStatement(node)) { + const declarationKind = (0, node_utils_1.getDeclarationKind)(node.declarationList); + if (declarationKind === 'using' || declarationKind === 'await using') { + this.#throwError(modifier, `'declare' modifier cannot appear on a '${declarationKind}' declaration.`); + } + } + if (modifier.kind === SyntaxKind.AbstractKeyword && + node.kind !== SyntaxKind.ClassDeclaration && + node.kind !== SyntaxKind.ConstructorType && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.GetAccessor && + node.kind !== SyntaxKind.SetAccessor) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`); + } + if ((modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) && + (node.parent.kind === SyntaxKind.ModuleBlock || + node.parent.kind === SyntaxKind.SourceFile)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a module or namespace element.`); + } + if (modifier.kind === SyntaxKind.AccessorKeyword && + node.kind !== SyntaxKind.PropertyDeclaration) { + this.#throwError(modifier, "'accessor' modifier can only appear on a property declaration."); + } + // `checkGrammarAsyncModifier` function in `typescript` + if (modifier.kind === SyntaxKind.AsyncKeyword && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.FunctionDeclaration && + node.kind !== SyntaxKind.FunctionExpression && + node.kind !== SyntaxKind.ArrowFunction) { + this.#throwError(modifier, "'async' modifier cannot be used here."); + } + // `checkGrammarModifiers` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + (modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.ExportKeyword || + modifier.kind === SyntaxKind.DeclareKeyword || + modifier.kind === SyntaxKind.AsyncKeyword)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a parameter.`); + } + // `checkGrammarModifiers` function in `typescript` + if (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) { + for (const anotherModifier of (0, getModifiers_1.getModifiers)(node) ?? []) { + if (anotherModifier !== modifier && + (anotherModifier.kind === SyntaxKind.PublicKeyword || + anotherModifier.kind === SyntaxKind.ProtectedKeyword || + anotherModifier.kind === SyntaxKind.PrivateKeyword)) { + this.#throwError(anotherModifier, `Accessibility modifier already seen.`); + } + } + } + // `checkParameter` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + // In `typescript` package, it's `ts.hasSyntacticModifier(node, ts.ModifierFlags.ParameterPropertyModifier)` + // https://github.com/typescript-eslint/typescript-eslint/pull/6615#discussion_r1136489935 + (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.PrivateKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.ReadonlyKeyword || + modifier.kind === SyntaxKind.OverrideKeyword)) { + const func = (0, node_utils_1.getContainingFunction)(node); + if (!(func.kind === SyntaxKind.Constructor && (0, node_utils_1.nodeIsPresent)(func.body))) { + this.#throwError(modifier, 'A parameter property is only allowed in a constructor implementation.'); + } + } + } + } + #throwError(node, message) { + let start; + let end; + if (typeof node === 'number') { + start = end = node; + } + else { + start = node.getStart(this.ast); + end = node.getEnd(); + } + throw (0, node_utils_1.createError)(message, this.ast, start, end); + } + #throwUnlessAllowInvalidAST(node, message) { + if (!this.options.allowInvalidAST) { + this.#throwError(node, message); + } + } + /** + * Creates a getter for a property under aliasKey that returns the value under + * valueKey. If suppressDeprecatedPropertyWarnings is not enabled, the + * getter also console warns about the deprecation. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6469 + */ + #withDeprecatedAliasGetter(node, aliasKey, valueKey, suppressWarnings = false) { + let warned = suppressWarnings; + Object.defineProperty(node, aliasKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => node[valueKey] + : () => { + if (!warned) { + process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return node[valueKey]; + }, + set(value) { + Object.defineProperty(node, aliasKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + #withDeprecatedGetter(node, deprecatedKey, preferredKey, value) { + let warned = false; + Object.defineProperty(node, deprecatedKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => value + : () => { + if (!warned) { + process.emitWarning(`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return value; + }, + set(value) { + Object.defineProperty(node, deprecatedKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + assertModuleSpecifier(node, allowNull) { + if (!allowNull && node.moduleSpecifier == null) { + this.#throwUnlessAllowInvalidAST(node, 'Module specifier must be a string literal.'); + } + if (node.moduleSpecifier && + node.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwUnlessAllowInvalidAST(node.moduleSpecifier, 'Module specifier must be a string literal.'); + } + } + convertBindingNameWithTypeAnnotation(name, tsType, parent) { + const id = this.convertPattern(name); + if (tsType) { + id.typeAnnotation = this.convertTypeAnnotation(tsType, parent); + this.fixParentLocation(id, id.typeAnnotation.range); + } + return id; + } + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + convertBodyExpressions(nodes, parent) { + let allowDirectives = (0, node_utils_1.canContainDirective)(parent); + return (nodes + .map(statement => { + const child = this.convertChild(statement); + if (allowDirectives) { + if (child?.expression && + ts.isExpressionStatement(statement) && + ts.isStringLiteral(statement.expression)) { + const raw = child.expression.raw; + child.directive = raw.slice(1, -1); + return child; // child can be null, but it's filtered below + } + allowDirectives = false; + } + return child; // child can be null, but it's filtered below + }) + // filter out unknown nodes for now + .filter(statement => statement)); + } + convertChainExpression(node, tsNode) { + const { child, isOptional } = (() => { + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + return { child: node.object, isOptional: node.optional }; + } + if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + return { child: node.callee, isOptional: node.optional }; + } + return { child: node.expression, isOptional: false }; + })(); + const isChildUnwrappable = (0, node_utils_1.isChildUnwrappableOptionalChain)(tsNode, child); + if (!isChildUnwrappable && !isOptional) { + return node; + } + if (isChildUnwrappable && (0, node_utils_1.isChainExpression)(child)) { + // unwrap the chain expression child + const newChild = child.expression; + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + node.object = newChild; + } + else if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + node.callee = newChild; + } + else { + node.expression = newChild; + } + } + return this.createNode(tsNode, { + type: ts_estree_1.AST_NODE_TYPES.ChainExpression, + expression: node, + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertChild(child, parent) { + return this.converter(child, parent, false); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertPattern(child, parent) { + return this.converter(child, parent, true); + } + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + convertTypeAnnotation(child, parent) { + // in FunctionType and ConstructorType typeAnnotation has 2 characters `=>` and in other places is just colon + const offset = parent?.kind === SyntaxKind.FunctionType || + parent?.kind === SyntaxKind.ConstructorType + ? 2 + : 1; + const annotationStartCol = child.getFullStart() - offset; + const range = [annotationStartCol, child.end]; + const loc = (0, node_utils_1.getLocFor)(range, this.ast); + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAnnotation, + loc, + range, + typeAnnotation: this.convertChild(child), + }; + } + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + convertTypeArgumentsToTypeParameterInstantiation(typeArguments, node) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeArguments, this.ast, this.ast); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterInstantiation, + range: [typeArguments.pos - 1, greaterThanToken.end], + params: typeArguments.map(typeArgument => this.convertChild(typeArgument)), + }); + } + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + convertTSTypeParametersToTypeParametersDeclaration(typeParameters) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeParameters, this.ast, this.ast); + const range = [ + typeParameters.pos - 1, + greaterThanToken.end, + ]; + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterDeclaration, + loc: (0, node_utils_1.getLocFor)(range, this.ast), + range, + params: typeParameters.map(typeParameter => this.convertChild(typeParameter)), + }; + } + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + convertParameters(parameters) { + if (!parameters?.length) { + return []; + } + return parameters.map(param => { + const convertedParam = this.convertChild(param); + convertedParam.decorators = + (0, getModifiers_1.getDecorators)(param)?.map(el => this.convertChild(el)) ?? []; + return convertedParam; + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + converter(node, parent, allowPattern) { + /** + * Exit early for null and undefined + */ + if (!node) { + return null; + } + this.#checkModifiers(node); + const pattern = this.allowPattern; + if (allowPattern !== undefined) { + this.allowPattern = allowPattern; + } + const result = this.convertNode(node, (parent ?? node.parent)); + this.registerTSNodeInNodeMap(node, result); + this.allowPattern = pattern; + return result; + } + convertImportAttributes(node) { + return node === undefined + ? [] + : node.elements.map(element => this.convertChild(element)); + } + convertJSXIdentifier(node) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.getText(), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertJSXNamespaceOrIdentifier(node) { + // TypeScript@5.1 added in ts.JsxNamespacedName directly + // We prefer using that if it's relevant for this node type + if (node.kind === ts.SyntaxKind.JsxNamespacedName) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + name: this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.name.text, + }), + namespace: this.createNode(node.namespace, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.namespace.text, + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + // TypeScript@<5.1 has to manually parse the JSX attributes + const text = node.getText(); + const colonIndex = text.indexOf(':'); + // this is intentional we can ignore conversion if `:` is in first character + if (colonIndex > 0) { + const range = (0, node_utils_1.getRange)(node, this.ast); + // @ts-expect-error -- TypeScript@<5.1 doesn't have ts.JsxNamespacedName + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + range, + name: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0] + colonIndex + 1, range[1]], + name: text.slice(colonIndex + 1), + }), + namespace: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0], range[0] + colonIndex], + name: text.slice(0, colonIndex), + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + return this.convertJSXIdentifier(node); + } + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + convertJSXTagName(node, parent) { + let result; + switch (node.kind) { + case SyntaxKind.PropertyAccessExpression: + if (node.name.kind === SyntaxKind.PrivateIdentifier) { + // This is one of the few times where TS explicitly errors, and doesn't even gracefully handle the syntax. + // So we shouldn't ever get into this state to begin with. + this.#throwError(node.name, 'Non-private identifier expected.'); + } + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXMemberExpression, + object: this.convertJSXTagName(node.expression, parent), + property: this.convertJSXIdentifier(node.name), + }); + break; + case SyntaxKind.ThisKeyword: + case SyntaxKind.Identifier: + default: + return this.convertJSXNamespaceOrIdentifier(node); + } + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertMethodSignature(node) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSMethodSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: (() => { + switch (node.kind) { + case SyntaxKind.GetAccessor: + return 'get'; + case SyntaxKind.SetAccessor: + return 'set'; + case SyntaxKind.MethodSignature: + return 'method'; + } + })(), + optional: (0, node_utils_1.isOptional)(node), + params: this.convertParameters(node.parameters), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + fixParentLocation(result, childRange) { + if (childRange[0] < result.range[0]) { + result.range[0] = childRange[0]; + result.loc.start = (0, node_utils_1.getLineAndCharacterFor)(result.range[0], this.ast); + } + if (childRange[1] > result.range[1]) { + result.range[1] = childRange[1]; + result.loc.end = (0, node_utils_1.getLineAndCharacterFor)(result.range[1], this.ast); + } + } + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + convertNode(node, parent) { + switch (node.kind) { + case SyntaxKind.SourceFile: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Program, + range: [node.getStart(this.ast), node.endOfFileToken.end], + body: this.convertBodyExpressions(node.statements, node), + comments: undefined, + sourceType: node.externalModuleIndicator ? 'module' : 'script', + tokens: undefined, + }); + } + case SyntaxKind.Block: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BlockStatement, + body: this.convertBodyExpressions(node.statements, node), + }); + } + case SyntaxKind.Identifier: { + if ((0, node_utils_1.isThisInTypeQuery)(node)) { + // special case for `typeof this.foo` - TS emits an Identifier for `this` + // but we want to treat it as a ThisExpression for consistency + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: node.text, + optional: false, + typeAnnotation: undefined, + }); + } + case SyntaxKind.PrivateIdentifier: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.PrivateIdentifier, + // typescript includes the `#` in the text + name: node.text.slice(1), + }); + } + case SyntaxKind.WithStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WithStatement, + body: this.convertChild(node.statement), + object: this.convertChild(node.expression), + }); + // Control Flow + case SyntaxKind.ReturnStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ReturnStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.LabeledStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.LabeledStatement, + body: this.convertChild(node.statement), + label: this.convertChild(node.label), + }); + case SyntaxKind.ContinueStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ContinueStatement, + label: this.convertChild(node.label), + }); + case SyntaxKind.BreakStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BreakStatement, + label: this.convertChild(node.label), + }); + // Choice + case SyntaxKind.IfStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.IfStatement, + alternate: this.convertChild(node.elseStatement), + consequent: this.convertChild(node.thenStatement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.SwitchStatement: + if (node.caseBlock.clauses.filter(switchCase => switchCase.kind === SyntaxKind.DefaultClause).length > 1) { + this.#throwError(node, "A 'default' clause cannot appear more than once in a 'switch' statement."); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchStatement, + cases: node.caseBlock.clauses.map(el => this.convertChild(el)), + discriminant: this.convertChild(node.expression), + }); + case SyntaxKind.CaseClause: + case SyntaxKind.DefaultClause: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchCase, + // expression is present in case only + consequent: node.statements.map(el => this.convertChild(el)), + test: node.kind === SyntaxKind.CaseClause + ? this.convertChild(node.expression) + : null, + }); + // Exceptions + case SyntaxKind.ThrowStatement: + if (node.expression.end === node.expression.pos) { + this.#throwUnlessAllowInvalidAST(node, 'A throw statement must throw an expression.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThrowStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.TryStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TryStatement, + block: this.convertChild(node.tryBlock), + finalizer: this.convertChild(node.finallyBlock), + handler: this.convertChild(node.catchClause), + }); + case SyntaxKind.CatchClause: + if (node.variableDeclaration?.initializer) { + this.#throwError(node.variableDeclaration.initializer, 'Catch clause variable cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CatchClause, + body: this.convertChild(node.block), + param: node.variableDeclaration + ? this.convertBindingNameWithTypeAnnotation(node.variableDeclaration.name, node.variableDeclaration.type) + : null, + }); + // Loops + case SyntaxKind.WhileStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + /** + * Unlike other parsers, TypeScript calls a "DoWhileStatement" + * a "DoStatement" + */ + case SyntaxKind.DoStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DoWhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.ForStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForStatement, + body: this.convertChild(node.statement), + init: this.convertChild(node.initializer), + test: this.convertChild(node.condition), + update: this.convertChild(node.incrementor), + }); + case SyntaxKind.ForInStatement: + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForInStatement, + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + case SyntaxKind.ForOfStatement: { + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForOfStatement, + await: Boolean(node.awaitModifier && + node.awaitModifier.kind === SyntaxKind.AwaitKeyword), + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + } + // Declarations + case SyntaxKind.FunctionDeclaration: { + const isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const isAsync = (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node); + const isGenerator = !!node.asteriskToken; + if (isDeclare) { + if (node.body) { + this.#throwError(node, 'An implementation cannot be declared in ambient contexts.'); + } + else if (isAsync) { + this.#throwError(node, "'async' modifier cannot be used in an ambient context."); + } + else if (isGenerator) { + this.#throwError(node, 'Generators are not allowed in an ambient context.'); + } + } + else if (!node.body && isGenerator) { + this.#throwError(node, 'A function signature cannot be declared as a generator.'); + } + const result = this.createNode(node, { + // declare implies no body due to the invariant above + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSDeclareFunction + : ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, + async: isAsync, + body: this.convertChild(node.body) || undefined, + declare: isDeclare, + expression: false, + generator: isGenerator, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.VariableDeclaration: { + const definite = !!node.exclamationToken; + const init = this.convertChild(node.initializer); + const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node); + if (definite) { + if (init) { + this.#throwError(node, 'Declarations with initializers cannot also have definite assignment assertions.'); + } + else if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier || + !id.typeAnnotation) { + this.#throwError(node, 'Declarations with definite assignment assertions must also have type annotations.'); + } + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator, + definite, + id, + init, + }); + } + case SyntaxKind.VariableStatement: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarationList.declarations.map(el => this.convertChild(el)), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + kind: (0, node_utils_1.getDeclarationKind)(node.declarationList), + }); + if (!result.declarations.length) { + this.#throwUnlessAllowInvalidAST(node, 'A variable declaration list must have at least one variable declarator.'); + } + if (result.kind === 'using' || result.kind === 'await using') { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init == null) { + this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + // Definite assignment only allowed for non-declare let and var + if (result.declare || + ['await using', 'const', 'using'].includes(result.kind)) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].definite) { + this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`); + } + }); + } + if (result.declare) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init && + (['let', 'var'].includes(result.kind) || + result.declarations[i].id.typeAnnotation)) { + this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`); + } + }); + // Theoretically, only certain initializers are allowed for declare const, + // (TS1254: A 'const' initializer in an ambient context must be a string + // or numeric literal or literal enum reference.) but we just allow + // all expressions + } + // Note! No-declare does not mean the variable is not ambient, because + // it can be further nested in other declare contexts. Therefore we cannot + // check for const initializers. + /** + * Semantically, decorators are not allowed on variable declarations, + * Pre 4.8 TS would include them in the AST, so we did as well. + * However as of 4.8 TS no longer includes it (as it is, well, invalid). + * + * So for consistency across versions, we no longer include it either. + */ + return this.fixExports(node, result); + } + // mostly for for-of, for-in + case SyntaxKind.VariableDeclarationList: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarations.map(el => this.convertChild(el)), + declare: false, + kind: (0, node_utils_1.getDeclarationKind)(node), + }); + if (result.kind === 'using' || result.kind === 'await using') { + node.declarations.forEach((declaration, i) => { + if (result.declarations[i].init != null) { + this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + return result; + } + // Expressions + case SyntaxKind.ExpressionStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExpressionStatement, + directive: undefined, + expression: this.convertChild(node.expression), + }); + case SyntaxKind.ThisKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + case SyntaxKind.ArrayLiteralExpression: { + // TypeScript uses ArrayLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, + elements: node.elements.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ObjectLiteralExpression: { + // TypeScript uses ObjectLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.properties.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + } + const properties = []; + for (const property of node.properties) { + if ((property.kind === SyntaxKind.GetAccessor || + property.kind === SyntaxKind.SetAccessor || + property.kind === SyntaxKind.MethodDeclaration) && + !property.body) { + this.#throwUnlessAllowInvalidAST(property.end - 1, "'{' expected."); + } + properties.push(this.convertChild(property)); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectExpression, + properties, + }); + } + case SyntaxKind.PropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, questionToken } = node; + if (questionToken) { + this.#throwError(questionToken, 'A property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A property assignment cannot have an exclamation token.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: false, + value: this.converter(node.initializer, node, this.allowPattern), + }); + } + case SyntaxKind.ShorthandPropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, modifiers, questionToken } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A shorthand property assignment cannot have modifiers.'); + } + if (questionToken) { + this.#throwError(questionToken, 'A shorthand property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A shorthand property assignment cannot have an exclamation token.'); + } + if (node.objectAssignmentInitializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.name), + optional: false, + right: this.convertChild(node.objectAssignmentInitializer), + typeAnnotation: undefined, + }), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.convertChild(node.name), + }); + } + case SyntaxKind.ComputedPropertyName: + return this.convertChild(node.expression); + case SyntaxKind.PropertyDeclaration: { + const isAbstract = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node); + if (isAbstract && node.initializer) { + this.#throwError(node.initializer, `Abstract property cannot have an initializer.`); + } + const isAccessor = (0, node_utils_1.hasModifier)(SyntaxKind.AccessorKeyword, node); + const type = (() => { + if (isAccessor) { + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractAccessorProperty; + } + return ts_estree_1.AST_NODE_TYPES.AccessorProperty; + } + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition; + } + return ts_estree_1.AST_NODE_TYPES.PropertyDefinition; + })(); + const key = this.convertChild(node.name); + return this.createNode(node, { + type, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + definite: !!node.exclamationToken, + key, + optional: (key.type === ts_estree_1.AST_NODE_TYPES.Literal || + node.name.kind === SyntaxKind.Identifier || + node.name.kind === SyntaxKind.ComputedPropertyName || + node.name.kind === SyntaxKind.PrivateIdentifier) && + !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + value: isAbstract ? null : this.convertChild(node.initializer), + }); + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: { + if (node.parent.kind === SyntaxKind.InterfaceDeclaration || + node.parent.kind === SyntaxKind.TypeLiteral) { + return this.convertMethodSignature(node); + } + } + // otherwise, it is a non-type accessor - intentional fallthrough + case SyntaxKind.MethodDeclaration: { + const method = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, // ESTreeNode as ESTreeNode here + generator: !!node.asteriskToken, + id: null, + params: [], + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (method.typeParameters) { + this.fixParentLocation(method, method.typeParameters.range); + } + let result; + if (parent.kind === SyntaxKind.ObjectLiteralExpression) { + method.params = node.parameters.map(el => this.convertChild(el)); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: node.kind === SyntaxKind.MethodDeclaration, + optional: !!node.questionToken, + shorthand: false, + value: method, + }); + } + else { + // class + /** + * Unlike in object literal methods, class method params can have decorators + */ + method.params = this.convertParameters(node.parameters); + /** + * TypeScript class methods can be defined as "abstract" + */ + const methodDefinitionType = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition; + result = this.createNode(node, { + type: methodDefinitionType, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + key: this.convertChild(node.name), + kind: 'method', + optional: !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + value: method, + }); + } + if (node.kind === SyntaxKind.GetAccessor) { + result.kind = 'get'; + } + else if (node.kind === SyntaxKind.SetAccessor) { + result.kind = 'set'; + } + else if (!result.static && + node.name.kind === SyntaxKind.StringLiteral && + node.name.text === 'constructor' && + result.type !== ts_estree_1.AST_NODE_TYPES.Property) { + result.kind = 'constructor'; + } + return result; + } + // TypeScript uses this even for static methods named "constructor" + case SyntaxKind.Constructor: { + const lastModifier = (0, node_utils_1.getLastModifier)(node); + const constructorToken = (lastModifier && (0, node_utils_1.findNextToken)(lastModifier, node, this.ast)) ?? + node.getFirstToken(); + const constructor = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: false, + body: this.convertChild(node.body), + declare: false, + expression: false, // is not present in ESTreeNode + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (constructor.typeParameters) { + this.fixParentLocation(constructor, constructor.typeParameters.range); + } + const constructorKey = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [constructorToken.getStart(this.ast), constructorToken.end], + decorators: [], + name: 'constructor', + optional: false, + typeAnnotation: undefined, + }); + const isStatic = (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node); + return this.createNode(node, { + type: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: false, + decorators: [], + key: constructorKey, + kind: isStatic ? 'method' : 'constructor', + optional: false, + override: false, + static: isStatic, + value: constructor, + }); + } + case SyntaxKind.FunctionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.FunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, + generator: !!node.asteriskToken, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.SuperKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Super, + }); + case SyntaxKind.ArrayBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + // occurs with missing array elements like [,] + case SyntaxKind.OmittedExpression: + return null; + case SyntaxKind.ObjectBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.elements.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + case SyntaxKind.BindingElement: { + if (parent.kind === SyntaxKind.ArrayBindingPattern) { + const arrayItem = this.convertChild(node.name, parent); + if (node.initializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: arrayItem, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: arrayItem, + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return arrayItem; + } + let result; + if (node.dotDotDotToken) { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.propertyName ?? node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: Boolean(node.propertyName && + node.propertyName.kind === SyntaxKind.ComputedPropertyName), + key: this.convertChild(node.propertyName ?? node.name), + kind: 'init', + method: false, + optional: false, + shorthand: !node.propertyName, + value: this.convertChild(node.name), + }); + } + if (node.initializer) { + result.value = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + range: [node.name.getStart(this.ast), node.initializer.end], + decorators: [], + left: this.convertChild(node.name), + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + return result; + } + case SyntaxKind.ArrowFunction: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + expression: node.body.kind !== SyntaxKind.Block, + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.YieldExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.YieldExpression, + argument: this.convertChild(node.expression), + delegate: !!node.asteriskToken, + }); + case SyntaxKind.AwaitExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AwaitExpression, + argument: this.convertChild(node.expression), + }); + // Template Literals + case SyntaxKind.NoSubstitutionTemplateLiteral: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [ + this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail: true, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - 1), + }, + }), + ], + }); + case SyntaxKind.TemplateExpression: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [this.convertChild(node.head)], + }); + node.templateSpans.forEach(templateSpan => { + result.expressions.push(this.convertChild(templateSpan.expression)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.TaggedTemplateExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TaggedTemplateExpression, + quasi: this.convertChild(node.template), + tag: this.convertChild(node.tag), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.TemplateHead: + case SyntaxKind.TemplateMiddle: + case SyntaxKind.TemplateTail: { + const tail = node.kind === SyntaxKind.TemplateTail; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - (tail ? 1 : 2)), + }, + }); + } + // Patterns + case SyntaxKind.SpreadAssignment: + case SyntaxKind.SpreadElement: { + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertPattern(node.expression), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SpreadElement, + argument: this.convertChild(node.expression), + }); + } + case SyntaxKind.Parameter: { + let parameter; + let result; + if (node.dotDotDotToken) { + parameter = result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else if (node.initializer) { + parameter = this.convertChild(node.name); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: parameter, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + // AssignmentPattern should not contain modifiers in range + result.range[0] = parameter.range[0]; + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + } + } + else { + parameter = result = this.convertChild(node.name, parent); + } + if (node.type) { + parameter.typeAnnotation = this.convertTypeAnnotation(node.type, node); + this.fixParentLocation(parameter, parameter.typeAnnotation.range); + } + if (node.questionToken) { + if (node.questionToken.end > parameter.range[1]) { + parameter.range[1] = node.questionToken.end; + parameter.loc.end = (0, node_utils_1.getLineAndCharacterFor)(parameter.range[1], this.ast); + } + parameter.optional = true; + } + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSParameterProperty, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + decorators: [], + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + parameter: result, + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + }); + } + return result; + } + // Classes + case SyntaxKind.ClassDeclaration: + if (!node.name && + (!(0, node_utils_1.hasModifier)(ts.SyntaxKind.ExportKeyword, node) || + !(0, node_utils_1.hasModifier)(ts.SyntaxKind.DefaultKeyword, node))) { + this.#throwUnlessAllowInvalidAST(node, "A class declaration without the 'default' modifier must have a name."); + } + /* intentional fallthrough */ + case SyntaxKind.ClassExpression: { + const heritageClauses = node.heritageClauses ?? []; + const classNodeType = node.kind === SyntaxKind.ClassDeclaration + ? ts_estree_1.AST_NODE_TYPES.ClassDeclaration + : ts_estree_1.AST_NODE_TYPES.ClassExpression; + let extendsClause; + let implementsClause; + for (const heritageClause of heritageClauses) { + const { token, types } = heritageClause; + if (types.length === 0) { + this.#throwUnlessAllowInvalidAST(heritageClause, `'${ts.tokenToString(token)}' list cannot be empty.`); + } + if (token === SyntaxKind.ExtendsKeyword) { + if (extendsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause already seen."); + } + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause must precede 'implements' clause."); + } + if (types.length > 1) { + this.#throwUnlessAllowInvalidAST(types[1], 'Classes can only extend a single class.'); + } + extendsClause ??= heritageClause; + } + else if (token === SyntaxKind.ImplementsKeyword) { + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'implements' clause already seen."); + } + implementsClause ??= heritageClause; + } + } + const result = this.createNode(node, { + type: classNodeType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ClassBody, + range: [node.members.pos - 1, node.end], + body: node.members + .filter(node_utils_1.isESTreeClassMember) + .map(el => this.convertChild(el)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + id: this.convertChild(node.name), + implements: implementsClause?.types.map(el => this.convertChild(el)) ?? [], + superClass: extendsClause?.types[0] + ? this.convertChild(extendsClause.types[0].expression) + : null, + superTypeArguments: undefined, + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (extendsClause?.types[0]?.typeArguments) { + result.superTypeArguments = + this.convertTypeArgumentsToTypeParameterInstantiation(extendsClause.types[0].typeArguments, extendsClause.types[0]); + } + return this.fixExports(node, result); + } + // Modules + case SyntaxKind.ModuleBlock: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleBlock, + body: this.convertBodyExpressions(node.statements, node), + }); + case SyntaxKind.ImportDeclaration: { + this.assertModuleSpecifier(node, false); + const result = this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + importKind: 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: [], + }, 'assertions', 'attributes', true)); + if (node.importClause) { + if (node.importClause.isTypeOnly) { + result.importKind = 'type'; + } + if (node.importClause.name) { + result.specifiers.push(this.convertChild(node.importClause)); + } + if (node.importClause.namedBindings) { + switch (node.importClause.namedBindings.kind) { + case SyntaxKind.NamespaceImport: + result.specifiers.push(this.convertChild(node.importClause.namedBindings)); + break; + case SyntaxKind.NamedImports: + result.specifiers.push(...node.importClause.namedBindings.elements.map(el => this.convertChild(el))); + break; + } + } + } + return result; + } + case SyntaxKind.NamespaceImport: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportNamespaceSpecifier, + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportSpecifier: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportSpecifier, + imported: this.convertChild(node.propertyName ?? node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportClause: { + const local = this.convertChild(node.name); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportDefaultSpecifier, + range: local.range, + local, + }); + } + case SyntaxKind.ExportDeclaration: { + if (node.exportClause?.kind === SyntaxKind.NamedExports) { + this.assertModuleSpecifier(node, true); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + declaration: null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: node.exportClause.elements.map(el => this.convertChild(el, node)), + }, 'assertions', 'attributes', true)); + } + this.assertModuleSpecifier(node, false); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + exported: node.exportClause?.kind === SyntaxKind.NamespaceExport + ? this.convertChild(node.exportClause.name) + : null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + }, 'assertions', 'attributes', true)); + } + case SyntaxKind.ExportSpecifier: { + const local = node.propertyName ?? node.name; + if (local.kind === SyntaxKind.StringLiteral && + parent.kind === SyntaxKind.ExportDeclaration && + parent.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwError(local, 'A string literal cannot be used as a local exported binding without `from`.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportSpecifier, + exported: this.convertChild(node.name), + exportKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(local), + }); + } + case SyntaxKind.ExportAssignment: + if (node.isExportEquals) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExportAssignment, + expression: this.convertChild(node.expression), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + declaration: this.convertChild(node.expression), + exportKind: 'value', + }); + // Unary Operations + case SyntaxKind.PrefixUnaryExpression: + case SyntaxKind.PostfixUnaryExpression: { + const operator = (0, node_utils_1.getTextForTokenKind)(node.operator); + /** + * ESTree uses UpdateExpression for ++/-- + */ + if (operator === '++' || operator === '--') { + if (!(0, node_utils_1.isValidAssignmentTarget)(node.operand)) { + this.#throwUnlessAllowInvalidAST(node.operand, 'Invalid left-hand side expression in unary operation'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UpdateExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + case SyntaxKind.DeleteExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'delete', + prefix: true, + }); + case SyntaxKind.VoidExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'void', + prefix: true, + }); + case SyntaxKind.TypeOfExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'typeof', + prefix: true, + }); + case SyntaxKind.TypeOperator: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeOperator, + operator: (0, node_utils_1.getTextForTokenKind)(node.operator), + typeAnnotation: this.convertChild(node.type), + }); + // Binary Operations + case SyntaxKind.BinaryExpression: { + // TypeScript uses BinaryExpression for sequences as well + if ((0, node_utils_1.isComma)(node.operatorToken)) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SequenceExpression, + expressions: [], + }); + const left = this.convertChild(node.left); + if (left.type === ts_estree_1.AST_NODE_TYPES.SequenceExpression && + node.left.kind !== SyntaxKind.ParenthesizedExpression) { + result.expressions.push(...left.expressions); + } + else { + result.expressions.push(left); + } + result.expressions.push(this.convertChild(node.right)); + return result; + } + const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); + if (this.allowPattern && + expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.left, node), + optional: false, + right: this.convertChild(node.right), + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + ...expressionType, + left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), + right: this.convertChild(node.right), + }); + } + case SyntaxKind.PropertyAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.name); + const computed = false; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.ElementAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.argumentExpression); + const computed = true; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.CallExpression: { + if (node.expression.kind === SyntaxKind.ImportKeyword) { + if (node.arguments.length !== 1 && node.arguments.length !== 2) { + this.#throwUnlessAllowInvalidAST(node.arguments[2] ?? node, 'Dynamic import requires exactly one or two arguments.'); + } + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportExpression, + options: node.arguments[1] + ? this.convertChild(node.arguments[1]) + : null, + source: this.convertChild(node.arguments[0]), + }, 'attributes', 'options', true)); + } + const callee = this.convertChild(node.expression); + const args = node.arguments.map(el => this.convertChild(el)); + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CallExpression, + arguments: args, + callee, + optional: node.questionDotToken !== undefined, + typeArguments, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.NewExpression: { + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + // NOTE - NewExpression cannot have an optional chain in it + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.NewExpression, + arguments: node.arguments + ? node.arguments.map(el => this.convertChild(el)) + : [], + callee: this.convertChild(node.expression), + typeArguments, + }); + } + case SyntaxKind.ConditionalExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ConditionalExpression, + alternate: this.convertChild(node.whenFalse), + consequent: this.convertChild(node.whenTrue), + test: this.convertChild(node.condition), + }); + case SyntaxKind.MetaProperty: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MetaProperty, + meta: this.createNode( + // TODO: do we really want to convert it to Token? + node.getFirstToken(), { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: (0, node_utils_1.getTextForTokenKind)(node.keywordToken), + optional: false, + typeAnnotation: undefined, + }), + property: this.convertChild(node.name), + }); + } + case SyntaxKind.Decorator: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Decorator, + expression: this.convertChild(node.expression), + }); + } + // Literals + case SyntaxKind.StringLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: parent.kind === SyntaxKind.JsxAttribute + ? (0, node_utils_1.unescapeStringLiteralText)(node.text) + : node.text, + }); + } + case SyntaxKind.NumericLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: Number(node.text), + }); + } + case SyntaxKind.BigIntLiteral: { + const range = (0, node_utils_1.getRange)(node, this.ast); + const rawValue = this.ast.text.slice(range[0], range[1]); + const bigint = rawValue + // remove suffix `n` + .slice(0, -1) + // `BigInt` doesn't accept numeric separator + // and `bigint` property should not include numeric separator + .replaceAll('_', ''); + const value = typeof BigInt !== 'undefined' ? BigInt(bigint) : null; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + range, + bigint: value == null ? bigint : String(value), + raw: rawValue, + value, + }); + } + case SyntaxKind.RegularExpressionLiteral: { + const pattern = node.text.slice(1, node.text.lastIndexOf('/')); + const flags = node.text.slice(node.text.lastIndexOf('/') + 1); + let regex = null; + try { + regex = new RegExp(pattern, flags); + } + catch { + // Intentionally blank, so regex stays null + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.text, + regex: { + flags, + pattern, + }, + value: regex, + }); + } + case SyntaxKind.TrueKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'true', + value: true, + }); + case SyntaxKind.FalseKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'false', + value: false, + }); + case SyntaxKind.NullKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'null', + value: null, + }); + } + case SyntaxKind.EmptyStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.EmptyStatement, + }); + case SyntaxKind.DebuggerStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DebuggerStatement, + }); + // JSX + case SyntaxKind.JsxElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + children: node.children.map(el => this.convertChild(el)), + closingElement: this.convertChild(node.closingElement), + openingElement: this.convertChild(node.openingElement), + }); + case SyntaxKind.JsxFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXFragment, + children: node.children.map(el => this.convertChild(el)), + closingFragment: this.convertChild(node.closingFragment), + openingFragment: this.convertChild(node.openingFragment), + }); + case SyntaxKind.JsxSelfClosingElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + /** + * Convert SyntaxKind.JsxSelfClosingElement to SyntaxKind.JsxOpeningElement, + * TypeScript does not seem to have the idea of openingElement when tag is self-closing + */ + children: [], + closingElement: null, + openingElement: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + range: (0, node_utils_1.getRange)(node, this.ast), + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: true, + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : undefined, + }), + }); + } + case SyntaxKind.JsxOpeningElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: false, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.JsxClosingElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingElement, + name: this.convertJSXTagName(node.tagName, node), + }); + case SyntaxKind.JsxOpeningFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningFragment, + }); + case SyntaxKind.JsxClosingFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingFragment, + }); + case SyntaxKind.JsxExpression: { + const expression = node.expression + ? this.convertChild(node.expression) + : this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXEmptyExpression, + range: [node.getStart(this.ast) + 1, node.getEnd() - 1], + }); + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadChild, + expression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, + expression, + }); + } + case SyntaxKind.JsxAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXAttribute, + name: this.convertJSXNamespaceOrIdentifier(node.name), + value: this.convertChild(node.initializer), + }); + } + case SyntaxKind.JsxText: { + const start = node.getFullStart(); + const end = node.getEnd(); + const text = this.ast.text.slice(start, end); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXText, + range: [start, end], + raw: text, + value: (0, node_utils_1.unescapeStringLiteralText)(text), + }); + } + case SyntaxKind.JsxSpreadAttribute: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadAttribute, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.QualifiedName: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + left: this.convertChild(node.left), + right: this.convertChild(node.right), + }); + } + // TypeScript specific + case SyntaxKind.TypeReference: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeReference, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + typeName: this.convertChild(node.typeName), + }); + case SyntaxKind.TypeParameter: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameter, + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + constraint: node.constraint && this.convertChild(node.constraint), + default: node.default ? this.convertChild(node.default) : undefined, + in: (0, node_utils_1.hasModifier)(SyntaxKind.InKeyword, node), + name: this.convertChild(node.name), + out: (0, node_utils_1.hasModifier)(SyntaxKind.OutKeyword, node), + }); + } + case SyntaxKind.ThisType: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSThisType, + }); + case SyntaxKind.AnyKeyword: + case SyntaxKind.BigIntKeyword: + case SyntaxKind.BooleanKeyword: + case SyntaxKind.NeverKeyword: + case SyntaxKind.NumberKeyword: + case SyntaxKind.ObjectKeyword: + case SyntaxKind.StringKeyword: + case SyntaxKind.SymbolKeyword: + case SyntaxKind.UnknownKeyword: + case SyntaxKind.VoidKeyword: + case SyntaxKind.UndefinedKeyword: + case SyntaxKind.IntrinsicKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`], + }); + } + case SyntaxKind.NonNullExpression: { + const nnExpr = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNonNullExpression, + expression: this.convertChild(node.expression), + }); + return this.convertChainExpression(nnExpr, node); + } + case SyntaxKind.TypeLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeLiteral, + members: node.members.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ArrayType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSArrayType, + elementType: this.convertChild(node.elementType), + }); + } + case SyntaxKind.IndexedAccessType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexedAccessType, + indexType: this.convertChild(node.indexType), + objectType: this.convertChild(node.objectType), + }); + } + case SyntaxKind.ConditionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConditionalType, + checkType: this.convertChild(node.checkType), + extendsType: this.convertChild(node.extendsType), + falseType: this.convertChild(node.falseType), + trueType: this.convertChild(node.trueType), + }); + } + case SyntaxKind.TypeQuery: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: this.convertChild(node.exprName), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.MappedType: { + if (node.members && node.members.length > 0) { + this.#throwUnlessAllowInvalidAST(node.members[0], 'A mapped type may not declare properties or methods.'); + } + return this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSMappedType, + constraint: this.convertChild(node.typeParameter.constraint), + key: this.convertChild(node.typeParameter.name), + nameType: this.convertChild(node.nameType) ?? null, + optional: node.questionToken && + (node.questionToken.kind === SyntaxKind.QuestionToken || + (0, node_utils_1.getTextForTokenKind)(node.questionToken.kind)), + readonly: node.readonlyToken && + (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword || + (0, node_utils_1.getTextForTokenKind)(node.readonlyToken.kind)), + typeAnnotation: node.type && this.convertChild(node.type), + }, 'typeParameter', "'constraint' and 'key'", this.convertChild(node.typeParameter))); + } + case SyntaxKind.ParenthesizedExpression: + return this.convertChild(node.expression, parent); + case SyntaxKind.TypeAliasDeclaration: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration, + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + typeAnnotation: this.convertChild(node.type), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.MethodSignature: { + return this.convertMethodSignature(node); + } + case SyntaxKind.PropertySignature: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { initializer } = node; + if (initializer) { + this.#throwError(initializer, 'A property signature cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSPropertySignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + optional: (0, node_utils_1.isOptional)(node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.IndexSignature: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + parameters: node.parameters.map(el => this.convertChild(el)), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.ConstructorType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConstructorType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.FunctionType: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { modifiers } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A function type cannot have modifiers.'); + } + } + // intentional fallthrough + case SyntaxKind.ConstructSignature: + case SyntaxKind.CallSignature: { + const type = node.kind === SyntaxKind.ConstructSignature + ? ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration + : node.kind === SyntaxKind.CallSignature + ? ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration + : ts_estree_1.AST_NODE_TYPES.TSFunctionType; + return this.createNode(node, { + type, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.ExpressionWithTypeArguments: { + const parentKind = parent.kind; + const type = parentKind === SyntaxKind.InterfaceDeclaration + ? ts_estree_1.AST_NODE_TYPES.TSInterfaceHeritage + : parentKind === SyntaxKind.HeritageClause + ? ts_estree_1.AST_NODE_TYPES.TSClassImplements + : ts_estree_1.AST_NODE_TYPES.TSInstantiationExpression; + return this.createNode(node, { + type, + expression: this.convertChild(node.expression), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.InterfaceDeclaration: { + const interfaceHeritageClauses = node.heritageClauses ?? []; + const interfaceExtends = []; + for (const heritageClause of interfaceHeritageClauses) { + if (heritageClause.token !== SyntaxKind.ExtendsKeyword) { + this.#throwError(heritageClause, heritageClause.token === SyntaxKind.ImplementsKeyword + ? "Interface declaration cannot have 'implements' clause." + : 'Unexpected token.'); + } + for (const heritageType of heritageClause.types) { + interfaceExtends.push(this.convertChild(heritageType, node)); + } + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceBody, + range: [node.members.pos - 1, node.end], + body: node.members.map(member => this.convertChild(member)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + extends: interfaceExtends, + id: this.convertChild(node.name), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.TypePredicate: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypePredicate, + asserts: node.assertsModifier !== undefined, + parameterName: this.convertChild(node.parameterName), + typeAnnotation: null, + }); + /** + * Specific fix for type-guard location data + */ + if (node.type) { + result.typeAnnotation = this.convertTypeAnnotation(node.type, node); + result.typeAnnotation.loc = result.typeAnnotation.typeAnnotation.loc; + result.typeAnnotation.range = + result.typeAnnotation.typeAnnotation.range; + } + return result; + } + case SyntaxKind.ImportType: { + const range = (0, node_utils_1.getRange)(node, this.ast); + if (node.isTypeOf) { + const token = (0, node_utils_1.findNextToken)(node.getFirstToken(), node, this.ast); + range[0] = token.getStart(this.ast); + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportType, + range, + argument: this.convertChild(node.argument), + qualifier: this.convertChild(node.qualifier), + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null, + }); + if (node.isTypeOf) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: result, + typeArguments: undefined, + }); + } + return result; + } + case SyntaxKind.EnumDeclaration: { + const members = node.members.map(el => this.convertChild(el)); + const result = this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSEnumDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumBody, + range: [node.members.pos - 1, node.end], + members, + }), + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + }, 'members', `'body.members'`, node.members.map(el => this.convertChild(el)))); + return this.fixExports(node, result); + } + case SyntaxKind.EnumMember: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumMember, + computed: node.name.kind === ts.SyntaxKind.ComputedPropertyName, + id: this.convertChild(node.name), + initializer: node.initializer && this.convertChild(node.initializer), + }); + } + case SyntaxKind.ModuleDeclaration: { + let isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration, + ...(() => { + // the constraints checked by this function are syntactically enforced by TS + // the checks mostly exist for type's sake + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + const id = this.convertChild(node.name); + const body = this.convertChild(node.body); + if (body == null || + body.type === ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration) { + this.#throwUnlessAllowInvalidAST(node.body ?? node, 'Expected a valid module body'); + } + if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, 'global module augmentation must have an Identifier id'); + } + return { + body: body, + declare: false, + global: false, + id, + kind: 'global', + }; + } + if (!(node.flags & ts.NodeFlags.Namespace)) { + const body = this.convertChild(node.body); + return { + kind: 'module', + ...(body != null ? { body } : {}), + declare: false, + global: false, + id: this.convertChild(node.name), + }; + } + // Nested module declarations are stored in TypeScript as nested tree nodes. + // We "unravel" them here by making our own nested TSQualifiedName, + // with the innermost node's body as the actual node body. + if (node.body == null) { + this.#throwUnlessAllowInvalidAST(node, 'Expected a module body'); + } + if (node.name.kind !== ts.SyntaxKind.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, '`namespace`s must have an Identifier id'); + } + let name = this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [node.name.getStart(this.ast), node.name.getEnd()], + decorators: [], + name: node.name.text, + optional: false, + typeAnnotation: undefined, + }); + while (node.body && + ts.isModuleDeclaration(node.body) && + node.body.name) { + node = node.body; + isDeclare ||= (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const nextName = node.name; + const right = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [nextName.getStart(this.ast), nextName.getEnd()], + decorators: [], + name: nextName.text, + optional: false, + typeAnnotation: undefined, + }); + name = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + range: [name.range[0], right.range[1]], + left: name, + right, + }); + } + return { + body: this.convertChild(node.body), + declare: false, + global: false, + id: name, + kind: 'namespace', + }; + })(), + }); + result.declare = isDeclare; + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + result.global = true; + } + return this.fixExports(node, result); + } + // TypeScript specific types + case SyntaxKind.ParenthesizedType: { + return this.convertChild(node.type); + } + case SyntaxKind.UnionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSUnionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.IntersectionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIntersectionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.AsExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAsExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.InferType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInferType, + typeParameter: this.convertChild(node.typeParameter), + }); + } + case SyntaxKind.LiteralType: { + if (node.literal.kind === SyntaxKind.NullKeyword) { + // 4.0 started nesting null types inside a LiteralType node + // but our AST is designed around the old way of null being a keyword + return this.createNode(node.literal, { + type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, + literal: this.convertChild(node.literal), + }); + } + case SyntaxKind.TypeAssertionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.ImportEqualsDeclaration: { + return this.fixExports(node, this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportEqualsDeclaration, + id: this.convertChild(node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + moduleReference: this.convertChild(node.moduleReference), + })); + } + case SyntaxKind.ExternalModuleReference: { + if (node.expression.kind !== SyntaxKind.StringLiteral) { + this.#throwError(node.expression, 'String literal expected.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExternalModuleReference, + expression: this.convertChild(node.expression), + }); + } + case SyntaxKind.NamespaceExportDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamespaceExportDeclaration, + id: this.convertChild(node.name), + }); + } + case SyntaxKind.AbstractKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAbstractKeyword, + }); + } + // Tuple + case SyntaxKind.TupleType: { + const elementTypes = node.elements.map(el => this.convertChild(el)); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTupleType, + elementTypes, + }); + } + case SyntaxKind.NamedTupleMember: { + const member = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamedTupleMember, + elementType: this.convertChild(node.type, node), + label: this.convertChild(node.name, node), + optional: node.questionToken != null, + }); + if (node.dotDotDotToken) { + // adjust the start to account for the "..." + member.range[0] = member.label.range[0]; + member.loc.start = member.label.loc.start; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: member, + }); + } + return member; + } + case SyntaxKind.OptionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSOptionalType, + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.RestType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: this.convertChild(node.type), + }); + } + // Template Literal Types + case SyntaxKind.TemplateLiteralType: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTemplateLiteralType, + quasis: [this.convertChild(node.head)], + types: [], + }); + node.templateSpans.forEach(templateSpan => { + result.types.push(this.convertChild(templateSpan.type)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.ClassStaticBlockDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.StaticBlock, + body: this.convertBodyExpressions(node.body.statements, node), + }); + } + // eslint-disable-next-line @typescript-eslint/no-deprecated + case SyntaxKind.AssertEntry: + case SyntaxKind.ImportAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportAttribute, + key: this.convertChild(node.name), + value: this.convertChild(node.value), + }); + } + case SyntaxKind.SatisfiesExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSSatisfiesExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + default: + return this.deeplyCopy(node); + } + } + createNode( + // The 'parent' property will be added later if specified + node, data) { + const result = data; + result.range ??= (0, node_utils_1.getRange)(node, this.ast); + result.loc ??= (0, node_utils_1.getLocFor)(result.range, this.ast); + if (result && this.options.shouldPreserveNodeMaps) { + this.esTreeNodeToTSNodeMap.set(result, node); + } + return result; + } + convertProgram() { + return this.converter(this.ast); + } + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + deeplyCopy(node) { + if (node.kind === ts.SyntaxKind.JSDocFunctionType) { + this.#throwError(node, 'JSDoc types can only be used inside documentation comments.'); + } + const customType = `TS${SyntaxKind[node.kind]}`; + /** + * If the "errorOnUnknownASTType" option is set to true, throw an error, + * otherwise fallback to just including the unknown type as-is. + */ + if (this.options.errorOnUnknownASTType && !ts_estree_1.AST_NODE_TYPES[customType]) { + throw new Error(`Unknown AST_NODE_TYPE: "${customType}"`); + } + const result = this.createNode(node, { + type: customType, + }); + if ('type' in node) { + result.typeAnnotation = + node.type && 'kind' in node.type && ts.isTypeNode(node.type) + ? this.convertTypeAnnotation(node.type, node) + : null; + } + if ('typeArguments' in node) { + result.typeArguments = + node.typeArguments && 'pos' in node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null; + } + if ('typeParameters' in node) { + result.typeParameters = + node.typeParameters && 'pos' in node.typeParameters + ? this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters) + : null; + } + const decorators = (0, getModifiers_1.getDecorators)(node); + if (decorators?.length) { + result.decorators = decorators.map(el => this.convertChild(el)); + } + // keys we never want to clone from the base typescript node as they + // introduce garbage into our AST + const KEYS_TO_NOT_COPY = new Set([ + '_children', + 'decorators', + 'end', + 'flags', + 'heritageClauses', + 'illegalDecorators', + 'jsDoc', + 'kind', + 'locals', + 'localSymbol', + 'modifierFlagsCache', + 'modifiers', + 'nextContainer', + 'parent', + 'pos', + 'symbol', + 'transformFlags', + 'type', + 'typeArguments', + 'typeParameters', + ]); + Object.entries(node) + .filter(([key]) => !KEYS_TO_NOT_COPY.has(key)) + .forEach(([key, value]) => { + if (Array.isArray(value)) { + result[key] = value.map(el => this.convertChild(el)); + } + else if (value && typeof value === 'object' && value.kind) { + // need to check node[key].kind to ensure we don't try to convert a symbol + result[key] = this.convertChild(value); + } + else { + result[key] = value; + } + }); + return result; + } + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + fixExports(node, result) { + const isNamespaceNode = ts.isModuleDeclaration(node) && + Boolean(node.flags & ts.NodeFlags.Namespace); + const modifiers = isNamespaceNode + ? (0, node_utils_1.getNamespaceModifiers)(node) + : (0, getModifiers_1.getModifiers)(node); + if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { + /** + * Make sure that original node is registered instead of export + */ + this.registerTSNodeInNodeMap(node, result); + const exportKeyword = modifiers[0]; + const nextModifier = modifiers[1]; + const declarationIsDefault = nextModifier?.kind === SyntaxKind.DefaultKeyword; + const varToken = declarationIsDefault + ? (0, node_utils_1.findNextToken)(nextModifier, this.ast, this.ast) + : (0, node_utils_1.findNextToken)(exportKeyword, this.ast, this.ast); + result.range[0] = varToken.getStart(this.ast); + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + if (declarationIsDefault) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + declaration: result, + exportKind: 'value', + }); + } + const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || + result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; + const isDeclare = 'declare' in result && result.declare; + return this.createNode(node, + // @ts-expect-error - TODO, narrow the types here + this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + attributes: [], + declaration: result, + exportKind: isType || isDeclare ? 'type' : 'value', + source: null, + specifiers: [], + }, 'assertions', 'attributes', true)); + } + return result; + } + getASTMaps() { + return { + esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap, + }; + } + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + registerTSNodeInNodeMap(node, result) { + if (result && + this.options.shouldPreserveNodeMaps && + !this.tsNodeToESTreeNodeMap.has(node)) { + this.tsNodeToESTreeNodeMap.set(node, result); + } + } +} +exports.Converter = Converter; +//# sourceMappingURL=convert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map new file mode 100644 index 00000000..2bbf5a5e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,oCAQC;AAjED,2DAA2D;AAC3D,2SAA2S;AAC3S,+CAAiC;AAUjC,iDAA6D;AAC7D,6CA2BsB;AACtB,2CAA6C;AAE7C,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AASjC;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,KAA2D;IAE3D,OAAO,IAAA,wBAAW,EAChB,CAAC,SAAS,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,IAAK,KAAK,CAAC,WAAsB,EACtE,KAAK,CAAC,IAAK,EACX,KAAK,CAAC,KAAM,CACb,CAAC;AACJ,CAAC;AAOD,MAAa,SAAS;IACZ,YAAY,GAAG,KAAK,CAAC;IACZ,GAAG,CAAgB;IACnB,qBAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;IACtC,OAAO,CAAm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,CAAC,CAAC;gBAC1D,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBAClD,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,EAAE;aACf,EACD,YAAY,EACZ,YAAY,EACZ,IAAI,CACL,CACF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,UAAU;QACR,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,uBAAuB,CAC7B,IAAa,EACb,MAA4B;QAE5B,IACE,MAAM;YACN,IAAI,CAAC,OAAO,CAAC,sBAAsB;YACnC,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EACrC,CAAC;YACD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;CACF;AAhhHD,8BAghHC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts new file mode 100644 index 00000000..851c7203 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts @@ -0,0 +1,13 @@ +import type * as ts from 'typescript'; +interface DirectoryStructureHost { + readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface CachedDirectoryStructureHost extends DirectoryStructureHost { + readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { + extraFileExtensions?: readonly ts.FileExtensionInfo[]; + onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; +} +export type { WatchCompilerHostOfConfigFile }; +//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map new file mode 100644 index 00000000..4e776d40 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACtD,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;CACT;AAED,YAAY,EAAE,6BAA6B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js new file mode 100644 index 00000000..dcb07129 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js @@ -0,0 +1,6 @@ +"use strict"; +// These types are internal to TS. +// They have been trimmed down to only include the relevant bits +// We use some special internal TS apis to help us do our parsing flexibly +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map new file mode 100644 index 00000000..757e885c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts new file mode 100644 index 00000000..b39194d9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts @@ -0,0 +1,8 @@ +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; +export { createIsolatedProgram }; +//# sourceMappingURL=createIsolatedProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map new file mode 100644 index 00000000..e1897025 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD;;GAEG;AACH,iBAAS,qBAAqB,CAC5B,aAAa,EAAE,aAAa,GAC3B,qBAAqB,CAoEvB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js new file mode 100644 index 00000000..f1c15c37 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js @@ -0,0 +1,97 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIsolatedProgram = createIsolatedProgram; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const getScriptKind_1 = require("./getScriptKind"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createIsolatedProgram'); +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +function createIsolatedProgram(parseSettings) { + log('Getting isolated program in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + const compilerHost = { + fileExists() { + return true; + }, + getCanonicalFileName() { + return parseSettings.filePath; + }, + getCurrentDirectory() { + return ''; + }, + getDefaultLibFileName() { + return 'lib.d.ts'; + }, + getDirectories() { + return []; + }, + // TODO: Support Windows CRLF + getNewLine() { + return '\n'; + }, + getSourceFile(filename) { + return ts.createSourceFile(filename, parseSettings.codeFullText, ts.ScriptTarget.Latest, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); + }, + readFile() { + return undefined; + }, + useCaseSensitiveFileNames() { + return true; + }, + writeFile() { + return null; + }, + }; + const program = ts.createProgram([parseSettings.filePath], { + jsDocParsingMode: parseSettings.jsDocParsingMode, + jsx: parseSettings.jsx ? ts.JsxEmit.Preserve : undefined, + noResolve: true, + target: ts.ScriptTarget.Latest, + ...(0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), + }, compilerHost); + const ast = program.getSourceFile(parseSettings.filePath); + if (!ast) { + throw new Error('Expected an ast to be returned for the single-file isolated program.'); + } + return { ast, program }; +} +//# sourceMappingURL=createIsolatedProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map new file mode 100644 index 00000000..97271161 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.js","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFS,sDAAqB;AAtF9B,kDAA0B;AAC1B,+CAAiC;AAKjC,mDAAgD;AAChD,qCAAiE;AAEjE,MAAM,GA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,IAAI;QACf,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;QAC9B,GAAG,IAAA,8CAAqC,EAAC,aAAa,CAAC;KACxD,EACD,YAAY,CACb,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts new file mode 100644 index 00000000..3e5f70aa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts @@ -0,0 +1,9 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +export declare function createProjectProgram(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram; +//# sourceMappingURL=createProjectProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map new file mode 100644 index 00000000..d1cbe49a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,qBAAqB,CAcvB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js new file mode 100644 index 00000000..a2d4898f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js @@ -0,0 +1,24 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgram = createProjectProgram; +const debug_1 = __importDefault(require("debug")); +const node_utils_1 = require("../node-utils"); +const createProjectProgramError_1 = require("./createProjectProgramError"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectProgram'); +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +function createProjectProgram(parseSettings, programsForProjects) { + log('Creating project program for: %s', parseSettings.filePath); + const astAndProgram = (0, node_utils_1.firstDefined)(programsForProjects, currentProgram => (0, shared_1.getAstFromProgram)(currentProgram, parseSettings.filePath)); + if (!astAndProgram) { + throw new Error((0, createProjectProgramError_1.createProjectProgramError)(parseSettings, programsForProjects).join('\n')); + } + return astAndProgram; +} +//# sourceMappingURL=createProjectProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map new file mode 100644 index 00000000..7364ba15 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":";;;;;AAiBA,oDAiBC;AAhCD,kDAA0B;AAK1B,8CAA6C;AAC7C,2EAAwE;AACxE,qCAA6C;AAE7C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAE9E;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,aAA4B,EAC5B,mBAA0C;IAE1C,GAAG,CAAC,kCAAkC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhE,MAAM,aAAa,GAAG,IAAA,yBAAY,EAAC,mBAAmB,EAAE,cAAc,CAAC,EAAE,CACvE,IAAA,0BAAiB,EAAC,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,CAC1D,CAAC;IAEF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,IAAA,qDAAyB,EAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACzE,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts new file mode 100644 index 00000000..18dc8c07 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts @@ -0,0 +1,4 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +export declare function createProjectProgramError(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): string[]; +//# sourceMappingURL=createProjectProgramError.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map new file mode 100644 index 00000000..104141e9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,MAAM,EAAE,CAUV"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js new file mode 100644 index 00000000..7f7a936e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js @@ -0,0 +1,75 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgramError = createProjectProgramError; +const node_path_1 = __importDefault(require("node:path")); +const describeFilePath_1 = require("./describeFilePath"); +const shared_1 = require("./shared"); +function createProjectProgramError(parseSettings, programsForProjects) { + const describedFilePath = (0, describeFilePath_1.describeFilePath)(parseSettings.filePath, parseSettings.tsconfigRootDir); + return [ + getErrorStart(describedFilePath, parseSettings), + ...getErrorDetails(describedFilePath, parseSettings, programsForProjects), + ]; +} +function getErrorStart(describedFilePath, parseSettings) { + const relativeProjects = [...parseSettings.projects.values()].map(projectFile => (0, describeFilePath_1.describeFilePath)(projectFile, parseSettings.tsconfigRootDir)); + const describedPrograms = relativeProjects.length === 1 + ? ` ${relativeProjects[0]}` + : `\n${relativeProjects.map(project => `- ${project}`).join('\n')}`; + return `ESLint was configured to run on \`${describedFilePath}\` using \`parserOptions.project\`:${describedPrograms}`; +} +function getErrorDetails(describedFilePath, parseSettings, programsForProjects) { + if (programsForProjects.length === 1 && + programsForProjects[0].getProjectReferences()?.length) { + return [ + `That TSConfig uses project "references" and doesn't include \`${describedFilePath}\` directly, which is not supported by \`parserOptions.project\`.`, + `Either:`, + `- Switch to \`parserOptions.projectService\``, + `- Use an ESLint-specific TSConfig`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#are-typescript-project-references-supported`, + ]; + } + const { extraFileExtensions } = parseSettings; + const details = []; + for (const extraExtension of extraFileExtensions) { + if (!extraExtension.startsWith('.')) { + details.push(`Found unexpected extension \`${extraExtension}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${extraExtension}\`?`); + } + if (shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(extraExtension)) { + details.push(`You unnecessarily included the extension \`${extraExtension}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`); + } + } + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension)) { + const nonStandardExt = `The extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + if (!extraFileExtensions.includes(fileExtension)) { + return [ + ...details, + `${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`, + ]; + } + } + else { + return [ + ...details, + `${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`, + ]; + } + } + const [describedInclusions, describedSpecifiers] = parseSettings.projects.size === 1 + ? ['that TSConfig does not', 'that TSConfig'] + : ['none of those TSConfigs', 'one of those TSConfigs']; + return [ + ...details, + `However, ${describedInclusions} include this file. Either:`, + `- Change ESLint's list of included files to not include this file`, + `- Change ${describedSpecifiers} to include this file`, + `- Create a new TSConfig that includes this file and include it in your parserOptions.project`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`, + ]; +} +//# sourceMappingURL=createProjectProgramError.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map new file mode 100644 index 00000000..4247b454 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":";;;;;AASA,8DAaC;AApBD,0DAA6B;AAI7B,yDAAsD;AACtD,qCAAyD;AAEzD,SAAgB,yBAAyB,CACvC,aAA4B,EAC5B,mBAA0C;IAE1C,MAAM,iBAAiB,GAAG,IAAA,mCAAgB,EACxC,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,eAAe,CAC9B,CAAC;IAEF,OAAO;QACL,aAA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V,gCAAgC,cAAc,uFAAuF,cAAc,KAAK,CACzJ,CAAC;QACJ,CAAC;QACD,IAAI,sCAA6B,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;YACtD,OAAO,CAAC,IAAI,CACV,8CAA8C,cAAc,uHAAuH,CACpL,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,aAAa,GAAG,mBAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC3D,IAAI,CAAC,sCAA6B,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QACtD,MAAM,cAAc,GAAG,iCAAiC,aAAa,qBAAqB,CAAC;QAC3F,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;gBACjD,OAAO;oBACL,GAAG,OAAO;oBACV,GAAG,cAAc,8EAA8E;iBAChG,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO;gBACL,GAAG,OAAO;gBACV,GAAG,cAAc,wEAAwE;aAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GAC9C,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;QAC/B,CAAC,CAAC,CAAC,wBAAwB,EAAE,eAAe,CAAC;QAC7C,CAAC,CAAC,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;IAE5D,OAAO;QACL,GAAG,OAAO;QACV,YAAY,mBAAmB,6BAA6B;QAC5D,mEAAmE;QACnE,YAAY,mBAAmB,uBAAuB;QACtD,8FAA8F;QAC9F,0OAA0O;KAC3O,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts new file mode 100644 index 00000000..00abc173 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts @@ -0,0 +1,11 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +import type { ProjectServiceOptions } from '../parser-options'; +export type TypeScriptProjectService = ts.server.ProjectService; +export interface ProjectServiceSettings { + allowDefaultProject: string[] | undefined; + lastReloadTimestamp: number; + maximumDefaultProjectFileMatchCount: number; + service: TypeScriptProjectService; +} +export declare function createProjectService(optionsRaw: boolean | ProjectServiceOptions | undefined, jsDocParsingMode: ts.JSDocParsingMode | undefined, tsconfigRootDir: string | undefined): ProjectServiceSettings; +//# sourceMappingURL=createProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map new file mode 100644 index 00000000..53a46e1c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAI1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA2B/D,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC,EAAE,MAAM,CAAC;IAC5C,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,EACvD,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,SAAS,EACjD,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,sBAAsB,CAoIxB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js new file mode 100644 index 00000000..afa037db --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js @@ -0,0 +1,134 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectService = createProjectService; +const debug_1 = __importDefault(require("debug")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const validateDefaultProjectForFilesGlob_1 = require("./validateDefaultProjectForFilesGlob"); +const DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD = 8; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectService'); +const logTsserverErr = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:err'); +const logTsserverInfo = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:info'); +const logTsserverPerf = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:perf'); +const logTsserverEvent = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:event'); +const doNothing = () => { }; +const createStubFileWatcher = () => ({ + close: doNothing, +}); +function createProjectService(optionsRaw, jsDocParsingMode, tsconfigRootDir) { + const optionsRawObject = typeof optionsRaw === 'object' ? optionsRaw : {}; + const options = { + defaultProject: 'tsconfig.json', + ...optionsRawObject, + }; + (0, validateDefaultProjectForFilesGlob_1.validateDefaultProjectForFilesGlob)(options.allowDefaultProject); + // We import this lazily to avoid its cost for users who don't use the service + // TODO: Once we drop support for TS<5.3 we can import from "typescript" directly + // eslint-disable-next-line @typescript-eslint/no-require-imports + const tsserver = require('typescript/lib/tsserverlibrary'); + // TODO: see getWatchProgramsForProjects + // We don't watch the disk, we just refer to these when ESLint calls us + // there's a whole separate update pass in maybeInvalidateProgram at the bottom of getWatchProgramsForProjects + // (this "goes nuclear on TypeScript") + const system = { + ...tsserver.sys, + clearImmediate, + clearTimeout, + setImmediate, + setTimeout, + watchDirectory: createStubFileWatcher, + watchFile: createStubFileWatcher, + // We stop loading any TypeScript plugins by default, to prevent them from attaching disk watchers + // See https://github.com/typescript-eslint/typescript-eslint/issues/9905 + ...(!options.loadTypeScriptPlugins && { + require: () => ({ + error: { + message: 'TypeScript plugins are not required when using parserOptions.projectService.', + }, + module: undefined, + }), + }), + }; + const logger = { + close: doNothing, + endGroup: doNothing, + getLogFileName: () => undefined, + // The debug library doesn't use levels without creating a namespace for each. + // Log levels are not passed to the writer so we wouldn't be able to forward + // to a respective namespace. Supporting would require an additional flag for + // granular control. Defaulting to all levels for now. + hasLevel: () => true, + info(s) { + this.msg(s, tsserver.server.Msg.Info); + }, + loggingEnabled: () => + // if none of the debug namespaces are enabled, then don't enable logging in tsserver + logTsserverInfo.enabled || + logTsserverErr.enabled || + logTsserverPerf.enabled, + msg: (s, type) => { + switch (type) { + case tsserver.server.Msg.Err: + logTsserverErr(s); + break; + case tsserver.server.Msg.Perf: + logTsserverPerf(s); + break; + default: + logTsserverInfo(s); + } + }, + perftrc(s) { + this.msg(s, tsserver.server.Msg.Perf); + }, + startGroup: doNothing, + }; + log('Creating project service with: %o', options); + const service = new tsserver.server.ProjectService({ + cancellationToken: { isCancellationRequested: () => false }, + eventHandler: logTsserverEvent.enabled + ? (e) => { + logTsserverEvent(e); + } + : undefined, + host: system, + jsDocParsingMode, + logger, + session: undefined, + useInferredProjectPerProjectRoot: false, + useSingleInferredProject: false, + }); + service.setHostConfiguration({ + preferences: { + includePackageJsonAutoImports: 'off', + }, + }); + log('Enabling default project: %s', options.defaultProject); + let configFile; + try { + configFile = (0, getParsedConfigFile_1.getParsedConfigFile)(tsserver, options.defaultProject, tsconfigRootDir); + } + catch (error) { + if (optionsRawObject.defaultProject) { + throw new Error(`Could not read project service default project '${options.defaultProject}': ${error.message}`); + } + } + if (configFile) { + service.setCompilerOptionsForInferredProjects( + // NOTE: The inferred projects API is not intended for source files when a tsconfig + // exists. There is no API that generates an InferredProjectCompilerOptions suggesting + // it is meant for hard coded options passed in. Hard asserting as a work around. + // See https://github.com/microsoft/TypeScript/blob/27bcd4cb5a98bce46c9cdd749752703ead021a4b/src/server/protocol.ts#L1904 + configFile.options); + } + return { + allowDefaultProject: options.allowDefaultProject, + lastReloadTimestamp: performance.now(), + maximumDefaultProjectFileMatchCount: options.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING ?? + DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD, + service, + }; +} +//# sourceMappingURL=createProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map new file mode 100644 index 00000000..43d81c28 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.js","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":";;;;;AAyCA,oDAwIC;AA9KD,kDAA0B;AAI1B,+DAA4D;AAC5D,6FAA0F;AAE1F,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAElD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAC9E,MAAM,cAAc,GAAG,IAAA,eAAK,EAC1B,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C,CAAC,CAAC,EAAQ,EAAE;gBACV,gBAAgB,CAAC,CAAC,CAAC,CAAC;YACtB,CAAC;YACH,CAAC,CAAC,SAAS;QACb,IAAI,EAAE,MAAM;QACZ,gBAAgB;QAChB,MAAM;QACN,OAAO,EAAE,SAAS;QAClB,gCAAgC,EAAE,KAAK;QACvC,wBAAwB,EAAE,KAAK;KAChC,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,CAAC;QAC3B,WAAW,EAAE;YACX,6BAA6B,EAAE,KAAK;SACrC;KACF,CAAC,CAAC;IAEH,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D,IAAI,UAA4C,CAAC;IAEjD,IAAI,CAAC;QACH,UAAU,GAAG,IAAA,yCAAmB,EAC9B,QAAQ,EACR,OAAO,CAAC,cAAc,EACtB,eAAe,CAChB,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,gBAAgB,CAAC,cAAc,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,mDAAmD,OAAO,CAAC,cAAc,MAAO,KAAe,CAAC,OAAO,EAAE,CAC1G,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,qCAAqC;QAC3C,mFAAmF;QACnF,uFAAuF;QACvF,iFAAiF;QACjF,yHAAyH;QACzH,UAAU,CAAC,OAA4D,CACxE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;QAChD,mBAAmB,EAAE,WAAW,CAAC,GAAG,EAAE;QACtC,mCAAmC,EACjC,OAAO,CAAC,+DAA+D;YACvE,uCAAuC;QACzC,OAAO;KACR,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts new file mode 100644 index 00000000..8de2229c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndNoProgram } from './shared'; +declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; +declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; +export { createNoProgram, createSourceFile }; +//# sourceMappingURL=createSourceFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map new file mode 100644 index 00000000..e3e7f744 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.d.ts","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,iBAAS,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,UAAU,CAoBrE;AAED,iBAAS,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAKtE;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js new file mode 100644 index 00000000..118c3d58 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js @@ -0,0 +1,63 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createNoProgram = createNoProgram; +exports.createSourceFile = createSourceFile; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const getScriptKind_1 = require("./getScriptKind"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createSourceFile'); +function createSourceFile(parseSettings) { + log('Getting AST without type information in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + return (0, source_files_1.isSourceFile)(parseSettings.code) + ? parseSettings.code + : ts.createSourceFile(parseSettings.filePath, parseSettings.codeFullText, { + jsDocParsingMode: parseSettings.jsDocParsingMode, + languageVersion: ts.ScriptTarget.Latest, + setExternalModuleIndicator: parseSettings.setExternalModuleIndicator, + }, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); +} +function createNoProgram(parseSettings) { + return { + ast: createSourceFile(parseSettings), + program: null, + }; +} +//# sourceMappingURL=createSourceFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map new file mode 100644 index 00000000..2c21e873 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.js","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCS,0CAAe;AAAE,4CAAgB;AAxC1C,kDAA0B;AAC1B,+CAAiC;AAKjC,kDAA+C;AAC/C,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,sDAAsD,CAAC,CAAC;AAE1E,SAAS,gBAAgB,CAAC,aAA4B;IACpD,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,OAAO,IAAA,2BAAY,EAAC,aAAa,CAAC,IAAI,CAAC;QACrC,CAAC,CAAC,aAAa,CAAC,IAAI;QACpB,CAAC,CAAC,EAAE,CAAC,gBAAgB,CACjB,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,YAAY,EAC1B;YACE,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;YAChD,eAAe,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;YACvC,0BAA0B,EAAE,aAAa,CAAC,0BAA0B;SACrE;QACD,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;AACR,CAAC;AAED,SAAS,eAAe,CAAC,aAA4B;IACnD,OAAO;QACL,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts new file mode 100644 index 00000000..d46f86aa --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts @@ -0,0 +1,2 @@ +export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; +//# sourceMappingURL=describeFilePath.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map new file mode 100644 index 00000000..6d049bed --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.d.ts","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAyBR"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js new file mode 100644 index 00000000..b474fc03 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js @@ -0,0 +1,31 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.describeFilePath = describeFilePath; +const node_path_1 = __importDefault(require("node:path")); +function describeFilePath(filePath, tsconfigRootDir) { + // If the TSConfig root dir is a parent of the filePath, use + // `` as a prefix for the path. + const relative = node_path_1.default.relative(tsconfigRootDir, filePath); + if (relative && !relative.startsWith('..') && !node_path_1.default.isAbsolute(relative)) { + return `/${relative}`; + } + // Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't + // relative to the TSConfig root dir should be fully described. + // This avoids strings like /../../../../repo/file.ts. + // https://github.com/typescript-eslint/typescript-eslint/issues/6289 + if (/^[(\w+:)\\/~]/.test(filePath)) { + return filePath; + } + // Similarly, if the relative path would contain a lot of ../.., then + // ignore it and print the file path directly. + if (/\.\.[/\\]\.\./.test(relative)) { + return filePath; + } + // Lastly, since we've eliminated all special cases, we know the cleanest + // path to print is probably the prefixed relative one. + return `/${relative}`; +} +//# sourceMappingURL=describeFilePath.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map new file mode 100644 index 00000000..50b9e8ab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.js","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":";;;;;AAEA,4CA4BC;AA9BD,0DAA6B;AAE7B,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,eAAuB;IAEvB,4DAA4D;IAC5D,gDAAgD;IAChD,MAAM,QAAQ,GAAG,mBAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzE,OAAO,qBAAqB,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IACvE,+DAA+D;IAC/D,uEAAuE;IACvE,qEAAqE;IACrE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qEAAqE;IACrE,8CAA8C;IAC9C,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,yEAAyE;IACzE,uDAAuD;IACvD,OAAO,qBAAqB,QAAQ,EAAE,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts new file mode 100644 index 00000000..ffccd560 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts @@ -0,0 +1,10 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; +export { getParsedConfigFile }; +//# sourceMappingURL=getParsedConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map new file mode 100644 index 00000000..17d807b7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAO1D;;;;;GAKG;AACH,iBAAS,mBAAmB,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,iBAAiB,CA6CtB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js new file mode 100644 index 00000000..5eae3d38 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParsedConfigFile = getParsedConfigFile; +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const shared_1 = require("./shared"); +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function getParsedConfigFile(tsserver, configFile, projectDirectory) { + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (tsserver.sys === undefined) { + throw new Error('`getParsedConfigFile` is only supported in a Node-like environment.'); + } + const parsed = tsserver.getParsedCommandLineOfConfigFile(configFile, shared_1.CORE_COMPILER_OPTIONS, { + fileExists: fs.existsSync, + getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: diag => { + throw new Error(formatDiagnostics([diag])); // ensures that `parsed` is defined. + }, + readDirectory: tsserver.sys.readDirectory, + readFile: file => fs.readFileSync(path.isAbsolute(file) ? file : path.join(getCurrentDirectory(), file), 'utf-8'), + useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames, + }); + if (parsed?.errors.length) { + throw new Error(formatDiagnostics(parsed.errors)); + } + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return parsed; + function getCurrentDirectory() { + return projectDirectory ? path.resolve(projectDirectory) : process.cwd(); + } + function formatDiagnostics(diagnostics) { + return tsserver.formatDiagnostics(diagnostics, { + getCanonicalFileName: f => f, + getCurrentDirectory, + getNewLine: () => '\n', + }); + } +} +//# sourceMappingURL=getParsedConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map new file mode 100644 index 00000000..5647cbf6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.js","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgES,kDAAmB;AA9D5B,4CAA8B;AAC9B,gDAAkC;AAElC,qCAAiD;AAEjD;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,QAAmB,EACnB,UAAkB,EAClB,gBAAyB;IAEzB,uEAAuE;IACvE,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,gCAAgC,CACtD,UAAU,EACV,8BAAqB,EACrB;QACE,UAAU,EAAE,EAAE,CAAC,UAAU;QACzB,mBAAmB;QACnB,mCAAmC,EAAE,IAAI,CAAC,EAAE;YAC1C,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,oCAAoC;QAClF,CAAC;QACD,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,aAAa;QACzC,QAAQ,EAAE,IAAI,CAAC,EAAE,CACf,EAAE,CAAC,YAAY,CACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,CAAC,EACrE,OAAO,CACR;QACH,yBAAyB,EAAE,QAAQ,CAAC,GAAG,CAAC,yBAAyB;KAClE,CACF,CAAC;IAEF,IAAI,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,oEAAoE;IACpE,OAAO,MAAO,CAAC;IAEf,SAAS,mBAAmB;QAC1B,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC3E,CAAC;IAED,SAAS,iBAAiB,CAAC,WAA4B;QACrD,OAAO,QAAQ,CAAC,iBAAiB,CAAC,WAAW,EAAE;YAC7C,oBAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YAC5B,mBAAmB;YACnB,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts new file mode 100644 index 00000000..e532e6a5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts @@ -0,0 +1,5 @@ +import * as ts from 'typescript'; +declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; +declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; +export { getLanguageVariant, getScriptKind }; +//# sourceMappingURL=getScriptKind.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map new file mode 100644 index 00000000..4b80634b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.d.ts","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,EAAE,CAAC,UAAU,CA8BpE;AAED,iBAAS,kBAAkB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAYzE;AAED,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js new file mode 100644 index 00000000..7b2c6883 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js @@ -0,0 +1,81 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLanguageVariant = getLanguageVariant; +exports.getScriptKind = getScriptKind; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +function getScriptKind(filePath, jsx) { + const extension = node_path_1.default.extname(filePath).toLowerCase(); + // note - we only respect the user's jsx setting for unknown extensions + // this is so that we always match TS's internal script kind logic, preventing + // weird errors due to a mismatch. + // https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 + switch (extension) { + case ts.Extension.Cjs: + case ts.Extension.Js: + case ts.Extension.Mjs: + return ts.ScriptKind.JS; + case ts.Extension.Cts: + case ts.Extension.Mts: + case ts.Extension.Ts: + return ts.ScriptKind.TS; + case ts.Extension.Json: + return ts.ScriptKind.JSON; + case ts.Extension.Jsx: + return ts.ScriptKind.JSX; + case ts.Extension.Tsx: + return ts.ScriptKind.TSX; + default: + // unknown extension, force typescript to ignore the file extension, and respect the user's setting + return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; + } +} +function getLanguageVariant(scriptKind) { + // https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 + switch (scriptKind) { + case ts.ScriptKind.JS: + case ts.ScriptKind.JSON: + case ts.ScriptKind.JSX: + case ts.ScriptKind.TSX: + return ts.LanguageVariant.JSX; + default: + return ts.LanguageVariant.Standard; + } +} +//# sourceMappingURL=getScriptKind.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map new file mode 100644 index 00000000..3caf147a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.js","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDS,gDAAkB;AAAE,sCAAa;AAjD1C,0DAA6B;AAC7B,+CAAiC;AAEjC,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAY;IACnD,MAAM,SAAS,GAAG,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAkB,CAAC;IACvE,uEAAuE;IACvE,8EAA8E;IAC9E,kCAAkC;IAClC,8HAA8H;IAC9H,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE;YAClB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,IAAI;YACpB,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAE5B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B;YACE,mGAAmG;YACnG,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACtD,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAyB;IACnD,8HAA8H;IAC9H,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QACtB,KAAK,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QACxB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG;YACpB,OAAO,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC;QAEhC;YACE,OAAO,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC;IACvC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts new file mode 100644 index 00000000..621d9bd6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts @@ -0,0 +1,15 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +declare function clearWatchCaches(): void; +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; +export { clearWatchCaches, getWatchProgramsForProjects }; +//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map new file mode 100644 index 00000000..4e5b64de --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AA4DD;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CA8Gd;AA6PD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js new file mode 100644 index 00000000..4db2836f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js @@ -0,0 +1,381 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearWatchCaches = clearWatchCaches; +exports.getWatchProgramsForProjects = getWatchProgramsForProjects; +const debug_1 = __importDefault(require("debug")); +const node_fs_1 = __importDefault(require("node:fs")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createWatchProgram'); +/** + * Maps tsconfig paths to their corresponding file contents and resulting watches + */ +const knownWatchProgramMap = new Map(); +/** + * Maps file/folder paths to their set of corresponding watch callbacks + * There may be more than one per file/folder if a file/folder is shared between projects + */ +const fileWatchCallbackTrackingMap = new Map(); +const folderWatchCallbackTrackingMap = new Map(); +/** + * Stores the list of known files for each program + */ +const programFileListCache = new Map(); +/** + * Caches the last modified time of the tsconfig files + */ +const tsconfigLastModifiedTimestampCache = new Map(); +const parsedFilesSeenHash = new Map(); +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +function clearWatchCaches() { + knownWatchProgramMap.clear(); + fileWatchCallbackTrackingMap.clear(); + folderWatchCallbackTrackingMap.clear(); + parsedFilesSeenHash.clear(); + programFileListCache.clear(); + tsconfigLastModifiedTimestampCache.clear(); +} +function saveWatchCallback(trackingMap) { + return (fileName, callback) => { + const normalizedFileName = (0, shared_1.getCanonicalFileName)(fileName); + const watchers = (() => { + let watchers = trackingMap.get(normalizedFileName); + if (!watchers) { + watchers = new Set(); + trackingMap.set(normalizedFileName, watchers); + } + return watchers; + })(); + watchers.add(callback); + return { + close: () => { + watchers.delete(callback); + }, + }; + }; +} +/** + * Holds information about the file currently being linted + */ +const currentLintOperationState = { + code: '', + filePath: '', +}; +/** + * Appropriately report issues found when reading a config file + * @param diagnostic The diagnostic raised when creating a program + */ +function diagnosticReporter(diagnostic) { + throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine)); +} +function updateCachedFileList(tsconfigPath, program) { + const fileList = new Set(program.getRootFileNames().map(f => (0, shared_1.getCanonicalFileName)(f))); + programFileListCache.set(tsconfigPath, fileList); + return fileList; +} +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +function getWatchProgramsForProjects(parseSettings) { + const filePath = (0, shared_1.getCanonicalFileName)(parseSettings.filePath); + const results = []; + // preserve reference to code and file being linted + currentLintOperationState.code = parseSettings.code; + currentLintOperationState.filePath = filePath; + // Update file version if necessary + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get(filePath); + const codeHash = (0, shared_1.createHash)((0, source_files_1.getCodeText)(parseSettings.code)); + if (parsedFilesSeenHash.get(filePath) !== codeHash && + fileWatchCallbacks && + fileWatchCallbacks.size > 0) { + fileWatchCallbacks.forEach(cb => cb(filePath, ts.FileWatcherEventKind.Changed)); + } + const currentProjectsFromSettings = new Map(parseSettings.projects); + /* + * before we go into the process of attempting to find and update every program + * see if we know of a program that contains this file + */ + for (const [tsconfigPath, existingWatch] of knownWatchProgramMap.entries()) { + if (!currentProjectsFromSettings.has(tsconfigPath)) { + // the current parser run doesn't specify this tsconfig in parserOptions.project + // so we don't want to consider it for caching purposes. + // + // if we did consider it we might return a program for a project + // that wasn't specified in the current parser run (which is obv bad!). + continue; + } + let fileList = programFileListCache.get(tsconfigPath); + let updatedProgram = null; + if (!fileList) { + updatedProgram = existingWatch.getProgram().getProgram(); + fileList = updateCachedFileList(tsconfigPath, updatedProgram); + } + if (fileList.has(filePath)) { + log('Found existing program for file. %s', filePath); + updatedProgram ??= existingWatch.getProgram().getProgram(); + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + return [updatedProgram]; + } + } + log('File did not belong to any existing programs, moving to create/update. %s', filePath); + /* + * We don't know of a program that contains the file, this means that either: + * - the required program hasn't been created yet, or + * - the file is new/renamed, and the program hasn't been updated. + */ + for (const tsconfigPath of parseSettings.projects) { + const existingWatch = knownWatchProgramMap.get(tsconfigPath[0]); + if (existingWatch) { + const updatedProgram = maybeInvalidateProgram(existingWatch, filePath, tsconfigPath[0]); + if (!updatedProgram) { + continue; + } + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], updatedProgram); + if (fileList.has(filePath)) { + log('Found updated program for file. %s', filePath); + // we can return early because we know this program contains the file + return [updatedProgram]; + } + results.push(updatedProgram); + continue; + } + const programWatch = createWatchProgram(tsconfigPath[1], parseSettings); + knownWatchProgramMap.set(tsconfigPath[0], programWatch); + const program = programWatch.getProgram().getProgram(); + // sets parent pointers in source files + program.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], program); + if (fileList.has(filePath)) { + log('Found program for file. %s', filePath); + // we can return early because we know this program contains the file + return [program]; + } + results.push(program); + } + return results; +} +function createWatchProgram(tsconfigPath, parseSettings) { + log('Creating watch program for %s.', tsconfigPath); + // create compiler host + const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter, + // TODO: file issue on TypeScript to suggest making optional? + // eslint-disable-next-line @typescript-eslint/no-empty-function + /*reportWatchStatus*/ () => { }); + watchCompilerHost.jsDocParsingMode = parseSettings.jsDocParsingMode; + // ensure readFile reads the code being linted instead of the copy on disk + const oldReadFile = watchCompilerHost.readFile; + watchCompilerHost.readFile = (filePathIn, encoding) => { + const filePath = (0, shared_1.getCanonicalFileName)(filePathIn); + const fileContent = filePath === currentLintOperationState.filePath + ? (0, source_files_1.getCodeText)(currentLintOperationState.code) + : oldReadFile(filePath, encoding); + if (fileContent !== undefined) { + parsedFilesSeenHash.set(filePath, (0, shared_1.createHash)(fileContent)); + } + return fileContent; + }; + // ensure process reports error on failure instead of exiting process immediately + watchCompilerHost.onUnRecoverableConfigFileDiagnostic = diagnosticReporter; + // ensure process doesn't emit programs + watchCompilerHost.afterProgramCreate = (program) => { + // report error if there are any errors in the config file + const configFileDiagnostics = program + .getConfigFileParsingDiagnostics() + .filter(diag => diag.category === ts.DiagnosticCategory.Error && diag.code !== 18003); + if (configFileDiagnostics.length > 0) { + diagnosticReporter(configFileDiagnostics[0]); + } + }; + /* + * From the CLI, the file watchers won't matter, as the files will be parsed once and then forgotten. + * When running from an IDE, these watchers will let us tell typescript about changes. + * + * ESLint IDE plugins will send us unfinished file content as the user types (before it's saved to disk). + * We use the file watchers to tell typescript about this latest file content. + * + * When files are created (or renamed), we won't know about them because we have no filesystem watchers attached. + * We use the folder watchers to tell typescript it needs to go and find new files in the project folders. + */ + watchCompilerHost.watchFile = saveWatchCallback(fileWatchCallbackTrackingMap); + watchCompilerHost.watchDirectory = saveWatchCallback(folderWatchCallbackTrackingMap); + // allow files with custom extensions to be included in program (uses internal ts api) + const oldOnDirectoryStructureHostCreate = watchCompilerHost.onCachedDirectoryStructureHostCreate; + watchCompilerHost.onCachedDirectoryStructureHostCreate = (host) => { + const oldReadDirectory = host.readDirectory; + host.readDirectory = (path, extensions, exclude, include, depth) => oldReadDirectory(path, !extensions + ? undefined + : [...extensions, ...parseSettings.extraFileExtensions], exclude, include, depth); + oldOnDirectoryStructureHostCreate(host); + }; + // This works only on 3.9 + watchCompilerHost.extraFileExtensions = parseSettings.extraFileExtensions.map(extension => ({ + extension, + isMixedContent: true, + scriptKind: ts.ScriptKind.Deferred, + })); + watchCompilerHost.trace = log; + // Since we don't want to asynchronously update program we want to disable timeout methods + // So any changes in the program will be delayed and updated when getProgram is called on watch + watchCompilerHost.setTimeout = undefined; + watchCompilerHost.clearTimeout = undefined; + return ts.createWatchProgram(watchCompilerHost); +} +function hasTSConfigChanged(tsconfigPath) { + const stat = node_fs_1.default.statSync(tsconfigPath); + const lastModifiedAt = stat.mtimeMs; + const cachedLastModifiedAt = tsconfigLastModifiedTimestampCache.get(tsconfigPath); + tsconfigLastModifiedTimestampCache.set(tsconfigPath, lastModifiedAt); + if (cachedLastModifiedAt === undefined) { + return false; + } + return Math.abs(cachedLastModifiedAt - lastModifiedAt) > Number.EPSILON; +} +function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) { + /* + * By calling watchProgram.getProgram(), it will trigger a resync of the program based on + * whatever new file content we've given it from our input. + */ + let updatedProgram = existingWatch.getProgram().getProgram(); + // In case this change causes problems in larger real world codebases + // Provide an escape hatch so people don't _have_ to revert to an older version + if (process.env.TSESTREE_NO_INVALIDATION === 'true') { + return updatedProgram; + } + if (hasTSConfigChanged(tsconfigPath)) { + /* + * If the stat of the tsconfig has changed, that could mean the include/exclude/files lists has changed + * We need to make sure typescript knows this so it can update appropriately + */ + log('tsconfig has changed - triggering program update. %s', tsconfigPath); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + fileWatchCallbackTrackingMap + .get(tsconfigPath) + .forEach(cb => cb(tsconfigPath, ts.FileWatcherEventKind.Changed)); + // tsconfig change means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + } + let sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * Missing source file means our program's folder structure might be out of date. + * So we need to tell typescript it needs to update the correct folder. + */ + log('File was not found in program - triggering folder update. %s', filePath); + // Find the correct directory callback by climbing the folder tree + const currentDir = (0, shared_1.canonicalDirname)(filePath); + let current = null; + let next = currentDir; + let hasCallback = false; + while (current !== next) { + current = next; + const folderWatchCallbacks = folderWatchCallbackTrackingMap.get(current); + if (folderWatchCallbacks) { + for (const cb of folderWatchCallbacks) { + if (currentDir !== current) { + cb(currentDir, ts.FileWatcherEventKind.Changed); + } + cb(current, ts.FileWatcherEventKind.Changed); + } + hasCallback = true; + } + next = (0, shared_1.canonicalDirname)(current); + } + if (!hasCallback) { + /* + * No callback means the paths don't matchup - so no point returning any program + * this will signal to the caller to skip this program + */ + log('No callback found for file, not part of this program. %s', filePath); + return null; + } + // directory update means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + // force the immediate resync + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * At this point we're in one of two states: + * - The file isn't supposed to be in this program due to exclusions + * - The file is new, and was renamed from an old, included filename + * + * For the latter case, we need to tell typescript that the old filename is now deleted + */ + log('File was still not found in program after directory update - checking file deletions. %s', filePath); + const rootFilenames = updatedProgram.getRootFileNames(); + // use find because we only need to "delete" one file to cause typescript to do a full resync + const deletedFile = rootFilenames.find(file => !node_fs_1.default.existsSync(file)); + if (!deletedFile) { + // There are no deleted files, so it must be the former case of the file not belonging to this program + return null; + } + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get((0, shared_1.getCanonicalFileName)(deletedFile)); + if (!fileWatchCallbacks) { + // shouldn't happen, but just in case + log('Could not find watch callbacks for root file. %s', deletedFile); + return updatedProgram; + } + log('Marking file as deleted. %s', deletedFile); + fileWatchCallbacks.forEach(cb => cb(deletedFile, ts.FileWatcherEventKind.Deleted)); + // deleted files means that the file list _has_ changed, so clear the cache + programFileListCache.delete(tsconfigPath); + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath); + return null; +} +//# sourceMappingURL=getWatchProgramsForProjects.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map new file mode 100644 index 00000000..dbbcae18 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4eS,4CAAgB;AAAE,kEAA2B;AA5etD,kDAA0B;AAC1B,sDAAyB;AACzB,+CAAiC;AAMjC,kDAA8C;AAC9C,qCAKkB;AAElB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM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,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts new file mode 100644 index 00000000..7ec5bda2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts @@ -0,0 +1,33 @@ +import type { Program } from 'typescript'; +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +interface ASTAndNoProgram { + ast: ts.SourceFile; + program: null; +} +interface ASTAndDefiniteProgram { + ast: ts.SourceFile; + program: ts.Program; +} +type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; +/** + * Compiler options required to avoid critical functionality issues + */ +declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; +declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set; +declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; +type CanonicalPath = { + __brand: unknown; +} & string; +declare function getCanonicalFileName(filePath: string): CanonicalPath; +declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; +declare function canonicalDirname(p: CanonicalPath): CanonicalPath; +declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +declare function createHash(content: string): string; +export { type ASTAndDefiniteProgram, type ASTAndNoProgram, type ASTAndProgram, canonicalDirname, type CanonicalPath, CORE_COMPILER_OPTIONS, createDefaultCompilerOptionsFromExtra, createHash, DEFAULT_EXTRA_FILE_EXTENSIONS, ensureAbsolutePath, getAstFromProgram, getCanonicalFileName, }; +//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map new file mode 100644 index 00000000..d79943b5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,eAAe;IACvB,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC;CACf;AACD,UAAU,qBAAqB;IAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;CACrB;AACD,KAAK,aAAa,GAAG,qBAAqB,GAAG,eAAe,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,eAQ/B,CAAC;AAYF,QAAA,MAAM,6BAA6B,aASjC,CAAC;AAEH,iBAAS,qCAAqC,CAC5C,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,eAAe,CASpB;AAGD,KAAK,aAAa,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAAC;AAUnD,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAM7D;AAED,iBAAS,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,iBAAS,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAEzD;AAmBD,iBAAS,iBAAiB,CACxB,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,MAAM,GACf,qBAAqB,GAAG,SAAS,CAWnC;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAO3C;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,aAAa,EAClB,qBAAqB,EACrB,qCAAqC,EACrC,UAAU,EACV,6BAA6B,EAC7B,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,GACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js new file mode 100644 index 00000000..974dd155 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js @@ -0,0 +1,145 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = exports.CORE_COMPILER_OPTIONS = void 0; +exports.canonicalDirname = canonicalDirname; +exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; +exports.createHash = createHash; +exports.ensureAbsolutePath = ensureAbsolutePath; +exports.getAstFromProgram = getAstFromProgram; +exports.getCanonicalFileName = getCanonicalFileName; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +/** + * Compiler options required to avoid critical functionality issues + */ +const CORE_COMPILER_OPTIONS = { + noEmit: true, // required to avoid parse from causing emit to occur + /** + * Flags required to make no-unused-vars work + */ + noUnusedLocals: true, + noUnusedParameters: true, +}; +exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; +/** + * Default compiler options for program generation + */ +const DEFAULT_COMPILER_OPTIONS = { + ...CORE_COMPILER_OPTIONS, + allowJs: true, + allowNonTsExtensions: true, + checkJs: true, +}; +const DEFAULT_EXTRA_FILE_EXTENSIONS = new Set([ + ts.Extension.Cjs, + ts.Extension.Cts, + ts.Extension.Js, + ts.Extension.Jsx, + ts.Extension.Mjs, + ts.Extension.Mts, + ts.Extension.Ts, + ts.Extension.Tsx, +]); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = DEFAULT_EXTRA_FILE_EXTENSIONS; +function createDefaultCompilerOptionsFromExtra(parseSettings) { + if (parseSettings.debugLevel.has('typescript')) { + return { + ...DEFAULT_COMPILER_OPTIONS, + extendedDiagnostics: true, + }; + } + return DEFAULT_COMPILER_OPTIONS; +} +// typescript doesn't provide a ts.sys implementation for browser environments +const useCaseSensitiveFileNames = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +ts.sys !== undefined ? ts.sys.useCaseSensitiveFileNames : true; +const correctPathCasing = useCaseSensitiveFileNames + ? (filePath) => filePath + : (filePath) => filePath.toLowerCase(); +function getCanonicalFileName(filePath) { + let normalized = node_path_1.default.normalize(filePath); + if (normalized.endsWith(node_path_1.default.sep)) { + normalized = normalized.slice(0, -1); + } + return correctPathCasing(normalized); +} +function ensureAbsolutePath(p, tsconfigRootDir) { + return node_path_1.default.isAbsolute(p) + ? p + : node_path_1.default.join(tsconfigRootDir || process.cwd(), p); +} +function canonicalDirname(p) { + return node_path_1.default.dirname(p); +} +const DEFINITION_EXTENSIONS = [ + ts.Extension.Dts, + ts.Extension.Dcts, + ts.Extension.Dmts, +]; +function getExtension(fileName) { + if (!fileName) { + return null; + } + return (DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt)) ?? node_path_1.default.extname(fileName)); +} +function getAstFromProgram(currentProgram, filePath) { + const ast = currentProgram.getSourceFile(filePath); + // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573 + const expectedExt = getExtension(filePath); + const returnedExt = getExtension(ast?.fileName); + if (expectedExt !== returnedExt) { + return undefined; + } + return ast && { ast, program: currentProgram }; +} +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +function createHash(content) { + // No ts.sys in browser environments. + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (ts.sys?.createHash) { + return ts.sys.createHash(content); + } + return content; +} +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map new file mode 100644 index 00000000..038d3a36 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgJE,4CAAgB;AAGhB,sFAAqC;AACrC,gCAAU;AAEV,gDAAkB;AAClB,8CAAiB;AACjB,oDAAoB;AAtJtB,0DAA6B;AAC7B,+CAAiC;AAcjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI,EAAE,qDAAqD;IAEnE;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAsHA,sDAAqB;AApHvB;;GAEG;AACH,MAAM,wBAAwB,GAAuB;IACnD,GAAG,qBAAqB;IACxB,OAAO,EAAE,IAAI;IACb,oBAAoB,EAAE,IAAI;IAC1B,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAS;IACpD,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,EAAE;IACf,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,EAAE;IACf,EAAE,CAAC,SAAS,CAAC,GAAG;CACjB,CAAC,CAAC;AAoGD,sEAA6B;AAlG/B,SAAS,qCAAqC,CAC5C,aAA4B;IAE5B,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/C,OAAO;YACL,GAAG,wBAAwB;YAC3B,mBAAmB,EAAE,IAAI;SAC1B,CAAC;IACJ,CAAC;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAKD,8EAA8E;AAC9E,M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OAAO,CACL,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CACzC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CACjC,IAAI,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,cAAuB,EACvB,QAAgB;IAEhB,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEnD,oFAAoF;IACpF,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAe;IACjC,qCAAqC;IACrC,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts new file mode 100644 index 00000000..273ca7f5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts @@ -0,0 +1,13 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; +export { createProgramFromConfigFile, useProvidedPrograms }; +//# sourceMappingURL=useProvidedPrograms.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map new file mode 100644 index 00000000..bd56bf83 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,GAAG,SAAS,CAoCnC;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CAIZ;AAED,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js new file mode 100644 index 00000000..2220ad8e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProgramFromConfigFile = createProgramFromConfigFile; +exports.useProvidedPrograms = useProvidedPrograms; +const debug_1 = __importDefault(require("debug")); +const path = __importStar(require("node:path")); +const ts = __importStar(require("typescript")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram'); +function useProvidedPrograms(programInstances, parseSettings) { + log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath); + let astAndProgram; + for (const programInstance of programInstances) { + astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings.filePath); + // Stop at the first applicable program instance + if (astAndProgram) { + break; + } + } + if (astAndProgram) { + astAndProgram.program.getTypeChecker(); // ensure parent pointers are set in source files + return astAndProgram; + } + const relativeFilePath = path.relative(parseSettings.tsconfigRootDir, parseSettings.filePath); + const [typeSource, typeSources] = parseSettings.projects.size > 0 + ? ['project', 'project(s)'] + : ['programs', 'program instance(s)']; + const errorLines = [ + `"parserOptions.${typeSource}" has been provided for @typescript-eslint/parser.`, + `The file was not found in any of the provided ${typeSources}: ${relativeFilePath}`, + ]; + throw new Error(errorLines.join('\n')); +} +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function createProgramFromConfigFile(configFile, projectDirectory) { + const parsed = (0, getParsedConfigFile_1.getParsedConfigFile)(ts, configFile, projectDirectory); + const host = ts.createCompilerHost(parsed.options, true); + return ts.createProgram(parsed.fileNames, parsed.options, host); +} +//# sourceMappingURL=useProvidedPrograms.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map new file mode 100644 index 00000000..f2b1c1e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoES,kEAA2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AA,yCAAmB,EAAC,EAAE,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IACrE,MAAM,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts new file mode 100644 index 00000000..cd36c54f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts @@ -0,0 +1,3 @@ +export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide\n"; +export declare function validateDefaultProjectForFilesGlob(allowDefaultProject: string[] | undefined): void; +//# sourceMappingURL=validateDefaultProjectForFilesGlob.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map new file mode 100644 index 00000000..18df39ca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.d.ts","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,yNAKnD,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,GACxC,IAAI,CAiBN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js new file mode 100644 index 00000000..74d5e37b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = void 0; +exports.validateDefaultProjectForFilesGlob = validateDefaultProjectForFilesGlob; +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = ` + +Having many files run with the default project is known to cause performance issues and slow down linting. + +See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide +`; +function validateDefaultProjectForFilesGlob(allowDefaultProject) { + if (!allowDefaultProject?.length) { + return; + } + for (const glob of allowDefaultProject) { + if (glob === '*') { + throw new Error(`allowDefaultProject contains the overly wide '*'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + if (glob.includes('**')) { + throw new Error(`allowDefaultProject glob '${glob}' contains a disallowed '**'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + } +} +//# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map new file mode 100644 index 00000000..50d95d2f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.js","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":";;;AAOA,gFAmBC;AA1BY,QAAA,uCAAuC,GAAG;;;;;CAKtD,CAAC;AAEF,SAAgB,kCAAkC,CAChD,mBAAyC;IAEzC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,mBAAmB,EAAE,CAAC;QACvC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACb,oDAAoD,+CAAuC,EAAE,CAC9F,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,6BAA6B,IAAI,gCAAgC,+CAAuC,EAAE,CAC3G,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts new file mode 100644 index 00000000..28b98fe8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts @@ -0,0 +1,5 @@ +import type * as ts from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParserServices } from './parser-options'; +export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices; +//# sourceMappingURL=createParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map new file mode 100644 index 00000000..69157f26 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.d.ts","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,IAAI,GACzB,cAAc,CA2BhB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js new file mode 100644 index 00000000..2c5e60c8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParserServices = createParserServices; +function createParserServices(astMaps, program) { + if (!program) { + return { + emitDecoratorMetadata: undefined, + experimentalDecorators: undefined, + program, + // we always return the node maps because + // (a) they don't require type info and + // (b) they can be useful when using some of TS's internal non-type-aware AST utils + ...astMaps, + }; + } + const checker = program.getTypeChecker(); + const compilerOptions = program.getCompilerOptions(); + return { + program, + // not set in the config is the same as off + emitDecoratorMetadata: compilerOptions.emitDecoratorMetadata ?? false, + experimentalDecorators: compilerOptions.experimentalDecorators ?? false, + ...astMaps, + getSymbolAtLocation: node => checker.getSymbolAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + getTypeAtLocation: node => checker.getTypeAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + }; +} +//# sourceMappingURL=createParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map new file mode 100644 index 00000000..54a84fef --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.js","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":";;AAKA,oDA8BC;AA9BD,SAAgB,oBAAoB,CAClC,OAAgB,EAChB,OAA0B;IAE1B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;YACL,qBAAqB,EAAE,SAAS;YAChC,sBAAsB,EAAE,SAAS;YACjC,OAAO;YACP,yCAAyC;YACzC,uCAAuC;YACvC,mFAAmF;YACnF,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAErD,OAAO;QACL,OAAO;QACP,2CAA2C;QAC3C,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,IAAI,KAAK;QACrE,sBAAsB,EAAE,eAAe,CAAC,sBAAsB,IAAI,KAAK;QACvE,GAAG,OAAO;QACV,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAC1B,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtE,iBAAiB,EAAE,IAAI,CAAC,EAAE,CACxB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACrE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts new file mode 100644 index 00000000..c312b154 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined; +export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined; +//# sourceMappingURL=getModifiers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map new file mode 100644 index 00000000..a67408e6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.d.ts","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,uBAAuB,UAAQ,GAC9B,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAsB3B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,wBAAwB,UAAQ,GAC/B,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,CAoB5B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js new file mode 100644 index 00000000..a5d358a6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js @@ -0,0 +1,75 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getModifiers = getModifiers; +exports.getDecorators = getDecorators; +const ts = __importStar(require("typescript")); +const version_check_1 = require("./version-check"); +const isAtLeast48 = version_check_1.typescriptVersionIsAtLeast['4.8']; +function getModifiers(node, includeIllegalModifiers = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalModifiers || ts.canHaveModifiers(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const modifiers = ts.getModifiers(node); + return modifiers ? [...modifiers] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.modifiers?.filter((m) => !ts.isDecorator(m))); +} +function getDecorators(node, includeIllegalDecorators = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalDecorators || ts.canHaveDecorators(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const decorators = ts.getDecorators(node); + return decorators ? [...decorators] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.decorators?.filter(ts.isDecorator)); +} +//# sourceMappingURL=getModifiers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map new file mode 100644 index 00000000..43d2d4e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.js","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,oCAyBC;AAED,sCAuBC;AAxDD,+CAAiC;AAEjC,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,SAAgB,YAAY,CAC1B,IAAgC,EAChC,uBAAuB,GAAG,KAAK;IAE/B,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,uBAAuB,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;YACzD,4FAA4F;YAC5F,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,IAAuB,CAAC,CAAC;YAC3D,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,SAAuC,EAAE,MAAM,CACnD,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5C,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAC3B,IAAgC,EAChC,wBAAwB,GAAG,KAAK;IAEhC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,wBAAwB,IAAI,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,4FAA4F;YAC5F,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAwB,CAAC,CAAC;YAC9D,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,UAAoC,EAAE,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,CACnE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts new file mode 100644 index 00000000..9e4ce3c4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts @@ -0,0 +1,14 @@ +export * from './clear-caches'; +export * from './create-program/getScriptKind'; +export { getCanonicalFileName } from './create-program/shared'; +export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; +export * from './getModifiers'; +export { TSError } from './node-utils'; +export { type AST, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, } from './parser'; +export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, TSESTreeOptions, } from './parser-options'; +export { simpleTraverse } from './simple-traverse'; +export * from './ts-estree'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { withoutProjectParserOptions } from './withoutProjectParserOptions'; +export declare const version: string; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map new file mode 100644 index 00000000..b977638f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,oCAAoC,EACpC,iCAAiC,EACjC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAI5E,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js new file mode 100644 index 00000000..c312df00 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js @@ -0,0 +1,40 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.version = exports.withoutProjectParserOptions = exports.typescriptVersionIsAtLeast = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = exports.TSError = exports.createProgram = exports.getCanonicalFileName = void 0; +__exportStar(require("./clear-caches"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +var useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return useProvidedPrograms_1.createProgramFromConfigFile; } }); +__exportStar(require("./getModifiers"), exports); +var node_utils_1 = require("./node-utils"); +Object.defineProperty(exports, "TSError", { enumerable: true, get: function () { return node_utils_1.TSError; } }); +var parser_1 = require("./parser"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); +Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } }); +var simple_traverse_1 = require("./simple-traverse"); +Object.defineProperty(exports, "simpleTraverse", { enumerable: true, get: function () { return simple_traverse_1.simpleTraverse; } }); +__exportStar(require("./ts-estree"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions"); +Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } }); +// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access +exports.version = require('../package.json').version; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map new file mode 100644 index 00000000..ecc12fc6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAEpC,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts new file mode 100644 index 00000000..7953cc6f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts @@ -0,0 +1,2 @@ +export declare const xhtmlEntities: Record; +//# sourceMappingURL=xhtml-entities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map new file mode 100644 index 00000000..ce45e83d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.d.ts","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8PhD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js new file mode 100644 index 00000000..d757174f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js @@ -0,0 +1,259 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xhtmlEntities = void 0; +exports.xhtmlEntities = { + Aacute: '\u00C1', + aacute: '\u00E1', + Acirc: '\u00C2', + acirc: '\u00E2', + acute: '\u00B4', + AElig: '\u00C6', + aelig: '\u00E6', + Agrave: '\u00C0', + agrave: '\u00E0', + alefsym: '\u2135', + Alpha: '\u0391', + alpha: '\u03B1', + amp: '&', + and: '\u2227', + ang: '\u2220', + apos: '\u0027', + Aring: '\u00C5', + aring: '\u00E5', + asymp: '\u2248', + Atilde: '\u00C3', + atilde: '\u00E3', + Auml: '\u00C4', + auml: '\u00E4', + bdquo: '\u201E', + Beta: '\u0392', + beta: '\u03B2', + brvbar: '\u00A6', + bull: '\u2022', + cap: '\u2229', + Ccedil: '\u00C7', + ccedil: '\u00E7', + cedil: '\u00B8', + cent: '\u00A2', + Chi: '\u03A7', + chi: '\u03C7', + circ: '\u02C6', + clubs: '\u2663', + cong: '\u2245', + copy: '\u00A9', + crarr: '\u21B5', + cup: '\u222A', + curren: '\u00A4', + dagger: '\u2020', + Dagger: '\u2021', + darr: '\u2193', + dArr: '\u21D3', + deg: '\u00B0', + Delta: '\u0394', + delta: '\u03B4', + diams: '\u2666', + divide: '\u00F7', + Eacute: '\u00C9', + eacute: '\u00E9', + Ecirc: '\u00CA', + ecirc: '\u00EA', + Egrave: '\u00C8', + egrave: '\u00E8', + empty: '\u2205', + emsp: '\u2003', + ensp: '\u2002', + Epsilon: '\u0395', + epsilon: '\u03B5', + equiv: '\u2261', + Eta: '\u0397', + eta: '\u03B7', + ETH: '\u00D0', + eth: '\u00F0', + Euml: '\u00CB', + euml: '\u00EB', + euro: '\u20AC', + exist: '\u2203', + fnof: '\u0192', + forall: '\u2200', + frac12: '\u00BD', + frac14: '\u00BC', + frac34: '\u00BE', + frasl: '\u2044', + Gamma: '\u0393', + gamma: '\u03B3', + ge: '\u2265', + gt: '>', + harr: '\u2194', + hArr: '\u21D4', + hearts: '\u2665', + hellip: '\u2026', + Iacute: '\u00CD', + iacute: '\u00ED', + Icirc: '\u00CE', + icirc: '\u00EE', + iexcl: '\u00A1', + Igrave: '\u00CC', + igrave: '\u00EC', + image: '\u2111', + infin: '\u221E', + int: '\u222B', + Iota: '\u0399', + iota: '\u03B9', + iquest: '\u00BF', + isin: '\u2208', + Iuml: '\u00CF', + iuml: '\u00EF', + Kappa: '\u039A', + kappa: '\u03BA', + Lambda: '\u039B', + lambda: '\u03BB', + lang: '\u2329', + laquo: '\u00AB', + larr: '\u2190', + lArr: '\u21D0', + lceil: '\u2308', + ldquo: '\u201C', + le: '\u2264', + lfloor: '\u230A', + lowast: '\u2217', + loz: '\u25CA', + lrm: '\u200E', + lsaquo: '\u2039', + lsquo: '\u2018', + lt: '<', + macr: '\u00AF', + mdash: '\u2014', + micro: '\u00B5', + middot: '\u00B7', + minus: '\u2212', + Mu: '\u039C', + mu: '\u03BC', + nabla: '\u2207', + nbsp: '\u00A0', + ndash: '\u2013', + ne: '\u2260', + ni: '\u220B', + not: '\u00AC', + notin: '\u2209', + nsub: '\u2284', + Ntilde: '\u00D1', + ntilde: '\u00F1', + Nu: '\u039D', + nu: '\u03BD', + Oacute: '\u00D3', + oacute: '\u00F3', + Ocirc: '\u00D4', + ocirc: '\u00F4', + OElig: '\u0152', + oelig: '\u0153', + Ograve: '\u00D2', + ograve: '\u00F2', + oline: '\u203E', + Omega: '\u03A9', + omega: '\u03C9', + Omicron: '\u039F', + omicron: '\u03BF', + oplus: '\u2295', + or: '\u2228', + ordf: '\u00AA', + ordm: '\u00BA', + Oslash: '\u00D8', + oslash: '\u00F8', + Otilde: '\u00D5', + otilde: '\u00F5', + otimes: '\u2297', + Ouml: '\u00D6', + ouml: '\u00F6', + para: '\u00B6', + part: '\u2202', + permil: '\u2030', + perp: '\u22A5', + Phi: '\u03A6', + phi: '\u03C6', + Pi: '\u03A0', + pi: '\u03C0', + piv: '\u03D6', + plusmn: '\u00B1', + pound: '\u00A3', + prime: '\u2032', + Prime: '\u2033', + prod: '\u220F', + prop: '\u221D', + Psi: '\u03A8', + psi: '\u03C8', + quot: '\u0022', + radic: '\u221A', + rang: '\u232A', + raquo: '\u00BB', + rarr: '\u2192', + rArr: '\u21D2', + rceil: '\u2309', + rdquo: '\u201D', + real: '\u211C', + reg: '\u00AE', + rfloor: '\u230B', + Rho: '\u03A1', + rho: '\u03C1', + rlm: '\u200F', + rsaquo: '\u203A', + rsquo: '\u2019', + sbquo: '\u201A', + Scaron: '\u0160', + scaron: '\u0161', + sdot: '\u22C5', + sect: '\u00A7', + shy: '\u00AD', + Sigma: '\u03A3', + sigma: '\u03C3', + sigmaf: '\u03C2', + sim: '\u223C', + spades: '\u2660', + sub: '\u2282', + sube: '\u2286', + sum: '\u2211', + sup: '\u2283', + sup1: '\u00B9', + sup2: '\u00B2', + sup3: '\u00B3', + supe: '\u2287', + szlig: '\u00DF', + Tau: '\u03A4', + tau: '\u03C4', + there4: '\u2234', + Theta: '\u0398', + theta: '\u03B8', + thetasym: '\u03D1', + thinsp: '\u2009', + THORN: '\u00DE', + thorn: '\u00FE', + tilde: '\u02DC', + times: '\u00D7', + trade: '\u2122', + Uacute: '\u00DA', + uacute: '\u00FA', + uarr: '\u2191', + uArr: '\u21D1', + Ucirc: '\u00DB', + ucirc: '\u00FB', + Ugrave: '\u00D9', + ugrave: '\u00F9', + uml: '\u00A8', + upsih: '\u03D2', + Upsilon: '\u03A5', + upsilon: '\u03C5', + Uuml: '\u00DC', + uuml: '\u00FC', + weierp: '\u2118', + Xi: '\u039E', + xi: '\u03BE', + Yacute: '\u00DD', + yacute: '\u00FD', + yen: '\u00A5', + yuml: '\u00FF', + Yuml: '\u0178', + Zeta: '\u0396', + zeta: '\u03B6', + zwj: '\u200D', + zwnj: '\u200C', +}; +//# sourceMappingURL=xhtml-entities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map new file mode 100644 index 00000000..0307f680 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.js","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAA2B;IACnD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,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AAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;CACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts new file mode 100644 index 00000000..8dcbed5b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts @@ -0,0 +1,192 @@ +import * as ts from 'typescript'; +import type { TSESTree, TSNode } from './ts-estree'; +import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; +declare const SyntaxKind: typeof ts.SyntaxKind; +type LogicalOperatorKind = ts.SyntaxKind.AmpersandAmpersandToken | ts.SyntaxKind.BarBarToken | ts.SyntaxKind.QuestionQuestionToken; +interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOperatorToText { + [SyntaxKind.ImportKeyword]: 'import'; + [SyntaxKind.KeyOfKeyword]: 'keyof'; + [SyntaxKind.NewKeyword]: 'new'; + [SyntaxKind.ReadonlyKeyword]: 'readonly'; + [SyntaxKind.UniqueKeyword]: 'unique'; +} +type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText; +type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText; +type DeclarationKind = TSESTree.VariableDeclaration['kind']; +/** + * Returns true if the given ts.Token is a logical operator + */ +export declare function isLogicalOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +export declare function isESTreeBinaryOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +type TokenForTokenKind = T extends keyof TokenToText ? TokenToText[T] : string | undefined; +/** + * Returns the string form of the given TSToken SyntaxKind + */ +export declare function getTextForTokenKind(kind: T): TokenForTokenKind; +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +export declare function isESTreeClassMember(node: ts.Node): boolean; +/** + * Checks if a ts.Node has a modifier + */ +export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +export declare function getLastModifier(node: ts.Node): ts.Modifier | null; +/** + * Returns true if the given ts.Token is a comma + */ +export declare function isComma(token: ts.Node): token is ts.Token; +/** + * Returns true if the given ts.Node is a comment + */ +export declare function isComment(node: ts.Node): boolean; +/** + * Returns the binary expression type of the given ts.Token + */ +export declare function getBinaryExpressionType(operator: ts.BinaryOperatorToken): { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.AssignmentExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.BinaryExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.LogicalExpression; +}; +/** + * Returns line and column data for the given positions + */ +export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +export declare function getLocFor(range: TSESTree.Range, ast: ts.SourceFile): TSESTree.SourceLocation; +/** + * Check whatever node can contain directive + */ +export declare function canContainDirective(node: ts.Block | ts.ClassStaticBlockDeclaration | ts.ModuleBlock | ts.SourceFile): boolean; +/** + * Returns range for the given ts.Node + */ +export declare function getRange(node: Pick, ast: ts.SourceFile): [number, number]; +/** + * Returns true if a given ts.Node is a JSX token + */ +export declare function isJSXToken(node: ts.Node): boolean; +/** + * Returns the declaration kind of the given ts.Node + */ +export declare function getDeclarationKind(node: ts.VariableDeclarationList): DeclarationKind; +/** + * Gets a ts.Node's accessibility level + */ +export declare function getTSNodeAccessibility(node: ts.Node): 'private' | 'protected' | 'public' | undefined; +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +export declare function hasJSXAncestor(node: ts.Node): boolean; +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +export declare function unescapeStringLiteralText(text: string): string; +/** + * Returns true if a given ts.Node is a computed property + */ +export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +export declare function isOptional(node: { + questionToken?: ts.QuestionToken; +}): boolean; +/** + * Returns true if the node is an optional chain node + */ +export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; +/** + * Returns true of the child of property access expression is an optional chain + */ +export declare function isChildUnwrappableOptionalChain(node: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression, child: TSESTree.Node): boolean; +/** + * Returns the type of a given ts.Token + */ +export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; +/** + * Extends and formats a given ts.Token, for a given AST + */ +export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; +export declare class TSError extends Error { + readonly fileName: string; + readonly location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }; + constructor(message: string, fileName: string, location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }); + get index(): number; + get lineNumber(): number; + get column(): number; +} +export declare function createError(message: string, ast: ts.SourceFile, startIndex: number, endIndex?: number): TSError; +export declare function nodeHasIllegalDecorators(node: ts.Node): node is { + illegalDecorators: ts.Node[]; +} & ts.Node; +export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; +export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; +export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; +export declare function isThisInTypeQuery(node: ts.Node): boolean; +export declare function nodeIsPresent(node: ts.Node | undefined): node is ts.Node; +export declare function getContainingFunction(node: ts.Node): ts.SignatureDeclaration | undefined; +export declare function nodeCanBeDecorated(node: TSNode): boolean; +export declare function isValidAssignmentTarget(node: ts.Node): boolean; +export declare function getNamespaceModifiers(node: ts.ModuleDeclaration): ts.Modifier[] | undefined; +export {}; +//# sourceMappingURL=node-utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map new file mode 100644 index 00000000..a37a7e80 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint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IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,UAAU,GAAG,OAAO,CAMrE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,EAC/B,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GACrD,CAAC,GAAG,SAAS,CAYf;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,GAAG,OAAO,CAOlE;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,SAAS,GACxB,IAAI,IAAI,EAAE,CAAC,UAAU,CAMvB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAUxD;AAeD,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,IAAI,CAExE;AAGD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,EAAE,CAAC,oBAAoB,GAAG,SAAS,CAErC;AA4BD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuDxD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CA6B9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,iBAAiB,GACzB,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAgB3B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js new file mode 100644 index 00000000..11271d7d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js @@ -0,0 +1,739 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSError = void 0; +exports.isLogicalOperator = isLogicalOperator; +exports.isESTreeBinaryOperator = isESTreeBinaryOperator; +exports.getTextForTokenKind = getTextForTokenKind; +exports.isESTreeClassMember = isESTreeClassMember; +exports.hasModifier = hasModifier; +exports.getLastModifier = getLastModifier; +exports.isComma = isComma; +exports.isComment = isComment; +exports.getBinaryExpressionType = getBinaryExpressionType; +exports.getLineAndCharacterFor = getLineAndCharacterFor; +exports.getLocFor = getLocFor; +exports.canContainDirective = canContainDirective; +exports.getRange = getRange; +exports.isJSXToken = isJSXToken; +exports.getDeclarationKind = getDeclarationKind; +exports.getTSNodeAccessibility = getTSNodeAccessibility; +exports.findNextToken = findNextToken; +exports.findFirstMatchingAncestor = findFirstMatchingAncestor; +exports.hasJSXAncestor = hasJSXAncestor; +exports.unescapeStringLiteralText = unescapeStringLiteralText; +exports.isComputedProperty = isComputedProperty; +exports.isOptional = isOptional; +exports.isChainExpression = isChainExpression; +exports.isChildUnwrappableOptionalChain = isChildUnwrappableOptionalChain; +exports.getTokenType = getTokenType; +exports.convertToken = convertToken; +exports.convertTokens = convertTokens; +exports.createError = createError; +exports.nodeHasIllegalDecorators = nodeHasIllegalDecorators; +exports.nodeHasTokens = nodeHasTokens; +exports.firstDefined = firstDefined; +exports.identifierIsThisKeyword = identifierIsThisKeyword; +exports.isThisIdentifier = isThisIdentifier; +exports.isThisInTypeQuery = isThisInTypeQuery; +exports.nodeIsPresent = nodeIsPresent; +exports.getContainingFunction = getContainingFunction; +exports.nodeCanBeDecorated = nodeCanBeDecorated; +exports.isValidAssignmentTarget = isValidAssignmentTarget; +exports.getNamespaceModifiers = getNamespaceModifiers; +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const xhtml_entities_1 = require("./jsx/xhtml-entities"); +const ts_estree_1 = require("./ts-estree"); +const version_check_1 = require("./version-check"); +const isAtLeast50 = version_check_1.typescriptVersionIsAtLeast['5.0']; +const SyntaxKind = ts.SyntaxKind; +const LOGICAL_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.BarBarToken, + SyntaxKind.QuestionQuestionToken, +]); +const ASSIGNMENT_OPERATORS = new Set([ + ts.SyntaxKind.AmpersandAmpersandEqualsToken, + ts.SyntaxKind.AmpersandEqualsToken, + ts.SyntaxKind.AsteriskAsteriskEqualsToken, + ts.SyntaxKind.AsteriskEqualsToken, + ts.SyntaxKind.BarBarEqualsToken, + ts.SyntaxKind.BarEqualsToken, + ts.SyntaxKind.CaretEqualsToken, + ts.SyntaxKind.EqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.LessThanLessThanEqualsToken, + ts.SyntaxKind.MinusEqualsToken, + ts.SyntaxKind.PercentEqualsToken, + ts.SyntaxKind.PlusEqualsToken, + ts.SyntaxKind.QuestionQuestionEqualsToken, + ts.SyntaxKind.SlashEqualsToken, +]); +const BINARY_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.AmpersandToken, + SyntaxKind.AsteriskAsteriskToken, + SyntaxKind.AsteriskToken, + SyntaxKind.BarBarToken, + SyntaxKind.BarToken, + SyntaxKind.CaretToken, + SyntaxKind.EqualsEqualsEqualsToken, + SyntaxKind.EqualsEqualsToken, + SyntaxKind.ExclamationEqualsEqualsToken, + SyntaxKind.ExclamationEqualsToken, + SyntaxKind.GreaterThanEqualsToken, + SyntaxKind.GreaterThanGreaterThanGreaterThanToken, + SyntaxKind.GreaterThanGreaterThanToken, + SyntaxKind.GreaterThanToken, + SyntaxKind.InKeyword, + SyntaxKind.InstanceOfKeyword, + SyntaxKind.LessThanEqualsToken, + SyntaxKind.LessThanLessThanToken, + SyntaxKind.LessThanToken, + SyntaxKind.MinusToken, + SyntaxKind.PercentToken, + SyntaxKind.PlusToken, + SyntaxKind.SlashToken, +]); +/** + * Returns true if the given ts.Token is the assignment operator + */ +function isAssignmentOperator(operator) { + return ASSIGNMENT_OPERATORS.has(operator.kind); +} +/** + * Returns true if the given ts.Token is a logical operator + */ +function isLogicalOperator(operator) { + return LOGICAL_OPERATORS.has(operator.kind); +} +function isESTreeBinaryOperator(operator) { + return BINARY_OPERATORS.has(operator.kind); +} +/** + * Returns the string form of the given TSToken SyntaxKind + */ +function getTextForTokenKind(kind) { + return ts.tokenToString(kind); +} +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +function isESTreeClassMember(node) { + return node.kind !== SyntaxKind.SemicolonClassElement; +} +/** + * Checks if a ts.Node has a modifier + */ +function hasModifier(modifierKind, node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + return modifiers?.some(modifier => modifier.kind === modifierKind) === true; +} +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +function getLastModifier(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return null; + } + return modifiers[modifiers.length - 1] ?? null; +} +/** + * Returns true if the given ts.Token is a comma + */ +function isComma(token) { + return token.kind === SyntaxKind.CommaToken; +} +/** + * Returns true if the given ts.Node is a comment + */ +function isComment(node) { + return (node.kind === SyntaxKind.SingleLineCommentTrivia || + node.kind === SyntaxKind.MultiLineCommentTrivia); +} +/** + * Returns true if the given ts.Node is a JSDoc comment + */ +function isJSDocComment(node) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- SyntaxKind.JSDoc was only added in TS4.7 so we can't use it yet + return node.kind === SyntaxKind.JSDocComment; +} +/** + * Returns the binary expression type of the given ts.Token + */ +function getBinaryExpressionType(operator) { + if (isAssignmentOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.AssignmentExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isLogicalOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.LogicalExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isESTreeBinaryOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.BinaryExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + throw new Error(`Unexpected binary operator ${ts.tokenToString(operator.kind)}`); +} +/** + * Returns line and column data for the given positions + */ +function getLineAndCharacterFor(pos, ast) { + const loc = ast.getLineAndCharacterOfPosition(pos); + return { + column: loc.character, + line: loc.line + 1, + }; +} +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +function getLocFor(range, ast) { + const [start, end] = range.map(pos => getLineAndCharacterFor(pos, ast)); + return { end, start }; +} +/** + * Check whatever node can contain directive + */ +function canContainDirective(node) { + if (node.kind === ts.SyntaxKind.Block) { + switch (node.parent.kind) { + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.MethodDeclaration: + return true; + default: + return false; + } + } + return true; +} +/** + * Returns range for the given ts.Node + */ +function getRange(node, ast) { + return [node.getStart(ast), node.getEnd()]; +} +/** + * Returns true if a given ts.Node is a token + */ +function isToken(node) { + return (node.kind >= SyntaxKind.FirstToken && node.kind <= SyntaxKind.LastToken); +} +/** + * Returns true if a given ts.Node is a JSX token + */ +function isJSXToken(node) { + return (node.kind >= SyntaxKind.JsxElement && node.kind <= SyntaxKind.JsxAttribute); +} +/** + * Returns the declaration kind of the given ts.Node + */ +function getDeclarationKind(node) { + if (node.flags & ts.NodeFlags.Let) { + return 'let'; + } + // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison + if ((node.flags & ts.NodeFlags.AwaitUsing) === ts.NodeFlags.AwaitUsing) { + return 'await using'; + } + if (node.flags & ts.NodeFlags.Const) { + return 'const'; + } + if (node.flags & ts.NodeFlags.Using) { + return 'using'; + } + return 'var'; +} +/** + * Gets a ts.Node's accessibility level + */ +function getTSNodeAccessibility(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return undefined; + } + for (const modifier of modifiers) { + switch (modifier.kind) { + case SyntaxKind.PublicKeyword: + return 'public'; + case SyntaxKind.ProtectedKeyword: + return 'protected'; + case SyntaxKind.PrivateKeyword: + return 'private'; + default: + break; + } + } + return undefined; +} +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +function findNextToken(previousToken, parent, ast) { + return find(parent); + function find(n) { + if (ts.isToken(n) && n.pos === previousToken.end) { + // this is token that starts at the end of previous token - return it + return n; + } + return firstDefined(n.getChildren(ast), (child) => { + const shouldDiveInChildNode = + // previous token is enclosed somewhere in the child + (child.pos <= previousToken.pos && child.end > previousToken.end) || + // previous token ends exactly at the beginning of child + child.pos === previousToken.end; + return shouldDiveInChildNode && nodeHasTokens(child, ast) + ? find(child) + : undefined; + }); + } +} +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +function findFirstMatchingAncestor(node, predicate) { + let current = node; + while (current) { + if (predicate(current)) { + return current; + } + current = current.parent; + } + return undefined; +} +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +function hasJSXAncestor(node) { + return !!findFirstMatchingAncestor(node, isJSXToken); +} +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +function unescapeStringLiteralText(text) { + return text.replaceAll(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, entity => { + const item = entity.slice(1, -1); + if (item[0] === '#') { + const codePoint = item[1] === 'x' + ? parseInt(item.slice(2), 16) + : parseInt(item.slice(1), 10); + return codePoint > 0x10ffff // RangeError: Invalid code point + ? entity + : String.fromCodePoint(codePoint); + } + return xhtml_entities_1.xhtmlEntities[item] || entity; + }); +} +/** + * Returns true if a given ts.Node is a computed property + */ +function isComputedProperty(node) { + return node.kind === SyntaxKind.ComputedPropertyName; +} +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +function isOptional(node) { + return !!node.questionToken; +} +/** + * Returns true if the node is an optional chain node + */ +function isChainExpression(node) { + return node.type === ts_estree_1.AST_NODE_TYPES.ChainExpression; +} +/** + * Returns true of the child of property access expression is an optional chain + */ +function isChildUnwrappableOptionalChain(node, child) { + return (isChainExpression(child) && + // (x?.y).z is semantically different, and as such .z is no longer optional + node.expression.kind !== ts.SyntaxKind.ParenthesizedExpression); +} +/** + * Returns the type of a given ts.Token + */ +function getTokenType(token) { + let keywordKind; + if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { + keywordKind = ts.identifierToKeywordKind(token); + } + else if ('originalKeywordKind' in token) { + // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + keywordKind = token.originalKeywordKind; + } + if (keywordKind) { + if (keywordKind === SyntaxKind.NullKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Null; + } + if (keywordKind >= SyntaxKind.FirstFutureReservedWord && + keywordKind <= SyntaxKind.LastKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Identifier; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstKeyword && + token.kind <= SyntaxKind.LastFutureReservedWord) { + if (token.kind === SyntaxKind.FalseKeyword || + token.kind === SyntaxKind.TrueKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Boolean; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstPunctuation && + token.kind <= SyntaxKind.LastPunctuation) { + return ts_estree_1.AST_TOKEN_TYPES.Punctuator; + } + if (token.kind >= SyntaxKind.NoSubstitutionTemplateLiteral && + token.kind <= SyntaxKind.TemplateTail) { + return ts_estree_1.AST_TOKEN_TYPES.Template; + } + switch (token.kind) { + case SyntaxKind.NumericLiteral: + return ts_estree_1.AST_TOKEN_TYPES.Numeric; + case SyntaxKind.JsxText: + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + case SyntaxKind.StringLiteral: + // A TypeScript-StringLiteral token with a TypeScript-JsxAttribute or TypeScript-JsxElement parent, + // must actually be an ESTree-JSXText token + if (token.parent.kind === SyntaxKind.JsxAttribute || + token.parent.kind === SyntaxKind.JsxElement) { + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + } + return ts_estree_1.AST_TOKEN_TYPES.String; + case SyntaxKind.RegularExpressionLiteral: + return ts_estree_1.AST_TOKEN_TYPES.RegularExpression; + case SyntaxKind.Identifier: + case SyntaxKind.ConstructorKeyword: + case SyntaxKind.GetKeyword: + case SyntaxKind.SetKeyword: + // intentional fallthrough + default: + } + // Some JSX tokens have to be determined based on their parent + if (token.kind === SyntaxKind.Identifier) { + if (isJSXToken(token.parent)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + if (token.parent.kind === SyntaxKind.PropertyAccessExpression && + hasJSXAncestor(token)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + } + return ts_estree_1.AST_TOKEN_TYPES.Identifier; +} +/** + * Extends and formats a given ts.Token, for a given AST + */ +function convertToken(token, ast) { + const start = token.kind === SyntaxKind.JsxText + ? token.getFullStart() + : token.getStart(ast); + const end = token.getEnd(); + const value = ast.text.slice(start, end); + const tokenType = getTokenType(token); + const range = [start, end]; + const loc = getLocFor(range, ast); + if (tokenType === ts_estree_1.AST_TOKEN_TYPES.RegularExpression) { + return { + type: tokenType, + loc, + range, + regex: { + flags: value.slice(value.lastIndexOf('/') + 1), + pattern: value.slice(1, value.lastIndexOf('/')), + }, + value, + }; + } + // @ts-expect-error TS is complaining about `value` not being the correct + // type but it is + return { + type: tokenType, + loc, + range, + value, + }; +} +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +function convertTokens(ast) { + const result = []; + /** + * @param node the ts.Node + */ + function walk(node) { + // TypeScript generates tokens for types in JSDoc blocks. Comment tokens + // and their children should not be walked or added to the resulting tokens list. + if (isComment(node) || isJSDocComment(node)) { + return; + } + if (isToken(node) && node.kind !== SyntaxKind.EndOfFileToken) { + result.push(convertToken(node, ast)); + } + else { + node.getChildren(ast).forEach(walk); + } + } + walk(ast); + return result; +} +class TSError extends Error { + fileName; + location; + constructor(message, fileName, location) { + super(message); + this.fileName = fileName; + this.location = location; + Object.defineProperty(this, 'name', { + configurable: true, + enumerable: false, + value: new.target.name, + }); + } + // For old version of ESLint https://github.com/typescript-eslint/typescript-eslint/pull/6556#discussion_r1123237311 + get index() { + return this.location.start.offset; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L853 + get lineNumber() { + return this.location.start.line; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L854 + get column() { + return this.location.start.column; + } +} +exports.TSError = TSError; +function createError(message, ast, startIndex, endIndex = startIndex) { + const [start, end] = [startIndex, endIndex].map(offset => { + const { character: column, line } = ast.getLineAndCharacterOfPosition(offset); + return { column, line: line + 1, offset }; + }); + return new TSError(message, ast.fileName, { end, start }); +} +function nodeHasIllegalDecorators(node) { + return !!('illegalDecorators' in node && + node.illegalDecorators?.length); +} +function nodeHasTokens(n, ast) { + // If we have a token or node that has a non-zero width, it must have tokens. + // Note: getWidth() does not take trivia into account. + return n.kind === SyntaxKind.EndOfFileToken + ? !!n.jsDoc + : n.getWidth(ast) !== 0; +} +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +function firstDefined(array, callback) { + if (array === undefined) { + return undefined; + } + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result !== undefined) { + return result; + } + } + return undefined; +} +function identifierIsThisKeyword(id) { + return ((isAtLeast50 + ? ts.identifierToKeywordKind(id) + : // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + id.originalKeywordKind) === SyntaxKind.ThisKeyword); +} +function isThisIdentifier(node) { + return (!!node && + node.kind === SyntaxKind.Identifier && + identifierIsThisKeyword(node)); +} +function isThisInTypeQuery(node) { + if (!isThisIdentifier(node)) { + return false; + } + while (ts.isQualifiedName(node.parent) && node.parent.left === node) { + node = node.parent; + } + return node.parent.kind === SyntaxKind.TypeQuery; +} +// `ts.nodeIsMissing` +function nodeIsMissing(node) { + if (node === undefined) { + return true; + } + return (node.pos === node.end && + node.pos >= 0 && + node.kind !== SyntaxKind.EndOfFileToken); +} +// `ts.nodeIsPresent` +function nodeIsPresent(node) { + return !nodeIsMissing(node); +} +// `ts.getContainingFunction` +function getContainingFunction(node) { + return ts.findAncestor(node.parent, ts.isFunctionLike); +} +// `ts.hasAbstractModifier` +function hasAbstractModifier(node) { + return hasModifier(SyntaxKind.AbstractKeyword, node); +} +// `ts.getThisParameter` +function getThisParameter(signature) { + if (signature.parameters.length && !ts.isJSDocSignature(signature)) { + const thisParameter = signature.parameters[0]; + if (parameterIsThisKeyword(thisParameter)) { + return thisParameter; + } + } + return null; +} +// `ts.parameterIsThisKeyword` +function parameterIsThisKeyword(parameter) { + return isThisIdentifier(parameter.name); +} +// Rewrite version of `ts.nodeCanBeDecorated` +// Returns `true` for both `useLegacyDecorators: true` and `useLegacyDecorators: false` +function nodeCanBeDecorated(node) { + switch (node.kind) { + case SyntaxKind.ClassDeclaration: + return true; + case SyntaxKind.ClassExpression: + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: true` + return true; + case SyntaxKind.PropertyDeclaration: { + const { parent } = node; + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: true` + if (ts.isClassDeclaration(parent)) { + return true; + } + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: false` + if (ts.isClassLike(parent) && !hasAbstractModifier(node)) { + return true; + } + return false; + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: { + const { parent } = node; + // In `ts.nodeCanBeDecorated` + // when `useLegacyDecorators: true` uses `ts.isClassDeclaration` + // when `useLegacyDecorators: true` uses `ts.isClassLike` + return (Boolean(node.body) && + (ts.isClassDeclaration(parent) || ts.isClassLike(parent))); + } + case SyntaxKind.Parameter: { + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: false` + const { parent } = node; + const grandparent = parent.parent; + return (Boolean(parent) && + 'body' in parent && + Boolean(parent.body) && + (parent.kind === SyntaxKind.Constructor || + parent.kind === SyntaxKind.MethodDeclaration || + parent.kind === SyntaxKind.SetAccessor) && + getThisParameter(parent) !== node && + Boolean(grandparent) && + grandparent.kind === SyntaxKind.ClassDeclaration); + } + } + return false; +} +function isValidAssignmentTarget(node) { + switch (node.kind) { + case SyntaxKind.Identifier: + return true; + case SyntaxKind.PropertyAccessExpression: + case SyntaxKind.ElementAccessExpression: + if (node.flags & ts.NodeFlags.OptionalChain) { + return false; + } + return true; + case SyntaxKind.ParenthesizedExpression: + case SyntaxKind.TypeAssertionExpression: + case SyntaxKind.AsExpression: + case SyntaxKind.SatisfiesExpression: + case SyntaxKind.ExpressionWithTypeArguments: + case SyntaxKind.NonNullExpression: + return isValidAssignmentTarget(node.expression); + default: + return false; + } +} +function getNamespaceModifiers(node) { + // For following nested namespaces, use modifiers given to the topmost namespace + // export declare namespace foo.bar.baz {} + let modifiers = (0, getModifiers_1.getModifiers)(node); + let moduleDeclaration = node; + while ((!modifiers || modifiers.length === 0) && + ts.isModuleDeclaration(moduleDeclaration.parent)) { + const parentModifiers = (0, getModifiers_1.getModifiers)(moduleDeclaration.parent); + if (parentModifiers?.length) { + modifiers = parentModifiers; + } + moduleDeclaration = moduleDeclaration.parent; + } + return modifiers; +} +//# sourceMappingURL=node-utils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map new file mode 100644 index 00000000..ab7051b4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,8CAIC;AAED,wDAIC;AAQD,kDAMC;AAKD,kDAEC;AAKD,kCAMC;AAMD,0CAMC;AAKD,0BAIC;AAKD,8BAKC;AAaD,0DAqCC;AAKD,wDASC;AAMD,8BAMC;AAKD,kDAsBC;AAKD,4BAKC;AAcD,gCAIC;AAKD,gDAiBC;AAKD,wDAoBC;AAMD,sCAuBC;AAQD,8DAYC;AAKD,wCAEC;AAOD,8DAcC;AAKD,gDAIC;AAMD,gCAIC;AAKD,8CAIC;AAKD,0EAaC;AAKD,oCAiGC;AAKD,oCAkCC;AAOD,sCAoBC;AA2CD,kCA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C5C,KAAK,UAAU,CAAC,iBAAiB;YAC/B,OAAO,uBAAuB,CAE1B,IAMD,CAAC,UAAU,CACb,CAAC;QACJ;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED,SAAgB,qBAAqB,CACnC,IAA0B;IAE1B,gFAAgF;IAChF,4CAA4C;IAC5C,IAAI,SAAS,GAAG,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC;IACnC,IAAI,iBAAiB,GAAG,IAAI,CAAC;IAC7B,OACE,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;QACtC,EAAE,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAChD,CAAC;QACD,MAAM,eAAe,GAAG,IAAA,2BAAY,EAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;YAC5B,SAAS,GAAG,eAAe,CAAC;QAC9B,CAAC;QACD,iBAAiB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAC/C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts new file mode 100644 index 00000000..6de22f10 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts @@ -0,0 +1,17 @@ +import type { CacheDurationSeconds } from '@typescript-eslint/types'; +export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +export interface CacheLike { + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +/** + * A map with key-level expiration. + */ +export declare class ExpiringCache implements CacheLike { + #private; + constructor(cacheDurationSeconds: CacheDurationSeconds); + clear(): void; + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +//# sourceMappingURL=ExpiringCache.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map new file mode 100644 index 00000000..25de4e08 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,GAAG,EAAE,KAAK,CAAE,YAAW,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC;;gBAWzD,oBAAoB,EAAE,oBAAoB;IAItD,KAAK,IAAI,IAAI;IAIb,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS;IAmBhC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;CAWlC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js new file mode 100644 index 00000000..12ab8c7c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0; +exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +const ZERO_HR_TIME = [0, 0]; +/** + * A map with key-level expiration. + */ +class ExpiringCache { + #cacheDurationSeconds; + #map = new Map(); + constructor(cacheDurationSeconds) { + this.#cacheDurationSeconds = cacheDurationSeconds; + } + clear() { + this.#map.clear(); + } + get(key) { + const entry = this.#map.get(key); + if (entry?.value != null) { + if (this.#cacheDurationSeconds === 'Infinity') { + return entry.value; + } + const ageSeconds = process.hrtime(entry.lastSeen)[0]; + if (ageSeconds < this.#cacheDurationSeconds) { + // cache hit woo! + return entry.value; + } + // key has expired - clean it up to free up memory + this.#map.delete(key); + } + // no hit :'( + return undefined; + } + set(key, value) { + this.#map.set(key, { + lastSeen: this.#cacheDurationSeconds === 'Infinity' + ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry + ZERO_HR_TIME + : process.hrtime(), + value, + }); + return this; + } +} +exports.ExpiringCache = ExpiringCache; +//# sourceMappingURL=ExpiringCache.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map new file mode 100644 index 00000000..9fcb3977 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[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O,IAAI,CAAC;IACd,CAAC;CACF;AAjDD,sCAiDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts new file mode 100644 index 00000000..73af7479 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { TSESTreeOptions } from '../parser-options'; +import type { MutableParseSettings } from './index'; +export declare function createParseSettings(code: string | ts.SourceFile, tsestreeOptions?: Partial): MutableParseSettings; +export declare function clearTSConfigMatchCache(): void; +export declare function clearTSServerProjectService(): void; +//# sourceMappingURL=createParseSettings.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map new file mode 100644 index 00000000..f875b24e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAiCpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,GAAE,OAAO,CAAC,eAAe,CAAM,GAC7C,oBAAoB,CA2JtB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAElD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js new file mode 100644 index 00000000..8739a68d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js @@ -0,0 +1,214 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParseSettings = createParseSettings; +exports.clearTSConfigMatchCache = clearTSConfigMatchCache; +exports.clearTSServerProjectService = clearTSServerProjectService; +const debug_1 = __importDefault(require("debug")); +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +const createProjectService_1 = require("../create-program/createProjectService"); +const shared_1 = require("../create-program/shared"); +const source_files_1 = require("../source-files"); +const ExpiringCache_1 = require("./ExpiringCache"); +const getProjectConfigFiles_1 = require("./getProjectConfigFiles"); +const inferSingleRun_1 = require("./inferSingleRun"); +const resolveProjectList_1 = require("./resolveProjectList"); +const warnAboutTSVersion_1 = require("./warnAboutTSVersion"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings'); +let TSCONFIG_MATCH_CACHE; +let TSSERVER_PROJECT_SERVICE = null; +// NOTE - we intentionally use "unnecessary" `?.` here because in TS<5.3 this enum doesn't exist +// This object exists so we can centralize these for tracking and so we don't proliferate these across the file +// https://github.com/microsoft/TypeScript/issues/56579 +/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +const JSDocParsingMode = { + ParseAll: ts.JSDocParsingMode?.ParseAll, + ParseForTypeErrors: ts.JSDocParsingMode?.ParseForTypeErrors, + ParseForTypeInfo: ts.JSDocParsingMode?.ParseForTypeInfo, + ParseNone: ts.JSDocParsingMode?.ParseNone, +}; +/* eslint-enable @typescript-eslint/no-unnecessary-condition */ +function createParseSettings(code, tsestreeOptions = {}) { + const codeFullText = enforceCodeString(code); + const singleRun = (0, inferSingleRun_1.inferSingleRun)(tsestreeOptions); + const tsconfigRootDir = typeof tsestreeOptions.tsconfigRootDir === 'string' + ? tsestreeOptions.tsconfigRootDir + : process.cwd(); + const passedLoggerFn = typeof tsestreeOptions.loggerFn === 'function'; + const filePath = (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' && + tsestreeOptions.filePath !== '' + ? tsestreeOptions.filePath + : getFileName(tsestreeOptions.jsx), tsconfigRootDir); + const extension = node_path_1.default.extname(filePath).toLowerCase(); + const jsDocParsingMode = (() => { + switch (tsestreeOptions.jsDocParsingMode) { + case 'all': + return JSDocParsingMode.ParseAll; + case 'none': + return JSDocParsingMode.ParseNone; + case 'type-info': + return JSDocParsingMode.ParseForTypeInfo; + default: + return JSDocParsingMode.ParseAll; + } + })(); + const parseSettings = { + loc: tsestreeOptions.loc === true, + range: tsestreeOptions.range === true, + allowInvalidAST: tsestreeOptions.allowInvalidAST === true, + code, + codeFullText, + comment: tsestreeOptions.comment === true, + comments: [], + debugLevel: tsestreeOptions.debugLevel === true + ? new Set(['typescript-eslint']) + : Array.isArray(tsestreeOptions.debugLevel) + ? new Set(tsestreeOptions.debugLevel) + : new Set(), + errorOnTypeScriptSyntacticAndSemanticIssues: false, + errorOnUnknownASTType: tsestreeOptions.errorOnUnknownASTType === true, + extraFileExtensions: Array.isArray(tsestreeOptions.extraFileExtensions) && + tsestreeOptions.extraFileExtensions.every(ext => typeof ext === 'string') + ? tsestreeOptions.extraFileExtensions + : [], + filePath, + jsDocParsingMode, + jsx: tsestreeOptions.jsx === true, + log: typeof tsestreeOptions.loggerFn === 'function' + ? tsestreeOptions.loggerFn + : tsestreeOptions.loggerFn === false + ? () => { } // eslint-disable-line @typescript-eslint/no-empty-function + : console.log, // eslint-disable-line no-console + preserveNodeMaps: tsestreeOptions.preserveNodeMaps !== false, + programs: Array.isArray(tsestreeOptions.programs) + ? tsestreeOptions.programs + : null, + projects: new Map(), + projectService: tsestreeOptions.projectService || + (tsestreeOptions.project && + tsestreeOptions.projectService !== false && + process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE === 'true') + ? (TSSERVER_PROJECT_SERVICE ??= (0, createProjectService_1.createProjectService)(tsestreeOptions.projectService, jsDocParsingMode, tsconfigRootDir)) + : undefined, + setExternalModuleIndicator: tsestreeOptions.sourceType === 'module' || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mjs) || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mts) + ? (file) => { + file.externalModuleIndicator = true; + } + : undefined, + singleRun, + suppressDeprecatedPropertyWarnings: tsestreeOptions.suppressDeprecatedPropertyWarnings ?? + process.env.NODE_ENV !== 'test', + tokens: tsestreeOptions.tokens === true ? [] : null, + tsconfigMatchCache: (TSCONFIG_MATCH_CACHE ??= new ExpiringCache_1.ExpiringCache(singleRun + ? 'Infinity' + : tsestreeOptions.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)), + tsconfigRootDir, + }; + // debug doesn't support multiple `enable` calls, so have to do it all at once + if (parseSettings.debugLevel.size > 0) { + const namespaces = []; + if (parseSettings.debugLevel.has('typescript-eslint')) { + namespaces.push('typescript-eslint:*'); + } + if (parseSettings.debugLevel.has('eslint') || + // make sure we don't turn off the eslint debug if it was enabled via --debug + debug_1.default.enabled('eslint:*,-eslint:code-path')) { + // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25 + namespaces.push('eslint:*,-eslint:code-path'); + } + debug_1.default.enable(namespaces.join(',')); + } + if (Array.isArray(tsestreeOptions.programs)) { + if (!tsestreeOptions.programs.length) { + throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`); + } + log('parserOptions.programs was provided, so parserOptions.project will be ignored.'); + } + // Providing a program or project service overrides project resolution + if (!parseSettings.programs && !parseSettings.projectService) { + parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({ + cacheLifetime: tsestreeOptions.cacheLifetime, + project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, tsestreeOptions.project), + projectFolderIgnoreList: tsestreeOptions.projectFolderIgnoreList, + singleRun: parseSettings.singleRun, + tsconfigRootDir, + }); + } + // No type-aware linting which means that cross-file (or even same-file) JSDoc is useless + // So in this specific case we default to 'none' if no value was provided + if (tsestreeOptions.jsDocParsingMode == null && + parseSettings.projects.size === 0 && + parseSettings.programs == null && + parseSettings.projectService == null) { + parseSettings.jsDocParsingMode = JSDocParsingMode.ParseNone; + } + (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings, passedLoggerFn); + return parseSettings; +} +function clearTSConfigMatchCache() { + TSCONFIG_MATCH_CACHE?.clear(); +} +function clearTSServerProjectService() { + TSSERVER_PROJECT_SERVICE = null; +} +/** + * Ensures source code is a string. + */ +function enforceCodeString(code) { + return (0, source_files_1.isSourceFile)(code) + ? code.getFullText(code) + : typeof code === 'string' + ? code + : String(code); +} +/** + * Compute the filename based on the parser options. + * + * Even if jsx option is set in typescript compiler, filename still has to + * contain .tsx file extension. + */ +function getFileName(jsx) { + return jsx ? 'estree.tsx' : 'estree.ts'; +} +//# sourceMappingURL=createParseSettings.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map new file mode 100644 index 00000000..69a39988 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,kDA8JC;AAED,0DAEC;AAED,kEAEC;AA7MD,kDAA0B;AAC1B,0DAA6B;AAC7B,+CAAiC;AAMjC,iFAA8E;AAC9E,qDAA8D;AAC9D,kDAA+C;AAC/C,mDAGyB;AACzB,mEAAgE;AAChE,qDAAkD;AAClD,6DAA0D;AAC1D,6DAA0D;AAE1D,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,8EAA8E,CAC/E,CAAC;AAEF,IAAI,oBAA0D,CAAC;AAC/D,IAAI,wBAAwB,GAAkC,IAAI,CAAC;AAEnE,gGAAgG;AAChG,+GAA+G;AAC/G,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SAAS,EAAE,aAAa,CAAC,SAAS;YAClC,eAAe;SAChB,CAAC,CAAC;IACL,CAAC;IAED,yFAAyF;IACzF,yEAAyE;IACzE,IACE,eAAe,CAAC,gBAAgB,IAAI,IAAI;QACxC,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;QACjC,aAAa,CAAC,QAAQ,IAAI,IAAI;QAC9B,aAAa,CAAC,cAAc,IAAI,IAAI,EACpC,CAAC;QACD,aAAa,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,SAAS,CAAC;IAC9D,CAAC;IAED,IAAA,uCAAkB,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAElD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAgB,uBAAuB;IACrC,oBAAoB,EAAE,KAAK,EAAE,CAAC;AAChC,CAAC;AAED,SAAgB,2BAA2B;IACzC,wBAAwB,GAAG,IAAI,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,IAAa;IACtC,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC;QACvB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACxB,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;YACxB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,WAAW,CAAC,GAAa;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts new file mode 100644 index 00000000..76103cf8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts @@ -0,0 +1,13 @@ +import type { TSESTreeOptions } from '../parser-options'; +import type { ParseSettings } from './index'; +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +export declare function getProjectConfigFiles(parseSettings: Pick, project: TSESTreeOptions['project']): string[] | null; +//# sourceMappingURL=getProjectConfigFiles.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map new file mode 100644 index 00000000..bf99e5dd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAClC,MAAM,EAAE,GAAG,IAAI,CAuCjB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js new file mode 100644 index 00000000..59cba04a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js @@ -0,0 +1,83 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProjectConfigFiles = getProjectConfigFiles; +const debug_1 = __importDefault(require("debug")); +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles'); +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +function getProjectConfigFiles(parseSettings, project) { + if (project !== true) { + if (project == null || project === false) { + return null; + } + if (Array.isArray(project)) { + return project; + } + return [project]; + } + log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath); + let directory = path.dirname(parseSettings.filePath); + const checkedDirectories = [directory]; + do { + log('Checking tsconfig.json path: %s', directory); + const tsconfigPath = path.join(directory, 'tsconfig.json'); + const cached = parseSettings.tsconfigMatchCache.get(directory) ?? + (fs.existsSync(tsconfigPath) && tsconfigPath); + if (cached) { + for (const directory of checkedDirectories) { + parseSettings.tsconfigMatchCache.set(directory, cached); + } + return [cached]; + } + directory = path.dirname(directory); + checkedDirectories.push(directory); + } while (directory.length > 1 && + directory.length >= parseSettings.tsconfigRootDir.length); + throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`); +} +//# sourceMappingURL=getProjectConfigFiles.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map new file mode 100644 index 00000000..670d0ded --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getProjectConfigFiles.js","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDA6CC;AA/DD,kDAA0B;AAC1B,4CAA8B;AAC9B,gDAAkC;AAKlC,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,SAAgB,q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AC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts new file mode 100644 index 00000000..fcce131d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts @@ -0,0 +1,127 @@ +import type * as ts from 'typescript'; +import type { ProjectServiceSettings } from '../create-program/createProjectService'; +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTree } from '../ts-estree'; +import type { CacheLike } from './ExpiringCache'; +type DebugModule = 'eslint' | 'typescript' | 'typescript-eslint'; +declare module 'typescript' { + enum JSDocParsingMode { + } +} +declare module 'typescript/lib/tsserverlibrary' { + enum JSDocParsingMode { + } +} +/** + * Internal settings used by the parser to run on a file. + */ +export interface MutableParseSettings { + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + */ + allowInvalidAST: boolean; + /** + * Code of the file being parsed, or raw source file containing it. + */ + code: string | ts.SourceFile; + /** + * Full text of the file being parsed. + */ + codeFullText: string; + /** + * Whether the `comment` parse option is enabled. + */ + comment: boolean; + /** + * If the `comment` parse option is enabled, retrieved comments. + */ + comments: TSESTree.Comment[]; + /** + * Which debug areas should be logged. + */ + debugLevel: Set; + /** + * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. + */ + errorOnTypeScriptSyntacticAndSemanticIssues: boolean; + /** + * Whether to error if an unknown AST node type is encountered. + */ + errorOnUnknownASTType: boolean; + /** + * Any non-standard file extensions which will be parsed. + */ + extraFileExtensions: string[]; + /** + * Path of the file being parsed. + */ + filePath: string; + /** + * Sets the external module indicator on the source file. + * Used by Typescript to determine if a sourceFile is an external module. + * + * needed to always parsing `mjs`/`mts` files as ESM + */ + setExternalModuleIndicator?: (file: ts.SourceFile) => void; + /** + * JSDoc parsing style to pass through to TypeScript + */ + jsDocParsingMode: ts.JSDocParsingMode; + /** + * Whether parsing of JSX is enabled. + * + * @remarks The applicable file extension is still required. + */ + jsx: boolean; + /** + * Whether to add `loc` information to each node. + */ + loc: boolean; + /** + * Log function, if not `console.log`. + */ + log: (message: string) => void; + /** + * Whether two-way AST node maps are preserved during the AST conversion process. + */ + preserveNodeMaps?: boolean; + /** + * One or more instances of TypeScript Program objects to be used for type information. + */ + programs: Iterable | null; + /** + * Normalized paths to provided project paths. + */ + projects: ReadonlyMap; + /** + * TypeScript server to power program creation. + */ + projectService: ProjectServiceSettings | undefined; + /** + * Whether to add the `range` property to AST nodes. + */ + range: boolean; + /** + * Whether this is part of a single run, rather than a long-running process. + */ + singleRun: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings: boolean; + /** + * If the `tokens` parse option is enabled, retrieved tokens. + */ + tokens: TSESTree.Token[] | null; + /** + * Caches searches for TSConfigs from project directories. + */ + tsconfigMatchCache: CacheLike; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir: string; +} +export type ParseSettings = Readonly; +export {}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map new file mode 100644 index 00000000..dda000a8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MA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;IAEb;;OAEG;IACH,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAE7C;;OAEG;IACH,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEnD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,kCAAkC,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js new file mode 100644 index 00000000..aa219d8f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map new file mode 100644 index 00000000..66056421 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts new file mode 100644 index 00000000..1b28697f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts @@ -0,0 +1,15 @@ +import type { TSESTreeOptions } from '../parser-options'; +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; +//# sourceMappingURL=inferSingleRun.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map new file mode 100644 index 00000000..0c3f82e8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAsD5E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js new file mode 100644 index 00000000..0f71774e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js @@ -0,0 +1,66 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.inferSingleRun = inferSingleRun; +const node_path_1 = __importDefault(require("node:path")); +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +function inferSingleRun(options) { + // https://github.com/typescript-eslint/typescript-eslint/issues/9504 + // There's no support (yet?) for extraFileExtensions in single-run hosts. + // Only watch program hosts and project service can support that. + if (options?.extraFileExtensions?.length) { + return false; + } + if ( + // single-run implies type-aware linting - no projects means we can't be in single-run mode + options?.project == null || + // programs passed via options means the user should be managing the programs, so we shouldn't + // be creating our own single-run programs accidentally + options.programs != null) { + return false; + } + // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN + if (process.env.TSESTREE_SINGLE_RUN === 'false') { + return false; + } + if (process.env.TSESTREE_SINGLE_RUN === 'true') { + return true; + } + // Ideally, we'd like to try to auto-detect CI or CLI usage that lets us infer a single CLI run. + if (!options.disallowAutomaticSingleRunInference) { + const possibleEslintBinPaths = [ + 'node_modules/.bin/eslint', // npm or yarn repo + 'node_modules/eslint/bin/eslint.js', // pnpm repo + ]; + if ( + // Default to single runs for CI processes. CI=true is set by most CI providers by default. + process.env.CI === 'true' || + // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...` + possibleEslintBinPaths.some(binPath => process.argv.length > 1 && + process.argv[1].endsWith(node_path_1.default.normalize(binPath)))) { + return !process.argv.includes('--fix'); + } + } + /** + * We default to assuming that this run could be part of a long-running session (e.g. in an IDE) + * and watch programs will therefore be required. + * + * Unless we can reliably infer otherwise, we default to assuming that this run could be part + * of a long-running session (e.g. in an IDE) and watch programs will therefore be required + */ + return false; +} +//# sourceMappingURL=inferSingleRun.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map new file mode 100644 index 00000000..f25b8f3f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;;;AAgBA,wCAsDC;AAtED,0DAA6B;AAI7B;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE,qEAAqE;IACrE,yEAAyE;IACzE,iEAAiE;IACjE,IAAI,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;IACE,2FAA2F;IAC3F,OAAO,EAAE,OAAO,IAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,OAAO,CAAC,QAAQ,IAAI,IAAI,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gGAAgG;IAChG,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,CAAC;QACjD,MAAM,sBAAsB,GAAG;YAC7B,0BAA0B,EAAE,mBAAmB;YAC/C,mCAAmC,EAAE,YAAY;SAClD,CAAC;QACF;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,sBAAsB,CAAC,IAAI,CACzB,OAAO,CAAC,EAAE,CACR,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CACpD,EACD,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts new file mode 100644 index 00000000..4067aec9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts @@ -0,0 +1,19 @@ +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTreeOptions } from '../parser-options'; +export declare function clearGlobCache(): void; +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +export declare function resolveProjectList(options: Readonly<{ + cacheLifetime?: TSESTreeOptions['cacheLifetime']; + project: string[] | null; + projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; + singleRun: boolean; + tsconfigRootDir: string; +}>): ReadonlyMap; +/** + * Exported for testing purposes only + * @internal + */ +export declare function clearGlobResolutionCache(): void; +//# sourceMappingURL=resolveProjectList.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map new file mode 100644 index 00000000..ac7258ed --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAqBzD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACzB,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAgFpC;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js new file mode 100644 index 00000000..25bb0d74 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js @@ -0,0 +1,100 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearGlobCache = clearGlobCache; +exports.resolveProjectList = resolveProjectList; +exports.clearGlobResolutionCache = clearGlobResolutionCache; +const debug_1 = __importDefault(require("debug")); +const fast_glob_1 = require("fast-glob"); +const is_glob_1 = __importDefault(require("is-glob")); +const shared_1 = require("../create-program/shared"); +const ExpiringCache_1 = require("./ExpiringCache"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList'); +let RESOLUTION_CACHE = null; +function clearGlobCache() { + RESOLUTION_CACHE?.clear(); +} +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +function resolveProjectList(options) { + const sanitizedProjects = []; + // Normalize and sanitize the project paths + if (options.project != null) { + for (const project of options.project) { + if (typeof project === 'string') { + sanitizedProjects.push(project); + } + } + } + if (sanitizedProjects.length === 0) { + return new Map(); + } + const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']) + .filter(folder => typeof folder === 'string') + // prefix with a ! for not match glob + .map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); + const cacheKey = getHash({ + project: sanitizedProjects, + projectFolderIgnoreList, + tsconfigRootDir: options.tsconfigRootDir, + }); + if (RESOLUTION_CACHE == null) { + // note - we initialize the global cache based on the first config we encounter. + // this does mean that you can't have multiple lifetimes set per folder + // I doubt that anyone will really bother reconfiguring this, let alone + // try to do complicated setups, so we'll deal with this later if ever. + RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun + ? 'Infinity' + : options.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS); + } + else { + const cached = RESOLUTION_CACHE.get(cacheKey); + if (cached) { + return cached; + } + } + // Transform glob patterns into paths + const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project)); + const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); + let globProjectPaths = []; + if (globProjects.length > 0) { + // Although fast-glob supports multiple patterns, fast-glob returns arbitrary order of results + // to improve performance. To ensure the order is correct, we need to call fast-glob for each pattern + // separately and then concatenate the results in patterns' order. + globProjectPaths = globProjects.flatMap(pattern => (0, fast_glob_1.sync)(pattern, { + cwd: options.tsconfigRootDir, + ignore: projectFolderIgnoreList, + })); + } + const uniqueCanonicalProjectPaths = new Map([...nonGlobProjects, ...globProjectPaths].map(project => [ + (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)), + (0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir), + ])); + log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths); + RESOLUTION_CACHE.set(cacheKey, uniqueCanonicalProjectPaths); + return uniqueCanonicalProjectPaths; +} +function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) { + // create a stable representation of the config + const hashObject = { + tsconfigRootDir, + // the project order does matter and can impact the resolved globs + project, + // the ignore order won't doesn't ever matter + projectFolderIgnoreList: [...projectFolderIgnoreList].sort(), + }; + return (0, shared_1.createHash)(JSON.stringify(hashObject)); +} +/** + * Exported for testing purposes only + * @internal + */ +function clearGlobResolutionCache() { + RESOLUTION_CACHE?.clear(); + RESOLUTION_CACHE = null; +} +//# sourceMappingURL=resolveProjectList.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map new file mode 100644 index 00000000..e0540108 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;AA0BA,wCAEC;AAKD,gDAwFC;AA2BD,4DAGC;AAvJD,kDAA0B;AAC1B,yCAA6C;AAC7C,sDAA6B;AAK7B,qDAIkC;AAClC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAGT,IAAI,CAAC;AAEhB,SAAgB,cAAc;IAC5B,gBAAgB,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OAME;IAEF,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,2CAA2C;IAC3C,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QAC5B,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACtC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,MAAM,uBAAuB,GAAG,CAC9B,OAAO,CAAC,uBAAuB,IA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;QACrG,kEAAkE;QAClE,gBAAgB,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAChD,IAAA,gBAAQ,EAAC,OAAO,EAAE;YAChB,GAAG,EAAE,OAAO,CAAC,eAAe;YAC5B,MAAM,EAAE,uBAAuB;SAChC,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,2BAA2B,GAAG,IAAI,GAAG,CACzC,CAAC,GAAG,eAAe,EAAE,GAAG,gBAAgB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACvD,IAAA,6BAAoB,EAClB,IAAA,2BAAkB,EAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CACrD;QACD,IAAA,2BAAkB,EAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC;KACrD,CAAC,CACH,CAAC;IAEF,GAAG,CACD,gEAAgE,EAChE,2BAA2B,CAC5B,CAAC;IAEF,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IAC5D,OAAO,2BAA2B,CAAC;AACrC,CAAC;AAED,SAAS,OAAO,CAAC,EACf,OAAO,EACP,uBAAuB,EACvB,eAAe,GAKf;IACA,+CAA+C;IAC/C,MAAM,UAAU,GAAG;QACjB,eAAe;QACf,kEAAkE;QAClE,OAAO;QACP,6CAA6C;QAC7C,uBAAuB,EAAE,CAAC,GAAG,uBAAuB,CAAC,CAAC,IAAI,EAAE;KAC7D,CAAC;IAEF,OAAO,IAAA,mBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB;IACtC,gBAAgB,EAAE,KAAK,EAAE,CAAC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts new file mode 100644 index 00000000..e0abdc5f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts @@ -0,0 +1,7 @@ +import type { ParseSettings } from './index'; +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +export declare const SUPPORTED_TYPESCRIPT_VERSIONS = ">=4.8.4 <5.8.0"; +export declare function warnAboutTSVersion(parseSettings: ParseSettings, passedLoggerFn: boolean): void; +//# sourceMappingURL=warnAboutTSVersion.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map new file mode 100644 index 00000000..7e51a2b2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAe9D,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,OAAO,GACtB,IAAI,CA0BN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js new file mode 100644 index 00000000..10ac3e95 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SUPPORTED_TYPESCRIPT_VERSIONS = void 0; +exports.warnAboutTSVersion = warnAboutTSVersion; +const semver_1 = __importDefault(require("semver")); +const ts = __importStar(require("typescript")); +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +exports.SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.8.4 <5.8.0'; +/* + * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one + * List them all separately here, so we can automatically create the full string + */ +const SUPPORTED_PRERELEASE_RANGES = []; +const ACTIVE_TYPESCRIPT_VERSION = ts.version; +const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [exports.SUPPORTED_TYPESCRIPT_VERSIONS, ...SUPPORTED_PRERELEASE_RANGES].join(' || ')); +let warnedAboutTSVersion = false; +function warnAboutTSVersion(parseSettings, passedLoggerFn) { + if (isRunningSupportedTypeScriptVersion || warnedAboutTSVersion) { + return; + } + if (passedLoggerFn || + // See https://github.com/typescript-eslint/typescript-eslint/issues/7896 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + (typeof process === 'undefined' ? false : process.stdout?.isTTY)) { + const border = '============='; + const versionWarning = [ + border, + 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.', + 'You may find that it works just fine, or you may not.', + `SUPPORTED TYPESCRIPT VERSIONS: ${exports.SUPPORTED_TYPESCRIPT_VERSIONS}`, + `YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`, + 'Please only submit bug reports when using the officially supported version.', + border, + ].join('\n\n'); + parseSettings.log(versionWarning); + } + warnedAboutTSVersion = true; +} +//# sourceMappingURL=warnAboutTSVersion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map new file mode 100644 index 00000000..e970adc3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,gDA6BC;AApDD,oDAA4B;AAC5B,+CAAiC;AAIjC;;GAEG;AACU,QAAA,6BAA6B,GAAG,gBAAgB,CAAC;AAE9D;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,qCAA6B,EAAE,GAAG,2BAA2B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC7E,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAChC,aAA4B,EAC5B,cAAuB;IAEvB,IAAI,mCAAmC,IAAI,oBAAoB,EAAE,CAAC;QAChE,OAAO;IACT,CAAC;IAED,IACE,cAAc;QACd,yEAAyE;QACzE,uEAAuE;QACvE,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAChE,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC;QAC/B,MAAM,cAAc,GAAG;YACrB,MAAM;YACN,uIAAuI;YACvI,uDAAuD;YACvD,kCAAkC,qCAA6B,EAAE;YACjE,4BAA4B,yBAAyB,EAAE;YACvD,6EAA6E;YAC7E,MAAM;SACP,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEf,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,GAAG,IAAI,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts new file mode 100644 index 00000000..307ab20b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts @@ -0,0 +1,206 @@ +import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions, SourceType } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; +export type { ProjectServiceOptions } from '@typescript-eslint/types'; +interface ParseOptions { + /** + * Specify the `sourceType`. + * For more details, see https://github.com/typescript-eslint/typescript-eslint/pull/9121 + */ + sourceType?: SourceType; + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + * This case only usually occurs when attempting to lint invalid code. + */ + allowInvalidAST?: boolean; + /** + * create a top-level comments array containing all comments + */ + comment?: boolean; + /** + * An array of modules to turn explicit debugging on for. + * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` + * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` + * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions + * + * For convenience, also supports a boolean: + * - true === ['typescript-eslint'] + * - false === [] + */ + debugLevel?: DebugLevel; + /** + * Cause the parser to error if it encounters an unknown AST node type (useful for testing). + * This case only usually occurs when TypeScript releases new features. + */ + errorOnUnknownASTType?: boolean; + /** + * Absolute (or relative to `cwd`) path to the file being parsed. + */ + filePath?: string; + /** + * If you are using TypeScript version >=5.3 then this option can be used as a performance optimization. + * + * The valid values for this rule are: + * - `'all'` - parse all JSDoc comments, always. + * - `'none'` - parse no JSDoc comments, ever. + * - `'type-info'` - parse just JSDoc comments that are required to provide correct type-info. TS will always parse JSDoc in non-TS files, but never in TS files. + * + * If you do not rely on JSDoc tags from the TypeScript AST, then you can safely set this to `'none'` to improve performance. + */ + jsDocParsingMode?: JSDocParsingMode; + /** + * Enable parsing of JSX. + * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html + * + * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the + * TypeScript compiler has its own internal handling for known file extensions. + * + * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx + */ + jsx?: boolean; + /** + * Controls whether the `loc` information to each node. + * The `loc` property is an object which contains the exact line/column the node starts/ends on. + * This is similar to the `range` property, except it is line/column relative. + */ + loc?: boolean; + loggerFn?: ((message: string) => void) | false; + /** + * Controls whether the `range` property is included on AST nodes. + * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. + * This is similar to the `loc` property, except this is the absolute index. + */ + range?: boolean; + /** + * Set to true to create a top-level array containing all tokens from the file. + */ + tokens?: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings?: boolean; +} +interface ParseAndGenerateServicesOptions extends ParseOptions { + /** + * Granular control of the expiry lifetime of our internal caches. + * You can specify the number of seconds as an integer number, or the string + * 'Infinity' if you never want the cache to expire. + * + * By default cache entries will be evicted after 30 seconds, or will persist + * indefinitely if `disallowAutomaticSingleRunInference = false` AND the parser + * infers that it is a single run. + */ + cacheLifetime?: { + /** + * Glob resolution for `parserOptions.project` values. + */ + glob?: CacheDurationSeconds; + }; + /** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. + * + * By default, we will use common heuristics to infer whether ESLint is being + * used as part of a single run. This option disables those heuristics, and + * therefore the performance optimizations gained by them. + * + * In other words, typescript-eslint is faster by default, and this option + * disables an automatic performance optimization. + * + * This setting's default value can be specified by setting a `TSESTREE_SINGLE_RUN` + * environment variable to `"false"` or `"true"`. + * Otherwise, the default value is `false`. + */ + disallowAutomaticSingleRunInference?: boolean; + /** + * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. + */ + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + /** + * When `project` is provided, this controls the non-standard file extensions which will be parsed. + * It accepts an array of file extensions, each preceded by a `.`. + * + * NOTE: When used with {@link projectService}, full project reloads may occur. + */ + extraFileExtensions?: string[]; + /** + * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. + * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. + */ + filePath?: string; + /** + * Allows the user to control whether or not two-way AST node maps are preserved + * during the AST conversion process. + * + * By default: the AST node maps are NOT preserved, unless `project` has been specified, + * in which case the maps are made available on the returned `parserServices`. + * + * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, + * regardless of whether or not `project` is in use. + */ + preserveNodeMaps?: boolean; + /** + * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), + * or `true` to find the nearest tsconfig.json to the file. + * If this is provided, type information will be returned. + * + * If set to `false`, `null` or `undefined` type information will not be returned. + * + * Note that {@link projectService} is now preferred. + */ + project?: boolean | string | string[] | null; + /** + * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from + * being matched by the globs. + * This accepts an array of globs to ignore. + * + * By default, this is set to ["**\/node_modules/**"] + */ + projectFolderIgnoreList?: string[]; + /** + * Whether to create a shared TypeScript project service to power program creation. + */ + projectService?: boolean | ProjectServiceOptions; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir?: string; + /** + * An array of one or more instances of TypeScript Program objects to be used for type information. + * This overrides any program or programs that would have been computed from the `project` option. + * All linted files must be part of the provided program(s). + */ + programs?: ts.Program[] | null; +} +export type TSESTreeOptions = ParseAndGenerateServicesOptions; +export interface ParserWeakMap { + get(key: Key): Value; + has(key: unknown): boolean; +} +export interface ParserWeakMapESTreeToTSNode { + get(key: KeyBase): TSESTreeToTSNode; + has(key: unknown): boolean; +} +export interface ParserServicesBase { + emitDecoratorMetadata: boolean | undefined; + experimentalDecorators: boolean | undefined; +} +export interface ParserServicesNodeMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined; + getTypeAtLocation: (node: TSESTree.Node) => ts.Type; + program: ts.Program; +} +export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + program: null; +} +export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map new file mode 100644 index 00000000..b861338e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/E,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAMtE,UAAU,YAAY;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAEl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typescript-eslint/typescript-estree/dist/parser-options.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts new file mode 100644 index 00000000..eacc856c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts @@ -0,0 +1,19 @@ +import type * as ts from 'typescript'; +import type { ParserServices, TSESTreeOptions } from './parser-options'; +import type { TSESTree } from './ts-estree'; +declare function clearProgramCache(): void; +declare function clearDefaultProjectMatchedFiles(): void; +type AST = (T['comment'] extends true ? { + comments: TSESTree.Comment[]; +} : {}) & (T['tokens'] extends true ? { + tokens: TSESTree.Token[]; +} : {}) & TSESTree.Program; +interface ParseAndGenerateServicesResult { + ast: AST; + services: ParserServices; +} +declare function parse(code: string, options?: T): AST; +declare function clearParseAndGenerateServicesCalls(): void; +declare function parseAndGenerateServices(code: string | ts.SourceFile, tsestreeOptions: T): ParseAndGenerateServicesResult; +export { type AST, clearDefaultProjectMatchedFiles, clearParseAndGenerateServicesCalls, clearProgramCache, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, }; +//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map new file mode 100644 index 00000000..1a972b96 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4B5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAGD,iBAAS,+BAA+B,IAAI,IAAI,CAE/C;AA8CD,KAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAC5D;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAChC,EAAE,CAAC,GACL,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,GAC9D,QAAQ,CAAC,OAAO,CAAC;AAGnB,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA4CD,iBAAS,kCAAkC,IAAI,IAAI,CAElD;AAED,iBAAS,wBAAwB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3E,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,EAAE,CAAC,GACjB,8BAA8B,CAAC,CAAC,CAAC,CA+GnC;AAED,OAAO,EACL,KAAK,GAAG,EACR,+BAA+B,EAC/B,kCAAkC,EAClC,iBAAiB,EACjB,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js new file mode 100644 index 00000000..b0f56381 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js @@ -0,0 +1,181 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearDefaultProjectMatchedFiles = clearDefaultProjectMatchedFiles; +exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; +exports.clearProgramCache = clearProgramCache; +exports.parse = parse; +exports.parseAndGenerateServices = parseAndGenerateServices; +const debug_1 = __importDefault(require("debug")); +const ast_converter_1 = require("./ast-converter"); +const convert_1 = require("./convert"); +const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram"); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +const createParserServices_1 = require("./createParserServices"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors"); +const useProgramFromProjectService_1 = require("./useProgramFromProjectService"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser'); +/** + * Cache existing programs for the single run use-case. + * + * clearProgramCache() is only intended to be used in testing to ensure the parser is clean between tests. + */ +const existingPrograms = new Map(); +function clearProgramCache() { + existingPrograms.clear(); +} +const defaultProjectMatchedFiles = new Set(); +function clearDefaultProjectMatchedFiles() { + defaultProjectMatchedFiles.clear(); +} +/** + * @param parseSettings Internal settings for parsing the file + * @param hasFullTypeInformation True if the program should be attempted to be calculated from provided tsconfig files + * @returns Returns a source file and program corresponding to the linted code + */ +function getProgramAndAST(parseSettings, hasFullTypeInformation) { + if (parseSettings.projectService) { + const fromProjectService = (0, useProgramFromProjectService_1.useProgramFromProjectService)(parseSettings.projectService, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles); + if (fromProjectService) { + return fromProjectService; + } + } + if (parseSettings.programs) { + const fromProvidedPrograms = (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings); + if (fromProvidedPrograms) { + return fromProvidedPrograms; + } + } + // no need to waste time creating a program as the caller didn't want parser services + // so we can save time and just create a lonesome source file + if (!hasFullTypeInformation) { + return (0, createSourceFile_1.createNoProgram)(parseSettings); + } + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, (0, getWatchProgramsForProjects_1.getWatchProgramsForProjects)(parseSettings)); +} +function parse(code, options) { + const { ast } = parseWithNodeMapsInternal(code, options, false); + return ast; +} +function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); + /** + * Ensure users do not attempt to use parse() when they need parseAndGenerateServices() + */ + if (options?.errorOnTypeScriptSyntacticAndSemanticIssues) { + throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`); + } + /** + * Create a ts.SourceFile directly, no ts.Program is needed for a simple parse + */ + const ast = (0, createSourceFile_1.createSourceFile)(parseSettings); + /** + * Convert the TypeScript AST to an ESTree-compatible one + */ + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + return { + ast: estree, + esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, + }; +} +let parseAndGenerateServicesCalls = {}; +// Privately exported utility intended for use in typescript-eslint unit tests only +function clearParseAndGenerateServicesCalls() { + parseAndGenerateServicesCalls = {}; +} +function parseAndGenerateServices(code, tsestreeOptions) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, tsestreeOptions); + /** + * If this is a single run in which the user has not provided any existing programs but there + * are programs which need to be created from the provided "project" option, + * create an Iterable which will lazily create the programs as needed by the iteration logic + */ + if (parseSettings.singleRun && + !parseSettings.programs && + parseSettings.projects.size > 0) { + parseSettings.programs = { + *[Symbol.iterator]() { + for (const configFile of parseSettings.projects) { + const existingProgram = existingPrograms.get(configFile[0]); + if (existingProgram) { + yield existingProgram; + } + else { + log('Detected single-run/CLI usage, creating Program once ahead of time for project: %s', configFile); + const newProgram = (0, useProvidedPrograms_1.createProgramFromConfigFile)(configFile[1]); + existingPrograms.set(configFile[0], newProgram); + yield newProgram; + } + } + }, + }; + } + const hasFullTypeInformation = parseSettings.programs != null || + parseSettings.projects.size > 0 || + !!parseSettings.projectService; + if (typeof tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues === + 'boolean' && + tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues) { + parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true; + } + if (parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues && + !hasFullTypeInformation) { + throw new Error('Cannot calculate TypeScript semantic issues without a valid project.'); + } + /** + * If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file, + * it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional + * 10 times in order to apply all possible fixes for the file). + * + * In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source + * with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source. + */ + if (parseSettings.singleRun && tsestreeOptions.filePath) { + parseAndGenerateServicesCalls[tsestreeOptions.filePath] = + (parseAndGenerateServicesCalls[tsestreeOptions.filePath] || 0) + 1; + } + const { ast, program } = parseSettings.singleRun && + tsestreeOptions.filePath && + parseAndGenerateServicesCalls[tsestreeOptions.filePath] > 1 + ? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings) + : getProgramAndAST(parseSettings, hasFullTypeInformation); + /** + * Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve + * mappings between converted and original AST nodes + */ + const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean' + ? parseSettings.preserveNodeMaps + : true; + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + /** + * Even if TypeScript parsed the source code ok, and we had no problems converting the AST, + * there may be other syntactic or semantic issues in the code that we can optionally report on. + */ + if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) { + const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast); + if (error) { + throw (0, convert_1.convertError)(error); + } + } + /** + * Return the converted AST and additional parser services + */ + return { + ast: estree, + services: (0, createParserServices_1.createParserServices)(astMaps, program), + }; +} +//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map new file mode 100644 index 00000000..30ae23a8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AAwRE,0EAA+B;AAC/B,gFAAkC;AAClC,8CAAiB;AACjB,sBAAK;AACL,4DAAwB;AA1R1B,kDAA0B;AAW1B,mDAA+C;AAC/C,uCAAyC;AACzC,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAG2C;AAC3C,8FAA2F;AAC3F,8EAG8C;AAC9C,iEAA8D;AAC9D,6EAA0E;AAC1E,iFAAkF;AAClF,iFAA8E;AAE9E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;AACrD,SAAS,+BAA+B;IACtC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,sBAA+B;IAE/B,IAAI,aAAa,CAAC,cAAc,EAAE,CAAC;QACjC,MAAM,kBAAkB,GAAG,IAAA,2DAA4B,EACrD,aAAa,CAAC,cAAc,EAC5B,aAAa,EACb,sBAAsB,EACtB,0BAA0B,CAC3B,CAAC;QACF,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO,kBAAkB,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;QAC3B,MAAM,oBAAoB,GAAG,IAAA,yCAAmB,EAC9C,aAAa,CAAC,QAAQ,EACtB,aAAa,CACd,CAAC;QACF,IAAI,oBAAoB,EAAE,CAAC;YACzB,OAAO,oBAAoB,CAAC;QAC9B,CAAC;IACH,CAA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,SAAS,IAAI,eAAe,CAAC,QAAQ,EAAE,CAAC;QACxD,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC;YACrD,CAAC,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GACpB,aAAa,CAAC,SAAS;QACvB,eAAe,CAAC,QAAQ;QACxB,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC;QACzD,CAAC,CAAC,IAAA,6CAAqB,EAAC,aAAa,CAAC;QACtC,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,gBAAgB,KAAK,SAAS;QACjD,CAAC,CAAC,aAAa,CAAC,gBAAgB;QAChC,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAA,4BAAY,EACtC,GAAG,EACH,aAAa,EACb,sBAAsB,CACvB,CAAC;IAEF;;;OAGG;IACH,IAAI,OAAO,IAAI,aAAa,CAAC,2CAA2C,EAAE,CAAC;QACzE,MAAM,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts new file mode 100644 index 00000000..bd35968c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts @@ -0,0 +1,13 @@ +import type { Diagnostic, Program, SourceFile } from 'typescript'; +export interface SemanticOrSyntacticError extends Diagnostic { + message: string; +} +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; +//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map new file mode 100644 index 00000000..63d13a71 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.d.ts","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,OAAO,EACP,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,GACd,wBAAwB,GAAG,SAAS,CAmCtC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js new file mode 100644 index 00000000..fd3abc68 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getFirstSemanticOrSyntacticError = getFirstSemanticOrSyntacticError; +const typescript_1 = require("typescript"); +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +function getFirstSemanticOrSyntacticError(program, ast) { + try { + const supportedSyntacticDiagnostics = allowlistSupportedDiagnostics(program.getSyntacticDiagnostics(ast)); + if (supportedSyntacticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSyntacticDiagnostics[0]); + } + const supportedSemanticDiagnostics = allowlistSupportedDiagnostics(program.getSemanticDiagnostics(ast)); + if (supportedSemanticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSemanticDiagnostics[0]); + } + return undefined; + } + catch (e) { + /** + * TypeScript compiler has certain Debug.fail() statements in, which will cause the diagnostics + * retrieval above to throw. + * + * E.g. from ast-alignment-tests + * "Debug Failure. Shouldn't ever directly check a JsxOpeningElement" + * + * For our current use-cases this is undesired behavior, so we just suppress it + * and log a warning. + */ + /* istanbul ignore next */ + console.warn(`Warning From TSC: "${e.message}`); // eslint-disable-line no-console + /* istanbul ignore next */ + return undefined; + } +} +function allowlistSupportedDiagnostics(diagnostics) { + return diagnostics.filter(diagnostic => { + switch (diagnostic.code) { + case 1013: // "A rest parameter or binding pattern may not have a trailing comma." + case 1014: // "A rest parameter must be last in a parameter list." + case 1044: // "'{0}' modifier cannot appear on a module or namespace element." + case 1045: // "A '{0}' modifier cannot be used with an interface declaration." + case 1048: // "A rest parameter cannot have an initializer." + case 1049: // "A 'set' accessor must have exactly one parameter." + case 1070: // "'{0}' modifier cannot appear on a type member." + case 1071: // "'{0}' modifier cannot appear on an index signature." + case 1085: // "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'." + case 1090: // "'{0}' modifier cannot appear on a parameter." + case 1096: // "An index signature must have exactly one parameter." + case 1097: // "'{0}' list cannot be empty." + case 1098: // "Type parameter list cannot be empty." + case 1099: // "Type argument list cannot be empty." + case 1117: // "An object literal cannot have multiple properties with the same name in strict mode." + case 1121: // "Octal literals are not allowed in strict mode." + case 1123: // "Variable declaration list cannot be empty." + case 1141: // "String literal expected." + case 1162: // "An object member cannot be declared optional." + case 1164: // "Computed property names are not allowed in enums." + case 1172: // "'extends' clause already seen." + case 1173: // "'extends' clause must precede 'implements' clause." + case 1175: // "'implements' clause already seen." + case 1176: // "Interface declaration cannot have 'implements' clause." + case 1190: // "The variable declaration of a 'for...of' statement cannot have an initializer." + case 1196: // "Catch clause variable type annotation must be 'any' or 'unknown' if specified." + case 1200: // "Line terminator not permitted before arrow." + case 1206: // "Decorators are not valid here." + case 1211: // "A class declaration without the 'default' modifier must have a name." + case 1242: // "'abstract' modifier can only appear on a class, method, or property declaration." + case 1246: // "An interface property cannot have an initializer." + case 1255: // "A definite assignment assertion '!' is not permitted in this context." + case 1308: // "'await' expression is only allowed within an async function." + case 2364: // "The left-hand side of an assignment expression must be a variable or a property access." + case 2369: // "A parameter property is only allowed in a constructor implementation." + case 2452: // "An enum member cannot have a numeric name." + case 2462: // "A rest element must be last in a destructuring pattern." + case 8017: // "Octal literal types must use ES2015 syntax. Use the syntax '{0}'." + case 17012: // "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?" + case 17013: // "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor." + return true; + } + return false; + }); +} +function convertDiagnosticToSemanticOrSyntacticError(diagnostic) { + return { + ...diagnostic, + message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine), + }; +} +//# sourceMappingURL=semantic-or-syntactic-errors.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map new file mode 100644 index 00000000..fb8c32cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.js","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":";;AAoBA,4EAsCC;AAnDD,2CAA+D;AAM/D;;;;;;GAMG;AACH,SAAgB,gCAAgC,CAC9C,OAAgB,EAChB,GAAe;IAEf,IAAI,CAAC;QACH,MAAM,6BAA6B,GAAG,6BAA6B,CACjE,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACrC,CAAC;QACF,IAAI,6BAA6B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,OAAO,2CAA2C,CAChD,6BAA6B,CAAC,CAAC,CAAC,CACjC,CAAC;QACJ,CAAC;QACD,MAAM,4BAA4B,GAAG,6BAA6B,CAChE,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpC,CAAC;QACF,IAAI,4BAA4B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,2CAA2C,CAChD,4BAA4B,CAAC,CAAC,CAAC,CAChC,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX;;;;;;;;;WASG;QACH,0BAA0B;QAC1B,OAAO,CAAC,IAAI,CAAC,sBAAuB,CAAW,CAAC,OA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CAAC,mFAAmF;YAC9F,KAAK,IAAI,CAAC,CAAC,gDAAgD;YAC3D,KAAK,IAAI,CAAC,CAAC,mCAAmC;YAC9C,KAAK,IAAI,CAAC,CAAC,yEAAyE;YACpF,KAAK,IAAI,CAAC,CAAC,qFAAqF;YAChG,KAAK,IAAI,CAAC,CAAC,sDAAsD;YACjE,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,iEAAiE;YAC5E,KAAK,IAAI,CAAC,CAAC,4FAA4F;YACvG,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,+CAA+C;YAC1D,KAAK,IAAI,CAAC,CAAC,4DAA4D;YACvE,KAAK,IAAI,CAAC,CAAC,sEAAsE;YACjF,KAAK,KAAK,CAAC,CAAC,8EAA8E;YAC1F,KAAK,KAAK,EAAE,oHAAoH;gBAC9H,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,UAAsB;IAEtB,OAAO;QACL,GAAG,UAAU;QACb,OAAO,EAAE,IAAA,yCAA4B,EAAC,UAAU,CAAC,WAAW,EAAE,gBAAG,CAAC,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts new file mode 100644 index 00000000..9b6b4c67 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts @@ -0,0 +1,12 @@ +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +import type { TSESTree } from './ts-estree'; +type SimpleTraverseOptions = Readonly<{ + enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; + visitorKeys?: Readonly; +} | { + visitorKeys?: Readonly; + visitors: Record void>; +}>; +export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; +export {}; +//# sourceMappingURL=simple-traverse.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map new file mode 100644 index 00000000..9abec97f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACxE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CACd,MAAM,EACN,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CACjE,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js new file mode 100644 index 00000000..822897f3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.simpleTraverse = simpleTraverse; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isValidNode(x) { + return (typeof x === 'object' && + x != null && + 'type' in x && + typeof x.type === 'string'); +} +function getVisitorKeysForNode(allVisitorKeys, node) { + const keys = allVisitorKeys[node.type]; + return (keys ?? []); +} +class SimpleTraverser { + allVisitorKeys = visitor_keys_1.visitorKeys; + selectors; + setParentPointers; + constructor(selectors, setParentPointers = false) { + this.selectors = selectors; + this.setParentPointers = setParentPointers; + if (selectors.visitorKeys) { + this.allVisitorKeys = selectors.visitorKeys; + } + } + traverse(node, parent) { + if (!isValidNode(node)) { + return; + } + if (this.setParentPointers) { + node.parent = parent; + } + if ('enter' in this.selectors) { + this.selectors.enter(node, parent); + } + else if (node.type in this.selectors.visitors) { + this.selectors.visitors[node.type](node, parent); + } + const keys = getVisitorKeysForNode(this.allVisitorKeys, node); + if (keys.length < 1) { + return; + } + for (const key of keys) { + const childOrChildren = node[key]; + if (Array.isArray(childOrChildren)) { + for (const child of childOrChildren) { + this.traverse(child, node); + } + } + else { + this.traverse(childOrChildren, node); + } + } + } +} +function simpleTraverse(startingNode, options, setParentPointers = false) { + new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined); +} +//# sourceMappingURL=simple-traverse.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map new file mode 100644 index 00000000..1f98fe29 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-traverse.js","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":";;AAoFA,wCASC;AA3FD,kEAA8D;AAI9D,SAAS,WAAW,CAAC,CAAU;IAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,IAAI,IAAI;QACT,MAAM,IAAI,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,cAAkC,EAClC,IAAmB;IAEnB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAU,CAAC;AAC/B,CAAC;AAgBD,MAAM,eAAe;IACF,cAAc,GAA0B,0BAAW,CAAC;IACpD,SAAS,CAAwB;IACjC,iBAAiB,CAAU;IAE5C,YAAY,SAAgC,EAAE,iBAAiB,GAAG,KAAK;QACrE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YAC1B,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,QAAQ,CAAC,IAAa,EAAE,MAAiC;QACvD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACnC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;oBACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,SAAgB,cAAc,CAC5B,YAA2B,EAC3B,OAA8B,EAC9B,iBAAiB,GAAG,KAAK;IAEzB,IAAI,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACtD,YAAY,EACZ,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts new file mode 100644 index 00000000..756b7815 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function isSourceFile(code: unknown): code is ts.SourceFile; +export declare function getCodeText(code: string | ts.SourceFile): string; +//# sourceMappingURL=source-files.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map new file mode 100644 index 00000000..68685a97 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,UAAU,CAUjE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js new file mode 100644 index 00000000..e99efd84 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSourceFile = isSourceFile; +exports.getCodeText = getCodeText; +const ts = __importStar(require("typescript")); +function isSourceFile(code) { + if (typeof code !== 'object' || code == null) { + return false; + } + const maybeSourceFile = code; + return (maybeSourceFile.kind === ts.SyntaxKind.SourceFile && + typeof maybeSourceFile.getFullText === 'function'); +} +function getCodeText(code) { + return isSourceFile(code) ? code.getFullText(code) : code; +} +//# sourceMappingURL=source-files.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map new file mode 100644 index 00000000..4d00af8c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.js","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAUC;AAED,kCAEC;AAhBD,+CAAiC;AAEjC,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,IAA8B,CAAC;IACvD,OAAO,CACL,eAAe,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;QACjD,OAAO,eAAe,CAAC,WAAW,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC;AAED,SAAgB,WAAW,CAAC,IAA4B;IACtD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts new file mode 100644 index 00000000..63ea30eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts @@ -0,0 +1,179 @@ +import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSNode } from './ts-nodes'; +export interface EstreeToTsNodeTypes { + [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; + [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; + [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.BlockStatement]: ts.Block; + [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; + [AST_NODE_TYPES.CallExpression]: ts.CallExpression; + [AST_NODE_TYPES.CatchClause]: ts.CatchClause; + [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; + [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; + [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; + [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; + [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; + [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; + [AST_NODE_TYPES.Decorator]: ts.Decorator; + [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; + [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; + [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; + [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; + [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; + [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; + [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; + [AST_NODE_TYPES.ForStatement]: ts.ForStatement; + [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; + [AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token; + [AST_NODE_TYPES.IfStatement]: ts.IfStatement; + [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; + [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry; + [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; + [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; + [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; + [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; + [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; + [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; + [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; + [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; + [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; + [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; + [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; + [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; + [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; + [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; + [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; + [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; + [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; + [AST_NODE_TYPES.JSXText]: ts.JsxText; + [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; + [AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral; + [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; + [AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.NewExpression]: ts.NewExpression; + [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; + [AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression; + [AST_NODE_TYPES.Program]: ts.SourceFile; + [AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; + [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; + [AST_NODE_TYPES.Super]: ts.SuperExpression; + [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; + [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; + [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; + [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; + [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; + [AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression; + [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; + [AST_NODE_TYPES.TryStatement]: ts.TryStatement; + [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; + [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; + [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; + [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; + [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; + [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; + [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; + [AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; + [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; + [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; + [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; + [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; + [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; + [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; + [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; + [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; + [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; + [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; + [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; + [AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; + [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; + [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; + [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; + [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; + [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; + [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; + [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; + [AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName; + [AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode; + [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; + [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; + [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; + [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; + [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; + [AST_NODE_TYPES.TSTypeAnnotation]: undefined; + [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; + [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; + [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; + [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; + [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; + [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode; + [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; + [AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode; + [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; + [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; + [AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression; + [AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression; + [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; + [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; + [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; + [AST_NODE_TYPES.WithStatement]: ts.WithStatement; + [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; + [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; + [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral; + [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; + [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; + [AST_NODE_TYPES.TSExportKeyword]: ts.Token; + [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; + [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; + [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; + [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; + [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; +} +/** + * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). + * This mapping is based on the internal logic of the parser. + */ +export type TSESTreeToTSNode = Extract | TSNode, EstreeToTsNodeTypes[T['type']]>; +//# sourceMappingURL=estree-to-ts-node-types.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map new file mode 100644 index 00000000..9f13f56a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.d.ts","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC;IAC1D,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC;IAC5D,CAAC,cAAc,CAAC,YAAY,CAAC,EACzB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,sBAAsB,CAAC;IAC9B,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC;IAC3D,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC;IAC3D,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAC9B,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,2BAA2B,CAAC;IACnC,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;IACrD,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC;IACvD,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC;IAC1C,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC;IACnD,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC;IACnD,CAAC,cAAc,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AAC,IAAI,IAAI,OAAO,CAC7E,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,MAAM,EAEzE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC/B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js new file mode 100644 index 00000000..e92a96f2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=estree-to-ts-node-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map new file mode 100644 index 00000000..a9cfa15f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.js","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts new file mode 100644 index 00000000..11458c20 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts @@ -0,0 +1,4 @@ +export * from './estree-to-ts-node-types'; +export * from './ts-nodes'; +export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map new file mode 100644 index 00000000..8b223729 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js new file mode 100644 index 00000000..33dc61ff --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js @@ -0,0 +1,25 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +// for simplicity and backwards-compatibility +__exportStar(require("./estree-to-ts-node-types"), exports); +__exportStar(require("./ts-nodes"), exports); +var types_1 = require("@typescript-eslint/types"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); +Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map new file mode 100644 index 00000000..db728cec --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,4DAA0C;AAC1C,6CAA2B;AAC3B,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts new file mode 100644 index 00000000..fe674a96 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts @@ -0,0 +1,18 @@ +import type * as ts from 'typescript'; +declare module 'typescript' { + interface AssertClause extends ts.ImportAttributes { + } + interface AssertEntry extends ts.ImportAttribute { + } + interface SatisfiesExpression extends ts.Node { + } + interface JsxNamespacedName extends ts.Node { + } + interface ImportAttribute extends ts.Node { + } + interface ImportAttributes extends ts.Node { + } +} +export type TSToken = ts.Token; +export type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression; +//# sourceMappingURL=ts-nodes.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map new file mode 100644 index 00000000..e676701a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.d.ts","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,QAAQ,YAAY,CAAC;IAE1B,UAAiB,YAAa,SAAQ,EAAE,CAAC,gBAAgB;KAAG;IAC5D,UAAiB,WAAY,SAAQ,EAAE,CAAC,eAAe;KAAG;IAE1D,UAAiB,mBAAoB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAEvD,UAAiB,iBAAkB,SAAQ,EAAE,C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aAAa,GAChB,EAAE,CAAC,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js new file mode 100644 index 00000000..ba99b5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ts-nodes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map new file mode 100644 index 00000000..a4fa02c4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.js","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts new file mode 100644 index 00000000..3d8aceee --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts @@ -0,0 +1,7 @@ +export * from './ast-converter'; +export * from './create-program/getScriptKind'; +export type { ParseSettings } from './parseSettings'; +export * from './getModifiers'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { getCanonicalFileName } from './create-program/shared'; +//# sourceMappingURL=use-at-your-own-risk.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map new file mode 100644 index 00000000..0cfba63b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.d.ts","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js new file mode 100644 index 00000000..28a5e403 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js @@ -0,0 +1,28 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCanonicalFileName = exports.typescriptVersionIsAtLeast = void 0; +// required by website +__exportStar(require("./ast-converter"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +// required by packages/utils/src/ts-estree.ts +__exportStar(require("./getModifiers"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +// required by packages/type-utils +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +//# sourceMappingURL=use-at-your-own-risk.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map new file mode 100644 index 00000000..f5dec7a6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.js","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,kDAAgC;AAChC,iEAA+C;AAG/C,8CAA8C;AAC9C,iDAA+B;AAC/B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AAEnC,kCAAkC;AAClC,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts new file mode 100644 index 00000000..07f58e0c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts @@ -0,0 +1,7 @@ +import type { ProjectServiceSettings } from './create-program/createProjectService'; +import type { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram } from './create-program/shared'; +import type { MutableParseSettings } from './parseSettings'; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: boolean, defaultProjectMatchedFiles: Set): ASTAndProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: true, defaultProjectMatchedFiles: Set): ASTAndDefiniteProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: false, defaultProjectMatchedFiles: Set): ASTAndNoProgram | undefined; +//# sourceMappingURL=useProgramFromProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map new file mode 100644 index 00000000..1878d702 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.d.ts","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AA4M5D,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,OAAO,EAC/B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,aAAa,GAAG,SAAS,CAAC;AAC7B,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,IAAI,EAC5B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,qBAAqB,GAAG,SAAS,CAAC;AACrC,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,KAAK,EAC7B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,eAAe,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js new file mode 100644 index 00000000..3941ae1b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js @@ -0,0 +1,197 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useProgramFromProjectService = useProgramFromProjectService; +const debug_1 = __importDefault(require("debug")); +const minimatch_1 = require("minimatch"); +const node_path_1 = __importDefault(require("node:path")); +const node_util_1 = __importDefault(require("node:util")); +const ts = __importStar(require("typescript")); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const shared_1 = require("./create-program/shared"); +const validateDefaultProjectForFilesGlob_1 = require("./create-program/validateDefaultProjectForFilesGlob"); +const RELOAD_THROTTLE_MS = 250; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProgramFromProjectService'); +const serviceFileExtensions = new WeakMap(); +const updateExtraFileExtensions = (service, extraFileExtensions) => { + const currentServiceFileExtensions = serviceFileExtensions.get(service) ?? []; + if (!node_util_1.default.isDeepStrictEqual(currentServiceFileExtensions, extraFileExtensions)) { + log('Updating extra file extensions: before=%s: after=%s', currentServiceFileExtensions, extraFileExtensions); + service.setHostConfiguration({ + extraFileExtensions: extraFileExtensions.map(extension => ({ + extension, + isMixedContent: false, + scriptKind: ts.ScriptKind.Deferred, + })), + }); + serviceFileExtensions.set(service, extraFileExtensions); + log('Extra file extensions updated: %o', extraFileExtensions); + } +}; +function openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings) { + const opened = openClientFileAndMaybeReload(); + log('Result from attempting to open client file: %o', opened); + log('Default project allowed path: %s, based on config file: %s', isDefaultProjectAllowed, opened.configFileName); + if (opened.configFileName) { + if (isDefaultProjectAllowed) { + throw new Error(`${parseSettings.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`); + } + } + else { + const wasNotFound = `${parseSettings.filePath} was not found by the project service`; + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + const extraFileExtensions = parseSettings.extraFileExtensions; + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension) && + !extraFileExtensions.includes(fileExtension)) { + const nonStandardExt = `${wasNotFound} because the extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + throw new Error(`${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`); + } + else { + throw new Error(`${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`); + } + } + if (!isDefaultProjectAllowed) { + throw new Error(`${wasNotFound}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`); + } + } + // No a configFileName indicates this file wasn't included in a TSConfig. + // That means it must get its type information from the default project. + if (!opened.configFileName) { + defaultProjectMatchedFiles.add(filePathAbsolute); + if (defaultProjectMatchedFiles.size > + serviceSettings.maximumDefaultProjectFileMatchCount) { + const filePrintLimit = 20; + const filesToPrint = [...defaultProjectMatchedFiles].slice(0, filePrintLimit); + const truncatedFileCount = defaultProjectMatchedFiles.size - filesToPrint.length; + throw new Error(`Too many files (>${serviceSettings.maximumDefaultProjectFileMatchCount}) have matched the default project.${validateDefaultProjectForFilesGlob_1.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION} +Matching files: +${filesToPrint.map(file => `- ${file}`).join('\n')} +${truncatedFileCount ? `...and ${truncatedFileCount} more files\n` : ''} +If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value. +`); + } + } + return opened; + function openClientFile() { + return serviceSettings.service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + function openClientFileAndMaybeReload() { + log('Opening project service client file at path: %s', filePathAbsolute); + let opened = openClientFile(); + // If no project included the file and we're not in single-run mode, + // we might be running in an editor with outdated file info. + // We can try refreshing the project service - debounced for performance. + if (!opened.configFileErrors && + !opened.configFileName && + !parseSettings.singleRun && + !isDefaultProjectAllowed && + performance.now() - serviceSettings.lastReloadTimestamp > + RELOAD_THROTTLE_MS) { + log('No config file found; reloading project service and retrying.'); + serviceSettings.service.reloadProjects(); + opened = openClientFile(); + serviceSettings.lastReloadTimestamp = performance.now(); + } + return opened; + } +} +function createNoProgramWithProjectService(filePathAbsolute, parseSettings, service) { + log('No project service information available. Creating no program.'); + // If the project service knows about this file, this informs if of changes. + // Doing so ensures that: + // - if the file is not part of a project, we don't waste time creating a program (fast non-type-aware linting) + // - otherwise, we refresh the file in the project service (moderately fast, since the project is already loaded) + if (service.getScriptInfo(filePathAbsolute)) { + log('Script info available. Opening client file in project service.'); + service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + return (0, createSourceFile_1.createNoProgram)(parseSettings); +} +function retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings) { + log('Retrieving script info and then program for: %s', filePathAbsolute); + const scriptInfo = serviceSettings.service.getScriptInfo(filePathAbsolute); + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + const program = serviceSettings.service + .getDefaultProjectForFile(scriptInfo.fileName, true) + .getLanguageService(/*ensureSynchronized*/ true) + .getProgram(); + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + if (!program) { + log('Could not find project service program for: %s', filePathAbsolute); + return undefined; + } + log('Found project service program for: %s', filePathAbsolute); + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, [program]); +} +function useProgramFromProjectService(serviceSettings, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles) { + // NOTE: triggers a full project reload when changes are detected + updateExtraFileExtensions(serviceSettings.service, parseSettings.extraFileExtensions); + // We don't canonicalize the filename because it caused a performance regression. + // See https://github.com/typescript-eslint/typescript-eslint/issues/8519 + const filePathAbsolute = absolutify(parseSettings.filePath, serviceSettings); + log('Opening project service file for: %s at absolute path %s', parseSettings.filePath, filePathAbsolute); + const filePathRelative = node_path_1.default.relative(parseSettings.tsconfigRootDir, filePathAbsolute); + const isDefaultProjectAllowed = filePathMatchedBy(filePathRelative, serviceSettings.allowDefaultProject); + // Type-aware linting is disabled for this file. + // However, type-aware lint rules might still rely on its contents. + if (!hasFullTypeInformation && !isDefaultProjectAllowed) { + return createNoProgramWithProjectService(filePathAbsolute, parseSettings, serviceSettings.service); + } + // If type info was requested, we attempt to open it in the project service. + // By now, the file is known to be one of: + // - in the project service (valid configuration) + // - allowlisted in the default project (valid configuration) + // - neither, which openClientFileFromProjectService will throw an error for + const opened = hasFullTypeInformation && + openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings); + log('Opened project service file: %o', opened); + return retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings); +} +function absolutify(filePath, serviceSettings) { + return node_path_1.default.isAbsolute(filePath) + ? filePath + : node_path_1.default.join(serviceSettings.service.host.getCurrentDirectory(), filePath); +} +function filePathMatchedBy(filePath, allowDefaultProject) { + return !!allowDefaultProject?.some(pattern => (0, minimatch_1.minimatch)(filePath, pattern)); +} +//# sourceMappingURL=useProgramFromProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map new file mode 100644 index 00000000..99b99276 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.js","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0OA,oEA8DC;AAxSD,kDAA0B;AAC1B,yCAAsC;AACtC,0DAA6B;AAC7B,0DAA6B;AAC7B,+CAAiC;AAUjC,gFAA6E;AAC7E,wEAAoE;AACpE,oDAAwE;AACxE,4GAA8G;AAE9G,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,kEAAkE,CACnE,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAsC,CAAC;AAEhF,MAAM,yBAAyB,GAAG,CAChC,OAAiC,EACjC,mBAA6B,EACvB,EAAE;IACR,MAAM,4BAA4B,GAAG,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAC9E,IACE,CAAC,mBAAI,CAAC,iBAAiB,CAAC,4BAA4B,EAAE,mBAAmB,CAAC,EAC1E,CAAC;QACD,GAAG,CACD,qDAAqD,EACrD,4BAA4B,EAC5B,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,oBAAoB,CAAC;YAC3B,mBAAmB,EAAE,mBAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;gBACzD,SAAS;gBACT,cAAc,EAAE,KAAK;gBACrB,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ;aACnC,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,qBAAqB,CAAC,GAAG,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;QACxD,GAAG,CAAC,mCAAmC,EAAE,mBAAmB,CAAC,CAAC;IAChE,CAAC;AACH,CAAC,CAAC;AAEF,SAAS,gCAAgC,CACvC,0BAAuC,EACvC,uBAAgC,EAChC,gBAAwB,EACxB,aAA6C,EAC7C,eAAuC;IAEvC,MAAM,MAAM,GAA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CAAC,CAAC,mBAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAgB,EAChB,mBAAyC;IAEzC,OAAO,CAAC,CAAC,mBAAmB,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAA,qBAAS,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9E,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts new file mode 100644 index 00000000..0b8b65a3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts @@ -0,0 +1,5 @@ +declare const versions: readonly ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; +type Versions = typeof versions extends ArrayLike ? U : never; +declare const typescriptVersionIsAtLeast: Record; +export { typescriptVersionIsAtLeast }; +//# sourceMappingURL=version-check.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map new file mode 100644 index 00000000..9c6001eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,QAAQ,mEASJ,CAAC;AACX,KAAK,QAAQ,GAAG,OAAO,QAAQ,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEvE,QAAA,MAAM,0BAA0B,EAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKnE,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js new file mode 100644 index 00000000..2e93b9ef --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js @@ -0,0 +1,59 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typescriptVersionIsAtLeast = void 0; +const semver = __importStar(require("semver")); +const ts = __importStar(require("typescript")); +function semverCheck(version) { + return semver.satisfies(ts.version, `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, { + includePrerelease: true, + }); +} +const versions = [ + '4.7', + '4.8', + '4.9', + '5.0', + '5.1', + '5.2', + '5.3', + '5.4', +]; +const typescriptVersionIsAtLeast = {}; +exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; +for (const version of versions) { + typescriptVersionIsAtLeast[version] = semverCheck(version); +} +//# sourceMappingURL=version-check.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map new file mode 100644 index 00000000..9690e042 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,+CAAiC;AAEjC,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,MAAM,CAAC,SAAS,CACrB,EAAE,CAAC,OAAO,EACV,MAAM,OAAO,YAAY,OAAO,eAAe,OAAO,SAAS,EAC/D;QACE,iBAAiB,EAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAGX,MAAM,0BAA0B,GAAG,EAA+B,CAAC;AAK1D,gEAA0B;AAJnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;IAC/B,0BAA0B,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts new file mode 100644 index 00000000..7d2882be --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts @@ -0,0 +1,10 @@ +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +export declare function withoutProjectParserOptions(opts: Options): Omit; +//# sourceMappingURL=withoutProjectParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map new file mode 100644 index 00000000..9d9db9e1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.d.ts","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,SAAS,MAAM,EAChE,IAAI,EAAE,OAAO,GACZ,IAAI,CACL,OAAO,EACP,gCAAgC,GAAG,SAAS,GAAG,gBAAgB,CAChE,CAMA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js new file mode 100644 index 00000000..11d11940 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.withoutProjectParserOptions = withoutProjectParserOptions; +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +function withoutProjectParserOptions(opts) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars -- The variables are meant to be omitted + const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts; + return rest; +} +//# sourceMappingURL=withoutProjectParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map new file mode 100644 index 00000000..4f0b19d5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.js","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":";;AAQA,kEAWC;AAnBD;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,IAAa;IAKb,sGAAsG;IACtG,MAAM,EAAE,8BAA8B,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GACxE,IAA+B,CAAC;IAElC,OAAO,IAA0B,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/package.json new file mode 100644 index 00000000..e3e90eab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree/package.json @@ -0,0 +1,91 @@ +{ + "name": "@typescript-eslint/typescript-estree", + "version": "8.16.0", + "description": "A parser that converts TypeScript source code into an ESTree compatible form", + "files": [ + "dist", + "_ts4.3", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json", + "./use-at-your-own-risk": { + "types": "./dist/use-at-your-own-risk.d.ts", + "default": "./dist/use-at-your-own-risk.js" + } + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/typescript-estree" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/typescript-estree", + "license": "BSD-2-Clause", + "keywords": [ + "ast", + "estree", + "ecmascript", + "javascript", + "typescript", + "parser", + "syntax" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage --runInBand --verbose", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "glob": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "tmp": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/README.md new file mode 100644 index 00000000..7ba75009 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/utils` + +> Utilities for working with TypeScript + ESLint together. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +👉 See **https://typescript-eslint.io/packages/utils** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts new file mode 100644 index 00000000..8cd54560 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts @@ -0,0 +1,48 @@ +interface PatternMatcher { + /** + * Replace all matched parts by a given replacer. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace} + * @example + * const { PatternMatcher } = require("eslint-utils") + * const matcher = new PatternMatcher(/\\p{Script=Greek}/g) + * + * module.exports = { + * meta: {}, + * create(context) { + * return { + * "Literal[regex]"(node) { + * const replacedPattern = node.regex.pattern.replace( + * matcher, + * "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]" + * ) + * }, + * } + * }, + * } + */ + [Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string; + /** + * Iterate all matched parts in a given string. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall} + */ + execAll(str: string): IterableIterator; + /** + * Check whether this pattern matches a given string or not. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test} + */ + test(str: string): boolean; +} +/** + * The class to find a pattern in strings as handling escape sequences. + * It ignores the found pattern if it's escaped with `\`. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} + */ +declare const PatternMatcher: new (pattern: RegExp, options?: { + escaped?: boolean; +}) => PatternMatcher; +export { PatternMatcher }; +//# sourceMappingURL=PatternMatcher.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map new file mode 100644 index 00000000..83983aba --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;IAEV;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,EAAiC,KACnD,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5B,cAAc,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js new file mode 100644 index 00000000..0ffeb5e9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js @@ -0,0 +1,46 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PatternMatcher = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * The class to find a pattern in strings as handling escape sequences. + * It ignores the found pattern if it's escaped with `\`. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} + */ +const PatternMatcher = eslintUtils.PatternMatcher; +exports.PatternMatcher = PatternMatcher; +//# sourceMappingURL=PatternMatcher.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map new file mode 100644 index 00000000..19a3c903 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGhB,CAAC;AAEX,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts new file mode 100644 index 00000000..83c7e228 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts @@ -0,0 +1,76 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +declare const ReferenceTrackerREAD: unique symbol; +declare const ReferenceTrackerCALL: unique symbol; +declare const ReferenceTrackerCONSTRUCT: unique symbol; +declare const ReferenceTrackerESM: unique symbol; +interface ReferenceTracker { + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from `require()` expression. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences} + */ + iterateCjsReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from `import`/`export` declarations. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences} + */ + iterateEsmReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from global variables. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences} + */ + iterateGlobalReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; +} +interface ReferenceTrackerStatic { + readonly CALL: typeof ReferenceTrackerCALL; + readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT; + readonly ESM: typeof ReferenceTrackerESM; + new (globalScope: TSESLint.Scope.Scope, options?: { + /** + * The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`. + */ + globalObjectNames?: readonly string[]; + /** + * The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules. + * If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds + * CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`. + */ + mode?: 'legacy' | 'strict'; + }): ReferenceTracker; + readonly READ: typeof ReferenceTrackerREAD; +} +declare namespace ReferenceTracker { + type READ = ReferenceTrackerStatic['READ']; + type CALL = ReferenceTrackerStatic['CALL']; + type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT']; + type ESM = ReferenceTrackerStatic['ESM']; + type ReferenceType = CALL | CONSTRUCT | READ; + type TraceMap = Record>; + interface TraceMapElement { + [key: string]: TraceMapElement; + [ReferenceTrackerCALL]?: T; + [ReferenceTrackerCONSTRUCT]?: T; + [ReferenceTrackerESM]?: true; + [ReferenceTrackerREAD]?: T; + } + interface FoundReference { + info: T; + node: TSESTree.Node; + path: readonly string[]; + type: ReferenceType; + } +} +/** + * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} + */ +declare const ReferenceTracker: ReferenceTrackerStatic; +export { ReferenceTracker }; +//# sourceMappingURL=ReferenceTracker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map new file mode 100644 index 00000000..cf7e2a21 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,yBAAyB,EAAE,OAAO,MACA,CAAC;AACzC,QAAA,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AAE5E,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,oBA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aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IAEpD,KAAY,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,UAAiB,eAAe,CAAC,CAAC;QAChC,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7B,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;IAED,UAAiB,cAAc,CAAC,CAAC,GAAG,GAAG;QACrC,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;KACrB;CACF;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAmC,sBAAsB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js new file mode 100644 index 00000000..11b6675b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferenceTracker = void 0; +/* eslint-disable @typescript-eslint/no-namespace */ +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +const ReferenceTrackerREAD = eslintUtils.ReferenceTracker.READ; +const ReferenceTrackerCALL = eslintUtils.ReferenceTracker.CALL; +const ReferenceTrackerCONSTRUCT = eslintUtils.ReferenceTracker.CONSTRUCT; +const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM; +/** + * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} + */ +const ReferenceTracker = eslintUtils.ReferenceTracker; +exports.ReferenceTracker = ReferenceTracker; +//# sourceMappingURL=ReferenceTracker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map new file mode 100644 index 00000000..1f90c3bd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAiF5E;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAA0C,CAAC;AAEvE,4CAAgB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts new file mode 100644 index 00000000..a0c32836 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts @@ -0,0 +1,85 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +/** + * Get the proper location of a given function node to report. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} + */ +declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation; +/** + * Get the name and kind of a given function node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} + */ +declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string; +/** + * Get the property name of a given property node. + * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} + * @returns The property name of the node. If the property name is not constant then it returns `null`. + */ +declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null; +/** + * Get the value of a given node if it can decide the value statically. + * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the + * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have + * not been modified. + * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} + * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the + * static value of the node, it returns `null`. + */ +declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => { + value: unknown; +} | null; +/** + * Get the string value of a given node. + * This function is a tiny wrapper of the getStaticValue function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} + */ +declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null; +/** + * Check whether a given node has any side effect or not. + * The side effect means that it may modify a certain variable or object member. This function considers the node which + * contains the following types as the node which has side effects: + * - `AssignmentExpression` + * - `AwaitExpression` + * - `CallExpression` + * - `ImportExpression` + * - `NewExpression` + * - `UnaryExpression([operator = "delete"])` + * - `UpdateExpression` + * - `YieldExpression` + * - When `options.considerGetters` is `true`: + * - `MemberExpression` + * - When `options.considerImplicitTypeConversion` is `true`: + * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` + * - `MemberExpression([computed = true])` + * - `MethodDefinition([computed = true])` + * - `Property([computed = true])` + * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} + */ +declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: { + considerGetters?: boolean; + considerImplicitTypeConversion?: boolean; +}) => boolean; +declare const isParenthesized: { + (times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; + /** + * Check whether a given node is parenthesized or not. + * This function detects it correctly even if it's parenthesized by specific syntax. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#isparenthesized} + * @returns `true` if the node is parenthesized. + * If `times` was given, it returns `true` only if the node is parenthesized the `times` times. + * For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`. + */ + (node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; +}; +export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, }; +//# sourceMappingURL=astUtilities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map new file mode 100644 index 00000000..7b812080 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings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Aa,EAAgC,CACjD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,EAC/B,OAAO,CAAC,EAAE;IACR,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,KACE,OAAO,CAAC;AAEb,QAAA,MAAM,eAAe,EAAkC;IACrD,CACE,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAC9B,OAAO,CAAC;IAEX;;;;;;;;OAQG;IACH,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,OAAO,CAAC;CACjE,CAAC;AAEF,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,GAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js new file mode 100644 index 00000000..ed81a599 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js @@ -0,0 +1,109 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isParenthesized = exports.hasSideEffect = exports.getStringIfConstant = exports.getStaticValue = exports.getPropertyName = exports.getFunctionNameWithKind = exports.getFunctionHeadLocation = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * Get the proper location of a given function node to report. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} + */ +const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation; +exports.getFunctionHeadLocation = getFunctionHeadLocation; +/** + * Get the name and kind of a given function node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} + */ +const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind; +exports.getFunctionNameWithKind = getFunctionNameWithKind; +/** + * Get the property name of a given property node. + * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} + * @returns The property name of the node. If the property name is not constant then it returns `null`. + */ +const getPropertyName = eslintUtils.getPropertyName; +exports.getPropertyName = getPropertyName; +/** + * Get the value of a given node if it can decide the value statically. + * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the + * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have + * not been modified. + * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} + * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the + * static value of the node, it returns `null`. + */ +const getStaticValue = eslintUtils.getStaticValue; +exports.getStaticValue = getStaticValue; +/** + * Get the string value of a given node. + * This function is a tiny wrapper of the getStaticValue function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} + */ +const getStringIfConstant = eslintUtils.getStringIfConstant; +exports.getStringIfConstant = getStringIfConstant; +/** + * Check whether a given node has any side effect or not. + * The side effect means that it may modify a certain variable or object member. This function considers the node which + * contains the following types as the node which has side effects: + * - `AssignmentExpression` + * - `AwaitExpression` + * - `CallExpression` + * - `ImportExpression` + * - `NewExpression` + * - `UnaryExpression([operator = "delete"])` + * - `UpdateExpression` + * - `YieldExpression` + * - When `options.considerGetters` is `true`: + * - `MemberExpression` + * - When `options.considerImplicitTypeConversion` is `true`: + * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` + * - `MemberExpression([computed = true])` + * - `MethodDefinition([computed = true])` + * - `Property([computed = true])` + * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} + */ +const hasSideEffect = eslintUtils.hasSideEffect; +exports.hasSideEffect = hasSideEffect; +const isParenthesized = eslintUtils.isParenthesized; +exports.isParenthesized = isParenthesized; +//# sourceMappingURL=astUtilities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map new file mode 100644 index 00000000..eb2c0bda --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map @@ -0,0 +1 @@ +{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMhB,CAAC;AA8G3B,0DAAuB;AA5GzB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMjC,CAAC;AAkGV,0DAAuB;AAhGzB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,WAAW,CAAC,eAOlB,CAAC;AAmFjB,0CAAe;AAjFjB;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGL,CAAC;AAoE7B,wCAAc;AAlEhB;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAC,mBAGtB,CAAC;AA0DjB,kDAAmB;AAxDrB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,aAAa,GAAG,WAAW,CAAC,aAOtB,CAAC;AA2BX,sCAAa;AAzBf,MAAM,eAAe,GAAG,WAAW,CAAC,eAiBnC,CAAC;AASA,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts new file mode 100644 index 00000000..3ec74aa2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts @@ -0,0 +1,6 @@ +export * from './astUtilities'; +export * from './PatternMatcher'; +export * from './predicates'; +export * from './ReferenceTracker'; +export * from './scopeAnalysis'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map new file mode 100644 index 00000000..e6a66720 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js new file mode 100644 index 00000000..6e0fbf72 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js @@ -0,0 +1,22 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./astUtilities"), exports); +__exportStar(require("./PatternMatcher"), exports); +__exportStar(require("./predicates"), exports); +__exportStar(require("./ReferenceTracker"), exports); +__exportStar(require("./scopeAnalysis"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map new file mode 100644 index 00000000..c1f12696 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts new file mode 100644 index 00000000..75d1f65d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts @@ -0,0 +1,32 @@ +import type { TSESTree } from '../../ts-estree'; +type IsSpecificTokenFunction = (token: TSESTree.Token) => token is SpecificToken; +type IsNotSpecificTokenFunction = (token: TSESTree.Token) => token is Exclude; +type PunctuatorTokenWithValue = { + value: Value; +} & TSESTree.PunctuatorToken; +type IsPunctuatorTokenWithValueFunction = IsSpecificTokenFunction>; +type IsNotPunctuatorTokenWithValueFunction = IsNotSpecificTokenFunction>; +declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">; +declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">; +declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">; +declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">; +declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">; +declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">; +declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">; +declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">; +declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">; +declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">; +declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">; +declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">; +declare const isCommentToken: IsSpecificTokenFunction; +declare const isNotCommentToken: IsNotSpecificTokenFunction; +declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">; +declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">; +declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">; +declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">; +declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">; +declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">; +declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">; +declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">; +export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, }; +//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map new file mode 100644 index 00000000..9f55408e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACtE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,SAAS,MAAM,IAAI;IACpD,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC,eAAe,CAAC;AAC7B,KAAK,kCAAkC,CAAC,KAAK,SAAS,MAAM,IAC1D,uBAAuB,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,KAAK,qCAAqC,CAAC,KAAK,SAAS,MAAM,IAC7D,0BAA0B,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AAE9D,QAAA,MAAM,YAAY,EACY,kCAAkC,CAAC,IAAI,CAAC,CAAC;AACvE,QAAA,MAAM,eAAe,EACY,qCAAqC,CAAC,IAAI,CAAC,CAAC;AAE7E,QAAA,MAAM,mBAAmB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAA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G,CAAC,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js new file mode 100644 index 00000000..43592b3b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSemicolonToken = exports.isOpeningParenToken = exports.isOpeningBracketToken = exports.isOpeningBraceToken = exports.isNotSemicolonToken = exports.isNotOpeningParenToken = exports.isNotOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isNotCommentToken = exports.isNotCommaToken = exports.isNotColonToken = exports.isNotClosingParenToken = exports.isNotClosingBracketToken = exports.isNotClosingBraceToken = exports.isNotArrowToken = exports.isCommentToken = exports.isCommaToken = exports.isColonToken = exports.isClosingParenToken = exports.isClosingBracketToken = exports.isClosingBraceToken = exports.isArrowToken = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +const isArrowToken = eslintUtils.isArrowToken; +exports.isArrowToken = isArrowToken; +const isNotArrowToken = eslintUtils.isNotArrowToken; +exports.isNotArrowToken = isNotArrowToken; +const isClosingBraceToken = eslintUtils.isClosingBraceToken; +exports.isClosingBraceToken = isClosingBraceToken; +const isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken; +exports.isNotClosingBraceToken = isNotClosingBraceToken; +const isClosingBracketToken = eslintUtils.isClosingBracketToken; +exports.isClosingBracketToken = isClosingBracketToken; +const isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken; +exports.isNotClosingBracketToken = isNotClosingBracketToken; +const isClosingParenToken = eslintUtils.isClosingParenToken; +exports.isClosingParenToken = isClosingParenToken; +const isNotClosingParenToken = eslintUtils.isNotClosingParenToken; +exports.isNotClosingParenToken = isNotClosingParenToken; +const isColonToken = eslintUtils.isColonToken; +exports.isColonToken = isColonToken; +const isNotColonToken = eslintUtils.isNotColonToken; +exports.isNotColonToken = isNotColonToken; +const isCommaToken = eslintUtils.isCommaToken; +exports.isCommaToken = isCommaToken; +const isNotCommaToken = eslintUtils.isNotCommaToken; +exports.isNotCommaToken = isNotCommaToken; +const isCommentToken = eslintUtils.isCommentToken; +exports.isCommentToken = isCommentToken; +const isNotCommentToken = eslintUtils.isNotCommentToken; +exports.isNotCommentToken = isNotCommentToken; +const isOpeningBraceToken = eslintUtils.isOpeningBraceToken; +exports.isOpeningBraceToken = isOpeningBraceToken; +const isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken; +exports.isNotOpeningBraceToken = isNotOpeningBraceToken; +const isOpeningBracketToken = eslintUtils.isOpeningBracketToken; +exports.isOpeningBracketToken = isOpeningBracketToken; +const isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken; +exports.isNotOpeningBracketToken = isNotOpeningBracketToken; +const isOpeningParenToken = eslintUtils.isOpeningParenToken; +exports.isOpeningParenToken = isOpeningParenToken; +const isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken; +exports.isNotOpeningParenToken = isNotOpeningParenToken; +const isSemicolonToken = eslintUtils.isSemicolonToken; +exports.isSemicolonToken = isSemicolonToken; +const isNotSemicolonToken = eslintUtils.isNotSemicolonToken; +exports.isNotSemicolonToken = isNotSemicolonToken; +//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map new file mode 100644 index 00000000..2bdead69 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAoB9D,MAAM,YAAY,GAChB,WAAW,CAAC,YAAwD,CAAC;AAuDrE,oCAAY;AAtDd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA8D,CAAC;AA4D3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AAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwBjF,wDAAsB;AAtBxB,MAAM,gBAAgB,GACpB,WAAW,CAAC,gBAA2D,CAAC;AA0BxE,4CAAgB;AAzBlB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAAiE,CAAC;AAoB9E,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts new file mode 100644 index 00000000..480e9b5a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts @@ -0,0 +1,18 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +/** + * Get the variable of a given name. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} + */ +declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null; +/** + * Get the innermost scope which contains a given node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} + * @returns The innermost scope which contains the given node. + * If such scope doesn't exist then it returns the 1st argument `initialScope`. + */ +declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope; +export { findVariable, getInnermostScope }; +//# sourceMappingURL=scopeAnalysis.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map new file mode 100644 index 00000000..04d9ddd9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,YAAY,EAA+B,CAC/C,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,KACrC,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,EAAoC,CACzD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAChB,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js new file mode 100644 index 00000000..a57ab924 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js @@ -0,0 +1,54 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getInnermostScope = exports.findVariable = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * Get the variable of a given name. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} + */ +const findVariable = eslintUtils.findVariable; +exports.findVariable = findVariable; +/** + * Get the innermost scope which contains a given node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} + * @returns The innermost scope which contains the given node. + * If such scope doesn't exist then it returns the 1st argument `initialScope`. + */ +const getInnermostScope = eslintUtils.getInnermostScope; +exports.getInnermostScope = getInnermostScope; +//# sourceMappingURL=scopeAnalysis.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map new file mode 100644 index 00000000..5f92dc94 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts new file mode 100644 index 00000000..3b390058 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts @@ -0,0 +1,19 @@ +import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; +export declare const isNodeOfType: (nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract; +export declare const isNodeOfTypes: (nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract; +export declare const isNodeOfTypeWithConditions: , Conditions extends Partial>(nodeType: NodeType, conditions: Conditions) => ((node: TSESTree.Node | null | undefined) => node is Conditions & ExtractedNode); +export declare const isTokenOfTypeWithConditions: , Conditions extends Partial<{ + type: TokenType; +} & TSESTree.Token>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Conditions & ExtractedToken); +export declare const isNotTokenOfTypeWithConditions: , Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Exclude); +//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map new file mode 100644 index 00000000..7e2e54c4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAO9E,eAAO,MAAM,YAAY,GACtB,QAAQ,SAAS,cAAc,YAAY,QAAQ,YAE5C,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAC3B,CAAC;AAE5B,eAAO,MAAM,aAAa,GACvB,SAAS,SAAS,SAAS,cAAc,EAAE,aAAa,SAAS,YAE1D,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAAE,CACpB,CAAC;AAE5C,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,EAChE,UAAU,SAAS,OAAO,CAAC,aAAa,CAAC,YAE/B,QAAQ,cACN,UAAU,KACrB,CAAC,CACF,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACnC,IAAI,IAAI,UAAU,GAAG,aAAa,CAQtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,SAAS,SAAS,eAAe,EAGjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,aAErD,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,UAAU,GAAG,cAAc,CAUxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAEvC,SAAS,SAAS,eAAe,EACjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC,cAAc,CAAC,aAE/B,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAAC,CAEN,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js new file mode 100644 index 00000000..4d6bb469 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isNotTokenOfTypeWithConditions = exports.isTokenOfTypeWithConditions = exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0; +const isNodeOfType = (nodeType) => (node) => node?.type === nodeType; +exports.isNodeOfType = isNodeOfType; +const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type); +exports.isNodeOfTypes = isNodeOfTypes; +const isNodeOfTypeWithConditions = (nodeType, conditions) => { + const entries = Object.entries(conditions); + return (node) => node?.type === nodeType && + entries.every(([key, value]) => node[key] === value); +}; +exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions; +const isTokenOfTypeWithConditions = (tokenType, conditions) => { + const entries = Object.entries(conditions); + return (token) => token?.type === tokenType && + entries.every(([key, value]) => token[key] === value); +}; +exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions; +const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token); +exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions; +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map new file mode 100644 index 00000000..73b2878d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":";;;AAOO,MAAM,YAAY,GACvB,CAAkC,QAAkB,EAAE,EAAE,CACxD,CACE,IAAsC,EACc,EAAE,CACtD,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC;AALf,QAAA,YAAY,gBAKG;AAErB,MAAM,aAAa,GACxB,CAA8C,SAAoB,EAAE,EAAE,CACtE,CACE,IAAsC,EACuB,EAAE,CAC/D,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAL/B,QAAA,aAAa,iBAKkB;AAErC,MAAM,0BAA0B,GAAG,CAKxC,QAAkB,EAClB,UAAsB,EAGiB,EAAE;IACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAiC,CAAC;IAE3E,OAAO,CACL,IAAsC,EACF,EAAE,CACtC,IAAI,EAAE,IAAI,KAAK,QAAQ;QACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAA0B,CAAC,KAAK,KAAK,CAAC,CAAC;AAChF,CAAC,CAAC;AAjBW,QAAA,0BAA0B,8BAiBrC;AAEK,MAAM,2BAA2B,GAAG,CAOzC,SAAoB,EACpB,UAAsB,EAGmB,EAAE;IAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAkC,CAAC;IAE5E,OAAO,CACL,KAAwC,EACF,EAAE,CACxC,KAAK,EAAE,IAAI,KAAK,SAAS;QACzB,OAAO,CAAC,KAAK,CACX,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAA2B,CAAC,KAAK,KAAK,CAC/D,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,2BAA2B,+BAqBtC;AAEK,MAAM,8BAA8B,GACzC,CAKE,SAAoB,EACpB,UAAsB,EAG4C,EAAE,CACtE,CAAC,KAAK,EAAiE,EAAE,CACvE,CAAC,IAAA,mCAA2B,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;AAZlD,QAAA,8BAA8B,kCAYoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts new file mode 100644 index 00000000..714b9952 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts @@ -0,0 +1,5 @@ +export * from './eslint-utils'; +export * from './helpers'; +export * from './misc'; +export * from './predicates'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map new file mode 100644 index 00000000..c6f5e7f6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js new file mode 100644 index 00000000..6c5b6600 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js @@ -0,0 +1,21 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./eslint-utils"), exports); +__exportStar(require("./helpers"), exports); +__exportStar(require("./misc"), exports); +__exportStar(require("./predicates"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map new file mode 100644 index 00000000..f373ac53 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts new file mode 100644 index 00000000..cbbd04bc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts @@ -0,0 +1,8 @@ +import type { TSESTree } from '../ts-estree'; +declare const LINEBREAK_MATCHER: RegExp; +/** + * Determines whether two adjacent tokens are on the same line + */ +declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; +export { isTokenOnSameLine, LINEBREAK_MATCHER }; +//# sourceMappingURL=misc.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map new file mode 100644 index 00000000..071c0afe --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,iBAAiB,QAA4B,CAAC;AAEpD;;GAEG;AACH,iBAAS,iBAAiB,CACxB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET;AAED,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js new file mode 100644 index 00000000..7aa82e80 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LINEBREAK_MATCHER = void 0; +exports.isTokenOnSameLine = isTokenOnSameLine; +const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/; +exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER; +/** + * Determines whether two adjacent tokens are on the same line + */ +function isTokenOnSameLine(left, right) { + return left.loc.end.line === right.loc.start.line; +} +//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map new file mode 100644 index 00000000..bf4b06fc --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;AAcS,8CAAiB;AAZ1B,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAYxB,8CAAiB;AAV7C;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts new file mode 100644 index 00000000..39b496ae --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts @@ -0,0 +1,70 @@ +import type { TSESTree } from '../ts-estree'; +declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is { + value: "?."; +} & TSESTree.PunctuatorToken; +declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; +declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is { + value: "!"; +} & TSESTree.PunctuatorToken; +declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; +/** + * Returns true if and only if the node represents: foo?.() or foo.bar?.() + */ +declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is { + optional: boolean; +} & TSESTree.CallExpression; +/** + * Returns true if and only if the node represents logical OR + */ +declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial & TSESTree.LogicalExpression; +/** + * Checks if a node is a type assertion: + * ``` + * x as foo + * x + * ``` + */ +declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion; +declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclaratorDefiniteAssignment | TSESTree.VariableDeclaratorMaybeInit | TSESTree.VariableDeclaratorNoInit | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNormalContextDeclarator; +declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression; +declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; +declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; +declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType; +declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType; +declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName; +/** + * Checks if a node is a constructor method. + */ +declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName); +/** + * Checks if a node is a setter method. + */ +declare function isSetter(node: TSESTree.Node | undefined): node is { + kind: 'set'; +} & (TSESTree.MethodDefinition | TSESTree.Property); +declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier; +/** + * Checks if a node represents an `await …` expression. + */ +declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression; +/** + * Checks if a possible token is the `await` keyword. + */ +declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "await"; +} & TSESTree.IdentifierToken; +/** + * Checks if a possible token is the `type` keyword. + */ +declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "type"; +} & TSESTree.IdentifierToken; +/** + * Checks if a possible token is the `import` keyword. + */ +declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "import"; +} & TSESTree.KeywordToken; +declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement; +export { isAwaitExpression, isAwaitKeyword, isClassOrTypeElement, isConstructor, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLogicalOrOperator, isLoop, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalCallExpression, isOptionalChainPunctuator, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, }; +//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map new file mode 100644 index 00000000..c48d01b9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAW7C,QAAA,MAAM,yBAAyB,UA6DvB,SAAU,KAAK;;4BA1DtB,CAAC;AAEF,QAAA,MAAM,4BAA4B,UA6EJ,SAC3B,KAAK,wWA3EP,CAAC;AAEF,QAAA,MAAM,4BAA4B,UAmD1B,SAAU,KAAK;;4BAhDtB,CAAC;AAEF,QAAA,MAAM,+BAA+B,UAmEP,SAC3B,KAAK,wWAjEP,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB,SAGpB,SAAS,IAAI;;2BAEtB,CAAC;AAEF;;GAEG;AACH,QAAA,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+JA6IlB,CAAC;AAEZ,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,MAAM,EACN,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js new file mode 100644 index 00000000..e8e30bf6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js @@ -0,0 +1,136 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isOptionalChainPunctuator = exports.isOptionalCallExpression = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLoop = exports.isLogicalOrOperator = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isConstructor = exports.isClassOrTypeElement = exports.isAwaitKeyword = exports.isAwaitExpression = void 0; +exports.isSetter = isSetter; +const ts_estree_1 = require("../ts-estree"); +const helpers_1 = require("./helpers"); +const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); +exports.isOptionalChainPunctuator = isOptionalChainPunctuator; +const isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); +exports.isNotOptionalChainPunctuator = isNotOptionalChainPunctuator; +const isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); +exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator; +const isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); +exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator; +/** + * Returns true if and only if the node represents: foo?.() or foo.bar?.() + */ +const isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression, +// this flag means the call expression itself is option +// i.e. it is foo.bar?.() and not foo?.bar() +{ optional: true }); +exports.isOptionalCallExpression = isOptionalCallExpression; +/** + * Returns true if and only if the node represents logical OR + */ +const isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' }); +exports.isLogicalOrOperator = isLogicalOrOperator; +/** + * Checks if a node is a type assertion: + * ``` + * x as foo + * x + * ``` + */ +const isTypeAssertion = (0, helpers_1.isNodeOfTypes)([ + ts_estree_1.AST_NODE_TYPES.TSAsExpression, + ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, +]); +exports.isTypeAssertion = isTypeAssertion; +const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator); +exports.isVariableDeclarator = isVariableDeclarator; +const functionTypes = [ + ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, + ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, + ts_estree_1.AST_NODE_TYPES.FunctionExpression, +]; +const isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes); +exports.isFunction = isFunction; +const functionTypeTypes = [ + ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSConstructorType, + ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSDeclareFunction, + ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, + ts_estree_1.AST_NODE_TYPES.TSFunctionType, + ts_estree_1.AST_NODE_TYPES.TSMethodSignature, +]; +const isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes); +exports.isFunctionType = isFunctionType; +const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([ + ...functionTypes, + ...functionTypeTypes, +]); +exports.isFunctionOrFunctionType = isFunctionOrFunctionType; +const isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType); +exports.isTSFunctionType = isTSFunctionType; +const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType); +exports.isTSConstructorType = isTSConstructorType; +const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([ + // ClassElement + ts_estree_1.AST_NODE_TYPES.PropertyDefinition, + ts_estree_1.AST_NODE_TYPES.FunctionExpression, + ts_estree_1.AST_NODE_TYPES.MethodDefinition, + ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition, + ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition, + ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, + ts_estree_1.AST_NODE_TYPES.TSIndexSignature, + // TypeElement + ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, + // AST_NODE_TYPES.TSIndexSignature, + ts_estree_1.AST_NODE_TYPES.TSMethodSignature, + ts_estree_1.AST_NODE_TYPES.TSPropertySignature, +]); +exports.isClassOrTypeElement = isClassOrTypeElement; +/** + * Checks if a node is a constructor method. + */ +const isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' }); +exports.isConstructor = isConstructor; +/** + * Checks if a node is a setter method. + */ +function isSetter(node) { + return (!!node && + (node.type === ts_estree_1.AST_NODE_TYPES.MethodDefinition || + node.type === ts_estree_1.AST_NODE_TYPES.Property) && + node.kind === 'set'); +} +const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier); +exports.isIdentifier = isIdentifier; +/** + * Checks if a node represents an `await …` expression. + */ +const isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression); +exports.isAwaitExpression = isAwaitExpression; +/** + * Checks if a possible token is the `await` keyword. + */ +const isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { + value: 'await', +}); +exports.isAwaitKeyword = isAwaitKeyword; +/** + * Checks if a possible token is the `type` keyword. + */ +const isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { + value: 'type', +}); +exports.isTypeKeyword = isTypeKeyword; +/** + * Checks if a possible token is the `import` keyword. + */ +const isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, { + value: 'import', +}); +exports.isImportKeyword = isImportKeyword; +const isLoop = (0, helpers_1.isNodeOfTypes)([ + ts_estree_1.AST_NODE_TYPES.DoWhileStatement, + ts_estree_1.AST_NODE_TYPES.ForStatement, + ts_estree_1.AST_NODE_TYPES.ForInStatement, + ts_estree_1.AST_NODE_TYPES.ForOfStatement, + ts_estree_1.AST_NODE_TYPES.WhileStatement, +]); +exports.isLoop = isLoop; +//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map new file mode 100644 index 00000000..b1ef2738 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AAsLE,4BAAQ;AApLV,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAuKA,8DAAyB;AArK3B,MAAM,4BAA4B,GAAG,IAAA,wCAA8B,EACjE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAgKA,oEAA4B;AA9J9B,MAAM,4BAA4B,GAAG,IAAA,qCAA2B,EAC9D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAyJA,oEAA4B;AAvJ9B,MAAM,+BAA+B,GAAG,IAAA,wCAA8B,EACpE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAqJA,0EAA+B;AAnJjC;;GAEG;AACH,MAAM,wBAAwB,GAAG,IAAA,oCAA0B,EACzD,0BAAc,CAAC,cAAc;AAC7B,uDAAuD;AACvD,4CAA4C;AAC5C,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;AA6IA,4DAAwB;AA3I1B;;GAEG;AACH,MAAM,mBAAmB,GAAG,IAAA,oCAA0B,EACpD,0BAAc,CAAC,iBAAiB,EAChC,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;AAgIA,kDAAmB;AA9HrB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,IAAA,uBAAa,EAAC;IACpC,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,eAAe;CACtB,CAA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BAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC;AAaV,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts new file mode 100644 index 00000000..b2359038 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts @@ -0,0 +1,11 @@ +import type { RuleCreateFunction, RuleModule } from '../ts-eslint'; +/** + * Uses type inference to fetch the Options type from the given RuleModule + */ +type InferOptionsTypeFromRule = T extends RuleModule ? Options : T extends RuleCreateFunction ? Options : unknown; +/** + * Uses type inference to fetch the MessageIds type from the given RuleModule + */ +type InferMessageIdsTypeFromRule = T extends RuleModule ? MessageIds : T extends RuleCreateFunction ? MessageIds : unknown; +export type { InferMessageIdsTypeFromRule, InferOptionsTypeFromRule }; +//# sourceMappingURL=InferTypesFromRule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map new file mode 100644 index 00000000..ca551e10 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAC7B,CAAC,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAClD,OAAO,GACP,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAC5D,OAAO,GACP,OAAO,CAAC;AAEhB;;GAEG;AACH,KAAK,2BAA2B,CAAC,CAAC,IAChC,CAAC,SAAS,UAAU,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GACnD,UAAU,GACV,CAAC,SAAS,kBAAkB,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GAC7D,UAAU,GACV,OAAO,CAAC;AAEhB,YAAY,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js new file mode 100644 index 00000000..9305805b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=InferTypesFromRule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map new file mode 100644 index 00000000..99fe846c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InferTypesFromRule.js","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts new file mode 100644 index 00000000..573efc7f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts @@ -0,0 +1,28 @@ +import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule'; +export type NamedCreateRuleMetaDocs = Omit; +export type NamedCreateRuleMeta = { + docs: PluginDocs & RuleMetaDataDocs; +} & Omit, 'docs'>; +export interface RuleCreateAndOptions { + create: (context: Readonly>, optionsWithDefault: Readonly) => RuleListener; + defaultOptions: Readonly; +} +export interface RuleWithMeta extends RuleCreateAndOptions { + meta: RuleMetaData; +} +export interface RuleWithMetaAndName extends RuleCreateAndOptions { + meta: NamedCreateRuleMeta; + name: string; +} +/** + * Creates reusable function to create rules with default options and docs URLs. + * + * @param urlCreator Creates a documentation URL for a given rule name. + * @returns Function to create a rule with the docs URL format. + */ +export declare function RuleCreator(urlCreator: (ruleName: string) => string): ({ meta, name, ...rule }: Readonly>) => RuleModule; +export declare namespace RuleCreator { + var withoutDocs: (args: Readonly>) => RuleModule; +} +export { type RuleListener, type RuleModule } from '../ts-eslint/Rule'; +//# sourceMappingURL=RuleCreator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map new file mode 100644 index 00000000..73c0f958 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map @@ -0,0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U,CAAC;IACjD,IAAI,EAAE,mBAAmB,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,GAAG,OAAO,EAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,IAKtC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,2BAKxB,QAAQ,CACT,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CACrD,KAAG,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAYhD;yBA1Be,WAAW;sBA0DzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,QAEnB,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,KAChD,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC;;AAIlC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js new file mode 100644 index 00000000..97a84f12 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js @@ -0,0 +1,46 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RuleCreator = RuleCreator; +const applyDefault_1 = require("./applyDefault"); +/** + * Creates reusable function to create rules with default options and docs URLs. + * + * @param urlCreator Creates a documentation URL for a given rule name. + * @returns Function to create a rule with the docs URL format. + */ +function RuleCreator(urlCreator) { + // This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349 + // TODO - when the above PR lands; add type checking for the context.report `data` property + return function createNamedRule({ meta, name, ...rule }) { + return createRule({ + meta: { + ...meta, + docs: { + ...meta.docs, + url: urlCreator(name), + }, + }, + ...rule, + }); + }; +} +function createRule({ create, defaultOptions, meta, }) { + return { + create(context) { + const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options); + return create(context, optionsWithDefault); + }, + defaultOptions, + meta, + }; +} +/** + * Creates a well-typed TSESLint custom ESLint rule without a docs URL. + * + * @returns Well-typed TSESLint custom ESLint rule. + * @remarks It is generally better to provide a docs URL function to RuleCreator. + */ +RuleCreator.withoutDocs = function withoutDocs(args) { + return createRule(args); +}; +//# sourceMappingURL=RuleCreator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map new file mode 100644 index 00000000..81961db5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;AAuDA,kCA0BC;AAzED,iDAA8C;AAyC9C;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,UAAwC;IAExC,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,eAAe,CAG7B,EACA,IAAI,EACJ,IAAI,EACJ,GAAG,IAAI,EAGR;QACC,OAAO,UAAU,CAAkC;YACjD,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,IAAI,EAAE;oBACJ,GAAG,IAAI,CAAC,IAAI;oBACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC;iBACtB;aACF;YACD,GAAG,IAAI;SACR,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAIjB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACoD;IAKxD,OAAO;QACL,MAAM,CAAC,OAAmD;YACxD,MAAM,kBAAkB,GAAG,IAAA,2BAAY,EAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAC7C,CAAC;QACD,cAAc;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,WAAW,CAAC,WAAW,GAAG,SAAS,WAAW,CAI5C,IAAiD;IAEjD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts new file mode 100644 index 00000000..81b8af4a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts @@ -0,0 +1,10 @@ +/** + * Pure function - doesn't mutate either parameter! + * Uses the default options and overrides with the options provided by the user + * @param defaultOptions the defaults + * @param userOptions the user opts + * @returns the options with defaults + */ +declare function applyDefault(defaultOptions: Readonly, userOptions: Readonly | null): Default; +export { applyDefault }; +//# sourceMappingURL=applyDefault.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map new file mode 100644 index 00000000..e0a1f332 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,IAAI,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,SAAS,IAAI,EACzE,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,EACjC,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GACjC,OAAO,CAuBT;AAMD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js new file mode 100644 index 00000000..00596092 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.applyDefault = applyDefault; +const deepMerge_1 = require("./deepMerge"); +/** + * Pure function - doesn't mutate either parameter! + * Uses the default options and overrides with the options provided by the user + * @param defaultOptions the defaults + * @param userOptions the user opts + * @returns the options with defaults + */ +function applyDefault(defaultOptions, userOptions) { + // clone defaults + const options = structuredClone(defaultOptions); + if (userOptions == null) { + return options; + } + // For avoiding the type error + // `This expression is not callable. Type 'unknown' has no call signatures.ts(2349)` + options.forEach((opt, i) => { + if (userOptions[i] !== undefined) { + const userOpt = userOptions[i]; + if ((0, deepMerge_1.isObjectNotArray)(userOpt) && (0, deepMerge_1.isObjectNotArray)(opt)) { + options[i] = (0, deepMerge_1.deepMerge)(opt, userOpt); + } + else { + options[i] = userOpt; + } + } + }); + return options; +} +//# sourceMappingURL=applyDefault.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map new file mode 100644 index 00000000..5e688b1a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;AAyCS,oCAAY;AAzCrB,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAiC,EACjC,WAAkC;IAElC,iBAAiB;IACjB,MAAM,OAAO,GAAG,eAAe,CAAC,cAAc,CAAuB,CAAC;IAEtE,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts new file mode 100644 index 00000000..66047298 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts @@ -0,0 +1,16 @@ +export type ObjectLike = Record; +/** + * Check if the variable contains an object strictly rejecting arrays + * @returns `true` if obj is an object + */ +declare function isObjectNotArray(obj: unknown): obj is ObjectLike; +/** + * Pure function - doesn't mutate either parameter! + * Merges two objects together deeply, overwriting the properties in first with the properties in second + * @param first The first object + * @param second The second object + * @returns a new object + */ +export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record; +export { isObjectNotArray }; +//# sourceMappingURL=deepMerge.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map new file mode 100644 index 00000000..ac7365e2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js new file mode 100644 index 00000000..c0dd8281 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.deepMerge = deepMerge; +exports.isObjectNotArray = isObjectNotArray; +/** + * Check if the variable contains an object strictly rejecting arrays + * @returns `true` if obj is an object + */ +function isObjectNotArray(obj) { + return typeof obj === 'object' && obj != null && !Array.isArray(obj); +} +/** + * Pure function - doesn't mutate either parameter! + * Merges two objects together deeply, overwriting the properties in first with the properties in second + * @param first The first object + * @param second The second object + * @returns a new object + */ +function deepMerge(first = {}, second = {}) { + // get the unique set of keys across both objects + const keys = new Set([...Object.keys(first), ...Object.keys(second)]); + return Object.fromEntries([...keys].map(key => { + const firstHasKey = key in first; + const secondHasKey = key in second; + const firstValue = first[key]; + const secondValue = second[key]; + let value; + if (firstHasKey && secondHasKey) { + if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) { + // object type + value = deepMerge(firstValue, secondValue); + } + else { + // value type + value = secondValue; + } + } + else if (firstHasKey) { + value = firstValue; + } + else { + value = secondValue; + } + return [key, value]; + })); +} +//# sourceMappingURL=deepMerge.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map new file mode 100644 index 00000000..72199729 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;AAiBA,8BA+BC;AAEQ,4CAAgB;AAhDzB;;;GAGG;AACH,SAAS,gBAAgB,CAAC,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ules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts new file mode 100644 index 00000000..ea1cdab0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts @@ -0,0 +1,24 @@ +import type * as TSESLint from '../ts-eslint'; +import type { ParserServices, ParserServicesWithTypeInformation } from '../ts-estree'; +/** + * Try to retrieve type-aware parser service from context. + * This **_will_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>): ParserServicesWithTypeInformation; +/** + * Try to retrieve type-aware parser service from context. + * This **_will_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: false): ParserServicesWithTypeInformation; +/** + * Try to retrieve type-aware parser service from context. + * This **_will not_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: true): ParserServices; +/** + * Try to retrieve type-aware parser service from context. + * This may or may not throw if it is not available, depending on if `allowWithoutFullTypeInformation` is `true` + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: boolean): ParserServices; +export { getParserServices }; +//# sourceMappingURL=getParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map new file mode 100644 index 00000000..fca5232e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,iCAAiC,EAClC,MAAM,cAAc,CAAC;AAWtB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,GAC3D,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,KAAK,GACrC,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,IAAI,GACpC,cAAc,CAAC;AAClB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,OAAO,GACvC,cAAc,CAAC;AAiDlB,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js new file mode 100644 index 00000000..2633daf8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParserServices = getParserServices; +const parserSeemsToBeTSESLint_1 = require("./parserSeemsToBeTSESLint"); +const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information."; +const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.'; +function getParserServices(context, allowWithoutFullTypeInformation = false) { + const parser = context.parserPath || context.languageOptions.parser?.meta?.name; + // This check is unnecessary if the user is using the latest version of our parser. + // + // However the world isn't perfect: + // - Users often use old parser versions. + // Old versions of the parser would not return any parserServices unless parserOptions.project was set. + // - Users sometimes use parsers that aren't @typescript-eslint/parser + // Other parsers won't return the parser services we expect (if they return any at all). + // + // This check allows us to handle bad user setups whilst providing a nice user-facing + // error message explaining the problem. + if (context.sourceCode.parserServices?.esTreeNodeToTSNodeMap == null || + context.sourceCode.parserServices.tsNodeToESTreeNodeMap == null) { + throwError(parser); + } + // if a rule requires full type information, then hard fail if it doesn't exist + // this forces the user to supply parserOptions.project + if (context.sourceCode.parserServices.program == null && + !allowWithoutFullTypeInformation) { + throwError(parser); + } + return context.sourceCode.parserServices; +} +/* eslint-enable @typescript-eslint/unified-signatures */ +function throwError(parser) { + const messages = [ + ERROR_MESSAGE_REQUIRES_PARSER_SERVICES, + `Parser: ${parser || '(unknown)'}`, + !(0, parserSeemsToBeTSESLint_1.parserSeemsToBeTSESLint)(parser) && ERROR_MESSAGE_UNKNOWN_PARSER, + ].filter(Boolean); + throw new Error(messages.join('\n')); +} +//# sourceMappingURL=getParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map new file mode 100644 index 00000000..0a0e0e43 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;AA0GS,8CAAiB;AApG1B,uEAAoE;AAEpE,MAAM,sCAAsC,GAC1C,+OAA+O,CAAC;AAElP,MAAM,4BAA4B,GAChC,mKAAmK,CAAC;AA+CtK,SAAS,iBAAiB,CACxB,OAA0D,EAC1D,+BAA+B,GAAG,KAAK;IAEvC,MAAM,MAAM,GACV,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;IAEnE,mFAAmF;IACnF,EAAE;IACF,mCAAmC;IACnC,yCAAyC;IACzC,yGAAyG;IACzG,sEAAsE;IACtE,0FAA0F;IAC1F,EAAE;IACF,qFAAqF;IACrF,wCAAwC;IACxC,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,IAAI,IAAI;QAChE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,qBAAqB,IAAI,IAAI,EAC/D,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,+EAA+E;IAC/E,uDAAuD;IACvD,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,IAAI,IAAI;QACjD,CAAC,+BAA+B,EAChC,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,OAAO,CAAC,UAAU,CAAC,cAAgC,CAAC;AAC7D,CAAC;AACD,yDAAyD;AAEzD,SAAS,UAAU,CAAC,MAA0B;IAC5C,MAAM,QAAQ,GAAG;QACf,sCAAsC;QACtC,WAAW,MAAM,IAAI,WAAW,EAAE;QAClC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,4BAA4B;KACjE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts new file mode 100644 index 00000000..95b326ec --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts @@ -0,0 +1,7 @@ +export * from './applyDefault'; +export * from './deepMerge'; +export * from './getParserServices'; +export * from './InferTypesFromRule'; +export * from './nullThrows'; +export * from './RuleCreator'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map new file mode 100644 index 00000000..d5c13312 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js new file mode 100644 index 00000000..e3895dd4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js @@ -0,0 +1,23 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./applyDefault"), exports); +__exportStar(require("./deepMerge"), exports); +__exportStar(require("./getParserServices"), exports); +__exportStar(require("./InferTypesFromRule"), exports); +__exportStar(require("./nullThrows"), exports); +__exportStar(require("./RuleCreator"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map new file mode 100644 index 00000000..21346960 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,gDAA8B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts new file mode 100644 index 00000000..af919fa2 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts @@ -0,0 +1,14 @@ +/** + * A set of common reasons for calling nullThrows + */ +declare const NullThrowsReasons: { + readonly MissingParent: "Expected node to have a parent."; + readonly MissingToken: (token: string, thing: string) => string; +}; +/** + * Assert that a value must not be null or undefined. + * This is a nice explicit alternative to the non-null assertion operator. + */ +declare function nullThrows(value: T, message: string): NonNullable; +export { nullThrows, NullThrowsReasons }; +//# sourceMappingURL=nullThrows.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map new file mode 100644 index 00000000..d695757d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,iBAAiB;;mCAEC,MAAM,SAAS,MAAM;CAEnC,CAAC;AAEX;;;GAGG;AACH,iBAAS,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAMhE;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js new file mode 100644 index 00000000..2da6d2b1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NullThrowsReasons = void 0; +exports.nullThrows = nullThrows; +/** + * A set of common reasons for calling nullThrows + */ +const NullThrowsReasons = { + MissingParent: 'Expected node to have a parent.', + MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`, +}; +exports.NullThrowsReasons = NullThrowsReasons; +/** + * Assert that a value must not be null or undefined. + * This is a nice explicit alternative to the non-null assertion operator. + */ +function nullThrows(value, message) { + if (value == null) { + throw new Error(`Non-null Assertion Failed: ${message}`); + } + return value; +} +//# sourceMappingURL=nullThrows.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map new file mode 100644 index 00000000..e60696ca --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map @@ -0,0 +1 @@ +{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAqBS,gCAAU;AArBnB;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAcU,8CAAiB;AAZtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAAQ,EAAE,OAAe;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts new file mode 100644 index 00000000..ba5bebe6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts @@ -0,0 +1,2 @@ +export declare function parserSeemsToBeTSESLint(parser: string | undefined): boolean; +//# sourceMappingURL=parserSeemsToBeTSESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map new file mode 100644 index 00000000..57c62220 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parserSeemsToBeTSESLint.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js new file mode 100644 index 00000000..01a05902 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint; +function parserSeemsToBeTSESLint(parser) { + return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser); +} +//# sourceMappingURL=parserSeemsToBeTSESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map new file mode 100644 index 00000000..bdd2e3cd --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parserSeemsToBeTSESLint.js","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":";;AAAA,0DAEC;AAFD,SAAgB,uBAAuB,CAAC,MAA0B;IAChE,OAAO,CAAC,CAAC,MAAM,IAAI,0CAA0C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts new file mode 100644 index 00000000..fbc8815b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts @@ -0,0 +1,7 @@ +export * as ASTUtils from './ast-utils'; +export * as ESLintUtils from './eslint-utils'; +export * as JSONSchema from './json-schema'; +export * as TSESLint from './ts-eslint'; +export * from './ts-estree'; +export * as TSUtils from './ts-utils'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts.map new file mode 100644 index 00000000..107a73c0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js new file mode 100644 index 00000000..0ed4f85c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js @@ -0,0 +1,46 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSUtils = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0; +exports.ASTUtils = __importStar(require("./ast-utils")); +exports.ESLintUtils = __importStar(require("./eslint-utils")); +exports.JSONSchema = __importStar(require("./json-schema")); +exports.TSESLint = __importStar(require("./ts-eslint")); +__exportStar(require("./ts-estree"), exports); +exports.TSUtils = __importStar(require("./ts-utils")); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js.map new file mode 100644 index 00000000..1ab93e7b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwC;AAExC,8DAA8C;AAC9C,4DAA4C;AAC5C,wDAAwC;AACxC,8CAA4B;AAC5B,sDAAsC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts new file mode 100644 index 00000000..51303201 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts @@ -0,0 +1,388 @@ +/** + * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts + * We intentionally fork this because: + * - ESLint ***ONLY*** supports JSONSchema v4 + * - We want to provide stricter types + */ +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 + */ +export type JSONSchema4TypeName = 'any' | 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string'; +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 + */ +export type JSONSchema4Type = boolean | number | string | null; +export type JSONSchema4TypeExtended = JSONSchema4Array | JSONSchema4Object | JSONSchema4Type; +export interface JSONSchema4Object { + [key: string]: JSONSchema4TypeExtended; +} +export interface JSONSchema4Array extends Array { +} +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-04/schema#' + * - 'http://json-schema.org/draft-04/hyper-schema#' + * - 'http://json-schema.org/draft-03/schema#' + * - 'http://json-schema.org/draft-03/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchema4Version = string; +/** + * JSON Schema V4 + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 + */ +export type JSONSchema4 = JSONSchema4AllOfSchema | JSONSchema4AnyOfSchema | JSONSchema4AnySchema | JSONSchema4ArraySchema | JSONSchema4BooleanSchema | JSONSchema4MultiSchema | JSONSchema4NullSchema | JSONSchema4NumberSchema | JSONSchema4ObjectSchema | JSONSchema4OneOfSchema | JSONSchema4RefSchema | JSONSchema4StringSchema; +interface JSONSchema4Base { + /** + * Reusable definitions that can be referenced via `$ref` + */ + $defs?: Record | undefined; + /** + * Path to a schema defined in `definitions`/`$defs` that will form the base + * for this schema. + * + * If you are defining an "array" schema (`schema: [ ... ]`) for your rule + * then you should prefix this with `items/0` so that the validator can find + * your definitions. + * + * eg: `'#/items/0/definitions/myDef'` + * + * Otherwise if you are defining an "object" schema (`schema: { ... }`) for + * your rule you can directly reference your definitions + * + * eg: `'#/definitions/myDef'` + */ + $ref?: string | undefined; + $schema?: JSONSchema4Version | undefined; + /** + * (AND) Must be valid against all of the sub-schemas + */ + allOf?: JSONSchema4[] | undefined; + /** + * (OR) Must be valid against any of the sub-schemas + */ + anyOf?: JSONSchema4[] | undefined; + /** + * The default value for the item if not present + */ + default?: JSONSchema4TypeExtended | undefined; + /** + * Reusable definitions that can be referenced via `$ref` + */ + definitions?: Record | undefined; + /** + * This attribute is a string that provides a full description of the of + * purpose the instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22 + */ + description?: string | undefined; + /** + * The value of this property MUST be another schema which will provide + * a base schema which the current schema will inherit from. The + * inheritance rules are such that any instance that is valid according + * to the current schema MUST be valid according to the referenced + * schema. This MAY also be an array, in which case, the instance MUST + * be valid for all the schemas in the array. A schema that extends + * another schema MAY define additional attributes, constrain existing + * attributes, or add other constraints. + * + * Conceptually, the behavior of extends can be seen as validating an + * instance against all constraints in the extending schema as well as + * the extended schema(s). + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26 + */ + extends?: string | string[] | undefined; + id?: string | undefined; + /** + * (NOT) Must not be valid against the given schema + */ + not?: JSONSchema4 | undefined; + /** + * (XOR) Must be valid against exactly one of the sub-schemas + */ + oneOf?: JSONSchema4[] | undefined; + /** + * This attribute indicates if the instance must have a value, and not + * be undefined. This is false by default, making the instance + * optional. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7 + */ + required?: boolean | string[] | undefined; + /** + * This attribute is a string that provides a short description of the + * instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21 + */ + title?: string | undefined; + /** + * A single type, or a union of simple types + */ + type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined; +} +export interface JSONSchema4RefSchema extends JSONSchema4Base { + $ref: string; + type?: undefined; +} +export interface JSONSchema4AllOfSchema extends JSONSchema4Base { + allOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4AnyOfSchema extends JSONSchema4Base { + anyOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4OneOfSchema extends JSONSchema4Base { + oneOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4MultiSchema extends Omit, Omit, Omit, Omit, Omit, Omit, Omit { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: JSONSchema4Type[]; + type: JSONSchema4TypeName[]; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/object.html + */ +export interface JSONSchema4ObjectSchema extends JSONSchema4Base { + /** + * This attribute defines a schema for all properties that are not + * explicitly defined in an object type definition. If specified, the + * value MUST be a schema or a boolean. If false is provided, no + * additional properties are allowed beyond the properties defined in + * the schema. The default value is an empty schema which allows any + * value for additional properties. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4 + */ + additionalProperties?: boolean | JSONSchema4 | undefined; + /** + * The `dependencies` keyword conditionally applies a sub-schema when a given + * property is present. This schema is applied in the same way `allOf` applies + * schemas. Nothing is merged or extended. Both schemas apply independently. + */ + dependencies?: Record | undefined; + /** + * The maximum number of properties allowed for record-style schemas + */ + maxProperties?: number | undefined; + /** + * The minimum number of properties required for record-style schemas + */ + minProperties?: number | undefined; + /** + * This attribute is an object that defines the schema for a set of + * property names of an object instance. The name of each property of + * this attribute's object is a regular expression pattern in the ECMA + * 262/Perl 5 format, while the value is a schema. If the pattern + * matches the name of a property on the instance object, the value of + * the instance's property MUST be valid against the pattern name's + * schema value. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3 + */ + patternProperties?: Record | undefined; + /** + * This attribute is an object with property definitions that define the + * valid values of instance object property values. When the instance + * value is an object, the property values of the instance object MUST + * conform to the property definitions in this object. In this object, + * each property definition's value MUST be a schema, and the property's + * name MUST be the name of the instance property that it defines. The + * instance property value MUST be valid according to the schema from + * the property definition. Properties are considered unordered, the + * order of the instance properties MAY be in any order. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2 + */ + properties?: Record | undefined; + type: 'object'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/array.html + */ +export interface JSONSchema4ArraySchema extends JSONSchema4Base { + /** + * May only be defined when "items" is defined, and is a tuple of JSONSchemas. + * + * This provides a definition for additional items in an array instance + * when tuple definitions of the items is provided. This can be false + * to indicate additional items in the array are not allowed, or it can + * be a schema that defines the schema of the additional items. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6 + */ + additionalItems?: boolean | JSONSchema4 | undefined; + /** + * This attribute defines the allowed items in an instance array, and + * MUST be a schema or an array of schemas. The default value is an + * empty schema which allows any value for items in the instance array. + * + * When this attribute value is a schema and the instance value is an + * array, then all the items in the array MUST be valid according to the + * schema. + * + * When this attribute value is an array of schemas and the instance + * value is an array, each position in the instance array MUST conform + * to the schema in the corresponding position for this array. This + * called tuple typing. When tuple typing is used, additional items are + * allowed, disallowed, or constrained by the "additionalItems" + * (Section 5.6) attribute using the same rules as + * "additionalProperties" (Section 5.4) for objects. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5 + */ + items?: JSONSchema4 | JSONSchema4[] | undefined; + /** + * Defines the maximum length of an array + */ + maxItems?: number | undefined; + /** + * Defines the minimum length of an array + */ + minItems?: number | undefined; + type: 'array'; + /** + * Enforces that all items in the array are unique + */ + uniqueItems?: boolean | undefined; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/string.html + */ +export interface JSONSchema4StringSchema extends JSONSchema4Base { + enum?: string[] | undefined; + /** + * The `format` keyword allows for basic semantic identification of certain + * kinds of string values that are commonly used. + * + * For example, because JSON doesn’t have a “DateTime” type, dates need to be + * encoded as strings. `format` allows the schema author to indicate that the + * string value should be interpreted as a date. + * + * ajv v6 provides a few built-in formats - all other strings will cause AJV + * to throw during schema compilation + */ + format?: 'date' | 'date-time' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'json-pointer' | 'json-pointer-uri-fragment' | 'regex' | 'relative-json-pointer' | 'time' | 'uri' | 'uri-reference' | 'uri-template' | 'url' | 'uuid' | undefined; + /** + * The maximum allowed length for the string + */ + maxLength?: number | undefined; + /** + * The minimum allowed length for the string + */ + minLength?: number | undefined; + /** + * The `pattern` keyword is used to restrict a string to a particular regular + * expression. The regular expression syntax is the one defined in JavaScript + * (ECMA 262 specifically) with Unicode support. + * + * When defining the regular expressions, it’s important to note that the + * string is considered valid if the expression matches anywhere within the + * string. For example, the regular expression "p" will match any string with + * a p in it, such as "apple" not just a string that is simply "p". Therefore, + * it is usually less confusing, as a matter of course, to surround the + * regular expression in ^...$, for example, "^p$", unless there is a good + * reason not to do so. + */ + pattern?: string | undefined; + type: 'string'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/numeric.html + */ +export interface JSONSchema4NumberSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: number[] | undefined; + /** + * The exclusive minimum allowed value for the number + * - `true` = `x < maximum` + * - `false` = `x <= maximum` + * + * Default is `false` + */ + exclusiveMaximum?: boolean | undefined; + /** + * Indicates whether or not `minimum` is the inclusive or exclusive minimum + * - `true` = `x > minimum` + * - `false` = `x ≥ minimum` + * + * Default is `false` + */ + exclusiveMinimum?: boolean | undefined; + /** + * The maximum allowed value for the number + */ + maximum?: number | undefined; + /** + * The minimum allowed value for the number + */ + minimum?: number | undefined; + /** + * Numbers can be restricted to a multiple of a given number, using the + * `multipleOf` keyword. It may be set to any positive number. + */ + multipleOf?: number | undefined; + type: 'integer' | 'number'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/boolean.html + */ +export interface JSONSchema4BooleanSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: boolean[] | undefined; + type: 'boolean'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/null.html + */ +export interface JSONSchema4NullSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: null[] | undefined; + type: 'null'; +} +export interface JSONSchema4AnySchema extends JSONSchema4Base { + type: 'any'; +} +export {}; +//# sourceMappingURL=json-schema.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map new file mode 100644 index 00000000..780f1c37 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ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;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAE7B,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,IAAI,EAAE,KAAK,CAAC;CACb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js new file mode 100644 index 00000000..8597348f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js @@ -0,0 +1,9 @@ +"use strict"; +/** + * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts + * We intentionally fork this because: + * - ESLint ***ONLY*** supports JSONSchema v4 + * - We want to provide stricter types + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js.map new file mode 100644 index 00000000..a088a7e9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/json-schema.js.map @@ -0,0 +1 @@ +{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts new file mode 100644 index 00000000..3b56109d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts @@ -0,0 +1,9 @@ +import type { AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; +declare namespace AST { + type TokenType = AST_TOKEN_TYPES; + type Token = TSESTree.Token; + type SourceLocation = TSESTree.SourceLocation; + type Range = TSESTree.Range; +} +export type { AST }; +//# sourceMappingURL=AST.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map new file mode 100644 index 00000000..d62fd00f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AST.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9D,kBAAU,GAAG,CAAC;IACZ,KAAY,SAAS,GAAG,eAAe,CAAC;IAExC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEnC,KAAY,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAErD,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;CACpC;AAED,YAAY,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js new file mode 100644 index 00000000..323ed556 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=AST.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map new file mode 100644 index 00000000..2aa7f04b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts new file mode 100644 index 00000000..1b438734 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts @@ -0,0 +1,269 @@ +import type { Parser as ParserType } from './Parser'; +import type * as ParserOptionsTypes from './ParserOptions'; +import type { Processor as ProcessorType } from './Processor'; +import type { LooseRuleDefinition, SharedConfigurationSettings } from './Rule'; +/** @internal */ +export declare namespace SharedConfig { + type Severity = 0 | 1 | 2; + type SeverityString = 'error' | 'off' | 'warn'; + type RuleLevel = Severity | SeverityString; + type RuleLevelAndOptions = [RuleLevel, ...unknown[]]; + type RuleEntry = RuleLevel | RuleLevelAndOptions; + type RulesRecord = Partial>; + type GlobalVariableOptionBase = 'off' | /** @deprecated use `'readonly'` */ 'readable' | 'readonly' | 'writable' | /** @deprecated use `'writable'` */ 'writeable'; + type GlobalVariableOptionBoolean = /** @deprecated use `'readonly'` */ false | /** @deprecated use `'writable'` */ true; + type GlobalVariableOption = GlobalVariableOptionBase | GlobalVariableOptionBoolean; + interface GlobalsConfig { + [name: string]: GlobalVariableOption; + } + interface EnvironmentConfig { + [name: string]: boolean; + } + type ParserOptions = ParserOptionsTypes.ParserOptions; + interface PluginMeta { + /** + * The meta.name property should match the npm package name for your plugin. + */ + name: string; + /** + * The meta.version property should match the npm package version for your plugin. + */ + version: string; + } +} +export declare namespace ClassicConfig { + export type EnvironmentConfig = SharedConfig.EnvironmentConfig; + export type GlobalsConfig = SharedConfig.GlobalsConfig; + export type GlobalVariableOption = SharedConfig.GlobalVariableOption; + export type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase; + export type ParserOptions = SharedConfig.ParserOptions; + export type RuleEntry = SharedConfig.RuleEntry; + export type RuleLevel = SharedConfig.RuleLevel; + export type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + export type RulesRecord = SharedConfig.RulesRecord; + export type Severity = SharedConfig.Severity; + export type SeverityString = SharedConfig.SeverityString; + interface BaseConfig { + $schema?: string; + /** + * The environment settings. + */ + env?: EnvironmentConfig; + /** + * The path to other config files or the package name of shareable configs. + */ + extends?: string | string[]; + /** + * The global variable settings. + */ + globals?: GlobalsConfig; + /** + * The flag that disables directive comments. + */ + noInlineConfig?: boolean; + /** + * The override settings per kind of files. + */ + overrides?: ConfigOverride[]; + /** + * The path to a parser or the package name of a parser. + */ + parser?: string | null; + /** + * The parser options. + */ + parserOptions?: ParserOptions; + /** + * The plugin specifiers. + */ + plugins?: string[]; + /** + * The processor specifier. + */ + processor?: string; + /** + * The flag to report unused `eslint-disable` comments. + */ + reportUnusedDisableDirectives?: boolean; + /** + * The rule settings. + */ + rules?: RulesRecord; + /** + * The shared settings. + */ + settings?: SharedConfigurationSettings; + } + export interface ConfigOverride extends BaseConfig { + excludedFiles?: string | string[]; + files: string | string[]; + } + export interface Config extends BaseConfig { + /** + * The glob patterns that ignore to lint. + */ + ignorePatterns?: string | string[]; + /** + * The root flag. + */ + root?: boolean; + } + export {}; +} +export declare namespace FlatConfig { + type EcmaVersion = ParserOptionsTypes.EcmaVersion; + type GlobalsConfig = SharedConfig.GlobalsConfig; + type Parser = ParserType.LooseParserModule; + type ParserOptions = SharedConfig.ParserOptions; + type PluginMeta = SharedConfig.PluginMeta; + type Processor = ProcessorType.LooseProcessorModule; + type RuleEntry = SharedConfig.RuleEntry; + type RuleLevel = SharedConfig.RuleLevel; + type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + type Rules = SharedConfig.RulesRecord; + type Settings = SharedConfigurationSettings; + type Severity = SharedConfig.Severity; + type SeverityString = SharedConfig.SeverityString; + type SourceType = 'commonjs' | ParserOptionsTypes.SourceType; + interface SharedConfigs { + [key: string]: Config | ConfigArray; + } + interface Plugin { + /** + * Shared configurations bundled with the plugin. + * Users will reference these directly in their config (i.e. `plugin.configs.recommended`). + */ + configs?: SharedConfigs; + /** + * Metadata about your plugin for easier debugging and more effective caching of plugins. + */ + meta?: { + [K in keyof PluginMeta]?: PluginMeta[K] | undefined; + }; + /** + * The definition of plugin processors. + * Users can stringly reference the processor using the key in their config (i.e., `"pluginName/processorName"`). + */ + processors?: Partial> | undefined; + /** + * The definition of plugin rules. + * The key must be the name of the rule that users will use + * Users can stringly reference the rule using the key they registered the plugin under combined with the rule name. + * i.e. for the user config `plugins: { foo: pluginReference }` - the reference would be `"foo/ruleName"`. + */ + rules?: Record | undefined; + } + interface Plugins { + /** + * We intentionally omit the `configs` key from this object because it avoids + * type conflicts with old plugins that haven't updated their configs to flat configs yet. + * It's valid to reference these old plugins because ESLint won't access the + * `.config` property of a plugin when evaluating a flat config. + */ + [pluginAlias: string]: Omit; + } + interface LinterOptions { + /** + * A Boolean value indicating if inline configuration is allowed. + */ + noInlineConfig?: boolean; + /** + * A severity string indicating if and how unused disable and enable + * directives should be tracked and reported. For legacy compatibility, `true` + * is equivalent to `"warn"` and `false` is equivalent to `"off"`. + * @default "off" + */ + reportUnusedDisableDirectives?: boolean | SharedConfig.Severity | SharedConfig.SeverityString; + } + interface LanguageOptions { + /** + * The version of ECMAScript to support. + * May be any year (i.e., `2022`) or version (i.e., `5`). + * Set to `"latest"` for the most recent supported version. + * @default "latest" + */ + ecmaVersion?: EcmaVersion | undefined; + /** + * An object specifying additional objects that should be added to the global scope during linting. + */ + globals?: GlobalsConfig | undefined; + /** + * An object containing a `parse()` method or a `parseForESLint()` method. + * @default + * ``` + * // https://github.com/eslint/espree + * require('espree') + * ``` + */ + parser?: Parser | undefined; + /** + * An object specifying additional options that are passed directly to the parser. + * The available options are parser-dependent. + */ + parserOptions?: ParserOptions | undefined; + /** + * The type of JavaScript source code. + * Possible values are `"script"` for traditional script files, `"module"` for ECMAScript modules (ESM), and `"commonjs"` for CommonJS files. + * @default + * ``` + * // for `.js` and `.mjs` files + * "module" + * // for `.cjs` files + * "commonjs" + * ``` + */ + sourceType?: SourceType | undefined; + } + interface Config { + /** + * An array of glob patterns indicating the files that the configuration object should apply to. + * If not specified, the configuration object applies to all files matched by any other configuration object. + */ + files?: (string | string[])[]; + /** + * An array of glob patterns indicating the files that the configuration object should not apply to. + * If not specified, the configuration object applies to all files matched by files. + */ + ignores?: string[]; + /** + * Language specifier in the form `namespace/language-name` where `namespace` is a plugin name set in the `plugins` field. + */ + language?: string; + /** + * An object containing settings related to how JavaScript is configured for linting. + */ + languageOptions?: LanguageOptions; + /** + * An object containing settings related to the linting process. + */ + linterOptions?: LinterOptions; + /** + * An string to identify the configuration object. Used in error messages and inspection tools. + */ + name?: string; + /** + * An object containing a name-value mapping of plugin names to plugin objects. + * When `files` is specified, these plugins are only available to the matching files. + */ + plugins?: Plugins; + /** + * Either an object containing `preprocess()` and `postprocess()` methods or + * a string indicating the name of a processor inside of a plugin + * (i.e., `"pluginName/processorName"`). + */ + processor?: string | Processor; + /** + * An object containing the configured rules. + * When `files` or `ignores` are specified, these rule configurations are only available to the matching files. + */ + rules?: Rules; + /** + * An object containing name-value pairs of information that should be available to all rules. + */ + settings?: Settings; + } + type ConfigArray = Config[]; + type ConfigPromise = Promise; + type ConfigFile = ConfigArray | ConfigPromise; +} +//# sourceMappingURL=Config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map new file mode 100644 index 00000000..c926280e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,kBAAkB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE/E,gBAAgB;AAChB,yBAAiB,YAAY,CAAC;IAC5B,KAAY,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,KAAY,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IACtD,KAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;IAElD,KAAY,mBAAmB,GAAG,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAE5D,KAAY,SAAS,GAAG,SAAS,GAAG,mBAAmB,CAAC;IACxD,KAAY,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAE7D,KAAY,wBAAwB,GAChC,KAAK,GACL,mCAAmC,CAAC,UAA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,eAAe;QAC9B;;;;;WAKG;QACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;QACtC;;WAEG;QACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QACpC;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B;;;WAGG;QACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QAC1C;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACrC;IAID,UAAiB,MAAM;QACrB;;;WAGG;QACH,KAAK,CAAC,EAAE,CACJ,MAAM,GACN,MAAM,EAAE,CACX,EAAE,CAAC;QACJ;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC/B;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC;QACd;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACrB;IACD,KAAY,WAAW,GAAG,MAAM,EAAE,CAAC;IACnC,KAAY,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,KAAY,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;CACtD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js new file mode 100644 index 00000000..3894b265 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/consistent-indexed-object-style, @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map new file mode 100644 index 00000000..44c1df28 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":";AAAA,0GAA0G"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts new file mode 100644 index 00000000..7c171a3e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts @@ -0,0 +1,8 @@ +export { FlatESLint } from './eslint/FlatESLint'; +export { FlatESLint as ESLint } from './eslint/FlatESLint'; +export { +/** + * @deprecated - use ESLint instead + */ +LegacyESLint, } from './eslint/LegacyESLint'; +//# sourceMappingURL=ESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map new file mode 100644 index 00000000..097c99f4 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLint.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO;AAEL;;GAEG;AACH,YAAY,GACb,MAAM,uBAAuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js new file mode 100644 index 00000000..e2c67bcb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LegacyESLint = exports.ESLint = exports.FlatESLint = void 0; +var FlatESLint_1 = require("./eslint/FlatESLint"); +Object.defineProperty(exports, "FlatESLint", { enumerable: true, get: function () { return FlatESLint_1.FlatESLint; } }); +var FlatESLint_2 = require("./eslint/FlatESLint"); +Object.defineProperty(exports, "ESLint", { enumerable: true, get: function () { return FlatESLint_2.FlatESLint; } }); +var LegacyESLint_1 = require("./eslint/LegacyESLint"); +// TODO(eslint@v10) - remove this in the next major +/** + * @deprecated - use ESLint instead + */ +Object.defineProperty(exports, "LegacyESLint", { enumerable: true, get: function () { return LegacyESLint_1.LegacyESLint; } }); +//# sourceMappingURL=ESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map new file mode 100644 index 00000000..62c149c7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLint.js","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAAxC,wGAAA,UAAU,OAAA;AACnB,kDAA2D;AAAlD,oGAAA,UAAU,OAAU;AAC7B,sDAM+B;AAL7B,mDAAmD;AACnD;;GAEG;AACH,4GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts new file mode 100644 index 00000000..7f8b2a76 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts @@ -0,0 +1,253 @@ +import type { ClassicConfig, FlatConfig, SharedConfig } from './Config'; +import type { Parser } from './Parser'; +import type { Processor as ProcessorType } from './Processor'; +import type { AnyRuleCreateFunction, AnyRuleModule, RuleCreateFunction, RuleFix, RuleModule } from './Rule'; +import type { SourceCode } from './SourceCode'; +export type MinimalRuleModule = Partial, 'create'>> & Pick, 'create'>; +declare class LinterBase { + /** + * The version from package.json. + */ + readonly version: string; + /** + * Initialize the Linter. + * @param config the config object + */ + constructor(config?: Linter.LinterOptions); + /** + * Define a new parser module + * @param parserId Name of the parser + * @param parserModule The parser object + */ + defineParser(parserId: string, parserModule: Parser.LooseParserModule): void; + /** + * Defines a new linting rule. + * @param ruleId A unique rule identifier + * @param ruleModule Function from context to object mapping AST node types to event handlers + */ + defineRule(ruleId: string, ruleModule: MinimalRuleModule | RuleCreateFunction): void; + /** + * Defines many new linting rules. + * @param rulesToDefine map from unique rule identifier to rule + */ + defineRules(rulesToDefine: Record | RuleCreateFunction>): void; + /** + * Gets an object with all loaded rules. + * @returns All loaded rules + */ + getRules(): Map>; + /** + * Gets the `SourceCode` object representing the parsed source. + * @returns The `SourceCode` object. + */ + getSourceCode(): SourceCode; + /** + * Verifies the text against the rules specified by the second argument. + * @param textOrSourceCode The text to parse or a SourceCode object. + * @param config An ESLintConfig instance to configure everything. + * @param filenameOrOptions The optional filename of the file being checked. + * If this is not set, the filename will default to '' in the rule context. + * If this is an object, then it has "filename", "allowInlineConfig", and some properties. + * @returns The results as an array of messages or an empty array if no messages. + */ + verify(textOrSourceCode: string | SourceCode, config: Linter.ConfigType, filenameOrOptions?: string | Linter.VerifyOptions): Linter.LintMessage[]; + /** + * The version from package.json. + */ + static readonly version: string; + /** + * Performs multiple autofix passes over the text until as many fixes as possible have been applied. + * @param code The source text to apply fixes to. + * @param config The ESLint config object to use. + * @param options The ESLint options object to use. + * @returns The result of the fix operation as returned from the SourceCodeFixer. + */ + verifyAndFix(code: string, config: Linter.ConfigType, options: Linter.FixOptions): Linter.FixReport; +} +declare namespace Linter { + interface LinterOptions { + /** + * Which config format to use. + * @default 'flat' + */ + configType?: ConfigTypeSpecifier; + /** + * path to a directory that should be considered as the current working directory. + */ + cwd?: string; + } + type ConfigTypeSpecifier = 'eslintrc' | 'flat'; + type EnvironmentConfig = SharedConfig.EnvironmentConfig; + type GlobalsConfig = SharedConfig.GlobalsConfig; + type GlobalVariableOption = SharedConfig.GlobalVariableOption; + type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase; + type ParserOptions = SharedConfig.ParserOptions; + type PluginMeta = SharedConfig.PluginMeta; + type RuleEntry = SharedConfig.RuleEntry; + type RuleLevel = SharedConfig.RuleLevel; + type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + type RulesRecord = SharedConfig.RulesRecord; + type Severity = SharedConfig.Severity; + type SeverityString = SharedConfig.SeverityString; + /** @deprecated use {@link Linter.ConfigType} instead */ + type Config = ClassicConfig.Config; + type ConfigType = ClassicConfig.Config | FlatConfig.Config | FlatConfig.ConfigArray; + /** @deprecated use {@link ClassicConfig.ConfigOverride} instead */ + type ConfigOverride = ClassicConfig.ConfigOverride; + interface VerifyOptions { + /** + * Allow/disallow inline comments' ability to change config once it is set. Defaults to true if not supplied. + * Useful if you want to validate JS without comments overriding rules. + */ + allowInlineConfig?: boolean; + /** + * if `true` then the linter doesn't make `fix` properties into the lint result. + */ + disableFixes?: boolean; + /** + * the filename of the source code. + */ + filename?: string; + /** + * the predicate function that selects adopt code blocks. + */ + filterCodeBlock?: (filename: string, text: string) => boolean; + /** + * postprocessor for report messages. + * If provided, this should accept an array of the message lists + * for each code block returned from the preprocessor, apply a mapping to + * the messages as appropriate, and return a one-dimensional array of + * messages. + */ + postprocess?: ProcessorType.PostProcess; + /** + * preprocessor for source text. + * If provided, this should accept a string of source text, and return an array of code blocks to lint. + */ + preprocess?: ProcessorType.PreProcess; + /** + * Adds reported errors for unused `eslint-disable` directives. + */ + reportUnusedDisableDirectives?: boolean | SeverityString; + } + interface FixOptions extends VerifyOptions { + /** + * Determines whether fixes should be applied. + */ + fix?: boolean; + } + interface LintSuggestion { + desc: string; + fix: RuleFix; + messageId?: string; + } + interface LintMessage { + /** + * The 1-based column number. + */ + column: number; + /** + * The 1-based column number of the end location. + */ + endColumn?: number; + /** + * The 1-based line number of the end location. + */ + endLine?: number; + /** + * If `true` then this is a fatal error. + */ + fatal?: true; + /** + * Information for autofix. + */ + fix?: RuleFix; + /** + * The 1-based line number. + */ + line: number; + /** + * The error message. + */ + message: string; + messageId?: string; + nodeType: string; + /** + * The ID of the rule which makes this message. + */ + ruleId: string | null; + /** + * The severity of this message. + */ + severity: Severity; + source: string | null; + /** + * Information for suggestions + */ + suggestions?: LintSuggestion[]; + } + interface FixReport { + /** + * True, if the code was fixed + */ + fixed: boolean; + /** + * Collection of all messages for the given code + */ + messages: LintMessage[]; + /** + * Fixed code text (might be the same as input if no fixes were applied). + */ + output: string; + } + /** @deprecated use {@link Parser.ParserModule} */ + type ParserModule = Parser.LooseParserModule; + /** @deprecated use {@link Parser.ParseResult} */ + type ESLintParseResult = Parser.ParseResult; + /** @deprecated use {@link ProcessorType.ProcessorModule} */ + type Processor = ProcessorType.ProcessorModule; + interface Environment { + /** + * The definition of global variables. + */ + globals?: GlobalsConfig; + /** + * The parser options that will be enabled under this environment. + */ + parserOptions?: ParserOptions; + } + type LegacyPluginRules = Record; + type PluginRules = Record; + interface Plugin { + /** + * The definition of plugin configs. + */ + configs?: Record; + /** + * The definition of plugin environments. + */ + environments?: Record; + /** + * Metadata about your plugin for easier debugging and more effective caching of plugins. + */ + meta?: PluginMeta; + /** + * The definition of plugin processors. + */ + processors?: Record; + /** + * The definition of plugin rules. + */ + rules?: LegacyPluginRules; + } +} +declare const Linter_base: typeof LinterBase; +/** + * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it + * simply parses and reports on the code. In particular, the Linter object does not process configuration objects + * or files. + */ +declare class Linter extends Linter_base { +} +export { Linter }; +//# sourceMappingURL=Linter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map new file mode 100644 index 00000000..c515393e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Linter.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EA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;CACF;2BAOqC,OAAO,UAAU;AALvD;;;;GAIG;AACH,cAAM,MAAO,SAAQ,WAAmC;CAAG;AAE3D,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js new file mode 100644 index 00000000..4fd16f1b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js @@ -0,0 +1,14 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Linter = void 0; +const eslint_1 = require("eslint"); +/** + * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it + * simply parses and reports on the code. In particular, the Linter object does not process configuration objects + * or files. + */ +class Linter extends eslint_1.Linter { +} +exports.Linter = Linter; +//# sourceMappingURL=Linter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map new file mode 100644 index 00000000..37f3c5d1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAgD;AAuThD;;;;GAIG;AACH,MAAM,MAAO,SAAS,eAAkC;CAAG;AAElD,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts new file mode 100644 index 00000000..84f52c92 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts @@ -0,0 +1,95 @@ +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { ParserOptions } from './ParserOptions'; +import type { Scope } from './Scope'; +export declare namespace Parser { + interface ParserMeta { + /** + * The unique name of the parser. + */ + name: string; + /** + * The a string identifying the version of the parser. + */ + version?: string; + } + /** + * A loose definition of the ParserModule type for use with configs + * This type intended to relax validation of configs so that parsers that have + * different AST types or scope managers can still be passed to configs + * + * @see {@link LooseRuleDefinition}, {@link LooseProcessorModule} + */ + type LooseParserModule = { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ParserMeta]?: ParserMeta[K] | undefined; + }; + /** + * Parses the given text into an AST + */ + parseForESLint(text: string, options?: unknown): { + [k in keyof ParseResult]: unknown; + }; + } | { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ParserMeta]?: ParserMeta[K] | undefined; + }; + /** + * Parses the given text into an ESTree AST + */ + parse(text: string, options?: unknown): unknown; + }; + type ParserModule = { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: ParserMeta; + /** + * Parses the given text into an AST + */ + parseForESLint(text: string, options?: ParserOptions): ParseResult; + } | { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: ParserMeta; + /** + * Parses the given text into an ESTree AST + */ + parse(text: string, options?: ParserOptions): TSESTree.Program; + }; + interface ParseResult { + /** + * The ESTree AST + */ + ast: TSESTree.Program; + /** + * A `ScopeManager` object. + * Custom parsers can use customized scope analysis for experimental/enhancement syntaxes. + * The default is the `ScopeManager` object which is created by `eslint-scope`. + */ + scopeManager?: Scope.ScopeManager; + /** + * Any parser-dependent services (such as type checkers for nodes). + * The value of the services property is available to rules as `context.sourceCode.parserServices`. + * The default is an empty object. + */ + services?: ParserServices; + /** + * An object to customize AST traversal. + * The keys of the object are the type of AST nodes. + * Each value is an array of the property names which should be traversed. + * The default is `KEYS` of `eslint-visitor-keys`. + */ + visitorKeys?: VisitorKeys; + } + interface VisitorKeys { + [nodeType: string]: readonly string[]; + } +} +//# sourceMappingURL=Parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map new file mode 100644 index 00000000..bb356585 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Parser.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,yBAAiB,MAAM,CAAC;IACtB,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED;;;;;;OAMG;IACH,KAAY,iBAAiB,GACzB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,OAAO,GAChB;aAEA,CAAC,IAAI,MAAM,WAAW,GAAG,OAAO;SAClC,CAAC;KACH,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KACjD,CAAC;IAEN,KAAY,YAAY,GACpB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;KACpE,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC;KAChE,CAAC;IAEN,UAAiB,WAAW;QAC1B;;WAEG;QACH,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC;QACtB;;;;WAIG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;QAClC;;;;WAIG;QACH,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B;;;;;WAKG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B;IAGD,UAAiB,WAAW;QAC1B,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;KACvC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js new file mode 100644 index 00000000..10cd9ec7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map new file mode 100644 index 00000000..502d0474 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts new file mode 100644 index 00000000..62d627d3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts @@ -0,0 +1,2 @@ +export type { DebugLevel, EcmaVersion, ParserOptions, SourceType, } from '@typescript-eslint/types'; +//# sourceMappingURL=ParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map new file mode 100644 index 00000000..9c8b324a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ParserOptions.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js new file mode 100644 index 00000000..40b03dd5 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map new file mode 100644 index 00000000..7bd7a94c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ParserOptions.js","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts new file mode 100644 index 00000000..0f212816 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts @@ -0,0 +1,64 @@ +import type { Linter } from './Linter'; +export declare namespace Processor { + interface ProcessorMeta { + /** + * The unique name of the processor. + */ + name: string; + /** + * The a string identifying the version of the processor. + */ + version?: string; + } + type PreProcess = (text: string, filename: string) => (string | { + filename: string; + text: string; + })[]; + type PostProcess = (messagesList: Linter.LintMessage[][], filename: string) => Linter.LintMessage[]; + interface ProcessorModule { + /** + * Information about the processor to uniquely identify it when serializing. + */ + meta?: ProcessorMeta; + /** + * The function to merge messages. + */ + postprocess?: PostProcess; + /** + * The function to extract code blocks. + */ + preprocess?: PreProcess; + /** + * If `true` then it means the processor supports autofix. + */ + supportsAutofix?: boolean; + } + /** + * A loose definition of the ParserModule type for use with configs + * This type intended to relax validation of configs so that parsers that have + * different AST types or scope managers can still be passed to configs + * + * @see {@link LooseRuleDefinition}, {@link LooseParserModule} + */ + interface LooseProcessorModule { + /** + * Information about the processor to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ProcessorMeta]?: ProcessorMeta[K] | undefined; + }; + /** + * The function to merge messages. + */ + postprocess?: (messagesList: any, filename: string) => any; + /** + * The function to extract code blocks. + */ + preprocess?: (text: string, filename: string) => any; + /** + * If `true` then it means the processor supports autofix. + */ + supportsAutofix?: boolean | undefined; + } +} +//# sourceMappingURL=Processor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map new file mode 100644 index 00000000..3e4ccd17 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,yBAAiB,SAAS,CAAC;IACzB,UAAiB,aAAa;QAC5B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED,KAAY,UAAU,GAAG,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,CAAC,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAErD,KAAY,WAAW,GAAG,CACxB,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,EACpC,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC,WAAW,EAAE,CAAC;IAE1B,UAAiB,eAAe;QAC9B;;WAEG;QACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAErB;;WAEG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;QAE1B;;WAEG;QACH,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B;IAED;;;;;;OAMG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAErE;;WAEG;QAMH,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAE3D;;WAEG;QAMH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAErD;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACvC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js new file mode 100644 index 00000000..4dc798a7 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Processor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map new file mode 100644 index 00000000..1e717ae0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Processor.js","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts new file mode 100644 index 00000000..668d2bd1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts @@ -0,0 +1,545 @@ +import type { JSONSchema4 } from '../json-schema'; +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { AST } from './AST'; +import type { FlatConfig } from './Config'; +import type { Linter } from './Linter'; +import type { Scope } from './Scope'; +import type { SourceCode } from './SourceCode'; +export type RuleRecommendation = 'recommended' | 'strict' | 'stylistic'; +export interface RuleRecommendationAcrossConfigs { + recommended?: true; + strict: Partial; +} +export interface RuleMetaDataDocs { + /** + * Concise description of the rule. + */ + description: string; + /** + * The URL of the rule's docs. + */ + url?: string; +} +export interface RuleMetaData { + /** + * True if the rule is deprecated, false otherwise + */ + deprecated?: boolean; + /** + * Documentation for the rule + */ + docs?: PluginDocs & RuleMetaDataDocs; + /** + * The fixer category. Omit if there is no fixer + */ + fixable?: 'code' | 'whitespace'; + /** + * Specifies whether rules can return suggestions. Omit if there is no suggestions + */ + hasSuggestions?: boolean; + /** + * A map of messages which the rule can report. + * The key is the messageId, and the string is the parameterised error string. + * See: https://eslint.org/docs/developer-guide/working-with-rules#messageids + */ + messages: Record; + /** + * The name of the rule this rule was replaced by, if it was deprecated. + */ + replacedBy?: readonly string[]; + /** + * The options schema. Supply an empty array if there are no options. + */ + schema: JSONSchema4 | readonly JSONSchema4[]; + /** + * The type of rule. + * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. + * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. + * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren’t specified in the AST. + */ + type: 'layout' | 'problem' | 'suggestion'; + /** + * Specifies default options for the rule. If present, any user-provided options in their config will be merged on top of them recursively. + * This merging will be applied directly to `context.options`. + * If you want backwards-compatible support for earlier ESLint version; consider using the top-level `defaultOptions` instead. + * + * since ESLint 9.15.0 + */ + defaultOptions?: Options; +} +export interface RuleMetaDataWithDocs extends RuleMetaData { + /** + * Documentation for the rule + */ + docs: PluginDocs & RuleMetaDataDocs; +} +export interface RuleFix { + range: Readonly; + text: string; +} +export interface RuleFixer { + insertTextAfter(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + insertTextAfterRange(range: Readonly, text: string): RuleFix; + insertTextBefore(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + insertTextBeforeRange(range: Readonly, text: string): RuleFix; + remove(nodeOrToken: TSESTree.Node | TSESTree.Token): RuleFix; + removeRange(range: Readonly): RuleFix; + replaceText(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + replaceTextRange(range: Readonly, text: string): RuleFix; +} +export interface SuggestionReportDescriptor extends Omit, 'fix'> { + readonly fix: ReportFixFunction; +} +export type ReportFixFunction = (fixer: RuleFixer) => IterableIterator | readonly RuleFix[] | RuleFix | null; +export type ReportSuggestionArray = SuggestionReportDescriptor[]; +export type ReportDescriptorMessageData = Readonly>; +interface ReportDescriptorBase { + /** + * The parameters for the message string associated with `messageId`. + */ + readonly data?: ReportDescriptorMessageData; + /** + * The fixer function. + */ + readonly fix?: ReportFixFunction | null; + /** + * The messageId which is being reported. + */ + readonly messageId: MessageIds; +} +interface ReportDescriptorWithSuggestion extends ReportDescriptorBase { + /** + * 6.7's Suggestions API + */ + readonly suggest?: Readonly> | null; +} +interface ReportDescriptorNodeOptionalLoc { + /** + * An override of the location of the report + */ + readonly loc?: Readonly | Readonly; + /** + * The Node or AST Token which the report is being attached to + */ + readonly node: TSESTree.Node | TSESTree.Token; +} +interface ReportDescriptorLocOnly { + /** + * An override of the location of the report + */ + loc: Readonly | Readonly; +} +export type ReportDescriptor = (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc) & ReportDescriptorWithSuggestion; +/** + * Plugins can add their settings using declaration + * merging against this interface. + */ +export interface SharedConfigurationSettings { + [name: string]: unknown; +} +export interface RuleContext { + /** + * The rule ID. + */ + id: string; + /** + * The language options configured for this run + */ + languageOptions: FlatConfig.LanguageOptions; + /** + * An array of the configured options for this rule. + * This array does not include the rule severity. + */ + options: Options; + /** + * The parser options configured for this run + */ + parserOptions: Linter.ParserOptions; + /** + * The name of the parser from configuration, if in eslintrc (legacy) config. + */ + parserPath: string | undefined; + /** + * An object containing parser-provided services for rules + * + * @deprecated in favor of `SourceCode#parserServices` + */ + parserServices?: ParserServices; + /** + * The shared settings from configuration. + * We do not have any shared settings in this plugin. + */ + settings: SharedConfigurationSettings; + /** + * Returns an array of the ancestors of the currently-traversed node, starting at + * the root of the AST and continuing through the direct parent of the current node. + * This array does not include the currently-traversed node itself. + * + * @deprecated in favor of `SourceCode#getAncestors` + */ + getAncestors(): TSESTree.Node[]; + /** + * Returns a list of variables declared by the given node. + * This information can be used to track references to variables. + * + * @deprecated in favor of `SourceCode#getDeclaredVariables` + */ + getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; + /** + * Returns the current working directory passed to Linter. + * It is a path to a directory that should be considered as the current working directory. + * @deprecated in favor of `RuleContext#cwd` + */ + getCwd(): string; + /** + * The current working directory passed to Linter. + * It is a path to a directory that should be considered as the current working directory. + */ + cwd: string; + /** + * Returns the filename associated with the source. + * + * @deprecated in favor of `RuleContext#filename` + */ + getFilename(): string; + /** + * The filename associated with the source. + */ + filename: string; + /** + * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). + * @deprecated in favor of `RuleContext#physicalFilename` + */ + getPhysicalFilename(): string; + /** + * The full path of the file on disk without any code block information (unlike `filename`). + */ + physicalFilename: string; + /** + * Returns the scope of the currently-traversed node. + * This information can be used track references to variables. + * + * @deprecated in favor of `SourceCode#getScope` + */ + getScope(): Scope.Scope; + /** + * Returns a SourceCode object that you can use to work with the source that + * was passed to ESLint. + * + * @deprecated in favor of `RuleContext#sourceCode` + */ + getSourceCode(): Readonly; + /** + * A SourceCode object that you can use to work with the source that + * was passed to ESLint. + */ + sourceCode: Readonly; + /** + * Marks a variable with the given name in the current scope as used. + * This affects the no-unused-vars rule. + * + * @deprecated in favor of `SourceCode#markVariableAsUsed` + */ + markVariableAsUsed(name: string): boolean; + /** + * Reports a problem in the code. + */ + report(descriptor: ReportDescriptor): void; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * These are used in the `onCodePath*` methods. (Note that the `node` parameter + * of these methods is intentionally omitted.) + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export interface CodePath { + /** Code paths of functions this code path contains. */ + childCodePaths: CodePath[]; + /** + * Segments of the current traversal position. + * + * @deprecated + */ + currentSegments: CodePathSegment[]; + /** The final segments which includes both returned and thrown. */ + finalSegments: CodePathSegment[]; + /** + * A unique string. Respective rules can use `id` to save additional + * information for each code path. + */ + id: string; + initialSegment: CodePathSegment; + /** The final segments which includes only returned. */ + returnedSegments: CodePathSegment[]; + /** The final segments which includes only thrown. */ + thrownSegments: CodePathSegment[]; + /** The code path of the upper function/global scope. */ + upper: CodePath | null; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * These are used in the `onCodePath*` methods. (Note that the `node` parameter + * of these methods is intentionally omitted.) + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export interface CodePathSegment { + /** + * A unique string. Respective rules can use `id` to save additional + * information for each segment. + */ + id: string; + /** + * The next segments. If forking, there are two or more. If final, there is + * nothing. + */ + nextSegments: CodePathSegment[]; + /** + * The previous segments. If merging, there are two or more. If initial, there + * is nothing. + */ + prevSegments: CodePathSegment[]; + /** + * A flag which shows whether it is reachable. This becomes `false` when + * preceded by `return`, `throw`, `break`, or `continue`. + */ + reachable: boolean; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * This type is unused in the `typescript-eslint` codebase since putting it on + * the `nodeSelector` for `RuleListener` would break the existing definition. + * However, it is exported here for the purposes of manual type-assertion. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export type CodePathFunction = ((codePath: CodePath, node: TSESTree.Node) => void) | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: TSESTree.Node) => void) | ((segment: CodePathSegment, node: TSESTree.Node) => void); +export type RuleFunction = (node: T) => void; +interface RuleListenerBaseSelectors { + AccessorProperty?: RuleFunction; + ArrayExpression?: RuleFunction; + ArrayPattern?: RuleFunction; + ArrowFunctionExpression?: RuleFunction; + AssignmentExpression?: RuleFunction; + AssignmentPattern?: RuleFunction; + AwaitExpression?: RuleFunction; + BinaryExpression?: RuleFunction; + BlockStatement?: RuleFunction; + BreakStatement?: RuleFunction; + CallExpression?: RuleFunction; + CatchClause?: RuleFunction; + ChainExpression?: RuleFunction; + ClassBody?: RuleFunction; + ClassDeclaration?: RuleFunction; + ClassExpression?: RuleFunction; + ConditionalExpression?: RuleFunction; + ContinueStatement?: RuleFunction; + DebuggerStatement?: RuleFunction; + Decorator?: RuleFunction; + DoWhileStatement?: RuleFunction; + EmptyStatement?: RuleFunction; + ExportAllDeclaration?: RuleFunction; + ExportDefaultDeclaration?: RuleFunction; + ExportNamedDeclaration?: RuleFunction; + ExportSpecifier?: RuleFunction; + ExpressionStatement?: RuleFunction; + ForInStatement?: RuleFunction; + ForOfStatement?: RuleFunction; + ForStatement?: RuleFunction; + FunctionDeclaration?: RuleFunction; + FunctionExpression?: RuleFunction; + Identifier?: RuleFunction; + IfStatement?: RuleFunction; + ImportAttribute?: RuleFunction; + ImportDeclaration?: RuleFunction; + ImportDefaultSpecifier?: RuleFunction; + ImportExpression?: RuleFunction; + ImportNamespaceSpecifier?: RuleFunction; + ImportSpecifier?: RuleFunction; + JSXAttribute?: RuleFunction; + JSXClosingElement?: RuleFunction; + JSXClosingFragment?: RuleFunction; + JSXElement?: RuleFunction; + JSXEmptyExpression?: RuleFunction; + JSXExpressionContainer?: RuleFunction; + JSXFragment?: RuleFunction; + JSXIdentifier?: RuleFunction; + JSXMemberExpression?: RuleFunction; + JSXNamespacedName?: RuleFunction; + JSXOpeningElement?: RuleFunction; + JSXOpeningFragment?: RuleFunction; + JSXSpreadAttribute?: RuleFunction; + JSXSpreadChild?: RuleFunction; + JSXText?: RuleFunction; + LabeledStatement?: RuleFunction; + Literal?: RuleFunction; + LogicalExpression?: RuleFunction; + MemberExpression?: RuleFunction; + MetaProperty?: RuleFunction; + MethodDefinition?: RuleFunction; + NewExpression?: RuleFunction; + ObjectExpression?: RuleFunction; + ObjectPattern?: RuleFunction; + PrivateIdentifier?: RuleFunction; + Program?: RuleFunction; + Property?: RuleFunction; + PropertyDefinition?: RuleFunction; + RestElement?: RuleFunction; + ReturnStatement?: RuleFunction; + SequenceExpression?: RuleFunction; + SpreadElement?: RuleFunction; + StaticBlock?: RuleFunction; + Super?: RuleFunction; + SwitchCase?: RuleFunction; + SwitchStatement?: RuleFunction; + TaggedTemplateExpression?: RuleFunction; + TemplateElement?: RuleFunction; + TemplateLiteral?: RuleFunction; + ThisExpression?: RuleFunction; + ThrowStatement?: RuleFunction; + TryStatement?: RuleFunction; + TSAbstractAccessorProperty?: RuleFunction; + TSAbstractKeyword?: RuleFunction; + TSAbstractMethodDefinition?: RuleFunction; + TSAbstractPropertyDefinition?: RuleFunction; + TSAnyKeyword?: RuleFunction; + TSArrayType?: RuleFunction; + TSAsExpression?: RuleFunction; + TSAsyncKeyword?: RuleFunction; + TSBigIntKeyword?: RuleFunction; + TSBooleanKeyword?: RuleFunction; + TSCallSignatureDeclaration?: RuleFunction; + TSClassImplements?: RuleFunction; + TSConditionalType?: RuleFunction; + TSConstructorType?: RuleFunction; + TSConstructSignatureDeclaration?: RuleFunction; + TSDeclareFunction?: RuleFunction; + TSDeclareKeyword?: RuleFunction; + TSEmptyBodyFunctionExpression?: RuleFunction; + TSEnumBody?: RuleFunction; + TSEnumDeclaration?: RuleFunction; + TSEnumMember?: RuleFunction; + TSExportAssignment?: RuleFunction; + TSExportKeyword?: RuleFunction; + TSExternalModuleReference?: RuleFunction; + TSFunctionType?: RuleFunction; + TSImportEqualsDeclaration?: RuleFunction; + TSImportType?: RuleFunction; + TSIndexedAccessType?: RuleFunction; + TSIndexSignature?: RuleFunction; + TSInferType?: RuleFunction; + TSInstantiationExpression?: RuleFunction; + TSInterfaceBody?: RuleFunction; + TSInterfaceDeclaration?: RuleFunction; + TSInterfaceHeritage?: RuleFunction; + TSIntersectionType?: RuleFunction; + TSIntrinsicKeyword?: RuleFunction; + TSLiteralType?: RuleFunction; + TSMappedType?: RuleFunction; + TSMethodSignature?: RuleFunction; + TSModuleBlock?: RuleFunction; + TSModuleDeclaration?: RuleFunction; + TSNamedTupleMember?: RuleFunction; + TSNamespaceExportDeclaration?: RuleFunction; + TSNeverKeyword?: RuleFunction; + TSNonNullExpression?: RuleFunction; + TSNullKeyword?: RuleFunction; + TSNumberKeyword?: RuleFunction; + TSObjectKeyword?: RuleFunction; + TSOptionalType?: RuleFunction; + TSParameterProperty?: RuleFunction; + TSPrivateKeyword?: RuleFunction; + TSPropertySignature?: RuleFunction; + TSProtectedKeyword?: RuleFunction; + TSPublicKeyword?: RuleFunction; + TSQualifiedName?: RuleFunction; + TSReadonlyKeyword?: RuleFunction; + TSRestType?: RuleFunction; + TSSatisfiesExpression?: RuleFunction; + TSStaticKeyword?: RuleFunction; + TSStringKeyword?: RuleFunction; + TSSymbolKeyword?: RuleFunction; + TSTemplateLiteralType?: RuleFunction; + TSThisType?: RuleFunction; + TSTupleType?: RuleFunction; + TSTypeAliasDeclaration?: RuleFunction; + TSTypeAnnotation?: RuleFunction; + TSTypeAssertion?: RuleFunction; + TSTypeLiteral?: RuleFunction; + TSTypeOperator?: RuleFunction; + TSTypeParameter?: RuleFunction; + TSTypeParameterDeclaration?: RuleFunction; + TSTypeParameterInstantiation?: RuleFunction; + TSTypePredicate?: RuleFunction; + TSTypeQuery?: RuleFunction; + TSTypeReference?: RuleFunction; + TSUndefinedKeyword?: RuleFunction; + TSUnionType?: RuleFunction; + TSUnknownKeyword?: RuleFunction; + TSVoidKeyword?: RuleFunction; + UnaryExpression?: RuleFunction; + UpdateExpression?: RuleFunction; + VariableDeclaration?: RuleFunction; + VariableDeclarator?: RuleFunction; + WhileStatement?: RuleFunction; + WithStatement?: RuleFunction; + YieldExpression?: RuleFunction; +} +type RuleListenerExitSelectors = { + [K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K]; +}; +type RuleListenerCatchAllBaseCase = Record; +export interface RuleListenerExtension { +} +export type RuleListener = RuleListenerBaseSelectors & RuleListenerCatchAllBaseCase & RuleListenerExitSelectors; +export interface RuleModule { + /** + * Function which returns an object with methods that ESLint calls to “visit” + * nodes while traversing the abstract syntax tree. + */ + create(context: Readonly>): ExtendedRuleListener; + /** + * Default options the rule will be run with + */ + defaultOptions: Options; + /** + * Metadata about the rule + */ + meta: RuleMetaData; +} +export type AnyRuleModule = RuleModule; +export interface RuleModuleWithMetaDocs extends RuleModule { + /** + * Metadata about the rule + */ + meta: RuleMetaDataWithDocs; +} +export type AnyRuleModuleWithMetaDocs = RuleModuleWithMetaDocs; +/** + * A loose definition of the RuleModule type for use with configs. This type is + * intended to relax validation of types so that we can have basic validation + * without being overly strict about nitty gritty details matching. + * + * For example the plugin might be declared using an old version of our types or + * they might use the DefinitelyTyped eslint types. Ultimately we don't need + * super strict validation in a config - a loose shape match is "good enough" to + * help validate the config is correct. + * + * @see {@link LooseParserModule}, {@link LooseProcessorModule} + */ +export type LooseRuleDefinition = { + create: LooseRuleCreateFunction; + meta?: object | undefined; +} | LooseRuleCreateFunction; +export type LooseRuleCreateFunction = (context: any) => Record; +export type RuleCreateFunction = (context: Readonly>) => RuleListener; +export type AnyRuleCreateFunction = RuleCreateFunction; +export {}; +//# sourceMappingURL=Rule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map new file mode 100644 index 00000000..ffcb9c83 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,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,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,YAAY,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,MAAM,EACN,SAAS,OAAO,EAAE,CACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js new file mode 100644 index 00000000..8113a7eb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Rule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map new file mode 100644 index 00000000..88c1f037 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts new file mode 100644 index 00000000..f98dd53f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts @@ -0,0 +1,184 @@ +import type { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree'; +import type { ClassicConfig } from './Config'; +import type { Linter } from './Linter'; +import type { ParserOptions } from './ParserOptions'; +import type { ReportDescriptorMessageData, RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule'; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface ValidTestCase { + /** + * Code for the test case. + */ + readonly code: string; + /** + * Environments for the test case. + */ + readonly env?: Readonly; + /** + * The fake filename for the test case. Useful for rules that make assertion about filenames. + */ + readonly filename?: string; + /** + * The additional global variables. + */ + readonly globals?: Readonly; + /** + * Name for the test case. + */ + readonly name?: string; + /** + * Run this case exclusively for debugging in supported test frameworks. + */ + readonly only?: boolean; + /** + * Options for the test case. + */ + readonly options?: Readonly; + /** + * The absolute path for the parser. + */ + readonly parser?: string; + /** + * Options for the parser. + */ + readonly parserOptions?: Readonly; + /** + * Settings for the test case. + */ + readonly settings?: Readonly; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface SuggestionOutput { + /** + * The data used to fill the message template. + */ + readonly data?: ReportDescriptorMessageData; + /** + * Reported message ID. + */ + readonly messageId: MessageIds; + /** + * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes. + * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion. + */ + readonly output: string; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface InvalidTestCase extends ValidTestCase { + /** + * Expected errors. + */ + readonly errors: readonly TestCaseError[]; + /** + * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. + */ + readonly output?: string | string[] | null; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface TestCaseError { + /** + * The 1-based column number of the reported start location. + */ + readonly column?: number; + /** + * The data used to fill the message template. + */ + readonly data?: ReportDescriptorMessageData; + /** + * The 1-based column number of the reported end location. + */ + readonly endColumn?: number; + /** + * The 1-based line number of the reported end location. + */ + readonly endLine?: number; + /** + * The 1-based line number of the reported start location. + */ + readonly line?: number; + /** + * Reported message ID. + */ + readonly messageId: MessageIds; + /** + * Reported suggestions. + */ + readonly suggestions?: readonly SuggestionOutput[] | null; + /** + * The type of the reported AST node. + */ + readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES; +} +/** + * @param text a string describing the rule + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface RunTests { + readonly invalid: readonly InvalidTestCase[]; + readonly valid: readonly (string | ValidTestCase)[]; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface RuleTesterConfig extends ClassicConfig.Config { + readonly parser: string; + readonly parserOptions?: Readonly; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +declare class RuleTesterBase { + /** + * Creates a new instance of RuleTester. + * @param testerConfig extra configuration for the tester + */ + constructor(testerConfig?: RuleTesterConfig); + /** + * Adds a new rule test to execute. + * @param ruleName The name of the rule to run. + * @param rule The rule to test. + * @param tests The collection of tests to run. + */ + run(ruleName: string, rule: RuleModule, tests: RunTests): void; + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get describe(): RuleTesterTestFrameworkFunction; + static set describe(value: RuleTesterTestFrameworkFunction | undefined); + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get it(): RuleTesterTestFrameworkFunction; + static set it(value: RuleTesterTestFrameworkFunction | undefined); + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get itOnly(): RuleTesterTestFrameworkFunction; + static set itOnly(value: RuleTesterTestFrameworkFunction | undefined); + /** + * Define a rule for one particular run of tests. + */ + defineRule(name: string, rule: RuleCreateFunction | RuleModule): void; +} +declare const RuleTester_base: typeof RuleTesterBase; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +declare class RuleTester extends RuleTester_base { +} +export { type InvalidTestCase, RuleTester, type RuleTesterConfig, type RuleTesterTestFrameworkFunction, type RunTests, type SuggestionOutput, type TestCaseError, type ValidTestCase, }; +//# sourceMappingURL=RuleTester.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map new file mode 100644 index 00000000..9617e74e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,kBAAkB,EAClB,UAAU,EACV,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAEhB;;GAEG;AACH,UAAU,aAAa,CAAC,OAAO,SAAS,SAAS,OAAO,EAAE;IACxD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,IAAI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AAK,QAAQ,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAExE;;;OAGG;IACH,MAAM,KAAK,EAAE,IAAI,+BAA+B,CAAC;IACjD,MAAM,KAAK,EAAE,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAElE;;;OAGG;IACH,MAAM,KAAK,MAAM,IAAI,+BAA+B,CAAC;IACrD,MAAM,KAAK,MAAM,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAEtE;;OAEG;IACH,UAAU,CAAC,UAAU,SAAS,MAAM,EAAE,OAAO,SAAS,SAAS,OAAO,EAAE,EACtE,IAAI,EAAE,MAAM,EACZ,IAAI,EACA,kBAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,GACvC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,GAClC,IAAI;CACR;+BAK6C,OAAO,cAAc;AAHnE;;GAEG;AACH,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EACL,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js new file mode 100644 index 00000000..7b53577b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RuleTester = void 0; +/* eslint-disable @typescript-eslint/no-deprecated */ +const eslint_1 = require("eslint"); +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +class RuleTester extends eslint_1.RuleTester { +} +exports.RuleTester = RuleTester; +//# sourceMappingURL=RuleTester.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map new file mode 100644 index 00000000..48cb94c3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,mCAAwD;AAgOxD;;GAEG;AACH,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAIrE,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts new file mode 100644 index 00000000..50b4a749 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts @@ -0,0 +1,44 @@ +import * as scopeManager from '@typescript-eslint/scope-manager'; +declare namespace Scope { + type ScopeManager = scopeManager.ScopeManager; + type Reference = scopeManager.Reference; + type Variable = scopeManager.ScopeVariable; + type Scope = scopeManager.Scope; + const ScopeType: typeof scopeManager.ScopeType; + type DefinitionType = scopeManager.Definition; + type Definition = scopeManager.Definition; + const DefinitionType: typeof scopeManager.DefinitionType; + namespace Definitions { + type CatchClauseDefinition = scopeManager.CatchClauseDefinition; + type ClassNameDefinition = scopeManager.ClassNameDefinition; + type FunctionNameDefinition = scopeManager.FunctionNameDefinition; + type ImplicitGlobalVariableDefinition = scopeManager.ImplicitGlobalVariableDefinition; + type ImportBindingDefinition = scopeManager.ImportBindingDefinition; + type ParameterDefinition = scopeManager.ParameterDefinition; + type TSEnumMemberDefinition = scopeManager.TSEnumMemberDefinition; + type TSEnumNameDefinition = scopeManager.TSEnumNameDefinition; + type TSModuleNameDefinition = scopeManager.TSModuleNameDefinition; + type TypeDefinition = scopeManager.TypeDefinition; + type VariableDefinition = scopeManager.VariableDefinition; + } + namespace Scopes { + type BlockScope = scopeManager.BlockScope; + type CatchScope = scopeManager.CatchScope; + type ClassScope = scopeManager.ClassScope; + type ConditionalTypeScope = scopeManager.ConditionalTypeScope; + type ForScope = scopeManager.ForScope; + type FunctionExpressionNameScope = scopeManager.FunctionExpressionNameScope; + type FunctionScope = scopeManager.FunctionScope; + type FunctionTypeScope = scopeManager.FunctionTypeScope; + type GlobalScope = scopeManager.GlobalScope; + type MappedTypeScope = scopeManager.MappedTypeScope; + type ModuleScope = scopeManager.ModuleScope; + type SwitchScope = scopeManager.SwitchScope; + type TSEnumScope = scopeManager.TSEnumScope; + type TSModuleScope = scopeManager.TSModuleScope; + type TypeScope = scopeManager.TypeScope; + type WithScope = scopeManager.WithScope; + } +} +export { Scope }; +//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map new file mode 100644 index 00000000..444f1d9f --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,kBAAU,KAAK,CAAC;IACd,KAAY,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IACrD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IA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AAC,aAAa,CAAC;QACvD,KAAY,iBAAiB,GAAG,YAAY,CAAC,iBAAiB,CAAC;QAC/D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAC3D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;QACvD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;QAC/C,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;KAChD;CACF;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js new file mode 100644 index 00000000..d9218400 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js @@ -0,0 +1,44 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Scope = void 0; +const scopeManager = __importStar(require("@typescript-eslint/scope-manager")); +var Scope; +(function (Scope) { + Scope.ScopeType = scopeManager.ScopeType; + Scope.DefinitionType = scopeManager.DefinitionType; +})(Scope || (exports.Scope = Scope = {})); +//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map new file mode 100644 index 00000000..c431e05b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,IAAU,KAAK,CA4Cd;AA5CD,WAAU,KAAK;IAKA,eAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAInC,oBAAc,GAAG,YAAY,CAAC,cAAc,CAAC;AAmC5D,CAAC,EA5CS,KAAK,qBAAL,KAAK,QA4Cd"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts new file mode 100644 index 00000000..1e7c6ee6 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts @@ -0,0 +1,355 @@ +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { Parser } from './Parser'; +import type { Scope } from './Scope'; +declare class TokenStore { + /** + * Checks whether any comments exist or not between the given 2 nodes. + * @param left The node to check. + * @param right The node to check. + * @returns `true` if one or more comments exist. + */ + commentsExistBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; + /** + * Gets all comment tokens directly after the given node or token. + * @param nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns An array of comments in occurrence order. + */ + getCommentsAfter(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; + /** + * Gets all comment tokens directly before the given node or token. + * @param nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns An array of comments in occurrence order. + */ + getCommentsBefore(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; + /** + * Gets all comment tokens inside the given node. + * @param node The AST node to get the comments for. + * @returns An array of comments in occurrence order. + */ + getCommentsInside(node: TSESTree.Node): TSESTree.Comment[]; + /** + * Gets the first token of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getFirstToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the first token between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getFirstTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the first `count` tokens of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getFirstTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the first `count` tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getFirstTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the last token of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getLastToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the last token between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getLastTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the last `count` tokens of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getLastTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the last `count` tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getLastTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the token that follows a given node or token. + * @param node The AST node or token. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getTokenAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the token that precedes a given node or token. + * @param node The AST node or token. + * @param options The option object + * @returns An object representing the token. + */ + getTokenBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the token starting at the specified index. + * @param offset Index of the start of the token's range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns The token starting at index, or null if no such token. + */ + getTokenByRangeStart(offset: number, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets all tokens that are related to the given node. + * @param node The AST node. + * @param beforeCount The number of tokens before the node to retrieve. + * @param afterCount The number of tokens after the node to retrieve. + * @returns Array of objects representing tokens. + */ + getTokens(node: TSESTree.Node, beforeCount?: number, afterCount?: number): TSESTree.Token[]; + /** + * Gets all tokens that are related to the given node. + * @param node The AST node. + * @param options The option object. If this is a function then it's `options.filter`. + * @returns Array of objects representing tokens. + */ + getTokens(node: TSESTree.Node, options: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the `count` tokens that follows a given node or token. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getTokensAfter(node: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the `count` tokens that precedes a given node or token. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getTokensBefore(node: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets all of the tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; +} +declare class SourceCodeBase extends TokenStore { + /** + * Represents parsed source code. + * @param ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. + */ + constructor(text: string, ast: SourceCode.Program); + /** + * Represents parsed source code. + * @param config The config object. + */ + constructor(config: SourceCode.SourceCodeConfig); + /** + * The parsed AST for the source code. + */ + ast: SourceCode.Program; + applyInlineConfig(): void; + applyLanguageOptions(): void; + finalize(): void; + /** + * Retrieves an array containing all comments in the source code. + * @returns An array of comment nodes. + */ + getAllComments(): TSESTree.Comment[]; + /** + * Converts a (line, column) pair into a range index. + * @param location A line/column location + * @returns The range index of the location in the file. + */ + getIndexFromLoc(location: TSESTree.Position): number; + /** + * Gets the entire source text split into an array of lines. + * @returns The source text as an array of lines. + */ + getLines(): string[]; + /** + * Converts a source text index into a (line, column) pair. + * @param index The index of a character in a file + * @returns A {line, column} location object with a 0-indexed column + */ + getLocFromIndex(index: number): TSESTree.Position; + /** + * Gets the deepest node containing a range index. + * @param index Range index of the desired node. + * @returns The node if found or `null` if not found. + */ + getNodeByRangeIndex(index: number): TSESTree.Node | null; + /** + * Gets the source code for the given node. + * @param node The AST node to get the text for. + * @param beforeCount The number of characters before the node to retrieve. + * @param afterCount The number of characters after the node to retrieve. + * @returns The text representing the AST node. + */ + getText(node?: TSESTree.Node | TSESTree.Token, beforeCount?: number, afterCount?: number): string; + /** + * The flag to indicate that the source code has Unicode BOM. + */ + hasBOM: boolean; + /** + * Determines if two nodes or tokens have at least one whitespace character + * between them. Order does not matter. Returns false if the given nodes or + * tokens overlap. + * @param first The first node or token to check between. + * @param second The second node or token to check between. + * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens. + */ + isSpaceBetween(first: TSESTree.Node | TSESTree.Token, second: TSESTree.Node | TSESTree.Token): boolean; + /** + * Determines if two nodes or tokens have at least one whitespace character + * between them. Order does not matter. Returns false if the given nodes or + * tokens overlap. + * For backward compatibility, this method returns true if there are + * `JSXText` tokens that contain whitespace between the two. + * @param first The first node or token to check between. + * @param second The second node or token to check between. + * @returns {boolean} True if there is a whitespace character between + * any of the tokens found between the two given nodes or tokens. + * @deprecated in favor of isSpaceBetween + */ + isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean; + /** + * Returns the scope of the given node. + * This information can be used track references to variables. + */ + getScope(node: TSESTree.Node): Scope.Scope; + /** + * Returns an array of the ancestors of the given node, starting at + * the root of the AST and continuing through the direct parent of the current node. + * This array does not include the currently-traversed node itself. + */ + getAncestors(node: TSESTree.Node): TSESTree.Node[]; + /** + * Returns a list of variables declared by the given node. + * This information can be used to track references to variables. + */ + getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; + /** + * Marks a variable with the given name in the current scope as used. + * This affects the no-unused-vars rule. + */ + markVariableAsUsed(name: string, node: TSESTree.Node): boolean; + /** + * The source code split into lines according to ECMA-262 specification. + * This is done to avoid each rule needing to do so separately. + */ + lines: string[]; + /** + * The indexes in `text` that each line starts + */ + lineStartIndices: number[]; + /** + * The parser services of this source code. + */ + parserServices?: Partial; + /** + * The scope of this source code. + */ + scopeManager: Scope.ScopeManager | null; + /** + * The original text source code. BOM was stripped from this text. + */ + text: string; + /** + * All of the tokens and comments in the AST. + * + * TODO: rename to 'tokens' + */ + tokensAndComments: TSESTree.Token[]; + /** + * The visitor keys to traverse AST. + */ + visitorKeys: SourceCode.VisitorKeys; + /** + * Split the source code into multiple lines based on the line delimiters. + * @param text Source code as a string. + * @returns Array of source code lines. + */ + static splitLines(text: string): string[]; +} +declare namespace SourceCode { + interface Program extends TSESTree.Program { + comments: TSESTree.Comment[]; + tokens: TSESTree.Token[]; + } + interface SourceCodeConfig { + /** + * The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. + */ + ast: Program; + /** + * The parser services. + */ + parserServices: ParserServices | null; + /** + * The scope of this source code. + */ + scopeManager: Scope.ScopeManager | null; + /** + * The source code text. + */ + text: string; + /** + * The visitor keys to traverse AST. + */ + visitorKeys: VisitorKeys | null; + } + type VisitorKeys = Parser.VisitorKeys; + type FilterPredicate = (token: TSESTree.Token) => boolean; + type GetFilterPredicate = Filter extends ((token: TSESTree.Token) => token is infer U extends TSESTree.Token) ? U : Default; + type GetFilterPredicateFromOptions = Options extends { + filter?: FilterPredicate; + } ? GetFilterPredicate : GetFilterPredicate; + type ReturnTypeFromOptions = T extends { + includeComments: true; + } ? GetFilterPredicateFromOptions : GetFilterPredicateFromOptions>; + type CursorWithSkipOptions = number | { + /** + * The predicate function to choose tokens. + */ + filter?: FilterPredicate; + /** + * The flag to iterate comments as well. + */ + includeComments?: boolean; + /** + * The count of tokens the cursor skips. + */ + skip?: number; + } | FilterPredicate; + type CursorWithCountOptions = number | { + /** + * The maximum count of tokens the cursor iterates. + */ + count?: number; + /** + * The predicate function to choose tokens. + */ + filter?: FilterPredicate; + /** + * The flag to iterate comments as well. + */ + includeComments?: boolean; + } | FilterPredicate; +} +declare const SourceCode_base: typeof SourceCodeBase; +declare class SourceCode extends SourceCode_base { +} +export { SourceCode }; +//# sourceMappingURL=SourceCode.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map new file mode 100644 index 00000000..0bd7b58c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,OAAO,UAAU;IACtB;;;;;OAKG;IACH,oBAAoB,CAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAA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AAe,CAAC;IAEpB,KAAY,sBAAsB,GAC9B,MAAM,GACN;QACE;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACD,eAAe,CAAC;CACrB;+BAE6C,OAAO,cAAc;AAAnE,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js new file mode 100644 index 00000000..8e029b15 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js @@ -0,0 +1,9 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SourceCode = void 0; +const eslint_1 = require("eslint"); +class SourceCode extends eslint_1.SourceCode { +} +exports.SourceCode = SourceCode; +//# sourceMappingURL=SourceCode.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map new file mode 100644 index 00000000..485d6cdb --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAwD;AAmcxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAE9D,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts new file mode 100644 index 00000000..f550f10e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts @@ -0,0 +1,382 @@ +import type { Linter } from '../Linter'; +import type { RuleMetaData } from '../Rule'; +export declare class ESLintBase> { + /** + * Creates a new instance of the main ESLint API. + * @param options The options for this instance. + */ + constructor(options?: Options); + /** + * This method calculates the configuration for a given file, which can be useful for debugging purposes. + * - It resolves and merges extends and overrides settings into the top level configuration. + * - It resolves the parser setting to absolute paths. + * - It normalizes the plugins setting to align short names. (e.g., eslint-plugin-foo → foo) + * - It adds the processor setting if a legacy file extension processor is matched. + * - It doesn't interpret the env setting to the globals and parserOptions settings, so the result object contains + * the env setting as is. + * @param filePath The path to the file whose configuration you would like to calculate. Directory paths are forbidden + * because ESLint cannot handle the overrides setting. + * @returns The promise that will be fulfilled with a configuration object. + */ + calculateConfigForFile(filePath: string): Promise; + getRulesMetaForResults(results: LintResult[]): Record>>; + /** + * This method checks if a given file is ignored by your configuration. + * @param filePath The path to the file you want to check. + * @returns The promise that will be fulfilled with whether the file is ignored or not. If the file is ignored, then + * it will return true. + */ + isPathIgnored(filePath: string): Promise; + /** + * This method lints the files that match the glob patterns and then returns the results. + * @param patterns The lint target files. This can contain any of file paths, directory paths, and glob patterns. + * @returns The promise that will be fulfilled with an array of LintResult objects. + */ + lintFiles(patterns: string | string[]): Promise; + /** + * This method lints the given source code text and then returns the results. + * + * By default, this method uses the configuration that applies to files in the current working directory (the cwd + * constructor option). If you want to use a different configuration, pass options.filePath, and ESLint will load the + * same configuration that eslint.lintFiles() would use for a file at options.filePath. + * + * If the options.filePath value is configured to be ignored, this method returns an empty array. If the + * options.warnIgnored option is set along with the options.filePath option, this method returns a LintResult object. + * In that case, the result may contain a warning that indicates the file was ignored. + * @param code The source code text to check. + * @returns The promise that will be fulfilled with an array of LintResult objects. This is an array (despite there + * being only one lint result) in order to keep the interfaces between this and the eslint.lintFiles() + * method similar. + */ + lintText(code: string, options?: LintTextOptions): Promise; + /** + * This method loads a formatter. Formatters convert lint results to a human- or machine-readable string. + * @param name TThe path to the file you want to check. + * The following values are allowed: + * - undefined. In this case, loads the "stylish" built-in formatter. + * - A name of built-in formatters. + * - A name of third-party formatters. For examples: + * -- `foo` will load eslint-formatter-foo. + * -- `@foo` will load `@foo/eslint-formatter`. + * -- `@foo/bar` will load `@foo/eslint-formatter-bar`. + * - A path to the file that defines a formatter. The path must contain one or more path separators (/) in order to distinguish if it's a path or not. For example, start with ./. + * @returns The promise that will be fulfilled with a Formatter object. + */ + loadFormatter(name?: string): Promise; + /** + * This method copies the given results and removes warnings. The returned value contains only errors. + * @param results The LintResult objects to filter. + * @returns The filtered LintResult objects. + */ + static getErrorResults(results: LintResult): LintResult; + /** + * This method writes code modified by ESLint's autofix feature into its respective file. If any of the modified + * files don't exist, this method does nothing. + * @param results The LintResult objects to write. + * @returns The promise that will be fulfilled after all files are written. + */ + static outputFixes(results: LintResult[]): Promise; + /** + * The version text. + */ + static readonly version: string; + /** + * The type of configuration used by this class. + */ + static readonly configType: Linter.ConfigTypeSpecifier; +} +export interface ESLintOptions { + /** + * If false is present, ESLint suppresses directive comments in source code. + * If this option is false, it overrides the noInlineConfig setting in your configurations. + * @default true + */ + allowInlineConfig?: boolean; + /** + * Configuration object, extended by all configurations used with this instance. + * You can use this option to define the default settings that will be used if your configuration files don't + * configure it. + * @default null + */ + baseConfig?: Config | null; + /** + * If `true` is present, the `eslint.lintFiles()` method caches lint results and uses it if each target file is not + * changed. Please mind that ESLint doesn't clear the cache when you upgrade ESLint plugins. In that case, you have + * to remove the cache file manually. The `eslint.lintText()` method doesn't use caches even if you pass the + * options.filePath to the method. + * @default false + */ + cache?: boolean; + /** + * The eslint.lintFiles() method writes caches into this file. + * @default '.eslintcache' + */ + cacheLocation?: string; + /** + * Strategy for the cache to use for detecting changed files. + * @default 'metadata' + */ + cacheStrategy?: 'content' | 'metadata'; + /** + * The working directory. This must be an absolute path. + * @default process.cwd() + */ + cwd?: string; + /** + * Unless set to false, the `eslint.lintFiles()` method will throw an error when no target files are found. + * @default true + */ + errorOnUnmatchedPattern?: boolean; + /** + * If `true` is present, the `eslint.lintFiles()` and `eslint.lintText()` methods work in autofix mode. + * If a predicate function is present, the methods pass each lint message to the function, then use only the + * lint messages for which the function returned true. + * @default false + */ + fix?: boolean | ((message: LintMessage) => boolean); + /** + * The types of the rules that the `eslint.lintFiles()` and `eslint.lintText()` methods use for autofix. + * @default null + */ + fixTypes?: ('directive' | 'problem' | 'suggestion')[] | null; + /** + * If false is present, the `eslint.lintFiles()` method doesn't interpret glob patterns. + * @default true + */ + globInputPaths?: boolean; + /** + * Configuration object, overrides all configurations used with this instance. + * You can use this option to define the settings that will be used even if your configuration files configure it. + * @default null + */ + overrideConfig?: Config | null; + /** + * When set to true, missing patterns cause the linting operation to short circuit and not report any failures. + * @default false + */ + passOnNoPatterns?: boolean; + /** + * The plugin implementations that ESLint uses for the plugins setting of your configuration. + * This is a map-like object. Those keys are plugin IDs and each value is implementation. + * @default null + */ + plugins?: Record | null; +} +export interface DeprecatedRuleInfo { + /** + * The rule IDs that replace this deprecated rule. + */ + replacedBy: string[]; + /** + * The rule ID. + */ + ruleId: string; +} +/** + * The LintResult value is the information of the linting result of each file. + */ +export interface LintResult { + /** + * The number of errors. This includes fixable errors. + */ + errorCount: number; + /** + * The number of fatal errors. + */ + fatalErrorCount: number; + /** + * The absolute path to the file of this result. This is the string "" if the file path is unknown (when you + * didn't pass the options.filePath option to the eslint.lintText() method). + */ + filePath: string; + /** + * The number of errors that can be fixed automatically by the fix constructor option. + */ + fixableErrorCount: number; + /** + * The number of warnings that can be fixed automatically by the fix constructor option. + */ + fixableWarningCount: number; + /** + * The array of LintMessage objects. + */ + messages: LintMessage[]; + /** + * The source code of the file that was linted, with as many fixes applied as possible. + */ + output?: string; + /** + * The original source code text. This property is undefined if any messages didn't exist or the output + * property exists. + */ + source?: string; + /** + * Timing information of the lint run. + * This exists if and only if the `--stats` CLI flag was added or the `stats: true` + * option was passed to the ESLint class + * @since 9.0.0 + */ + stats?: LintStats; + /** + * The array of SuppressedLintMessage objects. + */ + suppressedMessages: SuppressedLintMessage[]; + /** + * The information about the deprecated rules that were used to check this file. + */ + usedDeprecatedRules: DeprecatedRuleInfo[]; + /** + * The number of warnings. This includes fixable warnings. + */ + warningCount: number; +} +export interface LintStats { + /** + * The number of times ESLint has applied at least one fix after linting. + */ + fixPasses: number; + /** + * The times spent on (parsing, fixing, linting) a file, where the linting refers to the timing information for each rule. + */ + times: { + passes: LintStatsTimePass[]; + }; +} +export interface LintStatsTimePass { + /** + * The total time that is spent on applying fixes to the code. + */ + fix: LintStatsFixTime; + /** + * The total time that is spent when parsing a file. + */ + parse: LintStatsParseTime; + /** + * The total time that is spent on a rule. + */ + rules?: Record; + /** + * The cumulative total + */ + total: number; +} +export interface LintStatsParseTime { + total: number; +} +export interface LintStatsRuleTime { + total: number; +} +export interface LintStatsFixTime { + total: number; +} +export interface LintTextOptions { + /** + * The path to the file of the source code text. If omitted, the result.filePath becomes the string "". + */ + filePath?: string; + /** + * If true is present and the options.filePath is a file ESLint should ignore, this method returns a lint result + * contains a warning message. + */ + warnIgnored?: boolean; +} +/** + * The LintMessage value is the information of each linting error. + */ +export interface LintMessage { + /** + * The 1-based column number of the begin point of this message. + */ + column: number | undefined; + /** + * The 1-based column number of the end point of this message. This property is undefined if this message + * is not a range. + */ + endColumn: number | undefined; + /** + * The 1-based line number of the end point of this message. This property is undefined if this + * message is not a range. + */ + endLine: number | undefined; + /** + * `true` if this is a fatal error unrelated to a rule, like a parsing error. + */ + fatal?: boolean | undefined; + /** + * The EditInfo object of autofix. This property is undefined if this message is not fixable. + */ + fix: EditInfo | undefined; + /** + * The 1-based line number of the begin point of this message. + */ + line: number | undefined; + /** + * The error message + */ + message: string; + /** + * The rule name that generates this lint message. If this message is generated by the ESLint core rather than + * rules, this is null. + */ + ruleId: string | null; + /** + * The severity of this message. 1 means warning and 2 means error. + */ + severity: 1 | 2; + /** + * The list of suggestions. Each suggestion is the pair of a description and an EditInfo object to fix code. API + * users such as editor integrations can choose one of them to fix the problem of this message. This property is + * undefined if this message doesn't have any suggestions. + */ + suggestions: { + desc: string; + fix: EditInfo; + }[] | undefined; +} +/** + * The SuppressedLintMessage value is the information of each suppressed linting error. + */ +export interface SuppressedLintMessage extends LintMessage { + /** + * The list of suppressions. + */ + suppressions?: { + /** + * The free text description added after the `--` in the comment + */ + justification: string; + /** + * Right now, this is always `directive` + */ + kind: string; + }[]; +} +/** + * The EditInfo value is information to edit text. + * + * This edit information means replacing the range of the range property by the text property value. It's like + * sourceCodeText.slice(0, edit.range[0]) + edit.text + sourceCodeText.slice(edit.range[1]). Therefore, it's an add + * if the range[0] and range[1] property values are the same value, and it's removal if the text property value is + * empty string. + */ +export interface EditInfo { + /** + * The pair of 0-based indices in source code text to remove. + */ + range: [number, number]; + /** + * The text to add. + */ + text: string; +} +/** + * The Formatter value is the object to convert the LintResult objects to text. + */ +export interface Formatter { + /** + * The method to convert the LintResult objects to text. + * Promise return supported since 8.4.0 + */ + format(results: LintResult[]): string | Promise; +} +//# sourceMappingURL=ESLintShared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map new file mode 100644 index 00000000..d9678ca1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map @@ -0,0 +1 @@ +{"version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AAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;OAGG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,GAAG,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB;;;;OAIG;IACH,WAAW,EACP;QACE,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,QAAQ,CAAC;KACf,EAAE,GACH,SAAS,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QACtB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;CACL;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js new file mode 100644 index 00000000..09d9a311 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ESLintShared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map new file mode 100644 index 00000000..02869193 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintShared.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/ESLintShared.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts new file mode 100644 index 00000000..bb4ea72d --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts @@ -0,0 +1,84 @@ +import type { FlatConfig } from '../Config'; +import type * as Shared from './ESLintShared'; +declare class FlatESLintBase extends Shared.ESLintBase { + static readonly configType: 'flat'; + /** + * Returns a configuration object for the given file based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param filePath The path of the file to retrieve a config object for. + * @returns A configuration object for the file or `undefined` if there is no configuration data for the object. + */ + calculateConfigForFile(filePath: string): Promise; + /** + * Finds the config file being used by this instance based on the options + * passed to the constructor. + * @returns The path to the config file being used or `undefined` if no config file is being used. + */ + findConfigFile(): Promise; +} +declare const FlatESLint_base: typeof FlatESLintBase; +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +export declare class FlatESLint extends FlatESLint_base { +} +export declare namespace FlatESLint { + interface ESLintOptions extends Shared.ESLintOptions { + /** + * If false is present, the eslint.lintFiles() method doesn't respect `ignorePatterns` ignorePatterns in your configuration. + * @default true + */ + ignore?: boolean; + /** + * Ignore file patterns to use in addition to config ignores. These patterns are relative to cwd. + * @default null + */ + ignorePatterns?: string[] | null; + /** + * The path to a configuration file, overrides all configurations used with this instance. + * The options.overrideConfig option is applied after this option is applied. + * Searches for default config file when falsy; doesn't do any config file lookup when `true`; considered to be a config filename when a string. + * @default false + */ + overrideConfigFile?: boolean | string; + /** + * A predicate function that filters rules to be run. + * This function is called with an object containing `ruleId` and `severity`, and returns `true` if the rule should be run. + * @default () => true + */ + ruleFilter?: RuleFilter; + /** + * When set to true, additional statistics are added to the lint results. + * @see {@link https://eslint.org/docs/latest/extend/stats} + * @default false + */ + stats?: boolean; + /** + * Show warnings when the file list includes ignored files. + * @default true + */ + warnIgnored?: boolean; + } + type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo; + type EditInfo = Shared.EditInfo; + type Formatter = Shared.Formatter; + type LintMessage = Shared.LintMessage; + type LintResult = Shared.LintResult; + type LintStats = Shared.LintStats; + type LintStatsFixTime = Shared.LintStatsFixTime; + type LintStatsParseTime = Shared.LintStatsParseTime; + type LintStatsRuleTime = Shared.LintStatsRuleTime; + type LintStatsTimePass = Shared.LintStatsTimePass; + type LintTextOptions = Shared.LintTextOptions; + type SuppressedLintMessage = Shared.SuppressedLintMessage; + type RuleFilter = (rule: { + ruleId: string; + severity: number; + }) => boolean; +} +export {}; +//# sourceMappingURL=FlatESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map new file mode 100644 index 00000000..3afc310a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FlatESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,cAAe,SAAQ,MAAM,CAAC,UAAU,CACpD,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,aAAa,CACzB;IACC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAEnC;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;IAEzE;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAC9C;+BAQoD,OAAO,cAAc;AAN1E;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,eAA2C;CAAG;AAC9E,yBAAiB,UAAU,CAAC;IAC1B,UAAiB,aACf,SAAQ,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC;QACpD;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACjC;;;;;WAKG;QACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACtC;;;;WAIG;QACH,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB;;;;WAIG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IACD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7C,KAAY,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3C,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACvD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACzD,KAAY,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACzD,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACjE,KAAY,UAAU,GAAG,CAAC,IAAI,EAAE;QAC9B,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,KAAK,OAAO,CAAC;CACf"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js new file mode 100644 index 00000000..1add2c67 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlatESLint = void 0; +/* eslint-disable @typescript-eslint/no-namespace */ +const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +class FlatESLint extends use_at_your_own_risk_1.FlatESLint { +} +exports.FlatESLint = FlatESLint; +//# sourceMappingURL=FlatESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map new file mode 100644 index 00000000..ee314e19 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FlatESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,sEAA6E;AA6B7E;;;;;GAKG;AACH,MAAa,UAAW,SAAS,iCAA0C;CAAG;AAA9E,gCAA8E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts new file mode 100644 index 00000000..698c0120 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts @@ -0,0 +1,73 @@ +import type { ClassicConfig } from '../Config'; +import type { Linter } from '../Linter'; +import type * as Shared from './ESLintShared'; +declare class LegacyESLintBase extends Shared.ESLintBase { + static readonly configType: 'eslintrc'; +} +declare const LegacyESLint_base: typeof LegacyESLintBase; +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +export declare class LegacyESLint extends LegacyESLint_base { +} +export declare namespace LegacyESLint { + interface ESLintOptions extends Shared.ESLintOptions { + /** + * If you pass directory paths to the eslint.lintFiles() method, ESLint checks the files in those directories that + * have the given extensions. For example, when passing the src/ directory and extensions is [".js", ".ts"], ESLint + * will lint *.js and *.ts files in src/. If extensions is null, ESLint checks *.js files and files that match + * overrides[].files patterns in your configuration. + * Note: This option only applies when you pass directory paths to the eslint.lintFiles() method. + * If you pass glob patterns, ESLint will lint all files matching the glob pattern regardless of extension. + */ + extensions?: string[] | null; + /** + * If false is present, the eslint.lintFiles() method doesn't respect `.eslintignore` files in your configuration. + * @default true + */ + ignore?: boolean; + /** + * The path to a file ESLint uses instead of `$CWD/.eslintignore`. + * If a path is present and the file doesn't exist, this constructor will throw an error. + */ + ignorePath?: string; + /** + * The path to a configuration file, overrides all configurations used with this instance. + * The options.overrideConfig option is applied after this option is applied. + */ + overrideConfigFile?: string | null; + /** + * The severity to report unused eslint-disable directives. + * If this option is a severity, it overrides the reportUnusedDisableDirectives setting in your configurations. + */ + reportUnusedDisableDirectives?: Linter.SeverityString | null; + /** + * The path to a directory where plugins should be resolved from. + * If null is present, ESLint loads plugins from the location of the configuration file that contains the plugin + * setting. + * If a path is present, ESLint loads all plugins from there. + */ + resolvePluginsRelativeTo?: string | null; + /** + * An array of paths to directories to load custom rules from. + */ + rulePaths?: string[]; + /** + * If false is present, ESLint doesn't load configuration files (.eslintrc.* files). + * Only the configuration of the constructor options is valid. + */ + useEslintrc?: boolean; + } + type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo; + type EditInfo = Shared.EditInfo; + type Formatter = Shared.Formatter; + type LintMessage = Shared.LintMessage; + type LintResult = Omit; + type LintTextOptions = Shared.LintTextOptions; + type SuppressedLintMessage = Shared.SuppressedLintMessage; +} +export {}; +//# sourceMappingURL=LegacyESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map new file mode 100644 index 00000000..e798f27c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LegacyESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,gBAAiB,SAAQ,MAAM,CAAC,UAAU,CACtD,aAAa,CAAC,MAAM,EACpB,YAAY,CAAC,aAAa,CAC3B;IACC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACxC;iCAQwD,OAAO,gBAAgB;AANhF;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,iBAA+C;CAAG;AACpF,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,aACf,SAAQ,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC;QAClD;;;;;;;WAOG;QACH,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAC7B;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC;;;WAGG;QACH,6BAA6B,CAAC,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;QAC7D;;;;;WAKG;QACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzC;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IACD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7C,KAAY,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1D,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;CAClE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js new file mode 100644 index 00000000..88f281e1 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js @@ -0,0 +1,15 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LegacyESLint = void 0; +const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +class LegacyESLint extends use_at_your_own_risk_1.LegacyESLint { +} +exports.LegacyESLint = LegacyESLint; +//# sourceMappingURL=LegacyESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map new file mode 100644 index 00000000..69aa943a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LegacyESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,sEAAiF;AAcjF;;;;;GAKG;AACH,MAAa,YAAa,SAAS,mCAA8C;CAAG;AAApF,oCAAoF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts new file mode 100644 index 00000000..17edebe9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts @@ -0,0 +1,12 @@ +export * from './AST'; +export * from './Config'; +export * from './ESLint'; +export * from './Linter'; +export * from './Parser'; +export * from './ParserOptions'; +export * from './Processor'; +export * from './Rule'; +export * from './RuleTester'; +export * from './Scope'; +export * from './SourceCode'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map new file mode 100644 index 00000000..31ec4265 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js new file mode 100644 index 00000000..85b7e5cf --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js @@ -0,0 +1,28 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./AST"), exports); +__exportStar(require("./Config"), exports); +__exportStar(require("./ESLint"), exports); +__exportStar(require("./Linter"), exports); +__exportStar(require("./Parser"), exports); +__exportStar(require("./ParserOptions"), exports); +__exportStar(require("./Processor"), exports); +__exportStar(require("./Rule"), exports); +__exportStar(require("./RuleTester"), exports); +__exportStar(require("./Scope"), exports); +__exportStar(require("./SourceCode"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map new file mode 100644 index 00000000..b7821e91 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,8CAA4B;AAC5B,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts new file mode 100644 index 00000000..43b2b754 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts @@ -0,0 +1,3 @@ +export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; +export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, } from '@typescript-eslint/typescript-estree'; +//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map new file mode 100644 index 00000000..3a7063c3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,cAAc,EACd,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,sCAAsC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js new file mode 100644 index 00000000..4a32e9c8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js @@ -0,0 +1,10 @@ +"use strict"; +// for convenience's sake - export the types directly from here so consumers +// don't need to reference/install both packages in their code +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var types_1 = require("@typescript-eslint/types"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); +Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); +//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map new file mode 100644 index 00000000..4806a284 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8DAA8D;;;AAE9D,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts new file mode 100644 index 00000000..163c4043 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts @@ -0,0 +1,10 @@ +/** + * We could use NoInfer typescript build-in utility + * introduced in typescript 5.4, however at the moment of creation + * the supported ts versions are >=4.8.4 <5.7.0 + * so for the moment we have to stick to this polyfill. + * + * @see https://github.com/millsp/ts-toolbelt/blob/master/sources/Function/NoInfer.ts + */ +export type NoInfer = [A][A extends unknown ? 0 : never]; +//# sourceMappingURL=NoInfer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map new file mode 100644 index 00000000..44bb4ef9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NoInfer.d.ts","sourceRoot":"","sources":["../../src/ts-utils/NoInfer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js new file mode 100644 index 00000000..af801291 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=NoInfer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map new file mode 100644 index 00000000..28310d3b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NoInfer.js","sourceRoot":"","sources":["../../src/ts-utils/NoInfer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts new file mode 100644 index 00000000..da4764b0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts @@ -0,0 +1,3 @@ +export * from './isArray'; +export * from './NoInfer'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map new file mode 100644 index 00000000..d1bbe756 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js new file mode 100644 index 00000000..cb645cda --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js @@ -0,0 +1,19 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./isArray"), exports); +__exportStar(require("./NoInfer"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map new file mode 100644 index 00000000..795d41e0 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts new file mode 100644 index 00000000..ddefcee8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts @@ -0,0 +1,2 @@ +export declare function isArray(arg: unknown): arg is readonly unknown[]; +//# sourceMappingURL=isArray.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map new file mode 100644 index 00000000..55264f27 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isArray.d.ts","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":"AACA,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,OAAO,EAAE,CAE/D"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js new file mode 100644 index 00000000..92a7237e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isArray = isArray; +// https://github.com/microsoft/TypeScript/issues/17002 +function isArray(arg) { + return Array.isArray(arg); +} +//# sourceMappingURL=isArray.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map new file mode 100644 index 00000000..ea8aabab --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":";;AACA,0BAEC;AAHD,uDAAuD;AACvD,SAAgB,OAAO,CAAC,GAAY;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/package.json new file mode 100644 index 00000000..93d3f33e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/package.json @@ -0,0 +1,97 @@ +{ + "name": "@typescript-eslint/utils", + "version": "8.16.0", + "description": "Utilities for working with TypeScript + ESLint together", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./ast-utils": { + "types": "./dist/ast-utils/index.d.ts", + "default": "./dist/ast-utils/index.js" + }, + "./eslint-utils": { + "types": "./dist/eslint-utils/index.d.ts", + "default": "./dist/eslint-utils/index.js" + }, + "./json-schema": { + "types": "./dist/json-schema.d.ts", + "default": "./dist/json-schema.js" + }, + "./ts-eslint": { + "types": "./dist/ts-eslint/index.d.ts", + "default": "./dist/ts-eslint/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/utils" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/utils", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.16.0", + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/typescript-estree": "8.16.0" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, + "devDependencies": { + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/README.md new file mode 100644 index 00000000..1745172a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/visitor-keys` + +> Visitor keys used to help traverse the TypeScript-ESTree AST. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts new file mode 100644 index 00000000..344a7c42 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts @@ -0,0 +1,4 @@ +import type { TSESTree } from '@typescript-eslint/types'; +declare const getKeys: (node: TSESTree.Node) => readonly string[]; +export { getKeys }; +//# sourceMappingURL=get-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map new file mode 100644 index 00000000..85407809 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.d.ts","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,QAAA,MAAM,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS,MAAM,EAAoB,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js new file mode 100644 index 00000000..309b72b9 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getKeys = void 0; +const eslint_visitor_keys_1 = require("eslint-visitor-keys"); +const getKeys = eslint_visitor_keys_1.getKeys; +exports.getKeys = getKeys; +//# sourceMappingURL=get-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map new file mode 100644 index 00000000..4a903fd8 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.js","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":";;;AAEA,6DAAiE;AAEjE,MAAM,OAAO,GAA+C,6BAAe,CAAC;AAEnE,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..f9eb5a97 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts @@ -0,0 +1,3 @@ +export { getKeys } from './get-keys'; +export { visitorKeys, type VisitorKeys } from './visitor-keys'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map new file mode 100644 index 00000000..d9031764 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js new file mode 100644 index 00000000..a5b4b62a --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = exports.getKeys = void 0; +var get_keys_1 = require("./get-keys"); +Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return get_keys_1.getKeys; } }); +var visitor_keys_1 = require("./visitor-keys"); +Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map new file mode 100644 index 00000000..03f9af81 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,+CAA+D;AAAtD,2GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..18e74ea3 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,4 @@ +type VisitorKeys = Record; +declare const visitorKeys: VisitorKeys; +export { visitorKeys, type VisitorKeys }; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map new file mode 100644 index 00000000..c4883d4c --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.d.ts","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AA0QjE,QAAA,MAAM,WAAW,EAAE,WAAyD,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js new file mode 100644 index 00000000..77c96599 --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js @@ -0,0 +1,196 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = void 0; +const eslintVisitorKeys = __importStar(require("eslint-visitor-keys")); +/* + ********************************** IMPORTANT NOTE ******************************** + * * + * The key arrays should be sorted in the order in which you would want to visit * + * the child keys. * + * * + * DO NOT SORT THEM ALPHABETICALLY! * + * * + * They should be sorted in the order that they appear in the source code. * + * For example: * + * * + * class Foo extends Bar { prop: 1 } * + * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ClassDeclaration * + * ^^^ id ^^^ superClass * + * ^^^^^^^^^^^ body * + * * + * It would be incorrect to provide the visitor keys ['body', 'id', 'superClass'] * + * because the body comes AFTER everything else in the source code. * + * Instead the correct ordering would be ['id', 'superClass', 'body']. * + * * + ********************************************************************************** + */ +const SharedVisitorKeys = (() => { + const FunctionType = ['typeParameters', 'params', 'returnType']; + const AnonymousFunction = [...FunctionType, 'body']; + const AbstractPropertyDefinition = [ + 'decorators', + 'key', + 'typeAnnotation', + ]; + return { + AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'], + AnonymousFunction, + AsExpression: ['expression', 'typeAnnotation'], + ClassDeclaration: [ + 'decorators', + 'id', + 'typeParameters', + 'superClass', + 'superTypeArguments', + 'implements', + 'body', + ], + Function: ['id', ...AnonymousFunction], + FunctionType, + PropertyDefinition: [...AbstractPropertyDefinition, 'value'], + }; +})(); +const additionalKeys = { + AccessorProperty: SharedVisitorKeys.PropertyDefinition, + ArrayPattern: ['decorators', 'elements', 'typeAnnotation'], + ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction, + AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'], + CallExpression: ['callee', 'typeArguments', 'arguments'], + ClassDeclaration: SharedVisitorKeys.ClassDeclaration, + ClassExpression: SharedVisitorKeys.ClassDeclaration, + Decorator: ['expression'], + ExportAllDeclaration: ['exported', 'source', 'assertions'], + ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'], + FunctionDeclaration: SharedVisitorKeys.Function, + FunctionExpression: SharedVisitorKeys.Function, + Identifier: ['decorators', 'typeAnnotation'], + ImportAttribute: ['key', 'value'], + ImportDeclaration: ['specifiers', 'source', 'assertions'], + ImportExpression: ['source', 'options'], + JSXClosingFragment: [], + JSXOpeningElement: ['name', 'typeArguments', 'attributes'], + JSXOpeningFragment: [], + JSXSpreadChild: ['expression'], + MethodDefinition: ['decorators', 'key', 'value'], + NewExpression: ['callee', 'typeArguments', 'arguments'], + ObjectPattern: ['decorators', 'properties', 'typeAnnotation'], + PropertyDefinition: SharedVisitorKeys.PropertyDefinition, + RestElement: ['decorators', 'argument', 'typeAnnotation'], + StaticBlock: ['body'], + TaggedTemplateExpression: ['tag', 'typeArguments', 'quasi'], + TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition, + TSAbstractKeyword: [], + TSAbstractMethodDefinition: ['key', 'value'], + TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition, + TSAnyKeyword: [], + TSArrayType: ['elementType'], + TSAsExpression: SharedVisitorKeys.AsExpression, + TSAsyncKeyword: [], + TSBigIntKeyword: [], + TSBooleanKeyword: [], + TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSClassImplements: ['expression', 'typeArguments'], + TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'], + TSConstructorType: SharedVisitorKeys.FunctionType, + TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSDeclareFunction: SharedVisitorKeys.Function, + TSDeclareKeyword: [], + TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType], + TSEnumBody: ['members'], + TSEnumDeclaration: ['id', 'body'], + TSEnumMember: ['id', 'initializer'], + TSExportAssignment: ['expression'], + TSExportKeyword: [], + TSExternalModuleReference: ['expression'], + TSFunctionType: SharedVisitorKeys.FunctionType, + TSImportEqualsDeclaration: ['id', 'moduleReference'], + TSImportType: ['argument', 'qualifier', 'typeArguments'], + TSIndexedAccessType: ['indexType', 'objectType'], + TSIndexSignature: ['parameters', 'typeAnnotation'], + TSInferType: ['typeParameter'], + TSInstantiationExpression: ['expression', 'typeArguments'], + TSInterfaceBody: ['body'], + TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'], + TSInterfaceHeritage: ['expression', 'typeArguments'], + TSIntersectionType: ['types'], + TSIntrinsicKeyword: [], + TSLiteralType: ['literal'], + TSMappedType: ['key', 'constraint', 'nameType', 'typeAnnotation'], + TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'], + TSModuleBlock: ['body'], + TSModuleDeclaration: ['id', 'body'], + TSNamedTupleMember: ['label', 'elementType'], + TSNamespaceExportDeclaration: ['id'], + TSNeverKeyword: [], + TSNonNullExpression: ['expression'], + TSNullKeyword: [], + TSNumberKeyword: [], + TSObjectKeyword: [], + TSOptionalType: ['typeAnnotation'], + TSParameterProperty: ['decorators', 'parameter'], + TSPrivateKeyword: [], + TSPropertySignature: ['typeAnnotation', 'key'], + TSProtectedKeyword: [], + TSPublicKeyword: [], + TSQualifiedName: ['left', 'right'], + TSReadonlyKeyword: [], + TSRestType: ['typeAnnotation'], + TSSatisfiesExpression: SharedVisitorKeys.AsExpression, + TSStaticKeyword: [], + TSStringKeyword: [], + TSSymbolKeyword: [], + TSTemplateLiteralType: ['quasis', 'types'], + TSThisType: [], + TSTupleType: ['elementTypes'], + TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'], + TSTypeAnnotation: ['typeAnnotation'], + TSTypeAssertion: ['typeAnnotation', 'expression'], + TSTypeLiteral: ['members'], + TSTypeOperator: ['typeAnnotation'], + TSTypeParameter: ['name', 'constraint', 'default'], + TSTypeParameterDeclaration: ['params'], + TSTypeParameterInstantiation: ['params'], + TSTypePredicate: ['typeAnnotation', 'parameterName'], + TSTypeQuery: ['exprName', 'typeArguments'], + TSTypeReference: ['typeName', 'typeArguments'], + TSUndefinedKeyword: [], + TSUnionType: ['types'], + TSUnknownKeyword: [], + TSVoidKeyword: [], +}; +const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys); +exports.visitorKeys = visitorKeys; +//# sourceMappingURL=visitor-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map new file mode 100644 index 00000000..cb3c0e3b --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAyD;AA4GzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;IACzE,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,EAAE,MAAM,CAAU,CAAC;IAC7D,MAAM,0BAA0B,GAAG;QACjC,YAAY;QACZ,KAAK;QACL,gBAAgB;KACR,CAAC;IAEX,OAAO;QACL,0BAA0B,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,gBAAgB,CAAC;QACnE,iBAAiB;QACjB,YAAY,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QAC9C,gBAAgB,EAAE;YAChB,YAAY;YACZ,IAAI;YACJ,gBAAgB;YAChB,YAAY;YACZ,oBAAoB;YACpB,YAAY;YACZ,MAAM;SACP;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC;QACtC,YAAY;QACZ,kBAAkB,EAAE,CAAC,GAAG,0BAA0B,EAAE,OAAO,CAAC;KACpD,CAAC;AACb,CAAC,CAAC,EAAE,CA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IACnB,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IAClC,iBAAiB,EAAE,EAAE;IACrB,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,qBAAqB,EAAE,iBAAiB,CAAC,YAAY;IACrD,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,qBAAqB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC1C,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,sBAAsB,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;IAClE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,eAAe,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACjD,aAAa,EAAE,CAAC,SAAS,CAAC;IAC1B,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC;IAClD,0BAA0B,EAAE,CAAC,QAAQ,CAAC;IACtC,4BAA4B,EAAE,CAAC,QAAQ,CAAC;IACxC,eAAe,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACpD,WAAW,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC1C,eAAe,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC9C,kBAAkB,EAAE,EAAE;IACtB,WAAW,EAAE,CAAC,OAAO,CAAC;IACtB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,WAAW,GAAgB,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAEpE,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/package.json new file mode 100644 index 00000000..df200c2e --- /dev/null +++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys/package.json @@ -0,0 +1,73 @@ +{ + "name": "@typescript-eslint/visitor-keys", + "version": "8.16.0", + "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/visitor-keys" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "eslint-visitor-keys": "^4.2.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/eslint-visitor-keys": "*", + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/LICENSE similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/LICENSE rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/LICENSE diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/README.md similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/README.md rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/README.md diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/index.d.ts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/index.d.ts rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/index.d.ts diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/lib/index.js similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/lib/index.js rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/lib/index.js diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/lib/visitor-keys.js similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/lib/visitor-keys.js rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/lib/visitor-keys.js diff --git a/node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/package.json similarity index 100% rename from node_modules/eslint-plugin-github/node_modules/eslint-visitor-keys/package.json rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys/package.json diff --git a/node_modules/@typescript-eslint/eslint-plugin/package.json b/node_modules/@typescript-eslint/eslint-plugin/package.json index a34e17e0..d3c6da75 100644 --- a/node_modules/@typescript-eslint/eslint-plugin/package.json +++ b/node_modules/@typescript-eslint/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "8.15.0", + "version": "8.16.0", "description": "TypeScript plugin for ESLint", "files": [ "dist", @@ -61,10 +61,10 @@ }, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.15.0", - "@typescript-eslint/type-utils": "8.15.0", - "@typescript-eslint/utils": "8.15.0", - "@typescript-eslint/visitor-keys": "8.15.0", + "@typescript-eslint/scope-manager": "8.16.0", + "@typescript-eslint/type-utils": "8.16.0", + "@typescript-eslint/utils": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -75,8 +75,8 @@ "@types/marked": "^5.0.2", "@types/mdast": "^4.0.3", "@types/natural-compare": "*", - "@typescript-eslint/rule-schema-to-typescript-types": "8.15.0", - "@typescript-eslint/rule-tester": "8.15.0", + "@typescript-eslint/rule-schema-to-typescript-types": "8.16.0", + "@typescript-eslint/rule-tester": "8.16.0", "ajv": "^6.12.6", "cross-env": "^7.0.3", "cross-fetch": "*", diff --git a/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map b/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map index fe9607ba..cae07584 100644 --- a/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +++ b/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAO,aAAa,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EACV,GAAG,EACH,cAAc,EAEf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAUtC,UAAU,aAAc,SAAQ,GAAG,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;IAClE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,QAAQ,CAAC,K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aAAa,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAkDD,iBAAS,KAAK,CACZ,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,KAAK,CAAC,CAE7B;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GACnC,oBAAoB,CA8FtB;AAED,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAEjC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/parser.js b/node_modules/@typescript-eslint/parser/dist/parser.js index 8b3466fc..cabd8168 100644 --- a/node_modules/@typescript-eslint/parser/dist/parser.js +++ b/node_modules/@typescript-eslint/parser/dist/parser.js @@ -45,6 +45,8 @@ function getLib(compilerOptions) { return ['es2022.full']; case typescript_1.ScriptTarget.ES2023: return ['es2023.full']; + case typescript_1.ScriptTarget.ES2024: + return ['es2024.full']; case typescript_1.ScriptTarget.ESNext: return ['esnext.full']; default: diff --git a/node_modules/@typescript-eslint/parser/dist/parser.js.map b/node_modules/@typescript-eslint/parser/dist/parser.js.map index 092cbf13..30a8052c 100644 --- a/node_modules/@typescript-eslint/parser/dist/parser.js.map +++ b/node_modules/@typescript-eslint/parser/dist/parser.js.map @@ -1 +1 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AA0LS,sBAAK;AAAE,wCAAc;AA7K9B,oEAA2D;AAC3D,4EAAgF;AAChF,kEAA8D;AAC9D,kDAA0B;AAC1B,2CAA0C;AAE1C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,iCAAiC,CAAC,CAAC;AAerD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,CAAC,sBAAsB;QAC7B,aAAa,CAAC,sBAAsB,KAAK,IAAI,CAAC;IAEhD,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAX,0BAAW,EAAE,CAAC;AACtD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/LICENSE b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/README.md b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/README.md new file mode 100644 index 00000000..b730e9d8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/scope-manager` + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) + +👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts new file mode 100644 index 00000000..679109f2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts @@ -0,0 +1,4 @@ +declare function createIdGenerator(): () => number; +declare function resetIds(): void; +export { createIdGenerator, resetIds }; +//# sourceMappingURL=ID.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map new file mode 100644 index 00000000..2c9c0fd0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js new file mode 100644 index 00000000..de2f32af --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIdGenerator = createIdGenerator; +exports.resetIds = resetIds; +const ID_CACHE = new Map(); +let NEXT_KEY = 0; +function createIdGenerator() { + const key = (NEXT_KEY += 1); + ID_CACHE.set(key, 0); + return () => { + const current = ID_CACHE.get(key) ?? 0; + const next = current + 1; + ID_CACHE.set(key, next); + return next; + }; +} +function resetIds() { + ID_CACHE.clear(); +} +//# sourceMappingURL=ID.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map new file mode 100644 index 00000000..e880ddeb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;AAmBS,8CAAiB;AAAE,4BAAQ;AAnBpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;QAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts new file mode 100644 index 00000000..f745bfb7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts @@ -0,0 +1,72 @@ +import type { SourceType, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from './scope'; +import type { Variable } from './variable'; +import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope'; +import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope'; +import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope'; +interface ScopeManagerOptions { + globalReturn?: boolean; + impliedStrict?: boolean; + sourceType?: SourceType; +} +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +declare class ScopeManager { + #private; + currentScope: Scope | null; + readonly declaredVariables: WeakMap; + /** + * The root scope + */ + globalScope: GlobalScope | null; + readonly nodeToScope: WeakMap; + /** + * All scopes + * @public + */ + readonly scopes: Scope[]; + constructor(options: ScopeManagerOptions); + isES6(): boolean; + isGlobalReturn(): boolean; + isImpliedStrict(): boolean; + isModule(): boolean; + isStrictModeSupported(): boolean; + get variables(): Variable[]; + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node: TSESTree.Node): Variable[]; + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node: TSESTree.Node, inner?: boolean): Scope | null; + nestBlockScope(node: BlockScope['block']): BlockScope; + nestCatchScope(node: CatchScope['block']): CatchScope; + nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope; + nestClassScope(node: ClassScope['block']): ClassScope; + nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope; + nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope; + nestForScope(node: ForScope['block']): ForScope; + nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope; + nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope; + nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope; + nestGlobalScope(node: GlobalScope['block']): GlobalScope; + nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope; + nestModuleScope(node: ModuleScope['block']): ModuleScope; + nestSwitchScope(node: SwitchScope['block']): SwitchScope; + nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope; + nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope; + nestTypeScope(node: TypeScope['block']): TypeScope; + nestWithScope(node: WithScope['block']): WithScope; + protected nestScope(scope: T): T; +} +export { ScopeManager }; +//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map new file mode 100644 index 00000000..a9493652 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,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CAAC,GAAG,WAAW;IAKxD,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa;IAK9D,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAKlD,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAOzD,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;CASlD;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js new file mode 100644 index 00000000..3cf4eab9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = void 0; +const assert_1 = require("./assert"); +const scope_1 = require("./scope"); +const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope"); +const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope"); +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +class ScopeManager { + #options; + currentScope; + declaredVariables; + /** + * The root scope + */ + globalScope; + nodeToScope; + /** + * All scopes + * @public + */ + scopes; + constructor(options) { + this.scopes = []; + this.globalScope = null; + this.nodeToScope = new WeakMap(); + this.currentScope = null; + this.#options = options; + this.declaredVariables = new WeakMap(); + } + isES6() { + return true; + } + isGlobalReturn() { + return this.#options.globalReturn === true; + } + isImpliedStrict() { + return this.#options.impliedStrict === true; + } + isModule() { + return this.#options.sourceType === 'module'; + } + isStrictModeSupported() { + return true; + } + get variables() { + const variables = new Set(); + function recurse(scope) { + scope.variables.forEach(v => variables.add(v)); + scope.childScopes.forEach(recurse); + } + this.scopes.forEach(recurse); + return [...variables].sort((a, b) => a.$id - b.$id); + } + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node) { + return this.declaredVariables.get(node) ?? []; + } + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node, inner = false) { + function predicate(testScope) { + if (testScope.type === scope_1.ScopeType.function && + testScope.functionExpressionScope) { + return false; + } + return true; + } + const scopes = this.nodeToScope.get(node); + if (!scopes || scopes.length === 0) { + return null; + } + // Heuristic selection from all scopes. + // If you would like to get all scopes, please use ScopeManager#acquireAll. + if (scopes.length === 1) { + return scopes[0]; + } + if (inner) { + for (let i = scopes.length - 1; i >= 0; --i) { + const scope = scopes[i]; + if (predicate(scope)) { + return scope; + } + } + return null; + } + return scopes.find(predicate) ?? null; + } + nestBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node)); + } + nestCatchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node)); + } + nestClassFieldInitializerScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node)); + } + nestClassScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node)); + } + nestClassStaticBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node)); + } + nestConditionalTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node)); + } + nestForScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ForScope(this, this.currentScope, node)); + } + nestFunctionExpressionNameScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node)); + } + nestFunctionScope(node, isMethodDefinition) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition)); + } + nestFunctionTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node)); + } + nestGlobalScope(node) { + return this.nestScope(new scope_1.GlobalScope(this, node)); + } + nestMappedTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node)); + } + nestModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node)); + } + nestSwitchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node)); + } + nestTSEnumScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node)); + } + nestTSModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node)); + } + nestTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node)); + } + nestWithScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.WithScope(this, this.currentScope, node)); + } + nestScope(scope) { + if (scope instanceof scope_1.GlobalScope) { + (0, assert_1.assert)(this.currentScope == null); + this.globalScope = scope; + } + this.currentScope = scope; + return scope; + } +} +exports.ScopeManager = ScopeManager; +//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map new file mode 100644 index 00000000..ab9bb2f9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":";;;AAKA,qCAAkC;AAClC,mCAkBiB;AACjB,mFAAgF;AAChF,yEAAsE;AAQtE;;GAEG;AACH,MAAM,YAAY;IACP,QAAQ,CAAsB;IAEhC,YAAY,CAAe;IAElB,iBAAiB,CAAqC;IAEtE;;OAEG;IACI,WAAW,CAAqB;IAEvB,WAAW,CAAkC;IAE7D;;;OAGG;IACa,MAAM,CAAU;IAEhC,YAAY,OAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;IACzC,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,cAAc;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,IAAI,CAAC;IAC7C,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,KAAK,IAAI,CAAC;IAC9C,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC;IAC/C,CAAC;IAEM,qBAAqB;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAW,SAAS;QAClB,MAAM,SAAS,GAAG,IAAI,GAAG,EAA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AAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,aAAa,CAAC,IAAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAKS,SAAS,CAAC,KAAY;QAC9B,IAAI,KAAK,YAAY,mBAAW,EAAE,CAAC;YACjC,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts new file mode 100644 index 00000000..3cbb7805 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts @@ -0,0 +1,55 @@ +import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types'; +import type { ReferencerOptions } from './referencer'; +import { ScopeManager } from './ScopeManager'; +interface AnalyzeOptions { + /** + * Known visitor keys. + */ + childVisitorKeys?: ReferencerOptions['childVisitorKeys']; + /** + * Whether the whole script is executed under node.js environment. + * When enabled, the scope manager adds a function scope immediately following the global scope. + * Defaults to `false`. + */ + globalReturn?: boolean; + /** + * Implied strict mode. + * Defaults to `false`. + */ + impliedStrict?: boolean; + /** + * The identifier that's used for JSX Element creation (after transpilation). + * This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement"). + * Defaults to `"React"`. + */ + jsxPragma?: string | null; + /** + * The identifier that's used for JSX fragment elements (after transpilation). + * If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment). + * This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment"). + * Defaults to `null`. + */ + jsxFragmentName?: string | null; + /** + * The lib used by the project. + * This automatically defines a type variable for any types provided by the configured TS libs. + * Defaults to ['esnext']. + * + * https://www.typescriptlang.org/tsconfig#lib + */ + lib?: Lib[]; + /** + * The source type of the script. + */ + sourceType?: SourceType; + /** + * @deprecated This option never did what it was intended for and will be removed in a future major release. + */ + emitDecoratorMetadata?: boolean; +} +/** + * Takes an AST and returns the analyzed scopes. + */ +declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager; +export { analyze, type AnalyzeOptions }; +//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map new file mode 100644 index 00000000..e4848bf5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA2Bd;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js new file mode 100644 index 00000000..c6edf6b8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.analyze = analyze; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +const referencer_1 = require("./referencer"); +const ScopeManager_1 = require("./ScopeManager"); +const DEFAULT_OPTIONS = { + childVisitorKeys: visitor_keys_1.visitorKeys, + emitDecoratorMetadata: false, + globalReturn: false, + impliedStrict: false, + jsxFragmentName: null, + jsxPragma: 'React', + lib: ['es2018'], + sourceType: 'script', +}; +/** + * Takes an AST and returns the analyzed scopes. + */ +function analyze(tree, providedOptions) { + const options = { + childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys, + emitDecoratorMetadata: false, + globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn, + impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict, + jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName, + jsxPragma: providedOptions?.jsxPragma === undefined + ? DEFAULT_OPTIONS.jsxPragma + : providedOptions.jsxPragma, + lib: providedOptions?.lib ?? ['esnext'], + sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType, + }; + // ensure the option is lower cased + options.lib = options.lib.map(l => l.toLowerCase()); + const scopeManager = new ScopeManager_1.ScopeManager(options); + const referencer = new referencer_1.Referencer(options, scopeManager); + referencer.visit(tree); + return scopeManager; +} +//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map new file mode 100644 index 00000000..c51a9df8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;AAkHS,0BAAO;AAhHhB,kEAA8D;AAI9D,6CAA0C;AAC1C,iDAA8C;AA6D9C,MAAM,eAAe,GAA6B;IAChD,gBAAgB,EAAE,0BAAW;IAC7B,qBAAqB,EAAE,KAAK;IAC5B,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,OAAO;IAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF;;GAEG;AACH,SAAS,OAAO,CACd,IAAmB,EACnB,eAAgC;IAEhC,MAAM,OAAO,GAA6B;QACxC,gBAAgB,EACd,eAAe,EAAE,gBAAgB,IAAI,eAAe,CAAC,gBAAgB;QACvE,qBAAqB,EAAE,KAAK;QAC5B,YAAY,EAAE,eAAe,EAAE,YAAY,IAAI,eAAe,CAAC,YAAY;QAC3E,aAAa,EACX,eAAe,EAAE,aAAa,IAAI,eAAe,CAAC,aAAa;QACjE,eAAe,EACb,eAAe,EAAE,eAAe,IAAI,eAAe,CAAC,eAAe;QACrE,SAAS,EACP,eAAe,EAAE,SAAS,KAAK,SAAS;YACtC,CAAC,CAAC,eAAe,CAAC,SAAS;YAC3B,CAAC,CAAC,eAAe,CAAC,SAAS;QAC/B,GAAG,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QACvC,UAAU,EAAE,eAAe,EAAE,UAAU,IAAI,eAAe,CAAC,UAAU;KACtE,CAAC;IAEF,mCAAmC;IACnC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAS,CAAC,CAAC;IAE3D,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEzD,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts new file mode 100644 index 00000000..bd40c9e2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts @@ -0,0 +1,3 @@ +declare function assert(value: unknown, message?: string): asserts value; +export { assert }; +//# sourceMappingURL=assert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map new file mode 100644 index 00000000..72f278dd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js new file mode 100644 index 00000000..a6dd9463 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.assert = assert; +// the base assert module doesn't use ts assertion syntax +function assert(value, message) { + if (value == null) { + throw new Error(message); + } +} +//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map new file mode 100644 index 00000000..6ea63863 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;AAOS,wBAAM;AAPf,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts new file mode 100644 index 00000000..7fde46bd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class CatchClauseDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']); +} +export { CatchClauseDefinition }; +//# sourceMappingURL=CatchClauseDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map new file mode 100644 index 00000000..41af006e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js new file mode 100644 index 00000000..f295da21 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchClauseDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.CatchClause, name, node, null); + } +} +exports.CatchClauseDefinition = CatchClauseDefinition; +//# sourceMappingURL=CatchClauseDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map new file mode 100644 index 00000000..e86f2712 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts new file mode 100644 index 00000000..507ba646 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ClassNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']); +} +export { ClassNameDefinition }; +//# sourceMappingURL=ClassNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map new file mode 100644 index 00000000..f90e30b4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;CAGzE;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js new file mode 100644 index 00000000..32e41b81 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ClassNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ClassName, name, node, null); + } +} +exports.ClassNameDefinition = ClassNameDefinition; +//# sourceMappingURL=ClassNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map new file mode 100644 index 00000000..75f3c2e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts new file mode 100644 index 00000000..41329f32 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts @@ -0,0 +1,14 @@ +import type { CatchClauseDefinition } from './CatchClauseDefinition'; +import type { ClassNameDefinition } from './ClassNameDefinition'; +import type { FunctionNameDefinition } from './FunctionNameDefinition'; +import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition'; +import type { ImportBindingDefinition } from './ImportBindingDefinition'; +import type { ParameterDefinition } from './ParameterDefinition'; +import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition'; +import type { TSEnumNameDefinition } from './TSEnumNameDefinition'; +import type { TSModuleNameDefinition } from './TSModuleNameDefinition'; +import type { TypeDefinition } from './TypeDefinition'; +import type { VariableDefinition } from './VariableDefinition'; +type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition; +export type { Definition }; +//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map new file mode 100644 index 00000000..98d0799a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js new file mode 100644 index 00000000..0d4aab95 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map new file mode 100644 index 00000000..be4a7fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts new file mode 100644 index 00000000..962ffed4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts @@ -0,0 +1,35 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { DefinitionType } from './DefinitionType'; +declare abstract class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + readonly type: Type; + /** + * The `Identifier` node of this definition + * @public + */ + readonly name: Name; + /** + * The enclosing node of the name. + * @public + */ + readonly node: Node; + /** + * the enclosing statement node of the identifier. + * @public + */ + readonly parent: Parent; + constructor(type: Type, name: Name, node: Node, parent: Parent); + /** + * `true` if the variable is valid in a type context, false otherwise + */ + abstract readonly isTypeDefinition: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + abstract readonly isVariableDefinition: boolean; +} +export { DefinitionBase }; +//# sourceMappingURL=DefinitionBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map new file mode 100644 index 00000000..ef27cc62 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,uBAAe,cAAc,CAC3B,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js new file mode 100644 index 00000000..41c74847 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + type; + /** + * The `Identifier` node of this definition + * @public + */ + name; + /** + * The enclosing node of the name. + * @public + */ + node; + /** + * the enclosing statement node of the identifier. + * @public + */ + parent; + constructor(type, name, node, parent) { + this.type = type; + this.name = name; + this.node = node; + this.parent = parent; + } +} +exports.DefinitionBase = DefinitionBase; +//# sourceMappingURL=DefinitionBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map new file mode 100644 index 00000000..9a620a89 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAIA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAM3B;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1B,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,MAAM,CAAS;IAE/B,YAAY,IAAU,EAAE,IAAU,EAAE,IAAU,EAAE,MAAc;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts new file mode 100644 index 00000000..d86220d8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts @@ -0,0 +1,15 @@ +declare enum DefinitionType { + CatchClause = "CatchClause", + ClassName = "ClassName", + FunctionName = "FunctionName", + ImplicitGlobalVariable = "ImplicitGlobalVariable", + ImportBinding = "ImportBinding", + Parameter = "Parameter", + TSEnumName = "TSEnumName", + TSEnumMember = "TSEnumMemberName", + TSModuleName = "TSModuleName", + Type = "Type", + Variable = "Variable" +} +export { DefinitionType }; +//# sourceMappingURL=DefinitionType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map new file mode 100644 index 00000000..c3614a6b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js new file mode 100644 index 00000000..07cc9afa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionType = void 0; +var DefinitionType; +(function (DefinitionType) { + DefinitionType["CatchClause"] = "CatchClause"; + DefinitionType["ClassName"] = "ClassName"; + DefinitionType["FunctionName"] = "FunctionName"; + DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable"; + DefinitionType["ImportBinding"] = "ImportBinding"; + DefinitionType["Parameter"] = "Parameter"; + DefinitionType["TSEnumName"] = "TSEnumName"; + DefinitionType["TSEnumMember"] = "TSEnumMemberName"; + DefinitionType["TSModuleName"] = "TSModuleName"; + DefinitionType["Type"] = "Type"; + DefinitionType["Variable"] = "Variable"; +})(DefinitionType || (exports.DefinitionType = DefinitionType = {})); +//# sourceMappingURL=DefinitionType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map new file mode 100644 index 00000000..042fd302 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts new file mode 100644 index 00000000..3561fb29 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class FunctionNameDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']); +} +export { FunctionNameDefinition }; +//# sourceMappingURL=FunctionNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map new file mode 100644 index 00000000..7a955a55 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js new file mode 100644 index 00000000..1e14b4cf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.FunctionName, name, node, null); + } +} +exports.FunctionNameDefinition = FunctionNameDefinition; +//# sourceMappingURL=FunctionNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map new file mode 100644 index 00000000..5a839e8f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts new file mode 100644 index 00000000..237f7727 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImplicitGlobalVariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']); +} +export { ImplicitGlobalVariableDefinition }; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map new file mode 100644 index 00000000..054541f7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAIjD;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js new file mode 100644 index 00000000..557074bc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitGlobalVariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null); + } +} +exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map new file mode 100644 index 00000000..17dd5256 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,4EAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts new file mode 100644 index 00000000..7a5c4563 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImportBindingDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration); + constructor(name: TSESTree.Identifier, node: Exclude, decl: TSESTree.ImportDeclaration); +} +export { ImportBindingDefinition }; +//# sourceMappingURL=ImportBindingDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map new file mode 100644 index 00000000..f53c0e3d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;CASnC;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js new file mode 100644 index 00000000..ca070594 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportBindingDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl); + } +} +exports.ImportBindingDefinition = ImportBindingDefinition; +//# sourceMappingURL=ImportBindingDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map new file mode 100644 index 00000000..c9c33078 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAe5C,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;CACF;AAEQ,0DAAuB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts new file mode 100644 index 00000000..2c9dea1c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ParameterDefinition extends DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + readonly rest: boolean; + constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean); +} +export { ParameterDefinition }; +//# sourceMappingURL=ParameterDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map new file mode 100644 index 00000000..01802e86 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;IAC5C,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAG5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;CAKhB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js new file mode 100644 index 00000000..f7bd0697 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParameterDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ParameterDefinition extends DefinitionBase_1.DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + isTypeDefinition = false; + isVariableDefinition = true; + rest; + constructor(name, node, rest) { + super(DefinitionType_1.DefinitionType.Parameter, name, node, null); + this.rest = rest; + } +} +exports.ParameterDefinition = ParameterDefinition; +//# sourceMappingURL=ParameterDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map new file mode 100644 index 00000000..1421a093 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.js","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAcjC;IACC;;OAEG;IACa,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAU;IAE9B,YACE,IAA0B,EAC1B,IAAiC,EACjC,IAAa;QAEb,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts new file mode 100644 index 00000000..da382ead --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumMemberDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']); +} +export { TSEnumMemberDefinition }; +//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map new file mode 100644 index 00000000..3ad9cf7b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAIvC;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js new file mode 100644 index 00000000..19ebd8db --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumMemberDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null); + } +} +exports.TSEnumMemberDefinition = TSEnumMemberDefinition; +//# sourceMappingURL=TSEnumMemberDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map new file mode 100644 index 00000000..5589e2a9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAkD,EAClD,IAAoC;QAEpC,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts new file mode 100644 index 00000000..499a8073 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']); +} +export { TSEnumNameDefinition }; +//# sourceMappingURL=TSEnumNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map new file mode 100644 index 00000000..1d43f9e0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,oBAAqB,SAAQ,cAAc,CAC/C,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;CAG1E;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js new file mode 100644 index 00000000..367ea231 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null); + } +} +exports.TSEnumNameDefinition = TSEnumNameDefinition; +//# sourceMappingURL=TSEnumNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map new file mode 100644 index 00000000..13089875 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,oBAAqB,SAAQ,+BAKlC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAkC;QACvE,KAAK,CAAC,+BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts new file mode 100644 index 00000000..5b52afa9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSModuleNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']); +} +export { TSModuleNameDefinition }; +//# sourceMappingURL=TSModuleNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map new file mode 100644 index 00000000..bd6d85ca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js new file mode 100644 index 00000000..fc3aca60 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null); + } +} +exports.TSModuleNameDefinition = TSModuleNameDefinition; +//# sourceMappingURL=TSModuleNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map new file mode 100644 index 00000000..c0e5e3f6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts new file mode 100644 index 00000000..91158b6e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TypeDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = false; + constructor(name: TSESTree.Identifier, node: TypeDefinition['node']); +} +export { TypeDefinition }; +//# sourceMappingURL=TypeDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map new file mode 100644 index 00000000..1c5f8173 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,cAAe,SAAQ,cAAc,CACzC,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;gBAEjC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;CAGpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js new file mode 100644 index 00000000..91f337cd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TypeDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = false; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.Type, name, node, null); + } +} +exports.TypeDefinition = TypeDefinition; +//# sourceMappingURL=TypeDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map new file mode 100644 index 00000000..7dc70ad7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.js","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,cAAe,SAAQ,+BAQ5B;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,KAAK,CAAC;IAE7C,YAAY,IAAyB,EAAE,IAA4B;QACjE,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts new file mode 100644 index 00000000..86260792 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class VariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration); +} +export { VariableDefinition }; +//# sourceMappingURL=VariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map new file mode 100644 index 00000000..dca94680 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,cAAc,CAC7C,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;CAIrC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js new file mode 100644 index 00000000..65dc6b45 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class VariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.Variable, name, node, decl); + } +} +exports.VariableDefinition = VariableDefinition; +//# sourceMappingURL=VariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map new file mode 100644 index 00000000..86801dcd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.js","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,kBAAmB,SAAQ,+BAKhC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAyB,EACzB,IAAgC,EAChC,IAAkC;QAElC,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts new file mode 100644 index 00000000..2be95a12 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts @@ -0,0 +1,14 @@ +export * from './CatchClauseDefinition'; +export * from './ClassNameDefinition'; +export * from './Definition'; +export * from './DefinitionType'; +export * from './FunctionNameDefinition'; +export * from './ImplicitGlobalVariableDefinition'; +export * from './ImportBindingDefinition'; +export * from './ParameterDefinition'; +export * from './TSEnumMemberDefinition'; +export * from './TSEnumNameDefinition'; +export * from './TSModuleNameDefinition'; +export * from './TypeDefinition'; +export * from './VariableDefinition'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map new file mode 100644 index 00000000..dfd43be8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js new file mode 100644 index 00000000..71d1559d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js @@ -0,0 +1,30 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./CatchClauseDefinition"), exports); +__exportStar(require("./ClassNameDefinition"), exports); +__exportStar(require("./Definition"), exports); +__exportStar(require("./DefinitionType"), exports); +__exportStar(require("./FunctionNameDefinition"), exports); +__exportStar(require("./ImplicitGlobalVariableDefinition"), exports); +__exportStar(require("./ImportBindingDefinition"), exports); +__exportStar(require("./ParameterDefinition"), exports); +__exportStar(require("./TSEnumMemberDefinition"), exports); +__exportStar(require("./TSEnumNameDefinition"), exports); +__exportStar(require("./TSModuleNameDefinition"), exports); +__exportStar(require("./TypeDefinition"), exports); +__exportStar(require("./VariableDefinition"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map new file mode 100644 index 00000000..136726cd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts new file mode 100644 index 00000000..435c05cc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts @@ -0,0 +1,9 @@ +export { analyze, type AnalyzeOptions } from './analyze'; +export * from './definition'; +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, } from './referencer/PatternVisitor'; +export { Reference } from './referencer/Reference'; +export { Visitor } from './referencer/Visitor'; +export * from './scope'; +export { ScopeManager } from './ScopeManager'; +export * from './variable'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map new file mode 100644 index 00000000..dd3d5544 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js new file mode 100644 index 00000000..28e0cb85 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = exports.Visitor = exports.Reference = exports.PatternVisitor = exports.analyze = void 0; +var analyze_1 = require("./analyze"); +Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } }); +__exportStar(require("./definition"), exports); +var PatternVisitor_1 = require("./referencer/PatternVisitor"); +Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } }); +var Reference_1 = require("./referencer/Reference"); +Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } }); +var Visitor_1 = require("./referencer/Visitor"); +Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } }); +__exportStar(require("./scope"), exports); +var ScopeManager_1 = require("./ScopeManager"); +Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } }); +__exportStar(require("./variable"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js.map new file mode 100644 index 00000000..ffff526a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAyD;AAAhD,kGAAA,OAAO,OAAA;AAChB,+CAA6B;AAC7B,8DAIqC;AAHnC,gHAAA,cAAc,OAAA;AAIhB,oDAAmD;AAA1C,sGAAA,SAAS,OAAA;AAClB,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,0CAAwB;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts new file mode 100644 index 00000000..6b2fddaa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts @@ -0,0 +1,16 @@ +export declare const TYPE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: false; +}>; +export declare const VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: false; + isValueVariable: true; +}>; +export declare const TYPE_VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: true; +}>; +//# sourceMappingURL=base-config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map new file mode 100644 index 00000000..632981a2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js new file mode 100644 index 00000000..e0526301 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0; +exports.TYPE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, +}); +exports.VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: false, + isValueVariable: true, +}); +exports.TYPE_VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, +}); +//# sourceMappingURL=base-config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map new file mode 100644 index 00000000..b99400cf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.js","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAEd,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;CACvB,CAAC,CAAC;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts new file mode 100644 index 00000000..288f0524 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators: Record; +//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map new file mode 100644 index 00000000..07113a33 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAalB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js new file mode 100644 index 00000000..b97c16ea --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators = void 0; +const base_config_1 = require("./base-config"); +exports.decorators = { + ClassAccessorDecoratorContext: base_config_1.TYPE, + ClassAccessorDecoratorResult: base_config_1.TYPE, + ClassAccessorDecoratorTarget: base_config_1.TYPE, + ClassDecoratorContext: base_config_1.TYPE, + ClassFieldDecoratorContext: base_config_1.TYPE, + ClassGetterDecoratorContext: base_config_1.TYPE, + ClassMemberDecoratorContext: base_config_1.TYPE, + ClassMethodDecoratorContext: base_config_1.TYPE, + ClassSetterDecoratorContext: base_config_1.TYPE, + DecoratorContext: base_config_1.TYPE, + DecoratorMetadata: base_config_1.TYPE, + DecoratorMetadataObject: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map new file mode 100644 index 00000000..3769ae2b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,UAAU,GAAG;IACxB,6BAA6B,EAAE,kBAAI;IACnC,4BAA4B,EAAE,kBAAI;IAClC,4BAA4B,EAAE,kBAAI;IAClC,qBAAqB,EAAE,kBAAI;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,iBAAiB,EAAE,kBAAI;IACvB,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts new file mode 100644 index 00000000..a7363bd8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators_legacy: Record; +//# sourceMappingURL=decorators.legacy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map new file mode 100644 index 00000000..f73fc491 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js new file mode 100644 index 00000000..d82d6096 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators_legacy = void 0; +const base_config_1 = require("./base-config"); +exports.decorators_legacy = { + ClassDecorator: base_config_1.TYPE, + MethodDecorator: base_config_1.TYPE, + ParameterDecorator: base_config_1.TYPE, + PropertyDecorator: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.legacy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map new file mode 100644 index 00000000..cd979547 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.js","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts new file mode 100644 index 00000000..cfd2ea00 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_asynciterable: Record; +//# sourceMappingURL=dom.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map new file mode 100644 index 00000000..2542309e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js new file mode 100644 index 00000000..564ce985 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map new file mode 100644 index 00000000..59078e84 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.js","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts new file mode 100644 index 00000000..f76da8eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom: Record; +//# sourceMappingURL=dom.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map new file mode 100644 index 00000000..ac1e8a55 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,GAAG,EA48CX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts new file mode 100644 index 00000000..94f9807e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_iterable: Record; +//# sourceMappingURL=dom.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map new file mode 100644 index 00000000..5ea51812 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EA0EpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js new file mode 100644 index 00000000..5a784df7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js @@ -0,0 +1,84 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_iterable = { + AbortSignal: base_config_1.TYPE, + AudioParam: base_config_1.TYPE, + AudioParamMap: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSKeyframesRule: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSRuleList: base_config_1.TYPE, + CSSStyleDeclaration: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE, + DataTransferItemList: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + DOMTokenList: base_config_1.TYPE, + EventCounts: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + Highlight: base_config_1.TYPE, + HighlightRegistry: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLFormElement: base_config_1.TYPE, + HTMLSelectElement: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE, + MediaKeyStatusMapIterator: base_config_1.TYPE, + MediaList: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE, + MIDIOutputMap: base_config_1.TYPE, + MimeTypeArray: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE, + Navigator: base_config_1.TYPE, + NodeList: base_config_1.TYPE, + NodeListOf: base_config_1.TYPE, + Plugin: base_config_1.TYPE, + PluginArray: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE, + SpeechRecognitionResult: base_config_1.TYPE, + SpeechRecognitionResultList: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + StyleSheetList: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + SVGLengthList: base_config_1.TYPE, + SVGNumberList: base_config_1.TYPE, + SVGPointList: base_config_1.TYPE, + SVGStringList: base_config_1.TYPE, + SVGTransformList: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE, + TouchList: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map new file mode 100644 index 00000000..e764338b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.js","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;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,EAAE,kBAAI;IACZ,WAAW,EAAE,kBAAI;IACjB,iBAAiB,EAAE,kBAAI;IACvB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,uBAAuB,EAAE,kBAAI;IAC7B,2BAA2B,EAAE,kBAAI;IACjC,wBAAwB,EAAE,kBAAI;IAC9B,gCAAgC,EAAE,kBAAI;IACtC,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,eAAe,EAAE,kBAAI;IACrB,uBAAuB,EAAE,kBAAI;IAC7B,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js new file mode 100644 index 00000000..62371bdc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js @@ -0,0 +1,1494 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom = void 0; +const base_config_1 = require("./base-config"); +exports.dom = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractRange: base_config_1.TYPE_VALUE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AddressErrors: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AlignSetting: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + AnalyserNode: base_config_1.TYPE_VALUE, + AnalyserOptions: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + Animatable: base_config_1.TYPE, + Animation: base_config_1.TYPE_VALUE, + AnimationEffect: base_config_1.TYPE_VALUE, + AnimationEvent: base_config_1.TYPE_VALUE, + AnimationEventInit: base_config_1.TYPE, + AnimationEventMap: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AnimationPlaybackEvent: base_config_1.TYPE_VALUE, + AnimationPlaybackEventInit: base_config_1.TYPE, + AnimationPlayState: base_config_1.TYPE, + AnimationReplaceState: base_config_1.TYPE, + AnimationTimeline: base_config_1.TYPE_VALUE, + AppendMode: base_config_1.TYPE, + ARIAMixin: base_config_1.TYPE, + AssignedNodesOptions: base_config_1.TYPE, + AttestationConveyancePreference: base_config_1.TYPE, + Attr: base_config_1.TYPE_VALUE, + AudioBuffer: base_config_1.TYPE_VALUE, + AudioBufferOptions: base_config_1.TYPE, + AudioBufferSourceNode: base_config_1.TYPE_VALUE, + AudioBufferSourceOptions: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioContext: base_config_1.TYPE_VALUE, + AudioContextLatencyCategory: base_config_1.TYPE, + AudioContextOptions: base_config_1.TYPE, + AudioContextState: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioDestinationNode: base_config_1.TYPE_VALUE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioListener: base_config_1.TYPE_VALUE, + AudioNode: base_config_1.TYPE_VALUE, + AudioNodeOptions: base_config_1.TYPE, + AudioParam: base_config_1.TYPE_VALUE, + AudioParamMap: base_config_1.TYPE_VALUE, + AudioProcessingEvent: base_config_1.TYPE_VALUE, + AudioProcessingEventInit: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AudioScheduledSourceNode: base_config_1.TYPE_VALUE, + AudioScheduledSourceNodeEventMap: base_config_1.TYPE, + AudioTimestamp: base_config_1.TYPE, + AudioWorklet: base_config_1.TYPE_VALUE, + AudioWorkletNode: base_config_1.TYPE_VALUE, + AudioWorkletNodeEventMap: base_config_1.TYPE, + AudioWorkletNodeOptions: base_config_1.TYPE, + AuthenticationExtensionsClientInputs: base_config_1.TYPE, + AuthenticationExtensionsClientInputsJSON: base_config_1.TYPE, + AuthenticationExtensionsClientOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFInputs: base_config_1.TYPE, + AuthenticationExtensionsPRFOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFValues: base_config_1.TYPE, + AuthenticatorAssertionResponse: base_config_1.TYPE_VALUE, + AuthenticatorAttachment: base_config_1.TYPE, + AuthenticatorAttestationResponse: base_config_1.TYPE_VALUE, + AuthenticatorResponse: base_config_1.TYPE_VALUE, + AuthenticatorSelectionCriteria: base_config_1.TYPE, + AuthenticatorTransport: base_config_1.TYPE, + AutoFill: base_config_1.TYPE, + AutoFillAddressKind: base_config_1.TYPE, + AutoFillBase: base_config_1.TYPE, + AutoFillContactField: base_config_1.TYPE, + AutoFillContactKind: base_config_1.TYPE, + AutoFillCredentialField: base_config_1.TYPE, + AutoFillField: base_config_1.TYPE, + AutoFillNormalField: base_config_1.TYPE, + AutoFillSection: base_config_1.TYPE, + AutoKeyword: base_config_1.TYPE, + AutomationRate: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BarProp: base_config_1.TYPE_VALUE, + Base64URLString: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE_VALUE, + BaseAudioContextEventMap: base_config_1.TYPE, + BeforeUnloadEvent: base_config_1.TYPE_VALUE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BiquadFilterNode: base_config_1.TYPE_VALUE, + BiquadFilterOptions: base_config_1.TYPE, + BiquadFilterType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobCallback: base_config_1.TYPE, + BlobEvent: base_config_1.TYPE_VALUE, + BlobEventInit: base_config_1.TYPE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanPlayTypeResult: base_config_1.TYPE, + CanvasCaptureMediaStreamTrack: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasRenderingContext2D: base_config_1.TYPE_VALUE, + CanvasRenderingContext2DSettings: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + CanvasUserInterface: base_config_1.TYPE, + CaretPosition: base_config_1.TYPE_VALUE, + CaretPositionFromPointOptions: base_config_1.TYPE, + CDATASection: base_config_1.TYPE_VALUE, + ChannelCountMode: base_config_1.TYPE, + ChannelInterpretation: base_config_1.TYPE, + ChannelMergerNode: base_config_1.TYPE_VALUE, + ChannelMergerOptions: base_config_1.TYPE, + ChannelSplitterNode: base_config_1.TYPE_VALUE, + ChannelSplitterOptions: base_config_1.TYPE, + CharacterData: base_config_1.TYPE_VALUE, + CheckVisibilityOptions: base_config_1.TYPE, + ChildNode: base_config_1.TYPE, + ClientQueryOptions: base_config_1.TYPE, + ClientRect: base_config_1.TYPE, + ClientTypes: base_config_1.TYPE, + Clipboard: base_config_1.TYPE_VALUE, + ClipboardEvent: base_config_1.TYPE_VALUE, + ClipboardEventInit: base_config_1.TYPE, + ClipboardItem: base_config_1.TYPE_VALUE, + ClipboardItemData: base_config_1.TYPE, + ClipboardItemOptions: base_config_1.TYPE, + ClipboardItems: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + Comment: base_config_1.TYPE_VALUE, + CompositeOperation: base_config_1.TYPE, + CompositeOperationOrAuto: base_config_1.TYPE, + CompositionEvent: base_config_1.TYPE_VALUE, + CompositionEventInit: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + ComputedEffectTiming: base_config_1.TYPE, + ComputedKeyframe: base_config_1.TYPE, + Console: base_config_1.TYPE, + ConstantSourceNode: base_config_1.TYPE_VALUE, + ConstantSourceOptions: base_config_1.TYPE, + ConstrainBoolean: base_config_1.TYPE, + ConstrainBooleanParameters: base_config_1.TYPE, + ConstrainDOMString: base_config_1.TYPE, + ConstrainDOMStringParameters: base_config_1.TYPE, + ConstrainDouble: base_config_1.TYPE, + ConstrainDoubleRange: base_config_1.TYPE, + ConstrainULong: base_config_1.TYPE, + ConstrainULongRange: base_config_1.TYPE, + ContentVisibilityAutoStateChangeEvent: base_config_1.TYPE_VALUE, + ContentVisibilityAutoStateChangeEventInit: base_config_1.TYPE, + ConvolverNode: base_config_1.TYPE_VALUE, + ConvolverOptions: base_config_1.TYPE, + COSEAlgorithmIdentifier: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Credential: base_config_1.TYPE_VALUE, + CredentialCreationOptions: base_config_1.TYPE, + CredentialMediationRequirement: base_config_1.TYPE, + CredentialPropertiesOutput: base_config_1.TYPE, + CredentialRequestOptions: base_config_1.TYPE, + CredentialsContainer: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSS: base_config_1.TYPE_VALUE, + CSSAnimation: base_config_1.TYPE_VALUE, + CSSConditionRule: base_config_1.TYPE_VALUE, + CSSContainerRule: base_config_1.TYPE_VALUE, + CSSCounterStyleRule: base_config_1.TYPE_VALUE, + CSSFontFaceRule: base_config_1.TYPE_VALUE, + CSSFontFeatureValuesRule: base_config_1.TYPE_VALUE, + CSSFontPaletteValuesRule: base_config_1.TYPE_VALUE, + CSSGroupingRule: base_config_1.TYPE_VALUE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSImportRule: base_config_1.TYPE_VALUE, + CSSKeyframeRule: base_config_1.TYPE_VALUE, + CSSKeyframesRule: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSLayerBlockRule: base_config_1.TYPE_VALUE, + CSSLayerStatementRule: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSMediaRule: base_config_1.TYPE_VALUE, + CSSNamespaceRule: base_config_1.TYPE_VALUE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPageRule: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSPropertyRule: base_config_1.TYPE_VALUE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSRule: base_config_1.TYPE_VALUE, + CSSRuleList: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSScopeRule: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStartingStyleRule: base_config_1.TYPE_VALUE, + CSSStyleDeclaration: base_config_1.TYPE_VALUE, + CSSStyleRule: base_config_1.TYPE_VALUE, + CSSStyleSheet: base_config_1.TYPE_VALUE, + CSSStyleSheetInit: base_config_1.TYPE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSSupportsRule: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTransition: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomElementConstructor: base_config_1.TYPE, + CustomElementRegistry: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE_VALUE, + DataTransfer: base_config_1.TYPE_VALUE, + DataTransferItem: base_config_1.TYPE_VALUE, + DataTransferItemList: base_config_1.TYPE_VALUE, + DecodeErrorCallback: base_config_1.TYPE, + DecodeSuccessCallback: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DelayNode: base_config_1.TYPE_VALUE, + DelayOptions: base_config_1.TYPE, + DeviceMotionEvent: base_config_1.TYPE_VALUE, + DeviceMotionEventAcceleration: base_config_1.TYPE, + DeviceMotionEventAccelerationInit: base_config_1.TYPE, + DeviceMotionEventInit: base_config_1.TYPE, + DeviceMotionEventRotationRate: base_config_1.TYPE, + DeviceMotionEventRotationRateInit: base_config_1.TYPE, + DeviceOrientationEvent: base_config_1.TYPE_VALUE, + DeviceOrientationEventInit: base_config_1.TYPE, + DirectionSetting: base_config_1.TYPE, + DisplayCaptureSurfaceType: base_config_1.TYPE, + DisplayMediaStreamOptions: base_config_1.TYPE, + DistanceModelType: base_config_1.TYPE, + Document: base_config_1.TYPE_VALUE, + DocumentEventMap: base_config_1.TYPE, + DocumentFragment: base_config_1.TYPE_VALUE, + DocumentOrShadowRoot: base_config_1.TYPE, + DocumentReadyState: base_config_1.TYPE, + DocumentTimeline: base_config_1.TYPE_VALUE, + DocumentTimelineOptions: base_config_1.TYPE, + DocumentType: base_config_1.TYPE_VALUE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMImplementation: base_config_1.TYPE_VALUE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMParser: base_config_1.TYPE_VALUE, + DOMParserSupportedType: base_config_1.TYPE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE_VALUE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + DOMStringMap: base_config_1.TYPE_VALUE, + DOMTokenList: base_config_1.TYPE_VALUE, + DoubleRange: base_config_1.TYPE, + DragEvent: base_config_1.TYPE_VALUE, + DragEventInit: base_config_1.TYPE, + DynamicsCompressorNode: base_config_1.TYPE_VALUE, + DynamicsCompressorOptions: base_config_1.TYPE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyAlgorithm: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EffectTiming: base_config_1.TYPE, + Element: base_config_1.TYPE_VALUE, + ElementContentEditable: base_config_1.TYPE, + ElementCreationOptions: base_config_1.TYPE, + ElementCSSInlineStyle: base_config_1.TYPE, + ElementDefinitionOptions: base_config_1.TYPE, + ElementEventMap: base_config_1.TYPE, + ElementInternals: base_config_1.TYPE_VALUE, + ElementTagNameMap: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EndOfStreamError: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorCallback: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventCounts: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventModifierInit: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + External: base_config_1.TYPE_VALUE, + File: base_config_1.TYPE_VALUE, + FileCallback: base_config_1.TYPE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileSystem: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryEntry: base_config_1.TYPE_VALUE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemDirectoryReader: base_config_1.TYPE_VALUE, + FileSystemEntriesCallback: base_config_1.TYPE, + FileSystemEntry: base_config_1.TYPE_VALUE, + FileSystemEntryCallback: base_config_1.TYPE, + FileSystemFileEntry: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemFlags: base_config_1.TYPE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + FillMode: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FocusEvent: base_config_1.TYPE_VALUE, + FocusEventInit: base_config_1.TYPE, + FocusOptions: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FormDataEvent: base_config_1.TYPE_VALUE, + FormDataEventInit: base_config_1.TYPE, + FragmentDirective: base_config_1.TYPE_VALUE, + FrameRequestCallback: base_config_1.TYPE, + FullscreenNavigationUI: base_config_1.TYPE, + FullscreenOptions: base_config_1.TYPE, + FunctionStringCallback: base_config_1.TYPE, + GainNode: base_config_1.TYPE_VALUE, + GainOptions: base_config_1.TYPE, + Gamepad: base_config_1.TYPE_VALUE, + GamepadButton: base_config_1.TYPE_VALUE, + GamepadEffectParameters: base_config_1.TYPE, + GamepadEvent: base_config_1.TYPE_VALUE, + GamepadEventInit: base_config_1.TYPE, + GamepadHapticActuator: base_config_1.TYPE_VALUE, + GamepadHapticEffectType: base_config_1.TYPE, + GamepadHapticsResult: base_config_1.TYPE, + GamepadMappingType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + Geolocation: base_config_1.TYPE_VALUE, + GeolocationCoordinates: base_config_1.TYPE_VALUE, + GeolocationPosition: base_config_1.TYPE_VALUE, + GeolocationPositionError: base_config_1.TYPE_VALUE, + GetAnimationsOptions: base_config_1.TYPE, + GetHTMLOptions: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GetRootNodeOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GlobalEventHandlers: base_config_1.TYPE, + GlobalEventHandlersEventMap: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HashChangeEvent: base_config_1.TYPE_VALUE, + HashChangeEventInit: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + Highlight: base_config_1.TYPE_VALUE, + HighlightRegistry: base_config_1.TYPE_VALUE, + HighlightType: base_config_1.TYPE, + History: base_config_1.TYPE_VALUE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyAlgorithm: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE_VALUE, + HTMLAnchorElement: base_config_1.TYPE_VALUE, + HTMLAreaElement: base_config_1.TYPE_VALUE, + HTMLAudioElement: base_config_1.TYPE_VALUE, + HTMLBaseElement: base_config_1.TYPE_VALUE, + HTMLBodyElement: base_config_1.TYPE_VALUE, + HTMLBodyElementEventMap: base_config_1.TYPE, + HTMLBRElement: base_config_1.TYPE_VALUE, + HTMLButtonElement: base_config_1.TYPE_VALUE, + HTMLCanvasElement: base_config_1.TYPE_VALUE, + HTMLCollection: base_config_1.TYPE_VALUE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLDataElement: base_config_1.TYPE_VALUE, + HTMLDataListElement: base_config_1.TYPE_VALUE, + HTMLDetailsElement: base_config_1.TYPE_VALUE, + HTMLDialogElement: base_config_1.TYPE_VALUE, + HTMLDirectoryElement: base_config_1.TYPE_VALUE, + HTMLDivElement: base_config_1.TYPE_VALUE, + HTMLDListElement: base_config_1.TYPE_VALUE, + HTMLDocument: base_config_1.TYPE_VALUE, + HTMLElement: base_config_1.TYPE_VALUE, + HTMLElementDeprecatedTagNameMap: base_config_1.TYPE, + HTMLElementEventMap: base_config_1.TYPE, + HTMLElementTagNameMap: base_config_1.TYPE, + HTMLEmbedElement: base_config_1.TYPE_VALUE, + HTMLFieldSetElement: base_config_1.TYPE_VALUE, + HTMLFontElement: base_config_1.TYPE_VALUE, + HTMLFormControlsCollection: base_config_1.TYPE_VALUE, + HTMLFormElement: base_config_1.TYPE_VALUE, + HTMLFrameElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElementEventMap: base_config_1.TYPE, + HTMLHeadElement: base_config_1.TYPE_VALUE, + HTMLHeadingElement: base_config_1.TYPE_VALUE, + HTMLHRElement: base_config_1.TYPE_VALUE, + HTMLHtmlElement: base_config_1.TYPE_VALUE, + HTMLHyperlinkElementUtils: base_config_1.TYPE, + HTMLIFrameElement: base_config_1.TYPE_VALUE, + HTMLImageElement: base_config_1.TYPE_VALUE, + HTMLInputElement: base_config_1.TYPE_VALUE, + HTMLLabelElement: base_config_1.TYPE_VALUE, + HTMLLegendElement: base_config_1.TYPE_VALUE, + HTMLLIElement: base_config_1.TYPE_VALUE, + HTMLLinkElement: base_config_1.TYPE_VALUE, + HTMLMapElement: base_config_1.TYPE_VALUE, + HTMLMarqueeElement: base_config_1.TYPE_VALUE, + HTMLMediaElement: base_config_1.TYPE_VALUE, + HTMLMediaElementEventMap: base_config_1.TYPE, + HTMLMenuElement: base_config_1.TYPE_VALUE, + HTMLMetaElement: base_config_1.TYPE_VALUE, + HTMLMeterElement: base_config_1.TYPE_VALUE, + HTMLModElement: base_config_1.TYPE_VALUE, + HTMLObjectElement: base_config_1.TYPE_VALUE, + HTMLOListElement: base_config_1.TYPE_VALUE, + HTMLOptGroupElement: base_config_1.TYPE_VALUE, + HTMLOptionElement: base_config_1.TYPE_VALUE, + HTMLOptionsCollection: base_config_1.TYPE_VALUE, + HTMLOrSVGElement: base_config_1.TYPE, + HTMLOrSVGImageElement: base_config_1.TYPE, + HTMLOrSVGScriptElement: base_config_1.TYPE, + HTMLOutputElement: base_config_1.TYPE_VALUE, + HTMLParagraphElement: base_config_1.TYPE_VALUE, + HTMLParamElement: base_config_1.TYPE_VALUE, + HTMLPictureElement: base_config_1.TYPE_VALUE, + HTMLPreElement: base_config_1.TYPE_VALUE, + HTMLProgressElement: base_config_1.TYPE_VALUE, + HTMLQuoteElement: base_config_1.TYPE_VALUE, + HTMLScriptElement: base_config_1.TYPE_VALUE, + HTMLSelectElement: base_config_1.TYPE_VALUE, + HTMLSlotElement: base_config_1.TYPE_VALUE, + HTMLSourceElement: base_config_1.TYPE_VALUE, + HTMLSpanElement: base_config_1.TYPE_VALUE, + HTMLStyleElement: base_config_1.TYPE_VALUE, + HTMLTableCaptionElement: base_config_1.TYPE_VALUE, + HTMLTableCellElement: base_config_1.TYPE_VALUE, + HTMLTableColElement: base_config_1.TYPE_VALUE, + HTMLTableDataCellElement: base_config_1.TYPE, + HTMLTableElement: base_config_1.TYPE_VALUE, + HTMLTableHeaderCellElement: base_config_1.TYPE, + HTMLTableRowElement: base_config_1.TYPE_VALUE, + HTMLTableSectionElement: base_config_1.TYPE_VALUE, + HTMLTemplateElement: base_config_1.TYPE_VALUE, + HTMLTextAreaElement: base_config_1.TYPE_VALUE, + HTMLTimeElement: base_config_1.TYPE_VALUE, + HTMLTitleElement: base_config_1.TYPE_VALUE, + HTMLTrackElement: base_config_1.TYPE_VALUE, + HTMLUListElement: base_config_1.TYPE_VALUE, + HTMLUnknownElement: base_config_1.TYPE_VALUE, + HTMLVideoElement: base_config_1.TYPE_VALUE, + HTMLVideoElementEventMap: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + IdleDeadline: base_config_1.TYPE_VALUE, + IdleRequestCallback: base_config_1.TYPE, + IdleRequestOptions: base_config_1.TYPE, + IIRFilterNode: base_config_1.TYPE_VALUE, + IIRFilterOptions: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InputDeviceInfo: base_config_1.TYPE_VALUE, + InputEvent: base_config_1.TYPE_VALUE, + InputEventInit: base_config_1.TYPE, + InsertPosition: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + IntersectionObserver: base_config_1.TYPE_VALUE, + IntersectionObserverCallback: base_config_1.TYPE, + IntersectionObserverEntry: base_config_1.TYPE_VALUE, + IntersectionObserverInit: base_config_1.TYPE, + IterationCompositeOperation: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyboardEvent: base_config_1.TYPE_VALUE, + KeyboardEventInit: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + Keyframe: base_config_1.TYPE, + KeyframeAnimationOptions: base_config_1.TYPE, + KeyframeEffect: base_config_1.TYPE_VALUE, + KeyframeEffectOptions: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LargestContentfulPaint: base_config_1.TYPE_VALUE, + LatencyMode: base_config_1.TYPE, + LineAlignSetting: base_config_1.TYPE, + LineAndPositionSetting: base_config_1.TYPE, + LinkStyle: base_config_1.TYPE, + Location: base_config_1.TYPE_VALUE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MathMLElement: base_config_1.TYPE_VALUE, + MathMLElementEventMap: base_config_1.TYPE, + MathMLElementTagNameMap: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaDeviceInfo: base_config_1.TYPE_VALUE, + MediaDeviceKind: base_config_1.TYPE, + MediaDevices: base_config_1.TYPE_VALUE, + MediaDevicesEventMap: base_config_1.TYPE, + MediaElementAudioSourceNode: base_config_1.TYPE_VALUE, + MediaElementAudioSourceOptions: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaEncryptedEvent: base_config_1.TYPE_VALUE, + MediaEncryptedEventInit: base_config_1.TYPE, + MediaError: base_config_1.TYPE_VALUE, + MediaImage: base_config_1.TYPE, + MediaKeyMessageEvent: base_config_1.TYPE_VALUE, + MediaKeyMessageEventInit: base_config_1.TYPE, + MediaKeyMessageType: base_config_1.TYPE, + MediaKeys: base_config_1.TYPE_VALUE, + MediaKeySession: base_config_1.TYPE_VALUE, + MediaKeySessionClosedReason: base_config_1.TYPE, + MediaKeySessionEventMap: base_config_1.TYPE, + MediaKeySessionType: base_config_1.TYPE, + MediaKeysPolicy: base_config_1.TYPE, + MediaKeysRequirement: base_config_1.TYPE, + MediaKeyStatus: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE_VALUE, + MediaKeySystemAccess: base_config_1.TYPE_VALUE, + MediaKeySystemConfiguration: base_config_1.TYPE, + MediaKeySystemMediaCapability: base_config_1.TYPE, + MediaList: base_config_1.TYPE_VALUE, + MediaMetadata: base_config_1.TYPE_VALUE, + MediaMetadataInit: base_config_1.TYPE, + MediaPositionState: base_config_1.TYPE, + MediaProvider: base_config_1.TYPE, + MediaQueryList: base_config_1.TYPE_VALUE, + MediaQueryListEvent: base_config_1.TYPE_VALUE, + MediaQueryListEventInit: base_config_1.TYPE, + MediaQueryListEventMap: base_config_1.TYPE, + MediaRecorder: base_config_1.TYPE_VALUE, + MediaRecorderEventMap: base_config_1.TYPE, + MediaRecorderOptions: base_config_1.TYPE, + MediaSession: base_config_1.TYPE_VALUE, + MediaSessionAction: base_config_1.TYPE, + MediaSessionActionDetails: base_config_1.TYPE, + MediaSessionActionHandler: base_config_1.TYPE, + MediaSessionPlaybackState: base_config_1.TYPE, + MediaSource: base_config_1.TYPE_VALUE, + MediaSourceEventMap: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStream: base_config_1.TYPE_VALUE, + MediaStreamAudioDestinationNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceOptions: base_config_1.TYPE, + MediaStreamConstraints: base_config_1.TYPE, + MediaStreamEventMap: base_config_1.TYPE, + MediaStreamTrack: base_config_1.TYPE_VALUE, + MediaStreamTrackEvent: base_config_1.TYPE_VALUE, + MediaStreamTrackEventInit: base_config_1.TYPE, + MediaStreamTrackEventMap: base_config_1.TYPE, + MediaStreamTrackState: base_config_1.TYPE, + MediaTrackCapabilities: base_config_1.TYPE, + MediaTrackConstraints: base_config_1.TYPE, + MediaTrackConstraintSet: base_config_1.TYPE, + MediaTrackSettings: base_config_1.TYPE, + MediaTrackSupportedConstraints: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MIDIAccess: base_config_1.TYPE_VALUE, + MIDIAccessEventMap: base_config_1.TYPE, + MIDIConnectionEvent: base_config_1.TYPE_VALUE, + MIDIConnectionEventInit: base_config_1.TYPE, + MIDIInput: base_config_1.TYPE_VALUE, + MIDIInputEventMap: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE_VALUE, + MIDIMessageEvent: base_config_1.TYPE_VALUE, + MIDIMessageEventInit: base_config_1.TYPE, + MIDIOptions: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE_VALUE, + MIDIOutputMap: base_config_1.TYPE_VALUE, + MIDIPort: base_config_1.TYPE_VALUE, + MIDIPortConnectionState: base_config_1.TYPE, + MIDIPortDeviceState: base_config_1.TYPE, + MIDIPortEventMap: base_config_1.TYPE, + MIDIPortType: base_config_1.TYPE, + MimeType: base_config_1.TYPE_VALUE, + MimeTypeArray: base_config_1.TYPE_VALUE, + MouseEvent: base_config_1.TYPE_VALUE, + MouseEventInit: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + MutationCallback: base_config_1.TYPE, + MutationObserver: base_config_1.TYPE_VALUE, + MutationObserverInit: base_config_1.TYPE, + MutationRecord: base_config_1.TYPE_VALUE, + MutationRecordType: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE_VALUE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigationTimingType: base_config_1.TYPE, + Navigator: base_config_1.TYPE_VALUE, + NavigatorAutomationInformation: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorContentUtils: base_config_1.TYPE, + NavigatorCookies: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorPlugins: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Node: base_config_1.TYPE_VALUE, + NodeFilter: base_config_1.TYPE_VALUE, + NodeIterator: base_config_1.TYPE_VALUE, + NodeList: base_config_1.TYPE_VALUE, + NodeListOf: base_config_1.TYPE, + NonDocumentTypeChildNode: base_config_1.TYPE, + NonElementParentNode: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + NotificationPermissionCallback: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OfflineAudioCompletionEvent: base_config_1.TYPE_VALUE, + OfflineAudioCompletionEventInit: base_config_1.TYPE, + OfflineAudioContext: base_config_1.TYPE_VALUE, + OfflineAudioContextEventMap: base_config_1.TYPE, + OfflineAudioContextOptions: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnBeforeUnloadEventHandler: base_config_1.TYPE, + OnBeforeUnloadEventHandlerNonNull: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OptionalEffectTiming: base_config_1.TYPE, + OptionalPostfixToken: base_config_1.TYPE, + OptionalPrefixToken: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OrientationType: base_config_1.TYPE, + OscillatorNode: base_config_1.TYPE_VALUE, + OscillatorOptions: base_config_1.TYPE, + OscillatorType: base_config_1.TYPE, + OverconstrainedError: base_config_1.TYPE_VALUE, + OverSampleType: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + PageTransitionEvent: base_config_1.TYPE_VALUE, + PageTransitionEventInit: base_config_1.TYPE, + PannerNode: base_config_1.TYPE_VALUE, + PannerOptions: base_config_1.TYPE, + PanningModelType: base_config_1.TYPE, + ParentNode: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + PayerErrors: base_config_1.TYPE, + PaymentAddress: base_config_1.TYPE_VALUE, + PaymentComplete: base_config_1.TYPE, + PaymentCurrencyAmount: base_config_1.TYPE, + PaymentDetailsBase: base_config_1.TYPE, + PaymentDetailsInit: base_config_1.TYPE, + PaymentDetailsModifier: base_config_1.TYPE, + PaymentDetailsUpdate: base_config_1.TYPE, + PaymentItem: base_config_1.TYPE, + PaymentMethodChangeEvent: base_config_1.TYPE_VALUE, + PaymentMethodChangeEventInit: base_config_1.TYPE, + PaymentMethodData: base_config_1.TYPE, + PaymentOptions: base_config_1.TYPE, + PaymentRequest: base_config_1.TYPE_VALUE, + PaymentRequestEventMap: base_config_1.TYPE, + PaymentRequestUpdateEvent: base_config_1.TYPE_VALUE, + PaymentRequestUpdateEventInit: base_config_1.TYPE, + PaymentResponse: base_config_1.TYPE_VALUE, + PaymentResponseEventMap: base_config_1.TYPE, + PaymentShippingOption: base_config_1.TYPE, + PaymentShippingType: base_config_1.TYPE, + PaymentValidationErrors: base_config_1.TYPE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceEventTiming: base_config_1.TYPE_VALUE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceNavigation: base_config_1.TYPE_VALUE, + PerformanceNavigationTiming: base_config_1.TYPE_VALUE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformancePaintTiming: base_config_1.TYPE_VALUE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PerformanceTiming: base_config_1.TYPE_VALUE, + PeriodicWave: base_config_1.TYPE_VALUE, + PeriodicWaveConstraints: base_config_1.TYPE, + PeriodicWaveOptions: base_config_1.TYPE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PictureInPictureEvent: base_config_1.TYPE_VALUE, + PictureInPictureEventInit: base_config_1.TYPE, + PictureInPictureWindow: base_config_1.TYPE_VALUE, + PictureInPictureWindowEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PlaybackDirection: base_config_1.TYPE, + Plugin: base_config_1.TYPE_VALUE, + PluginArray: base_config_1.TYPE_VALUE, + PointerEvent: base_config_1.TYPE_VALUE, + PointerEventInit: base_config_1.TYPE, + PointerLockOptions: base_config_1.TYPE, + PopoverInvokerElement: base_config_1.TYPE, + PopStateEvent: base_config_1.TYPE_VALUE, + PopStateEventInit: base_config_1.TYPE, + PositionAlignSetting: base_config_1.TYPE, + PositionCallback: base_config_1.TYPE, + PositionErrorCallback: base_config_1.TYPE, + PositionOptions: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + PresentationStyle: base_config_1.TYPE, + ProcessingInstruction: base_config_1.TYPE_VALUE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PropertyDefinition: base_config_1.TYPE, + PropertyIndexedKeyframes: base_config_1.TYPE, + PublicKeyCredential: base_config_1.TYPE_VALUE, + PublicKeyCredentialCreationOptions: base_config_1.TYPE, + PublicKeyCredentialCreationOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialDescriptor: base_config_1.TYPE, + PublicKeyCredentialDescriptorJSON: base_config_1.TYPE, + PublicKeyCredentialEntity: base_config_1.TYPE, + PublicKeyCredentialJSON: base_config_1.TYPE, + PublicKeyCredentialParameters: base_config_1.TYPE, + PublicKeyCredentialRequestOptions: base_config_1.TYPE, + PublicKeyCredentialRequestOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialRpEntity: base_config_1.TYPE, + PublicKeyCredentialType: base_config_1.TYPE, + PublicKeyCredentialUserEntity: base_config_1.TYPE, + PublicKeyCredentialUserEntityJSON: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + RadioNodeList: base_config_1.TYPE_VALUE, + Range: base_config_1.TYPE_VALUE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReadyState: base_config_1.TYPE, + RecordingState: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + RemotePlayback: base_config_1.TYPE_VALUE, + RemotePlaybackAvailabilityCallback: base_config_1.TYPE, + RemotePlaybackEventMap: base_config_1.TYPE, + RemotePlaybackState: base_config_1.TYPE, + RenderingContext: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResidentKeyRequirement: base_config_1.TYPE, + ResizeObserver: base_config_1.TYPE_VALUE, + ResizeObserverBoxOptions: base_config_1.TYPE, + ResizeObserverCallback: base_config_1.TYPE, + ResizeObserverEntry: base_config_1.TYPE_VALUE, + ResizeObserverOptions: base_config_1.TYPE, + ResizeObserverSize: base_config_1.TYPE_VALUE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyAlgorithm: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyAlgorithm: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCAnswerOptions: base_config_1.TYPE, + RTCBundlePolicy: base_config_1.TYPE, + RTCCertificate: base_config_1.TYPE_VALUE, + RTCCertificateExpiration: base_config_1.TYPE, + RTCConfiguration: base_config_1.TYPE, + RTCDataChannel: base_config_1.TYPE_VALUE, + RTCDataChannelEvent: base_config_1.TYPE_VALUE, + RTCDataChannelEventInit: base_config_1.TYPE, + RTCDataChannelEventMap: base_config_1.TYPE, + RTCDataChannelInit: base_config_1.TYPE, + RTCDataChannelState: base_config_1.TYPE, + RTCDegradationPreference: base_config_1.TYPE, + RTCDtlsFingerprint: base_config_1.TYPE, + RTCDtlsTransport: base_config_1.TYPE_VALUE, + RTCDtlsTransportEventMap: base_config_1.TYPE, + RTCDtlsTransportState: base_config_1.TYPE, + RTCDTMFSender: base_config_1.TYPE_VALUE, + RTCDTMFSenderEventMap: base_config_1.TYPE, + RTCDTMFToneChangeEvent: base_config_1.TYPE_VALUE, + RTCDTMFToneChangeEventInit: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCError: base_config_1.TYPE_VALUE, + RTCErrorDetailType: base_config_1.TYPE, + RTCErrorEvent: base_config_1.TYPE_VALUE, + RTCErrorEventInit: base_config_1.TYPE, + RTCErrorInit: base_config_1.TYPE, + RTCIceCandidate: base_config_1.TYPE_VALUE, + RTCIceCandidateInit: base_config_1.TYPE, + RTCIceCandidatePair: base_config_1.TYPE, + RTCIceCandidatePairStats: base_config_1.TYPE, + RTCIceCandidateType: base_config_1.TYPE, + RTCIceComponent: base_config_1.TYPE, + RTCIceConnectionState: base_config_1.TYPE, + RTCIceGathererState: base_config_1.TYPE, + RTCIceGatheringState: base_config_1.TYPE, + RTCIceProtocol: base_config_1.TYPE, + RTCIceServer: base_config_1.TYPE, + RTCIceTcpCandidateType: base_config_1.TYPE, + RTCIceTransport: base_config_1.TYPE_VALUE, + RTCIceTransportEventMap: base_config_1.TYPE, + RTCIceTransportPolicy: base_config_1.TYPE, + RTCIceTransportState: base_config_1.TYPE, + RTCInboundRtpStreamStats: base_config_1.TYPE, + RTCLocalSessionDescriptionInit: base_config_1.TYPE, + RTCOfferAnswerOptions: base_config_1.TYPE, + RTCOfferOptions: base_config_1.TYPE, + RTCOutboundRtpStreamStats: base_config_1.TYPE, + RTCPeerConnection: base_config_1.TYPE_VALUE, + RTCPeerConnectionErrorCallback: base_config_1.TYPE, + RTCPeerConnectionEventMap: base_config_1.TYPE, + RTCPeerConnectionIceErrorEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceErrorEventInit: base_config_1.TYPE, + RTCPeerConnectionIceEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceEventInit: base_config_1.TYPE, + RTCPeerConnectionState: base_config_1.TYPE, + RTCPriorityType: base_config_1.TYPE, + RTCReceivedRtpStreamStats: base_config_1.TYPE, + RTCRtcpMuxPolicy: base_config_1.TYPE, + RTCRtcpParameters: base_config_1.TYPE, + RTCRtpCapabilities: base_config_1.TYPE, + RTCRtpCodec: base_config_1.TYPE, + RTCRtpCodecParameters: base_config_1.TYPE, + RTCRtpCodingParameters: base_config_1.TYPE, + RTCRtpContributingSource: base_config_1.TYPE, + RTCRtpEncodingParameters: base_config_1.TYPE, + RTCRtpHeaderExtensionCapability: base_config_1.TYPE, + RTCRtpHeaderExtensionParameters: base_config_1.TYPE, + RTCRtpParameters: base_config_1.TYPE, + RTCRtpReceiveParameters: base_config_1.TYPE, + RTCRtpReceiver: base_config_1.TYPE_VALUE, + RTCRtpScriptTransform: base_config_1.TYPE_VALUE, + RTCRtpSender: base_config_1.TYPE_VALUE, + RTCRtpSendParameters: base_config_1.TYPE, + RTCRtpStreamStats: base_config_1.TYPE, + RTCRtpSynchronizationSource: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE_VALUE, + RTCRtpTransceiverDirection: base_config_1.TYPE, + RTCRtpTransceiverInit: base_config_1.TYPE, + RTCRtpTransform: base_config_1.TYPE, + RTCSctpTransport: base_config_1.TYPE_VALUE, + RTCSctpTransportEventMap: base_config_1.TYPE, + RTCSctpTransportState: base_config_1.TYPE, + RTCSdpType: base_config_1.TYPE, + RTCSentRtpStreamStats: base_config_1.TYPE, + RTCSessionDescription: base_config_1.TYPE_VALUE, + RTCSessionDescriptionCallback: base_config_1.TYPE, + RTCSessionDescriptionInit: base_config_1.TYPE, + RTCSetParameterOptions: base_config_1.TYPE, + RTCSignalingState: base_config_1.TYPE, + RTCStats: base_config_1.TYPE, + RTCStatsIceCandidatePairState: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE_VALUE, + RTCStatsType: base_config_1.TYPE, + RTCTrackEvent: base_config_1.TYPE_VALUE, + RTCTrackEventInit: base_config_1.TYPE, + RTCTransportStats: base_config_1.TYPE, + Screen: base_config_1.TYPE_VALUE, + ScreenOrientation: base_config_1.TYPE_VALUE, + ScreenOrientationEventMap: base_config_1.TYPE, + ScriptProcessorNode: base_config_1.TYPE_VALUE, + ScriptProcessorNodeEventMap: base_config_1.TYPE, + ScrollBehavior: base_config_1.TYPE, + ScrollIntoViewOptions: base_config_1.TYPE, + ScrollLogicalPosition: base_config_1.TYPE, + ScrollOptions: base_config_1.TYPE, + ScrollRestoration: base_config_1.TYPE, + ScrollSetting: base_config_1.TYPE, + ScrollToOptions: base_config_1.TYPE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + Selection: base_config_1.TYPE_VALUE, + SelectionMode: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + ShadowRoot: base_config_1.TYPE_VALUE, + ShadowRootEventMap: base_config_1.TYPE, + ShadowRootInit: base_config_1.TYPE, + ShadowRootMode: base_config_1.TYPE, + ShareData: base_config_1.TYPE, + SharedWorker: base_config_1.TYPE_VALUE, + SlotAssignmentMode: base_config_1.TYPE, + Slottable: base_config_1.TYPE, + SourceBuffer: base_config_1.TYPE_VALUE, + SourceBufferEventMap: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE_VALUE, + SourceBufferListEventMap: base_config_1.TYPE, + SpeechRecognitionAlternative: base_config_1.TYPE_VALUE, + SpeechRecognitionResult: base_config_1.TYPE_VALUE, + SpeechRecognitionResultList: base_config_1.TYPE_VALUE, + SpeechSynthesis: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorCode: base_config_1.TYPE, + SpeechSynthesisErrorEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorEventInit: base_config_1.TYPE, + SpeechSynthesisEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisEventInit: base_config_1.TYPE, + SpeechSynthesisEventMap: base_config_1.TYPE, + SpeechSynthesisUtterance: base_config_1.TYPE_VALUE, + SpeechSynthesisUtteranceEventMap: base_config_1.TYPE, + SpeechSynthesisVoice: base_config_1.TYPE_VALUE, + StaticRange: base_config_1.TYPE_VALUE, + StaticRangeInit: base_config_1.TYPE, + StereoPannerNode: base_config_1.TYPE_VALUE, + StereoPannerOptions: base_config_1.TYPE, + Storage: base_config_1.TYPE_VALUE, + StorageEstimate: base_config_1.TYPE, + StorageEvent: base_config_1.TYPE_VALUE, + StorageEventInit: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StyleMedia: base_config_1.TYPE, + StylePropertyMap: base_config_1.TYPE_VALUE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + StyleSheet: base_config_1.TYPE_VALUE, + StyleSheetList: base_config_1.TYPE_VALUE, + SubmitEvent: base_config_1.TYPE_VALUE, + SubmitEventInit: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE_VALUE, + SVGAElement: base_config_1.TYPE_VALUE, + SVGAngle: base_config_1.TYPE_VALUE, + SVGAnimatedAngle: base_config_1.TYPE_VALUE, + SVGAnimatedBoolean: base_config_1.TYPE_VALUE, + SVGAnimatedEnumeration: base_config_1.TYPE_VALUE, + SVGAnimatedInteger: base_config_1.TYPE_VALUE, + SVGAnimatedLength: base_config_1.TYPE_VALUE, + SVGAnimatedLengthList: base_config_1.TYPE_VALUE, + SVGAnimatedNumber: base_config_1.TYPE_VALUE, + SVGAnimatedNumberList: base_config_1.TYPE_VALUE, + SVGAnimatedPoints: base_config_1.TYPE, + SVGAnimatedPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGAnimatedRect: base_config_1.TYPE_VALUE, + SVGAnimatedString: base_config_1.TYPE_VALUE, + SVGAnimatedTransformList: base_config_1.TYPE_VALUE, + SVGAnimateElement: base_config_1.TYPE_VALUE, + SVGAnimateMotionElement: base_config_1.TYPE_VALUE, + SVGAnimateTransformElement: base_config_1.TYPE_VALUE, + SVGAnimationElement: base_config_1.TYPE_VALUE, + SVGBoundingBoxOptions: base_config_1.TYPE, + SVGCircleElement: base_config_1.TYPE_VALUE, + SVGClipPathElement: base_config_1.TYPE_VALUE, + SVGComponentTransferFunctionElement: base_config_1.TYPE_VALUE, + SVGDefsElement: base_config_1.TYPE_VALUE, + SVGDescElement: base_config_1.TYPE_VALUE, + SVGElement: base_config_1.TYPE_VALUE, + SVGElementEventMap: base_config_1.TYPE, + SVGElementTagNameMap: base_config_1.TYPE, + SVGEllipseElement: base_config_1.TYPE_VALUE, + SVGFEBlendElement: base_config_1.TYPE_VALUE, + SVGFEColorMatrixElement: base_config_1.TYPE_VALUE, + SVGFEComponentTransferElement: base_config_1.TYPE_VALUE, + SVGFECompositeElement: base_config_1.TYPE_VALUE, + SVGFEConvolveMatrixElement: base_config_1.TYPE_VALUE, + SVGFEDiffuseLightingElement: base_config_1.TYPE_VALUE, + SVGFEDisplacementMapElement: base_config_1.TYPE_VALUE, + SVGFEDistantLightElement: base_config_1.TYPE_VALUE, + SVGFEDropShadowElement: base_config_1.TYPE_VALUE, + SVGFEFloodElement: base_config_1.TYPE_VALUE, + SVGFEFuncAElement: base_config_1.TYPE_VALUE, + SVGFEFuncBElement: base_config_1.TYPE_VALUE, + SVGFEFuncGElement: base_config_1.TYPE_VALUE, + SVGFEFuncRElement: base_config_1.TYPE_VALUE, + SVGFEGaussianBlurElement: base_config_1.TYPE_VALUE, + SVGFEImageElement: base_config_1.TYPE_VALUE, + SVGFEMergeElement: base_config_1.TYPE_VALUE, + SVGFEMergeNodeElement: base_config_1.TYPE_VALUE, + SVGFEMorphologyElement: base_config_1.TYPE_VALUE, + SVGFEOffsetElement: base_config_1.TYPE_VALUE, + SVGFEPointLightElement: base_config_1.TYPE_VALUE, + SVGFESpecularLightingElement: base_config_1.TYPE_VALUE, + SVGFESpotLightElement: base_config_1.TYPE_VALUE, + SVGFETileElement: base_config_1.TYPE_VALUE, + SVGFETurbulenceElement: base_config_1.TYPE_VALUE, + SVGFilterElement: base_config_1.TYPE_VALUE, + SVGFilterPrimitiveStandardAttributes: base_config_1.TYPE, + SVGFitToViewBox: base_config_1.TYPE, + SVGForeignObjectElement: base_config_1.TYPE_VALUE, + SVGGElement: base_config_1.TYPE_VALUE, + SVGGeometryElement: base_config_1.TYPE_VALUE, + SVGGradientElement: base_config_1.TYPE_VALUE, + SVGGraphicsElement: base_config_1.TYPE_VALUE, + SVGImageElement: base_config_1.TYPE_VALUE, + SVGLength: base_config_1.TYPE_VALUE, + SVGLengthList: base_config_1.TYPE_VALUE, + SVGLinearGradientElement: base_config_1.TYPE_VALUE, + SVGLineElement: base_config_1.TYPE_VALUE, + SVGMarkerElement: base_config_1.TYPE_VALUE, + SVGMaskElement: base_config_1.TYPE_VALUE, + SVGMatrix: base_config_1.TYPE_VALUE, + SVGMetadataElement: base_config_1.TYPE_VALUE, + SVGMPathElement: base_config_1.TYPE_VALUE, + SVGNumber: base_config_1.TYPE_VALUE, + SVGNumberList: base_config_1.TYPE_VALUE, + SVGPathElement: base_config_1.TYPE_VALUE, + SVGPatternElement: base_config_1.TYPE_VALUE, + SVGPoint: base_config_1.TYPE_VALUE, + SVGPointList: base_config_1.TYPE_VALUE, + SVGPolygonElement: base_config_1.TYPE_VALUE, + SVGPolylineElement: base_config_1.TYPE_VALUE, + SVGPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGRadialGradientElement: base_config_1.TYPE_VALUE, + SVGRect: base_config_1.TYPE_VALUE, + SVGRectElement: base_config_1.TYPE_VALUE, + SVGScriptElement: base_config_1.TYPE_VALUE, + SVGSetElement: base_config_1.TYPE_VALUE, + SVGStopElement: base_config_1.TYPE_VALUE, + SVGStringList: base_config_1.TYPE_VALUE, + SVGStyleElement: base_config_1.TYPE_VALUE, + SVGSVGElement: base_config_1.TYPE_VALUE, + SVGSVGElementEventMap: base_config_1.TYPE, + SVGSwitchElement: base_config_1.TYPE_VALUE, + SVGSymbolElement: base_config_1.TYPE_VALUE, + SVGTests: base_config_1.TYPE, + SVGTextContentElement: base_config_1.TYPE_VALUE, + SVGTextElement: base_config_1.TYPE_VALUE, + SVGTextPathElement: base_config_1.TYPE_VALUE, + SVGTextPositioningElement: base_config_1.TYPE_VALUE, + SVGTitleElement: base_config_1.TYPE_VALUE, + SVGTransform: base_config_1.TYPE_VALUE, + SVGTransformList: base_config_1.TYPE_VALUE, + SVGTSpanElement: base_config_1.TYPE_VALUE, + SVGUnitTypes: base_config_1.TYPE_VALUE, + SVGURIReference: base_config_1.TYPE, + SVGUseElement: base_config_1.TYPE_VALUE, + SVGViewElement: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + Text: base_config_1.TYPE_VALUE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextEvent: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TextTrack: base_config_1.TYPE_VALUE, + TextTrackCue: base_config_1.TYPE_VALUE, + TextTrackCueEventMap: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE_VALUE, + TextTrackEventMap: base_config_1.TYPE, + TextTrackKind: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE_VALUE, + TextTrackListEventMap: base_config_1.TYPE, + TextTrackMode: base_config_1.TYPE, + TimeRanges: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + ToggleEvent: base_config_1.TYPE_VALUE, + ToggleEventInit: base_config_1.TYPE, + Touch: base_config_1.TYPE_VALUE, + TouchEvent: base_config_1.TYPE_VALUE, + TouchEventInit: base_config_1.TYPE, + TouchInit: base_config_1.TYPE, + TouchList: base_config_1.TYPE_VALUE, + TouchType: base_config_1.TYPE, + TrackEvent: base_config_1.TYPE_VALUE, + TrackEventInit: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + TransitionEvent: base_config_1.TYPE_VALUE, + TransitionEventInit: base_config_1.TYPE, + TreeWalker: base_config_1.TYPE_VALUE, + UIEvent: base_config_1.TYPE_VALUE, + UIEventInit: base_config_1.TYPE, + Uint32List: base_config_1.TYPE, + ULongRange: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + UserActivation: base_config_1.TYPE_VALUE, + UserVerificationRequirement: base_config_1.TYPE, + ValidityState: base_config_1.TYPE_VALUE, + ValidityStateFlags: base_config_1.TYPE, + VibratePattern: base_config_1.TYPE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFacingModeEnum: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCallbackMetadata: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoFrameRequestCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoPlaybackQuality: base_config_1.TYPE_VALUE, + VideoTransferCharacteristics: base_config_1.TYPE, + ViewTransition: base_config_1.TYPE_VALUE, + ViewTransitionUpdateCallback: base_config_1.TYPE, + VisualViewport: base_config_1.TYPE_VALUE, + VisualViewportEventMap: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + VTTCue: base_config_1.TYPE_VALUE, + VTTRegion: base_config_1.TYPE_VALUE, + WakeLock: base_config_1.TYPE_VALUE, + WakeLockSentinel: base_config_1.TYPE_VALUE, + WakeLockSentinelEventMap: base_config_1.TYPE, + WakeLockType: base_config_1.TYPE, + WaveShaperNode: base_config_1.TYPE_VALUE, + WaveShaperOptions: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebKitCSSMatrix: base_config_1.TYPE_VALUE, + webkitURL: base_config_1.TYPE_VALUE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WheelEvent: base_config_1.TYPE_VALUE, + WheelEventInit: base_config_1.TYPE, + Window: base_config_1.TYPE_VALUE, + WindowEventHandlers: base_config_1.TYPE, + WindowEventHandlersEventMap: base_config_1.TYPE, + WindowEventMap: base_config_1.TYPE, + WindowLocalStorage: base_config_1.TYPE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + WindowPostMessageOptions: base_config_1.TYPE, + WindowProxy: base_config_1.TYPE, + WindowSessionStorage: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + Worklet: base_config_1.TYPE_VALUE, + WorkletOptions: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLDocument: base_config_1.TYPE_VALUE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, + XMLSerializer: base_config_1.TYPE_VALUE, + XPathEvaluator: base_config_1.TYPE_VALUE, + XPathEvaluatorBase: base_config_1.TYPE, + XPathExpression: base_config_1.TYPE_VALUE, + XPathNSResolver: base_config_1.TYPE, + XPathResult: base_config_1.TYPE_VALUE, + XSLTProcessor: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=dom.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map new file mode 100644 index 00000000..d1387ff2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,GAAG,GAAG;IACjB,eAAe,EAAE,wBAAU;IAC3B,WAAW,EAAE,wBAAU;IACvB,mBAAmB,EAAE,kBAAI;IACzB,aAAa,EAAE,wBAAU;IACzB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,SAAS,EAAE,kBAAI;IACf,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,WAAW,EAAE,kBAAI;IACj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AW,EAAE,wBAAU;IACvB,cAAc,EAAE,wBAAU;IAC1B,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;IAChC,aAAa,EAAE,wBAAU;IACzB,cAAc,EAAE,wBAAU;IAC1B,kBAAkB,EAAE,kBAAI;IACxB,eAAe,EAAE,wBAAU;IAC3B,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,wBAAU;IACvB,aAAa,EAAE,wBAAU;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts new file mode 100644 index 00000000..8bc3c49f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_collection: Record; +//# sourceMappingURL=es2015.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map new file mode 100644 index 00000000..a703b5c9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAWzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js new file mode 100644 index 00000000..0ebec850 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js @@ -0,0 +1,21 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_collection = { + Map: base_config_1.TYPE_VALUE, + MapConstructor: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE_VALUE, + SetConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE_VALUE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE_VALUE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map new file mode 100644 index 00000000..91c43d4b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.js","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts new file mode 100644 index 00000000..c309d52d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_core: Record; +//# sourceMappingURL=es2015.core.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map new file mode 100644 index 00000000..2433e218 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAsBnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js new file mode 100644 index 00000000..e65b6e6f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js @@ -0,0 +1,32 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_core = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_core = { + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Math: base_config_1.TYPE, + NumberConstructor: base_config_1.TYPE, + ObjectConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + StringConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.core.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map new file mode 100644 index 00000000..cc66bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.js","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts new file mode 100644 index 00000000..7f7de237 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015: Record; +//# sourceMappingURL=es2015.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map new file mode 100644 index 00000000..114858ec --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,MAAM,EAWd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts new file mode 100644 index 00000000..cb5ce5da --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_generator: Record; +//# sourceMappingURL=es2015.generator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map new file mode 100644 index 00000000..6fff309a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,gBAAgB,EAKxB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js new file mode 100644 index 00000000..1449b264 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_generator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2015_generator = { + ...es2015_iterable_1.es2015_iterable, + Generator: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + GeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.generator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map new file mode 100644 index 00000000..6895ef3e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.js","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,SAAS,EAAE,kBAAI;IACf,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts new file mode 100644 index 00000000..9daa14ef --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_iterable: Record; +//# sourceMappingURL=es2015.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map new file mode 100644 index 00000000..924c3ca4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAkDvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js new file mode 100644 index 00000000..2e9bbc4a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js @@ -0,0 +1,61 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_iterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_iterable = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayIterator: base_config_1.TYPE, + BuiltinIteratorReturn: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Iterable: base_config_1.TYPE, + IterableIterator: base_config_1.TYPE, + Iterator: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + IteratorResult: base_config_1.TYPE, + IteratorReturnResult: base_config_1.TYPE, + IteratorYieldResult: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + MapIterator: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + SetIterator: base_config_1.TYPE, + String: base_config_1.TYPE, + StringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map new file mode 100644 index 00000000..4a6651bc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.js","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,eAAe,GAAG;IAC7B,GAAG,6BAAa;IAChB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,UAAU,EAAE,kBAAI;IAChB,SAAS,EAAE,kBAAI;IACf,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,kBAAI;IACpB,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;IACzB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,aAAa,EAAE,kBAAI;IACnB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,MAAM,EAAE,kBAAI;IACZ,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;IAClC,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js new file mode 100644 index 00000000..6144de8d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2015 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es2015.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map new file mode 100644 index 00000000..2cb76d40 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.js","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts new file mode 100644 index 00000000..4b0b7d19 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_promise: Record; +//# sourceMappingURL=es2015.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map new file mode 100644 index 00000000..00e9596c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js new file mode 100644 index 00000000..93baf9f0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_promise = { + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map new file mode 100644 index 00000000..cbab7fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.js","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts new file mode 100644 index 00000000..a2a87c0f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_proxy: Record; +//# sourceMappingURL=es2015.proxy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map new file mode 100644 index 00000000..07cafbda --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAGpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js new file mode 100644 index 00000000..24876c6f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_proxy = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_proxy = { + ProxyConstructor: base_config_1.TYPE, + ProxyHandler: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.proxy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map new file mode 100644 index 00000000..17ef6bc9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.js","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts new file mode 100644 index 00000000..7e94f32c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_reflect: Record; +//# sourceMappingURL=es2015.reflect.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map new file mode 100644 index 00000000..c9708893 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js new file mode 100644 index 00000000..c8d8b044 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_reflect = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_reflect = { + Reflect: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2015.reflect.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map new file mode 100644 index 00000000..b7bbca9f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.js","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts new file mode 100644 index 00000000..e78a6670 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol: Record; +//# sourceMappingURL=es2015.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map new file mode 100644 index 00000000..3741cc8a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js new file mode 100644 index 00000000..62876aa5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_symbol = { + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map new file mode 100644 index 00000000..9bdff523 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts new file mode 100644 index 00000000..7b18f41c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol_wellknown: Record; +//# sourceMappingURL=es2015.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..7781adbf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,uBAAuB,EAmC/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js new file mode 100644 index 00000000..39404d66 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js @@ -0,0 +1,46 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_symbol_wellknown = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Date: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + JSON: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + Math: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map new file mode 100644 index 00000000..590f3d62 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,6BAAa;IAChB,KAAK,EAAE,kBAAI;IACX,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,kBAAI;IACV,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;IACvB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,IAAI,EAAE,kBAAI;IACV,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,MAAM,EAAE,kBAAI;IACZ,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts new file mode 100644 index 00000000..7e6c8903 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_array_include: Record; +//# sourceMappingURL=es2016.array.include.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map new file mode 100644 index 00000000..05a090d4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAY5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js new file mode 100644 index 00000000..59a860df --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_array_include = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_array_include = { + Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2016.array.include.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map new file mode 100644 index 00000000..9b9cbf76 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.js","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAI;IACX,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts new file mode 100644 index 00000000..2049c83e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016: Record; +//# sourceMappingURL=es2016.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map new file mode 100644 index 00000000..69328de8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,MAAM,EAId,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts new file mode 100644 index 00000000..f940014b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_full: Record; +//# sourceMappingURL=es2016.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map new file mode 100644 index 00000000..b4acbeca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js new file mode 100644 index 00000000..75156509 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2016_1 = require("./es2016"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2016_full = { + ...es2016_1.es2016, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2016.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map new file mode 100644 index 00000000..7e363a78 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.js","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts new file mode 100644 index 00000000..c5567ffb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_intl: Record; +//# sourceMappingURL=es2016.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map new file mode 100644 index 00000000..a53c670d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js new file mode 100644 index 00000000..c63368d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2016.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map new file mode 100644 index 00000000..4ff4dc3d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.js","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js new file mode 100644 index 00000000..65d6ace4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es2016 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es2016.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map new file mode 100644 index 00000000..1bbe7d0b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.js","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts new file mode 100644 index 00000000..5c91e313 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_arraybuffer: Record; +//# sourceMappingURL=es2017.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map new file mode 100644 index 00000000..dc2e35e6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAE1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js new file mode 100644 index 00000000..f6cd2009 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_arraybuffer = { + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map new file mode 100644 index 00000000..ce09c918 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts new file mode 100644 index 00000000..7c40c712 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017: Record; +//# sourceMappingURL=es2017.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map new file mode 100644 index 00000000..9b8e303c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts new file mode 100644 index 00000000..68d2c05e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_date: Record; +//# sourceMappingURL=es2017.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map new file mode 100644 index 00000000..01887fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js new file mode 100644 index 00000000..6184d2a4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_date = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_date = { + DateConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map new file mode 100644 index 00000000..cb5ec85a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.js","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,eAAe,EAAE,kBAAI;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts new file mode 100644 index 00000000..385bd1c3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_full: Record; +//# sourceMappingURL=es2017.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map new file mode 100644 index 00000000..daf9b22e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js new file mode 100644 index 00000000..5d478b96 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2017_1 = require("./es2017"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2017_full = { + ...es2017_1.es2017, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2017.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map new file mode 100644 index 00000000..14812363 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.js","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts new file mode 100644 index 00000000..4db70db8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_intl: Record; +//# sourceMappingURL=es2017.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map new file mode 100644 index 00000000..095c5df2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js new file mode 100644 index 00000000..2115eda7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2017.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map new file mode 100644 index 00000000..2143dc6a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.js","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js new file mode 100644 index 00000000..c4fecc34 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017 = void 0; +const es2016_1 = require("./es2016"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +exports.es2017 = { + ...es2016_1.es2016, + ...es2017_arraybuffer_1.es2017_arraybuffer, + ...es2017_date_1.es2017_date, + ...es2017_intl_1.es2017_intl, + ...es2017_object_1.es2017_object, + ...es2017_sharedmemory_1.es2017_sharedmemory, + ...es2017_string_1.es2017_string, + ...es2017_typedarrays_1.es2017_typedarrays, +}; +//# sourceMappingURL=es2017.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map new file mode 100644 index 00000000..514e6dca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.js","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAE7C,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,yBAAW;IACd,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,uCAAkB;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts new file mode 100644 index 00000000..268df74f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_object: Record; +//# sourceMappingURL=es2017.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map new file mode 100644 index 00000000..95c3f65a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js new file mode 100644 index 00000000..1aa0ee7b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map new file mode 100644 index 00000000..3e9b2e20 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.js","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts new file mode 100644 index 00000000..e647026b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_sharedmemory: Record; +//# sourceMappingURL=es2017.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map new file mode 100644 index 00000000..f5cc83f4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,mBAAmB,EAO3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js new file mode 100644 index 00000000..f0d77cc4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js @@ -0,0 +1,19 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2017_sharedmemory = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + ArrayBufferTypes: base_config_1.TYPE, + Atomics: base_config_1.TYPE_VALUE, + SharedArrayBuffer: base_config_1.TYPE_VALUE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map new file mode 100644 index 00000000..571f04f8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts new file mode 100644 index 00000000..effb6ad8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_string: Record; +//# sourceMappingURL=es2017.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map new file mode 100644 index 00000000..81f180e5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js new file mode 100644 index 00000000..9ab29367 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map new file mode 100644 index 00000000..48600fb2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.js","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts new file mode 100644 index 00000000..97b9cce1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_typedarrays: Record; +//# sourceMappingURL=es2017.typedarrays.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map new file mode 100644 index 00000000..7b000cac --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAU1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js new file mode 100644 index 00000000..750a787b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_typedarrays = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_typedarrays = { + Float32ArrayConstructor: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.typedarrays.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map new file mode 100644 index 00000000..cd63f8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.js","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;IAC7B,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,4BAA4B,EAAE,kBAAI;IAClC,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts new file mode 100644 index 00000000..1c0ad385 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asyncgenerator: Record; +//# sourceMappingURL=es2018.asyncgenerator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map new file mode 100644 index 00000000..b3488fdb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,qBAAqB,EAK7B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js new file mode 100644 index 00000000..9e7f03f2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asyncgenerator = void 0; +const base_config_1 = require("./base-config"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.es2018_asyncgenerator = { + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncGenerator: base_config_1.TYPE, + AsyncGeneratorFunction: base_config_1.TYPE, + AsyncGeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asyncgenerator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map new file mode 100644 index 00000000..82c23fb4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.js","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,iEAA8D;AAEjD,QAAA,qBAAqB,GAAG;IACnC,GAAG,2CAAoB;IACvB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,iCAAiC,EAAE,kBAAI;CACM,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts new file mode 100644 index 00000000..441e1b4a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asynciterable: Record; +//# sourceMappingURL=es2018.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map new file mode 100644 index 00000000..26194f5b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js new file mode 100644 index 00000000..57dbcbc1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2018_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map new file mode 100644 index 00000000..27ec60cf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.js","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts new file mode 100644 index 00000000..d6a57e0b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018: Record; +//# sourceMappingURL=es2018.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map new file mode 100644 index 00000000..e0c93481 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts new file mode 100644 index 00000000..def2b62d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_full: Record; +//# sourceMappingURL=es2018.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map new file mode 100644 index 00000000..73ff781d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js new file mode 100644 index 00000000..65c7681b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2018_1 = require("./es2018"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2018_full = { + ...es2018_1.es2018, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2018.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map new file mode 100644 index 00000000..94599c84 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.js","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts new file mode 100644 index 00000000..e80a6793 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_intl: Record; +//# sourceMappingURL=es2018.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map new file mode 100644 index 00000000..1e7036c0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js new file mode 100644 index 00000000..d3553a73 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2018.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map new file mode 100644 index 00000000..69869715 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.js","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js new file mode 100644 index 00000000..307a6d47 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018 = void 0; +const es2017_1 = require("./es2017"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +exports.es2018 = { + ...es2017_1.es2017, + ...es2018_asynciterable_1.es2018_asynciterable, + ...es2018_asyncgenerator_1.es2018_asyncgenerator, + ...es2018_promise_1.es2018_promise, + ...es2018_regexp_1.es2018_regexp, + ...es2018_intl_1.es2018_intl, +}; +//# sourceMappingURL=es2018.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map new file mode 100644 index 00000000..0ef7f4b7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.js","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,6CAAqB;IACxB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts new file mode 100644 index 00000000..2ff021b6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_promise: Record; +//# sourceMappingURL=es2018.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map new file mode 100644 index 00000000..5523cb25 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js new file mode 100644 index 00000000..7d0b41e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_promise = { + Promise: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map new file mode 100644 index 00000000..e0d94c8f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.js","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts new file mode 100644 index 00000000..2e69d45a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_regexp: Record; +//# sourceMappingURL=es2018.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map new file mode 100644 index 00000000..e8e21db9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAIrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js new file mode 100644 index 00000000..2ee6743c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map new file mode 100644 index 00000000..0bf9586c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.js","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts new file mode 100644 index 00000000..845c62f7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_array: Record; +//# sourceMappingURL=es2019.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map new file mode 100644 index 00000000..7c24db41 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAIpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js new file mode 100644 index 00000000..9073956d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_array = { + Array: base_config_1.TYPE, + FlatArray: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map new file mode 100644 index 00000000..5875c7ba --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.js","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,SAAS,EAAE,kBAAI;IACf,aAAa,EAAE,kBAAI;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts new file mode 100644 index 00000000..1d01d51d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019: Record; +//# sourceMappingURL=es2019.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map new file mode 100644 index 00000000..39a630af --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts new file mode 100644 index 00000000..d43d283b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_full: Record; +//# sourceMappingURL=es2019.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map new file mode 100644 index 00000000..2e2c2ef9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js new file mode 100644 index 00000000..548e3842 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2019_1 = require("./es2019"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2019_full = { + ...es2019_1.es2019, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2019.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map new file mode 100644 index 00000000..07df3cd5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.js","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts new file mode 100644 index 00000000..c560ab4a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_intl: Record; +//# sourceMappingURL=es2019.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map new file mode 100644 index 00000000..ebcc2efc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js new file mode 100644 index 00000000..32e3360c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2019.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map new file mode 100644 index 00000000..74276766 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.js","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js new file mode 100644 index 00000000..af8b4ab3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019 = void 0; +const es2018_1 = require("./es2018"); +const es2019_array_1 = require("./es2019.array"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +exports.es2019 = { + ...es2018_1.es2018, + ...es2019_array_1.es2019_array, + ...es2019_object_1.es2019_object, + ...es2019_string_1.es2019_string, + ...es2019_symbol_1.es2019_symbol, + ...es2019_intl_1.es2019_intl, +}; +//# sourceMappingURL=es2019.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map new file mode 100644 index 00000000..9ffafde4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.js","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts new file mode 100644 index 00000000..317dc348 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_object: Record; +//# sourceMappingURL=es2019.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map new file mode 100644 index 00000000..8b3b3192 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js new file mode 100644 index 00000000..2d3f9c8e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_object = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2019_object = { + ...es2015_iterable_1.es2015_iterable, + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map new file mode 100644 index 00000000..4cee0a9c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.js","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts new file mode 100644 index 00000000..6400ddca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_string: Record; +//# sourceMappingURL=es2019.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map new file mode 100644 index 00000000..1b2c8b82 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js new file mode 100644 index 00000000..cd44d0d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map new file mode 100644 index 00000000..8cdce85b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.js","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts new file mode 100644 index 00000000..66073bcd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_symbol: Record; +//# sourceMappingURL=es2019.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map new file mode 100644 index 00000000..8494681c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js new file mode 100644 index 00000000..5bb7979f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map new file mode 100644 index 00000000..f5101510 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.js","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts new file mode 100644 index 00000000..05bbb19e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_bigint: Record; +//# sourceMappingURL=es2020.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map new file mode 100644 index 00000000..56ab0964 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js new file mode 100644 index 00000000..58e91ae9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map new file mode 100644 index 00000000..c97b00d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.js","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts new file mode 100644 index 00000000..9786e11e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020: Record; +//# sourceMappingURL=es2020.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map new file mode 100644 index 00000000..dfcb06f5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,EAUd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts new file mode 100644 index 00000000..e7ee0517 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_date: Record; +//# sourceMappingURL=es2020.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map new file mode 100644 index 00000000..01ca954e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js new file mode 100644 index 00000000..bcfa2ee6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_date = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_date = { + ...es2020_intl_1.es2020_intl, + Date: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map new file mode 100644 index 00000000..94db60f7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.js","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts new file mode 100644 index 00000000..67ce5201 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_full: Record; +//# sourceMappingURL=es2020.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map new file mode 100644 index 00000000..888da8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js new file mode 100644 index 00000000..15fabbc3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2020_1 = require("./es2020"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2020_full = { + ...es2020_1.es2020, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2020.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map new file mode 100644 index 00000000..1193ecc2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.js","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts new file mode 100644 index 00000000..6fe292a7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_intl: Record; +//# sourceMappingURL=es2020.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map new file mode 100644 index 00000000..5947cdf1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js new file mode 100644 index 00000000..f934de56 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_intl = void 0; +const base_config_1 = require("./base-config"); +const es2018_intl_1 = require("./es2018.intl"); +exports.es2020_intl = { + ...es2018_intl_1.es2018_intl, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map new file mode 100644 index 00000000..9a6d7e1d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.js","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAC3C,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js new file mode 100644 index 00000000..57b30c03 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020 = void 0; +const es2019_1 = require("./es2019"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020 = { + ...es2019_1.es2019, + ...es2020_bigint_1.es2020_bigint, + ...es2020_date_1.es2020_date, + ...es2020_number_1.es2020_number, + ...es2020_promise_1.es2020_promise, + ...es2020_sharedmemory_1.es2020_sharedmemory, + ...es2020_string_1.es2020_string, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + ...es2020_intl_1.es2020_intl, +}; +//# sourceMappingURL=es2020.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map new file mode 100644 index 00000000..0b516166 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.js","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,6BAAa;IAChB,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts new file mode 100644 index 00000000..dff240d7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_number: Record; +//# sourceMappingURL=es2020.number.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map new file mode 100644 index 00000000..c4d193d7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js new file mode 100644 index 00000000..8f50949b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_number = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_number = { + ...es2020_intl_1.es2020_intl, + Number: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.number.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map new file mode 100644 index 00000000..b4398867 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.js","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts new file mode 100644 index 00000000..b45f2053 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_promise: Record; +//# sourceMappingURL=es2020.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map new file mode 100644 index 00000000..bbd33b97 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js new file mode 100644 index 00000000..ea610c08 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2020_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseFulfilledResult: base_config_1.TYPE, + PromiseRejectedResult: base_config_1.TYPE, + PromiseSettledResult: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map new file mode 100644 index 00000000..4c26bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.js","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts new file mode 100644 index 00000000..ebbb06c0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_sharedmemory: Record; +//# sourceMappingURL=es2020.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map new file mode 100644 index 00000000..d7037521 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAG3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js new file mode 100644 index 00000000..97e08a30 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2020_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map new file mode 100644 index 00000000..96acd864 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts new file mode 100644 index 00000000..2d116e7d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_string: Record; +//# sourceMappingURL=es2020.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map new file mode 100644 index 00000000..ca61963d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js new file mode 100644 index 00000000..5a37ea87 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_string = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020_string = { + ...es2015_iterable_1.es2015_iterable, + ...es2020_intl_1.es2020_intl, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map new file mode 100644 index 00000000..ec556aea --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.js","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,+CAA4C;AAC5C,uEAAoE;AAEvD,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,GAAG,yBAAW;IACd,GAAG,iDAAuB;IAC1B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts new file mode 100644 index 00000000..682c705a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_symbol_wellknown: Record; +//# sourceMappingURL=es2020.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..e83fc905 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,uBAAuB,EAM/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js new file mode 100644 index 00000000..d2542af2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2020_symbol_wellknown = { + ...es2015_iterable_1.es2015_iterable, + ...es2015_symbol_1.es2015_symbol, + RegExp: base_config_1.TYPE, + RegExpStringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map new file mode 100644 index 00000000..a170f1da --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,iCAAe;IAClB,GAAG,6BAAa;IAChB,MAAM,EAAE,kBAAI;IACZ,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts new file mode 100644 index 00000000..c9ff9f6b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021: Record; +//# sourceMappingURL=es2021.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map new file mode 100644 index 00000000..e0f8e9a8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,EAMd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts new file mode 100644 index 00000000..31fc0ef7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_full: Record; +//# sourceMappingURL=es2021.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map new file mode 100644 index 00000000..88d7bb50 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js new file mode 100644 index 00000000..2465a4b0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2021_1 = require("./es2021"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2021_full = { + ...es2021_1.es2021, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2021.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map new file mode 100644 index 00000000..aa11a6bd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.js","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts new file mode 100644 index 00000000..4435689d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_intl: Record; +//# sourceMappingURL=es2021.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map new file mode 100644 index 00000000..aede0332 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js new file mode 100644 index 00000000..d5c1956a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2021.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map new file mode 100644 index 00000000..9da715fe --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.js","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js new file mode 100644 index 00000000..86b11bb8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021 = void 0; +const es2020_1 = require("./es2020"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +exports.es2021 = { + ...es2020_1.es2020, + ...es2021_promise_1.es2021_promise, + ...es2021_string_1.es2021_string, + ...es2021_weakref_1.es2021_weakref, + ...es2021_intl_1.es2021_intl, +}; +//# sourceMappingURL=es2021.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map new file mode 100644 index 00000000..4edb4433 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.js","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts new file mode 100644 index 00000000..8eb9e9ec --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_promise: Record; +//# sourceMappingURL=es2021.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map new file mode 100644 index 00000000..50a09e7f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAItB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js new file mode 100644 index 00000000..85ed0f14 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_promise = { + AggregateError: base_config_1.TYPE_VALUE, + AggregateErrorConstructor: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map new file mode 100644 index 00000000..0bfb4dd7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.js","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts new file mode 100644 index 00000000..f54d34a0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_string: Record; +//# sourceMappingURL=es2021.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map new file mode 100644 index 00000000..8eecd383 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js new file mode 100644 index 00000000..f6c16c75 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map new file mode 100644 index 00000000..9f3d3cb5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.js","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts new file mode 100644 index 00000000..d7f5b674 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_weakref: Record; +//# sourceMappingURL=es2021.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map new file mode 100644 index 00000000..bf279179 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js new file mode 100644 index 00000000..73ca39ba --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2021_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map new file mode 100644 index 00000000..c2889a11 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.js","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts new file mode 100644 index 00000000..b9d87cde --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_array: Record; +//# sourceMappingURL=es2022.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map new file mode 100644 index 00000000..ede578de --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js new file mode 100644 index 00000000..f76a4e24 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map new file mode 100644 index 00000000..c0b839eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.js","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts new file mode 100644 index 00000000..12bc2fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022: Record; +//# sourceMappingURL=es2022.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map new file mode 100644 index 00000000..1f369cd3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts new file mode 100644 index 00000000..6619e107 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_error: Record; +//# sourceMappingURL=es2022.error.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map new file mode 100644 index 00000000..25c46d44 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,YAAY,EAYpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js new file mode 100644 index 00000000..af9c5264 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_error = void 0; +const base_config_1 = require("./base-config"); +const es2021_promise_1 = require("./es2021.promise"); +exports.es2022_error = { + ...es2021_promise_1.es2021_promise, + AggregateErrorConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE, + ErrorConstructor: base_config_1.TYPE, + ErrorOptions: base_config_1.TYPE, + EvalErrorConstructor: base_config_1.TYPE, + RangeErrorConstructor: base_config_1.TYPE, + ReferenceErrorConstructor: base_config_1.TYPE, + SyntaxErrorConstructor: base_config_1.TYPE, + TypeErrorConstructor: base_config_1.TYPE, + URIErrorConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.error.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map new file mode 100644 index 00000000..e0155666 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.js","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,qDAAkD;AAErC,QAAA,YAAY,GAAG;IAC1B,GAAG,+BAAc;IACjB,yBAAyB,EAAE,kBAAI;IAC/B,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;IAClB,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,yBAAyB,EAAE,kBAAI;IAC/B,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts new file mode 100644 index 00000000..df141b03 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_full: Record; +//# sourceMappingURL=es2022.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map new file mode 100644 index 00000000..fd3624eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js new file mode 100644 index 00000000..aab18ad6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2022_1 = require("./es2022"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2022_full = { + ...es2022_1.es2022, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2022.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map new file mode 100644 index 00000000..529ffaef --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.js","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts new file mode 100644 index 00000000..2b2c0813 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_intl: Record; +//# sourceMappingURL=es2022.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map new file mode 100644 index 00000000..b72b4f63 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js new file mode 100644 index 00000000..8c9373a5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2022.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map new file mode 100644 index 00000000..d49a40b3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.js","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js new file mode 100644 index 00000000..159ac906 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022 = void 0; +const es2021_1 = require("./es2021"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +exports.es2022 = { + ...es2021_1.es2021, + ...es2022_array_1.es2022_array, + ...es2022_error_1.es2022_error, + ...es2022_intl_1.es2022_intl, + ...es2022_object_1.es2022_object, + ...es2022_regexp_1.es2022_regexp, + ...es2022_string_1.es2022_string, +}; +//# sourceMappingURL=es2022.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map new file mode 100644 index 00000000..6b047d8b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.js","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,2BAAY;IACf,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts new file mode 100644 index 00000000..ffbb45d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_object: Record; +//# sourceMappingURL=es2022.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map new file mode 100644 index 00000000..951140e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js new file mode 100644 index 00000000..a03f8695 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map new file mode 100644 index 00000000..026d25d1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.js","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts new file mode 100644 index 00000000..1501510d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_regexp: Record; +//# sourceMappingURL=es2022.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map new file mode 100644 index 00000000..a3548a8a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js new file mode 100644 index 00000000..93cc712a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpIndicesArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map new file mode 100644 index 00000000..a3618bd9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.js","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts new file mode 100644 index 00000000..d1284cd4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_string: Record; +//# sourceMappingURL=es2022.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map new file mode 100644 index 00000000..6ee0b619 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js new file mode 100644 index 00000000..18621ed2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map new file mode 100644 index 00000000..4dcf0034 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.js","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts new file mode 100644 index 00000000..ef56316f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_array: Record; +//# sourceMappingURL=es2023.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map new file mode 100644 index 00000000..c92b4b27 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js new file mode 100644 index 00000000..c06c15b2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map new file mode 100644 index 00000000..6fefbb19 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.js","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts new file mode 100644 index 00000000..4f773c89 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_collection: Record; +//# sourceMappingURL=es2023.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map new file mode 100644 index 00000000..13873583 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js new file mode 100644 index 00000000..66c80e60 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_collection = { + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map new file mode 100644 index 00000000..9210e59b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.js","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts new file mode 100644 index 00000000..17e3cf0d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023: Record; +//# sourceMappingURL=es2023.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map new file mode 100644 index 00000000..de8c9830 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,MAAM,EAKd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts new file mode 100644 index 00000000..ac43b5cf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_full: Record; +//# sourceMappingURL=es2023.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map new file mode 100644 index 00000000..3c65b5f8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js new file mode 100644 index 00000000..1c7ecc7a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2023_1 = require("./es2023"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2023_full = { + ...es2023_1.es2023, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2023.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map new file mode 100644 index 00000000..f3f07ca0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.js","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts new file mode 100644 index 00000000..e8581d3d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_intl: Record; +//# sourceMappingURL=es2023.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map new file mode 100644 index 00000000..33dbb147 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js new file mode 100644 index 00000000..c6a2c6ff --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2023.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map new file mode 100644 index 00000000..85d8454f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.js","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js new file mode 100644 index 00000000..1cc68e47 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023 = void 0; +const es2022_1 = require("./es2022"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_intl_1 = require("./es2023.intl"); +exports.es2023 = { + ...es2022_1.es2022, + ...es2023_array_1.es2023_array, + ...es2023_collection_1.es2023_collection, + ...es2023_intl_1.es2023_intl, +}; +//# sourceMappingURL=es2023.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map new file mode 100644 index 00000000..3fc9f994 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.js","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,qCAAiB;IACpB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts new file mode 100644 index 00000000..0a80d4dc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_arraybuffer: Record; +//# sourceMappingURL=es2024.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map new file mode 100644 index 00000000..39fda514 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAG1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js new file mode 100644 index 00000000..be7726ed --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_arraybuffer = { + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map new file mode 100644 index 00000000..aafcc843 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts new file mode 100644 index 00000000..576c0a1a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_collection: Record; +//# sourceMappingURL=es2024.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map new file mode 100644 index 00000000..600c030d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js new file mode 100644 index 00000000..26cc4a66 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_collection = { + MapConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map new file mode 100644 index 00000000..3c0f5384 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.js","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts new file mode 100644 index 00000000..307c99f1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024: Record; +//# sourceMappingURL=es2024.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map new file mode 100644 index 00000000..f7185271 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts new file mode 100644 index 00000000..d875abb0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_full: Record; +//# sourceMappingURL=es2024.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map new file mode 100644 index 00000000..295d5b9d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js new file mode 100644 index 00000000..21f549f6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2024_1 = require("./es2024"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2024_full = { + ...es2024_1.es2024, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2024.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map new file mode 100644 index 00000000..8e25e889 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.js","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js new file mode 100644 index 00000000..7b2cd672 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024 = void 0; +const es2023_1 = require("./es2023"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +exports.es2024 = { + ...es2023_1.es2023, + ...es2024_arraybuffer_1.es2024_arraybuffer, + ...es2024_collection_1.es2024_collection, + ...es2024_object_1.es2024_object, + ...es2024_promise_1.es2024_promise, + ...es2024_regexp_1.es2024_regexp, + ...es2024_sharedmemory_1.es2024_sharedmemory, + ...es2024_string_1.es2024_string, +}; +//# sourceMappingURL=es2024.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map new file mode 100644 index 00000000..44605c7a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.js","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,2DAAwD;AACxD,mDAAgD;AAChD,qDAAkD;AAClD,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,qCAAiB;IACpB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts new file mode 100644 index 00000000..532a1333 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_object: Record; +//# sourceMappingURL=es2024.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map new file mode 100644 index 00000000..3a3c8a50 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js new file mode 100644 index 00000000..4af32569 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map new file mode 100644 index 00000000..a86f3b4b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.js","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts new file mode 100644 index 00000000..c38ec2ea --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_promise: Record; +//# sourceMappingURL=es2024.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map new file mode 100644 index 00000000..2919b17e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js new file mode 100644 index 00000000..b05487fe --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map new file mode 100644 index 00000000..d31e7e95 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.js","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts new file mode 100644 index 00000000..6c192725 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_regexp: Record; +//# sourceMappingURL=es2024.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map new file mode 100644 index 00000000..b2e8427e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js new file mode 100644 index 00000000..3b5d9d5a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map new file mode 100644 index 00000000..d4883bb6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.js","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts new file mode 100644 index 00000000..75865c5e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_sharedmemory: Record; +//# sourceMappingURL=es2024.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map new file mode 100644 index 00000000..38f6f650 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAK3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js new file mode 100644 index 00000000..9769eb27 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2024_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, + SharedArrayBuffer: base_config_1.TYPE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map new file mode 100644 index 00000000..d0dca258 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;IACb,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts new file mode 100644 index 00000000..9680181f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_string: Record; +//# sourceMappingURL=es2024.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map new file mode 100644 index 00000000..40b35333 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js new file mode 100644 index 00000000..eae1cb1b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map new file mode 100644 index 00000000..9922fdaa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.js","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts new file mode 100644 index 00000000..24dc6090 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es5: Record; +//# sourceMappingURL=es5.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map new file mode 100644 index 00000000..143906d2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.d.ts","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EA0GX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js new file mode 100644 index 00000000..d77b03ba --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js @@ -0,0 +1,118 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es5 = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +exports.es5 = { + ...decorators_1.decorators, + ...decorators_legacy_1.decorators_legacy, + Array: base_config_1.TYPE_VALUE, + ArrayBuffer: base_config_1.TYPE_VALUE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayBufferLike: base_config_1.TYPE, + ArrayBufferTypes: base_config_1.TYPE, + ArrayBufferView: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayLike: base_config_1.TYPE, + Awaited: base_config_1.TYPE, + Boolean: base_config_1.TYPE_VALUE, + BooleanConstructor: base_config_1.TYPE, + CallableFunction: base_config_1.TYPE, + Capitalize: base_config_1.TYPE, + ConcatArray: base_config_1.TYPE, + ConstructorParameters: base_config_1.TYPE, + DataView: base_config_1.TYPE_VALUE, + DataViewConstructor: base_config_1.TYPE, + Date: base_config_1.TYPE_VALUE, + DateConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE_VALUE, + ErrorConstructor: base_config_1.TYPE, + EvalError: base_config_1.TYPE_VALUE, + EvalErrorConstructor: base_config_1.TYPE, + Exclude: base_config_1.TYPE, + Extract: base_config_1.TYPE, + Float32Array: base_config_1.TYPE_VALUE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE_VALUE, + Float64ArrayConstructor: base_config_1.TYPE, + Function: base_config_1.TYPE_VALUE, + FunctionConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + ImportAssertions: base_config_1.TYPE, + ImportAttributes: base_config_1.TYPE, + ImportCallOptions: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InstanceType: base_config_1.TYPE, + Int8Array: base_config_1.TYPE_VALUE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE_VALUE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE_VALUE, + Int32ArrayConstructor: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, + JSON: base_config_1.TYPE_VALUE, + Lowercase: base_config_1.TYPE, + Math: base_config_1.TYPE_VALUE, + NewableFunction: base_config_1.TYPE, + NoInfer: base_config_1.TYPE, + NonNullable: base_config_1.TYPE, + Number: base_config_1.TYPE_VALUE, + NumberConstructor: base_config_1.TYPE, + Object: base_config_1.TYPE_VALUE, + ObjectConstructor: base_config_1.TYPE, + Omit: base_config_1.TYPE, + OmitThisParameter: base_config_1.TYPE, + Parameters: base_config_1.TYPE, + Partial: base_config_1.TYPE, + Pick: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructorLike: base_config_1.TYPE, + PromiseLike: base_config_1.TYPE, + PropertyDescriptor: base_config_1.TYPE, + PropertyDescriptorMap: base_config_1.TYPE, + PropertyKey: base_config_1.TYPE, + RangeError: base_config_1.TYPE_VALUE, + RangeErrorConstructor: base_config_1.TYPE, + Readonly: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Record: base_config_1.TYPE, + ReferenceError: base_config_1.TYPE_VALUE, + ReferenceErrorConstructor: base_config_1.TYPE, + RegExp: base_config_1.TYPE_VALUE, + RegExpConstructor: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, + Required: base_config_1.TYPE, + ReturnType: base_config_1.TYPE, + String: base_config_1.TYPE_VALUE, + StringConstructor: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SyntaxError: base_config_1.TYPE_VALUE, + SyntaxErrorConstructor: base_config_1.TYPE, + TemplateStringsArray: base_config_1.TYPE, + ThisParameterType: base_config_1.TYPE, + ThisType: base_config_1.TYPE, + TypedPropertyDescriptor: base_config_1.TYPE, + TypeError: base_config_1.TYPE_VALUE, + TypeErrorConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE_VALUE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE_VALUE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE_VALUE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE_VALUE, + Uint32ArrayConstructor: base_config_1.TYPE, + Uncapitalize: base_config_1.TYPE, + Uppercase: base_config_1.TYPE, + URIError: base_config_1.TYPE_VALUE, + URIErrorConstructor: base_config_1.TYPE, + WeakKey: base_config_1.TYPE, + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es5.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map new file mode 100644 index 00000000..a2b6f144 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.js","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,6CAA0C;AAC1C,2DAAwD;AAE3C,QAAA,GAAG,GAAG;IACjB,GAAG,uBAAU;IACb,GAAG,qCAAiB;IACpB,KAAK,EAAE,wBAAU;IACjB,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,kBAAI;IACf,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,qBAAqB,EAAE,kBAAI;IAC3B,QAAQ,EAAE,wBAAU;IACpB,mBAAmB,EAAE,kBAAI;IACzB,IAAI,EAAE,wBAAU;IAChB,eAAe,EAAE,kBAAI;IACrB,KAAK,EAAE,wBAAU;IACj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3B,QAAQ,EAAE,kBAAI;IACd,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,UAAU,EAAE,kBAAI;IAChB,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;IACvB,QAAQ,EAAE,kBAAI;IACd,uBAAuB,EAAE,kBAAI;IAC7B,SAAS,EAAE,wBAAU;IACrB,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,QAAQ,EAAE,wBAAU;IACpB,mBAAmB,EAAE,kBAAI;IACzB,OAAO,EAAE,kBAAI;IACb,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts new file mode 100644 index 00000000..b0fc22fa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es6: Record; +//# sourceMappingURL=es6.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map new file mode 100644 index 00000000..25745050 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.d.ts","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,GAAG,EAWX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js new file mode 100644 index 00000000..da4ad08c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es6 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es6 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es6.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map new file mode 100644 index 00000000..04b3a572 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts new file mode 100644 index 00000000..474bbd1e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es7: Record; +//# sourceMappingURL=es7.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map new file mode 100644 index 00000000..ef417554 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.d.ts","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EAIX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js new file mode 100644 index 00000000..9f60737d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es7 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es7 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es7.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map new file mode 100644 index 00000000..0c45e5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.js","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,GAAG,GAAG;IACjB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts new file mode 100644 index 00000000..779fb649 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_array: Record; +//# sourceMappingURL=esnext.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map new file mode 100644 index 00000000..036ead0e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAEpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js new file mode 100644 index 00000000..dd322261 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_array = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_array = { + ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map new file mode 100644 index 00000000..a1f50999 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.js","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts new file mode 100644 index 00000000..0cb2d185 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_asynciterable: Record; +//# sourceMappingURL=esnext.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map new file mode 100644 index 00000000..4369b973 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js new file mode 100644 index 00000000..f6638067 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map new file mode 100644 index 00000000..902e821c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.js","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts new file mode 100644 index 00000000..d879c0e7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_bigint: Record; +//# sourceMappingURL=esnext.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map new file mode 100644 index 00000000..accd0f69 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js new file mode 100644 index 00000000..316694f3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.esnext_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map new file mode 100644 index 00000000..fbfb3d27 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.js","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts new file mode 100644 index 00000000..94de9e18 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_collection: Record; +//# sourceMappingURL=esnext.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map new file mode 100644 index 00000000..b504a841 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js new file mode 100644 index 00000000..efb74f62 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_collection = void 0; +const base_config_1 = require("./base-config"); +const es2024_collection_1 = require("./es2024.collection"); +exports.esnext_collection = { + ...es2024_collection_1.es2024_collection, + ReadonlySet: base_config_1.TYPE, + ReadonlySetLike: base_config_1.TYPE, + Set: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map new file mode 100644 index 00000000..e00e2113 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.js","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,2DAAwD;AAE3C,QAAA,iBAAiB,GAAG;IAC/B,GAAG,qCAAiB;IACpB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,GAAG,EAAE,kBAAI;CACoC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts new file mode 100644 index 00000000..30897cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext: Record; +//# sourceMappingURL=esnext.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map new file mode 100644 index 00000000..fa915dc7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts new file mode 100644 index 00000000..b9cd30ca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_decorators: Record; +//# sourceMappingURL=esnext.decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map new file mode 100644 index 00000000..18f6d5c2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js new file mode 100644 index 00000000..de338568 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_decorators = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_decorators = { + ...es2015_symbol_1.es2015_symbol, + ...decorators_1.decorators, + Function: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map new file mode 100644 index 00000000..99b3d9c4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.js","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,6CAA0C;AAC1C,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,uBAAU;IACb,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts new file mode 100644 index 00000000..86f4a6e6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_disposable: Record; +//# sourceMappingURL=esnext.disposable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map new file mode 100644 index 00000000..07c61bcf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,iBAAiB,EAezB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js new file mode 100644 index 00000000..9920dc32 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_disposable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.esnext_disposable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncDisposable: base_config_1.TYPE, + AsyncDisposableStack: base_config_1.TYPE_VALUE, + AsyncDisposableStackConstructor: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + Disposable: base_config_1.TYPE, + DisposableStack: base_config_1.TYPE_VALUE, + DisposableStackConstructor: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + SuppressedError: base_config_1.TYPE_VALUE, + SuppressedErrorConstructor: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.disposable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map new file mode 100644 index 00000000..e0516446 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.js","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AACpD,mDAAgD;AAChD,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,GAAG,2CAAoB;IACvB,eAAe,EAAE,kBAAI;IACrB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,mBAAmB,EAAE,kBAAI;IACzB,UAAU,EAAE,kBAAI;IAChB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts new file mode 100644 index 00000000..6c0fb48d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_full: Record; +//# sourceMappingURL=esnext.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map new file mode 100644 index 00000000..ef5cc83c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js new file mode 100644 index 00000000..60077f5f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const esnext_1 = require("./esnext"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.esnext_full = { + ...esnext_1.esnext, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=esnext.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map new file mode 100644 index 00000000..7327212a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.js","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts new file mode 100644 index 00000000..892587a4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_intl: Record; +//# sourceMappingURL=esnext.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map new file mode 100644 index 00000000..26224dde --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js new file mode 100644 index 00000000..cc49679a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_intl = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map new file mode 100644 index 00000000..9d1eaeac --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.js","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts new file mode 100644 index 00000000..d09f9da5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_iterator: Record; +//# sourceMappingURL=esnext.iterator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map new file mode 100644 index 00000000..fbdccfb5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAIvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js new file mode 100644 index 00000000..ab1f9589 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_iterator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.esnext_iterator = { + ...es2015_iterable_1.es2015_iterable, + Iterator: base_config_1.TYPE_VALUE, + IteratorObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.iterator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map new file mode 100644 index 00000000..59b37847 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.js","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AAEvC,QAAA,eAAe,GAAG;IAC7B,GAAG,iCAAe;IAClB,QAAQ,EAAE,wBAAU;IACpB,yBAAyB,EAAE,kBAAI;CACc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js new file mode 100644 index 00000000..69cce1a0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext = void 0; +const es2024_1 = require("./es2024"); +const esnext_array_1 = require("./esnext.array"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +exports.esnext = { + ...es2024_1.es2024, + ...esnext_intl_1.esnext_intl, + ...esnext_decorators_1.esnext_decorators, + ...esnext_disposable_1.esnext_disposable, + ...esnext_collection_1.esnext_collection, + ...esnext_array_1.esnext_array, + ...esnext_iterator_1.esnext_iterator, +}; +//# sourceMappingURL=esnext.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map new file mode 100644 index 00000000..f336e082 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.js","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,+CAA4C;AAC5C,uDAAoD;AAEvC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,2BAAY;IACf,GAAG,iCAAe;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts new file mode 100644 index 00000000..3e43e0b1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_object: Record; +//# sourceMappingURL=esnext.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map new file mode 100644 index 00000000..3d59cc83 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js new file mode 100644 index 00000000..8e180d68 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_object = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map new file mode 100644 index 00000000..9154dd13 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.js","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts new file mode 100644 index 00000000..aae1ed13 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_promise: Record; +//# sourceMappingURL=esnext.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map new file mode 100644 index 00000000..4173b503 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js new file mode 100644 index 00000000..447a1ac5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_promise = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map new file mode 100644 index 00000000..32b45b2a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.js","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts new file mode 100644 index 00000000..acc6dda4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_regexp: Record; +//# sourceMappingURL=esnext.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map new file mode 100644 index 00000000..1672df44 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js new file mode 100644 index 00000000..819aa882 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map new file mode 100644 index 00000000..0defba2a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.js","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts new file mode 100644 index 00000000..238f2890 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_string: Record; +//# sourceMappingURL=esnext.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map new file mode 100644 index 00000000..fd057738 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js new file mode 100644 index 00000000..0aab283d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_string = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map new file mode 100644 index 00000000..355d2606 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.js","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts new file mode 100644 index 00000000..a09a2927 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_symbol: Record; +//# sourceMappingURL=esnext.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map new file mode 100644 index 00000000..50a438b1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js new file mode 100644 index 00000000..df46aa26 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map new file mode 100644 index 00000000..e8e636fd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.js","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts new file mode 100644 index 00000000..1f2b6727 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_weakref: Record; +//# sourceMappingURL=esnext.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map new file mode 100644 index 00000000..109aa745 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js new file mode 100644 index 00000000..29f616b3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.esnext_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map new file mode 100644 index 00000000..3282d719 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.js","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts new file mode 100644 index 00000000..56ef4453 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts @@ -0,0 +1,109 @@ +declare const lib: { + readonly decorators: Record; + readonly 'decorators.legacy': Record; + readonly dom: Record; + readonly 'dom.asynciterable': Record; + readonly 'dom.iterable': Record; + readonly es5: Record; + readonly es6: Record; + readonly es7: Record; + readonly es2015: Record; + readonly 'es2015.collection': Record; + readonly 'es2015.core': Record; + readonly 'es2015.generator': Record; + readonly 'es2015.iterable': Record; + readonly 'es2015.promise': Record; + readonly 'es2015.proxy': Record; + readonly 'es2015.reflect': Record; + readonly 'es2015.symbol': Record; + readonly 'es2015.symbol.wellknown': Record; + readonly es2016: Record; + readonly 'es2016.array.include': Record; + readonly 'es2016.full': Record; + readonly 'es2016.intl': Record; + readonly es2017: Record; + readonly 'es2017.arraybuffer': Record; + readonly 'es2017.date': Record; + readonly 'es2017.full': Record; + readonly 'es2017.intl': Record; + readonly 'es2017.object': Record; + readonly 'es2017.sharedmemory': Record; + readonly 'es2017.string': Record; + readonly 'es2017.typedarrays': Record; + readonly es2018: Record; + readonly 'es2018.asyncgenerator': Record; + readonly 'es2018.asynciterable': Record; + readonly 'es2018.full': Record; + readonly 'es2018.intl': Record; + readonly 'es2018.promise': Record; + readonly 'es2018.regexp': Record; + readonly es2019: Record; + readonly 'es2019.array': Record; + readonly 'es2019.full': Record; + readonly 'es2019.intl': Record; + readonly 'es2019.object': Record; + readonly 'es2019.string': Record; + readonly 'es2019.symbol': Record; + readonly es2020: Record; + readonly 'es2020.bigint': Record; + readonly 'es2020.date': Record; + readonly 'es2020.full': Record; + readonly 'es2020.intl': Record; + readonly 'es2020.number': Record; + readonly 'es2020.promise': Record; + readonly 'es2020.sharedmemory': Record; + readonly 'es2020.string': Record; + readonly 'es2020.symbol.wellknown': Record; + readonly es2021: Record; + readonly 'es2021.full': Record; + readonly 'es2021.intl': Record; + readonly 'es2021.promise': Record; + readonly 'es2021.string': Record; + readonly 'es2021.weakref': Record; + readonly es2022: Record; + readonly 'es2022.array': Record; + readonly 'es2022.error': Record; + readonly 'es2022.full': Record; + readonly 'es2022.intl': Record; + readonly 'es2022.object': Record; + readonly 'es2022.regexp': Record; + readonly 'es2022.string': Record; + readonly es2023: Record; + readonly 'es2023.array': Record; + readonly 'es2023.collection': Record; + readonly 'es2023.full': Record; + readonly 'es2023.intl': Record; + readonly es2024: Record; + readonly 'es2024.arraybuffer': Record; + readonly 'es2024.collection': Record; + readonly 'es2024.full': Record; + readonly 'es2024.object': Record; + readonly 'es2024.promise': Record; + readonly 'es2024.regexp': Record; + readonly 'es2024.sharedmemory': Record; + readonly 'es2024.string': Record; + readonly esnext: Record; + readonly 'esnext.array': Record; + readonly 'esnext.asynciterable': Record; + readonly 'esnext.bigint': Record; + readonly 'esnext.collection': Record; + readonly 'esnext.decorators': Record; + readonly 'esnext.disposable': Record; + readonly 'esnext.full': Record; + readonly 'esnext.intl': Record; + readonly 'esnext.iterator': Record; + readonly 'esnext.object': Record; + readonly 'esnext.promise': Record; + readonly 'esnext.regexp': Record; + readonly 'esnext.string': Record; + readonly 'esnext.symbol': Record; + readonly 'esnext.weakref': Record; + readonly lib: Record; + readonly scripthost: Record; + readonly webworker: Record; + readonly 'webworker.asynciterable': Record; + readonly 'webworker.importscripts': Record; + readonly 'webworker.iterable': Record; +}; +export { lib }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map new file mode 100644 index 00000000..1508f374 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AA+GA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GC,CAAC;AAEX,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js new file mode 100644 index 00000000..67f08d37 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js @@ -0,0 +1,221 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es5_1 = require("./es5"); +const es6_1 = require("./es6"); +const es7_1 = require("./es7"); +const es2015_1 = require("./es2015"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +const es2016_1 = require("./es2016"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_full_1 = require("./es2016.full"); +const es2016_intl_1 = require("./es2016.intl"); +const es2017_1 = require("./es2017"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_full_1 = require("./es2017.full"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +const es2018_1 = require("./es2018"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_full_1 = require("./es2018.full"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +const es2019_1 = require("./es2019"); +const es2019_array_1 = require("./es2019.array"); +const es2019_full_1 = require("./es2019.full"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +const es2020_1 = require("./es2020"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_full_1 = require("./es2020.full"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +const es2021_1 = require("./es2021"); +const es2021_full_1 = require("./es2021.full"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +const es2022_1 = require("./es2022"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_full_1 = require("./es2022.full"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +const es2023_1 = require("./es2023"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_full_1 = require("./es2023.full"); +const es2023_intl_1 = require("./es2023.intl"); +const es2024_1 = require("./es2024"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_full_1 = require("./es2024.full"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +const esnext_1 = require("./esnext"); +const esnext_array_1 = require("./esnext.array"); +const esnext_asynciterable_1 = require("./esnext.asynciterable"); +const esnext_bigint_1 = require("./esnext.bigint"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_full_1 = require("./esnext.full"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +const esnext_object_1 = require("./esnext.object"); +const esnext_promise_1 = require("./esnext.promise"); +const esnext_regexp_1 = require("./esnext.regexp"); +const esnext_string_1 = require("./esnext.string"); +const esnext_symbol_1 = require("./esnext.symbol"); +const esnext_weakref_1 = require("./esnext.weakref"); +const lib_1 = require("./lib"); +const scripthost_1 = require("./scripthost"); +const webworker_1 = require("./webworker"); +const webworker_asynciterable_1 = require("./webworker.asynciterable"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +const webworker_iterable_1 = require("./webworker.iterable"); +const lib = { + decorators: decorators_1.decorators, + 'decorators.legacy': decorators_legacy_1.decorators_legacy, + dom: dom_1.dom, + 'dom.asynciterable': dom_asynciterable_1.dom_asynciterable, + 'dom.iterable': dom_iterable_1.dom_iterable, + es5: es5_1.es5, + es6: es6_1.es6, + es7: es7_1.es7, + es2015: es2015_1.es2015, + 'es2015.collection': es2015_collection_1.es2015_collection, + 'es2015.core': es2015_core_1.es2015_core, + 'es2015.generator': es2015_generator_1.es2015_generator, + 'es2015.iterable': es2015_iterable_1.es2015_iterable, + 'es2015.promise': es2015_promise_1.es2015_promise, + 'es2015.proxy': es2015_proxy_1.es2015_proxy, + 'es2015.reflect': es2015_reflect_1.es2015_reflect, + 'es2015.symbol': es2015_symbol_1.es2015_symbol, + 'es2015.symbol.wellknown': es2015_symbol_wellknown_1.es2015_symbol_wellknown, + es2016: es2016_1.es2016, + 'es2016.array.include': es2016_array_include_1.es2016_array_include, + 'es2016.full': es2016_full_1.es2016_full, + 'es2016.intl': es2016_intl_1.es2016_intl, + es2017: es2017_1.es2017, + 'es2017.arraybuffer': es2017_arraybuffer_1.es2017_arraybuffer, + 'es2017.date': es2017_date_1.es2017_date, + 'es2017.full': es2017_full_1.es2017_full, + 'es2017.intl': es2017_intl_1.es2017_intl, + 'es2017.object': es2017_object_1.es2017_object, + 'es2017.sharedmemory': es2017_sharedmemory_1.es2017_sharedmemory, + 'es2017.string': es2017_string_1.es2017_string, + 'es2017.typedarrays': es2017_typedarrays_1.es2017_typedarrays, + es2018: es2018_1.es2018, + 'es2018.asyncgenerator': es2018_asyncgenerator_1.es2018_asyncgenerator, + 'es2018.asynciterable': es2018_asynciterable_1.es2018_asynciterable, + 'es2018.full': es2018_full_1.es2018_full, + 'es2018.intl': es2018_intl_1.es2018_intl, + 'es2018.promise': es2018_promise_1.es2018_promise, + 'es2018.regexp': es2018_regexp_1.es2018_regexp, + es2019: es2019_1.es2019, + 'es2019.array': es2019_array_1.es2019_array, + 'es2019.full': es2019_full_1.es2019_full, + 'es2019.intl': es2019_intl_1.es2019_intl, + 'es2019.object': es2019_object_1.es2019_object, + 'es2019.string': es2019_string_1.es2019_string, + 'es2019.symbol': es2019_symbol_1.es2019_symbol, + es2020: es2020_1.es2020, + 'es2020.bigint': es2020_bigint_1.es2020_bigint, + 'es2020.date': es2020_date_1.es2020_date, + 'es2020.full': es2020_full_1.es2020_full, + 'es2020.intl': es2020_intl_1.es2020_intl, + 'es2020.number': es2020_number_1.es2020_number, + 'es2020.promise': es2020_promise_1.es2020_promise, + 'es2020.sharedmemory': es2020_sharedmemory_1.es2020_sharedmemory, + 'es2020.string': es2020_string_1.es2020_string, + 'es2020.symbol.wellknown': es2020_symbol_wellknown_1.es2020_symbol_wellknown, + es2021: es2021_1.es2021, + 'es2021.full': es2021_full_1.es2021_full, + 'es2021.intl': es2021_intl_1.es2021_intl, + 'es2021.promise': es2021_promise_1.es2021_promise, + 'es2021.string': es2021_string_1.es2021_string, + 'es2021.weakref': es2021_weakref_1.es2021_weakref, + es2022: es2022_1.es2022, + 'es2022.array': es2022_array_1.es2022_array, + 'es2022.error': es2022_error_1.es2022_error, + 'es2022.full': es2022_full_1.es2022_full, + 'es2022.intl': es2022_intl_1.es2022_intl, + 'es2022.object': es2022_object_1.es2022_object, + 'es2022.regexp': es2022_regexp_1.es2022_regexp, + 'es2022.string': es2022_string_1.es2022_string, + es2023: es2023_1.es2023, + 'es2023.array': es2023_array_1.es2023_array, + 'es2023.collection': es2023_collection_1.es2023_collection, + 'es2023.full': es2023_full_1.es2023_full, + 'es2023.intl': es2023_intl_1.es2023_intl, + es2024: es2024_1.es2024, + 'es2024.arraybuffer': es2024_arraybuffer_1.es2024_arraybuffer, + 'es2024.collection': es2024_collection_1.es2024_collection, + 'es2024.full': es2024_full_1.es2024_full, + 'es2024.object': es2024_object_1.es2024_object, + 'es2024.promise': es2024_promise_1.es2024_promise, + 'es2024.regexp': es2024_regexp_1.es2024_regexp, + 'es2024.sharedmemory': es2024_sharedmemory_1.es2024_sharedmemory, + 'es2024.string': es2024_string_1.es2024_string, + esnext: esnext_1.esnext, + 'esnext.array': esnext_array_1.esnext_array, + 'esnext.asynciterable': esnext_asynciterable_1.esnext_asynciterable, + 'esnext.bigint': esnext_bigint_1.esnext_bigint, + 'esnext.collection': esnext_collection_1.esnext_collection, + 'esnext.decorators': esnext_decorators_1.esnext_decorators, + 'esnext.disposable': esnext_disposable_1.esnext_disposable, + 'esnext.full': esnext_full_1.esnext_full, + 'esnext.intl': esnext_intl_1.esnext_intl, + 'esnext.iterator': esnext_iterator_1.esnext_iterator, + 'esnext.object': esnext_object_1.esnext_object, + 'esnext.promise': esnext_promise_1.esnext_promise, + 'esnext.regexp': esnext_regexp_1.esnext_regexp, + 'esnext.string': esnext_string_1.esnext_string, + 'esnext.symbol': esnext_symbol_1.esnext_symbol, + 'esnext.weakref': esnext_weakref_1.esnext_weakref, + lib: lib_1.lib, + scripthost: scripthost_1.scripthost, + webworker: webworker_1.webworker, + 'webworker.asynciterable': webworker_asynciterable_1.webworker_asynciterable, + 'webworker.importscripts': webworker_importscripts_1.webworker_importscripts, + 'webworker.iterable': webworker_iterable_1.webworker_iterable, +}; +exports.lib = lib; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map new file mode 100644 index 00000000..c58f9ae2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAE3B,6CAA0C;AAC1C,2DAAwD;AACxD,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,qCAAkC;AAClC,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AACpE,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qCAAkC;AAClC,6DAA0D;AAC1D,+CAA4C;AAC5C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAC1D,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAChD,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AACpE,qCAAkC;AAClC,+CAA4C;AAC5C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EAAE,yBAAW;IAC1B,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,MAAM,EAAN,eAAM;IACN,cAAc,EAAE,2BAAY;IAC5B,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,MAAM,EAAN,eAAM;IACN,oBAAoB,EAAE,uCAAkB;IACxC,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,eAAe,EAAE,6BAAa;IAC9B,qBAAqB,EAAE,yCAAmB;IAC1C,eAAe,EAAE,6BAAa;IAC9B,MAAM,EAAN,eAAM;IACN,cAAc,EAAE,2BAAY;IAC5B,sBAAsB,EAAE,2CAAoB;IAC5C,eAAe,EAAE,6BAAa;IAC9B,mBAAmB,EAAE,qCAAiB;IACtC,mBAAmB,EAAE,qCAAiB;IACtC,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,iBAAiB,EAAE,iCAAe;IAClC,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,GAAG,EAAE,SAAO;IACZ,UAAU,EAAV,uBAAU;IACV,SAAS,EAAT,qBAAS;IACT,yBAAyB,EAAE,iDAAuB;IAClD,yBAAyB,EAAE,iDAAuB;IAClD,oBAAoB,EAAE,uCAAkB;CAChC,CAAC;AAEF,kBAAG"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts new file mode 100644 index 00000000..a6b2263d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const lib: Record; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map new file mode 100644 index 00000000..46c421fa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,GAAG,EAKX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js new file mode 100644 index 00000000..566b4a72 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const dom_1 = require("./dom"); +const es5_1 = require("./es5"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.lib = { + ...es5_1.es5, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, +}; +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map new file mode 100644 index 00000000..c0724cc5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,+BAA4B;AAC5B,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts new file mode 100644 index 00000000..4e066f50 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const scripthost: Record; +//# sourceMappingURL=scripthost.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map new file mode 100644 index 00000000..9824c2bb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.d.ts","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAclB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js new file mode 100644 index 00000000..f0e5b455 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.scripthost = void 0; +const base_config_1 = require("./base-config"); +exports.scripthost = { + ActiveXObject: base_config_1.TYPE_VALUE, + Date: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Enumerator: base_config_1.TYPE_VALUE, + EnumeratorConstructor: base_config_1.TYPE, + ITextWriter: base_config_1.TYPE, + SafeArray: base_config_1.TYPE_VALUE, + TextStreamBase: base_config_1.TYPE, + TextStreamReader: base_config_1.TYPE, + TextStreamWriter: base_config_1.TYPE, + VarDate: base_config_1.TYPE_VALUE, + VBArray: base_config_1.TYPE_VALUE, + VBArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=scripthost.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map new file mode 100644 index 00000000..23d28b96 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.js","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,wBAAU;IACzB,IAAI,EAAE,kBAAI;IACV,eAAe,EAAE,kBAAI;IACrB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,SAAS,EAAE,wBAAU;IACrB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts new file mode 100644 index 00000000..d8da1baa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_asynciterable: Record; +//# sourceMappingURL=webworker.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map new file mode 100644 index 00000000..49751a07 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,uBAAuB,EAK/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js new file mode 100644 index 00000000..886eac52 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map new file mode 100644 index 00000000..3c404133 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.js","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,uBAAuB,GAAG;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts new file mode 100644 index 00000000..87c0e941 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker: Record; +//# sourceMappingURL=webworker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map new file mode 100644 index 00000000..728c2fcb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,SAAS,EA+lBjB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts new file mode 100644 index 00000000..c042e506 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_importscripts: Record; +//# sourceMappingURL=webworker.importscripts.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map new file mode 100644 index 00000000..1885ad20 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAS,MAAM,CACjD,MAAM,EACN,0BAA0B,CAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js new file mode 100644 index 00000000..06726a77 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js @@ -0,0 +1,9 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_importscripts = void 0; +exports.webworker_importscripts = {}; +//# sourceMappingURL=webworker.importscripts.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map new file mode 100644 index 00000000..4c4f6774 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.js","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAId,QAAA,uBAAuB,GAAG,EAGtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts new file mode 100644 index 00000000..207cf1f7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_iterable: Record; +//# sourceMappingURL=webworker.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map new file mode 100644 index 00000000..7e3d24f8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EA6B1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js new file mode 100644 index 00000000..4d8c3378 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js @@ -0,0 +1,39 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_iterable = { + AbortSignal: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map new file mode 100644 index 00000000..e96fbd2c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.js","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,kBAAI;IACb,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,wBAAwB,EAAE,kBAAI;IAC9B,gCAAgC,EAAE,kBAAI;IACtC,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,uBAAuB,EAAE,kBAAI;IAC7B,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js new file mode 100644 index 00000000..537f084b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js @@ -0,0 +1,617 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker = void 0; +const base_config_1 = require("./base-config"); +exports.webworker = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + Client: base_config_1.TYPE_VALUE, + ClientQueryOptions: base_config_1.TYPE, + Clients: base_config_1.TYPE_VALUE, + ClientTypes: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + Console: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScope: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScopeEventMap: base_config_1.TYPE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + ExtendableEvent: base_config_1.TYPE_VALUE, + ExtendableEventInit: base_config_1.TYPE, + ExtendableMessageEvent: base_config_1.TYPE_VALUE, + ExtendableMessageEventInit: base_config_1.TYPE, + FetchEvent: base_config_1.TYPE_VALUE, + FetchEventInit: base_config_1.TYPE, + File: base_config_1.TYPE_VALUE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileReaderSync: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemReadWriteOptions: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemSyncAccessHandle: base_config_1.TYPE_VALUE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FrameRequestCallback: base_config_1.TYPE, + FrameType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LatencyMode: base_config_1.TYPE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessor: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessorInit: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEvent: base_config_1.TYPE_VALUE, + NotificationEventInit: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushEvent: base_config_1.TYPE_VALUE, + PushEventInit: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushMessageData: base_config_1.TYPE_VALUE, + PushMessageDataInit: base_config_1.TYPE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCRtpScriptTransformer: base_config_1.TYPE_VALUE, + RTCTransformEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerGlobalScope: base_config_1.TYPE_VALUE, + ServiceWorkerGlobalScopeEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + SharedWorkerGlobalScope: base_config_1.TYPE_VALUE, + SharedWorkerGlobalScopeEventMap: base_config_1.TYPE, + StorageEstimate: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + SubtleCrypto: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + Uint32List: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoTransferCharacteristics: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WindowClient: base_config_1.TYPE_VALUE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerGlobalScope: base_config_1.TYPE_VALUE, + WorkerGlobalScopeEventMap: base_config_1.TYPE, + WorkerLocation: base_config_1.TYPE_VALUE, + WorkerNavigator: base_config_1.TYPE_VALUE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=webworker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map new file mode 100644 index 00000000..a9956c68 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.js","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,eAAe,EAAE,wBAAU;IAC3B,WAAW,EAAE,wBAAU;IACvB,mBAAmB,EAAE,kBAAI;IACzB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,Y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C5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts new file mode 100644 index 00000000..42aecaa6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ClassVisitor extends Visitor { + #private; + constructor(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression); + static visit(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + visit(node: TSESTree.Node | null | undefined): void; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitMethod(node: TSESTree.MethodDefinition): void; + protected visitMethodFunction(node: TSESTree.FunctionExpression, methodNode: TSESTree.MethodDefinition): void; + protected visitPropertyBase(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition): void; + protected visitPropertyDefinition(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected AccessorProperty(node: TSESTree.AccessorProperty): void; + protected ClassBody(node: TSESTree.ClassBody): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MethodDefinition(node: TSESTree.MethodDefinition): void; + protected PrivateIdentifier(): void; + protected PropertyDefinition(node: TSESTree.PropertyDefinition): void; + protected StaticBlock(node: TSESTree.StaticBlock): void; + protected TSAbstractAccessorProperty(node: TSESTree.TSAbstractAccessorProperty): void; + protected TSAbstractMethodDefinition(node: TSESTree.TSAbstractMethodDefinition): void; + protected TSAbstractPropertyDefinition(node: TSESTree.TSAbstractPropertyDefinition): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; +} +export { ClassVisitor }; +//# sourceMappingURL=ClassVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map new file mode 100644 index 00000000..df5afab2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,YAAa,SAAQ,OAAO;;gBAK9B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe;IAO5D,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,GACzD,IAAI;IAKP,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAanD,SAAS,CAAC,UAAU,CAClB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,G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AAQ,CAAC,WAAW,GAAG,IAAI;IAQvD,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,4BAA4B,CACpC,IAAI,EAAE,QAAQ,CAAC,4BAA4B,GAC1C,IAAI;IAIP,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;CAGlE;AAsCD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js new file mode 100644 index 00000000..1384c5c0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js @@ -0,0 +1,266 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +class ClassVisitor extends Visitor_1.Visitor { + #classNode; + #referencer; + constructor(referencer, node) { + super(referencer); + this.#referencer = referencer; + this.#classNode = node; + } + static visit(referencer, node) { + const classVisitor = new ClassVisitor(referencer, node); + classVisitor.visitClass(node); + } + visit(node) { + // make sure we only handle the nodes we are designed to handle + if (node && node.type in this) { + super.visit(node); + } + else { + this.#referencer.visit(node); + } + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + if (node.type === types_1.AST_NODE_TYPES.ClassDeclaration && node.id) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + this.#referencer.scopeManager.nestClassScope(node); + if (node.id) { + // define the class name again inside the new scope + // references to the class should not resolve directly to the parent class + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + this.#referencer.visit(node.superClass); + // visit the type param declarations + this.visitType(node.typeParameters); + // then the usages + this.visitType(node.superTypeArguments); + node.implements.forEach(imp => this.visitType(imp)); + this.visit(node.body); + this.#referencer.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + } + } + visitMethod(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value.type === types_1.AST_NODE_TYPES.FunctionExpression) { + this.visitMethodFunction(node.value, node); + } + else { + this.#referencer.visit(node.value); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitMethodFunction(node, methodNode) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.#referencer.scopeManager.nestFunctionExpressionNameScope(node); + } + // Consider this function is in the MethodDefinition. + this.#referencer.scopeManager.nestFunctionScope(node, true); + /** + * class A { + * @meta // <--- check this + * foo(a: Type) {} + * + * @meta // <--- check this + * foo(): Type {} + * } + */ + let withMethodDecorators = !!methodNode.decorators.length; + /** + * class A { + * foo( + * @meta // <--- check this + * a: Type + * ) {} + * + * set foo( + * @meta // <--- EXCEPT this. TS do nothing for this + * a: Type + * ) {} + * } + */ + withMethodDecorators ||= + methodNode.kind !== 'set' && + node.params.some(param => param.decorators.length); + if (!withMethodDecorators && methodNode.kind === 'set') { + const keyName = getLiteralMethodKeyName(methodNode); + /** + * class A { + * @meta // <--- check this + * get a() {} + * set ['a'](v: Type) {} + * } + */ + if (keyName != null && + this.#classNode.body.body.find((node) => node !== methodNode && + node.type === types_1.AST_NODE_TYPES.MethodDefinition && + // Node must both be static or not + node.static === methodNode.static && + getLiteralMethodKeyName(node) === keyName)?.decorators.length) { + withMethodDecorators = true; + } + } + /** + * @meta // <--- check this + * class A { + * constructor(a: Type) {} + * } + */ + if (!withMethodDecorators && + methodNode.kind === 'constructor' && + this.#classNode.decorators.length) { + withMethodDecorators = true; + } + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.#referencer.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + this.#referencer.visitChildren(node.body); + this.#referencer.close(node); + } + visitPropertyBase(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value) { + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.scopeManager.nestClassFieldInitializerScope(node.value); + } + this.#referencer.visit(node.value); + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.close(node.value); + } + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitPropertyDefinition(node) { + this.visitPropertyBase(node); + /** + * class A { + * @meta // <--- check this + * foo: Type; + * } + */ + this.visitType(node.typeAnnotation); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this.#referencer, node); + } + ///////////////////// + // Visit selectors // + ///////////////////// + AccessorProperty(node) { + this.visitPropertyDefinition(node); + } + ClassBody(node) { + // this is here on purpose so that this visitor explicitly declares visitors + // for all nodes it cares about (see the instance visit method above) + this.visitChildren(node); + } + Identifier(node) { + this.#referencer.visit(node); + } + MethodDefinition(node) { + this.visitMethod(node); + } + PrivateIdentifier() { + // intentionally skip + } + PropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + StaticBlock(node) { + this.#referencer.scopeManager.nestClassStaticBlockScope(node); + node.body.forEach(b => this.visit(b)); + this.#referencer.close(node); + } + TSAbstractAccessorProperty(node) { + this.visitPropertyDefinition(node); + } + TSAbstractMethodDefinition(node) { + this.visitPropertyBase(node); + } + TSAbstractPropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + TSIndexSignature(node) { + this.visitType(node); + } +} +exports.ClassVisitor = ClassVisitor; +/** + * Only if key is one of [identifier, string, number], ts will combine metadata of accessors . + * class A { + * get a() {} + * set ['a'](v: Type) {} + * + * get [1]() {} + * set [1](v: Type) {} + * + * // Following won't be combined + * get [key]() {} + * set [key](v: Type) {} + * + * get [true]() {} + * set [true](v: Type) {} + * + * get ['a'+'b']() {} + * set ['a'+'b']() {} + * } + */ +function getLiteralMethodKeyName(node) { + if (node.computed && node.key.type === types_1.AST_NODE_TYPES.Literal) { + if (typeof node.key.value === 'string' || + typeof node.key.value === 'number') { + return node.key.value; + } + } + else if (!node.computed && node.key.type === types_1.AST_NODE_TYPES.Identifier) { + return node.key.name; + } + return null; +} +//# sourceMappingURL=ClassVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map new file mode 100644 index 00000000..b43ce036 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,8CAAyE;AACzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IACvB,UAAU,CAAuD;IACjE,WAAW,CAAa;IAEjC,YACE,U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AAI,CAAC,CAAC;IACvB,CAAC;CACF;AAsCQ,oCAAY;AApCrB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,uBAAuB,CAC9B,IAA+B;IAE/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAC9D,IACE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ;YAClC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ,EAClC,CAAC;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACxB,CAAC;IACH,CAAC;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts new file mode 100644 index 00000000..1b78cb84 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +type ExportNode = TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration; +declare class ExportVisitor extends Visitor { + #private; + constructor(node: ExportNode, referencer: Referencer); + static visit(referencer: Referencer, node: ExportNode): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ExportSpecifier(node: TSESTree.ExportSpecifier): void; + protected Identifier(node: TSESTree.Identifier): void; +} +export { ExportVisitor }; +//# sourceMappingURL=ExportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map new file mode 100644 index 00000000..0b07ac45 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GACX,QAAQ,CAAC,oBAAoB,GAC7B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,sBAAsB,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAMpD,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAK5D,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAaP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAgBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAgB/D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAStD;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js new file mode 100644 index 00000000..ae8fade8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js @@ -0,0 +1,72 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const Visitor_1 = require("./Visitor"); +class ExportVisitor extends Visitor_1.Visitor { + #exportNode; + #referencer; + constructor(node, referencer) { + super(referencer); + this.#exportNode = node; + this.#referencer = referencer; + } + static visit(referencer, node) { + const exportReferencer = new ExportVisitor(node, referencer); + exportReferencer.visit(node); + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + // export default A; + // this could be a type or a variable + this.visit(node.declaration); + } + else { + // export const a = 1; + // export something(); + // etc + // these not included in the scope of this visitor as they are all guaranteed to be values or declare variables + } + } + ExportNamedDeclaration(node) { + if (node.source) { + // export ... from 'foo'; + // these are external identifiers so there shouldn't be references or defs + return; + } + if (!node.declaration) { + // export { x }; + this.visitChildren(node); + } + else { + // export const x = 1; + // this is not included in the scope of this visitor as it creates a variable + } + } + ExportSpecifier(node) { + if (node.exportKind === 'type' && + node.local.type === types_1.AST_NODE_TYPES.Identifier) { + // export { type T }; + // type exports can only reference types + // + // we can't let this fall through to the Identifier selector because the exportKind is on this node + // and we don't have access to the `.parent` during scope analysis + this.#referencer.currentScope().referenceType(node.local); + } + else { + this.visit(node.local); + } + } + Identifier(node) { + if (this.#exportNode.exportKind === 'type') { + // export type { T }; + // type exports can only reference types + this.#referencer.currentScope().referenceType(node); + } + else { + this.#referencer.currentScope().referenceDualValueType(node); + } + } +} +exports.ExportVisitor = ExportVisitor; +//# sourceMappingURL=ExportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map new file mode 100644 index 00000000..474e3abd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,uCAAoC;AAOpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,WAAW,CAAa;IACxB,WAAW,CAAa;IAEjC,YAAY,IAAgB,EAAE,UAAsB;QAClD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAgB;QACnD,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7D,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YACxD,oBAAoB;YACpB,qCAAqC;YACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC;aAAM,CAAC;YACN,sBAAsB;YACtB,sBAAsB;YACtB,MAAM;YACN,+GAA+G;QACjH,CAAC;IACH,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,yBAAyB;YACzB,0EAA0E;YAC1E,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,gBAAgB;YAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,sBAAsB;YACtB,6EAA6E;QAC/E,CAAC;IACH,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,IACE,IAAI,CAAC,UAAU,KAAK,MAAM;YAC1B,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAC7C,CAAC;YACD,qBAAqB;YACrB,wCAAwC;YACxC,EAAE;YACF,mGAAmG;YACnG,kEAAkE;YAClE,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAES,UAAU,CAAC,IAAyB;QAC5C,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC3C,qBAAqB;YACrB,wCAAwC;YACxC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts new file mode 100644 index 00000000..bb2f9b44 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ImportVisitor extends Visitor { + #private; + constructor(declaration: TSESTree.ImportDeclaration, referencer: Referencer); + static visit(referencer: Referencer, declaration: TSESTree.ImportDeclaration): void; + protected ImportDefaultSpecifier(node: TSESTree.ImportDefaultSpecifier): void; + protected ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void; + protected ImportSpecifier(node: TSESTree.ImportSpecifier): void; + protected visitImport(id: TSESTree.Identifier, specifier: TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier): void; +} +export { ImportVisitor }; +//# sourceMappingURL=ImportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map new file mode 100644 index 00000000..5eb27d7a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU;IAM3E,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,GACtC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAKP,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAKP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,WAAW,CACnB,EAAE,EAAE,QAAQ,CAAC,UAAU,EACvB,SAAS,EACL,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GAC3B,IAAI;CAQR;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js new file mode 100644 index 00000000..73db475b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportVisitor = void 0; +const definition_1 = require("../definition"); +const Visitor_1 = require("./Visitor"); +class ImportVisitor extends Visitor_1.Visitor { + #declaration; + #referencer; + constructor(declaration, referencer) { + super(referencer); + this.#declaration = declaration; + this.#referencer = referencer; + } + static visit(referencer, declaration) { + const importReferencer = new ImportVisitor(declaration, referencer); + importReferencer.visit(declaration); + } + ImportDefaultSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportNamespaceSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + visitImport(id, specifier) { + this.#referencer + .currentScope() + .defineIdentifier(id, new definition_1.ImportBindingDefinition(id, specifier, this.#declaration)); + } +} +exports.ImportVisitor = ImportVisitor; +//# sourceMappingURL=ImportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map new file mode 100644 index 00000000..f7a18a65 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":";;;AAIA,8CAAwD;AACxD,uCAAoC;AAEpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,YAAY,CAA6B;IACzC,WAAW,CAAa;IAEjC,YAAY,WAAuC,EAAE,UAAsB;QACzE,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,WAAuC;QAEvC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACpE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,WAAW,CACnB,EAAuB,EACvB,SAG4B;QAE5B,IAAI,CAAC,WAAW;aACb,YAAY,EAAE;aACd,gBAAgB,CACf,EAAE,EACF,IAAI,oCAAuB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC9D,CAAC;IACN,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts new file mode 100644 index 00000000..63b8a0b0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { + assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[]; + rest: boolean; + topLevel: boolean; +}) => void; +type PatternVisitorOptions = VisitorOptions; +declare class PatternVisitor extends VisitorBase { + #private; + readonly rightHandNodes: TSESTree.Node[]; + constructor(options: PatternVisitorOptions, rootPattern: TSESTree.Node, callback: PatternVisitorCallback); + static isPattern(node: TSESTree.Node): node is TSESTree.ArrayPattern | TSESTree.AssignmentPattern | TSESTree.Identifier | TSESTree.ObjectPattern | TSESTree.RestElement | TSESTree.SpreadElement; + protected ArrayExpression(node: TSESTree.ArrayExpression): void; + protected ArrayPattern(pattern: TSESTree.ArrayPattern): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected AssignmentPattern(pattern: TSESTree.AssignmentPattern): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected Decorator(): void; + protected Identifier(pattern: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected Property(property: TSESTree.Property): void; + protected RestElement(pattern: TSESTree.RestElement): void; + protected SpreadElement(node: TSESTree.SpreadElement): void; + protected TSTypeAnnotation(): void; +} +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, }; +//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map new file mode 100644 index 00000000..58c2a660 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,WAAW,EAAE,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAC5E,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,KACE,IAAI,CAAC;AAEV,KAAK,qBAAqB,GAAG,cAAc,CAAC;AAC5C,cAAM,cAAe,SAAQ,WAAW;;IAStC,SAAgB,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAM;gBAGnD,OAAO,EAAE,qBAAqB,EAC9B,WAAW,EAAE,QAAQ,CAAC,IAAI,EAC1B,QAAQ,EAAE,sBAAsB;WAOpB,SAAS,CACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,IAAI,IACH,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,UAAU,GACnB,QAAQ,CAAC,aAAa,GACtB,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,aAAa;IAa1B,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,YAAY,GAAG,IAAI;IAM5D,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,oBAAoB,GAAG,IAAI;IAOzE,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAOtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,GAAG,IAAI;IAQ7D,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUxD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAUjE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI;IAYrD,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAM1D,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAI3D,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC;AAED,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js new file mode 100644 index 00000000..85751e8a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PatternVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const VisitorBase_1 = require("./VisitorBase"); +class PatternVisitor extends VisitorBase_1.VisitorBase { + #assignments = []; + #callback; + #restElements = []; + #rootPattern; + rightHandNodes = []; + constructor(options, rootPattern, callback) { + super(options); + this.#rootPattern = rootPattern; + this.#callback = callback; + } + static isPattern(node) { + const nodeType = node.type; + return (nodeType === types_1.AST_NODE_TYPES.Identifier || + nodeType === types_1.AST_NODE_TYPES.ObjectPattern || + nodeType === types_1.AST_NODE_TYPES.ArrayPattern || + nodeType === types_1.AST_NODE_TYPES.SpreadElement || + nodeType === types_1.AST_NODE_TYPES.RestElement || + nodeType === types_1.AST_NODE_TYPES.AssignmentPattern); + } + ArrayExpression(node) { + node.elements.forEach(this.visit, this); + } + ArrayPattern(pattern) { + for (const element of pattern.elements) { + this.visit(element); + } + } + AssignmentExpression(node) { + this.#assignments.push(node); + this.visit(node.left); + this.rightHandNodes.push(node.right); + this.#assignments.pop(); + } + AssignmentPattern(pattern) { + this.#assignments.push(pattern); + this.visit(pattern.left); + this.rightHandNodes.push(pattern.right); + this.#assignments.pop(); + } + CallExpression(node) { + // arguments are right hand nodes. + node.arguments.forEach(a => { + this.rightHandNodes.push(a); + }); + this.visit(node.callee); + } + Decorator() { + // don't visit any decorators when exploring a pattern + } + Identifier(pattern) { + const lastRestElement = this.#restElements.at(-1); + this.#callback(pattern, { + assignments: this.#assignments, + rest: lastRestElement?.argument === pattern, + topLevel: pattern === this.#rootPattern, + }); + } + MemberExpression(node) { + // Computed property's key is a right hand node. + if (node.computed) { + this.rightHandNodes.push(node.property); + } + // the object is only read, write to its property. + this.rightHandNodes.push(node.object); + } + Property(property) { + // Computed property's key is a right hand node. + if (property.computed) { + this.rightHandNodes.push(property.key); + } + // If it's shorthand, its key is same as its value. + // If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern). + // If it's not shorthand, the name of new variable is its value's. + this.visit(property.value); + } + RestElement(pattern) { + this.#restElements.push(pattern); + this.visit(pattern.argument); + this.#restElements.pop(); + } + SpreadElement(node) { + this.visit(node.argument); + } + TSTypeAnnotation() { + // we don't want to visit types + } +} +exports.PatternVisitor = PatternVisitor; +//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map new file mode 100644 index 00000000..03e66cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,+CAA4C;AAY5C,MAAM,cAAe,SAAQ,yBAAW;IAC7B,YAAY,GAGf,EAAE,CAAC;IACA,SAAS,CAAyB;IAClC,aAAa,GAA2B,EAAE,CAAC;IAC3C,YAAY,CAAgB;IAErB,cAAc,GAAoB,EAAE,CAAC;IAErD,YACE,OAA8B,EAC9B,WAA0B,EAC1B,QAAgC;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,SAAS,CACrB,IAAmB;QAQnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,OAAO,CACL,QAAQ,KAAK,sBAAc,CAAC,UAAU;YACtC,QAAQ,KAAK,sBAAc,CA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AAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,+BAA+B;IACjC,CAAC;CACF;AAGC,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts new file mode 100644 index 00000000..1ffe72da --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts @@ -0,0 +1,89 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { Variable } from '../variable'; +declare enum ReferenceFlag { + Read = 1, + Write = 2, + ReadWrite = 3 +} +interface ReferenceImplicitGlobal { + node: TSESTree.Node; + pattern: TSESTree.BindingName; + ref?: Reference; +} +declare enum ReferenceTypeFlag { + Value = 1, + Type = 2 +} +/** + * A Reference represents a single occurrence of an identifier in code. + */ +declare class Reference { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * Reference to the enclosing Scope. + * @public + */ + readonly from: Scope; + /** + * Identifier syntax node. + * @public + */ + readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + readonly init?: boolean; + readonly maybeImplicitGlobal?: ReferenceImplicitGlobal | null; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved: Variable | null; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + readonly writeExpr?: TSESTree.Node | null; + constructor(identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag); + /** + * True if this reference can reference types + */ + get isTypeReference(): boolean; + /** + * True if this reference can reference values + */ + get isValueReference(): boolean; + /** + * Whether the reference is writeable. + * @public + */ + isWrite(): boolean; + /** + * Whether the reference is readable. + * @public + */ + isRead(): boolean; + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly(): boolean; + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly(): boolean; + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite(): boolean; +} +export { Reference, ReferenceFlag, type ReferenceImplicitGlobal, ReferenceTypeFlag, }; +//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map new file mode 100644 index 00000000..093cc331 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,aAAK,aAAa;IAChB,IAAI,IAAM;IACV,KAAK,IAAM;IACX,SAAS,IAAM;CAChB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAID,aAAK,iBAAiB;IACpB,KAAK,IAAM;IACX,IAAI,IAAM;CACX;AAED;;GAEG;AACH,cAAM,SAAS;;IACb;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAO1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC;IAEzE;;;OAGG;IACH,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAE/B,SAAgB,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAErE;;;OAGG;IACI,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,SAAgB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;gBAQ/C,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EACxD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,aAAa,EACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAChC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,CAAC,EAAE,OAAO,EACd,aAAa,oBAA0B;IAgBzC;;OAEG;IACH,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;IAED;;;OAGG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;;OAGG;IACI,UAAU,IAAI,OAAO;IAI5B;;;OAGG;IACI,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,WAAW,IAAI,OAAO;CAG9B;AAED,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,uBAAuB,EAC5B,iBAAiB,GAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js new file mode 100644 index 00000000..1739c0bb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js @@ -0,0 +1,120 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferenceTypeFlag = exports.ReferenceFlag = exports.Reference = void 0; +const ID_1 = require("../ID"); +var ReferenceFlag; +(function (ReferenceFlag) { + ReferenceFlag[ReferenceFlag["Read"] = 1] = "Read"; + ReferenceFlag[ReferenceFlag["Write"] = 2] = "Write"; + ReferenceFlag[ReferenceFlag["ReadWrite"] = 3] = "ReadWrite"; +})(ReferenceFlag || (exports.ReferenceFlag = ReferenceFlag = {})); +const generator = (0, ID_1.createIdGenerator)(); +var ReferenceTypeFlag; +(function (ReferenceTypeFlag) { + ReferenceTypeFlag[ReferenceTypeFlag["Value"] = 1] = "Value"; + ReferenceTypeFlag[ReferenceTypeFlag["Type"] = 2] = "Type"; +})(ReferenceTypeFlag || (exports.ReferenceTypeFlag = ReferenceTypeFlag = {})); +/** + * A Reference represents a single occurrence of an identifier in code. + */ +class Reference { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The read-write mode of the reference. + */ + #flag; + /** + * Reference to the enclosing Scope. + * @public + */ + from; + /** + * Identifier syntax node. + * @public + */ + identifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + init; + maybeImplicitGlobal; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + writeExpr; + /** + * In some cases, a reference may be a type, value or both a type and value reference. + */ + #referenceType; + constructor(identifier, scope, flag, writeExpr, maybeImplicitGlobal, init, referenceType = ReferenceTypeFlag.Value) { + this.identifier = identifier; + this.from = scope; + this.resolved = null; + this.#flag = flag; + if (this.isWrite()) { + this.writeExpr = writeExpr; + this.init = init; + } + this.maybeImplicitGlobal = maybeImplicitGlobal; + this.#referenceType = referenceType; + } + /** + * True if this reference can reference types + */ + get isTypeReference() { + return (this.#referenceType & ReferenceTypeFlag.Type) !== 0; + } + /** + * True if this reference can reference values + */ + get isValueReference() { + return (this.#referenceType & ReferenceTypeFlag.Value) !== 0; + } + /** + * Whether the reference is writeable. + * @public + */ + isWrite() { + return !!(this.#flag & ReferenceFlag.Write); + } + /** + * Whether the reference is readable. + * @public + */ + isRead() { + return !!(this.#flag & ReferenceFlag.Read); + } + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly() { + return this.#flag === ReferenceFlag.Read; + } + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly() { + return this.#flag === ReferenceFlag.Write; + } + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite() { + return this.#flag === ReferenceFlag.ReadWrite; + } +} +exports.Reference = Reference; +//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map new file mode 100644 index 00000000..0af1ca43 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":";;;AAKA,8BAA0C;AAE1C,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,iDAAU,CAAA;IACV,mDAAW,CAAA;IACX,2DAAe,CAAA;AACjB,CAAC,EAJI,aAAa,6BAAb,aAAa,QAIjB;AAQD,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,IAAK,iBAGJ;AAHD,WAAK,iBAAiB;IACpB,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EAHI,iBAAiB,iCAAjB,iBAAiB,QAGrB;AAED;;GAEG;AACH,MAAM,SAAS;IACb;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;OAEG;IACM,KAAK,CAAgB;IAE9B;;;OAGG;IACa,IAAI,CAAQ;IAE5B;;;OAGG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,UAAU;QACf,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,IAAI,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,SAAS,CAAC;IAChD,CAAC;CACF;AAGC,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts new file mode 100644 index 00000000..d7799ca2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts @@ -0,0 +1,87 @@ +import type { Lib, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { ScopeManager } from '../ScopeManager'; +import type { ReferenceImplicitGlobal } from './Reference'; +import type { VisitorOptions } from './Visitor'; +import { Visitor } from './Visitor'; +interface ReferencerOptions extends VisitorOptions { + jsxFragmentName: string | null; + jsxPragma: string | null; + lib: Lib[]; +} +declare class Referencer extends Visitor { + #private; + readonly scopeManager: ScopeManager; + constructor(options: ReferencerOptions, scopeManager: ScopeManager); + private populateGlobalsFromLib; + close(node: TSESTree.Node): void; + currentScope(): Scope; + currentScope(throwOnNull: true): Scope | null; + referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void; + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + private referenceInSomeUpperScope; + private referenceJsxFragment; + private referenceJsxPragma; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void; + protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitProperty(node: TSESTree.Property): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion): void; + protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected BlockStatement(node: TSESTree.BlockStatement): void; + protected BreakStatement(): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected CatchClause(node: TSESTree.CatchClause): void; + protected ClassDeclaration(node: TSESTree.ClassDeclaration): void; + protected ClassExpression(node: TSESTree.ClassExpression): void; + protected ContinueStatement(): void; + protected ExportAllDeclaration(): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ForInStatement(node: TSESTree.ForInStatement): void; + protected ForOfStatement(node: TSESTree.ForOfStatement): void; + protected ForStatement(node: TSESTree.ForStatement): void; + protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void; + protected FunctionExpression(node: TSESTree.FunctionExpression): void; + protected Identifier(node: TSESTree.Identifier): void; + protected ImportAttribute(): void; + protected ImportDeclaration(node: TSESTree.ImportDeclaration): void; + protected JSXAttribute(node: TSESTree.JSXAttribute): void; + protected JSXClosingElement(): void; + protected JSXFragment(node: TSESTree.JSXFragment): void; + protected JSXIdentifier(node: TSESTree.JSXIdentifier): void; + protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void; + protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void; + protected LabeledStatement(node: TSESTree.LabeledStatement): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected MetaProperty(): void; + protected NewExpression(node: TSESTree.NewExpression): void; + protected PrivateIdentifier(): void; + protected Program(node: TSESTree.Program): void; + protected Property(node: TSESTree.Property): void; + protected SwitchStatement(node: TSESTree.SwitchStatement): void; + protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void; + protected TSAsExpression(node: TSESTree.TSAsExpression): void; + protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void; + protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void; + protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void; + protected TSExportAssignment(node: TSESTree.TSExportAssignment): void; + protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void; + protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void; + protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void; + protected UpdateExpression(node: TSESTree.UpdateExpression): void; + protected VariableDeclaration(node: TSESTree.VariableDeclaration): void; + protected WithStatement(node: TSESTree.WithStatement): void; + private visitExpressionTarget; +} +export { Referencer, type ReferencerOptions }; +//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map new file mode 100644 index 00000000..30658571 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":"A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sB,GACpC,IAAI;IAIP,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAevE,SAAS,CAAC,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,qBAAqB,GAAG,IAAI;IAI3E,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAIP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAgBjE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAoCvE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAW3D,OAAO,CAAC,qBAAqB;CAc9B;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js new file mode 100644 index 00000000..381cd44b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js @@ -0,0 +1,540 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const lib_1 = require("../lib"); +const ClassVisitor_1 = require("./ClassVisitor"); +const ExportVisitor_1 = require("./ExportVisitor"); +const ImportVisitor_1 = require("./ImportVisitor"); +const PatternVisitor_1 = require("./PatternVisitor"); +const Reference_1 = require("./Reference"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +// Referencing variables and creating bindings. +class Referencer extends Visitor_1.Visitor { + #hasReferencedJsxFactory = false; + #hasReferencedJsxFragmentFactory = false; + #jsxFragmentName; + #jsxPragma; + #lib; + scopeManager; + constructor(options, scopeManager) { + super(options); + this.scopeManager = scopeManager; + this.#jsxPragma = options.jsxPragma; + this.#jsxFragmentName = options.jsxFragmentName; + this.#lib = options.lib; + } + populateGlobalsFromLib(globalScope) { + for (const lib of this.#lib) { + const variables = lib_1.lib[lib]; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + /* istanbul ignore if */ if (!variables) { + throw new Error(`Invalid value for lib provided: ${lib}`); + } + for (const [name, variable] of Object.entries(variables)) { + globalScope.defineImplicitVariable(name, variable); + } + } + // for const assertions (`{} as const` / `{}`) + globalScope.defineImplicitVariable('const', { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + }); + } + close(node) { + while (this.currentScope(true) && node === this.currentScope().block) { + this.scopeManager.currentScope = this.currentScope().close(this.scopeManager); + } + } + currentScope(dontThrowOnNull) { + if (!dontThrowOnNull) { + (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa'); + } + return this.scopeManager.currentScope; + } + referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { + assignments.forEach(assignment => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, assignment.right, maybeImplicitGlobal, init); + }); + } + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + referenceInSomeUpperScope(name) { + let scope = this.scopeManager.currentScope; + while (scope) { + const variable = scope.set.get(name); + if (!variable) { + scope = scope.upper; + continue; + } + scope.referenceValue(variable.identifiers[0]); + return true; + } + return false; + } + referenceJsxFragment() { + if (this.#jsxFragmentName == null || + this.#hasReferencedJsxFragmentFactory) { + return; + } + this.#hasReferencedJsxFragmentFactory = this.referenceInSomeUpperScope(this.#jsxFragmentName); + } + referenceJsxPragma() { + if (this.#jsxPragma == null || this.#hasReferencedJsxFactory) { + return; + } + this.#hasReferencedJsxFactory = this.referenceInSomeUpperScope(this.#jsxPragma); + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + ClassVisitor_1.ClassVisitor.visit(this, node); + } + visitForIn(node) { + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.left.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration) { + this.visit(node.left); + this.visitPattern(node.left.declarations[0].id, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, null, true); + }); + } + else { + this.visitPattern(node.left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + this.visit(node.right); + this.visit(node.body); + this.close(node); + } + visitFunction(node) { + // FunctionDeclaration name is defined in upper scope + // NOTE: Not referring variableScope. It is intended. + // Since + // in ES5, FunctionDeclaration should be in FunctionBody. + // in ES6, FunctionDeclaration should be block scoped. + if (node.type === types_1.AST_NODE_TYPES.FunctionExpression) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.scopeManager.nestFunctionExpressionNameScope(node); + } + } + else if (node.id) { + // id is defined in upper scope + this.currentScope().defineIdentifier(node.id, new definition_1.FunctionNameDefinition(node.id, node)); + } + // Consider this function is in the MethodDefinition. + this.scopeManager.nestFunctionScope(node, false); + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + // In TypeScript there are a number of function-like constructs which have no body, + // so check it exists before traversing + if (node.body) { + // Skip BlockStatement to prevent creating BlockStatement scope. + if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { + this.visitChildren(node.body); + } + else { + this.visit(node.body); + } + } + this.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + break; + } + } + visitProperty(node) { + if (node.computed) { + this.visit(node.key); + } + this.visit(node.value); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this, node); + } + visitTypeAssertion(node) { + this.visit(node.expression); + this.visitType(node.typeAnnotation); + } + ///////////////////// + // Visit selectors // + ///////////////////// + ArrowFunctionExpression(node) { + this.visitFunction(node); + } + AssignmentExpression(node) { + const left = this.visitExpressionTarget(node.left); + if (PatternVisitor_1.PatternVisitor.isPattern(left)) { + if (node.operator === '=') { + this.visitPattern(left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + else if (left.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().referenceValue(left, Reference_1.ReferenceFlag.ReadWrite, node.right); + } + } + else { + this.visit(left); + } + this.visit(node.right); + } + BlockStatement(node) { + this.scopeManager.nestBlockScope(node); + this.visitChildren(node); + this.close(node); + } + BreakStatement() { + // don't reference the break statement's label + } + CallExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + CatchClause(node) { + this.scopeManager.nestCatchScope(node); + if (node.param) { + const param = node.param; + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + } + this.visit(node.body); + this.close(node); + } + ClassDeclaration(node) { + this.visitClass(node); + } + ClassExpression(node) { + this.visitClass(node); + } + ContinueStatement() { + // don't reference the continue statement's label + } + ExportAllDeclaration() { + // this defines no local variables + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + else { + this.visit(node.declaration); + } + } + ExportNamedDeclaration(node) { + if (node.declaration) { + this.visit(node.declaration); + } + else { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + } + ForInStatement(node) { + this.visitForIn(node); + } + ForOfStatement(node) { + this.visitForIn(node); + } + ForStatement(node) { + // Create ForStatement declaration. + // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is + // a static analyzer, we only generate one scope for ForStatement. + if (node.init && + node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.init.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + this.visitChildren(node); + this.close(node); + } + FunctionDeclaration(node) { + this.visitFunction(node); + } + FunctionExpression(node) { + this.visitFunction(node); + } + Identifier(node) { + this.currentScope().referenceValue(node); + this.visitType(node.typeAnnotation); + } + ImportAttribute() { + // import assertions are module metadata and thus have no variables to reference + } + ImportDeclaration(node) { + (0, assert_1.assert)(this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); + ImportVisitor_1.ImportVisitor.visit(this, node); + } + JSXAttribute(node) { + this.visit(node.value); + } + JSXClosingElement() { + // should not be counted as a reference + } + JSXFragment(node) { + this.referenceJsxPragma(); + this.referenceJsxFragment(); + this.visitChildren(node); + } + JSXIdentifier(node) { + this.currentScope().referenceValue(node); + } + JSXMemberExpression(node) { + if (node.object.type !== types_1.AST_NODE_TYPES.JSXIdentifier || + node.object.name !== 'this') { + this.visit(node.object); + } + // we don't ever reference the property as it's always going to be a property on the thing + } + JSXOpeningElement(node) { + this.referenceJsxPragma(); + if (node.name.type === types_1.AST_NODE_TYPES.JSXIdentifier) { + if (node.name.name[0].toUpperCase() === node.name.name[0] || + node.name.name === 'this') { + // lower cased component names are always treated as "intrinsic" names, and are converted to a string, + // not a variable by JSX transforms: + //
=> React.createElement("div", null) + // the only case we want to visit a lower-cased component has its name as "this", + this.visit(node.name); + } + } + else { + this.visit(node.name); + } + this.visitType(node.typeArguments); + for (const attr of node.attributes) { + this.visit(attr); + } + } + LabeledStatement(node) { + this.visit(node.body); + } + MemberExpression(node) { + this.visit(node.object); + if (node.computed) { + this.visit(node.property); + } + } + MetaProperty() { + // meta properties all builtin globals + } + NewExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + PrivateIdentifier() { + // private identifiers are members on classes and thus have no variables to reference + } + Program(node) { + const globalScope = this.scopeManager.nestGlobalScope(node); + this.populateGlobalsFromLib(globalScope); + if (this.scopeManager.isGlobalReturn()) { + // Force strictness of GlobalScope to false when using node.js scope. + this.currentScope().isStrict = false; + this.scopeManager.nestFunctionScope(node, false); + } + if (this.scopeManager.isModule()) { + this.scopeManager.nestModuleScope(node); + } + if (this.scopeManager.isImpliedStrict()) { + this.currentScope().isStrict = true; + } + this.visitChildren(node); + this.close(node); + } + Property(node) { + this.visitProperty(node); + } + SwitchStatement(node) { + this.visit(node.discriminant); + this.scopeManager.nestSwitchScope(node); + for (const switchCase of node.cases) { + this.visit(switchCase); + } + this.close(node); + } + TaggedTemplateExpression(node) { + this.visit(node.tag); + this.visit(node.quasi); + this.visitType(node.typeArguments); + } + TSAsExpression(node) { + this.visitTypeAssertion(node); + } + TSDeclareFunction(node) { + this.visitFunction(node); + } + TSEmptyBodyFunctionExpression(node) { + this.visitFunction(node); + } + TSEnumDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); + // enum members can be referenced within the enum body + this.scopeManager.nestTSEnumScope(node); + for (const member of node.body.members) { + // TS resolves literal named members to be actual names + // enum Foo { + // 'a' = 1, + // b = a, // this references the 'a' member + // } + if (member.id.type === types_1.AST_NODE_TYPES.Literal && + typeof member.id.value === 'string') { + const name = member.id; + this.currentScope().defineLiteralIdentifier(name, new definition_1.TSEnumMemberDefinition(name, member)); + } + else if (!member.computed && + member.id.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().defineIdentifier(member.id, new definition_1.TSEnumMemberDefinition(member.id, member)); + } + this.visit(member.initializer); + } + this.close(node); + } + TSExportAssignment(node) { + if (node.expression.type === types_1.AST_NODE_TYPES.Identifier) { + // this is a special case - you can `export = T` where `T` is a type OR a + // value however `T[U]` is illegal when `T` is a type and `T.U` is illegal + // when `T.U` is a type + // i.e. if the expression is JUST an Identifier - it could be either ref + // kind; otherwise the standard rules apply + this.currentScope().referenceDualValueType(node.expression); + } + else { + this.visit(node.expression); + } + } + TSImportEqualsDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.ImportBindingDefinition(node.id, node, node)); + if (node.moduleReference.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let moduleIdentifier = node.moduleReference.left; + while (moduleIdentifier.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + moduleIdentifier = moduleIdentifier.left; + } + this.visit(moduleIdentifier); + } + else { + this.visit(node.moduleReference); + } + } + TSInstantiationExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + TSInterfaceDeclaration(node) { + this.visitType(node); + } + TSModuleDeclaration(node) { + if (node.id.type === types_1.AST_NODE_TYPES.Identifier && node.kind !== 'global') { + this.currentScope().defineIdentifier(node.id, new definition_1.TSModuleNameDefinition(node.id, node)); + } + this.scopeManager.nestTSModuleScope(node); + this.visit(node.body); + this.close(node); + } + TSSatisfiesExpression(node) { + this.visitTypeAssertion(node); + } + TSTypeAliasDeclaration(node) { + this.visitType(node); + } + TSTypeAssertion(node) { + this.visitTypeAssertion(node); + } + UpdateExpression(node) { + const argument = this.visitExpressionTarget(node.argument); + if (PatternVisitor_1.PatternVisitor.isPattern(argument)) { + this.visitPattern(argument, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.ReadWrite, null); + }); + } + else { + this.visitChildren(node); + } + } + VariableDeclaration(node) { + const variableTargetScope = node.kind === 'var' + ? this.currentScope().variableScope + : this.currentScope(); + for (const decl of node.declarations) { + const init = decl.init; + this.visitPattern(decl.id, (pattern, info) => { + variableTargetScope.defineIdentifier(pattern, new definition_1.VariableDefinition(pattern, decl, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + if (init) { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, init, null, true); + } + }, { processRightHandNodes: true }); + this.visit(decl.init); + this.visitType(decl.id.typeAnnotation); + } + } + WithStatement(node) { + this.visit(node.object); + // Then nest scope for WithStatement. + this.scopeManager.nestWithScope(node); + this.visit(node.body); + this.close(node); + } + visitExpressionTarget(left) { + switch (left.type) { + case types_1.AST_NODE_TYPES.TSAsExpression: + case types_1.AST_NODE_TYPES.TSTypeAssertion: + // explicitly visit the type annotation + this.visitType(left.typeAnnotation); + // intentional fallthrough + case types_1.AST_NODE_TYPES.TSNonNullExpression: + // unwrap the expression + left = left.expression; + } + return left; + } +} +exports.Referencer = Referencer; +//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map new file mode 100644 index 00000000..5281caf1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAm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EtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEO,qBAAqB,CAAC,IAAmB;QAC/C,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,sBAAc,CAAC,cAAc,CAAC;YACnC,KAAK,sBAAc,CAAC,eAAe;gBACjC,uCAAuC;gBACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACtC,0BAA0B;YAC1B,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,wBAAwB;gBACxB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts new file mode 100644 index 00000000..6d37e6a4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts @@ -0,0 +1,33 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class TypeVisitor extends Visitor { + #private; + constructor(referencer: Referencer); + static visit(referencer: Referencer, node: TSESTree.Node): void; + protected visitFunctionType(node: TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSFunctionType | TSESTree.TSMethodSignature): void; + protected visitPropertyKey(node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected TSCallSignatureDeclaration(node: TSESTree.TSCallSignatureDeclaration): void; + protected TSConditionalType(node: TSESTree.TSConditionalType): void; + protected TSConstructorType(node: TSESTree.TSConstructorType): void; + protected TSConstructSignatureDeclaration(node: TSESTree.TSConstructSignatureDeclaration): void; + protected TSFunctionType(node: TSESTree.TSFunctionType): void; + protected TSImportType(node: TSESTree.TSImportType): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; + protected TSInferType(node: TSESTree.TSInferType): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSMappedType(node: TSESTree.TSMappedType): void; + protected TSMethodSignature(node: TSESTree.TSMethodSignature): void; + protected TSNamedTupleMember(node: TSESTree.TSNamedTupleMember): void; + protected TSPropertySignature(node: TSESTree.TSPropertySignature): void; + protected TSQualifiedName(node: TSESTree.TSQualifiedName): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeParameter(node: TSESTree.TSTypeParameter): void; + protected TSTypePredicate(node: TSESTree.TSTypePredicate): void; + protected TSTypeAnnotation(node: TSESTree.TSTypeAnnotation): void; + protected TSTypeQuery(node: TSESTree.TSTypeQuery): void; +} +export { TypeVisitor }; +//# sourceMappingURL=TypeVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map new file mode 100644 index 00000000..9e2402d3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,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AAC,WAAW,GAAG,IAAI;IAwCvD,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAmBP,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,GAAG,IAAI;IAYzD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAKnE,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAKrE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAKvE,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAkBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAS/D,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAQ/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAKjE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;CAwBxD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js new file mode 100644 index 00000000..dcb28e05 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js @@ -0,0 +1,222 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const scope_1 = require("../scope"); +const Visitor_1 = require("./Visitor"); +class TypeVisitor extends Visitor_1.Visitor { + #referencer; + constructor(referencer) { + super(referencer); + this.#referencer = referencer; + } + static visit(referencer, node) { + const typeReferencer = new TypeVisitor(referencer); + typeReferencer.visit(node); + } + /////////////////// + // Visit helpers // + /////////////////// + visitFunctionType(node) { + // arguments and type parameters can only be referenced from within the function + this.#referencer.scopeManager.nestFunctionTypeScope(node); + this.visit(node.typeParameters); + for (const param of node.params) { + let didVisitAnnotation = false; + this.visitPattern(param, (pattern, info) => { + // a parameter name creates a value type variable which can be referenced later via typeof arg + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + if (pattern.typeAnnotation) { + this.visit(pattern.typeAnnotation); + didVisitAnnotation = true; + } + }); + // there are a few special cases where the type annotation is owned by the parameter, not the pattern + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (!didVisitAnnotation && 'typeAnnotation' in param) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.returnType); + this.#referencer.close(node); + } + visitPropertyKey(node) { + if (!node.computed) { + return; + } + // computed members are treated as value references, and TS expects they have a literal type + this.#referencer.visit(node.key); + } + ///////////////////// + // Visit selectors // + ///////////////////// + Identifier(node) { + this.#referencer.currentScope().referenceType(node); + } + MemberExpression(node) { + this.visit(node.object); + // don't visit the property + } + TSCallSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSConditionalType(node) { + // conditional types can define inferred type parameters + // which are only accessible from inside the conditional parameter + this.#referencer.scopeManager.nestConditionalTypeScope(node); + // type parameters inferred in the condition clause are not accessible within the false branch + this.visitChildren(node, ['falseType']); + this.#referencer.close(node); + this.visit(node.falseType); + } + TSConstructorType(node) { + this.visitFunctionType(node); + } + TSConstructSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSFunctionType(node) { + this.visitFunctionType(node); + } + TSImportType(node) { + // the TS parser allows any type to be the parameter, but it's a syntax error - so we can ignore it + this.visit(node.typeArguments); + // the qualifier is just part of a standard EntityName, so it should not be visited + } + TSIndexSignature(node) { + for (const param of node.parameters) { + if (param.type === types_1.AST_NODE_TYPES.Identifier) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.typeAnnotation); + } + TSInferType(node) { + const typeParameter = node.typeParameter; + let scope = this.#referencer.currentScope(); + /* + In cases where there is a sub-type scope created within a conditional type, then the generic should be defined in the + conditional type's scope, not the child type scope. + If we define it within the child type's scope then it won't be able to be referenced outside the child type + */ + if (scope.type === scope_1.ScopeType.functionType || + scope.type === scope_1.ScopeType.mappedType) { + // search up the scope tree to figure out if we're in a nested type scope + let currentScope = scope.upper; + while (currentScope) { + if (currentScope.type === scope_1.ScopeType.functionType || + currentScope.type === scope_1.ScopeType.mappedType) { + // ensure valid type parents only + currentScope = currentScope.upper; + continue; + } + if (currentScope.type === scope_1.ScopeType.conditionalType) { + scope = currentScope; + break; + } + break; + } + } + scope.defineIdentifier(typeParameter.name, new definition_1.TypeDefinition(typeParameter.name, typeParameter)); + this.visit(typeParameter.constraint); + } + TSInterfaceDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + node.extends.forEach(this.visit, this); + this.visit(node.body); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSMappedType(node) { + // mapped types key can only be referenced within their return value + this.#referencer.scopeManager.nestMappedTypeScope(node); + this.#referencer + .currentScope() + .defineIdentifier(node.key, new definition_1.TypeDefinition(node.key, node)); + this.visit(node.constraint); + this.visit(node.nameType); + this.visit(node.typeAnnotation); + this.#referencer.close(node); + } + TSMethodSignature(node) { + this.visitPropertyKey(node); + this.visitFunctionType(node); + } + TSNamedTupleMember(node) { + this.visit(node.elementType); + // we don't visit the label as the label only exists for the purposes of documentation + } + TSPropertySignature(node) { + this.visitPropertyKey(node); + this.visit(node.typeAnnotation); + } + TSQualifiedName(node) { + this.visit(node.left); + // we don't visit the right as it a name on the thing, not a name to reference + } + TSTypeAliasDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + this.visit(node.typeAnnotation); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSTypeParameter(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.name, new definition_1.TypeDefinition(node.name, node)); + this.visit(node.constraint); + this.visit(node.default); + } + TSTypePredicate(node) { + if (node.parameterName.type !== types_1.AST_NODE_TYPES.TSThisType) { + this.#referencer.currentScope().referenceValue(node.parameterName); + } + this.visit(node.typeAnnotation); + } + // a type query `typeof foo` is a special case that references a _non-type_ variable, + TSTypeAnnotation(node) { + // check + this.visitChildren(node); + } + TSTypeQuery(node) { + let entityName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let iter = node.exprName; + while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + iter = iter.left; + } + entityName = iter.left; + } + else { + entityName = node.exprName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSImportType) { + this.visit(node.exprName); + } + } + if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { + this.#referencer.currentScope().referenceValue(entityName); + } + this.visit(node.typeArguments); + } +} +exports.TypeVisitor = TypeVisitor; +//# sourceMappingURL=TypeVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map new file mode 100644 index 00000000..00905e04 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.js","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAK1D,8CAAoE;AACpE,oCAAqC;AACrC,uCAAoC;AAEpC,MAAM,WAAY,SAAQ,iBAAO;IACtB,WAAW,CAAa;IAEjC,YAAY,UAAsB;QAChC,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAmB;QACtD,MAAM,cAAc,GAAG,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;QACnD,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IAET,iBAAiB,CACzB,IAK8B;QAE9B,gFAAgF;QAChF,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEhC,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChC,IAAI,kBAAkB,GAAG,KAAK,CAAC;YAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;gBACzC,8FAA8F;gBAC9F,IAAI,CAAC,WAAW;qBACb,YAAY,EAAE;qBACd,gBAAgB,CACf,OAAO,EACP,IAAI,gCAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;gBAEJ,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;oBAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;oBACnC,kBAAkB,GAAG,IAAI,CAAC;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,CAAC;YACnB,CAAC;YACD,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC;YAE3B,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY,EAAE,CAAC;gBACvD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts new file mode 100644 index 00000000..d0a474a6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { PatternVisitorCallback, PatternVisitorOptions } from './PatternVisitor'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +interface VisitPatternOptions extends PatternVisitorOptions { + processRightHandNodes?: boolean; +} +declare class Visitor extends VisitorBase { + #private; + constructor(optionsOrVisitor: Visitor | VisitorOptions); + protected visitPattern(node: TSESTree.Node, callback: PatternVisitorCallback, options?: VisitPatternOptions): void; +} +export { Visitor }; +export { VisitorBase, type VisitorOptions } from './VisitorBase'; +//# sourceMappingURL=Visitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map new file mode 100644 index 00000000..1dc951ce --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AACD,cAAM,OAAQ,SAAQ,WAAW;;gBAEnB,gBAAgB,EAAE,OAAO,GAAG,cAAc;IAatD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,mBAAsD,GAC9D,IAAI;CAWR;AAED,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js new file mode 100644 index 00000000..5bc200f3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = exports.Visitor = void 0; +const PatternVisitor_1 = require("./PatternVisitor"); +const VisitorBase_1 = require("./VisitorBase"); +class Visitor extends VisitorBase_1.VisitorBase { + #options; + constructor(optionsOrVisitor) { + super(optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor); + this.#options = + optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor; + } + visitPattern(node, callback, options = { processRightHandNodes: false }) { + // Call the callback at left hand identifier nodes, and Collect right hand nodes. + const visitor = new PatternVisitor_1.PatternVisitor(this.#options, node, callback); + visitor.visit(node); + // Process the right hand nodes recursively. + if (options.processRightHandNodes) { + visitor.rightHandNodes.forEach(this.visit, this); + } + } +} +exports.Visitor = Visitor; +var VisitorBase_2 = require("./VisitorBase"); +Object.defineProperty(exports, "VisitorBase", { enumerable: true, get: function () { return VisitorBase_2.VisitorBase; } }); +//# sourceMappingURL=Visitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map new file mode 100644 index 00000000..0e4878ce --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":";;;AAQA,qDAAkD;AAClD,+CAA4C;AAK5C,MAAM,OAAQ,SAAQ,yBAAW;IACtB,QAAQ,CAAiB;IAClC,YAAY,gBAA0C;QACpD,KAAK,CACH,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;YAC3B,CAAC,CAAC,gBAAgB,CACrB,CAAC;QAEF,IAAI,CAAC,QAAQ;YACX,gBAAgB,YAAY,OAAO;gBACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;gBAC3B,CAAC,CAAC,gBAAgB,CAAC;IACzB,CAAC;IAES,YAAY,CACpB,IAAmB,EACnB,QAAgC,EAChC,UAA+B,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAE/D,iFAAiF;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAElE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpB,4CAA4C;QAC5C,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAClC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AAEQ,0BAAO;AAEhB,6CAAiE;AAAxD,0GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts new file mode 100644 index 00000000..1a4883b2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts @@ -0,0 +1,23 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +interface VisitorOptions { + childVisitorKeys?: VisitorKeys | null; + visitChildrenEvenIfSelectorExists?: boolean; +} +declare abstract class VisitorBase { + #private; + constructor(options: VisitorOptions); + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node: T | null | undefined, excludeArr?: (keyof T)[]): void; + /** + * Dispatching node. + */ + visit(node: TSESTree.Node | null | undefined): void; +} +export { VisitorBase, type VisitorOptions }; +export type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +//# sourceMappingURL=VisitorBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map new file mode 100644 index 00000000..2036e9d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.d.ts","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,UAAU,cAAc;IACtB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C;AAaD,uBAAe,WAAW;;gBAGZ,OAAO,EAAE,cAAc;IAMnC;;;;OAIG;IACH,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,UAAU,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAC3B,IAAI;IA6BP;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAepD;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,CAAC;AAE5C,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js new file mode 100644 index 00000000..22d9d258 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = void 0; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isObject(obj) { + return typeof obj === 'object' && obj != null; +} +function isNode(node) { + return isObject(node) && typeof node.type === 'string'; +} +class VisitorBase { + #childVisitorKeys; + #visitChildrenEvenIfSelectorExists; + constructor(options) { + this.#childVisitorKeys = options.childVisitorKeys ?? visitor_keys_1.visitorKeys; + this.#visitChildrenEvenIfSelectorExists = + options.visitChildrenEvenIfSelectorExists ?? false; + } + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node, excludeArr = []) { + if (node?.type == null) { + return; + } + const exclude = new Set([...excludeArr, 'parent']); + const children = this.#childVisitorKeys[node.type] ?? Object.keys(node); + for (const key of children) { + if (exclude.has(key)) { + continue; + } + const child = node[key]; + if (!child) { + continue; + } + if (Array.isArray(child)) { + for (const subChild of child) { + if (isNode(subChild)) { + this.visit(subChild); + } + } + } + else if (isNode(child)) { + this.visit(child); + } + } + } + /** + * Dispatching node. + */ + visit(node) { + if (node?.type == null) { + return; + } + const visitor = this[node.type]; + if (visitor) { + visitor.call(this, node); + if (!this.#visitChildrenEvenIfSelectorExists) { + return; + } + } + this.visitChildren(node); + } +} +exports.VisitorBase = VisitorBase; +//# sourceMappingURL=VisitorBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map new file mode 100644 index 00000000..f9d611ab --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.js","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],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AC,QAAQ,CAAC,EAAE,CAAC;wBACrB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;oBACvB,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsC;QAC1C,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAI,IAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,kCAAkC,EAAE,CAAC;gBAC7C,OAAO;YACT,CAAC;QACH,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts new file mode 100644 index 00000000..7f232ed4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts @@ -0,0 +1,2 @@ +export { Referencer, type ReferencerOptions } from './Referencer'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map new file mode 100644 index 00000000..36b3e570 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js new file mode 100644 index 00000000..16625137 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +var Referencer_1 = require("./Referencer"); +Object.defineProperty(exports, "Referencer", { enumerable: true, get: function () { return Referencer_1.Referencer; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map new file mode 100644 index 00000000..daf5a5e4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":";;;AAAA,2CAAkE;AAAzD,wGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts new file mode 100644 index 00000000..66f2713f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class BlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']); +} +export { BlockScope }; +//# sourceMappingURL=BlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map new file mode 100644 index 00000000..4a9d37ee --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,cAAc,EACvB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js new file mode 100644 index 00000000..0fc34d61 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class BlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.block, upperScope, block, false); + } +} +exports.BlockScope = BlockScope; +//# sourceMappingURL=BlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map new file mode 100644 index 00000000..c014e70c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.js","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts new file mode 100644 index 00000000..59532d23 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class CatchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']); +} +export { CatchScope }; +//# sourceMappingURL=CatchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map new file mode 100644 index 00000000..a8a78341 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.d.ts","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js new file mode 100644 index 00000000..dbb630f2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class CatchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.catch, upperScope, block, false); + } +} +exports.CatchScope = CatchScope; +//# sourceMappingURL=CatchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map new file mode 100644 index 00000000..0ead4562 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.js","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts new file mode 100644 index 00000000..a6467363 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassFieldInitializerScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']); +} +export { ClassFieldInitializerScope }; +//# sourceMappingURL=ClassFieldInitializerScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map new file mode 100644 index 00000000..d10ba967 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,0BAA2B,SAAQ,SAAS,CAChD,SAAS,CAAC,qBAAqB,EAE/B,QAAQ,CAAC,UAAU,EACnB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAU7C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js new file mode 100644 index 00000000..5d3bb691 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassFieldInitializerScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassFieldInitializerScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classFieldInitializer, upperScope, block, false); + } +} +exports.ClassFieldInitializerScope = ClassFieldInitializerScope; +//# sourceMappingURL=ClassFieldInitializerScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map new file mode 100644 index 00000000..6f517d67 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.js","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,0BAA2B,SAAQ,qBAKxC;IACC,YACE,YAA0B,EAC1B,UAA+C,EAC/C,KAA0C;QAE1C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,qBAAqB,EAC/B,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,gEAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts new file mode 100644 index 00000000..c31a3364 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']); +} +export { ClassScope }; +//# sourceMappingURL=ClassScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map new file mode 100644 index 00000000..de93ece0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js new file mode 100644 index 00000000..003e214f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.class, upperScope, block, false); + } +} +exports.ClassScope = ClassScope; +//# sourceMappingURL=ClassScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map new file mode 100644 index 00000000..2728afb1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.js","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts new file mode 100644 index 00000000..7d7e81b0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassStaticBlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']); +} +export { ClassStaticBlockScope }; +//# sourceMappingURL=ClassStaticBlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map new file mode 100644 index 00000000..7a2ed823 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,qBAAsB,SAAQ,SAAS,CAC3C,SAAS,CAAC,gBAAgB,EAC1B,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAC1C,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC;CAIxC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js new file mode 100644 index 00000000..3f23aa68 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassStaticBlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassStaticBlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false); + } +} +exports.ClassStaticBlockScope = ClassStaticBlockScope; +//# sourceMappingURL=ClassStaticBlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map new file mode 100644 index 00000000..fdfdc3a2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.js","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,qBAAsB,SAAQ,qBAInC;IACC,YACE,YAA0B,EAC1B,UAA0C,EAC1C,KAAqC;QAErC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts new file mode 100644 index 00000000..6d35e6ec --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ConditionalTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']); +} +export { ConditionalTypeScope }; +//# sourceMappingURL=ConditionalTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map new file mode 100644 index 00000000..296425aa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,oBAAqB,SAAQ,SAAS,CAC1C,SAAS,CAAC,eAAe,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAIvC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js new file mode 100644 index 00000000..8fbd7c50 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConditionalTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ConditionalTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.conditionalType, upperScope, block, false); + } +} +exports.ConditionalTypeScope = ConditionalTypeScope; +//# sourceMappingURL=ConditionalTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map new file mode 100644 index 00000000..8288f23b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.js","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,oBAAqB,SAAQ,qBAIlC;IACC,YACE,YAA0B,EAC1B,UAAyC,EACzC,KAAoC;QAEpC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts new file mode 100644 index 00000000..ed2f2245 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ForScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']); +} +export { ForScope }; +//# sourceMappingURL=ForScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map new file mode 100644 index 00000000..b4ee2161 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.d.ts","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,QAAS,SAAQ,SAAS,CAC9B,SAAS,CAAC,GAAG,EACb,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,EACzE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;CAI3B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js new file mode 100644 index 00000000..cd27683e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ForScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ForScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.for, upperScope, block, false); + } +} +exports.ForScope = ForScope; +//# sourceMappingURL=ForScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map new file mode 100644 index 00000000..97f1b25d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.js","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,QAAS,SAAQ,qBAItB;IACC,YACE,YAA0B,EAC1B,UAA6B,EAC7B,KAAwB;QAExB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts new file mode 100644 index 00000000..2f5044ca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionExpressionNameScope extends ScopeBase { + readonly functionExpressionScope: true; + constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']); +} +export { FunctionExpressionNameScope }; +//# sourceMappingURL=FunctionExpressionNameScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map new file mode 100644 index 00000000..ba95ba4d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,2BAA4B,SAAQ,SAAS,CACjD,SAAS,CAAC,sBAAsB,EAChC,QAAQ,CAAC,kBAAkB,EAC3B,KAAK,CACN;IACC,SAAgB,uBAAuB,EAAE,IAAI,CAAC;gBAE5C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAChD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC;CAiB9C;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js new file mode 100644 index 00000000..ed1f061b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionExpressionNameScope = void 0; +const definition_1 = require("../definition"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionExpressionNameScope extends ScopeBase_1.ScopeBase { + functionExpressionScope; + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionExpressionName, upperScope, block, false); + if (block.id) { + this.defineIdentifier(block.id, new definition_1.FunctionNameDefinition(block.id, block)); + } + this.functionExpressionScope = true; + } +} +exports.FunctionExpressionNameScope = FunctionExpressionNameScope; +//# sourceMappingURL=FunctionExpressionNameScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map new file mode 100644 index 00000000..30d1e1b4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.js","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":";;;AAKA,8CAAuD;AACvD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,2BAA4B,SAAQ,qBAIzC;IACiB,uBAAuB,CAAO;IAC9C,YACE,YAA0B,EAC1B,UAAgD,EAChD,KAA2C;QAE3C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,sBAAsB,EAChC,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;QACF,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACb,IAAI,CAAC,gBAAgB,CACnB,KAAK,CAAC,EAAE,EACR,IAAI,mCAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAC5C,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;CACF;AAEQ,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts new file mode 100644 index 00000000..f1bf5e11 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts @@ -0,0 +1,13 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Reference } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { Variable } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean); + protected isValidResolution(ref: Reference, variable: Variable): boolean; +} +export { FunctionScope }; +//# sourceMappingURL=FunctionScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map new file mode 100644 index 00000000..c0dca2c7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAChB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,OAAO,GAChB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,kBAAkB,EAAE,OAAO;IAuB7B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAiBzE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js new file mode 100644 index 00000000..a45b74f0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block, isMethodDefinition) { + super(scopeManager, ScopeType_1.ScopeType.function, upperScope, block, isMethodDefinition); + // section 9.2.13, FunctionDeclarationInstantiation. + // NOTE Arrow functions never have an arguments objects. + if (this.block.type !== types_1.AST_NODE_TYPES.ArrowFunctionExpression) { + this.defineVariable('arguments', this.set, this.variables, null, null); + } + } + // References in default parameters isn't resolved to variables which are in their function body. + // const x = 1 + // function f(a = x) { // This `x` is resolved to the `x` in the outer scope. + // const x = 2 + // console.log(a) + // } + isValidResolution(ref, variable) { + // If `options.globalReturn` is true, `this.block` becomes a Program node. + if (this.block.type === types_1.AST_NODE_TYPES.Program) { + return true; + } + const bodyStart = this.block.body?.range[0] ?? -1; + // It's invalid resolution in the following case: + return !((variable.scope === this && + ref.identifier.range[0] < bodyStart && // the reference is in the parameter part. + variable.defs.every(d => d.name.range[0] >= bodyStart)) // the variable is in the body. + ); + } +} +exports.FunctionScope = FunctionScope; +//# sourceMappingURL=FunctionScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map new file mode 100644 index 00000000..a96b318f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.js","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAS3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B,EAC7B,kBAA2B;QAE3B,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,QAAQ,EAClB,UAAU,EACV,KAAK,EACL,kBAAkB,CACnB,CAAC;QAEF,oDAAoD;QACpD,wDAAwD;QACxD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE,CAAC;YAC/D,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED,iGAAiG;IACjG,kBAAkB;IAClB,iFAAiF;IACjF,sBAAsB;IACtB,yBAAyB;IACzB,QAAQ;IACE,iBAAiB,CAAC,GAAc,EAAE,QAAkB;QAC5D,0EAA0E;QAC1E,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAElD,iDAAiD;QACjD,OAAO,CAAC,CACN,CACE,QAAQ,CAAC,KAAK,KAAK,IAAI;YACvB,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,0CAA0C;YACjF,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CACvD,CAAC,+BAA+B;SAClC,CAAC;IACJ,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts new file mode 100644 index 00000000..5cdeb57f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']); +} +export { FunctionTypeScope }; +//# sourceMappingURL=FunctionTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map new file mode 100644 index 00000000..540d46bb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,iBAAkB,SAAQ,SAAS,CACvC,SAAS,CAAC,YAAY,EACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC;CAIpC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js new file mode 100644 index 00000000..3d7fe797 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionType, upperScope, block, false); + } +} +exports.FunctionTypeScope = FunctionTypeScope; +//# sourceMappingURL=FunctionTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map new file mode 100644 index 00000000..30f3dded --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.js","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,iBAAkB,SAAQ,qBAQ/B;IACC,YACE,YAA0B,EAC1B,UAAsC,EACtC,KAAiC;QAEjC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;CACF;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts new file mode 100644 index 00000000..7895720c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts @@ -0,0 +1,18 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { ImplicitLibVariableOptions } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class GlobalScope extends ScopeBase { + private readonly implicit; + constructor(scopeManager: ScopeManager, block: GlobalScope['block']); + close(scopeManager: ScopeManager): Scope | null; + defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void; +} +export { GlobalScope }; +//# sourceMappingURL=GlobalScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map new file mode 100644 index 00000000..89400338 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.d.ts","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAY,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,OAAO;AAChB;;GAEG;AACH,IAAI,CACL;IAEC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;gBAEU,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAS5D,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;IAwB/C,sBAAsB,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI;CASR;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js new file mode 100644 index 00000000..aa4451ff --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GlobalScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const ImplicitGlobalVariableDefinition_1 = require("../definition/ImplicitGlobalVariableDefinition"); +const variable_1 = require("../variable"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class GlobalScope extends ScopeBase_1.ScopeBase { + // note this is accessed in used in the legacy eslint-scope tests, so it can't be true private + implicit; + constructor(scopeManager, block) { + super(scopeManager, ScopeType_1.ScopeType.global, null, block, false); + this.implicit = { + leftToBeResolved: [], + set: new Map(), + variables: [], + }; + } + close(scopeManager) { + (0, assert_1.assert)(this.leftToResolve); + for (const ref of this.leftToResolve) { + if (ref.maybeImplicitGlobal && !this.set.has(ref.identifier.name)) { + // create an implicit global variable from assignment expression + const info = ref.maybeImplicitGlobal; + const node = info.pattern; + if (node.type === types_1.AST_NODE_TYPES.Identifier) { + this.defineVariable(node.name, this.implicit.set, this.implicit.variables, node, new ImplicitGlobalVariableDefinition_1.ImplicitGlobalVariableDefinition(info.pattern, info.node)); + } + } + } + this.implicit.leftToBeResolved = this.leftToResolve; + return super.close(scopeManager); + } + defineImplicitVariable(name, options) { + this.defineVariable(new variable_1.ImplicitLibVariable(this, name, options), this.set, this.variables, null, null); + } +} +exports.GlobalScope = GlobalScope; +//# sourceMappingURL=GlobalScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map new file mode 100644 index 00000000..4ba16c7c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.js","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAmC;AACnC,qGAAkG;AAClG,0CAAkD;AAClD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAOzB;IACC,8FAA8F;IAC7E,QAAQ,CAQvB;IAEF,YAAY,YAA0B,EAAE,KAA2B;QACjE,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG;YACd,gBAAgB,EAAE,EAAE;YACpB,GAAG,EAAE,IAAI,GAAG,EAAoB;YAChC,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,YAA0B;QACrC,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAE3B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrC,IAAI,GAAG,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClE,gEAAgE;gBAChE,MAAM,IAAI,GAAG,GAAG,CAAC,mBAAmB,CAAC;gBACrC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC1B,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;oBAC5C,IAAI,CAAC,cAAc,CACjB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,CAAC,GAAG,EACjB,IAAI,CAAC,QAAQ,CAAC,SAAS,EACvB,IAAI,EACJ,IAAI,mEAAgC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;IAEM,sBAAsB,CAC3B,IAAY,EACZ,OAAmC;QAEnC,IAAI,CAAC,cAAc,CACjB,IAAI,8BAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAC5C,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts new file mode 100644 index 00000000..b8ee01c0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class MappedTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']); +} +export { MappedTypeScope }; +//# sourceMappingURL=MappedTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map new file mode 100644 index 00000000..2bb0eb74 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,eAAgB,SAAQ,SAAS,CACrC,SAAS,CAAC,UAAU,EACpB,QAAQ,CAAC,YAAY,EACrB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,CAAC,OAAO,CAAC,EACpC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;CAIlC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js new file mode 100644 index 00000000..81879c5f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MappedTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class MappedTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.mappedType, upperScope, block, false); + } +} +exports.MappedTypeScope = MappedTypeScope; +//# sourceMappingURL=MappedTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map new file mode 100644 index 00000000..a8fd9101 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.js","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAI7B;IACC,YACE,YAA0B,EAC1B,UAAoC,EACpC,KAA+B;QAE/B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts new file mode 100644 index 00000000..ac537d89 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']); +} +export { ModuleScope }; +//# sourceMappingURL=ModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map new file mode 100644 index 00000000..f32436c2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;gBAE1E,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js new file mode 100644 index 00000000..9d84e34a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.module, upperScope, block, false); + } +} +exports.ModuleScope = ModuleScope; +//# sourceMappingURL=ModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map new file mode 100644 index 00000000..984b690c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.js","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAAoD;IAC5E,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts new file mode 100644 index 00000000..73cc9eea --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts @@ -0,0 +1,21 @@ +import type { BlockScope } from './BlockScope'; +import type { CatchScope } from './CatchScope'; +import type { ClassFieldInitializerScope } from './ClassFieldInitializerScope'; +import type { ClassScope } from './ClassScope'; +import type { ClassStaticBlockScope } from './ClassStaticBlockScope'; +import type { ConditionalTypeScope } from './ConditionalTypeScope'; +import type { ForScope } from './ForScope'; +import type { FunctionExpressionNameScope } from './FunctionExpressionNameScope'; +import type { FunctionScope } from './FunctionScope'; +import type { FunctionTypeScope } from './FunctionTypeScope'; +import type { GlobalScope } from './GlobalScope'; +import type { MappedTypeScope } from './MappedTypeScope'; +import type { ModuleScope } from './ModuleScope'; +import type { SwitchScope } from './SwitchScope'; +import type { TSEnumScope } from './TSEnumScope'; +import type { TSModuleScope } from './TSModuleScope'; +import type { TypeScope } from './TypeScope'; +import type { WithScope } from './WithScope'; +type Scope = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope; +export type { Scope }; +//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map new file mode 100644 index 00000000..40a584fa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,KAAK,KAAK,GACN,UAAU,GACV,UAAU,GACV,0BAA0B,GAC1B,UAAU,GACV,qBAAqB,GACrB,oBAAoB,GACpB,QAAQ,GACR,2BAA2B,GAC3B,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd,YAAY,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js new file mode 100644 index 00000000..676430c1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map new file mode 100644 index 00000000..03b04c83 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts new file mode 100644 index 00000000..0f605fa4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts @@ -0,0 +1,98 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { ReferenceImplicitGlobal } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { FunctionScope } from './FunctionScope'; +import type { GlobalScope } from './GlobalScope'; +import type { ModuleScope } from './ModuleScope'; +import type { Scope } from './Scope'; +import type { TSModuleScope } from './TSModuleScope'; +import { Reference, ReferenceFlag } from '../referencer/Reference'; +import { Variable } from '../variable'; +import { ScopeType } from './ScopeType'; +type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope; +declare abstract class ScopeBase { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The AST node which created this scope. + * @public + */ + readonly block: Block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + readonly childScopes: Scope[]; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + readonly functionExpressionScope: boolean; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict: boolean; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + protected leftToResolve: Reference[] | null; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + readonly references: Reference[]; + /** + * The map from variable names to variable objects. + * @public + */ + readonly set: Map; + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + readonly through: Reference[]; + readonly type: Type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + readonly upper: Upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + readonly variables: Variable[]; + readonly variableScope: VariableScope; + constructor(scopeManager: ScopeManager, type: Type, upperScope: Upper, block: Block, isMethodDefinition: boolean); + private isVariableScope; + private shouldStaticallyCloseForGlobal; + close(scopeManager: ScopeManager): Scope | null; + shouldStaticallyClose(): boolean; + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + protected defineVariable(nameOrVariable: string | Variable, set: Map, variables: Variable[], node: TSESTree.Identifier | null, def: Definition | null): void; + protected delegateToUpperScope(ref: Reference): void; + protected isValidResolution(_ref: Reference, _variable: Variable): boolean; + private addDeclaredVariablesOfNode; + defineIdentifier(node: TSESTree.Identifier, def: Definition): void; + defineLiteralIdentifier(node: TSESTree.StringLiteral, def: Definition): void; + referenceDualValueType(node: TSESTree.Identifier): void; + referenceType(node: TSESTree.Identifier): void; + referenceValue(node: TSESTree.Identifier | TSESTree.JSXIdentifier, assign?: ReferenceFlag, writeExpr?: TSESTree.Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void; +} +export { ScopeBase }; +//# sourceMappingURL=ScopeBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map new file mode 100644 index 00000000..a827de48 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,OAAO,EACL,SAAS,EACT,aAAa,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAuGxC,KAAK,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAW/E,uBAAe,SAAS,CACtB,IAAI,SAAS,SAAS,EACtB,KAAK,SAAS,QAAQ,CAAC,IAAI,EAC3B,KAAK,SAAS,KAAK,GAAG,IAAI;;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;IAC7B;;;OAGG;IACH,SAAgB,WAAW,E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AI1E,OAAO,CAAC,0BAA0B;IAmB3B,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAIlE,uBAAuB,CAC5B,IAAI,EAAE,QAAQ,CAAC,aAAa,EAC5B,GAAG,EAAE,UAAU,GACd,IAAI;IAIA,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAevD,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAe9C,cAAc,CACnB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,MAAM,GAAE,aAAkC,EAC1C,SAAS,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EACtC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,UAAQ,GACX,IAAI;CAcR;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js new file mode 100644 index 00000000..f9665edc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js @@ -0,0 +1,361 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeBase = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const ID_1 = require("../ID"); +const Reference_1 = require("../referencer/Reference"); +const variable_1 = require("../variable"); +const ScopeType_1 = require("./ScopeType"); +/** + * Test if scope is strict + */ +function isStrictScope(scope, block, isMethodDefinition) { + let body; + // When upper scope is exists and strict, inner scope is also strict. + if (scope.upper?.isStrict) { + return true; + } + if (isMethodDefinition) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.class || + scope.type === ScopeType_1.ScopeType.conditionalType || + scope.type === ScopeType_1.ScopeType.functionType || + scope.type === ScopeType_1.ScopeType.mappedType || + scope.type === ScopeType_1.ScopeType.module || + scope.type === ScopeType_1.ScopeType.tsEnum || + scope.type === ScopeType_1.ScopeType.tsModule || + scope.type === ScopeType_1.ScopeType.type) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.block || scope.type === ScopeType_1.ScopeType.switch) { + return false; + } + if (scope.type === ScopeType_1.ScopeType.function) { + const functionBody = block; + switch (functionBody.type) { + case types_1.AST_NODE_TYPES.ArrowFunctionExpression: + if (functionBody.body.type !== types_1.AST_NODE_TYPES.BlockStatement) { + return false; + } + body = functionBody.body; + break; + case types_1.AST_NODE_TYPES.Program: + body = functionBody; + break; + default: + body = functionBody.body; + } + if (!body) { + return false; + } + } + else if (scope.type === ScopeType_1.ScopeType.global) { + body = block; + } + else { + return false; + } + // Search 'use strict' directive. + for (const stmt of body.body) { + if (stmt.type !== types_1.AST_NODE_TYPES.ExpressionStatement) { + break; + } + if (stmt.directive === 'use strict') { + return true; + } + const expr = stmt.expression; + if (expr.type !== types_1.AST_NODE_TYPES.Literal) { + break; + } + if (expr.raw === '"use strict"' || expr.raw === "'use strict'") { + return true; + } + if (expr.value === 'use strict') { + return true; + } + } + return false; +} +function registerScope(scopeManager, scope) { + scopeManager.scopes.push(scope); + const scopes = scopeManager.nodeToScope.get(scope.block); + if (scopes) { + scopes.push(scope); + } + else { + scopeManager.nodeToScope.set(scope.block, [scope]); + } +} +const generator = (0, ID_1.createIdGenerator)(); +const VARIABLE_SCOPE_TYPES = new Set([ + ScopeType_1.ScopeType.classFieldInitializer, + ScopeType_1.ScopeType.classStaticBlock, + ScopeType_1.ScopeType.function, + ScopeType_1.ScopeType.global, + ScopeType_1.ScopeType.module, + ScopeType_1.ScopeType.tsModule, +]); +class ScopeBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The AST node which created this scope. + * @public + */ + block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + childScopes = []; + /** + * A map of the variables for each node in this scope. + * This is map is a pointer to the one in the parent ScopeManager instance + */ + #declaredVariables; + /** + * Generally, through the lexical scoping of JS you can always know which variable an identifier in the source code + * refers to. There are a few exceptions to this rule. With `global` and `with` scopes you can only decide at runtime + * which variable a reference refers to. + * All those scopes are considered "dynamic". + */ + #dynamic; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + functionExpressionScope = false; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + leftToResolve = []; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + references = []; + /** + * The map from variable names to variable objects. + * @public + */ + set = new Map(); + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + through = []; + type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + variables = []; + /** + * For scopes that can contain variable declarations, this is a self-reference. + * For other scope types this is the *variableScope* value of the parent scope. + * @public + */ + #dynamicCloseRef = (ref) => { + // notify all names are through to global + let current = this; + do { + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + current.through.push(ref); + current = current.upper; + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + } while (current); + }; + #globalCloseRef = (ref, scopeManager) => { + // let/const/class declarations should be resolved statically. + // others should be resolved dynamically. + if (this.shouldStaticallyCloseForGlobal(ref, scopeManager)) { + this.#staticCloseRef(ref); + } + else { + this.#dynamicCloseRef(ref); + } + }; + #staticCloseRef = (ref) => { + const resolve = () => { + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + if (!this.isValidResolution(ref, variable)) { + return false; + } + // make sure we don't match a type reference to a value variable + const isValidTypeReference = ref.isTypeReference && variable.isTypeVariable; + const isValidValueReference = ref.isValueReference && variable.isValueVariable; + if (!isValidTypeReference && !isValidValueReference) { + return false; + } + variable.references.push(ref); + ref.resolved = variable; + return true; + }; + if (!resolve()) { + this.delegateToUpperScope(ref); + } + }; + variableScope; + constructor(scopeManager, type, upperScope, block, isMethodDefinition) { + const upperScopeAsScopeBase = upperScope; + this.type = type; + this.#dynamic = + this.type === ScopeType_1.ScopeType.global || this.type === ScopeType_1.ScopeType.with; + this.block = block; + this.variableScope = this.isVariableScope() + ? this + : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + upperScopeAsScopeBase.variableScope; + this.upper = upperScope; + /** + * Whether 'use strict' is in effect in this scope. + * @member {boolean} Scope#isStrict + */ + this.isStrict = isStrictScope(this, block, isMethodDefinition); + // this is guaranteed to be correct at runtime + upperScopeAsScopeBase?.childScopes.push(this); + this.#declaredVariables = scopeManager.declaredVariables; + registerScope(scopeManager, this); + } + isVariableScope() { + return VARIABLE_SCOPE_TYPES.has(this.type); + } + shouldStaticallyCloseForGlobal(ref, scopeManager) { + // On global scope, let/const/class declarations should be resolved statically. + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + // variable exists on the scope + // in module mode, we can statically resolve everything, regardless of its decl type + if (scopeManager.isModule()) { + return true; + } + // in script mode, only certain cases should be statically resolved + // Example: + // a `var` decl is ignored by the runtime if it clashes with a global name + // this means that we should not resolve the reference to the variable + const defs = variable.defs; + return (defs.length > 0 && + defs.every(def => { + if (def.type === definition_1.DefinitionType.Variable && def.parent.kind === 'var') { + return false; + } + return true; + })); + } + close(scopeManager) { + let closeRef; + if (this.shouldStaticallyClose()) { + closeRef = this.#staticCloseRef; + } + else if (this.type !== 'global') { + closeRef = this.#dynamicCloseRef; + } + else { + closeRef = this.#globalCloseRef; + } + // Try Resolving all references in this scope. + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => closeRef(ref, scopeManager)); + this.leftToResolve = null; + return this.upper; + } + shouldStaticallyClose() { + return !this.#dynamic; + } + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + defineVariable(nameOrVariable, set, variables, node, def) { + const name = typeof nameOrVariable === 'string' ? nameOrVariable : nameOrVariable.name; + let variable = set.get(name); + if (!variable) { + variable = + typeof nameOrVariable === 'string' + ? new variable_1.Variable(name, this) + : nameOrVariable; + set.set(name, variable); + variables.push(variable); + } + if (def) { + variable.defs.push(def); + this.addDeclaredVariablesOfNode(variable, def.node); + this.addDeclaredVariablesOfNode(variable, def.parent); + } + if (node) { + variable.identifiers.push(node); + } + } + delegateToUpperScope(ref) { + this.upper?.leftToResolve?.push(ref); + this.through.push(ref); + } + isValidResolution(_ref, _variable) { + return true; + } + addDeclaredVariablesOfNode(variable, node) { + if (node == null) { + return; + } + let variables = this.#declaredVariables.get(node); + if (variables == null) { + variables = []; + this.#declaredVariables.set(node, variables); + } + if (!variables.includes(variable)) { + variables.push(variable); + } + } + defineIdentifier(node, def) { + this.defineVariable(node.name, this.set, this.variables, node, def); + } + defineLiteralIdentifier(node, def) { + this.defineVariable(node.value, this.set, this.variables, null, def); + } + referenceDualValueType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type | Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceValue(node, assign = Reference_1.ReferenceFlag.Read, writeExpr, maybeImplicitGlobal, init = false) { + const ref = new Reference_1.Reference(node, this, assign, writeExpr, maybeImplicitGlobal, init, Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } +} +exports.ScopeBase = ScopeBase; +//# sourceMappingURL=ScopeBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map new file mode 100644 index 00000000..7315c8d2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase.js","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAW1D,sCAAmC;AACnC,8CAA+C;AAC/C,8BAA0C;AAC1C,uDAIiC;AACjC,0CAAuC;AACvC,2CAAwC;AAExC;;GAEG;AACH,SAAS,aAAa,CACpB,KAAY,EACZ,KAAoB,EACpB,kBAA2B;IAE3B,IAAI,IAAmE,CAAC;IAExE,qEAAqE;IACrE,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK;QAC9B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,eAAe;QACxC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,YAAY;QACrC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,UAAU;QACnC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,QAAQ;QACjC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,IAAI,EAC7B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CA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I,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts new file mode 100644 index 00000000..8b5dea31 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts @@ -0,0 +1,22 @@ +declare enum ScopeType { + block = "block", + catch = "catch", + class = "class", + classFieldInitializer = "class-field-initializer", + classStaticBlock = "class-static-block", + conditionalType = "conditionalType", + for = "for", + function = "function", + functionExpressionName = "function-expression-name", + functionType = "functionType", + global = "global", + mappedType = "mappedType", + module = "module", + switch = "switch", + tsEnum = "tsEnum", + tsModule = "tsModule", + type = "type", + with = "with" +} +export { ScopeType }; +//# sourceMappingURL=ScopeType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map new file mode 100644 index 00000000..7201b33a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACZ,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,sBAAsB,6BAA6B;IACnD,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js new file mode 100644 index 00000000..93dab0eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeType = void 0; +var ScopeType; +(function (ScopeType) { + ScopeType["block"] = "block"; + ScopeType["catch"] = "catch"; + ScopeType["class"] = "class"; + ScopeType["classFieldInitializer"] = "class-field-initializer"; + ScopeType["classStaticBlock"] = "class-static-block"; + ScopeType["conditionalType"] = "conditionalType"; + ScopeType["for"] = "for"; + ScopeType["function"] = "function"; + ScopeType["functionExpressionName"] = "function-expression-name"; + ScopeType["functionType"] = "functionType"; + ScopeType["global"] = "global"; + ScopeType["mappedType"] = "mappedType"; + ScopeType["module"] = "module"; + ScopeType["switch"] = "switch"; + ScopeType["tsEnum"] = "tsEnum"; + ScopeType["tsModule"] = "tsModule"; + ScopeType["type"] = "type"; + ScopeType["with"] = "with"; +})(ScopeType || (exports.ScopeType = ScopeType = {})); +//# sourceMappingURL=ScopeType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map new file mode 100644 index 00000000..6481f328 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.js","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAnBI,SAAS,yBAAT,SAAS,QAmBb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts new file mode 100644 index 00000000..fe4c0dc1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class SwitchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']); +} +export { SwitchScope }; +//# sourceMappingURL=SwitchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map new file mode 100644 index 00000000..17f5e86f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.d.ts","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,eAAe,EACxB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js new file mode 100644 index 00000000..9229e4ed --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwitchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class SwitchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.switch, upperScope, block, false); + } +} +exports.SwitchScope = SwitchScope; +//# sourceMappingURL=SwitchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map new file mode 100644 index 00000000..cb5fe27c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.js","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts new file mode 100644 index 00000000..38c09ea9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSEnumScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']); +} +export { TSEnumScope }; +//# sourceMappingURL=TSEnumScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map new file mode 100644 index 00000000..3f6d4862 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js new file mode 100644 index 00000000..1f51bfb1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSEnumScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsEnum, upperScope, block, false); + } +} +exports.TSEnumScope = TSEnumScope; +//# sourceMappingURL=TSEnumScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map new file mode 100644 index 00000000..c438ce55 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.js","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts new file mode 100644 index 00000000..386180a0 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']); +} +export { TSModuleScope }; +//# sourceMappingURL=TSModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map new file mode 100644 index 00000000..e16892b2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAClB,QAAQ,CAAC,mBAAmB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;CAIhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js new file mode 100644 index 00000000..86279082 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsModule, upperScope, block, false); + } +} +exports.TSModuleScope = TSModuleScope; +//# sourceMappingURL=TSModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map new file mode 100644 index 00000000..330396c4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.js","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAI3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B;QAE7B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts new file mode 100644 index 00000000..bde4d536 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']); +} +export { TypeScope }; +//# sourceMappingURL=TypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map new file mode 100644 index 00000000..9efd512a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,EACjE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CAI5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js new file mode 100644 index 00000000..ebbf5fe6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.type, upperScope, block, false); + } +} +exports.TypeScope = TypeScope; +//# sourceMappingURL=TypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map new file mode 100644 index 00000000..74272f42 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.js","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts new file mode 100644 index 00000000..1eaa4854 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class WithScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']); + close(scopeManager: ScopeManager): Scope | null; +} +export { WithScope }; +//# sourceMappingURL=WithScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map new file mode 100644 index 00000000..a2cc41d8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.d.ts","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,aAAa,EACtB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAI3B,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAShD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js new file mode 100644 index 00000000..734034d6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithScope = void 0; +const assert_1 = require("../assert"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class WithScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false); + } + close(scopeManager) { + if (this.shouldStaticallyClose()) { + return super.close(scopeManager); + } + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref)); + this.leftToResolve = null; + return this.upper; + } +} +exports.WithScope = WithScope; +//# sourceMappingURL=WithScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map new file mode 100644 index 00000000..567a872a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.js","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":";;;AAKA,sCAAmC;AACnC,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,CAAC,YAA0B;QAC9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;QACD,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts new file mode 100644 index 00000000..7bf60717 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts @@ -0,0 +1,20 @@ +export * from './BlockScope'; +export * from './CatchScope'; +export * from './ClassFieldInitializerScope'; +export * from './ClassScope'; +export * from './ConditionalTypeScope'; +export * from './ForScope'; +export * from './FunctionExpressionNameScope'; +export * from './FunctionScope'; +export * from './FunctionTypeScope'; +export * from './GlobalScope'; +export * from './MappedTypeScope'; +export * from './ModuleScope'; +export * from './Scope'; +export * from './ScopeType'; +export * from './SwitchScope'; +export * from './TSEnumScope'; +export * from './TSModuleScope'; +export * from './TypeScope'; +export * from './WithScope'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map new file mode 100644 index 00000000..43f10ba3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js new file mode 100644 index 00000000..22187136 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js @@ -0,0 +1,36 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./BlockScope"), exports); +__exportStar(require("./CatchScope"), exports); +__exportStar(require("./ClassFieldInitializerScope"), exports); +__exportStar(require("./ClassScope"), exports); +__exportStar(require("./ConditionalTypeScope"), exports); +__exportStar(require("./ForScope"), exports); +__exportStar(require("./FunctionExpressionNameScope"), exports); +__exportStar(require("./FunctionScope"), exports); +__exportStar(require("./FunctionTypeScope"), exports); +__exportStar(require("./GlobalScope"), exports); +__exportStar(require("./MappedTypeScope"), exports); +__exportStar(require("./ModuleScope"), exports); +__exportStar(require("./Scope"), exports); +__exportStar(require("./ScopeType"), exports); +__exportStar(require("./SwitchScope"), exports); +__exportStar(require("./TSEnumScope"), exports); +__exportStar(require("./TSModuleScope"), exports); +__exportStar(require("./TypeScope"), exports); +__exportStar(require("./WithScope"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map new file mode 100644 index 00000000..2ceff644 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts new file mode 100644 index 00000000..fd5e08be --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts @@ -0,0 +1,34 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { VariableBase } from './VariableBase'; +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +declare class ESLintScopeVariable extends VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable?: boolean; + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal?: boolean; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting?: 'readonly' | 'writable'; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments?: TSESTree.Comment[]; +} +export { ESLintScopeVariable }; +//# sourceMappingURL=ESLintScopeVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map new file mode 100644 index 00000000..b544931c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACI,2BAA2B,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE7D;;;;OAIG;IACI,4BAA4B,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC1D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js new file mode 100644 index 00000000..d36def70 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ESLintScopeVariable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +class ESLintScopeVariable extends VariableBase_1.VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable; // note that this isn't a typo - ESlint uses this spelling here + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments; +} +exports.ESLintScopeVariable = ESLintScopeVariable; +//# sourceMappingURL=ESLintScopeVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map new file mode 100644 index 00000000..973b7314 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.js","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C;;;GAGG;AACH,MAAM,mBAAoB,SAAQ,2BAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAW,CAAC,+DAA+D;IAE3F;;;;OAIG;IACI,oBAAoB,CAAW;IAEtC;;;OAGG;IACI,2BAA2B,CAA2B;IAE7D;;;;OAIG;IACI,4BAA4B,CAAsB;CAC1D;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts new file mode 100644 index 00000000..79eef8fc --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts @@ -0,0 +1,25 @@ +import type { Scope } from '../scope'; +import type { Variable } from './Variable'; +import { ESLintScopeVariable } from './ESLintScopeVariable'; +interface ImplicitLibVariableOptions { + readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting']; + readonly isTypeVariable?: boolean; + readonly isValueVariable?: boolean; + readonly writeable?: boolean; +} +/** + * An variable implicitly defined by the TS Lib + */ +declare class ImplicitLibVariable extends ESLintScopeVariable implements Variable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + readonly isTypeVariable: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + readonly isValueVariable: boolean; + constructor(scope: Scope, name: string, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }: ImplicitLibVariableOptions); +} +export { ImplicitLibVariable, type ImplicitLibVariableOptions }; +//# sourceMappingURL=ImplicitLibVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map new file mode 100644 index 00000000..2eb2db90 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,cAAM,mBAAoB,SAAQ,mBAAoB,YAAW,QAAQ;IACvE;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;gBAGvC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACV,EAAE,0BAA0B;CAShC;AAED,OAAO,EAAE,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js new file mode 100644 index 00000000..046c4109 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitLibVariable = void 0; +const ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +/** + * An variable implicitly defined by the TS Lib + */ +class ImplicitLibVariable extends ESLintScopeVariable_1.ESLintScopeVariable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + isTypeVariable; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + isValueVariable; + constructor(scope, name, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }) { + super(name, scope); + this.isTypeVariable = isTypeVariable ?? false; + this.isValueVariable = isValueVariable ?? false; + this.writeable = writeable ?? false; + this.eslintImplicitGlobalSetting = + eslintImplicitGlobalSetting ?? 'readonly'; + } +} +exports.ImplicitLibVariable = ImplicitLibVariable; +//# sourceMappingURL=ImplicitLibVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map new file mode 100644 index 00000000..3149b8bb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.js","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAS5D;;GAEG;AACH,MAAM,mBAAoB,SAAQ,yCAAmB;IACnD;;OAEG;IACa,cAAc,CAAU;IAExC;;OAEG;IACa,eAAe,CAAU;IAEzC,YACE,KAAY,EACZ,IAAY,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACkB;QAE7B,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,KAAK,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,KAAK,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;QACpC,IAAI,CAAC,2BAA2B;YAC9B,2BAA2B,IAAI,UAAU,CAAC;IAC9C,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts new file mode 100644 index 00000000..83754b17 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts @@ -0,0 +1,18 @@ +import { VariableBase } from './VariableBase'; +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +declare class Variable extends VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable(): boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable(): boolean; +} +export { Variable }; +//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map new file mode 100644 index 00000000..9b56c4f4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,cAAM,QAAS,SAAQ,YAAY;IACjC;;;OAGG;IACH,IAAW,cAAc,IAAI,OAAO,CAOnC;IAED;;;OAGG;IACH,IAAW,eAAe,IAAI,OAAO,CAOpC;CACF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js new file mode 100644 index 00000000..8b72550e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +class Variable extends VariableBase_1.VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isTypeDefinition); + } + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isVariableDefinition); + } +} +exports.Variable = Variable; +//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map new file mode 100644 index 00000000..ba767144 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C;;GAEG;AACH,MAAM,QAAS,SAAQ,2BAAY;IACjC;;;OAGG;IACH,IAAW,cAAc;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts new file mode 100644 index 00000000..c74c7a38 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts @@ -0,0 +1,44 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { Reference } from '../referencer/Reference'; +import type { Scope } from '../scope'; +declare class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The array of the definitions of this variable. + * @public + */ + readonly defs: Definition[]; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed: boolean; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + readonly identifiers: TSESTree.Identifier[]; + /** + * The variable name, as given in the source code. + * @public + */ + readonly name: string; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + readonly references: Reference[]; + /** + * Reference to the enclosing Scope. + */ + readonly scope: Scope; + constructor(name: string, scope: Scope); +} +export { VariableBase }; +//# sourceMappingURL=VariableBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map new file mode 100644 index 00000000..02d49843 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.d.ts","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMtC,cAAM,YAAY;IAChB;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,UAAU,EAAE,CAAM;IACxC;;;OAGG;IACI,UAAU,UAAS;IAC1B;;;;OAIG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAM;IACxD;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7C;;OAEG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAIvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js new file mode 100644 index 00000000..911cb766 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The array of the definitions of this variable. + * @public + */ + defs = []; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed = false; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + identifiers = []; + /** + * The variable name, as given in the source code. + * @public + */ + name; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + references = []; + /** + * Reference to the enclosing Scope. + */ + scope; + constructor(name, scope) { + this.name = name; + this.scope = scope; + } +} +exports.VariableBase = VariableBase; +//# sourceMappingURL=VariableBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map new file mode 100644 index 00000000..2bcb51cd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.js","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":";;;AAMA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAM,YAAY;IAChB;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;;OAGG;IACa,IAAI,GAAiB,EAAE,CAAC;IACxC;;;OAGG;IACI,UAAU,GAAG,KAAK,CAAC;IAC1B;;;;OAIG;IACa,WAAW,GAA0B,EAAE,CAAC;IACxD;;;OAGG;IACa,IAAI,CAAS;IAC7B;;;;OAIG;IACa,UAAU,GAAgB,EAAE,CAAC;IAC7C;;OAEG;IACa,KAAK,CAAQ;IAE7B,YAAY,IAAY,EAAE,KAAY;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts new file mode 100644 index 00000000..d4c06283 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts @@ -0,0 +1,7 @@ +import type { ESLintScopeVariable } from './ESLintScopeVariable'; +import type { Variable } from './Variable'; +export { ESLintScopeVariable } from './ESLintScopeVariable'; +export { ImplicitLibVariable, type ImplicitLibVariableOptions, } from './ImplicitLibVariable'; +export { Variable } from './Variable'; +export type ScopeVariable = ESLintScopeVariable | Variable; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map new file mode 100644 index 00000000..7fc712e1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js new file mode 100644 index 00000000..1e36582b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = exports.ImplicitLibVariable = exports.ESLintScopeVariable = void 0; +var ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +Object.defineProperty(exports, "ESLintScopeVariable", { enumerable: true, get: function () { return ESLintScopeVariable_1.ESLintScopeVariable; } }); +var ImplicitLibVariable_1 = require("./ImplicitLibVariable"); +Object.defineProperty(exports, "ImplicitLibVariable", { enumerable: true, get: function () { return ImplicitLibVariable_1.ImplicitLibVariable; } }); +var Variable_1 = require("./Variable"); +Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map new file mode 100644 index 00000000..51902f54 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":";;;AAGA,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,6DAG+B;AAF7B,0HAAA,mBAAmB,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/package.json b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/package.json new file mode 100644 index 00000000..6bebc8b3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager/package.json @@ -0,0 +1,74 @@ +{ + "name": "@typescript-eslint/scope-manager", + "version": "8.17.0", + "description": "TypeScript scope analyser for ESLint", + "files": [ + "dist", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/scope-manager" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/scope-manager", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "npx nx build", + "clean": "npx nx clean", + "clean-fixtures": "npx nx clean-fixtures", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx generate-lib repo", + "lint": "npx nx lint", + "test": "npx nx test --code-coverage", + "typecheck": "npx nx typecheck" + }, + "dependencies": { + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/glob": "*", + "@typescript-eslint/typescript-estree": "8.17.0", + "glob": "*", + "jest-specific-snapshot": "*", + "make-dir": "*", + "prettier": "^3.2.5", + "pretty-format": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/LICENSE b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/README.md b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/README.md new file mode 100644 index 00000000..7a3008bb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/types` + +> Types for the TypeScript-ESTree AST spec + +This package exists to help us reduce cycles and provide lighter-weight packages at runtime. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts new file mode 100644 index 00000000..3c00ec40 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts @@ -0,0 +1,2159 @@ +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +import type { SyntaxKind } from 'typescript'; +export declare type Accessibility = 'private' | 'protected' | 'public'; +export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; +export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface ArrayExpression extends BaseNode { + type: AST_NODE_TYPES.ArrayExpression; + /** + * an element will be `null` in the case of a sparse array: `[1, ,3]` + */ + elements: (Expression | SpreadElement | null)[]; +} +export declare interface ArrayPattern extends BaseNode { + type: AST_NODE_TYPES.ArrayPattern; + decorators: Decorator[]; + elements: (DestructuringPattern | null)[]; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface ArrowFunctionExpression extends BaseNode { + type: AST_NODE_TYPES.ArrowFunctionExpression; + async: boolean; + body: BlockStatement | Expression; + expression: boolean; + generator: boolean; + id: null; + params: Parameter[]; + returnType: TSTypeAnnotation | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface AssignmentExpression extends BaseNode { + type: AST_NODE_TYPES.AssignmentExpression; + left: Expression; + operator: ValueOf; + right: Expression; +} +export declare interface AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; + [SyntaxKind.AmpersandEqualsToken]: '&='; + [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; + [SyntaxKind.AsteriskEqualsToken]: '*='; + [SyntaxKind.BarBarEqualsToken]: '||='; + [SyntaxKind.BarEqualsToken]: '|='; + [SyntaxKind.CaretEqualsToken]: '^='; + [SyntaxKind.EqualsToken]: '='; + [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; + [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; + [SyntaxKind.MinusEqualsToken]: '-='; + [SyntaxKind.PercentEqualsToken]: '%='; + [SyntaxKind.PlusEqualsToken]: '+='; + [SyntaxKind.QuestionQuestionEqualsToken]: '??='; + [SyntaxKind.SlashEqualsToken]: '/='; +} +export declare interface AssignmentPattern extends BaseNode { + type: AST_NODE_TYPES.AssignmentPattern; + decorators: Decorator[]; + left: BindingName; + optional: boolean; + right: Expression; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare enum AST_NODE_TYPES { + AccessorProperty = "AccessorProperty", + ArrayExpression = "ArrayExpression", + ArrayPattern = "ArrayPattern", + ArrowFunctionExpression = "ArrowFunctionExpression", + AssignmentExpression = "AssignmentExpression", + AssignmentPattern = "AssignmentPattern", + AwaitExpression = "AwaitExpression", + BinaryExpression = "BinaryExpression", + BlockStatement = "BlockStatement", + BreakStatement = "BreakStatement", + CallExpression = "CallExpression", + CatchClause = "CatchClause", + ChainExpression = "ChainExpression", + ClassBody = "ClassBody", + ClassDeclaration = "ClassDeclaration", + ClassExpression = "ClassExpression", + ConditionalExpression = "ConditionalExpression", + ContinueStatement = "ContinueStatement", + DebuggerStatement = "DebuggerStatement", + Decorator = "Decorator", + DoWhileStatement = "DoWhileStatement", + EmptyStatement = "EmptyStatement", + ExportAllDeclaration = "ExportAllDeclaration", + ExportDefaultDeclaration = "ExportDefaultDeclaration", + ExportNamedDeclaration = "ExportNamedDeclaration", + ExportSpecifier = "ExportSpecifier", + ExpressionStatement = "ExpressionStatement", + ForInStatement = "ForInStatement", + ForOfStatement = "ForOfStatement", + ForStatement = "ForStatement", + FunctionDeclaration = "FunctionDeclaration", + FunctionExpression = "FunctionExpression", + Identifier = "Identifier", + IfStatement = "IfStatement", + ImportAttribute = "ImportAttribute", + ImportDeclaration = "ImportDeclaration", + ImportDefaultSpecifier = "ImportDefaultSpecifier", + ImportExpression = "ImportExpression", + ImportNamespaceSpecifier = "ImportNamespaceSpecifier", + ImportSpecifier = "ImportSpecifier", + JSXAttribute = "JSXAttribute", + JSXClosingElement = "JSXClosingElement", + JSXClosingFragment = "JSXClosingFragment", + JSXElement = "JSXElement", + JSXEmptyExpression = "JSXEmptyExpression", + JSXExpressionContainer = "JSXExpressionContainer", + JSXFragment = "JSXFragment", + JSXIdentifier = "JSXIdentifier", + JSXMemberExpression = "JSXMemberExpression", + JSXNamespacedName = "JSXNamespacedName", + JSXOpeningElement = "JSXOpeningElement", + JSXOpeningFragment = "JSXOpeningFragment", + JSXSpreadAttribute = "JSXSpreadAttribute", + JSXSpreadChild = "JSXSpreadChild", + JSXText = "JSXText", + LabeledStatement = "LabeledStatement", + Literal = "Literal", + LogicalExpression = "LogicalExpression", + MemberExpression = "MemberExpression", + MetaProperty = "MetaProperty", + MethodDefinition = "MethodDefinition", + NewExpression = "NewExpression", + ObjectExpression = "ObjectExpression", + ObjectPattern = "ObjectPattern", + PrivateIdentifier = "PrivateIdentifier", + Program = "Program", + Property = "Property", + PropertyDefinition = "PropertyDefinition", + RestElement = "RestElement", + ReturnStatement = "ReturnStatement", + SequenceExpression = "SequenceExpression", + SpreadElement = "SpreadElement", + StaticBlock = "StaticBlock", + Super = "Super", + SwitchCase = "SwitchCase", + SwitchStatement = "SwitchStatement", + TaggedTemplateExpression = "TaggedTemplateExpression", + TemplateElement = "TemplateElement", + TemplateLiteral = "TemplateLiteral", + ThisExpression = "ThisExpression", + ThrowStatement = "ThrowStatement", + TryStatement = "TryStatement", + UnaryExpression = "UnaryExpression", + UpdateExpression = "UpdateExpression", + VariableDeclaration = "VariableDeclaration", + VariableDeclarator = "VariableDeclarator", + WhileStatement = "WhileStatement", + WithStatement = "WithStatement", + YieldExpression = "YieldExpression", + TSAbstractAccessorProperty = "TSAbstractAccessorProperty", + TSAbstractKeyword = "TSAbstractKeyword", + TSAbstractMethodDefinition = "TSAbstractMethodDefinition", + TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", + TSAnyKeyword = "TSAnyKeyword", + TSArrayType = "TSArrayType", + TSAsExpression = "TSAsExpression", + TSAsyncKeyword = "TSAsyncKeyword", + TSBigIntKeyword = "TSBigIntKeyword", + TSBooleanKeyword = "TSBooleanKeyword", + TSCallSignatureDeclaration = "TSCallSignatureDeclaration", + TSClassImplements = "TSClassImplements", + TSConditionalType = "TSConditionalType", + TSConstructorType = "TSConstructorType", + TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", + TSDeclareFunction = "TSDeclareFunction", + TSDeclareKeyword = "TSDeclareKeyword", + TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", + TSEnumBody = "TSEnumBody", + TSEnumDeclaration = "TSEnumDeclaration", + TSEnumMember = "TSEnumMember", + TSExportAssignment = "TSExportAssignment", + TSExportKeyword = "TSExportKeyword", + TSExternalModuleReference = "TSExternalModuleReference", + TSFunctionType = "TSFunctionType", + TSImportEqualsDeclaration = "TSImportEqualsDeclaration", + TSImportType = "TSImportType", + TSIndexedAccessType = "TSIndexedAccessType", + TSIndexSignature = "TSIndexSignature", + TSInferType = "TSInferType", + TSInstantiationExpression = "TSInstantiationExpression", + TSInterfaceBody = "TSInterfaceBody", + TSInterfaceDeclaration = "TSInterfaceDeclaration", + TSInterfaceHeritage = "TSInterfaceHeritage", + TSIntersectionType = "TSIntersectionType", + TSIntrinsicKeyword = "TSIntrinsicKeyword", + TSLiteralType = "TSLiteralType", + TSMappedType = "TSMappedType", + TSMethodSignature = "TSMethodSignature", + TSModuleBlock = "TSModuleBlock", + TSModuleDeclaration = "TSModuleDeclaration", + TSNamedTupleMember = "TSNamedTupleMember", + TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", + TSNeverKeyword = "TSNeverKeyword", + TSNonNullExpression = "TSNonNullExpression", + TSNullKeyword = "TSNullKeyword", + TSNumberKeyword = "TSNumberKeyword", + TSObjectKeyword = "TSObjectKeyword", + TSOptionalType = "TSOptionalType", + TSParameterProperty = "TSParameterProperty", + TSPrivateKeyword = "TSPrivateKeyword", + TSPropertySignature = "TSPropertySignature", + TSProtectedKeyword = "TSProtectedKeyword", + TSPublicKeyword = "TSPublicKeyword", + TSQualifiedName = "TSQualifiedName", + TSReadonlyKeyword = "TSReadonlyKeyword", + TSRestType = "TSRestType", + TSSatisfiesExpression = "TSSatisfiesExpression", + TSStaticKeyword = "TSStaticKeyword", + TSStringKeyword = "TSStringKeyword", + TSSymbolKeyword = "TSSymbolKeyword", + TSTemplateLiteralType = "TSTemplateLiteralType", + TSThisType = "TSThisType", + TSTupleType = "TSTupleType", + TSTypeAliasDeclaration = "TSTypeAliasDeclaration", + TSTypeAnnotation = "TSTypeAnnotation", + TSTypeAssertion = "TSTypeAssertion", + TSTypeLiteral = "TSTypeLiteral", + TSTypeOperator = "TSTypeOperator", + TSTypeParameter = "TSTypeParameter", + TSTypeParameterDeclaration = "TSTypeParameterDeclaration", + TSTypeParameterInstantiation = "TSTypeParameterInstantiation", + TSTypePredicate = "TSTypePredicate", + TSTypeQuery = "TSTypeQuery", + TSTypeReference = "TSTypeReference", + TSUndefinedKeyword = "TSUndefinedKeyword", + TSUnionType = "TSUnionType", + TSUnknownKeyword = "TSUnknownKeyword", + TSVoidKeyword = "TSVoidKeyword" +} +export declare enum AST_TOKEN_TYPES { + Boolean = "Boolean", + Identifier = "Identifier", + JSXIdentifier = "JSXIdentifier", + JSXText = "JSXText", + Keyword = "Keyword", + Null = "Null", + Numeric = "Numeric", + Punctuator = "Punctuator", + RegularExpression = "RegularExpression", + String = "String", + Template = "Template", + Block = "Block", + Line = "Line" +} +export declare interface AwaitExpression extends BaseNode { + type: AST_NODE_TYPES.AwaitExpression; + argument: Expression; +} +export declare interface BaseNode extends NodeOrTokenData { + type: AST_NODE_TYPES; +} +declare interface BaseToken extends NodeOrTokenData { + type: AST_TOKEN_TYPES; + value: string; +} +export declare interface BigIntLiteral extends LiteralBase { + bigint: string; + value: bigint | null; +} +export declare interface BinaryExpression extends BaseNode { + type: AST_NODE_TYPES.BinaryExpression; + left: Expression | PrivateIdentifier; + operator: ValueOf; + right: Expression; +} +export declare interface BinaryOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.InKeyword]: 'in'; + [SyntaxKind.InstanceOfKeyword]: 'instanceof'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanToken]: '<'; + [SyntaxKind.MinusToken]: '-'; + [SyntaxKind.PercentToken]: '%'; + [SyntaxKind.PlusToken]: '+'; + [SyntaxKind.SlashToken]: '/'; +} +export declare type BindingName = BindingPattern | Identifier; +export declare type BindingPattern = ArrayPattern | ObjectPattern; +export declare interface BlockComment extends BaseToken { + type: AST_TOKEN_TYPES.Block; +} +export declare interface BlockStatement extends BaseNode { + type: AST_NODE_TYPES.BlockStatement; + body: Statement[]; +} +export declare interface BooleanLiteral extends LiteralBase { + raw: 'false' | 'true'; + value: boolean; +} +export declare interface BooleanToken extends BaseToken { + type: AST_TOKEN_TYPES.Boolean; +} +export declare interface BreakStatement extends BaseNode { + type: AST_NODE_TYPES.BreakStatement; + label: Identifier | null; +} +export declare interface CallExpression extends BaseNode { + type: AST_NODE_TYPES.CallExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + optional: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type CallExpressionArgument = Expression | SpreadElement; +export declare interface CatchClause extends BaseNode { + type: AST_NODE_TYPES.CatchClause; + body: BlockStatement; + param: BindingName | null; +} +export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; +export declare interface ChainExpression extends BaseNode { + type: AST_NODE_TYPES.ChainExpression; + expression: ChainElement; +} +declare interface ClassBase extends BaseNode { + /** + * Whether the class is an abstract class. + * @example + * ```ts + * abstract class Foo {} + * ``` + */ + abstract: boolean; + /** + * The class body. + */ + body: ClassBody; + /** + * Whether the class has been `declare`d: + * @example + * ```ts + * declare class Foo {} + * ``` + */ + declare: boolean; + /** + * The decorators declared for the class. + * @example + * ```ts + * @deco + * class Foo {} + * ``` + */ + decorators: Decorator[]; + /** + * The class's name. + * - For a `ClassExpression` this may be `null` if the name is omitted. + * - For a `ClassDeclaration` this may be `null` if and only if the parent is + * an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The implemented interfaces for the class. + */ + implements: TSClassImplements[]; + /** + * The super class this class extends. + */ + superClass: LeftHandSideExpression | null; + /** + * The generic type parameters passed to the superClass. + */ + superTypeArguments: TSTypeParameterInstantiation | undefined; + /** + * The generic type parameters declared for the class. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface ClassBody extends BaseNode { + type: AST_NODE_TYPES.ClassBody; + body: ClassElement[]; +} +export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; +declare interface ClassDeclarationBase extends ClassBase { + type: AST_NODE_TYPES.ClassDeclaration; +} +/** + * A normal class declaration: + * ``` + * class A {} + * ``` + */ +export declare interface ClassDeclarationWithName extends ClassDeclarationBase { + id: Identifier; +} +/** + * Default-exported class declarations have optional names: + * ``` + * export default class {} + * ``` + */ +export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { + id: Identifier | null; +} +export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; +export declare interface ClassExpression extends ClassBase { + type: AST_NODE_TYPES.ClassExpression; + abstract: false; + declare: false; +} +declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; +export declare type Comment = BlockComment | LineComment; +export declare interface ConditionalExpression extends BaseNode { + type: AST_NODE_TYPES.ConditionalExpression; + alternate: Expression; + consequent: Expression; + test: Expression; +} +export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare const` declaration, the declarators may have initializers, but + * not definite assignment assertions. Each declarator cannot have both an + * initializer and a type annotation. + * + * Even if the declaration has no `declare`, it may still be ambient and have + * no initializer. + */ + declarations: VariableDeclaratorMaybeInit[]; + kind: 'const'; +} +export declare interface ContinueStatement extends BaseNode { + type: AST_NODE_TYPES.ContinueStatement; + label: Identifier | null; +} +export declare interface DebuggerStatement extends BaseNode { + type: AST_NODE_TYPES.DebuggerStatement; +} +/** + * @deprecated + * Note that this is neither up to date nor fully correct. + */ +export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; +export declare interface Decorator extends BaseNode { + type: AST_NODE_TYPES.Decorator; + expression: LeftHandSideExpression; +} +export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; +export declare interface DoWhileStatement extends BaseNode { + type: AST_NODE_TYPES.DoWhileStatement; + body: Statement; + test: Expression; +} +export declare interface EmptyStatement extends BaseNode { + type: AST_NODE_TYPES.EmptyStatement; +} +export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; +export declare interface ExportAllDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportAllDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The name for the exported items (`as X`). `null` if no name is assigned. + */ + exported: Identifier | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral; +} +declare type ExportAndImportKind = 'type' | 'value'; +export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; +export declare interface ExportDefaultDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportDefaultDeclaration; + /** + * The declaration being exported. + */ + declaration: DefaultExportDeclarations; + /** + * The kind of the export. Always `value` for default exports. + */ + exportKind: 'value'; +} +declare type ExportKind = ExportAndImportKind; +export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; +declare interface ExportNamedDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.ExportNamedDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export { foo } from 'mod' assert \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export { foo } from 'mod' with \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + */ + attributes: ImportAttribute[]; + /** + * The exported declaration. + * @example + * ```ts + * export const x = 1; + * ``` + * This will be `null` if `source` is not `null`, or if there are `specifiers` + */ + declaration: NamedExportDeclarations | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral | null; + /** + * The specifiers being exported. + * @example + * ```ts + * export { a, b }; + * ``` + * This will be an empty array if `declaration` is not `null` + */ + specifiers: ExportSpecifier[]; +} +export declare type ExportNamedDeclarationWithoutSource = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle; +/** + * Exporting names from the current module. + * ``` + * export {}; + * export { a, b }; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: null; + source: null; + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Exporting a single named declaration. + * ``` + * export const x = 1; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: NamedExportDeclarations; + source: null; + /** + * This will always be an empty array. + */ + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Export names from another module. + * ``` + * export { a, b } from 'mod'; + * ``` + */ +export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { + declaration: null; + source: StringLiteral; +} +export declare type ExportSpecifier = ExportSpecifierWithIdentifierLocal | ExportSpecifierWithStringOrLiteralLocal; +declare interface ExportSpecifierBase extends BaseNode { + type: AST_NODE_TYPES.ExportSpecifier; + exported: Identifier | StringLiteral; + exportKind: ExportKind; + local: Identifier | StringLiteral; +} +export declare interface ExportSpecifierWithIdentifierLocal extends ExportSpecifierBase { + local: Identifier; +} +export declare interface ExportSpecifierWithStringOrLiteralLocal extends ExportSpecifierBase { + local: Identifier | StringLiteral; +} +export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; +export declare interface ExpressionStatement extends BaseNode { + type: AST_NODE_TYPES.ExpressionStatement; + directive: string | undefined; + expression: Expression; +} +export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration; +export declare interface ForInStatement extends BaseNode { + type: AST_NODE_TYPES.ForInStatement; + body: Statement; + left: ForInitialiser; + right: Expression; +} +declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration; +export declare interface ForOfStatement extends BaseNode { + type: AST_NODE_TYPES.ForOfStatement; + await: boolean; + body: Statement; + left: ForOfInitialiser; + right: Expression; +} +export declare interface ForStatement extends BaseNode { + type: AST_NODE_TYPES.ForStatement; + body: Statement; + init: Expression | ForInitialiser | null; + test: Expression | null; + update: Expression | null; +} +declare interface FunctionBase extends BaseNode { + /** + * Whether the function is async: + * ``` + * async function foo() {} + * const x = async function () {} + * const x = async () => {} + * ``` + */ + async: boolean; + /** + * The body of the function. + * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. + * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`. + * - For a `TSDeclareFunction` this is always `undefined`. + * - For a `TSEmptyBodyFunctionExpression` this is always `null`. + */ + body: BlockStatement | Expression | null | undefined; + /** + * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: + * ``` + * declare function foo() {} + * ``` + */ + declare: boolean; + /** + * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body + * is an expression: + * ``` + * (() => 1) + * ``` + */ + expression: boolean; + /** + * Whether the function is a generator function: + * ``` + * function *foo() {} + * const x = function *() {} + * ``` + * This is always `false` for arrow functions as they cannot be generators. + */ + generator: boolean; + /** + * The function's name. + * - For an `ArrowFunctionExpression` this is always `null`. + * - For a `FunctionExpression` this may be `null` if the name is omitted. + * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if + * and only if the parent is an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The list of parameters declared for the function. + */ + params: Parameter[]; + /** + * The return type annotation for the function. + */ + returnType: TSTypeAnnotation | undefined; + /** + * The generic type parameter declaration for the function. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; +declare interface FunctionDeclarationBase extends FunctionBase { + type: AST_NODE_TYPES.FunctionDeclaration; + body: BlockStatement; + declare: false; + expression: false; +} +/** + * A normal function declaration: + * ``` + * function f() {} + * ``` + */ +export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { + id: Identifier; +} +/** + * Default-exported function declarations have optional names: + * ``` + * export default function () {} + * ``` + */ +export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { + id: Identifier | null; +} +export declare interface FunctionExpression extends FunctionBase { + type: AST_NODE_TYPES.FunctionExpression; + body: BlockStatement; + expression: false; +} +export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; +export declare interface Identifier extends BaseNode { + type: AST_NODE_TYPES.Identifier; + decorators: Decorator[]; + name: string; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface IdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.Identifier; +} +export declare interface IfStatement extends BaseNode { + type: AST_NODE_TYPES.IfStatement; + alternate: Statement | null; + consequent: Statement; + test: Expression; +} +export declare interface ImportAttribute extends BaseNode { + type: AST_NODE_TYPES.ImportAttribute; + key: Identifier | Literal; + value: Literal; +} +export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; +export declare interface ImportDeclaration extends BaseNode { + type: AST_NODE_TYPES.ImportDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * import * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * import * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The kind of the import. + */ + importKind: ImportKind; + /** + * The source module being imported from. + */ + source: StringLiteral; + /** + * The specifiers being imported. + * If this is an empty array then either there are no specifiers: + * ``` + * import {} from 'mod'; + * ``` + * Or it is a side-effect import: + * ``` + * import 'mod'; + * ``` + */ + specifiers: ImportClause[]; +} +export declare interface ImportDefaultSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportDefaultSpecifier; + local: Identifier; +} +export declare interface ImportExpression extends BaseNode { + type: AST_NODE_TYPES.ImportExpression; + /** + * The attributes declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + * @deprecated Replaced with {@link `options`}. + */ + attributes: Expression | null; + /** + * The options bag declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + */ + options: Expression | null; + source: Expression; +} +declare type ImportKind = ExportAndImportKind; +export declare interface ImportNamespaceSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportNamespaceSpecifier; + local: Identifier; +} +export declare interface ImportSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportSpecifier; + imported: Identifier | StringLiteral; + importKind: ImportKind; + local: Identifier; +} +export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; +export declare interface JSXAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXAttribute; + name: JSXIdentifier | JSXNamespacedName; + value: JSXElement | JSXExpression | Literal | null; +} +export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; +export declare interface JSXClosingElement extends BaseNode { + type: AST_NODE_TYPES.JSXClosingElement; + name: JSXTagNameExpression; +} +export declare interface JSXClosingFragment extends BaseNode { + type: AST_NODE_TYPES.JSXClosingFragment; +} +export declare interface JSXElement extends BaseNode { + type: AST_NODE_TYPES.JSXElement; + children: JSXChild[]; + closingElement: JSXClosingElement | null; + openingElement: JSXOpeningElement; +} +export declare interface JSXEmptyExpression extends BaseNode { + type: AST_NODE_TYPES.JSXEmptyExpression; +} +export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; +export declare interface JSXExpressionContainer extends BaseNode { + type: AST_NODE_TYPES.JSXExpressionContainer; + expression: Expression | JSXEmptyExpression; +} +export declare interface JSXFragment extends BaseNode { + type: AST_NODE_TYPES.JSXFragment; + children: JSXChild[]; + closingFragment: JSXClosingFragment; + openingFragment: JSXOpeningFragment; +} +export declare interface JSXIdentifier extends BaseNode { + type: AST_NODE_TYPES.JSXIdentifier; + name: string; +} +export declare interface JSXIdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXIdentifier; +} +export declare interface JSXMemberExpression extends BaseNode { + type: AST_NODE_TYPES.JSXMemberExpression; + object: JSXTagNameExpression; + property: JSXIdentifier; +} +export declare interface JSXNamespacedName extends BaseNode { + type: AST_NODE_TYPES.JSXNamespacedName; + name: JSXIdentifier; + namespace: JSXIdentifier; +} +export declare interface JSXOpeningElement extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningElement; + attributes: (JSXAttribute | JSXSpreadAttribute)[]; + name: JSXTagNameExpression; + selfClosing: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface JSXOpeningFragment extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningFragment; +} +export declare interface JSXSpreadAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadAttribute; + argument: Expression; +} +export declare interface JSXSpreadChild extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadChild; + expression: Expression | JSXEmptyExpression; +} +export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; +export declare interface JSXText extends BaseNode { + type: AST_NODE_TYPES.JSXText; + raw: string; + value: string; +} +export declare interface JSXTextToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXText; +} +export declare interface KeywordToken extends BaseToken { + type: AST_TOKEN_TYPES.Keyword; +} +export declare interface LabeledStatement extends BaseNode { + type: AST_NODE_TYPES.LabeledStatement; + body: Statement; + label: Identifier; +} +export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; +export declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration; +declare interface LetOrConstOrVarDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * let x; + * let y, z; + * ``` + */ + declarations: LetOrConstOrVarDeclarator[]; + /** + * Whether the declaration is `declare`d + * @example + * ```ts + * declare const x = 1; + * ``` + */ + declare: boolean; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * const x = 1; + * let y = 2; + * var z = 3; + * ``` + */ + kind: 'const' | 'let' | 'var'; +} +export declare type LetOrConstOrVarDeclarator = VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit; +export declare interface LetOrVarDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare let` declaration, the declarators must not have definite assignment + * assertions or initializers. + * + * @example + * ```ts + * using x = 1; + * using y =1, z = 2; + * ``` + */ + declarations: VariableDeclaratorNoInit[]; + declare: true; + kind: 'let' | 'var'; +} +export declare interface LetOrVarNonDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `let`/`var` declaration, the declarators may have definite assignment + * assertions or initializers, but not both. + */ + declarations: (VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit)[]; + declare: false; + kind: 'let' | 'var'; +} +export declare interface LineComment extends BaseToken { + type: AST_TOKEN_TYPES.Line; +} +export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; +declare interface LiteralBase extends BaseNode { + type: AST_NODE_TYPES.Literal; + raw: string; + value: bigint | boolean | number | string | RegExp | null; +} +export declare type LiteralExpression = Literal | TemplateLiteral; +export declare interface LogicalExpression extends BaseNode { + type: AST_NODE_TYPES.LogicalExpression; + left: Expression; + operator: '&&' | '??' | '||'; + right: Expression; +} +export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; +declare interface MemberExpressionBase extends BaseNode { + computed: boolean; + object: Expression; + optional: boolean; + property: Expression | Identifier | PrivateIdentifier; +} +export declare interface MemberExpressionComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: true; + property: Expression; +} +export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: false; + property: Identifier | PrivateIdentifier; +} +export declare interface MetaProperty extends BaseNode { + type: AST_NODE_TYPES.MetaProperty; + meta: Identifier; + property: Identifier; +} +export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; +/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ +declare interface MethodDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + decorators: Decorator[]; + key: PropertyName; + kind: 'constructor' | 'get' | 'method' | 'set'; + optional: boolean; + override: boolean; + static: boolean; + value: FunctionExpression | TSEmptyBodyFunctionExpression; +} +export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare interface NewExpression extends BaseNode { + type: AST_NODE_TYPES.NewExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; +export declare interface NodeOrTokenData { + type: string; + /** + * The source location information of the node. + * + * The loc property is defined as nullable by ESTree, but ESLint requires this property. + */ + loc: SourceLocation; + range: Range; +} +export declare interface NullLiteral extends LiteralBase { + raw: 'null'; + value: null; +} +export declare interface NullToken extends BaseToken { + type: AST_TOKEN_TYPES.Null; +} +export declare interface NumberLiteral extends LiteralBase { + value: number; +} +export declare interface NumericToken extends BaseToken { + type: AST_TOKEN_TYPES.Numeric; +} +export declare interface ObjectExpression extends BaseNode { + type: AST_NODE_TYPES.ObjectExpression; + properties: ObjectLiteralElement[]; +} +export declare type ObjectLiteralElement = Property | SpreadElement; +export declare type ObjectLiteralElementLike = ObjectLiteralElement; +export declare interface ObjectPattern extends BaseNode { + type: AST_NODE_TYPES.ObjectPattern; + decorators: Decorator[]; + optional: boolean; + properties: (Property | RestElement)[]; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare type OptionalRangeAndLoc = { + loc?: SourceLocation; + range?: Range; +} & Pick>; +export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; +export declare interface Position { + /** + * Column number on the line (0-indexed) + */ + column: number; + /** + * Line number (1-indexed) + */ + line: number; +} +export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; +export declare interface PrivateIdentifier extends BaseNode { + type: AST_NODE_TYPES.PrivateIdentifier; + name: string; +} +export declare interface Program extends NodeOrTokenData { + type: AST_NODE_TYPES.Program; + body: ProgramStatement[]; + comments: Comment[] | undefined; + sourceType: 'module' | 'script'; + tokens: Token[] | undefined; +} +export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; +export declare type Property = PropertyComputedName | PropertyNonComputedName; +declare interface PropertyBase extends BaseNode { + type: AST_NODE_TYPES.Property; + computed: boolean; + key: PropertyName; + kind: 'get' | 'init' | 'set'; + method: boolean; + optional: boolean; + shorthand: boolean; + value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; +} +export declare interface PropertyComputedName extends PropertyBase { + computed: true; + key: PropertyNameComputed; +} +export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; +declare interface PropertyDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + declare: boolean; + decorators: Decorator[]; + definite: boolean; + key: PropertyName; + optional: boolean; + override: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; + value: Expression | null; +} +export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; +export declare type PropertyNameComputed = Expression; +export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; +export declare interface PropertyNonComputedName extends PropertyBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface PunctuatorToken extends BaseToken { + type: AST_TOKEN_TYPES.Punctuator; + value: ValueOf; +} +export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.AtToken]: '@'; + [SyntaxKind.BacktickToken]: '`'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.CloseBraceToken]: '}'; + [SyntaxKind.CloseBracketToken]: ']'; + [SyntaxKind.CloseParenToken]: ')'; + [SyntaxKind.ColonToken]: ':'; + [SyntaxKind.CommaToken]: ','; + [SyntaxKind.DotDotDotToken]: '...'; + [SyntaxKind.DotToken]: '.'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.EqualsGreaterThanToken]: '=>'; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.ExclamationToken]: '!'; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.HashToken]: '#'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanSlashToken]: '`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSInterfaceHeritage extends TSHeritageBase { + type: AST_NODE_TYPES.TSInterfaceHeritage; +} +export declare interface TSIntersectionType extends BaseNode { + type: AST_NODE_TYPES.TSIntersectionType; + types: TypeNode[]; +} +export declare interface TSIntrinsicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSIntrinsicKeyword; +} +export declare interface TSLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSLiteralType; + literal: LiteralExpression | UnaryExpression | UpdateExpression; +} +export declare interface TSMappedType extends BaseNode { + type: AST_NODE_TYPES.TSMappedType; + constraint: TypeNode; + key: Identifier; + nameType: TypeNode | null; + optional: boolean | '+' | '-' | undefined; + readonly: boolean | '+' | '-' | undefined; + typeAnnotation: TypeNode | undefined; + /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */ + typeParameter: TSTypeParameter; +} +export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; +declare interface TSMethodSignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSMethodSignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + kind: 'get' | 'method' | 'set'; + optional: boolean; + params: Parameter[]; + readonly: boolean; + returnType: TSTypeAnnotation | undefined; + static: boolean; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSModuleBlock extends BaseNode { + type: AST_NODE_TYPES.TSModuleBlock; + body: ProgramStatement[]; +} +export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; +declare interface TSModuleDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.TSModuleDeclaration; + /** + * The body of the module. + * This can only be `undefined` for the code `declare module 'mod';` + */ + body?: TSModuleBlock; + /** + * Whether the module is `declare`d + * @example + * ```ts + * declare namespace F {} + * ``` + */ + declare: boolean; + /** + * Whether this is a global declaration + * @example + * ```ts + * declare global {} + * ``` + * + * @deprecated Use {@link kind} instead + */ + global: boolean; + /** + * The name of the module + * ``` + * namespace A {} + * namespace A.B.C {} + * module 'a' {} + * ``` + */ + id: Identifier | Literal | TSQualifiedName; + /** + * The keyword used to define this module declaration + * @example + * ```ts + * namespace Foo {} + * ^^^^^^^^^ + * + * module 'foo' {} + * ^^^^^^ + * + * global {} + * ^^^^^^ + * ``` + */ + kind: TSModuleDeclarationKind; +} +export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { + body: TSModuleBlock; + /** + * This will always be an Identifier with name `global` + */ + id: Identifier; + kind: 'global'; +} +export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; +export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; +declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { + kind: 'module'; +} +/** + * The legacy module declaration, replaced with namespace declarations. + * ``` + * module A {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + id: Identifier; + kind: 'module'; +} +export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; +/** + * A string module declaration that is declared: + * ``` + * declare module 'foo' {} + * declare module 'foo'; + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { + body?: TSModuleBlock; + declare: true; + id: StringLiteral; + kind: 'module'; +} +/** + * A string module declaration that is not declared: + * ``` + * module 'foo' {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + declare: false; + id: StringLiteral; + kind: 'module'; +} +export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { + body: TSModuleBlock; + id: Identifier | TSQualifiedName; + kind: 'namespace'; +} +export declare interface TSNamedTupleMember extends BaseNode { + type: AST_NODE_TYPES.TSNamedTupleMember; + elementType: TypeNode; + label: Identifier; + optional: boolean; +} +/** + * For the following declaration: + * ``` + * export as namespace X; + * ``` + */ +export declare interface TSNamespaceExportDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSNamespaceExportDeclaration; + /** + * The name of the global variable that's exported as namespace + */ + id: Identifier; +} +export declare interface TSNeverKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNeverKeyword; +} +export declare interface TSNonNullExpression extends BaseNode { + type: AST_NODE_TYPES.TSNonNullExpression; + expression: Expression; +} +export declare interface TSNullKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNullKeyword; +} +export declare interface TSNumberKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNumberKeyword; +} +export declare interface TSObjectKeyword extends BaseNode { + type: AST_NODE_TYPES.TSObjectKeyword; +} +export declare interface TSOptionalType extends BaseNode { + type: AST_NODE_TYPES.TSOptionalType; + typeAnnotation: TypeNode; +} +export declare interface TSParameterProperty extends BaseNode { + type: AST_NODE_TYPES.TSParameterProperty; + accessibility: Accessibility | undefined; + decorators: Decorator[]; + override: boolean; + parameter: AssignmentPattern | BindingName | RestElement; + readonly: boolean; + static: boolean; +} +export declare interface TSPrivateKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPrivateKeyword; +} +export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; +declare interface TSPropertySignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSPropertySignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + optional: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSProtectedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSProtectedKeyword; +} +export declare interface TSPublicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPublicKeyword; +} +export declare interface TSQualifiedName extends BaseNode { + type: AST_NODE_TYPES.TSQualifiedName; + left: EntityName; + right: Identifier; +} +export declare interface TSReadonlyKeyword extends BaseNode { + type: AST_NODE_TYPES.TSReadonlyKeyword; +} +export declare interface TSRestType extends BaseNode { + type: AST_NODE_TYPES.TSRestType; + typeAnnotation: TypeNode; +} +export declare interface TSSatisfiesExpression extends BaseNode { + type: AST_NODE_TYPES.TSSatisfiesExpression; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSStaticKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStaticKeyword; +} +export declare interface TSStringKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStringKeyword; +} +export declare interface TSSymbolKeyword extends BaseNode { + type: AST_NODE_TYPES.TSSymbolKeyword; +} +export declare interface TSTemplateLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSTemplateLiteralType; + quasis: TemplateElement[]; + types: TypeNode[]; +} +export declare interface TSThisType extends BaseNode { + type: AST_NODE_TYPES.TSThisType; +} +export declare interface TSTupleType extends BaseNode { + type: AST_NODE_TYPES.TSTupleType; + elementTypes: TypeNode[]; +} +export declare interface TSTypeAliasDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeAliasDeclaration; + /** + * Whether the type was `declare`d. + * @example + * ```ts + * declare type T = 1; + * ``` + */ + declare: boolean; + /** + * The name of the type. + */ + id: Identifier; + /** + * The "value" (type) of the declaration + */ + typeAnnotation: TypeNode; + /** + * The generic type parameters declared for the type. Empty declaration + * (`<>`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSTypeAnnotation extends BaseNode { + type: AST_NODE_TYPES.TSTypeAnnotation; + typeAnnotation: TypeNode; +} +export declare interface TSTypeAssertion extends BaseNode { + type: AST_NODE_TYPES.TSTypeAssertion; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSTypeLiteral extends BaseNode { + type: AST_NODE_TYPES.TSTypeLiteral; + members: TypeElement[]; +} +export declare interface TSTypeOperator extends BaseNode { + type: AST_NODE_TYPES.TSTypeOperator; + operator: 'keyof' | 'readonly' | 'unique'; + typeAnnotation: TypeNode | undefined; +} +export declare interface TSTypeParameter extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameter; + const: boolean; + constraint: TypeNode | undefined; + default: TypeNode | undefined; + in: boolean; + name: Identifier; + out: boolean; +} +export declare interface TSTypeParameterDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterDeclaration; + params: TSTypeParameter[]; +} +export declare interface TSTypeParameterInstantiation extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterInstantiation; + params: TypeNode[]; +} +export declare interface TSTypePredicate extends BaseNode { + type: AST_NODE_TYPES.TSTypePredicate; + asserts: boolean; + parameterName: Identifier | TSThisType; + typeAnnotation: TSTypeAnnotation | null; +} +export declare interface TSTypeQuery extends BaseNode { + type: AST_NODE_TYPES.TSTypeQuery; + exprName: EntityName | TSImportType; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface TSTypeReference extends BaseNode { + type: AST_NODE_TYPES.TSTypeReference; + typeArguments: TSTypeParameterInstantiation | undefined; + typeName: EntityName; +} +export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; +export declare interface TSUndefinedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUndefinedKeyword; +} +export declare interface TSUnionType extends BaseNode { + type: AST_NODE_TYPES.TSUnionType; + types: TypeNode[]; +} +export declare interface TSUnknownKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUnknownKeyword; +} +export declare interface TSVoidKeyword extends BaseNode { + type: AST_NODE_TYPES.TSVoidKeyword; +} +export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; +export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; +export declare interface UnaryExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UnaryExpression; + operator: '!' | '+' | '~' | '-' | 'delete' | 'typeof' | 'void'; +} +declare interface UnaryExpressionBase extends BaseNode { + argument: Expression; + operator: string; + prefix: boolean; +} +export declare interface UpdateExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UpdateExpression; + operator: '++' | '--'; +} +export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration; +declare interface UsingDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * This value will always be `false` + * because 'declare' modifier cannot appear on a 'using' declaration. + */ + declare: false; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * using x = 1; + * await using y = 2; + * ``` + */ + kind: 'await using' | 'using'; +} +export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNormalContextDeclarator; +export declare interface UsingInForOfDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always has exactly one element. + * @example + * ```ts + * for (using x of y) {} + * ``` + */ + declarations: [UsingInForOfDeclarator]; +} +export declare interface UsingInForOfDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: null; +} +export declare interface UsingInNormalContextDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * using x = 1; + * using y = 1, z = 2; + * ``` + */ + declarations: UsingInNormalContextDeclarator[]; +} +export declare interface UsingInNormalContextDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: Expression; +} +declare type ValueOf = T[keyof T]; +export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration; +export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator; +declare interface VariableDeclaratorBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclarator; + /** + * Whether there's definite assignment assertion (`let x!: number`). + * If `true`, then: `id` must be an identifier with a type annotation, + * `init` must be `null`, and the declarator must be a `var`/`let` declarator. + */ + definite: boolean; + /** + * The name(s) of the variable(s). + */ + id: BindingName; + /** + * The initializer expression of the variable. Must be present for `const` unless + * in a `declare const`. + */ + init: Expression | null; +} +export declare interface VariableDeclaratorDefiniteAssignment extends VariableDeclaratorBase { + definite: true; + /** + * The name of the variable. Must have a type annotation. + */ + id: Identifier; + init: null; +} +export declare interface VariableDeclaratorMaybeInit extends VariableDeclaratorBase { + definite: false; +} +export declare interface VariableDeclaratorNoInit extends VariableDeclaratorBase { + definite: false; + init: null; +} +export declare interface WhileStatement extends BaseNode { + type: AST_NODE_TYPES.WhileStatement; + body: Statement; + test: Expression; +} +export declare interface WithStatement extends BaseNode { + type: AST_NODE_TYPES.WithStatement; + body: Statement; + object: Expression; +} +export declare interface YieldExpression extends BaseNode { + type: AST_NODE_TYPES.YieldExpression; + argument: Expression | undefined; + delegate: boolean; +} +export {}; +//# sourceMappingURL=ast-spec.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map new file mode 100644 index 00000000..92d884b7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.d.ts","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;gDAQgD;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvE,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAChC,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,4BACvB,SAAQ,kCAAkC;IAC1C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,+BACvB,SAAQ,qCAAqC;IAC7C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC;;OAEG;IACH,QAAQ,EAAE,CAAC,UAAU,GAAG,aAAa,GAAG,IAAI,CAAC,EAAE,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,YAAa,SAAQ,QAAQ;IACpD,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC;IAClC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,oBAAoB,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,QAAQ;IAC/D,IAAI,EAAE,cAAc,CAAC,uBAAuB,CAAC;IAC7C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M,CAAC,OAAO,WAAW,oCACvB,SAAQ,sBAAsB;IAC9B,QAAQ,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,UAAU,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,2BACvB,SAAQ,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,wBACvB,SAAQ,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,cAAe,SAAQ,QAAQ;IACtD,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,aAAc,SAAQ,QAAQ;IACrD,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js new file mode 100644 index 00000000..45d31f46 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js @@ -0,0 +1,200 @@ +"use strict"; +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var AST_NODE_TYPES; +(function (AST_NODE_TYPES) { + AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty"; + AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression"; + AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern"; + AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression"; + AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression"; + AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern"; + AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression"; + AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression"; + AST_NODE_TYPES["BlockStatement"] = "BlockStatement"; + AST_NODE_TYPES["BreakStatement"] = "BreakStatement"; + AST_NODE_TYPES["CallExpression"] = "CallExpression"; + AST_NODE_TYPES["CatchClause"] = "CatchClause"; + AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; + AST_NODE_TYPES["ClassBody"] = "ClassBody"; + AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; + AST_NODE_TYPES["ClassExpression"] = "ClassExpression"; + AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression"; + AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement"; + AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement"; + AST_NODE_TYPES["Decorator"] = "Decorator"; + AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement"; + AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement"; + AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration"; + AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; + AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration"; + AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier"; + AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement"; + AST_NODE_TYPES["ForInStatement"] = "ForInStatement"; + AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement"; + AST_NODE_TYPES["ForStatement"] = "ForStatement"; + AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration"; + AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression"; + AST_NODE_TYPES["Identifier"] = "Identifier"; + AST_NODE_TYPES["IfStatement"] = "IfStatement"; + AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute"; + AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration"; + AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; + AST_NODE_TYPES["ImportExpression"] = "ImportExpression"; + AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; + AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier"; + AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute"; + AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement"; + AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment"; + AST_NODE_TYPES["JSXElement"] = "JSXElement"; + AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression"; + AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer"; + AST_NODE_TYPES["JSXFragment"] = "JSXFragment"; + AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression"; + AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName"; + AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement"; + AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment"; + AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute"; + AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild"; + AST_NODE_TYPES["JSXText"] = "JSXText"; + AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement"; + AST_NODE_TYPES["Literal"] = "Literal"; + AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression"; + AST_NODE_TYPES["MemberExpression"] = "MemberExpression"; + AST_NODE_TYPES["MetaProperty"] = "MetaProperty"; + AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition"; + AST_NODE_TYPES["NewExpression"] = "NewExpression"; + AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression"; + AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; + AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier"; + AST_NODE_TYPES["Program"] = "Program"; + AST_NODE_TYPES["Property"] = "Property"; + AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition"; + AST_NODE_TYPES["RestElement"] = "RestElement"; + AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement"; + AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression"; + AST_NODE_TYPES["SpreadElement"] = "SpreadElement"; + AST_NODE_TYPES["StaticBlock"] = "StaticBlock"; + AST_NODE_TYPES["Super"] = "Super"; + AST_NODE_TYPES["SwitchCase"] = "SwitchCase"; + AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement"; + AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression"; + AST_NODE_TYPES["TemplateElement"] = "TemplateElement"; + AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral"; + AST_NODE_TYPES["ThisExpression"] = "ThisExpression"; + AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement"; + AST_NODE_TYPES["TryStatement"] = "TryStatement"; + AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression"; + AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression"; + AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration"; + AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator"; + AST_NODE_TYPES["WhileStatement"] = "WhileStatement"; + AST_NODE_TYPES["WithStatement"] = "WithStatement"; + AST_NODE_TYPES["YieldExpression"] = "YieldExpression"; + AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; + AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword"; + AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; + AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; + AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword"; + AST_NODE_TYPES["TSArrayType"] = "TSArrayType"; + AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression"; + AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; + AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; + AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; + AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; + AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; + AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; + AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; + AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; + AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; + AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; + AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; + AST_NODE_TYPES["TSEnumBody"] = "TSEnumBody"; + AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; + AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember"; + AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment"; + AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword"; + AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; + AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; + AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; + AST_NODE_TYPES["TSImportType"] = "TSImportType"; + AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; + AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; + AST_NODE_TYPES["TSInferType"] = "TSInferType"; + AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression"; + AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; + AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; + AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; + AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; + AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; + AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; + AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; + AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; + AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; + AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; + AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; + AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; + AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; + AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; + AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; + AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; + AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; + AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; + AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; + AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; + AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; + AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword"; + AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword"; + AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName"; + AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword"; + AST_NODE_TYPES["TSRestType"] = "TSRestType"; + AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression"; + AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword"; + AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword"; + AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword"; + AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType"; + AST_NODE_TYPES["TSThisType"] = "TSThisType"; + AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; + AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; + AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; + AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; + AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; + AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator"; + AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter"; + AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; + AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; + AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; + AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; + AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; + AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; + AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; + AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; + AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; +})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {})); +var AST_TOKEN_TYPES; +(function (AST_TOKEN_TYPES) { + AST_TOKEN_TYPES["Boolean"] = "Boolean"; + AST_TOKEN_TYPES["Identifier"] = "Identifier"; + AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_TOKEN_TYPES["JSXText"] = "JSXText"; + AST_TOKEN_TYPES["Keyword"] = "Keyword"; + AST_TOKEN_TYPES["Null"] = "Null"; + AST_TOKEN_TYPES["Numeric"] = "Numeric"; + AST_TOKEN_TYPES["Punctuator"] = "Punctuator"; + AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression"; + AST_TOKEN_TYPES["String"] = "String"; + AST_TOKEN_TYPES["Template"] = "Template"; + AST_TOKEN_TYPES["Block"] = "Block"; + AST_TOKEN_TYPES["Line"] = "Line"; +})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); +//# sourceMappingURL=ast-spec.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map new file mode 100644 index 00000000..2bbef05b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cAyKX;AAzKD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACr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AA;IAC3C,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,mDAAiC,CAAA;IACjC,6DAA2C,CAAA;IAC3C,uDAAqC,CAAA;IACrC,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,yDAAuC,CAAA;IACvC,2CAAyB,CAAA;IACzB,iEAA+C,CAAA;IAC/C,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,mEAAiD,CAAA;IACjD,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,2EAAyD,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EAzKW,cAAc,8BAAd,cAAc,QAyKzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts new file mode 100644 index 00000000..3d39147f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts @@ -0,0 +1,5 @@ +export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; +export * from './lib'; +export * from './parser-options'; +export * from './ts-estree'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts.map new file mode 100644 index 00000000..6a86c537 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js new file mode 100644 index 00000000..00ff6a17 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js @@ -0,0 +1,24 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var ast_spec_1 = require("./generated/ast-spec"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } }); +__exportStar(require("./lib"), exports); +__exportStar(require("./parser-options"), exports); +__exportStar(require("./ts-estree"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js.map new file mode 100644 index 00000000..075ac156 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts new file mode 100644 index 00000000..d007fce8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts @@ -0,0 +1,3 @@ +type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable'; +export { Lib }; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts.map new file mode 100644 index 00000000..51e8fd13 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,YAAY,GACZ,mBAAmB,GACnB,KAAK,GACL,mBAAmB,GACnB,cAAc,GACd,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,mBAAmB,GACnB,aAAa,GACb,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,oBAAoB,GACpB,QAAQ,GACR,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,eAAe,GACf,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,cAAc,GACd,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,KAAK,GACL,YAAY,GACZ,WAAW,GACX,yBAAyB,GACzB,yBAAyB,GACzB,oBAAoB,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js new file mode 100644 index 00000000..6d09838c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js @@ -0,0 +1,7 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js.map new file mode 100644 index 00000000..3ee438a9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts new file mode 100644 index 00000000..bf097423 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts @@ -0,0 +1,69 @@ +import type { Program } from 'typescript'; +import type { Lib } from './lib'; +type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[]; +type CacheDurationSeconds = number | 'Infinity'; +type EcmaVersion = 'latest' | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | undefined; +type SourceTypeClassic = 'module' | 'script'; +type SourceType = 'commonjs' | SourceTypeClassic; +type JSDocParsingMode = 'all' | 'none' | 'type-info'; +/** + * Granular options to configure the project service. + */ +interface ProjectServiceOptions { + /** + * Globs of files to allow running with the default project compiler options + * despite not being matched by the project service. + */ + allowDefaultProject?: string[]; + /** + * Path to a TSConfig to use instead of TypeScript's default project configuration. + * @default 'tsconfig.json' + */ + defaultProject?: string; + /** + * Whether to allow TypeScript plugins as configured in the TSConfig. + */ + loadTypeScriptPlugins?: boolean; + /** + * The maximum number of files {@link allowDefaultProject} may match. + * Each file match slows down linting, so if you do need to use this, please + * file an informative issue on typescript-eslint explaining why - so we can + * help you avoid using it! + * @default 8 + */ + maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number; +} +interface ParserOptions { + [additionalProperties: string]: unknown; + cacheLifetime?: { + glob?: CacheDurationSeconds; + }; + debugLevel?: DebugLevel; + ecmaFeatures?: { + [key: string]: unknown; + globalReturn?: boolean | undefined; + jsx?: boolean | undefined; + } | undefined; + ecmaVersion?: EcmaVersion; + emitDecoratorMetadata?: boolean; + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + errorOnUnknownASTType?: boolean; + experimentalDecorators?: boolean; + extraFileExtensions?: string[]; + filePath?: string; + jsDocParsingMode?: JSDocParsingMode; + jsxFragmentName?: string | null; + jsxPragma?: string | null; + lib?: Lib[]; + programs?: Program[] | null; + project?: boolean | string | string[] | null; + projectFolderIgnoreList?: string[]; + projectService?: boolean | ProjectServiceOptions; + range?: boolean; + sourceType?: SourceType | undefined; + tokens?: boolean; + tsconfigRootDir?: string; + warnOnUnsupportedTypeScriptVersion?: boolean; +} +export type { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, ProjectServiceOptions, SourceType, }; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map new file mode 100644 index 00000000..ff550366 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,OAAO,GAAG,CAAC,QAAQ,GAAG,YAAY,GAAG,mBAAmB,CAAC,EAAE,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,QAAQ,GACR,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,CAAC;AAEd,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,KAAK,UAAU,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEjD,KAAK,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC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B,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAAC;IACjD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,YAAY,EACV,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,UAAU,GACX,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts new file mode 100644 index 00000000..56266642 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts @@ -0,0 +1,173 @@ +import type * as TSESTree from './generated/ast-spec'; +declare module './generated/ast-spec' { + interface BaseNode { + parent: TSESTree.Node; + } + interface Program { + /** + * @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly. + */ + parent?: never; + } + interface AccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface AccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface VariableDeclaratorDefiniteAssignment { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorMaybeInit { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorNoInit { + parent: TSESTree.VariableDeclaration; + } + interface UsingInForOfDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface UsingInNormalContextDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface CatchClause { + parent: TSESTree.TryStatement; + } + interface ClassBody { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface ImportAttribute { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface ImportDefaultSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportNamespaceSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportSpecifier { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface JSXAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface JSXClosingElement { + parent: TSESTree.JSXElement; + } + interface JSXClosingFragment { + parent: TSESTree.JSXFragment; + } + interface JSXOpeningElement { + parent: TSESTree.JSXElement; + } + interface JSXOpeningFragment { + parent: TSESTree.JSXFragment; + } + interface JSXSpreadAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface MethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface MethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyNonComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface SpreadElement { + parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.NewExpression | TSESTree.ObjectExpression; + } + interface StaticBlock { + parent: TSESTree.ClassBody; + } + interface SwitchCase { + parent: TSESTree.SwitchStatement; + } + interface TemplateElement { + parent: TSESTree.TemplateLiteral | TSESTree.TSTemplateLiteralType; + } + interface TSCallSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSConstructSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSClassImplements { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface TSEnumBody { + parent: TSESTree.TSEnumDeclaration; + } + interface TSEnumMemberComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSEnumMemberNonComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSIndexSignature { + parent: TSESTree.ClassBody | TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSInterfaceBody { + parent: TSESTree.TSInterfaceDeclaration; + } + interface TSInterfaceHeritage { + parent: TSESTree.TSInterfaceBody; + } + interface TSMethodSignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSMethodSignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSModuleBlock { + parent: TSESTree.TSModuleDeclaration; + } + interface TSParameterProperty { + parent: TSESTree.FunctionLike; + } + interface TSPropertySignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSPropertySignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSTypeParameter { + parent: TSESTree.TSInferType | TSESTree.TSMappedType | TSESTree.TSTypeParameterDeclaration; + } + interface ExportSpecifierWithIdentifierLocal { + parent: TSESTree.ExportNamedDeclaration; + } + interface ExportSpecifierWithStringOrLiteralLocal { + parent: TSESTree.ExportNamedDeclaration; + } +} +export * as TSESTree from './generated/ast-spec'; +//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map new file mode 100644 index 00000000..975e02e1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;IAED,UAAU,4BAA4B;QACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,sCAAsC;QAC9C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,yCAAyC;QACjD,MAAM,EAA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QAC1C,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IAED,UAAU,eAAe;QACvB,MAAM,EACF,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,0BAA0B,CAAC;KACzC;IAED,UAAU,kCAAkC;QAC1C,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;KACzC;IACD,UAAU,uCAAuC;QAC/C,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;KACzC;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js new file mode 100644 index 00000000..9e361e6e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js @@ -0,0 +1,38 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = void 0; +exports.TSESTree = __importStar(require("./generated/ast-spec")); +//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js.map new file mode 100644 index 00000000..ac9ead2c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/dist/ts-estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkOA,iEAAiD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/package.json b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/package.json new file mode 100644 index 00000000..a6e1dd8c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types/package.json @@ -0,0 +1,88 @@ +{ + "name": "@typescript-eslint/types", + "version": "8.17.0", + "description": "Types for the TypeScript-ESTree AST spec", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/types" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "copy-ast-spec": "tsx ./tools/copy-ast-spec.ts", + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx run scope-manager:generate-lib", + "lint": "npx nx lint", + "typecheck": "tsc --noEmit" + }, + "nx": { + "targets": { + "copy-ast-spec": { + "dependsOn": [ + "^build" + ], + "outputs": [ + "{projectRoot}/src/generated" + ], + "cache": true + }, + "build": { + "dependsOn": [ + "^build", + "copy-ast-spec" + ] + } + } + }, + "devDependencies": { + "@jest/types": "29.6.3", + "downlevel-dts": "*", + "prettier": "^3.2.5", + "rimraf": "*", + "tsx": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/LICENSE b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/LICENSE new file mode 100644 index 00000000..26018f87 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/LICENSE @@ -0,0 +1,28 @@ +BSD 2-Clause License + +TypeScript ESTree + +Originally extracted from: + +TypeScript ESLint Parser +Copyright JS Foundation and other contributors, https://js.foundation + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/README.md b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/README.md new file mode 100644 index 00000000..c98838da --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/README.md @@ -0,0 +1,14 @@ +# `@typescript-eslint/typescript-estree` + +> A parser that produces an ESTree-compatible AST for TypeScript code. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +## Contributing + +👉 See **https://typescript-eslint.io/packages/typescript-estree** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts new file mode 100644 index 00000000..684f35a8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts @@ -0,0 +1,9 @@ +import type { SourceFile } from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParseSettings } from './parseSettings'; +import type { TSESTree } from './ts-estree'; +export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { + astMaps: ASTMaps; + estree: TSESTree.Program; +}; +//# sourceMappingURL=ast-converter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map new file mode 100644 index 00000000..8da91fde --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAA;CAAE,CA4DhD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js new file mode 100644 index 00000000..9435609a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.astConverter = astConverter; +const convert_1 = require("./convert"); +const convert_comments_1 = require("./convert-comments"); +const node_utils_1 = require("./node-utils"); +const simple_traverse_1 = require("./simple-traverse"); +function astConverter(ast, parseSettings, shouldPreserveNodeMaps) { + /** + * The TypeScript compiler produced fundamental parse errors when parsing the + * source. + */ + const { parseDiagnostics } = ast; + if (parseDiagnostics.length) { + throw (0, convert_1.convertError)(parseDiagnostics[0]); + } + /** + * Recursively convert the TypeScript AST into an ESTree-compatible AST + */ + const instance = new convert_1.Converter(ast, { + allowInvalidAST: parseSettings.allowInvalidAST, + errorOnUnknownASTType: parseSettings.errorOnUnknownASTType, + shouldPreserveNodeMaps, + suppressDeprecatedPropertyWarnings: parseSettings.suppressDeprecatedPropertyWarnings, + }); + const estree = instance.convertProgram(); + /** + * Optionally remove range and loc if specified + */ + if (!parseSettings.range || !parseSettings.loc) { + (0, simple_traverse_1.simpleTraverse)(estree, { + enter: node => { + if (!parseSettings.range) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.range; + } + if (!parseSettings.loc) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.loc; + } + }, + }); + } + /** + * Optionally convert and include all tokens in the AST + */ + if (parseSettings.tokens) { + estree.tokens = (0, node_utils_1.convertTokens)(ast); + } + /** + * Optionally convert and include all comments in the AST + */ + if (parseSettings.comment) { + estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.codeFullText); + } + const astMaps = instance.getASTMaps(); + return { astMaps, estree }; +} +//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map new file mode 100644 index 00000000..af967afe --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":";;AAWA,oCAgEC;AArED,uCAAoD;AACpD,yDAAqD;AACrD,6CAA6C;AAC7C,uDAAmD;AAEnD,SAAgB,YAAY,CAC1B,GAAe,EACf,aAA4B,EAC5B,sBAA+B;IAE/B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,MAAM,IAAA,sBAAY,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,MAAM,QAAQ,GAAG,IAAI,mBAAS,CAAC,GAAG,EAAE;QAClC,eAAe,EAAE,aAAa,CAAC,eAAe;QAC9C,qBAAqB,EAAE,aAAa,CAAC,qBAAqB;QAC1D,sBAAsB;QACtB,kCAAkC,EAChC,aAAa,CAAC,kCAAkC;KACnD,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QAC/C,IAAA,gCAAc,EAAC,MAAM,EAAE;YACrB,KAAK,EAAE,IAAI,CAAC,EAAE;gBACZ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;oBACzB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,KAAK,CAAC;gBACpB,CAAC;gBACD,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;oBACvB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,GAAG,CAAC;gBAClB,CAAC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,CAAC,MAAM,GAAG,IAAA,0BAAa,EAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,MAAM,CAAC,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts new file mode 100644 index 00000000..18457024 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts @@ -0,0 +1,10 @@ +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +export declare function clearCaches(): void; +export declare const clearProgramCache: typeof clearCaches; +//# sourceMappingURL=clear-caches.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map new file mode 100644 index 00000000..eeec191b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js new file mode 100644 index 00000000..e8b8c7df --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearProgramCache = void 0; +exports.clearCaches = clearCaches; +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const parser_1 = require("./parser"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const resolveProjectList_1 = require("./parseSettings/resolveProjectList"); +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +function clearCaches() { + (0, parser_1.clearDefaultProjectMatchedFiles)(); + (0, parser_1.clearProgramCache)(); + (0, getWatchProgramsForProjects_1.clearWatchCaches)(); + (0, createParseSettings_1.clearTSConfigMatchCache)(); + (0, createParseSettings_1.clearTSServerProjectService)(); + (0, resolveProjectList_1.clearGlobCache)(); +} +// TODO - delete this in next major +exports.clearProgramCache = clearCaches; +//# sourceMappingURL=clear-caches.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map new file mode 100644 index 00000000..eacff3a6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAkBA,kCAOC;AAzBD,8FAAgF;AAChF,qCAGkB;AAClB,6EAG6C;AAC7C,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,wCAA+B,GAAE,CAAC;IAClC,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,iDAA2B,GAAE,CAAC;IAC9B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts new file mode 100644 index 00000000..bdf93691 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts @@ -0,0 +1,11 @@ +import * as ts from 'typescript'; +import type { TSESTree } from './ts-estree'; +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; +//# sourceMappingURL=convert-comments.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map new file mode 100644 index 00000000..4ac22871 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js new file mode 100644 index 00000000..31aca933 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js @@ -0,0 +1,72 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertComments = convertComments; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +function convertComments(ast, code) { + const comments = []; + tsutils.forEachComment(ast, (_, comment) => { + const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? ts_estree_1.AST_TOKEN_TYPES.Line + : ts_estree_1.AST_TOKEN_TYPES.Block; + const range = [comment.pos, comment.end]; + const loc = (0, node_utils_1.getLocFor)(range, ast); + // both comments start with 2 characters - /* or // + const textStart = range[0] + 2; + const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? // single line comments end at the end + range[1] - textStart + : // multiline comments end 2 characters early + range[1] - textStart - 2; + comments.push({ + type, + loc, + range, + value: code.slice(textStart, textStart + textEnd), + }); + }, ast); + return comments; +} +//# sourceMappingURL=convert-comments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map new file mode 100644 index 00000000..f4addc76 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.js","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,0CAmCC;AAlDD,sDAAwC;AACxC,+CAAiC;AAIjC,6CAAyC;AACzC,2CAA8C;AAE9C;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,GAAkB,EAClB,IAAY;IAEZ,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,OAAO,CAAC,cAAc,CACpB,GAAG,EACH,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACb,MAAM,IAAI,GACR,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,2BAAe,CAAC,IAAI;YACtB,CAAC,CAAC,2BAAe,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,GAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAA,sBAAS,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,mDAAmD;QACnD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,sCAAsC;gBACtC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS;YACtB,CAAC,CAAC,4CAA4C;gBAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI;YACJ,GAAG;YACH,KAAK;YACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;SAClD,CAAC,CAAC;IACL,CAAC,EACD,GAAG,CACJ,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts new file mode 100644 index 00000000..eec3ee4c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts @@ -0,0 +1,137 @@ +import * as ts from 'typescript'; +import type { TSError } from './node-utils'; +import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; +import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; +import type { TSESTree, TSNode } from './ts-estree'; +export interface ConverterOptions { + allowInvalidAST?: boolean; + errorOnUnknownASTType?: boolean; + shouldPreserveNodeMaps?: boolean; + suppressDeprecatedPropertyWarnings?: boolean; +} +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError; +export interface ASTMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export declare class Converter { + #private; + private allowPattern; + private readonly ast; + private readonly esTreeNodeToTSNodeMap; + private readonly options; + private readonly tsNodeToESTreeNodeMap; + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast: ts.SourceFile, options?: ConverterOptions); + private assertModuleSpecifier; + private convertBindingNameWithTypeAnnotation; + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + private convertBodyExpressions; + private convertChainExpression; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertChild; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertPattern; + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + private convertTypeAnnotation; + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + private convertTypeArgumentsToTypeParameterInstantiation; + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + private convertTSTypeParametersToTypeParametersDeclaration; + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + private convertParameters; + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + private converter; + private convertImportAttributes; + private convertJSXIdentifier; + private convertJSXNamespaceOrIdentifier; + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + private convertJSXTagName; + private convertMethodSignature; + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + private fixParentLocation; + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + private convertNode; + private createNode; + convertProgram(): TSESTree.Program; + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + private deeplyCopy; + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + private fixExports; + getASTMaps(): ASTMaps; + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + private registerTSNodeInNodeMap; +} +//# sourceMappingURL=convert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map new file mode 100644 index 00000000..92463b3c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO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MG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IA49EnB,OAAO,CAAC,UAAU;IAelB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAiFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js new file mode 100644 index 00000000..7d868416 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js @@ -0,0 +1,2681 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Converter = void 0; +exports.convertError = convertError; +// There's lots of funny stuff due to the typing of ts.Node +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */ +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +const SyntaxKind = ts.SyntaxKind; +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +function convertError(error) { + return (0, node_utils_1.createError)(('message' in error && error.message) || error.messageText, error.file, error.start); +} +class Converter { + allowPattern = false; + ast; + esTreeNodeToTSNodeMap = new WeakMap(); + options; + tsNodeToESTreeNodeMap = new WeakMap(); + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast, options) { + this.ast = ast; + this.options = { ...options }; + } + #checkForStatementDeclaration(initializer, kind) { + const loop = kind === ts.SyntaxKind.ForInStatement ? 'for...in' : 'for...of'; + if (ts.isVariableDeclarationList(initializer)) { + if (initializer.declarations.length !== 1) { + this.#throwError(initializer, `Only a single variable declaration is allowed in a '${loop}' statement.`); + } + const declaration = initializer.declarations[0]; + if (declaration.initializer) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have an initializer.`); + } + else if (declaration.type) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have a type annotation.`); + } + if (kind === ts.SyntaxKind.ForInStatement && + initializer.flags & ts.NodeFlags.Using) { + this.#throwError(initializer, "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."); + } + } + else if (!(0, node_utils_1.isValidAssignmentTarget)(initializer) && + initializer.kind !== ts.SyntaxKind.ObjectLiteralExpression && + initializer.kind !== ts.SyntaxKind.ArrayLiteralExpression) { + this.#throwError(initializer, `The left-hand side of a '${loop}' statement must be a variable or a property access.`); + } + } + #checkModifiers(node) { + if (this.options.allowInvalidAST) { + return; + } + // typescript<5.0.0 + if ((0, node_utils_1.nodeHasIllegalDecorators)(node)) { + this.#throwError(node.illegalDecorators[0], 'Decorators are not valid here.'); + } + for (const decorator of (0, getModifiers_1.getDecorators)(node, + /* includeIllegalDecorators */ true) ?? []) { + // `checkGrammarModifiers` function in typescript + if (!(0, node_utils_1.nodeCanBeDecorated)(node)) { + if (ts.isMethodDeclaration(node) && !(0, node_utils_1.nodeIsPresent)(node.body)) { + this.#throwError(decorator, 'A decorator can only decorate a method implementation, not an overload.'); + } + else { + this.#throwError(decorator, 'Decorators are not valid here.'); + } + } + } + for (const modifier of (0, getModifiers_1.getModifiers)(node, + /* includeIllegalModifiers */ true) ?? []) { + if (modifier.kind !== SyntaxKind.ReadonlyKeyword) { + if (node.kind === SyntaxKind.PropertySignature || + node.kind === SyntaxKind.MethodSignature) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type member`); + } + if (node.kind === SyntaxKind.IndexSignature && + (modifier.kind !== SyntaxKind.StaticKeyword || + !ts.isClassLike(node.parent))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on an index signature`); + } + } + if (modifier.kind !== SyntaxKind.InKeyword && + modifier.kind !== SyntaxKind.OutKeyword && + modifier.kind !== SyntaxKind.ConstKeyword && + node.kind === SyntaxKind.TypeParameter) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type parameter`); + } + if ((modifier.kind === SyntaxKind.InKeyword || + modifier.kind === SyntaxKind.OutKeyword) && + (node.kind !== SyntaxKind.TypeParameter || + !(ts.isInterfaceDeclaration(node.parent) || + ts.isClassLike(node.parent) || + ts.isTypeAliasDeclaration(node.parent)))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`); + } + if (modifier.kind === SyntaxKind.ReadonlyKeyword && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.PropertySignature && + node.kind !== SyntaxKind.IndexSignature && + node.kind !== SyntaxKind.Parameter) { + this.#throwError(modifier, "'readonly' modifier can only appear on a property declaration or index signature."); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isClassLike(node.parent) && + !ts.isPropertyDeclaration(node)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on class elements of this kind.`); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isVariableStatement(node)) { + const declarationKind = (0, node_utils_1.getDeclarationKind)(node.declarationList); + if (declarationKind === 'using' || declarationKind === 'await using') { + this.#throwError(modifier, `'declare' modifier cannot appear on a '${declarationKind}' declaration.`); + } + } + if (modifier.kind === SyntaxKind.AbstractKeyword && + node.kind !== SyntaxKind.ClassDeclaration && + node.kind !== SyntaxKind.ConstructorType && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.GetAccessor && + node.kind !== SyntaxKind.SetAccessor) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`); + } + if ((modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) && + (node.parent.kind === SyntaxKind.ModuleBlock || + node.parent.kind === SyntaxKind.SourceFile)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a module or namespace element.`); + } + if (modifier.kind === SyntaxKind.AccessorKeyword && + node.kind !== SyntaxKind.PropertyDeclaration) { + this.#throwError(modifier, "'accessor' modifier can only appear on a property declaration."); + } + // `checkGrammarAsyncModifier` function in `typescript` + if (modifier.kind === SyntaxKind.AsyncKeyword && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.FunctionDeclaration && + node.kind !== SyntaxKind.FunctionExpression && + node.kind !== SyntaxKind.ArrowFunction) { + this.#throwError(modifier, "'async' modifier cannot be used here."); + } + // `checkGrammarModifiers` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + (modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.ExportKeyword || + modifier.kind === SyntaxKind.DeclareKeyword || + modifier.kind === SyntaxKind.AsyncKeyword)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a parameter.`); + } + // `checkGrammarModifiers` function in `typescript` + if (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) { + for (const anotherModifier of (0, getModifiers_1.getModifiers)(node) ?? []) { + if (anotherModifier !== modifier && + (anotherModifier.kind === SyntaxKind.PublicKeyword || + anotherModifier.kind === SyntaxKind.ProtectedKeyword || + anotherModifier.kind === SyntaxKind.PrivateKeyword)) { + this.#throwError(anotherModifier, `Accessibility modifier already seen.`); + } + } + } + // `checkParameter` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + // In `typescript` package, it's `ts.hasSyntacticModifier(node, ts.ModifierFlags.ParameterPropertyModifier)` + // https://github.com/typescript-eslint/typescript-eslint/pull/6615#discussion_r1136489935 + (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.PrivateKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.ReadonlyKeyword || + modifier.kind === SyntaxKind.OverrideKeyword)) { + const func = (0, node_utils_1.getContainingFunction)(node); + if (!(func.kind === SyntaxKind.Constructor && (0, node_utils_1.nodeIsPresent)(func.body))) { + this.#throwError(modifier, 'A parameter property is only allowed in a constructor implementation.'); + } + } + } + } + #throwError(node, message) { + let start; + let end; + if (typeof node === 'number') { + start = end = node; + } + else { + start = node.getStart(this.ast); + end = node.getEnd(); + } + throw (0, node_utils_1.createError)(message, this.ast, start, end); + } + #throwUnlessAllowInvalidAST(node, message) { + if (!this.options.allowInvalidAST) { + this.#throwError(node, message); + } + } + /** + * Creates a getter for a property under aliasKey that returns the value under + * valueKey. If suppressDeprecatedPropertyWarnings is not enabled, the + * getter also console warns about the deprecation. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6469 + */ + #withDeprecatedAliasGetter(node, aliasKey, valueKey, suppressWarnings = false) { + let warned = suppressWarnings; + Object.defineProperty(node, aliasKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => node[valueKey] + : () => { + if (!warned) { + process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return node[valueKey]; + }, + set(value) { + Object.defineProperty(node, aliasKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + #withDeprecatedGetter(node, deprecatedKey, preferredKey, value) { + let warned = false; + Object.defineProperty(node, deprecatedKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => value + : () => { + if (!warned) { + process.emitWarning(`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return value; + }, + set(value) { + Object.defineProperty(node, deprecatedKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + assertModuleSpecifier(node, allowNull) { + if (!allowNull && node.moduleSpecifier == null) { + this.#throwUnlessAllowInvalidAST(node, 'Module specifier must be a string literal.'); + } + if (node.moduleSpecifier && + node.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwUnlessAllowInvalidAST(node.moduleSpecifier, 'Module specifier must be a string literal.'); + } + } + convertBindingNameWithTypeAnnotation(name, tsType, parent) { + const id = this.convertPattern(name); + if (tsType) { + id.typeAnnotation = this.convertTypeAnnotation(tsType, parent); + this.fixParentLocation(id, id.typeAnnotation.range); + } + return id; + } + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + convertBodyExpressions(nodes, parent) { + let allowDirectives = (0, node_utils_1.canContainDirective)(parent); + return (nodes + .map(statement => { + const child = this.convertChild(statement); + if (allowDirectives) { + if (child?.expression && + ts.isExpressionStatement(statement) && + ts.isStringLiteral(statement.expression)) { + const raw = child.expression.raw; + child.directive = raw.slice(1, -1); + return child; // child can be null, but it's filtered below + } + allowDirectives = false; + } + return child; // child can be null, but it's filtered below + }) + // filter out unknown nodes for now + .filter(statement => statement)); + } + convertChainExpression(node, tsNode) { + const { child, isOptional } = (() => { + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + return { child: node.object, isOptional: node.optional }; + } + if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + return { child: node.callee, isOptional: node.optional }; + } + return { child: node.expression, isOptional: false }; + })(); + const isChildUnwrappable = (0, node_utils_1.isChildUnwrappableOptionalChain)(tsNode, child); + if (!isChildUnwrappable && !isOptional) { + return node; + } + if (isChildUnwrappable && (0, node_utils_1.isChainExpression)(child)) { + // unwrap the chain expression child + const newChild = child.expression; + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + node.object = newChild; + } + else if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + node.callee = newChild; + } + else { + node.expression = newChild; + } + } + return this.createNode(tsNode, { + type: ts_estree_1.AST_NODE_TYPES.ChainExpression, + expression: node, + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertChild(child, parent) { + return this.converter(child, parent, false); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertPattern(child, parent) { + return this.converter(child, parent, true); + } + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + convertTypeAnnotation(child, parent) { + // in FunctionType and ConstructorType typeAnnotation has 2 characters `=>` and in other places is just colon + const offset = parent?.kind === SyntaxKind.FunctionType || + parent?.kind === SyntaxKind.ConstructorType + ? 2 + : 1; + const annotationStartCol = child.getFullStart() - offset; + const range = [annotationStartCol, child.end]; + const loc = (0, node_utils_1.getLocFor)(range, this.ast); + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAnnotation, + loc, + range, + typeAnnotation: this.convertChild(child), + }; + } + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + convertTypeArgumentsToTypeParameterInstantiation(typeArguments, node) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeArguments, this.ast, this.ast); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterInstantiation, + range: [typeArguments.pos - 1, greaterThanToken.end], + params: typeArguments.map(typeArgument => this.convertChild(typeArgument)), + }); + } + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + convertTSTypeParametersToTypeParametersDeclaration(typeParameters) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeParameters, this.ast, this.ast); + const range = [ + typeParameters.pos - 1, + greaterThanToken.end, + ]; + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterDeclaration, + loc: (0, node_utils_1.getLocFor)(range, this.ast), + range, + params: typeParameters.map(typeParameter => this.convertChild(typeParameter)), + }; + } + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + convertParameters(parameters) { + if (!parameters?.length) { + return []; + } + return parameters.map(param => { + const convertedParam = this.convertChild(param); + convertedParam.decorators = + (0, getModifiers_1.getDecorators)(param)?.map(el => this.convertChild(el)) ?? []; + return convertedParam; + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + converter(node, parent, allowPattern) { + /** + * Exit early for null and undefined + */ + if (!node) { + return null; + } + this.#checkModifiers(node); + const pattern = this.allowPattern; + if (allowPattern !== undefined) { + this.allowPattern = allowPattern; + } + const result = this.convertNode(node, (parent ?? node.parent)); + this.registerTSNodeInNodeMap(node, result); + this.allowPattern = pattern; + return result; + } + convertImportAttributes(node) { + return node === undefined + ? [] + : node.elements.map(element => this.convertChild(element)); + } + convertJSXIdentifier(node) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.getText(), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertJSXNamespaceOrIdentifier(node) { + // TypeScript@5.1 added in ts.JsxNamespacedName directly + // We prefer using that if it's relevant for this node type + if (node.kind === ts.SyntaxKind.JsxNamespacedName) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + name: this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.name.text, + }), + namespace: this.createNode(node.namespace, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.namespace.text, + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + // TypeScript@<5.1 has to manually parse the JSX attributes + const text = node.getText(); + const colonIndex = text.indexOf(':'); + // this is intentional we can ignore conversion if `:` is in first character + if (colonIndex > 0) { + const range = (0, node_utils_1.getRange)(node, this.ast); + // @ts-expect-error -- TypeScript@<5.1 doesn't have ts.JsxNamespacedName + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + range, + name: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0] + colonIndex + 1, range[1]], + name: text.slice(colonIndex + 1), + }), + namespace: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0], range[0] + colonIndex], + name: text.slice(0, colonIndex), + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + return this.convertJSXIdentifier(node); + } + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + convertJSXTagName(node, parent) { + let result; + switch (node.kind) { + case SyntaxKind.PropertyAccessExpression: + if (node.name.kind === SyntaxKind.PrivateIdentifier) { + // This is one of the few times where TS explicitly errors, and doesn't even gracefully handle the syntax. + // So we shouldn't ever get into this state to begin with. + this.#throwError(node.name, 'Non-private identifier expected.'); + } + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXMemberExpression, + object: this.convertJSXTagName(node.expression, parent), + property: this.convertJSXIdentifier(node.name), + }); + break; + case SyntaxKind.ThisKeyword: + case SyntaxKind.Identifier: + default: + return this.convertJSXNamespaceOrIdentifier(node); + } + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertMethodSignature(node) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSMethodSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: (() => { + switch (node.kind) { + case SyntaxKind.GetAccessor: + return 'get'; + case SyntaxKind.SetAccessor: + return 'set'; + case SyntaxKind.MethodSignature: + return 'method'; + } + })(), + optional: (0, node_utils_1.isOptional)(node), + params: this.convertParameters(node.parameters), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + fixParentLocation(result, childRange) { + if (childRange[0] < result.range[0]) { + result.range[0] = childRange[0]; + result.loc.start = (0, node_utils_1.getLineAndCharacterFor)(result.range[0], this.ast); + } + if (childRange[1] > result.range[1]) { + result.range[1] = childRange[1]; + result.loc.end = (0, node_utils_1.getLineAndCharacterFor)(result.range[1], this.ast); + } + } + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + convertNode(node, parent) { + switch (node.kind) { + case SyntaxKind.SourceFile: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Program, + range: [node.getStart(this.ast), node.endOfFileToken.end], + body: this.convertBodyExpressions(node.statements, node), + comments: undefined, + sourceType: node.externalModuleIndicator ? 'module' : 'script', + tokens: undefined, + }); + } + case SyntaxKind.Block: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BlockStatement, + body: this.convertBodyExpressions(node.statements, node), + }); + } + case SyntaxKind.Identifier: { + if ((0, node_utils_1.isThisInTypeQuery)(node)) { + // special case for `typeof this.foo` - TS emits an Identifier for `this` + // but we want to treat it as a ThisExpression for consistency + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: node.text, + optional: false, + typeAnnotation: undefined, + }); + } + case SyntaxKind.PrivateIdentifier: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.PrivateIdentifier, + // typescript includes the `#` in the text + name: node.text.slice(1), + }); + } + case SyntaxKind.WithStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WithStatement, + body: this.convertChild(node.statement), + object: this.convertChild(node.expression), + }); + // Control Flow + case SyntaxKind.ReturnStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ReturnStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.LabeledStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.LabeledStatement, + body: this.convertChild(node.statement), + label: this.convertChild(node.label), + }); + case SyntaxKind.ContinueStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ContinueStatement, + label: this.convertChild(node.label), + }); + case SyntaxKind.BreakStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BreakStatement, + label: this.convertChild(node.label), + }); + // Choice + case SyntaxKind.IfStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.IfStatement, + alternate: this.convertChild(node.elseStatement), + consequent: this.convertChild(node.thenStatement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.SwitchStatement: + if (node.caseBlock.clauses.filter(switchCase => switchCase.kind === SyntaxKind.DefaultClause).length > 1) { + this.#throwError(node, "A 'default' clause cannot appear more than once in a 'switch' statement."); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchStatement, + cases: node.caseBlock.clauses.map(el => this.convertChild(el)), + discriminant: this.convertChild(node.expression), + }); + case SyntaxKind.CaseClause: + case SyntaxKind.DefaultClause: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchCase, + // expression is present in case only + consequent: node.statements.map(el => this.convertChild(el)), + test: node.kind === SyntaxKind.CaseClause + ? this.convertChild(node.expression) + : null, + }); + // Exceptions + case SyntaxKind.ThrowStatement: + if (node.expression.end === node.expression.pos) { + this.#throwUnlessAllowInvalidAST(node, 'A throw statement must throw an expression.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThrowStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.TryStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TryStatement, + block: this.convertChild(node.tryBlock), + finalizer: this.convertChild(node.finallyBlock), + handler: this.convertChild(node.catchClause), + }); + case SyntaxKind.CatchClause: + if (node.variableDeclaration?.initializer) { + this.#throwError(node.variableDeclaration.initializer, 'Catch clause variable cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CatchClause, + body: this.convertChild(node.block), + param: node.variableDeclaration + ? this.convertBindingNameWithTypeAnnotation(node.variableDeclaration.name, node.variableDeclaration.type) + : null, + }); + // Loops + case SyntaxKind.WhileStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + /** + * Unlike other parsers, TypeScript calls a "DoWhileStatement" + * a "DoStatement" + */ + case SyntaxKind.DoStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DoWhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.ForStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForStatement, + body: this.convertChild(node.statement), + init: this.convertChild(node.initializer), + test: this.convertChild(node.condition), + update: this.convertChild(node.incrementor), + }); + case SyntaxKind.ForInStatement: + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForInStatement, + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + case SyntaxKind.ForOfStatement: { + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForOfStatement, + await: Boolean(node.awaitModifier && + node.awaitModifier.kind === SyntaxKind.AwaitKeyword), + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + } + // Declarations + case SyntaxKind.FunctionDeclaration: { + const isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const isAsync = (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node); + const isGenerator = !!node.asteriskToken; + if (isDeclare) { + if (node.body) { + this.#throwError(node, 'An implementation cannot be declared in ambient contexts.'); + } + else if (isAsync) { + this.#throwError(node, "'async' modifier cannot be used in an ambient context."); + } + else if (isGenerator) { + this.#throwError(node, 'Generators are not allowed in an ambient context.'); + } + } + else if (!node.body && isGenerator) { + this.#throwError(node, 'A function signature cannot be declared as a generator.'); + } + const result = this.createNode(node, { + // declare implies no body due to the invariant above + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSDeclareFunction + : ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, + async: isAsync, + body: this.convertChild(node.body) || undefined, + declare: isDeclare, + expression: false, + generator: isGenerator, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.VariableDeclaration: { + const definite = !!node.exclamationToken; + const init = this.convertChild(node.initializer); + const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node); + if (definite) { + if (init) { + this.#throwError(node, 'Declarations with initializers cannot also have definite assignment assertions.'); + } + else if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier || + !id.typeAnnotation) { + this.#throwError(node, 'Declarations with definite assignment assertions must also have type annotations.'); + } + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator, + definite, + id, + init, + }); + } + case SyntaxKind.VariableStatement: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarationList.declarations.map(el => this.convertChild(el)), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + kind: (0, node_utils_1.getDeclarationKind)(node.declarationList), + }); + if (!result.declarations.length) { + this.#throwUnlessAllowInvalidAST(node, 'A variable declaration list must have at least one variable declarator.'); + } + if (result.kind === 'using' || result.kind === 'await using') { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init == null) { + this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + // Definite assignment only allowed for non-declare let and var + if (result.declare || + ['await using', 'const', 'using'].includes(result.kind)) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].definite) { + this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`); + } + }); + } + if (result.declare) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init && + (['let', 'var'].includes(result.kind) || + result.declarations[i].id.typeAnnotation)) { + this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`); + } + }); + // Theoretically, only certain initializers are allowed for declare const, + // (TS1254: A 'const' initializer in an ambient context must be a string + // or numeric literal or literal enum reference.) but we just allow + // all expressions + } + // Note! No-declare does not mean the variable is not ambient, because + // it can be further nested in other declare contexts. Therefore we cannot + // check for const initializers. + /** + * Semantically, decorators are not allowed on variable declarations, + * Pre 4.8 TS would include them in the AST, so we did as well. + * However as of 4.8 TS no longer includes it (as it is, well, invalid). + * + * So for consistency across versions, we no longer include it either. + */ + return this.fixExports(node, result); + } + // mostly for for-of, for-in + case SyntaxKind.VariableDeclarationList: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarations.map(el => this.convertChild(el)), + declare: false, + kind: (0, node_utils_1.getDeclarationKind)(node), + }); + if (result.kind === 'using' || result.kind === 'await using') { + node.declarations.forEach((declaration, i) => { + if (result.declarations[i].init != null) { + this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + return result; + } + // Expressions + case SyntaxKind.ExpressionStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExpressionStatement, + directive: undefined, + expression: this.convertChild(node.expression), + }); + case SyntaxKind.ThisKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + case SyntaxKind.ArrayLiteralExpression: { + // TypeScript uses ArrayLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, + elements: node.elements.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ObjectLiteralExpression: { + // TypeScript uses ObjectLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.properties.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + } + const properties = []; + for (const property of node.properties) { + if ((property.kind === SyntaxKind.GetAccessor || + property.kind === SyntaxKind.SetAccessor || + property.kind === SyntaxKind.MethodDeclaration) && + !property.body) { + this.#throwUnlessAllowInvalidAST(property.end - 1, "'{' expected."); + } + properties.push(this.convertChild(property)); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectExpression, + properties, + }); + } + case SyntaxKind.PropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, questionToken } = node; + if (questionToken) { + this.#throwError(questionToken, 'A property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A property assignment cannot have an exclamation token.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: false, + value: this.converter(node.initializer, node, this.allowPattern), + }); + } + case SyntaxKind.ShorthandPropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, modifiers, questionToken } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A shorthand property assignment cannot have modifiers.'); + } + if (questionToken) { + this.#throwError(questionToken, 'A shorthand property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A shorthand property assignment cannot have an exclamation token.'); + } + if (node.objectAssignmentInitializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.name), + optional: false, + right: this.convertChild(node.objectAssignmentInitializer), + typeAnnotation: undefined, + }), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.convertChild(node.name), + }); + } + case SyntaxKind.ComputedPropertyName: + return this.convertChild(node.expression); + case SyntaxKind.PropertyDeclaration: { + const isAbstract = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node); + if (isAbstract && node.initializer) { + this.#throwError(node.initializer, `Abstract property cannot have an initializer.`); + } + const isAccessor = (0, node_utils_1.hasModifier)(SyntaxKind.AccessorKeyword, node); + const type = (() => { + if (isAccessor) { + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractAccessorProperty; + } + return ts_estree_1.AST_NODE_TYPES.AccessorProperty; + } + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition; + } + return ts_estree_1.AST_NODE_TYPES.PropertyDefinition; + })(); + const key = this.convertChild(node.name); + return this.createNode(node, { + type, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + definite: !!node.exclamationToken, + key, + optional: (key.type === ts_estree_1.AST_NODE_TYPES.Literal || + node.name.kind === SyntaxKind.Identifier || + node.name.kind === SyntaxKind.ComputedPropertyName || + node.name.kind === SyntaxKind.PrivateIdentifier) && + !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + value: isAbstract ? null : this.convertChild(node.initializer), + }); + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: { + if (node.parent.kind === SyntaxKind.InterfaceDeclaration || + node.parent.kind === SyntaxKind.TypeLiteral) { + return this.convertMethodSignature(node); + } + } + // otherwise, it is a non-type accessor - intentional fallthrough + case SyntaxKind.MethodDeclaration: { + const method = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, // ESTreeNode as ESTreeNode here + generator: !!node.asteriskToken, + id: null, + params: [], + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (method.typeParameters) { + this.fixParentLocation(method, method.typeParameters.range); + } + let result; + if (parent.kind === SyntaxKind.ObjectLiteralExpression) { + method.params = node.parameters.map(el => this.convertChild(el)); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: node.kind === SyntaxKind.MethodDeclaration, + optional: !!node.questionToken, + shorthand: false, + value: method, + }); + } + else { + // class + /** + * Unlike in object literal methods, class method params can have decorators + */ + method.params = this.convertParameters(node.parameters); + /** + * TypeScript class methods can be defined as "abstract" + */ + const methodDefinitionType = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition; + result = this.createNode(node, { + type: methodDefinitionType, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + key: this.convertChild(node.name), + kind: 'method', + optional: !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + value: method, + }); + } + if (node.kind === SyntaxKind.GetAccessor) { + result.kind = 'get'; + } + else if (node.kind === SyntaxKind.SetAccessor) { + result.kind = 'set'; + } + else if (!result.static && + node.name.kind === SyntaxKind.StringLiteral && + node.name.text === 'constructor' && + result.type !== ts_estree_1.AST_NODE_TYPES.Property) { + result.kind = 'constructor'; + } + return result; + } + // TypeScript uses this even for static methods named "constructor" + case SyntaxKind.Constructor: { + const lastModifier = (0, node_utils_1.getLastModifier)(node); + const constructorToken = (lastModifier && (0, node_utils_1.findNextToken)(lastModifier, node, this.ast)) ?? + node.getFirstToken(); + const constructor = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: false, + body: this.convertChild(node.body), + declare: false, + expression: false, // is not present in ESTreeNode + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (constructor.typeParameters) { + this.fixParentLocation(constructor, constructor.typeParameters.range); + } + const constructorKey = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [constructorToken.getStart(this.ast), constructorToken.end], + decorators: [], + name: 'constructor', + optional: false, + typeAnnotation: undefined, + }); + const isStatic = (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node); + return this.createNode(node, { + type: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: false, + decorators: [], + key: constructorKey, + kind: isStatic ? 'method' : 'constructor', + optional: false, + override: false, + static: isStatic, + value: constructor, + }); + } + case SyntaxKind.FunctionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.FunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, + generator: !!node.asteriskToken, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.SuperKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Super, + }); + case SyntaxKind.ArrayBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + // occurs with missing array elements like [,] + case SyntaxKind.OmittedExpression: + return null; + case SyntaxKind.ObjectBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.elements.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + case SyntaxKind.BindingElement: { + if (parent.kind === SyntaxKind.ArrayBindingPattern) { + const arrayItem = this.convertChild(node.name, parent); + if (node.initializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: arrayItem, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: arrayItem, + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return arrayItem; + } + let result; + if (node.dotDotDotToken) { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.propertyName ?? node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: Boolean(node.propertyName && + node.propertyName.kind === SyntaxKind.ComputedPropertyName), + key: this.convertChild(node.propertyName ?? node.name), + kind: 'init', + method: false, + optional: false, + shorthand: !node.propertyName, + value: this.convertChild(node.name), + }); + } + if (node.initializer) { + result.value = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + range: [node.name.getStart(this.ast), node.initializer.end], + decorators: [], + left: this.convertChild(node.name), + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + return result; + } + case SyntaxKind.ArrowFunction: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + expression: node.body.kind !== SyntaxKind.Block, + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.YieldExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.YieldExpression, + argument: this.convertChild(node.expression), + delegate: !!node.asteriskToken, + }); + case SyntaxKind.AwaitExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AwaitExpression, + argument: this.convertChild(node.expression), + }); + // Template Literals + case SyntaxKind.NoSubstitutionTemplateLiteral: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [ + this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail: true, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - 1), + }, + }), + ], + }); + case SyntaxKind.TemplateExpression: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [this.convertChild(node.head)], + }); + node.templateSpans.forEach(templateSpan => { + result.expressions.push(this.convertChild(templateSpan.expression)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.TaggedTemplateExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TaggedTemplateExpression, + quasi: this.convertChild(node.template), + tag: this.convertChild(node.tag), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.TemplateHead: + case SyntaxKind.TemplateMiddle: + case SyntaxKind.TemplateTail: { + const tail = node.kind === SyntaxKind.TemplateTail; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - (tail ? 1 : 2)), + }, + }); + } + // Patterns + case SyntaxKind.SpreadAssignment: + case SyntaxKind.SpreadElement: { + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertPattern(node.expression), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SpreadElement, + argument: this.convertChild(node.expression), + }); + } + case SyntaxKind.Parameter: { + let parameter; + let result; + if (node.dotDotDotToken) { + parameter = result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else if (node.initializer) { + parameter = this.convertChild(node.name); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: parameter, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + // AssignmentPattern should not contain modifiers in range + result.range[0] = parameter.range[0]; + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + } + } + else { + parameter = result = this.convertChild(node.name, parent); + } + if (node.type) { + parameter.typeAnnotation = this.convertTypeAnnotation(node.type, node); + this.fixParentLocation(parameter, parameter.typeAnnotation.range); + } + if (node.questionToken) { + if (node.questionToken.end > parameter.range[1]) { + parameter.range[1] = node.questionToken.end; + parameter.loc.end = (0, node_utils_1.getLineAndCharacterFor)(parameter.range[1], this.ast); + } + parameter.optional = true; + } + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSParameterProperty, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + decorators: [], + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + parameter: result, + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + }); + } + return result; + } + // Classes + case SyntaxKind.ClassDeclaration: + if (!node.name && + (!(0, node_utils_1.hasModifier)(ts.SyntaxKind.ExportKeyword, node) || + !(0, node_utils_1.hasModifier)(ts.SyntaxKind.DefaultKeyword, node))) { + this.#throwUnlessAllowInvalidAST(node, "A class declaration without the 'default' modifier must have a name."); + } + /* intentional fallthrough */ + case SyntaxKind.ClassExpression: { + const heritageClauses = node.heritageClauses ?? []; + const classNodeType = node.kind === SyntaxKind.ClassDeclaration + ? ts_estree_1.AST_NODE_TYPES.ClassDeclaration + : ts_estree_1.AST_NODE_TYPES.ClassExpression; + let extendsClause; + let implementsClause; + for (const heritageClause of heritageClauses) { + const { token, types } = heritageClause; + if (types.length === 0) { + this.#throwUnlessAllowInvalidAST(heritageClause, `'${ts.tokenToString(token)}' list cannot be empty.`); + } + if (token === SyntaxKind.ExtendsKeyword) { + if (extendsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause already seen."); + } + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause must precede 'implements' clause."); + } + if (types.length > 1) { + this.#throwUnlessAllowInvalidAST(types[1], 'Classes can only extend a single class.'); + } + extendsClause ??= heritageClause; + } + else if (token === SyntaxKind.ImplementsKeyword) { + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'implements' clause already seen."); + } + implementsClause ??= heritageClause; + } + } + const result = this.createNode(node, { + type: classNodeType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ClassBody, + range: [node.members.pos - 1, node.end], + body: node.members + .filter(node_utils_1.isESTreeClassMember) + .map(el => this.convertChild(el)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + id: this.convertChild(node.name), + implements: implementsClause?.types.map(el => this.convertChild(el)) ?? [], + superClass: extendsClause?.types[0] + ? this.convertChild(extendsClause.types[0].expression) + : null, + superTypeArguments: undefined, + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (extendsClause?.types[0]?.typeArguments) { + result.superTypeArguments = + this.convertTypeArgumentsToTypeParameterInstantiation(extendsClause.types[0].typeArguments, extendsClause.types[0]); + } + return this.fixExports(node, result); + } + // Modules + case SyntaxKind.ModuleBlock: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleBlock, + body: this.convertBodyExpressions(node.statements, node), + }); + case SyntaxKind.ImportDeclaration: { + this.assertModuleSpecifier(node, false); + const result = this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + importKind: 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: [], + }, 'assertions', 'attributes', true)); + if (node.importClause) { + if (node.importClause.isTypeOnly) { + result.importKind = 'type'; + } + if (node.importClause.name) { + result.specifiers.push(this.convertChild(node.importClause)); + } + if (node.importClause.namedBindings) { + switch (node.importClause.namedBindings.kind) { + case SyntaxKind.NamespaceImport: + result.specifiers.push(this.convertChild(node.importClause.namedBindings)); + break; + case SyntaxKind.NamedImports: + result.specifiers.push(...node.importClause.namedBindings.elements.map(el => this.convertChild(el))); + break; + } + } + } + return result; + } + case SyntaxKind.NamespaceImport: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportNamespaceSpecifier, + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportSpecifier: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportSpecifier, + imported: this.convertChild(node.propertyName ?? node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportClause: { + const local = this.convertChild(node.name); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportDefaultSpecifier, + range: local.range, + local, + }); + } + case SyntaxKind.ExportDeclaration: { + if (node.exportClause?.kind === SyntaxKind.NamedExports) { + this.assertModuleSpecifier(node, true); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + declaration: null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: node.exportClause.elements.map(el => this.convertChild(el, node)), + }, 'assertions', 'attributes', true)); + } + this.assertModuleSpecifier(node, false); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + exported: node.exportClause?.kind === SyntaxKind.NamespaceExport + ? this.convertChild(node.exportClause.name) + : null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + }, 'assertions', 'attributes', true)); + } + case SyntaxKind.ExportSpecifier: { + const local = node.propertyName ?? node.name; + if (local.kind === SyntaxKind.StringLiteral && + parent.kind === SyntaxKind.ExportDeclaration && + parent.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwError(local, 'A string literal cannot be used as a local exported binding without `from`.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportSpecifier, + exported: this.convertChild(node.name), + exportKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(local), + }); + } + case SyntaxKind.ExportAssignment: + if (node.isExportEquals) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExportAssignment, + expression: this.convertChild(node.expression), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + declaration: this.convertChild(node.expression), + exportKind: 'value', + }); + // Unary Operations + case SyntaxKind.PrefixUnaryExpression: + case SyntaxKind.PostfixUnaryExpression: { + const operator = (0, node_utils_1.getTextForTokenKind)(node.operator); + /** + * ESTree uses UpdateExpression for ++/-- + */ + if (operator === '++' || operator === '--') { + if (!(0, node_utils_1.isValidAssignmentTarget)(node.operand)) { + this.#throwUnlessAllowInvalidAST(node.operand, 'Invalid left-hand side expression in unary operation'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UpdateExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + case SyntaxKind.DeleteExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'delete', + prefix: true, + }); + case SyntaxKind.VoidExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'void', + prefix: true, + }); + case SyntaxKind.TypeOfExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'typeof', + prefix: true, + }); + case SyntaxKind.TypeOperator: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeOperator, + operator: (0, node_utils_1.getTextForTokenKind)(node.operator), + typeAnnotation: this.convertChild(node.type), + }); + // Binary Operations + case SyntaxKind.BinaryExpression: { + // TypeScript uses BinaryExpression for sequences as well + if ((0, node_utils_1.isComma)(node.operatorToken)) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SequenceExpression, + expressions: [], + }); + const left = this.convertChild(node.left); + if (left.type === ts_estree_1.AST_NODE_TYPES.SequenceExpression && + node.left.kind !== SyntaxKind.ParenthesizedExpression) { + result.expressions.push(...left.expressions); + } + else { + result.expressions.push(left); + } + result.expressions.push(this.convertChild(node.right)); + return result; + } + const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); + if (this.allowPattern && + expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.left, node), + optional: false, + right: this.convertChild(node.right), + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + ...expressionType, + left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), + right: this.convertChild(node.right), + }); + } + case SyntaxKind.PropertyAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.name); + const computed = false; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.ElementAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.argumentExpression); + const computed = true; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.CallExpression: { + if (node.expression.kind === SyntaxKind.ImportKeyword) { + if (node.arguments.length !== 1 && node.arguments.length !== 2) { + this.#throwUnlessAllowInvalidAST(node.arguments[2] ?? node, 'Dynamic import requires exactly one or two arguments.'); + } + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportExpression, + options: node.arguments[1] + ? this.convertChild(node.arguments[1]) + : null, + source: this.convertChild(node.arguments[0]), + }, 'attributes', 'options', true)); + } + const callee = this.convertChild(node.expression); + const args = node.arguments.map(el => this.convertChild(el)); + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CallExpression, + arguments: args, + callee, + optional: node.questionDotToken !== undefined, + typeArguments, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.NewExpression: { + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + // NOTE - NewExpression cannot have an optional chain in it + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.NewExpression, + arguments: node.arguments + ? node.arguments.map(el => this.convertChild(el)) + : [], + callee: this.convertChild(node.expression), + typeArguments, + }); + } + case SyntaxKind.ConditionalExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ConditionalExpression, + alternate: this.convertChild(node.whenFalse), + consequent: this.convertChild(node.whenTrue), + test: this.convertChild(node.condition), + }); + case SyntaxKind.MetaProperty: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MetaProperty, + meta: this.createNode( + // TODO: do we really want to convert it to Token? + node.getFirstToken(), { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: (0, node_utils_1.getTextForTokenKind)(node.keywordToken), + optional: false, + typeAnnotation: undefined, + }), + property: this.convertChild(node.name), + }); + } + case SyntaxKind.Decorator: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Decorator, + expression: this.convertChild(node.expression), + }); + } + // Literals + case SyntaxKind.StringLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: parent.kind === SyntaxKind.JsxAttribute + ? (0, node_utils_1.unescapeStringLiteralText)(node.text) + : node.text, + }); + } + case SyntaxKind.NumericLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: Number(node.text), + }); + } + case SyntaxKind.BigIntLiteral: { + const range = (0, node_utils_1.getRange)(node, this.ast); + const rawValue = this.ast.text.slice(range[0], range[1]); + const bigint = rawValue + // remove suffix `n` + .slice(0, -1) + // `BigInt` doesn't accept numeric separator + // and `bigint` property should not include numeric separator + .replaceAll('_', ''); + const value = typeof BigInt !== 'undefined' ? BigInt(bigint) : null; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + range, + bigint: value == null ? bigint : String(value), + raw: rawValue, + value, + }); + } + case SyntaxKind.RegularExpressionLiteral: { + const pattern = node.text.slice(1, node.text.lastIndexOf('/')); + const flags = node.text.slice(node.text.lastIndexOf('/') + 1); + let regex = null; + try { + regex = new RegExp(pattern, flags); + } + catch { + // Intentionally blank, so regex stays null + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.text, + regex: { + flags, + pattern, + }, + value: regex, + }); + } + case SyntaxKind.TrueKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'true', + value: true, + }); + case SyntaxKind.FalseKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'false', + value: false, + }); + case SyntaxKind.NullKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'null', + value: null, + }); + } + case SyntaxKind.EmptyStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.EmptyStatement, + }); + case SyntaxKind.DebuggerStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DebuggerStatement, + }); + // JSX + case SyntaxKind.JsxElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + children: node.children.map(el => this.convertChild(el)), + closingElement: this.convertChild(node.closingElement), + openingElement: this.convertChild(node.openingElement), + }); + case SyntaxKind.JsxFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXFragment, + children: node.children.map(el => this.convertChild(el)), + closingFragment: this.convertChild(node.closingFragment), + openingFragment: this.convertChild(node.openingFragment), + }); + case SyntaxKind.JsxSelfClosingElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + /** + * Convert SyntaxKind.JsxSelfClosingElement to SyntaxKind.JsxOpeningElement, + * TypeScript does not seem to have the idea of openingElement when tag is self-closing + */ + children: [], + closingElement: null, + openingElement: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + range: (0, node_utils_1.getRange)(node, this.ast), + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: true, + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : undefined, + }), + }); + } + case SyntaxKind.JsxOpeningElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: false, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.JsxClosingElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingElement, + name: this.convertJSXTagName(node.tagName, node), + }); + case SyntaxKind.JsxOpeningFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningFragment, + }); + case SyntaxKind.JsxClosingFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingFragment, + }); + case SyntaxKind.JsxExpression: { + const expression = node.expression + ? this.convertChild(node.expression) + : this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXEmptyExpression, + range: [node.getStart(this.ast) + 1, node.getEnd() - 1], + }); + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadChild, + expression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, + expression, + }); + } + case SyntaxKind.JsxAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXAttribute, + name: this.convertJSXNamespaceOrIdentifier(node.name), + value: this.convertChild(node.initializer), + }); + } + case SyntaxKind.JsxText: { + const start = node.getFullStart(); + const end = node.getEnd(); + const text = this.ast.text.slice(start, end); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXText, + range: [start, end], + raw: text, + value: (0, node_utils_1.unescapeStringLiteralText)(text), + }); + } + case SyntaxKind.JsxSpreadAttribute: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadAttribute, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.QualifiedName: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + left: this.convertChild(node.left), + right: this.convertChild(node.right), + }); + } + // TypeScript specific + case SyntaxKind.TypeReference: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeReference, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + typeName: this.convertChild(node.typeName), + }); + case SyntaxKind.TypeParameter: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameter, + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + constraint: node.constraint && this.convertChild(node.constraint), + default: node.default ? this.convertChild(node.default) : undefined, + in: (0, node_utils_1.hasModifier)(SyntaxKind.InKeyword, node), + name: this.convertChild(node.name), + out: (0, node_utils_1.hasModifier)(SyntaxKind.OutKeyword, node), + }); + } + case SyntaxKind.ThisType: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSThisType, + }); + case SyntaxKind.AnyKeyword: + case SyntaxKind.BigIntKeyword: + case SyntaxKind.BooleanKeyword: + case SyntaxKind.NeverKeyword: + case SyntaxKind.NumberKeyword: + case SyntaxKind.ObjectKeyword: + case SyntaxKind.StringKeyword: + case SyntaxKind.SymbolKeyword: + case SyntaxKind.UnknownKeyword: + case SyntaxKind.VoidKeyword: + case SyntaxKind.UndefinedKeyword: + case SyntaxKind.IntrinsicKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`], + }); + } + case SyntaxKind.NonNullExpression: { + const nnExpr = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNonNullExpression, + expression: this.convertChild(node.expression), + }); + return this.convertChainExpression(nnExpr, node); + } + case SyntaxKind.TypeLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeLiteral, + members: node.members.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ArrayType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSArrayType, + elementType: this.convertChild(node.elementType), + }); + } + case SyntaxKind.IndexedAccessType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexedAccessType, + indexType: this.convertChild(node.indexType), + objectType: this.convertChild(node.objectType), + }); + } + case SyntaxKind.ConditionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConditionalType, + checkType: this.convertChild(node.checkType), + extendsType: this.convertChild(node.extendsType), + falseType: this.convertChild(node.falseType), + trueType: this.convertChild(node.trueType), + }); + } + case SyntaxKind.TypeQuery: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: this.convertChild(node.exprName), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.MappedType: { + if (node.members && node.members.length > 0) { + this.#throwUnlessAllowInvalidAST(node.members[0], 'A mapped type may not declare properties or methods.'); + } + return this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSMappedType, + constraint: this.convertChild(node.typeParameter.constraint), + key: this.convertChild(node.typeParameter.name), + nameType: this.convertChild(node.nameType) ?? null, + optional: node.questionToken && + (node.questionToken.kind === SyntaxKind.QuestionToken || + (0, node_utils_1.getTextForTokenKind)(node.questionToken.kind)), + readonly: node.readonlyToken && + (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword || + (0, node_utils_1.getTextForTokenKind)(node.readonlyToken.kind)), + typeAnnotation: node.type && this.convertChild(node.type), + }, 'typeParameter', "'constraint' and 'key'", this.convertChild(node.typeParameter))); + } + case SyntaxKind.ParenthesizedExpression: + return this.convertChild(node.expression, parent); + case SyntaxKind.TypeAliasDeclaration: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration, + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + typeAnnotation: this.convertChild(node.type), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.MethodSignature: { + return this.convertMethodSignature(node); + } + case SyntaxKind.PropertySignature: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { initializer } = node; + if (initializer) { + this.#throwError(initializer, 'A property signature cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSPropertySignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + optional: (0, node_utils_1.isOptional)(node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.IndexSignature: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + parameters: node.parameters.map(el => this.convertChild(el)), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.ConstructorType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConstructorType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.FunctionType: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { modifiers } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A function type cannot have modifiers.'); + } + } + // intentional fallthrough + case SyntaxKind.ConstructSignature: + case SyntaxKind.CallSignature: { + const type = node.kind === SyntaxKind.ConstructSignature + ? ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration + : node.kind === SyntaxKind.CallSignature + ? ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration + : ts_estree_1.AST_NODE_TYPES.TSFunctionType; + return this.createNode(node, { + type, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.ExpressionWithTypeArguments: { + const parentKind = parent.kind; + const type = parentKind === SyntaxKind.InterfaceDeclaration + ? ts_estree_1.AST_NODE_TYPES.TSInterfaceHeritage + : parentKind === SyntaxKind.HeritageClause + ? ts_estree_1.AST_NODE_TYPES.TSClassImplements + : ts_estree_1.AST_NODE_TYPES.TSInstantiationExpression; + return this.createNode(node, { + type, + expression: this.convertChild(node.expression), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.InterfaceDeclaration: { + const interfaceHeritageClauses = node.heritageClauses ?? []; + const interfaceExtends = []; + for (const heritageClause of interfaceHeritageClauses) { + if (heritageClause.token !== SyntaxKind.ExtendsKeyword) { + this.#throwError(heritageClause, heritageClause.token === SyntaxKind.ImplementsKeyword + ? "Interface declaration cannot have 'implements' clause." + : 'Unexpected token.'); + } + for (const heritageType of heritageClause.types) { + interfaceExtends.push(this.convertChild(heritageType, node)); + } + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceBody, + range: [node.members.pos - 1, node.end], + body: node.members.map(member => this.convertChild(member)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + extends: interfaceExtends, + id: this.convertChild(node.name), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.TypePredicate: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypePredicate, + asserts: node.assertsModifier !== undefined, + parameterName: this.convertChild(node.parameterName), + typeAnnotation: null, + }); + /** + * Specific fix for type-guard location data + */ + if (node.type) { + result.typeAnnotation = this.convertTypeAnnotation(node.type, node); + result.typeAnnotation.loc = result.typeAnnotation.typeAnnotation.loc; + result.typeAnnotation.range = + result.typeAnnotation.typeAnnotation.range; + } + return result; + } + case SyntaxKind.ImportType: { + const range = (0, node_utils_1.getRange)(node, this.ast); + if (node.isTypeOf) { + const token = (0, node_utils_1.findNextToken)(node.getFirstToken(), node, this.ast); + range[0] = token.getStart(this.ast); + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportType, + range, + argument: this.convertChild(node.argument), + qualifier: this.convertChild(node.qualifier), + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null, + }); + if (node.isTypeOf) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: result, + typeArguments: undefined, + }); + } + return result; + } + case SyntaxKind.EnumDeclaration: { + const members = node.members.map(el => this.convertChild(el)); + const result = this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSEnumDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumBody, + range: [node.members.pos - 1, node.end], + members, + }), + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + }, 'members', `'body.members'`, node.members.map(el => this.convertChild(el)))); + return this.fixExports(node, result); + } + case SyntaxKind.EnumMember: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumMember, + computed: node.name.kind === ts.SyntaxKind.ComputedPropertyName, + id: this.convertChild(node.name), + initializer: node.initializer && this.convertChild(node.initializer), + }); + } + case SyntaxKind.ModuleDeclaration: { + let isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration, + ...(() => { + // the constraints checked by this function are syntactically enforced by TS + // the checks mostly exist for type's sake + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + const id = this.convertChild(node.name); + const body = this.convertChild(node.body); + if (body == null || + body.type === ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration) { + this.#throwUnlessAllowInvalidAST(node.body ?? node, 'Expected a valid module body'); + } + if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, 'global module augmentation must have an Identifier id'); + } + return { + body: body, + declare: false, + global: false, + id, + kind: 'global', + }; + } + if (!(node.flags & ts.NodeFlags.Namespace)) { + const body = this.convertChild(node.body); + return { + kind: 'module', + ...(body != null ? { body } : {}), + declare: false, + global: false, + id: this.convertChild(node.name), + }; + } + // Nested module declarations are stored in TypeScript as nested tree nodes. + // We "unravel" them here by making our own nested TSQualifiedName, + // with the innermost node's body as the actual node body. + if (node.body == null) { + this.#throwUnlessAllowInvalidAST(node, 'Expected a module body'); + } + if (node.name.kind !== ts.SyntaxKind.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, '`namespace`s must have an Identifier id'); + } + let name = this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [node.name.getStart(this.ast), node.name.getEnd()], + decorators: [], + name: node.name.text, + optional: false, + typeAnnotation: undefined, + }); + while (node.body && + ts.isModuleDeclaration(node.body) && + node.body.name) { + node = node.body; + isDeclare ||= (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const nextName = node.name; + const right = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [nextName.getStart(this.ast), nextName.getEnd()], + decorators: [], + name: nextName.text, + optional: false, + typeAnnotation: undefined, + }); + name = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + range: [name.range[0], right.range[1]], + left: name, + right, + }); + } + return { + body: this.convertChild(node.body), + declare: false, + global: false, + id: name, + kind: 'namespace', + }; + })(), + }); + result.declare = isDeclare; + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + result.global = true; + } + return this.fixExports(node, result); + } + // TypeScript specific types + case SyntaxKind.ParenthesizedType: { + return this.convertChild(node.type); + } + case SyntaxKind.UnionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSUnionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.IntersectionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIntersectionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.AsExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAsExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.InferType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInferType, + typeParameter: this.convertChild(node.typeParameter), + }); + } + case SyntaxKind.LiteralType: { + if (node.literal.kind === SyntaxKind.NullKeyword) { + // 4.0 started nesting null types inside a LiteralType node + // but our AST is designed around the old way of null being a keyword + return this.createNode(node.literal, { + type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, + literal: this.convertChild(node.literal), + }); + } + case SyntaxKind.TypeAssertionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.ImportEqualsDeclaration: { + return this.fixExports(node, this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportEqualsDeclaration, + id: this.convertChild(node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + moduleReference: this.convertChild(node.moduleReference), + })); + } + case SyntaxKind.ExternalModuleReference: { + if (node.expression.kind !== SyntaxKind.StringLiteral) { + this.#throwError(node.expression, 'String literal expected.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExternalModuleReference, + expression: this.convertChild(node.expression), + }); + } + case SyntaxKind.NamespaceExportDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamespaceExportDeclaration, + id: this.convertChild(node.name), + }); + } + case SyntaxKind.AbstractKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAbstractKeyword, + }); + } + // Tuple + case SyntaxKind.TupleType: { + const elementTypes = node.elements.map(el => this.convertChild(el)); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTupleType, + elementTypes, + }); + } + case SyntaxKind.NamedTupleMember: { + const member = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamedTupleMember, + elementType: this.convertChild(node.type, node), + label: this.convertChild(node.name, node), + optional: node.questionToken != null, + }); + if (node.dotDotDotToken) { + // adjust the start to account for the "..." + member.range[0] = member.label.range[0]; + member.loc.start = member.label.loc.start; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: member, + }); + } + return member; + } + case SyntaxKind.OptionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSOptionalType, + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.RestType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: this.convertChild(node.type), + }); + } + // Template Literal Types + case SyntaxKind.TemplateLiteralType: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTemplateLiteralType, + quasis: [this.convertChild(node.head)], + types: [], + }); + node.templateSpans.forEach(templateSpan => { + result.types.push(this.convertChild(templateSpan.type)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.ClassStaticBlockDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.StaticBlock, + body: this.convertBodyExpressions(node.body.statements, node), + }); + } + // eslint-disable-next-line @typescript-eslint/no-deprecated + case SyntaxKind.AssertEntry: + case SyntaxKind.ImportAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportAttribute, + key: this.convertChild(node.name), + value: this.convertChild(node.value), + }); + } + case SyntaxKind.SatisfiesExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSSatisfiesExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + default: + return this.deeplyCopy(node); + } + } + createNode( + // The 'parent' property will be added later if specified + node, data) { + const result = data; + result.range ??= (0, node_utils_1.getRange)(node, this.ast); + result.loc ??= (0, node_utils_1.getLocFor)(result.range, this.ast); + if (result && this.options.shouldPreserveNodeMaps) { + this.esTreeNodeToTSNodeMap.set(result, node); + } + return result; + } + convertProgram() { + return this.converter(this.ast); + } + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + deeplyCopy(node) { + if (node.kind === ts.SyntaxKind.JSDocFunctionType) { + this.#throwError(node, 'JSDoc types can only be used inside documentation comments.'); + } + const customType = `TS${SyntaxKind[node.kind]}`; + /** + * If the "errorOnUnknownASTType" option is set to true, throw an error, + * otherwise fallback to just including the unknown type as-is. + */ + if (this.options.errorOnUnknownASTType && !ts_estree_1.AST_NODE_TYPES[customType]) { + throw new Error(`Unknown AST_NODE_TYPE: "${customType}"`); + } + const result = this.createNode(node, { + type: customType, + }); + if ('type' in node) { + result.typeAnnotation = + node.type && 'kind' in node.type && ts.isTypeNode(node.type) + ? this.convertTypeAnnotation(node.type, node) + : null; + } + if ('typeArguments' in node) { + result.typeArguments = + node.typeArguments && 'pos' in node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null; + } + if ('typeParameters' in node) { + result.typeParameters = + node.typeParameters && 'pos' in node.typeParameters + ? this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters) + : null; + } + const decorators = (0, getModifiers_1.getDecorators)(node); + if (decorators?.length) { + result.decorators = decorators.map(el => this.convertChild(el)); + } + // keys we never want to clone from the base typescript node as they + // introduce garbage into our AST + const KEYS_TO_NOT_COPY = new Set([ + '_children', + 'decorators', + 'end', + 'flags', + 'heritageClauses', + 'illegalDecorators', + 'jsDoc', + 'kind', + 'locals', + 'localSymbol', + 'modifierFlagsCache', + 'modifiers', + 'nextContainer', + 'parent', + 'pos', + 'symbol', + 'transformFlags', + 'type', + 'typeArguments', + 'typeParameters', + ]); + Object.entries(node) + .filter(([key]) => !KEYS_TO_NOT_COPY.has(key)) + .forEach(([key, value]) => { + if (Array.isArray(value)) { + result[key] = value.map(el => this.convertChild(el)); + } + else if (value && typeof value === 'object' && value.kind) { + // need to check node[key].kind to ensure we don't try to convert a symbol + result[key] = this.convertChild(value); + } + else { + result[key] = value; + } + }); + return result; + } + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + fixExports(node, result) { + const isNamespaceNode = ts.isModuleDeclaration(node) && + Boolean(node.flags & ts.NodeFlags.Namespace); + const modifiers = isNamespaceNode + ? (0, node_utils_1.getNamespaceModifiers)(node) + : (0, getModifiers_1.getModifiers)(node); + if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { + /** + * Make sure that original node is registered instead of export + */ + this.registerTSNodeInNodeMap(node, result); + const exportKeyword = modifiers[0]; + const nextModifier = modifiers[1]; + const declarationIsDefault = nextModifier?.kind === SyntaxKind.DefaultKeyword; + const varToken = declarationIsDefault + ? (0, node_utils_1.findNextToken)(nextModifier, this.ast, this.ast) + : (0, node_utils_1.findNextToken)(exportKeyword, this.ast, this.ast); + result.range[0] = varToken.getStart(this.ast); + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + if (declarationIsDefault) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + declaration: result, + exportKind: 'value', + }); + } + const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || + result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; + const isDeclare = 'declare' in result && result.declare; + return this.createNode(node, + // @ts-expect-error - TODO, narrow the types here + this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + attributes: [], + declaration: result, + exportKind: isType || isDeclare ? 'type' : 'value', + source: null, + specifiers: [], + }, 'assertions', 'attributes', true)); + } + return result; + } + getASTMaps() { + return { + esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap, + }; + } + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + registerTSNodeInNodeMap(node, result) { + if (result && + this.options.shouldPreserveNodeMaps && + !this.tsNodeToESTreeNodeMap.has(node)) { + this.tsNodeToESTreeNodeMap.set(node, result); + } + } +} +exports.Converter = Converter; +//# sourceMappingURL=convert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map new file mode 100644 index 00000000..2bbf5a5e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,oCAQC;AAjED,2DAA2D;AAC3D,2SAA2S;AAC3S,+CAAiC;AAUjC,iDAA6D;AAC7D,6CA2BsB;AACtB,2CAA6C;AAE7C,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AASjC;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,KAA2D;IAE3D,OAAO,IAAA,wBAAW,EAChB,CAAC,SAAS,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,IAAK,KAAK,CAAC,WAAsB,EACtE,KAAK,CAAC,IAAK,EACX,KAAK,CAAC,KAAM,CACb,CAAC;AACJ,CAAC;AAOD,MAAa,SAAS;IACZ,YAAY,GAAG,KAAK,CAAC;IACZ,GAAG,CAAgB;IACnB,qBAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;IACtC,OAAO,CAAmB;IAC1B,qBAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;IAEvD;;;;;OAKG;IACH,YAAY,GAAkB,EAAE,OAA0B;QACxD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC;IAChC,CAAC;IAED,6BAA6B,CAC3B,WAA8B,EAC9B,IAAiE;QAEjE,MAAM,IAAI,GACR,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC;QAClE,IAAI,EAAE,CAAC,yBAAyB,CAAC,WAAW,CAAC,EAAE,CAAC;YAC9C,IAAI,WAAW,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AC7B,IAAa,EACb,MAA4B;QAE5B,IACE,MAAM;YACN,IAAI,CAAC,OAAO,CAAC,sBAAsB;YACnC,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EACrC,CAAC;YACD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;CACF;AAhhHD,8BAghHC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts new file mode 100644 index 00000000..851c7203 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts @@ -0,0 +1,13 @@ +import type * as ts from 'typescript'; +interface DirectoryStructureHost { + readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface CachedDirectoryStructureHost extends DirectoryStructureHost { + readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { + extraFileExtensions?: readonly ts.FileExtensionInfo[]; + onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; +} +export type { WatchCompilerHostOfConfigFile }; +//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map new file mode 100644 index 00000000..4e776d40 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACtD,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;CACT;AAED,YAAY,EAAE,6BAA6B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js new file mode 100644 index 00000000..dcb07129 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js @@ -0,0 +1,6 @@ +"use strict"; +// These types are internal to TS. +// They have been trimmed down to only include the relevant bits +// We use some special internal TS apis to help us do our parsing flexibly +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map new file mode 100644 index 00000000..757e885c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts new file mode 100644 index 00000000..b39194d9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts @@ -0,0 +1,8 @@ +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; +export { createIsolatedProgram }; +//# sourceMappingURL=createIsolatedProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map new file mode 100644 index 00000000..e1897025 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD;;GAEG;AACH,iBAAS,qBAAqB,CAC5B,aAAa,EAAE,aAAa,GAC3B,qBAAqB,CAoEvB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js new file mode 100644 index 00000000..f1c15c37 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js @@ -0,0 +1,97 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIsolatedProgram = createIsolatedProgram; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const getScriptKind_1 = require("./getScriptKind"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createIsolatedProgram'); +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +function createIsolatedProgram(parseSettings) { + log('Getting isolated program in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + const compilerHost = { + fileExists() { + return true; + }, + getCanonicalFileName() { + return parseSettings.filePath; + }, + getCurrentDirectory() { + return ''; + }, + getDefaultLibFileName() { + return 'lib.d.ts'; + }, + getDirectories() { + return []; + }, + // TODO: Support Windows CRLF + getNewLine() { + return '\n'; + }, + getSourceFile(filename) { + return ts.createSourceFile(filename, parseSettings.codeFullText, ts.ScriptTarget.Latest, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); + }, + readFile() { + return undefined; + }, + useCaseSensitiveFileNames() { + return true; + }, + writeFile() { + return null; + }, + }; + const program = ts.createProgram([parseSettings.filePath], { + jsDocParsingMode: parseSettings.jsDocParsingMode, + jsx: parseSettings.jsx ? ts.JsxEmit.Preserve : undefined, + noResolve: true, + target: ts.ScriptTarget.Latest, + ...(0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), + }, compilerHost); + const ast = program.getSourceFile(parseSettings.filePath); + if (!ast) { + throw new Error('Expected an ast to be returned for the single-file isolated program.'); + } + return { ast, program }; +} +//# sourceMappingURL=createIsolatedProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map new file mode 100644 index 00000000..97271161 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.js","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFS,sDAAqB;AAtF9B,kDAA0B;AAC1B,+CAAiC;AAKjC,mDAAgD;AAChD,qCAAiE;AAEjE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;GAEG;AACH,SAAS,qBAAqB,CAC5B,aAA4B;IAE5B,GAAG,CACD,6CAA6C,EAC7C,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,MAAM,YAAY,GAAoB;QACpC,UAAU;YACR,OAAO,IAAI,CAAC;QACd,CAAC;QACD,oBAAoB;YAClB,OAAO,aAAa,CAAC,QAAQ,CAAC;QAChC,CAAC;QACD,mBAAmB;YACjB,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,qBAAqB;YACnB,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,cAAc;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,6BAA6B;QAC7B,UAAU;YACR,OAAO,IAAI,CAAC;QACd,CAAC;QACD,aAAa,CAAC,QAAgB;YAC5B,OAAO,EAAE,CAAC,gBAAgB,CACxB,QAAQ,EACR,aAAa,CAAC,YAAY,EAC1B,EAAE,CAAC,YAAY,CAAC,MAAM;YACtB,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;QACJ,CAAC;QACD,QAAQ;YACN,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,yBAAyB;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,SAAS;YACP,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,CAC9B,CAAC,aAAa,CAAC,QAAQ,CAAC,EACxB;QACE,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;QAChD,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QACxD,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;QAC9B,GAAG,IAAA,8CAAqC,EAAC,aAAa,CAAC;KACxD,EACD,YAAY,CACb,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts new file mode 100644 index 00000000..3e5f70aa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts @@ -0,0 +1,9 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +export declare function createProjectProgram(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram; +//# sourceMappingURL=createProjectProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map new file mode 100644 index 00000000..d1cbe49a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,qBAAqB,CAcvB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js new file mode 100644 index 00000000..a2d4898f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js @@ -0,0 +1,24 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgram = createProjectProgram; +const debug_1 = __importDefault(require("debug")); +const node_utils_1 = require("../node-utils"); +const createProjectProgramError_1 = require("./createProjectProgramError"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectProgram'); +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +function createProjectProgram(parseSettings, programsForProjects) { + log('Creating project program for: %s', parseSettings.filePath); + const astAndProgram = (0, node_utils_1.firstDefined)(programsForProjects, currentProgram => (0, shared_1.getAstFromProgram)(currentProgram, parseSettings.filePath)); + if (!astAndProgram) { + throw new Error((0, createProjectProgramError_1.createProjectProgramError)(parseSettings, programsForProjects).join('\n')); + } + return astAndProgram; +} +//# sourceMappingURL=createProjectProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map new file mode 100644 index 00000000..7364ba15 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":";;;;;AAiBA,oDAiBC;AAhCD,kDAA0B;AAK1B,8CAA6C;AAC7C,2EAAwE;AACxE,qCAA6C;AAE7C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAE9E;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,aAA4B,EAC5B,mBAA0C;IAE1C,GAAG,CAAC,kCAAkC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhE,MAAM,aAAa,GAAG,IAAA,yBAAY,EAAC,mBAAmB,EAAE,cAAc,CAAC,EAAE,CACvE,IAAA,0BAAiB,EAAC,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,CAC1D,CAAC;IAEF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,IAAA,qDAAyB,EAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACzE,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts new file mode 100644 index 00000000..18dc8c07 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts @@ -0,0 +1,4 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +export declare function createProjectProgramError(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): string[]; +//# sourceMappingURL=createProjectProgramError.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map new file mode 100644 index 00000000..104141e9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,MAAM,EAAE,CAUV"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js new file mode 100644 index 00000000..7f7a936e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js @@ -0,0 +1,75 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgramError = createProjectProgramError; +const node_path_1 = __importDefault(require("node:path")); +const describeFilePath_1 = require("./describeFilePath"); +const shared_1 = require("./shared"); +function createProjectProgramError(parseSettings, programsForProjects) { + const describedFilePath = (0, describeFilePath_1.describeFilePath)(parseSettings.filePath, parseSettings.tsconfigRootDir); + return [ + getErrorStart(describedFilePath, parseSettings), + ...getErrorDetails(describedFilePath, parseSettings, programsForProjects), + ]; +} +function getErrorStart(describedFilePath, parseSettings) { + const relativeProjects = [...parseSettings.projects.values()].map(projectFile => (0, describeFilePath_1.describeFilePath)(projectFile, parseSettings.tsconfigRootDir)); + const describedPrograms = relativeProjects.length === 1 + ? ` ${relativeProjects[0]}` + : `\n${relativeProjects.map(project => `- ${project}`).join('\n')}`; + return `ESLint was configured to run on \`${describedFilePath}\` using \`parserOptions.project\`:${describedPrograms}`; +} +function getErrorDetails(describedFilePath, parseSettings, programsForProjects) { + if (programsForProjects.length === 1 && + programsForProjects[0].getProjectReferences()?.length) { + return [ + `That TSConfig uses project "references" and doesn't include \`${describedFilePath}\` directly, which is not supported by \`parserOptions.project\`.`, + `Either:`, + `- Switch to \`parserOptions.projectService\``, + `- Use an ESLint-specific TSConfig`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#are-typescript-project-references-supported`, + ]; + } + const { extraFileExtensions } = parseSettings; + const details = []; + for (const extraExtension of extraFileExtensions) { + if (!extraExtension.startsWith('.')) { + details.push(`Found unexpected extension \`${extraExtension}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${extraExtension}\`?`); + } + if (shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(extraExtension)) { + details.push(`You unnecessarily included the extension \`${extraExtension}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`); + } + } + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension)) { + const nonStandardExt = `The extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + if (!extraFileExtensions.includes(fileExtension)) { + return [ + ...details, + `${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`, + ]; + } + } + else { + return [ + ...details, + `${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`, + ]; + } + } + const [describedInclusions, describedSpecifiers] = parseSettings.projects.size === 1 + ? ['that TSConfig does not', 'that TSConfig'] + : ['none of those TSConfigs', 'one of those TSConfigs']; + return [ + ...details, + `However, ${describedInclusions} include this file. Either:`, + `- Change ESLint's list of included files to not include this file`, + `- Change ${describedSpecifiers} to include this file`, + `- Create a new TSConfig that includes this file and include it in your parserOptions.project`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`, + ]; +} +//# sourceMappingURL=createProjectProgramError.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map new file mode 100644 index 00000000..4247b454 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":";;;;;AASA,8DAaC;AApBD,0DAA6B;AAI7B,yDAAsD;AACtD,qCAAyD;AAEzD,SAAgB,yBAAyB,CACvC,aAA4B,EAC5B,mBAA0C;IAE1C,MAAM,iBAAiB,GAAG,IAAA,mCAAgB,EACxC,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,eAAe,CAC9B,CAAC;IAEF,OAAO;QACL,aAAa,CAAC,iBAAiB,EAAE,aAAa,CAAC;QAC/C,GAAG,eAAe,CAAC,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CACpB,iBAAyB,EACzB,aAA4B;IAE5B,MAAM,gBAAgB,GAAG,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAC/D,WAAW,CAAC,EAAE,CAAC,IAAA,mCAAgB,EAAC,WAAW,EAAE,aAAa,CAAC,eAAe,CAAC,CAC5E,CAAC;IAEF,MAAM,iBAAiB,GACrB,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC3B,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,EAAE;QAC3B,CAAC,CAAC,KAAK,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAExE,OAAO,qCAAqC,iBAAiB,sCAAsC,iBAAiB,EAAE,CAAC;AACzH,CAAC;AAED,SAAS,eAAe,CACtB,iBAAyB,EACzB,aAA4B,EAC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AAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GAC9C,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;QAC/B,CAAC,CAAC,CAAC,wBAAwB,EAAE,eAAe,CAAC;QAC7C,CAAC,CAAC,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;IAE5D,OAAO;QACL,GAAG,OAAO;QACV,YAAY,mBAAmB,6BAA6B;QAC5D,mEAAmE;QACnE,YAAY,mBAAmB,uBAAuB;QACtD,8FAA8F;QAC9F,0OAA0O;KAC3O,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts new file mode 100644 index 00000000..00abc173 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts @@ -0,0 +1,11 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +import type { ProjectServiceOptions } from '../parser-options'; +export type TypeScriptProjectService = ts.server.ProjectService; +export interface ProjectServiceSettings { + allowDefaultProject: string[] | undefined; + lastReloadTimestamp: number; + maximumDefaultProjectFileMatchCount: number; + service: TypeScriptProjectService; +} +export declare function createProjectService(optionsRaw: boolean | ProjectServiceOptions | undefined, jsDocParsingMode: ts.JSDocParsingMode | undefined, tsconfigRootDir: string | undefined): ProjectServiceSettings; +//# sourceMappingURL=createProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map new file mode 100644 index 00000000..53a46e1c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAI1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA2B/D,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC,EAAE,MAAM,CAAC;IAC5C,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,EACvD,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,SAAS,EACjD,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,sBAAsB,CAoIxB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js new file mode 100644 index 00000000..afa037db --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js @@ -0,0 +1,134 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectService = createProjectService; +const debug_1 = __importDefault(require("debug")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const validateDefaultProjectForFilesGlob_1 = require("./validateDefaultProjectForFilesGlob"); +const DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD = 8; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectService'); +const logTsserverErr = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:err'); +const logTsserverInfo = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:info'); +const logTsserverPerf = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:perf'); +const logTsserverEvent = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:event'); +const doNothing = () => { }; +const createStubFileWatcher = () => ({ + close: doNothing, +}); +function createProjectService(optionsRaw, jsDocParsingMode, tsconfigRootDir) { + const optionsRawObject = typeof optionsRaw === 'object' ? optionsRaw : {}; + const options = { + defaultProject: 'tsconfig.json', + ...optionsRawObject, + }; + (0, validateDefaultProjectForFilesGlob_1.validateDefaultProjectForFilesGlob)(options.allowDefaultProject); + // We import this lazily to avoid its cost for users who don't use the service + // TODO: Once we drop support for TS<5.3 we can import from "typescript" directly + // eslint-disable-next-line @typescript-eslint/no-require-imports + const tsserver = require('typescript/lib/tsserverlibrary'); + // TODO: see getWatchProgramsForProjects + // We don't watch the disk, we just refer to these when ESLint calls us + // there's a whole separate update pass in maybeInvalidateProgram at the bottom of getWatchProgramsForProjects + // (this "goes nuclear on TypeScript") + const system = { + ...tsserver.sys, + clearImmediate, + clearTimeout, + setImmediate, + setTimeout, + watchDirectory: createStubFileWatcher, + watchFile: createStubFileWatcher, + // We stop loading any TypeScript plugins by default, to prevent them from attaching disk watchers + // See https://github.com/typescript-eslint/typescript-eslint/issues/9905 + ...(!options.loadTypeScriptPlugins && { + require: () => ({ + error: { + message: 'TypeScript plugins are not required when using parserOptions.projectService.', + }, + module: undefined, + }), + }), + }; + const logger = { + close: doNothing, + endGroup: doNothing, + getLogFileName: () => undefined, + // The debug library doesn't use levels without creating a namespace for each. + // Log levels are not passed to the writer so we wouldn't be able to forward + // to a respective namespace. Supporting would require an additional flag for + // granular control. Defaulting to all levels for now. + hasLevel: () => true, + info(s) { + this.msg(s, tsserver.server.Msg.Info); + }, + loggingEnabled: () => + // if none of the debug namespaces are enabled, then don't enable logging in tsserver + logTsserverInfo.enabled || + logTsserverErr.enabled || + logTsserverPerf.enabled, + msg: (s, type) => { + switch (type) { + case tsserver.server.Msg.Err: + logTsserverErr(s); + break; + case tsserver.server.Msg.Perf: + logTsserverPerf(s); + break; + default: + logTsserverInfo(s); + } + }, + perftrc(s) { + this.msg(s, tsserver.server.Msg.Perf); + }, + startGroup: doNothing, + }; + log('Creating project service with: %o', options); + const service = new tsserver.server.ProjectService({ + cancellationToken: { isCancellationRequested: () => false }, + eventHandler: logTsserverEvent.enabled + ? (e) => { + logTsserverEvent(e); + } + : undefined, + host: system, + jsDocParsingMode, + logger, + session: undefined, + useInferredProjectPerProjectRoot: false, + useSingleInferredProject: false, + }); + service.setHostConfiguration({ + preferences: { + includePackageJsonAutoImports: 'off', + }, + }); + log('Enabling default project: %s', options.defaultProject); + let configFile; + try { + configFile = (0, getParsedConfigFile_1.getParsedConfigFile)(tsserver, options.defaultProject, tsconfigRootDir); + } + catch (error) { + if (optionsRawObject.defaultProject) { + throw new Error(`Could not read project service default project '${options.defaultProject}': ${error.message}`); + } + } + if (configFile) { + service.setCompilerOptionsForInferredProjects( + // NOTE: The inferred projects API is not intended for source files when a tsconfig + // exists. There is no API that generates an InferredProjectCompilerOptions suggesting + // it is meant for hard coded options passed in. Hard asserting as a work around. + // See https://github.com/microsoft/TypeScript/blob/27bcd4cb5a98bce46c9cdd749752703ead021a4b/src/server/protocol.ts#L1904 + configFile.options); + } + return { + allowDefaultProject: options.allowDefaultProject, + lastReloadTimestamp: performance.now(), + maximumDefaultProjectFileMatchCount: options.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING ?? + DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD, + service, + }; +} +//# sourceMappingURL=createProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map new file mode 100644 index 00000000..43d81c28 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.js","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":";;;;;AAyCA,oDAwIC;AA9KD,kDAA0B;AAI1B,+DAA4D;AAC5D,6FAA0F;AAE1F,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAElD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAC9E,MAAM,cAAc,GAAG,IAAA,eAAK,EAC1B,kDAAkD,CACnD,CAAC;AACF,MAAM,eAAe,GAAG,IAAA,eAAK,EAC3B,mDAAmD,CACpD,CAAC;AACF,MAAM,eAAe,GAAG,IAAA,eAAK,EAC3B,mDAAmD,CACpD,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAA,eAAK,EAC5B,oDAAoD,CACrD,CAAC;AAEF,MAAM,SAAS,GAAG,GAAS,EAAE,GAAE,CAAC,CAAC;AAEjC,MAAM,qBAAqB,GAAG,GAAmB,EAAE,CAAC,CAAC;IACnD,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AAWH,SAAgB,oBAAoB,CAClC,UAAuD,EACvD,gBAAiD,EACjD,eAAmC;IAEnC,MAAM,gBAAgB,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,OAAO,GAAG;QACd,cAAc,EAAE,eAAe;QAC/B,GAAG,gBAAgB;KACpB,CAAC;IACF,IAAA,uEAAkC,EAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhE,8EAA8E;IAC9E,iFAAiF;IACjF,iEAAiE;IACjE,MAAM,QAAQ,GAAG,OAAO,CAAC,gCAAgC,CAAc,CAAC;IAExE,wCAAwC;IACxC,uEAAuE;IACvE,8GAA8G;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AAmF;QACnF,uFAAuF;QACvF,iFAAiF;QACjF,yHAAyH;QACzH,UAAU,CAAC,OAA4D,CACxE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;QAChD,mBAAmB,EAAE,WAAW,CAAC,GAAG,EAAE;QACtC,mCAAmC,EACjC,OAAO,CAAC,+DAA+D;YACvE,uCAAuC;QACzC,OAAO;KACR,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts new file mode 100644 index 00000000..8de2229c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndNoProgram } from './shared'; +declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; +declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; +export { createNoProgram, createSourceFile }; +//# sourceMappingURL=createSourceFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map new file mode 100644 index 00000000..e3e7f744 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.d.ts","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,iBAAS,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,UAAU,CAoBrE;AAED,iBAAS,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAKtE;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js new file mode 100644 index 00000000..118c3d58 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js @@ -0,0 +1,63 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createNoProgram = createNoProgram; +exports.createSourceFile = createSourceFile; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const getScriptKind_1 = require("./getScriptKind"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createSourceFile'); +function createSourceFile(parseSettings) { + log('Getting AST without type information in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + return (0, source_files_1.isSourceFile)(parseSettings.code) + ? parseSettings.code + : ts.createSourceFile(parseSettings.filePath, parseSettings.codeFullText, { + jsDocParsingMode: parseSettings.jsDocParsingMode, + languageVersion: ts.ScriptTarget.Latest, + setExternalModuleIndicator: parseSettings.setExternalModuleIndicator, + }, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); +} +function createNoProgram(parseSettings) { + return { + ast: createSourceFile(parseSettings), + program: null, + }; +} +//# sourceMappingURL=createSourceFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map new file mode 100644 index 00000000..2c21e873 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.js","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCS,0CAAe;AAAE,4CAAgB;AAxC1C,kDAA0B;AAC1B,+CAAiC;AAKjC,kDAA+C;AAC/C,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,sDAAsD,CAAC,CAAC;AAE1E,SAAS,gBAAgB,CAAC,aAA4B;IACpD,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,OAAO,IAAA,2BAAY,EAAC,aAAa,CAAC,IAAI,CAAC;QACrC,CAAC,CAAC,aAAa,CAAC,IAAI;QACpB,CAAC,CAAC,EAAE,CAAC,gBAAgB,CACjB,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,YAAY,EAC1B;YACE,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;YAChD,eAAe,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;YACvC,0BAA0B,EAAE,aAAa,CAAC,0BAA0B;SACrE;QACD,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;AACR,CAAC;AAED,SAAS,eAAe,CAAC,aAA4B;IACnD,OAAO;QACL,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts new file mode 100644 index 00000000..d46f86aa --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts @@ -0,0 +1,2 @@ +export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; +//# sourceMappingURL=describeFilePath.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map new file mode 100644 index 00000000..6d049bed --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.d.ts","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAyBR"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js new file mode 100644 index 00000000..b474fc03 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js @@ -0,0 +1,31 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.describeFilePath = describeFilePath; +const node_path_1 = __importDefault(require("node:path")); +function describeFilePath(filePath, tsconfigRootDir) { + // If the TSConfig root dir is a parent of the filePath, use + // `` as a prefix for the path. + const relative = node_path_1.default.relative(tsconfigRootDir, filePath); + if (relative && !relative.startsWith('..') && !node_path_1.default.isAbsolute(relative)) { + return `/${relative}`; + } + // Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't + // relative to the TSConfig root dir should be fully described. + // This avoids strings like /../../../../repo/file.ts. + // https://github.com/typescript-eslint/typescript-eslint/issues/6289 + if (/^[(\w+:)\\/~]/.test(filePath)) { + return filePath; + } + // Similarly, if the relative path would contain a lot of ../.., then + // ignore it and print the file path directly. + if (/\.\.[/\\]\.\./.test(relative)) { + return filePath; + } + // Lastly, since we've eliminated all special cases, we know the cleanest + // path to print is probably the prefixed relative one. + return `/${relative}`; +} +//# sourceMappingURL=describeFilePath.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map new file mode 100644 index 00000000..50b9e8ab --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.js","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":";;;;;AAEA,4CA4BC;AA9BD,0DAA6B;AAE7B,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,eAAuB;IAEvB,4DAA4D;IAC5D,gDAAgD;IAChD,MAAM,QAAQ,GAAG,mBAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzE,OAAO,qBAAqB,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IACvE,+DAA+D;IAC/D,uEAAuE;IACvE,qEAAqE;IACrE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qEAAqE;IACrE,8CAA8C;IAC9C,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,yEAAyE;IACzE,uDAAuD;IACvD,OAAO,qBAAqB,QAAQ,EAAE,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts new file mode 100644 index 00000000..ffccd560 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts @@ -0,0 +1,10 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; +export { getParsedConfigFile }; +//# sourceMappingURL=getParsedConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map new file mode 100644 index 00000000..17d807b7 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAO1D;;;;;GAKG;AACH,iBAAS,mBAAmB,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,iBAAiB,CA6CtB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js new file mode 100644 index 00000000..5eae3d38 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParsedConfigFile = getParsedConfigFile; +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const shared_1 = require("./shared"); +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function getParsedConfigFile(tsserver, configFile, projectDirectory) { + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (tsserver.sys === undefined) { + throw new Error('`getParsedConfigFile` is only supported in a Node-like environment.'); + } + const parsed = tsserver.getParsedCommandLineOfConfigFile(configFile, shared_1.CORE_COMPILER_OPTIONS, { + fileExists: fs.existsSync, + getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: diag => { + throw new Error(formatDiagnostics([diag])); // ensures that `parsed` is defined. + }, + readDirectory: tsserver.sys.readDirectory, + readFile: file => fs.readFileSync(path.isAbsolute(file) ? file : path.join(getCurrentDirectory(), file), 'utf-8'), + useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames, + }); + if (parsed?.errors.length) { + throw new Error(formatDiagnostics(parsed.errors)); + } + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return parsed; + function getCurrentDirectory() { + return projectDirectory ? path.resolve(projectDirectory) : process.cwd(); + } + function formatDiagnostics(diagnostics) { + return tsserver.formatDiagnostics(diagnostics, { + getCanonicalFileName: f => f, + getCurrentDirectory, + getNewLine: () => '\n', + }); + } +} +//# sourceMappingURL=getParsedConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map new file mode 100644 index 00000000..5647cbf6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.js","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgES,kDAAmB;AA9D5B,4CAA8B;AAC9B,gDAAkC;AAElC,qCAAiD;AAEjD;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,QAAmB,EACnB,UAAkB,EAClB,gBAAyB;IAEzB,uEAAuE;IACvE,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,MAA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/typescript-estree/dist/create-program/getScriptKind.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts new file mode 100644 index 00000000..e532e6a5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts @@ -0,0 +1,5 @@ +import * as ts from 'typescript'; +declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; +declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; +export { getLanguageVariant, getScriptKind }; +//# sourceMappingURL=getScriptKind.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map new file mode 100644 index 00000000..4b80634b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.d.ts","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,EAAE,CAAC,UAAU,CA8BpE;AAED,iBAAS,kBAAkB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAYzE;AAED,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js new file mode 100644 index 00000000..7b2c6883 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js @@ -0,0 +1,81 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLanguageVariant = getLanguageVariant; +exports.getScriptKind = getScriptKind; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +function getScriptKind(filePath, jsx) { + const extension = node_path_1.default.extname(filePath).toLowerCase(); + // note - we only respect the user's jsx setting for unknown extensions + // this is so that we always match TS's internal script kind logic, preventing + // weird errors due to a mismatch. + // https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 + switch (extension) { + case ts.Extension.Cjs: + case ts.Extension.Js: + case ts.Extension.Mjs: + return ts.ScriptKind.JS; + case ts.Extension.Cts: + case ts.Extension.Mts: + case ts.Extension.Ts: + return ts.ScriptKind.TS; + case ts.Extension.Json: + return ts.ScriptKind.JSON; + case ts.Extension.Jsx: + return ts.ScriptKind.JSX; + case ts.Extension.Tsx: + return ts.ScriptKind.TSX; + default: + // unknown extension, force typescript to ignore the file extension, and respect the user's setting + return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; + } +} +function getLanguageVariant(scriptKind) { + // https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 + switch (scriptKind) { + case ts.ScriptKind.JS: + case ts.ScriptKind.JSON: + case ts.ScriptKind.JSX: + case ts.ScriptKind.TSX: + return ts.LanguageVariant.JSX; + default: + return ts.LanguageVariant.Standard; + } +} +//# sourceMappingURL=getScriptKind.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map new file mode 100644 index 00000000..3caf147a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.js","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDS,gDAAkB;AAAE,sCAAa;AAjD1C,0DAA6B;AAC7B,+CAAiC;AAEjC,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAY;IACnD,MAAM,SAAS,GAAG,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAkB,CAAC;IACvE,uEAAuE;IACvE,8EAA8E;IAC9E,kCAAkC;IAClC,8HAA8H;IAC9H,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,EAAE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/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts new file mode 100644 index 00000000..621d9bd6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts @@ -0,0 +1,15 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +declare function clearWatchCaches(): void; +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; +export { clearWatchCaches, getWatchProgramsForProjects }; +//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map new file mode 100644 index 00000000..4e5b64de --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AA4DD;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CA8Gd;AA6PD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js new file mode 100644 index 00000000..4db2836f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js @@ -0,0 +1,381 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearWatchCaches = clearWatchCaches; +exports.getWatchProgramsForProjects = getWatchProgramsForProjects; +const debug_1 = __importDefault(require("debug")); +const node_fs_1 = __importDefault(require("node:fs")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createWatchProgram'); +/** + * Maps tsconfig paths to their corresponding file contents and resulting watches + */ +const knownWatchProgramMap = new Map(); +/** + * Maps file/folder paths to their set of corresponding watch callbacks + * There may be more than one per file/folder if a file/folder is shared between projects + */ +const fileWatchCallbackTrackingMap = new Map(); +const folderWatchCallbackTrackingMap = new Map(); +/** + * Stores the list of known files for each program + */ +const programFileListCache = new Map(); +/** + * Caches the last modified time of the tsconfig files + */ +const tsconfigLastModifiedTimestampCache = new Map(); +const parsedFilesSeenHash = new Map(); +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +function clearWatchCaches() { + knownWatchProgramMap.clear(); + fileWatchCallbackTrackingMap.clear(); + folderWatchCallbackTrackingMap.clear(); + parsedFilesSeenHash.clear(); + programFileListCache.clear(); + tsconfigLastModifiedTimestampCache.clear(); +} +function saveWatchCallback(trackingMap) { + return (fileName, callback) => { + const normalizedFileName = (0, shared_1.getCanonicalFileName)(fileName); + const watchers = (() => { + let watchers = trackingMap.get(normalizedFileName); + if (!watchers) { + watchers = new Set(); + trackingMap.set(normalizedFileName, watchers); + } + return watchers; + })(); + watchers.add(callback); + return { + close: () => { + watchers.delete(callback); + }, + }; + }; +} +/** + * Holds information about the file currently being linted + */ +const currentLintOperationState = { + code: '', + filePath: '', +}; +/** + * Appropriately report issues found when reading a config file + * @param diagnostic The diagnostic raised when creating a program + */ +function diagnosticReporter(diagnostic) { + throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine)); +} +function updateCachedFileList(tsconfigPath, program) { + const fileList = new Set(program.getRootFileNames().map(f => (0, shared_1.getCanonicalFileName)(f))); + programFileListCache.set(tsconfigPath, fileList); + return fileList; +} +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +function getWatchProgramsForProjects(parseSettings) { + const filePath = (0, shared_1.getCanonicalFileName)(parseSettings.filePath); + const results = []; + // preserve reference to code and file being linted + currentLintOperationState.code = parseSettings.code; + currentLintOperationState.filePath = filePath; + // Update file version if necessary + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get(filePath); + const codeHash = (0, shared_1.createHash)((0, source_files_1.getCodeText)(parseSettings.code)); + if (parsedFilesSeenHash.get(filePath) !== codeHash && + fileWatchCallbacks && + fileWatchCallbacks.size > 0) { + fileWatchCallbacks.forEach(cb => cb(filePath, ts.FileWatcherEventKind.Changed)); + } + const currentProjectsFromSettings = new Map(parseSettings.projects); + /* + * before we go into the process of attempting to find and update every program + * see if we know of a program that contains this file + */ + for (const [tsconfigPath, existingWatch] of knownWatchProgramMap.entries()) { + if (!currentProjectsFromSettings.has(tsconfigPath)) { + // the current parser run doesn't specify this tsconfig in parserOptions.project + // so we don't want to consider it for caching purposes. + // + // if we did consider it we might return a program for a project + // that wasn't specified in the current parser run (which is obv bad!). + continue; + } + let fileList = programFileListCache.get(tsconfigPath); + let updatedProgram = null; + if (!fileList) { + updatedProgram = existingWatch.getProgram().getProgram(); + fileList = updateCachedFileList(tsconfigPath, updatedProgram); + } + if (fileList.has(filePath)) { + log('Found existing program for file. %s', filePath); + updatedProgram ??= existingWatch.getProgram().getProgram(); + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + return [updatedProgram]; + } + } + log('File did not belong to any existing programs, moving to create/update. %s', filePath); + /* + * We don't know of a program that contains the file, this means that either: + * - the required program hasn't been created yet, or + * - the file is new/renamed, and the program hasn't been updated. + */ + for (const tsconfigPath of parseSettings.projects) { + const existingWatch = knownWatchProgramMap.get(tsconfigPath[0]); + if (existingWatch) { + const updatedProgram = maybeInvalidateProgram(existingWatch, filePath, tsconfigPath[0]); + if (!updatedProgram) { + continue; + } + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], updatedProgram); + if (fileList.has(filePath)) { + log('Found updated program for file. %s', filePath); + // we can return early because we know this program contains the file + return [updatedProgram]; + } + results.push(updatedProgram); + continue; + } + const programWatch = createWatchProgram(tsconfigPath[1], parseSettings); + knownWatchProgramMap.set(tsconfigPath[0], programWatch); + const program = programWatch.getProgram().getProgram(); + // sets parent pointers in source files + program.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], program); + if (fileList.has(filePath)) { + log('Found program for file. %s', filePath); + // we can return early because we know this program contains the file + return [program]; + } + results.push(program); + } + return results; +} +function createWatchProgram(tsconfigPath, parseSettings) { + log('Creating watch program for %s.', tsconfigPath); + // create compiler host + const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter, + // TODO: file issue on TypeScript to suggest making optional? + // eslint-disable-next-line @typescript-eslint/no-empty-function + /*reportWatchStatus*/ () => { }); + watchCompilerHost.jsDocParsingMode = parseSettings.jsDocParsingMode; + // ensure readFile reads the code being linted instead of the copy on disk + const oldReadFile = watchCompilerHost.readFile; + watchCompilerHost.readFile = (filePathIn, encoding) => { + const filePath = (0, shared_1.getCanonicalFileName)(filePathIn); + const fileContent = filePath === currentLintOperationState.filePath + ? (0, source_files_1.getCodeText)(currentLintOperationState.code) + : oldReadFile(filePath, encoding); + if (fileContent !== undefined) { + parsedFilesSeenHash.set(filePath, (0, shared_1.createHash)(fileContent)); + } + return fileContent; + }; + // ensure process reports error on failure instead of exiting process immediately + watchCompilerHost.onUnRecoverableConfigFileDiagnostic = diagnosticReporter; + // ensure process doesn't emit programs + watchCompilerHost.afterProgramCreate = (program) => { + // report error if there are any errors in the config file + const configFileDiagnostics = program + .getConfigFileParsingDiagnostics() + .filter(diag => diag.category === ts.DiagnosticCategory.Error && diag.code !== 18003); + if (configFileDiagnostics.length > 0) { + diagnosticReporter(configFileDiagnostics[0]); + } + }; + /* + * From the CLI, the file watchers won't matter, as the files will be parsed once and then forgotten. + * When running from an IDE, these watchers will let us tell typescript about changes. + * + * ESLint IDE plugins will send us unfinished file content as the user types (before it's saved to disk). + * We use the file watchers to tell typescript about this latest file content. + * + * When files are created (or renamed), we won't know about them because we have no filesystem watchers attached. + * We use the folder watchers to tell typescript it needs to go and find new files in the project folders. + */ + watchCompilerHost.watchFile = saveWatchCallback(fileWatchCallbackTrackingMap); + watchCompilerHost.watchDirectory = saveWatchCallback(folderWatchCallbackTrackingMap); + // allow files with custom extensions to be included in program (uses internal ts api) + const oldOnDirectoryStructureHostCreate = watchCompilerHost.onCachedDirectoryStructureHostCreate; + watchCompilerHost.onCachedDirectoryStructureHostCreate = (host) => { + const oldReadDirectory = host.readDirectory; + host.readDirectory = (path, extensions, exclude, include, depth) => oldReadDirectory(path, !extensions + ? undefined + : [...extensions, ...parseSettings.extraFileExtensions], exclude, include, depth); + oldOnDirectoryStructureHostCreate(host); + }; + // This works only on 3.9 + watchCompilerHost.extraFileExtensions = parseSettings.extraFileExtensions.map(extension => ({ + extension, + isMixedContent: true, + scriptKind: ts.ScriptKind.Deferred, + })); + watchCompilerHost.trace = log; + // Since we don't want to asynchronously update program we want to disable timeout methods + // So any changes in the program will be delayed and updated when getProgram is called on watch + watchCompilerHost.setTimeout = undefined; + watchCompilerHost.clearTimeout = undefined; + return ts.createWatchProgram(watchCompilerHost); +} +function hasTSConfigChanged(tsconfigPath) { + const stat = node_fs_1.default.statSync(tsconfigPath); + const lastModifiedAt = stat.mtimeMs; + const cachedLastModifiedAt = tsconfigLastModifiedTimestampCache.get(tsconfigPath); + tsconfigLastModifiedTimestampCache.set(tsconfigPath, lastModifiedAt); + if (cachedLastModifiedAt === undefined) { + return false; + } + return Math.abs(cachedLastModifiedAt - lastModifiedAt) > Number.EPSILON; +} +function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) { + /* + * By calling watchProgram.getProgram(), it will trigger a resync of the program based on + * whatever new file content we've given it from our input. + */ + let updatedProgram = existingWatch.getProgram().getProgram(); + // In case this change causes problems in larger real world codebases + // Provide an escape hatch so people don't _have_ to revert to an older version + if (process.env.TSESTREE_NO_INVALIDATION === 'true') { + return updatedProgram; + } + if (hasTSConfigChanged(tsconfigPath)) { + /* + * If the stat of the tsconfig has changed, that could mean the include/exclude/files lists has changed + * We need to make sure typescript knows this so it can update appropriately + */ + log('tsconfig has changed - triggering program update. %s', tsconfigPath); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + fileWatchCallbackTrackingMap + .get(tsconfigPath) + .forEach(cb => cb(tsconfigPath, ts.FileWatcherEventKind.Changed)); + // tsconfig change means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + } + let sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * Missing source file means our program's folder structure might be out of date. + * So we need to tell typescript it needs to update the correct folder. + */ + log('File was not found in program - triggering folder update. %s', filePath); + // Find the correct directory callback by climbing the folder tree + const currentDir = (0, shared_1.canonicalDirname)(filePath); + let current = null; + let next = currentDir; + let hasCallback = false; + while (current !== next) { + current = next; + const folderWatchCallbacks = folderWatchCallbackTrackingMap.get(current); + if (folderWatchCallbacks) { + for (const cb of folderWatchCallbacks) { + if (currentDir !== current) { + cb(currentDir, ts.FileWatcherEventKind.Changed); + } + cb(current, ts.FileWatcherEventKind.Changed); + } + hasCallback = true; + } + next = (0, shared_1.canonicalDirname)(current); + } + if (!hasCallback) { + /* + * No callback means the paths don't matchup - so no point returning any program + * this will signal to the caller to skip this program + */ + log('No callback found for file, not part of this program. %s', filePath); + return null; + } + // directory update means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + // force the immediate resync + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * At this point we're in one of two states: + * - The file isn't supposed to be in this program due to exclusions + * - The file is new, and was renamed from an old, included filename + * + * For the latter case, we need to tell typescript that the old filename is now deleted + */ + log('File was still not found in program after directory update - checking file deletions. %s', filePath); + const rootFilenames = updatedProgram.getRootFileNames(); + // use find because we only need to "delete" one file to cause typescript to do a full resync + const deletedFile = rootFilenames.find(file => !node_fs_1.default.existsSync(file)); + if (!deletedFile) { + // There are no deleted files, so it must be the former case of the file not belonging to this program + return null; + } + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get((0, shared_1.getCanonicalFileName)(deletedFile)); + if (!fileWatchCallbacks) { + // shouldn't happen, but just in case + log('Could not find watch callbacks for root file. %s', deletedFile); + return updatedProgram; + } + log('Marking file as deleted. %s', deletedFile); + fileWatchCallbacks.forEach(cb => cb(deletedFile, ts.FileWatcherEventKind.Deleted)); + // deleted files means that the file list _has_ changed, so clear the cache + programFileListCache.delete(tsconfigPath); + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath); + return null; +} +//# sourceMappingURL=getWatchProgramsForProjects.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map new file mode 100644 index 00000000..dbbcae18 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4eS,4CAAgB;AAAE,kEAA2B;AA5etD,kDAA0B;AAC1B,sDAAyB;AACzB,+CAAiC;AAMjC,kDAA8C;AAC9C,qCAKkB;AAElB,MAAM,GAAG,GAAG,IAAA,e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U,EAAE,CAAC;IACzD,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts new file mode 100644 index 00000000..7ec5bda2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts @@ -0,0 +1,33 @@ +import type { Program } from 'typescript'; +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +interface ASTAndNoProgram { + ast: ts.SourceFile; + program: null; +} +interface ASTAndDefiniteProgram { + ast: ts.SourceFile; + program: ts.Program; +} +type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; +/** + * Compiler options required to avoid critical functionality issues + */ +declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; +declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set; +declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; +type CanonicalPath = { + __brand: unknown; +} & string; +declare function getCanonicalFileName(filePath: string): CanonicalPath; +declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; +declare function canonicalDirname(p: CanonicalPath): CanonicalPath; +declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +declare function createHash(content: string): string; +export { type ASTAndDefiniteProgram, type ASTAndNoProgram, type ASTAndProgram, canonicalDirname, type CanonicalPath, CORE_COMPILER_OPTIONS, createDefaultCompilerOptionsFromExtra, createHash, DEFAULT_EXTRA_FILE_EXTENSIONS, ensureAbsolutePath, getAstFromProgram, getCanonicalFileName, }; +//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map new file mode 100644 index 00000000..d79943b5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,eAAe;IACvB,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC;CACf;AACD,UAAU,qBAAqB;IAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;CACrB;AACD,KAAK,aAAa,GAAG,qBAAqB,GAAG,eAAe,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,eAQ/B,CAAC;AAYF,QAAA,MAAM,6BAA6B,aASjC,CAAC;AAEH,iBAAS,qCAAqC,CAC5C,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,eAAe,CASpB;AAGD,KAAK,aAAa,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAAC;AAUnD,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAM7D;AAED,iBAAS,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,iBAAS,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAEzD;AAmBD,iBAAS,iBAAiB,CACxB,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,MAAM,GACf,qBAAqB,GAAG,SAAS,CAWnC;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAO3C;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,aAAa,EAClB,qBAAqB,EACrB,qCAAqC,EACrC,UAAU,EACV,6BAA6B,EAC7B,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,GACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js new file mode 100644 index 00000000..974dd155 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js @@ -0,0 +1,145 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = exports.CORE_COMPILER_OPTIONS = void 0; +exports.canonicalDirname = canonicalDirname; +exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; +exports.createHash = createHash; +exports.ensureAbsolutePath = ensureAbsolutePath; +exports.getAstFromProgram = getAstFromProgram; +exports.getCanonicalFileName = getCanonicalFileName; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +/** + * Compiler options required to avoid critical functionality issues + */ +const CORE_COMPILER_OPTIONS = { + noEmit: true, // required to avoid parse from causing emit to occur + /** + * Flags required to make no-unused-vars work + */ + noUnusedLocals: true, + noUnusedParameters: true, +}; +exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; +/** + * Default compiler options for program generation + */ +const DEFAULT_COMPILER_OPTIONS = { + ...CORE_COMPILER_OPTIONS, + allowJs: true, + allowNonTsExtensions: true, + checkJs: true, +}; +const DEFAULT_EXTRA_FILE_EXTENSIONS = new Set([ + ts.Extension.Cjs, + ts.Extension.Cts, + ts.Extension.Js, + ts.Extension.Jsx, + ts.Extension.Mjs, + ts.Extension.Mts, + ts.Extension.Ts, + ts.Extension.Tsx, +]); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = DEFAULT_EXTRA_FILE_EXTENSIONS; +function createDefaultCompilerOptionsFromExtra(parseSettings) { + if (parseSettings.debugLevel.has('typescript')) { + return { + ...DEFAULT_COMPILER_OPTIONS, + extendedDiagnostics: true, + }; + } + return DEFAULT_COMPILER_OPTIONS; +} +// typescript doesn't provide a ts.sys implementation for browser environments +const useCaseSensitiveFileNames = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +ts.sys !== undefined ? ts.sys.useCaseSensitiveFileNames : true; +const correctPathCasing = useCaseSensitiveFileNames + ? (filePath) => filePath + : (filePath) => filePath.toLowerCase(); +function getCanonicalFileName(filePath) { + let normalized = node_path_1.default.normalize(filePath); + if (normalized.endsWith(node_path_1.default.sep)) { + normalized = normalized.slice(0, -1); + } + return correctPathCasing(normalized); +} +function ensureAbsolutePath(p, tsconfigRootDir) { + return node_path_1.default.isAbsolute(p) + ? p + : node_path_1.default.join(tsconfigRootDir || process.cwd(), p); +} +function canonicalDirname(p) { + return node_path_1.default.dirname(p); +} +const DEFINITION_EXTENSIONS = [ + ts.Extension.Dts, + ts.Extension.Dcts, + ts.Extension.Dmts, +]; +function getExtension(fileName) { + if (!fileName) { + return null; + } + return (DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt)) ?? node_path_1.default.extname(fileName)); +} +function getAstFromProgram(currentProgram, filePath) { + const ast = currentProgram.getSourceFile(filePath); + // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573 + const expectedExt = getExtension(filePath); + const returnedExt = getExtension(ast?.fileName); + if (expectedExt !== returnedExt) { + return undefined; + } + return ast && { ast, program: currentProgram }; +} +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +function createHash(content) { + // No ts.sys in browser environments. + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (ts.sys?.createHash) { + return ts.sys.createHash(content); + } + return content; +} +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map new file mode 100644 index 00000000..038d3a36 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgJE,4CAAgB;AAGhB,sFAAqC;AACrC,gCAAU;AAEV,gDAAkB;AAClB,8CAAiB;AACjB,oDAAoB;AAtJtB,0DAA6B;AAC7B,+CAAiC;AAcjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI,EAAE,qDAAqD;IAEnE;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAsHA,sDAAqB;AApHvB;;GAEG;AACH,MAAM,wBAAwB,GAAuB;IACnD,GAAG,qBAAqB;IACxB,OAAO,EAAE,IAAI;IACb,oBAAoB,EAAE,IAAI;IAC1B,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAS;IACpD,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,EAAE;IACf,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,EAAE;IACf,EAAE,CAAC,SAAS,CAAC,GAAG;CACjB,CAAC,CAAC;AAoGD,sEAA6B;AAlG/B,SAAS,qCAAqC,CAC5C,aAA4B;IAE5B,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/C,OAAO;YACL,GAAG,wBAAwB;YAC3B,mBAAmB,EAAE,IAAI;SAC1B,CAAC;IACJ,CAAC;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAKD,8EAA8E;AAC9E,MAAM,yBAAyB;AAC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B,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CACzC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CACjC,IAAI,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,cAAuB,EACvB,QAAgB;IAEhB,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEnD,oFAAoF;IACpF,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAe;IACjC,qCAAqC;IACrC,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts new file mode 100644 index 00000000..273ca7f5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts @@ -0,0 +1,13 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; +export { createProgramFromConfigFile, useProvidedPrograms }; +//# sourceMappingURL=useProvidedPrograms.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map new file mode 100644 index 00000000..bd56bf83 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,GAAG,SAAS,CAoCnC;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CAIZ;AAED,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js new file mode 100644 index 00000000..2220ad8e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProgramFromConfigFile = createProgramFromConfigFile; +exports.useProvidedPrograms = useProvidedPrograms; +const debug_1 = __importDefault(require("debug")); +const path = __importStar(require("node:path")); +const ts = __importStar(require("typescript")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram'); +function useProvidedPrograms(programInstances, parseSettings) { + log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath); + let astAndProgram; + for (const programInstance of programInstances) { + astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings.filePath); + // Stop at the first applicable program instance + if (astAndProgram) { + break; + } + } + if (astAndProgram) { + astAndProgram.program.getTypeChecker(); // ensure parent pointers are set in source files + return astAndProgram; + } + const relativeFilePath = path.relative(parseSettings.tsconfigRootDir, parseSettings.filePath); + const [typeSource, typeSources] = parseSettings.projects.size > 0 + ? ['project', 'project(s)'] + : ['programs', 'program instance(s)']; + const errorLines = [ + `"parserOptions.${typeSource}" has been provided for @typescript-eslint/parser.`, + `The file was not found in any of the provided ${typeSources}: ${relativeFilePath}`, + ]; + throw new Error(errorLines.join('\n')); +} +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function createProgramFromConfigFile(configFile, projectDirectory) { + const parsed = (0, getParsedConfigFile_1.getParsedConfigFile)(ts, configFile, projectDirectory); + const host = ts.createCompilerHost(parsed.options, true); + return ts.createProgram(parsed.fileNames, parsed.options, host); +} +//# sourceMappingURL=useProvidedPrograms.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map new file mode 100644 index 00000000..f2b1c1e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoES,kEAA2B;AAAE,kDAAmB;AApEzD,kDAA0B;AAC1B,gDAAkC;AAClC,+CAAiC;AAKjC,+DAA4D;AAC5D,qCA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AE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts new file mode 100644 index 00000000..cd36c54f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts @@ -0,0 +1,3 @@ +export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide\n"; +export declare function validateDefaultProjectForFilesGlob(allowDefaultProject: string[] | undefined): void; +//# sourceMappingURL=validateDefaultProjectForFilesGlob.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map new file mode 100644 index 00000000..18df39ca --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.d.ts","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,yNAKnD,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,GACxC,IAAI,CAiBN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js new file mode 100644 index 00000000..74d5e37b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = void 0; +exports.validateDefaultProjectForFilesGlob = validateDefaultProjectForFilesGlob; +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = ` + +Having many files run with the default project is known to cause performance issues and slow down linting. + +See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide +`; +function validateDefaultProjectForFilesGlob(allowDefaultProject) { + if (!allowDefaultProject?.length) { + return; + } + for (const glob of allowDefaultProject) { + if (glob === '*') { + throw new Error(`allowDefaultProject contains the overly wide '*'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + if (glob.includes('**')) { + throw new Error(`allowDefaultProject glob '${glob}' contains a disallowed '**'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + } +} +//# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map new file mode 100644 index 00000000..50d95d2f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.js","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":";;;AAOA,gFAmBC;AA1BY,QAAA,uCAAuC,GAAG;;;;;CAKtD,CAAC;AAEF,SAAgB,kCAAkC,CAChD,mBAAyC;IAEzC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,mBAAmB,EAAE,CAAC;QACvC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACb,oDAAoD,+CAAuC,EAAE,CAC9F,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,6BAA6B,IAAI,gCAAgC,+CAAuC,EAAE,CAC3G,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts new file mode 100644 index 00000000..28b98fe8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts @@ -0,0 +1,5 @@ +import type * as ts from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParserServices } from './parser-options'; +export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices; +//# sourceMappingURL=createParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map new file mode 100644 index 00000000..69157f26 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.d.ts","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,IAAI,GACzB,cAAc,CA2BhB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js new file mode 100644 index 00000000..2c5e60c8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParserServices = createParserServices; +function createParserServices(astMaps, program) { + if (!program) { + return { + emitDecoratorMetadata: undefined, + experimentalDecorators: undefined, + program, + // we always return the node maps because + // (a) they don't require type info and + // (b) they can be useful when using some of TS's internal non-type-aware AST utils + ...astMaps, + }; + } + const checker = program.getTypeChecker(); + const compilerOptions = program.getCompilerOptions(); + return { + program, + // not set in the config is the same as off + emitDecoratorMetadata: compilerOptions.emitDecoratorMetadata ?? false, + experimentalDecorators: compilerOptions.experimentalDecorators ?? false, + ...astMaps, + getSymbolAtLocation: node => checker.getSymbolAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + getTypeAtLocation: node => checker.getTypeAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + }; +} +//# sourceMappingURL=createParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map new file mode 100644 index 00000000..54a84fef --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.js","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":";;AAKA,oDA8BC;AA9BD,SAAgB,oBAAoB,CAClC,OAAgB,EAChB,OAA0B;IAE1B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;YACL,qBAAqB,EAAE,SAAS;YAChC,sBAAsB,EAAE,SAAS;YACjC,OAAO;YACP,yCAAyC;YACzC,uCAAuC;YACvC,mFAAmF;YACnF,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAErD,OAAO;QACL,OAAO;QACP,2CAA2C;QAC3C,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,IAAI,KAAK;QACrE,sBAAsB,EAAE,eAAe,CAAC,sBAAsB,IAAI,KAAK;QACvE,GAAG,OAAO;QACV,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAC1B,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtE,iBAAiB,EAAE,IAAI,CAAC,EAAE,CACxB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACrE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts new file mode 100644 index 00000000..c312b154 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined; +export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined; +//# sourceMappingURL=getModifiers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map new file mode 100644 index 00000000..a67408e6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.d.ts","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,uBAAuB,UAAQ,GAC9B,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAsB3B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,wBAAwB,UAAQ,GAC/B,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,CAoB5B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js new file mode 100644 index 00000000..a5d358a6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js @@ -0,0 +1,75 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getModifiers = getModifiers; +exports.getDecorators = getDecorators; +const ts = __importStar(require("typescript")); +const version_check_1 = require("./version-check"); +const isAtLeast48 = version_check_1.typescriptVersionIsAtLeast['4.8']; +function getModifiers(node, includeIllegalModifiers = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalModifiers || ts.canHaveModifiers(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const modifiers = ts.getModifiers(node); + return modifiers ? [...modifiers] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.modifiers?.filter((m) => !ts.isDecorator(m))); +} +function getDecorators(node, includeIllegalDecorators = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalDecorators || ts.canHaveDecorators(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const decorators = ts.getDecorators(node); + return decorators ? [...decorators] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.decorators?.filter(ts.isDecorator)); +} +//# sourceMappingURL=getModifiers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map new file mode 100644 index 00000000..43d2d4e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.js","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,oCAyBC;AAED,sCAuBC;AAxDD,+CAAiC;AAEjC,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,SAAgB,YAAY,CAC1B,IAAgC,EAChC,uBAAuB,GAAG,KAAK;IAE/B,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,uBAAuB,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;YACzD,4FAA4F;YAC5F,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,IAAuB,CAAC,CAAC;YAC3D,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,SAAuC,EAAE,MAAM,CACnD,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5C,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAC3B,IAAgC,EAChC,wBAAwB,GAAG,KAAK;IAEhC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,wBAAwB,IAAI,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,4FAA4F;YAC5F,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAwB,CAAC,CAAC;YAC9D,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,UAAoC,EAAE,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,CACnE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts new file mode 100644 index 00000000..5abd5434 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts @@ -0,0 +1,14 @@ +export * from './clear-caches'; +export * from './create-program/getScriptKind'; +export { getCanonicalFileName } from './create-program/shared'; +export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; +export * from './getModifiers'; +export { TSError } from './node-utils'; +export { type AST, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, } from './parser'; +export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, TSESTreeOptions, } from './parser-options'; +export { simpleTraverse } from './simple-traverse'; +export * from './ts-estree'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { version } from './version'; +export { withoutProjectParserOptions } from './withoutProjectParserOptions'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map new file mode 100644 index 00000000..e3be7bee --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,oCAAoC,EACpC,iCAAiC,EACjC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js new file mode 100644 index 00000000..b72f73ff --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js @@ -0,0 +1,39 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.withoutProjectParserOptions = exports.version = exports.typescriptVersionIsAtLeast = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = exports.TSError = exports.createProgram = exports.getCanonicalFileName = void 0; +__exportStar(require("./clear-caches"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +var useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return useProvidedPrograms_1.createProgramFromConfigFile; } }); +__exportStar(require("./getModifiers"), exports); +var node_utils_1 = require("./node-utils"); +Object.defineProperty(exports, "TSError", { enumerable: true, get: function () { return node_utils_1.TSError; } }); +var parser_1 = require("./parser"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); +Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } }); +var simple_traverse_1 = require("./simple-traverse"); +Object.defineProperty(exports, "simpleTraverse", { enumerable: true, get: function () { return simple_traverse_1.simpleTraverse; } }); +__exportStar(require("./ts-estree"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +var version_1 = require("./version"); +Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } }); +var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions"); +Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map new file mode 100644 index 00000000..993596e9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts new file mode 100644 index 00000000..7953cc6f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts @@ -0,0 +1,2 @@ +export declare const xhtmlEntities: Record; +//# sourceMappingURL=xhtml-entities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map new file mode 100644 index 00000000..ce45e83d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.d.ts","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8PhD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js new file mode 100644 index 00000000..d757174f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js @@ -0,0 +1,259 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xhtmlEntities = void 0; +exports.xhtmlEntities = { + Aacute: '\u00C1', + aacute: '\u00E1', + Acirc: '\u00C2', + acirc: '\u00E2', + acute: '\u00B4', + AElig: '\u00C6', + aelig: '\u00E6', + Agrave: '\u00C0', + agrave: '\u00E0', + alefsym: '\u2135', + Alpha: '\u0391', + alpha: '\u03B1', + amp: '&', + and: '\u2227', + ang: '\u2220', + apos: '\u0027', + Aring: '\u00C5', + aring: '\u00E5', + asymp: '\u2248', + Atilde: '\u00C3', + atilde: '\u00E3', + Auml: '\u00C4', + auml: '\u00E4', + bdquo: '\u201E', + Beta: '\u0392', + beta: '\u03B2', + brvbar: '\u00A6', + bull: '\u2022', + cap: '\u2229', + Ccedil: '\u00C7', + ccedil: '\u00E7', + cedil: '\u00B8', + cent: '\u00A2', + Chi: '\u03A7', + chi: '\u03C7', + circ: '\u02C6', + clubs: '\u2663', + cong: '\u2245', + copy: '\u00A9', + crarr: '\u21B5', + cup: '\u222A', + curren: '\u00A4', + dagger: '\u2020', + Dagger: '\u2021', + darr: '\u2193', + dArr: '\u21D3', + deg: '\u00B0', + Delta: '\u0394', + delta: '\u03B4', + diams: '\u2666', + divide: '\u00F7', + Eacute: '\u00C9', + eacute: '\u00E9', + Ecirc: '\u00CA', + ecirc: '\u00EA', + Egrave: '\u00C8', + egrave: '\u00E8', + empty: '\u2205', + emsp: '\u2003', + ensp: '\u2002', + Epsilon: '\u0395', + epsilon: '\u03B5', + equiv: '\u2261', + Eta: '\u0397', + eta: '\u03B7', + ETH: '\u00D0', + eth: '\u00F0', + Euml: '\u00CB', + euml: '\u00EB', + euro: '\u20AC', + exist: '\u2203', + fnof: '\u0192', + forall: '\u2200', + frac12: '\u00BD', + frac14: '\u00BC', + frac34: '\u00BE', + frasl: '\u2044', + Gamma: '\u0393', + gamma: '\u03B3', + ge: '\u2265', + gt: '>', + harr: '\u2194', + hArr: '\u21D4', + hearts: '\u2665', + hellip: '\u2026', + Iacute: '\u00CD', + iacute: '\u00ED', + Icirc: '\u00CE', + icirc: '\u00EE', + iexcl: '\u00A1', + Igrave: '\u00CC', + igrave: '\u00EC', + image: '\u2111', + infin: '\u221E', + int: '\u222B', + Iota: '\u0399', + iota: '\u03B9', + iquest: '\u00BF', + isin: '\u2208', + Iuml: '\u00CF', + iuml: '\u00EF', + Kappa: '\u039A', + kappa: '\u03BA', + Lambda: '\u039B', + lambda: '\u03BB', + lang: '\u2329', + laquo: '\u00AB', + larr: '\u2190', + lArr: '\u21D0', + lceil: '\u2308', + ldquo: '\u201C', + le: '\u2264', + lfloor: '\u230A', + lowast: '\u2217', + loz: '\u25CA', + lrm: '\u200E', + lsaquo: '\u2039', + lsquo: '\u2018', + lt: '<', + macr: '\u00AF', + mdash: '\u2014', + micro: '\u00B5', + middot: '\u00B7', + minus: '\u2212', + Mu: '\u039C', + mu: '\u03BC', + nabla: '\u2207', + nbsp: '\u00A0', + ndash: '\u2013', + ne: '\u2260', + ni: '\u220B', + not: '\u00AC', + notin: '\u2209', + nsub: '\u2284', + Ntilde: '\u00D1', + ntilde: '\u00F1', + Nu: '\u039D', + nu: '\u03BD', + Oacute: '\u00D3', + oacute: '\u00F3', + Ocirc: '\u00D4', + ocirc: '\u00F4', + OElig: '\u0152', + oelig: '\u0153', + Ograve: '\u00D2', + ograve: '\u00F2', + oline: '\u203E', + Omega: '\u03A9', + omega: '\u03C9', + Omicron: '\u039F', + omicron: '\u03BF', + oplus: '\u2295', + or: '\u2228', + ordf: '\u00AA', + ordm: '\u00BA', + Oslash: '\u00D8', + oslash: '\u00F8', + Otilde: '\u00D5', + otilde: '\u00F5', + otimes: '\u2297', + Ouml: '\u00D6', + ouml: '\u00F6', + para: '\u00B6', + part: '\u2202', + permil: '\u2030', + perp: '\u22A5', + Phi: '\u03A6', + phi: '\u03C6', + Pi: '\u03A0', + pi: '\u03C0', + piv: '\u03D6', + plusmn: '\u00B1', + pound: '\u00A3', + prime: '\u2032', + Prime: '\u2033', + prod: '\u220F', + prop: '\u221D', + Psi: '\u03A8', + psi: '\u03C8', + quot: '\u0022', + radic: '\u221A', + rang: '\u232A', + raquo: '\u00BB', + rarr: '\u2192', + rArr: '\u21D2', + rceil: '\u2309', + rdquo: '\u201D', + real: '\u211C', + reg: '\u00AE', + rfloor: '\u230B', + Rho: '\u03A1', + rho: '\u03C1', + rlm: '\u200F', + rsaquo: '\u203A', + rsquo: '\u2019', + sbquo: '\u201A', + Scaron: '\u0160', + scaron: '\u0161', + sdot: '\u22C5', + sect: '\u00A7', + shy: '\u00AD', + Sigma: '\u03A3', + sigma: '\u03C3', + sigmaf: '\u03C2', + sim: '\u223C', + spades: '\u2660', + sub: '\u2282', + sube: '\u2286', + sum: '\u2211', + sup: '\u2283', + sup1: '\u00B9', + sup2: '\u00B2', + sup3: '\u00B3', + supe: '\u2287', + szlig: '\u00DF', + Tau: '\u03A4', + tau: '\u03C4', + there4: '\u2234', + Theta: '\u0398', + theta: '\u03B8', + thetasym: '\u03D1', + thinsp: '\u2009', + THORN: '\u00DE', + thorn: '\u00FE', + tilde: '\u02DC', + times: '\u00D7', + trade: '\u2122', + Uacute: '\u00DA', + uacute: '\u00FA', + uarr: '\u2191', + uArr: '\u21D1', + Ucirc: '\u00DB', + ucirc: '\u00FB', + Ugrave: '\u00D9', + ugrave: '\u00F9', + uml: '\u00A8', + upsih: '\u03D2', + Upsilon: '\u03A5', + upsilon: '\u03C5', + Uuml: '\u00DC', + uuml: '\u00FC', + weierp: '\u2118', + Xi: '\u039E', + xi: '\u03BE', + Yacute: '\u00DD', + yacute: '\u00FD', + yen: '\u00A5', + yuml: '\u00FF', + Yuml: '\u0178', + Zeta: '\u0396', + zeta: '\u03B6', + zwj: '\u200D', + zwnj: '\u200C', +}; +//# sourceMappingURL=xhtml-entities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map new file mode 100644 index 00000000..0307f680 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.js","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":";;;AAAa,QAA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AAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;CACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts new file mode 100644 index 00000000..8dcbed5b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts @@ -0,0 +1,192 @@ +import * as ts from 'typescript'; +import type { TSESTree, TSNode } from './ts-estree'; +import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; +declare const SyntaxKind: typeof ts.SyntaxKind; +type LogicalOperatorKind = ts.SyntaxKind.AmpersandAmpersandToken | ts.SyntaxKind.BarBarToken | ts.SyntaxKind.QuestionQuestionToken; +interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOperatorToText { + [SyntaxKind.ImportKeyword]: 'import'; + [SyntaxKind.KeyOfKeyword]: 'keyof'; + [SyntaxKind.NewKeyword]: 'new'; + [SyntaxKind.ReadonlyKeyword]: 'readonly'; + [SyntaxKind.UniqueKeyword]: 'unique'; +} +type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText; +type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText; +type DeclarationKind = TSESTree.VariableDeclaration['kind']; +/** + * Returns true if the given ts.Token is a logical operator + */ +export declare function isLogicalOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +export declare function isESTreeBinaryOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +type TokenForTokenKind = T extends keyof TokenToText ? TokenToText[T] : string | undefined; +/** + * Returns the string form of the given TSToken SyntaxKind + */ +export declare function getTextForTokenKind(kind: T): TokenForTokenKind; +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +export declare function isESTreeClassMember(node: ts.Node): boolean; +/** + * Checks if a ts.Node has a modifier + */ +export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +export declare function getLastModifier(node: ts.Node): ts.Modifier | null; +/** + * Returns true if the given ts.Token is a comma + */ +export declare function isComma(token: ts.Node): token is ts.Token; +/** + * Returns true if the given ts.Node is a comment + */ +export declare function isComment(node: ts.Node): boolean; +/** + * Returns the binary expression type of the given ts.Token + */ +export declare function getBinaryExpressionType(operator: ts.BinaryOperatorToken): { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.AssignmentExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.BinaryExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.LogicalExpression; +}; +/** + * Returns line and column data for the given positions + */ +export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +export declare function getLocFor(range: TSESTree.Range, ast: ts.SourceFile): TSESTree.SourceLocation; +/** + * Check whatever node can contain directive + */ +export declare function canContainDirective(node: ts.Block | ts.ClassStaticBlockDeclaration | ts.ModuleBlock | ts.SourceFile): boolean; +/** + * Returns range for the given ts.Node + */ +export declare function getRange(node: Pick, ast: ts.SourceFile): [number, number]; +/** + * Returns true if a given ts.Node is a JSX token + */ +export declare function isJSXToken(node: ts.Node): boolean; +/** + * Returns the declaration kind of the given ts.Node + */ +export declare function getDeclarationKind(node: ts.VariableDeclarationList): DeclarationKind; +/** + * Gets a ts.Node's accessibility level + */ +export declare function getTSNodeAccessibility(node: ts.Node): 'private' | 'protected' | 'public' | undefined; +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +export declare function hasJSXAncestor(node: ts.Node): boolean; +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +export declare function unescapeStringLiteralText(text: string): string; +/** + * Returns true if a given ts.Node is a computed property + */ +export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +export declare function isOptional(node: { + questionToken?: ts.QuestionToken; +}): boolean; +/** + * Returns true if the node is an optional chain node + */ +export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; +/** + * Returns true of the child of property access expression is an optional chain + */ +export declare function isChildUnwrappableOptionalChain(node: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression, child: TSESTree.Node): boolean; +/** + * Returns the type of a given ts.Token + */ +export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; +/** + * Extends and formats a given ts.Token, for a given AST + */ +export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; +export declare class TSError extends Error { + readonly fileName: string; + readonly location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }; + constructor(message: string, fileName: string, location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }); + get index(): number; + get lineNumber(): number; + get column(): number; +} +export declare function createError(message: string, ast: ts.SourceFile, startIndex: number, endIndex?: number): TSError; +export declare function nodeHasIllegalDecorators(node: ts.Node): node is { + illegalDecorators: ts.Node[]; +} & ts.Node; +export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; +export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; +export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; +export declare function isThisInTypeQuery(node: ts.Node): boolean; +export declare function nodeIsPresent(node: ts.Node | undefined): node is ts.Node; +export declare function getContainingFunction(node: ts.Node): ts.SignatureDeclaration | undefined; +export declare function nodeCanBeDecorated(node: TSNode): boolean; +export declare function isValidAssignmentTarget(node: ts.Node): boolean; +export declare function getNamespaceModifiers(node: ts.ModuleDeclaration): ts.Modifier[] | undefined; +export {}; +//# sourceMappingURL=node-utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map new file mode 100644 index 00000000..a37a7e80 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-utils.d.ts","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIpD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,UAAU,sBAAgB,CAAC;AAEjC,KAAK,mBAAmB,GACpB,EAAE,CAAC,UAAU,CAAC,uBAAuB,GACrC,EAAE,CAAC,UAAU,CAAC,WAAW,GACzB,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC;AAOxC,UAAU,WACR,SAAQ,QAAQ,CAAC,qBAAqB,EACpC,QAAQ,CAAC,oBAAoB;IAC/B,CAAC,UAAU,CAAC,aAAa,CAAC,EAA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CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,IAAI,CAExE;AAGD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,EAAE,CAAC,oBAAoB,GAAG,SAAS,CAErC;AA4BD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuDxD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CA6B9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,iBAAiB,GACzB,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAgB3B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js new file mode 100644 index 00000000..11271d7d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js @@ -0,0 +1,739 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSError = void 0; +exports.isLogicalOperator = isLogicalOperator; +exports.isESTreeBinaryOperator = isESTreeBinaryOperator; +exports.getTextForTokenKind = getTextForTokenKind; +exports.isESTreeClassMember = isESTreeClassMember; +exports.hasModifier = hasModifier; +exports.getLastModifier = getLastModifier; +exports.isComma = isComma; +exports.isComment = isComment; +exports.getBinaryExpressionType = getBinaryExpressionType; +exports.getLineAndCharacterFor = getLineAndCharacterFor; +exports.getLocFor = getLocFor; +exports.canContainDirective = canContainDirective; +exports.getRange = getRange; +exports.isJSXToken = isJSXToken; +exports.getDeclarationKind = getDeclarationKind; +exports.getTSNodeAccessibility = getTSNodeAccessibility; +exports.findNextToken = findNextToken; +exports.findFirstMatchingAncestor = findFirstMatchingAncestor; +exports.hasJSXAncestor = hasJSXAncestor; +exports.unescapeStringLiteralText = unescapeStringLiteralText; +exports.isComputedProperty = isComputedProperty; +exports.isOptional = isOptional; +exports.isChainExpression = isChainExpression; +exports.isChildUnwrappableOptionalChain = isChildUnwrappableOptionalChain; +exports.getTokenType = getTokenType; +exports.convertToken = convertToken; +exports.convertTokens = convertTokens; +exports.createError = createError; +exports.nodeHasIllegalDecorators = nodeHasIllegalDecorators; +exports.nodeHasTokens = nodeHasTokens; +exports.firstDefined = firstDefined; +exports.identifierIsThisKeyword = identifierIsThisKeyword; +exports.isThisIdentifier = isThisIdentifier; +exports.isThisInTypeQuery = isThisInTypeQuery; +exports.nodeIsPresent = nodeIsPresent; +exports.getContainingFunction = getContainingFunction; +exports.nodeCanBeDecorated = nodeCanBeDecorated; +exports.isValidAssignmentTarget = isValidAssignmentTarget; +exports.getNamespaceModifiers = getNamespaceModifiers; +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const xhtml_entities_1 = require("./jsx/xhtml-entities"); +const ts_estree_1 = require("./ts-estree"); +const version_check_1 = require("./version-check"); +const isAtLeast50 = version_check_1.typescriptVersionIsAtLeast['5.0']; +const SyntaxKind = ts.SyntaxKind; +const LOGICAL_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.BarBarToken, + SyntaxKind.QuestionQuestionToken, +]); +const ASSIGNMENT_OPERATORS = new Set([ + ts.SyntaxKind.AmpersandAmpersandEqualsToken, + ts.SyntaxKind.AmpersandEqualsToken, + ts.SyntaxKind.AsteriskAsteriskEqualsToken, + ts.SyntaxKind.AsteriskEqualsToken, + ts.SyntaxKind.BarBarEqualsToken, + ts.SyntaxKind.BarEqualsToken, + ts.SyntaxKind.CaretEqualsToken, + ts.SyntaxKind.EqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.LessThanLessThanEqualsToken, + ts.SyntaxKind.MinusEqualsToken, + ts.SyntaxKind.PercentEqualsToken, + ts.SyntaxKind.PlusEqualsToken, + ts.SyntaxKind.QuestionQuestionEqualsToken, + ts.SyntaxKind.SlashEqualsToken, +]); +const BINARY_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.AmpersandToken, + SyntaxKind.AsteriskAsteriskToken, + SyntaxKind.AsteriskToken, + SyntaxKind.BarBarToken, + SyntaxKind.BarToken, + SyntaxKind.CaretToken, + SyntaxKind.EqualsEqualsEqualsToken, + SyntaxKind.EqualsEqualsToken, + SyntaxKind.ExclamationEqualsEqualsToken, + SyntaxKind.ExclamationEqualsToken, + SyntaxKind.GreaterThanEqualsToken, + SyntaxKind.GreaterThanGreaterThanGreaterThanToken, + SyntaxKind.GreaterThanGreaterThanToken, + SyntaxKind.GreaterThanToken, + SyntaxKind.InKeyword, + SyntaxKind.InstanceOfKeyword, + SyntaxKind.LessThanEqualsToken, + SyntaxKind.LessThanLessThanToken, + SyntaxKind.LessThanToken, + SyntaxKind.MinusToken, + SyntaxKind.PercentToken, + SyntaxKind.PlusToken, + SyntaxKind.SlashToken, +]); +/** + * Returns true if the given ts.Token is the assignment operator + */ +function isAssignmentOperator(operator) { + return ASSIGNMENT_OPERATORS.has(operator.kind); +} +/** + * Returns true if the given ts.Token is a logical operator + */ +function isLogicalOperator(operator) { + return LOGICAL_OPERATORS.has(operator.kind); +} +function isESTreeBinaryOperator(operator) { + return BINARY_OPERATORS.has(operator.kind); +} +/** + * Returns the string form of the given TSToken SyntaxKind + */ +function getTextForTokenKind(kind) { + return ts.tokenToString(kind); +} +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +function isESTreeClassMember(node) { + return node.kind !== SyntaxKind.SemicolonClassElement; +} +/** + * Checks if a ts.Node has a modifier + */ +function hasModifier(modifierKind, node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + return modifiers?.some(modifier => modifier.kind === modifierKind) === true; +} +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +function getLastModifier(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return null; + } + return modifiers[modifiers.length - 1] ?? null; +} +/** + * Returns true if the given ts.Token is a comma + */ +function isComma(token) { + return token.kind === SyntaxKind.CommaToken; +} +/** + * Returns true if the given ts.Node is a comment + */ +function isComment(node) { + return (node.kind === SyntaxKind.SingleLineCommentTrivia || + node.kind === SyntaxKind.MultiLineCommentTrivia); +} +/** + * Returns true if the given ts.Node is a JSDoc comment + */ +function isJSDocComment(node) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- SyntaxKind.JSDoc was only added in TS4.7 so we can't use it yet + return node.kind === SyntaxKind.JSDocComment; +} +/** + * Returns the binary expression type of the given ts.Token + */ +function getBinaryExpressionType(operator) { + if (isAssignmentOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.AssignmentExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isLogicalOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.LogicalExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isESTreeBinaryOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.BinaryExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + throw new Error(`Unexpected binary operator ${ts.tokenToString(operator.kind)}`); +} +/** + * Returns line and column data for the given positions + */ +function getLineAndCharacterFor(pos, ast) { + const loc = ast.getLineAndCharacterOfPosition(pos); + return { + column: loc.character, + line: loc.line + 1, + }; +} +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +function getLocFor(range, ast) { + const [start, end] = range.map(pos => getLineAndCharacterFor(pos, ast)); + return { end, start }; +} +/** + * Check whatever node can contain directive + */ +function canContainDirective(node) { + if (node.kind === ts.SyntaxKind.Block) { + switch (node.parent.kind) { + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.MethodDeclaration: + return true; + default: + return false; + } + } + return true; +} +/** + * Returns range for the given ts.Node + */ +function getRange(node, ast) { + return [node.getStart(ast), node.getEnd()]; +} +/** + * Returns true if a given ts.Node is a token + */ +function isToken(node) { + return (node.kind >= SyntaxKind.FirstToken && node.kind <= SyntaxKind.LastToken); +} +/** + * Returns true if a given ts.Node is a JSX token + */ +function isJSXToken(node) { + return (node.kind >= SyntaxKind.JsxElement && node.kind <= SyntaxKind.JsxAttribute); +} +/** + * Returns the declaration kind of the given ts.Node + */ +function getDeclarationKind(node) { + if (node.flags & ts.NodeFlags.Let) { + return 'let'; + } + // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison + if ((node.flags & ts.NodeFlags.AwaitUsing) === ts.NodeFlags.AwaitUsing) { + return 'await using'; + } + if (node.flags & ts.NodeFlags.Const) { + return 'const'; + } + if (node.flags & ts.NodeFlags.Using) { + return 'using'; + } + return 'var'; +} +/** + * Gets a ts.Node's accessibility level + */ +function getTSNodeAccessibility(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return undefined; + } + for (const modifier of modifiers) { + switch (modifier.kind) { + case SyntaxKind.PublicKeyword: + return 'public'; + case SyntaxKind.ProtectedKeyword: + return 'protected'; + case SyntaxKind.PrivateKeyword: + return 'private'; + default: + break; + } + } + return undefined; +} +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +function findNextToken(previousToken, parent, ast) { + return find(parent); + function find(n) { + if (ts.isToken(n) && n.pos === previousToken.end) { + // this is token that starts at the end of previous token - return it + return n; + } + return firstDefined(n.getChildren(ast), (child) => { + const shouldDiveInChildNode = + // previous token is enclosed somewhere in the child + (child.pos <= previousToken.pos && child.end > previousToken.end) || + // previous token ends exactly at the beginning of child + child.pos === previousToken.end; + return shouldDiveInChildNode && nodeHasTokens(child, ast) + ? find(child) + : undefined; + }); + } +} +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +function findFirstMatchingAncestor(node, predicate) { + let current = node; + while (current) { + if (predicate(current)) { + return current; + } + current = current.parent; + } + return undefined; +} +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +function hasJSXAncestor(node) { + return !!findFirstMatchingAncestor(node, isJSXToken); +} +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +function unescapeStringLiteralText(text) { + return text.replaceAll(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, entity => { + const item = entity.slice(1, -1); + if (item[0] === '#') { + const codePoint = item[1] === 'x' + ? parseInt(item.slice(2), 16) + : parseInt(item.slice(1), 10); + return codePoint > 0x10ffff // RangeError: Invalid code point + ? entity + : String.fromCodePoint(codePoint); + } + return xhtml_entities_1.xhtmlEntities[item] || entity; + }); +} +/** + * Returns true if a given ts.Node is a computed property + */ +function isComputedProperty(node) { + return node.kind === SyntaxKind.ComputedPropertyName; +} +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +function isOptional(node) { + return !!node.questionToken; +} +/** + * Returns true if the node is an optional chain node + */ +function isChainExpression(node) { + return node.type === ts_estree_1.AST_NODE_TYPES.ChainExpression; +} +/** + * Returns true of the child of property access expression is an optional chain + */ +function isChildUnwrappableOptionalChain(node, child) { + return (isChainExpression(child) && + // (x?.y).z is semantically different, and as such .z is no longer optional + node.expression.kind !== ts.SyntaxKind.ParenthesizedExpression); +} +/** + * Returns the type of a given ts.Token + */ +function getTokenType(token) { + let keywordKind; + if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { + keywordKind = ts.identifierToKeywordKind(token); + } + else if ('originalKeywordKind' in token) { + // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + keywordKind = token.originalKeywordKind; + } + if (keywordKind) { + if (keywordKind === SyntaxKind.NullKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Null; + } + if (keywordKind >= SyntaxKind.FirstFutureReservedWord && + keywordKind <= SyntaxKind.LastKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Identifier; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstKeyword && + token.kind <= SyntaxKind.LastFutureReservedWord) { + if (token.kind === SyntaxKind.FalseKeyword || + token.kind === SyntaxKind.TrueKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Boolean; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstPunctuation && + token.kind <= SyntaxKind.LastPunctuation) { + return ts_estree_1.AST_TOKEN_TYPES.Punctuator; + } + if (token.kind >= SyntaxKind.NoSubstitutionTemplateLiteral && + token.kind <= SyntaxKind.TemplateTail) { + return ts_estree_1.AST_TOKEN_TYPES.Template; + } + switch (token.kind) { + case SyntaxKind.NumericLiteral: + return ts_estree_1.AST_TOKEN_TYPES.Numeric; + case SyntaxKind.JsxText: + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + case SyntaxKind.StringLiteral: + // A TypeScript-StringLiteral token with a TypeScript-JsxAttribute or TypeScript-JsxElement parent, + // must actually be an ESTree-JSXText token + if (token.parent.kind === SyntaxKind.JsxAttribute || + token.parent.kind === SyntaxKind.JsxElement) { + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + } + return ts_estree_1.AST_TOKEN_TYPES.String; + case SyntaxKind.RegularExpressionLiteral: + return ts_estree_1.AST_TOKEN_TYPES.RegularExpression; + case SyntaxKind.Identifier: + case SyntaxKind.ConstructorKeyword: + case SyntaxKind.GetKeyword: + case SyntaxKind.SetKeyword: + // intentional fallthrough + default: + } + // Some JSX tokens have to be determined based on their parent + if (token.kind === SyntaxKind.Identifier) { + if (isJSXToken(token.parent)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + if (token.parent.kind === SyntaxKind.PropertyAccessExpression && + hasJSXAncestor(token)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + } + return ts_estree_1.AST_TOKEN_TYPES.Identifier; +} +/** + * Extends and formats a given ts.Token, for a given AST + */ +function convertToken(token, ast) { + const start = token.kind === SyntaxKind.JsxText + ? token.getFullStart() + : token.getStart(ast); + const end = token.getEnd(); + const value = ast.text.slice(start, end); + const tokenType = getTokenType(token); + const range = [start, end]; + const loc = getLocFor(range, ast); + if (tokenType === ts_estree_1.AST_TOKEN_TYPES.RegularExpression) { + return { + type: tokenType, + loc, + range, + regex: { + flags: value.slice(value.lastIndexOf('/') + 1), + pattern: value.slice(1, value.lastIndexOf('/')), + }, + value, + }; + } + // @ts-expect-error TS is complaining about `value` not being the correct + // type but it is + return { + type: tokenType, + loc, + range, + value, + }; +} +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +function convertTokens(ast) { + const result = []; + /** + * @param node the ts.Node + */ + function walk(node) { + // TypeScript generates tokens for types in JSDoc blocks. Comment tokens + // and their children should not be walked or added to the resulting tokens list. + if (isComment(node) || isJSDocComment(node)) { + return; + } + if (isToken(node) && node.kind !== SyntaxKind.EndOfFileToken) { + result.push(convertToken(node, ast)); + } + else { + node.getChildren(ast).forEach(walk); + } + } + walk(ast); + return result; +} +class TSError extends Error { + fileName; + location; + constructor(message, fileName, location) { + super(message); + this.fileName = fileName; + this.location = location; + Object.defineProperty(this, 'name', { + configurable: true, + enumerable: false, + value: new.target.name, + }); + } + // For old version of ESLint https://github.com/typescript-eslint/typescript-eslint/pull/6556#discussion_r1123237311 + get index() { + return this.location.start.offset; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L853 + get lineNumber() { + return this.location.start.line; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L854 + get column() { + return this.location.start.column; + } +} +exports.TSError = TSError; +function createError(message, ast, startIndex, endIndex = startIndex) { + const [start, end] = [startIndex, endIndex].map(offset => { + const { character: column, line } = ast.getLineAndCharacterOfPosition(offset); + return { column, line: line + 1, offset }; + }); + return new TSError(message, ast.fileName, { end, start }); +} +function nodeHasIllegalDecorators(node) { + return !!('illegalDecorators' in node && + node.illegalDecorators?.length); +} +function nodeHasTokens(n, ast) { + // If we have a token or node that has a non-zero width, it must have tokens. + // Note: getWidth() does not take trivia into account. + return n.kind === SyntaxKind.EndOfFileToken + ? !!n.jsDoc + : n.getWidth(ast) !== 0; +} +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +function firstDefined(array, callback) { + if (array === undefined) { + return undefined; + } + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result !== undefined) { + return result; + } + } + return undefined; +} +function identifierIsThisKeyword(id) { + return ((isAtLeast50 + ? ts.identifierToKeywordKind(id) + : // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + id.originalKeywordKind) === SyntaxKind.ThisKeyword); +} +function isThisIdentifier(node) { + return (!!node && + node.kind === SyntaxKind.Identifier && + identifierIsThisKeyword(node)); +} +function isThisInTypeQuery(node) { + if (!isThisIdentifier(node)) { + return false; + } + while (ts.isQualifiedName(node.parent) && node.parent.left === node) { + node = node.parent; + } + return node.parent.kind === SyntaxKind.TypeQuery; +} +// `ts.nodeIsMissing` +function nodeIsMissing(node) { + if (node === undefined) { + return true; + } + return (node.pos === node.end && + node.pos >= 0 && + node.kind !== SyntaxKind.EndOfFileToken); +} +// `ts.nodeIsPresent` +function nodeIsPresent(node) { + return !nodeIsMissing(node); +} +// `ts.getContainingFunction` +function getContainingFunction(node) { + return ts.findAncestor(node.parent, ts.isFunctionLike); +} +// `ts.hasAbstractModifier` +function hasAbstractModifier(node) { + return hasModifier(SyntaxKind.AbstractKeyword, node); +} +// `ts.getThisParameter` +function getThisParameter(signature) { + if (signature.parameters.length && !ts.isJSDocSignature(signature)) { + const thisParameter = signature.parameters[0]; + if (parameterIsThisKeyword(thisParameter)) { + return thisParameter; + } + } + return null; +} +// `ts.parameterIsThisKeyword` +function parameterIsThisKeyword(parameter) { + return isThisIdentifier(parameter.name); +} +// Rewrite version of `ts.nodeCanBeDecorated` +// Returns `true` for both `useLegacyDecorators: true` and `useLegacyDecorators: false` +function nodeCanBeDecorated(node) { + switch (node.kind) { + case SyntaxKind.ClassDeclaration: + return true; + case SyntaxKind.ClassExpression: + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: true` + return true; + case SyntaxKind.PropertyDeclaration: { + const { parent } = node; + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: true` + if (ts.isClassDeclaration(parent)) { + return true; + } + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: false` + if (ts.isClassLike(parent) && !hasAbstractModifier(node)) { + return true; + } + return false; + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: { + const { parent } = node; + // In `ts.nodeCanBeDecorated` + // when `useLegacyDecorators: true` uses `ts.isClassDeclaration` + // when `useLegacyDecorators: true` uses `ts.isClassLike` + return (Boolean(node.body) && + (ts.isClassDeclaration(parent) || ts.isClassLike(parent))); + } + case SyntaxKind.Parameter: { + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: false` + const { parent } = node; + const grandparent = parent.parent; + return (Boolean(parent) && + 'body' in parent && + Boolean(parent.body) && + (parent.kind === SyntaxKind.Constructor || + parent.kind === SyntaxKind.MethodDeclaration || + parent.kind === SyntaxKind.SetAccessor) && + getThisParameter(parent) !== node && + Boolean(grandparent) && + grandparent.kind === SyntaxKind.ClassDeclaration); + } + } + return false; +} +function isValidAssignmentTarget(node) { + switch (node.kind) { + case SyntaxKind.Identifier: + return true; + case SyntaxKind.PropertyAccessExpression: + case SyntaxKind.ElementAccessExpression: + if (node.flags & ts.NodeFlags.OptionalChain) { + return false; + } + return true; + case SyntaxKind.ParenthesizedExpression: + case SyntaxKind.TypeAssertionExpression: + case SyntaxKind.AsExpression: + case SyntaxKind.SatisfiesExpression: + case SyntaxKind.ExpressionWithTypeArguments: + case SyntaxKind.NonNullExpression: + return isValidAssignmentTarget(node.expression); + default: + return false; + } +} +function getNamespaceModifiers(node) { + // For following nested namespaces, use modifiers given to the topmost namespace + // export declare namespace foo.bar.baz {} + let modifiers = (0, getModifiers_1.getModifiers)(node); + let moduleDeclaration = node; + while ((!modifiers || modifiers.length === 0) && + ts.isModuleDeclaration(moduleDeclaration.parent)) { + const parentModifiers = (0, getModifiers_1.getModifiers)(moduleDeclaration.parent); + if (parentModifiers?.length) { + modifiers = parentModifiers; + } + moduleDeclaration = moduleDeclaration.parent; + } + return modifiers; +} +//# sourceMappingURL=node-utils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map new file mode 100644 index 00000000..ab7051b4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,8CAIC;AAED,wDAIC;AAQD,kDAMC;AAKD,kDAEC;AAKD,kCAMC;AAMD,0CAMC;AAKD,0BAIC;AAKD,8BAKC;AAaD,0DAqCC;AAKD,wDASC;AAMD,8BAMC;AAKD,kDAsBC;AAKD,4BAKC;AAcD,gCAIC;AAKD,gDAiBC;AAKD,wDAoBC;AAMD,sCAuBC;AAQD,8DAYC;AAKD,wCAEC;AAOD,8DAcC;AAKD,gDAIC;AAMD,gCAIC;AAKD,8CAIC;AAKD,0EAaC;AAKD,oCAiGC;AAKD,oCAkCC;AAOD,sCAoBC;AA2CD,kCAYC;AAED,4DAOC;AAED,sCAMC;AAKD,oCAeC;AAED,0DAOC;AAED,4CAQC;AAED,8CAUC;AAeD,sCAEC;AAGD,sDAIC;AA4BD,gDAuDC;AAED,0DA6BC;AAED,sDAkBC;AAx5BD,+CAAiC;AAIjC,iDAA8C;AAC9C,yDAAqD;AACrD,2CAA8D;AAC9D,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAMjC,MAAM,iBAAiB,GAAqC,IAAI,GAAG,CAAC;IAClE,UAAU,CAAC,uBAAuB;IAClC,UAAU,CAAC,WAAW;IACtB,UAAU,CAAC,qBAAqB;CACjC,CAAC,CAAC;AAaH,MAAM,oBAAoB,GAAwC,IAAI,GAAG,CAAC;IACxE,EAAE,CAAC,UAAU,CAAC,6BAA6B;IAC3C,EAAE,CAAC,UAAU,CAAC,oBAAoB;IAClC,EAAE,CAAC,UAAU,CAAC,2BAA2B;IAC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,CAAC,MAAM,CAAC;IAC/C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts new file mode 100644 index 00000000..6de22f10 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts @@ -0,0 +1,17 @@ +import type { CacheDurationSeconds } from '@typescript-eslint/types'; +export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +export interface CacheLike { + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +/** + * A map with key-level expiration. + */ +export declare class ExpiringCache implements CacheLike { + #private; + constructor(cacheDurationSeconds: CacheDurationSeconds); + clear(): void; + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +//# sourceMappingURL=ExpiringCache.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map new file mode 100644 index 00000000..25de4e08 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,GAAG,EAAE,KAAK,CAAE,YAAW,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC;;gBAWzD,oBAAoB,EAAE,oBAAoB;IAItD,KAAK,IAAI,IAAI;IAIb,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS;IAmBhC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;CAWlC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js new file mode 100644 index 00000000..12ab8c7c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0; +exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +const ZERO_HR_TIME = [0, 0]; +/** + * A map with key-level expiration. + */ +class ExpiringCache { + #cacheDurationSeconds; + #map = new Map(); + constructor(cacheDurationSeconds) { + this.#cacheDurationSeconds = cacheDurationSeconds; + } + clear() { + this.#map.clear(); + } + get(key) { + const entry = this.#map.get(key); + if (entry?.value != null) { + if (this.#cacheDurationSeconds === 'Infinity') { + return entry.value; + } + const ageSeconds = process.hrtime(entry.lastSeen)[0]; + if (ageSeconds < this.#cacheDurationSeconds) { + // cache hit woo! + return entry.value; + } + // key has expired - clean it up to free up memory + this.#map.delete(key); + } + // no hit :'( + return undefined; + } + set(key, value) { + this.#map.set(key, { + lastSeen: this.#cacheDurationSeconds === 'Infinity' + ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry + ZERO_HR_TIME + : process.hrtime(), + value, + }); + return this; + } +} +exports.ExpiringCache = ExpiringCache; +//# sourceMappingURL=ExpiringCache.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map new file mode 100644 index 00000000..9fcb3977 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IACf,qBAAqB,CAAuB;IAE5C,IAAI,GAAG,IAAI,GAAG,EAMpB,CAAC;IAEJ,YAAY,oBAA0C;QACpD,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;IACpD,CAAC;IAED,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,GAAQ;QACV,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,qBAAqB,KAAK,UAAU,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC5C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YACD,kDAAkD;YAClD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,GAAG,CAAC,GAAQ,EAAE,KAAY;QACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,QAAQ,EACN,IAAI,CAAC,qBAAqB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;YACtB,KAAK;SACN,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjDD,sCAiDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts new file mode 100644 index 00000000..73af7479 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { TSESTreeOptions } from '../parser-options'; +import type { MutableParseSettings } from './index'; +export declare function createParseSettings(code: string | ts.SourceFile, tsestreeOptions?: Partial): MutableParseSettings; +export declare function clearTSConfigMatchCache(): void; +export declare function clearTSServerProjectService(): void; +//# sourceMappingURL=createParseSettings.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map new file mode 100644 index 00000000..f875b24e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAiCpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,GAAE,OAAO,CAAC,eAAe,CAAM,GAC7C,oBAAoB,CA2JtB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAElD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js new file mode 100644 index 00000000..8739a68d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js @@ -0,0 +1,214 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParseSettings = createParseSettings; +exports.clearTSConfigMatchCache = clearTSConfigMatchCache; +exports.clearTSServerProjectService = clearTSServerProjectService; +const debug_1 = __importDefault(require("debug")); +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +const createProjectService_1 = require("../create-program/createProjectService"); +const shared_1 = require("../create-program/shared"); +const source_files_1 = require("../source-files"); +const ExpiringCache_1 = require("./ExpiringCache"); +const getProjectConfigFiles_1 = require("./getProjectConfigFiles"); +const inferSingleRun_1 = require("./inferSingleRun"); +const resolveProjectList_1 = require("./resolveProjectList"); +const warnAboutTSVersion_1 = require("./warnAboutTSVersion"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings'); +let TSCONFIG_MATCH_CACHE; +let TSSERVER_PROJECT_SERVICE = null; +// NOTE - we intentionally use "unnecessary" `?.` here because in TS<5.3 this enum doesn't exist +// This object exists so we can centralize these for tracking and so we don't proliferate these across the file +// https://github.com/microsoft/TypeScript/issues/56579 +/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +const JSDocParsingMode = { + ParseAll: ts.JSDocParsingMode?.ParseAll, + ParseForTypeErrors: ts.JSDocParsingMode?.ParseForTypeErrors, + ParseForTypeInfo: ts.JSDocParsingMode?.ParseForTypeInfo, + ParseNone: ts.JSDocParsingMode?.ParseNone, +}; +/* eslint-enable @typescript-eslint/no-unnecessary-condition */ +function createParseSettings(code, tsestreeOptions = {}) { + const codeFullText = enforceCodeString(code); + const singleRun = (0, inferSingleRun_1.inferSingleRun)(tsestreeOptions); + const tsconfigRootDir = typeof tsestreeOptions.tsconfigRootDir === 'string' + ? tsestreeOptions.tsconfigRootDir + : process.cwd(); + const passedLoggerFn = typeof tsestreeOptions.loggerFn === 'function'; + const filePath = (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' && + tsestreeOptions.filePath !== '' + ? tsestreeOptions.filePath + : getFileName(tsestreeOptions.jsx), tsconfigRootDir); + const extension = node_path_1.default.extname(filePath).toLowerCase(); + const jsDocParsingMode = (() => { + switch (tsestreeOptions.jsDocParsingMode) { + case 'all': + return JSDocParsingMode.ParseAll; + case 'none': + return JSDocParsingMode.ParseNone; + case 'type-info': + return JSDocParsingMode.ParseForTypeInfo; + default: + return JSDocParsingMode.ParseAll; + } + })(); + const parseSettings = { + loc: tsestreeOptions.loc === true, + range: tsestreeOptions.range === true, + allowInvalidAST: tsestreeOptions.allowInvalidAST === true, + code, + codeFullText, + comment: tsestreeOptions.comment === true, + comments: [], + debugLevel: tsestreeOptions.debugLevel === true + ? new Set(['typescript-eslint']) + : Array.isArray(tsestreeOptions.debugLevel) + ? new Set(tsestreeOptions.debugLevel) + : new Set(), + errorOnTypeScriptSyntacticAndSemanticIssues: false, + errorOnUnknownASTType: tsestreeOptions.errorOnUnknownASTType === true, + extraFileExtensions: Array.isArray(tsestreeOptions.extraFileExtensions) && + tsestreeOptions.extraFileExtensions.every(ext => typeof ext === 'string') + ? tsestreeOptions.extraFileExtensions + : [], + filePath, + jsDocParsingMode, + jsx: tsestreeOptions.jsx === true, + log: typeof tsestreeOptions.loggerFn === 'function' + ? tsestreeOptions.loggerFn + : tsestreeOptions.loggerFn === false + ? () => { } // eslint-disable-line @typescript-eslint/no-empty-function + : console.log, // eslint-disable-line no-console + preserveNodeMaps: tsestreeOptions.preserveNodeMaps !== false, + programs: Array.isArray(tsestreeOptions.programs) + ? tsestreeOptions.programs + : null, + projects: new Map(), + projectService: tsestreeOptions.projectService || + (tsestreeOptions.project && + tsestreeOptions.projectService !== false && + process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE === 'true') + ? (TSSERVER_PROJECT_SERVICE ??= (0, createProjectService_1.createProjectService)(tsestreeOptions.projectService, jsDocParsingMode, tsconfigRootDir)) + : undefined, + setExternalModuleIndicator: tsestreeOptions.sourceType === 'module' || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mjs) || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mts) + ? (file) => { + file.externalModuleIndicator = true; + } + : undefined, + singleRun, + suppressDeprecatedPropertyWarnings: tsestreeOptions.suppressDeprecatedPropertyWarnings ?? + process.env.NODE_ENV !== 'test', + tokens: tsestreeOptions.tokens === true ? [] : null, + tsconfigMatchCache: (TSCONFIG_MATCH_CACHE ??= new ExpiringCache_1.ExpiringCache(singleRun + ? 'Infinity' + : tsestreeOptions.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)), + tsconfigRootDir, + }; + // debug doesn't support multiple `enable` calls, so have to do it all at once + if (parseSettings.debugLevel.size > 0) { + const namespaces = []; + if (parseSettings.debugLevel.has('typescript-eslint')) { + namespaces.push('typescript-eslint:*'); + } + if (parseSettings.debugLevel.has('eslint') || + // make sure we don't turn off the eslint debug if it was enabled via --debug + debug_1.default.enabled('eslint:*,-eslint:code-path')) { + // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25 + namespaces.push('eslint:*,-eslint:code-path'); + } + debug_1.default.enable(namespaces.join(',')); + } + if (Array.isArray(tsestreeOptions.programs)) { + if (!tsestreeOptions.programs.length) { + throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`); + } + log('parserOptions.programs was provided, so parserOptions.project will be ignored.'); + } + // Providing a program or project service overrides project resolution + if (!parseSettings.programs && !parseSettings.projectService) { + parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({ + cacheLifetime: tsestreeOptions.cacheLifetime, + project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, tsestreeOptions.project), + projectFolderIgnoreList: tsestreeOptions.projectFolderIgnoreList, + singleRun: parseSettings.singleRun, + tsconfigRootDir, + }); + } + // No type-aware linting which means that cross-file (or even same-file) JSDoc is useless + // So in this specific case we default to 'none' if no value was provided + if (tsestreeOptions.jsDocParsingMode == null && + parseSettings.projects.size === 0 && + parseSettings.programs == null && + parseSettings.projectService == null) { + parseSettings.jsDocParsingMode = JSDocParsingMode.ParseNone; + } + (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings, passedLoggerFn); + return parseSettings; +} +function clearTSConfigMatchCache() { + TSCONFIG_MATCH_CACHE?.clear(); +} +function clearTSServerProjectService() { + TSSERVER_PROJECT_SERVICE = null; +} +/** + * Ensures source code is a string. + */ +function enforceCodeString(code) { + return (0, source_files_1.isSourceFile)(code) + ? code.getFullText(code) + : typeof code === 'string' + ? code + : String(code); +} +/** + * Compute the filename based on the parser options. + * + * Even if jsx option is set in typescript compiler, filename still has to + * contain .tsx file extension. + */ +function getFileName(jsx) { + return jsx ? 'estree.tsx' : 'estree.ts'; +} +//# sourceMappingURL=createParseSettings.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map new file mode 100644 index 00000000..69a39988 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSett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I;YACN,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,WAAW,CAAC,GAAa;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts new file mode 100644 index 00000000..76103cf8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts @@ -0,0 +1,13 @@ +import type { TSESTreeOptions } from '../parser-options'; +import type { ParseSettings } from './index'; +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +export declare function getProjectConfigFiles(parseSettings: Pick, project: TSESTreeOptions['project']): string[] | null; +//# sourceMappingURL=getProjectConfigFiles.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map new file mode 100644 index 00000000..bf99e5dd --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAClC,MAAM,EAAE,GAAG,IAAI,CAuCjB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js new file mode 100644 index 00000000..59cba04a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js @@ -0,0 +1,83 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProjectConfigFiles = getProjectConfigFiles; +const debug_1 = __importDefault(require("debug")); +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles'); +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +function getProjectConfigFiles(parseSettings, project) { + if (project !== true) { + if (project == null || project === false) { + return null; + } + if (Array.isArray(project)) { + return project; + } + return [project]; + } + log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath); + let directory = path.dirname(parseSettings.filePath); + const checkedDirectories = [directory]; + do { + log('Checking tsconfig.json path: %s', directory); + const tsconfigPath = path.join(directory, 'tsconfig.json'); + const cached = parseSettings.tsconfigMatchCache.get(directory) ?? + (fs.existsSync(tsconfigPath) && tsconfigPath); + if (cached) { + for (const directory of checkedDirectories) { + parseSettings.tsconfigMatchCache.set(directory, cached); + } + return [cached]; + } + directory = path.dirname(directory); + checkedDirectories.push(directory); + } while (directory.length > 1 && + directory.length >= parseSettings.tsconfigRootDir.length); + throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`); +} +//# sourceMappingURL=getProjectConfigFiles.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map new file mode 100644 index 00000000..670d0ded --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getProjectConfigFiles.js","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDA6CC;AA/DD,kDAA0B;AAC1B,4CAA8B;AAC9B,gDAAkC;AAKlC,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,aAGC,EACD,OAAmC;IAEnC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;YACzC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3B,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAED,GAAG,CAAC,gDAAgD,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9E,IAAI,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,CAAC,SAAS,CAAC,CAAC;IAEvC,GAAG,CAAC;QACF,GAAG,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GACV,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC;YAC/C,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,CAAC;QAEhD,IAAI,MAAM,EAAE,CAAC;YACX,KAAK,MAAM,SAAS,IAAI,kBAAkB,EAAE,CAAC;gBAC3C,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC;QAED,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACpC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC,QACC,SAAS,CAAC,MAAM,GAAG,CAAC;QACpB,SAAS,CAAC,MAAM,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts new file mode 100644 index 00000000..fcce131d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts @@ -0,0 +1,127 @@ +import type * as ts from 'typescript'; +import type { ProjectServiceSettings } from '../create-program/createProjectService'; +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTree } from '../ts-estree'; +import type { CacheLike } from './ExpiringCache'; +type DebugModule = 'eslint' | 'typescript' | 'typescript-eslint'; +declare module 'typescript' { + enum JSDocParsingMode { + } +} +declare module 'typescript/lib/tsserverlibrary' { + enum JSDocParsingMode { + } +} +/** + * Internal settings used by the parser to run on a file. + */ +export interface MutableParseSettings { + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + */ + allowInvalidAST: boolean; + /** + * Code of the file being parsed, or raw source file containing it. + */ + code: string | ts.SourceFile; + /** + * Full text of the file being parsed. + */ + codeFullText: string; + /** + * Whether the `comment` parse option is enabled. + */ + comment: boolean; + /** + * If the `comment` parse option is enabled, retrieved comments. + */ + comments: TSESTree.Comment[]; + /** + * Which debug areas should be logged. + */ + debugLevel: Set; + /** + * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. + */ + errorOnTypeScriptSyntacticAndSemanticIssues: boolean; + /** + * Whether to error if an unknown AST node type is encountered. + */ + errorOnUnknownASTType: boolean; + /** + * Any non-standard file extensions which will be parsed. + */ + extraFileExtensions: string[]; + /** + * Path of the file being parsed. + */ + filePath: string; + /** + * Sets the external module indicator on the source file. + * Used by Typescript to determine if a sourceFile is an external module. + * + * needed to always parsing `mjs`/`mts` files as ESM + */ + setExternalModuleIndicator?: (file: ts.SourceFile) => void; + /** + * JSDoc parsing style to pass through to TypeScript + */ + jsDocParsingMode: ts.JSDocParsingMode; + /** + * Whether parsing of JSX is enabled. + * + * @remarks The applicable file extension is still required. + */ + jsx: boolean; + /** + * Whether to add `loc` information to each node. + */ + loc: boolean; + /** + * Log function, if not `console.log`. + */ + log: (message: string) => void; + /** + * Whether two-way AST node maps are preserved during the AST conversion process. + */ + preserveNodeMaps?: boolean; + /** + * One or more instances of TypeScript Program objects to be used for type information. + */ + programs: Iterable | null; + /** + * Normalized paths to provided project paths. + */ + projects: ReadonlyMap; + /** + * TypeScript server to power program creation. + */ + projectService: ProjectServiceSettings | undefined; + /** + * Whether to add the `range` property to AST nodes. + */ + range: boolean; + /** + * Whether this is part of a single run, rather than a long-running process. + */ + singleRun: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings: boolean; + /** + * If the `tokens` parse option is enabled, retrieved tokens. + */ + tokens: TSESTree.Token[] | null; + /** + * Caches searches for TSConfigs from project directories. + */ + tsconfigMatchCache: CacheLike; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir: string; +} +export type ParseSettings = Readonly; +export {}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map new file mode 100644 index 00000000..dda000a8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,WAAW,GAAG,QAAQ,GAAG,YAAY,GAAG,mBAAmB,CAAC;AAGjE,OAAO,QAAQ,YAAY,CAAC;IAE1B,KAAK,gBAAgB;KAAG;CACzB;AAED,OAAO,QAAQ,gCAAgC,CAAC;IAE9C,KAAK,gBAAgB;KAAG;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAE7B;;OAEG;IACH,2CAA2C,EAAE,OAAO,CAAC;IAErD;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC;IAEtC;;;;OAIG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAE7C;;OAEG;IACH,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEnD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,kCAAkC,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js new file mode 100644 index 00000000..aa219d8f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map new file mode 100644 index 00000000..66056421 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts new file mode 100644 index 00000000..1b28697f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts @@ -0,0 +1,15 @@ +import type { TSESTreeOptions } from '../parser-options'; +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; +//# sourceMappingURL=inferSingleRun.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map new file mode 100644 index 00000000..0c3f82e8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAsD5E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js new file mode 100644 index 00000000..0f71774e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js @@ -0,0 +1,66 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.inferSingleRun = inferSingleRun; +const node_path_1 = __importDefault(require("node:path")); +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +function inferSingleRun(options) { + // https://github.com/typescript-eslint/typescript-eslint/issues/9504 + // There's no support (yet?) for extraFileExtensions in single-run hosts. + // Only watch program hosts and project service can support that. + if (options?.extraFileExtensions?.length) { + return false; + } + if ( + // single-run implies type-aware linting - no projects means we can't be in single-run mode + options?.project == null || + // programs passed via options means the user should be managing the programs, so we shouldn't + // be creating our own single-run programs accidentally + options.programs != null) { + return false; + } + // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN + if (process.env.TSESTREE_SINGLE_RUN === 'false') { + return false; + } + if (process.env.TSESTREE_SINGLE_RUN === 'true') { + return true; + } + // Ideally, we'd like to try to auto-detect CI or CLI usage that lets us infer a single CLI run. + if (!options.disallowAutomaticSingleRunInference) { + const possibleEslintBinPaths = [ + 'node_modules/.bin/eslint', // npm or yarn repo + 'node_modules/eslint/bin/eslint.js', // pnpm repo + ]; + if ( + // Default to single runs for CI processes. CI=true is set by most CI providers by default. + process.env.CI === 'true' || + // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...` + possibleEslintBinPaths.some(binPath => process.argv.length > 1 && + process.argv[1].endsWith(node_path_1.default.normalize(binPath)))) { + return !process.argv.includes('--fix'); + } + } + /** + * We default to assuming that this run could be part of a long-running session (e.g. in an IDE) + * and watch programs will therefore be required. + * + * Unless we can reliably infer otherwise, we default to assuming that this run could be part + * of a long-running session (e.g. in an IDE) and watch programs will therefore be required + */ + return false; +} +//# sourceMappingURL=inferSingleRun.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map new file mode 100644 index 00000000..f25b8f3f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;;;AAgBA,wCAsDC;AAtED,0DAA6B;AA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typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts new file mode 100644 index 00000000..4067aec9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts @@ -0,0 +1,19 @@ +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTreeOptions } from '../parser-options'; +export declare function clearGlobCache(): void; +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +export declare function resolveProjectList(options: Readonly<{ + cacheLifetime?: TSESTreeOptions['cacheLifetime']; + project: string[] | null; + projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; + singleRun: boolean; + tsconfigRootDir: string; +}>): ReadonlyMap; +/** + * Exported for testing purposes only + * @internal + */ +export declare function clearGlobResolutionCache(): void; +//# sourceMappingURL=resolveProjectList.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map new file mode 100644 index 00000000..ac7258ed --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAqBzD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACzB,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAgFpC;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js new file mode 100644 index 00000000..25bb0d74 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js @@ -0,0 +1,100 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearGlobCache = clearGlobCache; +exports.resolveProjectList = resolveProjectList; +exports.clearGlobResolutionCache = clearGlobResolutionCache; +const debug_1 = __importDefault(require("debug")); +const fast_glob_1 = require("fast-glob"); +const is_glob_1 = __importDefault(require("is-glob")); +const shared_1 = require("../create-program/shared"); +const ExpiringCache_1 = require("./ExpiringCache"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList'); +let RESOLUTION_CACHE = null; +function clearGlobCache() { + RESOLUTION_CACHE?.clear(); +} +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +function resolveProjectList(options) { + const sanitizedProjects = []; + // Normalize and sanitize the project paths + if (options.project != null) { + for (const project of options.project) { + if (typeof project === 'string') { + sanitizedProjects.push(project); + } + } + } + if (sanitizedProjects.length === 0) { + return new Map(); + } + const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']) + .filter(folder => typeof folder === 'string') + // prefix with a ! for not match glob + .map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); + const cacheKey = getHash({ + project: sanitizedProjects, + projectFolderIgnoreList, + tsconfigRootDir: options.tsconfigRootDir, + }); + if (RESOLUTION_CACHE == null) { + // note - we initialize the global cache based on the first config we encounter. + // this does mean that you can't have multiple lifetimes set per folder + // I doubt that anyone will really bother reconfiguring this, let alone + // try to do complicated setups, so we'll deal with this later if ever. + RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun + ? 'Infinity' + : options.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS); + } + else { + const cached = RESOLUTION_CACHE.get(cacheKey); + if (cached) { + return cached; + } + } + // Transform glob patterns into paths + const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project)); + const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); + let globProjectPaths = []; + if (globProjects.length > 0) { + // Although fast-glob supports multiple patterns, fast-glob returns arbitrary order of results + // to improve performance. To ensure the order is correct, we need to call fast-glob for each pattern + // separately and then concatenate the results in patterns' order. + globProjectPaths = globProjects.flatMap(pattern => (0, fast_glob_1.sync)(pattern, { + cwd: options.tsconfigRootDir, + ignore: projectFolderIgnoreList, + })); + } + const uniqueCanonicalProjectPaths = new Map([...nonGlobProjects, ...globProjectPaths].map(project => [ + (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)), + (0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir), + ])); + log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths); + RESOLUTION_CACHE.set(cacheKey, uniqueCanonicalProjectPaths); + return uniqueCanonicalProjectPaths; +} +function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) { + // create a stable representation of the config + const hashObject = { + tsconfigRootDir, + // the project order does matter and can impact the resolved globs + project, + // the ignore order won't doesn't ever matter + projectFolderIgnoreList: [...projectFolderIgnoreList].sort(), + }; + return (0, shared_1.createHash)(JSON.stringify(hashObject)); +} +/** + * Exported for testing purposes only + * @internal + */ +function clearGlobResolutionCache() { + RESOLUTION_CACHE?.clear(); + RESOLUTION_CACHE = null; +} +//# sourceMappingURL=resolveProjectList.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map new file mode 100644 index 00000000..e0540108 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;AA0BA,wCAEC;AAKD,gDAwFC;AA2BD,4DAGC;AAvJD,kDAA0B;AAC1B,yCAA6C;AAC7C,sDAA6B;AAK7B,qDAIkC;AAClC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAGT,IAAI,CAAC;AAEhB,SAAgB,cAAc;IAC5B,gBAAgB,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OAME;IAEF,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,2CAA2C;IAC3C,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QAC5B,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACtC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAA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AC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts new file mode 100644 index 00000000..e0abdc5f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts @@ -0,0 +1,7 @@ +import type { ParseSettings } from './index'; +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +export declare const SUPPORTED_TYPESCRIPT_VERSIONS = ">=4.8.4 <5.8.0"; +export declare function warnAboutTSVersion(parseSettings: ParseSettings, passedLoggerFn: boolean): void; +//# sourceMappingURL=warnAboutTSVersion.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map new file mode 100644 index 00000000..c629dd6a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C;;GAEG;AACH,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAe9D,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,OAAO,GACtB,IAAI,CA8BN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js new file mode 100644 index 00000000..d2ef7788 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SUPPORTED_TYPESCRIPT_VERSIONS = void 0; +exports.warnAboutTSVersion = warnAboutTSVersion; +const semver_1 = __importDefault(require("semver")); +const ts = __importStar(require("typescript")); +const version_1 = require("../version"); +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +exports.SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.8.4 <5.8.0'; +/* + * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one + * List them all separately here, so we can automatically create the full string + */ +const SUPPORTED_PRERELEASE_RANGES = []; +const ACTIVE_TYPESCRIPT_VERSION = ts.version; +const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [exports.SUPPORTED_TYPESCRIPT_VERSIONS, ...SUPPORTED_PRERELEASE_RANGES].join(' || ')); +let warnedAboutTSVersion = false; +function warnAboutTSVersion(parseSettings, passedLoggerFn) { + if (isRunningSupportedTypeScriptVersion || warnedAboutTSVersion) { + return; + } + if (passedLoggerFn || + // See https://github.com/typescript-eslint/typescript-eslint/issues/7896 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + (typeof process === 'undefined' ? false : process.stdout?.isTTY)) { + const border = '============='; + const versionWarning = [ + border, + '\n', + 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.', + '\n', + `* @typescript-eslint/typescript-estree version: ${version_1.version}`, + `* Supported TypeScript versions: ${exports.SUPPORTED_TYPESCRIPT_VERSIONS}`, + `* Your TypeScript version: ${ACTIVE_TYPESCRIPT_VERSION}`, + '\n', + 'Please only submit bug reports when using the officially supported version.', + '\n', + border, + ].join('\n'); + parseSettings.log(versionWarning); + } + warnedAboutTSVersion = true; +} +//# sourceMappingURL=warnAboutTSVersion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map new file mode 100644 index 00000000..5222518f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,gDAiCC;AA1DD,oDAA4B;AAC5B,+CAAiC;AAIjC,wCAAkE;AAElE;;GAEG;AACU,QAAA,6BAA6B,GAAG,gBAAgB,CAAC;AAE9D;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,qCAA6B,EAAE,GAAG,2BAA2B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC7E,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAChC,aAA4B,EAC5B,cAAuB;IAEvB,IAAI,mCAAmC,IAAI,oBAAoB,EAAE,CAAC;QAChE,OAAO;IACT,CAAC;IAED,IACE,cAAc;QACd,yEAAyE;QACzE,uEAAuE;QACvE,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAChE,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC;QAC/B,MAAM,cAAc,GAAG;YACrB,MAAM;YACN,IAAI;YACJ,uIAAuI;YACvI,IAAI;YACJ,mDAAmD,iBAAyB,EAAE;YAC9E,oCAAoC,qCAA6B,EAAE;YACnE,8BAA8B,yBAAyB,EAAE;YACzD,IAAI;YACJ,6EAA6E;YAC7E,IAAI;YACJ,MAAM;SACP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEb,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,GAAG,IAAI,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts new file mode 100644 index 00000000..307ab20b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts @@ -0,0 +1,206 @@ +import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions, SourceType } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; +export type { ProjectServiceOptions } from '@typescript-eslint/types'; +interface ParseOptions { + /** + * Specify the `sourceType`. + * For more details, see https://github.com/typescript-eslint/typescript-eslint/pull/9121 + */ + sourceType?: SourceType; + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + * This case only usually occurs when attempting to lint invalid code. + */ + allowInvalidAST?: boolean; + /** + * create a top-level comments array containing all comments + */ + comment?: boolean; + /** + * An array of modules to turn explicit debugging on for. + * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` + * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` + * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions + * + * For convenience, also supports a boolean: + * - true === ['typescript-eslint'] + * - false === [] + */ + debugLevel?: DebugLevel; + /** + * Cause the parser to error if it encounters an unknown AST node type (useful for testing). + * This case only usually occurs when TypeScript releases new features. + */ + errorOnUnknownASTType?: boolean; + /** + * Absolute (or relative to `cwd`) path to the file being parsed. + */ + filePath?: string; + /** + * If you are using TypeScript version >=5.3 then this option can be used as a performance optimization. + * + * The valid values for this rule are: + * - `'all'` - parse all JSDoc comments, always. + * - `'none'` - parse no JSDoc comments, ever. + * - `'type-info'` - parse just JSDoc comments that are required to provide correct type-info. TS will always parse JSDoc in non-TS files, but never in TS files. + * + * If you do not rely on JSDoc tags from the TypeScript AST, then you can safely set this to `'none'` to improve performance. + */ + jsDocParsingMode?: JSDocParsingMode; + /** + * Enable parsing of JSX. + * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html + * + * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the + * TypeScript compiler has its own internal handling for known file extensions. + * + * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx + */ + jsx?: boolean; + /** + * Controls whether the `loc` information to each node. + * The `loc` property is an object which contains the exact line/column the node starts/ends on. + * This is similar to the `range` property, except it is line/column relative. + */ + loc?: boolean; + loggerFn?: ((message: string) => void) | false; + /** + * Controls whether the `range` property is included on AST nodes. + * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. + * This is similar to the `loc` property, except this is the absolute index. + */ + range?: boolean; + /** + * Set to true to create a top-level array containing all tokens from the file. + */ + tokens?: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings?: boolean; +} +interface ParseAndGenerateServicesOptions extends ParseOptions { + /** + * Granular control of the expiry lifetime of our internal caches. + * You can specify the number of seconds as an integer number, or the string + * 'Infinity' if you never want the cache to expire. + * + * By default cache entries will be evicted after 30 seconds, or will persist + * indefinitely if `disallowAutomaticSingleRunInference = false` AND the parser + * infers that it is a single run. + */ + cacheLifetime?: { + /** + * Glob resolution for `parserOptions.project` values. + */ + glob?: CacheDurationSeconds; + }; + /** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. + * + * By default, we will use common heuristics to infer whether ESLint is being + * used as part of a single run. This option disables those heuristics, and + * therefore the performance optimizations gained by them. + * + * In other words, typescript-eslint is faster by default, and this option + * disables an automatic performance optimization. + * + * This setting's default value can be specified by setting a `TSESTREE_SINGLE_RUN` + * environment variable to `"false"` or `"true"`. + * Otherwise, the default value is `false`. + */ + disallowAutomaticSingleRunInference?: boolean; + /** + * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. + */ + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + /** + * When `project` is provided, this controls the non-standard file extensions which will be parsed. + * It accepts an array of file extensions, each preceded by a `.`. + * + * NOTE: When used with {@link projectService}, full project reloads may occur. + */ + extraFileExtensions?: string[]; + /** + * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. + * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. + */ + filePath?: string; + /** + * Allows the user to control whether or not two-way AST node maps are preserved + * during the AST conversion process. + * + * By default: the AST node maps are NOT preserved, unless `project` has been specified, + * in which case the maps are made available on the returned `parserServices`. + * + * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, + * regardless of whether or not `project` is in use. + */ + preserveNodeMaps?: boolean; + /** + * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), + * or `true` to find the nearest tsconfig.json to the file. + * If this is provided, type information will be returned. + * + * If set to `false`, `null` or `undefined` type information will not be returned. + * + * Note that {@link projectService} is now preferred. + */ + project?: boolean | string | string[] | null; + /** + * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from + * being matched by the globs. + * This accepts an array of globs to ignore. + * + * By default, this is set to ["**\/node_modules/**"] + */ + projectFolderIgnoreList?: string[]; + /** + * Whether to create a shared TypeScript project service to power program creation. + */ + projectService?: boolean | ProjectServiceOptions; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir?: string; + /** + * An array of one or more instances of TypeScript Program objects to be used for type information. + * This overrides any program or programs that would have been computed from the `project` option. + * All linted files must be part of the provided program(s). + */ + programs?: ts.Program[] | null; +} +export type TSESTreeOptions = ParseAndGenerateServicesOptions; +export interface ParserWeakMap { + get(key: Key): Value; + has(key: unknown): boolean; +} +export interface ParserWeakMapESTreeToTSNode { + get(key: KeyBase): TSESTreeToTSNode; + has(key: unknown): boolean; +} +export interface ParserServicesBase { + emitDecoratorMetadata: boolean | undefined; + experimentalDecorators: boolean | undefined; +} +export interface ParserServicesNodeMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined; + getTypeAtLocation: (node: TSESTree.Node) => ts.Type; + program: ts.Program; +} +export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + program: null; +} +export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map new file mode 100644 index 00000000..b861338e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/E,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAMtE,UAAU,YAAY;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;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,kBAAkB;IACpB,OAAO,EAAE,IAAI,CAAC;CACf;AACD,MAAM,MAAM,cAAc,GACtB,oCAAoC,GACpC,iCAAiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts new file mode 100644 index 00000000..eacc856c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts @@ -0,0 +1,19 @@ +import type * as ts from 'typescript'; +import type { ParserServices, TSESTreeOptions } from './parser-options'; +import type { TSESTree } from './ts-estree'; +declare function clearProgramCache(): void; +declare function clearDefaultProjectMatchedFiles(): void; +type AST = (T['comment'] extends true ? { + comments: TSESTree.Comment[]; +} : {}) & (T['tokens'] extends true ? { + tokens: TSESTree.Token[]; +} : {}) & TSESTree.Program; +interface ParseAndGenerateServicesResult { + ast: AST; + services: ParserServices; +} +declare function parse(code: string, options?: T): AST; +declare function clearParseAndGenerateServicesCalls(): void; +declare function parseAndGenerateServices(code: string | ts.SourceFile, tsestreeOptions: T): ParseAndGenerateServicesResult; +export { type AST, clearDefaultProjectMatchedFiles, clearParseAndGenerateServicesCalls, clearProgramCache, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, }; +//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map new file mode 100644 index 00000000..1a972b96 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4B5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAGD,iBAAS,+BAA+B,IAAI,IAAI,CAE/C;AA8CD,KAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAC5D;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAChC,EAAE,CAAC,GACL,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,GAC9D,QAAQ,CAAC,OAAO,CAAC;AAGnB,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA4CD,iBAAS,kCAAkC,IAAI,IAAI,CAElD;AAED,iBAAS,wBAAwB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3E,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,EAAE,CAAC,GACjB,8BAA8B,CAAC,CAAC,CAAC,CA+GnC;AAED,OAAO,EACL,KAAK,GAAG,EACR,+BAA+B,EAC/B,kCAAkC,EAClC,iBAAiB,EACjB,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js new file mode 100644 index 00000000..b0f56381 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js @@ -0,0 +1,181 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearDefaultProjectMatchedFiles = clearDefaultProjectMatchedFiles; +exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; +exports.clearProgramCache = clearProgramCache; +exports.parse = parse; +exports.parseAndGenerateServices = parseAndGenerateServices; +const debug_1 = __importDefault(require("debug")); +const ast_converter_1 = require("./ast-converter"); +const convert_1 = require("./convert"); +const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram"); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +const createParserServices_1 = require("./createParserServices"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors"); +const useProgramFromProjectService_1 = require("./useProgramFromProjectService"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser'); +/** + * Cache existing programs for the single run use-case. + * + * clearProgramCache() is only intended to be used in testing to ensure the parser is clean between tests. + */ +const existingPrograms = new Map(); +function clearProgramCache() { + existingPrograms.clear(); +} +const defaultProjectMatchedFiles = new Set(); +function clearDefaultProjectMatchedFiles() { + defaultProjectMatchedFiles.clear(); +} +/** + * @param parseSettings Internal settings for parsing the file + * @param hasFullTypeInformation True if the program should be attempted to be calculated from provided tsconfig files + * @returns Returns a source file and program corresponding to the linted code + */ +function getProgramAndAST(parseSettings, hasFullTypeInformation) { + if (parseSettings.projectService) { + const fromProjectService = (0, useProgramFromProjectService_1.useProgramFromProjectService)(parseSettings.projectService, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles); + if (fromProjectService) { + return fromProjectService; + } + } + if (parseSettings.programs) { + const fromProvidedPrograms = (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings); + if (fromProvidedPrograms) { + return fromProvidedPrograms; + } + } + // no need to waste time creating a program as the caller didn't want parser services + // so we can save time and just create a lonesome source file + if (!hasFullTypeInformation) { + return (0, createSourceFile_1.createNoProgram)(parseSettings); + } + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, (0, getWatchProgramsForProjects_1.getWatchProgramsForProjects)(parseSettings)); +} +function parse(code, options) { + const { ast } = parseWithNodeMapsInternal(code, options, false); + return ast; +} +function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); + /** + * Ensure users do not attempt to use parse() when they need parseAndGenerateServices() + */ + if (options?.errorOnTypeScriptSyntacticAndSemanticIssues) { + throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`); + } + /** + * Create a ts.SourceFile directly, no ts.Program is needed for a simple parse + */ + const ast = (0, createSourceFile_1.createSourceFile)(parseSettings); + /** + * Convert the TypeScript AST to an ESTree-compatible one + */ + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + return { + ast: estree, + esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, + }; +} +let parseAndGenerateServicesCalls = {}; +// Privately exported utility intended for use in typescript-eslint unit tests only +function clearParseAndGenerateServicesCalls() { + parseAndGenerateServicesCalls = {}; +} +function parseAndGenerateServices(code, tsestreeOptions) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, tsestreeOptions); + /** + * If this is a single run in which the user has not provided any existing programs but there + * are programs which need to be created from the provided "project" option, + * create an Iterable which will lazily create the programs as needed by the iteration logic + */ + if (parseSettings.singleRun && + !parseSettings.programs && + parseSettings.projects.size > 0) { + parseSettings.programs = { + *[Symbol.iterator]() { + for (const configFile of parseSettings.projects) { + const existingProgram = existingPrograms.get(configFile[0]); + if (existingProgram) { + yield existingProgram; + } + else { + log('Detected single-run/CLI usage, creating Program once ahead of time for project: %s', configFile); + const newProgram = (0, useProvidedPrograms_1.createProgramFromConfigFile)(configFile[1]); + existingPrograms.set(configFile[0], newProgram); + yield newProgram; + } + } + }, + }; + } + const hasFullTypeInformation = parseSettings.programs != null || + parseSettings.projects.size > 0 || + !!parseSettings.projectService; + if (typeof tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues === + 'boolean' && + tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues) { + parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true; + } + if (parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues && + !hasFullTypeInformation) { + throw new Error('Cannot calculate TypeScript semantic issues without a valid project.'); + } + /** + * If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file, + * it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional + * 10 times in order to apply all possible fixes for the file). + * + * In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source + * with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source. + */ + if (parseSettings.singleRun && tsestreeOptions.filePath) { + parseAndGenerateServicesCalls[tsestreeOptions.filePath] = + (parseAndGenerateServicesCalls[tsestreeOptions.filePath] || 0) + 1; + } + const { ast, program } = parseSettings.singleRun && + tsestreeOptions.filePath && + parseAndGenerateServicesCalls[tsestreeOptions.filePath] > 1 + ? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings) + : getProgramAndAST(parseSettings, hasFullTypeInformation); + /** + * Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve + * mappings between converted and original AST nodes + */ + const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean' + ? parseSettings.preserveNodeMaps + : true; + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + /** + * Even if TypeScript parsed the source code ok, and we had no problems converting the AST, + * there may be other syntactic or semantic issues in the code that we can optionally report on. + */ + if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) { + const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast); + if (error) { + throw (0, convert_1.convertError)(error); + } + } + /** + * Return the converted AST and additional parser services + */ + return { + ast: estree, + services: (0, createParserServices_1.createParserServices)(astMaps, program), + }; +} +//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map new file mode 100644 index 00000000..30ae23a8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AAwRE,0EAA+B;AAC/B,gFAAkC;AAClC,8CAAiB;AACjB,sBAAK;AACL,4DAAwB;AA1R1B,kDAA0B;AAW1B,mDAA+C;AAC/C,uCAAyC;AACzC,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAG2C;AAC3C,8FAA2F;AAC3F,8EAG8C;AAC9C,iEAA8D;AAC9D,6EAA0E;AAC1E,iFAAkF;AAClF,iFAA8E;AAE9E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;AACrD,SAAS,+BAA+B;IACtC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,sBAA+B;IAE/B,IAAI,aAAa,CAAC,cAAc,EAAE,CAAC;QACjC,MAAM,kBAAkB,GAAG,IAAA,2DAA4B,EACrD,aAAa,CAAC,cAAc,EAC5B,aAAa,EACb,sBAAsB,EACtB,0BAA0B,CAC3B,CAAC;QACF,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO,kBAAkB,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;QAC3B,MAAM,oBAAoB,GAAG,IAAA,yCAAmB,EAC9C,aAAa,CAAC,QAAQ,EACtB,aAAa,CACd,CAAC;QACF,IAAI,oBAAoB,EAAE,CAAC;Y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,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,aAAa,CAAC,SAAS,IAAI,eAAe,CAAC,QAAQ,EAAE,CAAC;QACxD,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC;YACrD,CAAC,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GACpB,aAAa,CAAC,SAAS;QACvB,eAAe,CAAC,QAAQ;QACxB,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC;QACzD,CAAC,CAAC,IAAA,6CAAqB,EAAC,aAAa,CAAC;QACtC,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,gBAAgB,KAAK,SAAS;QACjD,CAAC,CAAC,aAAa,CAAC,gBAAgB;QAChC,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAA,4BAAY,EACtC,GAAG,EACH,aAAa,EACb,sBAAsB,CACvB,CAAC;IAEF;;;OAGG;IACH,IAAI,OAAO,IAAI,aAAa,CAAC,2CAA2C,EAAE,CAAC;QACzE,MAAM,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts new file mode 100644 index 00000000..bd35968c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts @@ -0,0 +1,13 @@ +import type { Diagnostic, Program, SourceFile } from 'typescript'; +export interface SemanticOrSyntacticError extends Diagnostic { + message: string; +} +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; +//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map new file mode 100644 index 00000000..63d13a71 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.d.ts","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,OAAO,EACP,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,GACd,wBAAwB,GAAG,SAAS,CAmCtC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js new file mode 100644 index 00000000..fd3abc68 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getFirstSemanticOrSyntacticError = getFirstSemanticOrSyntacticError; +const typescript_1 = require("typescript"); +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +function getFirstSemanticOrSyntacticError(program, ast) { + try { + const supportedSyntacticDiagnostics = allowlistSupportedDiagnostics(program.getSyntacticDiagnostics(ast)); + if (supportedSyntacticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSyntacticDiagnostics[0]); + } + const supportedSemanticDiagnostics = allowlistSupportedDiagnostics(program.getSemanticDiagnostics(ast)); + if (supportedSemanticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSemanticDiagnostics[0]); + } + return undefined; + } + catch (e) { + /** + * TypeScript compiler has certain Debug.fail() statements in, which will cause the diagnostics + * retrieval above to throw. + * + * E.g. from ast-alignment-tests + * "Debug Failure. Shouldn't ever directly check a JsxOpeningElement" + * + * For our current use-cases this is undesired behavior, so we just suppress it + * and log a warning. + */ + /* istanbul ignore next */ + console.warn(`Warning From TSC: "${e.message}`); // eslint-disable-line no-console + /* istanbul ignore next */ + return undefined; + } +} +function allowlistSupportedDiagnostics(diagnostics) { + return diagnostics.filter(diagnostic => { + switch (diagnostic.code) { + case 1013: // "A rest parameter or binding pattern may not have a trailing comma." + case 1014: // "A rest parameter must be last in a parameter list." + case 1044: // "'{0}' modifier cannot appear on a module or namespace element." + case 1045: // "A '{0}' modifier cannot be used with an interface declaration." + case 1048: // "A rest parameter cannot have an initializer." + case 1049: // "A 'set' accessor must have exactly one parameter." + case 1070: // "'{0}' modifier cannot appear on a type member." + case 1071: // "'{0}' modifier cannot appear on an index signature." + case 1085: // "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'." + case 1090: // "'{0}' modifier cannot appear on a parameter." + case 1096: // "An index signature must have exactly one parameter." + case 1097: // "'{0}' list cannot be empty." + case 1098: // "Type parameter list cannot be empty." + case 1099: // "Type argument list cannot be empty." + case 1117: // "An object literal cannot have multiple properties with the same name in strict mode." + case 1121: // "Octal literals are not allowed in strict mode." + case 1123: // "Variable declaration list cannot be empty." + case 1141: // "String literal expected." + case 1162: // "An object member cannot be declared optional." + case 1164: // "Computed property names are not allowed in enums." + case 1172: // "'extends' clause already seen." + case 1173: // "'extends' clause must precede 'implements' clause." + case 1175: // "'implements' clause already seen." + case 1176: // "Interface declaration cannot have 'implements' clause." + case 1190: // "The variable declaration of a 'for...of' statement cannot have an initializer." + case 1196: // "Catch clause variable type annotation must be 'any' or 'unknown' if specified." + case 1200: // "Line terminator not permitted before arrow." + case 1206: // "Decorators are not valid here." + case 1211: // "A class declaration without the 'default' modifier must have a name." + case 1242: // "'abstract' modifier can only appear on a class, method, or property declaration." + case 1246: // "An interface property cannot have an initializer." + case 1255: // "A definite assignment assertion '!' is not permitted in this context." + case 1308: // "'await' expression is only allowed within an async function." + case 2364: // "The left-hand side of an assignment expression must be a variable or a property access." + case 2369: // "A parameter property is only allowed in a constructor implementation." + case 2452: // "An enum member cannot have a numeric name." + case 2462: // "A rest element must be last in a destructuring pattern." + case 8017: // "Octal literal types must use ES2015 syntax. Use the syntax '{0}'." + case 17012: // "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?" + case 17013: // "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor." + return true; + } + return false; + }); +} +function convertDiagnosticToSemanticOrSyntacticError(diagnostic) { + return { + ...diagnostic, + message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine), + }; +} +//# sourceMappingURL=semantic-or-syntactic-errors.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map new file mode 100644 index 00000000..fb8c32cf --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.js","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":";;AAoBA,4EAsCC;AAnDD,2CAA+D;AAM/D;;;;;;GAMG;AACH,SAAgB,gCAAgC,CAC9C,OAAgB,EAChB,GAAe;IAEf,IAAI,CAAC;QACH,MAAM,6BAA6B,GAAG,6BAA6B,CACjE,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACrC,CAAC;QACF,IAAI,6BAA6B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,OAAO,2CAA2C,CAChD,6BAA6B,CAAC,CAAC,CAAC,CACjC,CAAC;QACJ,CAAC;QACD,MAAM,4BAA4B,GAAG,6BAA6B,CAChE,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpC,CAAC;QACF,IAAI,4BAA4B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,2CAA2C,CAChD,4BAA4B,CAAC,CAAC,CAAC,CAChC,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX;;;;;;;;;WASG;QACH,0BAA0B;QAC1B,OAAO,CAAC,IAAI,CAAC,sBAAuB,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAA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K,IAAI,CAAC,CAAC,gDAAgD;YAC3D,KAAK,IAAI,CAAC,CAAC,mCAAmC;YAC9C,KAAK,IAAI,CAAC,CAAC,yEAAyE;YACpF,KAAK,IAAI,CAAC,CAAC,qFAAqF;YAChG,KAAK,IAAI,CAAC,CAAC,sDAAsD;YACjE,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,iEAAiE;YAC5E,KAAK,IAAI,CAAC,CAAC,4FAA4F;YACvG,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,+CAA+C;YAC1D,KAAK,IAAI,CAAC,CAAC,4DAA4D;YACvE,KAAK,IAAI,CAAC,CAAC,sEAAsE;YACjF,KAAK,KAAK,CAAC,CAAC,8EAA8E;YAC1F,KAAK,KAAK,EAAE,oHAAoH;gBAC9H,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,UAAsB;IAEtB,OAAO;QACL,GAAG,UAAU;QACb,OAAO,EAAE,IAAA,yCAA4B,EAAC,UAAU,CAAC,WAAW,EAAE,gBAAG,CAAC,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts new file mode 100644 index 00000000..9b6b4c67 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts @@ -0,0 +1,12 @@ +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +import type { TSESTree } from './ts-estree'; +type SimpleTraverseOptions = Readonly<{ + enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; + visitorKeys?: Readonly; +} | { + visitorKeys?: Readonly; + visitors: Record void>; +}>; +export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; +export {}; +//# sourceMappingURL=simple-traverse.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map new file mode 100644 index 00000000..9abec97f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACxE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CACd,MAAM,EACN,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CACjE,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js new file mode 100644 index 00000000..822897f3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.simpleTraverse = simpleTraverse; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isValidNode(x) { + return (typeof x === 'object' && + x != null && + 'type' in x && + typeof x.type === 'string'); +} +function getVisitorKeysForNode(allVisitorKeys, node) { + const keys = allVisitorKeys[node.type]; + return (keys ?? []); +} +class SimpleTraverser { + allVisitorKeys = visitor_keys_1.visitorKeys; + selectors; + setParentPointers; + constructor(selectors, setParentPointers = false) { + this.selectors = selectors; + this.setParentPointers = setParentPointers; + if (selectors.visitorKeys) { + this.allVisitorKeys = selectors.visitorKeys; + } + } + traverse(node, parent) { + if (!isValidNode(node)) { + return; + } + if (this.setParentPointers) { + node.parent = parent; + } + if ('enter' in this.selectors) { + this.selectors.enter(node, parent); + } + else if (node.type in this.selectors.visitors) { + this.selectors.visitors[node.type](node, parent); + } + const keys = getVisitorKeysForNode(this.allVisitorKeys, node); + if (keys.length < 1) { + return; + } + for (const key of keys) { + const childOrChildren = node[key]; + if (Array.isArray(childOrChildren)) { + for (const child of childOrChildren) { + this.traverse(child, node); + } + } + else { + this.traverse(childOrChildren, node); + } + } + } +} +function simpleTraverse(startingNode, options, setParentPointers = false) { + new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined); +} +//# sourceMappingURL=simple-traverse.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map new file mode 100644 index 00000000..1f98fe29 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript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,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACnC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;oBACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,SAAgB,cAAc,CAC5B,YAA2B,EAC3B,OAA8B,EAC9B,iBAAiB,GAAG,KAAK;IAEzB,IAAI,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACtD,YAAY,EACZ,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts new file mode 100644 index 00000000..756b7815 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function isSourceFile(code: unknown): code is ts.SourceFile; +export declare function getCodeText(code: string | ts.SourceFile): string; +//# sourceMappingURL=source-files.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map new file mode 100644 index 00000000..68685a97 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,UAAU,CAUjE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js new file mode 100644 index 00000000..e99efd84 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSourceFile = isSourceFile; +exports.getCodeText = getCodeText; +const ts = __importStar(require("typescript")); +function isSourceFile(code) { + if (typeof code !== 'object' || code == null) { + return false; + } + const maybeSourceFile = code; + return (maybeSourceFile.kind === ts.SyntaxKind.SourceFile && + typeof maybeSourceFile.getFullText === 'function'); +} +function getCodeText(code) { + return isSourceFile(code) ? code.getFullText(code) : code; +} +//# sourceMappingURL=source-files.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map new file mode 100644 index 00000000..4d00af8c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.js","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAUC;AAED,kCAEC;AAhBD,+CAAiC;AAEjC,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,IAA8B,CAAC;IACvD,OAAO,CACL,eAAe,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;QACjD,OAAO,eAAe,CAAC,WAAW,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC;AAED,SAAgB,WAAW,CAAC,IAA4B;IACtD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts new file mode 100644 index 00000000..63ea30eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts @@ -0,0 +1,179 @@ +import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSNode } from './ts-nodes'; +export interface EstreeToTsNodeTypes { + [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; + [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; + [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.BlockStatement]: ts.Block; + [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; + [AST_NODE_TYPES.CallExpression]: ts.CallExpression; + [AST_NODE_TYPES.CatchClause]: ts.CatchClause; + [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; + [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; + [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; + [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; + [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; + [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; + [AST_NODE_TYPES.Decorator]: ts.Decorator; + [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; + [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; + [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; + [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; + [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; + [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; + [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; + [AST_NODE_TYPES.ForStatement]: ts.ForStatement; + [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; + [AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token; + [AST_NODE_TYPES.IfStatement]: ts.IfStatement; + [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; + [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry; + [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; + [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; + [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; + [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; + [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; + [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; + [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; + [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; + [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; + [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; + [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; + [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; + [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; + [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; + [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; + [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; + [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; + [AST_NODE_TYPES.JSXText]: ts.JsxText; + [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; + [AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral; + [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; + [AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.NewExpression]: ts.NewExpression; + [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; + [AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression; + [AST_NODE_TYPES.Program]: ts.SourceFile; + [AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; + [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; + [AST_NODE_TYPES.Super]: ts.SuperExpression; + [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; + [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; + [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; + [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; + [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; + [AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression; + [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; + [AST_NODE_TYPES.TryStatement]: ts.TryStatement; + [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; + [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; + [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; + [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; + [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; + [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; + [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; + [AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; + [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; + [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; + [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; + [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; + [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; + [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; + [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; + [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; + [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; + [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; + [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; + [AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; + [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; + [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; + [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; + [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; + [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; + [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; + [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; + [AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName; + [AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode; + [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; + [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; + [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; + [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; + [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; + [AST_NODE_TYPES.TSTypeAnnotation]: undefined; + [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; + [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; + [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; + [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; + [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; + [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode; + [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; + [AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode; + [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; + [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; + [AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression; + [AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression; + [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; + [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; + [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; + [AST_NODE_TYPES.WithStatement]: ts.WithStatement; + [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; + [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; + [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral; + [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; + [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; + [AST_NODE_TYPES.TSExportKeyword]: ts.Token; + [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; + [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; + [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; + [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; + [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; +} +/** + * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). + * This mapping is based on the internal logic of the parser. + */ +export type TSESTreeToTSNode = Extract | TSNode, EstreeToTsNodeTypes[T['type']]>; +//# sourceMappingURL=estree-to-ts-node-types.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map new file mode 100644 index 00000000..9f13f56a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.d.ts","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,0BA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 No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js new file mode 100644 index 00000000..e92a96f2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=estree-to-ts-node-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map new file mode 100644 index 00000000..a9cfa15f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.js","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts new file mode 100644 index 00000000..11458c20 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts @@ -0,0 +1,4 @@ +export * from './estree-to-ts-node-types'; +export * from './ts-nodes'; +export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map new file mode 100644 index 00000000..8b223729 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js new file mode 100644 index 00000000..33dc61ff --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js @@ -0,0 +1,25 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +// for simplicity and backwards-compatibility +__exportStar(require("./estree-to-ts-node-types"), exports); +__exportStar(require("./ts-nodes"), exports); +var types_1 = require("@typescript-eslint/types"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); +Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map new file mode 100644 index 00000000..db728cec --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,4DAA0C;AAC1C,6CAA2B;AAC3B,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts new file mode 100644 index 00000000..fe674a96 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts @@ -0,0 +1,18 @@ +import type * as ts from 'typescript'; +declare module 'typescript' { + interface AssertClause extends ts.ImportAttributes { + } + interface AssertEntry extends ts.ImportAttribute { + } + interface SatisfiesExpression extends ts.Node { + } + interface JsxNamespacedName extends ts.Node { + } + interface ImportAttribute extends ts.Node { + } + interface ImportAttributes extends ts.Node { + } +} +export type TSToken = ts.Token; +export type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression; +//# sourceMappingURL=ts-nodes.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map new file mode 100644 index 00000000..e676701a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.d.ts","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,QAAQ,YAAY,CAAC;IAE1B,UAAiB,YAAa,SAAQ,EAAE,CAAC,gBAAgB;KAAG;IAC5D,UAAiB,WAAY,SAAQ,EAAE,CAAC,eAAe;KAAG;IAE1D,UAAiB,mBAAoB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAEvD,UAAiB,iBAAkB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAErD,UAAiB,eAAgB,SAAQ,EAAE,CAAC,IAAI;KAAG;IACnD,UAAiB,gBAAiB,SAAQ,EAAE,CAAC,IAAI;KAAG;CACrD;AAGD,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,MAAM,GACd,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,sBAAsB,GACzB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,aAAa,GAChB,EAAE,C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AC,2BAA2B,GAC9B,EAAE,CAAC,UAAU,GACb,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,wBAAwB,GAC3B,EAAE,CAAC,kBAAkB,GACrB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,cAAc,GAGjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,wBAAwB,GAC3B,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js new file mode 100644 index 00000000..ba99b5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ts-nodes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map new file mode 100644 index 00000000..a4fa02c4 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.js","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts new file mode 100644 index 00000000..3d8aceee --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts @@ -0,0 +1,7 @@ +export * from './ast-converter'; +export * from './create-program/getScriptKind'; +export type { ParseSettings } from './parseSettings'; +export * from './getModifiers'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { getCanonicalFileName } from './create-program/shared'; +//# sourceMappingURL=use-at-your-own-risk.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map new file mode 100644 index 00000000..0cfba63b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.d.ts","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js new file mode 100644 index 00000000..28a5e403 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js @@ -0,0 +1,28 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCanonicalFileName = exports.typescriptVersionIsAtLeast = void 0; +// required by website +__exportStar(require("./ast-converter"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +// required by packages/utils/src/ts-estree.ts +__exportStar(require("./getModifiers"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +// required by packages/type-utils +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +//# sourceMappingURL=use-at-your-own-risk.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map new file mode 100644 index 00000000..f5dec7a6 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.js","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,kDAAgC;AAChC,iEAA+C;AAG/C,8CAA8C;AAC9C,iDAA+B;AAC/B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AAEnC,kCAAkC;AAClC,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts new file mode 100644 index 00000000..07f58e0c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts @@ -0,0 +1,7 @@ +import type { ProjectServiceSettings } from './create-program/createProjectService'; +import type { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram } from './create-program/shared'; +import type { MutableParseSettings } from './parseSettings'; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: boolean, defaultProjectMatchedFiles: Set): ASTAndProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: true, defaultProjectMatchedFiles: Set): ASTAndDefiniteProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: false, defaultProjectMatchedFiles: Set): ASTAndNoProgram | undefined; +//# sourceMappingURL=useProgramFromProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map new file mode 100644 index 00000000..1878d702 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.d.ts","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AA4M5D,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,OAAO,EAC/B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,aAAa,GAAG,SAAS,CAAC;AAC7B,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,IAAI,EAC5B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,qBAAqB,GAAG,SAAS,CAAC;AACrC,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,KAAK,EAC7B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,eAAe,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js new file mode 100644 index 00000000..3941ae1b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js @@ -0,0 +1,197 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useProgramFromProjectService = useProgramFromProjectService; +const debug_1 = __importDefault(require("debug")); +const minimatch_1 = require("minimatch"); +const node_path_1 = __importDefault(require("node:path")); +const node_util_1 = __importDefault(require("node:util")); +const ts = __importStar(require("typescript")); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const shared_1 = require("./create-program/shared"); +const validateDefaultProjectForFilesGlob_1 = require("./create-program/validateDefaultProjectForFilesGlob"); +const RELOAD_THROTTLE_MS = 250; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProgramFromProjectService'); +const serviceFileExtensions = new WeakMap(); +const updateExtraFileExtensions = (service, extraFileExtensions) => { + const currentServiceFileExtensions = serviceFileExtensions.get(service) ?? []; + if (!node_util_1.default.isDeepStrictEqual(currentServiceFileExtensions, extraFileExtensions)) { + log('Updating extra file extensions: before=%s: after=%s', currentServiceFileExtensions, extraFileExtensions); + service.setHostConfiguration({ + extraFileExtensions: extraFileExtensions.map(extension => ({ + extension, + isMixedContent: false, + scriptKind: ts.ScriptKind.Deferred, + })), + }); + serviceFileExtensions.set(service, extraFileExtensions); + log('Extra file extensions updated: %o', extraFileExtensions); + } +}; +function openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings) { + const opened = openClientFileAndMaybeReload(); + log('Result from attempting to open client file: %o', opened); + log('Default project allowed path: %s, based on config file: %s', isDefaultProjectAllowed, opened.configFileName); + if (opened.configFileName) { + if (isDefaultProjectAllowed) { + throw new Error(`${parseSettings.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`); + } + } + else { + const wasNotFound = `${parseSettings.filePath} was not found by the project service`; + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + const extraFileExtensions = parseSettings.extraFileExtensions; + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension) && + !extraFileExtensions.includes(fileExtension)) { + const nonStandardExt = `${wasNotFound} because the extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + throw new Error(`${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`); + } + else { + throw new Error(`${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`); + } + } + if (!isDefaultProjectAllowed) { + throw new Error(`${wasNotFound}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`); + } + } + // No a configFileName indicates this file wasn't included in a TSConfig. + // That means it must get its type information from the default project. + if (!opened.configFileName) { + defaultProjectMatchedFiles.add(filePathAbsolute); + if (defaultProjectMatchedFiles.size > + serviceSettings.maximumDefaultProjectFileMatchCount) { + const filePrintLimit = 20; + const filesToPrint = [...defaultProjectMatchedFiles].slice(0, filePrintLimit); + const truncatedFileCount = defaultProjectMatchedFiles.size - filesToPrint.length; + throw new Error(`Too many files (>${serviceSettings.maximumDefaultProjectFileMatchCount}) have matched the default project.${validateDefaultProjectForFilesGlob_1.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION} +Matching files: +${filesToPrint.map(file => `- ${file}`).join('\n')} +${truncatedFileCount ? `...and ${truncatedFileCount} more files\n` : ''} +If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value. +`); + } + } + return opened; + function openClientFile() { + return serviceSettings.service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + function openClientFileAndMaybeReload() { + log('Opening project service client file at path: %s', filePathAbsolute); + let opened = openClientFile(); + // If no project included the file and we're not in single-run mode, + // we might be running in an editor with outdated file info. + // We can try refreshing the project service - debounced for performance. + if (!opened.configFileErrors && + !opened.configFileName && + !parseSettings.singleRun && + !isDefaultProjectAllowed && + performance.now() - serviceSettings.lastReloadTimestamp > + RELOAD_THROTTLE_MS) { + log('No config file found; reloading project service and retrying.'); + serviceSettings.service.reloadProjects(); + opened = openClientFile(); + serviceSettings.lastReloadTimestamp = performance.now(); + } + return opened; + } +} +function createNoProgramWithProjectService(filePathAbsolute, parseSettings, service) { + log('No project service information available. Creating no program.'); + // If the project service knows about this file, this informs if of changes. + // Doing so ensures that: + // - if the file is not part of a project, we don't waste time creating a program (fast non-type-aware linting) + // - otherwise, we refresh the file in the project service (moderately fast, since the project is already loaded) + if (service.getScriptInfo(filePathAbsolute)) { + log('Script info available. Opening client file in project service.'); + service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + return (0, createSourceFile_1.createNoProgram)(parseSettings); +} +function retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings) { + log('Retrieving script info and then program for: %s', filePathAbsolute); + const scriptInfo = serviceSettings.service.getScriptInfo(filePathAbsolute); + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + const program = serviceSettings.service + .getDefaultProjectForFile(scriptInfo.fileName, true) + .getLanguageService(/*ensureSynchronized*/ true) + .getProgram(); + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + if (!program) { + log('Could not find project service program for: %s', filePathAbsolute); + return undefined; + } + log('Found project service program for: %s', filePathAbsolute); + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, [program]); +} +function useProgramFromProjectService(serviceSettings, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles) { + // NOTE: triggers a full project reload when changes are detected + updateExtraFileExtensions(serviceSettings.service, parseSettings.extraFileExtensions); + // We don't canonicalize the filename because it caused a performance regression. + // See https://github.com/typescript-eslint/typescript-eslint/issues/8519 + const filePathAbsolute = absolutify(parseSettings.filePath, serviceSettings); + log('Opening project service file for: %s at absolute path %s', parseSettings.filePath, filePathAbsolute); + const filePathRelative = node_path_1.default.relative(parseSettings.tsconfigRootDir, filePathAbsolute); + const isDefaultProjectAllowed = filePathMatchedBy(filePathRelative, serviceSettings.allowDefaultProject); + // Type-aware linting is disabled for this file. + // However, type-aware lint rules might still rely on its contents. + if (!hasFullTypeInformation && !isDefaultProjectAllowed) { + return createNoProgramWithProjectService(filePathAbsolute, parseSettings, serviceSettings.service); + } + // If type info was requested, we attempt to open it in the project service. + // By now, the file is known to be one of: + // - in the project service (valid configuration) + // - allowlisted in the default project (valid configuration) + // - neither, which openClientFileFromProjectService will throw an error for + const opened = hasFullTypeInformation && + openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings); + log('Opened project service file: %o', opened); + return retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings); +} +function absolutify(filePath, serviceSettings) { + return node_path_1.default.isAbsolute(filePath) + ? filePath + : node_path_1.default.join(serviceSettings.service.host.getCurrentDirectory(), filePath); +} +function filePathMatchedBy(filePath, allowDefaultProject) { + return !!allowDefaultProject?.some(pattern => (0, minimatch_1.minimatch)(filePath, pattern)); +} +//# sourceMappingURL=useProgramFromProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map new file mode 100644 index 00000000..99b99276 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.js","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0OA,oEA8DC;AAxSD,kDAA0B;AAC1B,yCAAsC;AACtC,0DAA6B;AAC7B,0DAA6B;AAC7B,+CAAiC;AAUjC,gFAA6E;AAC7E,wEAAoE;AACpE,oDAAwE;AACxE,4GAA8G;AAE9G,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,kEAAkE,CACnE,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAsC,CAAC;AAEhF,MAAM,yBAAyB,GAAG,CAChC,OAAiC,EACjC,mBAA6B,EACvB,EAAE;IACR,MAAM,4BAA4B,GAAG,qB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,CAC/C,gBAAgB,EAChB,eAAe,CAAC,mBAAmB,CACpC,CAAC;IAEF,gDAAgD;IAChD,mEAAmE;IACnE,IAAI,CAAC,sBAAsB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACxD,OAAO,iCAAiC,CACtC,gBAAgB,EAChB,aAAa,EACb,eAAe,CAAC,OAAO,CACxB,CAAC;IACJ,CAAC;IAED,4EAA4E;IAC5E,0CAA0C;IAC1C,iDAAiD;IACjD,6DAA6D;IAC7D,4EAA4E;IAC5E,MAAM,MAAM,GACV,sBAAsB;QACtB,gCAAgC,CAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,eAAe,CAChB,CAAC;IAEJ,GAAG,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IAE/C,OAAO,wBAAwB,CAC7B,gBAAgB,EAChB,aAAa,EACb,eAAe,CAChB,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CACjB,QAAgB,EAChB,eAAuC;IAEvC,OAAO,mBAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,mBAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAgB,EAChB,mBAAyC;IAEzC,OAAO,CAAC,CAAC,mBAAmB,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAA,qBAAS,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9E,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts new file mode 100644 index 00000000..0b8b65a3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts @@ -0,0 +1,5 @@ +declare const versions: readonly ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; +type Versions = typeof versions extends ArrayLike ? U : never; +declare const typescriptVersionIsAtLeast: Record; +export { typescriptVersionIsAtLeast }; +//# sourceMappingURL=version-check.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map new file mode 100644 index 00000000..9c6001eb --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,QAAQ,mEASJ,CAAC;AACX,KAAK,QAAQ,GAAG,OAAO,QAAQ,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEvE,QAAA,MAAM,0BAA0B,EAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKnE,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js new file mode 100644 index 00000000..2e93b9ef --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js @@ -0,0 +1,59 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typescriptVersionIsAtLeast = void 0; +const semver = __importStar(require("semver")); +const ts = __importStar(require("typescript")); +function semverCheck(version) { + return semver.satisfies(ts.version, `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, { + includePrerelease: true, + }); +} +const versions = [ + '4.7', + '4.8', + '4.9', + '5.0', + '5.1', + '5.2', + '5.3', + '5.4', +]; +const typescriptVersionIsAtLeast = {}; +exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; +for (const version of versions) { + typescriptVersionIsAtLeast[version] = semverCheck(version); +} +//# sourceMappingURL=version-check.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map new file mode 100644 index 00000000..9690e042 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,+CAAiC;AAEjC,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,MAAM,CAAC,SAAS,CACrB,EAAE,CAAC,OAAO,EACV,MAAM,OAAO,YAAY,OAAO,eAAe,OAAO,SAAS,EAC/D;QACE,iBAAiB,EAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAGX,MAAM,0BAA0B,GAAG,EAA+B,CAAC;AAK1D,gEAA0B;AAJnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;IAC/B,0BAA0B,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts new file mode 100644 index 00000000..d3518070 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts @@ -0,0 +1,2 @@ +export declare const version: string; +//# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts.map new file mode 100644 index 00000000..70ffa1c8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js new file mode 100644 index 00000000..d222e9ef --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.version = void 0; +// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access +exports.version = require('../package.json').version; +//# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map new file mode 100644 index 00000000..ed8dfc7e --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map @@ -0,0 +1 @@ +{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts new file mode 100644 index 00000000..7d2882be --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts @@ -0,0 +1,10 @@ +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +export declare function withoutProjectParserOptions(opts: Options): Omit; +//# sourceMappingURL=withoutProjectParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map new file mode 100644 index 00000000..9d9db9e1 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.d.ts","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,SAAS,MAAM,EAChE,IAAI,EAAE,OAAO,GACZ,IAAI,CACL,OAAO,EACP,gCAAgC,GAAG,SAAS,GAAG,gBAAgB,CAChE,CAMA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js new file mode 100644 index 00000000..11d11940 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.withoutProjectParserOptions = withoutProjectParserOptions; +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +function withoutProjectParserOptions(opts) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars -- The variables are meant to be omitted + const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts; + return rest; +} +//# sourceMappingURL=withoutProjectParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map new file mode 100644 index 00000000..4f0b19d5 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.js","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":";;AAQA,kEAWC;AAnBD;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,IAAa;IAKb,sGAAsG;IACtG,MAAM,EAAE,8BAA8B,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GACxE,IAA+B,CAAC;IAElC,OAAO,IAA0B,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/package.json b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/package.json new file mode 100644 index 00000000..aef38afe --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/package.json @@ -0,0 +1,91 @@ +{ + "name": "@typescript-eslint/typescript-estree", + "version": "8.17.0", + "description": "A parser that converts TypeScript source code into an ESTree compatible form", + "files": [ + "dist", + "_ts4.3", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json", + "./use-at-your-own-risk": { + "types": "./dist/use-at-your-own-risk.d.ts", + "default": "./dist/use-at-your-own-risk.js" + } + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/typescript-estree" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/typescript-estree", + "license": "BSD-2-Clause", + "keywords": [ + "ast", + "estree", + "ecmascript", + "javascript", + "typescript", + "parser", + "syntax" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage --runInBand --verbose", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "glob": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "tmp": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/LICENSE b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/README.md b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/README.md new file mode 100644 index 00000000..1745172a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/visitor-keys` + +> Visitor keys used to help traverse the TypeScript-ESTree AST. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts new file mode 100644 index 00000000..344a7c42 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts @@ -0,0 +1,4 @@ +import type { TSESTree } from '@typescript-eslint/types'; +declare const getKeys: (node: TSESTree.Node) => readonly string[]; +export { getKeys }; +//# sourceMappingURL=get-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map new file mode 100644 index 00000000..85407809 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.d.ts","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,QAAA,MAAM,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS,MAAM,EAAoB,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js new file mode 100644 index 00000000..309b72b9 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getKeys = void 0; +const eslint_visitor_keys_1 = require("eslint-visitor-keys"); +const getKeys = eslint_visitor_keys_1.getKeys; +exports.getKeys = getKeys; +//# sourceMappingURL=get-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map new file mode 100644 index 00000000..4a903fd8 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.js","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":";;;AAEA,6DAAiE;AAEjE,MAAM,OAAO,GAA+C,6BAAe,CAAC;AAEnE,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..f9eb5a97 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts @@ -0,0 +1,3 @@ +export { getKeys } from './get-keys'; +export { visitorKeys, type VisitorKeys } from './visitor-keys'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map new file mode 100644 index 00000000..d9031764 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js new file mode 100644 index 00000000..a5b4b62a --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = exports.getKeys = void 0; +var get_keys_1 = require("./get-keys"); +Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return get_keys_1.getKeys; } }); +var visitor_keys_1 = require("./visitor-keys"); +Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map new file mode 100644 index 00000000..03f9af81 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,+CAA+D;AAAtD,2GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..18e74ea3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,4 @@ +type VisitorKeys = Record; +declare const visitorKeys: VisitorKeys; +export { visitorKeys, type VisitorKeys }; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map new file mode 100644 index 00000000..c4883d4c --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.d.ts","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AA0QjE,QAAA,MAAM,WAAW,EAAE,WAAyD,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js new file mode 100644 index 00000000..77c96599 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js @@ -0,0 +1,196 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = void 0; +const eslintVisitorKeys = __importStar(require("eslint-visitor-keys")); +/* + ********************************** IMPORTANT NOTE ******************************** + * * + * The key arrays should be sorted in the order in which you would want to visit * + * the child keys. * + * * + * DO NOT SORT THEM ALPHABETICALLY! * + * * + * They should be sorted in the order that they appear in the source code. * + * For example: * + * * + * class Foo extends Bar { prop: 1 } * + * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ClassDeclaration * + * ^^^ id ^^^ superClass * + * ^^^^^^^^^^^ body * + * * + * It would be incorrect to provide the visitor keys ['body', 'id', 'superClass'] * + * because the body comes AFTER everything else in the source code. * + * Instead the correct ordering would be ['id', 'superClass', 'body']. * + * * + ********************************************************************************** + */ +const SharedVisitorKeys = (() => { + const FunctionType = ['typeParameters', 'params', 'returnType']; + const AnonymousFunction = [...FunctionType, 'body']; + const AbstractPropertyDefinition = [ + 'decorators', + 'key', + 'typeAnnotation', + ]; + return { + AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'], + AnonymousFunction, + AsExpression: ['expression', 'typeAnnotation'], + ClassDeclaration: [ + 'decorators', + 'id', + 'typeParameters', + 'superClass', + 'superTypeArguments', + 'implements', + 'body', + ], + Function: ['id', ...AnonymousFunction], + FunctionType, + PropertyDefinition: [...AbstractPropertyDefinition, 'value'], + }; +})(); +const additionalKeys = { + AccessorProperty: SharedVisitorKeys.PropertyDefinition, + ArrayPattern: ['decorators', 'elements', 'typeAnnotation'], + ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction, + AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'], + CallExpression: ['callee', 'typeArguments', 'arguments'], + ClassDeclaration: SharedVisitorKeys.ClassDeclaration, + ClassExpression: SharedVisitorKeys.ClassDeclaration, + Decorator: ['expression'], + ExportAllDeclaration: ['exported', 'source', 'assertions'], + ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'], + FunctionDeclaration: SharedVisitorKeys.Function, + FunctionExpression: SharedVisitorKeys.Function, + Identifier: ['decorators', 'typeAnnotation'], + ImportAttribute: ['key', 'value'], + ImportDeclaration: ['specifiers', 'source', 'assertions'], + ImportExpression: ['source', 'options'], + JSXClosingFragment: [], + JSXOpeningElement: ['name', 'typeArguments', 'attributes'], + JSXOpeningFragment: [], + JSXSpreadChild: ['expression'], + MethodDefinition: ['decorators', 'key', 'value'], + NewExpression: ['callee', 'typeArguments', 'arguments'], + ObjectPattern: ['decorators', 'properties', 'typeAnnotation'], + PropertyDefinition: SharedVisitorKeys.PropertyDefinition, + RestElement: ['decorators', 'argument', 'typeAnnotation'], + StaticBlock: ['body'], + TaggedTemplateExpression: ['tag', 'typeArguments', 'quasi'], + TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition, + TSAbstractKeyword: [], + TSAbstractMethodDefinition: ['key', 'value'], + TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition, + TSAnyKeyword: [], + TSArrayType: ['elementType'], + TSAsExpression: SharedVisitorKeys.AsExpression, + TSAsyncKeyword: [], + TSBigIntKeyword: [], + TSBooleanKeyword: [], + TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSClassImplements: ['expression', 'typeArguments'], + TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'], + TSConstructorType: SharedVisitorKeys.FunctionType, + TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSDeclareFunction: SharedVisitorKeys.Function, + TSDeclareKeyword: [], + TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType], + TSEnumBody: ['members'], + TSEnumDeclaration: ['id', 'body'], + TSEnumMember: ['id', 'initializer'], + TSExportAssignment: ['expression'], + TSExportKeyword: [], + TSExternalModuleReference: ['expression'], + TSFunctionType: SharedVisitorKeys.FunctionType, + TSImportEqualsDeclaration: ['id', 'moduleReference'], + TSImportType: ['argument', 'qualifier', 'typeArguments'], + TSIndexedAccessType: ['indexType', 'objectType'], + TSIndexSignature: ['parameters', 'typeAnnotation'], + TSInferType: ['typeParameter'], + TSInstantiationExpression: ['expression', 'typeArguments'], + TSInterfaceBody: ['body'], + TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'], + TSInterfaceHeritage: ['expression', 'typeArguments'], + TSIntersectionType: ['types'], + TSIntrinsicKeyword: [], + TSLiteralType: ['literal'], + TSMappedType: ['key', 'constraint', 'nameType', 'typeAnnotation'], + TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'], + TSModuleBlock: ['body'], + TSModuleDeclaration: ['id', 'body'], + TSNamedTupleMember: ['label', 'elementType'], + TSNamespaceExportDeclaration: ['id'], + TSNeverKeyword: [], + TSNonNullExpression: ['expression'], + TSNullKeyword: [], + TSNumberKeyword: [], + TSObjectKeyword: [], + TSOptionalType: ['typeAnnotation'], + TSParameterProperty: ['decorators', 'parameter'], + TSPrivateKeyword: [], + TSPropertySignature: ['typeAnnotation', 'key'], + TSProtectedKeyword: [], + TSPublicKeyword: [], + TSQualifiedName: ['left', 'right'], + TSReadonlyKeyword: [], + TSRestType: ['typeAnnotation'], + TSSatisfiesExpression: SharedVisitorKeys.AsExpression, + TSStaticKeyword: [], + TSStringKeyword: [], + TSSymbolKeyword: [], + TSTemplateLiteralType: ['quasis', 'types'], + TSThisType: [], + TSTupleType: ['elementTypes'], + TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'], + TSTypeAnnotation: ['typeAnnotation'], + TSTypeAssertion: ['typeAnnotation', 'expression'], + TSTypeLiteral: ['members'], + TSTypeOperator: ['typeAnnotation'], + TSTypeParameter: ['name', 'constraint', 'default'], + TSTypeParameterDeclaration: ['params'], + TSTypeParameterInstantiation: ['params'], + TSTypePredicate: ['typeAnnotation', 'parameterName'], + TSTypeQuery: ['exprName', 'typeArguments'], + TSTypeReference: ['typeName', 'typeArguments'], + TSUndefinedKeyword: [], + TSUnionType: ['types'], + TSUnknownKeyword: [], + TSVoidKeyword: [], +}; +const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys); +exports.visitorKeys = visitorKeys; +//# sourceMappingURL=visitor-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map new file mode 100644 index 00000000..cb3c0e3b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAyD;AA4GzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;IACzE,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,EAAE,MAAM,CAAU,CAAC;IAC7D,MAAM,0BAA0B,GAAG;QACjC,YAAY;QACZ,KAAK;QACL,gBAAgB;KACR,CAAC;IAEX,OAAO;QACL,0BAA0B,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,gBAAgB,CAAC;QACnE,iBAAiB;QACjB,YAAY,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QAC9C,gBAAgB,EAAE;YAChB,YAAY;YACZ,IAAI;YACJ,gBAAgB;YAChB,YAAY;YACZ,oBAAoB;YACpB,YAAY;YACZ,MAAM;SACP;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC;QACtC,YAAY;QACZ,kBAAkB,EAAE,CAAC,GAAG,0BAA0B,EAAE,OAAO,CAAC;KACpD,CAAC;AACb,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,cAAc,GAAmB;IACrC,gBAAgB,EAAE,iBAAiB,CAAC,kBAAkB;IACtD,YAAY,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,gBAAgB,CAAC;IAC1D,uBAAuB,EAAE,iBAAiB,CAAC,iBA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AAE;IACnB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,qBAAqB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC1C,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,sBAAsB,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;IAClE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;IACpC,eAAe,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACjD,aAAa,EAAE,CAAC,SAAS,CAAC;IAC1B,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC;IAClD,0BAA0B,EAAE,CAAC,QAAQ,CAAC;IACtC,4BAA4B,EAAE,CAAC,QAAQ,CAAC;IACxC,eAAe,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACpD,WAAW,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC1C,eAAe,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC9C,kBAAkB,EAAE,EAAE;IACtB,WAAW,EAAE,CAAC,OAAO,CAAC;IACtB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,WAAW,GAAgB,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAEpE,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/package.json b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/package.json new file mode 100644 index 00000000..7802f774 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys/package.json @@ -0,0 +1,73 @@ +{ + "name": "@typescript-eslint/visitor-keys", + "version": "8.17.0", + "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/visitor-keys" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.17.0", + "eslint-visitor-keys": "^4.2.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/eslint-visitor-keys": "*", + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/LICENSE b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/LICENSE new file mode 100644 index 00000000..17a25538 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/README.md b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/README.md new file mode 100644 index 00000000..3cbbdd39 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/README.md @@ -0,0 +1,120 @@ +# eslint-visitor-keys + +[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys) +[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) + +Constants and utilities about visitor keys to traverse AST. + +## 💿 Installation + +Use [npm] to install. + +```bash +$ npm install eslint-visitor-keys +``` + +### Requirements + +- [Node.js] `^18.18.0`, `^20.9.0`, or `>=21.1.0` + +## 📖 Usage + +To use in an ESM file: + +```js +import * as evk from "eslint-visitor-keys" +``` + +To use in a CommonJS file: + +```js +const evk = require("eslint-visitor-keys") +``` + +### evk.KEYS + +> type: `{ [type: string]: string[] | undefined }` + +Visitor keys. This keys are frozen. + +This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes. + +For example: + +``` +console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"] +``` + +### evk.getKeys(node) + +> type: `(node: object) => string[]` + +Get the visitor keys of a given AST node. + +This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`. + +This will be used to traverse unknown nodes. + +For example: + +```js +const node = { + type: "AssignmentExpression", + left: { type: "Identifier", name: "foo" }, + right: { type: "Literal", value: 0 } +} +console.log(evk.getKeys(node)) // → ["type", "left", "right"] +``` + +### evk.unionWith(additionalKeys) + +> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }` + +Make the union set with `evk.KEYS` and the given keys. + +- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that. +- It removes duplicated keys as keeping the first one. + +For example: + +```js +console.log(evk.unionWith({ + MethodDefinition: ["decorators"] +})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... } +``` + +## 📰 Change log + +See [GitHub releases](https://github.com/eslint/js/releases). + +## 🍻 Contributing + +Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/). + +### Development commands + +- `npm test` runs tests and measures code coverage. +- `npm run lint` checks source codes with ESLint. +- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. + +[npm]: https://www.npmjs.com/ +[Node.js]: https://nodejs.org/ +[ESTree]: https://github.com/estree/estree + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs new file mode 100644 index 00000000..7f58e49b --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs @@ -0,0 +1,396 @@ +'use strict'; + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +exports.KEYS = KEYS; +exports.getKeys = getKeys; +exports.unionWith = unionWith; diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts new file mode 100644 index 00000000..a8684341 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts @@ -0,0 +1,27 @@ +type VisitorKeys$1 = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys$1; + +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +declare function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys; + +type VisitorKeys = VisitorKeys$1; + +export { KEYS, type VisitorKeys, getKeys, unionWith }; diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..e65b7da3 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/index.d.ts @@ -0,0 +1,16 @@ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys: VisitorKeys): VisitorKeys; +export { KEYS }; +export type VisitorKeys = import("./visitor-keys.js").VisitorKeys; +import KEYS from "./visitor-keys.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..2d7ada2f --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,12 @@ +export default KEYS; +export type VisitorKeys = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/index.js new file mode 100644 index 00000000..1fc89b43 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/index.js @@ -0,0 +1,67 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +import KEYS from "./visitor-keys.js"; + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +export { KEYS }; diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/visitor-keys.js new file mode 100644 index 00000000..41feb4b2 --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/lib/visitor-keys.js @@ -0,0 +1,327 @@ +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +export default KEYS; diff --git a/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/package.json b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/package.json new file mode 100644 index 00000000..4dc2123d --- /dev/null +++ b/node_modules/@typescript-eslint/parser/node_modules/eslint-visitor-keys/package.json @@ -0,0 +1,67 @@ +{ + "name": "eslint-visitor-keys", + "version": "4.2.0", + "description": "Constants and utilities about visitor keys to traverse AST.", + "type": "module", + "main": "dist/eslint-visitor-keys.cjs", + "types": "./dist/index.d.ts", + "exports": { + ".": [ + { + "import": "./lib/index.js", + "require": "./dist/eslint-visitor-keys.cjs" + }, + "./dist/eslint-visitor-keys.cjs" + ], + "./package.json": "./package.json" + }, + "files": [ + "dist/index.d.ts", + "dist/visitor-keys.d.ts", + "dist/eslint-visitor-keys.cjs", + "dist/eslint-visitor-keys.d.cts", + "lib" + ], + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "devDependencies": { + "@types/estree": "^0.0.51", + "@types/estree-jsx": "^0.0.1", + "@typescript-eslint/parser": "^8.7.0", + "c8": "^7.11.0", + "chai": "^4.3.6", + "eslint-release": "^3.2.0", + "esquery": "^1.4.0", + "json-diff": "^0.7.3", + "mocha": "^9.2.1", + "opener": "^1.5.2", + "rollup": "^4.22.4", + "rollup-plugin-dts": "^6.1.1", + "tsd": "^0.31.2", + "typescript": "^5.6.2" + }, + "scripts": { + "build": "npm run build:cjs && npm run build:types", + "build:cjs": "rollup -c", + "build:debug": "npm run build:cjs -- -m && npm run build:types", + "build:types": "tsc -v && tsc", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", + "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", + "test:types": "tsd" + }, + "repository": "eslint/js", + "funding": "https://opencollective.com/eslint", + "keywords": [], + "author": "Toru Nagashima (https://github.com/mysticatea)", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/js/issues" + }, + "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md" +} diff --git a/node_modules/@typescript-eslint/parser/package.json b/node_modules/@typescript-eslint/parser/package.json index a0eab123..b34af1ea 100644 --- a/node_modules/@typescript-eslint/parser/package.json +++ b/node_modules/@typescript-eslint/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "8.15.0", + "version": "8.17.0", "description": "An ESLint custom parser which leverages TypeScript ESTree", "files": [ "dist", @@ -52,10 +52,10 @@ "eslint": "^8.57.0 || ^9.0.0" }, "dependencies": { - "@typescript-eslint/scope-manager": "8.15.0", - "@typescript-eslint/types": "8.15.0", - "@typescript-eslint/typescript-estree": "8.15.0", - "@typescript-eslint/visitor-keys": "8.15.0", + "@typescript-eslint/scope-manager": "8.17.0", + "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/typescript-estree": "8.17.0", + "@typescript-eslint/visitor-keys": "8.17.0", "debug": "^4.3.4" }, "devDependencies": { diff --git a/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js b/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js index b373535a..a5049708 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +++ b/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.typeMatchesSomeSpecifier = exports.typeOrValueSpecifiersSchema = void 0; exports.typeMatchesSpecifier = typeMatchesSpecifier; diff --git a/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map b/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map index af99bc18..3b64aecb 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map @@ -1 +1 @@ -{"version":3,"file":"TypeOrValueSpecifier.js","sourceRoot":"","sources":["../src/Type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,MAAM;YACT,OAAO,IAAA,uCAAkB,EAAC,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACvE,KAAK,KAAK;YACR,OAAO,IAAA,qCAAiB,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACtD,KAAK,SAAS;YACZ,OAAO,IAAA,2EAAoC,EACzC,SAAS,CAAC,OAAO,EACjB,YAAY,EACZ,gBAAgB,EAChB,OAAO,CACR,CAAC;IACN,CAAC;AACH,CAAC;AAEM,MAAM,wBAAwB,GAAG,CACtC,IAAa,EACb,aAAqC,EAAE,EACvC,OAAmB,EACV,EAAE,CACX,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AALlE,QAAA,wBAAwB,4BAK0C"} \ No newline at end of file +{"version":3,"file":"TypeOrValueSpecifier.js","sourceRoot":"","sources":["../src/TypeOrValueSpecifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoKA,oDAgCC;AAjMD,sDAAwC;AAExC,uFAAoF;AACpF,mFAAgF;AAChF,iFAA8E;AAC9E,uHAAoH;AA6DvG,QAAA,2BAA2B,GAAG;IACzC,KAAK,EAAE;QACL,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,CAAC,MAAM,CAAC;wBACd,IAAI,EAAE,QAAQ;qBACf;oBACD,IAAI,EAAE;wBACJ,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,QAAQ;6BACf;4BACD;gCACE,KAAK,EAAE;oCACL,IAAI,EAAE,QAAQ;iCACf;gCACD,QAAQ,EAAE,CAAC;gCACX,IAAI,EAAE,OAAO;gCACb,WAAW,EAAE,IAAI;6BAClB;yBACF;qBACF;oB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escript-eslint/type-utils/dist/builtinSymbolLikes.js index 799eaf1f..fc91f7ac 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +++ b/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.isPromiseLike = isPromiseLike; exports.isPromiseConstructorLike = isPromiseConstructorLike; diff --git a/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map b/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map index 74be617b..a858bb39 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map @@ -1 +1 @@ -{"version":3,"file":"builtinSymbolLikes.js","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAaA,sCAEC;AAUD,4DAKC;AAUD,kCAEC;AASD,kDAWC;AASD,gDAeC;AACD,wDA+BC;AAED,kDAwBC;AAED,kEA4CC;AA9LD,s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AC,CACnD,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAC1B,2BAA2B,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,CACnD,CAAC;IACJ,CAAC;IACD,6DAA6D;IAC7D,IAAK,OAAO,CAAC,eAA8C,CAAC,IAAI,CAAC,EAAE,CAAC;QAClE,MAAM,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAE/B,IAAI,CAAC,EAAE,CAAC;YACN,OAAO,2BAA2B,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,OAAO,eAAe,KAAK,SAAS,EAAE,CAAC;QACzC,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IACE,MAAM;QACN,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,EAChE,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QACzC,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,IAAwB,CAAC,EAAE,CAAC;YACtE,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"builtinSymbolLikes.js","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":";;;;;;;;;;;;;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ACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js index fef4efd7..9e431a10 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +++ b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.containsAllTypesByName = containsAllTypesByName; const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map index ec246df9..7a3071c5 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map @@ -1 +1 @@ -{"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wDAoCC;AAhDD,sD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\ No newline at end of file +{"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wDAoCC;AAhDD,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,IAAa,EACb,QAAiB,EACjB,YAAyB,EACzB,eAAe,GAAG,KAAK;IAEvB,IAAI,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACjE,OAAO,CAAC,QAAQ,CAAC;IACnB,CAAC;IAED,IAAI,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IAAI,MAAM,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,CAAC,CAAU,EAAW,EAAE,CACxC,sBAAsB,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;IAErE,IAAI,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,eAAe;YACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YAC5B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAElC,OAAO,CACL,KAAK,KAAK,SAAS;QACnB,CAAC,eAAe;YACd,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js index 70bb3add..0097e037 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +++ b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.getContextualType = getContextualType; const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map index 1f789c0e..245d31c1 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map @@ -1 +1 @@ -{"version":3,"file":"getContextualType.js","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":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AAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;SAAM,IACL,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD,CAAC;QACD,oEAAoE;QACpE,OAAO;IACT,CAAC;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file +{"version":3,"file":"getContextualType.js","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,8CA2CC;AAlDD,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,OAAuB,EACvB,IAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAE3B,IAAI,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9D,IAAI,IAAI,KAAK,MAAM,CAAC,UAAU,EAAE,CAAC;YAC/B,2CAA2C;YAC3C,OAAO;QACT,CAAC;IACH,CAAC;SAAM,IACL,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC;QAChC,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC;QAChC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EACtB,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,CAAC;SAAM,IAAI,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;SAAM,IACL,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;QACrB,CAAC,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC;YAC9B,EAAE,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC,EAC3C,CAAC;QACD,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;SAAM,IACL,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC;QAC7B,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW;QACvD,MAAM,CAAC,KAAK,KAAK,IAAI,EACrB,CAAC;QACD,uBAAuB;QACvB,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;SAAM,IACL,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD,CAAC;QACD,oEAAoE;QACpE,OAAO;IACT,CAAC;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js index bbb0fc6f..58d32407 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +++ b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.getSourceFileOfNode = getSourceFileOfNode; const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map index ba485902..5847405f 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map @@ -1 +1 @@ -{"version":3,"file":"getSourceFileOfNode.js","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kDAKC;AAVD,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAa;IAC/C,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,IAAqB,CAAC;AAC/B,CAAC"} \ No newline at end of file +{"version":3,"file":"getSourceFileOfNode.js","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kDAKC;AAVD,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAa;IAC/C,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,IAAqB,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js index 857e58d7..aed6d58d 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +++ b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.getTypeName = getTypeName; const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map index ec5c5047..7d112809 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map @@ -1 +1 @@ -{"version":3,"file":"getTypeName.js","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,kCAwDC;AA/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qEAAqE;IACrE,gCAAgC;IAChC,2BAA2B;IAC3B,uCAAuC;IACvC,IACE,IAAI,CAAC,OAAO,EAAE;QACd,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC7B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,0EAA0E;IAC1E,uEAAuE;IACvE,IACE,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC5B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js index 65e07cb7..8a691095 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +++ b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0; exports.isTypeReadonly = isTypeReadonly; diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map index b8771a40..0d0faf02 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map @@ -1 +1 @@ -{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwVS,wCAAc;AAtVvB,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAIjC,mDAA0D;AAC1D,iEAGgC;AAgBnB,QAAA,yBAAyB,GAAG;IACvC,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE,kDAA2B;QAClC,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;IACD,IAAI,EAAE,QAAQ;CACO,CAAC;AAEX,QAAA,2BAA2B,GAAwB;IAC9D,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAmB,EACnB,IAAa,EACb,OAA4B,EAC5B,SAAuB;IAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,SA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AO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,qCAA6B,EAAE,CAAC;QACjD,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAmB,EACnB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwVS,wCAAc;AAtVvB,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAIjC,mDAA0D;AAC1D,iEAGgC;AAgBnB,QAAA,yBAAyB,GAAG;IACvC,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE,kDAA2B;QAClC,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;IACD,IAAI,EAAE,QAAQ;CACO,CAAC;AAEX,QAAA,2BAA2B,GAAwB;IAC9D,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAmB,EACnB,IAAa,EACb,OAA4B,EAC5B,SAAuB;IAEv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,MAAM,eAAe,GAAG,0BAA0B,CAChD,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,qCAA6B,EAAE,CAAC;QACjD,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAmB,EACnB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js index 629798d9..e5979ead 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +++ b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.isUnsafeAssignment = isUnsafeAssignment; const utils_1 = require("@typescript-eslint/utils"); diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map index 16f0c705..eb34db2e 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map @@ -1 +1 @@ -{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,gDAaC;AA5BD,oDAA0D;AAC1D,sDAAwC;AAExC,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;IAEhC,OAAO,wBAAwB,CAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,UAAU,EACV,IAAI,GAAG,EAAE,CACV,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC,EAChC,OAAmC;IAEnC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACxB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CAAC,IAAA,0BAAa,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;IAED,MAA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D,MAAM,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,wBAAwB,CACrC,GAAG,EACH,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,CACR,CAAC;YACF,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,gDAaC;AA5BD,oDAA0D;AAC1D,sDAAwC;AAExC,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;IAEhC,OAAO,wBAAwB,CAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,UAAU,EACV,IAAI,GAAG,EAAE,CACV,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC,EAChC,OAAmC;IAEnC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACxB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CAAC,IAAA,0BAAa,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC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AAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,wBAAwB,CACrC,GAAG,EACH,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,CACR,CAAC;YACF,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js b/node_modules/@typescript-eslint/type-utils/dist/predicates.js index 26437ee3..7c7d1a3f 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js +++ b/node_modules/@typescript-eslint/type-utils/dist/predicates.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map b/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map index 3682ad72..954c6f91 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map @@ -1 +1 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCASC;AAMD,gFAWC;AAKD,0CAEC;AAKD,8CAEC;AAYD,kDAMC;AAKD,sCAQC;AAKD,gDAQC;AAKD,wDAQC;AAYD,kDA8BC;AAKD,kDAwBC;AAED,0DAIC;AAED,8DAIC;AA/LD,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAa;IAC1C,OAAO,IAAA,6BAAa,EAClB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;QACd,EAAE,CAAC,SAAS,CAAC,OAAO;QACpB,EAAE,CAAC,SAAS,CAAC,IAAI;QACjB,EAAE,CAAC,SAAS,CAAC,SAAS;QACtB,EAAE,CAAC,SAAS,CAAC,IAAI,CACpB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,kCAAkC,CAChD,IAAa,EACb,OAAuB;IAEvB,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAa;IAC3C,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,SAAgB,iBA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AAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAa,EACb,UAAmB;IAEnB,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;IAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAE1C,IAAI,aAAa,EAAE,CAAC;QAClB,gBAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,CAAC;YACxD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCASC;AAMD,gFAWC;AAKD,0CAEC;AAKD,8CAEC;AAYD,kDAMC;AAKD,sCAQC;AAKD,gDAQC;AAKD,wDAQC;AAYD,kDA8BC;AAKD,kDAwBC;AAED,0DAIC;AAED,8DAIC;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BAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,CAAC;YACxD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js index 8040c043..03e37ce2 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +++ b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.requiresQuoting = requiresQuoting; const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map index e1af80c7..3ed6242d 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map @@ -1 +1 @@ -{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBS,0CAAe;AAvBxB,+CAAiC;AACjC,8HAA8H;AAC9H,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBS,0CAAe;AAvBxB,+CAAiC;AACjC,8HAA8H;AAC9H,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js index fc581201..af134eb1 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +++ b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.getTypeFlags = getTypeFlags; exports.isTypeFlagSet = isTypeFlagSet; diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map index b4eb91fa..14c048f3 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oCAOC;AAWD,sCAcC;AAxCD,sDAAwC;AACxC,+CAAiC;AAEjC,MAAM,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;AAE/D;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B;AAC1B,4EAA4E;AAC5E,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,wEAAwE;IACxE,IAAI,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file +{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oCAOC;AAWD,sCAcC;AAxCD,sDAAwC;AACxC,+CAAiC;AAEjC,MAAM,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;AAE/D;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B;AAC1B,4EAA4E;AAC5E,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,wEAAwE;IACxE,IAAI,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js index 0f28f956..ec373003 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +++ b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.specifierNameMatches = specifierNameMatches; const tsutils = __importStar(require("ts-api-utils")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map index af1e0734..37726a7a 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map @@ -1 +1 @@ -{"version":3,"file":"specifierNameMatches.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAsBC;AAxBD,sDAAwC;AAExC,SAAgB,oBAAoB,CAClC,IAAa,EACb,KAAwB;IAExB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACpD,MAAM,cAAc,GAAG,MAAM;QAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,WAAqB,EAAE,IAAI,CAAC,aAAa,CAAC;QACpD,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEzB,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"specifierNameMatches.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAsBC;AAxBD,sDAAwC;AAExC,SAAgB,oBAAoB,CAClC,IAAa,EACb,KAAwB;IAExB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACpD,MAAM,cAAc,GAAG,MAAM;QAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,WAAqB,EAAE,IAAI,CAAC,aAAa,CAAC;QACpD,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEzB,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js index 0e821b49..671f0b5f 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +++ b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js @@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); exports.typeDeclaredInPackageDeclarationFile = typeDeclaredInPackageDeclarationFile; const ts = __importStar(require("typescript")); diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map index 27eee78a..2f5d73cf 100644 --- a/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map +++ b/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map @@ -1 +1 @@ -{"version":3,"file":"typeDeclaredInPackageDeclarationFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,oFAUC;AAxDD,+CAAiC;AAEjC,SAAS,2BAA2B,CAClC,IAAa;IAEb,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB;YAClC,OAAO,EAAE,CAAC,eAAe,CAAE,IAA6B,CAAC,IAAI,CAAC;gBAC5D,CAAC,CAAE,IAA6B;gBAChC,CAAC,CAAC,SAAS,CAAC;QAChB,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;YAC3B,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAClC,WAAmB,EACnB,YAAuB;IAEvB,OAAO,YAAY,CAAC,IAAI,CACtB,WAAW,CAAC,EAAE,CACZ,2BAA2B,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW,CACtE,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CACpC,WAAmB,EACnB,gBAAiC,EACjC,OAAmB;IAEnB,qFAAqF;IACrF,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEpE,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,WAAW,IAAI,gBAAgB,EAAE,CAAC,CAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QACzC,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CACL,aAAa,KAAK,SAAS;YAC3B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;YAC3B,OAAO,CAAC,+BAA+B,CAAC,WAAW,CAAC,CACrD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,oCAAoC,CAClD,WAAmB,EACnB,YAAuB,EACvB,gBAAiC,EACjC,OAAmB;IAEnB,OAAO,CACL,2BAA2B,CAAC,WAAW,EAAE,YAAY,CAAC;QACtD,6BAA6B,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACtE,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"typeDeclaredInPackageDeclarationFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,oFAUC;AAxDD,+CAAiC;AAEjC,SAAS,2BAA2B,CAClC,IAAa;IAEb,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB;YAClC,OAAO,EAAE,CAAC,eAAe,CAAE,IAA6B,CAAC,IAAI,CAAC;gBAC5D,CAAC,CAAE,IAA6B;gBAChC,CAAC,CAAC,SAAS,CAAC;QAChB,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;YAC3B,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAClC,WAAmB,EACnB,YAAuB;IAEvB,OAAO,YAAY,CAAC,IAAI,CACtB,WAAW,CAAC,EAAE,CACZ,2BAA2B,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW,CACtE,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CACpC,WAAmB,EACnB,gBAAiC,EACjC,OAAmB;IAEnB,qFAAqF;IACrF,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEpE,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,WAAW,IAAI,gBAAgB,EAAE,CAAC,CAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QACzC,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CACL,aAAa,KAAK,SAAS;YAC3B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;YAC3B,OAAO,CAAC,+BAA+B,CAAC,WAAW,CAAC,CACrD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,oCAAoC,CAClD,WAAmB,EACnB,YAAuB,EACvB,gBAAiC,EACjC,OAAmB;IAEnB,OAAO,CACL,2BAA2B,CAAC,WAAW,EAAE,YAAY,CAAC;QACtD,6BAA6B,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACtE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/README.md new file mode 100644 index 00000000..b730e9d8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/scope-manager` + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) + +👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts new file mode 100644 index 00000000..679109f2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts @@ -0,0 +1,4 @@ +declare function createIdGenerator(): () => number; +declare function resetIds(): void; +export { createIdGenerator, resetIds }; +//# sourceMappingURL=ID.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map new file mode 100644 index 00000000..2c9c0fd0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js new file mode 100644 index 00000000..de2f32af --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIdGenerator = createIdGenerator; +exports.resetIds = resetIds; +const ID_CACHE = new Map(); +let NEXT_KEY = 0; +function createIdGenerator() { + const key = (NEXT_KEY += 1); + ID_CACHE.set(key, 0); + return () => { + const current = ID_CACHE.get(key) ?? 0; + const next = current + 1; + ID_CACHE.set(key, next); + return next; + }; +} +function resetIds() { + ID_CACHE.clear(); +} +//# sourceMappingURL=ID.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map new file mode 100644 index 00000000..e880ddeb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;AAmBS,8CAAiB;AAAE,4BAAQ;AAnBpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;QAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts new file mode 100644 index 00000000..f745bfb7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts @@ -0,0 +1,72 @@ +import type { SourceType, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from './scope'; +import type { Variable } from './variable'; +import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope'; +import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope'; +import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope'; +interface ScopeManagerOptions { + globalReturn?: boolean; + impliedStrict?: boolean; + sourceType?: SourceType; +} +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +declare class ScopeManager { + #private; + currentScope: Scope | null; + readonly declaredVariables: WeakMap; + /** + * The root scope + */ + globalScope: GlobalScope | null; + readonly nodeToScope: WeakMap; + /** + * All scopes + * @public + */ + readonly scopes: Scope[]; + constructor(options: ScopeManagerOptions); + isES6(): boolean; + isGlobalReturn(): boolean; + isImpliedStrict(): boolean; + isModule(): boolean; + isStrictModeSupported(): boolean; + get variables(): Variable[]; + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node: TSESTree.Node): Variable[]; + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node: TSESTree.Node, inner?: boolean): Scope | null; + nestBlockScope(node: BlockScope['block']): BlockScope; + nestCatchScope(node: CatchScope['block']): CatchScope; + nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope; + nestClassScope(node: ClassScope['block']): ClassScope; + nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope; + nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope; + nestForScope(node: ForScope['block']): ForScope; + nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope; + nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope; + nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope; + nestGlobalScope(node: GlobalScope['block']): GlobalScope; + nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope; + nestModuleScope(node: ModuleScope['block']): ModuleScope; + nestSwitchScope(node: SwitchScope['block']): SwitchScope; + nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope; + nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope; + nestTypeScope(node: TypeScope['block']): TypeScope; + nestWithScope(node: WithScope['block']): WithScope; + protected nestScope(scope: T): T; +} +export { ScopeManager }; +//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map new file mode 100644 index 00000000..a9493652 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,E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AK,EAAE,CAAC,GAAG,CAAC;CASlD;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js new file mode 100644 index 00000000..3cf4eab9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = void 0; +const assert_1 = require("./assert"); +const scope_1 = require("./scope"); +const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope"); +const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope"); +/** + * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface + */ +class ScopeManager { + #options; + currentScope; + declaredVariables; + /** + * The root scope + */ + globalScope; + nodeToScope; + /** + * All scopes + * @public + */ + scopes; + constructor(options) { + this.scopes = []; + this.globalScope = null; + this.nodeToScope = new WeakMap(); + this.currentScope = null; + this.#options = options; + this.declaredVariables = new WeakMap(); + } + isES6() { + return true; + } + isGlobalReturn() { + return this.#options.globalReturn === true; + } + isImpliedStrict() { + return this.#options.impliedStrict === true; + } + isModule() { + return this.#options.sourceType === 'module'; + } + isStrictModeSupported() { + return true; + } + get variables() { + const variables = new Set(); + function recurse(scope) { + scope.variables.forEach(v => variables.add(v)); + scope.childScopes.forEach(recurse); + } + this.scopes.forEach(recurse); + return [...variables].sort((a, b) => a.$id - b.$id); + } + /** + * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. + * If the node does not define any variable, this returns an empty array. + * @param node An AST node to get their variables. + */ + getDeclaredVariables(node) { + return this.declaredVariables.get(node) ?? []; + } + /** + * Get the scope of a given AST node. The gotten scope's `block` property is the node. + * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. + * + * @param node An AST node to get their scope. + * @param inner If the node has multiple scopes, this returns the outermost scope normally. + * If `inner` is `true` then this returns the innermost scope. + */ + acquire(node, inner = false) { + function predicate(testScope) { + if (testScope.type === scope_1.ScopeType.function && + testScope.functionExpressionScope) { + return false; + } + return true; + } + const scopes = this.nodeToScope.get(node); + if (!scopes || scopes.length === 0) { + return null; + } + // Heuristic selection from all scopes. + // If you would like to get all scopes, please use ScopeManager#acquireAll. + if (scopes.length === 1) { + return scopes[0]; + } + if (inner) { + for (let i = scopes.length - 1; i >= 0; --i) { + const scope = scopes[i]; + if (predicate(scope)) { + return scope; + } + } + return null; + } + return scopes.find(predicate) ?? null; + } + nestBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node)); + } + nestCatchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node)); + } + nestClassFieldInitializerScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node)); + } + nestClassScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node)); + } + nestClassStaticBlockScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node)); + } + nestConditionalTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node)); + } + nestForScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ForScope(this, this.currentScope, node)); + } + nestFunctionExpressionNameScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node)); + } + nestFunctionScope(node, isMethodDefinition) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition)); + } + nestFunctionTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node)); + } + nestGlobalScope(node) { + return this.nestScope(new scope_1.GlobalScope(this, node)); + } + nestMappedTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node)); + } + nestModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node)); + } + nestSwitchScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node)); + } + nestTSEnumScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node)); + } + nestTSModuleScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node)); + } + nestTypeScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node)); + } + nestWithScope(node) { + (0, assert_1.assert)(this.currentScope); + return this.nestScope(new scope_1.WithScope(this, this.currentScope, node)); + } + nestScope(scope) { + if (scope instanceof scope_1.GlobalScope) { + (0, assert_1.assert)(this.currentScope == null); + this.globalScope = scope; + } + this.currentScope = scope; + return scope; + } +} +exports.ScopeManager = ScopeManager; +//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map new file mode 100644 index 00000000..ab9bb2f9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":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AAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAKS,SAAS,CAAC,KAAY;QAC9B,IAAI,KAAK,YAAY,mBAAW,EAAE,CAAC;YACjC,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts new file mode 100644 index 00000000..3cbb7805 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts @@ -0,0 +1,55 @@ +import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types'; +import type { ReferencerOptions } from './referencer'; +import { ScopeManager } from './ScopeManager'; +interface AnalyzeOptions { + /** + * Known visitor keys. + */ + childVisitorKeys?: ReferencerOptions['childVisitorKeys']; + /** + * Whether the whole script is executed under node.js environment. + * When enabled, the scope manager adds a function scope immediately following the global scope. + * Defaults to `false`. + */ + globalReturn?: boolean; + /** + * Implied strict mode. + * Defaults to `false`. + */ + impliedStrict?: boolean; + /** + * The identifier that's used for JSX Element creation (after transpilation). + * This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement"). + * Defaults to `"React"`. + */ + jsxPragma?: string | null; + /** + * The identifier that's used for JSX fragment elements (after transpilation). + * If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment). + * This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment"). + * Defaults to `null`. + */ + jsxFragmentName?: string | null; + /** + * The lib used by the project. + * This automatically defines a type variable for any types provided by the configured TS libs. + * Defaults to ['esnext']. + * + * https://www.typescriptlang.org/tsconfig#lib + */ + lib?: Lib[]; + /** + * The source type of the script. + */ + sourceType?: SourceType; + /** + * @deprecated This option never did what it was intended for and will be removed in a future major release. + */ + emitDecoratorMetadata?: boolean; +} +/** + * Takes an AST and returns the analyzed scopes. + */ +declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager; +export { analyze, type AnalyzeOptions }; +//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map new file mode 100644 index 00000000..e4848bf5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA2Bd;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js new file mode 100644 index 00000000..c6edf6b8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.analyze = analyze; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +const referencer_1 = require("./referencer"); +const ScopeManager_1 = require("./ScopeManager"); +const DEFAULT_OPTIONS = { + childVisitorKeys: visitor_keys_1.visitorKeys, + emitDecoratorMetadata: false, + globalReturn: false, + impliedStrict: false, + jsxFragmentName: null, + jsxPragma: 'React', + lib: ['es2018'], + sourceType: 'script', +}; +/** + * Takes an AST and returns the analyzed scopes. + */ +function analyze(tree, providedOptions) { + const options = { + childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys, + emitDecoratorMetadata: false, + globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn, + impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict, + jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName, + jsxPragma: providedOptions?.jsxPragma === undefined + ? DEFAULT_OPTIONS.jsxPragma + : providedOptions.jsxPragma, + lib: providedOptions?.lib ?? ['esnext'], + sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType, + }; + // ensure the option is lower cased + options.lib = options.lib.map(l => l.toLowerCase()); + const scopeManager = new ScopeManager_1.ScopeManager(options); + const referencer = new referencer_1.Referencer(options, scopeManager); + referencer.visit(tree); + return scopeManager; +} +//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map new file mode 100644 index 00000000..c51a9df8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map @@ -0,0 +1 @@ +{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;AAkHS,0BAAO;AAhHhB,kEAA8D;AAI9D,6CAA0C;AAC1C,iDAA8C;AA6D9C,MAAM,eAAe,GAA6B;IAChD,gBAAgB,EAAE,0BAAW;IAC7B,qBAAqB,EAAE,KAAK;IAC5B,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,OAAO;IAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF;;GAEG;AACH,SAAS,OAAO,CACd,IAAmB,EACnB,eAAgC;IAEhC,MAAM,OAAO,GAA6B;QACxC,gBAAgB,EACd,eAAe,EAAE,gBAAgB,IAAI,eAAe,CAAC,gBAAgB;QACvE,qBAAqB,EAAE,KAAK;QAC5B,YAAY,EAAE,eAAe,EAAE,YAAY,IAAI,eAAe,CAAC,YAAY;QAC3E,aAAa,EACX,eAAe,EAAE,aAAa,IAAI,eAAe,CAAC,aAAa;QACjE,eAAe,EACb,eAAe,EAAE,eAAe,IAAI,eAAe,CAAC,eAAe;QACrE,SAAS,EACP,eAAe,EAAE,SAAS,KAAK,SAAS;YACtC,CAAC,CAAC,eAAe,CAAC,SAAS;YAC3B,CAAC,CAAC,eAAe,CAAC,SAAS;QAC/B,GAAG,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QACvC,UAAU,EAAE,eAAe,EAAE,UAAU,IAAI,eAAe,CAAC,UAAU;KACtE,CAAC;IAEF,mCAAmC;IACnC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAS,CAAC,CAAC;IAE3D,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEzD,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts new file mode 100644 index 00000000..bd40c9e2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts @@ -0,0 +1,3 @@ +declare function assert(value: unknown, message?: string): asserts value; +export { assert }; +//# sourceMappingURL=assert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map new file mode 100644 index 00000000..72f278dd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js new file mode 100644 index 00000000..a6dd9463 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.assert = assert; +// the base assert module doesn't use ts assertion syntax +function assert(value, message) { + if (value == null) { + throw new Error(message); + } +} +//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map new file mode 100644 index 00000000..6ea63863 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;AAOS,wBAAM;AAPf,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts new file mode 100644 index 00000000..7fde46bd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class CatchClauseDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']); +} +export { CatchClauseDefinition }; +//# sourceMappingURL=CatchClauseDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map new file mode 100644 index 00000000..41af006e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js new file mode 100644 index 00000000..f295da21 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchClauseDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.CatchClause, name, node, null); + } +} +exports.CatchClauseDefinition = CatchClauseDefinition; +//# sourceMappingURL=CatchClauseDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map new file mode 100644 index 00000000..e86f2712 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts new file mode 100644 index 00000000..507ba646 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ClassNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']); +} +export { ClassNameDefinition }; +//# sourceMappingURL=ClassNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map new file mode 100644 index 00000000..f90e30b4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;CAGzE;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js new file mode 100644 index 00000000..32e41b81 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ClassNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ClassName, name, node, null); + } +} +exports.ClassNameDefinition = ClassNameDefinition; +//# sourceMappingURL=ClassNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map new file mode 100644 index 00000000..75f3c2e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts new file mode 100644 index 00000000..41329f32 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts @@ -0,0 +1,14 @@ +import type { CatchClauseDefinition } from './CatchClauseDefinition'; +import type { ClassNameDefinition } from './ClassNameDefinition'; +import type { FunctionNameDefinition } from './FunctionNameDefinition'; +import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition'; +import type { ImportBindingDefinition } from './ImportBindingDefinition'; +import type { ParameterDefinition } from './ParameterDefinition'; +import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition'; +import type { TSEnumNameDefinition } from './TSEnumNameDefinition'; +import type { TSModuleNameDefinition } from './TSModuleNameDefinition'; +import type { TypeDefinition } from './TypeDefinition'; +import type { VariableDefinition } from './VariableDefinition'; +type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition; +export type { Definition }; +//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map new file mode 100644 index 00000000..98d0799a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js new file mode 100644 index 00000000..0d4aab95 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map new file mode 100644 index 00000000..be4a7fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts new file mode 100644 index 00000000..962ffed4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts @@ -0,0 +1,35 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { DefinitionType } from './DefinitionType'; +declare abstract class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + readonly type: Type; + /** + * The `Identifier` node of this definition + * @public + */ + readonly name: Name; + /** + * The enclosing node of the name. + * @public + */ + readonly node: Node; + /** + * the enclosing statement node of the identifier. + * @public + */ + readonly parent: Parent; + constructor(type: Type, name: Name, node: Node, parent: Parent); + /** + * `true` if the variable is valid in a type context, false otherwise + */ + abstract readonly isTypeDefinition: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + abstract readonly isVariableDefinition: boolean; +} +export { DefinitionBase }; +//# sourceMappingURL=DefinitionBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map new file mode 100644 index 00000000..ef27cc62 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,uBAAe,cAAc,CAC3B,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js new file mode 100644 index 00000000..41c74847 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class DefinitionBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + type; + /** + * The `Identifier` node of this definition + * @public + */ + name; + /** + * The enclosing node of the name. + * @public + */ + node; + /** + * the enclosing statement node of the identifier. + * @public + */ + parent; + constructor(type, name, node, parent) { + this.type = type; + this.name = name; + this.node = node; + this.parent = parent; + } +} +exports.DefinitionBase = DefinitionBase; +//# sourceMappingURL=DefinitionBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map new file mode 100644 index 00000000..9a620a89 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAIA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAM3B;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1B,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,MAAM,CAAS;IAE/B,YAAY,IAAU,EAAE,IAAU,EAAE,IAAU,EAAE,MAAc;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts new file mode 100644 index 00000000..d86220d8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts @@ -0,0 +1,15 @@ +declare enum DefinitionType { + CatchClause = "CatchClause", + ClassName = "ClassName", + FunctionName = "FunctionName", + ImplicitGlobalVariable = "ImplicitGlobalVariable", + ImportBinding = "ImportBinding", + Parameter = "Parameter", + TSEnumName = "TSEnumName", + TSEnumMember = "TSEnumMemberName", + TSModuleName = "TSModuleName", + Type = "Type", + Variable = "Variable" +} +export { DefinitionType }; +//# sourceMappingURL=DefinitionType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map new file mode 100644 index 00000000..c3614a6b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js new file mode 100644 index 00000000..07cc9afa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefinitionType = void 0; +var DefinitionType; +(function (DefinitionType) { + DefinitionType["CatchClause"] = "CatchClause"; + DefinitionType["ClassName"] = "ClassName"; + DefinitionType["FunctionName"] = "FunctionName"; + DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable"; + DefinitionType["ImportBinding"] = "ImportBinding"; + DefinitionType["Parameter"] = "Parameter"; + DefinitionType["TSEnumName"] = "TSEnumName"; + DefinitionType["TSEnumMember"] = "TSEnumMemberName"; + DefinitionType["TSModuleName"] = "TSModuleName"; + DefinitionType["Type"] = "Type"; + DefinitionType["Variable"] = "Variable"; +})(DefinitionType || (exports.DefinitionType = DefinitionType = {})); +//# sourceMappingURL=DefinitionType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map new file mode 100644 index 00000000..042fd302 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts new file mode 100644 index 00000000..3561fb29 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class FunctionNameDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']); +} +export { FunctionNameDefinition }; +//# sourceMappingURL=FunctionNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map new file mode 100644 index 00000000..7a955a55 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js new file mode 100644 index 00000000..1e14b4cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.FunctionName, name, node, null); + } +} +exports.FunctionNameDefinition = FunctionNameDefinition; +//# sourceMappingURL=FunctionNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map new file mode 100644 index 00000000..5a839e8f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts new file mode 100644 index 00000000..237f7727 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImplicitGlobalVariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']); +} +export { ImplicitGlobalVariableDefinition }; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map new file mode 100644 index 00000000..054541f7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAIjD;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js new file mode 100644 index 00000000..557074bc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitGlobalVariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null); + } +} +exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition; +//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map new file mode 100644 index 00000000..17dd5256 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,4EAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts new file mode 100644 index 00000000..7a5c4563 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ImportBindingDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration); + constructor(name: TSESTree.Identifier, node: Exclude, decl: TSESTree.ImportDeclaration); +} +export { ImportBindingDefinition }; +//# sourceMappingURL=ImportBindingDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map new file mode 100644 index 00000000..f53c0e3d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;CASnC;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js new file mode 100644 index 00000000..ca070594 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportBindingDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl); + } +} +exports.ImportBindingDefinition = ImportBindingDefinition; +//# sourceMappingURL=ImportBindingDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map new file mode 100644 index 00000000..c9c33078 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAe5C,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;CACF;AAEQ,0DAAuB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts new file mode 100644 index 00000000..2c9dea1c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class ParameterDefinition extends DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + readonly rest: boolean; + constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean); +} +export { ParameterDefinition }; +//# sourceMappingURL=ParameterDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map new file mode 100644 index 00000000..01802e86 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;IAC5C,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAG5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;CAKhB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js new file mode 100644 index 00000000..f7bd0697 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParameterDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class ParameterDefinition extends DefinitionBase_1.DefinitionBase { + /** + * Whether the parameter definition is a part of a rest parameter. + */ + isTypeDefinition = false; + isVariableDefinition = true; + rest; + constructor(name, node, rest) { + super(DefinitionType_1.DefinitionType.Parameter, name, node, null); + this.rest = rest; + } +} +exports.ParameterDefinition = ParameterDefinition; +//# sourceMappingURL=ParameterDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map new file mode 100644 index 00000000..1421a093 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ParameterDefinition.js","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAcjC;IACC;;OAEG;IACa,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAU;IAE9B,YACE,IAA0B,EAC1B,IAAiC,EACjC,IAAa;QAEb,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts new file mode 100644 index 00000000..da382ead --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumMemberDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']); +} +export { TSEnumMemberDefinition }; +//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map new file mode 100644 index 00000000..3ad9cf7b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAIvC;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js new file mode 100644 index 00000000..19ebd8db --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumMemberDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null); + } +} +exports.TSEnumMemberDefinition = TSEnumMemberDefinition; +//# sourceMappingURL=TSEnumMemberDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map new file mode 100644 index 00000000..5589e2a9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumMemberDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAkD,EAClD,IAAoC;QAEpC,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts new file mode 100644 index 00000000..499a8073 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSEnumNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']); +} +export { TSEnumNameDefinition }; +//# sourceMappingURL=TSEnumNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map new file mode 100644 index 00000000..1d43f9e0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,oBAAqB,SAAQ,cAAc,CAC/C,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;CAG1E;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js new file mode 100644 index 00000000..367ea231 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null); + } +} +exports.TSEnumNameDefinition = TSEnumNameDefinition; +//# sourceMappingURL=TSEnumNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map new file mode 100644 index 00000000..13089875 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,oBAAqB,SAAQ,+BAKlC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAkC;QACvE,KAAK,CAAC,+BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts new file mode 100644 index 00000000..5b52afa9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TSModuleNameDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']); +} +export { TSModuleNameDefinition }; +//# sourceMappingURL=TSModuleNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map new file mode 100644 index 00000000..bd6d85ca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js new file mode 100644 index 00000000..fc3aca60 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleNameDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = true; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null); + } +} +exports.TSModuleNameDefinition = TSModuleNameDefinition; +//# sourceMappingURL=TSModuleNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map new file mode 100644 index 00000000..c0e5e3f6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts new file mode 100644 index 00000000..91158b6e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class TypeDefinition extends DefinitionBase { + readonly isTypeDefinition = true; + readonly isVariableDefinition = false; + constructor(name: TSESTree.Identifier, node: TypeDefinition['node']); +} +export { TypeDefinition }; +//# sourceMappingURL=TypeDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map new file mode 100644 index 00000000..1c5f8173 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,cAAe,SAAQ,cAAc,CACzC,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;gBAEjC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;CAGpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js new file mode 100644 index 00000000..91f337cd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class TypeDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = true; + isVariableDefinition = false; + constructor(name, node) { + super(DefinitionType_1.DefinitionType.Type, name, node, null); + } +} +exports.TypeDefinition = TypeDefinition; +//# sourceMappingURL=TypeDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map new file mode 100644 index 00000000..7dc70ad7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeDefinition.js","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,cAAe,SAAQ,+BAQ5B;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,KAAK,CAAC;IAE7C,YAAY,IAAyB,EAAE,IAA4B;QACjE,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts new file mode 100644 index 00000000..86260792 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { DefinitionBase } from './DefinitionBase'; +import { DefinitionType } from './DefinitionType'; +declare class VariableDefinition extends DefinitionBase { + readonly isTypeDefinition = false; + readonly isVariableDefinition = true; + constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration); +} +export { VariableDefinition }; +//# sourceMappingURL=VariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map new file mode 100644 index 00000000..dca94680 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,cAAc,CAC7C,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;CAIrC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js new file mode 100644 index 00000000..65dc6b45 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableDefinition = void 0; +const DefinitionBase_1 = require("./DefinitionBase"); +const DefinitionType_1 = require("./DefinitionType"); +class VariableDefinition extends DefinitionBase_1.DefinitionBase { + isTypeDefinition = false; + isVariableDefinition = true; + constructor(name, node, decl) { + super(DefinitionType_1.DefinitionType.Variable, name, node, decl); + } +} +exports.VariableDefinition = VariableDefinition; +//# sourceMappingURL=VariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map new file mode 100644 index 00000000..86801dcd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableDefinition.js","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,kBAAmB,SAAQ,+BAKhC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAAyB,EACzB,IAAgC,EAChC,IAAkC;QAElC,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts new file mode 100644 index 00000000..2be95a12 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts @@ -0,0 +1,14 @@ +export * from './CatchClauseDefinition'; +export * from './ClassNameDefinition'; +export * from './Definition'; +export * from './DefinitionType'; +export * from './FunctionNameDefinition'; +export * from './ImplicitGlobalVariableDefinition'; +export * from './ImportBindingDefinition'; +export * from './ParameterDefinition'; +export * from './TSEnumMemberDefinition'; +export * from './TSEnumNameDefinition'; +export * from './TSModuleNameDefinition'; +export * from './TypeDefinition'; +export * from './VariableDefinition'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map new file mode 100644 index 00000000..dfd43be8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js new file mode 100644 index 00000000..71d1559d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js @@ -0,0 +1,30 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./CatchClauseDefinition"), exports); +__exportStar(require("./ClassNameDefinition"), exports); +__exportStar(require("./Definition"), exports); +__exportStar(require("./DefinitionType"), exports); +__exportStar(require("./FunctionNameDefinition"), exports); +__exportStar(require("./ImplicitGlobalVariableDefinition"), exports); +__exportStar(require("./ImportBindingDefinition"), exports); +__exportStar(require("./ParameterDefinition"), exports); +__exportStar(require("./TSEnumMemberDefinition"), exports); +__exportStar(require("./TSEnumNameDefinition"), exports); +__exportStar(require("./TSModuleNameDefinition"), exports); +__exportStar(require("./TypeDefinition"), exports); +__exportStar(require("./VariableDefinition"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map new file mode 100644 index 00000000..136726cd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts new file mode 100644 index 00000000..435c05cc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts @@ -0,0 +1,9 @@ +export { analyze, type AnalyzeOptions } from './analyze'; +export * from './definition'; +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, } from './referencer/PatternVisitor'; +export { Reference } from './referencer/Reference'; +export { Visitor } from './referencer/Visitor'; +export * from './scope'; +export { ScopeManager } from './ScopeManager'; +export * from './variable'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map new file mode 100644 index 00000000..dd3d5544 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js new file mode 100644 index 00000000..28e0cb85 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeManager = exports.Visitor = exports.Reference = exports.PatternVisitor = exports.analyze = void 0; +var analyze_1 = require("./analyze"); +Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } }); +__exportStar(require("./definition"), exports); +var PatternVisitor_1 = require("./referencer/PatternVisitor"); +Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } }); +var Reference_1 = require("./referencer/Reference"); +Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } }); +var Visitor_1 = require("./referencer/Visitor"); +Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } }); +__exportStar(require("./scope"), exports); +var ScopeManager_1 = require("./ScopeManager"); +Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } }); +__exportStar(require("./variable"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js.map new file mode 100644 index 00000000..ffff526a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAyD;AAAhD,kGAAA,OAAO,OAAA;AAChB,+CAA6B;AAC7B,8DAIqC;AAHnC,gHAAA,cAAc,OAAA;AAIhB,oDAAmD;AAA1C,sGAAA,SAAS,OAAA;AAClB,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,0CAAwB;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts new file mode 100644 index 00000000..6b2fddaa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts @@ -0,0 +1,16 @@ +export declare const TYPE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: false; +}>; +export declare const VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: false; + isValueVariable: true; +}>; +export declare const TYPE_VALUE: Readonly<{ + eslintImplicitGlobalSetting: "readonly"; + isTypeVariable: true; + isValueVariable: true; +}>; +//# sourceMappingURL=base-config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map new file mode 100644 index 00000000..632981a2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js new file mode 100644 index 00000000..e0526301 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0; +exports.TYPE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, +}); +exports.VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: false, + isValueVariable: true, +}); +exports.TYPE_VALUE = Object.freeze({ + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: true, +}); +//# sourceMappingURL=base-config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map new file mode 100644 index 00000000..b99400cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base-config.js","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAEd,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;CACvB,CAAC,CAAC;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts new file mode 100644 index 00000000..288f0524 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators: Record; +//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map new file mode 100644 index 00000000..07113a33 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAalB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js new file mode 100644 index 00000000..b97c16ea --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators = void 0; +const base_config_1 = require("./base-config"); +exports.decorators = { + ClassAccessorDecoratorContext: base_config_1.TYPE, + ClassAccessorDecoratorResult: base_config_1.TYPE, + ClassAccessorDecoratorTarget: base_config_1.TYPE, + ClassDecoratorContext: base_config_1.TYPE, + ClassFieldDecoratorContext: base_config_1.TYPE, + ClassGetterDecoratorContext: base_config_1.TYPE, + ClassMemberDecoratorContext: base_config_1.TYPE, + ClassMethodDecoratorContext: base_config_1.TYPE, + ClassSetterDecoratorContext: base_config_1.TYPE, + DecoratorContext: base_config_1.TYPE, + DecoratorMetadata: base_config_1.TYPE, + DecoratorMetadataObject: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map new file mode 100644 index 00000000..3769ae2b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,UAAU,GAAG;IACxB,6BAA6B,EAAE,kBAAI;IACnC,4BAA4B,EAAE,kBAAI;IAClC,4BAA4B,EAAE,kBAAI;IAClC,qBAAqB,EAAE,kBAAI;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,iBAAiB,EAAE,kBAAI;IACvB,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts new file mode 100644 index 00000000..a7363bd8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const decorators_legacy: Record; +//# sourceMappingURL=decorators.legacy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map new file mode 100644 index 00000000..f73fc491 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js new file mode 100644 index 00000000..d82d6096 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decorators_legacy = void 0; +const base_config_1 = require("./base-config"); +exports.decorators_legacy = { + ClassDecorator: base_config_1.TYPE, + MethodDecorator: base_config_1.TYPE, + ParameterDecorator: base_config_1.TYPE, + PropertyDecorator: base_config_1.TYPE, +}; +//# sourceMappingURL=decorators.legacy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map new file mode 100644 index 00000000..cd979547 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorators.legacy.js","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts new file mode 100644 index 00000000..cfd2ea00 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_asynciterable: Record; +//# sourceMappingURL=dom.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map new file mode 100644 index 00000000..2542309e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js new file mode 100644 index 00000000..564ce985 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map new file mode 100644 index 00000000..59078e84 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.asynciterable.js","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts new file mode 100644 index 00000000..f76da8eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom: Record; +//# sourceMappingURL=dom.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map new file mode 100644 index 00000000..ac1e8a55 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,GAAG,EA48CX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts new file mode 100644 index 00000000..94f9807e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const dom_iterable: Record; +//# sourceMappingURL=dom.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map new file mode 100644 index 00000000..5ea51812 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EA0EpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js new file mode 100644 index 00000000..5a784df7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js @@ -0,0 +1,84 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.dom_iterable = { + AbortSignal: base_config_1.TYPE, + AudioParam: base_config_1.TYPE, + AudioParamMap: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSKeyframesRule: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSRuleList: base_config_1.TYPE, + CSSStyleDeclaration: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE, + DataTransferItemList: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + DOMTokenList: base_config_1.TYPE, + EventCounts: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + Highlight: base_config_1.TYPE, + HighlightRegistry: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLFormElement: base_config_1.TYPE, + HTMLSelectElement: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE, + MediaKeyStatusMapIterator: base_config_1.TYPE, + MediaList: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE, + MIDIOutputMap: base_config_1.TYPE, + MimeTypeArray: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE, + Navigator: base_config_1.TYPE, + NodeList: base_config_1.TYPE, + NodeListOf: base_config_1.TYPE, + Plugin: base_config_1.TYPE, + PluginArray: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE, + SpeechRecognitionResult: base_config_1.TYPE, + SpeechRecognitionResultList: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + StyleSheetList: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + SVGLengthList: base_config_1.TYPE, + SVGNumberList: base_config_1.TYPE, + SVGPointList: base_config_1.TYPE, + SVGStringList: base_config_1.TYPE, + SVGTransformList: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE, + TouchList: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=dom.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map new file mode 100644 index 00000000..e764338b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.iterable.js","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,cAAc,EAAE,kBAAI;IACpB,oBAAoB,EAAE,kBAAI;IAC1B,WAAW,EAAE,kBAAI;IACjB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,kBAAI;IACb,eAAe,EAAE,kBAAI;IACrB,SAAS,EAAE,kBAAI;IACf,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,kBAAI;IACvB,yBAAyB,EAAE,kBAAI;IAC/B,SAAS,EAAE,kBAAI;IACf,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,QAAQ,EAAE,kBAAI;IACd,UAAU,EAAE,kBAAI;IAChB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,kBAAI;IACjB,iBAAiB,EAAE,kBAAI;IACvB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,uBAAuB,EAAE,kBAAI;IAC7B,2BAA2B,EAAE,kBAAI;IACjC,wBAAwB,EAAE,kBAAI;IAC9B,gCAAgC,EAAE,kBAAI;IACtC,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,eAAe,EAAE,kBAAI;IACrB,uBAAuB,EAAE,kBAAI;IAC7B,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js new file mode 100644 index 00000000..62371bdc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js @@ -0,0 +1,1494 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dom = void 0; +const base_config_1 = require("./base-config"); +exports.dom = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractRange: base_config_1.TYPE_VALUE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AddressErrors: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AlignSetting: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + AnalyserNode: base_config_1.TYPE_VALUE, + AnalyserOptions: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + Animatable: base_config_1.TYPE, + Animation: base_config_1.TYPE_VALUE, + AnimationEffect: base_config_1.TYPE_VALUE, + AnimationEvent: base_config_1.TYPE_VALUE, + AnimationEventInit: base_config_1.TYPE, + AnimationEventMap: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AnimationPlaybackEvent: base_config_1.TYPE_VALUE, + AnimationPlaybackEventInit: base_config_1.TYPE, + AnimationPlayState: base_config_1.TYPE, + AnimationReplaceState: base_config_1.TYPE, + AnimationTimeline: base_config_1.TYPE_VALUE, + AppendMode: base_config_1.TYPE, + ARIAMixin: base_config_1.TYPE, + AssignedNodesOptions: base_config_1.TYPE, + AttestationConveyancePreference: base_config_1.TYPE, + Attr: base_config_1.TYPE_VALUE, + AudioBuffer: base_config_1.TYPE_VALUE, + AudioBufferOptions: base_config_1.TYPE, + AudioBufferSourceNode: base_config_1.TYPE_VALUE, + AudioBufferSourceOptions: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioContext: base_config_1.TYPE_VALUE, + AudioContextLatencyCategory: base_config_1.TYPE, + AudioContextOptions: base_config_1.TYPE, + AudioContextState: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioDestinationNode: base_config_1.TYPE_VALUE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioListener: base_config_1.TYPE_VALUE, + AudioNode: base_config_1.TYPE_VALUE, + AudioNodeOptions: base_config_1.TYPE, + AudioParam: base_config_1.TYPE_VALUE, + AudioParamMap: base_config_1.TYPE_VALUE, + AudioProcessingEvent: base_config_1.TYPE_VALUE, + AudioProcessingEventInit: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AudioScheduledSourceNode: base_config_1.TYPE_VALUE, + AudioScheduledSourceNodeEventMap: base_config_1.TYPE, + AudioTimestamp: base_config_1.TYPE, + AudioWorklet: base_config_1.TYPE_VALUE, + AudioWorkletNode: base_config_1.TYPE_VALUE, + AudioWorkletNodeEventMap: base_config_1.TYPE, + AudioWorkletNodeOptions: base_config_1.TYPE, + AuthenticationExtensionsClientInputs: base_config_1.TYPE, + AuthenticationExtensionsClientInputsJSON: base_config_1.TYPE, + AuthenticationExtensionsClientOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFInputs: base_config_1.TYPE, + AuthenticationExtensionsPRFOutputs: base_config_1.TYPE, + AuthenticationExtensionsPRFValues: base_config_1.TYPE, + AuthenticatorAssertionResponse: base_config_1.TYPE_VALUE, + AuthenticatorAttachment: base_config_1.TYPE, + AuthenticatorAttestationResponse: base_config_1.TYPE_VALUE, + AuthenticatorResponse: base_config_1.TYPE_VALUE, + AuthenticatorSelectionCriteria: base_config_1.TYPE, + AuthenticatorTransport: base_config_1.TYPE, + AutoFill: base_config_1.TYPE, + AutoFillAddressKind: base_config_1.TYPE, + AutoFillBase: base_config_1.TYPE, + AutoFillContactField: base_config_1.TYPE, + AutoFillContactKind: base_config_1.TYPE, + AutoFillCredentialField: base_config_1.TYPE, + AutoFillField: base_config_1.TYPE, + AutoFillNormalField: base_config_1.TYPE, + AutoFillSection: base_config_1.TYPE, + AutoKeyword: base_config_1.TYPE, + AutomationRate: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BarProp: base_config_1.TYPE_VALUE, + Base64URLString: base_config_1.TYPE, + BaseAudioContext: base_config_1.TYPE_VALUE, + BaseAudioContextEventMap: base_config_1.TYPE, + BeforeUnloadEvent: base_config_1.TYPE_VALUE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BiquadFilterNode: base_config_1.TYPE_VALUE, + BiquadFilterOptions: base_config_1.TYPE, + BiquadFilterType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobCallback: base_config_1.TYPE, + BlobEvent: base_config_1.TYPE_VALUE, + BlobEventInit: base_config_1.TYPE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanPlayTypeResult: base_config_1.TYPE, + CanvasCaptureMediaStreamTrack: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasRenderingContext2D: base_config_1.TYPE_VALUE, + CanvasRenderingContext2DSettings: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + CanvasUserInterface: base_config_1.TYPE, + CaretPosition: base_config_1.TYPE_VALUE, + CaretPositionFromPointOptions: base_config_1.TYPE, + CDATASection: base_config_1.TYPE_VALUE, + ChannelCountMode: base_config_1.TYPE, + ChannelInterpretation: base_config_1.TYPE, + ChannelMergerNode: base_config_1.TYPE_VALUE, + ChannelMergerOptions: base_config_1.TYPE, + ChannelSplitterNode: base_config_1.TYPE_VALUE, + ChannelSplitterOptions: base_config_1.TYPE, + CharacterData: base_config_1.TYPE_VALUE, + CheckVisibilityOptions: base_config_1.TYPE, + ChildNode: base_config_1.TYPE, + ClientQueryOptions: base_config_1.TYPE, + ClientRect: base_config_1.TYPE, + ClientTypes: base_config_1.TYPE, + Clipboard: base_config_1.TYPE_VALUE, + ClipboardEvent: base_config_1.TYPE_VALUE, + ClipboardEventInit: base_config_1.TYPE, + ClipboardItem: base_config_1.TYPE_VALUE, + ClipboardItemData: base_config_1.TYPE, + ClipboardItemOptions: base_config_1.TYPE, + ClipboardItems: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + Comment: base_config_1.TYPE_VALUE, + CompositeOperation: base_config_1.TYPE, + CompositeOperationOrAuto: base_config_1.TYPE, + CompositionEvent: base_config_1.TYPE_VALUE, + CompositionEventInit: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + ComputedEffectTiming: base_config_1.TYPE, + ComputedKeyframe: base_config_1.TYPE, + Console: base_config_1.TYPE, + ConstantSourceNode: base_config_1.TYPE_VALUE, + ConstantSourceOptions: base_config_1.TYPE, + ConstrainBoolean: base_config_1.TYPE, + ConstrainBooleanParameters: base_config_1.TYPE, + ConstrainDOMString: base_config_1.TYPE, + ConstrainDOMStringParameters: base_config_1.TYPE, + ConstrainDouble: base_config_1.TYPE, + ConstrainDoubleRange: base_config_1.TYPE, + ConstrainULong: base_config_1.TYPE, + ConstrainULongRange: base_config_1.TYPE, + ContentVisibilityAutoStateChangeEvent: base_config_1.TYPE_VALUE, + ContentVisibilityAutoStateChangeEventInit: base_config_1.TYPE, + ConvolverNode: base_config_1.TYPE_VALUE, + ConvolverOptions: base_config_1.TYPE, + COSEAlgorithmIdentifier: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Credential: base_config_1.TYPE_VALUE, + CredentialCreationOptions: base_config_1.TYPE, + CredentialMediationRequirement: base_config_1.TYPE, + CredentialPropertiesOutput: base_config_1.TYPE, + CredentialRequestOptions: base_config_1.TYPE, + CredentialsContainer: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSS: base_config_1.TYPE_VALUE, + CSSAnimation: base_config_1.TYPE_VALUE, + CSSConditionRule: base_config_1.TYPE_VALUE, + CSSContainerRule: base_config_1.TYPE_VALUE, + CSSCounterStyleRule: base_config_1.TYPE_VALUE, + CSSFontFaceRule: base_config_1.TYPE_VALUE, + CSSFontFeatureValuesRule: base_config_1.TYPE_VALUE, + CSSFontPaletteValuesRule: base_config_1.TYPE_VALUE, + CSSGroupingRule: base_config_1.TYPE_VALUE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSImportRule: base_config_1.TYPE_VALUE, + CSSKeyframeRule: base_config_1.TYPE_VALUE, + CSSKeyframesRule: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSLayerBlockRule: base_config_1.TYPE_VALUE, + CSSLayerStatementRule: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSMediaRule: base_config_1.TYPE_VALUE, + CSSNamespaceRule: base_config_1.TYPE_VALUE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPageRule: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSPropertyRule: base_config_1.TYPE_VALUE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSRule: base_config_1.TYPE_VALUE, + CSSRuleList: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSScopeRule: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStartingStyleRule: base_config_1.TYPE_VALUE, + CSSStyleDeclaration: base_config_1.TYPE_VALUE, + CSSStyleRule: base_config_1.TYPE_VALUE, + CSSStyleSheet: base_config_1.TYPE_VALUE, + CSSStyleSheetInit: base_config_1.TYPE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSSupportsRule: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTransition: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomElementConstructor: base_config_1.TYPE, + CustomElementRegistry: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + CustomStateSet: base_config_1.TYPE_VALUE, + DataTransfer: base_config_1.TYPE_VALUE, + DataTransferItem: base_config_1.TYPE_VALUE, + DataTransferItemList: base_config_1.TYPE_VALUE, + DecodeErrorCallback: base_config_1.TYPE, + DecodeSuccessCallback: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DelayNode: base_config_1.TYPE_VALUE, + DelayOptions: base_config_1.TYPE, + DeviceMotionEvent: base_config_1.TYPE_VALUE, + DeviceMotionEventAcceleration: base_config_1.TYPE, + DeviceMotionEventAccelerationInit: base_config_1.TYPE, + DeviceMotionEventInit: base_config_1.TYPE, + DeviceMotionEventRotationRate: base_config_1.TYPE, + DeviceMotionEventRotationRateInit: base_config_1.TYPE, + DeviceOrientationEvent: base_config_1.TYPE_VALUE, + DeviceOrientationEventInit: base_config_1.TYPE, + DirectionSetting: base_config_1.TYPE, + DisplayCaptureSurfaceType: base_config_1.TYPE, + DisplayMediaStreamOptions: base_config_1.TYPE, + DistanceModelType: base_config_1.TYPE, + Document: base_config_1.TYPE_VALUE, + DocumentEventMap: base_config_1.TYPE, + DocumentFragment: base_config_1.TYPE_VALUE, + DocumentOrShadowRoot: base_config_1.TYPE, + DocumentReadyState: base_config_1.TYPE, + DocumentTimeline: base_config_1.TYPE_VALUE, + DocumentTimelineOptions: base_config_1.TYPE, + DocumentType: base_config_1.TYPE_VALUE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMImplementation: base_config_1.TYPE_VALUE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMParser: base_config_1.TYPE_VALUE, + DOMParserSupportedType: base_config_1.TYPE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectList: base_config_1.TYPE_VALUE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + DOMStringMap: base_config_1.TYPE_VALUE, + DOMTokenList: base_config_1.TYPE_VALUE, + DoubleRange: base_config_1.TYPE, + DragEvent: base_config_1.TYPE_VALUE, + DragEventInit: base_config_1.TYPE, + DynamicsCompressorNode: base_config_1.TYPE_VALUE, + DynamicsCompressorOptions: base_config_1.TYPE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyAlgorithm: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EffectTiming: base_config_1.TYPE, + Element: base_config_1.TYPE_VALUE, + ElementContentEditable: base_config_1.TYPE, + ElementCreationOptions: base_config_1.TYPE, + ElementCSSInlineStyle: base_config_1.TYPE, + ElementDefinitionOptions: base_config_1.TYPE, + ElementEventMap: base_config_1.TYPE, + ElementInternals: base_config_1.TYPE_VALUE, + ElementTagNameMap: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EndOfStreamError: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorCallback: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventCounts: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventModifierInit: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + External: base_config_1.TYPE_VALUE, + File: base_config_1.TYPE_VALUE, + FileCallback: base_config_1.TYPE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileSystem: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryEntry: base_config_1.TYPE_VALUE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemDirectoryReader: base_config_1.TYPE_VALUE, + FileSystemEntriesCallback: base_config_1.TYPE, + FileSystemEntry: base_config_1.TYPE_VALUE, + FileSystemEntryCallback: base_config_1.TYPE, + FileSystemFileEntry: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemFlags: base_config_1.TYPE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + FillMode: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FocusEvent: base_config_1.TYPE_VALUE, + FocusEventInit: base_config_1.TYPE, + FocusOptions: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FormDataEvent: base_config_1.TYPE_VALUE, + FormDataEventInit: base_config_1.TYPE, + FragmentDirective: base_config_1.TYPE_VALUE, + FrameRequestCallback: base_config_1.TYPE, + FullscreenNavigationUI: base_config_1.TYPE, + FullscreenOptions: base_config_1.TYPE, + FunctionStringCallback: base_config_1.TYPE, + GainNode: base_config_1.TYPE_VALUE, + GainOptions: base_config_1.TYPE, + Gamepad: base_config_1.TYPE_VALUE, + GamepadButton: base_config_1.TYPE_VALUE, + GamepadEffectParameters: base_config_1.TYPE, + GamepadEvent: base_config_1.TYPE_VALUE, + GamepadEventInit: base_config_1.TYPE, + GamepadHapticActuator: base_config_1.TYPE_VALUE, + GamepadHapticEffectType: base_config_1.TYPE, + GamepadHapticsResult: base_config_1.TYPE, + GamepadMappingType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + Geolocation: base_config_1.TYPE_VALUE, + GeolocationCoordinates: base_config_1.TYPE_VALUE, + GeolocationPosition: base_config_1.TYPE_VALUE, + GeolocationPositionError: base_config_1.TYPE_VALUE, + GetAnimationsOptions: base_config_1.TYPE, + GetHTMLOptions: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GetRootNodeOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GlobalEventHandlers: base_config_1.TYPE, + GlobalEventHandlersEventMap: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HashChangeEvent: base_config_1.TYPE_VALUE, + HashChangeEventInit: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + Highlight: base_config_1.TYPE_VALUE, + HighlightRegistry: base_config_1.TYPE_VALUE, + HighlightType: base_config_1.TYPE, + History: base_config_1.TYPE_VALUE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyAlgorithm: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + HTMLAllCollection: base_config_1.TYPE_VALUE, + HTMLAnchorElement: base_config_1.TYPE_VALUE, + HTMLAreaElement: base_config_1.TYPE_VALUE, + HTMLAudioElement: base_config_1.TYPE_VALUE, + HTMLBaseElement: base_config_1.TYPE_VALUE, + HTMLBodyElement: base_config_1.TYPE_VALUE, + HTMLBodyElementEventMap: base_config_1.TYPE, + HTMLBRElement: base_config_1.TYPE_VALUE, + HTMLButtonElement: base_config_1.TYPE_VALUE, + HTMLCanvasElement: base_config_1.TYPE_VALUE, + HTMLCollection: base_config_1.TYPE_VALUE, + HTMLCollectionBase: base_config_1.TYPE, + HTMLCollectionOf: base_config_1.TYPE, + HTMLDataElement: base_config_1.TYPE_VALUE, + HTMLDataListElement: base_config_1.TYPE_VALUE, + HTMLDetailsElement: base_config_1.TYPE_VALUE, + HTMLDialogElement: base_config_1.TYPE_VALUE, + HTMLDirectoryElement: base_config_1.TYPE_VALUE, + HTMLDivElement: base_config_1.TYPE_VALUE, + HTMLDListElement: base_config_1.TYPE_VALUE, + HTMLDocument: base_config_1.TYPE_VALUE, + HTMLElement: base_config_1.TYPE_VALUE, + HTMLElementDeprecatedTagNameMap: base_config_1.TYPE, + HTMLElementEventMap: base_config_1.TYPE, + HTMLElementTagNameMap: base_config_1.TYPE, + HTMLEmbedElement: base_config_1.TYPE_VALUE, + HTMLFieldSetElement: base_config_1.TYPE_VALUE, + HTMLFontElement: base_config_1.TYPE_VALUE, + HTMLFormControlsCollection: base_config_1.TYPE_VALUE, + HTMLFormElement: base_config_1.TYPE_VALUE, + HTMLFrameElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElement: base_config_1.TYPE_VALUE, + HTMLFrameSetElementEventMap: base_config_1.TYPE, + HTMLHeadElement: base_config_1.TYPE_VALUE, + HTMLHeadingElement: base_config_1.TYPE_VALUE, + HTMLHRElement: base_config_1.TYPE_VALUE, + HTMLHtmlElement: base_config_1.TYPE_VALUE, + HTMLHyperlinkElementUtils: base_config_1.TYPE, + HTMLIFrameElement: base_config_1.TYPE_VALUE, + HTMLImageElement: base_config_1.TYPE_VALUE, + HTMLInputElement: base_config_1.TYPE_VALUE, + HTMLLabelElement: base_config_1.TYPE_VALUE, + HTMLLegendElement: base_config_1.TYPE_VALUE, + HTMLLIElement: base_config_1.TYPE_VALUE, + HTMLLinkElement: base_config_1.TYPE_VALUE, + HTMLMapElement: base_config_1.TYPE_VALUE, + HTMLMarqueeElement: base_config_1.TYPE_VALUE, + HTMLMediaElement: base_config_1.TYPE_VALUE, + HTMLMediaElementEventMap: base_config_1.TYPE, + HTMLMenuElement: base_config_1.TYPE_VALUE, + HTMLMetaElement: base_config_1.TYPE_VALUE, + HTMLMeterElement: base_config_1.TYPE_VALUE, + HTMLModElement: base_config_1.TYPE_VALUE, + HTMLObjectElement: base_config_1.TYPE_VALUE, + HTMLOListElement: base_config_1.TYPE_VALUE, + HTMLOptGroupElement: base_config_1.TYPE_VALUE, + HTMLOptionElement: base_config_1.TYPE_VALUE, + HTMLOptionsCollection: base_config_1.TYPE_VALUE, + HTMLOrSVGElement: base_config_1.TYPE, + HTMLOrSVGImageElement: base_config_1.TYPE, + HTMLOrSVGScriptElement: base_config_1.TYPE, + HTMLOutputElement: base_config_1.TYPE_VALUE, + HTMLParagraphElement: base_config_1.TYPE_VALUE, + HTMLParamElement: base_config_1.TYPE_VALUE, + HTMLPictureElement: base_config_1.TYPE_VALUE, + HTMLPreElement: base_config_1.TYPE_VALUE, + HTMLProgressElement: base_config_1.TYPE_VALUE, + HTMLQuoteElement: base_config_1.TYPE_VALUE, + HTMLScriptElement: base_config_1.TYPE_VALUE, + HTMLSelectElement: base_config_1.TYPE_VALUE, + HTMLSlotElement: base_config_1.TYPE_VALUE, + HTMLSourceElement: base_config_1.TYPE_VALUE, + HTMLSpanElement: base_config_1.TYPE_VALUE, + HTMLStyleElement: base_config_1.TYPE_VALUE, + HTMLTableCaptionElement: base_config_1.TYPE_VALUE, + HTMLTableCellElement: base_config_1.TYPE_VALUE, + HTMLTableColElement: base_config_1.TYPE_VALUE, + HTMLTableDataCellElement: base_config_1.TYPE, + HTMLTableElement: base_config_1.TYPE_VALUE, + HTMLTableHeaderCellElement: base_config_1.TYPE, + HTMLTableRowElement: base_config_1.TYPE_VALUE, + HTMLTableSectionElement: base_config_1.TYPE_VALUE, + HTMLTemplateElement: base_config_1.TYPE_VALUE, + HTMLTextAreaElement: base_config_1.TYPE_VALUE, + HTMLTimeElement: base_config_1.TYPE_VALUE, + HTMLTitleElement: base_config_1.TYPE_VALUE, + HTMLTrackElement: base_config_1.TYPE_VALUE, + HTMLUListElement: base_config_1.TYPE_VALUE, + HTMLUnknownElement: base_config_1.TYPE_VALUE, + HTMLVideoElement: base_config_1.TYPE_VALUE, + HTMLVideoElementEventMap: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + IdleDeadline: base_config_1.TYPE_VALUE, + IdleRequestCallback: base_config_1.TYPE, + IdleRequestOptions: base_config_1.TYPE, + IIRFilterNode: base_config_1.TYPE_VALUE, + IIRFilterOptions: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InputDeviceInfo: base_config_1.TYPE_VALUE, + InputEvent: base_config_1.TYPE_VALUE, + InputEventInit: base_config_1.TYPE, + InsertPosition: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + IntersectionObserver: base_config_1.TYPE_VALUE, + IntersectionObserverCallback: base_config_1.TYPE, + IntersectionObserverEntry: base_config_1.TYPE_VALUE, + IntersectionObserverInit: base_config_1.TYPE, + IterationCompositeOperation: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyboardEvent: base_config_1.TYPE_VALUE, + KeyboardEventInit: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + Keyframe: base_config_1.TYPE, + KeyframeAnimationOptions: base_config_1.TYPE, + KeyframeEffect: base_config_1.TYPE_VALUE, + KeyframeEffectOptions: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LargestContentfulPaint: base_config_1.TYPE_VALUE, + LatencyMode: base_config_1.TYPE, + LineAlignSetting: base_config_1.TYPE, + LineAndPositionSetting: base_config_1.TYPE, + LinkStyle: base_config_1.TYPE, + Location: base_config_1.TYPE_VALUE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MathMLElement: base_config_1.TYPE_VALUE, + MathMLElementEventMap: base_config_1.TYPE, + MathMLElementTagNameMap: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaDeviceInfo: base_config_1.TYPE_VALUE, + MediaDeviceKind: base_config_1.TYPE, + MediaDevices: base_config_1.TYPE_VALUE, + MediaDevicesEventMap: base_config_1.TYPE, + MediaElementAudioSourceNode: base_config_1.TYPE_VALUE, + MediaElementAudioSourceOptions: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaEncryptedEvent: base_config_1.TYPE_VALUE, + MediaEncryptedEventInit: base_config_1.TYPE, + MediaError: base_config_1.TYPE_VALUE, + MediaImage: base_config_1.TYPE, + MediaKeyMessageEvent: base_config_1.TYPE_VALUE, + MediaKeyMessageEventInit: base_config_1.TYPE, + MediaKeyMessageType: base_config_1.TYPE, + MediaKeys: base_config_1.TYPE_VALUE, + MediaKeySession: base_config_1.TYPE_VALUE, + MediaKeySessionClosedReason: base_config_1.TYPE, + MediaKeySessionEventMap: base_config_1.TYPE, + MediaKeySessionType: base_config_1.TYPE, + MediaKeysPolicy: base_config_1.TYPE, + MediaKeysRequirement: base_config_1.TYPE, + MediaKeyStatus: base_config_1.TYPE, + MediaKeyStatusMap: base_config_1.TYPE_VALUE, + MediaKeySystemAccess: base_config_1.TYPE_VALUE, + MediaKeySystemConfiguration: base_config_1.TYPE, + MediaKeySystemMediaCapability: base_config_1.TYPE, + MediaList: base_config_1.TYPE_VALUE, + MediaMetadata: base_config_1.TYPE_VALUE, + MediaMetadataInit: base_config_1.TYPE, + MediaPositionState: base_config_1.TYPE, + MediaProvider: base_config_1.TYPE, + MediaQueryList: base_config_1.TYPE_VALUE, + MediaQueryListEvent: base_config_1.TYPE_VALUE, + MediaQueryListEventInit: base_config_1.TYPE, + MediaQueryListEventMap: base_config_1.TYPE, + MediaRecorder: base_config_1.TYPE_VALUE, + MediaRecorderEventMap: base_config_1.TYPE, + MediaRecorderOptions: base_config_1.TYPE, + MediaSession: base_config_1.TYPE_VALUE, + MediaSessionAction: base_config_1.TYPE, + MediaSessionActionDetails: base_config_1.TYPE, + MediaSessionActionHandler: base_config_1.TYPE, + MediaSessionPlaybackState: base_config_1.TYPE, + MediaSource: base_config_1.TYPE_VALUE, + MediaSourceEventMap: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStream: base_config_1.TYPE_VALUE, + MediaStreamAudioDestinationNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceNode: base_config_1.TYPE_VALUE, + MediaStreamAudioSourceOptions: base_config_1.TYPE, + MediaStreamConstraints: base_config_1.TYPE, + MediaStreamEventMap: base_config_1.TYPE, + MediaStreamTrack: base_config_1.TYPE_VALUE, + MediaStreamTrackEvent: base_config_1.TYPE_VALUE, + MediaStreamTrackEventInit: base_config_1.TYPE, + MediaStreamTrackEventMap: base_config_1.TYPE, + MediaStreamTrackState: base_config_1.TYPE, + MediaTrackCapabilities: base_config_1.TYPE, + MediaTrackConstraints: base_config_1.TYPE, + MediaTrackConstraintSet: base_config_1.TYPE, + MediaTrackSettings: base_config_1.TYPE, + MediaTrackSupportedConstraints: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MIDIAccess: base_config_1.TYPE_VALUE, + MIDIAccessEventMap: base_config_1.TYPE, + MIDIConnectionEvent: base_config_1.TYPE_VALUE, + MIDIConnectionEventInit: base_config_1.TYPE, + MIDIInput: base_config_1.TYPE_VALUE, + MIDIInputEventMap: base_config_1.TYPE, + MIDIInputMap: base_config_1.TYPE_VALUE, + MIDIMessageEvent: base_config_1.TYPE_VALUE, + MIDIMessageEventInit: base_config_1.TYPE, + MIDIOptions: base_config_1.TYPE, + MIDIOutput: base_config_1.TYPE_VALUE, + MIDIOutputMap: base_config_1.TYPE_VALUE, + MIDIPort: base_config_1.TYPE_VALUE, + MIDIPortConnectionState: base_config_1.TYPE, + MIDIPortDeviceState: base_config_1.TYPE, + MIDIPortEventMap: base_config_1.TYPE, + MIDIPortType: base_config_1.TYPE, + MimeType: base_config_1.TYPE_VALUE, + MimeTypeArray: base_config_1.TYPE_VALUE, + MouseEvent: base_config_1.TYPE_VALUE, + MouseEventInit: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + MutationCallback: base_config_1.TYPE, + MutationObserver: base_config_1.TYPE_VALUE, + MutationObserverInit: base_config_1.TYPE, + MutationRecord: base_config_1.TYPE_VALUE, + MutationRecordType: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NamedNodeMap: base_config_1.TYPE_VALUE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigationTimingType: base_config_1.TYPE, + Navigator: base_config_1.TYPE_VALUE, + NavigatorAutomationInformation: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorContentUtils: base_config_1.TYPE, + NavigatorCookies: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorPlugins: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Node: base_config_1.TYPE_VALUE, + NodeFilter: base_config_1.TYPE_VALUE, + NodeIterator: base_config_1.TYPE_VALUE, + NodeList: base_config_1.TYPE_VALUE, + NodeListOf: base_config_1.TYPE, + NonDocumentTypeChildNode: base_config_1.TYPE, + NonElementParentNode: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + NotificationPermissionCallback: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OfflineAudioCompletionEvent: base_config_1.TYPE_VALUE, + OfflineAudioCompletionEventInit: base_config_1.TYPE, + OfflineAudioContext: base_config_1.TYPE_VALUE, + OfflineAudioContextEventMap: base_config_1.TYPE, + OfflineAudioContextOptions: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnBeforeUnloadEventHandler: base_config_1.TYPE, + OnBeforeUnloadEventHandlerNonNull: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OptionalEffectTiming: base_config_1.TYPE, + OptionalPostfixToken: base_config_1.TYPE, + OptionalPrefixToken: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OrientationType: base_config_1.TYPE, + OscillatorNode: base_config_1.TYPE_VALUE, + OscillatorOptions: base_config_1.TYPE, + OscillatorType: base_config_1.TYPE, + OverconstrainedError: base_config_1.TYPE_VALUE, + OverSampleType: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + PageTransitionEvent: base_config_1.TYPE_VALUE, + PageTransitionEventInit: base_config_1.TYPE, + PannerNode: base_config_1.TYPE_VALUE, + PannerOptions: base_config_1.TYPE, + PanningModelType: base_config_1.TYPE, + ParentNode: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + PayerErrors: base_config_1.TYPE, + PaymentAddress: base_config_1.TYPE_VALUE, + PaymentComplete: base_config_1.TYPE, + PaymentCurrencyAmount: base_config_1.TYPE, + PaymentDetailsBase: base_config_1.TYPE, + PaymentDetailsInit: base_config_1.TYPE, + PaymentDetailsModifier: base_config_1.TYPE, + PaymentDetailsUpdate: base_config_1.TYPE, + PaymentItem: base_config_1.TYPE, + PaymentMethodChangeEvent: base_config_1.TYPE_VALUE, + PaymentMethodChangeEventInit: base_config_1.TYPE, + PaymentMethodData: base_config_1.TYPE, + PaymentOptions: base_config_1.TYPE, + PaymentRequest: base_config_1.TYPE_VALUE, + PaymentRequestEventMap: base_config_1.TYPE, + PaymentRequestUpdateEvent: base_config_1.TYPE_VALUE, + PaymentRequestUpdateEventInit: base_config_1.TYPE, + PaymentResponse: base_config_1.TYPE_VALUE, + PaymentResponseEventMap: base_config_1.TYPE, + PaymentShippingOption: base_config_1.TYPE, + PaymentShippingType: base_config_1.TYPE, + PaymentValidationErrors: base_config_1.TYPE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceEventTiming: base_config_1.TYPE_VALUE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceNavigation: base_config_1.TYPE_VALUE, + PerformanceNavigationTiming: base_config_1.TYPE_VALUE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformancePaintTiming: base_config_1.TYPE_VALUE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PerformanceTiming: base_config_1.TYPE_VALUE, + PeriodicWave: base_config_1.TYPE_VALUE, + PeriodicWaveConstraints: base_config_1.TYPE, + PeriodicWaveOptions: base_config_1.TYPE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PictureInPictureEvent: base_config_1.TYPE_VALUE, + PictureInPictureEventInit: base_config_1.TYPE, + PictureInPictureWindow: base_config_1.TYPE_VALUE, + PictureInPictureWindowEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PlaybackDirection: base_config_1.TYPE, + Plugin: base_config_1.TYPE_VALUE, + PluginArray: base_config_1.TYPE_VALUE, + PointerEvent: base_config_1.TYPE_VALUE, + PointerEventInit: base_config_1.TYPE, + PointerLockOptions: base_config_1.TYPE, + PopoverInvokerElement: base_config_1.TYPE, + PopStateEvent: base_config_1.TYPE_VALUE, + PopStateEventInit: base_config_1.TYPE, + PositionAlignSetting: base_config_1.TYPE, + PositionCallback: base_config_1.TYPE, + PositionErrorCallback: base_config_1.TYPE, + PositionOptions: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + PresentationStyle: base_config_1.TYPE, + ProcessingInstruction: base_config_1.TYPE_VALUE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PropertyDefinition: base_config_1.TYPE, + PropertyIndexedKeyframes: base_config_1.TYPE, + PublicKeyCredential: base_config_1.TYPE_VALUE, + PublicKeyCredentialCreationOptions: base_config_1.TYPE, + PublicKeyCredentialCreationOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialDescriptor: base_config_1.TYPE, + PublicKeyCredentialDescriptorJSON: base_config_1.TYPE, + PublicKeyCredentialEntity: base_config_1.TYPE, + PublicKeyCredentialJSON: base_config_1.TYPE, + PublicKeyCredentialParameters: base_config_1.TYPE, + PublicKeyCredentialRequestOptions: base_config_1.TYPE, + PublicKeyCredentialRequestOptionsJSON: base_config_1.TYPE, + PublicKeyCredentialRpEntity: base_config_1.TYPE, + PublicKeyCredentialType: base_config_1.TYPE, + PublicKeyCredentialUserEntity: base_config_1.TYPE, + PublicKeyCredentialUserEntityJSON: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + RadioNodeList: base_config_1.TYPE_VALUE, + Range: base_config_1.TYPE_VALUE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReadyState: base_config_1.TYPE, + RecordingState: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + RemotePlayback: base_config_1.TYPE_VALUE, + RemotePlaybackAvailabilityCallback: base_config_1.TYPE, + RemotePlaybackEventMap: base_config_1.TYPE, + RemotePlaybackState: base_config_1.TYPE, + RenderingContext: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResidentKeyRequirement: base_config_1.TYPE, + ResizeObserver: base_config_1.TYPE_VALUE, + ResizeObserverBoxOptions: base_config_1.TYPE, + ResizeObserverCallback: base_config_1.TYPE, + ResizeObserverEntry: base_config_1.TYPE_VALUE, + ResizeObserverOptions: base_config_1.TYPE, + ResizeObserverSize: base_config_1.TYPE_VALUE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyAlgorithm: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyAlgorithm: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCAnswerOptions: base_config_1.TYPE, + RTCBundlePolicy: base_config_1.TYPE, + RTCCertificate: base_config_1.TYPE_VALUE, + RTCCertificateExpiration: base_config_1.TYPE, + RTCConfiguration: base_config_1.TYPE, + RTCDataChannel: base_config_1.TYPE_VALUE, + RTCDataChannelEvent: base_config_1.TYPE_VALUE, + RTCDataChannelEventInit: base_config_1.TYPE, + RTCDataChannelEventMap: base_config_1.TYPE, + RTCDataChannelInit: base_config_1.TYPE, + RTCDataChannelState: base_config_1.TYPE, + RTCDegradationPreference: base_config_1.TYPE, + RTCDtlsFingerprint: base_config_1.TYPE, + RTCDtlsTransport: base_config_1.TYPE_VALUE, + RTCDtlsTransportEventMap: base_config_1.TYPE, + RTCDtlsTransportState: base_config_1.TYPE, + RTCDTMFSender: base_config_1.TYPE_VALUE, + RTCDTMFSenderEventMap: base_config_1.TYPE, + RTCDTMFToneChangeEvent: base_config_1.TYPE_VALUE, + RTCDTMFToneChangeEventInit: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCError: base_config_1.TYPE_VALUE, + RTCErrorDetailType: base_config_1.TYPE, + RTCErrorEvent: base_config_1.TYPE_VALUE, + RTCErrorEventInit: base_config_1.TYPE, + RTCErrorInit: base_config_1.TYPE, + RTCIceCandidate: base_config_1.TYPE_VALUE, + RTCIceCandidateInit: base_config_1.TYPE, + RTCIceCandidatePair: base_config_1.TYPE, + RTCIceCandidatePairStats: base_config_1.TYPE, + RTCIceCandidateType: base_config_1.TYPE, + RTCIceComponent: base_config_1.TYPE, + RTCIceConnectionState: base_config_1.TYPE, + RTCIceGathererState: base_config_1.TYPE, + RTCIceGatheringState: base_config_1.TYPE, + RTCIceProtocol: base_config_1.TYPE, + RTCIceServer: base_config_1.TYPE, + RTCIceTcpCandidateType: base_config_1.TYPE, + RTCIceTransport: base_config_1.TYPE_VALUE, + RTCIceTransportEventMap: base_config_1.TYPE, + RTCIceTransportPolicy: base_config_1.TYPE, + RTCIceTransportState: base_config_1.TYPE, + RTCInboundRtpStreamStats: base_config_1.TYPE, + RTCLocalSessionDescriptionInit: base_config_1.TYPE, + RTCOfferAnswerOptions: base_config_1.TYPE, + RTCOfferOptions: base_config_1.TYPE, + RTCOutboundRtpStreamStats: base_config_1.TYPE, + RTCPeerConnection: base_config_1.TYPE_VALUE, + RTCPeerConnectionErrorCallback: base_config_1.TYPE, + RTCPeerConnectionEventMap: base_config_1.TYPE, + RTCPeerConnectionIceErrorEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceErrorEventInit: base_config_1.TYPE, + RTCPeerConnectionIceEvent: base_config_1.TYPE_VALUE, + RTCPeerConnectionIceEventInit: base_config_1.TYPE, + RTCPeerConnectionState: base_config_1.TYPE, + RTCPriorityType: base_config_1.TYPE, + RTCReceivedRtpStreamStats: base_config_1.TYPE, + RTCRtcpMuxPolicy: base_config_1.TYPE, + RTCRtcpParameters: base_config_1.TYPE, + RTCRtpCapabilities: base_config_1.TYPE, + RTCRtpCodec: base_config_1.TYPE, + RTCRtpCodecParameters: base_config_1.TYPE, + RTCRtpCodingParameters: base_config_1.TYPE, + RTCRtpContributingSource: base_config_1.TYPE, + RTCRtpEncodingParameters: base_config_1.TYPE, + RTCRtpHeaderExtensionCapability: base_config_1.TYPE, + RTCRtpHeaderExtensionParameters: base_config_1.TYPE, + RTCRtpParameters: base_config_1.TYPE, + RTCRtpReceiveParameters: base_config_1.TYPE, + RTCRtpReceiver: base_config_1.TYPE_VALUE, + RTCRtpScriptTransform: base_config_1.TYPE_VALUE, + RTCRtpSender: base_config_1.TYPE_VALUE, + RTCRtpSendParameters: base_config_1.TYPE, + RTCRtpStreamStats: base_config_1.TYPE, + RTCRtpSynchronizationSource: base_config_1.TYPE, + RTCRtpTransceiver: base_config_1.TYPE_VALUE, + RTCRtpTransceiverDirection: base_config_1.TYPE, + RTCRtpTransceiverInit: base_config_1.TYPE, + RTCRtpTransform: base_config_1.TYPE, + RTCSctpTransport: base_config_1.TYPE_VALUE, + RTCSctpTransportEventMap: base_config_1.TYPE, + RTCSctpTransportState: base_config_1.TYPE, + RTCSdpType: base_config_1.TYPE, + RTCSentRtpStreamStats: base_config_1.TYPE, + RTCSessionDescription: base_config_1.TYPE_VALUE, + RTCSessionDescriptionCallback: base_config_1.TYPE, + RTCSessionDescriptionInit: base_config_1.TYPE, + RTCSetParameterOptions: base_config_1.TYPE, + RTCSignalingState: base_config_1.TYPE, + RTCStats: base_config_1.TYPE, + RTCStatsIceCandidatePairState: base_config_1.TYPE, + RTCStatsReport: base_config_1.TYPE_VALUE, + RTCStatsType: base_config_1.TYPE, + RTCTrackEvent: base_config_1.TYPE_VALUE, + RTCTrackEventInit: base_config_1.TYPE, + RTCTransportStats: base_config_1.TYPE, + Screen: base_config_1.TYPE_VALUE, + ScreenOrientation: base_config_1.TYPE_VALUE, + ScreenOrientationEventMap: base_config_1.TYPE, + ScriptProcessorNode: base_config_1.TYPE_VALUE, + ScriptProcessorNodeEventMap: base_config_1.TYPE, + ScrollBehavior: base_config_1.TYPE, + ScrollIntoViewOptions: base_config_1.TYPE, + ScrollLogicalPosition: base_config_1.TYPE, + ScrollOptions: base_config_1.TYPE, + ScrollRestoration: base_config_1.TYPE, + ScrollSetting: base_config_1.TYPE, + ScrollToOptions: base_config_1.TYPE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + Selection: base_config_1.TYPE_VALUE, + SelectionMode: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + ShadowRoot: base_config_1.TYPE_VALUE, + ShadowRootEventMap: base_config_1.TYPE, + ShadowRootInit: base_config_1.TYPE, + ShadowRootMode: base_config_1.TYPE, + ShareData: base_config_1.TYPE, + SharedWorker: base_config_1.TYPE_VALUE, + SlotAssignmentMode: base_config_1.TYPE, + Slottable: base_config_1.TYPE, + SourceBuffer: base_config_1.TYPE_VALUE, + SourceBufferEventMap: base_config_1.TYPE, + SourceBufferList: base_config_1.TYPE_VALUE, + SourceBufferListEventMap: base_config_1.TYPE, + SpeechRecognitionAlternative: base_config_1.TYPE_VALUE, + SpeechRecognitionResult: base_config_1.TYPE_VALUE, + SpeechRecognitionResultList: base_config_1.TYPE_VALUE, + SpeechSynthesis: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorCode: base_config_1.TYPE, + SpeechSynthesisErrorEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisErrorEventInit: base_config_1.TYPE, + SpeechSynthesisEvent: base_config_1.TYPE_VALUE, + SpeechSynthesisEventInit: base_config_1.TYPE, + SpeechSynthesisEventMap: base_config_1.TYPE, + SpeechSynthesisUtterance: base_config_1.TYPE_VALUE, + SpeechSynthesisUtteranceEventMap: base_config_1.TYPE, + SpeechSynthesisVoice: base_config_1.TYPE_VALUE, + StaticRange: base_config_1.TYPE_VALUE, + StaticRangeInit: base_config_1.TYPE, + StereoPannerNode: base_config_1.TYPE_VALUE, + StereoPannerOptions: base_config_1.TYPE, + Storage: base_config_1.TYPE_VALUE, + StorageEstimate: base_config_1.TYPE, + StorageEvent: base_config_1.TYPE_VALUE, + StorageEventInit: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StyleMedia: base_config_1.TYPE, + StylePropertyMap: base_config_1.TYPE_VALUE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + StyleSheet: base_config_1.TYPE_VALUE, + StyleSheetList: base_config_1.TYPE_VALUE, + SubmitEvent: base_config_1.TYPE_VALUE, + SubmitEventInit: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE_VALUE, + SVGAElement: base_config_1.TYPE_VALUE, + SVGAngle: base_config_1.TYPE_VALUE, + SVGAnimatedAngle: base_config_1.TYPE_VALUE, + SVGAnimatedBoolean: base_config_1.TYPE_VALUE, + SVGAnimatedEnumeration: base_config_1.TYPE_VALUE, + SVGAnimatedInteger: base_config_1.TYPE_VALUE, + SVGAnimatedLength: base_config_1.TYPE_VALUE, + SVGAnimatedLengthList: base_config_1.TYPE_VALUE, + SVGAnimatedNumber: base_config_1.TYPE_VALUE, + SVGAnimatedNumberList: base_config_1.TYPE_VALUE, + SVGAnimatedPoints: base_config_1.TYPE, + SVGAnimatedPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGAnimatedRect: base_config_1.TYPE_VALUE, + SVGAnimatedString: base_config_1.TYPE_VALUE, + SVGAnimatedTransformList: base_config_1.TYPE_VALUE, + SVGAnimateElement: base_config_1.TYPE_VALUE, + SVGAnimateMotionElement: base_config_1.TYPE_VALUE, + SVGAnimateTransformElement: base_config_1.TYPE_VALUE, + SVGAnimationElement: base_config_1.TYPE_VALUE, + SVGBoundingBoxOptions: base_config_1.TYPE, + SVGCircleElement: base_config_1.TYPE_VALUE, + SVGClipPathElement: base_config_1.TYPE_VALUE, + SVGComponentTransferFunctionElement: base_config_1.TYPE_VALUE, + SVGDefsElement: base_config_1.TYPE_VALUE, + SVGDescElement: base_config_1.TYPE_VALUE, + SVGElement: base_config_1.TYPE_VALUE, + SVGElementEventMap: base_config_1.TYPE, + SVGElementTagNameMap: base_config_1.TYPE, + SVGEllipseElement: base_config_1.TYPE_VALUE, + SVGFEBlendElement: base_config_1.TYPE_VALUE, + SVGFEColorMatrixElement: base_config_1.TYPE_VALUE, + SVGFEComponentTransferElement: base_config_1.TYPE_VALUE, + SVGFECompositeElement: base_config_1.TYPE_VALUE, + SVGFEConvolveMatrixElement: base_config_1.TYPE_VALUE, + SVGFEDiffuseLightingElement: base_config_1.TYPE_VALUE, + SVGFEDisplacementMapElement: base_config_1.TYPE_VALUE, + SVGFEDistantLightElement: base_config_1.TYPE_VALUE, + SVGFEDropShadowElement: base_config_1.TYPE_VALUE, + SVGFEFloodElement: base_config_1.TYPE_VALUE, + SVGFEFuncAElement: base_config_1.TYPE_VALUE, + SVGFEFuncBElement: base_config_1.TYPE_VALUE, + SVGFEFuncGElement: base_config_1.TYPE_VALUE, + SVGFEFuncRElement: base_config_1.TYPE_VALUE, + SVGFEGaussianBlurElement: base_config_1.TYPE_VALUE, + SVGFEImageElement: base_config_1.TYPE_VALUE, + SVGFEMergeElement: base_config_1.TYPE_VALUE, + SVGFEMergeNodeElement: base_config_1.TYPE_VALUE, + SVGFEMorphologyElement: base_config_1.TYPE_VALUE, + SVGFEOffsetElement: base_config_1.TYPE_VALUE, + SVGFEPointLightElement: base_config_1.TYPE_VALUE, + SVGFESpecularLightingElement: base_config_1.TYPE_VALUE, + SVGFESpotLightElement: base_config_1.TYPE_VALUE, + SVGFETileElement: base_config_1.TYPE_VALUE, + SVGFETurbulenceElement: base_config_1.TYPE_VALUE, + SVGFilterElement: base_config_1.TYPE_VALUE, + SVGFilterPrimitiveStandardAttributes: base_config_1.TYPE, + SVGFitToViewBox: base_config_1.TYPE, + SVGForeignObjectElement: base_config_1.TYPE_VALUE, + SVGGElement: base_config_1.TYPE_VALUE, + SVGGeometryElement: base_config_1.TYPE_VALUE, + SVGGradientElement: base_config_1.TYPE_VALUE, + SVGGraphicsElement: base_config_1.TYPE_VALUE, + SVGImageElement: base_config_1.TYPE_VALUE, + SVGLength: base_config_1.TYPE_VALUE, + SVGLengthList: base_config_1.TYPE_VALUE, + SVGLinearGradientElement: base_config_1.TYPE_VALUE, + SVGLineElement: base_config_1.TYPE_VALUE, + SVGMarkerElement: base_config_1.TYPE_VALUE, + SVGMaskElement: base_config_1.TYPE_VALUE, + SVGMatrix: base_config_1.TYPE_VALUE, + SVGMetadataElement: base_config_1.TYPE_VALUE, + SVGMPathElement: base_config_1.TYPE_VALUE, + SVGNumber: base_config_1.TYPE_VALUE, + SVGNumberList: base_config_1.TYPE_VALUE, + SVGPathElement: base_config_1.TYPE_VALUE, + SVGPatternElement: base_config_1.TYPE_VALUE, + SVGPoint: base_config_1.TYPE_VALUE, + SVGPointList: base_config_1.TYPE_VALUE, + SVGPolygonElement: base_config_1.TYPE_VALUE, + SVGPolylineElement: base_config_1.TYPE_VALUE, + SVGPreserveAspectRatio: base_config_1.TYPE_VALUE, + SVGRadialGradientElement: base_config_1.TYPE_VALUE, + SVGRect: base_config_1.TYPE_VALUE, + SVGRectElement: base_config_1.TYPE_VALUE, + SVGScriptElement: base_config_1.TYPE_VALUE, + SVGSetElement: base_config_1.TYPE_VALUE, + SVGStopElement: base_config_1.TYPE_VALUE, + SVGStringList: base_config_1.TYPE_VALUE, + SVGStyleElement: base_config_1.TYPE_VALUE, + SVGSVGElement: base_config_1.TYPE_VALUE, + SVGSVGElementEventMap: base_config_1.TYPE, + SVGSwitchElement: base_config_1.TYPE_VALUE, + SVGSymbolElement: base_config_1.TYPE_VALUE, + SVGTests: base_config_1.TYPE, + SVGTextContentElement: base_config_1.TYPE_VALUE, + SVGTextElement: base_config_1.TYPE_VALUE, + SVGTextPathElement: base_config_1.TYPE_VALUE, + SVGTextPositioningElement: base_config_1.TYPE_VALUE, + SVGTitleElement: base_config_1.TYPE_VALUE, + SVGTransform: base_config_1.TYPE_VALUE, + SVGTransformList: base_config_1.TYPE_VALUE, + SVGTSpanElement: base_config_1.TYPE_VALUE, + SVGUnitTypes: base_config_1.TYPE_VALUE, + SVGURIReference: base_config_1.TYPE, + SVGUseElement: base_config_1.TYPE_VALUE, + SVGViewElement: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + Text: base_config_1.TYPE_VALUE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextEvent: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TextTrack: base_config_1.TYPE_VALUE, + TextTrackCue: base_config_1.TYPE_VALUE, + TextTrackCueEventMap: base_config_1.TYPE, + TextTrackCueList: base_config_1.TYPE_VALUE, + TextTrackEventMap: base_config_1.TYPE, + TextTrackKind: base_config_1.TYPE, + TextTrackList: base_config_1.TYPE_VALUE, + TextTrackListEventMap: base_config_1.TYPE, + TextTrackMode: base_config_1.TYPE, + TimeRanges: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + ToggleEvent: base_config_1.TYPE_VALUE, + ToggleEventInit: base_config_1.TYPE, + Touch: base_config_1.TYPE_VALUE, + TouchEvent: base_config_1.TYPE_VALUE, + TouchEventInit: base_config_1.TYPE, + TouchInit: base_config_1.TYPE, + TouchList: base_config_1.TYPE_VALUE, + TouchType: base_config_1.TYPE, + TrackEvent: base_config_1.TYPE_VALUE, + TrackEventInit: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + TransitionEvent: base_config_1.TYPE_VALUE, + TransitionEventInit: base_config_1.TYPE, + TreeWalker: base_config_1.TYPE_VALUE, + UIEvent: base_config_1.TYPE_VALUE, + UIEventInit: base_config_1.TYPE, + Uint32List: base_config_1.TYPE, + ULongRange: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + UserActivation: base_config_1.TYPE_VALUE, + UserVerificationRequirement: base_config_1.TYPE, + ValidityState: base_config_1.TYPE_VALUE, + ValidityStateFlags: base_config_1.TYPE, + VibratePattern: base_config_1.TYPE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFacingModeEnum: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCallbackMetadata: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoFrameRequestCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoPlaybackQuality: base_config_1.TYPE_VALUE, + VideoTransferCharacteristics: base_config_1.TYPE, + ViewTransition: base_config_1.TYPE_VALUE, + ViewTransitionUpdateCallback: base_config_1.TYPE, + VisualViewport: base_config_1.TYPE_VALUE, + VisualViewportEventMap: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + VTTCue: base_config_1.TYPE_VALUE, + VTTRegion: base_config_1.TYPE_VALUE, + WakeLock: base_config_1.TYPE_VALUE, + WakeLockSentinel: base_config_1.TYPE_VALUE, + WakeLockSentinelEventMap: base_config_1.TYPE, + WakeLockType: base_config_1.TYPE, + WaveShaperNode: base_config_1.TYPE_VALUE, + WaveShaperOptions: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebKitCSSMatrix: base_config_1.TYPE_VALUE, + webkitURL: base_config_1.TYPE_VALUE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WheelEvent: base_config_1.TYPE_VALUE, + WheelEventInit: base_config_1.TYPE, + Window: base_config_1.TYPE_VALUE, + WindowEventHandlers: base_config_1.TYPE, + WindowEventHandlersEventMap: base_config_1.TYPE, + WindowEventMap: base_config_1.TYPE, + WindowLocalStorage: base_config_1.TYPE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + WindowPostMessageOptions: base_config_1.TYPE, + WindowProxy: base_config_1.TYPE, + WindowSessionStorage: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + Worklet: base_config_1.TYPE_VALUE, + WorkletOptions: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLDocument: base_config_1.TYPE_VALUE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, + XMLSerializer: base_config_1.TYPE_VALUE, + XPathEvaluator: base_config_1.TYPE_VALUE, + XPathEvaluatorBase: base_config_1.TYPE, + XPathExpression: base_config_1.TYPE_VALUE, + XPathNSResolver: base_config_1.TYPE, + XPathResult: base_config_1.TYPE_VALUE, + XSLTProcessor: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=dom.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map new file mode 100644 index 00000000..d1387ff2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,GAAG,GAAG;IACjB,eAAe,EAAE,wBAAU;IAC3B,WAAW,EAAE,wBAAU;IACvB,mBAAmB,EAAE,kB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AAkB,EAAE,kBAAI;IACxB,yBAAyB,EAAE,kBAAI;IAC/B,wBAAwB,EAAE,kBAAI;IAC9B,WAAW,EAAE,kBAAI;IACjB,oBAAoB,EAAE,kBAAI;IAC1B,MAAM,EAAE,wBAAU;IAClB,cAAc,EAAE,kBAAI;IACpB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,OAAO,EAAE,wBAAU;IACnB,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,wBAAU;IAC1B,+BAA+B,EAAE,wBAAU;IAC3C,2BAA2B,EAAE,wBAAU;IACvC,gBAAgB,EAAE,kBAAI;IACtB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,wBAAU;IACvB,cAAc,EAAE,wBAAU;IAC1B,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;IAChC,aAAa,EAAE,wBAAU;IACzB,cAAc,EAAE,wBAAU;IAC1B,kBAAkB,EAAE,kBAAI;IACxB,eAAe,EAAE,wBAAU;IAC3B,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,wBAAU;IACvB,aAAa,EAAE,wBAAU;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts new file mode 100644 index 00000000..8bc3c49f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_collection: Record; +//# sourceMappingURL=es2015.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map new file mode 100644 index 00000000..a703b5c9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAWzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js new file mode 100644 index 00000000..0ebec850 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js @@ -0,0 +1,21 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_collection = { + Map: base_config_1.TYPE_VALUE, + MapConstructor: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE_VALUE, + SetConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE_VALUE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE_VALUE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map new file mode 100644 index 00000000..91c43d4b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.collection.js","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts new file mode 100644 index 00000000..c309d52d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_core: Record; +//# sourceMappingURL=es2015.core.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map new file mode 100644 index 00000000..2433e218 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAsBnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js new file mode 100644 index 00000000..e65b6e6f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js @@ -0,0 +1,32 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_core = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_core = { + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Math: base_config_1.TYPE, + NumberConstructor: base_config_1.TYPE, + ObjectConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + StringConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.core.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map new file mode 100644 index 00000000..cc66bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.core.js","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts new file mode 100644 index 00000000..7f7de237 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015: Record; +//# sourceMappingURL=es2015.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map new file mode 100644 index 00000000..114858ec --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,MAAM,EAWd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts new file mode 100644 index 00000000..cb5ce5da --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_generator: Record; +//# sourceMappingURL=es2015.generator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map new file mode 100644 index 00000000..6fff309a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,gBAAgB,EAKxB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js new file mode 100644 index 00000000..1449b264 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_generator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2015_generator = { + ...es2015_iterable_1.es2015_iterable, + Generator: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + GeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.generator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map new file mode 100644 index 00000000..6895ef3e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.generator.js","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,SAAS,EAAE,kBAAI;IACf,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts new file mode 100644 index 00000000..9daa14ef --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_iterable: Record; +//# sourceMappingURL=es2015.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map new file mode 100644 index 00000000..924c3ca4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAkDvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js new file mode 100644 index 00000000..2e9bbc4a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js @@ -0,0 +1,61 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_iterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_iterable = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayIterator: base_config_1.TYPE, + BuiltinIteratorReturn: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Iterable: base_config_1.TYPE, + IterableIterator: base_config_1.TYPE, + Iterator: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + IteratorResult: base_config_1.TYPE, + IteratorReturnResult: base_config_1.TYPE, + IteratorYieldResult: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + MapIterator: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + ReadonlyMap: base_config_1.TYPE, + ReadonlySet: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + SetIterator: base_config_1.TYPE, + String: base_config_1.TYPE, + StringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakMapConstructor: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, + WeakSetConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map new file mode 100644 index 00000000..4a6651bc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.iterable.js","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,eAAe,GAAG;IAC7B,GAAG,6BAAa;IAChB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,UAAU,EAAE,kBAAI;IAChB,SAAS,EAAE,kBAAI;IACf,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,kBAAI;IACpB,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;IACzB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,aAAa,EAAE,kBAAI;IACnB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,MAAM,EAAE,kBAAI;IACZ,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;IAClC,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js new file mode 100644 index 00000000..6144de8d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2015 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es2015.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map new file mode 100644 index 00000000..2cb76d40 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.js","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts new file mode 100644 index 00000000..4b0b7d19 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_promise: Record; +//# sourceMappingURL=es2015.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map new file mode 100644 index 00000000..00e9596c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js new file mode 100644 index 00000000..93baf9f0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_promise = { + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map new file mode 100644 index 00000000..cbab7fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.promise.js","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts new file mode 100644 index 00000000..a2a87c0f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_proxy: Record; +//# sourceMappingURL=es2015.proxy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map new file mode 100644 index 00000000..07cafbda --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAGpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js new file mode 100644 index 00000000..24876c6f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_proxy = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_proxy = { + ProxyConstructor: base_config_1.TYPE, + ProxyHandler: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.proxy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map new file mode 100644 index 00000000..17ef6bc9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.proxy.js","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts new file mode 100644 index 00000000..7e94f32c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_reflect: Record; +//# sourceMappingURL=es2015.reflect.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map new file mode 100644 index 00000000..c9708893 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js new file mode 100644 index 00000000..c8d8b044 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_reflect = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_reflect = { + Reflect: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2015.reflect.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map new file mode 100644 index 00000000..b7bbca9f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.reflect.js","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts new file mode 100644 index 00000000..e78a6670 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol: Record; +//# sourceMappingURL=es2015.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map new file mode 100644 index 00000000..3741cc8a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js new file mode 100644 index 00000000..62876aa5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2015_symbol = { + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map new file mode 100644 index 00000000..9bdff523 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts new file mode 100644 index 00000000..7b18f41c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2015_symbol_wellknown: Record; +//# sourceMappingURL=es2015.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..7781adbf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,uBAAuB,EAmC/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js new file mode 100644 index 00000000..39404d66 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js @@ -0,0 +1,46 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2015_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2015_symbol_wellknown = { + ...es2015_symbol_1.es2015_symbol, + Array: base_config_1.TYPE, + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Date: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Function: base_config_1.TYPE, + GeneratorFunction: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + JSON: base_config_1.TYPE, + Map: base_config_1.TYPE, + MapConstructor: base_config_1.TYPE, + Math: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + RegExp: base_config_1.TYPE, + RegExpConstructor: base_config_1.TYPE, + Set: base_config_1.TYPE, + SetConstructor: base_config_1.TYPE, + String: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, + WeakMap: base_config_1.TYPE, + WeakSet: base_config_1.TYPE, +}; +//# sourceMappingURL=es2015.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map new file mode 100644 index 00000000..590f3d62 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2015.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,6BAAa;IAChB,KAAK,EAAE,kBAAI;IACX,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,kBAAI;IACV,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;IACvB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,IAAI,EAAE,kBAAI;IACV,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,IAAI,EAAE,kBAAI;IACV,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,GAAG,EAAE,kBAAI;IACT,cAAc,EAAE,kBAAI;IACpB,MAAM,EAAE,kBAAI;IACZ,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts new file mode 100644 index 00000000..7e6c8903 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_array_include: Record; +//# sourceMappingURL=es2016.array.include.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map new file mode 100644 index 00000000..05a090d4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAY5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js new file mode 100644 index 00000000..59a860df --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_array_include = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_array_include = { + Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2016.array.include.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map new file mode 100644 index 00000000..9b9cbf76 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.array.include.js","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAI;IACX,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts new file mode 100644 index 00000000..2049c83e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016: Record; +//# sourceMappingURL=es2016.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map new file mode 100644 index 00000000..69328de8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,MAAM,EAId,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts new file mode 100644 index 00000000..f940014b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_full: Record; +//# sourceMappingURL=es2016.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map new file mode 100644 index 00000000..b4acbeca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js new file mode 100644 index 00000000..75156509 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2016_1 = require("./es2016"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2016_full = { + ...es2016_1.es2016, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2016.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map new file mode 100644 index 00000000..7e363a78 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.full.js","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts new file mode 100644 index 00000000..c5567ffb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2016_intl: Record; +//# sourceMappingURL=es2016.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map new file mode 100644 index 00000000..a53c670d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js new file mode 100644 index 00000000..c63368d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2016_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2016.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map new file mode 100644 index 00000000..4ff4dc3d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.intl.js","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js new file mode 100644 index 00000000..65d6ace4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2016 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es2016 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es2016.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map new file mode 100644 index 00000000..1bbe7d0b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2016.js","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts new file mode 100644 index 00000000..5c91e313 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_arraybuffer: Record; +//# sourceMappingURL=es2017.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map new file mode 100644 index 00000000..dc2e35e6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAE1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js new file mode 100644 index 00000000..f6cd2009 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_arraybuffer = { + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map new file mode 100644 index 00000000..ce09c918 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2017.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts new file mode 100644 index 00000000..7c40c712 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017: Record; +//# sourceMappingURL=es2017.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map new file mode 100644 index 00000000..9b8e303c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts new file mode 100644 index 00000000..68d2c05e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_date: Record; +//# sourceMappingURL=es2017.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map new file mode 100644 index 00000000..01887fb3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js new file mode 100644 index 00000000..6184d2a4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_date = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_date = { + DateConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map new file mode 100644 index 00000000..cb5ec85a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.date.js","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,eAAe,EAAE,kBAAI;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts new file mode 100644 index 00000000..385bd1c3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_full: Record; +//# sourceMappingURL=es2017.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map new file mode 100644 index 00000000..daf9b22e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js new file mode 100644 index 00000000..5d478b96 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_full = void 0; +const dom_1 = require("./dom"); +const dom_iterable_1 = require("./dom.iterable"); +const es2017_1 = require("./es2017"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2017_full = { + ...es2017_1.es2017, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, +}; +//# sourceMappingURL=es2017.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map new file mode 100644 index 00000000..14812363 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.full.js","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts new file mode 100644 index 00000000..4db70db8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_intl: Record; +//# sourceMappingURL=es2017.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map new file mode 100644 index 00000000..095c5df2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js new file mode 100644 index 00000000..2115eda7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2017.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map new file mode 100644 index 00000000..2143dc6a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.intl.js","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js new file mode 100644 index 00000000..c4fecc34 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017 = void 0; +const es2016_1 = require("./es2016"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +exports.es2017 = { + ...es2016_1.es2016, + ...es2017_arraybuffer_1.es2017_arraybuffer, + ...es2017_date_1.es2017_date, + ...es2017_intl_1.es2017_intl, + ...es2017_object_1.es2017_object, + ...es2017_sharedmemory_1.es2017_sharedmemory, + ...es2017_string_1.es2017_string, + ...es2017_typedarrays_1.es2017_typedarrays, +}; +//# sourceMappingURL=es2017.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map new file mode 100644 index 00000000..514e6dca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.js","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAE7C,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,yBAAW;IACd,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,uCAAkB;CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts new file mode 100644 index 00000000..268df74f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_object: Record; +//# sourceMappingURL=es2017.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map new file mode 100644 index 00000000..95c3f65a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js new file mode 100644 index 00000000..1aa0ee7b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map new file mode 100644 index 00000000..3e9b2e20 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.object.js","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts new file mode 100644 index 00000000..e647026b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_sharedmemory: Record; +//# sourceMappingURL=es2017.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map new file mode 100644 index 00000000..f5cc83f4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,mBAAmB,EAO3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js new file mode 100644 index 00000000..f0d77cc4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js @@ -0,0 +1,19 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2017_sharedmemory = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + ArrayBufferTypes: base_config_1.TYPE, + Atomics: base_config_1.TYPE_VALUE, + SharedArrayBuffer: base_config_1.TYPE_VALUE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map new file mode 100644 index 00000000..571f04f8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts new file mode 100644 index 00000000..effb6ad8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_string: Record; +//# sourceMappingURL=es2017.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map new file mode 100644 index 00000000..81f180e5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js new file mode 100644 index 00000000..9ab29367 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map new file mode 100644 index 00000000..48600fb2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.string.js","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts new file mode 100644 index 00000000..97b9cce1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2017_typedarrays: Record; +//# sourceMappingURL=es2017.typedarrays.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map new file mode 100644 index 00000000..7b000cac --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAU1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js new file mode 100644 index 00000000..750a787b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2017_typedarrays = void 0; +const base_config_1 = require("./base-config"); +exports.es2017_typedarrays = { + Float32ArrayConstructor: base_config_1.TYPE, + Float64ArrayConstructor: base_config_1.TYPE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32ArrayConstructor: base_config_1.TYPE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2017.typedarrays.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map new file mode 100644 index 00000000..cd63f8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2017.typedarrays.js","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;IAC7B,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,qBAAqB,EAAE,kBAAI;IAC3B,4BAA4B,EAAE,kBAAI;IAClC,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts new file mode 100644 index 00000000..1c0ad385 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asyncgenerator: Record; +//# sourceMappingURL=es2018.asyncgenerator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map new file mode 100644 index 00000000..b3488fdb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,qBAAqB,EAK7B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js new file mode 100644 index 00000000..9e7f03f2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asyncgenerator = void 0; +const base_config_1 = require("./base-config"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.es2018_asyncgenerator = { + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncGenerator: base_config_1.TYPE, + AsyncGeneratorFunction: base_config_1.TYPE, + AsyncGeneratorFunctionConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asyncgenerator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map new file mode 100644 index 00000000..82c23fb4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asyncgenerator.js","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,iEAA8D;AAEjD,QAAA,qBAAqB,GAAG;IACnC,GAAG,2CAAoB;IACvB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,iCAAiC,EAAE,kBAAI;CACM,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts new file mode 100644 index 00000000..441e1b4a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_asynciterable: Record; +//# sourceMappingURL=es2018.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map new file mode 100644 index 00000000..26194f5b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js new file mode 100644 index 00000000..57dbcbc1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2018_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map new file mode 100644 index 00000000..27ec60cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.asynciterable.js","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts new file mode 100644 index 00000000..d6a57e0b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018: Record; +//# sourceMappingURL=es2018.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map new file mode 100644 index 00000000..e0c93481 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts new file mode 100644 index 00000000..def2b62d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_full: Record; +//# sourceMappingURL=es2018.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map new file mode 100644 index 00000000..73ff781d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js new file mode 100644 index 00000000..65c7681b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2018_1 = require("./es2018"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2018_full = { + ...es2018_1.es2018, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2018.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map new file mode 100644 index 00000000..94599c84 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.full.js","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts new file mode 100644 index 00000000..e80a6793 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_intl: Record; +//# sourceMappingURL=es2018.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map new file mode 100644 index 00000000..1e7036c0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js new file mode 100644 index 00000000..d3553a73 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2018.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map new file mode 100644 index 00000000..69869715 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.intl.js","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js new file mode 100644 index 00000000..307a6d47 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018 = void 0; +const es2017_1 = require("./es2017"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +exports.es2018 = { + ...es2017_1.es2017, + ...es2018_asynciterable_1.es2018_asynciterable, + ...es2018_asyncgenerator_1.es2018_asyncgenerator, + ...es2018_promise_1.es2018_promise, + ...es2018_regexp_1.es2018_regexp, + ...es2018_intl_1.es2018_intl, +}; +//# sourceMappingURL=es2018.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map new file mode 100644 index 00000000..0ef7f4b7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.js","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,6CAAqB;IACxB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts new file mode 100644 index 00000000..2ff021b6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_promise: Record; +//# sourceMappingURL=es2018.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map new file mode 100644 index 00000000..5523cb25 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js new file mode 100644 index 00000000..7d0b41e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_promise = { + Promise: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map new file mode 100644 index 00000000..e0d94c8f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.promise.js","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts new file mode 100644 index 00000000..2e69d45a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2018_regexp: Record; +//# sourceMappingURL=es2018.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map new file mode 100644 index 00000000..e8e21db9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAIrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js new file mode 100644 index 00000000..2ee6743c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2018_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2018_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2018.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map new file mode 100644 index 00000000..0bf9586c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2018.regexp.js","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts new file mode 100644 index 00000000..845c62f7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_array: Record; +//# sourceMappingURL=es2019.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map new file mode 100644 index 00000000..7c24db41 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAIpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js new file mode 100644 index 00000000..9073956d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_array = { + Array: base_config_1.TYPE, + FlatArray: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map new file mode 100644 index 00000000..5875c7ba --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.array.js","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,SAAS,EAAE,kBAAI;IACf,aAAa,EAAE,kBAAI;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts new file mode 100644 index 00000000..1d01d51d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019: Record; +//# sourceMappingURL=es2019.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map new file mode 100644 index 00000000..39a630af --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts new file mode 100644 index 00000000..d43d283b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_full: Record; +//# sourceMappingURL=es2019.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map new file mode 100644 index 00000000..2e2c2ef9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js new file mode 100644 index 00000000..548e3842 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2019_1 = require("./es2019"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2019_full = { + ...es2019_1.es2019, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2019.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map new file mode 100644 index 00000000..07df3cd5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.full.js","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts new file mode 100644 index 00000000..c560ab4a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_intl: Record; +//# sourceMappingURL=es2019.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map new file mode 100644 index 00000000..ebcc2efc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js new file mode 100644 index 00000000..32e3360c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2019.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map new file mode 100644 index 00000000..74276766 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.intl.js","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js new file mode 100644 index 00000000..af8b4ab3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019 = void 0; +const es2018_1 = require("./es2018"); +const es2019_array_1 = require("./es2019.array"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +exports.es2019 = { + ...es2018_1.es2018, + ...es2019_array_1.es2019_array, + ...es2019_object_1.es2019_object, + ...es2019_string_1.es2019_string, + ...es2019_symbol_1.es2019_symbol, + ...es2019_intl_1.es2019_intl, +}; +//# sourceMappingURL=es2019.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map new file mode 100644 index 00000000..9ffafde4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.js","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts new file mode 100644 index 00000000..317dc348 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_object: Record; +//# sourceMappingURL=es2019.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map new file mode 100644 index 00000000..8b3b3192 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js new file mode 100644 index 00000000..2d3f9c8e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_object = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.es2019_object = { + ...es2015_iterable_1.es2015_iterable, + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map new file mode 100644 index 00000000..4cee0a9c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.object.js","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts new file mode 100644 index 00000000..6400ddca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_string: Record; +//# sourceMappingURL=es2019.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map new file mode 100644 index 00000000..1b2c8b82 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js new file mode 100644 index 00000000..cd44d0d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map new file mode 100644 index 00000000..8cdce85b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.string.js","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts new file mode 100644 index 00000000..66073bcd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2019_symbol: Record; +//# sourceMappingURL=es2019.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map new file mode 100644 index 00000000..8494681c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js new file mode 100644 index 00000000..5bb7979f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2019_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.es2019_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=es2019.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map new file mode 100644 index 00000000..f5101510 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2019.symbol.js","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts new file mode 100644 index 00000000..05bbb19e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_bigint: Record; +//# sourceMappingURL=es2020.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map new file mode 100644 index 00000000..56ab0964 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js new file mode 100644 index 00000000..58e91ae9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map new file mode 100644 index 00000000..c97b00d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.bigint.js","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts new file mode 100644 index 00000000..9786e11e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020: Record; +//# sourceMappingURL=es2020.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map new file mode 100644 index 00000000..dfcb06f5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,EAUd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts new file mode 100644 index 00000000..e7ee0517 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_date: Record; +//# sourceMappingURL=es2020.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map new file mode 100644 index 00000000..01ca954e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js new file mode 100644 index 00000000..bcfa2ee6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_date = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_date = { + ...es2020_intl_1.es2020_intl, + Date: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map new file mode 100644 index 00000000..94db60f7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.date.js","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts new file mode 100644 index 00000000..67ce5201 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_full: Record; +//# sourceMappingURL=es2020.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map new file mode 100644 index 00000000..888da8d1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js new file mode 100644 index 00000000..15fabbc3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2020_1 = require("./es2020"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2020_full = { + ...es2020_1.es2020, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2020.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map new file mode 100644 index 00000000..1193ecc2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.full.js","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts new file mode 100644 index 00000000..6fe292a7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_intl: Record; +//# sourceMappingURL=es2020.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map new file mode 100644 index 00000000..5947cdf1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js new file mode 100644 index 00000000..f934de56 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_intl = void 0; +const base_config_1 = require("./base-config"); +const es2018_intl_1 = require("./es2018.intl"); +exports.es2020_intl = { + ...es2018_intl_1.es2018_intl, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2020.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map new file mode 100644 index 00000000..9a6d7e1d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.intl.js","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAC3C,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js new file mode 100644 index 00000000..57b30c03 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020 = void 0; +const es2019_1 = require("./es2019"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020 = { + ...es2019_1.es2019, + ...es2020_bigint_1.es2020_bigint, + ...es2020_date_1.es2020_date, + ...es2020_number_1.es2020_number, + ...es2020_promise_1.es2020_promise, + ...es2020_sharedmemory_1.es2020_sharedmemory, + ...es2020_string_1.es2020_string, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + ...es2020_intl_1.es2020_intl, +}; +//# sourceMappingURL=es2020.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map new file mode 100644 index 00000000..0b516166 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.js","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,6BAAa;IAChB,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts new file mode 100644 index 00000000..dff240d7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_number: Record; +//# sourceMappingURL=es2020.number.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map new file mode 100644 index 00000000..c4d193d7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js new file mode 100644 index 00000000..8f50949b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_number = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.es2020_number = { + ...es2020_intl_1.es2020_intl, + Number: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.number.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map new file mode 100644 index 00000000..b4398867 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.number.js","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts new file mode 100644 index 00000000..b45f2053 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_promise: Record; +//# sourceMappingURL=es2020.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map new file mode 100644 index 00000000..bbd33b97 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js new file mode 100644 index 00000000..ea610c08 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2020_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseFulfilledResult: base_config_1.TYPE, + PromiseRejectedResult: base_config_1.TYPE, + PromiseSettledResult: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map new file mode 100644 index 00000000..4c26bcb6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.promise.js","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts new file mode 100644 index 00000000..ebbb06c0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_sharedmemory: Record; +//# sourceMappingURL=es2020.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map new file mode 100644 index 00000000..d7037521 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAG3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js new file mode 100644 index 00000000..97e08a30 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2020_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map new file mode 100644 index 00000000..96acd864 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts new file mode 100644 index 00000000..2d116e7d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_string: Record; +//# sourceMappingURL=es2020.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map new file mode 100644 index 00000000..ca61963d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js new file mode 100644 index 00000000..5a37ea87 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_string = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +exports.es2020_string = { + ...es2015_iterable_1.es2015_iterable, + ...es2020_intl_1.es2020_intl, + ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map new file mode 100644 index 00000000..ec556aea --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.string.js","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,+CAA4C;AAC5C,uEAAoE;AAEvD,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,GAAG,yBAAW;IACd,GAAG,iDAAuB;IAC1B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts new file mode 100644 index 00000000..682c705a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2020_symbol_wellknown: Record; +//# sourceMappingURL=es2020.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map new file mode 100644 index 00000000..e83fc905 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,uBAAuB,EAM/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js new file mode 100644 index 00000000..d2542af2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2020_symbol_wellknown = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.es2020_symbol_wellknown = { + ...es2015_iterable_1.es2015_iterable, + ...es2015_symbol_1.es2015_symbol, + RegExp: base_config_1.TYPE, + RegExpStringIterator: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2020.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map new file mode 100644 index 00000000..a170f1da --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2020.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,iCAAe;IAClB,GAAG,6BAAa;IAChB,MAAM,EAAE,kBAAI;IACZ,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts new file mode 100644 index 00000000..c9ff9f6b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021: Record; +//# sourceMappingURL=es2021.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map new file mode 100644 index 00000000..e0f8e9a8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,EAMd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts new file mode 100644 index 00000000..31fc0ef7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_full: Record; +//# sourceMappingURL=es2021.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map new file mode 100644 index 00000000..88d7bb50 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js new file mode 100644 index 00000000..2465a4b0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2021_1 = require("./es2021"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2021_full = { + ...es2021_1.es2021, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2021.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map new file mode 100644 index 00000000..aa11a6bd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.full.js","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts new file mode 100644 index 00000000..4435689d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_intl: Record; +//# sourceMappingURL=es2021.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map new file mode 100644 index 00000000..aede0332 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js new file mode 100644 index 00000000..d5c1956a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2021.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map new file mode 100644 index 00000000..9da715fe --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.intl.js","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js new file mode 100644 index 00000000..86b11bb8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021 = void 0; +const es2020_1 = require("./es2020"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +exports.es2021 = { + ...es2020_1.es2020, + ...es2021_promise_1.es2021_promise, + ...es2021_string_1.es2021_string, + ...es2021_weakref_1.es2021_weakref, + ...es2021_intl_1.es2021_intl, +}; +//# sourceMappingURL=es2021.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map new file mode 100644 index 00000000..4edb4433 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.js","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts new file mode 100644 index 00000000..8eb9e9ec --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_promise: Record; +//# sourceMappingURL=es2021.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map new file mode 100644 index 00000000..50a09e7f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAItB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js new file mode 100644 index 00000000..85ed0f14 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_promise = { + AggregateError: base_config_1.TYPE_VALUE, + AggregateErrorConstructor: base_config_1.TYPE, + PromiseConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map new file mode 100644 index 00000000..0bfb4dd7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.promise.js","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts new file mode 100644 index 00000000..f54d34a0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_string: Record; +//# sourceMappingURL=es2021.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map new file mode 100644 index 00000000..8eecd383 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js new file mode 100644 index 00000000..f6c16c75 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2021_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map new file mode 100644 index 00000000..9f3d3cb5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.string.js","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts new file mode 100644 index 00000000..d7f5b674 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2021_weakref: Record; +//# sourceMappingURL=es2021.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map new file mode 100644 index 00000000..bf279179 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js new file mode 100644 index 00000000..73ca39ba --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2021_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es2021_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2021.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map new file mode 100644 index 00000000..c2889a11 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2021.weakref.js","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts new file mode 100644 index 00000000..b9d87cde --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_array: Record; +//# sourceMappingURL=es2022.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map new file mode 100644 index 00000000..ede578de --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js new file mode 100644 index 00000000..f76a4e24 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map new file mode 100644 index 00000000..c0b839eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.array.js","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts new file mode 100644 index 00000000..12bc2fb9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022: Record; +//# sourceMappingURL=es2022.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map new file mode 100644 index 00000000..1f369cd3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts new file mode 100644 index 00000000..6619e107 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_error: Record; +//# sourceMappingURL=es2022.error.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map new file mode 100644 index 00000000..25c46d44 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,YAAY,EAYpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js new file mode 100644 index 00000000..af9c5264 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js @@ -0,0 +1,23 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_error = void 0; +const base_config_1 = require("./base-config"); +const es2021_promise_1 = require("./es2021.promise"); +exports.es2022_error = { + ...es2021_promise_1.es2021_promise, + AggregateErrorConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE, + ErrorConstructor: base_config_1.TYPE, + ErrorOptions: base_config_1.TYPE, + EvalErrorConstructor: base_config_1.TYPE, + RangeErrorConstructor: base_config_1.TYPE, + ReferenceErrorConstructor: base_config_1.TYPE, + SyntaxErrorConstructor: base_config_1.TYPE, + TypeErrorConstructor: base_config_1.TYPE, + URIErrorConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.error.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map new file mode 100644 index 00000000..e0155666 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.error.js","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,qDAAkD;AAErC,QAAA,YAAY,GAAG;IAC1B,GAAG,+BAAc;IACjB,yBAAyB,EAAE,kBAAI;IAC/B,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,YAAY,EAAE,kBAAI;IAClB,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,yBAAyB,EAAE,kBAAI;IAC/B,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;CACoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts new file mode 100644 index 00000000..df141b03 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_full: Record; +//# sourceMappingURL=es2022.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map new file mode 100644 index 00000000..fd3624eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js new file mode 100644 index 00000000..aab18ad6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2022_1 = require("./es2022"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2022_full = { + ...es2022_1.es2022, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2022.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map new file mode 100644 index 00000000..529ffaef --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.full.js","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts new file mode 100644 index 00000000..2b2c0813 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_intl: Record; +//# sourceMappingURL=es2022.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map new file mode 100644 index 00000000..b72b4f63 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js new file mode 100644 index 00000000..8c9373a5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2022.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map new file mode 100644 index 00000000..d49a40b3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.intl.js","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js new file mode 100644 index 00000000..159ac906 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022 = void 0; +const es2021_1 = require("./es2021"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +exports.es2022 = { + ...es2021_1.es2021, + ...es2022_array_1.es2022_array, + ...es2022_error_1.es2022_error, + ...es2022_intl_1.es2022_intl, + ...es2022_object_1.es2022_object, + ...es2022_regexp_1.es2022_regexp, + ...es2022_string_1.es2022_string, +}; +//# sourceMappingURL=es2022.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map new file mode 100644 index 00000000..6b047d8b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.js","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,2BAAY;IACf,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts new file mode 100644 index 00000000..ffbb45d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_object: Record; +//# sourceMappingURL=es2022.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map new file mode 100644 index 00000000..951140e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js new file mode 100644 index 00000000..a03f8695 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map new file mode 100644 index 00000000..026d25d1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.object.js","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts new file mode 100644 index 00000000..1501510d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_regexp: Record; +//# sourceMappingURL=es2022.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map new file mode 100644 index 00000000..a3548a8a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js new file mode 100644 index 00000000..93cc712a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_regexp = { + RegExp: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpIndicesArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map new file mode 100644 index 00000000..a3618bd9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.regexp.js","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;IACZ,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts new file mode 100644 index 00000000..d1284cd4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2022_string: Record; +//# sourceMappingURL=es2022.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map new file mode 100644 index 00000000..6ee0b619 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js new file mode 100644 index 00000000..18621ed2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2022_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2022_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2022.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map new file mode 100644 index 00000000..4dcf0034 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2022.string.js","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts new file mode 100644 index 00000000..ef56316f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_array: Record; +//# sourceMappingURL=es2023.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map new file mode 100644 index 00000000..c92b4b27 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js new file mode 100644 index 00000000..c06c15b2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_array = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_array = { + Array: base_config_1.TYPE, + BigInt64Array: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE, + Float32Array: base_config_1.TYPE, + Float64Array: base_config_1.TYPE, + Int8Array: base_config_1.TYPE, + Int16Array: base_config_1.TYPE, + Int32Array: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map new file mode 100644 index 00000000..6fefbb19 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.array.js","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,WAAW,EAAE,kBAAI;IACjB,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts new file mode 100644 index 00000000..4f773c89 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_collection: Record; +//# sourceMappingURL=es2023.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map new file mode 100644 index 00000000..13873583 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js new file mode 100644 index 00000000..66c80e60 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_collection = { + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es2023.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map new file mode 100644 index 00000000..9210e59b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.collection.js","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts new file mode 100644 index 00000000..17e3cf0d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023: Record; +//# sourceMappingURL=es2023.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map new file mode 100644 index 00000000..de8c9830 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,MAAM,EAKd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts new file mode 100644 index 00000000..ac43b5cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_full: Record; +//# sourceMappingURL=es2023.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map new file mode 100644 index 00000000..3c65b5f8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js new file mode 100644 index 00000000..1c7ecc7a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2023_1 = require("./es2023"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2023_full = { + ...es2023_1.es2023, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2023.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map new file mode 100644 index 00000000..f3f07ca0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.full.js","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts new file mode 100644 index 00000000..e8581d3d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2023_intl: Record; +//# sourceMappingURL=es2023.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map new file mode 100644 index 00000000..33dbb147 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js new file mode 100644 index 00000000..c6a2c6ff --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023_intl = void 0; +const base_config_1 = require("./base-config"); +exports.es2023_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=es2023.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map new file mode 100644 index 00000000..85d8454f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.intl.js","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js new file mode 100644 index 00000000..1cc68e47 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2023 = void 0; +const es2022_1 = require("./es2022"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_intl_1 = require("./es2023.intl"); +exports.es2023 = { + ...es2022_1.es2022, + ...es2023_array_1.es2023_array, + ...es2023_collection_1.es2023_collection, + ...es2023_intl_1.es2023_intl, +}; +//# sourceMappingURL=es2023.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map new file mode 100644 index 00000000..3fc9f994 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2023.js","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,qCAAiB;IACpB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts new file mode 100644 index 00000000..0a80d4dc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_arraybuffer: Record; +//# sourceMappingURL=es2024.arraybuffer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map new file mode 100644 index 00000000..39fda514 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAG1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js new file mode 100644 index 00000000..be7726ed --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_arraybuffer = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_arraybuffer = { + ArrayBuffer: base_config_1.TYPE, + ArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.arraybuffer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map new file mode 100644 index 00000000..aafcc843 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.arraybuffer.js","sourceRoot":"","sources":["../../src/lib/es2024.arraybuffer.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts new file mode 100644 index 00000000..576c0a1a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_collection: Record; +//# sourceMappingURL=es2024.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map new file mode 100644 index 00000000..600c030d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js new file mode 100644 index 00000000..26cc4a66 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_collection = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_collection = { + MapConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map new file mode 100644 index 00000000..3c0f5384 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.collection.js","sourceRoot":"","sources":["../../src/lib/es2024.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts new file mode 100644 index 00000000..307c99f1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024: Record; +//# sourceMappingURL=es2024.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map new file mode 100644 index 00000000..f7185271 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts new file mode 100644 index 00000000..d875abb0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_full: Record; +//# sourceMappingURL=es2024.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map new file mode 100644 index 00000000..295d5b9d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js new file mode 100644 index 00000000..21f549f6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es2024_1 = require("./es2024"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.es2024_full = { + ...es2024_1.es2024, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=es2024.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map new file mode 100644 index 00000000..8e25e889 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.full.js","sourceRoot":"","sources":["../../src/lib/es2024.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js new file mode 100644 index 00000000..7b2cd672 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js @@ -0,0 +1,26 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024 = void 0; +const es2023_1 = require("./es2023"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +exports.es2024 = { + ...es2023_1.es2023, + ...es2024_arraybuffer_1.es2024_arraybuffer, + ...es2024_collection_1.es2024_collection, + ...es2024_object_1.es2024_object, + ...es2024_promise_1.es2024_promise, + ...es2024_regexp_1.es2024_regexp, + ...es2024_sharedmemory_1.es2024_sharedmemory, + ...es2024_string_1.es2024_string, +}; +//# sourceMappingURL=es2024.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map new file mode 100644 index 00000000..44605c7a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.js","sourceRoot":"","sources":["../../src/lib/es2024.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,6DAA0D;AAC1D,2DAAwD;AACxD,mDAAgD;AAChD,qDAAkD;AAClD,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,uCAAkB;IACrB,GAAG,qCAAiB;IACpB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts new file mode 100644 index 00000000..532a1333 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_object: Record; +//# sourceMappingURL=es2024.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map new file mode 100644 index 00000000..3a3c8a50 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js new file mode 100644 index 00000000..4af32569 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_object = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map new file mode 100644 index 00000000..a86f3b4b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.object.js","sourceRoot":"","sources":["../../src/lib/es2024.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts new file mode 100644 index 00000000..c38ec2ea --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_promise: Record; +//# sourceMappingURL=es2024.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map new file mode 100644 index 00000000..2919b17e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js new file mode 100644 index 00000000..b05487fe --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_promise = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map new file mode 100644 index 00000000..d31e7e95 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.promise.js","sourceRoot":"","sources":["../../src/lib/es2024.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts new file mode 100644 index 00000000..6c192725 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_regexp: Record; +//# sourceMappingURL=es2024.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map new file mode 100644 index 00000000..b2e8427e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js new file mode 100644 index 00000000..3b5d9d5a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map new file mode 100644 index 00000000..d4883bb6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.regexp.js","sourceRoot":"","sources":["../../src/lib/es2024.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts new file mode 100644 index 00000000..75865c5e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_sharedmemory: Record; +//# sourceMappingURL=es2024.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map new file mode 100644 index 00000000..38f6f650 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAK3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js new file mode 100644 index 00000000..9769eb27 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_sharedmemory = void 0; +const base_config_1 = require("./base-config"); +const es2020_bigint_1 = require("./es2020.bigint"); +exports.es2024_sharedmemory = { + ...es2020_bigint_1.es2020_bigint, + Atomics: base_config_1.TYPE, + SharedArrayBuffer: base_config_1.TYPE, + SharedArrayBufferConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map new file mode 100644 index 00000000..d0dca258 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2024.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,OAAO,EAAE,kBAAI;IACb,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts new file mode 100644 index 00000000..9680181f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es2024_string: Record; +//# sourceMappingURL=es2024.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map new file mode 100644 index 00000000..40b35333 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js new file mode 100644 index 00000000..eae1cb1b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es2024_string = void 0; +const base_config_1 = require("./base-config"); +exports.es2024_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=es2024.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map new file mode 100644 index 00000000..9922fdaa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es2024.string.js","sourceRoot":"","sources":["../../src/lib/es2024.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts new file mode 100644 index 00000000..24dc6090 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es5: Record; +//# sourceMappingURL=es5.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map new file mode 100644 index 00000000..143906d2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.d.ts","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EA0GX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js new file mode 100644 index 00000000..d77b03ba --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js @@ -0,0 +1,118 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es5 = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +exports.es5 = { + ...decorators_1.decorators, + ...decorators_legacy_1.decorators_legacy, + Array: base_config_1.TYPE_VALUE, + ArrayBuffer: base_config_1.TYPE_VALUE, + ArrayBufferConstructor: base_config_1.TYPE, + ArrayBufferLike: base_config_1.TYPE, + ArrayBufferTypes: base_config_1.TYPE, + ArrayBufferView: base_config_1.TYPE, + ArrayConstructor: base_config_1.TYPE, + ArrayLike: base_config_1.TYPE, + Awaited: base_config_1.TYPE, + Boolean: base_config_1.TYPE_VALUE, + BooleanConstructor: base_config_1.TYPE, + CallableFunction: base_config_1.TYPE, + Capitalize: base_config_1.TYPE, + ConcatArray: base_config_1.TYPE, + ConstructorParameters: base_config_1.TYPE, + DataView: base_config_1.TYPE_VALUE, + DataViewConstructor: base_config_1.TYPE, + Date: base_config_1.TYPE_VALUE, + DateConstructor: base_config_1.TYPE, + Error: base_config_1.TYPE_VALUE, + ErrorConstructor: base_config_1.TYPE, + EvalError: base_config_1.TYPE_VALUE, + EvalErrorConstructor: base_config_1.TYPE, + Exclude: base_config_1.TYPE, + Extract: base_config_1.TYPE, + Float32Array: base_config_1.TYPE_VALUE, + Float32ArrayConstructor: base_config_1.TYPE, + Float64Array: base_config_1.TYPE_VALUE, + Float64ArrayConstructor: base_config_1.TYPE, + Function: base_config_1.TYPE_VALUE, + FunctionConstructor: base_config_1.TYPE, + IArguments: base_config_1.TYPE, + ImportAssertions: base_config_1.TYPE, + ImportAttributes: base_config_1.TYPE, + ImportCallOptions: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + InstanceType: base_config_1.TYPE, + Int8Array: base_config_1.TYPE_VALUE, + Int8ArrayConstructor: base_config_1.TYPE, + Int16Array: base_config_1.TYPE_VALUE, + Int16ArrayConstructor: base_config_1.TYPE, + Int32Array: base_config_1.TYPE_VALUE, + Int32ArrayConstructor: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, + JSON: base_config_1.TYPE_VALUE, + Lowercase: base_config_1.TYPE, + Math: base_config_1.TYPE_VALUE, + NewableFunction: base_config_1.TYPE, + NoInfer: base_config_1.TYPE, + NonNullable: base_config_1.TYPE, + Number: base_config_1.TYPE_VALUE, + NumberConstructor: base_config_1.TYPE, + Object: base_config_1.TYPE_VALUE, + ObjectConstructor: base_config_1.TYPE, + Omit: base_config_1.TYPE, + OmitThisParameter: base_config_1.TYPE, + Parameters: base_config_1.TYPE, + Partial: base_config_1.TYPE, + Pick: base_config_1.TYPE, + Promise: base_config_1.TYPE, + PromiseConstructorLike: base_config_1.TYPE, + PromiseLike: base_config_1.TYPE, + PropertyDescriptor: base_config_1.TYPE, + PropertyDescriptorMap: base_config_1.TYPE, + PropertyKey: base_config_1.TYPE, + RangeError: base_config_1.TYPE_VALUE, + RangeErrorConstructor: base_config_1.TYPE, + Readonly: base_config_1.TYPE, + ReadonlyArray: base_config_1.TYPE, + Record: base_config_1.TYPE, + ReferenceError: base_config_1.TYPE_VALUE, + ReferenceErrorConstructor: base_config_1.TYPE, + RegExp: base_config_1.TYPE_VALUE, + RegExpConstructor: base_config_1.TYPE, + RegExpExecArray: base_config_1.TYPE, + RegExpMatchArray: base_config_1.TYPE, + Required: base_config_1.TYPE, + ReturnType: base_config_1.TYPE, + String: base_config_1.TYPE_VALUE, + StringConstructor: base_config_1.TYPE, + Symbol: base_config_1.TYPE, + SyntaxError: base_config_1.TYPE_VALUE, + SyntaxErrorConstructor: base_config_1.TYPE, + TemplateStringsArray: base_config_1.TYPE, + ThisParameterType: base_config_1.TYPE, + ThisType: base_config_1.TYPE, + TypedPropertyDescriptor: base_config_1.TYPE, + TypeError: base_config_1.TYPE_VALUE, + TypeErrorConstructor: base_config_1.TYPE, + Uint8Array: base_config_1.TYPE_VALUE, + Uint8ArrayConstructor: base_config_1.TYPE, + Uint8ClampedArray: base_config_1.TYPE_VALUE, + Uint8ClampedArrayConstructor: base_config_1.TYPE, + Uint16Array: base_config_1.TYPE_VALUE, + Uint16ArrayConstructor: base_config_1.TYPE, + Uint32Array: base_config_1.TYPE_VALUE, + Uint32ArrayConstructor: base_config_1.TYPE, + Uncapitalize: base_config_1.TYPE, + Uppercase: base_config_1.TYPE, + URIError: base_config_1.TYPE_VALUE, + URIErrorConstructor: base_config_1.TYPE, + WeakKey: base_config_1.TYPE, + WeakKeyTypes: base_config_1.TYPE, +}; +//# sourceMappingURL=es5.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map new file mode 100644 index 00000000..a2b6f144 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es5.js","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,6CAA0C;AAC1C,2DAAwD;AAE3C,QAAA,GAAG,GAAG;IACjB,GAAG,uBAAU;IACb,GAAG,qCAAiB;IACpB,KAAK,EAAE,wBAAU;IACjB,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,kBAAI;IACf,OAAO,EAAE,kBAAI;IACb,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB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WAAW,EAAE,kBAAI;IACjB,kBAAkB,EAAE,kBAAI;IACxB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,QAAQ,EAAE,kBAAI;IACd,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,eAAe,EAAE,kBAAI;IACrB,gBAAgB,EAAE,kBAAI;IACtB,QAAQ,EAAE,kBAAI;IACd,UAAU,EAAE,kBAAI;IAChB,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,iBAAiB,EAAE,kBAAI;IACvB,QAAQ,EAAE,kBAAI;IACd,uBAAuB,EAAE,kBAAI;IAC7B,SAAS,EAAE,wBAAU;IACrB,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,WAAW,EAAE,wBAAU;IACvB,sBAAsB,EAAE,kBAAI;IAC5B,YAAY,EAAE,kBAAI;IAClB,SAAS,EAAE,kBAAI;IACf,QAAQ,EAAE,wBAAU;IACpB,mBAAmB,EAAE,kBAAI;IACzB,OAAO,EAAE,kBAAI;IACb,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts new file mode 100644 index 00000000..b0fc22fa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es6: Record; +//# sourceMappingURL=es6.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map new file mode 100644 index 00000000..25745050 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.d.ts","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAa9D,eAAO,MAAM,GAAG,EAWX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js new file mode 100644 index 00000000..da4ad08c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js @@ -0,0 +1,30 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es6 = void 0; +const es5_1 = require("./es5"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.es6 = { + ...es5_1.es5, + ...es2015_core_1.es2015_core, + ...es2015_collection_1.es2015_collection, + ...es2015_iterable_1.es2015_iterable, + ...es2015_generator_1.es2015_generator, + ...es2015_promise_1.es2015_promise, + ...es2015_proxy_1.es2015_proxy, + ...es2015_reflect_1.es2015_reflect, + ...es2015_symbol_1.es2015_symbol, + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, +}; +//# sourceMappingURL=es6.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map new file mode 100644 index 00000000..04b3a572 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts new file mode 100644 index 00000000..474bbd1e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const es7: Record; +//# sourceMappingURL=es7.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map new file mode 100644 index 00000000..ef417554 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.d.ts","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EAIX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js new file mode 100644 index 00000000..9f60737d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.es7 = void 0; +const es2015_1 = require("./es2015"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_intl_1 = require("./es2016.intl"); +exports.es7 = { + ...es2015_1.es2015, + ...es2016_array_include_1.es2016_array_include, + ...es2016_intl_1.es2016_intl, +}; +//# sourceMappingURL=es7.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map new file mode 100644 index 00000000..0c45e5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"es7.js","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,GAAG,GAAG;IACjB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts new file mode 100644 index 00000000..779fb649 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_array: Record; +//# sourceMappingURL=esnext.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map new file mode 100644 index 00000000..036ead0e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAEpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js new file mode 100644 index 00000000..dd322261 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_array = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_array = { + ArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map new file mode 100644 index 00000000..a1f50999 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.array.js","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts new file mode 100644 index 00000000..0cb2d185 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_asynciterable: Record; +//# sourceMappingURL=esnext.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map new file mode 100644 index 00000000..4369b973 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,oBAAoB,EAQ5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js new file mode 100644 index 00000000..f6638067 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js @@ -0,0 +1,20 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_asynciterable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_asynciterable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + AsyncIterable: base_config_1.TYPE, + AsyncIterableIterator: base_config_1.TYPE, + AsyncIterator: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map new file mode 100644 index 00000000..902e821c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.asynciterable.js","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;IAC3B,aAAa,EAAE,kBAAI;IACnB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts new file mode 100644 index 00000000..d879c0e7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_bigint: Record; +//# sourceMappingURL=esnext.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map new file mode 100644 index 00000000..accd0f69 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js new file mode 100644 index 00000000..316694f3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_bigint = void 0; +const base_config_1 = require("./base-config"); +const es2020_intl_1 = require("./es2020.intl"); +exports.esnext_bigint = { + ...es2020_intl_1.es2020_intl, + BigInt: base_config_1.TYPE_VALUE, + BigInt64Array: base_config_1.TYPE_VALUE, + BigInt64ArrayConstructor: base_config_1.TYPE, + BigIntConstructor: base_config_1.TYPE, + BigIntToLocaleStringOptions: base_config_1.TYPE, + BigUint64Array: base_config_1.TYPE_VALUE, + BigUint64ArrayConstructor: base_config_1.TYPE, + DataView: base_config_1.TYPE, + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map new file mode 100644 index 00000000..fbfb3d27 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.bigint.js","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,wBAAU;IAClB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,iBAAiB,EAAE,kBAAI;IACvB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts new file mode 100644 index 00000000..94de9e18 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_collection: Record; +//# sourceMappingURL=esnext.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map new file mode 100644 index 00000000..b504a841 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js new file mode 100644 index 00000000..efb74f62 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js @@ -0,0 +1,16 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_collection = void 0; +const base_config_1 = require("./base-config"); +const es2024_collection_1 = require("./es2024.collection"); +exports.esnext_collection = { + ...es2024_collection_1.es2024_collection, + ReadonlySet: base_config_1.TYPE, + ReadonlySetLike: base_config_1.TYPE, + Set: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map new file mode 100644 index 00000000..e00e2113 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.collection.js","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,2DAAwD;AAE3C,QAAA,iBAAiB,GAAG;IAC/B,GAAG,qCAAiB;IACpB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,GAAG,EAAE,kBAAI;CACoC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts new file mode 100644 index 00000000..30897cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext: Record; +//# sourceMappingURL=esnext.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map new file mode 100644 index 00000000..fa915dc7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts new file mode 100644 index 00000000..b9cd30ca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_decorators: Record; +//# sourceMappingURL=esnext.decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map new file mode 100644 index 00000000..18f6d5c2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js new file mode 100644 index 00000000..de338568 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_decorators = void 0; +const base_config_1 = require("./base-config"); +const decorators_1 = require("./decorators"); +const es2015_symbol_1 = require("./es2015.symbol"); +exports.esnext_decorators = { + ...es2015_symbol_1.es2015_symbol, + ...decorators_1.decorators, + Function: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map new file mode 100644 index 00000000..99b3d9c4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.decorators.js","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AACrC,6CAA0C;AAC1C,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,uBAAU;IACb,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts new file mode 100644 index 00000000..86f4a6e6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_disposable: Record; +//# sourceMappingURL=esnext.disposable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map new file mode 100644 index 00000000..07c61bcf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,iBAAiB,EAezB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js new file mode 100644 index 00000000..9920dc32 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js @@ -0,0 +1,28 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_disposable = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +exports.esnext_disposable = { + ...es2015_symbol_1.es2015_symbol, + ...es2015_iterable_1.es2015_iterable, + ...es2018_asynciterable_1.es2018_asynciterable, + AsyncDisposable: base_config_1.TYPE, + AsyncDisposableStack: base_config_1.TYPE_VALUE, + AsyncDisposableStackConstructor: base_config_1.TYPE, + AsyncIteratorObject: base_config_1.TYPE, + Disposable: base_config_1.TYPE, + DisposableStack: base_config_1.TYPE_VALUE, + DisposableStackConstructor: base_config_1.TYPE, + IteratorObject: base_config_1.TYPE, + SuppressedError: base_config_1.TYPE_VALUE, + SuppressedErrorConstructor: base_config_1.TYPE, + SymbolConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.disposable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map new file mode 100644 index 00000000..e0516446 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.disposable.js","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AACpD,mDAAgD;AAChD,iEAA8D;AAEjD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,GAAG,2CAAoB;IACvB,eAAe,EAAE,kBAAI;IACrB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,mBAAmB,EAAE,kBAAI;IACzB,UAAU,EAAE,kBAAI;IAChB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts new file mode 100644 index 00000000..6c0fb48d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_full: Record; +//# sourceMappingURL=esnext.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map new file mode 100644 index 00000000..ef5cc83c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js new file mode 100644 index 00000000..60077f5f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_full = void 0; +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const esnext_1 = require("./esnext"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.esnext_full = { + ...esnext_1.esnext, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, + ...dom_iterable_1.dom_iterable, + ...dom_asynciterable_1.dom_asynciterable, +}; +//# sourceMappingURL=esnext.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map new file mode 100644 index 00000000..7327212a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.full.js","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts new file mode 100644 index 00000000..892587a4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_intl: Record; +//# sourceMappingURL=esnext.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map new file mode 100644 index 00000000..26224dde --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js new file mode 100644 index 00000000..cc49679a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_intl = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_intl = { + Intl: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=esnext.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map new file mode 100644 index 00000000..9d1eaeac --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.intl.js","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts new file mode 100644 index 00000000..d09f9da5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_iterator: Record; +//# sourceMappingURL=esnext.iterator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map new file mode 100644 index 00000000..fbdccfb5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,eAAe,EAIvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js new file mode 100644 index 00000000..ab1f9589 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_iterator = void 0; +const base_config_1 = require("./base-config"); +const es2015_iterable_1 = require("./es2015.iterable"); +exports.esnext_iterator = { + ...es2015_iterable_1.es2015_iterable, + Iterator: base_config_1.TYPE_VALUE, + IteratorObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.iterator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map new file mode 100644 index 00000000..59b37847 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.iterator.js","sourceRoot":"","sources":["../../src/lib/esnext.iterator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uDAAoD;AAEvC,QAAA,eAAe,GAAG;IAC7B,GAAG,iCAAe;IAClB,QAAQ,EAAE,wBAAU;IACpB,yBAAyB,EAAE,kBAAI;CACc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js new file mode 100644 index 00000000..69cce1a0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext = void 0; +const es2024_1 = require("./es2024"); +const esnext_array_1 = require("./esnext.array"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +exports.esnext = { + ...es2024_1.es2024, + ...esnext_intl_1.esnext_intl, + ...esnext_decorators_1.esnext_decorators, + ...esnext_disposable_1.esnext_disposable, + ...esnext_collection_1.esnext_collection, + ...esnext_array_1.esnext_array, + ...esnext_iterator_1.esnext_iterator, +}; +//# sourceMappingURL=esnext.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map new file mode 100644 index 00000000..f336e082 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.js","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,+CAA4C;AAC5C,uDAAoD;AAEvC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,2BAAY;IACf,GAAG,iCAAe;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts new file mode 100644 index 00000000..3e43e0b1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_object: Record; +//# sourceMappingURL=esnext.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map new file mode 100644 index 00000000..3d59cc83 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js new file mode 100644 index 00000000..8e180d68 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_object = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_object = { + ObjectConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map new file mode 100644 index 00000000..9154dd13 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.object.js","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts new file mode 100644 index 00000000..aae1ed13 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_promise: Record; +//# sourceMappingURL=esnext.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map new file mode 100644 index 00000000..4173b503 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js new file mode 100644 index 00000000..447a1ac5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js @@ -0,0 +1,13 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_promise = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_promise = { + PromiseConstructor: base_config_1.TYPE, + PromiseWithResolvers: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map new file mode 100644 index 00000000..32b45b2a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.promise.js","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,kBAAI;CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts new file mode 100644 index 00000000..acc6dda4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_regexp: Record; +//# sourceMappingURL=esnext.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map new file mode 100644 index 00000000..1672df44 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js new file mode 100644 index 00000000..819aa882 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_regexp = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_regexp = { + RegExp: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map new file mode 100644 index 00000000..0defba2a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.regexp.js","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts new file mode 100644 index 00000000..238f2890 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_string: Record; +//# sourceMappingURL=esnext.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map new file mode 100644 index 00000000..fd057738 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js new file mode 100644 index 00000000..0aab283d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_string = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_string = { + String: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map new file mode 100644 index 00000000..355d2606 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.string.js","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts new file mode 100644 index 00000000..a09a2927 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_symbol: Record; +//# sourceMappingURL=esnext.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map new file mode 100644 index 00000000..50a438b1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js new file mode 100644 index 00000000..df46aa26 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js @@ -0,0 +1,12 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_symbol = void 0; +const base_config_1 = require("./base-config"); +exports.esnext_symbol = { + Symbol: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map new file mode 100644 index 00000000..e8e636fd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.symbol.js","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts new file mode 100644 index 00000000..1f2b6727 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const esnext_weakref: Record; +//# sourceMappingURL=esnext.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map new file mode 100644 index 00000000..109aa745 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,cAAc,EAMtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js new file mode 100644 index 00000000..29f616b3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js @@ -0,0 +1,17 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.esnext_weakref = void 0; +const base_config_1 = require("./base-config"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +exports.esnext_weakref = { + ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, + FinalizationRegistry: base_config_1.TYPE_VALUE, + FinalizationRegistryConstructor: base_config_1.TYPE, + WeakRef: base_config_1.TYPE_VALUE, + WeakRefConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=esnext.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map new file mode 100644 index 00000000..3282d719 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map @@ -0,0 +1 @@ +{"version":3,"file":"esnext.weakref.js","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AACjD,uEAAoE;AAEvD,QAAA,cAAc,GAAG;IAC5B,GAAG,iDAAuB;IAC1B,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;IACrC,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts new file mode 100644 index 00000000..56ef4453 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts @@ -0,0 +1,109 @@ +declare const lib: { + readonly decorators: Record; + readonly 'decorators.legacy': Record; + readonly dom: Record; + readonly 'dom.asynciterable': Record; + readonly 'dom.iterable': Record; + readonly es5: Record; + readonly es6: Record; + readonly es7: Record; + readonly es2015: Record; + readonly 'es2015.collection': Record; + readonly 'es2015.core': Record; + readonly 'es2015.generator': Record; + readonly 'es2015.iterable': Record; + readonly 'es2015.promise': Record; + readonly 'es2015.proxy': Record; + readonly 'es2015.reflect': Record; + readonly 'es2015.symbol': Record; + readonly 'es2015.symbol.wellknown': Record; + readonly es2016: Record; + readonly 'es2016.array.include': Record; + readonly 'es2016.full': Record; + readonly 'es2016.intl': Record; + readonly es2017: Record; + readonly 'es2017.arraybuffer': Record; + readonly 'es2017.date': Record; + readonly 'es2017.full': Record; + readonly 'es2017.intl': Record; + readonly 'es2017.object': Record; + readonly 'es2017.sharedmemory': Record; + readonly 'es2017.string': Record; + readonly 'es2017.typedarrays': Record; + readonly es2018: Record; + readonly 'es2018.asyncgenerator': Record; + readonly 'es2018.asynciterable': Record; + readonly 'es2018.full': Record; + readonly 'es2018.intl': Record; + readonly 'es2018.promise': Record; + readonly 'es2018.regexp': Record; + readonly es2019: Record; + readonly 'es2019.array': Record; + readonly 'es2019.full': Record; + readonly 'es2019.intl': Record; + readonly 'es2019.object': Record; + readonly 'es2019.string': Record; + readonly 'es2019.symbol': Record; + readonly es2020: Record; + readonly 'es2020.bigint': Record; + readonly 'es2020.date': Record; + readonly 'es2020.full': Record; + readonly 'es2020.intl': Record; + readonly 'es2020.number': Record; + readonly 'es2020.promise': Record; + readonly 'es2020.sharedmemory': Record; + readonly 'es2020.string': Record; + readonly 'es2020.symbol.wellknown': Record; + readonly es2021: Record; + readonly 'es2021.full': Record; + readonly 'es2021.intl': Record; + readonly 'es2021.promise': Record; + readonly 'es2021.string': Record; + readonly 'es2021.weakref': Record; + readonly es2022: Record; + readonly 'es2022.array': Record; + readonly 'es2022.error': Record; + readonly 'es2022.full': Record; + readonly 'es2022.intl': Record; + readonly 'es2022.object': Record; + readonly 'es2022.regexp': Record; + readonly 'es2022.string': Record; + readonly es2023: Record; + readonly 'es2023.array': Record; + readonly 'es2023.collection': Record; + readonly 'es2023.full': Record; + readonly 'es2023.intl': Record; + readonly es2024: Record; + readonly 'es2024.arraybuffer': Record; + readonly 'es2024.collection': Record; + readonly 'es2024.full': Record; + readonly 'es2024.object': Record; + readonly 'es2024.promise': Record; + readonly 'es2024.regexp': Record; + readonly 'es2024.sharedmemory': Record; + readonly 'es2024.string': Record; + readonly esnext: Record; + readonly 'esnext.array': Record; + readonly 'esnext.asynciterable': Record; + readonly 'esnext.bigint': Record; + readonly 'esnext.collection': Record; + readonly 'esnext.decorators': Record; + readonly 'esnext.disposable': Record; + readonly 'esnext.full': Record; + readonly 'esnext.intl': Record; + readonly 'esnext.iterator': Record; + readonly 'esnext.object': Record; + readonly 'esnext.promise': Record; + readonly 'esnext.regexp': Record; + readonly 'esnext.string': Record; + readonly 'esnext.symbol': Record; + readonly 'esnext.weakref': Record; + readonly lib: Record; + readonly scripthost: Record; + readonly webworker: Record; + readonly 'webworker.asynciterable': Record; + readonly 'webworker.importscripts': Record; + readonly 'webworker.iterable': Record; +}; +export { lib }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map new file mode 100644 index 00000000..1508f374 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AA+GA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GC,CAAC;AAEX,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js new file mode 100644 index 00000000..67f08d37 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js @@ -0,0 +1,221 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const decorators_1 = require("./decorators"); +const decorators_legacy_1 = require("./decorators.legacy"); +const dom_1 = require("./dom"); +const dom_asynciterable_1 = require("./dom.asynciterable"); +const dom_iterable_1 = require("./dom.iterable"); +const es5_1 = require("./es5"); +const es6_1 = require("./es6"); +const es7_1 = require("./es7"); +const es2015_1 = require("./es2015"); +const es2015_collection_1 = require("./es2015.collection"); +const es2015_core_1 = require("./es2015.core"); +const es2015_generator_1 = require("./es2015.generator"); +const es2015_iterable_1 = require("./es2015.iterable"); +const es2015_promise_1 = require("./es2015.promise"); +const es2015_proxy_1 = require("./es2015.proxy"); +const es2015_reflect_1 = require("./es2015.reflect"); +const es2015_symbol_1 = require("./es2015.symbol"); +const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); +const es2016_1 = require("./es2016"); +const es2016_array_include_1 = require("./es2016.array.include"); +const es2016_full_1 = require("./es2016.full"); +const es2016_intl_1 = require("./es2016.intl"); +const es2017_1 = require("./es2017"); +const es2017_arraybuffer_1 = require("./es2017.arraybuffer"); +const es2017_date_1 = require("./es2017.date"); +const es2017_full_1 = require("./es2017.full"); +const es2017_intl_1 = require("./es2017.intl"); +const es2017_object_1 = require("./es2017.object"); +const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); +const es2017_string_1 = require("./es2017.string"); +const es2017_typedarrays_1 = require("./es2017.typedarrays"); +const es2018_1 = require("./es2018"); +const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); +const es2018_asynciterable_1 = require("./es2018.asynciterable"); +const es2018_full_1 = require("./es2018.full"); +const es2018_intl_1 = require("./es2018.intl"); +const es2018_promise_1 = require("./es2018.promise"); +const es2018_regexp_1 = require("./es2018.regexp"); +const es2019_1 = require("./es2019"); +const es2019_array_1 = require("./es2019.array"); +const es2019_full_1 = require("./es2019.full"); +const es2019_intl_1 = require("./es2019.intl"); +const es2019_object_1 = require("./es2019.object"); +const es2019_string_1 = require("./es2019.string"); +const es2019_symbol_1 = require("./es2019.symbol"); +const es2020_1 = require("./es2020"); +const es2020_bigint_1 = require("./es2020.bigint"); +const es2020_date_1 = require("./es2020.date"); +const es2020_full_1 = require("./es2020.full"); +const es2020_intl_1 = require("./es2020.intl"); +const es2020_number_1 = require("./es2020.number"); +const es2020_promise_1 = require("./es2020.promise"); +const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); +const es2020_string_1 = require("./es2020.string"); +const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); +const es2021_1 = require("./es2021"); +const es2021_full_1 = require("./es2021.full"); +const es2021_intl_1 = require("./es2021.intl"); +const es2021_promise_1 = require("./es2021.promise"); +const es2021_string_1 = require("./es2021.string"); +const es2021_weakref_1 = require("./es2021.weakref"); +const es2022_1 = require("./es2022"); +const es2022_array_1 = require("./es2022.array"); +const es2022_error_1 = require("./es2022.error"); +const es2022_full_1 = require("./es2022.full"); +const es2022_intl_1 = require("./es2022.intl"); +const es2022_object_1 = require("./es2022.object"); +const es2022_regexp_1 = require("./es2022.regexp"); +const es2022_string_1 = require("./es2022.string"); +const es2023_1 = require("./es2023"); +const es2023_array_1 = require("./es2023.array"); +const es2023_collection_1 = require("./es2023.collection"); +const es2023_full_1 = require("./es2023.full"); +const es2023_intl_1 = require("./es2023.intl"); +const es2024_1 = require("./es2024"); +const es2024_arraybuffer_1 = require("./es2024.arraybuffer"); +const es2024_collection_1 = require("./es2024.collection"); +const es2024_full_1 = require("./es2024.full"); +const es2024_object_1 = require("./es2024.object"); +const es2024_promise_1 = require("./es2024.promise"); +const es2024_regexp_1 = require("./es2024.regexp"); +const es2024_sharedmemory_1 = require("./es2024.sharedmemory"); +const es2024_string_1 = require("./es2024.string"); +const esnext_1 = require("./esnext"); +const esnext_array_1 = require("./esnext.array"); +const esnext_asynciterable_1 = require("./esnext.asynciterable"); +const esnext_bigint_1 = require("./esnext.bigint"); +const esnext_collection_1 = require("./esnext.collection"); +const esnext_decorators_1 = require("./esnext.decorators"); +const esnext_disposable_1 = require("./esnext.disposable"); +const esnext_full_1 = require("./esnext.full"); +const esnext_intl_1 = require("./esnext.intl"); +const esnext_iterator_1 = require("./esnext.iterator"); +const esnext_object_1 = require("./esnext.object"); +const esnext_promise_1 = require("./esnext.promise"); +const esnext_regexp_1 = require("./esnext.regexp"); +const esnext_string_1 = require("./esnext.string"); +const esnext_symbol_1 = require("./esnext.symbol"); +const esnext_weakref_1 = require("./esnext.weakref"); +const lib_1 = require("./lib"); +const scripthost_1 = require("./scripthost"); +const webworker_1 = require("./webworker"); +const webworker_asynciterable_1 = require("./webworker.asynciterable"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +const webworker_iterable_1 = require("./webworker.iterable"); +const lib = { + decorators: decorators_1.decorators, + 'decorators.legacy': decorators_legacy_1.decorators_legacy, + dom: dom_1.dom, + 'dom.asynciterable': dom_asynciterable_1.dom_asynciterable, + 'dom.iterable': dom_iterable_1.dom_iterable, + es5: es5_1.es5, + es6: es6_1.es6, + es7: es7_1.es7, + es2015: es2015_1.es2015, + 'es2015.collection': es2015_collection_1.es2015_collection, + 'es2015.core': es2015_core_1.es2015_core, + 'es2015.generator': es2015_generator_1.es2015_generator, + 'es2015.iterable': es2015_iterable_1.es2015_iterable, + 'es2015.promise': es2015_promise_1.es2015_promise, + 'es2015.proxy': es2015_proxy_1.es2015_proxy, + 'es2015.reflect': es2015_reflect_1.es2015_reflect, + 'es2015.symbol': es2015_symbol_1.es2015_symbol, + 'es2015.symbol.wellknown': es2015_symbol_wellknown_1.es2015_symbol_wellknown, + es2016: es2016_1.es2016, + 'es2016.array.include': es2016_array_include_1.es2016_array_include, + 'es2016.full': es2016_full_1.es2016_full, + 'es2016.intl': es2016_intl_1.es2016_intl, + es2017: es2017_1.es2017, + 'es2017.arraybuffer': es2017_arraybuffer_1.es2017_arraybuffer, + 'es2017.date': es2017_date_1.es2017_date, + 'es2017.full': es2017_full_1.es2017_full, + 'es2017.intl': es2017_intl_1.es2017_intl, + 'es2017.object': es2017_object_1.es2017_object, + 'es2017.sharedmemory': es2017_sharedmemory_1.es2017_sharedmemory, + 'es2017.string': es2017_string_1.es2017_string, + 'es2017.typedarrays': es2017_typedarrays_1.es2017_typedarrays, + es2018: es2018_1.es2018, + 'es2018.asyncgenerator': es2018_asyncgenerator_1.es2018_asyncgenerator, + 'es2018.asynciterable': es2018_asynciterable_1.es2018_asynciterable, + 'es2018.full': es2018_full_1.es2018_full, + 'es2018.intl': es2018_intl_1.es2018_intl, + 'es2018.promise': es2018_promise_1.es2018_promise, + 'es2018.regexp': es2018_regexp_1.es2018_regexp, + es2019: es2019_1.es2019, + 'es2019.array': es2019_array_1.es2019_array, + 'es2019.full': es2019_full_1.es2019_full, + 'es2019.intl': es2019_intl_1.es2019_intl, + 'es2019.object': es2019_object_1.es2019_object, + 'es2019.string': es2019_string_1.es2019_string, + 'es2019.symbol': es2019_symbol_1.es2019_symbol, + es2020: es2020_1.es2020, + 'es2020.bigint': es2020_bigint_1.es2020_bigint, + 'es2020.date': es2020_date_1.es2020_date, + 'es2020.full': es2020_full_1.es2020_full, + 'es2020.intl': es2020_intl_1.es2020_intl, + 'es2020.number': es2020_number_1.es2020_number, + 'es2020.promise': es2020_promise_1.es2020_promise, + 'es2020.sharedmemory': es2020_sharedmemory_1.es2020_sharedmemory, + 'es2020.string': es2020_string_1.es2020_string, + 'es2020.symbol.wellknown': es2020_symbol_wellknown_1.es2020_symbol_wellknown, + es2021: es2021_1.es2021, + 'es2021.full': es2021_full_1.es2021_full, + 'es2021.intl': es2021_intl_1.es2021_intl, + 'es2021.promise': es2021_promise_1.es2021_promise, + 'es2021.string': es2021_string_1.es2021_string, + 'es2021.weakref': es2021_weakref_1.es2021_weakref, + es2022: es2022_1.es2022, + 'es2022.array': es2022_array_1.es2022_array, + 'es2022.error': es2022_error_1.es2022_error, + 'es2022.full': es2022_full_1.es2022_full, + 'es2022.intl': es2022_intl_1.es2022_intl, + 'es2022.object': es2022_object_1.es2022_object, + 'es2022.regexp': es2022_regexp_1.es2022_regexp, + 'es2022.string': es2022_string_1.es2022_string, + es2023: es2023_1.es2023, + 'es2023.array': es2023_array_1.es2023_array, + 'es2023.collection': es2023_collection_1.es2023_collection, + 'es2023.full': es2023_full_1.es2023_full, + 'es2023.intl': es2023_intl_1.es2023_intl, + es2024: es2024_1.es2024, + 'es2024.arraybuffer': es2024_arraybuffer_1.es2024_arraybuffer, + 'es2024.collection': es2024_collection_1.es2024_collection, + 'es2024.full': es2024_full_1.es2024_full, + 'es2024.object': es2024_object_1.es2024_object, + 'es2024.promise': es2024_promise_1.es2024_promise, + 'es2024.regexp': es2024_regexp_1.es2024_regexp, + 'es2024.sharedmemory': es2024_sharedmemory_1.es2024_sharedmemory, + 'es2024.string': es2024_string_1.es2024_string, + esnext: esnext_1.esnext, + 'esnext.array': esnext_array_1.esnext_array, + 'esnext.asynciterable': esnext_asynciterable_1.esnext_asynciterable, + 'esnext.bigint': esnext_bigint_1.esnext_bigint, + 'esnext.collection': esnext_collection_1.esnext_collection, + 'esnext.decorators': esnext_decorators_1.esnext_decorators, + 'esnext.disposable': esnext_disposable_1.esnext_disposable, + 'esnext.full': esnext_full_1.esnext_full, + 'esnext.intl': esnext_intl_1.esnext_intl, + 'esnext.iterator': esnext_iterator_1.esnext_iterator, + 'esnext.object': esnext_object_1.esnext_object, + 'esnext.promise': esnext_promise_1.esnext_promise, + 'esnext.regexp': esnext_regexp_1.esnext_regexp, + 'esnext.string': esnext_string_1.esnext_string, + 'esnext.symbol': esnext_symbol_1.esnext_symbol, + 'esnext.weakref': esnext_weakref_1.esnext_weakref, + lib: lib_1.lib, + scripthost: scripthost_1.scripthost, + webworker: webworker_1.webworker, + 'webworker.asynciterable': webworker_asynciterable_1.webworker_asynciterable, + 'webworker.importscripts': webworker_importscripts_1.webworker_importscripts, + 'webworker.iterable': webworker_iterable_1.webworker_iterable, +}; +exports.lib = lib; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map new file mode 100644 index 00000000..c58f9ae2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAE3B,6CAA0C;AAC1C,2DAAwD;AACxD,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,qCAAkC;AAClC,2DAAwD;AACx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BAAsB,EAAE,2CAAoB;IAC5C,eAAe,EAAE,6BAAa;IAC9B,mBAAmB,EAAE,qCAAiB;IACtC,mBAAmB,EAAE,qCAAiB;IACtC,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,iBAAiB,EAAE,iCAAe;IAClC,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,GAAG,EAAE,SAAO;IACZ,UAAU,EAAV,uBAAU;IACV,SAAS,EAAT,qBAAS;IACT,yBAAyB,EAAE,iDAAuB;IAClD,yBAAyB,EAAE,iDAAuB;IAClD,oBAAoB,EAAE,uCAAkB;CAChC,CAAC;AAEF,kBAAG"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts new file mode 100644 index 00000000..a6b2263d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const lib: Record; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map new file mode 100644 index 00000000..46c421fa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,GAAG,EAKX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js new file mode 100644 index 00000000..566b4a72 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js @@ -0,0 +1,18 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lib = void 0; +const dom_1 = require("./dom"); +const es5_1 = require("./es5"); +const scripthost_1 = require("./scripthost"); +const webworker_importscripts_1 = require("./webworker.importscripts"); +exports.lib = { + ...es5_1.es5, + ...dom_1.dom, + ...webworker_importscripts_1.webworker_importscripts, + ...scripthost_1.scripthost, +}; +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map new file mode 100644 index 00000000..c0724cc5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+BAA4B;AAC5B,+BAA4B;AAC5B,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts new file mode 100644 index 00000000..4e066f50 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const scripthost: Record; +//# sourceMappingURL=scripthost.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map new file mode 100644 index 00000000..9824c2bb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.d.ts","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,UAAU,EAclB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js new file mode 100644 index 00000000..f0e5b455 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js @@ -0,0 +1,24 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.scripthost = void 0; +const base_config_1 = require("./base-config"); +exports.scripthost = { + ActiveXObject: base_config_1.TYPE_VALUE, + Date: base_config_1.TYPE, + DateConstructor: base_config_1.TYPE, + Enumerator: base_config_1.TYPE_VALUE, + EnumeratorConstructor: base_config_1.TYPE, + ITextWriter: base_config_1.TYPE, + SafeArray: base_config_1.TYPE_VALUE, + TextStreamBase: base_config_1.TYPE, + TextStreamReader: base_config_1.TYPE, + TextStreamWriter: base_config_1.TYPE, + VarDate: base_config_1.TYPE_VALUE, + VBArray: base_config_1.TYPE_VALUE, + VBArrayConstructor: base_config_1.TYPE, +}; +//# sourceMappingURL=scripthost.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map new file mode 100644 index 00000000..23d28b96 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scripthost.js","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,wBAAU;IACzB,IAAI,EAAE,kBAAI;IACV,eAAe,EAAE,kBAAI;IACrB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,SAAS,EAAE,wBAAU;IACrB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;IACnB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts new file mode 100644 index 00000000..d8da1baa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_asynciterable: Record; +//# sourceMappingURL=webworker.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map new file mode 100644 index 00000000..49751a07 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,uBAAuB,EAK/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js new file mode 100644 index 00000000..886eac52 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js @@ -0,0 +1,15 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_asynciterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_asynciterable = { + FileSystemDirectoryHandle: base_config_1.TYPE, + FileSystemDirectoryHandleAsyncIterator: base_config_1.TYPE, + ReadableStream: base_config_1.TYPE, + ReadableStreamAsyncIterator: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map new file mode 100644 index 00000000..3c404133 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.asynciterable.js","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,uBAAuB,GAAG;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,sCAAsC,EAAE,kBAAI;IAC5C,cAAc,EAAE,kBAAI;IACpB,2BAA2B,EAAE,kBAAI;CACY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts new file mode 100644 index 00000000..87c0e941 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker: Record; +//# sourceMappingURL=webworker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map new file mode 100644 index 00000000..728c2fcb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,SAAS,EA+lBjB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts new file mode 100644 index 00000000..c042e506 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_importscripts: Record; +//# sourceMappingURL=webworker.importscripts.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map new file mode 100644 index 00000000..1885ad20 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAS,MAAM,CACjD,MAAM,EACN,0BAA0B,CAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js new file mode 100644 index 00000000..06726a77 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js @@ -0,0 +1,9 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_importscripts = void 0; +exports.webworker_importscripts = {}; +//# sourceMappingURL=webworker.importscripts.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map new file mode 100644 index 00000000..4c4f6774 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.importscripts.js","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAId,QAAA,uBAAuB,GAAG,EAGtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts new file mode 100644 index 00000000..207cf1f7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts @@ -0,0 +1,3 @@ +import type { ImplicitLibVariableOptions } from '../variable'; +export declare const webworker_iterable: Record; +//# sourceMappingURL=webworker.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map new file mode 100644 index 00000000..7e3d24f8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EA6B1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js new file mode 100644 index 00000000..4d8c3378 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js @@ -0,0 +1,39 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker_iterable = void 0; +const base_config_1 = require("./base-config"); +exports.webworker_iterable = { + AbortSignal: base_config_1.TYPE, + Cache: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE, + CSSTransformValue: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE, + DOMStringList: base_config_1.TYPE, + FileList: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE, + FormData: base_config_1.TYPE, + FormDataIterator: base_config_1.TYPE, + Headers: base_config_1.TYPE, + HeadersIterator: base_config_1.TYPE, + IDBDatabase: base_config_1.TYPE, + IDBObjectStore: base_config_1.TYPE, + MessageEvent: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE, + StylePropertyMapReadOnlyIterator: base_config_1.TYPE, + SubtleCrypto: base_config_1.TYPE, + URLSearchParams: base_config_1.TYPE, + URLSearchParamsIterator: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, +}; +//# sourceMappingURL=webworker.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map new file mode 100644 index 00000000..e96fbd2c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.iterable.js","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,kBAAI;IACb,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,wBAAwB,EAAE,kBAAI;IAC9B,gCAAgC,EAAE,kBAAI;IACtC,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,uBAAuB,EAAE,kBAAI;IAC7B,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js new file mode 100644 index 00000000..537f084b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js @@ -0,0 +1,617 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +exports.webworker = void 0; +const base_config_1 = require("./base-config"); +exports.webworker = { + AbortController: base_config_1.TYPE_VALUE, + AbortSignal: base_config_1.TYPE_VALUE, + AbortSignalEventMap: base_config_1.TYPE, + AbstractWorker: base_config_1.TYPE, + AbstractWorkerEventMap: base_config_1.TYPE, + AddEventListenerOptions: base_config_1.TYPE, + AesCbcParams: base_config_1.TYPE, + AesCtrParams: base_config_1.TYPE, + AesDerivedKeyParams: base_config_1.TYPE, + AesGcmParams: base_config_1.TYPE, + AesKeyAlgorithm: base_config_1.TYPE, + AesKeyGenParams: base_config_1.TYPE, + Algorithm: base_config_1.TYPE, + AlgorithmIdentifier: base_config_1.TYPE, + AllowSharedBufferSource: base_config_1.TYPE, + AlphaOption: base_config_1.TYPE, + ANGLE_instanced_arrays: base_config_1.TYPE, + AnimationFrameProvider: base_config_1.TYPE, + AudioConfiguration: base_config_1.TYPE, + AudioData: base_config_1.TYPE_VALUE, + AudioDataCopyToOptions: base_config_1.TYPE, + AudioDataInit: base_config_1.TYPE, + AudioDataOutputCallback: base_config_1.TYPE, + AudioDecoder: base_config_1.TYPE_VALUE, + AudioDecoderConfig: base_config_1.TYPE, + AudioDecoderEventMap: base_config_1.TYPE, + AudioDecoderInit: base_config_1.TYPE, + AudioDecoderSupport: base_config_1.TYPE, + AudioEncoder: base_config_1.TYPE_VALUE, + AudioEncoderConfig: base_config_1.TYPE, + AudioEncoderEventMap: base_config_1.TYPE, + AudioEncoderInit: base_config_1.TYPE, + AudioEncoderSupport: base_config_1.TYPE, + AudioSampleFormat: base_config_1.TYPE, + AvcBitstreamFormat: base_config_1.TYPE, + AvcEncoderConfig: base_config_1.TYPE, + BigInteger: base_config_1.TYPE, + BinaryType: base_config_1.TYPE, + BitrateMode: base_config_1.TYPE, + Blob: base_config_1.TYPE_VALUE, + BlobPart: base_config_1.TYPE, + BlobPropertyBag: base_config_1.TYPE, + Body: base_config_1.TYPE, + BodyInit: base_config_1.TYPE, + BroadcastChannel: base_config_1.TYPE_VALUE, + BroadcastChannelEventMap: base_config_1.TYPE, + BufferSource: base_config_1.TYPE, + ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, + Cache: base_config_1.TYPE_VALUE, + CacheQueryOptions: base_config_1.TYPE, + CacheStorage: base_config_1.TYPE_VALUE, + CanvasCompositing: base_config_1.TYPE, + CanvasDirection: base_config_1.TYPE, + CanvasDrawImage: base_config_1.TYPE, + CanvasDrawPath: base_config_1.TYPE, + CanvasFillRule: base_config_1.TYPE, + CanvasFillStrokeStyles: base_config_1.TYPE, + CanvasFilters: base_config_1.TYPE, + CanvasFontKerning: base_config_1.TYPE, + CanvasFontStretch: base_config_1.TYPE, + CanvasFontVariantCaps: base_config_1.TYPE, + CanvasGradient: base_config_1.TYPE_VALUE, + CanvasImageData: base_config_1.TYPE, + CanvasImageSmoothing: base_config_1.TYPE, + CanvasImageSource: base_config_1.TYPE, + CanvasLineCap: base_config_1.TYPE, + CanvasLineJoin: base_config_1.TYPE, + CanvasPath: base_config_1.TYPE, + CanvasPathDrawingStyles: base_config_1.TYPE, + CanvasPattern: base_config_1.TYPE_VALUE, + CanvasRect: base_config_1.TYPE, + CanvasShadowStyles: base_config_1.TYPE, + CanvasState: base_config_1.TYPE, + CanvasText: base_config_1.TYPE, + CanvasTextAlign: base_config_1.TYPE, + CanvasTextBaseline: base_config_1.TYPE, + CanvasTextDrawingStyles: base_config_1.TYPE, + CanvasTextRendering: base_config_1.TYPE, + CanvasTransform: base_config_1.TYPE, + Client: base_config_1.TYPE_VALUE, + ClientQueryOptions: base_config_1.TYPE, + Clients: base_config_1.TYPE_VALUE, + ClientTypes: base_config_1.TYPE, + CloseEvent: base_config_1.TYPE_VALUE, + CloseEventInit: base_config_1.TYPE, + CodecState: base_config_1.TYPE, + ColorGamut: base_config_1.TYPE, + ColorSpaceConversion: base_config_1.TYPE, + CompressionFormat: base_config_1.TYPE, + CompressionStream: base_config_1.TYPE_VALUE, + Console: base_config_1.TYPE, + CountQueuingStrategy: base_config_1.TYPE_VALUE, + Crypto: base_config_1.TYPE_VALUE, + CryptoKey: base_config_1.TYPE_VALUE, + CryptoKeyPair: base_config_1.TYPE, + CSSImageValue: base_config_1.TYPE_VALUE, + CSSKeywordish: base_config_1.TYPE, + CSSKeywordValue: base_config_1.TYPE_VALUE, + CSSMathClamp: base_config_1.TYPE_VALUE, + CSSMathInvert: base_config_1.TYPE_VALUE, + CSSMathMax: base_config_1.TYPE_VALUE, + CSSMathMin: base_config_1.TYPE_VALUE, + CSSMathNegate: base_config_1.TYPE_VALUE, + CSSMathOperator: base_config_1.TYPE, + CSSMathProduct: base_config_1.TYPE_VALUE, + CSSMathSum: base_config_1.TYPE_VALUE, + CSSMathValue: base_config_1.TYPE_VALUE, + CSSMatrixComponent: base_config_1.TYPE_VALUE, + CSSMatrixComponentOptions: base_config_1.TYPE, + CSSNumberish: base_config_1.TYPE, + CSSNumericArray: base_config_1.TYPE_VALUE, + CSSNumericBaseType: base_config_1.TYPE, + CSSNumericType: base_config_1.TYPE, + CSSNumericValue: base_config_1.TYPE_VALUE, + CSSPerspective: base_config_1.TYPE_VALUE, + CSSPerspectiveValue: base_config_1.TYPE, + CSSRotate: base_config_1.TYPE_VALUE, + CSSScale: base_config_1.TYPE_VALUE, + CSSSkew: base_config_1.TYPE_VALUE, + CSSSkewX: base_config_1.TYPE_VALUE, + CSSSkewY: base_config_1.TYPE_VALUE, + CSSStyleValue: base_config_1.TYPE_VALUE, + CSSTransformComponent: base_config_1.TYPE_VALUE, + CSSTransformValue: base_config_1.TYPE_VALUE, + CSSTranslate: base_config_1.TYPE_VALUE, + CSSUnitValue: base_config_1.TYPE_VALUE, + CSSUnparsedSegment: base_config_1.TYPE, + CSSUnparsedValue: base_config_1.TYPE_VALUE, + CSSVariableReferenceValue: base_config_1.TYPE_VALUE, + CustomEvent: base_config_1.TYPE_VALUE, + CustomEventInit: base_config_1.TYPE, + DecompressionStream: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScope: base_config_1.TYPE_VALUE, + DedicatedWorkerGlobalScopeEventMap: base_config_1.TYPE, + DocumentVisibilityState: base_config_1.TYPE, + DOMException: base_config_1.TYPE_VALUE, + DOMHighResTimeStamp: base_config_1.TYPE, + DOMMatrix: base_config_1.TYPE_VALUE, + DOMMatrix2DInit: base_config_1.TYPE, + DOMMatrixInit: base_config_1.TYPE, + DOMMatrixReadOnly: base_config_1.TYPE_VALUE, + DOMPoint: base_config_1.TYPE_VALUE, + DOMPointInit: base_config_1.TYPE, + DOMPointReadOnly: base_config_1.TYPE_VALUE, + DOMQuad: base_config_1.TYPE_VALUE, + DOMQuadInit: base_config_1.TYPE, + DOMRect: base_config_1.TYPE_VALUE, + DOMRectInit: base_config_1.TYPE, + DOMRectReadOnly: base_config_1.TYPE_VALUE, + DOMStringList: base_config_1.TYPE_VALUE, + EcdhKeyDeriveParams: base_config_1.TYPE, + EcdsaParams: base_config_1.TYPE, + EcKeyGenParams: base_config_1.TYPE, + EcKeyImportParams: base_config_1.TYPE, + EncodedAudioChunk: base_config_1.TYPE_VALUE, + EncodedAudioChunkInit: base_config_1.TYPE, + EncodedAudioChunkMetadata: base_config_1.TYPE, + EncodedAudioChunkOutputCallback: base_config_1.TYPE, + EncodedAudioChunkType: base_config_1.TYPE, + EncodedVideoChunk: base_config_1.TYPE_VALUE, + EncodedVideoChunkInit: base_config_1.TYPE, + EncodedVideoChunkMetadata: base_config_1.TYPE, + EncodedVideoChunkOutputCallback: base_config_1.TYPE, + EncodedVideoChunkType: base_config_1.TYPE, + EndingType: base_config_1.TYPE, + EpochTimeStamp: base_config_1.TYPE, + ErrorEvent: base_config_1.TYPE_VALUE, + ErrorEventInit: base_config_1.TYPE, + Event: base_config_1.TYPE_VALUE, + EventInit: base_config_1.TYPE, + EventListener: base_config_1.TYPE, + EventListenerObject: base_config_1.TYPE, + EventListenerOptions: base_config_1.TYPE, + EventListenerOrEventListenerObject: base_config_1.TYPE, + EventSource: base_config_1.TYPE_VALUE, + EventSourceEventMap: base_config_1.TYPE, + EventSourceInit: base_config_1.TYPE, + EventTarget: base_config_1.TYPE_VALUE, + EXT_blend_minmax: base_config_1.TYPE, + EXT_color_buffer_float: base_config_1.TYPE, + EXT_color_buffer_half_float: base_config_1.TYPE, + EXT_float_blend: base_config_1.TYPE, + EXT_frag_depth: base_config_1.TYPE, + EXT_shader_texture_lod: base_config_1.TYPE, + EXT_sRGB: base_config_1.TYPE, + EXT_texture_compression_bptc: base_config_1.TYPE, + EXT_texture_compression_rgtc: base_config_1.TYPE, + EXT_texture_filter_anisotropic: base_config_1.TYPE, + EXT_texture_norm16: base_config_1.TYPE, + ExtendableEvent: base_config_1.TYPE_VALUE, + ExtendableEventInit: base_config_1.TYPE, + ExtendableMessageEvent: base_config_1.TYPE_VALUE, + ExtendableMessageEventInit: base_config_1.TYPE, + FetchEvent: base_config_1.TYPE_VALUE, + FetchEventInit: base_config_1.TYPE, + File: base_config_1.TYPE_VALUE, + FileList: base_config_1.TYPE_VALUE, + FilePropertyBag: base_config_1.TYPE, + FileReader: base_config_1.TYPE_VALUE, + FileReaderEventMap: base_config_1.TYPE, + FileReaderSync: base_config_1.TYPE_VALUE, + FileSystemCreateWritableOptions: base_config_1.TYPE, + FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, + FileSystemFileHandle: base_config_1.TYPE_VALUE, + FileSystemGetDirectoryOptions: base_config_1.TYPE, + FileSystemGetFileOptions: base_config_1.TYPE, + FileSystemHandle: base_config_1.TYPE_VALUE, + FileSystemHandleKind: base_config_1.TYPE, + FileSystemReadWriteOptions: base_config_1.TYPE, + FileSystemRemoveOptions: base_config_1.TYPE, + FileSystemSyncAccessHandle: base_config_1.TYPE_VALUE, + FileSystemWritableFileStream: base_config_1.TYPE_VALUE, + FileSystemWriteChunkType: base_config_1.TYPE, + Float32List: base_config_1.TYPE, + FontDisplay: base_config_1.TYPE, + FontFace: base_config_1.TYPE_VALUE, + FontFaceDescriptors: base_config_1.TYPE, + FontFaceLoadStatus: base_config_1.TYPE, + FontFaceSet: base_config_1.TYPE_VALUE, + FontFaceSetEventMap: base_config_1.TYPE, + FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, + FontFaceSetLoadEventInit: base_config_1.TYPE, + FontFaceSetLoadStatus: base_config_1.TYPE, + FontFaceSource: base_config_1.TYPE, + FormData: base_config_1.TYPE_VALUE, + FormDataEntryValue: base_config_1.TYPE, + FrameRequestCallback: base_config_1.TYPE, + FrameType: base_config_1.TYPE, + GenericTransformStream: base_config_1.TYPE, + GetNotificationOptions: base_config_1.TYPE, + GLbitfield: base_config_1.TYPE, + GLboolean: base_config_1.TYPE, + GLclampf: base_config_1.TYPE, + GLenum: base_config_1.TYPE, + GLfloat: base_config_1.TYPE, + GLint: base_config_1.TYPE, + GLint64: base_config_1.TYPE, + GLintptr: base_config_1.TYPE, + GlobalCompositeOperation: base_config_1.TYPE, + GLsizei: base_config_1.TYPE, + GLsizeiptr: base_config_1.TYPE, + GLuint: base_config_1.TYPE, + GLuint64: base_config_1.TYPE, + HardwareAcceleration: base_config_1.TYPE, + HashAlgorithmIdentifier: base_config_1.TYPE, + HdrMetadataType: base_config_1.TYPE, + Headers: base_config_1.TYPE_VALUE, + HeadersInit: base_config_1.TYPE, + HkdfParams: base_config_1.TYPE, + HmacImportParams: base_config_1.TYPE, + HmacKeyGenParams: base_config_1.TYPE, + IDBCursor: base_config_1.TYPE_VALUE, + IDBCursorDirection: base_config_1.TYPE, + IDBCursorWithValue: base_config_1.TYPE_VALUE, + IDBDatabase: base_config_1.TYPE_VALUE, + IDBDatabaseEventMap: base_config_1.TYPE, + IDBDatabaseInfo: base_config_1.TYPE, + IDBFactory: base_config_1.TYPE_VALUE, + IDBIndex: base_config_1.TYPE_VALUE, + IDBIndexParameters: base_config_1.TYPE, + IDBKeyRange: base_config_1.TYPE_VALUE, + IDBObjectStore: base_config_1.TYPE_VALUE, + IDBObjectStoreParameters: base_config_1.TYPE, + IDBOpenDBRequest: base_config_1.TYPE_VALUE, + IDBOpenDBRequestEventMap: base_config_1.TYPE, + IDBRequest: base_config_1.TYPE_VALUE, + IDBRequestEventMap: base_config_1.TYPE, + IDBRequestReadyState: base_config_1.TYPE, + IDBTransaction: base_config_1.TYPE_VALUE, + IDBTransactionDurability: base_config_1.TYPE, + IDBTransactionEventMap: base_config_1.TYPE, + IDBTransactionMode: base_config_1.TYPE, + IDBTransactionOptions: base_config_1.TYPE, + IDBValidKey: base_config_1.TYPE, + IDBVersionChangeEvent: base_config_1.TYPE_VALUE, + IDBVersionChangeEventInit: base_config_1.TYPE, + ImageBitmap: base_config_1.TYPE_VALUE, + ImageBitmapOptions: base_config_1.TYPE, + ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, + ImageBitmapRenderingContextSettings: base_config_1.TYPE, + ImageBitmapSource: base_config_1.TYPE, + ImageData: base_config_1.TYPE_VALUE, + ImageDataSettings: base_config_1.TYPE, + ImageEncodeOptions: base_config_1.TYPE, + ImageOrientation: base_config_1.TYPE, + ImageSmoothingQuality: base_config_1.TYPE, + ImportMeta: base_config_1.TYPE, + Int32List: base_config_1.TYPE, + JsonWebKey: base_config_1.TYPE, + KeyAlgorithm: base_config_1.TYPE, + KeyFormat: base_config_1.TYPE, + KeyType: base_config_1.TYPE, + KeyUsage: base_config_1.TYPE, + KHR_parallel_shader_compile: base_config_1.TYPE, + LatencyMode: base_config_1.TYPE, + Lock: base_config_1.TYPE_VALUE, + LockGrantedCallback: base_config_1.TYPE, + LockInfo: base_config_1.TYPE, + LockManager: base_config_1.TYPE_VALUE, + LockManagerSnapshot: base_config_1.TYPE, + LockMode: base_config_1.TYPE, + LockOptions: base_config_1.TYPE, + MediaCapabilities: base_config_1.TYPE_VALUE, + MediaCapabilitiesDecodingInfo: base_config_1.TYPE, + MediaCapabilitiesEncodingInfo: base_config_1.TYPE, + MediaCapabilitiesInfo: base_config_1.TYPE, + MediaConfiguration: base_config_1.TYPE, + MediaDecodingConfiguration: base_config_1.TYPE, + MediaDecodingType: base_config_1.TYPE, + MediaEncodingConfiguration: base_config_1.TYPE, + MediaEncodingType: base_config_1.TYPE, + MediaSourceHandle: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessor: base_config_1.TYPE_VALUE, + MediaStreamTrackProcessorInit: base_config_1.TYPE, + MessageChannel: base_config_1.TYPE_VALUE, + MessageEvent: base_config_1.TYPE_VALUE, + MessageEventInit: base_config_1.TYPE, + MessageEventSource: base_config_1.TYPE, + MessagePort: base_config_1.TYPE_VALUE, + MessagePortEventMap: base_config_1.TYPE, + MultiCacheQueryOptions: base_config_1.TYPE, + NamedCurve: base_config_1.TYPE, + NavigationPreloadManager: base_config_1.TYPE_VALUE, + NavigationPreloadState: base_config_1.TYPE, + NavigatorBadge: base_config_1.TYPE, + NavigatorConcurrentHardware: base_config_1.TYPE, + NavigatorID: base_config_1.TYPE, + NavigatorLanguage: base_config_1.TYPE, + NavigatorLocks: base_config_1.TYPE, + NavigatorOnLine: base_config_1.TYPE, + NavigatorStorage: base_config_1.TYPE, + Notification: base_config_1.TYPE_VALUE, + NotificationDirection: base_config_1.TYPE, + NotificationEvent: base_config_1.TYPE_VALUE, + NotificationEventInit: base_config_1.TYPE, + NotificationEventMap: base_config_1.TYPE, + NotificationOptions: base_config_1.TYPE, + NotificationPermission: base_config_1.TYPE, + OES_draw_buffers_indexed: base_config_1.TYPE, + OES_element_index_uint: base_config_1.TYPE, + OES_fbo_render_mipmap: base_config_1.TYPE, + OES_standard_derivatives: base_config_1.TYPE, + OES_texture_float: base_config_1.TYPE, + OES_texture_float_linear: base_config_1.TYPE, + OES_texture_half_float: base_config_1.TYPE, + OES_texture_half_float_linear: base_config_1.TYPE, + OES_vertex_array_object: base_config_1.TYPE, + OffscreenCanvas: base_config_1.TYPE_VALUE, + OffscreenCanvasEventMap: base_config_1.TYPE, + OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, + OffscreenRenderingContext: base_config_1.TYPE, + OffscreenRenderingContextId: base_config_1.TYPE, + OnErrorEventHandler: base_config_1.TYPE, + OnErrorEventHandlerNonNull: base_config_1.TYPE, + OpusBitstreamFormat: base_config_1.TYPE, + OpusEncoderConfig: base_config_1.TYPE, + OVR_multiview2: base_config_1.TYPE, + Path2D: base_config_1.TYPE_VALUE, + Pbkdf2Params: base_config_1.TYPE, + Performance: base_config_1.TYPE_VALUE, + PerformanceEntry: base_config_1.TYPE_VALUE, + PerformanceEntryList: base_config_1.TYPE, + PerformanceEventMap: base_config_1.TYPE, + PerformanceMark: base_config_1.TYPE_VALUE, + PerformanceMarkOptions: base_config_1.TYPE, + PerformanceMeasure: base_config_1.TYPE_VALUE, + PerformanceMeasureOptions: base_config_1.TYPE, + PerformanceObserver: base_config_1.TYPE_VALUE, + PerformanceObserverCallback: base_config_1.TYPE, + PerformanceObserverEntryList: base_config_1.TYPE_VALUE, + PerformanceObserverInit: base_config_1.TYPE, + PerformanceResourceTiming: base_config_1.TYPE_VALUE, + PerformanceServerTiming: base_config_1.TYPE_VALUE, + PermissionDescriptor: base_config_1.TYPE, + PermissionName: base_config_1.TYPE, + Permissions: base_config_1.TYPE_VALUE, + PermissionState: base_config_1.TYPE, + PermissionStatus: base_config_1.TYPE_VALUE, + PermissionStatusEventMap: base_config_1.TYPE, + PlaneLayout: base_config_1.TYPE, + PredefinedColorSpace: base_config_1.TYPE, + PremultiplyAlpha: base_config_1.TYPE, + ProgressEvent: base_config_1.TYPE_VALUE, + ProgressEventInit: base_config_1.TYPE, + PromiseRejectionEvent: base_config_1.TYPE_VALUE, + PromiseRejectionEventInit: base_config_1.TYPE, + PushEncryptionKeyName: base_config_1.TYPE, + PushEvent: base_config_1.TYPE_VALUE, + PushEventInit: base_config_1.TYPE, + PushManager: base_config_1.TYPE_VALUE, + PushMessageData: base_config_1.TYPE_VALUE, + PushMessageDataInit: base_config_1.TYPE, + PushSubscription: base_config_1.TYPE_VALUE, + PushSubscriptionJSON: base_config_1.TYPE, + PushSubscriptionOptions: base_config_1.TYPE_VALUE, + PushSubscriptionOptionsInit: base_config_1.TYPE, + QueuingStrategy: base_config_1.TYPE, + QueuingStrategyInit: base_config_1.TYPE, + QueuingStrategySize: base_config_1.TYPE, + ReadableByteStreamController: base_config_1.TYPE_VALUE, + ReadableStream: base_config_1.TYPE_VALUE, + ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, + ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, + ReadableStreamController: base_config_1.TYPE, + ReadableStreamDefaultController: base_config_1.TYPE_VALUE, + ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, + ReadableStreamGenericReader: base_config_1.TYPE, + ReadableStreamGetReaderOptions: base_config_1.TYPE, + ReadableStreamIteratorOptions: base_config_1.TYPE, + ReadableStreamReadDoneResult: base_config_1.TYPE, + ReadableStreamReader: base_config_1.TYPE, + ReadableStreamReaderMode: base_config_1.TYPE, + ReadableStreamReadResult: base_config_1.TYPE, + ReadableStreamReadValueResult: base_config_1.TYPE, + ReadableStreamType: base_config_1.TYPE, + ReadableWritablePair: base_config_1.TYPE, + ReferrerPolicy: base_config_1.TYPE, + RegistrationOptions: base_config_1.TYPE, + Report: base_config_1.TYPE_VALUE, + ReportBody: base_config_1.TYPE_VALUE, + ReportingObserver: base_config_1.TYPE_VALUE, + ReportingObserverCallback: base_config_1.TYPE, + ReportingObserverOptions: base_config_1.TYPE, + ReportList: base_config_1.TYPE, + Request: base_config_1.TYPE_VALUE, + RequestCache: base_config_1.TYPE, + RequestCredentials: base_config_1.TYPE, + RequestDestination: base_config_1.TYPE, + RequestInfo: base_config_1.TYPE, + RequestInit: base_config_1.TYPE, + RequestMode: base_config_1.TYPE, + RequestPriority: base_config_1.TYPE, + RequestRedirect: base_config_1.TYPE, + ResizeQuality: base_config_1.TYPE, + Response: base_config_1.TYPE_VALUE, + ResponseInit: base_config_1.TYPE, + ResponseType: base_config_1.TYPE, + RsaHashedImportParams: base_config_1.TYPE, + RsaHashedKeyGenParams: base_config_1.TYPE, + RsaKeyGenParams: base_config_1.TYPE, + RsaOaepParams: base_config_1.TYPE, + RsaOtherPrimesInfo: base_config_1.TYPE, + RsaPssParams: base_config_1.TYPE, + RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, + RTCEncodedAudioFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, + RTCEncodedVideoFrameMetadata: base_config_1.TYPE, + RTCEncodedVideoFrameType: base_config_1.TYPE, + RTCRtpScriptTransformer: base_config_1.TYPE_VALUE, + RTCTransformEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, + SecurityPolicyViolationEventDisposition: base_config_1.TYPE, + SecurityPolicyViolationEventInit: base_config_1.TYPE, + ServiceWorker: base_config_1.TYPE_VALUE, + ServiceWorkerContainer: base_config_1.TYPE_VALUE, + ServiceWorkerContainerEventMap: base_config_1.TYPE, + ServiceWorkerEventMap: base_config_1.TYPE, + ServiceWorkerGlobalScope: base_config_1.TYPE_VALUE, + ServiceWorkerGlobalScopeEventMap: base_config_1.TYPE, + ServiceWorkerRegistration: base_config_1.TYPE_VALUE, + ServiceWorkerRegistrationEventMap: base_config_1.TYPE, + ServiceWorkerState: base_config_1.TYPE, + ServiceWorkerUpdateViaCache: base_config_1.TYPE, + SharedWorkerGlobalScope: base_config_1.TYPE_VALUE, + SharedWorkerGlobalScopeEventMap: base_config_1.TYPE, + StorageEstimate: base_config_1.TYPE, + StorageManager: base_config_1.TYPE_VALUE, + StreamPipeOptions: base_config_1.TYPE, + StructuredSerializeOptions: base_config_1.TYPE, + StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, + SubtleCrypto: base_config_1.TYPE_VALUE, + TexImageSource: base_config_1.TYPE, + TextDecodeOptions: base_config_1.TYPE, + TextDecoder: base_config_1.TYPE_VALUE, + TextDecoderCommon: base_config_1.TYPE, + TextDecoderOptions: base_config_1.TYPE, + TextDecoderStream: base_config_1.TYPE_VALUE, + TextEncoder: base_config_1.TYPE_VALUE, + TextEncoderCommon: base_config_1.TYPE, + TextEncoderEncodeIntoResult: base_config_1.TYPE, + TextEncoderStream: base_config_1.TYPE_VALUE, + TextMetrics: base_config_1.TYPE_VALUE, + TimerHandler: base_config_1.TYPE, + Transferable: base_config_1.TYPE, + TransferFunction: base_config_1.TYPE, + Transformer: base_config_1.TYPE, + TransformerFlushCallback: base_config_1.TYPE, + TransformerStartCallback: base_config_1.TYPE, + TransformerTransformCallback: base_config_1.TYPE, + TransformStream: base_config_1.TYPE_VALUE, + TransformStreamDefaultController: base_config_1.TYPE_VALUE, + Uint32List: base_config_1.TYPE, + UnderlyingByteSource: base_config_1.TYPE, + UnderlyingDefaultSource: base_config_1.TYPE, + UnderlyingSink: base_config_1.TYPE, + UnderlyingSinkAbortCallback: base_config_1.TYPE, + UnderlyingSinkCloseCallback: base_config_1.TYPE, + UnderlyingSinkStartCallback: base_config_1.TYPE, + UnderlyingSinkWriteCallback: base_config_1.TYPE, + UnderlyingSource: base_config_1.TYPE, + UnderlyingSourceCancelCallback: base_config_1.TYPE, + UnderlyingSourcePullCallback: base_config_1.TYPE, + UnderlyingSourceStartCallback: base_config_1.TYPE, + URL: base_config_1.TYPE_VALUE, + URLSearchParams: base_config_1.TYPE_VALUE, + VideoColorPrimaries: base_config_1.TYPE, + VideoColorSpace: base_config_1.TYPE_VALUE, + VideoColorSpaceInit: base_config_1.TYPE, + VideoConfiguration: base_config_1.TYPE, + VideoDecoder: base_config_1.TYPE_VALUE, + VideoDecoderConfig: base_config_1.TYPE, + VideoDecoderEventMap: base_config_1.TYPE, + VideoDecoderInit: base_config_1.TYPE, + VideoDecoderSupport: base_config_1.TYPE, + VideoEncoder: base_config_1.TYPE_VALUE, + VideoEncoderBitrateMode: base_config_1.TYPE, + VideoEncoderConfig: base_config_1.TYPE, + VideoEncoderEncodeOptions: base_config_1.TYPE, + VideoEncoderEncodeOptionsForAvc: base_config_1.TYPE, + VideoEncoderEventMap: base_config_1.TYPE, + VideoEncoderInit: base_config_1.TYPE, + VideoEncoderSupport: base_config_1.TYPE, + VideoFrame: base_config_1.TYPE_VALUE, + VideoFrameBufferInit: base_config_1.TYPE, + VideoFrameCopyToOptions: base_config_1.TYPE, + VideoFrameInit: base_config_1.TYPE, + VideoFrameOutputCallback: base_config_1.TYPE, + VideoMatrixCoefficients: base_config_1.TYPE, + VideoPixelFormat: base_config_1.TYPE, + VideoTransferCharacteristics: base_config_1.TYPE, + VoidFunction: base_config_1.TYPE, + WebAssembly: base_config_1.TYPE_VALUE, + WebCodecsErrorCallback: base_config_1.TYPE, + WEBGL_color_buffer_float: base_config_1.TYPE, + WEBGL_compressed_texture_astc: base_config_1.TYPE, + WEBGL_compressed_texture_etc: base_config_1.TYPE, + WEBGL_compressed_texture_etc1: base_config_1.TYPE, + WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc: base_config_1.TYPE, + WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, + WEBGL_debug_renderer_info: base_config_1.TYPE, + WEBGL_debug_shaders: base_config_1.TYPE, + WEBGL_depth_texture: base_config_1.TYPE, + WEBGL_draw_buffers: base_config_1.TYPE, + WEBGL_lose_context: base_config_1.TYPE, + WEBGL_multi_draw: base_config_1.TYPE, + WebGL2RenderingContext: base_config_1.TYPE_VALUE, + WebGL2RenderingContextBase: base_config_1.TYPE, + WebGL2RenderingContextOverloads: base_config_1.TYPE, + WebGLActiveInfo: base_config_1.TYPE_VALUE, + WebGLBuffer: base_config_1.TYPE_VALUE, + WebGLContextAttributes: base_config_1.TYPE, + WebGLContextEvent: base_config_1.TYPE_VALUE, + WebGLContextEventInit: base_config_1.TYPE, + WebGLFramebuffer: base_config_1.TYPE_VALUE, + WebGLPowerPreference: base_config_1.TYPE, + WebGLProgram: base_config_1.TYPE_VALUE, + WebGLQuery: base_config_1.TYPE_VALUE, + WebGLRenderbuffer: base_config_1.TYPE_VALUE, + WebGLRenderingContext: base_config_1.TYPE_VALUE, + WebGLRenderingContextBase: base_config_1.TYPE, + WebGLRenderingContextOverloads: base_config_1.TYPE, + WebGLSampler: base_config_1.TYPE_VALUE, + WebGLShader: base_config_1.TYPE_VALUE, + WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, + WebGLSync: base_config_1.TYPE_VALUE, + WebGLTexture: base_config_1.TYPE_VALUE, + WebGLTransformFeedback: base_config_1.TYPE_VALUE, + WebGLUniformLocation: base_config_1.TYPE_VALUE, + WebGLVertexArrayObject: base_config_1.TYPE_VALUE, + WebGLVertexArrayObjectOES: base_config_1.TYPE, + WebSocket: base_config_1.TYPE_VALUE, + WebSocketEventMap: base_config_1.TYPE, + WebTransport: base_config_1.TYPE_VALUE, + WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, + WebTransportCloseInfo: base_config_1.TYPE, + WebTransportCongestionControl: base_config_1.TYPE, + WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, + WebTransportError: base_config_1.TYPE_VALUE, + WebTransportErrorOptions: base_config_1.TYPE, + WebTransportErrorSource: base_config_1.TYPE, + WebTransportHash: base_config_1.TYPE, + WebTransportOptions: base_config_1.TYPE, + WebTransportSendStreamOptions: base_config_1.TYPE, + WindowClient: base_config_1.TYPE_VALUE, + WindowOrWorkerGlobalScope: base_config_1.TYPE, + Worker: base_config_1.TYPE_VALUE, + WorkerEventMap: base_config_1.TYPE, + WorkerGlobalScope: base_config_1.TYPE_VALUE, + WorkerGlobalScopeEventMap: base_config_1.TYPE, + WorkerLocation: base_config_1.TYPE_VALUE, + WorkerNavigator: base_config_1.TYPE_VALUE, + WorkerOptions: base_config_1.TYPE, + WorkerType: base_config_1.TYPE, + WritableStream: base_config_1.TYPE_VALUE, + WritableStreamDefaultController: base_config_1.TYPE_VALUE, + WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, + WriteCommandType: base_config_1.TYPE, + WriteParams: base_config_1.TYPE, + XMLHttpRequest: base_config_1.TYPE_VALUE, + XMLHttpRequestBodyInit: base_config_1.TYPE, + XMLHttpRequestEventMap: base_config_1.TYPE, + XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, + XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, + XMLHttpRequestResponseType: base_config_1.TYPE, + XMLHttpRequestUpload: base_config_1.TYPE_VALUE, +}; +//# sourceMappingURL=webworker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map new file mode 100644 index 00000000..a9956c68 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webworker.js","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAI3B,+CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,eAAe,EAAE,wBAAU;IAC3B,WAAW,EAAE,wBAAU;IACvB,mBAAmB,EAAE,kBAAI;IACzB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,SAAS,EAAE,kBAAI;IACf,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,kBAAkB,EAAE,kBAAI;IACxB,SAAS,EAAE,wBAAU;IACrB,sBAAsB,EAAE,kBAAI;IAC5B,aAAa,EAAE,kBAAI;IACnB,uBAAuB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;IAClC,yBAAyB,EAAE,kBAAI;IAC/B,SAAS,EAAE,wBAAU;IACrB,iBAAiB,EAAE,kBAAI;IACvB,YAAY,EAAE,wBAAU;IACxB,+BAA+B,EAAE,wBAAU;IAC3C,qBAAqB,EAAE,kBAAI;IAC3B,6BAA6B,EAAE,kBAAI;IACnC,gCAAgC,EAAE,wBAAU;IAC5C,iBAAiB,EAAE,wBAAU;IAC7B,wBAAwB,EAAE,kBAAI;IAC9B,uBAAuB,EAAE,kBAAI;IAC7B,gBAAgB,EAAE,kBAAI;IACtB,mBAAmB,EAAE,kBAAI;IACzB,6BAA6B,EAAE,kBAAI;IACnC,YAAY,EAAE,wBAAU;IACxB,yBAAyB,EAAE,kBAAI;IAC/B,MAAM,EAAE,wBAAU;IAClB,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,wBAAU;IAC7B,yBAAyB,EAAE,kBAAI;IAC/B,cAAc,EAAE,wBAAU;IAC1B,eAAe,EAAE,wBAAU;IAC3B,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,cAAc,EAAE,wBAAU;IAC1B,+BAA+B,EAAE,wBAAU;IAC3C,2BAA2B,EAAE,wBAAU;IACvC,gBAAgB,EAAE,kBAAI;IACtB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,wBAAU;IAC1B,sBAAsB,EAAE,kBAAI;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,yBAAyB,EAAE,wBAAU;IACrC,iCAAiC,EAAE,kBAAI;IACvC,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts new file mode 100644 index 00000000..42aecaa6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ClassVisitor extends Visitor { + #private; + constructor(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression); + static visit(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + visit(node: TSESTree.Node | null | undefined): void; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitMethod(node: TSESTree.MethodDefinition): void; + protected visitMethodFunction(node: TSESTree.FunctionExpression, methodNode: TSESTree.MethodDefinition): void; + protected visitPropertyBase(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition): void; + protected visitPropertyDefinition(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected AccessorProperty(node: TSESTree.AccessorProperty): void; + protected ClassBody(node: TSESTree.ClassBody): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MethodDefinition(node: TSESTree.MethodDefinition): void; + protected PrivateIdentifier(): void; + protected PropertyDefinition(node: TSESTree.PropertyDefinition): void; + protected StaticBlock(node: TSESTree.StaticBlock): void; + protected TSAbstractAccessorProperty(node: TSESTree.TSAbstractAccessorProperty): void; + protected TSAbstractMethodDefinition(node: TSESTree.TSAbstractMethodDefinition): void; + protected TSAbstractPropertyDefinition(node: TSESTree.TSAbstractPropertyDefinition): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; +} +export { ClassVisitor }; +//# sourceMappingURL=ClassVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map new file mode 100644 index 00000000..df5afab2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,YAAa,SAAQ,OAAO;;gBAK9B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe;IAO5D,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,GACzD,IAAI;IAKP,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAanD,SAAS,CAAC,UAAU,CAClB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,GACzD,IAAI;IAgCP,SAAS,CAAC,oCAAoC,CAC5C,IAAI,EAAE,QAAQ,CAAC,SAAS,GACvB,IAAI;IAaP,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAc5D,SAAS,CAAC,mBAAmB,CAC3B,IAAI,EAAE,QAAQ,CAAC,kBAAkB,EACjC,UAAU,EAAE,QAAQ,CAAC,gBAAgB,GACpC,IAAI;IA2GP,SAAS,CAAC,iBAAiB,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,IAAI;CAGlE;AAsCD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js new file mode 100644 index 00000000..1384c5c0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js @@ -0,0 +1,266 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +class ClassVisitor extends Visitor_1.Visitor { + #classNode; + #referencer; + constructor(referencer, node) { + super(referencer); + this.#referencer = referencer; + this.#classNode = node; + } + static visit(referencer, node) { + const classVisitor = new ClassVisitor(referencer, node); + classVisitor.visitClass(node); + } + visit(node) { + // make sure we only handle the nodes we are designed to handle + if (node && node.type in this) { + super.visit(node); + } + else { + this.#referencer.visit(node); + } + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + if (node.type === types_1.AST_NODE_TYPES.ClassDeclaration && node.id) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + this.#referencer.scopeManager.nestClassScope(node); + if (node.id) { + // define the class name again inside the new scope + // references to the class should not resolve directly to the parent class + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); + } + this.#referencer.visit(node.superClass); + // visit the type param declarations + this.visitType(node.typeParameters); + // then the usages + this.visitType(node.superTypeArguments); + node.implements.forEach(imp => this.visitType(imp)); + this.visit(node.body); + this.#referencer.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + } + } + visitMethod(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value.type === types_1.AST_NODE_TYPES.FunctionExpression) { + this.visitMethodFunction(node.value, node); + } + else { + this.#referencer.visit(node.value); + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitMethodFunction(node, methodNode) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.#referencer.scopeManager.nestFunctionExpressionNameScope(node); + } + // Consider this function is in the MethodDefinition. + this.#referencer.scopeManager.nestFunctionScope(node, true); + /** + * class A { + * @meta // <--- check this + * foo(a: Type) {} + * + * @meta // <--- check this + * foo(): Type {} + * } + */ + let withMethodDecorators = !!methodNode.decorators.length; + /** + * class A { + * foo( + * @meta // <--- check this + * a: Type + * ) {} + * + * set foo( + * @meta // <--- EXCEPT this. TS do nothing for this + * a: Type + * ) {} + * } + */ + withMethodDecorators ||= + methodNode.kind !== 'set' && + node.params.some(param => param.decorators.length); + if (!withMethodDecorators && methodNode.kind === 'set') { + const keyName = getLiteralMethodKeyName(methodNode); + /** + * class A { + * @meta // <--- check this + * get a() {} + * set ['a'](v: Type) {} + * } + */ + if (keyName != null && + this.#classNode.body.body.find((node) => node !== methodNode && + node.type === types_1.AST_NODE_TYPES.MethodDefinition && + // Node must both be static or not + node.static === methodNode.static && + getLiteralMethodKeyName(node) === keyName)?.decorators.length) { + withMethodDecorators = true; + } + } + /** + * @meta // <--- check this + * class A { + * constructor(a: Type) {} + * } + */ + if (!withMethodDecorators && + methodNode.kind === 'constructor' && + this.#classNode.decorators.length) { + withMethodDecorators = true; + } + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.#referencer.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + this.#referencer.visitChildren(node.body); + this.#referencer.close(node); + } + visitPropertyBase(node) { + if (node.computed) { + this.#referencer.visit(node.key); + } + if (node.value) { + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.scopeManager.nestClassFieldInitializerScope(node.value); + } + this.#referencer.visit(node.value); + if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || + node.type === types_1.AST_NODE_TYPES.AccessorProperty) { + this.#referencer.close(node.value); + } + } + node.decorators.forEach(d => this.#referencer.visit(d)); + } + visitPropertyDefinition(node) { + this.visitPropertyBase(node); + /** + * class A { + * @meta // <--- check this + * foo: Type; + * } + */ + this.visitType(node.typeAnnotation); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this.#referencer, node); + } + ///////////////////// + // Visit selectors // + ///////////////////// + AccessorProperty(node) { + this.visitPropertyDefinition(node); + } + ClassBody(node) { + // this is here on purpose so that this visitor explicitly declares visitors + // for all nodes it cares about (see the instance visit method above) + this.visitChildren(node); + } + Identifier(node) { + this.#referencer.visit(node); + } + MethodDefinition(node) { + this.visitMethod(node); + } + PrivateIdentifier() { + // intentionally skip + } + PropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + StaticBlock(node) { + this.#referencer.scopeManager.nestClassStaticBlockScope(node); + node.body.forEach(b => this.visit(b)); + this.#referencer.close(node); + } + TSAbstractAccessorProperty(node) { + this.visitPropertyDefinition(node); + } + TSAbstractMethodDefinition(node) { + this.visitPropertyBase(node); + } + TSAbstractPropertyDefinition(node) { + this.visitPropertyDefinition(node); + } + TSIndexSignature(node) { + this.visitType(node); + } +} +exports.ClassVisitor = ClassVisitor; +/** + * Only if key is one of [identifier, string, number], ts will combine metadata of accessors . + * class A { + * get a() {} + * set ['a'](v: Type) {} + * + * get [1]() {} + * set [1](v: Type) {} + * + * // Following won't be combined + * get [key]() {} + * set [key](v: Type) {} + * + * get [true]() {} + * set [true](v: Type) {} + * + * get ['a'+'b']() {} + * set ['a'+'b']() {} + * } + */ +function getLiteralMethodKeyName(node) { + if (node.computed && node.key.type === types_1.AST_NODE_TYPES.Literal) { + if (typeof node.key.value === 'string' || + typeof node.key.value === 'number') { + return node.key.value; + } + } + else if (!node.computed && node.key.type === types_1.AST_NODE_TYPES.Identifier) { + return node.key.name; + } + return null; +} +//# sourceMappingURL=ClassVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map new file mode 100644 index 00000000..b43ce036 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,8CAAyE;AACzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IACvB,UAAU,CAAuD;IACjE,WAAW,CAAa;IAEjC,YACE,UAAsB,EACtB,IAA0D;QAE1D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,IAA0D;QAE1D,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACxD,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;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AAK,KAAK,QAAQ,EAClC,CAAC;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACxB,CAAC;IACH,CAAC;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts new file mode 100644 index 00000000..1b78cb84 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +type ExportNode = TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration; +declare class ExportVisitor extends Visitor { + #private; + constructor(node: ExportNode, referencer: Referencer); + static visit(referencer: Referencer, node: ExportNode): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ExportSpecifier(node: TSESTree.ExportSpecifier): void; + protected Identifier(node: TSESTree.Identifier): void; +} +export { ExportVisitor }; +//# sourceMappingURL=ExportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map new file mode 100644 index 00000000..0b07ac45 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GACX,QAAQ,CAAC,oBAAoB,GAC7B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,sBAAsB,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAMpD,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAK5D,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAaP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAgBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAgB/D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAStD;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js new file mode 100644 index 00000000..ae8fade8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js @@ -0,0 +1,72 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const Visitor_1 = require("./Visitor"); +class ExportVisitor extends Visitor_1.Visitor { + #exportNode; + #referencer; + constructor(node, referencer) { + super(referencer); + this.#exportNode = node; + this.#referencer = referencer; + } + static visit(referencer, node) { + const exportReferencer = new ExportVisitor(node, referencer); + exportReferencer.visit(node); + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + // export default A; + // this could be a type or a variable + this.visit(node.declaration); + } + else { + // export const a = 1; + // export something(); + // etc + // these not included in the scope of this visitor as they are all guaranteed to be values or declare variables + } + } + ExportNamedDeclaration(node) { + if (node.source) { + // export ... from 'foo'; + // these are external identifiers so there shouldn't be references or defs + return; + } + if (!node.declaration) { + // export { x }; + this.visitChildren(node); + } + else { + // export const x = 1; + // this is not included in the scope of this visitor as it creates a variable + } + } + ExportSpecifier(node) { + if (node.exportKind === 'type' && + node.local.type === types_1.AST_NODE_TYPES.Identifier) { + // export { type T }; + // type exports can only reference types + // + // we can't let this fall through to the Identifier selector because the exportKind is on this node + // and we don't have access to the `.parent` during scope analysis + this.#referencer.currentScope().referenceType(node.local); + } + else { + this.visit(node.local); + } + } + Identifier(node) { + if (this.#exportNode.exportKind === 'type') { + // export type { T }; + // type exports can only reference types + this.#referencer.currentScope().referenceType(node); + } + else { + this.#referencer.currentScope().referenceDualValueType(node); + } + } +} +exports.ExportVisitor = ExportVisitor; +//# sourceMappingURL=ExportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map new file mode 100644 index 00000000..474e3abd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map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AAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAC7C,CAAC;YACD,qBAAqB;YACrB,wCAAwC;YACxC,EAAE;YACF,mGAAmG;YACnG,kEAAkE;YAClE,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAES,UAAU,CAAC,IAAyB;QAC5C,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC3C,qBAAqB;YACrB,wCAAwC;YACxC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts new file mode 100644 index 00000000..bb2f9b44 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts @@ -0,0 +1,14 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class ImportVisitor extends Visitor { + #private; + constructor(declaration: TSESTree.ImportDeclaration, referencer: Referencer); + static visit(referencer: Referencer, declaration: TSESTree.ImportDeclaration): void; + protected ImportDefaultSpecifier(node: TSESTree.ImportDefaultSpecifier): void; + protected ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void; + protected ImportSpecifier(node: TSESTree.ImportSpecifier): void; + protected visitImport(id: TSESTree.Identifier, specifier: TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier): void; +} +export { ImportVisitor }; +//# sourceMappingURL=ImportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map new file mode 100644 index 00000000..5eb27d7a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU;IAM3E,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,GACtC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAKP,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAKP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,WAAW,CACnB,EAAE,EAAE,QAAQ,CAAC,UAAU,EACvB,SAAS,EACL,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GAC3B,IAAI;CAQR;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js new file mode 100644 index 00000000..73db475b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportVisitor = void 0; +const definition_1 = require("../definition"); +const Visitor_1 = require("./Visitor"); +class ImportVisitor extends Visitor_1.Visitor { + #declaration; + #referencer; + constructor(declaration, referencer) { + super(referencer); + this.#declaration = declaration; + this.#referencer = referencer; + } + static visit(referencer, declaration) { + const importReferencer = new ImportVisitor(declaration, referencer); + importReferencer.visit(declaration); + } + ImportDefaultSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportNamespaceSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + ImportSpecifier(node) { + const local = node.local; + this.visitImport(local, node); + } + visitImport(id, specifier) { + this.#referencer + .currentScope() + .defineIdentifier(id, new definition_1.ImportBindingDefinition(id, specifier, this.#declaration)); + } +} +exports.ImportVisitor = ImportVisitor; +//# sourceMappingURL=ImportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map new file mode 100644 index 00000000..f7a18a65 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":";;;AAIA,8CAAwD;AACxD,uCAAoC;AAEpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,YAAY,CAA6B;IACzC,WAAW,CAAa;IAEjC,YAAY,WAAuC,EAAE,UAAsB;QACzE,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,WAAuC;QAEvC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACpE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,WAAW,CACnB,EAAuB,EACvB,SAG4B;QAE5B,IAAI,CAAC,WAAW;aACb,YAAY,EAAE;aACd,gBAAgB,CACf,EAAE,EACF,IAAI,oCAAuB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC9D,CAAC;IACN,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts new file mode 100644 index 00000000..63b8a0b0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts @@ -0,0 +1,29 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { + assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[]; + rest: boolean; + topLevel: boolean; +}) => void; +type PatternVisitorOptions = VisitorOptions; +declare class PatternVisitor extends VisitorBase { + #private; + readonly rightHandNodes: TSESTree.Node[]; + constructor(options: PatternVisitorOptions, rootPattern: TSESTree.Node, callback: PatternVisitorCallback); + static isPattern(node: TSESTree.Node): node is TSESTree.ArrayPattern | TSESTree.AssignmentPattern | TSESTree.Identifier | TSESTree.ObjectPattern | TSESTree.RestElement | TSESTree.SpreadElement; + protected ArrayExpression(node: TSESTree.ArrayExpression): void; + protected ArrayPattern(pattern: TSESTree.ArrayPattern): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected AssignmentPattern(pattern: TSESTree.AssignmentPattern): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected Decorator(): void; + protected Identifier(pattern: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected Property(property: TSESTree.Property): void; + protected RestElement(pattern: TSESTree.RestElement): void; + protected SpreadElement(node: TSESTree.SpreadElement): void; + protected TSTypeAnnotation(): void; +} +export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, }; +//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map new file mode 100644 index 00000000..58c2a660 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,WAAW,EAAE,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAC5E,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,KACE,IAAI,CAAC;AAEV,KAAK,qBAAqB,GAAG,cAAc,CAAC;AAC5C,cAAM,cAAe,SAAQ,WAAW;;IAStC,SAAgB,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAM;gBAGnD,OAAO,EAAE,qBAAqB,EAC9B,WAAW,EAAE,QAAQ,CAAC,IAAI,EAC1B,QAAQ,EAAE,sBAAsB;WAOpB,SAAS,CACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,IAAI,IACH,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,UAAU,GACnB,QAAQ,CAAC,aAAa,GACtB,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,aAAa;IAa1B,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,YAAY,GAAG,IAAI;IAM5D,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,oBAAoB,GAAG,IAAI;IAOzE,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAOtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,GAAG,IAAI;IAQ7D,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUxD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAUjE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI;IAYrD,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAM1D,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAI3D,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC;AAED,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js new file mode 100644 index 00000000..85751e8a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PatternVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const VisitorBase_1 = require("./VisitorBase"); +class PatternVisitor extends VisitorBase_1.VisitorBase { + #assignments = []; + #callback; + #restElements = []; + #rootPattern; + rightHandNodes = []; + constructor(options, rootPattern, callback) { + super(options); + this.#rootPattern = rootPattern; + this.#callback = callback; + } + static isPattern(node) { + const nodeType = node.type; + return (nodeType === types_1.AST_NODE_TYPES.Identifier || + nodeType === types_1.AST_NODE_TYPES.ObjectPattern || + nodeType === types_1.AST_NODE_TYPES.ArrayPattern || + nodeType === types_1.AST_NODE_TYPES.SpreadElement || + nodeType === types_1.AST_NODE_TYPES.RestElement || + nodeType === types_1.AST_NODE_TYPES.AssignmentPattern); + } + ArrayExpression(node) { + node.elements.forEach(this.visit, this); + } + ArrayPattern(pattern) { + for (const element of pattern.elements) { + this.visit(element); + } + } + AssignmentExpression(node) { + this.#assignments.push(node); + this.visit(node.left); + this.rightHandNodes.push(node.right); + this.#assignments.pop(); + } + AssignmentPattern(pattern) { + this.#assignments.push(pattern); + this.visit(pattern.left); + this.rightHandNodes.push(pattern.right); + this.#assignments.pop(); + } + CallExpression(node) { + // arguments are right hand nodes. + node.arguments.forEach(a => { + this.rightHandNodes.push(a); + }); + this.visit(node.callee); + } + Decorator() { + // don't visit any decorators when exploring a pattern + } + Identifier(pattern) { + const lastRestElement = this.#restElements.at(-1); + this.#callback(pattern, { + assignments: this.#assignments, + rest: lastRestElement?.argument === pattern, + topLevel: pattern === this.#rootPattern, + }); + } + MemberExpression(node) { + // Computed property's key is a right hand node. + if (node.computed) { + this.rightHandNodes.push(node.property); + } + // the object is only read, write to its property. + this.rightHandNodes.push(node.object); + } + Property(property) { + // Computed property's key is a right hand node. + if (property.computed) { + this.rightHandNodes.push(property.key); + } + // If it's shorthand, its key is same as its value. + // If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern). + // If it's not shorthand, the name of new variable is its value's. + this.visit(property.value); + } + RestElement(pattern) { + this.#restElements.push(pattern); + this.visit(pattern.argument); + this.#restElements.pop(); + } + SpreadElement(node) { + this.visit(node.argument); + } + TSTypeAnnotation() { + // we don't want to visit types + } +} +exports.PatternVisitor = PatternVisitor; +//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map new file mode 100644 index 00000000..03e66cb1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAI1D,+CAA4C;AAY5C,MAAM,cAAe,SAAQ,yBAAW;IAC7B,YAAY,GAGf,EAAE,CAAC;IACA,SAAS,CAAyB;IAClC,aAAa,GAA2B,EAAE,CAAC;IAC3C,YAAY,CAAgB;IAErB,cAAc,GAAoB,EAAE,CAAC;IAErD,YACE,OAA8B,EAC9B,WAA0B,EAC1B,QAAgC;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,SAAS,CACrB,IAAmB;QAQnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,OAAO,CACL,QAAQ,KAAK,sBAAc,CAAC,UAAU;YACtC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,YAAY;YACxC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,WAAW;YACvC,QAAQ,KAAK,sBAAc,CAAC,iBAAiB,CAC9C,CAAC;IACJ,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,IAAI,CAAC,QAA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AO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,IAAI,EAAE,eAAe,EAAE,QAAQ,KAAK,OAAO;YAC3C,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY;SACxC,CAAC,CAAC;IACL,CAAC;IAES,gBAAgB,CAAC,IAA+B;QACxD,gDAAgD;QAChD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;QAED,kDAAkD;QAClD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAES,QAAQ,CAAC,QAA2B;QAC5C,gDAAgD;QAChD,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;QAED,mDAAmD;QACnD,mHAAmH;QACnH,kEAAkE;QAClE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAES,WAAW,CAAC,OAA6B;QACjD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;IAC3B,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,+BAA+B;IACjC,CAAC;CACF;AAGC,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts new file mode 100644 index 00000000..1ffe72da --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts @@ -0,0 +1,89 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { Variable } from '../variable'; +declare enum ReferenceFlag { + Read = 1, + Write = 2, + ReadWrite = 3 +} +interface ReferenceImplicitGlobal { + node: TSESTree.Node; + pattern: TSESTree.BindingName; + ref?: Reference; +} +declare enum ReferenceTypeFlag { + Value = 1, + Type = 2 +} +/** + * A Reference represents a single occurrence of an identifier in code. + */ +declare class Reference { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * Reference to the enclosing Scope. + * @public + */ + readonly from: Scope; + /** + * Identifier syntax node. + * @public + */ + readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + readonly init?: boolean; + readonly maybeImplicitGlobal?: ReferenceImplicitGlobal | null; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved: Variable | null; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + readonly writeExpr?: TSESTree.Node | null; + constructor(identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag); + /** + * True if this reference can reference types + */ + get isTypeReference(): boolean; + /** + * True if this reference can reference values + */ + get isValueReference(): boolean; + /** + * Whether the reference is writeable. + * @public + */ + isWrite(): boolean; + /** + * Whether the reference is readable. + * @public + */ + isRead(): boolean; + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly(): boolean; + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly(): boolean; + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite(): boolean; +} +export { Reference, ReferenceFlag, type ReferenceImplicitGlobal, ReferenceTypeFlag, }; +//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map new file mode 100644 index 00000000..093cc331 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,aAAK,aAAa;IAChB,IAAI,IAAM;IACV,KAAK,IAAM;IACX,SAAS,IAAM;CAChB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAID,aAAK,iBAAiB;IACpB,KAAK,IAAM;IACX,IAAI,IAAM;CACX;AAED;;GAEG;AACH,cAAM,SAAS;;IACb;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAO1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC;IAEzE;;;OAGG;IACH,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAE/B,SAAgB,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAErE;;;OAGG;IACI,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IACH,SAAgB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;gBAQ/C,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EACxD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,aAAa,EACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAChC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,CAAC,EAAE,OAAO,EACd,aAAa,oBAA0B;IAgBzC;;OAEG;IACH,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;IAED;;;OAGG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;;OAGG;IACI,UAAU,IAAI,OAAO;IAI5B;;;OAGG;IACI,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,WAAW,IAAI,OAAO;CAG9B;AAED,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,uBAAuB,EAC5B,iBAAiB,GAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js new file mode 100644 index 00000000..1739c0bb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js @@ -0,0 +1,120 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferenceTypeFlag = exports.ReferenceFlag = exports.Reference = void 0; +const ID_1 = require("../ID"); +var ReferenceFlag; +(function (ReferenceFlag) { + ReferenceFlag[ReferenceFlag["Read"] = 1] = "Read"; + ReferenceFlag[ReferenceFlag["Write"] = 2] = "Write"; + ReferenceFlag[ReferenceFlag["ReadWrite"] = 3] = "ReadWrite"; +})(ReferenceFlag || (exports.ReferenceFlag = ReferenceFlag = {})); +const generator = (0, ID_1.createIdGenerator)(); +var ReferenceTypeFlag; +(function (ReferenceTypeFlag) { + ReferenceTypeFlag[ReferenceTypeFlag["Value"] = 1] = "Value"; + ReferenceTypeFlag[ReferenceTypeFlag["Type"] = 2] = "Type"; +})(ReferenceTypeFlag || (exports.ReferenceTypeFlag = ReferenceTypeFlag = {})); +/** + * A Reference represents a single occurrence of an identifier in code. + */ +class Reference { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The read-write mode of the reference. + */ + #flag; + /** + * Reference to the enclosing Scope. + * @public + */ + from; + /** + * Identifier syntax node. + * @public + */ + identifier; + /** + * `true` if this writing reference is a variable initializer or a default value. + * @public + */ + init; + maybeImplicitGlobal; + /** + * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. + * @public + */ + resolved; + /** + * If reference is writeable, this is the node being written to it. + * @public + */ + writeExpr; + /** + * In some cases, a reference may be a type, value or both a type and value reference. + */ + #referenceType; + constructor(identifier, scope, flag, writeExpr, maybeImplicitGlobal, init, referenceType = ReferenceTypeFlag.Value) { + this.identifier = identifier; + this.from = scope; + this.resolved = null; + this.#flag = flag; + if (this.isWrite()) { + this.writeExpr = writeExpr; + this.init = init; + } + this.maybeImplicitGlobal = maybeImplicitGlobal; + this.#referenceType = referenceType; + } + /** + * True if this reference can reference types + */ + get isTypeReference() { + return (this.#referenceType & ReferenceTypeFlag.Type) !== 0; + } + /** + * True if this reference can reference values + */ + get isValueReference() { + return (this.#referenceType & ReferenceTypeFlag.Value) !== 0; + } + /** + * Whether the reference is writeable. + * @public + */ + isWrite() { + return !!(this.#flag & ReferenceFlag.Write); + } + /** + * Whether the reference is readable. + * @public + */ + isRead() { + return !!(this.#flag & ReferenceFlag.Read); + } + /** + * Whether the reference is read-only. + * @public + */ + isReadOnly() { + return this.#flag === ReferenceFlag.Read; + } + /** + * Whether the reference is write-only. + * @public + */ + isWriteOnly() { + return this.#flag === ReferenceFlag.Write; + } + /** + * Whether the reference is read-write. + * @public + */ + isReadWrite() { + return this.#flag === ReferenceFlag.ReadWrite; + } +} +exports.Reference = Reference; +//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map new file mode 100644 index 00000000..0af1ca43 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":";;;AAKA,8BAA0C;AAE1C,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,iDAAU,CAAA;IACV,mDAAW,CAAA;IACX,2DAAe,CAAA;AACjB,CAAC,EAJI,aAAa,6BAAb,aAAa,QAIjB;AAQD,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,IAAK,iBAGJ;AAHD,WAAK,iBAAiB;IACpB,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EAHI,iBAAiB,iCAAjB,iBAAiB,QAGrB;AAED;;GAEG;AACH,MAAM,SAAS;IACb;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;OAEG;IACM,KAAK,CAAgB;IAE9B;;;OAGG;IACa,IAAI,CAAQ;IAE5B;;;OAGG;IACa,UAAU,CAA+C;IAEzE;;;OAGG;IACa,IAAI,CAAW;IAEf,mBAAmB,CAAkC;IAErE;;;OAGG;IACI,QAAQ,CAAkB;IAEjC;;;OAGG;IACa,SAAS,CAAwB;IAEjD;;OAEG;IACM,cAAc,CAAoB;IAE3C,YACE,UAAwD,EACxD,KAAY,EACZ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AAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,SAAS,CAAC;IAChD,CAAC;CACF;AAGC,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts new file mode 100644 index 00000000..d7799ca2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts @@ -0,0 +1,87 @@ +import type { Lib, TSESTree } from '@typescript-eslint/types'; +import type { Scope } from '../scope'; +import type { ScopeManager } from '../ScopeManager'; +import type { ReferenceImplicitGlobal } from './Reference'; +import type { VisitorOptions } from './Visitor'; +import { Visitor } from './Visitor'; +interface ReferencerOptions extends VisitorOptions { + jsxFragmentName: string | null; + jsxPragma: string | null; + lib: Lib[]; +} +declare class Referencer extends Visitor { + #private; + readonly scopeManager: ScopeManager; + constructor(options: ReferencerOptions, scopeManager: ScopeManager); + private populateGlobalsFromLib; + close(node: TSESTree.Node): void; + currentScope(): Scope; + currentScope(throwOnNull: true): Scope | null; + referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void; + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + private referenceInSomeUpperScope; + private referenceJsxFragment; + private referenceJsxPragma; + protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; + protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void; + protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void; + protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; + protected visitProperty(node: TSESTree.Property): void; + protected visitType(node: TSESTree.Node | null | undefined): void; + protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion): void; + protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void; + protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; + protected BlockStatement(node: TSESTree.BlockStatement): void; + protected BreakStatement(): void; + protected CallExpression(node: TSESTree.CallExpression): void; + protected CatchClause(node: TSESTree.CatchClause): void; + protected ClassDeclaration(node: TSESTree.ClassDeclaration): void; + protected ClassExpression(node: TSESTree.ClassExpression): void; + protected ContinueStatement(): void; + protected ExportAllDeclaration(): void; + protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; + protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; + protected ForInStatement(node: TSESTree.ForInStatement): void; + protected ForOfStatement(node: TSESTree.ForOfStatement): void; + protected ForStatement(node: TSESTree.ForStatement): void; + protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void; + protected FunctionExpression(node: TSESTree.FunctionExpression): void; + protected Identifier(node: TSESTree.Identifier): void; + protected ImportAttribute(): void; + protected ImportDeclaration(node: TSESTree.ImportDeclaration): void; + protected JSXAttribute(node: TSESTree.JSXAttribute): void; + protected JSXClosingElement(): void; + protected JSXFragment(node: TSESTree.JSXFragment): void; + protected JSXIdentifier(node: TSESTree.JSXIdentifier): void; + protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void; + protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void; + protected LabeledStatement(node: TSESTree.LabeledStatement): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected MetaProperty(): void; + protected NewExpression(node: TSESTree.NewExpression): void; + protected PrivateIdentifier(): void; + protected Program(node: TSESTree.Program): void; + protected Property(node: TSESTree.Property): void; + protected SwitchStatement(node: TSESTree.SwitchStatement): void; + protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void; + protected TSAsExpression(node: TSESTree.TSAsExpression): void; + protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void; + protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void; + protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void; + protected TSExportAssignment(node: TSESTree.TSExportAssignment): void; + protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void; + protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void; + protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void; + protected UpdateExpression(node: TSESTree.UpdateExpression): void; + protected VariableDeclaration(node: TSESTree.VariableDeclaration): void; + protected WithStatement(node: TSESTree.WithStatement): void; + private visitExpressionTarget; +} +export { Referencer, type ReferencerOptions }; +//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map new file mode 100644 index 00000000..30658571 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,K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AAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAIP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAgBjE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAoCvE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAW3D,OAAO,CAAC,qBAAqB;CAc9B;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js new file mode 100644 index 00000000..381cd44b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js @@ -0,0 +1,540 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const lib_1 = require("../lib"); +const ClassVisitor_1 = require("./ClassVisitor"); +const ExportVisitor_1 = require("./ExportVisitor"); +const ImportVisitor_1 = require("./ImportVisitor"); +const PatternVisitor_1 = require("./PatternVisitor"); +const Reference_1 = require("./Reference"); +const TypeVisitor_1 = require("./TypeVisitor"); +const Visitor_1 = require("./Visitor"); +// Referencing variables and creating bindings. +class Referencer extends Visitor_1.Visitor { + #hasReferencedJsxFactory = false; + #hasReferencedJsxFragmentFactory = false; + #jsxFragmentName; + #jsxPragma; + #lib; + scopeManager; + constructor(options, scopeManager) { + super(options); + this.scopeManager = scopeManager; + this.#jsxPragma = options.jsxPragma; + this.#jsxFragmentName = options.jsxFragmentName; + this.#lib = options.lib; + } + populateGlobalsFromLib(globalScope) { + for (const lib of this.#lib) { + const variables = lib_1.lib[lib]; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + /* istanbul ignore if */ if (!variables) { + throw new Error(`Invalid value for lib provided: ${lib}`); + } + for (const [name, variable] of Object.entries(variables)) { + globalScope.defineImplicitVariable(name, variable); + } + } + // for const assertions (`{} as const` / `{}`) + globalScope.defineImplicitVariable('const', { + eslintImplicitGlobalSetting: 'readonly', + isTypeVariable: true, + isValueVariable: false, + }); + } + close(node) { + while (this.currentScope(true) && node === this.currentScope().block) { + this.scopeManager.currentScope = this.currentScope().close(this.scopeManager); + } + } + currentScope(dontThrowOnNull) { + if (!dontThrowOnNull) { + (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa'); + } + return this.scopeManager.currentScope; + } + referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { + assignments.forEach(assignment => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, assignment.right, maybeImplicitGlobal, init); + }); + } + /** + * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself + */ + referenceInSomeUpperScope(name) { + let scope = this.scopeManager.currentScope; + while (scope) { + const variable = scope.set.get(name); + if (!variable) { + scope = scope.upper; + continue; + } + scope.referenceValue(variable.identifiers[0]); + return true; + } + return false; + } + referenceJsxFragment() { + if (this.#jsxFragmentName == null || + this.#hasReferencedJsxFragmentFactory) { + return; + } + this.#hasReferencedJsxFragmentFactory = this.referenceInSomeUpperScope(this.#jsxFragmentName); + } + referenceJsxPragma() { + if (this.#jsxPragma == null || this.#hasReferencedJsxFactory) { + return; + } + this.#hasReferencedJsxFactory = this.referenceInSomeUpperScope(this.#jsxPragma); + } + /////////////////// + // Visit helpers // + /////////////////// + visitClass(node) { + ClassVisitor_1.ClassVisitor.visit(this, node); + } + visitForIn(node) { + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.left.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration) { + this.visit(node.left); + this.visitPattern(node.left.declarations[0].id, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, null, true); + }); + } + else { + this.visitPattern(node.left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + this.visit(node.right); + this.visit(node.body); + this.close(node); + } + visitFunction(node) { + // FunctionDeclaration name is defined in upper scope + // NOTE: Not referring variableScope. It is intended. + // Since + // in ES5, FunctionDeclaration should be in FunctionBody. + // in ES6, FunctionDeclaration should be block scoped. + if (node.type === types_1.AST_NODE_TYPES.FunctionExpression) { + if (node.id) { + // FunctionExpression with name creates its special scope; + // FunctionExpressionNameScope. + this.scopeManager.nestFunctionExpressionNameScope(node); + } + } + else if (node.id) { + // id is defined in upper scope + this.currentScope().defineIdentifier(node.id, new definition_1.FunctionNameDefinition(node.id, node)); + } + // Consider this function is in the MethodDefinition. + this.scopeManager.nestFunctionScope(node, false); + // Process parameter declarations. + for (const param of node.params) { + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + this.visitFunctionParameterTypeAnnotation(param); + param.decorators.forEach(d => this.visit(d)); + } + this.visitType(node.returnType); + this.visitType(node.typeParameters); + // In TypeScript there are a number of function-like constructs which have no body, + // so check it exists before traversing + if (node.body) { + // Skip BlockStatement to prevent creating BlockStatement scope. + if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { + this.visitChildren(node.body); + } + else { + this.visit(node.body); + } + } + this.close(node); + } + visitFunctionParameterTypeAnnotation(node) { + switch (node.type) { + case types_1.AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case types_1.AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + break; + } + } + visitProperty(node) { + if (node.computed) { + this.visit(node.key); + } + this.visit(node.value); + } + visitType(node) { + if (!node) { + return; + } + TypeVisitor_1.TypeVisitor.visit(this, node); + } + visitTypeAssertion(node) { + this.visit(node.expression); + this.visitType(node.typeAnnotation); + } + ///////////////////// + // Visit selectors // + ///////////////////// + ArrowFunctionExpression(node) { + this.visitFunction(node); + } + AssignmentExpression(node) { + const left = this.visitExpressionTarget(node.left); + if (PatternVisitor_1.PatternVisitor.isPattern(left)) { + if (node.operator === '=') { + this.visitPattern(left, (pattern, info) => { + const maybeImplicitGlobal = !this.currentScope().isStrict + ? { + node, + pattern, + } + : null; + this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); + }, { processRightHandNodes: true }); + } + else if (left.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().referenceValue(left, Reference_1.ReferenceFlag.ReadWrite, node.right); + } + } + else { + this.visit(left); + } + this.visit(node.right); + } + BlockStatement(node) { + this.scopeManager.nestBlockScope(node); + this.visitChildren(node); + this.close(node); + } + BreakStatement() { + // don't reference the break statement's label + } + CallExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + CatchClause(node) { + this.scopeManager.nestCatchScope(node); + if (node.param) { + const param = node.param; + this.visitPattern(param, (pattern, info) => { + this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + }, { processRightHandNodes: true }); + } + this.visit(node.body); + this.close(node); + } + ClassDeclaration(node) { + this.visitClass(node); + } + ClassExpression(node) { + this.visitClass(node); + } + ContinueStatement() { + // don't reference the continue statement's label + } + ExportAllDeclaration() { + // this defines no local variables + } + ExportDefaultDeclaration(node) { + if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + else { + this.visit(node.declaration); + } + } + ExportNamedDeclaration(node) { + if (node.declaration) { + this.visit(node.declaration); + } + else { + ExportVisitor_1.ExportVisitor.visit(this, node); + } + } + ForInStatement(node) { + this.visitForIn(node); + } + ForOfStatement(node) { + this.visitForIn(node); + } + ForStatement(node) { + // Create ForStatement declaration. + // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is + // a static analyzer, we only generate one scope for ForStatement. + if (node.init && + node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && + node.init.kind !== 'var') { + this.scopeManager.nestForScope(node); + } + this.visitChildren(node); + this.close(node); + } + FunctionDeclaration(node) { + this.visitFunction(node); + } + FunctionExpression(node) { + this.visitFunction(node); + } + Identifier(node) { + this.currentScope().referenceValue(node); + this.visitType(node.typeAnnotation); + } + ImportAttribute() { + // import assertions are module metadata and thus have no variables to reference + } + ImportDeclaration(node) { + (0, assert_1.assert)(this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); + ImportVisitor_1.ImportVisitor.visit(this, node); + } + JSXAttribute(node) { + this.visit(node.value); + } + JSXClosingElement() { + // should not be counted as a reference + } + JSXFragment(node) { + this.referenceJsxPragma(); + this.referenceJsxFragment(); + this.visitChildren(node); + } + JSXIdentifier(node) { + this.currentScope().referenceValue(node); + } + JSXMemberExpression(node) { + if (node.object.type !== types_1.AST_NODE_TYPES.JSXIdentifier || + node.object.name !== 'this') { + this.visit(node.object); + } + // we don't ever reference the property as it's always going to be a property on the thing + } + JSXOpeningElement(node) { + this.referenceJsxPragma(); + if (node.name.type === types_1.AST_NODE_TYPES.JSXIdentifier) { + if (node.name.name[0].toUpperCase() === node.name.name[0] || + node.name.name === 'this') { + // lower cased component names are always treated as "intrinsic" names, and are converted to a string, + // not a variable by JSX transforms: + //
=> React.createElement("div", null) + // the only case we want to visit a lower-cased component has its name as "this", + this.visit(node.name); + } + } + else { + this.visit(node.name); + } + this.visitType(node.typeArguments); + for (const attr of node.attributes) { + this.visit(attr); + } + } + LabeledStatement(node) { + this.visit(node.body); + } + MemberExpression(node) { + this.visit(node.object); + if (node.computed) { + this.visit(node.property); + } + } + MetaProperty() { + // meta properties all builtin globals + } + NewExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + PrivateIdentifier() { + // private identifiers are members on classes and thus have no variables to reference + } + Program(node) { + const globalScope = this.scopeManager.nestGlobalScope(node); + this.populateGlobalsFromLib(globalScope); + if (this.scopeManager.isGlobalReturn()) { + // Force strictness of GlobalScope to false when using node.js scope. + this.currentScope().isStrict = false; + this.scopeManager.nestFunctionScope(node, false); + } + if (this.scopeManager.isModule()) { + this.scopeManager.nestModuleScope(node); + } + if (this.scopeManager.isImpliedStrict()) { + this.currentScope().isStrict = true; + } + this.visitChildren(node); + this.close(node); + } + Property(node) { + this.visitProperty(node); + } + SwitchStatement(node) { + this.visit(node.discriminant); + this.scopeManager.nestSwitchScope(node); + for (const switchCase of node.cases) { + this.visit(switchCase); + } + this.close(node); + } + TaggedTemplateExpression(node) { + this.visit(node.tag); + this.visit(node.quasi); + this.visitType(node.typeArguments); + } + TSAsExpression(node) { + this.visitTypeAssertion(node); + } + TSDeclareFunction(node) { + this.visitFunction(node); + } + TSEmptyBodyFunctionExpression(node) { + this.visitFunction(node); + } + TSEnumDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); + // enum members can be referenced within the enum body + this.scopeManager.nestTSEnumScope(node); + for (const member of node.body.members) { + // TS resolves literal named members to be actual names + // enum Foo { + // 'a' = 1, + // b = a, // this references the 'a' member + // } + if (member.id.type === types_1.AST_NODE_TYPES.Literal && + typeof member.id.value === 'string') { + const name = member.id; + this.currentScope().defineLiteralIdentifier(name, new definition_1.TSEnumMemberDefinition(name, member)); + } + else if (!member.computed && + member.id.type === types_1.AST_NODE_TYPES.Identifier) { + this.currentScope().defineIdentifier(member.id, new definition_1.TSEnumMemberDefinition(member.id, member)); + } + this.visit(member.initializer); + } + this.close(node); + } + TSExportAssignment(node) { + if (node.expression.type === types_1.AST_NODE_TYPES.Identifier) { + // this is a special case - you can `export = T` where `T` is a type OR a + // value however `T[U]` is illegal when `T` is a type and `T.U` is illegal + // when `T.U` is a type + // i.e. if the expression is JUST an Identifier - it could be either ref + // kind; otherwise the standard rules apply + this.currentScope().referenceDualValueType(node.expression); + } + else { + this.visit(node.expression); + } + } + TSImportEqualsDeclaration(node) { + this.currentScope().defineIdentifier(node.id, new definition_1.ImportBindingDefinition(node.id, node, node)); + if (node.moduleReference.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let moduleIdentifier = node.moduleReference.left; + while (moduleIdentifier.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + moduleIdentifier = moduleIdentifier.left; + } + this.visit(moduleIdentifier); + } + else { + this.visit(node.moduleReference); + } + } + TSInstantiationExpression(node) { + this.visitChildren(node, ['typeArguments']); + this.visitType(node.typeArguments); + } + TSInterfaceDeclaration(node) { + this.visitType(node); + } + TSModuleDeclaration(node) { + if (node.id.type === types_1.AST_NODE_TYPES.Identifier && node.kind !== 'global') { + this.currentScope().defineIdentifier(node.id, new definition_1.TSModuleNameDefinition(node.id, node)); + } + this.scopeManager.nestTSModuleScope(node); + this.visit(node.body); + this.close(node); + } + TSSatisfiesExpression(node) { + this.visitTypeAssertion(node); + } + TSTypeAliasDeclaration(node) { + this.visitType(node); + } + TSTypeAssertion(node) { + this.visitTypeAssertion(node); + } + UpdateExpression(node) { + const argument = this.visitExpressionTarget(node.argument); + if (PatternVisitor_1.PatternVisitor.isPattern(argument)) { + this.visitPattern(argument, pattern => { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.ReadWrite, null); + }); + } + else { + this.visitChildren(node); + } + } + VariableDeclaration(node) { + const variableTargetScope = node.kind === 'var' + ? this.currentScope().variableScope + : this.currentScope(); + for (const decl of node.declarations) { + const init = decl.init; + this.visitPattern(decl.id, (pattern, info) => { + variableTargetScope.defineIdentifier(pattern, new definition_1.VariableDefinition(pattern, decl, node)); + this.referencingDefaultValue(pattern, info.assignments, null, true); + if (init) { + this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, init, null, true); + } + }, { processRightHandNodes: true }); + this.visit(decl.init); + this.visitType(decl.id.typeAnnotation); + } + } + WithStatement(node) { + this.visit(node.object); + // Then nest scope for WithStatement. + this.scopeManager.nestWithScope(node); + this.visit(node.body); + this.close(node); + } + visitExpressionTarget(left) { + switch (left.type) { + case types_1.AST_NODE_TYPES.TSAsExpression: + case types_1.AST_NODE_TYPES.TSTypeAssertion: + // explicitly visit the type annotation + this.visitType(left.typeAnnotation); + // intentional fallthrough + case types_1.AST_NODE_TYPES.TSNonNullExpression: + // unwrap the expression + left = left.expression; + } + return left; + } +} +exports.Referencer = Referencer; +//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map new file mode 100644 index 00000000..5281caf1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAmC;AACnC,8CASuB;AACvB,gCAA4C;AAC5C,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,2CAA4C;AAC5C,+CAA4C;AAC5C,uCAAoC;AAQpC,+CAA+C;AAC/C,MAAM,UAAW,SAAQ,i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,EAAE,CAAC;YAClB,KAAK,sBAAc,CAAC,cAAc,CAAC;YACnC,KAAK,sBAAc,CAAC,eAAe;gBACjC,uCAAuC;gBACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACtC,0BAA0B;YAC1B,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,wBAAwB;gBACxB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts new file mode 100644 index 00000000..6d37e6a4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts @@ -0,0 +1,33 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Referencer } from './Referencer'; +import { Visitor } from './Visitor'; +declare class TypeVisitor extends Visitor { + #private; + constructor(referencer: Referencer); + static visit(referencer: Referencer, node: TSESTree.Node): void; + protected visitFunctionType(node: TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSFunctionType | TSESTree.TSMethodSignature): void; + protected visitPropertyKey(node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature): void; + protected Identifier(node: TSESTree.Identifier): void; + protected MemberExpression(node: TSESTree.MemberExpression): void; + protected TSCallSignatureDeclaration(node: TSESTree.TSCallSignatureDeclaration): void; + protected TSConditionalType(node: TSESTree.TSConditionalType): void; + protected TSConstructorType(node: TSESTree.TSConstructorType): void; + protected TSConstructSignatureDeclaration(node: TSESTree.TSConstructSignatureDeclaration): void; + protected TSFunctionType(node: TSESTree.TSFunctionType): void; + protected TSImportType(node: TSESTree.TSImportType): void; + protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; + protected TSInferType(node: TSESTree.TSInferType): void; + protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; + protected TSMappedType(node: TSESTree.TSMappedType): void; + protected TSMethodSignature(node: TSESTree.TSMethodSignature): void; + protected TSNamedTupleMember(node: TSESTree.TSNamedTupleMember): void; + protected TSPropertySignature(node: TSESTree.TSPropertySignature): void; + protected TSQualifiedName(node: TSESTree.TSQualifiedName): void; + protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; + protected TSTypeParameter(node: TSESTree.TSTypeParameter): void; + protected TSTypePredicate(node: TSESTree.TSTypePredicate): void; + protected TSTypeAnnotation(node: TSESTree.TSTypeAnnotation): void; + protected TSTypeQuery(node: TSESTree.TSTypeQuery): void; +} +export { TypeVisitor }; +//# sourceMappingURL=TypeVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map new file mode 100644 index 00000000..9e2402d3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,WAAY,SAAQ,OAAO;;gBAGnB,UAAU,EAAE,UAAU;IAKlC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,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Y,GAAG,IAAI;IAYzD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAKnE,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAKrE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAKvE,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAkBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAS/D,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAQ/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAKjE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;CAwBxD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js new file mode 100644 index 00000000..dcb28e05 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js @@ -0,0 +1,222 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeVisitor = void 0; +const types_1 = require("@typescript-eslint/types"); +const definition_1 = require("../definition"); +const scope_1 = require("../scope"); +const Visitor_1 = require("./Visitor"); +class TypeVisitor extends Visitor_1.Visitor { + #referencer; + constructor(referencer) { + super(referencer); + this.#referencer = referencer; + } + static visit(referencer, node) { + const typeReferencer = new TypeVisitor(referencer); + typeReferencer.visit(node); + } + /////////////////// + // Visit helpers // + /////////////////// + visitFunctionType(node) { + // arguments and type parameters can only be referenced from within the function + this.#referencer.scopeManager.nestFunctionTypeScope(node); + this.visit(node.typeParameters); + for (const param of node.params) { + let didVisitAnnotation = false; + this.visitPattern(param, (pattern, info) => { + // a parameter name creates a value type variable which can be referenced later via typeof arg + this.#referencer + .currentScope() + .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); + if (pattern.typeAnnotation) { + this.visit(pattern.typeAnnotation); + didVisitAnnotation = true; + } + }); + // there are a few special cases where the type annotation is owned by the parameter, not the pattern + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (!didVisitAnnotation && 'typeAnnotation' in param) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.returnType); + this.#referencer.close(node); + } + visitPropertyKey(node) { + if (!node.computed) { + return; + } + // computed members are treated as value references, and TS expects they have a literal type + this.#referencer.visit(node.key); + } + ///////////////////// + // Visit selectors // + ///////////////////// + Identifier(node) { + this.#referencer.currentScope().referenceType(node); + } + MemberExpression(node) { + this.visit(node.object); + // don't visit the property + } + TSCallSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSConditionalType(node) { + // conditional types can define inferred type parameters + // which are only accessible from inside the conditional parameter + this.#referencer.scopeManager.nestConditionalTypeScope(node); + // type parameters inferred in the condition clause are not accessible within the false branch + this.visitChildren(node, ['falseType']); + this.#referencer.close(node); + this.visit(node.falseType); + } + TSConstructorType(node) { + this.visitFunctionType(node); + } + TSConstructSignatureDeclaration(node) { + this.visitFunctionType(node); + } + TSFunctionType(node) { + this.visitFunctionType(node); + } + TSImportType(node) { + // the TS parser allows any type to be the parameter, but it's a syntax error - so we can ignore it + this.visit(node.typeArguments); + // the qualifier is just part of a standard EntityName, so it should not be visited + } + TSIndexSignature(node) { + for (const param of node.parameters) { + if (param.type === types_1.AST_NODE_TYPES.Identifier) { + this.visit(param.typeAnnotation); + } + } + this.visit(node.typeAnnotation); + } + TSInferType(node) { + const typeParameter = node.typeParameter; + let scope = this.#referencer.currentScope(); + /* + In cases where there is a sub-type scope created within a conditional type, then the generic should be defined in the + conditional type's scope, not the child type scope. + If we define it within the child type's scope then it won't be able to be referenced outside the child type + */ + if (scope.type === scope_1.ScopeType.functionType || + scope.type === scope_1.ScopeType.mappedType) { + // search up the scope tree to figure out if we're in a nested type scope + let currentScope = scope.upper; + while (currentScope) { + if (currentScope.type === scope_1.ScopeType.functionType || + currentScope.type === scope_1.ScopeType.mappedType) { + // ensure valid type parents only + currentScope = currentScope.upper; + continue; + } + if (currentScope.type === scope_1.ScopeType.conditionalType) { + scope = currentScope; + break; + } + break; + } + } + scope.defineIdentifier(typeParameter.name, new definition_1.TypeDefinition(typeParameter.name, typeParameter)); + this.visit(typeParameter.constraint); + } + TSInterfaceDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + node.extends.forEach(this.visit, this); + this.visit(node.body); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSMappedType(node) { + // mapped types key can only be referenced within their return value + this.#referencer.scopeManager.nestMappedTypeScope(node); + this.#referencer + .currentScope() + .defineIdentifier(node.key, new definition_1.TypeDefinition(node.key, node)); + this.visit(node.constraint); + this.visit(node.nameType); + this.visit(node.typeAnnotation); + this.#referencer.close(node); + } + TSMethodSignature(node) { + this.visitPropertyKey(node); + this.visitFunctionType(node); + } + TSNamedTupleMember(node) { + this.visit(node.elementType); + // we don't visit the label as the label only exists for the purposes of documentation + } + TSPropertySignature(node) { + this.visitPropertyKey(node); + this.visit(node.typeAnnotation); + } + TSQualifiedName(node) { + this.visit(node.left); + // we don't visit the right as it a name on the thing, not a name to reference + } + TSTypeAliasDeclaration(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); + if (node.typeParameters) { + // type parameters cannot be referenced from outside their current scope + this.#referencer.scopeManager.nestTypeScope(node); + this.visit(node.typeParameters); + } + this.visit(node.typeAnnotation); + if (node.typeParameters) { + this.#referencer.close(node); + } + } + TSTypeParameter(node) { + this.#referencer + .currentScope() + .defineIdentifier(node.name, new definition_1.TypeDefinition(node.name, node)); + this.visit(node.constraint); + this.visit(node.default); + } + TSTypePredicate(node) { + if (node.parameterName.type !== types_1.AST_NODE_TYPES.TSThisType) { + this.#referencer.currentScope().referenceValue(node.parameterName); + } + this.visit(node.typeAnnotation); + } + // a type query `typeof foo` is a special case that references a _non-type_ variable, + TSTypeAnnotation(node) { + // check + this.visitChildren(node); + } + TSTypeQuery(node) { + let entityName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + let iter = node.exprName; + while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { + iter = iter.left; + } + entityName = iter.left; + } + else { + entityName = node.exprName; + if (node.exprName.type === types_1.AST_NODE_TYPES.TSImportType) { + this.visit(node.exprName); + } + } + if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { + this.#referencer.currentScope().referenceValue(entityName); + } + this.visit(node.typeArguments); + } +} +exports.TypeVisitor = TypeVisitor; +//# sourceMappingURL=TypeVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map new file mode 100644 index 00000000..00905e04 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeVisitor.js","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAK1D,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,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY,EAAE,CAAC;gBACvD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts new file mode 100644 index 00000000..d0a474a6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts @@ -0,0 +1,15 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { PatternVisitorCallback, PatternVisitorOptions } from './PatternVisitor'; +import type { VisitorOptions } from './VisitorBase'; +import { VisitorBase } from './VisitorBase'; +interface VisitPatternOptions extends PatternVisitorOptions { + processRightHandNodes?: boolean; +} +declare class Visitor extends VisitorBase { + #private; + constructor(optionsOrVisitor: Visitor | VisitorOptions); + protected visitPattern(node: TSESTree.Node, callback: PatternVisitorCallback, options?: VisitPatternOptions): void; +} +export { Visitor }; +export { VisitorBase, type VisitorOptions } from './VisitorBase'; +//# sourceMappingURL=Visitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map new file mode 100644 index 00000000..1dc951ce --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AACD,cAAM,OAAQ,SAAQ,WAAW;;gBAEnB,gBAAgB,EAAE,OAAO,GAAG,cAAc;IAatD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,mBAAsD,GAC9D,IAAI;CAWR;AAED,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js new file mode 100644 index 00000000..5bc200f3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = exports.Visitor = void 0; +const PatternVisitor_1 = require("./PatternVisitor"); +const VisitorBase_1 = require("./VisitorBase"); +class Visitor extends VisitorBase_1.VisitorBase { + #options; + constructor(optionsOrVisitor) { + super(optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor); + this.#options = + optionsOrVisitor instanceof Visitor + ? optionsOrVisitor.#options + : optionsOrVisitor; + } + visitPattern(node, callback, options = { processRightHandNodes: false }) { + // Call the callback at left hand identifier nodes, and Collect right hand nodes. + const visitor = new PatternVisitor_1.PatternVisitor(this.#options, node, callback); + visitor.visit(node); + // Process the right hand nodes recursively. + if (options.processRightHandNodes) { + visitor.rightHandNodes.forEach(this.visit, this); + } + } +} +exports.Visitor = Visitor; +var VisitorBase_2 = require("./VisitorBase"); +Object.defineProperty(exports, "VisitorBase", { enumerable: true, get: function () { return VisitorBase_2.VisitorBase; } }); +//# sourceMappingURL=Visitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map new file mode 100644 index 00000000..0e4878ce --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":";;;AAQA,qDAAkD;AAClD,+CAA4C;AAK5C,MAAM,OAAQ,SAAQ,yBAAW;IACtB,QAAQ,CAAiB;IAClC,YAAY,gBAA0C;QACpD,KAAK,CACH,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;YAC3B,CAAC,CAAC,gBAAgB,CACrB,CAAC;QAEF,IAAI,CAAC,QAAQ;YACX,gBAAgB,YAAY,OAAO;gBACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;gBAC3B,CAAC,CAAC,gBAAgB,CAAC;IACzB,CAAC;IAES,YAAY,CACpB,IAAmB,EACnB,QAAgC,EAChC,UAA+B,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAE/D,iFAAiF;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAElE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpB,4CAA4C;QAC5C,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAClC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AAEQ,0BAAO;AAEhB,6CAAiE;AAAxD,0GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts new file mode 100644 index 00000000..1a4883b2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts @@ -0,0 +1,23 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +interface VisitorOptions { + childVisitorKeys?: VisitorKeys | null; + visitChildrenEvenIfSelectorExists?: boolean; +} +declare abstract class VisitorBase { + #private; + constructor(options: VisitorOptions); + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node: T | null | undefined, excludeArr?: (keyof T)[]): void; + /** + * Dispatching node. + */ + visit(node: TSESTree.Node | null | undefined): void; +} +export { VisitorBase, type VisitorOptions }; +export type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +//# sourceMappingURL=VisitorBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map new file mode 100644 index 00000000..2036e9d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.d.ts","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,UAAU,cAAc;IACtB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C;AAaD,uBAAe,WAAW;;gBAGZ,OAAO,EAAE,cAAc;IAMnC;;;;OAIG;IACH,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,UAAU,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAC3B,IAAI;IA6BP;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAepD;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,CAAC;AAE5C,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js new file mode 100644 index 00000000..22d9d258 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VisitorBase = void 0; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isObject(obj) { + return typeof obj === 'object' && obj != null; +} +function isNode(node) { + return isObject(node) && typeof node.type === 'string'; +} +class VisitorBase { + #childVisitorKeys; + #visitChildrenEvenIfSelectorExists; + constructor(options) { + this.#childVisitorKeys = options.childVisitorKeys ?? visitor_keys_1.visitorKeys; + this.#visitChildrenEvenIfSelectorExists = + options.visitChildrenEvenIfSelectorExists ?? false; + } + /** + * Default method for visiting children. + * @param node the node whose children should be visited + * @param excludeArr a list of keys to not visit + */ + visitChildren(node, excludeArr = []) { + if (node?.type == null) { + return; + } + const exclude = new Set([...excludeArr, 'parent']); + const children = this.#childVisitorKeys[node.type] ?? Object.keys(node); + for (const key of children) { + if (exclude.has(key)) { + continue; + } + const child = node[key]; + if (!child) { + continue; + } + if (Array.isArray(child)) { + for (const subChild of child) { + if (isNode(subChild)) { + this.visit(subChild); + } + } + } + else if (isNode(child)) { + this.visit(child); + } + } + } + /** + * Dispatching node. + */ + visit(node) { + if (node?.type == null) { + return; + } + const visitor = this[node.type]; + if (visitor) { + visitor.call(this, node); + if (!this.#visitChildrenEvenIfSelectorExists) { + return; + } + } + this.visitChildren(node); + } +} +exports.VisitorBase = VisitorBase; +//# sourceMappingURL=VisitorBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map new file mode 100644 index 00000000..f9d611ab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VisitorBase.js","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":";;;AAGA,kEAA8D;AAO9D,SAAS,QAAQ,CAAC,GAAY;IAC5B,OAAO,OAAO,GAAG,KAAK,QAAQ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gBACH,CAAC;YACH,CAAC;iBAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsC;QAC1C,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAI,IAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,kCAAkC,EAAE,CAAC;gBAC7C,OAAO;YACT,CAAC;QACH,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts new file mode 100644 index 00000000..7f232ed4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts @@ -0,0 +1,2 @@ +export { Referencer, type ReferencerOptions } from './Referencer'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map new file mode 100644 index 00000000..36b3e570 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js new file mode 100644 index 00000000..16625137 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Referencer = void 0; +var Referencer_1 = require("./Referencer"); +Object.defineProperty(exports, "Referencer", { enumerable: true, get: function () { return Referencer_1.Referencer; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map new file mode 100644 index 00000000..daf5a5e4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":";;;AAAA,2CAAkE;AAAzD,wGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts new file mode 100644 index 00000000..66f2713f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class BlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']); +} +export { BlockScope }; +//# sourceMappingURL=BlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map new file mode 100644 index 00000000..4a9d37ee --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,cAAc,EACvB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js new file mode 100644 index 00000000..0fc34d61 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class BlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.block, upperScope, block, false); + } +} +exports.BlockScope = BlockScope; +//# sourceMappingURL=BlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map new file mode 100644 index 00000000..c014e70c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BlockScope.js","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts new file mode 100644 index 00000000..59532d23 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class CatchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']); +} +export { CatchScope }; +//# sourceMappingURL=CatchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map new file mode 100644 index 00000000..a8a78341 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.d.ts","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js new file mode 100644 index 00000000..dbb630f2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CatchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class CatchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.catch, upperScope, block, false); + } +} +exports.CatchScope = CatchScope; +//# sourceMappingURL=CatchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map new file mode 100644 index 00000000..0ead4562 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatchScope.js","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts new file mode 100644 index 00000000..a6467363 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassFieldInitializerScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']); +} +export { ClassFieldInitializerScope }; +//# sourceMappingURL=ClassFieldInitializerScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map new file mode 100644 index 00000000..d10ba967 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,0BAA2B,SAAQ,SAAS,CAChD,SAAS,CAAC,qBAAqB,EAE/B,QAAQ,CAAC,UAAU,EACnB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAU7C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js new file mode 100644 index 00000000..5d3bb691 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassFieldInitializerScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassFieldInitializerScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classFieldInitializer, upperScope, block, false); + } +} +exports.ClassFieldInitializerScope = ClassFieldInitializerScope; +//# sourceMappingURL=ClassFieldInitializerScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map new file mode 100644 index 00000000..6f517d67 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassFieldInitializerScope.js","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,0BAA2B,SAAQ,qBAKxC;IACC,YACE,YAA0B,EAC1B,UAA+C,EAC/C,KAA0C;QAE1C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,qBAAqB,EAC/B,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,gEAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts new file mode 100644 index 00000000..c31a3364 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']); +} +export { ClassScope }; +//# sourceMappingURL=ClassScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map new file mode 100644 index 00000000..de93ece0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js new file mode 100644 index 00000000..003e214f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.class, upperScope, block, false); + } +} +exports.ClassScope = ClassScope; +//# sourceMappingURL=ClassScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map new file mode 100644 index 00000000..2728afb1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassScope.js","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts new file mode 100644 index 00000000..7d7e81b0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ClassStaticBlockScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']); +} +export { ClassStaticBlockScope }; +//# sourceMappingURL=ClassStaticBlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map new file mode 100644 index 00000000..7a2ed823 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,qBAAsB,SAAQ,SAAS,CAC3C,SAAS,CAAC,gBAAgB,EAC1B,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAC1C,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC;CAIxC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js new file mode 100644 index 00000000..3f23aa68 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassStaticBlockScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ClassStaticBlockScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false); + } +} +exports.ClassStaticBlockScope = ClassStaticBlockScope; +//# sourceMappingURL=ClassStaticBlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map new file mode 100644 index 00000000..fdfdc3a2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassStaticBlockScope.js","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,qBAAsB,SAAQ,qBAInC;IACC,YACE,YAA0B,EAC1B,UAA0C,EAC1C,KAAqC;QAErC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts new file mode 100644 index 00000000..6d35e6ec --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ConditionalTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']); +} +export { ConditionalTypeScope }; +//# sourceMappingURL=ConditionalTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map new file mode 100644 index 00000000..296425aa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,oBAAqB,SAAQ,SAAS,CAC1C,SAAS,CAAC,eAAe,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAIvC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js new file mode 100644 index 00000000..8fbd7c50 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConditionalTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ConditionalTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.conditionalType, upperScope, block, false); + } +} +exports.ConditionalTypeScope = ConditionalTypeScope; +//# sourceMappingURL=ConditionalTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map new file mode 100644 index 00000000..8288f23b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ConditionalTypeScope.js","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,oBAAqB,SAAQ,qBAIlC;IACC,YACE,YAA0B,EAC1B,UAAyC,EACzC,KAAoC;QAEpC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts new file mode 100644 index 00000000..ed2f2245 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ForScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']); +} +export { ForScope }; +//# sourceMappingURL=ForScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map new file mode 100644 index 00000000..b4ee2161 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.d.ts","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,QAAS,SAAQ,SAAS,CAC9B,SAAS,CAAC,GAAG,EACb,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,EACzE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;CAI3B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js new file mode 100644 index 00000000..cd27683e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ForScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ForScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.for, upperScope, block, false); + } +} +exports.ForScope = ForScope; +//# sourceMappingURL=ForScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map new file mode 100644 index 00000000..97f1b25d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ForScope.js","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,QAAS,SAAQ,qBAItB;IACC,YACE,YAA0B,EAC1B,UAA6B,EAC7B,KAAwB;QAExB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts new file mode 100644 index 00000000..2f5044ca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionExpressionNameScope extends ScopeBase { + readonly functionExpressionScope: true; + constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']); +} +export { FunctionExpressionNameScope }; +//# sourceMappingURL=FunctionExpressionNameScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map new file mode 100644 index 00000000..ba95ba4d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,2BAA4B,SAAQ,SAAS,CACjD,SAAS,CAAC,sBAAsB,EAChC,QAAQ,CAAC,kBAAkB,EAC3B,KAAK,CACN;IACC,SAAgB,uBAAuB,EAAE,IAAI,CAAC;gBAE5C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAChD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC;CAiB9C;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js new file mode 100644 index 00000000..ed1f061b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionExpressionNameScope = void 0; +const definition_1 = require("../definition"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionExpressionNameScope extends ScopeBase_1.ScopeBase { + functionExpressionScope; + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionExpressionName, upperScope, block, false); + if (block.id) { + this.defineIdentifier(block.id, new definition_1.FunctionNameDefinition(block.id, block)); + } + this.functionExpressionScope = true; + } +} +exports.FunctionExpressionNameScope = FunctionExpressionNameScope; +//# sourceMappingURL=FunctionExpressionNameScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map new file mode 100644 index 00000000..30d1e1b4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionExpressionNameScope.js","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":";;;AAKA,8CAAuD;AACvD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,2BAA4B,SAAQ,qBAIzC;IACiB,uBAAuB,CAAO;IAC9C,YACE,YAA0B,EAC1B,UAAgD,EAChD,KAA2C;QAE3C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,sBAAsB,EAChC,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;QACF,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACb,IAAI,CAAC,gBAAgB,CACnB,KAAK,CAAC,EAAE,EACR,IAAI,mCAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAC5C,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;CACF;AAEQ,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts new file mode 100644 index 00000000..f1bf5e11 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts @@ -0,0 +1,13 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Reference } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { Variable } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean); + protected isValidResolution(ref: Reference, variable: Variable): boolean; +} +export { FunctionScope }; +//# sourceMappingURL=FunctionScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map new file mode 100644 index 00000000..c0dca2c7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAChB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,OAAO,GAChB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,kBAAkB,EAAE,OAAO;IAuB7B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAiBzE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js new file mode 100644 index 00000000..a45b74f0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block, isMethodDefinition) { + super(scopeManager, ScopeType_1.ScopeType.function, upperScope, block, isMethodDefinition); + // section 9.2.13, FunctionDeclarationInstantiation. + // NOTE Arrow functions never have an arguments objects. + if (this.block.type !== types_1.AST_NODE_TYPES.ArrowFunctionExpression) { + this.defineVariable('arguments', this.set, this.variables, null, null); + } + } + // References in default parameters isn't resolved to variables which are in their function body. + // const x = 1 + // function f(a = x) { // This `x` is resolved to the `x` in the outer scope. + // const x = 2 + // console.log(a) + // } + isValidResolution(ref, variable) { + // If `options.globalReturn` is true, `this.block` becomes a Program node. + if (this.block.type === types_1.AST_NODE_TYPES.Program) { + return true; + } + const bodyStart = this.block.body?.range[0] ?? -1; + // It's invalid resolution in the following case: + return !((variable.scope === this && + ref.identifier.range[0] < bodyStart && // the reference is in the parameter part. + variable.defs.every(d => d.name.range[0] >= bodyStart)) // the variable is in the body. + ); + } +} +exports.FunctionScope = FunctionScope; +//# sourceMappingURL=FunctionScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map new file mode 100644 index 00000000..a96b318f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionScope.js","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAS3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B,EAC7B,kBAA2B;QAE3B,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,QAAQ,EAClB,UAAU,EACV,KAAK,EACL,kBAAkB,CACnB,CAAC;QAEF,oDAAoD;QACpD,wDAAwD;QACxD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE,CAAC;YAC/D,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED,iGAAiG;IACjG,kBAAkB;IAClB,iFAAiF;IACjF,sBAAsB;IACtB,yBAAyB;IACzB,QAAQ;IACE,iBAAiB,CAAC,GAAc,EAAE,QAAkB;QAC5D,0EAA0E;QAC1E,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAElD,iDAAiD;QACjD,OAAO,CAAC,CACN,CACE,QAAQ,CAAC,KAAK,KAAK,IAAI;YACvB,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,0CAA0C;YACjF,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CACvD,CAAC,+BAA+B;SAClC,CAAC;IACJ,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts new file mode 100644 index 00000000..5cdeb57f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class FunctionTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']); +} +export { FunctionTypeScope }; +//# sourceMappingURL=FunctionTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map new file mode 100644 index 00000000..540d46bb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,iBAAkB,SAAQ,SAAS,CACvC,SAAS,CAAC,YAAY,EACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC;CAIpC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js new file mode 100644 index 00000000..3d7fe797 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FunctionTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class FunctionTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.functionType, upperScope, block, false); + } +} +exports.FunctionTypeScope = FunctionTypeScope; +//# sourceMappingURL=FunctionTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map new file mode 100644 index 00000000..30f3dded --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FunctionTypeScope.js","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,iBAAkB,SAAQ,qBAQ/B;IACC,YACE,YAA0B,EAC1B,UAAsC,EACtC,KAAiC;QAEjC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;CACF;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts new file mode 100644 index 00000000..7895720c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts @@ -0,0 +1,18 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { ImplicitLibVariableOptions } from '../variable'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class GlobalScope extends ScopeBase { + private readonly implicit; + constructor(scopeManager: ScopeManager, block: GlobalScope['block']); + close(scopeManager: ScopeManager): Scope | null; + defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void; +} +export { GlobalScope }; +//# sourceMappingURL=GlobalScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map new file mode 100644 index 00000000..89400338 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.d.ts","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAY,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,OAAO;AAChB;;GAEG;AACH,IAAI,CACL;IAEC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;gBAEU,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAS5D,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;IAwB/C,sBAAsB,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI;CASR;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js new file mode 100644 index 00000000..aa4451ff --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GlobalScope = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const ImplicitGlobalVariableDefinition_1 = require("../definition/ImplicitGlobalVariableDefinition"); +const variable_1 = require("../variable"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class GlobalScope extends ScopeBase_1.ScopeBase { + // note this is accessed in used in the legacy eslint-scope tests, so it can't be true private + implicit; + constructor(scopeManager, block) { + super(scopeManager, ScopeType_1.ScopeType.global, null, block, false); + this.implicit = { + leftToBeResolved: [], + set: new Map(), + variables: [], + }; + } + close(scopeManager) { + (0, assert_1.assert)(this.leftToResolve); + for (const ref of this.leftToResolve) { + if (ref.maybeImplicitGlobal && !this.set.has(ref.identifier.name)) { + // create an implicit global variable from assignment expression + const info = ref.maybeImplicitGlobal; + const node = info.pattern; + if (node.type === types_1.AST_NODE_TYPES.Identifier) { + this.defineVariable(node.name, this.implicit.set, this.implicit.variables, node, new ImplicitGlobalVariableDefinition_1.ImplicitGlobalVariableDefinition(info.pattern, info.node)); + } + } + } + this.implicit.leftToBeResolved = this.leftToResolve; + return super.close(scopeManager); + } + defineImplicitVariable(name, options) { + this.defineVariable(new variable_1.ImplicitLibVariable(this, name, options), this.set, this.variables, null, null); + } +} +exports.GlobalScope = GlobalScope; +//# sourceMappingURL=GlobalScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map new file mode 100644 index 00000000..4ba16c7c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScope.js","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAO1D,sCAAmC;AACnC,qGAAkG;AAClG,0CAAkD;AAClD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAOzB;IACC,8FAA8F;IAC7E,QAAQ,CAQvB;IAEF,YAAY,YAA0B,EAAE,KAA2B;QACjE,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG;YACd,gBAAgB,EAAE,EAAE;YACpB,GAAG,EAAE,IAAI,GAAG,EAAoB;YAChC,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,YAA0B;QACrC,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAE3B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrC,IAAI,GAAG,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClE,gEAAgE;gBAChE,MAAM,IAAI,GAAG,GAAG,CAAC,mBAAmB,CAAC;gBACrC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC1B,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;oBAC5C,IAAI,CAAC,cAAc,CACjB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,CAAC,GAAG,EACjB,IAAI,CAAC,QAAQ,CAAC,SAAS,EACvB,IAAI,EACJ,IAAI,mEAAgC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;IAEM,sBAAsB,CAC3B,IAAY,EACZ,OAAmC;QAEnC,IAAI,CAAC,cAAc,CACjB,IAAI,8BAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAC5C,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts new file mode 100644 index 00000000..b8ee01c0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class MappedTypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']); +} +export { MappedTypeScope }; +//# sourceMappingURL=MappedTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map new file mode 100644 index 00000000..2bb0eb74 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,eAAgB,SAAQ,SAAS,CACrC,SAAS,CAAC,UAAU,EACpB,QAAQ,CAAC,YAAY,EACrB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,CAAC,OAAO,CAAC,EACpC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;CAIlC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js new file mode 100644 index 00000000..81879c5f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MappedTypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class MappedTypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.mappedType, upperScope, block, false); + } +} +exports.MappedTypeScope = MappedTypeScope; +//# sourceMappingURL=MappedTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map new file mode 100644 index 00000000..a8fd9101 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MappedTypeScope.js","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAI7B;IACC,YACE,YAA0B,EAC1B,UAAoC,EACpC,KAA+B;QAE/B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts new file mode 100644 index 00000000..ac537d89 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class ModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']); +} +export { ModuleScope }; +//# sourceMappingURL=ModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map new file mode 100644 index 00000000..f32436c2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;gBAE1E,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js new file mode 100644 index 00000000..9d84e34a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class ModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.module, upperScope, block, false); + } +} +exports.ModuleScope = ModuleScope; +//# sourceMappingURL=ModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map new file mode 100644 index 00000000..984b690c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModuleScope.js","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAAoD;IAC5E,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts new file mode 100644 index 00000000..73cc9eea --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts @@ -0,0 +1,21 @@ +import type { BlockScope } from './BlockScope'; +import type { CatchScope } from './CatchScope'; +import type { ClassFieldInitializerScope } from './ClassFieldInitializerScope'; +import type { ClassScope } from './ClassScope'; +import type { ClassStaticBlockScope } from './ClassStaticBlockScope'; +import type { ConditionalTypeScope } from './ConditionalTypeScope'; +import type { ForScope } from './ForScope'; +import type { FunctionExpressionNameScope } from './FunctionExpressionNameScope'; +import type { FunctionScope } from './FunctionScope'; +import type { FunctionTypeScope } from './FunctionTypeScope'; +import type { GlobalScope } from './GlobalScope'; +import type { MappedTypeScope } from './MappedTypeScope'; +import type { ModuleScope } from './ModuleScope'; +import type { SwitchScope } from './SwitchScope'; +import type { TSEnumScope } from './TSEnumScope'; +import type { TSModuleScope } from './TSModuleScope'; +import type { TypeScope } from './TypeScope'; +import type { WithScope } from './WithScope'; +type Scope = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope; +export type { Scope }; +//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map new file mode 100644 index 00000000..40a584fa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cA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utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js new file mode 100644 index 00000000..676430c1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map new file mode 100644 index 00000000..03b04c83 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts new file mode 100644 index 00000000..0f605fa4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts @@ -0,0 +1,98 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { ReferenceImplicitGlobal } from '../referencer/Reference'; +import type { ScopeManager } from '../ScopeManager'; +import type { FunctionScope } from './FunctionScope'; +import type { GlobalScope } from './GlobalScope'; +import type { ModuleScope } from './ModuleScope'; +import type { Scope } from './Scope'; +import type { TSModuleScope } from './TSModuleScope'; +import { Reference, ReferenceFlag } from '../referencer/Reference'; +import { Variable } from '../variable'; +import { ScopeType } from './ScopeType'; +type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope; +declare abstract class ScopeBase { + #private; + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The AST node which created this scope. + * @public + */ + readonly block: Block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + readonly childScopes: Scope[]; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + readonly functionExpressionScope: boolean; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict: boolean; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + protected leftToResolve: Reference[] | null; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + readonly references: Reference[]; + /** + * The map from variable names to variable objects. + * @public + */ + readonly set: Map; + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + readonly through: Reference[]; + readonly type: Type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + readonly upper: Upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + readonly variables: Variable[]; + readonly variableScope: VariableScope; + constructor(scopeManager: ScopeManager, type: Type, upperScope: Upper, block: Block, isMethodDefinition: boolean); + private isVariableScope; + private shouldStaticallyCloseForGlobal; + close(scopeManager: ScopeManager): Scope | null; + shouldStaticallyClose(): boolean; + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + protected defineVariable(nameOrVariable: string | Variable, set: Map, variables: Variable[], node: TSESTree.Identifier | null, def: Definition | null): void; + protected delegateToUpperScope(ref: Reference): void; + protected isValidResolution(_ref: Reference, _variable: Variable): boolean; + private addDeclaredVariablesOfNode; + defineIdentifier(node: TSESTree.Identifier, def: Definition): void; + defineLiteralIdentifier(node: TSESTree.StringLiteral, def: Definition): void; + referenceDualValueType(node: TSESTree.Identifier): void; + referenceType(node: TSESTree.Identifier): void; + referenceValue(node: TSESTree.Identifier | TSESTree.JSXIdentifier, assign?: ReferenceFlag, writeExpr?: TSESTree.Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void; +} +export { ScopeBase }; +//# sourceMappingURL=ScopeBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map new file mode 100644 index 00000000..a827de48 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,OAAO,EACL,SAAS,EACT,aAAa,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,E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M,GAAG,QAAQ,EACjC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC1B,SAAS,EAAE,QAAQ,EAAE,EACrB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EAChC,GAAG,EAAE,UAAU,GAAG,IAAI,GACrB,IAAI;IAuBP,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAKpD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,OAAO;IAI1E,OAAO,CAAC,0BAA0B;IAmB3B,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAIlE,uBAAuB,CAC5B,IAAI,EAAE,QAAQ,CAAC,aAAa,EAC5B,GAAG,EAAE,UAAU,GACd,IAAI;IAIA,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAevD,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAe9C,cAAc,CACnB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,MAAM,GAAE,aAAkC,EAC1C,SAAS,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EACtC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,UAAQ,GACX,IAAI;CAcR;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js new file mode 100644 index 00000000..f9665edc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js @@ -0,0 +1,361 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeBase = void 0; +const types_1 = require("@typescript-eslint/types"); +const assert_1 = require("../assert"); +const definition_1 = require("../definition"); +const ID_1 = require("../ID"); +const Reference_1 = require("../referencer/Reference"); +const variable_1 = require("../variable"); +const ScopeType_1 = require("./ScopeType"); +/** + * Test if scope is strict + */ +function isStrictScope(scope, block, isMethodDefinition) { + let body; + // When upper scope is exists and strict, inner scope is also strict. + if (scope.upper?.isStrict) { + return true; + } + if (isMethodDefinition) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.class || + scope.type === ScopeType_1.ScopeType.conditionalType || + scope.type === ScopeType_1.ScopeType.functionType || + scope.type === ScopeType_1.ScopeType.mappedType || + scope.type === ScopeType_1.ScopeType.module || + scope.type === ScopeType_1.ScopeType.tsEnum || + scope.type === ScopeType_1.ScopeType.tsModule || + scope.type === ScopeType_1.ScopeType.type) { + return true; + } + if (scope.type === ScopeType_1.ScopeType.block || scope.type === ScopeType_1.ScopeType.switch) { + return false; + } + if (scope.type === ScopeType_1.ScopeType.function) { + const functionBody = block; + switch (functionBody.type) { + case types_1.AST_NODE_TYPES.ArrowFunctionExpression: + if (functionBody.body.type !== types_1.AST_NODE_TYPES.BlockStatement) { + return false; + } + body = functionBody.body; + break; + case types_1.AST_NODE_TYPES.Program: + body = functionBody; + break; + default: + body = functionBody.body; + } + if (!body) { + return false; + } + } + else if (scope.type === ScopeType_1.ScopeType.global) { + body = block; + } + else { + return false; + } + // Search 'use strict' directive. + for (const stmt of body.body) { + if (stmt.type !== types_1.AST_NODE_TYPES.ExpressionStatement) { + break; + } + if (stmt.directive === 'use strict') { + return true; + } + const expr = stmt.expression; + if (expr.type !== types_1.AST_NODE_TYPES.Literal) { + break; + } + if (expr.raw === '"use strict"' || expr.raw === "'use strict'") { + return true; + } + if (expr.value === 'use strict') { + return true; + } + } + return false; +} +function registerScope(scopeManager, scope) { + scopeManager.scopes.push(scope); + const scopes = scopeManager.nodeToScope.get(scope.block); + if (scopes) { + scopes.push(scope); + } + else { + scopeManager.nodeToScope.set(scope.block, [scope]); + } +} +const generator = (0, ID_1.createIdGenerator)(); +const VARIABLE_SCOPE_TYPES = new Set([ + ScopeType_1.ScopeType.classFieldInitializer, + ScopeType_1.ScopeType.classStaticBlock, + ScopeType_1.ScopeType.function, + ScopeType_1.ScopeType.global, + ScopeType_1.ScopeType.module, + ScopeType_1.ScopeType.tsModule, +]); +class ScopeBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The AST node which created this scope. + * @public + */ + block; + /** + * The array of child scopes. This does not include grandchild scopes. + * @public + */ + childScopes = []; + /** + * A map of the variables for each node in this scope. + * This is map is a pointer to the one in the parent ScopeManager instance + */ + #declaredVariables; + /** + * Generally, through the lexical scoping of JS you can always know which variable an identifier in the source code + * refers to. There are a few exceptions to this rule. With `global` and `with` scopes you can only decide at runtime + * which variable a reference refers to. + * All those scopes are considered "dynamic". + */ + #dynamic; + /** + * Whether this scope is created by a FunctionExpression. + * @public + */ + functionExpressionScope = false; + /** + * Whether 'use strict' is in effect in this scope. + * @public + */ + isStrict; + /** + * List of {@link Reference}s that are left to be resolved (i.e. which + * need to be linked to the variable they refer to). + */ + leftToResolve = []; + /** + * Any variable {@link Reference} found in this scope. + * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). + * For local variables this also includes defining occurrences (like in a 'var' statement). + * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. + * @public + */ + references = []; + /** + * The map from variable names to variable objects. + * @public + */ + set = new Map(); + /** + * The {@link Reference}s that are not resolved with this scope. + * @public + */ + through = []; + type; + /** + * Reference to the parent {@link Scope}. + * @public + */ + upper; + /** + * The scoped {@link Variable}s of this scope. + * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well + * as all further formal arguments. + * This does not include variables which are defined in child scopes. + * @public + */ + variables = []; + /** + * For scopes that can contain variable declarations, this is a self-reference. + * For other scope types this is the *variableScope* value of the parent scope. + * @public + */ + #dynamicCloseRef = (ref) => { + // notify all names are through to global + let current = this; + do { + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + current.through.push(ref); + current = current.upper; + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + } while (current); + }; + #globalCloseRef = (ref, scopeManager) => { + // let/const/class declarations should be resolved statically. + // others should be resolved dynamically. + if (this.shouldStaticallyCloseForGlobal(ref, scopeManager)) { + this.#staticCloseRef(ref); + } + else { + this.#dynamicCloseRef(ref); + } + }; + #staticCloseRef = (ref) => { + const resolve = () => { + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + if (!this.isValidResolution(ref, variable)) { + return false; + } + // make sure we don't match a type reference to a value variable + const isValidTypeReference = ref.isTypeReference && variable.isTypeVariable; + const isValidValueReference = ref.isValueReference && variable.isValueVariable; + if (!isValidTypeReference && !isValidValueReference) { + return false; + } + variable.references.push(ref); + ref.resolved = variable; + return true; + }; + if (!resolve()) { + this.delegateToUpperScope(ref); + } + }; + variableScope; + constructor(scopeManager, type, upperScope, block, isMethodDefinition) { + const upperScopeAsScopeBase = upperScope; + this.type = type; + this.#dynamic = + this.type === ScopeType_1.ScopeType.global || this.type === ScopeType_1.ScopeType.with; + this.block = block; + this.variableScope = this.isVariableScope() + ? this + : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + upperScopeAsScopeBase.variableScope; + this.upper = upperScope; + /** + * Whether 'use strict' is in effect in this scope. + * @member {boolean} Scope#isStrict + */ + this.isStrict = isStrictScope(this, block, isMethodDefinition); + // this is guaranteed to be correct at runtime + upperScopeAsScopeBase?.childScopes.push(this); + this.#declaredVariables = scopeManager.declaredVariables; + registerScope(scopeManager, this); + } + isVariableScope() { + return VARIABLE_SCOPE_TYPES.has(this.type); + } + shouldStaticallyCloseForGlobal(ref, scopeManager) { + // On global scope, let/const/class declarations should be resolved statically. + const name = ref.identifier.name; + const variable = this.set.get(name); + if (!variable) { + return false; + } + // variable exists on the scope + // in module mode, we can statically resolve everything, regardless of its decl type + if (scopeManager.isModule()) { + return true; + } + // in script mode, only certain cases should be statically resolved + // Example: + // a `var` decl is ignored by the runtime if it clashes with a global name + // this means that we should not resolve the reference to the variable + const defs = variable.defs; + return (defs.length > 0 && + defs.every(def => { + if (def.type === definition_1.DefinitionType.Variable && def.parent.kind === 'var') { + return false; + } + return true; + })); + } + close(scopeManager) { + let closeRef; + if (this.shouldStaticallyClose()) { + closeRef = this.#staticCloseRef; + } + else if (this.type !== 'global') { + closeRef = this.#dynamicCloseRef; + } + else { + closeRef = this.#globalCloseRef; + } + // Try Resolving all references in this scope. + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => closeRef(ref, scopeManager)); + this.leftToResolve = null; + return this.upper; + } + shouldStaticallyClose() { + return !this.#dynamic; + } + /** + * To override by function scopes. + * References in default parameters isn't resolved to variables which are in their function body. + */ + defineVariable(nameOrVariable, set, variables, node, def) { + const name = typeof nameOrVariable === 'string' ? nameOrVariable : nameOrVariable.name; + let variable = set.get(name); + if (!variable) { + variable = + typeof nameOrVariable === 'string' + ? new variable_1.Variable(name, this) + : nameOrVariable; + set.set(name, variable); + variables.push(variable); + } + if (def) { + variable.defs.push(def); + this.addDeclaredVariablesOfNode(variable, def.node); + this.addDeclaredVariablesOfNode(variable, def.parent); + } + if (node) { + variable.identifiers.push(node); + } + } + delegateToUpperScope(ref) { + this.upper?.leftToResolve?.push(ref); + this.through.push(ref); + } + isValidResolution(_ref, _variable) { + return true; + } + addDeclaredVariablesOfNode(variable, node) { + if (node == null) { + return; + } + let variables = this.#declaredVariables.get(node); + if (variables == null) { + variables = []; + this.#declaredVariables.set(node, variables); + } + if (!variables.includes(variable)) { + variables.push(variable); + } + } + defineIdentifier(node, def) { + this.defineVariable(node.name, this.set, this.variables, node, def); + } + defineLiteralIdentifier(node, def) { + this.defineVariable(node.value, this.set, this.variables, null, def); + } + referenceDualValueType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type | Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceType(node) { + const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type); + this.references.push(ref); + this.leftToResolve?.push(ref); + } + referenceValue(node, assign = Reference_1.ReferenceFlag.Read, writeExpr, maybeImplicitGlobal, init = false) { + const ref = new Reference_1.Reference(node, this, assign, writeExpr, maybeImplicitGlobal, init, Reference_1.ReferenceTypeFlag.Value); + this.references.push(ref); + this.leftToResolve?.push(ref); + } +} +exports.ScopeBase = ScopeBase; +//# sourceMappingURL=ScopeBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map new file mode 100644 index 00000000..7315c8d2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeBase.js","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAW1D,sCAAmC;AACnC,8CAA+C;AAC/C,8BAA0C;AAC1C,uDAIiC;AACjC,0CAAuC;AACvC,2CAAwC;AAExC;;GAEG;AACH,SAAS,aAAa,CACpB,KAAY,EACZ,KAAoB,EACpB,kBAA2B;IAE3B,IAAI,IAAmE,CAAC;IAExE,qEAAqE;IACrE,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK;QAC9B,KAAK,CAAC,IAAI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AC;IAChC,CAAC;IAEM,cAAc,CACnB,IAAkD,EAClD,SAAwB,yBAAa,CAAC,IAAI,EAC1C,SAAsC,EACtC,mBAAoD,EACpD,IAAI,GAAG,KAAK;QAEZ,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,6BAAiB,CAAC,KAAK,CACxB,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts new file mode 100644 index 00000000..8b5dea31 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts @@ -0,0 +1,22 @@ +declare enum ScopeType { + block = "block", + catch = "catch", + class = "class", + classFieldInitializer = "class-field-initializer", + classStaticBlock = "class-static-block", + conditionalType = "conditionalType", + for = "for", + function = "function", + functionExpressionName = "function-expression-name", + functionType = "functionType", + global = "global", + mappedType = "mappedType", + module = "module", + switch = "switch", + tsEnum = "tsEnum", + tsModule = "tsModule", + type = "type", + with = "with" +} +export { ScopeType }; +//# sourceMappingURL=ScopeType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map new file mode 100644 index 00000000..7201b33a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACZ,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,sBAAsB,6BAA6B;IACnD,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js new file mode 100644 index 00000000..93dab0eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ScopeType = void 0; +var ScopeType; +(function (ScopeType) { + ScopeType["block"] = "block"; + ScopeType["catch"] = "catch"; + ScopeType["class"] = "class"; + ScopeType["classFieldInitializer"] = "class-field-initializer"; + ScopeType["classStaticBlock"] = "class-static-block"; + ScopeType["conditionalType"] = "conditionalType"; + ScopeType["for"] = "for"; + ScopeType["function"] = "function"; + ScopeType["functionExpressionName"] = "function-expression-name"; + ScopeType["functionType"] = "functionType"; + ScopeType["global"] = "global"; + ScopeType["mappedType"] = "mappedType"; + ScopeType["module"] = "module"; + ScopeType["switch"] = "switch"; + ScopeType["tsEnum"] = "tsEnum"; + ScopeType["tsModule"] = "tsModule"; + ScopeType["type"] = "type"; + ScopeType["with"] = "with"; +})(ScopeType || (exports.ScopeType = ScopeType = {})); +//# sourceMappingURL=ScopeType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map new file mode 100644 index 00000000..6481f328 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScopeType.js","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAnBI,SAAS,yBAAT,SAAS,QAmBb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts new file mode 100644 index 00000000..fe4c0dc1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class SwitchScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']); +} +export { SwitchScope }; +//# sourceMappingURL=SwitchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map new file mode 100644 index 00000000..17f5e86f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.d.ts","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,eAAe,EACxB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js new file mode 100644 index 00000000..9229e4ed --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwitchScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class SwitchScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.switch, upperScope, block, false); + } +} +exports.SwitchScope = SwitchScope; +//# sourceMappingURL=SwitchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map new file mode 100644 index 00000000..cb5fe27c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwitchScope.js","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts new file mode 100644 index 00000000..38c09ea9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSEnumScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']); +} +export { TSEnumScope }; +//# sourceMappingURL=TSEnumScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map new file mode 100644 index 00000000..3f6d4862 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js new file mode 100644 index 00000000..1f51bfb1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSEnumScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSEnumScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsEnum, upperScope, block, false); + } +} +exports.TSEnumScope = TSEnumScope; +//# sourceMappingURL=TSEnumScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map new file mode 100644 index 00000000..c438ce55 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSEnumScope.js","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts new file mode 100644 index 00000000..386180a0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TSModuleScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']); +} +export { TSModuleScope }; +//# sourceMappingURL=TSModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map new file mode 100644 index 00000000..e16892b2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAClB,QAAQ,CAAC,mBAAmB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;CAIhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js new file mode 100644 index 00000000..86279082 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSModuleScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TSModuleScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.tsModule, upperScope, block, false); + } +} +exports.TSModuleScope = TSModuleScope; +//# sourceMappingURL=TSModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map new file mode 100644 index 00000000..330396c4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TSModuleScope.js","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAI3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B;QAE7B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts new file mode 100644 index 00000000..bde4d536 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts @@ -0,0 +1,10 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class TypeScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']); +} +export { TypeScope }; +//# sourceMappingURL=TypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map new file mode 100644 index 00000000..9efd512a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,EACjE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CAI5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js new file mode 100644 index 00000000..ebbf5fe6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeScope = void 0; +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class TypeScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.type, upperScope, block, false); + } +} +exports.TypeScope = TypeScope; +//# sourceMappingURL=TypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map new file mode 100644 index 00000000..74272f42 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeScope.js","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":";;;AAKA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts new file mode 100644 index 00000000..1eaa4854 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts @@ -0,0 +1,11 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { ScopeManager } from '../ScopeManager'; +import type { Scope } from './Scope'; +import { ScopeBase } from './ScopeBase'; +import { ScopeType } from './ScopeType'; +declare class WithScope extends ScopeBase { + constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']); + close(scopeManager: ScopeManager): Scope | null; +} +export { WithScope }; +//# sourceMappingURL=WithScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map new file mode 100644 index 00000000..a2cc41d8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.d.ts","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,aAAa,EACtB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAI3B,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAShD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js new file mode 100644 index 00000000..734034d6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithScope = void 0; +const assert_1 = require("../assert"); +const ScopeBase_1 = require("./ScopeBase"); +const ScopeType_1 = require("./ScopeType"); +class WithScope extends ScopeBase_1.ScopeBase { + constructor(scopeManager, upperScope, block) { + super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false); + } + close(scopeManager) { + if (this.shouldStaticallyClose()) { + return super.close(scopeManager); + } + (0, assert_1.assert)(this.leftToResolve); + this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref)); + this.leftToResolve = null; + return this.upper; + } +} +exports.WithScope = WithScope; +//# sourceMappingURL=WithScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map new file mode 100644 index 00000000..567a872a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithScope.js","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":";;;AAKA,sCAAmC;AACnC,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,CAAC,YAA0B;QAC9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;QACD,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts new file mode 100644 index 00000000..7bf60717 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts @@ -0,0 +1,20 @@ +export * from './BlockScope'; +export * from './CatchScope'; +export * from './ClassFieldInitializerScope'; +export * from './ClassScope'; +export * from './ConditionalTypeScope'; +export * from './ForScope'; +export * from './FunctionExpressionNameScope'; +export * from './FunctionScope'; +export * from './FunctionTypeScope'; +export * from './GlobalScope'; +export * from './MappedTypeScope'; +export * from './ModuleScope'; +export * from './Scope'; +export * from './ScopeType'; +export * from './SwitchScope'; +export * from './TSEnumScope'; +export * from './TSModuleScope'; +export * from './TypeScope'; +export * from './WithScope'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map new file mode 100644 index 00000000..43f10ba3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js new file mode 100644 index 00000000..22187136 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js @@ -0,0 +1,36 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./BlockScope"), exports); +__exportStar(require("./CatchScope"), exports); +__exportStar(require("./ClassFieldInitializerScope"), exports); +__exportStar(require("./ClassScope"), exports); +__exportStar(require("./ConditionalTypeScope"), exports); +__exportStar(require("./ForScope"), exports); +__exportStar(require("./FunctionExpressionNameScope"), exports); +__exportStar(require("./FunctionScope"), exports); +__exportStar(require("./FunctionTypeScope"), exports); +__exportStar(require("./GlobalScope"), exports); +__exportStar(require("./MappedTypeScope"), exports); +__exportStar(require("./ModuleScope"), exports); +__exportStar(require("./Scope"), exports); +__exportStar(require("./ScopeType"), exports); +__exportStar(require("./SwitchScope"), exports); +__exportStar(require("./TSEnumScope"), exports); +__exportStar(require("./TSModuleScope"), exports); +__exportStar(require("./TypeScope"), exports); +__exportStar(require("./WithScope"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map new file mode 100644 index 00000000..2ceff644 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts new file mode 100644 index 00000000..fd5e08be --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts @@ -0,0 +1,34 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import { VariableBase } from './VariableBase'; +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +declare class ESLintScopeVariable extends VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable?: boolean; + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal?: boolean; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting?: 'readonly' | 'writable'; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments?: TSESTree.Comment[]; +} +export { ESLintScopeVariable }; +//# sourceMappingURL=ESLintScopeVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map new file mode 100644 index 00000000..b544931c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACI,2BAA2B,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE7D;;;;OAIG;IACI,4BAA4B,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC1D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js new file mode 100644 index 00000000..d36def70 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ESLintScopeVariable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * ESLint defines global variables using the eslint-scope Variable class + * This is declared her for consumers to use + */ +class ESLintScopeVariable extends VariableBase_1.VariableBase { + /** + * Written to by ESLint. + * If this key exists, this variable is a global variable added by ESLint. + * If this is `true`, this variable can be assigned arbitrary values. + * If this is `false`, this variable is readonly. + */ + writeable; // note that this isn't a typo - ESlint uses this spelling here + /** + * Written to by ESLint. + * This property is undefined if there are no globals directive comments. + * The array of globals directive comments which defined this global variable in the source code file. + */ + eslintExplicitGlobal; + /** + * Written to by ESLint. + * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. + */ + eslintImplicitGlobalSetting; + /** + * Written to by ESLint. + * If this key exists, it is a global variable added by ESLint. + * If `true`, this global variable was defined by a globals directive comment in the source code file. + */ + eslintExplicitGlobalComments; +} +exports.ESLintScopeVariable = ESLintScopeVariable; +//# sourceMappingURL=ESLintScopeVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map new file mode 100644 index 00000000..973b7314 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintScopeVariable.js","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C;;;GAGG;AACH,MAAM,mBAAoB,SAAQ,2BAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAW,CAAC,+DAA+D;IAE3F;;;;OAIG;IACI,oBAAoB,CAAW;IAEtC;;;OAGG;IACI,2BAA2B,CAA2B;IAE7D;;;;OAIG;IACI,4BAA4B,CAAsB;CAC1D;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts new file mode 100644 index 00000000..79eef8fc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts @@ -0,0 +1,25 @@ +import type { Scope } from '../scope'; +import type { Variable } from './Variable'; +import { ESLintScopeVariable } from './ESLintScopeVariable'; +interface ImplicitLibVariableOptions { + readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting']; + readonly isTypeVariable?: boolean; + readonly isValueVariable?: boolean; + readonly writeable?: boolean; +} +/** + * An variable implicitly defined by the TS Lib + */ +declare class ImplicitLibVariable extends ESLintScopeVariable implements Variable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + readonly isTypeVariable: boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + readonly isValueVariable: boolean; + constructor(scope: Scope, name: string, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }: ImplicitLibVariableOptions); +} +export { ImplicitLibVariable, type ImplicitLibVariableOptions }; +//# sourceMappingURL=ImplicitLibVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map new file mode 100644 index 00000000..2eb2db90 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,cAAM,mBAAoB,SAAQ,mBAAoB,YAAW,QAAQ;IACvE;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;gBAGvC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACV,EAAE,0BAA0B;CAShC;AAED,OAAO,EAAE,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js new file mode 100644 index 00000000..046c4109 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImplicitLibVariable = void 0; +const ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +/** + * An variable implicitly defined by the TS Lib + */ +class ImplicitLibVariable extends ESLintScopeVariable_1.ESLintScopeVariable { + /** + * `true` if the variable is valid in a type context, false otherwise + */ + isTypeVariable; + /** + * `true` if the variable is valid in a value context, false otherwise + */ + isValueVariable; + constructor(scope, name, { eslintImplicitGlobalSetting, isTypeVariable, isValueVariable, writeable, }) { + super(name, scope); + this.isTypeVariable = isTypeVariable ?? false; + this.isValueVariable = isValueVariable ?? false; + this.writeable = writeable ?? false; + this.eslintImplicitGlobalSetting = + eslintImplicitGlobalSetting ?? 'readonly'; + } +} +exports.ImplicitLibVariable = ImplicitLibVariable; +//# sourceMappingURL=ImplicitLibVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map new file mode 100644 index 00000000..3149b8bb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ImplicitLibVariable.js","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAS5D;;GAEG;AACH,MAAM,mBAAoB,SAAQ,yCAAmB;IACnD;;OAEG;IACa,cAAc,CAAU;IAExC;;OAEG;IACa,eAAe,CAAU;IAEzC,YACE,KAAY,EACZ,IAAY,EACZ,EACE,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,SAAS,GACkB;QAE7B,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,KAAK,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,KAAK,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;QACpC,IAAI,CAAC,2BAA2B;YAC9B,2BAA2B,IAAI,UAAU,CAAC;IAC9C,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts new file mode 100644 index 00000000..83754b17 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts @@ -0,0 +1,18 @@ +import { VariableBase } from './VariableBase'; +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +declare class Variable extends VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable(): boolean; + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable(): boolean; +} +export { Variable }; +//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map new file mode 100644 index 00000000..9b56c4f4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,cAAM,QAAS,SAAQ,YAAY;IACjC;;;OAGG;IACH,IAAW,cAAc,IAAI,OAAO,CAOnC;IAED;;;OAGG;IACH,IAAW,eAAe,IAAI,OAAO,CAOpC;CACF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js new file mode 100644 index 00000000..8b72550e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = void 0; +const VariableBase_1 = require("./VariableBase"); +/** + * A Variable represents a locally scoped identifier. These include arguments to functions. + */ +class Variable extends VariableBase_1.VariableBase { + /** + * `true` if the variable is valid in a type context, false otherwise + * @public + */ + get isTypeVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isTypeDefinition); + } + /** + * `true` if the variable is valid in a value context, false otherwise + * @public + */ + get isValueVariable() { + if (this.defs.length === 0) { + // we don't statically know whether this is a type or a value + return true; + } + return this.defs.some(def => def.isVariableDefinition); + } +} +exports.Variable = Variable; +//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map new file mode 100644 index 00000000..ba767144 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C;;GAEG;AACH,MAAM,QAAS,SAAQ,2BAAY;IACjC;;;OAGG;IACH,IAAW,cAAc;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts new file mode 100644 index 00000000..c74c7a38 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts @@ -0,0 +1,44 @@ +import type { TSESTree } from '@typescript-eslint/types'; +import type { Definition } from '../definition'; +import type { Reference } from '../referencer/Reference'; +import type { Scope } from '../scope'; +declare class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + readonly $id: number; + /** + * The array of the definitions of this variable. + * @public + */ + readonly defs: Definition[]; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed: boolean; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + readonly identifiers: TSESTree.Identifier[]; + /** + * The variable name, as given in the source code. + * @public + */ + readonly name: string; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + readonly references: Reference[]; + /** + * Reference to the enclosing Scope. + */ + readonly scope: Scope; + constructor(name: string, scope: Scope); +} +export { VariableBase }; +//# sourceMappingURL=VariableBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map new file mode 100644 index 00000000..02d49843 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.d.ts","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMtC,cAAM,YAAY;IAChB;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,UAAU,EAAE,CAAM;IACxC;;;OAGG;IACI,UAAU,UAAS;IAC1B;;;;OAIG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAM;IACxD;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7C;;OAEG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAIvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js new file mode 100644 index 00000000..911cb766 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VariableBase = void 0; +const ID_1 = require("../ID"); +const generator = (0, ID_1.createIdGenerator)(); +class VariableBase { + /** + * A unique ID for this instance - primarily used to help debugging and testing + */ + $id = generator(); + /** + * The array of the definitions of this variable. + * @public + */ + defs = []; + /** + * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. + * @public + */ + eslintUsed = false; + /** + * The array of `Identifier` nodes which define this variable. + * If this variable is redeclared, this array includes two or more nodes. + * @public + */ + identifiers = []; + /** + * The variable name, as given in the source code. + * @public + */ + name; + /** + * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. + * For defining occurrences only see {@link Variable#defs}. + * @public + */ + references = []; + /** + * Reference to the enclosing Scope. + */ + scope; + constructor(name, scope) { + this.name = name; + this.scope = scope; + } +} +exports.VariableBase = VariableBase; +//# sourceMappingURL=VariableBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map new file mode 100644 index 00000000..2bcb51cd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VariableBase.js","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":";;;AAMA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAM,YAAY;IAChB;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;;OAGG;IACa,IAAI,GAAiB,EAAE,CAAC;IACxC;;;OAGG;IACI,UAAU,GAAG,KAAK,CAAC;IAC1B;;;;OAIG;IACa,WAAW,GAA0B,EAAE,CAAC;IACxD;;;OAGG;IACa,IAAI,CAAS;IAC7B;;;;OAIG;IACa,UAAU,GAAgB,EAAE,CAAC;IAC7C;;OAEG;IACa,KAAK,CAAQ;IAE7B,YAAY,IAAY,EAAE,KAAY;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts new file mode 100644 index 00000000..d4c06283 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts @@ -0,0 +1,7 @@ +import type { ESLintScopeVariable } from './ESLintScopeVariable'; +import type { Variable } from './Variable'; +export { ESLintScopeVariable } from './ESLintScopeVariable'; +export { ImplicitLibVariable, type ImplicitLibVariableOptions, } from './ImplicitLibVariable'; +export { Variable } from './Variable'; +export type ScopeVariable = ESLintScopeVariable | Variable; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map new file mode 100644 index 00000000..7fc712e1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js new file mode 100644 index 00000000..1e36582b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Variable = exports.ImplicitLibVariable = exports.ESLintScopeVariable = void 0; +var ESLintScopeVariable_1 = require("./ESLintScopeVariable"); +Object.defineProperty(exports, "ESLintScopeVariable", { enumerable: true, get: function () { return ESLintScopeVariable_1.ESLintScopeVariable; } }); +var ImplicitLibVariable_1 = require("./ImplicitLibVariable"); +Object.defineProperty(exports, "ImplicitLibVariable", { enumerable: true, get: function () { return ImplicitLibVariable_1.ImplicitLibVariable; } }); +var Variable_1 = require("./Variable"); +Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map new file mode 100644 index 00000000..51902f54 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":";;;AAGA,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,6DAG+B;AAF7B,0HAAA,mBAAmB,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/package.json new file mode 100644 index 00000000..0293f8fe --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager/package.json @@ -0,0 +1,74 @@ +{ + "name": "@typescript-eslint/scope-manager", + "version": "8.16.0", + "description": "TypeScript scope analyser for ESLint", + "files": [ + "dist", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/scope-manager" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/scope-manager", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "npx nx build", + "clean": "npx nx clean", + "clean-fixtures": "npx nx clean-fixtures", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx generate-lib repo", + "lint": "npx nx lint", + "test": "npx nx test --code-coverage", + "typecheck": "npx nx typecheck" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/glob": "*", + "@typescript-eslint/typescript-estree": "8.16.0", + "glob": "*", + "jest-specific-snapshot": "*", + "make-dir": "*", + "prettier": "^3.2.5", + "pretty-format": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/README.md new file mode 100644 index 00000000..7a3008bb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/types` + +> Types for the TypeScript-ESTree AST spec + +This package exists to help us reduce cycles and provide lighter-weight packages at runtime. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts new file mode 100644 index 00000000..3c00ec40 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts @@ -0,0 +1,2159 @@ +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +import type { SyntaxKind } from 'typescript'; +export declare type Accessibility = 'private' | 'protected' | 'public'; +export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; +export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.AccessorProperty; +} +export declare interface ArrayExpression extends BaseNode { + type: AST_NODE_TYPES.ArrayExpression; + /** + * an element will be `null` in the case of a sparse array: `[1, ,3]` + */ + elements: (Expression | SpreadElement | null)[]; +} +export declare interface ArrayPattern extends BaseNode { + type: AST_NODE_TYPES.ArrayPattern; + decorators: Decorator[]; + elements: (DestructuringPattern | null)[]; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface ArrowFunctionExpression extends BaseNode { + type: AST_NODE_TYPES.ArrowFunctionExpression; + async: boolean; + body: BlockStatement | Expression; + expression: boolean; + generator: boolean; + id: null; + params: Parameter[]; + returnType: TSTypeAnnotation | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface AssignmentExpression extends BaseNode { + type: AST_NODE_TYPES.AssignmentExpression; + left: Expression; + operator: ValueOf; + right: Expression; +} +export declare interface AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; + [SyntaxKind.AmpersandEqualsToken]: '&='; + [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; + [SyntaxKind.AsteriskEqualsToken]: '*='; + [SyntaxKind.BarBarEqualsToken]: '||='; + [SyntaxKind.BarEqualsToken]: '|='; + [SyntaxKind.CaretEqualsToken]: '^='; + [SyntaxKind.EqualsToken]: '='; + [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; + [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; + [SyntaxKind.MinusEqualsToken]: '-='; + [SyntaxKind.PercentEqualsToken]: '%='; + [SyntaxKind.PlusEqualsToken]: '+='; + [SyntaxKind.QuestionQuestionEqualsToken]: '??='; + [SyntaxKind.SlashEqualsToken]: '/='; +} +export declare interface AssignmentPattern extends BaseNode { + type: AST_NODE_TYPES.AssignmentPattern; + decorators: Decorator[]; + left: BindingName; + optional: boolean; + right: Expression; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare enum AST_NODE_TYPES { + AccessorProperty = "AccessorProperty", + ArrayExpression = "ArrayExpression", + ArrayPattern = "ArrayPattern", + ArrowFunctionExpression = "ArrowFunctionExpression", + AssignmentExpression = "AssignmentExpression", + AssignmentPattern = "AssignmentPattern", + AwaitExpression = "AwaitExpression", + BinaryExpression = "BinaryExpression", + BlockStatement = "BlockStatement", + BreakStatement = "BreakStatement", + CallExpression = "CallExpression", + CatchClause = "CatchClause", + ChainExpression = "ChainExpression", + ClassBody = "ClassBody", + ClassDeclaration = "ClassDeclaration", + ClassExpression = "ClassExpression", + ConditionalExpression = "ConditionalExpression", + ContinueStatement = "ContinueStatement", + DebuggerStatement = "DebuggerStatement", + Decorator = "Decorator", + DoWhileStatement = "DoWhileStatement", + EmptyStatement = "EmptyStatement", + ExportAllDeclaration = "ExportAllDeclaration", + ExportDefaultDeclaration = "ExportDefaultDeclaration", + ExportNamedDeclaration = "ExportNamedDeclaration", + ExportSpecifier = "ExportSpecifier", + ExpressionStatement = "ExpressionStatement", + ForInStatement = "ForInStatement", + ForOfStatement = "ForOfStatement", + ForStatement = "ForStatement", + FunctionDeclaration = "FunctionDeclaration", + FunctionExpression = "FunctionExpression", + Identifier = "Identifier", + IfStatement = "IfStatement", + ImportAttribute = "ImportAttribute", + ImportDeclaration = "ImportDeclaration", + ImportDefaultSpecifier = "ImportDefaultSpecifier", + ImportExpression = "ImportExpression", + ImportNamespaceSpecifier = "ImportNamespaceSpecifier", + ImportSpecifier = "ImportSpecifier", + JSXAttribute = "JSXAttribute", + JSXClosingElement = "JSXClosingElement", + JSXClosingFragment = "JSXClosingFragment", + JSXElement = "JSXElement", + JSXEmptyExpression = "JSXEmptyExpression", + JSXExpressionContainer = "JSXExpressionContainer", + JSXFragment = "JSXFragment", + JSXIdentifier = "JSXIdentifier", + JSXMemberExpression = "JSXMemberExpression", + JSXNamespacedName = "JSXNamespacedName", + JSXOpeningElement = "JSXOpeningElement", + JSXOpeningFragment = "JSXOpeningFragment", + JSXSpreadAttribute = "JSXSpreadAttribute", + JSXSpreadChild = "JSXSpreadChild", + JSXText = "JSXText", + LabeledStatement = "LabeledStatement", + Literal = "Literal", + LogicalExpression = "LogicalExpression", + MemberExpression = "MemberExpression", + MetaProperty = "MetaProperty", + MethodDefinition = "MethodDefinition", + NewExpression = "NewExpression", + ObjectExpression = "ObjectExpression", + ObjectPattern = "ObjectPattern", + PrivateIdentifier = "PrivateIdentifier", + Program = "Program", + Property = "Property", + PropertyDefinition = "PropertyDefinition", + RestElement = "RestElement", + ReturnStatement = "ReturnStatement", + SequenceExpression = "SequenceExpression", + SpreadElement = "SpreadElement", + StaticBlock = "StaticBlock", + Super = "Super", + SwitchCase = "SwitchCase", + SwitchStatement = "SwitchStatement", + TaggedTemplateExpression = "TaggedTemplateExpression", + TemplateElement = "TemplateElement", + TemplateLiteral = "TemplateLiteral", + ThisExpression = "ThisExpression", + ThrowStatement = "ThrowStatement", + TryStatement = "TryStatement", + UnaryExpression = "UnaryExpression", + UpdateExpression = "UpdateExpression", + VariableDeclaration = "VariableDeclaration", + VariableDeclarator = "VariableDeclarator", + WhileStatement = "WhileStatement", + WithStatement = "WithStatement", + YieldExpression = "YieldExpression", + TSAbstractAccessorProperty = "TSAbstractAccessorProperty", + TSAbstractKeyword = "TSAbstractKeyword", + TSAbstractMethodDefinition = "TSAbstractMethodDefinition", + TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", + TSAnyKeyword = "TSAnyKeyword", + TSArrayType = "TSArrayType", + TSAsExpression = "TSAsExpression", + TSAsyncKeyword = "TSAsyncKeyword", + TSBigIntKeyword = "TSBigIntKeyword", + TSBooleanKeyword = "TSBooleanKeyword", + TSCallSignatureDeclaration = "TSCallSignatureDeclaration", + TSClassImplements = "TSClassImplements", + TSConditionalType = "TSConditionalType", + TSConstructorType = "TSConstructorType", + TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", + TSDeclareFunction = "TSDeclareFunction", + TSDeclareKeyword = "TSDeclareKeyword", + TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", + TSEnumBody = "TSEnumBody", + TSEnumDeclaration = "TSEnumDeclaration", + TSEnumMember = "TSEnumMember", + TSExportAssignment = "TSExportAssignment", + TSExportKeyword = "TSExportKeyword", + TSExternalModuleReference = "TSExternalModuleReference", + TSFunctionType = "TSFunctionType", + TSImportEqualsDeclaration = "TSImportEqualsDeclaration", + TSImportType = "TSImportType", + TSIndexedAccessType = "TSIndexedAccessType", + TSIndexSignature = "TSIndexSignature", + TSInferType = "TSInferType", + TSInstantiationExpression = "TSInstantiationExpression", + TSInterfaceBody = "TSInterfaceBody", + TSInterfaceDeclaration = "TSInterfaceDeclaration", + TSInterfaceHeritage = "TSInterfaceHeritage", + TSIntersectionType = "TSIntersectionType", + TSIntrinsicKeyword = "TSIntrinsicKeyword", + TSLiteralType = "TSLiteralType", + TSMappedType = "TSMappedType", + TSMethodSignature = "TSMethodSignature", + TSModuleBlock = "TSModuleBlock", + TSModuleDeclaration = "TSModuleDeclaration", + TSNamedTupleMember = "TSNamedTupleMember", + TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", + TSNeverKeyword = "TSNeverKeyword", + TSNonNullExpression = "TSNonNullExpression", + TSNullKeyword = "TSNullKeyword", + TSNumberKeyword = "TSNumberKeyword", + TSObjectKeyword = "TSObjectKeyword", + TSOptionalType = "TSOptionalType", + TSParameterProperty = "TSParameterProperty", + TSPrivateKeyword = "TSPrivateKeyword", + TSPropertySignature = "TSPropertySignature", + TSProtectedKeyword = "TSProtectedKeyword", + TSPublicKeyword = "TSPublicKeyword", + TSQualifiedName = "TSQualifiedName", + TSReadonlyKeyword = "TSReadonlyKeyword", + TSRestType = "TSRestType", + TSSatisfiesExpression = "TSSatisfiesExpression", + TSStaticKeyword = "TSStaticKeyword", + TSStringKeyword = "TSStringKeyword", + TSSymbolKeyword = "TSSymbolKeyword", + TSTemplateLiteralType = "TSTemplateLiteralType", + TSThisType = "TSThisType", + TSTupleType = "TSTupleType", + TSTypeAliasDeclaration = "TSTypeAliasDeclaration", + TSTypeAnnotation = "TSTypeAnnotation", + TSTypeAssertion = "TSTypeAssertion", + TSTypeLiteral = "TSTypeLiteral", + TSTypeOperator = "TSTypeOperator", + TSTypeParameter = "TSTypeParameter", + TSTypeParameterDeclaration = "TSTypeParameterDeclaration", + TSTypeParameterInstantiation = "TSTypeParameterInstantiation", + TSTypePredicate = "TSTypePredicate", + TSTypeQuery = "TSTypeQuery", + TSTypeReference = "TSTypeReference", + TSUndefinedKeyword = "TSUndefinedKeyword", + TSUnionType = "TSUnionType", + TSUnknownKeyword = "TSUnknownKeyword", + TSVoidKeyword = "TSVoidKeyword" +} +export declare enum AST_TOKEN_TYPES { + Boolean = "Boolean", + Identifier = "Identifier", + JSXIdentifier = "JSXIdentifier", + JSXText = "JSXText", + Keyword = "Keyword", + Null = "Null", + Numeric = "Numeric", + Punctuator = "Punctuator", + RegularExpression = "RegularExpression", + String = "String", + Template = "Template", + Block = "Block", + Line = "Line" +} +export declare interface AwaitExpression extends BaseNode { + type: AST_NODE_TYPES.AwaitExpression; + argument: Expression; +} +export declare interface BaseNode extends NodeOrTokenData { + type: AST_NODE_TYPES; +} +declare interface BaseToken extends NodeOrTokenData { + type: AST_TOKEN_TYPES; + value: string; +} +export declare interface BigIntLiteral extends LiteralBase { + bigint: string; + value: bigint | null; +} +export declare interface BinaryExpression extends BaseNode { + type: AST_NODE_TYPES.BinaryExpression; + left: Expression | PrivateIdentifier; + operator: ValueOf; + right: Expression; +} +export declare interface BinaryOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.InKeyword]: 'in'; + [SyntaxKind.InstanceOfKeyword]: 'instanceof'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanToken]: '<'; + [SyntaxKind.MinusToken]: '-'; + [SyntaxKind.PercentToken]: '%'; + [SyntaxKind.PlusToken]: '+'; + [SyntaxKind.SlashToken]: '/'; +} +export declare type BindingName = BindingPattern | Identifier; +export declare type BindingPattern = ArrayPattern | ObjectPattern; +export declare interface BlockComment extends BaseToken { + type: AST_TOKEN_TYPES.Block; +} +export declare interface BlockStatement extends BaseNode { + type: AST_NODE_TYPES.BlockStatement; + body: Statement[]; +} +export declare interface BooleanLiteral extends LiteralBase { + raw: 'false' | 'true'; + value: boolean; +} +export declare interface BooleanToken extends BaseToken { + type: AST_TOKEN_TYPES.Boolean; +} +export declare interface BreakStatement extends BaseNode { + type: AST_NODE_TYPES.BreakStatement; + label: Identifier | null; +} +export declare interface CallExpression extends BaseNode { + type: AST_NODE_TYPES.CallExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + optional: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type CallExpressionArgument = Expression | SpreadElement; +export declare interface CatchClause extends BaseNode { + type: AST_NODE_TYPES.CatchClause; + body: BlockStatement; + param: BindingName | null; +} +export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; +export declare interface ChainExpression extends BaseNode { + type: AST_NODE_TYPES.ChainExpression; + expression: ChainElement; +} +declare interface ClassBase extends BaseNode { + /** + * Whether the class is an abstract class. + * @example + * ```ts + * abstract class Foo {} + * ``` + */ + abstract: boolean; + /** + * The class body. + */ + body: ClassBody; + /** + * Whether the class has been `declare`d: + * @example + * ```ts + * declare class Foo {} + * ``` + */ + declare: boolean; + /** + * The decorators declared for the class. + * @example + * ```ts + * @deco + * class Foo {} + * ``` + */ + decorators: Decorator[]; + /** + * The class's name. + * - For a `ClassExpression` this may be `null` if the name is omitted. + * - For a `ClassDeclaration` this may be `null` if and only if the parent is + * an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The implemented interfaces for the class. + */ + implements: TSClassImplements[]; + /** + * The super class this class extends. + */ + superClass: LeftHandSideExpression | null; + /** + * The generic type parameters passed to the superClass. + */ + superTypeArguments: TSTypeParameterInstantiation | undefined; + /** + * The generic type parameters declared for the class. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface ClassBody extends BaseNode { + type: AST_NODE_TYPES.ClassBody; + body: ClassElement[]; +} +export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; +declare interface ClassDeclarationBase extends ClassBase { + type: AST_NODE_TYPES.ClassDeclaration; +} +/** + * A normal class declaration: + * ``` + * class A {} + * ``` + */ +export declare interface ClassDeclarationWithName extends ClassDeclarationBase { + id: Identifier; +} +/** + * Default-exported class declarations have optional names: + * ``` + * export default class {} + * ``` + */ +export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { + id: Identifier | null; +} +export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; +export declare interface ClassExpression extends ClassBase { + type: AST_NODE_TYPES.ClassExpression; + abstract: false; + declare: false; +} +declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: ClassPropertyNameNonComputed; +} +export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; +export declare type Comment = BlockComment | LineComment; +export declare interface ConditionalExpression extends BaseNode { + type: AST_NODE_TYPES.ConditionalExpression; + alternate: Expression; + consequent: Expression; + test: Expression; +} +export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare const` declaration, the declarators may have initializers, but + * not definite assignment assertions. Each declarator cannot have both an + * initializer and a type annotation. + * + * Even if the declaration has no `declare`, it may still be ambient and have + * no initializer. + */ + declarations: VariableDeclaratorMaybeInit[]; + kind: 'const'; +} +export declare interface ContinueStatement extends BaseNode { + type: AST_NODE_TYPES.ContinueStatement; + label: Identifier | null; +} +export declare interface DebuggerStatement extends BaseNode { + type: AST_NODE_TYPES.DebuggerStatement; +} +/** + * @deprecated + * Note that this is neither up to date nor fully correct. + */ +export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; +export declare interface Decorator extends BaseNode { + type: AST_NODE_TYPES.Decorator; + expression: LeftHandSideExpression; +} +export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; +export declare interface DoWhileStatement extends BaseNode { + type: AST_NODE_TYPES.DoWhileStatement; + body: Statement; + test: Expression; +} +export declare interface EmptyStatement extends BaseNode { + type: AST_NODE_TYPES.EmptyStatement; +} +export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; +export declare interface ExportAllDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportAllDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The name for the exported items (`as X`). `null` if no name is assigned. + */ + exported: Identifier | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral; +} +declare type ExportAndImportKind = 'type' | 'value'; +export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; +export declare interface ExportDefaultDeclaration extends BaseNode { + type: AST_NODE_TYPES.ExportDefaultDeclaration; + /** + * The declaration being exported. + */ + declaration: DefaultExportDeclarations; + /** + * The kind of the export. Always `value` for default exports. + */ + exportKind: 'value'; +} +declare type ExportKind = ExportAndImportKind; +export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; +declare interface ExportNamedDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.ExportNamedDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * export { foo } from 'mod' assert \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * export { foo } from 'mod' with \{ type: 'json' \}; + * ``` + * This will be an empty array if `source` is `null` + */ + attributes: ImportAttribute[]; + /** + * The exported declaration. + * @example + * ```ts + * export const x = 1; + * ``` + * This will be `null` if `source` is not `null`, or if there are `specifiers` + */ + declaration: NamedExportDeclarations | null; + /** + * The kind of the export. + */ + exportKind: ExportKind; + /** + * The source module being exported from. + */ + source: StringLiteral | null; + /** + * The specifiers being exported. + * @example + * ```ts + * export { a, b }; + * ``` + * This will be an empty array if `declaration` is not `null` + */ + specifiers: ExportSpecifier[]; +} +export declare type ExportNamedDeclarationWithoutSource = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle; +/** + * Exporting names from the current module. + * ``` + * export {}; + * export { a, b }; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: null; + source: null; + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Exporting a single named declaration. + * ``` + * export const x = 1; + * ``` + */ +export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { + /** + * This will always be an empty array. + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * This will always be an empty array. + */ + attributes: ImportAttribute[]; + declaration: NamedExportDeclarations; + source: null; + /** + * This will always be an empty array. + */ + specifiers: ExportSpecifierWithIdentifierLocal[]; +} +/** + * Export names from another module. + * ``` + * export { a, b } from 'mod'; + * ``` + */ +export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { + declaration: null; + source: StringLiteral; +} +export declare type ExportSpecifier = ExportSpecifierWithIdentifierLocal | ExportSpecifierWithStringOrLiteralLocal; +declare interface ExportSpecifierBase extends BaseNode { + type: AST_NODE_TYPES.ExportSpecifier; + exported: Identifier | StringLiteral; + exportKind: ExportKind; + local: Identifier | StringLiteral; +} +export declare interface ExportSpecifierWithIdentifierLocal extends ExportSpecifierBase { + local: Identifier; +} +export declare interface ExportSpecifierWithStringOrLiteralLocal extends ExportSpecifierBase { + local: Identifier | StringLiteral; +} +export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; +export declare interface ExpressionStatement extends BaseNode { + type: AST_NODE_TYPES.ExpressionStatement; + directive: string | undefined; + expression: Expression; +} +export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration; +export declare interface ForInStatement extends BaseNode { + type: AST_NODE_TYPES.ForInStatement; + body: Statement; + left: ForInitialiser; + right: Expression; +} +declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration; +export declare interface ForOfStatement extends BaseNode { + type: AST_NODE_TYPES.ForOfStatement; + await: boolean; + body: Statement; + left: ForOfInitialiser; + right: Expression; +} +export declare interface ForStatement extends BaseNode { + type: AST_NODE_TYPES.ForStatement; + body: Statement; + init: Expression | ForInitialiser | null; + test: Expression | null; + update: Expression | null; +} +declare interface FunctionBase extends BaseNode { + /** + * Whether the function is async: + * ``` + * async function foo() {} + * const x = async function () {} + * const x = async () => {} + * ``` + */ + async: boolean; + /** + * The body of the function. + * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. + * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`. + * - For a `TSDeclareFunction` this is always `undefined`. + * - For a `TSEmptyBodyFunctionExpression` this is always `null`. + */ + body: BlockStatement | Expression | null | undefined; + /** + * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: + * ``` + * declare function foo() {} + * ``` + */ + declare: boolean; + /** + * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body + * is an expression: + * ``` + * (() => 1) + * ``` + */ + expression: boolean; + /** + * Whether the function is a generator function: + * ``` + * function *foo() {} + * const x = function *() {} + * ``` + * This is always `false` for arrow functions as they cannot be generators. + */ + generator: boolean; + /** + * The function's name. + * - For an `ArrowFunctionExpression` this is always `null`. + * - For a `FunctionExpression` this may be `null` if the name is omitted. + * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if + * and only if the parent is an `ExportDefaultDeclaration`. + */ + id: Identifier | null; + /** + * The list of parameters declared for the function. + */ + params: Parameter[]; + /** + * The return type annotation for the function. + */ + returnType: TSTypeAnnotation | undefined; + /** + * The generic type parameter declaration for the function. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; +declare interface FunctionDeclarationBase extends FunctionBase { + type: AST_NODE_TYPES.FunctionDeclaration; + body: BlockStatement; + declare: false; + expression: false; +} +/** + * A normal function declaration: + * ``` + * function f() {} + * ``` + */ +export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { + id: Identifier; +} +/** + * Default-exported function declarations have optional names: + * ``` + * export default function () {} + * ``` + */ +export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { + id: Identifier | null; +} +export declare interface FunctionExpression extends FunctionBase { + type: AST_NODE_TYPES.FunctionExpression; + body: BlockStatement; + expression: false; +} +export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; +export declare interface Identifier extends BaseNode { + type: AST_NODE_TYPES.Identifier; + decorators: Decorator[]; + name: string; + optional: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface IdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.Identifier; +} +export declare interface IfStatement extends BaseNode { + type: AST_NODE_TYPES.IfStatement; + alternate: Statement | null; + consequent: Statement; + test: Expression; +} +export declare interface ImportAttribute extends BaseNode { + type: AST_NODE_TYPES.ImportAttribute; + key: Identifier | Literal; + value: Literal; +} +export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; +export declare interface ImportDeclaration extends BaseNode { + type: AST_NODE_TYPES.ImportDeclaration; + /** + * The assertions declared for the export. + * @example + * ```ts + * import * from 'mod' assert \{ type: 'json' \}; + * ``` + * @deprecated Replaced with {@link `attributes`}. + */ + assertions: ImportAttribute[]; + /** + * The attributes declared for the export. + * @example + * ```ts + * import * from 'mod' with \{ type: 'json' \}; + * ``` + */ + attributes: ImportAttribute[]; + /** + * The kind of the import. + */ + importKind: ImportKind; + /** + * The source module being imported from. + */ + source: StringLiteral; + /** + * The specifiers being imported. + * If this is an empty array then either there are no specifiers: + * ``` + * import {} from 'mod'; + * ``` + * Or it is a side-effect import: + * ``` + * import 'mod'; + * ``` + */ + specifiers: ImportClause[]; +} +export declare interface ImportDefaultSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportDefaultSpecifier; + local: Identifier; +} +export declare interface ImportExpression extends BaseNode { + type: AST_NODE_TYPES.ImportExpression; + /** + * The attributes declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + * @deprecated Replaced with {@link `options`}. + */ + attributes: Expression | null; + /** + * The options bag declared for the dynamic import. + * @example + * ```ts + * import('mod', \{ assert: \{ type: 'json' \} \}); + * ``` + */ + options: Expression | null; + source: Expression; +} +declare type ImportKind = ExportAndImportKind; +export declare interface ImportNamespaceSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportNamespaceSpecifier; + local: Identifier; +} +export declare interface ImportSpecifier extends BaseNode { + type: AST_NODE_TYPES.ImportSpecifier; + imported: Identifier | StringLiteral; + importKind: ImportKind; + local: Identifier; +} +export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; +export declare interface JSXAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXAttribute; + name: JSXIdentifier | JSXNamespacedName; + value: JSXElement | JSXExpression | Literal | null; +} +export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; +export declare interface JSXClosingElement extends BaseNode { + type: AST_NODE_TYPES.JSXClosingElement; + name: JSXTagNameExpression; +} +export declare interface JSXClosingFragment extends BaseNode { + type: AST_NODE_TYPES.JSXClosingFragment; +} +export declare interface JSXElement extends BaseNode { + type: AST_NODE_TYPES.JSXElement; + children: JSXChild[]; + closingElement: JSXClosingElement | null; + openingElement: JSXOpeningElement; +} +export declare interface JSXEmptyExpression extends BaseNode { + type: AST_NODE_TYPES.JSXEmptyExpression; +} +export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; +export declare interface JSXExpressionContainer extends BaseNode { + type: AST_NODE_TYPES.JSXExpressionContainer; + expression: Expression | JSXEmptyExpression; +} +export declare interface JSXFragment extends BaseNode { + type: AST_NODE_TYPES.JSXFragment; + children: JSXChild[]; + closingFragment: JSXClosingFragment; + openingFragment: JSXOpeningFragment; +} +export declare interface JSXIdentifier extends BaseNode { + type: AST_NODE_TYPES.JSXIdentifier; + name: string; +} +export declare interface JSXIdentifierToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXIdentifier; +} +export declare interface JSXMemberExpression extends BaseNode { + type: AST_NODE_TYPES.JSXMemberExpression; + object: JSXTagNameExpression; + property: JSXIdentifier; +} +export declare interface JSXNamespacedName extends BaseNode { + type: AST_NODE_TYPES.JSXNamespacedName; + name: JSXIdentifier; + namespace: JSXIdentifier; +} +export declare interface JSXOpeningElement extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningElement; + attributes: (JSXAttribute | JSXSpreadAttribute)[]; + name: JSXTagNameExpression; + selfClosing: boolean; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface JSXOpeningFragment extends BaseNode { + type: AST_NODE_TYPES.JSXOpeningFragment; +} +export declare interface JSXSpreadAttribute extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadAttribute; + argument: Expression; +} +export declare interface JSXSpreadChild extends BaseNode { + type: AST_NODE_TYPES.JSXSpreadChild; + expression: Expression | JSXEmptyExpression; +} +export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; +export declare interface JSXText extends BaseNode { + type: AST_NODE_TYPES.JSXText; + raw: string; + value: string; +} +export declare interface JSXTextToken extends BaseToken { + type: AST_TOKEN_TYPES.JSXText; +} +export declare interface KeywordToken extends BaseToken { + type: AST_TOKEN_TYPES.Keyword; +} +export declare interface LabeledStatement extends BaseNode { + type: AST_NODE_TYPES.LabeledStatement; + body: Statement; + label: Identifier; +} +export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; +export declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration; +declare interface LetOrConstOrVarDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * let x; + * let y, z; + * ``` + */ + declarations: LetOrConstOrVarDeclarator[]; + /** + * Whether the declaration is `declare`d + * @example + * ```ts + * declare const x = 1; + * ``` + */ + declare: boolean; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * const x = 1; + * let y = 2; + * var z = 3; + * ``` + */ + kind: 'const' | 'let' | 'var'; +} +export declare type LetOrConstOrVarDeclarator = VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit; +export declare interface LetOrVarDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `declare let` declaration, the declarators must not have definite assignment + * assertions or initializers. + * + * @example + * ```ts + * using x = 1; + * using y =1, z = 2; + * ``` + */ + declarations: VariableDeclaratorNoInit[]; + declare: true; + kind: 'let' | 'var'; +} +export declare interface LetOrVarNonDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { + /** + * In a `let`/`var` declaration, the declarators may have definite assignment + * assertions or initializers, but not both. + */ + declarations: (VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit)[]; + declare: false; + kind: 'let' | 'var'; +} +export declare interface LineComment extends BaseToken { + type: AST_TOKEN_TYPES.Line; +} +export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; +declare interface LiteralBase extends BaseNode { + type: AST_NODE_TYPES.Literal; + raw: string; + value: bigint | boolean | number | string | RegExp | null; +} +export declare type LiteralExpression = Literal | TemplateLiteral; +export declare interface LogicalExpression extends BaseNode { + type: AST_NODE_TYPES.LogicalExpression; + left: Expression; + operator: '&&' | '??' | '||'; + right: Expression; +} +export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; +declare interface MemberExpressionBase extends BaseNode { + computed: boolean; + object: Expression; + optional: boolean; + property: Expression | Identifier | PrivateIdentifier; +} +export declare interface MemberExpressionComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: true; + property: Expression; +} +export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { + type: AST_NODE_TYPES.MemberExpression; + computed: false; + property: Identifier | PrivateIdentifier; +} +export declare interface MetaProperty extends BaseNode { + type: AST_NODE_TYPES.MetaProperty; + meta: Identifier; + property: Identifier; +} +export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; +/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ +declare interface MethodDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + decorators: Decorator[]; + key: PropertyName; + kind: 'constructor' | 'get' | 'method' | 'set'; + optional: boolean; + override: boolean; + static: boolean; + value: FunctionExpression | TSEmptyBodyFunctionExpression; +} +export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.MethodDefinition; +} +declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; +export declare interface NewExpression extends BaseNode { + type: AST_NODE_TYPES.NewExpression; + arguments: CallExpressionArgument[]; + callee: Expression; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; +export declare interface NodeOrTokenData { + type: string; + /** + * The source location information of the node. + * + * The loc property is defined as nullable by ESTree, but ESLint requires this property. + */ + loc: SourceLocation; + range: Range; +} +export declare interface NullLiteral extends LiteralBase { + raw: 'null'; + value: null; +} +export declare interface NullToken extends BaseToken { + type: AST_TOKEN_TYPES.Null; +} +export declare interface NumberLiteral extends LiteralBase { + value: number; +} +export declare interface NumericToken extends BaseToken { + type: AST_TOKEN_TYPES.Numeric; +} +export declare interface ObjectExpression extends BaseNode { + type: AST_NODE_TYPES.ObjectExpression; + properties: ObjectLiteralElement[]; +} +export declare type ObjectLiteralElement = Property | SpreadElement; +export declare type ObjectLiteralElementLike = ObjectLiteralElement; +export declare interface ObjectPattern extends BaseNode { + type: AST_NODE_TYPES.ObjectPattern; + decorators: Decorator[]; + optional: boolean; + properties: (Property | RestElement)[]; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare type OptionalRangeAndLoc = { + loc?: SourceLocation; + range?: Range; +} & Pick>; +export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; +export declare interface Position { + /** + * Column number on the line (0-indexed) + */ + column: number; + /** + * Line number (1-indexed) + */ + line: number; +} +export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; +export declare interface PrivateIdentifier extends BaseNode { + type: AST_NODE_TYPES.PrivateIdentifier; + name: string; +} +export declare interface Program extends NodeOrTokenData { + type: AST_NODE_TYPES.Program; + body: ProgramStatement[]; + comments: Comment[] | undefined; + sourceType: 'module' | 'script'; + tokens: Token[] | undefined; +} +export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; +export declare type Property = PropertyComputedName | PropertyNonComputedName; +declare interface PropertyBase extends BaseNode { + type: AST_NODE_TYPES.Property; + computed: boolean; + key: PropertyName; + kind: 'get' | 'init' | 'set'; + method: boolean; + optional: boolean; + shorthand: boolean; + value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; +} +export declare interface PropertyComputedName extends PropertyBase { + computed: true; + key: PropertyNameComputed; +} +export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; +declare interface PropertyDefinitionBase extends BaseNode { + accessibility: Accessibility | undefined; + computed: boolean; + declare: boolean; + decorators: Decorator[]; + definite: boolean; + key: PropertyName; + optional: boolean; + override: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; + value: Expression | null; +} +export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { + type: AST_NODE_TYPES.PropertyDefinition; +} +declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; +export declare type PropertyNameComputed = Expression; +export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; +export declare interface PropertyNonComputedName extends PropertyBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface PunctuatorToken extends BaseToken { + type: AST_TOKEN_TYPES.Punctuator; + value: ValueOf; +} +export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { + [SyntaxKind.AmpersandAmpersandToken]: '&&'; + [SyntaxKind.AmpersandToken]: '&'; + [SyntaxKind.AsteriskAsteriskToken]: '**'; + [SyntaxKind.AsteriskToken]: '*'; + [SyntaxKind.AtToken]: '@'; + [SyntaxKind.BacktickToken]: '`'; + [SyntaxKind.BarBarToken]: '||'; + [SyntaxKind.BarToken]: '|'; + [SyntaxKind.CaretToken]: '^'; + [SyntaxKind.CloseBraceToken]: '}'; + [SyntaxKind.CloseBracketToken]: ']'; + [SyntaxKind.CloseParenToken]: ')'; + [SyntaxKind.ColonToken]: ':'; + [SyntaxKind.CommaToken]: ','; + [SyntaxKind.DotDotDotToken]: '...'; + [SyntaxKind.DotToken]: '.'; + [SyntaxKind.EqualsEqualsEqualsToken]: '==='; + [SyntaxKind.EqualsEqualsToken]: '=='; + [SyntaxKind.EqualsGreaterThanToken]: '=>'; + [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; + [SyntaxKind.ExclamationEqualsToken]: '!='; + [SyntaxKind.ExclamationToken]: '!'; + [SyntaxKind.GreaterThanEqualsToken]: '>='; + [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; + [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; + [SyntaxKind.GreaterThanToken]: '>'; + [SyntaxKind.HashToken]: '#'; + [SyntaxKind.LessThanEqualsToken]: '<='; + [SyntaxKind.LessThanLessThanToken]: '<<'; + [SyntaxKind.LessThanSlashToken]: '`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSInterfaceHeritage extends TSHeritageBase { + type: AST_NODE_TYPES.TSInterfaceHeritage; +} +export declare interface TSIntersectionType extends BaseNode { + type: AST_NODE_TYPES.TSIntersectionType; + types: TypeNode[]; +} +export declare interface TSIntrinsicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSIntrinsicKeyword; +} +export declare interface TSLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSLiteralType; + literal: LiteralExpression | UnaryExpression | UpdateExpression; +} +export declare interface TSMappedType extends BaseNode { + type: AST_NODE_TYPES.TSMappedType; + constraint: TypeNode; + key: Identifier; + nameType: TypeNode | null; + optional: boolean | '+' | '-' | undefined; + readonly: boolean | '+' | '-' | undefined; + typeAnnotation: TypeNode | undefined; + /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */ + typeParameter: TSTypeParameter; +} +export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; +declare interface TSMethodSignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSMethodSignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + kind: 'get' | 'method' | 'set'; + optional: boolean; + params: Parameter[]; + readonly: boolean; + returnType: TSTypeAnnotation | undefined; + static: boolean; + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSModuleBlock extends BaseNode { + type: AST_NODE_TYPES.TSModuleBlock; + body: ProgramStatement[]; +} +export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; +declare interface TSModuleDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.TSModuleDeclaration; + /** + * The body of the module. + * This can only be `undefined` for the code `declare module 'mod';` + */ + body?: TSModuleBlock; + /** + * Whether the module is `declare`d + * @example + * ```ts + * declare namespace F {} + * ``` + */ + declare: boolean; + /** + * Whether this is a global declaration + * @example + * ```ts + * declare global {} + * ``` + * + * @deprecated Use {@link kind} instead + */ + global: boolean; + /** + * The name of the module + * ``` + * namespace A {} + * namespace A.B.C {} + * module 'a' {} + * ``` + */ + id: Identifier | Literal | TSQualifiedName; + /** + * The keyword used to define this module declaration + * @example + * ```ts + * namespace Foo {} + * ^^^^^^^^^ + * + * module 'foo' {} + * ^^^^^^ + * + * global {} + * ^^^^^^ + * ``` + */ + kind: TSModuleDeclarationKind; +} +export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { + body: TSModuleBlock; + /** + * This will always be an Identifier with name `global` + */ + id: Identifier; + kind: 'global'; +} +export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; +export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; +declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { + kind: 'module'; +} +/** + * The legacy module declaration, replaced with namespace declarations. + * ``` + * module A {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + id: Identifier; + kind: 'module'; +} +export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; +/** + * A string module declaration that is declared: + * ``` + * declare module 'foo' {} + * declare module 'foo'; + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { + body?: TSModuleBlock; + declare: true; + id: StringLiteral; + kind: 'module'; +} +/** + * A string module declaration that is not declared: + * ``` + * module 'foo' {} + * ``` + */ +export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { + body: TSModuleBlock; + declare: false; + id: StringLiteral; + kind: 'module'; +} +export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { + body: TSModuleBlock; + id: Identifier | TSQualifiedName; + kind: 'namespace'; +} +export declare interface TSNamedTupleMember extends BaseNode { + type: AST_NODE_TYPES.TSNamedTupleMember; + elementType: TypeNode; + label: Identifier; + optional: boolean; +} +/** + * For the following declaration: + * ``` + * export as namespace X; + * ``` + */ +export declare interface TSNamespaceExportDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSNamespaceExportDeclaration; + /** + * The name of the global variable that's exported as namespace + */ + id: Identifier; +} +export declare interface TSNeverKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNeverKeyword; +} +export declare interface TSNonNullExpression extends BaseNode { + type: AST_NODE_TYPES.TSNonNullExpression; + expression: Expression; +} +export declare interface TSNullKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNullKeyword; +} +export declare interface TSNumberKeyword extends BaseNode { + type: AST_NODE_TYPES.TSNumberKeyword; +} +export declare interface TSObjectKeyword extends BaseNode { + type: AST_NODE_TYPES.TSObjectKeyword; +} +export declare interface TSOptionalType extends BaseNode { + type: AST_NODE_TYPES.TSOptionalType; + typeAnnotation: TypeNode; +} +export declare interface TSParameterProperty extends BaseNode { + type: AST_NODE_TYPES.TSParameterProperty; + accessibility: Accessibility | undefined; + decorators: Decorator[]; + override: boolean; + parameter: AssignmentPattern | BindingName | RestElement; + readonly: boolean; + static: boolean; +} +export declare interface TSPrivateKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPrivateKeyword; +} +export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; +declare interface TSPropertySignatureBase extends BaseNode { + type: AST_NODE_TYPES.TSPropertySignature; + accessibility: Accessibility | undefined; + computed: boolean; + key: PropertyName; + optional: boolean; + readonly: boolean; + static: boolean; + typeAnnotation: TSTypeAnnotation | undefined; +} +export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { + computed: true; + key: PropertyNameComputed; +} +export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { + computed: false; + key: PropertyNameNonComputed; +} +export declare interface TSProtectedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSProtectedKeyword; +} +export declare interface TSPublicKeyword extends BaseNode { + type: AST_NODE_TYPES.TSPublicKeyword; +} +export declare interface TSQualifiedName extends BaseNode { + type: AST_NODE_TYPES.TSQualifiedName; + left: EntityName; + right: Identifier; +} +export declare interface TSReadonlyKeyword extends BaseNode { + type: AST_NODE_TYPES.TSReadonlyKeyword; +} +export declare interface TSRestType extends BaseNode { + type: AST_NODE_TYPES.TSRestType; + typeAnnotation: TypeNode; +} +export declare interface TSSatisfiesExpression extends BaseNode { + type: AST_NODE_TYPES.TSSatisfiesExpression; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSStaticKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStaticKeyword; +} +export declare interface TSStringKeyword extends BaseNode { + type: AST_NODE_TYPES.TSStringKeyword; +} +export declare interface TSSymbolKeyword extends BaseNode { + type: AST_NODE_TYPES.TSSymbolKeyword; +} +export declare interface TSTemplateLiteralType extends BaseNode { + type: AST_NODE_TYPES.TSTemplateLiteralType; + quasis: TemplateElement[]; + types: TypeNode[]; +} +export declare interface TSThisType extends BaseNode { + type: AST_NODE_TYPES.TSThisType; +} +export declare interface TSTupleType extends BaseNode { + type: AST_NODE_TYPES.TSTupleType; + elementTypes: TypeNode[]; +} +export declare interface TSTypeAliasDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeAliasDeclaration; + /** + * Whether the type was `declare`d. + * @example + * ```ts + * declare type T = 1; + * ``` + */ + declare: boolean; + /** + * The name of the type. + */ + id: Identifier; + /** + * The "value" (type) of the declaration + */ + typeAnnotation: TypeNode; + /** + * The generic type parameters declared for the type. Empty declaration + * (`<>`) is different from no declaration. + */ + typeParameters: TSTypeParameterDeclaration | undefined; +} +export declare interface TSTypeAnnotation extends BaseNode { + type: AST_NODE_TYPES.TSTypeAnnotation; + typeAnnotation: TypeNode; +} +export declare interface TSTypeAssertion extends BaseNode { + type: AST_NODE_TYPES.TSTypeAssertion; + expression: Expression; + typeAnnotation: TypeNode; +} +export declare interface TSTypeLiteral extends BaseNode { + type: AST_NODE_TYPES.TSTypeLiteral; + members: TypeElement[]; +} +export declare interface TSTypeOperator extends BaseNode { + type: AST_NODE_TYPES.TSTypeOperator; + operator: 'keyof' | 'readonly' | 'unique'; + typeAnnotation: TypeNode | undefined; +} +export declare interface TSTypeParameter extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameter; + const: boolean; + constraint: TypeNode | undefined; + default: TypeNode | undefined; + in: boolean; + name: Identifier; + out: boolean; +} +export declare interface TSTypeParameterDeclaration extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterDeclaration; + params: TSTypeParameter[]; +} +export declare interface TSTypeParameterInstantiation extends BaseNode { + type: AST_NODE_TYPES.TSTypeParameterInstantiation; + params: TypeNode[]; +} +export declare interface TSTypePredicate extends BaseNode { + type: AST_NODE_TYPES.TSTypePredicate; + asserts: boolean; + parameterName: Identifier | TSThisType; + typeAnnotation: TSTypeAnnotation | null; +} +export declare interface TSTypeQuery extends BaseNode { + type: AST_NODE_TYPES.TSTypeQuery; + exprName: EntityName | TSImportType; + typeArguments: TSTypeParameterInstantiation | undefined; +} +export declare interface TSTypeReference extends BaseNode { + type: AST_NODE_TYPES.TSTypeReference; + typeArguments: TSTypeParameterInstantiation | undefined; + typeName: EntityName; +} +export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; +export declare interface TSUndefinedKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUndefinedKeyword; +} +export declare interface TSUnionType extends BaseNode { + type: AST_NODE_TYPES.TSUnionType; + types: TypeNode[]; +} +export declare interface TSUnknownKeyword extends BaseNode { + type: AST_NODE_TYPES.TSUnknownKeyword; +} +export declare interface TSVoidKeyword extends BaseNode { + type: AST_NODE_TYPES.TSVoidKeyword; +} +export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; +export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; +export declare interface UnaryExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UnaryExpression; + operator: '!' | '+' | '~' | '-' | 'delete' | 'typeof' | 'void'; +} +declare interface UnaryExpressionBase extends BaseNode { + argument: Expression; + operator: string; + prefix: boolean; +} +export declare interface UpdateExpression extends UnaryExpressionBase { + type: AST_NODE_TYPES.UpdateExpression; + operator: '++' | '--'; +} +export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration; +declare interface UsingDeclarationBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclaration; + /** + * This value will always be `false` + * because 'declare' modifier cannot appear on a 'using' declaration. + */ + declare: false; + /** + * The keyword used to declare the variable(s) + * @example + * ```ts + * using x = 1; + * await using y = 2; + * ``` + */ + kind: 'await using' | 'using'; +} +export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNormalContextDeclarator; +export declare interface UsingInForOfDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always has exactly one element. + * @example + * ```ts + * for (using x of y) {} + * ``` + */ + declarations: [UsingInForOfDeclarator]; +} +export declare interface UsingInForOfDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: null; +} +export declare interface UsingInNormalContextDeclaration extends UsingDeclarationBase { + /** + * The variables declared by this declaration. + * Always non-empty. + * @example + * ```ts + * using x = 1; + * using y = 1, z = 2; + * ``` + */ + declarations: UsingInNormalContextDeclarator[]; +} +export declare interface UsingInNormalContextDeclarator extends VariableDeclaratorBase { + definite: false; + id: Identifier; + init: Expression; +} +declare type ValueOf = T[keyof T]; +export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration; +export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator; +declare interface VariableDeclaratorBase extends BaseNode { + type: AST_NODE_TYPES.VariableDeclarator; + /** + * Whether there's definite assignment assertion (`let x!: number`). + * If `true`, then: `id` must be an identifier with a type annotation, + * `init` must be `null`, and the declarator must be a `var`/`let` declarator. + */ + definite: boolean; + /** + * The name(s) of the variable(s). + */ + id: BindingName; + /** + * The initializer expression of the variable. Must be present for `const` unless + * in a `declare const`. + */ + init: Expression | null; +} +export declare interface VariableDeclaratorDefiniteAssignment extends VariableDeclaratorBase { + definite: true; + /** + * The name of the variable. Must have a type annotation. + */ + id: Identifier; + init: null; +} +export declare interface VariableDeclaratorMaybeInit extends VariableDeclaratorBase { + definite: false; +} +export declare interface VariableDeclaratorNoInit extends VariableDeclaratorBase { + definite: false; + init: null; +} +export declare interface WhileStatement extends BaseNode { + type: AST_NODE_TYPES.WhileStatement; + body: Statement; + test: Expression; +} +export declare interface WithStatement extends BaseNode { + type: AST_NODE_TYPES.WithStatement; + body: Statement; + object: Expression; +} +export declare interface YieldExpression extends BaseNode { + type: AST_NODE_TYPES.YieldExpression; + argument: Expression | undefined; + delegate: boolean; +} +export {}; +//# sourceMappingURL=ast-spec.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map new file mode 100644 index 00000000..92d884b7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.d.ts","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;gDAQgD;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvE,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAChC,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,MAAM,CAAC,OAA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;IAChB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,aAAc,SAAQ,QAAQ;IACrD,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js new file mode 100644 index 00000000..45d31f46 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js @@ -0,0 +1,200 @@ +"use strict"; +/********************************************** + * DO NOT MODIFY THIS FILE MANUALLY * + * * + * THIS FILE HAS BEEN COPIED FROM ast-spec. * + * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * + * * + * MAKE CHANGES TO ast-spec AND THEN RUN * + * yarn build * + **********************************************/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var AST_NODE_TYPES; +(function (AST_NODE_TYPES) { + AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty"; + AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression"; + AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern"; + AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression"; + AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression"; + AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern"; + AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression"; + AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression"; + AST_NODE_TYPES["BlockStatement"] = "BlockStatement"; + AST_NODE_TYPES["BreakStatement"] = "BreakStatement"; + AST_NODE_TYPES["CallExpression"] = "CallExpression"; + AST_NODE_TYPES["CatchClause"] = "CatchClause"; + AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; + AST_NODE_TYPES["ClassBody"] = "ClassBody"; + AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; + AST_NODE_TYPES["ClassExpression"] = "ClassExpression"; + AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression"; + AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement"; + AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement"; + AST_NODE_TYPES["Decorator"] = "Decorator"; + AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement"; + AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement"; + AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration"; + AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; + AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration"; + AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier"; + AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement"; + AST_NODE_TYPES["ForInStatement"] = "ForInStatement"; + AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement"; + AST_NODE_TYPES["ForStatement"] = "ForStatement"; + AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration"; + AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression"; + AST_NODE_TYPES["Identifier"] = "Identifier"; + AST_NODE_TYPES["IfStatement"] = "IfStatement"; + AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute"; + AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration"; + AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; + AST_NODE_TYPES["ImportExpression"] = "ImportExpression"; + AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; + AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier"; + AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute"; + AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement"; + AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment"; + AST_NODE_TYPES["JSXElement"] = "JSXElement"; + AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression"; + AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer"; + AST_NODE_TYPES["JSXFragment"] = "JSXFragment"; + AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression"; + AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName"; + AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement"; + AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment"; + AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute"; + AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild"; + AST_NODE_TYPES["JSXText"] = "JSXText"; + AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement"; + AST_NODE_TYPES["Literal"] = "Literal"; + AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression"; + AST_NODE_TYPES["MemberExpression"] = "MemberExpression"; + AST_NODE_TYPES["MetaProperty"] = "MetaProperty"; + AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition"; + AST_NODE_TYPES["NewExpression"] = "NewExpression"; + AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression"; + AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; + AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier"; + AST_NODE_TYPES["Program"] = "Program"; + AST_NODE_TYPES["Property"] = "Property"; + AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition"; + AST_NODE_TYPES["RestElement"] = "RestElement"; + AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement"; + AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression"; + AST_NODE_TYPES["SpreadElement"] = "SpreadElement"; + AST_NODE_TYPES["StaticBlock"] = "StaticBlock"; + AST_NODE_TYPES["Super"] = "Super"; + AST_NODE_TYPES["SwitchCase"] = "SwitchCase"; + AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement"; + AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression"; + AST_NODE_TYPES["TemplateElement"] = "TemplateElement"; + AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral"; + AST_NODE_TYPES["ThisExpression"] = "ThisExpression"; + AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement"; + AST_NODE_TYPES["TryStatement"] = "TryStatement"; + AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression"; + AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression"; + AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration"; + AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator"; + AST_NODE_TYPES["WhileStatement"] = "WhileStatement"; + AST_NODE_TYPES["WithStatement"] = "WithStatement"; + AST_NODE_TYPES["YieldExpression"] = "YieldExpression"; + AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; + AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword"; + AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; + AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; + AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword"; + AST_NODE_TYPES["TSArrayType"] = "TSArrayType"; + AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression"; + AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; + AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; + AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; + AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; + AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; + AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; + AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; + AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; + AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; + AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; + AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; + AST_NODE_TYPES["TSEnumBody"] = "TSEnumBody"; + AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; + AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember"; + AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment"; + AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword"; + AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; + AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; + AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; + AST_NODE_TYPES["TSImportType"] = "TSImportType"; + AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; + AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; + AST_NODE_TYPES["TSInferType"] = "TSInferType"; + AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression"; + AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; + AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; + AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; + AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; + AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; + AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; + AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; + AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; + AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; + AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; + AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; + AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; + AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; + AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; + AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; + AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; + AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; + AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; + AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; + AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; + AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; + AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword"; + AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword"; + AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName"; + AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword"; + AST_NODE_TYPES["TSRestType"] = "TSRestType"; + AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression"; + AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword"; + AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword"; + AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword"; + AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType"; + AST_NODE_TYPES["TSThisType"] = "TSThisType"; + AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; + AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; + AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; + AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; + AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; + AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator"; + AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter"; + AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; + AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; + AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; + AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; + AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; + AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; + AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; + AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; + AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; +})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {})); +var AST_TOKEN_TYPES; +(function (AST_TOKEN_TYPES) { + AST_TOKEN_TYPES["Boolean"] = "Boolean"; + AST_TOKEN_TYPES["Identifier"] = "Identifier"; + AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier"; + AST_TOKEN_TYPES["JSXText"] = "JSXText"; + AST_TOKEN_TYPES["Keyword"] = "Keyword"; + AST_TOKEN_TYPES["Null"] = "Null"; + AST_TOKEN_TYPES["Numeric"] = "Numeric"; + AST_TOKEN_TYPES["Punctuator"] = "Punctuator"; + AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression"; + AST_TOKEN_TYPES["String"] = "String"; + AST_TOKEN_TYPES["Template"] = "Template"; + AST_TOKEN_TYPES["Block"] = "Block"; + AST_TOKEN_TYPES["Line"] = "Line"; +})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); +//# sourceMappingURL=ast-spec.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map new file mode 100644 index 00000000..2bbef05b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cAyKX;AAzKD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,+DAA6C,CAAA;IAC7C,uEAAqD,CAAA;IACrD,mEAAiD,CAAA;IACjD,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yDAAuC,CAAA;IACvC,mEAAiD,CAAA;IACjD,uDAAqC,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iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,2EAAyD,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EAzKW,cAAc,8BAAd,cAAc,QAyKzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts new file mode 100644 index 00000000..3d39147f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts @@ -0,0 +1,5 @@ +export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; +export * from './lib'; +export * from './parser-options'; +export * from './ts-estree'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts.map new file mode 100644 index 00000000..6a86c537 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js new file mode 100644 index 00000000..00ff6a17 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js @@ -0,0 +1,24 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var ast_spec_1 = require("./generated/ast-spec"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } }); +__exportStar(require("./lib"), exports); +__exportStar(require("./parser-options"), exports); +__exportStar(require("./ts-estree"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js.map new file mode 100644 index 00000000..075ac156 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts new file mode 100644 index 00000000..d007fce8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts @@ -0,0 +1,3 @@ +type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable'; +export { Lib }; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts.map new file mode 100644 index 00000000..51e8fd13 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,YAAY,GACZ,mBAAmB,GACnB,KAAK,GACL,mBAAmB,GACnB,cAAc,GACd,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,mBAAmB,GACnB,aAAa,GACb,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,oBAAoB,GACpB,QAAQ,GACR,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,eAAe,GACf,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,QAAQ,GACR,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,cAAc,GACd,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,GACf,eAAe,GACf,QAAQ,GACR,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,QAAQ,GACR,oBAAoB,GACpB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,KAAK,GACL,YAAY,GACZ,WAAW,GACX,yBAAyB,GACzB,yBAAyB,GACzB,oBAAoB,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js new file mode 100644 index 00000000..6d09838c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js @@ -0,0 +1,7 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib repo +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js.map new file mode 100644 index 00000000..3ee438a9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.ts new file mode 100644 index 00000000..bf097423 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.ts @@ -0,0 +1,69 @@ +import type { Program } from 'typescript'; +import type { Lib } from './lib'; +type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[]; +type CacheDurationSeconds = number | 'Infinity'; +type EcmaVersion = 'latest' | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | undefined; +type SourceTypeClassic = 'module' | 'script'; +type SourceType = 'commonjs' | SourceTypeClassic; +type JSDocParsingMode = 'all' | 'none' | 'type-info'; +/** + * Granular options to configure the project service. + */ +interface ProjectServiceOptions { + /** + * Globs of files to allow running with the default project compiler options + * despite not being matched by the project service. + */ + allowDefaultProject?: string[]; + /** + * Path to a TSConfig to use instead of TypeScript's default project configuration. + * @default 'tsconfig.json' + */ + defaultProject?: string; + /** + * Whether to allow TypeScript plugins as configured in the TSConfig. + */ + loadTypeScriptPlugins?: boolean; + /** + * The maximum number of files {@link allowDefaultProject} may match. + * Each file match slows down linting, so if you do need to use this, please + * file an informative issue on typescript-eslint explaining why - so we can + * help you avoid using it! + * @default 8 + */ + maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number; +} +interface ParserOptions { + [additionalProperties: string]: unknown; + cacheLifetime?: { + glob?: CacheDurationSeconds; + }; + debugLevel?: DebugLevel; + ecmaFeatures?: { + [key: string]: unknown; + globalReturn?: boolean | undefined; + jsx?: boolean | undefined; + } | undefined; + ecmaVersion?: EcmaVersion; + emitDecoratorMetadata?: boolean; + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + errorOnUnknownASTType?: boolean; + experimentalDecorators?: boolean; + extraFileExtensions?: string[]; + filePath?: string; + jsDocParsingMode?: JSDocParsingMode; + jsxFragmentName?: string | null; + jsxPragma?: string | null; + lib?: Lib[]; + programs?: Program[] | null; + project?: boolean | string | string[] | null; + projectFolderIgnoreList?: string[]; + projectService?: boolean | ProjectServiceOptions; + range?: boolean; + sourceType?: SourceType | undefined; + tokens?: boolean; + tsconfigRootDir?: string; + warnOnUnsupportedTypeScriptVersion?: boolean; +} +export type { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, ProjectServiceOptions, SourceType, }; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map new file mode 100644 index 00000000..ff550366 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.d.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\ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts new file mode 100644 index 00000000..56266642 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts @@ -0,0 +1,173 @@ +import type * as TSESTree from './generated/ast-spec'; +declare module './generated/ast-spec' { + interface BaseNode { + parent: TSESTree.Node; + } + interface Program { + /** + * @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly. + */ + parent?: never; + } + interface AccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface AccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractAccessorPropertyNonComputedName { + parent: TSESTree.ClassBody; + } + interface VariableDeclaratorDefiniteAssignment { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorMaybeInit { + parent: TSESTree.VariableDeclaration; + } + interface VariableDeclaratorNoInit { + parent: TSESTree.VariableDeclaration; + } + interface UsingInForOfDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface UsingInNormalContextDeclarator { + parent: TSESTree.VariableDeclaration; + } + interface CatchClause { + parent: TSESTree.TryStatement; + } + interface ClassBody { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface ImportAttribute { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface ImportDefaultSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportNamespaceSpecifier { + parent: TSESTree.ImportDeclaration; + } + interface ImportSpecifier { + parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; + } + interface JSXAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface JSXClosingElement { + parent: TSESTree.JSXElement; + } + interface JSXClosingFragment { + parent: TSESTree.JSXFragment; + } + interface JSXOpeningElement { + parent: TSESTree.JSXElement; + } + interface JSXOpeningFragment { + parent: TSESTree.JSXFragment; + } + interface JSXSpreadAttribute { + parent: TSESTree.JSXOpeningElement; + } + interface MethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface MethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractMethodDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyNonComputedName { + parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; + } + interface PropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface PropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionComputedName { + parent: TSESTree.ClassBody; + } + interface TSAbstractPropertyDefinitionNonComputedName { + parent: TSESTree.ClassBody; + } + interface SpreadElement { + parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.NewExpression | TSESTree.ObjectExpression; + } + interface StaticBlock { + parent: TSESTree.ClassBody; + } + interface SwitchCase { + parent: TSESTree.SwitchStatement; + } + interface TemplateElement { + parent: TSESTree.TemplateLiteral | TSESTree.TSTemplateLiteralType; + } + interface TSCallSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSConstructSignatureDeclaration { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSClassImplements { + parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + } + interface TSEnumBody { + parent: TSESTree.TSEnumDeclaration; + } + interface TSEnumMemberComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSEnumMemberNonComputedName { + parent: TSESTree.TSEnumBody; + } + interface TSIndexSignature { + parent: TSESTree.ClassBody | TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSInterfaceBody { + parent: TSESTree.TSInterfaceDeclaration; + } + interface TSInterfaceHeritage { + parent: TSESTree.TSInterfaceBody; + } + interface TSMethodSignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSMethodSignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSModuleBlock { + parent: TSESTree.TSModuleDeclaration; + } + interface TSParameterProperty { + parent: TSESTree.FunctionLike; + } + interface TSPropertySignatureComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSPropertySignatureNonComputedName { + parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; + } + interface TSTypeParameter { + parent: TSESTree.TSInferType | TSESTree.TSMappedType | TSESTree.TSTypeParameterDeclaration; + } + interface ExportSpecifierWithIdentifierLocal { + parent: TSESTree.ExportNamedDeclaration; + } + interface ExportSpecifierWithStringOrLiteralLocal { + parent: TSESTree.ExportNamedDeclaration; + } +} +export * as TSESTree from './generated/ast-spec'; +//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map new file mode 100644 index 00000000..975e02e1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;IAED,UAAU,4BAA4B;QACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,sCAAsC;QAC9C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,yCAAyC;QACjD,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IAED,UAAU,oCAAoC;QAC5C,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,2BAA2B;QACnC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,wBAAwB;QAChC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,sBAAsB;QAC9B,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,8BAA8B;QACtC,MAAM,EAAE,QAAQ,C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,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js new file mode 100644 index 00000000..9e361e6e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js @@ -0,0 +1,38 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = void 0; +exports.TSESTree = __importStar(require("./generated/ast-spec")); +//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js.map new file mode 100644 index 00000000..ac9ead2c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/dist/ts-estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkOA,iEAAiD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/package.json new file mode 100644 index 00000000..a5c435e5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/package.json @@ -0,0 +1,88 @@ +{ + "name": "@typescript-eslint/types", + "version": "8.16.0", + "description": "Types for the TypeScript-ESTree AST spec", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/types" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "copy-ast-spec": "tsx ./tools/copy-ast-spec.ts", + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate-lib": "npx nx run scope-manager:generate-lib", + "lint": "npx nx lint", + "typecheck": "tsc --noEmit" + }, + "nx": { + "targets": { + "copy-ast-spec": { + "dependsOn": [ + "^build" + ], + "outputs": [ + "{projectRoot}/src/generated" + ], + "cache": true + }, + "build": { + "dependsOn": [ + "^build", + "copy-ast-spec" + ] + } + } + }, + "devDependencies": { + "@jest/types": "29.6.3", + "downlevel-dts": "*", + "prettier": "^3.2.5", + "rimraf": "*", + "tsx": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/LICENSE new file mode 100644 index 00000000..26018f87 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/LICENSE @@ -0,0 +1,28 @@ +BSD 2-Clause License + +TypeScript ESTree + +Originally extracted from: + +TypeScript ESLint Parser +Copyright JS Foundation and other contributors, https://js.foundation + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/README.md new file mode 100644 index 00000000..c98838da --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/README.md @@ -0,0 +1,14 @@ +# `@typescript-eslint/typescript-estree` + +> A parser that produces an ESTree-compatible AST for TypeScript code. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +## Contributing + +👉 See **https://typescript-eslint.io/packages/typescript-estree** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts new file mode 100644 index 00000000..684f35a8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts @@ -0,0 +1,9 @@ +import type { SourceFile } from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParseSettings } from './parseSettings'; +import type { TSESTree } from './ts-estree'; +export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { + astMaps: ASTMaps; + estree: TSESTree.Program; +}; +//# sourceMappingURL=ast-converter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map new file mode 100644 index 00000000..8da91fde --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAA;CAAE,CA4DhD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js new file mode 100644 index 00000000..9435609a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.astConverter = astConverter; +const convert_1 = require("./convert"); +const convert_comments_1 = require("./convert-comments"); +const node_utils_1 = require("./node-utils"); +const simple_traverse_1 = require("./simple-traverse"); +function astConverter(ast, parseSettings, shouldPreserveNodeMaps) { + /** + * The TypeScript compiler produced fundamental parse errors when parsing the + * source. + */ + const { parseDiagnostics } = ast; + if (parseDiagnostics.length) { + throw (0, convert_1.convertError)(parseDiagnostics[0]); + } + /** + * Recursively convert the TypeScript AST into an ESTree-compatible AST + */ + const instance = new convert_1.Converter(ast, { + allowInvalidAST: parseSettings.allowInvalidAST, + errorOnUnknownASTType: parseSettings.errorOnUnknownASTType, + shouldPreserveNodeMaps, + suppressDeprecatedPropertyWarnings: parseSettings.suppressDeprecatedPropertyWarnings, + }); + const estree = instance.convertProgram(); + /** + * Optionally remove range and loc if specified + */ + if (!parseSettings.range || !parseSettings.loc) { + (0, simple_traverse_1.simpleTraverse)(estree, { + enter: node => { + if (!parseSettings.range) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.range; + } + if (!parseSettings.loc) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional + // @ts-expect-error + delete node.loc; + } + }, + }); + } + /** + * Optionally convert and include all tokens in the AST + */ + if (parseSettings.tokens) { + estree.tokens = (0, node_utils_1.convertTokens)(ast); + } + /** + * Optionally convert and include all comments in the AST + */ + if (parseSettings.comment) { + estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.codeFullText); + } + const astMaps = instance.getASTMaps(); + return { astMaps, estree }; +} +//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map new file mode 100644 index 00000000..af967afe --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":";;AAWA,oCAgEC;AArED,uCAAoD;AACpD,yDAAqD;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,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts new file mode 100644 index 00000000..18457024 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts @@ -0,0 +1,10 @@ +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +export declare function clearCaches(): void; +export declare const clearProgramCache: typeof clearCaches; +//# sourceMappingURL=clear-caches.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map new file mode 100644 index 00000000..eeec191b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js new file mode 100644 index 00000000..e8b8c7df --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearProgramCache = void 0; +exports.clearCaches = clearCaches; +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const parser_1 = require("./parser"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const resolveProjectList_1 = require("./parseSettings/resolveProjectList"); +/** + * Clears all of the internal caches. + * Generally you shouldn't need or want to use this. + * Examples of intended uses: + * - In tests to reset parser state to keep tests isolated. + * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. + */ +function clearCaches() { + (0, parser_1.clearDefaultProjectMatchedFiles)(); + (0, parser_1.clearProgramCache)(); + (0, getWatchProgramsForProjects_1.clearWatchCaches)(); + (0, createParseSettings_1.clearTSConfigMatchCache)(); + (0, createParseSettings_1.clearTSServerProjectService)(); + (0, resolveProjectList_1.clearGlobCache)(); +} +// TODO - delete this in next major +exports.clearProgramCache = clearCaches; +//# sourceMappingURL=clear-caches.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map new file mode 100644 index 00000000..eacff3a6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAkBA,kCAOC;AAzBD,8FAAgF;AAChF,qCAGkB;AAClB,6EAG6C;AAC7C,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,wCAA+B,GAAE,CAAC;IAClC,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,iDAA2B,GAAE,CAAC;IAC9B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts new file mode 100644 index 00000000..bdf93691 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts @@ -0,0 +1,11 @@ +import * as ts from 'typescript'; +import type { TSESTree } from './ts-estree'; +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; +//# sourceMappingURL=convert-comments.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map new file mode 100644 index 00000000..4ac22871 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js new file mode 100644 index 00000000..31aca933 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js @@ -0,0 +1,72 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertComments = convertComments; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +/** + * Convert all comments for the given AST. + * @param ast the AST object + * @param code the TypeScript code + * @returns the converted ESTreeComment + * @private + */ +function convertComments(ast, code) { + const comments = []; + tsutils.forEachComment(ast, (_, comment) => { + const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? ts_estree_1.AST_TOKEN_TYPES.Line + : ts_estree_1.AST_TOKEN_TYPES.Block; + const range = [comment.pos, comment.end]; + const loc = (0, node_utils_1.getLocFor)(range, ast); + // both comments start with 2 characters - /* or // + const textStart = range[0] + 2; + const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia + ? // single line comments end at the end + range[1] - textStart + : // multiline comments end 2 characters early + range[1] - textStart - 2; + comments.push({ + type, + loc, + range, + value: code.slice(textStart, textStart + textEnd), + }); + }, ast); + return comments; +} +//# sourceMappingURL=convert-comments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map new file mode 100644 index 00000000..f4addc76 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert-comments.js","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,0CAmCC;AAlDD,sDAAwC;AACxC,+CAAiC;AAIjC,6CAAyC;AACzC,2CAA8C;AAE9C;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,GAAkB,EAClB,IAAY;IAEZ,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,OAAO,CAAC,cAAc,CACpB,GAAG,EACH,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACb,MAAM,IAAI,GACR,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,2BAAe,CAAC,IAAI;YACtB,CAAC,CAAC,2BAAe,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,GAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAA,sBAAS,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,mDAAmD;QACnD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,sCAAsC;gBACtC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS;YACtB,CAAC,CAAC,4CAA4C;gBAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI;YACJ,GAAG;YACH,KAAK;YACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;SAClD,CAAC,CAAC;IACL,CAAC,EACD,GAAG,CACJ,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts new file mode 100644 index 00000000..eec3ee4c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts @@ -0,0 +1,137 @@ +import * as ts from 'typescript'; +import type { TSError } from './node-utils'; +import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; +import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; +import type { TSESTree, TSNode } from './ts-estree'; +export interface ConverterOptions { + allowInvalidAST?: boolean; + errorOnUnknownASTType?: boolean; + shouldPreserveNodeMaps?: boolean; + suppressDeprecatedPropertyWarnings?: boolean; +} +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError; +export interface ASTMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export declare class Converter { + #private; + private allowPattern; + private readonly ast; + private readonly esTreeNodeToTSNodeMap; + private readonly options; + private readonly tsNodeToESTreeNodeMap; + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast: ts.SourceFile, options?: ConverterOptions); + private assertModuleSpecifier; + private convertBindingNameWithTypeAnnotation; + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + private convertBodyExpressions; + private convertChainExpression; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertChild; + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + private convertPattern; + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + private convertTypeAnnotation; + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + private convertTypeArgumentsToTypeParameterInstantiation; + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + private convertTSTypeParametersToTypeParametersDeclaration; + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + private convertParameters; + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + private converter; + private convertImportAttributes; + private convertJSXIdentifier; + private convertJSXNamespaceOrIdentifier; + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + private convertJSXTagName; + private convertMethodSignature; + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + private fixParentLocation; + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + private convertNode; + private createNode; + convertProgram(): TSESTree.Program; + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + private deeplyCopy; + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + private fixExports; + getASTMaps(): ASTMaps; + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + private registerTSNodeInNodeMap; +} +//# sourceMappingURL=convert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map new file mode 100644 index 00000000..92463b3c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM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AQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IA49EnB,OAAO,CAAC,UAAU;IAelB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAiFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js new file mode 100644 index 00000000..7d868416 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js @@ -0,0 +1,2681 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Converter = void 0; +exports.convertError = convertError; +// There's lots of funny stuff due to the typing of ts.Node +/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */ +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const node_utils_1 = require("./node-utils"); +const ts_estree_1 = require("./ts-estree"); +const SyntaxKind = ts.SyntaxKind; +/** + * Extends and formats a given error object + * @param error the error object + * @returns converted error object + */ +function convertError(error) { + return (0, node_utils_1.createError)(('message' in error && error.message) || error.messageText, error.file, error.start); +} +class Converter { + allowPattern = false; + ast; + esTreeNodeToTSNodeMap = new WeakMap(); + options; + tsNodeToESTreeNodeMap = new WeakMap(); + /** + * Converts a TypeScript node into an ESTree node + * @param ast the full TypeScript AST + * @param options additional options for the conversion + * @returns the converted ESTreeNode + */ + constructor(ast, options) { + this.ast = ast; + this.options = { ...options }; + } + #checkForStatementDeclaration(initializer, kind) { + const loop = kind === ts.SyntaxKind.ForInStatement ? 'for...in' : 'for...of'; + if (ts.isVariableDeclarationList(initializer)) { + if (initializer.declarations.length !== 1) { + this.#throwError(initializer, `Only a single variable declaration is allowed in a '${loop}' statement.`); + } + const declaration = initializer.declarations[0]; + if (declaration.initializer) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have an initializer.`); + } + else if (declaration.type) { + this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have a type annotation.`); + } + if (kind === ts.SyntaxKind.ForInStatement && + initializer.flags & ts.NodeFlags.Using) { + this.#throwError(initializer, "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."); + } + } + else if (!(0, node_utils_1.isValidAssignmentTarget)(initializer) && + initializer.kind !== ts.SyntaxKind.ObjectLiteralExpression && + initializer.kind !== ts.SyntaxKind.ArrayLiteralExpression) { + this.#throwError(initializer, `The left-hand side of a '${loop}' statement must be a variable or a property access.`); + } + } + #checkModifiers(node) { + if (this.options.allowInvalidAST) { + return; + } + // typescript<5.0.0 + if ((0, node_utils_1.nodeHasIllegalDecorators)(node)) { + this.#throwError(node.illegalDecorators[0], 'Decorators are not valid here.'); + } + for (const decorator of (0, getModifiers_1.getDecorators)(node, + /* includeIllegalDecorators */ true) ?? []) { + // `checkGrammarModifiers` function in typescript + if (!(0, node_utils_1.nodeCanBeDecorated)(node)) { + if (ts.isMethodDeclaration(node) && !(0, node_utils_1.nodeIsPresent)(node.body)) { + this.#throwError(decorator, 'A decorator can only decorate a method implementation, not an overload.'); + } + else { + this.#throwError(decorator, 'Decorators are not valid here.'); + } + } + } + for (const modifier of (0, getModifiers_1.getModifiers)(node, + /* includeIllegalModifiers */ true) ?? []) { + if (modifier.kind !== SyntaxKind.ReadonlyKeyword) { + if (node.kind === SyntaxKind.PropertySignature || + node.kind === SyntaxKind.MethodSignature) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type member`); + } + if (node.kind === SyntaxKind.IndexSignature && + (modifier.kind !== SyntaxKind.StaticKeyword || + !ts.isClassLike(node.parent))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on an index signature`); + } + } + if (modifier.kind !== SyntaxKind.InKeyword && + modifier.kind !== SyntaxKind.OutKeyword && + modifier.kind !== SyntaxKind.ConstKeyword && + node.kind === SyntaxKind.TypeParameter) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type parameter`); + } + if ((modifier.kind === SyntaxKind.InKeyword || + modifier.kind === SyntaxKind.OutKeyword) && + (node.kind !== SyntaxKind.TypeParameter || + !(ts.isInterfaceDeclaration(node.parent) || + ts.isClassLike(node.parent) || + ts.isTypeAliasDeclaration(node.parent)))) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`); + } + if (modifier.kind === SyntaxKind.ReadonlyKeyword && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.PropertySignature && + node.kind !== SyntaxKind.IndexSignature && + node.kind !== SyntaxKind.Parameter) { + this.#throwError(modifier, "'readonly' modifier can only appear on a property declaration or index signature."); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isClassLike(node.parent) && + !ts.isPropertyDeclaration(node)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on class elements of this kind.`); + } + if (modifier.kind === SyntaxKind.DeclareKeyword && + ts.isVariableStatement(node)) { + const declarationKind = (0, node_utils_1.getDeclarationKind)(node.declarationList); + if (declarationKind === 'using' || declarationKind === 'await using') { + this.#throwError(modifier, `'declare' modifier cannot appear on a '${declarationKind}' declaration.`); + } + } + if (modifier.kind === SyntaxKind.AbstractKeyword && + node.kind !== SyntaxKind.ClassDeclaration && + node.kind !== SyntaxKind.ConstructorType && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.PropertyDeclaration && + node.kind !== SyntaxKind.GetAccessor && + node.kind !== SyntaxKind.SetAccessor) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`); + } + if ((modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) && + (node.parent.kind === SyntaxKind.ModuleBlock || + node.parent.kind === SyntaxKind.SourceFile)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a module or namespace element.`); + } + if (modifier.kind === SyntaxKind.AccessorKeyword && + node.kind !== SyntaxKind.PropertyDeclaration) { + this.#throwError(modifier, "'accessor' modifier can only appear on a property declaration."); + } + // `checkGrammarAsyncModifier` function in `typescript` + if (modifier.kind === SyntaxKind.AsyncKeyword && + node.kind !== SyntaxKind.MethodDeclaration && + node.kind !== SyntaxKind.FunctionDeclaration && + node.kind !== SyntaxKind.FunctionExpression && + node.kind !== SyntaxKind.ArrowFunction) { + this.#throwError(modifier, "'async' modifier cannot be used here."); + } + // `checkGrammarModifiers` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + (modifier.kind === SyntaxKind.StaticKeyword || + modifier.kind === SyntaxKind.ExportKeyword || + modifier.kind === SyntaxKind.DeclareKeyword || + modifier.kind === SyntaxKind.AsyncKeyword)) { + this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a parameter.`); + } + // `checkGrammarModifiers` function in `typescript` + if (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.PrivateKeyword) { + for (const anotherModifier of (0, getModifiers_1.getModifiers)(node) ?? []) { + if (anotherModifier !== modifier && + (anotherModifier.kind === SyntaxKind.PublicKeyword || + anotherModifier.kind === SyntaxKind.ProtectedKeyword || + anotherModifier.kind === SyntaxKind.PrivateKeyword)) { + this.#throwError(anotherModifier, `Accessibility modifier already seen.`); + } + } + } + // `checkParameter` function in `typescript` + if (node.kind === SyntaxKind.Parameter && + // In `typescript` package, it's `ts.hasSyntacticModifier(node, ts.ModifierFlags.ParameterPropertyModifier)` + // https://github.com/typescript-eslint/typescript-eslint/pull/6615#discussion_r1136489935 + (modifier.kind === SyntaxKind.PublicKeyword || + modifier.kind === SyntaxKind.PrivateKeyword || + modifier.kind === SyntaxKind.ProtectedKeyword || + modifier.kind === SyntaxKind.ReadonlyKeyword || + modifier.kind === SyntaxKind.OverrideKeyword)) { + const func = (0, node_utils_1.getContainingFunction)(node); + if (!(func.kind === SyntaxKind.Constructor && (0, node_utils_1.nodeIsPresent)(func.body))) { + this.#throwError(modifier, 'A parameter property is only allowed in a constructor implementation.'); + } + } + } + } + #throwError(node, message) { + let start; + let end; + if (typeof node === 'number') { + start = end = node; + } + else { + start = node.getStart(this.ast); + end = node.getEnd(); + } + throw (0, node_utils_1.createError)(message, this.ast, start, end); + } + #throwUnlessAllowInvalidAST(node, message) { + if (!this.options.allowInvalidAST) { + this.#throwError(node, message); + } + } + /** + * Creates a getter for a property under aliasKey that returns the value under + * valueKey. If suppressDeprecatedPropertyWarnings is not enabled, the + * getter also console warns about the deprecation. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6469 + */ + #withDeprecatedAliasGetter(node, aliasKey, valueKey, suppressWarnings = false) { + let warned = suppressWarnings; + Object.defineProperty(node, aliasKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => node[valueKey] + : () => { + if (!warned) { + process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return node[valueKey]; + }, + set(value) { + Object.defineProperty(node, aliasKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + #withDeprecatedGetter(node, deprecatedKey, preferredKey, value) { + let warned = false; + Object.defineProperty(node, deprecatedKey, { + configurable: true, + get: this.options.suppressDeprecatedPropertyWarnings + ? () => value + : () => { + if (!warned) { + process.emitWarning(`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); + warned = true; + } + return value; + }, + set(value) { + Object.defineProperty(node, deprecatedKey, { + enumerable: true, + value, + writable: true, + }); + }, + }); + return node; + } + assertModuleSpecifier(node, allowNull) { + if (!allowNull && node.moduleSpecifier == null) { + this.#throwUnlessAllowInvalidAST(node, 'Module specifier must be a string literal.'); + } + if (node.moduleSpecifier && + node.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwUnlessAllowInvalidAST(node.moduleSpecifier, 'Module specifier must be a string literal.'); + } + } + convertBindingNameWithTypeAnnotation(name, tsType, parent) { + const id = this.convertPattern(name); + if (tsType) { + id.typeAnnotation = this.convertTypeAnnotation(tsType, parent); + this.fixParentLocation(id, id.typeAnnotation.range); + } + return id; + } + /** + * Coverts body Nodes and add a directive field to StringLiterals + * @param nodes of ts.Node + * @param parent parentNode + * @returns Array of body statements + */ + convertBodyExpressions(nodes, parent) { + let allowDirectives = (0, node_utils_1.canContainDirective)(parent); + return (nodes + .map(statement => { + const child = this.convertChild(statement); + if (allowDirectives) { + if (child?.expression && + ts.isExpressionStatement(statement) && + ts.isStringLiteral(statement.expression)) { + const raw = child.expression.raw; + child.directive = raw.slice(1, -1); + return child; // child can be null, but it's filtered below + } + allowDirectives = false; + } + return child; // child can be null, but it's filtered below + }) + // filter out unknown nodes for now + .filter(statement => statement)); + } + convertChainExpression(node, tsNode) { + const { child, isOptional } = (() => { + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + return { child: node.object, isOptional: node.optional }; + } + if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + return { child: node.callee, isOptional: node.optional }; + } + return { child: node.expression, isOptional: false }; + })(); + const isChildUnwrappable = (0, node_utils_1.isChildUnwrappableOptionalChain)(tsNode, child); + if (!isChildUnwrappable && !isOptional) { + return node; + } + if (isChildUnwrappable && (0, node_utils_1.isChainExpression)(child)) { + // unwrap the chain expression child + const newChild = child.expression; + if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { + node.object = newChild; + } + else if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { + node.callee = newChild; + } + else { + node.expression = newChild; + } + } + return this.createNode(tsNode, { + type: ts_estree_1.AST_NODE_TYPES.ChainExpression, + expression: node, + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertChild(child, parent) { + return this.converter(child, parent, false); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param child the child ts.Node + * @param parent parentNode + * @returns the converted ESTree node + */ + convertPattern(child, parent) { + return this.converter(child, parent, true); + } + /** + * Converts a child into a type annotation. This creates an intermediary + * TypeAnnotation node to match what Flow does. + * @param child The TypeScript AST node to convert. + * @param parent parentNode + * @returns The type annotation node. + */ + convertTypeAnnotation(child, parent) { + // in FunctionType and ConstructorType typeAnnotation has 2 characters `=>` and in other places is just colon + const offset = parent?.kind === SyntaxKind.FunctionType || + parent?.kind === SyntaxKind.ConstructorType + ? 2 + : 1; + const annotationStartCol = child.getFullStart() - offset; + const range = [annotationStartCol, child.end]; + const loc = (0, node_utils_1.getLocFor)(range, this.ast); + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAnnotation, + loc, + range, + typeAnnotation: this.convertChild(child), + }; + } + /** + * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node + * @param typeArguments ts.NodeArray typeArguments + * @param node parent used to create this node + * @returns TypeParameterInstantiation node + */ + convertTypeArgumentsToTypeParameterInstantiation(typeArguments, node) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeArguments, this.ast, this.ast); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterInstantiation, + range: [typeArguments.pos - 1, greaterThanToken.end], + params: typeArguments.map(typeArgument => this.convertChild(typeArgument)), + }); + } + /** + * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node + * @param typeParameters ts.Node typeParameters + * @returns TypeParameterDeclaration node + */ + convertTSTypeParametersToTypeParametersDeclaration(typeParameters) { + const greaterThanToken = (0, node_utils_1.findNextToken)(typeParameters, this.ast, this.ast); + const range = [ + typeParameters.pos - 1, + greaterThanToken.end, + ]; + return { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterDeclaration, + loc: (0, node_utils_1.getLocFor)(range, this.ast), + range, + params: typeParameters.map(typeParameter => this.convertChild(typeParameter)), + }; + } + /** + * Converts an array of ts.Node parameters into an array of ESTreeNode params + * @param parameters An array of ts.Node params to be converted + * @returns an array of converted ESTreeNode params + */ + convertParameters(parameters) { + if (!parameters?.length) { + return []; + } + return parameters.map(param => { + const convertedParam = this.convertChild(param); + convertedParam.decorators = + (0, getModifiers_1.getDecorators)(param)?.map(el => this.convertChild(el)) ?? []; + return convertedParam; + }); + } + /** + * Converts a TypeScript node into an ESTree node. + * @param node the child ts.Node + * @param parent parentNode + * @param allowPattern flag to determine if patterns are allowed + * @returns the converted ESTree node + */ + converter(node, parent, allowPattern) { + /** + * Exit early for null and undefined + */ + if (!node) { + return null; + } + this.#checkModifiers(node); + const pattern = this.allowPattern; + if (allowPattern !== undefined) { + this.allowPattern = allowPattern; + } + const result = this.convertNode(node, (parent ?? node.parent)); + this.registerTSNodeInNodeMap(node, result); + this.allowPattern = pattern; + return result; + } + convertImportAttributes(node) { + return node === undefined + ? [] + : node.elements.map(element => this.convertChild(element)); + } + convertJSXIdentifier(node) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.getText(), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertJSXNamespaceOrIdentifier(node) { + // TypeScript@5.1 added in ts.JsxNamespacedName directly + // We prefer using that if it's relevant for this node type + if (node.kind === ts.SyntaxKind.JsxNamespacedName) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + name: this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.name.text, + }), + namespace: this.createNode(node.namespace, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + name: node.namespace.text, + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + // TypeScript@<5.1 has to manually parse the JSX attributes + const text = node.getText(); + const colonIndex = text.indexOf(':'); + // this is intentional we can ignore conversion if `:` is in first character + if (colonIndex > 0) { + const range = (0, node_utils_1.getRange)(node, this.ast); + // @ts-expect-error -- TypeScript@<5.1 doesn't have ts.JsxNamespacedName + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, + range, + name: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0] + colonIndex + 1, range[1]], + name: text.slice(colonIndex + 1), + }), + namespace: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, + range: [range[0], range[0] + colonIndex], + name: text.slice(0, colonIndex), + }), + }); + this.registerTSNodeInNodeMap(node, result); + return result; + } + return this.convertJSXIdentifier(node); + } + /** + * Converts a TypeScript JSX node.tagName into an ESTree node.name + * @param node the tagName object from a JSX ts.Node + * @returns the converted ESTree name object + */ + convertJSXTagName(node, parent) { + let result; + switch (node.kind) { + case SyntaxKind.PropertyAccessExpression: + if (node.name.kind === SyntaxKind.PrivateIdentifier) { + // This is one of the few times where TS explicitly errors, and doesn't even gracefully handle the syntax. + // So we shouldn't ever get into this state to begin with. + this.#throwError(node.name, 'Non-private identifier expected.'); + } + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXMemberExpression, + object: this.convertJSXTagName(node.expression, parent), + property: this.convertJSXIdentifier(node.name), + }); + break; + case SyntaxKind.ThisKeyword: + case SyntaxKind.Identifier: + default: + return this.convertJSXNamespaceOrIdentifier(node); + } + this.registerTSNodeInNodeMap(node, result); + return result; + } + convertMethodSignature(node) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSMethodSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: (() => { + switch (node.kind) { + case SyntaxKind.GetAccessor: + return 'get'; + case SyntaxKind.SetAccessor: + return 'set'; + case SyntaxKind.MethodSignature: + return 'method'; + } + })(), + optional: (0, node_utils_1.isOptional)(node), + params: this.convertParameters(node.parameters), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + /** + * Uses the provided range location to adjust the location data of the given Node + * @param result The node that will have its location data mutated + * @param childRange The child node range used to expand location + */ + fixParentLocation(result, childRange) { + if (childRange[0] < result.range[0]) { + result.range[0] = childRange[0]; + result.loc.start = (0, node_utils_1.getLineAndCharacterFor)(result.range[0], this.ast); + } + if (childRange[1] > result.range[1]) { + result.range[1] = childRange[1]; + result.loc.end = (0, node_utils_1.getLineAndCharacterFor)(result.range[1], this.ast); + } + } + /** + * Converts a TypeScript node into an ESTree node. + * The core of the conversion logic: + * Identify and convert each relevant TypeScript SyntaxKind + * @returns the converted ESTree node + */ + convertNode(node, parent) { + switch (node.kind) { + case SyntaxKind.SourceFile: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Program, + range: [node.getStart(this.ast), node.endOfFileToken.end], + body: this.convertBodyExpressions(node.statements, node), + comments: undefined, + sourceType: node.externalModuleIndicator ? 'module' : 'script', + tokens: undefined, + }); + } + case SyntaxKind.Block: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BlockStatement, + body: this.convertBodyExpressions(node.statements, node), + }); + } + case SyntaxKind.Identifier: { + if ((0, node_utils_1.isThisInTypeQuery)(node)) { + // special case for `typeof this.foo` - TS emits an Identifier for `this` + // but we want to treat it as a ThisExpression for consistency + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: node.text, + optional: false, + typeAnnotation: undefined, + }); + } + case SyntaxKind.PrivateIdentifier: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.PrivateIdentifier, + // typescript includes the `#` in the text + name: node.text.slice(1), + }); + } + case SyntaxKind.WithStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WithStatement, + body: this.convertChild(node.statement), + object: this.convertChild(node.expression), + }); + // Control Flow + case SyntaxKind.ReturnStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ReturnStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.LabeledStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.LabeledStatement, + body: this.convertChild(node.statement), + label: this.convertChild(node.label), + }); + case SyntaxKind.ContinueStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ContinueStatement, + label: this.convertChild(node.label), + }); + case SyntaxKind.BreakStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.BreakStatement, + label: this.convertChild(node.label), + }); + // Choice + case SyntaxKind.IfStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.IfStatement, + alternate: this.convertChild(node.elseStatement), + consequent: this.convertChild(node.thenStatement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.SwitchStatement: + if (node.caseBlock.clauses.filter(switchCase => switchCase.kind === SyntaxKind.DefaultClause).length > 1) { + this.#throwError(node, "A 'default' clause cannot appear more than once in a 'switch' statement."); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchStatement, + cases: node.caseBlock.clauses.map(el => this.convertChild(el)), + discriminant: this.convertChild(node.expression), + }); + case SyntaxKind.CaseClause: + case SyntaxKind.DefaultClause: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SwitchCase, + // expression is present in case only + consequent: node.statements.map(el => this.convertChild(el)), + test: node.kind === SyntaxKind.CaseClause + ? this.convertChild(node.expression) + : null, + }); + // Exceptions + case SyntaxKind.ThrowStatement: + if (node.expression.end === node.expression.pos) { + this.#throwUnlessAllowInvalidAST(node, 'A throw statement must throw an expression.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThrowStatement, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.TryStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TryStatement, + block: this.convertChild(node.tryBlock), + finalizer: this.convertChild(node.finallyBlock), + handler: this.convertChild(node.catchClause), + }); + case SyntaxKind.CatchClause: + if (node.variableDeclaration?.initializer) { + this.#throwError(node.variableDeclaration.initializer, 'Catch clause variable cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CatchClause, + body: this.convertChild(node.block), + param: node.variableDeclaration + ? this.convertBindingNameWithTypeAnnotation(node.variableDeclaration.name, node.variableDeclaration.type) + : null, + }); + // Loops + case SyntaxKind.WhileStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.WhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + /** + * Unlike other parsers, TypeScript calls a "DoWhileStatement" + * a "DoStatement" + */ + case SyntaxKind.DoStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DoWhileStatement, + body: this.convertChild(node.statement), + test: this.convertChild(node.expression), + }); + case SyntaxKind.ForStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForStatement, + body: this.convertChild(node.statement), + init: this.convertChild(node.initializer), + test: this.convertChild(node.condition), + update: this.convertChild(node.incrementor), + }); + case SyntaxKind.ForInStatement: + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForInStatement, + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + case SyntaxKind.ForOfStatement: { + this.#checkForStatementDeclaration(node.initializer, node.kind); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ForOfStatement, + await: Boolean(node.awaitModifier && + node.awaitModifier.kind === SyntaxKind.AwaitKeyword), + body: this.convertChild(node.statement), + left: this.convertPattern(node.initializer), + right: this.convertChild(node.expression), + }); + } + // Declarations + case SyntaxKind.FunctionDeclaration: { + const isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const isAsync = (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node); + const isGenerator = !!node.asteriskToken; + if (isDeclare) { + if (node.body) { + this.#throwError(node, 'An implementation cannot be declared in ambient contexts.'); + } + else if (isAsync) { + this.#throwError(node, "'async' modifier cannot be used in an ambient context."); + } + else if (isGenerator) { + this.#throwError(node, 'Generators are not allowed in an ambient context.'); + } + } + else if (!node.body && isGenerator) { + this.#throwError(node, 'A function signature cannot be declared as a generator.'); + } + const result = this.createNode(node, { + // declare implies no body due to the invariant above + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSDeclareFunction + : ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, + async: isAsync, + body: this.convertChild(node.body) || undefined, + declare: isDeclare, + expression: false, + generator: isGenerator, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.VariableDeclaration: { + const definite = !!node.exclamationToken; + const init = this.convertChild(node.initializer); + const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node); + if (definite) { + if (init) { + this.#throwError(node, 'Declarations with initializers cannot also have definite assignment assertions.'); + } + else if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier || + !id.typeAnnotation) { + this.#throwError(node, 'Declarations with definite assignment assertions must also have type annotations.'); + } + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator, + definite, + id, + init, + }); + } + case SyntaxKind.VariableStatement: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarationList.declarations.map(el => this.convertChild(el)), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + kind: (0, node_utils_1.getDeclarationKind)(node.declarationList), + }); + if (!result.declarations.length) { + this.#throwUnlessAllowInvalidAST(node, 'A variable declaration list must have at least one variable declarator.'); + } + if (result.kind === 'using' || result.kind === 'await using') { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init == null) { + this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + // Definite assignment only allowed for non-declare let and var + if (result.declare || + ['await using', 'const', 'using'].includes(result.kind)) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].definite) { + this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`); + } + }); + } + if (result.declare) { + node.declarationList.declarations.forEach((declaration, i) => { + if (result.declarations[i].init && + (['let', 'var'].includes(result.kind) || + result.declarations[i].id.typeAnnotation)) { + this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`); + } + }); + // Theoretically, only certain initializers are allowed for declare const, + // (TS1254: A 'const' initializer in an ambient context must be a string + // or numeric literal or literal enum reference.) but we just allow + // all expressions + } + // Note! No-declare does not mean the variable is not ambient, because + // it can be further nested in other declare contexts. Therefore we cannot + // check for const initializers. + /** + * Semantically, decorators are not allowed on variable declarations, + * Pre 4.8 TS would include them in the AST, so we did as well. + * However as of 4.8 TS no longer includes it (as it is, well, invalid). + * + * So for consistency across versions, we no longer include it either. + */ + return this.fixExports(node, result); + } + // mostly for for-of, for-in + case SyntaxKind.VariableDeclarationList: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, + declarations: node.declarations.map(el => this.convertChild(el)), + declare: false, + kind: (0, node_utils_1.getDeclarationKind)(node), + }); + if (result.kind === 'using' || result.kind === 'await using') { + node.declarations.forEach((declaration, i) => { + if (result.declarations[i].init != null) { + this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`); + } + if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); + } + }); + } + return result; + } + // Expressions + case SyntaxKind.ExpressionStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExpressionStatement, + directive: undefined, + expression: this.convertChild(node.expression), + }); + case SyntaxKind.ThisKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ThisExpression, + }); + case SyntaxKind.ArrayLiteralExpression: { + // TypeScript uses ArrayLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, + elements: node.elements.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ObjectLiteralExpression: { + // TypeScript uses ObjectLiteralExpression in destructuring assignment, too + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.properties.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + } + const properties = []; + for (const property of node.properties) { + if ((property.kind === SyntaxKind.GetAccessor || + property.kind === SyntaxKind.SetAccessor || + property.kind === SyntaxKind.MethodDeclaration) && + !property.body) { + this.#throwUnlessAllowInvalidAST(property.end - 1, "'{' expected."); + } + properties.push(this.convertChild(property)); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectExpression, + properties, + }); + } + case SyntaxKind.PropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, questionToken } = node; + if (questionToken) { + this.#throwError(questionToken, 'A property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A property assignment cannot have an exclamation token.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: false, + value: this.converter(node.initializer, node, this.allowPattern), + }); + } + case SyntaxKind.ShorthandPropertyAssignment: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { exclamationToken, modifiers, questionToken } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A shorthand property assignment cannot have modifiers.'); + } + if (questionToken) { + this.#throwError(questionToken, 'A shorthand property assignment cannot have a question token.'); + } + if (exclamationToken) { + this.#throwError(exclamationToken, 'A shorthand property assignment cannot have an exclamation token.'); + } + if (node.objectAssignmentInitializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.name), + optional: false, + right: this.convertChild(node.objectAssignmentInitializer), + typeAnnotation: undefined, + }), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: false, + key: this.convertChild(node.name), + kind: 'init', + method: false, + optional: false, + shorthand: true, + value: this.convertChild(node.name), + }); + } + case SyntaxKind.ComputedPropertyName: + return this.convertChild(node.expression); + case SyntaxKind.PropertyDeclaration: { + const isAbstract = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node); + if (isAbstract && node.initializer) { + this.#throwError(node.initializer, `Abstract property cannot have an initializer.`); + } + const isAccessor = (0, node_utils_1.hasModifier)(SyntaxKind.AccessorKeyword, node); + const type = (() => { + if (isAccessor) { + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractAccessorProperty; + } + return ts_estree_1.AST_NODE_TYPES.AccessorProperty; + } + if (isAbstract) { + return ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition; + } + return ts_estree_1.AST_NODE_TYPES.PropertyDefinition; + })(); + const key = this.convertChild(node.name); + return this.createNode(node, { + type, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + definite: !!node.exclamationToken, + key, + optional: (key.type === ts_estree_1.AST_NODE_TYPES.Literal || + node.name.kind === SyntaxKind.Identifier || + node.name.kind === SyntaxKind.ComputedPropertyName || + node.name.kind === SyntaxKind.PrivateIdentifier) && + !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + value: isAbstract ? null : this.convertChild(node.initializer), + }); + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: { + if (node.parent.kind === SyntaxKind.InterfaceDeclaration || + node.parent.kind === SyntaxKind.TypeLiteral) { + return this.convertMethodSignature(node); + } + } + // otherwise, it is a non-type accessor - intentional fallthrough + case SyntaxKind.MethodDeclaration: { + const method = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, // ESTreeNode as ESTreeNode here + generator: !!node.asteriskToken, + id: null, + params: [], + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (method.typeParameters) { + this.fixParentLocation(method, method.typeParameters.range); + } + let result; + if (parent.kind === SyntaxKind.ObjectLiteralExpression) { + method.params = node.parameters.map(el => this.convertChild(el)); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + kind: 'init', + method: node.kind === SyntaxKind.MethodDeclaration, + optional: !!node.questionToken, + shorthand: false, + value: method, + }); + } + else { + // class + /** + * Unlike in object literal methods, class method params can have decorators + */ + method.params = this.convertParameters(node.parameters); + /** + * TypeScript class methods can be defined as "abstract" + */ + const methodDefinitionType = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition; + result = this.createNode(node, { + type: methodDefinitionType, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + key: this.convertChild(node.name), + kind: 'method', + optional: !!node.questionToken, + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + value: method, + }); + } + if (node.kind === SyntaxKind.GetAccessor) { + result.kind = 'get'; + } + else if (node.kind === SyntaxKind.SetAccessor) { + result.kind = 'set'; + } + else if (!result.static && + node.name.kind === SyntaxKind.StringLiteral && + node.name.text === 'constructor' && + result.type !== ts_estree_1.AST_NODE_TYPES.Property) { + result.kind = 'constructor'; + } + return result; + } + // TypeScript uses this even for static methods named "constructor" + case SyntaxKind.Constructor: { + const lastModifier = (0, node_utils_1.getLastModifier)(node); + const constructorToken = (lastModifier && (0, node_utils_1.findNextToken)(lastModifier, node, this.ast)) ?? + node.getFirstToken(); + const constructor = this.createNode(node, { + type: !node.body + ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression + : ts_estree_1.AST_NODE_TYPES.FunctionExpression, + range: [node.parameters.pos - 1, node.end], + async: false, + body: this.convertChild(node.body), + declare: false, + expression: false, // is not present in ESTreeNode + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (constructor.typeParameters) { + this.fixParentLocation(constructor, constructor.typeParameters.range); + } + const constructorKey = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [constructorToken.getStart(this.ast), constructorToken.end], + decorators: [], + name: 'constructor', + optional: false, + typeAnnotation: undefined, + }); + const isStatic = (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node); + return this.createNode(node, { + type: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) + ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition + : ts_estree_1.AST_NODE_TYPES.MethodDefinition, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: false, + decorators: [], + key: constructorKey, + kind: isStatic ? 'method' : 'constructor', + optional: false, + override: false, + static: isStatic, + value: constructor, + }); + } + case SyntaxKind.FunctionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.FunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + declare: false, + expression: false, + generator: !!node.asteriskToken, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.SuperKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Super, + }); + case SyntaxKind.ArrayBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, + decorators: [], + elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, + }); + // occurs with missing array elements like [,] + case SyntaxKind.OmittedExpression: + return null; + case SyntaxKind.ObjectBindingPattern: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, + decorators: [], + optional: false, + properties: node.elements.map(el => this.convertPattern(el)), + typeAnnotation: undefined, + }); + case SyntaxKind.BindingElement: { + if (parent.kind === SyntaxKind.ArrayBindingPattern) { + const arrayItem = this.convertChild(node.name, parent); + if (node.initializer) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: arrayItem, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: arrayItem, + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return arrayItem; + } + let result; + if (node.dotDotDotToken) { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.propertyName ?? node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else { + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Property, + computed: Boolean(node.propertyName && + node.propertyName.kind === SyntaxKind.ComputedPropertyName), + key: this.convertChild(node.propertyName ?? node.name), + kind: 'init', + method: false, + optional: false, + shorthand: !node.propertyName, + value: this.convertChild(node.name), + }); + } + if (node.initializer) { + result.value = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + range: [node.name.getStart(this.ast), node.initializer.end], + decorators: [], + left: this.convertChild(node.name), + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + } + return result; + } + case SyntaxKind.ArrowFunction: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, + async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + expression: node.body.kind !== SyntaxKind.Block, + generator: false, + id: null, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.YieldExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.YieldExpression, + argument: this.convertChild(node.expression), + delegate: !!node.asteriskToken, + }); + case SyntaxKind.AwaitExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AwaitExpression, + argument: this.convertChild(node.expression), + }); + // Template Literals + case SyntaxKind.NoSubstitutionTemplateLiteral: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [ + this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail: true, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - 1), + }, + }), + ], + }); + case SyntaxKind.TemplateExpression: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, + expressions: [], + quasis: [this.convertChild(node.head)], + }); + node.templateSpans.forEach(templateSpan => { + result.expressions.push(this.convertChild(templateSpan.expression)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.TaggedTemplateExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TaggedTemplateExpression, + quasi: this.convertChild(node.template), + tag: this.convertChild(node.tag), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.TemplateHead: + case SyntaxKind.TemplateMiddle: + case SyntaxKind.TemplateTail: { + const tail = node.kind === SyntaxKind.TemplateTail; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TemplateElement, + tail, + value: { + cooked: node.text, + raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - (tail ? 1 : 2)), + }, + }); + } + // Patterns + case SyntaxKind.SpreadAssignment: + case SyntaxKind.SpreadElement: { + if (this.allowPattern) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertPattern(node.expression), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SpreadElement, + argument: this.convertChild(node.expression), + }); + } + case SyntaxKind.Parameter: { + let parameter; + let result; + if (node.dotDotDotToken) { + parameter = result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.RestElement, + argument: this.convertChild(node.name), + decorators: [], + optional: false, + typeAnnotation: undefined, + value: undefined, + }); + } + else if (node.initializer) { + parameter = this.convertChild(node.name); + result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: parameter, + optional: false, + right: this.convertChild(node.initializer), + typeAnnotation: undefined, + }); + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + // AssignmentPattern should not contain modifiers in range + result.range[0] = parameter.range[0]; + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + } + } + else { + parameter = result = this.convertChild(node.name, parent); + } + if (node.type) { + parameter.typeAnnotation = this.convertTypeAnnotation(node.type, node); + this.fixParentLocation(parameter, parameter.typeAnnotation.range); + } + if (node.questionToken) { + if (node.questionToken.end > parameter.range[1]) { + parameter.range[1] = node.questionToken.end; + parameter.loc.end = (0, node_utils_1.getLineAndCharacterFor)(parameter.range[1], this.ast); + } + parameter.optional = true; + } + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSParameterProperty, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + decorators: [], + override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), + parameter: result, + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + }); + } + return result; + } + // Classes + case SyntaxKind.ClassDeclaration: + if (!node.name && + (!(0, node_utils_1.hasModifier)(ts.SyntaxKind.ExportKeyword, node) || + !(0, node_utils_1.hasModifier)(ts.SyntaxKind.DefaultKeyword, node))) { + this.#throwUnlessAllowInvalidAST(node, "A class declaration without the 'default' modifier must have a name."); + } + /* intentional fallthrough */ + case SyntaxKind.ClassExpression: { + const heritageClauses = node.heritageClauses ?? []; + const classNodeType = node.kind === SyntaxKind.ClassDeclaration + ? ts_estree_1.AST_NODE_TYPES.ClassDeclaration + : ts_estree_1.AST_NODE_TYPES.ClassExpression; + let extendsClause; + let implementsClause; + for (const heritageClause of heritageClauses) { + const { token, types } = heritageClause; + if (types.length === 0) { + this.#throwUnlessAllowInvalidAST(heritageClause, `'${ts.tokenToString(token)}' list cannot be empty.`); + } + if (token === SyntaxKind.ExtendsKeyword) { + if (extendsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause already seen."); + } + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause must precede 'implements' clause."); + } + if (types.length > 1) { + this.#throwUnlessAllowInvalidAST(types[1], 'Classes can only extend a single class.'); + } + extendsClause ??= heritageClause; + } + else if (token === SyntaxKind.ImplementsKeyword) { + if (implementsClause) { + this.#throwUnlessAllowInvalidAST(heritageClause, "'implements' clause already seen."); + } + implementsClause ??= heritageClause; + } + } + const result = this.createNode(node, { + type: classNodeType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ClassBody, + range: [node.members.pos - 1, node.end], + body: node.members + .filter(node_utils_1.isESTreeClassMember) + .map(el => this.convertChild(el)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], + id: this.convertChild(node.name), + implements: implementsClause?.types.map(el => this.convertChild(el)) ?? [], + superClass: extendsClause?.types[0] + ? this.convertChild(extendsClause.types[0].expression) + : null, + superTypeArguments: undefined, + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + if (extendsClause?.types[0]?.typeArguments) { + result.superTypeArguments = + this.convertTypeArgumentsToTypeParameterInstantiation(extendsClause.types[0].typeArguments, extendsClause.types[0]); + } + return this.fixExports(node, result); + } + // Modules + case SyntaxKind.ModuleBlock: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleBlock, + body: this.convertBodyExpressions(node.statements, node), + }); + case SyntaxKind.ImportDeclaration: { + this.assertModuleSpecifier(node, false); + const result = this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + importKind: 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: [], + }, 'assertions', 'attributes', true)); + if (node.importClause) { + if (node.importClause.isTypeOnly) { + result.importKind = 'type'; + } + if (node.importClause.name) { + result.specifiers.push(this.convertChild(node.importClause)); + } + if (node.importClause.namedBindings) { + switch (node.importClause.namedBindings.kind) { + case SyntaxKind.NamespaceImport: + result.specifiers.push(this.convertChild(node.importClause.namedBindings)); + break; + case SyntaxKind.NamedImports: + result.specifiers.push(...node.importClause.namedBindings.elements.map(el => this.convertChild(el))); + break; + } + } + } + return result; + } + case SyntaxKind.NamespaceImport: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportNamespaceSpecifier, + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportSpecifier: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportSpecifier, + imported: this.convertChild(node.propertyName ?? node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(node.name), + }); + case SyntaxKind.ImportClause: { + const local = this.convertChild(node.name); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportDefaultSpecifier, + range: local.range, + local, + }); + } + case SyntaxKind.ExportDeclaration: { + if (node.exportClause?.kind === SyntaxKind.NamedExports) { + this.assertModuleSpecifier(node, true); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + declaration: null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + specifiers: node.exportClause.elements.map(el => this.convertChild(el, node)), + }, 'assertions', 'attributes', true)); + } + this.assertModuleSpecifier(node, false); + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, + attributes: this.convertImportAttributes( + // eslint-disable-next-line @typescript-eslint/no-deprecated + node.attributes ?? node.assertClause), + exported: node.exportClause?.kind === SyntaxKind.NamespaceExport + ? this.convertChild(node.exportClause.name) + : null, + exportKind: node.isTypeOnly ? 'type' : 'value', + source: this.convertChild(node.moduleSpecifier), + }, 'assertions', 'attributes', true)); + } + case SyntaxKind.ExportSpecifier: { + const local = node.propertyName ?? node.name; + if (local.kind === SyntaxKind.StringLiteral && + parent.kind === SyntaxKind.ExportDeclaration && + parent.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { + this.#throwError(local, 'A string literal cannot be used as a local exported binding without `from`.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportSpecifier, + exported: this.convertChild(node.name), + exportKind: node.isTypeOnly ? 'type' : 'value', + local: this.convertChild(local), + }); + } + case SyntaxKind.ExportAssignment: + if (node.isExportEquals) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExportAssignment, + expression: this.convertChild(node.expression), + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + declaration: this.convertChild(node.expression), + exportKind: 'value', + }); + // Unary Operations + case SyntaxKind.PrefixUnaryExpression: + case SyntaxKind.PostfixUnaryExpression: { + const operator = (0, node_utils_1.getTextForTokenKind)(node.operator); + /** + * ESTree uses UpdateExpression for ++/-- + */ + if (operator === '++' || operator === '--') { + if (!(0, node_utils_1.isValidAssignmentTarget)(node.operand)) { + this.#throwUnlessAllowInvalidAST(node.operand, 'Invalid left-hand side expression in unary operation'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UpdateExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.operand), + operator, + prefix: node.kind === SyntaxKind.PrefixUnaryExpression, + }); + } + case SyntaxKind.DeleteExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'delete', + prefix: true, + }); + case SyntaxKind.VoidExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'void', + prefix: true, + }); + case SyntaxKind.TypeOfExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, + argument: this.convertChild(node.expression), + operator: 'typeof', + prefix: true, + }); + case SyntaxKind.TypeOperator: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeOperator, + operator: (0, node_utils_1.getTextForTokenKind)(node.operator), + typeAnnotation: this.convertChild(node.type), + }); + // Binary Operations + case SyntaxKind.BinaryExpression: { + // TypeScript uses BinaryExpression for sequences as well + if ((0, node_utils_1.isComma)(node.operatorToken)) { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.SequenceExpression, + expressions: [], + }); + const left = this.convertChild(node.left); + if (left.type === ts_estree_1.AST_NODE_TYPES.SequenceExpression && + node.left.kind !== SyntaxKind.ParenthesizedExpression) { + result.expressions.push(...left.expressions); + } + else { + result.expressions.push(left); + } + result.expressions.push(this.convertChild(node.right)); + return result; + } + const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); + if (this.allowPattern && + expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, + decorators: [], + left: this.convertPattern(node.left, node), + optional: false, + right: this.convertChild(node.right), + typeAnnotation: undefined, + }); + } + return this.createNode(node, { + ...expressionType, + left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), + right: this.convertChild(node.right), + }); + } + case SyntaxKind.PropertyAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.name); + const computed = false; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.ElementAccessExpression: { + const object = this.convertChild(node.expression); + const property = this.convertChild(node.argumentExpression); + const computed = true; + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MemberExpression, + computed, + object, + optional: node.questionDotToken !== undefined, + property, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.CallExpression: { + if (node.expression.kind === SyntaxKind.ImportKeyword) { + if (node.arguments.length !== 1 && node.arguments.length !== 2) { + this.#throwUnlessAllowInvalidAST(node.arguments[2] ?? node, 'Dynamic import requires exactly one or two arguments.'); + } + return this.createNode(node, this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ImportExpression, + options: node.arguments[1] + ? this.convertChild(node.arguments[1]) + : null, + source: this.convertChild(node.arguments[0]), + }, 'attributes', 'options', true)); + } + const callee = this.convertChild(node.expression); + const args = node.arguments.map(el => this.convertChild(el)); + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.CallExpression, + arguments: args, + callee, + optional: node.questionDotToken !== undefined, + typeArguments, + }); + return this.convertChainExpression(result, node); + } + case SyntaxKind.NewExpression: { + const typeArguments = node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); + // NOTE - NewExpression cannot have an optional chain in it + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.NewExpression, + arguments: node.arguments + ? node.arguments.map(el => this.convertChild(el)) + : [], + callee: this.convertChild(node.expression), + typeArguments, + }); + } + case SyntaxKind.ConditionalExpression: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ConditionalExpression, + alternate: this.convertChild(node.whenFalse), + consequent: this.convertChild(node.whenTrue), + test: this.convertChild(node.condition), + }); + case SyntaxKind.MetaProperty: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.MetaProperty, + meta: this.createNode( + // TODO: do we really want to convert it to Token? + node.getFirstToken(), { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + decorators: [], + name: (0, node_utils_1.getTextForTokenKind)(node.keywordToken), + optional: false, + typeAnnotation: undefined, + }), + property: this.convertChild(node.name), + }); + } + case SyntaxKind.Decorator: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Decorator, + expression: this.convertChild(node.expression), + }); + } + // Literals + case SyntaxKind.StringLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: parent.kind === SyntaxKind.JsxAttribute + ? (0, node_utils_1.unescapeStringLiteralText)(node.text) + : node.text, + }); + } + case SyntaxKind.NumericLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.getText(), + value: Number(node.text), + }); + } + case SyntaxKind.BigIntLiteral: { + const range = (0, node_utils_1.getRange)(node, this.ast); + const rawValue = this.ast.text.slice(range[0], range[1]); + const bigint = rawValue + // remove suffix `n` + .slice(0, -1) + // `BigInt` doesn't accept numeric separator + // and `bigint` property should not include numeric separator + .replaceAll('_', ''); + const value = typeof BigInt !== 'undefined' ? BigInt(bigint) : null; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + range, + bigint: value == null ? bigint : String(value), + raw: rawValue, + value, + }); + } + case SyntaxKind.RegularExpressionLiteral: { + const pattern = node.text.slice(1, node.text.lastIndexOf('/')); + const flags = node.text.slice(node.text.lastIndexOf('/') + 1); + let regex = null; + try { + regex = new RegExp(pattern, flags); + } + catch { + // Intentionally blank, so regex stays null + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: node.text, + regex: { + flags, + pattern, + }, + value: regex, + }); + } + case SyntaxKind.TrueKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'true', + value: true, + }); + case SyntaxKind.FalseKeyword: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'false', + value: false, + }); + case SyntaxKind.NullKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.Literal, + raw: 'null', + value: null, + }); + } + case SyntaxKind.EmptyStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.EmptyStatement, + }); + case SyntaxKind.DebuggerStatement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.DebuggerStatement, + }); + // JSX + case SyntaxKind.JsxElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + children: node.children.map(el => this.convertChild(el)), + closingElement: this.convertChild(node.closingElement), + openingElement: this.convertChild(node.openingElement), + }); + case SyntaxKind.JsxFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXFragment, + children: node.children.map(el => this.convertChild(el)), + closingFragment: this.convertChild(node.closingFragment), + openingFragment: this.convertChild(node.openingFragment), + }); + case SyntaxKind.JsxSelfClosingElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXElement, + /** + * Convert SyntaxKind.JsxSelfClosingElement to SyntaxKind.JsxOpeningElement, + * TypeScript does not seem to have the idea of openingElement when tag is self-closing + */ + children: [], + closingElement: null, + openingElement: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + range: (0, node_utils_1.getRange)(node, this.ast), + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: true, + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : undefined, + }), + }); + } + case SyntaxKind.JsxOpeningElement: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, + attributes: node.attributes.properties.map(el => this.convertChild(el)), + name: this.convertJSXTagName(node.tagName, node), + selfClosing: false, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.JsxClosingElement: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingElement, + name: this.convertJSXTagName(node.tagName, node), + }); + case SyntaxKind.JsxOpeningFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXOpeningFragment, + }); + case SyntaxKind.JsxClosingFragment: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXClosingFragment, + }); + case SyntaxKind.JsxExpression: { + const expression = node.expression + ? this.convertChild(node.expression) + : this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXEmptyExpression, + range: [node.getStart(this.ast) + 1, node.getEnd() - 1], + }); + if (node.dotDotDotToken) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadChild, + expression, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, + expression, + }); + } + case SyntaxKind.JsxAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXAttribute, + name: this.convertJSXNamespaceOrIdentifier(node.name), + value: this.convertChild(node.initializer), + }); + } + case SyntaxKind.JsxText: { + const start = node.getFullStart(); + const end = node.getEnd(); + const text = this.ast.text.slice(start, end); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXText, + range: [start, end], + raw: text, + value: (0, node_utils_1.unescapeStringLiteralText)(text), + }); + } + case SyntaxKind.JsxSpreadAttribute: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.JSXSpreadAttribute, + argument: this.convertChild(node.expression), + }); + case SyntaxKind.QualifiedName: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + left: this.convertChild(node.left), + right: this.convertChild(node.right), + }); + } + // TypeScript specific + case SyntaxKind.TypeReference: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeReference, + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + typeName: this.convertChild(node.typeName), + }); + case SyntaxKind.TypeParameter: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeParameter, + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + constraint: node.constraint && this.convertChild(node.constraint), + default: node.default ? this.convertChild(node.default) : undefined, + in: (0, node_utils_1.hasModifier)(SyntaxKind.InKeyword, node), + name: this.convertChild(node.name), + out: (0, node_utils_1.hasModifier)(SyntaxKind.OutKeyword, node), + }); + } + case SyntaxKind.ThisType: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSThisType, + }); + case SyntaxKind.AnyKeyword: + case SyntaxKind.BigIntKeyword: + case SyntaxKind.BooleanKeyword: + case SyntaxKind.NeverKeyword: + case SyntaxKind.NumberKeyword: + case SyntaxKind.ObjectKeyword: + case SyntaxKind.StringKeyword: + case SyntaxKind.SymbolKeyword: + case SyntaxKind.UnknownKeyword: + case SyntaxKind.VoidKeyword: + case SyntaxKind.UndefinedKeyword: + case SyntaxKind.IntrinsicKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`], + }); + } + case SyntaxKind.NonNullExpression: { + const nnExpr = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNonNullExpression, + expression: this.convertChild(node.expression), + }); + return this.convertChainExpression(nnExpr, node); + } + case SyntaxKind.TypeLiteral: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeLiteral, + members: node.members.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.ArrayType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSArrayType, + elementType: this.convertChild(node.elementType), + }); + } + case SyntaxKind.IndexedAccessType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexedAccessType, + indexType: this.convertChild(node.indexType), + objectType: this.convertChild(node.objectType), + }); + } + case SyntaxKind.ConditionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConditionalType, + checkType: this.convertChild(node.checkType), + extendsType: this.convertChild(node.extendsType), + falseType: this.convertChild(node.falseType), + trueType: this.convertChild(node.trueType), + }); + } + case SyntaxKind.TypeQuery: + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: this.convertChild(node.exprName), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + case SyntaxKind.MappedType: { + if (node.members && node.members.length > 0) { + this.#throwUnlessAllowInvalidAST(node.members[0], 'A mapped type may not declare properties or methods.'); + } + return this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSMappedType, + constraint: this.convertChild(node.typeParameter.constraint), + key: this.convertChild(node.typeParameter.name), + nameType: this.convertChild(node.nameType) ?? null, + optional: node.questionToken && + (node.questionToken.kind === SyntaxKind.QuestionToken || + (0, node_utils_1.getTextForTokenKind)(node.questionToken.kind)), + readonly: node.readonlyToken && + (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword || + (0, node_utils_1.getTextForTokenKind)(node.readonlyToken.kind)), + typeAnnotation: node.type && this.convertChild(node.type), + }, 'typeParameter', "'constraint' and 'key'", this.convertChild(node.typeParameter))); + } + case SyntaxKind.ParenthesizedExpression: + return this.convertChild(node.expression, parent); + case SyntaxKind.TypeAliasDeclaration: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration, + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + typeAnnotation: this.convertChild(node.type), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.MethodSignature: { + return this.convertMethodSignature(node); + } + case SyntaxKind.PropertySignature: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { initializer } = node; + if (initializer) { + this.#throwError(initializer, 'A property signature cannot have an initializer.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSPropertySignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + computed: (0, node_utils_1.isComputedProperty)(node.name), + key: this.convertChild(node.name), + optional: (0, node_utils_1.isOptional)(node), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.IndexSignature: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIndexSignature, + accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), + parameters: node.parameters.map(el => this.convertChild(el)), + readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), + static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), + typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), + }); + } + case SyntaxKind.ConstructorType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSConstructorType, + abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.FunctionType: { + // eslint-disable-next-line @typescript-eslint/no-deprecated + const { modifiers } = node; + if (modifiers) { + this.#throwError(modifiers[0], 'A function type cannot have modifiers.'); + } + } + // intentional fallthrough + case SyntaxKind.ConstructSignature: + case SyntaxKind.CallSignature: { + const type = node.kind === SyntaxKind.ConstructSignature + ? ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration + : node.kind === SyntaxKind.CallSignature + ? ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration + : ts_estree_1.AST_NODE_TYPES.TSFunctionType; + return this.createNode(node, { + type, + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + } + case SyntaxKind.ExpressionWithTypeArguments: { + const parentKind = parent.kind; + const type = parentKind === SyntaxKind.InterfaceDeclaration + ? ts_estree_1.AST_NODE_TYPES.TSInterfaceHeritage + : parentKind === SyntaxKind.HeritageClause + ? ts_estree_1.AST_NODE_TYPES.TSClassImplements + : ts_estree_1.AST_NODE_TYPES.TSInstantiationExpression; + return this.createNode(node, { + type, + expression: this.convertChild(node.expression), + typeArguments: node.typeArguments && + this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), + }); + } + case SyntaxKind.InterfaceDeclaration: { + const interfaceHeritageClauses = node.heritageClauses ?? []; + const interfaceExtends = []; + for (const heritageClause of interfaceHeritageClauses) { + if (heritageClause.token !== SyntaxKind.ExtendsKeyword) { + this.#throwError(heritageClause, heritageClause.token === SyntaxKind.ImplementsKeyword + ? "Interface declaration cannot have 'implements' clause." + : 'Unexpected token.'); + } + for (const heritageType of heritageClause.types) { + interfaceExtends.push(this.convertChild(heritageType, node)); + } + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInterfaceBody, + range: [node.members.pos - 1, node.end], + body: node.members.map(member => this.convertChild(member)), + }), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + extends: interfaceExtends, + id: this.convertChild(node.name), + typeParameters: node.typeParameters && + this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), + }); + return this.fixExports(node, result); + } + case SyntaxKind.TypePredicate: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypePredicate, + asserts: node.assertsModifier !== undefined, + parameterName: this.convertChild(node.parameterName), + typeAnnotation: null, + }); + /** + * Specific fix for type-guard location data + */ + if (node.type) { + result.typeAnnotation = this.convertTypeAnnotation(node.type, node); + result.typeAnnotation.loc = result.typeAnnotation.typeAnnotation.loc; + result.typeAnnotation.range = + result.typeAnnotation.typeAnnotation.range; + } + return result; + } + case SyntaxKind.ImportType: { + const range = (0, node_utils_1.getRange)(node, this.ast); + if (node.isTypeOf) { + const token = (0, node_utils_1.findNextToken)(node.getFirstToken(), node, this.ast); + range[0] = token.getStart(this.ast); + } + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportType, + range, + argument: this.convertChild(node.argument), + qualifier: this.convertChild(node.qualifier), + typeArguments: node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null, + }); + if (node.isTypeOf) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, + exprName: result, + typeArguments: undefined, + }); + } + return result; + } + case SyntaxKind.EnumDeclaration: { + const members = node.members.map(el => this.convertChild(el)); + const result = this.createNode(node, this.#withDeprecatedGetter({ + type: ts_estree_1.AST_NODE_TYPES.TSEnumDeclaration, + body: this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumBody, + range: [node.members.pos - 1, node.end], + members, + }), + const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), + declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), + id: this.convertChild(node.name), + }, 'members', `'body.members'`, node.members.map(el => this.convertChild(el)))); + return this.fixExports(node, result); + } + case SyntaxKind.EnumMember: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSEnumMember, + computed: node.name.kind === ts.SyntaxKind.ComputedPropertyName, + id: this.convertChild(node.name), + initializer: node.initializer && this.convertChild(node.initializer), + }); + } + case SyntaxKind.ModuleDeclaration: { + let isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration, + ...(() => { + // the constraints checked by this function are syntactically enforced by TS + // the checks mostly exist for type's sake + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + const id = this.convertChild(node.name); + const body = this.convertChild(node.body); + if (body == null || + body.type === ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration) { + this.#throwUnlessAllowInvalidAST(node.body ?? node, 'Expected a valid module body'); + } + if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, 'global module augmentation must have an Identifier id'); + } + return { + body: body, + declare: false, + global: false, + id, + kind: 'global', + }; + } + if (!(node.flags & ts.NodeFlags.Namespace)) { + const body = this.convertChild(node.body); + return { + kind: 'module', + ...(body != null ? { body } : {}), + declare: false, + global: false, + id: this.convertChild(node.name), + }; + } + // Nested module declarations are stored in TypeScript as nested tree nodes. + // We "unravel" them here by making our own nested TSQualifiedName, + // with the innermost node's body as the actual node body. + if (node.body == null) { + this.#throwUnlessAllowInvalidAST(node, 'Expected a module body'); + } + if (node.name.kind !== ts.SyntaxKind.Identifier) { + this.#throwUnlessAllowInvalidAST(node.name, '`namespace`s must have an Identifier id'); + } + let name = this.createNode(node.name, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [node.name.getStart(this.ast), node.name.getEnd()], + decorators: [], + name: node.name.text, + optional: false, + typeAnnotation: undefined, + }); + while (node.body && + ts.isModuleDeclaration(node.body) && + node.body.name) { + node = node.body; + isDeclare ||= (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); + const nextName = node.name; + const right = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.Identifier, + range: [nextName.getStart(this.ast), nextName.getEnd()], + decorators: [], + name: nextName.text, + optional: false, + typeAnnotation: undefined, + }); + name = this.createNode(nextName, { + type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, + range: [name.range[0], right.range[1]], + left: name, + right, + }); + } + return { + body: this.convertChild(node.body), + declare: false, + global: false, + id: name, + kind: 'namespace', + }; + })(), + }); + result.declare = isDeclare; + if (node.flags & ts.NodeFlags.GlobalAugmentation) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + result.global = true; + } + return this.fixExports(node, result); + } + // TypeScript specific types + case SyntaxKind.ParenthesizedType: { + return this.convertChild(node.type); + } + case SyntaxKind.UnionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSUnionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.IntersectionType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSIntersectionType, + types: node.types.map(el => this.convertChild(el)), + }); + } + case SyntaxKind.AsExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAsExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.InferType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSInferType, + typeParameter: this.convertChild(node.typeParameter), + }); + } + case SyntaxKind.LiteralType: { + if (node.literal.kind === SyntaxKind.NullKeyword) { + // 4.0 started nesting null types inside a LiteralType node + // but our AST is designed around the old way of null being a keyword + return this.createNode(node.literal, { + type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, + }); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, + literal: this.convertChild(node.literal), + }); + } + case SyntaxKind.TypeAssertionExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.ImportEqualsDeclaration: { + return this.fixExports(node, this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSImportEqualsDeclaration, + id: this.convertChild(node.name), + importKind: node.isTypeOnly ? 'type' : 'value', + moduleReference: this.convertChild(node.moduleReference), + })); + } + case SyntaxKind.ExternalModuleReference: { + if (node.expression.kind !== SyntaxKind.StringLiteral) { + this.#throwError(node.expression, 'String literal expected.'); + } + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSExternalModuleReference, + expression: this.convertChild(node.expression), + }); + } + case SyntaxKind.NamespaceExportDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamespaceExportDeclaration, + id: this.convertChild(node.name), + }); + } + case SyntaxKind.AbstractKeyword: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSAbstractKeyword, + }); + } + // Tuple + case SyntaxKind.TupleType: { + const elementTypes = node.elements.map(el => this.convertChild(el)); + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTupleType, + elementTypes, + }); + } + case SyntaxKind.NamedTupleMember: { + const member = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSNamedTupleMember, + elementType: this.convertChild(node.type, node), + label: this.convertChild(node.name, node), + optional: node.questionToken != null, + }); + if (node.dotDotDotToken) { + // adjust the start to account for the "..." + member.range[0] = member.label.range[0]; + member.loc.start = member.label.loc.start; + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: member, + }); + } + return member; + } + case SyntaxKind.OptionalType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSOptionalType, + typeAnnotation: this.convertChild(node.type), + }); + } + case SyntaxKind.RestType: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSRestType, + typeAnnotation: this.convertChild(node.type), + }); + } + // Template Literal Types + case SyntaxKind.TemplateLiteralType: { + const result = this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSTemplateLiteralType, + quasis: [this.convertChild(node.head)], + types: [], + }); + node.templateSpans.forEach(templateSpan => { + result.types.push(this.convertChild(templateSpan.type)); + result.quasis.push(this.convertChild(templateSpan.literal)); + }); + return result; + } + case SyntaxKind.ClassStaticBlockDeclaration: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.StaticBlock, + body: this.convertBodyExpressions(node.body.statements, node), + }); + } + // eslint-disable-next-line @typescript-eslint/no-deprecated + case SyntaxKind.AssertEntry: + case SyntaxKind.ImportAttribute: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ImportAttribute, + key: this.convertChild(node.name), + value: this.convertChild(node.value), + }); + } + case SyntaxKind.SatisfiesExpression: { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.TSSatisfiesExpression, + expression: this.convertChild(node.expression), + typeAnnotation: this.convertChild(node.type), + }); + } + default: + return this.deeplyCopy(node); + } + } + createNode( + // The 'parent' property will be added later if specified + node, data) { + const result = data; + result.range ??= (0, node_utils_1.getRange)(node, this.ast); + result.loc ??= (0, node_utils_1.getLocFor)(result.range, this.ast); + if (result && this.options.shouldPreserveNodeMaps) { + this.esTreeNodeToTSNodeMap.set(result, node); + } + return result; + } + convertProgram() { + return this.converter(this.ast); + } + /** + * For nodes that are copied directly from the TypeScript AST into + * ESTree mostly as-is. The only difference is the addition of a type + * property instead of a kind property. Recursively copies all children. + */ + deeplyCopy(node) { + if (node.kind === ts.SyntaxKind.JSDocFunctionType) { + this.#throwError(node, 'JSDoc types can only be used inside documentation comments.'); + } + const customType = `TS${SyntaxKind[node.kind]}`; + /** + * If the "errorOnUnknownASTType" option is set to true, throw an error, + * otherwise fallback to just including the unknown type as-is. + */ + if (this.options.errorOnUnknownASTType && !ts_estree_1.AST_NODE_TYPES[customType]) { + throw new Error(`Unknown AST_NODE_TYPE: "${customType}"`); + } + const result = this.createNode(node, { + type: customType, + }); + if ('type' in node) { + result.typeAnnotation = + node.type && 'kind' in node.type && ts.isTypeNode(node.type) + ? this.convertTypeAnnotation(node.type, node) + : null; + } + if ('typeArguments' in node) { + result.typeArguments = + node.typeArguments && 'pos' in node.typeArguments + ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) + : null; + } + if ('typeParameters' in node) { + result.typeParameters = + node.typeParameters && 'pos' in node.typeParameters + ? this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters) + : null; + } + const decorators = (0, getModifiers_1.getDecorators)(node); + if (decorators?.length) { + result.decorators = decorators.map(el => this.convertChild(el)); + } + // keys we never want to clone from the base typescript node as they + // introduce garbage into our AST + const KEYS_TO_NOT_COPY = new Set([ + '_children', + 'decorators', + 'end', + 'flags', + 'heritageClauses', + 'illegalDecorators', + 'jsDoc', + 'kind', + 'locals', + 'localSymbol', + 'modifierFlagsCache', + 'modifiers', + 'nextContainer', + 'parent', + 'pos', + 'symbol', + 'transformFlags', + 'type', + 'typeArguments', + 'typeParameters', + ]); + Object.entries(node) + .filter(([key]) => !KEYS_TO_NOT_COPY.has(key)) + .forEach(([key, value]) => { + if (Array.isArray(value)) { + result[key] = value.map(el => this.convertChild(el)); + } + else if (value && typeof value === 'object' && value.kind) { + // need to check node[key].kind to ensure we don't try to convert a symbol + result[key] = this.convertChild(value); + } + else { + result[key] = value; + } + }); + return result; + } + /** + * Fixes the exports of the given ts.Node + * @returns the ESTreeNode with fixed exports + */ + fixExports(node, result) { + const isNamespaceNode = ts.isModuleDeclaration(node) && + Boolean(node.flags & ts.NodeFlags.Namespace); + const modifiers = isNamespaceNode + ? (0, node_utils_1.getNamespaceModifiers)(node) + : (0, getModifiers_1.getModifiers)(node); + if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { + /** + * Make sure that original node is registered instead of export + */ + this.registerTSNodeInNodeMap(node, result); + const exportKeyword = modifiers[0]; + const nextModifier = modifiers[1]; + const declarationIsDefault = nextModifier?.kind === SyntaxKind.DefaultKeyword; + const varToken = declarationIsDefault + ? (0, node_utils_1.findNextToken)(nextModifier, this.ast, this.ast) + : (0, node_utils_1.findNextToken)(exportKeyword, this.ast, this.ast); + result.range[0] = varToken.getStart(this.ast); + result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); + if (declarationIsDefault) { + return this.createNode(node, { + type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + declaration: result, + exportKind: 'value', + }); + } + const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || + result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; + const isDeclare = 'declare' in result && result.declare; + return this.createNode(node, + // @ts-expect-error - TODO, narrow the types here + this.#withDeprecatedAliasGetter({ + type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, + range: [exportKeyword.getStart(this.ast), result.range[1]], + attributes: [], + declaration: result, + exportKind: isType || isDeclare ? 'type' : 'value', + source: null, + specifiers: [], + }, 'assertions', 'attributes', true)); + } + return result; + } + getASTMaps() { + return { + esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap, + }; + } + /** + * Register specific TypeScript node into map with first ESTree node provided + */ + registerTSNodeInNodeMap(node, result) { + if (result && + this.options.shouldPreserveNodeMaps && + !this.tsNodeToESTreeNodeMap.has(node)) { + this.tsNodeToESTreeNodeMap.set(node, result); + } + } +} +exports.Converter = Converter; +//# sourceMappingURL=convert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map new file mode 100644 index 00000000..2bbf5a5e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mapp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E,EAAE;gBACd,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBAClD,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,EAAE;aACf,EACD,YAAY,EACZ,YAAY,EACZ,IAAI,CACL,CACF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,UAAU;QACR,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,uBAAuB,CAC7B,IAAa,EACb,MAA4B;QAE5B,IACE,MAAM;YACN,IAAI,CAAC,OAAO,CAAC,sBAAsB;YACnC,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EACrC,CAAC;YACD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;CACF;AAhhHD,8BAghHC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts new file mode 100644 index 00000000..851c7203 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts @@ -0,0 +1,13 @@ +import type * as ts from 'typescript'; +interface DirectoryStructureHost { + readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface CachedDirectoryStructureHost extends DirectoryStructureHost { + readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; +} +interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { + extraFileExtensions?: readonly ts.FileExtensionInfo[]; + onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; +} +export type { WatchCompilerHostOfConfigFile }; +//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map new file mode 100644 index 00000000..4e776d40 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACtD,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;CACT;AAED,YAAY,EAAE,6BAA6B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js new file mode 100644 index 00000000..dcb07129 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js @@ -0,0 +1,6 @@ +"use strict"; +// These types are internal to TS. +// They have been trimmed down to only include the relevant bits +// We use some special internal TS apis to help us do our parsing flexibly +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map new file mode 100644 index 00000000..757e885c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts new file mode 100644 index 00000000..b39194d9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts @@ -0,0 +1,8 @@ +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; +export { createIsolatedProgram }; +//# sourceMappingURL=createIsolatedProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map new file mode 100644 index 00000000..e1897025 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD;;GAEG;AACH,iBAAS,qBAAqB,CAC5B,aAAa,EAAE,aAAa,GAC3B,qBAAqB,CAoEvB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js new file mode 100644 index 00000000..f1c15c37 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js @@ -0,0 +1,97 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createIsolatedProgram = createIsolatedProgram; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const getScriptKind_1 = require("./getScriptKind"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createIsolatedProgram'); +/** + * @returns Returns a new source file and program corresponding to the linted code + */ +function createIsolatedProgram(parseSettings) { + log('Getting isolated program in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + const compilerHost = { + fileExists() { + return true; + }, + getCanonicalFileName() { + return parseSettings.filePath; + }, + getCurrentDirectory() { + return ''; + }, + getDefaultLibFileName() { + return 'lib.d.ts'; + }, + getDirectories() { + return []; + }, + // TODO: Support Windows CRLF + getNewLine() { + return '\n'; + }, + getSourceFile(filename) { + return ts.createSourceFile(filename, parseSettings.codeFullText, ts.ScriptTarget.Latest, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); + }, + readFile() { + return undefined; + }, + useCaseSensitiveFileNames() { + return true; + }, + writeFile() { + return null; + }, + }; + const program = ts.createProgram([parseSettings.filePath], { + jsDocParsingMode: parseSettings.jsDocParsingMode, + jsx: parseSettings.jsx ? ts.JsxEmit.Preserve : undefined, + noResolve: true, + target: ts.ScriptTarget.Latest, + ...(0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), + }, compilerHost); + const ast = program.getSourceFile(parseSettings.filePath); + if (!ast) { + throw new Error('Expected an ast to be returned for the single-file isolated program.'); + } + return { ast, program }; +} +//# sourceMappingURL=createIsolatedProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map new file mode 100644 index 00000000..97271161 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createIsolatedProgram.js","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFS,sDAAqB;AAtF9B,kDAA0B;AAC1B,+CAAiC;AAKjC,mDAAgD;AAChD,qCAAiE;AAEjE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;GAEG;AACH,SAAS,qBAAqB,CAC5B,aAA4B;IAE5B,GAAG,CACD,6CA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ACb,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts new file mode 100644 index 00000000..3e5f70aa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts @@ -0,0 +1,9 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +export declare function createProjectProgram(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram; +//# sourceMappingURL=createProjectProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map new file mode 100644 index 00000000..d1cbe49a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,qBAAqB,CAcvB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js new file mode 100644 index 00000000..a2d4898f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js @@ -0,0 +1,24 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgram = createProjectProgram; +const debug_1 = __importDefault(require("debug")); +const node_utils_1 = require("../node-utils"); +const createProjectProgramError_1 = require("./createProjectProgramError"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectProgram'); +/** + * @param parseSettings Internal settings for parsing the file + * @returns If found, the source file corresponding to the code and the containing program + */ +function createProjectProgram(parseSettings, programsForProjects) { + log('Creating project program for: %s', parseSettings.filePath); + const astAndProgram = (0, node_utils_1.firstDefined)(programsForProjects, currentProgram => (0, shared_1.getAstFromProgram)(currentProgram, parseSettings.filePath)); + if (!astAndProgram) { + throw new Error((0, createProjectProgramError_1.createProjectProgramError)(parseSettings, programsForProjects).join('\n')); + } + return astAndProgram; +} +//# sourceMappingURL=createProjectProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map new file mode 100644 index 00000000..7364ba15 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgram.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":";;;;;AAiBA,oDAiBC;AAhCD,kDAA0B;AAK1B,8CAA6C;AAC7C,2EAAwE;AACxE,qCAA6C;AAE7C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAE9E;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,aAA4B,EAC5B,mBAA0C;IAE1C,GAAG,CAAC,kCAAkC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhE,MAAM,aAAa,GAAG,IAAA,yBAAY,EAAC,mBAAmB,EAAE,cAAc,CAAC,EAAE,CACvE,IAAA,0BAAiB,EAAC,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,CAC1D,CAAC;IAEF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,IAAA,qDAAyB,EAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACzE,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts new file mode 100644 index 00000000..18dc8c07 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts @@ -0,0 +1,4 @@ +import type * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +export declare function createProjectProgramError(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): string[]; +//# sourceMappingURL=createProjectProgramError.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map new file mode 100644 index 00000000..104141e9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,MAAM,EAAE,CAUV"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js new file mode 100644 index 00000000..7f7a936e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js @@ -0,0 +1,75 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectProgramError = createProjectProgramError; +const node_path_1 = __importDefault(require("node:path")); +const describeFilePath_1 = require("./describeFilePath"); +const shared_1 = require("./shared"); +function createProjectProgramError(parseSettings, programsForProjects) { + const describedFilePath = (0, describeFilePath_1.describeFilePath)(parseSettings.filePath, parseSettings.tsconfigRootDir); + return [ + getErrorStart(describedFilePath, parseSettings), + ...getErrorDetails(describedFilePath, parseSettings, programsForProjects), + ]; +} +function getErrorStart(describedFilePath, parseSettings) { + const relativeProjects = [...parseSettings.projects.values()].map(projectFile => (0, describeFilePath_1.describeFilePath)(projectFile, parseSettings.tsconfigRootDir)); + const describedPrograms = relativeProjects.length === 1 + ? ` ${relativeProjects[0]}` + : `\n${relativeProjects.map(project => `- ${project}`).join('\n')}`; + return `ESLint was configured to run on \`${describedFilePath}\` using \`parserOptions.project\`:${describedPrograms}`; +} +function getErrorDetails(describedFilePath, parseSettings, programsForProjects) { + if (programsForProjects.length === 1 && + programsForProjects[0].getProjectReferences()?.length) { + return [ + `That TSConfig uses project "references" and doesn't include \`${describedFilePath}\` directly, which is not supported by \`parserOptions.project\`.`, + `Either:`, + `- Switch to \`parserOptions.projectService\``, + `- Use an ESLint-specific TSConfig`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#are-typescript-project-references-supported`, + ]; + } + const { extraFileExtensions } = parseSettings; + const details = []; + for (const extraExtension of extraFileExtensions) { + if (!extraExtension.startsWith('.')) { + details.push(`Found unexpected extension \`${extraExtension}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${extraExtension}\`?`); + } + if (shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(extraExtension)) { + details.push(`You unnecessarily included the extension \`${extraExtension}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`); + } + } + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension)) { + const nonStandardExt = `The extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + if (!extraFileExtensions.includes(fileExtension)) { + return [ + ...details, + `${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`, + ]; + } + } + else { + return [ + ...details, + `${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`, + ]; + } + } + const [describedInclusions, describedSpecifiers] = parseSettings.projects.size === 1 + ? ['that TSConfig does not', 'that TSConfig'] + : ['none of those TSConfigs', 'one of those TSConfigs']; + return [ + ...details, + `However, ${describedInclusions} include this file. Either:`, + `- Change ESLint's list of included files to not include this file`, + `- Change ${describedSpecifiers} to include this file`, + `- Create a new TSConfig that includes this file and include it in your parserOptions.project`, + `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`, + ]; +} +//# sourceMappingURL=createProjectProgramError.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map new file mode 100644 index 00000000..4247b454 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectProgramError.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgramError.ts"],"names":[],"mappings":";;;;;AASA,8DAaC;AApBD,0DAA6B;AAI7B,yDAAsD;AACtD,qCAAyD;AAEzD,SAAgB,yBAAyB,CACvC,aAA4B,EAC5B,mBAA0C;IAE1C,MAAM,iBAAiB,GAAG,IAAA,mCAAgB,EACxC,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,eAAe,CAC9B,CAAC;IAEF,OAAO;QACL,aAAa,CAAC,iBAAiB,EAAE,aAAa,CAAC;QAC/C,GAAG,eAAe,CAAC,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CACpB,iBAAyB,EACzB,aAA4B;IAE5B,MAAM,gBAAgB,GAAG,CAAC,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CAAC;IAED,MAAM,aAAa,GAAG,mBAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC3D,IAAI,CAAC,sCAA6B,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QACtD,MAAM,cAAc,GAAG,iCAAiC,aAAa,qBAAqB,CAAC;QAC3F,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;gBACjD,OAAO;oBACL,GAAG,OAAO;oBACV,GAAG,cAAc,8EAA8E;iBAChG,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO;gBACL,GAAG,OAAO;gBACV,GAAG,cAAc,wEAAwE;aAC1F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GAC9C,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;QAC/B,CAAC,CAAC,CAAC,wBAAwB,EAAE,eAAe,CAAC;QAC7C,CAAC,CAAC,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;IAE5D,OAAO;QACL,GAAG,OAAO;QACV,YAAY,mBAAmB,6BAA6B;QAC5D,mEAAmE;QACnE,YAAY,mBAAmB,uBAAuB;QACtD,8FAA8F;QAC9F,0OAA0O;KAC3O,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts new file mode 100644 index 00000000..00abc173 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts @@ -0,0 +1,11 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +import type { ProjectServiceOptions } from '../parser-options'; +export type TypeScriptProjectService = ts.server.ProjectService; +export interface ProjectServiceSettings { + allowDefaultProject: string[] | undefined; + lastReloadTimestamp: number; + maximumDefaultProjectFileMatchCount: number; + service: TypeScriptProjectService; +} +export declare function createProjectService(optionsRaw: boolean | ProjectServiceOptions | undefined, jsDocParsingMode: ts.JSDocParsingMode | undefined, tsconfigRootDir: string | undefined): ProjectServiceSettings; +//# sourceMappingURL=createProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map new file mode 100644 index 00000000..53a46e1c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAI1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA2B/D,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC,EAAE,MAAM,CAAC;IAC5C,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,EACvD,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,SAAS,EACjD,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,sBAAsB,CAoIxB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js new file mode 100644 index 00000000..afa037db --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js @@ -0,0 +1,134 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProjectService = createProjectService; +const debug_1 = __importDefault(require("debug")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const validateDefaultProjectForFilesGlob_1 = require("./validateDefaultProjectForFilesGlob"); +const DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD = 8; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectService'); +const logTsserverErr = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:err'); +const logTsserverInfo = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:info'); +const logTsserverPerf = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:perf'); +const logTsserverEvent = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:event'); +const doNothing = () => { }; +const createStubFileWatcher = () => ({ + close: doNothing, +}); +function createProjectService(optionsRaw, jsDocParsingMode, tsconfigRootDir) { + const optionsRawObject = typeof optionsRaw === 'object' ? optionsRaw : {}; + const options = { + defaultProject: 'tsconfig.json', + ...optionsRawObject, + }; + (0, validateDefaultProjectForFilesGlob_1.validateDefaultProjectForFilesGlob)(options.allowDefaultProject); + // We import this lazily to avoid its cost for users who don't use the service + // TODO: Once we drop support for TS<5.3 we can import from "typescript" directly + // eslint-disable-next-line @typescript-eslint/no-require-imports + const tsserver = require('typescript/lib/tsserverlibrary'); + // TODO: see getWatchProgramsForProjects + // We don't watch the disk, we just refer to these when ESLint calls us + // there's a whole separate update pass in maybeInvalidateProgram at the bottom of getWatchProgramsForProjects + // (this "goes nuclear on TypeScript") + const system = { + ...tsserver.sys, + clearImmediate, + clearTimeout, + setImmediate, + setTimeout, + watchDirectory: createStubFileWatcher, + watchFile: createStubFileWatcher, + // We stop loading any TypeScript plugins by default, to prevent them from attaching disk watchers + // See https://github.com/typescript-eslint/typescript-eslint/issues/9905 + ...(!options.loadTypeScriptPlugins && { + require: () => ({ + error: { + message: 'TypeScript plugins are not required when using parserOptions.projectService.', + }, + module: undefined, + }), + }), + }; + const logger = { + close: doNothing, + endGroup: doNothing, + getLogFileName: () => undefined, + // The debug library doesn't use levels without creating a namespace for each. + // Log levels are not passed to the writer so we wouldn't be able to forward + // to a respective namespace. Supporting would require an additional flag for + // granular control. Defaulting to all levels for now. + hasLevel: () => true, + info(s) { + this.msg(s, tsserver.server.Msg.Info); + }, + loggingEnabled: () => + // if none of the debug namespaces are enabled, then don't enable logging in tsserver + logTsserverInfo.enabled || + logTsserverErr.enabled || + logTsserverPerf.enabled, + msg: (s, type) => { + switch (type) { + case tsserver.server.Msg.Err: + logTsserverErr(s); + break; + case tsserver.server.Msg.Perf: + logTsserverPerf(s); + break; + default: + logTsserverInfo(s); + } + }, + perftrc(s) { + this.msg(s, tsserver.server.Msg.Perf); + }, + startGroup: doNothing, + }; + log('Creating project service with: %o', options); + const service = new tsserver.server.ProjectService({ + cancellationToken: { isCancellationRequested: () => false }, + eventHandler: logTsserverEvent.enabled + ? (e) => { + logTsserverEvent(e); + } + : undefined, + host: system, + jsDocParsingMode, + logger, + session: undefined, + useInferredProjectPerProjectRoot: false, + useSingleInferredProject: false, + }); + service.setHostConfiguration({ + preferences: { + includePackageJsonAutoImports: 'off', + }, + }); + log('Enabling default project: %s', options.defaultProject); + let configFile; + try { + configFile = (0, getParsedConfigFile_1.getParsedConfigFile)(tsserver, options.defaultProject, tsconfigRootDir); + } + catch (error) { + if (optionsRawObject.defaultProject) { + throw new Error(`Could not read project service default project '${options.defaultProject}': ${error.message}`); + } + } + if (configFile) { + service.setCompilerOptionsForInferredProjects( + // NOTE: The inferred projects API is not intended for source files when a tsconfig + // exists. There is no API that generates an InferredProjectCompilerOptions suggesting + // it is meant for hard coded options passed in. Hard asserting as a work around. + // See https://github.com/microsoft/TypeScript/blob/27bcd4cb5a98bce46c9cdd749752703ead021a4b/src/server/protocol.ts#L1904 + configFile.options); + } + return { + allowDefaultProject: options.allowDefaultProject, + lastReloadTimestamp: performance.now(), + maximumDefaultProjectFileMatchCount: options.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING ?? + DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD, + service, + }; +} +//# sourceMappingURL=createProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map new file mode 100644 index 00000000..43d81c28 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createProjectService.js","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":";;;;;AAyCA,oDAwIC;AA9KD,kDAA0B;AAI1B,+DAA4D;AAC5D,6FAA0F;AAE1F,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAElD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAC9E,MAAM,cAAc,GAAG,IAAA,eAAK,EAC1B,kDAAkD,CACnD,CAAC;AACF,MAAM,eAAe,GAAG,IAAA,eAAK,EAC3B,mDAAmD,CACpD,CAAC;AACF,MAAM,eAAe,GAAG,IAAA,eAAK,EAC3B,mDAAmD,CACpD,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAA,eAAK,EAC5B,oDAAoD,CACrD,CAAC;AAEF,MAAM,SAAS,GAAG,GAAS,EAAE,G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H,OAAO,CAAC,oBAAoB,CAAC;QAC3B,WAAW,EAAE;YACX,6BAA6B,EAAE,KAAK;SACrC;KACF,CAAC,CAAC;IAEH,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D,IAAI,UAA4C,CAAC;IAEjD,IAAI,CAAC;QACH,UAAU,GAAG,IAAA,yCAAmB,EAC9B,QAAQ,EACR,OAAO,CAAC,cAAc,EACtB,eAAe,CAChB,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,gBAAgB,CAAC,cAAc,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,mDAAmD,OAAO,CAAC,cAAc,MAAO,KAAe,CAAC,OAAO,EAAE,CAC1G,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,qCAAqC;QAC3C,mFAAmF;QACnF,uFAAuF;QACvF,iFAAiF;QACjF,yHAAyH;QACzH,UAAU,CAAC,OAA4D,CACxE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;QAChD,mBAAmB,EAAE,WAAW,CAAC,GAAG,EAAE;QACtC,mCAAmC,EACjC,OAAO,CAAC,+DAA+D;YACvE,uCAAuC;QACzC,OAAO;KACR,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts new file mode 100644 index 00000000..8de2229c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndNoProgram } from './shared'; +declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; +declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; +export { createNoProgram, createSourceFile }; +//# sourceMappingURL=createSourceFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map new file mode 100644 index 00000000..e3e7f744 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.d.ts","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,iBAAS,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,UAAU,CAoBrE;AAED,iBAAS,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAKtE;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js new file mode 100644 index 00000000..118c3d58 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js @@ -0,0 +1,63 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createNoProgram = createNoProgram; +exports.createSourceFile = createSourceFile; +const debug_1 = __importDefault(require("debug")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const getScriptKind_1 = require("./getScriptKind"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createSourceFile'); +function createSourceFile(parseSettings) { + log('Getting AST without type information in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); + return (0, source_files_1.isSourceFile)(parseSettings.code) + ? parseSettings.code + : ts.createSourceFile(parseSettings.filePath, parseSettings.codeFullText, { + jsDocParsingMode: parseSettings.jsDocParsingMode, + languageVersion: ts.ScriptTarget.Latest, + setExternalModuleIndicator: parseSettings.setExternalModuleIndicator, + }, + /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); +} +function createNoProgram(parseSettings) { + return { + ast: createSourceFile(parseSettings), + program: null, + }; +} +//# sourceMappingURL=createSourceFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map new file mode 100644 index 00000000..2c21e873 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createSourceFile.js","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCS,0CAAe;AAAE,4CAAgB;AAxC1C,kDAA0B;AAC1B,+CAAiC;AAKjC,kDAA+C;AAC/C,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,sDAAsD,CAAC,CAAC;AAE1E,SAAS,gBAAgB,CAAC,aAA4B;IACpD,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,OAAO,IAAA,2BAAY,EAAC,aAAa,CAAC,IAAI,CAAC;QACrC,CAAC,CAAC,aAAa,CAAC,IAAI;QACpB,CAAC,CAAC,EAAE,CAAC,gBAAgB,CACjB,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,YAAY,EAC1B;YACE,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;YAChD,eAAe,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;YACvC,0BAA0B,EAAE,aAAa,CAAC,0BAA0B;SACrE;QACD,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;AACR,CAAC;AAED,SAAS,eAAe,CAAC,aAA4B;IACnD,OAAO;QACL,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts new file mode 100644 index 00000000..d46f86aa --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts @@ -0,0 +1,2 @@ +export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; +//# sourceMappingURL=describeFilePath.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map new file mode 100644 index 00000000..6d049bed --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.d.ts","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAyBR"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js new file mode 100644 index 00000000..b474fc03 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js @@ -0,0 +1,31 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.describeFilePath = describeFilePath; +const node_path_1 = __importDefault(require("node:path")); +function describeFilePath(filePath, tsconfigRootDir) { + // If the TSConfig root dir is a parent of the filePath, use + // `` as a prefix for the path. + const relative = node_path_1.default.relative(tsconfigRootDir, filePath); + if (relative && !relative.startsWith('..') && !node_path_1.default.isAbsolute(relative)) { + return `/${relative}`; + } + // Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't + // relative to the TSConfig root dir should be fully described. + // This avoids strings like /../../../../repo/file.ts. + // https://github.com/typescript-eslint/typescript-eslint/issues/6289 + if (/^[(\w+:)\\/~]/.test(filePath)) { + return filePath; + } + // Similarly, if the relative path would contain a lot of ../.., then + // ignore it and print the file path directly. + if (/\.\.[/\\]\.\./.test(relative)) { + return filePath; + } + // Lastly, since we've eliminated all special cases, we know the cleanest + // path to print is probably the prefixed relative one. + return `/${relative}`; +} +//# sourceMappingURL=describeFilePath.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map new file mode 100644 index 00000000..50b9e8ab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map @@ -0,0 +1 @@ +{"version":3,"file":"describeFilePath.js","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":";;;;;AAEA,4CA4BC;AA9BD,0DAA6B;AAE7B,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,eAAuB;IAEvB,4DAA4D;IAC5D,gDAAgD;IAChD,MAAM,QAAQ,GAAG,mBAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzE,OAAO,qBAAqB,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IACvE,+DAA+D;IAC/D,uEAAuE;IACvE,qEAAqE;IACrE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qEAAqE;IACrE,8CAA8C;IAC9C,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,yEAAyE;IACzE,uDAAuD;IACvD,OAAO,qBAAqB,QAAQ,EAAE,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts new file mode 100644 index 00000000..ffccd560 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts @@ -0,0 +1,10 @@ +import type * as ts from 'typescript/lib/tsserverlibrary'; +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; +export { getParsedConfigFile }; +//# sourceMappingURL=getParsedConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map new file mode 100644 index 00000000..17d807b7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAO1D;;;;;GAKG;AACH,iBAAS,mBAAmB,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,iBAAiB,CA6CtB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js new file mode 100644 index 00000000..5eae3d38 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParsedConfigFile = getParsedConfigFile; +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const shared_1 = require("./shared"); +/** + * Utility offered by parser to help consumers parse a config file. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function getParsedConfigFile(tsserver, configFile, projectDirectory) { + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (tsserver.sys === undefined) { + throw new Error('`getParsedConfigFile` is only supported in a Node-like environment.'); + } + const parsed = tsserver.getParsedCommandLineOfConfigFile(configFile, shared_1.CORE_COMPILER_OPTIONS, { + fileExists: fs.existsSync, + getCurrentDirectory, + onUnRecoverableConfigFileDiagnostic: diag => { + throw new Error(formatDiagnostics([diag])); // ensures that `parsed` is defined. + }, + readDirectory: tsserver.sys.readDirectory, + readFile: file => fs.readFileSync(path.isAbsolute(file) ? file : path.join(getCurrentDirectory(), file), 'utf-8'), + useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames, + }); + if (parsed?.errors.length) { + throw new Error(formatDiagnostics(parsed.errors)); + } + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return parsed; + function getCurrentDirectory() { + return projectDirectory ? path.resolve(projectDirectory) : process.cwd(); + } + function formatDiagnostics(diagnostics) { + return tsserver.formatDiagnostics(diagnostics, { + getCanonicalFileName: f => f, + getCurrentDirectory, + getNewLine: () => '\n', + }); + } +} +//# sourceMappingURL=getParsedConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map new file mode 100644 index 00000000..5647cbf6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParsedConfigFile.js","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgES,kDAAmB;AA9D5B,4CAA8B;AAC9B,gDAAkC;AAElC,qCAAiD;AAEjD;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,QAAmB,EACnB,UAAkB,EAClB,gBAAyB;IAEzB,uEAAuE;IACvE,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,gCAAgC,CACtD,UAAU,EACV,8BAAqB,EACrB;QACE,UAAU,EAAE,EAAE,CAAC,UAAU;QACzB,mBAAmB;QACnB,mCAAmC,EAAE,IAAI,CAAC,EAAE;YAC1C,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,oCAAoC;QAClF,CAAC;QACD,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,aAAa;QACzC,QAAQ,EAAE,IAAI,CAAC,EAAE,CACf,EAAE,CAAC,YAAY,CACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,CAAC,EACrE,OAAO,CACR;QACH,yBAAyB,EAAE,QAAQ,CAAC,GAAG,CAAC,yBAAyB;KAClE,CACF,CAAC;IAEF,IAAI,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,oEAAoE;IACpE,OAAO,MAAO,CAAC;IAEf,SAAS,mBAAmB;QAC1B,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC3E,CAAC;IAED,SAAS,iBAAiB,CAAC,WAA4B;QACrD,OAAO,QAAQ,CAAC,iBAAiB,CAAC,WAAW,EAAE;YAC7C,oBAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YAC5B,mBAAmB;YACnB,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts new file mode 100644 index 00000000..e532e6a5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts @@ -0,0 +1,5 @@ +import * as ts from 'typescript'; +declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; +declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; +export { getLanguageVariant, getScriptKind }; +//# sourceMappingURL=getScriptKind.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map new file mode 100644 index 00000000..4b80634b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.d.ts","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,EAAE,CAAC,UAAU,CA8BpE;AAED,iBAAS,kBAAkB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAYzE;AAED,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js new file mode 100644 index 00000000..7b2c6883 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js @@ -0,0 +1,81 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLanguageVariant = getLanguageVariant; +exports.getScriptKind = getScriptKind; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +function getScriptKind(filePath, jsx) { + const extension = node_path_1.default.extname(filePath).toLowerCase(); + // note - we only respect the user's jsx setting for unknown extensions + // this is so that we always match TS's internal script kind logic, preventing + // weird errors due to a mismatch. + // https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 + switch (extension) { + case ts.Extension.Cjs: + case ts.Extension.Js: + case ts.Extension.Mjs: + return ts.ScriptKind.JS; + case ts.Extension.Cts: + case ts.Extension.Mts: + case ts.Extension.Ts: + return ts.ScriptKind.TS; + case ts.Extension.Json: + return ts.ScriptKind.JSON; + case ts.Extension.Jsx: + return ts.ScriptKind.JSX; + case ts.Extension.Tsx: + return ts.ScriptKind.TSX; + default: + // unknown extension, force typescript to ignore the file extension, and respect the user's setting + return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; + } +} +function getLanguageVariant(scriptKind) { + // https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 + switch (scriptKind) { + case ts.ScriptKind.JS: + case ts.ScriptKind.JSON: + case ts.ScriptKind.JSX: + case ts.ScriptKind.TSX: + return ts.LanguageVariant.JSX; + default: + return ts.LanguageVariant.Standard; + } +} +//# sourceMappingURL=getScriptKind.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map new file mode 100644 index 00000000..3caf147a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getScriptKind.js","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDS,gDAAkB;AAAE,sCAAa;AAjD1C,0DAA6B;AAC7B,+CAAiC;AAEjC,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAY;IACnD,MAAM,SAAS,GAAG,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAkB,CAAC;IACvE,uEAAuE;IACvE,8EAA8E;IAC9E,kCAAkC;IAClC,8HAA8H;IAC9H,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE;YAClB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,IAAI;YACpB,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAE5B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B;YACE,mGAAmG;YACnG,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACtD,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,UAAyB;IACnD,8HAA8H;IAC9H,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QACtB,KAAK,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QACxB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG;YACpB,OAAO,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC;QAEhC;YACE,OAAO,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC;IACvC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts new file mode 100644 index 00000000..621d9bd6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts @@ -0,0 +1,15 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +declare function clearWatchCaches(): void; +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; +export { clearWatchCaches, getWatchProgramsForProjects }; +//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map new file mode 100644 index 00000000..4e5b64de --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AA4DD;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CA8Gd;AA6PD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js new file mode 100644 index 00000000..4db2836f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js @@ -0,0 +1,381 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearWatchCaches = clearWatchCaches; +exports.getWatchProgramsForProjects = getWatchProgramsForProjects; +const debug_1 = __importDefault(require("debug")); +const node_fs_1 = __importDefault(require("node:fs")); +const ts = __importStar(require("typescript")); +const source_files_1 = require("../source-files"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createWatchProgram'); +/** + * Maps tsconfig paths to their corresponding file contents and resulting watches + */ +const knownWatchProgramMap = new Map(); +/** + * Maps file/folder paths to their set of corresponding watch callbacks + * There may be more than one per file/folder if a file/folder is shared between projects + */ +const fileWatchCallbackTrackingMap = new Map(); +const folderWatchCallbackTrackingMap = new Map(); +/** + * Stores the list of known files for each program + */ +const programFileListCache = new Map(); +/** + * Caches the last modified time of the tsconfig files + */ +const tsconfigLastModifiedTimestampCache = new Map(); +const parsedFilesSeenHash = new Map(); +/** + * Clear all of the parser caches. + * This should only be used in testing to ensure the parser is clean between tests. + */ +function clearWatchCaches() { + knownWatchProgramMap.clear(); + fileWatchCallbackTrackingMap.clear(); + folderWatchCallbackTrackingMap.clear(); + parsedFilesSeenHash.clear(); + programFileListCache.clear(); + tsconfigLastModifiedTimestampCache.clear(); +} +function saveWatchCallback(trackingMap) { + return (fileName, callback) => { + const normalizedFileName = (0, shared_1.getCanonicalFileName)(fileName); + const watchers = (() => { + let watchers = trackingMap.get(normalizedFileName); + if (!watchers) { + watchers = new Set(); + trackingMap.set(normalizedFileName, watchers); + } + return watchers; + })(); + watchers.add(callback); + return { + close: () => { + watchers.delete(callback); + }, + }; + }; +} +/** + * Holds information about the file currently being linted + */ +const currentLintOperationState = { + code: '', + filePath: '', +}; +/** + * Appropriately report issues found when reading a config file + * @param diagnostic The diagnostic raised when creating a program + */ +function diagnosticReporter(diagnostic) { + throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine)); +} +function updateCachedFileList(tsconfigPath, program) { + const fileList = new Set(program.getRootFileNames().map(f => (0, shared_1.getCanonicalFileName)(f))); + programFileListCache.set(tsconfigPath, fileList); + return fileList; +} +/** + * Calculate project environments using options provided by consumer and paths from config + * @param parseSettings Internal settings for parsing the file + * @returns The programs corresponding to the supplied tsconfig paths + */ +function getWatchProgramsForProjects(parseSettings) { + const filePath = (0, shared_1.getCanonicalFileName)(parseSettings.filePath); + const results = []; + // preserve reference to code and file being linted + currentLintOperationState.code = parseSettings.code; + currentLintOperationState.filePath = filePath; + // Update file version if necessary + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get(filePath); + const codeHash = (0, shared_1.createHash)((0, source_files_1.getCodeText)(parseSettings.code)); + if (parsedFilesSeenHash.get(filePath) !== codeHash && + fileWatchCallbacks && + fileWatchCallbacks.size > 0) { + fileWatchCallbacks.forEach(cb => cb(filePath, ts.FileWatcherEventKind.Changed)); + } + const currentProjectsFromSettings = new Map(parseSettings.projects); + /* + * before we go into the process of attempting to find and update every program + * see if we know of a program that contains this file + */ + for (const [tsconfigPath, existingWatch] of knownWatchProgramMap.entries()) { + if (!currentProjectsFromSettings.has(tsconfigPath)) { + // the current parser run doesn't specify this tsconfig in parserOptions.project + // so we don't want to consider it for caching purposes. + // + // if we did consider it we might return a program for a project + // that wasn't specified in the current parser run (which is obv bad!). + continue; + } + let fileList = programFileListCache.get(tsconfigPath); + let updatedProgram = null; + if (!fileList) { + updatedProgram = existingWatch.getProgram().getProgram(); + fileList = updateCachedFileList(tsconfigPath, updatedProgram); + } + if (fileList.has(filePath)) { + log('Found existing program for file. %s', filePath); + updatedProgram ??= existingWatch.getProgram().getProgram(); + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + return [updatedProgram]; + } + } + log('File did not belong to any existing programs, moving to create/update. %s', filePath); + /* + * We don't know of a program that contains the file, this means that either: + * - the required program hasn't been created yet, or + * - the file is new/renamed, and the program hasn't been updated. + */ + for (const tsconfigPath of parseSettings.projects) { + const existingWatch = knownWatchProgramMap.get(tsconfigPath[0]); + if (existingWatch) { + const updatedProgram = maybeInvalidateProgram(existingWatch, filePath, tsconfigPath[0]); + if (!updatedProgram) { + continue; + } + // sets parent pointers in source files + updatedProgram.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], updatedProgram); + if (fileList.has(filePath)) { + log('Found updated program for file. %s', filePath); + // we can return early because we know this program contains the file + return [updatedProgram]; + } + results.push(updatedProgram); + continue; + } + const programWatch = createWatchProgram(tsconfigPath[1], parseSettings); + knownWatchProgramMap.set(tsconfigPath[0], programWatch); + const program = programWatch.getProgram().getProgram(); + // sets parent pointers in source files + program.getTypeChecker(); + // cache and check the file list + const fileList = updateCachedFileList(tsconfigPath[0], program); + if (fileList.has(filePath)) { + log('Found program for file. %s', filePath); + // we can return early because we know this program contains the file + return [program]; + } + results.push(program); + } + return results; +} +function createWatchProgram(tsconfigPath, parseSettings) { + log('Creating watch program for %s.', tsconfigPath); + // create compiler host + const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter, + // TODO: file issue on TypeScript to suggest making optional? + // eslint-disable-next-line @typescript-eslint/no-empty-function + /*reportWatchStatus*/ () => { }); + watchCompilerHost.jsDocParsingMode = parseSettings.jsDocParsingMode; + // ensure readFile reads the code being linted instead of the copy on disk + const oldReadFile = watchCompilerHost.readFile; + watchCompilerHost.readFile = (filePathIn, encoding) => { + const filePath = (0, shared_1.getCanonicalFileName)(filePathIn); + const fileContent = filePath === currentLintOperationState.filePath + ? (0, source_files_1.getCodeText)(currentLintOperationState.code) + : oldReadFile(filePath, encoding); + if (fileContent !== undefined) { + parsedFilesSeenHash.set(filePath, (0, shared_1.createHash)(fileContent)); + } + return fileContent; + }; + // ensure process reports error on failure instead of exiting process immediately + watchCompilerHost.onUnRecoverableConfigFileDiagnostic = diagnosticReporter; + // ensure process doesn't emit programs + watchCompilerHost.afterProgramCreate = (program) => { + // report error if there are any errors in the config file + const configFileDiagnostics = program + .getConfigFileParsingDiagnostics() + .filter(diag => diag.category === ts.DiagnosticCategory.Error && diag.code !== 18003); + if (configFileDiagnostics.length > 0) { + diagnosticReporter(configFileDiagnostics[0]); + } + }; + /* + * From the CLI, the file watchers won't matter, as the files will be parsed once and then forgotten. + * When running from an IDE, these watchers will let us tell typescript about changes. + * + * ESLint IDE plugins will send us unfinished file content as the user types (before it's saved to disk). + * We use the file watchers to tell typescript about this latest file content. + * + * When files are created (or renamed), we won't know about them because we have no filesystem watchers attached. + * We use the folder watchers to tell typescript it needs to go and find new files in the project folders. + */ + watchCompilerHost.watchFile = saveWatchCallback(fileWatchCallbackTrackingMap); + watchCompilerHost.watchDirectory = saveWatchCallback(folderWatchCallbackTrackingMap); + // allow files with custom extensions to be included in program (uses internal ts api) + const oldOnDirectoryStructureHostCreate = watchCompilerHost.onCachedDirectoryStructureHostCreate; + watchCompilerHost.onCachedDirectoryStructureHostCreate = (host) => { + const oldReadDirectory = host.readDirectory; + host.readDirectory = (path, extensions, exclude, include, depth) => oldReadDirectory(path, !extensions + ? undefined + : [...extensions, ...parseSettings.extraFileExtensions], exclude, include, depth); + oldOnDirectoryStructureHostCreate(host); + }; + // This works only on 3.9 + watchCompilerHost.extraFileExtensions = parseSettings.extraFileExtensions.map(extension => ({ + extension, + isMixedContent: true, + scriptKind: ts.ScriptKind.Deferred, + })); + watchCompilerHost.trace = log; + // Since we don't want to asynchronously update program we want to disable timeout methods + // So any changes in the program will be delayed and updated when getProgram is called on watch + watchCompilerHost.setTimeout = undefined; + watchCompilerHost.clearTimeout = undefined; + return ts.createWatchProgram(watchCompilerHost); +} +function hasTSConfigChanged(tsconfigPath) { + const stat = node_fs_1.default.statSync(tsconfigPath); + const lastModifiedAt = stat.mtimeMs; + const cachedLastModifiedAt = tsconfigLastModifiedTimestampCache.get(tsconfigPath); + tsconfigLastModifiedTimestampCache.set(tsconfigPath, lastModifiedAt); + if (cachedLastModifiedAt === undefined) { + return false; + } + return Math.abs(cachedLastModifiedAt - lastModifiedAt) > Number.EPSILON; +} +function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) { + /* + * By calling watchProgram.getProgram(), it will trigger a resync of the program based on + * whatever new file content we've given it from our input. + */ + let updatedProgram = existingWatch.getProgram().getProgram(); + // In case this change causes problems in larger real world codebases + // Provide an escape hatch so people don't _have_ to revert to an older version + if (process.env.TSESTREE_NO_INVALIDATION === 'true') { + return updatedProgram; + } + if (hasTSConfigChanged(tsconfigPath)) { + /* + * If the stat of the tsconfig has changed, that could mean the include/exclude/files lists has changed + * We need to make sure typescript knows this so it can update appropriately + */ + log('tsconfig has changed - triggering program update. %s', tsconfigPath); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + fileWatchCallbackTrackingMap + .get(tsconfigPath) + .forEach(cb => cb(tsconfigPath, ts.FileWatcherEventKind.Changed)); + // tsconfig change means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + } + let sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * Missing source file means our program's folder structure might be out of date. + * So we need to tell typescript it needs to update the correct folder. + */ + log('File was not found in program - triggering folder update. %s', filePath); + // Find the correct directory callback by climbing the folder tree + const currentDir = (0, shared_1.canonicalDirname)(filePath); + let current = null; + let next = currentDir; + let hasCallback = false; + while (current !== next) { + current = next; + const folderWatchCallbacks = folderWatchCallbackTrackingMap.get(current); + if (folderWatchCallbacks) { + for (const cb of folderWatchCallbacks) { + if (currentDir !== current) { + cb(currentDir, ts.FileWatcherEventKind.Changed); + } + cb(current, ts.FileWatcherEventKind.Changed); + } + hasCallback = true; + } + next = (0, shared_1.canonicalDirname)(current); + } + if (!hasCallback) { + /* + * No callback means the paths don't matchup - so no point returning any program + * this will signal to the caller to skip this program + */ + log('No callback found for file, not part of this program. %s', filePath); + return null; + } + // directory update means that the file list more than likely changed, so clear the cache + programFileListCache.delete(tsconfigPath); + // force the immediate resync + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + /* + * At this point we're in one of two states: + * - The file isn't supposed to be in this program due to exclusions + * - The file is new, and was renamed from an old, included filename + * + * For the latter case, we need to tell typescript that the old filename is now deleted + */ + log('File was still not found in program after directory update - checking file deletions. %s', filePath); + const rootFilenames = updatedProgram.getRootFileNames(); + // use find because we only need to "delete" one file to cause typescript to do a full resync + const deletedFile = rootFilenames.find(file => !node_fs_1.default.existsSync(file)); + if (!deletedFile) { + // There are no deleted files, so it must be the former case of the file not belonging to this program + return null; + } + const fileWatchCallbacks = fileWatchCallbackTrackingMap.get((0, shared_1.getCanonicalFileName)(deletedFile)); + if (!fileWatchCallbacks) { + // shouldn't happen, but just in case + log('Could not find watch callbacks for root file. %s', deletedFile); + return updatedProgram; + } + log('Marking file as deleted. %s', deletedFile); + fileWatchCallbacks.forEach(cb => cb(deletedFile, ts.FileWatcherEventKind.Deleted)); + // deleted files means that the file list _has_ changed, so clear the cache + programFileListCache.delete(tsconfigPath); + updatedProgram = existingWatch.getProgram().getProgram(); + sourceFile = updatedProgram.getSourceFile(filePath); + if (sourceFile) { + return updatedProgram; + } + log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath); + return null; +} +//# sourceMappingURL=getWatchProgramsForProjects.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map new file mode 100644 index 00000000..dbbcae18 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4eS,4CAAgB;AAAE,kEAA2B;AA5etD,kDAA0B;AAC1B,sDAAyB;AACzB,+CAAiC;AAMjC,kDAA8C;AAC9C,qCAKkB;AAElB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAGjC,CAAC;AAEJ;;;GAGG;AACH,MAAM,4BAA4B,GAAG,IAAI,GAAG,EAGzC,CAAC;AACJ,MAAM,8BAA8B,GAAG,IAAI,GAAG,EAG3C,CAAC;AAEJ;;GAEG;AACH,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,kCAAkC,GAAG,IAAI,GAAG,EAAyB,CAAC;AAE5E,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAyB,CAAC;AAE7D;;;GAGG;AACH,SAAS,gBAAgB;IACvB,oBAAoB,CAAC,KAAK,EAAE,CAAC;IAC7B,4BAA4B,CAAC,KAAK,EAAE,CAAC;IACrC,8BA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IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,sGAAsG;QACtG,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,kBAAkB,GAAG,4BAA4B,CAAC,GAAG,CACzD,IAAA,6BAAoB,EAAC,WAAW,CAAC,CAClC,CAAC;IACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,qCAAqC;QACrC,GAAG,CAAC,kDAAkD,EAAE,WAAW,CAAC,CAAC;QACrE,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,GAAG,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;IAChD,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAC9B,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC,CACjD,CAAC;IAEF,2EAA2E;IAC3E,oBAAoB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAE1C,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC;IACzD,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts new file mode 100644 index 00000000..7ec5bda2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts @@ -0,0 +1,33 @@ +import type { Program } from 'typescript'; +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +interface ASTAndNoProgram { + ast: ts.SourceFile; + program: null; +} +interface ASTAndDefiniteProgram { + ast: ts.SourceFile; + program: ts.Program; +} +type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; +/** + * Compiler options required to avoid critical functionality issues + */ +declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; +declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set; +declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; +type CanonicalPath = { + __brand: unknown; +} & string; +declare function getCanonicalFileName(filePath: string): CanonicalPath; +declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; +declare function canonicalDirname(p: CanonicalPath): CanonicalPath; +declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +declare function createHash(content: string): string; +export { type ASTAndDefiniteProgram, type ASTAndNoProgram, type ASTAndProgram, canonicalDirname, type CanonicalPath, CORE_COMPILER_OPTIONS, createDefaultCompilerOptionsFromExtra, createHash, DEFAULT_EXTRA_FILE_EXTENSIONS, ensureAbsolutePath, getAstFromProgram, getCanonicalFileName, }; +//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map new file mode 100644 index 00000000..d79943b5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,KAAK,EAAE,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/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js new file mode 100644 index 00000000..974dd155 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js @@ -0,0 +1,145 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = exports.CORE_COMPILER_OPTIONS = void 0; +exports.canonicalDirname = canonicalDirname; +exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; +exports.createHash = createHash; +exports.ensureAbsolutePath = ensureAbsolutePath; +exports.getAstFromProgram = getAstFromProgram; +exports.getCanonicalFileName = getCanonicalFileName; +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +/** + * Compiler options required to avoid critical functionality issues + */ +const CORE_COMPILER_OPTIONS = { + noEmit: true, // required to avoid parse from causing emit to occur + /** + * Flags required to make no-unused-vars work + */ + noUnusedLocals: true, + noUnusedParameters: true, +}; +exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; +/** + * Default compiler options for program generation + */ +const DEFAULT_COMPILER_OPTIONS = { + ...CORE_COMPILER_OPTIONS, + allowJs: true, + allowNonTsExtensions: true, + checkJs: true, +}; +const DEFAULT_EXTRA_FILE_EXTENSIONS = new Set([ + ts.Extension.Cjs, + ts.Extension.Cts, + ts.Extension.Js, + ts.Extension.Jsx, + ts.Extension.Mjs, + ts.Extension.Mts, + ts.Extension.Ts, + ts.Extension.Tsx, +]); +exports.DEFAULT_EXTRA_FILE_EXTENSIONS = DEFAULT_EXTRA_FILE_EXTENSIONS; +function createDefaultCompilerOptionsFromExtra(parseSettings) { + if (parseSettings.debugLevel.has('typescript')) { + return { + ...DEFAULT_COMPILER_OPTIONS, + extendedDiagnostics: true, + }; + } + return DEFAULT_COMPILER_OPTIONS; +} +// typescript doesn't provide a ts.sys implementation for browser environments +const useCaseSensitiveFileNames = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +ts.sys !== undefined ? ts.sys.useCaseSensitiveFileNames : true; +const correctPathCasing = useCaseSensitiveFileNames + ? (filePath) => filePath + : (filePath) => filePath.toLowerCase(); +function getCanonicalFileName(filePath) { + let normalized = node_path_1.default.normalize(filePath); + if (normalized.endsWith(node_path_1.default.sep)) { + normalized = normalized.slice(0, -1); + } + return correctPathCasing(normalized); +} +function ensureAbsolutePath(p, tsconfigRootDir) { + return node_path_1.default.isAbsolute(p) + ? p + : node_path_1.default.join(tsconfigRootDir || process.cwd(), p); +} +function canonicalDirname(p) { + return node_path_1.default.dirname(p); +} +const DEFINITION_EXTENSIONS = [ + ts.Extension.Dts, + ts.Extension.Dcts, + ts.Extension.Dmts, +]; +function getExtension(fileName) { + if (!fileName) { + return null; + } + return (DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt)) ?? node_path_1.default.extname(fileName)); +} +function getAstFromProgram(currentProgram, filePath) { + const ast = currentProgram.getSourceFile(filePath); + // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573 + const expectedExt = getExtension(filePath); + const returnedExt = getExtension(ast?.fileName); + if (expectedExt !== returnedExt) { + return undefined; + } + return ast && { ast, program: currentProgram }; +} +/** + * Hash content for compare content. + * @param content hashed contend + * @returns hashed result + */ +function createHash(content) { + // No ts.sys in browser environments. + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (ts.sys?.createHash) { + return ts.sys.createHash(content); + } + return content; +} +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map new file mode 100644 index 00000000..038d3a36 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgJE,4CAAgB;AAGhB,sFAAqC;AACrC,gCAAU;AAEV,gDAAkB;AAClB,8CAAiB;AACjB,oDAAoB;AAtJtB,0DAA6B;AAC7B,+CAAiC;AAcjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI,EAAE,qDAAqD;IAEnE;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAsHA,sDAAqB;AApHvB;;GAEG;AACH,MAAM,wBAAwB,GAAuB;IAC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IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAe;IACjC,qCAAqC;IACrC,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts new file mode 100644 index 00000000..273ca7f5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts @@ -0,0 +1,13 @@ +import * as ts from 'typescript'; +import type { ParseSettings } from '../parseSettings'; +import type { ASTAndDefiniteProgram } from './shared'; +declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; +export { createProgramFromConfigFile, useProvidedPrograms }; +//# sourceMappingURL=useProvidedPrograms.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map new file mode 100644 index 00000000..bd56bf83 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOtD,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,GAAG,SAAS,CAoCnC;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CAIZ;AAED,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js new file mode 100644 index 00000000..2220ad8e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createProgramFromConfigFile = createProgramFromConfigFile; +exports.useProvidedPrograms = useProvidedPrograms; +const debug_1 = __importDefault(require("debug")); +const path = __importStar(require("node:path")); +const ts = __importStar(require("typescript")); +const getParsedConfigFile_1 = require("./getParsedConfigFile"); +const shared_1 = require("./shared"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram'); +function useProvidedPrograms(programInstances, parseSettings) { + log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath); + let astAndProgram; + for (const programInstance of programInstances) { + astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings.filePath); + // Stop at the first applicable program instance + if (astAndProgram) { + break; + } + } + if (astAndProgram) { + astAndProgram.program.getTypeChecker(); // ensure parent pointers are set in source files + return astAndProgram; + } + const relativeFilePath = path.relative(parseSettings.tsconfigRootDir, parseSettings.filePath); + const [typeSource, typeSources] = parseSettings.projects.size > 0 + ? ['project', 'project(s)'] + : ['programs', 'program instance(s)']; + const errorLines = [ + `"parserOptions.${typeSource}" has been provided for @typescript-eslint/parser.`, + `The file was not found in any of the provided ${typeSources}: ${relativeFilePath}`, + ]; + throw new Error(errorLines.join('\n')); +} +/** + * Utility offered by parser to help consumers construct their own program instance. + * + * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` + * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` + */ +function createProgramFromConfigFile(configFile, projectDirectory) { + const parsed = (0, getParsedConfigFile_1.getParsedConfigFile)(ts, configFile, projectDirectory); + const host = ts.createCompilerHost(parsed.options, true); + return ts.createProgram(parsed.fileNames, parsed.options, host); +} +//# sourceMappingURL=useProvidedPrograms.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map new file mode 100644 index 00000000..f2b1c1e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoES,kEAA2B;AAAE,kDAAmB;AApEzD,kDAA0B;AAC1B,gDAAkC;AAClC,+CAAiC;AAKjC,+DAA4D;AAC5D,qCAA6C;AAE7C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E,SAAS,mBAAmB,CAC1B,gBAAsC,EACtC,aAA4B;IAE5B,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,IAAI,aAAgD,CAAC;IACrD,KAAK,MAAM,eAAe,IAAI,gBAAgB,EAAE,CAAC;QAC/C,aAAa,GAAG,IAAA,0BAAiB,EAAC,eAAe,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC3E,gDAAgD;QAChD,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM;QACR,CAAC;IACH,CAAC;IAED,IAAI,aAAa,EAAE,CAAC;QAClB,aAAa,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,iDAAiD;QACzF,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CACpC,aAAa,CAAC,eAAe,EAC7B,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAC7B,aAAa,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC;QAC7B,CAAC,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC;QAC3B,CAAC,CAAC,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC;IAE1C,MAAM,UAAU,GAAG;QACjB,kBAAkB,UAAU,oDAAoD;QAChF,iDAAiD,WAAW,KAAK,gBAAgB,EAAE;KACpF,CAAC;IAEF,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,SAAS,2BAA2B,CAClC,UAAkB,EAClB,gBAAyB;IAEzB,MAAM,MAAM,GAAG,IAAA,yCAAmB,EAAC,EAAE,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IACrE,MAAM,IAAI,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts new file mode 100644 index 00000000..cd36c54f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts @@ -0,0 +1,3 @@ +export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide\n"; +export declare function validateDefaultProjectForFilesGlob(allowDefaultProject: string[] | undefined): void; +//# sourceMappingURL=validateDefaultProjectForFilesGlob.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map new file mode 100644 index 00000000..18df39ca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.d.ts","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,yNAKnD,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,GACxC,IAAI,CAiBN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js new file mode 100644 index 00000000..74d5e37b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = void 0; +exports.validateDefaultProjectForFilesGlob = validateDefaultProjectForFilesGlob; +exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = ` + +Having many files run with the default project is known to cause performance issues and slow down linting. + +See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide +`; +function validateDefaultProjectForFilesGlob(allowDefaultProject) { + if (!allowDefaultProject?.length) { + return; + } + for (const glob of allowDefaultProject) { + if (glob === '*') { + throw new Error(`allowDefaultProject contains the overly wide '*'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + if (glob.includes('**')) { + throw new Error(`allowDefaultProject glob '${glob}' contains a disallowed '**'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); + } + } +} +//# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map new file mode 100644 index 00000000..50d95d2f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"validateDefaultProjectForFilesGlob.js","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":";;;AAOA,gFAmBC;AA1BY,QAAA,uCAAuC,GAAG;;;;;CAKtD,CAAC;AAEF,SAAgB,kCAAkC,CAChD,mBAAyC;IAEzC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,mBAAmB,EAAE,CAAC;QACvC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACb,oDAAoD,+CAAuC,EAAE,CAC9F,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,6BAA6B,IAAI,gCAAgC,+CAAuC,EAAE,CAC3G,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts new file mode 100644 index 00000000..28b98fe8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts @@ -0,0 +1,5 @@ +import type * as ts from 'typescript'; +import type { ASTMaps } from './convert'; +import type { ParserServices } from './parser-options'; +export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices; +//# sourceMappingURL=createParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map new file mode 100644 index 00000000..69157f26 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.d.ts","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,IAAI,GACzB,cAAc,CA2BhB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js new file mode 100644 index 00000000..2c5e60c8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParserServices = createParserServices; +function createParserServices(astMaps, program) { + if (!program) { + return { + emitDecoratorMetadata: undefined, + experimentalDecorators: undefined, + program, + // we always return the node maps because + // (a) they don't require type info and + // (b) they can be useful when using some of TS's internal non-type-aware AST utils + ...astMaps, + }; + } + const checker = program.getTypeChecker(); + const compilerOptions = program.getCompilerOptions(); + return { + program, + // not set in the config is the same as off + emitDecoratorMetadata: compilerOptions.emitDecoratorMetadata ?? false, + experimentalDecorators: compilerOptions.experimentalDecorators ?? false, + ...astMaps, + getSymbolAtLocation: node => checker.getSymbolAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + getTypeAtLocation: node => checker.getTypeAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), + }; +} +//# sourceMappingURL=createParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map new file mode 100644 index 00000000..54a84fef --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParserServices.js","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":";;AAKA,oDA8BC;AA9BD,SAAgB,oBAAoB,CAClC,OAAgB,EAChB,OAA0B;IAE1B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;YACL,qBAAqB,EAAE,SAAS;YAChC,sBAAsB,EAAE,SAAS;YACjC,OAAO;YACP,yCAAyC;YACzC,uCAAuC;YACvC,mFAAmF;YACnF,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAErD,OAAO;QACL,OAAO;QACP,2CAA2C;QAC3C,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,IAAI,KAAK;QACrE,sBAAsB,EAAE,eAAe,CAAC,sBAAsB,IAAI,KAAK;QACvE,GAAG,OAAO;QACV,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAC1B,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtE,iBAAiB,EAAE,IAAI,CAAC,EAAE,CACxB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACrE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts new file mode 100644 index 00000000..c312b154 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined; +export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined; +//# sourceMappingURL=getModifiers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map new file mode 100644 index 00000000..a67408e6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.d.ts","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,uBAAuB,UAAQ,GAC9B,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAsB3B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,wBAAwB,UAAQ,GAC/B,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,CAoB5B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js new file mode 100644 index 00000000..a5d358a6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js @@ -0,0 +1,75 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getModifiers = getModifiers; +exports.getDecorators = getDecorators; +const ts = __importStar(require("typescript")); +const version_check_1 = require("./version-check"); +const isAtLeast48 = version_check_1.typescriptVersionIsAtLeast['4.8']; +function getModifiers(node, includeIllegalModifiers = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalModifiers || ts.canHaveModifiers(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const modifiers = ts.getModifiers(node); + return modifiers ? [...modifiers] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.modifiers?.filter((m) => !ts.isDecorator(m))); +} +function getDecorators(node, includeIllegalDecorators = false) { + if (node == null) { + return undefined; + } + if (isAtLeast48) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + if (includeIllegalDecorators || ts.canHaveDecorators(node)) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- this is safe as it's guarded + const decorators = ts.getDecorators(node); + return decorators ? [...decorators] : undefined; + } + return undefined; + } + return ( + // @ts-expect-error intentional fallback for older TS versions + node.decorators?.filter(ts.isDecorator)); +} +//# sourceMappingURL=getModifiers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map new file mode 100644 index 00000000..43d2d4e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getModifiers.js","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,oCAyBC;AAED,sCAuBC;AAxDD,+CAAiC;AAEjC,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,SAAgB,YAAY,CAC1B,IAAgC,EAChC,uBAAuB,GAAG,KAAK;IAE/B,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,uBAAuB,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;YACzD,4FAA4F;YAC5F,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,IAAuB,CAAC,CAAC;YAC3D,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,SAAuC,EAAE,MAAM,CACnD,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5C,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAC3B,IAAgC,EAChC,wBAAwB,GAAG,KAAK;IAEhC,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,4FAA4F;QAC5F,IAAI,wBAAwB,IAAI,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,4FAA4F;YAC5F,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAwB,CAAC,CAAC;YAC9D,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClD,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;IACL,8DAA8D;IAC7D,IAAI,CAAC,UAAoC,EAAE,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,CACnE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts new file mode 100644 index 00000000..9e4ce3c4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts @@ -0,0 +1,14 @@ +export * from './clear-caches'; +export * from './create-program/getScriptKind'; +export { getCanonicalFileName } from './create-program/shared'; +export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; +export * from './getModifiers'; +export { TSError } from './node-utils'; +export { type AST, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, } from './parser'; +export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, TSESTreeOptions, } from './parser-options'; +export { simpleTraverse } from './simple-traverse'; +export * from './ts-estree'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { withoutProjectParserOptions } from './withoutProjectParserOptions'; +export declare const version: string; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map new file mode 100644 index 00000000..b977638f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,oCAAoC,EACpC,iCAAiC,EACjC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAI5E,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js new file mode 100644 index 00000000..c312df00 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js @@ -0,0 +1,40 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.version = exports.withoutProjectParserOptions = exports.typescriptVersionIsAtLeast = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = exports.TSError = exports.createProgram = exports.getCanonicalFileName = void 0; +__exportStar(require("./clear-caches"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +var useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return useProvidedPrograms_1.createProgramFromConfigFile; } }); +__exportStar(require("./getModifiers"), exports); +var node_utils_1 = require("./node-utils"); +Object.defineProperty(exports, "TSError", { enumerable: true, get: function () { return node_utils_1.TSError; } }); +var parser_1 = require("./parser"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); +Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } }); +var simple_traverse_1 = require("./simple-traverse"); +Object.defineProperty(exports, "simpleTraverse", { enumerable: true, get: function () { return simple_traverse_1.simpleTraverse; } }); +__exportStar(require("./ts-estree"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions"); +Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } }); +// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access +exports.version = require('../package.json').version; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map new file mode 100644 index 00000000..ecc12fc6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAEpC,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts new file mode 100644 index 00000000..7953cc6f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts @@ -0,0 +1,2 @@ +export declare const xhtmlEntities: Record; +//# sourceMappingURL=xhtml-entities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map new file mode 100644 index 00000000..ce45e83d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.d.ts","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8PhD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js new file mode 100644 index 00000000..d757174f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js @@ -0,0 +1,259 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xhtmlEntities = void 0; +exports.xhtmlEntities = { + Aacute: '\u00C1', + aacute: '\u00E1', + Acirc: '\u00C2', + acirc: '\u00E2', + acute: '\u00B4', + AElig: '\u00C6', + aelig: '\u00E6', + Agrave: '\u00C0', + agrave: '\u00E0', + alefsym: '\u2135', + Alpha: '\u0391', + alpha: '\u03B1', + amp: '&', + and: '\u2227', + ang: '\u2220', + apos: '\u0027', + Aring: '\u00C5', + aring: '\u00E5', + asymp: '\u2248', + Atilde: '\u00C3', + atilde: '\u00E3', + Auml: '\u00C4', + auml: '\u00E4', + bdquo: '\u201E', + Beta: '\u0392', + beta: '\u03B2', + brvbar: '\u00A6', + bull: '\u2022', + cap: '\u2229', + Ccedil: '\u00C7', + ccedil: '\u00E7', + cedil: '\u00B8', + cent: '\u00A2', + Chi: '\u03A7', + chi: '\u03C7', + circ: '\u02C6', + clubs: '\u2663', + cong: '\u2245', + copy: '\u00A9', + crarr: '\u21B5', + cup: '\u222A', + curren: '\u00A4', + dagger: '\u2020', + Dagger: '\u2021', + darr: '\u2193', + dArr: '\u21D3', + deg: '\u00B0', + Delta: '\u0394', + delta: '\u03B4', + diams: '\u2666', + divide: '\u00F7', + Eacute: '\u00C9', + eacute: '\u00E9', + Ecirc: '\u00CA', + ecirc: '\u00EA', + Egrave: '\u00C8', + egrave: '\u00E8', + empty: '\u2205', + emsp: '\u2003', + ensp: '\u2002', + Epsilon: '\u0395', + epsilon: '\u03B5', + equiv: '\u2261', + Eta: '\u0397', + eta: '\u03B7', + ETH: '\u00D0', + eth: '\u00F0', + Euml: '\u00CB', + euml: '\u00EB', + euro: '\u20AC', + exist: '\u2203', + fnof: '\u0192', + forall: '\u2200', + frac12: '\u00BD', + frac14: '\u00BC', + frac34: '\u00BE', + frasl: '\u2044', + Gamma: '\u0393', + gamma: '\u03B3', + ge: '\u2265', + gt: '>', + harr: '\u2194', + hArr: '\u21D4', + hearts: '\u2665', + hellip: '\u2026', + Iacute: '\u00CD', + iacute: '\u00ED', + Icirc: '\u00CE', + icirc: '\u00EE', + iexcl: '\u00A1', + Igrave: '\u00CC', + igrave: '\u00EC', + image: '\u2111', + infin: '\u221E', + int: '\u222B', + Iota: '\u0399', + iota: '\u03B9', + iquest: '\u00BF', + isin: '\u2208', + Iuml: '\u00CF', + iuml: '\u00EF', + Kappa: '\u039A', + kappa: '\u03BA', + Lambda: '\u039B', + lambda: '\u03BB', + lang: '\u2329', + laquo: '\u00AB', + larr: '\u2190', + lArr: '\u21D0', + lceil: '\u2308', + ldquo: '\u201C', + le: '\u2264', + lfloor: '\u230A', + lowast: '\u2217', + loz: '\u25CA', + lrm: '\u200E', + lsaquo: '\u2039', + lsquo: '\u2018', + lt: '<', + macr: '\u00AF', + mdash: '\u2014', + micro: '\u00B5', + middot: '\u00B7', + minus: '\u2212', + Mu: '\u039C', + mu: '\u03BC', + nabla: '\u2207', + nbsp: '\u00A0', + ndash: '\u2013', + ne: '\u2260', + ni: '\u220B', + not: '\u00AC', + notin: '\u2209', + nsub: '\u2284', + Ntilde: '\u00D1', + ntilde: '\u00F1', + Nu: '\u039D', + nu: '\u03BD', + Oacute: '\u00D3', + oacute: '\u00F3', + Ocirc: '\u00D4', + ocirc: '\u00F4', + OElig: '\u0152', + oelig: '\u0153', + Ograve: '\u00D2', + ograve: '\u00F2', + oline: '\u203E', + Omega: '\u03A9', + omega: '\u03C9', + Omicron: '\u039F', + omicron: '\u03BF', + oplus: '\u2295', + or: '\u2228', + ordf: '\u00AA', + ordm: '\u00BA', + Oslash: '\u00D8', + oslash: '\u00F8', + Otilde: '\u00D5', + otilde: '\u00F5', + otimes: '\u2297', + Ouml: '\u00D6', + ouml: '\u00F6', + para: '\u00B6', + part: '\u2202', + permil: '\u2030', + perp: '\u22A5', + Phi: '\u03A6', + phi: '\u03C6', + Pi: '\u03A0', + pi: '\u03C0', + piv: '\u03D6', + plusmn: '\u00B1', + pound: '\u00A3', + prime: '\u2032', + Prime: '\u2033', + prod: '\u220F', + prop: '\u221D', + Psi: '\u03A8', + psi: '\u03C8', + quot: '\u0022', + radic: '\u221A', + rang: '\u232A', + raquo: '\u00BB', + rarr: '\u2192', + rArr: '\u21D2', + rceil: '\u2309', + rdquo: '\u201D', + real: '\u211C', + reg: '\u00AE', + rfloor: '\u230B', + Rho: '\u03A1', + rho: '\u03C1', + rlm: '\u200F', + rsaquo: '\u203A', + rsquo: '\u2019', + sbquo: '\u201A', + Scaron: '\u0160', + scaron: '\u0161', + sdot: '\u22C5', + sect: '\u00A7', + shy: '\u00AD', + Sigma: '\u03A3', + sigma: '\u03C3', + sigmaf: '\u03C2', + sim: '\u223C', + spades: '\u2660', + sub: '\u2282', + sube: '\u2286', + sum: '\u2211', + sup: '\u2283', + sup1: '\u00B9', + sup2: '\u00B2', + sup3: '\u00B3', + supe: '\u2287', + szlig: '\u00DF', + Tau: '\u03A4', + tau: '\u03C4', + there4: '\u2234', + Theta: '\u0398', + theta: '\u03B8', + thetasym: '\u03D1', + thinsp: '\u2009', + THORN: '\u00DE', + thorn: '\u00FE', + tilde: '\u02DC', + times: '\u00D7', + trade: '\u2122', + Uacute: '\u00DA', + uacute: '\u00FA', + uarr: '\u2191', + uArr: '\u21D1', + Ucirc: '\u00DB', + ucirc: '\u00FB', + Ugrave: '\u00D9', + ugrave: '\u00F9', + uml: '\u00A8', + upsih: '\u03D2', + Upsilon: '\u03A5', + upsilon: '\u03C5', + Uuml: '\u00DC', + uuml: '\u00FC', + weierp: '\u2118', + Xi: '\u039E', + xi: '\u03BE', + Yacute: '\u00DD', + yacute: '\u00FD', + yen: '\u00A5', + yuml: '\u00FF', + Yuml: '\u0178', + Zeta: '\u0396', + zeta: '\u03B6', + zwj: '\u200D', + zwnj: '\u200C', +}; +//# sourceMappingURL=xhtml-entities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map new file mode 100644 index 00000000..0307f680 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map @@ -0,0 +1 @@ +{"version":3,"file":"xhtml-entities.js","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAA2B;IACnD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAA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GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;CACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts new file mode 100644 index 00000000..8dcbed5b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts @@ -0,0 +1,192 @@ +import * as ts from 'typescript'; +import type { TSESTree, TSNode } from './ts-estree'; +import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; +declare const SyntaxKind: typeof ts.SyntaxKind; +type LogicalOperatorKind = ts.SyntaxKind.AmpersandAmpersandToken | ts.SyntaxKind.BarBarToken | ts.SyntaxKind.QuestionQuestionToken; +interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOperatorToText { + [SyntaxKind.ImportKeyword]: 'import'; + [SyntaxKind.KeyOfKeyword]: 'keyof'; + [SyntaxKind.NewKeyword]: 'new'; + [SyntaxKind.ReadonlyKeyword]: 'readonly'; + [SyntaxKind.UniqueKeyword]: 'unique'; +} +type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText; +type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText; +type DeclarationKind = TSESTree.VariableDeclaration['kind']; +/** + * Returns true if the given ts.Token is a logical operator + */ +export declare function isLogicalOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +export declare function isESTreeBinaryOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; +type TokenForTokenKind = T extends keyof TokenToText ? TokenToText[T] : string | undefined; +/** + * Returns the string form of the given TSToken SyntaxKind + */ +export declare function getTextForTokenKind(kind: T): TokenForTokenKind; +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +export declare function isESTreeClassMember(node: ts.Node): boolean; +/** + * Checks if a ts.Node has a modifier + */ +export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +export declare function getLastModifier(node: ts.Node): ts.Modifier | null; +/** + * Returns true if the given ts.Token is a comma + */ +export declare function isComma(token: ts.Node): token is ts.Token; +/** + * Returns true if the given ts.Node is a comment + */ +export declare function isComment(node: ts.Node): boolean; +/** + * Returns the binary expression type of the given ts.Token + */ +export declare function getBinaryExpressionType(operator: ts.BinaryOperatorToken): { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.AssignmentExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.BinaryExpression; +} | { + operator: TokenForTokenKind; + type: AST_NODE_TYPES.LogicalExpression; +}; +/** + * Returns line and column data for the given positions + */ +export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +export declare function getLocFor(range: TSESTree.Range, ast: ts.SourceFile): TSESTree.SourceLocation; +/** + * Check whatever node can contain directive + */ +export declare function canContainDirective(node: ts.Block | ts.ClassStaticBlockDeclaration | ts.ModuleBlock | ts.SourceFile): boolean; +/** + * Returns range for the given ts.Node + */ +export declare function getRange(node: Pick, ast: ts.SourceFile): [number, number]; +/** + * Returns true if a given ts.Node is a JSX token + */ +export declare function isJSXToken(node: ts.Node): boolean; +/** + * Returns the declaration kind of the given ts.Node + */ +export declare function getDeclarationKind(node: ts.VariableDeclarationList): DeclarationKind; +/** + * Gets a ts.Node's accessibility level + */ +export declare function getTSNodeAccessibility(node: ts.Node): 'private' | 'protected' | 'public' | undefined; +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +export declare function hasJSXAncestor(node: ts.Node): boolean; +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +export declare function unescapeStringLiteralText(text: string): string; +/** + * Returns true if a given ts.Node is a computed property + */ +export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +export declare function isOptional(node: { + questionToken?: ts.QuestionToken; +}): boolean; +/** + * Returns true if the node is an optional chain node + */ +export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; +/** + * Returns true of the child of property access expression is an optional chain + */ +export declare function isChildUnwrappableOptionalChain(node: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression, child: TSESTree.Node): boolean; +/** + * Returns the type of a given ts.Token + */ +export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; +/** + * Extends and formats a given ts.Token, for a given AST + */ +export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; +export declare class TSError extends Error { + readonly fileName: string; + readonly location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }; + constructor(message: string, fileName: string, location: { + end: { + column: number; + line: number; + offset: number; + }; + start: { + column: number; + line: number; + offset: number; + }; + }); + get index(): number; + get lineNumber(): number; + get column(): number; +} +export declare function createError(message: string, ast: ts.SourceFile, startIndex: number, endIndex?: number): TSError; +export declare function nodeHasIllegalDecorators(node: ts.Node): node is { + illegalDecorators: ts.Node[]; +} & ts.Node; +export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; +export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; +export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; +export declare function isThisInTypeQuery(node: ts.Node): boolean; +export declare function nodeIsPresent(node: ts.Node | undefined): node is ts.Node; +export declare function getContainingFunction(node: ts.Node): ts.SignatureDeclaration | undefined; +export declare function nodeCanBeDecorated(node: TSNode): boolean; +export declare function isValidAssignmentTarget(node: ts.Node): boolean; +export declare function getNamespaceModifiers(node: ts.ModuleDeclaration): ts.Modifier[] | undefined; +export {}; +//# sourceMappingURL=node-utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map new file mode 100644 index 00000000..a37a7e80 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-utils.d.ts","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIpD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,UAAU,sBAAgB,CAAC;AAEjC,KAAK,mBAAmB,GACpB,EAAE,CAAC,UAAU,CAAC,uBAAuB,GACrC,EAAE,CAAC,UAAU,CAAC,WAAW,GACzB,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC;AAOxC,UAAU,WACR,SAAQ,QAAQ,CAAC,qBAAqB,EACpC,QAAQ,CAAC,oBAAoB;IAC/B,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IACrC,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IACnC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC/B,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzC,CA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AAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuDxD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CA6B9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,iBAAiB,GACzB,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAgB3B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js new file mode 100644 index 00000000..11271d7d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js @@ -0,0 +1,739 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSError = void 0; +exports.isLogicalOperator = isLogicalOperator; +exports.isESTreeBinaryOperator = isESTreeBinaryOperator; +exports.getTextForTokenKind = getTextForTokenKind; +exports.isESTreeClassMember = isESTreeClassMember; +exports.hasModifier = hasModifier; +exports.getLastModifier = getLastModifier; +exports.isComma = isComma; +exports.isComment = isComment; +exports.getBinaryExpressionType = getBinaryExpressionType; +exports.getLineAndCharacterFor = getLineAndCharacterFor; +exports.getLocFor = getLocFor; +exports.canContainDirective = canContainDirective; +exports.getRange = getRange; +exports.isJSXToken = isJSXToken; +exports.getDeclarationKind = getDeclarationKind; +exports.getTSNodeAccessibility = getTSNodeAccessibility; +exports.findNextToken = findNextToken; +exports.findFirstMatchingAncestor = findFirstMatchingAncestor; +exports.hasJSXAncestor = hasJSXAncestor; +exports.unescapeStringLiteralText = unescapeStringLiteralText; +exports.isComputedProperty = isComputedProperty; +exports.isOptional = isOptional; +exports.isChainExpression = isChainExpression; +exports.isChildUnwrappableOptionalChain = isChildUnwrappableOptionalChain; +exports.getTokenType = getTokenType; +exports.convertToken = convertToken; +exports.convertTokens = convertTokens; +exports.createError = createError; +exports.nodeHasIllegalDecorators = nodeHasIllegalDecorators; +exports.nodeHasTokens = nodeHasTokens; +exports.firstDefined = firstDefined; +exports.identifierIsThisKeyword = identifierIsThisKeyword; +exports.isThisIdentifier = isThisIdentifier; +exports.isThisInTypeQuery = isThisInTypeQuery; +exports.nodeIsPresent = nodeIsPresent; +exports.getContainingFunction = getContainingFunction; +exports.nodeCanBeDecorated = nodeCanBeDecorated; +exports.isValidAssignmentTarget = isValidAssignmentTarget; +exports.getNamespaceModifiers = getNamespaceModifiers; +const ts = __importStar(require("typescript")); +const getModifiers_1 = require("./getModifiers"); +const xhtml_entities_1 = require("./jsx/xhtml-entities"); +const ts_estree_1 = require("./ts-estree"); +const version_check_1 = require("./version-check"); +const isAtLeast50 = version_check_1.typescriptVersionIsAtLeast['5.0']; +const SyntaxKind = ts.SyntaxKind; +const LOGICAL_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.BarBarToken, + SyntaxKind.QuestionQuestionToken, +]); +const ASSIGNMENT_OPERATORS = new Set([ + ts.SyntaxKind.AmpersandAmpersandEqualsToken, + ts.SyntaxKind.AmpersandEqualsToken, + ts.SyntaxKind.AsteriskAsteriskEqualsToken, + ts.SyntaxKind.AsteriskEqualsToken, + ts.SyntaxKind.BarBarEqualsToken, + ts.SyntaxKind.BarEqualsToken, + ts.SyntaxKind.CaretEqualsToken, + ts.SyntaxKind.EqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken, + ts.SyntaxKind.LessThanLessThanEqualsToken, + ts.SyntaxKind.MinusEqualsToken, + ts.SyntaxKind.PercentEqualsToken, + ts.SyntaxKind.PlusEqualsToken, + ts.SyntaxKind.QuestionQuestionEqualsToken, + ts.SyntaxKind.SlashEqualsToken, +]); +const BINARY_OPERATORS = new Set([ + SyntaxKind.AmpersandAmpersandToken, + SyntaxKind.AmpersandToken, + SyntaxKind.AsteriskAsteriskToken, + SyntaxKind.AsteriskToken, + SyntaxKind.BarBarToken, + SyntaxKind.BarToken, + SyntaxKind.CaretToken, + SyntaxKind.EqualsEqualsEqualsToken, + SyntaxKind.EqualsEqualsToken, + SyntaxKind.ExclamationEqualsEqualsToken, + SyntaxKind.ExclamationEqualsToken, + SyntaxKind.GreaterThanEqualsToken, + SyntaxKind.GreaterThanGreaterThanGreaterThanToken, + SyntaxKind.GreaterThanGreaterThanToken, + SyntaxKind.GreaterThanToken, + SyntaxKind.InKeyword, + SyntaxKind.InstanceOfKeyword, + SyntaxKind.LessThanEqualsToken, + SyntaxKind.LessThanLessThanToken, + SyntaxKind.LessThanToken, + SyntaxKind.MinusToken, + SyntaxKind.PercentToken, + SyntaxKind.PlusToken, + SyntaxKind.SlashToken, +]); +/** + * Returns true if the given ts.Token is the assignment operator + */ +function isAssignmentOperator(operator) { + return ASSIGNMENT_OPERATORS.has(operator.kind); +} +/** + * Returns true if the given ts.Token is a logical operator + */ +function isLogicalOperator(operator) { + return LOGICAL_OPERATORS.has(operator.kind); +} +function isESTreeBinaryOperator(operator) { + return BINARY_OPERATORS.has(operator.kind); +} +/** + * Returns the string form of the given TSToken SyntaxKind + */ +function getTextForTokenKind(kind) { + return ts.tokenToString(kind); +} +/** + * Returns true if the given ts.Node is a valid ESTree class member + */ +function isESTreeClassMember(node) { + return node.kind !== SyntaxKind.SemicolonClassElement; +} +/** + * Checks if a ts.Node has a modifier + */ +function hasModifier(modifierKind, node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + return modifiers?.some(modifier => modifier.kind === modifierKind) === true; +} +/** + * Get last last modifier in ast + * @returns returns last modifier if present or null + */ +function getLastModifier(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return null; + } + return modifiers[modifiers.length - 1] ?? null; +} +/** + * Returns true if the given ts.Token is a comma + */ +function isComma(token) { + return token.kind === SyntaxKind.CommaToken; +} +/** + * Returns true if the given ts.Node is a comment + */ +function isComment(node) { + return (node.kind === SyntaxKind.SingleLineCommentTrivia || + node.kind === SyntaxKind.MultiLineCommentTrivia); +} +/** + * Returns true if the given ts.Node is a JSDoc comment + */ +function isJSDocComment(node) { + // eslint-disable-next-line @typescript-eslint/no-deprecated -- SyntaxKind.JSDoc was only added in TS4.7 so we can't use it yet + return node.kind === SyntaxKind.JSDocComment; +} +/** + * Returns the binary expression type of the given ts.Token + */ +function getBinaryExpressionType(operator) { + if (isAssignmentOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.AssignmentExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isLogicalOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.LogicalExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + if (isESTreeBinaryOperator(operator)) { + return { + type: ts_estree_1.AST_NODE_TYPES.BinaryExpression, + operator: getTextForTokenKind(operator.kind), + }; + } + throw new Error(`Unexpected binary operator ${ts.tokenToString(operator.kind)}`); +} +/** + * Returns line and column data for the given positions + */ +function getLineAndCharacterFor(pos, ast) { + const loc = ast.getLineAndCharacterOfPosition(pos); + return { + column: loc.character, + line: loc.line + 1, + }; +} +/** + * Returns line and column data for the given start and end positions, + * for the given AST + */ +function getLocFor(range, ast) { + const [start, end] = range.map(pos => getLineAndCharacterFor(pos, ast)); + return { end, start }; +} +/** + * Check whatever node can contain directive + */ +function canContainDirective(node) { + if (node.kind === ts.SyntaxKind.Block) { + switch (node.parent.kind) { + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.MethodDeclaration: + return true; + default: + return false; + } + } + return true; +} +/** + * Returns range for the given ts.Node + */ +function getRange(node, ast) { + return [node.getStart(ast), node.getEnd()]; +} +/** + * Returns true if a given ts.Node is a token + */ +function isToken(node) { + return (node.kind >= SyntaxKind.FirstToken && node.kind <= SyntaxKind.LastToken); +} +/** + * Returns true if a given ts.Node is a JSX token + */ +function isJSXToken(node) { + return (node.kind >= SyntaxKind.JsxElement && node.kind <= SyntaxKind.JsxAttribute); +} +/** + * Returns the declaration kind of the given ts.Node + */ +function getDeclarationKind(node) { + if (node.flags & ts.NodeFlags.Let) { + return 'let'; + } + // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison + if ((node.flags & ts.NodeFlags.AwaitUsing) === ts.NodeFlags.AwaitUsing) { + return 'await using'; + } + if (node.flags & ts.NodeFlags.Const) { + return 'const'; + } + if (node.flags & ts.NodeFlags.Using) { + return 'using'; + } + return 'var'; +} +/** + * Gets a ts.Node's accessibility level + */ +function getTSNodeAccessibility(node) { + const modifiers = (0, getModifiers_1.getModifiers)(node); + if (modifiers == null) { + return undefined; + } + for (const modifier of modifiers) { + switch (modifier.kind) { + case SyntaxKind.PublicKeyword: + return 'public'; + case SyntaxKind.ProtectedKeyword: + return 'protected'; + case SyntaxKind.PrivateKeyword: + return 'private'; + default: + break; + } + } + return undefined; +} +/** + * Finds the next token based on the previous one and its parent + * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren + */ +function findNextToken(previousToken, parent, ast) { + return find(parent); + function find(n) { + if (ts.isToken(n) && n.pos === previousToken.end) { + // this is token that starts at the end of previous token - return it + return n; + } + return firstDefined(n.getChildren(ast), (child) => { + const shouldDiveInChildNode = + // previous token is enclosed somewhere in the child + (child.pos <= previousToken.pos && child.end > previousToken.end) || + // previous token ends exactly at the beginning of child + child.pos === previousToken.end; + return shouldDiveInChildNode && nodeHasTokens(child, ast) + ? find(child) + : undefined; + }); + } +} +/** + * Find the first matching ancestor based on the given predicate function. + * @param node The current ts.Node + * @param predicate The predicate function to apply to each checked ancestor + * @returns a matching parent ts.Node + */ +function findFirstMatchingAncestor(node, predicate) { + let current = node; + while (current) { + if (predicate(current)) { + return current; + } + current = current.parent; + } + return undefined; +} +/** + * Returns true if a given ts.Node has a JSX token within its hierarchy + */ +function hasJSXAncestor(node) { + return !!findFirstMatchingAncestor(node, isJSXToken); +} +/** + * Unescape the text content of string literals, e.g. & -> & + * @param text The escaped string literal text. + * @returns The unescaped string literal text. + */ +function unescapeStringLiteralText(text) { + return text.replaceAll(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, entity => { + const item = entity.slice(1, -1); + if (item[0] === '#') { + const codePoint = item[1] === 'x' + ? parseInt(item.slice(2), 16) + : parseInt(item.slice(1), 10); + return codePoint > 0x10ffff // RangeError: Invalid code point + ? entity + : String.fromCodePoint(codePoint); + } + return xhtml_entities_1.xhtmlEntities[item] || entity; + }); +} +/** + * Returns true if a given ts.Node is a computed property + */ +function isComputedProperty(node) { + return node.kind === SyntaxKind.ComputedPropertyName; +} +/** + * Returns true if a given ts.Node is optional (has QuestionToken) + * @param node ts.Node to be checked + */ +function isOptional(node) { + return !!node.questionToken; +} +/** + * Returns true if the node is an optional chain node + */ +function isChainExpression(node) { + return node.type === ts_estree_1.AST_NODE_TYPES.ChainExpression; +} +/** + * Returns true of the child of property access expression is an optional chain + */ +function isChildUnwrappableOptionalChain(node, child) { + return (isChainExpression(child) && + // (x?.y).z is semantically different, and as such .z is no longer optional + node.expression.kind !== ts.SyntaxKind.ParenthesizedExpression); +} +/** + * Returns the type of a given ts.Token + */ +function getTokenType(token) { + let keywordKind; + if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { + keywordKind = ts.identifierToKeywordKind(token); + } + else if ('originalKeywordKind' in token) { + // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + keywordKind = token.originalKeywordKind; + } + if (keywordKind) { + if (keywordKind === SyntaxKind.NullKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Null; + } + if (keywordKind >= SyntaxKind.FirstFutureReservedWord && + keywordKind <= SyntaxKind.LastKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Identifier; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstKeyword && + token.kind <= SyntaxKind.LastFutureReservedWord) { + if (token.kind === SyntaxKind.FalseKeyword || + token.kind === SyntaxKind.TrueKeyword) { + return ts_estree_1.AST_TOKEN_TYPES.Boolean; + } + return ts_estree_1.AST_TOKEN_TYPES.Keyword; + } + if (token.kind >= SyntaxKind.FirstPunctuation && + token.kind <= SyntaxKind.LastPunctuation) { + return ts_estree_1.AST_TOKEN_TYPES.Punctuator; + } + if (token.kind >= SyntaxKind.NoSubstitutionTemplateLiteral && + token.kind <= SyntaxKind.TemplateTail) { + return ts_estree_1.AST_TOKEN_TYPES.Template; + } + switch (token.kind) { + case SyntaxKind.NumericLiteral: + return ts_estree_1.AST_TOKEN_TYPES.Numeric; + case SyntaxKind.JsxText: + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + case SyntaxKind.StringLiteral: + // A TypeScript-StringLiteral token with a TypeScript-JsxAttribute or TypeScript-JsxElement parent, + // must actually be an ESTree-JSXText token + if (token.parent.kind === SyntaxKind.JsxAttribute || + token.parent.kind === SyntaxKind.JsxElement) { + return ts_estree_1.AST_TOKEN_TYPES.JSXText; + } + return ts_estree_1.AST_TOKEN_TYPES.String; + case SyntaxKind.RegularExpressionLiteral: + return ts_estree_1.AST_TOKEN_TYPES.RegularExpression; + case SyntaxKind.Identifier: + case SyntaxKind.ConstructorKeyword: + case SyntaxKind.GetKeyword: + case SyntaxKind.SetKeyword: + // intentional fallthrough + default: + } + // Some JSX tokens have to be determined based on their parent + if (token.kind === SyntaxKind.Identifier) { + if (isJSXToken(token.parent)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + if (token.parent.kind === SyntaxKind.PropertyAccessExpression && + hasJSXAncestor(token)) { + return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; + } + } + return ts_estree_1.AST_TOKEN_TYPES.Identifier; +} +/** + * Extends and formats a given ts.Token, for a given AST + */ +function convertToken(token, ast) { + const start = token.kind === SyntaxKind.JsxText + ? token.getFullStart() + : token.getStart(ast); + const end = token.getEnd(); + const value = ast.text.slice(start, end); + const tokenType = getTokenType(token); + const range = [start, end]; + const loc = getLocFor(range, ast); + if (tokenType === ts_estree_1.AST_TOKEN_TYPES.RegularExpression) { + return { + type: tokenType, + loc, + range, + regex: { + flags: value.slice(value.lastIndexOf('/') + 1), + pattern: value.slice(1, value.lastIndexOf('/')), + }, + value, + }; + } + // @ts-expect-error TS is complaining about `value` not being the correct + // type but it is + return { + type: tokenType, + loc, + range, + value, + }; +} +/** + * Converts all tokens for the given AST + * @param ast the AST object + * @returns the converted Tokens + */ +function convertTokens(ast) { + const result = []; + /** + * @param node the ts.Node + */ + function walk(node) { + // TypeScript generates tokens for types in JSDoc blocks. Comment tokens + // and their children should not be walked or added to the resulting tokens list. + if (isComment(node) || isJSDocComment(node)) { + return; + } + if (isToken(node) && node.kind !== SyntaxKind.EndOfFileToken) { + result.push(convertToken(node, ast)); + } + else { + node.getChildren(ast).forEach(walk); + } + } + walk(ast); + return result; +} +class TSError extends Error { + fileName; + location; + constructor(message, fileName, location) { + super(message); + this.fileName = fileName; + this.location = location; + Object.defineProperty(this, 'name', { + configurable: true, + enumerable: false, + value: new.target.name, + }); + } + // For old version of ESLint https://github.com/typescript-eslint/typescript-eslint/pull/6556#discussion_r1123237311 + get index() { + return this.location.start.offset; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L853 + get lineNumber() { + return this.location.start.line; + } + // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L854 + get column() { + return this.location.start.column; + } +} +exports.TSError = TSError; +function createError(message, ast, startIndex, endIndex = startIndex) { + const [start, end] = [startIndex, endIndex].map(offset => { + const { character: column, line } = ast.getLineAndCharacterOfPosition(offset); + return { column, line: line + 1, offset }; + }); + return new TSError(message, ast.fileName, { end, start }); +} +function nodeHasIllegalDecorators(node) { + return !!('illegalDecorators' in node && + node.illegalDecorators?.length); +} +function nodeHasTokens(n, ast) { + // If we have a token or node that has a non-zero width, it must have tokens. + // Note: getWidth() does not take trivia into account. + return n.kind === SyntaxKind.EndOfFileToken + ? !!n.jsDoc + : n.getWidth(ast) !== 0; +} +/** + * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). + */ +function firstDefined(array, callback) { + if (array === undefined) { + return undefined; + } + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result !== undefined) { + return result; + } + } + return undefined; +} +function identifierIsThisKeyword(id) { + return ((isAtLeast50 + ? ts.identifierToKeywordKind(id) + : // @ts-expect-error -- intentional fallback for older TS versions <=4.9 + id.originalKeywordKind) === SyntaxKind.ThisKeyword); +} +function isThisIdentifier(node) { + return (!!node && + node.kind === SyntaxKind.Identifier && + identifierIsThisKeyword(node)); +} +function isThisInTypeQuery(node) { + if (!isThisIdentifier(node)) { + return false; + } + while (ts.isQualifiedName(node.parent) && node.parent.left === node) { + node = node.parent; + } + return node.parent.kind === SyntaxKind.TypeQuery; +} +// `ts.nodeIsMissing` +function nodeIsMissing(node) { + if (node === undefined) { + return true; + } + return (node.pos === node.end && + node.pos >= 0 && + node.kind !== SyntaxKind.EndOfFileToken); +} +// `ts.nodeIsPresent` +function nodeIsPresent(node) { + return !nodeIsMissing(node); +} +// `ts.getContainingFunction` +function getContainingFunction(node) { + return ts.findAncestor(node.parent, ts.isFunctionLike); +} +// `ts.hasAbstractModifier` +function hasAbstractModifier(node) { + return hasModifier(SyntaxKind.AbstractKeyword, node); +} +// `ts.getThisParameter` +function getThisParameter(signature) { + if (signature.parameters.length && !ts.isJSDocSignature(signature)) { + const thisParameter = signature.parameters[0]; + if (parameterIsThisKeyword(thisParameter)) { + return thisParameter; + } + } + return null; +} +// `ts.parameterIsThisKeyword` +function parameterIsThisKeyword(parameter) { + return isThisIdentifier(parameter.name); +} +// Rewrite version of `ts.nodeCanBeDecorated` +// Returns `true` for both `useLegacyDecorators: true` and `useLegacyDecorators: false` +function nodeCanBeDecorated(node) { + switch (node.kind) { + case SyntaxKind.ClassDeclaration: + return true; + case SyntaxKind.ClassExpression: + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: true` + return true; + case SyntaxKind.PropertyDeclaration: { + const { parent } = node; + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: true` + if (ts.isClassDeclaration(parent)) { + return true; + } + // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: false` + if (ts.isClassLike(parent) && !hasAbstractModifier(node)) { + return true; + } + return false; + } + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + case SyntaxKind.MethodDeclaration: { + const { parent } = node; + // In `ts.nodeCanBeDecorated` + // when `useLegacyDecorators: true` uses `ts.isClassDeclaration` + // when `useLegacyDecorators: true` uses `ts.isClassLike` + return (Boolean(node.body) && + (ts.isClassDeclaration(parent) || ts.isClassLike(parent))); + } + case SyntaxKind.Parameter: { + // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: false` + const { parent } = node; + const grandparent = parent.parent; + return (Boolean(parent) && + 'body' in parent && + Boolean(parent.body) && + (parent.kind === SyntaxKind.Constructor || + parent.kind === SyntaxKind.MethodDeclaration || + parent.kind === SyntaxKind.SetAccessor) && + getThisParameter(parent) !== node && + Boolean(grandparent) && + grandparent.kind === SyntaxKind.ClassDeclaration); + } + } + return false; +} +function isValidAssignmentTarget(node) { + switch (node.kind) { + case SyntaxKind.Identifier: + return true; + case SyntaxKind.PropertyAccessExpression: + case SyntaxKind.ElementAccessExpression: + if (node.flags & ts.NodeFlags.OptionalChain) { + return false; + } + return true; + case SyntaxKind.ParenthesizedExpression: + case SyntaxKind.TypeAssertionExpression: + case SyntaxKind.AsExpression: + case SyntaxKind.SatisfiesExpression: + case SyntaxKind.ExpressionWithTypeArguments: + case SyntaxKind.NonNullExpression: + return isValidAssignmentTarget(node.expression); + default: + return false; + } +} +function getNamespaceModifiers(node) { + // For following nested namespaces, use modifiers given to the topmost namespace + // export declare namespace foo.bar.baz {} + let modifiers = (0, getModifiers_1.getModifiers)(node); + let moduleDeclaration = node; + while ((!modifiers || modifiers.length === 0) && + ts.isModuleDeclaration(moduleDeclaration.parent)) { + const parentModifiers = (0, getModifiers_1.getModifiers)(moduleDeclaration.parent); + if (parentModifiers?.length) { + modifiers = parentModifiers; + } + moduleDeclaration = moduleDeclaration.parent; + } + return modifiers; +} +//# sourceMappingURL=node-utils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map new file mode 100644 index 00000000..ab7051b4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings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B,OAAO,IAAI,CAAC;QACd,KAAK,UAAU,CAAC,wBAAwB,CAAC;QACzC,KAAK,UAAU,CAAC,uBAAuB;YACrC,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;gBAC5C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,KAAK,UAAU,CAAC,uBAAuB,CAAC;QACxC,KAAK,UAAU,CAAC,uBAAuB,CAAC;QACxC,KAAK,UAAU,CAAC,YAAY,CAAC;QAC7B,KAAK,UAAU,CAAC,mBAAmB,CAAC;QACpC,KAAK,UAAU,CAAC,2BAA2B,CAAC;QAC5C,KAAK,UAAU,CAAC,iBAAiB;YAC/B,OAAO,uBAAuB,CAE1B,IAMD,CAAC,UAAU,CACb,CAAC;QACJ;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED,SAAgB,qBAAqB,CACnC,IAA0B;IAE1B,gFAAgF;IAChF,4CAA4C;IAC5C,IAAI,SAAS,GAAG,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC;IACnC,IAAI,iBAAiB,GAAG,IAAI,CAAC;IAC7B,OACE,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;QACtC,EAAE,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAChD,CAAC;QACD,MAAM,eAAe,GAAG,IAAA,2BAAY,EAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;YAC5B,SAAS,GAAG,eAAe,CAAC;QAC9B,CAAC;QACD,iBAAiB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAC/C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts new file mode 100644 index 00000000..6de22f10 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts @@ -0,0 +1,17 @@ +import type { CacheDurationSeconds } from '@typescript-eslint/types'; +export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +export interface CacheLike { + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +/** + * A map with key-level expiration. + */ +export declare class ExpiringCache implements CacheLike { + #private; + constructor(cacheDurationSeconds: CacheDurationSeconds); + clear(): void; + get(key: Key): Value | undefined; + set(key: Key, value: Value): this; +} +//# sourceMappingURL=ExpiringCache.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map new file mode 100644 index 00000000..25de4e08 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,GAAG,EAAE,KAAK,CAAE,YAAW,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC;;gBAWzD,oBAAoB,EAAE,oBAAoB;IAItD,KAAK,IAAI,IAAI;IAIb,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS;IAmBhC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;CAWlC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js new file mode 100644 index 00000000..12ab8c7c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0; +exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; +const ZERO_HR_TIME = [0, 0]; +/** + * A map with key-level expiration. + */ +class ExpiringCache { + #cacheDurationSeconds; + #map = new Map(); + constructor(cacheDurationSeconds) { + this.#cacheDurationSeconds = cacheDurationSeconds; + } + clear() { + this.#map.clear(); + } + get(key) { + const entry = this.#map.get(key); + if (entry?.value != null) { + if (this.#cacheDurationSeconds === 'Infinity') { + return entry.value; + } + const ageSeconds = process.hrtime(entry.lastSeen)[0]; + if (ageSeconds < this.#cacheDurationSeconds) { + // cache hit woo! + return entry.value; + } + // key has expired - clean it up to free up memory + this.#map.delete(key); + } + // no hit :'( + return undefined; + } + set(key, value) { + this.#map.set(key, { + lastSeen: this.#cacheDurationSeconds === 'Infinity' + ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry + ZERO_HR_TIME + : process.hrtime(), + value, + }); + return this; + } +} +exports.ExpiringCache = ExpiringCache; +//# sourceMappingURL=ExpiringCache.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map new file mode 100644 index 00000000..9fcb3977 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IACf,qBAAqB,CAAuB;IAE5C,IAAI,GAAG,IAAI,GAAG,EAMpB,CAAC;IAEJ,YAAY,oBAA0C;QACpD,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;IACpD,CAAC;IAED,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,GAAQ;QACV,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,qBAAqB,KAAK,UAAU,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC5C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YACD,kDAAkD;YAClD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,GAAG,CAAC,GAAQ,EAAE,KAAY;QACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,QAAQ,EACN,IAAI,CAAC,qBAAqB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;YACtB,KAAK;SACN,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjDD,sCAiDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts new file mode 100644 index 00000000..73af7479 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts @@ -0,0 +1,7 @@ +import * as ts from 'typescript'; +import type { TSESTreeOptions } from '../parser-options'; +import type { MutableParseSettings } from './index'; +export declare function createParseSettings(code: string | ts.SourceFile, tsestreeOptions?: Partial): MutableParseSettings; +export declare function clearTSConfigMatchCache(): void; +export declare function clearTSServerProjectService(): void; +//# sourceMappingURL=createParseSettings.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map new file mode 100644 index 00000000..f875b24e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAiCpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,GAAE,OAAO,CAAC,eAAe,CAAM,GAC7C,oBAAoB,CA2JtB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAElD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js new file mode 100644 index 00000000..8739a68d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js @@ -0,0 +1,214 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createParseSettings = createParseSettings; +exports.clearTSConfigMatchCache = clearTSConfigMatchCache; +exports.clearTSServerProjectService = clearTSServerProjectService; +const debug_1 = __importDefault(require("debug")); +const node_path_1 = __importDefault(require("node:path")); +const ts = __importStar(require("typescript")); +const createProjectService_1 = require("../create-program/createProjectService"); +const shared_1 = require("../create-program/shared"); +const source_files_1 = require("../source-files"); +const ExpiringCache_1 = require("./ExpiringCache"); +const getProjectConfigFiles_1 = require("./getProjectConfigFiles"); +const inferSingleRun_1 = require("./inferSingleRun"); +const resolveProjectList_1 = require("./resolveProjectList"); +const warnAboutTSVersion_1 = require("./warnAboutTSVersion"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings'); +let TSCONFIG_MATCH_CACHE; +let TSSERVER_PROJECT_SERVICE = null; +// NOTE - we intentionally use "unnecessary" `?.` here because in TS<5.3 this enum doesn't exist +// This object exists so we can centralize these for tracking and so we don't proliferate these across the file +// https://github.com/microsoft/TypeScript/issues/56579 +/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +const JSDocParsingMode = { + ParseAll: ts.JSDocParsingMode?.ParseAll, + ParseForTypeErrors: ts.JSDocParsingMode?.ParseForTypeErrors, + ParseForTypeInfo: ts.JSDocParsingMode?.ParseForTypeInfo, + ParseNone: ts.JSDocParsingMode?.ParseNone, +}; +/* eslint-enable @typescript-eslint/no-unnecessary-condition */ +function createParseSettings(code, tsestreeOptions = {}) { + const codeFullText = enforceCodeString(code); + const singleRun = (0, inferSingleRun_1.inferSingleRun)(tsestreeOptions); + const tsconfigRootDir = typeof tsestreeOptions.tsconfigRootDir === 'string' + ? tsestreeOptions.tsconfigRootDir + : process.cwd(); + const passedLoggerFn = typeof tsestreeOptions.loggerFn === 'function'; + const filePath = (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' && + tsestreeOptions.filePath !== '' + ? tsestreeOptions.filePath + : getFileName(tsestreeOptions.jsx), tsconfigRootDir); + const extension = node_path_1.default.extname(filePath).toLowerCase(); + const jsDocParsingMode = (() => { + switch (tsestreeOptions.jsDocParsingMode) { + case 'all': + return JSDocParsingMode.ParseAll; + case 'none': + return JSDocParsingMode.ParseNone; + case 'type-info': + return JSDocParsingMode.ParseForTypeInfo; + default: + return JSDocParsingMode.ParseAll; + } + })(); + const parseSettings = { + loc: tsestreeOptions.loc === true, + range: tsestreeOptions.range === true, + allowInvalidAST: tsestreeOptions.allowInvalidAST === true, + code, + codeFullText, + comment: tsestreeOptions.comment === true, + comments: [], + debugLevel: tsestreeOptions.debugLevel === true + ? new Set(['typescript-eslint']) + : Array.isArray(tsestreeOptions.debugLevel) + ? new Set(tsestreeOptions.debugLevel) + : new Set(), + errorOnTypeScriptSyntacticAndSemanticIssues: false, + errorOnUnknownASTType: tsestreeOptions.errorOnUnknownASTType === true, + extraFileExtensions: Array.isArray(tsestreeOptions.extraFileExtensions) && + tsestreeOptions.extraFileExtensions.every(ext => typeof ext === 'string') + ? tsestreeOptions.extraFileExtensions + : [], + filePath, + jsDocParsingMode, + jsx: tsestreeOptions.jsx === true, + log: typeof tsestreeOptions.loggerFn === 'function' + ? tsestreeOptions.loggerFn + : tsestreeOptions.loggerFn === false + ? () => { } // eslint-disable-line @typescript-eslint/no-empty-function + : console.log, // eslint-disable-line no-console + preserveNodeMaps: tsestreeOptions.preserveNodeMaps !== false, + programs: Array.isArray(tsestreeOptions.programs) + ? tsestreeOptions.programs + : null, + projects: new Map(), + projectService: tsestreeOptions.projectService || + (tsestreeOptions.project && + tsestreeOptions.projectService !== false && + process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE === 'true') + ? (TSSERVER_PROJECT_SERVICE ??= (0, createProjectService_1.createProjectService)(tsestreeOptions.projectService, jsDocParsingMode, tsconfigRootDir)) + : undefined, + setExternalModuleIndicator: tsestreeOptions.sourceType === 'module' || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mjs) || + (tsestreeOptions.sourceType === undefined && + extension === ts.Extension.Mts) + ? (file) => { + file.externalModuleIndicator = true; + } + : undefined, + singleRun, + suppressDeprecatedPropertyWarnings: tsestreeOptions.suppressDeprecatedPropertyWarnings ?? + process.env.NODE_ENV !== 'test', + tokens: tsestreeOptions.tokens === true ? [] : null, + tsconfigMatchCache: (TSCONFIG_MATCH_CACHE ??= new ExpiringCache_1.ExpiringCache(singleRun + ? 'Infinity' + : tsestreeOptions.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)), + tsconfigRootDir, + }; + // debug doesn't support multiple `enable` calls, so have to do it all at once + if (parseSettings.debugLevel.size > 0) { + const namespaces = []; + if (parseSettings.debugLevel.has('typescript-eslint')) { + namespaces.push('typescript-eslint:*'); + } + if (parseSettings.debugLevel.has('eslint') || + // make sure we don't turn off the eslint debug if it was enabled via --debug + debug_1.default.enabled('eslint:*,-eslint:code-path')) { + // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25 + namespaces.push('eslint:*,-eslint:code-path'); + } + debug_1.default.enable(namespaces.join(',')); + } + if (Array.isArray(tsestreeOptions.programs)) { + if (!tsestreeOptions.programs.length) { + throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`); + } + log('parserOptions.programs was provided, so parserOptions.project will be ignored.'); + } + // Providing a program or project service overrides project resolution + if (!parseSettings.programs && !parseSettings.projectService) { + parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({ + cacheLifetime: tsestreeOptions.cacheLifetime, + project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, tsestreeOptions.project), + projectFolderIgnoreList: tsestreeOptions.projectFolderIgnoreList, + singleRun: parseSettings.singleRun, + tsconfigRootDir, + }); + } + // No type-aware linting which means that cross-file (or even same-file) JSDoc is useless + // So in this specific case we default to 'none' if no value was provided + if (tsestreeOptions.jsDocParsingMode == null && + parseSettings.projects.size === 0 && + parseSettings.programs == null && + parseSettings.projectService == null) { + parseSettings.jsDocParsingMode = JSDocParsingMode.ParseNone; + } + (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings, passedLoggerFn); + return parseSettings; +} +function clearTSConfigMatchCache() { + TSCONFIG_MATCH_CACHE?.clear(); +} +function clearTSServerProjectService() { + TSSERVER_PROJECT_SERVICE = null; +} +/** + * Ensures source code is a string. + */ +function enforceCodeString(code) { + return (0, source_files_1.isSourceFile)(code) + ? code.getFullText(code) + : typeof code === 'string' + ? code + : String(code); +} +/** + * Compute the filename based on the parser options. + * + * Even if jsx option is set in typescript compiler, filename still has to + * contain .tsx file extension. + */ +function getFileName(jsx) { + return jsx ? 'estree.tsx' : 'estree.ts'; +} +//# sourceMappingURL=createParseSettings.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map new file mode 100644 index 00000000..69a39988 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,kDA8JC;AAED,0DAEC;AAED,kEAEC;AA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O,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts new file mode 100644 index 00000000..76103cf8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts @@ -0,0 +1,13 @@ +import type { TSESTreeOptions } from '../parser-options'; +import type { ParseSettings } from './index'; +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +export declare function getProjectConfigFiles(parseSettings: Pick, project: TSESTreeOptions['project']): string[] | null; +//# sourceMappingURL=getProjectConfigFiles.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map new file mode 100644 index 00000000..bf99e5dd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAClC,MAAM,EAAE,GAAG,IAAI,CAuCjB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js new file mode 100644 index 00000000..59cba04a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js @@ -0,0 +1,83 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProjectConfigFiles = getProjectConfigFiles; +const debug_1 = __importDefault(require("debug")); +const fs = __importStar(require("node:fs")); +const path = __importStar(require("node:path")); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles'); +/** + * Checks for a matching TSConfig to a file including its parent directories, + * permanently caching results under each directory it checks. + * + * @remarks + * We don't (yet!) have a way to attach file watchers on disk, but still need to + * cache file checks for rapid subsequent calls to fs.existsSync. See discussion + * in https://github.com/typescript-eslint/typescript-eslint/issues/101. + */ +function getProjectConfigFiles(parseSettings, project) { + if (project !== true) { + if (project == null || project === false) { + return null; + } + if (Array.isArray(project)) { + return project; + } + return [project]; + } + log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath); + let directory = path.dirname(parseSettings.filePath); + const checkedDirectories = [directory]; + do { + log('Checking tsconfig.json path: %s', directory); + const tsconfigPath = path.join(directory, 'tsconfig.json'); + const cached = parseSettings.tsconfigMatchCache.get(directory) ?? + (fs.existsSync(tsconfigPath) && tsconfigPath); + if (cached) { + for (const directory of checkedDirectories) { + parseSettings.tsconfigMatchCache.set(directory, cached); + } + return [cached]; + } + directory = path.dirname(directory); + checkedDirectories.push(directory); + } while (directory.length > 1 && + directory.length >= parseSettings.tsconfigRootDir.length); + throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`); +} +//# sourceMappingURL=getProjectConfigFiles.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map new file mode 100644 index 00000000..670d0ded --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map @@ -0,0 +1 @@ +{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EAAE,MAAM,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC;QAED,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACpC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC,QACC,SAAS,CAAC,MAAM,GAAG,CAAC;QACpB,SAAS,CAAC,MAAM,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts new file mode 100644 index 00000000..fcce131d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts @@ -0,0 +1,127 @@ +import type * as ts from 'typescript'; +import type { ProjectServiceSettings } from '../create-program/createProjectService'; +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTree } from '../ts-estree'; +import type { CacheLike } from './ExpiringCache'; +type DebugModule = 'eslint' | 'typescript' | 'typescript-eslint'; +declare module 'typescript' { + enum JSDocParsingMode { + } +} +declare module 'typescript/lib/tsserverlibrary' { + enum JSDocParsingMode { + } +} +/** + * Internal settings used by the parser to run on a file. + */ +export interface MutableParseSettings { + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + */ + allowInvalidAST: boolean; + /** + * Code of the file being parsed, or raw source file containing it. + */ + code: string | ts.SourceFile; + /** + * Full text of the file being parsed. + */ + codeFullText: string; + /** + * Whether the `comment` parse option is enabled. + */ + comment: boolean; + /** + * If the `comment` parse option is enabled, retrieved comments. + */ + comments: TSESTree.Comment[]; + /** + * Which debug areas should be logged. + */ + debugLevel: Set; + /** + * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. + */ + errorOnTypeScriptSyntacticAndSemanticIssues: boolean; + /** + * Whether to error if an unknown AST node type is encountered. + */ + errorOnUnknownASTType: boolean; + /** + * Any non-standard file extensions which will be parsed. + */ + extraFileExtensions: string[]; + /** + * Path of the file being parsed. + */ + filePath: string; + /** + * Sets the external module indicator on the source file. + * Used by Typescript to determine if a sourceFile is an external module. + * + * needed to always parsing `mjs`/`mts` files as ESM + */ + setExternalModuleIndicator?: (file: ts.SourceFile) => void; + /** + * JSDoc parsing style to pass through to TypeScript + */ + jsDocParsingMode: ts.JSDocParsingMode; + /** + * Whether parsing of JSX is enabled. + * + * @remarks The applicable file extension is still required. + */ + jsx: boolean; + /** + * Whether to add `loc` information to each node. + */ + loc: boolean; + /** + * Log function, if not `console.log`. + */ + log: (message: string) => void; + /** + * Whether two-way AST node maps are preserved during the AST conversion process. + */ + preserveNodeMaps?: boolean; + /** + * One or more instances of TypeScript Program objects to be used for type information. + */ + programs: Iterable | null; + /** + * Normalized paths to provided project paths. + */ + projects: ReadonlyMap; + /** + * TypeScript server to power program creation. + */ + projectService: ProjectServiceSettings | undefined; + /** + * Whether to add the `range` property to AST nodes. + */ + range: boolean; + /** + * Whether this is part of a single run, rather than a long-running process. + */ + singleRun: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings: boolean; + /** + * If the `tokens` parse option is enabled, retrieved tokens. + */ + tokens: TSESTree.Token[] | null; + /** + * Caches searches for TSConfigs from project directories. + */ + tsconfigMatchCache: CacheLike; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir: string; +} +export type ParseSettings = Readonly; +export {}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map new file mode 100644 index 00000000..dda000a8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,WAAW,GAAG,QAAQ,GAAG,YAAY,GAAG,mBAAmB,CAAC;AAGjE,OAAO,QAAQ,YAAY,CAAC;IAE1B,KAAK,gBAAgB;KAAG;CACzB;AAED,OAAO,QAAQ,gCAAgC,CAAC;IAE9C,KAAK,gBAAgB;KAAG;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC;IAE7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAE7B;;OAEG;IACH,2CAA2C,EAAE,OAAO,CAAC;IAErD;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC;IAEtC;;;;OAIG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAE7C;;OAEG;IACH,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEnD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,kCAAkC,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js new file mode 100644 index 00000000..aa219d8f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map new file mode 100644 index 00000000..66056421 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts new file mode 100644 index 00000000..1b28697f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts @@ -0,0 +1,15 @@ +import type { TSESTreeOptions } from '../parser-options'; +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; +//# sourceMappingURL=inferSingleRun.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map new file mode 100644 index 00000000..0c3f82e8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAsD5E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js new file mode 100644 index 00000000..0f71774e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js @@ -0,0 +1,66 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.inferSingleRun = inferSingleRun; +const node_path_1 = __importDefault(require("node:path")); +/** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. We therefore use the following logic to figure out which + * of these contexts applies to the current execution. + * + * @returns Whether this is part of a single run, rather than a long-running process. + */ +function inferSingleRun(options) { + // https://github.com/typescript-eslint/typescript-eslint/issues/9504 + // There's no support (yet?) for extraFileExtensions in single-run hosts. + // Only watch program hosts and project service can support that. + if (options?.extraFileExtensions?.length) { + return false; + } + if ( + // single-run implies type-aware linting - no projects means we can't be in single-run mode + options?.project == null || + // programs passed via options means the user should be managing the programs, so we shouldn't + // be creating our own single-run programs accidentally + options.programs != null) { + return false; + } + // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN + if (process.env.TSESTREE_SINGLE_RUN === 'false') { + return false; + } + if (process.env.TSESTREE_SINGLE_RUN === 'true') { + return true; + } + // Ideally, we'd like to try to auto-detect CI or CLI usage that lets us infer a single CLI run. + if (!options.disallowAutomaticSingleRunInference) { + const possibleEslintBinPaths = [ + 'node_modules/.bin/eslint', // npm or yarn repo + 'node_modules/eslint/bin/eslint.js', // pnpm repo + ]; + if ( + // Default to single runs for CI processes. CI=true is set by most CI providers by default. + process.env.CI === 'true' || + // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...` + possibleEslintBinPaths.some(binPath => process.argv.length > 1 && + process.argv[1].endsWith(node_path_1.default.normalize(binPath)))) { + return !process.argv.includes('--fix'); + } + } + /** + * We default to assuming that this run could be part of a long-running session (e.g. in an IDE) + * and watch programs will therefore be required. + * + * Unless we can reliably infer otherwise, we default to assuming that this run could be part + * of a long-running session (e.g. in an IDE) and watch programs will therefore be required + */ + return false; +} +//# sourceMappingURL=inferSingleRun.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map new file mode 100644 index 00000000..f25b8f3f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;;;AAgBA,wCAsDC;AAtED,0DAA6B;AAI7B;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE,qEAAqE;IACrE,yEAAyE;IACzE,iEAAiE;IACjE,IAAI,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;IACE,2FAA2F;IAC3F,OAAO,EAAE,OAAO,IAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,OAAO,CAAC,QAAQ,IAAI,IAAI,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gGAAgG;IAChG,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,CAAC;QACjD,MAAM,sBAAsB,GAAG;YAC7B,0BAA0B,EAAE,mBAAmB;YAC/C,mCAAmC,EAAE,YAAY;SAClD,CAAC;QACF;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,sBAAsB,CAAC,IAAI,CACzB,OAAO,CAAC,EAAE,CACR,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CACpD,EACD,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts new file mode 100644 index 00000000..4067aec9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts @@ -0,0 +1,19 @@ +import type { CanonicalPath } from '../create-program/shared'; +import type { TSESTreeOptions } from '../parser-options'; +export declare function clearGlobCache(): void; +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +export declare function resolveProjectList(options: Readonly<{ + cacheLifetime?: TSESTreeOptions['cacheLifetime']; + project: string[] | null; + projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; + singleRun: boolean; + tsconfigRootDir: string; +}>): ReadonlyMap; +/** + * Exported for testing purposes only + * @internal + */ +export declare function clearGlobResolutionCache(): void; +//# sourceMappingURL=resolveProjectList.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map new file mode 100644 index 00000000..ac7258ed --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAqBzD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACzB,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAgFpC;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js new file mode 100644 index 00000000..25bb0d74 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js @@ -0,0 +1,100 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearGlobCache = clearGlobCache; +exports.resolveProjectList = resolveProjectList; +exports.clearGlobResolutionCache = clearGlobResolutionCache; +const debug_1 = __importDefault(require("debug")); +const fast_glob_1 = require("fast-glob"); +const is_glob_1 = __importDefault(require("is-glob")); +const shared_1 = require("../create-program/shared"); +const ExpiringCache_1 = require("./ExpiringCache"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList'); +let RESOLUTION_CACHE = null; +function clearGlobCache() { + RESOLUTION_CACHE?.clear(); +} +/** + * Normalizes, sanitizes, resolves and filters the provided project paths + */ +function resolveProjectList(options) { + const sanitizedProjects = []; + // Normalize and sanitize the project paths + if (options.project != null) { + for (const project of options.project) { + if (typeof project === 'string') { + sanitizedProjects.push(project); + } + } + } + if (sanitizedProjects.length === 0) { + return new Map(); + } + const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']) + .filter(folder => typeof folder === 'string') + // prefix with a ! for not match glob + .map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); + const cacheKey = getHash({ + project: sanitizedProjects, + projectFolderIgnoreList, + tsconfigRootDir: options.tsconfigRootDir, + }); + if (RESOLUTION_CACHE == null) { + // note - we initialize the global cache based on the first config we encounter. + // this does mean that you can't have multiple lifetimes set per folder + // I doubt that anyone will really bother reconfiguring this, let alone + // try to do complicated setups, so we'll deal with this later if ever. + RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun + ? 'Infinity' + : options.cacheLifetime?.glob ?? + ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS); + } + else { + const cached = RESOLUTION_CACHE.get(cacheKey); + if (cached) { + return cached; + } + } + // Transform glob patterns into paths + const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project)); + const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); + let globProjectPaths = []; + if (globProjects.length > 0) { + // Although fast-glob supports multiple patterns, fast-glob returns arbitrary order of results + // to improve performance. To ensure the order is correct, we need to call fast-glob for each pattern + // separately and then concatenate the results in patterns' order. + globProjectPaths = globProjects.flatMap(pattern => (0, fast_glob_1.sync)(pattern, { + cwd: options.tsconfigRootDir, + ignore: projectFolderIgnoreList, + })); + } + const uniqueCanonicalProjectPaths = new Map([...nonGlobProjects, ...globProjectPaths].map(project => [ + (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)), + (0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir), + ])); + log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths); + RESOLUTION_CACHE.set(cacheKey, uniqueCanonicalProjectPaths); + return uniqueCanonicalProjectPaths; +} +function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) { + // create a stable representation of the config + const hashObject = { + tsconfigRootDir, + // the project order does matter and can impact the resolved globs + project, + // the ignore order won't doesn't ever matter + projectFolderIgnoreList: [...projectFolderIgnoreList].sort(), + }; + return (0, shared_1.createHash)(JSON.stringify(hashObject)); +} +/** + * Exported for testing purposes only + * @internal + */ +function clearGlobResolutionCache() { + RESOLUTION_CACHE?.clear(); + RESOLUTION_CACHE = null; +} +//# sourceMappingURL=resolveProjectList.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map new file mode 100644 index 00000000..e0540108 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map @@ -0,0 +1 @@ +{"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;AA0BA,wCAEC;AAKD,gDAwFC;AA2BD,4DAGC;AAvJD,kDAA0B;AAC1B,yCAA6C;AAC7C,sDAA6B;AAK7B,qDAIkC;AAClC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAGT,IAAI,CAAC;AAEhB,SAAgB,cAAc;IAC5B,gBAAgB,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OAME;IAEF,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,2CAA2C;IAC3C,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE,CAAC;QAC5B,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACtC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAA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AC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts new file mode 100644 index 00000000..e0abdc5f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts @@ -0,0 +1,7 @@ +import type { ParseSettings } from './index'; +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +export declare const SUPPORTED_TYPESCRIPT_VERSIONS = ">=4.8.4 <5.8.0"; +export declare function warnAboutTSVersion(parseSettings: ParseSettings, passedLoggerFn: boolean): void; +//# sourceMappingURL=warnAboutTSVersion.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map new file mode 100644 index 00000000..7e51a2b2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAe9D,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,OAAO,GACtB,IAAI,CA0BN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js new file mode 100644 index 00000000..10ac3e95 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js @@ -0,0 +1,77 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SUPPORTED_TYPESCRIPT_VERSIONS = void 0; +exports.warnAboutTSVersion = warnAboutTSVersion; +const semver_1 = __importDefault(require("semver")); +const ts = __importStar(require("typescript")); +/** + * This needs to be kept in sync with package.json in the typescript-eslint monorepo + */ +exports.SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.8.4 <5.8.0'; +/* + * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one + * List them all separately here, so we can automatically create the full string + */ +const SUPPORTED_PRERELEASE_RANGES = []; +const ACTIVE_TYPESCRIPT_VERSION = ts.version; +const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [exports.SUPPORTED_TYPESCRIPT_VERSIONS, ...SUPPORTED_PRERELEASE_RANGES].join(' || ')); +let warnedAboutTSVersion = false; +function warnAboutTSVersion(parseSettings, passedLoggerFn) { + if (isRunningSupportedTypeScriptVersion || warnedAboutTSVersion) { + return; + } + if (passedLoggerFn || + // See https://github.com/typescript-eslint/typescript-eslint/issues/7896 + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + (typeof process === 'undefined' ? false : process.stdout?.isTTY)) { + const border = '============='; + const versionWarning = [ + border, + 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.', + 'You may find that it works just fine, or you may not.', + `SUPPORTED TYPESCRIPT VERSIONS: ${exports.SUPPORTED_TYPESCRIPT_VERSIONS}`, + `YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`, + 'Please only submit bug reports when using the officially supported version.', + border, + ].join('\n\n'); + parseSettings.log(versionWarning); + } + warnedAboutTSVersion = true; +} +//# sourceMappingURL=warnAboutTSVersion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map new file mode 100644 index 00000000..e970adc3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,gDA6BC;AApDD,oDAA4B;AAC5B,+CAAiC;AAIjC;;GAEG;AACU,QAAA,6BAA6B,GAAG,gBAAgB,CAAC;AAE9D;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,qCAA6B,EAAE,GAAG,2BAA2B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAC7E,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAChC,aAA4B,EAC5B,cAAuB;IAEvB,IAAI,mCAAmC,IAAI,oBAAoB,EAAE,CAAC;QAChE,OAAO;IACT,CAAC;IAED,IACE,cAAc;QACd,yEAAyE;QACzE,uEAAuE;QACvE,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAChE,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC;QAC/B,MAAM,cAAc,GAAG;YACrB,MAAM;YACN,uIAAuI;YACvI,uDAAuD;YACvD,kCAAkC,qCAA6B,EAAE;YACjE,4BAA4B,yBAAyB,EAAE;YACvD,6EAA6E;YAC7E,MAAM;SACP,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEf,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,GAAG,IAAI,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts new file mode 100644 index 00000000..307ab20b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts @@ -0,0 +1,206 @@ +import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions, SourceType } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; +export type { ProjectServiceOptions } from '@typescript-eslint/types'; +interface ParseOptions { + /** + * Specify the `sourceType`. + * For more details, see https://github.com/typescript-eslint/typescript-eslint/pull/9121 + */ + sourceType?: SourceType; + /** + * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. + * This case only usually occurs when attempting to lint invalid code. + */ + allowInvalidAST?: boolean; + /** + * create a top-level comments array containing all comments + */ + comment?: boolean; + /** + * An array of modules to turn explicit debugging on for. + * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` + * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` + * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions + * + * For convenience, also supports a boolean: + * - true === ['typescript-eslint'] + * - false === [] + */ + debugLevel?: DebugLevel; + /** + * Cause the parser to error if it encounters an unknown AST node type (useful for testing). + * This case only usually occurs when TypeScript releases new features. + */ + errorOnUnknownASTType?: boolean; + /** + * Absolute (or relative to `cwd`) path to the file being parsed. + */ + filePath?: string; + /** + * If you are using TypeScript version >=5.3 then this option can be used as a performance optimization. + * + * The valid values for this rule are: + * - `'all'` - parse all JSDoc comments, always. + * - `'none'` - parse no JSDoc comments, ever. + * - `'type-info'` - parse just JSDoc comments that are required to provide correct type-info. TS will always parse JSDoc in non-TS files, but never in TS files. + * + * If you do not rely on JSDoc tags from the TypeScript AST, then you can safely set this to `'none'` to improve performance. + */ + jsDocParsingMode?: JSDocParsingMode; + /** + * Enable parsing of JSX. + * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html + * + * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the + * TypeScript compiler has its own internal handling for known file extensions. + * + * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx + */ + jsx?: boolean; + /** + * Controls whether the `loc` information to each node. + * The `loc` property is an object which contains the exact line/column the node starts/ends on. + * This is similar to the `range` property, except it is line/column relative. + */ + loc?: boolean; + loggerFn?: ((message: string) => void) | false; + /** + * Controls whether the `range` property is included on AST nodes. + * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. + * This is similar to the `loc` property, except this is the absolute index. + */ + range?: boolean; + /** + * Set to true to create a top-level array containing all tokens from the file. + */ + tokens?: boolean; + /** + * Whether deprecated AST properties should skip calling console.warn on accesses. + */ + suppressDeprecatedPropertyWarnings?: boolean; +} +interface ParseAndGenerateServicesOptions extends ParseOptions { + /** + * Granular control of the expiry lifetime of our internal caches. + * You can specify the number of seconds as an integer number, or the string + * 'Infinity' if you never want the cache to expire. + * + * By default cache entries will be evicted after 30 seconds, or will persist + * indefinitely if `disallowAutomaticSingleRunInference = false` AND the parser + * infers that it is a single run. + */ + cacheLifetime?: { + /** + * Glob resolution for `parserOptions.project` values. + */ + glob?: CacheDurationSeconds; + }; + /** + * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, + * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback + * on a file in an IDE). + * + * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction + * is important because there is significant overhead to managing the so called Watch Programs + * needed for the long-running use-case. + * + * By default, we will use common heuristics to infer whether ESLint is being + * used as part of a single run. This option disables those heuristics, and + * therefore the performance optimizations gained by them. + * + * In other words, typescript-eslint is faster by default, and this option + * disables an automatic performance optimization. + * + * This setting's default value can be specified by setting a `TSESTREE_SINGLE_RUN` + * environment variable to `"false"` or `"true"`. + * Otherwise, the default value is `false`. + */ + disallowAutomaticSingleRunInference?: boolean; + /** + * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. + */ + errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; + /** + * When `project` is provided, this controls the non-standard file extensions which will be parsed. + * It accepts an array of file extensions, each preceded by a `.`. + * + * NOTE: When used with {@link projectService}, full project reloads may occur. + */ + extraFileExtensions?: string[]; + /** + * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. + * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. + */ + filePath?: string; + /** + * Allows the user to control whether or not two-way AST node maps are preserved + * during the AST conversion process. + * + * By default: the AST node maps are NOT preserved, unless `project` has been specified, + * in which case the maps are made available on the returned `parserServices`. + * + * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, + * regardless of whether or not `project` is in use. + */ + preserveNodeMaps?: boolean; + /** + * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), + * or `true` to find the nearest tsconfig.json to the file. + * If this is provided, type information will be returned. + * + * If set to `false`, `null` or `undefined` type information will not be returned. + * + * Note that {@link projectService} is now preferred. + */ + project?: boolean | string | string[] | null; + /** + * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from + * being matched by the globs. + * This accepts an array of globs to ignore. + * + * By default, this is set to ["**\/node_modules/**"] + */ + projectFolderIgnoreList?: string[]; + /** + * Whether to create a shared TypeScript project service to power program creation. + */ + projectService?: boolean | ProjectServiceOptions; + /** + * The absolute path to the root directory for all provided `project`s. + */ + tsconfigRootDir?: string; + /** + * An array of one or more instances of TypeScript Program objects to be used for type information. + * This overrides any program or programs that would have been computed from the `project` option. + * All linted files must be part of the provided program(s). + */ + programs?: ts.Program[] | null; +} +export type TSESTreeOptions = ParseAndGenerateServicesOptions; +export interface ParserWeakMap { + get(key: Key): Value; + has(key: unknown): boolean; +} +export interface ParserWeakMapESTreeToTSNode { + get(key: KeyBase): TSESTreeToTSNode; + has(key: unknown): boolean; +} +export interface ParserServicesBase { + emitDecoratorMetadata: boolean | undefined; + experimentalDecorators: boolean | undefined; +} +export interface ParserServicesNodeMaps { + esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; + tsNodeToESTreeNodeMap: ParserWeakMap; +} +export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined; + getTypeAtLocation: (node: TSESTree.Node) => ts.Type; + program: ts.Program; +} +export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { + program: null; +} +export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation; +//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map new file mode 100644 index 00000000..b861338e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/E,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAMtE,UAAU,YAAY;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;O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M,cAAc,GACtB,oCAAoC,GACpC,iCAAiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js new file mode 100644 index 00000000..66f40a29 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map new file mode 100644 index 00000000..22b7b8ab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts new file mode 100644 index 00000000..eacc856c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts @@ -0,0 +1,19 @@ +import type * as ts from 'typescript'; +import type { ParserServices, TSESTreeOptions } from './parser-options'; +import type { TSESTree } from './ts-estree'; +declare function clearProgramCache(): void; +declare function clearDefaultProjectMatchedFiles(): void; +type AST = (T['comment'] extends true ? { + comments: TSESTree.Comment[]; +} : {}) & (T['tokens'] extends true ? { + tokens: TSESTree.Token[]; +} : {}) & TSESTree.Program; +interface ParseAndGenerateServicesResult { + ast: AST; + services: ParserServices; +} +declare function parse(code: string, options?: T): AST; +declare function clearParseAndGenerateServicesCalls(): void; +declare function parseAndGenerateServices(code: string | ts.SourceFile, tsestreeOptions: T): ParseAndGenerateServicesResult; +export { type AST, clearDefaultProjectMatchedFiles, clearParseAndGenerateServicesCalls, clearProgramCache, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, }; +//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map new file mode 100644 index 00000000..1a972b96 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4B5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAGD,iBAAS,+BAA+B,IAAI,IAAI,CAE/C;AA8CD,KAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAC5D;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAChC,EAAE,CAAC,GACL,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,GAC9D,QAAQ,CAAC,OAAO,CAAC;AAGnB,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA4CD,iBAAS,kCAAkC,IAAI,IAAI,CAElD;AAED,iBAAS,wBAAwB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3E,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,EAAE,CAAC,GACjB,8BAA8B,CAAC,CAAC,CAAC,CA+GnC;AAED,OAAO,EACL,KAAK,GAAG,EACR,+BAA+B,EAC/B,kCAAkC,EAClC,iBAAiB,EACjB,KAAK,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js new file mode 100644 index 00000000..b0f56381 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js @@ -0,0 +1,181 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearDefaultProjectMatchedFiles = clearDefaultProjectMatchedFiles; +exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; +exports.clearProgramCache = clearProgramCache; +exports.parse = parse; +exports.parseAndGenerateServices = parseAndGenerateServices; +const debug_1 = __importDefault(require("debug")); +const ast_converter_1 = require("./ast-converter"); +const convert_1 = require("./convert"); +const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram"); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); +const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); +const createParserServices_1 = require("./createParserServices"); +const createParseSettings_1 = require("./parseSettings/createParseSettings"); +const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors"); +const useProgramFromProjectService_1 = require("./useProgramFromProjectService"); +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser'); +/** + * Cache existing programs for the single run use-case. + * + * clearProgramCache() is only intended to be used in testing to ensure the parser is clean between tests. + */ +const existingPrograms = new Map(); +function clearProgramCache() { + existingPrograms.clear(); +} +const defaultProjectMatchedFiles = new Set(); +function clearDefaultProjectMatchedFiles() { + defaultProjectMatchedFiles.clear(); +} +/** + * @param parseSettings Internal settings for parsing the file + * @param hasFullTypeInformation True if the program should be attempted to be calculated from provided tsconfig files + * @returns Returns a source file and program corresponding to the linted code + */ +function getProgramAndAST(parseSettings, hasFullTypeInformation) { + if (parseSettings.projectService) { + const fromProjectService = (0, useProgramFromProjectService_1.useProgramFromProjectService)(parseSettings.projectService, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles); + if (fromProjectService) { + return fromProjectService; + } + } + if (parseSettings.programs) { + const fromProvidedPrograms = (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings); + if (fromProvidedPrograms) { + return fromProvidedPrograms; + } + } + // no need to waste time creating a program as the caller didn't want parser services + // so we can save time and just create a lonesome source file + if (!hasFullTypeInformation) { + return (0, createSourceFile_1.createNoProgram)(parseSettings); + } + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, (0, getWatchProgramsForProjects_1.getWatchProgramsForProjects)(parseSettings)); +} +function parse(code, options) { + const { ast } = parseWithNodeMapsInternal(code, options, false); + return ast; +} +function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); + /** + * Ensure users do not attempt to use parse() when they need parseAndGenerateServices() + */ + if (options?.errorOnTypeScriptSyntacticAndSemanticIssues) { + throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`); + } + /** + * Create a ts.SourceFile directly, no ts.Program is needed for a simple parse + */ + const ast = (0, createSourceFile_1.createSourceFile)(parseSettings); + /** + * Convert the TypeScript AST to an ESTree-compatible one + */ + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + return { + ast: estree, + esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, + tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, + }; +} +let parseAndGenerateServicesCalls = {}; +// Privately exported utility intended for use in typescript-eslint unit tests only +function clearParseAndGenerateServicesCalls() { + parseAndGenerateServicesCalls = {}; +} +function parseAndGenerateServices(code, tsestreeOptions) { + /** + * Reset the parse configuration + */ + const parseSettings = (0, createParseSettings_1.createParseSettings)(code, tsestreeOptions); + /** + * If this is a single run in which the user has not provided any existing programs but there + * are programs which need to be created from the provided "project" option, + * create an Iterable which will lazily create the programs as needed by the iteration logic + */ + if (parseSettings.singleRun && + !parseSettings.programs && + parseSettings.projects.size > 0) { + parseSettings.programs = { + *[Symbol.iterator]() { + for (const configFile of parseSettings.projects) { + const existingProgram = existingPrograms.get(configFile[0]); + if (existingProgram) { + yield existingProgram; + } + else { + log('Detected single-run/CLI usage, creating Program once ahead of time for project: %s', configFile); + const newProgram = (0, useProvidedPrograms_1.createProgramFromConfigFile)(configFile[1]); + existingPrograms.set(configFile[0], newProgram); + yield newProgram; + } + } + }, + }; + } + const hasFullTypeInformation = parseSettings.programs != null || + parseSettings.projects.size > 0 || + !!parseSettings.projectService; + if (typeof tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues === + 'boolean' && + tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues) { + parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true; + } + if (parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues && + !hasFullTypeInformation) { + throw new Error('Cannot calculate TypeScript semantic issues without a valid project.'); + } + /** + * If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file, + * it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional + * 10 times in order to apply all possible fixes for the file). + * + * In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source + * with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source. + */ + if (parseSettings.singleRun && tsestreeOptions.filePath) { + parseAndGenerateServicesCalls[tsestreeOptions.filePath] = + (parseAndGenerateServicesCalls[tsestreeOptions.filePath] || 0) + 1; + } + const { ast, program } = parseSettings.singleRun && + tsestreeOptions.filePath && + parseAndGenerateServicesCalls[tsestreeOptions.filePath] > 1 + ? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings) + : getProgramAndAST(parseSettings, hasFullTypeInformation); + /** + * Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve + * mappings between converted and original AST nodes + */ + const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean' + ? parseSettings.preserveNodeMaps + : true; + const { astMaps, estree } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); + /** + * Even if TypeScript parsed the source code ok, and we had no problems converting the AST, + * there may be other syntactic or semantic issues in the code that we can optionally report on. + */ + if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) { + const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast); + if (error) { + throw (0, convert_1.convertError)(error); + } + } + /** + * Return the converted AST and additional parser services + */ + return { + ast: estree, + services: (0, createParserServices_1.createParserServices)(astMaps, program), + }; +} +//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map new file mode 100644 index 00000000..30ae23a8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AAwRE,0EAA+B;AAC/B,gFAAkC;AAClC,8CAAiB;AACjB,sBAAK;AACL,4DAAwB;AA1R1B,kDAA0B;AAW1B,mDAA+C;AAC/C,uCAAyC;AACzC,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAG2C;AAC3C,8FAA2F;AAC3F,8EAG8C;AAC9C,iEAA8D;AAC9D,6EAA0E;AAC1E,iFAAkF;AAClF,iFAA8E;AAE9E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;AACrD,SAAS,+BAA+B;IACtC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,sBAA+B;IAE/B,IAAI,aAAa,CAAC,cAAc,EAAE,CAAC;QACjC,MAAM,kBAAkB,GAAG,IAAA,2DAA4B,EACrD,aAAa,CAAC,cAAc,EAC5B,aAAa,EACb,sBAAsB,EACtB,0BAA0B,CAC3B,CAAC;QACF,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO,kBAAkB,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;QAC3B,MAAM,oBAAoB,GAAG,IAAA,yCAAmB,EAC9C,aAAa,CAAC,QAAQ,EACtB,aAAa,CACd,CAAC;QACF,IAAI,oBAAoB,EAAE,CAAC;YACzB,OAAO,oBAA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;;;OAOG;IACH,IAAI,aAAa,CAAC,SAAS,IAAI,eAAe,CAAC,QAAQ,EAAE,CAAC;QACxD,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC;YACrD,CAAC,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GACpB,aAAa,CAAC,SAAS;QACvB,eAAe,CAAC,QAAQ;QACxB,6BAA6B,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC;QACzD,CAAC,CAAC,IAAA,6CAAqB,EAAC,aAAa,CAAC;QACtC,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,gBAAgB,KAAK,SAAS;QACjD,CAAC,CAAC,aAAa,CAAC,gBAAgB;QAChC,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAA,4BAAY,EACtC,GAAG,EACH,aAAa,EACb,sBAAsB,CACvB,CAAC;IAEF;;;OAGG;IACH,IAAI,OAAO,IAAI,aAAa,CAAC,2CAA2C,EAAE,CAAC;QACzE,MAAM,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts new file mode 100644 index 00000000..bd35968c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts @@ -0,0 +1,13 @@ +import type { Diagnostic, Program, SourceFile } from 'typescript'; +export interface SemanticOrSyntacticError extends Diagnostic { + message: string; +} +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; +//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map new file mode 100644 index 00000000..63d13a71 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.d.ts","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,OAAO,EACP,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,GACd,wBAAwB,GAAG,SAAS,CAmCtC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js new file mode 100644 index 00000000..fd3abc68 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js @@ -0,0 +1,95 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getFirstSemanticOrSyntacticError = getFirstSemanticOrSyntacticError; +const typescript_1 = require("typescript"); +/** + * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether + * they are related to generic ECMAScript standards, or TypeScript-specific constructs. + * + * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when + * the user opts in to throwing errors on semantic issues. + */ +function getFirstSemanticOrSyntacticError(program, ast) { + try { + const supportedSyntacticDiagnostics = allowlistSupportedDiagnostics(program.getSyntacticDiagnostics(ast)); + if (supportedSyntacticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSyntacticDiagnostics[0]); + } + const supportedSemanticDiagnostics = allowlistSupportedDiagnostics(program.getSemanticDiagnostics(ast)); + if (supportedSemanticDiagnostics.length > 0) { + return convertDiagnosticToSemanticOrSyntacticError(supportedSemanticDiagnostics[0]); + } + return undefined; + } + catch (e) { + /** + * TypeScript compiler has certain Debug.fail() statements in, which will cause the diagnostics + * retrieval above to throw. + * + * E.g. from ast-alignment-tests + * "Debug Failure. Shouldn't ever directly check a JsxOpeningElement" + * + * For our current use-cases this is undesired behavior, so we just suppress it + * and log a warning. + */ + /* istanbul ignore next */ + console.warn(`Warning From TSC: "${e.message}`); // eslint-disable-line no-console + /* istanbul ignore next */ + return undefined; + } +} +function allowlistSupportedDiagnostics(diagnostics) { + return diagnostics.filter(diagnostic => { + switch (diagnostic.code) { + case 1013: // "A rest parameter or binding pattern may not have a trailing comma." + case 1014: // "A rest parameter must be last in a parameter list." + case 1044: // "'{0}' modifier cannot appear on a module or namespace element." + case 1045: // "A '{0}' modifier cannot be used with an interface declaration." + case 1048: // "A rest parameter cannot have an initializer." + case 1049: // "A 'set' accessor must have exactly one parameter." + case 1070: // "'{0}' modifier cannot appear on a type member." + case 1071: // "'{0}' modifier cannot appear on an index signature." + case 1085: // "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'." + case 1090: // "'{0}' modifier cannot appear on a parameter." + case 1096: // "An index signature must have exactly one parameter." + case 1097: // "'{0}' list cannot be empty." + case 1098: // "Type parameter list cannot be empty." + case 1099: // "Type argument list cannot be empty." + case 1117: // "An object literal cannot have multiple properties with the same name in strict mode." + case 1121: // "Octal literals are not allowed in strict mode." + case 1123: // "Variable declaration list cannot be empty." + case 1141: // "String literal expected." + case 1162: // "An object member cannot be declared optional." + case 1164: // "Computed property names are not allowed in enums." + case 1172: // "'extends' clause already seen." + case 1173: // "'extends' clause must precede 'implements' clause." + case 1175: // "'implements' clause already seen." + case 1176: // "Interface declaration cannot have 'implements' clause." + case 1190: // "The variable declaration of a 'for...of' statement cannot have an initializer." + case 1196: // "Catch clause variable type annotation must be 'any' or 'unknown' if specified." + case 1200: // "Line terminator not permitted before arrow." + case 1206: // "Decorators are not valid here." + case 1211: // "A class declaration without the 'default' modifier must have a name." + case 1242: // "'abstract' modifier can only appear on a class, method, or property declaration." + case 1246: // "An interface property cannot have an initializer." + case 1255: // "A definite assignment assertion '!' is not permitted in this context." + case 1308: // "'await' expression is only allowed within an async function." + case 2364: // "The left-hand side of an assignment expression must be a variable or a property access." + case 2369: // "A parameter property is only allowed in a constructor implementation." + case 2452: // "An enum member cannot have a numeric name." + case 2462: // "A rest element must be last in a destructuring pattern." + case 8017: // "Octal literal types must use ES2015 syntax. Use the syntax '{0}'." + case 17012: // "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?" + case 17013: // "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor." + return true; + } + return false; + }); +} +function convertDiagnosticToSemanticOrSyntacticError(diagnostic) { + return { + ...diagnostic, + message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine), + }; +} +//# sourceMappingURL=semantic-or-syntactic-errors.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map new file mode 100644 index 00000000..fb8c32cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"semantic-or-syntactic-errors.js","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":";;AAoBA,4EAsCC;AAnDD,2CAA+D;AAM/D;;;;;;GAMG;AACH,SAAgB,gCAAgC,CAC9C,OAAgB,EAChB,GAAe;IAEf,IAAI,CAAC;QACH,MAAM,6BAA6B,GAAG,6BAA6B,CACjE,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACrC,CAAC;QACF,IAAI,6BAA6B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,OAAO,2CAA2C,CAChD,6BAA6B,CAAC,CAAC,CAAC,CACjC,CAAC;QACJ,CAAC;QACD,MAAM,4BAA4B,GAAG,6BAA6B,CAChE,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpC,CAAC;QACF,IAAI,4BAA4B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,2CAA2C,CAChD,4BAA4B,CAAC,CAAC,CAAC,CAChC,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX;;;;;;;;;WASG;QACH,0BAA0B;QAC1B,OAAO,CAAC,IAAI,CAAC,sBAAuB,CAAW,CAAC,OAAO,EAAE,CA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F;YAC9F,KAAK,IAAI,CAAC,CAAC,gDAAgD;YAC3D,KAAK,IAAI,CAAC,CAAC,mCAAmC;YAC9C,KAAK,IAAI,CAAC,CAAC,yEAAyE;YACpF,KAAK,IAAI,CAAC,CAAC,qFAAqF;YAChG,KAAK,IAAI,CAAC,CAAC,sDAAsD;YACjE,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,iEAAiE;YAC5E,KAAK,IAAI,CAAC,CAAC,4FAA4F;YACvG,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,+CAA+C;YAC1D,KAAK,IAAI,CAAC,CAAC,4DAA4D;YACvE,KAAK,IAAI,CAAC,CAAC,sEAAsE;YACjF,KAAK,KAAK,CAAC,CAAC,8EAA8E;YAC1F,KAAK,KAAK,EAAE,oHAAoH;gBAC9H,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,UAAsB;IAEtB,OAAO;QACL,GAAG,UAAU;QACb,OAAO,EAAE,IAAA,yCAA4B,EAAC,UAAU,CAAC,WAAW,EAAE,gBAAG,CAAC,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts new file mode 100644 index 00000000..9b6b4c67 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts @@ -0,0 +1,12 @@ +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +import type { TSESTree } from './ts-estree'; +type SimpleTraverseOptions = Readonly<{ + enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; + visitorKeys?: Readonly; +} | { + visitorKeys?: Readonly; + visitors: Record void>; +}>; +export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; +export {}; +//# sourceMappingURL=simple-traverse.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map new file mode 100644 index 00000000..9abec97f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAInE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACxE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CACd,MAAM,EACN,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CACjE,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js new file mode 100644 index 00000000..822897f3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.simpleTraverse = simpleTraverse; +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function isValidNode(x) { + return (typeof x === 'object' && + x != null && + 'type' in x && + typeof x.type === 'string'); +} +function getVisitorKeysForNode(allVisitorKeys, node) { + const keys = allVisitorKeys[node.type]; + return (keys ?? []); +} +class SimpleTraverser { + allVisitorKeys = visitor_keys_1.visitorKeys; + selectors; + setParentPointers; + constructor(selectors, setParentPointers = false) { + this.selectors = selectors; + this.setParentPointers = setParentPointers; + if (selectors.visitorKeys) { + this.allVisitorKeys = selectors.visitorKeys; + } + } + traverse(node, parent) { + if (!isValidNode(node)) { + return; + } + if (this.setParentPointers) { + node.parent = parent; + } + if ('enter' in this.selectors) { + this.selectors.enter(node, parent); + } + else if (node.type in this.selectors.visitors) { + this.selectors.visitors[node.type](node, parent); + } + const keys = getVisitorKeysForNode(this.allVisitorKeys, node); + if (keys.length < 1) { + return; + } + for (const key of keys) { + const childOrChildren = node[key]; + if (Array.isArray(childOrChildren)) { + for (const child of childOrChildren) { + this.traverse(child, node); + } + } + else { + this.traverse(childOrChildren, node); + } + } + } +} +function simpleTraverse(startingNode, options, setParentPointers = false) { + new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined); +} +//# sourceMappingURL=simple-traverse.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map new file mode 100644 index 00000000..1f98fe29 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-traverse.js","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":";;AAoFA,wCASC;AA3FD,kEAA8D;AAI9D,SAAS,WAAW,CAAC,CAAU;IAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,IAAI,IAAI;QACT,MAAM,IAAI,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,cAAkC,EAClC,IAAmB;IAEnB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAU,CAAC;AAC/B,CAAC;AAgBD,MAAM,eAAe;IACF,cAAc,GAA0B,0BAAW,CAAC;IACpD,SAAS,CAAwB;IACjC,iBAAiB,CAAU;IAE5C,YAAY,SAAgC,EAAE,iBAAiB,GAAG,KAAK;QACrE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YAC1B,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,QAAQ,CAAC,IAAa,EAAE,MAAiC;QACvD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACnC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;oBACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,SAAgB,cAAc,CAC5B,YAA2B,EAC3B,OAA8B,EAC9B,iBAAiB,GAAG,KAAK;IAEzB,IAAI,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACtD,YAAY,EACZ,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts new file mode 100644 index 00000000..756b7815 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts @@ -0,0 +1,4 @@ +import * as ts from 'typescript'; +export declare function isSourceFile(code: unknown): code is ts.SourceFile; +export declare function getCodeText(code: string | ts.SourceFile): string; +//# sourceMappingURL=source-files.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map new file mode 100644 index 00000000..68685a97 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,UAAU,CAUjE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js new file mode 100644 index 00000000..e99efd84 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSourceFile = isSourceFile; +exports.getCodeText = getCodeText; +const ts = __importStar(require("typescript")); +function isSourceFile(code) { + if (typeof code !== 'object' || code == null) { + return false; + } + const maybeSourceFile = code; + return (maybeSourceFile.kind === ts.SyntaxKind.SourceFile && + typeof maybeSourceFile.getFullText === 'function'); +} +function getCodeText(code) { + return isSourceFile(code) ? code.getFullText(code) : code; +} +//# sourceMappingURL=source-files.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map new file mode 100644 index 00000000..4d00af8c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map @@ -0,0 +1 @@ +{"version":3,"file":"source-files.js","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAUC;AAED,kCAEC;AAhBD,+CAAiC;AAEjC,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,IAA8B,CAAC;IACvD,OAAO,CACL,eAAe,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;QACjD,OAAO,eAAe,CAAC,WAAW,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC;AAED,SAAgB,WAAW,CAAC,IAA4B;IACtD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts new file mode 100644 index 00000000..63ea30eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts @@ -0,0 +1,179 @@ +import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; +import type * as ts from 'typescript'; +import type { TSNode } from './ts-nodes'; +export interface EstreeToTsNodeTypes { + [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression; + [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; + [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; + [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.BlockStatement]: ts.Block; + [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; + [AST_NODE_TYPES.CallExpression]: ts.CallExpression; + [AST_NODE_TYPES.CatchClause]: ts.CatchClause; + [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; + [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; + [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; + [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; + [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; + [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; + [AST_NODE_TYPES.Decorator]: ts.Decorator; + [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; + [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; + [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; + [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; + [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; + [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; + [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; + [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; + [AST_NODE_TYPES.ForStatement]: ts.ForStatement; + [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; + [AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token; + [AST_NODE_TYPES.IfStatement]: ts.IfStatement; + [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; + [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry; + [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; + [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; + [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; + [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; + [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; + [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; + [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; + [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; + [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; + [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; + [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; + [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; + [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; + [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; + [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; + [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; + [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; + [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; + [AST_NODE_TYPES.JSXText]: ts.JsxText; + [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; + [AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral; + [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression; + [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; + [AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.NewExpression]: ts.NewExpression; + [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; + [AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression; + [AST_NODE_TYPES.Program]: ts.SourceFile; + [AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment; + [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; + [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; + [AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement; + [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; + [AST_NODE_TYPES.Super]: ts.SuperExpression; + [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; + [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; + [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; + [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; + [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; + [AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression; + [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; + [AST_NODE_TYPES.TryStatement]: ts.TryStatement; + [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; + [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; + [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; + [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; + [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; + [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; + [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; + [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; + [AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; + [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; + [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; + [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; + [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; + [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; + [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; + [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; + [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; + [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; + [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; + [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; + [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; + [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; + [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; + [AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; + [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; + [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; + [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; + [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; + [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; + [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; + [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; + [AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName; + [AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode; + [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; + [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; + [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; + [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; + [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; + [AST_NODE_TYPES.TSTypeAnnotation]: undefined; + [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; + [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; + [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; + [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; + [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; + [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode; + [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; + [AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode; + [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; + [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; + [AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression; + [AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression; + [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; + [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; + [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; + [AST_NODE_TYPES.WithStatement]: ts.WithStatement; + [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; + [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; + [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; + [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral; + [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; + [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; + [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; + [AST_NODE_TYPES.TSExportKeyword]: ts.Token; + [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; + [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; + [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; + [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; + [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; +} +/** + * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). + * This mapping is based on the internal logic of the parser. + */ +export type TSESTreeToTSNode = Extract | TSNode, EstreeToTsNodeTypes[T['type']]>; +//# sourceMappingURL=estree-to-ts-node-types.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map new file mode 100644 index 00000000..9f13f56a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.d.ts","sourceRoot":"","sources":["../../src/ts-estree/estree-to-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CAAC,GAAG,MAAM,EAEzE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC/B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js new file mode 100644 index 00000000..e92a96f2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=estree-to-ts-node-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map new file mode 100644 index 00000000..a9cfa15f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"estree-to-ts-node-types.js","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts new file mode 100644 index 00000000..11458c20 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts @@ -0,0 +1,4 @@ +export * from './estree-to-ts-node-types'; +export * from './ts-nodes'; +export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map new file mode 100644 index 00000000..8b223729 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js new file mode 100644 index 00000000..33dc61ff --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js @@ -0,0 +1,25 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +// for simplicity and backwards-compatibility +__exportStar(require("./estree-to-ts-node-types"), exports); +__exportStar(require("./ts-nodes"), exports); +var types_1 = require("@typescript-eslint/types"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); +Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map new file mode 100644 index 00000000..db728cec --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,4DAA0C;AAC1C,6CAA2B;AAC3B,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts new file mode 100644 index 00000000..fe674a96 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts @@ -0,0 +1,18 @@ +import type * as ts from 'typescript'; +declare module 'typescript' { + interface AssertClause extends ts.ImportAttributes { + } + interface AssertEntry extends ts.ImportAttribute { + } + interface SatisfiesExpression extends ts.Node { + } + interface JsxNamespacedName extends ts.Node { + } + interface ImportAttribute extends ts.Node { + } + interface ImportAttributes extends ts.Node { + } +} +export type TSToken = ts.Token; +export type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression; +//# sourceMappingURL=ts-nodes.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map new file mode 100644 index 00000000..e676701a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.d.ts","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,QAAQ,YAAY,CAAC;IAE1B,UAAiB,YAAa,SAAQ,EAAE,CAAC,gBAAgB;KAAG;IAC5D,UAAiB,WAAY,SAAQ,EAAE,CAAC,eAAe;KAAG;IAE1D,UAAiB,mBAAoB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAEvD,UAAiB,iBAAkB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAErD,UAAiB,eAAgB,SAAQ,EAAE,CAAC,IAAI;KAAG;IACnD,UAAiB,gBAAiB,SAAQ,EAAE,CAAC,IAAI;KAAG;CACrD;AAGD,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,C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GAC3B,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,qBAAqB,GACxB,EAAE,CAAC,sBAAsB,GAEzB,EAAE,CAAC,2BAA2B,GAC9B,EAAE,CAAC,UAAU,GACb,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,wBAAwB,GAC3B,EAAE,CAAC,kBAAkB,GACrB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,cAAc,GAGjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,wBAAwB,GAC3B,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js new file mode 100644 index 00000000..ba99b5f1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ts-nodes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map new file mode 100644 index 00000000..a4fa02c4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-nodes.js","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts new file mode 100644 index 00000000..3d8aceee --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts @@ -0,0 +1,7 @@ +export * from './ast-converter'; +export * from './create-program/getScriptKind'; +export type { ParseSettings } from './parseSettings'; +export * from './getModifiers'; +export { typescriptVersionIsAtLeast } from './version-check'; +export { getCanonicalFileName } from './create-program/shared'; +//# sourceMappingURL=use-at-your-own-risk.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map new file mode 100644 index 00000000..0cfba63b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.d.ts","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js new file mode 100644 index 00000000..28a5e403 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js @@ -0,0 +1,28 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCanonicalFileName = exports.typescriptVersionIsAtLeast = void 0; +// required by website +__exportStar(require("./ast-converter"), exports); +__exportStar(require("./create-program/getScriptKind"), exports); +// required by packages/utils/src/ts-estree.ts +__exportStar(require("./getModifiers"), exports); +var version_check_1 = require("./version-check"); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); +// required by packages/type-utils +var shared_1 = require("./create-program/shared"); +Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); +//# sourceMappingURL=use-at-your-own-risk.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map new file mode 100644 index 00000000..f5dec7a6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"use-at-your-own-risk.js","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,kDAAgC;AAChC,iEAA+C;AAG/C,8CAA8C;AAC9C,iDAA+B;AAC/B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AAEnC,kCAAkC;AAClC,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts new file mode 100644 index 00000000..07f58e0c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts @@ -0,0 +1,7 @@ +import type { ProjectServiceSettings } from './create-program/createProjectService'; +import type { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram } from './create-program/shared'; +import type { MutableParseSettings } from './parseSettings'; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: boolean, defaultProjectMatchedFiles: Set): ASTAndProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: true, defaultProjectMatchedFiles: Set): ASTAndDefiniteProgram | undefined; +export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: false, defaultProjectMatchedFiles: Set): ASTAndNoProgram | undefined; +//# sourceMappingURL=useProgramFromProjectService.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map new file mode 100644 index 00000000..1878d702 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.d.ts","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AA4M5D,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,OAAO,EAC/B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,aAAa,GAAG,SAAS,CAAC;AAC7B,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,IAAI,EAC5B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,qBAAqB,GAAG,SAAS,CAAC;AACrC,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,KAAK,EAC7B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,eAAe,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js new file mode 100644 index 00000000..3941ae1b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js @@ -0,0 +1,197 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useProgramFromProjectService = useProgramFromProjectService; +const debug_1 = __importDefault(require("debug")); +const minimatch_1 = require("minimatch"); +const node_path_1 = __importDefault(require("node:path")); +const node_util_1 = __importDefault(require("node:util")); +const ts = __importStar(require("typescript")); +const createProjectProgram_1 = require("./create-program/createProjectProgram"); +const createSourceFile_1 = require("./create-program/createSourceFile"); +const shared_1 = require("./create-program/shared"); +const validateDefaultProjectForFilesGlob_1 = require("./create-program/validateDefaultProjectForFilesGlob"); +const RELOAD_THROTTLE_MS = 250; +const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProgramFromProjectService'); +const serviceFileExtensions = new WeakMap(); +const updateExtraFileExtensions = (service, extraFileExtensions) => { + const currentServiceFileExtensions = serviceFileExtensions.get(service) ?? []; + if (!node_util_1.default.isDeepStrictEqual(currentServiceFileExtensions, extraFileExtensions)) { + log('Updating extra file extensions: before=%s: after=%s', currentServiceFileExtensions, extraFileExtensions); + service.setHostConfiguration({ + extraFileExtensions: extraFileExtensions.map(extension => ({ + extension, + isMixedContent: false, + scriptKind: ts.ScriptKind.Deferred, + })), + }); + serviceFileExtensions.set(service, extraFileExtensions); + log('Extra file extensions updated: %o', extraFileExtensions); + } +}; +function openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings) { + const opened = openClientFileAndMaybeReload(); + log('Result from attempting to open client file: %o', opened); + log('Default project allowed path: %s, based on config file: %s', isDefaultProjectAllowed, opened.configFileName); + if (opened.configFileName) { + if (isDefaultProjectAllowed) { + throw new Error(`${parseSettings.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`); + } + } + else { + const wasNotFound = `${parseSettings.filePath} was not found by the project service`; + const fileExtension = node_path_1.default.extname(parseSettings.filePath); + const extraFileExtensions = parseSettings.extraFileExtensions; + if (!shared_1.DEFAULT_EXTRA_FILE_EXTENSIONS.has(fileExtension) && + !extraFileExtensions.includes(fileExtension)) { + const nonStandardExt = `${wasNotFound} because the extension for the file (\`${fileExtension}\`) is non-standard`; + if (extraFileExtensions.length > 0) { + throw new Error(`${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`); + } + else { + throw new Error(`${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`); + } + } + if (!isDefaultProjectAllowed) { + throw new Error(`${wasNotFound}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`); + } + } + // No a configFileName indicates this file wasn't included in a TSConfig. + // That means it must get its type information from the default project. + if (!opened.configFileName) { + defaultProjectMatchedFiles.add(filePathAbsolute); + if (defaultProjectMatchedFiles.size > + serviceSettings.maximumDefaultProjectFileMatchCount) { + const filePrintLimit = 20; + const filesToPrint = [...defaultProjectMatchedFiles].slice(0, filePrintLimit); + const truncatedFileCount = defaultProjectMatchedFiles.size - filesToPrint.length; + throw new Error(`Too many files (>${serviceSettings.maximumDefaultProjectFileMatchCount}) have matched the default project.${validateDefaultProjectForFilesGlob_1.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION} +Matching files: +${filesToPrint.map(file => `- ${file}`).join('\n')} +${truncatedFileCount ? `...and ${truncatedFileCount} more files\n` : ''} +If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value. +`); + } + } + return opened; + function openClientFile() { + return serviceSettings.service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + function openClientFileAndMaybeReload() { + log('Opening project service client file at path: %s', filePathAbsolute); + let opened = openClientFile(); + // If no project included the file and we're not in single-run mode, + // we might be running in an editor with outdated file info. + // We can try refreshing the project service - debounced for performance. + if (!opened.configFileErrors && + !opened.configFileName && + !parseSettings.singleRun && + !isDefaultProjectAllowed && + performance.now() - serviceSettings.lastReloadTimestamp > + RELOAD_THROTTLE_MS) { + log('No config file found; reloading project service and retrying.'); + serviceSettings.service.reloadProjects(); + opened = openClientFile(); + serviceSettings.lastReloadTimestamp = performance.now(); + } + return opened; + } +} +function createNoProgramWithProjectService(filePathAbsolute, parseSettings, service) { + log('No project service information available. Creating no program.'); + // If the project service knows about this file, this informs if of changes. + // Doing so ensures that: + // - if the file is not part of a project, we don't waste time creating a program (fast non-type-aware linting) + // - otherwise, we refresh the file in the project service (moderately fast, since the project is already loaded) + if (service.getScriptInfo(filePathAbsolute)) { + log('Script info available. Opening client file in project service.'); + service.openClientFile(filePathAbsolute, parseSettings.codeFullText, + /* scriptKind */ undefined, parseSettings.tsconfigRootDir); + } + return (0, createSourceFile_1.createNoProgram)(parseSettings); +} +function retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings) { + log('Retrieving script info and then program for: %s', filePathAbsolute); + const scriptInfo = serviceSettings.service.getScriptInfo(filePathAbsolute); + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + const program = serviceSettings.service + .getDefaultProjectForFile(scriptInfo.fileName, true) + .getLanguageService(/*ensureSynchronized*/ true) + .getProgram(); + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + if (!program) { + log('Could not find project service program for: %s', filePathAbsolute); + return undefined; + } + log('Found project service program for: %s', filePathAbsolute); + return (0, createProjectProgram_1.createProjectProgram)(parseSettings, [program]); +} +function useProgramFromProjectService(serviceSettings, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles) { + // NOTE: triggers a full project reload when changes are detected + updateExtraFileExtensions(serviceSettings.service, parseSettings.extraFileExtensions); + // We don't canonicalize the filename because it caused a performance regression. + // See https://github.com/typescript-eslint/typescript-eslint/issues/8519 + const filePathAbsolute = absolutify(parseSettings.filePath, serviceSettings); + log('Opening project service file for: %s at absolute path %s', parseSettings.filePath, filePathAbsolute); + const filePathRelative = node_path_1.default.relative(parseSettings.tsconfigRootDir, filePathAbsolute); + const isDefaultProjectAllowed = filePathMatchedBy(filePathRelative, serviceSettings.allowDefaultProject); + // Type-aware linting is disabled for this file. + // However, type-aware lint rules might still rely on its contents. + if (!hasFullTypeInformation && !isDefaultProjectAllowed) { + return createNoProgramWithProjectService(filePathAbsolute, parseSettings, serviceSettings.service); + } + // If type info was requested, we attempt to open it in the project service. + // By now, the file is known to be one of: + // - in the project service (valid configuration) + // - allowlisted in the default project (valid configuration) + // - neither, which openClientFileFromProjectService will throw an error for + const opened = hasFullTypeInformation && + openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings); + log('Opened project service file: %o', opened); + return retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings); +} +function absolutify(filePath, serviceSettings) { + return node_path_1.default.isAbsolute(filePath) + ? filePath + : node_path_1.default.join(serviceSettings.service.host.getCurrentDirectory(), filePath); +} +function filePathMatchedBy(filePath, allowDefaultProject) { + return !!allowDefaultProject?.some(pattern => (0, minimatch_1.minimatch)(filePath, pattern)); +} +//# sourceMappingURL=useProgramFromProjectService.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map new file mode 100644 index 00000000..99b99276 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map @@ -0,0 +1 @@ +{"version":3,"file":"useProgramFromProjectService.js","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0OA,oEA8DC;AAxSD,kDAA0B;AAC1B,yCAAsC;AACtC,0DAA6B;AAC7B,0DAA6B;AAC7B,+CAAiC;AAUjC,gFAA6E;AAC7E,wEAAoE;AACpE,oDAAwE;AACxE,4GAA8G;AAE9G,MAAM,kBAAkB,GAAG,GAAG,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AC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts new file mode 100644 index 00000000..0b8b65a3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts @@ -0,0 +1,5 @@ +declare const versions: readonly ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; +type Versions = typeof versions extends ArrayLike ? U : never; +declare const typescriptVersionIsAtLeast: Record; +export { typescriptVersionIsAtLeast }; +//# sourceMappingURL=version-check.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map new file mode 100644 index 00000000..9c6001eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,QAAQ,mEASJ,CAAC;AACX,KAAK,QAAQ,GAAG,OAAO,QAAQ,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEvE,QAAA,MAAM,0BAA0B,EAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKnE,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js new file mode 100644 index 00000000..2e93b9ef --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js @@ -0,0 +1,59 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typescriptVersionIsAtLeast = void 0; +const semver = __importStar(require("semver")); +const ts = __importStar(require("typescript")); +function semverCheck(version) { + return semver.satisfies(ts.version, `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, { + includePrerelease: true, + }); +} +const versions = [ + '4.7', + '4.8', + '4.9', + '5.0', + '5.1', + '5.2', + '5.3', + '5.4', +]; +const typescriptVersionIsAtLeast = {}; +exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; +for (const version of versions) { + typescriptVersionIsAtLeast[version] = semverCheck(version); +} +//# sourceMappingURL=version-check.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map new file mode 100644 index 00000000..9690e042 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map @@ -0,0 +1 @@ +{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,+CAAiC;AAEjC,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,MAAM,CAAC,SAAS,CACrB,EAAE,CAAC,OAAO,EACV,MAAM,OAAO,YAAY,OAAO,eAAe,OAAO,SAAS,EAC/D;QACE,iBAAiB,EAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAGX,MAAM,0BAA0B,GAAG,EAA+B,CAAC;AAK1D,gEAA0B;AAJnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;IAC/B,0BAA0B,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts new file mode 100644 index 00000000..7d2882be --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts @@ -0,0 +1,10 @@ +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +export declare function withoutProjectParserOptions(opts: Options): Omit; +//# sourceMappingURL=withoutProjectParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map new file mode 100644 index 00000000..9d9db9e1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.d.ts","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,SAAS,MAAM,EAChE,IAAI,EAAE,OAAO,GACZ,IAAI,CACL,OAAO,EACP,gCAAgC,GAAG,SAAS,GAAG,gBAAgB,CAChE,CAMA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js new file mode 100644 index 00000000..11d11940 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.withoutProjectParserOptions = withoutProjectParserOptions; +/** + * Removes options that prompt the parser to parse the project with type + * information. In other words, you can use this if you are invoking the parser + * directly, to ensure that one file will be parsed in isolation, which is much, + * much faster. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 + */ +function withoutProjectParserOptions(opts) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars -- The variables are meant to be omitted + const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts; + return rest; +} +//# sourceMappingURL=withoutProjectParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map new file mode 100644 index 00000000..4f0b19d5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withoutProjectParserOptions.js","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":";;AAQA,kEAWC;AAnBD;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,IAAa;IAKb,sGAAsG;IACtG,MAAM,EAAE,8BAA8B,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GACxE,IAA+B,CAAC;IAElC,OAAO,IAA0B,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/package.json new file mode 100644 index 00000000..e3e90eab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/package.json @@ -0,0 +1,91 @@ +{ + "name": "@typescript-eslint/typescript-estree", + "version": "8.16.0", + "description": "A parser that converts TypeScript source code into an ESTree compatible form", + "files": [ + "dist", + "_ts4.3", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json", + "./use-at-your-own-risk": { + "types": "./dist/use-at-your-own-risk.d.ts", + "default": "./dist/use-at-your-own-risk.js" + } + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/typescript-estree" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/typescript-estree", + "license": "BSD-2-Clause", + "keywords": [ + "ast", + "estree", + "ecmascript", + "javascript", + "typescript", + "parser", + "syntax" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage --runInBand --verbose", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "glob": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "tmp": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/README.md new file mode 100644 index 00000000..7ba75009 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/utils` + +> Utilities for working with TypeScript + ESLint together. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +👉 See **https://typescript-eslint.io/packages/utils** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts new file mode 100644 index 00000000..8cd54560 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts @@ -0,0 +1,48 @@ +interface PatternMatcher { + /** + * Replace all matched parts by a given replacer. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace} + * @example + * const { PatternMatcher } = require("eslint-utils") + * const matcher = new PatternMatcher(/\\p{Script=Greek}/g) + * + * module.exports = { + * meta: {}, + * create(context) { + * return { + * "Literal[regex]"(node) { + * const replacedPattern = node.regex.pattern.replace( + * matcher, + * "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]" + * ) + * }, + * } + * }, + * } + */ + [Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string; + /** + * Iterate all matched parts in a given string. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall} + */ + execAll(str: string): IterableIterator; + /** + * Check whether this pattern matches a given string or not. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test} + */ + test(str: string): boolean; +} +/** + * The class to find a pattern in strings as handling escape sequences. + * It ignores the found pattern if it's escaped with `\`. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} + */ +declare const PatternMatcher: new (pattern: RegExp, options?: { + escaped?: boolean; +}) => PatternMatcher; +export { PatternMatcher }; +//# sourceMappingURL=PatternMatcher.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map new file mode 100644 index 00000000..83983aba --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;IAEV;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,EAAiC,KACnD,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5B,cAAc,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js new file mode 100644 index 00000000..0ffeb5e9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js @@ -0,0 +1,46 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PatternMatcher = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * The class to find a pattern in strings as handling escape sequences. + * It ignores the found pattern if it's escaped with `\`. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} + */ +const PatternMatcher = eslintUtils.PatternMatcher; +exports.PatternMatcher = PatternMatcher; +//# sourceMappingURL=PatternMatcher.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map new file mode 100644 index 00000000..19a3c903 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGhB,CAAC;AAEX,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts new file mode 100644 index 00000000..83c7e228 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts @@ -0,0 +1,76 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +declare const ReferenceTrackerREAD: unique symbol; +declare const ReferenceTrackerCALL: unique symbol; +declare const ReferenceTrackerCONSTRUCT: unique symbol; +declare const ReferenceTrackerESM: unique symbol; +interface ReferenceTracker { + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from `require()` expression. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences} + */ + iterateCjsReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from `import`/`export` declarations. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences} + */ + iterateEsmReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; + /** + * Iterate the references that the given `traceMap` determined. + * This method starts to search from global variables. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences} + */ + iterateGlobalReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; +} +interface ReferenceTrackerStatic { + readonly CALL: typeof ReferenceTrackerCALL; + readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT; + readonly ESM: typeof ReferenceTrackerESM; + new (globalScope: TSESLint.Scope.Scope, options?: { + /** + * The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`. + */ + globalObjectNames?: readonly string[]; + /** + * The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules. + * If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds + * CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`. + */ + mode?: 'legacy' | 'strict'; + }): ReferenceTracker; + readonly READ: typeof ReferenceTrackerREAD; +} +declare namespace ReferenceTracker { + type READ = ReferenceTrackerStatic['READ']; + type CALL = ReferenceTrackerStatic['CALL']; + type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT']; + type ESM = ReferenceTrackerStatic['ESM']; + type ReferenceType = CALL | CONSTRUCT | READ; + type TraceMap = Record>; + interface TraceMapElement { + [key: string]: TraceMapElement; + [ReferenceTrackerCALL]?: T; + [ReferenceTrackerCONSTRUCT]?: T; + [ReferenceTrackerESM]?: true; + [ReferenceTrackerREAD]?: T; + } + interface FoundReference { + info: T; + node: TSESTree.Node; + path: readonly string[]; + type: ReferenceType; + } +} +/** + * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} + */ +declare const ReferenceTracker: ReferenceTrackerStatic; +export { ReferenceTracker }; +//# sourceMappingURL=ReferenceTracker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map new file mode 100644 index 00000000..cf7e2a21 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,yBAAyB,EAAE,OAAO,MACA,CAAC;AACzC,QAAA,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AAE5E,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,EACpB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GACrC,gBAAgB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAExD;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,EACpB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GACrC,gBAAgB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAExD;;;;;OAKG;IACH,uBAAuB,CAAC,CAAC,EACvB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GACrC,gBAAgB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD;AAC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AAG,GAAG;QACrC,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;KACrB;CACF;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAmC,sBAAsB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js new file mode 100644 index 00000000..11b6675b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js @@ -0,0 +1,50 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferenceTracker = void 0; +/* eslint-disable @typescript-eslint/no-namespace */ +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +const ReferenceTrackerREAD = eslintUtils.ReferenceTracker.READ; +const ReferenceTrackerCALL = eslintUtils.ReferenceTracker.CALL; +const ReferenceTrackerCONSTRUCT = eslintUtils.ReferenceTracker.CONSTRUCT; +const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM; +/** + * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} + */ +const ReferenceTracker = eslintUtils.ReferenceTracker; +exports.ReferenceTracker = ReferenceTracker; +//# sourceMappingURL=ReferenceTracker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map new file mode 100644 index 00000000..1f90c3bd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAiF5E;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAA0C,CAAC;AAEvE,4CAAgB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts new file mode 100644 index 00000000..a0c32836 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts @@ -0,0 +1,85 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +/** + * Get the proper location of a given function node to report. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} + */ +declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation; +/** + * Get the name and kind of a given function node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} + */ +declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string; +/** + * Get the property name of a given property node. + * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} + * @returns The property name of the node. If the property name is not constant then it returns `null`. + */ +declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null; +/** + * Get the value of a given node if it can decide the value statically. + * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the + * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have + * not been modified. + * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} + * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the + * static value of the node, it returns `null`. + */ +declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => { + value: unknown; +} | null; +/** + * Get the string value of a given node. + * This function is a tiny wrapper of the getStaticValue function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} + */ +declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null; +/** + * Check whether a given node has any side effect or not. + * The side effect means that it may modify a certain variable or object member. This function considers the node which + * contains the following types as the node which has side effects: + * - `AssignmentExpression` + * - `AwaitExpression` + * - `CallExpression` + * - `ImportExpression` + * - `NewExpression` + * - `UnaryExpression([operator = "delete"])` + * - `UpdateExpression` + * - `YieldExpression` + * - When `options.considerGetters` is `true`: + * - `MemberExpression` + * - When `options.considerImplicitTypeConversion` is `true`: + * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` + * - `MemberExpression([computed = true])` + * - `MethodDefinition([computed = true])` + * - `Property([computed = true])` + * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} + */ +declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: { + considerGetters?: boolean; + considerImplicitTypeConversion?: boolean; +}) => boolean; +declare const isParenthesized: { + (times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; + /** + * Check whether a given node is parenthesized or not. + * This function detects it correctly even if it's parenthesized by specific syntax. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#isparenthesized} + * @returns `true` if the node is parenthesized. + * If `times` was given, it returns `true` only if the node is parenthesized the `times` times. + * For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`. + */ + (node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; +}; +export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, }; +//# sourceMappingURL=astUtilities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map new file mode 100644 index 00000000..7b812080 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAA0C,CACrE,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,EAAE,QAAQ,CAAC,UAAU,KAC5B,QAAQ,CAAC,cAAc,CAAC;AAE7B;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAA0C,CACrE,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,KAC7B,MAAM,CAAC;AAEZ;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,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,GAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js new file mode 100644 index 00000000..ed81a599 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js @@ -0,0 +1,109 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isParenthesized = exports.hasSideEffect = exports.getStringIfConstant = exports.getStaticValue = exports.getPropertyName = exports.getFunctionNameWithKind = exports.getFunctionHeadLocation = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * Get the proper location of a given function node to report. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} + */ +const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation; +exports.getFunctionHeadLocation = getFunctionHeadLocation; +/** + * Get the name and kind of a given function node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} + */ +const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind; +exports.getFunctionNameWithKind = getFunctionNameWithKind; +/** + * Get the property name of a given property node. + * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} + * @returns The property name of the node. If the property name is not constant then it returns `null`. + */ +const getPropertyName = eslintUtils.getPropertyName; +exports.getPropertyName = getPropertyName; +/** + * Get the value of a given node if it can decide the value statically. + * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the + * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have + * not been modified. + * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} + * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the + * static value of the node, it returns `null`. + */ +const getStaticValue = eslintUtils.getStaticValue; +exports.getStaticValue = getStaticValue; +/** + * Get the string value of a given node. + * This function is a tiny wrapper of the getStaticValue function. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} + */ +const getStringIfConstant = eslintUtils.getStringIfConstant; +exports.getStringIfConstant = getStringIfConstant; +/** + * Check whether a given node has any side effect or not. + * The side effect means that it may modify a certain variable or object member. This function considers the node which + * contains the following types as the node which has side effects: + * - `AssignmentExpression` + * - `AwaitExpression` + * - `CallExpression` + * - `ImportExpression` + * - `NewExpression` + * - `UnaryExpression([operator = "delete"])` + * - `UpdateExpression` + * - `YieldExpression` + * - When `options.considerGetters` is `true`: + * - `MemberExpression` + * - When `options.considerImplicitTypeConversion` is `true`: + * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` + * - `MemberExpression([computed = true])` + * - `MethodDefinition([computed = true])` + * - `Property([computed = true])` + * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} + */ +const hasSideEffect = eslintUtils.hasSideEffect; +exports.hasSideEffect = hasSideEffect; +const isParenthesized = eslintUtils.isParenthesized; +exports.isParenthesized = isParenthesized; +//# sourceMappingURL=astUtilities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map new file mode 100644 index 00000000..eb2c0bda --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map @@ -0,0 +1 @@ +{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMhB,CAAC;AA8G3B,0DAAuB;AA5GzB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMjC,CAAC;AAkGV,0DAAuB;AAhGzB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,WAAW,CAAC,eAOlB,CAAC;AAmFjB,0CAAe;AAjFjB;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGL,CAAC;AAoE7B,wCAAc;AAlEhB;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAC,mBAGtB,CAAC;AA0DjB,kDAAmB;AAxDrB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,aAAa,GAAG,WAAW,CAAC,aAOtB,CAAC;AA2BX,sCAAa;AAzBf,MAAM,eAAe,GAAG,WAAW,CAAC,eAiBnC,CAAC;AASA,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts new file mode 100644 index 00000000..3ec74aa2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts @@ -0,0 +1,6 @@ +export * from './astUtilities'; +export * from './PatternMatcher'; +export * from './predicates'; +export * from './ReferenceTracker'; +export * from './scopeAnalysis'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map new file mode 100644 index 00000000..e6a66720 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js new file mode 100644 index 00000000..6e0fbf72 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js @@ -0,0 +1,22 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./astUtilities"), exports); +__exportStar(require("./PatternMatcher"), exports); +__exportStar(require("./predicates"), exports); +__exportStar(require("./ReferenceTracker"), exports); +__exportStar(require("./scopeAnalysis"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map new file mode 100644 index 00000000..c1f12696 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts new file mode 100644 index 00000000..75d1f65d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts @@ -0,0 +1,32 @@ +import type { TSESTree } from '../../ts-estree'; +type IsSpecificTokenFunction = (token: TSESTree.Token) => token is SpecificToken; +type IsNotSpecificTokenFunction = (token: TSESTree.Token) => token is Exclude; +type PunctuatorTokenWithValue = { + value: Value; +} & TSESTree.PunctuatorToken; +type IsPunctuatorTokenWithValueFunction = IsSpecificTokenFunction>; +type IsNotPunctuatorTokenWithValueFunction = IsNotSpecificTokenFunction>; +declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">; +declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">; +declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">; +declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">; +declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">; +declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">; +declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">; +declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">; +declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">; +declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">; +declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">; +declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">; +declare const isCommentToken: IsSpecificTokenFunction; +declare const isNotCommentToken: IsNotSpecificTokenFunction; +declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">; +declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">; +declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">; +declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">; +declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">; +declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">; +declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">; +declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">; +export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, }; +//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map new file mode 100644 index 00000000..9f55408e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACtE,KAAK,EAAE,QAAQ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C,OAAO,CAAC,CAAC;AAC1E,QAAA,MAAM,iBAAiB,EACY,0BAA0B,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEhF,QAAA,MAAM,mBAAmB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC7E,QAAA,MAAM,sBAAsB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEnF,QAAA,MAAM,qBAAqB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC/E,QAAA,MAAM,wBAAwB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAErF,QAAA,MAAM,mBAAmB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC7E,QAAA,MAAM,sBAAsB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEnF,QAAA,MAAM,gBAAgB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC1E,QAAA,MAAM,mBAAmB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js new file mode 100644 index 00000000..43592b3b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js @@ -0,0 +1,82 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSemicolonToken = exports.isOpeningParenToken = exports.isOpeningBracketToken = exports.isOpeningBraceToken = exports.isNotSemicolonToken = exports.isNotOpeningParenToken = exports.isNotOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isNotCommentToken = exports.isNotCommaToken = exports.isNotColonToken = exports.isNotClosingParenToken = exports.isNotClosingBracketToken = exports.isNotClosingBraceToken = exports.isNotArrowToken = exports.isCommentToken = exports.isCommaToken = exports.isColonToken = exports.isClosingParenToken = exports.isClosingBracketToken = exports.isClosingBraceToken = exports.isArrowToken = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +const isArrowToken = eslintUtils.isArrowToken; +exports.isArrowToken = isArrowToken; +const isNotArrowToken = eslintUtils.isNotArrowToken; +exports.isNotArrowToken = isNotArrowToken; +const isClosingBraceToken = eslintUtils.isClosingBraceToken; +exports.isClosingBraceToken = isClosingBraceToken; +const isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken; +exports.isNotClosingBraceToken = isNotClosingBraceToken; +const isClosingBracketToken = eslintUtils.isClosingBracketToken; +exports.isClosingBracketToken = isClosingBracketToken; +const isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken; +exports.isNotClosingBracketToken = isNotClosingBracketToken; +const isClosingParenToken = eslintUtils.isClosingParenToken; +exports.isClosingParenToken = isClosingParenToken; +const isNotClosingParenToken = eslintUtils.isNotClosingParenToken; +exports.isNotClosingParenToken = isNotClosingParenToken; +const isColonToken = eslintUtils.isColonToken; +exports.isColonToken = isColonToken; +const isNotColonToken = eslintUtils.isNotColonToken; +exports.isNotColonToken = isNotColonToken; +const isCommaToken = eslintUtils.isCommaToken; +exports.isCommaToken = isCommaToken; +const isNotCommaToken = eslintUtils.isNotCommaToken; +exports.isNotCommaToken = isNotCommaToken; +const isCommentToken = eslintUtils.isCommentToken; +exports.isCommentToken = isCommentToken; +const isNotCommentToken = eslintUtils.isNotCommentToken; +exports.isNotCommentToken = isNotCommentToken; +const isOpeningBraceToken = eslintUtils.isOpeningBraceToken; +exports.isOpeningBraceToken = isOpeningBraceToken; +const isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken; +exports.isNotOpeningBraceToken = isNotOpeningBraceToken; +const isOpeningBracketToken = eslintUtils.isOpeningBracketToken; +exports.isOpeningBracketToken = isOpeningBracketToken; +const isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken; +exports.isNotOpeningBracketToken = isNotOpeningBracketToken; +const isOpeningParenToken = eslintUtils.isOpeningParenToken; +exports.isOpeningParenToken = isOpeningParenToken; +const isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken; +exports.isNotOpeningParenToken = isNotOpeningParenToken; +const isSemicolonToken = eslintUtils.isSemicolonToken; +exports.isSemicolonToken = isSemicolonToken; +const isNotSemicolonToken = eslintUtils.isNotSemicolonToken; +exports.isNotSemicolonToken = isNotSemicolonToken; +//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map new file mode 100644 index 00000000..2bdead69 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAoB9D,MAAM,YAAY,GAChB,WAAW,CAAC,YAAwD,CAAC;AAuDrE,oCAAY;AAtDd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA8D,CAAC;AA4D3E,0CAAe;AA1DjB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AAmD3E,kDAAmB;AAlDrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwDjF,wDAAsB;AAtDxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,CAAC;AA+C7E,sDAAqB;AA9CvB,MAAM,wBAAwB,GAC5B,WAAW,CAAC,wBAAsE,CAAC;AAoDnF,4DAAwB;AAlD1B,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AA2C3E,kDAAmB;AA1CrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAgDjF,wDAAsB;AA9CxB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAuCpE,oCAAY;AAtCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AA4C1E,0CAAe;AA1CjB,MAAM,YAAY,GAChB,WAAW,CAAC,YAAuD,CAAC;AAmCpE,oCAAY;AAlCd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA6D,CAAC;AAwC1E,0CAAe;AAtCjB,MAAM,cAAc,GAClB,WAAW,CAAC,cAA2D,CAAC;AA+BxE,wCAAc;AA9BhB,MAAM,iBAAiB,GACrB,WAAW,CAAC,iBAAiE,CAAC;AAoC9E,8CAAiB;AAlCnB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AAsC3E,kDAAmB;AArCrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAgCjF,wDAAsB;AA9BxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,CAAC;AAkC7E,sDAAqB;AAjCvB,MAAM,wBAAwB,GAC5B,WAAW,CAAC,wBAAsE,CAAC;AA4BnF,4DAAwB;AA1B1B,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AA8B3E,kDAAmB;AA7BrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwBjF,wDAAsB;AAtBxB,MAAM,gBAAgB,GACpB,WAAW,CAAC,gBAA2D,CAAC;AA0BxE,4CAAgB;AAzBlB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAAiE,CAAC;AAoB9E,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts new file mode 100644 index 00000000..480e9b5a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts @@ -0,0 +1,18 @@ +import type * as TSESLint from '../../ts-eslint'; +import type { TSESTree } from '../../ts-estree'; +/** + * Get the variable of a given name. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} + */ +declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null; +/** + * Get the innermost scope which contains a given node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} + * @returns The innermost scope which contains the given node. + * If such scope doesn't exist then it returns the 1st argument `initialScope`. + */ +declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope; +export { findVariable, getInnermostScope }; +//# sourceMappingURL=scopeAnalysis.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map new file mode 100644 index 00000000..04d9ddd9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,YAAY,EAA+B,CAC/C,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,KACrC,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,EAAoC,CACzD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAChB,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js new file mode 100644 index 00000000..a57ab924 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js @@ -0,0 +1,54 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getInnermostScope = exports.findVariable = void 0; +const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); +/** + * Get the variable of a given name. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} + */ +const findVariable = eslintUtils.findVariable; +exports.findVariable = findVariable; +/** + * Get the innermost scope which contains a given node. + * + * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} + * @returns The innermost scope which contains the given node. + * If such scope doesn't exist then it returns the 1st argument `initialScope`. + */ +const getInnermostScope = eslintUtils.getInnermostScope; +exports.getInnermostScope = getInnermostScope; +//# sourceMappingURL=scopeAnalysis.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map new file mode 100644 index 00000000..5f92dc94 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts new file mode 100644 index 00000000..3b390058 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts @@ -0,0 +1,19 @@ +import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; +export declare const isNodeOfType: (nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract; +export declare const isNodeOfTypes: (nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract; +export declare const isNodeOfTypeWithConditions: , Conditions extends Partial>(nodeType: NodeType, conditions: Conditions) => ((node: TSESTree.Node | null | undefined) => node is Conditions & ExtractedNode); +export declare const isTokenOfTypeWithConditions: , Conditions extends Partial<{ + type: TokenType; +} & TSESTree.Token>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Conditions & ExtractedToken); +export declare const isNotTokenOfTypeWithConditions: , Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Exclude); +//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map new file mode 100644 index 00000000..7e2e54c4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAO9E,eAAO,MAAM,YAAY,GACtB,QAAQ,SAAS,cAAc,YAAY,QAAQ,YAE5C,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAC3B,CAAC;AAE5B,eAAO,MAAM,aAAa,GACvB,SAAS,SAAS,SAAS,cAAc,EAAE,aAAa,SAAS,YAE1D,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC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No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js new file mode 100644 index 00000000..4d6bb469 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isNotTokenOfTypeWithConditions = exports.isTokenOfTypeWithConditions = exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0; +const isNodeOfType = (nodeType) => (node) => node?.type === nodeType; +exports.isNodeOfType = isNodeOfType; +const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type); +exports.isNodeOfTypes = isNodeOfTypes; +const isNodeOfTypeWithConditions = (nodeType, conditions) => { + const entries = Object.entries(conditions); + return (node) => node?.type === nodeType && + entries.every(([key, value]) => node[key] === value); +}; +exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions; +const isTokenOfTypeWithConditions = (tokenType, conditions) => { + const entries = Object.entries(conditions); + return (token) => token?.type === tokenType && + entries.every(([key, value]) => token[key] === value); +}; +exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions; +const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token); +exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions; +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map new file mode 100644 index 00000000..73b2878d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map @@ -0,0 +1 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AAoB,EACpB,UAAsB,EAG4C,EAAE,CACtE,CAAC,KAAK,EAAiE,EAAE,CACvE,CAAC,IAAA,mCAA2B,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;AAZlD,QAAA,8BAA8B,kCAYoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts new file mode 100644 index 00000000..714b9952 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts @@ -0,0 +1,5 @@ +export * from './eslint-utils'; +export * from './helpers'; +export * from './misc'; +export * from './predicates'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map new file mode 100644 index 00000000..c6f5e7f6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js new file mode 100644 index 00000000..6c5b6600 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js @@ -0,0 +1,21 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./eslint-utils"), exports); +__exportStar(require("./helpers"), exports); +__exportStar(require("./misc"), exports); +__exportStar(require("./predicates"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map new file mode 100644 index 00000000..f373ac53 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts new file mode 100644 index 00000000..cbbd04bc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts @@ -0,0 +1,8 @@ +import type { TSESTree } from '../ts-estree'; +declare const LINEBREAK_MATCHER: RegExp; +/** + * Determines whether two adjacent tokens are on the same line + */ +declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; +export { isTokenOnSameLine, LINEBREAK_MATCHER }; +//# sourceMappingURL=misc.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map new file mode 100644 index 00000000..071c0afe --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,iBAAiB,QAA4B,CAAC;AAEpD;;GAEG;AACH,iBAAS,iBAAiB,CACxB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET;AAED,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js new file mode 100644 index 00000000..7aa82e80 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LINEBREAK_MATCHER = void 0; +exports.isTokenOnSameLine = isTokenOnSameLine; +const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/; +exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER; +/** + * Determines whether two adjacent tokens are on the same line + */ +function isTokenOnSameLine(left, right) { + return left.loc.end.line === right.loc.start.line; +} +//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map new file mode 100644 index 00000000..bf4b06fc --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;AAcS,8CAAiB;AAZ1B,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAYxB,8CAAiB;AAV7C;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts new file mode 100644 index 00000000..39b496ae --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts @@ -0,0 +1,70 @@ +import type { TSESTree } from '../ts-estree'; +declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is { + value: "?."; +} & TSESTree.PunctuatorToken; +declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; +declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is { + value: "!"; +} & TSESTree.PunctuatorToken; +declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; +/** + * Returns true if and only if the node represents: foo?.() or foo.bar?.() + */ +declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is { + optional: boolean; +} & TSESTree.CallExpression; +/** + * Returns true if and only if the node represents logical OR + */ +declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial & TSESTree.LogicalExpression; +/** + * Checks if a node is a type assertion: + * ``` + * x as foo + * x + * ``` + */ +declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion; +declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclaratorDefiniteAssignment | TSESTree.VariableDeclaratorMaybeInit | TSESTree.VariableDeclaratorNoInit | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNormalContextDeclarator; +declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression; +declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; +declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; +declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType; +declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType; +declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName; +/** + * Checks if a node is a constructor method. + */ +declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName); +/** + * Checks if a node is a setter method. + */ +declare function isSetter(node: TSESTree.Node | undefined): node is { + kind: 'set'; +} & (TSESTree.MethodDefinition | TSESTree.Property); +declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier; +/** + * Checks if a node represents an `await …` expression. + */ +declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression; +/** + * Checks if a possible token is the `await` keyword. + */ +declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "await"; +} & TSESTree.IdentifierToken; +/** + * Checks if a possible token is the `type` keyword. + */ +declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "type"; +} & TSESTree.IdentifierToken; +/** + * Checks if a possible token is the `import` keyword. + */ +declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is { + value: "import"; +} & TSESTree.KeywordToken; +declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement; +export { isAwaitExpression, isAwaitKeyword, isClassOrTypeElement, isConstructor, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLogicalOrOperator, isLoop, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalCallExpression, isOptionalChainPunctuator, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, }; +//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map new file mode 100644 index 00000000..c48d01b9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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A,MAAM,YAAY,SArHD,SAAU,IAC1B,mDAoH2D,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,iBAAiB,SA1HN,SAAU,IAC1B,wDAyHqE,CAAC;AAEvE;;GAEG;AACH,QAAA,MAAM,cAAc,UAnEZ,SAAU,KAAK;;4BAqErB,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,aAAa,UA1EX,SAAU,KAAK;;4BA4ErB,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,eAAe,UAjFb,SAAU,KAAK;;yBAmFrB,CAAC;AAEH,QAAA,MAAM,MAAM,SAvIG,SAAU,IAAI,+JA6IlB,CAAC;AAEZ,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,MAAM,EACN,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js new file mode 100644 index 00000000..e8e30bf6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js @@ -0,0 +1,136 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isOptionalChainPunctuator = exports.isOptionalCallExpression = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLoop = exports.isLogicalOrOperator = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isConstructor = exports.isClassOrTypeElement = exports.isAwaitKeyword = exports.isAwaitExpression = void 0; +exports.isSetter = isSetter; +const ts_estree_1 = require("../ts-estree"); +const helpers_1 = require("./helpers"); +const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); +exports.isOptionalChainPunctuator = isOptionalChainPunctuator; +const isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); +exports.isNotOptionalChainPunctuator = isNotOptionalChainPunctuator; +const isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); +exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator; +const isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); +exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator; +/** + * Returns true if and only if the node represents: foo?.() or foo.bar?.() + */ +const isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression, +// this flag means the call expression itself is option +// i.e. it is foo.bar?.() and not foo?.bar() +{ optional: true }); +exports.isOptionalCallExpression = isOptionalCallExpression; +/** + * Returns true if and only if the node represents logical OR + */ +const isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' }); +exports.isLogicalOrOperator = isLogicalOrOperator; +/** + * Checks if a node is a type assertion: + * ``` + * x as foo + * x + * ``` + */ +const isTypeAssertion = (0, helpers_1.isNodeOfTypes)([ + ts_estree_1.AST_NODE_TYPES.TSAsExpression, + ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, +]); +exports.isTypeAssertion = isTypeAssertion; +const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator); +exports.isVariableDeclarator = isVariableDeclarator; +const functionTypes = [ + ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, + ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, + ts_estree_1.AST_NODE_TYPES.FunctionExpression, +]; +const isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes); +exports.isFunction = isFunction; +const functionTypeTypes = [ + ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSConstructorType, + ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSDeclareFunction, + ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, + ts_estree_1.AST_NODE_TYPES.TSFunctionType, + ts_estree_1.AST_NODE_TYPES.TSMethodSignature, +]; +const isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes); +exports.isFunctionType = isFunctionType; +const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([ + ...functionTypes, + ...functionTypeTypes, +]); +exports.isFunctionOrFunctionType = isFunctionOrFunctionType; +const isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType); +exports.isTSFunctionType = isTSFunctionType; +const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType); +exports.isTSConstructorType = isTSConstructorType; +const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([ + // ClassElement + ts_estree_1.AST_NODE_TYPES.PropertyDefinition, + ts_estree_1.AST_NODE_TYPES.FunctionExpression, + ts_estree_1.AST_NODE_TYPES.MethodDefinition, + ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition, + ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition, + ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, + ts_estree_1.AST_NODE_TYPES.TSIndexSignature, + // TypeElement + ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, + // AST_NODE_TYPES.TSIndexSignature, + ts_estree_1.AST_NODE_TYPES.TSMethodSignature, + ts_estree_1.AST_NODE_TYPES.TSPropertySignature, +]); +exports.isClassOrTypeElement = isClassOrTypeElement; +/** + * Checks if a node is a constructor method. + */ +const isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' }); +exports.isConstructor = isConstructor; +/** + * Checks if a node is a setter method. + */ +function isSetter(node) { + return (!!node && + (node.type === ts_estree_1.AST_NODE_TYPES.MethodDefinition || + node.type === ts_estree_1.AST_NODE_TYPES.Property) && + node.kind === 'set'); +} +const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier); +exports.isIdentifier = isIdentifier; +/** + * Checks if a node represents an `await …` expression. + */ +const isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression); +exports.isAwaitExpression = isAwaitExpression; +/** + * Checks if a possible token is the `await` keyword. + */ +const isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { + value: 'await', +}); +exports.isAwaitKeyword = isAwaitKeyword; +/** + * Checks if a possible token is the `type` keyword. + */ +const isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { + value: 'type', +}); +exports.isTypeKeyword = isTypeKeyword; +/** + * Checks if a possible token is the `import` keyword. + */ +const isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, { + value: 'import', +}); +exports.isImportKeyword = isImportKeyword; +const isLoop = (0, helpers_1.isNodeOfTypes)([ + ts_estree_1.AST_NODE_TYPES.DoWhileStatement, + ts_estree_1.AST_NODE_TYPES.ForStatement, + ts_estree_1.AST_NODE_TYPES.ForInStatement, + ts_estree_1.AST_NODE_TYPES.ForOfStatement, + ts_estree_1.AST_NODE_TYPES.WhileStatement, +]); +exports.isLoop = isLoop; +//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map new file mode 100644 index 00000000..b1ef2738 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AAsLE,4BAAQ;AApLV,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAuKA,8DAAyB;AArK3B,MAAM,4BAA4B,GAAG,IAAA,wCAA8B,EACjE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAgKA,oEAA4B;AA9J9B,MAAM,4BAA4B,GAAG,IAAA,qCAA2B,EAC9D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAyJA,oEAA4B;AAvJ9B,MAAM,+BAA+B,GAAG,IAAA,wCAA8B,EACpE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAqJA,0EAA+B;AAnJjC;;GAEG;AACH,MAAM,wBAAwB,GAAG,IAAA,oCAA0B,EACzD,0BAAc,CAAC,cAAc;AAC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;AA0BD,wCAAc;AAxBhB;;GAEG;AACH,MAAM,aAAa,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,UAAU,EAAE;IAC5E,KAAK,EAAE,MAAM;CACd,CAAC,CAAC;AAsCD,sCAAa;AApCf;;GAEG;AACH,MAAM,eAAe,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,OAAO,EAAE;IAC3E,KAAK,EAAE,QAAQ;CAChB,CAAC,CAAC;AAmBD,0CAAe;AAjBjB,MAAM,MAAM,GAAG,IAAA,uBAAa,EAAC;IAC3B,0BAAc,CAAC,gBAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC;AAaV,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts new file mode 100644 index 00000000..b2359038 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts @@ -0,0 +1,11 @@ +import type { RuleCreateFunction, RuleModule } from '../ts-eslint'; +/** + * Uses type inference to fetch the Options type from the given RuleModule + */ +type InferOptionsTypeFromRule = T extends RuleModule ? Options : T extends RuleCreateFunction ? Options : unknown; +/** + * Uses type inference to fetch the MessageIds type from the given RuleModule + */ +type InferMessageIdsTypeFromRule = T extends RuleModule ? MessageIds : T extends RuleCreateFunction ? MessageIds : unknown; +export type { InferMessageIdsTypeFromRule, InferOptionsTypeFromRule }; +//# sourceMappingURL=InferTypesFromRule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map new file mode 100644 index 00000000..ca551e10 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAC7B,CAAC,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAClD,OAAO,GACP,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAC5D,OAAO,GACP,OAAO,CAAC;AAEhB;;GAEG;AACH,KAAK,2BAA2B,CAAC,CAAC,IAChC,CAAC,SAAS,UAAU,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GACnD,UAAU,GACV,CAAC,SAAS,kBAAkB,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GAC7D,UAAU,GACV,OAAO,CAAC;AAEhB,YAAY,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js new file mode 100644 index 00000000..9305805b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=InferTypesFromRule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map new file mode 100644 index 00000000..99fe846c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InferTypesFromRule.js","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts new file mode 100644 index 00000000..573efc7f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts @@ -0,0 +1,28 @@ +import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule'; +export type NamedCreateRuleMetaDocs = Omit; +export type NamedCreateRuleMeta = { + docs: PluginDocs & RuleMetaDataDocs; +} & Omit, 'docs'>; +export interface RuleCreateAndOptions { + create: (context: Readonly>, optionsWithDefault: Readonly) => RuleListener; + defaultOptions: Readonly; +} +export interface RuleWithMeta extends RuleCreateAndOptions { + meta: RuleMetaData; +} +export interface RuleWithMetaAndName extends RuleCreateAndOptions { + meta: NamedCreateRuleMeta; + name: string; +} +/** + * Creates reusable function to create rules with default options and docs URLs. + * + * @param urlCreator Creates a documentation URL for a given rule name. + * @returns Function to create a rule with the docs URL format. + */ +export declare function RuleCreator(urlCreator: (ruleName: string) => string): ({ meta, name, ...rule }: Readonly>) => RuleModule; +export declare namespace RuleCreator { + var withoutDocs: (args: Readonly>) => RuleModule; +} +export { type RuleListener, type RuleModule } from '../ts-eslint/Rule'; +//# sourceMappingURL=RuleCreator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map new file mode 100644 index 00000000..73c0f958 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAK3B,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAEpE,MAAM,MAAM,mBAAmB,CAC7B,UAAU,SAAS,MAAM,EACzB,UAAU,GAAG,OAAO,EACpB,OAAO,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,IACrC;IACF,IAAI,EAAE,UAAU,GAAG,gBAAgB,CAAC;CACrC,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAEhE,MAAM,WAAW,oBAAoB,CACnC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM;IAEzB,MAAM,EAAE,CACN,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EACnD,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAClC,YAAY,CAAC;IAClB,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,YAAY,CAC3B,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,IAAI,GAAG,OAAO,CACd,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC;IACjD,IAAI,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,mBAAmB,CAClC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,IAAI,GAAG,OAAO,CACd,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC;IACjD,IAAI,EAAE,mBAAmB,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,GAAG,OAAO,EAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,IAKtC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,2BAKxB,QAAQ,CACT,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CACrD,KAAG,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAYhD;yBA1Be,WAAW;sBA0DzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,QAEnB,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,KAChD,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC;;AAIlC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js new file mode 100644 index 00000000..97a84f12 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js @@ -0,0 +1,46 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RuleCreator = RuleCreator; +const applyDefault_1 = require("./applyDefault"); +/** + * Creates reusable function to create rules with default options and docs URLs. + * + * @param urlCreator Creates a documentation URL for a given rule name. + * @returns Function to create a rule with the docs URL format. + */ +function RuleCreator(urlCreator) { + // This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349 + // TODO - when the above PR lands; add type checking for the context.report `data` property + return function createNamedRule({ meta, name, ...rule }) { + return createRule({ + meta: { + ...meta, + docs: { + ...meta.docs, + url: urlCreator(name), + }, + }, + ...rule, + }); + }; +} +function createRule({ create, defaultOptions, meta, }) { + return { + create(context) { + const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options); + return create(context, optionsWithDefault); + }, + defaultOptions, + meta, + }; +} +/** + * Creates a well-typed TSESLint custom ESLint rule without a docs URL. + * + * @returns Well-typed TSESLint custom ESLint rule. + * @remarks It is generally better to provide a docs URL function to RuleCreator. + */ +RuleCreator.withoutDocs = function withoutDocs(args) { + return createRule(args); +}; +//# sourceMappingURL=RuleCreator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map new file mode 100644 index 00000000..81961db5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;AAuDA,kCA0BC;AAzED,iDAA8C;AAyC9C;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,UAAwC;IAExC,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,eAAe,CAG7B,EACA,IAAI,EACJ,IAAI,EACJ,GAAG,IAAI,EAGR;QACC,OAAO,UAAU,CAAkC;YACjD,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,IAAI,EAAE;oBACJ,GAAG,IAAI,CAAC,IAAI;oBACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC;iBACtB;aACF;YACD,GAAG,IAAI;SACR,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAIjB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACoD;IAKxD,OAAO;QACL,MAAM,CAAC,OAAmD;YACxD,MAAM,kBAAkB,GAAG,IAAA,2BAAY,EAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAC7C,CAAC;QACD,cAAc;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,WAAW,CAAC,WAAW,GAAG,SAAS,WAAW,CAI5C,IAAiD;IAEjD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts new file mode 100644 index 00000000..81b8af4a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts @@ -0,0 +1,10 @@ +/** + * Pure function - doesn't mutate either parameter! + * Uses the default options and overrides with the options provided by the user + * @param defaultOptions the defaults + * @param userOptions the user opts + * @returns the options with defaults + */ +declare function applyDefault(defaultOptions: Readonly, userOptions: Readonly | null): Default; +export { applyDefault }; +//# sourceMappingURL=applyDefault.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map new file mode 100644 index 00000000..e0a1f332 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,IAAI,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,SAAS,IAAI,EACzE,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,EACjC,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GACjC,OAAO,CAuBT;AAMD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js new file mode 100644 index 00000000..00596092 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.applyDefault = applyDefault; +const deepMerge_1 = require("./deepMerge"); +/** + * Pure function - doesn't mutate either parameter! + * Uses the default options and overrides with the options provided by the user + * @param defaultOptions the defaults + * @param userOptions the user opts + * @returns the options with defaults + */ +function applyDefault(defaultOptions, userOptions) { + // clone defaults + const options = structuredClone(defaultOptions); + if (userOptions == null) { + return options; + } + // For avoiding the type error + // `This expression is not callable. Type 'unknown' has no call signatures.ts(2349)` + options.forEach((opt, i) => { + if (userOptions[i] !== undefined) { + const userOpt = userOptions[i]; + if ((0, deepMerge_1.isObjectNotArray)(userOpt) && (0, deepMerge_1.isObjectNotArray)(opt)) { + options[i] = (0, deepMerge_1.deepMerge)(opt, userOpt); + } + else { + options[i] = userOpt; + } + } + }); + return options; +} +//# sourceMappingURL=applyDefault.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map new file mode 100644 index 00000000..5e688b1a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;AAyCS,oCAAY;AAzCrB,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAiC,EACjC,WAAkC;IAElC,iBAAiB;IACjB,MAAM,OAAO,GAAG,eAAe,CAAC,cAAc,CAAuB,CAAC;IAEtE,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts new file mode 100644 index 00000000..66047298 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts @@ -0,0 +1,16 @@ +export type ObjectLike = Record; +/** + * Check if the variable contains an object strictly rejecting arrays + * @returns `true` if obj is an object + */ +declare function isObjectNotArray(obj: unknown): obj is ObjectLike; +/** + * Pure function - doesn't mutate either parameter! + * Merges two objects together deeply, overwriting the properties in first with the properties in second + * @param first The first object + * @param second The second object + * @returns a new object + */ +export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record; +export { isObjectNotArray }; +//# sourceMappingURL=deepMerge.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map new file mode 100644 index 00000000..ac7365e2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js new file mode 100644 index 00000000..c0dd8281 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.deepMerge = deepMerge; +exports.isObjectNotArray = isObjectNotArray; +/** + * Check if the variable contains an object strictly rejecting arrays + * @returns `true` if obj is an object + */ +function isObjectNotArray(obj) { + return typeof obj === 'object' && obj != null && !Array.isArray(obj); +} +/** + * Pure function - doesn't mutate either parameter! + * Merges two objects together deeply, overwriting the properties in first with the properties in second + * @param first The first object + * @param second The second object + * @returns a new object + */ +function deepMerge(first = {}, second = {}) { + // get the unique set of keys across both objects + const keys = new Set([...Object.keys(first), ...Object.keys(second)]); + return Object.fromEntries([...keys].map(key => { + const firstHasKey = key in first; + const secondHasKey = key in second; + const firstValue = first[key]; + const secondValue = second[key]; + let value; + if (firstHasKey && secondHasKey) { + if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) { + // object type + value = deepMerge(firstValue, secondValue); + } + else { + // value type + value = secondValue; + } + } + else if (firstHasKey) { + value = firstValue; + } + else { + value = secondValue; + } + return [key, value]; + })); +} +//# sourceMappingURL=deepMerge.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map new file mode 100644 index 00000000..72199729 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/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AG,UAAU,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,KAAK,GAAG,WAAW,CAAC;QACtB,CAAC;QACD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts new file mode 100644 index 00000000..ea1cdab0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts @@ -0,0 +1,24 @@ +import type * as TSESLint from '../ts-eslint'; +import type { ParserServices, ParserServicesWithTypeInformation } from '../ts-estree'; +/** + * Try to retrieve type-aware parser service from context. + * This **_will_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>): ParserServicesWithTypeInformation; +/** + * Try to retrieve type-aware parser service from context. + * This **_will_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: false): ParserServicesWithTypeInformation; +/** + * Try to retrieve type-aware parser service from context. + * This **_will not_** throw if it is not available. + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: true): ParserServices; +/** + * Try to retrieve type-aware parser service from context. + * This may or may not throw if it is not available, depending on if `allowWithoutFullTypeInformation` is `true` + */ +declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: boolean): ParserServices; +export { getParserServices }; +//# sourceMappingURL=getParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map new file mode 100644 index 00000000..fca5232e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,iCAAiC,EAClC,MAAM,cAAc,CAAC;AAWtB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,GAC3D,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,KAAK,GACrC,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,IAAI,GACpC,cAAc,CAAC;AAClB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,OAAO,GACvC,cAAc,CAAC;AAiDlB,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js new file mode 100644 index 00000000..2633daf8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParserServices = getParserServices; +const parserSeemsToBeTSESLint_1 = require("./parserSeemsToBeTSESLint"); +const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information."; +const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.'; +function getParserServices(context, allowWithoutFullTypeInformation = false) { + const parser = context.parserPath || context.languageOptions.parser?.meta?.name; + // This check is unnecessary if the user is using the latest version of our parser. + // + // However the world isn't perfect: + // - Users often use old parser versions. + // Old versions of the parser would not return any parserServices unless parserOptions.project was set. + // - Users sometimes use parsers that aren't @typescript-eslint/parser + // Other parsers won't return the parser services we expect (if they return any at all). + // + // This check allows us to handle bad user setups whilst providing a nice user-facing + // error message explaining the problem. + if (context.sourceCode.parserServices?.esTreeNodeToTSNodeMap == null || + context.sourceCode.parserServices.tsNodeToESTreeNodeMap == null) { + throwError(parser); + } + // if a rule requires full type information, then hard fail if it doesn't exist + // this forces the user to supply parserOptions.project + if (context.sourceCode.parserServices.program == null && + !allowWithoutFullTypeInformation) { + throwError(parser); + } + return context.sourceCode.parserServices; +} +/* eslint-enable @typescript-eslint/unified-signatures */ +function throwError(parser) { + const messages = [ + ERROR_MESSAGE_REQUIRES_PARSER_SERVICES, + `Parser: ${parser || '(unknown)'}`, + !(0, parserSeemsToBeTSESLint_1.parserSeemsToBeTSESLint)(parser) && ERROR_MESSAGE_UNKNOWN_PARSER, + ].filter(Boolean); + throw new Error(messages.join('\n')); +} +//# sourceMappingURL=getParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map new file mode 100644 index 00000000..0a0e0e43 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;AA0GS,8CAAiB;AApG1B,uEAAoE;AAEpE,MAAM,sCAAsC,GAC1C,+OAA+O,CAAC;AAElP,MAAM,4BAA4B,GAChC,mKAAmK,CAAC;AA+CtK,SAAS,iBAAiB,CACxB,OAA0D,EAC1D,+BAA+B,GAAG,KAAK;IAEvC,MAAM,MAAM,GACV,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;IAEnE,mFAAmF;IACnF,EAAE;IACF,mCAAmC;IACnC,yCAAyC;IACzC,yGAAyG;IACzG,sEAAsE;IACtE,0FAA0F;IAC1F,EAAE;IACF,qFAAqF;IACrF,wCAAwC;IACxC,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,IAAI,IAAI;QAChE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,qBAAqB,IAAI,IAAI,EAC/D,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,+EAA+E;IAC/E,uDAAuD;IACvD,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,IAAI,IAAI;QACjD,CAAC,+BAA+B,EAChC,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,OAAO,CAAC,UAAU,CAAC,cAAgC,CAAC;AAC7D,CAAC;AACD,yDAAyD;AAEzD,SAAS,UAAU,CAAC,MAA0B;IAC5C,MAAM,QAAQ,GAAG;QACf,sCAAsC;QACtC,WAAW,MAAM,IAAI,WAAW,EAAE;QAClC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,4BAA4B;KACjE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts new file mode 100644 index 00000000..95b326ec --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts @@ -0,0 +1,7 @@ +export * from './applyDefault'; +export * from './deepMerge'; +export * from './getParserServices'; +export * from './InferTypesFromRule'; +export * from './nullThrows'; +export * from './RuleCreator'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map new file mode 100644 index 00000000..d5c13312 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js new file mode 100644 index 00000000..e3895dd4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js @@ -0,0 +1,23 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./applyDefault"), exports); +__exportStar(require("./deepMerge"), exports); +__exportStar(require("./getParserServices"), exports); +__exportStar(require("./InferTypesFromRule"), exports); +__exportStar(require("./nullThrows"), exports); +__exportStar(require("./RuleCreator"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map new file mode 100644 index 00000000..21346960 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,gDAA8B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts new file mode 100644 index 00000000..af919fa2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts @@ -0,0 +1,14 @@ +/** + * A set of common reasons for calling nullThrows + */ +declare const NullThrowsReasons: { + readonly MissingParent: "Expected node to have a parent."; + readonly MissingToken: (token: string, thing: string) => string; +}; +/** + * Assert that a value must not be null or undefined. + * This is a nice explicit alternative to the non-null assertion operator. + */ +declare function nullThrows(value: T, message: string): NonNullable; +export { nullThrows, NullThrowsReasons }; +//# sourceMappingURL=nullThrows.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map new file mode 100644 index 00000000..d695757d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,iBAAiB;;mCAEC,MAAM,SAAS,MAAM;CAEnC,CAAC;AAEX;;;GAGG;AACH,iBAAS,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAMhE;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js new file mode 100644 index 00000000..2da6d2b1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NullThrowsReasons = void 0; +exports.nullThrows = nullThrows; +/** + * A set of common reasons for calling nullThrows + */ +const NullThrowsReasons = { + MissingParent: 'Expected node to have a parent.', + MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`, +}; +exports.NullThrowsReasons = NullThrowsReasons; +/** + * Assert that a value must not be null or undefined. + * This is a nice explicit alternative to the non-null assertion operator. + */ +function nullThrows(value, message) { + if (value == null) { + throw new Error(`Non-null Assertion Failed: ${message}`); + } + return value; +} +//# sourceMappingURL=nullThrows.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map new file mode 100644 index 00000000..e60696ca --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map @@ -0,0 +1 @@ +{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAqBS,gCAAU;AArBnB;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAcU,8CAAiB;AAZtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAAQ,EAAE,OAAe;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts new file mode 100644 index 00000000..ba5bebe6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts @@ -0,0 +1,2 @@ +export declare function parserSeemsToBeTSESLint(parser: string | undefined): boolean; +//# sourceMappingURL=parserSeemsToBeTSESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map new file mode 100644 index 00000000..57c62220 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parserSeemsToBeTSESLint.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js new file mode 100644 index 00000000..01a05902 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint; +function parserSeemsToBeTSESLint(parser) { + return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser); +} +//# sourceMappingURL=parserSeemsToBeTSESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map new file mode 100644 index 00000000..bdd2e3cd --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parserSeemsToBeTSESLint.js","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":";;AAAA,0DAEC;AAFD,SAAgB,uBAAuB,CAAC,MAA0B;IAChE,OAAO,CAAC,CAAC,MAAM,IAAI,0CAA0C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts new file mode 100644 index 00000000..fbc8815b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts @@ -0,0 +1,7 @@ +export * as ASTUtils from './ast-utils'; +export * as ESLintUtils from './eslint-utils'; +export * as JSONSchema from './json-schema'; +export * as TSESLint from './ts-eslint'; +export * from './ts-estree'; +export * as TSUtils from './ts-utils'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts.map new file mode 100644 index 00000000..107a73c0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js new file mode 100644 index 00000000..0ed4f85c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js @@ -0,0 +1,46 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSUtils = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0; +exports.ASTUtils = __importStar(require("./ast-utils")); +exports.ESLintUtils = __importStar(require("./eslint-utils")); +exports.JSONSchema = __importStar(require("./json-schema")); +exports.TSESLint = __importStar(require("./ts-eslint")); +__exportStar(require("./ts-estree"), exports); +exports.TSUtils = __importStar(require("./ts-utils")); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js.map new file mode 100644 index 00000000..1ab93e7b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwC;AAExC,8DAA8C;AAC9C,4DAA4C;AAC5C,wDAAwC;AACxC,8CAA4B;AAC5B,sDAAsC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts new file mode 100644 index 00000000..51303201 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts @@ -0,0 +1,388 @@ +/** + * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts + * We intentionally fork this because: + * - ESLint ***ONLY*** supports JSONSchema v4 + * - We want to provide stricter types + */ +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 + */ +export type JSONSchema4TypeName = 'any' | 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string'; +/** + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 + */ +export type JSONSchema4Type = boolean | number | string | null; +export type JSONSchema4TypeExtended = JSONSchema4Array | JSONSchema4Object | JSONSchema4Type; +export interface JSONSchema4Object { + [key: string]: JSONSchema4TypeExtended; +} +export interface JSONSchema4Array extends Array { +} +/** + * Meta schema + * + * Recommended values: + * - 'http://json-schema.org/schema#' + * - 'http://json-schema.org/hyper-schema#' + * - 'http://json-schema.org/draft-04/schema#' + * - 'http://json-schema.org/draft-04/hyper-schema#' + * - 'http://json-schema.org/draft-03/schema#' + * - 'http://json-schema.org/draft-03/hyper-schema#' + * + * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 + */ +export type JSONSchema4Version = string; +/** + * JSON Schema V4 + * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 + */ +export type JSONSchema4 = JSONSchema4AllOfSchema | JSONSchema4AnyOfSchema | JSONSchema4AnySchema | JSONSchema4ArraySchema | JSONSchema4BooleanSchema | JSONSchema4MultiSchema | JSONSchema4NullSchema | JSONSchema4NumberSchema | JSONSchema4ObjectSchema | JSONSchema4OneOfSchema | JSONSchema4RefSchema | JSONSchema4StringSchema; +interface JSONSchema4Base { + /** + * Reusable definitions that can be referenced via `$ref` + */ + $defs?: Record | undefined; + /** + * Path to a schema defined in `definitions`/`$defs` that will form the base + * for this schema. + * + * If you are defining an "array" schema (`schema: [ ... ]`) for your rule + * then you should prefix this with `items/0` so that the validator can find + * your definitions. + * + * eg: `'#/items/0/definitions/myDef'` + * + * Otherwise if you are defining an "object" schema (`schema: { ... }`) for + * your rule you can directly reference your definitions + * + * eg: `'#/definitions/myDef'` + */ + $ref?: string | undefined; + $schema?: JSONSchema4Version | undefined; + /** + * (AND) Must be valid against all of the sub-schemas + */ + allOf?: JSONSchema4[] | undefined; + /** + * (OR) Must be valid against any of the sub-schemas + */ + anyOf?: JSONSchema4[] | undefined; + /** + * The default value for the item if not present + */ + default?: JSONSchema4TypeExtended | undefined; + /** + * Reusable definitions that can be referenced via `$ref` + */ + definitions?: Record | undefined; + /** + * This attribute is a string that provides a full description of the of + * purpose the instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22 + */ + description?: string | undefined; + /** + * The value of this property MUST be another schema which will provide + * a base schema which the current schema will inherit from. The + * inheritance rules are such that any instance that is valid according + * to the current schema MUST be valid according to the referenced + * schema. This MAY also be an array, in which case, the instance MUST + * be valid for all the schemas in the array. A schema that extends + * another schema MAY define additional attributes, constrain existing + * attributes, or add other constraints. + * + * Conceptually, the behavior of extends can be seen as validating an + * instance against all constraints in the extending schema as well as + * the extended schema(s). + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26 + */ + extends?: string | string[] | undefined; + id?: string | undefined; + /** + * (NOT) Must not be valid against the given schema + */ + not?: JSONSchema4 | undefined; + /** + * (XOR) Must be valid against exactly one of the sub-schemas + */ + oneOf?: JSONSchema4[] | undefined; + /** + * This attribute indicates if the instance must have a value, and not + * be undefined. This is false by default, making the instance + * optional. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7 + */ + required?: boolean | string[] | undefined; + /** + * This attribute is a string that provides a short description of the + * instance property. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21 + */ + title?: string | undefined; + /** + * A single type, or a union of simple types + */ + type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined; +} +export interface JSONSchema4RefSchema extends JSONSchema4Base { + $ref: string; + type?: undefined; +} +export interface JSONSchema4AllOfSchema extends JSONSchema4Base { + allOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4AnyOfSchema extends JSONSchema4Base { + anyOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4OneOfSchema extends JSONSchema4Base { + oneOf: JSONSchema4[]; + type?: undefined; +} +export interface JSONSchema4MultiSchema extends Omit, Omit, Omit, Omit, Omit, Omit, Omit { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: JSONSchema4Type[]; + type: JSONSchema4TypeName[]; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/object.html + */ +export interface JSONSchema4ObjectSchema extends JSONSchema4Base { + /** + * This attribute defines a schema for all properties that are not + * explicitly defined in an object type definition. If specified, the + * value MUST be a schema or a boolean. If false is provided, no + * additional properties are allowed beyond the properties defined in + * the schema. The default value is an empty schema which allows any + * value for additional properties. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4 + */ + additionalProperties?: boolean | JSONSchema4 | undefined; + /** + * The `dependencies` keyword conditionally applies a sub-schema when a given + * property is present. This schema is applied in the same way `allOf` applies + * schemas. Nothing is merged or extended. Both schemas apply independently. + */ + dependencies?: Record | undefined; + /** + * The maximum number of properties allowed for record-style schemas + */ + maxProperties?: number | undefined; + /** + * The minimum number of properties required for record-style schemas + */ + minProperties?: number | undefined; + /** + * This attribute is an object that defines the schema for a set of + * property names of an object instance. The name of each property of + * this attribute's object is a regular expression pattern in the ECMA + * 262/Perl 5 format, while the value is a schema. If the pattern + * matches the name of a property on the instance object, the value of + * the instance's property MUST be valid against the pattern name's + * schema value. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3 + */ + patternProperties?: Record | undefined; + /** + * This attribute is an object with property definitions that define the + * valid values of instance object property values. When the instance + * value is an object, the property values of the instance object MUST + * conform to the property definitions in this object. In this object, + * each property definition's value MUST be a schema, and the property's + * name MUST be the name of the instance property that it defines. The + * instance property value MUST be valid according to the schema from + * the property definition. Properties are considered unordered, the + * order of the instance properties MAY be in any order. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2 + */ + properties?: Record | undefined; + type: 'object'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/array.html + */ +export interface JSONSchema4ArraySchema extends JSONSchema4Base { + /** + * May only be defined when "items" is defined, and is a tuple of JSONSchemas. + * + * This provides a definition for additional items in an array instance + * when tuple definitions of the items is provided. This can be false + * to indicate additional items in the array are not allowed, or it can + * be a schema that defines the schema of the additional items. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6 + */ + additionalItems?: boolean | JSONSchema4 | undefined; + /** + * This attribute defines the allowed items in an instance array, and + * MUST be a schema or an array of schemas. The default value is an + * empty schema which allows any value for items in the instance array. + * + * When this attribute value is a schema and the instance value is an + * array, then all the items in the array MUST be valid according to the + * schema. + * + * When this attribute value is an array of schemas and the instance + * value is an array, each position in the instance array MUST conform + * to the schema in the corresponding position for this array. This + * called tuple typing. When tuple typing is used, additional items are + * allowed, disallowed, or constrained by the "additionalItems" + * (Section 5.6) attribute using the same rules as + * "additionalProperties" (Section 5.4) for objects. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5 + */ + items?: JSONSchema4 | JSONSchema4[] | undefined; + /** + * Defines the maximum length of an array + */ + maxItems?: number | undefined; + /** + * Defines the minimum length of an array + */ + minItems?: number | undefined; + type: 'array'; + /** + * Enforces that all items in the array are unique + */ + uniqueItems?: boolean | undefined; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/string.html + */ +export interface JSONSchema4StringSchema extends JSONSchema4Base { + enum?: string[] | undefined; + /** + * The `format` keyword allows for basic semantic identification of certain + * kinds of string values that are commonly used. + * + * For example, because JSON doesn’t have a “DateTime” type, dates need to be + * encoded as strings. `format` allows the schema author to indicate that the + * string value should be interpreted as a date. + * + * ajv v6 provides a few built-in formats - all other strings will cause AJV + * to throw during schema compilation + */ + format?: 'date' | 'date-time' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'json-pointer' | 'json-pointer-uri-fragment' | 'regex' | 'relative-json-pointer' | 'time' | 'uri' | 'uri-reference' | 'uri-template' | 'url' | 'uuid' | undefined; + /** + * The maximum allowed length for the string + */ + maxLength?: number | undefined; + /** + * The minimum allowed length for the string + */ + minLength?: number | undefined; + /** + * The `pattern` keyword is used to restrict a string to a particular regular + * expression. The regular expression syntax is the one defined in JavaScript + * (ECMA 262 specifically) with Unicode support. + * + * When defining the regular expressions, it’s important to note that the + * string is considered valid if the expression matches anywhere within the + * string. For example, the regular expression "p" will match any string with + * a p in it, such as "apple" not just a string that is simply "p". Therefore, + * it is usually less confusing, as a matter of course, to surround the + * regular expression in ^...$, for example, "^p$", unless there is a good + * reason not to do so. + */ + pattern?: string | undefined; + type: 'string'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/numeric.html + */ +export interface JSONSchema4NumberSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: number[] | undefined; + /** + * The exclusive minimum allowed value for the number + * - `true` = `x < maximum` + * - `false` = `x <= maximum` + * + * Default is `false` + */ + exclusiveMaximum?: boolean | undefined; + /** + * Indicates whether or not `minimum` is the inclusive or exclusive minimum + * - `true` = `x > minimum` + * - `false` = `x ≥ minimum` + * + * Default is `false` + */ + exclusiveMinimum?: boolean | undefined; + /** + * The maximum allowed value for the number + */ + maximum?: number | undefined; + /** + * The minimum allowed value for the number + */ + minimum?: number | undefined; + /** + * Numbers can be restricted to a multiple of a given number, using the + * `multipleOf` keyword. It may be set to any positive number. + */ + multipleOf?: number | undefined; + type: 'integer' | 'number'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/boolean.html + */ +export interface JSONSchema4BooleanSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: boolean[] | undefined; + type: 'boolean'; +} +/** + * @see https://json-schema.org/understanding-json-schema/reference/null.html + */ +export interface JSONSchema4NullSchema extends JSONSchema4Base { + /** + * This provides an enumeration of all possible values that are valid + * for the instance property. This MUST be an array, and each item in + * the array represents a possible value for the instance value. If + * this attribute is defined, the instance value MUST be one of the + * values in the array in order for the schema to be valid. + * + * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 + */ + enum?: null[] | undefined; + type: 'null'; +} +export interface JSONSchema4AnySchema extends JSONSchema4Base { + type: 'any'; +} +export {}; +//# sourceMappingURL=json-schema.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map new file mode 100644 index 00000000..780f1c37 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,MAA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,SAAS,CAAC;IAE7B,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,IAAI,EAAE,KAAK,CAAC;CACb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js new file mode 100644 index 00000000..8597348f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js @@ -0,0 +1,9 @@ +"use strict"; +/** + * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts + * We intentionally fork this because: + * - ESLint ***ONLY*** supports JSONSchema v4 + * - We want to provide stricter types + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js.map new file mode 100644 index 00000000..a088a7e9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/json-schema.js.map @@ -0,0 +1 @@ +{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts new file mode 100644 index 00000000..3b56109d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts @@ -0,0 +1,9 @@ +import type { AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; +declare namespace AST { + type TokenType = AST_TOKEN_TYPES; + type Token = TSESTree.Token; + type SourceLocation = TSESTree.SourceLocation; + type Range = TSESTree.Range; +} +export type { AST }; +//# sourceMappingURL=AST.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map new file mode 100644 index 00000000..d62fd00f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AST.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9D,kBAAU,GAAG,CAAC;IACZ,KAAY,SAAS,GAAG,eAAe,CAAC;IAExC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEnC,KAAY,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAErD,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;CACpC;AAED,YAAY,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js new file mode 100644 index 00000000..323ed556 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=AST.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map new file mode 100644 index 00000000..2aa7f04b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts new file mode 100644 index 00000000..1b438734 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts @@ -0,0 +1,269 @@ +import type { Parser as ParserType } from './Parser'; +import type * as ParserOptionsTypes from './ParserOptions'; +import type { Processor as ProcessorType } from './Processor'; +import type { LooseRuleDefinition, SharedConfigurationSettings } from './Rule'; +/** @internal */ +export declare namespace SharedConfig { + type Severity = 0 | 1 | 2; + type SeverityString = 'error' | 'off' | 'warn'; + type RuleLevel = Severity | SeverityString; + type RuleLevelAndOptions = [RuleLevel, ...unknown[]]; + type RuleEntry = RuleLevel | RuleLevelAndOptions; + type RulesRecord = Partial>; + type GlobalVariableOptionBase = 'off' | /** @deprecated use `'readonly'` */ 'readable' | 'readonly' | 'writable' | /** @deprecated use `'writable'` */ 'writeable'; + type GlobalVariableOptionBoolean = /** @deprecated use `'readonly'` */ false | /** @deprecated use `'writable'` */ true; + type GlobalVariableOption = GlobalVariableOptionBase | GlobalVariableOptionBoolean; + interface GlobalsConfig { + [name: string]: GlobalVariableOption; + } + interface EnvironmentConfig { + [name: string]: boolean; + } + type ParserOptions = ParserOptionsTypes.ParserOptions; + interface PluginMeta { + /** + * The meta.name property should match the npm package name for your plugin. + */ + name: string; + /** + * The meta.version property should match the npm package version for your plugin. + */ + version: string; + } +} +export declare namespace ClassicConfig { + export type EnvironmentConfig = SharedConfig.EnvironmentConfig; + export type GlobalsConfig = SharedConfig.GlobalsConfig; + export type GlobalVariableOption = SharedConfig.GlobalVariableOption; + export type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase; + export type ParserOptions = SharedConfig.ParserOptions; + export type RuleEntry = SharedConfig.RuleEntry; + export type RuleLevel = SharedConfig.RuleLevel; + export type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + export type RulesRecord = SharedConfig.RulesRecord; + export type Severity = SharedConfig.Severity; + export type SeverityString = SharedConfig.SeverityString; + interface BaseConfig { + $schema?: string; + /** + * The environment settings. + */ + env?: EnvironmentConfig; + /** + * The path to other config files or the package name of shareable configs. + */ + extends?: string | string[]; + /** + * The global variable settings. + */ + globals?: GlobalsConfig; + /** + * The flag that disables directive comments. + */ + noInlineConfig?: boolean; + /** + * The override settings per kind of files. + */ + overrides?: ConfigOverride[]; + /** + * The path to a parser or the package name of a parser. + */ + parser?: string | null; + /** + * The parser options. + */ + parserOptions?: ParserOptions; + /** + * The plugin specifiers. + */ + plugins?: string[]; + /** + * The processor specifier. + */ + processor?: string; + /** + * The flag to report unused `eslint-disable` comments. + */ + reportUnusedDisableDirectives?: boolean; + /** + * The rule settings. + */ + rules?: RulesRecord; + /** + * The shared settings. + */ + settings?: SharedConfigurationSettings; + } + export interface ConfigOverride extends BaseConfig { + excludedFiles?: string | string[]; + files: string | string[]; + } + export interface Config extends BaseConfig { + /** + * The glob patterns that ignore to lint. + */ + ignorePatterns?: string | string[]; + /** + * The root flag. + */ + root?: boolean; + } + export {}; +} +export declare namespace FlatConfig { + type EcmaVersion = ParserOptionsTypes.EcmaVersion; + type GlobalsConfig = SharedConfig.GlobalsConfig; + type Parser = ParserType.LooseParserModule; + type ParserOptions = SharedConfig.ParserOptions; + type PluginMeta = SharedConfig.PluginMeta; + type Processor = ProcessorType.LooseProcessorModule; + type RuleEntry = SharedConfig.RuleEntry; + type RuleLevel = SharedConfig.RuleLevel; + type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + type Rules = SharedConfig.RulesRecord; + type Settings = SharedConfigurationSettings; + type Severity = SharedConfig.Severity; + type SeverityString = SharedConfig.SeverityString; + type SourceType = 'commonjs' | ParserOptionsTypes.SourceType; + interface SharedConfigs { + [key: string]: Config | ConfigArray; + } + interface Plugin { + /** + * Shared configurations bundled with the plugin. + * Users will reference these directly in their config (i.e. `plugin.configs.recommended`). + */ + configs?: SharedConfigs; + /** + * Metadata about your plugin for easier debugging and more effective caching of plugins. + */ + meta?: { + [K in keyof PluginMeta]?: PluginMeta[K] | undefined; + }; + /** + * The definition of plugin processors. + * Users can stringly reference the processor using the key in their config (i.e., `"pluginName/processorName"`). + */ + processors?: Partial> | undefined; + /** + * The definition of plugin rules. + * The key must be the name of the rule that users will use + * Users can stringly reference the rule using the key they registered the plugin under combined with the rule name. + * i.e. for the user config `plugins: { foo: pluginReference }` - the reference would be `"foo/ruleName"`. + */ + rules?: Record | undefined; + } + interface Plugins { + /** + * We intentionally omit the `configs` key from this object because it avoids + * type conflicts with old plugins that haven't updated their configs to flat configs yet. + * It's valid to reference these old plugins because ESLint won't access the + * `.config` property of a plugin when evaluating a flat config. + */ + [pluginAlias: string]: Omit; + } + interface LinterOptions { + /** + * A Boolean value indicating if inline configuration is allowed. + */ + noInlineConfig?: boolean; + /** + * A severity string indicating if and how unused disable and enable + * directives should be tracked and reported. For legacy compatibility, `true` + * is equivalent to `"warn"` and `false` is equivalent to `"off"`. + * @default "off" + */ + reportUnusedDisableDirectives?: boolean | SharedConfig.Severity | SharedConfig.SeverityString; + } + interface LanguageOptions { + /** + * The version of ECMAScript to support. + * May be any year (i.e., `2022`) or version (i.e., `5`). + * Set to `"latest"` for the most recent supported version. + * @default "latest" + */ + ecmaVersion?: EcmaVersion | undefined; + /** + * An object specifying additional objects that should be added to the global scope during linting. + */ + globals?: GlobalsConfig | undefined; + /** + * An object containing a `parse()` method or a `parseForESLint()` method. + * @default + * ``` + * // https://github.com/eslint/espree + * require('espree') + * ``` + */ + parser?: Parser | undefined; + /** + * An object specifying additional options that are passed directly to the parser. + * The available options are parser-dependent. + */ + parserOptions?: ParserOptions | undefined; + /** + * The type of JavaScript source code. + * Possible values are `"script"` for traditional script files, `"module"` for ECMAScript modules (ESM), and `"commonjs"` for CommonJS files. + * @default + * ``` + * // for `.js` and `.mjs` files + * "module" + * // for `.cjs` files + * "commonjs" + * ``` + */ + sourceType?: SourceType | undefined; + } + interface Config { + /** + * An array of glob patterns indicating the files that the configuration object should apply to. + * If not specified, the configuration object applies to all files matched by any other configuration object. + */ + files?: (string | string[])[]; + /** + * An array of glob patterns indicating the files that the configuration object should not apply to. + * If not specified, the configuration object applies to all files matched by files. + */ + ignores?: string[]; + /** + * Language specifier in the form `namespace/language-name` where `namespace` is a plugin name set in the `plugins` field. + */ + language?: string; + /** + * An object containing settings related to how JavaScript is configured for linting. + */ + languageOptions?: LanguageOptions; + /** + * An object containing settings related to the linting process. + */ + linterOptions?: LinterOptions; + /** + * An string to identify the configuration object. Used in error messages and inspection tools. + */ + name?: string; + /** + * An object containing a name-value mapping of plugin names to plugin objects. + * When `files` is specified, these plugins are only available to the matching files. + */ + plugins?: Plugins; + /** + * Either an object containing `preprocess()` and `postprocess()` methods or + * a string indicating the name of a processor inside of a plugin + * (i.e., `"pluginName/processorName"`). + */ + processor?: string | Processor; + /** + * An object containing the configured rules. + * When `files` or `ignores` are specified, these rule configurations are only available to the matching files. + */ + rules?: Rules; + /** + * An object containing name-value pairs of information that should be available to all rules. + */ + settings?: Settings; + } + type ConfigArray = Config[]; + type ConfigPromise = Promise; + type ConfigFile = ConfigArray | ConfigPromise; +} +//# sourceMappingURL=Config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map new file mode 100644 index 00000000..c926280e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,kBAAkB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE/E,gBAAgB;AAChB,yBAAiB,YAAY,CAAC;IAC5B,KAAY,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,KAAY,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IACtD,KAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;IAElD,KAAY,mBAAmB,GAAG,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAE5D,KAAY,SAAS,GAAG,SAAS,GAAG,mBAAmB,CAAC;IACxD,KAAY,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAE7D,KAAY,wBAAwB,GAChC,KAAK,GACL,mCAAmC,CAAC,UAAU,GAC9C,UAAU,GACV,UAAU,GACV,mCAAmC,CAAC,WAAW,CAAC;IACpD,KAAY,2BAA2B,GACnC,mCAAmC,CAAC,KAAK,GACzC,mCAAmC,CAAC,IAAI,CA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ACpC;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B;;;WAGG;QACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QAC1C;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACrC;IAID,UAAiB,MAAM;QACrB;;;WAGG;QACH,KAAK,CAAC,EAAE,CACJ,MAAM,GACN,MAAM,EAAE,CACX,EAAE,CAAC;QACJ;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC/B;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC;QACd;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACrB;IACD,KAAY,WAAW,GAAG,MAAM,EAAE,CAAC;IACnC,KAAY,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,KAAY,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;CACtD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js new file mode 100644 index 00000000..3894b265 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/consistent-indexed-object-style, @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map new file mode 100644 index 00000000..44c1df28 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":";AAAA,0GAA0G"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts new file mode 100644 index 00000000..7c171a3e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts @@ -0,0 +1,8 @@ +export { FlatESLint } from './eslint/FlatESLint'; +export { FlatESLint as ESLint } from './eslint/FlatESLint'; +export { +/** + * @deprecated - use ESLint instead + */ +LegacyESLint, } from './eslint/LegacyESLint'; +//# sourceMappingURL=ESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map new file mode 100644 index 00000000..097c99f4 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLint.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO;AAEL;;GAEG;AACH,YAAY,GACb,MAAM,uBAAuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js new file mode 100644 index 00000000..e2c67bcb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LegacyESLint = exports.ESLint = exports.FlatESLint = void 0; +var FlatESLint_1 = require("./eslint/FlatESLint"); +Object.defineProperty(exports, "FlatESLint", { enumerable: true, get: function () { return FlatESLint_1.FlatESLint; } }); +var FlatESLint_2 = require("./eslint/FlatESLint"); +Object.defineProperty(exports, "ESLint", { enumerable: true, get: function () { return FlatESLint_2.FlatESLint; } }); +var LegacyESLint_1 = require("./eslint/LegacyESLint"); +// TODO(eslint@v10) - remove this in the next major +/** + * @deprecated - use ESLint instead + */ +Object.defineProperty(exports, "LegacyESLint", { enumerable: true, get: function () { return LegacyESLint_1.LegacyESLint; } }); +//# sourceMappingURL=ESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map new file mode 100644 index 00000000..62c149c7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLint.js","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAAxC,wGAAA,UAAU,OAAA;AACnB,kDAA2D;AAAlD,oGAAA,UAAU,OAAU;AAC7B,sDAM+B;AAL7B,mDAAmD;AACnD;;GAEG;AACH,4GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts new file mode 100644 index 00000000..7f8b2a76 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts @@ -0,0 +1,253 @@ +import type { ClassicConfig, FlatConfig, SharedConfig } from './Config'; +import type { Parser } from './Parser'; +import type { Processor as ProcessorType } from './Processor'; +import type { AnyRuleCreateFunction, AnyRuleModule, RuleCreateFunction, RuleFix, RuleModule } from './Rule'; +import type { SourceCode } from './SourceCode'; +export type MinimalRuleModule = Partial, 'create'>> & Pick, 'create'>; +declare class LinterBase { + /** + * The version from package.json. + */ + readonly version: string; + /** + * Initialize the Linter. + * @param config the config object + */ + constructor(config?: Linter.LinterOptions); + /** + * Define a new parser module + * @param parserId Name of the parser + * @param parserModule The parser object + */ + defineParser(parserId: string, parserModule: Parser.LooseParserModule): void; + /** + * Defines a new linting rule. + * @param ruleId A unique rule identifier + * @param ruleModule Function from context to object mapping AST node types to event handlers + */ + defineRule(ruleId: string, ruleModule: MinimalRuleModule | RuleCreateFunction): void; + /** + * Defines many new linting rules. + * @param rulesToDefine map from unique rule identifier to rule + */ + defineRules(rulesToDefine: Record | RuleCreateFunction>): void; + /** + * Gets an object with all loaded rules. + * @returns All loaded rules + */ + getRules(): Map>; + /** + * Gets the `SourceCode` object representing the parsed source. + * @returns The `SourceCode` object. + */ + getSourceCode(): SourceCode; + /** + * Verifies the text against the rules specified by the second argument. + * @param textOrSourceCode The text to parse or a SourceCode object. + * @param config An ESLintConfig instance to configure everything. + * @param filenameOrOptions The optional filename of the file being checked. + * If this is not set, the filename will default to '' in the rule context. + * If this is an object, then it has "filename", "allowInlineConfig", and some properties. + * @returns The results as an array of messages or an empty array if no messages. + */ + verify(textOrSourceCode: string | SourceCode, config: Linter.ConfigType, filenameOrOptions?: string | Linter.VerifyOptions): Linter.LintMessage[]; + /** + * The version from package.json. + */ + static readonly version: string; + /** + * Performs multiple autofix passes over the text until as many fixes as possible have been applied. + * @param code The source text to apply fixes to. + * @param config The ESLint config object to use. + * @param options The ESLint options object to use. + * @returns The result of the fix operation as returned from the SourceCodeFixer. + */ + verifyAndFix(code: string, config: Linter.ConfigType, options: Linter.FixOptions): Linter.FixReport; +} +declare namespace Linter { + interface LinterOptions { + /** + * Which config format to use. + * @default 'flat' + */ + configType?: ConfigTypeSpecifier; + /** + * path to a directory that should be considered as the current working directory. + */ + cwd?: string; + } + type ConfigTypeSpecifier = 'eslintrc' | 'flat'; + type EnvironmentConfig = SharedConfig.EnvironmentConfig; + type GlobalsConfig = SharedConfig.GlobalsConfig; + type GlobalVariableOption = SharedConfig.GlobalVariableOption; + type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase; + type ParserOptions = SharedConfig.ParserOptions; + type PluginMeta = SharedConfig.PluginMeta; + type RuleEntry = SharedConfig.RuleEntry; + type RuleLevel = SharedConfig.RuleLevel; + type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions; + type RulesRecord = SharedConfig.RulesRecord; + type Severity = SharedConfig.Severity; + type SeverityString = SharedConfig.SeverityString; + /** @deprecated use {@link Linter.ConfigType} instead */ + type Config = ClassicConfig.Config; + type ConfigType = ClassicConfig.Config | FlatConfig.Config | FlatConfig.ConfigArray; + /** @deprecated use {@link ClassicConfig.ConfigOverride} instead */ + type ConfigOverride = ClassicConfig.ConfigOverride; + interface VerifyOptions { + /** + * Allow/disallow inline comments' ability to change config once it is set. Defaults to true if not supplied. + * Useful if you want to validate JS without comments overriding rules. + */ + allowInlineConfig?: boolean; + /** + * if `true` then the linter doesn't make `fix` properties into the lint result. + */ + disableFixes?: boolean; + /** + * the filename of the source code. + */ + filename?: string; + /** + * the predicate function that selects adopt code blocks. + */ + filterCodeBlock?: (filename: string, text: string) => boolean; + /** + * postprocessor for report messages. + * If provided, this should accept an array of the message lists + * for each code block returned from the preprocessor, apply a mapping to + * the messages as appropriate, and return a one-dimensional array of + * messages. + */ + postprocess?: ProcessorType.PostProcess; + /** + * preprocessor for source text. + * If provided, this should accept a string of source text, and return an array of code blocks to lint. + */ + preprocess?: ProcessorType.PreProcess; + /** + * Adds reported errors for unused `eslint-disable` directives. + */ + reportUnusedDisableDirectives?: boolean | SeverityString; + } + interface FixOptions extends VerifyOptions { + /** + * Determines whether fixes should be applied. + */ + fix?: boolean; + } + interface LintSuggestion { + desc: string; + fix: RuleFix; + messageId?: string; + } + interface LintMessage { + /** + * The 1-based column number. + */ + column: number; + /** + * The 1-based column number of the end location. + */ + endColumn?: number; + /** + * The 1-based line number of the end location. + */ + endLine?: number; + /** + * If `true` then this is a fatal error. + */ + fatal?: true; + /** + * Information for autofix. + */ + fix?: RuleFix; + /** + * The 1-based line number. + */ + line: number; + /** + * The error message. + */ + message: string; + messageId?: string; + nodeType: string; + /** + * The ID of the rule which makes this message. + */ + ruleId: string | null; + /** + * The severity of this message. + */ + severity: Severity; + source: string | null; + /** + * Information for suggestions + */ + suggestions?: LintSuggestion[]; + } + interface FixReport { + /** + * True, if the code was fixed + */ + fixed: boolean; + /** + * Collection of all messages for the given code + */ + messages: LintMessage[]; + /** + * Fixed code text (might be the same as input if no fixes were applied). + */ + output: string; + } + /** @deprecated use {@link Parser.ParserModule} */ + type ParserModule = Parser.LooseParserModule; + /** @deprecated use {@link Parser.ParseResult} */ + type ESLintParseResult = Parser.ParseResult; + /** @deprecated use {@link ProcessorType.ProcessorModule} */ + type Processor = ProcessorType.ProcessorModule; + interface Environment { + /** + * The definition of global variables. + */ + globals?: GlobalsConfig; + /** + * The parser options that will be enabled under this environment. + */ + parserOptions?: ParserOptions; + } + type LegacyPluginRules = Record; + type PluginRules = Record; + interface Plugin { + /** + * The definition of plugin configs. + */ + configs?: Record; + /** + * The definition of plugin environments. + */ + environments?: Record; + /** + * Metadata about your plugin for easier debugging and more effective caching of plugins. + */ + meta?: PluginMeta; + /** + * The definition of plugin processors. + */ + processors?: Record; + /** + * The definition of plugin rules. + */ + rules?: LegacyPluginRules; + } +} +declare const Linter_base: typeof LinterBase; +/** + * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it + * simply parses and reports on the code. In particular, the Linter object does not process configuration objects + * or files. + */ +declare class Linter extends Linter_base { +} +export { Linter }; +//# sourceMappingURL=Linter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map new file mode 100644 index 00000000..c515393e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Linter.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,OAAO,EACP,UAAU,EACX,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,CAC3B,UAAU,SAAS,MAAM,GAAG,MAAM,EAClC,OAAO,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,IACrC,OA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C;IAED,UAAiB,SAAS;QACxB;;WAEG;QACH,KAAK,EAAE,OAAO,CAAC;QACf;;WAEG;QACH,QAAQ,EAAE,WAAW,EAAE,CAAC;QACxB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;IAED,kDAAkD;IAClD,KAAY,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAEpD,iDAAiD;IACjD,KAAY,iBAAiB,GAAG,MAAM,CAAC,WAAW,CAAC;IAEnD,4DAA4D;IAC5D,KAAY,SAAS,GAAG,aAAa,CAAC,eAAe,CAAC;IAEtD,UAAiB,WAAW;QAC1B;;WAEG;QACH,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B;IAGD,KAAY,iBAAiB,GAAG,MAAM,CACpC,MAAM,EACN,qBAAqB,GAAG,aAAa,CACtC,CAAC;IACF,KAAY,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAExD,UAAiB,MAAM;QACrB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC/C;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAC3C;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D;;WAEG;QACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;KAC3B;CACF;2BAOqC,OAAO,UAAU;AALvD;;;;GAIG;AACH,cAAM,MAAO,SAAQ,WAAmC;CAAG;AAE3D,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js new file mode 100644 index 00000000..4fd16f1b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js @@ -0,0 +1,14 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Linter = void 0; +const eslint_1 = require("eslint"); +/** + * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it + * simply parses and reports on the code. In particular, the Linter object does not process configuration objects + * or files. + */ +class Linter extends eslint_1.Linter { +} +exports.Linter = Linter; +//# sourceMappingURL=Linter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map new file mode 100644 index 00000000..37f3c5d1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAgD;AAuThD;;;;GAIG;AACH,MAAM,MAAO,SAAS,eAAkC;CAAG;AAElD,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts new file mode 100644 index 00000000..84f52c92 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts @@ -0,0 +1,95 @@ +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { ParserOptions } from './ParserOptions'; +import type { Scope } from './Scope'; +export declare namespace Parser { + interface ParserMeta { + /** + * The unique name of the parser. + */ + name: string; + /** + * The a string identifying the version of the parser. + */ + version?: string; + } + /** + * A loose definition of the ParserModule type for use with configs + * This type intended to relax validation of configs so that parsers that have + * different AST types or scope managers can still be passed to configs + * + * @see {@link LooseRuleDefinition}, {@link LooseProcessorModule} + */ + type LooseParserModule = { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ParserMeta]?: ParserMeta[K] | undefined; + }; + /** + * Parses the given text into an AST + */ + parseForESLint(text: string, options?: unknown): { + [k in keyof ParseResult]: unknown; + }; + } | { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ParserMeta]?: ParserMeta[K] | undefined; + }; + /** + * Parses the given text into an ESTree AST + */ + parse(text: string, options?: unknown): unknown; + }; + type ParserModule = { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: ParserMeta; + /** + * Parses the given text into an AST + */ + parseForESLint(text: string, options?: ParserOptions): ParseResult; + } | { + /** + * Information about the parser to uniquely identify it when serializing. + */ + meta?: ParserMeta; + /** + * Parses the given text into an ESTree AST + */ + parse(text: string, options?: ParserOptions): TSESTree.Program; + }; + interface ParseResult { + /** + * The ESTree AST + */ + ast: TSESTree.Program; + /** + * A `ScopeManager` object. + * Custom parsers can use customized scope analysis for experimental/enhancement syntaxes. + * The default is the `ScopeManager` object which is created by `eslint-scope`. + */ + scopeManager?: Scope.ScopeManager; + /** + * Any parser-dependent services (such as type checkers for nodes). + * The value of the services property is available to rules as `context.sourceCode.parserServices`. + * The default is an empty object. + */ + services?: ParserServices; + /** + * An object to customize AST traversal. + * The keys of the object are the type of AST nodes. + * Each value is an array of the property names which should be traversed. + * The default is `KEYS` of `eslint-visitor-keys`. + */ + visitorKeys?: VisitorKeys; + } + interface VisitorKeys { + [nodeType: string]: readonly string[]; + } +} +//# sourceMappingURL=Parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map new file mode 100644 index 00000000..bb356585 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Parser.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,yBAAiB,MAAM,CAAC;IACtB,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED;;;;;;OAMG;IACH,KAAY,iBAAiB,GACzB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,OAAO,GAChB;aAEA,CAAC,IAAI,MAAM,WAAW,GAAG,OAAO;SAClC,CAAC;KACH,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KACjD,CAAC;IAEN,KAAY,YAAY,GACpB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;KACpE,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC;KAChE,CAAC;IAEN,UAAiB,WAAW;QAC1B;;WAEG;QACH,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC;QACtB;;;;WAIG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;QAClC;;;;WAIG;QACH,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B;;;;;WAKG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B;IAGD,UAAiB,WAAW;QAC1B,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;KACvC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js new file mode 100644 index 00000000..10cd9ec7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map new file mode 100644 index 00000000..502d0474 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts new file mode 100644 index 00000000..62d627d3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts @@ -0,0 +1,2 @@ +export type { DebugLevel, EcmaVersion, ParserOptions, SourceType, } from '@typescript-eslint/types'; +//# sourceMappingURL=ParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map new file mode 100644 index 00000000..9c8b324a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ParserOptions.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js new file mode 100644 index 00000000..40b03dd5 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map new file mode 100644 index 00000000..7bd7a94c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ParserOptions.js","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts new file mode 100644 index 00000000..0f212816 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts @@ -0,0 +1,64 @@ +import type { Linter } from './Linter'; +export declare namespace Processor { + interface ProcessorMeta { + /** + * The unique name of the processor. + */ + name: string; + /** + * The a string identifying the version of the processor. + */ + version?: string; + } + type PreProcess = (text: string, filename: string) => (string | { + filename: string; + text: string; + })[]; + type PostProcess = (messagesList: Linter.LintMessage[][], filename: string) => Linter.LintMessage[]; + interface ProcessorModule { + /** + * Information about the processor to uniquely identify it when serializing. + */ + meta?: ProcessorMeta; + /** + * The function to merge messages. + */ + postprocess?: PostProcess; + /** + * The function to extract code blocks. + */ + preprocess?: PreProcess; + /** + * If `true` then it means the processor supports autofix. + */ + supportsAutofix?: boolean; + } + /** + * A loose definition of the ParserModule type for use with configs + * This type intended to relax validation of configs so that parsers that have + * different AST types or scope managers can still be passed to configs + * + * @see {@link LooseRuleDefinition}, {@link LooseParserModule} + */ + interface LooseProcessorModule { + /** + * Information about the processor to uniquely identify it when serializing. + */ + meta?: { + [K in keyof ProcessorMeta]?: ProcessorMeta[K] | undefined; + }; + /** + * The function to merge messages. + */ + postprocess?: (messagesList: any, filename: string) => any; + /** + * The function to extract code blocks. + */ + preprocess?: (text: string, filename: string) => any; + /** + * If `true` then it means the processor supports autofix. + */ + supportsAutofix?: boolean | undefined; + } +} +//# sourceMappingURL=Processor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map new file mode 100644 index 00000000..3e4ccd17 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,yBAAiB,SAAS,CAAC;IACzB,UAAiB,aAAa;QAC5B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED,KAAY,UAAU,GAAG,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,CAAC,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAErD,KAAY,WAAW,GAAG,CACxB,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,EACpC,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC,WAAW,EAAE,CAAC;IAE1B,UAAiB,eAAe;QAC9B;;WAEG;QACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAErB;;WAEG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;QAE1B;;WAEG;QACH,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B;IAED;;;;;;OAMG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAErE;;WAEG;QAMH,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAE3D;;WAEG;QAMH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAErD;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACvC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js new file mode 100644 index 00000000..4dc798a7 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js @@ -0,0 +1,4 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Processor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map new file mode 100644 index 00000000..1e717ae0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Processor.js","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts new file mode 100644 index 00000000..668d2bd1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts @@ -0,0 +1,545 @@ +import type { JSONSchema4 } from '../json-schema'; +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { AST } from './AST'; +import type { FlatConfig } from './Config'; +import type { Linter } from './Linter'; +import type { Scope } from './Scope'; +import type { SourceCode } from './SourceCode'; +export type RuleRecommendation = 'recommended' | 'strict' | 'stylistic'; +export interface RuleRecommendationAcrossConfigs { + recommended?: true; + strict: Partial; +} +export interface RuleMetaDataDocs { + /** + * Concise description of the rule. + */ + description: string; + /** + * The URL of the rule's docs. + */ + url?: string; +} +export interface RuleMetaData { + /** + * True if the rule is deprecated, false otherwise + */ + deprecated?: boolean; + /** + * Documentation for the rule + */ + docs?: PluginDocs & RuleMetaDataDocs; + /** + * The fixer category. Omit if there is no fixer + */ + fixable?: 'code' | 'whitespace'; + /** + * Specifies whether rules can return suggestions. Omit if there is no suggestions + */ + hasSuggestions?: boolean; + /** + * A map of messages which the rule can report. + * The key is the messageId, and the string is the parameterised error string. + * See: https://eslint.org/docs/developer-guide/working-with-rules#messageids + */ + messages: Record; + /** + * The name of the rule this rule was replaced by, if it was deprecated. + */ + replacedBy?: readonly string[]; + /** + * The options schema. Supply an empty array if there are no options. + */ + schema: JSONSchema4 | readonly JSONSchema4[]; + /** + * The type of rule. + * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. + * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. + * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren’t specified in the AST. + */ + type: 'layout' | 'problem' | 'suggestion'; + /** + * Specifies default options for the rule. If present, any user-provided options in their config will be merged on top of them recursively. + * This merging will be applied directly to `context.options`. + * If you want backwards-compatible support for earlier ESLint version; consider using the top-level `defaultOptions` instead. + * + * since ESLint 9.15.0 + */ + defaultOptions?: Options; +} +export interface RuleMetaDataWithDocs extends RuleMetaData { + /** + * Documentation for the rule + */ + docs: PluginDocs & RuleMetaDataDocs; +} +export interface RuleFix { + range: Readonly; + text: string; +} +export interface RuleFixer { + insertTextAfter(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + insertTextAfterRange(range: Readonly, text: string): RuleFix; + insertTextBefore(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + insertTextBeforeRange(range: Readonly, text: string): RuleFix; + remove(nodeOrToken: TSESTree.Node | TSESTree.Token): RuleFix; + removeRange(range: Readonly): RuleFix; + replaceText(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; + replaceTextRange(range: Readonly, text: string): RuleFix; +} +export interface SuggestionReportDescriptor extends Omit, 'fix'> { + readonly fix: ReportFixFunction; +} +export type ReportFixFunction = (fixer: RuleFixer) => IterableIterator | readonly RuleFix[] | RuleFix | null; +export type ReportSuggestionArray = SuggestionReportDescriptor[]; +export type ReportDescriptorMessageData = Readonly>; +interface ReportDescriptorBase { + /** + * The parameters for the message string associated with `messageId`. + */ + readonly data?: ReportDescriptorMessageData; + /** + * The fixer function. + */ + readonly fix?: ReportFixFunction | null; + /** + * The messageId which is being reported. + */ + readonly messageId: MessageIds; +} +interface ReportDescriptorWithSuggestion extends ReportDescriptorBase { + /** + * 6.7's Suggestions API + */ + readonly suggest?: Readonly> | null; +} +interface ReportDescriptorNodeOptionalLoc { + /** + * An override of the location of the report + */ + readonly loc?: Readonly | Readonly; + /** + * The Node or AST Token which the report is being attached to + */ + readonly node: TSESTree.Node | TSESTree.Token; +} +interface ReportDescriptorLocOnly { + /** + * An override of the location of the report + */ + loc: Readonly | Readonly; +} +export type ReportDescriptor = (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc) & ReportDescriptorWithSuggestion; +/** + * Plugins can add their settings using declaration + * merging against this interface. + */ +export interface SharedConfigurationSettings { + [name: string]: unknown; +} +export interface RuleContext { + /** + * The rule ID. + */ + id: string; + /** + * The language options configured for this run + */ + languageOptions: FlatConfig.LanguageOptions; + /** + * An array of the configured options for this rule. + * This array does not include the rule severity. + */ + options: Options; + /** + * The parser options configured for this run + */ + parserOptions: Linter.ParserOptions; + /** + * The name of the parser from configuration, if in eslintrc (legacy) config. + */ + parserPath: string | undefined; + /** + * An object containing parser-provided services for rules + * + * @deprecated in favor of `SourceCode#parserServices` + */ + parserServices?: ParserServices; + /** + * The shared settings from configuration. + * We do not have any shared settings in this plugin. + */ + settings: SharedConfigurationSettings; + /** + * Returns an array of the ancestors of the currently-traversed node, starting at + * the root of the AST and continuing through the direct parent of the current node. + * This array does not include the currently-traversed node itself. + * + * @deprecated in favor of `SourceCode#getAncestors` + */ + getAncestors(): TSESTree.Node[]; + /** + * Returns a list of variables declared by the given node. + * This information can be used to track references to variables. + * + * @deprecated in favor of `SourceCode#getDeclaredVariables` + */ + getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; + /** + * Returns the current working directory passed to Linter. + * It is a path to a directory that should be considered as the current working directory. + * @deprecated in favor of `RuleContext#cwd` + */ + getCwd(): string; + /** + * The current working directory passed to Linter. + * It is a path to a directory that should be considered as the current working directory. + */ + cwd: string; + /** + * Returns the filename associated with the source. + * + * @deprecated in favor of `RuleContext#filename` + */ + getFilename(): string; + /** + * The filename associated with the source. + */ + filename: string; + /** + * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). + * @deprecated in favor of `RuleContext#physicalFilename` + */ + getPhysicalFilename(): string; + /** + * The full path of the file on disk without any code block information (unlike `filename`). + */ + physicalFilename: string; + /** + * Returns the scope of the currently-traversed node. + * This information can be used track references to variables. + * + * @deprecated in favor of `SourceCode#getScope` + */ + getScope(): Scope.Scope; + /** + * Returns a SourceCode object that you can use to work with the source that + * was passed to ESLint. + * + * @deprecated in favor of `RuleContext#sourceCode` + */ + getSourceCode(): Readonly; + /** + * A SourceCode object that you can use to work with the source that + * was passed to ESLint. + */ + sourceCode: Readonly; + /** + * Marks a variable with the given name in the current scope as used. + * This affects the no-unused-vars rule. + * + * @deprecated in favor of `SourceCode#markVariableAsUsed` + */ + markVariableAsUsed(name: string): boolean; + /** + * Reports a problem in the code. + */ + report(descriptor: ReportDescriptor): void; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * These are used in the `onCodePath*` methods. (Note that the `node` parameter + * of these methods is intentionally omitted.) + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export interface CodePath { + /** Code paths of functions this code path contains. */ + childCodePaths: CodePath[]; + /** + * Segments of the current traversal position. + * + * @deprecated + */ + currentSegments: CodePathSegment[]; + /** The final segments which includes both returned and thrown. */ + finalSegments: CodePathSegment[]; + /** + * A unique string. Respective rules can use `id` to save additional + * information for each code path. + */ + id: string; + initialSegment: CodePathSegment; + /** The final segments which includes only returned. */ + returnedSegments: CodePathSegment[]; + /** The final segments which includes only thrown. */ + thrownSegments: CodePathSegment[]; + /** The code path of the upper function/global scope. */ + upper: CodePath | null; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * These are used in the `onCodePath*` methods. (Note that the `node` parameter + * of these methods is intentionally omitted.) + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export interface CodePathSegment { + /** + * A unique string. Respective rules can use `id` to save additional + * information for each segment. + */ + id: string; + /** + * The next segments. If forking, there are two or more. If final, there is + * nothing. + */ + nextSegments: CodePathSegment[]; + /** + * The previous segments. If merging, there are two or more. If initial, there + * is nothing. + */ + prevSegments: CodePathSegment[]; + /** + * A flag which shows whether it is reachable. This becomes `false` when + * preceded by `return`, `throw`, `break`, or `continue`. + */ + reachable: boolean; +} +/** + * Part of the code path analysis feature of ESLint: + * https://eslint.org/docs/latest/extend/code-path-analysis + * + * This type is unused in the `typescript-eslint` codebase since putting it on + * the `nodeSelector` for `RuleListener` would break the existing definition. + * However, it is exported here for the purposes of manual type-assertion. + * + * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993 + */ +export type CodePathFunction = ((codePath: CodePath, node: TSESTree.Node) => void) | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: TSESTree.Node) => void) | ((segment: CodePathSegment, node: TSESTree.Node) => void); +export type RuleFunction = (node: T) => void; +interface RuleListenerBaseSelectors { + AccessorProperty?: RuleFunction; + ArrayExpression?: RuleFunction; + ArrayPattern?: RuleFunction; + ArrowFunctionExpression?: RuleFunction; + AssignmentExpression?: RuleFunction; + AssignmentPattern?: RuleFunction; + AwaitExpression?: RuleFunction; + BinaryExpression?: RuleFunction; + BlockStatement?: RuleFunction; + BreakStatement?: RuleFunction; + CallExpression?: RuleFunction; + CatchClause?: RuleFunction; + ChainExpression?: RuleFunction; + ClassBody?: RuleFunction; + ClassDeclaration?: RuleFunction; + ClassExpression?: RuleFunction; + ConditionalExpression?: RuleFunction; + ContinueStatement?: RuleFunction; + DebuggerStatement?: RuleFunction; + Decorator?: RuleFunction; + DoWhileStatement?: RuleFunction; + EmptyStatement?: RuleFunction; + ExportAllDeclaration?: RuleFunction; + ExportDefaultDeclaration?: RuleFunction; + ExportNamedDeclaration?: RuleFunction; + ExportSpecifier?: RuleFunction; + ExpressionStatement?: RuleFunction; + ForInStatement?: RuleFunction; + ForOfStatement?: RuleFunction; + ForStatement?: RuleFunction; + FunctionDeclaration?: RuleFunction; + FunctionExpression?: RuleFunction; + Identifier?: RuleFunction; + IfStatement?: RuleFunction; + ImportAttribute?: RuleFunction; + ImportDeclaration?: RuleFunction; + ImportDefaultSpecifier?: RuleFunction; + ImportExpression?: RuleFunction; + ImportNamespaceSpecifier?: RuleFunction; + ImportSpecifier?: RuleFunction; + JSXAttribute?: RuleFunction; + JSXClosingElement?: RuleFunction; + JSXClosingFragment?: RuleFunction; + JSXElement?: RuleFunction; + JSXEmptyExpression?: RuleFunction; + JSXExpressionContainer?: RuleFunction; + JSXFragment?: RuleFunction; + JSXIdentifier?: RuleFunction; + JSXMemberExpression?: RuleFunction; + JSXNamespacedName?: RuleFunction; + JSXOpeningElement?: RuleFunction; + JSXOpeningFragment?: RuleFunction; + JSXSpreadAttribute?: RuleFunction; + JSXSpreadChild?: RuleFunction; + JSXText?: RuleFunction; + LabeledStatement?: RuleFunction; + Literal?: RuleFunction; + LogicalExpression?: RuleFunction; + MemberExpression?: RuleFunction; + MetaProperty?: RuleFunction; + MethodDefinition?: RuleFunction; + NewExpression?: RuleFunction; + ObjectExpression?: RuleFunction; + ObjectPattern?: RuleFunction; + PrivateIdentifier?: RuleFunction; + Program?: RuleFunction; + Property?: RuleFunction; + PropertyDefinition?: RuleFunction; + RestElement?: RuleFunction; + ReturnStatement?: RuleFunction; + SequenceExpression?: RuleFunction; + SpreadElement?: RuleFunction; + StaticBlock?: RuleFunction; + Super?: RuleFunction; + SwitchCase?: RuleFunction; + SwitchStatement?: RuleFunction; + TaggedTemplateExpression?: RuleFunction; + TemplateElement?: RuleFunction; + TemplateLiteral?: RuleFunction; + ThisExpression?: RuleFunction; + ThrowStatement?: RuleFunction; + TryStatement?: RuleFunction; + TSAbstractAccessorProperty?: RuleFunction; + TSAbstractKeyword?: RuleFunction; + TSAbstractMethodDefinition?: RuleFunction; + TSAbstractPropertyDefinition?: RuleFunction; + TSAnyKeyword?: RuleFunction; + TSArrayType?: RuleFunction; + TSAsExpression?: RuleFunction; + TSAsyncKeyword?: RuleFunction; + TSBigIntKeyword?: RuleFunction; + TSBooleanKeyword?: RuleFunction; + TSCallSignatureDeclaration?: RuleFunction; + TSClassImplements?: RuleFunction; + TSConditionalType?: RuleFunction; + TSConstructorType?: RuleFunction; + TSConstructSignatureDeclaration?: RuleFunction; + TSDeclareFunction?: RuleFunction; + TSDeclareKeyword?: RuleFunction; + TSEmptyBodyFunctionExpression?: RuleFunction; + TSEnumBody?: RuleFunction; + TSEnumDeclaration?: RuleFunction; + TSEnumMember?: RuleFunction; + TSExportAssignment?: RuleFunction; + TSExportKeyword?: RuleFunction; + TSExternalModuleReference?: RuleFunction; + TSFunctionType?: RuleFunction; + TSImportEqualsDeclaration?: RuleFunction; + TSImportType?: RuleFunction; + TSIndexedAccessType?: RuleFunction; + TSIndexSignature?: RuleFunction; + TSInferType?: RuleFunction; + TSInstantiationExpression?: RuleFunction; + TSInterfaceBody?: RuleFunction; + TSInterfaceDeclaration?: RuleFunction; + TSInterfaceHeritage?: RuleFunction; + TSIntersectionType?: RuleFunction; + TSIntrinsicKeyword?: RuleFunction; + TSLiteralType?: RuleFunction; + TSMappedType?: RuleFunction; + TSMethodSignature?: RuleFunction; + TSModuleBlock?: RuleFunction; + TSModuleDeclaration?: RuleFunction; + TSNamedTupleMember?: RuleFunction; + TSNamespaceExportDeclaration?: RuleFunction; + TSNeverKeyword?: RuleFunction; + TSNonNullExpression?: RuleFunction; + TSNullKeyword?: RuleFunction; + TSNumberKeyword?: RuleFunction; + TSObjectKeyword?: RuleFunction; + TSOptionalType?: RuleFunction; + TSParameterProperty?: RuleFunction; + TSPrivateKeyword?: RuleFunction; + TSPropertySignature?: RuleFunction; + TSProtectedKeyword?: RuleFunction; + TSPublicKeyword?: RuleFunction; + TSQualifiedName?: RuleFunction; + TSReadonlyKeyword?: RuleFunction; + TSRestType?: RuleFunction; + TSSatisfiesExpression?: RuleFunction; + TSStaticKeyword?: RuleFunction; + TSStringKeyword?: RuleFunction; + TSSymbolKeyword?: RuleFunction; + TSTemplateLiteralType?: RuleFunction; + TSThisType?: RuleFunction; + TSTupleType?: RuleFunction; + TSTypeAliasDeclaration?: RuleFunction; + TSTypeAnnotation?: RuleFunction; + TSTypeAssertion?: RuleFunction; + TSTypeLiteral?: RuleFunction; + TSTypeOperator?: RuleFunction; + TSTypeParameter?: RuleFunction; + TSTypeParameterDeclaration?: RuleFunction; + TSTypeParameterInstantiation?: RuleFunction; + TSTypePredicate?: RuleFunction; + TSTypeQuery?: RuleFunction; + TSTypeReference?: RuleFunction; + TSUndefinedKeyword?: RuleFunction; + TSUnionType?: RuleFunction; + TSUnknownKeyword?: RuleFunction; + TSVoidKeyword?: RuleFunction; + UnaryExpression?: RuleFunction; + UpdateExpression?: RuleFunction; + VariableDeclaration?: RuleFunction; + VariableDeclarator?: RuleFunction; + WhileStatement?: RuleFunction; + WithStatement?: RuleFunction; + YieldExpression?: RuleFunction; +} +type RuleListenerExitSelectors = { + [K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K]; +}; +type RuleListenerCatchAllBaseCase = Record; +export interface RuleListenerExtension { +} +export type RuleListener = RuleListenerBaseSelectors & RuleListenerCatchAllBaseCase & RuleListenerExitSelectors; +export interface RuleModule { + /** + * Function which returns an object with methods that ESLint calls to “visit” + * nodes while traversing the abstract syntax tree. + */ + create(context: Readonly>): ExtendedRuleListener; + /** + * Default options the rule will be run with + */ + defaultOptions: Options; + /** + * Metadata about the rule + */ + meta: RuleMetaData; +} +export type AnyRuleModule = RuleModule; +export interface RuleModuleWithMetaDocs extends RuleModule { + /** + * Metadata about the rule + */ + meta: RuleMetaDataWithDocs; +} +export type AnyRuleModuleWithMetaDocs = RuleModuleWithMetaDocs; +/** + * A loose definition of the RuleModule type for use with configs. This type is + * intended to relax validation of types so that we can have basic validation + * without being overly strict about nitty gritty details matching. + * + * For example the plugin might be declared using an old version of our types or + * they might use the DefinitelyTyped eslint types. Ultimately we don't need + * super strict validation in a config - a loose shape match is "good enough" to + * help validate the config is correct. + * + * @see {@link LooseParserModule}, {@link LooseProcessorModule} + */ +export type LooseRuleDefinition = { + create: LooseRuleCreateFunction; + meta?: object | undefined; +} | LooseRuleCreateFunction; +export type LooseRuleCreateFunction = (context: any) => Record; +export type RuleCreateFunction = (context: Readonly>) => RuleListener; +export type AnyRuleCreateFunction = RuleCreateFunction; +export {}; +//# sourceMappingURL=Rule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map new file mode 100644 index 00000000..ffcb9c83 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExE,MAAM,WAAW,+BAA+B,CAC9C,OAAO,SAAS,SAAS,OAAO,EAAE;IAElC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY,CAC3B,UAAU,SAAS,MAAM,EACzB,UAAU,GAAG,OAAO,EACpB,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nE,MAAM,WAAW,sBAAsB,CACrC,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,EACvC,IAAI,GAAG,OAAO,EAEd,oBAAoB,SAAS,YAAY,GAAG,YAAY,CACxD,SAAQ,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,oBAAoB,CAAC;IACnE;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;CACvD;AAED,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAC5D,MAAM,EACN,OAAO,EAAE,CACV,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAE3B;IACE,MAAM,EAAE,uBAAuB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,GACD,uBAAuB,CAAC;AAM5B,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK,MAAM,CAC5D,MAAM,EAON,QAAQ,GAAG,SAAS,CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAC5B,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,OAAO,SAAS,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,IAC5C,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,YAAY,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,MAAM,EACN,SAAS,OAAO,EAAE,CACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js new file mode 100644 index 00000000..8113a7eb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Rule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map new file mode 100644 index 00000000..88c1f037 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts new file mode 100644 index 00000000..f98dd53f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts @@ -0,0 +1,184 @@ +import type { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree'; +import type { ClassicConfig } from './Config'; +import type { Linter } from './Linter'; +import type { ParserOptions } from './ParserOptions'; +import type { ReportDescriptorMessageData, RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule'; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface ValidTestCase { + /** + * Code for the test case. + */ + readonly code: string; + /** + * Environments for the test case. + */ + readonly env?: Readonly; + /** + * The fake filename for the test case. Useful for rules that make assertion about filenames. + */ + readonly filename?: string; + /** + * The additional global variables. + */ + readonly globals?: Readonly; + /** + * Name for the test case. + */ + readonly name?: string; + /** + * Run this case exclusively for debugging in supported test frameworks. + */ + readonly only?: boolean; + /** + * Options for the test case. + */ + readonly options?: Readonly; + /** + * The absolute path for the parser. + */ + readonly parser?: string; + /** + * Options for the parser. + */ + readonly parserOptions?: Readonly; + /** + * Settings for the test case. + */ + readonly settings?: Readonly; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface SuggestionOutput { + /** + * The data used to fill the message template. + */ + readonly data?: ReportDescriptorMessageData; + /** + * Reported message ID. + */ + readonly messageId: MessageIds; + /** + * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes. + * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion. + */ + readonly output: string; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface InvalidTestCase extends ValidTestCase { + /** + * Expected errors. + */ + readonly errors: readonly TestCaseError[]; + /** + * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. + */ + readonly output?: string | string[] | null; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface TestCaseError { + /** + * The 1-based column number of the reported start location. + */ + readonly column?: number; + /** + * The data used to fill the message template. + */ + readonly data?: ReportDescriptorMessageData; + /** + * The 1-based column number of the reported end location. + */ + readonly endColumn?: number; + /** + * The 1-based line number of the reported end location. + */ + readonly endLine?: number; + /** + * The 1-based line number of the reported start location. + */ + readonly line?: number; + /** + * Reported message ID. + */ + readonly messageId: MessageIds; + /** + * Reported suggestions. + */ + readonly suggestions?: readonly SuggestionOutput[] | null; + /** + * The type of the reported AST node. + */ + readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES; +} +/** + * @param text a string describing the rule + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface RunTests { + readonly invalid: readonly InvalidTestCase[]; + readonly valid: readonly (string | ValidTestCase)[]; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +interface RuleTesterConfig extends ClassicConfig.Config { + readonly parser: string; + readonly parserOptions?: Readonly; +} +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +declare class RuleTesterBase { + /** + * Creates a new instance of RuleTester. + * @param testerConfig extra configuration for the tester + */ + constructor(testerConfig?: RuleTesterConfig); + /** + * Adds a new rule test to execute. + * @param ruleName The name of the rule to run. + * @param rule The rule to test. + * @param tests The collection of tests to run. + */ + run(ruleName: string, rule: RuleModule, tests: RunTests): void; + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get describe(): RuleTesterTestFrameworkFunction; + static set describe(value: RuleTesterTestFrameworkFunction | undefined); + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get it(): RuleTesterTestFrameworkFunction; + static set it(value: RuleTesterTestFrameworkFunction | undefined); + /** + * If you supply a value to this property, the rule tester will call this instead of using the version defined on + * the global namespace. + */ + static get itOnly(): RuleTesterTestFrameworkFunction; + static set itOnly(value: RuleTesterTestFrameworkFunction | undefined); + /** + * Define a rule for one particular run of tests. + */ + defineRule(name: string, rule: RuleCreateFunction | RuleModule): void; +} +declare const RuleTester_base: typeof RuleTesterBase; +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +declare class RuleTester extends RuleTester_base { +} +export { type InvalidTestCase, RuleTester, type RuleTesterConfig, type RuleTesterTestFrameworkFunction, type RunTests, type SuggestionOutput, type TestCaseError, type ValidTestCase, }; +//# sourceMappingURL=RuleTester.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map new file mode 100644 index 00000000..9617e74e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAGA,O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BAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,GACvC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,GAClC,IAAI;CACR;+BAK6C,OAAO,cAAc;AAHnE;;GAEG;AACH,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EACL,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js new file mode 100644 index 00000000..7b53577b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RuleTester = void 0; +/* eslint-disable @typescript-eslint/no-deprecated */ +const eslint_1 = require("eslint"); +/** + * @deprecated Use `@typescript-eslint/rule-tester` instead. + */ +class RuleTester extends eslint_1.RuleTester { +} +exports.RuleTester = RuleTester; +//# sourceMappingURL=RuleTester.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map new file mode 100644 index 00000000..48cb94c3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,mCAAwD;AAgOxD;;GAEG;AACH,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAIrE,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts new file mode 100644 index 00000000..50b4a749 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts @@ -0,0 +1,44 @@ +import * as scopeManager from '@typescript-eslint/scope-manager'; +declare namespace Scope { + type ScopeManager = scopeManager.ScopeManager; + type Reference = scopeManager.Reference; + type Variable = scopeManager.ScopeVariable; + type Scope = scopeManager.Scope; + const ScopeType: typeof scopeManager.ScopeType; + type DefinitionType = scopeManager.Definition; + type Definition = scopeManager.Definition; + const DefinitionType: typeof scopeManager.DefinitionType; + namespace Definitions { + type CatchClauseDefinition = scopeManager.CatchClauseDefinition; + type ClassNameDefinition = scopeManager.ClassNameDefinition; + type FunctionNameDefinition = scopeManager.FunctionNameDefinition; + type ImplicitGlobalVariableDefinition = scopeManager.ImplicitGlobalVariableDefinition; + type ImportBindingDefinition = scopeManager.ImportBindingDefinition; + type ParameterDefinition = scopeManager.ParameterDefinition; + type TSEnumMemberDefinition = scopeManager.TSEnumMemberDefinition; + type TSEnumNameDefinition = scopeManager.TSEnumNameDefinition; + type TSModuleNameDefinition = scopeManager.TSModuleNameDefinition; + type TypeDefinition = scopeManager.TypeDefinition; + type VariableDefinition = scopeManager.VariableDefinition; + } + namespace Scopes { + type BlockScope = scopeManager.BlockScope; + type CatchScope = scopeManager.CatchScope; + type ClassScope = scopeManager.ClassScope; + type ConditionalTypeScope = scopeManager.ConditionalTypeScope; + type ForScope = scopeManager.ForScope; + type FunctionExpressionNameScope = scopeManager.FunctionExpressionNameScope; + type FunctionScope = scopeManager.FunctionScope; + type FunctionTypeScope = scopeManager.FunctionTypeScope; + type GlobalScope = scopeManager.GlobalScope; + type MappedTypeScope = scopeManager.MappedTypeScope; + type ModuleScope = scopeManager.ModuleScope; + type SwitchScope = scopeManager.SwitchScope; + type TSEnumScope = scopeManager.TSEnumScope; + type TSModuleScope = scopeManager.TSModuleScope; + type TypeScope = scopeManager.TypeScope; + type WithScope = scopeManager.WithScope; + } +} +export { Scope }; +//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map new file mode 100644 index 00000000..444f1d9f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,kBAAU,KAAK,CAAC;IACd,KAAY,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IACrD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAC/C,KAAY,QAAQ,GAAG,YAAY,CAAC,aAAa,CAAC;IAClD,KAAY,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IAChC,MAAM,SAAS,+BAAyB,CAAC;IAEhD,KAAY,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC;IACrD,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;IAC1C,MAAM,cAAc,oCAA8B,CAAC;IAE1D,UAAiB,WAAW,CAAC;QAC3B,KAAY,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;QACvE,KAAY,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;QACnE,KAAY,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;QACzE,KAAY,gCAAgC,GAC1C,YAAY,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EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js new file mode 100644 index 00000000..d9218400 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js @@ -0,0 +1,44 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Scope = void 0; +const scopeManager = __importStar(require("@typescript-eslint/scope-manager")); +var Scope; +(function (Scope) { + Scope.ScopeType = scopeManager.ScopeType; + Scope.DefinitionType = scopeManager.DefinitionType; +})(Scope || (exports.Scope = Scope = {})); +//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map new file mode 100644 index 00000000..c431e05b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,IAAU,KAAK,CA4Cd;AA5CD,WAAU,KAAK;IAKA,eAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAInC,oBAAc,GAAG,YAAY,CAAC,cAAc,CAAC;AAmC5D,CAAC,EA5CS,KAAK,qBAAL,KAAK,QA4Cd"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts new file mode 100644 index 00000000..1e7c6ee6 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts @@ -0,0 +1,355 @@ +import type { ParserServices, TSESTree } from '../ts-estree'; +import type { Parser } from './Parser'; +import type { Scope } from './Scope'; +declare class TokenStore { + /** + * Checks whether any comments exist or not between the given 2 nodes. + * @param left The node to check. + * @param right The node to check. + * @returns `true` if one or more comments exist. + */ + commentsExistBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; + /** + * Gets all comment tokens directly after the given node or token. + * @param nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns An array of comments in occurrence order. + */ + getCommentsAfter(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; + /** + * Gets all comment tokens directly before the given node or token. + * @param nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns An array of comments in occurrence order. + */ + getCommentsBefore(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; + /** + * Gets all comment tokens inside the given node. + * @param node The AST node to get the comments for. + * @returns An array of comments in occurrence order. + */ + getCommentsInside(node: TSESTree.Node): TSESTree.Comment[]; + /** + * Gets the first token of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getFirstToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the first token between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getFirstTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the first `count` tokens of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getFirstTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the first `count` tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getFirstTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the last token of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getLastToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the last token between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getLastTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the last `count` tokens of the given node. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getLastTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the last `count` tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getLastTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the token that follows a given node or token. + * @param node The AST node or token. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns An object representing the token. + */ + getTokenAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the token that precedes a given node or token. + * @param node The AST node or token. + * @param options The option object + * @returns An object representing the token. + */ + getTokenBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets the token starting at the specified index. + * @param offset Index of the start of the token's range. + * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @returns The token starting at index, or null if no such token. + */ + getTokenByRangeStart(offset: number, options?: T): SourceCode.ReturnTypeFromOptions | null; + /** + * Gets all tokens that are related to the given node. + * @param node The AST node. + * @param beforeCount The number of tokens before the node to retrieve. + * @param afterCount The number of tokens after the node to retrieve. + * @returns Array of objects representing tokens. + */ + getTokens(node: TSESTree.Node, beforeCount?: number, afterCount?: number): TSESTree.Token[]; + /** + * Gets all tokens that are related to the given node. + * @param node The AST node. + * @param options The option object. If this is a function then it's `options.filter`. + * @returns Array of objects representing tokens. + */ + getTokens(node: TSESTree.Node, options: T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the `count` tokens that follows a given node or token. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getTokensAfter(node: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets the `count` tokens that precedes a given node or token. + * @param node The AST node. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + */ + getTokensBefore(node: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; + /** + * Gets all of the tokens between two non-overlapping nodes. + * @param left Node before the desired token range. + * @param right Node after the desired token range. + * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @returns Tokens between left and right. + */ + getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: number | T): SourceCode.ReturnTypeFromOptions[]; +} +declare class SourceCodeBase extends TokenStore { + /** + * Represents parsed source code. + * @param ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. + */ + constructor(text: string, ast: SourceCode.Program); + /** + * Represents parsed source code. + * @param config The config object. + */ + constructor(config: SourceCode.SourceCodeConfig); + /** + * The parsed AST for the source code. + */ + ast: SourceCode.Program; + applyInlineConfig(): void; + applyLanguageOptions(): void; + finalize(): void; + /** + * Retrieves an array containing all comments in the source code. + * @returns An array of comment nodes. + */ + getAllComments(): TSESTree.Comment[]; + /** + * Converts a (line, column) pair into a range index. + * @param location A line/column location + * @returns The range index of the location in the file. + */ + getIndexFromLoc(location: TSESTree.Position): number; + /** + * Gets the entire source text split into an array of lines. + * @returns The source text as an array of lines. + */ + getLines(): string[]; + /** + * Converts a source text index into a (line, column) pair. + * @param index The index of a character in a file + * @returns A {line, column} location object with a 0-indexed column + */ + getLocFromIndex(index: number): TSESTree.Position; + /** + * Gets the deepest node containing a range index. + * @param index Range index of the desired node. + * @returns The node if found or `null` if not found. + */ + getNodeByRangeIndex(index: number): TSESTree.Node | null; + /** + * Gets the source code for the given node. + * @param node The AST node to get the text for. + * @param beforeCount The number of characters before the node to retrieve. + * @param afterCount The number of characters after the node to retrieve. + * @returns The text representing the AST node. + */ + getText(node?: TSESTree.Node | TSESTree.Token, beforeCount?: number, afterCount?: number): string; + /** + * The flag to indicate that the source code has Unicode BOM. + */ + hasBOM: boolean; + /** + * Determines if two nodes or tokens have at least one whitespace character + * between them. Order does not matter. Returns false if the given nodes or + * tokens overlap. + * @param first The first node or token to check between. + * @param second The second node or token to check between. + * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens. + */ + isSpaceBetween(first: TSESTree.Node | TSESTree.Token, second: TSESTree.Node | TSESTree.Token): boolean; + /** + * Determines if two nodes or tokens have at least one whitespace character + * between them. Order does not matter. Returns false if the given nodes or + * tokens overlap. + * For backward compatibility, this method returns true if there are + * `JSXText` tokens that contain whitespace between the two. + * @param first The first node or token to check between. + * @param second The second node or token to check between. + * @returns {boolean} True if there is a whitespace character between + * any of the tokens found between the two given nodes or tokens. + * @deprecated in favor of isSpaceBetween + */ + isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean; + /** + * Returns the scope of the given node. + * This information can be used track references to variables. + */ + getScope(node: TSESTree.Node): Scope.Scope; + /** + * Returns an array of the ancestors of the given node, starting at + * the root of the AST and continuing through the direct parent of the current node. + * This array does not include the currently-traversed node itself. + */ + getAncestors(node: TSESTree.Node): TSESTree.Node[]; + /** + * Returns a list of variables declared by the given node. + * This information can be used to track references to variables. + */ + getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; + /** + * Marks a variable with the given name in the current scope as used. + * This affects the no-unused-vars rule. + */ + markVariableAsUsed(name: string, node: TSESTree.Node): boolean; + /** + * The source code split into lines according to ECMA-262 specification. + * This is done to avoid each rule needing to do so separately. + */ + lines: string[]; + /** + * The indexes in `text` that each line starts + */ + lineStartIndices: number[]; + /** + * The parser services of this source code. + */ + parserServices?: Partial; + /** + * The scope of this source code. + */ + scopeManager: Scope.ScopeManager | null; + /** + * The original text source code. BOM was stripped from this text. + */ + text: string; + /** + * All of the tokens and comments in the AST. + * + * TODO: rename to 'tokens' + */ + tokensAndComments: TSESTree.Token[]; + /** + * The visitor keys to traverse AST. + */ + visitorKeys: SourceCode.VisitorKeys; + /** + * Split the source code into multiple lines based on the line delimiters. + * @param text Source code as a string. + * @returns Array of source code lines. + */ + static splitLines(text: string): string[]; +} +declare namespace SourceCode { + interface Program extends TSESTree.Program { + comments: TSESTree.Comment[]; + tokens: TSESTree.Token[]; + } + interface SourceCodeConfig { + /** + * The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. + */ + ast: Program; + /** + * The parser services. + */ + parserServices: ParserServices | null; + /** + * The scope of this source code. + */ + scopeManager: Scope.ScopeManager | null; + /** + * The source code text. + */ + text: string; + /** + * The visitor keys to traverse AST. + */ + visitorKeys: VisitorKeys | null; + } + type VisitorKeys = Parser.VisitorKeys; + type FilterPredicate = (token: TSESTree.Token) => boolean; + type GetFilterPredicate = Filter extends ((token: TSESTree.Token) => token is infer U extends TSESTree.Token) ? U : Default; + type GetFilterPredicateFromOptions = Options extends { + filter?: FilterPredicate; + } ? GetFilterPredicate : GetFilterPredicate; + type ReturnTypeFromOptions = T extends { + includeComments: true; + } ? GetFilterPredicateFromOptions : GetFilterPredicateFromOptions>; + type CursorWithSkipOptions = number | { + /** + * The predicate function to choose tokens. + */ + filter?: FilterPredicate; + /** + * The flag to iterate comments as well. + */ + includeComments?: boolean; + /** + * The count of tokens the cursor skips. + */ + skip?: number; + } | FilterPredicate; + type CursorWithCountOptions = number | { + /** + * The maximum count of tokens the cursor iterates. + */ + count?: number; + /** + * The predicate function to choose tokens. + */ + filter?: FilterPredicate; + /** + * The flag to iterate comments as well. + */ + includeComments?: boolean; + } | FilterPredicate; +} +declare const SourceCode_base: typeof SourceCodeBase; +declare class SourceCode extends SourceCode_base { +} +export { SourceCode }; +//# sourceMappingURL=SourceCode.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map new file mode 100644 index 00000000..0bd7b58c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,OAAO,UAAU;IACtB;;;;;OAKG;IACH,oBAAoB,CAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO;IACV;;;;OAIG;IACH,gBAAgB,CACd,WAAW,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAC1C,QAAQ,CAAC,OAAO,EAAE;IACrB;;;;OAIG;IACH,iBAAiB,CACf,WAAW,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAC1C,QAAQ,CAAC,OAAO,EAAE;IACrB;;;;OAIG;IACH,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE;IAC1D;;;;;OAKG;IACH,aAAa,CAAC,CAAC,SAAS,UAAU,CAAC,qBAAqB,EACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,OAAO,CAAC,EAAE,CAAC,GACV,UAAU,CAAC,qBAAqB,CAAC,C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,KAAK,CAAC,GACzC,CAAC,GACD,OAAO,CAAC;IACd,KAAY,6BAA6B,CAAC,OAAO,EAAE,OAAO,IACxD,OAAO,SAAS;QAAE,MAAM,CAAC,EAAE,eAAe,CAAA;KAAE,GACxC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,GAC9C,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3C,KAAY,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS;QAAE,eAAe,EAAE,IAAI,CAAA;KAAE,GACtE,6BAA6B,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,GAChD,6BAA6B,CAC3B,CAAC,EACD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAC1C,CAAC;IAEN,KAAY,qBAAqB,GAC7B,MAAM,GACN;QACE;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GACD,eAAe,CAAC;IAEpB,KAAY,sBAAsB,GAC9B,MAAM,GACN;QACE;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GACD,eAAe,CAAC;CACrB;+BAE6C,OAAO,cAAc;AAAnE,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js new file mode 100644 index 00000000..8e029b15 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js @@ -0,0 +1,9 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SourceCode = void 0; +const eslint_1 = require("eslint"); +class SourceCode extends eslint_1.SourceCode { +} +exports.SourceCode = SourceCode; +//# sourceMappingURL=SourceCode.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map new file mode 100644 index 00000000..485d6cdb --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAwD;AAmcxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAE9D,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts new file mode 100644 index 00000000..f550f10e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts @@ -0,0 +1,382 @@ +import type { Linter } from '../Linter'; +import type { RuleMetaData } from '../Rule'; +export declare class ESLintBase> { + /** + * Creates a new instance of the main ESLint API. + * @param options The options for this instance. + */ + constructor(options?: Options); + /** + * This method calculates the configuration for a given file, which can be useful for debugging purposes. + * - It resolves and merges extends and overrides settings into the top level configuration. + * - It resolves the parser setting to absolute paths. + * - It normalizes the plugins setting to align short names. (e.g., eslint-plugin-foo → foo) + * - It adds the processor setting if a legacy file extension processor is matched. + * - It doesn't interpret the env setting to the globals and parserOptions settings, so the result object contains + * the env setting as is. + * @param filePath The path to the file whose configuration you would like to calculate. Directory paths are forbidden + * because ESLint cannot handle the overrides setting. + * @returns The promise that will be fulfilled with a configuration object. + */ + calculateConfigForFile(filePath: string): Promise; + getRulesMetaForResults(results: LintResult[]): Record>>; + /** + * This method checks if a given file is ignored by your configuration. + * @param filePath The path to the file you want to check. + * @returns The promise that will be fulfilled with whether the file is ignored or not. If the file is ignored, then + * it will return true. + */ + isPathIgnored(filePath: string): Promise; + /** + * This method lints the files that match the glob patterns and then returns the results. + * @param patterns The lint target files. This can contain any of file paths, directory paths, and glob patterns. + * @returns The promise that will be fulfilled with an array of LintResult objects. + */ + lintFiles(patterns: string | string[]): Promise; + /** + * This method lints the given source code text and then returns the results. + * + * By default, this method uses the configuration that applies to files in the current working directory (the cwd + * constructor option). If you want to use a different configuration, pass options.filePath, and ESLint will load the + * same configuration that eslint.lintFiles() would use for a file at options.filePath. + * + * If the options.filePath value is configured to be ignored, this method returns an empty array. If the + * options.warnIgnored option is set along with the options.filePath option, this method returns a LintResult object. + * In that case, the result may contain a warning that indicates the file was ignored. + * @param code The source code text to check. + * @returns The promise that will be fulfilled with an array of LintResult objects. This is an array (despite there + * being only one lint result) in order to keep the interfaces between this and the eslint.lintFiles() + * method similar. + */ + lintText(code: string, options?: LintTextOptions): Promise; + /** + * This method loads a formatter. Formatters convert lint results to a human- or machine-readable string. + * @param name TThe path to the file you want to check. + * The following values are allowed: + * - undefined. In this case, loads the "stylish" built-in formatter. + * - A name of built-in formatters. + * - A name of third-party formatters. For examples: + * -- `foo` will load eslint-formatter-foo. + * -- `@foo` will load `@foo/eslint-formatter`. + * -- `@foo/bar` will load `@foo/eslint-formatter-bar`. + * - A path to the file that defines a formatter. The path must contain one or more path separators (/) in order to distinguish if it's a path or not. For example, start with ./. + * @returns The promise that will be fulfilled with a Formatter object. + */ + loadFormatter(name?: string): Promise; + /** + * This method copies the given results and removes warnings. The returned value contains only errors. + * @param results The LintResult objects to filter. + * @returns The filtered LintResult objects. + */ + static getErrorResults(results: LintResult): LintResult; + /** + * This method writes code modified by ESLint's autofix feature into its respective file. If any of the modified + * files don't exist, this method does nothing. + * @param results The LintResult objects to write. + * @returns The promise that will be fulfilled after all files are written. + */ + static outputFixes(results: LintResult[]): Promise; + /** + * The version text. + */ + static readonly version: string; + /** + * The type of configuration used by this class. + */ + static readonly configType: Linter.ConfigTypeSpecifier; +} +export interface ESLintOptions { + /** + * If false is present, ESLint suppresses directive comments in source code. + * If this option is false, it overrides the noInlineConfig setting in your configurations. + * @default true + */ + allowInlineConfig?: boolean; + /** + * Configuration object, extended by all configurations used with this instance. + * You can use this option to define the default settings that will be used if your configuration files don't + * configure it. + * @default null + */ + baseConfig?: Config | null; + /** + * If `true` is present, the `eslint.lintFiles()` method caches lint results and uses it if each target file is not + * changed. Please mind that ESLint doesn't clear the cache when you upgrade ESLint plugins. In that case, you have + * to remove the cache file manually. The `eslint.lintText()` method doesn't use caches even if you pass the + * options.filePath to the method. + * @default false + */ + cache?: boolean; + /** + * The eslint.lintFiles() method writes caches into this file. + * @default '.eslintcache' + */ + cacheLocation?: string; + /** + * Strategy for the cache to use for detecting changed files. + * @default 'metadata' + */ + cacheStrategy?: 'content' | 'metadata'; + /** + * The working directory. This must be an absolute path. + * @default process.cwd() + */ + cwd?: string; + /** + * Unless set to false, the `eslint.lintFiles()` method will throw an error when no target files are found. + * @default true + */ + errorOnUnmatchedPattern?: boolean; + /** + * If `true` is present, the `eslint.lintFiles()` and `eslint.lintText()` methods work in autofix mode. + * If a predicate function is present, the methods pass each lint message to the function, then use only the + * lint messages for which the function returned true. + * @default false + */ + fix?: boolean | ((message: LintMessage) => boolean); + /** + * The types of the rules that the `eslint.lintFiles()` and `eslint.lintText()` methods use for autofix. + * @default null + */ + fixTypes?: ('directive' | 'problem' | 'suggestion')[] | null; + /** + * If false is present, the `eslint.lintFiles()` method doesn't interpret glob patterns. + * @default true + */ + globInputPaths?: boolean; + /** + * Configuration object, overrides all configurations used with this instance. + * You can use this option to define the settings that will be used even if your configuration files configure it. + * @default null + */ + overrideConfig?: Config | null; + /** + * When set to true, missing patterns cause the linting operation to short circuit and not report any failures. + * @default false + */ + passOnNoPatterns?: boolean; + /** + * The plugin implementations that ESLint uses for the plugins setting of your configuration. + * This is a map-like object. Those keys are plugin IDs and each value is implementation. + * @default null + */ + plugins?: Record | null; +} +export interface DeprecatedRuleInfo { + /** + * The rule IDs that replace this deprecated rule. + */ + replacedBy: string[]; + /** + * The rule ID. + */ + ruleId: string; +} +/** + * The LintResult value is the information of the linting result of each file. + */ +export interface LintResult { + /** + * The number of errors. This includes fixable errors. + */ + errorCount: number; + /** + * The number of fatal errors. + */ + fatalErrorCount: number; + /** + * The absolute path to the file of this result. This is the string "" if the file path is unknown (when you + * didn't pass the options.filePath option to the eslint.lintText() method). + */ + filePath: string; + /** + * The number of errors that can be fixed automatically by the fix constructor option. + */ + fixableErrorCount: number; + /** + * The number of warnings that can be fixed automatically by the fix constructor option. + */ + fixableWarningCount: number; + /** + * The array of LintMessage objects. + */ + messages: LintMessage[]; + /** + * The source code of the file that was linted, with as many fixes applied as possible. + */ + output?: string; + /** + * The original source code text. This property is undefined if any messages didn't exist or the output + * property exists. + */ + source?: string; + /** + * Timing information of the lint run. + * This exists if and only if the `--stats` CLI flag was added or the `stats: true` + * option was passed to the ESLint class + * @since 9.0.0 + */ + stats?: LintStats; + /** + * The array of SuppressedLintMessage objects. + */ + suppressedMessages: SuppressedLintMessage[]; + /** + * The information about the deprecated rules that were used to check this file. + */ + usedDeprecatedRules: DeprecatedRuleInfo[]; + /** + * The number of warnings. This includes fixable warnings. + */ + warningCount: number; +} +export interface LintStats { + /** + * The number of times ESLint has applied at least one fix after linting. + */ + fixPasses: number; + /** + * The times spent on (parsing, fixing, linting) a file, where the linting refers to the timing information for each rule. + */ + times: { + passes: LintStatsTimePass[]; + }; +} +export interface LintStatsTimePass { + /** + * The total time that is spent on applying fixes to the code. + */ + fix: LintStatsFixTime; + /** + * The total time that is spent when parsing a file. + */ + parse: LintStatsParseTime; + /** + * The total time that is spent on a rule. + */ + rules?: Record; + /** + * The cumulative total + */ + total: number; +} +export interface LintStatsParseTime { + total: number; +} +export interface LintStatsRuleTime { + total: number; +} +export interface LintStatsFixTime { + total: number; +} +export interface LintTextOptions { + /** + * The path to the file of the source code text. If omitted, the result.filePath becomes the string "". + */ + filePath?: string; + /** + * If true is present and the options.filePath is a file ESLint should ignore, this method returns a lint result + * contains a warning message. + */ + warnIgnored?: boolean; +} +/** + * The LintMessage value is the information of each linting error. + */ +export interface LintMessage { + /** + * The 1-based column number of the begin point of this message. + */ + column: number | undefined; + /** + * The 1-based column number of the end point of this message. This property is undefined if this message + * is not a range. + */ + endColumn: number | undefined; + /** + * The 1-based line number of the end point of this message. This property is undefined if this + * message is not a range. + */ + endLine: number | undefined; + /** + * `true` if this is a fatal error unrelated to a rule, like a parsing error. + */ + fatal?: boolean | undefined; + /** + * The EditInfo object of autofix. This property is undefined if this message is not fixable. + */ + fix: EditInfo | undefined; + /** + * The 1-based line number of the begin point of this message. + */ + line: number | undefined; + /** + * The error message + */ + message: string; + /** + * The rule name that generates this lint message. If this message is generated by the ESLint core rather than + * rules, this is null. + */ + ruleId: string | null; + /** + * The severity of this message. 1 means warning and 2 means error. + */ + severity: 1 | 2; + /** + * The list of suggestions. Each suggestion is the pair of a description and an EditInfo object to fix code. API + * users such as editor integrations can choose one of them to fix the problem of this message. This property is + * undefined if this message doesn't have any suggestions. + */ + suggestions: { + desc: string; + fix: EditInfo; + }[] | undefined; +} +/** + * The SuppressedLintMessage value is the information of each suppressed linting error. + */ +export interface SuppressedLintMessage extends LintMessage { + /** + * The list of suppressions. + */ + suppressions?: { + /** + * The free text description added after the `--` in the comment + */ + justification: string; + /** + * Right now, this is always `directive` + */ + kind: string; + }[]; +} +/** + * The EditInfo value is information to edit text. + * + * This edit information means replacing the range of the range property by the text property value. It's like + * sourceCodeText.slice(0, edit.range[0]) + edit.text + sourceCodeText.slice(edit.range[1]). Therefore, it's an add + * if the range[0] and range[1] property values are the same value, and it's removal if the text property value is + * empty string. + */ +export interface EditInfo { + /** + * The pair of 0-based indices in source code text to remove. + */ + range: [number, number]; + /** + * The text to add. + */ + text: string; +} +/** + * The Formatter value is the object to convert the LintResult objects to text. + */ +export interface Formatter { + /** + * The method to convert the LintResult objects to text. + * Promise return supported since 8.4.0 + */ + format(results: LintResult[]): string | Promise; +} +//# sourceMappingURL=ESLintShared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map new file mode 100644 index 00000000..d9678ca1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintShared.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/ESLintShared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,UAAU,CAC7B,MAAM,SAAS,MAAM,CAAC,UAAU,EAChC,OAAO,SAAS,aAAa,CAAC,MAAM,CAAC;IAErC;;;OAGG;gBACS,OAAO,CAAC,EAAE,OAAO;IAE7B;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAEzD,sBAAsB,CACpB,OAAO,EAAE,UAAU,EAAE,GACpB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,E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WAAW,EACP;QACE,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,QAAQ,CAAC;KACf,EAAE,GACH,SAAS,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QACtB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;CACL;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js new file mode 100644 index 00000000..09d9a311 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ESLintShared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map new file mode 100644 index 00000000..02869193 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ESLintShared.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/ESLintShared.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts new file mode 100644 index 00000000..bb4ea72d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts @@ -0,0 +1,84 @@ +import type { FlatConfig } from '../Config'; +import type * as Shared from './ESLintShared'; +declare class FlatESLintBase extends Shared.ESLintBase { + static readonly configType: 'flat'; + /** + * Returns a configuration object for the given file based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param filePath The path of the file to retrieve a config object for. + * @returns A configuration object for the file or `undefined` if there is no configuration data for the object. + */ + calculateConfigForFile(filePath: string): Promise; + /** + * Finds the config file being used by this instance based on the options + * passed to the constructor. + * @returns The path to the config file being used or `undefined` if no config file is being used. + */ + findConfigFile(): Promise; +} +declare const FlatESLint_base: typeof FlatESLintBase; +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +export declare class FlatESLint extends FlatESLint_base { +} +export declare namespace FlatESLint { + interface ESLintOptions extends Shared.ESLintOptions { + /** + * If false is present, the eslint.lintFiles() method doesn't respect `ignorePatterns` ignorePatterns in your configuration. + * @default true + */ + ignore?: boolean; + /** + * Ignore file patterns to use in addition to config ignores. These patterns are relative to cwd. + * @default null + */ + ignorePatterns?: string[] | null; + /** + * The path to a configuration file, overrides all configurations used with this instance. + * The options.overrideConfig option is applied after this option is applied. + * Searches for default config file when falsy; doesn't do any config file lookup when `true`; considered to be a config filename when a string. + * @default false + */ + overrideConfigFile?: boolean | string; + /** + * A predicate function that filters rules to be run. + * This function is called with an object containing `ruleId` and `severity`, and returns `true` if the rule should be run. + * @default () => true + */ + ruleFilter?: RuleFilter; + /** + * When set to true, additional statistics are added to the lint results. + * @see {@link https://eslint.org/docs/latest/extend/stats} + * @default false + */ + stats?: boolean; + /** + * Show warnings when the file list includes ignored files. + * @default true + */ + warnIgnored?: boolean; + } + type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo; + type EditInfo = Shared.EditInfo; + type Formatter = Shared.Formatter; + type LintMessage = Shared.LintMessage; + type LintResult = Shared.LintResult; + type LintStats = Shared.LintStats; + type LintStatsFixTime = Shared.LintStatsFixTime; + type LintStatsParseTime = Shared.LintStatsParseTime; + type LintStatsRuleTime = Shared.LintStatsRuleTime; + type LintStatsTimePass = Shared.LintStatsTimePass; + type LintTextOptions = Shared.LintTextOptions; + type SuppressedLintMessage = Shared.SuppressedLintMessage; + type RuleFilter = (rule: { + ruleId: string; + severity: number; + }) => boolean; +} +export {}; +//# sourceMappingURL=FlatESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map new file mode 100644 index 00000000..3afc310a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FlatESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,cAAe,SAAQ,MAAM,CAAC,UAAU,CACpD,UAAU,CAAC,WAAW,EACtB,UAAU,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KAAY,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACzD,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACjE,KAAY,UAAU,GAAG,CAAC,IAAI,EAAE;QAC9B,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,KAAK,OAAO,CAAC;CACf"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js new file mode 100644 index 00000000..1add2c67 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlatESLint = void 0; +/* eslint-disable @typescript-eslint/no-namespace */ +const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +class FlatESLint extends use_at_your_own_risk_1.FlatESLint { +} +exports.FlatESLint = FlatESLint; +//# sourceMappingURL=FlatESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map new file mode 100644 index 00000000..ee314e19 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FlatESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,sEAA6E;AA6B7E;;;;;GAKG;AACH,MAAa,UAAW,SAAS,iCAA0C;CAAG;AAA9E,gCAA8E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts new file mode 100644 index 00000000..698c0120 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts @@ -0,0 +1,73 @@ +import type { ClassicConfig } from '../Config'; +import type { Linter } from '../Linter'; +import type * as Shared from './ESLintShared'; +declare class LegacyESLintBase extends Shared.ESLintBase { + static readonly configType: 'eslintrc'; +} +declare const LegacyESLint_base: typeof LegacyESLintBase; +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +export declare class LegacyESLint extends LegacyESLint_base { +} +export declare namespace LegacyESLint { + interface ESLintOptions extends Shared.ESLintOptions { + /** + * If you pass directory paths to the eslint.lintFiles() method, ESLint checks the files in those directories that + * have the given extensions. For example, when passing the src/ directory and extensions is [".js", ".ts"], ESLint + * will lint *.js and *.ts files in src/. If extensions is null, ESLint checks *.js files and files that match + * overrides[].files patterns in your configuration. + * Note: This option only applies when you pass directory paths to the eslint.lintFiles() method. + * If you pass glob patterns, ESLint will lint all files matching the glob pattern regardless of extension. + */ + extensions?: string[] | null; + /** + * If false is present, the eslint.lintFiles() method doesn't respect `.eslintignore` files in your configuration. + * @default true + */ + ignore?: boolean; + /** + * The path to a file ESLint uses instead of `$CWD/.eslintignore`. + * If a path is present and the file doesn't exist, this constructor will throw an error. + */ + ignorePath?: string; + /** + * The path to a configuration file, overrides all configurations used with this instance. + * The options.overrideConfig option is applied after this option is applied. + */ + overrideConfigFile?: string | null; + /** + * The severity to report unused eslint-disable directives. + * If this option is a severity, it overrides the reportUnusedDisableDirectives setting in your configurations. + */ + reportUnusedDisableDirectives?: Linter.SeverityString | null; + /** + * The path to a directory where plugins should be resolved from. + * If null is present, ESLint loads plugins from the location of the configuration file that contains the plugin + * setting. + * If a path is present, ESLint loads all plugins from there. + */ + resolvePluginsRelativeTo?: string | null; + /** + * An array of paths to directories to load custom rules from. + */ + rulePaths?: string[]; + /** + * If false is present, ESLint doesn't load configuration files (.eslintrc.* files). + * Only the configuration of the constructor options is valid. + */ + useEslintrc?: boolean; + } + type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo; + type EditInfo = Shared.EditInfo; + type Formatter = Shared.Formatter; + type LintMessage = Shared.LintMessage; + type LintResult = Omit; + type LintTextOptions = Shared.LintTextOptions; + type SuppressedLintMessage = Shared.SuppressedLintMessage; +} +export {}; +//# sourceMappingURL=LegacyESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map new file mode 100644 index 00000000..e798f27c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LegacyESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,gBAAiB,SAAQ,MAAM,CAAC,UAAU,CACtD,a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ts-eslint/eslint/LegacyESLint.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js new file mode 100644 index 00000000..88f281e1 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js @@ -0,0 +1,15 @@ +"use strict"; +/* eslint-disable @typescript-eslint/no-namespace */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LegacyESLint = void 0; +const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); +/** + * The ESLint class is the primary class to use in Node.js applications. + * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. + * + * If you want to lint code on browsers, use the Linter class instead. + */ +class LegacyESLint extends use_at_your_own_risk_1.LegacyESLint { +} +exports.LegacyESLint = LegacyESLint; +//# sourceMappingURL=LegacyESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map new file mode 100644 index 00000000..69aa943a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LegacyESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,sEAAiF;AAcjF;;;;;GAKG;AACH,MAAa,YAAa,SAAS,mCAA8C;CAAG;AAApF,oCAAoF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts new file mode 100644 index 00000000..17edebe9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts @@ -0,0 +1,12 @@ +export * from './AST'; +export * from './Config'; +export * from './ESLint'; +export * from './Linter'; +export * from './Parser'; +export * from './ParserOptions'; +export * from './Processor'; +export * from './Rule'; +export * from './RuleTester'; +export * from './Scope'; +export * from './SourceCode'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map new file mode 100644 index 00000000..31ec4265 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js new file mode 100644 index 00000000..85b7e5cf --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js @@ -0,0 +1,28 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./AST"), exports); +__exportStar(require("./Config"), exports); +__exportStar(require("./ESLint"), exports); +__exportStar(require("./Linter"), exports); +__exportStar(require("./Parser"), exports); +__exportStar(require("./ParserOptions"), exports); +__exportStar(require("./Processor"), exports); +__exportStar(require("./Rule"), exports); +__exportStar(require("./RuleTester"), exports); +__exportStar(require("./Scope"), exports); +__exportStar(require("./SourceCode"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map new file mode 100644 index 00000000..b7821e91 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,8CAA4B;AAC5B,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts new file mode 100644 index 00000000..43b2b754 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts @@ -0,0 +1,3 @@ +export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; +export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, } from '@typescript-eslint/typescript-estree'; +//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map new file mode 100644 index 00000000..3a7063c3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,cAAc,EACd,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,sCAAsC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js new file mode 100644 index 00000000..4a32e9c8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js @@ -0,0 +1,10 @@ +"use strict"; +// for convenience's sake - export the types directly from here so consumers +// don't need to reference/install both packages in their code +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; +var types_1 = require("@typescript-eslint/types"); +Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); +Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); +Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); +//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map new file mode 100644 index 00000000..4806a284 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8DAA8D;;;AAE9D,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts new file mode 100644 index 00000000..163c4043 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts @@ -0,0 +1,10 @@ +/** + * We could use NoInfer typescript build-in utility + * introduced in typescript 5.4, however at the moment of creation + * the supported ts versions are >=4.8.4 <5.7.0 + * so for the moment we have to stick to this polyfill. + * + * @see https://github.com/millsp/ts-toolbelt/blob/master/sources/Function/NoInfer.ts + */ +export type NoInfer = [A][A extends unknown ? 0 : never]; +//# sourceMappingURL=NoInfer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map new file mode 100644 index 00000000..44bb4ef9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NoInfer.d.ts","sourceRoot":"","sources":["../../src/ts-utils/NoInfer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js new file mode 100644 index 00000000..af801291 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=NoInfer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map new file mode 100644 index 00000000..28310d3b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NoInfer.js","sourceRoot":"","sources":["../../src/ts-utils/NoInfer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts new file mode 100644 index 00000000..da4764b0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts @@ -0,0 +1,3 @@ +export * from './isArray'; +export * from './NoInfer'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map new file mode 100644 index 00000000..d1bbe756 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js new file mode 100644 index 00000000..cb645cda --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js @@ -0,0 +1,19 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./isArray"), exports); +__exportStar(require("./NoInfer"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map new file mode 100644 index 00000000..795d41e0 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts new file mode 100644 index 00000000..ddefcee8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts @@ -0,0 +1,2 @@ +export declare function isArray(arg: unknown): arg is readonly unknown[]; +//# sourceMappingURL=isArray.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map new file mode 100644 index 00000000..55264f27 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isArray.d.ts","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":"AACA,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,OAAO,EAAE,CAE/D"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js new file mode 100644 index 00000000..92a7237e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isArray = isArray; +// https://github.com/microsoft/TypeScript/issues/17002 +function isArray(arg) { + return Array.isArray(arg); +} +//# sourceMappingURL=isArray.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map new file mode 100644 index 00000000..ea8aabab --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":";;AACA,0BAEC;AAHD,uDAAuD;AACvD,SAAgB,OAAO,CAAC,GAAY;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/package.json new file mode 100644 index 00000000..93d3f33e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils/package.json @@ -0,0 +1,97 @@ +{ + "name": "@typescript-eslint/utils", + "version": "8.16.0", + "description": "Utilities for working with TypeScript + ESLint together", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./ast-utils": { + "types": "./dist/ast-utils/index.d.ts", + "default": "./dist/ast-utils/index.js" + }, + "./eslint-utils": { + "types": "./dist/eslint-utils/index.d.ts", + "default": "./dist/eslint-utils/index.js" + }, + "./json-schema": { + "types": "./dist/json-schema.d.ts", + "default": "./dist/json-schema.js" + }, + "./ts-eslint": { + "types": "./dist/ts-eslint/index.d.ts", + "default": "./dist/ts-eslint/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/utils" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/utils", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.16.0", + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/typescript-estree": "8.16.0" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, + "devDependencies": { + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/README.md new file mode 100644 index 00000000..1745172a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/README.md @@ -0,0 +1,10 @@ +# `@typescript-eslint/visitor-keys` + +> Visitor keys used to help traverse the TypeScript-ESTree AST. + +## ✋ Internal Package + +This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). +You likely don't want to use it directly. + +👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts new file mode 100644 index 00000000..344a7c42 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts @@ -0,0 +1,4 @@ +import type { TSESTree } from '@typescript-eslint/types'; +declare const getKeys: (node: TSESTree.Node) => readonly string[]; +export { getKeys }; +//# sourceMappingURL=get-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map new file mode 100644 index 00000000..85407809 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.d.ts","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,QAAA,MAAM,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS,MAAM,EAAoB,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js new file mode 100644 index 00000000..309b72b9 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getKeys = void 0; +const eslint_visitor_keys_1 = require("eslint-visitor-keys"); +const getKeys = eslint_visitor_keys_1.getKeys; +exports.getKeys = getKeys; +//# sourceMappingURL=get-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map new file mode 100644 index 00000000..4a903fd8 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"get-keys.js","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":";;;AAEA,6DAAiE;AAEjE,MAAM,OAAO,GAA+C,6BAAe,CAAC;AAEnE,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..f9eb5a97 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts @@ -0,0 +1,3 @@ +export { getKeys } from './get-keys'; +export { visitorKeys, type VisitorKeys } from './visitor-keys'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map new file mode 100644 index 00000000..d9031764 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js new file mode 100644 index 00000000..a5b4b62a --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = exports.getKeys = void 0; +var get_keys_1 = require("./get-keys"); +Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return get_keys_1.getKeys; } }); +var visitor_keys_1 = require("./visitor-keys"); +Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map new file mode 100644 index 00000000..03f9af81 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,+CAA+D;AAAtD,2GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..18e74ea3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,4 @@ +type VisitorKeys = Record; +declare const visitorKeys: VisitorKeys; +export { visitorKeys, type VisitorKeys }; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map new file mode 100644 index 00000000..c4883d4c --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.d.ts","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AA0QjE,QAAA,MAAM,WAAW,EAAE,WAAyD,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js new file mode 100644 index 00000000..77c96599 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js @@ -0,0 +1,196 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.visitorKeys = void 0; +const eslintVisitorKeys = __importStar(require("eslint-visitor-keys")); +/* + ********************************** IMPORTANT NOTE ******************************** + * * + * The key arrays should be sorted in the order in which you would want to visit * + * the child keys. * + * * + * DO NOT SORT THEM ALPHABETICALLY! * + * * + * They should be sorted in the order that they appear in the source code. * + * For example: * + * * + * class Foo extends Bar { prop: 1 } * + * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ClassDeclaration * + * ^^^ id ^^^ superClass * + * ^^^^^^^^^^^ body * + * * + * It would be incorrect to provide the visitor keys ['body', 'id', 'superClass'] * + * because the body comes AFTER everything else in the source code. * + * Instead the correct ordering would be ['id', 'superClass', 'body']. * + * * + ********************************************************************************** + */ +const SharedVisitorKeys = (() => { + const FunctionType = ['typeParameters', 'params', 'returnType']; + const AnonymousFunction = [...FunctionType, 'body']; + const AbstractPropertyDefinition = [ + 'decorators', + 'key', + 'typeAnnotation', + ]; + return { + AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'], + AnonymousFunction, + AsExpression: ['expression', 'typeAnnotation'], + ClassDeclaration: [ + 'decorators', + 'id', + 'typeParameters', + 'superClass', + 'superTypeArguments', + 'implements', + 'body', + ], + Function: ['id', ...AnonymousFunction], + FunctionType, + PropertyDefinition: [...AbstractPropertyDefinition, 'value'], + }; +})(); +const additionalKeys = { + AccessorProperty: SharedVisitorKeys.PropertyDefinition, + ArrayPattern: ['decorators', 'elements', 'typeAnnotation'], + ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction, + AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'], + CallExpression: ['callee', 'typeArguments', 'arguments'], + ClassDeclaration: SharedVisitorKeys.ClassDeclaration, + ClassExpression: SharedVisitorKeys.ClassDeclaration, + Decorator: ['expression'], + ExportAllDeclaration: ['exported', 'source', 'assertions'], + ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'], + FunctionDeclaration: SharedVisitorKeys.Function, + FunctionExpression: SharedVisitorKeys.Function, + Identifier: ['decorators', 'typeAnnotation'], + ImportAttribute: ['key', 'value'], + ImportDeclaration: ['specifiers', 'source', 'assertions'], + ImportExpression: ['source', 'options'], + JSXClosingFragment: [], + JSXOpeningElement: ['name', 'typeArguments', 'attributes'], + JSXOpeningFragment: [], + JSXSpreadChild: ['expression'], + MethodDefinition: ['decorators', 'key', 'value'], + NewExpression: ['callee', 'typeArguments', 'arguments'], + ObjectPattern: ['decorators', 'properties', 'typeAnnotation'], + PropertyDefinition: SharedVisitorKeys.PropertyDefinition, + RestElement: ['decorators', 'argument', 'typeAnnotation'], + StaticBlock: ['body'], + TaggedTemplateExpression: ['tag', 'typeArguments', 'quasi'], + TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition, + TSAbstractKeyword: [], + TSAbstractMethodDefinition: ['key', 'value'], + TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition, + TSAnyKeyword: [], + TSArrayType: ['elementType'], + TSAsExpression: SharedVisitorKeys.AsExpression, + TSAsyncKeyword: [], + TSBigIntKeyword: [], + TSBooleanKeyword: [], + TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSClassImplements: ['expression', 'typeArguments'], + TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'], + TSConstructorType: SharedVisitorKeys.FunctionType, + TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType, + TSDeclareFunction: SharedVisitorKeys.Function, + TSDeclareKeyword: [], + TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType], + TSEnumBody: ['members'], + TSEnumDeclaration: ['id', 'body'], + TSEnumMember: ['id', 'initializer'], + TSExportAssignment: ['expression'], + TSExportKeyword: [], + TSExternalModuleReference: ['expression'], + TSFunctionType: SharedVisitorKeys.FunctionType, + TSImportEqualsDeclaration: ['id', 'moduleReference'], + TSImportType: ['argument', 'qualifier', 'typeArguments'], + TSIndexedAccessType: ['indexType', 'objectType'], + TSIndexSignature: ['parameters', 'typeAnnotation'], + TSInferType: ['typeParameter'], + TSInstantiationExpression: ['expression', 'typeArguments'], + TSInterfaceBody: ['body'], + TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'], + TSInterfaceHeritage: ['expression', 'typeArguments'], + TSIntersectionType: ['types'], + TSIntrinsicKeyword: [], + TSLiteralType: ['literal'], + TSMappedType: ['key', 'constraint', 'nameType', 'typeAnnotation'], + TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'], + TSModuleBlock: ['body'], + TSModuleDeclaration: ['id', 'body'], + TSNamedTupleMember: ['label', 'elementType'], + TSNamespaceExportDeclaration: ['id'], + TSNeverKeyword: [], + TSNonNullExpression: ['expression'], + TSNullKeyword: [], + TSNumberKeyword: [], + TSObjectKeyword: [], + TSOptionalType: ['typeAnnotation'], + TSParameterProperty: ['decorators', 'parameter'], + TSPrivateKeyword: [], + TSPropertySignature: ['typeAnnotation', 'key'], + TSProtectedKeyword: [], + TSPublicKeyword: [], + TSQualifiedName: ['left', 'right'], + TSReadonlyKeyword: [], + TSRestType: ['typeAnnotation'], + TSSatisfiesExpression: SharedVisitorKeys.AsExpression, + TSStaticKeyword: [], + TSStringKeyword: [], + TSSymbolKeyword: [], + TSTemplateLiteralType: ['quasis', 'types'], + TSThisType: [], + TSTupleType: ['elementTypes'], + TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'], + TSTypeAnnotation: ['typeAnnotation'], + TSTypeAssertion: ['typeAnnotation', 'expression'], + TSTypeLiteral: ['members'], + TSTypeOperator: ['typeAnnotation'], + TSTypeParameter: ['name', 'constraint', 'default'], + TSTypeParameterDeclaration: ['params'], + TSTypeParameterInstantiation: ['params'], + TSTypePredicate: ['typeAnnotation', 'parameterName'], + TSTypeQuery: ['exprName', 'typeArguments'], + TSTypeReference: ['typeName', 'typeArguments'], + TSUndefinedKeyword: [], + TSUnionType: ['types'], + TSUnknownKeyword: [], + TSVoidKeyword: [], +}; +const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys); +exports.visitorKeys = visitorKeys; +//# sourceMappingURL=visitor-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map new file mode 100644 index 00000000..cb3c0e3b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uEAAyD;AA4GzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;IACzE,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,EAAE,MAAM,CAAU,CAAC;IAC7D,MAAM,0BAA0B,GAAG;QACjC,YAAY;QACZ,KAAK;QACL,gBAAgB;KACR,CAAC;IAEX,OAAO;QACL,0BAA0B,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,gBAAgB,CAAC;QACnE,iBAAiB;QACjB,YAAY,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QAC9C,gBAAgB,EAAE;YAChB,YAAY;YACZ,IAAI;YACJ,gBAAgB;YAChB,YAAY;YACZ,oBAAoB;YACpB,YAAY;YACZ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AAC;AAEpE,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/package.json new file mode 100644 index 00000000..df200c2e --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys/package.json @@ -0,0 +1,73 @@ +{ + "name": "@typescript-eslint/visitor-keys", + "version": "8.16.0", + "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "types": "./dist/index.d.ts", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/visitor-keys" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/types": "8.16.0", + "eslint-visitor-keys": "^4.2.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/eslint-visitor-keys": "*", + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/LICENSE b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/LICENSE new file mode 100644 index 00000000..17a25538 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/README.md b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/README.md new file mode 100644 index 00000000..3cbbdd39 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/README.md @@ -0,0 +1,120 @@ +# eslint-visitor-keys + +[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys) +[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) + +Constants and utilities about visitor keys to traverse AST. + +## 💿 Installation + +Use [npm] to install. + +```bash +$ npm install eslint-visitor-keys +``` + +### Requirements + +- [Node.js] `^18.18.0`, `^20.9.0`, or `>=21.1.0` + +## 📖 Usage + +To use in an ESM file: + +```js +import * as evk from "eslint-visitor-keys" +``` + +To use in a CommonJS file: + +```js +const evk = require("eslint-visitor-keys") +``` + +### evk.KEYS + +> type: `{ [type: string]: string[] | undefined }` + +Visitor keys. This keys are frozen. + +This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes. + +For example: + +``` +console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"] +``` + +### evk.getKeys(node) + +> type: `(node: object) => string[]` + +Get the visitor keys of a given AST node. + +This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`. + +This will be used to traverse unknown nodes. + +For example: + +```js +const node = { + type: "AssignmentExpression", + left: { type: "Identifier", name: "foo" }, + right: { type: "Literal", value: 0 } +} +console.log(evk.getKeys(node)) // → ["type", "left", "right"] +``` + +### evk.unionWith(additionalKeys) + +> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }` + +Make the union set with `evk.KEYS` and the given keys. + +- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that. +- It removes duplicated keys as keeping the first one. + +For example: + +```js +console.log(evk.unionWith({ + MethodDefinition: ["decorators"] +})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... } +``` + +## 📰 Change log + +See [GitHub releases](https://github.com/eslint/js/releases). + +## 🍻 Contributing + +Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/). + +### Development commands + +- `npm test` runs tests and measures code coverage. +- `npm run lint` checks source codes with ESLint. +- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. + +[npm]: https://www.npmjs.com/ +[Node.js]: https://nodejs.org/ +[ESTree]: https://github.com/estree/estree + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs new file mode 100644 index 00000000..7f58e49b --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs @@ -0,0 +1,396 @@ +'use strict'; + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +exports.KEYS = KEYS; +exports.getKeys = getKeys; +exports.unionWith = unionWith; diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts new file mode 100644 index 00000000..a8684341 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts @@ -0,0 +1,27 @@ +type VisitorKeys$1 = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys$1; + +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +declare function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys; + +type VisitorKeys = VisitorKeys$1; + +export { KEYS, type VisitorKeys, getKeys, unionWith }; diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..e65b7da3 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/index.d.ts @@ -0,0 +1,16 @@ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys: VisitorKeys): VisitorKeys; +export { KEYS }; +export type VisitorKeys = import("./visitor-keys.js").VisitorKeys; +import KEYS from "./visitor-keys.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..2d7ada2f --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,12 @@ +export default KEYS; +export type VisitorKeys = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/index.js new file mode 100644 index 00000000..1fc89b43 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/index.js @@ -0,0 +1,67 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +import KEYS from "./visitor-keys.js"; + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +export { KEYS }; diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js new file mode 100644 index 00000000..41feb4b2 --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js @@ -0,0 +1,327 @@ +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +export default KEYS; diff --git a/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/package.json b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/package.json new file mode 100644 index 00000000..4dc2123d --- /dev/null +++ b/node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys/package.json @@ -0,0 +1,67 @@ +{ + "name": "eslint-visitor-keys", + "version": "4.2.0", + "description": "Constants and utilities about visitor keys to traverse AST.", + "type": "module", + "main": "dist/eslint-visitor-keys.cjs", + "types": "./dist/index.d.ts", + "exports": { + ".": [ + { + "import": "./lib/index.js", + "require": "./dist/eslint-visitor-keys.cjs" + }, + "./dist/eslint-visitor-keys.cjs" + ], + "./package.json": "./package.json" + }, + "files": [ + "dist/index.d.ts", + "dist/visitor-keys.d.ts", + "dist/eslint-visitor-keys.cjs", + "dist/eslint-visitor-keys.d.cts", + "lib" + ], + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "devDependencies": { + "@types/estree": "^0.0.51", + "@types/estree-jsx": "^0.0.1", + "@typescript-eslint/parser": "^8.7.0", + "c8": "^7.11.0", + "chai": "^4.3.6", + "eslint-release": "^3.2.0", + "esquery": "^1.4.0", + "json-diff": "^0.7.3", + "mocha": "^9.2.1", + "opener": "^1.5.2", + "rollup": "^4.22.4", + "rollup-plugin-dts": "^6.1.1", + "tsd": "^0.31.2", + "typescript": "^5.6.2" + }, + "scripts": { + "build": "npm run build:cjs && npm run build:types", + "build:cjs": "rollup -c", + "build:debug": "npm run build:cjs -- -m && npm run build:types", + "build:types": "tsc -v && tsc", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", + "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", + "test:types": "tsd" + }, + "repository": "eslint/js", + "funding": "https://opencollective.com/eslint", + "keywords": [], + "author": "Toru Nagashima (https://github.com/mysticatea)", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/js/issues" + }, + "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md" +} diff --git a/node_modules/@typescript-eslint/type-utils/package.json b/node_modules/@typescript-eslint/type-utils/package.json index 6bf9c43f..0eb48664 100644 --- a/node_modules/@typescript-eslint/type-utils/package.json +++ b/node_modules/@typescript-eslint/type-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/type-utils", - "version": "8.15.0", + "version": "8.16.0", "description": "Type utilities for working with TypeScript + ESLint together", "files": [ "dist", @@ -46,8 +46,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@typescript-eslint/typescript-estree": "8.15.0", - "@typescript-eslint/utils": "8.15.0", + "@typescript-eslint/typescript-estree": "8.16.0", + "@typescript-eslint/utils": "8.16.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -56,7 +56,7 @@ }, "devDependencies": { "@jest/types": "29.6.3", - "@typescript-eslint/parser": "8.15.0", + "@typescript-eslint/parser": "8.16.0", "ajv": "^6.12.6", "downlevel-dts": "*", "jest": "29.7.0", diff --git a/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml b/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml deleted file mode 100644 index 73cf8d65..00000000 --- a/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: build - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test - - run: npm run coverage --if-present - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/@ungap/structured-clone/LICENSE b/node_modules/@ungap/structured-clone/LICENSE deleted file mode 100644 index 48afbe52..00000000 --- a/node_modules/@ungap/structured-clone/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2021, Andrea Giammarchi, @WebReflection - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/@ungap/structured-clone/README.md b/node_modules/@ungap/structured-clone/README.md deleted file mode 100644 index fab4b37a..00000000 --- a/node_modules/@ungap/structured-clone/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# structuredClone polyfill - -[![Downloads](https://img.shields.io/npm/dm/@ungap/structured-clone.svg)](https://www.npmjs.com/package/@ungap/structured-clone) [![build status](https://github.com/ungap/structured-clone/actions/workflows/node.js.yml/badge.svg)](https://github.com/ungap/structured-clone/actions) [![Coverage Status](https://coveralls.io/repos/github/ungap/structured-clone/badge.svg?branch=main)](https://coveralls.io/github/ungap/structured-clone?branch=main) - -An env agnostic serializer and deserializer with recursion ability and types beyond *JSON* from the *HTML* standard itself. - - * [Supported Types](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types) - * *not supported yet*: Blob, File, FileList, ImageBitmap, ImageData, and ArrayBuffer, but typed arrays are supported without major issues, but u/int8, u/int16, and u/int32 are the only safely suppored (right now). - * *not possible to implement*: the `{transfer: []}` option can be passed but it's completely ignored. - * [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone) - * [Serializer](https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal) - * [Deserializer](https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserialize) - -Serialized values can be safely stringified as *JSON* too, and deserialization resurrect all values, even recursive, or more complex than what *JSON* allows. - - -### Examples - -Check the [100% test coverage](./test/index.js) to know even more. - -```js -// as default export -import structuredClone from '@ungap/structured-clone'; -const cloned = structuredClone({any: 'serializable'}); - -// as independent serializer/deserializer -import {serialize, deserialize} from '@ungap/structured-clone'; - -// the result can be stringified as JSON without issues -// even if there is recursive data, bigint values, -// typed arrays, and so on -const serialized = serialize({any: 'serializable'}); - -// the result will be a replica of the original object -const deserialized = deserialize(serialized); -``` - -#### Global Polyfill -Note: Only monkey patch the global if needed. This polyfill works just fine as an explicit import: `import structuredClone from "@ungap/structured-clone"` -```js -// Attach the polyfill as a Global function -import structuredClone from "@ungap/structured-clone"; -if (!("structuredClone" in globalThis)) { - globalThis.structuredClone = structuredClone; -} - -// Or don't monkey patch -import structuredClone from "@ungap/structured-clone" -// Just use it in the file -structuredClone() -``` - -**Note**: Do not attach this module's default export directly to the global scope, whithout a conditional guard to detect a native implementation. In environments where there is a native global implementation of `structuredClone()` already, assignment to the global object will result in an infinite loop when `globalThis.structuredClone()` is called. See the example above for a safe way to provide the polyfill globally in your project. - -### Extra Features - -There is no middle-ground between the structured clone algorithm and JSON: - - * JSON is more relaxed about incompatible values: it just ignores these - * Structured clone is inflexible regarding incompatible values, yet it makes specialized instances impossible to reconstruct, plus it doesn't offer any helper, such as `toJSON()`, to make serialization possible, or better, with specific cases - -This module specialized `serialize` export offers, within the optional extra argument, a **lossy** property to avoid throwing when incompatible types are found down the road (function, symbol, ...), so that it is possible to send with less worrying about thrown errors. - -```js -// as default export -import structuredClone from '@ungap/structured-clone'; -const cloned = structuredClone( - { - method() { - // ignored, won't be cloned - }, - special: Symbol('also ignored') - }, - { - // avoid throwing - lossy: true, - // avoid throwing *and* looks for toJSON - json: true - } -); -``` - -The behavior is the same found in *JSON* when it comes to *Array*, so that unsupported values will result as `null` placeholders instead. - -#### toJSON - -If `lossy` option is not enough, `json` will actually enforce `lossy` and also check for `toJSON` method when objects are parsed. - -Alternative, the `json` exports combines all features: - -```js -import {stringify, parse} from '@ungap/structured-clone/json'; - -parse(stringify({any: 'serializable'})); -``` diff --git a/node_modules/@ungap/structured-clone/cjs/deserialize.js b/node_modules/@ungap/structured-clone/cjs/deserialize.js deleted file mode 100644 index 9c0af7dd..00000000 --- a/node_modules/@ungap/structured-clone/cjs/deserialize.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict'; -const { - VOID, PRIMITIVE, ARRAY, OBJECT, DATE, REGEXP, MAP, SET, ERROR, BIGINT -} = require('./types.js'); - -const env = typeof self === 'object' ? self : globalThis; - -const deserializer = ($, _) => { - const as = (out, index) => { - $.set(index, out); - return out; - }; - - const unpair = index => { - if ($.has(index)) - return $.get(index); - - const [type, value] = _[index]; - switch (type) { - case PRIMITIVE: - case VOID: - return as(value, index); - case ARRAY: { - const arr = as([], index); - for (const index of value) - arr.push(unpair(index)); - return arr; - } - case OBJECT: { - const object = as({}, index); - for (const [key, index] of value) - object[unpair(key)] = unpair(index); - return object; - } - case DATE: - return as(new Date(value), index); - case REGEXP: { - const {source, flags} = value; - return as(new RegExp(source, flags), index); - } - case MAP: { - const map = as(new Map, index); - for (const [key, index] of value) - map.set(unpair(key), unpair(index)); - return map; - } - case SET: { - const set = as(new Set, index); - for (const index of value) - set.add(unpair(index)); - return set; - } - case ERROR: { - const {name, message} = value; - return as(new env[name](message), index); - } - case BIGINT: - return as(BigInt(value), index); - case 'BigInt': - return as(Object(BigInt(value)), index); - } - return as(new env[type](value), index); - }; - - return unpair; -}; - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns a deserialized value from a serialized array of Records. - * @param {Record[]} serialized a previously serialized value. - * @returns {any} - */ -const deserialize = serialized => deserializer(new Map, serialized)(0); -exports.deserialize = deserialize; diff --git a/node_modules/@ungap/structured-clone/cjs/index.js b/node_modules/@ungap/structured-clone/cjs/index.js deleted file mode 100644 index 13d747c5..00000000 --- a/node_modules/@ungap/structured-clone/cjs/index.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -const {deserialize} = require('./deserialize.js'); -const {serialize} = require('./serialize.js'); - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns an array of serialized Records. - * @param {any} any a serializable value. - * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with - * a transfer option (ignored when polyfilled) and/or non standard fields that - * fallback to the polyfill if present. - * @returns {Record[]} - */ -Object.defineProperty(exports, '__esModule', {value: true}).default = typeof structuredClone === "function" ? - /* c8 ignore start */ - (any, options) => ( - options && ('json' in options || 'lossy' in options) ? - deserialize(serialize(any, options)) : structuredClone(any) - ) : - (any, options) => deserialize(serialize(any, options)); - /* c8 ignore stop */ - -exports.deserialize = deserialize; -exports.serialize = serialize; diff --git a/node_modules/@ungap/structured-clone/cjs/json.js b/node_modules/@ungap/structured-clone/cjs/json.js deleted file mode 100644 index 0038dcf9..00000000 --- a/node_modules/@ungap/structured-clone/cjs/json.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -/*! (c) Andrea Giammarchi - ISC */ - -const {deserialize} = require('./deserialize.js'); -const {serialize} = require('./serialize.js'); - -const {parse: $parse, stringify: $stringify} = JSON; -const options = {json: true, lossy: true}; - -/** - * Revive a previously stringified structured clone. - * @param {string} str previously stringified data as string. - * @returns {any} whatever was previously stringified as clone. - */ -const parse = str => deserialize($parse(str)); -exports.parse = parse; - -/** - * Represent a structured clone value as string. - * @param {any} any some clone-able value to stringify. - * @returns {string} the value stringified. - */ -const stringify = any => $stringify(serialize(any, options)); -exports.stringify = stringify; diff --git a/node_modules/@ungap/structured-clone/cjs/package.json b/node_modules/@ungap/structured-clone/cjs/package.json deleted file mode 100644 index 0292b995..00000000 --- a/node_modules/@ungap/structured-clone/cjs/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"commonjs"} \ No newline at end of file diff --git a/node_modules/@ungap/structured-clone/cjs/serialize.js b/node_modules/@ungap/structured-clone/cjs/serialize.js deleted file mode 100644 index 0379cc6c..00000000 --- a/node_modules/@ungap/structured-clone/cjs/serialize.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict'; -const { - VOID, PRIMITIVE, ARRAY, OBJECT, DATE, REGEXP, MAP, SET, ERROR, BIGINT -} = require('./types.js'); - -const EMPTY = ''; - -const {toString} = {}; -const {keys} = Object; - -const typeOf = value => { - const type = typeof value; - if (type !== 'object' || !value) - return [PRIMITIVE, type]; - - const asString = toString.call(value).slice(8, -1); - switch (asString) { - case 'Array': - return [ARRAY, EMPTY]; - case 'Object': - return [OBJECT, EMPTY]; - case 'Date': - return [DATE, EMPTY]; - case 'RegExp': - return [REGEXP, EMPTY]; - case 'Map': - return [MAP, EMPTY]; - case 'Set': - return [SET, EMPTY]; - } - - if (asString.includes('Array')) - return [ARRAY, asString]; - - if (asString.includes('Error')) - return [ERROR, asString]; - - return [OBJECT, asString]; -}; - -const shouldSkip = ([TYPE, type]) => ( - TYPE === PRIMITIVE && - (type === 'function' || type === 'symbol') -); - -const serializer = (strict, json, $, _) => { - - const as = (out, value) => { - const index = _.push(out) - 1; - $.set(value, index); - return index; - }; - - const pair = value => { - if ($.has(value)) - return $.get(value); - - let [TYPE, type] = typeOf(value); - switch (TYPE) { - case PRIMITIVE: { - let entry = value; - switch (type) { - case 'bigint': - TYPE = BIGINT; - entry = value.toString(); - break; - case 'function': - case 'symbol': - if (strict) - throw new TypeError('unable to serialize ' + type); - entry = null; - break; - case 'undefined': - return as([VOID], value); - } - return as([TYPE, entry], value); - } - case ARRAY: { - if (type) - return as([type, [...value]], value); - - const arr = []; - const index = as([TYPE, arr], value); - for (const entry of value) - arr.push(pair(entry)); - return index; - } - case OBJECT: { - if (type) { - switch (type) { - case 'BigInt': - return as([type, value.toString()], value); - case 'Boolean': - case 'Number': - case 'String': - return as([type, value.valueOf()], value); - } - } - - if (json && ('toJSON' in value)) - return pair(value.toJSON()); - - const entries = []; - const index = as([TYPE, entries], value); - for (const key of keys(value)) { - if (strict || !shouldSkip(typeOf(value[key]))) - entries.push([pair(key), pair(value[key])]); - } - return index; - } - case DATE: - return as([TYPE, value.toISOString()], value); - case REGEXP: { - const {source, flags} = value; - return as([TYPE, {source, flags}], value); - } - case MAP: { - const entries = []; - const index = as([TYPE, entries], value); - for (const [key, entry] of value) { - if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry)))) - entries.push([pair(key), pair(entry)]); - } - return index; - } - case SET: { - const entries = []; - const index = as([TYPE, entries], value); - for (const entry of value) { - if (strict || !shouldSkip(typeOf(entry))) - entries.push(pair(entry)); - } - return index; - } - } - - const {message} = value; - return as([TYPE, {name: type, message}], value); - }; - - return pair; -}; - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns an array of serialized Records. - * @param {any} value a serializable value. - * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that, - * if `true`, will not throw errors on incompatible types, and behave more - * like JSON stringify would behave. Symbol and Function will be discarded. - * @returns {Record[]} - */ - const serialize = (value, {json, lossy} = {}) => { - const _ = []; - return serializer(!(json || lossy), !!json, new Map, _)(value), _; -}; -exports.serialize = serialize; diff --git a/node_modules/@ungap/structured-clone/cjs/types.js b/node_modules/@ungap/structured-clone/cjs/types.js deleted file mode 100644 index 8284be3d..00000000 --- a/node_modules/@ungap/structured-clone/cjs/types.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; -const VOID = -1; -exports.VOID = VOID; -const PRIMITIVE = 0; -exports.PRIMITIVE = PRIMITIVE; -const ARRAY = 1; -exports.ARRAY = ARRAY; -const OBJECT = 2; -exports.OBJECT = OBJECT; -const DATE = 3; -exports.DATE = DATE; -const REGEXP = 4; -exports.REGEXP = REGEXP; -const MAP = 5; -exports.MAP = MAP; -const SET = 6; -exports.SET = SET; -const ERROR = 7; -exports.ERROR = ERROR; -const BIGINT = 8; -exports.BIGINT = BIGINT; -// export const SYMBOL = 9; diff --git a/node_modules/@ungap/structured-clone/esm/deserialize.js b/node_modules/@ungap/structured-clone/esm/deserialize.js deleted file mode 100644 index 0fa70897..00000000 --- a/node_modules/@ungap/structured-clone/esm/deserialize.js +++ /dev/null @@ -1,79 +0,0 @@ -import { - VOID, PRIMITIVE, - ARRAY, OBJECT, - DATE, REGEXP, MAP, SET, - ERROR, BIGINT -} from './types.js'; - -const env = typeof self === 'object' ? self : globalThis; - -const deserializer = ($, _) => { - const as = (out, index) => { - $.set(index, out); - return out; - }; - - const unpair = index => { - if ($.has(index)) - return $.get(index); - - const [type, value] = _[index]; - switch (type) { - case PRIMITIVE: - case VOID: - return as(value, index); - case ARRAY: { - const arr = as([], index); - for (const index of value) - arr.push(unpair(index)); - return arr; - } - case OBJECT: { - const object = as({}, index); - for (const [key, index] of value) - object[unpair(key)] = unpair(index); - return object; - } - case DATE: - return as(new Date(value), index); - case REGEXP: { - const {source, flags} = value; - return as(new RegExp(source, flags), index); - } - case MAP: { - const map = as(new Map, index); - for (const [key, index] of value) - map.set(unpair(key), unpair(index)); - return map; - } - case SET: { - const set = as(new Set, index); - for (const index of value) - set.add(unpair(index)); - return set; - } - case ERROR: { - const {name, message} = value; - return as(new env[name](message), index); - } - case BIGINT: - return as(BigInt(value), index); - case 'BigInt': - return as(Object(BigInt(value)), index); - } - return as(new env[type](value), index); - }; - - return unpair; -}; - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns a deserialized value from a serialized array of Records. - * @param {Record[]} serialized a previously serialized value. - * @returns {any} - */ -export const deserialize = serialized => deserializer(new Map, serialized)(0); diff --git a/node_modules/@ungap/structured-clone/esm/index.js b/node_modules/@ungap/structured-clone/esm/index.js deleted file mode 100644 index d3b47479..00000000 --- a/node_modules/@ungap/structured-clone/esm/index.js +++ /dev/null @@ -1,25 +0,0 @@ -import {deserialize} from './deserialize.js'; -import {serialize} from './serialize.js'; - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns an array of serialized Records. - * @param {any} any a serializable value. - * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with - * a transfer option (ignored when polyfilled) and/or non standard fields that - * fallback to the polyfill if present. - * @returns {Record[]} - */ -export default typeof structuredClone === "function" ? - /* c8 ignore start */ - (any, options) => ( - options && ('json' in options || 'lossy' in options) ? - deserialize(serialize(any, options)) : structuredClone(any) - ) : - (any, options) => deserialize(serialize(any, options)); - /* c8 ignore stop */ - -export {deserialize, serialize}; diff --git a/node_modules/@ungap/structured-clone/esm/json.js b/node_modules/@ungap/structured-clone/esm/json.js deleted file mode 100644 index 23eb9522..00000000 --- a/node_modules/@ungap/structured-clone/esm/json.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! (c) Andrea Giammarchi - ISC */ - -import {deserialize} from './deserialize.js'; -import {serialize} from './serialize.js'; - -const {parse: $parse, stringify: $stringify} = JSON; -const options = {json: true, lossy: true}; - -/** - * Revive a previously stringified structured clone. - * @param {string} str previously stringified data as string. - * @returns {any} whatever was previously stringified as clone. - */ -export const parse = str => deserialize($parse(str)); - -/** - * Represent a structured clone value as string. - * @param {any} any some clone-able value to stringify. - * @returns {string} the value stringified. - */ -export const stringify = any => $stringify(serialize(any, options)); diff --git a/node_modules/@ungap/structured-clone/esm/serialize.js b/node_modules/@ungap/structured-clone/esm/serialize.js deleted file mode 100644 index 8e098ddc..00000000 --- a/node_modules/@ungap/structured-clone/esm/serialize.js +++ /dev/null @@ -1,161 +0,0 @@ -import { - VOID, PRIMITIVE, - ARRAY, OBJECT, - DATE, REGEXP, MAP, SET, - ERROR, BIGINT -} from './types.js'; - -const EMPTY = ''; - -const {toString} = {}; -const {keys} = Object; - -const typeOf = value => { - const type = typeof value; - if (type !== 'object' || !value) - return [PRIMITIVE, type]; - - const asString = toString.call(value).slice(8, -1); - switch (asString) { - case 'Array': - return [ARRAY, EMPTY]; - case 'Object': - return [OBJECT, EMPTY]; - case 'Date': - return [DATE, EMPTY]; - case 'RegExp': - return [REGEXP, EMPTY]; - case 'Map': - return [MAP, EMPTY]; - case 'Set': - return [SET, EMPTY]; - } - - if (asString.includes('Array')) - return [ARRAY, asString]; - - if (asString.includes('Error')) - return [ERROR, asString]; - - return [OBJECT, asString]; -}; - -const shouldSkip = ([TYPE, type]) => ( - TYPE === PRIMITIVE && - (type === 'function' || type === 'symbol') -); - -const serializer = (strict, json, $, _) => { - - const as = (out, value) => { - const index = _.push(out) - 1; - $.set(value, index); - return index; - }; - - const pair = value => { - if ($.has(value)) - return $.get(value); - - let [TYPE, type] = typeOf(value); - switch (TYPE) { - case PRIMITIVE: { - let entry = value; - switch (type) { - case 'bigint': - TYPE = BIGINT; - entry = value.toString(); - break; - case 'function': - case 'symbol': - if (strict) - throw new TypeError('unable to serialize ' + type); - entry = null; - break; - case 'undefined': - return as([VOID], value); - } - return as([TYPE, entry], value); - } - case ARRAY: { - if (type) - return as([type, [...value]], value); - - const arr = []; - const index = as([TYPE, arr], value); - for (const entry of value) - arr.push(pair(entry)); - return index; - } - case OBJECT: { - if (type) { - switch (type) { - case 'BigInt': - return as([type, value.toString()], value); - case 'Boolean': - case 'Number': - case 'String': - return as([type, value.valueOf()], value); - } - } - - if (json && ('toJSON' in value)) - return pair(value.toJSON()); - - const entries = []; - const index = as([TYPE, entries], value); - for (const key of keys(value)) { - if (strict || !shouldSkip(typeOf(value[key]))) - entries.push([pair(key), pair(value[key])]); - } - return index; - } - case DATE: - return as([TYPE, value.toISOString()], value); - case REGEXP: { - const {source, flags} = value; - return as([TYPE, {source, flags}], value); - } - case MAP: { - const entries = []; - const index = as([TYPE, entries], value); - for (const [key, entry] of value) { - if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry)))) - entries.push([pair(key), pair(entry)]); - } - return index; - } - case SET: { - const entries = []; - const index = as([TYPE, entries], value); - for (const entry of value) { - if (strict || !shouldSkip(typeOf(entry))) - entries.push(pair(entry)); - } - return index; - } - } - - const {message} = value; - return as([TYPE, {name: type, message}], value); - }; - - return pair; -}; - -/** - * @typedef {Array} Record a type representation - */ - -/** - * Returns an array of serialized Records. - * @param {any} value a serializable value. - * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that, - * if `true`, will not throw errors on incompatible types, and behave more - * like JSON stringify would behave. Symbol and Function will be discarded. - * @returns {Record[]} - */ - export const serialize = (value, {json, lossy} = {}) => { - const _ = []; - return serializer(!(json || lossy), !!json, new Map, _)(value), _; -}; diff --git a/node_modules/@ungap/structured-clone/esm/types.js b/node_modules/@ungap/structured-clone/esm/types.js deleted file mode 100644 index 50e60ca0..00000000 --- a/node_modules/@ungap/structured-clone/esm/types.js +++ /dev/null @@ -1,11 +0,0 @@ -export const VOID = -1; -export const PRIMITIVE = 0; -export const ARRAY = 1; -export const OBJECT = 2; -export const DATE = 3; -export const REGEXP = 4; -export const MAP = 5; -export const SET = 6; -export const ERROR = 7; -export const BIGINT = 8; -// export const SYMBOL = 9; diff --git a/node_modules/@ungap/structured-clone/package.json b/node_modules/@ungap/structured-clone/package.json deleted file mode 100644 index ba9f84fa..00000000 --- a/node_modules/@ungap/structured-clone/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "@ungap/structured-clone", - "version": "1.2.0", - "description": "A structuredClone polyfill", - "main": "./cjs/index.js", - "scripts": { - "build": "npm run cjs && npm run rollup:json && npm run test", - "cjs": "ascjs esm cjs", - "coverage": "c8 report --reporter=text-lcov > ./coverage/lcov.info", - "rollup:json": "rollup --config rollup/json.config.js", - "test": "c8 node test/index.js" - }, - "keywords": [ - "recursion", - "structured", - "clone", - "algorithm" - ], - "author": "Andrea Giammarchi", - "license": "ISC", - "devDependencies": { - "@rollup/plugin-node-resolve": "^15.0.2", - "@rollup/plugin-terser": "^0.4.1", - "ascjs": "^5.0.1", - "c8": "^7.13.0", - "coveralls": "^3.1.1", - "rollup": "^3.21.4" - }, - "module": "./esm/index.js", - "type": "module", - "exports": { - ".": { - "import": "./esm/index.js", - "default": "./cjs/index.js" - }, - "./json": { - "import": "./esm/json.js", - "default": "./cjs/json.js" - }, - "./package.json": "./package.json" - }, - "directories": { - "test": "test" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ungap/structured-clone.git" - }, - "bugs": { - "url": "https://github.com/ungap/structured-clone/issues" - }, - "homepage": "https://github.com/ungap/structured-clone#readme" -} diff --git a/node_modules/@ungap/structured-clone/structured-json.js b/node_modules/@ungap/structured-clone/structured-json.js deleted file mode 100644 index 44cfe596..00000000 --- a/node_modules/@ungap/structured-clone/structured-json.js +++ /dev/null @@ -1 +0,0 @@ -var StructuredJSON=function(e){"use strict";const r="object"==typeof self?self:globalThis,t=e=>((e,t)=>{const s=(r,t)=>(e.set(t,r),r),n=c=>{if(e.has(c))return e.get(c);const[o,a]=t[c];switch(o){case 0:case-1:return s(a,c);case 1:{const e=s([],c);for(const r of a)e.push(n(r));return e}case 2:{const e=s({},c);for(const[r,t]of a)e[n(r)]=n(t);return e}case 3:return s(new Date(a),c);case 4:{const{source:e,flags:r}=a;return s(new RegExp(e,r),c)}case 5:{const e=s(new Map,c);for(const[r,t]of a)e.set(n(r),n(t));return e}case 6:{const e=s(new Set,c);for(const r of a)e.add(n(r));return e}case 7:{const{name:e,message:t}=a;return s(new r[e](t),c)}case 8:return s(BigInt(a),c);case"BigInt":return s(Object(BigInt(a)),c)}return s(new r[o](a),c)};return n})(new Map,e)(0),s="",{toString:n}={},{keys:c}=Object,o=e=>{const r=typeof e;if("object"!==r||!e)return[0,r];const t=n.call(e).slice(8,-1);switch(t){case"Array":return[1,s];case"Object":return[2,s];case"Date":return[3,s];case"RegExp":return[4,s];case"Map":return[5,s];case"Set":return[6,s]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},a=([e,r])=>0===e&&("function"===r||"symbol"===r),u=(e,{json:r,lossy:t}={})=>{const s=[];return((e,r,t,s)=>{const n=(e,r)=>{const n=s.push(e)-1;return t.set(r,n),n},u=s=>{if(t.has(s))return t.get(s);let[i,f]=o(s);switch(i){case 0:{let r=s;switch(f){case"bigint":i=8,r=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);r=null;break;case"undefined":return n([-1],s)}return n([i,r],s)}case 1:{if(f)return n([f,[...s]],s);const e=[],r=n([i,e],s);for(const r of s)e.push(u(r));return r}case 2:{if(f)switch(f){case"BigInt":return n([f,s.toString()],s);case"Boolean":case"Number":case"String":return n([f,s.valueOf()],s)}if(r&&"toJSON"in s)return u(s.toJSON());const t=[],l=n([i,t],s);for(const r of c(s))!e&&a(o(s[r]))||t.push([u(r),u(s[r])]);return l}case 3:return n([i,s.toISOString()],s);case 4:{const{source:e,flags:r}=s;return n([i,{source:e,flags:r}],s)}case 5:{const r=[],t=n([i,r],s);for(const[t,n]of s)(e||!a(o(t))&&!a(o(n)))&&r.push([u(t),u(n)]);return t}case 6:{const r=[],t=n([i,r],s);for(const t of s)!e&&a(o(t))||r.push(u(t));return t}}const{message:l}=s;return n([i,{name:f,message:l}],s)};return u})(!(r||t),!!r,new Map,s)(e),s},{parse:i,stringify:f}=JSON,l={json:!0,lossy:!0};return e.parse=e=>t(i(e)),e.stringify=e=>f(u(e,l)),e}({}); diff --git a/node_modules/cross-spawn/CHANGELOG.md b/node_modules/cross-spawn/CHANGELOG.md deleted file mode 100644 index d07c9e5c..00000000 --- a/node_modules/cross-spawn/CHANGELOG.md +++ /dev/null @@ -1,130 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [7.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.2...v7.0.3) (2020-05-25) - - -### Bug Fixes - -* detect path key based on correct environment ([#133](https://github.com/moxystudio/node-cross-spawn/issues/133)) ([159e7e9](https://github.com/moxystudio/node-cross-spawn/commit/159e7e9785e57451cba034ae51719f97135074ae)) - -### [7.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.1...v7.0.2) (2020-04-04) - - -### Bug Fixes - -* fix worker threads in Node >=11.10.0 ([#132](https://github.com/moxystudio/node-cross-spawn/issues/132)) ([6c5b4f0](https://github.com/moxystudio/node-cross-spawn/commit/6c5b4f015814a6c4f6b33230dfd1a860aedc0aaf)) - -### [7.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.0...v7.0.1) (2019-10-07) - - -### Bug Fixes - -* **core:** support worker threads ([#127](https://github.com/moxystudio/node-cross-spawn/issues/127)) ([cfd49c9](https://github.com/moxystudio/node-cross-spawn/commit/cfd49c9)) - -## [7.0.0](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.0) (2019-09-03) - - -### ⚠ BREAKING CHANGES - -* drop support for Node.js < 8 - -* drop support for versions below Node.js 8 ([#125](https://github.com/moxystudio/node-cross-spawn/issues/125)) ([16feb53](https://github.com/moxystudio/node-cross-spawn/commit/16feb53)) - - -## [6.0.5](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.4...v6.0.5) (2018-03-02) - - -### Bug Fixes - -* avoid using deprecated Buffer constructor ([#94](https://github.com/moxystudio/node-cross-spawn/issues/94)) ([d5770df](https://github.com/moxystudio/node-cross-spawn/commit/d5770df)), closes [/nodejs.org/api/deprecations.html#deprecations_dep0005](https://github.com//nodejs.org/api/deprecations.html/issues/deprecations_dep0005) - - - - -## [6.0.4](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.3...v6.0.4) (2018-01-31) - - -### Bug Fixes - -* fix paths being incorrectly normalized on unix ([06ee3c6](https://github.com/moxystudio/node-cross-spawn/commit/06ee3c6)), closes [#90](https://github.com/moxystudio/node-cross-spawn/issues/90) - - - - -## [6.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.2...v6.0.3) (2018-01-23) - - - - -## [6.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.1...v6.0.2) (2018-01-23) - - - - -## [6.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.0...v6.0.1) (2018-01-23) - - - - -# [6.0.0](https://github.com/moxystudio/node-cross-spawn/compare/5.1.0...6.0.0) (2018-01-23) - - -### Bug Fixes - -* fix certain arguments not being correctly escaped or causing batch syntax error ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)), closes [#82](https://github.com/moxystudio/node-cross-spawn/issues/82) [#51](https://github.com/moxystudio/node-cross-spawn/issues/51) -* fix commands as posix relatixe paths not working correctly, e.g.: `./my-command` ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* fix `options` argument being mutated ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* fix commands resolution when PATH was actually Path ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) - - -### Features - -* improve compliance with node's ENOENT errors ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* improve detection of node's shell option support ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) - - -### Chores - -* upgrade tooling -* upgrate project to es6 (node v4) - - -### BREAKING CHANGES - -* remove support for older nodejs versions, only `node >= 4` is supported - - - -## [5.1.0](https://github.com/moxystudio/node-cross-spawn/compare/5.0.1...5.1.0) (2017-02-26) - - -### Bug Fixes - -* fix `options.shell` support for NodeJS [v4.8](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0) - - - -## [5.0.1](https://github.com/moxystudio/node-cross-spawn/compare/5.0.0...5.0.1) (2016-11-04) - - -### Bug Fixes - -* fix `options.shell` support for NodeJS v7 - - - -# [5.0.0](https://github.com/moxystudio/node-cross-spawn/compare/4.0.2...5.0.0) (2016-10-30) - - -## Features - -* add support for `options.shell` -* improve parsing of shebangs by using [`shebang-command`](https://github.com/kevva/shebang-command) module - - -## Chores - -* refactor some code to make it more clear -* update README caveats diff --git a/node_modules/cross-spawn/README.md b/node_modules/cross-spawn/README.md index c4a4da84..1ed9252b 100644 --- a/node_modules/cross-spawn/README.md +++ b/node_modules/cross-spawn/README.md @@ -1,24 +1,17 @@ # cross-spawn -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] +[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Build status][appveyor-image]][appveyor-url] [npm-url]:https://npmjs.org/package/cross-spawn [downloads-image]:https://img.shields.io/npm/dm/cross-spawn.svg [npm-image]:https://img.shields.io/npm/v/cross-spawn.svg -[travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn -[travis-image]:https://img.shields.io/travis/moxystudio/node-cross-spawn/master.svg +[ci-url]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml +[ci-image]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml/badge.svg [appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn [appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg -[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn -[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg -[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn -[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg -[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev -[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg A cross platform solution to node's spawn and spawnSync. - ## Installation Node.js version 8 and up: diff --git a/node_modules/cross-spawn/lib/enoent.js b/node_modules/cross-spawn/lib/enoent.js index 14df9b62..da334713 100644 --- a/node_modules/cross-spawn/lib/enoent.js +++ b/node_modules/cross-spawn/lib/enoent.js @@ -24,7 +24,7 @@ function hookChildProcess(cp, parsed) { // the command exists and emit an "error" instead // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 if (name === 'exit') { - const err = verifyENOENT(arg1, parsed, 'spawn'); + const err = verifyENOENT(arg1, parsed); if (err) { return originalEmit.call(cp, 'error', err); diff --git a/node_modules/cross-spawn/lib/util/escape.js b/node_modules/cross-spawn/lib/util/escape.js index b0bb84c3..7bf2905c 100644 --- a/node_modules/cross-spawn/lib/util/escape.js +++ b/node_modules/cross-spawn/lib/util/escape.js @@ -15,15 +15,17 @@ function escapeArgument(arg, doubleEscapeMetaChars) { arg = `${arg}`; // Algorithm below is based on https://qntm.org/cmd + // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input + // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information // Sequence of backslashes followed by a double quote: // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'); // Sequence of backslashes followed by the end of the string // (which will become a double quote later): // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1'); + arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1'); // All other backslashes occur literally diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index 232ff97e..24b2eb4c 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -1,6 +1,6 @@ { "name": "cross-spawn", - "version": "7.0.3", + "version": "7.0.6", "description": "Cross platform child_process#spawn and child_process#spawnSync", "keywords": [ "spawn", @@ -65,7 +65,7 @@ "lint-staged": "^9.2.5", "mkdirp": "^0.5.1", "rimraf": "^3.0.0", - "standard-version": "^7.0.0" + "standard-version": "^9.5.0" }, "engines": { "node": ">= 8" diff --git a/node_modules/doctrine/CHANGELOG.md b/node_modules/doctrine/CHANGELOG.md deleted file mode 100644 index 6141026e..00000000 --- a/node_modules/doctrine/CHANGELOG.md +++ /dev/null @@ -1,101 +0,0 @@ -v3.0.0 - November 9, 2018 - -* 0b5a8c7 Breaking: drop support for Node < 6 (#223) (Kai Cataldo) -* a05e9f2 Upgrade: eslint-release@1.0.0 (#220) (Teddy Katz) -* 36ed027 Chore: upgrade coveralls to ^3.0.1 (#213) (Teddy Katz) -* 8667e34 Upgrade: eslint-release@^0.11.1 (#210) (Kevin Partington) - -v2.1.0 - January 6, 2018 - -* 827f314 Update: support node ranges (fixes #89) (#190) (Teddy Katz) - -v2.0.2 - November 25, 2017 - -* 5049ee3 Fix: Remove redundant LICENSE/README names from files (#203) (Kevin Partington) - -v2.0.1 - November 10, 2017 - -* 009f33d Fix: Making sure union type stringification respects compact flag (#199) (Mitermayer Reis) -* 19da935 Use native String.prototype.trim instead of a custom implementation. (#201) (Rouven Weßling) -* e3a011b chore: add mocha.opts to restore custom mocha config (Jason Kurian) -* d888200 chore: adds nyc and a newer version of mocha to accurately report coverage (Jason Kurian) -* 6b210a8 fix: support type expression for @this tag (fixes #181) (#182) (Frédéric Junod) -* 1c4a4c7 fix: Allow array indexes in names (#193) (Tom MacWright) -* 9aed54d Fix incorrect behavior when arrow functions are used as default values (#189) (Gaurab Paul) -* 9efb6ca Upgrade: Use Array.isArray instead of isarray package (#195) (medanat) - -v2.0.0 - November 15, 2016 - -* 7d7c5f1 Breaking: Re-license to Apache 2 (fixes #176) (#178) (Nicholas C. Zakas) -* 5496132 Docs: Update license copyright (Nicholas C. Zakas) - -v1.5.0 - October 13, 2016 - -* e33c6bb Update: Add support for BooleanLiteralType (#173) (Erik Arvidsson) - -v1.4.0 - September 13, 2016 - -* d7426e5 Update: add ability to parse optional properties in typedefs (refs #5) (#174) (ikokostya) - -v1.3.0 - August 22, 2016 - -* 12c7ad9 Update: Add support for numeric and string literal types (fixes #156) (#172) (Andrew Walter) - -v1.2.3 - August 16, 2016 - -* b96a884 Build: Add CI release script (Nicholas C. Zakas) -* 8d9b3c7 Upgrade: Upgrade esutils to v2.0.2 (fixes #170) (#171) (Emeegeemee) - -v1.2.2 - May 19, 2016 - -* ebe0b08 Fix: Support case insensitive tags (fixes #163) (#164) (alberto) -* 8e6d81e Chore: Remove copyright and license from headers (Nicholas C. Zakas) -* 79035c6 Chore: Include jQuery Foundation copyright (Nicholas C. Zakas) -* 06910a7 Fix: Preserve whitespace in default param string values (fixes #157) (Kai Cataldo) - -v1.2.1 - March 29, 2016 - -* 1f54014 Fix: allow hyphens in names (fixes #116) (Kai Cataldo) -* bbee469 Docs: Add issue template (Nicholas C. Zakas) - -v1.2.0 - February 19, 2016 - -* 18136c5 Build: Cleanup build system (Nicholas C. Zakas) -* b082f85 Update: Add support for slash in namepaths (fixes #100) (Ryan Duffy) -* def53a2 Docs: Fix typo in option lineNumbers (Daniel Tschinder) -* e2cbbc5 Update: Bump isarray to v1.0.0 (Shinnosuke Watanabe) -* ae07aa8 Fix: Allow whitespace in optional param with default value (fixes #141) (chris) - -v1.1.0 - January 6, 2016 - -* Build: Switch to Makefile.js (Nicholas C. Zakas) -* New: support name expression for @this tag (fixes #143) (Tim Schaub) -* Build: Update ESLint settings (Nicholas C. Zakas) - -v1.0.0 - December 21, 2015 - -* New: parse caption tags in examples into separate property. (fixes #131) (Tom MacWright) - -v0.7.2 - November 27, 2015 - -* Fix: Line numbers for some tags (fixes #138) Fixing issue where input was not consumed via advance() but was skipped when parsing tags resulting in sometimes incorrect reported lineNumber. (TEHEK) -* Build: Add missing linefix package (Nicholas C. Zakas) - -v0.7.1 - November 13, 2015 - -* Update: Begin switch to Makefile.js (Nicholas C. Zakas) -* Fix: permit return tag without type (fixes #136) (Tom MacWright) -* Fix: package.json homepage field (Bogdan Chadkin) -* Fix: Parse array default syntax. Fixes #133 (Tom MacWright) -* Fix: Last tag always has \n in the description (fixes #87) (Burak Yigit Kaya) -* Docs: Add changelog (Nicholas C. Zakas) - -v0.7.0 - September 21, 2015 - -* Docs: Update README with new info (fixes #127) (Nicholas C. Zakas) -* Fix: Parsing fix for param with arrays and properties (fixes #111) (Gyandeep Singh) -* Build: Add travis build (fixes #123) (Gyandeep Singh) -* Fix: Parsing of parameter name without a type (fixes #120) (Gyandeep Singh) -* New: added preserveWhitespace option (Aleks Totic) -* New: Add "files" entry to only deploy select files (Rob Loach) -* New: Add support and tests for typedefs. Refs #5 (Tom MacWright) diff --git a/node_modules/doctrine/LICENSE b/node_modules/doctrine/LICENSE deleted file mode 100644 index 3e8ba72f..00000000 --- a/node_modules/doctrine/LICENSE +++ /dev/null @@ -1,177 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS diff --git a/node_modules/doctrine/LICENSE.closure-compiler b/node_modules/doctrine/LICENSE.closure-compiler deleted file mode 100644 index d6456956..00000000 --- a/node_modules/doctrine/LICENSE.closure-compiler +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/doctrine/LICENSE.esprima b/node_modules/doctrine/LICENSE.esprima deleted file mode 100644 index 3e580c35..00000000 --- a/node_modules/doctrine/LICENSE.esprima +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/doctrine/README.md b/node_modules/doctrine/README.md deleted file mode 100644 index 26fad18b..00000000 --- a/node_modules/doctrine/README.md +++ /dev/null @@ -1,165 +0,0 @@ -[![NPM version][npm-image]][npm-url] -[![build status][travis-image]][travis-url] -[![Test coverage][coveralls-image]][coveralls-url] -[![Downloads][downloads-image]][downloads-url] -[![Join the chat at https://gitter.im/eslint/doctrine](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/eslint/doctrine?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - -# Doctrine - -Doctrine is a [JSDoc](http://usejsdoc.org) parser that parses documentation comments from JavaScript (you need to pass in the comment, not a whole JavaScript file). - -## Installation - -You can install Doctrine using [npm](https://npmjs.com): - -``` -$ npm install doctrine --save-dev -``` - -Doctrine can also be used in web browsers using [Browserify](http://browserify.org). - -## Usage - -Require doctrine inside of your JavaScript: - -```js -var doctrine = require("doctrine"); -``` - -### parse() - -The primary method is `parse()`, which accepts two arguments: the JSDoc comment to parse and an optional options object. The available options are: - -* `unwrap` - set to `true` to delete the leading `/**`, any `*` that begins a line, and the trailing `*/` from the source text. Default: `false`. -* `tags` - an array of tags to return. When specified, Doctrine returns only tags in this array. For example, if `tags` is `["param"]`, then only `@param` tags will be returned. Default: `null`. -* `recoverable` - set to `true` to keep parsing even when syntax errors occur. Default: `false`. -* `sloppy` - set to `true` to allow optional parameters to be specified in brackets (`@param {string} [foo]`). Default: `false`. -* `lineNumbers` - set to `true` to add `lineNumber` to each node, specifying the line on which the node is found in the source. Default: `false`. -* `range` - set to `true` to add `range` to each node, specifying the start and end index of the node in the original comment. Default: `false`. - -Here's a simple example: - -```js -var ast = doctrine.parse( - [ - "/**", - " * This function comment is parsed by doctrine", - " * @param {{ok:String}} userName", - "*/" - ].join('\n'), { unwrap: true }); -``` - -This example returns the following AST: - - { - "description": "This function comment is parsed by doctrine", - "tags": [ - { - "title": "param", - "description": null, - "type": { - "type": "RecordType", - "fields": [ - { - "type": "FieldType", - "key": "ok", - "value": { - "type": "NameExpression", - "name": "String" - } - } - ] - }, - "name": "userName" - } - ] - } - -See the [demo page](http://eslint.org/doctrine/demo/) more detail. - -## Team - -These folks keep the project moving and are resources for help: - -* Nicholas C. Zakas ([@nzakas](https://github.com/nzakas)) - project lead -* Yusuke Suzuki ([@constellation](https://github.com/constellation)) - reviewer - -## Contributing - -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/doctrine/issues). - -## Frequently Asked Questions - -### Can I pass a whole JavaScript file to Doctrine? - -No. Doctrine can only parse JSDoc comments, so you'll need to pass just the JSDoc comment to Doctrine in order to work. - - -### License - -#### doctrine - -Copyright JS Foundation and other contributors, https://js.foundation - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -#### esprima - -some of functions is derived from esprima - -Copyright (C) 2012, 2011 [Ariya Hidayat](http://ariya.ofilabs.com/about) - (twitter: [@ariyahidayat](http://twitter.com/ariyahidayat)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -#### closure-compiler - -some of extensions is derived from closure-compiler - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - - -### Where to ask for help? - -Join our [Chatroom](https://gitter.im/eslint/doctrine) - -[npm-image]: https://img.shields.io/npm/v/doctrine.svg?style=flat-square -[npm-url]: https://www.npmjs.com/package/doctrine -[travis-image]: https://img.shields.io/travis/eslint/doctrine/master.svg?style=flat-square -[travis-url]: https://travis-ci.org/eslint/doctrine -[coveralls-image]: https://img.shields.io/coveralls/eslint/doctrine/master.svg?style=flat-square -[coveralls-url]: https://coveralls.io/r/eslint/doctrine?branch=master -[downloads-image]: http://img.shields.io/npm/dm/doctrine.svg?style=flat-square -[downloads-url]: https://www.npmjs.com/package/doctrine diff --git a/node_modules/doctrine/lib/doctrine.js b/node_modules/doctrine/lib/doctrine.js deleted file mode 100644 index d246e33f..00000000 --- a/node_modules/doctrine/lib/doctrine.js +++ /dev/null @@ -1,898 +0,0 @@ -/* - * @fileoverview Main Doctrine object - * @author Yusuke Suzuki - * @author Dan Tao - * @author Andrew Eisenberg - */ - -(function () { - 'use strict'; - - var typed, - utility, - jsdoc, - esutils, - hasOwnProperty; - - esutils = require('esutils'); - typed = require('./typed'); - utility = require('./utility'); - - function sliceSource(source, index, last) { - return source.slice(index, last); - } - - hasOwnProperty = (function () { - var func = Object.prototype.hasOwnProperty; - return function hasOwnProperty(obj, name) { - return func.call(obj, name); - }; - }()); - function shallowCopy(obj) { - var ret = {}, key; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - ret[key] = obj[key]; - } - } - return ret; - } - - function isASCIIAlphanumeric(ch) { - return (ch >= 0x61 /* 'a' */ && ch <= 0x7A /* 'z' */) || - (ch >= 0x41 /* 'A' */ && ch <= 0x5A /* 'Z' */) || - (ch >= 0x30 /* '0' */ && ch <= 0x39 /* '9' */); - } - - function isParamTitle(title) { - return title === 'param' || title === 'argument' || title === 'arg'; - } - - function isReturnTitle(title) { - return title === 'return' || title === 'returns'; - } - - function isProperty(title) { - return title === 'property' || title === 'prop'; - } - - function isNameParameterRequired(title) { - return isParamTitle(title) || isProperty(title) || - title === 'alias' || title === 'this' || title === 'mixes' || title === 'requires'; - } - - function isAllowedName(title) { - return isNameParameterRequired(title) || title === 'const' || title === 'constant'; - } - - function isAllowedNested(title) { - return isProperty(title) || isParamTitle(title); - } - - function isAllowedOptional(title) { - return isProperty(title) || isParamTitle(title); - } - - function isTypeParameterRequired(title) { - return isParamTitle(title) || isReturnTitle(title) || - title === 'define' || title === 'enum' || - title === 'implements' || title === 'this' || - title === 'type' || title === 'typedef' || isProperty(title); - } - - // Consider deprecation instead using 'isTypeParameterRequired' and 'Rules' declaration to pick when a type is optional/required - // This would require changes to 'parseType' - function isAllowedType(title) { - return isTypeParameterRequired(title) || title === 'throws' || title === 'const' || title === 'constant' || - title === 'namespace' || title === 'member' || title === 'var' || title === 'module' || - title === 'constructor' || title === 'class' || title === 'extends' || title === 'augments' || - title === 'public' || title === 'private' || title === 'protected'; - } - - // A regex character class that contains all whitespace except linebreak characters (\r, \n, \u2028, \u2029) - var WHITESPACE = '[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]'; - - var STAR_MATCHER = '(' + WHITESPACE + '*(?:\\*' + WHITESPACE + '?)?)(.+|[\r\n\u2028\u2029])'; - - function unwrapComment(doc) { - // JSDoc comment is following form - // /** - // * ....... - // */ - - return doc. - // remove /** - replace(/^\/\*\*?/, ''). - // remove */ - replace(/\*\/$/, ''). - // remove ' * ' at the beginning of a line - replace(new RegExp(STAR_MATCHER, 'g'), '$2'). - // remove trailing whitespace - replace(/\s*$/, ''); - } - - /** - * Converts an index in an "unwrapped" JSDoc comment to the corresponding index in the original "wrapped" version - * @param {string} originalSource The original wrapped comment - * @param {number} unwrappedIndex The index of a character in the unwrapped string - * @returns {number} The index of the corresponding character in the original wrapped string - */ - function convertUnwrappedCommentIndex(originalSource, unwrappedIndex) { - var replacedSource = originalSource.replace(/^\/\*\*?/, ''); - var numSkippedChars = 0; - var matcher = new RegExp(STAR_MATCHER, 'g'); - var match; - - while ((match = matcher.exec(replacedSource))) { - numSkippedChars += match[1].length; - - if (match.index + match[0].length > unwrappedIndex + numSkippedChars) { - return unwrappedIndex + numSkippedChars + originalSource.length - replacedSource.length; - } - } - - return originalSource.replace(/\*\/$/, '').replace(/\s*$/, '').length; - } - - // JSDoc Tag Parser - - (function (exports) { - var Rules, - index, - lineNumber, - length, - source, - originalSource, - recoverable, - sloppy, - strict; - - function advance() { - var ch = source.charCodeAt(index); - index += 1; - if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(index) === 0x0A /* '\n' */)) { - lineNumber += 1; - } - return String.fromCharCode(ch); - } - - function scanTitle() { - var title = ''; - // waste '@' - advance(); - - while (index < length && isASCIIAlphanumeric(source.charCodeAt(index))) { - title += advance(); - } - - return title; - } - - function seekContent() { - var ch, waiting, last = index; - - waiting = false; - while (last < length) { - ch = source.charCodeAt(last); - if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(last + 1) === 0x0A /* '\n' */)) { - waiting = true; - } else if (waiting) { - if (ch === 0x40 /* '@' */) { - break; - } - if (!esutils.code.isWhiteSpace(ch)) { - waiting = false; - } - } - last += 1; - } - return last; - } - - // type expression may have nest brace, such as, - // { { ok: string } } - // - // therefore, scanning type expression with balancing braces. - function parseType(title, last, addRange) { - var ch, brace, type, startIndex, direct = false; - - - // search '{' - while (index < last) { - ch = source.charCodeAt(index); - if (esutils.code.isWhiteSpace(ch)) { - advance(); - } else if (ch === 0x7B /* '{' */) { - advance(); - break; - } else { - // this is direct pattern - direct = true; - break; - } - } - - - if (direct) { - return null; - } - - // type expression { is found - brace = 1; - type = ''; - while (index < last) { - ch = source.charCodeAt(index); - if (esutils.code.isLineTerminator(ch)) { - advance(); - } else { - if (ch === 0x7D /* '}' */) { - brace -= 1; - if (brace === 0) { - advance(); - break; - } - } else if (ch === 0x7B /* '{' */) { - brace += 1; - } - if (type === '') { - startIndex = index; - } - type += advance(); - } - } - - if (brace !== 0) { - // braces is not balanced - return utility.throwError('Braces are not balanced'); - } - - if (isAllowedOptional(title)) { - return typed.parseParamType(type, {startIndex: convertIndex(startIndex), range: addRange}); - } - - return typed.parseType(type, {startIndex: convertIndex(startIndex), range: addRange}); - } - - function scanIdentifier(last) { - var identifier; - if (!esutils.code.isIdentifierStartES5(source.charCodeAt(index)) && !source[index].match(/[0-9]/)) { - return null; - } - identifier = advance(); - while (index < last && esutils.code.isIdentifierPartES5(source.charCodeAt(index))) { - identifier += advance(); - } - return identifier; - } - - function skipWhiteSpace(last) { - while (index < last && (esutils.code.isWhiteSpace(source.charCodeAt(index)) || esutils.code.isLineTerminator(source.charCodeAt(index)))) { - advance(); - } - } - - function parseName(last, allowBrackets, allowNestedParams) { - var name = '', - useBrackets, - insideString; - - - skipWhiteSpace(last); - - if (index >= last) { - return null; - } - - if (source.charCodeAt(index) === 0x5B /* '[' */) { - if (allowBrackets) { - useBrackets = true; - name = advance(); - } else { - return null; - } - } - - name += scanIdentifier(last); - - if (allowNestedParams) { - if (source.charCodeAt(index) === 0x3A /* ':' */ && ( - name === 'module' || - name === 'external' || - name === 'event')) { - name += advance(); - name += scanIdentifier(last); - - } - if(source.charCodeAt(index) === 0x5B /* '[' */ && source.charCodeAt(index + 1) === 0x5D /* ']' */){ - name += advance(); - name += advance(); - } - while (source.charCodeAt(index) === 0x2E /* '.' */ || - source.charCodeAt(index) === 0x2F /* '/' */ || - source.charCodeAt(index) === 0x23 /* '#' */ || - source.charCodeAt(index) === 0x2D /* '-' */ || - source.charCodeAt(index) === 0x7E /* '~' */) { - name += advance(); - name += scanIdentifier(last); - } - } - - if (useBrackets) { - skipWhiteSpace(last); - // do we have a default value for this? - if (source.charCodeAt(index) === 0x3D /* '=' */) { - // consume the '='' symbol - name += advance(); - skipWhiteSpace(last); - - var ch; - var bracketDepth = 1; - - // scan in the default value - while (index < last) { - ch = source.charCodeAt(index); - - if (esutils.code.isWhiteSpace(ch)) { - if (!insideString) { - skipWhiteSpace(last); - ch = source.charCodeAt(index); - } - } - - if (ch === 0x27 /* ''' */) { - if (!insideString) { - insideString = '\''; - } else { - if (insideString === '\'') { - insideString = ''; - } - } - } - - if (ch === 0x22 /* '"' */) { - if (!insideString) { - insideString = '"'; - } else { - if (insideString === '"') { - insideString = ''; - } - } - } - - if (ch === 0x5B /* '[' */) { - bracketDepth++; - } else if (ch === 0x5D /* ']' */ && - --bracketDepth === 0) { - break; - } - - name += advance(); - } - } - - skipWhiteSpace(last); - - if (index >= last || source.charCodeAt(index) !== 0x5D /* ']' */) { - // we never found a closing ']' - return null; - } - - // collect the last ']' - name += advance(); - } - - return name; - } - - function skipToTag() { - while (index < length && source.charCodeAt(index) !== 0x40 /* '@' */) { - advance(); - } - if (index >= length) { - return false; - } - utility.assert(source.charCodeAt(index) === 0x40 /* '@' */); - return true; - } - - function convertIndex(rangeIndex) { - if (source === originalSource) { - return rangeIndex; - } - return convertUnwrappedCommentIndex(originalSource, rangeIndex); - } - - function TagParser(options, title) { - this._options = options; - this._title = title.toLowerCase(); - this._tag = { - title: title, - description: null - }; - if (this._options.lineNumbers) { - this._tag.lineNumber = lineNumber; - } - this._first = index - title.length - 1; - this._last = 0; - // space to save special information for title parsers. - this._extra = { }; - } - - // addError(err, ...) - TagParser.prototype.addError = function addError(errorText) { - var args = Array.prototype.slice.call(arguments, 1), - msg = errorText.replace( - /%(\d)/g, - function (whole, index) { - utility.assert(index < args.length, 'Message reference must be in range'); - return args[index]; - } - ); - - if (!this._tag.errors) { - this._tag.errors = []; - } - if (strict) { - utility.throwError(msg); - } - this._tag.errors.push(msg); - return recoverable; - }; - - TagParser.prototype.parseType = function () { - // type required titles - if (isTypeParameterRequired(this._title)) { - try { - this._tag.type = parseType(this._title, this._last, this._options.range); - if (!this._tag.type) { - if (!isParamTitle(this._title) && !isReturnTitle(this._title)) { - if (!this.addError('Missing or invalid tag type')) { - return false; - } - } - } - } catch (error) { - this._tag.type = null; - if (!this.addError(error.message)) { - return false; - } - } - } else if (isAllowedType(this._title)) { - // optional types - try { - this._tag.type = parseType(this._title, this._last, this._options.range); - } catch (e) { - //For optional types, lets drop the thrown error when we hit the end of the file - } - } - return true; - }; - - TagParser.prototype._parseNamePath = function (optional) { - var name; - name = parseName(this._last, sloppy && isAllowedOptional(this._title), true); - if (!name) { - if (!optional) { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } - } - this._tag.name = name; - return true; - }; - - TagParser.prototype.parseNamePath = function () { - return this._parseNamePath(false); - }; - - TagParser.prototype.parseNamePathOptional = function () { - return this._parseNamePath(true); - }; - - - TagParser.prototype.parseName = function () { - var assign, name; - - // param, property requires name - if (isAllowedName(this._title)) { - this._tag.name = parseName(this._last, sloppy && isAllowedOptional(this._title), isAllowedNested(this._title)); - if (!this._tag.name) { - if (!isNameParameterRequired(this._title)) { - return true; - } - - // it's possible the name has already been parsed but interpreted as a type - // it's also possible this is a sloppy declaration, in which case it will be - // fixed at the end - if (isParamTitle(this._title) && this._tag.type && this._tag.type.name) { - this._extra.name = this._tag.type; - this._tag.name = this._tag.type.name; - this._tag.type = null; - } else { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } - } else { - name = this._tag.name; - if (name.charAt(0) === '[' && name.charAt(name.length - 1) === ']') { - // extract the default value if there is one - // example: @param {string} [somebody=John Doe] description - assign = name.substring(1, name.length - 1).split('='); - if (assign.length > 1) { - this._tag['default'] = assign.slice(1).join('='); - } - this._tag.name = assign[0]; - - // convert to an optional type - if (this._tag.type && this._tag.type.type !== 'OptionalType') { - this._tag.type = { - type: 'OptionalType', - expression: this._tag.type - }; - } - } - } - } - - - return true; - }; - - TagParser.prototype.parseDescription = function parseDescription() { - var description = sliceSource(source, index, this._last).trim(); - if (description) { - if ((/^-\s+/).test(description)) { - description = description.substring(2); - } - this._tag.description = description; - } - return true; - }; - - TagParser.prototype.parseCaption = function parseDescription() { - var description = sliceSource(source, index, this._last).trim(); - var captionStartTag = ''; - var captionEndTag = ''; - var captionStart = description.indexOf(captionStartTag); - var captionEnd = description.indexOf(captionEndTag); - if (captionStart >= 0 && captionEnd >= 0) { - this._tag.caption = description.substring( - captionStart + captionStartTag.length, captionEnd).trim(); - this._tag.description = description.substring(captionEnd + captionEndTag.length).trim(); - } else { - this._tag.description = description; - } - return true; - }; - - TagParser.prototype.parseKind = function parseKind() { - var kind, kinds; - kinds = { - 'class': true, - 'constant': true, - 'event': true, - 'external': true, - 'file': true, - 'function': true, - 'member': true, - 'mixin': true, - 'module': true, - 'namespace': true, - 'typedef': true - }; - kind = sliceSource(source, index, this._last).trim(); - this._tag.kind = kind; - if (!hasOwnProperty(kinds, kind)) { - if (!this.addError('Invalid kind name \'%0\'', kind)) { - return false; - } - } - return true; - }; - - TagParser.prototype.parseAccess = function parseAccess() { - var access; - access = sliceSource(source, index, this._last).trim(); - this._tag.access = access; - if (access !== 'private' && access !== 'protected' && access !== 'public') { - if (!this.addError('Invalid access name \'%0\'', access)) { - return false; - } - } - return true; - }; - - TagParser.prototype.parseThis = function parseThis() { - // this name may be a name expression (e.g. {foo.bar}), - // an union (e.g. {foo.bar|foo.baz}) or a name path (e.g. foo.bar) - var value = sliceSource(source, index, this._last).trim(); - if (value && value.charAt(0) === '{') { - var gotType = this.parseType(); - if (gotType && this._tag.type.type === 'NameExpression' || this._tag.type.type === 'UnionType') { - this._tag.name = this._tag.type.name; - return true; - } else { - return this.addError('Invalid name for this'); - } - } else { - return this.parseNamePath(); - } - }; - - TagParser.prototype.parseVariation = function parseVariation() { - var variation, text; - text = sliceSource(source, index, this._last).trim(); - variation = parseFloat(text, 10); - this._tag.variation = variation; - if (isNaN(variation)) { - if (!this.addError('Invalid variation \'%0\'', text)) { - return false; - } - } - return true; - }; - - TagParser.prototype.ensureEnd = function () { - var shouldBeEmpty = sliceSource(source, index, this._last).trim(); - if (shouldBeEmpty) { - if (!this.addError('Unknown content \'%0\'', shouldBeEmpty)) { - return false; - } - } - return true; - }; - - TagParser.prototype.epilogue = function epilogue() { - var description; - - description = this._tag.description; - // un-fix potentially sloppy declaration - if (isAllowedOptional(this._title) && !this._tag.type && description && description.charAt(0) === '[') { - this._tag.type = this._extra.name; - if (!this._tag.name) { - this._tag.name = undefined; - } - - if (!sloppy) { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } - } - - return true; - }; - - Rules = { - // http://usejsdoc.org/tags-access.html - 'access': ['parseAccess'], - // http://usejsdoc.org/tags-alias.html - 'alias': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-augments.html - 'augments': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-constructor.html - 'constructor': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-constructor.html - 'class': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-extends.html - 'extends': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-example.html - 'example': ['parseCaption'], - // http://usejsdoc.org/tags-deprecated.html - 'deprecated': ['parseDescription'], - // http://usejsdoc.org/tags-global.html - 'global': ['ensureEnd'], - // http://usejsdoc.org/tags-inner.html - 'inner': ['ensureEnd'], - // http://usejsdoc.org/tags-instance.html - 'instance': ['ensureEnd'], - // http://usejsdoc.org/tags-kind.html - 'kind': ['parseKind'], - // http://usejsdoc.org/tags-mixes.html - 'mixes': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-mixin.html - 'mixin': ['parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-member.html - 'member': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-method.html - 'method': ['parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-module.html - 'module': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-method.html - 'func': ['parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-method.html - 'function': ['parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-member.html - 'var': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-name.html - 'name': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-namespace.html - 'namespace': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-private.html - 'private': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-protected.html - 'protected': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-public.html - 'public': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-readonly.html - 'readonly': ['ensureEnd'], - // http://usejsdoc.org/tags-requires.html - 'requires': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-since.html - 'since': ['parseDescription'], - // http://usejsdoc.org/tags-static.html - 'static': ['ensureEnd'], - // http://usejsdoc.org/tags-summary.html - 'summary': ['parseDescription'], - // http://usejsdoc.org/tags-this.html - 'this': ['parseThis', 'ensureEnd'], - // http://usejsdoc.org/tags-todo.html - 'todo': ['parseDescription'], - // http://usejsdoc.org/tags-typedef.html - 'typedef': ['parseType', 'parseNamePathOptional'], - // http://usejsdoc.org/tags-variation.html - 'variation': ['parseVariation'], - // http://usejsdoc.org/tags-version.html - 'version': ['parseDescription'] - }; - - TagParser.prototype.parse = function parse() { - var i, iz, sequences, method; - - - // empty title - if (!this._title) { - if (!this.addError('Missing or invalid title')) { - return null; - } - } - - // Seek to content last index. - this._last = seekContent(this._title); - - if (this._options.range) { - this._tag.range = [this._first, source.slice(0, this._last).replace(/\s*$/, '').length].map(convertIndex); - } - - if (hasOwnProperty(Rules, this._title)) { - sequences = Rules[this._title]; - } else { - // default sequences - sequences = ['parseType', 'parseName', 'parseDescription', 'epilogue']; - } - - for (i = 0, iz = sequences.length; i < iz; ++i) { - method = sequences[i]; - if (!this[method]()) { - return null; - } - } - - return this._tag; - }; - - function parseTag(options) { - var title, parser, tag; - - // skip to tag - if (!skipToTag()) { - return null; - } - - // scan title - title = scanTitle(); - - // construct tag parser - parser = new TagParser(options, title); - tag = parser.parse(); - - // Seek global index to end of this tag. - while (index < parser._last) { - advance(); - } - - return tag; - } - - // - // Parse JSDoc - // - - function scanJSDocDescription(preserveWhitespace) { - var description = '', ch, atAllowed; - - atAllowed = true; - while (index < length) { - ch = source.charCodeAt(index); - - if (atAllowed && ch === 0x40 /* '@' */) { - break; - } - - if (esutils.code.isLineTerminator(ch)) { - atAllowed = true; - } else if (atAllowed && !esutils.code.isWhiteSpace(ch)) { - atAllowed = false; - } - - description += advance(); - } - - return preserveWhitespace ? description : description.trim(); - } - - function parse(comment, options) { - var tags = [], tag, description, interestingTags, i, iz; - - if (options === undefined) { - options = {}; - } - - if (typeof options.unwrap === 'boolean' && options.unwrap) { - source = unwrapComment(comment); - } else { - source = comment; - } - - originalSource = comment; - - // array of relevant tags - if (options.tags) { - if (Array.isArray(options.tags)) { - interestingTags = { }; - for (i = 0, iz = options.tags.length; i < iz; i++) { - if (typeof options.tags[i] === 'string') { - interestingTags[options.tags[i]] = true; - } else { - utility.throwError('Invalid "tags" parameter: ' + options.tags); - } - } - } else { - utility.throwError('Invalid "tags" parameter: ' + options.tags); - } - } - - length = source.length; - index = 0; - lineNumber = 0; - recoverable = options.recoverable; - sloppy = options.sloppy; - strict = options.strict; - - description = scanJSDocDescription(options.preserveWhitespace); - - while (true) { - tag = parseTag(options); - if (!tag) { - break; - } - if (!interestingTags || interestingTags.hasOwnProperty(tag.title)) { - tags.push(tag); - } - } - - return { - description: description, - tags: tags - }; - } - exports.parse = parse; - }(jsdoc = {})); - - exports.version = utility.VERSION; - exports.parse = jsdoc.parse; - exports.parseType = typed.parseType; - exports.parseParamType = typed.parseParamType; - exports.unwrapComment = unwrapComment; - exports.Syntax = shallowCopy(typed.Syntax); - exports.Error = utility.DoctrineError; - exports.type = { - Syntax: exports.Syntax, - parseType: typed.parseType, - parseParamType: typed.parseParamType, - stringify: typed.stringify - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/lib/typed.js b/node_modules/doctrine/lib/typed.js deleted file mode 100644 index bdd3c394..00000000 --- a/node_modules/doctrine/lib/typed.js +++ /dev/null @@ -1,1305 +0,0 @@ -/* - * @fileoverview Type expression parser. - * @author Yusuke Suzuki - * @author Dan Tao - * @author Andrew Eisenberg - */ - -// "typed", the Type Expression Parser for doctrine. - -(function () { - 'use strict'; - - var Syntax, - Token, - source, - length, - index, - previous, - token, - value, - esutils, - utility, - rangeOffset, - addRange; - - esutils = require('esutils'); - utility = require('./utility'); - - Syntax = { - NullableLiteral: 'NullableLiteral', - AllLiteral: 'AllLiteral', - NullLiteral: 'NullLiteral', - UndefinedLiteral: 'UndefinedLiteral', - VoidLiteral: 'VoidLiteral', - UnionType: 'UnionType', - ArrayType: 'ArrayType', - RecordType: 'RecordType', - FieldType: 'FieldType', - FunctionType: 'FunctionType', - ParameterType: 'ParameterType', - RestType: 'RestType', - NonNullableType: 'NonNullableType', - OptionalType: 'OptionalType', - NullableType: 'NullableType', - NameExpression: 'NameExpression', - TypeApplication: 'TypeApplication', - StringLiteralType: 'StringLiteralType', - NumericLiteralType: 'NumericLiteralType', - BooleanLiteralType: 'BooleanLiteralType' - }; - - Token = { - ILLEGAL: 0, // ILLEGAL - DOT_LT: 1, // .< - REST: 2, // ... - LT: 3, // < - GT: 4, // > - LPAREN: 5, // ( - RPAREN: 6, // ) - LBRACE: 7, // { - RBRACE: 8, // } - LBRACK: 9, // [ - RBRACK: 10, // ] - COMMA: 11, // , - COLON: 12, // : - STAR: 13, // * - PIPE: 14, // | - QUESTION: 15, // ? - BANG: 16, // ! - EQUAL: 17, // = - NAME: 18, // name token - STRING: 19, // string - NUMBER: 20, // number - EOF: 21 - }; - - function isTypeName(ch) { - return '><(){}[],:*|?!='.indexOf(String.fromCharCode(ch)) === -1 && !esutils.code.isWhiteSpace(ch) && !esutils.code.isLineTerminator(ch); - } - - function Context(previous, index, token, value) { - this._previous = previous; - this._index = index; - this._token = token; - this._value = value; - } - - Context.prototype.restore = function () { - previous = this._previous; - index = this._index; - token = this._token; - value = this._value; - }; - - Context.save = function () { - return new Context(previous, index, token, value); - }; - - function maybeAddRange(node, range) { - if (addRange) { - node.range = [range[0] + rangeOffset, range[1] + rangeOffset]; - } - return node; - } - - function advance() { - var ch = source.charAt(index); - index += 1; - return ch; - } - - function scanHexEscape(prefix) { - var i, len, ch, code = 0; - - len = (prefix === 'u') ? 4 : 2; - for (i = 0; i < len; ++i) { - if (index < length && esutils.code.isHexDigit(source.charCodeAt(index))) { - ch = advance(); - code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase()); - } else { - return ''; - } - } - return String.fromCharCode(code); - } - - function scanString() { - var str = '', quote, ch, code, unescaped, restore; //TODO review removal octal = false - quote = source.charAt(index); - ++index; - - while (index < length) { - ch = advance(); - - if (ch === quote) { - quote = ''; - break; - } else if (ch === '\\') { - ch = advance(); - if (!esutils.code.isLineTerminator(ch.charCodeAt(0))) { - switch (ch) { - case 'n': - str += '\n'; - break; - case 'r': - str += '\r'; - break; - case 't': - str += '\t'; - break; - case 'u': - case 'x': - restore = index; - unescaped = scanHexEscape(ch); - if (unescaped) { - str += unescaped; - } else { - index = restore; - str += ch; - } - break; - case 'b': - str += '\b'; - break; - case 'f': - str += '\f'; - break; - case 'v': - str += '\v'; - break; - - default: - if (esutils.code.isOctalDigit(ch.charCodeAt(0))) { - code = '01234567'.indexOf(ch); - - // \0 is not octal escape sequence - // Deprecating unused code. TODO review removal - //if (code !== 0) { - // octal = true; - //} - - if (index < length && esutils.code.isOctalDigit(source.charCodeAt(index))) { - //TODO Review Removal octal = true; - code = code * 8 + '01234567'.indexOf(advance()); - - // 3 digits are only allowed when string starts - // with 0, 1, 2, 3 - if ('0123'.indexOf(ch) >= 0 && - index < length && - esutils.code.isOctalDigit(source.charCodeAt(index))) { - code = code * 8 + '01234567'.indexOf(advance()); - } - } - str += String.fromCharCode(code); - } else { - str += ch; - } - break; - } - } else { - if (ch === '\r' && source.charCodeAt(index) === 0x0A /* '\n' */) { - ++index; - } - } - } else if (esutils.code.isLineTerminator(ch.charCodeAt(0))) { - break; - } else { - str += ch; - } - } - - if (quote !== '') { - utility.throwError('unexpected quote'); - } - - value = str; - return Token.STRING; - } - - function scanNumber() { - var number, ch; - - number = ''; - ch = source.charCodeAt(index); - - if (ch !== 0x2E /* '.' */) { - number = advance(); - ch = source.charCodeAt(index); - - if (number === '0') { - if (ch === 0x78 /* 'x' */ || ch === 0x58 /* 'X' */) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isHexDigit(ch)) { - break; - } - number += advance(); - } - - if (number.length <= 2) { - // only 0x - utility.throwError('unexpected token'); - } - - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch)) { - utility.throwError('unexpected token'); - } - } - value = parseInt(number, 16); - return Token.NUMBER; - } - - if (esutils.code.isOctalDigit(ch)) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isOctalDigit(ch)) { - break; - } - number += advance(); - } - - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch) || esutils.code.isDecimalDigit(ch)) { - utility.throwError('unexpected token'); - } - } - value = parseInt(number, 8); - return Token.NUMBER; - } - - if (esutils.code.isDecimalDigit(ch)) { - utility.throwError('unexpected token'); - } - } - - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; - } - number += advance(); - } - } - - if (ch === 0x2E /* '.' */) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; - } - number += advance(); - } - } - - if (ch === 0x65 /* 'e' */ || ch === 0x45 /* 'E' */) { - number += advance(); - - ch = source.charCodeAt(index); - if (ch === 0x2B /* '+' */ || ch === 0x2D /* '-' */) { - number += advance(); - } - - ch = source.charCodeAt(index); - if (esutils.code.isDecimalDigit(ch)) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; - } - number += advance(); - } - } else { - utility.throwError('unexpected token'); - } - } - - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch)) { - utility.throwError('unexpected token'); - } - } - - value = parseFloat(number); - return Token.NUMBER; - } - - - function scanTypeName() { - var ch, ch2; - - value = advance(); - while (index < length && isTypeName(source.charCodeAt(index))) { - ch = source.charCodeAt(index); - if (ch === 0x2E /* '.' */) { - if ((index + 1) >= length) { - return Token.ILLEGAL; - } - ch2 = source.charCodeAt(index + 1); - if (ch2 === 0x3C /* '<' */) { - break; - } - } - value += advance(); - } - return Token.NAME; - } - - function next() { - var ch; - - previous = index; - - while (index < length && esutils.code.isWhiteSpace(source.charCodeAt(index))) { - advance(); - } - if (index >= length) { - token = Token.EOF; - return token; - } - - ch = source.charCodeAt(index); - switch (ch) { - case 0x27: /* ''' */ - case 0x22: /* '"' */ - token = scanString(); - return token; - - case 0x3A: /* ':' */ - advance(); - token = Token.COLON; - return token; - - case 0x2C: /* ',' */ - advance(); - token = Token.COMMA; - return token; - - case 0x28: /* '(' */ - advance(); - token = Token.LPAREN; - return token; - - case 0x29: /* ')' */ - advance(); - token = Token.RPAREN; - return token; - - case 0x5B: /* '[' */ - advance(); - token = Token.LBRACK; - return token; - - case 0x5D: /* ']' */ - advance(); - token = Token.RBRACK; - return token; - - case 0x7B: /* '{' */ - advance(); - token = Token.LBRACE; - return token; - - case 0x7D: /* '}' */ - advance(); - token = Token.RBRACE; - return token; - - case 0x2E: /* '.' */ - if (index + 1 < length) { - ch = source.charCodeAt(index + 1); - if (ch === 0x3C /* '<' */) { - advance(); // '.' - advance(); // '<' - token = Token.DOT_LT; - return token; - } - - if (ch === 0x2E /* '.' */ && index + 2 < length && source.charCodeAt(index + 2) === 0x2E /* '.' */) { - advance(); // '.' - advance(); // '.' - advance(); // '.' - token = Token.REST; - return token; - } - - if (esutils.code.isDecimalDigit(ch)) { - token = scanNumber(); - return token; - } - } - token = Token.ILLEGAL; - return token; - - case 0x3C: /* '<' */ - advance(); - token = Token.LT; - return token; - - case 0x3E: /* '>' */ - advance(); - token = Token.GT; - return token; - - case 0x2A: /* '*' */ - advance(); - token = Token.STAR; - return token; - - case 0x7C: /* '|' */ - advance(); - token = Token.PIPE; - return token; - - case 0x3F: /* '?' */ - advance(); - token = Token.QUESTION; - return token; - - case 0x21: /* '!' */ - advance(); - token = Token.BANG; - return token; - - case 0x3D: /* '=' */ - advance(); - token = Token.EQUAL; - return token; - - case 0x2D: /* '-' */ - token = scanNumber(); - return token; - - default: - if (esutils.code.isDecimalDigit(ch)) { - token = scanNumber(); - return token; - } - - // type string permits following case, - // - // namespace.module.MyClass - // - // this reduced 1 token TK_NAME - utility.assert(isTypeName(ch)); - token = scanTypeName(); - return token; - } - } - - function consume(target, text) { - utility.assert(token === target, text || 'consumed token not matched'); - next(); - } - - function expect(target, message) { - if (token !== target) { - utility.throwError(message || 'unexpected token'); - } - next(); - } - - // UnionType := '(' TypeUnionList ')' - // - // TypeUnionList := - // <> - // | NonemptyTypeUnionList - // - // NonemptyTypeUnionList := - // TypeExpression - // | TypeExpression '|' NonemptyTypeUnionList - function parseUnionType() { - var elements, startIndex = index - 1; - consume(Token.LPAREN, 'UnionType should start with ('); - elements = []; - if (token !== Token.RPAREN) { - while (true) { - elements.push(parseTypeExpression()); - if (token === Token.RPAREN) { - break; - } - expect(Token.PIPE); - } - } - consume(Token.RPAREN, 'UnionType should end with )'); - return maybeAddRange({ - type: Syntax.UnionType, - elements: elements - }, [startIndex, previous]); - } - - // ArrayType := '[' ElementTypeList ']' - // - // ElementTypeList := - // <> - // | TypeExpression - // | '...' TypeExpression - // | TypeExpression ',' ElementTypeList - function parseArrayType() { - var elements, startIndex = index - 1, restStartIndex; - consume(Token.LBRACK, 'ArrayType should start with ['); - elements = []; - while (token !== Token.RBRACK) { - if (token === Token.REST) { - restStartIndex = index - 3; - consume(Token.REST); - elements.push(maybeAddRange({ - type: Syntax.RestType, - expression: parseTypeExpression() - }, [restStartIndex, previous])); - break; - } else { - elements.push(parseTypeExpression()); - } - if (token !== Token.RBRACK) { - expect(Token.COMMA); - } - } - expect(Token.RBRACK); - return maybeAddRange({ - type: Syntax.ArrayType, - elements: elements - }, [startIndex, previous]); - } - - function parseFieldName() { - var v = value; - if (token === Token.NAME || token === Token.STRING) { - next(); - return v; - } - - if (token === Token.NUMBER) { - consume(Token.NUMBER); - return String(v); - } - - utility.throwError('unexpected token'); - } - - // FieldType := - // FieldName - // | FieldName ':' TypeExpression - // - // FieldName := - // NameExpression - // | StringLiteral - // | NumberLiteral - // | ReservedIdentifier - function parseFieldType() { - var key, rangeStart = previous; - - key = parseFieldName(); - if (token === Token.COLON) { - consume(Token.COLON); - return maybeAddRange({ - type: Syntax.FieldType, - key: key, - value: parseTypeExpression() - }, [rangeStart, previous]); - } - return maybeAddRange({ - type: Syntax.FieldType, - key: key, - value: null - }, [rangeStart, previous]); - } - - // RecordType := '{' FieldTypeList '}' - // - // FieldTypeList := - // <> - // | FieldType - // | FieldType ',' FieldTypeList - function parseRecordType() { - var fields, rangeStart = index - 1, rangeEnd; - - consume(Token.LBRACE, 'RecordType should start with {'); - fields = []; - if (token === Token.COMMA) { - consume(Token.COMMA); - } else { - while (token !== Token.RBRACE) { - fields.push(parseFieldType()); - if (token !== Token.RBRACE) { - expect(Token.COMMA); - } - } - } - rangeEnd = index; - expect(Token.RBRACE); - return maybeAddRange({ - type: Syntax.RecordType, - fields: fields - }, [rangeStart, rangeEnd]); - } - - // NameExpression := - // Identifier - // | TagIdentifier ':' Identifier - // - // Tag identifier is one of "module", "external" or "event" - // Identifier is the same as Token.NAME, including any dots, something like - // namespace.module.MyClass - function parseNameExpression() { - var name = value, rangeStart = index - name.length; - expect(Token.NAME); - - if (token === Token.COLON && ( - name === 'module' || - name === 'external' || - name === 'event')) { - consume(Token.COLON); - name += ':' + value; - expect(Token.NAME); - } - - return maybeAddRange({ - type: Syntax.NameExpression, - name: name - }, [rangeStart, previous]); - } - - // TypeExpressionList := - // TopLevelTypeExpression - // | TopLevelTypeExpression ',' TypeExpressionList - function parseTypeExpressionList() { - var elements = []; - - elements.push(parseTop()); - while (token === Token.COMMA) { - consume(Token.COMMA); - elements.push(parseTop()); - } - return elements; - } - - // TypeName := - // NameExpression - // | NameExpression TypeApplication - // - // TypeApplication := - // '.<' TypeExpressionList '>' - // | '<' TypeExpressionList '>' // this is extension of doctrine - function parseTypeName() { - var expr, applications, startIndex = index - value.length; - - expr = parseNameExpression(); - if (token === Token.DOT_LT || token === Token.LT) { - next(); - applications = parseTypeExpressionList(); - expect(Token.GT); - return maybeAddRange({ - type: Syntax.TypeApplication, - expression: expr, - applications: applications - }, [startIndex, previous]); - } - return expr; - } - - // ResultType := - // <> - // | ':' void - // | ':' TypeExpression - // - // BNF is above - // but, we remove <> pattern, so token is always TypeToken::COLON - function parseResultType() { - consume(Token.COLON, 'ResultType should start with :'); - if (token === Token.NAME && value === 'void') { - consume(Token.NAME); - return { - type: Syntax.VoidLiteral - }; - } - return parseTypeExpression(); - } - - // ParametersType := - // RestParameterType - // | NonRestParametersType - // | NonRestParametersType ',' RestParameterType - // - // RestParameterType := - // '...' - // '...' Identifier - // - // NonRestParametersType := - // ParameterType ',' NonRestParametersType - // | ParameterType - // | OptionalParametersType - // - // OptionalParametersType := - // OptionalParameterType - // | OptionalParameterType, OptionalParametersType - // - // OptionalParameterType := ParameterType= - // - // ParameterType := TypeExpression | Identifier ':' TypeExpression - // - // Identifier is "new" or "this" - function parseParametersType() { - var params = [], optionalSequence = false, expr, rest = false, startIndex, restStartIndex = index - 3, nameStartIndex; - - while (token !== Token.RPAREN) { - if (token === Token.REST) { - // RestParameterType - consume(Token.REST); - rest = true; - } - - startIndex = previous; - - expr = parseTypeExpression(); - if (expr.type === Syntax.NameExpression && token === Token.COLON) { - nameStartIndex = previous - expr.name.length; - // Identifier ':' TypeExpression - consume(Token.COLON); - expr = maybeAddRange({ - type: Syntax.ParameterType, - name: expr.name, - expression: parseTypeExpression() - }, [nameStartIndex, previous]); - } - if (token === Token.EQUAL) { - consume(Token.EQUAL); - expr = maybeAddRange({ - type: Syntax.OptionalType, - expression: expr - }, [startIndex, previous]); - optionalSequence = true; - } else { - if (optionalSequence) { - utility.throwError('unexpected token'); - } - } - if (rest) { - expr = maybeAddRange({ - type: Syntax.RestType, - expression: expr - }, [restStartIndex, previous]); - } - params.push(expr); - if (token !== Token.RPAREN) { - expect(Token.COMMA); - } - } - return params; - } - - // FunctionType := 'function' FunctionSignatureType - // - // FunctionSignatureType := - // | TypeParameters '(' ')' ResultType - // | TypeParameters '(' ParametersType ')' ResultType - // | TypeParameters '(' 'this' ':' TypeName ')' ResultType - // | TypeParameters '(' 'this' ':' TypeName ',' ParametersType ')' ResultType - function parseFunctionType() { - var isNew, thisBinding, params, result, fnType, startIndex = index - value.length; - utility.assert(token === Token.NAME && value === 'function', 'FunctionType should start with \'function\''); - consume(Token.NAME); - - // Google Closure Compiler is not implementing TypeParameters. - // So we do not. if we don't get '(', we see it as error. - expect(Token.LPAREN); - - isNew = false; - params = []; - thisBinding = null; - if (token !== Token.RPAREN) { - // ParametersType or 'this' - if (token === Token.NAME && - (value === 'this' || value === 'new')) { - // 'this' or 'new' - // 'new' is Closure Compiler extension - isNew = value === 'new'; - consume(Token.NAME); - expect(Token.COLON); - thisBinding = parseTypeName(); - if (token === Token.COMMA) { - consume(Token.COMMA); - params = parseParametersType(); - } - } else { - params = parseParametersType(); - } - } - - expect(Token.RPAREN); - - result = null; - if (token === Token.COLON) { - result = parseResultType(); - } - - fnType = maybeAddRange({ - type: Syntax.FunctionType, - params: params, - result: result - }, [startIndex, previous]); - if (thisBinding) { - // avoid adding null 'new' and 'this' properties - fnType['this'] = thisBinding; - if (isNew) { - fnType['new'] = true; - } - } - return fnType; - } - - // BasicTypeExpression := - // '*' - // | 'null' - // | 'undefined' - // | TypeName - // | FunctionType - // | UnionType - // | RecordType - // | ArrayType - function parseBasicTypeExpression() { - var context, startIndex; - switch (token) { - case Token.STAR: - consume(Token.STAR); - return maybeAddRange({ - type: Syntax.AllLiteral - }, [previous - 1, previous]); - - case Token.LPAREN: - return parseUnionType(); - - case Token.LBRACK: - return parseArrayType(); - - case Token.LBRACE: - return parseRecordType(); - - case Token.NAME: - startIndex = index - value.length; - - if (value === 'null') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.NullLiteral - }, [startIndex, previous]); - } - - if (value === 'undefined') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.UndefinedLiteral - }, [startIndex, previous]); - } - - if (value === 'true' || value === 'false') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.BooleanLiteralType, - value: value === 'true' - }, [startIndex, previous]); - } - - context = Context.save(); - if (value === 'function') { - try { - return parseFunctionType(); - } catch (e) { - context.restore(); - } - } - - return parseTypeName(); - - case Token.STRING: - next(); - return maybeAddRange({ - type: Syntax.StringLiteralType, - value: value - }, [previous - value.length - 2, previous]); - - case Token.NUMBER: - next(); - return maybeAddRange({ - type: Syntax.NumericLiteralType, - value: value - }, [previous - String(value).length, previous]); - - default: - utility.throwError('unexpected token'); - } - } - - // TypeExpression := - // BasicTypeExpression - // | '?' BasicTypeExpression - // | '!' BasicTypeExpression - // | BasicTypeExpression '?' - // | BasicTypeExpression '!' - // | '?' - // | BasicTypeExpression '[]' - function parseTypeExpression() { - var expr, rangeStart; - - if (token === Token.QUESTION) { - rangeStart = index - 1; - consume(Token.QUESTION); - if (token === Token.COMMA || token === Token.EQUAL || token === Token.RBRACE || - token === Token.RPAREN || token === Token.PIPE || token === Token.EOF || - token === Token.RBRACK || token === Token.GT) { - return maybeAddRange({ - type: Syntax.NullableLiteral - }, [rangeStart, previous]); - } - return maybeAddRange({ - type: Syntax.NullableType, - expression: parseBasicTypeExpression(), - prefix: true - }, [rangeStart, previous]); - } else if (token === Token.BANG) { - rangeStart = index - 1; - consume(Token.BANG); - return maybeAddRange({ - type: Syntax.NonNullableType, - expression: parseBasicTypeExpression(), - prefix: true - }, [rangeStart, previous]); - } else { - rangeStart = previous; - } - - expr = parseBasicTypeExpression(); - if (token === Token.BANG) { - consume(Token.BANG); - return maybeAddRange({ - type: Syntax.NonNullableType, - expression: expr, - prefix: false - }, [rangeStart, previous]); - } - - if (token === Token.QUESTION) { - consume(Token.QUESTION); - return maybeAddRange({ - type: Syntax.NullableType, - expression: expr, - prefix: false - }, [rangeStart, previous]); - } - - if (token === Token.LBRACK) { - consume(Token.LBRACK); - expect(Token.RBRACK, 'expected an array-style type declaration (' + value + '[])'); - return maybeAddRange({ - type: Syntax.TypeApplication, - expression: maybeAddRange({ - type: Syntax.NameExpression, - name: 'Array' - }, [rangeStart, previous]), - applications: [expr] - }, [rangeStart, previous]); - } - - return expr; - } - - // TopLevelTypeExpression := - // TypeExpression - // | TypeUnionList - // - // This rule is Google Closure Compiler extension, not ES4 - // like, - // { number | string } - // If strict to ES4, we should write it as - // { (number|string) } - function parseTop() { - var expr, elements; - - expr = parseTypeExpression(); - if (token !== Token.PIPE) { - return expr; - } - - elements = [expr]; - consume(Token.PIPE); - while (true) { - elements.push(parseTypeExpression()); - if (token !== Token.PIPE) { - break; - } - consume(Token.PIPE); - } - - return maybeAddRange({ - type: Syntax.UnionType, - elements: elements - }, [0, index]); - } - - function parseTopParamType() { - var expr; - - if (token === Token.REST) { - consume(Token.REST); - return maybeAddRange({ - type: Syntax.RestType, - expression: parseTop() - }, [0, index]); - } - - expr = parseTop(); - if (token === Token.EQUAL) { - consume(Token.EQUAL); - return maybeAddRange({ - type: Syntax.OptionalType, - expression: expr - }, [0, index]); - } - - return expr; - } - - function parseType(src, opt) { - var expr; - - source = src; - length = source.length; - index = 0; - previous = 0; - addRange = opt && opt.range; - rangeOffset = opt && opt.startIndex || 0; - - next(); - expr = parseTop(); - - if (opt && opt.midstream) { - return { - expression: expr, - index: previous - }; - } - - if (token !== Token.EOF) { - utility.throwError('not reach to EOF'); - } - - return expr; - } - - function parseParamType(src, opt) { - var expr; - - source = src; - length = source.length; - index = 0; - previous = 0; - addRange = opt && opt.range; - rangeOffset = opt && opt.startIndex || 0; - - next(); - expr = parseTopParamType(); - - if (opt && opt.midstream) { - return { - expression: expr, - index: previous - }; - } - - if (token !== Token.EOF) { - utility.throwError('not reach to EOF'); - } - - return expr; - } - - function stringifyImpl(node, compact, topLevel) { - var result, i, iz; - - switch (node.type) { - case Syntax.NullableLiteral: - result = '?'; - break; - - case Syntax.AllLiteral: - result = '*'; - break; - - case Syntax.NullLiteral: - result = 'null'; - break; - - case Syntax.UndefinedLiteral: - result = 'undefined'; - break; - - case Syntax.VoidLiteral: - result = 'void'; - break; - - case Syntax.UnionType: - if (!topLevel) { - result = '('; - } else { - result = ''; - } - - for (i = 0, iz = node.elements.length; i < iz; ++i) { - result += stringifyImpl(node.elements[i], compact); - if ((i + 1) !== iz) { - result += compact ? '|' : ' | '; - } - } - - if (!topLevel) { - result += ')'; - } - break; - - case Syntax.ArrayType: - result = '['; - for (i = 0, iz = node.elements.length; i < iz; ++i) { - result += stringifyImpl(node.elements[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; - } - } - result += ']'; - break; - - case Syntax.RecordType: - result = '{'; - for (i = 0, iz = node.fields.length; i < iz; ++i) { - result += stringifyImpl(node.fields[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; - } - } - result += '}'; - break; - - case Syntax.FieldType: - if (node.value) { - result = node.key + (compact ? ':' : ': ') + stringifyImpl(node.value, compact); - } else { - result = node.key; - } - break; - - case Syntax.FunctionType: - result = compact ? 'function(' : 'function ('; - - if (node['this']) { - if (node['new']) { - result += (compact ? 'new:' : 'new: '); - } else { - result += (compact ? 'this:' : 'this: '); - } - - result += stringifyImpl(node['this'], compact); - - if (node.params.length !== 0) { - result += compact ? ',' : ', '; - } - } - - for (i = 0, iz = node.params.length; i < iz; ++i) { - result += stringifyImpl(node.params[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; - } - } - - result += ')'; - - if (node.result) { - result += (compact ? ':' : ': ') + stringifyImpl(node.result, compact); - } - break; - - case Syntax.ParameterType: - result = node.name + (compact ? ':' : ': ') + stringifyImpl(node.expression, compact); - break; - - case Syntax.RestType: - result = '...'; - if (node.expression) { - result += stringifyImpl(node.expression, compact); - } - break; - - case Syntax.NonNullableType: - if (node.prefix) { - result = '!' + stringifyImpl(node.expression, compact); - } else { - result = stringifyImpl(node.expression, compact) + '!'; - } - break; - - case Syntax.OptionalType: - result = stringifyImpl(node.expression, compact) + '='; - break; - - case Syntax.NullableType: - if (node.prefix) { - result = '?' + stringifyImpl(node.expression, compact); - } else { - result = stringifyImpl(node.expression, compact) + '?'; - } - break; - - case Syntax.NameExpression: - result = node.name; - break; - - case Syntax.TypeApplication: - result = stringifyImpl(node.expression, compact) + '.<'; - for (i = 0, iz = node.applications.length; i < iz; ++i) { - result += stringifyImpl(node.applications[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; - } - } - result += '>'; - break; - - case Syntax.StringLiteralType: - result = '"' + node.value + '"'; - break; - - case Syntax.NumericLiteralType: - result = String(node.value); - break; - - case Syntax.BooleanLiteralType: - result = String(node.value); - break; - - default: - utility.throwError('Unknown type ' + node.type); - } - - return result; - } - - function stringify(node, options) { - if (options == null) { - options = {}; - } - return stringifyImpl(node, options.compact, options.topLevel); - } - - exports.parseType = parseType; - exports.parseParamType = parseParamType; - exports.stringify = stringify; - exports.Syntax = Syntax; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/lib/utility.js b/node_modules/doctrine/lib/utility.js deleted file mode 100644 index 381580eb..00000000 --- a/node_modules/doctrine/lib/utility.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * @fileoverview Utilities for Doctrine - * @author Yusuke Suzuki - */ - - -(function () { - 'use strict'; - - var VERSION; - - VERSION = require('../package.json').version; - exports.VERSION = VERSION; - - function DoctrineError(message) { - this.name = 'DoctrineError'; - this.message = message; - } - DoctrineError.prototype = (function () { - var Middle = function () { }; - Middle.prototype = Error.prototype; - return new Middle(); - }()); - DoctrineError.prototype.constructor = DoctrineError; - exports.DoctrineError = DoctrineError; - - function throwError(message) { - throw new DoctrineError(message); - } - exports.throwError = throwError; - - exports.assert = require('assert'); -}()); - -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/package.json b/node_modules/doctrine/package.json deleted file mode 100644 index b6609986..00000000 --- a/node_modules/doctrine/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "doctrine", - "description": "JSDoc parser", - "homepage": "https://github.com/eslint/doctrine", - "main": "lib/doctrine.js", - "version": "3.0.0", - "engines": { - "node": ">=6.0.0" - }, - "directories": { - "lib": "./lib" - }, - "files": [ - "lib" - ], - "maintainers": [ - { - "name": "Nicholas C. Zakas", - "email": "nicholas+npm@nczconsulting.com", - "web": "https://www.nczonline.net" - }, - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "https://github.com/Constellation" - } - ], - "repository": "eslint/doctrine", - "devDependencies": { - "coveralls": "^3.0.1", - "dateformat": "^1.0.11", - "eslint": "^1.10.3", - "eslint-release": "^1.0.0", - "linefix": "^0.1.1", - "mocha": "^3.4.2", - "npm-license": "^0.3.1", - "nyc": "^10.3.2", - "semver": "^5.0.3", - "shelljs": "^0.5.3", - "shelljs-nodecli": "^0.1.1", - "should": "^5.0.1" - }, - "license": "Apache-2.0", - "scripts": { - "pretest": "npm run lint", - "test": "nyc mocha", - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "lint": "eslint lib/", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" - }, - "dependencies": { - "esutils": "^2.0.2" - } -} diff --git a/node_modules/eslint-plugin-github/README.md b/node_modules/eslint-plugin-github/README.md index c69717b4..b212e6cb 100644 --- a/node_modules/eslint-plugin-github/README.md +++ b/node_modules/eslint-plugin-github/README.md @@ -55,6 +55,11 @@ export default [ ] ``` +> [!NOTE] +> If you configured the `filenames/match-regex` rule, please note we have adapted the match regex rule into `eslint-plugin-github` as the original `eslint-filenames-plugin` is no longer maintained and needed an ESLint v9 update. Please update the name to `github/filenames-match-regex` and keep the same configuration. For e.g.: +> +> `'github/filenames-match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$']` + The available configs are: - `internal` @@ -120,6 +125,7 @@ This config will be interpreted in the following way: | [async-currenttarget](docs/rules/async-currenttarget.md) | disallow `event.currentTarget` calls inside of async functions | 🔍 | | | | [async-preventdefault](docs/rules/async-preventdefault.md) | disallow `event.preventDefault` calls inside of async functions | 🔍 | | | | [authenticity-token](docs/rules/authenticity-token.md) | disallow usage of CSRF tokens in JavaScript | 🔐 | | | +| [filenames-match-regex](docs/rules/filenames-match-regex.md) | ensure filenames match a regex naming convention | | | | | [get-attribute](docs/rules/get-attribute.md) | disallow wrong usage of attribute names | 🔍 | 🔧 | | | [js-class-name](docs/rules/js-class-name.md) | enforce a naming convention for js- prefixed classes | 🔐 | | | | [no-blur](docs/rules/no-blur.md) | disallow usage of `Element.prototype.blur()` | 🔍 | | | diff --git a/node_modules/eslint-plugin-github/lib/configs/flat/browser.js b/node_modules/eslint-plugin-github/lib/configs/flat/browser.js index 17f2b74c..67ba85fe 100644 --- a/node_modules/eslint-plugin-github/lib/configs/flat/browser.js +++ b/node_modules/eslint-plugin-github/lib/configs/flat/browser.js @@ -2,6 +2,7 @@ const globals = require('globals') const github = require('../../plugin') const importPlugin = require('eslint-plugin-import') const escompatPlugin = require('eslint-plugin-escompat') +const {fixupPluginRules} = require('@eslint/compat') module.exports = { ...escompatPlugin.configs['flat/recommended'], @@ -10,7 +11,7 @@ module.exports = { ...globals.browser, }, }, - plugins: {importPlugin, escompatPlugin, github}, + plugins: {importPlugin, escompatPlugin, github: fixupPluginRules(github)}, rules: { 'escompatPlugin/no-dynamic-imports': 'off', 'github/async-currenttarget': 'error', diff --git a/node_modules/eslint-plugin-github/lib/configs/flat/internal.js b/node_modules/eslint-plugin-github/lib/configs/flat/internal.js index e3aa8e43..0ce81f51 100644 --- a/node_modules/eslint-plugin-github/lib/configs/flat/internal.js +++ b/node_modules/eslint-plugin-github/lib/configs/flat/internal.js @@ -1,7 +1,8 @@ const github = require('../../plugin') +const {fixupPluginRules} = require('@eslint/compat') module.exports = { - plugins: {github}, + plugins: {github: fixupPluginRules(github)}, rules: { 'github/authenticity-token': 'error', 'github/js-class-name': 'error', diff --git a/node_modules/eslint-plugin-github/lib/configs/flat/react.js b/node_modules/eslint-plugin-github/lib/configs/flat/react.js index 8d2e0f80..497505fc 100644 --- a/node_modules/eslint-plugin-github/lib/configs/flat/react.js +++ b/node_modules/eslint-plugin-github/lib/configs/flat/react.js @@ -1,5 +1,6 @@ const github = require('../../plugin') const jsxA11yPlugin = require('eslint-plugin-jsx-a11y') +const {fixupPluginRules} = require('@eslint/compat') module.exports = { ...jsxA11yPlugin.flatConfigs.recommended, @@ -11,7 +12,7 @@ module.exports = { }, }, }, - plugins: {github, jsxA11yPlugin}, + plugins: {github: fixupPluginRules(github), jsxA11yPlugin}, rules: { 'jsxA11yPlugin/role-supports-aria-props': 'off', // Override with github/a11y-role-supports-aria-props until https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/910 is resolved 'github/a11y-aria-label-is-well-formatted': 'error', diff --git a/node_modules/eslint-plugin-github/lib/configs/flat/recommended.js b/node_modules/eslint-plugin-github/lib/configs/flat/recommended.js index 061260fa..31cb3400 100644 --- a/node_modules/eslint-plugin-github/lib/configs/flat/recommended.js +++ b/node_modules/eslint-plugin-github/lib/configs/flat/recommended.js @@ -3,7 +3,6 @@ const github = require('../../plugin') const prettierPlugin = require('eslint-plugin-prettier') const eslintComments = require('eslint-plugin-eslint-comments') const importPlugin = require('eslint-plugin-import') -const filenames = require('eslint-plugin-filenames') const i18nTextPlugin = require('eslint-plugin-i18n-text') const noOnlyTestsPlugin = require('eslint-plugin-no-only-tests') const {fixupPluginRules} = require('@eslint/compat') @@ -17,13 +16,12 @@ module.exports = { }, }, plugins: { - filenamesPlugin: fixupPluginRules(filenames), prettierPlugin, eslintComments, importPlugin, 'i18n-text': fixupPluginRules(i18nTextPlugin), noOnlyTestsPlugin, - github, + github: fixupPluginRules(github), }, rules: { 'constructor-super': 'error', @@ -34,7 +32,7 @@ module.exports = { 'eslintComments/no-unused-disable': 'error', 'eslintComments/no-unused-enable': 'error', 'eslintComments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}], - 'filenamesPlugin/match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'], + 'github/filenames-match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'], 'func-style': ['error', 'declaration', {allowArrowFunctions: true}], 'github/array-foreach': 'error', 'github/no-implicit-buggy-globals': 'error', diff --git a/node_modules/eslint-plugin-github/lib/configs/flat/typescript.js b/node_modules/eslint-plugin-github/lib/configs/flat/typescript.js index eb6b71fd..50cc6c05 100644 --- a/node_modules/eslint-plugin-github/lib/configs/flat/typescript.js +++ b/node_modules/eslint-plugin-github/lib/configs/flat/typescript.js @@ -2,12 +2,13 @@ const eslint = require('@eslint/js') const tseslint = require('typescript-eslint') const escompatPlugin = require('eslint-plugin-escompat') const github = require('../../plugin') +const {fixupPluginRules} = require('@eslint/compat') module.exports = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, { languageOptions: { parser: tseslint.parser, }, - plugins: {'@typescript-eslint': tseslint.plugin, escompatPlugin, github}, + plugins: {'@typescript-eslint': tseslint.plugin, escompatPlugin, github: fixupPluginRules(github)}, rules: { camelcase: 'off', 'no-unused-vars': 'off', diff --git a/node_modules/eslint-plugin-github/lib/plugin.js b/node_modules/eslint-plugin-github/lib/plugin.js index 3ed34175..eb25a25e 100644 --- a/node_modules/eslint-plugin-github/lib/plugin.js +++ b/node_modules/eslint-plugin-github/lib/plugin.js @@ -13,6 +13,7 @@ module.exports = { 'async-currenttarget': require('./rules/async-currenttarget'), 'async-preventdefault': require('./rules/async-preventdefault'), 'authenticity-token': require('./rules/authenticity-token'), + 'filenames-match-regex': require('./rules/filenames-match-regex'), 'get-attribute': require('./rules/get-attribute'), 'js-class-name': require('./rules/js-class-name'), 'no-blur': require('./rules/no-blur'), diff --git a/node_modules/eslint-plugin-github/lib/rules/filenames-match-regex.js b/node_modules/eslint-plugin-github/lib/rules/filenames-match-regex.js new file mode 100644 index 00000000..515887ea --- /dev/null +++ b/node_modules/eslint-plugin-github/lib/rules/filenames-match-regex.js @@ -0,0 +1,51 @@ +// This is adapted from https://github.com/selaux/eslint-plugin-filenames since it's no longer actively maintained +// and needed a fix for eslint v9 +const path = require('path') +const parseFilename = require('../utils/parse-filename') +const getExportedName = require('../utils/get-exported-name') +const isIgnoredFilename = require('../utils/is-ignored-filename') + +module.exports = { + meta: { + type: 'problem', + docs: { + description: 'ensure filenames match a regex naming convention', + url: require('../url')(module), + }, + schema: { + type: 'array', + minItems: 0, + maxItems: 1, + items: [ + { + type: 'string', + }, + ], + }, + }, + + create(context) { + const defaultRegexp = /^([a-z0-9]+)([A-Z][a-z0-9]+)*$/g + const conventionRegexp = context.options[0] ? new RegExp(context.options[0]) : defaultRegexp + const ignoreExporting = context.options[1] ? context.options[1] : false + + return { + Program(node) { + const filename = context.getFilename() + const absoluteFilename = path.resolve(filename) + const parsed = parseFilename(absoluteFilename) + const shouldIgnore = isIgnoredFilename(filename) + const isExporting = Boolean(getExportedName(node)) + const matchesRegex = conventionRegexp.test(parsed.name) + + if (shouldIgnore) return + if (ignoreExporting && isExporting) return + if (!matchesRegex) { + context.report(node, "Filename '{{name}}' does not match the regex naming convention.", { + name: parsed.base, + }) + } + }, + } + }, +} diff --git a/node_modules/eslint-plugin-github/lib/utils/get-exported-name.js b/node_modules/eslint-plugin-github/lib/utils/get-exported-name.js new file mode 100644 index 00000000..642f0a0c --- /dev/null +++ b/node_modules/eslint-plugin-github/lib/utils/get-exported-name.js @@ -0,0 +1,37 @@ +function getNodeName(node, options) { + const op = options || [] + + if (node.type === 'Identifier') { + return node.name + } + + if (node.id && node.id.type === 'Identifier') { + return node.id.name + } + + if (op[2] && node.type === 'CallExpression' && node.callee.type === 'Identifier') { + return node.callee.name + } +} + +module.exports = function getExportedName(programNode, options) { + for (let i = 0; i < programNode.body.length; i += 1) { + const node = programNode.body[i] + + if (node.type === 'ExportDefaultDeclaration') { + return getNodeName(node.declaration, options) + } + + if ( + node.type === 'ExpressionStatement' && + node.expression.type === 'AssignmentExpression' && + node.expression.left.type === 'MemberExpression' && + node.expression.left.object.type === 'Identifier' && + node.expression.left.object.name === 'module' && + node.expression.left.property.type === 'Identifier' && + node.expression.left.property.name === 'exports' + ) { + return getNodeName(node.expression.right, options) + } + } +} diff --git a/node_modules/eslint-plugin-github/lib/utils/is-ignored-filename.js b/node_modules/eslint-plugin-github/lib/utils/is-ignored-filename.js new file mode 100644 index 00000000..18f41153 --- /dev/null +++ b/node_modules/eslint-plugin-github/lib/utils/is-ignored-filename.js @@ -0,0 +1,5 @@ +const ignoredFilenames = ['', ''] + +module.exports = function isIgnoredFilename(filename) { + return ignoredFilenames.indexOf(filename) !== -1 +} diff --git a/node_modules/eslint-plugin-github/lib/utils/parse-filename.js b/node_modules/eslint-plugin-github/lib/utils/parse-filename.js new file mode 100644 index 00000000..ce589c71 --- /dev/null +++ b/node_modules/eslint-plugin-github/lib/utils/parse-filename.js @@ -0,0 +1,12 @@ +const path = require('path') + +module.exports = function parseFilename(filename) { + const ext = path.extname(filename) + + return { + dir: path.dirname(filename), + base: path.basename(filename), + ext, + name: path.basename(filename, ext), + } +} diff --git a/node_modules/eslint-plugin-github/node_modules/.bin/js-yaml b/node_modules/eslint-plugin-github/node_modules/.bin/js-yaml deleted file mode 120000 index 9dbd010d..00000000 --- a/node_modules/eslint-plugin-github/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/LICENSE b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/LICENSE deleted file mode 100644 index b607bb36..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright OpenJS Foundation and other contributors, - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/README.md b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/README.md deleted file mode 100644 index cdcf0a63..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# ESLintRC Library - -This repository contains the legacy ESLintRC configuration file format for ESLint. This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs. - -**Note:** This package is frozen except for critical bug fixes as ESLint moves to a new config system. - -## Installation - -You can install the package as follows: - -``` -npm install @eslint/eslintrc --save-dev - -# or - -yarn add @eslint/eslintrc -D -``` - -## Usage (ESM) - -The primary class in this package is `FlatCompat`, which is a utility to translate ESLintRC-style configs into flat configs. Here's how you use it inside of your `eslint.config.js` file: - -```js -import { FlatCompat } from "@eslint/eslintrc"; -import js from "@eslint/js"; -import path from "path"; -import { fileURLToPath } from "url"; - -// mimic CommonJS variables -- not needed if using CommonJS -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - -const compat = new FlatCompat({ - baseDirectory: __dirname, // optional; default: process.cwd() - resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional unless you're using "eslint:recommended" - allConfig: js.configs.all, // optional unless you're using "eslint:all" -}); - -export default [ - - // mimic ESLintRC-style extends - ...compat.extends("standard", "example", "plugin:react/recommended"), - - // mimic environments - ...compat.env({ - es2020: true, - node: true - }), - - // mimic plugins - ...compat.plugins("jsx-a11y", "react"), - - // translate an entire config - ...compat.config({ - plugins: ["jsx-a11y", "react"], - extends: "standard", - env: { - es2020: true, - node: true - }, - rules: { - semi: "error" - } - }) -]; -``` - -## Usage (CommonJS) - -Using `FlatCompat` in CommonJS files is similar to ESM, but you'll use `require()` and `module.exports` instead of `import` and `export`. Here's how you use it inside of your `eslint.config.js` CommonJS file: - -```js -const { FlatCompat } = require("@eslint/eslintrc"); -const js = require("@eslint/js"); - -const compat = new FlatCompat({ - baseDirectory: __dirname, // optional; default: process.cwd() - resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional unless using "eslint:recommended" - allConfig: js.configs.all, // optional unless using "eslint:all" -}); - -module.exports = [ - - // mimic ESLintRC-style extends - ...compat.extends("standard", "example", "plugin:react/recommended"), - - // mimic environments - ...compat.env({ - es2020: true, - node: true - }), - - // mimic plugins - ...compat.plugins("jsx-a11y", "react"), - - // translate an entire config - ...compat.config({ - plugins: ["jsx-a11y", "react"], - extends: "standard", - env: { - es2020: true, - node: true - }, - rules: { - semi: "error" - } - }) -]; -``` - -## Troubleshooting - -**TypeError: Missing parameter 'recommendedConfig' in FlatCompat constructor** - -The `recommendedConfig` option is required when any config uses `eslint:recommended`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:recommended` config. - -**TypeError: Missing parameter 'allConfig' in FlatCompat constructor** - -The `allConfig` option is required when any config uses `eslint:all`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:all` config. - - -## License - -MIT License diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/config-schema.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/config-schema.js deleted file mode 100644 index ada90e13..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/config-schema.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -export default configSchema; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/environments.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/environments.js deleted file mode 100644 index 50d1b1d1..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/conf/environments.js +++ /dev/null @@ -1,215 +0,0 @@ -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import globals from "globals"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -export default new Map(Object.entries({ - - // Language - builtin: { - globals: globals.es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals.browser - }, - node: { - globals: globals.node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals["shared-node-browser"] - }, - worker: { - globals: globals.worker - }, - serviceworker: { - globals: globals.serviceworker - }, - - // Frameworks - commonjs: { - globals: globals.commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals.amd - }, - mocha: { - globals: globals.mocha - }, - jasmine: { - globals: globals.jasmine - }, - jest: { - globals: globals.jest - }, - phantomjs: { - globals: globals.phantomjs - }, - jquery: { - globals: globals.jquery - }, - qunit: { - globals: globals.qunit - }, - prototypejs: { - globals: globals.prototypejs - }, - shelljs: { - globals: globals.shelljs - }, - meteor: { - globals: globals.meteor - }, - mongo: { - globals: globals.mongo - }, - protractor: { - globals: globals.protractor - }, - applescript: { - globals: globals.applescript - }, - nashorn: { - globals: globals.nashorn - }, - atomtest: { - globals: globals.atomtest - }, - embertest: { - globals: globals.embertest - }, - webextensions: { - globals: globals.webextensions - }, - greasemonkey: { - globals: globals.greasemonkey - } -})); diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs deleted file mode 100644 index c0414cfd..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +++ /dev/null @@ -1,1203 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var util = require('util'); -var path = require('path'); -var Ajv = require('ajv'); -var globals = require('globals'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Applies default rule options - * @author JoshuaKGoldberg - */ - -/** - * Check if the variable contains an object strictly rejecting arrays - * @param {unknown} value an object - * @returns {boolean} Whether value is an object - */ -function isObjectNotArray(value) { - return typeof value === "object" && value !== null && !Array.isArray(value); -} - -/** - * Deeply merges second on top of first, creating a new {} object if needed. - * @param {T} first Base, default value. - * @param {U} second User-specified value. - * @returns {T | U | (T & U)} Merged equivalent of second on top of first. - */ -function deepMergeObjects(first, second) { - if (second === void 0) { - return first; - } - - if (!isObjectNotArray(first) || !isObjectNotArray(second)) { - return second; - } - - const result = { ...first, ...second }; - - for (const key of Object.keys(second)) { - if (Object.prototype.propertyIsEnumerable.call(first, key)) { - result[key] = deepMergeObjects(first[key], second[key]); - } - } - - return result; -} - -/** - * Deeply merges second on top of first, creating a new [] array if needed. - * @param {T[] | undefined} first Base, default values. - * @param {U[] | undefined} second User-specified values. - * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first. - */ -function deepMergeArrays(first, second) { - if (!first || !second) { - return second || first || []; - } - - return [ - ...first.map((value, i) => deepMergeObjects(value, second[i])), - ...second.slice(first.length) - ]; -} - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); - - validateRule(mergedOptions); - - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - environments, - - // shared - ConfigOps, - ConfigValidator, - naming -}; - -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc-universal.cjs.map diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map deleted file mode 100644 index c1c84999..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc-universal.cjs","sources":["../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../lib/shared/deep-merge-arrays.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/index-universal.js"],"sourcesContent":["/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Applies default rule options\n * @author JoshuaKGoldberg\n */\n\n/**\n * Check if the variable contains an object strictly rejecting arrays\n * @param {unknown} value an object\n * @returns {boolean} Whether value is an object\n */\nfunction isObjectNotArray(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\n/**\n * Deeply merges second on top of first, creating a new {} object if needed.\n * @param {T} first Base, default value.\n * @param {U} second User-specified value.\n * @returns {T | U | (T & U)} Merged equivalent of second on top of first.\n */\nfunction deepMergeObjects(first, second) {\n if (second === void 0) {\n return first;\n }\n\n if (!isObjectNotArray(first) || !isObjectNotArray(second)) {\n return second;\n }\n\n const result = { ...first, ...second };\n\n for (const key of Object.keys(second)) {\n if (Object.prototype.propertyIsEnumerable.call(first, key)) {\n result[key] = deepMergeObjects(first[key], second[key]);\n }\n }\n\n return result;\n}\n\n/**\n * Deeply merges second on top of first, creating a new [] array if needed.\n * @param {T[] | undefined} first Base, default values.\n * @param {U[] | undefined} second User-specified values.\n * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first.\n */\nfunction deepMergeArrays(first, second) {\n if (!first || !second) {\n return second || first || [];\n }\n\n return [\n ...first.map((value, i) => deepMergeObjects(value, second[i])),\n ...second.slice(first.length)\n ];\n}\n\nexport { deepMergeArrays };\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport { deepMergeArrays } from \"./deep-merge-arrays.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);\n\n validateRule(mergedOptions);\n\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n naming\n};\n\nexport {\n Legacy\n};\n"],"names":["path","Ajv","globals","util","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;AACtD,IAAI,aAAa,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK;AACxE,QAAQ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC3B,QAAQ,OAAO,GAAG,CAAC;AACnB,KAAK,EAAE,EAAE,CAAC;AACV,IAAI,gBA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UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACjF;AACA,QAAQ,IAAI,WAAW,EAAE;AACzB,YAAY,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AAClC,SAAS;AACT;AACA,QAAQ,WAAW,GAAG,IAAI,MAAM,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAClF,QAAQ,IAAI,WAAW,EAAE;AACzB,YAAY,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,SAAS;AACT,KAAK,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE;AAClD,QAAQ,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjD,KAAK;AACL;AACA,IAAI,OAAO,QAAQ,CAAC;AACpB,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,IAAI,EAAE;AACpC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAC9C;AACA,IAAI,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACjC;;;;;;;;;ACrFA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,MAAM;AACV;;;;"} \ No newline at end of file diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs deleted file mode 100644 index 756320f5..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +++ /dev/null @@ -1,4431 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var debugOrig = require('debug'); -var fs = require('fs'); -var importFresh = require('import-fresh'); -var Module = require('module'); -var path = require('path'); -var stripComments = require('strip-json-comments'); -var assert = require('assert'); -var ignore = require('ignore'); -var util = require('util'); -var minimatch = require('minimatch'); -var Ajv = require('ajv'); -var globals = require('globals'); -var os = require('os'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var debugOrig__default = /*#__PURE__*/_interopDefaultLegacy(debugOrig); -var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); -var importFresh__default = /*#__PURE__*/_interopDefaultLegacy(importFresh); -var Module__default = /*#__PURE__*/_interopDefaultLegacy(Module); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var stripComments__default = /*#__PURE__*/_interopDefaultLegacy(stripComments); -var assert__default = /*#__PURE__*/_interopDefaultLegacy(assert); -var ignore__default = /*#__PURE__*/_interopDefaultLegacy(ignore); -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var minimatch__default = /*#__PURE__*/_interopDefaultLegacy(minimatch); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); -var os__default = /*#__PURE__*/_interopDefaultLegacy(os); - -/** - * @fileoverview `IgnorePattern` class. - * - * `IgnorePattern` class has the set of glob patterns and the base path. - * - * It provides two static methods. - * - * - `IgnorePattern.createDefaultIgnore(cwd)` - * Create the default predicate function. - * - `IgnorePattern.createIgnore(ignorePatterns)` - * Create the predicate function from multiple `IgnorePattern` objects. - * - * It provides two properties and a method. - * - * - `patterns` - * The glob patterns that ignore to lint. - * - `basePath` - * The base path of the glob patterns. If absolute paths existed in the - * glob patterns, those are handled as relative paths to the base path. - * - `getPatternsRelativeTo(basePath)` - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * - * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes - * `ignorePatterns` properties. - * - * @author Toru Nagashima - */ - -const debug$3 = debugOrig__default["default"]("eslintrc:ignore-pattern"); - -/** @typedef {ReturnType} Ignore */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the path to the common ancestor directory of given paths. - * @param {string[]} sourcePaths The paths to calculate the common ancestor. - * @returns {string} The path to the common ancestor directory. - */ -function getCommonAncestorPath(sourcePaths) { - let result = sourcePaths[0]; - - for (let i = 1; i < sourcePaths.length; ++i) { - const a = result; - const b = sourcePaths[i]; - - // Set the shorter one (it's the common ancestor if one includes the other). - result = a.length < b.length ? a : b; - - // Set the common ancestor. - for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) { - if (a[j] !== b[j]) { - result = a.slice(0, lastSepPos); - break; - } - if (a[j] === path__default["default"].sep) { - lastSepPos = j; - } - } - } - - let resolvedResult = result || path__default["default"].sep; - - // if Windows common ancestor is root of drive must have trailing slash to be absolute. - if (resolvedResult && resolvedResult.endsWith(":") && process.platform === "win32") { - resolvedResult += path__default["default"].sep; - } - return resolvedResult; -} - -/** - * Make relative path. - * @param {string} from The source path to get relative path. - * @param {string} to The destination path to get relative path. - * @returns {string} The relative path. - */ -function relative(from, to) { - const relPath = path__default["default"].relative(from, to); - - if (path__default["default"].sep === "/") { - return relPath; - } - return relPath.split(path__default["default"].sep).join("/"); -} - -/** - * Get the trailing slash if existed. - * @param {string} filePath The path to check. - * @returns {string} The trailing slash if existed. - */ -function dirSuffix(filePath) { - const isDir = ( - filePath.endsWith(path__default["default"].sep) || - (process.platform === "win32" && filePath.endsWith("/")) - ); - - return isDir ? "/" : ""; -} - -const DefaultPatterns = Object.freeze(["/**/node_modules/*"]); -const DotPatterns = Object.freeze([".*", "!.eslintrc.*", "!../"]); - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -class IgnorePattern { - - /** - * The default patterns. - * @type {string[]} - */ - static get DefaultPatterns() { - return DefaultPatterns; - } - - /** - * Create the default predicate function. - * @param {string} cwd The current working directory. - * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createDefaultIgnore(cwd) { - return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]); - } - - /** - * Create the predicate function from multiple `IgnorePattern` objects. - * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns. - * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createIgnore(ignorePatterns) { - debug$3("Create with: %o", ignorePatterns); - - const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath)); - const patterns = [].concat( - ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath)) - ); - const ig = ignore__default["default"]({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]); - const dotIg = ignore__default["default"]({ allowRelativePaths: true }).add(patterns); - - debug$3(" processed: %o", { basePath, patterns }); - - return Object.assign( - (filePath, dot = false) => { - assert__default["default"](path__default["default"].isAbsolute(filePath), "'filePath' should be an absolute path."); - const relPathRaw = relative(basePath, filePath); - const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath)); - const adoptedIg = dot ? dotIg : ig; - const result = relPath !== "" && adoptedIg.ignores(relPath); - - debug$3("Check", { filePath, dot, relativePath: relPath, result }); - return result; - }, - { basePath, patterns } - ); - } - - /** - * Initialize a new `IgnorePattern` instance. - * @param {string[]} patterns The glob patterns that ignore to lint. - * @param {string} basePath The base path of `patterns`. - */ - constructor(patterns, basePath) { - assert__default["default"](path__default["default"].isAbsolute(basePath), "'basePath' should be an absolute path."); - - /** - * The glob patterns that ignore to lint. - * @type {string[]} - */ - this.patterns = patterns; - - /** - * The base path of `patterns`. - * @type {string} - */ - this.basePath = basePath; - - /** - * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`. - * - * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility. - * It's `false` as-is for `ignorePatterns` property in config files. - * @type {boolean} - */ - this.loose = false; - } - - /** - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * @param {string} newBasePath The base path. - * @returns {string[]} Modifired patterns. - */ - getPatternsRelativeTo(newBasePath) { - assert__default["default"](path__default["default"].isAbsolute(newBasePath), "'newBasePath' should be an absolute path."); - const { basePath, loose, patterns } = this; - - if (newBasePath === basePath) { - return patterns; - } - const prefix = `/${relative(newBasePath, basePath)}`; - - return patterns.map(pattern => { - const negative = pattern.startsWith("!"); - const head = negative ? "!" : ""; - const body = negative ? pattern.slice(1) : pattern; - - if (body.startsWith("/") || body.startsWith("../")) { - return `${head}${prefix}${body}`; - } - return loose ? pattern : `${head}${prefix}/**/${body}`; - }); - } -} - -/** - * @fileoverview `ExtractedConfig` class. - * - * `ExtractedConfig` class expresses a final configuration for a specific file. - * - * It provides one method. - * - * - `toCompatibleObjectAsConfigFileContent()` - * Convert this configuration to the compatible object as the content of - * config files. It converts the loaded parser and plugins to strings. - * `CLIEngine#getConfigForFile(filePath)` method uses this method. - * - * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance. - * - * @author Toru Nagashima - */ - -// For VSCode intellisense -/** @typedef {import("../../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").SeverityConf} SeverityConf */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ - -/** - * Check if `xs` starts with `ys`. - * @template T - * @param {T[]} xs The array to check. - * @param {T[]} ys The array that may be the first part of `xs`. - * @returns {boolean} `true` if `xs` starts with `ys`. - */ -function startsWith(xs, ys) { - return xs.length >= ys.length && ys.every((y, i) => y === xs[i]); -} - -/** - * The class for extracted config data. - */ -class ExtractedConfig { - constructor() { - - /** - * The config name what `noInlineConfig` setting came from. - * @type {string} - */ - this.configNameOfNoInlineConfig = ""; - - /** - * Environments. - * @type {Record} - */ - this.env = {}; - - /** - * Global variables. - * @type {Record} - */ - this.globals = {}; - - /** - * The glob patterns that ignore to lint. - * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined} - */ - this.ignores = void 0; - - /** - * The flag that disables directive comments. - * @type {boolean|undefined} - */ - this.noInlineConfig = void 0; - - /** - * Parser definition. - * @type {DependentParser|null} - */ - this.parser = null; - - /** - * Options for the parser. - * @type {Object} - */ - this.parserOptions = {}; - - /** - * Plugin definitions. - * @type {Record} - */ - this.plugins = {}; - - /** - * Processor ID. - * @type {string|null} - */ - this.processor = null; - - /** - * The flag that reports unused `eslint-disable` directive comments. - * @type {boolean|undefined} - */ - this.reportUnusedDisableDirectives = void 0; - - /** - * Rule settings. - * @type {Record} - */ - this.rules = {}; - - /** - * Shared settings. - * @type {Object} - */ - this.settings = {}; - } - - /** - * Convert this config to the compatible object as a config file content. - * @returns {ConfigData} The converted object. - */ - toCompatibleObjectAsConfigFileContent() { - const { - /* eslint-disable no-unused-vars */ - configNameOfNoInlineConfig: _ignore1, - processor: _ignore2, - /* eslint-enable no-unused-vars */ - ignores, - ...config - } = this; - - config.parser = config.parser && config.parser.filePath; - config.plugins = Object.keys(config.plugins).filter(Boolean).reverse(); - config.ignorePatterns = ignores ? ignores.patterns : []; - - // Strip the default patterns from `ignorePatterns`. - if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) { - config.ignorePatterns = - config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length); - } - - return config; - } -} - -/** - * @fileoverview `ConfigArray` class. - * - * `ConfigArray` class expresses the full of a configuration. It has the entry - * config file, base config files that were extended, loaded parsers, and loaded - * plugins. - * - * `ConfigArray` class provides three properties and two methods. - * - * - `pluginEnvironments` - * - `pluginProcessors` - * - `pluginRules` - * The `Map` objects that contain the members of all plugins that this - * config array contains. Those map objects don't have mutation methods. - * Those keys are the member ID such as `pluginId/memberName`. - * - `isRoot()` - * If `true` then this configuration has `root:true` property. - * - `extractConfig(filePath)` - * Extract the final configuration for a given file. This means merging - * every config array element which that `criteria` property matched. The - * `filePath` argument must be an absolute path. - * - * `ConfigArrayFactory` provides the loading logic of config files. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../../shared/types").Rule} Rule */ -/** @typedef {import("../../shared/types").Plugin} Plugin */ -/** @typedef {import("../../shared/types").Processor} Processor */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {import("./override-tester")["OverrideTester"]} OverrideTester */ - -/** - * @typedef {Object} ConfigArrayElement - * @property {string} name The name of this config element. - * @property {string} filePath The path to the source file of this config element. - * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element. - * @property {Record|undefined} env The environment settings. - * @property {Record|undefined} globals The global variable settings. - * @property {IgnorePattern|undefined} ignorePattern The ignore patterns. - * @property {boolean|undefined} noInlineConfig The flag that disables directive comments. - * @property {DependentParser|undefined} parser The parser loader. - * @property {Object|undefined} parserOptions The parser options. - * @property {Record|undefined} plugins The plugin loaders. - * @property {string|undefined} processor The processor name to refer plugin's processor. - * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments. - * @property {boolean|undefined} root The flag to express root. - * @property {Record|undefined} rules The rule settings - * @property {Object|undefined} settings The shared settings. - * @property {"config" | "ignore" | "implicit-processor"} type The element type. - */ - -/** - * @typedef {Object} ConfigArrayInternalSlots - * @property {Map} cache The cache to extract configs. - * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition. - * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition. - * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$2 = new class extends WeakMap { - get(key) { - let value = super.get(key); - - if (!value) { - value = { - cache: new Map(), - envMap: null, - processorMap: null, - ruleMap: null - }; - super.set(key, value); - } - - return value; - } -}(); - -/** - * Get the indices which are matched to a given file. - * @param {ConfigArrayElement[]} elements The elements. - * @param {string} filePath The path to a target file. - * @returns {number[]} The indices. - */ -function getMatchedIndices(elements, filePath) { - const indices = []; - - for (let i = elements.length - 1; i >= 0; --i) { - const element = elements[i]; - - if (!element.criteria || (filePath && element.criteria.test(filePath))) { - indices.push(i); - } - } - - return indices; -} - -/** - * Check if a value is a non-null object. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(x) { - return typeof x === "object" && x !== null; -} - -/** - * Merge two objects. - * - * Assign every property values of `y` to `x` if `x` doesn't have the property. - * If `x`'s property value is an object, it does recursive. - * @param {Object} target The destination to merge - * @param {Object|undefined} source The source to merge. - * @returns {void} - */ -function mergeWithoutOverwrite(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - - if (isNonNullObject(target[key])) { - mergeWithoutOverwrite(target[key], source[key]); - } else if (target[key] === void 0) { - if (isNonNullObject(source[key])) { - target[key] = Array.isArray(source[key]) ? [] : {}; - mergeWithoutOverwrite(target[key], source[key]); - } else if (source[key] !== void 0) { - target[key] = source[key]; - } - } - } -} - -/** - * The error for plugin conflicts. - */ -class PluginConflictError extends Error { - - /** - * Initialize this error object. - * @param {string} pluginId The plugin ID. - * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins. - */ - constructor(pluginId, plugins) { - super(`Plugin "${pluginId}" was conflicted between ${plugins.map(p => `"${p.importerName}"`).join(" and ")}.`); - this.messageTemplate = "plugin-conflict"; - this.messageData = { pluginId, plugins }; - } -} - -/** - * Merge plugins. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergePlugins(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetValue = target[key]; - const sourceValue = source[key]; - - // Adopt the plugin which was found at first. - if (targetValue === void 0) { - if (sourceValue.error) { - throw sourceValue.error; - } - target[key] = sourceValue; - } else if (sourceValue.filePath !== targetValue.filePath) { - throw new PluginConflictError(key, [ - { - filePath: targetValue.filePath, - importerName: targetValue.importerName - }, - { - filePath: sourceValue.filePath, - importerName: sourceValue.importerName - } - ]); - } - } -} - -/** - * Merge rule configs. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergeRuleConfigs(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetDef = target[key]; - const sourceDef = source[key]; - - // Adopt the rule config which was found at first. - if (targetDef === void 0) { - if (Array.isArray(sourceDef)) { - target[key] = [...sourceDef]; - } else { - target[key] = [sourceDef]; - } - - /* - * If the first found rule config is severity only and the current rule - * config has options, merge the severity and the options. - */ - } else if ( - targetDef.length === 1 && - Array.isArray(sourceDef) && - sourceDef.length >= 2 - ) { - targetDef.push(...sourceDef.slice(1)); - } - } -} - -/** - * Create the extracted config. - * @param {ConfigArray} instance The config elements. - * @param {number[]} indices The indices to use. - * @returns {ExtractedConfig} The extracted config. - */ -function createConfig(instance, indices) { - const config = new ExtractedConfig(); - const ignorePatterns = []; - - // Merge elements. - for (const index of indices) { - const element = instance[index]; - - // Adopt the parser which was found at first. - if (!config.parser && element.parser) { - if (element.parser.error) { - throw element.parser.error; - } - config.parser = element.parser; - } - - // Adopt the processor which was found at first. - if (!config.processor && element.processor) { - config.processor = element.processor; - } - - // Adopt the noInlineConfig which was found at first. - if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) { - config.noInlineConfig = element.noInlineConfig; - config.configNameOfNoInlineConfig = element.name; - } - - // Adopt the reportUnusedDisableDirectives which was found at first. - if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) { - config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives; - } - - // Collect ignorePatterns - if (element.ignorePattern) { - ignorePatterns.push(element.ignorePattern); - } - - // Merge others. - mergeWithoutOverwrite(config.env, element.env); - mergeWithoutOverwrite(config.globals, element.globals); - mergeWithoutOverwrite(config.parserOptions, element.parserOptions); - mergeWithoutOverwrite(config.settings, element.settings); - mergePlugins(config.plugins, element.plugins); - mergeRuleConfigs(config.rules, element.rules); - } - - // Create the predicate function for ignore patterns. - if (ignorePatterns.length > 0) { - config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse()); - } - - return config; -} - -/** - * Collect definitions. - * @template T, U - * @param {string} pluginId The plugin ID for prefix. - * @param {Record} defs The definitions to collect. - * @param {Map} map The map to output. - * @returns {void} - */ -function collect(pluginId, defs, map) { - if (defs) { - const prefix = pluginId && `${pluginId}/`; - - for (const [key, value] of Object.entries(defs)) { - map.set(`${prefix}${key}`, value); - } - } -} - -/** - * Delete the mutation methods from a given map. - * @param {Map} map The map object to delete. - * @returns {void} - */ -function deleteMutationMethods(map) { - Object.defineProperties(map, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - set: { configurable: true, value: void 0 } - }); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArrayElement[]} elements The config elements. - * @param {ConfigArrayInternalSlots} slots The internal slots. - * @returns {void} - */ -function initPluginMemberMaps(elements, slots) { - const processed = new Set(); - - slots.envMap = new Map(); - slots.processorMap = new Map(); - slots.ruleMap = new Map(); - - for (const element of elements) { - if (!element.plugins) { - continue; - } - - for (const [pluginId, value] of Object.entries(element.plugins)) { - const plugin = value.definition; - - if (!plugin || processed.has(pluginId)) { - continue; - } - processed.add(pluginId); - - collect(pluginId, plugin.environments, slots.envMap); - collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap); - } - } - - deleteMutationMethods(slots.envMap); - deleteMutationMethods(slots.processorMap); - deleteMutationMethods(slots.ruleMap); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArray} instance The config elements. - * @returns {ConfigArrayInternalSlots} The extracted config. - */ -function ensurePluginMemberMaps(instance) { - const slots = internalSlotsMap$2.get(instance); - - if (!slots.ruleMap) { - initPluginMemberMaps(instance, slots); - } - - return slots; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The Config Array. - * - * `ConfigArray` instance contains all settings, parsers, and plugins. - * You need to call `ConfigArray#extractConfig(filePath)` method in order to - * extract, merge and get only the config data which is related to an arbitrary - * file. - * @extends {Array} - */ -class ConfigArray extends Array { - - /** - * Get the plugin environments. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin environments. - */ - get pluginEnvironments() { - return ensurePluginMemberMaps(this).envMap; - } - - /** - * Get the plugin processors. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin processors. - */ - get pluginProcessors() { - return ensurePluginMemberMaps(this).processorMap; - } - - /** - * Get the plugin rules. - * The returned map cannot be mutated. - * @returns {ReadonlyMap} The plugin rules. - */ - get pluginRules() { - return ensurePluginMemberMaps(this).ruleMap; - } - - /** - * Check if this config has `root` flag. - * @returns {boolean} `true` if this config array is root. - */ - isRoot() { - for (let i = this.length - 1; i >= 0; --i) { - const root = this[i].root; - - if (typeof root === "boolean") { - return root; - } - } - return false; - } - - /** - * Extract the config data which is related to a given file. - * @param {string} filePath The absolute path to the target file. - * @returns {ExtractedConfig} The extracted config data. - */ - extractConfig(filePath) { - const { cache } = internalSlotsMap$2.get(this); - const indices = getMatchedIndices(this, filePath); - const cacheKey = indices.join(","); - - if (!cache.has(cacheKey)) { - cache.set(cacheKey, createConfig(this, indices)); - } - - return cache.get(cacheKey); - } - - /** - * Check if a given path is an additional lint target. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the file is an additional lint target. - */ - isAdditionalTargetPath(filePath) { - for (const { criteria, type } of this) { - if ( - type === "config" && - criteria && - !criteria.endsWithWildcard && - criteria.test(filePath) - ) { - return true; - } - } - return false; - } -} - -/** - * Get the used extracted configs. - * CLIEngine will use this method to collect used deprecated rules. - * @param {ConfigArray} instance The config array object to get. - * @returns {ExtractedConfig[]} The used extracted configs. - * @private - */ -function getUsedExtractedConfigs(instance) { - const { cache } = internalSlotsMap$2.get(instance); - - return Array.from(cache.values()); -} - -/** - * @fileoverview `ConfigDependency` class. - * - * `ConfigDependency` class expresses a loaded parser or plugin. - * - * If the parser or plugin was loaded successfully, it has `definition` property - * and `filePath` property. Otherwise, it has `error` property. - * - * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it - * omits `definition` property. - * - * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers - * or plugins. - * - * @author Toru Nagashima - */ - -/** - * The class is to store parsers or plugins. - * This class hides the loaded object from `JSON.stringify()` and `console.log`. - * @template T - */ -class ConfigDependency { - - /** - * Initialize this instance. - * @param {Object} data The dependency data. - * @param {T} [data.definition] The dependency if the loading succeeded. - * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded. - * @param {Error} [data.error] The error object if the loading failed. - * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded. - * @param {string} data.id The ID of this dependency. - * @param {string} data.importerName The name of the config file which loads this dependency. - * @param {string} data.importerPath The path to the config file which loads this dependency. - */ - constructor({ - definition = null, - original = null, - error = null, - filePath = null, - id, - importerName, - importerPath - }) { - - /** - * The loaded dependency if the loading succeeded. - * @type {T|null} - */ - this.definition = definition; - - /** - * The original dependency as loaded directly from disk if the loading succeeded. - * @type {T|null} - */ - this.original = original; - - /** - * The error object if the loading failed. - * @type {Error|null} - */ - this.error = error; - - /** - * The loaded dependency if the loading succeeded. - * @type {string|null} - */ - this.filePath = filePath; - - /** - * The ID of this dependency. - * @type {string} - */ - this.id = id; - - /** - * The name of the config file which loads this dependency. - * @type {string} - */ - this.importerName = importerName; - - /** - * The path to the config file which loads this dependency. - * @type {string} - */ - this.importerPath = importerPath; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - const obj = this[util__default["default"].inspect.custom](); - - // Display `error.message` (`Error#message` is unenumerable). - if (obj.error instanceof Error) { - obj.error = { ...obj.error, message: obj.error.message }; - } - - return obj; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - const { - definition: _ignore1, // eslint-disable-line no-unused-vars - original: _ignore2, // eslint-disable-line no-unused-vars - ...obj - } = this; - - return obj; - } -} - -/** - * @fileoverview `OverrideTester` class. - * - * `OverrideTester` class handles `files` property and `excludedFiles` property - * of `overrides` config. - * - * It provides one method. - * - * - `test(filePath)` - * Test if a file path matches the pair of `files` property and - * `excludedFiles` property. The `filePath` argument must be an absolute - * path. - * - * `ConfigArrayFactory` creates `OverrideTester` objects when it processes - * `overrides` properties. - * - * @author Toru Nagashima - */ - -const { Minimatch } = minimatch__default["default"]; - -const minimatchOpts = { dot: true, matchBase: true }; - -/** - * @typedef {Object} Pattern - * @property {InstanceType[] | null} includes The positive matchers. - * @property {InstanceType[] | null} excludes The negative matchers. - */ - -/** - * Normalize a given pattern to an array. - * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns. - * @returns {string[]|null} Normalized patterns. - * @private - */ -function normalizePatterns(patterns) { - if (Array.isArray(patterns)) { - return patterns.filter(Boolean); - } - if (typeof patterns === "string" && patterns) { - return [patterns]; - } - return []; -} - -/** - * Create the matchers of given patterns. - * @param {string[]} patterns The patterns. - * @returns {InstanceType[] | null} The matchers. - */ -function toMatcher(patterns) { - if (patterns.length === 0) { - return null; - } - return patterns.map(pattern => { - if (/^\.[/\\]/u.test(pattern)) { - return new Minimatch( - pattern.slice(2), - - // `./*.js` should not match with `subdir/foo.js` - { ...minimatchOpts, matchBase: false } - ); - } - return new Minimatch(pattern, minimatchOpts); - }); -} - -/** - * Convert a given matcher to string. - * @param {Pattern} matchers The matchers. - * @returns {string} The string expression of the matcher. - */ -function patternToJson({ includes, excludes }) { - return { - includes: includes && includes.map(m => m.pattern), - excludes: excludes && excludes.map(m => m.pattern) - }; -} - -/** - * The class to test given paths are matched by the patterns. - */ -class OverrideTester { - - /** - * Create a tester with given criteria. - * If there are no criteria, returns `null`. - * @param {string|string[]} files The glob patterns for included files. - * @param {string|string[]} excludedFiles The glob patterns for excluded files. - * @param {string} basePath The path to the base directory to test paths. - * @returns {OverrideTester|null} The created instance or `null`. - */ - static create(files, excludedFiles, basePath) { - const includePatterns = normalizePatterns(files); - const excludePatterns = normalizePatterns(excludedFiles); - let endsWithWildcard = false; - - if (includePatterns.length === 0) { - return null; - } - - // Rejects absolute paths or relative paths to parents. - for (const pattern of includePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - if (pattern.endsWith("*")) { - endsWithWildcard = true; - } - } - for (const pattern of excludePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - } - - const includes = toMatcher(includePatterns); - const excludes = toMatcher(excludePatterns); - - return new OverrideTester( - [{ includes, excludes }], - basePath, - endsWithWildcard - ); - } - - /** - * Combine two testers by logical and. - * If either of the testers was `null`, returns the other tester. - * The `basePath` property of the two must be the same value. - * @param {OverrideTester|null} a A tester. - * @param {OverrideTester|null} b Another tester. - * @returns {OverrideTester|null} Combined tester. - */ - static and(a, b) { - if (!b) { - return a && new OverrideTester( - a.patterns, - a.basePath, - a.endsWithWildcard - ); - } - if (!a) { - return new OverrideTester( - b.patterns, - b.basePath, - b.endsWithWildcard - ); - } - - assert__default["default"].strictEqual(a.basePath, b.basePath); - return new OverrideTester( - a.patterns.concat(b.patterns), - a.basePath, - a.endsWithWildcard || b.endsWithWildcard - ); - } - - /** - * Initialize this instance. - * @param {Pattern[]} patterns The matchers. - * @param {string} basePath The base path. - * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`. - */ - constructor(patterns, basePath, endsWithWildcard = false) { - - /** @type {Pattern[]} */ - this.patterns = patterns; - - /** @type {string} */ - this.basePath = basePath; - - /** @type {boolean} */ - this.endsWithWildcard = endsWithWildcard; - } - - /** - * Test if a given path is matched or not. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the path was matched. - */ - test(filePath) { - if (typeof filePath !== "string" || !path__default["default"].isAbsolute(filePath)) { - throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`); - } - const relativePath = path__default["default"].relative(this.basePath, filePath); - - return this.patterns.every(({ includes, excludes }) => ( - (!includes || includes.some(m => m.match(relativePath))) && - (!excludes || !excludes.some(m => m.match(relativePath))) - )); - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - if (this.patterns.length === 1) { - return { - ...patternToJson(this.patterns[0]), - basePath: this.basePath - }; - } - return { - AND: this.patterns.map(patternToJson), - basePath: this.basePath - }; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - return this.toJSON(); - } -} - -/** - * @fileoverview `ConfigArray` class. - * @author Toru Nagashima - */ - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Applies default rule options - * @author JoshuaKGoldberg - */ - -/** - * Check if the variable contains an object strictly rejecting arrays - * @param {unknown} value an object - * @returns {boolean} Whether value is an object - */ -function isObjectNotArray(value) { - return typeof value === "object" && value !== null && !Array.isArray(value); -} - -/** - * Deeply merges second on top of first, creating a new {} object if needed. - * @param {T} first Base, default value. - * @param {U} second User-specified value. - * @returns {T | U | (T & U)} Merged equivalent of second on top of first. - */ -function deepMergeObjects(first, second) { - if (second === void 0) { - return first; - } - - if (!isObjectNotArray(first) || !isObjectNotArray(second)) { - return second; - } - - const result = { ...first, ...second }; - - for (const key of Object.keys(second)) { - if (Object.prototype.propertyIsEnumerable.call(first, key)) { - result[key] = deepMergeObjects(first[key], second[key]); - } - } - - return result; -} - -/** - * Deeply merges second on top of first, creating a new [] array if needed. - * @param {T[] | undefined} first Base, default values. - * @param {U[] | undefined} second User-specified values. - * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first. - */ -function deepMergeArrays(first, second) { - if (!first || !second) { - return second || first || []; - } - - return [ - ...first.map((value, i) => deepMergeObjects(value, second[i])), - ...second.slice(first.length) - ]; -} - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); - - validateRule(mergedOptions); - - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -/* - * `Module.createRequire` is added in v12.2.0. It supports URL as well. - * We only support the case where the argument is a filepath, not a URL. - */ -const createRequire = Module__default["default"].createRequire; - -/** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ -function resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } -} - -var ModuleResolver = { - __proto__: null, - resolve: resolve -}; - -/** - * @fileoverview The factory of `ConfigArray` objects. - * - * This class provides methods to create `ConfigArray` instance. - * - * - `create(configData, options)` - * Create a `ConfigArray` instance from a config data. This is to handle CLI - * options except `--config`. - * - `loadFile(filePath, options)` - * Create a `ConfigArray` instance from a config file. This is to handle - * `--config` option. If the file was not found, throws the following error: - * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error. - * - If the filename was `package.json`, an IO error or an - * `ESLINT_CONFIG_FIELD_NOT_FOUND` error. - * - Otherwise, an IO error such as `ENOENT`. - * - `loadInDirectory(directoryPath, options)` - * Create a `ConfigArray` instance from a config file which is on a given - * directory. This tries to load `.eslintrc.*` or `package.json`. If not - * found, returns an empty `ConfigArray`. - * - `loadESLintIgnore(filePath)` - * Create a `ConfigArray` instance from a config file that is `.eslintignore` - * format. This is to handle `--ignore-path` option. - * - `loadDefaultESLintIgnore()` - * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in - * the current working directory. - * - * `ConfigArrayFactory` class has the responsibility that loads configuration - * files, including loading `extends`, `parser`, and `plugins`. The created - * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`. - * - * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class - * handles cascading and hierarchy. - * - * @author Toru Nagashima - */ - -const require$1 = Module.createRequire(require('url').pathToFileURL(__filename).toString()); - -const debug$2 = debugOrig__default["default"]("eslintrc:config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const configFilenames = [ - ".eslintrc.js", - ".eslintrc.cjs", - ".eslintrc.yaml", - ".eslintrc.yml", - ".eslintrc.json", - ".eslintrc", - "package.json" -]; - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {ConfigArray[0]} ConfigArrayElement */ - -/** - * @typedef {Object} ConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {string} [cwd] The path to the current working directory. - * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cwd The path to the current working directory. - * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {string} pluginBasePath The base path to resolve plugins. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$1 = new WeakMap(); - -/** @type {WeakMap} */ -const normalizedPlugins = new WeakMap(); - -/** - * Check if a given string is a file path. - * @param {string} nameOrPath A module name or file path. - * @returns {boolean} `true` if the `nameOrPath` is a file path. - */ -function isFilePath(nameOrPath) { - return ( - /^\.{1,2}[/\\]/u.test(nameOrPath) || - path__default["default"].isAbsolute(nameOrPath) - ); -} - -/** - * Convenience wrapper for synchronously reading file contents. - * @param {string} filePath The filename to read. - * @returns {string} The file contents, with the BOM removed. - * @private - */ -function readFile(filePath) { - return fs__default["default"].readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); -} - -/** - * Loads a YAML configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadYAMLConfigFile(filePath) { - debug$2(`Loading YAML config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - - // empty YAML file can be null, so always use - return yaml.load(readFile(filePath)) || {}; - } catch (e) { - debug$2(`Error reading YAML file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JSON configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSONConfigFile(filePath) { - debug$2(`Loading JSON config file: ${filePath}`); - - try { - return JSON.parse(stripComments__default["default"](readFile(filePath))); - } catch (e) { - debug$2(`Error reading JSON file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - e.messageTemplate = "failed-to-read-json"; - e.messageData = { - path: filePath, - message: e.message - }; - throw e; - } -} - -/** - * Loads a legacy (.eslintrc) configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadLegacyConfigFile(filePath) { - debug$2(`Loading legacy config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - return yaml.load(stripComments__default["default"](readFile(filePath))) || /* istanbul ignore next */ {}; - } catch (e) { - debug$2("Error reading YAML file: %s\n%o", filePath, e); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JavaScript configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSConfigFile(filePath) { - debug$2(`Loading JS config file: ${filePath}`); - try { - return importFresh__default["default"](filePath); - } catch (e) { - debug$2(`Error reading JavaScript file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a configuration from a package.json file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadPackageJSONConfigFile(filePath) { - debug$2(`Loading package.json config file: ${filePath}`); - try { - const packageData = loadJSONConfigFile(filePath); - - if (!Object.hasOwnProperty.call(packageData, "eslintConfig")) { - throw Object.assign( - new Error("package.json file doesn't have 'eslintConfig' field."), - { code: "ESLINT_CONFIG_FIELD_NOT_FOUND" } - ); - } - - return packageData.eslintConfig; - } catch (e) { - debug$2(`Error reading package.json file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a `.eslintignore` from a file. - * @param {string} filePath The filename to load. - * @returns {string[]} The ignore patterns from the file. - * @private - */ -function loadESLintIgnoreFile(filePath) { - debug$2(`Loading .eslintignore file: ${filePath}`); - - try { - return readFile(filePath) - .split(/\r?\n/gu) - .filter(line => line.trim() !== "" && !line.startsWith("#")); - } catch (e) { - debug$2(`Error reading .eslintignore file: ${filePath}`); - e.message = `Cannot read .eslintignore file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Creates an error to notify about a missing config to extend from. - * @param {string} configName The name of the missing config. - * @param {string} importerName The name of the config that imported the missing config - * @param {string} messageTemplate The text template to source error strings from. - * @returns {Error} The error object to throw - * @private - */ -function configInvalidError(configName, importerName, messageTemplate) { - return Object.assign( - new Error(`Failed to load config "${configName}" to extend from.`), - { - messageTemplate, - messageData: { configName, importerName } - } - ); -} - -/** - * Loads a configuration file regardless of the source. Inspects the file path - * to determine the correctly way to load the config file. - * @param {string} filePath The path to the configuration. - * @returns {ConfigData|null} The configuration information. - * @private - */ -function loadConfigFile(filePath) { - switch (path__default["default"].extname(filePath)) { - case ".js": - case ".cjs": - return loadJSConfigFile(filePath); - - case ".json": - if (path__default["default"].basename(filePath) === "package.json") { - return loadPackageJSONConfigFile(filePath); - } - return loadJSONConfigFile(filePath); - - case ".yaml": - case ".yml": - return loadYAMLConfigFile(filePath); - - default: - return loadLegacyConfigFile(filePath); - } -} - -/** - * Write debug log. - * @param {string} request The requested module name. - * @param {string} relativeTo The file path to resolve the request relative to. - * @param {string} filePath The resolved file path. - * @returns {void} - */ -function writeDebugLogForLoading(request, relativeTo, filePath) { - /* istanbul ignore next */ - if (debug$2.enabled) { - let nameAndVersion = null; - - try { - const packageJsonPath = resolve( - `${request}/package.json`, - relativeTo - ); - const { version = "unknown" } = require$1(packageJsonPath); - - nameAndVersion = `${request}@${version}`; - } catch (error) { - debug$2("package.json was not found:", error.message); - nameAndVersion = request; - } - - debug$2("Loaded: %s (%s)", nameAndVersion, filePath); - } -} - -/** - * Create a new context with default values. - * @param {ConfigArrayFactoryInternalSlots} slots The internal slots. - * @param {"config" | "ignore" | "implicit-processor" | undefined} providedType The type of the current configuration. Default is `"config"`. - * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`. - * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string. - * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`. - * @returns {ConfigArrayFactoryLoadingContext} The created context. - */ -function createContext( - { cwd, resolvePluginsRelativeTo }, - providedType, - providedName, - providedFilePath, - providedMatchBasePath -) { - const filePath = providedFilePath - ? path__default["default"].resolve(cwd, providedFilePath) - : ""; - const matchBasePath = - (providedMatchBasePath && path__default["default"].resolve(cwd, providedMatchBasePath)) || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const name = - providedName || - (filePath && path__default["default"].relative(cwd, filePath)) || - ""; - const pluginBasePath = - resolvePluginsRelativeTo || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const type = providedType || "config"; - - return { filePath, matchBasePath, name, pluginBasePath, type }; -} - -/** - * Normalize a given plugin. - * - Ensure the object to have four properties: configs, environments, processors, and rules. - * - Ensure the object to not have other properties. - * @param {Plugin} plugin The plugin to normalize. - * @returns {Plugin} The normalized plugin. - */ -function normalizePlugin(plugin) { - - // first check the cache - let normalizedPlugin = normalizedPlugins.get(plugin); - - if (normalizedPlugin) { - return normalizedPlugin; - } - - normalizedPlugin = { - configs: plugin.configs || {}, - environments: plugin.environments || {}, - processors: plugin.processors || {}, - rules: plugin.rules || {} - }; - - // save the reference for later - normalizedPlugins.set(plugin, normalizedPlugin); - - return normalizedPlugin; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The factory of `ConfigArray` objects. - */ -class ConfigArrayFactory { - - /** - * Initialize this instance. - * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins. - */ - constructor({ - additionalPluginPool = new Map(), - cwd = process.cwd(), - resolvePluginsRelativeTo, - builtInRules, - resolver = ModuleResolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = {}) { - internalSlotsMap$1.set(this, { - additionalPluginPool, - cwd, - resolvePluginsRelativeTo: - resolvePluginsRelativeTo && - path__default["default"].resolve(cwd, resolvePluginsRelativeTo), - builtInRules, - resolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - }); - } - - /** - * Create `ConfigArray` instance from a config data. - * @param {ConfigData|null} configData The config data to create. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.filePath] The path to this config data. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - create(configData, { basePath, filePath, name } = {}) { - if (!configData) { - return new ConfigArray(); - } - - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - const elements = this._normalizeConfigData(configData, ctx); - - return new ConfigArray(...elements); - } - - /** - * Load a config file. - * @param {string} filePath The path to a config file. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - loadFile(filePath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - - return new ConfigArray(...this._loadConfigData(ctx)); - } - - /** - * Load the config file on a given directory if exists. - * @param {string} directoryPath The path to a directory. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadInDirectory(directoryPath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - - for (const filename of configFilenames) { - const ctx = createContext( - slots, - "config", - name, - path__default["default"].join(directoryPath, filename), - basePath - ); - - if (fs__default["default"].existsSync(ctx.filePath) && fs__default["default"].statSync(ctx.filePath).isFile()) { - let configData; - - try { - configData = loadConfigFile(ctx.filePath); - } catch (error) { - if (!error || error.code !== "ESLINT_CONFIG_FIELD_NOT_FOUND") { - throw error; - } - } - - if (configData) { - debug$2(`Config file found: ${ctx.filePath}`); - return new ConfigArray( - ...this._normalizeConfigData(configData, ctx) - ); - } - } - } - - debug$2(`Config file not found on ${directoryPath}`); - return new ConfigArray(); - } - - /** - * Check if a config file on a given directory exists or not. - * @param {string} directoryPath The path to a directory. - * @returns {string | null} The path to the found config file. If not found then null. - */ - static getPathToConfigFileInDirectory(directoryPath) { - for (const filename of configFilenames) { - const filePath = path__default["default"].join(directoryPath, filename); - - if (fs__default["default"].existsSync(filePath)) { - if (filename === "package.json") { - try { - loadPackageJSONConfigFile(filePath); - return filePath; - } catch { /* ignore */ } - } else { - return filePath; - } - } - } - return null; - } - - /** - * Load `.eslintignore` file. - * @param {string} filePath The path to a `.eslintignore` file to load. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadESLintIgnore(filePath) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext( - slots, - "ignore", - void 0, - filePath, - slots.cwd - ); - const ignorePatterns = loadESLintIgnoreFile(ctx.filePath); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(ignorePatterns, ctx) - ); - } - - /** - * Load `.eslintignore` file in the current working directory. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadDefaultESLintIgnore() { - const slots = internalSlotsMap$1.get(this); - const eslintIgnorePath = path__default["default"].resolve(slots.cwd, ".eslintignore"); - const packageJsonPath = path__default["default"].resolve(slots.cwd, "package.json"); - - if (fs__default["default"].existsSync(eslintIgnorePath)) { - return this.loadESLintIgnore(eslintIgnorePath); - } - if (fs__default["default"].existsSync(packageJsonPath)) { - const data = loadJSONConfigFile(packageJsonPath); - - if (Object.hasOwnProperty.call(data, "eslintIgnore")) { - if (!Array.isArray(data.eslintIgnore)) { - throw new Error("Package.json eslintIgnore property requires an array of paths"); - } - const ctx = createContext( - slots, - "ignore", - "eslintIgnore in package.json", - packageJsonPath, - slots.cwd - ); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx) - ); - } - } - - return new ConfigArray(); - } - - /** - * Load a given config file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} Loaded config. - * @private - */ - _loadConfigData(ctx) { - return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx); - } - - /** - * Normalize a given `.eslintignore` data to config array elements. - * @param {string[]} ignorePatterns The patterns to ignore files. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeESLintIgnoreData(ignorePatterns, ctx) { - const elements = this._normalizeObjectConfigData( - { ignorePatterns }, - ctx - ); - - // Set `ignorePattern.loose` flag for backward compatibility. - for (const element of elements) { - if (element.ignorePattern) { - element.ignorePattern.loose = true; - } - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _normalizeConfigData(configData, ctx) { - const validator = new ConfigValidator(); - - validator.validateConfigSchema(configData, ctx.name || ctx.filePath); - return this._normalizeObjectConfigData(configData, ctx); - } - - /** - * Normalize a given config to an array. - * @param {ConfigData|OverrideConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigData(configData, ctx) { - const { files, excludedFiles, ...configBody } = configData; - const criteria = OverrideTester.create( - files, - excludedFiles, - ctx.matchBasePath - ); - const elements = this._normalizeObjectConfigDataBody(configBody, ctx); - - // Apply the criteria to every element. - for (const element of elements) { - - /* - * Merge the criteria. - * This is for the `overrides` entries that came from the - * configurations of `overrides[].extends`. - */ - element.criteria = OverrideTester.and(criteria, element.criteria); - - /* - * Remove `root` property to ignore `root` settings which came from - * `extends` in `overrides`. - */ - if (element.criteria) { - element.root = void 0; - } - - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigDataBody( - { - env, - extends: extend, - globals, - ignorePatterns, - noInlineConfig, - parser: parserName, - parserOptions, - plugins: pluginList, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings, - overrides: overrideList = [] - }, - ctx - ) { - const extendList = Array.isArray(extend) ? extend : [extend]; - const ignorePattern = ignorePatterns && new IgnorePattern( - Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns], - ctx.matchBasePath - ); - - // Flatten `extends`. - for (const extendName of extendList.filter(Boolean)) { - yield* this._loadExtends(extendName, ctx); - } - - // Load parser & plugins. - const parser = parserName && this._loadParser(parserName, ctx); - const plugins = pluginList && this._loadPlugins(pluginList, ctx); - - // Yield pseudo config data for file extension processors. - if (plugins) { - yield* this._takeFileExtensionProcessors(plugins, ctx); - } - - // Yield the config data except `extends` and `overrides`. - yield { - - // Debug information. - type: ctx.type, - name: ctx.name, - filePath: ctx.filePath, - - // Config data. - criteria: null, - env, - globals, - ignorePattern, - noInlineConfig, - parser, - parserOptions, - plugins, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings - }; - - // Flatten `overries`. - for (let i = 0; i < overrideList.length; ++i) { - yield* this._normalizeObjectConfigData( - overrideList[i], - { ...ctx, name: `${ctx.name}#overrides[${i}]` } - ); - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtends(extendName, ctx) { - debug$2("Loading {extends:%j} relative to %s", extendName, ctx.filePath); - try { - if (extendName.startsWith("eslint:")) { - return this._loadExtendedBuiltInConfig(extendName, ctx); - } - if (extendName.startsWith("plugin:")) { - return this._loadExtendedPluginConfig(extendName, ctx); - } - return this._loadExtendedShareableConfig(extendName, ctx); - } catch (error) { - error.message += `\nReferenced from: ${ctx.filePath || ctx.name}`; - throw error; - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedBuiltInConfig(extendName, ctx) { - const { - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = internalSlotsMap$1.get(this); - - if (extendName === "eslint:recommended") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintRecommendedConfig) { - if (typeof getEslintRecommendedConfig !== "function") { - throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`); - } - return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintRecommendedPath - }); - } - if (extendName === "eslint:all") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintAllConfig) { - if (typeof getEslintAllConfig !== "function") { - throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`); - } - return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintAllPath - }); - } - - throw configInvalidError(extendName, ctx.name, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedPluginConfig(extendName, ctx) { - const slashIndex = extendName.lastIndexOf("/"); - - if (slashIndex === -1) { - throw configInvalidError(extendName, ctx.filePath, "plugin-invalid"); - } - - const pluginName = extendName.slice("plugin:".length, slashIndex); - const configName = extendName.slice(slashIndex + 1); - - if (isFilePath(pluginName)) { - throw new Error("'extends' cannot use a file path for plugins."); - } - - const plugin = this._loadPlugin(pluginName, ctx); - const configData = - plugin.definition && - plugin.definition.configs[configName]; - - if (configData) { - return this._normalizeConfigData(configData, { - ...ctx, - filePath: plugin.filePath || ctx.filePath, - name: `${ctx.name} » plugin:${plugin.id}/${configName}` - }); - } - - throw plugin.error || configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedShareableConfig(extendName, ctx) { - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - let request; - - if (isFilePath(extendName)) { - request = extendName; - } else if (extendName.startsWith(".")) { - request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior. - } else { - request = normalizePackageName( - extendName, - "eslint-config" - ); - } - - let filePath; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (error) { - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - throw configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - throw error; - } - - writeDebugLogForLoading(request, relativeTo, filePath); - return this._loadConfigData({ - ...ctx, - filePath, - name: `${ctx.name} » ${request}` - }); - } - - /** - * Load given plugins. - * @param {string[]} names The plugin names to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {Record} The loaded parser. - * @private - */ - _loadPlugins(names, ctx) { - return names.reduce((map, name) => { - if (isFilePath(name)) { - throw new Error("Plugins array cannot includes file paths."); - } - const plugin = this._loadPlugin(name, ctx); - - map[plugin.id] = plugin; - - return map; - }, {}); - } - - /** - * Load a given parser. - * @param {string} nameOrPath The package name or the path to a parser file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentParser} The loaded parser. - */ - _loadParser(nameOrPath, ctx) { - debug$2("Loading parser %j from %s", nameOrPath, ctx.filePath); - - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - - try { - const filePath = resolver.resolve(nameOrPath, relativeTo); - - writeDebugLogForLoading(nameOrPath, relativeTo, filePath); - - return new ConfigDependency({ - definition: require$1(filePath), - filePath, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (error) { - - // If the parser name is "espree", load the espree of ESLint. - if (nameOrPath === "espree") { - debug$2("Fallback espree."); - return new ConfigDependency({ - definition: require$1("espree"), - filePath: require$1.resolve("espree"), - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - debug$2("Failed to load parser '%s' declared in '%s'.", nameOrPath, ctx.name); - error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`; - - return new ConfigDependency({ - error, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - } - - /** - * Load a given plugin. - * @param {string} name The plugin name to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentPlugin} The loaded plugin. - * @private - */ - _loadPlugin(name, ctx) { - debug$2("Loading plugin %j from %s", name, ctx.filePath); - - const { additionalPluginPool, resolver } = internalSlotsMap$1.get(this); - const request = normalizePackageName(name, "eslint-plugin"); - const id = getShorthandName(request, "eslint-plugin"); - const relativeTo = path__default["default"].join(ctx.pluginBasePath, "__placeholder__.js"); - - if (name.match(/\s+/u)) { - const error = Object.assign( - new Error(`Whitespace found in plugin name '${name}'`), - { - messageTemplate: "whitespace-found", - messageData: { pluginName: request } - } - ); - - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - // Check for additional pool. - const plugin = - additionalPluginPool.get(request) || - additionalPluginPool.get(id); - - if (plugin) { - return new ConfigDependency({ - definition: normalizePlugin(plugin), - original: plugin, - filePath: "", // It's unknown where the plugin came from. - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - let filePath; - let error; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (resolveError) { - error = resolveError; - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - error.messageTemplate = "plugin-missing"; - error.messageData = { - pluginName: request, - resolvePluginsRelativeTo: ctx.pluginBasePath, - importerName: ctx.name - }; - } - } - - if (filePath) { - try { - writeDebugLogForLoading(request, relativeTo, filePath); - - const startTime = Date.now(); - const pluginDefinition = require$1(filePath); - - debug$2(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`); - - return new ConfigDependency({ - definition: normalizePlugin(pluginDefinition), - original: pluginDefinition, - filePath, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (loadError) { - error = loadError; - } - } - - debug$2("Failed to load plugin '%s' declared in '%s'.", name, ctx.name); - error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`; - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - /** - * Take file expression processors as config array elements. - * @param {Record} plugins The plugin definitions. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The config array elements of file expression processors. - * @private - */ - *_takeFileExtensionProcessors(plugins, ctx) { - for (const pluginId of Object.keys(plugins)) { - const processors = - plugins[pluginId] && - plugins[pluginId].definition && - plugins[pluginId].definition.processors; - - if (!processors) { - continue; - } - - for (const processorId of Object.keys(processors)) { - if (processorId.startsWith(".")) { - yield* this._normalizeObjectConfigData( - { - files: [`*${processorId}`], - processor: `${pluginId}/${processorId}` - }, - { - ...ctx, - type: "implicit-processor", - name: `${ctx.name}#processors["${pluginId}/${processorId}"]` - } - ); - } - } - } - } -} - -/** - * @fileoverview `CascadingConfigArrayFactory` class. - * - * `CascadingConfigArrayFactory` class has a responsibility: - * - * 1. Handles cascading of config files. - * - * It provides two methods: - * - * - `getConfigArrayForFile(filePath)` - * Get the corresponded configuration of a given file. This method doesn't - * throw even if the given file didn't exist. - * - `clearCache()` - * Clear the internal cache. You have to call this method when - * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends - * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.) - * - * @author Toru Nagashima - */ - -const debug$1 = debugOrig__default["default"]("eslintrc:cascading-config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {ConfigData} [baseConfig] The config by `baseConfig` option. - * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files. - * @property {string} [cwd] The base directory to start lookup. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - * @property {string} [specificConfigPath] The value of `--config` option. - * @property {boolean} [useEslintrc] if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryInternalSlots - * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option. - * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`. - * @property {ConfigArray} cliConfigArray The config array of CLI options. - * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`. - * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {Map} configCache The cache from directory paths to config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`. - * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`. - * @property {boolean} useEslintrc if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Create the config array from `baseConfig` and `rulePaths`. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createBaseConfigArray({ - configArrayFactory, - baseConfigData, - rulePaths, - cwd, - loadRules -}) { - const baseConfigArray = configArrayFactory.create( - baseConfigData, - { name: "BaseConfig" } - ); - - /* - * Create the config array element for the default ignore patterns. - * This element has `ignorePattern` property that ignores the default - * patterns in the current working directory. - */ - baseConfigArray.unshift(configArrayFactory.create( - { ignorePatterns: IgnorePattern.DefaultPatterns }, - { name: "DefaultIgnorePattern" } - )[0]); - - /* - * Load rules `--rulesdir` option as a pseudo plugin. - * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate - * the rule's options with only information in the config array. - */ - if (rulePaths && rulePaths.length > 0) { - baseConfigArray.push({ - type: "config", - name: "--rulesdir", - filePath: "", - plugins: { - "": new ConfigDependency({ - definition: { - rules: rulePaths.reduce( - (map, rulesPath) => Object.assign( - map, - loadRules(rulesPath, cwd) - ), - {} - ) - }, - filePath: "", - id: "", - importerName: "--rulesdir", - importerPath: "" - }) - } - }); - } - - return baseConfigArray; -} - -/** - * Create the config array from CLI options. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath -}) { - const cliConfigArray = configArrayFactory.create( - cliConfigData, - { name: "CLIOptions" } - ); - - cliConfigArray.unshift( - ...(ignorePath - ? configArrayFactory.loadESLintIgnore(ignorePath) - : configArrayFactory.loadDefaultESLintIgnore()) - ); - - if (specificConfigPath) { - cliConfigArray.unshift( - ...configArrayFactory.loadFile( - specificConfigPath, - { name: "--config", basePath: cwd } - ) - ); - } - - return cliConfigArray; -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class ConfigurationNotFoundError extends Error { - - // eslint-disable-next-line jsdoc/require-description - /** - * @param {string} directoryPath The directory path. - */ - constructor(directoryPath) { - super(`No ESLint configuration found in ${directoryPath}.`); - this.messageTemplate = "no-config-found"; - this.messageData = { directoryPath }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class CascadingConfigArrayFactory { - - /** - * Initialize this enumerator. - * @param {CascadingConfigArrayFactoryOptions} options The options. - */ - constructor({ - additionalPluginPool = new Map(), - baseConfig: baseConfigData = null, - cliConfig: cliConfigData = null, - cwd = process.cwd(), - ignorePath, - resolvePluginsRelativeTo, - rulePaths = [], - specificConfigPath = null, - useEslintrc = true, - builtInRules = new Map(), - loadRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - } = {}) { - const configArrayFactory = new ConfigArrayFactory({ - additionalPluginPool, - cwd, - resolvePluginsRelativeTo, - builtInRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - }); - - internalSlotsMap.set(this, { - baseConfigArray: createBaseConfigArray({ - baseConfigData, - configArrayFactory, - cwd, - rulePaths, - loadRules - }), - baseConfigData, - cliConfigArray: createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath - }), - cliConfigData, - configArrayFactory, - configCache: new Map(), - cwd, - finalizeCache: new WeakMap(), - ignorePath, - rulePaths, - specificConfigPath, - useEslintrc, - builtInRules, - loadRules - }); - } - - /** - * The path to the current working directory. - * This is used by tests. - * @type {string} - */ - get cwd() { - const { cwd } = internalSlotsMap.get(this); - - return cwd; - } - - /** - * Get the config array of a given file. - * If `filePath` was not given, it returns the config which contains only - * `baseConfigData` and `cliConfigData`. - * @param {string} [filePath] The file path to a file. - * @param {Object} [options] The options. - * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The config array of the file. - */ - getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) { - const { - baseConfigArray, - cliConfigArray, - cwd - } = internalSlotsMap.get(this); - - if (!filePath) { - return new ConfigArray(...baseConfigArray, ...cliConfigArray); - } - - const directoryPath = path__default["default"].dirname(path__default["default"].resolve(cwd, filePath)); - - debug$1(`Load config files for ${directoryPath}.`); - - return this._finalizeConfigArray( - this._loadConfigInAncestors(directoryPath), - directoryPath, - ignoreNotFoundError - ); - } - - /** - * Set the config data to override all configs. - * Require to call `clearCache()` method after this method is called. - * @param {ConfigData} configData The config data to override all configs. - * @returns {void} - */ - setOverrideConfig(configData) { - const slots = internalSlotsMap.get(this); - - slots.cliConfigData = configData; - } - - /** - * Clear config cache. - * @returns {void} - */ - clearCache() { - const slots = internalSlotsMap.get(this); - - slots.baseConfigArray = createBaseConfigArray(slots); - slots.cliConfigArray = createCLIConfigArray(slots); - slots.configCache.clear(); - } - - /** - * Load and normalize config files from the ancestor directories. - * @param {string} directoryPath The path to a leaf directory. - * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories. - * @returns {ConfigArray} The loaded config. - * @private - */ - _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) { - const { - baseConfigArray, - configArrayFactory, - configCache, - cwd, - useEslintrc - } = internalSlotsMap.get(this); - - if (!useEslintrc) { - return baseConfigArray; - } - - let configArray = configCache.get(directoryPath); - - // Hit cache. - if (configArray) { - debug$1(`Cache hit: ${directoryPath}.`); - return configArray; - } - debug$1(`No cache found: ${directoryPath}.`); - - const homePath = os__default["default"].homedir(); - - // Consider this is root. - if (directoryPath === homePath && cwd !== homePath) { - debug$1("Stop traversing because of considered root."); - if (configsExistInSubdirs) { - const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath); - - if (filePath) { - emitDeprecationWarning( - filePath, - "ESLINT_PERSONAL_CONFIG_SUPPRESS" - ); - } - } - return this._cacheConfig(directoryPath, baseConfigArray); - } - - // Load the config on this directory. - try { - configArray = configArrayFactory.loadInDirectory(directoryPath); - } catch (error) { - /* istanbul ignore next */ - if (error.code === "EACCES") { - debug$1("Stop traversing because of 'EACCES' error."); - return this._cacheConfig(directoryPath, baseConfigArray); - } - throw error; - } - - if (configArray.length > 0 && configArray.isRoot()) { - debug$1("Stop traversing because of 'root:true'."); - configArray.unshift(...baseConfigArray); - return this._cacheConfig(directoryPath, configArray); - } - - // Load from the ancestors and merge it. - const parentPath = path__default["default"].dirname(directoryPath); - const parentConfigArray = parentPath && parentPath !== directoryPath - ? this._loadConfigInAncestors( - parentPath, - configsExistInSubdirs || configArray.length > 0 - ) - : baseConfigArray; - - if (configArray.length > 0) { - configArray.unshift(...parentConfigArray); - } else { - configArray = parentConfigArray; - } - - // Cache and return. - return this._cacheConfig(directoryPath, configArray); - } - - /** - * Freeze and cache a given config. - * @param {string} directoryPath The path to a directory as a cache key. - * @param {ConfigArray} configArray The config array as a cache value. - * @returns {ConfigArray} The `configArray` (frozen). - */ - _cacheConfig(directoryPath, configArray) { - const { configCache } = internalSlotsMap.get(this); - - Object.freeze(configArray); - configCache.set(directoryPath, configArray); - - return configArray; - } - - /** - * Finalize a given config array. - * Concatenate `--config` and other CLI options. - * @param {ConfigArray} configArray The parent config array. - * @param {string} directoryPath The path to the leaf directory to find config files. - * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The loaded config. - * @private - */ - _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) { - const { - cliConfigArray, - configArrayFactory, - finalizeCache, - useEslintrc, - builtInRules - } = internalSlotsMap.get(this); - - let finalConfigArray = finalizeCache.get(configArray); - - if (!finalConfigArray) { - finalConfigArray = configArray; - - // Load the personal config if there are no regular config files. - if ( - useEslintrc && - configArray.every(c => !c.filePath) && - cliConfigArray.every(c => !c.filePath) // `--config` option can be a file. - ) { - const homePath = os__default["default"].homedir(); - - debug$1("Loading the config file of the home directory:", homePath); - - const personalConfigArray = configArrayFactory.loadInDirectory( - homePath, - { name: "PersonalConfig" } - ); - - if ( - personalConfigArray.length > 0 && - !directoryPath.startsWith(homePath) - ) { - const lastElement = - personalConfigArray[personalConfigArray.length - 1]; - - emitDeprecationWarning( - lastElement.filePath, - "ESLINT_PERSONAL_CONFIG_LOAD" - ); - } - - finalConfigArray = finalConfigArray.concat(personalConfigArray); - } - - // Apply CLI options. - if (cliConfigArray.length > 0) { - finalConfigArray = finalConfigArray.concat(cliConfigArray); - } - - // Validate rule settings and environments. - const validator = new ConfigValidator({ - builtInRules - }); - - validator.validateConfigArray(finalConfigArray); - - // Cache it. - Object.freeze(finalConfigArray); - finalizeCache.set(configArray, finalConfigArray); - - debug$1( - "Configuration was determined: %o on %s", - finalConfigArray, - directoryPath - ); - } - - // At least one element (the default ignore patterns) exists. - if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) { - throw new ConfigurationNotFoundError(directoryPath); - } - - return finalConfigArray; - } -} - -/** - * @fileoverview Compatibility class for flat config. - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").Processor} Processor */ - -const debug = debugOrig__default["default"]("eslintrc:flat-compat"); -const cafactory = Symbol("cafactory"); - -/** - * Translates an ESLintRC-style config object into a flag-config-style config - * object. - * @param {Object} eslintrcConfig An ESLintRC-style config object. - * @param {Object} options Options to help translate the config. - * @param {string} options.resolveConfigRelativeTo To the directory to resolve - * configs from. - * @param {string} options.resolvePluginsRelativeTo The directory to resolve - * plugins from. - * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment - * names to objects. - * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor - * names to objects. - * @returns {Object} A flag-config-style config object. - */ -function translateESLintRC(eslintrcConfig, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo, - pluginEnvironments, - pluginProcessors -}) { - - const flatConfig = {}; - const configs = []; - const languageOptions = {}; - const linterOptions = {}; - const keysToCopy = ["settings", "rules", "processor"]; - const languageOptionsKeysToCopy = ["globals", "parser", "parserOptions"]; - const linterOptionsKeysToCopy = ["noInlineConfig", "reportUnusedDisableDirectives"]; - - // copy over simple translations - for (const key of keysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig[key] = eslintrcConfig[key]; - } - } - - // copy over languageOptions - for (const key of languageOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - - // create the languageOptions key in the flat config - flatConfig.languageOptions = languageOptions; - - if (key === "parser") { - debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`); - - if (eslintrcConfig[key].error) { - throw eslintrcConfig[key].error; - } - - languageOptions[key] = eslintrcConfig[key].definition; - continue; - } - - // clone any object values that are in the eslintrc config - if (eslintrcConfig[key] && typeof eslintrcConfig[key] === "object") { - languageOptions[key] = { - ...eslintrcConfig[key] - }; - } else { - languageOptions[key] = eslintrcConfig[key]; - } - } - } - - // copy over linterOptions - for (const key of linterOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig.linterOptions = linterOptions; - linterOptions[key] = eslintrcConfig[key]; - } - } - - // move ecmaVersion a level up - if (languageOptions.parserOptions) { - - if ("ecmaVersion" in languageOptions.parserOptions) { - languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion; - delete languageOptions.parserOptions.ecmaVersion; - } - - if ("sourceType" in languageOptions.parserOptions) { - languageOptions.sourceType = languageOptions.parserOptions.sourceType; - delete languageOptions.parserOptions.sourceType; - } - - // check to see if we even need parserOptions anymore and remove it if not - if (Object.keys(languageOptions.parserOptions).length === 0) { - delete languageOptions.parserOptions; - } - } - - // overrides - if (eslintrcConfig.criteria) { - flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)]; - } - - // translate plugins - if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === "object") { - debug(`Translating plugins: ${eslintrcConfig.plugins}`); - - flatConfig.plugins = {}; - - for (const pluginName of Object.keys(eslintrcConfig.plugins)) { - - debug(`Translating plugin: ${pluginName}`); - debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`); - - const { original: plugin, error } = eslintrcConfig.plugins[pluginName]; - - if (error) { - throw error; - } - - flatConfig.plugins[pluginName] = plugin; - - // create a config for any processors - if (plugin.processors) { - for (const processorName of Object.keys(plugin.processors)) { - if (processorName.startsWith(".")) { - debug(`Assigning processor: ${pluginName}/${processorName}`); - - configs.unshift({ - files: [`**/*${processorName}`], - processor: pluginProcessors.get(`${pluginName}/${processorName}`) - }); - } - - } - } - } - } - - // translate env - must come after plugins - if (eslintrcConfig.env && typeof eslintrcConfig.env === "object") { - for (const envName of Object.keys(eslintrcConfig.env)) { - - // only add environments that are true - if (eslintrcConfig.env[envName]) { - debug(`Translating environment: ${envName}`); - - if (environments.has(envName)) { - - // built-in environments should be defined first - configs.unshift(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...environments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } else if (pluginEnvironments.has(envName)) { - - // if the environment comes from a plugin, it should come after the plugin config - configs.push(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...pluginEnvironments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } - } - } - } - - // only add if there are actually keys in the config - if (Object.keys(flatConfig).length > 0) { - configs.push(flatConfig); - } - - return configs; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A compatibility class for working with configs. - */ -class FlatCompat { - - constructor({ - baseDirectory = process.cwd(), - resolvePluginsRelativeTo = baseDirectory, - recommendedConfig, - allConfig - } = {}) { - this.baseDirectory = baseDirectory; - this.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - this[cafactory] = new ConfigArrayFactory({ - cwd: baseDirectory, - resolvePluginsRelativeTo, - getEslintAllConfig: () => { - - if (!allConfig) { - throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor."); - } - - return allConfig; - }, - getEslintRecommendedConfig: () => { - - if (!recommendedConfig) { - throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor."); - } - - return recommendedConfig; - } - }); - } - - /** - * Translates an ESLintRC-style config into a flag-config-style config. - * @param {Object} eslintrcConfig The ESLintRC-style config object. - * @returns {Object} A flag-config-style config object. - */ - config(eslintrcConfig) { - const eslintrcArray = this[cafactory].create(eslintrcConfig, { - basePath: this.baseDirectory - }); - - const flatArray = []; - let hasIgnorePatterns = false; - - eslintrcArray.forEach(configData => { - if (configData.type === "config") { - hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern; - flatArray.push(...translateESLintRC(configData, { - resolveConfigRelativeTo: path__default["default"].join(this.baseDirectory, "__placeholder.js"), - resolvePluginsRelativeTo: path__default["default"].join(this.resolvePluginsRelativeTo, "__placeholder.js"), - pluginEnvironments: eslintrcArray.pluginEnvironments, - pluginProcessors: eslintrcArray.pluginProcessors - })); - } - }); - - // combine ignorePatterns to emulate ESLintRC behavior better - if (hasIgnorePatterns) { - flatArray.unshift({ - ignores: [filePath => { - - // Compute the final config for this file. - // This filters config array elements by `files`/`excludedFiles` then merges the elements. - const finalConfig = eslintrcArray.extractConfig(filePath); - - // Test the `ignorePattern` properties of the final config. - return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath); - }] - }); - } - - return flatArray; - } - - /** - * Translates the `env` section of an ESLintRC-style config. - * @param {Object} envConfig The `env` section of an ESLintRC config. - * @returns {Object[]} An array of flag-config objects representing the environments. - */ - env(envConfig) { - return this.config({ - env: envConfig - }); - } - - /** - * Translates the `extends` section of an ESLintRC-style config. - * @param {...string} configsToExtend The names of the configs to load. - * @returns {Object[]} An array of flag-config objects representing the config. - */ - extends(...configsToExtend) { - return this.config({ - extends: configsToExtend - }); - } - - /** - * Translates the `plugins` section of an ESLintRC-style config. - * @param {...string} plugins The names of the plugins to load. - * @returns {Object[]} An array of flag-config objects representing the plugins. - */ - plugins(...plugins) { - return this.config({ - plugins - }); - } -} - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - ConfigArray, - createConfigArrayFactoryContext: createContext, - CascadingConfigArrayFactory, - ConfigArrayFactory, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs, - environments, - loadConfigFile, - - // shared - ConfigOps, - ConfigValidator, - ModuleResolver, - naming -}; - -exports.FlatCompat = FlatCompat; -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc.cjs.map diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map deleted file mode 100644 index e7893202..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc.cjs","sources":["../lib/config-array/ignore-pattern.js","../lib/config-array/extracted-config.js","../lib/config-array/config-array.js","../lib/config-array/config-dependency.js","../lib/config-array/override-tester.js","../lib/config-array/index.js","../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../lib/shared/deep-merge-arrays.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/shared/relative-module-resolver.js","../lib/config-array-factory.js","../lib/cascading-config-array-factory.js","../lib/flat-compat.js","../lib/index.js"],"sourcesContent":["/**\n * @fileoverview `IgnorePattern` class.\n *\n * `IgnorePattern` class has the set of glob patterns and the base path.\n *\n * It provides two static methods.\n *\n * - `IgnorePattern.createDefaultIgnore(cwd)`\n * Create the default predicate function.\n * - `IgnorePattern.createIgnore(ignorePatterns)`\n * Create the predicate function from multiple `IgnorePattern` objects.\n *\n * It provides two properties and a method.\n *\n * - `patterns`\n * The glob patterns that ignore to lint.\n * - `basePath`\n * The base path of the glob patterns. If absolute paths existed in the\n * glob patterns, those are handled as relative paths to the base path.\n * - `getPatternsRelativeTo(basePath)`\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n *\n * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes\n * `ignorePatterns` properties.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport ignore from \"ignore\";\nimport debugOrig from \"debug\";\n\nconst debug = debugOrig(\"eslintrc:ignore-pattern\");\n\n/** @typedef {ReturnType} Ignore */\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the path to the common ancestor directory of given paths.\n * @param {string[]} sourcePaths The paths to calculate the common ancestor.\n * @returns {string} The path to the common ancestor directory.\n */\nfunction getCommonAncestorPath(sourcePaths) {\n let result = sourcePaths[0];\n\n for (let i = 1; i < sourcePaths.length; ++i) {\n const a = result;\n const b = sourcePaths[i];\n\n // Set the shorter one (it's the common ancestor if one includes the other).\n result = a.length < b.length ? a : b;\n\n // Set the common ancestor.\n for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) {\n if (a[j] !== b[j]) {\n result = a.slice(0, lastSepPos);\n break;\n }\n if (a[j] === path.sep) {\n lastSepPos = j;\n }\n }\n }\n\n let resolvedResult = result || path.sep;\n\n // if Windows common ancestor is root of drive must have trailing slash to be absolute.\n if (resolvedResult && resolvedResult.endsWith(\":\") && process.platform === \"win32\") {\n resolvedResult += path.sep;\n }\n return resolvedResult;\n}\n\n/**\n * Make relative path.\n * @param {string} from The source path to get relative path.\n * @param {string} to The destination path to get relative path.\n * @returns {string} The relative path.\n */\nfunction relative(from, to) {\n const relPath = path.relative(from, to);\n\n if (path.sep === \"/\") {\n return relPath;\n }\n return relPath.split(path.sep).join(\"/\");\n}\n\n/**\n * Get the trailing slash if existed.\n * @param {string} filePath The path to check.\n * @returns {string} The trailing slash if existed.\n */\nfunction dirSuffix(filePath) {\n const isDir = (\n filePath.endsWith(path.sep) ||\n (process.platform === \"win32\" && filePath.endsWith(\"/\"))\n );\n\n return isDir ? \"/\" : \"\";\n}\n\nconst DefaultPatterns = Object.freeze([\"/**/node_modules/*\"]);\nconst DotPatterns = Object.freeze([\".*\", \"!.eslintrc.*\", \"!../\"]);\n\n//------------------------------------------------------------------------------\n// Public\n//------------------------------------------------------------------------------\n\nclass IgnorePattern {\n\n /**\n * The default patterns.\n * @type {string[]}\n */\n static get DefaultPatterns() {\n return DefaultPatterns;\n }\n\n /**\n * Create the default predicate function.\n * @param {string} cwd The current working directory.\n * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createDefaultIgnore(cwd) {\n return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]);\n }\n\n /**\n * Create the predicate function from multiple `IgnorePattern` objects.\n * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns.\n * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createIgnore(ignorePatterns) {\n debug(\"Create with: %o\", ignorePatterns);\n\n const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath));\n const patterns = [].concat(\n ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath))\n );\n const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]);\n const dotIg = ignore({ allowRelativePaths: true }).add(patterns);\n\n debug(\" processed: %o\", { basePath, patterns });\n\n return Object.assign(\n (filePath, dot = false) => {\n assert(path.isAbsolute(filePath), \"'filePath' should be an absolute path.\");\n const relPathRaw = relative(basePath, filePath);\n const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath));\n const adoptedIg = dot ? dotIg : ig;\n const result = relPath !== \"\" && adoptedIg.ignores(relPath);\n\n debug(\"Check\", { filePath, dot, relativePath: relPath, result });\n return result;\n },\n { basePath, patterns }\n );\n }\n\n /**\n * Initialize a new `IgnorePattern` instance.\n * @param {string[]} patterns The glob patterns that ignore to lint.\n * @param {string} basePath The base path of `patterns`.\n */\n constructor(patterns, basePath) {\n assert(path.isAbsolute(basePath), \"'basePath' should be an absolute path.\");\n\n /**\n * The glob patterns that ignore to lint.\n * @type {string[]}\n */\n this.patterns = patterns;\n\n /**\n * The base path of `patterns`.\n * @type {string}\n */\n this.basePath = basePath;\n\n /**\n * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`.\n *\n * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility.\n * It's `false` as-is for `ignorePatterns` property in config files.\n * @type {boolean}\n */\n this.loose = false;\n }\n\n /**\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n * @param {string} newBasePath The base path.\n * @returns {string[]} Modifired patterns.\n */\n getPatternsRelativeTo(newBasePath) {\n assert(path.isAbsolute(newBasePath), \"'newBasePath' should be an absolute path.\");\n const { basePath, loose, patterns } = this;\n\n if (newBasePath === basePath) {\n return patterns;\n }\n const prefix = `/${relative(newBasePath, basePath)}`;\n\n return patterns.map(pattern => {\n const negative = pattern.startsWith(\"!\");\n const head = negative ? \"!\" : \"\";\n const body = negative ? pattern.slice(1) : pattern;\n\n if (body.startsWith(\"/\") || body.startsWith(\"../\")) {\n return `${head}${prefix}${body}`;\n }\n return loose ? pattern : `${head}${prefix}/**/${body}`;\n });\n }\n}\n\nexport { IgnorePattern };\n","/**\n * @fileoverview `ExtractedConfig` class.\n *\n * `ExtractedConfig` class expresses a final configuration for a specific file.\n *\n * It provides one method.\n *\n * - `toCompatibleObjectAsConfigFileContent()`\n * Convert this configuration to the compatible object as the content of\n * config files. It converts the loaded parser and plugins to strings.\n * `CLIEngine#getConfigForFile(filePath)` method uses this method.\n *\n * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance.\n *\n * @author Toru Nagashima \n */\n\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n// For VSCode intellisense\n/** @typedef {import(\"../../shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").SeverityConf} SeverityConf */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n\n/**\n * Check if `xs` starts with `ys`.\n * @template T\n * @param {T[]} xs The array to check.\n * @param {T[]} ys The array that may be the first part of `xs`.\n * @returns {boolean} `true` if `xs` starts with `ys`.\n */\nfunction startsWith(xs, ys) {\n return xs.length >= ys.length && ys.every((y, i) => y === xs[i]);\n}\n\n/**\n * The class for extracted config data.\n */\nclass ExtractedConfig {\n constructor() {\n\n /**\n * The config name what `noInlineConfig` setting came from.\n * @type {string}\n */\n this.configNameOfNoInlineConfig = \"\";\n\n /**\n * Environments.\n * @type {Record}\n */\n this.env = {};\n\n /**\n * Global variables.\n * @type {Record}\n */\n this.globals = {};\n\n /**\n * The glob patterns that ignore to lint.\n * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined}\n */\n this.ignores = void 0;\n\n /**\n * The flag that disables directive comments.\n * @type {boolean|undefined}\n */\n this.noInlineConfig = void 0;\n\n /**\n * Parser definition.\n * @type {DependentParser|null}\n */\n this.parser = null;\n\n /**\n * Options for the parser.\n * @type {Object}\n */\n this.parserOptions = {};\n\n /**\n * Plugin definitions.\n * @type {Record}\n */\n this.plugins = {};\n\n /**\n * Processor ID.\n * @type {string|null}\n */\n this.processor = null;\n\n /**\n * The flag that reports unused `eslint-disable` directive comments.\n * @type {boolean|undefined}\n */\n this.reportUnusedDisableDirectives = void 0;\n\n /**\n * Rule settings.\n * @type {Record}\n */\n this.rules = {};\n\n /**\n * Shared settings.\n * @type {Object}\n */\n this.settings = {};\n }\n\n /**\n * Convert this config to the compatible object as a config file content.\n * @returns {ConfigData} The converted object.\n */\n toCompatibleObjectAsConfigFileContent() {\n const {\n /* eslint-disable no-unused-vars */\n configNameOfNoInlineConfig: _ignore1,\n processor: _ignore2,\n /* eslint-enable no-unused-vars */\n ignores,\n ...config\n } = this;\n\n config.parser = config.parser && config.parser.filePath;\n config.plugins = Object.keys(config.plugins).filter(Boolean).reverse();\n config.ignorePatterns = ignores ? ignores.patterns : [];\n\n // Strip the default patterns from `ignorePatterns`.\n if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) {\n config.ignorePatterns =\n config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length);\n }\n\n return config;\n }\n}\n\nexport { ExtractedConfig };\n","/**\n * @fileoverview `ConfigArray` class.\n *\n * `ConfigArray` class expresses the full of a configuration. It has the entry\n * config file, base config files that were extended, loaded parsers, and loaded\n * plugins.\n *\n * `ConfigArray` class provides three properties and two methods.\n *\n * - `pluginEnvironments`\n * - `pluginProcessors`\n * - `pluginRules`\n * The `Map` objects that contain the members of all plugins that this\n * config array contains. Those map objects don't have mutation methods.\n * Those keys are the member ID such as `pluginId/memberName`.\n * - `isRoot()`\n * If `true` then this configuration has `root:true` property.\n * - `extractConfig(filePath)`\n * Extract the final configuration for a given file. This means merging\n * every config array element which that `criteria` property matched. The\n * `filePath` argument must be an absolute path.\n *\n * `ConfigArrayFactory` provides the loading logic of config files.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").RuleConf} RuleConf */\n/** @typedef {import(\"../../shared/types\").Rule} Rule */\n/** @typedef {import(\"../../shared/types\").Plugin} Plugin */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {import(\"./override-tester\")[\"OverrideTester\"]} OverrideTester */\n\n/**\n * @typedef {Object} ConfigArrayElement\n * @property {string} name The name of this config element.\n * @property {string} filePath The path to the source file of this config element.\n * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element.\n * @property {Record|undefined} env The environment settings.\n * @property {Record|undefined} globals The global variable settings.\n * @property {IgnorePattern|undefined} ignorePattern The ignore patterns.\n * @property {boolean|undefined} noInlineConfig The flag that disables directive comments.\n * @property {DependentParser|undefined} parser The parser loader.\n * @property {Object|undefined} parserOptions The parser options.\n * @property {Record|undefined} plugins The plugin loaders.\n * @property {string|undefined} processor The processor name to refer plugin's processor.\n * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments.\n * @property {boolean|undefined} root The flag to express root.\n * @property {Record|undefined} rules The rule settings\n * @property {Object|undefined} settings The shared settings.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The element type.\n */\n\n/**\n * @typedef {Object} ConfigArrayInternalSlots\n * @property {Map} cache The cache to extract configs.\n * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition.\n * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition.\n * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new class extends WeakMap {\n get(key) {\n let value = super.get(key);\n\n if (!value) {\n value = {\n cache: new Map(),\n envMap: null,\n processorMap: null,\n ruleMap: null\n };\n super.set(key, value);\n }\n\n return value;\n }\n}();\n\n/**\n * Get the indices which are matched to a given file.\n * @param {ConfigArrayElement[]} elements The elements.\n * @param {string} filePath The path to a target file.\n * @returns {number[]} The indices.\n */\nfunction getMatchedIndices(elements, filePath) {\n const indices = [];\n\n for (let i = elements.length - 1; i >= 0; --i) {\n const element = elements[i];\n\n if (!element.criteria || (filePath && element.criteria.test(filePath))) {\n indices.push(i);\n }\n }\n\n return indices;\n}\n\n/**\n * Check if a value is a non-null object.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is a non-null object.\n */\nfunction isNonNullObject(x) {\n return typeof x === \"object\" && x !== null;\n}\n\n/**\n * Merge two objects.\n *\n * Assign every property values of `y` to `x` if `x` doesn't have the property.\n * If `x`'s property value is an object, it does recursive.\n * @param {Object} target The destination to merge\n * @param {Object|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeWithoutOverwrite(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n\n if (isNonNullObject(target[key])) {\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (target[key] === void 0) {\n if (isNonNullObject(source[key])) {\n target[key] = Array.isArray(source[key]) ? [] : {};\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (source[key] !== void 0) {\n target[key] = source[key];\n }\n }\n }\n}\n\n/**\n * The error for plugin conflicts.\n */\nclass PluginConflictError extends Error {\n\n /**\n * Initialize this error object.\n * @param {string} pluginId The plugin ID.\n * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins.\n */\n constructor(pluginId, plugins) {\n super(`Plugin \"${pluginId}\" was conflicted between ${plugins.map(p => `\"${p.importerName}\"`).join(\" and \")}.`);\n this.messageTemplate = \"plugin-conflict\";\n this.messageData = { pluginId, plugins };\n }\n}\n\n/**\n * Merge plugins.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergePlugins(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetValue = target[key];\n const sourceValue = source[key];\n\n // Adopt the plugin which was found at first.\n if (targetValue === void 0) {\n if (sourceValue.error) {\n throw sourceValue.error;\n }\n target[key] = sourceValue;\n } else if (sourceValue.filePath !== targetValue.filePath) {\n throw new PluginConflictError(key, [\n {\n filePath: targetValue.filePath,\n importerName: targetValue.importerName\n },\n {\n filePath: sourceValue.filePath,\n importerName: sourceValue.importerName\n }\n ]);\n }\n }\n}\n\n/**\n * Merge rule configs.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeRuleConfigs(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetDef = target[key];\n const sourceDef = source[key];\n\n // Adopt the rule config which was found at first.\n if (targetDef === void 0) {\n if (Array.isArray(sourceDef)) {\n target[key] = [...sourceDef];\n } else {\n target[key] = [sourceDef];\n }\n\n /*\n * If the first found rule config is severity only and the current rule\n * config has options, merge the severity and the options.\n */\n } else if (\n targetDef.length === 1 &&\n Array.isArray(sourceDef) &&\n sourceDef.length >= 2\n ) {\n targetDef.push(...sourceDef.slice(1));\n }\n }\n}\n\n/**\n * Create the extracted config.\n * @param {ConfigArray} instance The config elements.\n * @param {number[]} indices The indices to use.\n * @returns {ExtractedConfig} The extracted config.\n */\nfunction createConfig(instance, indices) {\n const config = new ExtractedConfig();\n const ignorePatterns = [];\n\n // Merge elements.\n for (const index of indices) {\n const element = instance[index];\n\n // Adopt the parser which was found at first.\n if (!config.parser && element.parser) {\n if (element.parser.error) {\n throw element.parser.error;\n }\n config.parser = element.parser;\n }\n\n // Adopt the processor which was found at first.\n if (!config.processor && element.processor) {\n config.processor = element.processor;\n }\n\n // Adopt the noInlineConfig which was found at first.\n if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) {\n config.noInlineConfig = element.noInlineConfig;\n config.configNameOfNoInlineConfig = element.name;\n }\n\n // Adopt the reportUnusedDisableDirectives which was found at first.\n if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) {\n config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives;\n }\n\n // Collect ignorePatterns\n if (element.ignorePattern) {\n ignorePatterns.push(element.ignorePattern);\n }\n\n // Merge others.\n mergeWithoutOverwrite(config.env, element.env);\n mergeWithoutOverwrite(config.globals, element.globals);\n mergeWithoutOverwrite(config.parserOptions, element.parserOptions);\n mergeWithoutOverwrite(config.settings, element.settings);\n mergePlugins(config.plugins, element.plugins);\n mergeRuleConfigs(config.rules, element.rules);\n }\n\n // Create the predicate function for ignore patterns.\n if (ignorePatterns.length > 0) {\n config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse());\n }\n\n return config;\n}\n\n/**\n * Collect definitions.\n * @template T, U\n * @param {string} pluginId The plugin ID for prefix.\n * @param {Record} defs The definitions to collect.\n * @param {Map} map The map to output.\n * @returns {void}\n */\nfunction collect(pluginId, defs, map) {\n if (defs) {\n const prefix = pluginId && `${pluginId}/`;\n\n for (const [key, value] of Object.entries(defs)) {\n map.set(`${prefix}${key}`, value);\n }\n }\n}\n\n/**\n * Delete the mutation methods from a given map.\n * @param {Map} map The map object to delete.\n * @returns {void}\n */\nfunction deleteMutationMethods(map) {\n Object.defineProperties(map, {\n clear: { configurable: true, value: void 0 },\n delete: { configurable: true, value: void 0 },\n set: { configurable: true, value: void 0 }\n });\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArrayElement[]} elements The config elements.\n * @param {ConfigArrayInternalSlots} slots The internal slots.\n * @returns {void}\n */\nfunction initPluginMemberMaps(elements, slots) {\n const processed = new Set();\n\n slots.envMap = new Map();\n slots.processorMap = new Map();\n slots.ruleMap = new Map();\n\n for (const element of elements) {\n if (!element.plugins) {\n continue;\n }\n\n for (const [pluginId, value] of Object.entries(element.plugins)) {\n const plugin = value.definition;\n\n if (!plugin || processed.has(pluginId)) {\n continue;\n }\n processed.add(pluginId);\n\n collect(pluginId, plugin.environments, slots.envMap);\n collect(pluginId, plugin.processors, slots.processorMap);\n collect(pluginId, plugin.rules, slots.ruleMap);\n }\n }\n\n deleteMutationMethods(slots.envMap);\n deleteMutationMethods(slots.processorMap);\n deleteMutationMethods(slots.ruleMap);\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArray} instance The config elements.\n * @returns {ConfigArrayInternalSlots} The extracted config.\n */\nfunction ensurePluginMemberMaps(instance) {\n const slots = internalSlotsMap.get(instance);\n\n if (!slots.ruleMap) {\n initPluginMemberMaps(instance, slots);\n }\n\n return slots;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The Config Array.\n *\n * `ConfigArray` instance contains all settings, parsers, and plugins.\n * You need to call `ConfigArray#extractConfig(filePath)` method in order to\n * extract, merge and get only the config data which is related to an arbitrary\n * file.\n * @extends {Array}\n */\nclass ConfigArray extends Array {\n\n /**\n * Get the plugin environments.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin environments.\n */\n get pluginEnvironments() {\n return ensurePluginMemberMaps(this).envMap;\n }\n\n /**\n * Get the plugin processors.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin processors.\n */\n get pluginProcessors() {\n return ensurePluginMemberMaps(this).processorMap;\n }\n\n /**\n * Get the plugin rules.\n * The returned map cannot be mutated.\n * @returns {ReadonlyMap} The plugin rules.\n */\n get pluginRules() {\n return ensurePluginMemberMaps(this).ruleMap;\n }\n\n /**\n * Check if this config has `root` flag.\n * @returns {boolean} `true` if this config array is root.\n */\n isRoot() {\n for (let i = this.length - 1; i >= 0; --i) {\n const root = this[i].root;\n\n if (typeof root === \"boolean\") {\n return root;\n }\n }\n return false;\n }\n\n /**\n * Extract the config data which is related to a given file.\n * @param {string} filePath The absolute path to the target file.\n * @returns {ExtractedConfig} The extracted config data.\n */\n extractConfig(filePath) {\n const { cache } = internalSlotsMap.get(this);\n const indices = getMatchedIndices(this, filePath);\n const cacheKey = indices.join(\",\");\n\n if (!cache.has(cacheKey)) {\n cache.set(cacheKey, createConfig(this, indices));\n }\n\n return cache.get(cacheKey);\n }\n\n /**\n * Check if a given path is an additional lint target.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the file is an additional lint target.\n */\n isAdditionalTargetPath(filePath) {\n for (const { criteria, type } of this) {\n if (\n type === \"config\" &&\n criteria &&\n !criteria.endsWithWildcard &&\n criteria.test(filePath)\n ) {\n return true;\n }\n }\n return false;\n }\n}\n\n/**\n * Get the used extracted configs.\n * CLIEngine will use this method to collect used deprecated rules.\n * @param {ConfigArray} instance The config array object to get.\n * @returns {ExtractedConfig[]} The used extracted configs.\n * @private\n */\nfunction getUsedExtractedConfigs(instance) {\n const { cache } = internalSlotsMap.get(instance);\n\n return Array.from(cache.values());\n}\n\n\nexport {\n ConfigArray,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview `ConfigDependency` class.\n *\n * `ConfigDependency` class expresses a loaded parser or plugin.\n *\n * If the parser or plugin was loaded successfully, it has `definition` property\n * and `filePath` property. Otherwise, it has `error` property.\n *\n * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it\n * omits `definition` property.\n *\n * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers\n * or plugins.\n *\n * @author Toru Nagashima \n */\n\nimport util from \"util\";\n\n/**\n * The class is to store parsers or plugins.\n * This class hides the loaded object from `JSON.stringify()` and `console.log`.\n * @template T\n */\nclass ConfigDependency {\n\n /**\n * Initialize this instance.\n * @param {Object} data The dependency data.\n * @param {T} [data.definition] The dependency if the loading succeeded.\n * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded.\n * @param {Error} [data.error] The error object if the loading failed.\n * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded.\n * @param {string} data.id The ID of this dependency.\n * @param {string} data.importerName The name of the config file which loads this dependency.\n * @param {string} data.importerPath The path to the config file which loads this dependency.\n */\n constructor({\n definition = null,\n original = null,\n error = null,\n filePath = null,\n id,\n importerName,\n importerPath\n }) {\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {T|null}\n */\n this.definition = definition;\n\n /**\n * The original dependency as loaded directly from disk if the loading succeeded.\n * @type {T|null}\n */\n this.original = original;\n\n /**\n * The error object if the loading failed.\n * @type {Error|null}\n */\n this.error = error;\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {string|null}\n */\n this.filePath = filePath;\n\n /**\n * The ID of this dependency.\n * @type {string}\n */\n this.id = id;\n\n /**\n * The name of the config file which loads this dependency.\n * @type {string}\n */\n this.importerName = importerName;\n\n /**\n * The path to the config file which loads this dependency.\n * @type {string}\n */\n this.importerPath = importerPath;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n const obj = this[util.inspect.custom]();\n\n // Display `error.message` (`Error#message` is unenumerable).\n if (obj.error instanceof Error) {\n obj.error = { ...obj.error, message: obj.error.message };\n }\n\n return obj;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n const {\n definition: _ignore1, // eslint-disable-line no-unused-vars\n original: _ignore2, // eslint-disable-line no-unused-vars\n ...obj\n } = this;\n\n return obj;\n }\n}\n\n/** @typedef {ConfigDependency} DependentParser */\n/** @typedef {ConfigDependency} DependentPlugin */\n\nexport { ConfigDependency };\n","/**\n * @fileoverview `OverrideTester` class.\n *\n * `OverrideTester` class handles `files` property and `excludedFiles` property\n * of `overrides` config.\n *\n * It provides one method.\n *\n * - `test(filePath)`\n * Test if a file path matches the pair of `files` property and\n * `excludedFiles` property. The `filePath` argument must be an absolute\n * path.\n *\n * `ConfigArrayFactory` creates `OverrideTester` objects when it processes\n * `overrides` properties.\n *\n * @author Toru Nagashima \n */\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport util from \"util\";\nimport minimatch from \"minimatch\";\n\nconst { Minimatch } = minimatch;\n\nconst minimatchOpts = { dot: true, matchBase: true };\n\n/**\n * @typedef {Object} Pattern\n * @property {InstanceType[] | null} includes The positive matchers.\n * @property {InstanceType[] | null} excludes The negative matchers.\n */\n\n/**\n * Normalize a given pattern to an array.\n * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns.\n * @returns {string[]|null} Normalized patterns.\n * @private\n */\nfunction normalizePatterns(patterns) {\n if (Array.isArray(patterns)) {\n return patterns.filter(Boolean);\n }\n if (typeof patterns === \"string\" && patterns) {\n return [patterns];\n }\n return [];\n}\n\n/**\n * Create the matchers of given patterns.\n * @param {string[]} patterns The patterns.\n * @returns {InstanceType[] | null} The matchers.\n */\nfunction toMatcher(patterns) {\n if (patterns.length === 0) {\n return null;\n }\n return patterns.map(pattern => {\n if (/^\\.[/\\\\]/u.test(pattern)) {\n return new Minimatch(\n pattern.slice(2),\n\n // `./*.js` should not match with `subdir/foo.js`\n { ...minimatchOpts, matchBase: false }\n );\n }\n return new Minimatch(pattern, minimatchOpts);\n });\n}\n\n/**\n * Convert a given matcher to string.\n * @param {Pattern} matchers The matchers.\n * @returns {string} The string expression of the matcher.\n */\nfunction patternToJson({ includes, excludes }) {\n return {\n includes: includes && includes.map(m => m.pattern),\n excludes: excludes && excludes.map(m => m.pattern)\n };\n}\n\n/**\n * The class to test given paths are matched by the patterns.\n */\nclass OverrideTester {\n\n /**\n * Create a tester with given criteria.\n * If there are no criteria, returns `null`.\n * @param {string|string[]} files The glob patterns for included files.\n * @param {string|string[]} excludedFiles The glob patterns for excluded files.\n * @param {string} basePath The path to the base directory to test paths.\n * @returns {OverrideTester|null} The created instance or `null`.\n */\n static create(files, excludedFiles, basePath) {\n const includePatterns = normalizePatterns(files);\n const excludePatterns = normalizePatterns(excludedFiles);\n let endsWithWildcard = false;\n\n if (includePatterns.length === 0) {\n return null;\n }\n\n // Rejects absolute paths or relative paths to parents.\n for (const pattern of includePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n if (pattern.endsWith(\"*\")) {\n endsWithWildcard = true;\n }\n }\n for (const pattern of excludePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n }\n\n const includes = toMatcher(includePatterns);\n const excludes = toMatcher(excludePatterns);\n\n return new OverrideTester(\n [{ includes, excludes }],\n basePath,\n endsWithWildcard\n );\n }\n\n /**\n * Combine two testers by logical and.\n * If either of the testers was `null`, returns the other tester.\n * The `basePath` property of the two must be the same value.\n * @param {OverrideTester|null} a A tester.\n * @param {OverrideTester|null} b Another tester.\n * @returns {OverrideTester|null} Combined tester.\n */\n static and(a, b) {\n if (!b) {\n return a && new OverrideTester(\n a.patterns,\n a.basePath,\n a.endsWithWildcard\n );\n }\n if (!a) {\n return new OverrideTester(\n b.patterns,\n b.basePath,\n b.endsWithWildcard\n );\n }\n\n assert.strictEqual(a.basePath, b.basePath);\n return new OverrideTester(\n a.patterns.concat(b.patterns),\n a.basePath,\n a.endsWithWildcard || b.endsWithWildcard\n );\n }\n\n /**\n * Initialize this instance.\n * @param {Pattern[]} patterns The matchers.\n * @param {string} basePath The base path.\n * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`.\n */\n constructor(patterns, basePath, endsWithWildcard = false) {\n\n /** @type {Pattern[]} */\n this.patterns = patterns;\n\n /** @type {string} */\n this.basePath = basePath;\n\n /** @type {boolean} */\n this.endsWithWildcard = endsWithWildcard;\n }\n\n /**\n * Test if a given path is matched or not.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the path was matched.\n */\n test(filePath) {\n if (typeof filePath !== \"string\" || !path.isAbsolute(filePath)) {\n throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`);\n }\n const relativePath = path.relative(this.basePath, filePath);\n\n return this.patterns.every(({ includes, excludes }) => (\n (!includes || includes.some(m => m.match(relativePath))) &&\n (!excludes || !excludes.some(m => m.match(relativePath)))\n ));\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n if (this.patterns.length === 1) {\n return {\n ...patternToJson(this.patterns[0]),\n basePath: this.basePath\n };\n }\n return {\n AND: this.patterns.map(patternToJson),\n basePath: this.basePath\n };\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n return this.toJSON();\n }\n}\n\nexport { OverrideTester };\n","/**\n * @fileoverview `ConfigArray` class.\n * @author Toru Nagashima \n */\n\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array.js\";\nimport { ConfigDependency } from \"./config-dependency.js\";\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\nimport { OverrideTester } from \"./override-tester.js\";\n\nexport {\n ConfigArray,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Applies default rule options\n * @author JoshuaKGoldberg\n */\n\n/**\n * Check if the variable contains an object strictly rejecting arrays\n * @param {unknown} value an object\n * @returns {boolean} Whether value is an object\n */\nfunction isObjectNotArray(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\n/**\n * Deeply merges second on top of first, creating a new {} object if needed.\n * @param {T} first Base, default value.\n * @param {U} second User-specified value.\n * @returns {T | U | (T & U)} Merged equivalent of second on top of first.\n */\nfunction deepMergeObjects(first, second) {\n if (second === void 0) {\n return first;\n }\n\n if (!isObjectNotArray(first) || !isObjectNotArray(second)) {\n return second;\n }\n\n const result = { ...first, ...second };\n\n for (const key of Object.keys(second)) {\n if (Object.prototype.propertyIsEnumerable.call(first, key)) {\n result[key] = deepMergeObjects(first[key], second[key]);\n }\n }\n\n return result;\n}\n\n/**\n * Deeply merges second on top of first, creating a new [] array if needed.\n * @param {T[] | undefined} first Base, default values.\n * @param {U[] | undefined} second User-specified values.\n * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first.\n */\nfunction deepMergeArrays(first, second) {\n if (!first || !second) {\n return second || first || [];\n }\n\n return [\n ...first.map((value, i) => deepMergeObjects(value, second[i])),\n ...second.slice(first.length)\n ];\n}\n\nexport { deepMergeArrays };\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport { deepMergeArrays } from \"./deep-merge-arrays.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);\n\n validateRule(mergedOptions);\n\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * Utility for resolving a module relative to another module\n * @author Teddy Katz\n */\n\nimport Module from \"module\";\n\n/*\n * `Module.createRequire` is added in v12.2.0. It supports URL as well.\n * We only support the case where the argument is a filepath, not a URL.\n */\nconst createRequire = Module.createRequire;\n\n/**\n * Resolves a Node module relative to another module\n * @param {string} moduleName The name of a Node module, or a path to a Node module.\n * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be\n * a file rather than a directory, but the file need not actually exist.\n * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`\n */\nfunction resolve(moduleName, relativeToPath) {\n try {\n return createRequire(relativeToPath).resolve(moduleName);\n } catch (error) {\n\n // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future.\n if (\n typeof error === \"object\" &&\n error !== null &&\n error.code === \"MODULE_NOT_FOUND\" &&\n !error.requireStack &&\n error.message.includes(moduleName)\n ) {\n error.message += `\\nRequire stack:\\n- ${relativeToPath}`;\n }\n throw error;\n }\n}\n\nexport {\n resolve\n};\n","/**\n * @fileoverview The factory of `ConfigArray` objects.\n *\n * This class provides methods to create `ConfigArray` instance.\n *\n * - `create(configData, options)`\n * Create a `ConfigArray` instance from a config data. This is to handle CLI\n * options except `--config`.\n * - `loadFile(filePath, options)`\n * Create a `ConfigArray` instance from a config file. This is to handle\n * `--config` option. If the file was not found, throws the following error:\n * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error.\n * - If the filename was `package.json`, an IO error or an\n * `ESLINT_CONFIG_FIELD_NOT_FOUND` error.\n * - Otherwise, an IO error such as `ENOENT`.\n * - `loadInDirectory(directoryPath, options)`\n * Create a `ConfigArray` instance from a config file which is on a given\n * directory. This tries to load `.eslintrc.*` or `package.json`. If not\n * found, returns an empty `ConfigArray`.\n * - `loadESLintIgnore(filePath)`\n * Create a `ConfigArray` instance from a config file that is `.eslintignore`\n * format. This is to handle `--ignore-path` option.\n * - `loadDefaultESLintIgnore()`\n * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in\n * the current working directory.\n *\n * `ConfigArrayFactory` class has the responsibility that loads configuration\n * files, including loading `extends`, `parser`, and `plugins`. The created\n * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`.\n *\n * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class\n * handles cascading and hierarchy.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport fs from \"fs\";\nimport importFresh from \"import-fresh\";\nimport { createRequire } from \"module\";\nimport path from \"path\";\nimport stripComments from \"strip-json-comments\";\n\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern,\n OverrideTester\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\n\nconst require = createRequire(import.meta.url);\n\nconst debug = debugOrig(\"eslintrc:config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\nconst configFilenames = [\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\",\n \"package.json\"\n];\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").OverrideConfigData} OverrideConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {import(\"./config-array/config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-array/config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {ConfigArray[0]} ConfigArrayElement */\n\n/**\n * @typedef {Object} ConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {string} [cwd] The path to the current working directory.\n * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryInternalSlots\n * @property {Map} additionalPluginPool The map for additional plugins.\n * @property {string} cwd The path to the current working directory.\n * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {string} pluginBasePath The base path to resolve plugins.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/** @type {WeakMap} */\nconst normalizedPlugins = new WeakMap();\n\n/**\n * Check if a given string is a file path.\n * @param {string} nameOrPath A module name or file path.\n * @returns {boolean} `true` if the `nameOrPath` is a file path.\n */\nfunction isFilePath(nameOrPath) {\n return (\n /^\\.{1,2}[/\\\\]/u.test(nameOrPath) ||\n path.isAbsolute(nameOrPath)\n );\n}\n\n/**\n * Convenience wrapper for synchronously reading file contents.\n * @param {string} filePath The filename to read.\n * @returns {string} The file contents, with the BOM removed.\n * @private\n */\nfunction readFile(filePath) {\n return fs.readFileSync(filePath, \"utf8\").replace(/^\\ufeff/u, \"\");\n}\n\n/**\n * Loads a YAML configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadYAMLConfigFile(filePath) {\n debug(`Loading YAML config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n\n // empty YAML file can be null, so always use\n return yaml.load(readFile(filePath)) || {};\n } catch (e) {\n debug(`Error reading YAML file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JSON configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSONConfigFile(filePath) {\n debug(`Loading JSON config file: ${filePath}`);\n\n try {\n return JSON.parse(stripComments(readFile(filePath)));\n } catch (e) {\n debug(`Error reading JSON file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n e.messageTemplate = \"failed-to-read-json\";\n e.messageData = {\n path: filePath,\n message: e.message\n };\n throw e;\n }\n}\n\n/**\n * Loads a legacy (.eslintrc) configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadLegacyConfigFile(filePath) {\n debug(`Loading legacy config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};\n } catch (e) {\n debug(\"Error reading YAML file: %s\\n%o\", filePath, e);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JavaScript configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSConfigFile(filePath) {\n debug(`Loading JS config file: ${filePath}`);\n try {\n return importFresh(filePath);\n } catch (e) {\n debug(`Error reading JavaScript file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a configuration from a package.json file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadPackageJSONConfigFile(filePath) {\n debug(`Loading package.json config file: ${filePath}`);\n try {\n const packageData = loadJSONConfigFile(filePath);\n\n if (!Object.hasOwnProperty.call(packageData, \"eslintConfig\")) {\n throw Object.assign(\n new Error(\"package.json file doesn't have 'eslintConfig' field.\"),\n { code: \"ESLINT_CONFIG_FIELD_NOT_FOUND\" }\n );\n }\n\n return packageData.eslintConfig;\n } catch (e) {\n debug(`Error reading package.json file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a `.eslintignore` from a file.\n * @param {string} filePath The filename to load.\n * @returns {string[]} The ignore patterns from the file.\n * @private\n */\nfunction loadESLintIgnoreFile(filePath) {\n debug(`Loading .eslintignore file: ${filePath}`);\n\n try {\n return readFile(filePath)\n .split(/\\r?\\n/gu)\n .filter(line => line.trim() !== \"\" && !line.startsWith(\"#\"));\n } catch (e) {\n debug(`Error reading .eslintignore file: ${filePath}`);\n e.message = `Cannot read .eslintignore file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Creates an error to notify about a missing config to extend from.\n * @param {string} configName The name of the missing config.\n * @param {string} importerName The name of the config that imported the missing config\n * @param {string} messageTemplate The text template to source error strings from.\n * @returns {Error} The error object to throw\n * @private\n */\nfunction configInvalidError(configName, importerName, messageTemplate) {\n return Object.assign(\n new Error(`Failed to load config \"${configName}\" to extend from.`),\n {\n messageTemplate,\n messageData: { configName, importerName }\n }\n );\n}\n\n/**\n * Loads a configuration file regardless of the source. Inspects the file path\n * to determine the correctly way to load the config file.\n * @param {string} filePath The path to the configuration.\n * @returns {ConfigData|null} The configuration information.\n * @private\n */\nfunction loadConfigFile(filePath) {\n switch (path.extname(filePath)) {\n case \".js\":\n case \".cjs\":\n return loadJSConfigFile(filePath);\n\n case \".json\":\n if (path.basename(filePath) === \"package.json\") {\n return loadPackageJSONConfigFile(filePath);\n }\n return loadJSONConfigFile(filePath);\n\n case \".yaml\":\n case \".yml\":\n return loadYAMLConfigFile(filePath);\n\n default:\n return loadLegacyConfigFile(filePath);\n }\n}\n\n/**\n * Write debug log.\n * @param {string} request The requested module name.\n * @param {string} relativeTo The file path to resolve the request relative to.\n * @param {string} filePath The resolved file path.\n * @returns {void}\n */\nfunction writeDebugLogForLoading(request, relativeTo, filePath) {\n /* istanbul ignore next */\n if (debug.enabled) {\n let nameAndVersion = null;\n\n try {\n const packageJsonPath = ModuleResolver.resolve(\n `${request}/package.json`,\n relativeTo\n );\n const { version = \"unknown\" } = require(packageJsonPath);\n\n nameAndVersion = `${request}@${version}`;\n } catch (error) {\n debug(\"package.json was not found:\", error.message);\n nameAndVersion = request;\n }\n\n debug(\"Loaded: %s (%s)\", nameAndVersion, filePath);\n }\n}\n\n/**\n * Create a new context with default values.\n * @param {ConfigArrayFactoryInternalSlots} slots The internal slots.\n * @param {\"config\" | \"ignore\" | \"implicit-processor\" | undefined} providedType The type of the current configuration. Default is `\"config\"`.\n * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`.\n * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string.\n * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`.\n * @returns {ConfigArrayFactoryLoadingContext} The created context.\n */\nfunction createContext(\n { cwd, resolvePluginsRelativeTo },\n providedType,\n providedName,\n providedFilePath,\n providedMatchBasePath\n) {\n const filePath = providedFilePath\n ? path.resolve(cwd, providedFilePath)\n : \"\";\n const matchBasePath =\n (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const name =\n providedName ||\n (filePath && path.relative(cwd, filePath)) ||\n \"\";\n const pluginBasePath =\n resolvePluginsRelativeTo ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const type = providedType || \"config\";\n\n return { filePath, matchBasePath, name, pluginBasePath, type };\n}\n\n/**\n * Normalize a given plugin.\n * - Ensure the object to have four properties: configs, environments, processors, and rules.\n * - Ensure the object to not have other properties.\n * @param {Plugin} plugin The plugin to normalize.\n * @returns {Plugin} The normalized plugin.\n */\nfunction normalizePlugin(plugin) {\n\n // first check the cache\n let normalizedPlugin = normalizedPlugins.get(plugin);\n\n if (normalizedPlugin) {\n return normalizedPlugin;\n }\n\n normalizedPlugin = {\n configs: plugin.configs || {},\n environments: plugin.environments || {},\n processors: plugin.processors || {},\n rules: plugin.rules || {}\n };\n\n // save the reference for later\n normalizedPlugins.set(plugin, normalizedPlugin);\n\n return normalizedPlugin;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The factory of `ConfigArray` objects.\n */\nclass ConfigArrayFactory {\n\n /**\n * Initialize this instance.\n * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins.\n */\n constructor({\n additionalPluginPool = new Map(),\n cwd = process.cwd(),\n resolvePluginsRelativeTo,\n builtInRules,\n resolver = ModuleResolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = {}) {\n internalSlotsMap.set(this, {\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo:\n resolvePluginsRelativeTo &&\n path.resolve(cwd, resolvePluginsRelativeTo),\n builtInRules,\n resolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n });\n }\n\n /**\n * Create `ConfigArray` instance from a config data.\n * @param {ConfigData|null} configData The config data to create.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.filePath] The path to this config data.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n create(configData, { basePath, filePath, name } = {}) {\n if (!configData) {\n return new ConfigArray();\n }\n\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n const elements = this._normalizeConfigData(configData, ctx);\n\n return new ConfigArray(...elements);\n }\n\n /**\n * Load a config file.\n * @param {string} filePath The path to a config file.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n loadFile(filePath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n\n return new ConfigArray(...this._loadConfigData(ctx));\n }\n\n /**\n * Load the config file on a given directory if exists.\n * @param {string} directoryPath The path to a directory.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadInDirectory(directoryPath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n\n for (const filename of configFilenames) {\n const ctx = createContext(\n slots,\n \"config\",\n name,\n path.join(directoryPath, filename),\n basePath\n );\n\n if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) {\n let configData;\n\n try {\n configData = loadConfigFile(ctx.filePath);\n } catch (error) {\n if (!error || error.code !== \"ESLINT_CONFIG_FIELD_NOT_FOUND\") {\n throw error;\n }\n }\n\n if (configData) {\n debug(`Config file found: ${ctx.filePath}`);\n return new ConfigArray(\n ...this._normalizeConfigData(configData, ctx)\n );\n }\n }\n }\n\n debug(`Config file not found on ${directoryPath}`);\n return new ConfigArray();\n }\n\n /**\n * Check if a config file on a given directory exists or not.\n * @param {string} directoryPath The path to a directory.\n * @returns {string | null} The path to the found config file. If not found then null.\n */\n static getPathToConfigFileInDirectory(directoryPath) {\n for (const filename of configFilenames) {\n const filePath = path.join(directoryPath, filename);\n\n if (fs.existsSync(filePath)) {\n if (filename === \"package.json\") {\n try {\n loadPackageJSONConfigFile(filePath);\n return filePath;\n } catch { /* ignore */ }\n } else {\n return filePath;\n }\n }\n }\n return null;\n }\n\n /**\n * Load `.eslintignore` file.\n * @param {string} filePath The path to a `.eslintignore` file to load.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadESLintIgnore(filePath) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(\n slots,\n \"ignore\",\n void 0,\n filePath,\n slots.cwd\n );\n const ignorePatterns = loadESLintIgnoreFile(ctx.filePath);\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(ignorePatterns, ctx)\n );\n }\n\n /**\n * Load `.eslintignore` file in the current working directory.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadDefaultESLintIgnore() {\n const slots = internalSlotsMap.get(this);\n const eslintIgnorePath = path.resolve(slots.cwd, \".eslintignore\");\n const packageJsonPath = path.resolve(slots.cwd, \"package.json\");\n\n if (fs.existsSync(eslintIgnorePath)) {\n return this.loadESLintIgnore(eslintIgnorePath);\n }\n if (fs.existsSync(packageJsonPath)) {\n const data = loadJSONConfigFile(packageJsonPath);\n\n if (Object.hasOwnProperty.call(data, \"eslintIgnore\")) {\n if (!Array.isArray(data.eslintIgnore)) {\n throw new Error(\"Package.json eslintIgnore property requires an array of paths\");\n }\n const ctx = createContext(\n slots,\n \"ignore\",\n \"eslintIgnore in package.json\",\n packageJsonPath,\n slots.cwd\n );\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx)\n );\n }\n }\n\n return new ConfigArray();\n }\n\n /**\n * Load a given config file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} Loaded config.\n * @private\n */\n _loadConfigData(ctx) {\n return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx);\n }\n\n /**\n * Normalize a given `.eslintignore` data to config array elements.\n * @param {string[]} ignorePatterns The patterns to ignore files.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeESLintIgnoreData(ignorePatterns, ctx) {\n const elements = this._normalizeObjectConfigData(\n { ignorePatterns },\n ctx\n );\n\n // Set `ignorePattern.loose` flag for backward compatibility.\n for (const element of elements) {\n if (element.ignorePattern) {\n element.ignorePattern.loose = true;\n }\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _normalizeConfigData(configData, ctx) {\n const validator = new ConfigValidator();\n\n validator.validateConfigSchema(configData, ctx.name || ctx.filePath);\n return this._normalizeObjectConfigData(configData, ctx);\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData|OverrideConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigData(configData, ctx) {\n const { files, excludedFiles, ...configBody } = configData;\n const criteria = OverrideTester.create(\n files,\n excludedFiles,\n ctx.matchBasePath\n );\n const elements = this._normalizeObjectConfigDataBody(configBody, ctx);\n\n // Apply the criteria to every element.\n for (const element of elements) {\n\n /*\n * Merge the criteria.\n * This is for the `overrides` entries that came from the\n * configurations of `overrides[].extends`.\n */\n element.criteria = OverrideTester.and(criteria, element.criteria);\n\n /*\n * Remove `root` property to ignore `root` settings which came from\n * `extends` in `overrides`.\n */\n if (element.criteria) {\n element.root = void 0;\n }\n\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigDataBody(\n {\n env,\n extends: extend,\n globals,\n ignorePatterns,\n noInlineConfig,\n parser: parserName,\n parserOptions,\n plugins: pluginList,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings,\n overrides: overrideList = []\n },\n ctx\n ) {\n const extendList = Array.isArray(extend) ? extend : [extend];\n const ignorePattern = ignorePatterns && new IgnorePattern(\n Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns],\n ctx.matchBasePath\n );\n\n // Flatten `extends`.\n for (const extendName of extendList.filter(Boolean)) {\n yield* this._loadExtends(extendName, ctx);\n }\n\n // Load parser & plugins.\n const parser = parserName && this._loadParser(parserName, ctx);\n const plugins = pluginList && this._loadPlugins(pluginList, ctx);\n\n // Yield pseudo config data for file extension processors.\n if (plugins) {\n yield* this._takeFileExtensionProcessors(plugins, ctx);\n }\n\n // Yield the config data except `extends` and `overrides`.\n yield {\n\n // Debug information.\n type: ctx.type,\n name: ctx.name,\n filePath: ctx.filePath,\n\n // Config data.\n criteria: null,\n env,\n globals,\n ignorePattern,\n noInlineConfig,\n parser,\n parserOptions,\n plugins,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings\n };\n\n // Flatten `overries`.\n for (let i = 0; i < overrideList.length; ++i) {\n yield* this._normalizeObjectConfigData(\n overrideList[i],\n { ...ctx, name: `${ctx.name}#overrides[${i}]` }\n );\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtends(extendName, ctx) {\n debug(\"Loading {extends:%j} relative to %s\", extendName, ctx.filePath);\n try {\n if (extendName.startsWith(\"eslint:\")) {\n return this._loadExtendedBuiltInConfig(extendName, ctx);\n }\n if (extendName.startsWith(\"plugin:\")) {\n return this._loadExtendedPluginConfig(extendName, ctx);\n }\n return this._loadExtendedShareableConfig(extendName, ctx);\n } catch (error) {\n error.message += `\\nReferenced from: ${ctx.filePath || ctx.name}`;\n throw error;\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedBuiltInConfig(extendName, ctx) {\n const {\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = internalSlotsMap.get(this);\n\n if (extendName === \"eslint:recommended\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintRecommendedConfig) {\n if (typeof getEslintRecommendedConfig !== \"function\") {\n throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);\n }\n return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintRecommendedPath\n });\n }\n if (extendName === \"eslint:all\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintAllConfig) {\n if (typeof getEslintAllConfig !== \"function\") {\n throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);\n }\n return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintAllPath\n });\n }\n\n throw configInvalidError(extendName, ctx.name, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedPluginConfig(extendName, ctx) {\n const slashIndex = extendName.lastIndexOf(\"/\");\n\n if (slashIndex === -1) {\n throw configInvalidError(extendName, ctx.filePath, \"plugin-invalid\");\n }\n\n const pluginName = extendName.slice(\"plugin:\".length, slashIndex);\n const configName = extendName.slice(slashIndex + 1);\n\n if (isFilePath(pluginName)) {\n throw new Error(\"'extends' cannot use a file path for plugins.\");\n }\n\n const plugin = this._loadPlugin(pluginName, ctx);\n const configData =\n plugin.definition &&\n plugin.definition.configs[configName];\n\n if (configData) {\n return this._normalizeConfigData(configData, {\n ...ctx,\n filePath: plugin.filePath || ctx.filePath,\n name: `${ctx.name} » plugin:${plugin.id}/${configName}`\n });\n }\n\n throw plugin.error || configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedShareableConfig(extendName, ctx) {\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n let request;\n\n if (isFilePath(extendName)) {\n request = extendName;\n } else if (extendName.startsWith(\".\")) {\n request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior.\n } else {\n request = naming.normalizePackageName(\n extendName,\n \"eslint-config\"\n );\n }\n\n let filePath;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (error) {\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n throw configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n throw error;\n }\n\n writeDebugLogForLoading(request, relativeTo, filePath);\n return this._loadConfigData({\n ...ctx,\n filePath,\n name: `${ctx.name} » ${request}`\n });\n }\n\n /**\n * Load given plugins.\n * @param {string[]} names The plugin names to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {Record} The loaded parser.\n * @private\n */\n _loadPlugins(names, ctx) {\n return names.reduce((map, name) => {\n if (isFilePath(name)) {\n throw new Error(\"Plugins array cannot includes file paths.\");\n }\n const plugin = this._loadPlugin(name, ctx);\n\n map[plugin.id] = plugin;\n\n return map;\n }, {});\n }\n\n /**\n * Load a given parser.\n * @param {string} nameOrPath The package name or the path to a parser file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentParser} The loaded parser.\n */\n _loadParser(nameOrPath, ctx) {\n debug(\"Loading parser %j from %s\", nameOrPath, ctx.filePath);\n\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n\n try {\n const filePath = resolver.resolve(nameOrPath, relativeTo);\n\n writeDebugLogForLoading(nameOrPath, relativeTo, filePath);\n\n return new ConfigDependency({\n definition: require(filePath),\n filePath,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (error) {\n\n // If the parser name is \"espree\", load the espree of ESLint.\n if (nameOrPath === \"espree\") {\n debug(\"Fallback espree.\");\n return new ConfigDependency({\n definition: require(\"espree\"),\n filePath: require.resolve(\"espree\"),\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n debug(\"Failed to load parser '%s' declared in '%s'.\", nameOrPath, ctx.name);\n error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`;\n\n return new ConfigDependency({\n error,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n }\n\n /**\n * Load a given plugin.\n * @param {string} name The plugin name to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentPlugin} The loaded plugin.\n * @private\n */\n _loadPlugin(name, ctx) {\n debug(\"Loading plugin %j from %s\", name, ctx.filePath);\n\n const { additionalPluginPool, resolver } = internalSlotsMap.get(this);\n const request = naming.normalizePackageName(name, \"eslint-plugin\");\n const id = naming.getShorthandName(request, \"eslint-plugin\");\n const relativeTo = path.join(ctx.pluginBasePath, \"__placeholder__.js\");\n\n if (name.match(/\\s+/u)) {\n const error = Object.assign(\n new Error(`Whitespace found in plugin name '${name}'`),\n {\n messageTemplate: \"whitespace-found\",\n messageData: { pluginName: request }\n }\n );\n\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n // Check for additional pool.\n const plugin =\n additionalPluginPool.get(request) ||\n additionalPluginPool.get(id);\n\n if (plugin) {\n return new ConfigDependency({\n definition: normalizePlugin(plugin),\n original: plugin,\n filePath: \"\", // It's unknown where the plugin came from.\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n let filePath;\n let error;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (resolveError) {\n error = resolveError;\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n error.messageTemplate = \"plugin-missing\";\n error.messageData = {\n pluginName: request,\n resolvePluginsRelativeTo: ctx.pluginBasePath,\n importerName: ctx.name\n };\n }\n }\n\n if (filePath) {\n try {\n writeDebugLogForLoading(request, relativeTo, filePath);\n\n const startTime = Date.now();\n const pluginDefinition = require(filePath);\n\n debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`);\n\n return new ConfigDependency({\n definition: normalizePlugin(pluginDefinition),\n original: pluginDefinition,\n filePath,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (loadError) {\n error = loadError;\n }\n }\n\n debug(\"Failed to load plugin '%s' declared in '%s'.\", name, ctx.name);\n error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`;\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n /**\n * Take file expression processors as config array elements.\n * @param {Record} plugins The plugin definitions.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The config array elements of file expression processors.\n * @private\n */\n *_takeFileExtensionProcessors(plugins, ctx) {\n for (const pluginId of Object.keys(plugins)) {\n const processors =\n plugins[pluginId] &&\n plugins[pluginId].definition &&\n plugins[pluginId].definition.processors;\n\n if (!processors) {\n continue;\n }\n\n for (const processorId of Object.keys(processors)) {\n if (processorId.startsWith(\".\")) {\n yield* this._normalizeObjectConfigData(\n {\n files: [`*${processorId}`],\n processor: `${pluginId}/${processorId}`\n },\n {\n ...ctx,\n type: \"implicit-processor\",\n name: `${ctx.name}#processors[\"${pluginId}/${processorId}\"]`\n }\n );\n }\n }\n }\n }\n}\n\nexport {\n ConfigArrayFactory,\n createContext,\n loadConfigFile\n};\n","/**\n * @fileoverview `CascadingConfigArrayFactory` class.\n *\n * `CascadingConfigArrayFactory` class has a responsibility:\n *\n * 1. Handles cascading of config files.\n *\n * It provides two methods:\n *\n * - `getConfigArrayForFile(filePath)`\n * Get the corresponded configuration of a given file. This method doesn't\n * throw even if the given file didn't exist.\n * - `clearCache()`\n * Clear the internal cache. You have to call this method when\n * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends\n * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport os from \"os\";\nimport path from \"path\";\n\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport { emitDeprecationWarning } from \"./shared/deprecation-warnings.js\";\n\nconst debug = debugOrig(\"eslintrc:cascading-config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {ReturnType} ConfigArray */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {ConfigData} [baseConfig] The config by `baseConfig` option.\n * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.\n * @property {string} [cwd] The base directory to start lookup.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]} [rulePaths] The value of `--rulesdir` option.\n * @property {string} [specificConfigPath] The value of `--config` option.\n * @property {boolean} [useEslintrc] if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryInternalSlots\n * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.\n * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.\n * @property {ConfigArray} cliConfigArray The config array of CLI options.\n * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.\n * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.\n * @property {Map} configCache The cache from directory paths to config arrays.\n * @property {string} cwd The base directory to start lookup.\n * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.\n * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.\n * @property {boolean} useEslintrc if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/**\n * Create the config array from `baseConfig` and `rulePaths`.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createBaseConfigArray({\n configArrayFactory,\n baseConfigData,\n rulePaths,\n cwd,\n loadRules\n}) {\n const baseConfigArray = configArrayFactory.create(\n baseConfigData,\n { name: \"BaseConfig\" }\n );\n\n /*\n * Create the config array element for the default ignore patterns.\n * This element has `ignorePattern` property that ignores the default\n * patterns in the current working directory.\n */\n baseConfigArray.unshift(configArrayFactory.create(\n { ignorePatterns: IgnorePattern.DefaultPatterns },\n { name: \"DefaultIgnorePattern\" }\n )[0]);\n\n /*\n * Load rules `--rulesdir` option as a pseudo plugin.\n * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate\n * the rule's options with only information in the config array.\n */\n if (rulePaths && rulePaths.length > 0) {\n baseConfigArray.push({\n type: \"config\",\n name: \"--rulesdir\",\n filePath: \"\",\n plugins: {\n \"\": new ConfigDependency({\n definition: {\n rules: rulePaths.reduce(\n (map, rulesPath) => Object.assign(\n map,\n loadRules(rulesPath, cwd)\n ),\n {}\n )\n },\n filePath: \"\",\n id: \"\",\n importerName: \"--rulesdir\",\n importerPath: \"\"\n })\n }\n });\n }\n\n return baseConfigArray;\n}\n\n/**\n * Create the config array from CLI options.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n}) {\n const cliConfigArray = configArrayFactory.create(\n cliConfigData,\n { name: \"CLIOptions\" }\n );\n\n cliConfigArray.unshift(\n ...(ignorePath\n ? configArrayFactory.loadESLintIgnore(ignorePath)\n : configArrayFactory.loadDefaultESLintIgnore())\n );\n\n if (specificConfigPath) {\n cliConfigArray.unshift(\n ...configArrayFactory.loadFile(\n specificConfigPath,\n { name: \"--config\", basePath: cwd }\n )\n );\n }\n\n return cliConfigArray;\n}\n\n/**\n * The error type when there are files matched by a glob, but all of them have been ignored.\n */\nclass ConfigurationNotFoundError extends Error {\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @param {string} directoryPath The directory path.\n */\n constructor(directoryPath) {\n super(`No ESLint configuration found in ${directoryPath}.`);\n this.messageTemplate = \"no-config-found\";\n this.messageData = { directoryPath };\n }\n}\n\n/**\n * This class provides the functionality that enumerates every file which is\n * matched by given glob patterns and that configuration.\n */\nclass CascadingConfigArrayFactory {\n\n /**\n * Initialize this enumerator.\n * @param {CascadingConfigArrayFactoryOptions} options The options.\n */\n constructor({\n additionalPluginPool = new Map(),\n baseConfig: baseConfigData = null,\n cliConfig: cliConfigData = null,\n cwd = process.cwd(),\n ignorePath,\n resolvePluginsRelativeTo,\n rulePaths = [],\n specificConfigPath = null,\n useEslintrc = true,\n builtInRules = new Map(),\n loadRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n } = {}) {\n const configArrayFactory = new ConfigArrayFactory({\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo,\n builtInRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n });\n\n internalSlotsMap.set(this, {\n baseConfigArray: createBaseConfigArray({\n baseConfigData,\n configArrayFactory,\n cwd,\n rulePaths,\n loadRules\n }),\n baseConfigData,\n cliConfigArray: createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n }),\n cliConfigData,\n configArrayFactory,\n configCache: new Map(),\n cwd,\n finalizeCache: new WeakMap(),\n ignorePath,\n rulePaths,\n specificConfigPath,\n useEslintrc,\n builtInRules,\n loadRules\n });\n }\n\n /**\n * The path to the current working directory.\n * This is used by tests.\n * @type {string}\n */\n get cwd() {\n const { cwd } = internalSlotsMap.get(this);\n\n return cwd;\n }\n\n /**\n * Get the config array of a given file.\n * If `filePath` was not given, it returns the config which contains only\n * `baseConfigData` and `cliConfigData`.\n * @param {string} [filePath] The file path to a file.\n * @param {Object} [options] The options.\n * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The config array of the file.\n */\n getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {\n const {\n baseConfigArray,\n cliConfigArray,\n cwd\n } = internalSlotsMap.get(this);\n\n if (!filePath) {\n return new ConfigArray(...baseConfigArray, ...cliConfigArray);\n }\n\n const directoryPath = path.dirname(path.resolve(cwd, filePath));\n\n debug(`Load config files for ${directoryPath}.`);\n\n return this._finalizeConfigArray(\n this._loadConfigInAncestors(directoryPath),\n directoryPath,\n ignoreNotFoundError\n );\n }\n\n /**\n * Set the config data to override all configs.\n * Require to call `clearCache()` method after this method is called.\n * @param {ConfigData} configData The config data to override all configs.\n * @returns {void}\n */\n setOverrideConfig(configData) {\n const slots = internalSlotsMap.get(this);\n\n slots.cliConfigData = configData;\n }\n\n /**\n * Clear config cache.\n * @returns {void}\n */\n clearCache() {\n const slots = internalSlotsMap.get(this);\n\n slots.baseConfigArray = createBaseConfigArray(slots);\n slots.cliConfigArray = createCLIConfigArray(slots);\n slots.configCache.clear();\n }\n\n /**\n * Load and normalize config files from the ancestor directories.\n * @param {string} directoryPath The path to a leaf directory.\n * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {\n const {\n baseConfigArray,\n configArrayFactory,\n configCache,\n cwd,\n useEslintrc\n } = internalSlotsMap.get(this);\n\n if (!useEslintrc) {\n return baseConfigArray;\n }\n\n let configArray = configCache.get(directoryPath);\n\n // Hit cache.\n if (configArray) {\n debug(`Cache hit: ${directoryPath}.`);\n return configArray;\n }\n debug(`No cache found: ${directoryPath}.`);\n\n const homePath = os.homedir();\n\n // Consider this is root.\n if (directoryPath === homePath && cwd !== homePath) {\n debug(\"Stop traversing because of considered root.\");\n if (configsExistInSubdirs) {\n const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);\n\n if (filePath) {\n emitDeprecationWarning(\n filePath,\n \"ESLINT_PERSONAL_CONFIG_SUPPRESS\"\n );\n }\n }\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n\n // Load the config on this directory.\n try {\n configArray = configArrayFactory.loadInDirectory(directoryPath);\n } catch (error) {\n /* istanbul ignore next */\n if (error.code === \"EACCES\") {\n debug(\"Stop traversing because of 'EACCES' error.\");\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n throw error;\n }\n\n if (configArray.length > 0 && configArray.isRoot()) {\n debug(\"Stop traversing because of 'root:true'.\");\n configArray.unshift(...baseConfigArray);\n return this._cacheConfig(directoryPath, configArray);\n }\n\n // Load from the ancestors and merge it.\n const parentPath = path.dirname(directoryPath);\n const parentConfigArray = parentPath && parentPath !== directoryPath\n ? this._loadConfigInAncestors(\n parentPath,\n configsExistInSubdirs || configArray.length > 0\n )\n : baseConfigArray;\n\n if (configArray.length > 0) {\n configArray.unshift(...parentConfigArray);\n } else {\n configArray = parentConfigArray;\n }\n\n // Cache and return.\n return this._cacheConfig(directoryPath, configArray);\n }\n\n /**\n * Freeze and cache a given config.\n * @param {string} directoryPath The path to a directory as a cache key.\n * @param {ConfigArray} configArray The config array as a cache value.\n * @returns {ConfigArray} The `configArray` (frozen).\n */\n _cacheConfig(directoryPath, configArray) {\n const { configCache } = internalSlotsMap.get(this);\n\n Object.freeze(configArray);\n configCache.set(directoryPath, configArray);\n\n return configArray;\n }\n\n /**\n * Finalize a given config array.\n * Concatenate `--config` and other CLI options.\n * @param {ConfigArray} configArray The parent config array.\n * @param {string} directoryPath The path to the leaf directory to find config files.\n * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {\n const {\n cliConfigArray,\n configArrayFactory,\n finalizeCache,\n useEslintrc,\n builtInRules\n } = internalSlotsMap.get(this);\n\n let finalConfigArray = finalizeCache.get(configArray);\n\n if (!finalConfigArray) {\n finalConfigArray = configArray;\n\n // Load the personal config if there are no regular config files.\n if (\n useEslintrc &&\n configArray.every(c => !c.filePath) &&\n cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.\n ) {\n const homePath = os.homedir();\n\n debug(\"Loading the config file of the home directory:\", homePath);\n\n const personalConfigArray = configArrayFactory.loadInDirectory(\n homePath,\n { name: \"PersonalConfig\" }\n );\n\n if (\n personalConfigArray.length > 0 &&\n !directoryPath.startsWith(homePath)\n ) {\n const lastElement =\n personalConfigArray[personalConfigArray.length - 1];\n\n emitDeprecationWarning(\n lastElement.filePath,\n \"ESLINT_PERSONAL_CONFIG_LOAD\"\n );\n }\n\n finalConfigArray = finalConfigArray.concat(personalConfigArray);\n }\n\n // Apply CLI options.\n if (cliConfigArray.length > 0) {\n finalConfigArray = finalConfigArray.concat(cliConfigArray);\n }\n\n // Validate rule settings and environments.\n const validator = new ConfigValidator({\n builtInRules\n });\n\n validator.validateConfigArray(finalConfigArray);\n\n // Cache it.\n Object.freeze(finalConfigArray);\n finalizeCache.set(configArray, finalConfigArray);\n\n debug(\n \"Configuration was determined: %o on %s\",\n finalConfigArray,\n directoryPath\n );\n }\n\n // At least one element (the default ignore patterns) exists.\n if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {\n throw new ConfigurationNotFoundError(directoryPath);\n }\n\n return finalConfigArray;\n }\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport { CascadingConfigArrayFactory };\n","/**\n * @fileoverview Compatibility class for flat config.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nimport createDebug from \"debug\";\nimport path from \"path\";\n\nimport environments from \"../conf/environments.js\";\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n\nconst debug = createDebug(\"eslintrc:flat-compat\");\nconst cafactory = Symbol(\"cafactory\");\n\n/**\n * Translates an ESLintRC-style config object into a flag-config-style config\n * object.\n * @param {Object} eslintrcConfig An ESLintRC-style config object.\n * @param {Object} options Options to help translate the config.\n * @param {string} options.resolveConfigRelativeTo To the directory to resolve\n * configs from.\n * @param {string} options.resolvePluginsRelativeTo The directory to resolve\n * plugins from.\n * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment\n * names to objects.\n * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor\n * names to objects.\n * @returns {Object} A flag-config-style config object.\n */\nfunction translateESLintRC(eslintrcConfig, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo,\n pluginEnvironments,\n pluginProcessors\n}) {\n\n const flatConfig = {};\n const configs = [];\n const languageOptions = {};\n const linterOptions = {};\n const keysToCopy = [\"settings\", \"rules\", \"processor\"];\n const languageOptionsKeysToCopy = [\"globals\", \"parser\", \"parserOptions\"];\n const linterOptionsKeysToCopy = [\"noInlineConfig\", \"reportUnusedDisableDirectives\"];\n\n // copy over simple translations\n for (const key of keysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig[key] = eslintrcConfig[key];\n }\n }\n\n // copy over languageOptions\n for (const key of languageOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n\n // create the languageOptions key in the flat config\n flatConfig.languageOptions = languageOptions;\n\n if (key === \"parser\") {\n debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`);\n\n if (eslintrcConfig[key].error) {\n throw eslintrcConfig[key].error;\n }\n\n languageOptions[key] = eslintrcConfig[key].definition;\n continue;\n }\n\n // clone any object values that are in the eslintrc config\n if (eslintrcConfig[key] && typeof eslintrcConfig[key] === \"object\") {\n languageOptions[key] = {\n ...eslintrcConfig[key]\n };\n } else {\n languageOptions[key] = eslintrcConfig[key];\n }\n }\n }\n\n // copy over linterOptions\n for (const key of linterOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig.linterOptions = linterOptions;\n linterOptions[key] = eslintrcConfig[key];\n }\n }\n\n // move ecmaVersion a level up\n if (languageOptions.parserOptions) {\n\n if (\"ecmaVersion\" in languageOptions.parserOptions) {\n languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion;\n delete languageOptions.parserOptions.ecmaVersion;\n }\n\n if (\"sourceType\" in languageOptions.parserOptions) {\n languageOptions.sourceType = languageOptions.parserOptions.sourceType;\n delete languageOptions.parserOptions.sourceType;\n }\n\n // check to see if we even need parserOptions anymore and remove it if not\n if (Object.keys(languageOptions.parserOptions).length === 0) {\n delete languageOptions.parserOptions;\n }\n }\n\n // overrides\n if (eslintrcConfig.criteria) {\n flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)];\n }\n\n // translate plugins\n if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === \"object\") {\n debug(`Translating plugins: ${eslintrcConfig.plugins}`);\n\n flatConfig.plugins = {};\n\n for (const pluginName of Object.keys(eslintrcConfig.plugins)) {\n\n debug(`Translating plugin: ${pluginName}`);\n debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`);\n\n const { original: plugin, error } = eslintrcConfig.plugins[pluginName];\n\n if (error) {\n throw error;\n }\n\n flatConfig.plugins[pluginName] = plugin;\n\n // create a config for any processors\n if (plugin.processors) {\n for (const processorName of Object.keys(plugin.processors)) {\n if (processorName.startsWith(\".\")) {\n debug(`Assigning processor: ${pluginName}/${processorName}`);\n\n configs.unshift({\n files: [`**/*${processorName}`],\n processor: pluginProcessors.get(`${pluginName}/${processorName}`)\n });\n }\n\n }\n }\n }\n }\n\n // translate env - must come after plugins\n if (eslintrcConfig.env && typeof eslintrcConfig.env === \"object\") {\n for (const envName of Object.keys(eslintrcConfig.env)) {\n\n // only add environments that are true\n if (eslintrcConfig.env[envName]) {\n debug(`Translating environment: ${envName}`);\n\n if (environments.has(envName)) {\n\n // built-in environments should be defined first\n configs.unshift(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...environments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n } else if (pluginEnvironments.has(envName)) {\n\n // if the environment comes from a plugin, it should come after the plugin config\n configs.push(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...pluginEnvironments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n }\n }\n }\n }\n\n // only add if there are actually keys in the config\n if (Object.keys(flatConfig).length > 0) {\n configs.push(flatConfig);\n }\n\n return configs;\n}\n\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * A compatibility class for working with configs.\n */\nclass FlatCompat {\n\n constructor({\n baseDirectory = process.cwd(),\n resolvePluginsRelativeTo = baseDirectory,\n recommendedConfig,\n allConfig\n } = {}) {\n this.baseDirectory = baseDirectory;\n this.resolvePluginsRelativeTo = resolvePluginsRelativeTo;\n this[cafactory] = new ConfigArrayFactory({\n cwd: baseDirectory,\n resolvePluginsRelativeTo,\n getEslintAllConfig: () => {\n\n if (!allConfig) {\n throw new TypeError(\"Missing parameter 'allConfig' in FlatCompat constructor.\");\n }\n\n return allConfig;\n },\n getEslintRecommendedConfig: () => {\n\n if (!recommendedConfig) {\n throw new TypeError(\"Missing parameter 'recommendedConfig' in FlatCompat constructor.\");\n }\n\n return recommendedConfig;\n }\n });\n }\n\n /**\n * Translates an ESLintRC-style config into a flag-config-style config.\n * @param {Object} eslintrcConfig The ESLintRC-style config object.\n * @returns {Object} A flag-config-style config object.\n */\n config(eslintrcConfig) {\n const eslintrcArray = this[cafactory].create(eslintrcConfig, {\n basePath: this.baseDirectory\n });\n\n const flatArray = [];\n let hasIgnorePatterns = false;\n\n eslintrcArray.forEach(configData => {\n if (configData.type === \"config\") {\n hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern;\n flatArray.push(...translateESLintRC(configData, {\n resolveConfigRelativeTo: path.join(this.baseDirectory, \"__placeholder.js\"),\n resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, \"__placeholder.js\"),\n pluginEnvironments: eslintrcArray.pluginEnvironments,\n pluginProcessors: eslintrcArray.pluginProcessors\n }));\n }\n });\n\n // combine ignorePatterns to emulate ESLintRC behavior better\n if (hasIgnorePatterns) {\n flatArray.unshift({\n ignores: [filePath => {\n\n // Compute the final config for this file.\n // This filters config array elements by `files`/`excludedFiles` then merges the elements.\n const finalConfig = eslintrcArray.extractConfig(filePath);\n\n // Test the `ignorePattern` properties of the final config.\n return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath);\n }]\n });\n }\n\n return flatArray;\n }\n\n /**\n * Translates the `env` section of an ESLintRC-style config.\n * @param {Object} envConfig The `env` section of an ESLintRC config.\n * @returns {Object[]} An array of flag-config objects representing the environments.\n */\n env(envConfig) {\n return this.config({\n env: envConfig\n });\n }\n\n /**\n * Translates the `extends` section of an ESLintRC-style config.\n * @param {...string} configsToExtend The names of the configs to load.\n * @returns {Object[]} An array of flag-config objects representing the config.\n */\n extends(...configsToExtend) {\n return this.config({\n extends: configsToExtend\n });\n }\n\n /**\n * Translates the `plugins` section of an ESLintRC-style config.\n * @param {...string} plugins The names of the plugins to load.\n * @returns {Object[]} An array of flag-config objects representing the plugins.\n */\n plugins(...plugins) {\n return this.config({\n plugins\n });\n }\n}\n\nexport { FlatCompat };\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport {\n ConfigArrayFactory,\n createContext as createConfigArrayFactoryContext,\n loadConfigFile\n} from \"./config-array-factory.js\";\n\nimport { CascadingConfigArrayFactory } from \"./cascading-config-array-factory.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array/index.js\";\nimport { ConfigDependency } from \"./config-array/config-dependency.js\";\nimport { ExtractedConfig } from \"./config-array/extracted-config.js\";\nimport { IgnorePattern } from \"./config-array/ignore-pattern.js\";\nimport { OverrideTester } from \"./config-array/override-tester.js\";\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport { FlatCompat } from \"./flat-compat.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n ConfigArray,\n createConfigArrayFactoryContext,\n CascadingConfigArrayFactory,\n ConfigArrayFactory,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs,\n environments,\n loadConfigFile,\n\n // shared\n ConfigOps,\n ConfigValidator,\n ModuleResolver,\n naming\n};\n\nexport {\n\n Legacy,\n\n FlatCompat\n\n};\n"],"names":["debug","debugOrig","path","ignore","assert","internalSlotsMap","util","minimatch","Ajv","globals","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal","Module","require","createRequire","fs","stripComments","importFresh","ModuleResolver.resolve","naming.normalizePackageName","naming.getShorthandName","os","createDebug","createConfigArrayFactoryContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA,MAAMA,OAAK,GAAGC,6BAAS,CAAC,yBAAyB,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,WAAW,EAAE;AAC5C,IAAI,IAAI,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAChC;AACA,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AACjD,QAAQ,MAAM,CAAC,GAAG,MAAM,CAAC;AACzB,QAAQ,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AACjC;AACA;AACA,QAAQ,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7C;AACA;AACA,QAAQ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAA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,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsBA;AACA,MAAMC,SAAO,GAAGC,oBAAa,CAAC,mDAAe,CAAC,CAAC;AAC/C;AACA,MAAMd,OAAK,GAAGC,6BAAS,CAAC,+BAA+B,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA,MAAM,eAAe,GAAG;AACxB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,kBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AACvC;AACA;AACA,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,UAAU,EAAE;AAChC,IAAI;AACJ,QAAQ,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC;AACzC,QAAQH,wBAAI,CAAC,UAAU,CAAC,UAAU,CAAC;AACnC,MAAM;AACN,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,QAAQ,EAAE;AAC5B,IAAI,OAAOa,sBAAE,CAAC,Y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C,SAAS,EAAE;AACnB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,GAAG,EAAE,SAAS;AAC1B,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,CAAC,GAAG,eAAe,EAAE;AAChC,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO,EAAE,eAAe;AACpC,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,CAAC,GAAG,OAAO,EAAE;AACxB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO;AACnB,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;AC3TA;AACA;AACA;AACA;AAuBA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,WAAW;AACf,qCAAIqB,aAA+B;AACnC,IAAI,2BAA2B;AAC/B,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,uBAAuB;AAC3B,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,MAAM;AACV;;;;;"} \ No newline at end of file diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js deleted file mode 100644 index 597352e4..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +++ /dev/null @@ -1,532 +0,0 @@ -/** - * @fileoverview `CascadingConfigArrayFactory` class. - * - * `CascadingConfigArrayFactory` class has a responsibility: - * - * 1. Handles cascading of config files. - * - * It provides two methods: - * - * - `getConfigArrayForFile(filePath)` - * Get the corresponded configuration of a given file. This method doesn't - * throw even if the given file didn't exist. - * - `clearCache()` - * Clear the internal cache. You have to call this method when - * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends - * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.) - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import debugOrig from "debug"; -import os from "os"; -import path from "path"; - -import { ConfigArrayFactory } from "./config-array-factory.js"; -import { - ConfigArray, - ConfigDependency, - IgnorePattern -} from "./config-array/index.js"; -import ConfigValidator from "./shared/config-validator.js"; -import { emitDeprecationWarning } from "./shared/deprecation-warnings.js"; - -const debug = debugOrig("eslintrc:cascading-config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {ConfigData} [baseConfig] The config by `baseConfig` option. - * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files. - * @property {string} [cwd] The base directory to start lookup. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - * @property {string} [specificConfigPath] The value of `--config` option. - * @property {boolean} [useEslintrc] if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryInternalSlots - * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option. - * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`. - * @property {ConfigArray} cliConfigArray The config array of CLI options. - * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`. - * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {Map} configCache The cache from directory paths to config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`. - * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`. - * @property {boolean} useEslintrc if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Create the config array from `baseConfig` and `rulePaths`. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createBaseConfigArray({ - configArrayFactory, - baseConfigData, - rulePaths, - cwd, - loadRules -}) { - const baseConfigArray = configArrayFactory.create( - baseConfigData, - { name: "BaseConfig" } - ); - - /* - * Create the config array element for the default ignore patterns. - * This element has `ignorePattern` property that ignores the default - * patterns in the current working directory. - */ - baseConfigArray.unshift(configArrayFactory.create( - { ignorePatterns: IgnorePattern.DefaultPatterns }, - { name: "DefaultIgnorePattern" } - )[0]); - - /* - * Load rules `--rulesdir` option as a pseudo plugin. - * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate - * the rule's options with only information in the config array. - */ - if (rulePaths && rulePaths.length > 0) { - baseConfigArray.push({ - type: "config", - name: "--rulesdir", - filePath: "", - plugins: { - "": new ConfigDependency({ - definition: { - rules: rulePaths.reduce( - (map, rulesPath) => Object.assign( - map, - loadRules(rulesPath, cwd) - ), - {} - ) - }, - filePath: "", - id: "", - importerName: "--rulesdir", - importerPath: "" - }) - } - }); - } - - return baseConfigArray; -} - -/** - * Create the config array from CLI options. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath -}) { - const cliConfigArray = configArrayFactory.create( - cliConfigData, - { name: "CLIOptions" } - ); - - cliConfigArray.unshift( - ...(ignorePath - ? configArrayFactory.loadESLintIgnore(ignorePath) - : configArrayFactory.loadDefaultESLintIgnore()) - ); - - if (specificConfigPath) { - cliConfigArray.unshift( - ...configArrayFactory.loadFile( - specificConfigPath, - { name: "--config", basePath: cwd } - ) - ); - } - - return cliConfigArray; -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class ConfigurationNotFoundError extends Error { - - // eslint-disable-next-line jsdoc/require-description - /** - * @param {string} directoryPath The directory path. - */ - constructor(directoryPath) { - super(`No ESLint configuration found in ${directoryPath}.`); - this.messageTemplate = "no-config-found"; - this.messageData = { directoryPath }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class CascadingConfigArrayFactory { - - /** - * Initialize this enumerator. - * @param {CascadingConfigArrayFactoryOptions} options The options. - */ - constructor({ - additionalPluginPool = new Map(), - baseConfig: baseConfigData = null, - cliConfig: cliConfigData = null, - cwd = process.cwd(), - ignorePath, - resolvePluginsRelativeTo, - rulePaths = [], - specificConfigPath = null, - useEslintrc = true, - builtInRules = new Map(), - loadRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - } = {}) { - const configArrayFactory = new ConfigArrayFactory({ - additionalPluginPool, - cwd, - resolvePluginsRelativeTo, - builtInRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - }); - - internalSlotsMap.set(this, { - baseConfigArray: createBaseConfigArray({ - baseConfigData, - configArrayFactory, - cwd, - rulePaths, - loadRules - }), - baseConfigData, - cliConfigArray: createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath - }), - cliConfigData, - configArrayFactory, - configCache: new Map(), - cwd, - finalizeCache: new WeakMap(), - ignorePath, - rulePaths, - specificConfigPath, - useEslintrc, - builtInRules, - loadRules - }); - } - - /** - * The path to the current working directory. - * This is used by tests. - * @type {string} - */ - get cwd() { - const { cwd } = internalSlotsMap.get(this); - - return cwd; - } - - /** - * Get the config array of a given file. - * If `filePath` was not given, it returns the config which contains only - * `baseConfigData` and `cliConfigData`. - * @param {string} [filePath] The file path to a file. - * @param {Object} [options] The options. - * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The config array of the file. - */ - getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) { - const { - baseConfigArray, - cliConfigArray, - cwd - } = internalSlotsMap.get(this); - - if (!filePath) { - return new ConfigArray(...baseConfigArray, ...cliConfigArray); - } - - const directoryPath = path.dirname(path.resolve(cwd, filePath)); - - debug(`Load config files for ${directoryPath}.`); - - return this._finalizeConfigArray( - this._loadConfigInAncestors(directoryPath), - directoryPath, - ignoreNotFoundError - ); - } - - /** - * Set the config data to override all configs. - * Require to call `clearCache()` method after this method is called. - * @param {ConfigData} configData The config data to override all configs. - * @returns {void} - */ - setOverrideConfig(configData) { - const slots = internalSlotsMap.get(this); - - slots.cliConfigData = configData; - } - - /** - * Clear config cache. - * @returns {void} - */ - clearCache() { - const slots = internalSlotsMap.get(this); - - slots.baseConfigArray = createBaseConfigArray(slots); - slots.cliConfigArray = createCLIConfigArray(slots); - slots.configCache.clear(); - } - - /** - * Load and normalize config files from the ancestor directories. - * @param {string} directoryPath The path to a leaf directory. - * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories. - * @returns {ConfigArray} The loaded config. - * @private - */ - _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) { - const { - baseConfigArray, - configArrayFactory, - configCache, - cwd, - useEslintrc - } = internalSlotsMap.get(this); - - if (!useEslintrc) { - return baseConfigArray; - } - - let configArray = configCache.get(directoryPath); - - // Hit cache. - if (configArray) { - debug(`Cache hit: ${directoryPath}.`); - return configArray; - } - debug(`No cache found: ${directoryPath}.`); - - const homePath = os.homedir(); - - // Consider this is root. - if (directoryPath === homePath && cwd !== homePath) { - debug("Stop traversing because of considered root."); - if (configsExistInSubdirs) { - const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath); - - if (filePath) { - emitDeprecationWarning( - filePath, - "ESLINT_PERSONAL_CONFIG_SUPPRESS" - ); - } - } - return this._cacheConfig(directoryPath, baseConfigArray); - } - - // Load the config on this directory. - try { - configArray = configArrayFactory.loadInDirectory(directoryPath); - } catch (error) { - /* istanbul ignore next */ - if (error.code === "EACCES") { - debug("Stop traversing because of 'EACCES' error."); - return this._cacheConfig(directoryPath, baseConfigArray); - } - throw error; - } - - if (configArray.length > 0 && configArray.isRoot()) { - debug("Stop traversing because of 'root:true'."); - configArray.unshift(...baseConfigArray); - return this._cacheConfig(directoryPath, configArray); - } - - // Load from the ancestors and merge it. - const parentPath = path.dirname(directoryPath); - const parentConfigArray = parentPath && parentPath !== directoryPath - ? this._loadConfigInAncestors( - parentPath, - configsExistInSubdirs || configArray.length > 0 - ) - : baseConfigArray; - - if (configArray.length > 0) { - configArray.unshift(...parentConfigArray); - } else { - configArray = parentConfigArray; - } - - // Cache and return. - return this._cacheConfig(directoryPath, configArray); - } - - /** - * Freeze and cache a given config. - * @param {string} directoryPath The path to a directory as a cache key. - * @param {ConfigArray} configArray The config array as a cache value. - * @returns {ConfigArray} The `configArray` (frozen). - */ - _cacheConfig(directoryPath, configArray) { - const { configCache } = internalSlotsMap.get(this); - - Object.freeze(configArray); - configCache.set(directoryPath, configArray); - - return configArray; - } - - /** - * Finalize a given config array. - * Concatenate `--config` and other CLI options. - * @param {ConfigArray} configArray The parent config array. - * @param {string} directoryPath The path to the leaf directory to find config files. - * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The loaded config. - * @private - */ - _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) { - const { - cliConfigArray, - configArrayFactory, - finalizeCache, - useEslintrc, - builtInRules - } = internalSlotsMap.get(this); - - let finalConfigArray = finalizeCache.get(configArray); - - if (!finalConfigArray) { - finalConfigArray = configArray; - - // Load the personal config if there are no regular config files. - if ( - useEslintrc && - configArray.every(c => !c.filePath) && - cliConfigArray.every(c => !c.filePath) // `--config` option can be a file. - ) { - const homePath = os.homedir(); - - debug("Loading the config file of the home directory:", homePath); - - const personalConfigArray = configArrayFactory.loadInDirectory( - homePath, - { name: "PersonalConfig" } - ); - - if ( - personalConfigArray.length > 0 && - !directoryPath.startsWith(homePath) - ) { - const lastElement = - personalConfigArray[personalConfigArray.length - 1]; - - emitDeprecationWarning( - lastElement.filePath, - "ESLINT_PERSONAL_CONFIG_LOAD" - ); - } - - finalConfigArray = finalConfigArray.concat(personalConfigArray); - } - - // Apply CLI options. - if (cliConfigArray.length > 0) { - finalConfigArray = finalConfigArray.concat(cliConfigArray); - } - - // Validate rule settings and environments. - const validator = new ConfigValidator({ - builtInRules - }); - - validator.validateConfigArray(finalConfigArray); - - // Cache it. - Object.freeze(finalConfigArray); - finalizeCache.set(configArray, finalConfigArray); - - debug( - "Configuration was determined: %o on %s", - finalConfigArray, - directoryPath - ); - } - - // At least one element (the default ignore patterns) exists. - if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) { - throw new ConfigurationNotFoundError(directoryPath); - } - - return finalConfigArray; - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { CascadingConfigArrayFactory }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array-factory.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array-factory.js deleted file mode 100644 index e4b18ebd..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array-factory.js +++ /dev/null @@ -1,1155 +0,0 @@ -/** - * @fileoverview The factory of `ConfigArray` objects. - * - * This class provides methods to create `ConfigArray` instance. - * - * - `create(configData, options)` - * Create a `ConfigArray` instance from a config data. This is to handle CLI - * options except `--config`. - * - `loadFile(filePath, options)` - * Create a `ConfigArray` instance from a config file. This is to handle - * `--config` option. If the file was not found, throws the following error: - * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error. - * - If the filename was `package.json`, an IO error or an - * `ESLINT_CONFIG_FIELD_NOT_FOUND` error. - * - Otherwise, an IO error such as `ENOENT`. - * - `loadInDirectory(directoryPath, options)` - * Create a `ConfigArray` instance from a config file which is on a given - * directory. This tries to load `.eslintrc.*` or `package.json`. If not - * found, returns an empty `ConfigArray`. - * - `loadESLintIgnore(filePath)` - * Create a `ConfigArray` instance from a config file that is `.eslintignore` - * format. This is to handle `--ignore-path` option. - * - `loadDefaultESLintIgnore()` - * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in - * the current working directory. - * - * `ConfigArrayFactory` class has the responsibility that loads configuration - * files, including loading `extends`, `parser`, and `plugins`. The created - * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`. - * - * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class - * handles cascading and hierarchy. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import debugOrig from "debug"; -import fs from "fs"; -import importFresh from "import-fresh"; -import { createRequire } from "module"; -import path from "path"; -import stripComments from "strip-json-comments"; - -import { - ConfigArray, - ConfigDependency, - IgnorePattern, - OverrideTester -} from "./config-array/index.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import * as ModuleResolver from "./shared/relative-module-resolver.js"; - -const require = createRequire(import.meta.url); - -const debug = debugOrig("eslintrc:config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const configFilenames = [ - ".eslintrc.js", - ".eslintrc.cjs", - ".eslintrc.yaml", - ".eslintrc.yml", - ".eslintrc.json", - ".eslintrc", - "package.json" -]; - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {ConfigArray[0]} ConfigArrayElement */ - -/** - * @typedef {Object} ConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {string} [cwd] The path to the current working directory. - * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cwd The path to the current working directory. - * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {string} pluginBasePath The base path to resolve plugins. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** @type {WeakMap} */ -const normalizedPlugins = new WeakMap(); - -/** - * Check if a given string is a file path. - * @param {string} nameOrPath A module name or file path. - * @returns {boolean} `true` if the `nameOrPath` is a file path. - */ -function isFilePath(nameOrPath) { - return ( - /^\.{1,2}[/\\]/u.test(nameOrPath) || - path.isAbsolute(nameOrPath) - ); -} - -/** - * Convenience wrapper for synchronously reading file contents. - * @param {string} filePath The filename to read. - * @returns {string} The file contents, with the BOM removed. - * @private - */ -function readFile(filePath) { - return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); -} - -/** - * Loads a YAML configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadYAMLConfigFile(filePath) { - debug(`Loading YAML config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require("js-yaml"); - - try { - - // empty YAML file can be null, so always use - return yaml.load(readFile(filePath)) || {}; - } catch (e) { - debug(`Error reading YAML file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JSON configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSONConfigFile(filePath) { - debug(`Loading JSON config file: ${filePath}`); - - try { - return JSON.parse(stripComments(readFile(filePath))); - } catch (e) { - debug(`Error reading JSON file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - e.messageTemplate = "failed-to-read-json"; - e.messageData = { - path: filePath, - message: e.message - }; - throw e; - } -} - -/** - * Loads a legacy (.eslintrc) configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadLegacyConfigFile(filePath) { - debug(`Loading legacy config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require("js-yaml"); - - try { - return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {}; - } catch (e) { - debug("Error reading YAML file: %s\n%o", filePath, e); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JavaScript configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSConfigFile(filePath) { - debug(`Loading JS config file: ${filePath}`); - try { - return importFresh(filePath); - } catch (e) { - debug(`Error reading JavaScript file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a configuration from a package.json file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadPackageJSONConfigFile(filePath) { - debug(`Loading package.json config file: ${filePath}`); - try { - const packageData = loadJSONConfigFile(filePath); - - if (!Object.hasOwnProperty.call(packageData, "eslintConfig")) { - throw Object.assign( - new Error("package.json file doesn't have 'eslintConfig' field."), - { code: "ESLINT_CONFIG_FIELD_NOT_FOUND" } - ); - } - - return packageData.eslintConfig; - } catch (e) { - debug(`Error reading package.json file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a `.eslintignore` from a file. - * @param {string} filePath The filename to load. - * @returns {string[]} The ignore patterns from the file. - * @private - */ -function loadESLintIgnoreFile(filePath) { - debug(`Loading .eslintignore file: ${filePath}`); - - try { - return readFile(filePath) - .split(/\r?\n/gu) - .filter(line => line.trim() !== "" && !line.startsWith("#")); - } catch (e) { - debug(`Error reading .eslintignore file: ${filePath}`); - e.message = `Cannot read .eslintignore file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Creates an error to notify about a missing config to extend from. - * @param {string} configName The name of the missing config. - * @param {string} importerName The name of the config that imported the missing config - * @param {string} messageTemplate The text template to source error strings from. - * @returns {Error} The error object to throw - * @private - */ -function configInvalidError(configName, importerName, messageTemplate) { - return Object.assign( - new Error(`Failed to load config "${configName}" to extend from.`), - { - messageTemplate, - messageData: { configName, importerName } - } - ); -} - -/** - * Loads a configuration file regardless of the source. Inspects the file path - * to determine the correctly way to load the config file. - * @param {string} filePath The path to the configuration. - * @returns {ConfigData|null} The configuration information. - * @private - */ -function loadConfigFile(filePath) { - switch (path.extname(filePath)) { - case ".js": - case ".cjs": - return loadJSConfigFile(filePath); - - case ".json": - if (path.basename(filePath) === "package.json") { - return loadPackageJSONConfigFile(filePath); - } - return loadJSONConfigFile(filePath); - - case ".yaml": - case ".yml": - return loadYAMLConfigFile(filePath); - - default: - return loadLegacyConfigFile(filePath); - } -} - -/** - * Write debug log. - * @param {string} request The requested module name. - * @param {string} relativeTo The file path to resolve the request relative to. - * @param {string} filePath The resolved file path. - * @returns {void} - */ -function writeDebugLogForLoading(request, relativeTo, filePath) { - /* istanbul ignore next */ - if (debug.enabled) { - let nameAndVersion = null; - - try { - const packageJsonPath = ModuleResolver.resolve( - `${request}/package.json`, - relativeTo - ); - const { version = "unknown" } = require(packageJsonPath); - - nameAndVersion = `${request}@${version}`; - } catch (error) { - debug("package.json was not found:", error.message); - nameAndVersion = request; - } - - debug("Loaded: %s (%s)", nameAndVersion, filePath); - } -} - -/** - * Create a new context with default values. - * @param {ConfigArrayFactoryInternalSlots} slots The internal slots. - * @param {"config" | "ignore" | "implicit-processor" | undefined} providedType The type of the current configuration. Default is `"config"`. - * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`. - * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string. - * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`. - * @returns {ConfigArrayFactoryLoadingContext} The created context. - */ -function createContext( - { cwd, resolvePluginsRelativeTo }, - providedType, - providedName, - providedFilePath, - providedMatchBasePath -) { - const filePath = providedFilePath - ? path.resolve(cwd, providedFilePath) - : ""; - const matchBasePath = - (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) || - (filePath && path.dirname(filePath)) || - cwd; - const name = - providedName || - (filePath && path.relative(cwd, filePath)) || - ""; - const pluginBasePath = - resolvePluginsRelativeTo || - (filePath && path.dirname(filePath)) || - cwd; - const type = providedType || "config"; - - return { filePath, matchBasePath, name, pluginBasePath, type }; -} - -/** - * Normalize a given plugin. - * - Ensure the object to have four properties: configs, environments, processors, and rules. - * - Ensure the object to not have other properties. - * @param {Plugin} plugin The plugin to normalize. - * @returns {Plugin} The normalized plugin. - */ -function normalizePlugin(plugin) { - - // first check the cache - let normalizedPlugin = normalizedPlugins.get(plugin); - - if (normalizedPlugin) { - return normalizedPlugin; - } - - normalizedPlugin = { - configs: plugin.configs || {}, - environments: plugin.environments || {}, - processors: plugin.processors || {}, - rules: plugin.rules || {} - }; - - // save the reference for later - normalizedPlugins.set(plugin, normalizedPlugin); - - return normalizedPlugin; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The factory of `ConfigArray` objects. - */ -class ConfigArrayFactory { - - /** - * Initialize this instance. - * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins. - */ - constructor({ - additionalPluginPool = new Map(), - cwd = process.cwd(), - resolvePluginsRelativeTo, - builtInRules, - resolver = ModuleResolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = {}) { - internalSlotsMap.set(this, { - additionalPluginPool, - cwd, - resolvePluginsRelativeTo: - resolvePluginsRelativeTo && - path.resolve(cwd, resolvePluginsRelativeTo), - builtInRules, - resolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - }); - } - - /** - * Create `ConfigArray` instance from a config data. - * @param {ConfigData|null} configData The config data to create. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.filePath] The path to this config data. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - create(configData, { basePath, filePath, name } = {}) { - if (!configData) { - return new ConfigArray(); - } - - const slots = internalSlotsMap.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - const elements = this._normalizeConfigData(configData, ctx); - - return new ConfigArray(...elements); - } - - /** - * Load a config file. - * @param {string} filePath The path to a config file. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - loadFile(filePath, { basePath, name } = {}) { - const slots = internalSlotsMap.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - - return new ConfigArray(...this._loadConfigData(ctx)); - } - - /** - * Load the config file on a given directory if exists. - * @param {string} directoryPath The path to a directory. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadInDirectory(directoryPath, { basePath, name } = {}) { - const slots = internalSlotsMap.get(this); - - for (const filename of configFilenames) { - const ctx = createContext( - slots, - "config", - name, - path.join(directoryPath, filename), - basePath - ); - - if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) { - let configData; - - try { - configData = loadConfigFile(ctx.filePath); - } catch (error) { - if (!error || error.code !== "ESLINT_CONFIG_FIELD_NOT_FOUND") { - throw error; - } - } - - if (configData) { - debug(`Config file found: ${ctx.filePath}`); - return new ConfigArray( - ...this._normalizeConfigData(configData, ctx) - ); - } - } - } - - debug(`Config file not found on ${directoryPath}`); - return new ConfigArray(); - } - - /** - * Check if a config file on a given directory exists or not. - * @param {string} directoryPath The path to a directory. - * @returns {string | null} The path to the found config file. If not found then null. - */ - static getPathToConfigFileInDirectory(directoryPath) { - for (const filename of configFilenames) { - const filePath = path.join(directoryPath, filename); - - if (fs.existsSync(filePath)) { - if (filename === "package.json") { - try { - loadPackageJSONConfigFile(filePath); - return filePath; - } catch { /* ignore */ } - } else { - return filePath; - } - } - } - return null; - } - - /** - * Load `.eslintignore` file. - * @param {string} filePath The path to a `.eslintignore` file to load. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadESLintIgnore(filePath) { - const slots = internalSlotsMap.get(this); - const ctx = createContext( - slots, - "ignore", - void 0, - filePath, - slots.cwd - ); - const ignorePatterns = loadESLintIgnoreFile(ctx.filePath); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(ignorePatterns, ctx) - ); - } - - /** - * Load `.eslintignore` file in the current working directory. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadDefaultESLintIgnore() { - const slots = internalSlotsMap.get(this); - const eslintIgnorePath = path.resolve(slots.cwd, ".eslintignore"); - const packageJsonPath = path.resolve(slots.cwd, "package.json"); - - if (fs.existsSync(eslintIgnorePath)) { - return this.loadESLintIgnore(eslintIgnorePath); - } - if (fs.existsSync(packageJsonPath)) { - const data = loadJSONConfigFile(packageJsonPath); - - if (Object.hasOwnProperty.call(data, "eslintIgnore")) { - if (!Array.isArray(data.eslintIgnore)) { - throw new Error("Package.json eslintIgnore property requires an array of paths"); - } - const ctx = createContext( - slots, - "ignore", - "eslintIgnore in package.json", - packageJsonPath, - slots.cwd - ); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx) - ); - } - } - - return new ConfigArray(); - } - - /** - * Load a given config file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} Loaded config. - * @private - */ - _loadConfigData(ctx) { - return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx); - } - - /** - * Normalize a given `.eslintignore` data to config array elements. - * @param {string[]} ignorePatterns The patterns to ignore files. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeESLintIgnoreData(ignorePatterns, ctx) { - const elements = this._normalizeObjectConfigData( - { ignorePatterns }, - ctx - ); - - // Set `ignorePattern.loose` flag for backward compatibility. - for (const element of elements) { - if (element.ignorePattern) { - element.ignorePattern.loose = true; - } - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _normalizeConfigData(configData, ctx) { - const validator = new ConfigValidator(); - - validator.validateConfigSchema(configData, ctx.name || ctx.filePath); - return this._normalizeObjectConfigData(configData, ctx); - } - - /** - * Normalize a given config to an array. - * @param {ConfigData|OverrideConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigData(configData, ctx) { - const { files, excludedFiles, ...configBody } = configData; - const criteria = OverrideTester.create( - files, - excludedFiles, - ctx.matchBasePath - ); - const elements = this._normalizeObjectConfigDataBody(configBody, ctx); - - // Apply the criteria to every element. - for (const element of elements) { - - /* - * Merge the criteria. - * This is for the `overrides` entries that came from the - * configurations of `overrides[].extends`. - */ - element.criteria = OverrideTester.and(criteria, element.criteria); - - /* - * Remove `root` property to ignore `root` settings which came from - * `extends` in `overrides`. - */ - if (element.criteria) { - element.root = void 0; - } - - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigDataBody( - { - env, - extends: extend, - globals, - ignorePatterns, - noInlineConfig, - parser: parserName, - parserOptions, - plugins: pluginList, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings, - overrides: overrideList = [] - }, - ctx - ) { - const extendList = Array.isArray(extend) ? extend : [extend]; - const ignorePattern = ignorePatterns && new IgnorePattern( - Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns], - ctx.matchBasePath - ); - - // Flatten `extends`. - for (const extendName of extendList.filter(Boolean)) { - yield* this._loadExtends(extendName, ctx); - } - - // Load parser & plugins. - const parser = parserName && this._loadParser(parserName, ctx); - const plugins = pluginList && this._loadPlugins(pluginList, ctx); - - // Yield pseudo config data for file extension processors. - if (plugins) { - yield* this._takeFileExtensionProcessors(plugins, ctx); - } - - // Yield the config data except `extends` and `overrides`. - yield { - - // Debug information. - type: ctx.type, - name: ctx.name, - filePath: ctx.filePath, - - // Config data. - criteria: null, - env, - globals, - ignorePattern, - noInlineConfig, - parser, - parserOptions, - plugins, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings - }; - - // Flatten `overries`. - for (let i = 0; i < overrideList.length; ++i) { - yield* this._normalizeObjectConfigData( - overrideList[i], - { ...ctx, name: `${ctx.name}#overrides[${i}]` } - ); - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtends(extendName, ctx) { - debug("Loading {extends:%j} relative to %s", extendName, ctx.filePath); - try { - if (extendName.startsWith("eslint:")) { - return this._loadExtendedBuiltInConfig(extendName, ctx); - } - if (extendName.startsWith("plugin:")) { - return this._loadExtendedPluginConfig(extendName, ctx); - } - return this._loadExtendedShareableConfig(extendName, ctx); - } catch (error) { - error.message += `\nReferenced from: ${ctx.filePath || ctx.name}`; - throw error; - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedBuiltInConfig(extendName, ctx) { - const { - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = internalSlotsMap.get(this); - - if (extendName === "eslint:recommended") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintRecommendedConfig) { - if (typeof getEslintRecommendedConfig !== "function") { - throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`); - } - return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintRecommendedPath - }); - } - if (extendName === "eslint:all") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintAllConfig) { - if (typeof getEslintAllConfig !== "function") { - throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`); - } - return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintAllPath - }); - } - - throw configInvalidError(extendName, ctx.name, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedPluginConfig(extendName, ctx) { - const slashIndex = extendName.lastIndexOf("/"); - - if (slashIndex === -1) { - throw configInvalidError(extendName, ctx.filePath, "plugin-invalid"); - } - - const pluginName = extendName.slice("plugin:".length, slashIndex); - const configName = extendName.slice(slashIndex + 1); - - if (isFilePath(pluginName)) { - throw new Error("'extends' cannot use a file path for plugins."); - } - - const plugin = this._loadPlugin(pluginName, ctx); - const configData = - plugin.definition && - plugin.definition.configs[configName]; - - if (configData) { - return this._normalizeConfigData(configData, { - ...ctx, - filePath: plugin.filePath || ctx.filePath, - name: `${ctx.name} » plugin:${plugin.id}/${configName}` - }); - } - - throw plugin.error || configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedShareableConfig(extendName, ctx) { - const { cwd, resolver } = internalSlotsMap.get(this); - const relativeTo = ctx.filePath || path.join(cwd, "__placeholder__.js"); - let request; - - if (isFilePath(extendName)) { - request = extendName; - } else if (extendName.startsWith(".")) { - request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior. - } else { - request = naming.normalizePackageName( - extendName, - "eslint-config" - ); - } - - let filePath; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (error) { - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - throw configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - throw error; - } - - writeDebugLogForLoading(request, relativeTo, filePath); - return this._loadConfigData({ - ...ctx, - filePath, - name: `${ctx.name} » ${request}` - }); - } - - /** - * Load given plugins. - * @param {string[]} names The plugin names to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {Record} The loaded parser. - * @private - */ - _loadPlugins(names, ctx) { - return names.reduce((map, name) => { - if (isFilePath(name)) { - throw new Error("Plugins array cannot includes file paths."); - } - const plugin = this._loadPlugin(name, ctx); - - map[plugin.id] = plugin; - - return map; - }, {}); - } - - /** - * Load a given parser. - * @param {string} nameOrPath The package name or the path to a parser file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentParser} The loaded parser. - */ - _loadParser(nameOrPath, ctx) { - debug("Loading parser %j from %s", nameOrPath, ctx.filePath); - - const { cwd, resolver } = internalSlotsMap.get(this); - const relativeTo = ctx.filePath || path.join(cwd, "__placeholder__.js"); - - try { - const filePath = resolver.resolve(nameOrPath, relativeTo); - - writeDebugLogForLoading(nameOrPath, relativeTo, filePath); - - return new ConfigDependency({ - definition: require(filePath), - filePath, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (error) { - - // If the parser name is "espree", load the espree of ESLint. - if (nameOrPath === "espree") { - debug("Fallback espree."); - return new ConfigDependency({ - definition: require("espree"), - filePath: require.resolve("espree"), - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - debug("Failed to load parser '%s' declared in '%s'.", nameOrPath, ctx.name); - error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`; - - return new ConfigDependency({ - error, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - } - - /** - * Load a given plugin. - * @param {string} name The plugin name to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentPlugin} The loaded plugin. - * @private - */ - _loadPlugin(name, ctx) { - debug("Loading plugin %j from %s", name, ctx.filePath); - - const { additionalPluginPool, resolver } = internalSlotsMap.get(this); - const request = naming.normalizePackageName(name, "eslint-plugin"); - const id = naming.getShorthandName(request, "eslint-plugin"); - const relativeTo = path.join(ctx.pluginBasePath, "__placeholder__.js"); - - if (name.match(/\s+/u)) { - const error = Object.assign( - new Error(`Whitespace found in plugin name '${name}'`), - { - messageTemplate: "whitespace-found", - messageData: { pluginName: request } - } - ); - - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - // Check for additional pool. - const plugin = - additionalPluginPool.get(request) || - additionalPluginPool.get(id); - - if (plugin) { - return new ConfigDependency({ - definition: normalizePlugin(plugin), - original: plugin, - filePath: "", // It's unknown where the plugin came from. - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - let filePath; - let error; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (resolveError) { - error = resolveError; - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - error.messageTemplate = "plugin-missing"; - error.messageData = { - pluginName: request, - resolvePluginsRelativeTo: ctx.pluginBasePath, - importerName: ctx.name - }; - } - } - - if (filePath) { - try { - writeDebugLogForLoading(request, relativeTo, filePath); - - const startTime = Date.now(); - const pluginDefinition = require(filePath); - - debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`); - - return new ConfigDependency({ - definition: normalizePlugin(pluginDefinition), - original: pluginDefinition, - filePath, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (loadError) { - error = loadError; - } - } - - debug("Failed to load plugin '%s' declared in '%s'.", name, ctx.name); - error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`; - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - /** - * Take file expression processors as config array elements. - * @param {Record} plugins The plugin definitions. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The config array elements of file expression processors. - * @private - */ - *_takeFileExtensionProcessors(plugins, ctx) { - for (const pluginId of Object.keys(plugins)) { - const processors = - plugins[pluginId] && - plugins[pluginId].definition && - plugins[pluginId].definition.processors; - - if (!processors) { - continue; - } - - for (const processorId of Object.keys(processors)) { - if (processorId.startsWith(".")) { - yield* this._normalizeObjectConfigData( - { - files: [`*${processorId}`], - processor: `${pluginId}/${processorId}` - }, - { - ...ctx, - type: "implicit-processor", - name: `${ctx.name}#processors["${pluginId}/${processorId}"]` - } - ); - } - } - } - } -} - -export { - ConfigArrayFactory, - createContext, - loadConfigFile -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-array.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-array.js deleted file mode 100644 index 5766fc46..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +++ /dev/null @@ -1,510 +0,0 @@ -/** - * @fileoverview `ConfigArray` class. - * - * `ConfigArray` class expresses the full of a configuration. It has the entry - * config file, base config files that were extended, loaded parsers, and loaded - * plugins. - * - * `ConfigArray` class provides three properties and two methods. - * - * - `pluginEnvironments` - * - `pluginProcessors` - * - `pluginRules` - * The `Map` objects that contain the members of all plugins that this - * config array contains. Those map objects don't have mutation methods. - * Those keys are the member ID such as `pluginId/memberName`. - * - `isRoot()` - * If `true` then this configuration has `root:true` property. - * - `extractConfig(filePath)` - * Extract the final configuration for a given file. This means merging - * every config array element which that `criteria` property matched. The - * `filePath` argument must be an absolute path. - * - * `ConfigArrayFactory` provides the loading logic of config files. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import { ExtractedConfig } from "./extracted-config.js"; -import { IgnorePattern } from "./ignore-pattern.js"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../../shared/types").Rule} Rule */ -/** @typedef {import("../../shared/types").Plugin} Plugin */ -/** @typedef {import("../../shared/types").Processor} Processor */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {import("./override-tester")["OverrideTester"]} OverrideTester */ - -/** - * @typedef {Object} ConfigArrayElement - * @property {string} name The name of this config element. - * @property {string} filePath The path to the source file of this config element. - * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element. - * @property {Record|undefined} env The environment settings. - * @property {Record|undefined} globals The global variable settings. - * @property {IgnorePattern|undefined} ignorePattern The ignore patterns. - * @property {boolean|undefined} noInlineConfig The flag that disables directive comments. - * @property {DependentParser|undefined} parser The parser loader. - * @property {Object|undefined} parserOptions The parser options. - * @property {Record|undefined} plugins The plugin loaders. - * @property {string|undefined} processor The processor name to refer plugin's processor. - * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments. - * @property {boolean|undefined} root The flag to express root. - * @property {Record|undefined} rules The rule settings - * @property {Object|undefined} settings The shared settings. - * @property {"config" | "ignore" | "implicit-processor"} type The element type. - */ - -/** - * @typedef {Object} ConfigArrayInternalSlots - * @property {Map} cache The cache to extract configs. - * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition. - * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition. - * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new class extends WeakMap { - get(key) { - let value = super.get(key); - - if (!value) { - value = { - cache: new Map(), - envMap: null, - processorMap: null, - ruleMap: null - }; - super.set(key, value); - } - - return value; - } -}(); - -/** - * Get the indices which are matched to a given file. - * @param {ConfigArrayElement[]} elements The elements. - * @param {string} filePath The path to a target file. - * @returns {number[]} The indices. - */ -function getMatchedIndices(elements, filePath) { - const indices = []; - - for (let i = elements.length - 1; i >= 0; --i) { - const element = elements[i]; - - if (!element.criteria || (filePath && element.criteria.test(filePath))) { - indices.push(i); - } - } - - return indices; -} - -/** - * Check if a value is a non-null object. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(x) { - return typeof x === "object" && x !== null; -} - -/** - * Merge two objects. - * - * Assign every property values of `y` to `x` if `x` doesn't have the property. - * If `x`'s property value is an object, it does recursive. - * @param {Object} target The destination to merge - * @param {Object|undefined} source The source to merge. - * @returns {void} - */ -function mergeWithoutOverwrite(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - - if (isNonNullObject(target[key])) { - mergeWithoutOverwrite(target[key], source[key]); - } else if (target[key] === void 0) { - if (isNonNullObject(source[key])) { - target[key] = Array.isArray(source[key]) ? [] : {}; - mergeWithoutOverwrite(target[key], source[key]); - } else if (source[key] !== void 0) { - target[key] = source[key]; - } - } - } -} - -/** - * The error for plugin conflicts. - */ -class PluginConflictError extends Error { - - /** - * Initialize this error object. - * @param {string} pluginId The plugin ID. - * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins. - */ - constructor(pluginId, plugins) { - super(`Plugin "${pluginId}" was conflicted between ${plugins.map(p => `"${p.importerName}"`).join(" and ")}.`); - this.messageTemplate = "plugin-conflict"; - this.messageData = { pluginId, plugins }; - } -} - -/** - * Merge plugins. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergePlugins(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetValue = target[key]; - const sourceValue = source[key]; - - // Adopt the plugin which was found at first. - if (targetValue === void 0) { - if (sourceValue.error) { - throw sourceValue.error; - } - target[key] = sourceValue; - } else if (sourceValue.filePath !== targetValue.filePath) { - throw new PluginConflictError(key, [ - { - filePath: targetValue.filePath, - importerName: targetValue.importerName - }, - { - filePath: sourceValue.filePath, - importerName: sourceValue.importerName - } - ]); - } - } -} - -/** - * Merge rule configs. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergeRuleConfigs(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetDef = target[key]; - const sourceDef = source[key]; - - // Adopt the rule config which was found at first. - if (targetDef === void 0) { - if (Array.isArray(sourceDef)) { - target[key] = [...sourceDef]; - } else { - target[key] = [sourceDef]; - } - - /* - * If the first found rule config is severity only and the current rule - * config has options, merge the severity and the options. - */ - } else if ( - targetDef.length === 1 && - Array.isArray(sourceDef) && - sourceDef.length >= 2 - ) { - targetDef.push(...sourceDef.slice(1)); - } - } -} - -/** - * Create the extracted config. - * @param {ConfigArray} instance The config elements. - * @param {number[]} indices The indices to use. - * @returns {ExtractedConfig} The extracted config. - */ -function createConfig(instance, indices) { - const config = new ExtractedConfig(); - const ignorePatterns = []; - - // Merge elements. - for (const index of indices) { - const element = instance[index]; - - // Adopt the parser which was found at first. - if (!config.parser && element.parser) { - if (element.parser.error) { - throw element.parser.error; - } - config.parser = element.parser; - } - - // Adopt the processor which was found at first. - if (!config.processor && element.processor) { - config.processor = element.processor; - } - - // Adopt the noInlineConfig which was found at first. - if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) { - config.noInlineConfig = element.noInlineConfig; - config.configNameOfNoInlineConfig = element.name; - } - - // Adopt the reportUnusedDisableDirectives which was found at first. - if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) { - config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives; - } - - // Collect ignorePatterns - if (element.ignorePattern) { - ignorePatterns.push(element.ignorePattern); - } - - // Merge others. - mergeWithoutOverwrite(config.env, element.env); - mergeWithoutOverwrite(config.globals, element.globals); - mergeWithoutOverwrite(config.parserOptions, element.parserOptions); - mergeWithoutOverwrite(config.settings, element.settings); - mergePlugins(config.plugins, element.plugins); - mergeRuleConfigs(config.rules, element.rules); - } - - // Create the predicate function for ignore patterns. - if (ignorePatterns.length > 0) { - config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse()); - } - - return config; -} - -/** - * Collect definitions. - * @template T, U - * @param {string} pluginId The plugin ID for prefix. - * @param {Record} defs The definitions to collect. - * @param {Map} map The map to output. - * @returns {void} - */ -function collect(pluginId, defs, map) { - if (defs) { - const prefix = pluginId && `${pluginId}/`; - - for (const [key, value] of Object.entries(defs)) { - map.set(`${prefix}${key}`, value); - } - } -} - -/** - * Delete the mutation methods from a given map. - * @param {Map} map The map object to delete. - * @returns {void} - */ -function deleteMutationMethods(map) { - Object.defineProperties(map, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - set: { configurable: true, value: void 0 } - }); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArrayElement[]} elements The config elements. - * @param {ConfigArrayInternalSlots} slots The internal slots. - * @returns {void} - */ -function initPluginMemberMaps(elements, slots) { - const processed = new Set(); - - slots.envMap = new Map(); - slots.processorMap = new Map(); - slots.ruleMap = new Map(); - - for (const element of elements) { - if (!element.plugins) { - continue; - } - - for (const [pluginId, value] of Object.entries(element.plugins)) { - const plugin = value.definition; - - if (!plugin || processed.has(pluginId)) { - continue; - } - processed.add(pluginId); - - collect(pluginId, plugin.environments, slots.envMap); - collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap); - } - } - - deleteMutationMethods(slots.envMap); - deleteMutationMethods(slots.processorMap); - deleteMutationMethods(slots.ruleMap); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArray} instance The config elements. - * @returns {ConfigArrayInternalSlots} The extracted config. - */ -function ensurePluginMemberMaps(instance) { - const slots = internalSlotsMap.get(instance); - - if (!slots.ruleMap) { - initPluginMemberMaps(instance, slots); - } - - return slots; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The Config Array. - * - * `ConfigArray` instance contains all settings, parsers, and plugins. - * You need to call `ConfigArray#extractConfig(filePath)` method in order to - * extract, merge and get only the config data which is related to an arbitrary - * file. - * @extends {Array} - */ -class ConfigArray extends Array { - - /** - * Get the plugin environments. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin environments. - */ - get pluginEnvironments() { - return ensurePluginMemberMaps(this).envMap; - } - - /** - * Get the plugin processors. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin processors. - */ - get pluginProcessors() { - return ensurePluginMemberMaps(this).processorMap; - } - - /** - * Get the plugin rules. - * The returned map cannot be mutated. - * @returns {ReadonlyMap} The plugin rules. - */ - get pluginRules() { - return ensurePluginMemberMaps(this).ruleMap; - } - - /** - * Check if this config has `root` flag. - * @returns {boolean} `true` if this config array is root. - */ - isRoot() { - for (let i = this.length - 1; i >= 0; --i) { - const root = this[i].root; - - if (typeof root === "boolean") { - return root; - } - } - return false; - } - - /** - * Extract the config data which is related to a given file. - * @param {string} filePath The absolute path to the target file. - * @returns {ExtractedConfig} The extracted config data. - */ - extractConfig(filePath) { - const { cache } = internalSlotsMap.get(this); - const indices = getMatchedIndices(this, filePath); - const cacheKey = indices.join(","); - - if (!cache.has(cacheKey)) { - cache.set(cacheKey, createConfig(this, indices)); - } - - return cache.get(cacheKey); - } - - /** - * Check if a given path is an additional lint target. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the file is an additional lint target. - */ - isAdditionalTargetPath(filePath) { - for (const { criteria, type } of this) { - if ( - type === "config" && - criteria && - !criteria.endsWithWildcard && - criteria.test(filePath) - ) { - return true; - } - } - return false; - } -} - -/** - * Get the used extracted configs. - * CLIEngine will use this method to collect used deprecated rules. - * @param {ConfigArray} instance The config array object to get. - * @returns {ExtractedConfig[]} The used extracted configs. - * @private - */ -function getUsedExtractedConfigs(instance) { - const { cache } = internalSlotsMap.get(instance); - - return Array.from(cache.values()); -} - - -export { - ConfigArray, - getUsedExtractedConfigs -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js deleted file mode 100644 index 080e6405..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @fileoverview `ConfigDependency` class. - * - * `ConfigDependency` class expresses a loaded parser or plugin. - * - * If the parser or plugin was loaded successfully, it has `definition` property - * and `filePath` property. Otherwise, it has `error` property. - * - * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it - * omits `definition` property. - * - * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers - * or plugins. - * - * @author Toru Nagashima - */ - -import util from "util"; - -/** - * The class is to store parsers or plugins. - * This class hides the loaded object from `JSON.stringify()` and `console.log`. - * @template T - */ -class ConfigDependency { - - /** - * Initialize this instance. - * @param {Object} data The dependency data. - * @param {T} [data.definition] The dependency if the loading succeeded. - * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded. - * @param {Error} [data.error] The error object if the loading failed. - * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded. - * @param {string} data.id The ID of this dependency. - * @param {string} data.importerName The name of the config file which loads this dependency. - * @param {string} data.importerPath The path to the config file which loads this dependency. - */ - constructor({ - definition = null, - original = null, - error = null, - filePath = null, - id, - importerName, - importerPath - }) { - - /** - * The loaded dependency if the loading succeeded. - * @type {T|null} - */ - this.definition = definition; - - /** - * The original dependency as loaded directly from disk if the loading succeeded. - * @type {T|null} - */ - this.original = original; - - /** - * The error object if the loading failed. - * @type {Error|null} - */ - this.error = error; - - /** - * The loaded dependency if the loading succeeded. - * @type {string|null} - */ - this.filePath = filePath; - - /** - * The ID of this dependency. - * @type {string} - */ - this.id = id; - - /** - * The name of the config file which loads this dependency. - * @type {string} - */ - this.importerName = importerName; - - /** - * The path to the config file which loads this dependency. - * @type {string} - */ - this.importerPath = importerPath; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - const obj = this[util.inspect.custom](); - - // Display `error.message` (`Error#message` is unenumerable). - if (obj.error instanceof Error) { - obj.error = { ...obj.error, message: obj.error.message }; - } - - return obj; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util.inspect.custom]() { - const { - definition: _ignore1, // eslint-disable-line no-unused-vars - original: _ignore2, // eslint-disable-line no-unused-vars - ...obj - } = this; - - return obj; - } -} - -/** @typedef {ConfigDependency} DependentParser */ -/** @typedef {ConfigDependency} DependentPlugin */ - -export { ConfigDependency }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js deleted file mode 100644 index e93b0b67..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * @fileoverview `ExtractedConfig` class. - * - * `ExtractedConfig` class expresses a final configuration for a specific file. - * - * It provides one method. - * - * - `toCompatibleObjectAsConfigFileContent()` - * Convert this configuration to the compatible object as the content of - * config files. It converts the loaded parser and plugins to strings. - * `CLIEngine#getConfigForFile(filePath)` method uses this method. - * - * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance. - * - * @author Toru Nagashima - */ - -import { IgnorePattern } from "./ignore-pattern.js"; - -// For VSCode intellisense -/** @typedef {import("../../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").SeverityConf} SeverityConf */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ - -/** - * Check if `xs` starts with `ys`. - * @template T - * @param {T[]} xs The array to check. - * @param {T[]} ys The array that may be the first part of `xs`. - * @returns {boolean} `true` if `xs` starts with `ys`. - */ -function startsWith(xs, ys) { - return xs.length >= ys.length && ys.every((y, i) => y === xs[i]); -} - -/** - * The class for extracted config data. - */ -class ExtractedConfig { - constructor() { - - /** - * The config name what `noInlineConfig` setting came from. - * @type {string} - */ - this.configNameOfNoInlineConfig = ""; - - /** - * Environments. - * @type {Record} - */ - this.env = {}; - - /** - * Global variables. - * @type {Record} - */ - this.globals = {}; - - /** - * The glob patterns that ignore to lint. - * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined} - */ - this.ignores = void 0; - - /** - * The flag that disables directive comments. - * @type {boolean|undefined} - */ - this.noInlineConfig = void 0; - - /** - * Parser definition. - * @type {DependentParser|null} - */ - this.parser = null; - - /** - * Options for the parser. - * @type {Object} - */ - this.parserOptions = {}; - - /** - * Plugin definitions. - * @type {Record} - */ - this.plugins = {}; - - /** - * Processor ID. - * @type {string|null} - */ - this.processor = null; - - /** - * The flag that reports unused `eslint-disable` directive comments. - * @type {boolean|undefined} - */ - this.reportUnusedDisableDirectives = void 0; - - /** - * Rule settings. - * @type {Record} - */ - this.rules = {}; - - /** - * Shared settings. - * @type {Object} - */ - this.settings = {}; - } - - /** - * Convert this config to the compatible object as a config file content. - * @returns {ConfigData} The converted object. - */ - toCompatibleObjectAsConfigFileContent() { - const { - /* eslint-disable no-unused-vars */ - configNameOfNoInlineConfig: _ignore1, - processor: _ignore2, - /* eslint-enable no-unused-vars */ - ignores, - ...config - } = this; - - config.parser = config.parser && config.parser.filePath; - config.plugins = Object.keys(config.plugins).filter(Boolean).reverse(); - config.ignorePatterns = ignores ? ignores.patterns : []; - - // Strip the default patterns from `ignorePatterns`. - if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) { - config.ignorePatterns = - config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length); - } - - return config; - } -} - -export { ExtractedConfig }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js deleted file mode 100644 index 3022ba9f..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +++ /dev/null @@ -1,238 +0,0 @@ -/** - * @fileoverview `IgnorePattern` class. - * - * `IgnorePattern` class has the set of glob patterns and the base path. - * - * It provides two static methods. - * - * - `IgnorePattern.createDefaultIgnore(cwd)` - * Create the default predicate function. - * - `IgnorePattern.createIgnore(ignorePatterns)` - * Create the predicate function from multiple `IgnorePattern` objects. - * - * It provides two properties and a method. - * - * - `patterns` - * The glob patterns that ignore to lint. - * - `basePath` - * The base path of the glob patterns. If absolute paths existed in the - * glob patterns, those are handled as relative paths to the base path. - * - `getPatternsRelativeTo(basePath)` - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * - * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes - * `ignorePatterns` properties. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import assert from "assert"; -import path from "path"; -import ignore from "ignore"; -import debugOrig from "debug"; - -const debug = debugOrig("eslintrc:ignore-pattern"); - -/** @typedef {ReturnType} Ignore */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the path to the common ancestor directory of given paths. - * @param {string[]} sourcePaths The paths to calculate the common ancestor. - * @returns {string} The path to the common ancestor directory. - */ -function getCommonAncestorPath(sourcePaths) { - let result = sourcePaths[0]; - - for (let i = 1; i < sourcePaths.length; ++i) { - const a = result; - const b = sourcePaths[i]; - - // Set the shorter one (it's the common ancestor if one includes the other). - result = a.length < b.length ? a : b; - - // Set the common ancestor. - for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) { - if (a[j] !== b[j]) { - result = a.slice(0, lastSepPos); - break; - } - if (a[j] === path.sep) { - lastSepPos = j; - } - } - } - - let resolvedResult = result || path.sep; - - // if Windows common ancestor is root of drive must have trailing slash to be absolute. - if (resolvedResult && resolvedResult.endsWith(":") && process.platform === "win32") { - resolvedResult += path.sep; - } - return resolvedResult; -} - -/** - * Make relative path. - * @param {string} from The source path to get relative path. - * @param {string} to The destination path to get relative path. - * @returns {string} The relative path. - */ -function relative(from, to) { - const relPath = path.relative(from, to); - - if (path.sep === "/") { - return relPath; - } - return relPath.split(path.sep).join("/"); -} - -/** - * Get the trailing slash if existed. - * @param {string} filePath The path to check. - * @returns {string} The trailing slash if existed. - */ -function dirSuffix(filePath) { - const isDir = ( - filePath.endsWith(path.sep) || - (process.platform === "win32" && filePath.endsWith("/")) - ); - - return isDir ? "/" : ""; -} - -const DefaultPatterns = Object.freeze(["/**/node_modules/*"]); -const DotPatterns = Object.freeze([".*", "!.eslintrc.*", "!../"]); - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -class IgnorePattern { - - /** - * The default patterns. - * @type {string[]} - */ - static get DefaultPatterns() { - return DefaultPatterns; - } - - /** - * Create the default predicate function. - * @param {string} cwd The current working directory. - * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createDefaultIgnore(cwd) { - return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]); - } - - /** - * Create the predicate function from multiple `IgnorePattern` objects. - * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns. - * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createIgnore(ignorePatterns) { - debug("Create with: %o", ignorePatterns); - - const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath)); - const patterns = [].concat( - ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath)) - ); - const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]); - const dotIg = ignore({ allowRelativePaths: true }).add(patterns); - - debug(" processed: %o", { basePath, patterns }); - - return Object.assign( - (filePath, dot = false) => { - assert(path.isAbsolute(filePath), "'filePath' should be an absolute path."); - const relPathRaw = relative(basePath, filePath); - const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath)); - const adoptedIg = dot ? dotIg : ig; - const result = relPath !== "" && adoptedIg.ignores(relPath); - - debug("Check", { filePath, dot, relativePath: relPath, result }); - return result; - }, - { basePath, patterns } - ); - } - - /** - * Initialize a new `IgnorePattern` instance. - * @param {string[]} patterns The glob patterns that ignore to lint. - * @param {string} basePath The base path of `patterns`. - */ - constructor(patterns, basePath) { - assert(path.isAbsolute(basePath), "'basePath' should be an absolute path."); - - /** - * The glob patterns that ignore to lint. - * @type {string[]} - */ - this.patterns = patterns; - - /** - * The base path of `patterns`. - * @type {string} - */ - this.basePath = basePath; - - /** - * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`. - * - * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility. - * It's `false` as-is for `ignorePatterns` property in config files. - * @type {boolean} - */ - this.loose = false; - } - - /** - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * @param {string} newBasePath The base path. - * @returns {string[]} Modifired patterns. - */ - getPatternsRelativeTo(newBasePath) { - assert(path.isAbsolute(newBasePath), "'newBasePath' should be an absolute path."); - const { basePath, loose, patterns } = this; - - if (newBasePath === basePath) { - return patterns; - } - const prefix = `/${relative(newBasePath, basePath)}`; - - return patterns.map(pattern => { - const negative = pattern.startsWith("!"); - const head = negative ? "!" : ""; - const body = negative ? pattern.slice(1) : pattern; - - if (body.startsWith("/") || body.startsWith("../")) { - return `${head}${prefix}${body}`; - } - return loose ? pattern : `${head}${prefix}/**/${body}`; - }); - } -} - -export { IgnorePattern }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/index.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/index.js deleted file mode 100644 index 647f02b7..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/index.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview `ConfigArray` class. - * @author Toru Nagashima - */ - -import { ConfigArray, getUsedExtractedConfigs } from "./config-array.js"; -import { ConfigDependency } from "./config-dependency.js"; -import { ExtractedConfig } from "./extracted-config.js"; -import { IgnorePattern } from "./ignore-pattern.js"; -import { OverrideTester } from "./override-tester.js"; - -export { - ConfigArray, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js deleted file mode 100644 index 460aafcf..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +++ /dev/null @@ -1,225 +0,0 @@ -/** - * @fileoverview `OverrideTester` class. - * - * `OverrideTester` class handles `files` property and `excludedFiles` property - * of `overrides` config. - * - * It provides one method. - * - * - `test(filePath)` - * Test if a file path matches the pair of `files` property and - * `excludedFiles` property. The `filePath` argument must be an absolute - * path. - * - * `ConfigArrayFactory` creates `OverrideTester` objects when it processes - * `overrides` properties. - * - * @author Toru Nagashima - */ - -import assert from "assert"; -import path from "path"; -import util from "util"; -import minimatch from "minimatch"; - -const { Minimatch } = minimatch; - -const minimatchOpts = { dot: true, matchBase: true }; - -/** - * @typedef {Object} Pattern - * @property {InstanceType[] | null} includes The positive matchers. - * @property {InstanceType[] | null} excludes The negative matchers. - */ - -/** - * Normalize a given pattern to an array. - * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns. - * @returns {string[]|null} Normalized patterns. - * @private - */ -function normalizePatterns(patterns) { - if (Array.isArray(patterns)) { - return patterns.filter(Boolean); - } - if (typeof patterns === "string" && patterns) { - return [patterns]; - } - return []; -} - -/** - * Create the matchers of given patterns. - * @param {string[]} patterns The patterns. - * @returns {InstanceType[] | null} The matchers. - */ -function toMatcher(patterns) { - if (patterns.length === 0) { - return null; - } - return patterns.map(pattern => { - if (/^\.[/\\]/u.test(pattern)) { - return new Minimatch( - pattern.slice(2), - - // `./*.js` should not match with `subdir/foo.js` - { ...minimatchOpts, matchBase: false } - ); - } - return new Minimatch(pattern, minimatchOpts); - }); -} - -/** - * Convert a given matcher to string. - * @param {Pattern} matchers The matchers. - * @returns {string} The string expression of the matcher. - */ -function patternToJson({ includes, excludes }) { - return { - includes: includes && includes.map(m => m.pattern), - excludes: excludes && excludes.map(m => m.pattern) - }; -} - -/** - * The class to test given paths are matched by the patterns. - */ -class OverrideTester { - - /** - * Create a tester with given criteria. - * If there are no criteria, returns `null`. - * @param {string|string[]} files The glob patterns for included files. - * @param {string|string[]} excludedFiles The glob patterns for excluded files. - * @param {string} basePath The path to the base directory to test paths. - * @returns {OverrideTester|null} The created instance or `null`. - */ - static create(files, excludedFiles, basePath) { - const includePatterns = normalizePatterns(files); - const excludePatterns = normalizePatterns(excludedFiles); - let endsWithWildcard = false; - - if (includePatterns.length === 0) { - return null; - } - - // Rejects absolute paths or relative paths to parents. - for (const pattern of includePatterns) { - if (path.isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - if (pattern.endsWith("*")) { - endsWithWildcard = true; - } - } - for (const pattern of excludePatterns) { - if (path.isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - } - - const includes = toMatcher(includePatterns); - const excludes = toMatcher(excludePatterns); - - return new OverrideTester( - [{ includes, excludes }], - basePath, - endsWithWildcard - ); - } - - /** - * Combine two testers by logical and. - * If either of the testers was `null`, returns the other tester. - * The `basePath` property of the two must be the same value. - * @param {OverrideTester|null} a A tester. - * @param {OverrideTester|null} b Another tester. - * @returns {OverrideTester|null} Combined tester. - */ - static and(a, b) { - if (!b) { - return a && new OverrideTester( - a.patterns, - a.basePath, - a.endsWithWildcard - ); - } - if (!a) { - return new OverrideTester( - b.patterns, - b.basePath, - b.endsWithWildcard - ); - } - - assert.strictEqual(a.basePath, b.basePath); - return new OverrideTester( - a.patterns.concat(b.patterns), - a.basePath, - a.endsWithWildcard || b.endsWithWildcard - ); - } - - /** - * Initialize this instance. - * @param {Pattern[]} patterns The matchers. - * @param {string} basePath The base path. - * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`. - */ - constructor(patterns, basePath, endsWithWildcard = false) { - - /** @type {Pattern[]} */ - this.patterns = patterns; - - /** @type {string} */ - this.basePath = basePath; - - /** @type {boolean} */ - this.endsWithWildcard = endsWithWildcard; - } - - /** - * Test if a given path is matched or not. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the path was matched. - */ - test(filePath) { - if (typeof filePath !== "string" || !path.isAbsolute(filePath)) { - throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`); - } - const relativePath = path.relative(this.basePath, filePath); - - return this.patterns.every(({ includes, excludes }) => ( - (!includes || includes.some(m => m.match(relativePath))) && - (!excludes || !excludes.some(m => m.match(relativePath))) - )); - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - if (this.patterns.length === 1) { - return { - ...patternToJson(this.patterns[0]), - basePath: this.basePath - }; - } - return { - AND: this.patterns.map(patternToJson), - basePath: this.basePath - }; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util.inspect.custom]() { - return this.toJSON(); - } -} - -export { OverrideTester }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/flat-compat.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/flat-compat.js deleted file mode 100644 index 6c307a99..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/flat-compat.js +++ /dev/null @@ -1,318 +0,0 @@ -/** - * @fileoverview Compatibility class for flat config. - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -import createDebug from "debug"; -import path from "path"; - -import environments from "../conf/environments.js"; -import { ConfigArrayFactory } from "./config-array-factory.js"; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").Processor} Processor */ - -const debug = createDebug("eslintrc:flat-compat"); -const cafactory = Symbol("cafactory"); - -/** - * Translates an ESLintRC-style config object into a flag-config-style config - * object. - * @param {Object} eslintrcConfig An ESLintRC-style config object. - * @param {Object} options Options to help translate the config. - * @param {string} options.resolveConfigRelativeTo To the directory to resolve - * configs from. - * @param {string} options.resolvePluginsRelativeTo The directory to resolve - * plugins from. - * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment - * names to objects. - * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor - * names to objects. - * @returns {Object} A flag-config-style config object. - */ -function translateESLintRC(eslintrcConfig, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo, - pluginEnvironments, - pluginProcessors -}) { - - const flatConfig = {}; - const configs = []; - const languageOptions = {}; - const linterOptions = {}; - const keysToCopy = ["settings", "rules", "processor"]; - const languageOptionsKeysToCopy = ["globals", "parser", "parserOptions"]; - const linterOptionsKeysToCopy = ["noInlineConfig", "reportUnusedDisableDirectives"]; - - // copy over simple translations - for (const key of keysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig[key] = eslintrcConfig[key]; - } - } - - // copy over languageOptions - for (const key of languageOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - - // create the languageOptions key in the flat config - flatConfig.languageOptions = languageOptions; - - if (key === "parser") { - debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`); - - if (eslintrcConfig[key].error) { - throw eslintrcConfig[key].error; - } - - languageOptions[key] = eslintrcConfig[key].definition; - continue; - } - - // clone any object values that are in the eslintrc config - if (eslintrcConfig[key] && typeof eslintrcConfig[key] === "object") { - languageOptions[key] = { - ...eslintrcConfig[key] - }; - } else { - languageOptions[key] = eslintrcConfig[key]; - } - } - } - - // copy over linterOptions - for (const key of linterOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig.linterOptions = linterOptions; - linterOptions[key] = eslintrcConfig[key]; - } - } - - // move ecmaVersion a level up - if (languageOptions.parserOptions) { - - if ("ecmaVersion" in languageOptions.parserOptions) { - languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion; - delete languageOptions.parserOptions.ecmaVersion; - } - - if ("sourceType" in languageOptions.parserOptions) { - languageOptions.sourceType = languageOptions.parserOptions.sourceType; - delete languageOptions.parserOptions.sourceType; - } - - // check to see if we even need parserOptions anymore and remove it if not - if (Object.keys(languageOptions.parserOptions).length === 0) { - delete languageOptions.parserOptions; - } - } - - // overrides - if (eslintrcConfig.criteria) { - flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)]; - } - - // translate plugins - if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === "object") { - debug(`Translating plugins: ${eslintrcConfig.plugins}`); - - flatConfig.plugins = {}; - - for (const pluginName of Object.keys(eslintrcConfig.plugins)) { - - debug(`Translating plugin: ${pluginName}`); - debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`); - - const { original: plugin, error } = eslintrcConfig.plugins[pluginName]; - - if (error) { - throw error; - } - - flatConfig.plugins[pluginName] = plugin; - - // create a config for any processors - if (plugin.processors) { - for (const processorName of Object.keys(plugin.processors)) { - if (processorName.startsWith(".")) { - debug(`Assigning processor: ${pluginName}/${processorName}`); - - configs.unshift({ - files: [`**/*${processorName}`], - processor: pluginProcessors.get(`${pluginName}/${processorName}`) - }); - } - - } - } - } - } - - // translate env - must come after plugins - if (eslintrcConfig.env && typeof eslintrcConfig.env === "object") { - for (const envName of Object.keys(eslintrcConfig.env)) { - - // only add environments that are true - if (eslintrcConfig.env[envName]) { - debug(`Translating environment: ${envName}`); - - if (environments.has(envName)) { - - // built-in environments should be defined first - configs.unshift(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...environments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } else if (pluginEnvironments.has(envName)) { - - // if the environment comes from a plugin, it should come after the plugin config - configs.push(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...pluginEnvironments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } - } - } - } - - // only add if there are actually keys in the config - if (Object.keys(flatConfig).length > 0) { - configs.push(flatConfig); - } - - return configs; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A compatibility class for working with configs. - */ -class FlatCompat { - - constructor({ - baseDirectory = process.cwd(), - resolvePluginsRelativeTo = baseDirectory, - recommendedConfig, - allConfig - } = {}) { - this.baseDirectory = baseDirectory; - this.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - this[cafactory] = new ConfigArrayFactory({ - cwd: baseDirectory, - resolvePluginsRelativeTo, - getEslintAllConfig: () => { - - if (!allConfig) { - throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor."); - } - - return allConfig; - }, - getEslintRecommendedConfig: () => { - - if (!recommendedConfig) { - throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor."); - } - - return recommendedConfig; - } - }); - } - - /** - * Translates an ESLintRC-style config into a flag-config-style config. - * @param {Object} eslintrcConfig The ESLintRC-style config object. - * @returns {Object} A flag-config-style config object. - */ - config(eslintrcConfig) { - const eslintrcArray = this[cafactory].create(eslintrcConfig, { - basePath: this.baseDirectory - }); - - const flatArray = []; - let hasIgnorePatterns = false; - - eslintrcArray.forEach(configData => { - if (configData.type === "config") { - hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern; - flatArray.push(...translateESLintRC(configData, { - resolveConfigRelativeTo: path.join(this.baseDirectory, "__placeholder.js"), - resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, "__placeholder.js"), - pluginEnvironments: eslintrcArray.pluginEnvironments, - pluginProcessors: eslintrcArray.pluginProcessors - })); - } - }); - - // combine ignorePatterns to emulate ESLintRC behavior better - if (hasIgnorePatterns) { - flatArray.unshift({ - ignores: [filePath => { - - // Compute the final config for this file. - // This filters config array elements by `files`/`excludedFiles` then merges the elements. - const finalConfig = eslintrcArray.extractConfig(filePath); - - // Test the `ignorePattern` properties of the final config. - return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath); - }] - }); - } - - return flatArray; - } - - /** - * Translates the `env` section of an ESLintRC-style config. - * @param {Object} envConfig The `env` section of an ESLintRC config. - * @returns {Object[]} An array of flag-config objects representing the environments. - */ - env(envConfig) { - return this.config({ - env: envConfig - }); - } - - /** - * Translates the `extends` section of an ESLintRC-style config. - * @param {...string} configsToExtend The names of the configs to load. - * @returns {Object[]} An array of flag-config objects representing the config. - */ - extends(...configsToExtend) { - return this.config({ - extends: configsToExtend - }); - } - - /** - * Translates the `plugins` section of an ESLintRC-style config. - * @param {...string} plugins The names of the plugins to load. - * @returns {Object[]} An array of flag-config objects representing the plugins. - */ - plugins(...plugins) { - return this.config({ - plugins - }); - } -} - -export { FlatCompat }; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index-universal.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index-universal.js deleted file mode 100644 index 6f6b3026..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index-universal.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import * as ConfigOps from "./shared/config-ops.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import environments from "../conf/environments.js"; - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - environments, - - // shared - ConfigOps, - ConfigValidator, - naming -}; - -export { - Legacy -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index.js deleted file mode 100644 index a37e5746..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/index.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import { - ConfigArrayFactory, - createContext as createConfigArrayFactoryContext, - loadConfigFile -} from "./config-array-factory.js"; - -import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js"; -import * as ModuleResolver from "./shared/relative-module-resolver.js"; -import { ConfigArray, getUsedExtractedConfigs } from "./config-array/index.js"; -import { ConfigDependency } from "./config-array/config-dependency.js"; -import { ExtractedConfig } from "./config-array/extracted-config.js"; -import { IgnorePattern } from "./config-array/ignore-pattern.js"; -import { OverrideTester } from "./config-array/override-tester.js"; -import * as ConfigOps from "./shared/config-ops.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import { FlatCompat } from "./flat-compat.js"; -import environments from "../conf/environments.js"; - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - ConfigArray, - createConfigArrayFactoryContext, - CascadingConfigArrayFactory, - ConfigArrayFactory, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs, - environments, - loadConfigFile, - - // shared - ConfigOps, - ConfigValidator, - ModuleResolver, - naming -}; - -export { - - Legacy, - - FlatCompat - -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/ajv.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/ajv.js deleted file mode 100644 index b79ad36c..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/ajv.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import Ajv from "ajv"; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export default (additionalOptions = {}) => { - const ajv = new Ajv({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-ops.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-ops.js deleted file mode 100644 index d203be0e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -export { - getRuleSeverity, - normalizeToStrings, - isErrorSeverity, - isValidSeverity, - isEverySeverityValid, - normalizeConfigGlobal -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-validator.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-validator.js deleted file mode 100644 index 0829bf9d..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +++ /dev/null @@ -1,374 +0,0 @@ -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -/* eslint class-methods-use-this: "off" */ - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Rule} Rule */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import util from "util"; -import * as ConfigOps from "./config-ops.js"; -import { emitDeprecationWarning } from "./deprecation-warnings.js"; -import ajvOrig from "./ajv.js"; -import { deepMergeArrays } from "./deep-merge-arrays.js"; -import configSchema from "../../conf/config-schema.js"; -import BuiltInEnvironments from "../../conf/environments.js"; - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -export default class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions); - - validateRule(mergedOptions); - - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - ConfigOps.normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js deleted file mode 100644 index 91907b13..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import path from "path"; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path.relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { - emitDeprecationWarning -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/naming.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/naming.js deleted file mode 100644 index 93df5fc4..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/naming.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { - normalizePackageName, - getShorthandName, - getNamespaceFromTerm -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js deleted file mode 100644 index 1df0ca80..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -import Module from "module"; - -/* - * `Module.createRequire` is added in v12.2.0. It supports URL as well. - * We only support the case where the argument is a filepath, not a URL. - */ -const createRequire = Module.createRequire; - -/** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ -function resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } -} - -export { - resolve -}; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/types.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/types.js deleted file mode 100644 index a32c35e3..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/lib/shared/types.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @fileoverview Define common types for input completion. - * @author Toru Nagashima - */ - -/** @type {any} */ -export default {}; - -/** @typedef {boolean | "off" | "readable" | "readonly" | "writable" | "writeable"} GlobalConf */ -/** @typedef {0 | 1 | 2 | "off" | "warn" | "error"} SeverityConf */ -/** @typedef {SeverityConf | [SeverityConf, ...any[]]} RuleConf */ - -/** - * @typedef {Object} EcmaFeatures - * @property {boolean} [globalReturn] Enabling `return` statements at the top-level. - * @property {boolean} [jsx] Enabling JSX syntax. - * @property {boolean} [impliedStrict] Enabling strict mode always. - */ - -/** - * @typedef {Object} ParserOptions - * @property {EcmaFeatures} [ecmaFeatures] The optional features. - * @property {3|5|6|7|8|9|10|11|12|2015|2016|2017|2018|2019|2020|2021} [ecmaVersion] The ECMAScript version (or revision number). - * @property {"script"|"module"} [sourceType] The source code type. - */ - -/** - * @typedef {Object} ConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {Record} [globals] The global variable settings. - * @property {string | string[]} [ignorePatterns] The glob patterns that ignore to lint. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {boolean} [root] The root flag. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} OverrideConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [excludedFiles] The glob pattarns for excluded files. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {string | string[]} files The glob patterns for target files. - * @property {Record} [globals] The global variable settings. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} ParseResult - * @property {Object} ast The AST. - * @property {ScopeManager} [scopeManager] The scope manager of the AST. - * @property {Record} [services] The services that the parser provides. - * @property {Record} [visitorKeys] The visitor keys of the AST. - */ - -/** - * @typedef {Object} Parser - * @property {(text:string, options:ParserOptions) => Object} parse The definition of global variables. - * @property {(text:string, options:ParserOptions) => ParseResult} [parseForESLint] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} Environment - * @property {Record} [globals] The definition of global variables. - * @property {ParserOptions} [parserOptions] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} LintMessage - * @property {number} column The 1-based column number. - * @property {number} [endColumn] The 1-based column number of the end location. - * @property {number} [endLine] The 1-based line number of the end location. - * @property {boolean} fatal If `true` then this is a fatal error. - * @property {{range:[number,number], text:string}} [fix] Information for autofix. - * @property {number} line The 1-based line number. - * @property {string} message The error message. - * @property {string|null} ruleId The ID of the rule which makes this message. - * @property {0|1|2} severity The severity of this message. - * @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions. - */ - -/** - * @typedef {Object} SuggestionResult - * @property {string} desc A short description. - * @property {string} [messageId] Id referencing a message for the description. - * @property {{ text: string, range: number[] }} fix fix result info - */ - -/** - * @typedef {Object} Processor - * @property {(text:string, filename:string) => Array} [preprocess] The function to extract code blocks. - * @property {(messagesList:LintMessage[][], filename:string) => LintMessage[]} [postprocess] The function to merge messages. - * @property {boolean} [supportsAutofix] If `true` then it means the processor supports autofix. - */ - -/** - * @typedef {Object} RuleMetaDocs - * @property {string} category The category of the rule. - * @property {string} description The description of the rule. - * @property {boolean} recommended If `true` then the rule is included in `eslint:recommended` preset. - * @property {string} url The URL of the rule documentation. - */ - -/** - * @typedef {Object} RuleMeta - * @property {boolean} [deprecated] If `true` then the rule has been deprecated. - * @property {RuleMetaDocs} docs The document information of the rule. - * @property {"code"|"whitespace"} [fixable] The autofix type. - * @property {Record} [messages] The messages the rule reports. - * @property {string[]} [replacedBy] The IDs of the alternative rules. - * @property {Array|Object} schema The option schema of the rule. - * @property {"problem"|"suggestion"|"layout"} type The rule type. - */ - -/** - * @typedef {Object} Rule - * @property {Function} create The factory of the rule. - * @property {RuleMeta} meta The meta data of the rule. - */ - -/** - * @typedef {Object} Plugin - * @property {Record} [configs] The definition of plugin configs. - * @property {Record} [environments] The definition of plugin environments. - * @property {Record} [processors] The definition of plugin processors. - * @property {Record} [rules] The definition of plugin rules. - */ - -/** - * Information of deprecated rules. - * @typedef {Object} DeprecatedRuleInfo - * @property {string} ruleId The rule ID. - * @property {string[]} replacedBy The rule IDs that replace this deprecated rule. - */ diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/globals.json b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/globals.json deleted file mode 100644 index 4e75173f..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/globals.json +++ /dev/null @@ -1,1998 +0,0 @@ -{ - "builtin": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es5": { - "Array": false, - "Boolean": false, - "constructor": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "propertyIsEnumerable": false, - "RangeError": false, - "ReferenceError": false, - "RegExp": false, - "String": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false - }, - "es2015": { - "Array": false, - "ArrayBuffer": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2017": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2020": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2021": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "browser": { - "AbortController": false, - "AbortSignal": false, - "addEventListener": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffectReadOnly": false, - "AnimationEffectTiming": false, - "AnimationEffectTimingReadOnly": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "applicationCache": false, - "ApplicationCache": false, - "ApplicationCacheErrorEvent": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioDestinationNode": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioWorkletGlobalScope": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "blur": false, - "BroadcastChannel": false, - "btoa": false, - "BudgetService": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "ClipboardEvent": false, - "ClipboardItem": false, - "close": false, - "closed": false, - "CloseEvent": false, - "Comment": false, - "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ConvolverNode": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "Credential": false, - "CredentialsContainer": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSS": false, - "CSSConditionRule": false, - "CSSFontFaceRule": false, - "CSSGroupingRule": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSMatrixComponent": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSPageRule": false, - "CSSPerspective": false, - "CSSRotate": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSScale": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSSupportsRule": false, - "CSSTransformValue": false, - "CSSTranslate": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DecompressionStream": false, - "defaultstatus": false, - "defaultStatus": false, - "DelayNode": false, - "DeviceMotionEvent": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "dispatchEvent": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "Element": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "fetch": false, - "File": false, - "FileList": false, - "FileReader": false, - "find": false, - "focus": false, - "FocusEvent": false, - "FontFace": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "FormDataEvent": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadButton": false, - "GamepadEvent": false, - "getComputedStyle": false, - "getSelection": false, - "HashChangeEvent": false, - "Headers": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLContentElement": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectElement": false, - "HTMLShadowElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDeadline": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "indexedDB": false, - "innerHeight": false, - "innerWidth": false, - "InputEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "Intl": false, - "isSecureContext": false, - "KeyboardEvent": false, - "KeyframeEffect": false, - "KeyframeEffectReadOnly": false, - "length": false, - "localStorage": false, - "location": true, - "Location": false, - "locationbar": false, - "matchMedia": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyMessageEvent": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaSettingsRange": false, - "MediaSource": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamConstraints": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackEvent": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigationPreloadManager": false, - "navigator": false, - "Navigator": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": true, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinstallprompt": true, - "onbeforeprint": true, - "onbeforeunload": true, - "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontextmenu": true, - "oncuechange": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "onerror": true, - "onfocus": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpageshow": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onsearch": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitionend": true, - "onunhandledrejection": true, - "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwheel": true, - "open": false, - "openDatabase": false, - "opener": false, - "Option": false, - "origin": false, - "OscillatorNode": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "personalbar": false, - "PhotoCapabilities": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "print": false, - "ProcessingInstruction": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queueMicrotask": false, - "RadioNodeList": false, - "Range": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registerProcessor": false, - "RemotePlayback": false, - "removeEventListener": false, - "reportError": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "resizeTo": false, - "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCIceCandidate": false, - "RTCIceGatherer": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpContributingSource": false, - "RTCRtpReceiver": false, - "RTCRtpSender": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "screen": false, - "Screen": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "SharedWorker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageEvent": false, - "StorageManager": false, - "structuredClone": false, - "styleMedia": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "SubtleCrypto": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGDiscardElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "TaskAttributionTiming": false, - "Text": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TimeRanges": false, - "ToggleEvent": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TransitionEvent": false, - "TreeWalker": false, - "UIEvent": false, - "URL": false, - "URLSearchParams": false, - "ValidityState": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WheelEvent": false, - "window": false, - "Window": false, - "Worker": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XRAnchor": false, - "XRBoundedReferenceSpace": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRFrame": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRPose": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, - "XSLTProcessor": false - }, - "worker": { - "addEventListener": false, - "applicationCache": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "clearInterval": false, - "clearTimeout": false, - "close": true, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "ErrorEvent": false, - "Event": false, - "fetch": false, - "File": false, - "FileReaderSync": false, - "FormData": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "ImageData": false, - "importScripts": true, - "indexedDB": false, - "location": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "navigator": false, - "Notification": false, - "onclose": true, - "onconnect": true, - "onerror": true, - "onlanguagechange": true, - "onmessage": true, - "onoffline": true, - "ononline": true, - "onrejectionhandled": true, - "onunhandledrejection": true, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "postMessage": true, - "Promise": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "removeEventListener": false, - "reportError": false, - "Request": false, - "Response": false, - "self": true, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "Worker": false, - "WorkerGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false - }, - "node": { - "__dirname": false, - "__filename": false, - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "exports": true, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "module": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "require": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "nodeBuiltin": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "commonjs": { - "exports": true, - "global": false, - "module": false, - "require": false - }, - "amd": { - "define": false, - "require": false - }, - "mocha": { - "after": false, - "afterEach": false, - "before": false, - "beforeEach": false, - "context": false, - "describe": false, - "it": false, - "mocha": false, - "run": false, - "setup": false, - "specify": false, - "suite": false, - "suiteSetup": false, - "suiteTeardown": false, - "teardown": false, - "test": false, - "xcontext": false, - "xdescribe": false, - "xit": false, - "xspecify": false - }, - "jasmine": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "expectAsync": false, - "fail": false, - "fdescribe": false, - "fit": false, - "it": false, - "jasmine": false, - "pending": false, - "runs": false, - "spyOn": false, - "spyOnAllFunctions": false, - "spyOnProperty": false, - "waits": false, - "waitsFor": false, - "xdescribe": false, - "xit": false - }, - "jest": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "fdescribe": false, - "fit": false, - "it": false, - "jest": false, - "pit": false, - "require": false, - "test": false, - "xdescribe": false, - "xit": false, - "xtest": false - }, - "qunit": { - "asyncTest": false, - "deepEqual": false, - "equal": false, - "expect": false, - "module": false, - "notDeepEqual": false, - "notEqual": false, - "notOk": false, - "notPropEqual": false, - "notStrictEqual": false, - "ok": false, - "propEqual": false, - "QUnit": false, - "raises": false, - "start": false, - "stop": false, - "strictEqual": false, - "test": false, - "throws": false - }, - "phantomjs": { - "console": true, - "exports": true, - "phantom": true, - "require": true, - "WebPage": true - }, - "couch": { - "emit": false, - "exports": false, - "getRow": false, - "log": false, - "module": false, - "provides": false, - "require": false, - "respond": false, - "send": false, - "start": false, - "sum": false - }, - "rhino": { - "defineClass": false, - "deserialize": false, - "gc": false, - "help": false, - "importClass": false, - "importPackage": false, - "java": false, - "load": false, - "loadClass": false, - "Packages": false, - "print": false, - "quit": false, - "readFile": false, - "readUrl": false, - "runCommand": false, - "seal": false, - "serialize": false, - "spawn": false, - "sync": false, - "toint32": false, - "version": false - }, - "nashorn": { - "__DIR__": false, - "__FILE__": false, - "__LINE__": false, - "com": false, - "edu": false, - "exit": false, - "java": false, - "Java": false, - "javafx": false, - "JavaImporter": false, - "javax": false, - "JSAdapter": false, - "load": false, - "loadWithNewGlobal": false, - "org": false, - "Packages": false, - "print": false, - "quit": false - }, - "wsh": { - "ActiveXObject": false, - "CollectGarbage": false, - "Debug": false, - "Enumerator": false, - "GetObject": false, - "RuntimeObject": false, - "ScriptEngine": false, - "ScriptEngineBuildVersion": false, - "ScriptEngineMajorVersion": false, - "ScriptEngineMinorVersion": false, - "VBArray": false, - "WScript": false, - "WSH": false - }, - "jquery": { - "$": false, - "jQuery": false - }, - "yui": { - "YAHOO": false, - "YAHOO_config": false, - "YUI": false, - "YUI_config": false - }, - "shelljs": { - "cat": false, - "cd": false, - "chmod": false, - "config": false, - "cp": false, - "dirs": false, - "echo": false, - "env": false, - "error": false, - "exec": false, - "exit": false, - "find": false, - "grep": false, - "ln": false, - "ls": false, - "mkdir": false, - "mv": false, - "popd": false, - "pushd": false, - "pwd": false, - "rm": false, - "sed": false, - "set": false, - "target": false, - "tempdir": false, - "test": false, - "touch": false, - "which": false - }, - "prototypejs": { - "$": false, - "$$": false, - "$A": false, - "$break": false, - "$continue": false, - "$F": false, - "$H": false, - "$R": false, - "$w": false, - "Abstract": false, - "Ajax": false, - "Autocompleter": false, - "Builder": false, - "Class": false, - "Control": false, - "Draggable": false, - "Draggables": false, - "Droppables": false, - "Effect": false, - "Element": false, - "Enumerable": false, - "Event": false, - "Field": false, - "Form": false, - "Hash": false, - "Insertion": false, - "ObjectRange": false, - "PeriodicalExecuter": false, - "Position": false, - "Prototype": false, - "Scriptaculous": false, - "Selector": false, - "Sortable": false, - "SortableObserver": false, - "Sound": false, - "Template": false, - "Toggle": false, - "Try": false - }, - "meteor": { - "$": false, - "Accounts": false, - "AccountsClient": false, - "AccountsCommon": false, - "AccountsServer": false, - "App": false, - "Assets": false, - "Blaze": false, - "check": false, - "Cordova": false, - "DDP": false, - "DDPRateLimiter": false, - "DDPServer": false, - "Deps": false, - "EJSON": false, - "Email": false, - "HTTP": false, - "Log": false, - "Match": false, - "Meteor": false, - "Mongo": false, - "MongoInternals": false, - "Npm": false, - "Package": false, - "Plugin": false, - "process": false, - "Random": false, - "ReactiveDict": false, - "ReactiveVar": false, - "Router": false, - "ServiceConfiguration": false, - "Session": false, - "share": false, - "Spacebars": false, - "Template": false, - "Tinytest": false, - "Tracker": false, - "UI": false, - "Utils": false, - "WebApp": false, - "WebAppInternals": false - }, - "mongo": { - "_isWindows": false, - "_rand": false, - "BulkWriteResult": false, - "cat": false, - "cd": false, - "connect": false, - "db": false, - "getHostName": false, - "getMemInfo": false, - "hostname": false, - "ISODate": false, - "listFiles": false, - "load": false, - "ls": false, - "md5sumFile": false, - "mkdir": false, - "Mongo": false, - "NumberInt": false, - "NumberLong": false, - "ObjectId": false, - "PlanCache": false, - "print": false, - "printjson": false, - "pwd": false, - "quit": false, - "removeFile": false, - "rs": false, - "sh": false, - "UUID": false, - "version": false, - "WriteResult": false - }, - "applescript": { - "$": false, - "Application": false, - "Automation": false, - "console": false, - "delay": false, - "Library": false, - "ObjC": false, - "ObjectSpecifier": false, - "Path": false, - "Progress": false, - "Ref": false - }, - "serviceworker": { - "addEventListener": false, - "applicationCache": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "clearInterval": false, - "clearTimeout": false, - "Client": false, - "clients": false, - "Clients": false, - "close": true, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "ErrorEvent": false, - "Event": false, - "ExtendableEvent": false, - "ExtendableMessageEvent": false, - "fetch": false, - "FetchEvent": false, - "File": false, - "FileReaderSync": false, - "FormData": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "ImageData": false, - "importScripts": false, - "indexedDB": false, - "location": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "navigator": false, - "Notification": false, - "onclose": true, - "onconnect": true, - "onerror": true, - "onfetch": true, - "oninstall": true, - "onlanguagechange": true, - "onmessage": true, - "onmessageerror": true, - "onnotificationclick": true, - "onnotificationclose": true, - "onoffline": true, - "ononline": true, - "onpush": true, - "onpushsubscriptionchange": true, - "onrejectionhandled": true, - "onsync": true, - "onunhandledrejection": true, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "postMessage": true, - "Promise": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registration": false, - "removeEventListener": false, - "Request": false, - "Response": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerGlobalScope": false, - "ServiceWorkerMessageEvent": false, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "skipWaiting": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WindowClient": false, - "Worker": false, - "WorkerGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false - }, - "atomtest": { - "advanceClock": false, - "atom": false, - "fakeClearInterval": false, - "fakeClearTimeout": false, - "fakeSetInterval": false, - "fakeSetTimeout": false, - "resetTimeouts": false, - "waitsForPromise": false - }, - "embertest": { - "andThen": false, - "click": false, - "currentPath": false, - "currentRouteName": false, - "currentURL": false, - "fillIn": false, - "find": false, - "findAll": false, - "findWithAssert": false, - "keyEvent": false, - "pauseTest": false, - "resumeTest": false, - "triggerEvent": false, - "visit": false, - "wait": false - }, - "protractor": { - "$": false, - "$$": false, - "browser": false, - "by": false, - "By": false, - "DartObject": false, - "element": false, - "protractor": false - }, - "shared-node-browser": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "webextensions": { - "browser": false, - "chrome": false, - "opr": false - }, - "greasemonkey": { - "cloneInto": false, - "createObjectIn": false, - "exportFunction": false, - "GM": false, - "GM_addElement": false, - "GM_addStyle": false, - "GM_addValueChangeListener": false, - "GM_deleteValue": false, - "GM_download": false, - "GM_getResourceText": false, - "GM_getResourceURL": false, - "GM_getTab": false, - "GM_getTabs": false, - "GM_getValue": false, - "GM_info": false, - "GM_listValues": false, - "GM_log": false, - "GM_notification": false, - "GM_openInTab": false, - "GM_registerMenuCommand": false, - "GM_removeValueChangeListener": false, - "GM_saveTab": false, - "GM_setClipboard": false, - "GM_setValue": false, - "GM_unregisterMenuCommand": false, - "GM_xmlhttpRequest": false, - "unsafeWindow": false - }, - "devtools": { - "$": false, - "$_": false, - "$$": false, - "$0": false, - "$1": false, - "$2": false, - "$3": false, - "$4": false, - "$x": false, - "chrome": false, - "clear": false, - "copy": false, - "debug": false, - "dir": false, - "dirxml": false, - "getEventListeners": false, - "inspect": false, - "keys": false, - "monitor": false, - "monitorEvents": false, - "profile": false, - "profileEnd": false, - "queryObjects": false, - "table": false, - "undebug": false, - "unmonitor": false, - "unmonitorEvents": false, - "values": false - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts deleted file mode 100644 index edd861f9..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts +++ /dev/null @@ -1,2077 +0,0 @@ -// This file is autogenerated by scripts/generate-types.mjs -// Do NOT modify this file manually - -type GlobalsBuiltin = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs5 = { - readonly 'Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'propertyIsEnumerable': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'RegExp': false; - readonly 'String': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; -} - -type GlobalsEs2015 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2017 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2020 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2021 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsBrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'addEventListener': false; - readonly 'alert': false; - readonly 'AnalyserNode': false; - readonly 'Animation': false; - readonly 'AnimationEffectReadOnly': false; - readonly 'AnimationEffectTiming': false; - readonly 'AnimationEffectTimingReadOnly': false; - readonly 'AnimationEvent': false; - readonly 'AnimationPlaybackEvent': false; - readonly 'AnimationTimeline': false; - readonly 'applicationCache': false; - readonly 'ApplicationCache': false; - readonly 'ApplicationCacheErrorEvent': false; - readonly 'atob': false; - readonly 'Attr': false; - readonly 'Audio': false; - readonly 'AudioBuffer': false; - readonly 'AudioBufferSourceNode': false; - readonly 'AudioContext': false; - readonly 'AudioDestinationNode': false; - readonly 'AudioListener': false; - readonly 'AudioNode': false; - readonly 'AudioParam': false; - readonly 'AudioProcessingEvent': false; - readonly 'AudioScheduledSourceNode': false; - readonly 'AudioWorkletGlobalScope': false; - readonly 'AudioWorkletNode': false; - readonly 'AudioWorkletProcessor': false; - readonly 'BarProp': false; - readonly 'BaseAudioContext': false; - readonly 'BatteryManager': false; - readonly 'BeforeUnloadEvent': false; - readonly 'BiquadFilterNode': false; - readonly 'Blob': false; - readonly 'BlobEvent': false; - readonly 'blur': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'BudgetService': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'cancelAnimationFrame': false; - readonly 'cancelIdleCallback': false; - readonly 'CanvasCaptureMediaStreamTrack': false; - readonly 'CanvasGradient': false; - readonly 'CanvasPattern': false; - readonly 'CanvasRenderingContext2D': false; - readonly 'ChannelMergerNode': false; - readonly 'ChannelSplitterNode': false; - readonly 'CharacterData': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'clientInformation': false; - readonly 'ClipboardEvent': false; - readonly 'ClipboardItem': false; - readonly 'close': false; - readonly 'closed': false; - readonly 'CloseEvent': false; - readonly 'Comment': false; - readonly 'CompositionEvent': false; - readonly 'CompressionStream': false; - readonly 'confirm': false; - readonly 'console': false; - readonly 'ConstantSourceNode': false; - readonly 'ConvolverNode': false; - readonly 'CountQueuingStrategy': false; - readonly 'createImageBitmap': false; - readonly 'Credential': false; - readonly 'CredentialsContainer': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CSS': false; - readonly 'CSSConditionRule': false; - readonly 'CSSFontFaceRule': false; - readonly 'CSSGroupingRule': false; - readonly 'CSSImportRule': false; - readonly 'CSSKeyframeRule': false; - readonly 'CSSKeyframesRule': false; - readonly 'CSSMatrixComponent': false; - readonly 'CSSMediaRule': false; - readonly 'CSSNamespaceRule': false; - readonly 'CSSPageRule': false; - readonly 'CSSPerspective': false; - readonly 'CSSRotate': false; - readonly 'CSSRule': false; - readonly 'CSSRuleList': false; - readonly 'CSSScale': false; - readonly 'CSSSkew': false; - readonly 'CSSSkewX': false; - readonly 'CSSSkewY': false; - readonly 'CSSStyleDeclaration': false; - readonly 'CSSStyleRule': false; - readonly 'CSSStyleSheet': false; - readonly 'CSSSupportsRule': false; - readonly 'CSSTransformValue': false; - readonly 'CSSTranslate': false; - readonly 'CustomElementRegistry': false; - readonly 'customElements': false; - readonly 'CustomEvent': false; - readonly 'DataTransfer': false; - readonly 'DataTransferItem': false; - readonly 'DataTransferItemList': false; - readonly 'DecompressionStream': false; - readonly 'defaultstatus': false; - readonly 'defaultStatus': false; - readonly 'DelayNode': false; - readonly 'DeviceMotionEvent': false; - readonly 'DeviceOrientationEvent': false; - readonly 'devicePixelRatio': false; - readonly 'dispatchEvent': false; - readonly 'document': false; - readonly 'Document': false; - readonly 'DocumentFragment': false; - readonly 'DocumentType': false; - readonly 'DOMError': false; - readonly 'DOMException': false; - readonly 'DOMImplementation': false; - readonly 'DOMMatrix': false; - readonly 'DOMMatrixReadOnly': false; - readonly 'DOMParser': false; - readonly 'DOMPoint': false; - readonly 'DOMPointReadOnly': false; - readonly 'DOMQuad': false; - readonly 'DOMRect': false; - readonly 'DOMRectList': false; - readonly 'DOMRectReadOnly': false; - readonly 'DOMStringList': false; - readonly 'DOMStringMap': false; - readonly 'DOMTokenList': false; - readonly 'DragEvent': false; - readonly 'DynamicsCompressorNode': false; - readonly 'Element': false; - readonly 'ErrorEvent': false; - readonly 'event': false; - readonly 'Event': false; - readonly 'EventSource': false; - readonly 'EventTarget': false; - readonly 'external': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FileList': false; - readonly 'FileReader': false; - readonly 'find': false; - readonly 'focus': false; - readonly 'FocusEvent': false; - readonly 'FontFace': false; - readonly 'FontFaceSetLoadEvent': false; - readonly 'FormData': false; - readonly 'FormDataEvent': false; - readonly 'frameElement': false; - readonly 'frames': false; - readonly 'GainNode': false; - readonly 'Gamepad': false; - readonly 'GamepadButton': false; - readonly 'GamepadEvent': false; - readonly 'getComputedStyle': false; - readonly 'getSelection': false; - readonly 'HashChangeEvent': false; - readonly 'Headers': false; - readonly 'history': false; - readonly 'History': false; - readonly 'HTMLAllCollection': false; - readonly 'HTMLAnchorElement': false; - readonly 'HTMLAreaElement': false; - readonly 'HTMLAudioElement': false; - readonly 'HTMLBaseElement': false; - readonly 'HTMLBodyElement': false; - readonly 'HTMLBRElement': false; - readonly 'HTMLButtonElement': false; - readonly 'HTMLCanvasElement': false; - readonly 'HTMLCollection': false; - readonly 'HTMLContentElement': false; - readonly 'HTMLDataElement': false; - readonly 'HTMLDataListElement': false; - readonly 'HTMLDetailsElement': false; - readonly 'HTMLDialogElement': false; - readonly 'HTMLDirectoryElement': false; - readonly 'HTMLDivElement': false; - readonly 'HTMLDListElement': false; - readonly 'HTMLDocument': false; - readonly 'HTMLElement': false; - readonly 'HTMLEmbedElement': false; - readonly 'HTMLFieldSetElement': false; - readonly 'HTMLFontElement': false; - readonly 'HTMLFormControlsCollection': false; - readonly 'HTMLFormElement': false; - readonly 'HTMLFrameElement': false; - readonly 'HTMLFrameSetElement': false; - readonly 'HTMLHeadElement': false; - readonly 'HTMLHeadingElement': false; - readonly 'HTMLHRElement': false; - readonly 'HTMLHtmlElement': false; - readonly 'HTMLIFrameElement': false; - readonly 'HTMLImageElement': false; - readonly 'HTMLInputElement': false; - readonly 'HTMLLabelElement': false; - readonly 'HTMLLegendElement': false; - readonly 'HTMLLIElement': false; - readonly 'HTMLLinkElement': false; - readonly 'HTMLMapElement': false; - readonly 'HTMLMarqueeElement': false; - readonly 'HTMLMediaElement': false; - readonly 'HTMLMenuElement': false; - readonly 'HTMLMetaElement': false; - readonly 'HTMLMeterElement': false; - readonly 'HTMLModElement': false; - readonly 'HTMLObjectElement': false; - readonly 'HTMLOListElement': false; - readonly 'HTMLOptGroupElement': false; - readonly 'HTMLOptionElement': false; - readonly 'HTMLOptionsCollection': false; - readonly 'HTMLOutputElement': false; - readonly 'HTMLParagraphElement': false; - readonly 'HTMLParamElement': false; - readonly 'HTMLPictureElement': false; - readonly 'HTMLPreElement': false; - readonly 'HTMLProgressElement': false; - readonly 'HTMLQuoteElement': false; - readonly 'HTMLScriptElement': false; - readonly 'HTMLSelectElement': false; - readonly 'HTMLShadowElement': false; - readonly 'HTMLSlotElement': false; - readonly 'HTMLSourceElement': false; - readonly 'HTMLSpanElement': false; - readonly 'HTMLStyleElement': false; - readonly 'HTMLTableCaptionElement': false; - readonly 'HTMLTableCellElement': false; - readonly 'HTMLTableColElement': false; - readonly 'HTMLTableElement': false; - readonly 'HTMLTableRowElement': false; - readonly 'HTMLTableSectionElement': false; - readonly 'HTMLTemplateElement': false; - readonly 'HTMLTextAreaElement': false; - readonly 'HTMLTimeElement': false; - readonly 'HTMLTitleElement': false; - readonly 'HTMLTrackElement': false; - readonly 'HTMLUListElement': false; - readonly 'HTMLUnknownElement': false; - readonly 'HTMLVideoElement': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'IdleDeadline': false; - readonly 'IIRFilterNode': false; - readonly 'Image': false; - readonly 'ImageBitmap': false; - readonly 'ImageBitmapRenderingContext': false; - readonly 'ImageCapture': false; - readonly 'ImageData': false; - readonly 'indexedDB': false; - readonly 'innerHeight': false; - readonly 'innerWidth': false; - readonly 'InputEvent': false; - readonly 'IntersectionObserver': false; - readonly 'IntersectionObserverEntry': false; - readonly 'Intl': false; - readonly 'isSecureContext': false; - readonly 'KeyboardEvent': false; - readonly 'KeyframeEffect': false; - readonly 'KeyframeEffectReadOnly': false; - readonly 'length': false; - readonly 'localStorage': false; - readonly 'location': true; - readonly 'Location': false; - readonly 'locationbar': false; - readonly 'matchMedia': false; - readonly 'MediaDeviceInfo': false; - readonly 'MediaDevices': false; - readonly 'MediaElementAudioSourceNode': false; - readonly 'MediaEncryptedEvent': false; - readonly 'MediaError': false; - readonly 'MediaKeyMessageEvent': false; - readonly 'MediaKeySession': false; - readonly 'MediaKeyStatusMap': false; - readonly 'MediaKeySystemAccess': false; - readonly 'MediaList': false; - readonly 'MediaMetadata': false; - readonly 'MediaQueryList': false; - readonly 'MediaQueryListEvent': false; - readonly 'MediaRecorder': false; - readonly 'MediaSettingsRange': false; - readonly 'MediaSource': false; - readonly 'MediaStream': false; - readonly 'MediaStreamAudioDestinationNode': false; - readonly 'MediaStreamAudioSourceNode': false; - readonly 'MediaStreamConstraints': false; - readonly 'MediaStreamEvent': false; - readonly 'MediaStreamTrack': false; - readonly 'MediaStreamTrackEvent': false; - readonly 'menubar': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'MIDIAccess': false; - readonly 'MIDIConnectionEvent': false; - readonly 'MIDIInput': false; - readonly 'MIDIInputMap': false; - readonly 'MIDIMessageEvent': false; - readonly 'MIDIOutput': false; - readonly 'MIDIOutputMap': false; - readonly 'MIDIPort': false; - readonly 'MimeType': false; - readonly 'MimeTypeArray': false; - readonly 'MouseEvent': false; - readonly 'moveBy': false; - readonly 'moveTo': false; - readonly 'MutationEvent': false; - readonly 'MutationObserver': false; - readonly 'MutationRecord': false; - readonly 'name': false; - readonly 'NamedNodeMap': false; - readonly 'NavigationPreloadManager': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'NavigatorUAData': false; - readonly 'NetworkInformation': false; - readonly 'Node': false; - readonly 'NodeFilter': false; - readonly 'NodeIterator': false; - readonly 'NodeList': false; - readonly 'Notification': false; - readonly 'OfflineAudioCompletionEvent': false; - readonly 'OfflineAudioContext': false; - readonly 'offscreenBuffering': false; - readonly 'OffscreenCanvas': true; - readonly 'OffscreenCanvasRenderingContext2D': false; - readonly 'onabort': true; - readonly 'onafterprint': true; - readonly 'onanimationend': true; - readonly 'onanimationiteration': true; - readonly 'onanimationstart': true; - readonly 'onappinstalled': true; - readonly 'onauxclick': true; - readonly 'onbeforeinstallprompt': true; - readonly 'onbeforeprint': true; - readonly 'onbeforeunload': true; - readonly 'onblur': true; - readonly 'oncancel': true; - readonly 'oncanplay': true; - readonly 'oncanplaythrough': true; - readonly 'onchange': true; - readonly 'onclick': true; - readonly 'onclose': true; - readonly 'oncontextmenu': true; - readonly 'oncuechange': true; - readonly 'ondblclick': true; - readonly 'ondevicemotion': true; - readonly 'ondeviceorientation': true; - readonly 'ondeviceorientationabsolute': true; - readonly 'ondrag': true; - readonly 'ondragend': true; - readonly 'ondragenter': true; - readonly 'ondragleave': true; - readonly 'ondragover': true; - readonly 'ondragstart': true; - readonly 'ondrop': true; - readonly 'ondurationchange': true; - readonly 'onemptied': true; - readonly 'onended': true; - readonly 'onerror': true; - readonly 'onfocus': true; - readonly 'ongotpointercapture': true; - readonly 'onhashchange': true; - readonly 'oninput': true; - readonly 'oninvalid': true; - readonly 'onkeydown': true; - readonly 'onkeypress': true; - readonly 'onkeyup': true; - readonly 'onlanguagechange': true; - readonly 'onload': true; - readonly 'onloadeddata': true; - readonly 'onloadedmetadata': true; - readonly 'onloadstart': true; - readonly 'onlostpointercapture': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onmousedown': true; - readonly 'onmouseenter': true; - readonly 'onmouseleave': true; - readonly 'onmousemove': true; - readonly 'onmouseout': true; - readonly 'onmouseover': true; - readonly 'onmouseup': true; - readonly 'onmousewheel': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpagehide': true; - readonly 'onpageshow': true; - readonly 'onpause': true; - readonly 'onplay': true; - readonly 'onplaying': true; - readonly 'onpointercancel': true; - readonly 'onpointerdown': true; - readonly 'onpointerenter': true; - readonly 'onpointerleave': true; - readonly 'onpointermove': true; - readonly 'onpointerout': true; - readonly 'onpointerover': true; - readonly 'onpointerup': true; - readonly 'onpopstate': true; - readonly 'onprogress': true; - readonly 'onratechange': true; - readonly 'onrejectionhandled': true; - readonly 'onreset': true; - readonly 'onresize': true; - readonly 'onscroll': true; - readonly 'onsearch': true; - readonly 'onseeked': true; - readonly 'onseeking': true; - readonly 'onselect': true; - readonly 'onstalled': true; - readonly 'onstorage': true; - readonly 'onsubmit': true; - readonly 'onsuspend': true; - readonly 'ontimeupdate': true; - readonly 'ontoggle': true; - readonly 'ontransitionend': true; - readonly 'onunhandledrejection': true; - readonly 'onunload': true; - readonly 'onvolumechange': true; - readonly 'onwaiting': true; - readonly 'onwheel': true; - readonly 'open': false; - readonly 'openDatabase': false; - readonly 'opener': false; - readonly 'Option': false; - readonly 'origin': false; - readonly 'OscillatorNode': false; - readonly 'outerHeight': false; - readonly 'outerWidth': false; - readonly 'OverconstrainedError': false; - readonly 'PageTransitionEvent': false; - readonly 'pageXOffset': false; - readonly 'pageYOffset': false; - readonly 'PannerNode': false; - readonly 'parent': false; - readonly 'Path2D': false; - readonly 'PaymentAddress': false; - readonly 'PaymentRequest': false; - readonly 'PaymentRequestUpdateEvent': false; - readonly 'PaymentResponse': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceLongTaskTiming': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceNavigationTiming': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformancePaintTiming': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'PeriodicWave': false; - readonly 'Permissions': false; - readonly 'PermissionStatus': false; - readonly 'personalbar': false; - readonly 'PhotoCapabilities': false; - readonly 'Plugin': false; - readonly 'PluginArray': false; - readonly 'PointerEvent': false; - readonly 'PopStateEvent': false; - readonly 'postMessage': false; - readonly 'Presentation': false; - readonly 'PresentationAvailability': false; - readonly 'PresentationConnection': false; - readonly 'PresentationConnectionAvailableEvent': false; - readonly 'PresentationConnectionCloseEvent': false; - readonly 'PresentationConnectionList': false; - readonly 'PresentationReceiver': false; - readonly 'PresentationRequest': false; - readonly 'print': false; - readonly 'ProcessingInstruction': false; - readonly 'ProgressEvent': false; - readonly 'PromiseRejectionEvent': false; - readonly 'prompt': false; - readonly 'PushManager': false; - readonly 'PushSubscription': false; - readonly 'PushSubscriptionOptions': false; - readonly 'queueMicrotask': false; - readonly 'RadioNodeList': false; - readonly 'Range': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registerProcessor': false; - readonly 'RemotePlayback': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'Request': false; - readonly 'requestAnimationFrame': false; - readonly 'requestIdleCallback': false; - readonly 'resizeBy': false; - readonly 'ResizeObserver': false; - readonly 'ResizeObserverEntry': false; - readonly 'resizeTo': false; - readonly 'Response': false; - readonly 'RTCCertificate': false; - readonly 'RTCDataChannel': false; - readonly 'RTCDataChannelEvent': false; - readonly 'RTCDtlsTransport': false; - readonly 'RTCIceCandidate': false; - readonly 'RTCIceGatherer': false; - readonly 'RTCIceTransport': false; - readonly 'RTCPeerConnection': false; - readonly 'RTCPeerConnectionIceEvent': false; - readonly 'RTCRtpContributingSource': false; - readonly 'RTCRtpReceiver': false; - readonly 'RTCRtpSender': false; - readonly 'RTCSctpTransport': false; - readonly 'RTCSessionDescription': false; - readonly 'RTCStatsReport': false; - readonly 'RTCTrackEvent': false; - readonly 'screen': false; - readonly 'Screen': false; - readonly 'screenLeft': false; - readonly 'ScreenOrientation': false; - readonly 'screenTop': false; - readonly 'screenX': false; - readonly 'screenY': false; - readonly 'ScriptProcessorNode': false; - readonly 'scroll': false; - readonly 'scrollbars': false; - readonly 'scrollBy': false; - readonly 'scrollTo': false; - readonly 'scrollX': false; - readonly 'scrollY': false; - readonly 'SecurityPolicyViolationEvent': false; - readonly 'Selection': false; - readonly 'self': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'sessionStorage': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'ShadowRoot': false; - readonly 'SharedWorker': false; - readonly 'SourceBuffer': false; - readonly 'SourceBufferList': false; - readonly 'speechSynthesis': false; - readonly 'SpeechSynthesisEvent': false; - readonly 'SpeechSynthesisUtterance': false; - readonly 'StaticRange': false; - readonly 'status': false; - readonly 'statusbar': false; - readonly 'StereoPannerNode': false; - readonly 'stop': false; - readonly 'Storage': false; - readonly 'StorageEvent': false; - readonly 'StorageManager': false; - readonly 'structuredClone': false; - readonly 'styleMedia': false; - readonly 'StyleSheet': false; - readonly 'StyleSheetList': false; - readonly 'SubmitEvent': false; - readonly 'SubtleCrypto': false; - readonly 'SVGAElement': false; - readonly 'SVGAngle': false; - readonly 'SVGAnimatedAngle': false; - readonly 'SVGAnimatedBoolean': false; - readonly 'SVGAnimatedEnumeration': false; - readonly 'SVGAnimatedInteger': false; - readonly 'SVGAnimatedLength': false; - readonly 'SVGAnimatedLengthList': false; - readonly 'SVGAnimatedNumber': false; - readonly 'SVGAnimatedNumberList': false; - readonly 'SVGAnimatedPreserveAspectRatio': false; - readonly 'SVGAnimatedRect': false; - readonly 'SVGAnimatedString': false; - readonly 'SVGAnimatedTransformList': false; - readonly 'SVGAnimateElement': false; - readonly 'SVGAnimateMotionElement': false; - readonly 'SVGAnimateTransformElement': false; - readonly 'SVGAnimationElement': false; - readonly 'SVGCircleElement': false; - readonly 'SVGClipPathElement': false; - readonly 'SVGComponentTransferFunctionElement': false; - readonly 'SVGDefsElement': false; - readonly 'SVGDescElement': false; - readonly 'SVGDiscardElement': false; - readonly 'SVGElement': false; - readonly 'SVGEllipseElement': false; - readonly 'SVGFEBlendElement': false; - readonly 'SVGFEColorMatrixElement': false; - readonly 'SVGFEComponentTransferElement': false; - readonly 'SVGFECompositeElement': false; - readonly 'SVGFEConvolveMatrixElement': false; - readonly 'SVGFEDiffuseLightingElement': false; - readonly 'SVGFEDisplacementMapElement': false; - readonly 'SVGFEDistantLightElement': false; - readonly 'SVGFEDropShadowElement': false; - readonly 'SVGFEFloodElement': false; - readonly 'SVGFEFuncAElement': false; - readonly 'SVGFEFuncBElement': false; - readonly 'SVGFEFuncGElement': false; - readonly 'SVGFEFuncRElement': false; - readonly 'SVGFEGaussianBlurElement': false; - readonly 'SVGFEImageElement': false; - readonly 'SVGFEMergeElement': false; - readonly 'SVGFEMergeNodeElement': false; - readonly 'SVGFEMorphologyElement': false; - readonly 'SVGFEOffsetElement': false; - readonly 'SVGFEPointLightElement': false; - readonly 'SVGFESpecularLightingElement': false; - readonly 'SVGFESpotLightElement': false; - readonly 'SVGFETileElement': false; - readonly 'SVGFETurbulenceElement': false; - readonly 'SVGFilterElement': false; - readonly 'SVGForeignObjectElement': false; - readonly 'SVGGElement': false; - readonly 'SVGGeometryElement': false; - readonly 'SVGGradientElement': false; - readonly 'SVGGraphicsElement': false; - readonly 'SVGImageElement': false; - readonly 'SVGLength': false; - readonly 'SVGLengthList': false; - readonly 'SVGLinearGradientElement': false; - readonly 'SVGLineElement': false; - readonly 'SVGMarkerElement': false; - readonly 'SVGMaskElement': false; - readonly 'SVGMatrix': false; - readonly 'SVGMetadataElement': false; - readonly 'SVGMPathElement': false; - readonly 'SVGNumber': false; - readonly 'SVGNumberList': false; - readonly 'SVGPathElement': false; - readonly 'SVGPatternElement': false; - readonly 'SVGPoint': false; - readonly 'SVGPointList': false; - readonly 'SVGPolygonElement': false; - readonly 'SVGPolylineElement': false; - readonly 'SVGPreserveAspectRatio': false; - readonly 'SVGRadialGradientElement': false; - readonly 'SVGRect': false; - readonly 'SVGRectElement': false; - readonly 'SVGScriptElement': false; - readonly 'SVGSetElement': false; - readonly 'SVGStopElement': false; - readonly 'SVGStringList': false; - readonly 'SVGStyleElement': false; - readonly 'SVGSVGElement': false; - readonly 'SVGSwitchElement': false; - readonly 'SVGSymbolElement': false; - readonly 'SVGTextContentElement': false; - readonly 'SVGTextElement': false; - readonly 'SVGTextPathElement': false; - readonly 'SVGTextPositioningElement': false; - readonly 'SVGTitleElement': false; - readonly 'SVGTransform': false; - readonly 'SVGTransformList': false; - readonly 'SVGTSpanElement': false; - readonly 'SVGUnitTypes': false; - readonly 'SVGUseElement': false; - readonly 'SVGViewElement': false; - readonly 'TaskAttributionTiming': false; - readonly 'Text': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TextEvent': false; - readonly 'TextMetrics': false; - readonly 'TextTrack': false; - readonly 'TextTrackCue': false; - readonly 'TextTrackCueList': false; - readonly 'TextTrackList': false; - readonly 'TimeRanges': false; - readonly 'ToggleEvent': false; - readonly 'toolbar': false; - readonly 'top': false; - readonly 'Touch': false; - readonly 'TouchEvent': false; - readonly 'TouchList': false; - readonly 'TrackEvent': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'TransitionEvent': false; - readonly 'TreeWalker': false; - readonly 'UIEvent': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'ValidityState': false; - readonly 'visualViewport': false; - readonly 'VisualViewport': false; - readonly 'VTTCue': false; - readonly 'WaveShaperNode': false; - readonly 'WebAssembly': false; - readonly 'WebGL2RenderingContext': false; - readonly 'WebGLActiveInfo': false; - readonly 'WebGLBuffer': false; - readonly 'WebGLContextEvent': false; - readonly 'WebGLFramebuffer': false; - readonly 'WebGLProgram': false; - readonly 'WebGLQuery': false; - readonly 'WebGLRenderbuffer': false; - readonly 'WebGLRenderingContext': false; - readonly 'WebGLSampler': false; - readonly 'WebGLShader': false; - readonly 'WebGLShaderPrecisionFormat': false; - readonly 'WebGLSync': false; - readonly 'WebGLTexture': false; - readonly 'WebGLTransformFeedback': false; - readonly 'WebGLUniformLocation': false; - readonly 'WebGLVertexArrayObject': false; - readonly 'WebSocket': false; - readonly 'WheelEvent': false; - readonly 'window': false; - readonly 'Window': false; - readonly 'Worker': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLDocument': false; - readonly 'XMLHttpRequest': false; - readonly 'XMLHttpRequestEventTarget': false; - readonly 'XMLHttpRequestUpload': false; - readonly 'XMLSerializer': false; - readonly 'XPathEvaluator': false; - readonly 'XPathExpression': false; - readonly 'XPathResult': false; - readonly 'XRAnchor': false; - readonly 'XRBoundedReferenceSpace': false; - readonly 'XRCPUDepthInformation': false; - readonly 'XRDepthInformation': false; - readonly 'XRFrame': false; - readonly 'XRInputSource': false; - readonly 'XRInputSourceArray': false; - readonly 'XRInputSourceEvent': false; - readonly 'XRInputSourcesChangeEvent': false; - readonly 'XRPose': false; - readonly 'XRReferenceSpace': false; - readonly 'XRReferenceSpaceEvent': false; - readonly 'XRRenderState': false; - readonly 'XRRigidTransform': false; - readonly 'XRSession': false; - readonly 'XRSessionEvent': false; - readonly 'XRSpace': false; - readonly 'XRSystem': false; - readonly 'XRView': false; - readonly 'XRViewerPose': false; - readonly 'XRViewport': false; - readonly 'XRWebGLBinding': false; - readonly 'XRWebGLDepthInformation': false; - readonly 'XRWebGLLayer': false; - readonly 'XSLTProcessor': false; -} - -type GlobalsWorker = { - readonly 'addEventListener': false; - readonly 'applicationCache': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'close': true; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FileReaderSync': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'ImageData': false; - readonly 'importScripts': true; - readonly 'indexedDB': false; - readonly 'location': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'navigator': false; - readonly 'Notification': false; - readonly 'onclose': true; - readonly 'onconnect': true; - readonly 'onerror': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onrejectionhandled': true; - readonly 'onunhandledrejection': true; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'postMessage': true; - readonly 'Promise': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'self': true; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; -} - -type GlobalsNode = { - readonly '__dirname': false; - readonly '__filename': false; - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'exports': true; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'module': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'require': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsNodeBuiltin = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsCommonjs = { - readonly 'exports': true; - readonly 'global': false; - readonly 'module': false; - readonly 'require': false; -} - -type GlobalsAmd = { - readonly 'define': false; - readonly 'require': false; -} - -type GlobalsMocha = { - readonly 'after': false; - readonly 'afterEach': false; - readonly 'before': false; - readonly 'beforeEach': false; - readonly 'context': false; - readonly 'describe': false; - readonly 'it': false; - readonly 'mocha': false; - readonly 'run': false; - readonly 'setup': false; - readonly 'specify': false; - readonly 'suite': false; - readonly 'suiteSetup': false; - readonly 'suiteTeardown': false; - readonly 'teardown': false; - readonly 'test': false; - readonly 'xcontext': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xspecify': false; -} - -type GlobalsJasmine = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'expectAsync': false; - readonly 'fail': false; - readonly 'fdescribe': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jasmine': false; - readonly 'pending': false; - readonly 'runs': false; - readonly 'spyOn': false; - readonly 'spyOnAllFunctions': false; - readonly 'spyOnProperty': false; - readonly 'waits': false; - readonly 'waitsFor': false; - readonly 'xdescribe': false; - readonly 'xit': false; -} - -type GlobalsJest = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'fdescribe': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jest': false; - readonly 'pit': false; - readonly 'require': false; - readonly 'test': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xtest': false; -} - -type GlobalsQunit = { - readonly 'asyncTest': false; - readonly 'deepEqual': false; - readonly 'equal': false; - readonly 'expect': false; - readonly 'module': false; - readonly 'notDeepEqual': false; - readonly 'notEqual': false; - readonly 'notOk': false; - readonly 'notPropEqual': false; - readonly 'notStrictEqual': false; - readonly 'ok': false; - readonly 'propEqual': false; - readonly 'QUnit': false; - readonly 'raises': false; - readonly 'start': false; - readonly 'stop': false; - readonly 'strictEqual': false; - readonly 'test': false; - readonly 'throws': false; -} - -type GlobalsPhantomjs = { - readonly 'console': true; - readonly 'exports': true; - readonly 'phantom': true; - readonly 'require': true; - readonly 'WebPage': true; -} - -type GlobalsCouch = { - readonly 'emit': false; - readonly 'exports': false; - readonly 'getRow': false; - readonly 'log': false; - readonly 'module': false; - readonly 'provides': false; - readonly 'require': false; - readonly 'respond': false; - readonly 'send': false; - readonly 'start': false; - readonly 'sum': false; -} - -type GlobalsRhino = { - readonly 'defineClass': false; - readonly 'deserialize': false; - readonly 'gc': false; - readonly 'help': false; - readonly 'importClass': false; - readonly 'importPackage': false; - readonly 'java': false; - readonly 'load': false; - readonly 'loadClass': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; - readonly 'readFile': false; - readonly 'readUrl': false; - readonly 'runCommand': false; - readonly 'seal': false; - readonly 'serialize': false; - readonly 'spawn': false; - readonly 'sync': false; - readonly 'toint32': false; - readonly 'version': false; -} - -type GlobalsNashorn = { - readonly '__DIR__': false; - readonly '__FILE__': false; - readonly '__LINE__': false; - readonly 'com': false; - readonly 'edu': false; - readonly 'exit': false; - readonly 'java': false; - readonly 'Java': false; - readonly 'javafx': false; - readonly 'JavaImporter': false; - readonly 'javax': false; - readonly 'JSAdapter': false; - readonly 'load': false; - readonly 'loadWithNewGlobal': false; - readonly 'org': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; -} - -type GlobalsWsh = { - readonly 'ActiveXObject': false; - readonly 'CollectGarbage': false; - readonly 'Debug': false; - readonly 'Enumerator': false; - readonly 'GetObject': false; - readonly 'RuntimeObject': false; - readonly 'ScriptEngine': false; - readonly 'ScriptEngineBuildVersion': false; - readonly 'ScriptEngineMajorVersion': false; - readonly 'ScriptEngineMinorVersion': false; - readonly 'VBArray': false; - readonly 'WScript': false; - readonly 'WSH': false; -} - -type GlobalsJquery = { - readonly '$': false; - readonly 'jQuery': false; -} - -type GlobalsYui = { - readonly 'YAHOO': false; - readonly 'YAHOO_config': false; - readonly 'YUI': false; - readonly 'YUI_config': false; -} - -type GlobalsShelljs = { - readonly 'cat': false; - readonly 'cd': false; - readonly 'chmod': false; - readonly 'config': false; - readonly 'cp': false; - readonly 'dirs': false; - readonly 'echo': false; - readonly 'env': false; - readonly 'error': false; - readonly 'exec': false; - readonly 'exit': false; - readonly 'find': false; - readonly 'grep': false; - readonly 'ln': false; - readonly 'ls': false; - readonly 'mkdir': false; - readonly 'mv': false; - readonly 'popd': false; - readonly 'pushd': false; - readonly 'pwd': false; - readonly 'rm': false; - readonly 'sed': false; - readonly 'set': false; - readonly 'target': false; - readonly 'tempdir': false; - readonly 'test': false; - readonly 'touch': false; - readonly 'which': false; -} - -type GlobalsPrototypejs = { - readonly '$': false; - readonly '$$': false; - readonly '$A': false; - readonly '$break': false; - readonly '$continue': false; - readonly '$F': false; - readonly '$H': false; - readonly '$R': false; - readonly '$w': false; - readonly 'Abstract': false; - readonly 'Ajax': false; - readonly 'Autocompleter': false; - readonly 'Builder': false; - readonly 'Class': false; - readonly 'Control': false; - readonly 'Draggable': false; - readonly 'Draggables': false; - readonly 'Droppables': false; - readonly 'Effect': false; - readonly 'Element': false; - readonly 'Enumerable': false; - readonly 'Event': false; - readonly 'Field': false; - readonly 'Form': false; - readonly 'Hash': false; - readonly 'Insertion': false; - readonly 'ObjectRange': false; - readonly 'PeriodicalExecuter': false; - readonly 'Position': false; - readonly 'Prototype': false; - readonly 'Scriptaculous': false; - readonly 'Selector': false; - readonly 'Sortable': false; - readonly 'SortableObserver': false; - readonly 'Sound': false; - readonly 'Template': false; - readonly 'Toggle': false; - readonly 'Try': false; -} - -type GlobalsMeteor = { - readonly '$': false; - readonly 'Accounts': false; - readonly 'AccountsClient': false; - readonly 'AccountsCommon': false; - readonly 'AccountsServer': false; - readonly 'App': false; - readonly 'Assets': false; - readonly 'Blaze': false; - readonly 'check': false; - readonly 'Cordova': false; - readonly 'DDP': false; - readonly 'DDPRateLimiter': false; - readonly 'DDPServer': false; - readonly 'Deps': false; - readonly 'EJSON': false; - readonly 'Email': false; - readonly 'HTTP': false; - readonly 'Log': false; - readonly 'Match': false; - readonly 'Meteor': false; - readonly 'Mongo': false; - readonly 'MongoInternals': false; - readonly 'Npm': false; - readonly 'Package': false; - readonly 'Plugin': false; - readonly 'process': false; - readonly 'Random': false; - readonly 'ReactiveDict': false; - readonly 'ReactiveVar': false; - readonly 'Router': false; - readonly 'ServiceConfiguration': false; - readonly 'Session': false; - readonly 'share': false; - readonly 'Spacebars': false; - readonly 'Template': false; - readonly 'Tinytest': false; - readonly 'Tracker': false; - readonly 'UI': false; - readonly 'Utils': false; - readonly 'WebApp': false; - readonly 'WebAppInternals': false; -} - -type GlobalsMongo = { - readonly '_isWindows': false; - readonly '_rand': false; - readonly 'BulkWriteResult': false; - readonly 'cat': false; - readonly 'cd': false; - readonly 'connect': false; - readonly 'db': false; - readonly 'getHostName': false; - readonly 'getMemInfo': false; - readonly 'hostname': false; - readonly 'ISODate': false; - readonly 'listFiles': false; - readonly 'load': false; - readonly 'ls': false; - readonly 'md5sumFile': false; - readonly 'mkdir': false; - readonly 'Mongo': false; - readonly 'NumberInt': false; - readonly 'NumberLong': false; - readonly 'ObjectId': false; - readonly 'PlanCache': false; - readonly 'print': false; - readonly 'printjson': false; - readonly 'pwd': false; - readonly 'quit': false; - readonly 'removeFile': false; - readonly 'rs': false; - readonly 'sh': false; - readonly 'UUID': false; - readonly 'version': false; - readonly 'WriteResult': false; -} - -type GlobalsApplescript = { - readonly '$': false; - readonly 'Application': false; - readonly 'Automation': false; - readonly 'console': false; - readonly 'delay': false; - readonly 'Library': false; - readonly 'ObjC': false; - readonly 'ObjectSpecifier': false; - readonly 'Path': false; - readonly 'Progress': false; - readonly 'Ref': false; -} - -type GlobalsServiceworker = { - readonly 'addEventListener': false; - readonly 'applicationCache': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'Client': false; - readonly 'clients': false; - readonly 'Clients': false; - readonly 'close': true; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'ExtendableEvent': false; - readonly 'ExtendableMessageEvent': false; - readonly 'fetch': false; - readonly 'FetchEvent': false; - readonly 'File': false; - readonly 'FileReaderSync': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'ImageData': false; - readonly 'importScripts': false; - readonly 'indexedDB': false; - readonly 'location': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'navigator': false; - readonly 'Notification': false; - readonly 'onclose': true; - readonly 'onconnect': true; - readonly 'onerror': true; - readonly 'onfetch': true; - readonly 'oninstall': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onnotificationclick': true; - readonly 'onnotificationclose': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpush': true; - readonly 'onpushsubscriptionchange': true; - readonly 'onrejectionhandled': true; - readonly 'onsync': true; - readonly 'onunhandledrejection': true; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'postMessage': true; - readonly 'Promise': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registration': false; - readonly 'removeEventListener': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'self': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerGlobalScope': false; - readonly 'ServiceWorkerMessageEvent': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'skipWaiting': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WindowClient': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; -} - -type GlobalsAtomtest = { - readonly 'advanceClock': false; - readonly 'atom': false; - readonly 'fakeClearInterval': false; - readonly 'fakeClearTimeout': false; - readonly 'fakeSetInterval': false; - readonly 'fakeSetTimeout': false; - readonly 'resetTimeouts': false; - readonly 'waitsForPromise': false; -} - -type GlobalsEmbertest = { - readonly 'andThen': false; - readonly 'click': false; - readonly 'currentPath': false; - readonly 'currentRouteName': false; - readonly 'currentURL': false; - readonly 'fillIn': false; - readonly 'find': false; - readonly 'findAll': false; - readonly 'findWithAssert': false; - readonly 'keyEvent': false; - readonly 'pauseTest': false; - readonly 'resumeTest': false; - readonly 'triggerEvent': false; - readonly 'visit': false; - readonly 'wait': false; -} - -type GlobalsProtractor = { - readonly '$': false; - readonly '$$': false; - readonly 'browser': false; - readonly 'by': false; - readonly 'By': false; - readonly 'DartObject': false; - readonly 'element': false; - readonly 'protractor': false; -} - -type GlobalsSharednodebrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsWebextensions = { - readonly 'browser': false; - readonly 'chrome': false; - readonly 'opr': false; -} - -type GlobalsGreasemonkey = { - readonly 'cloneInto': false; - readonly 'createObjectIn': false; - readonly 'exportFunction': false; - readonly 'GM': false; - readonly 'GM_addElement': false; - readonly 'GM_addStyle': false; - readonly 'GM_addValueChangeListener': false; - readonly 'GM_deleteValue': false; - readonly 'GM_download': false; - readonly 'GM_getResourceText': false; - readonly 'GM_getResourceURL': false; - readonly 'GM_getTab': false; - readonly 'GM_getTabs': false; - readonly 'GM_getValue': false; - readonly 'GM_info': false; - readonly 'GM_listValues': false; - readonly 'GM_log': false; - readonly 'GM_notification': false; - readonly 'GM_openInTab': false; - readonly 'GM_registerMenuCommand': false; - readonly 'GM_removeValueChangeListener': false; - readonly 'GM_saveTab': false; - readonly 'GM_setClipboard': false; - readonly 'GM_setValue': false; - readonly 'GM_unregisterMenuCommand': false; - readonly 'GM_xmlhttpRequest': false; - readonly 'unsafeWindow': false; -} - -type GlobalsDevtools = { - readonly '$': false; - readonly '$_': false; - readonly '$$': false; - readonly '$0': false; - readonly '$1': false; - readonly '$2': false; - readonly '$3': false; - readonly '$4': false; - readonly '$x': false; - readonly 'chrome': false; - readonly 'clear': false; - readonly 'copy': false; - readonly 'debug': false; - readonly 'dir': false; - readonly 'dirxml': false; - readonly 'getEventListeners': false; - readonly 'inspect': false; - readonly 'keys': false; - readonly 'monitor': false; - readonly 'monitorEvents': false; - readonly 'profile': false; - readonly 'profileEnd': false; - readonly 'queryObjects': false; - readonly 'table': false; - readonly 'undebug': false; - readonly 'unmonitor': false; - readonly 'unmonitorEvents': false; - readonly 'values': false; -} - -type Globals = { - readonly 'builtin': GlobalsBuiltin; - readonly 'es5': GlobalsEs5; - readonly 'es2015': GlobalsEs2015; - readonly 'es2017': GlobalsEs2017; - readonly 'es2020': GlobalsEs2020; - readonly 'es2021': GlobalsEs2021; - readonly 'browser': GlobalsBrowser; - readonly 'worker': GlobalsWorker; - readonly 'node': GlobalsNode; - readonly 'nodeBuiltin': GlobalsNodeBuiltin; - readonly 'commonjs': GlobalsCommonjs; - readonly 'amd': GlobalsAmd; - readonly 'mocha': GlobalsMocha; - readonly 'jasmine': GlobalsJasmine; - readonly 'jest': GlobalsJest; - readonly 'qunit': GlobalsQunit; - readonly 'phantomjs': GlobalsPhantomjs; - readonly 'couch': GlobalsCouch; - readonly 'rhino': GlobalsRhino; - readonly 'nashorn': GlobalsNashorn; - readonly 'wsh': GlobalsWsh; - readonly 'jquery': GlobalsJquery; - readonly 'yui': GlobalsYui; - readonly 'shelljs': GlobalsShelljs; - readonly 'prototypejs': GlobalsPrototypejs; - readonly 'meteor': GlobalsMeteor; - readonly 'mongo': GlobalsMongo; - readonly 'applescript': GlobalsApplescript; - readonly 'serviceworker': GlobalsServiceworker; - readonly 'atomtest': GlobalsAtomtest; - readonly 'embertest': GlobalsEmbertest; - readonly 'protractor': GlobalsProtractor; - readonly 'shared-node-browser': GlobalsSharednodebrowser; - readonly 'webextensions': GlobalsWebextensions; - readonly 'greasemonkey': GlobalsGreasemonkey; - readonly 'devtools': GlobalsDevtools; -} - -declare const globals: Globals; - -export = globals; diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.js deleted file mode 100644 index a951582e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = require('./globals.json'); diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/license b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/license deleted file mode 100644 index fa7ceba3..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/package.json b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/package.json deleted file mode 100644 index fca10a52..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "globals", - "version": "14.0.0", - "description": "Global identifiers from different JavaScript environments", - "license": "MIT", - "repository": "sindresorhus/globals", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "sideEffects": false, - "engines": { - "node": ">=18" - }, - "scripts": { - "test": "xo && ava && tsd", - "prepare": "npm run --silent update-types", - "update-builtin-globals": "node scripts/get-builtin-globals.mjs", - "update-types": "node scripts/generate-types.mjs > index.d.ts" - }, - "files": [ - "index.js", - "index.d.ts", - "globals.json" - ], - "keywords": [ - "globals", - "global", - "identifiers", - "variables", - "vars", - "jshint", - "eslint", - "environments" - ], - "devDependencies": { - "ava": "^2.4.0", - "cheerio": "^1.0.0-rc.12", - "tsd": "^0.30.4", - "type-fest": "^4.10.2", - "xo": "^0.36.1" - }, - "xo": { - "ignores": [ - "get-browser-globals.js" - ], - "rules": { - "node/no-unsupported-features/es-syntax": "off" - } - }, - "tsd": { - "compilerOptions": { - "resolveJsonModule": true - } - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/readme.md b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/readme.md deleted file mode 100644 index 29442a85..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/node_modules/globals/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# globals - -> Global identifiers from different JavaScript environments - -It's just a [JSON file](globals.json), so use it in any environment. - -This package is used by ESLint. - -**This package [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).** - -## Install - -```sh -npm install globals -``` - -## Usage - -```js -const globals = require('globals'); - -console.log(globals.browser); -/* -{ - addEventListener: false, - applicationCache: false, - ArrayBuffer: false, - atob: false, - … -} -*/ -``` - -Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise. - -For Node.js this package provides two sets of globals: - -- `globals.nodeBuiltin`: Globals available to all code running in Node.js. - These will usually be available as properties on the `global` object and include `process`, `Buffer`, but not CommonJS arguments like `require`. - See: https://nodejs.org/api/globals.html -- `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments ("CommonJS module scope"). - See: https://nodejs.org/api/modules.html#modules_the_module_scope - -When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references. diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/package.json b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/package.json deleted file mode 100644 index dac77b45..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "@eslint/eslintrc", - "version": "3.2.0", - "description": "The legacy ESLintRC config file format for ESLint", - "type": "module", - "main": "./dist/eslintrc.cjs", - "exports": { - ".": { - "import": "./lib/index.js", - "require": "./dist/eslintrc.cjs" - }, - "./package.json": "./package.json", - "./universal": { - "import": "./lib/index-universal.js", - "require": "./dist/eslintrc-universal.cjs" - } - }, - "files": [ - "lib", - "conf", - "LICENSE", - "dist", - "universal.js" - ], - "publishConfig": { - "access": "public" - }, - "scripts": { - "build": "rollup -c", - "lint": "eslint . --report-unused-disable-directives", - "lint:fix": "npm run lint -- --fix", - "prepare": "npm run build", - "release:generate:latest": "eslint-generate-release", - "release:generate:alpha": "eslint-generate-prerelease alpha", - "release:generate:beta": "eslint-generate-prerelease beta", - "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release", - "test": "mocha -R progress -c 'tests/lib/*.cjs' && c8 mocha -R progress -c 'tests/lib/**/*.js'" - }, - "repository": "eslint/eslintrc", - "funding": "https://opencollective.com/eslint", - "keywords": [ - "ESLint", - "ESLintRC", - "Configuration" - ], - "author": "Nicholas C. Zakas", - "license": "MIT", - "bugs": { - "url": "https://github.com/eslint/eslintrc/issues" - }, - "homepage": "https://github.com/eslint/eslintrc#readme", - "devDependencies": { - "c8": "^7.7.3", - "chai": "^4.3.4", - "eslint": "^7.31.0", - "eslint-config-eslint": "^7.0.0", - "eslint-plugin-jsdoc": "^35.4.1", - "eslint-plugin-node": "^11.1.0", - "eslint-release": "^3.2.0", - "fs-teardown": "^0.1.3", - "mocha": "^9.0.3", - "rollup": "^2.70.1", - "shelljs": "^0.8.5", - "sinon": "^11.1.2", - "temp-dir": "^2.0.0" - }, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/universal.js b/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/universal.js deleted file mode 100644 index 4e1846ee..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/eslintrc/universal.js +++ /dev/null @@ -1,9 +0,0 @@ -// Jest (and probably some other runtimes with custom implementations of -// `require`) doesn't support `exports` in `package.json`, so this file is here -// to help them load this module. Note that it is also `.js` and not `.cjs` for -// the same reason - `cjs` files requires to be loaded with an extension, but -// since Jest doesn't respect `module` outside of ESM mode it still works in -// this case (and the `require` in _this_ file does specify the extension). - -// eslint-disable-next-line no-undef -module.exports = require("./dist/eslintrc-universal.cjs"); diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/LICENSE b/node_modules/eslint-plugin-github/node_modules/@eslint/js/LICENSE deleted file mode 100644 index b607bb36..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright OpenJS Foundation and other contributors, - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/README.md b/node_modules/eslint-plugin-github/node_modules/@eslint/js/README.md deleted file mode 100644 index 04fc5b2a..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/README.md +++ /dev/null @@ -1,60 +0,0 @@ -[![npm version](https://img.shields.io/npm/v/@eslint/js.svg)](https://www.npmjs.com/package/@eslint/js) - -# ESLint JavaScript Plugin - -[Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat) - -The beginnings of separating out JavaScript-specific functionality from ESLint. - -Right now, this plugin contains two configurations: - -* `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`) -* `all` - enables all ESLint rules (the replacement for `"eslint:all"`) - -## Installation - -```shell -npm install @eslint/js -D -``` - -## Usage - -Use in your `eslint.config.js` file anytime you want to extend one of the configs: - -```js -import js from "@eslint/js"; - -export default [ - - // apply recommended rules to JS files - { - name: "your-project/recommended-rules", - files: ["**/*.js"], - rules: js.configs.recommended.rules - }, - - // apply recommended rules to JS files with an override - { - name: "your-project/recommended-rules-with-override", - files: ["**/*.js"], - rules: { - ...js.configs.recommended.rules, - "no-unused-vars": "warn" - } - }, - - // apply all rules to JS files - { - name: "your-project/all-rules", - files: ["**/*.js"], - rules: { - ...js.configs.all.rules, - "no-unused-vars": "warn" - } - } -] -``` - -## License - -MIT diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/package.json b/node_modules/eslint-plugin-github/node_modules/@eslint/js/package.json deleted file mode 100644 index b520cd62..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@eslint/js", - "version": "9.15.0", - "description": "ESLint JavaScript language implementation", - "main": "./src/index.js", - "types": "./types/index.d.ts", - "scripts": { - "test:types": "tsc -p tests/types/tsconfig.json" - }, - "files": [ - "LICENSE", - "README.md", - "src", - "types" - ], - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/eslint/eslint.git", - "directory": "packages/js" - }, - "homepage": "https://eslint.org", - "bugs": "https://github.com/eslint/eslint/issues/", - "keywords": [ - "javascript", - "eslint-plugin", - "eslint" - ], - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-all.js b/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-all.js deleted file mode 100644 index e7f4e0e3..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-all.js +++ /dev/null @@ -1,217 +0,0 @@ -/* - * WARNING: This file is autogenerated using the tools/update-eslint-all.js - * script. Do not edit manually. - */ -"use strict"; - -/* eslint quote-props: off -- autogenerated so don't lint */ - -/* - * IMPORTANT! - * - * We cannot add a "name" property to this object because it's still used in eslintrc - * which doesn't support the "name" property. If we add a "name" property, it will - * cause an error. - */ - -module.exports = Object.freeze({ - "rules": { - "accessor-pairs": "error", - "array-callback-return": "error", - "arrow-body-style": "error", - "block-scoped-var": "error", - "camelcase": "error", - "capitalized-comments": "error", - "class-methods-use-this": "error", - "complexity": "error", - "consistent-return": "error", - "consistent-this": "error", - "constructor-super": "error", - "curly": "error", - "default-case": "error", - "default-case-last": "error", - "default-param-last": "error", - "dot-notation": "error", - "eqeqeq": "error", - "for-direction": "error", - "func-name-matching": "error", - "func-names": "error", - "func-style": "error", - "getter-return": "error", - "grouped-accessor-pairs": "error", - "guard-for-in": "error", - "id-denylist": "error", - "id-length": "error", - "id-match": "error", - "init-declarations": "error", - "logical-assignment-operators": "error", - "max-classes-per-file": "error", - "max-depth": "error", - "max-lines": "error", - "max-lines-per-function": "error", - "max-nested-callbacks": "error", - "max-params": "error", - "max-statements": "error", - "new-cap": "error", - "no-alert": "error", - "no-array-constructor": "error", - "no-async-promise-executor": "error", - "no-await-in-loop": "error", - "no-bitwise": "error", - "no-caller": "error", - "no-case-declarations": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-console": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-constructor-return": "error", - "no-continue": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-div-regex": "error", - "no-dupe-args": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-duplicate-imports": "error", - "no-else-return": "error", - "no-empty": "error", - "no-empty-character-class": "error", - "no-empty-function": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-eq-null": "error", - "no-eval": "error", - "no-ex-assign": "error", - "no-extend-native": "error", - "no-extra-bind": "error", - "no-extra-boolean-cast": "error", - "no-extra-label": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-implicit-coercion": "error", - "no-implicit-globals": "error", - "no-implied-eval": "error", - "no-import-assign": "error", - "no-inline-comments": "error", - "no-inner-declarations": "error", - "no-invalid-regexp": "error", - "no-invalid-this": "error", - "no-irregular-whitespace": "error", - "no-iterator": "error", - "no-label-var": "error", - "no-labels": "error", - "no-lone-blocks": "error", - "no-lonely-if": "error", - "no-loop-func": "error", - "no-loss-of-precision": "error", - "no-magic-numbers": "error", - "no-misleading-character-class": "error", - "no-multi-assign": "error", - "no-multi-str": "error", - "no-negated-condition": "error", - "no-nested-ternary": "error", - "no-new": "error", - "no-new-func": "error", - "no-new-native-nonconstructor": "error", - "no-new-wrappers": "error", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-object-constructor": "error", - "no-octal": "error", - "no-octal-escape": "error", - "no-param-reassign": "error", - "no-plusplus": "error", - "no-promise-executor-return": "error", - "no-proto": "error", - "no-prototype-builtins": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-restricted-exports": "error", - "no-restricted-globals": "error", - "no-restricted-imports": "error", - "no-restricted-properties": "error", - "no-restricted-syntax": "error", - "no-return-assign": "error", - "no-script-url": "error", - "no-self-assign": "error", - "no-self-compare": "error", - "no-sequences": "error", - "no-setter-return": "error", - "no-shadow": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-template-curly-in-string": "error", - "no-ternary": "error", - "no-this-before-super": "error", - "no-throw-literal": "error", - "no-undef": "error", - "no-undef-init": "error", - "no-undefined": "error", - "no-underscore-dangle": "error", - "no-unexpected-multiline": "error", - "no-unmodified-loop-condition": "error", - "no-unneeded-ternary": "error", - "no-unreachable": "error", - "no-unreachable-loop": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-expressions": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": "error", - "no-use-before-define": "error", - "no-useless-assignment": "error", - "no-useless-backreference": "error", - "no-useless-call": "error", - "no-useless-catch": "error", - "no-useless-computed-key": "error", - "no-useless-concat": "error", - "no-useless-constructor": "error", - "no-useless-escape": "error", - "no-useless-rename": "error", - "no-useless-return": "error", - "no-var": "error", - "no-void": "error", - "no-warning-comments": "error", - "no-with": "error", - "object-shorthand": "error", - "one-var": "error", - "operator-assignment": "error", - "prefer-arrow-callback": "error", - "prefer-const": "error", - "prefer-destructuring": "error", - "prefer-exponentiation-operator": "error", - "prefer-named-capture-group": "error", - "prefer-numeric-literals": "error", - "prefer-object-has-own": "error", - "prefer-object-spread": "error", - "prefer-promise-reject-errors": "error", - "prefer-regex-literals": "error", - "prefer-rest-params": "error", - "prefer-spread": "error", - "prefer-template": "error", - "radix": "error", - "require-atomic-updates": "error", - "require-await": "error", - "require-unicode-regexp": "error", - "require-yield": "error", - "sort-imports": "error", - "sort-keys": "error", - "sort-vars": "error", - "strict": "error", - "symbol-description": "error", - "unicode-bom": "error", - "use-isnan": "error", - "valid-typeof": "error", - "vars-on-top": "error", - "yoda": "error" - } -}); diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-recommended.js b/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-recommended.js deleted file mode 100644 index 3559267e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/configs/eslint-recommended.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @fileoverview Configuration applied when a user configuration extends from - * eslint:recommended. - * @author Nicholas C. Zakas - */ - -"use strict"; - -/* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */ - -/* - * IMPORTANT! - * - * We cannot add a "name" property to this object because it's still used in eslintrc - * which doesn't support the "name" property. If we add a "name" property, it will - * cause an error. - */ - -module.exports = Object.freeze({ - rules: Object.freeze({ - "constructor-super": "error", - "for-direction": "error", - "getter-return": "error", - "no-async-promise-executor": "error", - "no-case-declarations": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-dupe-args": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-empty": "error", - "no-empty-character-class": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-ex-assign": "error", - "no-extra-boolean-cast": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-import-assign": "error", - "no-invalid-regexp": "error", - "no-irregular-whitespace": "error", - "no-loss-of-precision": "error", - "no-misleading-character-class": "error", - "no-new-native-nonconstructor": "error", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-octal": "error", - "no-prototype-builtins": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-self-assign": "error", - "no-setter-return": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-this-before-super": "error", - "no-undef": "error", - "no-unexpected-multiline": "error", - "no-unreachable": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": "error", - "no-useless-backreference": "error", - "no-useless-catch": "error", - "no-useless-escape": "error", - "no-with": "error", - "require-yield": "error", - "use-isnan": "error", - "valid-typeof": "error" - }) -}); diff --git a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/index.js b/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/index.js deleted file mode 100644 index f58dd798..00000000 --- a/node_modules/eslint-plugin-github/node_modules/@eslint/js/src/index.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @fileoverview Main package entrypoint. - * @author Nicholas C. Zakas - */ - -"use strict"; - -const { version } = require("../package.json"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - meta: { - name: "@eslint/js", - version - }, - configs: { - all: require("./configs/eslint-all"), - recommended: require("./configs/eslint-recommended") - } -}; diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/CHANGELOG.md b/node_modules/eslint-plugin-github/node_modules/argparse/CHANGELOG.md deleted file mode 100644 index dc39ed69..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/CHANGELOG.md +++ /dev/null @@ -1,216 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [2.0.1] - 2020-08-29 -### Fixed -- Fix issue with `process.argv` when used with interpreters (`coffee`, `ts-node`, etc.), #150. - - -## [2.0.0] - 2020-08-14 -### Changed -- Full rewrite. Now port from python 3.9.0 & more precise following. - See [doc](./doc) for difference and migration info. -- node.js 10+ required -- Removed most of local docs in favour of original ones. - - -## [1.0.10] - 2018-02-15 -### Fixed -- Use .concat instead of + for arrays, #122. - - -## [1.0.9] - 2016-09-29 -### Changed -- Rerelease after 1.0.8 - deps cleanup. - - -## [1.0.8] - 2016-09-29 -### Changed -- Maintenance (deps bump, fix node 6.5+ tests, coverage report). - - -## [1.0.7] - 2016-03-17 -### Changed -- Teach `addArgument` to accept string arg names. #97, @tomxtobin. - - -## [1.0.6] - 2016-02-06 -### Changed -- Maintenance: moved to eslint & updated CS. - - -## [1.0.5] - 2016-02-05 -### Changed -- Removed lodash dependency to significantly reduce install size. - Thanks to @mourner. - - -## [1.0.4] - 2016-01-17 -### Changed -- Maintenance: lodash update to 4.0.0. - - -## [1.0.3] - 2015-10-27 -### Fixed -- Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple. - - -## [1.0.2] - 2015-03-22 -### Changed -- Relaxed lodash version dependency. - - -## [1.0.1] - 2015-02-20 -### Changed -- Changed dependencies to be compatible with ancient nodejs. - - -## [1.0.0] - 2015-02-19 -### Changed -- Maintenance release. -- Replaced `underscore` with `lodash`. -- Bumped version to 1.0.0 to better reflect semver meaning. -- HISTORY.md -> CHANGELOG.md - - -## [0.1.16] - 2013-12-01 -### Changed -- Maintenance release. Updated dependencies and docs. - - -## [0.1.15] - 2013-05-13 -### Fixed -- Fixed #55, @trebor89 - - -## [0.1.14] - 2013-05-12 -### Fixed -- Fixed #62, @maxtaco - - -## [0.1.13] - 2013-04-08 -### Changed -- Added `.npmignore` to reduce package size - - -## [0.1.12] - 2013-02-10 -### Fixed -- Fixed conflictHandler (#46), @hpaulj - - -## [0.1.11] - 2013-02-07 -### Added -- Added 70+ tests (ported from python), @hpaulj -- Added conflictHandler, @applepicke -- Added fromfilePrefixChar, @hpaulj - -### Fixed -- Multiple bugfixes, @hpaulj - - -## [0.1.10] - 2012-12-30 -### Added -- Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion) - support, thanks to @hpaulj - -### Fixed -- Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj - - -## [0.1.9] - 2012-12-27 -### Fixed -- Fixed option dest interferens with other options (issue #23), thanks to @hpaulj -- Fixed default value behavior with `*` positionals, thanks to @hpaulj -- Improve `getDefault()` behavior, thanks to @hpaulj -- Improve negative argument parsing, thanks to @hpaulj - - -## [0.1.8] - 2012-12-01 -### Fixed -- Fixed parser parents (issue #19), thanks to @hpaulj -- Fixed negative argument parse (issue #20), thanks to @hpaulj - - -## [0.1.7] - 2012-10-14 -### Fixed -- Fixed 'choices' argument parse (issue #16) -- Fixed stderr output (issue #15) - - -## [0.1.6] - 2012-09-09 -### Fixed -- Fixed check for conflict of options (thanks to @tomxtobin) - - -## [0.1.5] - 2012-09-03 -### Fixed -- Fix parser #setDefaults method (thanks to @tomxtobin) - - -## [0.1.4] - 2012-07-30 -### Fixed -- Fixed pseudo-argument support (thanks to @CGamesPlay) -- Fixed addHelp default (should be true), if not set (thanks to @benblank) - - -## [0.1.3] - 2012-06-27 -### Fixed -- Fixed formatter api name: Formatter -> HelpFormatter - - -## [0.1.2] - 2012-05-29 -### Fixed -- Removed excess whitespace in help -- Fixed error reporting, when parcer with subcommands - called with empty arguments - -### Added -- Added basic tests - - -## [0.1.1] - 2012-05-23 -### Fixed -- Fixed line wrapping in help formatter -- Added better error reporting on invalid arguments - - -## [0.1.0] - 2012-05-16 -### Added -- First release. - - -[2.0.1]: https://github.com/nodeca/argparse/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/argparse/compare/1.0.10...2.0.0 -[1.0.10]: https://github.com/nodeca/argparse/compare/1.0.9...1.0.10 -[1.0.9]: https://github.com/nodeca/argparse/compare/1.0.8...1.0.9 -[1.0.8]: https://github.com/nodeca/argparse/compare/1.0.7...1.0.8 -[1.0.7]: https://github.com/nodeca/argparse/compare/1.0.6...1.0.7 -[1.0.6]: https://github.com/nodeca/argparse/compare/1.0.5...1.0.6 -[1.0.5]: https://github.com/nodeca/argparse/compare/1.0.4...1.0.5 -[1.0.4]: https://github.com/nodeca/argparse/compare/1.0.3...1.0.4 -[1.0.3]: https://github.com/nodeca/argparse/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/argparse/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/argparse/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/argparse/compare/0.1.16...1.0.0 -[0.1.16]: https://github.com/nodeca/argparse/compare/0.1.15...0.1.16 -[0.1.15]: https://github.com/nodeca/argparse/compare/0.1.14...0.1.15 -[0.1.14]: https://github.com/nodeca/argparse/compare/0.1.13...0.1.14 -[0.1.13]: https://github.com/nodeca/argparse/compare/0.1.12...0.1.13 -[0.1.12]: https://github.com/nodeca/argparse/compare/0.1.11...0.1.12 -[0.1.11]: https://github.com/nodeca/argparse/compare/0.1.10...0.1.11 -[0.1.10]: https://github.com/nodeca/argparse/compare/0.1.9...0.1.10 -[0.1.9]: https://github.com/nodeca/argparse/compare/0.1.8...0.1.9 -[0.1.8]: https://github.com/nodeca/argparse/compare/0.1.7...0.1.8 -[0.1.7]: https://github.com/nodeca/argparse/compare/0.1.6...0.1.7 -[0.1.6]: https://github.com/nodeca/argparse/compare/0.1.5...0.1.6 -[0.1.5]: https://github.com/nodeca/argparse/compare/0.1.4...0.1.5 -[0.1.4]: https://github.com/nodeca/argparse/compare/0.1.3...0.1.4 -[0.1.3]: https://github.com/nodeca/argparse/compare/0.1.2...0.1.3 -[0.1.2]: https://github.com/nodeca/argparse/compare/0.1.1...0.1.2 -[0.1.1]: https://github.com/nodeca/argparse/compare/0.1.0...0.1.1 -[0.1.0]: https://github.com/nodeca/argparse/releases/tag/0.1.0 diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/LICENSE b/node_modules/eslint-plugin-github/node_modules/argparse/LICENSE deleted file mode 100644 index 66a3ac80..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/LICENSE +++ /dev/null @@ -1,254 +0,0 @@ -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/README.md b/node_modules/eslint-plugin-github/node_modules/argparse/README.md deleted file mode 100644 index 550b5c9b..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/README.md +++ /dev/null @@ -1,84 +0,0 @@ -argparse -======== - -[![Build Status](https://secure.travis-ci.org/nodeca/argparse.svg?branch=master)](http://travis-ci.org/nodeca/argparse) -[![NPM version](https://img.shields.io/npm/v/argparse.svg)](https://www.npmjs.org/package/argparse) - -CLI arguments parser for node.js, with [sub-commands](https://docs.python.org/3.9/library/argparse.html#sub-commands) support. Port of python's [argparse](http://docs.python.org/dev/library/argparse.html) (version [3.9.0](https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py)). - -**Difference with original.** - -- JS has no keyword arguments support. - - Pass options instead: `new ArgumentParser({ description: 'example', add_help: true })`. -- JS has no python's types `int`, `float`, ... - - Use string-typed names: `.add_argument('-b', { type: 'int', help: 'help' })`. -- `%r` format specifier uses `require('util').inspect()`. - -More details in [doc](./doc). - - -Example -------- - -`test.js` file: - -```javascript -#!/usr/bin/env node -'use strict'; - -const { ArgumentParser } = require('argparse'); -const { version } = require('./package.json'); - -const parser = new ArgumentParser({ - description: 'Argparse example' -}); - -parser.add_argument('-v', '--version', { action: 'version', version }); -parser.add_argument('-f', '--foo', { help: 'foo bar' }); -parser.add_argument('-b', '--bar', { help: 'bar foo' }); -parser.add_argument('--baz', { help: 'baz bar' }); - -console.dir(parser.parse_args()); -``` - -Display help: - -``` -$ ./test.js -h -usage: test.js [-h] [-v] [-f FOO] [-b BAR] [--baz BAZ] - -Argparse example - -optional arguments: - -h, --help show this help message and exit - -v, --version show program's version number and exit - -f FOO, --foo FOO foo bar - -b BAR, --bar BAR bar foo - --baz BAZ baz bar -``` - -Parse arguments: - -``` -$ ./test.js -f=3 --bar=4 --baz 5 -{ foo: '3', bar: '4', baz: '5' } -``` - - -API docs --------- - -Since this is a port with minimal divergence, there's no separate documentation. -Use original one instead, with notes about difference. - -1. [Original doc](https://docs.python.org/3.9/library/argparse.html). -2. [Original tutorial](https://docs.python.org/3.9/howto/argparse.html). -3. [Difference with python](./doc). - - -argparse for enterprise ------------------------ - -Available as part of the Tidelift Subscription - -The maintainers of argparse and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-argparse?utm_source=npm-argparse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/argparse.js b/node_modules/eslint-plugin-github/node_modules/argparse/argparse.js deleted file mode 100644 index 2b8c8c63..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/argparse.js +++ /dev/null @@ -1,3707 +0,0 @@ -// Port of python's argparse module, version 3.9.0: -// https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py - -'use strict' - -// Copyright (C) 2010-2020 Python Software Foundation. -// Copyright (C) 2020 argparse.js authors - -/* - * Command-line parsing library - * - * This module is an optparse-inspired command-line parsing library that: - * - * - handles both optional and positional arguments - * - produces highly informative usage messages - * - supports parsers that dispatch to sub-parsers - * - * The following is a simple usage example that sums integers from the - * command-line and writes the result to a file:: - * - * parser = argparse.ArgumentParser( - * description='sum the integers at the command line') - * parser.add_argument( - * 'integers', metavar='int', nargs='+', type=int, - * help='an integer to be summed') - * parser.add_argument( - * '--log', default=sys.stdout, type=argparse.FileType('w'), - * help='the file where the sum should be written') - * args = parser.parse_args() - * args.log.write('%s' % sum(args.integers)) - * args.log.close() - * - * The module contains the following public classes: - * - * - ArgumentParser -- The main entry point for command-line parsing. As the - * example above shows, the add_argument() method is used to populate - * the parser with actions for optional and positional arguments. Then - * the parse_args() method is invoked to convert the args at the - * command-line into an object with attributes. - * - * - ArgumentError -- The exception raised by ArgumentParser objects when - * there are errors with the parser's actions. Errors raised while - * parsing the command-line are caught by ArgumentParser and emitted - * as command-line messages. - * - * - FileType -- A factory for defining types of files to be created. As the - * example above shows, instances of FileType are typically passed as - * the type= argument of add_argument() calls. - * - * - Action -- The base class for parser actions. Typically actions are - * selected by passing strings like 'store_true' or 'append_const' to - * the action= argument of add_argument(). However, for greater - * customization of ArgumentParser actions, subclasses of Action may - * be defined and passed as the action= argument. - * - * - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter, - * ArgumentDefaultsHelpFormatter -- Formatter classes which - * may be passed as the formatter_class= argument to the - * ArgumentParser constructor. HelpFormatter is the default, - * RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser - * not to change the formatting for help text, and - * ArgumentDefaultsHelpFormatter adds information about argument defaults - * to the help. - * - * All other classes in this module are considered implementation details. - * (Also note that HelpFormatter and RawDescriptionHelpFormatter are only - * considered public as object names -- the API of the formatter objects is - * still considered an implementation detail.) - */ - -const SUPPRESS = '==SUPPRESS==' - -const OPTIONAL = '?' -const ZERO_OR_MORE = '*' -const ONE_OR_MORE = '+' -const PARSER = 'A...' -const REMAINDER = '...' -const _UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args' - - -// ================================== -// Utility functions used for porting -// ================================== -const assert = require('assert') -const util = require('util') -const fs = require('fs') -const sub = require('./lib/sub') -const path = require('path') -const repr = util.inspect - -function get_argv() { - // omit first argument (which is assumed to be interpreter - `node`, `coffee`, `ts-node`, etc.) - return process.argv.slice(1) -} - -function get_terminal_size() { - return { - columns: +process.env.COLUMNS || process.stdout.columns || 80 - } -} - -function hasattr(object, name) { - return Object.prototype.hasOwnProperty.call(object, name) -} - -function getattr(object, name, value) { - return hasattr(object, name) ? object[name] : value -} - -function setattr(object, name, value) { - object[name] = value -} - -function setdefault(object, name, value) { - if (!hasattr(object, name)) object[name] = value - return object[name] -} - -function delattr(object, name) { - delete object[name] -} - -function range(from, to, step=1) { - // range(10) is equivalent to range(0, 10) - if (arguments.length === 1) [ to, from ] = [ from, 0 ] - if (typeof from !== 'number' || typeof to !== 'number' || typeof step !== 'number') { - throw new TypeError('argument cannot be interpreted as an integer') - } - if (step === 0) throw new TypeError('range() arg 3 must not be zero') - - let result = [] - if (step > 0) { - for (let i = from; i < to; i += step) result.push(i) - } else { - for (let i = from; i > to; i += step) result.push(i) - } - return result -} - -function splitlines(str, keepends = false) { - let result - if (!keepends) { - result = str.split(/\r\n|[\n\r\v\f\x1c\x1d\x1e\x85\u2028\u2029]/) - } else { - result = [] - let parts = str.split(/(\r\n|[\n\r\v\f\x1c\x1d\x1e\x85\u2028\u2029])/) - for (let i = 0; i < parts.length; i += 2) { - result.push(parts[i] + (i + 1 < parts.length ? parts[i + 1] : '')) - } - } - if (!result[result.length - 1]) result.pop() - return result -} - -function _string_lstrip(string, prefix_chars) { - let idx = 0 - while (idx < string.length && prefix_chars.includes(string[idx])) idx++ - return idx ? string.slice(idx) : string -} - -function _string_split(string, sep, maxsplit) { - let result = string.split(sep) - if (result.length > maxsplit) { - result = result.slice(0, maxsplit).concat([ result.slice(maxsplit).join(sep) ]) - } - return result -} - -function _array_equal(array1, array2) { - if (array1.length !== array2.length) return false - for (let i = 0; i < array1.length; i++) { - if (array1[i] !== array2[i]) return false - } - return true -} - -function _array_remove(array, item) { - let idx = array.indexOf(item) - if (idx === -1) throw new TypeError(sub('%r not in list', item)) - array.splice(idx, 1) -} - -// normalize choices to array; -// this isn't required in python because `in` and `map` operators work with anything, -// but in js dealing with multiple types here is too clunky -function _choices_to_array(choices) { - if (choices === undefined) { - return [] - } else if (Array.isArray(choices)) { - return choices - } else if (choices !== null && typeof choices[Symbol.iterator] === 'function') { - return Array.from(choices) - } else if (typeof choices === 'object' && choices !== null) { - return Object.keys(choices) - } else { - throw new Error(sub('invalid choices value: %r', choices)) - } -} - -// decorator that allows a class to be called without new -function _callable(cls) { - let result = { // object is needed for inferred class name - [cls.name]: function (...args) { - let this_class = new.target === result || !new.target - return Reflect.construct(cls, args, this_class ? cls : new.target) - } - } - result[cls.name].prototype = cls.prototype - // fix default tag for toString, e.g. [object Action] instead of [object Object] - cls.prototype[Symbol.toStringTag] = cls.name - return result[cls.name] -} - -function _alias(object, from, to) { - try { - let name = object.constructor.name - Object.defineProperty(object, from, { - value: util.deprecate(object[to], sub('%s.%s() is renamed to %s.%s()', - name, from, name, to)), - enumerable: false - }) - } catch {} -} - -// decorator that allows snake_case class methods to be called with camelCase and vice versa -function _camelcase_alias(_class) { - for (let name of Object.getOwnPropertyNames(_class.prototype)) { - let camelcase = name.replace(/\w_[a-z]/g, s => s[0] + s[2].toUpperCase()) - if (camelcase !== name) _alias(_class.prototype, camelcase, name) - } - return _class -} - -function _to_legacy_name(key) { - key = key.replace(/\w_[a-z]/g, s => s[0] + s[2].toUpperCase()) - if (key === 'default') key = 'defaultValue' - if (key === 'const') key = 'constant' - return key -} - -function _to_new_name(key) { - if (key === 'defaultValue') key = 'default' - if (key === 'constant') key = 'const' - key = key.replace(/[A-Z]/g, c => '_' + c.toLowerCase()) - return key -} - -// parse options -let no_default = Symbol('no_default_value') -function _parse_opts(args, descriptor) { - function get_name() { - let stack = new Error().stack.split('\n') - .map(x => x.match(/^ at (.*) \(.*\)$/)) - .filter(Boolean) - .map(m => m[1]) - .map(fn => fn.match(/[^ .]*$/)[0]) - - if (stack.length && stack[0] === get_name.name) stack.shift() - if (stack.length && stack[0] === _parse_opts.name) stack.shift() - return stack.length ? stack[0] : '' - } - - args = Array.from(args) - let kwargs = {} - let result = [] - let last_opt = args.length && args[args.length - 1] - - if (typeof last_opt === 'object' && last_opt !== null && !Array.isArray(last_opt) && - (!last_opt.constructor || last_opt.constructor.name === 'Object')) { - kwargs = Object.assign({}, args.pop()) - } - - // LEGACY (v1 compatibility): camelcase - let renames = [] - for (let key of Object.keys(descriptor)) { - let old_name = _to_legacy_name(key) - if (old_name !== key && (old_name in kwargs)) { - if (key in kwargs) { - // default and defaultValue specified at the same time, happens often in old tests - //throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), key)) - } else { - kwargs[key] = kwargs[old_name] - } - renames.push([ old_name, key ]) - delete kwargs[old_name] - } - } - if (renames.length) { - let name = get_name() - deprecate('camelcase_' + name, sub('%s(): following options are renamed: %s', - name, renames.map(([ a, b ]) => sub('%r -> %r', a, b)))) - } - // end - - let missing_positionals = [] - let positional_count = args.length - - for (let [ key, def ] of Object.entries(descriptor)) { - if (key[0] === '*') { - if (key.length > 0 && key[1] === '*') { - // LEGACY (v1 compatibility): camelcase - let renames = [] - for (let key of Object.keys(kwargs)) { - let new_name = _to_new_name(key) - if (new_name !== key && (key in kwargs)) { - if (new_name in kwargs) { - // default and defaultValue specified at the same time, happens often in old tests - //throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), new_name)) - } else { - kwargs[new_name] = kwargs[key] - } - renames.push([ key, new_name ]) - delete kwargs[key] - } - } - if (renames.length) { - let name = get_name() - deprecate('camelcase_' + name, sub('%s(): following options are renamed: %s', - name, renames.map(([ a, b ]) => sub('%r -> %r', a, b)))) - } - // end - result.push(kwargs) - kwargs = {} - } else { - result.push(args) - args = [] - } - } else if (key in kwargs && args.length > 0) { - throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), key)) - } else if (key in kwargs) { - result.push(kwargs[key]) - delete kwargs[key] - } else if (args.length > 0) { - result.push(args.shift()) - } else if (def !== no_default) { - result.push(def) - } else { - missing_positionals.push(key) - } - } - - if (Object.keys(kwargs).length) { - throw new TypeError(sub('%s() got an unexpected keyword argument %r', - get_name(), Object.keys(kwargs)[0])) - } - - if (args.length) { - let from = Object.entries(descriptor).filter(([ k, v ]) => k[0] !== '*' && v !== no_default).length - let to = Object.entries(descriptor).filter(([ k ]) => k[0] !== '*').length - throw new TypeError(sub('%s() takes %s positional argument%s but %s %s given', - get_name(), - from === to ? sub('from %s to %s', from, to) : to, - from === to && to === 1 ? '' : 's', - positional_count, - positional_count === 1 ? 'was' : 'were')) - } - - if (missing_positionals.length) { - let strs = missing_positionals.map(repr) - if (strs.length > 1) strs[strs.length - 1] = 'and ' + strs[strs.length - 1] - let str_joined = strs.join(strs.length === 2 ? '' : ', ') - throw new TypeError(sub('%s() missing %i required positional argument%s: %s', - get_name(), strs.length, strs.length === 1 ? '' : 's', str_joined)) - } - - return result -} - -let _deprecations = {} -function deprecate(id, string) { - _deprecations[id] = _deprecations[id] || util.deprecate(() => {}, string) - _deprecations[id]() -} - - -// ============================= -// Utility functions and classes -// ============================= -function _AttributeHolder(cls = Object) { - /* - * Abstract base class that provides __repr__. - * - * The __repr__ method returns a string in the format:: - * ClassName(attr=name, attr=name, ...) - * The attributes are determined either by a class-level attribute, - * '_kwarg_names', or by inspecting the instance __dict__. - */ - - return class _AttributeHolder extends cls { - [util.inspect.custom]() { - let type_name = this.constructor.name - let arg_strings = [] - let star_args = {} - for (let arg of this._get_args()) { - arg_strings.push(repr(arg)) - } - for (let [ name, value ] of this._get_kwargs()) { - if (/^[a-z_][a-z0-9_$]*$/i.test(name)) { - arg_strings.push(sub('%s=%r', name, value)) - } else { - star_args[name] = value - } - } - if (Object.keys(star_args).length) { - arg_strings.push(sub('**%s', repr(star_args))) - } - return sub('%s(%s)', type_name, arg_strings.join(', ')) - } - - toString() { - return this[util.inspect.custom]() - } - - _get_kwargs() { - return Object.entries(this) - } - - _get_args() { - return [] - } - } -} - - -function _copy_items(items) { - if (items === undefined) { - return [] - } - return items.slice(0) -} - - -// =============== -// Formatting Help -// =============== -const HelpFormatter = _camelcase_alias(_callable(class HelpFormatter { - /* - * Formatter for generating usage messages and argument help strings. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - constructor() { - let [ - prog, - indent_increment, - max_help_position, - width - ] = _parse_opts(arguments, { - prog: no_default, - indent_increment: 2, - max_help_position: 24, - width: undefined - }) - - // default setting for width - if (width === undefined) { - width = get_terminal_size().columns - width -= 2 - } - - this._prog = prog - this._indent_increment = indent_increment - this._max_help_position = Math.min(max_help_position, - Math.max(width - 20, indent_increment * 2)) - this._width = width - - this._current_indent = 0 - this._level = 0 - this._action_max_length = 0 - - this._root_section = this._Section(this, undefined) - this._current_section = this._root_section - - this._whitespace_matcher = /[ \t\n\r\f\v]+/g // equivalent to python /\s+/ with ASCII flag - this._long_break_matcher = /\n\n\n+/g - } - - // =============================== - // Section and indentation methods - // =============================== - _indent() { - this._current_indent += this._indent_increment - this._level += 1 - } - - _dedent() { - this._current_indent -= this._indent_increment - assert(this._current_indent >= 0, 'Indent decreased below 0.') - this._level -= 1 - } - - _add_item(func, args) { - this._current_section.items.push([ func, args ]) - } - - // ======================== - // Message building methods - // ======================== - start_section(heading) { - this._indent() - let section = this._Section(this, this._current_section, heading) - this._add_item(section.format_help.bind(section), []) - this._current_section = section - } - - end_section() { - this._current_section = this._current_section.parent - this._dedent() - } - - add_text(text) { - if (text !== SUPPRESS && text !== undefined) { - this._add_item(this._format_text.bind(this), [text]) - } - } - - add_usage(usage, actions, groups, prefix = undefined) { - if (usage !== SUPPRESS) { - let args = [ usage, actions, groups, prefix ] - this._add_item(this._format_usage.bind(this), args) - } - } - - add_argument(action) { - if (action.help !== SUPPRESS) { - - // find all invocations - let invocations = [this._format_action_invocation(action)] - for (let subaction of this._iter_indented_subactions(action)) { - invocations.push(this._format_action_invocation(subaction)) - } - - // update the maximum item length - let invocation_length = Math.max(...invocations.map(invocation => invocation.length)) - let action_length = invocation_length + this._current_indent - this._action_max_length = Math.max(this._action_max_length, - action_length) - - // add the item to the list - this._add_item(this._format_action.bind(this), [action]) - } - } - - add_arguments(actions) { - for (let action of actions) { - this.add_argument(action) - } - } - - // ======================= - // Help-formatting methods - // ======================= - format_help() { - let help = this._root_section.format_help() - if (help) { - help = help.replace(this._long_break_matcher, '\n\n') - help = help.replace(/^\n+|\n+$/g, '') + '\n' - } - return help - } - - _join_parts(part_strings) { - return part_strings.filter(part => part && part !== SUPPRESS).join('') - } - - _format_usage(usage, actions, groups, prefix) { - if (prefix === undefined) { - prefix = 'usage: ' - } - - // if usage is specified, use that - if (usage !== undefined) { - usage = sub(usage, { prog: this._prog }) - - // if no optionals or positionals are available, usage is just prog - } else if (usage === undefined && !actions.length) { - usage = sub('%(prog)s', { prog: this._prog }) - - // if optionals and positionals are available, calculate usage - } else if (usage === undefined) { - let prog = sub('%(prog)s', { prog: this._prog }) - - // split optionals from positionals - let optionals = [] - let positionals = [] - for (let action of actions) { - if (action.option_strings.length) { - optionals.push(action) - } else { - positionals.push(action) - } - } - - // build full usage string - let action_usage = this._format_actions_usage([].concat(optionals).concat(positionals), groups) - usage = [ prog, action_usage ].map(String).join(' ') - - // wrap the usage parts if it's too long - let text_width = this._width - this._current_indent - if (prefix.length + usage.length > text_width) { - - // break usage into wrappable parts - let part_regexp = /\(.*?\)+(?=\s|$)|\[.*?\]+(?=\s|$)|\S+/g - let opt_usage = this._format_actions_usage(optionals, groups) - let pos_usage = this._format_actions_usage(positionals, groups) - let opt_parts = opt_usage.match(part_regexp) || [] - let pos_parts = pos_usage.match(part_regexp) || [] - assert(opt_parts.join(' ') === opt_usage) - assert(pos_parts.join(' ') === pos_usage) - - // helper for wrapping lines - let get_lines = (parts, indent, prefix = undefined) => { - let lines = [] - let line = [] - let line_len - if (prefix !== undefined) { - line_len = prefix.length - 1 - } else { - line_len = indent.length - 1 - } - for (let part of parts) { - if (line_len + 1 + part.length > text_width && line) { - lines.push(indent + line.join(' ')) - line = [] - line_len = indent.length - 1 - } - line.push(part) - line_len += part.length + 1 - } - if (line.length) { - lines.push(indent + line.join(' ')) - } - if (prefix !== undefined) { - lines[0] = lines[0].slice(indent.length) - } - return lines - } - - let lines - - // if prog is short, follow it with optionals or positionals - if (prefix.length + prog.length <= 0.75 * text_width) { - let indent = ' '.repeat(prefix.length + prog.length + 1) - if (opt_parts.length) { - lines = get_lines([prog].concat(opt_parts), indent, prefix) - lines = lines.concat(get_lines(pos_parts, indent)) - } else if (pos_parts.length) { - lines = get_lines([prog].concat(pos_parts), indent, prefix) - } else { - lines = [prog] - } - - // if prog is long, put it on its own line - } else { - let indent = ' '.repeat(prefix.length) - let parts = [].concat(opt_parts).concat(pos_parts) - lines = get_lines(parts, indent) - if (lines.length > 1) { - lines = [] - lines = lines.concat(get_lines(opt_parts, indent)) - lines = lines.concat(get_lines(pos_parts, indent)) - } - lines = [prog].concat(lines) - } - - // join lines into usage - usage = lines.join('\n') - } - } - - // prefix with 'usage:' - return sub('%s%s\n\n', prefix, usage) - } - - _format_actions_usage(actions, groups) { - // find group indices and identify actions in groups - let group_actions = new Set() - let inserts = {} - for (let group of groups) { - let start = actions.indexOf(group._group_actions[0]) - if (start === -1) { - continue - } else { - let end = start + group._group_actions.length - if (_array_equal(actions.slice(start, end), group._group_actions)) { - for (let action of group._group_actions) { - group_actions.add(action) - } - if (!group.required) { - if (start in inserts) { - inserts[start] += ' [' - } else { - inserts[start] = '[' - } - if (end in inserts) { - inserts[end] += ']' - } else { - inserts[end] = ']' - } - } else { - if (start in inserts) { - inserts[start] += ' (' - } else { - inserts[start] = '(' - } - if (end in inserts) { - inserts[end] += ')' - } else { - inserts[end] = ')' - } - } - for (let i of range(start + 1, end)) { - inserts[i] = '|' - } - } - } - } - - // collect all actions format strings - let parts = [] - for (let [ i, action ] of Object.entries(actions)) { - - // suppressed arguments are marked with None - // remove | separators for suppressed arguments - if (action.help === SUPPRESS) { - parts.push(undefined) - if (inserts[+i] === '|') { - delete inserts[+i] - } else if (inserts[+i + 1] === '|') { - delete inserts[+i + 1] - } - - // produce all arg strings - } else if (!action.option_strings.length) { - let default_value = this._get_default_metavar_for_positional(action) - let part = this._format_args(action, default_value) - - // if it's in a group, strip the outer [] - if (group_actions.has(action)) { - if (part[0] === '[' && part[part.length - 1] === ']') { - part = part.slice(1, -1) - } - } - - // add the action string to the list - parts.push(part) - - // produce the first way to invoke the option in brackets - } else { - let option_string = action.option_strings[0] - let part - - // if the Optional doesn't take a value, format is: - // -s or --long - if (action.nargs === 0) { - part = action.format_usage() - - // if the Optional takes a value, format is: - // -s ARGS or --long ARGS - } else { - let default_value = this._get_default_metavar_for_optional(action) - let args_string = this._format_args(action, default_value) - part = sub('%s %s', option_string, args_string) - } - - // make it look optional if it's not required or in a group - if (!action.required && !group_actions.has(action)) { - part = sub('[%s]', part) - } - - // add the action string to the list - parts.push(part) - } - } - - // insert things at the necessary indices - for (let i of Object.keys(inserts).map(Number).sort((a, b) => b - a)) { - parts.splice(+i, 0, inserts[+i]) - } - - // join all the action items with spaces - let text = parts.filter(Boolean).join(' ') - - // clean up separators for mutually exclusive groups - text = text.replace(/([\[(]) /g, '$1') - text = text.replace(/ ([\])])/g, '$1') - text = text.replace(/[\[(] *[\])]/g, '') - text = text.replace(/\(([^|]*)\)/g, '$1', text) - text = text.trim() - - // return the text - return text - } - - _format_text(text) { - if (text.includes('%(prog)')) { - text = sub(text, { prog: this._prog }) - } - let text_width = Math.max(this._width - this._current_indent, 11) - let indent = ' '.repeat(this._current_indent) - return this._fill_text(text, text_width, indent) + '\n\n' - } - - _format_action(action) { - // determine the required width and the entry label - let help_position = Math.min(this._action_max_length + 2, - this._max_help_position) - let help_width = Math.max(this._width - help_position, 11) - let action_width = help_position - this._current_indent - 2 - let action_header = this._format_action_invocation(action) - let indent_first - - // no help; start on same line and add a final newline - if (!action.help) { - let tup = [ this._current_indent, '', action_header ] - action_header = sub('%*s%s\n', ...tup) - - // short action name; start on the same line and pad two spaces - } else if (action_header.length <= action_width) { - let tup = [ this._current_indent, '', action_width, action_header ] - action_header = sub('%*s%-*s ', ...tup) - indent_first = 0 - - // long action name; start on the next line - } else { - let tup = [ this._current_indent, '', action_header ] - action_header = sub('%*s%s\n', ...tup) - indent_first = help_position - } - - // collect the pieces of the action help - let parts = [action_header] - - // if there was help for the action, add lines of help text - if (action.help) { - let help_text = this._expand_help(action) - let help_lines = this._split_lines(help_text, help_width) - parts.push(sub('%*s%s\n', indent_first, '', help_lines[0])) - for (let line of help_lines.slice(1)) { - parts.push(sub('%*s%s\n', help_position, '', line)) - } - - // or add a newline if the description doesn't end with one - } else if (!action_header.endsWith('\n')) { - parts.push('\n') - } - - // if there are any sub-actions, add their help as well - for (let subaction of this._iter_indented_subactions(action)) { - parts.push(this._format_action(subaction)) - } - - // return a single string - return this._join_parts(parts) - } - - _format_action_invocation(action) { - if (!action.option_strings.length) { - let default_value = this._get_default_metavar_for_positional(action) - let metavar = this._metavar_formatter(action, default_value)(1)[0] - return metavar - - } else { - let parts = [] - - // if the Optional doesn't take a value, format is: - // -s, --long - if (action.nargs === 0) { - parts = parts.concat(action.option_strings) - - // if the Optional takes a value, format is: - // -s ARGS, --long ARGS - } else { - let default_value = this._get_default_metavar_for_optional(action) - let args_string = this._format_args(action, default_value) - for (let option_string of action.option_strings) { - parts.push(sub('%s %s', option_string, args_string)) - } - } - - return parts.join(', ') - } - } - - _metavar_formatter(action, default_metavar) { - let result - if (action.metavar !== undefined) { - result = action.metavar - } else if (action.choices !== undefined) { - let choice_strs = _choices_to_array(action.choices).map(String) - result = sub('{%s}', choice_strs.join(',')) - } else { - result = default_metavar - } - - function format(tuple_size) { - if (Array.isArray(result)) { - return result - } else { - return Array(tuple_size).fill(result) - } - } - return format - } - - _format_args(action, default_metavar) { - let get_metavar = this._metavar_formatter(action, default_metavar) - let result - if (action.nargs === undefined) { - result = sub('%s', ...get_metavar(1)) - } else if (action.nargs === OPTIONAL) { - result = sub('[%s]', ...get_metavar(1)) - } else if (action.nargs === ZERO_OR_MORE) { - let metavar = get_metavar(1) - if (metavar.length === 2) { - result = sub('[%s [%s ...]]', ...metavar) - } else { - result = sub('[%s ...]', ...metavar) - } - } else if (action.nargs === ONE_OR_MORE) { - result = sub('%s [%s ...]', ...get_metavar(2)) - } else if (action.nargs === REMAINDER) { - result = '...' - } else if (action.nargs === PARSER) { - result = sub('%s ...', ...get_metavar(1)) - } else if (action.nargs === SUPPRESS) { - result = '' - } else { - let formats - try { - formats = range(action.nargs).map(() => '%s') - } catch (err) { - throw new TypeError('invalid nargs value') - } - result = sub(formats.join(' '), ...get_metavar(action.nargs)) - } - return result - } - - _expand_help(action) { - let params = Object.assign({ prog: this._prog }, action) - for (let name of Object.keys(params)) { - if (params[name] === SUPPRESS) { - delete params[name] - } - } - for (let name of Object.keys(params)) { - if (params[name] && params[name].name) { - params[name] = params[name].name - } - } - if (params.choices !== undefined) { - let choices_str = _choices_to_array(params.choices).map(String).join(', ') - params.choices = choices_str - } - // LEGACY (v1 compatibility): camelcase - for (let key of Object.keys(params)) { - let old_name = _to_legacy_name(key) - if (old_name !== key) { - params[old_name] = params[key] - } - } - // end - return sub(this._get_help_string(action), params) - } - - * _iter_indented_subactions(action) { - if (typeof action._get_subactions === 'function') { - this._indent() - yield* action._get_subactions() - this._dedent() - } - } - - _split_lines(text, width) { - text = text.replace(this._whitespace_matcher, ' ').trim() - // The textwrap module is used only for formatting help. - // Delay its import for speeding up the common usage of argparse. - let textwrap = require('./lib/textwrap') - return textwrap.wrap(text, { width }) - } - - _fill_text(text, width, indent) { - text = text.replace(this._whitespace_matcher, ' ').trim() - let textwrap = require('./lib/textwrap') - return textwrap.fill(text, { width, - initial_indent: indent, - subsequent_indent: indent }) - } - - _get_help_string(action) { - return action.help - } - - _get_default_metavar_for_optional(action) { - return action.dest.toUpperCase() - } - - _get_default_metavar_for_positional(action) { - return action.dest - } -})) - -HelpFormatter.prototype._Section = _callable(class _Section { - - constructor(formatter, parent, heading = undefined) { - this.formatter = formatter - this.parent = parent - this.heading = heading - this.items = [] - } - - format_help() { - // format the indented section - if (this.parent !== undefined) { - this.formatter._indent() - } - let item_help = this.formatter._join_parts(this.items.map(([ func, args ]) => func.apply(null, args))) - if (this.parent !== undefined) { - this.formatter._dedent() - } - - // return nothing if the section was empty - if (!item_help) { - return '' - } - - // add the heading if the section was non-empty - let heading - if (this.heading !== SUPPRESS && this.heading !== undefined) { - let current_indent = this.formatter._current_indent - heading = sub('%*s%s:\n', current_indent, '', this.heading) - } else { - heading = '' - } - - // join the section-initial newline, the heading and the help - return this.formatter._join_parts(['\n', heading, item_help, '\n']) - } -}) - - -const RawDescriptionHelpFormatter = _camelcase_alias(_callable(class RawDescriptionHelpFormatter extends HelpFormatter { - /* - * Help message formatter which retains any formatting in descriptions. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _fill_text(text, width, indent) { - return splitlines(text, true).map(line => indent + line).join('') - } -})) - - -const RawTextHelpFormatter = _camelcase_alias(_callable(class RawTextHelpFormatter extends RawDescriptionHelpFormatter { - /* - * Help message formatter which retains formatting of all help text. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _split_lines(text/*, width*/) { - return splitlines(text) - } -})) - - -const ArgumentDefaultsHelpFormatter = _camelcase_alias(_callable(class ArgumentDefaultsHelpFormatter extends HelpFormatter { - /* - * Help message formatter which adds default values to argument help. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _get_help_string(action) { - let help = action.help - // LEGACY (v1 compatibility): additional check for defaultValue needed - if (!action.help.includes('%(default)') && !action.help.includes('%(defaultValue)')) { - if (action.default !== SUPPRESS) { - let defaulting_nargs = [OPTIONAL, ZERO_OR_MORE] - if (action.option_strings.length || defaulting_nargs.includes(action.nargs)) { - help += ' (default: %(default)s)' - } - } - } - return help - } -})) - - -const MetavarTypeHelpFormatter = _camelcase_alias(_callable(class MetavarTypeHelpFormatter extends HelpFormatter { - /* - * Help message formatter which uses the argument 'type' as the default - * metavar value (instead of the argument 'dest') - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _get_default_metavar_for_optional(action) { - return typeof action.type === 'function' ? action.type.name : action.type - } - - _get_default_metavar_for_positional(action) { - return typeof action.type === 'function' ? action.type.name : action.type - } -})) - - -// ===================== -// Options and Arguments -// ===================== -function _get_action_name(argument) { - if (argument === undefined) { - return undefined - } else if (argument.option_strings.length) { - return argument.option_strings.join('/') - } else if (![ undefined, SUPPRESS ].includes(argument.metavar)) { - return argument.metavar - } else if (![ undefined, SUPPRESS ].includes(argument.dest)) { - return argument.dest - } else { - return undefined - } -} - - -const ArgumentError = _callable(class ArgumentError extends Error { - /* - * An error from creating or using an argument (optional or positional). - * - * The string value of this exception is the message, augmented with - * information about the argument that caused it. - */ - - constructor(argument, message) { - super() - this.name = 'ArgumentError' - this._argument_name = _get_action_name(argument) - this._message = message - this.message = this.str() - } - - str() { - let format - if (this._argument_name === undefined) { - format = '%(message)s' - } else { - format = 'argument %(argument_name)s: %(message)s' - } - return sub(format, { message: this._message, - argument_name: this._argument_name }) - } -}) - - -const ArgumentTypeError = _callable(class ArgumentTypeError extends Error { - /* - * An error from trying to convert a command line string to a type. - */ - - constructor(message) { - super(message) - this.name = 'ArgumentTypeError' - } -}) - - -// ============== -// Action classes -// ============== -const Action = _camelcase_alias(_callable(class Action extends _AttributeHolder(Function) { - /* - * Information about how to convert command line strings to Python objects. - * - * Action objects are used by an ArgumentParser to represent the information - * needed to parse a single argument from one or more strings from the - * command line. The keyword arguments to the Action constructor are also - * all attributes of Action instances. - * - * Keyword Arguments: - * - * - option_strings -- A list of command-line option strings which - * should be associated with this action. - * - * - dest -- The name of the attribute to hold the created object(s) - * - * - nargs -- The number of command-line arguments that should be - * consumed. By default, one argument will be consumed and a single - * value will be produced. Other values include: - * - N (an integer) consumes N arguments (and produces a list) - * - '?' consumes zero or one arguments - * - '*' consumes zero or more arguments (and produces a list) - * - '+' consumes one or more arguments (and produces a list) - * Note that the difference between the default and nargs=1 is that - * with the default, a single value will be produced, while with - * nargs=1, a list containing a single value will be produced. - * - * - const -- The value to be produced if the option is specified and the - * option uses an action that takes no values. - * - * - default -- The value to be produced if the option is not specified. - * - * - type -- A callable that accepts a single string argument, and - * returns the converted value. The standard Python types str, int, - * float, and complex are useful examples of such callables. If None, - * str is used. - * - * - choices -- A container of values that should be allowed. If not None, - * after a command-line argument has been converted to the appropriate - * type, an exception will be raised if it is not a member of this - * collection. - * - * - required -- True if the action must always be specified at the - * command line. This is only meaningful for optional command-line - * arguments. - * - * - help -- The help string describing the argument. - * - * - metavar -- The name to be used for the option's argument with the - * help string. If None, the 'dest' value will be used as the name. - */ - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - // when this class is called as a function, redirect it to .call() method of itself - super('return arguments.callee.call.apply(arguments.callee, arguments)') - - this.option_strings = option_strings - this.dest = dest - this.nargs = nargs - this.const = const_value - this.default = default_value - this.type = type - this.choices = choices - this.required = required - this.help = help - this.metavar = metavar - } - - _get_kwargs() { - let names = [ - 'option_strings', - 'dest', - 'nargs', - 'const', - 'default', - 'type', - 'choices', - 'help', - 'metavar' - ] - return names.map(name => [ name, getattr(this, name) ]) - } - - format_usage() { - return this.option_strings[0] - } - - call(/*parser, namespace, values, option_string = undefined*/) { - throw new Error('.call() not defined') - } -})) - - -const BooleanOptionalAction = _camelcase_alias(_callable(class BooleanOptionalAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - let _option_strings = [] - for (let option_string of option_strings) { - _option_strings.push(option_string) - - if (option_string.startsWith('--')) { - option_string = '--no-' + option_string.slice(2) - _option_strings.push(option_string) - } - } - - if (help !== undefined && default_value !== undefined) { - help += ` (default: ${default_value})` - } - - super({ - option_strings: _option_strings, - dest, - nargs: 0, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values, option_string = undefined) { - if (this.option_strings.includes(option_string)) { - setattr(namespace, this.dest, !option_string.startsWith('--no-')) - } - } - - format_usage() { - return this.option_strings.join(' | ') - } -})) - - -const _StoreAction = _callable(class _StoreAction extends Action { - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - if (nargs === 0) { - throw new TypeError('nargs for store actions must be != 0; if you ' + - 'have nothing to store, actions such as store ' + - 'true or store const may be more appropriate') - } - if (const_value !== undefined && nargs !== OPTIONAL) { - throw new TypeError(sub('nargs must be %r to supply const', OPTIONAL)) - } - super({ - option_strings, - dest, - nargs, - const: const_value, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values/*, option_string = undefined*/) { - setattr(namespace, this.dest, values) - } -}) - - -const _StoreConstAction = _callable(class _StoreConstAction extends Action { - - constructor() { - let [ - option_strings, - dest, - const_value, - default_value, - required, - help - //, metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - const: no_default, - default: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - const: const_value, - default: default_value, - required, - help - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - setattr(namespace, this.dest, this.const) - } -}) - - -const _StoreTrueAction = _callable(class _StoreTrueAction extends _StoreConstAction { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: false, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - const: true, - default: default_value, - required, - help - }) - } -}) - - -const _StoreFalseAction = _callable(class _StoreFalseAction extends _StoreConstAction { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: true, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - const: false, - default: default_value, - required, - help - }) - } -}) - - -const _AppendAction = _callable(class _AppendAction extends Action { - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - if (nargs === 0) { - throw new TypeError('nargs for append actions must be != 0; if arg ' + - 'strings are not supplying the value to append, ' + - 'the append const action may be more appropriate') - } - if (const_value !== undefined && nargs !== OPTIONAL) { - throw new TypeError(sub('nargs must be %r to supply const', OPTIONAL)) - } - super({ - option_strings, - dest, - nargs, - const: const_value, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values/*, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items.push(values) - setattr(namespace, this.dest, items) - } -}) - - -const _AppendConstAction = _callable(class _AppendConstAction extends Action { - - constructor() { - let [ - option_strings, - dest, - const_value, - default_value, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - const: no_default, - default: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - const: const_value, - default: default_value, - required, - help, - metavar - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items.push(this.const) - setattr(namespace, this.dest, items) - } -}) - - -const _CountAction = _callable(class _CountAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: undefined, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - default: default_value, - required, - help - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - let count = getattr(namespace, this.dest, undefined) - if (count === undefined) { - count = 0 - } - setattr(namespace, this.dest, count + 1) - } -}) - - -const _HelpAction = _callable(class _HelpAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: SUPPRESS, - default: SUPPRESS, - help: undefined - }) - - super({ - option_strings, - dest, - default: default_value, - nargs: 0, - help - }) - } - - call(parser/*, namespace, values, option_string = undefined*/) { - parser.print_help() - parser.exit() - } -}) - - -const _VersionAction = _callable(class _VersionAction extends Action { - - constructor() { - let [ - option_strings, - version, - dest, - default_value, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - version: undefined, - dest: SUPPRESS, - default: SUPPRESS, - help: "show program's version number and exit" - }) - - super({ - option_strings, - dest, - default: default_value, - nargs: 0, - help - }) - this.version = version - } - - call(parser/*, namespace, values, option_string = undefined*/) { - let version = this.version - if (version === undefined) { - version = parser.version - } - let formatter = parser._get_formatter() - formatter.add_text(version) - parser._print_message(formatter.format_help(), process.stdout) - parser.exit() - } -}) - - -const _SubParsersAction = _camelcase_alias(_callable(class _SubParsersAction extends Action { - - constructor() { - let [ - option_strings, - prog, - parser_class, - dest, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - prog: no_default, - parser_class: no_default, - dest: SUPPRESS, - required: false, - help: undefined, - metavar: undefined - }) - - let name_parser_map = {} - - super({ - option_strings, - dest, - nargs: PARSER, - choices: name_parser_map, - required, - help, - metavar - }) - - this._prog_prefix = prog - this._parser_class = parser_class - this._name_parser_map = name_parser_map - this._choices_actions = [] - } - - add_parser() { - let [ - name, - kwargs - ] = _parse_opts(arguments, { - name: no_default, - '**kwargs': no_default - }) - - // set prog from the existing prefix - if (kwargs.prog === undefined) { - kwargs.prog = sub('%s %s', this._prog_prefix, name) - } - - let aliases = getattr(kwargs, 'aliases', []) - delete kwargs.aliases - - // create a pseudo-action to hold the choice help - if ('help' in kwargs) { - let help = kwargs.help - delete kwargs.help - let choice_action = this._ChoicesPseudoAction(name, aliases, help) - this._choices_actions.push(choice_action) - } - - // create the parser and add it to the map - let parser = new this._parser_class(kwargs) - this._name_parser_map[name] = parser - - // make parser available under aliases also - for (let alias of aliases) { - this._name_parser_map[alias] = parser - } - - return parser - } - - _get_subactions() { - return this._choices_actions - } - - call(parser, namespace, values/*, option_string = undefined*/) { - let parser_name = values[0] - let arg_strings = values.slice(1) - - // set the parser name if requested - if (this.dest !== SUPPRESS) { - setattr(namespace, this.dest, parser_name) - } - - // select the parser - if (hasattr(this._name_parser_map, parser_name)) { - parser = this._name_parser_map[parser_name] - } else { - let args = {parser_name, - choices: this._name_parser_map.join(', ')} - let msg = sub('unknown parser %(parser_name)r (choices: %(choices)s)', args) - throw new ArgumentError(this, msg) - } - - // parse all the remaining options into the namespace - // store any unrecognized options on the object, so that the top - // level parser can decide what to do with them - - // In case this subparser defines new defaults, we parse them - // in a new namespace object and then update the original - // namespace for the relevant parts. - let subnamespace - [ subnamespace, arg_strings ] = parser.parse_known_args(arg_strings, undefined) - for (let [ key, value ] of Object.entries(subnamespace)) { - setattr(namespace, key, value) - } - - if (arg_strings.length) { - setdefault(namespace, _UNRECOGNIZED_ARGS_ATTR, []) - getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).push(...arg_strings) - } - } -})) - - -_SubParsersAction.prototype._ChoicesPseudoAction = _callable(class _ChoicesPseudoAction extends Action { - constructor(name, aliases, help) { - let metavar = name, dest = name - if (aliases.length) { - metavar += sub(' (%s)', aliases.join(', ')) - } - super({ option_strings: [], dest, help, metavar }) - } -}) - - -const _ExtendAction = _callable(class _ExtendAction extends _AppendAction { - call(parser, namespace, values/*, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items = items.concat(values) - setattr(namespace, this.dest, items) - } -}) - - -// ============== -// Type classes -// ============== -const FileType = _callable(class FileType extends Function { - /* - * Factory for creating file object types - * - * Instances of FileType are typically passed as type= arguments to the - * ArgumentParser add_argument() method. - * - * Keyword Arguments: - * - mode -- A string indicating how the file is to be opened. Accepts the - * same values as the builtin open() function. - * - bufsize -- The file's desired buffer size. Accepts the same values as - * the builtin open() function. - * - encoding -- The file's encoding. Accepts the same values as the - * builtin open() function. - * - errors -- A string indicating how encoding and decoding errors are to - * be handled. Accepts the same value as the builtin open() function. - */ - - constructor() { - let [ - flags, - encoding, - mode, - autoClose, - emitClose, - start, - end, - highWaterMark, - fs - ] = _parse_opts(arguments, { - flags: 'r', - encoding: undefined, - mode: undefined, // 0o666 - autoClose: undefined, // true - emitClose: undefined, // false - start: undefined, // 0 - end: undefined, // Infinity - highWaterMark: undefined, // 64 * 1024 - fs: undefined - }) - - // when this class is called as a function, redirect it to .call() method of itself - super('return arguments.callee.call.apply(arguments.callee, arguments)') - - Object.defineProperty(this, 'name', { - get() { - return sub('FileType(%r)', flags) - } - }) - this._flags = flags - this._options = {} - if (encoding !== undefined) this._options.encoding = encoding - if (mode !== undefined) this._options.mode = mode - if (autoClose !== undefined) this._options.autoClose = autoClose - if (emitClose !== undefined) this._options.emitClose = emitClose - if (start !== undefined) this._options.start = start - if (end !== undefined) this._options.end = end - if (highWaterMark !== undefined) this._options.highWaterMark = highWaterMark - if (fs !== undefined) this._options.fs = fs - } - - call(string) { - // the special argument "-" means sys.std{in,out} - if (string === '-') { - if (this._flags.includes('r')) { - return process.stdin - } else if (this._flags.includes('w')) { - return process.stdout - } else { - let msg = sub('argument "-" with mode %r', this._flags) - throw new TypeError(msg) - } - } - - // all other arguments are used as file names - let fd - try { - fd = fs.openSync(string, this._flags, this._options.mode) - } catch (e) { - let args = { filename: string, error: e.message } - let message = "can't open '%(filename)s': %(error)s" - throw new ArgumentTypeError(sub(message, args)) - } - - let options = Object.assign({ fd, flags: this._flags }, this._options) - if (this._flags.includes('r')) { - return fs.createReadStream(undefined, options) - } else if (this._flags.includes('w')) { - return fs.createWriteStream(undefined, options) - } else { - let msg = sub('argument "%s" with mode %r', string, this._flags) - throw new TypeError(msg) - } - } - - [util.inspect.custom]() { - let args = [ this._flags ] - let kwargs = Object.entries(this._options).map(([ k, v ]) => { - if (k === 'mode') v = { value: v, [util.inspect.custom]() { return '0o' + this.value.toString(8) } } - return [ k, v ] - }) - let args_str = [] - .concat(args.filter(arg => arg !== -1).map(repr)) - .concat(kwargs.filter(([/*kw*/, arg]) => arg !== undefined) - .map(([kw, arg]) => sub('%s=%r', kw, arg))) - .join(', ') - return sub('%s(%s)', this.constructor.name, args_str) - } - - toString() { - return this[util.inspect.custom]() - } -}) - -// =========================== -// Optional and Positional Parsing -// =========================== -const Namespace = _callable(class Namespace extends _AttributeHolder() { - /* - * Simple object for storing attributes. - * - * Implements equality by attribute names and values, and provides a simple - * string representation. - */ - - constructor(options = {}) { - super() - Object.assign(this, options) - } -}) - -// unset string tag to mimic plain object -Namespace.prototype[Symbol.toStringTag] = undefined - - -const _ActionsContainer = _camelcase_alias(_callable(class _ActionsContainer { - - constructor() { - let [ - description, - prefix_chars, - argument_default, - conflict_handler - ] = _parse_opts(arguments, { - description: no_default, - prefix_chars: no_default, - argument_default: no_default, - conflict_handler: no_default - }) - - this.description = description - this.argument_default = argument_default - this.prefix_chars = prefix_chars - this.conflict_handler = conflict_handler - - // set up registries - this._registries = {} - - // register actions - this.register('action', undefined, _StoreAction) - this.register('action', 'store', _StoreAction) - this.register('action', 'store_const', _StoreConstAction) - this.register('action', 'store_true', _StoreTrueAction) - this.register('action', 'store_false', _StoreFalseAction) - this.register('action', 'append', _AppendAction) - this.register('action', 'append_const', _AppendConstAction) - this.register('action', 'count', _CountAction) - this.register('action', 'help', _HelpAction) - this.register('action', 'version', _VersionAction) - this.register('action', 'parsers', _SubParsersAction) - this.register('action', 'extend', _ExtendAction) - // LEGACY (v1 compatibility): camelcase variants - ;[ 'storeConst', 'storeTrue', 'storeFalse', 'appendConst' ].forEach(old_name => { - let new_name = _to_new_name(old_name) - this.register('action', old_name, util.deprecate(this._registry_get('action', new_name), - sub('{action: "%s"} is renamed to {action: "%s"}', old_name, new_name))) - }) - // end - - // raise an exception if the conflict handler is invalid - this._get_handler() - - // action storage - this._actions = [] - this._option_string_actions = {} - - // groups - this._action_groups = [] - this._mutually_exclusive_groups = [] - - // defaults storage - this._defaults = {} - - // determines whether an "option" looks like a negative number - this._negative_number_matcher = /^-\d+$|^-\d*\.\d+$/ - - // whether or not there are any optionals that look like negative - // numbers -- uses a list so it can be shared and edited - this._has_negative_number_optionals = [] - } - - // ==================== - // Registration methods - // ==================== - register(registry_name, value, object) { - let registry = setdefault(this._registries, registry_name, {}) - registry[value] = object - } - - _registry_get(registry_name, value, default_value = undefined) { - return getattr(this._registries[registry_name], value, default_value) - } - - // ================================== - // Namespace default accessor methods - // ================================== - set_defaults(kwargs) { - Object.assign(this._defaults, kwargs) - - // if these defaults match any existing arguments, replace - // the previous default on the object with the new one - for (let action of this._actions) { - if (action.dest in kwargs) { - action.default = kwargs[action.dest] - } - } - } - - get_default(dest) { - for (let action of this._actions) { - if (action.dest === dest && action.default !== undefined) { - return action.default - } - } - return this._defaults[dest] - } - - - // ======================= - // Adding argument actions - // ======================= - add_argument() { - /* - * add_argument(dest, ..., name=value, ...) - * add_argument(option_string, option_string, ..., name=value, ...) - */ - let [ - args, - kwargs - ] = _parse_opts(arguments, { - '*args': no_default, - '**kwargs': no_default - }) - // LEGACY (v1 compatibility), old-style add_argument([ args ], { options }) - if (args.length === 1 && Array.isArray(args[0])) { - args = args[0] - deprecate('argument-array', - sub('use add_argument(%(args)s, {...}) instead of add_argument([ %(args)s ], { ... })', { - args: args.map(repr).join(', ') - })) - } - // end - - // if no positional args are supplied or only one is supplied and - // it doesn't look like an option string, parse a positional - // argument - let chars = this.prefix_chars - if (!args.length || args.length === 1 && !chars.includes(args[0][0])) { - if (args.length && 'dest' in kwargs) { - throw new TypeError('dest supplied twice for positional argument') - } - kwargs = this._get_positional_kwargs(...args, kwargs) - - // otherwise, we're adding an optional argument - } else { - kwargs = this._get_optional_kwargs(...args, kwargs) - } - - // if no default was supplied, use the parser-level default - if (!('default' in kwargs)) { - let dest = kwargs.dest - if (dest in this._defaults) { - kwargs.default = this._defaults[dest] - } else if (this.argument_default !== undefined) { - kwargs.default = this.argument_default - } - } - - // create the action object, and add it to the parser - let action_class = this._pop_action_class(kwargs) - if (typeof action_class !== 'function') { - throw new TypeError(sub('unknown action "%s"', action_class)) - } - // eslint-disable-next-line new-cap - let action = new action_class(kwargs) - - // raise an error if the action type is not callable - let type_func = this._registry_get('type', action.type, action.type) - if (typeof type_func !== 'function') { - throw new TypeError(sub('%r is not callable', type_func)) - } - - if (type_func === FileType) { - throw new TypeError(sub('%r is a FileType class object, instance of it' + - ' must be passed', type_func)) - } - - // raise an error if the metavar does not match the type - if ('_get_formatter' in this) { - try { - this._get_formatter()._format_args(action, undefined) - } catch (err) { - // check for 'invalid nargs value' is an artifact of TypeError and ValueError in js being the same - if (err instanceof TypeError && err.message !== 'invalid nargs value') { - throw new TypeError('length of metavar tuple does not match nargs') - } else { - throw err - } - } - } - - return this._add_action(action) - } - - add_argument_group() { - let group = _ArgumentGroup(this, ...arguments) - this._action_groups.push(group) - return group - } - - add_mutually_exclusive_group() { - // eslint-disable-next-line no-use-before-define - let group = _MutuallyExclusiveGroup(this, ...arguments) - this._mutually_exclusive_groups.push(group) - return group - } - - _add_action(action) { - // resolve any conflicts - this._check_conflict(action) - - // add to actions list - this._actions.push(action) - action.container = this - - // index the action by any option strings it has - for (let option_string of action.option_strings) { - this._option_string_actions[option_string] = action - } - - // set the flag if any option strings look like negative numbers - for (let option_string of action.option_strings) { - if (this._negative_number_matcher.test(option_string)) { - if (!this._has_negative_number_optionals.length) { - this._has_negative_number_optionals.push(true) - } - } - } - - // return the created action - return action - } - - _remove_action(action) { - _array_remove(this._actions, action) - } - - _add_container_actions(container) { - // collect groups by titles - let title_group_map = {} - for (let group of this._action_groups) { - if (group.title in title_group_map) { - let msg = 'cannot merge actions - two groups are named %r' - throw new TypeError(sub(msg, group.title)) - } - title_group_map[group.title] = group - } - - // map each action to its group - let group_map = new Map() - for (let group of container._action_groups) { - - // if a group with the title exists, use that, otherwise - // create a new group matching the container's group - if (!(group.title in title_group_map)) { - title_group_map[group.title] = this.add_argument_group({ - title: group.title, - description: group.description, - conflict_handler: group.conflict_handler - }) - } - - // map the actions to their new group - for (let action of group._group_actions) { - group_map.set(action, title_group_map[group.title]) - } - } - - // add container's mutually exclusive groups - // NOTE: if add_mutually_exclusive_group ever gains title= and - // description= then this code will need to be expanded as above - for (let group of container._mutually_exclusive_groups) { - let mutex_group = this.add_mutually_exclusive_group({ - required: group.required - }) - - // map the actions to their new mutex group - for (let action of group._group_actions) { - group_map.set(action, mutex_group) - } - } - - // add all actions to this container or their group - for (let action of container._actions) { - group_map.get(action)._add_action(action) - } - } - - _get_positional_kwargs() { - let [ - dest, - kwargs - ] = _parse_opts(arguments, { - dest: no_default, - '**kwargs': no_default - }) - - // make sure required is not specified - if ('required' in kwargs) { - let msg = "'required' is an invalid argument for positionals" - throw new TypeError(msg) - } - - // mark positional arguments as required if at least one is - // always required - if (![OPTIONAL, ZERO_OR_MORE].includes(kwargs.nargs)) { - kwargs.required = true - } - if (kwargs.nargs === ZERO_OR_MORE && !('default' in kwargs)) { - kwargs.required = true - } - - // return the keyword arguments with no option strings - return Object.assign(kwargs, { dest, option_strings: [] }) - } - - _get_optional_kwargs() { - let [ - args, - kwargs - ] = _parse_opts(arguments, { - '*args': no_default, - '**kwargs': no_default - }) - - // determine short and long option strings - let option_strings = [] - let long_option_strings = [] - let option_string - for (option_string of args) { - // error on strings that don't start with an appropriate prefix - if (!this.prefix_chars.includes(option_string[0])) { - let args = {option: option_string, - prefix_chars: this.prefix_chars} - let msg = 'invalid option string %(option)r: ' + - 'must start with a character %(prefix_chars)r' - throw new TypeError(sub(msg, args)) - } - - // strings starting with two prefix characters are long options - option_strings.push(option_string) - if (option_string.length > 1 && this.prefix_chars.includes(option_string[1])) { - long_option_strings.push(option_string) - } - } - - // infer destination, '--foo-bar' -> 'foo_bar' and '-x' -> 'x' - let dest = kwargs.dest - delete kwargs.dest - if (dest === undefined) { - let dest_option_string - if (long_option_strings.length) { - dest_option_string = long_option_strings[0] - } else { - dest_option_string = option_strings[0] - } - dest = _string_lstrip(dest_option_string, this.prefix_chars) - if (!dest) { - let msg = 'dest= is required for options like %r' - throw new TypeError(sub(msg, option_string)) - } - dest = dest.replace(/-/g, '_') - } - - // return the updated keyword arguments - return Object.assign(kwargs, { dest, option_strings }) - } - - _pop_action_class(kwargs, default_value = undefined) { - let action = getattr(kwargs, 'action', default_value) - delete kwargs.action - return this._registry_get('action', action, action) - } - - _get_handler() { - // determine function from conflict handler string - let handler_func_name = sub('_handle_conflict_%s', this.conflict_handler) - if (typeof this[handler_func_name] === 'function') { - return this[handler_func_name] - } else { - let msg = 'invalid conflict_resolution value: %r' - throw new TypeError(sub(msg, this.conflict_handler)) - } - } - - _check_conflict(action) { - - // find all options that conflict with this option - let confl_optionals = [] - for (let option_string of action.option_strings) { - if (hasattr(this._option_string_actions, option_string)) { - let confl_optional = this._option_string_actions[option_string] - confl_optionals.push([ option_string, confl_optional ]) - } - } - - // resolve any conflicts - if (confl_optionals.length) { - let conflict_handler = this._get_handler() - conflict_handler.call(this, action, confl_optionals) - } - } - - _handle_conflict_error(action, conflicting_actions) { - let message = conflicting_actions.length === 1 ? - 'conflicting option string: %s' : - 'conflicting option strings: %s' - let conflict_string = conflicting_actions.map(([ option_string/*, action*/ ]) => option_string).join(', ') - throw new ArgumentError(action, sub(message, conflict_string)) - } - - _handle_conflict_resolve(action, conflicting_actions) { - - // remove all conflicting options - for (let [ option_string, action ] of conflicting_actions) { - - // remove the conflicting option - _array_remove(action.option_strings, option_string) - delete this._option_string_actions[option_string] - - // if the option now has no option string, remove it from the - // container holding it - if (!action.option_strings.length) { - action.container._remove_action(action) - } - } - } -})) - - -const _ArgumentGroup = _callable(class _ArgumentGroup extends _ActionsContainer { - - constructor() { - let [ - container, - title, - description, - kwargs - ] = _parse_opts(arguments, { - container: no_default, - title: undefined, - description: undefined, - '**kwargs': no_default - }) - - // add any missing keyword arguments by checking the container - setdefault(kwargs, 'conflict_handler', container.conflict_handler) - setdefault(kwargs, 'prefix_chars', container.prefix_chars) - setdefault(kwargs, 'argument_default', container.argument_default) - super(Object.assign({ description }, kwargs)) - - // group attributes - this.title = title - this._group_actions = [] - - // share most attributes with the container - this._registries = container._registries - this._actions = container._actions - this._option_string_actions = container._option_string_actions - this._defaults = container._defaults - this._has_negative_number_optionals = - container._has_negative_number_optionals - this._mutually_exclusive_groups = container._mutually_exclusive_groups - } - - _add_action(action) { - action = super._add_action(action) - this._group_actions.push(action) - return action - } - - _remove_action(action) { - super._remove_action(action) - _array_remove(this._group_actions, action) - } -}) - - -const _MutuallyExclusiveGroup = _callable(class _MutuallyExclusiveGroup extends _ArgumentGroup { - - constructor() { - let [ - container, - required - ] = _parse_opts(arguments, { - container: no_default, - required: false - }) - - super(container) - this.required = required - this._container = container - } - - _add_action(action) { - if (action.required) { - let msg = 'mutually exclusive arguments must be optional' - throw new TypeError(msg) - } - action = this._container._add_action(action) - this._group_actions.push(action) - return action - } - - _remove_action(action) { - this._container._remove_action(action) - _array_remove(this._group_actions, action) - } -}) - - -const ArgumentParser = _camelcase_alias(_callable(class ArgumentParser extends _AttributeHolder(_ActionsContainer) { - /* - * Object for parsing command line strings into Python objects. - * - * Keyword Arguments: - * - prog -- The name of the program (default: sys.argv[0]) - * - usage -- A usage message (default: auto-generated from arguments) - * - description -- A description of what the program does - * - epilog -- Text following the argument descriptions - * - parents -- Parsers whose arguments should be copied into this one - * - formatter_class -- HelpFormatter class for printing help messages - * - prefix_chars -- Characters that prefix optional arguments - * - fromfile_prefix_chars -- Characters that prefix files containing - * additional arguments - * - argument_default -- The default value for all arguments - * - conflict_handler -- String indicating how to handle conflicts - * - add_help -- Add a -h/-help option - * - allow_abbrev -- Allow long options to be abbreviated unambiguously - * - exit_on_error -- Determines whether or not ArgumentParser exits with - * error info when an error occurs - */ - - constructor() { - let [ - prog, - usage, - description, - epilog, - parents, - formatter_class, - prefix_chars, - fromfile_prefix_chars, - argument_default, - conflict_handler, - add_help, - allow_abbrev, - exit_on_error, - debug, // LEGACY (v1 compatibility), debug mode - version // LEGACY (v1 compatibility), version - ] = _parse_opts(arguments, { - prog: undefined, - usage: undefined, - description: undefined, - epilog: undefined, - parents: [], - formatter_class: HelpFormatter, - prefix_chars: '-', - fromfile_prefix_chars: undefined, - argument_default: undefined, - conflict_handler: 'error', - add_help: true, - allow_abbrev: true, - exit_on_error: true, - debug: undefined, // LEGACY (v1 compatibility), debug mode - version: undefined // LEGACY (v1 compatibility), version - }) - - // LEGACY (v1 compatibility) - if (debug !== undefined) { - deprecate('debug', - 'The "debug" argument to ArgumentParser is deprecated. Please ' + - 'override ArgumentParser.exit function instead.' - ) - } - - if (version !== undefined) { - deprecate('version', - 'The "version" argument to ArgumentParser is deprecated. Please use ' + - "add_argument(..., { action: 'version', version: 'N', ... }) instead." - ) - } - // end - - super({ - description, - prefix_chars, - argument_default, - conflict_handler - }) - - // default setting for prog - if (prog === undefined) { - prog = path.basename(get_argv()[0] || '') - } - - this.prog = prog - this.usage = usage - this.epilog = epilog - this.formatter_class = formatter_class - this.fromfile_prefix_chars = fromfile_prefix_chars - this.add_help = add_help - this.allow_abbrev = allow_abbrev - this.exit_on_error = exit_on_error - // LEGACY (v1 compatibility), debug mode - this.debug = debug - // end - - this._positionals = this.add_argument_group('positional arguments') - this._optionals = this.add_argument_group('optional arguments') - this._subparsers = undefined - - // register types - function identity(string) { - return string - } - this.register('type', undefined, identity) - this.register('type', null, identity) - this.register('type', 'auto', identity) - this.register('type', 'int', function (x) { - let result = Number(x) - if (!Number.isInteger(result)) { - throw new TypeError(sub('could not convert string to int: %r', x)) - } - return result - }) - this.register('type', 'float', function (x) { - let result = Number(x) - if (isNaN(result)) { - throw new TypeError(sub('could not convert string to float: %r', x)) - } - return result - }) - this.register('type', 'str', String) - // LEGACY (v1 compatibility): custom types - this.register('type', 'string', - util.deprecate(String, 'use {type:"str"} or {type:String} instead of {type:"string"}')) - // end - - // add help argument if necessary - // (using explicit default to override global argument_default) - let default_prefix = prefix_chars.includes('-') ? '-' : prefix_chars[0] - if (this.add_help) { - this.add_argument( - default_prefix + 'h', - default_prefix.repeat(2) + 'help', - { - action: 'help', - default: SUPPRESS, - help: 'show this help message and exit' - } - ) - } - // LEGACY (v1 compatibility), version - if (version) { - this.add_argument( - default_prefix + 'v', - default_prefix.repeat(2) + 'version', - { - action: 'version', - default: SUPPRESS, - version: this.version, - help: "show program's version number and exit" - } - ) - } - // end - - // add parent arguments and defaults - for (let parent of parents) { - this._add_container_actions(parent) - Object.assign(this._defaults, parent._defaults) - } - } - - // ======================= - // Pretty __repr__ methods - // ======================= - _get_kwargs() { - let names = [ - 'prog', - 'usage', - 'description', - 'formatter_class', - 'conflict_handler', - 'add_help' - ] - return names.map(name => [ name, getattr(this, name) ]) - } - - // ================================== - // Optional/Positional adding methods - // ================================== - add_subparsers() { - let [ - kwargs - ] = _parse_opts(arguments, { - '**kwargs': no_default - }) - - if (this._subparsers !== undefined) { - this.error('cannot have multiple subparser arguments') - } - - // add the parser class to the arguments if it's not present - setdefault(kwargs, 'parser_class', this.constructor) - - if ('title' in kwargs || 'description' in kwargs) { - let title = getattr(kwargs, 'title', 'subcommands') - let description = getattr(kwargs, 'description', undefined) - delete kwargs.title - delete kwargs.description - this._subparsers = this.add_argument_group(title, description) - } else { - this._subparsers = this._positionals - } - - // prog defaults to the usage message of this parser, skipping - // optional arguments and with no "usage:" prefix - if (kwargs.prog === undefined) { - let formatter = this._get_formatter() - let positionals = this._get_positional_actions() - let groups = this._mutually_exclusive_groups - formatter.add_usage(this.usage, positionals, groups, '') - kwargs.prog = formatter.format_help().trim() - } - - // create the parsers action and add it to the positionals list - let parsers_class = this._pop_action_class(kwargs, 'parsers') - // eslint-disable-next-line new-cap - let action = new parsers_class(Object.assign({ option_strings: [] }, kwargs)) - this._subparsers._add_action(action) - - // return the created parsers action - return action - } - - _add_action(action) { - if (action.option_strings.length) { - this._optionals._add_action(action) - } else { - this._positionals._add_action(action) - } - return action - } - - _get_optional_actions() { - return this._actions.filter(action => action.option_strings.length) - } - - _get_positional_actions() { - return this._actions.filter(action => !action.option_strings.length) - } - - // ===================================== - // Command line argument parsing methods - // ===================================== - parse_args(args = undefined, namespace = undefined) { - let argv - [ args, argv ] = this.parse_known_args(args, namespace) - if (argv && argv.length > 0) { - let msg = 'unrecognized arguments: %s' - this.error(sub(msg, argv.join(' '))) - } - return args - } - - parse_known_args(args = undefined, namespace = undefined) { - if (args === undefined) { - args = get_argv().slice(1) - } - - // default Namespace built from parser defaults - if (namespace === undefined) { - namespace = new Namespace() - } - - // add any action defaults that aren't present - for (let action of this._actions) { - if (action.dest !== SUPPRESS) { - if (!hasattr(namespace, action.dest)) { - if (action.default !== SUPPRESS) { - setattr(namespace, action.dest, action.default) - } - } - } - } - - // add any parser defaults that aren't present - for (let dest of Object.keys(this._defaults)) { - if (!hasattr(namespace, dest)) { - setattr(namespace, dest, this._defaults[dest]) - } - } - - // parse the arguments and exit if there are any errors - if (this.exit_on_error) { - try { - [ namespace, args ] = this._parse_known_args(args, namespace) - } catch (err) { - if (err instanceof ArgumentError) { - this.error(err.message) - } else { - throw err - } - } - } else { - [ namespace, args ] = this._parse_known_args(args, namespace) - } - - if (hasattr(namespace, _UNRECOGNIZED_ARGS_ATTR)) { - args = args.concat(getattr(namespace, _UNRECOGNIZED_ARGS_ATTR)) - delattr(namespace, _UNRECOGNIZED_ARGS_ATTR) - } - - return [ namespace, args ] - } - - _parse_known_args(arg_strings, namespace) { - // replace arg strings that are file references - if (this.fromfile_prefix_chars !== undefined) { - arg_strings = this._read_args_from_files(arg_strings) - } - - // map all mutually exclusive arguments to the other arguments - // they can't occur with - let action_conflicts = new Map() - for (let mutex_group of this._mutually_exclusive_groups) { - let group_actions = mutex_group._group_actions - for (let [ i, mutex_action ] of Object.entries(mutex_group._group_actions)) { - let conflicts = action_conflicts.get(mutex_action) || [] - conflicts = conflicts.concat(group_actions.slice(0, +i)) - conflicts = conflicts.concat(group_actions.slice(+i + 1)) - action_conflicts.set(mutex_action, conflicts) - } - } - - // find all option indices, and determine the arg_string_pattern - // which has an 'O' if there is an option at an index, - // an 'A' if there is an argument, or a '-' if there is a '--' - let option_string_indices = {} - let arg_string_pattern_parts = [] - let arg_strings_iter = Object.entries(arg_strings)[Symbol.iterator]() - for (let [ i, arg_string ] of arg_strings_iter) { - - // all args after -- are non-options - if (arg_string === '--') { - arg_string_pattern_parts.push('-') - for ([ i, arg_string ] of arg_strings_iter) { - arg_string_pattern_parts.push('A') - } - - // otherwise, add the arg to the arg strings - // and note the index if it was an option - } else { - let option_tuple = this._parse_optional(arg_string) - let pattern - if (option_tuple === undefined) { - pattern = 'A' - } else { - option_string_indices[i] = option_tuple - pattern = 'O' - } - arg_string_pattern_parts.push(pattern) - } - } - - // join the pieces together to form the pattern - let arg_strings_pattern = arg_string_pattern_parts.join('') - - // converts arg strings to the appropriate and then takes the action - let seen_actions = new Set() - let seen_non_default_actions = new Set() - let extras - - let take_action = (action, argument_strings, option_string = undefined) => { - seen_actions.add(action) - let argument_values = this._get_values(action, argument_strings) - - // error if this argument is not allowed with other previously - // seen arguments, assuming that actions that use the default - // value don't really count as "present" - if (argument_values !== action.default) { - seen_non_default_actions.add(action) - for (let conflict_action of action_conflicts.get(action) || []) { - if (seen_non_default_actions.has(conflict_action)) { - let msg = 'not allowed with argument %s' - let action_name = _get_action_name(conflict_action) - throw new ArgumentError(action, sub(msg, action_name)) - } - } - } - - // take the action if we didn't receive a SUPPRESS value - // (e.g. from a default) - if (argument_values !== SUPPRESS) { - action(this, namespace, argument_values, option_string) - } - } - - // function to convert arg_strings into an optional action - let consume_optional = start_index => { - - // get the optional identified at this index - let option_tuple = option_string_indices[start_index] - let [ action, option_string, explicit_arg ] = option_tuple - - // identify additional optionals in the same arg string - // (e.g. -xyz is the same as -x -y -z if no args are required) - let action_tuples = [] - let stop - for (;;) { - - // if we found no optional action, skip it - if (action === undefined) { - extras.push(arg_strings[start_index]) - return start_index + 1 - } - - // if there is an explicit argument, try to match the - // optional's string arguments to only this - if (explicit_arg !== undefined) { - let arg_count = this._match_argument(action, 'A') - - // if the action is a single-dash option and takes no - // arguments, try to parse more single-dash options out - // of the tail of the option string - let chars = this.prefix_chars - if (arg_count === 0 && !chars.includes(option_string[1])) { - action_tuples.push([ action, [], option_string ]) - let char = option_string[0] - option_string = char + explicit_arg[0] - let new_explicit_arg = explicit_arg.slice(1) || undefined - let optionals_map = this._option_string_actions - if (hasattr(optionals_map, option_string)) { - action = optionals_map[option_string] - explicit_arg = new_explicit_arg - } else { - let msg = 'ignored explicit argument %r' - throw new ArgumentError(action, sub(msg, explicit_arg)) - } - - // if the action expect exactly one argument, we've - // successfully matched the option; exit the loop - } else if (arg_count === 1) { - stop = start_index + 1 - let args = [ explicit_arg ] - action_tuples.push([ action, args, option_string ]) - break - - // error if a double-dash option did not use the - // explicit argument - } else { - let msg = 'ignored explicit argument %r' - throw new ArgumentError(action, sub(msg, explicit_arg)) - } - - // if there is no explicit argument, try to match the - // optional's string arguments with the following strings - // if successful, exit the loop - } else { - let start = start_index + 1 - let selected_patterns = arg_strings_pattern.slice(start) - let arg_count = this._match_argument(action, selected_patterns) - stop = start + arg_count - let args = arg_strings.slice(start, stop) - action_tuples.push([ action, args, option_string ]) - break - } - } - - // add the Optional to the list and return the index at which - // the Optional's string args stopped - assert(action_tuples.length) - for (let [ action, args, option_string ] of action_tuples) { - take_action(action, args, option_string) - } - return stop - } - - // the list of Positionals left to be parsed; this is modified - // by consume_positionals() - let positionals = this._get_positional_actions() - - // function to convert arg_strings into positional actions - let consume_positionals = start_index => { - // match as many Positionals as possible - let selected_pattern = arg_strings_pattern.slice(start_index) - let arg_counts = this._match_arguments_partial(positionals, selected_pattern) - - // slice off the appropriate arg strings for each Positional - // and add the Positional and its args to the list - for (let i = 0; i < positionals.length && i < arg_counts.length; i++) { - let action = positionals[i] - let arg_count = arg_counts[i] - let args = arg_strings.slice(start_index, start_index + arg_count) - start_index += arg_count - take_action(action, args) - } - - // slice off the Positionals that we just parsed and return the - // index at which the Positionals' string args stopped - positionals = positionals.slice(arg_counts.length) - return start_index - } - - // consume Positionals and Optionals alternately, until we have - // passed the last option string - extras = [] - let start_index = 0 - let max_option_string_index = Math.max(-1, ...Object.keys(option_string_indices).map(Number)) - while (start_index <= max_option_string_index) { - - // consume any Positionals preceding the next option - let next_option_string_index = Math.min( - // eslint-disable-next-line no-loop-func - ...Object.keys(option_string_indices).map(Number).filter(index => index >= start_index) - ) - if (start_index !== next_option_string_index) { - let positionals_end_index = consume_positionals(start_index) - - // only try to parse the next optional if we didn't consume - // the option string during the positionals parsing - if (positionals_end_index > start_index) { - start_index = positionals_end_index - continue - } else { - start_index = positionals_end_index - } - } - - // if we consumed all the positionals we could and we're not - // at the index of an option string, there were extra arguments - if (!(start_index in option_string_indices)) { - let strings = arg_strings.slice(start_index, next_option_string_index) - extras = extras.concat(strings) - start_index = next_option_string_index - } - - // consume the next optional and any arguments for it - start_index = consume_optional(start_index) - } - - // consume any positionals following the last Optional - let stop_index = consume_positionals(start_index) - - // if we didn't consume all the argument strings, there were extras - extras = extras.concat(arg_strings.slice(stop_index)) - - // make sure all required actions were present and also convert - // action defaults which were not given as arguments - let required_actions = [] - for (let action of this._actions) { - if (!seen_actions.has(action)) { - if (action.required) { - required_actions.push(_get_action_name(action)) - } else { - // Convert action default now instead of doing it before - // parsing arguments to avoid calling convert functions - // twice (which may fail) if the argument was given, but - // only if it was defined already in the namespace - if (action.default !== undefined && - typeof action.default === 'string' && - hasattr(namespace, action.dest) && - action.default === getattr(namespace, action.dest)) { - setattr(namespace, action.dest, - this._get_value(action, action.default)) - } - } - } - } - - if (required_actions.length) { - this.error(sub('the following arguments are required: %s', - required_actions.join(', '))) - } - - // make sure all required groups had one option present - for (let group of this._mutually_exclusive_groups) { - if (group.required) { - let no_actions_used = true - for (let action of group._group_actions) { - if (seen_non_default_actions.has(action)) { - no_actions_used = false - break - } - } - - // if no actions were used, report the error - if (no_actions_used) { - let names = group._group_actions - .filter(action => action.help !== SUPPRESS) - .map(action => _get_action_name(action)) - let msg = 'one of the arguments %s is required' - this.error(sub(msg, names.join(' '))) - } - } - } - - // return the updated namespace and the extra arguments - return [ namespace, extras ] - } - - _read_args_from_files(arg_strings) { - // expand arguments referencing files - let new_arg_strings = [] - for (let arg_string of arg_strings) { - - // for regular arguments, just add them back into the list - if (!arg_string || !this.fromfile_prefix_chars.includes(arg_string[0])) { - new_arg_strings.push(arg_string) - - // replace arguments referencing files with the file content - } else { - try { - let args_file = fs.readFileSync(arg_string.slice(1), 'utf8') - let arg_strings = [] - for (let arg_line of splitlines(args_file)) { - for (let arg of this.convert_arg_line_to_args(arg_line)) { - arg_strings.push(arg) - } - } - arg_strings = this._read_args_from_files(arg_strings) - new_arg_strings = new_arg_strings.concat(arg_strings) - } catch (err) { - this.error(err.message) - } - } - } - - // return the modified argument list - return new_arg_strings - } - - convert_arg_line_to_args(arg_line) { - return [arg_line] - } - - _match_argument(action, arg_strings_pattern) { - // match the pattern for this action to the arg strings - let nargs_pattern = this._get_nargs_pattern(action) - let match = arg_strings_pattern.match(new RegExp('^' + nargs_pattern)) - - // raise an exception if we weren't able to find a match - if (match === null) { - let nargs_errors = { - undefined: 'expected one argument', - [OPTIONAL]: 'expected at most one argument', - [ONE_OR_MORE]: 'expected at least one argument' - } - let msg = nargs_errors[action.nargs] - if (msg === undefined) { - msg = sub(action.nargs === 1 ? 'expected %s argument' : 'expected %s arguments', action.nargs) - } - throw new ArgumentError(action, msg) - } - - // return the number of arguments matched - return match[1].length - } - - _match_arguments_partial(actions, arg_strings_pattern) { - // progressively shorten the actions list by slicing off the - // final actions until we find a match - let result = [] - for (let i of range(actions.length, 0, -1)) { - let actions_slice = actions.slice(0, i) - let pattern = actions_slice.map(action => this._get_nargs_pattern(action)).join('') - let match = arg_strings_pattern.match(new RegExp('^' + pattern)) - if (match !== null) { - result = result.concat(match.slice(1).map(string => string.length)) - break - } - } - - // return the list of arg string counts - return result - } - - _parse_optional(arg_string) { - // if it's an empty string, it was meant to be a positional - if (!arg_string) { - return undefined - } - - // if it doesn't start with a prefix, it was meant to be positional - if (!this.prefix_chars.includes(arg_string[0])) { - return undefined - } - - // if the option string is present in the parser, return the action - if (arg_string in this._option_string_actions) { - let action = this._option_string_actions[arg_string] - return [ action, arg_string, undefined ] - } - - // if it's just a single character, it was meant to be positional - if (arg_string.length === 1) { - return undefined - } - - // if the option string before the "=" is present, return the action - if (arg_string.includes('=')) { - let [ option_string, explicit_arg ] = _string_split(arg_string, '=', 1) - if (option_string in this._option_string_actions) { - let action = this._option_string_actions[option_string] - return [ action, option_string, explicit_arg ] - } - } - - // search through all possible prefixes of the option string - // and all actions in the parser for possible interpretations - let option_tuples = this._get_option_tuples(arg_string) - - // if multiple actions match, the option string was ambiguous - if (option_tuples.length > 1) { - let options = option_tuples.map(([ /*action*/, option_string/*, explicit_arg*/ ]) => option_string).join(', ') - let args = {option: arg_string, matches: options} - let msg = 'ambiguous option: %(option)s could match %(matches)s' - this.error(sub(msg, args)) - - // if exactly one action matched, this segmentation is good, - // so return the parsed action - } else if (option_tuples.length === 1) { - let [ option_tuple ] = option_tuples - return option_tuple - } - - // if it was not found as an option, but it looks like a negative - // number, it was meant to be positional - // unless there are negative-number-like options - if (this._negative_number_matcher.test(arg_string)) { - if (!this._has_negative_number_optionals.length) { - return undefined - } - } - - // if it contains a space, it was meant to be a positional - if (arg_string.includes(' ')) { - return undefined - } - - // it was meant to be an optional but there is no such option - // in this parser (though it might be a valid option in a subparser) - return [ undefined, arg_string, undefined ] - } - - _get_option_tuples(option_string) { - let result = [] - - // option strings starting with two prefix characters are only - // split at the '=' - let chars = this.prefix_chars - if (chars.includes(option_string[0]) && chars.includes(option_string[1])) { - if (this.allow_abbrev) { - let option_prefix, explicit_arg - if (option_string.includes('=')) { - [ option_prefix, explicit_arg ] = _string_split(option_string, '=', 1) - } else { - option_prefix = option_string - explicit_arg = undefined - } - for (let option_string of Object.keys(this._option_string_actions)) { - if (option_string.startsWith(option_prefix)) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, explicit_arg ] - result.push(tup) - } - } - } - - // single character options can be concatenated with their arguments - // but multiple character options always have to have their argument - // separate - } else if (chars.includes(option_string[0]) && !chars.includes(option_string[1])) { - let option_prefix = option_string - let explicit_arg = undefined - let short_option_prefix = option_string.slice(0, 2) - let short_explicit_arg = option_string.slice(2) - - for (let option_string of Object.keys(this._option_string_actions)) { - if (option_string === short_option_prefix) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, short_explicit_arg ] - result.push(tup) - } else if (option_string.startsWith(option_prefix)) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, explicit_arg ] - result.push(tup) - } - } - - // shouldn't ever get here - } else { - this.error(sub('unexpected option string: %s', option_string)) - } - - // return the collected option tuples - return result - } - - _get_nargs_pattern(action) { - // in all examples below, we have to allow for '--' args - // which are represented as '-' in the pattern - let nargs = action.nargs - let nargs_pattern - - // the default (None) is assumed to be a single argument - if (nargs === undefined) { - nargs_pattern = '(-*A-*)' - - // allow zero or one arguments - } else if (nargs === OPTIONAL) { - nargs_pattern = '(-*A?-*)' - - // allow zero or more arguments - } else if (nargs === ZERO_OR_MORE) { - nargs_pattern = '(-*[A-]*)' - - // allow one or more arguments - } else if (nargs === ONE_OR_MORE) { - nargs_pattern = '(-*A[A-]*)' - - // allow any number of options or arguments - } else if (nargs === REMAINDER) { - nargs_pattern = '([-AO]*)' - - // allow one argument followed by any number of options or arguments - } else if (nargs === PARSER) { - nargs_pattern = '(-*A[-AO]*)' - - // suppress action, like nargs=0 - } else if (nargs === SUPPRESS) { - nargs_pattern = '(-*-*)' - - // all others should be integers - } else { - nargs_pattern = sub('(-*%s-*)', 'A'.repeat(nargs).split('').join('-*')) - } - - // if this is an optional action, -- is not allowed - if (action.option_strings.length) { - nargs_pattern = nargs_pattern.replace(/-\*/g, '') - nargs_pattern = nargs_pattern.replace(/-/g, '') - } - - // return the pattern - return nargs_pattern - } - - // ======================== - // Alt command line argument parsing, allowing free intermix - // ======================== - - parse_intermixed_args(args = undefined, namespace = undefined) { - let argv - [ args, argv ] = this.parse_known_intermixed_args(args, namespace) - if (argv.length) { - let msg = 'unrecognized arguments: %s' - this.error(sub(msg, argv.join(' '))) - } - return args - } - - parse_known_intermixed_args(args = undefined, namespace = undefined) { - // returns a namespace and list of extras - // - // positional can be freely intermixed with optionals. optionals are - // first parsed with all positional arguments deactivated. The 'extras' - // are then parsed. If the parser definition is incompatible with the - // intermixed assumptions (e.g. use of REMAINDER, subparsers) a - // TypeError is raised. - // - // positionals are 'deactivated' by setting nargs and default to - // SUPPRESS. This blocks the addition of that positional to the - // namespace - - let extras - let positionals = this._get_positional_actions() - let a = positionals.filter(action => [ PARSER, REMAINDER ].includes(action.nargs)) - if (a.length) { - throw new TypeError(sub('parse_intermixed_args: positional arg' + - ' with nargs=%s', a[0].nargs)) - } - - for (let group of this._mutually_exclusive_groups) { - for (let action of group._group_actions) { - if (positionals.includes(action)) { - throw new TypeError('parse_intermixed_args: positional in' + - ' mutuallyExclusiveGroup') - } - } - } - - let save_usage - try { - save_usage = this.usage - let remaining_args - try { - if (this.usage === undefined) { - // capture the full usage for use in error messages - this.usage = this.format_usage().slice(7) - } - for (let action of positionals) { - // deactivate positionals - action.save_nargs = action.nargs - // action.nargs = 0 - action.nargs = SUPPRESS - action.save_default = action.default - action.default = SUPPRESS - } - [ namespace, remaining_args ] = this.parse_known_args(args, - namespace) - for (let action of positionals) { - // remove the empty positional values from namespace - let attr = getattr(namespace, action.dest) - if (Array.isArray(attr) && attr.length === 0) { - // eslint-disable-next-line no-console - console.warn(sub('Do not expect %s in %s', action.dest, namespace)) - delattr(namespace, action.dest) - } - } - } finally { - // restore nargs and usage before exiting - for (let action of positionals) { - action.nargs = action.save_nargs - action.default = action.save_default - } - } - let optionals = this._get_optional_actions() - try { - // parse positionals. optionals aren't normally required, but - // they could be, so make sure they aren't. - for (let action of optionals) { - action.save_required = action.required - action.required = false - } - for (let group of this._mutually_exclusive_groups) { - group.save_required = group.required - group.required = false - } - [ namespace, extras ] = this.parse_known_args(remaining_args, - namespace) - } finally { - // restore parser values before exiting - for (let action of optionals) { - action.required = action.save_required - } - for (let group of this._mutually_exclusive_groups) { - group.required = group.save_required - } - } - } finally { - this.usage = save_usage - } - return [ namespace, extras ] - } - - // ======================== - // Value conversion methods - // ======================== - _get_values(action, arg_strings) { - // for everything but PARSER, REMAINDER args, strip out first '--' - if (![PARSER, REMAINDER].includes(action.nargs)) { - try { - _array_remove(arg_strings, '--') - } catch (err) {} - } - - let value - // optional argument produces a default when not present - if (!arg_strings.length && action.nargs === OPTIONAL) { - if (action.option_strings.length) { - value = action.const - } else { - value = action.default - } - if (typeof value === 'string') { - value = this._get_value(action, value) - this._check_value(action, value) - } - - // when nargs='*' on a positional, if there were no command-line - // args, use the default if it is anything other than None - } else if (!arg_strings.length && action.nargs === ZERO_OR_MORE && - !action.option_strings.length) { - if (action.default !== undefined) { - value = action.default - } else { - value = arg_strings - } - this._check_value(action, value) - - // single argument or optional argument produces a single value - } else if (arg_strings.length === 1 && [undefined, OPTIONAL].includes(action.nargs)) { - let arg_string = arg_strings[0] - value = this._get_value(action, arg_string) - this._check_value(action, value) - - // REMAINDER arguments convert all values, checking none - } else if (action.nargs === REMAINDER) { - value = arg_strings.map(v => this._get_value(action, v)) - - // PARSER arguments convert all values, but check only the first - } else if (action.nargs === PARSER) { - value = arg_strings.map(v => this._get_value(action, v)) - this._check_value(action, value[0]) - - // SUPPRESS argument does not put anything in the namespace - } else if (action.nargs === SUPPRESS) { - value = SUPPRESS - - // all other types of nargs produce a list - } else { - value = arg_strings.map(v => this._get_value(action, v)) - for (let v of value) { - this._check_value(action, v) - } - } - - // return the converted value - return value - } - - _get_value(action, arg_string) { - let type_func = this._registry_get('type', action.type, action.type) - if (typeof type_func !== 'function') { - let msg = '%r is not callable' - throw new ArgumentError(action, sub(msg, type_func)) - } - - // convert the value to the appropriate type - let result - try { - try { - result = type_func(arg_string) - } catch (err) { - // Dear TC39, why would you ever consider making es6 classes not callable? - // We had one universal interface, [[Call]], which worked for anything - // (with familiar this-instanceof guard for classes). Now we have two. - if (err instanceof TypeError && - /Class constructor .* cannot be invoked without 'new'/.test(err.message)) { - // eslint-disable-next-line new-cap - result = new type_func(arg_string) - } else { - throw err - } - } - - } catch (err) { - // ArgumentTypeErrors indicate errors - if (err instanceof ArgumentTypeError) { - //let name = getattr(action.type, 'name', repr(action.type)) - let msg = err.message - throw new ArgumentError(action, msg) - - // TypeErrors or ValueErrors also indicate errors - } else if (err instanceof TypeError) { - let name = getattr(action.type, 'name', repr(action.type)) - let args = {type: name, value: arg_string} - let msg = 'invalid %(type)s value: %(value)r' - throw new ArgumentError(action, sub(msg, args)) - } else { - throw err - } - } - - // return the converted value - return result - } - - _check_value(action, value) { - // converted value must be one of the choices (if specified) - if (action.choices !== undefined && !_choices_to_array(action.choices).includes(value)) { - let args = {value, - choices: _choices_to_array(action.choices).map(repr).join(', ')} - let msg = 'invalid choice: %(value)r (choose from %(choices)s)' - throw new ArgumentError(action, sub(msg, args)) - } - } - - // ======================= - // Help-formatting methods - // ======================= - format_usage() { - let formatter = this._get_formatter() - formatter.add_usage(this.usage, this._actions, - this._mutually_exclusive_groups) - return formatter.format_help() - } - - format_help() { - let formatter = this._get_formatter() - - // usage - formatter.add_usage(this.usage, this._actions, - this._mutually_exclusive_groups) - - // description - formatter.add_text(this.description) - - // positionals, optionals and user-defined groups - for (let action_group of this._action_groups) { - formatter.start_section(action_group.title) - formatter.add_text(action_group.description) - formatter.add_arguments(action_group._group_actions) - formatter.end_section() - } - - // epilog - formatter.add_text(this.epilog) - - // determine help from format above - return formatter.format_help() - } - - _get_formatter() { - // eslint-disable-next-line new-cap - return new this.formatter_class({ prog: this.prog }) - } - - // ===================== - // Help-printing methods - // ===================== - print_usage(file = undefined) { - if (file === undefined) file = process.stdout - this._print_message(this.format_usage(), file) - } - - print_help(file = undefined) { - if (file === undefined) file = process.stdout - this._print_message(this.format_help(), file) - } - - _print_message(message, file = undefined) { - if (message) { - if (file === undefined) file = process.stderr - file.write(message) - } - } - - // =============== - // Exiting methods - // =============== - exit(status = 0, message = undefined) { - if (message) { - this._print_message(message, process.stderr) - } - process.exit(status) - } - - error(message) { - /* - * error(message: string) - * - * Prints a usage message incorporating the message to stderr and - * exits. - * - * If you override this in a subclass, it should not return -- it - * should either exit or raise an exception. - */ - - // LEGACY (v1 compatibility), debug mode - if (this.debug === true) throw new Error(message) - // end - this.print_usage(process.stderr) - let args = {prog: this.prog, message: message} - this.exit(2, sub('%(prog)s: error: %(message)s\n', args)) - } -})) - - -module.exports = { - ArgumentParser, - ArgumentError, - ArgumentTypeError, - BooleanOptionalAction, - FileType, - HelpFormatter, - ArgumentDefaultsHelpFormatter, - RawDescriptionHelpFormatter, - RawTextHelpFormatter, - MetavarTypeHelpFormatter, - Namespace, - Action, - ONE_OR_MORE, - OPTIONAL, - PARSER, - REMAINDER, - SUPPRESS, - ZERO_OR_MORE -} - -// LEGACY (v1 compatibility), Const alias -Object.defineProperty(module.exports, 'Const', { - get() { - let result = {} - Object.entries({ ONE_OR_MORE, OPTIONAL, PARSER, REMAINDER, SUPPRESS, ZERO_OR_MORE }).forEach(([ n, v ]) => { - Object.defineProperty(result, n, { - get() { - deprecate(n, sub('use argparse.%s instead of argparse.Const.%s', n, n)) - return v - } - }) - }) - Object.entries({ _UNRECOGNIZED_ARGS_ATTR }).forEach(([ n, v ]) => { - Object.defineProperty(result, n, { - get() { - deprecate(n, sub('argparse.Const.%s is an internal symbol and will no longer be available', n)) - return v - } - }) - }) - return result - }, - enumerable: false -}) -// end diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/lib/sub.js b/node_modules/eslint-plugin-github/node_modules/argparse/lib/sub.js deleted file mode 100644 index e3eb3215..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/lib/sub.js +++ /dev/null @@ -1,67 +0,0 @@ -// Limited implementation of python % string operator, supports only %s and %r for now -// (other formats are not used here, but may appear in custom templates) - -'use strict' - -const { inspect } = require('util') - - -module.exports = function sub(pattern, ...values) { - let regex = /%(?:(%)|(-)?(\*)?(?:\((\w+)\))?([A-Za-z]))/g - - let result = pattern.replace(regex, function (_, is_literal, is_left_align, is_padded, name, format) { - if (is_literal) return '%' - - let padded_count = 0 - if (is_padded) { - if (values.length === 0) throw new TypeError('not enough arguments for format string') - padded_count = values.shift() - if (!Number.isInteger(padded_count)) throw new TypeError('* wants int') - } - - let str - if (name !== undefined) { - let dict = values[0] - if (typeof dict !== 'object' || dict === null) throw new TypeError('format requires a mapping') - if (!(name in dict)) throw new TypeError(`no such key: '${name}'`) - str = dict[name] - } else { - if (values.length === 0) throw new TypeError('not enough arguments for format string') - str = values.shift() - } - - switch (format) { - case 's': - str = String(str) - break - case 'r': - str = inspect(str) - break - case 'd': - case 'i': - if (typeof str !== 'number') { - throw new TypeError(`%${format} format: a number is required, not ${typeof str}`) - } - str = String(str.toFixed(0)) - break - default: - throw new TypeError(`unsupported format character '${format}'`) - } - - if (padded_count > 0) { - return is_left_align ? str.padEnd(padded_count) : str.padStart(padded_count) - } else { - return str - } - }) - - if (values.length) { - if (values.length === 1 && typeof values[0] === 'object' && values[0] !== null) { - // mapping - } else { - throw new TypeError('not all arguments converted during string formatting') - } - } - - return result -} diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/lib/textwrap.js b/node_modules/eslint-plugin-github/node_modules/argparse/lib/textwrap.js deleted file mode 100644 index 23d51cdb..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/lib/textwrap.js +++ /dev/null @@ -1,440 +0,0 @@ -// Partial port of python's argparse module, version 3.9.0 (only wrap and fill functions): -// https://github.com/python/cpython/blob/v3.9.0b4/Lib/textwrap.py - -'use strict' - -/* - * Text wrapping and filling. - */ - -// Copyright (C) 1999-2001 Gregory P. Ward. -// Copyright (C) 2002, 2003 Python Software Foundation. -// Copyright (C) 2020 argparse.js authors -// Originally written by Greg Ward - -// Hardcode the recognized whitespace characters to the US-ASCII -// whitespace characters. The main reason for doing this is that -// some Unicode spaces (like \u00a0) are non-breaking whitespaces. -// -// This less funky little regex just split on recognized spaces. E.g. -// "Hello there -- you goof-ball, use the -b option!" -// splits into -// Hello/ /there/ /--/ /you/ /goof-ball,/ /use/ /the/ /-b/ /option!/ -const wordsep_simple_re = /([\t\n\x0b\x0c\r ]+)/ - -class TextWrapper { - /* - * Object for wrapping/filling text. The public interface consists of - * the wrap() and fill() methods; the other methods are just there for - * subclasses to override in order to tweak the default behaviour. - * If you want to completely replace the main wrapping algorithm, - * you'll probably have to override _wrap_chunks(). - * - * Several instance attributes control various aspects of wrapping: - * width (default: 70) - * the maximum width of wrapped lines (unless break_long_words - * is false) - * initial_indent (default: "") - * string that will be prepended to the first line of wrapped - * output. Counts towards the line's width. - * subsequent_indent (default: "") - * string that will be prepended to all lines save the first - * of wrapped output; also counts towards each line's width. - * expand_tabs (default: true) - * Expand tabs in input text to spaces before further processing. - * Each tab will become 0 .. 'tabsize' spaces, depending on its position - * in its line. If false, each tab is treated as a single character. - * tabsize (default: 8) - * Expand tabs in input text to 0 .. 'tabsize' spaces, unless - * 'expand_tabs' is false. - * replace_whitespace (default: true) - * Replace all whitespace characters in the input text by spaces - * after tab expansion. Note that if expand_tabs is false and - * replace_whitespace is true, every tab will be converted to a - * single space! - * fix_sentence_endings (default: false) - * Ensure that sentence-ending punctuation is always followed - * by two spaces. Off by default because the algorithm is - * (unavoidably) imperfect. - * break_long_words (default: true) - * Break words longer than 'width'. If false, those words will not - * be broken, and some lines might be longer than 'width'. - * break_on_hyphens (default: true) - * Allow breaking hyphenated words. If true, wrapping will occur - * preferably on whitespaces and right after hyphens part of - * compound words. - * drop_whitespace (default: true) - * Drop leading and trailing whitespace from lines. - * max_lines (default: None) - * Truncate wrapped lines. - * placeholder (default: ' [...]') - * Append to the last line of truncated text. - */ - - constructor(options = {}) { - let { - width = 70, - initial_indent = '', - subsequent_indent = '', - expand_tabs = true, - replace_whitespace = true, - fix_sentence_endings = false, - break_long_words = true, - drop_whitespace = true, - break_on_hyphens = true, - tabsize = 8, - max_lines = undefined, - placeholder=' [...]' - } = options - - this.width = width - this.initial_indent = initial_indent - this.subsequent_indent = subsequent_indent - this.expand_tabs = expand_tabs - this.replace_whitespace = replace_whitespace - this.fix_sentence_endings = fix_sentence_endings - this.break_long_words = break_long_words - this.drop_whitespace = drop_whitespace - this.break_on_hyphens = break_on_hyphens - this.tabsize = tabsize - this.max_lines = max_lines - this.placeholder = placeholder - } - - - // -- Private methods ----------------------------------------------- - // (possibly useful for subclasses to override) - - _munge_whitespace(text) { - /* - * _munge_whitespace(text : string) -> string - * - * Munge whitespace in text: expand tabs and convert all other - * whitespace characters to spaces. Eg. " foo\\tbar\\n\\nbaz" - * becomes " foo bar baz". - */ - if (this.expand_tabs) { - text = text.replace(/\t/g, ' '.repeat(this.tabsize)) // not strictly correct in js - } - if (this.replace_whitespace) { - text = text.replace(/[\t\n\x0b\x0c\r]/g, ' ') - } - return text - } - - _split(text) { - /* - * _split(text : string) -> [string] - * - * Split the text to wrap into indivisible chunks. Chunks are - * not quite the same as words; see _wrap_chunks() for full - * details. As an example, the text - * Look, goof-ball -- use the -b option! - * breaks into the following chunks: - * 'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ', - * 'use', ' ', 'the', ' ', '-b', ' ', 'option!' - * if break_on_hyphens is True, or in: - * 'Look,', ' ', 'goof-ball', ' ', '--', ' ', - * 'use', ' ', 'the', ' ', '-b', ' ', option!' - * otherwise. - */ - let chunks = text.split(wordsep_simple_re) - chunks = chunks.filter(Boolean) - return chunks - } - - _handle_long_word(reversed_chunks, cur_line, cur_len, width) { - /* - * _handle_long_word(chunks : [string], - * cur_line : [string], - * cur_len : int, width : int) - * - * Handle a chunk of text (most likely a word, not whitespace) that - * is too long to fit in any line. - */ - // Figure out when indent is larger than the specified width, and make - // sure at least one character is stripped off on every pass - let space_left - if (width < 1) { - space_left = 1 - } else { - space_left = width - cur_len - } - - // If we're allowed to break long words, then do so: put as much - // of the next chunk onto the current line as will fit. - if (this.break_long_words) { - cur_line.push(reversed_chunks[reversed_chunks.length - 1].slice(0, space_left)) - reversed_chunks[reversed_chunks.length - 1] = reversed_chunks[reversed_chunks.length - 1].slice(space_left) - - // Otherwise, we have to preserve the long word intact. Only add - // it to the current line if there's nothing already there -- - // that minimizes how much we violate the width constraint. - } else if (!cur_line) { - cur_line.push(...reversed_chunks.pop()) - } - - // If we're not allowed to break long words, and there's already - // text on the current line, do nothing. Next time through the - // main loop of _wrap_chunks(), we'll wind up here again, but - // cur_len will be zero, so the next line will be entirely - // devoted to the long word that we can't handle right now. - } - - _wrap_chunks(chunks) { - /* - * _wrap_chunks(chunks : [string]) -> [string] - * - * Wrap a sequence of text chunks and return a list of lines of - * length 'self.width' or less. (If 'break_long_words' is false, - * some lines may be longer than this.) Chunks correspond roughly - * to words and the whitespace between them: each chunk is - * indivisible (modulo 'break_long_words'), but a line break can - * come between any two chunks. Chunks should not have internal - * whitespace; ie. a chunk is either all whitespace or a "word". - * Whitespace chunks will be removed from the beginning and end of - * lines, but apart from that whitespace is preserved. - */ - let lines = [] - let indent - if (this.width <= 0) { - throw Error(`invalid width ${this.width} (must be > 0)`) - } - if (this.max_lines !== undefined) { - if (this.max_lines > 1) { - indent = this.subsequent_indent - } else { - indent = this.initial_indent - } - if (indent.length + this.placeholder.trimStart().length > this.width) { - throw Error('placeholder too large for max width') - } - } - - // Arrange in reverse order so items can be efficiently popped - // from a stack of chucks. - chunks = chunks.reverse() - - while (chunks.length > 0) { - - // Start the list of chunks that will make up the current line. - // cur_len is just the length of all the chunks in cur_line. - let cur_line = [] - let cur_len = 0 - - // Figure out which static string will prefix this line. - let indent - if (lines) { - indent = this.subsequent_indent - } else { - indent = this.initial_indent - } - - // Maximum width for this line. - let width = this.width - indent.length - - // First chunk on line is whitespace -- drop it, unless this - // is the very beginning of the text (ie. no lines started yet). - if (this.drop_whitespace && chunks[chunks.length - 1].trim() === '' && lines.length > 0) { - chunks.pop() - } - - while (chunks.length > 0) { - let l = chunks[chunks.length - 1].length - - // Can at least squeeze this chunk onto the current line. - if (cur_len + l <= width) { - cur_line.push(chunks.pop()) - cur_len += l - - // Nope, this line is full. - } else { - break - } - } - - // The current line is full, and the next chunk is too big to - // fit on *any* line (not just this one). - if (chunks.length && chunks[chunks.length - 1].length > width) { - this._handle_long_word(chunks, cur_line, cur_len, width) - cur_len = cur_line.map(l => l.length).reduce((a, b) => a + b, 0) - } - - // If the last chunk on this line is all whitespace, drop it. - if (this.drop_whitespace && cur_line.length > 0 && cur_line[cur_line.length - 1].trim() === '') { - cur_len -= cur_line[cur_line.length - 1].length - cur_line.pop() - } - - if (cur_line) { - if (this.max_lines === undefined || - lines.length + 1 < this.max_lines || - (chunks.length === 0 || - this.drop_whitespace && - chunks.length === 1 && - !chunks[0].trim()) && cur_len <= width) { - // Convert current line back to a string and store it in - // list of all lines (return value). - lines.push(indent + cur_line.join('')) - } else { - let had_break = false - while (cur_line) { - if (cur_line[cur_line.length - 1].trim() && - cur_len + this.placeholder.length <= width) { - cur_line.push(this.placeholder) - lines.push(indent + cur_line.join('')) - had_break = true - break - } - cur_len -= cur_line[-1].length - cur_line.pop() - } - if (!had_break) { - if (lines) { - let prev_line = lines[lines.length - 1].trimEnd() - if (prev_line.length + this.placeholder.length <= - this.width) { - lines[lines.length - 1] = prev_line + this.placeholder - break - } - } - lines.push(indent + this.placeholder.lstrip()) - } - break - } - } - } - - return lines - } - - _split_chunks(text) { - text = this._munge_whitespace(text) - return this._split(text) - } - - // -- Public interface ---------------------------------------------- - - wrap(text) { - /* - * wrap(text : string) -> [string] - * - * Reformat the single paragraph in 'text' so it fits in lines of - * no more than 'self.width' columns, and return a list of wrapped - * lines. Tabs in 'text' are expanded with string.expandtabs(), - * and all other whitespace characters (including newline) are - * converted to space. - */ - let chunks = this._split_chunks(text) - // not implemented in js - //if (this.fix_sentence_endings) { - // this._fix_sentence_endings(chunks) - //} - return this._wrap_chunks(chunks) - } - - fill(text) { - /* - * fill(text : string) -> string - * - * Reformat the single paragraph in 'text' to fit in lines of no - * more than 'self.width' columns, and return a new string - * containing the entire wrapped paragraph. - */ - return this.wrap(text).join('\n') - } -} - - -// -- Convenience interface --------------------------------------------- - -function wrap(text, options = {}) { - /* - * Wrap a single paragraph of text, returning a list of wrapped lines. - * - * Reformat the single paragraph in 'text' so it fits in lines of no - * more than 'width' columns, and return a list of wrapped lines. By - * default, tabs in 'text' are expanded with string.expandtabs(), and - * all other whitespace characters (including newline) are converted to - * space. See TextWrapper class for available keyword args to customize - * wrapping behaviour. - */ - let { width = 70, ...kwargs } = options - let w = new TextWrapper(Object.assign({ width }, kwargs)) - return w.wrap(text) -} - -function fill(text, options = {}) { - /* - * Fill a single paragraph of text, returning a new string. - * - * Reformat the single paragraph in 'text' to fit in lines of no more - * than 'width' columns, and return a new string containing the entire - * wrapped paragraph. As with wrap(), tabs are expanded and other - * whitespace characters converted to space. See TextWrapper class for - * available keyword args to customize wrapping behaviour. - */ - let { width = 70, ...kwargs } = options - let w = new TextWrapper(Object.assign({ width }, kwargs)) - return w.fill(text) -} - -// -- Loosely related functionality ------------------------------------- - -let _whitespace_only_re = /^[ \t]+$/mg -let _leading_whitespace_re = /(^[ \t]*)(?:[^ \t\n])/mg - -function dedent(text) { - /* - * Remove any common leading whitespace from every line in `text`. - * - * This can be used to make triple-quoted strings line up with the left - * edge of the display, while still presenting them in the source code - * in indented form. - * - * Note that tabs and spaces are both treated as whitespace, but they - * are not equal: the lines " hello" and "\\thello" are - * considered to have no common leading whitespace. - * - * Entirely blank lines are normalized to a newline character. - */ - // Look for the longest leading string of spaces and tabs common to - // all lines. - let margin = undefined - text = text.replace(_whitespace_only_re, '') - let indents = text.match(_leading_whitespace_re) || [] - for (let indent of indents) { - indent = indent.slice(0, -1) - - if (margin === undefined) { - margin = indent - - // Current line more deeply indented than previous winner: - // no change (previous winner is still on top). - } else if (indent.startsWith(margin)) { - // pass - - // Current line consistent with and no deeper than previous winner: - // it's the new winner. - } else if (margin.startsWith(indent)) { - margin = indent - - // Find the largest common whitespace between current line and previous - // winner. - } else { - for (let i = 0; i < margin.length && i < indent.length; i++) { - if (margin[i] !== indent[i]) { - margin = margin.slice(0, i) - break - } - } - } - } - - if (margin) { - text = text.replace(new RegExp('^' + margin, 'mg'), '') - } - return text -} - -module.exports = { wrap, fill, dedent } diff --git a/node_modules/eslint-plugin-github/node_modules/argparse/package.json b/node_modules/eslint-plugin-github/node_modules/argparse/package.json deleted file mode 100644 index 647d2aff..00000000 --- a/node_modules/eslint-plugin-github/node_modules/argparse/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "argparse", - "description": "CLI arguments parser. Native port of python's argparse.", - "version": "2.0.1", - "keywords": [ - "cli", - "parser", - "argparse", - "option", - "args" - ], - "main": "argparse.js", - "files": [ - "argparse.js", - "lib/" - ], - "license": "Python-2.0", - "repository": "nodeca/argparse", - "scripts": { - "lint": "eslint .", - "test": "npm run lint && nyc mocha", - "coverage": "npm run test && nyc report --reporter html" - }, - "devDependencies": { - "@babel/eslint-parser": "^7.11.0", - "@babel/plugin-syntax-class-properties": "^7.10.4", - "eslint": "^7.5.0", - "mocha": "^8.0.1", - "nyc": "^15.1.0" - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/brace-expansion/LICENSE b/node_modules/eslint-plugin-github/node_modules/brace-expansion/LICENSE deleted file mode 100644 index de322667..00000000 --- a/node_modules/eslint-plugin-github/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/brace-expansion/README.md b/node_modules/eslint-plugin-github/node_modules/brace-expansion/README.md deleted file mode 100644 index 6b4e0e16..00000000 --- a/node_modules/eslint-plugin-github/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/brace-expansion/index.js b/node_modules/eslint-plugin-github/node_modules/brace-expansion/index.js deleted file mode 100644 index 0478be81..00000000 --- a/node_modules/eslint-plugin-github/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,201 +0,0 @@ -var concatMap = require('concat-map'); -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function identity(e) { - return e; -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m || /\$$/.test(m.pre)) return [str]; - - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length - ? expand(m.post, false) - : ['']; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { return expand(el, false) }); - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - - return expansions; -} - diff --git a/node_modules/eslint-plugin-github/node_modules/brace-expansion/package.json b/node_modules/eslint-plugin-github/node_modules/brace-expansion/package.json deleted file mode 100644 index a18faa8f..00000000 --- a/node_modules/eslint-plugin-github/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "1.1.11", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/espree/LICENSE b/node_modules/eslint-plugin-github/node_modules/espree/LICENSE deleted file mode 100644 index b18469ff..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -BSD 2-Clause License - -Copyright (c) Open JS Foundation -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/eslint-plugin-github/node_modules/espree/README.md b/node_modules/eslint-plugin-github/node_modules/espree/README.md deleted file mode 100644 index b971ea5a..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/README.md +++ /dev/null @@ -1,261 +0,0 @@ -[![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree) -[![npm downloads](https://img.shields.io/npm/dm/espree.svg)](https://www.npmjs.com/package/espree) -[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/js/espree/actions) -[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=9348450)](https://www.bountysource.com/trackers/9348450-eslint?utm_source=9348450&utm_medium=shield&utm_campaign=TRACKER_BADGE) - -# Espree - -Espree started out as a fork of [Esprima](http://esprima.org) v1.2.2, the last stable published released of Esprima before work on ECMAScript 6 began. Espree is now built on top of [Acorn](https://github.com/ternjs/acorn), which has a modular architecture that allows extension of core functionality. The goal of Espree is to produce output that is similar to Esprima with a similar API so that it can be used in place of Esprima. - -## Usage - -Install: - -``` -npm i espree -``` - -To use in an ESM file: - -```js -import * as espree from "espree"; - -const ast = espree.parse(code); -``` - -To use in a Common JS file: - -```js -const espree = require("espree"); - -const ast = espree.parse(code); -``` - -## API - -### `parse()` - -`parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters. - -- `code` [string]() - the code which needs to be parsed. -- `options (Optional)` [Object]() - read more about this [here](#options). - -```js -import * as espree from "espree"; - -const ast = espree.parse(code); -``` - -**Example :** - -```js -const ast = espree.parse('let foo = "bar"', { ecmaVersion: 6 }); -console.log(ast); -``` - -
Output -

- -``` -Node { - type: 'Program', - start: 0, - end: 15, - body: [ - Node { - type: 'VariableDeclaration', - start: 0, - end: 15, - declarations: [Array], - kind: 'let' - } - ], - sourceType: 'script' -} -``` - -

-
- -### `tokenize()` - -`tokenize` returns the tokens of a given code. It takes two parameters. - -- `code` [string]() - the code which needs to be parsed. -- `options (Optional)` [Object]() - read more about this [here](#options). - -Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array - -**Example :** - -```js -import * as espree from "espree"; - -const tokens = espree.tokenize('let foo = "bar"', { ecmaVersion: 6 }); -console.log(tokens); -``` - -
Output -

- -``` -Token { type: 'Keyword', value: 'let', start: 0, end: 3 }, -Token { type: 'Identifier', value: 'foo', start: 4, end: 7 }, -Token { type: 'Punctuator', value: '=', start: 8, end: 9 }, -Token { type: 'String', value: '"bar"', start: 10, end: 15 } -``` - -

-
- -### `version` - -Returns the current `espree` version - -### `VisitorKeys` - -Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/js/tree/main/packages/eslint-visitor-keys) - -### `latestEcmaVersion` - -Returns the latest ECMAScript supported by `espree` - -### `supportedEcmaVersions` - -Returns an array of all supported ECMAScript versions - -## Options - -```js -const options = { - // attach range information to each node - range: false, - - // attach line/column location information to each node - loc: false, - - // create a top-level comments array containing all comments - comment: false, - - // create a top-level tokens array containing all tokens - tokens: false, - - // Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16 to specify the version of ECMAScript syntax you want to use. - // You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), 2024 (same as 15) or 2025 (same as 16) to use the year-based naming. - // You can also set "latest" to use the most recently supported version. - ecmaVersion: 3, - - allowReserved: true, // only allowed when ecmaVersion is 3 - - // specify which type of script you're parsing ("script", "module", or "commonjs") - sourceType: "script", - - // specify additional language features - ecmaFeatures: { - - // enable JSX parsing - jsx: false, - - // enable return in global scope (set to true automatically when sourceType is "commonjs") - globalReturn: false, - - // enable implied strict mode (if ecmaVersion >= 5) - impliedStrict: false - } -} -``` - -## Esprima Compatibility Going Forward - -The primary goal is to produce the exact same AST structure and tokens as Esprima, and that takes precedence over anything else. (The AST structure being the [ESTree](https://github.com/estree/estree) API with JSX extensions.) Separate from that, Espree may deviate from what Esprima outputs in terms of where and how comments are attached, as well as what additional information is available on AST nodes. That is to say, Espree may add more things to the AST nodes than Esprima does but the overall AST structure produced will be the same. - -Espree may also deviate from Esprima in the interface it exposes. - -## Contributing - -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/js/issues). - -Espree is licensed under a permissive BSD 2-clause license. - -## Security Policy - -We work hard to ensure that Espree is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md). - -## Build Commands - -* `npm test` - run all tests -* `npm run lint` - run all linting - -## Differences from Espree 2.x - -* The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics. -* Trailing whitespace no longer is counted as part of a node. -* `let` and `const` declarations are no longer parsed by default. You must opt-in by using an `ecmaVersion` newer than `5` or setting `sourceType` to `module`. -* The `esparse` and `esvalidate` binary scripts have been removed. -* There is no `tolerant` option. We will investigate adding this back in the future. - -## Known Incompatibilities - -In an effort to help those wanting to transition from other parsers to Espree, the following is a list of noteworthy incompatibilities with other parsers. These are known differences that we do not intend to change. - -### Esprima 1.2.2 - -* Esprima counts trailing whitespace as part of each AST node while Espree does not. In Espree, the end of a node is where the last token occurs. -* Espree does not parse `let` and `const` declarations by default. -* Error messages returned for parsing errors are different. -* There are two addition properties on every node and token: `start` and `end`. These represent the same data as `range` and are used internally by Acorn. - -### Esprima 2.x - -* Esprima 2.x uses a different comment attachment algorithm that results in some comments being added in different places than Espree. The algorithm Espree uses is the same one used in Esprima 1.2.2. - -## Frequently Asked Questions - -### Why another parser - -[ESLint](http://eslint.org) had been relying on Esprima as its parser from the beginning. While that was fine when the JavaScript language was evolving slowly, the pace of development increased dramatically and Esprima had fallen behind. ESLint, like many other tools reliant on Esprima, has been stuck in using new JavaScript language features until Esprima updates, and that caused our users frustration. - -We decided the only way for us to move forward was to create our own parser, bringing us inline with JSHint and JSLint, and allowing us to keep implementing new features as we need them. We chose to fork Esprima instead of starting from scratch in order to move as quickly as possible with a compatible API. - -With Espree 2.0.0, we are no longer a fork of Esprima but rather a translation layer between Acorn and Esprima syntax. This allows us to put work back into a community-supported parser (Acorn) that is continuing to grow and evolve while maintaining an Esprima-compatible parser for those utilities still built on Esprima. - -### Have you tried working with Esprima? - -Yes. Since the start of ESLint, we've regularly filed bugs and feature requests with Esprima and will continue to do so. However, there are some different philosophies around how the projects work that need to be worked through. The initial goal was to have Espree track Esprima and eventually merge the two back together, but we ultimately decided that building on top of Acorn was a better choice due to Acorn's plugin support. - -### Why don't you just use Acorn? - -Acorn is a great JavaScript parser that produces an AST that is compatible with Esprima. Unfortunately, ESLint relies on more than just the AST to do its job. It relies on Esprima's tokens and comment attachment features to get a complete picture of the source code. We investigated switching to Acorn, but the inconsistencies between Esprima and Acorn created too much work for a project like ESLint. - -We are building on top of Acorn, however, so that we can contribute back and help make Acorn even better. - -### What ECMAScript features do you support? - -Espree supports all ECMAScript 2024 features and partially supports ECMAScript 2025 features. - -Because ECMAScript 2025 is still under development, we are implementing features as they are finalized. Currently, Espree supports: - -* [RegExp Duplicate named capturing groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups) - -See [finished-proposals.md](https://github.com/tc39/proposals/blob/master/finished-proposals.md) to know what features are finalized. - -### How do you determine which experimental features to support? - -In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features. - - - -## Sponsors - -The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) -to get your logo on our READMEs and [website](https://eslint.org/sponsors). - -

Platinum Sponsors

-

Automattic Airbnb

Gold Sponsors

-

trunk.io

Silver Sponsors

-

JetBrains Liftoff American Express Workleap

Bronze Sponsors

-

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

-

Technology Sponsors

-Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. -

Netlify Algolia 1Password

- diff --git a/node_modules/eslint-plugin-github/node_modules/espree/dist/espree.cjs b/node_modules/eslint-plugin-github/node_modules/espree/dist/espree.cjs deleted file mode 100644 index c944a213..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/dist/espree.cjs +++ /dev/null @@ -1,939 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var acorn = require('acorn'); -var jsx = require('acorn-jsx'); -var visitorKeys = require('eslint-visitor-keys'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); - } - }); - } - n["default"] = e; - return Object.freeze(n); -} - -var acorn__namespace = /*#__PURE__*/_interopNamespace(acorn); -var jsx__default = /*#__PURE__*/_interopDefaultLegacy(jsx); -var visitorKeys__namespace = /*#__PURE__*/_interopNamespace(visitorKeys); - -/** - * @fileoverview Translates tokens between Acorn format and Esprima format. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// none! - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - - -// Esprima Token Types -const Token = { - Boolean: "Boolean", - EOF: "", - Identifier: "Identifier", - PrivateIdentifier: "PrivateIdentifier", - Keyword: "Keyword", - Null: "Null", - Numeric: "Numeric", - Punctuator: "Punctuator", - String: "String", - RegularExpression: "RegularExpression", - Template: "Template", - JSXIdentifier: "JSXIdentifier", - JSXText: "JSXText" -}; - -/** - * Converts part of a template into an Esprima token. - * @param {AcornToken[]} tokens The Acorn tokens representing the template. - * @param {string} code The source code. - * @returns {EsprimaToken} The Esprima equivalent of the template token. - * @private - */ -function convertTemplatePart(tokens, code) { - const firstToken = tokens[0], - lastTemplateToken = tokens.at(-1); - - const token = { - type: Token.Template, - value: code.slice(firstToken.start, lastTemplateToken.end) - }; - - if (firstToken.loc) { - token.loc = { - start: firstToken.loc.start, - end: lastTemplateToken.loc.end - }; - } - - if (firstToken.range) { - token.start = firstToken.range[0]; - token.end = lastTemplateToken.range[1]; - token.range = [token.start, token.end]; - } - - return token; -} - -/** - * Contains logic to translate Acorn tokens into Esprima tokens. - * @param {Object} acornTokTypes The Acorn token types. - * @param {string} code The source code Acorn is parsing. This is necessary - * to correct the "value" property of some tokens. - * @constructor - */ -function TokenTranslator(acornTokTypes, code) { - - // token types - this._acornTokTypes = acornTokTypes; - - // token buffer for templates - this._tokens = []; - - // track the last curly brace - this._curlyBrace = null; - - // the source code - this._code = code; - -} - -TokenTranslator.prototype = { - constructor: TokenTranslator, - - /** - * Translates a single Esprima token to a single Acorn token. This may be - * inaccurate due to how templates are handled differently in Esprima and - * Acorn, but should be accurate for all other tokens. - * @param {AcornToken} token The Acorn token to translate. - * @param {Object} extra Espree extra object. - * @returns {EsprimaToken} The Esprima version of the token. - */ - translate(token, extra) { - - const type = token.type, - tt = this._acornTokTypes; - - if (type === tt.name) { - token.type = Token.Identifier; - - // TODO: See if this is an Acorn bug - if (token.value === "static") { - token.type = Token.Keyword; - } - - if (extra.ecmaVersion > 5 && (token.value === "yield" || token.value === "let")) { - token.type = Token.Keyword; - } - - } else if (type === tt.privateId) { - token.type = Token.PrivateIdentifier; - - } else if (type === tt.semi || type === tt.comma || - type === tt.parenL || type === tt.parenR || - type === tt.braceL || type === tt.braceR || - type === tt.dot || type === tt.bracketL || - type === tt.colon || type === tt.question || - type === tt.bracketR || type === tt.ellipsis || - type === tt.arrow || type === tt.jsxTagStart || - type === tt.incDec || type === tt.starstar || - type === tt.jsxTagEnd || type === tt.prefix || - type === tt.questionDot || - (type.binop && !type.keyword) || - type.isAssign) { - - token.type = Token.Punctuator; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.jsxName) { - token.type = Token.JSXIdentifier; - } else if (type.label === "jsxText" || type === tt.jsxAttrValueToken) { - token.type = Token.JSXText; - } else if (type.keyword) { - if (type.keyword === "true" || type.keyword === "false") { - token.type = Token.Boolean; - } else if (type.keyword === "null") { - token.type = Token.Null; - } else { - token.type = Token.Keyword; - } - } else if (type === tt.num) { - token.type = Token.Numeric; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.string) { - - if (extra.jsxAttrValueToken) { - extra.jsxAttrValueToken = false; - token.type = Token.JSXText; - } else { - token.type = Token.String; - } - - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.regexp) { - token.type = Token.RegularExpression; - const value = token.value; - - token.regex = { - flags: value.flags, - pattern: value.pattern - }; - token.value = `/${value.pattern}/${value.flags}`; - } - - return token; - }, - - /** - * Function to call during Acorn's onToken handler. - * @param {AcornToken} token The Acorn token. - * @param {Object} extra The Espree extra object. - * @returns {void} - */ - onToken(token, extra) { - - const tt = this._acornTokTypes, - tokens = extra.tokens, - templateTokens = this._tokens; - - /** - * Flushes the buffered template tokens and resets the template - * tracking. - * @returns {void} - * @private - */ - const translateTemplateTokens = () => { - tokens.push(convertTemplatePart(this._tokens, this._code)); - this._tokens = []; - }; - - if (token.type === tt.eof) { - - // might be one last curlyBrace - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - return; - } - - if (token.type === tt.backQuote) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - templateTokens.push(token); - - // it's the end - if (templateTokens.length > 1) { - translateTemplateTokens(); - } - - return; - } - if (token.type === tt.dollarBraceL) { - templateTokens.push(token); - translateTemplateTokens(); - return; - } - if (token.type === tt.braceR) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - // store new curly for later - this._curlyBrace = token; - return; - } - if (token.type === tt.template || token.type === tt.invalidTemplate) { - if (this._curlyBrace) { - templateTokens.push(this._curlyBrace); - this._curlyBrace = null; - } - - templateTokens.push(token); - return; - } - - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - tokens.push(this.translate(token, extra)); - } -}; - -/** - * @fileoverview A collection of methods for processing Espree's options. - * @author Kai Cataldo - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SUPPORTED_VERSIONS = [ - 3, - 5, - 6, // 2015 - 7, // 2016 - 8, // 2017 - 9, // 2018 - 10, // 2019 - 11, // 2020 - 12, // 2021 - 13, // 2022 - 14, // 2023 - 15, // 2024 - 16 // 2025 -]; - -/** - * Get the latest ECMAScript version supported by Espree. - * @returns {number} The latest ECMAScript version. - */ -function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS.at(-1); -} - -/** - * Get the list of ECMAScript versions supported by Espree. - * @returns {number[]} An array containing the supported ECMAScript versions. - */ -function getSupportedEcmaVersions() { - return [...SUPPORTED_VERSIONS]; -} - -/** - * Normalize ECMAScript version from the initial config - * @param {(number|"latest")} ecmaVersion ECMAScript version from the initial config - * @throws {Error} throws an error if the ecmaVersion is invalid. - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersion(ecmaVersion = 5) { - - let version = ecmaVersion === "latest" ? getLatestEcmaVersion() : ecmaVersion; - - if (typeof version !== "number") { - throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof ecmaVersion} instead.`); - } - - // Calculate ECMAScript edition number from official year version starting with - // ES2015, which corresponds with ES6 (or a difference of 2009). - if (version >= 2015) { - version -= 2009; - } - - if (!SUPPORTED_VERSIONS.includes(version)) { - throw new Error("Invalid ecmaVersion."); - } - - return version; -} - -/** - * Normalize sourceType from the initial config - * @param {string} sourceType to normalize - * @throws {Error} throw an error if sourceType is invalid - * @returns {string} normalized sourceType - */ -function normalizeSourceType(sourceType = "script") { - if (sourceType === "script" || sourceType === "module") { - return sourceType; - } - - if (sourceType === "commonjs") { - return "script"; - } - - throw new Error("Invalid sourceType."); -} - -/** - * Normalize parserOptions - * @param {Object} options the parser options to normalize - * @throws {Error} throw an error if found invalid option. - * @returns {Object} normalized options - */ -function normalizeOptions(options) { - const ecmaVersion = normalizeEcmaVersion(options.ecmaVersion); - const sourceType = normalizeSourceType(options.sourceType); - const ranges = options.range === true; - const locations = options.loc === true; - - if (ecmaVersion !== 3 && options.allowReserved) { - - // a value of `false` is intentionally allowed here, so a shared config can overwrite it when needed - throw new Error("`allowReserved` is only supported when ecmaVersion is 3"); - } - if (typeof options.allowReserved !== "undefined" && typeof options.allowReserved !== "boolean") { - throw new Error("`allowReserved`, when present, must be `true` or `false`"); - } - const allowReserved = ecmaVersion === 3 ? (options.allowReserved || "never") : false; - const ecmaFeatures = options.ecmaFeatures || {}; - const allowReturnOutsideFunction = options.sourceType === "commonjs" || - Boolean(ecmaFeatures.globalReturn); - - if (sourceType === "module" && ecmaVersion < 6) { - throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."); - } - - return Object.assign({}, options, { - ecmaVersion, - sourceType, - ranges, - locations, - allowReserved, - allowReturnOutsideFunction - }); -} - -/* eslint no-param-reassign: 0 -- stylistic choice */ - - -const STATE = Symbol("espree's internal state"); -const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode"); - - -/** - * Converts an Acorn comment to a Esprima comment. - * @param {boolean} block True if it's a block comment, false if not. - * @param {string} text The text of the comment. - * @param {int} start The index at which the comment starts. - * @param {int} end The index at which the comment ends. - * @param {Location} startLoc The location at which the comment starts. - * @param {Location} endLoc The location at which the comment ends. - * @param {string} code The source code being parsed. - * @returns {Object} The comment object. - * @private - */ -function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) { - let type; - - if (block) { - type = "Block"; - } else if (code.slice(start, start + 2) === "#!") { - type = "Hashbang"; - } else { - type = "Line"; - } - - const comment = { - type, - value: text - }; - - if (typeof start === "number") { - comment.start = start; - comment.end = end; - comment.range = [start, end]; - } - - if (typeof startLoc === "object") { - comment.loc = { - start: startLoc, - end: endLoc - }; - } - - return comment; -} - -var espree = () => Parser => { - const tokTypes = Object.assign({}, Parser.acorn.tokTypes); - - if (Parser.acornJsx) { - Object.assign(tokTypes, Parser.acornJsx.tokTypes); - } - - return class Espree extends Parser { - constructor(opts, code) { - if (typeof opts !== "object" || opts === null) { - opts = {}; - } - if (typeof code !== "string" && !(code instanceof String)) { - code = String(code); - } - - // save original source type in case of commonjs - const originalSourceType = opts.sourceType; - const options = normalizeOptions(opts); - const ecmaFeatures = options.ecmaFeatures || {}; - const tokenTranslator = - options.tokens === true - ? new TokenTranslator(tokTypes, code) - : null; - - /* - * Data that is unique to Espree and is not represented internally - * in Acorn. - * - * For ES2023 hashbangs, Espree will call `onComment()` during the - * constructor, so we must define state before having access to - * `this`. - */ - const state = { - originalSourceType: originalSourceType || options.sourceType, - tokens: tokenTranslator ? [] : null, - comments: options.comment === true ? [] : null, - impliedStrict: ecmaFeatures.impliedStrict === true && options.ecmaVersion >= 5, - ecmaVersion: options.ecmaVersion, - jsxAttrValueToken: false, - lastToken: null, - templateElements: [] - }; - - // Initialize acorn parser. - super({ - - // do not use spread, because we don't want to pass any unknown options to acorn - ecmaVersion: options.ecmaVersion, - sourceType: options.sourceType, - ranges: options.ranges, - locations: options.locations, - allowReserved: options.allowReserved, - - // Truthy value is true for backward compatibility. - allowReturnOutsideFunction: options.allowReturnOutsideFunction, - - // Collect tokens - onToken(token) { - if (tokenTranslator) { - - // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. - tokenTranslator.onToken(token, state); - } - if (token.type !== tokTypes.eof) { - state.lastToken = token; - } - }, - - // Collect comments - onComment(block, text, start, end, startLoc, endLoc) { - if (state.comments) { - const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); - - state.comments.push(comment); - } - } - }, code); - - /* - * We put all of this data into a symbol property as a way to avoid - * potential naming conflicts with future versions of Acorn. - */ - this[STATE] = state; - } - - tokenize() { - do { - this.next(); - } while (this.type !== tokTypes.eof); - - // Consume the final eof token - this.next(); - - const extra = this[STATE]; - const tokens = extra.tokens; - - if (extra.comments) { - tokens.comments = extra.comments; - } - - return tokens; - } - - finishNode(...args) { - const result = super.finishNode(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - finishNodeAt(...args) { - const result = super.finishNodeAt(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - parse() { - const extra = this[STATE]; - const program = super.parse(); - - program.sourceType = extra.originalSourceType; - - if (extra.comments) { - program.comments = extra.comments; - } - if (extra.tokens) { - program.tokens = extra.tokens; - } - - /* - * Adjust opening and closing position of program to match Esprima. - * Acorn always starts programs at range 0 whereas Esprima starts at the - * first AST node's start (the only real difference is when there's leading - * whitespace or leading comments). Acorn also counts trailing whitespace - * as part of the program whereas Esprima only counts up to the last token. - */ - if (program.body.length) { - const [firstNode] = program.body; - - if (program.range) { - program.range[0] = firstNode.range[0]; - } - if (program.loc) { - program.loc.start = firstNode.loc.start; - } - program.start = firstNode.start; - } - if (extra.lastToken) { - if (program.range) { - program.range[1] = extra.lastToken.range[1]; - } - if (program.loc) { - program.loc.end = extra.lastToken.loc.end; - } - program.end = extra.lastToken.end; - } - - - /* - * https://github.com/eslint/espree/issues/349 - * Ensure that template elements have correct range information. - * This is one location where Acorn produces a different value - * for its start and end properties vs. the values present in the - * range property. In order to avoid confusion, we set the start - * and end properties to the values that are present in range. - * This is done here, instead of in finishNode(), because Acorn - * uses the values of start and end internally while parsing, making - * it dangerous to change those values while parsing is ongoing. - * By waiting until the end of parsing, we can safely change these - * values without affect any other part of the process. - */ - this[STATE].templateElements.forEach(templateElement => { - const startOffset = -1; - const endOffset = templateElement.tail ? 1 : 2; - - templateElement.start += startOffset; - templateElement.end += endOffset; - - if (templateElement.range) { - templateElement.range[0] += startOffset; - templateElement.range[1] += endOffset; - } - - if (templateElement.loc) { - templateElement.loc.start.column += startOffset; - templateElement.loc.end.column += endOffset; - } - }); - - return program; - } - - parseTopLevel(node) { - if (this[STATE].impliedStrict) { - this.strict = true; - } - return super.parseTopLevel(node); - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raise(pos, message) { - const loc = Parser.acorn.getLineInfo(this.input, pos); - const err = new SyntaxError(message); - - err.index = pos; - err.lineNumber = loc.line; - err.column = loc.column + 1; // acorn uses 0-based columns - throw err; - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raiseRecoverable(pos, message) { - this.raise(pos, message); - } - - /** - * Overwrites the default unexpected method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - unexpected(pos) { - let message = "Unexpected token"; - - if (pos !== null && pos !== void 0) { - this.pos = pos; - - if (this.options.locations) { - while (this.pos < this.lineStart) { - this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1; - --this.curLine; - } - } - - this.nextToken(); - } - - if (this.end > this.start) { - message += ` ${this.input.slice(this.start, this.end)}`; - } - - this.raise(this.start, message); - } - - /* - * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX - * uses regular tt.string without any distinction between this and regular JS - * strings. As such, we intercept an attempt to read a JSX string and set a flag - * on extra so that when tokens are converted, the next token will be switched - * to JSXText via onToken. - */ - jsx_readString(quote) { // eslint-disable-line camelcase -- required by API - const result = super.jsx_readString(quote); - - if (this.type === tokTypes.string) { - this[STATE].jsxAttrValueToken = true; - } - return result; - } - - /** - * Performs last-minute Esprima-specific compatibility checks and fixes. - * @param {ASTNode} result The node to check. - * @returns {ASTNode} The finished node. - */ - [ESPRIMA_FINISH_NODE](result) { - - // Acorn doesn't count the opening and closing backticks as part of templates - // so we have to adjust ranges/locations appropriately. - if (result.type === "TemplateElement") { - - // save template element references to fix start/end later - this[STATE].templateElements.push(result); - } - - if (result.type.includes("Function") && !result.generator) { - result.generator = false; - } - - return result; - } - }; -}; - -const version$1 = "10.3.0"; - -/** - * @fileoverview Main Espree file that converts Acorn into Esprima output. - * - * This file contains code from the following MIT-licensed projects: - * 1. Acorn - * 2. Babylon - * 3. Babel-ESLint - * - * This file also contains code from Esprima, which is BSD licensed. - * - * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) - * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) - * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -// To initialize lazily. -const parsers = { - _regular: null, - _jsx: null, - - get regular() { - if (this._regular === null) { - this._regular = acorn__namespace.Parser.extend(espree()); - } - return this._regular; - }, - - get jsx() { - if (this._jsx === null) { - this._jsx = acorn__namespace.Parser.extend(jsx__default["default"](), espree()); - } - return this._jsx; - }, - - get(options) { - const useJsx = Boolean( - options && - options.ecmaFeatures && - options.ecmaFeatures.jsx - ); - - return useJsx ? this.jsx : this.regular; - } -}; - -//------------------------------------------------------------------------------ -// Tokenizer -//------------------------------------------------------------------------------ - -/** - * Tokenizes the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {Token[]} An array of tokens. - * @throws {SyntaxError} If the input code is invalid. - * @private - */ -function tokenize(code, options) { - const Parser = parsers.get(options); - - // Ensure to collect tokens. - if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice - } - - return new Parser(options, code).tokenize(); -} - -//------------------------------------------------------------------------------ -// Parser -//------------------------------------------------------------------------------ - -/** - * Parses the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {ASTNode} The "Program" AST node. - * @throws {SyntaxError} If the input code is invalid. - */ -function parse(code, options) { - const Parser = parsers.get(options); - - return new Parser(options, code).parse(); -} - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -const version = version$1; -const name = "espree"; - -/* istanbul ignore next */ -const VisitorKeys = (function() { - return visitorKeys__namespace.KEYS; -}()); - -// Derive node types from VisitorKeys -/* istanbul ignore next */ -const Syntax = (function() { - let key, - types = {}; - - if (typeof Object.create === "function") { - types = Object.create(null); - } - - for (key in VisitorKeys) { - if (Object.hasOwn(VisitorKeys, key)) { - types[key] = key; - } - } - - if (typeof Object.freeze === "function") { - Object.freeze(types); - } - - return types; -}()); - -const latestEcmaVersion = getLatestEcmaVersion(); - -const supportedEcmaVersions = getSupportedEcmaVersions(); - -exports.Syntax = Syntax; -exports.VisitorKeys = VisitorKeys; -exports.latestEcmaVersion = latestEcmaVersion; -exports.name = name; -exports.parse = parse; -exports.supportedEcmaVersions = supportedEcmaVersions; -exports.tokenize = tokenize; -exports.version = version; diff --git a/node_modules/eslint-plugin-github/node_modules/espree/espree.js b/node_modules/eslint-plugin-github/node_modules/espree/espree.js deleted file mode 100644 index 15e0ce52..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/espree.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview Main Espree file that converts Acorn into Esprima output. - * - * This file contains code from the following MIT-licensed projects: - * 1. Acorn - * 2. Babylon - * 3. Babel-ESLint - * - * This file also contains code from Esprima, which is BSD licensed. - * - * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) - * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) - * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -import * as acorn from "acorn"; -import jsx from "acorn-jsx"; -import espree from "./lib/espree.js"; -import espreeVersion from "./lib/version.js"; -import * as visitorKeys from "eslint-visitor-keys"; -import { getLatestEcmaVersion, getSupportedEcmaVersions } from "./lib/options.js"; - - -// To initialize lazily. -const parsers = { - _regular: null, - _jsx: null, - - get regular() { - if (this._regular === null) { - this._regular = acorn.Parser.extend(espree()); - } - return this._regular; - }, - - get jsx() { - if (this._jsx === null) { - this._jsx = acorn.Parser.extend(jsx(), espree()); - } - return this._jsx; - }, - - get(options) { - const useJsx = Boolean( - options && - options.ecmaFeatures && - options.ecmaFeatures.jsx - ); - - return useJsx ? this.jsx : this.regular; - } -}; - -//------------------------------------------------------------------------------ -// Tokenizer -//------------------------------------------------------------------------------ - -/** - * Tokenizes the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {Token[]} An array of tokens. - * @throws {SyntaxError} If the input code is invalid. - * @private - */ -export function tokenize(code, options) { - const Parser = parsers.get(options); - - // Ensure to collect tokens. - if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice - } - - return new Parser(options, code).tokenize(); -} - -//------------------------------------------------------------------------------ -// Parser -//------------------------------------------------------------------------------ - -/** - * Parses the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {ASTNode} The "Program" AST node. - * @throws {SyntaxError} If the input code is invalid. - */ -export function parse(code, options) { - const Parser = parsers.get(options); - - return new Parser(options, code).parse(); -} - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export const version = espreeVersion; -export const name = "espree"; - -/* istanbul ignore next */ -export const VisitorKeys = (function() { - return visitorKeys.KEYS; -}()); - -// Derive node types from VisitorKeys -/* istanbul ignore next */ -export const Syntax = (function() { - let key, - types = {}; - - if (typeof Object.create === "function") { - types = Object.create(null); - } - - for (key in VisitorKeys) { - if (Object.hasOwn(VisitorKeys, key)) { - types[key] = key; - } - } - - if (typeof Object.freeze === "function") { - Object.freeze(types); - } - - return types; -}()); - -export const latestEcmaVersion = getLatestEcmaVersion(); - -export const supportedEcmaVersions = getSupportedEcmaVersions(); diff --git a/node_modules/eslint-plugin-github/node_modules/espree/lib/espree.js b/node_modules/eslint-plugin-github/node_modules/espree/lib/espree.js deleted file mode 100644 index 2be1b56d..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/lib/espree.js +++ /dev/null @@ -1,349 +0,0 @@ -/* eslint no-param-reassign: 0 -- stylistic choice */ - -import TokenTranslator from "./token-translator.js"; -import { normalizeOptions } from "./options.js"; - - -const STATE = Symbol("espree's internal state"); -const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode"); - - -/** - * Converts an Acorn comment to a Esprima comment. - * @param {boolean} block True if it's a block comment, false if not. - * @param {string} text The text of the comment. - * @param {int} start The index at which the comment starts. - * @param {int} end The index at which the comment ends. - * @param {Location} startLoc The location at which the comment starts. - * @param {Location} endLoc The location at which the comment ends. - * @param {string} code The source code being parsed. - * @returns {Object} The comment object. - * @private - */ -function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) { - let type; - - if (block) { - type = "Block"; - } else if (code.slice(start, start + 2) === "#!") { - type = "Hashbang"; - } else { - type = "Line"; - } - - const comment = { - type, - value: text - }; - - if (typeof start === "number") { - comment.start = start; - comment.end = end; - comment.range = [start, end]; - } - - if (typeof startLoc === "object") { - comment.loc = { - start: startLoc, - end: endLoc - }; - } - - return comment; -} - -export default () => Parser => { - const tokTypes = Object.assign({}, Parser.acorn.tokTypes); - - if (Parser.acornJsx) { - Object.assign(tokTypes, Parser.acornJsx.tokTypes); - } - - return class Espree extends Parser { - constructor(opts, code) { - if (typeof opts !== "object" || opts === null) { - opts = {}; - } - if (typeof code !== "string" && !(code instanceof String)) { - code = String(code); - } - - // save original source type in case of commonjs - const originalSourceType = opts.sourceType; - const options = normalizeOptions(opts); - const ecmaFeatures = options.ecmaFeatures || {}; - const tokenTranslator = - options.tokens === true - ? new TokenTranslator(tokTypes, code) - : null; - - /* - * Data that is unique to Espree and is not represented internally - * in Acorn. - * - * For ES2023 hashbangs, Espree will call `onComment()` during the - * constructor, so we must define state before having access to - * `this`. - */ - const state = { - originalSourceType: originalSourceType || options.sourceType, - tokens: tokenTranslator ? [] : null, - comments: options.comment === true ? [] : null, - impliedStrict: ecmaFeatures.impliedStrict === true && options.ecmaVersion >= 5, - ecmaVersion: options.ecmaVersion, - jsxAttrValueToken: false, - lastToken: null, - templateElements: [] - }; - - // Initialize acorn parser. - super({ - - // do not use spread, because we don't want to pass any unknown options to acorn - ecmaVersion: options.ecmaVersion, - sourceType: options.sourceType, - ranges: options.ranges, - locations: options.locations, - allowReserved: options.allowReserved, - - // Truthy value is true for backward compatibility. - allowReturnOutsideFunction: options.allowReturnOutsideFunction, - - // Collect tokens - onToken(token) { - if (tokenTranslator) { - - // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. - tokenTranslator.onToken(token, state); - } - if (token.type !== tokTypes.eof) { - state.lastToken = token; - } - }, - - // Collect comments - onComment(block, text, start, end, startLoc, endLoc) { - if (state.comments) { - const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); - - state.comments.push(comment); - } - } - }, code); - - /* - * We put all of this data into a symbol property as a way to avoid - * potential naming conflicts with future versions of Acorn. - */ - this[STATE] = state; - } - - tokenize() { - do { - this.next(); - } while (this.type !== tokTypes.eof); - - // Consume the final eof token - this.next(); - - const extra = this[STATE]; - const tokens = extra.tokens; - - if (extra.comments) { - tokens.comments = extra.comments; - } - - return tokens; - } - - finishNode(...args) { - const result = super.finishNode(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - finishNodeAt(...args) { - const result = super.finishNodeAt(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - parse() { - const extra = this[STATE]; - const program = super.parse(); - - program.sourceType = extra.originalSourceType; - - if (extra.comments) { - program.comments = extra.comments; - } - if (extra.tokens) { - program.tokens = extra.tokens; - } - - /* - * Adjust opening and closing position of program to match Esprima. - * Acorn always starts programs at range 0 whereas Esprima starts at the - * first AST node's start (the only real difference is when there's leading - * whitespace or leading comments). Acorn also counts trailing whitespace - * as part of the program whereas Esprima only counts up to the last token. - */ - if (program.body.length) { - const [firstNode] = program.body; - - if (program.range) { - program.range[0] = firstNode.range[0]; - } - if (program.loc) { - program.loc.start = firstNode.loc.start; - } - program.start = firstNode.start; - } - if (extra.lastToken) { - if (program.range) { - program.range[1] = extra.lastToken.range[1]; - } - if (program.loc) { - program.loc.end = extra.lastToken.loc.end; - } - program.end = extra.lastToken.end; - } - - - /* - * https://github.com/eslint/espree/issues/349 - * Ensure that template elements have correct range information. - * This is one location where Acorn produces a different value - * for its start and end properties vs. the values present in the - * range property. In order to avoid confusion, we set the start - * and end properties to the values that are present in range. - * This is done here, instead of in finishNode(), because Acorn - * uses the values of start and end internally while parsing, making - * it dangerous to change those values while parsing is ongoing. - * By waiting until the end of parsing, we can safely change these - * values without affect any other part of the process. - */ - this[STATE].templateElements.forEach(templateElement => { - const startOffset = -1; - const endOffset = templateElement.tail ? 1 : 2; - - templateElement.start += startOffset; - templateElement.end += endOffset; - - if (templateElement.range) { - templateElement.range[0] += startOffset; - templateElement.range[1] += endOffset; - } - - if (templateElement.loc) { - templateElement.loc.start.column += startOffset; - templateElement.loc.end.column += endOffset; - } - }); - - return program; - } - - parseTopLevel(node) { - if (this[STATE].impliedStrict) { - this.strict = true; - } - return super.parseTopLevel(node); - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raise(pos, message) { - const loc = Parser.acorn.getLineInfo(this.input, pos); - const err = new SyntaxError(message); - - err.index = pos; - err.lineNumber = loc.line; - err.column = loc.column + 1; // acorn uses 0-based columns - throw err; - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raiseRecoverable(pos, message) { - this.raise(pos, message); - } - - /** - * Overwrites the default unexpected method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - unexpected(pos) { - let message = "Unexpected token"; - - if (pos !== null && pos !== void 0) { - this.pos = pos; - - if (this.options.locations) { - while (this.pos < this.lineStart) { - this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1; - --this.curLine; - } - } - - this.nextToken(); - } - - if (this.end > this.start) { - message += ` ${this.input.slice(this.start, this.end)}`; - } - - this.raise(this.start, message); - } - - /* - * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX - * uses regular tt.string without any distinction between this and regular JS - * strings. As such, we intercept an attempt to read a JSX string and set a flag - * on extra so that when tokens are converted, the next token will be switched - * to JSXText via onToken. - */ - jsx_readString(quote) { // eslint-disable-line camelcase -- required by API - const result = super.jsx_readString(quote); - - if (this.type === tokTypes.string) { - this[STATE].jsxAttrValueToken = true; - } - return result; - } - - /** - * Performs last-minute Esprima-specific compatibility checks and fixes. - * @param {ASTNode} result The node to check. - * @returns {ASTNode} The finished node. - */ - [ESPRIMA_FINISH_NODE](result) { - - // Acorn doesn't count the opening and closing backticks as part of templates - // so we have to adjust ranges/locations appropriately. - if (result.type === "TemplateElement") { - - // save template element references to fix start/end later - this[STATE].templateElements.push(result); - } - - if (result.type.includes("Function") && !result.generator) { - result.generator = false; - } - - return result; - } - }; -}; diff --git a/node_modules/eslint-plugin-github/node_modules/espree/lib/features.js b/node_modules/eslint-plugin-github/node_modules/espree/lib/features.js deleted file mode 100644 index 31467d28..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/lib/features.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @fileoverview The list of feature flags supported by the parser and their default - * settings. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// None! - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export default { - - // React JSX parsing - jsx: false, - - // allow return statement in global scope - globalReturn: false, - - // allow implied strict mode - impliedStrict: false -}; diff --git a/node_modules/eslint-plugin-github/node_modules/espree/lib/options.js b/node_modules/eslint-plugin-github/node_modules/espree/lib/options.js deleted file mode 100644 index 2cdfb689..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/lib/options.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @fileoverview A collection of methods for processing Espree's options. - * @author Kai Cataldo - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SUPPORTED_VERSIONS = [ - 3, - 5, - 6, // 2015 - 7, // 2016 - 8, // 2017 - 9, // 2018 - 10, // 2019 - 11, // 2020 - 12, // 2021 - 13, // 2022 - 14, // 2023 - 15, // 2024 - 16 // 2025 -]; - -/** - * Get the latest ECMAScript version supported by Espree. - * @returns {number} The latest ECMAScript version. - */ -export function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS.at(-1); -} - -/** - * Get the list of ECMAScript versions supported by Espree. - * @returns {number[]} An array containing the supported ECMAScript versions. - */ -export function getSupportedEcmaVersions() { - return [...SUPPORTED_VERSIONS]; -} - -/** - * Normalize ECMAScript version from the initial config - * @param {(number|"latest")} ecmaVersion ECMAScript version from the initial config - * @throws {Error} throws an error if the ecmaVersion is invalid. - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersion(ecmaVersion = 5) { - - let version = ecmaVersion === "latest" ? getLatestEcmaVersion() : ecmaVersion; - - if (typeof version !== "number") { - throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof ecmaVersion} instead.`); - } - - // Calculate ECMAScript edition number from official year version starting with - // ES2015, which corresponds with ES6 (or a difference of 2009). - if (version >= 2015) { - version -= 2009; - } - - if (!SUPPORTED_VERSIONS.includes(version)) { - throw new Error("Invalid ecmaVersion."); - } - - return version; -} - -/** - * Normalize sourceType from the initial config - * @param {string} sourceType to normalize - * @throws {Error} throw an error if sourceType is invalid - * @returns {string} normalized sourceType - */ -function normalizeSourceType(sourceType = "script") { - if (sourceType === "script" || sourceType === "module") { - return sourceType; - } - - if (sourceType === "commonjs") { - return "script"; - } - - throw new Error("Invalid sourceType."); -} - -/** - * Normalize parserOptions - * @param {Object} options the parser options to normalize - * @throws {Error} throw an error if found invalid option. - * @returns {Object} normalized options - */ -export function normalizeOptions(options) { - const ecmaVersion = normalizeEcmaVersion(options.ecmaVersion); - const sourceType = normalizeSourceType(options.sourceType); - const ranges = options.range === true; - const locations = options.loc === true; - - if (ecmaVersion !== 3 && options.allowReserved) { - - // a value of `false` is intentionally allowed here, so a shared config can overwrite it when needed - throw new Error("`allowReserved` is only supported when ecmaVersion is 3"); - } - if (typeof options.allowReserved !== "undefined" && typeof options.allowReserved !== "boolean") { - throw new Error("`allowReserved`, when present, must be `true` or `false`"); - } - const allowReserved = ecmaVersion === 3 ? (options.allowReserved || "never") : false; - const ecmaFeatures = options.ecmaFeatures || {}; - const allowReturnOutsideFunction = options.sourceType === "commonjs" || - Boolean(ecmaFeatures.globalReturn); - - if (sourceType === "module" && ecmaVersion < 6) { - throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."); - } - - return Object.assign({}, options, { - ecmaVersion, - sourceType, - ranges, - locations, - allowReserved, - allowReturnOutsideFunction - }); -} diff --git a/node_modules/eslint-plugin-github/node_modules/espree/lib/token-translator.js b/node_modules/eslint-plugin-github/node_modules/espree/lib/token-translator.js deleted file mode 100644 index 6daf865a..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/lib/token-translator.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @fileoverview Translates tokens between Acorn format and Esprima format. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// none! - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - - -// Esprima Token Types -const Token = { - Boolean: "Boolean", - EOF: "", - Identifier: "Identifier", - PrivateIdentifier: "PrivateIdentifier", - Keyword: "Keyword", - Null: "Null", - Numeric: "Numeric", - Punctuator: "Punctuator", - String: "String", - RegularExpression: "RegularExpression", - Template: "Template", - JSXIdentifier: "JSXIdentifier", - JSXText: "JSXText" -}; - -/** - * Converts part of a template into an Esprima token. - * @param {AcornToken[]} tokens The Acorn tokens representing the template. - * @param {string} code The source code. - * @returns {EsprimaToken} The Esprima equivalent of the template token. - * @private - */ -function convertTemplatePart(tokens, code) { - const firstToken = tokens[0], - lastTemplateToken = tokens.at(-1); - - const token = { - type: Token.Template, - value: code.slice(firstToken.start, lastTemplateToken.end) - }; - - if (firstToken.loc) { - token.loc = { - start: firstToken.loc.start, - end: lastTemplateToken.loc.end - }; - } - - if (firstToken.range) { - token.start = firstToken.range[0]; - token.end = lastTemplateToken.range[1]; - token.range = [token.start, token.end]; - } - - return token; -} - -/** - * Contains logic to translate Acorn tokens into Esprima tokens. - * @param {Object} acornTokTypes The Acorn token types. - * @param {string} code The source code Acorn is parsing. This is necessary - * to correct the "value" property of some tokens. - * @constructor - */ -function TokenTranslator(acornTokTypes, code) { - - // token types - this._acornTokTypes = acornTokTypes; - - // token buffer for templates - this._tokens = []; - - // track the last curly brace - this._curlyBrace = null; - - // the source code - this._code = code; - -} - -TokenTranslator.prototype = { - constructor: TokenTranslator, - - /** - * Translates a single Esprima token to a single Acorn token. This may be - * inaccurate due to how templates are handled differently in Esprima and - * Acorn, but should be accurate for all other tokens. - * @param {AcornToken} token The Acorn token to translate. - * @param {Object} extra Espree extra object. - * @returns {EsprimaToken} The Esprima version of the token. - */ - translate(token, extra) { - - const type = token.type, - tt = this._acornTokTypes; - - if (type === tt.name) { - token.type = Token.Identifier; - - // TODO: See if this is an Acorn bug - if (token.value === "static") { - token.type = Token.Keyword; - } - - if (extra.ecmaVersion > 5 && (token.value === "yield" || token.value === "let")) { - token.type = Token.Keyword; - } - - } else if (type === tt.privateId) { - token.type = Token.PrivateIdentifier; - - } else if (type === tt.semi || type === tt.comma || - type === tt.parenL || type === tt.parenR || - type === tt.braceL || type === tt.braceR || - type === tt.dot || type === tt.bracketL || - type === tt.colon || type === tt.question || - type === tt.bracketR || type === tt.ellipsis || - type === tt.arrow || type === tt.jsxTagStart || - type === tt.incDec || type === tt.starstar || - type === tt.jsxTagEnd || type === tt.prefix || - type === tt.questionDot || - (type.binop && !type.keyword) || - type.isAssign) { - - token.type = Token.Punctuator; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.jsxName) { - token.type = Token.JSXIdentifier; - } else if (type.label === "jsxText" || type === tt.jsxAttrValueToken) { - token.type = Token.JSXText; - } else if (type.keyword) { - if (type.keyword === "true" || type.keyword === "false") { - token.type = Token.Boolean; - } else if (type.keyword === "null") { - token.type = Token.Null; - } else { - token.type = Token.Keyword; - } - } else if (type === tt.num) { - token.type = Token.Numeric; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.string) { - - if (extra.jsxAttrValueToken) { - extra.jsxAttrValueToken = false; - token.type = Token.JSXText; - } else { - token.type = Token.String; - } - - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.regexp) { - token.type = Token.RegularExpression; - const value = token.value; - - token.regex = { - flags: value.flags, - pattern: value.pattern - }; - token.value = `/${value.pattern}/${value.flags}`; - } - - return token; - }, - - /** - * Function to call during Acorn's onToken handler. - * @param {AcornToken} token The Acorn token. - * @param {Object} extra The Espree extra object. - * @returns {void} - */ - onToken(token, extra) { - - const tt = this._acornTokTypes, - tokens = extra.tokens, - templateTokens = this._tokens; - - /** - * Flushes the buffered template tokens and resets the template - * tracking. - * @returns {void} - * @private - */ - const translateTemplateTokens = () => { - tokens.push(convertTemplatePart(this._tokens, this._code)); - this._tokens = []; - }; - - if (token.type === tt.eof) { - - // might be one last curlyBrace - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - return; - } - - if (token.type === tt.backQuote) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - templateTokens.push(token); - - // it's the end - if (templateTokens.length > 1) { - translateTemplateTokens(); - } - - return; - } - if (token.type === tt.dollarBraceL) { - templateTokens.push(token); - translateTemplateTokens(); - return; - } - if (token.type === tt.braceR) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - // store new curly for later - this._curlyBrace = token; - return; - } - if (token.type === tt.template || token.type === tt.invalidTemplate) { - if (this._curlyBrace) { - templateTokens.push(this._curlyBrace); - this._curlyBrace = null; - } - - templateTokens.push(token); - return; - } - - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - tokens.push(this.translate(token, extra)); - } -}; - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export default TokenTranslator; diff --git a/node_modules/eslint-plugin-github/node_modules/espree/lib/version.js b/node_modules/eslint-plugin-github/node_modules/espree/lib/version.js deleted file mode 100644 index 22a42060..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/lib/version.js +++ /dev/null @@ -1,3 +0,0 @@ -const version = "10.3.0"; - -export default version; diff --git a/node_modules/eslint-plugin-github/node_modules/espree/package.json b/node_modules/eslint-plugin-github/node_modules/espree/package.json deleted file mode 100644 index ca08d881..00000000 --- a/node_modules/eslint-plugin-github/node_modules/espree/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "espree", - "description": "An Esprima-compatible JavaScript parser built on Acorn", - "author": "Nicholas C. Zakas ", - "homepage": "https://github.com/eslint/js/blob/main/packages/espree/README.md", - "main": "dist/espree.cjs", - "type": "module", - "exports": { - ".": [ - { - "import": "./espree.js", - "require": "./dist/espree.cjs", - "default": "./dist/espree.cjs" - }, - "./dist/espree.cjs" - ], - "./package.json": "./package.json" - }, - "version": "10.3.0", - "files": [ - "lib", - "dist/espree.cjs", - "espree.js" - ], - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": "eslint/js", - "bugs": { - "url": "https://github.com/eslint/js/issues" - }, - "funding": "https://opencollective.com/eslint", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^28.0.0", - "@rollup/plugin-json": "^6.1.0", - "@rollup/plugin-node-resolve": "^15.3.0", - "c8": "^7.11.0", - "eslint-release": "^3.2.0", - "esprima-fb": "^8001.2001.0-dev-harmony-fb", - "mocha": "^9.2.2", - "npm-run-all2": "^6.2.2", - "rollup": "^2.79.1", - "shelljs": "^0.8.5" - }, - "keywords": [ - "ast", - "ecmascript", - "javascript", - "parser", - "syntax", - "acorn" - ], - "scripts": { - "build": "rollup -c rollup.config.js", - "build:debug": "npm run build -- -m", - "build:docs": "node tools/sync-docs.js", - "build:update-version": "node tools/update-version.js", - "prepublishOnly": "npm run build:update-version && npm run build", - "pretest": "npm run build", - "release:generate:latest": "eslint-generate-release", - "release:generate:alpha": "eslint-generate-prerelease alpha", - "release:generate:beta": "eslint-generate-prerelease beta", - "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release", - "test": "npm-run-all -s test:*", - "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", - "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'" - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/CHANGELOG.md b/node_modules/eslint-plugin-github/node_modules/js-yaml/CHANGELOG.md deleted file mode 100644 index ff2375e0..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/CHANGELOG.md +++ /dev/null @@ -1,616 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [4.1.0] - 2021-04-15 -### Added -- Types are now exported as `yaml.types.XXX`. -- Every type now has `options` property with original arguments kept as they were - (see `yaml.types.int.options` as an example). - -### Changed -- `Schema.extend()` now keeps old type order in case of conflicts - (e.g. Schema.extend([ a, b, c ]).extend([ b, a, d ]) is now ordered as `abcd` instead of `cbad`). - - -## [4.0.0] - 2021-01-03 -### Changed -- Check [migration guide](migrate_v3_to_v4.md) to see details for all breaking changes. -- Breaking: "unsafe" tags `!!js/function`, `!!js/regexp`, `!!js/undefined` are - moved to [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) package. -- Breaking: removed `safe*` functions. Use `load`, `loadAll`, `dump` - instead which are all now safe by default. -- `yaml.DEFAULT_SAFE_SCHEMA` and `yaml.DEFAULT_FULL_SCHEMA` are removed, use - `yaml.DEFAULT_SCHEMA` instead. -- `yaml.Schema.create(schema, tags)` is removed, use `schema.extend(tags)` instead. -- `!!binary` now always mapped to `Uint8Array` on load. -- Reduced nesting of `/lib` folder. -- Parse numbers according to YAML 1.2 instead of YAML 1.1 (`01234` is now decimal, - `0o1234` is octal, `1:23` is parsed as string instead of base60). -- `dump()` no longer quotes `:`, `[`, `]`, `(`, `)` except when necessary, #470, #557. -- Line and column in exceptions are now formatted as `(X:Y)` instead of - `at line X, column Y` (also present in compact format), #332. -- Code snippet created in exceptions now contains multiple lines with line numbers. -- `dump()` now serializes `undefined` as `null` in collections and removes keys with - `undefined` in mappings, #571. -- `dump()` with `skipInvalid=true` now serializes invalid items in collections as null. -- Custom tags starting with `!` are now dumped as `!tag` instead of `!`, #576. -- Custom tags starting with `tag:yaml.org,2002:` are now shorthanded using `!!`, #258. - -### Added -- Added `.mjs` (es modules) support. -- Added `quotingType` and `forceQuotes` options for dumper to configure - string literal style, #290, #529. -- Added `styles: { '!!null': 'empty' }` option for dumper - (serializes `{ foo: null }` as "`foo: `"), #570. -- Added `replacer` option (similar to option in JSON.stringify), #339. -- Custom `Tag` can now handle all tags or multiple tags with the same prefix, #385. - -### Fixed -- Astral characters are no longer encoded by `dump()`, #587. -- "duplicate mapping key" exception now points at the correct column, #452. -- Extra commas in flow collections (e.g. `[foo,,bar]`) now throw an exception - instead of producing null, #321. -- `__proto__` key no longer overrides object prototype, #164. -- Removed `bower.json`. -- Tags are now url-decoded in `load()` and url-encoded in `dump()` - (previously usage of custom non-ascii tags may have led to invalid YAML that can't be parsed). -- Anchors now work correctly with empty nodes, #301. -- Fix incorrect parsing of invalid block mapping syntax, #418. -- Throw an error if block sequence/mapping indent contains a tab, #80. - - -## [3.14.1] - 2020-12-07 -### Security -- Fix possible code execution in (already unsafe) `.load()` (in &anchor). - - -## [3.14.0] - 2020-05-22 -### Changed -- Support `safe/loadAll(input, options)` variant of call. -- CI: drop outdated nodejs versions. -- Dev deps bump. - -### Fixed -- Quote `=` in plain scalars #519. -- Check the node type for `!` tag in case user manually specifies it. -- Verify that there are no null-bytes in input. -- Fix wrong quote position when writing condensed flow, #526. - - -## [3.13.1] - 2019-04-05 -### Security -- Fix possible code execution in (already unsafe) `.load()`, #480. - - -## [3.13.0] - 2019-03-20 -### Security -- Security fix: `safeLoad()` can hang when arrays with nested refs - used as key. Now throws exception for nested arrays. #475. - - -## [3.12.2] - 2019-02-26 -### Fixed -- Fix `noArrayIndent` option for root level, #468. - - -## [3.12.1] - 2019-01-05 -### Added -- Added `noArrayIndent` option, #432. - - -## [3.12.0] - 2018-06-02 -### Changed -- Support arrow functions without a block statement, #421. - - -## [3.11.0] - 2018-03-05 -### Added -- Add arrow functions suport for `!!js/function`. - -### Fixed -- Fix dump in bin/octal/hex formats for negative integers, #399. - - -## [3.10.0] - 2017-09-10 -### Fixed -- Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370. -- Dump astrals as codepoints instead of surrogate pair, #368. - - -## [3.9.1] - 2017-07-08 -### Fixed -- Ensure stack is present for custom errors in node 7.+, #351. - - -## [3.9.0] - 2017-07-08 -### Added -- Add `condenseFlow` option (to create pretty URL query params), #346. - -### Fixed -- Support array return from safeLoadAll/loadAll, #350. - - -## [3.8.4] - 2017-05-08 -### Fixed -- Dumper: prevent space after dash for arrays that wrap, #343. - - -## [3.8.3] - 2017-04-05 -### Fixed -- Should not allow numbers to begin and end with underscore, #335. - - -## [3.8.2] - 2017-03-02 -### Fixed -- Fix `!!float 123` (integers) parse, #333. -- Don't allow leading zeros in floats (except 0, 0.xxx). -- Allow positive exponent without sign in floats. - - -## [3.8.1] - 2017-02-07 -### Changed -- Maintenance: update browserified build. - - -## [3.8.0] - 2017-02-07 -### Fixed -- Fix reported position for `duplicated mapping key` errors. - Now points to block start instead of block end. - (#243, thanks to @shockey). - - -## [3.7.0] - 2016-11-12 -### Added -- Support polymorphism for tags (#300, thanks to @monken). - -### Fixed -- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage). - - -## [3.6.1] - 2016-05-11 -### Fixed -- Fix output cut on a pipe, #286. - - -## [3.6.0] - 2016-04-16 -### Fixed -- Dumper rewrite, fix multiple bugs with trailing `\n`. - Big thanks to @aepsilon! -- Loader: fix leading/trailing newlines in block scalars, @aepsilon. - - -## [3.5.5] - 2016-03-17 -### Fixed -- Date parse fix: don't allow dates with on digit in month and day, #268. - - -## [3.5.4] - 2016-03-09 -### Added -- `noCompatMode` for dumper, to disable quoting YAML 1.1 values. - - -## [3.5.3] - 2016-02-11 -### Changed -- Maintenance release. - - -## [3.5.2] - 2016-01-11 -### Changed -- Maintenance: missed comma in bower config. - - -## [3.5.1] - 2016-01-11 -### Changed -- Removed `inherit` dependency, #239. -- Better browserify workaround for esprima load. -- Demo rewrite. - - -## [3.5.0] - 2016-01-10 -### Fixed -- Dumper. Fold strings only, #217. -- Dumper. `norefs` option, to clone linked objects, #229. -- Loader. Throw a warning for duplicate keys, #166. -- Improved browserify support (mark `esprima` & `Buffer` excluded). - - -## [3.4.6] - 2015-11-26 -### Changed -- Use standalone `inherit` to keep browserified files clear. - - -## [3.4.5] - 2015-11-23 -### Added -- Added `lineWidth` option to dumper. - - -## [3.4.4] - 2015-11-21 -### Fixed -- Fixed floats dump (missed dot for scientific format), #220. -- Allow non-printable characters inside quoted scalars, #192. - - -## [3.4.3] - 2015-10-10 -### Changed -- Maintenance release - deps bump (esprima, argparse). - - -## [3.4.2] - 2015-09-09 -### Fixed -- Fixed serialization of duplicated entries in sequences, #205. - Thanks to @vogelsgesang. - - -## [3.4.1] - 2015-09-05 -### Fixed -- Fixed stacktrace handling in generated errors, for browsers (FF/IE). - - -## [3.4.0] - 2015-08-23 -### Changed -- Don't throw on warnings anymore. Use `onWarning` option to catch. -- Throw error on unknown tags (was warning before). -- Reworked internals of error class. - -### Fixed -- Fixed multiline keys dump, #197. Thanks to @tcr. -- Fixed heading line breaks in some scalars (regression). - - -## [3.3.1] - 2015-05-13 -### Added -- Added `.sortKeys` dumper option, thanks to @rjmunro. - -### Fixed -- Fixed astral characters support, #191. - - -## [3.3.0] - 2015-04-26 -### Changed -- Significantly improved long strings formatting in dumper, thanks to @isaacs. -- Strip BOM if exists. - - -## [3.2.7] - 2015-02-19 -### Changed -- Maintenance release. -- Updated dependencies. -- HISTORY.md -> CHANGELOG.md - - -## [3.2.6] - 2015-02-07 -### Fixed -- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE). -- Fixed demo dates dump (#113, thanks to @Hypercubed). - - -## [3.2.5] - 2014-12-28 -### Fixed -- Fixed resolving of all built-in types on empty nodes. -- Fixed invalid warning on empty lines within quoted scalars and flow collections. -- Fixed bug: Tag on an empty node didn't resolve in some cases. - - -## [3.2.4] - 2014-12-19 -### Fixed -- Fixed resolving of !!null tag on an empty node. - - -## [3.2.3] - 2014-11-08 -### Fixed -- Implemented dumping of objects with circular and cross references. -- Partially fixed aliasing of constructed objects. (see issue #141 for details) - - -## [3.2.2] - 2014-09-07 -### Fixed -- Fixed infinite loop on unindented block scalars. -- Rewritten base64 encode/decode in binary type, to keep code licence clear. - - -## [3.2.1] - 2014-08-24 -### Fixed -- Nothig new. Just fix npm publish error. - - -## [3.2.0] - 2014-08-24 -### Added -- Added input piping support to CLI. - -### Fixed -- Fixed typo, that could cause hand on initial indent (#139). - - -## [3.1.0] - 2014-07-07 -### Changed -- 1.5x-2x speed boost. -- Removed deprecated `require('xxx.yml')` support. -- Significant code cleanup and refactoring. -- Internal API changed. If you used custom types - see updated examples. - Others are not affected. -- Even if the input string has no trailing line break character, - it will be parsed as if it has one. -- Added benchmark scripts. -- Moved bower files to /dist folder -- Bugfixes. - - -## [3.0.2] - 2014-02-27 -### Fixed -- Fixed bug: "constructor" string parsed as `null`. - - -## [3.0.1] - 2013-12-22 -### Fixed -- Fixed parsing of literal scalars. (issue #108) -- Prevented adding unnecessary spaces in object dumps. (issue #68) -- Fixed dumping of objects with very long (> 1024 in length) keys. - - -## [3.0.0] - 2013-12-16 -### Changed -- Refactored code. Changed API for custom types. -- Removed output colors in CLI, dump json by default. -- Removed big dependencies from browser version (esprima, buffer). Load `esprima` manually, if `!!js/function` needed. `!!bin` now returns Array in browser -- AMD support. -- Don't quote dumped strings because of `-` & `?` (if not first char). -- __Deprecated__ loading yaml files via `require()`, as not recommended - behaviour for node. - - -## [2.1.3] - 2013-10-16 -### Fixed -- Fix wrong loading of empty block scalars. - - -## [2.1.2] - 2013-10-07 -### Fixed -- Fix unwanted line breaks in folded scalars. - - -## [2.1.1] - 2013-10-02 -### Fixed -- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1 -- Fixed reader bug in JSON-like sequences/mappings. - - -## [2.1.0] - 2013-06-05 -### Added -- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`), - JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`). -- Add `skipInvalid` dumper option. - -### Changed -- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA` - and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`. -- Use `safeLoad` for `require` extension. - -### Fixed -- Bug fix: export `NIL` constant from the public interface. - - -## [2.0.5] - 2013-04-26 -### Security -- Close security issue in !!js/function constructor. - Big thanks to @nealpoole for security audit. - - -## [2.0.4] - 2013-04-08 -### Changed -- Updated .npmignore to reduce package size - - -## [2.0.3] - 2013-02-26 -### Fixed -- Fixed dumping of empty arrays ans objects. ([] and {} instead of null) - - -## [2.0.2] - 2013-02-15 -### Fixed -- Fixed input validation: tabs are printable characters. - - -## [2.0.1] - 2013-02-09 -### Fixed -- Fixed error, when options not passed to function cass - - -## [2.0.0] - 2013-02-09 -### Changed -- Full rewrite. New architecture. Fast one-stage parsing. -- Changed custom types API. -- Added YAML dumper. - - -## [1.0.3] - 2012-11-05 -### Fixed -- Fixed utf-8 files loading. - - -## [1.0.2] - 2012-08-02 -### Fixed -- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44. -- Fix timstamps incorectly parsed in local time when no time part specified. - - -## [1.0.1] - 2012-07-07 -### Fixed -- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong. -- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46. - - -## [1.0.0] - 2012-07-01 -### Changed -- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore. - Fixes #42. -- `require(filename)` now returns a single document and throws an Error if - file contains more than one document. -- CLI was merged back from js-yaml.bin - - -## [0.3.7] - 2012-02-28 -### Fixed -- Fix export of `addConstructor()`. Closes #39. - - -## [0.3.6] - 2012-02-22 -### Changed -- Removed AMD parts - too buggy to use. Need help to rewrite from scratch - -### Fixed -- Removed YUI compressor warning (renamed `double` variable). Closes #40. - - -## [0.3.5] - 2012-01-10 -### Fixed -- Workagound for .npmignore fuckup under windows. Thanks to airportyh. - - -## [0.3.4] - 2011-12-24 -### Fixed -- Fixes str[] for oldIEs support. -- Adds better has change support for browserified demo. -- improves compact output of Error. Closes #33. - - -## [0.3.3] - 2011-12-20 -### Added -- adds `compact` stringification of Errors. - -### Changed -- jsyaml executable moved to separate module. - - -## [0.3.2] - 2011-12-16 -### Added -- Added jsyaml executable. -- Added !!js/function support. Closes #12. - -### Fixed -- Fixes ug with block style scalars. Closes #26. -- All sources are passing JSLint now. -- Fixes bug in Safari. Closes #28. -- Fixes bug in Opers. Closes #29. -- Improves browser support. Closes #20. - - -## [0.3.1] - 2011-11-18 -### Added -- Added AMD support for browserified version. -- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol. -- Added !!js/regexp and !!js/undefined types. Partially solves #12. - -### Changed -- Wrapped browserified js-yaml into closure. - -### Fixed -- Fixed the resolvement of non-specific tags. Closes #17. -- Fixed !!set mapping. -- Fixed month parse in dates. Closes #19. - - -## [0.3.0] - 2011-11-09 -### Added -- Added browserified version. Closes #13. -- Added live demo of browserified version. -- Ported some of the PyYAML tests. See #14. - -### Fixed -- Removed JS.Class dependency. Closes #3. -- Fixed timestamp bug when fraction was given. - - -## [0.2.2] - 2011-11-06 -### Fixed -- Fixed crash on docs without ---. Closes #8. -- Fixed multiline string parse -- Fixed tests/comments for using array as key - - -## [0.2.1] - 2011-11-02 -### Fixed -- Fixed short file read (<4k). Closes #9. - - -## [0.2.0] - 2011-11-02 -### Changed -- First public release - - -[4.1.0]: https://github.com/nodeca/js-yaml/compare/4.0.0...4.1.0 -[4.0.0]: https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0 -[3.14.0]: https://github.com/nodeca/js-yaml/compare/3.13.1...3.14.0 -[3.13.1]: https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1 -[3.13.0]: https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.0 -[3.12.2]: https://github.com/nodeca/js-yaml/compare/3.12.1...3.12.2 -[3.12.1]: https://github.com/nodeca/js-yaml/compare/3.12.0...3.12.1 -[3.12.0]: https://github.com/nodeca/js-yaml/compare/3.11.0...3.12.0 -[3.11.0]: https://github.com/nodeca/js-yaml/compare/3.10.0...3.11.0 -[3.10.0]: https://github.com/nodeca/js-yaml/compare/3.9.1...3.10.0 -[3.9.1]: https://github.com/nodeca/js-yaml/compare/3.9.0...3.9.1 -[3.9.0]: https://github.com/nodeca/js-yaml/compare/3.8.4...3.9.0 -[3.8.4]: https://github.com/nodeca/js-yaml/compare/3.8.3...3.8.4 -[3.8.3]: https://github.com/nodeca/js-yaml/compare/3.8.2...3.8.3 -[3.8.2]: https://github.com/nodeca/js-yaml/compare/3.8.1...3.8.2 -[3.8.1]: https://github.com/nodeca/js-yaml/compare/3.8.0...3.8.1 -[3.8.0]: https://github.com/nodeca/js-yaml/compare/3.7.0...3.8.0 -[3.7.0]: https://github.com/nodeca/js-yaml/compare/3.6.1...3.7.0 -[3.6.1]: https://github.com/nodeca/js-yaml/compare/3.6.0...3.6.1 -[3.6.0]: https://github.com/nodeca/js-yaml/compare/3.5.5...3.6.0 -[3.5.5]: https://github.com/nodeca/js-yaml/compare/3.5.4...3.5.5 -[3.5.4]: https://github.com/nodeca/js-yaml/compare/3.5.3...3.5.4 -[3.5.3]: https://github.com/nodeca/js-yaml/compare/3.5.2...3.5.3 -[3.5.2]: https://github.com/nodeca/js-yaml/compare/3.5.1...3.5.2 -[3.5.1]: https://github.com/nodeca/js-yaml/compare/3.5.0...3.5.1 -[3.5.0]: https://github.com/nodeca/js-yaml/compare/3.4.6...3.5.0 -[3.4.6]: https://github.com/nodeca/js-yaml/compare/3.4.5...3.4.6 -[3.4.5]: https://github.com/nodeca/js-yaml/compare/3.4.4...3.4.5 -[3.4.4]: https://github.com/nodeca/js-yaml/compare/3.4.3...3.4.4 -[3.4.3]: https://github.com/nodeca/js-yaml/compare/3.4.2...3.4.3 -[3.4.2]: https://github.com/nodeca/js-yaml/compare/3.4.1...3.4.2 -[3.4.1]: https://github.com/nodeca/js-yaml/compare/3.4.0...3.4.1 -[3.4.0]: https://github.com/nodeca/js-yaml/compare/3.3.1...3.4.0 -[3.3.1]: https://github.com/nodeca/js-yaml/compare/3.3.0...3.3.1 -[3.3.0]: https://github.com/nodeca/js-yaml/compare/3.2.7...3.3.0 -[3.2.7]: https://github.com/nodeca/js-yaml/compare/3.2.6...3.2.7 -[3.2.6]: https://github.com/nodeca/js-yaml/compare/3.2.5...3.2.6 -[3.2.5]: https://github.com/nodeca/js-yaml/compare/3.2.4...3.2.5 -[3.2.4]: https://github.com/nodeca/js-yaml/compare/3.2.3...3.2.4 -[3.2.3]: https://github.com/nodeca/js-yaml/compare/3.2.2...3.2.3 -[3.2.2]: https://github.com/nodeca/js-yaml/compare/3.2.1...3.2.2 -[3.2.1]: https://github.com/nodeca/js-yaml/compare/3.2.0...3.2.1 -[3.2.0]: https://github.com/nodeca/js-yaml/compare/3.1.0...3.2.0 -[3.1.0]: https://github.com/nodeca/js-yaml/compare/3.0.2...3.1.0 -[3.0.2]: https://github.com/nodeca/js-yaml/compare/3.0.1...3.0.2 -[3.0.1]: https://github.com/nodeca/js-yaml/compare/3.0.0...3.0.1 -[3.0.0]: https://github.com/nodeca/js-yaml/compare/2.1.3...3.0.0 -[2.1.3]: https://github.com/nodeca/js-yaml/compare/2.1.2...2.1.3 -[2.1.2]: https://github.com/nodeca/js-yaml/compare/2.1.1...2.1.2 -[2.1.1]: https://github.com/nodeca/js-yaml/compare/2.1.0...2.1.1 -[2.1.0]: https://github.com/nodeca/js-yaml/compare/2.0.5...2.1.0 -[2.0.5]: https://github.com/nodeca/js-yaml/compare/2.0.4...2.0.5 -[2.0.4]: https://github.com/nodeca/js-yaml/compare/2.0.3...2.0.4 -[2.0.3]: https://github.com/nodeca/js-yaml/compare/2.0.2...2.0.3 -[2.0.2]: https://github.com/nodeca/js-yaml/compare/2.0.1...2.0.2 -[2.0.1]: https://github.com/nodeca/js-yaml/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/js-yaml/compare/1.0.3...2.0.0 -[1.0.3]: https://github.com/nodeca/js-yaml/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/js-yaml/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/js-yaml/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/js-yaml/compare/0.3.7...1.0.0 -[0.3.7]: https://github.com/nodeca/js-yaml/compare/0.3.6...0.3.7 -[0.3.6]: https://github.com/nodeca/js-yaml/compare/0.3.5...0.3.6 -[0.3.5]: https://github.com/nodeca/js-yaml/compare/0.3.4...0.3.5 -[0.3.4]: https://github.com/nodeca/js-yaml/compare/0.3.3...0.3.4 -[0.3.3]: https://github.com/nodeca/js-yaml/compare/0.3.2...0.3.3 -[0.3.2]: https://github.com/nodeca/js-yaml/compare/0.3.1...0.3.2 -[0.3.1]: https://github.com/nodeca/js-yaml/compare/0.3.0...0.3.1 -[0.3.0]: https://github.com/nodeca/js-yaml/compare/0.2.2...0.3.0 -[0.2.2]: https://github.com/nodeca/js-yaml/compare/0.2.1...0.2.2 -[0.2.1]: https://github.com/nodeca/js-yaml/compare/0.2.0...0.2.1 -[0.2.0]: https://github.com/nodeca/js-yaml/releases/tag/0.2.0 diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/LICENSE b/node_modules/eslint-plugin-github/node_modules/js-yaml/LICENSE deleted file mode 100644 index 09d3a29e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -(The MIT License) - -Copyright (C) 2011-2015 by Vitaly Puzrin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/README.md b/node_modules/eslint-plugin-github/node_modules/js-yaml/README.md deleted file mode 100644 index 3cbc4bd2..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/README.md +++ /dev/null @@ -1,246 +0,0 @@ -JS-YAML - YAML 1.2 parser / writer for JavaScript -================================================= - -[![CI](https://github.com/nodeca/js-yaml/workflows/CI/badge.svg?branch=master)](https://github.com/nodeca/js-yaml/actions) -[![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml) - -__[Online Demo](http://nodeca.github.com/js-yaml/)__ - - -This is an implementation of [YAML](http://yaml.org/), a human-friendly data -serialization language. Started as [PyYAML](http://pyyaml.org/) port, it was -completely rewritten from scratch. Now it's very fast, and supports 1.2 spec. - - -Installation ------------- - -### YAML module for node.js - -``` -npm install js-yaml -``` - - -### CLI executable - -If you want to inspect your YAML files from CLI, install js-yaml globally: - -``` -npm install -g js-yaml -``` - -#### Usage - -``` -usage: js-yaml [-h] [-v] [-c] [-t] file - -Positional arguments: - file File with YAML document(s) - -Optional arguments: - -h, --help Show this help message and exit. - -v, --version Show program's version number and exit. - -c, --compact Display errors in compact mode - -t, --trace Show stack trace on error -``` - - -API ---- - -Here we cover the most 'useful' methods. If you need advanced details (creating -your own tags), see [examples](https://github.com/nodeca/js-yaml/tree/master/examples) -for more info. - -``` javascript -const yaml = require('js-yaml'); -const fs = require('fs'); - -// Get document, or throw exception on error -try { - const doc = yaml.load(fs.readFileSync('/home/ixti/example.yml', 'utf8')); - console.log(doc); -} catch (e) { - console.log(e); -} -``` - - -### load (string [ , options ]) - -Parses `string` as single YAML document. Returns either a -plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does -not support regexps, functions and undefined. - -options: - -- `filename` _(default: null)_ - string to be used as a file path in - error/warning messages. -- `onWarning` _(default: null)_ - function to call on warning messages. - Loader will call this function with an instance of `YAMLException` for each warning. -- `schema` _(default: `DEFAULT_SCHEMA`)_ - specifies a schema to use. - - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects: - http://www.yaml.org/spec/1.2/spec.html#id2802346 - - `JSON_SCHEMA` - all JSON-supported types: - http://www.yaml.org/spec/1.2/spec.html#id2803231 - - `CORE_SCHEMA` - same as `JSON_SCHEMA`: - http://www.yaml.org/spec/1.2/spec.html#id2804923 - - `DEFAULT_SCHEMA` - all supported YAML types. -- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error. - -NOTE: This function **does not** understand multi-document sources, it throws -exception on those. - -NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions. -So, the JSON schema is not as strictly defined in the YAML specification. -It allows numbers in any notation, use `Null` and `NULL` as `null`, etc. -The core schema also has no such restrictions. It allows binary notation for integers. - - -### loadAll (string [, iterator] [, options ]) - -Same as `load()`, but understands multi-document sources. Applies -`iterator` to each document if specified, or returns array of documents. - -``` javascript -const yaml = require('js-yaml'); - -yaml.loadAll(data, function (doc) { - console.log(doc); -}); -``` - - -### dump (object [ , options ]) - -Serializes `object` as a YAML document. Uses `DEFAULT_SCHEMA`, so it will -throw an exception if you try to dump regexps or functions. However, you can -disable exceptions by setting the `skipInvalid` option to `true`. - -options: - -- `indent` _(default: 2)_ - indentation width to use (in spaces). -- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements -- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function - in the safe schema) and skip pairs and single values with such types. -- `flowLevel` _(default: -1)_ - specifies level of nesting, when to switch from - block to flow style for collections. -1 means block style everwhere -- `styles` - "tag" => "style" map. Each tag may have own set of styles. -- `schema` _(default: `DEFAULT_SCHEMA`)_ specifies a schema to use. -- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a - function, use the function to sort the keys. -- `lineWidth` _(default: `80`)_ - set max line width. Set `-1` for unlimited width. -- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references -- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older - yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 -- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded. -- `quotingType` _(`'` or `"`, default: `'`)_ - strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. -- `forceQuotes` _(default: `false`)_ - if `true`, all non-key strings will be quoted even if they normally don't need to. -- `replacer` - callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). - -The following table show availlable styles (e.g. "canonical", -"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml -output is shown on the right side after `=>` (default setting) or `->`: - -``` none -!!null - "canonical" -> "~" - "lowercase" => "null" - "uppercase" -> "NULL" - "camelcase" -> "Null" - -!!int - "binary" -> "0b1", "0b101010", "0b1110001111010" - "octal" -> "0o1", "0o52", "0o16172" - "decimal" => "1", "42", "7290" - "hexadecimal" -> "0x1", "0x2A", "0x1C7A" - -!!bool - "lowercase" => "true", "false" - "uppercase" -> "TRUE", "FALSE" - "camelcase" -> "True", "False" - -!!float - "lowercase" => ".nan", '.inf' - "uppercase" -> ".NAN", '.INF' - "camelcase" -> ".NaN", '.Inf' -``` - -Example: - -``` javascript -dump(object, { - 'styles': { - '!!null': 'canonical' // dump null as ~ - }, - 'sortKeys': true // sort object keys -}); -``` - -Supported YAML types --------------------- - -The list of standard YAML tags and corresponding JavaScript types. See also -[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and -[YAML types repository](http://yaml.org/type/). - -``` -!!null '' # null -!!bool 'yes' # bool -!!int '3...' # number -!!float '3.14...' # number -!!binary '...base64...' # buffer -!!timestamp 'YYYY-...' # date -!!omap [ ... ] # array of key-value pairs -!!pairs [ ... ] # array or array pairs -!!set { ... } # array of objects with given keys and null values -!!str '...' # string -!!seq [ ... ] # array -!!map { ... } # object -``` - -**JavaScript-specific tags** - -See [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) for -extra types. - - -Caveats -------- - -Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects -or arrays as keys, and stringifies (by calling `toString()` method) them at the -moment of adding them. - -``` yaml ---- -? [ foo, bar ] -: - baz -? { foo: bar } -: - baz - - baz -``` - -``` javascript -{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] } -``` - -Also, reading of properties on implicit block mapping keys is not supported yet. -So, the following YAML document cannot be loaded. - -``` yaml -&anchor foo: - foo: bar - *anchor: duplicate key - baz: bat - *anchor: duplicate key -``` - - -js-yaml for enterprise ----------------------- - -Available as part of the Tidelift Subscription - -The maintainers of js-yaml and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-js-yaml?utm_source=npm-js-yaml&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/bin/js-yaml.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/bin/js-yaml.js deleted file mode 100755 index a182f1af..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/bin/js-yaml.js +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env node - - -'use strict'; - -/*eslint-disable no-console*/ - - -var fs = require('fs'); -var argparse = require('argparse'); -var yaml = require('..'); - - -//////////////////////////////////////////////////////////////////////////////// - - -var cli = new argparse.ArgumentParser({ - prog: 'js-yaml', - add_help: true -}); - -cli.add_argument('-v', '--version', { - action: 'version', - version: require('../package.json').version -}); - -cli.add_argument('-c', '--compact', { - help: 'Display errors in compact mode', - action: 'store_true' -}); - -// deprecated (not needed after we removed output colors) -// option suppressed, but not completely removed for compatibility -cli.add_argument('-j', '--to-json', { - help: argparse.SUPPRESS, - dest: 'json', - action: 'store_true' -}); - -cli.add_argument('-t', '--trace', { - help: 'Show stack trace on error', - action: 'store_true' -}); - -cli.add_argument('file', { - help: 'File to read, utf-8 encoded without BOM', - nargs: '?', - default: '-' -}); - - -//////////////////////////////////////////////////////////////////////////////// - - -var options = cli.parse_args(); - - -//////////////////////////////////////////////////////////////////////////////// - -function readFile(filename, encoding, callback) { - if (options.file === '-') { - // read from stdin - - var chunks = []; - - process.stdin.on('data', function (chunk) { - chunks.push(chunk); - }); - - process.stdin.on('end', function () { - return callback(null, Buffer.concat(chunks).toString(encoding)); - }); - } else { - fs.readFile(filename, encoding, callback); - } -} - -readFile(options.file, 'utf8', function (error, input) { - var output, isYaml; - - if (error) { - if (error.code === 'ENOENT') { - console.error('File not found: ' + options.file); - process.exit(2); - } - - console.error( - options.trace && error.stack || - error.message || - String(error)); - - process.exit(1); - } - - try { - output = JSON.parse(input); - isYaml = false; - } catch (err) { - if (err instanceof SyntaxError) { - try { - output = []; - yaml.loadAll(input, function (doc) { output.push(doc); }, {}); - isYaml = true; - - if (output.length === 0) output = null; - else if (output.length === 1) output = output[0]; - - } catch (e) { - if (options.trace && err.stack) console.error(e.stack); - else console.error(e.toString(options.compact)); - - process.exit(1); - } - } else { - console.error( - options.trace && err.stack || - err.message || - String(err)); - - process.exit(1); - } - } - - if (isYaml) console.log(JSON.stringify(output, null, ' ')); - else console.log(yaml.dump(output)); -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.js deleted file mode 100644 index 4cc0ddf6..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.js +++ /dev/null @@ -1,3874 +0,0 @@ - -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {})); -}(this, (function (exports) { 'use strict'; - - function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); - } - - - function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); - } - - - function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; - } - - - function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; - } - - - function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; - } - - - function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); - } - - - var isNothing_1 = isNothing; - var isObject_1 = isObject; - var toArray_1 = toArray; - var repeat_1 = repeat; - var isNegativeZero_1 = isNegativeZero; - var extend_1 = extend; - - var common = { - isNothing: isNothing_1, - isObject: isObject_1, - toArray: toArray_1, - repeat: repeat_1, - isNegativeZero: isNegativeZero_1, - extend: extend_1 - }; - - // YAML error class. http://stackoverflow.com/questions/8458984 - - - function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; - } - - - function YAMLException$1(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } - } - - - // Inherit from Error - YAMLException$1.prototype = Object.create(Error.prototype); - YAMLException$1.prototype.constructor = YAMLException$1; - - - YAMLException$1.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); - }; - - - var exception = YAMLException$1; - - // get snippet for a single line, respecting maxLength - function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; - } - - - function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; - } - - - function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); - } - - - var snippet = makeSnippet; - - var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' - ]; - - var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' - ]; - - function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; - } - - function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } - } - - var type = Type$1; - - /*eslint-disable max-len*/ - - - - - - function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; - } - - - function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; - } - - - function Schema$1(definition) { - return this.extend(definition); - } - - - Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; - }; - - - var schema = Schema$1; - - var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } - }); - - var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } - }); - - var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } - }); - - var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] - }); - - function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); - } - - function constructYamlNull() { - return null; - } - - function isNull(object) { - return object === null; - } - - var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' - }); - - function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); - } - - function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; - } - - function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; - } - - var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' - }); - - function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); - } - - function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); - } - - function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); - } - - function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; - } - - function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); - } - - function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); - } - - var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } - }); - - var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - - function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; - } - - function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); - } - - - var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - - function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; - } - - function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); - } - - var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' - }); - - var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] - }); - - var core = json; - - var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - - var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - - function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; - } - - function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; - } - - function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); - } - - var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp - }); - - function resolveYamlMerge(data) { - return data === '<<' || data === null; - } - - var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge - }); - - /*eslint-disable no-bitwise*/ - - - - - - // [ 64, 65, 66 ] -> [ padding, CR, LF ] - var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - - function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; - } - - function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); - } - - function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; - } - - function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; - } - - var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary - }); - - var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; - var _toString$2 = Object.prototype.toString; - - function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; - } - - function constructYamlOmap(data) { - return data !== null ? data : []; - } - - var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap - }); - - var _toString$1 = Object.prototype.toString; - - function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; - } - - function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; - } - - var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs - }); - - var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - - function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; - } - - function constructYamlSet(data) { - return data !== null ? data : {}; - } - - var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet - }); - - var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] - }); - - /*eslint-disable max-len,no-use-before-define*/ - - - - - - - - var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - - var CONTEXT_FLOW_IN = 1; - var CONTEXT_FLOW_OUT = 2; - var CONTEXT_BLOCK_IN = 3; - var CONTEXT_BLOCK_OUT = 4; - - - var CHOMPING_CLIP = 1; - var CHOMPING_STRIP = 2; - var CHOMPING_KEEP = 3; - - - var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; - var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; - var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; - var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; - var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - - function _class(obj) { return Object.prototype.toString.call(obj); } - - function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); - } - - function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); - } - - function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); - } - - function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; - } - - function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; - } - - function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; - } - - function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; - } - - function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; - } - - function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); - } - - var simpleEscapeCheck = new Array(256); // integer, for fast access - var simpleEscapeMap = new Array(256); - for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); - } - - - function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - - } - - - function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); - } - - function throwError(state, message) { - throw generateError(state, message); - } - - function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } - } - - - var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } - }; - - - function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } - } - - function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } - } - - function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; - } - - function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; - } - - function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; - } - - function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; - } - - function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } - } - - - function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; - } - - function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); - } - - function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); - } - - function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); - } - - function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; - } - - function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; - } - - function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; - } - - function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; - } - - function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; - } - - function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; - } - - function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; - } - - function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } - } - - - function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; - } - - - function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } - } - - - function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); - } - - - var loadAll_1 = loadAll$1; - var load_1 = load$1; - - var loader = { - loadAll: loadAll_1, - load: load_1 - }; - - /*eslint-disable no-use-before-define*/ - - - - - - var _toString = Object.prototype.toString; - var _hasOwnProperty = Object.prototype.hasOwnProperty; - - var CHAR_BOM = 0xFEFF; - var CHAR_TAB = 0x09; /* Tab */ - var CHAR_LINE_FEED = 0x0A; /* LF */ - var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ - var CHAR_SPACE = 0x20; /* Space */ - var CHAR_EXCLAMATION = 0x21; /* ! */ - var CHAR_DOUBLE_QUOTE = 0x22; /* " */ - var CHAR_SHARP = 0x23; /* # */ - var CHAR_PERCENT = 0x25; /* % */ - var CHAR_AMPERSAND = 0x26; /* & */ - var CHAR_SINGLE_QUOTE = 0x27; /* ' */ - var CHAR_ASTERISK = 0x2A; /* * */ - var CHAR_COMMA = 0x2C; /* , */ - var CHAR_MINUS = 0x2D; /* - */ - var CHAR_COLON = 0x3A; /* : */ - var CHAR_EQUALS = 0x3D; /* = */ - var CHAR_GREATER_THAN = 0x3E; /* > */ - var CHAR_QUESTION = 0x3F; /* ? */ - var CHAR_COMMERCIAL_AT = 0x40; /* @ */ - var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ - var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ - var CHAR_GRAVE_ACCENT = 0x60; /* ` */ - var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ - var CHAR_VERTICAL_LINE = 0x7C; /* | */ - var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - - var ESCAPE_SEQUENCES = {}; - - ESCAPE_SEQUENCES[0x00] = '\\0'; - ESCAPE_SEQUENCES[0x07] = '\\a'; - ESCAPE_SEQUENCES[0x08] = '\\b'; - ESCAPE_SEQUENCES[0x09] = '\\t'; - ESCAPE_SEQUENCES[0x0A] = '\\n'; - ESCAPE_SEQUENCES[0x0B] = '\\v'; - ESCAPE_SEQUENCES[0x0C] = '\\f'; - ESCAPE_SEQUENCES[0x0D] = '\\r'; - ESCAPE_SEQUENCES[0x1B] = '\\e'; - ESCAPE_SEQUENCES[0x22] = '\\"'; - ESCAPE_SEQUENCES[0x5C] = '\\\\'; - ESCAPE_SEQUENCES[0x85] = '\\N'; - ESCAPE_SEQUENCES[0xA0] = '\\_'; - ESCAPE_SEQUENCES[0x2028] = '\\L'; - ESCAPE_SEQUENCES[0x2029] = '\\P'; - - var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' - ]; - - var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - - function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; - } - - function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; - } - - - var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - - function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; - } - - // Indents every line in a string. Empty lines (\n only) are not indented. - function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; - } - - function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); - } - - function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; - } - - // [33] s-white ::= s-space | s-tab - function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; - } - - // Returns true if the character can be printed without escaping. - // From YAML 1.2: "any allowed characters known to be non-printable - // should also be escaped. [However,] This isn’t mandatory" - // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. - function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); - } - - // [34] ns-char ::= nb-char - s-white - // [27] nb-char ::= c-printable - b-char - c-byte-order-mark - // [26] b-char ::= b-line-feed | b-carriage-return - // Including s-white (for some reason, examples doesn't match specs in this aspect) - // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark - function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; - } - - // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out - // c = flow-in ⇒ ns-plain-safe-in - // c = block-key ⇒ ns-plain-safe-out - // c = flow-key ⇒ ns-plain-safe-in - // [128] ns-plain-safe-out ::= ns-char - // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator - // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) - // | ( /* An ns-char preceding */ “#” ) - // | ( “:” /* Followed by an ns-plain-safe(c) */ ) - function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' - } - - // Simplified test for values allowed as the first character in plain style. - function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; - } - - // Simplified test for values allowed as the last character in plain style. - function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; - } - - // Same as 'string'.codePointAt(pos), but works in older browsers. - function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; - } - - // Determines whether block indentation indicator is required. - function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); - } - - var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - - // Determines which scalar styles are possible and returns the preferred style. - // lineWidth = -1 => no limit. - // Pre-conditions: str.length > 0. - // Post-conditions: - // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. - // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). - // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). - function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - - // Note: line breaking/folding is implemented for only the folded style. - // NB. We drop the last trailing newline (if any) of a returned block scalar - // since the dumper adds its own newline. This always works: - // • No ending newline => unaffected; already using strip "-" chomping. - // • Ending newline => removed then restored. - // Importantly, this keeps the "+" chomp indicator from gaining an extra line. - function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); - } - - // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. - function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; - } - - // (See the note for writeScalar.) - function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; - } - - // Note: a long line without a suitable break point will exceed the width limit. - // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. - function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; - } - - // Greedy line breaking. - // Picks the longest line under the limit each time, - // otherwise settles for the shortest line over the limit. - // NB. More-indented lines *cannot* be folded, as that would add an extra \n. - function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner - } - - // Escapes a double-quoted string. - function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; - } - - function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; - } - - function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. - } - - function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; - } - - function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. - } - - function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; - } - - // Serializes `object` and writes it to global `result`. - // Returns true on success, or false on invalid object. - // - function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; - } - - function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); - } - - function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } - } - - function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; - } - - var dump_1 = dump$1; - - var dumper = { - dump: dump_1 - }; - - function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; - } - - - var Type = type; - var Schema = schema; - var FAILSAFE_SCHEMA = failsafe; - var JSON_SCHEMA = json; - var CORE_SCHEMA = core; - var DEFAULT_SCHEMA = _default; - var load = loader.load; - var loadAll = loader.loadAll; - var dump = dumper.dump; - var YAMLException = exception; - - // Re-export all types in case user wants to create custom schema - var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str - }; - - // Removed functions from JS-YAML 3.0.x - var safeLoad = renamed('safeLoad', 'load'); - var safeLoadAll = renamed('safeLoadAll', 'loadAll'); - var safeDump = renamed('safeDump', 'dump'); - - var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump - }; - - exports.CORE_SCHEMA = CORE_SCHEMA; - exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA; - exports.FAILSAFE_SCHEMA = FAILSAFE_SCHEMA; - exports.JSON_SCHEMA = JSON_SCHEMA; - exports.Schema = Schema; - exports.Type = Type; - exports.YAMLException = YAMLException; - exports.default = jsYaml; - exports.dump = dump; - exports.load = load; - exports.loadAll = loadAll; - exports.safeDump = safeDump; - exports.safeLoad = safeLoad; - exports.safeLoadAll = safeLoadAll; - exports.types = types; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.min.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.min.js deleted file mode 100644 index bdd8eef5..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/dist/js-yaml.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsyaml={})}(this,(function(e){"use strict";function t(e){return null==e}var n={isNothing:t,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:t(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;nl&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return n.repeat(" ",t-e.length)+e}var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var u,p,f="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)p=a(e.buffer,o[s-u],c[s-u],e.position-(o[s]-o[s-u]),h),f=n.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,o[s],c[s],e.position,h),f+=n.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n",f+=n.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(s+u>=c.length);u++)p=a(e.buffer,o[s+u],c[s+u],e.position-(o[s]-o[s+u]),h),f+=n.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"];var p=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var I=/^[-+]?[0-9]+e/;var S=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!x.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return i=e.toString(10),I.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),O=b.extend({implicit:[A,v,C,S]}),j=O,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var F=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==T.exec(e)||null!==N.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=T.exec(e))&&(t=N.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var E=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var L=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=M;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,l=[];for(t=0;t>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=M;for(t=0;t>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),_=Object.prototype.hasOwnProperty,D=Object.prototype.toString;var U=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t>10),56320+(e-65536&1023))}for(var ie=new Array(256),re=new Array(256),oe=0;oe<256;oe++)ie[oe]=te(oe)?1:0,re[oe]=te(oe);function ae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function ce(e,t){throw le(e,t)}function se(e,t){e.onWarning&&e.onWarning.call(null,le(e,t))}var ue={YAML:function(e,t,n){var i,r,o;null!==e.version&&ce(e,"duplication of %YAML directive"),1!==n.length&&ce(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ce(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&ce(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&se(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&ce(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],G.test(i)||ce(e,"ill-formed tag handle (first argument) of the TAG directive"),P.call(e.tagMap,i)&&ce(e,'there is a previously declared suffix for "'+i+'" tag handle'),V.test(r)||ce(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){ce(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function pe(e,t,n,i){var r,o,a,l;if(t1&&(e.result+=n.repeat("\n",t-1))}function be(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),45===i)&&z(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,ge(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,we(e,t,3,!1,!0),a.push(e.result),ge(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)ce(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(y&&(a=e.line,l=e.lineStart,c=e.position),we(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(de(e,f,d,h,g,m,a,l,c),h=g=m=null),ge(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ce(e,"repeat of an indentation width identifier"):(p=t+o-1,u=!0)}if(Q(a)){do{a=e.input.charCodeAt(++e.position)}while(Q(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!J(a)&&0!==a)}for(;0!==a;){for(he(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndentp&&(p=e.lineIndent),J(a))f++;else{if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=ee(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ce(e,"expected hexadecimal character");e.result+=ne(o),e.position++}else ce(e,"unknown escape sequence");n=i=e.position}else J(l)?(pe(e,n,i,!0),ye(e,ge(e,!1,t)),n=i=e.position):e.position===e.lineStart&&me(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!z(i)&&!X(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ce(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ge(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(z(u=e.input.charCodeAt(e.position))||X(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(z(i=e.input.charCodeAt(e.position+1))||n&&X(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(z(i=e.input.charCodeAt(e.position+1))||n&&X(i))break}else if(35===u){if(z(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&me(e)||n&&X(u))break;if(J(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,ge(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(pe(e,r,o,!1),ye(e,e.line-l),r=o=e.position,a=!1),Q(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return pe(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||ce(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&be(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ce(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s"),null!==e.result&&f.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function ke(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(ge(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&ce(e,"directive name must not be less than one character in length");0!==r;){for(;Q(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!J(r));break}if(J(r))break;for(t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&he(e),P.call(ue,n)?ue[n](e,n,i):se(e,'unknown document directive "'+n+'"')}ge(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ge(e,!0,-1)):a&&ce(e,"directives end mark is expected"),we(e,e.lineIndent-1,4,!1,!0),ge(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(o,e.position))&&se(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&me(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ge(e,!0,-1)):e.position=55296&&i<=56319&&t+1=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Re(e){return/^\n* /.test(e)}function Be(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=De(s=Ye(e,0))&&s!==Oe&&!_e(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!_e(e)&&58!==e}(Ye(e,e.length-1));if(t||a)for(c=0;c=65536?c+=2:c++){if(!De(u=Ye(e,c)))return 5;m=m&&qe(u,p,l),p=u}else{for(c=0;c=65536?c+=2:c++){if(10===(u=Ye(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!De(u))return 5;m=m&&qe(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&Re(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function Ke(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Te.indexOf(t)||Ne.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Be(t,c,e.indent,l,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Pe(t,e.indent)+We(Me(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,He(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+He(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r=65536?r+=2:r++)i=Ye(e,r),!(t=je[i])&&De(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Fe(i);return n}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Pe(e,t){var n=Re(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function We(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function He(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function $e(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function Ve(e,t,n,i,r,a,l){e.tag=null,e.dump=n,Ge(e,n,!1)||Ge(e,n,!0);var c,s=Ie.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=Le(e,t)),Ve(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ve(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?$e(e,t-1,e.dump,r):$e(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i",e.dump=c+" "+e.dump)}return!0}function Ze(e,t){var n,i,r=[],o=[];for(Je(e,r,o),n=0,i=o.length;n maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -var snippet = makeSnippet; - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -var type = Type$1; - -/*eslint-disable max-len*/ - - - - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema$1(definition) { - return this.extend(definition); -} - - -Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -var schema = Schema$1; - -var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); - -var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); - -var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); - -var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] -}); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); - -var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] -}); - -var core = json; - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); - -/*eslint-disable no-bitwise*/ - - - - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); - -var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; -var _toString$2 = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); - -var _toString$1 = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); - -var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); - -var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] -}); - -/*eslint-disable max-len,no-use-before-define*/ - - - - - - - -var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); -} - - -var loadAll_1 = loadAll$1; -var load_1 = load$1; - -var loader = { - loadAll: loadAll_1, - load: load_1 -}; - -/*eslint-disable no-use-before-define*/ - - - - - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -var dump_1 = dump$1; - -var dumper = { - dump: dump_1 -}; - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -var Type = type; -var Schema = schema; -var FAILSAFE_SCHEMA = failsafe; -var JSON_SCHEMA = json; -var CORE_SCHEMA = core; -var DEFAULT_SCHEMA = _default; -var load = loader.load; -var loadAll = loader.loadAll; -var dump = dumper.dump; -var YAMLException = exception; - -// Re-export all types in case user wants to create custom schema -var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str -}; - -// Removed functions from JS-YAML 3.0.x -var safeLoad = renamed('safeLoad', 'load'); -var safeLoadAll = renamed('safeLoadAll', 'loadAll'); -var safeDump = renamed('safeDump', 'dump'); - -var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump -}; - -export default jsYaml; -export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types }; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/index.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/index.js deleted file mode 100644 index bcb7eba7..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - - -var loader = require('./lib/loader'); -var dumper = require('./lib/dumper'); - - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -module.exports.Type = require('./lib/type'); -module.exports.Schema = require('./lib/schema'); -module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe'); -module.exports.JSON_SCHEMA = require('./lib/schema/json'); -module.exports.CORE_SCHEMA = require('./lib/schema/core'); -module.exports.DEFAULT_SCHEMA = require('./lib/schema/default'); -module.exports.load = loader.load; -module.exports.loadAll = loader.loadAll; -module.exports.dump = dumper.dump; -module.exports.YAMLException = require('./lib/exception'); - -// Re-export all types in case user wants to create custom schema -module.exports.types = { - binary: require('./lib/type/binary'), - float: require('./lib/type/float'), - map: require('./lib/type/map'), - null: require('./lib/type/null'), - pairs: require('./lib/type/pairs'), - set: require('./lib/type/set'), - timestamp: require('./lib/type/timestamp'), - bool: require('./lib/type/bool'), - int: require('./lib/type/int'), - merge: require('./lib/type/merge'), - omap: require('./lib/type/omap'), - seq: require('./lib/type/seq'), - str: require('./lib/type/str') -}; - -// Removed functions from JS-YAML 3.0.x -module.exports.safeLoad = renamed('safeLoad', 'load'); -module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); -module.exports.safeDump = renamed('safeDump', 'dump'); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/common.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/common.js deleted file mode 100644 index 25ef7d8e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/common.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - - -function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); -} - - -function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); -} - - -function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; -} - - -function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; -} - - -function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; -} - - -function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); -} - - -module.exports.isNothing = isNothing; -module.exports.isObject = isObject; -module.exports.toArray = toArray; -module.exports.repeat = repeat; -module.exports.isNegativeZero = isNegativeZero; -module.exports.extend = extend; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/dumper.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/dumper.js deleted file mode 100644 index f357a6ae..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/dumper.js +++ /dev/null @@ -1,965 +0,0 @@ -'use strict'; - -/*eslint-disable no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var DEFAULT_SCHEMA = require('./schema/default'); - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string, lineWidth) + '"'; - default: - throw new YAMLException('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new YAMLException('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new YAMLException('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -module.exports.dump = dump; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/exception.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/exception.js deleted file mode 100644 index 7f62daae..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/exception.js +++ /dev/null @@ -1,55 +0,0 @@ -// YAML error class. http://stackoverflow.com/questions/8458984 -// -'use strict'; - - -function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; -} - - -function YAMLException(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } -} - - -// Inherit from Error -YAMLException.prototype = Object.create(Error.prototype); -YAMLException.prototype.constructor = YAMLException; - - -YAMLException.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); -}; - - -module.exports = YAMLException; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/loader.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/loader.js deleted file mode 100644 index 39f13f56..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/loader.js +++ /dev/null @@ -1,1727 +0,0 @@ -'use strict'; - -/*eslint-disable max-len,no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var makeSnippet = require('./snippet'); -var DEFAULT_SCHEMA = require('./schema/default'); - - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = makeSnippet(mark); - - return new YAMLException(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty.call(overridableKeys, keyNode) && - _hasOwnProperty.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new YAMLException('expected a single document in the stream, but found more'); -} - - -module.exports.loadAll = loadAll; -module.exports.load = load; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema.js deleted file mode 100644 index 65b41f40..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -/*eslint-disable max-len*/ - -var YAMLException = require('./exception'); -var Type = require('./type'); - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema(definition) { - return this.extend(definition); -} - - -Schema.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof Type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type.loadKind && type.loadKind !== 'scalar') { - throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type.multi) { - throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -module.exports = Schema; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/core.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/core.js deleted file mode 100644 index 608b26de..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/core.js +++ /dev/null @@ -1,11 +0,0 @@ -// Standard YAML's Core schema. -// http://www.yaml.org/spec/1.2/spec.html#id2804923 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, Core schema has no distinctions from JSON schema is JS-YAML. - - -'use strict'; - - -module.exports = require('./json'); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/default.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/default.js deleted file mode 100644 index 3af0520d..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/default.js +++ /dev/null @@ -1,22 +0,0 @@ -// JS-YAML's default schema for `safeLoad` function. -// It is not described in the YAML specification. -// -// This schema is based on standard YAML's Core schema and includes most of -// extra types described at YAML tag repository. (http://yaml.org/type/) - - -'use strict'; - - -module.exports = require('./core').extend({ - implicit: [ - require('../type/timestamp'), - require('../type/merge') - ], - explicit: [ - require('../type/binary'), - require('../type/omap'), - require('../type/pairs'), - require('../type/set') - ] -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/failsafe.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/failsafe.js deleted file mode 100644 index b7a33eb7..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/failsafe.js +++ /dev/null @@ -1,17 +0,0 @@ -// Standard YAML's Failsafe schema. -// http://www.yaml.org/spec/1.2/spec.html#id2802346 - - -'use strict'; - - -var Schema = require('../schema'); - - -module.exports = new Schema({ - explicit: [ - require('../type/str'), - require('../type/seq'), - require('../type/map') - ] -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/json.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/json.js deleted file mode 100644 index b73df78e..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/schema/json.js +++ /dev/null @@ -1,19 +0,0 @@ -// Standard YAML's JSON schema. -// http://www.yaml.org/spec/1.2/spec.html#id2803231 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. - - -'use strict'; - - -module.exports = require('./failsafe').extend({ - implicit: [ - require('../type/null'), - require('../type/bool'), - require('../type/int'), - require('../type/float') - ] -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/snippet.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/snippet.js deleted file mode 100644 index 00e2133c..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/snippet.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - - -var common = require('./common'); - - -// get snippet for a single line, respecting maxLength -function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -module.exports = makeSnippet; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type.js deleted file mode 100644 index 5e57877f..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; - -var YAMLException = require('./exception'); - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -module.exports = Type; diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/binary.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/binary.js deleted file mode 100644 index e1523513..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/binary.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -/*eslint-disable no-bitwise*/ - - -var Type = require('../type'); - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -module.exports = new Type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/bool.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/bool.js deleted file mode 100644 index cb774593..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/bool.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -module.exports = new Type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/float.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/float.js deleted file mode 100644 index 74d77ec2..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/float.js +++ /dev/null @@ -1,97 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/int.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/int.js deleted file mode 100644 index 3fe3a443..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/int.js +++ /dev/null @@ -1,156 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/map.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/map.js deleted file mode 100644 index f327beeb..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/map.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/merge.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/merge.js deleted file mode 100644 index ae08a864..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/merge.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -module.exports = new Type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/null.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/null.js deleted file mode 100644 index 315ca4e2..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/null.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -module.exports = new Type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/omap.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/omap.js deleted file mode 100644 index b2b5323b..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/omap.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; -var _toString = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -module.exports = new Type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/pairs.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/pairs.js deleted file mode 100644 index 74b52403..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/pairs.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _toString = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -module.exports = new Type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/seq.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/seq.js deleted file mode 100644 index be8f77f2..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/seq.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/set.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/set.js deleted file mode 100644 index f885a329..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/set.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -module.exports = new Type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/str.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/str.js deleted file mode 100644 index 27acc106..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/str.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/timestamp.js b/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/timestamp.js deleted file mode 100644 index 8fa9c586..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/lib/type/timestamp.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -module.exports = new Type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); diff --git a/node_modules/eslint-plugin-github/node_modules/js-yaml/package.json b/node_modules/eslint-plugin-github/node_modules/js-yaml/package.json deleted file mode 100644 index 17574da8..00000000 --- a/node_modules/eslint-plugin-github/node_modules/js-yaml/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "js-yaml", - "version": "4.1.0", - "description": "YAML 1.2 parser and serializer", - "keywords": [ - "yaml", - "parser", - "serializer", - "pyyaml" - ], - "author": "Vladimir Zapparov ", - "contributors": [ - "Aleksey V Zapparov (http://www.ixti.net/)", - "Vitaly Puzrin (https://github.com/puzrin)", - "Martin Grenfell (http://got-ravings.blogspot.com)" - ], - "license": "MIT", - "repository": "nodeca/js-yaml", - "files": [ - "index.js", - "lib/", - "bin/", - "dist/" - ], - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "module": "./dist/js-yaml.mjs", - "exports": { - ".": { - "import": "./dist/js-yaml.mjs", - "require": "./index.js" - }, - "./package.json": "./package.json" - }, - "scripts": { - "lint": "eslint .", - "test": "npm run lint && mocha", - "coverage": "npm run lint && nyc mocha && nyc report --reporter html", - "demo": "npm run lint && node support/build_demo.js", - "gh-demo": "npm run demo && gh-pages -d demo -f", - "browserify": "rollup -c support/rollup.config.js", - "prepublishOnly": "npm run gh-demo" - }, - "unpkg": "dist/js-yaml.min.js", - "jsdelivr": "dist/js-yaml.min.js", - "dependencies": { - "argparse": "^2.0.1" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.0.0", - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "codemirror": "^5.13.4", - "eslint": "^7.0.0", - "fast-check": "^2.8.0", - "gh-pages": "^3.1.0", - "mocha": "^8.2.1", - "nyc": "^15.1.0", - "rollup": "^2.34.1", - "rollup-plugin-node-polyfills": "^0.2.1", - "rollup-plugin-terser": "^7.0.2", - "shelljs": "^0.8.4" - } -} diff --git a/node_modules/eslint-plugin-github/node_modules/minimatch/LICENSE b/node_modules/eslint-plugin-github/node_modules/minimatch/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/eslint-plugin-github/node_modules/minimatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/eslint-plugin-github/node_modules/minimatch/README.md b/node_modules/eslint-plugin-github/node_modules/minimatch/README.md deleted file mode 100644 index 33ede1d6..00000000 --- a/node_modules/eslint-plugin-github/node_modules/minimatch/README.md +++ /dev/null @@ -1,230 +0,0 @@ -# minimatch - -A minimal matching utility. - -[![Build Status](https://travis-ci.org/isaacs/minimatch.svg?branch=master)](http://travis-ci.org/isaacs/minimatch) - - -This is the matching library used internally by npm. - -It works by converting glob expressions into JavaScript `RegExp` -objects. - -## Usage - -```javascript -var minimatch = require("minimatch") - -minimatch("bar.foo", "*.foo") // true! -minimatch("bar.foo", "*.bar") // false! -minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy! -``` - -## Features - -Supports these glob features: - -* Brace Expansion -* Extended glob matching -* "Globstar" `**` matching - -See: - -* `man sh` -* `man bash` -* `man 3 fnmatch` -* `man 5 gitignore` - -## Minimatch Class - -Create a minimatch object by instantiating the `minimatch.Minimatch` class. - -```javascript -var Minimatch = require("minimatch").Minimatch -var mm = new Minimatch(pattern, options) -``` - -### Properties - -* `pattern` The original pattern the minimatch object represents. -* `options` The options supplied to the constructor. -* `set` A 2-dimensional array of regexp or string expressions. - Each row in the - array corresponds to a brace-expanded pattern. Each item in the row - corresponds to a single path-part. For example, the pattern - `{a,b/c}/d` would expand to a set of patterns like: - - [ [ a, d ] - , [ b, c, d ] ] - - If a portion of the pattern doesn't have any "magic" in it - (that is, it's something like `"foo"` rather than `fo*o?`), then it - will be left as a string rather than converted to a regular - expression. - -* `regexp` Created by the `makeRe` method. A single regular expression - expressing the entire pattern. This is useful in cases where you wish - to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled. -* `negate` True if the pattern is negated. -* `comment` True if the pattern is a comment. -* `empty` True if the pattern is `""`. - -### Methods - -* `makeRe` Generate the `regexp` member if necessary, and return it. - Will return `false` if the pattern is invalid. -* `match(fname)` Return true if the filename matches the pattern, or - false otherwise. -* `matchOne(fileArray, patternArray, partial)` Take a `/`-split - filename, and match it against a single row in the `regExpSet`. This - method is mainly for internal use, but is exposed so that it can be - used by a glob-walker that needs to avoid excessive filesystem calls. - -All other methods are internal, and will be called as necessary. - -### minimatch(path, pattern, options) - -Main export. Tests a path against the pattern using the options. - -```javascript -var isJS = minimatch(file, "*.js", { matchBase: true }) -``` - -### minimatch.filter(pattern, options) - -Returns a function that tests its -supplied argument, suitable for use with `Array.filter`. Example: - -```javascript -var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true})) -``` - -### minimatch.match(list, pattern, options) - -Match against the list of -files, in the style of fnmatch or glob. If nothing is matched, and -options.nonull is set, then return a list containing the pattern itself. - -```javascript -var javascripts = minimatch.match(fileList, "*.js", {matchBase: true})) -``` - -### minimatch.makeRe(pattern, options) - -Make a regular expression object from the pattern. - -## Options - -All options are `false` by default. - -### debug - -Dump a ton of stuff to stderr. - -### nobrace - -Do not expand `{a,b}` and `{1..3}` brace sets. - -### noglobstar - -Disable `**` matching against multiple folder names. - -### dot - -Allow patterns to match filenames starting with a period, even if -the pattern does not explicitly have a period in that spot. - -Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot` -is set. - -### noext - -Disable "extglob" style patterns like `+(a|b)`. - -### nocase - -Perform a case-insensitive match. - -### nonull - -When a match is not found by `minimatch.match`, return a list containing -the pattern itself if this option is set. When not set, an empty list -is returned if there are no matches. - -### matchBase - -If set, then patterns without slashes will be matched -against the basename of the path if it contains slashes. For example, -`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. - -### nocomment - -Suppress the behavior of treating `#` at the start of a pattern as a -comment. - -### nonegate - -Suppress the behavior of treating a leading `!` character as negation. - -### flipNegate - -Returns from negate expressions the same as if they were not negated. -(Ie, true on a hit, false on a miss.) - -### partial - -Compare a partial path to a pattern. As long as the parts of the path that -are present are not contradicted by the pattern, it will be treated as a -match. This is useful in applications where you're walking through a -folder structure, and don't yet have the full path, but want to ensure that -you do not walk down paths that can never be a match. - -For example, - -```js -minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d -minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d -minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a -``` - -### allowWindowsEscape - -Windows path separator `\` is by default converted to `/`, which -prohibits the usage of `\` as a escape character. This flag skips that -behavior and allows using the escape character. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between minimatch and other -implementations, and are intentional. - -If the pattern starts with a `!` character, then it is negated. Set the -`nonegate` flag to suppress this behavior, and treat leading `!` -characters normally. This is perhaps relevant if you wish to start the -pattern with a negative extglob pattern like `!(a|B)`. Multiple `!` -characters at the start of a pattern will negate the pattern multiple -times. - -If a pattern starts with `#`, then it is treated as a comment, and -will not match anything. Use `\#` to match a literal `#` at the -start of a line, or set the `nocomment` flag to suppress this behavior. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.1, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then minimatch.match returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. diff --git a/node_modules/eslint-plugin-github/node_modules/minimatch/minimatch.js b/node_modules/eslint-plugin-github/node_modules/minimatch/minimatch.js deleted file mode 100644 index fda45ade..00000000 --- a/node_modules/eslint-plugin-github/node_modules/minimatch/minimatch.js +++ /dev/null @@ -1,947 +0,0 @@ -module.exports = minimatch -minimatch.Minimatch = Minimatch - -var path = (function () { try { return require('path') } catch (e) {}}()) || { - sep: '/' -} -minimatch.sep = path.sep - -var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = require('brace-expansion') - -var plTypes = { - '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, - '?': { open: '(?:', close: ')?' }, - '+': { open: '(?:', close: ')+' }, - '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } -} - -// any single thing other than / -// don't need to escape / when using new RegExp() -var qmark = '[^/]' - -// * => any number of characters -var star = qmark + '*?' - -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' - -// characters that need to be escaped in RegExp. -var reSpecials = charSet('().*{}+?[]^$\\!') - -// "abc" -> { a:true, b:true, c:true } -function charSet (s) { - return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) -} - -// normalizes slashes. -var slashSplit = /\/+/ - -minimatch.filter = filter -function filter (pattern, options) { - options = options || {} - return function (p, i, list) { - return minimatch(p, pattern, options) - } -} - -function ext (a, b) { - b = b || {} - var t = {} - Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) - return t -} - -minimatch.defaults = function (def) { - if (!def || typeof def !== 'object' || !Object.keys(def).length) { - return minimatch - } - - var orig = minimatch - - var m = function minimatch (p, pattern, options) { - return orig(p, pattern, ext(def, options)) - } - - m.Minimatch = function Minimatch (pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } - m.Minimatch.defaults = function defaults (options) { - return orig.defaults(ext(def, options)).Minimatch - } - - m.filter = function filter (pattern, options) { - return orig.filter(pattern, ext(def, options)) - } - - m.defaults = function defaults (options) { - return orig.defaults(ext(def, options)) - } - - m.makeRe = function makeRe (pattern, options) { - return orig.makeRe(pattern, ext(def, options)) - } - - m.braceExpand = function braceExpand (pattern, options) { - return orig.braceExpand(pattern, ext(def, options)) - } - - m.match = function (list, pattern, options) { - return orig.match(list, pattern, ext(def, options)) - } - - return m -} - -Minimatch.defaults = function (def) { - return minimatch.defaults(def).Minimatch -} - -function minimatch (p, pattern, options) { - assertValidPattern(pattern) - - if (!options) options = {} - - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false - } - - return new Minimatch(pattern, options).match(p) -} - -function Minimatch (pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) - } - - assertValidPattern(pattern) - - if (!options) options = {} - - pattern = pattern.trim() - - // windows support: need to use /, not \ - if (!options.allowWindowsEscape && path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') - } - - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false - this.partial = !!options.partial - - // make the set of regexps etc. - this.make() -} - -Minimatch.prototype.debug = function () {} - -Minimatch.prototype.make = make -function make () { - var pattern = this.pattern - var options = this.options - - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return - } - if (!pattern) { - this.empty = true - return - } - - // step 1: figure out negation, etc. - this.parseNegate() - - // step 2: expand braces - var set = this.globSet = this.braceExpand() - - if (options.debug) this.debug = function debug() { console.error.apply(console, arguments) } - - this.debug(this.pattern, set) - - // step 3: now we have a set, so turn each one into a series of path-portion - // matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) - - this.debug(this.pattern, set) - - // glob --> regexps - set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) - - this.debug(this.pattern, set) - - // filter out everything that didn't compile properly. - set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) - - this.debug(this.pattern, set) - - this.set = set -} - -Minimatch.prototype.parseNegate = parseNegate -function parseNegate () { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 - - if (options.nonegate) return - - for (var i = 0, l = pattern.length - ; i < l && pattern.charAt(i) === '!' - ; i++) { - negate = !negate - negateOffset++ - } - - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate -} - -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) -} - -Minimatch.prototype.braceExpand = braceExpand - -function braceExpand (pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options - } else { - options = {} - } - } - - pattern = typeof pattern === 'undefined' - ? this.pattern : pattern - - assertValidPattern(pattern) - - // Thanks to Yeting Li for - // improving this regexp to avoid a ReDOS vulnerability. - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - // shortcut. no need to expand. - return [pattern] - } - - return expand(pattern) -} - -var MAX_PATTERN_LENGTH = 1024 * 64 -var assertValidPattern = function (pattern) { - if (typeof pattern !== 'string') { - throw new TypeError('invalid pattern') - } - - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError('pattern is too long') - } -} - -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse = parse -var SUBPARSE = {} -function parse (pattern, isSub) { - assertValidPattern(pattern) - - var options = this.options - - // shortcuts - if (pattern === '**') { - if (!options.noglobstar) - return GLOBSTAR - else - pattern = '*' - } - if (pattern === '') return '' - - var re = '' - var hasMagic = !!options.nocase - var escaping = false - // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 - // . and .. never match anything that doesn't start with ., - // even when options.dot is set. - var patternStart = pattern.charAt(0) === '.' ? '' // anything - // not (start or / followed by . or .. followed by / or end) - : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' - : '(?!\\.)' - var self = this - - function clearStateChar () { - if (stateChar) { - // we had some state-tracking character - // that wasn't consumed by this pass. - switch (stateChar) { - case '*': - re += star - hasMagic = true - break - case '?': - re += qmark - hasMagic = true - break - default: - re += '\\' + stateChar - break - } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false - } - } - - for (var i = 0, len = pattern.length, c - ; (i < len) && (c = pattern.charAt(i)) - ; i++) { - this.debug('%s\t%s %s %j', pattern, i, re, c) - - // skip over any that are escaped. - if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue - } - - switch (c) { - /* istanbul ignore next */ - case '/': { - // completely not allowed, even escaped. - // Should already be path-split by now. - return false - } - - case '\\': - clearStateChar() - escaping = true - continue - - // the various stateChar values - // for the "extglob" stuff. - case '?': - case '*': - case '+': - case '@': - case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - - // all of those are literals inside a class, except that - // the glob [!a] means [^a] in regexp - if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue - } - - // if we already have a stateChar, then it means - // that there was something like ** or +? in there. - // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c - // if extglob is disabled, then +(asdf|foo) isn't a thing. - // just clear the statechar *now*, rather than even diving into - // the patternList stuff. - if (options.noext) clearStateChar() - continue - - case '(': - if (inClass) { - re += '(' - continue - } - - if (!stateChar) { - re += '\\(' - continue - } - - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) - // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue - - case ')': - if (inClass || !patternListStack.length) { - re += '\\)' - continue - } - - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() - // negation is (?:(?!js)[^/]*) - // The others are (?:) - re += pl.close - if (pl.type === '!') { - negativeLists.push(pl) - } - pl.reEnd = re.length - continue - - case '|': - if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue - } - - clearStateChar() - re += '|' - continue - - // these are mostly the same in regexp and glob - case '[': - // swallow any state-tracking char before the [ - clearStateChar() - - if (inClass) { - re += '\\' + c - continue - } - - inClass = true - classStart = i - reClassStart = re.length - re += c - continue - - case ']': - // a right bracket shall lose its special - // meaning and represent itself in - // a bracket expression if it occurs - // first in the list. -- POSIX.2 2.8.3.2 - if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue - } - - // handle the case where we left a class open. - // "[z-a]" is valid, equivalent to "\[z-a\]" - // split where the last [ was, make sure we don't have - // an invalid re. if so, re-walk the contents of the - // would-be class to re-translate any characters that - // were passed through as-is - // TODO: It would probably be faster to determine this - // without a try/catch and a new RegExp, but it's tricky - // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) - try { - RegExp('[' + cs + ']') - } catch (er) { - // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue - } - - // finish up the class. - hasMagic = true - inClass = false - re += c - continue - - default: - // swallow any state char that wasn't consumed - clearStateChar() - - if (escaping) { - // no need - escaping = false - } else if (reSpecials[c] - && !(c === '^' && inClass)) { - re += '\\' - } - - re += c - - } // switch - } // for - - // handle the case where we left a class open. - // "[abc" is valid, equivalent to "\[abc" - if (inClass) { - // split where the last [ was, and escape it - // this is a huge pita. We now have to re-walk - // the contents of the would-be class to re-translate - // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] - } - - // handle the case where we had a +( thing at the *end* - // of the pattern. - // each pattern list stack adds 3 chars, and we need to go through - // and escape any | chars that were passed through as-is for the regexp. - // Go through and escape them, taking care not to double-escape any - // | chars that were already escaped. - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) - // maybe some even number of \, then maybe 1 \, followed by a | - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { - if (!$2) { - // the | isn't already escaped, so escape it. - $2 = '\\' - } - - // need to escape all those slashes *again*, without escaping the - // one that we need for escaping the | character. As it works out, - // escaping an even number of slashes can be done by simply repeating - // it exactly after itself. That's why this trick works. - // - // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) - - this.debug('tail=%j\n %s', tail, tail, pl, re) - var t = pl.type === '*' ? star - : pl.type === '?' ? qmark - : '\\' + pl.type - - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail - } - - // handle trailing things that only matter at the very end. - clearStateChar() - if (escaping) { - // trailing \\ - re += '\\\\' - } - - // only need to apply the nodot start if the re starts with - // something that could conceivably capture a dot - var addPatternStart = false - switch (re.charAt(0)) { - case '[': case '.': case '(': addPatternStart = true - } - - // Hack to work around lack of negative lookbehind in JS - // A pattern like: *.!(x).!(y|z) needs to ensure that a name - // like 'a.xyz.yz' doesn't match. So, the first negative - // lookahead, has to look ALL the way ahead, to the end of - // the pattern. - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] - - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) - - nlLast += nlAfter - - // Handle nested stuff like *(*.js|!(*.json)), where open parens - // mean that we should *not* include the ) in the bit that is considered - // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') - } - nlAfter = cleanAfter - - var dollar = '' - if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe - } - - // if the re is not "" at this point, then we need to make sure - // it doesn't match against an empty path part. - // Otherwise a/* will match a/, which it should not. - if (re !== '' && hasMagic) { - re = '(?=.)' + re - } - - if (addPatternStart) { - re = patternStart + re - } - - // parsing just a piece of a larger pattern. - if (isSub === SUBPARSE) { - return [re, hasMagic] - } - - // skip the regexp for non-magical patterns - // unescape anything in it, though, so that it'll be - // an exact match against a file etc. - if (!hasMagic) { - return globUnescape(pattern) - } - - var flags = options.nocase ? 'i' : '' - try { - var regExp = new RegExp('^' + re + '$', flags) - } catch (er) /* istanbul ignore next - should be impossible */ { - // If it was an invalid regular expression, then it can't match - // anything. This trick looks for a character after the end of - // the string, which is of course impossible, except in multi-line - // mode, but it's not a /m regex. - return new RegExp('$.') - } - - regExp._glob = pattern - regExp._src = re - - return regExp -} - -minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() -} - -Minimatch.prototype.makeRe = makeRe -function makeRe () { - if (this.regexp || this.regexp === false) return this.regexp - - // at this point, this.set is a 2d array of partial - // pattern strings, or "**". - // - // It's better to use .match(). This function shouldn't - // be used, really, but it's pretty convenient sometimes, - // when you just want to work with a regex. - var set = this.set - - if (!set.length) { - this.regexp = false - return this.regexp - } - var options = this.options - - var twoStar = options.noglobstar ? star - : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' - - var re = set.map(function (pattern) { - return pattern.map(function (p) { - return (p === GLOBSTAR) ? twoStar - : (typeof p === 'string') ? regExpEscape(p) - : p._src - }).join('\\\/') - }).join('|') - - // must match entire pattern - // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' - - // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' - - try { - this.regexp = new RegExp(re, flags) - } catch (ex) /* istanbul ignore next - should be impossible */ { - this.regexp = false - } - return this.regexp -} - -minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) - list = list.filter(function (f) { - return mm.match(f) - }) - if (mm.options.nonull && !list.length) { - list.push(pattern) - } - return list -} - -Minimatch.prototype.match = function match (f, partial) { - if (typeof partial === 'undefined') partial = this.partial - this.debug('match', f, this.pattern) - // short-circuit in the case of busted things. - // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' - - if (f === '/' && partial) return true - - var options = this.options - - // windows: need to use /, not \ - if (path.sep !== '/') { - f = f.split(path.sep).join('/') - } - - // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) - - // just ONE of the pattern sets in this.set needs to match - // in order for it to be valid. If negating, then just one - // match means that we have failed. - // Either way, return on the first hit. - - var set = this.set - this.debug(this.pattern, 'set', set) - - // Find the basename of the path by looking for the last non-empty segment - var filename - var i - for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break - } - - for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f - if (options.matchBase && pattern.length === 1) { - file = [filename] - } - var hit = this.matchOne(file, pattern, partial) - if (hit) { - if (options.flipNegate) return true - return !this.negate - } - } - - // didn't get any hits. this is success if it's a negative - // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate -} - -// set partial to true to test if, for example, -// "/a/b" matches the start of "/*/b/*/d" -// Partial means, if you run out of file before you run -// out of pattern, then that's fine, as long as all -// the parts match. -Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options - - this.debug('matchOne', - { 'this': this, file: file, pattern: pattern }) - - this.debug('matchOne', file.length, pattern.length) - - for (var fi = 0, - pi = 0, - fl = file.length, - pl = pattern.length - ; (fi < fl) && (pi < pl) - ; fi++, pi++) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] - - this.debug(pattern, p, f) - - // should be impossible. - // some invalid regexp stuff in the set. - /* istanbul ignore if */ - if (p === false) return false - - if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) - - // "**" - // a/**/b/**/c would match the following: - // a/b/x/y/z/c - // a/x/y/z/b/c - // a/b/x/b/x/c - // a/b/c - // To do this, take the rest of the pattern after - // the **, and see if it would match the file remainder. - // If so, return success. - // If not, the ** "swallows" a segment, and try again. - // This is recursively awful. - // - // a/**/b/**/c matching a/b/x/y/z/c - // - a matches a - // - doublestar - // - matchOne(b/x/y/z/c, b/**/c) - // - b matches b - // - doublestar - // - matchOne(x/y/z/c, c) -> no - // - matchOne(y/z/c, c) -> no - // - matchOne(z/c, c) -> no - // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 - if (pr === pl) { - this.debug('** at the end') - // a ** at the end will just swallow the rest. - // We have found a match. - // however, it will not swallow /.x, unless - // options.dot is set. - // . and .. are *never* matched by **, for explosively - // exponential reasons. - for (; fi < fl; fi++) { - if (file[fi] === '.' || file[fi] === '..' || - (!options.dot && file[fi].charAt(0) === '.')) return false - } - return true - } - - // ok, let's see if we can swallow whatever we can. - while (fr < fl) { - var swallowee = file[fr] - - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) - - // XXX remove this slice. Just pass the start index. - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) - // found a match. - return true - } else { - // can't swallow "." or ".." ever. - // can only swallow ".foo" when explicitly asked. - if (swallowee === '.' || swallowee === '..' || - (!options.dot && swallowee.charAt(0) === '.')) { - this.debug('dot detected!', file, fr, pattern, pr) - break - } - - // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ - } - } - - // no match was found. - // However, in partial mode, we can't say this is necessarily over. - // If there's more *pattern* left, then - /* istanbul ignore if */ - if (partial) { - // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true - } - return false - } - - // something other than ** - // non-magic patterns just have to match exactly - // patterns with magic have been turned into regexps. - var hit - if (typeof p === 'string') { - hit = f === p - this.debug('string match', p, f, hit) - } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) - } - - if (!hit) return false - } - - // Note: ending in / means that we'll get a final "" - // at the end of the pattern. This can only match a - // corresponding "" at the end of the file. - // If the file ends in /, then it can only match a - // a pattern that ends in /, unless the pattern just - // doesn't have any more for it. But, a/b/ should *not* - // match "a/b/*", even though "" matches against the - // [^/]*? pattern, except in partial mode, where it might - // simply not be reached yet. - // However, a/b/ should still satisfy a/* - - // now either we fell off the end of the pattern, or we're done. - if (fi === fl && pi === pl) { - // ran out of pattern and filename at the same time. - // an exact hit! - return true - } else if (fi === fl) { - // ran out of file, but still had pattern left. - // this is ok if we're doing the match as part of - // a glob fs traversal. - return partial - } else /* istanbul ignore else */ if (pi === pl) { - // ran out of pattern, still have file left. - // this is only acceptable if we're on the very last - // empty segment of a file with a trailing slash. - // a/* should match a/b/ - return (fi === fl - 1) && (file[fi] === '') - } - - // should be unreachable. - /* istanbul ignore next */ - throw new Error('wtf?') -} - -// replace stuff like \* with * -function globUnescape (s) { - return s.replace(/\\(.)/g, '$1') -} - -function regExpEscape (s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') -} diff --git a/node_modules/eslint-plugin-github/node_modules/minimatch/package.json b/node_modules/eslint-plugin-github/node_modules/minimatch/package.json deleted file mode 100644 index 566efdfe..00000000 --- a/node_modules/eslint-plugin-github/node_modules/minimatch/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "author": "Isaac Z. Schlueter (http://blog.izs.me)", - "name": "minimatch", - "description": "a glob matcher in javascript", - "version": "3.1.2", - "publishConfig": { - "tag": "v3-legacy" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/minimatch.git" - }, - "main": "minimatch.js", - "scripts": { - "test": "tap", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "engines": { - "node": "*" - }, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "devDependencies": { - "tap": "^15.1.6" - }, - "license": "ISC", - "files": [ - "minimatch.js" - ] -} diff --git a/node_modules/eslint-plugin-github/package.json b/node_modules/eslint-plugin-github/package.json index bd863f5b..b7c15b8d 100644 --- a/node_modules/eslint-plugin-github/package.json +++ b/node_modules/eslint-plugin-github/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-github", - "version": "5.1.1", + "version": "5.1.3", "description": "An opinionated collection of ESLint shared configs and rules used by GitHub.", "main": "lib/index.js", "entries": [ @@ -35,6 +35,8 @@ "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.14.0", "@github/browserslist-config": "^1.0.0", + "@typescript-eslint/eslint-plugin": "^8.0.0", + "@typescript-eslint/parser": "^8.0.0", "aria-query": "^5.3.0", "eslint-config-prettier": ">=8.0.0", "eslint-plugin-escompat": "^3.11.3", diff --git a/node_modules/eslint-plugin-header/.eslintrc.yml b/node_modules/eslint-plugin-header/.eslintrc.yml new file mode 100644 index 00000000..f72a13bb --- /dev/null +++ b/node_modules/eslint-plugin-header/.eslintrc.yml @@ -0,0 +1,94 @@ +root: true + +env: + node: true + +extends: + "eslint:recommended" + +rules: + indent: [2, 4, {SwitchCase: 1}] + brace-style: [2, "1tbs"] + camelcase: [2, { properties: "never" }] + callback-return: [2, ["cb", "callback", "next"]] + comma-spacing: 2 + comma-style: [2, "last"] + consistent-return: 2 + curly: [2, "all"] + default-case: 2 + dot-notation: [2, { allowKeywords: true }] + eol-last: 2 + eqeqeq: 2 + func-style: [2, "declaration"] + guard-for-in: 2 + key-spacing: [2, { beforeColon: false, afterColon: true }] + new-cap: 2 + new-parens: 2 + no-alert: 2 + no-array-constructor: 2 + no-caller: 2 + no-console: 0 + no-delete-var: 2 + no-eval: 2 + no-extend-native: 2 + no-extra-bind: 2 + no-fallthrough: 2 + no-floating-decimal: 2 + no-implied-eval: 2 + no-invalid-this: 2 + no-iterator: 2 + no-label-var: 2 + no-labels: 2 + no-lone-blocks: 2 + no-loop-func: 2 + no-mixed-spaces-and-tabs: [2, false] + no-multi-spaces: 2 + no-multi-str: 2 + no-native-reassign: 2 + no-nested-ternary: 2 + no-new: 2 + no-new-func: 2 + no-new-object: 2 + no-new-wrappers: 2 + no-octal: 2 + no-octal-escape: 2 + no-process-exit: 2 + no-proto: 2 + no-redeclare: 2 + no-return-assign: 2 + no-script-url: 2 + no-sequences: 2 + no-shadow: 2 + no-shadow-restricted-names: 2 + no-spaced-func: 2 + no-trailing-spaces: 2 + no-undef: 2 + no-undef-init: 2 + no-undefined: 2 + no-underscore-dangle: 2 + no-unused-expressions: 2 + no-unused-vars: [2, {vars: "all", args: "after-used"}] + no-use-before-define: 2 + no-with: 2 + quotes: [2, "double"] + radix: 2 + semi: 2 + semi-spacing: [2, {before: false, after: true}] + keyword-spacing: [2, {"after": true }] + space-before-blocks: 2 + space-before-function-paren: [2, "never"] + space-infix-ops: 2 + space-unary-ops: [2, {words: true, nonwords: false}] + spaced-comment: [2, "always", { exceptions: ["-"]}] + strict: [2, "global"] + valid-jsdoc: [2, { prefer: { "return": "returns"}}] + wrap-iife: 2 + yoda: [2, "never"] + + # Previously on by default in node environment + no-catch-shadow: 0 + no-mixed-requires: 2 + no-new-require: 2 + no-path-concat: 2 + global-strict: [0, "always"] + handle-callback-err: [2, "err"] diff --git a/node_modules/eslint-plugin-header/.travis.yml b/node_modules/eslint-plugin-header/.travis.yml new file mode 100644 index 00000000..c3ac8c8f --- /dev/null +++ b/node_modules/eslint-plugin-header/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "14" diff --git a/node_modules/eslint-plugin-header/CHANGELOG.md b/node_modules/eslint-plugin-header/CHANGELOG.md new file mode 100644 index 00000000..b35beb7a --- /dev/null +++ b/node_modules/eslint-plugin-header/CHANGELOG.md @@ -0,0 +1,39 @@ +# 3.1.1 + +* Fix detecting header below shebang comment with Windows EOL (#30) + +# 3.1.0 + +* Update to eslint 7.7.0 +* Add a third option to specify number of linebreaks after the header. (#29) + +# 3.0.0 + +* Allow regexp in multiline arrays (#23) +* Add `template` option for regexps, for `eslint --fix` (#23) +* Update eslint to v5.12.0 (#19) + +# 2.0.0 + +* Use the OS's line endings (`\n` on *nix, `\r\n` on Windows) when parsing and fixing comments. This can be configured with the `lineEndings` option. Major version bump as this could be a breaking change for projects. + +# 1.2.0 + +* Add auto fix functionality (eslint `--fix` option) (#12) + +# 1.1.0 + +* Ignore shebangs above header comments to support ESLint 4+ (#11) + +# 1.0.0 + +* Allow RegExp patterns in addition to strings (#2, #4) +* Fix line comment length mismatch issue (#3) + +# 0.1.0 + +* Add config option to read header from file + +# 0.0.2 + +* Initial release diff --git a/node_modules/eslint-plugin-header/README.md b/node_modules/eslint-plugin-header/README.md new file mode 100644 index 00000000..8e4fa81e --- /dev/null +++ b/node_modules/eslint-plugin-header/README.md @@ -0,0 +1,205 @@ +eslint-plugin-header +==================== + +ESLint plugin to ensure that files begin with given comment. + +Often you will want to have a copyright notice at the top of every file. This ESLint plugin checks that the first comment in every file has the contents defined in the rule settings. + +## Usage + +This rule takes 1, 2 or 3 arguments with an optional settings object. + +### 1 argument + +In the 1 argument form the argument is the filename of a file that contains the comment(s) that should appear at the top of every file: + +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "config/header.js"] + } +} +``` + +config/header.js: + +```js +// Copyright 2015 +// My company +``` + +Due to limitations in eslint plugins, the file is read relative to the working directory that eslint is executed in. If you run eslint from elsewhere in your tree then the header file will not be found. + +### 2 arguments + +In the 2 argument form the first must be either `"block"` or `"line"` to indicate what style of comment should be used. The second is either a string (including newlines) of the comment, or an array of each line of the comment. + +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", "Copyright 2015\nMy Company"] + } +} +``` + +### 3 arguments + +The optional third argument which defaults to 1 specifies the number of newlines that are enforced after the header. + +Zero newlines: +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", [" Copyright now","My Company "], 0] + } +} +``` +```js +/* Copyright now +My Company */ console.log(1) +``` + +One newline (default) +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", [" Copyright now","My Company "], 1] + } +} +``` +```js +/* Copyright now +My Company */ +console.log(1) +``` + +two newlines +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", [" Copyright now","My Company "], 2] + } +} +``` +```js +/* Copyright now +My Company */ + +console.log(1) +``` + +#### Regular expressions + +Instead of a string to be checked for exact matching you can also supply a regular expression. Be aware that you have to escape backslashes: + +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", [ + {"pattern": " Copyright \\d{4}"}, + "My Company" + ]] + } +} +``` + +This would match: + +```js +/* Copyright 2808 +My Company*/ +``` + +When you use a regular expression `pattern`, you can also provide a `template` property, to provide the comment value when using `eslint --fix`: + +```json +{ + "plugins": [ + "header" + ], + "rules": { + "header/header": [2, "block", [ + {"pattern": " Copyright \\d{4}", "template": " Copyright 2019"}, + "My Company" + ]] + } +} +``` + +### Line Endings + +The rule works with both unix and windows line endings. For ESLint `--fix`, the rule will use the line ending format of the current operating system (via the node `os` package). This setting can be overwritten as follows: +```json +"rules": { + "header/header": [2, "block", ["Copyright 2018", "My Company"], {"lineEndings": "windows"}] +} +``` +Possible values are `unix` for `\n` and `windows` for `\r\n` line endings. + +## Examples + +The following examples are all valid. + +`"block", "Copyright 2015, My Company"`: + +```js +/*Copyright 2015, My Company*/ +console.log(1); +``` + +`"line", ["Copyright 2015", "My Company"]]`: + +```js +//Copyright 2015 +//My Company +console.log(1) +``` + +`"line", [{pattern: "^Copyright \\d{4}$"}, {pattern: "^My Company$"}]]`: + +```js +//Copyright 2017 +//My Company +console.log(1) +``` + +### With more decoration + +```json +"header/header": [2, "block", [ + "************************", + " * Copyright 2015", + " * My Company", + " ************************" +] +``` + +```js +/************************* + * Copyright 2015 + * My Company + *************************/ + console.log(1); +``` + +## License + +MIT diff --git a/node_modules/eslint-plugin-header/index.js b/node_modules/eslint-plugin-header/index.js new file mode 100644 index 00000000..89a2455d --- /dev/null +++ b/node_modules/eslint-plugin-header/index.js @@ -0,0 +1,10 @@ +"use strict"; + +module.exports = { + rules: { + "header": require("./lib/rules/header") + }, + rulesConfig: { + "header": 0 + } +}; diff --git a/node_modules/eslint-plugin-header/lib/comment-parser.js b/node_modules/eslint-plugin-header/lib/comment-parser.js new file mode 100644 index 00000000..5a67386b --- /dev/null +++ b/node_modules/eslint-plugin-header/lib/comment-parser.js @@ -0,0 +1,24 @@ +"use strict"; + +// This is a really simple and dumb parser, that looks just for a +// single kind of comment. It won't detect multiple block comments. + +module.exports = function commentParser(text) { + text = text.trim(); + + if (text.substr(0, 2) === "//") { + return [ + "line", + text.split(/\r?\n/).map(function(line) { + return line.substr(2); + }) + ]; + } else if ( + text.substr(0, 2) === "/*" && + text.substr(-2) === "*/" + ) { + return ["block", text.substring(2, text.length - 2)]; + } else { + throw new Error("Could not parse comment file: the file must contain either just line comments (//) or a single block comment (/* ... */)"); + } +}; diff --git a/node_modules/eslint-plugin-header/lib/rules/header.js b/node_modules/eslint-plugin-header/lib/rules/header.js new file mode 100644 index 00000000..3504b6fc --- /dev/null +++ b/node_modules/eslint-plugin-header/lib/rules/header.js @@ -0,0 +1,264 @@ +"use strict"; + +var fs = require("fs"); +var commentParser = require("../comment-parser"); +var os = require("os"); + +function isPattern(object) { + return typeof object === "object" && Object.prototype.hasOwnProperty.call(object, "pattern"); +} + +function match(actual, expected) { + if (expected.test) { + return expected.test(actual); + } else { + return expected === actual; + } +} + +function excludeShebangs(comments) { + return comments.filter(function(comment) { + return comment.type !== "Shebang"; + }); +} + +// Returns either the first block comment or the first set of line comments that +// are ONLY separated by a single newline. Note that this does not actually +// check if they are at the start of the file since that is already checked by +// hasHeader(). +function getLeadingComments(context, node) { + var all = excludeShebangs(context.getSourceCode().getAllComments(node.body.length ? node.body[0] : node)); + if (all[0].type.toLowerCase() === "block") { + return [all[0]]; + } + for (var i = 1; i < all.length; ++i) { + var txt = context.getSourceCode().getText().slice(all[i - 1].range[1], all[i].range[0]); + if (!txt.match(/^(\r\n|\r|\n)$/)) { + break; + } + } + return all.slice(0, i); +} + +function genCommentBody(commentType, textArray, eol, numNewlines) { + var eols = eol.repeat(numNewlines); + if (commentType === "block") { + return "/*" + textArray.join(eol) + "*/" + eols; + } else { + return "//" + textArray.join(eol + "//") + eols; + } +} + +function genCommentsRange(context, comments, eol) { + var start = comments[0].range[0]; + var end = comments.slice(-1)[0].range[1]; + if (context.getSourceCode().text[end] === eol) { + end += eol.length; + } + return [start, end]; +} + +function genPrependFixer(commentType, node, headerLines, eol, numNewlines) { + return function(fixer) { + return fixer.insertTextBefore( + node, + genCommentBody(commentType, headerLines, eol, numNewlines) + ); + }; +} + +function genReplaceFixer(commentType, context, leadingComments, headerLines, eol, numNewlines) { + return function(fixer) { + return fixer.replaceTextRange( + genCommentsRange(context, leadingComments, eol), + genCommentBody(commentType, headerLines, eol, numNewlines) + ); + }; +} + +function findSettings(options) { + var lastOption = options.length > 0 ? options[options.length - 1] : null; + if (typeof lastOption === "object" && !Array.isArray(lastOption) && lastOption !== null + && !Object.prototype.hasOwnProperty.call(lastOption, "pattern")) { + return lastOption; + } + return null; +} + +function getEOL(options) { + var settings = findSettings(options); + if (settings && settings.lineEndings === "unix") { + return "\n"; + } + if (settings && settings.lineEndings === "windows") { + return "\r\n"; + } + return os.EOL; +} + +function hasHeader(src) { + if (src.substr(0, 2) === "#!") { + var m = src.match(/(\r\n|\r|\n)/); + if (m) { + src = src.slice(m.index + m[0].length); + } + } + return src.substr(0, 2) === "/*" || src.substr(0, 2) === "//"; +} + +function matchesLineEndings(src, num) { + for (var j = 0; j < num; ++j) { + var m = src.match(/^(\r\n|\r|\n)/); + if (m) { + src = src.slice(m.index + m[0].length); + } else { + return false; + } + } + return true; +} + +module.exports = { + meta: { + type: "layout", + fixable: "whitespace" + }, + create: function(context) { + var options = context.options; + var numNewlines = options.length > 2 ? options[2] : 1; + var eol = getEOL(options); + + // If just one option then read comment from file + if (options.length === 1 || (options.length === 2 && findSettings(options))) { + var text = fs.readFileSync(context.options[0], "utf8"); + options = commentParser(text); + } + + var commentType = options[0].toLowerCase(); + var headerLines, fixLines = []; + // If any of the lines are regular expressions, then we can't + // automatically fix them. We set this to true below once we + // ensure none of the lines are of type RegExp + var canFix = false; + if (Array.isArray(options[1])) { + canFix = true; + headerLines = options[1].map(function(line) { + var isRegex = isPattern(line); + // Can only fix regex option if a template is also provided + if (isRegex && !line.template) { + canFix = false; + } + fixLines.push(line.template || line); + return isRegex ? new RegExp(line.pattern) : line; + }); + } else if (isPattern(options[1])) { + var line = options[1]; + headerLines = [new RegExp(line.pattern)]; + fixLines.push(line.template || line); + // Same as above for regex and template + canFix = !!line.template; + } else { + canFix = true; + headerLines = options[1].split(/\r?\n/); + fixLines = headerLines; + } + + return { + Program: function(node) { + if (!hasHeader(context.getSourceCode().getText())) { + context.report({ + loc: node.loc, + message: "missing header", + fix: genPrependFixer(commentType, node, fixLines, eol, numNewlines) + }); + } else { + var leadingComments = getLeadingComments(context, node); + + if (!leadingComments.length) { + context.report({ + loc: node.loc, + message: "missing header", + fix: canFix ? genPrependFixer(commentType, node, fixLines, eol, numNewlines) : null + }); + } else if (leadingComments[0].type.toLowerCase() !== commentType) { + context.report({ + loc: node.loc, + message: "header should be a {{commentType}} comment", + data: { + commentType: commentType + }, + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + } else { + if (commentType === "line") { + if (leadingComments.length < headerLines.length) { + context.report({ + loc: node.loc, + message: "incorrect header", + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + return; + } + for (var i = 0; i < headerLines.length; i++) { + if (!match(leadingComments[i].value, headerLines[i])) { + context.report({ + loc: node.loc, + message: "incorrect header", + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + return; + } + } + + var postLineHeader = context.getSourceCode().text.substr(leadingComments[headerLines.length - 1].range[1], numNewlines * 2); + if (!matchesLineEndings(postLineHeader, numNewlines)) { + context.report({ + loc: node.loc, + message: "no newline after header", + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + } + + } else { + // if block comment pattern has more than 1 line, we also split the comment + var leadingLines = [leadingComments[0].value]; + if (headerLines.length > 1) { + leadingLines = leadingComments[0].value.split(/\r?\n/); + } + + var hasError = false; + if (leadingLines.length > headerLines.length) { + hasError = true; + } + for (i = 0; !hasError && i < headerLines.length; i++) { + if (!match(leadingLines[i], headerLines[i])) { + hasError = true; + } + } + + if (hasError) { + if (canFix && headerLines.length > 1) { + fixLines = [fixLines.join(eol)]; + } + context.report({ + loc: node.loc, + message: "incorrect header", + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + } else { + var postBlockHeader = context.getSourceCode().text.substr(leadingComments[0].range[1], numNewlines * 2); + if (!matchesLineEndings(postBlockHeader, numNewlines)) { + context.report({ + loc: node.loc, + message: "no newline after header", + fix: canFix ? genReplaceFixer(commentType, context, leadingComments, fixLines, eol, numNewlines) : null + }); + } + } + } + } + } + } + }; + } +}; diff --git a/node_modules/eslint-plugin-header/package.json b/node_modules/eslint-plugin-header/package.json new file mode 100644 index 00000000..eba6b4e4 --- /dev/null +++ b/node_modules/eslint-plugin-header/package.json @@ -0,0 +1,28 @@ +{ + "name": "eslint-plugin-header", + "version": "3.1.1", + "description": "ESLint plugin to ensure that files begin with given comment", + "main": "index.js", + "scripts": { + "test": "npm run lint && npm run unit", + "unit": "mocha tests/lib/*.js tests/lib/**/*.js", + "lint": "eslint ." + }, + "devDependencies": { + "eslint": "^7.7.0", + "mocha": "^8.1.1" + }, + "peerDependencies": { + "eslint": ">=7.7.0" + }, + "keywords": [ + "eslint", + "eslintplugin" + ], + "repository": { + "type": "git", + "url": "https://github.com/Stuk/eslint-plugin-header.git" + }, + "author": "Stuart Knightley", + "license": "MIT" +} diff --git a/node_modules/eslint-plugin-header/tests/lib/comment-parser-test.js b/node_modules/eslint-plugin-header/tests/lib/comment-parser-test.js new file mode 100644 index 00000000..f43c6d41 --- /dev/null +++ b/node_modules/eslint-plugin-header/tests/lib/comment-parser-test.js @@ -0,0 +1,23 @@ +/* eslint-env mocha */ +"use strict"; + +var assert = require("assert"); +var commentParser = require("../../lib/comment-parser"); + +describe("comment parser", function() { + it("parses block comments", function() { + var result = commentParser("/* pass1\n pass2 */ "); + assert.deepEqual(result, ["block", " pass1\n pass2 "]); + }); + + it("throws an error when a block comment isn't ended", function() { + assert.throws(function() { + commentParser("/* fail"); + }); + }); + + it("parses line comments", function() { + var result = commentParser("// pass1\n// pass2\n "); + assert.deepEqual(result, ["line", [" pass1", " pass2"]]); + }); +}); diff --git a/node_modules/eslint-plugin-header/tests/lib/rules/header.js b/node_modules/eslint-plugin-header/tests/lib/rules/header.js new file mode 100644 index 00000000..b42f8f00 --- /dev/null +++ b/node_modules/eslint-plugin-header/tests/lib/rules/header.js @@ -0,0 +1,285 @@ +"use strict"; + +var rule = require("../../../lib/rules/header"); +var RuleTester = require("eslint").RuleTester; + +var ruleTester = new RuleTester(); +ruleTester.run("header", rule, { + valid: [ + { + code: "/*Copyright 2015, My Company*/\nconsole.log(1);", + options: ["block", "Copyright 2015, My Company"] + }, + { + code: "//Copyright 2015, My Company\nconsole.log(1);", + options: ["line", "Copyright 2015, My Company"] + }, + { + code: "/*Copyright 2015, My Company*/", + options: ["block", "Copyright 2015, My Company", 0] + }, + { + code: "//Copyright 2015\n//My Company\nconsole.log(1)", + options: ["line", "Copyright 2015\nMy Company"] + }, + { + code: "//Copyright 2015\n//My Company\nconsole.log(1)", + options: ["line", ["Copyright 2015", "My Company"]] + }, + { + code: "/*Copyright 2015\nMy Company*/\nconsole.log(1)", + options: ["block", ["Copyright 2015", "My Company"]] + }, + { + code: "/*************************\n * Copyright 2015\n * My Company\n *************************/\nconsole.log(1)", + options: ["block", [ + "************************", + " * Copyright 2015", + " * My Company", + " ************************" + ]] + }, + { + code: "/*\nCopyright 2015\nMy Company\n*/\nconsole.log(1)", + options: ["tests/support/block.js"] + }, + { + code: "// Copyright 2015\n// My Company\nconsole.log(1)", + options: ["tests/support/line.js"] + }, + { + code: "//Copyright 2015\n//My Company\n/* DOCS */", + options: ["line", "Copyright 2015\nMy Company"] + }, + { + code: "// Copyright 2017", + options: ["line", {pattern: "^ Copyright \\d+$"}, 0] + }, + { + code: "// Copyright 2017\n// Author: abc@example.com", + options: ["line", [{pattern: "^ Copyright \\d+$"}, {pattern: "^ Author: \\w+@\\w+\\.\\w+$"}], 0] + }, + { + code: "/* Copyright 2017\n Author: abc@example.com */", + options: ["block", {pattern: "^ Copyright \\d{4}\\n Author: \\w+@\\w+\\.\\w+ $"}, 0] + }, + { + code: "#!/usr/bin/env node\n/**\n * Copyright\n */", + options: ["block", [ + "*", + " * Copyright", + " " + ], 0] + }, + { + code: "// Copyright 2015\r\n// My Company\r\nconsole.log(1)", + options: ["tests/support/line.js"] + }, + { + code: "//Copyright 2018\r\n//My Company\r\n/* DOCS */", + options: ["line", ["Copyright 2018", "My Company"]] + }, + { + code: "/*Copyright 2018\r\nMy Company*/\r\nconsole.log(1)", + options: ["block", ["Copyright 2018", "My Company"], {"lineEndings": "windows"}] + }, + { + code: "/*Copyright 2018\nMy Company*/\nconsole.log(1)", + options: ["block", ["Copyright 2018", "My Company"], {"lineEndings": "unix"}] + }, + { + code: "/*************************\n * Copyright 2015\n * My Company\n *************************/\nconsole.log(1)", + options: ["block", [ + "************************", + { pattern: " \\* Copyright \\d{4}" }, + " * My Company", + " ************************" + ]] + }, + { + code: "/*Copyright 2020, My Company*/\nconsole.log(1);", + options: ["block", "Copyright 2020, My Company", 1], + }, + { + code: "/*Copyright 2020, My Company*/\n\nconsole.log(1);", + options: ["block", "Copyright 2020, My Company", 2], + }, + { + code: "/*Copyright 2020, My Company*/\n\n// Log number one\nconsole.log(1);", + options: ["block", "Copyright 2020, My Company", 2], + }, + { + code: "/*Copyright 2020, My Company*/\n\n/*Log number one*/\nconsole.log(1);", + options: ["block", "Copyright 2020, My Company", 2], + }, + { + code: "/**\n * Copyright 2020\n * My Company\n **/\n\n/*Log number one*/\nconsole.log(1);", + options: ["block", "*\n * Copyright 2020\n * My Company\n *", 2], + }, + { + code: "#!/usr/bin/env node\r\n/**\r\n * Copyright\r\n */", + options: ["block", [ + "*", + " * Copyright", + " " + ], 0] + } + ], + invalid: [ + { + code: "console.log(1);", + options: ["block", "Copyright 2015, My Company"], + errors: [ + {message: "missing header"} + ], + output: "/*Copyright 2015, My Company*/\nconsole.log(1);" + }, + { + code: "//Copyright 2014, My Company\nconsole.log(1);", + options: ["block", "Copyright 2015, My Company"], + errors: [ + {message: "header should be a block comment"} + ], + output: "/*Copyright 2015, My Company*/\nconsole.log(1);" + }, + { + code: "/*Copyright 2014, My Company*/\nconsole.log(1);", + options: ["line", "Copyright 2015, My Company"], + errors: [ + {message: "header should be a line comment"} + ], + output: "//Copyright 2015, My Company\nconsole.log(1);" + }, + { + code: "/*Copyright 2014, My Company*/\nconsole.log(1);", + options: ["block", "Copyright 2015, My Company"], + errors: [ + {message: "incorrect header"} + ], + output: "/*Copyright 2015, My Company*/\nconsole.log(1);" + }, + { + // Test extra line in comment + code: "/*Copyright 2015\nMy Company\nExtra*/\nconsole.log(1);", + options: ["block", ["Copyright 2015", "My Company"]], + errors: [ + {message: "incorrect header"} + ], + output: "/*Copyright 2015\nMy Company*/\nconsole.log(1);" + }, + { + code: "/*Copyright 2015\n*/\nconsole.log(1);", + options: ["block", ["Copyright 2015", "My Company"]], + errors: [ + {message: "incorrect header"} + ], + output: "/*Copyright 2015\nMy Company*/\nconsole.log(1);" + }, + { + code: "//Copyright 2014\n//My Company\nconsole.log(1)", + options: ["line", "Copyright 2015\nMy Company"], + errors: [ + {message: "incorrect header"} + ], + output: "//Copyright 2015\n//My Company\nconsole.log(1)" + }, + { + code: "//Copyright 2015", + options: ["line", "Copyright 2015\nMy Company"], + errors: [ + {message: "incorrect header"} + ], + output: "//Copyright 2015\n//My Company\n" + }, + { + code: "// Copyright 2017 trailing", + options: ["line", {pattern: "^ Copyright \\d+$"}], + errors: [ + {message: "incorrect header"} + ] + }, + { + code: "// Copyright 2017 trailing", + options: ["line", {pattern: "^ Copyright \\d+$", template: " Copyright 2018"}], + errors: [ + {message: "incorrect header"} + ], + output: "// Copyright 2018\n" + }, + { + code: "// Copyright 2017 trailing\n// Someone", + options: ["line", [{pattern: "^ Copyright \\d+$", template: " Copyright 2018"}, " My Company"]], + errors: [ + {message: "incorrect header"} + ], + output: "// Copyright 2018\n// My Company\n" + }, + { + code: "// Copyright 2017\n// Author: ab-c@example.com", + options: ["line", [{pattern: "Copyright \\d+"}, {pattern: "^ Author: \\w+@\\w+\\.\\w+$"}]], + errors: [ + {message: "incorrect header"} + ] + }, + { + code: "/* Copyright 2017-01-02\n Author: abc@example.com */", + options: ["block", {pattern: "^ Copyright \\d+\\n Author: \\w+@\\w+\\.\\w+ $"}], + errors: [ + {message: "incorrect header"} + ] + }, + { + code: "/*************************\n * Copyright 2015\n * All your base are belong to us!\n *************************/\nconsole.log(1)", + options: ["block", [ + "************************", + { pattern: " \\* Copyright \\d{4}", template: " * Copyright 2019" }, + " * My Company", + " ************************" + ]], + errors: [ + {message: "incorrect header"} + ], + output: "/*************************\n * Copyright 2019\n * My Company\n *************************/\nconsole.log(1)" + }, + { + code: "/*Copyright 2020, My Company*/console.log(1);", + options: ["block", "Copyright 2020, My Company", 2], + errors: [ + {message: "no newline after header"} + ], + output: "/*Copyright 2020, My Company*/\n\nconsole.log(1);" + }, + { + code: "/*Copyright 2020, My Company*/console.log(1);", + options: ["block", "Copyright 2020, My Company", 1], + errors: [ + {message: "no newline after header"} + ], + output: "/*Copyright 2020, My Company*/\nconsole.log(1);" + }, + { + code: "//Copyright 2020\n//My Company\nconsole.log(1);", + options: ["line", ["Copyright 2020", "My Company"], 2], + errors: [ + {message: "no newline after header"} + ], + output: "//Copyright 2020\n//My Company\n\nconsole.log(1);" + }, + { + code: "/*Copyright 2020, My Company*/\nconsole.log(1);\n//Comment\nconsole.log(2);\n//Comment", + options: ["block", "Copyright 2020, My Company", 2], + errors: [ + {message: "no newline after header"} + ], + output: "/*Copyright 2020, My Company*/\n\nconsole.log(1);\n//Comment\nconsole.log(2);\n//Comment" + }, + { + code: "//Copyright 2020\n//My Company\nconsole.log(1);\n//Comment\nconsole.log(2);\n//Comment", + options: ["line", ["Copyright 2020", "My Company"], 2], + errors: [ + {message: "no newline after header"} + ], + output: "//Copyright 2020\n//My Company\n\nconsole.log(1);\n//Comment\nconsole.log(2);\n//Comment" + } + ] +}); diff --git a/node_modules/eslint-plugin-header/tests/support/block.js b/node_modules/eslint-plugin-header/tests/support/block.js new file mode 100644 index 00000000..e72f85fe --- /dev/null +++ b/node_modules/eslint-plugin-header/tests/support/block.js @@ -0,0 +1,4 @@ +/* +Copyright 2015 +My Company +*/ diff --git a/node_modules/eslint-plugin-header/tests/support/line.js b/node_modules/eslint-plugin-header/tests/support/line.js new file mode 100644 index 00000000..b53570b2 --- /dev/null +++ b/node_modules/eslint-plugin-header/tests/support/line.js @@ -0,0 +1,2 @@ +// Copyright 2015 +// My Company diff --git a/node_modules/eslint-plugin-no-async-foreach/README.md b/node_modules/eslint-plugin-no-async-foreach/README.md new file mode 100644 index 00000000..2f0a1c58 --- /dev/null +++ b/node_modules/eslint-plugin-no-async-foreach/README.md @@ -0,0 +1,45 @@ +# eslint-plugin-no-async-foreach + +No async forEach + +## Installation + +You'll first need to install [ESLint](http://eslint.org): + +``` +$ npm i eslint --save-dev +``` + +Next, install `eslint-plugin-no-async-foreach`: + +``` +$ npm install eslint-plugin-no-async-foreach --save-dev +``` + +**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-no-async-foreach` globally. + +## Usage + +Add `no-async-foreach` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix: + +```json +{ + "plugins": [ + "no-async-foreach" + ] +} +``` + + +Then configure the rules you want to use under the rules section. + +```json +{ + "rules": { + "no-async-foreach/no-async-foreach": 2 + } +} +``` + + + diff --git a/node_modules/eslint-plugin-no-async-foreach/index.js b/node_modules/eslint-plugin-no-async-foreach/index.js new file mode 100644 index 00000000..ed320eef --- /dev/null +++ b/node_modules/eslint-plugin-no-async-foreach/index.js @@ -0,0 +1,5 @@ +module.exports = { + rules: { + "no-async-foreach": require('./lib/no-async-foreach') + } +}; \ No newline at end of file diff --git a/node_modules/eslint-plugin-no-async-foreach/lib/no-async-foreach.js b/node_modules/eslint-plugin-no-async-foreach/lib/no-async-foreach.js new file mode 100644 index 00000000..8a4effc3 --- /dev/null +++ b/node_modules/eslint-plugin-no-async-foreach/lib/no-async-foreach.js @@ -0,0 +1,34 @@ +/** + * @fileoverview Blah + * @author El + */ +"use strict"; + +//------------------------------------------------------------------------------ +// Rule Definition +//------------------------------------------------------------------------------ + +module.exports = { + create: function(context) { + + return { + ExpressionStatement: function(node) { + const { callee } = node.expression + if (!callee || !callee.property || !callee.property.name) return; + if (callee.property.name === "forEach") { + const functionArguments = node.expression.arguments.find(n => { + return n.type === 'ArrowFunctionExpression' || n.type === 'FunctionExpression' + }) + if(functionArguments){ + if (functionArguments.async) { + context.report(node, "No async function in forEachs"); + } + } + } + + } + }; + } + + +} \ No newline at end of file diff --git a/node_modules/eslint-plugin-no-async-foreach/package.json b/node_modules/eslint-plugin-no-async-foreach/package.json new file mode 100644 index 00000000..48ff06ae --- /dev/null +++ b/node_modules/eslint-plugin-no-async-foreach/package.json @@ -0,0 +1,26 @@ +{ + "name": "eslint-plugin-no-async-foreach", + "version": "0.1.1", + "description": "No async forEachs", + "keywords": [ + "eslint", + "eslintplugin", + "eslint-plugin" + ], + "author": "Elliott McNary", + "main": "index.js", + "scripts": { + "test": "mocha tests --recursive" + }, + "dependencies": { + "requireindex": "~1.1.0" + }, + "devDependencies": { + "eslint": "~3.9.1", + "mocha": "^3.1.2" + }, + "engines": { + "node": ">=0.10.0" + }, + "license": "ISC" +} diff --git a/node_modules/eslint-plugin-no-async-foreach/tests/lib/rules/no-async-foreach.js b/node_modules/eslint-plugin-no-async-foreach/tests/lib/rules/no-async-foreach.js new file mode 100644 index 00000000..898103ad --- /dev/null +++ b/node_modules/eslint-plugin-no-async-foreach/tests/lib/rules/no-async-foreach.js @@ -0,0 +1,52 @@ +/** + * @fileoverview Blah + * @author El + */ +"use strict"; + +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +var rule = require("../../../lib/no-async-foreach"), + + RuleTester = require("eslint").RuleTester; + + +//------------------------------------------------------------------------------ +// Tests +//------------------------------------------------------------------------------ + +const ERROR_MSG = 'No async function in forEachs'; + +var ruleTester = new RuleTester(); +ruleTester.run("no-async-foreach", rule, { + + valid: [ + { + code: "[].forEach(() => {})", + parserOptions: { ecmaVersion: 8 } + }, + { + code: "[].forEach(function() {})", + parserOptions: { ecmaVersion: 8 } + } + ], + + invalid: [ + { + code: "[].forEach(async () => {});", + parserOptions: { ecmaVersion: 8 }, + errors: [{ + message: ERROR_MSG, + }] + }, + { + code: "[].forEach(async function() {});", + parserOptions: { ecmaVersion: 8 }, + errors: [{ + message: ERROR_MSG, + }] + } + ] +}); diff --git a/node_modules/eslint-scope/README.md b/node_modules/eslint-scope/README.md index 110baaf8..e60b4db3 100644 --- a/node_modules/eslint-scope/README.md +++ b/node_modules/eslint-scope/README.md @@ -1,6 +1,6 @@ [![npm version](https://img.shields.io/npm/v/eslint-scope.svg)](https://www.npmjs.com/package/eslint-scope) [![Downloads](https://img.shields.io/npm/dm/eslint-scope.svg)](https://www.npmjs.com/package/eslint-scope) -[![Build Status](https://github.com/eslint/eslint-scope/workflows/CI/badge.svg)](https://github.com/eslint/eslint-scope/actions) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) # ESLint Scope @@ -26,6 +26,18 @@ To use in a CommonJS file: const eslintScope = require('eslint-scope'); ``` +In order to analyze scope, you'll need to have an [ESTree](https://github.com/estree/estree) compliant AST structure to run it on. The primary method is `eslintScope.analyze()`, which takes two arguments: + +1. `ast` - the ESTree-compliant AST structure to analyze. +2. `options` (optional) - Options to adjust how the scope is analyzed, including: + * `ignoreEval` (default: `false`) - Set to `true` to ignore all `eval()` calls (which would normally create scopes). + * `nodejsScope` (default: `false`) - Set to `true` to create a top-level function scope needed for CommonJS evaluation. + * `impliedStrict` (default: `false`) - Set to `true` to evaluate the code in strict mode even outside of modules and without `"use strict"`. + * `ecmaVersion` (default: `5`) - The version of ECMAScript to use to evaluate the code. + * `sourceType` (default: `"script"`) - The type of JavaScript file to evaluate. Change to `"module"` for ECMAScript module code. + * `childVisitorKeys` (default: `null`) - An object with visitor key information (like [`eslint-visitor-keys`](https://github.com/eslint/js/tree/main/packages/eslint-visitor-keys)). Without this, `eslint-scope` finds child nodes to visit algorithmically. Providing this option is a performance enhancement. + * `fallback` (default: `"iteration"`) - The strategy to use when `childVisitorKeys` is not specified. May be a function. + Example: ```js @@ -33,8 +45,13 @@ import * as eslintScope from 'eslint-scope'; import * as espree from 'espree'; import estraverse from 'estraverse'; -const ast = espree.parse(code, { range: true }); -const scopeManager = eslintScope.analyze(ast); +const options = { + ecmaVersion: 2022, + sourceType: "module" +}; + +const ast = espree.parse(code, { range: true, ...options }); +const scopeManager = eslintScope.analyze(ast, options); const currentScope = scopeManager.acquire(ast); // global scope @@ -58,7 +75,11 @@ estraverse.traverse(ast, { ## Contributing -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/eslint-scope/issues). +Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/js/issues). + +## Security Policy + +We work hard to ensure that ESLint Scope is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md). ## Build Commands @@ -68,3 +89,20 @@ Issues and pull requests will be triaged and responded to as quickly as possible ## License ESLint Scope is licensed under a permissive BSD 2-clause license. + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/eslint-scope/dist/eslint-scope.cjs b/node_modules/eslint-scope/dist/eslint-scope.cjs index 291fcdcd..0c41a3f0 100644 --- a/node_modules/eslint-scope/dist/eslint-scope.cjs +++ b/node_modules/eslint-scope/dist/eslint-scope.cjs @@ -2,16 +2,32 @@ Object.defineProperty(exports, '__esModule', { value: true }); -var assert = require('assert'); var estraverse = require('estraverse'); var esrecurse = require('esrecurse'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } -var assert__default = /*#__PURE__*/_interopDefaultLegacy(assert); var estraverse__default = /*#__PURE__*/_interopDefaultLegacy(estraverse); var esrecurse__default = /*#__PURE__*/_interopDefaultLegacy(esrecurse); +/** + * @fileoverview Assertion utilities. + * @author Nicholas C. Zakas + */ + +/** + * Throws an error if the given condition is not truthy. + * @param {boolean} condition The condition to check. + * @param {string} message The message to include with the error. + * @returns {void} + * @throws {Error} When the condition is not truthy. + */ +function assert(condition, message = "Assertion failed.") { + if (!condition) { + throw new Error(message); + } +} + /* Copyright (C) 2015 Yusuke Suzuki @@ -373,10 +389,9 @@ const { Syntax: Syntax$2 } = estraverse__default["default"]; * @param {Scope} scope scope * @param {Block} block block * @param {boolean} isMethodDefinition is method definition - * @param {boolean} useDirective use directive * @returns {boolean} is strict scope */ -function isStrictScope(scope, block, isMethodDefinition, useDirective) { +function isStrictScope(scope, block, isMethodDefinition) { let body; // When upper scope is exists and strict, inner scope is also strict. @@ -416,41 +431,29 @@ function isStrictScope(scope, block, isMethodDefinition, useDirective) { return false; } - // Search 'use strict' directive. - if (useDirective) { - for (let i = 0, iz = body.body.length; i < iz; ++i) { - const stmt = body.body[i]; + // Search for a 'use strict' directive. + for (let i = 0, iz = body.body.length; i < iz; ++i) { + const stmt = body.body[i]; - if (stmt.type !== Syntax$2.DirectiveStatement) { - break; - } - if (stmt.raw === "\"use strict\"" || stmt.raw === "'use strict'") { - return true; - } + /* + * Check if the current statement is a directive. + * If it isn't, then we're past the directive prologue + * so stop the search because directives cannot + * appear after this point. + * + * Some parsers set `directive:null` on non-directive + * statements, so the `typeof` check is safer than + * checking for property existence. + */ + if (typeof stmt.directive !== "string") { + break; } - } else { - for (let i = 0, iz = body.body.length; i < iz; ++i) { - const stmt = body.body[i]; - - if (stmt.type !== Syntax$2.ExpressionStatement) { - break; - } - const expr = stmt.expression; - if (expr.type !== Syntax$2.Literal || typeof expr.value !== "string") { - break; - } - if (expr.raw !== null && expr.raw !== undefined) { - if (expr.raw === "\"use strict\"" || expr.raw === "'use strict'") { - return true; - } - } else { - if (expr.value === "use strict") { - return true; - } - } + if (stmt.directive === "use strict") { + return true; } } + return false; } @@ -507,7 +510,8 @@ class Scope { /** * The tainted variables of this scope, as { Variable.name : * boolean }. - * @member {Map} Scope#taints */ + * @member {Map} Scope#taints + */ this.taints = new Map(); /** @@ -598,7 +602,7 @@ class Scope { * @member {boolean} Scope#isStrict */ this.isStrict = scopeManager.isStrictModeSupported() - ? isStrictScope(this, block, isMethodDefinition, scopeManager.__useDirective()) + ? isStrictScope(this, block, isMethodDefinition) : false; /** @@ -686,7 +690,7 @@ class Scope { // To override by function scopes. // References in default parameters isn't resolved to variables which are in their function body. - __isValidResolution(ref, variable) { // eslint-disable-line class-methods-use-this, no-unused-vars + __isValidResolution(ref, variable) { // eslint-disable-line class-methods-use-this, no-unused-vars -- Desired as instance method with signature return true; } @@ -720,17 +724,17 @@ class Scope { } __addDeclaredVariablesOfNode(variable, node) { - if (node === null || node === undefined) { + if (node === null || node === void 0) { return; } let variables = this.__declaredVariables.get(node); - if (variables === null || variables === undefined) { + if (variables === null || variables === void 0) { variables = []; this.__declaredVariables.set(node, variables); } - if (variables.indexOf(variable) === -1) { + if (!variables.includes(variable)) { variables.push(variable); } } @@ -812,8 +816,8 @@ class Scope { resolve(ident) { let ref, i, iz; - assert__default["default"](this.__isClosed(), "Scope should be closed."); - assert__default["default"](ident.type === Syntax$2.Identifier, "Target should be identifier."); + assert(this.__isClosed(), "Scope should be closed."); + assert(ident.type === Syntax$2.Identifier, "Target should be identifier."); for (i = 0, iz = this.references.length; i < iz; ++i) { ref = this.references[i]; if (ref.identifier === ident) { @@ -837,7 +841,7 @@ class Scope { * @function Scope#isArgumentsMaterialized * @returns {boolean} arguemnts materialized */ - isArgumentsMaterialized() { // eslint-disable-line class-methods-use-this + isArgumentsMaterialized() { // eslint-disable-line class-methods-use-this -- Desired as instance method return true; } @@ -846,7 +850,7 @@ class Scope { * @function Scope#isThisMaterialized * @returns {boolean} this materialized */ - isThisMaterialized() { // eslint-disable-line class-methods-use-this + isThisMaterialized() { // eslint-disable-line class-methods-use-this -- Desired as instance method return true; } @@ -863,6 +867,9 @@ class Scope { } } +/** + * Global scope. + */ class GlobalScope extends Scope { constructor(scopeManager, block) { super(scopeManager, "global", null, block, false); @@ -924,12 +931,18 @@ class GlobalScope extends Scope { } } +/** + * Module scope. + */ class ModuleScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "module", upperScope, block, false); } } +/** + * Function expression name scope. + */ class FunctionExpressionNameScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "function-expression-name", upperScope, block, false); @@ -946,12 +959,18 @@ class FunctionExpressionNameScope extends Scope { } } +/** + * Catch scope. + */ class CatchScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "catch", upperScope, block, false); } } +/** + * With statement scope. + */ class WithScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "with", upperScope, block, false); @@ -974,18 +993,27 @@ class WithScope extends Scope { } } +/** + * Block scope. + */ class BlockScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "block", upperScope, block, false); } } +/** + * Switch scope. + */ class SwitchScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "switch", upperScope, block, false); } } +/** + * Function scope. + */ class FunctionScope extends Scope { constructor(scopeManager, upperScope, block, isMethodDefinition) { super(scopeManager, "function", upperScope, block, isMethodDefinition); @@ -1017,7 +1045,7 @@ class FunctionScope extends Scope { const variable = this.set.get("arguments"); - assert__default["default"](variable, "Always have arguments variable."); + assert(variable, "Always have arguments variable."); return variable.tainted || variable.references.length !== 0; } @@ -1063,24 +1091,36 @@ class FunctionScope extends Scope { } } +/** + * Scope of for, for-in, and for-of statements. + */ class ForScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "for", upperScope, block, false); } } +/** + * Class scope. + */ class ClassScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class", upperScope, block, false); } } +/** + * Class field initializer scope. + */ class ClassFieldInitializerScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class-field-initializer", upperScope, block, true); } } +/** + * Class static block scope. + */ class ClassStaticBlockScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class-static-block", upperScope, block, true); @@ -1126,10 +1166,6 @@ class ScopeManager { this.__declaredVariables = new WeakMap(); } - __useDirective() { - return this.__options.directive; - } - __isOptimistic() { return this.__options.optimistic; } @@ -1257,13 +1293,13 @@ class ScopeManager { return null; } - attach() { } // eslint-disable-line class-methods-use-this + attach() { } // eslint-disable-line class-methods-use-this -- Desired as instance method - detach() { } // eslint-disable-line class-methods-use-this + detach() { } // eslint-disable-line class-methods-use-this -- Desired as instance method __nestScope(scope) { if (scope instanceof GlobalScope) { - assert__default["default"](this.__currentScope === null); + assert(this.__currentScope === null); this.globalScope = scope; } this.__currentScope = scope; @@ -1357,9 +1393,12 @@ const { Syntax: Syntax$1 } = estraverse__default["default"]; * @returns {any} Last elment */ function getLast(xs) { - return xs[xs.length - 1] || null; + return xs.at(-1) || null; } +/** + * Visitor for destructuring patterns. + */ class PatternVisitor extends esrecurse__default["default"].Visitor { static isPattern(node) { const nodeType = node.type; @@ -1388,7 +1427,7 @@ class PatternVisitor extends esrecurse__default["default"].Visitor { this.callback(pattern, { topLevel: pattern === this.rootPattern, - rest: lastRestElement !== null && lastRestElement !== undefined && lastRestElement.argument === pattern, + rest: lastRestElement !== null && lastRestElement !== void 0 && lastRestElement.argument === pattern, assignments: this.assignments }); } @@ -1514,7 +1553,7 @@ function traverseIdentifierInPattern(options, rootPattern, referencer, callback) visitor.visit(rootPattern); // Process the right hand nodes recursively. - if (referencer !== null && referencer !== undefined) { + if (referencer !== null && referencer !== void 0) { visitor.rightHandNodes.forEach(referencer.visit, referencer); } } @@ -1525,6 +1564,9 @@ function traverseIdentifierInPattern(options, rootPattern, referencer, callback) // FIXME: Now, we don't create module environment, because the context is // implementation dependent. +/** + * Visitor for import specifiers. + */ class Importer extends esrecurse__default["default"].Visitor { constructor(declaration, referencer) { super(null, referencer.options); @@ -1571,7 +1613,9 @@ class Importer extends esrecurse__default["default"].Visitor { } } -// Referencing variables and creating bindings. +/** + * Referencing variables and creating bindings. + */ class Referencer extends esrecurse__default["default"].Visitor { constructor(options, scopeManager) { super(null, options); @@ -1735,8 +1779,6 @@ class Referencer extends esrecurse__default["default"].Visitor { )); } - this.visit(node.superClass); - this.scopeManager.__nestClassScope(node); if (node.id) { @@ -1747,6 +1789,8 @@ class Referencer extends esrecurse__default["default"].Visitor { node )); } + + this.visit(node.superClass); this.visit(node.body); this.close(node); @@ -1856,7 +1900,7 @@ class Referencer extends esrecurse__default["default"].Visitor { this.currentScope().__define(pattern, new Definition( Variable.CatchClause, - node.param, + pattern, node, null, null, @@ -1895,7 +1939,7 @@ class Referencer extends esrecurse__default["default"].Visitor { this.currentScope().__referencing(node); } - // eslint-disable-next-line class-methods-use-this + // eslint-disable-next-line class-methods-use-this -- Desired as instance method PrivateIdentifier() { // Do nothing. @@ -1945,9 +1989,9 @@ class Referencer extends esrecurse__default["default"].Visitor { this.visitProperty(node); } - BreakStatement() {} // eslint-disable-line class-methods-use-this + BreakStatement() {} // eslint-disable-line class-methods-use-this -- Desired as instance method - ContinueStatement() {} // eslint-disable-line class-methods-use-this + ContinueStatement() {} // eslint-disable-line class-methods-use-this -- Desired as instance method LabeledStatement(node) { this.visit(node.body); @@ -2062,7 +2106,7 @@ class Referencer extends esrecurse__default["default"].Visitor { } ImportDeclaration(node) { - assert__default["default"](this.scopeManager.__isES6() && this.scopeManager.isModule(), "ImportDeclaration should appear when the mode is ES6 and in the module context."); + assert(this.scopeManager.__isES6() && this.scopeManager.isModule(), "ImportDeclaration should appear when the mode is ES6 and in the module context."); const importer = new Importer(node, this); @@ -2106,7 +2150,7 @@ class Referencer extends esrecurse__default["default"].Visitor { this.visit(local); } - MetaProperty() { // eslint-disable-line class-methods-use-this + MetaProperty() { // eslint-disable-line class-methods-use-this -- Desired as instance method // do nothing. } @@ -2114,7 +2158,7 @@ class Referencer extends esrecurse__default["default"].Visitor { /* vim: set sw=4 ts=4 et tw=80 : */ -const version = "7.2.2"; +const version = "8.2.0"; /* Copyright (C) 2012-2014 Yusuke Suzuki @@ -2149,7 +2193,6 @@ const version = "7.2.2"; function defaultOptions() { return { optimistic: false, - directive: false, nodejsScope: false, impliedStrict: false, sourceType: "script", // one of ['script', 'module', 'commonjs'] @@ -2177,7 +2220,7 @@ function updateDeeply(target, override) { } for (const key in override) { - if (Object.prototype.hasOwnProperty.call(override, key)) { + if (Object.hasOwn(override, key)) { const val = override[key]; if (isHashObject(val)) { @@ -2201,7 +2244,6 @@ function updateDeeply(target, override) { * @param {espree.Tree} tree Abstract Syntax Tree * @param {Object} providedOptions Options that tailor the scope analysis * @param {boolean} [providedOptions.optimistic=false] the optimistic flag - * @param {boolean} [providedOptions.directive=false] the directive flag * @param {boolean} [providedOptions.ignoreEval=false] whether to check 'eval()' calls * @param {boolean} [providedOptions.nodejsScope=false] whether the whole * script is executed under node.js environment. When enabled, escope adds @@ -2221,7 +2263,7 @@ function analyze(tree, providedOptions) { referencer.visit(tree); - assert__default["default"](scopeManager.__currentScope === null, "currentScope should be null."); + assert(scopeManager.__currentScope === null, "currentScope should be null."); return scopeManager; } diff --git a/node_modules/eslint-scope/lib/assert.js b/node_modules/eslint-scope/lib/assert.js new file mode 100644 index 00000000..6300bce7 --- /dev/null +++ b/node_modules/eslint-scope/lib/assert.js @@ -0,0 +1,17 @@ +/** + * @fileoverview Assertion utilities. + * @author Nicholas C. Zakas + */ + +/** + * Throws an error if the given condition is not truthy. + * @param {boolean} condition The condition to check. + * @param {string} message The message to include with the error. + * @returns {void} + * @throws {Error} When the condition is not truthy. + */ +export function assert(condition, message = "Assertion failed.") { + if (!condition) { + throw new Error(message); + } +} diff --git a/node_modules/eslint-scope/lib/index.js b/node_modules/eslint-scope/lib/index.js index cd0678d2..7e79c923 100644 --- a/node_modules/eslint-scope/lib/index.js +++ b/node_modules/eslint-scope/lib/index.js @@ -45,9 +45,8 @@ * The main interface is the {@link analyze} function. * @module escope */ -/* eslint no-underscore-dangle: ["error", { "allow": ["__currentScope"] }] */ -import assert from "assert"; +import { assert } from "./assert.js"; import ScopeManager from "./scope-manager.js"; import Referencer from "./referencer.js"; @@ -63,7 +62,6 @@ import eslintScopeVersion from "./version.js"; function defaultOptions() { return { optimistic: false, - directive: false, nodejsScope: false, impliedStrict: false, sourceType: "script", // one of ['script', 'module', 'commonjs'] @@ -91,7 +89,7 @@ function updateDeeply(target, override) { } for (const key in override) { - if (Object.prototype.hasOwnProperty.call(override, key)) { + if (Object.hasOwn(override, key)) { const val = override[key]; if (isHashObject(val)) { @@ -115,7 +113,6 @@ function updateDeeply(target, override) { * @param {espree.Tree} tree Abstract Syntax Tree * @param {Object} providedOptions Options that tailor the scope analysis * @param {boolean} [providedOptions.optimistic=false] the optimistic flag - * @param {boolean} [providedOptions.directive=false] the directive flag * @param {boolean} [providedOptions.ignoreEval=false] whether to check 'eval()' calls * @param {boolean} [providedOptions.nodejsScope=false] whether the whole * script is executed under node.js environment. When enabled, escope adds diff --git a/node_modules/eslint-scope/lib/pattern-visitor.js b/node_modules/eslint-scope/lib/pattern-visitor.js index a9ff48e5..367a3773 100644 --- a/node_modules/eslint-scope/lib/pattern-visitor.js +++ b/node_modules/eslint-scope/lib/pattern-visitor.js @@ -22,8 +22,6 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint-disable no-undefined */ - import estraverse from "estraverse"; import esrecurse from "esrecurse"; @@ -35,9 +33,12 @@ const { Syntax } = estraverse; * @returns {any} Last elment */ function getLast(xs) { - return xs[xs.length - 1] || null; + return xs.at(-1) || null; } +/** + * Visitor for destructuring patterns. + */ class PatternVisitor extends esrecurse.Visitor { static isPattern(node) { const nodeType = node.type; @@ -66,7 +67,7 @@ class PatternVisitor extends esrecurse.Visitor { this.callback(pattern, { topLevel: pattern === this.rootPattern, - rest: lastRestElement !== null && lastRestElement !== undefined && lastRestElement.argument === pattern, + rest: lastRestElement !== null && lastRestElement !== void 0 && lastRestElement.argument === pattern, assignments: this.assignments }); } diff --git a/node_modules/eslint-scope/lib/referencer.js b/node_modules/eslint-scope/lib/referencer.js index 6a5da521..f939aa83 100644 --- a/node_modules/eslint-scope/lib/referencer.js +++ b/node_modules/eslint-scope/lib/referencer.js @@ -22,16 +22,13 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint-disable no-underscore-dangle */ -/* eslint-disable no-undefined */ - import estraverse from "estraverse"; import esrecurse from "esrecurse"; import Reference from "./reference.js"; import Variable from "./variable.js"; import PatternVisitor from "./pattern-visitor.js"; import { Definition, ParameterDefinition } from "./definition.js"; -import assert from "assert"; +import { assert } from "./assert.js"; const { Syntax } = estraverse; @@ -51,7 +48,7 @@ function traverseIdentifierInPattern(options, rootPattern, referencer, callback) visitor.visit(rootPattern); // Process the right hand nodes recursively. - if (referencer !== null && referencer !== undefined) { + if (referencer !== null && referencer !== void 0) { visitor.rightHandNodes.forEach(referencer.visit, referencer); } } @@ -62,6 +59,9 @@ function traverseIdentifierInPattern(options, rootPattern, referencer, callback) // FIXME: Now, we don't create module environment, because the context is // implementation dependent. +/** + * Visitor for import specifiers. + */ class Importer extends esrecurse.Visitor { constructor(declaration, referencer) { super(null, referencer.options); @@ -108,7 +108,9 @@ class Importer extends esrecurse.Visitor { } } -// Referencing variables and creating bindings. +/** + * Referencing variables and creating bindings. + */ class Referencer extends esrecurse.Visitor { constructor(options, scopeManager) { super(null, options); @@ -272,8 +274,6 @@ class Referencer extends esrecurse.Visitor { )); } - this.visit(node.superClass); - this.scopeManager.__nestClassScope(node); if (node.id) { @@ -284,6 +284,8 @@ class Referencer extends esrecurse.Visitor { node )); } + + this.visit(node.superClass); this.visit(node.body); this.close(node); @@ -393,7 +395,7 @@ class Referencer extends esrecurse.Visitor { this.currentScope().__define(pattern, new Definition( Variable.CatchClause, - node.param, + pattern, node, null, null, @@ -432,7 +434,7 @@ class Referencer extends esrecurse.Visitor { this.currentScope().__referencing(node); } - // eslint-disable-next-line class-methods-use-this + // eslint-disable-next-line class-methods-use-this -- Desired as instance method PrivateIdentifier() { // Do nothing. @@ -482,9 +484,9 @@ class Referencer extends esrecurse.Visitor { this.visitProperty(node); } - BreakStatement() {} // eslint-disable-line class-methods-use-this + BreakStatement() {} // eslint-disable-line class-methods-use-this -- Desired as instance method - ContinueStatement() {} // eslint-disable-line class-methods-use-this + ContinueStatement() {} // eslint-disable-line class-methods-use-this -- Desired as instance method LabeledStatement(node) { this.visit(node.body); @@ -643,7 +645,7 @@ class Referencer extends esrecurse.Visitor { this.visit(local); } - MetaProperty() { // eslint-disable-line class-methods-use-this + MetaProperty() { // eslint-disable-line class-methods-use-this -- Desired as instance method // do nothing. } diff --git a/node_modules/eslint-scope/lib/scope-manager.js b/node_modules/eslint-scope/lib/scope-manager.js index d2270f1f..a136648f 100644 --- a/node_modules/eslint-scope/lib/scope-manager.js +++ b/node_modules/eslint-scope/lib/scope-manager.js @@ -22,8 +22,6 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint-disable no-underscore-dangle */ - import { BlockScope, CatchScope, @@ -38,7 +36,7 @@ import { SwitchScope, WithScope } from "./scope.js"; -import assert from "assert"; +import { assert } from "./assert.js"; /** * @constructor ScopeManager @@ -53,10 +51,6 @@ class ScopeManager { this.__declaredVariables = new WeakMap(); } - __useDirective() { - return this.__options.directive; - } - __isOptimistic() { return this.__options.optimistic; } @@ -184,9 +178,9 @@ class ScopeManager { return null; } - attach() { } // eslint-disable-line class-methods-use-this + attach() { } // eslint-disable-line class-methods-use-this -- Desired as instance method - detach() { } // eslint-disable-line class-methods-use-this + detach() { } // eslint-disable-line class-methods-use-this -- Desired as instance method __nestScope(scope) { if (scope instanceof GlobalScope) { diff --git a/node_modules/eslint-scope/lib/scope.js b/node_modules/eslint-scope/lib/scope.js index 0619b906..b3ef0266 100644 --- a/node_modules/eslint-scope/lib/scope.js +++ b/node_modules/eslint-scope/lib/scope.js @@ -22,15 +22,12 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint-disable no-underscore-dangle */ -/* eslint-disable no-undefined */ - import estraverse from "estraverse"; import Reference from "./reference.js"; import Variable from "./variable.js"; import { Definition } from "./definition.js"; -import assert from "assert"; +import { assert } from "./assert.js"; const { Syntax } = estraverse; @@ -39,10 +36,9 @@ const { Syntax } = estraverse; * @param {Scope} scope scope * @param {Block} block block * @param {boolean} isMethodDefinition is method definition - * @param {boolean} useDirective use directive * @returns {boolean} is strict scope */ -function isStrictScope(scope, block, isMethodDefinition, useDirective) { +function isStrictScope(scope, block, isMethodDefinition) { let body; // When upper scope is exists and strict, inner scope is also strict. @@ -82,41 +78,29 @@ function isStrictScope(scope, block, isMethodDefinition, useDirective) { return false; } - // Search 'use strict' directive. - if (useDirective) { - for (let i = 0, iz = body.body.length; i < iz; ++i) { - const stmt = body.body[i]; + // Search for a 'use strict' directive. + for (let i = 0, iz = body.body.length; i < iz; ++i) { + const stmt = body.body[i]; - if (stmt.type !== Syntax.DirectiveStatement) { - break; - } - if (stmt.raw === "\"use strict\"" || stmt.raw === "'use strict'") { - return true; - } + /* + * Check if the current statement is a directive. + * If it isn't, then we're past the directive prologue + * so stop the search because directives cannot + * appear after this point. + * + * Some parsers set `directive:null` on non-directive + * statements, so the `typeof` check is safer than + * checking for property existence. + */ + if (typeof stmt.directive !== "string") { + break; } - } else { - for (let i = 0, iz = body.body.length; i < iz; ++i) { - const stmt = body.body[i]; - - if (stmt.type !== Syntax.ExpressionStatement) { - break; - } - const expr = stmt.expression; - if (expr.type !== Syntax.Literal || typeof expr.value !== "string") { - break; - } - if (expr.raw !== null && expr.raw !== undefined) { - if (expr.raw === "\"use strict\"" || expr.raw === "'use strict'") { - return true; - } - } else { - if (expr.value === "use strict") { - return true; - } - } + if (stmt.directive === "use strict") { + return true; } } + return false; } @@ -173,7 +157,8 @@ class Scope { /** * The tainted variables of this scope, as { Variable.name : * boolean }. - * @member {Map} Scope#taints */ + * @member {Map} Scope#taints + */ this.taints = new Map(); /** @@ -264,7 +249,7 @@ class Scope { * @member {boolean} Scope#isStrict */ this.isStrict = scopeManager.isStrictModeSupported() - ? isStrictScope(this, block, isMethodDefinition, scopeManager.__useDirective()) + ? isStrictScope(this, block, isMethodDefinition) : false; /** @@ -352,7 +337,7 @@ class Scope { // To override by function scopes. // References in default parameters isn't resolved to variables which are in their function body. - __isValidResolution(ref, variable) { // eslint-disable-line class-methods-use-this, no-unused-vars + __isValidResolution(ref, variable) { // eslint-disable-line class-methods-use-this, no-unused-vars -- Desired as instance method with signature return true; } @@ -386,17 +371,17 @@ class Scope { } __addDeclaredVariablesOfNode(variable, node) { - if (node === null || node === undefined) { + if (node === null || node === void 0) { return; } let variables = this.__declaredVariables.get(node); - if (variables === null || variables === undefined) { + if (variables === null || variables === void 0) { variables = []; this.__declaredVariables.set(node, variables); } - if (variables.indexOf(variable) === -1) { + if (!variables.includes(variable)) { variables.push(variable); } } @@ -503,7 +488,7 @@ class Scope { * @function Scope#isArgumentsMaterialized * @returns {boolean} arguemnts materialized */ - isArgumentsMaterialized() { // eslint-disable-line class-methods-use-this + isArgumentsMaterialized() { // eslint-disable-line class-methods-use-this -- Desired as instance method return true; } @@ -512,7 +497,7 @@ class Scope { * @function Scope#isThisMaterialized * @returns {boolean} this materialized */ - isThisMaterialized() { // eslint-disable-line class-methods-use-this + isThisMaterialized() { // eslint-disable-line class-methods-use-this -- Desired as instance method return true; } @@ -529,6 +514,9 @@ class Scope { } } +/** + * Global scope. + */ class GlobalScope extends Scope { constructor(scopeManager, block) { super(scopeManager, "global", null, block, false); @@ -590,12 +578,18 @@ class GlobalScope extends Scope { } } +/** + * Module scope. + */ class ModuleScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "module", upperScope, block, false); } } +/** + * Function expression name scope. + */ class FunctionExpressionNameScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "function-expression-name", upperScope, block, false); @@ -612,12 +606,18 @@ class FunctionExpressionNameScope extends Scope { } } +/** + * Catch scope. + */ class CatchScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "catch", upperScope, block, false); } } +/** + * With statement scope. + */ class WithScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "with", upperScope, block, false); @@ -640,18 +640,27 @@ class WithScope extends Scope { } } +/** + * Block scope. + */ class BlockScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "block", upperScope, block, false); } } +/** + * Switch scope. + */ class SwitchScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "switch", upperScope, block, false); } } +/** + * Function scope. + */ class FunctionScope extends Scope { constructor(scopeManager, upperScope, block, isMethodDefinition) { super(scopeManager, "function", upperScope, block, isMethodDefinition); @@ -729,24 +738,36 @@ class FunctionScope extends Scope { } } +/** + * Scope of for, for-in, and for-of statements. + */ class ForScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "for", upperScope, block, false); } } +/** + * Class scope. + */ class ClassScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class", upperScope, block, false); } } +/** + * Class field initializer scope. + */ class ClassFieldInitializerScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class-field-initializer", upperScope, block, true); } } +/** + * Class static block scope. + */ class ClassStaticBlockScope extends Scope { constructor(scopeManager, upperScope, block) { super(scopeManager, "class-static-block", upperScope, block, true); diff --git a/node_modules/eslint-scope/lib/version.js b/node_modules/eslint-scope/lib/version.js index 7e7f6522..8108bb36 100644 --- a/node_modules/eslint-scope/lib/version.js +++ b/node_modules/eslint-scope/lib/version.js @@ -1,3 +1,3 @@ -const version = "7.2.2"; +const version = "8.2.0"; export default version; diff --git a/node_modules/eslint-scope/package.json b/node_modules/eslint-scope/package.json index 0aae36d3..759d8ec3 100644 --- a/node_modules/eslint-scope/package.json +++ b/node_modules/eslint-scope/package.json @@ -1,7 +1,7 @@ { "name": "eslint-scope", "description": "ECMAScript scope analyzer for ESLint", - "homepage": "http://github.com/eslint/eslint-scope", + "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-scope/README.md", "main": "./dist/eslint-scope.cjs", "type": "module", "exports": { @@ -11,27 +11,27 @@ }, "./package.json": "./package.json" }, - "version": "7.2.2", + "version": "8.2.0", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "repository": "eslint/eslint-scope", + "repository": "eslint/js", "funding": "https://opencollective.com/eslint", "bugs": { - "url": "https://github.com/eslint/eslint-scope/issues" + "url": "https://github.com/eslint/js/issues" }, "license": "BSD-2-Clause", "scripts": { "build": "rollup -c", - "lint": "npm run build && node Makefile.js lint", - "update-version": "node tools/update-version.js", - "test": "npm run build && node Makefile.js test", - "prepublishOnly": "npm run update-version && npm run build", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" + "build:update-version": "node tools/update-version.js", + "prepublishOnly": "npm run build:update-version && npm run build", + "pretest": "npm run build", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "node Makefile.js test" }, "files": [ "LICENSE", @@ -44,20 +44,16 @@ "estraverse": "^5.2.0" }, "devDependencies": { - "@typescript-eslint/parser": "^4.28.1", + "@typescript-eslint/parser": "^8.7.0", "c8": "^7.7.3", "chai": "^4.3.4", - "eslint": "^7.29.0", - "eslint-config-eslint": "^7.0.0", - "eslint-plugin-jsdoc": "^35.4.1", - "eslint-plugin-node": "^11.1.0", "eslint-release": "^3.2.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", "mocha": "^9.0.1", "npm-license": "^0.3.3", "rollup": "^2.52.7", - "shelljs": "^0.8.4", - "typescript": "^4.3.5" + "shelljs": "^0.8.5", + "typescript": "^5.4.2" } } diff --git a/node_modules/eslint/README.md b/node_modules/eslint/README.md index 227d40c7..bc00f368 100644 --- a/node_modules/eslint/README.md +++ b/node_modules/eslint/README.md @@ -21,56 +21,60 @@ ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and JSHint with a few exceptions: -* ESLint uses [Espree](https://github.com/eslint/espree) for JavaScript parsing. +* ESLint uses [Espree](https://github.com/eslint/js/tree/main/packages/espree) for JavaScript parsing. * ESLint uses an AST to evaluate patterns in code. * ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime. ## Table of Contents 1. [Installation and Usage](#installation-and-usage) -2. [Configuration](#configuration) -3. [Code of Conduct](#code-of-conduct) -4. [Filing Issues](#filing-issues) -5. [Frequently Asked Questions](#frequently-asked-questions) -6. [Releases](#releases) -7. [Security Policy](#security-policy) -8. [Semantic Versioning Policy](#semantic-versioning-policy) -9. [Stylistic Rule Updates](#stylistic-rule-updates) -10. [License](#license) -11. [Team](#team) -12. [Sponsors](#sponsors) -13. [Technology Sponsors](#technology-sponsors) +1. [Configuration](#configuration) +1. [Version Support](#version-support) +1. [Code of Conduct](#code-of-conduct) +1. [Filing Issues](#filing-issues) +1. [Frequently Asked Questions](#frequently-asked-questions) +1. [Releases](#releases) +1. [Security Policy](#security-policy) +1. [Semantic Versioning Policy](#semantic-versioning-policy) +1. [Stylistic Rule Updates](#stylistic-rule-updates) +1. [License](#license) +1. [Team](#team) +1. [Sponsors](#sponsors) +1. [Technology Sponsors](#technology-sponsors) ## Installation and Usage -Prerequisites: [Node.js](https://nodejs.org/) (`^12.22.0`, `^14.17.0`, or `>=16.0.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.) +Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.) You can install and configure ESLint using this command: ```shell -npm init @eslint/config +npm init @eslint/config@latest ``` After that, you can run ESLint on any file or directory like this: ```shell -./node_modules/.bin/eslint yourfile.js +npx eslint yourfile.js ``` ## Configuration -After running `npm init @eslint/config`, you'll have an `.eslintrc` file in your directory. In it, you'll see some rules configured like this: +You can configure rules in your `eslint.config.js` files as in this example: -```json -{ - "rules": { - "semi": ["error", "always"], - "quotes": ["error", "double"] +```js +export default [ + { + files: ["**/*.js", "**/*.cjs", "**/*.mjs"], + rules: { + "prefer-const": "warn", + "no-constant-binary-expression": "error" + } } -} +]; ``` -The names `"semi"` and `"quotes"` are the names of [rules](https://eslint.org/docs/rules) in ESLint. The first value is the error level of the rule and can be one of these values: +The names `"prefer-const"` and `"no-constant-binary-expression"` are the names of [rules](https://eslint.org/docs/rules) in ESLint. The first value is the error level of the rule and can be one of these values: * `"off"` or `0` - turn the rule off * `"warn"` or `1` - turn the rule on as a warning (doesn't affect exit code) @@ -78,9 +82,17 @@ The names `"semi"` and `"quotes"` are the names of [rules](https://eslint.org/do The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](https://eslint.org/docs/latest/use/configure)). +## Version Support + +The ESLint team provides ongoing support for the current version and six months of limited support for the previous version. Limited support includes critical bug fixes, security issues, and compatibility issues only. + +ESLint offers commercial support for both current and previous versions through our partners, [Tidelift][tidelift] and [HeroDevs][herodevs]. + +See [Version Support](https://eslint.org/version-support) for more details. + ## Code of Conduct -ESLint adheres to the [JS Foundation Code of Conduct](https://eslint.org/conduct). +ESLint adheres to the [OpenJS Foundation Code of Conduct](https://eslint.org/conduct). ## Filing Issues @@ -93,31 +105,17 @@ Before filing an issue, please be sure to read the guidelines for what you're re ## Frequently Asked Questions -### I'm using JSCS, should I migrate to ESLint? - -Yes. [JSCS has reached end of life](https://eslint.org/blog/2016/07/jscs-end-of-life) and is no longer supported. - -We have prepared a [migration guide](https://eslint.org/docs/latest/use/migrating-from-jscs) to help you convert your JSCS settings to an ESLint configuration. +### Does ESLint support JSX? -We are now at or near 100% compatibility with JSCS. If you try ESLint and believe we are not yet compatible with a JSCS rule/configuration, please create an issue (mentioning that it is a JSCS compatibility issue) and we will evaluate it as per our normal process. +Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](https://eslint.org/docs/latest/use/configure)). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics. ### Does Prettier replace ESLint? -No, ESLint and Prettier have diffent jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter. Using both tools is common, refer to [Prettier's documentation](https://prettier.io/docs/en/install#eslint-and-other-linters) to learn how to configure them to work well with each other. - -### Why can't ESLint find my plugins? - -* Make sure your plugins (and ESLint) are both in your project's `package.json` as devDependencies (or dependencies, if your project uses ESLint at runtime). -* Make sure you have run `npm install` and all your dependencies are installed. -* Make sure your plugins' peerDependencies have been installed as well. You can use `npm view eslint-plugin-myplugin peerDependencies` to see what peer dependencies `eslint-plugin-myplugin` has. - -### Does ESLint support JSX? - -Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](https://eslint.org/docs/latest/use/configure)). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics. +No, ESLint and Prettier have different jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter. Using both tools is common, refer to [Prettier's documentation](https://prettier.io/docs/en/install#eslint-and-other-linters) to learn how to configure them to work well with each other. ### What ECMAScript versions does ESLint support? -ESLint has full support for ECMAScript 3, 5 (default), 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, and 2023. You can set your desired ECMAScript syntax (and other settings, like global variables or your target environments) through [configuration](https://eslint.org/docs/latest/use/configure). +ESLint has full support for ECMAScript 3, 5, and every year from 2015 up until the most recent stage 4 specification (the default). You can set your desired ECMAScript syntax and other settings (like global variables) through [configuration](https://eslint.org/docs/latest/use/configure). ### What about experimental features? @@ -127,6 +125,18 @@ In other cases (including if rules need to warn on more or fewer cases due to ne Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](https://eslint.org/docs/latest/contribute). Until then, please use the appropriate parser and plugin(s) for your experimental feature. +### Which Node.js versions does ESLint support? + +ESLint updates the supported Node.js versions with each major release of ESLint. At that time, ESLint's supported Node.js versions are updated to be: + +1. The most recent maintenance release of Node.js +1. The lowest minor version of the Node.js LTS release that includes the features the ESLint team wants to use. +1. The Node.js Current release + +ESLint is also expected to work with Node.js versions released after the Node.js Current release. + +Refer to the [Quick Start Guide](https://eslint.org/docs/latest/use/getting-started#prerequisites) for the officially supported Node.js versions for a given ESLint release. + ### Where to ask for help? Open a [discussion](https://github.com/eslint/eslint/discussions) or stop by our [Discord server](https://eslint.org/chat). @@ -213,6 +223,11 @@ The people who manage releases, review feature requests, and meet regularly to e Nicholas C. Zakas + +Francesco Trotta's Avatar
+Francesco Trotta +
+ Milos Djermanovic's Avatar
Milos Djermanovic @@ -240,19 +255,9 @@ Nitin Kumar The people who review and fix bugs and help triage issues. >>0)return w(S);switch(tr){case 0:return b(S);case 1:return N(S);case 2:break;default:return j(S)}}break;case 3:for(;;){W(S,30);var sr=D5(y(S));if(3>>0)return w(S);switch(sr){case 0:return e(S);case 1:return N(S);case 2:break;default:return I(S)}}break;case 4:W(S,29);var Mr=MU(y(S));if(Mr===0)return e(S);if(Mr!==1)return w(S);x:{r:for(;;){W(S,10);var a2=$5(y(S));if(3>>0)return w(S);switch(a2){case 0:return F(S);case 1:break;case 2:break x;default:break r}}W(S,8);var _2=X2(y(S));if(_2!==0)return _2===1?F(S):w(S);for(;;)if(W(S,7),cr(y(S))!==0)return w(S)}x:for(;;){if(hs(y(S))!==0)return w(S);r:for(;;){W(S,10);var i2=$5(y(S));if(3>>0)return w(S);switch(i2){case 0:return M(S);case 1:break;case 2:break r;default:break x}}}W(S,8);var Q2=X2(y(S));if(Q2!==0)return Q2===1?M(S):w(S);for(;;)if(W(S,7),cr(y(S))!==0)return w(S);break;case 5:return t(S);case 6:W(S,29);var jx=UU(y(S));if(jx===0)return e(S);if(jx!==1)return w(S);x:{r:for(;;){W(S,14);var _=W5(y(S));if(3<_>>>0)return w(S);switch(_){case 0:return z(S);case 1:break;case 2:break x;default:break r}}W(S,12);var V=X2(y(S));if(V!==0)return V===1?z(S):w(S);for(;;)if(W(S,11),cr(y(S))!==0)return w(S)}x:for(;;){if(V1(y(S))!==0)return w(S);r:for(;;){W(S,14);var lx=W5(y(S));if(3>>0)return w(S);switch(lx){case 0:return B(S);case 1:break;case 2:break r;default:break x}}}W(S,12);var U0=X2(y(S));if(U0!==0)return U0===1?B(S):w(S);for(;;)if(W(S,11),cr(y(S))!==0)return w(S);break;case 7:W(S,29);var ox=jU(y(S));if(ox===0)return e(S);if(ox!==1)return w(S);x:{r:for(;;){W(S,20);var wx=Q5(y(S));if(3>>0)return w(S);switch(wx){case 0:return K(S);case 1:break;case 2:break x;default:break r}}W(S,18);var Cr=X2(y(S));if(Cr!==0)return Cr===1?K(S):w(S);for(;;)if(W(S,17),cr(y(S))!==0)return w(S)}x:for(;;){if(Tr(y(S))!==0)return w(S);r:for(;;){W(S,20);var Hx=Q5(y(S));if(3>>0)return w(S);switch(Hx){case 0:return n0(S);case 1:break;case 2:break r;default:break x}}}W(S,18);var Zr=X2(y(S));if(Zr!==0)return Zr===1?n0(S):w(S);for(;;)if(W(S,17),cr(y(S))!==0)return w(S);break;default:return I(S)}break;case 18:W(S,30);var dr=L5(y(S));if(5>>0)return w(S);switch(dr){case 0:return e(S);case 1:return T(S);case 2:for(;;){W(S,30);var Or=L5(y(S));if(5>>0)return w(S);switch(Or){case 0:return e(S);case 1:return T(S);case 2:break;case 3:return t(S);case 4:return $(S);default:return I(S)}}break;case 3:return t(S);case 4:return $(S);default:return I(S)}break;case 19:return 44;case 20:return 42;case 21:return 49;case 22:W(S,51);var x2=y(S),ux=61>>0)return Tx(on0);var t0=H;if(34>t0)switch(t0){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var c0=A1(x,r),r0=$r(Br),v0=Ev(x,r0,r),a0=v0[1];return[1,a0,qt(a0,c0,v0[2],r0,1)];case 3:var g0=Dx(r);if(!x[5]){var i0=A1(x,r),s0=$r(Br);ir(s0,g0);var d0=Ev(x,s0,r),w0=d0[1];return[1,w0,qt(w0,i0,d0[2],s0,1)]}var M0=x[4]?ZU(x,zr(x,r),g0):x,C0=A5(1,M0),D0=w5(r);return br(J6(r,D0-1|0,1),Mo)&&P(J6(r,D0-2|0,1),Mo)?[0,C0,87]:[2,C0];case 4:if(x[4])return[2,A5(0,x)];xl(r),or(r);var I0=OU(y(r))===0?0:w(r);return I0===0?[0,x,K2]:Tx(vn0);case 5:var j0=A1(x,r),y0=$r(Br),Y0=nl(x,y0,r),L=Y0[1];return[1,L,qt(L,j0,Y0[2],y0,0)];case 6:var N0=Dx(r),S0=A1(x,r),K0=$r(Br),A0=$r(Br);ir(A0,N0);var $0=nB(x,N0,K0,A0,0,r),ex=$0[1],xx=$0[3],tx=[0,ex[1],S0,$0[2]],z0=G2(A0);return[0,ex,[2,[0,tx,G2(K0),z0,xx]]];case 7:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&q5(y(G))===0&&hs(y(G))===0){r:for(;;){var rx=C5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(hs(y(G))===0){e:for(;;){var yx=C5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(0,l2(G))]:Tx(an0)});case 8:return[0,x,Bt(0,l2(r))];case 9:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&q5(y(G))===0&&hs(y(G))===0){for(;;){W(G,0);var rx=j5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(hs(y(G))===0){for(;;){W(G,0);var yx=j5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(0,l2(G))]:Tx(sn0)});case 10:return[0,x,Ut(0,l2(r))];case 11:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&z5(y(G))===0&&V1(y(G))===0){r:for(;;){var rx=M5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(V1(y(G))===0){e:for(;;){var yx=M5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(1,l2(G))]:Tx(cn0)});case 12:return[0,x,Bt(1,l2(r))];case 13:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&z5(y(G))===0&&V1(y(G))===0){for(;;){W(G,0);var rx=R5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(V1(y(G))===0){for(;;){W(G,0);var yx=R5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(3,l2(G))]:Tx(fn0)});case 14:return[0,x,Ut(3,l2(r))];case 15:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&V1(y(G))===0){for(;;)if(W(G,0),V1(y(G))!==0){var rx=w(G);break}}else var rx=w(G);return rx===0?[0,S,Ut(1,l2(G))]:Tx(in0)});case 16:return[0,x,Ut(1,l2(r))];case 17:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&I5(y(G))===0&&Tr(y(G))===0){r:for(;;){var rx=O5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(Tr(y(G))===0){e:for(;;){var yx=O5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(2,l2(G))]:Tx(un0)});case 18:return[0,x,Bt(2,l2(r))];case 19:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&I5(y(G))===0&&Tr(y(G))===0){for(;;){W(G,0);var rx=G5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(Tr(y(G))===0){for(;;){W(G,0);var yx=G5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(4,l2(G))]:Tx(nn0)});case 20:return[0,x,Ut(4,l2(r))];case 21:return D2(x,r,function(S,G){function rx(kx){var tr=H5(y(kx));if(2>>0)return w(kx);switch(tr){case 0:var sr=to(y(kx));return sr===0?yx(kx):sr===1?Ex(kx):w(kx);case 1:return yx(kx);default:return Ex(kx)}}function yx(kx){for(;;){var tr=el(y(kx));if(tr!==0)return tr===1?0:w(kx)}}function Ex(kx){for(;;){var tr=Lt(y(kx));if(2>>0)return w(kx);switch(tr){case 0:break;case 1:for(;;){if(vr(y(kx))!==0)return w(kx);x:for(;;){var sr=Lt(y(kx));if(2>>0)return w(kx);switch(sr){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function nx(kx){var tr=K5(y(kx));if(tr!==0)return tr===1?rx(kx):w(kx);x:for(;;){var sr=ve(y(kx));if(2>>0)return w(kx);switch(sr){case 0:break;case 1:return rx(kx);default:break x}}for(;;){if(vr(y(kx))!==0)return w(kx);x:for(;;){var Mr=ve(y(kx));if(2>>0)return w(kx);switch(Mr){case 0:break;case 1:return rx(kx);default:break x}}}}or(G);var p0=eo(y(G));if(2>>0)var Fx=w(G);else x:switch(p0){case 0:if(vr(y(G))===0){r:for(;;){var Sx=ve(y(G));if(2>>0){var Fx=w(G);break x}switch(Sx){case 0:break;case 1:var Fx=rx(G);break x;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var bx=ve(y(G));if(2>>0){var B0=w(G);break r}switch(bx){case 0:break;case 1:var B0=rx(G);break r;default:break e}}continue}var B0=w(G)}var Fx=B0;break}}else var Fx=w(G);break;case 1:var Wx=N5(y(G)),Fx=Wx===0?nx(G):Wx===1?rx(G):w(G);break;default:r:for(;;){var Yx=Y5(y(G));if(2>>0){var Fx=w(G);break}switch(Yx){case 0:var Fx=nx(G);break r;case 1:break;default:var Fx=rx(G);break r}}}if(Fx!==0)return Tx(tn0);var ax=l2(G),Qx=P1(S,zr(S,G),42);return[0,Qx,Bt(2,ax)]});case 22:var px=l2(r),sx=P1(x,zr(x,r),42);return[0,sx,Bt(2,px)];case 23:return D2(x,r,function(S,G){function rx(ax){var Qx=H5(y(ax));if(2>>0)return w(ax);switch(Qx){case 0:var kx=to(y(ax));return kx===0?yx(ax):kx===1?Ex(ax):w(ax);case 1:return yx(ax);default:return Ex(ax)}}function yx(ax){for(;;)if(W(ax,0),vr(y(ax))!==0)return w(ax)}function Ex(ax){for(;;){W(ax,0);var Qx=uo(y(ax));if(Qx!==0){if(Qx!==1)return w(ax);for(;;){if(vr(y(ax))!==0)return w(ax);for(;;){W(ax,0);var kx=uo(y(ax));if(kx!==0)break}if(kx!==1)return w(ax)}}}}function nx(ax){var Qx=K5(y(ax));if(Qx!==0)return Qx===1?rx(ax):w(ax);x:for(;;){var kx=ve(y(ax));if(2>>0)return w(ax);switch(kx){case 0:break;case 1:return rx(ax);default:break x}}for(;;){if(vr(y(ax))!==0)return w(ax);x:for(;;){var tr=ve(y(ax));if(2>>0)return w(ax);switch(tr){case 0:break;case 1:return rx(ax);default:break x}}}}or(G);var p0=eo(y(G));if(2>>0)var Fx=w(G);else x:switch(p0){case 0:if(vr(y(G))===0){r:for(;;){var Sx=ve(y(G));if(2>>0){var Fx=w(G);break x}switch(Sx){case 0:break;case 1:var Fx=rx(G);break x;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var bx=ve(y(G));if(2>>0){var B0=w(G);break r}switch(bx){case 0:break;case 1:var B0=rx(G);break r;default:break e}}continue}var B0=w(G)}var Fx=B0;break}}else var Fx=w(G);break;case 1:var Wx=N5(y(G)),Fx=Wx===0?nx(G):Wx===1?rx(G):w(G);break;default:r:for(;;){var Yx=Y5(y(G));if(2>>0){var Fx=w(G);break}switch(Yx){case 0:var Fx=nx(G);break r;case 1:break;default:var Fx=rx(G);break r}}}return Fx===0?[0,S,Ut(4,l2(G))]:Tx(en0)});case 24:return[0,x,Ut(4,l2(r))];case 25:return D2(x,r,function(S,G){function rx(Yx){for(;;){var ax=Lt(y(Yx));if(2>>0)return w(Yx);switch(ax){case 0:break;case 1:for(;;){if(vr(y(Yx))!==0)return w(Yx);x:for(;;){var Qx=Lt(y(Yx));if(2>>0)return w(Yx);switch(Qx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function yx(Yx){var ax=el(y(Yx));return ax===0?rx(Yx):ax===1?0:w(Yx)}or(G);var Ex=eo(y(G));if(2>>0)var nx=w(G);else x:switch(Ex){case 0:var nx=vr(y(G))===0?rx(G):w(G);break;case 1:for(;;){var p0=tl(y(G));if(p0===0){var nx=yx(G);break}if(p0!==1){var nx=w(G);break}}break;default:r:for(;;){var Fx=io(y(G));if(2>>0){var nx=w(G);break x}switch(Fx){case 0:var nx=yx(G);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var Sx=io(y(G));if(2>>0){var bx=w(G);break r}switch(Sx){case 0:var bx=yx(G);break r;case 1:break;default:break e}}continue}var bx=w(G)}var nx=bx;break}}if(nx!==0)return Tx(rn0);var B0=l2(G),Wx=P1(S,zr(S,G),34);return[0,Wx,Bt(2,B0)]});case 26:return D2(x,r,function(S,G){or(G);var rx=to(y(G));x:if(rx===0)for(;;){var yx=el(y(G));if(yx!==0){if(yx===1){var Fx=0;break}var Fx=w(G);break}}else if(rx===1){r:for(;;){var Ex=Lt(y(G));if(2>>0){var Fx=w(G);break x}switch(Ex){case 0:break;case 1:break r;default:var Fx=0;break x}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var nx=Lt(y(G));if(2>>0){var p0=w(G);break r}switch(nx){case 0:break;case 1:break e;default:var p0=0;break r}}continue}var p0=w(G)}var Fx=p0;break}}else var Fx=w(G);return Fx===0?[0,S,Bt(2,l2(G))]:Tx(xn0)});case 27:var Q=l2(r),b0=P1(x,zr(x,r),34);return[0,b0,Bt(2,Q)];case 28:return[0,x,Bt(2,l2(r))];case 29:return D2(x,r,function(S,G){function rx(B0){for(;;){W(B0,0);var Wx=uo(y(B0));if(Wx!==0){if(Wx!==1)return w(B0);for(;;){if(vr(y(B0))!==0)return w(B0);for(;;){W(B0,0);var Yx=uo(y(B0));if(Yx!==0)break}if(Yx!==1)return w(B0)}}}}function yx(B0){return W(B0,0),vr(y(B0))===0?rx(B0):w(B0)}or(G);var Ex=eo(y(G));if(2>>0)var nx=w(G);else x:switch(Ex){case 0:var nx=vr(y(G))===0?rx(G):w(G);break;case 1:for(;;){W(G,0);var p0=tl(y(G));if(p0===0){var nx=yx(G);break}if(p0!==1){var nx=w(G);break}}break;default:r:for(;;){W(G,0);var Fx=io(y(G));if(2>>0){var nx=w(G);break x}switch(Fx){case 0:var nx=yx(G);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){W(G,0);var Sx=io(y(G));if(2>>0){var bx=w(G);break r}switch(Sx){case 0:var bx=yx(G);break r;case 1:break;default:break e}}continue}var bx=w(G)}var nx=bx;break}}return nx===0?[0,S,Ut(4,l2(G))]:Tx(Zt0)});case 30:return[0,x,Ut(4,l2(r))];case 31:return[0,x,67];case 32:return[0,x,6];default:return[0,x,7]}switch(t0){case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,87];case 45:return[0,x,84];case 46:return[0,x,86];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,99];case 50:return[0,x,y2];case 51:return[0,x,83];case 52:return[0,x,86];case 53:return[0,x,K2];case 54:return[0,x,87];case 55:return[0,x,89];case 56:return[0,x,88];case 57:return[0,x,90];case 58:return[0,x,92];case 59:return[0,x,11];case 60:return[0,x,83];case 61:return[0,x,Be];case 62:return[0,x,ui];case 63:return[0,x,r8];case 64:return[0,x,_k];case 65:var U=r[6];QU(r);var h0=Q6(x,U,r[3]);Lj(r,U);var _0=l2(r),m0=eB(x,_0),T0=m0[2],X=m0[1],Gx=fx(T0,Op);if(0<=Gx){if(0>=Gx)return[0,X,Wa];var Px=fx(T0,v6);if(0<=Px){if(0>=Px)return[0,X,s2];if(!P(T0,ra))return[0,X,32];if(!P(T0,Zs))return[0,X,47];if(!P(T0,fk))return[0,X,Ba];if(!P(T0,Ip))return[0,X,rn];if(!P(T0,Ws))return[0,X,m6]}else{if(!P(T0,Fp))return[0,X,S3];if(!P(T0,uv))return[0,X,30];if(!P(T0,p3))return[0,X,P3];if(!P(T0,Zo))return[0,X,Br];if(!P(T0,Re))return[0,X,43];if(!P(T0,l3))return[0,X,vf]}}else{var G0=fx(T0,Qf);if(0<=G0){if(0>=G0)return[0,X,42];if(!P(T0,Gs))return[0,X,31];if(!P(T0,m3))return[0,X,r6];if(!P(T0,KO))return[0,X,M2];if(!P(T0,ie))return[0,X,54];if(!P(T0,a6))return[0,X,Xo];if(!P(T0,H8))return[0,X,Sk]}else{if(!P(T0,yp))return[0,X,tv];if(!P(T0,b3))return[0,X,d6];if(!P(T0,av))return[0,X,zl];if(!P(T0,k8))return[0,X,pn0];if(!P(T0,$l))return[0,X,ln0];if(!P(T0,be))return[0,X,y6]}}return[0,X,[4,h0,T0,G6(_0)]];case 66:var Kr=x[4]?P1(x,zr(x,r),91):x;return[0,Kr,mr];default:return[0,x,[7,Dx(r)]]}}),Wb0=H6(function(x,r){function e(_){for(;;)if(W(_,33),cr(y(_))!==0)return w(_)}function t(_){W(_,33);var V=zU(y(_));if(3>>0)return w(_);switch(V){case 0:return e(_);case 1:var lx=to(y(_));if(lx===0)for(;;){W(_,28);var U0=rl(y(_));if(2>>0)return w(_);switch(U0){case 0:return u(_);case 1:break;default:return i(_)}}else{if(lx!==1)return w(_);for(;;){W(_,28);var ox=ds(y(_));if(3>>0)return w(_);switch(ox){case 0:return u(_);case 1:break;case 2:return c(_);default:return i(_)}}}break;case 2:for(;;){W(_,28);var wx=rl(y(_));if(2>>0)return w(_);switch(wx){case 0:return v(_);case 1:break;default:return a(_)}}break;default:for(;;){W(_,28);var Cr=ds(y(_));if(3>>0)return w(_);switch(Cr){case 0:return v(_);case 1:break;case 2:return c(_);default:return a(_)}}}}function u(_){for(;;)if(W(_,27),cr(y(_))!==0)return w(_)}function i(_){W(_,26);var V=X2(y(_));if(V!==0)return V===1?u(_):w(_);for(;;)if(W(_,25),cr(y(_))!==0)return w(_)}function c(_){for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,28);var V=ds(y(_));if(3>>0)return w(_);switch(V){case 0:return u(_);case 1:break;case 2:break x;default:return i(_)}}}}function v(_){for(;;)if(W(_,27),cr(y(_))!==0)return w(_)}function a(_){W(_,26);var V=X2(y(_));if(V!==0)return V===1?v(_):w(_);for(;;)if(W(_,25),cr(y(_))!==0)return w(_)}function l(_){W(_,31);var V=X2(y(_));if(V!==0)return V===1?e(_):w(_);for(;;)if(W(_,29),cr(y(_))!==0)return w(_)}function m(_){return W(_,3),VU(y(_))===0?3:w(_)}function h(_){return J5(y(_))===0&&X5(y(_))===0&&JU(y(_))===0&&RU(y(_))===0&&LU(y(_))===0&&B5(y(_))===0&&V6(y(_))===0&&J5(y(_))===0&&fo(y(_))===0&&$j(y(_))===0&&Tv(y(_))===0?3:w(_)}function T(_){W(_,34);var V=DU(y(_));if(3>>0)return w(_);switch(V){case 0:return e(_);case 1:x:for(;;){W(_,34);var lx=no(y(_));if(4>>0)return w(_);switch(lx){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var U0=no(y(_));if(4>>0)return w(_);switch(U0){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}}break;case 2:return t(_);default:return l(_)}}function b(_){for(;;)if(W(_,19),cr(y(_))!==0)return w(_)}function N(_){W(_,34);var V=rl(y(_));if(2>>0)return w(_);switch(V){case 0:return e(_);case 1:x:for(;;){W(_,34);var lx=ds(y(_));if(3>>0)return w(_);switch(lx){case 0:return e(_);case 1:break;case 2:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var U0=ds(y(_));if(3>>0)return w(_);switch(U0){case 0:return e(_);case 1:break;case 2:break x;default:return l(_)}}}break;default:return l(_)}}function j(_){for(;;)if(W(_,17),cr(y(_))!==0)return w(_)}function I(_){for(;;)if(W(_,17),cr(y(_))!==0)return w(_)}function F(_){for(;;)if(W(_,11),cr(y(_))!==0)return w(_)}function M(_){for(;;)if(W(_,11),cr(y(_))!==0)return w(_)}function z(_){for(;;)if(W(_,15),cr(y(_))!==0)return w(_)}function B(_){for(;;)if(W(_,15),cr(y(_))!==0)return w(_)}function K(_){for(;;)if(W(_,23),cr(y(_))!==0)return w(_)}function n0(_){for(;;)if(W(_,23),cr(y(_))!==0)return w(_)}function $(_){W(_,32);var V=X2(y(_));if(V!==0)return V===1?e(_):w(_);for(;;)if(W(_,30),cr(y(_))!==0)return w(_)}function H(_){for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var V=XU(y(_));if(4>>0)return w(_);switch(V){case 0:return e(_);case 1:return N(_);case 2:break;case 3:break x;default:return $(_)}}}}or(r);var t0=function(_){var V=Ub0(y(_));if(36>>0)return w(_);switch(V){case 0:return 98;case 1:return 99;case 2:if(W(_,1),ms(y(_))!==0)return w(_);for(;;)if(W(_,1),ms(y(_))!==0)return w(_);break;case 3:return 0;case 4:return W(_,0),Ae(y(_))===0?0:w(_);case 5:return W(_,88),hn(y(_))===0?(W(_,58),hn(y(_))===0?54:w(_)):w(_);case 6:return 7;case 7:W(_,95);var lx=y(_),U0=32>>0)return w(_);switch(Cr){case 0:return W(_,83),hn(y(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:W(_,80);var Hx=y(_),Zr=42>>0)return w(_);switch(ux){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var Lx=no(y(_));if(4>>0)return w(_);switch(Lx){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}}break;case 18:W(_,93);var Zx=FU(y(_));if(2>>0)return w(_);switch(Zx){case 0:W(_,2);var qr=F5(y(_));if(2>>0)return w(_);switch(qr){case 0:for(;;){var Y2=F5(y(_));if(2>>0)return w(_);switch(Y2){case 0:break;case 1:return m(_);default:return h(_)}}break;case 1:return m(_);default:return h(_)}break;case 1:return 5;default:return 92}break;case 19:W(_,34);var H2=qU(y(_));if(8

>>0)return w(_);switch(H2){case 0:return e(_);case 1:return T(_);case 2:x:{r:for(;;){W(_,20);var Kt=KU(y(_));if(4>>0)return w(_);switch(Kt){case 0:return b(_);case 1:return N(_);case 2:break;case 3:break x;default:break r}}W(_,19);var dt=X2(y(_));if(dt!==0)return dt===1?b(_):w(_);for(;;)if(W(_,19),cr(y(_))!==0)return w(_)}x:for(;;){W(_,18);var Jt=D5(y(_));if(3>>0)return w(_);switch(Jt){case 0:return j(_);case 1:return N(_);case 2:break;default:break x}}W(_,17);var C1=X2(y(_));if(C1!==0)return C1===1?j(_):w(_);for(;;)if(W(_,17),cr(y(_))!==0)return w(_);break;case 3:x:for(;;){W(_,18);var q1=D5(y(_));if(3>>0)return w(_);switch(q1){case 0:return I(_);case 1:return N(_);case 2:break;default:break x}}W(_,17);var b2=X2(y(_));if(b2!==0)return b2===1?I(_):w(_);for(;;)if(W(_,17),cr(y(_))!==0)return w(_);break;case 4:W(_,33);var wn=MU(y(_));if(wn===0)return e(_);if(wn!==1)return w(_);x:{r:for(;;){W(_,12);var _n=$5(y(_));if(3<_n>>>0)return w(_);switch(_n){case 0:return F(_);case 1:break;case 2:break x;default:break r}}W(_,10);var bs=X2(y(_));if(bs!==0)return bs===1?F(_):w(_);for(;;)if(W(_,9),cr(y(_))!==0)return w(_)}x:for(;;){if(hs(y(_))!==0)return w(_);r:for(;;){W(_,12);var le=$5(y(_));if(3>>0)return w(_);switch(le){case 0:return M(_);case 1:break;case 2:break r;default:break x}}}W(_,10);var Ze=X2(y(_));if(Ze!==0)return Ze===1?M(_):w(_);for(;;)if(W(_,9),cr(y(_))!==0)return w(_);break;case 5:return t(_);case 6:W(_,33);var Ts=UU(y(_));if(Ts===0)return e(_);if(Ts!==1)return w(_);x:{r:for(;;){W(_,16);var Lv=W5(y(_));if(3>>0)return w(_);switch(Lv){case 0:return z(_);case 1:break;case 2:break x;default:break r}}W(_,14);var yt=X2(y(_));if(yt!==0)return yt===1?z(_):w(_);for(;;)if(W(_,13),cr(y(_))!==0)return w(_)}x:for(;;){if(V1(y(_))!==0)return w(_);r:for(;;){W(_,16);var yr=W5(y(_));if(3>>0)return w(_);switch(yr){case 0:return B(_);case 1:break;case 2:break r;default:break x}}}W(_,14);var Ta=X2(y(_));if(Ta!==0)return Ta===1?B(_):w(_);for(;;)if(W(_,13),cr(y(_))!==0)return w(_);break;case 7:W(_,33);var Es=jU(y(_));if(Es===0)return e(_);if(Es!==1)return w(_);x:{r:for(;;){W(_,24);var gt=Q5(y(_));if(3>>0)return w(_);switch(gt){case 0:return K(_);case 1:break;case 2:break x;default:break r}}W(_,22);var Mv=X2(y(_));if(Mv!==0)return Mv===1?K(_):w(_);for(;;)if(W(_,21),cr(y(_))!==0)return w(_)}x:for(;;){if(Tr(y(_))!==0)return w(_);r:for(;;){W(_,24);var qv=Q5(y(_));if(3>>0)return w(_);switch(qv){case 0:return n0(_);case 1:break;case 2:break r;default:break x}}}W(_,22);var bn=X2(y(_));if(bn!==0)return bn===1?n0(_):w(_);for(;;)if(W(_,21),cr(y(_))!==0)return w(_);break;default:return $(_)}break;case 20:W(_,34);var Ea=L5(y(_));if(5>>0)return w(_);switch(Ea){case 0:return e(_);case 1:return T(_);case 2:for(;;){W(_,34);var ko=L5(y(_));if(5>>0)return w(_);switch(ko){case 0:return e(_);case 1:return T(_);case 2:break;case 3:return t(_);case 4:return H(_);default:return $(_)}}break;case 3:return t(_);case 4:return H(_);default:return $(_)}break;case 21:return 46;case 22:return 44;case 23:W(_,78);var Sa=y(_),Aa=59>>0)return Tx(hc0);var c0=t0;if(50>c0)switch(c0){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var r0=A1(x,r),v0=$r(Br),a0=Ev(x,v0,r),g0=a0[1];return[1,g0,qt(g0,r0,a0[2],v0,1)];case 3:var i0=Dx(r);if(!x[5]){var s0=A1(x,r),d0=$r(Br);ir(d0,T1(i0,2,Nx(i0)-2|0));var w0=Ev(x,d0,r),M0=w0[1];return[1,M0,qt(M0,s0,w0[2],d0,1)]}var C0=x[4]?ZU(x,zr(x,r),i0):x,D0=A5(1,C0),I0=w5(r);return br(J6(r,I0-1|0,1),Mo)&&P(J6(r,I0-2|0,1),Mo)?[0,D0,87]:[2,D0];case 4:if(x[4])return[2,A5(0,x)];xl(r),or(r);var j0=OU(y(r))===0?0:w(r);return j0===0?[0,x,K2]:Tx(dc0);case 5:var y0=A1(x,r),Y0=$r(Br),L=nl(x,Y0,r),N0=L[1];return[1,N0,qt(N0,y0,L[2],Y0,0)];case 6:if(r[6]!==0)return[0,x,yc0];var S0=A1(x,r),K0=$r(Br),A0=nl(x,K0,r),$0=A0[1],ex=[0,$0[1],S0,A0[2]];return[0,$0,[6,ex,G2(K0)]];case 7:var xx=Dx(r),tx=A1(x,r),z0=$r(Br),px=$r(Br);ir(px,xx);var sx=nB(x,xx,z0,px,0,r),Q=sx[1],b0=sx[3],U=[0,Q[1],tx,sx[2]],h0=G2(px);return[0,Q,[2,[0,U,G2(z0),h0,b0]]];case 8:var _0=$r(Br),m0=$r(Br),T0=A1(x,r),X=uB(x,_0,m0,r),Gx=X[1],Px=X[2],G0=Pe(Gx,r),Kr=[0,Gx[1],T0,G0],S=G2(m0);return[0,Gx,[3,[0,Kr,G2(_0),S,1,Px]]];case 9:return D2(x,r,function(_,V){or(V);x:if(Se(y(V))===0&&q5(y(V))===0&&hs(y(V))===0){r:for(;;){var lx=C5(y(V));if(2>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(hs(y(V))===0){e:for(;;){var U0=C5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,0,Dx(V)]]:Tx(mc0)});case 10:return[0,x,[1,0,Dx(r)]];case 11:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&q5(y(V))===0&&hs(y(V))===0){for(;;){W(V,0);var lx=j5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(hs(y(V))===0){for(;;){W(V,0);var U0=j5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,0,Dx(V)]]:Tx(kc0)});case 12:return[0,x,[0,0,Dx(r)]];case 13:return D2(x,r,function(_,V){or(V);x:if(Se(y(V))===0&&z5(y(V))===0&&V1(y(V))===0){r:for(;;){var lx=M5(y(V));if(2>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(V1(y(V))===0){e:for(;;){var U0=M5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,1,Dx(V)]]:Tx(pc0)});case 14:return[0,x,[1,1,Dx(r)]];case 15:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&z5(y(V))===0&&V1(y(V))===0){for(;;){W(V,0);var lx=R5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(V1(y(V))===0){for(;;){W(V,0);var U0=R5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,3,Dx(V)]]:Tx(lc0)});case 16:return[0,x,[0,3,Dx(r)]];case 17:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0){for(;;){var lx=y(V),U0=47>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(Tr(y(V))===0){e:for(;;){var U0=O5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,2,Dx(V)]]:Tx(ac0)});case 22:return[0,x,[1,2,Dx(r)]];case 23:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&I5(y(V))===0&&Tr(y(V))===0){for(;;){W(V,0);var lx=G5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(Tr(y(V))===0){for(;;){W(V,0);var U0=G5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,4,Dx(V)]]:Tx(sc0)});case 24:return[0,x,[0,4,Dx(r)]];case 25:return D2(x,r,function(_,V){function lx(Zx){var qr=H5(y(Zx));if(2>>0)return w(Zx);switch(qr){case 0:var Y2=to(y(Zx));return Y2===0?U0(Zx):Y2===1?ox(Zx):w(Zx);case 1:return U0(Zx);default:return ox(Zx)}}function U0(Zx){for(;;){var qr=el(y(Zx));if(qr!==0)return qr===1?0:w(Zx)}}function ox(Zx){for(;;){var qr=Lt(y(Zx));if(2>>0)return w(Zx);switch(qr){case 0:break;case 1:for(;;){if(vr(y(Zx))!==0)return w(Zx);x:for(;;){var Y2=Lt(y(Zx));if(2>>0)return w(Zx);switch(Y2){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function wx(Zx){var qr=K5(y(Zx));if(qr!==0)return qr===1?lx(Zx):w(Zx);x:for(;;){var Y2=ve(y(Zx));if(2>>0)return w(Zx);switch(Y2){case 0:break;case 1:return lx(Zx);default:break x}}for(;;){if(vr(y(Zx))!==0)return w(Zx);x:for(;;){var H2=ve(y(Zx));if(2

>>0)return w(Zx);switch(H2){case 0:break;case 1:return lx(Zx);default:break x}}}}or(V);var Cr=eo(y(V));if(2>>0)var Hx=w(V);else x:switch(Cr){case 0:if(vr(y(V))===0){r:for(;;){var Zr=ve(y(V));if(2>>0){var Hx=w(V);break x}switch(Zr){case 0:break;case 1:var Hx=lx(V);break x;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var dr=ve(y(V));if(2>>0){var Or=w(V);break r}switch(dr){case 0:break;case 1:var Or=lx(V);break r;default:break e}}continue}var Or=w(V)}var Hx=Or;break}}else var Hx=w(V);break;case 1:var x2=N5(y(V)),Hx=x2===0?wx(V):x2===1?lx(V):w(V);break;default:r:for(;;){var ux=Y5(y(V));if(2>>0){var Hx=w(V);break}switch(ux){case 0:var Hx=wx(V);break r;case 1:break;default:var Hx=lx(V);break r}}}if(Hx!==0)return Tx(cc0);var Lx=P1(_,zr(_,V),42);return[0,Lx,[1,2,Dx(V)]]});case 26:var G=P1(x,zr(x,r),42);return[0,G,[1,2,Dx(r)]];case 27:return D2(x,r,function(_,V){function lx(Lx){var Zx=H5(y(Lx));if(2>>0)return w(Lx);switch(Zx){case 0:var qr=to(y(Lx));return qr===0?U0(Lx):qr===1?ox(Lx):w(Lx);case 1:return U0(Lx);default:return ox(Lx)}}function U0(Lx){for(;;)if(W(Lx,0),vr(y(Lx))!==0)return w(Lx)}function ox(Lx){for(;;){W(Lx,0);var Zx=uo(y(Lx));if(Zx!==0){if(Zx!==1)return w(Lx);for(;;){if(vr(y(Lx))!==0)return w(Lx);for(;;){W(Lx,0);var qr=uo(y(Lx));if(qr!==0)break}if(qr!==1)return w(Lx)}}}}function wx(Lx){var Zx=K5(y(Lx));if(Zx!==0)return Zx===1?lx(Lx):w(Lx);x:for(;;){var qr=ve(y(Lx));if(2>>0)return w(Lx);switch(qr){case 0:break;case 1:return lx(Lx);default:break x}}for(;;){if(vr(y(Lx))!==0)return w(Lx);x:for(;;){var Y2=ve(y(Lx));if(2>>0)return w(Lx);switch(Y2){case 0:break;case 1:return lx(Lx);default:break x}}}}or(V);var Cr=eo(y(V));if(2>>0)var Hx=w(V);else x:switch(Cr){case 0:if(vr(y(V))===0){r:for(;;){var Zr=ve(y(V));if(2>>0){var Hx=w(V);break x}switch(Zr){case 0:break;case 1:var Hx=lx(V);break x;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var dr=ve(y(V));if(2>>0){var Or=w(V);break r}switch(dr){case 0:break;case 1:var Or=lx(V);break r;default:break e}}continue}var Or=w(V)}var Hx=Or;break}}else var Hx=w(V);break;case 1:var x2=N5(y(V)),Hx=x2===0?wx(V):x2===1?lx(V):w(V);break;default:r:for(;;){var ux=Y5(y(V));if(2>>0){var Hx=w(V);break}switch(ux){case 0:var Hx=wx(V);break r;case 1:break;default:var Hx=lx(V);break r}}}return Hx===0?[0,_,[0,4,Dx(V)]]:Tx(fc0)});case 28:return[0,x,[0,4,Dx(r)]];case 29:return D2(x,r,function(_,V){function lx(x2){for(;;){var ux=Lt(y(x2));if(2>>0)return w(x2);switch(ux){case 0:break;case 1:for(;;){if(vr(y(x2))!==0)return w(x2);x:for(;;){var Lx=Lt(y(x2));if(2>>0)return w(x2);switch(Lx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function U0(x2){var ux=el(y(x2));return ux===0?lx(x2):ux===1?0:w(x2)}or(V);var ox=eo(y(V));if(2>>0)var wx=w(V);else x:switch(ox){case 0:var wx=vr(y(V))===0?lx(V):w(V);break;case 1:for(;;){var Cr=tl(y(V));if(Cr===0){var wx=U0(V);break}if(Cr!==1){var wx=w(V);break}}break;default:r:for(;;){var Hx=io(y(V));if(2>>0){var wx=w(V);break x}switch(Hx){case 0:var wx=U0(V);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var Zr=io(y(V));if(2>>0){var dr=w(V);break r}switch(Zr){case 0:var dr=U0(V);break r;case 1:break;default:break e}}continue}var dr=w(V)}var wx=dr;break}}if(wx!==0)return Tx(ic0);var Or=P1(_,zr(_,V),34);return[0,Or,[1,2,Dx(V)]]});case 30:return D2(x,r,function(_,V){or(V);var lx=to(y(V));x:if(lx===0)for(;;){var U0=el(y(V));if(U0!==0){if(U0===1){var Hx=0;break}var Hx=w(V);break}}else if(lx===1){r:for(;;){var ox=Lt(y(V));if(2>>0){var Hx=w(V);break x}switch(ox){case 0:break;case 1:break r;default:var Hx=0;break x}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var wx=Lt(y(V));if(2>>0){var Cr=w(V);break r}switch(wx){case 0:break;case 1:break e;default:var Cr=0;break r}}continue}var Cr=w(V)}var Hx=Cr;break}}else var Hx=w(V);return Hx===0?[0,_,[1,2,Dx(V)]]:Tx(uc0)});case 31:var rx=P1(x,zr(x,r),34);return[0,rx,[1,2,Dx(r)]];case 32:return[0,x,[1,2,Dx(r)]];case 33:return D2(x,r,function(_,V){function lx(Or){for(;;){W(Or,0);var x2=uo(y(Or));if(x2!==0){if(x2!==1)return w(Or);for(;;){if(vr(y(Or))!==0)return w(Or);for(;;){W(Or,0);var ux=uo(y(Or));if(ux!==0)break}if(ux!==1)return w(Or)}}}}function U0(Or){return W(Or,0),vr(y(Or))===0?lx(Or):w(Or)}or(V);var ox=eo(y(V));if(2>>0)var wx=w(V);else x:switch(ox){case 0:var wx=vr(y(V))===0?lx(V):w(V);break;case 1:for(;;){W(V,0);var Cr=tl(y(V));if(Cr===0){var wx=U0(V);break}if(Cr!==1){var wx=w(V);break}}break;default:r:for(;;){W(V,0);var Hx=io(y(V));if(2>>0){var wx=w(V);break x}switch(Hx){case 0:var wx=U0(V);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){W(V,0);var Zr=io(y(V));if(2>>0){var dr=w(V);break r}switch(Zr){case 0:var dr=U0(V);break r;case 1:break;default:break e}}continue}var dr=w(V)}var wx=dr;break}}return wx===0?[0,_,[0,4,Dx(V)]]:Tx(nc0)});case 34:return[0,x,[0,4,Dx(r)]];case 35:var yx=zr(x,r),Ex=Dx(r);return[0,x,[4,yx,Ex,Ex]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,87];case 47:xl(r),or(r);var nx=y(r),p0=62=Wx)return[0,x,54];var Yx=fx(B0,N3);if(0<=Yx){if(0>=Yx)return[0,x,52];var ax=fx(B0,Zs);if(0<=ax){if(0>=ax)return[0,x,47];if(!P(B0,Yl))return[0,x,25];if(!P(B0,Ws))return[0,x,48];if(!P(B0,L4))return[0,x,26];if(!P(B0,Hk))return[0,x,27];if(!P(B0,B1))return[0,x,59]}else{if(!P(B0,Ge))return[0,x,20];if(!P(B0,Qo))return[0,x,22];if(!P(B0,ze))return[0,x,23];if(!P(B0,ra))return[0,x,32];if(!P(B0,y8))return[0,x,24];if(!P(B0,qf))return[0,x,62]}}else{var Qx=fx(B0,Bp);if(0<=Qx){if(0>=Qx)return[0,x,55];if(!P(B0,h6))return[0,x,56];if(!P(B0,Rl))return[0,x,57];if(!P(B0,l6))return[0,x,58];if(!P(B0,Xe))return[0,x,19];if(!P(B0,Re))return[0,x,43]}else{if(!P(B0,j3))return[0,x,29];if(!P(B0,oI))return[0,x,21];if(!P(B0,rv))return[0,x,45];if(!P(B0,uv))return[0,x,30];if(!P(B0,sS))return[0,x,64];if(!P(B0,ib))return[0,x,63]}}}else{var kx=fx(B0,Xp);if(0<=kx){if(0>=kx)return[0,x,44];var tr=fx(B0,h3);if(0<=tr){if(0>=tr)return[0,x,15];if(!P(B0,d8))return[0,x,16];if(!P(B0,cv))return[0,x,53];if(!P(B0,X1))return[0,x,51];if(!P(B0,qa))return[0,x,17];if(!P(B0,Gl))return[0,x,18]}else{if(!P(B0,Ql))return[0,x,49];if(!P(B0,Nm))return[0,x,50];if(!P(B0,Qf))return[0,x,42];if(!P(B0,Gs))return[0,x,31];if(!P(B0,e8))return[0,x,39];if(!P(B0,f8))return[0,x,40]}}else{var sr=fx(B0,u6);if(0<=sr){if(0>=sr)return[0,x,28];if(!P(B0,Le))return[0,x,36];if(!P(B0,Ye))return[0,x,60];if(!P(B0,g6))return[0,x,61];if(!P(B0,Go))return[0,x,37];if(!P(B0,Kl))return[0,x,46];if(!P(B0,Rp))return[0,x,38]}else{if(!P(B0,Ka))return[0,x,65];if(!P(B0,nv))return[0,x,66];if(!P(B0,Ke))return[0,x,33];if(!P(B0,pp))return[0,x,34];if(!P(B0,V8))return[0,x,35];if(!P(B0,Ml))return[0,x,41]}}}var Mr=l2(r),a2=eB(x,Mr),_2=a2[2],i2=a2[1];return[0,i2,[4,bx,_2,G6(Mr)]];case 98:var Q2=x[4]?P1(x,zr(x,r),91):x;return[0,Q2,mr];default:var jx=mt(x,zr(x,r));return[0,jx,[7,Dx(r)]]}}),I1=pU([0,Sb0]);function Z6(x,r){return[0,0,0,r,bU(x)]}function xh(x){var r=x[4];switch(x[3]){case 0:var t0=Wb0(r);break;case 1:var t0=Gb0(r);break;case 2:var t0=Kb0(r);break;case 3:var e=Pe(r,r[2]),t=$r(Br),u=$r(Br),i=r[2];or(i);var c=y(i),v=rn>>0)var a=w(i);else switch(v){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:W(i,0);var a=Ae(y(i))===0?0:w(i);break;case 4:var a=2;break;default:var a=3}if(4>>0)var l=Tx(dn0);else switch(a){case 0:var m=Dx(i);ir(u,m),ir(t,m);var h=fB($1(r,i),t,u,i),T=Pe(h,i),b=G2(t),N=G2(u),l=[0,h,[9,[0,h[1],e,T],b,N]];break;case 1:var l=[0,r,mr];break;case 2:var l=[0,r,99];break;case 3:var l=[0,r,0];break;default:xl(i);var j=fB(r,t,u,i),I=Pe(j,i),F=G2(t),M=G2(u),l=[0,j,[9,[0,j[1],e,I],F,M]]}var z=l[2],B=l[1],K=HU(B,z),n0=B[6];if(n0===0)var H=[0,B,[0,z,K,0,0]];else var $=[0,z,K,ix(n0),0],H=[0,[0,B[1],B[2],B[3],B[4],B[5],0,B[7]],$];var t0=H;break;case 4:var t0=Jb0(r);break;default:var t0=zb0(r)}var c0=t0[1],r0=t0[2],v0=[0,bU(c0),r0];return x[4]=c0,x[1]?x[2]=[0,v0]:x[1]=[0,v0],v0}function cB(x){var r=x[1];return r?r[1][2]:xh(x)[2]}function ul(x){return C6(x[24][1])}function A2(x){return x[28][5]}function q0(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0}function x4(x,r){x[31][1]=r}function co(x,r){if(x===0)return cB(r[26][1]);if(x!==1)throw W0([0,Nr,Qc0],1);var e=r[26][1];e[1]||xh(e);var t=e[2];return t?t[1][2]:xh(e)[2]}function ha(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function sB(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Hj(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Zj(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function aB(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Sv(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function xC(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function r4(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function e4(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Av(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function rC(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function oB(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function vB(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function eC(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function rh(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function tC(x){function r(e){return q0(x,e)}return function(e){return b1(r,e)}}function il(x){var r=x[4][1];return r?[0,r[1][2]]:0}function lB(x){var r=x[4][1];return r?[0,r[1][1]]:0}function pB(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function kB(x,r,e,t){return[0,x[1],x[2],I1[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function fl(x){return P(x,cv)&&P(x,ie)&&P(x,j3)&&P(x,Bp)&&P(x,h6)&&P(x,Rl)&&P(x,l6)&&P(x,Re)&&P(x,B1)?0:1}function Pv(x){return P(x,lb)&&P(x,"eval")?0:1}function eh(x){var r=fx(x,d8);x:{if(0<=r){if(0>>0){if(Te>=t+1>>>0)return 1}else if(t===6)return 0}return Iv(x,r)}function sl(x){return dB(0,x)}function ya(x,r){var e=xr(x,r);x:{if(typeof e=="number")switch(e){case 29:case 43:case 53:case 54:case 55:case 56:case 57:case 58:case 59:var t=1;break x}else if(e[0]===4){var t=fl(e[2]);break x}var t=0}if(t)return 1;x:{if(typeof e=="number")switch(e){case 14:case 21:case 49:case 61:case 62:case 63:case 64:case 65:case 66:case 127:break;default:break x}else if(e[0]!==4)break x;return 1}return 0}function th(x,r){return mB(r,xr(x,r))}function yB(x,r){var e=ya(x,r);return e||th(x,r)}function dn(x){return ya(0,x)}function so(x){var r=q(x)===15?1:0;if(r)var e=r;else{var t=q(x)===65?1:0;if(t){var u=xr(1,x)===15?1:0;if(u)var i=cl(1,x)[2][1],e=V0(x)[3][1]===i?1:0;else var e=u}else var e=t}return e}function nh(x){var r=q(x);if(typeof r!="number"&&r[0]===4&&!P(r[3],Vo)){var e=x[28][1];if(e){var t=ya(1,x);if(t)var u=cl(1,x)[2][1],i=V0(x)[3][1]===u?1:0;else var i=t}else var i=e;return i}return 0}function t4(x){var r=q(x);if(typeof r=="number")switch(r){case 13:case 41:return 1}else if(r[0]===4&&!P(r[3],pA)&&xr(1,x)===41)return 1;return 0}function iC(x){var r=x[28][1];if(r){var e=q(x);if(typeof e!="number"&&e[0]===4&&!P(e[3],$s)&&ya(1,x))return 1;var t=0}else var t=r;return t}function fC(x){var r=q(x);return typeof r!="number"&&r[0]===4&&!P(r[3],_3)?1:0}function Ux(x,r){return q0(x,[0,V0(x),r])}function gB(x,r){var e=Kj(0,r);return x?[28,e,x[1]]:[26,e]}function p2(x,r){var e=uC(r);return tC(r)(e),Ux(r,gB(x,q(r)))}function uh(x){function r(e){return q0(x,[0,e[1],sv])}return function(e){return b1(r,e)}}function wB(x,r){var e=x[6]?H0(ar(Wc0),r,r,r):Vc0;return p2([0,e],x)}function Ie(x,r){var e=x[5];return e&&Ux(x,r)}function ht(x,r){var e=x[5],t=r[2],u=r[1];return e&&q0(x,[0,u,t])}function Nv(x,r){return q0(x,[0,r,[14,x[5]]])}function E0(x){var r=x[27][1];if(r){var e=r[1],t=ul(x),u=q(x);d(e,[0,V0(x),u,t])}var i=x[26][1],c=i[1],v=c?c[1][1]:xh(i)[1];x[25][1]=v;var a=uC(x);tC(x)(a);var l=x[2][1],m=K3(co(0,x)[4],l);x[2][1]=m;var h=[0,co(0,x)];x[4][1]=h;var T=x[26][1];return T[2]?(T[1]=T[2],T[2]=0,0):(cB(T),T[1]=0,0)}function u2(x,r){var e=EU(q(x),r);return e&&E0(x),e}function V2(x,r){x[24][1]=[0,r,x[24][1]];var e=ul(x),t=Z6(x[25][1],e);x[26][1]=t}function Z2(x){var r=x[24][1],e=r?r[2]:Tx(Gc0);x[24][1]=e;var t=ul(x),u=Z6(x[25][1],t);x[26][1]=u}function L0(x){var r=V0(x);if(q(x)===9&&Iv(1,x)){var e=u0(x),t=Mx(e,D6(function(i){return i[1][2][1]<=r[3][1]?1:0},co(1,x)[4]));return x4(x,[0,r[3][1]+1|0,0]),t}var u=u0(x);return x4(x,r[3]),u}function ao(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=D6(function(u){return u[1][2][1]<=e[3][1]?1:0},u0(x));return x4(x,[0,e[3][1]+1|0,0]),t}function yn(x,r){return p2([0,Kj(zc0,r)],x)}function J(x,r){return 1-EU(q(x),r)&&yn(x,r),E0(x)}function _B(x,r){var e=u2(x,r);return 1-e&&yn(x,r),e}function ih(x,r){_B(x,r)}function ys(x,r){var e=q(x);x:{if(typeof e!="number"&&e[0]===4&&br(e[3],r))break x;p2([0,d(ar(Yc0),r)],x)}return E0(x)}var gs=[n2,ts0,as(0)];function bB(x,r,e){if(e){var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var c=i[2];;){if(!c)return;var v=c[2];d(u,c[1]);var c=v}}}function cC(x,r){var e=x[27][1];if(e){var t=e[1],u=rq(O);x[27][1]=[0,function(M){return rj(M,u)}];var i=[0,[0,t,u]]}else var i=0;var c=x[31][1],v=x[25][1],a=x[24][1],l=x[4][1],m=x[2][1],h=x[1][1];try{var T=d(r,x);bB(1,x,i);var b=[0,T];return b}catch(F){var N=U2(F);if(N!==gs)throw W0(N,0);bB(0,x,i),x[1][1]=h,x[2][1]=m,x[4][1]=l,x[24][1]=a,x[25][1]=v,x[31][1]=c;var j=ul(x),I=Z6(x[25][1],j);return x[26][1]=I,0}}function fh(x,r,e){var t=cC(x,e);return t?t[1]:r}function n4(x,r){var e=ix(r);if(!e)return r;var t=e[1],u=e[2],i=d(x,t);return t===i?r:ix([0,i,u])}var TB=d5(cs0,function(x){var r=jj(x,us0),e=Ij(x,fs0),t=e[24],u=e[28],i=e[41],c=e[91],v=e[p6],a=e[lA],l=e[h_],m=e[WL],h=e[UR],T=e[NO],b=e[6],N=e[7],j=e[10],I=e[17],F=e[23],M=e[29],z=e[39],B=e[42],K=e[52],n0=e[61],$=e[Je],H=e[z1],t0=e[Wa],c0=e[P3],r0=e[DI],v0=e[OR],a0=e[IL],g0=e[YP],i0=e[Ap],s0=e[Cg],d0=e[gp],w0=e[B9],M0=e[O8],C0=e[Fb],D0=e[Wd],I0=e[QT],j0=e[RO],y0=e[wL],Y0=e[VD],L=e[qL],N0=e[dD],S0=e[$b],K0=e[iL],A0=e[XD],$0=e[FF],ex=e[gD],xx=e[hD],tx=e[SD],z0=e[ZR],px=e[iD],sx=Oj(x,0,0,LM,qj,1)[1];return Fj(x,[0,B,function(Q,b0){var U=b0[2],h0=D6(function(m0){return ma(m0[1][2],Q[1+r])<0?1:0},U),_0=aa(h0);return aa(U)===_0?b0:[0,b0[1],h0,b0[3]]},px,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},z0,function(Q,b0){var U=b0[2];return P0(d(Q[1][1+i],Q),U,b0,function(h0){return[0,b0[1],h0]})},tx,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},xx,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},ex,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},$0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+T],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},T,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},h,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},A0,function(Q,b0,U){var h0=U[7],_0=U[2],m0=p(Q[1][1+m],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],m0,U[3],U[4],U[5],U[6],T0]},m,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},K0,function(Q,b0,U){var h0=U[2],_0=U[1];if(h0===0)return P0(d(Q[1][1+a],Q),_0,U,function(T0){return[0,T0,U[2],U[3]]});var m0=d(Q[1][1+t],Q);return P0(function(T0){return Ax(m0,T0)},h0,U,function(T0){return[0,U[1],T0,U[3]]})},S0,function(Q,b0){var U=b0[2],h0=U[2],_0=b0[1],m0=U[1],T0=d(Q[1][1+l],Q);return P0(function(X){return n4(T0,X)},m0,b0,function(X){return[0,_0,[0,X,h0]]})},l,function(Q,b0){var U=b0[2],h0=U[2],_0=U[1],m0=b0[1];if(h0===0)return P0(d(Q[1][1+v],Q),_0,b0,function(X){return[0,m0,[0,X,h0]]});var T0=d(Q[1][1+t],Q);return P0(function(X){return Ax(T0,X)},h0,b0,function(X){return[0,m0,[0,_0,X]]})},L,function(Q,b0,U){var h0=U[6],_0=U[5],m0=p(Q[1][1+N0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],U[3],U[4],m0,T0,U[7]]},Y0,function(Q,b0){var U=b0[2],h0=b0[1],_0=U[3];return P0(d(Q[1][1+i],Q),_0,[0,h0,U],function(m0){return[0,h0,[0,U[1],U[2],m0]]})},y0,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},j0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},I0,function(Q,b0,U){var h0=U[10],_0=U[3],m0=p(Q[1][1+D0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,U[4],U[5],U[6],U[7],U[8],U[9],T0,U[11]]},C0,function(Q,b0){var U=b0[2],h0=b0[1],_0=U[4];return P0(d(Q[1][1+i],Q),_0,[0,h0,U],function(m0){return[0,h0,[0,U[1],U[2],U[3],m0]]})},M0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+w0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0,U[5]]},d0,function(Q,b0){if(b0[0]===0){var U=b0[1];return P0(d(Q[1][1+v],Q),U,b0,function(Gx){return[0,Gx]})}var h0=b0[1],_0=h0[2],m0=_0[2],T0=h0[1],X=p(Q[1][1+v],Q,m0);return m0===X?b0:[1,[0,T0,[0,_0[1],X]]]},s0,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},i0,function(Q,b0,U){var h0=U[3],_0=U[1],m0=W2(d(Q[1][1+c],Q),_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,m0,U[2],T0]},g0,function(Q,b0,U){var h0=U[2],_0=U[1],m0=_0[3],T0=_0[2],X=_0[1];if(m0)var Gx=n4(d(Q[1][1+u],Q),m0),Px=T0;else var Gx=0,Px=p(Q[1][1+u],Q,T0);var G0=p(Q[1][1+i],Q,h0);return T0===Px&&m0===Gx&&h0===G0?U:[0,[0,X,Px,Gx],G0]},a0,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},v0,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},r0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},H,function(Q,b0,U){var h0=U[4],_0=U[3],m0=U[2],T0=U[1],X=p(Q[1][1+i],Q,h0);if(_0){var Gx=Ax(d(Q[1][1+T],Q),_0);return _0===Gx&&h0===X?U:[0,U[1],U[2],Gx,X]}if(m0){var Px=Ax(d(Q[1][1+h],Q),m0);return m0===Px&&h0===X?U:[0,U[1],Px,U[3],X]}var G0=p(Q[1][1+a],Q,T0);return T0===G0&&h0===X?U:[0,G0,U[2],U[3],X]},c0,function(Q,b0,U){var h0=U[3],_0=U[2],m0=p(Q[1][1+t0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],m0,T0]},$,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},c,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},n0,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},K,function(Q,b0,U){var h0=U[2],_0=U[1],m0=n4(d(Q[1][1+a],Q),_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,m0,T0]},z,function(Q,b0,U){var h0=U[3];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],_0]})},M,function(Q,b0){var U=b0[3];return P0(d(Q[1][1+i],Q),U,b0,function(h0){return[0,b0[1],b0[2],h0]})},F,function(Q,b0,U){var h0=U[3];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],_0]})},I,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},j,function(Q,b0,U){var h0=U[2],_0=U[1],m0=_0[3],T0=_0[2],X=_0[1];if(m0)var Gx=n4(d(Q[1][1+u],Q),m0),Px=T0;else var Gx=0,Px=p(Q[1][1+u],Q,T0);var G0=p(Q[1][1+i],Q,h0);return T0===Px&&m0===Gx&&h0===G0?U:[0,[0,X,Px,Gx],G0]},N,function(Q,b0,U){var h0=U[2],_0=h0[2],m0=h0[1],T0=U[1];if(!_0)return P0(p(Q[1][1+b],Q,b0),m0,U,function(Gx){return[0,T0,[0,Gx,_0]]});var X=_0[1];return P0(d(Q[1][1+a],Q),X,U,function(Gx){return[0,T0,[0,m0,[0,Gx]]]})}]),function(Q,b0,U){var h0=y5(b0,x);return h0[1+r]=U,d(sx,h0),Dj(b0,h0,x)}});function ch(x){var r=il(x);if(r)var e=r[1],t=hB(x)?(x4(x,e[3]),[0,p(TB[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,c){return u?c(u[1],i):i}]}function u4(x){var r=il(x);if(r){var e=r[1];if(hB(x)){x4(x,e[3]);var t=ao(x),u=[0,p(TB[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=ao(x)}else var u=0,i=0;return[0,i,function(c,v){return u?p(v,u[1],c):c}]}function F2(x){return N1(x)?u4(x):ch(x)}function Xt(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,C3,2),e,t)})}function Q1(x,r){if(!r)return 0;var e=r[1];return[0,p(F2(x)[2],e,function(t,u){return p(Bx(t,vT,5),t,u)})]}function sC(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,ML,8),e,t)})}function al(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-1045824777,9),e,t)})}function i4(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-455772979,10),e,t)})}function EB(x,r){if(!r)return 0;var e=r[1];return[0,p(F2(x)[2],e,function(t,u){return p(Bx(t,NL,13),t,u)})]}function gn(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,HR,14),e,t)})}function SB(x,r){return p(F2(x)[2],r,function(e,t){var u=d(Bx(e,bD,16),e);return n4(function(i){return W2(u,i)},t)})}function AB(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-21476009,17),e,t)})}d5(ss0,function(x){var r=jj(x,ns0),e=Cj(is0),t=e.length-1,u=RM.length-1,i=$a(t+u|0,0),c=t-1|0,v=0;if(c>=0)for(var a=v;;){var l=z6(x,N2(e,a)[1+a]);N2(i,a)[1+a]=l;var m=a+1|0;if(c===a)break;var a=m}var h=u-1|0,T=0;if(h>=0)for(var b=T;;){var N=b+t|0,j=jj(x,N2(RM,b)[1+b]);N2(i,N)[1+N]=j;var I=b+1|0;if(h===b)break;var b=I}var F=i[4],M=i[5],z=i[rF],B=i[h_],K=i[316],n0=i[317],$=i[44],H=i[sD],t0=i[_F],c0=Oj(x,0,0,LM,qj,1)[1];return Fj(x,[0,H,function(r0){return[0,r0[1+K],r0[1+n0]]},B,function(r0,v0){var a0=v0[2],g0=v0[1];return b1(d(r0[1][1+M],r0),g0),b1(d(r0[1][1+F],r0),a0)},z,function(r0,v0){return v0?p(r0[1][1+B],r0,v0[1]):0},M,function(r0,v0){var a0=v0[1],g0=r0[1+K];if(g0){var i0=ma(a0[2],g0[1][1][2])<0?1:0,s0=i0&&(r0[1+K]=[0,v0],0);return s0}var d0=ma(a0[2],r0[1+r][2])<0?1:0,w0=d0&&(r0[1+K]=[0,v0],0);return w0},F,function(r0,v0){var a0=v0[1],g0=r0[1+n0];if(g0){var i0=ma(g0[1][1][2],a0[2])<0?1:0,s0=i0&&(r0[1+n0]=[0,v0],0);return s0}var d0=0<=ma(a0[2],r0[1+r][3])?1:0,w0=d0&&(r0[1+n0]=[0,v0],0);return w0},$,function(r0,v0){return p(r0[1][1+B],r0,v0),v0},t0,function(r0,v0,a0){return p(r0[1][1+z],r0,a0[2]),a0}]),function(r0,v0,a0){var g0=y5(v0,x);return g0[1+r]=a0,d(c0,g0),g0[1+K]=0,g0[1+n0]=0,Dj(v0,g0,x)}});function PB(x){var r=q(x);x:{if(typeof r=="number"){var e=r;if(50<=e)switch(e){case 50:var u=Ks0;break x;case 51:var u=Js0;break x;case 52:var u=Gs0;break x;case 53:var u=Ws0;break x;case 54:var u=Vs0;break x;case 55:var u=$s0;break x;case 56:var u=Qs0;break x;case 57:var u=Hs0;break x;case 58:var u=Zs0;break x;case 59:var u=xa0;break x;case 60:var u=ra0;break x;case 61:var u=ea0;break x;case 62:var u=ta0;break x;case 63:var u=na0;break x;case 64:var u=ua0;break x;case 65:var u=ia0;break x;case 66:var u=fa0;break x;case 115:var u=ca0;break x;case 116:var u=sa0;break x;case 117:var u=aa0;break x;case 118:var u=oa0;break x;case 119:var u=va0;break x;case 120:var u=la0;break x;case 121:var u=pa0;break x;case 122:var u=ka0;break x;case 123:var u=ma0;break x;case 124:var u=ha0;break x;case 125:var u=da0;break x;case 126:var u=ya0;break x;case 127:var u=ga0;break x;case 129:var u=wa0;break x;case 130:var u=_a0;break x;case 131:var u=ba0;break x}else switch(e){case 15:var u=as0;break x;case 16:var u=os0;break x;case 17:var u=vs0;break x;case 18:var u=ls0;break x;case 19:var u=ps0;break x;case 20:var u=ks0;break x;case 21:var u=ms0;break x;case 22:var u=hs0;break x;case 23:var u=ds0;break x;case 24:var u=ys0;break x;case 25:var u=gs0;break x;case 26:var u=ws0;break x;case 27:var u=_s0;break x;case 28:var u=bs0;break x;case 29:var u=Ts0;break x;case 30:var u=Es0;break x;case 31:var u=Ss0;break x;case 32:var u=As0;break x;case 33:var u=Ps0;break x;case 34:var u=Is0;break x;case 35:var u=Ns0;break x;case 36:var u=js0;break x;case 37:var u=Cs0;break x;case 38:var u=Os0;break x;case 39:var u=Ds0;break x;case 40:var u=Fs0;break x;case 41:var u=Rs0;break x;case 42:var u=Ls0;break x;case 43:var u=Ms0;break x;case 44:var u=qs0;break x;case 45:var u=Us0;break x;case 46:var u=Bs0;break x;case 47:var u=Xs0;break x;case 48:var u=Ys0;break x;case 49:var u=zs0;break x}}else switch(r[0]){case 4:var u=r[2];break x;case 11:var t=r[1]?Ta0:Ea0,u=t;break x}p2(Sa0,x);var u=Aa0}return E0(x),u}function a1(x){var r=V0(x),e=u0(x),t=PB(x);return[0,r,[0,t,Z([0,e],[0,L0(x)],O)]]}function IB(x){var r=V0(x),e=u0(x);J(x,14);var t=V0(x),u=PB(x),i=Z([0,e],[0,L0(x)],O),c=Yr(r,t),v=t[2],a=r[3],l=a[1]===v[1]?1:0,m=l&&(a[2]===v[2]?1:0);return 1-m&&q0(x,[0,c,z1]),[0,c,[0,u,i]]}function jv(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],c=u[2];x:{if(i[1][2][0]===2&&!i[2]){var v=1;break x}var v=0}if(!v)return v;var u=c}}function f4(x){for(var r=x;;){var e=r[2];if(e[0]!==31)return 0;var t=e[1][2];if(t[2][0]===27)return 1;var r=t}}function sh(x,r,e){var t=e[2][1],u=e[1];if(!P(t,nv)){var i=r[19];return i&&q0(r,[0,u,5])}if(P(t,j3)){if(!P(t,B1))return r[18]?q0(r,[0,u,95]):ht(r,[0,u,80])}else if(r[14])return q0(r,[0,u,[26,P5(t)]]);if(fl(t))return ht(r,[0,u,80]);if(eh(t))return q0(r,[0,u,95]);if(x){var c=x[1];if(Pv(t))return ht(r,[0,u,c])}}function x0(x,r,e){var t=x?x[1]:V0(e),u=d(r,e),i=il(e),c=i?Yr(t,i[1]):t;return[0,c,u]}function aC(x,r,e){var t=x0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]}function ah(x){V2(x,0);var r=q(x);Z2(x);var e=xr(1,x);x:{r:{if(typeof r=="number"){if(r!==22)break x}else{if(r[0]!==4)break x;var t=r[3];if(P(t,b3)){if(!P(t,m3))e:{if(typeof e=="number"){if(e!==22)break e}else if(e[0]!==4)break e;break r}}else e:{if(typeof e=="number"){if(e!==22)break e}else if(e[0]!==4)break e;break r}}if(typeof e=="number"){if(Xo!==e)break x}else if(e[0]!==4||P(e[3],a6))break x}return 1}return 0}function NB(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}}function oC(x,r,e){if(e){var t=e[1];x:{if(t!==8232&&t1!==t){if(t===10){var u=6;break x}if(t===13){var u=5;break x}if(c6<=t){var u=3;break x}if(n_<=t){var u=2;break x}if(M2<=t){var u=1;break x}var u=0;break x}var u=7}var i=u}else var i=4;return[0,i,x]}var Vb0=[n2,co0,as(0)];function jB(x,r,e,t){try{var u=N2(x,r)[1+r];return u}catch(c){var i=U2(c);throw i[1]===u5?W0([0,Vb0,e,H0(ar(io0),t,r,x.length-1)],1):W0(i,0)}}function oh(x,r){if(r[1]===0&&r[2]===0)return 0;var e=jB(x,r[1]-1|0,r,no0);return jB(e,r[2],r,uo0)}function CB(x){function r(a){var l=q(a);x:if(typeof l=="number"){if(8<=l){if(10<=l)break x}else if(l!==1)break x;return 1}return 0}function e(a,l,m,h,T,b){var N=H0(x[24],a,T,b);if(m)var j=qx(Oo0,b),I=-N;else var j=b,I=N;var F=L0(a);return r(a)?[2,l,[0,I,j,Z([0,h],[0,F],O)]]:[0,l]}function t(a){var l=V0(a),m=u0(a),h=q(a);if(typeof h=="number")switch(h){case 105:E0(a);var T=q(a);return typeof T!="number"&&T[0]===0?e(a,l,1,m,T[1],T[2]):[0,l];case 31:case 32:E0(a);var b=L0(a);return r(a)?[1,l,[0,h===32?1:0,Z([0,m],[0,b],O)]]:[0,l]}else switch(h[0]){case 0:return e(a,l,0,m,h[1],h[2]);case 1:var N=h[2],j=H0(x[26],a,h[1],N),I=L0(a);return r(a)?[4,l,[0,j,N,Z([0,m],[0,I],O)]]:[0,l];case 2:var F=h[1],M=F[1],z=F[3],B=F[2];F[4]&&Ie(a,76),E0(a);var K=L0(a);return r(a)?[3,M,[0,B,z,Z([0,m],[0,K],O)]]:[0,M]}return E0(a),[0,l]}var u=[0,Do0,I1[1],0,0];function i(a){var l=a1(a),m=q(a);x:{if(typeof m=="number"){if(m===83){J(a,83);var h=t(a);break x}if(m===87){Ux(a,[8,l[2][1]]),J(a,87);var h=t(a);break x}}var h=0}return[0,l,h]}var c=0;function v(a,l,m,h,T,b,N){var j=aa(T),I=aa(b);function F(z){return[2,[0,[0,b],m,h,N]]}function M(z){return[2,[0,[1,T],m,h,N]]}return j===0?F(O):I===0?M(O):j>>0){if(Te>=$+1>>>0)break}else if($===10){var H=V0(I),t0=u0(I);E0(I);var c0=q(I);x:{r:if(typeof c0=="number"){var r0=c0-2|0;if(ce>>0){if(Te>>0)break r}else{if(r0!==7)break r;J(I,9);var v0=q(I);e:{t:if(typeof v0=="number"){if(v0!==1&&mr!==v0)break t;var a0=1;break e}var a0=0}q0(I,[0,H,[6,a0]])}break x}q0(I,[0,H,So0])}var K=[0,K[1],K[2],1,t0];continue}}var g0=K[2],i0=K[1],s0=x0(c,i,I),d0=s0[2],w0=d0[2],M0=d0[1],C0=s0[1],D0=M0[2][1],I0=M0[1];x:if(br(D0,Z0))var j0=K;else{var y0=q2(D0,0),Y0=97<=y0?1:0,L=Y0&&(y0<=s2?1:0);L&&q0(I,[0,I0,[10,b,D0]]),I1[3].call(null,D0,g0)&&q0(I,[0,I0,[4,b,D0]]);var N0=K[4],S0=K[3],K0=I1[4].call(null,D0,g0),A0=[0,K[1],K0,S0,N0];let ax=D0;var $0=function(Qx,kx){if(z&&z[1]!==Qx)return q0(I,[0,kx,[9,b,z,ax]])};if(typeof w0=="number"){if(z)switch(z[1]){case 0:q0(I,[0,C0,[3,b,D0]]);var j0=A0;break x;case 1:q0(I,[0,C0,[11,b,D0]]);var j0=A0;break x;case 4:q0(I,[0,C0,[2,b,D0]]);var j0=A0;break x}var j0=[0,[0,i0[1],i0[2],i0[3],i0[4],[0,[0,C0,[0,M0]],i0[5]]],K0,S0,N0]}else switch(w0[0]){case 0:q0(I,[0,w0[1],[9,b,z,D0]]);var j0=A0;break;case 1:var ex=w0[1],xx=w0[2];$0(0,ex);var j0=[0,[0,[0,[0,C0,[0,M0,[0,ex,xx]]],i0[1]],i0[2],i0[3],i0[4],i0[5]],K0,S0,N0];break;case 2:var tx=w0[1],z0=w0[2];$0(1,tx);var j0=[0,[0,i0[1],[0,[0,C0,[0,M0,[0,tx,z0]]],i0[2]],i0[3],i0[4],i0[5]],K0,S0,N0];break;case 3:var px=w0[1],sx=w0[2];$0(2,px);var j0=[0,[0,i0[1],i0[2],[0,[0,C0,[0,M0,[0,px,sx]]],i0[3]],i0[4],i0[5]],K0,S0,N0];break;default:var Q=w0[1],b0=w0[2];$0(4,Q);var j0=[0,[0,i0[1],i0[2],i0[3],[0,[0,C0,[0,M0,[0,Q,b0]]],i0[4]],i0[5]],K0,S0,N0]}}var U=q(I);x:{r:if(typeof U=="number"){var h0=U-2|0;if(ce>>0){if(Te>>0)break r}else{if(h0!==6)break r;Ux(I,18),J(I,8)}break x}J(I,9)}var K=j0}var _0=K[3],m0=K[4],T0=ix(K[1][5]),X=ix(K[1][4]),Gx=ix(K[1][3]),Px=ix(K[1][2]),G0=ix(K[1][1]),Kr=Mx(m0,u0(I));J(I,1);var S=q(I);x:{r:if(typeof S=="number"){if(S!==1&&mr!==S)break r;var G=L0(I);break x}var G=N1(I)?ao(I):0}var rx=O2([0,B],[0,G],Kr,O);if(z){switch(z[1]){case 0:var yx=[0,[0,G0,1,_0,rx]];break;case 1:var yx=[1,[0,Px,1,_0,rx]];break;case 2:var yx=v(I,b,1,_0,Gx,T0,rx);break;case 3:var yx=[3,[0,T0,_0,rx]];break;default:var yx=[4,[0,X,1,_0,rx]]}var Ex=yx}else{var nx=aa(G0),p0=aa(Px),Fx=aa(X),Sx=aa(Gx),bx=aa(T0),B0=function(ax){return[2,[0,Ao0,0,_0,rx]]};x:{if(nx===0&&p0===0&&Fx===0){if(Sx===0&&bx===0){var Wx=B0(O);break x}var Wx=v(I,b,0,_0,Gx,T0,rx);break x}if(p0===0&&Fx===0&&Sx===0&&bx<=nx){b1(function(Qx){return q0(I,[0,Qx[1],[3,b,Qx[2][1][2][1]]])},T0);var Wx=[0,[0,G0,0,_0,rx]];break x}if(nx===0){if(Fx===0&&Sx===0&&bx<=p0){b1(function(Qx){return q0(I,[0,Qx[1],[11,b,Qx[2][1][2][1]]])},T0);var Wx=[1,[0,Px,0,_0,rx]];break x}if(p0===0&&Sx===0&&bx<=Fx){b1(function(Qx){return q0(I,[0,Qx[1],[11,b,Qx[2][1][2][1]]])},T0);var Wx=[4,[0,X,0,_0,rx]];break x}}q0(I,[0,N,[5,b]]);var Wx=B0(O)}var Ex=Wx}return Ex},l);return[0,T,j,Z([0,h],0,O)]}]}function ol(x){return[0,da(x)]}function vh(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=fx(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var c=e[5],v=e[4],a=e[3],l=e[2],m=fx(x,l),h=e[1];if(m===0)return a===r?e:[1,h,x,r,v,c];if(0<=m){var T=vh(x,r,c);return c===T?e:vU(v,l,a,T)}var b=vh(x,r,v);return v===b?e:vU(b,l,a,c)}function $b0(x,r){if(typeof x=="number"){var e=x;if(57<=e)switch(e){case 57:if(typeof r=="number"&&r===57)return 0;break;case 58:if(typeof r=="number"&&r===58)return 0;break;case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&y2===r)return 0;break;case 101:if(typeof r=="number"&&fe===r)return 0;break;case 102:if(typeof r=="number"&&g1===r)return 0;break;case 103:if(typeof r=="number"&&sn===r)return 0;break;case 104:if(typeof r=="number"&&Be===r)return 0;break;case 105:if(typeof r=="number"&&ui===r)return 0;break;case 106:if(typeof r=="number"&&Je===r)return 0;break;case 107:if(typeof r=="number"&&K2===r)return 0;break;case 108:if(typeof r=="number"&&sv===r)return 0;break;case 109:if(typeof r=="number"&&st===r)return 0;break;case 110:if(typeof r=="number"&&z1===r)return 0;break;case 111:if(typeof r=="number"&&ce===r)return 0;break;default:if(typeof r=="number"&&ea<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;default:if(typeof r=="number"&&r===56)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[1],u=x[1];return p(d(hr[43],0),u,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var i=r[1],c=x[1];return p(d(hr[42],0),c,i)}break;case 2:if(typeof r!="number"&&r[0]===2){var v=r[2],a=r[1],l=x[2],m=x[1],h=p(d(hr[41],0),m,a);return h===0?p(d(hr[40],0),l,v):h}break;case 3:if(typeof r!="number"&&r[0]===3){var T=r[2],b=r[1],N=x[2],j=x[1],I=p(d(hr[39],0),j,b);return I===0?p(d(hr[38],0),N,T):I}break;case 4:if(typeof r!="number"&&r[0]===4){var F=r[2],M=r[1],z=x[2],B=x[1],K=p(d(hr[37],0),B,M);return K===0?p(d(hr[36],0),z,F):K}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[1],$=x[1];return p(d(hr[35],0),$,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var H=r[1],t0=x[1];return p(d(hr[34],0),t0,H)}break;case 7:if(typeof r!="number"&&r[0]===7){var c0=r[2],r0=x[2],v0=r[1],a0=x[1],g0=p(d(hr[33],0),a0,v0);if(g0!==0)return g0;if(!r0)return c0?-1:0;var i0=r0[1];if(!c0)return 1;var s0=c0[1];return p(d(hr[32],0),i0,s0)}break;case 8:if(typeof r!="number"&&r[0]===8){var d0=r[1],w0=x[1];return p(d(hr[31],0),w0,d0)}break;case 9:if(typeof r!="number"&&r[0]===9){var M0=r[2],C0=x[2],D0=r[3],I0=r[1],j0=x[3],y0=x[1],Y0=p(d(hr[30],0),y0,I0);if(Y0!==0)return Y0;if(C0)var L=C0[1],N0=M0?p(hr[29],L,M0[1]):1;else var N0=M0?-1:0;return N0===0?p(d(hr[28],0),j0,D0):N0}break;case 10:if(typeof r!="number"&&r[0]===10){var S0=r[2],K0=r[1],A0=x[2],$0=x[1],ex=p(d(hr[27],0),$0,K0);return ex===0?p(d(hr[26],0),A0,S0):ex}break;case 11:if(typeof r!="number"&&r[0]===11){var xx=r[2],tx=r[1],z0=x[2],px=x[1],sx=p(d(hr[25],0),px,tx);return sx===0?p(d(hr[24],0),z0,xx):sx}break;case 12:if(typeof r!="number"&&r[0]===12){var Q=r[1],b0=x[1];return p(d(hr[23],0),b0,Q)}break;case 13:if(typeof r!="number"&&r[0]===13){var U=r[1],h0=x[1];return p(d(hr[22],0),h0,U)}break;case 14:if(typeof r!="number"&&r[0]===14){var _0=r[1],m0=x[1];return p(d(hr[21],0),m0,_0)}break;case 15:if(typeof r!="number"&&r[0]===15){var T0=r[4],X=r[3],Gx=r[2],Px=r[1],G0=x[4],Kr=x[3],S=x[2],G=x[1],rx=p(d(hr[20],0),G,Px);if(rx!==0)return rx;var yx=p(d(hr[19],0),S,Gx);if(yx!==0)return yx;var Ex=p(d(hr[18],0),Kr,X);return Ex===0?p(d(hr[17],0),G0,T0):Ex}break;case 16:if(typeof r!="number"&&r[0]===16){var nx=r[1],p0=x[1];return p(d(hr[16],0),p0,nx)}break;case 17:if(typeof r!="number"&&r[0]===17){var Fx=r[2],Sx=r[1],bx=x[2],B0=x[1],Wx=p(d(hr[15],0),B0,Sx);return Wx===0?p(d(hr[14],0),bx,Fx):Wx}break;case 18:if(typeof r!="number"&&r[0]===18){var Yx=r[1],ax=x[1];return p(d(hr[13],0),ax,Yx)}break;case 19:if(typeof r!="number"&&r[0]===19){var Qx=r[1],kx=x[1];return p(d(hr[12],0),kx,Qx)}break;case 20:if(typeof r!="number"&&r[0]===20){var tr=r[1],sr=x[1];if(Zl<=sr){if(typeof tr=="number"&&Zl===tr)return 0}else if(typeof tr=="number"&&hR===tr)return 0;var Mr=function(le){return Zl<=le?1:0},a2=Mr(tr);return We(Mr(sr),a2)}break;case 21:if(typeof r!="number"&&r[0]===21){var _2=r[1],i2=x[1];return p(d(hr[11],0),i2,_2)}break;case 22:if(typeof r!="number"&&r[0]===22){var Q2=r[1],jx=x[1];return p(d(hr[10],0),jx,Q2)}break;case 23:if(typeof r!="number"&&r[0]===23){var _=r[2],V=r[1],lx=x[2],U0=x[1],ox=p(d(hr[9],0),U0,V);return ox===0?p(d(hr[8],0),lx,_):ox}break;case 24:if(typeof r!="number"&&r[0]===24){var wx=r[1],Cr=x[1];if(Bl===Cr){if(typeof wx=="number"&&Bl===wx)return 0}else if(s6<=Cr){if(typeof wx=="number"&&s6===wx)return 0}else if(typeof wx=="number"&&BO===wx)return 0;var Hx=function(le){return Bl===le?0:s6<=le?2:1},Zr=Hx(wx);return We(Hx(Cr),Zr)}break;case 25:if(typeof r!="number"&&r[0]===25){var dr=r[1],Or=x[1];return p(d(hr[7],0),Or,dr)}break;case 26:if(typeof r!="number"&&r[0]===26){var x2=r[1],ux=x[1];return p(d(hr[6],0),ux,x2)}break;case 27:if(typeof r!="number"&&r[0]===27){var Lx=r[2],Zx=r[1],qr=x[2],Y2=x[1],H2=p(d(hr[5],0),Y2,Zx);return H2===0?p(d(hr[4],0),qr,Lx):H2}break;case 28:if(typeof r!="number"&&r[0]===28){var Kt=r[2],dt=r[1],Jt=x[2],C1=x[1],q1=p(d(hr[3],0),C1,dt);return q1===0?p(d(hr[2],0),Jt,Kt):q1}break;default:if(typeof r!="number"&&r[0]===29){var b2=r[1],wn=x[1];return p(d(hr[1],0),wn,b2)}}function _n(le){if(typeof le!="number")switch(le[0]){case 0:return 16;case 1:return 17;case 2:return 19;case 3:return 20;case 4:return 21;case 5:return 22;case 6:return 23;case 7:return 24;case 8:return 26;case 9:return 27;case 10:return 28;case 11:return 30;case 12:return 31;case 13:return 33;case 14:return 36;case 15:return 48;case 16:return 50;case 17:return 51;case 18:return 53;case 19:return 61;case 20:return 69;case 21:return 72;case 22:return 81;case 23:return 88;case 24:return sv;case 25:return Wa;case 26:return y6;case 27:return M2;case 28:return ND;default:return $O}var Ze=le;if(57<=Ze)switch(Ze){case 57:return 79;case 58:return 80;case 59:return 82;case 60:return 83;case 61:return 84;case 62:return 85;case 63:return 86;case 64:return 87;case 65:return 89;case 66:return 90;case 67:return 91;case 68:return 92;case 69:return 93;case 70:return 94;case 71:return 95;case 72:return 96;case 73:return 97;case 74:return 98;case 75:return 99;case 76:return y2;case 77:return fe;case 78:return g1;case 79:return sn;case 80:return Be;case 81:return ui;case 82:return Je;case 83:return K2;case 84:return st;case 85:return z1;case 86:return ce;case 87:return ea;case 88:return Te;case 89:return mr;case 90:return tv;case 91:return P3;case 92:return zl;case 93:return vf;case 94:return m6;case 95:return s2;case 96:return rn;case 97:return S3;case 98:return Ba;case 99:return Sk;case 100:return Br;case 101:return Xo;case 102:return d6;case 103:return r6;case 104:return r8;case 105:return _k;case 106:return gR;case 107:return iR;case 108:return DI;case 109:return JF;case 110:return jL;case 111:return ER;default:return VL}switch(Ze){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 18;case 17:return 25;case 18:return 29;case 19:return 32;case 20:return 34;case 21:return 35;case 22:return 37;case 23:return 38;case 24:return 39;case 25:return 40;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 49;case 34:return 52;case 35:return 54;case 36:return 55;case 37:return 56;case 38:return 57;case 39:return 58;case 40:return 59;case 41:return 60;case 42:return 62;case 43:return 63;case 44:return 64;case 45:return 65;case 46:return 66;case 47:return 67;case 48:return 68;case 49:return 70;case 50:return 71;case 51:return 73;case 52:return 74;case 53:return 75;case 54:return 76;case 55:return 77;default:return 78}}var bs=_n(r);return We(_n(x),bs)}var vC=pU([0,function(x,r){var e=r[2],t=x[2],u=gU(x[1],r[1]);return u===0?$b0(t,e):u}]);function c4(x,r,e){var t=e[2][1],u=e[1];return br(t,Z0)?r:I1[3].call(null,t,r)?(q0(x,[0,u,[0,t]]),r):I1[4].call(null,t,r)}function lC(x){return function(r){var e=r[2];switch(e[0]){case 0:return m1(function(t,u){var i=u[0]===0?u[1][2][2]:u[1][2][1];return lC(t)(i)},x,e[1][1]);case 1:return m1(function(t,u){if(u[0]===2)return t;var i=u[1][2][1];return lC(t)(i)},x,e[1][1]);case 2:return[0,e[1][1],x];default:return Tx($l0)}}}var X0=Wq(Hl0,Ql0[1]);function lh(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=V0(e),c=q(e);if(typeof c=="number")switch(c){case 104:var v=u0(e);return E0(e),[0,[0,i,[0,0,Z([0,v],0,O)]]];case 105:var a=u0(e);return E0(e),[0,[0,i,[0,1,Z([0,a],0,O)]]];case 127:if(t){var l=u0(e);return E0(e),[0,[0,i,[0,2,Z([0,l],0,O)]]]}break}else if(c[0]===4){var m=c[3];if(P(m,qa)){if(!P(m,yw)&&u&&th(1,e)){var h=u0(e);return E0(e),[0,[0,i,[0,4,Z([0,h],0,O)]]]}}else if(u&&th(1,e)){var T=u0(e);E0(e);var b=q(e);x:{if(typeof b!="number"&&b[0]===4&&!P(b[3],yw)){var N=V0(e);E0(e);var j=Yr(i,N),I=5;break x}var j=i,I=3}return[0,[0,j,[0,I,Z([0,T],0,O)]]]}}return 0}function OB(x,r,e,t,u){r===1&&Ie(u,76);var i=u0(u);E0(u);var c=L0(u);if(x)var v=Z([0,Mx(x[1],i)],[0,c],O),a=v,l=qx(to0,t),m=-e;else var a=Z([0,i],[0,c],O),l=t,m=e;return[30,[0,m,l,a]]}function DB(x,r,e,t){var u=u0(t);E0(t);var i=L0(t);if(x)var c=Z([0,Mx(x[1],u)],[0,i],O),v=qx(eo0,e),a=c,l=v,m=f5(RN,r);else var a=Z([0,u],[0,i],O),l=e,m=r;return[31,[0,m,l,a]]}var FB=[],RB=[],LB=[],MB=[],qB=[],UB=[],BB=[],XB=[],YB=[],zB=[],KB=[];function Hr(x){var r=V0(x),e=rC(0,x);return JB(e,r,pC(e))}function s4(x){return 1-A2(x)&&Ux(x,g1),x0(0,function(r){return J(r,87),Hr(r)},x)}function JB(x,r,e){var t=q(x);return typeof t=="number"&&t===42?x0([0,r],function(u){J(u,42);var i=pC(rC(1,u));ih(u,86);var c=Hr(u);ih(u,87);var v=Hr(u);return[17,[0,e,i,c,v,Z(0,[0,L0(u)],O)]]},x):e}function pC(x){var r=V0(x);if(q(x)===90){var e=u0(x);E0(x);var t=e}else var t=0;return GB(x,[0,t],r,WB(x))}function GB(x,r,e,t){var u=r?r[1]:0;return q(x)===90?x0([0,e],p(FB[1],u,[0,t,0]),x):t}function WB(x){var r=V0(x);if(q(x)===92){var e=u0(x);E0(x);var t=e}else var t=0;return VB(x,[0,t],r,$B(x))}function VB(x,r,e,t){var u=r?r[1]:0;return q(x)===92?x0([0,e],p(RB[1],u,[0,t,0]),x):t}function $B(x){return QB(x,kC(x))}function QB(x,r){var e=q(x);if(typeof e=="number"&&e===11&&!x[15]){var t=ph(x,r);return mh(1,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}function kC(x){var r=q(x);if(typeof r=="number"&&r===86)return x0(0,function(t){var u=u0(t);J(t,86);var i=Z([0,u],0,O);return[11,[0,kC(t),i]]},x);var e=V0(x);return HB(0,x,e,Qb0(x))}function mC(x,r,e,t,u){var i=r?r[1]:0;if(N1(e))return u;var c=q(e);if(typeof c=="number"){if(c===6){E0(e);var v=0;return x<50?vl(x+1|0,i,v,e,t,u):J2(vl,[0,i,v,e,t,u])}if(c===10){var a=xr(1,e);if(typeof a=="number"&&a===6){Ux(e,Pa0),J(e,10),J(e,6);var l=0;return x<50?vl(x+1|0,i,l,e,t,u):J2(vl,[0,i,l,e,t,u])}return Ux(e,Ia0),u}if(c===84){E0(e),q(e)!==6&&Ux(e,40),J(e,6);var m=1,h=1;return x<50?vl(x+1|0,h,m,e,t,u):J2(vl,[0,h,m,e,t,u])}}return u}function HB(x,r,e,t){return n5(mC(0,x,r,e,t))}function vl(x,r,e,t,u,i){var c=x0([0,u],function(a){if(!e&&u2(a,7))return[16,[0,i,Z(0,[0,L0(a)],O)]];var l=Hr(a);J(a,7);var m=[0,i,l,Z(0,[0,L0(a)],O)];return r?[21,[0,m,e]]:[20,m]},t),v=[0,r];return x<50?mC(x+1|0,v,t,u,c):J2(mC,[0,v,t,u,c])}function ZB(x){if(V2(x,0),q(x)===4){E0(x);var r=ZB(x);J(x,5);var t=r}else if(dn(x))var e=p(X0[13],0,x),t=[0,p(LB[1],x,[0,e[1],[0,e]])];else{Ux(x,45);var t=0}return Z2(x),t}function Qb0(x){var r=V0(x),e=q(x);x:{r:{if(typeof e=="number")switch(e){case 4:var t=V0(x),u=x0(0,xT0,x),i=u[2],c=u[1];return i[0]===0?mh(1,x,t,0,[0,c,i[1]]):i[1];case 6:return x0(0,function(i0){var s0=u0(i0);J(i0,6);var d0=Av(0,i0),w0=p(MB[1],d0,0),M0=w0[2],C0=w0[1];return J(i0,7),[28,[0,C0,M0,Z([0,s0],[0,L0(i0)],O)]]},x);case 47:return x0(0,function(i0){var s0=u0(i0);J(i0,47);var d0=ZB(i0);if(!d0)return Na0;var w0=d0[1],M0=N1(i0)?0:gC(i0);return[24,[0,w0,M0,Z([0,s0],0,O)]]},x);case 54:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=uX(i0),w0=d0[2],M0=d0[1];return[15,[0,w0,M0,Z([0,s0],0,O)]]},x);case 99:var v=V0(x),a=Q1(x,Ov(x));return mh(1,x,v,a,kh(x));case 105:return x0(0,Hb0,x);case 107:var l=u0(x);return E0(x),[0,r,[10,Z([0,l],[0,L0(x)],O)]];case 126:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=Hr(i0);return[25,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 127:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=Hr(i0);return[27,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 128:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=x0(0,function(M0){var C0=Cv(M0);return[0,C0,fh(M0,[0,V0(M0)],function(D0){if(1-u2(D0,42))throw W0(gs,1);var I0=pC(D0);if(!D0[16]&&q(D0)===86)throw W0(gs,1);return[1,[0,I0[1],I0]]}),1,0,0]},i0);return[18,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 0:case 2:var m=yC(0,1,1,x);return[0,m[1],[14,m[2]]];case 132:case 133:break r;case 42:case 43:break;case 31:case 32:var h=u0(x);return E0(x),[0,r,[32,[0,e===32?1:0,Z([0,h],[0,L0(x)],O)]]];default:break x}else switch(e[0]){case 2:var T=e[1],b=T[3],N=T[2],j=T[1];T[4]&&Ie(x,76);var I=u0(x);return E0(x),[0,j,[29,[0,N,b,Z([0,I],[0,L0(x)],O)]]];case 4:var F=e[3];if(P(F,$s)){if(P(F,Vo)){if(!P(F,_3))break r}else if(x[28][1]){var M=xr(1,x);e:if(typeof M=="number"){if(M!==4&&M!==99)break e;var z=V0(x);E0(x);var B=Q1(x,Ov(x));return mh(0,x,z,B,kh(x))}var K=hh(x);return[0,K[1],[19,K[2]]]}}else if(x[28][1])return x0(0,function(i0){var s0=u0(i0);ys(i0,ja0);var d0=Q1(i0,Ov(i0)),w0=rX(i0);if(fC(i0))var C0=sC(i0,wC(i0)),D0=w0;else var M0=wC(i0),C0=M0,D0=p(F2(i0)[2],w0,function(I0,j0){return p(Bx(I0,420776873,12),I0,j0)});return[13,[0,d0,D0,C0,Z([0,s0],0,O)]]},x);break;case 7:if(P(e[1],Ll))break x;return Ux(x,84),[0,r,Ca0];case 12:var n0=e[3],$=e[2],H=e[1],t0=0;return x0(0,function(i0){return OB(t0,H,$,n0,i0)},x);case 13:var c0=e[3],r0=e[2],v0=0;return x0(0,function(i0){return DB(v0,r0,c0,i0)},x);default:break x}var a0=hh(x);return[0,a0[1],[19,a0[2]]]}return x0(0,function(i0){return[26,xX(i0)]},x)}var g0=Zb0(x);return g0?[0,r,g0[1]]:(p2(Oa0,x),[0,r,Da0])}function Hb0(x){var r=u0(x);E0(x);var e=q(x);if(typeof e!="number")switch(e[0]){case 12:return OB([0,r],e[1],e[2],e[3],x);case 13:return DB([0,r],e[2],e[3],x)}return p2(Fa0,x),Ra0}function hC(x,r){var e=u0(x),t=x0(0,E0,x)[1],u=Z([0,e],[0,L0(x)],O);return[0,[19,[0,[0,mn(0,[0,t,r])],0,u]]]}function Zb0(x){var r=u0(x),e=q(x);if(typeof e=="number")switch(e){case 30:return E0(x),[0,[4,Z([0,r],[0,L0(x)],O)]];case 115:return E0(x),[0,[0,Z([0,r],[0,L0(x)],O)]];case 116:return E0(x),[0,[1,Z([0,r],[0,L0(x)],O)]];case 117:return E0(x),[0,[2,Z([0,r],[0,L0(x)],O)]];case 118:return E0(x),[0,[5,Z([0,r],[0,L0(x)],O)]];case 119:return E0(x),[0,[6,Z([0,r],[0,L0(x)],O)]];case 120:return E0(x),[0,[7,Z([0,r],[0,L0(x)],O)]];case 121:return E0(x),[0,[3,Z([0,r],[0,L0(x)],O)]];case 122:return E0(x),[0,[9,Z([0,r],[0,L0(x)],O)]];case 123:return E0(x),[0,[33,Z([0,r],[0,L0(x)],O)]];case 124:return E0(x),[0,[34,Z([0,r],[0,L0(x)],O)]];case 125:return E0(x),[0,[35,Z([0,r],[0,L0(x)],O)]];case 129:return hC(x,La0);case 130:return hC(x,Ma0);case 131:return hC(x,qa0)}else if(e[0]===11){var t=e[1];E0(x);var u=L0(x),i=t?-883944824:737456202;return[0,[8,i,Z([0,r],[0,u],O)]]}return 0}function xX(x){var r=u0(x),e=q(x);x:{if(typeof e=="number")switch(e){case 132:var t=1;break x;case 133:var t=2;break x}else if(e[0]===4&&!P(e[3],_3)){var t=0;break x}var t=Tx(Ua0)}var u=V0(x);E0(x);var i=L0(x),c=kC(x);return[0,u,c,Z([0,r],[0,i],O),t]}function ph(x,r){return[0,r[1],[0,0,r,0]]}function oo(x){return p(qB[1],x,0)}function kh(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=d(oo(r),0),u=u0(r);J(r,5);var i=O2([0,e],[0,L0(r)],u,O);return[0,t[1],t[2],t[3],i]},x)}function rX(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=p(UB[1],r,0),u=u0(r);J(r,5);var i=O2([0,e],[0,L0(r)],u,O);return[0,t[1],t[2],i]},x)}function xT0(x){var r=u0(x);J(x,4);var e=Av(0,x),t=q(e);x:{r:{e:{if(typeof t!="number"){if(t[0]!==4)break r;var u=t[3];if(P(u,$s)){if(P(u,_3))break e;var i=xr(1,e);t:{if(typeof i=="number"&&1>=i+xa>>>0){var c=[0,d(oo(e),0)];break t}var c=[1,Hr(e)]}var v=c}else{if(!e[28][1])break e;var a=xr(1,e);t:{n:if(typeof a=="number"){if(a!==4&&a!==99)break n;var l=[1,Hr(e)];break t}var l=eX(e)}var v=l}var j=v;break x}switch(t){case 5:var j=Ba0;break x;case 132:var m=xr(1,e);t:{if(typeof m=="number"&&m===87){var h=[0,d(oo(e),0)];break t}var h=[1,Hr(e)]}var j=h;break x;case 43:break;case 12:case 114:var j=[0,d(oo(e),0)];break x;default:break r}}var j=eX(e);break x}r:{e:{if(typeof t=="number")switch(t){case 30:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:break;default:break e}else if(t[0]!==11)break e;var T=1;break r}var T=0}if(T){var b=xr(1,e);r:{if(typeof b=="number"&&1>=b+xa>>>0){var N=[0,d(oo(e),0)];break r}var N=[1,Hr(e)]}var j=N}else var j=[1,Hr(e)]}if(j[0]===0)var I=j;else{var F=j[1];if(x[15])var M=j;else{var z=q(x);x:{if(typeof z=="number"){if(z===5){if(xr(1,x)===11){var B=[0,ph(x,F),0],n0=[0,d(oo(x),B)];break x}var n0=[1,F];break x}if(z===9){J(x,9);var K=[0,ph(x,F),0],n0=[0,d(oo(x),K)];break x}}var n0=j}var M=n0}var I=M}var $=u0(x);J(x,5);var H=L0(x);if(I[0]===0)var t0=I[1],c0=O2([0,r],[0,H],$,O),r0=[0,[0,t0[1],t0[2],t0[3],c0]];else var r0=[1,rT0(I[1],r,H)];return r0}function eX(x){var r=xr(1,x);if(typeof r=="number"&&1>=r+xa>>>0)return[0,d(oo(x),0)];var e=V0(x),t=iX(x,Cv(x)),u=GB(x,0,e,VB(x,0,e,QB(x,HB(0,x,e,[0,t[1],[19,t[2]]]))));return[1,JB(rC(0,x),e,u)]}function mh(x,r,e,t,u){return x0([0,e],function(i){return J(i,11),[12,[0,t,u,tX(i),0,x]]},r)}function tX(x){return ah(x)?[1,dC(x)]:[0,Hr(x)]}function dC(x){function r(e){var t=u0(e);J(e,Xo);var u=Mx(t,u0(e));return[0,[0,Hr(e)],u]}return x0(0,function(e){var t=u0(e),u=u2(e,d6)?1:u2(e,r6)?2:0;V2(e,0);var i=a1(e);Z2(e);x:if(u===2)var c=r(e),v=c[2],a=c[1];else{var l=q(e);if(typeof l=="number"&&Xo===l){var m=r(e),v=m[2],a=m[1];break x}var v=0,a=0}return[0,u,[0,i,a],O2([0,t],0,v,O)]},x)}function nX(x,r){return x0([0,r],dC,x)}function yC(x,r,e,t){var u=r&&(q(t)===2?1:0),i=r&&1-u;return x0(0,function(c){var v=u0(c),a=u?2:0;J(c,a);var l=Av(0,c),m=P6(BB[1],x,i,e,u,l,Xa0),h=m[3],T=m[2],b=m[1],N=Mx(h,u0(c)),j=u?3:1;return J(c,j),[0,u,T,b,O2([0,v],[0,L0(c)],N,O)]},t)}function uX(x){var r=u2(x,42)?SB(x,p(XB[1],x,0)):0;return[0,r,yC(0,0,0,x)]}function Cv(x){var r=a1(x),e=r[2],t=e[1],u=r[1],i=e[2];return nC(t)&&q0(x,[0,u,96]),[0,u,[0,t,i]]}function Ov(x){if(q(x)!==99)return 0;1-A2(x)&&Ux(x,g1);var r=x0(0,function(t){var u=u0(t);J(t,99);var i=H0(YB[1],t,0,0),c=u0(t);return ih(t,y2),[0,i,O2([0,u],[0,L0(t)],c,O)]},x),e=r[1];return r[2][1]||q0(x,[0,e,51]),[0,r]}function gC(x){return q(x)===99?[0,x0(0,function(r){var e=u0(r);J(r,99);var t=Av(0,r),u=p(zB[1],t,0),i=u0(t);return J(t,y2),[0,u,O2([0,e],[0,L0(t)],i,O)]},x)]:0}function hh(x){return iX(x,Cv(x))}function iX(x,r){return x0([0,r[1]],function(e){var t=p(KB[1],e,[0,r[1],[0,r]])[2],u=q(e)===99?p(F2(e)[2],t,function(i,c){return p(Bx(i,-860373976,65),i,c)}):t;return[0,u,gC(e),0]},x)}function wC(x){var r=q(x);x:{if(typeof r=="number")switch(r){case 87:var e=V0(x);1-A2(x)&&Ux(x,g1),E0(x);var t=x0(0,Hr,x),u=t[2],i=t[1],c=u[2][0]===26?1:0;return q0(x,[0,e,[16,c]]),[1,i,[0,e,u,0,0]];case 132:case 133:break;default:break x}else if(r[0]!==4||P(r[3],_3))break x;1-A2(x)&&Ux(x,g1);var v=x0([0,V0(x)],xX,x);return[1,v[1],v[2]]}return[0,da(x)]}function rT0(x,r,e){var t=x[2];function u(h0){return S1(h0,Z([0,r],[0,e],O))}var i=x[1];switch(t[0]){case 0:var U=[0,u(t[1])];break;case 1:var U=[1,u(t[1])];break;case 2:var U=[2,u(t[1])];break;case 3:var U=[3,u(t[1])];break;case 4:var U=[4,u(t[1])];break;case 5:var U=[5,u(t[1])];break;case 6:var U=[6,u(t[1])];break;case 7:var U=[7,u(t[1])];break;case 8:var c=u(t[2]),U=[8,t[1],c];break;case 9:var U=[9,u(t[1])];break;case 10:var U=[10,u(t[1])];break;case 11:var v=t[1],a=u(v[2]),U=[11,[0,v[1],a]];break;case 12:var l=t[1],m=l[5],h=u(l[4]),U=[12,[0,l[1],l[2],l[3],h,m]];break;case 13:var T=t[1],b=u(T[4]),U=[13,[0,T[1],T[2],T[3],b]];break;case 14:var N=t[1],j=N[4],I=S5(j,Z([0,r],[0,e],O)),U=[14,[0,N[1],N[2],N[3],I]];break;case 15:var F=t[1],M=u(F[3]),U=[15,[0,F[1],F[2],M]];break;case 16:var z=t[1],B=u(z[2]),U=[16,[0,z[1],B]];break;case 17:var K=t[1],n0=u(K[5]),U=[17,[0,K[1],K[2],K[3],K[4],n0]];break;case 18:var $=t[1],H=u($[2]),U=[18,[0,$[1],H]];break;case 19:var t0=t[1],c0=u(t0[3]),U=[19,[0,t0[1],t0[2],c0]];break;case 20:var r0=t[1],v0=u(r0[3]),U=[20,[0,r0[1],r0[2],v0]];break;case 21:var a0=t[1],g0=a0[1],i0=a0[2],s0=u(g0[3]),U=[21,[0,[0,g0[1],g0[2],s0],i0]];break;case 22:var d0=t[1],w0=u(d0[2]),U=[22,[0,d0[1],w0]];break;case 23:var M0=t[1],C0=u(M0[2]),U=[23,[0,M0[1],C0]];break;case 24:var D0=t[1],I0=u(D0[3]),U=[24,[0,D0[1],D0[2],I0]];break;case 25:var j0=t[1],y0=u(j0[2]),U=[25,[0,j0[1],y0]];break;case 26:var Y0=t[1],L=Y0[4],N0=u(Y0[3]),U=[26,[0,Y0[1],Y0[2],N0,L]];break;case 27:var S0=t[1],K0=u(S0[2]),U=[27,[0,S0[1],K0]];break;case 28:var A0=t[1],$0=u(A0[3]),U=[28,[0,A0[1],A0[2],$0]];break;case 29:var ex=t[1],xx=u(ex[3]),U=[29,[0,ex[1],ex[2],xx]];break;case 30:var tx=t[1],z0=u(tx[3]),U=[30,[0,tx[1],tx[2],z0]];break;case 31:var px=t[1],sx=u(px[3]),U=[31,[0,px[1],px[2],sx]];break;case 32:var Q=t[1],b0=u(Q[2]),U=[32,[0,Q[1],b0]];break;case 33:var U=[33,u(t[1])];break;case 34:var U=[34,u(t[1])];break;default:var U=[35,u(t[1])]}return[0,i,U]}Fr(FB,[0,function(x,r,e){for(var t=r;;){if(!u2(e,90)){var u=ix(t);if(u){var i=u[2];if(i){var c=i[2],v=i[1],a=u[1];return[22,[0,[0,a,v,c],Z([0,x],0,O)]]}}throw W0([0,Nr,ro0],1)}var t=[0,WB(e),t]}}]),Fr(RB,[0,function(x,r,e){for(var t=r;;){if(!u2(e,92)){var u=ix(t);if(u){var i=u[2];if(i){var c=i[2],v=i[1],a=u[1];return[23,[0,[0,a,v,c],Z([0,x],0,O)]]}}throw W0([0,Nr,xo0],1)}var t=[0,$B(e),t]}}]),Fr(LB,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1];if(q(x)===10&&yB(1,x)){let v=t;var i=x0([0,u],function(l){return J(l,10),[0,v,a1(l)]},x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return t}}]),Fr(MB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(t!==7&&mr!==t)break x;return[0,ix(e),0]}var u=x0(0,function(l){if(!u2(l,12)){var m=q(l);x:{if(typeof m=="number"&&(Be===m||ui===m&&ya(1,l))){var h=lh(0,0,l);break x}var h=0}var T=dn(l),b=xr(1,l);if(T&&typeof b=="number"&&1>=b+xa>>>0){var N=a1(l),j=u2(l,86);return J(l,87),[0,[1,[0,N,Hr(l),h,j]]]}var I=h?1:0;return I&&Ux(l,44),[0,[0,Hr(l)]]}var F=q(l);x:if(typeof F=="number"){if(10<=F){if(mr!==F)break x}else{if(7>F)break x;switch(F-7|0){case 0:break;case 1:break x;default:return p2(Za0,l),E0(l),0}}return 0}var M=dn(l),z=xr(1,l);x:{if(M&&typeof z=="number"&&1>=z+xa>>>0){var B=a1(l);q(l)===86&&(Ux(l,43),E0(l)),J(l,87);var K=[0,B];break x}var K=0}return[0,[2,[0,K,Hr(l)]]]},x),i=u[2],c=u[1];if(!i)return[0,ix(e),1];var v=[0,[0,c,i[1]],e];q(x)!==7&&J(x,9);var e=v}}]);function fX(x){var r=xr(1,x);return typeof r=="number"&&1>=r+xa>>>0?x0(0,function(e){V2(e,0);var t=p(X0[13],0,e);Z2(e),1-A2(e)&&Ux(e,g1);var u=u2(e,86);return J(e,87),[0,[0,t],Hr(e),u]},x):ph(x,Hr(x))}Fr(qB,[0,function(x,r,e){for(var t=r,u=e;;){var i=q(x);x:if(typeof i=="number")switch(i){case 5:case 12:case 114:var c=i===12?[0,x0(0,function(T){var b=u0(T);J(T,12);var N=Z([0,b],0,O);return[0,fX(T),N]},x)]:0;return[0,t,ix(u),c,0]}else if(i[0]===4&&!P(i[3],Qo)){if(xr(1,x)!==87&&xr(1,x)!==86)break x;var v=t!==0?1:0,a=v||(u!==0?1:0);a&&Ux(x,89);var l=x0(0,function(b){var N=u0(b);E0(b),q(b)===86&&Ux(b,88);var j=Z([0,N],0,O);return[0,s4(b),j]},x);q(x)!==5&&J(x,9);var t=[0,l];continue}var m=[0,fX(x),u];q(x)!==5&&J(x,9);var u=m}}]),Fr(UB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){var u=t-5|0;if(7>>0){if(st!==u)break x}else if(5>=u-1>>>0)break x;var i=t===12?[0,x0(0,function(a){var l=u0(a);J(a,12);var m=xr(1,a);r:{if(typeof m=="number"){if(m===86){V2(a,0);var h=p(X0[13],0,a);Z2(a),J(a,86),J(a,87);var b=1,N=[0,h];break r}if(m===87){V2(a,0);var T=p(X0[13],0,a);Z2(a),J(a,87);var b=0,N=[0,T];break r}}var b=0,N=0}var j=Hr(a);return q(a)===9&&E0(a),[0,N,j,b,Z([0,l],0,O)]},x)]:0;return[0,ix(e),i,0]}var c=[0,x0(0,function(a){var l=q(a);x:{if(typeof l!="number"&&l[0]===2){var m=l[1],h=m[4],T=m[3],b=m[2],N=m[1];h&&Ie(a,76),J(a,[2,[0,N,b,T,h]]);var I=[1,[0,N,[0,b,T,Z(0,[0,L0(a)],O)]]];break x}V2(a,0);var j=p(X0[13],0,a);Z2(a);var I=[0,j]}var F=u2(a,86);return[0,I,s4(a),F]},x),e];q(x)!==5&&J(x,9);var e=c}}]);function dh(x,r,e){return x0([0,r],function(t){var u=kh(t);return J(t,87),[0,e,u,tX(t),0,1]},x)}function cX(x,r,e,t,u){var i=gn(x,t),c=dh(x,r,Q1(x,Ov(x))),v=[0,c[1],[12,c[2]]],a=[0,i,[0,v],0,e!==0?1:0,0,1,0,Z([0,u],0,O)];return[0,[0,v[1],a]]}function yh(x,r,e,t,u,i,c){var v=c[2],a=c[1];return 1-A2(x)&&Ux(x,g1),[0,x0([0,r],function(l){var m=u2(l,86),h=_B(l,87)?Hr(l):[0,a,Ha0];return[0,v,[0,h],m,t!==0?1:0,u!==0?1:0,0,e,Z([0,i],0,O)]},x)]}function a4(x,r){var e=q(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return;break;case 3:if(x)return;break;case 8:case 9:return E0(r)}return yn(r,9)}function o4(x,r){if(r)return q0(x,[0,r[1][1],K2])}function v4(x,r){if(r)return q0(x,[0,r[1],94])}function eT0(x,r,e,t,u,i,c,v,a){for(var l=e,m=t,h=u,T=i,b=c,N=v;;){var j=q(x);if(typeof j=="number")switch(j){case 6:v4(x,b);var I=xr(1,x);if(typeof I=="number"&&I===6)return o4(x,h),[4,x0([0,a],function(L){var N0=Mx(N,u0(L));J(L,6),J(L,6);var S0=a1(L);J(L,7),J(L,7);var K0=q(L);x:{r:if(typeof K0=="number"){if(K0!==4&&K0!==99)break r;var A0=dh(L,a,Q1(L,Ov(L))),xx=0,tx=[0,A0[1],[12,A0[2]]],z0=1,px=0;break x}var $0=u2(L,86),ex=L0(L);J(L,87);var xx=ex,tx=Hr(L),z0=0,px=$0}return[0,S0,tx,px,T!==0?1:0,z0,Z([0,N0],[0,xx],O)]},x)];var F=Mx(N,u0(x));J(x,6);var M=xr(1,x);return typeof M!="number"&&M[0]===4&&!P(M[3],qa)&&T===0?[5,x0([0,a],function(L){var N0=Cv(L),S0=N0[1];E0(L);var K0=Hr(L);J(L,7);var A0=q(L);x:{r:{var $0=[0,N0,[0,S0],0,0,0];if(typeof A0=="number"){var ex=A0+R9|0;if(1>>0){if(ex!==-18)break r;E0(L);var xx=2}else var xx=ex?(E0(L),J(L,86),1):(E0(L),J(L,86),0);var tx=xx;break x}}var tx=3}J(L,87);var z0=Hr(L);return[0,[0,S0,$0],z0,K0,h,tx,Z([0,F],[0,L0(L)],O)]},x)]:[2,x0([0,a],function(L){if(xr(1,L)===87){var N0=a1(L);J(L,87);var S0=[0,N0]}else var S0=0;var K0=Hr(L);J(L,7);var A0=L0(L);J(L,87);var $0=Hr(L);return[0,S0,K0,$0,T!==0?1:0,h,Z([0,F],[0,A0],O)]},x)];case 43:if(l){if(h!==0)throw W0([0,Nr,Ja0],1);var z=[0,V0(x)],B=Mx(N,u0(x));E0(x);var l=0,m=0,T=z,N=B;continue}break;case 127:if(h===0){if(!ya(1,x)&&xr(1,x)!==6)break;var l=0,m=0,h=lh(Ga0,0,x);continue}break;case 104:case 105:if(h===0){var l=0,m=0,h=lh(0,0,x);continue}break;case 4:case 99:return v4(x,b),o4(x,h),[3,x0([0,a],function(L){var N0=V0(L),S0=dh(L,N0,Q1(L,Ov(L)));return[0,S0,T!==0?1:0,Z([0,N],0,O)]},x)]}else if(j[0]===4&&!P(j[3],kg)&&m){if(h!==0)throw W0([0,Nr,Wa0],1);var K=[0,V0(x)],n0=Mx(N,u0(x));E0(x);var l=0,m=0,b=K,N=n0;continue}if(T){var $=T[1];if(b)return Tx(Va0);if(typeof j=="number"&&1>=j+xa>>>0)return yh(x,a,h,0,b,0,[0,$,[3,mn(Z([0,N],0,O),[0,$,$a0])]])}else if(b){var H=b[1];if(typeof j=="number"&&1>=j+xa>>>0)return yh(x,a,h,T,0,0,[0,H,[3,mn(Z([0,N],0,O),[0,H,Qa0])]])}var t0=function(L){V2(L,0);var N0=p(X0[20],0,L);return Z2(L),N0},c0=u0(x),r0=t0(x),v0=r0[1],a0=r0[2];x:if(a0[0]===3){var g0=a0[1][2][1];if(P(g0,Bo)&&P(g0,T3))break x;var i0=q(x);if(typeof i0=="number"){var s0=i0-5|0;if(93>>0){if(95>=s0+1>>>0)return v4(x,b),o4(x,h),cX(x,a,T,a0,N)}else if(1>=s0-81>>>0)return yh(x,a,h,T,b,N,[0,v0,a0])}gn(x,a0);var d0=t0(x),w0=br(g0,Bo),M0=Mx(N,c0);return v4(x,b),o4(x,h),[0,x0([0,a],function(L){var N0=d0[1],S0=gn(L,d0[2]),K0=dh(L,a,0),A0=K0[2][2];r:if(w0){var $0=A0[2];e:{if(!$0[1]){if(!$0[2]&&!$0[3])break e;q0(L,[0,N0,23]);break r}q0(L,[0,N0,24])}}else{var ex=A0[2];if(ex[1])q0(L,[0,N0,66]);else{var xx=ex[2];e:{if(!ex[3]){if(xx&&!xx[2])break e;q0(L,[0,N0,65]);break r}q0(L,[0,N0,65])}}}var tx=Z([0,M0],0,O),z0=0,px=0,sx=0,Q=T!==0?1:0,b0=0,U=w0?[1,K0]:[2,K0];return[0,S0,U,b0,Q,sx,px,z0,tx]},x)]}var C0=r0[2],D0=q(x);x:if(typeof D0=="number"){if(D0!==4&&D0!==99)break x;return v4(x,b),o4(x,h),cX(x,a,T,C0,N)}var I0=T!==0?1:0;x:if(C0[0]===3){var j0=C0[1],y0=j0[2][1];r:{var Y0=j0[1];if(r){if(!br(Ro,y0)&&(!I0||!br(za,y0)))break r;q0(x,[0,Y0,[15,y0,I0,0,0]]);break x}}}return yh(x,a,h,T,b,N,[0,v0,C0])}}Fr(BB,[0,function(x,r,e,t,u,i){for(var c=i;;){var v=c[3],a=c[2],l=c[1];if(x&&e)throw W0([0,Nr,za0],1);if(r&&!e)throw W0([0,Nr,Ka0],1);var m=V0(u),h=q(u);if(typeof h=="number"){if(13<=h){if(mr===h)return[0,ix(l),a,v]}else if(h)switch(h-1|0){case 0:if(!t)return[0,ix(l),a,v];break;case 2:if(t)return[0,ix(l),a,v];break;case 11:if(!e){E0(u);var T=q(u);if(typeof T=="number"&&10>T)switch(T){case 1:case 3:case 8:case 9:q0(u,[0,m,32]),a4(t,u);continue}var b=uC(u);tC(u)(b),q0(u,[0,m,97]),E0(u),a4(t,u);continue}var N=u0(u);E0(u);var j=q(u);if(typeof j=="number"&&10>j)switch(j){case 1:case 3:case 8:case 9:a4(t,u);var I=q(u);if(typeof I=="number"){var F=I-1|0;if(2>=F>>>0)switch(F){case 0:if(r)return[0,ix(l),1,N];break;case 1:break;default:return q0(u,[0,m,31]),[0,ix(l),a,v]}}q0(u,[0,m,92]);continue}let K=N;var M=[1,x0([0,m],function($){var H=Z([0,K],0,O);return[0,Hr($),H]},u)];a4(t,u);var c=[0,[0,M,l],a,v];continue}}var z=eT0(u,x,x,x,0,0,0,0,m);a4(t,u);var c=[0,[0,z,l],a,v]}}]),Fr(XB,[0,function(x,r){for(var e=r;;){var t=[0,hh(x),e],u=q(x);if(typeof u=="number"&&u===9){J(x,9);var e=t;continue}return ix(t)}}]);function sX(x,r){var e=mB(x,r);if(e)var t=e;else{x:{if(typeof r=="number"&&1>=r+R9>>>0){var u=1;break x}var u=0}if(!u){x:{if(typeof r=="number")switch(r){case 15:case 30:case 31:case 32:case 42:case 43:case 47:case 54:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:break;default:break x}else switch(r[0]){case 4:if(nC(r[3]))return 1;break x;case 11:break;default:break x}return 1}return 0}var t=u}return t}Fr(YB,[0,function(x,r,e){for(var t=r,u=e;;){if(sX(x,q(x))){let b=t;var i=aC(0,function(I){var F=lh(0,Ya0,I),M=x0(0,function(r0){var v0=Cv(r0),a0=q(r0);x:{if(typeof a0=="number"){if(a0===42){var g0=1,i0=[1,x0(0,function(w0){return E0(w0),Hr(w0)},r0)];break x}if(a0===87){var g0=0,i0=[1,s4(r0)];break x}}var g0=0,i0=[0,da(r0)]}return[0,v0,i0,g0]},I),z=M[2],B=z[3],K=z[2],n0=z[1],$=M[1],H=q(I);x:{if(typeof H=="number"&&H===83){E0(I);var t0=1,c0=[0,Hr(I)];break x}b&&q0(I,[0,$,52]);var t0=b,c0=0}return[0,[0,n0,K,B,F,c0],t0]},x),c=i[2],v=[0,i[1],u]}else var c=t,v=u;var a=q(x);if(typeof a=="number"){var l=a+F9|0;if(14>>0){if(l===-91){E0(x);var t=c,u=v;continue}}else if(12>>0)return ix(v)}x:{r:{e:{if(typeof a!="number"){if(a[0]!==4)break r;var m=a[3];if(!eh(m)){t:{if(P(m,nv)&&P(m,B1)){var h=0;break t}var h=1}if(!h){if(P(m,Ql)){if(!P(m,cv))break e;if(P(m,qf))break r;break e}if(!x[28][2])break r;var T=1;break x}}var T=1;break x}switch(a){case 4:case 83:break;default:break r}}var T=1;break x}var T=0}if(T)return yn(x,y2),ix(v);if(sX(x,a)){yn(x,9);var t=c,u=v}else{J(x,9);var t=c,u=v}}}]),Fr(zB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(y2!==t&&mr!==t)break x;return ix(e)}var u=[0,Hr(x),e];y2!==q(x)&&J(x,9);var e=u}}]),Fr(KB,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1];if(q(x)===10&&th(1,x)){let v=t;var i=x0([0,u],function(l){return J(l,10),[0,v,Cv(l)]},x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return[0,u,t]}}]);function aX(x,r){if(q(x)!==4)return[0,0,Z([0,r],[0,L0(x)],O)];var e=Mx(r,u0(x));J(x,4),V2(x,0);var t=d(X0[9],x);return Z2(x),J(x,5),[0,[0,t],Z([0,e],[0,L0(x)],O)]}function tT0(x){var r=q(x);if(typeof r=="number"&&r===87){1-A2(x)&&Ux(x,g1);var e=V0(x);return J(x,87),ah(x)?[2,nX(x,e)]:[1,x0([0,e],Hr,x)]}return[0,da(x)]}function nT0(x){var r=q(x);return typeof r=="number"&&r===87?[1,s4(x)]:[0,da(x)]}function uT0(x){var r=u0(x);return J(x,67),aX(x,r)}var iT0=0;function oX(x){var r=Av(0,x),e=q(r);return typeof e=="number"&&e===67?[0,x0(iT0,uT0,r)]:0}function fT0(x){var r=q(x);if(typeof r=="number"&&r===87){1-A2(x)&&Ux(x,g1);var e=da(x),t=V0(x);J(x,87);var u=q(x);if(typeof u=="number"&&u===67)return[0,[0,e],[0,x0([0,t],function(v){var a=u0(v);return J(v,67),aX(v,a)},Av(0,x))]];if(ah(x))return[0,[2,nX(x,t)],0];var i=[1,x0([0,t],Hr,x)],c=q(x)===67?al(x,i):i;return[0,c,oX(x)]}return[0,[0,da(x)],0]}function Ne(x,r){var e=ha(1,r);V2(e,1);var t=x(e);return Z2(e),t}function ga(x){return Ne(Hr,x)}function ws(x){return Ne(Cv,x)}function He(x){return Ne(Ov,x)}function vX(x){return Ne(gC,x)}function Dv(x){return Ne(s4,x)}function _C(x){return Ne(nT0,x)}function bC(x){return Ne(tT0,x)}function TC(x){return Ne(fT0,x)}function lX(x){return Ne(hh,x)}function EC(x){return Ne(wC,x)}function vo(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return m1(cT0,x,e[1][1]);case 1:return m1(sT0,x,e[1][1]);case 2:var i=e[1][1],c=i[2][1],v=x[2],a=x[1],l=i[1];I1[3].call(null,c,v)&&q0(a,[0,l,77]);var m=i[2][1],h=i[1];return Pv(m)&&ht(a,[0,h,78]),fl(m)&&ht(a,[0,h,80]),[0,a,I1[4].call(null,c,v)];default:return q0(u,[0,t,20]),x}}function cT0(x){return function(r){return r[0]===0?vo(x,r[1][2][2]):vo(x,r[1][2][1])}}function sT0(x){return function(r){switch(r[0]){case 0:return vo(x,r[1][2][1]);case 1:return vo(x,r[1][2][1]);default:return x}}}function pX(x,r){var e=r[2],t=e[3],u=m1(function(i,c){return vo(i,c[2][1])},[0,x,I1[1]],e[2]);t&&vo(u,t[1][2][1])}function kX(x,r,e,t){var u=x[5],i=t[0]===0?jv(t[1]):0,c=ha(u?0:r,x),v=r||u||1-i;if(!v)return v;if(e){var a=e[1],l=a[2][1],m=a[1];Pv(l)&&ht(c,[0,m,70]),fl(l)&&ht(c,[0,m,80])}if(t[0]===0)return pX(c,t[1]);var h=t[1][2],T=h[2],b=[0,Y3,[0,[0,vs(function(j){var I=j[2],F=I[1],M=I[4],z=I[3],B=I[2],K=F[0]===0?[3,F[1]]:[0,[0,Y3,F[1][2]]];return[0,[0,Y3,[0,K,B,z,M]]]},h[1]),[0,Y3],0]]],N=vo([0,c,I1[1]],b);T&&vo(N,T[1][2][1])}function ll(x,r,e,t){return kX(x,r,e,[0,t])}function mX(x,r){if(r!==12)return 0;var e=u0(x),t=x0(0,function(c){return J(c,12),p(X0[18],c,78)},x),u=t[2],i=t[1];return[0,[0,i,u,Z([0,e],0,O)]]}function aT0(x){q(x)===22&&Ux(x,89);var r=p(X0[18],x,78),e=q(x)===83?(J(x,83),[0,d(X0[10],x)]):0;return[0,r,e]}var oT0=0;function pl(x,r){function e(u){var i=sB(1,Hj(r,Zj(x,u))),c=u0(i);J(i,4);x:{if(A2(i)&&q(i)===22){var v=u0(i),a=x0(0,function(K){return J(K,22),q(K)===87?[0,Dv(K)]:(Ux(K,85),0)},i),l=a[2],m=a[1];if(!l){var T=0;break x}var h=l[1];q(i)===9&&E0(i);var T=[0,[0,m,[0,h,Z([0,v],0,O)]]];break x}var T=0}x:r:{for(var b=0;;){var N=q(i);if(typeof N=="number"){var j=N-5|0;if(7>>0){if(st===j)break}else if(5>>0)break r}var I=x0(oT0,aT0,i);q(i)!==5&&J(i,9);var b=[0,I,b]}break x}var F=f5(function(B){return[0,B[1],[0,B[2],B[3]]]},mX(i,N));q(i)!==5&&Ux(i,61);var M=ix(b),z=u0(i);return J(i,5),[0,T,M,F,O2([0,c],[0,L0(i)],z,O)]}var t=0;return function(u){return x0(t,e,u)}}function hX(x,r,e,t,u){var i=kB(x,r,e,u);return p(X0[16],t,i)}function l4(x,r,e,t,u){var i=hX(x,r,e,t,u);return[0,[0,i[1]],i[2]]}function Fv(x){if(K2!==q(x))return Dv0;var r=u0(x);return E0(x),[0,1,r]}function gh(x){if(q(x)===65&&!Iv(1,x)){var r=u0(x);return E0(x),[0,1,r]}return Ov0}function vT0(x){var r=gh(x),e=r[1],t=r[2],u=x0(0,function(F){var M=u0(F),z=q(F);x:{if(typeof z=="number"){if(z===15){E0(F);var B=Fv(F),n0=B[2],$=B[1],H=1;break x}}else if(z[0]===4&&!P(z[3],Vo)&&!e){E0(F);var n0=0,$=0,H=0;break x}yn(F,z);var K=Fv(F),n0=K[2],$=K[1],H=1}var t0=O6([0,t,[0,M,[0,n0,0]]]),c0=F[7],r0=q(F);x:{if(c0&&typeof r0=="number"){if(r0===4){var i0=0,s0=0;break x}if(r0===99){var v0=Q1(F,He(F)),a0=q(F)===4?0:[0,Xt(F,p(X0[13],Iv0,F))],i0=a0,s0=v0;break x}}var g0=dn(F)?Xt(F,p(X0[13],Nv0,F)):(wB(F,jv0),[0,V0(F),Cv0]),i0=[0,g0],s0=Q1(F,He(F))}var d0=pl(e,$)(F),w0=q(F)===87?d0:i4(F,d0),M0=TC(F),C0=M0[2],D0=M0[1];if(C0)var I0=EB(F,C0),j0=D0;else var I0=C0,j0=al(F,D0);return[0,$,H,s0,i0,w0,j0,I0,t0]},x),i=u[2],c=i[5],v=i[4],a=i[1],l=i[8],m=i[7],h=i[6],T=i[3],b=i[2],N=u[1],j=l4(x,e,a,0,jv(c)),I=j[1];return ll(x,j[2],v,c),[27,[0,v,c,I,e,a,b,m,h,T,Z([0,l],0,O),N]]}var lT0=0;function p4(x){return x0(lT0,vT0,x)}function SC(x,r){var e=u0(r);J(r,x);var t=r[28][2];if(t)var u=x===28?1:0,i=u&&(q(r)===49?1:0);else var i=t;i&&Ux(r,19);for(var c=0,v=0;;){var a=x0(0,function(I){var F=p(X0[18],I,81);if(u2(I,83))var M=0,z=[0,d(X0[10],I)];else{var B=F[1];if(F[2][0]===2)var M=0,z=0;else var M=[0,[0,B,58]],z=0}return[0,[0,F,z],M]},r),l=a[2],m=l[2],h=[0,[0,a[1],l[1]],c],T=m?[0,m[1],v]:v;if(!u2(r,9)){var b=ix(T);return[0,ix(h),e,b]}var c=h,v=T}}var pT0=CB(X0),kT0=25;function dX(x){return SC(kT0,x)}function yX(x){var r=SC(28,xC(1,x)),e=r[1],t=r[2];return[0,e,t,ix(m1(function(u,i){return i[2][2]?u:[0,[0,i[1],57],u]},r[3],e))]}function gX(x){return SC(29,xC(1,x))}function wX(x){function r(t){return[20,pT0[1].call(null,x,t)]}var e=0;return function(t){return x0(e,r,t)}}function mT0(x){var r=u0(x),e=q(x),t=xr(1,x);x:{r:if(typeof e!="number"&&e[0]===2){var u=e[1],i=u[4],c=u[3],v=u[2],a=u[1];e:{if(typeof t=="number")switch(t){case 86:case 87:break;default:break e}else{if(t[0]!==4)break e;if(P(t[3],Nt))break r}i&&Ie(x,76),J(x,[2,[0,a,v,c,i]]);var l=[1,[0,a,[0,v,c,Z([0,r],[0,L0(x)],O)]]];if(typeof t=="number"&&1>=t+xa>>>0){var m=t===86?1:0;Ux(x,[17,m,v]),m&&E0(x);var h=V0(x),I=0,F=[0,h,[2,[0,[0,h,Sv0],_C(x),m]]],M=l;break x}E0(x);var I=0,F=p(X0[18],x,78),M=l;break x}}if(typeof t!="number"&&t[0]===4&&!P(t[3],Nt)){var T=[0,a1(x)];ys(x,Av0);var I=0,F=p(X0[18],x,78),M=T;break x}if(typeof e=="number"&&!e){Ux(x,33);var b=[0,[0,V0(x),Pv0]],I=0,F=p(X0[18],x,78),M=b;break x}var N=H0(X0[14],x,0,78),j=N[2],I=1,F=[0,N[1],[2,j]],M=[0,j[1]]}var z=q(x)===83?(J(x,83),[0,d(X0[10],x)]):0;return[0,M,F,z,I]}var hT0=0;function dT0(x){var r=sB(1,x),e=u0(r);J(r,4);x:r:{for(var t=0;;){var u=q(r);if(typeof u=="number"){var i=u-5|0;if(7>>0){if(st===i)break}else if(5>>0)break r}var c=x0(hT0,mT0,r);q(r)!==5&&J(r,9);var t=[0,c,t]}break x}var v=f5(function(m){var h=m[3],T=m[2],b=m[1];return q(r)===9&&E0(r),[0,b,[0,T,h]]},mX(r,u));q(r)!==5&&Ux(r,61);var a=ix(t),l=u0(r);return J(r,5),[0,a,v,O2([0,e],[0,L0(r)],l,O)]}var yT0=0;function gT0(x){var r=x0(0,function(h){var T=u0(h);ys(h,Tv0);var b=Xt(h,p(X0[13],Ev0,h)),N=Q1(h,He(h)),j=x0(yT0,dT0,h),I=fC(h)?j:p(F2(h)[2],j,function(F,M){return p(Bx(F,842685896,11),F,M)});return[0,N,b,I,sC(h,EC(h)),T]},x),e=r[2],t=e[3],u=e[2],i=e[5],c=e[4],v=e[1],a=r[1],l=hX(x,0,0,0,0),m=l[1];return kX(x,l[2],[0,u],[1,t]),[3,[0,u,v,t,c,m,Z([0,i],0,O),a]]}var wT0=0;function AC(x){return x0(wT0,gT0,x)}function o1(x,r){if(r[0]===0)return r[1];var e=r[1];return b1(function(t){return q0(x,t)},r[2][1]),e}function PC(x,r,e){var t=x?x[1]:36;if(e[0]===0)var u=e[1];else{var i=e[1];b1(function(l){return q0(r,l)},e[2][2]);var u=i}1-d(X0[23],u)&&q0(r,[0,u[1],t]);var c=u[2];x:if(c[0]===10){var v=u[1];if(Pv(c[1][2][1])){ht(r,[0,v,71]);break x}}return p(X0[19],r,u)}function IC(x,r){var e=K3(x[2],r[2]);return[0,K3(x[1],r[1]),e]}function _X(x){var r=ix(x[2]);return[0,ix(x[1]),r]}function wh(x){var r=V0(x),e=bX(x),t=q(x);x:{if(typeof t=="number"&&t===90){var u=x0([0,r],function(l){for(var m=[0,e,0];;){var h=q(l);if(typeof h=="number"&&h===90){E0(l);var m=[0,bX(l),m];continue}var T=ix(m);return[0,T,Z(0,[0,L0(l)],O)]}},x),i=[0,u[1],[12,u[2]]];break x}var i=e}var c=q(x);if(typeof c!="number"&&c[0]===4&&!P(c[3],Nt)){var v=x0([0,r],function(a){E0(a);var l=q(a);x:{r:if(typeof l=="number"){var m=l+E3|0;if(4>=m>>>0){switch(m){case 0:var h=Yt(a,0),N=[1,h[1],h[2]];break;case 3:var T=Yt(a,2),N=[1,T[1],T[2]];break;case 4:var b=Yt(a,1),N=[1,b[1],b[2]];break;default:break r}var j=N;break x}}var j=[0,p(X0[13],0,a)]}return[0,i,j,Z(0,[0,L0(a)],O)]},x);return[0,v[1],[13,v[2]]]}return i}function bX(x){var r=q(x);if(typeof r=="number")switch(r){case 0:var e=function(p0){var Fx=V0(p0),Sx=u0(p0);function bx(V){var lx=V[2],U0=V[1],ox=[2,[0,U0,lx[2][2]]];return[0,Fx,[0,ox,[0,U0,[7,lx]],1,Z([0,Sx],[0,L0(p0)],O)]]}var B0=q(p0);if(typeof B0=="number"){var Wx=B0+E3|0;if(4>=Wx>>>0)switch(Wx){case 0:return bx(Yt(p0,0));case 3:return bx(Yt(p0,2));case 4:return bx(Yt(p0,1))}}var Yx=u0(p0),ax=q(p0);x:{if(typeof ax!="number")switch(ax[0]){case 0:var Qx=ax[2],kx=ax[1],tr=V0(p0),sr=H0(X0[24],p0,kx,Qx),jx=[1,[0,tr,[0,sr,Qx,Z([0,Yx],[0,L0(p0)],O)]]];break x;case 2:var Mr=ax[1],a2=Mr[4],_2=Mr[3],i2=Mr[2],Q2=Mr[1];a2&&Ie(p0,76),J(p0,[2,[0,Q2,i2,_2,a2]]);var jx=[0,[0,Q2,[0,i2,_2,Z([0,Yx],[0,L0(p0)],O)]]];break x}var jx=[2,a1(p0)]}J(p0,87);var _=wh(p0);return[0,Fx,[0,jx,_,0,Z([0,Sx],[0,L0(p0)],O)]]};return x0(0,function(p0){var Fx=u0(p0);J(p0,0);x:{for(var Sx=0;;){var bx=q(p0);if(typeof bx=="number"){var B0=bx-2|0;if(ce>>0){if(Te>=B0+1>>>0){var ax=[0,ix(Sx),0];break x}}else if(B0===10)break}var Wx=e(p0);1-(q(p0)===1?1:0)&&J(p0,9);var Sx=[0,Wx,Sx]}var Yx=EX(p0);q(p0)===9&&q0(p0,[0,V0(p0),Pl0]);var ax=[0,ix(Sx),[0,Yx]]}var Qx=ax[2],kx=ax[1],tr=u0(p0);return J(p0,1),[10,[0,kx,Qx,O2([0,Fx],[0,L0(p0)],tr,O)]]},x);case 4:var t=u0(x);J(x,4);var u=wh(x);J(x,5);var i=L0(x),c=u[2],v=function(p0){return S1(p0,Z([0,t],[0,i],O))},a=function(p0){return S5(p0,Z([0,t],[0,i],O))},l=u[1];switch(c[0]){case 0:var I0=[0,v(c[1])];break;case 1:var m=c[1],h=v(m[3]),I0=[1,[0,m[1],m[2],h]];break;case 2:var T=c[1],b=v(T[3]),I0=[2,[0,T[1],T[2],b]];break;case 3:var N=c[1],j=v(N[3]),I0=[3,[0,N[1],N[2],j]];break;case 4:var I=c[1],F=v(I[2]),I0=[4,[0,I[1],F]];break;case 5:var I0=[5,v(c[1])];break;case 6:var M=c[1],z=v(M[3]),I0=[6,[0,M[1],M[2],z]];break;case 7:var B=c[1],K=v(B[3]),I0=[7,[0,B[1],B[2],K]];break;case 8:var n0=c[1],$=n0[2],H=n0[1],t0=v($[2]),I0=[8,[0,H,[0,$[1],t0]]];break;case 9:var c0=c[1],r0=c0[2],v0=c0[1],a0=v(r0[3]),I0=[9,[0,v0,[0,r0[1],r0[2],a0]]];break;case 10:var g0=c[1],i0=a(g0[3]),I0=[10,[0,g0[1],g0[2],i0]];break;case 11:var s0=c[1],d0=a(s0[3]),I0=[11,[0,s0[1],s0[2],d0]];break;case 12:var w0=c[1],M0=v(w0[2]),I0=[12,[0,w0[1],M0]];break;default:var C0=c[1],D0=v(C0[3]),I0=[13,[0,C0[1],C0[2],D0]]}return[0,l,I0];case 6:return x0(0,function(p0){var Fx=u0(p0),Sx=V0(p0);J(p0,6);x:{for(var bx=0;;){var B0=q(p0);if(typeof B0=="number"){var Wx=B0-8|0;if(ui>>0){if(K2>=Wx+1>>>0){var kx=[0,ix(bx),0];break x}}else if(Wx===4)break}var Yx=wh(p0),ax=Yr(Sx,V0(p0));q(p0)!==7&&J(p0,9);var bx=[0,[0,ax,Yx],bx]}var Qx=EX(p0);q(p0)===9&&q0(p0,[0,V0(p0),Il0]);var kx=[0,ix(bx),[0,Qx]]}var tr=kx[2],sr=kx[1],Mr=u0(p0);return J(p0,7),[11,[0,sr,tr,O2([0,Fx],[0,L0(p0)],Mr,O)]]},x);case 25:var j0=Yt(x,0);return[0,j0[1],[7,j0[2]]];case 28:var y0=Yt(x,2);return[0,y0[1],[7,y0[2]]];case 29:var Y0=Yt(x,1);return[0,Y0[1],[7,Y0[2]]];case 30:var L=u0(x),N0=V0(x);return E0(x),[0,N0,[5,Z([0,L],[0,L0(x)],O)]];case 104:return TX(x,0);case 105:return TX(x,1);case 31:case 32:var S0=u0(x),K0=V0(x);return E0(x),[0,K0,[4,[0,r===32?1:0,Z([0,S0],[0,L0(x)],O)]]]}else switch(r[0]){case 0:var A0=r[2],$0=r[1],ex=u0(x),xx=V0(x),tx=H0(X0[24],x,$0,A0);return[0,xx,[1,[0,tx,A0,Z([0,ex],[0,L0(x)],O)]]];case 1:var z0=r[2],px=r[1],sx=u0(x),Q=V0(x),b0=H0(X0[26],x,px,z0);return[0,Q,[2,[0,b0,z0,Z([0,sx],[0,L0(x)],O)]]];case 2:var U=r[1],h0=U[4],_0=U[3],m0=U[2],T0=U[1],X=u0(x);return h0&&Ie(x,76),E0(x),[0,T0,[3,[0,m0,_0,Z([0,X],[0,L0(x)],O)]]];case 4:if(!P(r[3],qo)){var Gx=u0(x),Px=V0(x);return E0(x),[0,Px,[0,Z([0,Gx],[0,L0(x)],O)]]}break}if(!dn(x)){var G0=u0(x),Kr=V0(x);p2(0,x);x:if(typeof r!="number"&&r[0]===7){E0(x);break x}return[0,Kr,[0,Z([0,G0],Tl0,O)]]}for(var S=V0(x),G=[0,p(X0[13],0,x)];;){var rx=q(x);if(typeof rx=="number"){if(rx===6){let p0=G;var G=[1,x0([0,S],function(Sx){J(Sx,6);var bx=u0(Sx),B0=q(Sx);x:{if(typeof B0!="number")switch(B0[0]){case 0:var Wx=B0[2],Yx=B0[1],ax=V0(Sx),Qx=H0(X0[24],Sx,Yx,Wx),_2=[1,[0,ax,[0,Qx,Wx,Z([0,bx],[0,L0(Sx)],O)]]];break x;case 2:var kx=B0[1],tr=kx[4],sr=kx[3],Mr=kx[2],a2=kx[1];tr&&Ie(Sx,76),J(Sx,[2,[0,a2,Mr,sr,tr]]);var _2=[0,[0,a2,[0,Mr,sr,Z([0,bx],[0,L0(Sx)],O)]]];break x}p2(_l0,Sx);var _2=[0,[0,V0(Sx),bl0]]}return J(Sx,7),[0,p0,_2,Z(0,[0,L0(Sx)],O)]},x)];continue}if(rx===10){let p0=G;var G=[1,x0([0,S],function(Sx){E0(Sx);var bx=[2,a1(Sx)];return[0,p0,bx,Z(0,[0,L0(Sx)],O)]},x)];continue}}if(G[0]===0){var yx=G[1];return[0,yx[1],[8,yx]]}var Ex=G[1],nx=Ex[1];return[0,nx,[9,[0,nx,Ex[2]]]]}}function TX(x,r){return x0(0,function(e){var t=u0(e);E0(e);var u=q(e);x:{if(typeof u!="number")switch(u[0]){case 0:var i=u[2],c=u[1],v=u0(e),a=V0(e),l=H0(X0[24],e,c,i),I=[0,a,[0,[0,l,i,Z([0,v],[0,L0(e)],O)]]];break x;case 1:var m=u[2],h=u[1],T=u0(e),b=V0(e),N=H0(X0[26],e,h,m),I=[0,b,[1,[0,N,m,Z([0,T],[0,L0(e)],O)]]];break x}var j=V0(e);p2(El0,e);var I=[0,j,Sl0]}return[6,[0,r,I,Z([0,t],[0,L0(e)],O)]]},x)}function Yt(x,r){return x0(0,function(e){var t=u0(e);E0(e);var u=p(X0[13],Al0,e);return[0,r,u,Z([0,t],[0,L0(e)],O)]},x)}function EX(x){return x0(0,function(r){var e=u0(r);J(r,12);var t=q(r);x:{r:if(typeof t=="number"){var u=t+E3|0;if(4>=u>>>0){switch(u){case 0:var i=[0,Yt(r,0)];break;case 3:var i=[0,Yt(r,2)];break;case 4:var i=[0,Yt(r,1)];break;default:break r}var c=i;break x}}var c=0}return[0,c,Z([0,e],[0,L0(r)],O)]},x)}function SX(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0}var k4=[],_h=[],AX=[],PX=[],IX=[],m4=[],NX=[],jX=[],NC=[],CX=[];function h4(x){var r=dn(x);if(r){var e=q(x);x:{if(typeof e=="number"){if(e===59){if(x[18]){var t=0;break x}}else if(e===66&&x[19]){var t=0;break x}}var t=1}var u=t}else var u=r;var i=q(x);x:{r:if(typeof i=="number"){if(23<=i){if(i===59){if(x[18])return[0,x0(0,function(m){m[10]&&Ux(m,ea);var h=u0(m),T=V0(m);J(m,59);var b=V0(m);if(sl(m))var N=0,j=0;else{var I=u2(m,K2),F=q(m);e:{t:if(typeof F=="number"){if(F!==87){if(10<=F)break t;switch(F){case 0:case 2:case 3:case 4:case 6:break t}}var M=0;break e}var M=1}e:{if(!I&&!M){var z=0;break e}var z=[0,zt(m)]}var N=I,j=z}var B=j?0:L0(m),K=Yr(T,b);return[38,[0,j,Z([0,h],[0,B],O),N,K]]},x)];break r}if(i!==99)break r}else if(i!==4&&22>i)break r;break x}if(!u)return d(k4[1],x)}x:{if(i===65&&A2(x)&&xr(1,x)===99){var c=k4[2],v=VX;break x}var c=VX,v=k4[2]}var a=cC(x,v);if(a)return a[1];var l=cC(x,c);return l?l[1]:d(k4[1],x)}function zt(x){return o1(x,h4(x))}function OX(x){var r=x[2];switch(r[0]){case 24:var e=r[1],t=e[1][2][1];if(P(t,X1)){if(!P(t,rv)&&!P(e[2][2][1],Um))return 0}else if(!P(e[2][2][1],Xl))return 0;break;case 10:case 23:break;default:return 0}return 1}function DX(x){var r=V0(x),e=x0(0,bh,x),t=e[2],u=e[1],i=q(x);x:{if(typeof i=="number"&&i===85){var v=KN(_h[3],1,x,t,u);break x}var c=H0(_h[1],x,t,u),v=H0(_h[2],x,c[2],c[1])}var a=v[2];if(q(x)!==86)return a;E0(x);var l=zt(e4(0,x));J(x,87);var m=x0([0,r],zt,x),h=m[2],T=m[1];return[0,[0,T,[8,[0,o1(x,a),l,h,0]]]]}function bh(x){return p(AX[1],x,0)}function FX(x){var r=q(x);if(typeof r=="number"){if(49<=r){if(Be<=r){if(ea>r)switch(r+R9|0){case 0:return Qv0;case 1:return Hv0;case 6:return Zv0;case 7:return x30}}else if(r===66&&x[19])return x[10]&&Ux(x,6),r30}else if(46<=r)switch(r+Ja|0){case 0:return e30;case 1:return t30;default:return n30}}return 0}function RX(x){var r=V0(x),e=u0(x),t=FX(x);if(t){var u=t[1];E0(x);var i=x0([0,r],LX,x),c=i[2],v=i[1];x:r:if(u===6){var a=c[2];switch(a[0]){case 10:ht(x,[0,v,68]);break;case 23:a[1][2][0]===1&&q0(x,[0,v,62]);break;default:break r}break x}return[0,[0,v,[36,[0,u,c,Z([0,e],0,O)]]]]}var l=q(x);x:{if(typeof l=="number"){if(ea===l){var m=i30;break x}if(Te===l){var m=u30;break x}}var m=0}if(m){var h=m[1];E0(x);var T=x0([0,r],LX,x),b=T[2],N=T[1];1-OX(b)&&q0(x,[0,b[1],36]);var j=b[2];x:if(j[0]===10&&Pv(j[1][2][1])){Ie(x,73);break x}return[0,[0,N,[37,[0,h,b,1,Z([0,e],0,O)]]]]}var I=MX(x);if(N1(x))return I;var F=q(x);x:{if(typeof F=="number"){if(ea===F){var M=c30;break x}if(Te===F){var M=f30;break x}}var M=0}if(!M)return I;var z=M[1],B=o1(x,I);1-OX(B)&&q0(x,[0,B[1],36]);var K=B[2];x:if(K[0]===10&&Pv(K[1][2][1])){Ie(x,72);break x}var n0=V0(x);E0(x);var $=L0(x),H=Yr(B[1],n0);return[0,[0,H,[37,[0,z,B,0,Z(0,[0,$],O)]]]]}function LX(x){return o1(x,RX(x))}function MX(x){var r=V0(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=q(u);x:{r:if(typeof i=="number"){var c=i+uA|0;if(7>=c>>>0){switch(c){case 0:if(!e)break r;var v=[0,BX(u)];break;case 6:var v=[0,x0(0,function(m){var h=u0(m),T=V0(m);if(J(m,51),u2(m,10)){var b=mn(0,[0,T,v30]),N=V0(m);ys(m,l30);var j=mn(0,[0,N,p30]);return[24,[0,b,j,Z([0,h],[0,L0(m)],O)]]}var I=u0(m);J(m,4);var F=WX([0,I],0,zt(e4(0,m)));return J(m,5),[11,[0,F,Z([0,h],[0,L0(m)],O)]]},u)];break;case 7:var v=[0,qX(u)];break;default:break r}var a=v;break x}}var a=so(u)?[0,YX(u)]:zX(u)}return lo(0,0,u,r,a)}function jC(x){return o1(x,MX(x))}function qX(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=V0(x),u=u0(x);J(x,52);var i=[0,t,[30,[0,Z([0,u],[0,L0(x)],O)]]],c=q(x);if(typeof c=="number"&&11>c)switch(c){case 4:var v=r?i:(q0(x,[0,t,y2]),[0,t,[10,mn(0,[0,t,s30])]]);return UX(0,x,t,v);case 6:case 10:var a=e?i:(q0(x,[0,t,99]),[0,t,[10,mn(0,[0,t,o30])]]);return UX(0,x,t,a)}return e?p2(a30,x):q0(x,[0,t,99]),i}function lo(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=XX([0,i],[0,c],e,t,u),a=lB(e);x:{if(a){var l=a[1];if(typeof l=="number"&&l===84){var m=1;break x}}var m=0}function h(j){var I=F2(j)[2];return p(I,o1(j,v),function(F,M){return p(Bx(F,jt,93),F,M)})}function T(j,I,F){var M=Th(I),z=M[1],B=M[2],K=Yr(t,z),n0=[0,F,j,[0,z,B],0];x:{if(!m&&!c){var $=[6,n0];break x}var $=[27,[0,n0,K,m]]}var H=c||m;return lo([0,i],[0,H],I,t,[0,[0,K,$]])}if(e[13])return v;var b=q(e);if(typeof b=="number"){var N=b-99|0;if(2>>0){if(N===-95)return T(0,e,h(e))}else if(N!==1&&A2(e))return fh(rh(function(j,I){throw W0(gs,1)},e),v,function(j){var I=h(j);return T(CC(j),j,I)})}return v}function UX(x,r,e,t){var u=x?x[1]:1;return o1(r,lo([0,u],0,r,e,[0,t]))}function BX(x){return x0(0,function(r){var e=V0(r),t=u0(r);if(J(r,45),r[11]&&q(r)===10){var u=L0(r);E0(r);var i=mn(Z([0,t],[0,u],O),[0,e,k30]),c=q(r);return typeof c!="number"&&c[0]===4&&!P(c[3],Um)?[24,[0,i,p(X0[13],0,r),0]]:(p2(m30,r),E0(r),[10,i])}var v=V0(r),a=q(r);x:{if(typeof a=="number"){if(a===45){var l=BX(r);break x}if(a===52){var l=qX(eC(1,r));break x}}var l=so(r)?YX(r):o1(r,zX(r))}var m=eC(1,r),h=o1(m,XX([0,h30[1]],0,m,v,[0,l])),T=q(r);x:{if(typeof T!="number"&&T[0]===3){var b=GX(r,v,h,T[1]);break x}var b=h}x:{r:if(q(r)!==4){if(A2(r)&&q(r)===99)break r;var N=b;break x}var N=p(F2(r)[2],b,function(M,z){return p(Bx(M,jt,94),M,z)})}var j=A2(r)?fh(rh(function(M,z){throw W0(gs,1)},r),0,CC):0,I=q(r);x:{if(typeof I=="number"&&I===4){var F=[0,Th(r)];break x}var F=0}return[25,[0,N,j,F,Z([0,t],0,O)]]},x)}function CC(x){V2(x,1);var r=q(x)===99?[0,x0(0,PX[1],x)]:0;return Z2(x),r}function Th(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=p(IX[1],r,0),u=u0(r);return J(r,5),[0,t,O2([0,e],[0,L0(r)],u,O)]},x)}function XX(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=q(e);if(typeof v=="number")switch(v){case 6:return E0(e),P6(m4[1],[0,i],[0,c],0,e,t,u);case 10:return E0(e),P6(m4[2],[0,i],[0,c],0,e,t,u);case 84:1-i&&Ux(e,59),J(e,84);var a=q(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return E0(e),P6(m4[1],[0,i],y30,d30,e,t,u);case 99:if(A2(e))return u;break}else if(a[0]===3)return Ux(e,60),u;return P6(m4[2],[0,i],w30,g30,e,t,u)}else if(v[0]===3){var l=v[1];return c&&Ux(e,60),lo(_30,0,e,t,[0,GX(e,t,o1(e,u),l)])}return u}function YX(x){return x0(0,function(r){var e=gh(r),t=e[1],u=e[2],i=x0(0,function(F){var M=u0(F);J(F,15);var z=Fv(F),B=z[1],K=O6([0,u,[0,M,[0,z[2],0]]]);if(q(F)===4)var n0=0,$=0;else{var H=q(F);x:{if(typeof H=="number"&&H===99){var c0=0;break x}var t0=Hj(B,Zj(t,F)),c0=[0,Xt(t0,p(X0[13],b30,t0))]}var n0=Q1(F,He(F)),$=c0}var r0=Sv(0,F),v0=t||r0[19],a0=pl(v0,B)(r0),g0=q(r0)===87?a0:i4(r0,a0),i0=TC(r0),s0=i0[2],d0=i0[1];if(s0)var w0=EB(r0,s0),M0=d0;else var w0=s0,M0=al(r0,d0);return[0,$,g0,B,w0,M0,n0,K]},r),c=i[2],v=c[3],a=c[2],l=c[1],m=c[7],h=c[6],T=c[5],b=c[4],N=i[1],j=l4(r,t,v,1,jv(a)),I=j[1];return ll(r,j[2],l,a),[9,[0,l,a,I,t,v,1,b,T,h,Z([0,m],0,O),N]]},x)}function OC(x,r,e){switch(r){case 1:Ie(x,76);try{var t=Qm(ov(qx(T30,e))),u=t}catch(T){var i=U2(T);if(i[1]!==vn)throw W0(i,0);var u=Tx(qx(E30,e))}break;case 2:Ie(x,75);try{var c=CN(e),u=c}catch(T){var v=U2(T);if(v[1]!==vn)throw W0(v,0);var u=Tx(qx(S30,e))}break;case 4:try{var a=CN(e),u=a}catch(T){var l=U2(T);if(l[1]!==vn)throw W0(l,0);var u=Tx(qx(A30,e))}break;default:try{var m=Qm(ov(e)),u=m}catch(T){var h=U2(T);if(h[1]!==vn)throw W0(h,0);var u=Tx(qx(P30,e))}}return J(x,[0,r,e]),u}function DC(x,r,e){var t=Nx(e);x:{if(t!==0&&z1===q2(e,t-1|0)){var u=T1(e,0,t-1|0);break x}var u=e}var i=xq(u);return J(x,[1,r,e]),i}function zX(x){var r=V0(x),e=u0(x),t=q(x);if(typeof t=="number")switch(t){case 0:var u=d(X0[12],x);return[1,[0,u[1],[26,u[2]]],u[3]];case 4:var i=u0(x),c=x0(0,function(U){J(U,4);var h0=V0(U),_0=zt(U),m0=q(U);x:{if(typeof m0=="number"){if(m0===9){var T0=[0,FC(U,h0,[0,_0,0])];break x}if(m0===87){var T0=[1,[0,_0,Dv(U),0]];break x}}var T0=[0,_0]}return J(U,5),T0},x),v=c[2],a=c[1],l=L0(x),m=v[0]===0?v[1]:[0,a,[34,v[1]]];return[0,WX([0,i],[0,l],m)];case 6:var h=x0(0,_T0,x),T=h[2];return[1,[0,h[1],[0,T[1]]],T[2]];case 21:if(x[28][3]&&!Iv(1,x)&&xr(1,x)===4){var b=u0(x),N=V0(x),j=p(X0[13],0,x),I=Th(x),F=I[2],M=I[1];if(!N1(x)&&q(x)===0){var z=F[1];if(z){var B=z[1];if(B[0]===0&&!z[2])return[0,KX(x,N,b,B[1])]}return q0(x,[0,M,49]),[0,KX(x,N,b,[0,M,I30])]}var K=[0,j[1],[10,j]],n0=Yr(N,M);return lo(j30,N30,x,N,[0,[0,n0,[6,[0,K,0,[0,M,F],Z([0,b],0,O)]]]])}break;case 22:return E0(x),[0,[0,r,[33,[0,Z([0,e],[0,L0(x)],O)]]]];case 30:return E0(x),[0,[0,r,[16,Z([0,e],[0,L0(x)],O)]]];case 41:return[0,d(X0[22],x)];case 99:var $=d(X0[17],x),H=$[2],t0=$[1],c0=tn<=H[1]?[13,H[2]]:[12,H[2]];return[0,[0,t0,c0]];case 31:case 32:return E0(x),[0,[0,r,[15,[0,t===32?1:0,Z([0,e],[0,L0(x)],O)]]]];case 75:case 106:V2(x,5);var r0=V0(x),v0=u0(x),a0=q(x);x:{if(typeof a0!="number"&&a0[0]===5){var g0=a0[3],i0=a0[2];E0(x);var s0=L0(x),d0=s0,w0=g0,M0=i0,C0=qx(D30,qx(i0,qx(O30,g0)));break x}p2(F30,x);var d0=0,w0=R30,M0=L30,C0=M30}Z2(x);var D0=$r(Nx(w0));Eb0(function(U){var h0=U+F9|0;if(21>=h0>>>0)switch(h0){case 0:case 3:case 5:case 9:case 15:case 17:case 18:case 21:return lt(D0,U)}},w0);var I0=G2(D0);return P(I0,w0)&&Ux(x,[19,w0]),[0,[0,r0,[19,[0,M0,I0,C0,Z([0,v0],[0,d0],O)]]]]}else switch(t[0]){case 0:var j0=t[2],y0=OC(x,t[1],j0);return[0,[0,r,[17,[0,y0,j0,Z([0,e],[0,L0(x)],O)]]]];case 1:var Y0=t[2],L=DC(x,t[1],Y0);return[0,[0,r,[18,[0,L,Y0,Z([0,e],[0,L0(x)],O)]]]];case 2:var N0=t[1],S0=N0[3],K0=N0[2],A0=N0[1];N0[4]&&Ie(x,76),E0(x);var $0=Z([0,e],[0,L0(x)],O),ex=x[28],xx=ex[7],tx=ex[8];x:{if(xx){var z0=xx[1];if($M(z0,K0)){var sx=[20,[0,K0,A0,Nx(z0),0,S0,$0]];break x}}if(tx){var px=tx[1];if($M(px,K0)){var sx=[20,[0,K0,A0,Nx(px),1,S0,$0]];break x}}var sx=[14,[0,K0,S0,$0]]}return[0,[0,A0,sx]];case 3:var Q=JX(x,t[1]);return[0,[0,Q[1],[32,Q[2]]]];case 4:if(!P(t[3],pA)&&xr(1,x)===41)return[0,d(X0[22],x)];break}if(dn(x)){var b0=p(X0[13],0,x);return[0,[0,b0[1],[10,b0]]]}p2(0,x);x:if(typeof t!="number"&&t[0]===7){E0(x);break x}return[0,[0,r,[16,Z([0,e],C30,O)]]]}function KX(x,r,e,t){function u(i){var c=u0(i),v=d(X0[27],i),a=u2(i,16)?[0,d(X0[7],i)]:0;J(i,87);var l=zt(i),m=q(i);x:{r:if(typeof m=="number"){if(m!==1&&mr!==m)break r;break x}J(i,9)}return[0,v,l,a,Z([0,c],[0,L0(i)],O)]}return x0([0,r],function(i){J(i,0);for(var c=0;;){var v=q(i);x:if(typeof v=="number"){if(v!==1&&mr!==v)break x;var a=ix(c);return J(i,1),[22,[0,t,a,Z([0,e],[0,L0(i)],O)]]}var c=[0,x0(0,u,i),c]}},x)}function JX(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],c=u0(x);J(x,[3,r]);var v=[0,t,[0,[0,u,i],e]];if(e)var l=0,m=[0,v,0],h=t;else var a=H0(NX[1],x,[0,v,0],0),l=a[3],m=a[2],h=a[1];var T=L0(x),b=Yr(t,h);return[0,b,[0,m,l,Z([0,c],[0,T],O)]]}function GX(x,r,e,t){var u=p(F2(x)[2],e,function(c,v){return p(Bx(c,jt,3),c,v)}),i=JX(x,t);return[0,Yr(r,i[1]),[31,[0,u,i,0]]]}function WX(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=e[2];function c(ox){return S1(ox,Z([0,t],[0,u],O))}function v(ox){return S5(ox,Z([0,t],[0,u],O))}var a=e[1];switch(i[0]){case 0:var l=i[1],m=v(l[2]),U0=[0,[0,l[1],m]];break;case 1:var h=i[1],T=h[11],b=c(h[10]),U0=[1,[0,h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],b,T]];break;case 2:var N=i[1],j=c(N[2]),U0=[2,[0,N[1],j]];break;case 3:var I=i[1],F=c(I[3]),U0=[3,[0,I[1],I[2],F]];break;case 4:var M=i[1],z=c(M[4]),U0=[4,[0,M[1],M[2],M[3],z]];break;case 5:var B=i[1],K=c(B[4]),U0=[5,[0,B[1],B[2],B[3],K]];break;case 6:var n0=i[1],$=c(n0[4]),U0=[6,[0,n0[1],n0[2],n0[3],$]];break;case 7:var H=i[1],t0=c(H[7]),U0=[7,[0,H[1],H[2],H[3],H[4],H[5],H[6],t0]];break;case 8:var c0=i[1],r0=c(c0[4]),U0=[8,[0,c0[1],c0[2],c0[3],r0]];break;case 9:var v0=i[1],a0=v0[11],g0=c(v0[10]),U0=[9,[0,v0[1],v0[2],v0[3],v0[4],v0[5],v0[6],v0[7],v0[8],v0[9],g0,a0]];break;case 10:var i0=i[1],s0=i0[2],d0=i0[1],w0=c(s0[2]),U0=[10,[0,d0,[0,s0[1],w0]]];break;case 11:var M0=i[1],C0=c(M0[2]),U0=[11,[0,M0[1],C0]];break;case 12:var D0=i[1],I0=c(D0[4]),U0=[12,[0,D0[1],D0[2],D0[3],I0]];break;case 13:var j0=i[1],y0=c(j0[4]),U0=[13,[0,j0[1],j0[2],j0[3],y0]];break;case 14:var Y0=i[1],L=c(Y0[3]),U0=[14,[0,Y0[1],Y0[2],L]];break;case 15:var N0=i[1],S0=c(N0[2]),U0=[15,[0,N0[1],S0]];break;case 16:var U0=[16,c(i[1])];break;case 17:var K0=i[1],A0=c(K0[3]),U0=[17,[0,K0[1],K0[2],A0]];break;case 18:var $0=i[1],ex=c($0[3]),U0=[18,[0,$0[1],$0[2],ex]];break;case 19:var xx=i[1],tx=c(xx[4]),U0=[19,[0,xx[1],xx[2],xx[3],tx]];break;case 20:var z0=i[1],px=c(z0[6]),U0=[20,[0,z0[1],z0[2],z0[3],z0[4],z0[5],px]];break;case 21:var sx=i[1],Q=c(sx[4]),U0=[21,[0,sx[1],sx[2],sx[3],Q]];break;case 22:var b0=i[1],U=c(b0[3]),U0=[22,[0,b0[1],b0[2],U]];break;case 23:var h0=i[1],_0=c(h0[3]),U0=[23,[0,h0[1],h0[2],_0]];break;case 24:var m0=i[1],T0=c(m0[3]),U0=[24,[0,m0[1],m0[2],T0]];break;case 25:var X=i[1],Gx=c(X[4]),U0=[25,[0,X[1],X[2],X[3],Gx]];break;case 26:var Px=i[1],G0=v(Px[2]),U0=[26,[0,Px[1],G0]];break;case 27:var Kr=i[1],S=Kr[1],G=Kr[3],rx=Kr[2],yx=c(S[4]),U0=[27,[0,[0,S[1],S[2],S[3],yx],rx,G]];break;case 28:var Ex=i[1],nx=Ex[1],p0=Ex[3],Fx=Ex[2],Sx=c(nx[3]),U0=[28,[0,[0,nx[1],nx[2],Sx],Fx,p0]];break;case 29:var bx=i[1],B0=c(bx[2]),U0=[29,[0,bx[1],B0]];break;case 30:var U0=[30,[0,c(i[1][1])]];break;case 31:var Wx=i[1],Yx=c(Wx[3]),U0=[31,[0,Wx[1],Wx[2],Yx]];break;case 32:var ax=i[1],Qx=c(ax[3]),U0=[32,[0,ax[1],ax[2],Qx]];break;case 33:var U0=[33,[0,c(i[1][1])]];break;case 34:var kx=i[1],tr=c(kx[3]),U0=[34,[0,kx[1],kx[2],tr]];break;case 35:var sr=i[1],Mr=c(sr[3]),U0=[35,[0,sr[1],sr[2],Mr]];break;case 36:var a2=i[1],_2=c(a2[3]),U0=[36,[0,a2[1],a2[2],_2]];break;case 37:var i2=i[1],Q2=c(i2[4]),U0=[37,[0,i2[1],i2[2],i2[3],Q2]];break;default:var jx=i[1],_=jx[4],V=jx[3],lx=c(jx[2]),U0=[38,[0,jx[1],lx,V,_]]}return[0,a,U0]}function _T0(x){var r=u0(x);J(x,6);var e=p(jX[1],x,[0,0,ln]),t=e[2],u=e[1],i=u0(x);return J(x,7),[0,[0,u,O2([0,r],[0,L0(x)],i,O)],t]}function VX(x){var r=rh(NC[1],x),e=V0(r);if(xr(1,r)===11)var u=0,i=0;else var t=gh(r),u=t[2],i=t[1];var c=i||r[19],v=Zj(c,r),a=v[18],l=x0(0,function(s0){var d0=Q1(s0,He(s0));if(dn(s0)&&d0===0){var w0=p(X0[13],q30,s0),M0=w0[1],C0=[0,M0,[0,[0,M0,[2,[0,w0,[0,da(s0)],0]]],0]];return[0,d0,[0,M0,[0,0,[0,C0,0],0,0]],[0,[0,M0[1],M0[3],M0[3]]],0]}var D0=pl(c,a)(s0);pX(s0,D0);var I0=TC(Av(1,s0));return[0,d0,D0,I0[1],I0[2]]},v),m=l[2],h=m[2],T=h[2];x:{r:{var b=m[4],N=m[3],j=m[1],I=l[1];if(!T[1]){var F=T[2];if(!T[3]&&F)break r;var M=pB(v);break x}}var M=v}var z=h[2],B=z[1];if(B){var K=h[1];q0(M,[0,B[1][1],86]);var n0=[0,K,[0,0,z[2],z[3],z[4]]]}else var n0=h;var $=jv(n0),H=N1(M),t0=H&&(q(M)===11?1:0);t0&&Ux(M,55),J(M,11);var c0=kB(pB(M),i,0,$),r0=x0(0,NC[2],c0),v0=r0[2],a0=v0[1],g0=r0[1];ll(c0,v0[2],0,n0);var i0=Yr(e,g0);return[0,[0,i0,[1,[0,0,n0,a0,i,0,1,b,N,j,Z([0,u],0,O),I]]]]}function FC(x,r,e){return x0([0,r],d(CX[1],e),x)}function $X(x){var r=V0(x),e=DX(x),t=q(x);x:{if(typeof t=="number"){var u=t-68|0;if(15>=u>>>0){switch(u){case 0:var i=Fv0;break;case 1:var i=Rv0;break;case 2:var i=Lv0;break;case 3:var i=Mv0;break;case 4:var i=qv0;break;case 5:var i=Uv0;break;case 6:var i=Bv0;break;case 7:var i=Xv0;break;case 8:var i=Yv0;break;case 9:var i=zv0;break;case 10:var i=Kv0;break;case 11:var i=Jv0;break;case 12:var i=Gv0;break;case 13:var i=Wv0;break;case 14:var i=Vv0;break;default:var i=$v0}var c=i;break x}}var c=0}if(c!==0&&E0(x),!c)return e;var v=c[1];return[0,x0([0,r],function(a){var l=PC(0,a,e);return[4,[0,v,l,zt(a),0]]},x)]}function bT0(x,r){if(typeof r=="number"&&r===80)return 0;throw W0(gs,1)}Fr(k4,[0,$X,function(x){var r=rh(bT0,x),e=$X(r),t=q(r);if(typeof t=="number"){if(t===11)throw W0(gs,1);if(t===87){var u=lB(r);x:{if(u){var i=u[1];if(typeof i=="number"&&i===5){var c=1;break x}}var c=0}if(c)throw W0(gs,1)}}if(!dn(r))return e;if(e[0]===0){var v=e[1][2];if(v[0]===10&&!P(v[1][2][1],Ka)&&!N1(r))throw W0(gs,1)}return e}]);function RC(x,r,e,t,u){var i=o1(x,r);return[0,[0,u,[21,[0,t,i,o1(x,e),0]]]]}function LC(x,r,e){for(var t=r,u=e;;){var i=q(x);if(typeof i=="number"&&i===89){E0(x);var c=x0(0,bh,x),v=c[2],a=Yr(u,c[1]),l=MC(0,x,RC(x,t,v,1,a),a),t=l[2],u=l[1];continue}return[0,u,t]}}function QX(x,r,e){for(var t=r,u=e;;){var i=q(x);if(typeof i=="number"&&i===88){E0(x);var c=x0(0,bh,x),v=LC(x,c[2],c[1]),a=v[2],l=Yr(u,v[1]),m=MC(0,x,RC(x,t,a,0,l),l),t=m[2],u=m[1];continue}return[0,u,t]}}function MC(x,r,e,t){for(var u=x,i=e,c=t;;){var v=q(r);if(typeof v=="number"&&v===85){1-u&&Ux(r,ll0),J(r,85);var a=x0(0,bh,r),l=a[2],m=a[1],h=q(r);x:{if(typeof h=="number"&&1>=h+uD>>>0){Ux(r,[22,zj(h)]);var T=LC(r,l,m),b=QX(r,T[2],T[1]),N=b[2],j=b[1];break x}var N=l,j=m}var I=Yr(c,j),u=1,i=RC(r,i,N,2,I),c=I;continue}return[0,c,i]}}Fr(_h,[0,LC,QX,MC]);function qC(x,r,e,t){return[0,t,[5,[0,e,x,r,0]]]}Fr(AX,[0,function(x,r){for(var e=r;;){var t=x0(0,function(L){var N0=FX(L)!==0?1:0;return[0,N0,RX(e4(0,L))]},x),u=t[2],i=u[2],c=u[1],v=t[1];x:if(q(x)===99&&i[0]===0&&i[1][2][0]===12){Ux(x,2);break x}let Y0=v;var a=function(L,N0){for(var S0=L,K0=N0;;){var A0=q(x);x:if(typeof A0!="number"&&A0[0]===4){var $0=A0[3];if(P($0,Nt)&&P($0,VR))break x;if(A2(x)){E0(x);var ex=o1(x,K0);r:{if(S0){var xx=S0[1],tx=xx[2],z0=S0[2],px=xx[3],sx=tx[1],Q=xx[1];if(SX(tx[2],z30)){var b0=qC(Q,ex,sx,Yr(px,Y0)),U=z0;break r}}var b0=ex,U=S0}var h0=b0[1];if(br($0,VR))var _0=ga(x),m0=_0[1],Px=[0,[0,Yr(h0,m0),[35,[0,b0,[0,m0,_0],0]]]];else if(q(x)===28){var T0=Yr(h0,V0(x));E0(x);var Px=[0,[0,T0,[2,[0,b0,0]]]]}else var X=ga(x),Gx=X[1],Px=[0,[0,Yr(h0,Gx),[3,[0,b0,[0,Gx,X],0]]]];var S0=U,K0=Px;continue}}return[0,S0,K0]}}(e,i),l=a[2],m=a[1],h=q(x);x:{r:if(typeof h=="number"){var T=h-17|0;if(1>>0){if(73>T)break r;switch(T-73|0){case 0:var b=K30;break;case 1:var b=J30;break;case 2:var b=G30;break;case 3:var b=W30;break;case 4:var b=V30;break;case 5:var b=$30;break;case 6:var b=Q30;break;case 7:var b=H30;break;case 8:var b=Z30;break;case 9:var b=xl0;break;case 10:var b=rl0;break;case 11:var b=el0;break;case 12:var b=tl0;break;case 13:var b=nl0;break;case 14:var b=ul0;break;case 15:var b=il0;break;case 16:var b=fl0;break;case 17:var b=cl0;break;case 18:var b=sl0;break;case 19:var b=al0;break;default:break r}var N=b}else var N=T?ol0:x[12]?0:vl0;var j=N;break x}var j=0}if(j!==0&&E0(x),!m&&!j)return l;if(j){var I=j[1],F=I[1],M=I[2],z=c&&(F===14?1:0);z&&q0(x,[0,v,37]);x:for(var B=o1(x,l),K=[0,F,M],n0=v,$=m;;){var H=K[2],t0=K[1];if(!$)break x;var c0=$[1],r0=c0[2],v0=$[2],a0=c0[3],g0=r0[1],i0=c0[1];if(!SX(r0[2],H))break;var s0=Yr(a0,n0),B=qC(i0,B,g0,s0),K=[0,t0,H],n0=s0,$=v0}var e=[0,[0,B,[0,t0,H],n0],$]}else for(var d0=o1(x,l),w0=v,M0=m;;){if(!M0)return[0,d0];var C0=M0[1],D0=M0[2],I0=C0[2][1],j0=C0[1],y0=Yr(C0[3],w0),d0=qC(j0,d0,I0,y0),w0=y0,M0=D0}}}]),Fr(PX,[0,function(x){var r=u0(x);J(x,99);for(var e=0;;){var t=q(x);x:if(typeof t=="number"){if(y2!==t&&mr!==t)break x;var u=ix(e),i=u0(x);J(x,y2);var c=q(x)===4?F2(x)[1]:L0(x);return[0,u,O2([0,r],[0,c],i,O)]}var v=q(x);x:{if(typeof v!="number"&&v[0]===4&&!P(v[2],qo)){var a=V0(x),l=u0(x);ys(x,Y30);var m=[1,[0,a,[0,Z([0,l],[0,L0(x)],O)]]];break x}var m=[0,ga(x)]}var h=[0,m,e];y2!==q(x)&&J(x,9);var e=h}}]);function TT0(x){var r=u0(x);J(x,12);var e=zt(x);return[0,e,Z([0,r],0,O)]}Fr(IX,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(t!==5&&mr!==t)break x;return ix(e)}var u=q(x);x:{if(typeof u=="number"&&u===12){var i=[1,x0(0,TT0,x)];break x}var i=[0,zt(x)]}var c=[0,i,e];q(x)!==5&&J(x,9);var e=c}}]),Fr(m4,[0,function(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,l=eC(0,t),m=d(X0[7],l),h=V0(t);J(t,7);var T=L0(t),b=Yr(u,h),N=Z(0,[0,T],O),j=[0,o1(t,i),[2,m],N],I=v?[28,[0,j,b,a]]:[23,j];return lo([0,c],[0,v],t,u,[0,[0,b,I]])},function(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,l=q(t);x:{if(typeof l=="number"&&l===14){var m=IB(t),h=m[1],T=t[30][1],b=m[2][1];if(T){var N=T[1];t[30][1]=[0,[0,N[1],[0,[0,b,h],N[2]]],T[2]]}else q0(t,[0,h,63]);var I=[1,m],F=h;break x}var j=a1(t),I=[0,j],F=j[1]}var M=Yr(u,F);x:if(i[0]===0&&i[1][2][0]===30&&I[0]===1){q0(t,[0,M,82]);break x}var z=[0,o1(t,i),I,0],B=v?[28,[0,z,M,a]]:[23,z];return lo([0,c],[0,v],t,u,[0,[0,M,B]])}]),Fr(NX,[0,function(x,r,e){for(var t=r,u=e;;){var i=d(X0[7],x),c=[0,i,u],v=q(x);if(typeof v=="number"&&v===1){V2(x,4);var a=q(x);if(typeof a!="number"&&a[0]===3){var l=a[1],m=l[5],h=l[1],T=l[3],b=l[2];E0(x),Z2(x);var N=[0,[0,h,[0,[0,T,b],m]],t];if(m){var j=ix(c);return[0,h,ix(N),j]}var t=N,u=c;continue}throw W0([0,Nr,U30],1)}p2(B30,x);var I=[0,i[1],X30],F=ix(c),M=ix([0,I,t]);return[0,i[1],M,F]}}]),Fr(jX,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1],i=q(x);x:if(typeof i=="number"){if(13<=i){if(mr!==i)break x}else{if(7>i)break x;switch(i-7|0){case 0:break;case 2:var c=V0(x);E0(x);var e=[0,[0,[2,c],u],t];continue;case 5:var v=u0(x),a=x0(0,function(n0){E0(n0);var $=h4(n0);return $[0]===0?[0,$[1],ln]:[0,$[1],$[2]]},x),l=a[2],m=l[2],h=a[1],T=l[1],b=[1,[0,h,[0,T,Z([0,v],0,O)]]],N=q(x)===7?1:0;r:{if(!N&&xr(1,x)===7){var j=[0,m[1],[0,[0,h,16],m[2]]];break r}var j=m}1-N&&J(x,9);var e=[0,[0,b,u],IC(j,t)];continue;default:break x}}var I=_X(t);return[0,ix(u),I]}var F=h4(x);if(F[0]===0)var M=ln,z=F[1];else var M=F[2],z=F[1];q(x)!==7&&J(x,9);var e=[0,[0,[0,z],u],IC(M,t)]}}]),Fr(NC,[0,function(x){return function(r){x:if(typeof r=="number"){if(61<=r){var e=r-62|0;if(49>=e>>>0){var t=e-15|0;if(9>>0)break x;switch(t){case 0:case 1:case 3:case 9:break;default:break x}}}else if(7<=r){if(r!==55)break x}else if(5>r)break x;return 0}throw W0(gs,1)}},function(x){var r=q(x);if(typeof r=="number"&&!r){var e=p(X0[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,d(X0[10],x)],0]}]),Fr(CX,[0,function(x,r){for(var e=x;;){var t=q(r);if(typeof t=="number"&&t===9){E0(r);var e=[0,zt(r),e];continue}return[29,[0,ix(e),0]]}}]);function ET0(x){var r=u0(x);E0(x);var e=Z([0,r],0,O),t=jC(x),u=N1(x)?u4(x):ch(x);return[0,p(u[2],t,function(i,c){return p(Bx(i,jt,95),i,c)}),e]}function UC(x){if(!x[28][4])return 0;for(var r=0;;){var e=q(x);if(typeof e=="number"&&e===13){var r=[0,x0(0,ET0,x),r];continue}return ix(r)}}function po(x,r){var e=x?x[1]:0,t=u0(r),u=q(r);if(typeof u=="number")switch(u){case 6:var i=x0(0,function(s0){var d0=u0(s0);J(s0,6);var w0=e4(0,s0),M0=d(X0[10],w0);return J(s0,7),[0,M0,Z([0,d0],[0,L0(s0)],O)]},r),c=i[1];return[0,c,[5,[0,c,i[2]]]];case 14:if(!e){var v=x0(0,function(s0){return E0(s0),[3,a1(s0)]},r),a=v[1],l=v[2];return q0(r,[0,a,63]),[0,a,l]}var m=IB(r),h=r[30][1],T=m[2][1],b=m[1];if(h){var N=h[1],j=h[2],I=N[2],F=[0,[0,I1[4].call(null,T,N[1]),I],j];r[30][1]=F}else Tx(Hc0);return[0,b,[4,m]]}else switch(u[0]){case 0:var M=u[2],z=u[1],B=V0(r),K=OC(r,z,M);return[0,B,[1,[0,B,[0,K,M,Z([0,t],[0,L0(r)],O)]]]];case 1:var n0=u[2],$=u[1],H=V0(r),t0=DC(r,$,n0);return[0,H,[2,[0,H,[0,t0,n0,Z([0,t],[0,L0(r)],O)]]]];case 2:var c0=u[1],r0=c0[4],v0=c0[3],a0=c0[2],g0=c0[1];return r0&&Ie(r,76),J(r,[2,[0,g0,a0,v0,r0]]),[0,g0,[0,[0,g0,[0,a0,v0,Z([0,t],[0,L0(r)],O)]]]]}var i0=a1(r);return[0,i0[1],[3,i0]]}function Eh(x,r,e){var t=0,u=Fv(x),i=u[1],c=u[2],v=po([0,r],x),a=v[1],l=gn(x,v[2]);return[0,l,x0(0,function(m){var h=Sv(1,m),T=x0(0,function(B){var K=pl(0,0)(B),n0=0,$=q(B)===87?K:i4(B,K);x:if(e){var H=$[2];r:{if(!H[1]){if(!H[2]&&!H[3])break r;q0(B,[0,a,23]);break x}q0(B,[0,a,24])}}else{var t0=$[2];r:if(t0[1])q0(B,[0,a,66]);else{var c0=t0[2];if(c0&&!c0[2]&&!t0[3])break r;t0[3]?q0(B,[0,a,65]):q0(B,[0,a,65])}}return[0,n0,$,al(B,bC(B))]},h),b=T[2],N=b[2],j=b[3],I=b[1],F=T[1],M=l4(h,t,i,0,jv(N)),z=M[1];return ll(h,M[2],0,N),[0,0,N,z,t,i,1,0,j,I,Z([0,c],0,O),F]},x)]}function HX(x){var r=h4(x);return r[0]===0?[0,r[1],ln]:[0,r[1],r[2]]}function ZX(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return q0(x,[0,t,47]),[0,t,[14,u]];case 1:var i=r[1],c=i[1],v=i[2];return q0(x,[0,c,47]),[0,c,[17,v]];case 2:var a=r[1],l=a[1],m=a[2];return q0(x,[0,l,47]),[0,l,[18,m]];case 3:var h=r[1],T=h[2][1],b=h[1];return eh(T)?q0(x,[0,b,95]):fl(T)&&ht(x,[0,b,80]),[0,b,[10,h]];case 4:return Tx(Xl0);default:var N=r[1][2][1];return q0(x,[0,N[1],7]),N}}function xY(x,r,e){function t(i){var c=Sv(1,i),v=x0(0,function(j){var I=Q1(j,He(j)),F=pl(x,r)(j),M=q(j)===87?F:i4(j,F);return[0,I,M,al(j,bC(j))]},c),a=v[2],l=a[2],m=a[3],h=a[1],T=v[1],b=l4(c,x,r,0,jv(l)),N=b[1];return ll(c,b[2],0,l),[0,0,l,N,x,r,1,0,m,h,Z([0,e],0,O),T]}var u=0;return function(i){return x0(u,t,i)}}function rY(x){return J(x,87),HX(x)}function BC(x,r,e,t,u,i){var c=x0([0,r],function(a){if(!t&&!u){var l=q(a);x:if(typeof l=="number"){if(87<=l){if(l!==99){if(88<=l)break x;var m=rY(a);return[0,[0,e,m[1],0],m[2]]}}else{if(l===83){if(e[0]===3)var h=e[1],T=V0(a),b=x0([0,h[1]],function(F){var M=u0(F);J(F,83);var z=L0(F),B=p(X0[19],F,[0,h[1],[10,h]]),K=d(X0[10],F);return[4,[0,0,B,K,Z([0,M],[0,z],O)]]},a),N=[0,b,[0,[0,[0,T,[26,P5(Bl0)]],0],0]];else var N=rY(a);return[0,[0,e,N[1],1],N[2]]}if(10<=l)break x;switch(l){case 4:break;case 1:case 9:return[0,[0,e,ZX(a,e),1],ln];default:break x}}var j=gn(a,e);return[0,[1,j,xY(t,u,i)(a)],ln]}return[0,[0,e,ZX(a,e),1],ln]}var I=gn(a,e);return[0,[1,I,xY(t,u,i)(a)],ln]},x),v=c[2];return[0,[0,[0,c[1],v[1]]],v[2]]}function ST0(x){if(q(x)===12){var r=u0(x),e=x0(0,function(d0){return J(d0,12),HX(d0)},x),t=e[2],u=t[2],i=t[1],c=e[1];return[0,[1,[0,c,[0,i,Z([0,r],0,O)]]],u]}var v=V0(x),a=xr(1,x);x:{r:if(typeof a=="number"){if(87<=a){if(a!==99&&88<=a)break r}else if(a!==83){if(10<=a)break r;switch(a){case 1:case 4:case 9:break;default:break r}}var m=0,h=0;break x}var l=gh(x),m=l[2],h=l[1]}var T=Fv(x),b=T[1],N=Mx(m,T[2]),j=q(x);if(!h&&!b&&typeof j!="number"&&j[0]===4){var I=j[3];if(!P(I,Bo)){var F=u0(x),M=po(0,x)[2],z=q(x);x:if(typeof z=="number"){if(87<=z){if(z!==99&&88<=z)break x}else if(z!==83){if(10<=z)break x;switch(z){case 1:case 4:case 9:break;default:break x}}return BC(x,v,M,0,0,0)}gn(x,M);var B=x0([0,v],function(d0){return Eh(d0,0,1)},x),K=B[2],n0=K[2],$=K[1],H=B[1];return[0,[0,[0,H,[2,$,n0,Z([0,F],0,O)]]],ln]}if(!P(I,T3)){var t0=u0(x),c0=po(0,x)[2],r0=q(x);x:if(typeof r0=="number"){if(87<=r0){if(r0!==99&&88<=r0)break x}else if(r0!==83){if(10<=r0)break x;switch(r0){case 1:case 4:case 9:break;default:break x}}return BC(x,v,c0,0,0,0)}gn(x,c0);var v0=x0([0,v],function(d0){return Eh(d0,0,0)},x),a0=v0[2],g0=a0[2],i0=a0[1],s0=v0[1];return[0,[0,[0,s0,[3,i0,g0,Z([0,t0],0,O)]]],ln]}}return BC(x,v,po(0,x)[2],h,b,N)}function Sh(x,r,e,t){var u=e[2][1],i=e[1];if(br(u,Ro))return q0(x,[0,i,[15,u,0,FL===t?1:0,1]]),r;x:{r:{e:{for(var c=r;;){if(typeof c=="number")break r;if(c[0]===0)break e;var v=fx(u,c[2]),a=c[5],l=c[4],m=c[3];if(v===0)break;var h=0<=v?a:l,c=h}var b=[0,m];break x}var T=c[2];if(fx(u,c[1])===0){var b=[0,T];break x}var b=0;break x}var b=0}if(!b)return vh(u,t,r);var N=b[1];x:{r:if(typeof t=="number"){if(CA===t){if(typeof N!="number"||JI!==N)break r}else if(JI!==t||typeof N!="number"||CA!==N)break r;break x}q0(x,[0,i,[1,u]])}return vh(u,dR,r)}function eY(x,r){return x0(0,function(e){var t=r?u0(e):0;J(e,53);for(var u=0;;){var i=[0,x0(0,function(a){var l=ws(a),m=q(a)===99?p(F2(a)[2],l,function(h,T){return p(Bx(h,C3,96),h,T)}):l;return[0,m,vX(a)]},e),u],c=q(e);if(typeof c=="number"&&c===9){J(e,9);var u=i;continue}var v=ix(i);return[0,v,Z([0,t],0,O)]}},x)}function XC(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}}function YC(x,r){if(r)return q0(x,[0,r[1][1],K2])}function zC(x,r){if(r)return q0(x,[0,r[1],12])}function tY(x,r,e,t,u,i,c,v){var a=x0([0,r],function(j){var I=_C(j),F=q(j);x:if(i){if(typeof F=="number"&&F===83){Ux(j,13),E0(j);var M=0;break x}var M=0}else{if(typeof F=="number"&&F===83){E0(j);var z=Sv(1,j),M=[0,d(X0[7],z)];break x}var M=1}var B=q(j);x:{if(typeof B=="number"&&9>B)switch(B){case 8:E0(j);var K=q(j);r:{e:if(typeof K=="number"){if(K!==1&&mr!==K)break e;var n0=L0(j);break r}var n0=N1(j)?ao(j):0}var v0=[0,t,I,M,n0];break x;case 4:case 6:p2(0,j);var v0=[0,t,I,M,0];break x}var $=q(j);r:{e:if(typeof $=="number"){if($!==1&&mr!==$)break e;var H=[0,,function(d0,w0){return d0}];break r}var H=N1(j)?u4(j):ch(j)}if(typeof M=="number")if(I[0]===0)var t0=M,c0=I,r0=p(H[2],t,function(s0,d0){return p(Bx(s0,HR,99),s0,d0)});else var t0=M,c0=[1,p(H[2],I[1],function(s0,d0){return p(Bx(s0,mA,y2),s0,d0)})],r0=t;else var t0=[0,p(H[2],M[1],function(s0,d0){return p(Bx(s0,jt,fe),s0,d0)})],c0=I,r0=t;var v0=[0,r0,c0,t0,0]}var a0=v0[3],g0=v0[2],i0=v0[1];return[0,i0,g0,a0,Z([0,v],[0,v0[4]],O)]},x),l=a[2],m=l[4],h=l[3],T=l[2],b=l[1],N=a[1];return b[0]===4?[2,[0,N,[0,b[1],h,T,u,c,e,m]]]:[1,[0,N,[0,b,h,T,u,c,e,m]]]}function KC(x,r,e,t,u,i,c,v,a,l){for(;;){var m=q(x);x:if(typeof m=="number"){var h=m-1|0;if(7>>0){var T=h-82|0;if(4>>0)break x;switch(T){case 3:p2(0,x),E0(x);continue;case 0:case 4:break;default:break x}}else if(5>=h-1>>>0)break x;if(!u&&!i)return tY(x,r,e,t,c,v,a,l)}var b=q(x);x:{if(typeof b=="number"&&(b===4||b===99)){var N=0;break x}var N=sl(x)?1:0}if(N)return tY(x,r,e,t,c,v,a,l);zC(x,v),YC(x,a);var j=XC(t);x:{if(c){if(j){var I=j[1],F=I[1];if(!P(I[2],za)){q0(x,[0,F,[15,Dl0,c,1,0]]);var B=Sv(1,x),K=1;break x}}}else if(j){var M=j[1],z=M[1];if(!P(M[2],Ro)){u&&q0(x,[0,z,9]),i&&q0(x,[0,z,10]);var B=Sv(2,x),K=0;break x}}var B=Sv(1,x),K=1}var n0=gn(B,t),$=x0(0,function(t0){var c0=x0(0,function(w0){var M0=Q1(w0,He(w0)),C0=pl(u,i)(w0),D0=q(w0)===87?C0:i4(w0,C0),I0=D0[2],j0=I0[1];x:{if(j0){var y0=j0[1][1],Y0=D0[1];if(K===0){q0(w0,[0,y0,87]);var L=[0,Y0,[0,0,I0[2],I0[3],I0[4]]];break x}}var L=D0}return[0,M0,L,al(w0,bC(w0))]},t0),r0=c0[2],v0=r0[2],a0=r0[3],g0=r0[1],i0=c0[1],s0=l4(t0,u,i,0,jv(v0)),d0=s0[1];return ll(t0,s0[2],0,v0),[0,0,v0,d0,u,i,1,0,a0,g0,0,i0]},B),H=[0,K,n0,$,c,e,Z([0,l],0,O)];return[0,[0,Yr(r,$[1]),H]]}}function JC(x,r){var e=xr(x,r);x:if(typeof e=="number"){if(87<=e){if(e!==99&&88<=e)break x}else if(e!==83){if(9<=e)break x;switch(e){case 1:case 4:case 8:break;default:break x}}return 1}return 0}var AT0=0;function PT0(x,r,e,t){var u=V0(x),i=q(x);x:{if(typeof i=="number")switch(i){case 104:var c=u0(x);E0(x);var l=[0,[0,u,[0,0,Z([0,c],0,O)]]];break x;case 105:var v=u0(x);E0(x);var l=[0,[0,u,[0,1,Z([0,v],0,O)]]];break x}else if(i[0]===4&&!P(i[3],Zo)&&r){var a=u0(x);E0(x);var l=[0,[0,u,[0,2,Z([0,a],0,O)]]];break x}var l=0}x:if(l){var m=l[1][1];if(!e&&!t)break x;return q0(x,[0,m,K2]),0}return l}var IT0=0;function nY(x){return JC(IT0,x)}function NT0(x){var r=V0(x),e=UC(x),t=q(x);x:{if(typeof t=="number"&&t===61&&!JC(1,x)){var u=[0,V0(x)],i=u0(x);E0(x);var c=i,v=u;break x}var c=0,v=0}var a=q(x);x:if(typeof a=="number"&&2>=a+eR>>>0&&ya(1,x)){r:{if(typeof a=="number"){var l=a+eR|0;if(2>=l>>>0){switch(l){case 0:var m=BO;break;case 1:var m=s6;break;default:var m=Bl}var h=m;break r}}var h=Tx(Fl0)}Ux(x,[24,h]),E0(x);break x}var T=q(x)===43?1:0;if(T){var b=xr(1,x);x:{r:if(typeof b=="number"){if(88<=b){if(b!==99&&mr!==b)break r}else{var N=b-9|0;if(77>>0){if(78>N)switch(N+9|0){case 1:case 4:case 8:break;default:break r}}else if(N!==74)break r}var j=0;break x}var j=1}var I=j}else var I=T;if(I){var F=u0(x);E0(x);var M=F}else var M=0;var z=q(x)===65?1:0;if(z)var B=1-JC(1,x),K=B&&1-Iv(1,x);else var K=z;if(K){var n0=u0(x);E0(x);var $=n0}else var $=0;var H=Fv(x),t0=H[1],c0=H[2],r0=ya(1,x),v0=r0||(xr(1,x)===6?1:0),a0=PT0(x,v0,K,t0);x:{if(!t0&&a0){var g0=Fv(x),i0=g0[2],s0=g0[1];break x}var i0=c0,s0=t0}var d0=O6([0,c,[0,M,[0,$,[0,i0,0]]]]),w0=q(x);if(!K&&!s0&&typeof w0!="number"&&w0[0]===4){var M0=w0[3];if(!P(M0,Bo)){var C0=u0(x),D0=po(Ll0,x)[2];if(nY(x))return KC(x,r,e,D0,K,s0,I,v,a0,d0);zC(x,v),YC(x,a0),gn(x,D0);var I0=Mx(d0,C0),j0=x0([0,r],function(Gx){return Eh(Gx,1,1)},x),y0=j0[2],Y0=y0[1],L=y0[2],N0=j0[1],S0=XC(Y0);x:if(I){if(S0){var K0=S0[1],A0=K0[1];if(!P(K0[2],za)){q0(x,[0,A0,[15,Ul0,I,0,0]]);break x}}}else if(S0){var $0=S0[1],ex=$0[1];if(!P($0[2],Ro)){q0(x,[0,ex,8]);break x}}return[0,[0,N0,[0,2,Y0,L,I,e,Z([0,I0],0,O)]]]}if(!P(M0,T3)){var xx=u0(x),tx=po(Rl0,x)[2];if(nY(x))return KC(x,r,e,tx,K,s0,I,v,a0,d0);zC(x,v),YC(x,a0),gn(x,tx);var z0=Mx(d0,xx),px=x0([0,r],function(Gx){return Eh(Gx,1,0)},x),sx=px[2],Q=sx[1],b0=sx[2],U=px[1],h0=XC(Q);x:if(I){if(h0){var _0=h0[1],m0=_0[1];if(!P(_0[2],za)){q0(x,[0,m0,[15,ql0,I,0,0]]);break x}}}else if(h0){var T0=h0[1],X=T0[1];if(!P(T0[2],Ro)){q0(x,[0,X,8]);break x}}return[0,[0,U,[0,3,Q,b0,I,e,Z([0,z0],0,O)]]]}}return KC(x,r,e,po(Ml0,x)[2],K,s0,I,v,a0,d0)}function uY(x,r,e,t){var u=x?x[1]:0,i=ha(1,r),c=Mx(u,UC(i)),v=u0(i),a=q(i);x:if(typeof a!="number"&&a[0]===4&&!P(a[3],pA)){Ux(i,83),E0(i);break x}J(i,41);var l=xC(1,i),m=q(l);x:{r:if(e&&typeof m=="number"){if(53<=m){if(m!==99&&54<=m)break r}else if(m!==42&&m)break r;var T=0;break x}if(dn(i))var h=p(X0[13],0,l),T=[0,p(F2(i)[2],h,function($,H){return p(Bx($,C3,sn),$,H)})];else{wB(i,Nl0);var T=[0,[0,V0(i),jl0]]}}var b=He(i);if(b)var N=b[1],j=[0,p(F2(i)[2],N,function($,H){return p(Bx($,vT,g1),$,H)})];else var j=0;var I=u0(i);if(u2(i,42))var F=x0(0,function($){var H=jC(Hj(0,$)),t0=q($)===99?p(F2($)[2],H,function(r0,v0){return p(Bx(r0,jt,97),r0,v0)}):H,c0=vX($);return[0,t0,c0,Z([0,I],0,O)]},i),M=F[1],z=F[2],B=[0,[0,M,p(F2(i)[2],z,function($,H){return H0(Bx($,-663447790,98),$,M,H)})]];else var B=0;if(q(i)===53){1-A2(i)&&Ux(i,Je);var K=[0,AB(i,eY(i,1))]}else var K=0;var n0=x0(0,function($){var H=u0($);if(!u2($,0))return yn($,0),Ol0;$[30][1]=[0,[0,I1[1],0],$[30][1]];for(var t0=0,c0=AT0,r0=0;;){var v0=q($);if(typeof v0=="number"){var a0=v0-2|0;if(ce>>0){if(Te>=a0+1>>>0)break}else if(a0===6){J($,8);continue}}var g0=NT0($);switch(g0[0]){case 0:var i0=g0[1],s0=i0[2],d0=i0[1];switch(s0[1]){case 0:if(s0[4])var xx=c0,tx=t0;else{t0&&q0($,[0,d0,15]);var xx=c0,tx=1}break;case 1:var w0=s0[2],M0=w0[0]===4?Sh($,c0,w0[1],FL):c0,xx=M0,tx=t0;break;case 2:var C0=s0[2],D0=C0[0]===4?Sh($,c0,C0[1],CA):c0,xx=D0,tx=t0;break;default:var I0=s0[2],j0=I0[0]===4?Sh($,c0,I0[1],JI):c0,xx=j0,tx=t0}break;case 1:var y0=g0[1][2],Y0=y0[4],L=y0[1];switch(L[0]){case 4:Tx(Cl0);break;case 0:case 3:var N0=L[1],S0=N0[2][1],K0=br(S0,Ro),A0=N0[1];if(K0)var ex=K0;else var $0=br(S0,za),ex=$0&&Y0;ex&&q0($,[0,A0,[15,S0,Y0,0,0]]);break}var xx=c0,tx=t0;break;default:var xx=Sh($,c0,g0[1][2][1],dR),tx=t0}var t0=tx,c0=xx,r0=[0,g0,r0]}function z0(Kr,S){return D6(function(G){return 1-I1[3].call(null,G[1],Kr)},S)}var px=ix(r0),sx=$[30][1];if(sx){var Q=sx[1],b0=Q[1];if(sx[2]){var U=sx[2],h0=z0(b0,Q[2]),_0=C6(U),m0=_0[2],T0=_0[1],X=zM(U),Gx=[0,[0,T0,Mx(m0,h0)],X];$[30][1]=Gx}else b1(function(Kr){return q0($,[0,Kr[2],[25,Kr[1]]])},z0(b0,Q[2])),$[30][1]=0}else Tx(Zc0);J($,1);var Px=q($);x:{r:if(!t){if(typeof Px=="number"&&(Px===1||mr===Px))break r;if(N1($)){var G0=ao($);break x}var G0=0;break x}var G0=L0($)}return[0,px,Z([0,H],[0,G0],O)]},i);return[0,T,n0,j,B,K,c,Z([0,v],0,O)]}function Ah(x,r){return x0(0,function(e){return[2,uY([0,r],e,e[7],0)]},x)}function jT0(x){return[7,uY(0,x,1,1)]}var CT0=0,iY=CB(X0);function fY(x){var r=p4(x);x:if(x[5])Nv(x,r[1]);else{var e=r[2];r:if(e[0]===27){var t=e[1],u=r[1];if(t[4])q0(x,[0,u,4]);else{if(!t[5])break r;q0(x,[0,u,22])}break x}}return r}function Ph(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Ie(x,76);var c=u0(x);return J(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,Z([0,c],[0,L0(x)],O)]]}function x1(x,r,e){var t=x?x[1]:hv0,u=r?r[1]:1,i=q(e);if(typeof i=="number"){var c=i-2|0;if(ce>>0){if(Te>=c+1>>>0)return[1,[0,L0(e),function(a,l){return a}]]}else if(c===6){E0(e);var v=q(e);x:if(typeof v=="number"){if(v!==1&&mr!==v)break x;return[0,L0(e)]}return N1(e)?[0,ao(e)]:dv0}}return N1(e)?[1,u4(e)]:(u&&p2([0,t],e),yv0)}function wa(x){var r=q(x);x:if(typeof r=="number"){if(r!==1&&mr!==r)break x;return[0,L0(x),function(e,t){return e}]}return N1(x)?u4(x):ch(x)}function GC(x,r,e){var t=x1(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=ix(e);if(i)var c=i[2],v=ix([0,p(u,i[1],function(a,l){return H0(Bx(a,634872468,66),a,x,l)}),c]);else var v=0;return[0,0,v]}var cY=[],sY=[],aY=[];function oY(x,r,e){var t=e[2][1],u=e[1];if(!(t&&!t[1][2][2]&&!t[2]))return q0(x,[0,u,r])}function WC(x,r){if(!x[5]&&f4(r))return Nv(x,r[1])}function vY(x){var r=so(x)?fY(x):d(X0[2],x),e=1-x[5],t=e&&f4(r);return t&&Nv(x,r[1]),r}function OT0(x){var r=u0(x);J(x,44);var e=vY(x);return[0,e,Z([0,r],0,O)]}function DT0(x){var r=u0(x);J(x,16);var e=Mx(r,u0(x));J(x,4);var t=d(X0[7],x);J(x,5);var u=vY(x),i=q(x)===44?[0,x0(0,OT0,x)]:0;return[28,[0,t,u,i,Z([0,e],0,O)]]}var FT0=0;function lY(x){return x0(FT0,DT0,x)}function RT0(x){var r=d(X0[7],x),e=x1(cv0,0,x);if(e[0]===0)var t=r,u=e[1];else var t=p(e[1][2],r,function(h,T){return p(Bx(h,jt,72),h,T)}),u=0;if(x[20]){var i=t[2];if(i[0]===14){var c=i[1][2];x:{if(1>>0){if(e!==14)break x}else if(4>=e-1>>>0)break x;return L0(x)}return N1(x)?ao(x):0}function SY(x){return q(x)===1?0:[0,d(X0[7],x)]}function _a(x){var r=V0(x),e=q(x);x:{if(typeof e!="number"&&e[0]===8){var t=e[1];break x}p2(gl0,x);var t=wl0}var u=u0(x);E0(x);var i=q(x);x:{r:if(typeof i=="number"){var c=i+FR|0;if(73>>0){if(c!==77)break r}else if(71>=c-1>>>0)break r;var v=L0(x);break x}var v=qh(x)}return[0,r,[0,t,Z([0,u],[0,v],O)]]}function AY(x){var r=xr(1,x);if(typeof r=="number"){if(r===10)for(var e=x0(0,function(u){var i=[0,_a(u)];return J(u,10),[0,i,_a(u)]},x);;){var t=q(x);if(typeof t=="number"&&t===10){let u=e;var e=x0([0,e[1]],function(c){return J(c,10),[0,[1,u],_a(c)]},x);continue}return[2,e]}if(r===87)return[1,x0(0,function(u){var i=_a(u);return J(u,87),[0,i,_a(u)]},x)]}return[0,_a(x)]}function b4(x,r){return br(x[2][1],r[2][1])}function PY(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],c=e[2],v=u[2];x:{if(t[0]===0){var a=t[1];if(i[0]===0){var m=b4(a,i[1]);break x}}else{var l=t[1];if(i[0]!==0){var m=PY(l,i[1]);break x}}var m=0}return m&&b4(c,v)}function Uh(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return b4(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],c=u[2],v=i[2],a=b4(u[1],i[1]);return a&&b4(c,v)}break;default:var l=x[1];if(r[0]===2)return PY(l,r[1])}return 0}function HC(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}}var Rv=[];function IY(x,r){var e=u0(r),t=x0(0,function(d0){J(d0,99);var w0=q(d0);if(typeof w0=="number"){if(y2===w0)return E0(d0),hl0}else if(w0[0]===8){var M0=AY(d0);x:{if(A2(d0)&&q(d0)===99&&Je!==xr(1,d0)){var C0=fh(d0,0,CC);break x}var C0=0}for(var D0=0;;){var I0=q(d0);if(typeof I0=="number"){if(I0===0){var j0=u0(d0);V2(d0,0);var y0=x0(0,function(A0){J(A0,0),J(A0,12);var $0=d(X0[10],A0);return J(A0,1),$0},d0),Y0=y0[2],L=y0[1];Z2(d0);var D0=[0,[1,[0,L,[0,Y0,Z([0,j0],[0,qh(d0)],O)]]],D0];continue}}else if(I0[0]===8){var D0=[0,[0,x0(0,function(A0){var $0=xr(1,A0);x:{if(typeof $0=="number"&&$0===87){var ex=[1,x0(0,function(Px){var G0=_a(Px);return J(Px,87),[0,G0,_a(Px)]},A0)];break x}var ex=[0,_a(A0)]}var xx=q(A0);x:{if(typeof xx=="number"&&xx===83){J(A0,83);var tx=u0(A0),z0=q(A0);r:{if(typeof z0=="number"){if(z0===0){var px=u0(A0);V2(A0,0);var sx=x0(0,function(G0){J(G0,0);var Kr=SY(G0);return J(G0,1),Kr},A0),Q=sx[1],b0=sx[2];Z2(A0);var U=[0,b0,O2([0,px],[0,qh(A0)],0,O)];U[1]||q0(A0,[0,Q,46]);var T0=[0,[1,[0,Q,U]]];break r}}else if(z0[0]===10){var h0=z0[3],_0=z0[2],m0=z0[1];J(A0,z0);var T0=[0,[0,[0,m0,[0,_0,h0,Z([0,tx],[0,qh(A0)],O)]]]];break r}Ux(A0,35);var T0=[0,[0,[0,V0(A0),yl0]]]}var X=T0;break x}var X=0}return[0,ex,X]},d0)],D0];continue}var N0=ix(D0),S0=[0,Ma,[0,M0,C0,u2(d0,Je),N0]];return u2(d0,y2)?[0,S0]:(yn(d0,y2),[1,S0])}}return yn(d0,y2),dl0},r);if(Z2(r),d(Rv[3],t))var u=tE,i=x0(0,function(d0){return 0},r);else{V2(r,3);var c=d(Rv[4],t),v=H0(Rv[1],x,c,r),u=v[2],i=v[1]}var a=L0(r);x:{r:if(typeof u!="number"){var l=u[1];if(Ma===l){var m=u[2],h=m[2][1],T=t[2],b=m[1];if(T[0]===0){var N=T[1];if(typeof N=="number")q0(r,[0,HC(h),pl0]);else{var j=N[2][1];e:if(1-Uh(h,j)){if(x&&Uh(x[1],h)){var I=[21,d(Rv[2],j)];q0(r,[0,HC(j),I]);break e}var F=[13,d(Rv[2],j)];q0(r,[0,HC(h),F])}}}var M=b}else{if(tn!==l)break r;var z=u[2],B=t[2];if(B[0]===0){var K=B[1];typeof K!="number"&&q0(r,[0,z,[13,d(Rv[2],K[2][1])]])}var M=z}var n0=M;break x}var n0=t[1]}var $=t[2][1],H=t[1];if(typeof $=="number"){x:{r:{var t0=Z([0,e],[0,a],O);if(typeof u!="number"){var c0=u[1];if(Ma===c0)var r0=u[2][1];else{if(tn!==c0)break r;var r0=u[2]}var v0=r0;break x}}var v0=n0}var a0=[0,tn,[0,H,v0,i,t0]]}else{var g0=$[2];x:{var i0=Z([0,e],[0,a],O);if(typeof u!="number"&&Ma===u[1]){var s0=[0,u[2]];break x}var s0=0}var a0=[0,Ma,[0,[0,H,g0],s0,i,i0]]}return[0,Yr(t[1],n0),a0]}function NY(x,r){return V2(r,2),IY(x,r)}function BT0(x,r,e,t){for(var u=t;;){var i=il(e);if(u&&r){var c=u[1],v=c[2],a=r[1],l=u[2];x:{if(v[0]===0){var m=v[1],h=m[2];if(h){var T=h[1][2][1],b=1-Uh(m[1][2][1],T);if(b){var N=Uh(a,T);break x}var N=b;break x}}var N=0}if(N){var j=c[2];x:{if(j[0]===0){var I=j[1],F=I[2];if(F){var M=F[1],z=Yr(c[1],I[3][1]),B=[0,Ma,M],K=[0,z,[0,[0,I[1],0,I[3],I[4]]]];break x}}var B=tE,K=c}return Z2(e),[0,ix([0,K,l]),i,B]}}var n0=q(e);if(typeof n0=="number"){if(n0===99){V2(e,2);var $=q(e),H=xr(1,e);x:if(typeof $=="number"&&$===99&&typeof H=="number"){if(Je!==H&&mr!==H)break x;var t0=x0(0,function(z0){J(z0,99),J(z0,Je);var px=q(z0);if(typeof px=="number"){if(y2===px)return E0(z0),tn}else if(px[0]===8){var sx=AY(z0);return ih(z0,y2),[0,Ma,[0,sx]]}return yn(z0,y2),tn},e),c0=t0[2],r0=t0[1],v0=typeof c0=="number"?[0,tn,r0]:[0,Ma,[0,r0,c0[2]]],a0=e[24][1];r:{if(a0){var g0=a0[2];if(g0){var i0=g0[2];break r}}var i0=Tx(Jc0)}e[24][1]=i0;var s0=ul(e),d0=Z6(e[25][1],s0);return e[26][1]=d0,[0,ix(u),i,v0]}var w0=IY(r,e),M0=w0[2],C0=w0[1],D0=tn<=M0[1]?[0,C0,[1,M0[2]]]:[0,C0,[0,M0[2]]],u=[0,D0,u];continue}if(mr===n0)return p2(0,e),[0,ix(u),i,tE]}var I0=q(e);x:{if(typeof I0=="number"){if(I0===0){V2(e,0);var j0=x0(0,function(z0){J(z0,0);var px=q(z0);r:{if(typeof px=="number"&&px===12){var sx=u0(z0);J(z0,12);var Q=d(X0[10],z0),h0=[3,[0,Q,Z([0,sx],0,O)]];break r}var b0=SY(z0),U=b0?0:u0(z0),h0=[2,[0,b0,O2(0,0,U,O)]]}return J(z0,1),h0},e),y0=j0[2],Y0=j0[1];Z2(e);var ex=[0,Y0,y0];break x}}else if(I0[0]===9){var L=I0[3],N0=I0[2],S0=I0[1];J(e,I0);var ex=[0,S0,[4,[0,N0,L]]];break x}var K0=NY(r,e),A0=K0[2],$0=K0[1],ex=tn<=A0[1]?[0,$0,[1,A0[2]]]:[0,$0,[0,A0[2]]]}var u=[0,ex,u]}}function jY(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=qx(kl0,r[2][2][1]);return qx(e[2][1],t);default:var u=x[1][2],i=u[1],c=u[2],v=i[0]===0?i[1][2][1]:jY([2,i[1]]);return qx(v,qx(ml0,c[2][1]))}}Fr(Rv,[0,function(x,r,e){var t=V0(e),u=BT0(O,r,e,0),i=u[2],c=u[3],v=u[1],a=i?i[1]:t;return[0,[0,Yr(t,a),v],c]},jY,function(x){var r=x[2];if(r[0]!==0)return 1;var e=r[1];return typeof e=="number"?0:e[2][3]},function(x){var r=x[2][1];return typeof r=="number"?0:[0,r[2][1]]}]);function CY(x,r){var e=a1(r);return sh(x,r,e),e}var ZC=[],OY=[],DY=[],FY=[];function XT0(x){var r=u0(x);J(x,60);var e=q(x)===8?L0(x):0,t=x1(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,Z([0,r],[0,Mx(e,u)],O)]]}var YT0=0;function zT0(x){var r=u0(x);J(x,38);var e=r4(1,x),t=d(X0[2],e),u=1-x[5],i=u&&f4(t);i&&Nv(x,t[1]);var c=L0(x);J(x,26);var v=L0(x);J(x,4);var a=d(X0[7],x);J(x,5);var l=q(x)===8?L0(x):0,m=x1(0,mv0,x),h=m[0]===0?Mx(l,m[1]):m[1][1];return[18,[0,t,a,Z([0,r],[0,Mx(c,Mx(v,h))],O)]]}var KT0=0;function JT0(x){var r=u0(x);J(x,40);var e=x[19],t=e&&u2(x,66),u=Mx(r,u0(x));J(x,4);var i=Z([0,u],0,O),c=q(x);x:{if(typeof c=="number"&&c===65){var v=1;break x}var v=0}var a=e4(1,x),l=q(a);x:{if(typeof l=="number"){if(25<=l){if(30>l)switch(l+E3|0){case 0:var m=x0(0,dX,a),h=m[2],T=h[3],b=h[1],N=m[1],t0=T,c0=[0,[1,[0,N,[0,b,0,Z([0,h[2]],0,O)]]]];break x;case 3:var j=x0(0,yX,a),I=j[2],F=I[3],M=I[1],z=j[1],t0=F,c0=[0,[1,[0,z,[0,M,2,Z([0,I[2]],0,O)]]]];break x;case 4:if(xr(1,a)!==17){var B=x0(0,gX,a),K=B[2],n0=K[3],$=K[1],H=B[1],t0=n0,c0=[0,[1,[0,H,[0,$,1,Z([0,K[2]],0,O)]]]];break x}break}}else if(l===8){var t0=0,c0=0;break x}}var t0=0,c0=[0,[0,d(X0[8],a)]]}var r0=q(x);if(typeof r0=="number"){if(r0===17){if(!c0)throw W0([0,Nr,kv0],1);var v0=c0[1];if(v0[0]===0)var a0=[1,PC(pv0,x,v0[1])];else{var g0=v0[1];oY(x,38,g0);var a0=[0,g0]}t?J(x,64):J(x,17);var i0=d(X0[7],x);J(x,5);var s0=r4(1,x),d0=d(X0[2],s0);return WC(x,d0),[25,[0,a0,i0,d0,0,i]]}if(r0===64){if(!c0)throw W0([0,Nr,lv0],1);var w0=c0[1];if(w0[0]===0){var M0=PC(vv0,x,w0[1]),C0=1-t,D0=C0&&v;x:if(D0){var I0=M0[2];if(I0[0]===2){var j0=I0[1][1],y0=j0[1];if(!P(j0[2][1],Ka)){q0(x,[0,y0,39]);break x}}}var Y0=[1,M0]}else{var L=w0[1];oY(x,39,L);var Y0=[0,L]}J(x,64);var N0=d(X0[10],x);J(x,5);var S0=r4(1,x),K0=d(X0[2],S0);return WC(x,K0),[26,[0,Y0,N0,K0,t,i]]}}if(b1(function(b0){return q0(x,b0)},t0),t?J(x,64):J(x,8),c0)var A0=c0[1],$0=A0[0]===0?[0,[1,o1(x,A0[1])]]:[0,[0,A0[1]]],ex=$0;else var ex=0;var xx=q(x);x:{if(typeof xx=="number"&&xx===8){var tx=0;break x}var tx=[0,d(X0[7],x)]}J(x,8);var z0=q(x);x:{if(typeof z0=="number"&&z0===5){var px=0;break x}var px=[0,d(X0[7],x)]}J(x,5);var sx=r4(1,x),Q=d(X0[2],sx);return WC(x,Q),[24,[0,ex,tx,px,Q,i]]}var GT0=0;function WT0(x){1-x[11]&&Ux(x,27);var r=u0(x),e=V0(x);J(x,19);var t=q(x)===8?L0(x):0;x:{if(q(x)!==8&&!sl(x)){var u=[0,d(X0[7],x)];break x}var u=0}var i=Yr(e,V0(x)),c=x1(0,0,x);x:{if(c[0]===0)var v=c[1];else{var a=c[1],l=a[1];if(u){var m=[0,p(a[2],u[1],function(j,I){return p(Bx(j,jt,67),j,I)})],h=t;break x}var v=l}var m=u,h=Mx(t,v)}return[33,[0,m,Z([0,r],[0,h],O),i]]}var VT0=0;function $T0(x){var r=u0(x);J(x,20),J(x,4);var e=d(X0[7],x);J(x,5),J(x,0);for(var t=ov0;;){var u=t[2],i=t[1],c=q(x);x:if(typeof c=="number"){if(c!==1&&mr!==c)break x;var v=ix(u);J(x,1);var a=wa(x)[1],l=e[1];return[34,[0,e,v,Z([0,r],[0,a],O),l]]}let h=i;var m=aC(0,function(b){var N=u0(b),j=q(b);x:{if(typeof j=="number"&&j===37){h&&Ux(b,53),J(b,37);var I=L0(b),F=0;break x}J(b,34);var I=0,F=[0,d(X0[7],b)]}var M=h||(F===0?1:0);J(b,87);var z=Mx(I,wa(b)[1]);function B(H){x:if(typeof H=="number"){var t0=H-1|0;if(33>>0){if(t0!==36)break x}else if(31>=t0-1>>>0)break x;return 1}return 0}var K=1,n0=b[9]===1?b:[0,b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],K,b[10],b[11],b[12],b[13],b[14],b[15],b[16],b[17],b[18],b[19],b[20],b[21],b[22],b[23],b[24],b[25],b[26],b[27],b[28],b[29],b[30],b[31]],$=p(X0[4],B,n0);return[0,[0,F,$,Z([0,N],[0,z],O)],M]},x),t=[0,m[2],[0,m[1],u]]}}var QT0=0;function HT0(x){var r=u0(x),e=V0(x);J(x,23),N1(x)&&q0(x,[0,e,54]);var t=d(X0[7],x),u=x1(0,0,x);if(u[0]===0)var i=t,c=u[1];else var i=p(u[1][2],t,function(v,a){return p(Bx(v,jt,68),v,a)}),c=0;return[35,[0,i,Z([0,r],[0,c],O)]]}var ZT0=0;function xE0(x){var r=u0(x);J(x,24);var e=d(X0[15],x),t=q(x)===35?p(F2(x)[2],e,function(b,N){var j=N[1];return[0,j,H0(Bx(b,zp,4),b,j,N[2])]}):e,u=q(x);x:{if(typeof u=="number"&&u===35){var i=[0,x0(0,function(N){var j=u0(N);J(N,35);var I=L0(N);if(q(N)===4){J(N,4);var F=[0,p(X0[18],N,67)];J(N,5);var M=F}else var M=0;var z=d(X0[15],N),B=q(N)===39?z:p(wa(N)[2],z,function(K,n0){var $=n0[1];return[0,$,H0(Bx(K,zp,69),K,$,n0[2])]});return[0,M,B,Z([0,j],[0,I],O)]},x)];break x}var i=0}var c=q(x);x:{if(typeof c=="number"&&c===39){J(x,39);var v=d(X0[15],x),a=v[1],l=v[2],m=[0,[0,a,p(wa(x)[2],l,function(N,j){return H0(Bx(N,zp,70),N,a,j)})]];break x}var m=0}var h=i===0?1:0,T=h&&(m===0?1:0);return T&&q0(x,[0,t[1],56]),[36,[0,t,i,m,Z([0,r],0,O)]]}var rE0=0;function eE0(x){var r=0,e=dX(x),t=e[3],u=e[2],i=GC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var tE0=0;function nE0(x){var r=2,e=yX(x),t=e[3],u=e[2],i=GC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var uE0=0;function iE0(x){var r=1,e=gX(x),t=e[3],u=e[2],i=GC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var fE0=0;function cE0(x){var r=u0(x);J(x,26);var e=Mx(r,u0(x));J(x,4);var t=d(X0[7],x);J(x,5);var u=r4(1,x),i=d(X0[2],u),c=1-x[5],v=c&&f4(i);return v&&Nv(x,i[1]),[40,[0,t,i,Z([0,e],0,O)]]}var sE0=0;function aE0(x){var r=u0(x),e=d(X0[7],x),t=q(x),u=e[2];if(u[0]===10&&typeof t=="number"&&t===87){var i=u[1],c=i[2][1],v=e[1];J(x,87),I1[3].call(null,c,x[3])&&q0(x,[0,v,[23,sv0,c]]);var a=x[31],l=x[30],m=x[29],h=x[28],T=x[27],b=x[26],N=x[25],j=x[24],I=x[23],F=x[22],M=x[21],z=x[20],B=x[19],K=x[18],n0=x[17],$=x[16],H=x[15],t0=x[14],c0=x[13],r0=x[12],v0=x[11],a0=x[10],g0=x[9],i0=x[8],s0=x[7],d0=x[6],w0=x[5],M0=x[4],C0=I1[4].call(null,c,x[3]),D0=[0,x[1],x[2],C0,M0,w0,d0,s0,i0,g0,a0,v0,r0,c0,t0,H,$,n0,K,B,z,M,F,I,j,N,b,T,h,m,l,a],I0=so(D0)?fY(D0):d(X0[2],D0);return[31,[0,i,I0,Z([0,r],0,O)]]}var j0=x1(av0,0,x);if(j0[0]===0)var y0=e,Y0=j0[1];else var y0=p(j0[1][2],e,function(L,N0){return p(Bx(L,jt,71),L,N0)}),Y0=0;return[23,[0,y0,0,Z(0,[0,Y0],O)]]}var oE0=0;function vE0(x,r){var e=x?x[1]:0;1-A2(r)&&Ux(r,sn);var t=xr(1,r);if(typeof t=="number")switch(t){case 25:return Rh(0,r);case 28:return Rh(2,r);case 29:return Rh(1,r);case 41:return x0(0,function(b){var N=u0(b);return J(b,61),[6,$C(N,b)]},r);case 47:if(q(r)===51)return jh(r);break;case 49:if(r[28][2])return x0(0,function(b){var N=u0(b);return J(b,61),[8,iY[1].call(null,[0,N],b)]},r);break;case 50:if(e)return _Y(r);break;case 54:return x0(0,function(b){var N=u0(b);return J(b,61),[11,Dh(N,b)]},r);case 62:var u=q(r);return typeof u=="number"&&u===51&&e?jh(r):x0(0,function(b){var N=u0(b);return J(b,61),[15,Ch(N,b)]},r);case 63:return x0(0,function(b){var N=u0(b);return J(b,61),[16,Oh(qo0,N,b)]},r);case 15:case 65:return dY(r)}else if(t[0]===4){var i=t[3];if(P(i,$s)){if(P(i,Vo)){if(!P(i,sR)){var c=V0(r),v=u0(r);J(r,61);var a=Mx(v,u0(r));return ys(r,zo0),q(r)===10?x0([0,c],function(b){var N=u0(b);J(b,10);var j=u0(b);ys(b,Jo0);var I=O6([0,a,[0,N,[0,j,[0,u0(b),0]]]]),F=Dv(b),M=x1(0,0,b);if(M[0]===0)var z=M[1],B=F;else var z=0,B=p(M[1][2],F,function(K,n0){return p(Bx(K,mA,89),K,n0)});return[13,[0,B,Z([0,I],[0,z],O)]]},r):x0([0,c],d(sY[1],a),r)}if(!P(i,dT)){var l=V0(r),m=u0(r);J(r,61);var h=Mx(m,u0(r));return ys(r,Ko0),x0([0,l],d(aY[1],h),r)}}else if(r[28][1])return dY(r)}else if(r[28][1])return x0(0,function(b){var N=u0(b);return J(b,61),[7,QC(N,b)]},r)}if(!e)return d(X0[2],r);var T=q(r);return typeof T=="number"&&T===51?jh(r):Rh(0,r)}var lE0=0;function RY(x,r,e){var t=aB(1,x),u=KN(ZC[2],t,r,e,Yl0),i=u[4],c=u[3],v=u[2],a=aB(0,u[1]),l=ix(v);return b1(d(ZC[1],a),l),[0,a,c,i]}function LY(x){var r=UC(x),e=q(x);if(typeof e=="number"){var t=e-50|0;if(11>=t>>>0)switch(t){case 0:var u=oB(1,ha(1,x)),i=u0(u),c=V0(u);J(u,50);var v=q(u);if(typeof v=="number"){if(54<=v){if(64>v)switch(v-54|0){case 0:return x0([0,c],function(T){1-A2(T)&&Ux(T,Be);var b=0,N=x0(0,function(I){return Dh(b,I)},T),j=[0,N[1],[30,N[2]]];return[22,[0,[0,j],0,0,0,Z([0,i],0,O)]]},u);case 8:if(xr(1,u)!==0)return x0([0,c],function(T){1-A2(T)&&Ux(T,Be);var b=xr(1,T);if(typeof b=="number"){if(b===49)return Ux(T,17),J(T,62),[22,[0,0,0,0,0,Z([0,i],0,O)]];if(K2===b){J(T,62);var N=V0(T);J(T,K2);var j=w4(T),I=j[1];return[22,[0,0,[0,[1,[0,N,0]]],[0,I],0,Z([0,i],[0,j[2]],O)]]}}var F=0,M=x0(0,function(B){return Ch(F,B)},T),z=[0,M[1],[37,M[2]]];return[22,[0,[0,z],0,0,0,Z([0,i],0,O)]]},u);break;case 9:return x0([0,c],function(T){var b=x0(0,function(j){return Oh(0,0,j)},T),N=[0,b[1],[38,b[2]]];return[22,[0,[0,N],0,0,0,Z([0,i],0,O)]]},u)}}else if(v===37)return x0([0,c],function(T){var b=Mx(i,u0(T)),N=x0(0,function(n0){return J(n0,37)},T)[1],j=vB(1,T);x:{if(!so(j)&&!nh(j)){if(t4(j)){var B=0,K=[0,Ah(j,r)];break x}if(q(j)===49){var B=0,K=[0,wX(0)(j)];break x}if(iC(j)){var B=0,K=[0,AC(j)];break x}var I=d(X0[10],j),F=x1(0,0,j);if(F[0]===0)var M=F[1],z=I;else var M=0,z=p(F[1][2],I,function(H,t0){return p(Bx(H,jt,91),H,t0)});var B=M,K=[1,z];break x}var B=0,K=[0,p4(j)]}return[21,[0,N,K,Z([0,b],[0,B],O)]]},u)}if(t4(u))return x0([0,c],function(T){var b=Ah(T,r);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);if(!so(u)&&!nh(u)){if(typeof v=="number"){var a=v+E3|0;if(4>>0){if(a===24&&u[28][2])return x0([0,c],function(T){var b=p(X0[3],[0,r],T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u)}else if(1>>0)return x0([0,c],function(T){var b=p(X0[3],[0,r],T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u)}if(iC(u))return x0([0,c],function(T){var b=AC(T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);if(typeof v=="number"&&K2===v)return x0([0,c],function(T){var b=V0(T);J(T,K2);var N=q(T);x:{if(typeof N!="number"&&N[0]===4&&!P(N[3],Nt)){E0(T);var j=[0,a1(T)];break x}var j=0}var I=w4(T),F=I[1];return[22,[0,0,[0,[1,[0,b,j]]],[0,F],1,Z([0,i],[0,I[2]],O)]]},u);var l=u2(u,62)?0:1;return u2(u,0)?x0([0,c],function(T){var b=gY(0,T,0);J(T,1);var N=q(T);x:{if(typeof N!="number"&&N[0]===4&&!P(N[3],o6)){var j=w4(T),M=j[2],z=[0,j[1]];break x}wY(T,b);var I=x1(0,0,T),F=I[0]===0?I[1]:I[1][1],M=F,z=0}return[22,[0,0,[0,[0,b]],z,l,Z([0,i],[0,M],O)]]},u):(p2(Qo0,u),p(X0[3],[0,r],u))}return x0([0,c],function(T){uh(T)(r);var b=p4(T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);case 1:uh(x)(r);var m=xr(1,x);x:{r:if(typeof m=="number"){if(m!==4&&m!==10)break r;var h=d4(x);break x}var h=jh(x)}return h;case 11:if(xr(1,x)===50)return uh(x)(r),_Y(x);break}}return Bh([0,r],x)}function MY(x,r){return H0(OY[1],r,x,0)}function qY(x,r){var e=RY(r,x,function(i){return Bh(0,i)}),t=e[3],u=e[2];return[0,m1(function(i,c){return[0,c,i]},xO(x,e[1]),u),t]}function xO(x,r){return H0(DY[1],r,x,0)}function Bh(x,r){var e=x?x[1]:0;1-t4(r)&&uh(r)(e);var t=q(r);if(typeof t=="number"){if(t===28)return x0(uE0,nE0,r);if(t===29)return x0(fE0,iE0,r)}if(!so(r)&&!nh(r)){if(t4(r))return Ah(r,e);if(typeof t=="number"){var u=t-49|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return wX(0)(r);break;case 5:if(!yB(1,r))return d4(r);var i=0,c=x0(0,function(T){return Dh(i,T)},r);return[0,c[1],[30,c[2]]];case 12:return vE0(0,r);case 13:if(ya(1,r)&&!dB(1,r)){var v=0,a=x0(0,function(T){return Ch(v,T)},r);return[0,a[1],[37,a[2]]]}return d(X0[2],r);case 14:var l=xr(1,r);if(typeof l=="number"&&l===62){var m=0,h=x0(0,function(T){return Oh(Uo0,m,T)},r);return[0,h[1],[38,h[2]]]}return d(X0[2],r)}}return iC(r)?AC(r):UY(r)}return p4(r)}function UY(x){for(;;){var r=q(x);if(typeof r=="number"&&tv>r)switch(r){case 0:var e=d(X0[15],x),t=e[1],u=e[2];return[0,t,[0,p(wa(x)[2],u,function(j0,y0){return H0(Bx(j0,zp,77),j0,t,y0)})]];case 8:var i=V0(x),c=u0(x);return J(x,8),[0,i,[19,[0,Z([0,c],[0,wa(x)[1]],O)]]];case 16:return lY(x);case 19:return x0(VT0,WT0,x);case 20:return x0(QT0,$T0,x);case 21:if(x[28][3]&&!Iv(1,x)&&xr(1,x)===4){var v=u0(x),a=V0(x),l=p(X0[13],0,x),m=Th(x),h=m[2],T=m[1];if(!N1(x)&&q(x)===0){var b=h[1];if(b){var N=b[1];if(N[0]===0&&!b[2])return hY(x,a,v,N[1])}return q0(x,[0,T,49]),hY(x,a,v,[0,T,Ro0])}var j=[0,l[1],[10,l]],I=Yr(a,T),F=o1(x,lo(Mo0,Lo0,x,a,[0,[0,I,[6,[0,j,0,[0,T,h],Z([0,v],0,O)]]]]));return x0([0,a],function(j0){var y0=x1(Fo0,0,j0);if(y0[0]===0)var Y0=F,L=y0[1];else var Y0=p(y0[1][2],F,function(N0,S0){return p(Bx(N0,jt,76),N0,S0)}),L=0;return[23,[0,Y0,0,Z(0,[0,L],O)]]},x)}break;case 23:return x0(ZT0,HT0,x);case 24:return x0(rE0,xE0,x);case 25:return x0(tE0,eE0,x);case 26:return x0(sE0,cE0,x);case 27:var M=x0(0,function(j0){var y0=u0(j0);J(j0,27);var Y0=Mx(y0,u0(j0));J(j0,4);var L=d(X0[7],j0);J(j0,5);var N0=d(X0[2],j0),S0=1-j0[5],K0=S0&&f4(N0);return K0&&Nv(j0,N0[1]),[41,[0,L,N0,Z([0,Y0],0,O)]]},x),z=M[1],B=M[2];return ht(x,[0,z,74]),[0,z,B];case 33:var K=u0(x),n0=x0(0,function(j0){J(j0,33);x:{if(q(j0)!==8&&!sl(j0)){var y0=p(X0[13],0,j0),Y0=y0[2][1],L=y0[1];1-I1[3].call(null,Y0,j0[3])&&q0(j0,[0,L,[29,Y0]]);var N0=[0,y0];break x}var N0=0}var S0=x1(0,0,j0);x:{if(S0[0]===0)var K0=S0[1];else{var A0=S0[1],$0=A0[1];if(N0){var ex=[0,p(A0[2],N0[1],function(sx,Q){return p(Bx(sx,C3,74),sx,Q)})],xx=0;break x}var K0=$0}var ex=N0,xx=K0}return[0,ex,xx]},x),$=n0[2],H=$[1],t0=n0[1],c0=H===0?1:0,r0=$[2];if(c0)var v0=x[8],a0=v0||x[9],g0=1-a0;else var g0=c0;return g0&&q0(x,[0,t0,25]),[0,t0,[1,[0,H,Z([0,K],[0,r0],O)]]];case 36:var i0=u0(x),s0=x0(0,function(j0){J(j0,36);x:{if(q(j0)!==8&&!sl(j0)){var y0=p(X0[13],0,j0),Y0=y0[2][1],L=y0[1];1-I1[3].call(null,Y0,j0[3])&&q0(j0,[0,L,[29,Y0]]);var N0=[0,y0];break x}var N0=0}var S0=x1(0,0,j0);x:{if(S0[0]===0)var K0=S0[1];else{var A0=S0[1],$0=A0[1];if(N0){var ex=[0,p(A0[2],N0[1],function(sx,Q){return p(Bx(sx,C3,75),sx,Q)})],xx=0;break x}var K0=$0}var ex=N0,xx=K0}return[0,ex,xx]},x),d0=s0[2],w0=s0[1],M0=d0[2],C0=d0[1];return 1-x[8]&&q0(x,[0,w0,26]),[0,w0,[4,[0,C0,Z([0,i0],[0,M0],O)]]];case 38:return x0(KT0,zT0,x);case 40:return x0(GT0,JT0,x);case 44:return lY(x);case 60:return x0(YT0,XT0,x);case 114:return p2(zl0,x),[0,V0(x),Kl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 34:case 35:case 37:case 39:case 42:case 43:case 50:case 84:case 87:p2(Jl0,x),E0(x);continue}if(!so(x)&&!nh(x)){if(typeof r=="number"&&r===29&&xr(1,x)===6){var D0=cl(1,x);return q0(x,[0,Yr(V0(x),D0),3]),d4(x)}return dn(x)?x0(oE0,aE0,x):(t4(x)&&(p2(0,x),E0(x)),d4(x))}var I0=p4(x);return Nv(x,I0[1]),I0}}Fr(ZC,[0,function(x,r){if(typeof r!="number"&&r[0]===2){var e=r[1],t=e[4],u=e[1];return t&&ht(x,[0,u,76])}return Tx(qx(Wl0,qx(PU(r),Gl0)))},function(x,r,e,t){for(var u=x,i=t;;){var c=i[3],v=i[2],a=i[1],l=q(u);if(typeof l=="number"&&mr===l)return[0,u,a,v,c];if(d(r,l))return[0,u,a,v,c];if(typeof l!="number"&&l[0]===2){var m=d(e,u),h=[0,m,v],T=m[2];if(T[0]===23){var b=T[1][2];if(b){var N=br(b[1],"use strict"),j=m[1],I=N&&1-u[21];I&&q0(u,[0,j,79]);var F=N?ha(1,u):u,M=[0,l,a],z=c||N,u=F,i=[0,M,h,z];continue}}return[0,u,a,h,c]}return[0,u,a,v,c]}}]),Fr(OY,[0,function(x,r,e){for(var t=e;;){var u=q(x);if(typeof u=="number"&&mr===u||d(r,u))return ix(t);var t=[0,LY(x),t]}}]),Fr(DY,[0,function(x,r,e){for(var t=e;;){var u=q(x);if(typeof u=="number"&&mr===u||d(r,u))return ix(t);var t=[0,Bh(0,x),t]}}]),Fr(FY,[0,function(x,r,e){var t=1-x,u=CY([0,r],e),i=t&&(q(e)===86?1:0);return i&&(1-A2(e)&&Ux(e,g1),J(e,86)),[0,u,_C(e),i]}]),Vq(Zl0[1],X0,[0,function(x){var r=q(x);x:{if(typeof r!="number"&&r[0]===6){var e=r[2],t=r[1];E0(x);var u=[0,[0,t,e]];break x}var u=0}var i=u0(x);x:{r:{for(var c=ix(i),v=5;c;){var a=c[2],l=c[1],m=l[2],h=l[1],T=m[2];e:{t:{for(var b=0,N=Nx(T);;){if(N<(b+5|0))break t;var j=br(T1(T,b,v),"@flow");if(j)break;var b=b+1|0}var I=j;break e}var I=0}if(I)break r;var c=a}var F=0;break x}x[31][1]=h[3];var F=ix([0,[0,h,m],a])}x:if(F===0){if(i){var M=i[1],z=M[2];if(!z[1]){var B=z[2],K=M[1];if(1<=Nx(B)&&q2(B,0)===42){x[31][1]=K[3];var n0=[0,M,0];break x}}}var n0=0}else var n0=F;function $(i0){return 0}var H=RY(x,$,LY),t0=H[2],c0=m1(function(i0,s0){return[0,s0,i0]},MY($,H[1]),t0),r0=V0(x);if(J(x,mr),m1(function(i0,s0){var d0=s0[2];switch(d0[0]){case 21:return c4(x,i0,mn(0,[0,d0[1][1],Vl0]));case 22:var w0=d0[1],M0=w0[1];if(M0){if(!w0[2]){var C0=M0[1],D0=C0[2],I0=C0[1];x:{switch(D0[0]){case 39:return m1(function(N0,S0){return c4(x,N0,S0)},i0,m1(function(N0,S0){return m1(lC,N0,[0,S0[2][1],0])},0,D0[1][1]));case 2:case 27:var j0=D0[1][1];if(j0){var y0=j0[1];break x}break;case 3:case 20:case 30:case 37:case 38:var y0=D0[1][1];break x}return i0}return c4(x,i0,mn(0,[0,I0,y0[2][1]]))}}else{var Y0=w0[2];if(Y0){var L=Y0[1];return L[0]===0?m1(function(N0,S0){var K0=S0[2],A0=K0[2],$0=K0[1];return A0?c4(x,N0,A0[1]):c4(x,N0,$0)},i0,L[1]):i0}}return i0;default:return i0}},I1[1],c0),c0)var v0=C6(ix(c0))[1],a0=Yr(C6(c0)[1],v0);else var a0=r0;var g0=ix(x[2][1]);return[0,a0,[0,c0,u,Z([0,n0],0,O),g0]]},UY,Bh,xO,qY,MY,function(x){var r=V0(x),e=zt(x),t=q(x);return typeof t=="number"&&t===9?FC(x,r,[0,e,0]):e},function(x){var r=V0(x),e=h4(x),t=q(x);return typeof t=="number"&&t===9?[0,FC(x,r,[0,o1(x,e),0])]:e},function(x){return o1(x,DX(x))},zt,jC,function(x){var r=x0(0,function(t){var u=u0(t);J(t,0);x:for(var i=0,c=[0,0,ln];;){var v=c[2],a=c[1],l=q(t);if(typeof l=="number"){if(l===1)break x;if(mr===l)break}var m=ST0(t),h=m[1],T=m[2];r:{if(h[0]===1&&q(t)===9){var b=[0,V0(t)];break r}var b=0}var N=IC(T,v),j=q(t);r:{e:if(typeof j=="number"){var I=j-2|0;if(ce>>0){if(Te>>0)break e}else{if(I!==7)break e;E0(t)}var B=N;break r}var F=Kj(Kc0,9),M=gB([0,F],q(t)),z=[0,V0(t),M];u2(t,8);var B=[0,[0,z,N[1]],[0,z,N[2]]]}var i=b,c=[0,[0,h,a],B]}var K=i?[0,v[1],[0,[0,i[1],90],v[2]]]:v,n0=_X(K),$=ix(a),H=u0(t);return J(t,1),[0,[0,$,O2([0,u],[0,L0(t)],H,O)],n0]},x),e=r[2];return[0,r[1],e[1],e[2]]},CY,function(x,r,e){var t=r?r[1]:0;return x0(0,p(FY[1],t,e),x)},function(x){var r=V0(x),e=u0(x);J(x,0);var t=xO(function(v){return v===1?1:0},x),u=V0(x),i=t===0?u0(x):0;J(x,1);var c=[0,t,O2([0,e],[0,L0(x)],i,O)];return[0,Yr(r,u),c]},function(x){function r(t){var u=u0(t);J(t,0);var i=qY(function(h){return h===1?1:0},t),c=i[1],v=i[2],a=c===0?u0(t):0;J(t,1);var l=q(t);x:{r:if(!x){if(typeof l=="number"&&(l===1||mr===l))break r;if(N1(t)){var m=ao(t);break x}var m=0;break x}var m=L0(t)}return[0,[0,c,O2([0,u],[0,m],a,O)],v]}var e=0;return function(t){return aC(e,r,t)}},function(x){return NY(lE0,x)},_4,Lh,po,Ah,function(x){return x0(CT0,jT0,x)},function(x){var r=x[2];switch(r[0]){case 24:var e=r[1],t=e[1][2][1];if(P(t,X1)){if(!P(t,rv)&&!P(e[2][2][1],Um))return 0}else if(!P(e[2][2][1],Xl))return 0;break;case 0:case 10:case 23:case 26:break;default:return 0}return 1},OC,Dv,DC,wh]);var rO=[n2,kb0,as(0)],eO=[0,rO,[0]],pE0=d5(lb0,function(x){var r=Ij(x,vb0)[41],e=Oj(x,0,0,pb0,qj,1)[1];return Gq(x,r,function(t,u){return 0}),function(t,u){var i=y5(u,x);return d(e,i),Dj(u,i,x)}}),kE0=[n2,C00,as(0)];function mE0(x){if(typeof x=="number"){var r=x;if(57<=r)switch(r){case 57:return IH;case 58:return NH;case 59:return jH;case 60:return CH;case 61:return OH;case 62:return DH;case 63:return FH;case 64:return RH;case 65:return LH;case 66:return MH;case 67:return qH;case 68:return UH;case 69:return BH;case 70:return XH;case 71:return YH;case 72:return zH;case 73:return KH;case 74:return JH;case 75:return GH;case 76:return WH;case 77:return VH;case 78:return $H;case 79:return QH;case 80:return HH;case 81:return ZH;case 82:return xZ;case 83:return rZ;case 84:return eZ;case 85:return tZ;case 86:return nZ;case 87:return uZ;case 88:return iZ;case 89:return fZ;case 90:return cZ;case 91:return sZ;case 92:return aZ;case 93:return oZ;case 94:return vZ;case 95:return lZ;case 96:return pZ;case 97:return kZ;case 98:return mZ;case 99:return hZ;case 100:return dZ;case 101:return yZ;case 102:return gZ;case 103:return wZ;case 104:return _Z;case 105:return bZ;case 106:return TZ;case 107:return EZ;case 108:return SZ;case 109:return AZ;case 110:return PZ;case 111:return IZ;default:return NZ}switch(r){case 0:return TQ;case 1:return EQ;case 2:return SQ;case 3:return AQ;case 4:return PQ;case 5:return IQ;case 6:return NQ;case 7:return jQ;case 8:return CQ;case 9:return OQ;case 10:return DQ;case 11:return qx(RQ,FQ);case 12:return LQ;case 13:return MQ;case 14:return qQ;case 15:return UQ;case 16:return BQ;case 17:return XQ;case 18:return YQ;case 19:return zQ;case 20:return KQ;case 21:return JQ;case 22:return GQ;case 23:return WQ;case 24:return VQ;case 25:return $Q;case 26:return QQ;case 27:return HQ;case 28:return ZQ;case 29:return xH;case 30:return qx(eH,rH);case 31:return tH;case 32:return nH;case 33:return uH;case 34:return iH;case 35:return fH;case 36:return cH;case 37:return sH;case 38:return aH;case 39:return oH;case 40:return vH;case 41:return lH;case 42:return pH;case 43:return kH;case 44:return mH;case 45:return hH;case 46:return dH;case 47:return yH;case 48:return gH;case 49:return wH;case 50:return _H;case 51:return bH;case 52:return TH;case 53:return EH;case 54:return SH;case 55:return AH;default:return PH}}switch(x[0]){case 0:var e=x[1];return d(ar(jZ),e);case 1:var t=x[1];return d(ar(CZ),t);case 2:var u=x[2],i=x[1];return p(ar(OZ),u,i);case 3:var c=x[2],v=x[1];return H0(ar(DZ),c,c,v);case 4:var a=x[2],l=x[1];return p(ar(FZ),a,l);case 5:var m=x[1];return d(ar(RZ),m);case 6:return x[1]?LZ:MZ;case 7:var h=x[2],T=x[1],b=d(ar(qZ),T);if(!h)return d(ar(BZ),b);var N=h[1];return p(ar(UZ),N,b);case 8:var j=x[1];return p(ar(XZ),j,j);case 9:var I=x[3],F=x[2],M=x[1];if(!F)return p(ar(KZ),I,M);var z=F[1];if(z===3)return p(ar(zZ),I,M);switch(z){case 0:var B=VV;break;case 1:var B=$V;break;case 2:var B=QV;break;case 3:var B=HV;break;default:var B=ZV}return KN(ar(YZ),M,B,I,B);case 10:var K=x[2],n0=x[1],$=VM(K);return H0(ar(JZ),K,$,n0);case 11:var H=x[2],t0=x[1];return p(ar(GZ),H,t0);case 12:var c0=x[1];return d(ar(WZ),c0);case 13:var r0=x[1];return d(ar(VZ),r0);case 14:return x[1]?qx(QZ,$Z):qx(ZZ,HZ);case 15:var v0=x[1],a0=x[4],g0=x[3],i0=x[2]?x00:r00,s0=g0?e00:t00,d0=a0?qx(n00,v0):v0;return H0(ar(u00),i0,s0,d0);case 16:return i00;case 17:var w0=x[2],M0=x[1],C0=QM(45,w0);if(C0)var D0=C0[1],I0=C0[2]?WM(bQ,[0,D0,vs(VM,C0[2])]):D0;else var I0=w0;var j0=M0?f00:c00;return H0(ar(s00),w0,I0,j0);case 18:var y0=x[1]?a00:o00;return d(ar(v00),y0);case 19:var Y0=x[1];return d(ar(l00),Y0);case 20:var L=Zl<=x[1]?p00:k00;return d(ar(m00),L);case 21:var N0=x[1];return d(ar(h00),N0);case 22:var S0=x[1];return d(ar(d00),S0);case 23:var K0=x[2],A0=x[1];return p(ar(y00),A0,K0);case 24:var $0=x[1];if(Bl===$0)var ex=T00,xx=E00;else if(s6<=$0)var ex=g00,xx=w00;else var ex=_00,xx=b00;return p(ar(S00),xx,ex);case 25:var tx=x[1];return d(ar(A00),tx);case 26:var z0=x[1];return d(ar(P00),z0);case 27:var px=x[2],sx=x[1];return p(ar(I00),sx,px);case 28:var Q=x[2],b0=x[1];return p(ar(N00),b0,Q);default:var U=x[1];return d(ar(j00),U)}}function hE0(x,r){var e=x[2];function t(_){return S1(_,r)}var u=x[1];switch(e[0]){case 0:var i=e[1],c=S5(i[2],r),jx=[0,[0,i[1],c]];break;case 1:var v=e[1],a=t(v[2]),jx=[1,[0,v[1],a]];break;case 2:var l=e[1],m=t(l[7]),jx=[2,[0,l[1],l[2],l[3],l[4],l[5],l[6],m]];break;case 3:var h=e[1],T=h[7],b=t(h[6]),jx=[3,[0,h[1],h[2],h[3],h[4],h[5],b,T]];break;case 4:var N=e[1],j=t(N[2]),jx=[4,[0,N[1],j]];break;case 5:var jx=[5,[0,t(e[1][1])]];break;case 6:var I=e[1],F=t(I[7]),jx=[6,[0,I[1],I[2],I[3],I[4],I[5],I[6],F]];break;case 7:var M=e[1],z=t(M[5]),jx=[7,[0,M[1],M[2],M[3],M[4],z]];break;case 8:var B=e[1],K=t(B[3]),jx=[8,[0,B[1],B[2],K]];break;case 9:var n0=e[1],$=t(n0[5]),jx=[9,[0,n0[1],n0[2],n0[3],n0[4],$]];break;case 10:var H=e[1],t0=t(H[4]),jx=[10,[0,H[1],H[2],H[3],t0]];break;case 11:var c0=e[1],r0=t(c0[5]),jx=[11,[0,c0[1],c0[2],c0[3],c0[4],r0]];break;case 12:var v0=e[1],a0=t(v0[3]),jx=[12,[0,v0[1],v0[2],a0]];break;case 13:var g0=e[1],i0=t(g0[2]),jx=[13,[0,g0[1],i0]];break;case 14:var s0=e[1],d0=t(s0[3]),jx=[14,[0,s0[1],s0[2],d0]];break;case 15:var w0=e[1],M0=t(w0[4]),jx=[15,[0,w0[1],w0[2],w0[3],M0]];break;case 16:var C0=e[1],D0=t(C0[5]),jx=[16,[0,C0[1],C0[2],C0[3],C0[4],D0]];break;case 17:var I0=e[1],j0=t(I0[4]),jx=[17,[0,I0[1],I0[2],I0[3],j0]];break;case 18:var y0=e[1],Y0=t(y0[3]),jx=[18,[0,y0[1],y0[2],Y0]];break;case 19:var jx=[19,[0,t(e[1][1])]];break;case 20:var L=e[1],N0=t(L[3]),jx=[20,[0,L[1],L[2],N0]];break;case 21:var S0=e[1],K0=t(S0[3]),jx=[21,[0,S0[1],S0[2],K0]];break;case 22:var A0=e[1],$0=t(A0[5]),jx=[22,[0,A0[1],A0[2],A0[3],A0[4],$0]];break;case 23:var ex=e[1],xx=t(ex[3]),jx=[23,[0,ex[1],ex[2],xx]];break;case 24:var tx=e[1],z0=t(tx[5]),jx=[24,[0,tx[1],tx[2],tx[3],tx[4],z0]];break;case 25:var px=e[1],sx=t(px[5]),jx=[25,[0,px[1],px[2],px[3],px[4],sx]];break;case 26:var Q=e[1],b0=t(Q[5]),jx=[26,[0,Q[1],Q[2],Q[3],Q[4],b0]];break;case 27:var U=e[1],h0=U[11],_0=t(U[10]),jx=[27,[0,U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],_0,h0]];break;case 28:var m0=e[1],T0=t(m0[4]),jx=[28,[0,m0[1],m0[2],m0[3],T0]];break;case 29:var X=e[1],Gx=t(X[5]),jx=[29,[0,X[1],X[2],X[3],X[4],Gx]];break;case 30:var Px=e[1],G0=t(Px[5]),jx=[30,[0,Px[1],Px[2],Px[3],Px[4],G0]];break;case 31:var Kr=e[1],S=t(Kr[3]),jx=[31,[0,Kr[1],Kr[2],S]];break;case 32:var G=e[1],rx=t(G[3]),jx=[32,[0,G[1],G[2],rx]];break;case 33:var yx=e[1],Ex=yx[3],nx=t(yx[2]),jx=[33,[0,yx[1],nx,Ex]];break;case 34:var p0=e[1],Fx=p0[4],Sx=t(p0[3]),jx=[34,[0,p0[1],p0[2],Sx,Fx]];break;case 35:var bx=e[1],B0=t(bx[2]),jx=[35,[0,bx[1],B0]];break;case 36:var Wx=e[1],Yx=t(Wx[4]),jx=[36,[0,Wx[1],Wx[2],Wx[3],Yx]];break;case 37:var ax=e[1],Qx=t(ax[4]),jx=[37,[0,ax[1],ax[2],ax[3],Qx]];break;case 38:var kx=e[1],tr=t(kx[5]),jx=[38,[0,kx[1],kx[2],kx[3],kx[4],tr]];break;case 39:var sr=e[1],Mr=t(sr[3]),jx=[39,[0,sr[1],sr[2],Mr]];break;case 40:var a2=e[1],_2=t(a2[3]),jx=[40,[0,a2[1],a2[2],_2]];break;default:var i2=e[1],Q2=t(i2[3]),jx=[41,[0,i2[1],i2[2],Q2]]}return[0,u,jx]}var dE0=pv(eO)===n2?eO:eO[1];zN(DS,dE0);var ba=o0,j1=null,BY=void 0;function Xh(x){return 1-(x===BY?1:0)}ba.String,ba.RegExp,ba.Object,ba.Date,ba.Math;function yE0(x){throw x}function XY(x){return d(yE0,x)}ba.JSON;var gE0=ba.Array,wE0=ba.Error;mj(function(x){return x[1]===rO?[0,Dt(x[2].toString())]:0}),mj(function(x){return x instanceof gE0?0:[0,Dt(x.toString())]});var YY=[0,0];function _s(x){return $z(F6(x))}function $2(x){return eM(F6(x))}function pr(x,r){return $2(ix(c5(x,r)))}function gx(x,r){return r?d(x,r[1]):j1}function ml(x,r){return r[0]===0?j1:x(r[1])}function zY(x){return _s([0,[0,ob0,x[1]],[0,[0,ab0,x[2]],0]])}function KY(x){var r=x[1],e=r?Jx(r[1][1]):j1,t=[0,[0,fb0,zY(x[3])],0];return _s([0,[0,sb0,e],[0,[0,cb0,zY(x[2])],t]])}function w2(x){if(!x)return 0;var r=x[1],e=r[1];return Z([0,e],[0,Mx(r[3],r[2])],O)}var _E0=Jx;function hl(x,r,e){var t=r[e];return Xh(t)?t|0:x}function bE0(x,r){var e=B3(r,BY)?{}:r,t=Dt(x),u=hl(z3[6],e,hb0),i=hl(z3[5],e,db0),c=hl(z3[4],e,yb0),v=hl(z3[3],e,gb0),a=hl(z3[2],e,wb0),l=[0,hl(z3[1],e,_b0),a,v,c,i,u,0,0],m=e[JO],h=Xh(m),T=h&&m|0,b=e[gO],N=Xh(b)?b|0:1,j=e.all_comments,I=Xh(j)?j|0:1,F=[0,0],M=T?[0,function(Y){return F[1]=[0,Y,F[1]],0}]:0,z=0,B=mb0[1];try{var K=0,n0=aU(t),$=K,H=n0}catch(Y){var t0=U2(Y);if(t0!==Za)throw W0(t0,0);var c0=[0,[0,[0,z,Y3[2],Y3[3]],48],0],$=c0,H=aU(xs0)}var r0=[0,z,H,D00,0,l[5],_U,F00],v0=[0,Z6(r0,0)],a0=[0,[0,$],[0,0],I1[1],[0,0],l[6],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,es0],[0,r0],v0,[0,M],l,z,[0,0],[0,rs0]],g0=d(X0[1],a0),i0=ix(a0[1][1]),s0=ix(m1(function(Y,A){var D=Y[2],f0=Y[1];return vC[3].call(null,A,f0)?[0,f0,D]:[0,vC[4].call(null,A,f0),[0,A,D]]},[0,vC[1],0],i0)[2]);if(s0){var d0=s0[2],w0=s0[1];if(B)throw W0([0,kE0,w0,d0],1)}YY[1]=0;var M0=Nx(t)-0|0,C0=Ot(t);x:{r:{for(var D0=0,I0=0;;){if(I0===M0)break r;var j0=se(C0,I0);e:{if(0<=j0&&Br>=j0){var y0=1;break e}if(II<=j0&&kk>=j0){var y0=2;break e}if(s3<=j0&&Ry>=j0){var y0=3;break e}if(w3<=j0&&zo>=j0){var y0=4;break e}var y0=0}if(y0===0)var D0=oC(D0,I0,0),I0=I0+1|0;else{if((M0-I0|0)>>0)throw W0([0,Nr,JV],1);switch(Y0){case 0:var N0=se(C0,I0);break;case 1:var N0=(se(C0,I0)&31)<<6|se(C0,I0+1|0)&63;break;case 2:var N0=(se(C0,I0)&15)<<12|(se(C0,I0+1|0)&63)<<6|se(C0,I0+2|0)&63;break;default:var N0=(se(C0,I0)&7)<<18|(se(C0,I0+1|0)&63)<<12|(se(C0,I0+2|0)&63)<<6|se(C0,I0+3|0)&63}var D0=oC(D0,I0,[0,N0]),I0=L}}var S0=oC(D0,I0,0);break x}var S0=D0}for(var K0=fo0,A0=ix([0,6,S0]);;){var $0=K0[3],ex=K0[2],xx=K0[1];if(!A0)break;var tx=A0[1];if(tx===5){var z0=A0[2];if(z0&&z0[1]===6){var px=z0[2],K0=[0,xx+2|0,0,[0,F6(ix([0,xx,ex])),$0]],A0=px;continue}}else if(6>tx){var sx=A0[2],K0=[0,xx+NB(tx)|0,[0,xx,ex],$0],A0=sx;continue}var Q=A0[2],b0=[0,F6(ix([0,xx,ex])),$0],K0=[0,xx+NB(tx)|0,0,b0],A0=Q}var U=F6(ix($0));if(N)var _0=g0;else var h0=d(pE0[1],0),_0=p(Bx(h0,-201766268,Be),h0,g0);if(I)var T0=_0;else var m0=_0[2],T0=[0,_0[1],[0,m0[1],m0[2],m0[3],0]];function X(Y,A,D,f0){var k0=[0,oh(U,A[3]),0],R0=[0,[0,x60,$2([0,oh(U,A[2]),k0])],0],Q0=Mx(R0,[0,[0,r60,KY(A)],0]);if(D){var mx=D[1],Ix=mx[1];if(Ix){var Rx=mx[2];if(Rx)var nr=[0,[0,e60,wo(Rx)],0],zx=[0,[0,t60,wo(Ix)],nr];else var zx=[0,[0,n60,wo(Ix)],0];var rr=zx}else var ur=mx[2],kr=ur?[0,[0,u60,wo(ur)],0]:0,rr=kr;var Cx=rr}else var Cx=0;return _s(K3(Mx(Q0,Mx(Cx,[0,[0,i60,Jx(Y)],0])),f0))}function Gx(Y){return pr(Px,Y)}function Px(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return Yx([0,D,A[1]]);case 1:var f0=A[1],k0=f0[2];return X(p60,D,k0,[0,[0,l60,gx(p0,f0[1])],0]);case 2:return V(f50,[0,D,A[1]]);case 3:var R0=A[1],Q0=R0[3],mx=R0[6],Ix=R0[5],Rx=R0[4],nr=R0[2],zx=R0[1],ur=S1(w2(Q0[2][3]),mx),kr=[0,[0,Z50,gx(d1,nr)],0],rr=[0,[0,xh0,Pa(Rx)],kr],Cx=Q0[2],gr=Cx[2],Er=Cx[1];if(gr)var Jr=gr[1],Sr=Jr[2],Gr=Sr[2],k2=Jr[1],P2=X(ih0,k2,Gr,[0,[0,uh0,dr(Sr[1])],0]),Dr=$2(ix([0,P2,c5(wx,Er)]));else var Dr=$2(vs(wx,Er));var m2=[0,[0,eh0,p0(zx)],[0,[0,rh0,Dr],rr]];return X(nh0,D,ur,[0,[0,th0,Yx(Ix)],m2]);case 4:var r2=A[1],Ar=r2[2];return X(m60,D,Ar,[0,[0,k60,gx(p0,r2[1])],0]);case 5:return X(h60,D,A[1][1],0);case 6:return kx([0,D,A[1]]);case 7:return tr([0,D,A[1]]);case 8:return _2([0,D,A[1]]);case 9:var wr=A[1],f2=wr[5],Ur=wr[4],Qr=wr[3],T2=wr[2],Rr=wr[1];if(Qr){var d2=Qr[1];if(d2[0]!==0&&!d2[1][2])return X(y60,D,f2,[0,[0,d60,gx(b2,Ur)],0])}if(T2){var o2=T2[1];switch(o2[0]){case 0:var c2=ax(o2[1]);break;case 1:var c2=Qx(o2[1]);break;case 2:var c2=kx(o2[1]);break;case 3:var c2=tr(o2[1]);break;case 4:var c2=yr(o2[1]);break;case 5:var c2=jx(o2[1]);break;case 6:var c2=_(1,o2[1]);break;case 7:var c2=Hx(o2[1]);break;default:var c2=_2(o2[1])}var E2=c2}else var E2=j1;var pe=[0,[0,g60,gx(b2,Ur)],0],je=[0,[0,_60,E2],[0,[0,w60,Q2(Qr)],pe]],xt=Rr?1:0;return X(T60,D,f2,[0,[0,b60,!!xt],je]);case 10:return Qx([0,D,A[1]]);case 11:var U1=A[1],e2=U1[5],Z1=U1[4],R2=U1[2],wt=U1[1],O1=[0,[0,Mm0,pr(Zr,U1[3])],0],_t=[0,[0,qm0,bn(0,Z1)],O1],Wt=[0,[0,Um0,gx(d1,R2)],_t];return X(Xm0,D,e2,[0,[0,Bm0,p0(wt)],Wt]);case 12:var rt=A[1],et=rt[1],Ox=rt[3],tt=rt[2],xe=et[0]===0?p0(et[1]):b2(et[1]);return X(A60,D,Ox,[0,[0,S60,xe],[0,[0,E60,Yx(tt)],0]]);case 13:var v1=A[1],Ce=v1[2];return X(I60,D,Ce,[0,[0,P60,H1(v1[1])],0]);case 14:var Oe=A[1],nt=Oe[3],ut=Oe[2],it=p0(Oe[1]);return X(C60,D,nt,[0,[0,j60,it],[0,[0,N60,Yx(ut)],0]]);case 15:var r1=A[1],bt=r1[4],Tt=r1[2],Is=r1[1],ft=[0,[0,Gm0,yr(r1[3])],0],Vt=[0,[0,Wm0,gx(d1,Tt)],ft];return X($m0,D,bt,[0,[0,Vm0,p0(Is)],Vt]);case 16:return _(1,[0,D,A[1]]);case 17:return ax([0,D,A[1]]);case 18:var D1=A[1],Tn=D1[3],ke=D1[1],De=[0,[0,O60,G0(D1[2])],0];return X(F60,D,Tn,[0,[0,D60,Px(ke)],De]);case 19:return X(R60,D,A[1][1],0);case 20:var $t=A[1],Ns=$t[3],En=$t[1],js=[0,[0,Vh0,Cr($t[2])],0];return X(Qh0,D,Ns,[0,[0,$h0,p0(En)],js]);case 21:var re=A[1],Et=re[2],Cs=re[3],Sn=Et[0]===0?Px(Et[1]):G0(Et[1]);return X(q60,D,Cs,[0,[0,M60,Sn],[0,[0,L60,Jx(i2(1))],0]]);case 22:var Fe=A[1],Os=Fe[5],Ds=Fe[4],To=Fe[3],Eo=Fe[2],Yv=Fe[1];if(Eo){var zv=Eo[1];if(zv[0]!==0){var So=zv[1][2],Ao=[0,[0,U60,Jx(i2(Ds))],0],_l=[0,[0,B60,gx(p0,So)],Ao];return X(Y60,D,Os,[0,[0,X60,gx(b2,To)],_l])}}var Kv=[0,[0,z60,Jx(i2(Ds))],0],bl=[0,[0,K60,gx(b2,To)],Kv],Tl=[0,[0,J60,Q2(Eo)],bl];return X(W60,D,Os,[0,[0,G60,gx(Px,Yv)],Tl]);case 23:var Fs=A[1],Po=Fs[3],Jv=Fs[1],El=[0,[0,V60,gx(_E0,Fs[2])],0];return X(Q60,D,Po,[0,[0,$60,G0(Jv)],El]);case 24:var Rs=A[1],Gv=Rs[5],Oa=Rs[3],Sl=Rs[2],Wv=Rs[1],Io=[0,[0,H60,Px(Rs[4])],0],Al=[0,[0,Z60,gx(G0,Oa)],Io],Da=[0,[0,x40,gx(G0,Sl)],Al];return X(e40,D,Gv,[0,[0,r40,gx(function(uO){return uO[0]===0?Ts(uO[1]):G0(uO[1])},Wv)],Da]);case 25:var Ls=A[1],No=Ls[1],jo=Ls[5],Fa=Ls[4],Pl=Ls[3],Il=Ls[2],Nl=No[0]===0?Ts(No[1]):dr(No[1]),Co=[0,[0,n40,Px(Pl)],[0,[0,t40,!!Fa],0]];return X(f40,D,jo,[0,[0,i40,Nl],[0,[0,u40,G0(Il)],Co]]);case 26:var An=A[1],Ra=An[1],jl=An[5],Oo=An[4],Vv=An[3],Ms=An[2],$v=Ra[0]===0?Ts(Ra[1]):dr(Ra[1]),St=[0,[0,s40,Px(Vv)],[0,[0,c40,!!Oo],0]];return X(v40,D,jl,[0,[0,o40,$v],[0,[0,a40,G0(Ms)],St]]);case 27:var F1=A[1],Qv=F1[3],Hv=F1[2],Cl=F1[10],Do=F1[9],Fo=F1[8],Zv=F1[7],Ol=F1[6],x3=F1[5],Wh=F1[4],Qt=Hv[2][4],Pn=F1[1],r3=Qv[0]===0?Qv[1]:Tx(m80),Vh=S1(w2(Qt),Cl);if(Ol===0)var qs=0,e3=h80;else var qs=[0,[0,w80,!!Wh],[0,[0,g80,!!x3],[0,[0,y80,gx(_o,Zv)],[0,[0,d80,!1],0]]]],e3=_80;var $h=[0,[0,b80,gx(d1,Do)],0],Qh=[0,[0,T80,qr(Fo)],$h],Hh=[0,[0,E80,Yx(r3)],Qh],Zh=[0,[0,S80,ux(Hv)],Hh];return X(e3,D,Vh,Mx([0,[0,A80,gx(p0,Pn)],Zh],qs));case 28:var t3=A[1],N4=t3[3],xd=t3[4],j4=t3[2],n=t3[1];if(N4)var s=N4[1][2],f=Px(hE0(s[1],s[2]));else var f=j1;var o=[0,[0,p40,Px(j4)],[0,[0,l40,f],0]];return X(m40,D,xd,[0,[0,k40,G0(n)],o]);case 29:var k=A[1],g=k[4],E=k[3],C=k[5],R=k[2],e0=k[1];if(g){var l0=g[1];if(l0[0]===0)var Xx=vs(function(iO){var rd=iO[3],ed=iO[2],WY=iO[1],AE0=ed?Yr(rd[1],ed[1][1]):rd[1],PE0=ed?ed[1]:rd;x:{r:{var IE0=0;if(WY){switch(WY[1]){case 0:var VY=qf;break;case 1:var VY=Zs;break;default:break r}var $Y=VY;break x}}var $Y=j1}var NE0=[0,[0,z_0,p0(PE0)],[0,[0,Y_0,$Y],IE0]];return X(J_0,AE0,0,[0,[0,K_0,p0(rd)],NE0])},l0[1]);else var F0=l0[1],dx=F0[1],Xx=[0,X(X_0,dx,0,[0,[0,B_0,p0(F0[2])],0]),0];var Kx=Xx}else var Kx=0;if(E)var _r=E[1][1],t2=[0,[0,q_0,p0(_r)],0],Wr=[0,X(U_0,_r[1],0,t2),Kx];else var Wr=Kx;switch(e0){case 0:var Vx=h40;break;case 1:var Vx=d40;break;default:var Vx=y40}var C2=[0,[0,w40,b2(R)],[0,[0,g40,Jx(Vx)],0]];return X(b40,D,C,[0,[0,_40,$2(Wr)],C2]);case 30:return Hx([0,D,A[1]]);case 31:var z2=A[1],ee=z2[3],me=z2[1],he=[0,[0,T40,Px(z2[2])],0];return X(S40,D,ee,[0,[0,E40,p0(me)],he]);case 32:var te=A[1],de=te[3],ye=te[1],ge=[0,[0,A40,pr(S,te[2])],0];return X(I40,D,de,[0,[0,P40,G0(ye)],ge]);case 33:var At=A[1],we=At[2];return X(j40,D,we,[0,[0,N40,gx(G0,At[1])],0]);case 34:var ct=A[1],Us=ct[3],Bs=ct[1],Xs=[0,[0,C40,pr(B0,ct[2])],0];return X(D40,D,Us,[0,[0,O40,G0(Bs)],Xs]);case 35:var In=A[1],Ys=In[2];return X(R40,D,Ys,[0,[0,F40,G0(In[1])],0]);case 36:var zs=A[1],n3=zs[4],u3=zs[2],i3=zs[1],f3=[0,[0,L40,gx(Yx,zs[3])],0],_x=[0,[0,M40,gx(Wx,u3)],f3];return X(U40,D,n3,[0,[0,q40,Yx(i3)],_x]);case 37:return jx([0,D,A[1]]);case 38:return _(0,[0,D,A[1]]);case 39:return Ts([0,D,A[1]]);case 40:var c3=A[1],hx=c3[3],tO=c3[1],nO=[0,[0,B40,Px(c3[2])],0];return X(Y40,D,hx,[0,[0,X40,G0(tO)],nO]);default:var cx=A[1],TE0=cx[3],EE0=cx[1],SE0=[0,[0,z40,Px(cx[2])],0];return X(J40,D,TE0,[0,[0,K40,G0(EE0)],SE0])}}function G0(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[2],R0=[0,[0,G40,pr(Jt,f0[1])],0];return X(W40,D,w2(k0),R0);case 1:var Q0=A[1],mx=Q0[3],Ix=Q0[2],Rx=Q0[10],nr=Q0[9],zx=Q0[8],ur=Q0[7],kr=Q0[4],rr=Ix[2][4];if(mx[0]===0)var Cx=0,gr=Yx(mx[1]);else var Cx=1,gr=G0(mx[1]);var Er=S1(w2(rr),Rx),Jr=[0,[0,V40,gx(d1,nr)],0],Sr=[0,[0,Q40,!!Cx],[0,[0,$40,qr(zx)],Jr]],Gr=[0,[0,rp0,gr],[0,[0,xp0,!!kr],[0,[0,Z40,!1],[0,[0,H40,gx(_o,ur)],Sr]]]];return X(np0,D,Er,[0,[0,tp0,j1],[0,[0,ep0,ux(Ix)],Gr]]);case 2:var k2=A[1],P2=k2[2];return X(ip0,D,P2,[0,[0,up0,G0(k2[1])],0]);case 3:var Dr=A[1],m2=Dr[3],r2=Dr[1],Ar=[0,[0,fp0,yr(Dr[2][2])],0];return X(sp0,D,m2,[0,[0,cp0,G0(r2)],Ar]);case 4:var wr=A[1],f2=wr[1],Ur=wr[4],Qr=wr[3],T2=wr[2];if(f2){switch(f2[1]){case 0:var Rr=Q$;break;case 1:var Rr=H$;break;case 2:var Rr=Z$;break;case 3:var Rr=xQ;break;case 4:var Rr=rQ;break;case 5:var Rr=eQ;break;case 6:var Rr=tQ;break;case 7:var Rr=nQ;break;case 8:var Rr=uQ;break;case 9:var Rr=iQ;break;case 10:var Rr=fQ;break;case 11:var Rr=cQ;break;case 12:var Rr=sQ;break;case 13:var Rr=aQ;break;default:var Rr=oQ}var d2=Rr}else var d2=ap0;var o2=[0,[0,op0,G0(Qr)],0];return X(pp0,D,Ur,[0,[0,lp0,Jx(d2)],[0,[0,vp0,dr(T2)],o2]]);case 5:var c2=A[1],E2=c2[4],pe=c2[2],je=c2[1],xt=[0,[0,kp0,G0(c2[3])],0],U1=[0,[0,mp0,G0(pe)],xt];switch(je){case 0:var e2=I$;break;case 1:var e2=N$;break;case 2:var e2=j$;break;case 3:var e2=C$;break;case 4:var e2=O$;break;case 5:var e2=D$;break;case 6:var e2=F$;break;case 7:var e2=R$;break;case 8:var e2=L$;break;case 9:var e2=M$;break;case 10:var e2=q$;break;case 11:var e2=U$;break;case 12:var e2=B$;break;case 13:var e2=X$;break;case 14:var e2=Y$;break;case 15:var e2=z$;break;case 16:var e2=K$;break;case 17:var e2=J$;break;case 18:var e2=G$;break;case 19:var e2=W$;break;case 20:var e2=V$;break;default:var e2=$$}return X(dp0,D,E2,[0,[0,hp0,Jx(e2)],U1]);case 6:var Z1=A[1],R2=Z1[4],wt=S1(w2(Z1[3][2][2]),R2);return X(yp0,D,wt,gl(Z1));case 7:return V(c50,[0,D,A[1]]);case 8:var O1=A[1],_t=O1[4],Wt=O1[2],rt=O1[1],et=[0,[0,gp0,G0(O1[3])],0],Ox=[0,[0,wp0,G0(Wt)],et];return X(bp0,D,_t,[0,[0,_p0,G0(rt)],Ox]);case 9:return nx([0,D,A[1]]);case 10:return p0(A[1]);case 11:var tt=A[1],xe=tt[2];return X(Ep0,D,xe,[0,[0,Tp0,G0(tt[1])],0]);case 12:return ho([0,D,A[1]]);case 13:return Bv([0,D,A[1]]);case 14:return b2([0,D,A[1]]);case 15:return wn([0,D,A[1]]);case 16:return _n([0,D,A[1]]);case 17:return C1([0,D,A[1]]);case 18:return q1([0,D,A[1]]);case 19:var v1=A[1],Ce=v1[2],Oe=v1[1],nt=v1[4],ut=v1[3];try{var it=new RegExp(Jx(Oe),Jx(Ce)),r1=it}catch{var r1=j1}return X(dy0,D,nt,[0,[0,hy0,r1],[0,[0,my0,Jx(ut)],[0,[0,ky0,_s([0,[0,py0,Jx(Oe)],[0,[0,ly0,Jx(Ce)],0]])],0]]]);case 20:var bt=A[1];return b2([0,D,[0,bt[1],bt[5],bt[6]]]);case 21:var Tt=A[1],Is=Tt[4],ft=Tt[3],Vt=Tt[2];switch(Tt[1]){case 0:var D1=Sp0;break;case 1:var D1=Ap0;break;default:var D1=Pp0}var Tn=[0,[0,Ip0,G0(ft)],0];return X(Cp0,D,Is,[0,[0,jp0,Jx(D1)],[0,[0,Np0,G0(Vt)],Tn]]);case 22:var ke=A[1],De=ke[3],$t=ke[1],Ns=[0,[0,Op0,pr(Kr,ke[2])],0];return X(Fp0,D,De,[0,[0,Dp0,G0($t)],Ns]);case 23:var En=A[1],js=En[3];return X(Rp0,D,js,E4(En));case 24:var re=A[1],Et=re[3],Cs=re[1],Sn=[0,[0,Lp0,p0(re[2])],0];return X(qp0,D,Et,[0,[0,Mp0,p0(Cs)],Sn]);case 25:var Fe=A[1],Os=Fe[4],Ds=Fe[3],To=Fe[2],Eo=Fe[1];if(Ds)var Yv=Ds[1],zv=S1(w2(Yv[2][2]),Os),So=zv,Ao=bx(Yv);else var So=Os,Ao=$2(0);var _l=[0,[0,Bp0,gx(Gt,To)],[0,[0,Up0,Ao],0]];return X(Yp0,D,So,[0,[0,Xp0,G0(Eo)],_l]);case 26:var Kv=A[1],bl=Kv[2],Tl=[0,[0,zp0,pr(Y2,Kv[1])],0];return X(Kp0,D,w2(bl),Tl);case 27:var Fs=A[1],Po=Fs[1],Jv=Fs[3],El=Po[4],Rs=S1(w2(Po[3][2][2]),El);return X(Gp0,D,Rs,Mx(gl(Po),[0,[0,Jp0,!!Jv],0]));case 28:var Gv=A[1],Oa=Gv[1],Sl=Oa[3],Wv=[0,[0,Wp0,!!Gv[3]],0];return X(Vp0,D,Sl,Mx(E4(Oa),Wv));case 29:var Io=A[1],Al=Io[2];return X(Qp0,D,Al,[0,[0,$p0,pr(G0,Io[1])],0]);case 30:return X(Hp0,D,A[1][1],0);case 31:var Da=A[1],Ls=Da[3],No=Da[1],jo=[0,[0,Ny0,bs(Da[2])],0];return X(Cy0,D,Ls,[0,[0,jy0,G0(No)],jo]);case 32:return bs([0,D,A[1]]);case 33:return X(Zp0,D,A[1][1],0);case 34:var Fa=A[1],Pl=Fa[3],Il=Fa[1],Nl=[0,[0,xk0,H1(Fa[2])],0];return X(ek0,D,Pl,[0,[0,rk0,G0(Il)],Nl]);case 35:var Co=A[1],An=Co[3],Ra=Co[1],jl=[0,[0,tk0,yr(Co[2][2])],0];return X(uk0,D,An,[0,[0,nk0,G0(Ra)],jl]);case 36:var Oo=A[1],Vv=Oo[3],Ms=Oo[2],$v=Oo[1];if(7<=$v)return X(fk0,D,Vv,[0,[0,ik0,G0(Ms)],0]);switch($v){case 0:var St=ck0;break;case 1:var St=sk0;break;case 2:var St=ak0;break;case 3:var St=ok0;break;case 4:var St=vk0;break;case 5:var St=lk0;break;case 6:var St=pk0;break;default:var St=Tx(kk0)}return X(yk0,D,Vv,[0,[0,dk0,Jx(St)],[0,[0,hk0,!0],[0,[0,mk0,G0(Ms)],0]]]);case 37:var F1=A[1],Qv=F1[4],Hv=F1[3],Cl=F1[2],Do=F1[1]?gk0:wk0;return X(Ek0,D,Qv,[0,[0,Tk0,Jx(Do)],[0,[0,bk0,G0(Cl)],[0,[0,_k0,!!Hv],0]]]);default:var Fo=A[1],Zv=Fo[2],Ol=[0,[0,Sk0,!!Fo[3]],0];return X(Pk0,D,Zv,[0,[0,Ak0,gx(G0,Fo[1])],Ol])}}function Kr(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Ik0,gx(G0,A[3])],0],mx=[0,[0,Nk0,G0(f0)],Q0];return X(Ck0,R0,D,[0,[0,jk0,G(k0)],mx])}function S(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Ok0,gx(G0,A[3])],0],mx=[0,[0,Dk0,Yx(f0)],Q0];return X(Rk0,R0,D,[0,[0,Fk0,G(k0)],mx])}function G(Y){var A=Y[2],D=Y[1];function f0(Ur){return X(Kk0,D,0,[0,[0,zk0,Ur],0])}switch(A[0]){case 0:return X(Jk0,D,A[1],0);case 1:return f0(C1([0,D,A[1]]));case 2:return f0(q1([0,D,A[1]]));case 3:return f0(b2([0,D,A[1]]));case 4:return f0(wn([0,D,A[1]]));case 5:return f0(_n([0,D,A[1]]));case 6:var k0=A[1],R0=k0[2],Q0=k0[3],mx=k0[1]?Gk0:Wk0,Ix=R0[2],Rx=R0[1],nr=Ix[0]===0?C1([0,Rx,Ix[1]]):q1([0,Rx,Ix[1]]);return X(Qk0,D,Q0,[0,[0,$k0,Jx(mx)],[0,[0,Vk0,nr],0]]);case 7:return yx([0,D,A[1]]);case 8:return rx(A[1]);case 9:var zx=function(Ur){var Qr=Ur[2],T2=Qr[2],Rr=Qr[1],d2=Qr[3],o2=Ur[1],c2=0;switch(T2[0]){case 0:var E2=b2(T2[1]);break;case 1:var E2=C1(T2[1]);break;default:var E2=p0(T2[1])}var pe=[0,[0,Bk0,E2],c2],je=Rr[0]===0?rx(Rr[1]):zx(Rr[1]);return X(Yk0,o2,d2,[0,[0,Xk0,je],pe])};return zx(A[1]);case 10:var ur=A[1],kr=ur[3],rr=ur[1],Cx=[0,[0,Hk0,gx(Ex,ur[2])],0],gr=[0,[0,Zk0,pr(function(Ur){var Qr=Ur[2],T2=Qr[1],Rr=Qr[4],d2=Ur[1],o2=[0,[0,Lk0,!!Qr[3]],0],c2=[0,[0,Mk0,G(Qr[2])],o2];switch(T2[0]){case 0:var E2=b2(T2[1]);break;case 1:var E2=C1(T2[1]);break;default:var E2=p0(T2[1])}return X(Uk0,d2,Rr,[0,[0,qk0,E2],c2])},rr)],Cx];return X(x80,D,w2(kr),gr);case 11:var Er=A[1],Jr=Er[3],Sr=Er[1],Gr=[0,[0,r80,gx(Ex,Er[2])],0],k2=[0,[0,e80,pr(function(Ur){return G(Ur[2])},Sr)],Gr];return X(t80,D,w2(Jr),k2);case 12:var P2=A[1],Dr=P2[2];return X(u80,D,Dr,[0,[0,n80,pr(G,P2[1])],0]);default:var m2=A[1],r2=m2[2],Ar=m2[3],wr=m2[1],f2=r2[0]===0?p0(r2[1]):yx([0,r2[1],r2[2]]);return X(c80,D,Ar,[0,[0,f80,G(wr)],[0,[0,i80,f2],0]])}}function rx(Y){var A=Y[1];return X(a80,A,0,[0,[0,s80,p0(Y)],0])}function yx(Y){var A=Y[2],D=A[3],f0=A[2],k0=Y[1],R0=[0,[0,o80,Jx(Ze(A[1]))],0];return X(l80,k0,D,[0,[0,v80,p0(f0)],R0])}function Ex(Y){var A=Y[2],D=A[2],f0=Y[1];return X(k80,f0,D,[0,[0,p80,gx(yx,A[1])],0])}function nx(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[10],R0=A[9],Q0=A[8],mx=A[7],Ix=A[5],Rx=A[4],nr=f0[2][4],zx=A[1],ur=Y[1],kr=D[0]===0?D[1]:Tx(P80),rr=S1(w2(nr),k0),Cx=[0,[0,I80,gx(d1,R0)],0],gr=[0,[0,j80,!1],[0,[0,N80,qr(Q0)],Cx]],Er=[0,[0,D80,!!Rx],[0,[0,O80,!!Ix],[0,[0,C80,gx(_o,mx)],gr]]],Jr=[0,[0,F80,Yx(kr)],Er],Sr=[0,[0,R80,ux(f0)],Jr];return X(M80,ur,rr,[0,[0,L80,gx(p0,zx)],Sr])}function p0(Y){var A=Y[2];return X(X80,Y[1],A[2],[0,[0,B80,Jx(A[1])],[0,[0,U80,j1],[0,[0,q80,!1],0]]])}function Fx(Y){var A=Y[2];return X(J80,Y[1],A[2],[0,[0,K80,Jx(A[1])],[0,[0,z80,j1],[0,[0,Y80,!1],0]]])}function Sx(Y,A){var D=A[1][2],f0=D[2],k0=D[1],R0=[0,[0,G80,!!A[3]],0];return X($80,Y,f0,[0,[0,V80,Jx(k0)],[0,[0,W80,ml(H1,A[2])],R0]])}function bx(Y){return pr(dt,Y[2][1])}function B0(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Q80,pr(Px,A[2])],0];return X(Z80,k0,D,[0,[0,H80,gx(G0,f0)],R0])}function Wx(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,xm0,Yx(A[2])],0];return X(em0,k0,D,[0,[0,rm0,gx(dr,f0)],R0])}function Yx(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,tm0,Gx(A[1])],0];return X(nm0,f0,w2(D),k0)}function ax(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[4],R0=A[3],Q0=Y[1],mx=Yr(f0[1],D[1]),Ix=[0,[0,um0,Jx(Ze(R0))],0];return X(fm0,Q0,k0,[0,[0,im0,Sx(mx,[0,f0,[1,D],0])],Ix])}function Qx(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[4],R0=A[3],Q0=Y[1],mx=Yr(f0[1],D[1]),Ix=D[2][2];x:{if(Ix[0]===12){var Rx=Ix[1][5];if(typeof Rx=="number"&&!Rx){var nr=0,zx=cm0;break x}}var nr=[0,[0,sm0,gx(_o,R0)],0],zx=am0}return X(zx,Q0,k0,Mx([0,[0,om0,Sx(mx,[0,f0,[1,D],0])],0],nr))}function kx(Y){var A=Y[2],D=A[6],f0=A[4],k0=A[7],R0=A[5],Q0=A[3],mx=A[2],Ix=A[1],Rx=Y[1],nr=$2(f0?[0,Zr(f0[1]),0]:0),zx=D?pr(U0,D[1][2][1]):$2(0),ur=[0,[0,pm0,nr],[0,[0,lm0,zx],[0,[0,vm0,pr(Zr,R0)],0]]],kr=[0,[0,km0,bn(0,Q0)],ur],rr=[0,[0,mm0,gx(d1,mx)],kr];return X(dm0,Rx,k0,[0,[0,hm0,p0(Ix)],rr])}function tr(Y){var A=Y[2],D=A[3],f0=Y[1],k0=A[5],R0=A[4],Q0=A[2],mx=A[1],Ix=S1(w2(D[2][3]),k0),Rx=D[2],nr=Rx[1],zx=Rx[2],ur=[0,[0,ym0,gx(d1,Q0)],0],kr=[0,[0,gm0,Pa(R0)],ur],rr=[0,[0,wm0,sr(nr)],kr],Cx=[0,[0,_m0,gx(Mr,zx)],rr],gr=[0,[0,bm0,sr(nr)],Cx];return X(Em0,f0,Ix,[0,[0,Tm0,p0(mx)],gr])}function sr(Y){return $2(vs(function(A){var D=A[2];return a2(0,D[3],A[1],[0,D[1]],D[2][2])},Y))}function Mr(Y){var A=Y[2],D=A[4],f0=A[3],k0=A[2],R0=Y[1];return a2(D,f0,R0,f5(function(Q0){return[0,Q0]},A[1]),k0)}function a2(Y,A,D,f0,k0){if(f0)var R0=f0[1],Q0=R0[0]===0?gx(p0,[0,R0[1]]):gx(b2,[0,R0[1]]),mx=Q0;else var mx=gx(p0,0);return X(Dm0,D,Y,[0,[0,Om0,mx],[0,[0,Cm0,yr(k0)],[0,[0,jm0,!!A],0]]])}function _2(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Fm0,Cr(A[2])],0];return X(Lm0,k0,D,[0,[0,Rm0,p0(f0)],R0])}function i2(Y){return Y?Ym0:zm0}function Q2(Y){if(!Y)return $2(0);var A=Y[1];if(A[0]===0)return pr(Yh,A[1]);var D=A[1],f0=D[2],k0=D[1];return $2(f0?[0,X(Jm0,k0,0,[0,[0,Km0,p0(f0[1])],0]),0]:0)}function jx(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Qm0,yr(A[3])],0],mx=[0,[0,Hm0,gx(d1,f0)],Q0];return X(x50,R0,D,[0,[0,Zm0,p0(k0)],mx])}function _(Y,A){var D=A[2],f0=D[5],k0=D[4],R0=D[3],Q0=D[2],mx=D[1],Ix=A[1],Rx=Y?r50:e50,nr=[0,[0,t50,gx(yr,k0)],0],zx=[0,[0,n50,gx(yr,R0)],nr],ur=[0,[0,u50,gx(d1,Q0)],zx];return X(Rx,Ix,f0,[0,[0,i50,p0(mx)],ur])}function V(Y,A){var D=A[2],f0=D[7],k0=D[5],R0=D[4],Q0=D[2],mx=D[6],Ix=D[3],Rx=D[1],nr=A[1];if(R0)var zx=R0[1][2],ur=zx[2],kr=zx[1],rr=S1(zx[3],f0),Cx=ur,gr=[0,kr];else var rr=f0,Cx=0,gr=0;if(k0)var Er=k0[1][2],Jr=Er[1],Sr=S1(Er[2],rr),Gr=Sr,k2=pr(U0,Jr);else var Gr=rr,k2=$2(0);var P2=[0,[0,a50,k2],[0,[0,s50,pr(lx,mx)],0]],Dr=[0,[0,o50,gx(As,Cx)],P2],m2=[0,[0,v50,gx(G0,gr)],Dr],r2=[0,[0,l50,gx(d1,Ix)],m2],Ar=Q0[2],wr=Ar[2],f2=Q0[1],Ur=[0,[0,p50,X(_50,f2,wr,[0,[0,w50,pr(ox,Ar[1])],0])],r2];return X(Y,nr,Gr,[0,[0,k50,gx(p0,Rx)],Ur])}function lx(Y){var A=Y[2],D=A[2],f0=Y[1];return X(h50,f0,D,[0,[0,m50,G0(A[1])],0])}function U0(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,d50,gx(As,A[2])],0];return X(g50,f0,0,[0,[0,y50,p0(D)],k0])}function ox(Y){switch(Y[0]){case 0:var A=Y[1],D=A[2],f0=D[6],k0=D[2],R0=D[5],Q0=D[4],mx=D[3],Ix=D[1],Rx=A[1];switch(k0[0]){case 0:var kr=f0,rr=0,Cx=b2(k0[1]);break;case 1:var kr=f0,rr=0,Cx=C1(k0[1]);break;case 2:var kr=f0,rr=0,Cx=q1(k0[1]);break;case 3:var kr=f0,rr=0,Cx=p0(k0[1]);break;case 4:var kr=f0,rr=0,Cx=Fx(k0[1]);break;default:var nr=k0[1][2],zx=nr[1],ur=S1(nr[2],f0),kr=ur,rr=1,Cx=G0(zx)}switch(Ix){case 0:var gr=b50;break;case 1:var gr=T50;break;case 2:var gr=E50;break;default:var gr=S50}var Er=[0,[0,N50,Jx(gr)],[0,[0,I50,!!Q0],[0,[0,P50,!!rr],[0,[0,A50,pr(lx,R0)],0]]]];return X(O50,Rx,kr,[0,[0,C50,Cx],[0,[0,j50,nx(mx)],Er]]);case 1:var Jr=Y[1],Sr=Jr[2],Gr=Sr[7],k2=Sr[6],P2=Sr[2],Dr=Sr[1],m2=Sr[5],r2=Sr[4],Ar=Sr[3],wr=Jr[1];switch(Dr[0]){case 0:var Rr=Gr,d2=0,o2=b2(Dr[1]);break;case 1:var Rr=Gr,d2=0,o2=C1(Dr[1]);break;case 2:var Rr=Gr,d2=0,o2=q1(Dr[1]);break;case 3:var Rr=Gr,d2=0,o2=p0(Dr[1]);break;case 4:var f2=Tx(Y50),Rr=f2[3],d2=f2[2],o2=f2[1];break;default:var Ur=Dr[1][2],Qr=Ur[1],T2=S1(Ur[2],Gr),Rr=T2,d2=1,o2=G0(Qr)}if(typeof P2=="number")if(P2)var c2=0,E2=0;else var c2=1,E2=0;else var c2=0,E2=[0,P2[1]];var pe=c2?[0,[0,z50,!!c2],0]:0,je=k2===0?0:[0,[0,K50,pr(lx,k2)],0],xt=Mx(je,pe),U1=[0,[0,W50,!!d2],[0,[0,G50,!!r2],[0,[0,J50,gx(yt,m2)],0]]],e2=[0,[0,V50,ml(H1,Ar)],U1];return X(H50,wr,Rr,Mx([0,[0,Q50,o2],[0,[0,$50,gx(G0,E2)],e2]],xt));default:var Z1=Y[1],R2=Z1[2],wt=R2[6],O1=R2[2],_t=R2[7],Wt=R2[5],rt=R2[4],et=R2[3],Ox=R2[1],tt=Z1[1];if(typeof O1=="number")if(O1)var xe=0,v1=0;else var xe=1,v1=0;else var xe=0,v1=[0,O1[1]];var Ce=xe?[0,[0,D50,!!xe],0]:0,Oe=wt===0?0:[0,[0,F50,pr(lx,wt)],0],nt=Mx(Oe,Ce),ut=[0,[0,M50,!1],[0,[0,L50,!!rt],[0,[0,R50,gx(yt,Wt)],0]]],it=[0,[0,q50,ml(H1,et)],ut],r1=[0,[0,U50,gx(G0,v1)],it];return X(X50,tt,_t,Mx([0,[0,B50,Fx(Ox)],r1],nt))}}function wx(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[1],R0=Y[1],Q0=A[4],mx=k0[0]===0?p0(k0[1]):b2(k0[1]);if(D)var Ix=[0,[0,fh0,G0(D[1])],0],Rx=X(sh0,R0,0,[0,[0,ch0,dr(f0)],Ix]);else var Rx=dr(f0);return X(lh0,R0,0,[0,[0,vh0,mx],[0,[0,oh0,Rx],[0,[0,ah0,!!Q0],0]]])}function Cr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[4],R0=[0,[0,jh0,!!f0[2]],[0,[0,Nh0,!!f0[3]],0]],Q0=[0,[0,Ch0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,Ah0,wn(wr[2])],0];return X(Ih0,Ur,0,[0,[0,Ph0,p0(f2)],Qr])},f0[1])],R0];return X(Oh0,D,w2(k0),Q0);case 1:var mx=A[1],Ix=mx[4],Rx=[0,[0,Fh0,!!mx[2]],[0,[0,Dh0,!!mx[3]],0]],nr=[0,[0,Rh0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,Th0,C1(wr[2])],0];return X(Sh0,Ur,0,[0,[0,Eh0,p0(f2)],Qr])},mx[1])],Rx];return X(Lh0,D,w2(Ix),nr);case 2:var zx=A[1],ur=zx[1],kr=zx[4],rr=zx[3],Cx=zx[2],gr=ur[0]===0?vs(function(Ar){var wr=Ar[1];return X(bh0,wr,0,[0,[0,_h0,p0(Ar[2][1])],0])},ur[1]):vs(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,yh0,b2(wr[2])],0];return X(wh0,Ur,0,[0,[0,gh0,p0(f2)],Qr])},ur[1]),Er=[0,[0,Uh0,$2(gr)],[0,[0,qh0,!!Cx],[0,[0,Mh0,!!rr],0]]];return X(Bh0,D,w2(kr),Er);case 3:var Jr=A[1],Sr=Jr[3],Gr=[0,[0,Xh0,!!Jr[2]],0],k2=[0,[0,Yh0,pr(function(Ar){var wr=Ar[1];return X(dh0,wr,0,[0,[0,hh0,p0(Ar[2][1])],0])},Jr[1])],Gr];return X(zh0,D,w2(Sr),k2);default:var P2=A[1],Dr=P2[4],m2=[0,[0,Jh0,!!P2[2]],[0,[0,Kh0,!!P2[3]],0]],r2=[0,[0,Gh0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,ph0,q1(wr[2])],0];return X(mh0,Ur,0,[0,[0,kh0,p0(f2)],Qr])},P2[1])],m2];return X(Wh0,D,w2(Dr),r2)}}function Hx(Y){var A=Y[2],D=A[5],f0=A[4],k0=A[2],R0=A[1],Q0=Y[1],mx=[0,[0,Hh0,pr(Zr,A[3])],0],Ix=[0,[0,Zh0,bn(0,f0)],mx],Rx=[0,[0,xd0,gx(d1,k0)],Ix];return X(ed0,Q0,D,[0,[0,rd0,p0(R0)],Rx])}function Zr(Y){var A=Y[2],D=A[1],f0=A[3],k0=A[2],R0=Y[1],Q0=D[0]===0?p0(D[1]):Ea(D[1]);return X(ud0,R0,f0,[0,[0,nd0,Q0],[0,[0,td0,gx(As,k0)],0]])}function dr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[3],R0=f0[1],Q0=[0,[0,id0,ml(H1,f0[2])],0],mx=[0,[0,fd0,pr(H2,R0)],Q0];return X(cd0,D,w2(k0),mx);case 1:var Ix=A[1],Rx=Ix[3],nr=Ix[1],zx=[0,[0,sd0,ml(H1,Ix[2])],0],ur=[0,[0,ad0,pr(Zx,nr)],zx];return X(od0,D,w2(Rx),ur);case 2:return Sx(D,A[1]);default:return G0(A[1])}}function Or(Y){var A=Y[2],D=A[2],f0=A[1],k0=Y[1];if(!D)return dr(f0);var R0=[0,[0,vd0,G0(D[1])],0];return X(pd0,k0,0,[0,[0,ld0,dr(f0)],R0])}function x2(Y){var A=Y[2],D=A[2],f0=Y[1];return X(hd0,f0,D,[0,[0,md0,Qo],[0,[0,kd0,H1(A[1])],0]])}function ux(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[1];if(D){var R0=D[1],Q0=R0[2],mx=Q0[2],Ix=R0[1],Rx=X(yd0,Ix,mx,[0,[0,dd0,dr(Q0[1])],0]),nr=ix([0,Rx,c5(Or,f0)]),zx=k0?[0,x2(k0[1]),nr]:nr;return $2(zx)}var ur=vs(Or,f0),kr=k0?[0,x2(k0[1]),ur]:ur;return $2(kr)}function Lx(Y,A){var D=A[2];return X(wd0,Y,D,[0,[0,gd0,dr(A[1])],0])}function Zx(Y){switch(Y[0]){case 0:var A=Y[1],D=A[2],f0=D[2],k0=D[1],R0=A[1];if(!f0)return dr(k0);var Q0=[0,[0,_d0,G0(f0[1])],0];return X(Td0,R0,0,[0,[0,bd0,dr(k0)],Q0]);case 1:var mx=Y[1];return Lx(mx[1],mx[2]);default:return j1}}function qr(Y){switch(Y[0]){case 0:return j1;case 1:return H1(Y[1]);default:var A=Y[1],D=A[2],f0=A[1];return X(Mw0,f0,0,[0,[0,Lw0,Ta([0,D[1],D[2]])],0])}}function Y2(Y){if(Y[0]===0){var A=Y[1],D=A[2],f0=A[1];switch(D[0]){case 0:var k0=D[3],R0=D[1],rr=0,Cx=k0,gr=0,Er=Ed0,Jr=G0(D[2]),Sr=R0;break;case 1:var Q0=D[2],mx=D[1],rr=0,Cx=0,gr=1,Er=Sd0,Jr=nx([0,Q0[1],Q0[2]]),Sr=mx;break;case 2:var Ix=D[2],Rx=D[3],nr=D[1],rr=Rx,Cx=0,gr=0,Er=Ad0,Jr=nx([0,Ix[1],Ix[2]]),Sr=nr;break;default:var zx=D[2],ur=D[3],kr=D[1],rr=ur,Cx=0,gr=0,Er=Pd0,Jr=nx([0,zx[1],zx[2]]),Sr=kr}switch(Sr[0]){case 0:var m2=rr,r2=0,Ar=b2(Sr[1]);break;case 1:var m2=rr,r2=0,Ar=C1(Sr[1]);break;case 2:var m2=rr,r2=0,Ar=q1(Sr[1]);break;case 3:var m2=rr,r2=0,Ar=p0(Sr[1]);break;case 4:var Gr=Tx(Id0),m2=Gr[3],r2=Gr[2],Ar=Gr[1];break;default:var k2=Sr[1][2],P2=k2[1],Dr=S1(k2[2],rr),m2=Dr,r2=1,Ar=G0(P2)}return X(Rd0,f0,m2,[0,[0,Fd0,Ar],[0,[0,Dd0,Jr],[0,[0,Od0,Jx(Er)],[0,[0,Cd0,!!gr],[0,[0,jd0,!!Cx],[0,[0,Nd0,!!r2],0]]]]]])}var wr=Y[1],f2=wr[2],Ur=f2[2],Qr=wr[1];return X(Md0,Qr,Ur,[0,[0,Ld0,G0(f2[1])],0])}function H2(Y){if(Y[0]!==0){var A=Y[1];return Lx(A[1],A[2])}var D=Y[1],f0=D[2],k0=f0[3],R0=f0[2],Q0=f0[1],mx=f0[4],Ix=D[1];switch(Q0[0]){case 0:var zx=0,ur=0,kr=b2(Q0[1]);break;case 1:var zx=0,ur=0,kr=C1(Q0[1]);break;case 2:var zx=0,ur=0,kr=q1(Q0[1]);break;case 3:var zx=0,ur=0,kr=p0(Q0[1]);break;default:var Rx=Q0[1][2],nr=Rx[2],zx=nr,ur=1,kr=G0(Rx[1])}if(k0)var rr=k0[1],Cx=Yr(R0[1],rr[1]),gr=[0,[0,qd0,G0(rr)],0],Er=X(Bd0,Cx,0,[0,[0,Ud0,dr(R0)],gr]);else var Er=dr(R0);return X(Wd0,Ix,zx,[0,[0,Gd0,kr],[0,[0,Jd0,Er],[0,[0,Kd0,Gc],[0,[0,zd0,!1],[0,[0,Yd0,!!mx],[0,[0,Xd0,!!ur],0]]]]]])}function Kt(Y){var A=Y[2],D=A[2],f0=Y[1];return X($d0,f0,D,[0,[0,Vd0,G0(A[1])],0])}function dt(Y){return Y[0]===0?G0(Y[1]):Kt(Y[1])}function Jt(Y){switch(Y[0]){case 0:return G0(Y[1]);case 1:return Kt(Y[1]);default:return j1}}function C1(Y){var A=Y[2];return X(Zd0,Y[1],A[3],[0,[0,Hd0,A[1]],[0,[0,Qd0,Jx(A[2])],0]])}function q1(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[3],R0=Y[1],Q0=f0?dM(O3,f0[1]):WM(xy0,QM(95,T1(D,0,Nx(D)-1|0)));return X(ny0,R0,k0,[0,[0,ty0,j1],[0,[0,ey0,Jx(Q0)],[0,[0,ry0,Jx(D)],0]]])}function b2(Y){var A=Y[2];return X(fy0,Y[1],A[3],[0,[0,iy0,Jx(A[1])],[0,[0,uy0,Jx(A[2])],0]])}function wn(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D?cy0:sy0;return X(vy0,k0,f0,[0,[0,oy0,!!D],[0,[0,ay0,Jx(R0)],0]])}function _n(Y){return X(wy0,Y[1],Y[2],[0,[0,gy0,j1],[0,[0,yy0,uv],0]])}function bs(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,_y0,pr(G0,A[2])],0];return X(Ty0,k0,D,[0,[0,by0,pr(le,f0)],R0])}function le(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1];return X(Iy0,k0,0,[0,[0,Py0,_s([0,[0,Sy0,Jx(D[1])],[0,[0,Ey0,Jx(D[2])],0]])],[0,[0,Ay0,!!f0],0]])}function Ze(Y){switch(Y){case 0:return Oy0;case 1:return Dy0;default:return Fy0}}function Ts(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Ry0,Jx(Ze(A[2]))],0];return X(My0,k0,D,[0,[0,Ly0,pr(Lv,f0)],R0])}function Lv(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,qy0,gx(G0,A[2])],0];return X(By0,f0,0,[0,[0,Uy0,dr(D)],k0])}function yt(Y){var A=Y[2],D=A[2],f0=Y[1];switch(A[1]){case 0:var k0=Xy0;break;case 1:var k0=Yy0;break;case 2:var k0=zy0;break;case 3:var k0=Ky0;break;case 4:var k0=Jy0;break;default:var k0=Gy0}return X(Vy0,f0,D,[0,[0,Wy0,Jx(k0)],0])}function yr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return X($y0,D,A[1],0);case 1:return X(Qy0,D,A[1],0);case 2:return X(Hy0,D,A[1],0);case 3:return X(Zy0,D,A[1],0);case 4:return X(x90,D,A[1],0);case 5:return X(e90,D,A[1],0);case 6:return X(t90,D,A[1],0);case 7:return X(n90,D,A[1],0);case 8:return X(u90,D,A[2],0);case 9:return X(r90,D,A[1],0);case 10:return X(Dw0,D,A[1],0);case 11:var f0=A[1],k0=f0[2];return X(f90,D,k0,[0,[0,i90,yr(f0[1])],0]);case 12:return Es([0,D,A[1]]);case 13:var R0=A[1],Q0=R0[2],mx=R0[4],Ix=R0[3],Rx=R0[1],nr=S1(w2(Q0[2][3]),mx),zx=Q0[2],ur=zx[2],kr=zx[1],rr=[0,[0,Sm0,gx(d1,Rx)],0],Cx=[0,[0,Am0,Pa(Ix)],rr],gr=[0,[0,Pm0,gx(Mr,ur)],Cx];return X(Nm0,D,nr,[0,[0,Im0,sr(kr)],gr]);case 14:return bn(1,[0,D,A[1]]);case 15:var Er=A[1],Jr=Er[3],Sr=Er[2],Gr=[0,[0,wg0,bn(0,Er[1])],0];return X(bg0,D,Jr,[0,[0,_g0,pr(Zr,Sr)],Gr]);case 16:var k2=A[1],P2=k2[2];return X(Eg0,D,P2,[0,[0,Tg0,yr(k2[1])],0]);case 17:var Dr=A[1],m2=Dr[5],r2=Dr[3],Ar=Dr[2],wr=Dr[1],f2=[0,[0,Sg0,yr(Dr[4])],0],Ur=[0,[0,Ag0,yr(r2)],f2],Qr=[0,[0,Pg0,yr(Ar)],Ur];return X(Ng0,D,m2,[0,[0,Ig0,yr(wr)],Qr]);case 18:var T2=A[1],Rr=T2[2];return X(Cg0,D,Rr,[0,[0,jg0,Ia(T2[1])],0]);case 19:return ko([0,D,A[1]]);case 20:var d2=A[1],o2=d2[3];return X(Bg0,D,o2,Sa(d2));case 21:var c2=A[1],E2=c2[1],pe=E2[3],je=[0,[0,Xg0,!!c2[2]],0];return X(Yg0,D,pe,Mx(Sa(E2),je));case 22:var xt=A[1],U1=xt[1],e2=xt[2];return X(Kg0,D,e2,[0,[0,zg0,pr(yr,[0,U1[1],[0,U1[2],U1[3]]])],0]);case 23:var Z1=A[1],R2=Z1[1],wt=Z1[2];return X(Gg0,D,wt,[0,[0,Jg0,pr(yr,[0,R2[1],[0,R2[2],R2[3]]])],0]);case 24:var O1=A[1],_t=O1[2],Wt=O1[3],rt=O1[1],et=_t?[0,[0,Wg0,As(_t[1])],0]:0;return X($g0,D,Wt,[0,[0,Vg0,Aa(rt)],et]);case 25:var Ox=A[1],tt=Ox[2];return X(rw0,D,tt,[0,[0,xw0,yr(Ox[1])],0]);case 26:return mo(D,A[1]);case 27:var xe=A[1];return Ss(D,xe[2],cw0,xe[1]);case 28:var v1=A[1],Ce=v1[3],Oe=[0,[0,sw0,!!v1[2]],0];return X(ow0,D,Ce,[0,[0,aw0,pr(function(Vt){var D1=Vt[2],Tn=Vt[1];switch(D1[0]){case 0:return yr(D1[1]);case 1:var ke=D1[1],De=ke[2],$t=ke[1],Ns=[0,[0,vw0,!!ke[4]],0],En=[0,[0,lw0,gx(yt,ke[3])],Ns],js=[0,[0,pw0,yr(De)],En];return X(mw0,Tn,0,[0,[0,kw0,p0($t)],js]);default:var re=D1[1],Et=re[1],Cs=[0,[0,hw0,yr(re[2])],0];return X(yw0,Tn,0,[0,[0,dw0,gx(p0,Et)],Cs])}},v1[1])],Oe]);case 29:var nt=A[1];return X(_w0,D,nt[3],[0,[0,ww0,Jx(nt[1])],[0,[0,gw0,Jx(nt[2])],0]]);case 30:var ut=A[1];return X(Ew0,D,ut[3],[0,[0,Tw0,ut[1]],[0,[0,bw0,Jx(ut[2])],0]]);case 31:var it=A[1];return X(Pw0,D,it[3],[0,[0,Aw0,j1],[0,[0,Sw0,Jx(it[2])],0]]);case 32:var r1=A[1],bt=r1[1],Tt=r1[2],Is=0,ft=bt?Iw0:Nw0;return X(Ow0,D,Tt,[0,[0,Cw0,!!bt],[0,[0,jw0,Jx(ft)],Is]]);case 33:return X(c90,D,A[1],0);case 34:return X(s90,D,A[1],0);default:return X(a90,D,A[1],0)}}function Ta(Y){var A=Y[2],D=A[2],f0=A[3],k0=D[2],R0=D[1],Q0=Y[1];switch(A[1]){case 0:var mx=j1;break;case 1:var mx=b3;break;default:var mx=m3}var Ix=[0,[0,v90,gx(yr,k0)],[0,[0,o90,mx],0]],Rx=[0,[0,l90,p0(R0)],Ix];return X(p90,Q0,w2(f0),Rx)}function Es(Y){var A=Y[2],D=A[5],f0=A[3],k0=A[2][2],R0=A[4],Q0=k0[3],mx=k0[2],Ix=k0[1],Rx=A[1],nr=Y[1],zx=S1(w2(k0[4]),R0),ur=D===0?k90:m90,kr=D===0?0:[0,[0,h90,gx(qv,Ix)],0],rr=[0,[0,d90,gx(d1,Rx)],0],Cx=[0,[0,y90,gx(Mv,Q0)],rr],gr=f0[0]===0?yr(f0[1]):Ta(f0[1]);return X(ur,nr,zx,Mx([0,[0,w90,pr(function(Er){return gt(0,Er)},mx)],[0,[0,g90,gr],Cx]],kr))}function gt(Y,A){var D=A[2],f0=D[1],k0=A[1],R0=[0,[0,_90,!!D[3]],0],Q0=[0,[0,b90,yr(D[2])],R0];return X(E90,k0,Y,[0,[0,T90,gx(p0,f0)],Q0])}function Mv(Y){var A=Y[2];return gt(A[2],A[1])}function qv(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,A90,yr(A[1][2])],[0,[0,S90,!1],0]];return X(I90,f0,D,[0,[0,P90,gx(p0,0)],k0])}function bn(Y,A){var D=A[2],f0=D[4],k0=D[2],R0=D[1],Q0=A[1],mx=m1(function(gr,Er){var Jr=gr[4],Sr=gr[3],Gr=gr[2],k2=gr[1];switch(Er[0]){case 0:var P2=Er[1],Dr=P2[2],m2=Dr[2],r2=Dr[1],Ar=Dr[8],wr=Dr[7],f2=Dr[6],Ur=Dr[5],Qr=Dr[4],T2=Dr[3],Rr=P2[1];switch(r2[0]){case 0:var d2=b2(r2[1]);break;case 1:var d2=C1(r2[1]);break;case 2:var d2=q1(r2[1]);break;case 3:var d2=p0(r2[1]);break;case 4:var d2=Tx(M90);break;default:var d2=Tx(q90)}switch(m2[0]){case 0:var E2=U90,pe=yr(m2[1]);break;case 1:var o2=m2[1],E2=B90,pe=Es([0,o2[1],o2[2]]);break;default:var c2=m2[1],E2=X90,pe=Es([0,c2[1],c2[2]])}return[0,[0,X(Q90,Rr,Ar,[0,[0,$90,d2],[0,[0,V90,pe],[0,[0,W90,!!f2],[0,[0,G90,!!T2],[0,[0,J90,!!Qr],[0,[0,K90,!!Ur],[0,[0,z90,gx(yt,wr)],[0,[0,Y90,Jx(E2)],0]]]]]]]]),k2],Gr,Sr,Jr];case 1:var je=Er[1],xt=je[2],U1=xt[2],e2=je[1];return[0,[0,X(Z90,e2,U1,[0,[0,H90,yr(xt[1])],0]),k2],Gr,Sr,Jr];case 2:var Z1=Er[1],R2=Z1[2],wt=R2[6],O1=R2[4],_t=R2[3],Wt=R2[2],rt=R2[1],et=Z1[1],Ox=[0,[0,rg0,!!O1],[0,[0,xg0,gx(yt,R2[5])],0]],tt=[0,[0,eg0,yr(_t)],Ox],xe=[0,[0,tg0,yr(Wt)],tt];return[0,k2,[0,X(ug0,et,wt,[0,[0,ng0,gx(p0,rt)],xe]),Gr],Sr,Jr];case 3:var v1=Er[1],Ce=v1[2],Oe=Ce[3],nt=v1[1],ut=[0,[0,ig0,!!Ce[2]],0];return[0,k2,Gr,[0,X(cg0,nt,Oe,[0,[0,fg0,Es(Ce[1])],ut]),Sr],Jr];case 4:var it=Er[1],r1=it[2],bt=r1[6],Tt=r1[5],Is=r1[4],ft=r1[3],Vt=r1[1],D1=it[1],Tn=[0,[0,dg0,!!ft],[0,[0,hg0,!!Is],[0,[0,mg0,!!Tt],[0,[0,kg0,yr(r1[2])],0]]]];return[0,k2,Gr,Sr,[0,X(gg0,D1,bt,[0,[0,yg0,p0(Vt)],Tn]),Jr]];default:var ke=Er[1],De=ke[2],$t=De[6],Ns=De[4],En=De[3],js=De[2],re=De[1],Et=ke[1],Cs=0;switch(De[5]){case 0:var Sn="PlusOptional";break;case 1:var Sn="MinusOptional";break;case 2:var Sn="Optional";break;default:var Sn=j1}var Fe=[0,[0,ag0,gx(yt,Ns)],[0,[0,sg0,Sn],Cs]],Os=[0,[0,og0,yr(En)],Fe],Ds=[0,[0,vg0,yr(js)],Os];return[0,[0,X(pg0,Et,$t,[0,[0,lg0,Ia(re)],Ds]),k2],Gr,Sr,Jr]}},N90,D[3]),Ix=mx[3],Rx=mx[2],nr=mx[1],zx=[0,[0,j90,$2(ix(mx[4]))],0],ur=[0,[0,C90,$2(ix(Ix))],zx],kr=[0,[0,O90,$2(ix(Rx))],ur],rr=[0,[0,F90,!!R0],[0,[0,D90,$2(ix(nr))],kr]],Cx=Y?[0,[0,R90,!!k0],rr]:rr;return X(L90,Q0,w2(f0),Cx)}function Ea(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D[0]===0?p0(D[1]):Ea(D[1]);return X(Fg0,k0,0,[0,[0,Dg0,R0],[0,[0,Og0,p0(f0)],0]])}function ko(Y){var A=Y[2],D=A[1],f0=A[3],k0=A[2],R0=Y[1],Q0=D[0]===0?p0(D[1]):Ea(D[1]);return X(Mg0,R0,f0,[0,[0,Lg0,Q0],[0,[0,Rg0,gx(As,k0)],0]])}function Sa(Y){var A=Y[1],D=[0,[0,qg0,yr(Y[2])],0];return[0,[0,Ug0,yr(A)],D]}function Aa(Y){if(Y[0]===0)return p0(Y[1]);var A=Y[1],D=A[2],f0=D[2],k0=A[1],R0=Aa(D[1]);return X(Zg0,k0,0,[0,[0,Hg0,R0],[0,[0,Qg0,p0(f0)],0]])}function Pa(Y){return Y[0]===0?j1:mo(Y[1],Y[2])}function mo(Y,A){var D=A[3],f0=A[2];switch(A[4]){case 0:var k0=ew0;break;case 1:var k0=tw0;break;default:var k0=nw0}return Ss(Y,D,k0,f0)}function Ss(Y,A,D,f0){return X(fw0,Y,A,[0,[0,iw0,Jx(D)],[0,[0,uw0,yr(f0)],0]])}function H1(Y){var A=Y[1];return X(Rw0,A,0,[0,[0,Fw0,yr(Y[2])],0])}function d1(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,qw0,pr(Ia,A[1])],0];return X(Uw0,f0,w2(D),k0)}function Ia(Y){var A=Y[2],D=A[1][2],f0=A[5],k0=A[4],R0=A[2],Q0=D[2],mx=D[1],Ix=Y[1],Rx=A[3]?[0,[0,Bw0,!0],0]:0,nr=[0,[0,Xw0,gx(yr,f0)],0],zx=[0,[0,Yw0,gx(yt,k0)],nr];return X(Jw0,Ix,Q0,Mx([0,[0,Kw0,Jx(mx)],[0,[0,zw0,ml(H1,R0)],zx]],Rx))}function As(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,Gw0,pr(yr,A[1])],0];return X(Ww0,f0,w2(D),k0)}function Gt(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,Vw0,pr(Uv,A[1])],0];return X($w0,f0,w2(D),k0)}function Uv(Y){if(Y[0]===0)return yr(Y[1]);var A=Y[1],D=A[1],f0=A[2][1];return ko([0,D,[0,[0,mn(0,[0,D,Qw0])],0,f0]])}function ho(Y){var A=Y[2],D=A[1],f0=A[4],k0=A[2],R0=Y[1],Q0=[0,[0,Hw0,pr(Na,A[3][2])],0],mx=[0,[0,Zw0,gx(dl,k0)],Q0],Ix=D[2],Rx=Ix[2],nr=Ix[4],zx=Ix[3],ur=Ix[1],kr=D[1],rr=Rx?[0,[0,i_0,Gt(Rx[1])],0]:0,Cx=[0,[0,c_0,pr(Xv,nr)],[0,[0,f_0,!!zx],0]];return X(r_0,R0,f0,[0,[0,x_0,X(a_0,kr,0,Mx([0,[0,s_0,yo(ur)],Cx],rr))],mx])}function Bv(Y){var A=Y[2],D=A[4],f0=A[3][2],k0=A[1],R0=Y[1],Q0=[0,[0,e_0,X(p_0,A[2],0,0)],0],mx=[0,[0,t_0,pr(Na,f0)],Q0];return X(u_0,R0,D,[0,[0,n_0,X(o_0,k0,0,0)],mx])}function Xv(Y){if(Y[0]===0){var A=Y[1],D=A[2],f0=D[1],k0=D[2],R0=A[1],Q0=f0[0]===0?Ps(f0[1]):yl(f0[1]);return X(h_0,R0,0,[0,[0,m_0,Q0],[0,[0,k_0,gx(go,k0)],0]])}var mx=Y[1],Ix=mx[2],Rx=Ix[2],nr=mx[1];return X(y_0,nr,Rx,[0,[0,d_0,G0(Ix[1])],0])}function dl(Y){var A=Y[1];return X(l_0,A,0,[0,[0,v_0,yo(Y[2][1])],0])}function Na(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return ho([0,D,A[1]]);case 1:return Bv([0,D,A[1]]);case 2:return ja([0,D,A[1]]);case 3:var f0=A[1],k0=f0[2];return X(T_0,D,k0,[0,[0,b_0,G0(f0[1])],0]);default:var R0=A[1];return X(A_0,D,0,[0,[0,S_0,Jx(R0[1])],[0,[0,E_0,Jx(R0[2])],0]])}}function yo(Y){switch(Y[0]){case 0:return Ps(Y[1]);case 1:return yl(Y[1]);default:return Ca(Y[1])}}function go(Y){if(Y[0]===0){var A=Y[1];return b2([0,A[1],A[2]])}var D=Y[1];return ja([0,D[1],D[2]])}function ja(Y){var A=Y[2],D=A[1],f0=Y[1],k0=A[2],R0=D?G0(D[1]):X(g_0,[0,f0[1],[0,f0[2][1],f0[2][2]+1|0],[0,f0[3][1],f0[3][2]-1|0]],0,0);return X(__0,f0,w2(k0),[0,[0,w_0,R0],0])}function Ca(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D[0]===0?Ps(D[1]):Ca(D[1]);return X(N_0,k0,0,[0,[0,I_0,R0],[0,[0,P_0,Ps(f0)],0]])}function yl(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,j_0,Ps(A[2])],0];return X(O_0,f0,0,[0,[0,C_0,Ps(D)],k0])}function Ps(Y){var A=Y[2];return X(F_0,Y[1],A[2],[0,[0,D_0,Jx(A[1])],0])}function Yh(Y){var A=Y[2],D=A[2],f0=A[1],k0=Y[1],R0=p0(D?D[1]:f0);return X(M_0,k0,0,[0,[0,L_0,p0(f0)],[0,[0,R_0,R0],0]])}function wo(Y){return pr(T4,Y)}function T4(Y){var A=Y[2],D=Y[1];if(A[1])var f0=A[2],k0=G_0;else var f0=A[2],k0=W_0;return X(k0,D,0,[0,[0,V_0,Jx(f0)],0])}function _o(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1];if(D)var R0=[0,[0,$_0,G0(D[1])],0],Q0=Q_0;else var R0=0,Q0=H_0;return X(Q0,k0,f0,R0)}function gl(Y){var A=Y[2],D=Y[1],f0=[0,[0,Z_0,bx(Y[3])],0],k0=[0,[0,xb0,gx(Gt,A)],f0];return[0,[0,rb0,G0(D)],k0]}function E4(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=0,k0=p0(A[1]);break;case 1:var f0=0,k0=Fx(A[1]);break;default:var f0=1,k0=G0(A[1])}return[0,[0,nb0,G0(D)],[0,[0,tb0,k0],[0,[0,eb0,!!f0],0]]]}var bo=T0[2],S4=bo[2],zh=bo[4],Kh=bo[3],Jh=T0[1],Gh=Gx(bo[1]),A4=[0,[0,c60,Gh],[0,[0,f60,wo(zh)],0]];if(S4)var P4=S4[1],I4=Mx(A4,[0,[0,o60,X(a60,P4[1],0,[0,[0,s60,Jx(P4[2])],0])],0]);else var I4=A4;var wl=X(v60,Jh,Kh,I4);return wl.errors=pr(function(Y){var A=Y[1],D=[0,[0,ub0,Jx(mE0(Y[2]))],0];return _s([0,[0,ib0,KY(A)],D])},Mx(s0,YY[1])),T&&(wl[JO]=$2(c5(function(Y){var A=Y[2],D=Y[1],f0=Y[3],k0=[0,[0,so0,Jx(zj(A))],0],R0=[0,oh(U,D[3]),0],Q0=[0,[0,ao0,$2([0,oh(U,D[2]),R0])],k0],mx=[0,[0,lo0,_s([0,[0,vo0,D[3][1]],[0,[0,oo0,D[3][2]],0]])],0],Ix=[0,[0,ho0,_s([0,[0,mo0,_s([0,[0,ko0,D[2][1]],[0,[0,po0,D[2][2]],0]])],mx])],Q0];switch(f0){case 0:var Rx=do0;break;case 1:var Rx=yo0;break;case 2:var Rx=go0;break;case 3:var Rx=wo0;break;case 4:var Rx=_o0;break;default:var Rx=bo0}return _s([0,[0,Eo0,Jx(PU(A))],[0,[0,To0,Jx(Rx)],Ix]])},F[1]))),wl}if(typeof fO<"u")var JY=fO;else{var GY={};ba.flow=GY;var JY=GY}JY.parse=Hz(function(x,r){try{var e=bE0(x,r);return e}catch(u){var t=U2(u);return t[1]===rO?XY(t[2]):XY(new wE0(Jx(qx(bb0,B6(t)))))}}),$N(O)})(globalThis)});var vS0={};QY(vS0,{parsers:()=>lO});var lO={};QY(lO,{flow:()=>oS0});var hz=LE0(ZY(),1);function qE0(o0,vx){let $x=new SyntaxError(o0+" ("+vx.loc.start.line+":"+vx.loc.start.column+")");return Object.assign($x,vx)}var xz=qE0;var UE0=(o0,vx,$x)=>{if(!(o0&&vx==null))return Array.isArray(vx)||typeof vx=="string"?vx[$x<0?vx.length+$x:$x]:vx.at($x)},cO=UE0;function BE0(o0){return Array.isArray(o0)&&o0.length>0}var rz=BE0;function Ht(o0){var Pr,lr,Ir;let vx=((Pr=o0.range)==null?void 0:Pr[0])??o0.start,$x=(Ir=((lr=o0.declaration)==null?void 0:lr.decorators)??o0.decorators)==null?void 0:Ir[0];return $x?Math.min(Ht($x),vx):vx}function La(o0){var vx;return((vx=o0.range)==null?void 0:vx[1])??o0.end}function XE0(o0){let vx=new Set(o0);return $x=>vx.has($x==null?void 0:$x.type)}var ez=XE0;var YE0=ez(["Block","CommentBlock","MultiLine"]),C4=YE0;function zE0(o0){let vx=`*${o0.value}*`.split(` +`);return vx.length>1&&vx.every($x=>$x.trimStart()[0]==="*")}var sO=zE0;function KE0(o0){return C4(o0)&&o0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(o0.value)}var tz=KE0;var O4=null;function D4(o0){if(O4!==null&&typeof O4.property){let vx=O4;return O4=D4.prototype=null,vx}return O4=D4.prototype=o0??Object.create(null),new D4}var JE0=10;for(let o0=0;o0<=JE0;o0++)D4();function aO(o0){return D4(o0)}function GE0(o0,vx="type"){aO(o0);function $x(Pr){let lr=Pr[vx],Ir=o0[lr];if(!Array.isArray(Ir))throw Object.assign(new Error(`Missing visitor keys for '${lr}'.`),{node:Pr});return Ir}return $x}var nz=GE0;var uz={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var WE0=nz(uz),iz=WE0;function oO(o0,vx){if(!(o0!==null&&typeof o0=="object"))return o0;if(Array.isArray(o0)){for(let Pr=0;Pr{var L2;(L2=Ir.leadingComments)!=null&&L2.some(tz)&&lr.add(Ht(Ir))}),o0=nd(o0,Ir=>{if(Ir.type==="ParenthesizedExpression"){let{expression:L2}=Ir;if(L2.type==="TypeCastExpression")return L2.range=[...Ir.range],L2;let ne=Ht(Ir);if(!lr.has(ne))return L2.extra={...L2.extra,parenthesized:!0},L2}})}if(o0=nd(o0,lr=>{switch(lr.type){case"LogicalExpression":if(fz(lr))return vO(lr);break;case"VariableDeclaration":{let Ir=cO(!1,lr.declarations,-1);Ir!=null&&Ir.init&&Pr[La(Ir)]!==";"&&(lr.range=[Ht(lr),La(Ir)]);break}case"TSParenthesizedType":return lr.typeAnnotation;case"TSTypeParameter":if(typeof lr.name=="string"){let Ir=Ht(lr);lr.name={type:"Identifier",name:lr.name,range:[Ir,Ir+lr.name.length]}}break;case"TopicReference":o0.extra={...o0.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(lr.types.length===1)return lr.types[0];break}}),rz(o0.comments)){let lr=cO(!1,o0.comments,-1);for(let Ir=o0.comments.length-2;Ir>=0;Ir--){let L2=o0.comments[Ir];La(L2)===Ht(lr)&&C4(L2)&&C4(lr)&&sO(L2)&&sO(lr)&&(o0.comments.splice(Ir+1,1),L2.value+="*//*"+lr.value,L2.range=[Ht(L2),La(lr)]),lr=L2}}return o0.type==="Program"&&(o0.range=[0,Pr.length]),o0}function fz(o0){return o0.type==="LogicalExpression"&&o0.right.type==="LogicalExpression"&&o0.operator===o0.right.operator}function vO(o0){return fz(o0)?vO({type:"LogicalExpression",operator:o0.operator,left:vO({type:"LogicalExpression",operator:o0.operator,left:o0.left,right:o0.right.left,range:[Ht(o0.left),La(o0.right.left)]}),right:o0.right.right,range:[Ht(o0),La(o0)]}):o0}var cz=VE0;var $E0=(o0,vx,$x,Pr)=>{if(!(o0&&vx==null))return vx.replaceAll?vx.replaceAll($x,Pr):$x.global?vx.replace($x,Pr):vx.split($x).join(Pr)},Dl=$E0;var QE0=/\*\/$/,HE0=/^\/\*\*?/,ZE0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,xS0=/(^|\s+)\/\/([^\n\r]*)/g,sz=/^(\r?\n)+/,rS0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,az=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,eS0=/(\r?\n|^) *\* ?/g,tS0=[];function oz(o0){let vx=o0.match(ZE0);return vx?vx[0].trimStart():""}function vz(o0){let vx=` +`;o0=Dl(!1,o0.replace(HE0,"").replace(QE0,""),eS0,"$1");let $x="";for(;$x!==o0;)$x=o0,o0=Dl(!1,o0,rS0,`${vx}$1 $2${vx}`);o0=o0.replace(sz,"").trimEnd();let Pr=Object.create(null),lr=Dl(!1,o0,az,"").replace(sz,"").trimEnd(),Ir;for(;Ir=az.exec(o0);){let L2=Dl(!1,Ir[2],xS0,"");if(typeof Pr[Ir[1]]=="string"||Array.isArray(Pr[Ir[1]])){let ne=Pr[Ir[1]];Pr[Ir[1]]=[...tS0,...Array.isArray(ne)?ne:[ne],L2]}else Pr[Ir[1]]=L2}return{comments:lr,pragmas:Pr}}function nS0(o0){if(!o0.startsWith("#!"))return"";let vx=o0.indexOf(` +`);return vx===-1?o0:o0.slice(0,vx)}var lz=nS0;function uS0(o0){let vx=lz(o0);vx&&(o0=o0.slice(vx.length+1));let $x=oz(o0),{pragmas:Pr,comments:lr}=vz($x);return{shebang:vx,text:o0,pragmas:Pr,comments:lr}}function pz(o0){let{pragmas:vx}=uS0(o0);return Object.prototype.hasOwnProperty.call(vx,"prettier")||Object.prototype.hasOwnProperty.call(vx,"format")}function iS0(o0){return o0=typeof o0=="function"?{parse:o0}:o0,{astFormat:"estree",hasPragma:pz,locStart:Ht,locEnd:La,...o0}}var kz=iS0;function fS0(o0){return o0.charAt(0)==="#"&&o0.charAt(1)==="!"?"//"+o0.slice(2):o0}var mz=fS0;var cS0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function sS0(o0){let{message:vx,loc:{start:$x,end:Pr}}=o0;return xz(vx,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:Pr.line,column:Pr.column+1}},cause:o0})}function aS0(o0){let vx=hz.default.parse(mz(o0),cS0),[$x]=vx.errors;if($x)throw sS0($x);return cz(vx,{text:o0})}var oS0=kz(aS0);return ME0(vS0);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/flow.mjs b/node_modules/prettier/plugins/flow.mjs index 1a7073fc..96fd837b 100644 --- a/node_modules/prettier/plugins/flow.mjs +++ b/node_modules/prettier/plugins/flow.mjs @@ -1,19 +1,19 @@ -var qI0=Object.create;var SD=Object.defineProperty;var BI0=Object.getOwnPropertyDescriptor;var XI0=Object.getOwnPropertyNames;var JI0=Object.getPrototypeOf,KI0=Object.prototype.hasOwnProperty;var YI0=(a0,ox)=>()=>(ox||a0((ox={exports:{}}).exports,ox),ox.exports),LK=(a0,ox)=>{for(var $x in ox)SD(a0,$x,{get:ox[$x],enumerable:!0})},zI0=(a0,ox,$x,dr)=>{if(ox&&typeof ox=="object"||typeof ox=="function")for(let nr of XI0(ox))!KI0.call(a0,nr)&&nr!==$x&&SD(a0,nr,{get:()=>ox[nr],enumerable:!(dr=BI0(ox,nr))||dr.enumerable});return a0};var VI0=(a0,ox,$x)=>($x=a0!=null?qI0(JI0(a0)):{},zI0(ox||!a0||!a0.__esModule?SD($x,"default",{value:a0,enumerable:!0}):$x,a0));var MK=YI0(AD=>{(function(a0){typeof globalThis!="object"&&(this?ox():(a0.defineProperty(a0.prototype,"_T_",{configurable:!0,get:ox}),_T_));function ox(){var $x=this||self;$x.globalThis=$x,delete a0.prototype._T_}})(Object);(function(a0){"use strict";var ox="symbol",$x=126548,dr="renders",nr=71127,Er="member_property",Mr=65007,Qe=66517,dn="jsx_attribute_value_expression",p5=119980,yn="function_declaration",ht="<2>",k5=68466,RD="%=",m5="??",h5=70080,Mp="&",dt="identifier",Up=72163,d5=71723,y5="properties",g5=183969,_5=68223,gn="function_return_annotation",b5=124903,w5=70106,FD=241,LD="(",MD=213,T5=120074,E5=70708,S5=71679,_n="logical",e1="camlinternalFormat.ml",bn="type_guard_annotation",A5=92975,UD=">>>",I5="RestElement",j5=67897,qD=179,P5="start",N5=113775,qp=126521,BD="%i",M3="`",XD="#",O5=43702,Bp=126,C5=110947,wn="function_identifier",Xp=119893,D5=70366,R5=65547,F5=43743,L5=-43,ro=8238,ov="implies",JD=",",eo=8286,Tn="keyof_type",M5=66717,Jp=12336,KD=201,U5=71338,Kp=11565,q5=69289,B5=55291,X5=73030,J5=70479,K5=69572,Y5=11623,En="tuple_spread_element",Sn="component_type_rest_param",to=8239,z5=64310,vv="@]",V5=42993,Yp=11558,zp="Map.bal",U3="public",YD=-32,lv="Literal",An="jsx_member_expression_identifier",In="for_in_assignment_pattern",G5=71450,Vp=126557,Ze=103,W5=12292,$5=110579,Gp=120597,H5=13311,Q5=12348,jn="export_default_declaration_decl",Pn="tuple_type",Z5=113663,Wp=170,xy=67413,zD="Assert_failure",VD="comments",q3="%S",Ut=127343600,ry=12341,ey=67646,GD="ENOTEMPTY",ty=72160,ny=70187,WD=222,uy=12343,$D=2147483647,iy=126624,fy=43442,cy=70312,sy=281,Nn="interface_type",no="new",ay=66256,$p=68296,oy=124908,Hp=126579,Qp=70107,vy=249,ly=71167,On="union_type",x2=248,py=126546,Cn="enum_bigint_member",HD=133,ky=67871,my=66955,QD=1027,Dn="class_declaration",Rn="optional_call",ZD="a string",Zp=11703,xR="<<",x4=126564,Fn="jsx_element",Ln="object_property_type",hy=94207,Mn="enum_declaration",dy=68023,yy=67669,gy=8318,rR="prefix",uo="this",_y=126578,Un="if_consequent_statement",eR=-696510241,by=66963,io="default",r4=72967,yt=101,tR="buffer.ml",wy=74649,qt=65535,Ty=43709,nR=175,ta="component",uR="===",B3=117,qn="jsx_identifier",iR="EnumDefaultedMember",e4=70006,Ey=70161,Sy=126633,Ay=66965,Bn="member_property_expression",Iy=101589,jy=64274,pv="function",Py=66303,Ny=42954,Oy=126529,Cy=72191,Xn="new_",Dy=64433,t4=126559,Ry=72144,fR="==",na=-744106340,Fy=43359,Ly=171,cR="Printexc.handle_uncaught_exception",My=66735,Uy=126534,qy=74879,By=42785,n4=120629,X3="0o",sR="End_of_file",Xy=66175,aR="&=",Jy="nan",u4=126503,Jn="pattern_number_literal",Ky=43470,Kn="import_namespace_specifier",Yy=77711,i4=70302,Yn="component_param",f4="@])",c4=126515,kv=118,_e="continue",zy=43798,Vy=";@ ",Gy=74751,Wy="src/parser/statement_parser.ml",$y="rmdir",Hy=94177,zn="for_in_statement",oR=12520,vR="TypeParameterInstantiation",H0="",lR="**=",Qy=120126,pR=197,Zy=67829,s4="_bigarr02",Vn="export_named_declaration_specifier",a4=": No such file or directory",Gn="render_type",o4=64319,x9=69926,Wn="pattern_object_p",kR="TypeAnnotation",$n="array_type",mR=290,J3="@[%s =@ ",r9=72847,Hn="export_default_declaration",v4=126590,e9=42774,t9=": Not a directory",mv="let",fo=12288,ne="argument",hR=1552,G1="/",l4="an identifier",ss="typeof",p4=68116,n9=182,Qn="declare_export_declaration_decl",u9=67589,i9=66771,K3="class",dR="tokens",k4=70281,m4=255,f9=43638,co="key",c9=69955,yR=">>",Zn="function_expression_or_method",s9=43587,Bt="block",a9=100351,h4="mixed",o9=66503,v9="ENOTDIR",l9=65135,x7="string_literal",be="@ ",p9=43334,r7="if_alternate_statement",k9=70448,d4=8485,e7="type_args",m9=69864,t7="if_statement",gR="+=",n7="typeof_identifier",y4="with",g4=65595,h9=64286,d9=71086,as="true",y9=69423,u7="catch_clause",g9="e",hv="asserts",_R=">>=",_4=131,_9=43388,b9=43887,B2=-48,w9=120779,bR=190,T9=194,i7="pattern_bigint_literal",E9=71351,S9=65629,f7="call",A9=-42,b4=126553,I9=43695,wR=177,j9=42124,P9=12703,N9=12442,O9=11718,w4=70449,T4=126547,C9=67462,os="left",c7="infer_type",D9=11742,R9=65597,E4="Unix.Unix_error",F9=122623,L9=124911,M9=72959,TR="inexact",U9="opaque",s7="object_internal_slot_property_type",ER="Enum `",so=65279,q9=71983,B9=12329,j2=110,a7="spread_property",SR="importKind",Y3=" =",o7="remote_identifier",v7="labeled_statement",l7="jsx_fragment",X9=120770,p7="function_param",ue=112,J9="exportKind",k7="binary",vs="`.",K9=42511,AR="<=",m7="jsx_spread_attribute",R1="import",h7="typeof_member_identifier",Y9=69414,z9=19967,S4=11687,V9=93823,IR=67714067,jR=209,G9=71903,PR=291,W9="of",$9=72e3,A4="typeArguments",d7="type_identifier",y7="pattern_array_element_pattern",I4=69744,dv=192,g7="class_element",_7="export_source",b7="component_param_pattern",H9=42508,Q9=125124,NR="Unexpected token `",w7="for_in_left_declaration",T7="object_call_property_type",Z9="abstract",xg=8584,rg=68786,eg=71999,j4=123214,tg=123565,P4=186,E7="class_implements_interface",N4=126536,ng=69749,OR="Invalid legacy octal ",ug=71295,ig=66927,S7="pattern_expression",fg=11679,cg=-61,O4=65141,sg=11694,A7="update_expression",CR="minus",we="debugger",ag=71352,og=65470,yv="number",vg=123627,C4=64322,D4=43471,I7="for_of_assignment_pattern",R4=126589,lg=43784,DR="Internal Error: Found object private prop",pg=183983,Hr="id",kg=123190,F4="finally",L4=120070,mg=72095,j7="as_expression",P7="syntax",hg=110591,ls="false",RR=-10,M4="AssignmentPattern",N7="typeof_expression",dg=43764,FR="FunctionTypeParam",O7="function_body_any",yg=126627,gg=71998,_g=126543,C7="call_type_arg",bg=64316,U4=64285,wg=8454,LR=137,MR="**",D7="object_type_property_setter",Tg=68607,R7=108,Eg="out",Sg=68799,ao=65278,F7="jsx_member_expression",Ag=92728,oo="null",Ig=66431,jg=72249,Xt=128,q4=119994,Pg=66207,Ng=43583,B4="else",X4=94179,J4=11735,Og=64911,L7="jsx_attribute_name_namespaced",UR="!",Cg=42539,Dg=72250,Rg=71215,Fg=69746,Lg=65487,M7="pattern_object_property_key",qR=", ",Mg=8505,Ug="=",qg=64111,Bg=8507,K4=120134,Y4="while",Xg=120596,Jg=43002,z3="protected",Kg=68479,Yg=43395,zg=68252,BR="v",Vg=70278,Gg="rendersType",Wg=70853,z4=120145,$g=69297,Hg=73112,V4=8488,Qg=68351,Zg=42655,U7="for_of_left_declaration",x_=44031,r_="Failure",e_=92159,q7="object_key_identifier",XR=195,vo="bigint",B7="import_default_specifier",gv=256,X7="member",JR="!==",J7="component_identifier",t_=73008,n_=72283,G4=126500,W4=120127,K7="jsx_attribute_name",Y7="for_statement_init",u_=67711,z7="private_name",$4="case",H4=8489,V7="import_specifier",i_=64279,f_=94098,c_=119974,G7="pattern_string_literal",s_=72969,KR=193,YR="!=",Q4=126520,a_=71944,o_=259,v_=42191,W7="generic_qualified_identifier_type",lo="implements",l_=194559,zR="%",V3="hasUnknownMembers",p_=71039,k_=211,m_=83526,$7="init",H7="jsx_attribute_value",h_=70271,po=240,Q7="function_type_return_annotation",d_=70018,y_="rest",Z7="readonly_type",g_=512,__=68095,b_=120003,Z4=126563,xk=71236,w_=69375,T_=68850,E_=70105,S_=43866,VR="T_RENDERS_QUESTION",rk=888960333,A_=43013,xu="assignment_pattern",I_="specifiers",GR=710,Jt="as",j_=120570,P_=11507,WR=260,$R=204,ru="jsx_element_name_identifier",eu="pattern_object_property_string_literal_key",tu="class_expression",N_=44002,O_=82943,_v="src/parser/type_parser.ml",bv="test",C_=64217,ek="package",HR="collect_comments",QR="Pervasives.do_at_exit",D_=125183,R_=42606,nu="tuple_element",uu="enum_boolean_member",F_=65312,tk=119981,L_=65495,nk=120085,ZR=-80,M_=138,uk=126555,U_=65276,y2=128,xF="{ ",iu="for_statement",fu="ts_satisfies",cu="class_method",ik="if",su="generic_type",Dr=113,q_=43071,B_=72001,X_=71131,J_=70002,rF="renders*",K_=42888,fk=8469,G3="instanceof",Y_=11502,ck=94178,z_=64321,V_=64913,eF="Division_by_zero",G_=92879,W_=71945,tF=185,$_=66938,sk=65535,H_=113800,nF=": file descriptor already closed",ak=223,uF="*=",Q_=68899,au="switch_case",ou="pattern_array_element",vu="enum_string_member",lu="pattern_object_property_bigint_literal_key",iF="visit_trailing_comment",ok="export",vk=120122,lk=43823,Z_=43792,xb=42527,rb=70726,pu="enum_defaulted_member",eb=68497,pk=72349,ku="program",mu="member_type_identifier",tb="object",hu="for_of_statement_lhs",nb=113791,ub=67391,du="jsx_spread_child",kk=126554,mk=8526,hk=43880,dk=69415,ib=43822,yu="pattern_identifier",fb=93052,ko="readonly",Te="name",cb=68119,sb=71494,ab=120121,yk=8486,fF=2047,gu="enum_symbol_body",cF="PropertyDefinition",ob=177976,_u="declare_class",vb=65489,lb=72367,pb=70440,bu="import_named_specifier",sF="Popping lex mode from empty stack",kb=68111,mb=66463,aF="*-/",hb=43187,gk=8487,db=11567,yb=67861,gb=` -`,_b=66383,wu="declare_interface",bb=-24976191,oF=238,wb=-24,vF="@ }@]",Tb=43645,Eb=176,Sb=119976,_k=69959,Ab=126519,Ib=";",lF="trailingComments",bk=65548,Tu="number_literal",wv=449540197,jb=43704,wk=126584,Pb=8467,pF="||",Tk=11695,Nb="exported",Ob=120712,ps="void",kF="mixins",Cb=92783,Db=215,Eu="body_expression",mF="%ni",W3=">",Su="as_const_expression",Au="jsx_child",Rb=8516,Iu="optional_indexed_access_type",ju="typeof_type",Pu="spread_element",Fb=42963,hF="@[",Nu="component_params",Lb=43042,Ek="",Ou="function_",Sk="for",Ak=65575,Kt="params",Mb=168,dF="win32",mo=8202,yF="@",Ik="^",gF=164,xt="optional",Ub=65574,$3="boolean",_F=139,qb=12548,jk=120539,bF="Not_found",Pk=246,Cu="expression_statement",Bb="EBADF",Xb=66815,Du="module_ref_literal",Jb=55203,Ru="function_param_type",Kb=73064,Nk=70279,Yb=110580,wF=233,zb="<",TF=262,EF="visit_leading_comment",Vb=66855,Gb=66966,Wb=66499,$b=111355,Hb=68680,Qb=206,SF="--",Zb=65497,Ok=11711,Fu="function_param_pattern",ho="constructor",xw=5760,AF="infinity",Ck=43642,_j0="fs",rw=92991,Dk=126544,ew=101640,Rk=72162,tw=67583,Fk=8468,F1="typeParameters",IF="elements",nw=71423,jF="Sys_blocked_io",Lu="interface_declaration",Mu="variable_declaration",Uu="function_rest_param",qu="type",uw="Invalid number ",iw=" : flags Open_rdonly and Open_wronly are not compatible",fw=69404,Bu="jsx_element_name_member_expression",Lk="keyof",Mk="never",Xu="with_",Yt=32768,PF="|=",Uk=70404,qk=70441,cw=42969,H3="declare",sw=73061,Ju="object_type",Ku="object_property_value_type",aw=69687,NF="Invalid binary/octal ",OF=230,ow=64324,CF="range",DF="infer",vw=120744,Yu="array_element",lw=70730,pw=43641,RF=166,kw=70461,mw=69890,hw=69487,dw=74862,yw=68149,Bk=73065,FF="%a",gw=72348,LF=172,zu="jsx_expression",_w=65663,bw=126495,MF=245,ww=124907,Vu="member_property_identifier",UF=226,Tw=43615,Gu="comment",Xk=119965,Wu="catch_clause_pattern",$u="object_type_property_getter",qF=136,Ew=43019,Sw=67455,Jk=126628,BF=331416730,XF="the start of a statement",Aw=122654,Iw="shorthand",jw=43595,Pw=11710,Hu="typeof_qualified_identifier",Nw=72750,JF="elementType",Y2="typeAnnotation",Ow=124895,KF=162,Kk=11559,Cw=67382,YF="??=",Dw=72329,Rw="target",Qu="component_type",zF=284,VF=180,Fw=189,GF=8206,Lw=43513,Mw=173823,Uw=126467,Zu="type_guard",qw=43700,Bw=12783,Yk=8305,xi="type_annotation",Ee="break",zk=42999,Xw="namespace",Jw=65019,WF=160,Kw=70460,ri="expression_or_spread",Yw=")",ei="class_private_field",zw=55215,Vw=65338,Gw=40981,Q3="members",ti="import_declaration",Ww=69634,Vk=94031,$w="ENOENT",Hw=8457,$F="satisfies",ni="generic_identifier_type",ui="function_this_param",Qw=66993,ii="type_",Zw=67423,xT=11557,rT=12799,Gk=239,eT=93026,tT=66377,nT=123180,HF=221,QF=-594953737,uT=67967,iT=43586,gt=105,ZF="src/parser/flow_lexer.ml",fT=66559,fi="class_property_value",xL=150,cT=67637,rL="closedir",sT=43010,aT=8521,Wk=69956,oT=42959,eL=212,vT=92735,$k="}",Z3="method",lT=11498,xl=247,ie="empty",ci=16777215,pT=161,kT=42887,ua=116,si="type_identifier_reference",Hk=126634,mT=68029,tL="regexp",hT=70414,rl=121,ai="template_literal_element",dT=8449,yT=126562,yo=12287,gT=-45,Qk=64297,Zk=126523,_T=43301,zt=111,bT=126498,wT=43776,nL="EEXIST",TT=119892,ET=43807,uL=4096,go=252,ks=255,ST=68295,oi="variable_declarator_pattern",vi="do_while",x8="catch",AT=66962,IT=120654,ms=125,li="label_identifier",jT=11263,PT=8525,pi="assignment",NT=191456,OT=43273,iL="%u",CT=65381,DT=110927,RT=65479,FT=120538,_o="await",LT=71487,MT="jsError",UT=110588,qT=120084,BT=42890,Tv=224,ki="object_key",XT=43696,JT=73647,KT=43761,YT=12295,zT=64967,r8=11647,fL=191,Vt=123,VT="generator",GT=123583,mi="for_of_statement",hi="enum_bigint_body",WT=110959,$T=92995,HT=120686,QT="b",ZT=119969,e8=126522,t8=64318,xE=71839,n8=126602,rE=65908,el=65536,cL=231,sL=-602162310,aL="comment_bounds",rt="-",oL=-55,di="pattern_object_property",eE=43493,tE=69505,nE=8471,uE=187,u8=120745,yi="enum_member_identifier",iE=71959,fE=66863,cE=65594,i8=253,f8='"',c8=70286,gi="jsx_attribute_value_literal",sE=68447,vL="the",aE="index out of bounds",_i="declare_export_declaration",bi="jsx_attribute",wi="class_extends",r2=122,z2=106,Ti="binding_pattern",oE=113807,vE=93951,Ev=119,lE="types",pE=8335,Ei="statement_fork_point",Sv="_",kE=65500,Si="function_type",mE=68220,Ai="statement_list",Av=-835925911,hE=123535,lL=258,s8=43815,pL=199,a8=120571,dE=67514,kL=274,mL="Property",o8=72713,hL="Unexpected ",v8=169,dL=", characters ",l8=43867,yE=42537,Ii="component_declaration",yL=" : is a directory",ji="object_key_number_literal",Yr=127,t1=-36,tl=912068366,nl="delete",ia=114,gE=120076,Pi="regexp_literal",_E=65370,bE=65481,l2="value",wE=68405,Iv="operator",ul="const",gL=283,Ni=109,p8="any",TE=69958,EE=70831,SE=73111,AE=72767,IE="Identifier",Oi="jsx_opening_attribute",Ci="conditional_type",jE="loc",PE=67071,k8=120004,NE=43492,OE=70005,_L=188,m8=72272,CE=11389,bL=251,DE=73055,h8=70280,d8=1114111,RE=66421,wL="Stack_overflow",FE=70301,LE=19903,fa="0x",ME=69967,UE=12447,y8=66512,TL=`Fatal error: exception %s -`,il=1e3,qE=69295,g8=120093,EL=">=",SL=149,_8=64325,Di="class_identifier",BE=119967,XE=68415,AL="end",Ri="enum_boolean_body",Fi="member_private_name",Li="super_expression",JE=71955,KE=126514,b8=67593,YE=66939,zE=12591,w8=126538,VE=110590,Mi="component_renders_annotation",GE=72703,WE=72105,T8=65598,$E=73727,E8=126504,S8=126551,HE=70143,fl="from",Ui="class_property",qi="enum_number_body",QE=42559,ZE=93759,xS=66994,Gt="right",IL=225,rS=67702,eS=65473,tS=43697,A8=70855,nS=119993,uS=72103,iS=178205,Bi="call_type_args",fS=66511,Xi="export_batch_specifier",Ji="component_type_param",Wt=782176664,bo="get",cl="local",jL=228,Ki="object_mapped_type_property",Yi="class_decorator",PL=220,zi="enum_body",NL="<<=",Vi="declare_namespace",cS=71956,sS=69839,jv="super",aS=173791,oS=71942,V2="expression",vS=72440,Pv=254,lS=70412,OL="renders?",Gi="try_catch",CL=32752,Wi="declare_module_exports",pS=12320,DL=134,kS=94175,sl="enum",RL=196,$i="import_source",mS=43814,hS=120069,Hi="while_",I8=126537,dS=43262,Qi="function_rest_param_type",yS=66378,j8=119996,Zi="declare_component",gS=73097,_S=70783,bS=43503,wS=131071,TS=11492,ES=92766,FL=173,SS=113770,AS=73029,IS=66978,xf="tagged_template",rf="jsx_element_name",ef="for_init_declaration",jS=123213,tf="object_indexer_property_type",nf="object_spread_property_type",P8=72970,N8=70854,PS=110930,al="var",LL=217,NS=119972,OS=69622,CS=63743,DS=42237,RS=870530776,O8="returnType",ML=56320,Nv="computed",FS=42735,uf="arg_list",LS=67461,ff="export_named_declaration",MS=72817,US=73439,qS=43782,BS=66775,XS=70655,C8="bool",JS=65140,KS=75075,YS=126651,zS=71947,VS=42961,GS=12735,WS=78894,$S=64262,UL=237,W1="interface",qL="Match_failure",HS=42962,QS=69748,BL="leadingComments",cf="this_expression",ol=461894857,D8=12592,XL=8204,wo="hook",ZS=119807,xA=66348,sf="declare_variable",rA=8348,af="optional_member",of=120,vf="arrow_function",eA=72768,tA=70851,lf="array",nA=43249,R8=126468,uA=177983,iA="compare: functional value",fA=126550,cA=64847,pf="binding_type_identifier",sA=120132,kf="function_params",aA=93071,vl=1024,oA=42783,JL=1039100673,KL="@{",vA=12352,lA=42653,pA=120628,mf="declare_function",hf="for_in_statement_lhs",kA=72271,mA=69807,hA=67826,df="syntax_opt",yf="object_key_bigint_literal",YL=243,dA=94032,zL="Undefined_recursive_module",VL=-1053382366,yA=72242,gf="variance_opt",gA=101631,_A="arguments",bA=72161,wA=8511,F8="unknown",TA=43560,GL="the end of an expression statement (`;`)",WL=1026,EA=12543,SA=11670,$L="?",AA=69247,L8=11631,HL=272,M8="line",IA=72202,_f="pattern_object_rest_property",bf=" ",jA=43487,Ov=115,PA=-673950933,wf="intersection_type",NA=120144,ll="is",OA=178207,CA=100343,QL="||=",ZL="f",U8=8455,S1=102,Tf="pattern_object_property_number_literal_key",DA=70418,RA=8543,xM="Internal Error: Found private field in object props",q8=126540,B8=119995,To=8287,Ef="indexed_access_type",Sf="export_named_specifier",rM=224,FA=124926,LA=-103,eM=167,X8=65344,J8=126530,MA=113788,UA=67505,qA="property",BA=43014,Se="return",hs=-85,XA=126601,tM=214,nM="children",Af="type_alias",K8=43259,JA=126583,KA=71958,YA=65613,zA=67431,Y8=126535,VA=69599,If="type_params",jf="object_key_computed",GA=124910,L1="variance",z8=11727,WA=66954,$A=126463,Pf="catch_body",HA=69445,Nf="type_param",Of="component_type_params",QA=124902,V8=120687,uM="collect_comments_opt",ZA=15,xI=120485,rI=70416,eI=125259,Cf="jsx_namespaced_name",tI=43712,nI=72712,iM="~",G8=12448,Df="jsx_member_expression_object",W8=126499,$8=-97,Rf="pattern_object_property_identifier_key",fM=219,Ff="component_body",Lf="opaque_type",Mf=".",uI=43009,iI="consequent",cM="SpreadElement",P2="body",fI=178,sM=202,Uf="jsx_opening_element",qf="declare_module",H8=67638,cI=8477,Bf="object_type_property",sI=110882,Xf="function_body",aI=94111,aM="module",oM="alternate",oI=67839,Eo=8191,vI=43881,vM=": closedir failed",ca="kind",Jf="tuple_labeled_element",So=-46,lI=67640,Kf="declare_type_alias",Q8=70750,pI=77808,pl="column",Yf="jsx_closing_element",kI=66977,mI="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",hI=65786,zf="function_expression",_t=104,Z8=11719,dI=11505,yI="mkdir",gI=70319,lM="Invalid_argument",_I=43738,bI=113817,Vf="bigint_literal",wI=70084,pM=278,TI=126566,xm="do",rm=42622,Gf="computed_key",Wf="pattern_object_property_computed_key",kM="fd ",em=126571,EI=126619,mM=140,sa="prototype",hM=208,SI=67004,kl=130,dM=242,yM=">>>=",AI=68863,II=11726,bt="raw",jI=64466,$f=107,PI=67679,Hf="enum_string_body",NI=244,gM="unreachable jsxtext",_M="*",OI=66335,CI=126570,bM=229,DI=" : file already exists",tm=184,RI=67807,FI=70753,Qf="boolean_literal",LI=65437,MI=70451,UI=67002,Cv=124,Zf="conditional",nm=43260,wM="Sys_error",qI=123135,ml="meta",BI=64109,xc="pattern_array_rest_element",XI=43255,um=67644,rc="pattern_object_rest_property_pattern",ec="sequence",JI=65855,KI=110951,YI=67643,tc="predicate_expression",Ae="static",zI=120512,VI="declaration",im=64317,GI=68437,fm=126558,nc="meta_property",WI=11564,uc="declare_enum",$t="pattern",$I=216,HI=68191,cm="undefined",sm=8319,am=120133,hl=132,QI=42239,TM=-99,ZI=124927,xj=120092,rj=43137,ic="component_rest_param",EM="expected *",ej=125251,SM="%li",tj=55242,nj=12294,fc="enum_number_member",aa="in",AM="\\\\",Ao=":",uj=68115,IM="Cygwin",ij=77823,fj=65615,om=70162,jM="/static/",cj=11519,sj=72966,aj=12686,oj=165,vj=183,dl=129,vm=72192,lj=42964,lm="try",pm=120655,pj=11702,PM="expressions",kj=2048,cc="class_body",mj=55238,NM=240,hj=66915,dj=43311,yj=43018,OM=235,gj=73648,CM="([^/]+)",_j=125258,bj=64829,wj=68735,DM="++",RM=163,FM="qualification",LM=57343,MM=931,sc="default_opt",Tj=71235,UM=8472,Ej=71934,qM=205,BM=218,XM="callee",Sj=43711,Aj=64284,Ij=43754,jj=43790,JM="%Li",ac="pattern_array_rest_element_pattern",km="decorators",Pj=8304,oc="statement",mm=73062,vc="jsx_children",Nj=70492,Oj=64255,Cj=11630,Dj=1255,hm=67592,dm=43519,ym=64311,gm=12539,Rj="proto",_m=120513,Fj=68031,Io="source",yl="a",Lj=93047,Mj=92927,Uj=126588,qj=73458,Bj=67742,Xj=43714,KM=288,YM=236,Jj=-253313196,gl="label",zM="@[<2>{ ",bm=126539,wm=126552,Kj=120487,VM=268,GM="Out_of_memory",Yj=605857695,zj=94026,WM=267,Tm=126496,oa="async",$M=203,Em=126560,Vj=68287,lc="unary_expression",Gj=-26065557,Wj=110587,Sm=120771,$j=69762,Hj=126502,Dv="set",pc="object_",kc="template_literal",Qj=43258,mc="nullable_type",ds="int_of_string",HM="^=",Ie="predicate",Rv="string",Am=8450,QM="camlinternalMod.ml",Zj=70285,ys="+",xP=110575,ZM=198,hc="extends",xU=-692038429,Im=67827,rU=210,eU=227,jm="explicitType",Pm=70452,rP=70497,Fv=63,_l="private",eP=64296,tP=67591,nP=92909,tU="T_JSX_TEXT",uP="Fatal error: exception ",iP=120137,Nm=68120,dc="pattern_array_e",fP=119964,cP=92862,sP=66461,nU="&&=",uU=174,n1=8231,yc="null_literal",iU="/=",aP=66811,Om=70108,oP=67504,vP=11686,lP=67001,pP=" : flags Open_text and Open_binary are not compatible",kP=43741,mP=66204,G2=8233,gc="type_annotation_hint",hP=123197,_c="object_property",fU="${",Cm=70480,cU="&&",bc="type_cast",Lv="%d",Dm=8484,sU=207,dP=70066,yP=68324,Rm=120713,aU=135,Fm=126556,$1="0",M1="yield",Lm=126591,et=100,gP=69551,wc="jsx_element_name_namespaced",oU=232,Tc="object_key_string_literal",Ec="function_this_param_type",Sc="pattern_object_property_pattern",je="throw",Pe="switch",vU=2048,Mm=119970,Ac="toplevel_statement_list",Mv=250,_P=12438,Ic="class_implements",jc="variable_declarator",bP=43713,Um=68096,wP=70457,TP=12538,EP=11734,lU="-=",pU=234,Pc="component_param_name",SP=43123,Nc="class_",kU="|",AP=200,IP=43518,jP=8483,Oc="jsx_attribute_name_identifier",PP=181;function tY(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function nY(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?qm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?qm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Bm(e);var i=x.c,c=e.c;if(x.t==4)if(t<=r)for(var v=0;v=0;v--)c[t+v]=i[r+v];else{for(var a=Math.min(u,i.length-r),v=0;v>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Xm(x){x.t==2?x.c+=Uv(x.l-x.c.length,"\0"):x.c=qm(x.c,0,x.c.length),x.t=0}function NP(x){if(x.length<24){for(var r=0;rYr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function mU(x){for(var r=H0,e=H0,t,u,i,c,v=0,a=x.length;vg_?(e.substr(0,1),r+=e,e=H0,r+=x.slice(v,p)):e+=x.slice(v,p),p==a)break;v=p}c=1,++v=55295&&c<57344)&&(c=2)):(c=3,++v1114111)&&(c=3)))))),c<4?(v-=c,e+="\uFFFD"):c>qt?e+=String.fromCharCode(55232+(c>>10),ML+(c&1023)):e+=String.fromCharCode(c),e.length>vl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function _s(x,r,e){this.t=x,this.c=r,this.l=e}_s.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Xm(this);case 0:if(NP(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},_s.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:mU(x)},_s.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new _s(this.t,x,this.l)};function hU(x){return new _s(0,x,x.length)}function bj0(x){return x}function Cc(x){return hU(x)}function Dc(x,r,e,t,u){return gs(Cc(x),r,e,t,u),0}function dU(x){var r=a0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(a0.jsoo_static_env&&a0.jsoo_static_env[x])return a0.jsoo_static_env[x]}var OP=0;(function(){var x=dU("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(JD),e=0;e>>0>=x.l&&cY(),Vr(x,r,e)}function fe(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function bs(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:bs(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var p=new Array(t+1),_=0;_>>0>=x.length-1&&bl(),x}function sY(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function aY(x){return 0}var oY=Math.log2&&Math.log2(11235582092889474e291)==1020;function vY(x){if(oY)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function DP(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var yU=Math.pow(2,-24);function gU(x){throw x}function _U(){gU(U1.Division_by_zero)}function ir(x,r,e){this.lo=x&ci,this.mi=r&ci,this.hi=e&qt}ir.prototype.caml_custom="_j",ir.prototype.copy=function(){return new ir(this.lo,this.mi,this.hi)},ir.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new ir(x,r,e)},ir.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*yU|0)+this.mi*x.lo+this.lo*x.mi,t=(e*yU|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new ir(r,e,t)},ir.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},ir.prototype.isNeg=function(){return this.hi<<16<0},ir.prototype.and=function(x){return new ir(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},ir.prototype.or=function(x){return new ir(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},ir.prototype.xor=function(x){return new ir(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},ir.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new ir(this.lo<>24-x,this.hi<>24-x):x<48?new ir(0,this.lo<>48-x):new ir(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new ir(this.hi>>x-48,0,0)},ir.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new ir(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&qt):new ir(this.hi<<16>>x-32,e,e)},ir.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&ci,this.lo=this.lo<<1&ci},ir.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&ci,this.mi=(this.mi>>>1|this.hi<<23)&ci,this.hi=this.hi>>>1},ir.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new ir(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},ir.prototype.div=function(x){var r=this;x.isZero()&&_U();var e=r.hi^x.hi;r.hi&Yt&&(r=r.neg()),x.hi&Yt&&(x=x.neg());var t=r.udivmod(x).quotient;return e&Yt&&(t=t.neg()),t},ir.prototype.mod=function(x){var r=this;x.isZero()&&_U();var e=r.hi;r.hi&Yt&&(r=r.neg()),x.hi&Yt&&(x=x.neg());var t=r.udivmod(x).modulus;return e&Yt&&(t=t.neg()),t},ir.prototype.toInt=function(){return this.lo|this.mi<<24},ir.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},ir.prototype.toArray=function(){return[this.hi>>8,this.hi&ks,this.mi>>16,this.mi>>8&ks,this.mi&ks,this.lo>>16,this.lo>>8&ks,this.lo&ks]},ir.prototype.lo32=function(){return this.lo|(this.mi&ks)<<24},ir.prototype.hi32=function(){return this.mi>>>8&qt|this.hi<<16};function Jm(x,r,e){return new ir(x,r,e)}function Km(x){if(!isFinite(x))return isNaN(x)?Jm(1,0,CL):x>0?Jm(0,0,CL):Jm(0,0,65520);var r=x==0&&1/x==-1/0?Yt:x>=0?0:Yt;r&&(x=-x);var e=vY(x)+1023;e<=0?(e=0,x/=Math.pow(2,-WL)):(x/=Math.pow(2,e-QD),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var c=x|0;return u=u&ZA|r|e<<4,Jm(c,i,u)}function wl(x){return x.toArray()}function bU(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==s4)for(var t=0;t>4;if(u==fF)return r|e|t&ZA?NaN:t&Yt?-1/0:1/0;var i=Math.pow(2,-24),c=(r*i+e)*i+(t&ZA);return u>0?(c+=16,c*=Math.pow(2,u-QD)):c*=Math.pow(2,-WL),t&Yt&&(c=-c),c}function LP(x){for(var r=x.length,e=1,t=0;t>>24&ks|(r&qt)<<8,r>>>16&qt)}function MP(x){return x.hi32()}function UP(x){return x.lo32()}var kY=s4;function va(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}va.prototype.caml_custom=kY,va.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||W2("bigarray.js: invalid offset"),this.dims.length!=x.length&&W2("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&bl(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&bl(),r=r*this.dims[e]+(x[e]-1);return r},va.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return pY(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Pv,t,u];default:return this.data[x]}},va.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=UP(r),this.data[x*2+1]=MP(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},va.prototype.fill=function(x){switch(this.kind){case 7:var r=UP(x),e=MP(x);if(r==e)this.data.fill(r);else for(var t=0;tc)return 1;if(i!=c){if(!r)return NaN;if(i==i)return 1;if(c==c)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function Bv(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}Bv.prototype=new va,Bv.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:W2("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&bl(),x},Bv.prototype.get=function(x){return this.data[x]},Bv.prototype.set=function(x,r){return this.data[x]=r,0},Bv.prototype.fill=function(x){return this.data.fill(x),0};function TU(x,r,e,t){var u=wU(x);return LP(e)*u!=t.length&&W2("length doesn't match dims"),r==0&&e.length==1&&u==1?new Bv(x,r,e,t):new va(x,r,e,t)}function q1(x){U1.Failure||(U1.Failure=[x2,r_,-3]),CP(U1.Failure,x)}function EU(x,r,e){var t=x.read32s();(t<0||t>16)&&q1("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&ks,c=u>>8&1,v=[];if(e==s4)for(var a=0;a>>17,r=AU(r,461845907),x^=r,x=x<<13|x>>>19,(x+(x<<2)|0)+-430675100|0}function mY(x,r){return x=ws(x,UP(r)),x=ws(x,MP(r)),x}function IU(x,r){return mY(x,Km(r))}function jU(x){var r=LP(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>gv&&(r=gv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=ws(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=ws(e,t)}break;case 4:case 5:r>y2&&(r=y2);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=ws(e,t);r&1&&(e=ws(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function BP(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function XP(x){return x instanceof _s}function OU(x){if(typeof x=="number")return il;if(XP(x))return go;if(BP(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=m4){var r=x[0]|0;return r==Pv?0:r}else{if(x instanceof String)return oR;if(typeof x=="string")return oR;if(x instanceof Number)return il;if(x&&x.caml_custom)return Dj;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function wt(x,r){return xr?1:0}function wY(x,r){return x.t&6&&Xm(x),r.t&6&&Xm(r),x.cr.c?1:0}function Ym(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=OU(x);if(u==Mv){x=x[1];continue}var i=OU(r);if(i==Mv){r=r[1];continue}if(u!==i)return u==il?i==Dj?NU(x,r,-1,e):-1:i==il?u==Dj?NU(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(aY(u)){W2("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=H0,x.t=2):(x.c=Uv(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Bm(x),e+=r;r0&&r===r||(x=x.replace(/_/g,H0),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,H0),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;q1("float_of_string")}function KP(x){x=x;var r=x.length;r>31&&W2("format_int: format too long");for(var e={justify:ys,signstyle:rt,filler:bf,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:ZL},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function YP(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=rt)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=H0;if(x.justify==ys&&x.filler==bf)for(var u=e;u20?(S-=20,_/=Math.pow(10,S),_+=new Array(S+1).join($1),y>0&&(_=_+Mf+new Array(y+1).join($1)),_):_.toFixed(y)}var t,u=KP(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Jy,u.filler=bf;else if(!isFinite(r))t="inf",u.filler=bf;else switch(u.conv){case"e":var t=r.toExponential(i),c=t.length;t.charAt(c-3)==g9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var v=t.indexOf(g9),a=+t.slice(v+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var c=v-1;t.charAt(c)==$1;)c--;t.charAt(c)==Mf&&c--,t=t.slice(0,c+1)+t.slice(v),c=t.length,t.charAt(c-3)==g9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break}else{var p=i;if(a<0)p-=a+1,t=r.toFixed(p);else for(;t=r.toFixed(p),t.length>i+1;)p--;if(p){for(var c=t.length-1;t.charAt(c)==$1;)c--;t.charAt(c)==Mf&&c--,t=t.slice(0,c+1)}}break}return YP(u,t)}function zm(x,r){if(x==Lv)return H0+r;var e=KP(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=bf;var u=e.prec-t.length;u>0&&(t=Uv(u,$1)+t)}return YP(e,t)}var DU=0;function Ts(){return DU++}function RU(){return[0]}var Vm=[];function Wx(x,r,e){var t=x[1],u=Vm[e];if(u===void 0)for(var i=Vm.length;i>1|1,rg_?(e.substr(0,1),r+=e,e=H0,r+=x.slice(i,v)):e+=x.slice(i,v),v==c)break;i=v}t>6),e+=String.fromCharCode(Xt|t&Fv)):t<55296||t>=LM?e+=String.fromCharCode(rM|t>>12,Xt|t>>6&Fv,Xt|t&Fv):t>=56319||i+1==c||(u=x.charCodeAt(i+1))LM?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(NM|t>>18,Xt|t>>12&Fv,Xt|t>>6&Fv,Xt|t&Fv)),e.length>vl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function Tt(x){return NP(x)?x:SY(x)}function AY(x,r,e){if(!isFinite(x))return isNaN(x)?Tt(Jy):Tt(x>0?AF:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?H0:ys,c=H0;if(t)c=rt;else switch(e){case 43:c=ys;break;case 32:c=bf;break;default:break}if(r>=0&&r<13){var v=Math.pow(2,r*4);x=Math.round(x*v)/v}var a=x.toString(16);if(r>=0){var p=a.indexOf(Mf);if(p<0)a+=Mf+Uv(r,$1);else{var _=p+1+r;a.length<_?a+=Uv(_-a.length,$1):a=a.substr(0,_)}}return Tt(c+fa+a+"p"+i+u.toString(10))}function IY(x){return+x.isZero()}function Gm(x){return new ir(x&ci,x>>24&ci,x>>31&qt)}function jY(x){return x.toInt()}function PY(x){return+x.isNeg()}function VP(x){return x.neg()}function FU(x,r){var e=KP(x);e.signedconv&&PY(r)&&(e.sign=-1,r=VP(r));var t=H0,u=Gm(e.base),i="0123456789abcdef";do{var c=r.udivmod(u);r=c.quotient,t=i.charAt(jY(c.modulus))+t}while(!IY(r));if(e.prec>=0){e.filler=bf;var v=e.prec-t.length;v>0&&(t=Uv(v,$1)+t)}return YP(e,t)}function Nx(x){return x.length}function F0(x,r){return x.charCodeAt(r)}function NY(x,r){return x.add(r)}function OY(x,r){return x.mul(r)}function GP(x,r){return x.ucompare(r)<0}function LU(x){var r=0,e=Nx(x),t=10,u=1;if(e>0)switch(F0(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=r2?x-87:-1}function El(x){var r=LU(x),e=r[0],t=r[1],u=r[2],i=Gm(u),c=new ir(ci,268435455,qt).udivmod(i).quotient,v=F0(x,e),a=Wm(v);(a<0||a>=u)&&q1(ds);for(var p=Gm(a);;)if(e++,v=F0(x,e),v!=95){if(a=Wm(v),a<0||a>=u)break;GP(c,p)&&q1(ds),a=Gm(a),p=NY(OY(i,p),a),GP(p,a)&&q1(ds)}return e!=Nx(x)&&q1(ds),u==10&&GP(new ir(0,0,Yt),p)&&q1(ds),t<0&&(p=VP(p)),p}function $m(x){return x.toFloat()}function tt(x){var r=LU(x),e=r[0],t=r[1],u=r[2],i=Nx(x),c=-1>>>0,v=e=u)&&q1(ds);var p=a;for(e++;e=u)break;p=u*p+a,p>c&&q1(ds)}return e!=i&&q1(ds),p=t*p,u==10&&(p|0)!=p&&q1(ds),p|0}function CY(x){return x.slice(1)}function Qx(x){return NP(x)?x:mU(x)}function DY(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function FY(x){return function(){for(var r=RY(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var XY=["E2BIG","EACCES","EAGAIN",Bb,"EBUSY","ECHILD","EDEADLK","EDOM",nL,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",$w,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",v9,GD,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Ss(x,r,e,t){var u=XY.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Tt(r||H0),Tt(e||H0)];return i}var BU={};function la(x){return BU[x]}function As(x,r){throw U0([0,x].concat(r))}function $P(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new _s(4,x,x.length)}function XU(x){Nr(x+a4)}function H1(x){this.data=x}H1.prototype=new MU,H1.prototype.constructor=H1,H1.prototype.truncate=function(x){var r=this.data;this.data=T2(x|0),gs(r,0,this.data,0,x)},H1.prototype.length=function(){return nt(this.data)},H1.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=T2(x+t),c=this.data;this.data=i,gs(c,0,this.data,0,u)}return gs($P(r),e,this.data,x,t),0},H1.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=T2(t|0);gs(this.data,x,i,0,t),r.set(UU(i),e)}return t};function jo(x,r,e){this.file=r,this.name=x,this.flags=e}jo.prototype.err_closed=function(){Nr(this.name+nF)},jo.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},jo.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},jo.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},jo.prototype.close=function(){this.file=void 0};function v1(x,r){this.content={},this.root=x,this.lookupFun=r}v1.prototype.nm=function(x){return this.root+x},v1.prototype.create_dir_if_needed=function(x){for(var r=x.split(G1),e=H0,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=T2(t);return gs($P(r),e,u,0,t),this.log(u.toUtf16()),0}Nr(this.fd+nF)},Il.prototype.read=function(x,r,e,t){Nr(this.fd+": file descriptor is write only")},Il.prototype.close=function(){this.log=void 0};function xh(x,r){return r==null&&(r=Qm.length),Qm[r]=x,r|0}function Ej0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Nr(x+iw),t.text&&t.binary&&Nr(x+pP);var u=JY(x),i=u.device.open(u.rest,t);return xh(i,void 0)}(function(){function x(r,e){return Sl()?UY(r,e):new Il(r,e)}xh(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),xh(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),xh(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function KY(x){var r=Qm[x];r.flags.wronly&&Nr(kM+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(el),refill:e};return Es[t.fd]=t,t.fd}function KU(x){var r=Qm[x];r.flags.rdonly&&Nr(kM+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(el),buffered:e};return Es[t.fd]=t,t.fd}function YY(){for(var x=0,r=0;ru.buffer.length){var i=new Uint8Array(u.buffer_curr+r.length);i.set(u.buffer),u.buffer=i}switch(u.buffered){case 0:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,Rc(x);break;case 1:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Rc(x);break;case 2:var c=r.lastIndexOf(10);c<0?(u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Rc(x)):(u.buffer.set(r.subarray(0,c+1),u.buffer_curr),u.buffer_curr+=c+1,Rc(x),u.buffer.set(r.subarray(c+1),u.buffer_curr),u.buffer_curr+=r.length-c-1);break}return 0}function VY(x,u,e,t){var u=UU(u);return zY(x,u,e,t)}function HP(x,r,e,t){return VY(x,Cc(r),e,t)}function YU(x,r){var e=String.fromCharCode(r);return HP(x,e,0,1),0}function jl(x,r){return+(Ym(x,r,!1)!=0)}function QP(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function GY(x,r){return x[0]=Mv,x[1]=r,0}function Po(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:XP(x)||BP(x)?go:x instanceof Function||typeof x=="function"?xl:x&&x.caml_custom?m4:il}function WY(x){for(var r;x;)if(Qx(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:q1("caml_register_global: cannot locate "+t)}}U1[x+1]=r,e&&(U1[e]=r)}function ZP(x,r){return BU[x]=r,0}function $Y(x){return x[2]=DU++,x}function Sr(x,r){return x===r?1:0}function HY(){W2(aE)}function N2(x,r){return r>>>0>=Nx(x)&&HY(),F0(x,r)}function I(x,r){return 1-Sr(x,r)}function A1(x){return x.t&6&&Xm(x),x.c}function QY(){return 2147483647/4|0}var ZY=a0.process&&a0.process.platform&&a0.process.platform==dF?IM:"Unix";function xz(){return[0,ZY,32,0]}function rz(){gU(U1.Not_found)}function zU(x){var r=dU(Qx(x));return r===void 0&&rz(),Tt(r)}function xN(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function l1(x,r){return{joo_tramp:x,joo_args:r}}function m0(x,r){if(r.fun)return x.fun=r.fun,0;if(typeof r=="function")return x.fun=r,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function O2(x){{if(x instanceof Array)return x;var r;return a0.RangeError&&x instanceof a0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||a0.InternalError&&x instanceof a0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=U1.Stack_overflow:x instanceof a0.Error&&la(MT)?r=[0,la(MT),x]:r=[0,U1.Failure,Tt(String(x))],x instanceof a0.Error&&(r.js_error=x),r}}function ez(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function tz(x){var r=H0;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&ez(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=LD;for(var u=e;ue&&(r+=qR);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof _s||typeof i=="string"?r+=f8+i.toString()+f8:r+=Sv}r+=Yw}else x[0]==x2&&(r+=x[1]);return r}function VU(x){if(x instanceof Array&&(x[0]==0||x[0]==x2)){var r=la(cR);if(r)Hm(r,[x,!1]);else{var e=tz(x),t=la(QR);if(t&&Hm(t,[0]),console.error(uP+e),x.js_error)throw x.js_error}}else throw x}function nz(){var x=a0.process;x&&x.on?x.on("uncaughtException",function(r,e){VU(r),x.exit(2)}):a0.addEventListener&&a0.addEventListener("error",function(r){r.error&&VU(r.error)})}nz();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):bs(x,[r])}function k(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):bs(x,[r,e])}function B0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):bs(x,[r,e,t])}function St(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):bs(x,[r,e,t,u])}function I1(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):bs(x,[r,e,t,u,i])}function uz(x,r,e,t,u,i,c,v){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,c,v):bs(x,[r,e,t,u,i,c,v])}var R=void 0,rN=[x2,GM,-1],GU=[x2,wM,-2],Qt=[x2,r_,-3],eN=[x2,lM,-4],Fc=[x2,bF,-7],WU=[x2,qL,-8],$U=[x2,wL,-9],Ar=[x2,zD,-11],Pl=[x2,zL,-12],iz=[4,0,0,0,[12,45,[4,0,0,0,0]]],tN=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,dL,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Yv=[0,0,[0,0,0],[0,0,0]],Nl=[0,0,0,0,1,0,0,0],HU=[0,"first_leading","last_trailing"],QU=[0,uf,lf,Yu,$n,vf,Su,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,bF),Et(5,[x2,eF,-6],eF),Et(4,[x2,sR,-5],sR),Et(3,eN,lM),Et(2,Qt,r_),Et(1,GU,wM),Et(0,rN,GM);var fz="output_substring",cz=Mf,sz=as,az=ls,oz="CamlinternalLazy.Undefined",vz=AM,lz="\\'",pz="\\b",kz="\\t",mz="\\n",hz="\\r",dz="List.iter2",yz="tl",gz="hd",_z="String.blit / Bytes.blit_string",bz="Bytes.blit",wz="String.sub / Bytes.sub",Tz=H0,Ez="String.concat",Sz="Array.blit",Az="Array.sub",Iz=zp,jz=zp,Pz=zp,Nz=zp,Oz="Stdlib.Queue.Empty",Cz="Buffer.add_substring/add_subbytes",Dz="Buffer.add: cannot grow buffer",Rz=[0,tR,93,2],Fz=[0,tR,94,2],Lz="Buffer.sub",Mz="%c",Uz="%s",qz=BD,Bz=SM,Xz=mF,Jz=JM,Kz="%f",Yz="%B",zz="%{",Vz="%}",Gz="%(",Wz="%)",$z=FF,Hz="%t",Qz="%?",Zz="%r",xV="%_r",rV=[0,e1,850,23],eV=[0,e1,814,21],tV=[0,e1,815,21],nV=[0,e1,818,21],uV=[0,e1,819,21],iV=[0,e1,822,19],fV=[0,e1,823,19],cV=[0,e1,826,22],sV=[0,e1,827,22],aV=[0,e1,831,30],oV=[0,e1,832,30],vV=[0,e1,836,26],lV=[0,e1,837,26],pV=[0,e1,846,28],kV=[0,e1,847,28],mV=[0,e1,851,23],hV=[0,e1,1558,4],dV="Printf: bad conversion %[",yV=[0,e1,1626,39],gV=[0,e1,1649,31],_V=[0,e1,1650,31],bV="Printf: bad conversion %_",wV=KL,TV=hF,EV=KL,SV=hF,AV=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],IV=[0,0,4],jV=Jy,PV="neg_infinity",NV=AF,OV=Mf,CV=[0,Ze],DV="%+nd",RV="% nd",FV="%+ni",LV="% ni",MV="%nx",UV="%#nx",qV="%nX",BV="%#nX",XV="%no",JV="%#no",KV="%nd",YV=mF,zV="%nu",VV="%+ld",GV="% ld",WV="%+li",$V="% li",HV="%lx",QV="%#lx",ZV="%lX",xG="%#lX",rG="%lo",eG="%#lo",tG="%ld",nG=SM,uG="%lu",iG="%+Ld",fG="% Ld",cG="%+Li",sG="% Li",aG="%Lx",oG="%#Lx",vG="%LX",lG="%#LX",pG="%Lo",kG="%#Lo",mG="%Ld",hG=JM,dG="%Lu",yG="%+d",gG="% d",_G="%+i",bG="% i",wG="%x",TG="%#x",EG="%X",SG="%#X",AG="%o",IG="%#o",jG=Lv,PG=BD,NG=iL,OG=vv,CG="@}",DG="@?",RG=`@ -`,FG="@.",LG="@@",MG="@%",UG=yF,qG="CamlinternalFormat.Type_mismatch",BG=H0,XG=[0,[11,qR,[2,0,[2,0,0]]],", %s%s"],JG=[0,[11,uP,[2,0,[12,10,0]]],TL],KG=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s -`],YG="Fatal error: out of memory in uncaught exception handler",zG=[0,[11,uP,[2,0,[12,10,0]]],TL],VG=[0,[2,0,[12,10,0]],`%s -`],GG="Raised at",WG="Re-raised at",$G="Raised by primitive operation at",HG="Called from",QG=" (inlined)",ZG=H0,xW=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,dL,iz]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],rW=[0,[2,0,[11," unknown location",0]],"%s unknown location"],eW="Out of memory",tW="Stack overflow",nW="Pattern matching failed",uW="Assertion failed",iW="Undefined recursive module",fW=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],cW=H0,sW=H0,aW=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],oW=[0,[4,0,0,0,0],Lv],vW=[0,[3,0,0],q3],lW=Sv,pW=[0,H0,`(Cannot print locations: +var jE0=Object.create;var iO=Object.defineProperty;var CE0=Object.getOwnPropertyDescriptor;var OE0=Object.getOwnPropertyNames;var DE0=Object.getPrototypeOf,FE0=Object.prototype.hasOwnProperty;var RE0=(o0,vx)=>()=>(vx||o0((vx={exports:{}}).exports,vx),vx.exports),HY=(o0,vx)=>{for(var $x in vx)iO(o0,$x,{get:vx[$x],enumerable:!0})},LE0=(o0,vx,$x,Pr)=>{if(vx&&typeof vx=="object"||typeof vx=="function")for(let lr of OE0(vx))!FE0.call(o0,lr)&&lr!==$x&&iO(o0,lr,{get:()=>vx[lr],enumerable:!(Pr=CE0(vx,lr))||Pr.enumerable});return o0};var ME0=(o0,vx,$x)=>($x=o0!=null?jE0(DE0(o0)):{},LE0(vx||!o0||!o0.__esModule?iO($x,"default",{value:o0,enumerable:!0}):$x,o0));var ZY=RE0(fO=>{(function(o0){typeof globalThis!="object"&&(this?vx():(o0.defineProperty(o0.prototype,"_T_",{configurable:!0,get:vx}),_T_));function vx(){var $x=this||self;$x.globalThis=$x,delete o0.prototype._T_}})(Object);(function(o0){"use strict";var vx="loc",$x=70416,Pr=69748,lr=163,Ir=92159,L2=43587,ne="labeled_statement",kO="&=",Ks="int_of_string",nd=110591,ud=92909,F4=11559,mO="regexp",id=43301,R4=11703,fd=122654,Js=255,hO="%ni",cd=68252,dO=232,sd=42785,Nn="declare_variable",L4="while",ad=66938,od=70301,vd=124907,M4=126515,yO=218,jn="pattern_identifier",ld=67643,Cn="export_source",pd=216,kd=64279,gO="Out_of_memory",md=113788,wO="comments",hd=126624,_O="win32",On="object_key_bigint_literal",bO=185,q4=123214,Ro="constructor",dd=69955,Dn="import_declaration",yd=68437,gd="Failure",U4="Unix.Unix_error",wd=64255,_d=42539,bd=110579,Fn="export_default_declaration",Rn="jsx_attribute_name",B4=11727,Td=43002,X4=126500,Ln="component_param_pattern",TO="collect_comments_opt",Mn="match_unary_pattern",qn="keyof_type",EO="Invalid binary/octal ",SO="range",Ed=170,Gs="false",Sd=43798,AO=", characters ",Un="object_type_property_getter",Ad=65547,Pd=126467,Id=65007,PO="guard",Nd=42237,jd=8318,Cd=71215,Bn="object_property_type",Xn="type_alias",Od=67742,Yn="function_body",Dd=68111,Y4=120745,Fd=71959,z4=43880,IO="Match_failure",zn="type_cast",st=109,Ws="void",Rd="generator",Ld=125124,Md=101589,K4=94179,NO=">>>",J4=70404,Kn="optional_indexed_access_type",jO=310,y1="argument",Jn="object_property",Gn="object_type_property",qd=67004,Ud=42783,Bd=68850,CO="@",Xd=43741,Yd=43487,G4="object",OO="end",W4=126571,zd=71956,DO=208,Kd=126566,Jd=67702,FO="EEXIST",Wn="this_expression",Gd=203,Wd=11507,Vd=113807,V4=119893,$d=42735,Fl="rest",Vn="null_literal",Rl="protected",Qd=43615,l1=8231,Hd=68149,Zd=73727,xy=72348,ry=92995,s3=224,ey=11686,ty=43013,$n="assignment_pattern",ny=12329,Qn="function_type",a3=192,Hn="jsx_element_name",uy=70018,Zn="catch_clause_pattern",$4=126540,x7="template_literal",iy=120654,fy=68497,cy=67679,r7="readonly_type",sy=68735,ay="<",Q4=": No such file or directory",oy=66915,RO="!",e7="object_type",vy=43712,H4=64297,ly=183969,py=43503,ky=67591,Lo=65278,my=67669,t7="for_of_assignment_pattern",Ll="`",hy=11502,n7="catch_body",LO=258,dy=42191,Ma=-744106340,yy=182,Mo=":",MO="a string",gy=65663,wy=66978,_y=71947,Z4=43519,by=71086,Ty=125258,Ey=12538,u7="expression_or_spread",qO="Printexc.handle_uncaught_exception",xp=69956,rp=120122,ep=247,UO=231,Sy=" : flags Open_rdonly and Open_wronly are not compatible",i7="statement_fork_point",BO=710,XO=-692038429,Re="static",Ay=55203,Py=64324,Iy=64111,YO="!==",Ny=120132,jy=124903,Ml="class",zO=222,f7="pattern_number_literal",Vs="kind",Cy=71903,c7="variable_declarator",s7="typeof_expression",Oy=126627,Dy=70084,KO=228,tp=70480,a7="class_private_field",Fy=239,np=120713,Zt=65535,o7="private_name",Ry=43137,v7="remote_identifier",Ly=70161,l7="label_identifier",My="src/parser/statement_parser.ml",qy=8335,Uy=19903,By=64310,qo="_",p7="for_init_declaration",JO="infer",Xy=64466,Yy=43018,GO="tokens",zy=92735,Ky=66954,Jy=65473,Gy=70285,k7="sequence",Wy="compare: functional value",Vy=69890,ql=1e3,$y=65487,Qy=42653,WO="\\\\",VO="%=",m7="match_member_pattern_base",Hy=72367,h7="function_rest_param",$O="/static/",Zy=124911,x9=65276,up=126558,r9=11498,QO=137,d7="export_default_declaration_decl",e9="cases",ip=126602,y7="jsx_child",Le="continue",t9=42962,HO="importKind",s2=122,o3="Literal",g7="pattern_object_property_identifier_key",n9=42508,qa="in",u9=55238,i9=67071,f9=70831,c9=72161,s9=67462,ZO="<<=",a9=43009,o9=66383,fp=67827,v9=72202,l9=69839,p9=66775,xD="-=",Uo=8202,k9=70105,m9=120538,w7="for_in_left_declaration",h9="rendersType",cp=126563,d9=70708,sp=126523,rD=166,eD=202,y9=110951,$s="component",ap=126552,g9=66977,tD=213,_7="enum_member_identifier",nD=210,b7="enum_bigint_body",uD=">=",w9=126495,_9="specifiers",iD=-88,b9="=",T9=65338,Ul="members",fD=309,E9=123535,S9=43702,A9=72767,Bo="get",P9=126633,op=126536,I9=94098,N9="types",j9=113663,cD="Internal Error: Found private field in object props",T7="jsx_element",C9=70366,O9=110959,vp=120655,sD="trailingComments",v3=24029,D9=-100,B1="yield",E7="binding_pattern",aD=275,S7="typeof_identifier",oD="ENOTEMPTY",F9=-104,lp=126468,R9=1255,L9=120628,A7="pattern_object_property_string_literal_key",M9=8521,vD="leadingComments",lD=8204,Ua="@ ",q9=70319,Qs="left",U9=188,pp="case",B9=19967,kp=42622,X9=43492,Y9=113770,z9=42774,K9=183,mp=8468,P7="class_implements",hp=126579,l3="string",J9=211,e1=-48,G9=69926,W9=123213,I7="if_consequent_statement",V9=124927,p3="number",$9=126546,Q9=68119,H9=70726,dp=70750,Z9=65489,pD="SpreadElement",kD="callee",mD=193,xg=70492,rg=71934,hD=164,eg=110580,tg=12320,dD=300,yp="any",ue="/",N7="type_guard",I2="body",yD=272,ng=178,_e="pattern",gD="comment_bounds",wD=297,j7="binding_type_identifier",gp=187,C7="pattern_array_rest_element_pattern",wp="@])",ug=12543,ig=11623,_D="start",fg=67871,ie="interface",cg=8449,sg=67637,ag=42961,_p=120085,og=126463,bD="alternate",TD=-1053382366,vg=70143,ED="--",lg=68031,O7="jsx_expression",D7="type_identifier_reference",bp=11647,pg="proto",Pt="identifier",kg=43696,It="raw",mg=126529,hg=11564,Tp=126557,dg=64911,Ep=67592,yg=43493,gg=215,wg=110588,Bl=461894857,_g=92927,bg=67861,Tg=119980,Eg=43042,Sg=66965,Ag=67391,k3="computed",SD="unreachable jsxtext",Pg=71167,Ig=42559,Ng=72966,AD=303,jg=180,PD=197,Sp=64319,Ap=169,ID="*",Xo=129,Cg=66335,Xl="meta",Og=43388,Pp=94178,at="optional",Ip="unknown",Dg=120121,Fg=123180,Np=8469,Rg=68220,ND="|",Lg=43187,Mg=94207,qg=124895,jp=120513,Ug=42527,Yo=8286,Bg=94177,Yl="var",F7="component_type_param",Xg=66421,Yg=92991,zg=68415,R7="comment",L7="match_pattern_array_element",zo=244,Cp="^",Kg=173791,jD=136,Jg=42890,Gg="ENOTDIR",Wg="??",Vg=43711,$g=66303,Qg=113800,Hg=42239,Zg=12703,M7="variance_opt",q7="+",CD=">>>=",Op="mixed",xw=65613,rw=73029,ew=68191,OD="*=",Dp=8487,tw=8477,U7="toplevel_statement_list",Fp="never",Rp="do",Ba=125,nw=72249,DD="Pervasives.do_at_exit",FD="visit_trailing_comment",B7="jsx_closing_element",X7="jsx_namespaced_name",uw=124908,iw=126651,Y7="component_declaration",fw=15,z7="interface_type",K7="function_type_return_annotation",cw=64109,Lp=65595,Mp=126560,sw=110927,qp=65598,Up=8488,Hs="`.",RD=175,Bp="package",Xp="else",Yp=120771,aw=68023,LD="fd ",Ko=8238,zp=888960333,Kp=119965,ow=42655,J7="match_object_pattern",vw=11710,lw=119993,G7="boolean_literal",W7="statement_list",V7="function_param",$7="match_as_pattern",Q7="pattern_object_property_bigint_literal_key",Jp=69959,pw=120485,MD=240,kw=191456,H7="declare_enum",Gp=120597,Wp=70281,Z7="type_annotation",xu="spread_element",Vp=126544,mw=120069,Xa="key",hw=43583,dw="out",yw=` +`,qD="**=",ru="pattern_object_property_pattern",gw="e",ww=72712,UD="Internal Error: Found object private prop",_w="ENOENT",bw=-42,eu="jsx_opening_attribute",Tw=67646,tu="component_type",Ew=64296,Sw=43887,BD="Division_by_zero",XD="EnumDefaultedMember",nu="typeof_member_identifier",Aw=43792,uu="match_member_pattern_property",iu="declare_export_declaration_decl",Pw=93026,fu="type_annotation_hint",Iw=42887,Nw=43881,jw=43761,$p=8526,YD=287,zl=119,Cw=43866,Ow=72847,Dw=8348,fe=101,Fw=94026,Qp=72272,zD="src/parser/flow_lexer.ml",Rw=120744,Jo=8191,m3="implies",Hp=255,Zp=11711,cu="match_unary_pattern_argument",Lw=71235,xk=68116,y2=100,su="match_expression",au="enum_body",rk=1114111,ou="assignment",Mw=71955,ek=43260,vu="pattern_array_e",qw=126583,KD="prefix",lu="class_body",tk="shorthand",Uw=171,Bw=66256,nk=-97,JD=" =",Xw=94032,Yw=42606,zw=71839,uk=120134,Kw=55291,Jw=92862,Gw=43019,Ww=126543,h3="function",Vw=111355,$w=11389,Qw=70753,Hw=43249,Zw=64829,ik="line",pu="function_declaration",fk="undefined",GD="([^/]+)",x_=110947,r_=70002,WD="Cygwin",ku="as_expression",e_=12591,ck=64285,t_=2048,n_=73112,sk=126589,VD=225,ak=43259,$D=266,u_=72817,ok=64318,QD=172,HD=209,mu="match_binding_pattern",hu=" ",du="import_source",Kl="delete",ZD="Enum `",vk=126553,i_=67001,Go="default",f_=11630,c_=206,yu="enum_bigint_member",s_=67504,lk=67593,a_=113791,o_=69572,gu="typeof_type",xF=212,rF="%i",wu="function_this_param",v_=72329,Ya="0x",Wo=8239,l_=75075,eF=277,tF=57343,_u="pattern_bigint_literal",p_=12341,nF=201,Vo="hook",uF=": closedir failed",k_=42959,pk=119970,m_=278,h_=43560,iF="||=",bu="member_private_name",d_=120570,Tu="object_key_identifier",kk=223,fF="Not_found",cF=230,Eu="jsx_element_name_member_expression",Su="string_literal",y_=120596,g_=43807,w_=69687,__=63743,mk=72192,Au="member_property",b_=43262,Pu="class_declaration",sF="renders*",aF="%Li",T_=126578,Iu="jsx_attribute",d3=254,be="empty",Jl="label",Nu="object_internal_slot_property_type",hk=120133,E_=43359,Me="predicate",oF="??=",S_=43697,A_=-43,ju="default_opt",vF="the start of a statement",P_=67826,Cu="object_",Ou="class_element",dk=11631,yk=70855,Du="opaque_type",Fu="number_literal",lF=", ",gk=8319,wk=120004,_k=133,Ru="type_params",Lu="pattern_object_rest_property",X1="import",I_=72e3,N_=67413,j_=12343,C_=70080,Mu="intersection_type",p1=-36,O_=70005,bk="properties",D_=11679,F_=8483,R_=110587,pF=43520,qu="computed_key",kF=207,Uu="class_identifier",L_="Invalid number ",Bu="function_param_pattern",$o=12288,M_=113817,q_=70730,U_=178207,Tk=71236,mF=167,Xu="object_indexer_property_type",B_=64286,hF="TypeAnnotation",dF=220,Yu="type_identifier",zu="spread_property",Ku="jsx_attribute_value_expression",X_=126519,Ek=70108,Sk=126,Ak=42999,za="prototype",Y_=" : flags Open_text and Open_binary are not compatible",yF="**",Pk=43823,z_=": Not a directory",Ju="render_type",Ik=72349,y3="test",K_=43776,J_=92879,G_=11263,gF=241,W_=93052,Gu="nullable_type",V_=43704,$_=64321,wF="Property",Q_=72191,_F=165,Gl="instanceof",H_=69247,bF=302,qe="name",Nk=126634,Z_=8516,jk="typeArguments",xb=71127,Wu="jsx_spread_attribute",rb=66559,eb=44031,tb=43645,t1=8233,nb=71494,ub="opaque",Ck=72967,ib=70106,Vu="logical",TF="@[%s =@ ",Wl="0o",Ok=126554,fb=71351,Dk=8484,cb=72242,Fk=120687,g3=252,sb=183983,Vl="%S",$u="function_this_param_type",Rk="decorators",ab=43255,Qu="catch_clause",Ue="-",ob=67711,EF=": file descriptor already closed",Lk=64311,Mk=120539,vb="arguments",qk=73062,lb=173823,pb=42124,kb=72095,mb=125259,hb=42969,Uk=70280,SF=12520,db=69749,yb=70066,Hu="binary",Zu="for_in_statement",gb=43010,AF="^=",wb=126570,xi="for_statement",Bk=126584,ri="function_return_annotation",_b=72144,bb=8505,ei="class_expression",Tb=120076,Eb=69807,Sb=40981,Ab=-24976191,Pb=72768,Ib=126550,Xk='"',ti="call_type_arg",PF="f",Qo="this",Yk=126628,IF="===",NF=56320,ni="declare_module_exports",Nb=120512,ui=105,jb=119974,Cb=71450,Ob=71942,Db=195,zk=120629,jF="/=",CF=">>",ii="declare_interface",OF=4096,fi="pattern_array_rest_element",Fb=71338,Kk=126520,ci="as_const_expression",DF="Popping lex mode from empty stack",FF="renders?",Rb=68405,si="member",ai="class_extends",Ho=12287,Jk=126590,Lb=66377,Ka="async",oi="pattern_array_element",w3=240,Mb=69864,Zo="readonly",qb=70460,Ub=120779,Bb=66378,vi="new_",Gk=126551,li="pattern_object_rest_property_pattern",pi="for_statement_init",Xb=43595,RF=293,Wk=68296,Yb=120712,zb=64217,Kb=69295,LF="||",Jb=";",Gb=70461,Wb=66939,MF="collect_comments",Vb=279,ki="generic_type",$b=68295,Qb=44002,Vk=72162,mi="object_call_property_type",$k=8305,Qk=119995,Hk="with",hi="class_property",qF="qualification",di="jsx_attribute_name_namespaced",yi="if_statement",gi="typeof_qualified_identifier",UF=238,Hb=65615,BF=176,n1="expression",Zk=126559,wi="jsx_attribute_value",_i="<2>",bi="component_param",x8="Map.bal",r8=132,Zb=70412,xT=70440,XF="<<",e8="finally",YF="v",Ti="syntax_opt",Ei="meta_property",rT=12447,eT=67514,t8=12448,Si="object_mapped_type_property",xv="operator",zF="closedir",Ai="unary_expression",tT=126588,nT=70851,Pi="export_batch_specifier",_3="renders",KF=226,uT=73111,JF=221,Z0="",iT=66927,fT=64967,cT="elements",sT=67640,aT=43754,Ii="declare_export_declaration",oT=-26065557,vT=65855,$l="boolean",Zs="typeof",lT=124902,GF=139,pT=65629,WF=224,kT=43123,n8=70449,mT=12735,K2=107,u8=11719,VF="!=",Ni="call_type_args",b3="asserts",Ja=-46,hT="namespace",ji="match_pattern",Ci="for_of_statement_lhs",i8=126504,dT=69505,f8="for",yT=72703,c8=120127,s8=43471,gT=93047,$F="Undefined_recursive_module",QF=2147483647,Oi="template_literal_element",HF="Unexpected ",wT=101631,_T=65497,a8=68120,Di="import_default_specifier",xn="array",ZF="expressions",bT=110930,xR=204,Fi="while_",Ri="function_rest_param_type",Ga=63,TT=77808,rR="Unexpected token `",mr=114,Li="pattern_object_p",ET=65140,ST=123190,Mi="pattern_object_property_number_literal_key",Ql="enum",qi="conditional_type",Te=113,Ui="array_type",eR="minus",AT=43790,Bi="do_while",PT=11567,IT=11694,Hl=256,NT=119976,Xi="component_body",ce=111,jT=177976,tR=-56,o8=67644,CT=73439,Zl=951901561,nR="?",uR=")",v8=43867,l8=65575,OT=69445,iR="FunctionTypeParam",p8=119996,DT=65019,Yi="conditional",FT=11505,fR=135,RT=71295,LT=12799,MT=67382,zi="type_guard_annotation",Ki="object_key_computed",rn=123,Ji="pattern_object_property_key",qT=119892,UT=67505,BT=66962,Gi="with_",XT=43273,Wi="interface_declaration",k8="bool",YT=71945,zT="declaration",KT=11519,x6=">",JT=66771,m8="}",cR=8472,GT=43014,Vi="declare_function",Br=127,WT="RestElement",sR=190,VT=8467,aR="module",h8=126522,oR="Sys_blocked_io",$i="jsx_opening_element",Qi="object_key_number_literal",vR="|=",lR="mixins",$T=205,pR=217,d8="if",kR="+=",Hi="match_object_pattern_property_key",Zi="match_rest_pattern",xf="export_named_declaration_specifier",y8="try",g8="_bigarr02",QT=70479,en="right",HT=245,ZT=11718,rf="tuple_labeled_element",mR="TypeParameterInstantiation",xE="mkdir",rE=71999,eE=870530776,hR="@[",dR=-908856609,yR=331416730,tE=11670,nE=66735,uE=43709,w8=43642,iE=67002,fE=69375,ef="function_body_any",cE=119807,gR="Assert_failure",tf="function_identifier",sE=65479,r6=131,rv="new",nf="for_of_left_declaration",aE=120084,oE=100343,vE=73030,_8=70452,wR=134,lE=253,pE=42954,_R=227,uf="jsx_member_expression_object",ff="class_property_value",kE=120144,mE=66994,T3="set",hE=126498,cf="tuple_element",sf="arg_list",dE=65481,yE=8511,gE=42964,wE=11492,E3=-25,b8=126555,_E=71039,bE="exportKind",af="program",TE=70187,bR=173,Nt="as",S3=124,TR="visit_leading_comment",EE=110575,of="class_",SE=72440,AE=67897,ER=235,PE=8543,SR=141,vf=120,lf="match_object_pattern_property",e6=1024,IE=101640,AR=1027,PR=236,A3=246,IR="(",NE=66511,pf="regexp_literal",jE=65574,CE=43513,OE=43695,NR="&&",T8=11558,DE=66503,FE=93071,kf="pattern_expression",RE=65381,E8=126538,LE=12292,mf="import_namespace_specifier",hf="match_statement_case",ME=67583,qE=120137,UE=69622,BE=120770,XE=71131,ev=8287,YE=110590,zE=65135,KE="Fatal error: exception ",P3=118,JE=181,S8=11687,k1="camlinternalFormat.ml",GE=72959,WE=249,df="union_type",jR=8206,VE=73064,$E=70271,QE=92728,A8=65344,P8=11695,yf="class_decorator",HE="the end of an expression statement (`;`)",ZE=177983,xS=8457,CR=931,rS=66499,eS=94175,OR="#",DR=151,tS="Identifier",gf="for_in_statement_lhs",wf="pattern_string_literal",I8=70302,N8=126496,nS=66461,uS=82943,j8=8450,iS=72271,fS=70853,cS="of",FR="Stack_overflow",t6="hasUnknownMembers",n6="a",_f="variable_declarator_pattern",sS=73061,aS=77711,C8=64317,oS=73097,bf="enum_declaration",vS=66966,O8=189,lS=119964,Tf="type_param",jt=782176664,D8=65535,RR=-10,pS=64433,F8=43815,R8=94031,L8=73065,kS=69958,M8="property",Ef="jsx_children",Sf="member_property_identifier",mS=42537,u6="const",hS=70278,Af="enum_string_member",i6="local",Pf="jsx_element_name_identifier",dS=68223,q8="",yS=119967,U8=119994,gS=66993,If="jsx_member_expression_identifier",B8="explicitType",wS=67589,_S=65597,bS="exported",TS=94111,ES=113775,Nf="object_spread_property_type",SS=64847,jf="component_identifier",Cf="class_implements_interface",LR=162,MR=243,AS=12783,qR=`Fatal error: exception %s +`,X8=120093,f6="column",Of="component_rest_param",PS=70451,IS=70312,NS=69967,Y8=70279,jS=66463,CS=92975,z8=70286,Df="pattern_object_property_computed_key",Ff="object_key_string_literal",OS="jsError",Rf="type_args",DS=8304,UR="==",tv=115,Lf="declare_component",FS=120092,RS=43638,LS=66811,MS=43334,qS=66863,US=77823,Mf="optional_call",BS=126562,K8=70162,Be=104,XS=66963,nv="await",J8=70107,Y1="0",YS=72250,zS=8507,BR=291,KS=100351,G8="AssignmentPattern",qf="type",XR="%u",Uf="function_expression_or_method",JS=43470,YR=242,zR="camlinternalMod.ml",Bf="match_or_pattern",GS=72750,WS=69414,VS=65370,Xf="syntax",KR=32752,$S=42963,JR="End_of_file",QS=12294,HS=8471,GR="elementType",ZS=43782,WR="++",xA=43641,rA=71944,eA=126601,tA=78894,nA=-45,uv="null",VR=177,$R="satisfies",uA=131071,Yf="import_specifier",zf="class_method",Kf="type_",iA=126514,fA=8454,QR="inexact",cA=67807,sA=8525,aA=65470,oA=71352,Jf="tuple_spread_element",vA=219,lA="abstract",pA=73458,Xe="return",c6=65536,W8=126548,Gf="array_element",kA=-253313196,mA=186,V8="catch",Wf="infer_type",hA=12295,HR="Invalid legacy octal ",dA=69762,yA=43311,gA=65437,Vf="variable_declaration",ZR=-696510241,$f="function_params",xL=307,wA=64316,$8=11565,rL="infinity",_A="@]",bA=65908,Qf="extends",TA=66204,EA=43784,SA=11742,Q8=126503,Ye="debugger",AA=70457,xa=-86,s6=912068366,PA=68786,H8="keyof",Z8=69415,IA=12686,tn=127343600,Hf="declare_type_alias",eL="the",tL=233,Zf="jsx_element_name_namespaced",NA=72283,nL=161,xc="function_param_type",Ct=128,jA=-673950933,xm=126591,uL="Sys_error",CA=74649,OA=74862,a6="is",DA=43738,FA=68479,iL=196,rm=70854,rc="enum_boolean_member",ec="match_expression_case",em=72163,RA=92783,fL=281,tc="component_param_name",LA=68863,nn=32768,cL=2048,MA=64284,sL="@{",qA="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",tm=8455,nc="update_expression",UA=65500,o6="from",BA=68447,nm=12592,XA=92766,aL=">>=",z1=110,YA=66431,zA=43586,uc="jsx_identifier",KA=" : file already exists",M2=128,JA=71958,GA=66717,ic="enum_boolean_body",WA=64262,Vr="id",fc="component_renders_annotation",VA=42888,$A=8584,QA=73008,cc="enum_symbol_body",sc="declare_namespace",um=72713,HA=55215,ac="object_property_value_type",oc="for_in_assignment_pattern",im=8485,ZA=43395,oL=229,ra="true",xP=43743,vc="enum_number_member",vL=234,rP=72969,lL="expected *",g1=102,pL=200,v6="symbol",iv="source",eP=43714,lc="jsx_fragment",pc="jsx_attribute_name_identifier",l6="public",tP=43442,kc="pattern_object_property",nP=65786,uP=70783,iP=43713,fP=72160,kL="*-/",mc="export_named_specifier",hc="arrow_function",cP=122623,fm=70006,mL="${",sP=43814,dc="generic_qualified_identifier_type",hL=199,yc="jsx_spread_child",cm=8489,p6=184,dL=2047,aP=66955,gc="try_catch",oP=70497,yL=237,vP=67431,lP=125183,gL=-602162310,un="params",pP="consequent",kP=68029,mP=67829,hP=68095,wc="enum_string_body",dP=93823,yP=68351,gP=65495,_c="declare_module",bc="body_expression",wP=66175,wL=191,sm=70441,am=65141,om="&",Tc="super_expression",vm=126564,_P=72105,vS0="fs",ze="throw",bP=68287,TP=67839,Wa=116,EP=110882,SP=69404,AP=123197,fv=65279,I3="src/parser/type_parser.ml",PP=68115,_L=259,lm=126547,pm=126556,IP=73055,Ec="member_property_expression",Sc="enum_defaulted_member",NP=43071,jP=11726,Ac="component_type_rest_param",CP=68607,Pc="object_key",bL=160,K1="variance",OP=70655,DP=70414,N3="super",FP=123583,RP=65594,k6="method",LP=73648,m6=121,MP=93951,Ic="pattern_array_element_pattern",qP=43764,UP=42993,km=120145,BP=74879,XP=168,mm=8486,YP=72001,Nc="tagged_template",jc="module_ref_literal",zP=65312,cv="implements",KP=43700,JP=120003,TL="Invalid_argument",Cc=16777215,GP=83526,hm=69744,dm=12336,Oc="switch_case",EL=-61,Dc="optional_member",WP=64274,ym=64322,gm=126530,VP=71998,wm=72970,$P=13311,QP=73647,HP=120074,j3="let",Fc="expression_statement",Rc="component_type_params",ZP=512,xI=69634,rI=67461,eI=123627,tI=64913,SL="children",AL="PropertyDefinition",PL=1026,IL="%li",Lc="declare_class",nI=43258,Mc="indexed_access_type",NL=157,uI=124926,ea=112,iI="b",qc="predicate_expression",Uc="if_alternate_statement",h6="private",jL=-594953737,CL=140,fI="nan",cI=72103,_m=11735,Bc="statement",sI="rmdir",bm=66512,aI="match",OL=198,oI=11734,Xc="import_named_specifier",vI=69599,lI=68799,pI=194559,Yc="match_array_pattern",DL=174,zc="function_",Kc="bigint_literal",n2=248,Tm=67638,Em=126539,kI=11557,FL=214,mI=5760,Ke="break",fn="block",Jc="match_member_pattern",hI=123565,dI=66815,g2="value",RL=1039100673,yI=69746,gI=70448,wI=74751,Gc="init",_I=69551,Sm=65548,Wc="jsx_member_expression",Am=68096,sv=108,Pm=126521,bI=71487,Vc="match_statement",TI=178205,EI=12548,LL=" : is a directory",cn=".",SI=12348,C3=-835925911,J1="typeParameters",AI=66855,u1="typeAnnotation",av="bigint",$c="jsx_attribute_value_literal",PI=194,ML="T_JSX_TEXT",II=68466,Im=126537,qL=67714067,NI=69487,UL=271,Nm="export",jI=43822,jm=126499,CI=55242,Qc="member_type_identifier",OI=138,DI=71679,d6=130,FI=12438,RI=119969,Cm=12539,LI=119972,BL=",",MI=71423,qI="index out of bounds",Je=106,O3="%d",XL="T_RENDERS_QUESTION",Om=120571,Dm="returnType",UI=69423,Fm=120070,YL="%",y6=117,zL=179,BI="EBADF",XI=93759,Rm=64325,Hc="component_params",YI=66517,zI=67423,KI=605857695,JI=43518,KL=251,Zc="for_of_statement",GI=71983,JL="~",WI=12442,Ge="switch",VI=66207,Lm=126535,GL="&&=",$I=69289,QI=71723,xs="generic_identifier_type",HI=126619,rs="object_type_property_setter",ZI=70418,WL="<=",xN=125251,rN=11702,es="enum_number_body",D3=250,eN=124910,tN=69297,nN=67455,uN=42511,ts="ts_satisfies",VL=286,iN=68324,Mm="an identifier",fN=126534,sn=103,cN=120126,F3=449540197,g6="declare",sN=68899,aN=126502,ns="function_expression",$L=142,oN=123135,vN=67967,lN=120487,pN=120686,us="export_named_declaration",kN=66348,qm=119981,mN=12352,is="tuple_type",hN=68680,Um="target",fs="call";function dz(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function yz(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;tx.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new er(x,r,e)},er.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new er(r,e,t)},er.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new er(r,e,t)},er.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*xM|0)+this.mi*x.lo+this.lo*x.mi,t=(e*xM|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new er(r,e,t)},er.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},er.prototype.isNeg=function(){return this.hi<<16<0},er.prototype.and=function(x){return new er(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},er.prototype.or=function(x){return new er(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},er.prototype.xor=function(x){return new er(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},er.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new er(this.lo<>24-x,this.hi<>24-x):x<48?new er(0,this.lo<>48-x):new er(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new er(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new er(this.hi>>x-48,0,0)},er.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new er(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new er(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&Zt):new er(this.hi<<16>>x-32,e,e)},er.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&Cc,this.lo=this.lo<<1&Cc},er.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&Cc,this.mi=(this.mi>>>1|this.hi<<23)&Cc,this.hi=this.hi>>>1},er.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new er(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},er.prototype.div=function(x){var r=this;x.isZero()&&eM();var e=r.hi^x.hi;r.hi&nn&&(r=r.neg()),x.hi&nn&&(x=x.neg());var t=r.udivmod(x).quotient;return e&nn&&(t=t.neg()),t},er.prototype.mod=function(x){var r=this;x.isZero()&&eM();var e=r.hi;r.hi&nn&&(r=r.neg()),x.hi&nn&&(x=x.neg());var t=r.udivmod(x).modulus;return e&nn&&(t=t.neg()),t},er.prototype.toInt=function(){return this.lo|this.mi<<24},er.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},er.prototype.toArray=function(){return[this.hi>>8,this.hi&Js,this.mi>>16,this.mi>>8&Js,this.mi&Js,this.lo>>16,this.lo>>8&Js,this.lo&Js]},er.prototype.lo32=function(){return this.lo|(this.mi&Js)<<24},er.prototype.hi32=function(){return this.mi>>>8&Zt|this.hi<<16};function Tz(x,r){return new er(x&Cc,x>>>24&Js|(r&Zt)<<8,r>>>16&Zt)}function gN(x){return x.hi32()}function wN(x){return x.lo32()}function w6(){i1(qI)}var Ez=g8;function Va(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}Va.prototype.caml_custom=Ez,Va.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||i1("bigarray.js: invalid offset"),this.dims.length!=x.length&&i1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&w6(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&w6(),r=r*this.dims[e]+(x[e]-1);return r},Va.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return Tz(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[d3,t,u];default:return this.data[x]}},Va.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=wN(r),this.data[x*2+1]=gN(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},Va.prototype.fill=function(x){switch(this.kind){case 7:var r=wN(x),e=gN(x);if(r==e)this.data.fill(r);else for(var t=0;tc)return 1;if(i!=c){if(!r)return NaN;if(i==i)return 1;if(c==c)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function L3(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}L3.prototype=new Va,L3.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:i1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&w6(),x},L3.prototype.get=function(x){return this.data[x]},L3.prototype.set=function(x,r){return this.data[x]=r,0},L3.prototype.fill=function(x){return this.data.fill(x),0};function _N(x,r,e,t){var u=HL(x);return Xm(e)*u!=t.length&&i1("length doesn't match dims"),r==0&&e.length==1&&u==1?new L3(x,r,e,t):new Va(x,r,e,t)}function tM(x){return x.slice(1)}function Sz(x,r,e){var t=tM(e),u=ZL(x,Xm(t));return _N(x,r,t,u)}function _6(x,r,e){return x.set(x.offset(r),e),0}function b6(x,r,e){var t=String.fromCharCode;if(r==0&&e<=OF&&e==x.length)return t.apply(null,x);for(var u=Z0;0=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?b6(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?b6(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Ym(e);var i=x.c,c=e.c;if(x.t==4)if(t<=r)for(var v=0;v=0;v--)c[t+v]=i[r+v];else{for(var a=Math.min(u,i.length-r),v=0;v>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function zm(x){x.t==2?x.c+=M3(x.l-x.c.length,"\0"):x.c=b6(x.c,0,x.c.length),x.t=0}function bN(x){if(x.length<24){for(var r=0;rBr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function nM(x){for(var r=Z0,e=Z0,t,u,i,c,v=0,a=x.length;vZP?(e.substr(0,1),r+=e,e=Z0,r+=x.slice(v,l)):e+=x.slice(v,l),l==a)break;v=l}c=1,++v=55295&&c<57344)&&(c=2)):(c=3,++v1114111)&&(c=3)))))),c<4?(v-=c,e+="\uFFFD"):c>Zt?e+=String.fromCharCode(55232+(c>>10),NF+(c&1023)):e+=String.fromCharCode(c),e.length>e6&&(e.substr(0,1),r+=e,e=Z0)}return r+e}function na(x,r,e){this.t=x,this.c=r,this.l=e}na.prototype.toString=function(){switch(this.t){case 9:return this.c;default:zm(this);case 0:if(bN(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},na.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:nM(x)},na.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new na(this.t,x,this.l)};function uM(x){return new na(0,x,x.length)}function pS0(x){return x}function Ot(x){return uM(x)}function cs(x,r,e,t,u){return ta(Ot(x),r,e,t,u),0}function q3(x){return new er(x[7]<<0|x[6]<<8|x[5]<<16,x[4]<<0|x[3]<<8|x[2]<<16,x[1]<<0|x[0]<<8)}function se(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function TN(){i1(qI)}function Az(x,r){r>>>0>=x.l-7&&TN();for(var e=new Array(8),t=0;t<8;t++)e[7-t]=se(x,r+t);return q3(e)}function Xr(x,r,e){if(e&=Js,x.t!=4){if(r==x.c.length)return x.c+=String.fromCharCode(e),r+1==x.l&&(x.t=0),0;Ym(x)}return x.c[r]=e,0}function ua(x,r,e){return r>>>0>=x.l&&TN(),Xr(x,r,e)}function U3(x){return x.toArray()}function Pz(x,r,e){r>>>0>=x.l-7&&TN();for(var t=U3(e),u=0;u<8;u++)Xr(x,r+7-u,t[u]);return 0}function ss(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:ss(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var l=new Array(t+1),m=0;m>>0>=x.length-1&&w6(),x}function Iz(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function Nz(x){return x==HT?1:0}var jz=Math.log2&&Math.log2(11235582092889474e291)==1020;function Cz(x){if(jz)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function EN(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}function ot(x,r,e){return new er(x,r,e)}function Km(x){if(!isFinite(x))return isNaN(x)?ot(1,0,KR):x>0?ot(0,0,KR):ot(0,0,65520);var r=x==0&&1/x==-1/0?nn:x>=0?0:nn;r&&(x=-x);var e=Cz(x)+1023;e<=0?(e=0,x/=Math.pow(2,-PL)):(x/=Math.pow(2,e-AR),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var c=x|0;return u=u&fw|r|e<<4,ot(c,i,u)}function iM(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==g8)for(var t=0;t>4;if(u==dL)return r|e|t&fw?NaN:t&nn?-1/0:1/0;var i=Math.pow(2,-24),c=(r*i+e)*i+(t&fw);return u>0?(c+=16,c*=Math.pow(2,u-AR)):c*=Math.pow(2,-PL),t&nn&&(c=-c),c}function W1(x){G1.Failure||(G1.Failure=[n2,gd,-3]),yN(G1.Failure,x)}function fM(x,r,e){var t=x.read32s();(t<0||t>16)&&W1("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Js,c=u>>8&1,v=[];if(e==g8)for(var a=0;a>>17,r=sM(r,461845907),x^=r,x=x<<13|x>>>19,(x+(x<<2)|0)+-430675100|0}function Oz(x,r){return x=ia(x,wN(r)),x=ia(x,gN(r)),x}function aM(x,r){return Oz(x,Km(r))}function oM(x){var r=Xm(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>Hl&&(r=Hl);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=ia(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=ia(e,t)}break;case 4:case 5:r>M2&&(r=M2);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=ia(e,t);r&1&&(e=ia(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function IN(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function NN(x){return x instanceof na}function pM(x){if(typeof x=="number")return ql;if(NN(x))return g3;if(IN(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=Hp){var r=x[0]|0;return r==d3?0:r}else{if(x instanceof String)return SF;if(typeof x=="string")return SF;if(x instanceof Number)return ql;if(x&&x.caml_custom)return R9;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function We(x,r){return xr?1:0}function Uz(x,r){return x.t&6&&zm(x),r.t&6&&zm(r),x.cr.c?1:0}function Jm(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=pM(x);if(u==D3){x=x[1];continue}var i=pM(r);if(i==D3){r=r[1];continue}if(u!==i)return u==ql?i==R9?lM(x,r,-1,e):-1:i==ql?u==R9?lM(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(Nz(u)){i1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=Z0,x.t=2):(x.c=M3(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Ym(x),e+=r;r0&&r===r||(x=x.replace(/_/g,Z0),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,Z0),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;W1("float_of_string")}function CN(x){x=x;var r=x.length;r>31&&i1("format_int: format too long");for(var e={justify:q7,signstyle:Ue,filler:hu,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:PF},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function ON(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Ue)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=Z0;if(x.justify==q7&&x.filler==hu)for(var u=e;u20?(T-=20,m/=Math.pow(10,T),m+=new Array(T+1).join(Y1),h>0&&(m=m+cn+new Array(h+1).join(Y1)),m):m.toFixed(h)}var t,u=CN(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=fI,u.filler=hu;else if(!isFinite(r))t="inf",u.filler=hu;else switch(u.conv){case"e":var t=r.toExponential(i),c=t.length;t.charAt(c-3)==gw&&(t=t.slice(0,c-1)+Y1+t.slice(c-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var v=t.indexOf(gw),a=+t.slice(v+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var c=v-1;t.charAt(c)==Y1;)c--;t.charAt(c)==cn&&c--,t=t.slice(0,c+1)+t.slice(v),c=t.length,t.charAt(c-3)==gw&&(t=t.slice(0,c-1)+Y1+t.slice(c-1));break}else{var l=i;if(a<0)l-=a+1,t=r.toFixed(l);else for(;t=r.toFixed(l),t.length>i+1;)l--;if(l){for(var c=t.length-1;t.charAt(c)==Y1;)c--;t.charAt(c)==cn&&c--,t=t.slice(0,c+1)}}break}return ON(u,t)}function Wm(x,r){if(x==O3)return Z0+r;var e=CN(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=hu;var u=e.prec-t.length;u>0&&(t=M3(u,Y1)+t)}return ON(e,t)}var hM=0;function as(){return hM++}function dM(){return[0]}var Vm=[];function Bx(x,r,e){var t=x[1],u=Vm[e];if(u===void 0)for(var i=Vm.length;i>1|1,rZP?(e.substr(0,1),r+=e,e=Z0,r+=x.slice(i,v)):e+=x.slice(i,v),v==c)break;i=v}t>6),e+=String.fromCharCode(Ct|t&Ga)):t<55296||t>=tF?e+=String.fromCharCode(WF|t>>12,Ct|t>>6&Ga,Ct|t&Ga):t>=56319||i+1==c||(u=x.charCodeAt(i+1))tF?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(MD|t>>18,Ct|t>>12&Ga,Ct|t>>6&Ga,Ct|t&Ga)),e.length>e6&&(e.substr(0,1),r+=e,e=Z0)}return r+e}function Dt(x){return bN(x)?x:Kz(x)}function Jz(x,r,e){if(!isFinite(x))return isNaN(x)?Dt(fI):Dt(x>0?rL:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?Z0:q7,c=Z0;if(t)c=Ue;else switch(e){case 43:c=q7;break;case 32:c=hu;break;default:break}if(r>=0&&r<13){var v=Math.pow(2,r*4);x=Math.round(x*v)/v}var a=x.toString(16);if(r>=0){var l=a.indexOf(cn);if(l<0)a+=cn+M3(r,Y1);else{var m=l+1+r;a.length>24&Cc,x>>31&Zt)}function Wz(x){return x.toInt()}function Vz(x){return+x.isNeg()}function FN(x){return x.neg()}function yM(x,r){var e=CN(x);e.signedconv&&Vz(r)&&(e.sign=-1,r=FN(r));var t=Z0,u=T6(e.base),i="0123456789abcdef";do{var c=r.udivmod(u);r=c.quotient,t=i.charAt(Wz(c.modulus))+t}while(!Gz(r));if(e.prec>=0){e.filler=hu;var v=e.prec-t.length;v>0&&(t=M3(v,Y1)+t)}return ON(e,t)}function Nx(x){return x.length}function J0(x,r){return x.charCodeAt(r)}function gM(x,r){return x.add(r)}function wM(x,r){return x.mul(r)}function RN(x,r){return x.ucompare(r)<0}function _M(x){var r=0,e=Nx(x),t=10,u=1;if(e>0)switch(J0(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=s2?x-87:-1}function ov(x){var r=_M(x),e=r[0],t=r[1],u=r[2],i=T6(u),c=new er(Cc,268435455,Zt).udivmod(i).quotient,v=J0(x,e),a=$m(v);(a<0||a>=u)&&W1(Ks);for(var l=T6(a);;)if(e++,v=J0(x,e),v!=95){if(a=$m(v),a<0||a>=u)break;RN(c,l)&&W1(Ks),a=T6(a),l=gM(wM(i,l),a),RN(l,a)&&W1(Ks)}return e!=Nx(x)&&W1(Ks),u==10&&RN(new er(0,0,nn),l)&&W1(Ks),t<0&&(l=FN(l)),l}function bM(x,r){return x.or(r)}function Qm(x){return x.toFloat()}function vt(x){var r=_M(x),e=r[0],t=r[1],u=r[2],i=Nx(x),c=-1>>>0,v=e=u)&&W1(Ks);var l=a;for(e++;e=u)break;l=u*l+a,l>c&&W1(Ks)}return e!=i&&W1(Ks),l=t*l,u==10&&(l|0)!=l&&W1(Ks),l|0}function Jx(x){return bN(x)?x:nM(x)}function $z(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function Hz(x){return function(){for(var r=Qz(x),e=new Array(r),t=0;t>>0&&LN(x,A3,zo)?0:1}function rK(x){return LN(x,zo,D3),0}function eK(x,r){return+(Jm(x,r,!1)<0)}function TM(x){return x}function tK(x,r){return x.get(x.offset(r))}function nK(x,r){return x.xor(r)}function uK(x,r){return x.shift_right_unsigned(r)}function iK(x,r){return x.shift_left(r)}function Zm(x){function r(B,K){return iK(B,K)}function e(B,K){return uK(B,K)}function t(B,K){return bM(B,K)}function u(B,K){return nK(B,K)}function i(B,K){return gM(B,K)}function c(B,K){return wM(B,K)}function v(B,K){return t(r(B,K),e(B,64-K))}function a(B,K){return tK(B,K)}function l(B,K,n0){return _6(B,K,n0)}var m=ov(TM("0xd1342543de82ef95")),h=ov(TM("0xdaba0b6eb09322e3")),T,M,z,b=x,N=a(b,0),j=a(b,1),I=a(b,2),F=a(b,3);T=i(j,I),T=c(u(T,e(T,32)),h),T=c(u(T,e(T,32)),h),T=u(T,e(T,32)),l(b,1,i(c(j,m),N));var M=I,z=F;return z=u(z,M),M=v(M,24),M=u(u(M,z),r(z,16)),z=v(z,37),l(b,2,M),l(b,3,z),T}function $a(e,r){e<0&&w6();var e=e+1|0,t=new Array(e);t[0]=0;for(var u=1;u>>32-m,a)}function e(c,v,a,l,m,h,T){return r(v&a|~v&l,c,v,m,h,T)}function t(c,v,a,l,m,h,T){return r(v&l|a&~l,c,v,m,h,T)}function u(c,v,a,l,m,h,T){return r(v^a^l,c,v,m,h,T)}function i(c,v,a,l,m,h,T){return r(a^(v|~l),c,v,m,h,T)}return function(c,v){var a=c[0],l=c[1],m=c[2],h=c[3];a=e(a,l,m,h,v[0],7,3614090360),h=e(h,a,l,m,v[1],12,3905402710),m=e(m,h,a,l,v[2],17,606105819),l=e(l,m,h,a,v[3],22,3250441966),a=e(a,l,m,h,v[4],7,4118548399),h=e(h,a,l,m,v[5],12,1200080426),m=e(m,h,a,l,v[6],17,2821735955),l=e(l,m,h,a,v[7],22,4249261313),a=e(a,l,m,h,v[8],7,1770035416),h=e(h,a,l,m,v[9],12,2336552879),m=e(m,h,a,l,v[10],17,4294925233),l=e(l,m,h,a,v[11],22,2304563134),a=e(a,l,m,h,v[12],7,1804603682),h=e(h,a,l,m,v[13],12,4254626195),m=e(m,h,a,l,v[14],17,2792965006),l=e(l,m,h,a,v[15],22,1236535329),a=t(a,l,m,h,v[1],5,4129170786),h=t(h,a,l,m,v[6],9,3225465664),m=t(m,h,a,l,v[11],14,643717713),l=t(l,m,h,a,v[0],20,3921069994),a=t(a,l,m,h,v[5],5,3593408605),h=t(h,a,l,m,v[10],9,38016083),m=t(m,h,a,l,v[15],14,3634488961),l=t(l,m,h,a,v[4],20,3889429448),a=t(a,l,m,h,v[9],5,568446438),h=t(h,a,l,m,v[14],9,3275163606),m=t(m,h,a,l,v[3],14,4107603335),l=t(l,m,h,a,v[8],20,1163531501),a=t(a,l,m,h,v[13],5,2850285829),h=t(h,a,l,m,v[2],9,4243563512),m=t(m,h,a,l,v[7],14,1735328473),l=t(l,m,h,a,v[12],20,2368359562),a=u(a,l,m,h,v[5],4,4294588738),h=u(h,a,l,m,v[8],11,2272392833),m=u(m,h,a,l,v[11],16,1839030562),l=u(l,m,h,a,v[14],23,4259657740),a=u(a,l,m,h,v[1],4,2763975236),h=u(h,a,l,m,v[4],11,1272893353),m=u(m,h,a,l,v[7],16,4139469664),l=u(l,m,h,a,v[10],23,3200236656),a=u(a,l,m,h,v[13],4,681279174),h=u(h,a,l,m,v[0],11,3936430074),m=u(m,h,a,l,v[3],16,3572445317),l=u(l,m,h,a,v[6],23,76029189),a=u(a,l,m,h,v[9],4,3654602809),h=u(h,a,l,m,v[12],11,3873151461),m=u(m,h,a,l,v[15],16,530742520),l=u(l,m,h,a,v[2],23,3299628645),a=i(a,l,m,h,v[0],6,4096336452),h=i(h,a,l,m,v[7],10,1126891415),m=i(m,h,a,l,v[14],15,2878612391),l=i(l,m,h,a,v[5],21,4237533241),a=i(a,l,m,h,v[12],6,1700485571),h=i(h,a,l,m,v[3],10,2399980690),m=i(m,h,a,l,v[10],15,4293915773),l=i(l,m,h,a,v[1],21,2240044497),a=i(a,l,m,h,v[8],6,1873313359),h=i(h,a,l,m,v[15],10,4264355552),m=i(m,h,a,l,v[6],15,2734768916),l=i(l,m,h,a,v[13],21,1309151649),a=i(a,l,m,h,v[4],6,4149444226),h=i(h,a,l,m,v[11],10,3174756917),m=i(m,h,a,l,v[2],15,718787259),l=i(l,m,h,a,v[9],21,3951481745),c[0]=x(a,c[0]),c[1]=x(l,c[1]),c[2]=x(m,c[2]),c[3]=x(h,c[3])}}();function cK(x,r,e){var t=x.len&Ga,u=0;if(x.len+=e,t){var i=64-t;if(e=64;)x.b8.set(r.subarray(u,u+64),0),x5(x.w,x.b32),e-=64,u+=64;e&&x.b8.set(r.subarray(u,u+e),0)}function sK(x){var r=x.len&Ga;if(x.b8[r]=Ct,r++,r>56){for(var e=r;e<64;e++)x.b8[e]=0;x5(x.w,x.b32);for(var e=0;e<56;e++)x.b8[e]=0}else for(var e=r;e<56;e++)x.b8[e]=0;x.b32[14]=x.len<<3,x.b32[15]=x.len>>29&536870911,x5(x.w,x.b32);for(var t=new Uint8Array(16),u=0;u<4;u++)for(var e=0;e<4;e++)t[u*4+e]=x.w[u]>>8*e&255;return t}function MN(x){return x.t!=4&&Ym(x),x.c}function aK(x){return b6(x,0,x.length)}function oK(x,r,e){var t=fK(),u=MN(x);return cK(t,u.subarray(r,r+e),e),aK(sK(t))}function vK(x,r,e){return oK(Ot(x),r,e)}function Ft(x){return x.l}function lK(){return 0}function jr(x){yN(G1.Sys_error,x)}var fa=new Array;function an(x){var r=fa[x];return r.opened||jr("Cannot flush a closed channel"),!r.buffer||r.buffer_curr==0||(r.output?r.output(b6(r.buffer,0,r.buffer_curr)):r.file.write(r.offset,r.buffer,0,r.buffer_curr),r.offset+=r.buffer_curr,r.buffer_curr=0),0}function EM(){}function kS0(x){for(var r=Nx(x),e=new Uint8Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var hK=["E2BIG","EACCES","EAGAIN",BI,"EBUSY","ECHILD","EDEADLK","EDOM",FO,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",_w,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",Gg,oD,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function ca(x,r,e,t){var u=hK.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Dt(r||Z0),Dt(e||Z0)];return i}var AM={};function Qa(x){return AM[x]}function sa(x,r){throw W0([0,x].concat(r))}function UN(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new na(4,x,x.length)}function PM(x){jr(x+Q4)}function ae(x){this.data=x}ae.prototype=new EM,ae.prototype.constructor=ae,ae.prototype.truncate=function(x){var r=this.data;this.data=S2(x|0),ta(r,0,this.data,0,x)},ae.prototype.length=function(){return Ft(this.data)},ae.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=S2(x+t),c=this.data;this.data=i,ta(c,0,this.data,0,u)}return ta(UN(r),e,this.data,x,t),0},ae.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=S2(t|0);ta(this.data,x,i,0,t),r.set(MN(i),e)}return t};function vv(x,r,e){this.file=r,this.name=x,this.flags=e}vv.prototype.err_closed=function(){jr(this.name+EF)},vv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},vv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},vv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},vv.prototype.close=function(){this.file=void 0};function w1(x,r){this.content={},this.root=x,this.lookupFun=r}w1.prototype.nm=function(x){return this.root+x},w1.prototype.create_dir_if_needed=function(x){for(var r=x.split(ue),e=Z0,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=S2(t);return ta(UN(r),e,u,0,t),this.log(u.toUtf16()),0}jr(this.fd+EF)},A6.prototype.read=function(x,r,e,t){jr(this.fd+": file descriptor is write only")},A6.prototype.close=function(){this.log=void 0};function t5(x,r){return r==null&&(r=r5.length),r5[r]=x,r|0}function mS0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&jr(x+Sy),t.text&&t.binary&&jr(x+Y_);var u=dK(x),i=u.device.open(u.rest,t);return t5(i,void 0)}(function(){function x(r,e){return E6()?pK(r,e):new A6(r,e)}t5(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),t5(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),t5(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function yK(x){var r=r5[x];r.flags.wronly&&jr(LD+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(c6),refill:e};return fa[t.fd]=t,t.fd}function NM(x){var r=r5[x];r.flags.rdonly&&jr(LD+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(c6),buffered:e};return fa[t.fd]=t,t.fd}function gK(){for(var x=0,r=0;ru.buffer.length){var i=new Uint8Array(u.buffer_curr+r.length);i.set(u.buffer),u.buffer=i}switch(u.buffered){case 0:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,an(x);break;case 1:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&an(x);break;case 2:var c=r.lastIndexOf(10);c<0?(u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&an(x)):(u.buffer.set(r.subarray(0,c+1),u.buffer_curr),u.buffer_curr+=c+1,an(x),u.buffer.set(r.subarray(c+1),u.buffer_curr),u.buffer_curr+=r.length-c-1);break}return 0}function _K(x,u,e,t){var u=MN(u);return wK(x,u,e,t)}function BN(x,r,e,t){return _K(x,Ot(r),e,t)}function jM(x,r){var e=String.fromCharCode(r);return BN(x,e,0,1),0}function lv(x,r){return+(Jm(x,r,!1)!=0)}function XN(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function pv(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:NN(x)||IN(x)?g3:x instanceof Function||typeof x=="function"?ep:x&&x.caml_custom?Hp:ql}function bK(x){var r={};if(x)for(var e=1;e=0?x=u:W1("caml_register_global: cannot locate "+t)}}G1[x+1]=r,e&&(G1[e]=r)}function YN(x,r){return AM[x]=r,0}function TK(x){return x[2]=hM++,x}function br(x,r){return x===r?1:0}function EK(){i1(qI)}function q2(x,r){return r>>>0>=Nx(x)&&EK(),J0(x,r)}function P(x,r){return 1-br(x,r)}function _1(x){return x.t&6&&zm(x),x.c}function SK(){return 2147483647/4|0}var AK=o0.process&&o0.process.platform&&o0.process.platform==_O?WD:"Unix";function PK(){return[0,AK,32,0]}function IK(){rM(G1.Not_found)}function CM(x){var r=QL(Jx(x));return r===void 0&&IK(),Dt(r)}function NK(){if(o0.crypto){if(o0.crypto.getRandomValues){var x=o0.crypto.getRandomValues(new Int32Array(4));return[0,x[0],x[1],x[2],x[3]]}else if(o0.crypto.randomBytes){var x=new Int32Array(o0.crypto.randomBytes(16).buffer);return[0,x[0],x[1],x[2],x[3]]}}var r=new Date().getTime(),e=r^4294967295*Math.random();return[0,e]}function n5(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function J2(x,r){return{joo_tramp:x,joo_args:r}}function Fr(x,r){if(r.fun)return x.fun=r.fun,0;if(typeof r=="function")return x.fun=r,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function U2(x){{if(x instanceof Array)return x;var r;return o0.RangeError&&x instanceof o0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||o0.InternalError&&x instanceof o0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=G1.Stack_overflow:x instanceof o0.Error&&Qa(OS)?r=[0,Qa(OS),x]:r=[0,G1.Failure,Dt(String(x))],x instanceof o0.Error&&(r.js_error=x),r}}function jK(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function CK(x){var r=Z0;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&jK(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=IR;for(var u=e;ue&&(r+=lF);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof na||typeof i=="string"?r+=Xk+i.toString()+Xk:r+=qo}r+=uR}else x[0]==n2&&(r+=x[1]);return r}function OM(x){if(x instanceof Array&&(x[0]==0||x[0]==n2)){var r=Qa(qO);if(r)Hm(r,[x,!1]);else{var e=CK(x),t=Qa(DD);if(t&&Hm(t,[0]),console.error(KE+e),x.js_error)throw x.js_error}}else throw x}function OK(){var x=o0.process;x&&x.on?x.on("uncaughtException",function(r,e){OM(r),x.exit(2)}):o0.addEventListener&&o0.addEventListener("error",function(r){r.error&&OM(r.error)})}OK();function d(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):ss(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):ss(x,[r,e])}function H0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):ss(x,[r,e,t])}function zN(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):ss(x,[r,e,t,u])}function KN(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):ss(x,[r,e,t,u,i])}function P6(x,r,e,t,u,i,c){return(x.l>=0?x.l:x.l=x.length)==6?x(r,e,t,u,i,c):ss(x,[r,e,t,u,i,c])}function DK(x,r,e,t,u,i,c,v){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,c,v):ss(x,[r,e,t,u,i,c,v])}var O=void 0,JN=[n2,gO,-1],DM=[n2,uL,-2],vn=[n2,gd,-3],u5=[n2,TL,-4],os=[n2,fF,-7],FM=[n2,IO,-8],RM=[n2,FR,-9],Nr=[n2,gR,-11],I6=[n2,$F,-12],FK=[4,0,0,0,[12,45,[4,0,0,0,0]]],GN=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,AO,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Y3=[0,0,[0,0,0],[0,0,0]],z3=[0,0,0,0,0,1,0,0,0],LM=[0,"first_leading","last_trailing"],MM=[0,sf,xn,Gf,Ui,hc,ci,ku,ou,$n,Kc,Hu,E7,j7,fn,bc,G7,Ke,fs,ti,Ni,n7,Qu,Zn,of,lu,Pu,yf,Ou,ei,ai,Uu,P7,Cf,zf,a7,hi,ff,R7,Xi,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-5],JR),Rt(3,u5,TL),Rt(2,vn,gd),Rt(1,DM,uL),Rt(0,JN,gO);function B2(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,B2(x[1])];case 1:return[1,B2(x[1])];case 2:return[2,B2(x[1])];case 3:return[3,B2(x[1])];case 4:return[4,B2(x[1])];case 5:return[5,B2(x[1])];case 6:return[6,B2(x[1])];case 7:return[7,B2(x[1])];case 8:var r=x[1];return[8,r,B2(x[2])];case 9:var e=x[1];return[9,e,e,B2(x[3])];case 10:return[10,B2(x[1])];case 11:return[11,B2(x[1])];case 12:return[12,B2(x[1])];case 13:return[13,B2(x[1])];default:return[14,B2(x[1])]}}function oe(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,oe(x[1],r)];case 1:return[1,oe(x[1],r)];case 2:return[2,oe(x[1],r)];case 3:return[3,oe(x[1],r)];case 4:return[4,oe(x[1],r)];case 5:return[5,oe(x[1],r)];case 6:return[6,oe(x[1],r)];case 7:return[7,oe(x[1],r)];case 8:var e=x[1];return[8,e,oe(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,oe(x[3],r)];case 10:return[10,oe(x[1],r)];case 11:return[11,oe(x[1],r)];case 12:return[12,oe(x[1],r)];case 13:return[13,oe(x[1],r)];default:return[14,oe(x[1],r)]}}function j2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,j2(x[1],r)];case 1:return[1,j2(x[1],r)];case 2:var e=x[1];return[2,e,j2(x[2],r)];case 3:var t=x[1];return[3,t,j2(x[2],r)];case 4:var u=x[3],i=x[2],c=x[1];return[4,c,i,u,j2(x[4],r)];case 5:var v=x[3],a=x[2],l=x[1];return[5,l,a,v,j2(x[4],r)];case 6:var m=x[3],h=x[2],T=x[1];return[6,T,h,m,j2(x[4],r)];case 7:var b=x[3],N=x[2],j=x[1];return[7,j,N,b,j2(x[4],r)];case 8:var I=x[3],F=x[2],M=x[1];return[8,M,F,I,j2(x[4],r)];case 9:var z=x[1];return[9,z,j2(x[2],r)];case 10:return[10,j2(x[1],r)];case 11:var B=x[1];return[11,B,j2(x[2],r)];case 12:var K=x[1];return[12,K,j2(x[2],r)];case 13:var n0=x[2],$=x[1];return[13,$,n0,j2(x[3],r)];case 14:var H=x[2],t0=x[1];return[14,t0,H,j2(x[3],r)];case 15:return[15,j2(x[1],r)];case 16:return[16,j2(x[1],r)];case 17:var c0=x[1];return[17,c0,j2(x[2],r)];case 18:var r0=x[1];return[18,r0,j2(x[2],r)];case 19:return[19,j2(x[1],r)];case 20:var v0=x[2],a0=x[1];return[20,a0,v0,j2(x[3],r)];case 21:var g0=x[1];return[21,g0,j2(x[2],r)];case 22:return[22,j2(x[1],r)];case 23:var i0=x[1];return[23,i0,j2(x[2],r)];default:var s0=x[2],d0=x[1];return[24,d0,s0,j2(x[3],r)]}}function Tx(x){throw W0([0,vn,x],1)}function R1(x){throw W0([0,u5,x],1)}function i5(x){return 0<=x?x:-x|0}var RK=ra,LK=Gs;function qx(x,r){var e=Nx(x),t=Nx(r),u=S2(e+t|0);return cs(x,0,u,0,e),cs(r,0,u,e,t),_1(u)}function Mx(x,r){if(!x)return r;var e=x[2],t=x[1];if(!e)return[0,t,r];var u=e[2],i=e[1];if(!u)return[0,t,[0,i,r]];for(var c=[0,u[1],v3],v=c,a=1,l=u[2];;){if(l){var m=l[2],h=l[1];if(m){var T=m[2],b=m[1];if(T){var N=[0,T[1],v3],j=T[2];v[1+a]=[0,h,[0,b,N]];var v=N,a=1,l=j;continue}v[1+a]=[0,h,[0,b,r]]}else v[1+a]=[0,h,r]}else v[1+a]=r;return[0,t,[0,i,c]]}}yK(0);var qM=NM(1),pn=NM(2),MK="output_substring";function N6(x,r){BN(x,r,0,Nx(r))}function UM(x,r,e,t){return 0<=e&&0<=t&&(Nx(r)-t|0)>=e?BN(x,r,e,t):R1(MK)}function BM(x){return N6(pn,x),jM(pn,10),an(pn)}var WN=[0,function(x){for(var r=gK(0);;){if(!r)return 0;var e=r[2],t=r[1];try{an(t)}catch(c){var u=U2(c);if(u[1]!==DM)throw W0(u,0)}var r=e}}],XM=[0,function(x){}];function VN(x){return d(XM[1],0),d(R3(WN),0)}YN(DD,VN);var YM=PK(0)[1],j6=(4*SK(0)|0)-1|0;function f5(x,r){return r?[0,d(x,r[1])]:0}function zM(x){return 25>>0?x:x-32|0}var qK="hd",UK="tl",BK="List.iter2";function aa(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function C6(x){return x?x[1]:Tx(qK)}function KM(x){return x?x[2]:Tx(UK)}function K3(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function ix(x){return K3(x,0)}function O6(x){if(!x)return 0;var r=x[1];return Mx(r,O6(x[2]))}function vs(x,r){if(!r)return 0;var e=r[2],t=r[1];if(!e)return[0,x(t),0];for(var u=e[2],i=e[1],c=x(t),v=[0,x(i),v3],a=v,l=1,m=u;;){if(m){var h=m[2],T=m[1];if(h){var b=h[2],N=h[1],j=x(T),I=[0,x(N),v3];a[1+l]=[0,j,I];var a=I,l=1,m=b;continue}a[1+l]=[0,x(T),0]}else a[1+l]=0;return[0,c,v]}}function c5(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,x(t[1]),e],t=u}}function b1(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];d(x,e[1]);var e=t}}function m1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function $N(x,r,e){if(!r)return e;var t=r[1];return x(t,$N(x,r[2],e))}function JM(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],c=t[2];x(t[1],u[1]);var t=c,u=i;continue}}else if(!u)return;return R1(BK)}}function J3(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=d(x,e[1]);if(u)return u;var e=t}}function QN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=kM(e[1],x)===0?1:0;if(u)return u;var e=t}}function D6(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=e[1];if(x(u))for(var i=[0,u,v3],c=i,v=1,a=t;;){if(!a)return c[1+v]=0,i;var l=a[2],m=a[1];if(x(m)){var h=[0,m,v3];c[1+v]=h;var c=h,v=1,a=l}else var a=l}else var e=t}}var XK="String.sub / Bytes.sub",YK="Bytes.blit",zK="String.blit / Bytes.blit_string";function kv(x,r){var e=S2(x);return zz(e,0,x,r),e}function GM(x,r,e){if(0<=r&&0<=e&&(Ft(x)-e|0)>=r){var t=S2(e);return ta(x,r,t,0,e),t}return R1(XK)}function G3(x,r,e){return _1(GM(x,r,e))}function WM(x,r,e,t,u){if(0<=u&&0<=r&&(Ft(x)-u|0)>=r&&0<=t&&(Ft(e)-u|0)>=t){ta(x,r,e,t,u);return}return R1(YK)}function kn(x,r,e,t,u){if(0<=u&&0<=r&&(Nx(x)-u|0)>=r&&0<=t&&(Ft(e)-u|0)>=t){cs(x,r,e,t,u);return}return R1(zK)}var KK="String.concat",JK=Z0;function s5(x,r){return _1(kv(x,r))}function T1(x,r,e){return _1(GM(Ot(x),r,e))}function VM(x,r){if(!r)return JK;var e=Nx(x);x:{r:{for(var t=0,u=r,i=0;u;){var c=u[1];if(!u[2])break r;var v=(Nx(c)+e|0)+t|0,a=u[2],l=t<=v?v:R1(KK),t=l,u=a}var m=t;break x}var m=Nx(c)+t|0}for(var h=S2(m),T=i,b=r;;){if(b){var N=b[1];if(b[2]){var j=b[2];cs(N,0,h,T,Nx(N)),cs(x,0,h,T+Nx(N)|0,e);var T=(T+Nx(N)|0)+e|0,b=j;continue}cs(N,0,h,T,Nx(N))}return _1(h)}}function $M(x){var r=Ot(x);if(Ft(r)===0)var e=r;else{var t=Ft(r),u=S2(t);ta(r,0,u,0,t),Xr(u,0,zM(se(r,0)));var e=u}return _1(e)}function QM(x,r){var e=Nx(x),t=e<=Nx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(J0(r,u)!==J0(x,u))return 0;var u=u+1|0}}function HM(x,r){var e=[0,0],t=[0,Nx(r)],u=Nx(r)-1|0;if(u>=0)for(var i=u;;){if(J0(r,i)===x){var c=e[1];e[1]=[0,T1(r,i+1|0,(t[1]-i|0)-1|0),c],t[1]=i}var v=i-1|0;if(i===0)break;var i=v}var a=e[1];return[0,T1(r,0,t[1]),a]}function a5(x,r){return Az(Ot(x),r)}var GK="Array.blit";function ZM(x,r,e,t,u){if(0<=u&&0<=r&&(x.length-1-u|0)>=r&&0<=t&&(e.length-1-u|0)>=t){dz(x,r,e,t,u);return}return R1(GK)}function xq(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){x(r[1+u]);var i=u+1|0;if(e===u)break;var u=i}}function o5(x,r){var e=r.length-1;if(e===0)return[0];var t=$a(e,x(r[1])),u=e-1|0,i=1;if(u>=1)for(var c=i;;){t[1+c]=x(r[1+c]);var v=c+1|0;if(u===c)break;var c=v}return t}function F6(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];e;)var r=r+1|0,e=e[2];for(var i=$a(r,u),c=1,v=t;;){if(!v)return i;var a=v[2];i[1+c]=v[1];var c=c+1|0,v=a}}function rq(x){try{var r=[0,ov(x)];return r}catch(t){var e=U2(t);if(e[1]===vn)return 0;throw W0(e,0)}}var WK=x8,VK=x8,$K=x8,QK=x8;function HN(x){function r(c){return c?c[5]:0}function e(c,v,a,l){var m=r(c),h=r(l),T=h<=m?m+1|0:h+1|0;return[0,c,v,a,l,T]}function t(c,v,a,l){var m=c?c[5]:0,h=l?l[5]:0;if((h+2|0)=h){var K=h<=m?m+1|0:h+1|0;return[0,c,v,a,l,K]}if(!l)return R1(QK);var n0=l[4],$=l[3],H=l[2],t0=l[1],c0=r(t0);if(c0<=r(n0))return e(e(c,v,a,t0),H,$,n0);if(!t0)return R1($K);var r0=t0[3],v0=t0[2],a0=t0[1],g0=e(t0[4],H,$,n0);return e(e(c,v,a,a0),v0,r0,g0)}function u(c,v,a){if(!a)return[0,0,c,v,0,1];var l=a[4],m=a[3],h=a[2],T=a[1],b=a[5],N=p(x[1],c,h);if(N===0)return m===v?a:[0,T,c,v,l,b];if(0<=N){var j=u(c,v,l);return l===j?a:t(T,h,m,j)}var I=u(c,v,T);return T===I?a:t(I,h,m,l)}function i(c,v,a){for(var l=v,m=a;;){if(!l)return m;var h=l[4],T=l[3],b=l[2],N=c(b,T,i(c,l[1],m)),l=h,m=N}}return[0,0,u,,,,,,,,,,,,,,,function(c,v){for(var a=v;;){if(!a)throw W0(os,1);var l=a[4],m=a[3],h=a[1],T=p(x[1],c,a[2]);if(T===0)return m;var b=0<=T?l:h,a=b}},,,,,,,i]}function R6(x){return[0,0,0]}function L6(x){x[1]=0,x[2]=0}function mv(x,r){r[1]=[0,x,r[1]],r[2]=r[2]+1|0}function W3(x){var r=x[1];if(!r)return 0;var e=r[1];return x[1]=r[2],x[2]=x[2]-1|0,[0,e]}function V3(x){var r=x[1];return r?[0,r[1]]:0}function eq(x){return[0,0,0,0]}function ZN(x){x[1]=0,x[2]=0,x[3]=0}function xj(x,r){var e=[0,x,0],t=r[3];return t?(r[1]=r[1]+1|0,t[2]=e,r[3]=e,0):(r[1]=1,r[2]=e,r[3]=e,0)}var HK="Buffer.add: cannot grow buffer",ZK="Buffer.add_substring/add_subbytes";function $r(x){var r=1<=x?x:1,e=j6=(e+r|0));)t[1]=2*t[1]|0;j6=0)for(var c=i;;){Xr(t,c,x(se(r,c)));var v=c+1|0;if(u===c)break;var c=v}return t}var QJ=O3,HJ="%+d",ZJ="% d",xG=rF,rG="%+i",eG="% i",tG="%x",nG="%#x",uG="%X",iG="%#X",fG="%o",cG="%#o",sG=XR,aG="%Ld",oG="%+Ld",vG="% Ld",lG=aF,pG="%+Li",kG="% Li",mG="%Lx",hG="%#Lx",dG="%LX",yG="%#LX",gG="%Lo",wG="%#Lo",_G="%Lu",bG="%ld",TG="%+ld",EG="% ld",SG=IL,AG="%+li",PG="% li",IG="%lx",NG="%#lx",jG="%lX",CG="%#lX",OG="%lo",DG="%#lo",FG="%lu",RG="%nd",LG="%+nd",MG="% nd",qG=hO,UG="%+ni",BG="% ni",XG="%nx",YG="%#nx",zG="%nX",KG="%#nX",JG="%no",GG="%#no",WG="%nu",VG=[0,sn],$G=cn,QG="neg_infinity",HG=rL,ZG=fI,xW=[0,k1,1558,4],rW="Printf: bad conversion %[",eW=[0,k1,1626,39],tW=[0,k1,1649,31],nW=[0,k1,1650,31],uW="Printf: bad conversion %_",iW=sL,fW=hR,cW=sL,sW=hR;function v5(x,r){if(typeof x=="number")return[0,0,r];if(x[0]===0)return[0,[0,x[1],x[2]],r];if(typeof r!="number"&&r[0]===2)return[0,[1,x[1]],r[1]];throw W0(E1,1)}function q6(x,r,e){var t=v5(x,e);if(typeof r!="number")return[0,t[1],[0,r[1]],t[2]];if(!r)return[0,t[1],0,t[2]];var u=t[2];if(typeof u!="number"&&u[0]===2)return[0,t[1],1,u[1]];throw W0(E1,1)}function h2(x,r){if(typeof x=="number")return[0,0,r];switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var e=h2(x[1],r[1]);return[0,[0,e[1]],e[2]]}break;case 1:if(typeof r!="number"&&r[0]===0){var t=h2(x[1],r[1]);return[0,[1,t[1]],t[2]]}break;case 2:var u=x[2],i=v5(x[1],r),c=i[2],v=i[1];if(typeof c!="number"&&c[0]===1){var a=h2(u,c[1]);return[0,[2,v,a[1]],a[2]]}throw W0(E1,1);case 3:var l=x[2],m=v5(x[1],r),h=m[2],T=m[1];if(typeof h!="number"&&h[0]===1){var b=h2(l,h[1]);return[0,[3,T,b[1]],b[2]]}throw W0(E1,1);case 4:var N=x[4],j=x[1],I=q6(x[2],x[3],r),F=I[3],M=I[1];if(typeof F!="number"&&F[0]===2){var z=I[2],B=h2(N,F[1]);return[0,[4,j,M,z,B[1]],B[2]]}throw W0(E1,1);case 5:var K=x[4],n0=x[1],$=q6(x[2],x[3],r),H=$[3],t0=$[1];if(typeof H!="number"&&H[0]===3){var c0=$[2],r0=h2(K,H[1]);return[0,[5,n0,t0,c0,r0[1]],r0[2]]}throw W0(E1,1);case 6:var v0=x[4],a0=x[1],g0=q6(x[2],x[3],r),i0=g0[3],s0=g0[1];if(typeof i0!="number"&&i0[0]===4){var d0=g0[2],w0=h2(v0,i0[1]);return[0,[6,a0,s0,d0,w0[1]],w0[2]]}throw W0(E1,1);case 7:var M0=x[4],C0=x[1],D0=q6(x[2],x[3],r),I0=D0[3],j0=D0[1];if(typeof I0!="number"&&I0[0]===5){var y0=D0[2],Y0=h2(M0,I0[1]);return[0,[7,C0,j0,y0,Y0[1]],Y0[2]]}throw W0(E1,1);case 8:var L=x[4],N0=x[1],S0=q6(x[2],x[3],r),K0=S0[3],A0=S0[1];if(typeof K0!="number"&&K0[0]===6){var $0=S0[2],ex=h2(L,K0[1]);return[0,[8,N0,A0,$0,ex[1]],ex[2]]}throw W0(E1,1);case 9:var xx=x[2],tx=v5(x[1],r),z0=tx[2],px=tx[1];if(typeof z0!="number"&&z0[0]===7){var sx=h2(xx,z0[1]);return[0,[9,px,sx[1]],sx[2]]}throw W0(E1,1);case 10:var Q=h2(x[1],r);return[0,[10,Q[1]],Q[2]];case 11:var b0=x[1],U=h2(x[2],r);return[0,[11,b0,U[1]],U[2]];case 12:var h0=x[1],_0=h2(x[2],r);return[0,[12,h0,_0[1]],_0[2]];case 13:if(typeof r!="number"&&r[0]===8){var m0=r[1],T0=r[2],X=x[3],Gx=x[1];if(lv([0,x[2]],[0,m0]))throw W0(E1,1);var Px=h2(X,T0);return[0,[13,Gx,m0,Px[1]],Px[2]]}break;case 14:if(typeof r!="number"&&r[0]===9){var G0=r[1],Kr=r[3],S=x[3],G=x[2],rx=x[1],yx=[0,B2(G0)];if(lv([0,B2(G)],yx))throw W0(E1,1);var Ex=h2(S,B2(Kr));return[0,[14,rx,G0,Ex[1]],Ex[2]]}break;case 15:if(typeof r!="number"&&r[0]===10){var nx=h2(x[1],r[1]);return[0,[15,nx[1]],nx[2]]}break;case 16:if(typeof r!="number"&&r[0]===11){var p0=h2(x[1],r[1]);return[0,[16,p0[1]],p0[2]]}break;case 17:var Fx=x[1],Sx=h2(x[2],r);return[0,[17,Fx,Sx[1]],Sx[2]];case 18:var bx=x[2],B0=x[1];if(B0[0]===0){var Wx=B0[1],Yx=Wx[2],ax=h2(Wx[1],r),Qx=ax[1],kx=h2(bx,ax[2]);return[0,[18,[0,[0,Qx,Yx]],kx[1]],kx[2]]}var tr=B0[1],sr=tr[2],Mr=h2(tr[1],r),a2=Mr[1],_2=h2(bx,Mr[2]);return[0,[18,[1,[0,a2,sr]],_2[1]],_2[2]];case 19:if(typeof r!="number"&&r[0]===13){var i2=h2(x[1],r[1]);return[0,[19,i2[1]],i2[2]]}break;case 20:if(typeof r!="number"&&r[0]===1){var Q2=x[2],jx=x[1],_=h2(x[3],r[1]);return[0,[20,jx,Q2,_[1]],_[2]]}break;case 21:if(typeof r!="number"&&r[0]===2){var V=x[1],lx=h2(x[2],r[1]);return[0,[21,V,lx[1]],lx[2]]}break;case 23:var U0=x[2],ox=x[1];if(typeof ox!="number")switch(ox[0]){case 0:return Ve(ox,U0,r);case 1:return Ve(ox,U0,r);case 2:return Ve(ox,U0,r);case 3:return Ve(ox,U0,r);case 4:return Ve(ox,U0,r);case 5:return Ve(ox,U0,r);case 6:return Ve(ox,U0,r);case 7:return Ve(ox,U0,r);case 8:return Ve([8,ox[1],ox[2]],U0,r);case 9:var wx=ox[1],Cr=Ee(ox[2],U0,r),Hx=Cr[2];return[0,[23,[9,wx,Cr[1]],Hx[1]],Hx[2]];case 10:return Ve(ox,U0,r);default:return Ve(ox,U0,r)}switch(ox){case 0:return Ve(ox,U0,r);case 1:return Ve(ox,U0,r);case 2:if(typeof r!="number"&&r[0]===14){var Zr=h2(U0,r[1]);return[0,[23,2,Zr[1]],Zr[2]]}throw W0(E1,1);default:return Ve(ox,U0,r)}}throw W0(E1,1)}function Ve(x,r,e){var t=h2(r,e);return[0,[23,x,t[1]],t[2]]}function Ee(x,r,e){if(typeof x=="number")return[0,0,h2(r,e)];switch(x[0]){case 0:if(typeof e!="number"&&e[0]===0){var t=Ee(x[1],r,e[1]);return[0,[0,t[1]],t[2]]}break;case 1:if(typeof e!="number"&&e[0]===1){var u=Ee(x[1],r,e[1]);return[0,[1,u[1]],u[2]]}break;case 2:if(typeof e!="number"&&e[0]===2){var i=Ee(x[1],r,e[1]);return[0,[2,i[1]],i[2]]}break;case 3:if(typeof e!="number"&&e[0]===3){var c=Ee(x[1],r,e[1]);return[0,[3,c[1]],c[2]]}break;case 4:if(typeof e!="number"&&e[0]===4){var v=Ee(x[1],r,e[1]);return[0,[4,v[1]],v[2]]}break;case 5:if(typeof e!="number"&&e[0]===5){var a=Ee(x[1],r,e[1]);return[0,[5,a[1]],a[2]]}break;case 6:if(typeof e!="number"&&e[0]===6){var l=Ee(x[1],r,e[1]);return[0,[6,l[1]],l[2]]}break;case 7:if(typeof e!="number"&&e[0]===7){var m=Ee(x[1],r,e[1]);return[0,[7,m[1]],m[2]]}break;case 8:if(typeof e!="number"&&e[0]===8){var h=e[1],T=e[2],b=x[2];if(lv([0,x[1]],[0,h]))throw W0(E1,1);var N=Ee(b,r,T);return[0,[8,h,N[1]],N[2]]}break;case 9:if(typeof e!="number"&&e[0]===9){var j=e[2],I=e[1],F=e[3],M=x[3],z=x[2],B=x[1],K=[0,B2(I)];if(lv([0,B2(B)],K))throw W0(E1,1);var n0=[0,B2(j)];if(lv([0,B2(z)],n0))throw W0(E1,1);var $=M1(h1(c1(I),j)),H=$[4];$[2].call(null,O),H(O);var t0=Ee(B2(M),r,F),c0=t0[2];return[0,[9,I,j,c1(t0[1])],c0]}break;case 10:if(typeof e!="number"&&e[0]===10){var r0=Ee(x[1],r,e[1]);return[0,[10,r0[1]],r0[2]]}break;case 11:if(typeof e!="number"&&e[0]===11){var v0=Ee(x[1],r,e[1]);return[0,[11,v0[1]],v0[2]]}break;case 13:if(typeof e!="number"&&e[0]===13){var a0=Ee(x[1],r,e[1]);return[0,[13,a0[1]],a0[2]]}break;case 14:if(typeof e!="number"&&e[0]===14){var g0=Ee(x[1],r,e[1]);return[0,[14,g0[1]],g0[2]]}break}throw W0(E1,1)}function $e(x,r,e){var t=Nx(e),u=0<=r?x:0,i=i5(r);if(i<=t)return e;var c=u===2?48:32,v=kv(i,c);switch(u){case 0:kn(e,0,v,0,t);break;case 1:kn(e,0,v,i-t|0,t);break;default:x:if(0u){if(u!==32){if(43>u)break x;switch(u+A_|0){case 5:e:if(t<(e+2|0)&&1=(e+1|0))break x;var c=kv(e+1|0,48);return ua(c,0,u),kn(r,1,c,(e-t|0)+2|0,t-1|0),_1(c)}if(71<=u){if(5>>0)break x}else if(65>u)break x}if(t=0)for(var i=u;;){var c=se(r,i);x:{r:{e:{if(32<=c){var v=c-34|0;if(58>>0){if(93<=v)break e}else if(56>>0)break r;var a=1;break x}if(11<=c){if(c===13)break r}else if(8<=c)break r}var a=4;break x}var a=2}e[1]=e[1]+a|0;var l=i+1|0;if(t===i)break;var i=l}if(e[1]===Ft(r))var m=r;else{var h=S2(e[1]);e[1]=0;var T=Ft(r)-1|0,b=0;if(T>=0)for(var N=b;;){var j=se(r,N);x:{r:{e:{if(35<=j){if(j!==92){if(Br<=j)break e;break r}}else{if(32>j){if(14<=j)break e;switch(j){case 8:Xr(h,e[1],92),e[1]++,Xr(h,e[1],98);break x;case 9:Xr(h,e[1],92),e[1]++,Xr(h,e[1],Wa);break x;case 10:Xr(h,e[1],92),e[1]++,Xr(h,e[1],z1);break x;case 13:Xr(h,e[1],92),e[1]++,Xr(h,e[1],mr);break x;default:break e}}if(34>j)break r}Xr(h,e[1],92),e[1]++,Xr(h,e[1],j);break x}Xr(h,e[1],92),e[1]++,Xr(h,e[1],48+(j/y2|0)|0),e[1]++,Xr(h,e[1],48+((j/10|0)%10|0)|0),e[1]++,Xr(h,e[1],48+(j%10|0)|0);break x}Xr(h,e[1],j)}e[1]++;var I=N+1|0;if(T===N)break;var N=I}var m=h}var F=_1(m),M=Nx(F),z=kv(M+2|0,34);return cs(F,0,z,1,M),_1(z)}function oq(x,r){var e=i5(r),t=VG[1];switch(x[2]){case 0:var u=g1;break;case 1:var u=fe;break;case 2:var u=69;break;case 3:var u=sn;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=Be;break;case 7:var u=72;break;default:var u=70}var i=fq(16);switch($3(i,37),x[1]){case 0:break;case 1:$3(i,43);break;default:$3(i,32)}return 8<=x[2]&&$3(i,35),$3(i,46),L1(i,Z0+e),$3(i,u),sq(i)}function l5(x,r){if(13>x)return r;var e=[0,0],t=Nx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=J0(r,i)+e1>>>0&&e[1]++;var c=i+1|0;if(t===i)break;var i=c}var v=e[1],a=S2(Nx(r)+((v-1|0)/3|0)|0),l=[0,0];function m(F){ua(a,l[1],F),l[1]++}var h=[0,((v-1|0)%3|0)+1|0],T=Nx(r)-1|0,b=0;if(T>=0)for(var N=b;;){var j=J0(r,N);9>>0||(h[1]===0&&(m(95),h[1]=3),h[1]+=-1),m(j);var I=N+1|0;if(T===N)break;var N=I}return _1(a)}function oW(x,r){switch(x){case 1:var e=HJ;break;case 2:var e=ZJ;break;case 4:var e=rG;break;case 5:var e=eG;break;case 6:var e=tG;break;case 7:var e=nG;break;case 8:var e=uG;break;case 9:var e=iG;break;case 10:var e=fG;break;case 11:var e=cG;break;case 0:case 13:var e=QJ;break;case 3:case 14:var e=xG;break;default:var e=sG}return l5(x,Wm(e,r))}function vW(x,r){switch(x){case 1:var e=TG;break;case 2:var e=EG;break;case 4:var e=AG;break;case 5:var e=PG;break;case 6:var e=IG;break;case 7:var e=NG;break;case 8:var e=jG;break;case 9:var e=CG;break;case 10:var e=OG;break;case 11:var e=DG;break;case 0:case 13:var e=bG;break;case 3:case 14:var e=SG;break;default:var e=FG}return l5(x,Wm(e,r))}function lW(x,r){switch(x){case 1:var e=LG;break;case 2:var e=MG;break;case 4:var e=UG;break;case 5:var e=BG;break;case 6:var e=XG;break;case 7:var e=YG;break;case 8:var e=zG;break;case 9:var e=KG;break;case 10:var e=JG;break;case 11:var e=GG;break;case 0:case 13:var e=RG;break;case 3:case 14:var e=qG;break;default:var e=WG}return l5(x,Wm(e,r))}function pW(x,r){switch(x){case 1:var e=oG;break;case 2:var e=vG;break;case 4:var e=pG;break;case 5:var e=kG;break;case 6:var e=mG;break;case 7:var e=hG;break;case 8:var e=dG;break;case 9:var e=yG;break;case 10:var e=gG;break;case 11:var e=wG;break;case 0:case 13:var e=aG;break;case 3:case 14:var e=lG;break;default:var e=_G}return l5(x,yM(e,r))}function oa(x,r,e){function t(h){switch(x[1]){case 0:var T=45;break;case 1:var T=43;break;default:var T=32}return Jz(e,r,T)}function u(h){var T=Iz(e);return T===3?e<0?QG:HG:4<=T?ZG:h}switch(x[2]){case 5:for(var i=DN(oq(x,r),e),c=0,v=Nx(i);;){if(c===v)var a=0;else{var l=q2(i,c)+Ja|0;x:{if(23>>0){if(l===55)break x}else if(21>>0)break x;var c=c+1|0;continue}var a=1}var m=a?i:qx(i,$G);return u(m)}case 6:return t(O);case 7:return _1($J(zM,Ot(t(O))));case 8:return u(t(O));default:return DN(oq(x,r),e)}}function U6(x,r,e,t){for(var u=r,i=e,c=t;;){if(typeof c=="number")return u(i);switch(c[0]){case 0:var v=c[1];return function(y0){return Lr(u,[5,i,y0],v)};case 1:var a=c[1];return function(y0){x:{r:{if(40<=y0){if(y0===92){var N0=zJ;break x}if(Br>y0)break r}else{if(32<=y0){if(39>y0)break r;var N0=KJ;break x}if(14>y0)switch(y0){case 8:var N0=JJ;break x;case 9:var N0=GJ;break x;case 10:var N0=WJ;break x;case 13:var N0=VJ;break x}}var Y0=S2(4);Xr(Y0,0,92),Xr(Y0,1,48+(y0/y2|0)|0),Xr(Y0,2,48+((y0/10|0)%10|0)|0),Xr(Y0,3,48+(y0%10|0)|0);var N0=_1(Y0);break x}var L=S2(1);Xr(L,0,y0);var N0=_1(L)}var S0=Nx(N0),K0=kv(S0+2|0,39);return cs(N0,0,K0,1,S0),Lr(u,[4,i,_1(K0)],a)};case 2:return sj(u,i,c[2],c[1],function(y0){return y0});case 3:return sj(u,i,c[2],c[1],aW);case 4:return p5(u,i,c[4],c[2],c[3],oW,c[1]);case 5:return p5(u,i,c[4],c[2],c[3],vW,c[1]);case 6:return p5(u,i,c[4],c[2],c[3],lW,c[1]);case 7:return p5(u,i,c[4],c[2],c[3],pW,c[1]);case 8:var l=c[4],m=c[3],h=c[2],T=c[1];if(typeof h=="number"){if(typeof m=="number")return m?function(y0,Y0){return Lr(u,[4,i,oa(T,y0,Y0)],l)}:function(y0){return Lr(u,[4,i,oa(T,ij(T),y0)],l)};var b=m[1];return function(y0){return Lr(u,[4,i,oa(T,b,y0)],l)}}if(h[0]===0){var N=h[2],j=h[1];if(typeof m=="number")return m?function(y0,Y0){return Lr(u,[4,i,$e(j,N,oa(T,y0,Y0))],l)}:function(y0){return Lr(u,[4,i,$e(j,N,oa(T,ij(T),y0))],l)};var I=m[1];return function(y0){return Lr(u,[4,i,$e(j,N,oa(T,I,y0))],l)}}var F=h[1];if(typeof m=="number")return m?function(y0,Y0,L){return Lr(u,[4,i,$e(F,y0,oa(T,Y0,L))],l)}:function(y0,Y0){return Lr(u,[4,i,$e(F,y0,oa(T,ij(T),Y0))],l)};var M=m[1];return function(y0,Y0){return Lr(u,[4,i,$e(F,y0,oa(T,M,Y0))],l)};case 9:return sj(u,i,c[2],c[1],YJ);case 10:var i=[7,i],c=c[1];break;case 11:var i=[2,i,c[1]],c=c[2];break;case 12:var i=[3,i,c[1]],c=c[2];break;case 13:var z=c[3],B=c[2],K=fq(16);fj(K,B);var n0=sq(K);return function(y0){return Lr(u,[4,i,n0],z)};case 14:var $=c[3],H=c[2];return function(y0){var Y0=y0[1],L=h2(Y0,B2(c1(H)));if(typeof L[2]=="number")return Lr(u,i,j2(L[1],$));throw W0(E1,1)};case 15:var t0=c[1];return function(y0,Y0){return Lr(u,[6,i,function(L){return p(y0,L,Y0)}],t0)};case 16:var c0=c[1];return function(y0){return Lr(u,[6,i,y0],c0)};case 17:var i=[0,i,c[1]],c=c[2];break;case 18:var r0=c[1];if(r0[0]===0){let y0=i,Y0=u,L=c[2];var u=function(A0){return Lr(Y0,[1,y0,[0,A0]],L)},i=0,c=r0[1][1]}else{let y0=i,Y0=u,L=c[2];var u=function(A0){return Lr(Y0,[1,y0,[1,A0]],L)},i=0,c=r0[1][1]}break;case 19:throw W0([0,Nr,xW],1);case 20:var v0=c[3],a0=[8,i,rW];return function(y0){return Lr(u,a0,v0)};case 21:var g0=c[2];return function(y0){return Lr(u,[4,i,Wm(XR,y0)],g0)};case 22:var i0=c[1];return function(y0){return Lr(u,[5,i,y0],i0)};case 23:var s0=c[2],d0=c[1];if(typeof d0=="number")switch(d0){case 0:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 1:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 2:throw W0([0,Nr,eW],1);default:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0])}switch(d0[0]){case 0:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 1:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 2:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 3:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 4:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 5:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 6:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 7:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 8:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 9:var w0=d0[2];return x<50?cj(x+1|0,u,i,w0,s0):J2(cj,[0,u,i,w0,s0]);case 10:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);default:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0])}default:var M0=c[3],C0=c[1],D0=d(c[2],0);return x<50?aj(x+1|0,u,i,M0,C0,D0):J2(aj,[0,u,i,M0,C0,D0])}}}function Lr(x,r,e){return n5(U6(0,x,r,e))}function cj(x,r,e,t,u){if(typeof t=="number")return x<50?v2(x+1|0,r,e,u):J2(v2,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(B){return pt(r,e,i,u)};case 1:var c=t[1];return function(B){return pt(r,e,c,u)};case 2:var v=t[1];return function(B){return pt(r,e,v,u)};case 3:var a=t[1];return function(B){return pt(r,e,a,u)};case 4:var l=t[1];return function(B){return pt(r,e,l,u)};case 5:var m=t[1];return function(B){return pt(r,e,m,u)};case 6:var h=t[1];return function(B){return pt(r,e,h,u)};case 7:var T=t[1];return function(B){return pt(r,e,T,u)};case 8:var b=t[2];return function(B){return pt(r,e,b,u)};case 9:var N=t[3],j=t[2],I=h1(c1(t[1]),j);return function(B){return pt(r,e,oe(I,N),u)};case 10:var F=t[1];return function(B,K){return pt(r,e,F,u)};case 11:var M=t[1];return function(B){return pt(r,e,M,u)};case 12:var z=t[1];return function(B){return pt(r,e,z,u)};case 13:throw W0([0,Nr,tW],1);default:throw W0([0,Nr,nW],1)}}function pt(x,r,e,t){return n5(cj(0,x,r,e,t))}function v2(x,r,e,t){var u=[8,e,uW];return x<50?U6(x+1|0,r,u,t):J2(U6,[0,r,u,t])}function sj(x,r,e,t,u){if(typeof t=="number")return function(a){return Lr(x,[4,r,u(a)],e)};if(t[0]===0){var i=t[2],c=t[1];return function(a){return Lr(x,[4,r,$e(c,i,u(a))],e)}}var v=t[1];return function(a,l){return Lr(x,[4,r,$e(v,a,u(l))],e)}}function p5(x,r,e,t,u,i,c){if(typeof t=="number"){if(typeof u=="number")return u?function(b,N){return Lr(x,[4,r,Q3(b,i(c,N))],e)}:function(b){return Lr(x,[4,r,i(c,b)],e)};var v=u[1];return function(b){return Lr(x,[4,r,Q3(v,i(c,b))],e)}}if(t[0]===0){var a=t[2],l=t[1];if(typeof u=="number")return u?function(b,N){return Lr(x,[4,r,$e(l,a,Q3(b,i(c,N)))],e)}:function(b){return Lr(x,[4,r,$e(l,a,i(c,b))],e)};var m=u[1];return function(b){return Lr(x,[4,r,$e(l,a,Q3(m,i(c,b)))],e)}}var h=t[1];if(typeof u=="number")return u?function(b,N,j){return Lr(x,[4,r,$e(h,b,Q3(N,i(c,j)))],e)}:function(b,N){return Lr(x,[4,r,$e(h,b,i(c,N))],e)};var T=u[1];return function(b,N){return Lr(x,[4,r,$e(h,b,Q3(T,i(c,N)))],e)}}function aj(x,r,e,t,u,i){if(u){var c=u[1];return function(a){return kW(r,e,t,c,d(i,a))}}var v=[4,e,i];return x<50?U6(x+1|0,r,v,t):J2(U6,[0,r,v,t])}function kW(x,r,e,t,u){return n5(aj(0,x,r,e,t,u))}function va(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=aq(e[2]);return va(x,t),N6(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];va(x,c),N6(x,iW);var e=v}else{var a=i[1];va(x,c),N6(x,fW);var e=a}break;case 6:var l=e[2];return va(x,e[1]),d(l,x);case 7:va(x,e[1]),an(x);return;case 8:var m=e[2];return va(x,e[1]),R1(m);case 2:case 4:var h=e[2];return va(x,e[1]),N6(x,h);default:var T=e[2];va(x,e[1]),jM(x,T);return}}}function la(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=aq(e[2]);return la(x,t),ir(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];la(x,c),ir(x,cW);var e=v}else{var a=i[1];la(x,c),ir(x,sW);var e=a}break;case 6:var l=e[2];return la(x,e[1]),ir(x,d(l,0));case 7:var e=e[1];break;case 8:var m=e[2];return la(x,e[1]),R1(m);case 2:case 4:var h=e[2];return la(x,e[1]),ir(x,h);default:var T=e[2];return la(x,e[1]),lt(x,T)}}}function vq(x,r){return Lr(function(e){return va(x,e),0},0,r[1])}function oj(x){return vq(pn,x)}function ar(x){return Lr(function(r){var e=$r(64);return la(e,r),G2(e)},0,x[1])}var vj=[0,0],mW=cn,hW=[0,[3,0,0],Vl],dW=qo,yW=[0,[4,0,0,0,0],O3],gW=Z0,wW=[0,[11,lF,[2,0,[2,0,0]]],", %s%s"],_W=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],bW=Z0,TW=Z0,EW=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],SW="Out of memory",AW="Stack overflow",PW="Pattern matching failed",IW="Assertion failed",NW="Undefined recursive module",jW="Raised at",CW="Re-raised at",OW="Raised by primitive operation at",DW="Called from",FW=[0,[12,32,[4,0,0,0,0]]," %d"],RW=" (inlined)",LW=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line",[2,0,[11,AO,FK]]]]]]]]]],'%s %s in file "%s"%s, line%s, characters %d-%d'],MW=Z0,qW=[0,[11,"s ",[4,0,0,0,[12,45,[4,0,0,0,0]]]],"s %d-%d"],UW=[0,[2,0,[11," unknown location",0]],"%s unknown location"],BW=[0,[2,0,[12,10,0]],`%s +`];function lj(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return d(ar(yW),e);if(pv(e)===g3)return d(ar(hW),e);if(pv(e)!==lE)return dW;for(var t=DN("%.12g",e),u=0,i=Nx(t);;){if(i<=u)return qx(t,mW);var c=q2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function lq(x,r){if(x.length-1<=r)return gW;var e=lq(x,r+1|0),t=lj(x,r);return p(ar(wW),t,e)}function B6(x){x:{r:{for(var r=R3(vj);r;){e:{var e=r[2],t=r[1];try{var u=d(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===JN)return SW;if(x===RM)return AW;if(x[1]===FM){var c=x[2],v=c[3],a=c[2],l=c[1];return KN(ar(GN),l,a,v,v+5|0,PW)}if(x[1]===Nr){var m=x[2],h=m[3],T=m[2],b=m[1];return KN(ar(GN),b,T,h,h+6|0,IW)}if(x[1]===I6){var N=x[2],j=N[3],I=N[2],F=N[1];return KN(ar(GN),F,I,j,j+6|0,NW)}if(pv(x)===0){var M=x.length-1,z=x[1][1];if(2>>0)var B=lq(x,2),K=lj(x,1),n0=p(ar(_W),K,B);else switch(M){case 0:var n0=bW;break;case 1:var n0=TW;break;default:var $=lj(x,1),n0=d(ar(EW),$)}var H=[0,z,[0,n0]]}else var H=[0,x[1],0];var t0=H[2],c0=H[1];return t0?qx(c0,t0[1]):c0}function pj(x,r){var e=Bz(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=N2(e,i)[1+i];let n0=i;var v=function(H){return H?n0===0?jW:CW:n0===0?OW:DW};if(c[0]===0){if(c[3]===c[6])var a=c[3],h=d(ar(FW),a);else var l=c[6],m=c[3],h=p(ar(qW),m,l);var T=c[7],b=c[4],N=c[8]?RW:MW,j=c[2],I=c[9],F=v(c[1]),z=[0,DK(ar(LW),F,I,j,N,h,b,T)]}else if(c[1])var z=0;else var M=v(0),z=[0,d(ar(UW),M)];if(z){var B=z[1];d(vq(x,BW),B)}var K=i+1|0;if(t===i)break;var i=K}}function kj(x){for(;;){var r=R3(vj),e=1-Bm(vj,r,[0,x,r]);if(!e)return e}}var XW=[0,Z0,`(Cannot print locations: bytecode executable program file not found)`,`(Cannot print locations: bytecode executable program file appears to be corrupt)`,`(Cannot print locations: bytecode executable program file has wrong magic number)`,`(Cannot print locations: bytecode executable program file cannot be opened; - -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],kW=[3,0,3],mW=Mf,hW=W3,dW="File_key.LibFile@ "],VW=[0,[3,0,0],q3],GW=[0,[17,0,[12,41,0]],f4],WW=[0,[12,40,[18,[1,[0,[11,ht,0],ht]],[11,"File_key.SourceFile",[17,[0,be,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],$W=[0,[3,0,0],q3],HW=[0,[17,0,[12,41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,[17,0,0],vv],SH=[0,[12,59,[17,[0,be,1,0],0]],Vy],AH="_end",IH=[0,[18,[1,[0,0,H0]],[2,0,[11,Y3,[17,[0,be,1,0],0]]]],J3],jH=[0,[17,0,0],vv],PH=[0,[17,[0,be,1,0],[12,ms,[17,0,0]]],vF],NH=H0,OH="Object literal may not have data and accessor property with the same name",CH="Object literal may not have multiple get/set accessors with the same name",DH="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",RH="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",FH="Async functions can only be declared at top level or immediately within another function.",LH="`await` is an invalid identifier in async functions",MH="`await` is not allowed in async function parameters.",UH="Computed properties must have a value.",qH="Constructor can't be an accessor.",BH="Constructor can't be an async function.",XH="Constructor can't be a generator.",JH="It is sufficient for your declare function to just have a Promise return type.",KH="async is an implementation detail and isn't necessary for your declare function statement. ",YH="`declare` modifier can only appear on class fields.",zH="Unexpected token `=`. Initializers are not allowed in a `declare`.",VH="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",GH="Classes may only have one constructor",WH="Rest element must be final element of an array pattern",$H="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",HH="Enum members are separated with `,`. Replace `;` with `,`.",QH="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",ZH="Expected an object pattern, array pattern, or an identifier but found an expression instead",xQ="Missing comma between export specifiers",rQ="Generators can only be declared at top level or immediately within another function.",eQ="Getter should have zero parameters",tQ="A getter cannot have a `this` parameter.",nQ="Illegal break statement",uQ="Illegal continue statement",iQ="Illegal return statement",fQ="Illegal Unicode escape",cQ="Missing comma between import specifiers",sQ="It cannot be used with `import type` or `import typeof` statements",aQ="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",oQ="Explicit inexact syntax cannot appear inside an explicit exact object type",vQ="Explicit inexact syntax can only appear inside an object type",lQ="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",pQ="Components use `renders` instead of `:` to annotate the render type of a component.",kQ="A bigint literal must be an integer",mQ="JSX value should be either an expression or a quoted JSX text",hQ="Invalid left-hand side in assignment",dQ="Invalid left-hand side in exponentiation expression",yQ="Invalid left-hand side in for-in",gQ="Invalid left-hand side in for-of",_Q="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",bQ="Invalid regular expression",wQ="A bigint literal cannot use exponential notation",TQ="Tuple spread elements cannot be optional.",EQ="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",SQ="`typeof` can only be used to get the type of variables.",AQ="JSX attributes must only be assigned a non-empty expression",IQ="Literals cannot be used as shorthand properties.",jQ="Malformed unicode",PQ="Object pattern can't contain methods",NQ="Expected at least one type parameter.",OQ="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",CQ="More than one default clause in switch statement",DQ="Illegal newline after throw",RQ="Illegal newline before arrow",FQ="Missing catch or finally after try",LQ="Const must be initialized",MQ="Destructuring assignment must be initialized",UQ="An optional chain may not be used in a `new` expression.",qQ="Template literals may not be used in an optional chain.",BQ="Rest parameter must be final parameter of an argument list",XQ="Private fields may not be deleted.",JQ="Private fields can only be referenced from within a class.",KQ="Rest property must be final property of an object pattern",YQ="Setter should have exactly one parameter",zQ="A setter cannot have a `this` parameter.",VQ="Catch variable may not be eval or arguments in strict mode",GQ="Delete of an unqualified identifier in strict mode.",WQ="Duplicate data property in object literal not allowed in strict mode",$Q="Function name may not be eval or arguments in strict mode",HQ="Assignment to eval or arguments is not allowed in strict mode",QQ="Postfix increment/decrement may not have eval or arguments operand in strict mode",ZQ="Prefix increment/decrement may not have eval or arguments operand in strict mode",xZ="Strict mode code may not include a with statement",rZ="Number literals with leading zeros are not allowed in strict mode.",eZ="Octal literals are not allowed in strict mode.",tZ="Strict mode function may not have duplicate parameter names",nZ="Parameter name eval or arguments is not allowed in strict mode",uZ='Illegal "use strict" directive in function with non-simple parameter list',iZ="Use of reserved word in strict mode",fZ="Variable name may not be eval or arguments in strict mode",cZ="You may not access a private field through the `super` keyword.",sZ="Flow does not support abstract classes.",aZ="Flow does not support template literal types.",oZ="A type annotation is required for the `this` parameter.",vZ="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",lZ="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",pZ="The `this` parameter cannot be optional.",kZ="The `this` parameter must be the first function parameter.",mZ="A trailing comma is not permitted after the rest element",hZ="Unexpected end of input",dZ="Explicit inexact syntax must come at the end of an object type",yZ="Opaque type aliases are not allowed in untyped mode",gZ="Unexpected proto modifier",_Z="Unexpected reserved word",bZ="Unexpected reserved type",wZ="Spreading a type is only allowed inside an object type",TZ="Unexpected static modifier",EZ="Unexpected `super` outside of a class method",SZ="`super()` is only valid in a class constructor",AZ="Type aliases are not allowed in untyped mode",IZ="Type annotations are not allowed in untyped mode",jZ="Type declarations are not allowed in untyped mode",PZ="Type exports are not allowed in untyped mode",NZ="Type imports are not allowed in untyped mode",OZ="Interfaces are not allowed in untyped mode",CZ="Unexpected variance sigil",DZ="Found a decorator in an unsupported position.",RZ="Invalid regular expression: missing /",FZ="Unexpected whitespace between `#` and identifier",LZ="`yield` is an invalid identifier in generators",MZ="Yield expression not allowed in formal parameter",UZ=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],qZ=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],BZ=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,vs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],XZ=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,vs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],JZ=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,vs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],KZ=[0,[11,ER,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],YZ="The `...` must come at the end of the enum body. Remove the trailing comma.",zZ="The `...` must come after all enum members. Move it to the end of the enum body.",VZ=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,vs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],GZ=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],WZ=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],$Z=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],HZ=[0,[11,ER,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],QZ=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,vs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],ZZ=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,vs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],x00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,vs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],r00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,vs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],e00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],t00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],n00="immediately within another function.",u00="In strict mode code, functions can only be declared at top level or ",i00="inside a block, or as the body of an if statement.",f00="In non-strict mode code, functions can only be declared at top level, ",c00="static ",s00=H0,a00="methods",o00="fields",v00=XD,l00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,vs,0]]]]]],"Classes may not have %s%s named `%s`."],p00=$L,k00=H0,m00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],h00="Remove the period.",d00="Indexed access uses bracket notation.",y00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],g00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],_00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],b00=[0,[11,NR,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],w00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],T00=H0,E00=z3,S00=" You can try using JavaScript private fields by prepending `#` to the field name.",A00=_l,I00=" Fields and methods are public by default. You can simply omit the `public` keyword.",j00=U3,P00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],N00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],O00=[0,[11,hL,[2,0,0]],"Unexpected %s"],C00=[0,[11,NR,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],D00=[0,[11,hL,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],R00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],F00="Parse_error.Error",L00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Vt],[0,Wp,Ly],[0,PP,n9],[0,vj,tm],[0,P4,uE],[0,dv,Db],[0,$I,xl],[0,x2,706],[0,GR,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,MM,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,hR,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,kj,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,uL,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,xw],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,XL,GF],[0,8255,8257],[0,8276,8277],[0,Yk,8306],[0,sm,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,Am,8451],[0,U8,8456],[0,8458,Fk],[0,fk,8470],[0,UM,8478],[0,Dm,d4],[0,yk,gk],[0,V4,H4],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,mk,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,Yp],[0,Kk,11560],[0,Kp,11566],[0,11568,11624],[0,L8,11632],[0,r8,11671],[0,11680,S4],[0,11688,Tk],[0,11696,Zp],[0,11704,Ok],[0,11712,Z8],[0,11720,z8],[0,11728,J4],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,Jp],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,G8],[0,12449,gm],[0,12540,12544],[0,12549,D8],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,rm],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,zk,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,K8,nm],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,D4,43482],[0,43488,dm],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,Ck,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,s8],[0,43816,lk],[0,43824,l8],[0,43868,hk],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,U4,Qk],[0,64298,ym],[0,64312,im],[0,t8,o4],[0,64320,C4],[0,64323,_8],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,O4],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,X8],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,el,bk],[0,65549,Ak],[0,65576,g4],[0,65596,T8],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,y8],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,hm,b8],[0,67594,H8],[0,67639,67641],[0,um,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,Im],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Um,68100],[0,68101,68103],[0,68108,p4],[0,68117,Nm],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,$p],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,dk,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,I4],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,Wk,_k],[0,69968,70004],[0,e4,70007],[0,70016,70085],[0,70089,70093],[0,70096,Qp],[0,Om,70109],[0,70144,om],[0,70163,70200],[0,70206,70207],[0,70272,Nk],[0,h8,k4],[0,70282,c8],[0,70287,i4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,Uk],[0,70405,70413],[0,70415,70417],[0,70419,qk],[0,70442,w4],[0,70450,Pm],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Cm,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,Q8,70752],[0,70784,N8],[0,A8,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,xk,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,Rk],[0,Up,72165],[0,vm,72255],[0,72263,72264],[0,m8,72346],[0,pk,72350],[0,72384,72441],[0,72704,o8],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,r4],[0,72968,P8],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,mm],[0,73063,Bk],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,Vk,94088],[0,94095,94112],[0,94176,ck],[0,X4,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,Xp],[0,119894,Xk],[0,119966,119968],[0,Mm,119971],[0,119973,119975],[0,119977,tk],[0,119982,q4],[0,B8,j8],[0,119997,k8],[0,120005,L4],[0,120071,120075],[0,120077,nk],[0,120086,g8],[0,120094,vk],[0,120123,W4],[0,120128,am],[0,K4,120135],[0,120138,z4],[0,120146,120486],[0,120488,_m],[0,120514,jk],[0,120540,a8],[0,120572,Gp],[0,120598,n4],[0,120630,pm],[0,120656,V8],[0,120688,Rm],[0,120714,u8],[0,120746,Sm],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,j4,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,R8],[0,126469,Tm],[0,126497,W8],[0,G4,126501],[0,u4,E8],[0,126505,c4],[0,126516,Q4],[0,qp,e8],[0,Zk,126524],[0,J8,126531],[0,Y8,N4],[0,I8,w8],[0,bm,q8],[0,126541,Dk],[0,126545,T4],[0,$x,126549],[0,S8,wm],[0,b4,kk],[0,uk,Fm],[0,Vp,fm],[0,t4,Em],[0,126561,Z4],[0,x4,126565],[0,126567,em],[0,126572,Hp],[0,126580,wk],[0,126585,R4],[0,v4,Lm],[0,126592,n8],[0,126603,126620],[0,126625,Jk],[0,126629,Hk],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],M00=[0,1,0],U00=[0,0,[0,1,0],[0,1,0]],q00=vL,B00="end of input",X00=yl,J00="template literal part",K00=yl,Y00=tL,z00=vL,V00=yl,G00=yv,W00=yl,$00=vo,H00=yl,Q00=Rv,Z00="an",xx0=dt,rx0=bf,ex0=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],tx0="{",nx0=$k,ux0="{|",ix0="|}",fx0=LD,cx0=Yw,sx0="[",ax0="]",ox0=Ib,vx0=JD,lx0=Mf,px0="=>",kx0="...",mx0=yF,hx0=XD,dx0=pv,yx0=ik,gx0=aa,_x0=G3,bx0=Se,wx0=Pe,Tx0=uo,Ex0=je,Sx0=lm,Ax0=al,Ix0=Y4,jx0=y4,Px0=ul,Nx0=mv,Ox0=oo,Cx0=ls,Dx0=as,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_SWITCH",f10="T_THIS",c10="T_THROW",s10="T_TRY",a10="T_VAR",o10="T_WHILE",v10="T_WITH",l10="T_CONST",p10="T_LET",k10="T_NULL",m10="T_FALSE",h10="T_TRUE",d10="T_BREAK",y10="T_CASE",g10="T_CATCH",_10="T_CONTINUE",b10="T_DEFAULT",w10="T_DO",T10="T_FINALLY",E10="T_FOR",S10="T_CLASS",A10="T_EXTENDS",I10="T_STATIC",j10="T_ELSE",P10="T_NEW",N10="T_DELETE",O10="T_TYPEOF",C10="T_VOID",D10="T_ENUM",R10="T_EXPORT",F10="T_IMPORT",L10="T_SUPER",M10="T_IMPLEMENTS",U10="T_INTERFACE",q10="T_PACKAGE",B10="T_PRIVATE",X10="T_PROTECTED",J10="T_PUBLIC",K10="T_YIELD",Y10="T_DEBUGGER",z10="T_DECLARE",V10="T_TYPE",G10="T_OPAQUE",W10="T_OF",$10="T_ASYNC",H10="T_AWAIT",Q10="T_CHECKS",Z10="T_RSHIFT3_ASSIGN",xe0="T_RSHIFT_ASSIGN",re0="T_LSHIFT_ASSIGN",ee0="T_BIT_XOR_ASSIGN",te0="T_BIT_OR_ASSIGN",ne0="T_BIT_AND_ASSIGN",ue0="T_MOD_ASSIGN",ie0="T_DIV_ASSIGN",fe0="T_MULT_ASSIGN",ce0="T_EXP_ASSIGN",se0="T_MINUS_ASSIGN",ae0="T_PLUS_ASSIGN",oe0="T_NULLISH_ASSIGN",ve0="T_AND_ASSIGN",le0="T_OR_ASSIGN",pe0="T_ASSIGN",ke0="T_PLING_PERIOD",me0="T_PLING_PLING",he0="T_PLING",de0="T_COLON",ye0="T_OR",ge0="T_AND",_e0="T_BIT_OR",be0="T_BIT_XOR",we0="T_BIT_AND",Te0="T_EQUAL",Ee0="T_NOT_EQUAL",Se0="T_STRICT_EQUAL",Ae0="T_STRICT_NOT_EQUAL",Ie0="T_LESS_THAN_EQUAL",je0="T_GREATER_THAN_EQUAL",Pe0="T_LESS_THAN",Ne0="T_GREATER_THAN",Oe0="T_LSHIFT",Ce0="T_RSHIFT",De0="T_RSHIFT3",Re0="T_PLUS",Fe0="T_MINUS",Le0="T_DIV",Me0="T_MULT",Ue0="T_EXP",qe0="T_MOD",Be0="T_NOT",Xe0="T_BIT_NOT",Je0="T_INCR",Ke0="T_DECR",Ye0="T_EOF",ze0="T_ANY_TYPE",Ve0="T_MIXED_TYPE",Ge0="T_EMPTY_TYPE",We0="T_NUMBER_TYPE",$e0="T_BIGINT_TYPE",He0="T_STRING_TYPE",Qe0="T_VOID_TYPE",Ze0="T_SYMBOL_TYPE",xt0="T_UNKNOWN_TYPE",rt0="T_NEVER_TYPE",et0="T_UNDEFINED_TYPE",tt0="T_KEYOF",nt0="T_READONLY",ut0="T_INFER",it0="T_IS",ft0="T_ASSERTS",ct0="T_IMPLIES",st0=VR,at0=VR,ot0="T_NUMBER",vt0="T_BIGINT",lt0="T_STRING",pt0="T_TEMPLATE_PART",kt0="T_IDENTIFIER",mt0="T_REGEXP",ht0="T_INTERPRETER",dt0="T_ERROR",yt0="T_JSX_IDENTIFIER",gt0=tU,_t0=tU,bt0="T_BOOLEAN_TYPE",wt0="T_NUMBER_SINGLETON_TYPE",Tt0="T_BIGINT_SINGLETON_TYPE",Et0=[0,ZF,Fw,9],St0=[0,ZF,Qb,9],At0=aF,It0="*/",jt0=aF,Pt0="unreachable line_comment",Nt0="unreachable string_quote",Ot0="\\",Ct0="unreachable template_part",Dt0=`\r -`,Rt0=gb,Ft0="unreachable regexp_class",Lt0=AM,Mt0="unreachable regexp_body",Ut0=H0,qt0=H0,Bt0=H0,Xt0=H0,Jt0=gM,Kt0="{'>'}",Yt0=W3,zt0="{'}'}",Vt0=$k,Gt0=fa,Wt0=Ib,$t0=Mp,Ht0=gM,Qt0=fa,Zt0=Ib,xn0=Mp,rn0="unreachable type_token wholenumber",en0="unreachable type_token wholebigint",tn0="unreachable type_token floatbigint",nn0="unreachable type_token scinumber",un0="unreachable type_token scibigint",in0="unreachable type_token hexnumber",fn0="unreachable type_token hexbigint",cn0="unreachable type_token legacyoctnumber",sn0="unreachable type_token octnumber",an0="unreachable type_token octbigint",on0="unreachable type_token binnumber",vn0="unreachable type_token bigbigint",ln0="unreachable type_token",pn0=EM,kn0=[11,1],mn0=[11,0],hn0="unreachable template_tail",dn0=H0,yn0=H0,gn0="unreachable jsx_child",_n0="unreachable jsx_tag",bn0=[0,pR],wn0=[0,913],Tn0=[0,dv],En0=[0,T9],Sn0=[0,KR],An0=[0,ZM],In0=[0,8747],jn0=[0,hM],Pn0=[0,916],Nn0=[0,8225],On0=[0,935],Cn0=[0,pL],Dn0=[0,914],Rn0=[0,RL],Fn0=[0,XR],Ln0=[0,qM],Mn0=[0,915],Un0=[0,$M],qn0=[0,919],Bn0=[0,917],Xn0=[0,AP],Jn0=[0,sM],Kn0=[0,jR],Yn0=[0,924],zn0=[0,923],Vn0=[0,922],Gn0=[0,sU],Wn0=[0,921],$n0=[0,$R],Hn0=[0,Qb],Qn0=[0,KD],Zn0=[0,$I],x70=[0,927],r70=[0,937],e70=[0,rU],t70=[0,eL],n70=[0,k_],u70=[0,338],i70=[0,352],f70=[0,929],c70=[0,936],s70=[0,8243],a70=[0,928],o70=[0,934],v70=[0,tM],l70=[0,MD],p70=[0,933],k70=[0,LL],m70=[0,fM],h70=[0,BM],d70=[0,920],y70=[0,932],g70=[0,WD],_70=[0,VF],b70=[0,UF],w70=[0,IL],T70=[0,918],E70=[0,376],S70=[0,HF],A70=[0,926],I70=[0,PL],j70=[0,MM],P70=[0,925],N70=[0,39],O70=[0,8736],C70=[0,8743],D70=[0,38],R70=[0,945],F70=[0,8501],L70=[0,Tv],M70=[0,8226],U70=[0,RF],q70=[0,946],B70=[0,8222],X70=[0,jL],J70=[0,eU],K70=[0,8776],Y70=[0,bM],z70=[0,8773],V70=[0,9827],G70=[0,GR],W70=[0,967],$70=[0,KF],H70=[0,tm],Q70=[0,cL],Z70=[0,Eb],xu0=[0,8595],ru0=[0,8224],eu0=[0,8659],tu0=[0,gF],nu0=[0,8746],uu0=[0,8629],iu0=[0,v8],fu0=[0,8745],cu0=[0,8195],su0=[0,8709],au0=[0,oU],ou0=[0,pU],vu0=[0,wF],lu0=[0,xl],pu0=[0,9830],ku0=[0,8707],mu0=[0,8364],hu0=[0,OM],du0=[0,po],yu0=[0,951],gu0=[0,8801],_u0=[0,949],bu0=[0,8194],wu0=[0,8805],Tu0=[0,947],Eu0=[0,8260],Su0=[0,bR],Au0=[0,_L],Iu0=[0,Fw],ju0=[0,8704],Pu0=[0,oF],Nu0=[0,UL],Ou0=[0,8230],Cu0=[0,9829],Du0=[0,8596],Ru0=[0,8660],Fu0=[0,62],Lu0=[0,402],Mu0=[0,948],Uu0=[0,OF],qu0=[0,Gk],Bu0=[0,8712],Xu0=[0,fL],Ju0=[0,953],Ku0=[0,8734],Yu0=[0,8465],zu0=[0,YM],Vu0=[0,8220],Gu0=[0,8968],Wu0=[0,8592],$u0=[0,Ly],Hu0=[0,10216],Qu0=[0,955],Zu0=[0,8656],xi0=[0,954],ri0=[0,60],ei0=[0,8216],ti0=[0,8249],ni0=[0,GF],ui0=[0,9674],ii0=[0,8727],fi0=[0,8970],ci0=[0,WF],si0=[0,8711],ai0=[0,956],oi0=[0,8722],vi0=[0,vj],li0=[0,PP],pi0=[0,8212],ki0=[0,nR],mi0=[0,8804],hi0=[0,957],di0=[0,FD],yi0=[0,8836],gi0=[0,8713],_i0=[0,LF],bi0=[0,8715],wi0=[0,8800],Ti0=[0,8853],Ei0=[0,959],Si0=[0,969],Ai0=[0,8254],Ii0=[0,dM],ji0=[0,339],Pi0=[0,NI],Ni0=[0,YL],Oi0=[0,n9],Ci0=[0,Pk],Di0=[0,8855],Ri0=[0,MF],Fi0=[0,x2],Li0=[0,P4],Mi0=[0,Wp],Ui0=[0,RM],qi0=[0,wR],Bi0=[0,982],Xi0=[0,960],Ji0=[0,966],Ki0=[0,8869],Yi0=[0,8240],zi0=[0,8706],Vi0=[0,8744],Gi0=[0,8211],Wi0=[0,10217],$i0=[0,8730],Hi0=[0,8658],Qi0=[0,34],Zi0=[0,968],xf0=[0,8733],rf0=[0,8719],ef0=[0,961],tf0=[0,8971],nf0=[0,uU],uf0=[0,8476],if0=[0,8221],ff0=[0,8969],cf0=[0,8594],sf0=[0,uE],af0=[0,FL],of0=[0,eM],vf0=[0,8901],lf0=[0,353],pf0=[0,8218],kf0=[0,8217],mf0=[0,8250],hf0=[0,8835],df0=[0,8721],yf0=[0,8838],gf0=[0,8834],_f0=[0,9824],bf0=[0,8764],wf0=[0,962],Tf0=[0,963],Ef0=[0,8207],Sf0=[0,952],Af0=[0,8756],If0=[0,964],jf0=[0,ak],Pf0=[0,8839],Nf0=[0,qD],Of0=[0,fI],Cf0=[0,Mv],Df0=[0,8657],Rf0=[0,8482],Ff0=[0,Db],Lf0=[0,732],Mf0=[0,Pv],Uf0=[0,8201],qf0=[0,977],Bf0=[0,UM],Xf0=[0,go],Jf0=[0,965],Kf0=[0,978],Yf0=[0,Mb],zf0=[0,vy],Vf0=[0,bL],Gf0=[0,XL],Wf0=[0,8205],$f0=[0,950],Hf0=[0,m4],Qf0=[0,oj],Zf0=[0,i8],xc0=[0,958],rc0=[0,8593],ec0=[0,tF],tc0=[0,8242],nc0=[0,pT],uc0="unreachable regexp",ic0="unreachable token wholenumber",fc0="unreachable token wholebigint",cc0="unreachable token floatbigint",sc0="unreachable token scinumber",ac0="unreachable token scibigint",oc0="unreachable token hexnumber",vc0="unreachable token hexbigint",lc0="unreachable token legacyoctnumber",pc0="unreachable token legacynonoctnumber",kc0="unreachable token octnumber",mc0="unreachable token octbigint",hc0="unreachable token bignumber",dc0="unreachable token bigint",yc0="unreachable token",gc0=EM,_c0=[7,"#!"],bc0="expected ?",wc0="unreachable string_escape",Tc0=$1,Ec0=X3,Sc0=X3,Ac0=$1,Ic0=QT,jc0=ZL,Pc0="n",Nc0="r",Oc0="t",Cc0=BR,Dc0=X3,Rc0=fa,Fc0=fa,Lc0="unreachable id_char",Mc0=fa,Uc0=fa,qc0=X3,Bc0=OR,Xc0=NF,Jc0=uw,Kc0=[24,"token ILLEGAL"],Yc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],zc0=[0,1],Vc0=[0,1],Gc0=sF,Wc0=sF,$c0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],Hc0=l4,Qc0="Peeking current location when not available",Zc0=[0,"src/parser/parser_env.ml",351,9],xs0="Internal Error: Tried to add_declared_private with outside of class scope.",rs0="Internal Error: `exit_class` called before a matching `enter_class`",es0=H0,ts0=[0,0,0],ns0=[0,0,0],us0="Parser_env.Try.Rollback",is0=H0,fs0=H0,cs0=[0,M1,Xu,Hi,iF,EF,gf,L1,oi,jc,Mu,A7,On,lc,ju,Hu,h7,n7,N7,If,Nf,si,d7,bn,Zu,bc,e7,gc,xi,Af,ii,Pn,En,Jf,nu,fu,Gi,Ac,je,cf,ai,kc,xf,df,P7,au,Pe,Li,x7,Ai,Ei,oc,a7,Pu,ec,Se,Gn,o7,Pi,Z7,ku,z7,tc,Ie,G7,rc,_f,eu,Sc,Tf,M7,Rf,Wf,lu,di,Wn,Jn,yu,S7,i7,ac,xc,y7,ou,dc,$t,af,Iu,Rn,Lf,D7,$u,Bf,Ju,nf,Ku,Ln,_c,Ki,Tc,ji,q7,jf,yf,ki,s7,tf,T7,pc,Tu,mc,yc,Xn,Du,nc,mu,Vu,Bn,Er,Fi,X7,_n,v7,li,Tn,du,m7,Uf,Oi,Cf,Df,An,F7,qn,l7,zu,wc,Bu,ru,rf,Fn,Yf,vc,Au,gi,dn,H7,L7,Oc,K7,bi,wf,Nn,Lu,W1,c7,Ef,V7,$i,Kn,bu,B7,ti,R1,t7,Un,r7,dt,su,W7,ni,Q7,Si,Ec,ui,gn,Qi,Uu,kf,Ru,Fu,p7,wn,Zn,zf,yn,O7,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,jc,sc,u7,bc,iF,sf,Bu,L7,Gf,Oi,Wn,Du,bi,w7,An,bn,kc,pi,Ji,yu,Su,Ti,V2,ou,Ff,Cu,yn,O7,Ei,_e,wn,Nu,M7,Xi,Kf,ai,xf,Ou,ff,Hu,U7,Rn,Bt,bu,Dn,l7,nf,Zn,_u,Gn,vu,Ee,vf,W1,Ci,Hi,Qu,Pi,ef,Sn,lu,cf,Bn],vs0=pv,ls0=ik,ps0=aa,ks0=G3,ms0=Se,hs0=Pe,ds0=uo,ys0=je,gs0=lm,_s0=al,bs0=Y4,ws0=y4,Ts0=ul,Es0=mv,Ss0=oo,As0=ls,Is0=as,js0=Ee,Ps0=$4,Ns0=x8,Os0=_e,Cs0=io,Ds0=xm,Rs0=F4,Fs0=Sk,Ls0=K3,Ms0=hc,Us0=Ae,qs0=B4,Bs0=no,Xs0=nl,Js0=ss,Ks0=ps,Ys0=sl,zs0=ok,Vs0=R1,Gs0=jv,Ws0=lo,$s0=W1,Hs0=ek,Qs0=_l,Zs0=z3,xa0=U3,ra0=M1,ea0=we,ta0=H3,na0=qu,ua0=U9,ia0=W9,fa0=oa,ca0=_o,sa0=p8,aa0=h4,oa0=ie,va0=yv,la0=vo,pa0=Rv,ka0=ps,ma0=ox,ha0=F8,da0=Mk,ya0=cm,ga0=Lk,_a0=ko,ba0=ll,wa0=hv,Ta0=ov,Ea0=$3,Sa0=C8,Aa0=[0,l4],Ia0=H0,ja0=[0,1],Pa0=[0,_v,1429,6],Na0=[0,_v,1432,6],Oa0=[0,_v,1535,8],Ca0=[0,1],Da0=[0,_v,hR,8],Ra0="Can not have both `static` and `proto`",Fa0=Ae,La0=Rj,Ma0=[0,0,0,0],Ua0=[0,0],qa0=[0,[0,0,0,0,0]],Ba0="You should only call render_type after making sure the next token is a renders variant",Xa0=[0,"the end of a tuple type (no trailing comma is allowed in inexact tuple type)."],Ja0=ll,Ka0=hv,Ya0=ov,za0=[0,"a number literal type"],Va0=[0,0],Ga0=ta,Wa0=[0,0],$a0=[0,"a type"],Ha0=[0,0],Qa0=[0,0],Za0=[17,1],xo0=[17,0],ro0=[0,_v,k_,15],eo0=[0,_v,fI,15],to0=rt,no0=rt,uo0=M8,io0=pl,fo0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],co0=[0,0,0,0],so0="Offset_utils.Offset_lookup_failed",ao0=l2,oo0=CF,vo0=pl,lo0=M8,po0=AL,ko0=pl,mo0=M8,ho0=P5,do0=jE,yo0="normal",go0=qu,_o0="jsxTag",bo0="jsxChild",wo0="template",To0=tL,Eo0="context",So0=qu,Ao0=[6,0],Io0=[0,0],jo0=[0,1],Po0=[0,4],No0=[0,2],Oo0=[0,3],Co0=[0,0],Do0=rt,Ro0=[0,0,0,0,0,0],Fo0=[0,1],Lo0=[0,Wy,1773,21],Mo0=[0,"a declaration, statement or export specifiers"],Uo0=[0,81],qo0=fl,Bo0=[0,H0,H0,0],Xo0=[0,ZD],Jo0="exports",Ko0=Xw,Yo0=aM,zo0=[0,81],Vo0=ta,Go0=[0,70],Wo0=[0,0],$o0=[0,1],Ho0=[0,"the keyword `as`"],Qo0=[0,30],Zo0=[0,30],xv0=[0,0],rv0=[0,1],ev0=[0,ZD],tv0=[0,"the keyword `from`"],nv0=[0,H0,H0,0],uv0=[0,GL],iv0="Label",fv0=[0,GL],cv0=[0,0,0],sv0=[0,40],av0=[0,Wy,371,22],ov0=[0,39],vv0=[0,Wy,390,22],lv0=[0,0],pv0="the token `;`",kv0=[0,0],mv0=[0,0],hv0=DR,dv0=[0,l4],yv0=DR,gv0=[24,dt],_v0=ta,bv0=[0,70],wv0=[0,H0,0],Tv0=Jt,Ev0=[0,70],Sv0=[0,70],Av0=pv,Iv0=[0,H0,0],jv0=[0,0,0],Pv0=[0,0,0],Nv0=[0,78],Ov0=G1,Cv0=G1,Dv0=[0,"a regular expression"],Rv0=H0,Fv0=H0,Lv0=H0,Mv0=[0,"src/parser/expression_parser.ml",1365,17],Uv0=[0,"a template literal part"],qv0=[0,[0,H0,H0],1],Bv0=[0,0],Xv0=X3,Jv0=OR,Kv0=uw,Yv0=uw,zv0=NF,Vv0=[0,70],Gv0=[0,1],Wv0=[0,1],$v0=[0,1],Hv0=[0,1],Qv0=[0,1],Zv0=Sv,x30=no,r30=[0,"the identifier `target`"],e30=[0,0],t30=R1,n30=ml,u30=ml,i30=jv,f30=[0,"either a call or access of `super`"],c30=jv,s30=[0,1],a30=[0,0],o30=[0,1],v30=[0,0],l30=[0,1],p30=[0,0],k30=[0,2],m30=[0,3],h30=[0,7],d30=[0,6],y30=[0,4],g30=[0,5],_30=[0,6],b30=[0,[0,17,[0,2]]],w30=[0,[0,18,[0,3]]],T30=[0,[0,19,[0,4]]],E30=[0,[0,0,[0,5]]],S30=[0,[0,1,[0,5]]],A30=[0,[0,2,[0,5]]],I30=[0,[0,3,[0,5]]],j30=[0,[0,5,[0,6]]],P30=[0,[0,7,[0,6]]],N30=[0,[0,4,[0,6]]],O30=[0,[0,6,[0,6]]],C30=[0,[0,8,[0,7]]],D30=[0,[0,9,[0,7]]],R30=[0,[0,10,[0,7]]],F30=[0,[0,11,[0,8]]],L30=[0,[0,12,[0,8]]],M30=[0,[0,15,[0,9]]],U30=[0,[0,13,[0,9]]],q30=[0,[0,14,[1,10]]],B30=[0,[0,16,[0,9]]],X30=[0,[0,21,[0,6]]],J30=[0,[0,20,[0,6]]],K30=[20,m5],Y30=[0,[0,8]],z30=[0,[0,7]],V30=[0,[0,6]],G30=[0,[0,10]],W30=[0,[0,9]],$30=[0,[0,11]],H30=[0,[0,5]],Q30=[0,[0,4]],Z30=[0,[0,2]],xl0=[0,[0,3]],rl0=[0,[0,1]],el0=[0,[0,0]],tl0=[0,[0,12]],nl0=[0,[0,13]],ul0=[0,[0,14]],il0=[0,0],fl0=Ao,cl0=Mf,sl0=[13,"JSX fragment"],al0=[0,Ut],ol0=[1,Ut],vl0=[0,H0,H0,0],ll0=[0,l4],pl0=H0,kl0=K3,ml0=[0,H0,0],hl0="unexpected PrivateName in Property, expected a PrivateField",dl0=[0,0,0],yl0=sa,gl0="Must be one of the above",_l0=[0,1],bl0=[0,1],wl0=[0,1],Tl0=sa,El0=sa,Sl0=Ug,Al0="Internal Error: private name found in object props",Il0=[0,XF],jl0=[19,[0,0]],Pl0=[0,XF],Nl0=[0,0,0,0],Ol0=gb,Cl0="Nooo: ",Dl0=io,Rl0="Parser error: No such thing as an expression pattern!",Fl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Ll0=[0,"src/parser/parser_flow.ml",v8,28],Ml0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Ul0=CF,ql0=jE,Bl0=lF,Xl0=BL,Jl0=BL,Kl0=lF,Yl0=qu,zl0=VD,Vl0=P2,Gl0=l2,Wl0="InterpreterDirective",$l0="interpreter",Hl0="Program",Ql0=gl,Zl0="BreakStatement",x60=gl,r60="ContinueStatement",e60="DebuggerStatement",t60=Io,n60="DeclareExportAllDeclaration",u60=Io,i60=I_,f60=VI,c60=io,s60="DeclareExportDeclaration",a60=P2,o60=Hr,v60="DeclareModule",l60=Y2,p60="DeclareModuleExports",k60=P2,m60=Hr,h60="DeclareNamespace",d60=bv,y60=P2,g60="DoWhileStatement",_60="EmptyStatement",b60=J9,w60=VI,T60="ExportDefaultDeclaration",E60=J9,S60=Nb,A60=Io,I60="ExportAllDeclaration",j60=J9,P60=Io,N60=I_,O60=VI,C60="ExportNamedDeclaration",D60="directive",R60=V2,F60="ExpressionStatement",L60=P2,M60="update",U60=bv,q60=$7,B60="ForStatement",X60="each",J60=P2,K60=Gt,Y60=os,z60="ForInStatement",V60=_o,G60=P2,W60=Gt,$60=os,H60="ForOfStatement",Q60=oM,Z60=iI,xp0=bv,rp0="IfStatement",ep0=qu,tp0=ss,np0=l2,up0=SR,ip0=Io,fp0=I_,cp0="ImportDeclaration",sp0=P2,ap0=gl,op0="LabeledStatement",vp0=ne,lp0="ReturnStatement",pp0="cases",kp0="discriminant",mp0="SwitchStatement",hp0=ne,dp0="ThrowStatement",yp0="finalizer",gp0="handler",_p0=Bt,bp0="TryStatement",wp0=P2,Tp0=bv,Ep0="WhileStatement",Sp0=P2,Ap0=tb,Ip0="WithStatement",jp0=IF,Pp0="ArrayExpression",Np0=F1,Op0=O8,Cp0=V2,Dp0=Ie,Rp0=VT,Fp0=oa,Lp0=P2,Mp0=Kt,Up0=Hr,qp0="ArrowFunctionExpression",Bp0=V2,Xp0="AsConstExpression",Jp0=Y2,Kp0=V2,Yp0="AsExpression",zp0=Ug,Vp0=Gt,Gp0=os,Wp0=Iv,$p0="AssignmentExpression",Hp0=Gt,Qp0=os,Zp0=Iv,x40="BinaryExpression",r40="CallExpression",e40=oM,t40=iI,n40=bv,u40="ConditionalExpression",i40=Io,f40="ImportExpression",c40=pF,s40=cU,a40=m5,o40=Gt,v40=os,l40=Iv,p40="LogicalExpression",k40="MemberExpression",m40=qA,h40=ml,d40="MetaProperty",y40=_A,g40=A4,_40=XM,b40="NewExpression",w40=y5,T40="ObjectExpression",E40=xt,S40="OptionalCallExpression",A40=xt,I40="OptionalMemberExpression",j40=PM,P40="SequenceExpression",N40="Super",O40="ThisExpression",C40=Y2,D40=V2,R40="TypeCastExpression",F40=Y2,L40=V2,M40="SatisfiesExpression",U40=ne,q40="AwaitExpression",B40=rt,X40=ys,J40=UR,K40=iM,Y40=ss,z40=ps,V40=nl,G40="matched above",W40=ne,$40=rR,H40=Iv,Q40="UnaryExpression",Z40=SF,xk0=DM,rk0=rR,ek0=ne,tk0=Iv,nk0="UpdateExpression",uk0="delegate",ik0=ne,fk0="YieldExpression",ck0="Unexpected FunctionDeclaration with BodyExpression",sk0="HookDeclaration",ak0=V2,ok0=Ie,vk0=VT,lk0=oa,pk0="FunctionDeclaration",kk0=F1,mk0=O8,hk0=P2,dk0=Kt,yk0=Hr,gk0="Unexpected FunctionExpression with BodyExpression",_k0=F1,bk0=O8,wk0=V2,Tk0=Ie,Ek0=VT,Sk0=oa,Ak0=P2,Ik0=Kt,jk0=Hr,Pk0="FunctionExpression",Nk0=xt,Ok0=Y2,Ck0=Te,Dk0=IE,Rk0=xt,Fk0=Y2,Lk0=Te,Mk0="PrivateIdentifier",Uk0=xt,qk0=Y2,Bk0=Te,Xk0=IE,Jk0=iI,Kk0=bv,Yk0="SwitchCase",zk0=P2,Vk0="param",Gk0="CatchClause",Wk0=P2,$k0="BlockStatement",Hk0=ca,Qk0=Hr,Zk0="DeclareVariable",x80="DeclareHook",r80=Ie,e80="DeclareFunction",t80=Hr,n80=kF,u80=lo,i80=hc,f80=P2,c80=F1,s80=Hr,a80="DeclareClass",o80=F1,v80=Gg,l80=Kt,p80=y_,k80=Kt,m80=Hr,h80="DeclareComponent",d80=F1,y80=Gg,g80=y_,_80=Kt,b80="ComponentTypeAnnotation",w80=xt,T80=Y2,E80=Te,S80="ComponentTypeParameter",A80=P2,I80=Hr,j80="DeclareEnum",P80=hc,N80=P2,O80=F1,C80=Hr,D80="DeclareInterface",R80=l2,F80=qu,L80=Nb,M80="ExportNamespaceSpecifier",U80=Gt,q80=F1,B80=Hr,X80="DeclareTypeAlias",J80=Gt,K80=F1,Y80=Hr,z80="TypeAlias",V80="DeclareOpaqueType",G80="OpaqueType",W80="supertype",$80="impltype",H80=F1,Q80=Hr,Z80="ClassDeclaration",xm0="ClassExpression",rm0=km,em0=lo,tm0="superTypeParameters",nm0="superClass",um0=F1,im0=P2,fm0=Hr,cm0=V2,sm0="Decorator",am0=F1,om0=Hr,vm0="ClassImplements",lm0=P2,pm0="ClassBody",km0=ho,mm0=Z3,hm0=bo,dm0=Dv,ym0=km,gm0=Nv,_m0=Ae,bm0=ca,wm0=l2,Tm0=co,Em0="MethodDefinition",Sm0=H3,Am0=km,Im0=L1,jm0=Ae,Pm0=Nv,Nm0=Y2,Om0=l2,Cm0=co,Dm0=cF,Rm0="Internal Error: Private name found in class prop",Fm0=H3,Lm0=km,Mm0=L1,Um0=Ae,qm0=Nv,Bm0=Y2,Xm0=l2,Jm0=co,Km0=cF,Ym0=F1,zm0=Gg,Vm0=Kt,Gm0=Hr,Wm0=P2,$m0="ComponentDeclaration",Hm0=ne,Qm0=I5,Zm0=Gt,xh0=os,rh0=M4,eh0=Iw,th0=cl,nh0=Te,uh0="ComponentParameter",ih0=$7,fh0=Hr,ch0="EnumBigIntMember",sh0=Hr,ah0=iR,oh0=$7,vh0=Hr,lh0="EnumStringMember",ph0=Hr,kh0=iR,mh0=$7,hh0=Hr,dh0="EnumNumberMember",yh0=$7,gh0=Hr,_h0="EnumBooleanMember",bh0=V3,wh0=jm,Th0=Q3,Eh0="EnumBooleanBody",Sh0=V3,Ah0=jm,Ih0=Q3,jh0="EnumNumberBody",Ph0=V3,Nh0=jm,Oh0=Q3,Ch0="EnumStringBody",Dh0=V3,Rh0=Q3,Fh0="EnumSymbolBody",Lh0=V3,Mh0=jm,Uh0=Q3,qh0="EnumBigIntBody",Bh0=P2,Xh0=Hr,Jh0="EnumDeclaration",Kh0=hc,Yh0=P2,zh0=F1,Vh0=Hr,Gh0="InterfaceDeclaration",Wh0=F1,$h0=Hr,Hh0="InterfaceExtends",Qh0=Y2,Zh0=y5,xd0="ObjectPattern",rd0=Y2,ed0=IF,td0="ArrayPattern",nd0=Gt,ud0=os,id0=M4,fd0=Y2,cd0=Te,sd0=IE,ad0=ne,od0=I5,vd0=ne,ld0=I5,pd0=Gt,kd0=os,md0=M4,hd0=$7,dd0=$7,yd0=bo,gd0=Dv,_d0=xM,bd0=Nv,wd0=Iw,Td0=Z3,Ed0=ca,Sd0=l2,Ad0=co,Id0=mL,jd0=ne,Pd0=cM,Nd0=Gt,Od0=os,Cd0=M4,Dd0=Nv,Rd0=Iw,Fd0=Z3,Ld0=ca,Md0=l2,Ud0=co,qd0=mL,Bd0=ne,Xd0=cM,Jd0=bt,Kd0=l2,Yd0=lv,zd0=H0,Vd0=bt,Gd0=vo,Wd0=l2,$d0=lv,Hd0=bt,Qd0=l2,Zd0=lv,x50=as,r50=ls,e50=bt,t50=l2,n50=lv,u50="flags",i50=$t,f50="regex",c50=bt,s50=l2,a50=lv,o50=bt,v50=l2,l50=lv,p50=PM,k50="quasis",m50="TemplateLiteral",h50="cooked",d50=bt,y50="tail",g50=l2,_50="TemplateElement",b50="quasi",w50="tag",T50="TaggedTemplateExpression",E50=al,S50=mv,A50=ul,I50=ca,j50="declarations",P50="VariableDeclaration",N50=$7,O50=Hr,C50="VariableDeclarator",D50="plus",R50=CR,F50=ko,L50=aa,M50=Eg,U50="in-out",q50=ca,B50="Variance",X50="AnyTypeAnnotation",J50="MixedTypeAnnotation",K50="EmptyTypeAnnotation",Y50="VoidTypeAnnotation",z50="NullLiteralTypeAnnotation",V50="SymbolTypeAnnotation",G50="NumberTypeAnnotation",W50="BigIntTypeAnnotation",$50="StringTypeAnnotation",H50="BooleanTypeAnnotation",Q50=Y2,Z50="NullableTypeAnnotation",xy0="UnknownTypeAnnotation",ry0="NeverTypeAnnotation",ey0="UndefinedTypeAnnotation",ty0=ca,ny0=Y2,uy0="parameterName",iy0="TypePredicate",fy0="HookTypeAnnotation",cy0="FunctionTypeAnnotation",sy0=uo,ay0=F1,oy0=y_,vy0=O8,ly0=Kt,py0=xt,ky0=Y2,my0=Te,hy0=FR,dy0=xt,yy0=Y2,gy0=Te,_y0=FR,by0=[0,0,0,0,0],wy0="internalSlots",Ty0="callProperties",Ey0="indexers",Sy0=y5,Ay0="exact",Iy0=TR,jy0="ObjectTypeAnnotation",Py0=xM,Ny0="There should not be computed object type property keys",Oy0=$7,Cy0=bo,Dy0=Dv,Ry0=ca,Fy0=L1,Ly0=Rj,My0=Ae,Uy0=xt,qy0=Z3,By0=l2,Xy0=co,Jy0="ObjectTypeProperty",Ky0=ne,Yy0="ObjectTypeSpreadProperty",zy0=L1,Vy0=Ae,Gy0=l2,Wy0=co,$y0=Hr,Hy0="ObjectTypeIndexer",Qy0=Ae,Zy0=l2,x90="ObjectTypeCallProperty",r90=xt,e90=L1,t90="sourceType",n90="propType",u90="keyTparam",i90="ObjectTypeMappedTypeProperty",f90=l2,c90=Z3,s90=Ae,a90=xt,o90=Hr,v90="ObjectTypeInternalSlot",l90=P2,p90=hc,k90="InterfaceTypeAnnotation",m90=JF,h90="ArrayTypeAnnotation",d90="falseType",y90="trueType",g90="extendsType",_90="checkType",b90="ConditionalTypeAnnotation",w90="typeParameter",T90="InferTypeAnnotation",E90=Hr,S90=FM,A90="QualifiedTypeIdentifier",I90=F1,j90=Hr,P90="GenericTypeAnnotation",N90="indexType",O90="objectType",C90="IndexedAccessType",D90=xt,R90="OptionalIndexedAccessType",F90=lE,L90="UnionTypeAnnotation",M90=lE,U90="IntersectionTypeAnnotation",q90=A4,B90=ne,X90="TypeofTypeAnnotation",J90=Hr,K90=FM,Y90="QualifiedTypeofIdentifier",z90=ne,V90="KeyofTypeAnnotation",G90=dr,W90=OL,$90=rF,H90=Y2,Q90=Iv,Z90="TypeOperator",xg0=ko,rg0=TR,eg0="elementTypes",tg0="TupleTypeAnnotation",ng0=xt,ug0=L1,ig0=JF,fg0=gl,cg0="TupleTypeLabeledElement",sg0=Y2,ag0=gl,og0="TupleTypeSpreadElement",vg0=bt,lg0=l2,pg0="StringLiteralTypeAnnotation",kg0=bt,mg0=l2,hg0="NumberLiteralTypeAnnotation",dg0=bt,yg0=l2,gg0="BigIntLiteralTypeAnnotation",_g0=as,bg0=ls,wg0=bt,Tg0=l2,Eg0="BooleanLiteralTypeAnnotation",Sg0="ExistsTypeAnnotation",Ag0=Y2,Ig0=kR,jg0=Y2,Pg0=kR,Ng0=Kt,Og0="TypeParameterDeclaration",Cg0="usesExtendsBound",Dg0=io,Rg0=L1,Fg0="bound",Lg0=Te,Mg0="TypeParameter",Ug0=Kt,qg0=vR,Bg0=Kt,Xg0=vR,Jg0=Sv,Kg0=nM,Yg0="closingElement",zg0="openingElement",Vg0="JSXElement",Gg0="closingFragment",Wg0=nM,$g0="openingFragment",Hg0="JSXFragment",Qg0=A4,Zg0="selfClosing",x_0="attributes",r_0=Te,e_0="JSXOpeningElement",t_0="JSXOpeningFragment",n_0=Te,u_0="JSXClosingElement",i_0="JSXClosingFragment",f_0=l2,c_0=Te,s_0="JSXAttribute",a_0=ne,o_0="JSXSpreadAttribute",v_0="JSXEmptyExpression",l_0=V2,p_0="JSXExpressionContainer",k_0=V2,m_0="JSXSpreadChild",h_0=bt,d_0=l2,y_0="JSXText",g_0=qA,__0=tb,b_0="JSXMemberExpression",w_0=Te,T_0=Xw,E_0="JSXNamespacedName",S_0=Te,A_0="JSXIdentifier",I_0=Nb,j_0=cl,P_0="ExportSpecifier",N_0=cl,O_0="ImportDefaultSpecifier",C_0=cl,D_0="ImportNamespaceSpecifier",R_0=SR,F_0=cl,L_0="imported",M_0="ImportSpecifier",U_0="Line",q_0="Block",B_0=l2,X_0=l2,J_0="DeclaredPredicate",K_0="InferredPredicate",Y_0=_A,z_0=A4,V_0=XM,G_0=Nv,W_0=qA,$_0=tb,H_0="message",Q_0=jE,Z_0=AL,xb0=P5,rb0=Io,eb0=pl,tb0=M8,nb0=[0,M1,Xu,Hi,gf,L1,oi,jc,Mu,A7,On,lc,ju,Hu,h7,n7,N7,If,Nf,si,d7,bn,Zu,bc,e7,gc,xi,Af,ii,Pn,En,Jf,nu,fu,Gi,Ac,je,cf,ai,kc,xf,df,P7,au,Pe,Li,x7,Ai,Ei,oc,a7,Pu,ec,Se,Gn,o7,Pi,Z7,ku,z7,tc,Ie,G7,rc,_f,eu,Sc,Tf,M7,Rf,Wf,lu,di,Wn,Jn,yu,S7,i7,ac,xc,y7,ou,dc,$t,af,Iu,Rn,Lf,D7,$u,Bf,Ju,nf,Ku,Ln,_c,Ki,Tc,ji,q7,jf,yf,ki,s7,tf,T7,pc,Tu,mc,yc,Xn,Du,nc,mu,Vu,Bn,Er,Fi,X7,_n,v7,li,Tn,du,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yf,Fn,rf,ru,Bu,wc,zu,l7,qn,F7,An,Df,Cf,Oi,Uf,m7,du,Tn,li,v7,_n,X7,Fi,Er,Bn,Vu,mu,nc,Du,Xn,yc,mc,Tu,pc,T7,tf,s7,ki,yf,jf,q7,ji,Tc,Ki,_c,Ln,Ku,nf,Ju,Bf,$u,D7,Lf,Rn,Iu,af,$t,dc,ou,y7,xc,ac,i7,S7,yu,Jn,Wn,di,lu,Wf,Rf,M7,Tf,Sc,eu,_f,rc,G7,Ie,tc,z7,ku,Z7,Pi,o7,Gn,Se,ec,Pu,a7,oc,Ei,Ai,x7,Li,Pe,au,P7,df,xf,kc,ai,cf,je,Ac,Gi,fu,nu,Jf,En,Pn,ii,Af,xi,gc,e7,bc,Zu,bn,d7,si,Nf,If,N7,n7,h7,Hu,ju,lc,On,A7,Mu,jc,oi,L1,gf,Hi,Xu,M1],fb0="Jsoo_runtime.Error.Exn",cb0=[0,0],sb0="use_strict",ab0=lE,ob0="esproposal_decorators",vb0="enums",lb0="components",pb0="Internal error: ";function C2(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,C2(x[1])];case 1:return[1,C2(x[1])];case 2:return[2,C2(x[1])];case 3:return[3,C2(x[1])];case 4:return[4,C2(x[1])];case 5:return[5,C2(x[1])];case 6:return[6,C2(x[1])];case 7:return[7,C2(x[1])];case 8:var r=x[1];return[8,r,C2(x[2])];case 9:var e=x[1];return[9,e,e,C2(x[3])];case 10:return[10,C2(x[1])];case 11:return[11,C2(x[1])];case 12:return[12,C2(x[1])];case 13:return[13,C2(x[1])];default:return[14,C2(x[1])]}}function Q1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,Q1(x[1],r)];case 1:return[1,Q1(x[1],r)];case 2:return[2,Q1(x[1],r)];case 3:return[3,Q1(x[1],r)];case 4:return[4,Q1(x[1],r)];case 5:return[5,Q1(x[1],r)];case 6:return[6,Q1(x[1],r)];case 7:return[7,Q1(x[1],r)];case 8:var e=x[1];return[8,e,Q1(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,Q1(x[3],r)];case 10:return[10,Q1(x[1],r)];case 11:return[11,Q1(x[1],r)];case 12:return[12,Q1(x[1],r)];case 13:return[13,Q1(x[1],r)];default:return[14,Q1(x[1],r)]}}function E2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,E2(x[1],r)];case 1:return[1,E2(x[1],r)];case 2:var e=x[1];return[2,e,E2(x[2],r)];case 3:var t=x[1];return[3,t,E2(x[2],r)];case 4:var u=x[3],i=x[2],c=x[1];return[4,c,i,u,E2(x[4],r)];case 5:var v=x[3],a=x[2],p=x[1];return[5,p,a,v,E2(x[4],r)];case 6:var _=x[3],y=x[2],S=x[1];return[6,S,y,_,E2(x[4],r)];case 7:var E=x[3],j=x[2],C=x[1];return[7,C,j,E,E2(x[4],r)];case 8:var P=x[3],O=x[2],F=x[1];return[8,F,O,P,E2(x[4],r)];case 9:var K=x[1];return[9,K,E2(x[2],r)];case 10:return[10,E2(x[1],r)];case 11:var U=x[1];return[11,U,E2(x[2],r)];case 12:var V=x[1];return[12,V,E2(x[2],r)];case 13:var Q=x[2],$=x[1];return[13,$,Q,E2(x[3],r)];case 14:var x0=x[2],e0=x[1];return[14,e0,x0,E2(x[3],r)];case 15:return[15,E2(x[1],r)];case 16:return[16,E2(x[1],r)];case 17:var Z=x[1];return[17,Z,E2(x[2],r)];case 18:var c0=x[1];return[18,c0,E2(x[2],r)];case 19:return[19,E2(x[1],r)];case 20:var d0=x[2],n0=x[1];return[20,n0,d0,E2(x[3],r)];case 21:var P0=x[1];return[21,P0,E2(x[2],r)];case 22:return[22,E2(x[1],r)];case 23:var h0=x[1];return[23,h0,E2(x[2],r)];default:var g0=x[2],v0=x[1];return[24,v0,g0,E2(x[3],r)]}}function nN(x,r,e){return x[1]===r?(x[1]=e,1):0}function gx(x){throw U0([0,Qt,x],1)}function B1(x){throw U0([0,eN,x],1)}function rh(x){return 0<=x?x:-x|0}var kb0=$D;function Bx(x,r){var e=Nx(x),t=Nx(r),u=T2(e+t|0);return Dc(x,0,u,0,e),Dc(r,0,u,e,t),A1(u)}function mb0(x){return x?sz:az}function Fx(x,r){if(!x)return r;var e=x[1];return[0,e,Fx(x[2],r)]}KY(0);var hb0=KU(1),Lc=KU(2);function db0(x){for(var r=YY(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Rc(t)}catch(c){var u=O2(c);if(u[1]!==GU)throw U0(u,0)}var r=e}}function Ol(x,r){HP(x,r,0,Nx(r))}function ZU(x){return Ol(Lc,x),YU(Lc,10),Rc(Lc)}var uN=[0,db0];function iN(x){return l(uN[1],0)}ZP(QR,iN);var xq=xz(0)[1],Cl=(4*QY(0)|0)-1|0,yb0=[x2,oz,Ts(0)];function gb0(x){throw U0(yb0,1)}function eh(x,r){return r?[0,l(x,r[1])]:0}function rq(x){return 25>>0?x:x+YD|0}function Is(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Dl(x){return x?x[1]:gx(gz)}function eq(x){return x?x[2]:gx(yz)}function zv(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function vx(x){return zv(x,0)}function Rl(x){if(!x)return 0;var r=x[1];return Fx(r,Rl(x[2]))}function xn(x,r){if(!r)return 0;var e=r[2],t=x(r[1]);return[0,t,xn(x,e)]}function th(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,x(t[1]),e],t=u}}function p1(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];l(x,e[1]);var e=t}}function u1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=k(x,t,u[1]),u=i}}function fN(x,r,e){if(!r)return e;var t=r[1];return x(t,fN(x,r[2],e))}function tq(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],c=t[2];x(t[1],u[1]);var t=c,u=i;continue}}else if(!u)return;return B1(dz)}}function cN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=x(e[1]);if(u)return u;var e=t}}function sN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=CU(e[1],x)===0?1:0;if(u)return u;var e=t}}function Fl(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return vx(t);var i=u[2],c=u[1];if(x(c))var t=[0,c,t],u=i;else var u=i}}}function No(x,r){var e=T2(x);return EY(e,0,x,r),e}function nq(x){var r=nt(x),e=T2(r);return gs(x,0,e,0,r),e}function uq(x,r,e){if(0<=r&&0<=e&&(nt(x)-e|0)>=r){var t=T2(e);return gs(x,r,t,0,e),t}return B1(wz)}function Vv(x,r,e){return A1(uq(x,r,e))}function iq(x,r,e,t,u){if(0<=u&&0<=r&&(nt(x)-u|0)>=r&&0<=t&&(nt(e)-u|0)>=t){gs(x,r,e,t,u);return}return B1(bz)}function js(x,r,e,t,u){if(0<=u&&0<=r&&(Nx(x)-u|0)>=r&&0<=t&&(nt(e)-u|0)>=t){Dc(x,r,e,t,u);return}return B1(_z)}function nh(x,r){return A1(No(x,r))}function k1(x,r,e){return A1(uq(Cc(x),r,e))}function fq(x,r){if(!r)return Tz;var e=Nx(x);x:{r:{for(var t=0,u=r,i=0;u;){var c=u[1];if(!u[2])break r;var v=(Nx(c)+e|0)+t|0,a=u[2],p=t<=v?v:B1(Ez),t=p,u=a}var _=t;break x}var _=Nx(c)+t|0}for(var y=T2(_),S=i,E=r;;){if(E){var j=E[1];if(E[2]){var C=E[2];Dc(j,0,y,S,Nx(j)),Dc(x,0,y,S+Nx(j)|0,e);var S=(S+Nx(j)|0)+e|0,E=C;continue}Dc(j,0,y,S,Nx(j))}return A1(y)}}function cq(x){var r=Cc(x);if(nt(r)===0)var e=r;else{var t=nq(r);Vr(t,0,rq(fe(r,0)));var e=t}return A1(e)}function sq(x,r){var e=Nx(x),t=e<=Nx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(F0(r,u)!==F0(x,u))return 0;var u=u+1|0}}function aq(x,r){var e=[0,0],t=[0,Nx(r)],u=Nx(r)-1|0;if(u>=0)for(var i=u;;){if(F0(r,i)===x){var c=e[1];e[1]=[0,k1(r,i+1|0,(t[1]-i|0)-1|0),c],t[1]=i}var v=i-1|0;if(i===0)break;var i=v}var a=e[1];return[0,k1(r,0,t[1]),a]}var _b0=ix;function oq(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){x(r[1+u]);var i=u+1|0;if(e===u)break;var u=i}}function uh(x,r){var e=r.length-1;if(e===0)return[0];var t=Jv(e,x(r[1])),u=e-1|0,i=1;if(u>=1)for(var c=i;;){t[1+c]=x(r[1+c]);var v=c+1|0;if(u===c)break;var c=v}return t}function Ll(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];e;)var r=r+1|0,e=e[2];for(var i=Jv(r,u),c=1,v=t;;){if(!v)return i;var a=v[2];i[1+c]=v[1];var c=c+1|0,v=a}}function vq(x){try{var r=[0,El(x)];return r}catch(t){var e=O2(t);if(e[1]===Qt)return 0;throw U0(e,0)}}function aN(x){function r(a){return a?a[5]:0}function e(a,p,_,y){var S=r(a),E=r(y),j=E<=S?S+1|0:E+1|0;return[0,a,p,_,y,j]}function t(a,p,_,y){var S=a?a[5]:0,E=y?y[5]:0;if((E+2|0)=E){var $=E<=S?S+1|0:E+1|0;return[0,a,p,_,y,$]}if(!y)return B1(Nz);var x0=y[4],e0=y[3],Z=y[2],c0=y[1],d0=r(c0);if(d0<=r(x0))return e(e(a,p,_,c0),Z,e0,x0);if(!c0)return B1(Pz);var n0=c0[3],P0=c0[2],h0=c0[1],g0=e(c0[4],Z,e0,x0);return e(e(a,p,_,h0),P0,n0,g0)}var u=0;function i(a,p,_){if(!_)return[0,0,a,p,0,1];var y=_[4],S=_[3],E=_[2],j=_[1],C=_[5],P=k(x[1],a,E);if(P===0)return S===p?_:[0,j,a,p,y,C];if(0<=P){var O=i(a,p,y);return y===O?_:t(j,E,S,O)}var F=i(a,p,j);return j===F?_:t(F,E,S,y)}function c(a,p){for(var _=p;;){if(!_)throw U0(Fc,1);var y=_[4],S=_[3],E=_[1],j=k(x[1],a,_[2]);if(j===0)return S;var C=0<=j?y:E,_=C}}function v(a,p,_){for(var y=p,S=_;;){if(!y)return S;var E=y[4],j=y[3],C=y[2],P=a(C,j,v(a,y[1],S)),y=E,S=P}}return[0,u,,,i,,,,,,,,,v,,,,,,,,,,,,,,,c]}function Ml(x){return[0,0,0]}function Ul(x){x[1]=0,x[2]=0}function Oo(x,r){r[1]=[0,x,r[1]],r[2]=r[2]+1|0}function Gv(x){var r=x[1];if(!r)return 0;var e=r[1];return x[1]=r[2],x[2]=x[2]-1|0,[0,e]}function Wv(x){var r=x[1];return r?[0,r[1]]:0}var bb0=[x2,Oz,Ts(0)];function lq(x){return[0,0,0,0]}function oN(x){x[1]=0,x[2]=0,x[3]=0}function vN(x,r){var e=[0,x,0],t=r[3];return t?(r[1]=r[1]+1|0,t[2]=e,r[3]=e,0):(r[1]=1,r[2]=e,r[3]=e,0)}function Qr(x){var r=1<=x?x:1,e=Cl=(e+r|0));)t[1]=2*t[1]|0;Clx[3])throw U0([0,Ar,Rz],1);if(!((e+r|0)<=x[3]))throw U0([0,Ar,Fz],1)}function ut(x,r){var e=x[2];x[3]<=e&&lN(x,1),Vr(x[1],e,r),x[2]=e+1|0}function pq(x,r,e,t){var u=e<0?1:0;if(u)var c=u;else var i=t<0?1:0,c=i||((Nx(r)-t|0)u){if(u!==32){if(43>u)break x;switch(u+L5|0){case 5:e:if(t<(e+2|0)&&1=(e+1|0))break x;var c=No(e+1|0,48);return qv(c,0,u),js(r,1,c,(e-t|0)+2|0,t-1|0),A1(c)}if(71<=u){if(5>>0)break x}else if(65>u)break x}if(t>>0){if(33>>0)break e}else if(t===2)break;var r=r+1|0}break r}var u=Cc(x),i=[0,0],c=nt(u)-1|0,v=0;if(c>=0)for(var a=v;;){var p=fe(u,a);r:{e:{t:{if(32<=p){var _=p-34|0;if(58<_>>>0){if(93<=_)break t}else if(56<_-1>>>0)break e;var y=1;break r}if(11<=p){if(p===13)break e}else if(8<=p)break e}var y=4;break r}var y=2}i[1]=i[1]+y|0;var S=a+1|0;if(c===a)break;var a=S}if(i[1]===nt(u))var E=nq(u);else{var j=T2(i[1]);i[1]=0;var C=nt(u)-1|0,P=0;if(C>=0)for(var O=P;;){var F=fe(u,O);r:{e:{t:{if(35<=F){if(F!==92){if(Yr<=F)break t;break e}}else{if(32>F){if(14<=F)break t;switch(F){case 8:Vr(j,i[1],92),i[1]++,Vr(j,i[1],98);break r;case 9:Vr(j,i[1],92),i[1]++,Vr(j,i[1],ua);break r;case 10:Vr(j,i[1],92),i[1]++,Vr(j,i[1],j2);break r;case 13:Vr(j,i[1],92),i[1]++,Vr(j,i[1],ia);break r;default:break t}}if(34>F)break e}Vr(j,i[1],92),i[1]++,Vr(j,i[1],F);break r}Vr(j,i[1],92),i[1]++,Vr(j,i[1],48+(F/et|0)|0),i[1]++,Vr(j,i[1],48+((F/10|0)%10|0)|0),i[1]++,Vr(j,i[1],48+(F%10|0)|0);break r}Vr(j,i[1],F)}i[1]++;var K=O+1|0;if(C===O)break;var O=K}var E=j}var U=A1(E)}var V=Nx(U),Q=No(V+2|0,34);return Dc(U,0,Q,1,V),A1(Q)}function yq(x,r){var e=rh(r),t=CV[1];switch(x[2]){case 0:var u=S1;break;case 1:var u=yt;break;case 2:var u=69;break;case 3:var u=Ze;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=_t;break;case 7:var u=72;break;default:var u=70}var i=kq(16);switch($v(i,37),x[1]){case 0:break;case 1:$v(i,43);break;default:$v(i,32)}return 8<=x[2]&&$v(i,35),$v(i,46),j1(i,H0+e),$v(i,u),hq(i)}function fh(x,r){if(13>x)return r;var e=[0,0],t=Nx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=F0(r,i)+B2>>>0&&e[1]++;var c=i+1|0;if(t===i)break;var i=c}var v=e[1],a=T2(Nx(r)+((v-1|0)/3|0)|0),p=[0,0];function _(O){qv(a,p[1],O),p[1]++}var y=[0,((v-1|0)%3|0)+1|0],S=Nx(r)-1|0,E=0;if(S>=0)for(var j=E;;){var C=F0(r,j);9>>0||(y[1]===0&&(_(95),y[1]=3),y[1]+=-1),_(C);var P=j+1|0;if(S===j)break;var j=P}return A1(a)}function Tb0(x,r){switch(x){case 1:var e=yG;break;case 2:var e=gG;break;case 4:var e=_G;break;case 5:var e=bG;break;case 6:var e=wG;break;case 7:var e=TG;break;case 8:var e=EG;break;case 9:var e=SG;break;case 10:var e=AG;break;case 11:var e=IG;break;case 0:case 13:var e=jG;break;case 3:case 14:var e=PG;break;default:var e=NG}return fh(x,zm(e,r))}function Eb0(x,r){switch(x){case 1:var e=VV;break;case 2:var e=GV;break;case 4:var e=WV;break;case 5:var e=$V;break;case 6:var e=HV;break;case 7:var e=QV;break;case 8:var e=ZV;break;case 9:var e=xG;break;case 10:var e=rG;break;case 11:var e=eG;break;case 0:case 13:var e=tG;break;case 3:case 14:var e=nG;break;default:var e=uG}return fh(x,zm(e,r))}function Sb0(x,r){switch(x){case 1:var e=DV;break;case 2:var e=RV;break;case 4:var e=FV;break;case 5:var e=LV;break;case 6:var e=MV;break;case 7:var e=UV;break;case 8:var e=qV;break;case 9:var e=BV;break;case 10:var e=XV;break;case 11:var e=JV;break;case 0:case 13:var e=KV;break;case 3:case 14:var e=YV;break;default:var e=zV}return fh(x,zm(e,r))}function Ab0(x,r){switch(x){case 1:var e=iG;break;case 2:var e=fG;break;case 4:var e=cG;break;case 5:var e=sG;break;case 6:var e=aG;break;case 7:var e=oG;break;case 8:var e=vG;break;case 9:var e=lG;break;case 10:var e=pG;break;case 11:var e=kG;break;case 0:case 13:var e=mG;break;case 3:case 14:var e=hG;break;default:var e=dG}return fh(x,FU(e,r))}function Ps(x,r,e){function t(K){switch(x[1]){case 0:var U=45;break;case 1:var U=43;break;default:var U=32}return AY(e,r,U)}function u(K){var U=sY(e);return U===3?e<0?PV:NV:4<=U?jV:K}switch(x[2]){case 5:for(var i=zP(yq(x,r),e),c=0,v=Nx(i);;){if(c===v)var a=0;else{var p=N2(i,c)+So|0;x:{if(23

>>0){if(ue>>0)break e}else{if(P!==7)break e;b0(t)}var U=j;break r}var O=HN(Vc0,9),F=mX([0,O],M(t)),K=[0,fx(t),F];f2(t,8);var U=[0,[0,K,j[1]],[0,K,j[2]]]}var i=E,c=[0,[0,y,a],U]}var V=i?[0,v[1],[0,[0,i[1],90],v[2]]]:v,Q=kJ(V),$=vx(a),x0=f0(t);return W(t,1),[0,[0,$,F2([0,u],[0,xx(t)],x0,R)],Q]},x),e=r[2];return[0,r[1],e[1],e[2]]}function Sd(x,r,e,t){var u=e[2][1],i=e[1];if(Sr(u,ho))return D0(x,[0,i,[15,u,0,JL===t?1:0,1]]),r;x:{r:{e:{for(var c=r;;){if(typeof c=="number")break r;if(c[0]===0)break e;var v=ix(u,c[2]),a=c[5],p=c[4],_=c[3];if(v===0)break;var y=0<=v?a:p,c=y}var E=[0,_];break x}var S=c[2];if(ix(u,c[1])===0){var E=[0,S];break x}var E=0;break x}var E=0}if(!E)return id(u,t,r);var j=E[1];x:r:{if(PA===t){if(Yj===j)break r}else if(Yj===t&&PA===j)break r;D0(x,[0,i,[1,u]]);break x}return id(u,BF,r)}function LJ(x,r){return r0(0,function(e){var t=r?f0(e):0;W(e,52);for(var u=0;;){var i=[0,r0(0,function(a){var p=zc(a);if(M(a)===98)var _=I2(a)[2],y=k(_,p,function(S,E){return k(Wx(S,Av,91),S,E)});else var y=p;return[0,y,uJ(a)]},e),u],c=M(e);if(typeof c=="number"&&c===9){W(e,9);var u=i;continue}var v=vx(i);return[0,v,t0([0,t],0,R)]}},x)}function lC(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}}function pC(x,r){if(r)return D0(x,[0,r[1][1],$f])}function kC(x,r){if(r)return D0(x,[0,r[1],12])}function MJ(x,r,e,t,u,i,c,v){var a=r0([0,r],function(C){var P=CO(C),O=M(C);x:if(i){if(typeof O=="number"&&O===82){Kx(C,13),b0(C);var F=0;break x}var F=0}else{if(typeof O=="number"&&O===82){b0(C);var K=qo(1,C),F=[0,l(z0[7],K)];break x}var F=1}var U=M(C);x:{if(typeof U=="number"&&9>U)switch(U){case 8:b0(C);var V=M(C);r:{e:if(typeof V=="number"){if(V!==1&&Dr!==V)break e;var Q=xx(C);break r}var Q=K1(C)?Sa(C):0}var v0=[0,t,P,F,Q];break x;case 4:case 6:_2(0,C);var v0=[0,t,P,F,0];break x}var $=M(C);r:{e:if(typeof $=="number"){if($!==1&&Dr!==$)break e;var x0=[0,,function(N0,X0){return N0}];break r}var x0=K1(C)?i6(C):ed(C)}if(typeof F=="number")if(P[0]===0)var e0=function(E0,N0){return k(Wx(E0,eR,94),E0,N0)},P0=F,h0=P,g0=k(x0[2],t,e0);else var Z=P[1],c0=function(E0,N0){return k(Wx(E0,Jj,95),E0,N0)},P0=F,h0=[1,k(x0[2],Z,c0)],g0=t;else var d0=F[1],n0=function(E0,N0){return k(Wx(E0,Wt,96),E0,N0)},P0=[0,k(x0[2],d0,n0)],h0=P,g0=t;var v0=[0,g0,h0,P0,0]}var p0=v0[3],w0=v0[2],T0=v0[1];return[0,T0,w0,p0,t0([0,v],[0,v0[4]],R)]},x),p=a[2],_=p[4],y=p[3],S=p[2],E=p[1],j=a[1];return E[0]===4?[2,[0,j,[0,E[1],y,S,u,c,e,_]]]:[1,[0,j,[0,E,y,S,u,c,e,_]]]}function mC(x,r,e,t,u,i,c,v,a,p){for(;;){var _=M(x);x:if(typeof _=="number"){var y=_-1|0;if(7>>0){var S=y-81|0;if(4>>0)break x;switch(S){case 3:_2(0,x),b0(x);continue;case 0:case 4:break;default:break x}}else if(5>=y-1>>>0)break x;if(!u&&!i)return MJ(x,r,e,t,c,v,a,p)}var E=M(x);x:{if(typeof E=="number"&&(E===4||E===98)){var j=0;break x}var j=c3(x)?1:0}if(j)return MJ(x,r,e,t,c,v,a,p);kC(x,v),pC(x,a);var C=lC(t);x:{if(c){if(C){var P=C[1],O=P[1];if(!I(P[2],sa)){D0(x,[0,O,[15,yl0,c,1,0]]);var U=qo(1,x),V=1;break x}}}else if(C){var F=C[1],K=F[1];if(!I(F[2],ho)){u&&D0(x,[0,K,9]),i&&D0(x,[0,K,10]);var U=qo(2,x),V=0;break x}}var U=qo(1,x),V=1}var Q=nn(U,t),$=r0(0,function(e0){var Z=r0(0,function(p0){var w0=Y1(p0,De(p0)),T0=l3(u,i)(p0),E0=M(p0)===86?T0:f6(p0,T0),N0=E0[2],X0=N0[1];x:{if(X0){var A0=X0[1][1],rx=E0[1];if(V===0){D0(p0,[0,A0,87]);var B=[0,rx,[0,0,N0[2],N0[3],N0[4]]];break x}}var B=E0}return[0,w0,B,s3(p0,DO(p0))]},e0),c0=Z[2],d0=c0[2],n0=c0[3],P0=c0[1],h0=Z[1],g0=h6(e0,u,i,0,Ko(d0)),v0=g0[1];return v3(e0,g0[2],0,d0),[0,0,d0,v0,u,i,1,0,n0,P0,0,h0]},U),x0=[0,V,Q,$,c,e,t0([0,p],0,R)];return[0,[0,Zr(r,$[1]),x0]]}}function hC(x,r){var e=vr(x,r);x:if(typeof e=="number"){if(86<=e){if(e!==98&&87<=e)break x}else if(e!==82){if(9<=e)break x;switch(e){case 1:case 4:case 8:break;default:break x}}return 1}return 0}var Xw0=0;function UJ(x){return hC(Xw0,x)}function Jw0(x){var r=fx(x),e=oC(x),t=M(x);x:{if(typeof t=="number"&&t===60&&!hC(1,x)){var u=[0,fx(x)],i=f0(x);b0(x);var c=i,v=u;break x}var c=0,v=0}var a=M(x);x:if(typeof a=="number"&&2>=a+oL>>>0&&Ms(1,x)){r:{if(typeof a=="number"){var p=a+oL|0;if(2>=p>>>0){switch(p){case 0:var _=xU;break;case 1:var _=tl;break;default:var _=ol}var y=_;break r}}var y=gx(gl0)}Kx(x,[22,y]),b0(x);break x}var S=M(x)===42?1:0;if(S){var E=vr(1,x);x:{r:if(typeof E=="number"){if(87<=E){if(E!==98&&Dr!==E)break r}else{var j=E-9|0;if(76>>0){if(77>j)switch(j+9|0){case 1:case 4:case 8:break;default:break r}}else if(j!==73)break r}var C=0;break x}var C=1}var P=C}else var P=S;if(P){var O=f0(x);b0(x);var F=O}else var F=0;var K=M(x)===64?1:0;if(K)var U=1-hC(1,x),V=U&&1-t6(1,x);else var V=K;if(V){var Q=f0(x);b0(x);var $=Q}else var $=0;var x0=zo(x),e0=x0[1],Z=x0[2],c0=Ms(1,x),d0=c0||(vr(1,x)===6?1:0),n0=ww0(x,d0,V,e0);x:{if(!e0&&n0){var P0=zo(x),h0=P0[2],g0=P0[1];break x}var h0=Z,g0=e0}var v0=Rl([0,c,[0,F,[0,$,[0,h0,0]]]]),p0=M(x);if(!V&&!g0&&typeof p0!="number"&&p0[0]===4){var w0=p0[3];if(!I(w0,bo)){var T0=f0(x),E0=Pa(bl0,x)[2];if(UJ(x))return mC(x,r,e,E0,V,g0,P,v,n0,v0);kC(x,v),pC(x,n0),nn(x,E0);var N0=Fx(v0,T0),X0=r0([0,r],function(jx){return Ed(jx,1,1)},x),A0=X0[2],rx=A0[1],B=A0[2],G0=X0[1],W0=lC(rx);x:if(P){if(W0){var Y0=W0[1],V0=Y0[1];if(!I(Y0[2],sa)){D0(x,[0,V0,[15,El0,P,0,0]]);break x}}}else if(W0){var ex=W0[1],Q0=ex[1];if(!I(ex[2],ho)){D0(x,[0,Q0,8]);break x}}return[0,[0,G0,[0,2,rx,B,P,e,t0([0,N0],0,R)]]]}if(!I(w0,Dv)){var S0=f0(x),q0=Pa(_l0,x)[2];if(UJ(x))return mC(x,r,e,q0,V,g0,P,v,n0,v0);kC(x,v),pC(x,n0),nn(x,q0);var yx=Fx(v0,S0),cx=r0([0,r],function(jx){return Ed(jx,1,0)},x),Dx=cx[2],Ix=Dx[1],Xx=Dx[2],Z0=cx[1],rr=lC(Ix);x:if(P){if(rr){var xr=rr[1],fr=xr[1];if(!I(xr[2],sa)){D0(x,[0,fr,[15,Tl0,P,0,0]]);break x}}}else if(rr){var Hx=rr[1],Y=Hx[1];if(!I(Hx[2],ho)){D0(x,[0,Y,8]);break x}}return[0,[0,Z0,[0,3,Ix,Xx,P,e,t0([0,yx],0,R)]]]}}return mC(x,r,e,Pa(wl0,x)[2],V,g0,P,v,n0,v0)}function qJ(x,r,e,t){var u=x?x[1]:0,i=Fs(1,r),c=Fx(u,oC(i)),v=f0(i),a=M(i);x:if(typeof a!="number"&&a[0]===4&&!I(a[3],Z9)){Kx(i,83),b0(i);break x}W(i,40);var p=iO(1,i),_=M(p);x:{r:if(e&&typeof _=="number"){if(52<=_){if(_!==98&&53<=_)break r}else if(_!==41&&_)break r;var E=0;break x}if(Jc(i))var y=k(z0[13],0,p),S=I2(i)[2],E=[0,k(S,y,function(Z,c0){return k(Wx(Z,Av,98),Z,c0)})];else{hX(i,kl0);var E=[0,[0,fx(i),ml0]]}}var j=De(i);if(j)var C=j[1],P=I2(i)[2],O=[0,k(P,C,function(Z,c0){return k(Wx(Z,Gj,97),Z,c0)})];else var O=0;var F=f0(i);if(f2(i,41))var K=r0(0,function(Z){var c0=l(gd,nO(0,Z));if(M(Z)===98)var d0=I2(Z)[2],n0=k(d0,c0,function(h0,g0){return k(Wx(h0,Wt,92),h0,g0)});else var n0=c0;var P0=uJ(Z);return[0,n0,P0,t0([0,F],0,R)]},i),U=K[1],V=K[2],Q=I2(i)[2],$=[0,[0,U,k(Q,V,function(Z,c0){return B0(Wx(Z,-663447790,93),Z,U,c0)})]];else var $=0;if(M(i)===52){1-g2(i)&&Kx(i,z2);var x0=[0,wX(i,LJ(i,1))]}else var x0=0;var e0=r0(0,function(Z){var c0=f0(Z);if(!f2(Z,0))return tn(Z,0),dl0;Z[30][1]=[0,[0,y1[1],0],Z[30][1]];for(var d0=0,n0=Yb0,P0=0;;){var h0=M(Z);if(typeof h0=="number"){var g0=h0-2|0;if(j2>>0){if(ue>=g0+1>>>0)break}else if(g0===6){W(Z,8);continue}}var v0=Jw0(Z);switch(v0[0]){case 0:var p0=v0[1],w0=p0[2],T0=p0[1];switch(w0[1]){case 0:if(w0[4])var cx=n0,Dx=d0;else{d0&&D0(Z,[0,T0,15]);var cx=n0,Dx=1}break;case 1:var E0=w0[2],N0=E0[0]===4?Sd(Z,n0,E0[1],JL):n0,cx=N0,Dx=d0;break;case 2:var X0=w0[2],A0=X0[0]===4?Sd(Z,n0,X0[1],PA):n0,cx=A0,Dx=d0;break;default:var rx=w0[2],B=rx[0]===4?Sd(Z,n0,rx[1],Yj):n0,cx=B,Dx=d0}break;case 1:var G0=v0[1][2],W0=G0[4],Y0=G0[1];switch(Y0[0]){case 4:gx(hl0);break;case 0:case 3:var V0=Y0[1],ex=V0[2][1],Q0=Sr(ex,ho),S0=V0[1];if(Q0)var yx=Q0;else var q0=Sr(ex,sa),yx=q0&&W0;yx&&D0(Z,[0,S0,[15,ex,W0,0,0]]);break}var cx=n0,Dx=d0;break;default:var cx=Sd(Z,n0,v0[1][2][1],BF),Dx=d0}var d0=Dx,n0=cx,P0=[0,v0,P0]}var Ix=vx(P0);function Xx(L0,sx){return Fl(function(lx){return 1-y1[3].call(null,lx[1],L0)})(sx)}var Z0=Z[30][1];if(Z0){var rr=Z0[1],xr=rr[1];if(Z0[2]){var fr=Z0[2],Hx=Xx(xr,rr[2]),Y=Dl(fr),jx=Y[2],hr=Y[1],Yx=eq(fr),Ur=[0,[0,hr,Fx(jx,Hx)],Yx];Z[30][1]=Ur}else{var px=Xx(xr,rr[2]);p1(function(L0){return D0(Z,[0,L0[2],[23,L0[1]]])},px),Z[30][1]=0}}else gx(rs0);W(Z,1);var w=M(Z);x:{r:if(!t){if(typeof w=="number"&&(w===1||Dr===w))break r;if(K1(Z)){var L=Sa(Z);break x}var L=0;break x}var L=xx(Z)}return[0,Ix,t0([0,c0],[0,L],R)]},i);return[0,E,e0,O,$,x0,c,t0([0,v],0,R)]}function Ad(x,r){return r0(0,function(e){return[2,qJ([0,r],e,e[7],0)]},x)}function Kw0(x){return[7,qJ(0,x,1,1)]}var Yw0=0;function zw0(x){return r0(Yw0,Kw0,x)}var BJ=IX(z0);function XJ(x){var r=d6(x);x:if(x[5])Jo(x,r[1]);else{var e=r[2];r:if(e[0]===27){var t=e[1],u=r[1];if(t[4])D0(x,[0,u,4]);else{if(!t[5])break r;D0(x,[0,u,22])}break x}}return r}function Id(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Ot(x,76);var c=f0(x);return W(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,t0([0,c],[0,xx(x)],R)]]}function Z2(x,r,e){var t=x?x[1]:pv0,u=r?r[1]:1,i=M(e);if(typeof i=="number"){var c=i-2|0;if(j2>>0){if(ue>=c+1>>>0){var v=function(p,_){return p};return[1,[0,xx(e),v]]}}else if(c===6){b0(e);var a=M(e);x:if(typeof a=="number"){if(a!==1&&Dr!==a)break x;return[0,xx(e)]}return K1(e)?[0,Sa(e)]:kv0}}return K1(e)?[1,i6(e)]:(u&&_2([0,t],e),mv0)}function Bs(x){var r=M(x);x:if(typeof r=="number"){if(r!==1&&Dr!==r)break x;var e=function(t,u){return t};return[0,xx(x),e]}return K1(x)?i6(x):ed(x)}function dC(x,r,e){var t=Z2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=vx(e);if(i)var c=i[2],v=i[1],a=vx([0,k(u,v,function(p,_){return B0(Wx(p,634872468,62),p,x,_)}),c]);else var a=0;return[0,0,a]}var JJ=function x(r){return x.fun(r)},KJ=function x(r){return x.fun(r)},YJ=function x(r){return x.fun(r)},zJ=function x(r){return x.fun(r)},VJ=function x(r){return x.fun(r)},g6=function x(r,e){return x.fun(r,e)},GJ=function x(r){return x.fun(r)},WJ=function x(r){return x.fun(r)},_6=function x(r,e,t){return x.fun(r,e,t)},$J=function x(r){return x.fun(r)},HJ=function x(r){return x.fun(r)},b6=function x(r,e){return x.fun(r,e)},QJ=function x(r){return x.fun(r)},ZJ=function x(r){return x.fun(r)},jd=function x(r,e){return x.fun(r,e)},xK=function x(r){return x.fun(r)},Pd=function x(r,e){return x.fun(r,e)},rK=function x(r){return x.fun(r)},eK=function x(r){return x.fun(r)},k3=function x(r,e,t){return x.fun(r,e,t)},yC=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},gC=function x(r){return x.fun(r)},tK=function x(r){return x.fun(r)},nK=function x(r){return x.fun(r)},uK=function x(r,e){return x.fun(r,e)},iK=function x(r,e){return x.fun(r,e)},fK=function x(r){return x.fun(r)},m3=function x(r){return x.fun(r)},Nd=function x(r,e,t){return x.fun(r,e,t)},_C=function x(r,e){return x.fun(r,e)},cK=function x(r,e){return x.fun(r,e)},bC=function x(r){return x.fun(r)};function Vw0(x){var r=f0(x);W(x,59);var e=M(x)===8?xx(x):0,t=Z2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,t0([0,r],[0,Fx(e,u)],R)]]}var Gw0=0;function Ww0(x){var r=f0(x);W(x,37);var e=r6(1,x),t=l(z0[2],e),u=1-x[5],i=u&&c6(t);i&&Jo(x,t[1]);var c=xx(x);W(x,25);var v=xx(x);W(x,4);var a=l(z0[7],x);W(x,5);var p=M(x)===8?xx(x):0,_=Z2(0,lv0,x),y=_[0]===0?Fx(p,_[1]):_[1][1];return[18,[0,t,a,t0([0,r],[0,Fx(c,Fx(v,y))],R)]]}var $w0=0;function sK(x,r,e){var t=e[2][1],u=e[1];if(!(t&&!t[1][2][2]&&!t[2]))return D0(x,[0,u,r])}function wC(x,r){if(!x[5]&&c6(r))return Jo(x,r[1])}function Hw0(x){var r=f0(x);W(x,39);var e=x[19],t=e&&f2(x,65),u=Fx(r,f0(x));W(x,4);var i=t0([0,u],0,R),c=M(x);x:{if(typeof c=="number"&&c===64){var v=1;break x}var v=0}var a=e6(1,x),p=M(a);x:{if(typeof p=="number"){if(24<=p){if(29>p)switch(p+wb|0){case 0:var _=r0(0,oJ,a),y=_[2],S=y[3],E=y[1],j=_[1],e0=S,Z=[0,[1,[0,j,[0,E,0,t0([0,y[2]],0,R)]]]];break x;case 3:var C=r0(0,vJ,a),P=C[2],O=P[3],F=P[1],K=C[1],e0=O,Z=[0,[1,[0,K,[0,F,2,t0([0,P[2]],0,R)]]]];break x;case 4:if(vr(1,a)!==17){var U=r0(0,lJ,a),V=U[2],Q=V[3],$=V[1],x0=U[1],e0=Q,Z=[0,[1,[0,x0,[0,$,1,t0([0,V[2]],0,R)]]]];break x}break}}else if(p===8){var e0=0,Z=0;break x}}var e0=0,Z=[0,[0,l(z0[8],a)]]}var c0=M(x);if(typeof c0=="number"){if(c0===17){if(!Z)throw U0([0,Ar,vv0],1);var d0=Z[1];if(d0[0]===0)var n0=[1,BO(ov0,x,d0[1])];else{var P0=d0[1];sK(x,39,P0);var n0=[0,P0]}t?W(x,63):W(x,17);var h0=l(z0[7],x);W(x,5);var g0=r6(1,x),v0=l(z0[2],g0);return wC(x,v0),[25,[0,n0,h0,v0,0,i]]}if(c0===63){if(!Z)throw U0([0,Ar,av0],1);var p0=Z[1];if(p0[0]===0){var w0=BO(sv0,x,p0[1]),T0=1-t,E0=T0&&v;x:if(E0){var N0=w0[2];if(N0[0]===2){var X0=N0[1][1],A0=X0[1];if(!I(X0[2][1],oa)){D0(x,[0,A0,40]);break x}}}var rx=[1,w0]}else{var B=p0[1];sK(x,40,B);var rx=[0,B]}W(x,63);var G0=l(z0[10],x);W(x,5);var W0=r6(1,x),Y0=l(z0[2],W0);return wC(x,Y0),[26,[0,rx,G0,Y0,t,i]]}}if(p1(function(Xx){return D0(x,Xx)},e0),t?W(x,63):W(x,8),Z)var V0=Z[1],ex=V0[0]===0?[0,[1,f1(x,V0[1])]]:[0,[0,V0[1]]],Q0=ex;else var Q0=0;var S0=M(x);x:{if(typeof S0=="number"&&S0===8){var q0=0;break x}var q0=[0,l(z0[7],x)]}W(x,8);var yx=M(x);x:{if(typeof yx=="number"&&yx===5){var cx=0;break x}var cx=[0,l(z0[7],x)]}W(x,5);var Dx=r6(1,x),Ix=l(z0[2],Dx);return wC(x,Ix),[24,[0,Q0,q0,cx,Ix,i]]}var Qw0=0;function aK(x){var r=Ea(x)?XJ(x):l(z0[2],x),e=1-x[5],t=e&&c6(r);return t&&Jo(x,r[1]),r}function Zw0(x){var r=f0(x);W(x,43);var e=aK(x);return[0,e,t0([0,r],0,R)]}function xT0(x){var r=f0(x);W(x,16);var e=Fx(r,f0(x));W(x,4);var t=l(z0[7],x);W(x,5);var u=aK(x),i=M(x)===43?[0,r0(0,Zw0,x)]:0;return[28,[0,t,u,i,t0([0,e],0,R)]]}var rT0=0;function oK(x){return r0(rT0,xT0,x)}function eT0(x){1-x[11]&&Kx(x,27);var r=f0(x),e=fx(x);W(x,19);var t=M(x)===8?xx(x):0;x:{if(M(x)!==8&&!c3(x)){var u=[0,l(z0[7],x)];break x}var u=0}var i=Zr(e,fx(x)),c=Z2(0,0,x);x:{if(c[0]===0)var v=c[1];else{var a=c[1],p=a[1];if(u){var _=u[1],y=a[2],S=[0,k(y,_,function(O,F){return k(Wx(O,Wt,63),O,F)})],E=t;break x}var v=p}var S=u,E=Fx(t,v)}return[32,[0,S,t0([0,r],[0,E],R),i]]}var tT0=0;function nT0(x){var r=f0(x);W(x,20),W(x,4);var e=l(z0[7],x);W(x,5),W(x,0);for(var t=cv0;;){var u=t[2],i=t[1],c=M(x);x:if(typeof c=="number"){if(c!==1&&Dr!==c)break x;var v=vx(u);W(x,1);var a=Bs(x)[1],p=e[1];return[33,[0,e,v,t0([0,r],[0,a],R),p]]}var _=mO(0,function(S){return function(E){var j=f0(E),C=M(E);x:{if(typeof C=="number"&&C===36){S&&Kx(E,53),W(E,36);var P=xx(E),O=0;break x}W(E,33);var P=0,O=[0,l(z0[7],E)]}var F=S||(O===0?1:0);W(E,86);var K=Fx(P,Bs(E)[1]);function U(x0){x:if(typeof x0=="number"){var e0=x0-1|0;if(32>>0){if(e0!==35)break x}else if(30>=e0-1>>>0)break x;return 1}return 0}var V=1,Q=E[9]===1?E:[0,E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],V,E[10],E[11],E[12],E[13],E[14],E[15],E[16],E[17],E[18],E[19],E[20],E[21],E[22],E[23],E[24],E[25],E[26],E[27],E[28],E[29],E[30],E[31]],$=k(z0[4],U,Q);return[0,[0,O,$,t0([0,j],[0,K],R)],F]}}(i),x),t=[0,_[2],[0,_[1],u]]}}var uT0=0;function iT0(x){var r=f0(x),e=fx(x);W(x,22),K1(x)&&D0(x,[0,e,54]);var t=l(z0[7],x),u=Z2(0,0,x);if(u[0]===0)var v=t,a=u[1];else var i=u[1][2],c=0,v=k(i,t,function(p,_){return k(Wx(p,Wt,64),p,_)}),a=c;return[34,[0,v,t0([0,r],[0,a],R)]]}var fT0=0;function cT0(x){var r=f0(x);W(x,23);var e=l(z0[15],x);if(M(x)===34)var t=I2(x)[2],u=k(t,e,function(C,P){var O=P[1];return[0,O,B0(Wx(C,rk,4),C,O,P[2])]});else var u=e;var i=M(x);x:{if(typeof i=="number"&&i===34){var c=[0,r0(0,function(P){var O=f0(P);W(P,34);var F=xx(P);if(M(P)===4){W(P,4);var K=[0,k(z0[18],P,67)];W(P,5);var U=K}else var U=0;var V=l(z0[15],P);if(M(P)===38)var $=V;else var Q=Bs(P)[2],$=k(Q,V,function(x0,e0){var Z=e0[1];return[0,Z,B0(Wx(x0,rk,65),x0,Z,e0[2])]});return[0,U,$,t0([0,O],[0,F],R)]},x)];break x}var c=0}var v=M(x);x:{if(typeof v=="number"&&v===38){W(x,38);var a=l(z0[15],x),p=a[1],_=a[2],y=Bs(x)[2],S=[0,[0,p,k(y,_,function(P,O){return B0(Wx(P,rk,66),P,p,O)})]];break x}var S=0}var E=c===0?1:0,j=E&&(S===0?1:0);return j&&D0(x,[0,u[1],56]),[35,[0,u,c,S,t0([0,r],0,R)]]}var sT0=0;function aT0(x){var r=oJ(x),e=r[3],t=r[2],u=dC(0,x,r[1]),i=0,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var oT0=0;function vT0(x){var r=vJ(x),e=r[3],t=r[2],u=dC(2,x,r[1]),i=2,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var lT0=0;function pT0(x){var r=lJ(x),e=r[3],t=r[2],u=dC(1,x,r[1]),i=1,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var kT0=0;function mT0(x){var r=f0(x);W(x,25);var e=Fx(r,f0(x));W(x,4);var t=l(z0[7],x);W(x,5);var u=r6(1,x),i=l(z0[2],u),c=1-x[5],v=c&&c6(i);return v&&Jo(x,i[1]),[39,[0,t,i,t0([0,e],0,R)]]}var hT0=0;function dT0(x){var r=f0(x),e=l(z0[7],x),t=M(x),u=e[2];if(u[0]===10&&typeof t=="number"&&t===86){var i=u[1],c=i[2][1],v=e[1];W(x,86),y1[3].call(null,c,x[3])&&D0(x,[0,v,[21,iv0,c]]);var a=x[31],p=x[30],_=x[29],y=x[28],S=x[27],E=x[26],j=x[25],C=x[24],P=x[23],O=x[22],F=x[21],K=x[20],U=x[19],V=x[18],Q=x[17],$=x[16],x0=x[15],e0=x[14],Z=x[13],c0=x[12],d0=x[11],n0=x[10],P0=x[9],h0=x[8],g0=x[7],v0=x[6],p0=x[5],w0=x[4],T0=y1[4].call(null,c,x[3]),E0=[0,x[1],x[2],T0,w0,p0,v0,g0,h0,P0,n0,d0,c0,Z,e0,x0,$,Q,V,U,K,F,O,P,C,j,E,S,y,_,p,a],N0=Ea(E0)?XJ(E0):l(z0[2],E0);return[31,[0,i,N0,t0([0,r],0,R)]]}var X0=Z2(fv0,0,x);if(X0[0]===0)var B=e,G0=X0[1];else var A0=X0[1][2],rx=0,B=k(A0,e,function(W0,Y0){return k(Wx(W0,Wt,67),W0,Y0)}),G0=rx;return[23,[0,B,0,t0(0,[0,G0],R)]]}var yT0=0;function gT0(x){var r=l(z0[7],x),e=Z2(uv0,0,x);if(e[0]===0)var i=r,c=e[1];else var t=e[1][2],u=0,i=k(t,r,function(E,j){return k(Wx(E,Wt,68),E,j)}),c=u;if(x[20]){var v=i[2];if(v[0]===14){var a=v[1][2];x:{if(1i)switch(i-53|0){case 0:return r0([0,u],function(a){1-g2(a)&&Kx(a,_t);var p=r0(0,l(b6,0),a),_=[0,p[1],[30,p[2]]];return[22,[0,[0,_],0,0,0,t0([0,t],0,R)]]},e);case 8:if(vr(1,e)!==0)return r0([0,u],function(a){1-g2(a)&&Kx(a,_t);var p=vr(1,a);if(typeof p=="number"){if(p===48)return Kx(a,17),W(a,61),[22,[0,0,0,0,0,t0([0,t],0,R)]];if(z2===p){W(a,61);var _=fx(a);W(a,z2);var y=l(m3,a),S=y[1];return[22,[0,0,[0,[1,[0,_,0]]],[0,S],0,t0([0,t],[0,y[2]],R)]]}}var E=r0(0,l(g6,0),a),j=[0,E[1],[36,E[2]]];return[22,[0,[0,j],0,0,0,t0([0,t],0,R)]]},e);break;case 9:return r0([0,u],function(a){var p=r0(0,function(y){return l(k(_6,0,0),y)},a),_=[0,p[1],[37,p[2]]];return[22,[0,[0,_],0,0,0,t0([0,t],0,R)]]},e)}}else if(i===36)return r0([0,u],function(a){var p=Fx(t,f0(a)),_=r0(0,function(U){return W(U,36)},a)[1],y=cX(1,a);x:{if(!Ea(y)&&!Qh(y)){if(n6(y)){var F=0,K=[0,Ad(y,x)];break x}if(M(y)===48){var F=0,K=[0,pJ(0)(y)];break x}if(vO(y)){var F=0,K=[0,qO(y)];break x}var S=l(z0[10],y),E=Z2(0,0,y);if(E[0]===0)var P=E[1],O=S;else var j=E[1][2],C=0,P=C,O=k(j,S,function(Q,$){return k(Wx(Q,Wt,86),Q,$)});var F=P,K=[1,O];break x}var F=0,K=[0,d6(y)]}return[21,[0,_,K,t0([0,p],[0,F],R)]]},e)}if(n6(e))return r0([0,u],function(a){var p=Ad(a,x);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e);if(!Ea(e)&&!Qh(e)){if(typeof i=="number"){var c=i+wb|0;if(4>>0){if(c===24&&e[28][2])return r0([0,u],function(a){var p=k(z0[3],[0,x],a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}else if(1>>0)return r0([0,u],function(a){var p=k(z0[3],[0,x],a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}if(vO(e))return r0([0,u],function(a){var p=qO(a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e);if(typeof i=="number"&&z2===i)return r0([0,u],function(a){var p=fx(a);W(a,z2);var _=M(a);x:{if(typeof _!="number"&&_[0]===4&&!I(_[3],Jt)){b0(a);var y=[0,g1(a)];break x}var y=0}var S=l(m3,a),E=S[1];return[22,[0,0,[0,[1,[0,p,y]]],[0,E],1,t0([0,t],[0,S[2]],R)]]},e);var v=f2(e,61)?0:1;return f2(e,0)?r0([0,u],function(a){var p=B0(Nd,0,a,0);W(a,1);var _=M(a);x:{if(typeof _!="number"&&_[0]===4&&!I(_[3],fl)){var y=l(m3,a),j=y[2],C=[0,y[1]];break x}k(_C,a,p);var S=Z2(0,0,a),E=S[0]===0?S[1]:S[1][1],j=E,C=0}return[22,[0,0,[0,[0,p]],C,v,t0([0,t],[0,j],R)]]},e):(_2(Mo0,e),k(z0[3],[0,x],e))}return r0([0,u],function(a){Zh(a)(x);var p=d6(a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}),m0(bC,function(x){return r0(0,function(r){1-g2(r)&&Kx(r,Ze);var e=f0(r);W(r,60);var t=fX(1,Fs(1,r)),u=Fx(e,f0(t));W(t,49);var i=M(t);if(typeof i=="number")switch(i){case 36:var c=Fx(u,f0(t)),v=r0(0,function(Q0){return W(Q0,36)},t)[1],a=cX(1,t),p=M(a);x:{if(typeof p=="number")switch(p){case 15:var _=l(k3,0),y=0,V=y,Q=[0,[1,r0(0,function(q0){return k(_,0,q0)},a)]];break x;case 40:var V=0,Q=[0,[2,r0(0,l(jd,0),a)]];break x}else if(p[0]===4){var S=p[3];if(I(S,ta)){if(!I(S,wo)&&a[28][1]){var E=l(k3,0),j=0,V=j,Q=[0,[1,r0(0,function(q0){return k(E,0,q0)},a)]];break x}}else if(a[28][1]){var V=0,Q=[0,[3,r0(0,l(Pd,0),a)]];break x}}var C=qs(a),P=Z2(0,0,a);if(P[0]===0)var K=P[1],U=C;else var O=P[1][2],F=0,K=F,U=k(O,C,function(Q0,S0){return k(Wx(Q0,wv,87),Q0,S0)});var V=K,Q=[0,[4,U]]}return[9,[0,[0,v],Q,0,0,t0([0,c],[0,V],R)]];case 48:if(t[28][2]){var $=BJ[1],x0=r0(0,function(Q0){return $(0,Q0)},t);return[9,[0,0,[0,[8,x0]],0,0,t0([0,u],0,R)]]}break;case 53:var e0=r0(0,l(b6,0),t);return[9,[0,0,[0,[7,e0]],0,0,t0([0,u],0,R)]];case 61:var Z=r0(0,l(g6,0),t);return[9,[0,0,[0,[5,Z]],0,0,t0([0,u],0,R)]];case 62:var c0=r0(0,k(_6,Fo0,0),t);return[9,[0,0,[0,[6,c0]],0,0,t0([0,u],0,R)]];case 106:var d0=fx(t);W(t,z2);var n0=M(t);x:{if(typeof n0!="number"&&n0[0]===4&&!I(n0[3],Jt)){b0(t);var P0=[0,k(z0[13],0,t)];break x}var P0=0}var h0=l(m3,t),g0=h0[1];return[9,[0,0,0,[0,[1,[0,d0,P0]]],[0,g0],t0([0,u],[0,h0[2]],R)]];case 15:case 24:case 27:case 28:case 40:var v0=M(t);x:if(typeof v0=="number"){if(24<=v0){if(41<=v0)break x;switch(v0+wb|0){case 0:var p0=[0,[0,r0(0,function(Q0){return B0(w6,0,Q0,0)},t)]];break;case 3:var p0=[0,[0,r0(0,function(Q0){return B0(w6,2,Q0,0)},t)]];break;case 4:var p0=[0,[0,r0(0,function(Q0){return B0(w6,1,Q0,0)},t)]];break;case 16:var p0=[0,[2,r0(0,l(jd,0),t)]];break;default:break x}var w0=p0}else{if(v0!==15)break x;var T0=l(k3,0),w0=[0,[1,r0(0,function(S0){return k(T0,0,S0)},t)]]}return[9,[0,0,w0,0,0,t0([0,u],0,R)]]}throw U0([0,Ar,Lo0],1)}else if(i[0]===4){var E0=i[3];if(I(E0,ta)){if(!I(E0,wo)&&t[28][1]){var N0=l(k3,0),X0=[0,[1,r0(0,function(Q0){return k(N0,0,Q0)},t)]];return[9,[0,0,X0,0,0,t0([0,u],0,R)]]}}else if(t[28][1]){var A0=[0,[3,r0(0,l(Pd,0),t)]];return[9,[0,0,A0,0,0,t0([0,u],0,R)]]}}W(t,0);var rx=B0(Nd,0,t,0);W(t,1);var B=M(t);x:{if(typeof B!="number"&&B[0]===4&&!I(B[3],fl)){var G0=l(m3,t),V0=G0[2],ex=[0,G0[1]];break x}k(_C,t,rx);var W0=Z2(0,0,t),Y0=W0[0]===0?W0[1]:W0[1][1],V0=Y0,ex=0}return[9,[0,0,0,[0,[0,rx]],ex,t0([0,u],[0,V0],R)]]},x)});var kK=function x(r,e){return x.fun(r,e)},mK=function x(r,e){return x.fun(r,e)},A6=function x(r,e){return x.fun(r,e)};function Rd(x,r){return function(e){if(!e)return vx(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var c=e[2];return D0(x,[0,i,64]),Rd(x,r)(c)}var v=u[2],a=v[2];return Rd(x,[0,[1,[0,i,[0,k(A6,x,v[1]),a]]],r])(0)}var p=t[1],_=p[2],y=e[2],S=p[1];switch(_[0]){case 0:var E=_[2],j=_[1],C=_[3];switch(j[0]){case 0:var P=[0,j[1]];break;case 1:var P=[1,j[1]];break;case 2:var P=[2,j[1]];break;case 3:var P=[3,j[1]];break;case 4:var P=gx(yv0);break;default:var P=[4,j[1]]}var O=E[2];x:{if(O[0]===4){var F=O[1];if(!F[1]){var K=[0,F[3]],U=F[2];break x}}var K=0,U=k(A6,x,E)}var V=[0,[0,[0,S,[0,P,U,K,C]]],r];break;case 1:D0(x,[0,_[2][1],50]);var V=r;break;default:D0(x,[0,_[2][1],gv0]);var V=r}return Rd(x,V)(y)}}m0(kK,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],c=a3(x);return[0,i,[0,[0,Rd(x,0)(u),c,t]]]});function hK(x,r){var e=r[1];return l(z0[23],r)?[0,k(A6,x,r)]:(D0(x,[0,e,37]),0)}function h3(x,r){return function(e){if(!e)return vx(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===4){var c=i[1];if(!c[1]){var v=e[2];return h3(x,[0,[0,[0,u[1],[0,c[2],[0,c[3]]]]],r])(v)}}var a=e[2],p=hK(x,u);if(p)var _=p[1],y=[0,[0,[0,_[1],[0,_,0]]],r];else var y=r;return h3(x,y)(a);case 1:var S=t[1],E=S[1];if(e[2]){var j=e[2];return D0(x,[0,E,16]),h3(x,r)(j)}var C=S[2],P=C[2],O=hK(x,C[1]),F=O?[0,[1,[0,E,[0,O[1],P]]],r]:r;return h3(x,F)(0);default:var K=e[2];return h3(x,[0,[2,t[1]],r])(K)}}}m0(mK,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],c=a3(x);return[0,i,[1,[0,h3(x,0)(u),c,t]]]}),m0(A6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return k(mK,x,[0,t,e[1]]);case 10:var u=e[1],i=u[2][1],c=u[1];x:{if(x[5]&&Xo(i)){D0(x,[0,c,71]);break x}if(1-x[5]){if(x[18]&&Sr(i,M1)){D0(x,[0,c,zt]);break x}var v=x[19],a=v&&Sr(i,_o);a&&D0(x,[0,c,5])}}return[0,t,[2,[0,u,a3(x),0]]];case 25:return k(kK,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});function I6(x,r){var e=M(x);if(typeof e=="number"){if(e===6)return r0(0,function(i){var c=f0(i);W(i,6);x:r:{var v=0;e:for(;;){var a=M(i);if(typeof a=="number"){if(13<=a){if(Dr===a)break r}else if(7<=a)switch(a-7|0){case 0:break e;case 2:var p=fx(i);W(i,9);var v=[0,[2,p],v];continue;case 5:var _=f0(i),y=r0(0,function($){return W($,12),I6($,r)},i),S=y[1],E=y[2],j=[1,[0,S,[0,E,t0([0,_],0,R)]]];M(i)!==7&&(D0(i,[0,S,16]),M(i)===9&&b0(i));var v=[0,j,v];continue}}var C=r0(0,function(Q){var $=I6(Q,r),x0=M(Q);t:{if(typeof x0=="number"&&x0===82){W(Q,82);var e0=[0,l(z0[10],Q)];break t}var e0=0}return[0,$,e0]},i),P=C[2],O=[0,[0,C[1],[0,P[1],P[2]]]];M(i)!==7&&W(i,9);var v=[0,O,v]}break x}var F=vx(v),K=f0(i);W(i,7);var U=M(i)===86?[1,Yo(i)]:a3(i);return[1,[0,F,U,F2([0,c],[0,xx(i)],K,R)]]},x);if(!e){var t=function(i){var c=M(i);return typeof c=="number"&&c===82?(W(i,82),[0,l(z0[10],i)]):0};return r0(0,function(i){var c=f0(i);W(i,0);x:for(var v=0,a=0,p=0;;){var _=M(i);if(typeof _=="number"){if(_===1)break x;if(Dr===_)break}r:if(M(i)===12)var y=f0(i),S=r0(0,function(B){return W(B,12),I6(B,r)},i),E=S[2],j=S[1],C=[0,[1,[0,j,[0,E,t0([0,y],0,R)]]]];else{var P=fx(i),O=k(z0[20],0,i),F=M(i);if(typeof F=="number"&&F===86){W(i,86);var K=r0([0,P],function(G0){var W0=I6(G0,r);return[0,W0,t(G0)]},i),U=K[2],V=O[2],Q=U[2],$=U[1],x0=K[1];switch(V[0]){case 0:var e0=[0,V[1]];break;case 1:var e0=[1,V[1]];break;case 2:var e0=[2,V[1]];break;case 3:var e0=[3,V[1]];break;case 4:var e0=gx(hv0);break;default:var e0=[4,V[1]]}var C=[0,[0,[0,x0,[0,e0,$,Q,0]]]];break r}var Z=O[2];if(Z[0]===3){var c0=Z[1],d0=c0[2][1],n0=c0[1];$h(d0)?D0(i,[0,n0,95]):i3(d0)&&ct(i,[0,n0,80]);var P0=r0([0,P],function(G0,W0){return function(Y0){var V0=[0,W0,[2,[0,G0,a3(Y0),0]]];return[0,V0,t(Y0)]}}(c0,n0),i),h0=P0[2],C=[0,[0,[0,P0[1],[0,[3,c0],h0[1],h0[2],1]]]]}else{_2(dv0,i);var C=0}}if(C){var g0=C[1],v0=g0[1][1],p0=v?(D0(i,[0,v0,64]),0):a;if(g0[0]===0)var T0=p0,E0=v;else var w0=M(i)===9?[0,fx(i)]:0,T0=w0,E0=1;M(i)!==1&&W(i,9);var v=E0,a=T0,p=[0,g0,p]}}a&&D0(i,[0,a[1],90]);var N0=vx(p),X0=f0(i);W(i,1);var A0=xx(i),rx=M(i)===86?[1,Yo(i)]:a3(i);return[0,[0,N0,rx,F2([0,c],[0,A0],X0,R)]]},x)}}var u=B0(z0[14],x,0,r);return[0,u[1],[2,u[2]]]}function Fd(x){var r=M(x);x:if(typeof r=="number"){var e=r+TM|0;if(6>>0){if(e!==14)break x}else if(4>=e-1>>>0)break x;return xx(x)}return K1(x)?Sa(x):0}function dK(x){return M(x)===1?0:[0,l(z0[7],x)]}function Xs(x){var r=fx(x),e=M(x);x:{if(typeof e!="number"&&e[0]===8){var t=e[1];break x}_2(ll0,x);var t=pl0}var u=f0(x);b0(x);var i=M(x);x:{r:if(typeof i=="number"){var c=i+RR|0;if(72>>0){if(c!==76)break r}else if(70>=c-1>>>0)break r;var v=xx(x);break x}var v=Fd(x)}return[0,r,[0,t,t0([0,u],[0,v],R)]]}function yK(x){var r=vr(1,x);if(typeof r=="number"){if(r===10)for(var e=r0(0,function(i){var c=[0,Xs(i)];return W(i,10),[0,c,Xs(i)]},x);;){var t=M(x);if(typeof t=="number"&&t===10){var u=e[1],e=r0([0,u],function(c){return function(v){return W(v,10),[0,[1,c],Xs(v)]}}(e),x);continue}return[2,e]}if(r===86)return[1,r0(0,function(i){var c=Xs(i);return W(i,86),[0,c,Xs(i)]},x)]}return[0,Xs(x)]}function j6(x,r){return Sr(x[2][1],r[2][1])}function gK(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],c=e[2],v=u[2];x:{if(t[0]===0){var a=t[1];if(i[0]===0){var _=j6(a,i[1]);break x}}else{var p=t[1];if(i[0]!==0){var _=gK(p,i[1]);break x}}var _=0}return _&&j6(c,v)}function Ld(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return j6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],c=u[2],v=i[2],a=j6(u[1],i[1]);return a&&j6(c,v)}break;default:var p=x[1];if(r[0]===2)return gK(p,r[1])}return 0}function EC(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}}var _K=function x(r,e){return x.fun(r,e)},SC=function x(r,e){return x.fun(r,e)},AC=function x(r,e){return x.fun(r,e)};m0(_K,function(x,r){var e=M(r);if(typeof e=="number"){if(e===0){L2(r,0);var t=r0(0,function(S){W(S,0);var E=M(S);x:{if(typeof E=="number"&&E===12){var j=f0(S);W(S,12);var C=l(z0[10],S),F=[3,[0,C,t0([0,j],0,R)]];break x}var P=dK(S),O=P?0:f0(S),F=[2,[0,P,F2(0,0,O,R)]]}return W(S,1),F},r),u=t[2],i=t[1];return J2(r),[0,i,u]}}else if(e[0]===9){var c=e[3],v=e[2],a=e[1];return W(r,e),[0,a,[4,[0,v,c]]]}var p=k(AC,x,r),_=p[2],y=p[1];return Ut<=_[1]?[0,y,[1,_[2]]]:[0,y,[0,_[2]]]});function Md(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Bx(fl0,r[2][2][1]);return Bx(e[2][1],t);default:var u=x[1][2],i=u[1],c=u[2],v=i[0]===0?i[1][2][1]:Md([2,i[1]]);return Bx(v,Bx(cl0,c[2][1]))}}m0(SC,function(x,r){var e=f0(r),t=r0(0,function(Lx){W(Lx,98);var M0=M(Lx);if(typeof M0=="number"){if(M0===99)return b0(Lx),al0}else if(M0[0]===8){var qr=yK(Lx);x:{if(g2(Lx)&&M(Lx)===98&>!==vr(1,Lx)){var Ex=rd(Lx,0,_d);break x}var Ex=0}for(var $0=0;;){var Gx=M(Lx);if(typeof Gx=="number"){if(Gx===0){var j0=f0(Lx);L2(Lx,0);var cr=r0(0,function(Rr){W(Rr,0),W(Rr,12);var U2=l(z0[10],Rr);return W(Rr,1),U2},Lx),tx=cr[2],Mx=cr[1];J2(Lx);var $0=[0,[1,[0,Mx,[0,tx,t0([0,j0],[0,Fd(Lx)],R)]]],$0];continue}}else if(Gx[0]===8){var $0=[0,[0,r0(0,function(Rr){var U2=vr(1,Rr);x:{if(typeof U2=="number"&&U2===86){var g=[1,r0(0,function(Fr){var hx=Xs(Fr);return W(Fr,86),[0,hx,Xs(Fr)]},Rr)];break x}var g=[0,Xs(Rr)]}var G=M(Rr);x:{if(typeof G=="number"&&G===82){W(Rr,82);var H=f0(Rr),l0=M(Rr);r:{if(typeof l0=="number"){if(l0===0){var J=f0(Rr);L2(Rr,0);var s0=r0(0,function(hx){W(hx,0);var z1=dK(hx);return W(hx,1),z1},Rr),_0=s0[1],y0=s0[2];J2(Rr);var J0=[0,y0,F2([0,J],[0,Fd(Rr)],0,R)];J0[1]||D0(Rr,[0,_0,47]);var gr=[0,[1,[0,_0,J0]]];break r}}else if(l0[0]===10){var Rx=l0[3],kx=l0[2],Jx=l0[1];W(Rr,l0);var gr=[0,[0,[0,Jx,[0,kx,Rx,t0([0,H],[0,Fd(Rr)],R)]]]];break r}Kx(Rr,36);var gr=[0,[0,[0,fx(Rr),vl0]]]}var Zx=gr;break x}var Zx=0}return[0,g,Zx]},Lx)],$0];continue}var b2=vx($0),Ux=[0,na,[0,qr,Ex,f2(Lx,gt),b2]];return f2(Lx,99)?[0,Ux]:(tn(Lx,99),[1,Ux])}}return tn(Lx,99),ol0},r);J2(r);var u=t[2];if(u[0]===0)var i=u[1],c=typeof i=="number"?0:i[2][3];else var c=1;if(c)var v=RS,a=v,p=r0(0,function(Lx){return 0},r);else{L2(r,3);var _=t[2][1],y=typeof _=="number"?0:[0,_[2][1]],S=fx(r);x:{r:{e:{t:for(var E=0;;){var j=u3(r);if(E&&y){var C=E[1],P=C[2],O=y[1],F=E[2];n:{if(P[0]===0){var K=P[1],U=K[2];if(U){var V=U[1][2][1],Q=1-Ld(K[1][2][1],V);if(Q){var $=Ld(O,V);break n}var $=Q;break n}}var $=0}if($)break r}var x0=M(r);if(typeof x0=="number"){if(x0===98){L2(r,2);var e0=M(r),Z=vr(1,r);if(typeof e0=="number"&&e0===98&&typeof Z=="number"){if(gt===Z)break t;if(Dr===Z)break}var c0=k(SC,y,r),d0=c0[2],n0=c0[1],P0=Ut<=d0[1]?[0,n0,[1,d0[2]]]:[0,n0,[0,d0[2]]],E=[0,P0,E];continue}if(Dr===x0)break e}var E=[0,k(_K,y,r),E]}var h0=r0(0,function($0){W($0,98),W($0,gt);var Gx=M($0);if(typeof Gx=="number"){if(Gx===99)return b0($0),Ut}else if(Gx[0]===8){var j0=yK($0);return xd($0,99),[0,na,[0,j0]]}return tn($0,99),Ut},r),g0=h0[2],v0=h0[1],p0=typeof g0=="number"?[0,Ut,v0]:[0,na,[0,v0,g0[2]]],w0=r[24][1];t:{if(w0){var T0=w0[2];if(T0){var E0=T0[2];break t}}var E0=gx(Gc0)}r[24][1]=E0;var N0=n3(r),X0=Zl(r[25][1],N0);r[26][1]=X0;var ex=[0,vx(E),,p0];break x}_2(0,r);var ex=[0,vx(E),,RS];break x}var A0=C[2];r:{if(A0[0]===0){var rx=A0[1],B=rx[2];if(B){var G0=B[1],W0=Zr(C[1],rx[3][1]),Y0=[0,na,G0],V0=[0,W0,[0,[0,rx[1],0,rx[3],rx[4]]]];break r}}var Y0=RS,V0=C}J2(r);var ex=[0,vx([0,V0,F]),,Y0]}var Q0=ex[3],S0=ex[1],q0=j?j[1]:S,a=Q0,p=[0,Zr(S,q0),S0]}var yx=xx(r);x:{r:if(typeof a!="number"){var cx=a[1];if(na===cx){var Dx=a[2],Ix=Dx[2][1],Xx=t[2],Z0=Dx[1];if(Xx[0]===0){var rr=Xx[1];if(typeof rr=="number")D0(r,[0,EC(Ix),sl0]);else{var xr=rr[2][1];e:if(1-Ld(Ix,xr)){if(x&&Ld(x[1],Ix)){var fr=[19,Md(xr)];D0(r,[0,EC(xr),fr]);break e}var Hx=[13,Md(xr)];D0(r,[0,EC(Ix),Hx])}}}var Y=Z0}else{if(Ut!==cx)break r;var jx=a[2],hr=t[2];if(hr[0]===0){var Yx=hr[1];typeof Yx!="number"&&D0(r,[0,jx,[13,Md(Yx[2][1])]])}var Y=jx}var Ur=Y;break x}var Ur=t[1]}var px=t[2][1],w=t[1];if(typeof px=="number"){x:{r:{var L=t0([0,e],[0,yx],R);if(typeof a!="number"){var L0=a[1];if(na===L0)var sx=a[2][1];else{if(Ut!==L0)break r;var sx=a[2]}var lx=sx;break x}}var lx=Ur}var ax=[0,Ut,[0,w,lx,p,L]]}else{var Vx=px[2];x:{var _x=t0([0,e],[0,yx],R);if(typeof a!="number"&&na===a[1]){var zx=[0,a[2]];break x}var zx=0}var ax=[0,na,[0,[0,w,Vx],zx,p,_x]]}return[0,Zr(t[1],Ur),ax]}),m0(AC,function(x,r){return L2(r,2),k(SC,x,r)});function bK(x,r){var e=g1(r);return td(x,r,e),e}var wK=function x(r){return x.fun(r)},IC=function x(r,e,t){return x.fun(r,e,t)},jC=function x(r){return x.fun(r)},TK=function x(r,e){return x.fun(r,e)},PC=function x(r,e){return x.fun(r,e)},NC=function x(r,e){return x.fun(r,e)},Ud=function x(r,e){return x.fun(r,e)},P6=function x(r,e){return x.fun(r,e)},qd=function x(r){return x.fun(r)},EK=function x(r){return x.fun(r)},SK=function x(r){return x.fun(r)},AK=function x(r,e,t){return x.fun(r,e,t)},IK=function x(r){return x.fun(r)},jK=function x(r){return x.fun(r)},ET0=l(AC,0);m0(wK,function(x){var r=M(x);x:{if(typeof r!="number"&&r[0]===6){var e=r[2],t=r[1];b0(x);var u=[0,[0,t,e]];break x}var u=0}var i=f0(x);x:{r:{for(var c=vx(i),v=5;c;){var a=c[2],p=c[1],_=p[2],y=p[1],S=_[2];e:{t:{for(var E=0,j=Nx(S);;){if(j<(E+5|0))break t;var C=Sr(k1(S,E,v),"@flow");if(C)break;var E=E+1|0}var P=C;break e}var P=0}if(P)break r;var c=a}var O=0;break x}x[31][1]=y[3];var O=vx([0,[0,y,_],a])}x:if(O===0){if(i){var F=i[1],K=F[2];if(!K[1]){var U=K[2],V=F[1];if(1<=Nx(U)&&N2(U,0)===42){x[31][1]=V[3];var Q=[0,F,0];break x}}}var Q=0}else var Q=O;var $=k(TK,x,function(n0){return 0}),x0=fx(x);W(x,Dr);var e0=y1[1];if(u1(function(n0,P0){var h0=P0[2];switch(h0[0]){case 21:return s6(x,n0,rn(0,[0,h0[1][1],Dl0]));case 22:var g0=h0[1],v0=g0[1];if(v0){if(!g0[2]){var p0=v0[1],w0=p0[2],T0=p0[1];x:{switch(w0[0]){case 38:var E0=w0[1][1],N0=0,X0=u1(function(Y0,V0){return u1(yO,Y0,[0,V0[2][1],0])},N0,E0);return u1(function(Y0,V0){return s6(x,Y0,V0)},n0,X0);case 2:case 27:var A0=w0[1][1];if(A0){var rx=A0[1];break x}break;case 3:case 20:case 30:case 36:case 37:var rx=w0[1][1];break x}return n0}return s6(x,n0,rn(0,[0,T0,rx[2][1]]))}}else{var B=g0[2];if(B){var G0=B[1];if(G0[0]!==0)return n0;var W0=G0[1];return u1(function(Y0,V0){var ex=V0[2],Q0=ex[2],S0=ex[1];return Q0?s6(x,Y0,Q0[1]):s6(x,Y0,S0)},n0,W0)}}return n0;default:return n0}},e0,$),$)var Z=Dl(vx($))[1],c0=Zr(Dl($)[1],Z);else var c0=x0;var d0=vx(x[2][1]);return[0,c0,[0,$,u,t0([0,Q],0,R),d0]]});function ST0(x,r,e,t){for(var u=x,i=t;;){var c=i[3],v=i[2],a=i[1],p=M(u);if(typeof p=="number"&&Dr===p)return[0,u,a,v,c];if(l(r,p))return[0,u,a,v,c];if(typeof p!="number"&&p[0]===2){var _=l(e,u),y=[0,_,v],S=_[2];if(S[0]===23){var E=S[1][2];if(E){var j=Sr(E[1],"use strict"),C=_[1],P=j&&1-u[21];P&&D0(u,[0,C,79]);var O=j?Fs(1,u):u,F=[0,p,a],K=c||j,u=O,i=[0,F,y,K];continue}}return[0,u,a,y,c]}return[0,u,a,v,c]}}m0(IC,function(x,r,e){var t=ST0(iX(1,x),r,e,Nl0),u=t[4],i=t[3],c=t[2],v=iX(0,t[1]),a=vx(c);return p1(function(p){if(typeof p!="number"&&p[0]===2){var _=p[1],y=_[4],S=_[1];return y&&ct(v,[0,S,76])}return gx(Bx(Cl0,Bx(TB(p),Ol0)))},a),[0,v,i,u]}),m0(jC,function(x){var r=oC(x),e=M(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return k(cK,r,x);case 1:Zh(x)(r);var u=vr(1,x);x:{r:if(typeof u=="number"){if(u!==4&&u!==10)break r;var i=E6(x);break x}var i=Dd(x)}return i;case 11:if(vr(1,x)===49)return Zh(x)(r),l(bC,x);break}}return k(P6,[0,r],x)}),m0(TK,function(x,r){var e=B0(IC,x,r,jC),t=e[2],u=k(PC,r,e[1]);return u1(function(i,c){return[0,c,i]},u,t)}),m0(PC,function(x,r){for(var e=0;;){var t=M(r);if(typeof t=="number"&&Dr===t||l(x,t))return vx(e);var e=[0,l(jC,r),e]}}),m0(NC,function(x,r){var e=B0(IC,r,x,function(c){return k(P6,0,c)}),t=e[3],u=e[2],i=k(Ud,x,e[1]);return[0,u1(function(c,v){return[0,v,c]},i,u),t]}),m0(Ud,function(x,r){for(var e=0;;){var t=M(r);if(typeof t=="number"&&Dr===t||l(x,t))return vx(e);var e=[0,k(P6,0,r),e]}}),m0(P6,function(x,r){var e=x?x[1]:0;1-n6(r)&&Zh(r)(e);var t=M(r);if(typeof t=="number"){if(t===27)return r0(lT0,vT0,r);if(t===28)return r0(kT0,pT0,r)}if(!Ea(r)&&!Qh(r)){if(n6(r))return Ad(r,e);if(typeof t=="number"){var u=t+B2|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return pJ(0)(r);break;case 5:return l(ZJ,r);case 12:return k(iK,0,r);case 13:return l(WJ,r);case 14:return l(HJ,r)}}return vO(r)?qO(r):l(qd,r)}return d6(r)}),m0(qd,function(x){var r=M(x);if(typeof r=="number"&&ia>r)switch(r){case 0:return l(VJ,x);case 8:return l(JJ,x);case 16:return oK(x);case 19:return r0(tT0,eT0,x);case 20:return r0(uT0,nT0,x);case 22:return r0(fT0,iT0,x);case 23:return r0(sT0,cT0,x);case 24:return r0(oT0,aT0,x);case 25:return r0(hT0,mT0,x);case 26:return l(zJ,x);case 32:return l(KJ,x);case 35:return l(YJ,x);case 37:return r0($w0,Ww0,x);case 39:return r0(Qw0,Hw0,x);case 43:return oK(x);case 59:return r0(Gw0,Vw0,x);case 113:return _2(Il0,x),[0,fx(x),jl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return _2(Pl0,x),b0(x),l(qd,x)}if(!Ea(x)&&!Qh(x)){if(typeof r=="number"&&r===28&&vr(1,x)===6){var e=f3(1,x);return D0(x,[0,Zr(fx(x),e),3]),E6(x)}return Jc(x)?r0(yT0,dT0,x):(n6(x)&&(_2(0,x),b0(x)),E6(x))}var t=d6(x);return Jo(x,t[1]),t}),m0(EK,function(x){var r=fx(x),e=l(Dt,x),t=M(x);return typeof t=="number"&&t===9?B0(Td,x,r,[0,e,0]):e}),m0(SK,function(x){var r=fx(x),e=l(p3,x),t=M(x);return typeof t=="number"&&t===9?[0,B0(Td,x,r,[0,f1(x,e),0])]:e}),m0(AK,function(x,r,e){var t=r?r[1]:0;return r0(0,function(u){var i=1-t,c=bK([0,e],u),v=i&&(M(u)===85?1:0);return v&&(1-g2(u)&&Kx(u,S1),W(u,85)),[0,c,CO(u),v]},x)}),m0(IK,function(x){var r=fx(x),e=f0(x);W(x,0);var t=k(Ud,function(v){return v===1?1:0},x),u=fx(x),i=t===0?f0(x):0;W(x,1);var c=[0,t,F2([0,e],[0,xx(x)],i,R)];return[0,Zr(r,u),c]}),m0(jK,function(x){function r(t){var u=f0(t);W(t,0);var i=k(NC,function(y){return y===1?1:0},t),c=i[1],v=i[2],a=c===0?f0(t):0;W(t,1);var p=M(t);x:{r:if(!x){if(typeof p=="number"&&(p===1||Dr===p))break r;if(K1(t)){var _=Sa(t);break x}var _=0;break x}var _=xx(t)}return[0,[0,c,F2([0,u],[0,_],a,R)],v]}var e=0;return function(t){return mO(e,r,t)}}),Vq(Ml0[1],z0,[0,wK,qd,P6,Ud,NC,PC,EK,SK,yJ,Dt,gd,Bw0,bK,AK,IK,jK,ET0,I6,A6,Pa,Ad,zw0,Cw0,bd,Yo,wd]);var OC=[x2,fb0,Ts(0)],CC=[0,OC,[0]],AT0=ph(ub0,function(x){var r=CN(x,nb0)[41],e=LN(x,0,0,ib0,XN,1)[1];return Yq(x,r,function(t,u){return 0}),function(t,u){var i=kh(u,x);return l(e,i),MN(u,i,x)}}),IT0=Po(CC)===x2?CC:CC[1];ZP(MT,IT0);var Js=a0,_1=null,PK=void 0;function jT0(x){throw x}function Bd(x){return 1-(x===PK?1:0)}Js.String,Js.RegExp,Js.Object,Js.Date,Js.Math;var PT0=Js.Array,NT0=Js.Error;function NK(x){return l(jT0,x)}Js.JSON,bq(function(x){return x[1]===OC?[0,Tt(x[2].toString())]:0}),bq(function(x){return x instanceof PT0?0:[0,Tt(x.toString())]});var OK=[0,0],OT0=Qx;function Vc(x){return DY(Ll(x))}function M2(x){return CY(Ll(x))}function jr(x,r){return M2(vx(th(x,r)))}function Tx(x,r){return r?l(x,r[1]):_1}function d3(x,r){return r[0]===0?_1:x(r[1])}function CK(x){return Vc([0,[0,tb0,x[1]],[0,[0,eb0,x[2]],0]])}function DK(x){var r=x[1],e=r?Qx(r[1][1]):_1,t=[0,[0,Z_0,CK(x[3])],0];return Vc([0,[0,rb0,e],[0,[0,xb0,CK(x[2])],t]])}function S2(x){if(!x)return 0;var r=x[1],e=r[1];return t0([0,e],[0,Fx(r[3],r[2])],R)}function N6(x,r,e){var t=r[e];return Bd(t)?t|0:x}function CT0(x,r){var e=Xv(r,PK)?{}:r,t=Tt(x),u=N6(Nl[5],e,sb0),i=N6(Nl[4],e,ab0),c=N6(Nl[3],e,ob0),v=N6(Nl[2],e,vb0),a=[0,N6(Nl[1],e,lb0),v,c,i,u,0,0],p=e[dR],_=Bd(p),y=_&&p|0,S=e[VD],E=Bd(S)?S|0:1,j=e.all_comments,C=Bd(j)?j|0:1,P=[0,0],O=y?[0,function(X){return P[1]=[0,X,P[1]],0}]:0,F=cb0[1],K=0;try{var U=0,V=fB(t),Q=U,$=V}catch(X){var x0=O2(X);if(x0!==ka)throw U0(x0,0);var e0=[0,[0,[0,K,Yv[2],Yv[3]],49],0],Q=e0,$=fB(es0)}var Z=[0,K,$,M00,0,a[4],gB,U00],c0=[0,Zl(Z,0)],d0=[0,[0,Q],[0,0],y1[1],[0,0],a[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,ns0],[0,Z],c0,[0,O],a,K,[0,0],[0,ts0]],n0=l(z0[1],d0),P0=vx(d0[1][1]),h0=[0,dO[1],0],g0=vx(u1(function(X,A){var D=X[2],u0=X[1];return dO[3].call(null,A,u0)?[0,u0,D]:[0,dO[4].call(null,A,u0),[0,A,D]]},h0,P0)[2]);if(g0){var v0=g0[2],p0=g0[1];if(F)throw U0([0,Wb0,p0,v0],1)}OK[1]=0;var w0=Nx(t)-0|0,T0=Cc(t);x:{r:{for(var E0=0,N0=0;;){if(N0===w0)break r;var X0=fe(T0,N0);e:{if(0<=X0&&Yr>=X0){var A0=1;break e}if(T9<=X0&&ak>=X0){var A0=2;break e}if(Tv<=X0&&Gk>=X0){var A0=3;break e}if(po<=X0&&NI>=X0){var A0=4;break e}var A0=0}if(A0===0)var E0=hO(E0,N0,0),N0=N0+1|0;else{if((w0-N0|0)>>0)throw U0([0,Ar,MW],1);switch(rx){case 0:var G0=fe(T0,N0);break;case 1:var G0=(fe(T0,N0)&31)<<6|fe(T0,N0+1|0)&63;break;case 2:var G0=(fe(T0,N0)&15)<<12|(fe(T0,N0+1|0)&63)<<6|fe(T0,N0+2|0)&63;break;default:var G0=(fe(T0,N0)&7)<<18|(fe(T0,N0+1|0)&63)<<12|(fe(T0,N0+2|0)&63)<<6|fe(T0,N0+3|0)&63}var E0=hO(E0,N0,[0,G0]),N0=B}}var W0=hO(E0,N0,0);break x}var W0=E0}for(var Y0=co0,V0=vx([0,6,W0]);;){var ex=Y0[3],Q0=Y0[2],S0=Y0[1];if(!V0)break;var q0=V0[1];if(q0===5){var yx=V0[2];if(yx&&yx[1]===6){var cx=yx[2],Y0=[0,S0+2|0,0,[0,Ll(vx([0,S0,Q0])),ex]],V0=cx;continue}}else if(6>q0){var Dx=V0[2],Y0=[0,S0+SX(q0)|0,[0,S0,Q0],ex],V0=Dx;continue}var Ix=V0[2],Xx=[0,Ll(vx([0,S0,Q0])),ex],Y0=[0,S0+SX(q0)|0,0,Xx],V0=Ix}var Z0=Ll(vx(ex));if(E)var xr=n0;else var rr=l(AT0[1],0),xr=k(Wx(rr,-201766268,99),rr,n0);if(C)var Hx=xr;else var fr=xr[2],Hx=[0,xr[1],[0,fr[1],fr[2],fr[3],0]];function Y(X,A,D,u0){var k0=[0,ud(Z0,A[3]),0],C0=[0,[0,Ul0,M2([0,ud(Z0,A[2]),k0])],0],nx=Fx(C0,[0,[0,ql0,DK(A)],0]);if(D){var Sx=D[1],Px=Sx[1];if(Px){var qx=Sx[2];if(qx)var lr=[0,[0,Bl0,sn(qx)],0],tr=[0,[0,Xl0,sn(Px)],lr];else var tr=[0,[0,Jl0,sn(Px)],0];var ur=tr}else var br=Sx[2],pr=br?[0,[0,Kl0,sn(br)],0]:0,ur=pr;var Tr=ur}else var Tr=0;return Vc(zv(Fx(nx,Fx(Tr,[0,[0,Yl0,Qx(X)],0])),u0))}function jx(X){return jr(_x,X)}function hr(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,I50,Qx(Na(A[2]))],0];return Y(P50,k0,D,[0,[0,j50,jr(Ho,u0)],C0])}function Yx(X){var A=X[2],D=A[5],u0=A[4],k0=A[2],C0=A[1],nx=X[1],Sx=[0,[0,Kh0,jr(Rx,A[3])],0],Px=[0,[0,Yh0,at(0,u0)],Sx],qx=[0,[0,zh0,Tx(K2,k0)],Px];return Y(Gh0,nx,D,[0,[0,Vh0,j0(C0)],qx])}function Ur(X,A){var D=A[2],u0=D[7],k0=D[5],C0=D[4],nx=D[2],Sx=D[6],Px=D[3],qx=D[1],lr=A[1];if(C0)var tr=C0[1][2],br=tr[2],pr=tr[1],ur=N1(tr[3],u0),Tr=br,Br=[0,pr];else var ur=u0,Tr=0,Br=0;if(k0)var Or=k0[1][2],Wr=Or[1],Pr=N1(Or[2],ur),t2=Pr,p2=jr(s0,Wr);else var t2=ur,p2=M2(0);var o2=[0,[0,em0,p2],[0,[0,rm0,jr(J,Sx)],0]],n2=[0,[0,tm0,Tx(cn,Tr)],o2],c2=[0,[0,nm0,Tx(tx,Br)],n2],w2=[0,[0,um0,Tx(K2,Px)],c2],k2=nx[2],v2=k2[2],q2=nx[1],s1=[0,[0,im0,Y(pm0,q2,v2,[0,[0,lm0,jr(_0,k2[1])],0])],w2];return Y(X,lr,t2,[0,[0,fm0,Tx(j0,qx)],s1])}function px(X,A){var D=A[2],u0=D[5],k0=D[4],C0=D[3],nx=D[2],Sx=D[1],Px=A[1],qx=X?V80:G80,lr=[0,[0,W80,Tx(_r,k0)],0],tr=[0,[0,$80,Tx(_r,C0)],lr],br=[0,[0,H80,Tx(K2,nx)],tr];return Y(qx,Px,u0,[0,[0,Q80,j0(Sx)],br])}function w(X){var A=X[2],D=A[4],u0=A[2],k0=A[1],C0=X[1],nx=[0,[0,J80,_r(A[3])],0],Sx=[0,[0,K80,Tx(K2,u0)],nx];return Y(z80,C0,D,[0,[0,Y80,j0(k0)],Sx])}function L(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,A80,J0(A[2])],0];return Y(j80,k0,D,[0,[0,I80,j0(u0)],C0])}function L0(X){var A=X[2],D=A[3],u0=X[1],k0=A[5],C0=A[4],nx=A[2],Sx=A[1],Px=N1(S2(D[2][3]),k0),qx=D[2],lr=qx[1],tr=qx[2],br=[0,[0,o80,Tx(K2,nx)],0],pr=[0,[0,v80,ot(C0)],br],ur=[0,[0,l80,U2(lr)],pr],Tr=[0,[0,p80,Tx(G,tr)],ur],Br=[0,[0,k80,U2(lr)],Tr];return Y(h80,u0,Px,[0,[0,m80,j0(Sx)],Br])}function sx(X){var A=X[2],D=A[6],u0=A[4],k0=A[7],C0=A[5],nx=A[3],Sx=A[2],Px=A[1],qx=X[1],lr=M2(u0?[0,Rx(u0[1]),0]:0),tr=D?jr(s0,D[1][2][1]):M2(0),br=[0,[0,i80,lr],[0,[0,u80,tr],[0,[0,n80,jr(Rx,C0)],0]]],pr=[0,[0,f80,at(0,nx)],br],ur=[0,[0,c80,Tx(K2,Sx)],pr];return Y(a80,qx,k0,[0,[0,s80,j0(Px)],ur])}function lx(X){var A=X[2],D=A[2],u0=A[1],k0=A[4],C0=A[3],nx=X[1],Sx=Zr(u0[1],D[1]),Px=D[2][2];x:{if(Px[0]===12){var qx=Px[1][5];if(typeof qx=="number"&&!qx){var lr=0,tr=x80;break x}}var lr=[0,[0,r80,Tx(an,C0)],0],tr=e80}return Y(tr,nx,k0,Fx([0,[0,t80,b2(Sx,[0,u0,[1,D],0])],0],lr))}function ax(X){var A=X[2],D=A[2],u0=A[1],k0=A[4],C0=A[3],nx=X[1],Sx=Zr(u0[1],D[1]),Px=[0,[0,Hk0,Qx(Na(C0))],0];return Y(Zk0,nx,k0,[0,[0,Qk0,b2(Sx,[0,u0,[1,D],0])],Px])}function Vx(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Wk0,jx(A[1])],0];return Y($k0,u0,S2(D),k0)}function _x(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Vx([0,D,A[1]]);case 1:var u0=A[1],k0=u0[2];return Y(Zl0,D,k0,[0,[0,Ql0,Tx(j0,u0[1])],0]);case 2:return Ur(Z80,[0,D,A[1]]);case 3:var C0=A[1],nx=C0[3],Sx=C0[6],Px=C0[5],qx=C0[4],lr=C0[2],tr=C0[1],br=N1(S2(nx[2][3]),Sx),pr=[0,[0,Ym0,Tx(K2,lr)],0],ur=[0,[0,zm0,ot(qx)],pr],Tr=nx[2],Br=Tr[2],Or=Tr[1];if(Br)var Wr=Br[1],Pr=Wr[2],t2=Pr[2],p2=Wr[1],o2=Y(Qm0,p2,t2,[0,[0,Hm0,kx(Pr[1])],0]),n2=M2(vx([0,o2,th(y0,Or)]));else var n2=M2(xn(y0,Or));var c2=[0,[0,Gm0,j0(tr)],[0,[0,Vm0,n2],ur]];return Y($m0,D,br,[0,[0,Wm0,Vx(Px)],c2]);case 4:var w2=A[1],k2=w2[2];return Y(r60,D,k2,[0,[0,x60,Tx(j0,w2[1])],0]);case 5:return Y(e60,D,A[1][1],0);case 6:return sx([0,D,A[1]]);case 7:return L0([0,D,A[1]]);case 8:return L([0,D,A[1]]);case 9:var v2=A[1],q2=v2[5],s1=v2[4],O1=v2[3],xe=v2[2],sr=v2[1];if(O1){var Xr=O1[1];if(Xr[0]!==0&&!Xr[1][2])return Y(n60,D,q2,[0,[0,t60,Tx(Ex,s1)],0])}if(xe){var Cr=xe[1];switch(Cr[0]){case 0:var Jr=ax(Cr[1]);break;case 1:var Jr=lx(Cr[1]);break;case 2:var Jr=sx(Cr[1]);break;case 3:var Jr=L0(Cr[1]);break;case 4:var Jr=_r(Cr[1]);break;case 5:var Jr=w(Cr[1]);break;case 6:var Jr=px(1,Cr[1]);break;case 7:var Jr=Yx(Cr[1]);break;default:var Jr=L(Cr[1])}var bx=Jr}else var bx=_1;var le=[0,[0,u60,Tx(Ex,s1)],0],pe=[0,[0,f60,bx],[0,[0,i60,l0(O1)],le]],Re=sr?1:0;return Y(s60,D,q2,[0,[0,c60,!!Re],pe]);case 10:return lx([0,D,A[1]]);case 11:var b1=A[1],$r=b1[5],re=b1[4],x1=b1[2],C1=b1[1],w1=[0,[0,P80,jr(Rx,b1[3])],0],lt=[0,[0,N80,at(0,re)],w1],Rt=[0,[0,O80,Tx(K2,x1)],lt];return Y(D80,D,$r,[0,[0,C80,j0(C1)],Rt]);case 12:var Fe=A[1],D1=Fe[1],Le=Fe[3],ke=Fe[2],ee=D1[0]===0?j0(D1[1]):Ex(D1[1]);return Y(v60,D,Le,[0,[0,o60,ee],[0,[0,a60,Vx(ke)],0]]);case 13:var a1=A[1],Me=a1[2];return Y(p60,D,Me,[0,[0,l60,hx(a1[1])],0]);case 14:var V1=A[1],Ft=V1[3],Ue=V1[2],qe=j0(V1[1]);return Y(h60,D,Ft,[0,[0,m60,qe],[0,[0,k60,Vx(Ue)],0]]);case 15:var r1=A[1],T1=r1[4],Be=r1[2],$c=r1[1],Hc=[0,[0,U80,_r(r1[3])],0],Qc=[0,[0,q80,Tx(K2,Be)],Hc];return Y(X80,D,T1,[0,[0,B80,j0($c)],Qc]);case 16:return px(1,[0,D,A[1]]);case 17:return ax([0,D,A[1]]);case 18:var me=A[1],Xe=me[3],Lt=me[1],Je=[0,[0,d60,tx(me[2])],0];return Y(g60,D,Xe,[0,[0,y60,_x(Lt)],Je]);case 19:return Y(_60,D,A[1][1],0);case 20:var E1=A[1],on=E1[3],vn=E1[1],Zc=[0,[0,Bh0,J0(E1[2])],0];return Y(Jh0,D,on,[0,[0,Xh0,j0(vn)],Zc]);case 21:var Ke=A[1],Ye=Ke[2],ln=Ke[3],pn=Ye[0]===0?_x(Ye[1]):tx(Ye[1]);return Y(T60,D,ln,[0,[0,w60,pn],[0,[0,b60,Qx(H(1))],0]]);case 22:var he=A[1],kn=he[5],Hs=he[4],xs=he[3],Qs=he[2],Ya=he[1];if(Qs){var za=Qs[1];if(za[0]!==0){var ev=za[1][2],tv=[0,[0,E60,Qx(H(Hs))],0],nv=[0,[0,S60,Tx(j0,ev)],tv];return Y(I60,D,kn,[0,[0,A60,Tx(Ex,xs)],nv])}}var Zs=[0,[0,j60,Qx(H(Hs))],0],_3=[0,[0,P60,Tx(Ex,xs)],Zs],b3=[0,[0,N60,l0(Qs)],_3];return Y(C60,D,kn,[0,[0,O60,Tx(_x,Ya)],b3]);case 23:var rs=A[1],Va=rs[3],uv=rs[1],w3=[0,[0,D60,Tx(OT0,rs[2])],0];return Y(F60,D,Va,[0,[0,R60,tx(uv)],w3]);case 24:var es=A[1],iv=es[5],fv=es[4],xa=es[3],T3=es[2],E3=es[1],S3=function(z6){return z6[0]===0?hr(z6[1]):tx(z6[1])},mn=[0,[0,L60,_x(fv)],0],A3=[0,[0,M60,Tx(tx,xa)],mn],I3=[0,[0,U60,Tx(tx,T3)],A3];return Y(B60,D,iv,[0,[0,q60,Tx(S3,E3)],I3]);case 25:var hn=A[1],ts=hn[1],j3=hn[5],P3=hn[4],Ga=hn[3],Wa=hn[2],$a=ts[0]===0?hr(ts[1]):kx(ts[1]),cv=[0,[0,J60,_x(Ga)],[0,[0,X60,!!P3],0]];return Y(z60,D,j3,[0,[0,Y60,$a],[0,[0,K60,tx(Wa)],cv]]);case 26:var Mt=A[1],de=Mt[1],te=Mt[5],pt=Mt[4],ra=Mt[3],N3=Mt[2],ea=de[0]===0?hr(de[1]):kx(de[1]),ns=[0,[0,G60,_x(ra)],[0,[0,V60,!!pt],0]];return Y(H60,D,te,[0,[0,$60,ea],[0,[0,W60,tx(N3)],ns]]);case 27:var ye=A[1],sv=ye[3],O3=ye[2],Vd=ye[10],Gd=ye[9],Wd=ye[8],$d=ye[7],M6=ye[6],DC=ye[5],RC=ye[4],FC=O3[2][4],LC=ye[1],MC=sv[0]===0?sv[1]:gx(ck0),UC=N1(S2(FC),Vd);if(M6===0)var Hd=0,Qd=sk0;else var Hd=[0,[0,lk0,!!RC],[0,[0,vk0,!!DC],[0,[0,ok0,Tx(an,$d)],[0,[0,ak0,!1],0]]]],Qd=pk0;var qC=[0,[0,kk0,Tx(K2,Gd)],0],BC=[0,[0,mk0,z1(Wd)],qC],XC=[0,[0,hk0,Vx(MC)],BC],JC=[0,[0,dk0,Zx(O3)],XC];return Y(Qd,D,UC,Fx([0,[0,yk0,Tx(j0,LC)],JC],Hd));case 28:var C3=A[1],Zd=C3[3],KC=C3[4],YC=C3[2],zC=C3[1];if(Zd)var x5=Zd[1][2],r5=_x(ow0(x5[1],x5[2]));else var r5=_1;var VC=[0,[0,Z60,_x(YC)],[0,[0,Q60,r5],0]];return Y(rp0,D,KC,[0,[0,xp0,tx(zC)],VC]);case 29:var av=A[1],e5=av[4],t5=av[3],GC=av[5],WC=av[2],$C=av[1];if(e5){var U6=e5[1];if(U6[0]===0)var HC=U6[1],u5=xn(function(V6){var R3=V6[3],F3=V6[2],a5=V6[1],gD=F3?Zr(R3[1],F3[1][1]):R3[1],_D=F3?F3[1]:R3;x:{r:{var bD=0;if(a5){switch(a5[1]){case 0:var o5=qu;break;case 1:var o5=ss;break;default:break r}var v5=o5;break x}}var v5=_1}var wD=[0,[0,F_0,j0(_D)],[0,[0,R_0,v5],bD]];return Y(M_0,gD,0,[0,[0,L_0,j0(R3)],wD])},HC);else var n5=U6[1],QC=n5[1],u5=[0,Y(D_0,QC,0,[0,[0,C_0,j0(n5[2])],0]),0];var q6=u5}else var q6=0;if(t5)var i5=t5[1][1],ZC=[0,[0,N_0,j0(i5)],0],f5=[0,Y(O_0,i5[1],0,ZC),q6];else var f5=q6;switch($C){case 0:var B6=ep0;break;case 1:var B6=tp0;break;default:var B6=np0}var xD=[0,[0,ip0,Ex(WC)],[0,[0,up0,Qx(B6)],0]];return Y(cp0,D,GC,[0,[0,fp0,M2(f5)],xD]);case 30:return Yx([0,D,A[1]]);case 31:var X6=A[1],rD=X6[3],eD=X6[1],tD=[0,[0,sp0,_x(X6[2])],0];return Y(op0,D,rD,[0,[0,ap0,j0(eD)],tD]);case 32:var c5=A[1],nD=c5[2];return Y(lp0,D,nD,[0,[0,vp0,Tx(tx,c5[1])],0]);case 33:var J6=A[1],uD=J6[3],iD=J6[1],fD=[0,[0,pp0,jr(c1,J6[2])],0];return Y(mp0,D,uD,[0,[0,kp0,tx(iD)],fD]);case 34:var s5=A[1],cD=s5[2];return Y(dp0,D,cD,[0,[0,hp0,tx(s5[1])],0]);case 35:var D3=A[1],sD=D3[4],aD=D3[2],oD=D3[1],vD=[0,[0,yp0,Tx(Vx,D3[3])],0],lD=[0,[0,gp0,Tx(Rr,aD)],vD];return Y(bp0,D,sD,[0,[0,_p0,Vx(oD)],lD]);case 36:return w([0,D,A[1]]);case 37:return px(0,[0,D,A[1]]);case 38:return hr([0,D,A[1]]);case 39:var K6=A[1],pD=K6[3],kD=K6[1],mD=[0,[0,wp0,_x(K6[2])],0];return Y(Ep0,D,pD,[0,[0,Tp0,tx(kD)],mD]);default:var Y6=A[1],hD=Y6[3],dD=Y6[1],yD=[0,[0,Sp0,_x(Y6[2])],0];return Y(Ip0,D,hD,[0,[0,Ap0,tx(dD)],yD])}}function zx(X){var A=X[2],D=A[4],u0=A[3][2],k0=A[1],C0=X[1],nx=[0,[0,Gg0,Y(i_0,A[2],0,0)],0],Sx=[0,[0,Wg0,jr(Ba,u0)],nx];return Y(Hg0,C0,D,[0,[0,$g0,Y(t_0,k0,0,0)],Sx])}function Lx(X){var A=X[2],D=A[1],u0=A[4],k0=A[2],C0=X[1],nx=[0,[0,Kg0,jr(Ba,A[3][2])],0],Sx=[0,[0,Yg0,Tx(Ua,k0)],nx],Px=D[2],qx=Px[2],lr=Px[4],tr=Px[3],br=Px[1],pr=D[1],ur=qx?[0,[0,Qg0,Gs(qx[1])],0]:0,Tr=[0,[0,x_0,jr(Ws,lr)],[0,[0,Zg0,!!tr],0]];return Y(Vg0,C0,u0,[0,[0,zg0,Y(e_0,pr,0,Fx([0,[0,r_0,Zo(br)],Tr],ur))],Sx])}function M0(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,p50,jr(tx,A[2])],0];return Y(m50,k0,D,[0,[0,k50,jr($o,u0)],C0])}function qr(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D?x50:r50;return Y(n50,k0,u0,[0,[0,t50,!!D],[0,[0,e50,Qx(C0)],0]])}function Ex(X){var A=X[2];return Y(Zd0,X[1],A[3],[0,[0,Qd0,Qx(A[1])],[0,[0,Hd0,Qx(A[2])],0]])}function $0(X){var A=X[2],D=A[2],u0=A[1],k0=A[3],C0=X[1],nx=u0?FU(Lv,u0[1]):fq(zd0,aq(95,k1(D,0,Nx(D)-1|0)));return Y($d0,C0,k0,[0,[0,Wd0,_1],[0,[0,Gd0,Qx(nx)],[0,[0,Vd0,Qx(D)],0]]])}function Gx(X){var A=X[2];return Y(Yd0,X[1],A[3],[0,[0,Kd0,A[1]],[0,[0,Jd0,Qx(A[2])],0]])}function j0(X){var A=X[2];return Y(Dk0,X[1],A[2],[0,[0,Ck0,Qx(A[1])],[0,[0,Ok0,_1],[0,[0,Nk0,!1],0]]])}function cr(X){var A=X[2],D=A[3],u0=A[2],k0=A[10],C0=A[9],nx=A[8],Sx=A[7],Px=A[5],qx=A[4],lr=u0[2][4],tr=A[1],br=X[1],pr=D[0]===0?D[1]:gx(gk0),ur=N1(S2(lr),k0),Tr=[0,[0,_k0,Tx(K2,C0)],0],Br=[0,[0,wk0,!1],[0,[0,bk0,z1(nx)],Tr]],Or=[0,[0,Sk0,!!qx],[0,[0,Ek0,!!Px],[0,[0,Tk0,Tx(an,Sx)],Br]]],Wr=[0,[0,Ak0,Vx(pr)],Or],Pr=[0,[0,Ik0,Zx(u0)],Wr];return Y(Pk0,br,ur,[0,[0,jk0,Tx(j0,tr)],Pr])}function tx(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[2],C0=[0,[0,jp0,jr(Wo,u0[1])],0];return Y(Pp0,D,S2(k0),C0);case 1:var nx=A[1],Sx=nx[3],Px=nx[2],qx=nx[10],lr=nx[9],tr=nx[8],br=nx[7],pr=nx[4],ur=Px[2][4];if(Sx[0]===0)var Tr=0,Br=Vx(Sx[1]);else var Tr=1,Br=tx(Sx[1]);var Or=N1(S2(ur),qx),Wr=[0,[0,Np0,Tx(K2,lr)],0],Pr=[0,[0,Cp0,!!Tr],[0,[0,Op0,z1(tr)],Wr]],t2=[0,[0,Lp0,Br],[0,[0,Fp0,!!pr],[0,[0,Rp0,!1],[0,[0,Dp0,Tx(an,br)],Pr]]]];return Y(qp0,D,Or,[0,[0,Up0,_1],[0,[0,Mp0,Zx(Px)],t2]]);case 2:var p2=A[1],o2=p2[2];return Y(Xp0,D,o2,[0,[0,Bp0,tx(p2[1])],0]);case 3:var n2=A[1],c2=n2[3],w2=n2[1],k2=[0,[0,Jp0,_r(n2[2][2])],0];return Y(Yp0,D,c2,[0,[0,Kp0,tx(w2)],k2]);case 4:var v2=A[1],q2=v2[1],s1=v2[4],O1=v2[3],xe=v2[2];if(q2){switch(q2[1]){case 0:var sr=X$;break;case 1:var sr=J$;break;case 2:var sr=K$;break;case 3:var sr=Y$;break;case 4:var sr=z$;break;case 5:var sr=V$;break;case 6:var sr=G$;break;case 7:var sr=W$;break;case 8:var sr=$$;break;case 9:var sr=H$;break;case 10:var sr=Q$;break;case 11:var sr=Z$;break;case 12:var sr=xH;break;case 13:var sr=rH;break;default:var sr=eH}var Xr=sr}else var Xr=zp0;var Cr=[0,[0,Vp0,tx(O1)],0];return Y($p0,D,s1,[0,[0,Wp0,Qx(Xr)],[0,[0,Gp0,kx(xe)],Cr]]);case 5:var Jr=A[1],bx=Jr[4],le=Jr[2],pe=Jr[1],Re=[0,[0,Hp0,tx(Jr[3])],0],b1=[0,[0,Qp0,tx(le)],Re];switch(pe){case 0:var $r=g$;break;case 1:var $r=_$;break;case 2:var $r=b$;break;case 3:var $r=w$;break;case 4:var $r=T$;break;case 5:var $r=E$;break;case 6:var $r=S$;break;case 7:var $r=A$;break;case 8:var $r=I$;break;case 9:var $r=j$;break;case 10:var $r=P$;break;case 11:var $r=N$;break;case 12:var $r=O$;break;case 13:var $r=C$;break;case 14:var $r=D$;break;case 15:var $r=R$;break;case 16:var $r=F$;break;case 17:var $r=L$;break;case 18:var $r=M$;break;case 19:var $r=U$;break;case 20:var $r=q$;break;default:var $r=B$}return Y(x40,D,bx,[0,[0,Zp0,Qx($r)],b1]);case 6:var re=A[1],x1=re[4],C1=N1(S2(re[3][2][2]),x1);return Y(r40,D,C1,Ka(re));case 7:return Ur(xm0,[0,D,A[1]]);case 8:var w1=A[1],lt=w1[4],Rt=w1[2],Fe=w1[1],D1=[0,[0,e40,tx(w1[3])],0],Le=[0,[0,t40,tx(Rt)],D1];return Y(u40,D,lt,[0,[0,n40,tx(Fe)],Le]);case 9:return cr([0,D,A[1]]);case 10:return j0(A[1]);case 11:var ke=A[1],ee=ke[2];return Y(f40,D,ee,[0,[0,i40,tx(ke[1])],0]);case 12:return Lx([0,D,A[1]]);case 13:return zx([0,D,A[1]]);case 14:return Ex([0,D,A[1]]);case 15:return qr([0,D,A[1]]);case 16:return Y(l50,D,A[1],[0,[0,v50,_1],[0,[0,o50,oo],0]]);case 17:return Gx([0,D,A[1]]);case 18:return $0([0,D,A[1]]);case 19:var a1=A[1],Me=a1[2],V1=a1[1],Ft=a1[4],Ue=a1[3];try{var qe=new RegExp(Qx(V1),Qx(Me)),r1=qe}catch{var r1=_1}return Y(a50,D,Ft,[0,[0,s50,r1],[0,[0,c50,Qx(Ue)],[0,[0,f50,Vc([0,[0,i50,Qx(V1)],[0,[0,u50,Qx(Me)],0]])],0]]]);case 20:var T1=A[1];return Ex([0,D,[0,T1[1],T1[5],T1[6]]]);case 21:var Be=A[1],$c=Be[4],Hc=Be[3],Qc=Be[2];switch(Be[1]){case 0:var me=c40;break;case 1:var me=s40;break;default:var me=a40}var Xe=[0,[0,o40,tx(Hc)],0];return Y(p40,D,$c,[0,[0,l40,Qx(me)],[0,[0,v40,tx(Qc)],Xe]]);case 22:var Lt=A[1],Je=Lt[3];return Y(k40,D,Je,O6(Lt));case 23:var E1=A[1],on=E1[3],vn=E1[1],Zc=[0,[0,m40,j0(E1[2])],0];return Y(d40,D,on,[0,[0,h40,j0(vn)],Zc]);case 24:var Ke=A[1],Ye=Ke[4],ln=Ke[3],pn=Ke[2],he=Ke[1];if(ln)var kn=ln[1],Hs=N1(S2(kn[2][2]),Ye),xs=Hs,Qs=Ux(kn);else var xs=Ye,Qs=M2(0);var Ya=[0,[0,g40,Tx(Gs,pn)],[0,[0,y40,Qs],0]];return Y(b40,D,xs,[0,[0,_40,tx(he)],Ya]);case 25:var za=A[1],ev=za[2],tv=[0,[0,w40,jr(Ks,za[1])],0];return Y(T40,D,S2(ev),tv);case 26:var nv=A[1],Zs=nv[1],_3=nv[3],b3=Zs[4],rs=N1(S2(Zs[3][2][2]),b3);return Y(S40,D,rs,Fx(Ka(Zs),[0,[0,E40,!!_3],0]));case 27:var Va=A[1],uv=Va[1],w3=uv[3],es=[0,[0,A40,!!Va[3]],0];return Y(I40,D,w3,Fx(O6(uv),es));case 28:var iv=A[1],fv=iv[2];return Y(P40,D,fv,[0,[0,j40,jr(tx,iv[1])],0]);case 29:return Y(N40,D,A[1][1],0);case 30:var xa=A[1],T3=xa[3],E3=xa[1],S3=[0,[0,b50,M0(xa[2])],0];return Y(T50,D,T3,[0,[0,w50,tx(E3)],S3]);case 31:return M0([0,D,A[1]]);case 32:return Y(O40,D,A[1][1],0);case 33:var mn=A[1],A3=mn[3],I3=mn[1],hn=[0,[0,C40,hx(mn[2])],0];return Y(R40,D,A3,[0,[0,D40,tx(I3)],hn]);case 34:var ts=A[1],j3=ts[3],P3=ts[1],Ga=[0,[0,F40,_r(ts[2][2])],0];return Y(M40,D,j3,[0,[0,L40,tx(P3)],Ga]);case 35:var Wa=A[1],$a=Wa[3],cv=Wa[2],Mt=Wa[1];if(7<=Mt)return Y(q40,D,$a,[0,[0,U40,tx(cv)],0]);switch(Mt){case 0:var de=B40;break;case 1:var de=X40;break;case 2:var de=J40;break;case 3:var de=K40;break;case 4:var de=Y40;break;case 5:var de=z40;break;case 6:var de=V40;break;default:var de=gx(G40)}return Y(Q40,D,$a,[0,[0,H40,Qx(de)],[0,[0,$40,!0],[0,[0,W40,tx(cv)],0]]]);case 36:var te=A[1],pt=te[4],ra=te[3],N3=te[2],ea=te[1]?Z40:xk0;return Y(nk0,D,pt,[0,[0,tk0,Qx(ea)],[0,[0,ek0,tx(N3)],[0,[0,rk0,!!ra],0]]]);default:var ns=A[1],ye=ns[2],sv=[0,[0,uk0,!!ns[3]],0];return Y(fk0,D,ye,[0,[0,ik0,Tx(tx,ns[1])],sv])}}function Mx(X){var A=X[2];return Y(Mk0,X[1],A[2],[0,[0,Lk0,Qx(A[1])],[0,[0,Fk0,_1],[0,[0,Rk0,!1],0]]])}function b2(X,A){var D=A[1][2],u0=D[2],k0=D[1],C0=[0,[0,Uk0,!!A[3]],0];return Y(Xk0,X,u0,[0,[0,Bk0,Qx(k0)],[0,[0,qk0,d3(hx,A[2])],C0]])}function Ux(X){return jr(Go,X[2][1])}function c1(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,Jk0,jr(_x,A[2])],0];return Y(Yk0,k0,D,[0,[0,Kk0,Tx(tx,u0)],C0])}function Rr(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,zk0,Vx(A[2])],0];return Y(Gk0,k0,D,[0,[0,Vk0,Tx(kx,u0)],C0])}function U2(X){return M2(xn(function(A){var D=A[2];return g(0,D[3],A[1],[0,D[1]],D[2][2])},X))}function g(X,A,D,u0,k0){if(u0)var C0=u0[1],nx=C0[0]===0?Tx(j0,[0,C0[1]]):Tx(Ex,[0,C0[1]]),Sx=nx;else var Sx=Tx(j0,0);return Y(S80,D,X,[0,[0,E80,Sx],[0,[0,T80,_r(k0)],[0,[0,w80,!!A],0]]])}function G(X){var A=X[2],D=A[4],u0=A[3],k0=A[2],C0=A[1],nx=X[1];return g(D,u0,nx,eh(function(Sx){return[0,Sx]},C0),k0)}function H(X){return X?R80:F80}function l0(X){if(!X)return M2(0);var A=X[1];if(A[0]===0)return jr(y3,A[1]);var D=A[1],u0=D[2],k0=D[1];return M2(u0?[0,Y(M80,k0,0,[0,[0,L80,j0(u0[1])],0]),0]:0)}function J(X){var A=X[2],D=A[2],u0=X[1];return Y(sm0,u0,D,[0,[0,cm0,tx(A[1])],0])}function s0(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,am0,Tx(cn,A[2])],0];return Y(vm0,u0,0,[0,[0,om0,j0(D)],k0])}function _0(X){switch(X[0]){case 0:var A=X[1],D=A[2],u0=D[6],k0=D[2],C0=D[5],nx=D[4],Sx=D[3],Px=D[1],qx=A[1];switch(k0[0]){case 0:var pr=u0,ur=0,Tr=Ex(k0[1]);break;case 1:var pr=u0,ur=0,Tr=Gx(k0[1]);break;case 2:var pr=u0,ur=0,Tr=$0(k0[1]);break;case 3:var pr=u0,ur=0,Tr=j0(k0[1]);break;case 4:var pr=u0,ur=0,Tr=Mx(k0[1]);break;default:var lr=k0[1][2],tr=lr[1],br=N1(lr[2],u0),pr=br,ur=1,Tr=tx(tr)}switch(Px){case 0:var Br=km0;break;case 1:var Br=mm0;break;case 2:var Br=hm0;break;default:var Br=dm0}var Or=[0,[0,bm0,Qx(Br)],[0,[0,_m0,!!nx],[0,[0,gm0,!!ur],[0,[0,ym0,jr(J,C0)],0]]]];return Y(Em0,qx,pr,[0,[0,Tm0,Tr],[0,[0,wm0,cr(Sx)],Or]]);case 1:var Wr=X[1],Pr=Wr[2],t2=Pr[7],p2=Pr[6],o2=Pr[2],n2=Pr[1],c2=Pr[5],w2=Pr[4],k2=Pr[3],v2=Wr[1];switch(n2[0]){case 0:var sr=t2,Xr=0,Cr=Ex(n2[1]);break;case 1:var sr=t2,Xr=0,Cr=Gx(n2[1]);break;case 2:var sr=t2,Xr=0,Cr=$0(n2[1]);break;case 3:var sr=t2,Xr=0,Cr=j0(n2[1]);break;case 4:var q2=gx(Rm0),sr=q2[3],Xr=q2[2],Cr=q2[1];break;default:var s1=n2[1][2],O1=s1[1],xe=N1(s1[2],t2),sr=xe,Xr=1,Cr=tx(O1)}if(typeof o2=="number")if(o2)var Jr=0,bx=0;else var Jr=1,bx=0;else var Jr=0,bx=[0,o2[1]];var le=Jr?[0,[0,Fm0,!!Jr],0]:0,pe=p2===0?0:[0,[0,Lm0,jr(J,p2)],0],Re=Fx(pe,le),b1=[0,[0,qm0,!!Xr],[0,[0,Um0,!!w2],[0,[0,Mm0,Tx(st,c2)],0]]],$r=[0,[0,Bm0,d3(hx,k2)],b1];return Y(Km0,v2,sr,Fx([0,[0,Jm0,Cr],[0,[0,Xm0,Tx(tx,bx)],$r]],Re));default:var re=X[1],x1=re[2],C1=x1[6],w1=x1[2],lt=x1[7],Rt=x1[5],Fe=x1[4],D1=x1[3],Le=x1[1],ke=re[1];if(typeof w1=="number")if(w1)var ee=0,a1=0;else var ee=1,a1=0;else var ee=0,a1=[0,w1[1]];var Me=ee?[0,[0,Sm0,!!ee],0]:0,V1=C1===0?0:[0,[0,Am0,jr(J,C1)],0],Ft=Fx(V1,Me),Ue=[0,[0,Pm0,!1],[0,[0,jm0,!!Fe],[0,[0,Im0,Tx(st,Rt)],0]]],qe=[0,[0,Nm0,d3(hx,D1)],Ue],r1=[0,[0,Om0,Tx(tx,a1)],qe];return Y(Dm0,ke,lt,Fx([0,[0,Cm0,Mx(Le)],r1],Ft))}}function y0(X){var A=X[2],D=A[3],u0=A[2],k0=A[1],C0=X[1],nx=A[4],Sx=k0[0]===0?j0(k0[1]):Ex(k0[1]);if(D)var Px=[0,[0,Zm0,tx(D[1])],0],qx=Y(rh0,C0,0,[0,[0,xh0,kx(u0)],Px]);else var qx=kx(u0);return Y(uh0,C0,0,[0,[0,nh0,Sx],[0,[0,th0,qx],[0,[0,eh0,!!nx],0]]])}function J0(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[4],C0=u0[1],nx=[0,[0,wh0,!!u0[2]],[0,[0,bh0,!!u0[3]],0]],Sx=[0,[0,Th0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,yh0,qr(Xr[2])],0];return Y(_h0,Jr,0,[0,[0,gh0,j0(Cr)],bx])},C0)],nx];return Y(Eh0,D,S2(k0),Sx);case 1:var Px=A[1],qx=Px[4],lr=Px[1],tr=[0,[0,Ah0,!!Px[2]],[0,[0,Sh0,!!Px[3]],0]],br=[0,[0,Ih0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,mh0,Gx(Xr[2])],0];return Y(dh0,Jr,0,[0,[0,hh0,j0(Cr)],bx])},lr)],tr];return Y(jh0,D,S2(qx),br);case 2:var pr=A[1],ur=pr[1],Tr=pr[4],Br=pr[3],Or=pr[2];if(ur[0]===0)var Wr=ur[1],t2=xn(function(sr){var Xr=sr[1];return Y(kh0,Xr,0,[0,[0,ph0,j0(sr[2][1])],0])},Wr);else var Pr=ur[1],t2=xn(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,oh0,Ex(Xr[2])],0];return Y(lh0,Jr,0,[0,[0,vh0,j0(Cr)],bx])},Pr);var p2=[0,[0,Oh0,M2(t2)],[0,[0,Nh0,!!Or],[0,[0,Ph0,!!Br],0]]];return Y(Ch0,D,S2(Tr),p2);case 3:var o2=A[1],n2=o2[3],c2=o2[1],w2=[0,[0,Dh0,!!o2[2]],0],k2=[0,[0,Rh0,jr(function(sr){var Xr=sr[1];return Y(ah0,Xr,0,[0,[0,sh0,j0(sr[2][1])],0])},c2)],w2];return Y(Fh0,D,S2(n2),k2);default:var v2=A[1],q2=v2[4],s1=v2[1],O1=[0,[0,Mh0,!!v2[2]],[0,[0,Lh0,!!v2[3]],0]],xe=[0,[0,Uh0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,ih0,$0(Xr[2])],0];return Y(ch0,Jr,0,[0,[0,fh0,j0(Cr)],bx])},s1)],O1];return Y(qh0,D,S2(q2),xe)}}function Rx(X){var A=X[2],D=A[1],u0=A[3],k0=A[2],C0=X[1],nx=D[0]===0?j0(D[1]):zs(D[1]);return Y(Hh0,C0,u0,[0,[0,$h0,nx],[0,[0,Wh0,Tx(cn,k0)],0]])}function kx(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[3],C0=u0[1],nx=[0,[0,Qh0,d3(hx,u0[2])],0],Sx=[0,[0,Zh0,jr(un,C0)],nx];return Y(xd0,D,S2(k0),Sx);case 1:var Px=A[1],qx=Px[3],lr=Px[1],tr=[0,[0,rd0,d3(hx,Px[2])],0],br=[0,[0,ed0,jr(Fr,lr)],tr];return Y(td0,D,S2(qx),br);case 2:return b2(D,A[1]);default:return tx(A[1])}}function Jx(X){var A=X[2],D=A[2],u0=A[1],k0=X[1];if(!D)return kx(u0);var C0=[0,[0,nd0,tx(D[1])],0];return Y(id0,k0,0,[0,[0,ud0,kx(u0)],C0])}function gr(X){var A=X[2],D=A[2],u0=X[1];return Y(sd0,u0,D,[0,[0,cd0,uo],[0,[0,fd0,hx(A[1])],0]])}function Zx(X){var A=X[2],D=A[3],u0=A[2],k0=A[1];if(D){var C0=D[1],nx=C0[2],Sx=nx[2],Px=C0[1],qx=Y(od0,Px,Sx,[0,[0,ad0,kx(nx[1])],0]),lr=vx([0,qx,th(Jx,u0)]),tr=k0?[0,gr(k0[1]),lr]:lr;return M2(tr)}var br=xn(Jx,u0),pr=k0?[0,gr(k0[1]),br]:br;return M2(pr)}function er(X,A){var D=A[2];return Y(ld0,X,D,[0,[0,vd0,kx(A[1])],0])}function Fr(X){switch(X[0]){case 0:var A=X[1],D=A[2],u0=D[2],k0=D[1],C0=A[1];if(!u0)return kx(k0);var nx=[0,[0,pd0,tx(u0[1])],0];return Y(md0,C0,0,[0,[0,kd0,kx(k0)],nx]);case 1:var Sx=X[1];return er(Sx[1],Sx[2]);default:return _1}}function hx(X){var A=X[1];return Y(Ig0,A,0,[0,[0,Ag0,_r(X[2])],0])}function z1(X){switch(X[0]){case 0:return _1;case 1:return hx(X[1]);default:var A=X[1],D=A[2],u0=A[1];return Y(Pg0,u0,0,[0,[0,jg0,Da([0,D[1],D[2]])],0])}}function Ks(X){if(X[0]===0){var A=X[1],D=A[2],u0=A[1];switch(D[0]){case 0:var k0=D[3],C0=D[1],ur=0,Tr=k0,Br=0,Or=hd0,Wr=tx(D[2]),Pr=C0;break;case 1:var nx=D[2],Sx=D[1],ur=0,Tr=0,Br=1,Or=dd0,Wr=cr([0,nx[1],nx[2]]),Pr=Sx;break;case 2:var Px=D[2],qx=D[3],lr=D[1],ur=qx,Tr=0,Br=0,Or=yd0,Wr=cr([0,Px[1],Px[2]]),Pr=lr;break;default:var tr=D[2],br=D[3],pr=D[1],ur=br,Tr=0,Br=0,Or=gd0,Wr=cr([0,tr[1],tr[2]]),Pr=pr}switch(Pr[0]){case 0:var c2=ur,w2=0,k2=Ex(Pr[1]);break;case 1:var c2=ur,w2=0,k2=Gx(Pr[1]);break;case 2:var c2=ur,w2=0,k2=$0(Pr[1]);break;case 3:var c2=ur,w2=0,k2=j0(Pr[1]);break;case 4:var t2=gx(_d0),c2=t2[3],w2=t2[2],k2=t2[1];break;default:var p2=Pr[1][2],o2=p2[1],n2=N1(p2[2],ur),c2=n2,w2=1,k2=tx(o2)}return Y(Id0,u0,c2,[0,[0,Ad0,k2],[0,[0,Sd0,Wr],[0,[0,Ed0,Qx(Or)],[0,[0,Td0,!!Br],[0,[0,wd0,!!Tr],[0,[0,bd0,!!w2],0]]]]]])}var v2=X[1],q2=v2[2],s1=q2[2],O1=v2[1];return Y(Pd0,O1,s1,[0,[0,jd0,tx(q2[1])],0])}function un(X){if(X[0]!==0){var A=X[1];return er(A[1],A[2])}var D=X[1],u0=D[2],k0=u0[3],C0=u0[2],nx=u0[1],Sx=u0[4],Px=D[1];switch(nx[0]){case 0:var tr=0,br=0,pr=Ex(nx[1]);break;case 1:var tr=0,br=0,pr=Gx(nx[1]);break;case 2:var tr=0,br=0,pr=$0(nx[1]);break;case 3:var tr=0,br=0,pr=j0(nx[1]);break;default:var qx=nx[1][2],lr=qx[2],tr=lr,br=1,pr=tx(qx[1])}if(k0)var ur=k0[1],Tr=Zr(C0[1],ur[1]),Br=[0,[0,Nd0,tx(ur)],0],Or=Y(Cd0,Tr,0,[0,[0,Od0,kx(C0)],Br]);else var Or=kx(C0);return Y(qd0,Px,tr,[0,[0,Ud0,pr],[0,[0,Md0,Or],[0,[0,Ld0,$7],[0,[0,Fd0,!1],[0,[0,Rd0,!!Sx],[0,[0,Dd0,!!br],0]]]]]])}function fn(X){var A=X[2],D=A[2],u0=X[1];return Y(Xd0,u0,D,[0,[0,Bd0,tx(A[1])],0])}function Go(X){return X[0]===0?tx(X[1]):fn(X[1])}function Wo(X){switch(X[0]){case 0:return tx(X[1]);case 1:return fn(X[1]);default:return _1}}function $o(X){var A=X[2],D=A[1],u0=A[2],k0=X[1];return Y(_50,k0,0,[0,[0,g50,Vc([0,[0,d50,Qx(D[1])],[0,[0,h50,Qx(D[2])],0]])],[0,[0,y50,!!u0],0]])}function Na(X){switch(X){case 0:return E50;case 1:return S50;default:return A50}}function Ho(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,N50,Tx(tx,A[2])],0];return Y(C50,u0,0,[0,[0,O50,kx(D)],k0])}function st(X){var A=X[2],D=A[2],u0=X[1];switch(A[1]){case 0:var k0=D50;break;case 1:var k0=R50;break;case 2:var k0=F50;break;case 3:var k0=L50;break;case 4:var k0=M50;break;default:var k0=U50}return Y(B50,u0,D,[0,[0,q50,Qx(k0)],0])}function Ys(X,A,D,u0){return Y(Z90,X,A,[0,[0,Q90,Qx(D)],[0,[0,H90,_r(u0)],0]])}function Oa(X,A){var D=A[3],u0=A[2];switch(A[4]){case 0:var k0=G90;break;case 1:var k0=W90;break;default:var k0=$90}return Ys(X,D,k0,u0)}function Ca(X){var A=X[2],D=A[1],u0=A[3],k0=A[2],C0=X[1],nx=D[0]===0?j0(D[1]):zs(D[1]);return Y(P90,C0,u0,[0,[0,j90,nx],[0,[0,I90,Tx(cn,k0)],0]])}function at(X,A){var D=A[2],u0=D[4],k0=D[3],C0=D[2],nx=D[1],Sx=A[1],Px=u1(function(Or,Wr){var Pr=Or[4],t2=Or[3],p2=Or[2],o2=Or[1];switch(Wr[0]){case 0:var n2=Wr[1],c2=n2[2],w2=c2[2],k2=c2[1],v2=c2[8],q2=c2[7],s1=c2[6],O1=c2[5],xe=c2[4],sr=c2[3],Xr=n2[1];switch(k2[0]){case 0:var Cr=Ex(k2[1]);break;case 1:var Cr=Gx(k2[1]);break;case 2:var Cr=$0(k2[1]);break;case 3:var Cr=j0(k2[1]);break;case 4:var Cr=gx(Py0);break;default:var Cr=gx(Ny0)}switch(w2[0]){case 0:var le=Oy0,pe=_r(w2[1]);break;case 1:var Jr=w2[1],le=Cy0,pe=Gc([0,Jr[1],Jr[2]]);break;default:var bx=w2[1],le=Dy0,pe=Gc([0,bx[1],bx[2]])}return[0,[0,Y(Jy0,Xr,v2,[0,[0,Xy0,Cr],[0,[0,By0,pe],[0,[0,qy0,!!s1],[0,[0,Uy0,!!sr],[0,[0,My0,!!xe],[0,[0,Ly0,!!O1],[0,[0,Fy0,Tx(st,q2)],[0,[0,Ry0,Qx(le)],0]]]]]]]]),o2],p2,t2,Pr];case 1:var Re=Wr[1],b1=Re[2],$r=b1[2],re=Re[1];return[0,[0,Y(Yy0,re,$r,[0,[0,Ky0,_r(b1[1])],0]),o2],p2,t2,Pr];case 2:var x1=Wr[1],C1=x1[2],w1=C1[6],lt=C1[4],Rt=C1[3],Fe=C1[2],D1=C1[1],Le=x1[1],ke=[0,[0,Vy0,!!lt],[0,[0,zy0,Tx(st,C1[5])],0]],ee=[0,[0,Gy0,_r(Rt)],ke],a1=[0,[0,Wy0,_r(Fe)],ee];return[0,o2,[0,Y(Hy0,Le,w1,[0,[0,$y0,Tx(j0,D1)],a1]),p2],t2,Pr];case 3:var Me=Wr[1],V1=Me[2],Ft=V1[3],Ue=Me[1],qe=[0,[0,Qy0,!!V1[2]],0];return[0,o2,p2,[0,Y(x90,Ue,Ft,[0,[0,Zy0,Gc(V1[1])],qe]),t2],Pr];case 4:var r1=Wr[1],T1=r1[2],Be=T1[6],$c=T1[5],Hc=T1[4],Qc=T1[3],me=T1[1],Xe=r1[1],Lt=[0,[0,a90,!!Qc],[0,[0,s90,!!Hc],[0,[0,c90,!!$c],[0,[0,f90,_r(T1[2])],0]]]];return[0,o2,p2,t2,[0,Y(v90,Xe,Be,[0,[0,o90,j0(me)],Lt]),Pr]];default:var Je=Wr[1],E1=Je[2],on=E1[6],vn=E1[4],Zc=E1[3],Ke=E1[2],Ye=E1[1],ln=Je[1],pn=0;switch(E1[5]){case 0:var he="PlusOptional";break;case 1:var he="MinusOptional";break;case 2:var he="Optional";break;default:var he=_1}var kn=[0,[0,e90,Tx(st,vn)],[0,[0,r90,he],pn]],Hs=[0,[0,t90,_r(Zc)],kn],xs=[0,[0,n90,_r(Ke)],Hs];return[0,[0,Y(i90,ln,on,[0,[0,u90,Wc(Ye)],xs]),o2],p2,t2,Pr]}},by0,k0),qx=Px[3],lr=Px[2],tr=Px[1],br=[0,[0,wy0,M2(vx(Px[4]))],0],pr=[0,[0,Ty0,M2(vx(qx))],br],ur=[0,[0,Ey0,M2(vx(lr))],pr],Tr=[0,[0,Ay0,!!nx],[0,[0,Sy0,M2(vx(tr))],ur]],Br=X?[0,[0,Iy0,!!C0],Tr]:Tr;return Y(jy0,Sx,S2(u0),Br)}function Gc(X){var A=X[2],D=A[5],u0=A[3],k0=A[2][2],C0=A[4],nx=k0[3],Sx=k0[2],Px=k0[1],qx=A[1],lr=X[1],tr=N1(S2(k0[4]),C0),br=D===0?fy0:cy0,pr=D===0?0:[0,[0,sy0,Tx(Fa,Px)],0],ur=[0,[0,ay0,Tx(K2,qx)],0],Tr=[0,[0,oy0,Tx(Qo,nx)],ur],Br=u0[0]===0?_r(u0[1]):Da(u0[1]),Or=[0,[0,vy0,Br],Tr];return Y(br,lr,tr,Fx([0,[0,ly0,jr(function(Wr){return Ra(0,Wr)},Sx)],Or],pr))}function _r(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Y(X50,D,A[1],0);case 1:return Y(J50,D,A[1],0);case 2:return Y(K50,D,A[1],0);case 3:return Y(Y50,D,A[1],0);case 4:return Y(z50,D,A[1],0);case 5:return Y(G50,D,A[1],0);case 6:return Y(W50,D,A[1],0);case 7:return Y($50,D,A[1],0);case 8:return Y(H50,D,A[2],0);case 9:return Y(V50,D,A[1],0);case 10:return Y(Sg0,D,A[1],0);case 11:var u0=A[1],k0=u0[2];return Y(Z50,D,k0,[0,[0,Q50,_r(u0[1])],0]);case 12:return Gc([0,D,A[1]]);case 13:var C0=A[1],nx=C0[2],Sx=C0[4],Px=C0[3],qx=C0[1],lr=N1(S2(nx[2][3]),Sx),tr=nx[2],br=tr[2],pr=tr[1],ur=[0,[0,d80,Tx(K2,qx)],0],Tr=[0,[0,y80,ot(Px)],ur],Br=[0,[0,g80,Tx(G,br)],Tr];return Y(b80,D,lr,[0,[0,_80,U2(pr)],Br]);case 14:return at(1,[0,D,A[1]]);case 15:var Or=A[1],Wr=Or[3],Pr=Or[2],t2=[0,[0,l90,at(0,Or[1])],0];return Y(k90,D,Wr,[0,[0,p90,jr(Rx,Pr)],t2]);case 16:var p2=A[1],o2=p2[2];return Y(h90,D,o2,[0,[0,m90,_r(p2[1])],0]);case 17:var n2=A[1],c2=n2[5],w2=n2[3],k2=n2[2],v2=n2[1],q2=[0,[0,d90,_r(n2[4])],0],s1=[0,[0,y90,_r(w2)],q2],O1=[0,[0,g90,_r(k2)],s1];return Y(b90,D,c2,[0,[0,_90,_r(v2)],O1]);case 18:var xe=A[1],sr=xe[2];return Y(T90,D,sr,[0,[0,w90,Wc(xe[1])],0]);case 19:return Ca([0,D,A[1]]);case 20:var Xr=A[1],Cr=Xr[3];return Y(C90,D,Cr,La(Xr));case 21:var Jr=A[1],bx=Jr[1],le=bx[3],pe=[0,[0,D90,!!Jr[2]],0];return Y(R90,D,le,Fx(La(bx),pe));case 22:var Re=A[1],b1=Re[1],$r=Re[2];return Y(L90,D,$r,[0,[0,F90,jr(_r,[0,b1[1],[0,b1[2],b1[3]]])],0]);case 23:var re=A[1],x1=re[1],C1=re[2];return Y(U90,D,C1,[0,[0,M90,jr(_r,[0,x1[1],[0,x1[2],x1[3]]])],0]);case 24:var w1=A[1],lt=w1[2],Rt=w1[3],Fe=w1[1],D1=lt?[0,[0,q90,cn(lt[1])],0]:0;return Y(X90,D,Rt,[0,[0,B90,Vs(Fe)],D1]);case 25:var Le=A[1],ke=Le[2];return Y(V90,D,ke,[0,[0,z90,_r(Le[1])],0]);case 26:return Oa(D,A[1]);case 27:var ee=A[1];return Ys(D,ee[2],xg0,ee[1]);case 28:var a1=A[1],Me=a1[3],V1=a1[1],Ft=[0,[0,rg0,!!a1[2]],0];return Y(tg0,D,Me,[0,[0,eg0,jr(function(me){var Xe=me[2],Lt=me[1];switch(Xe[0]){case 0:return _r(Xe[1]);case 1:var Je=Xe[1],E1=Je[2],on=Je[1],vn=[0,[0,ng0,!!Je[4]],0],Zc=[0,[0,ug0,Tx(st,Je[3])],vn],Ke=[0,[0,ig0,_r(E1)],Zc];return Y(cg0,Lt,0,[0,[0,fg0,j0(on)],Ke]);default:var Ye=Xe[1],ln=Ye[1],pn=[0,[0,sg0,_r(Ye[2])],0];return Y(og0,Lt,0,[0,[0,ag0,Tx(j0,ln)],pn])}},V1)],Ft]);case 29:var Ue=A[1];return Y(pg0,D,Ue[3],[0,[0,lg0,Qx(Ue[1])],[0,[0,vg0,Qx(Ue[2])],0]]);case 30:var qe=A[1];return Y(hg0,D,qe[3],[0,[0,mg0,qe[1]],[0,[0,kg0,Qx(qe[2])],0]]);case 31:var r1=A[1];return Y(gg0,D,r1[3],[0,[0,yg0,_1],[0,[0,dg0,Qx(r1[2])],0]]);case 32:var T1=A[1],Be=T1[1],$c=T1[2],Hc=0,Qc=Be?_g0:bg0;return Y(Eg0,D,$c,[0,[0,Tg0,!!Be],[0,[0,wg0,Qx(Qc)],Hc]]);case 33:return Y(xy0,D,A[1],0);case 34:return Y(ry0,D,A[1],0);default:return Y(ey0,D,A[1],0)}}function Da(X){var A=X[2],D=A[2],u0=A[3],k0=D[2],C0=D[1],nx=X[1];switch(A[1]){case 0:var Sx=_1;break;case 1:var Sx=hv;break;default:var Sx=ov}var Px=[0,[0,ny0,Tx(_r,k0)],[0,[0,ty0,Sx],0]],qx=[0,[0,uy0,j0(C0)],Px];return Y(iy0,nx,S2(u0),qx)}function Ra(X,A){var D=A[2],u0=D[1],k0=A[1],C0=[0,[0,py0,!!D[3]],0],nx=[0,[0,ky0,_r(D[2])],C0];return Y(hy0,k0,X,[0,[0,my0,Tx(j0,u0)],nx])}function Qo(X){var A=X[2];return Ra(A[2],A[1])}function Fa(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,yy0,_r(A[1][2])],[0,[0,dy0,!1],0]];return Y(_y0,u0,D,[0,[0,gy0,Tx(j0,0)],k0])}function zs(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D[0]===0?j0(D[1]):zs(D[1]);return Y(A90,k0,0,[0,[0,S90,C0],[0,[0,E90,j0(u0)],0]])}function La(X){var A=X[1],D=[0,[0,N90,_r(X[2])],0];return[0,[0,O90,_r(A)],D]}function Vs(X){if(X[0]===0)return j0(X[1]);var A=X[1],D=A[2],u0=D[2],k0=A[1],C0=Vs(D[1]);return Y(Y90,k0,0,[0,[0,K90,C0],[0,[0,J90,j0(u0)],0]])}function ot(X){return X[0]===0?_1:Oa(X[1],X[2])}function K2(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Ng0,jr(Wc,A[1])],0];return Y(Og0,u0,S2(D),k0)}function Wc(X){var A=X[2],D=A[1][2],u0=A[5],k0=A[4],C0=A[2],nx=D[2],Sx=D[1],Px=X[1],qx=A[3]?[0,[0,Cg0,!0],0]:0,lr=[0,[0,Dg0,Tx(_r,u0)],0],tr=[0,[0,Rg0,Tx(st,k0)],lr];return Y(Mg0,Px,nx,Fx([0,[0,Lg0,Qx(Sx)],[0,[0,Fg0,d3(hx,C0)],tr]],qx))}function cn(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Ug0,jr(_r,A[1])],0];return Y(qg0,u0,S2(D),k0)}function Gs(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Bg0,jr(Ma,A[1])],0];return Y(Xg0,u0,S2(D),k0)}function Ma(X){if(X[0]===0)return _r(X[1]);var A=X[1],D=A[1],u0=A[2][1];return Ca([0,D,[0,[0,rn(0,[0,D,Jg0])],0,u0]])}function Ws(X){if(X[0]===0){var A=X[1],D=A[2],u0=D[1],k0=D[2],C0=A[1],nx=u0[0]===0?vt(u0[1]):Xa(u0[1]);return Y(s_0,C0,0,[0,[0,c_0,nx],[0,[0,f_0,Tx(xv,k0)],0]])}var Sx=X[1],Px=Sx[2],qx=Px[2],lr=Sx[1];return Y(o_0,lr,qx,[0,[0,a_0,tx(Px[1])],0])}function Ua(X){var A=X[1];return Y(u_0,A,0,[0,[0,n_0,Zo(X[2][1])],0])}function qa(X){var A=X[2],D=A[1],u0=X[1],k0=A[2],C0=D?tx(D[1]):Y(v_0,[0,u0[1],[0,u0[2][1],u0[2][2]+1|0],[0,u0[3][1],u0[3][2]-1|0]],0,0);return Y(p_0,u0,S2(k0),[0,[0,l_0,C0],0])}function Ba(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Lx([0,D,A[1]]);case 1:return zx([0,D,A[1]]);case 2:return qa([0,D,A[1]]);case 3:var u0=A[1],k0=u0[2];return Y(m_0,D,k0,[0,[0,k_0,tx(u0[1])],0]);default:var C0=A[1];return Y(y_0,D,0,[0,[0,d_0,Qx(C0[1])],[0,[0,h_0,Qx(C0[2])],0]])}}function vt(X){var A=X[2];return Y(A_0,X[1],A[2],[0,[0,S_0,Qx(A[1])],0])}function Xa(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,w_0,vt(A[2])],0];return Y(E_0,u0,0,[0,[0,T_0,vt(D)],k0])}function Ja(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D[0]===0?vt(D[1]):Ja(D[1]);return Y(b_0,k0,0,[0,[0,__0,C0],[0,[0,g_0,vt(u0)],0]])}function Zo(X){switch(X[0]){case 0:return vt(X[1]);case 1:return Xa(X[1]);default:return Ja(X[1])}}function xv(X){if(X[0]===0){var A=X[1];return Ex([0,A[1],A[2]])}var D=X[1];return qa([0,D[1],D[2]])}function y3(X){var A=X[2],D=A[2],u0=A[1],k0=X[1],C0=j0(D?D[1]:u0);return Y(P_0,k0,0,[0,[0,j_0,j0(u0)],[0,[0,I_0,C0],0]])}function sn(X){return jr(rv,X)}function rv(X){var A=X[2],D=X[1];if(A[1])var u0=A[2],k0=U_0;else var u0=A[2],k0=q_0;return Y(k0,D,0,[0,[0,B_0,Qx(u0)],0])}function an(X){var A=X[2],D=A[1],u0=A[2],k0=X[1];if(D)var C0=[0,[0,X_0,tx(D[1])],0],nx=J_0;else var C0=0,nx=K_0;return Y(nx,k0,u0,C0)}function Ka(X){var A=X[2],D=X[1],u0=[0,[0,Y_0,Ux(X[3])],0],k0=[0,[0,z_0,Tx(Gs,A)],u0];return[0,[0,V_0,tx(D)],k0]}function O6(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=0,k0=j0(A[1]);break;case 1:var u0=0,k0=Mx(A[1]);break;default:var u0=1,k0=tx(A[1])}return[0,[0,$_0,tx(D)],[0,[0,W_0,k0],[0,[0,G_0,!!u0],0]]]}var $s=Hx[2],C6=$s[2],D6=$s[4],Xd=$s[3],Jd=Hx[1],Kd=jx($s[1]),R6=[0,[0,Vl0,Kd],[0,[0,zl0,sn(D6)],0]];if(C6)var F6=C6[1],L6=Fx(R6,[0,[0,$l0,Y(Wl0,F6[1],0,[0,[0,Gl0,Qx(F6[2])],0])],0]);else var L6=R6;var g3=Y(Hl0,Jd,Xd,L6),Yd=Fx(g0,OK[1]);if(g3.errors=jr(function(X){var A=X[1],D=[0,[0,H_0,Qx($b0(X[2]))],0];return Vc([0,[0,Q_0,DK(A)],D])},Yd),y){var zd=P[1];g3[dR]=M2(th(function(X){var A=X[2],D=X[1],u0=X[3],k0=[0,[0,ao0,Qx($N(A))],0],C0=[0,ud(Z0,D[3]),0],nx=[0,[0,oo0,M2([0,ud(Z0,D[2]),C0])],k0],Sx=[0,[0,po0,Vc([0,[0,lo0,D[3][1]],[0,[0,vo0,D[3][2]],0]])],0],Px=[0,[0,do0,Vc([0,[0,ho0,Vc([0,[0,mo0,D[2][1]],[0,[0,ko0,D[2][2]],0]])],Sx])],nx];switch(u0){case 0:var qx=yo0;break;case 1:var qx=go0;break;case 2:var qx=_o0;break;case 3:var qx=bo0;break;case 4:var qx=wo0;break;default:var qx=To0}return Vc([0,[0,So0,Qx(TB(A))],[0,[0,Eo0,Qx(qx)],Px]])},zd))}return g3}if(typeof AD<"u")var RK=AD;else{var FK={};Js.flow=FK;var RK=FK}RK.parse=FY(function(x,r){try{var e=CT0(x,r);return e}catch(u){var t=O2(u);return t[1]===OC?NK(t[2]):NK(new NT0(Qx(Bx(pb0,sh(t)))))}}),iN(R)})(globalThis)});var DD={};LK(DD,{parsers:()=>CD});var CD={};LK(CD,{flow:()=>gj0});var eY=VI0(MK(),1);function GI0(a0,ox){let $x=new SyntaxError(a0+" ("+ox.loc.start.line+":"+ox.loc.start.column+")");return Object.assign($x,ox)}var UK=GI0;var WI0=(a0,ox,$x)=>{if(!(a0&&ox==null))return Array.isArray(ox)||typeof ox=="string"?ox[$x<0?ox.length+$x:$x]:ox.at($x)},ID=WI0;function $I0(a0){return Array.isArray(a0)&&a0.length>0}var qK=$I0;function mt(a0){var dr,nr,Er;let ox=((dr=a0.range)==null?void 0:dr[0])??a0.start,$x=(Er=((nr=a0.declaration)==null?void 0:nr.decorators)??a0.decorators)==null?void 0:Er[0];return $x?Math.min(mt($x),ox):ox}function cs(a0){var ox;return((ox=a0.range)==null?void 0:ox[1])??a0.end}function HI0(a0){let ox=new Set(a0);return $x=>ox.has($x==null?void 0:$x.type)}var BK=HI0;var QI0=BK(["Block","CommentBlock","MultiLine"]),Rp=QI0;function ZI0(a0){let ox=`*${a0.value}*`.split(` -`);return ox.length>1&&ox.every($x=>$x.trimStart()[0]==="*")}var jD=ZI0;function xj0(a0){return Rp(a0)&&a0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a0.value)}var XK=xj0;var Fp=null;function Lp(a0){if(Fp!==null&&typeof Fp.property){let ox=Fp;return Fp=Lp.prototype=null,ox}return Fp=Lp.prototype=a0??Object.create(null),new Lp}var rj0=10;for(let a0=0;a0<=rj0;a0++)Lp();function PD(a0){return Lp(a0)}function ej0(a0,ox="type"){PD(a0);function $x(dr){let nr=dr[ox],Er=a0[nr];if(!Array.isArray(Er))throw Object.assign(new Error(`Missing visitor keys for '${nr}'.`),{node:dr});return Er}return $x}var JK=ej0;var KK={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var tj0=JK(KK),YK=tj0;function ND(a0,ox){if(!(a0!==null&&typeof a0=="object"))return a0;if(Array.isArray(a0)){for(let dr=0;dr{var Mr;(Mr=Er.leadingComments)!=null&&Mr.some(XK)&&nr.add(mt(Er))}),a0=l5(a0,Er=>{if(Er.type==="ParenthesizedExpression"){let{expression:Mr}=Er;if(Mr.type==="TypeCastExpression")return Mr.range=[...Er.range],Mr;let Qe=mt(Er);if(!nr.has(Qe))return Mr.extra={...Mr.extra,parenthesized:!0},Mr}})}if(a0=l5(a0,nr=>{var Er;switch(nr.type){case"LogicalExpression":if(zK(nr))return OD(nr);break;case"VariableDeclaration":{let Mr=ID(!1,nr.declarations,-1);Mr!=null&&Mr.init&&dr[cs(Mr)]!==";"&&(nr.range=[mt(nr),cs(Mr)]);break}case"TSParenthesizedType":return nr.typeAnnotation;case"TSTypeParameter":if(typeof nr.name=="string"){let Mr=mt(nr);nr.name={type:"Identifier",name:nr.name,range:[Mr,Mr+nr.name.length]}}break;case"TopicReference":a0.extra={...a0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if($x==="meriyah"&&((Er=nr.exported)==null?void 0:Er.type)==="Identifier"){let{exported:Mr}=nr,Qe=dr.slice(mt(Mr),cs(Mr));(Qe.startsWith('"')||Qe.startsWith("'"))&&(nr.exported={...nr.exported,type:"Literal",value:nr.exported.name,raw:Qe})}break;case"TSUnionType":case"TSIntersectionType":if(nr.types.length===1)return nr.types[0];break}}),qK(a0.comments)){let nr=ID(!1,a0.comments,-1);for(let Er=a0.comments.length-2;Er>=0;Er--){let Mr=a0.comments[Er];cs(Mr)===mt(nr)&&Rp(Mr)&&Rp(nr)&&jD(Mr)&&jD(nr)&&(a0.comments.splice(Er+1,1),Mr.value+="*//*"+nr.value,Mr.range=[mt(Mr),cs(nr)]),nr=Mr}}return a0.type==="Program"&&(a0.range=[0,dr.length]),a0}function zK(a0){return a0.type==="LogicalExpression"&&a0.right.type==="LogicalExpression"&&a0.operator===a0.right.operator}function OD(a0){return zK(a0)?OD({type:"LogicalExpression",operator:a0.operator,left:OD({type:"LogicalExpression",operator:a0.operator,left:a0.left,right:a0.right.left,range:[mt(a0.left),cs(a0.right.left)]}),right:a0.right.right,range:[mt(a0),cs(a0)]}):a0}var VK=nj0;var uj0=(a0,ox,$x,dr)=>{if(!(a0&&ox==null))return ox.replaceAll?ox.replaceAll($x,dr):$x.global?ox.replace($x,dr):ox.split($x).join(dr)},L3=uj0;var ij0=/\*\/$/,fj0=/^\/\*\*?/,cj0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,sj0=/(^|\s+)\/\/([^\n\r]*)/g,GK=/^(\r?\n)+/,aj0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,WK=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,oj0=/(\r?\n|^) *\* ?/g,vj0=[];function $K(a0){let ox=a0.match(cj0);return ox?ox[0].trimStart():""}function HK(a0){let ox=` -`;a0=L3(!1,a0.replace(fj0,"").replace(ij0,""),oj0,"$1");let $x="";for(;$x!==a0;)$x=a0,a0=L3(!1,a0,aj0,`${ox}$1 $2${ox}`);a0=a0.replace(GK,"").trimEnd();let dr=Object.create(null),nr=L3(!1,a0,WK,"").replace(GK,"").trimEnd(),Er;for(;Er=WK.exec(a0);){let Mr=L3(!1,Er[2],sj0,"");if(typeof dr[Er[1]]=="string"||Array.isArray(dr[Er[1]])){let Qe=dr[Er[1]];dr[Er[1]]=[...vj0,...Array.isArray(Qe)?Qe:[Qe],Mr]}else dr[Er[1]]=Mr}return{comments:nr,pragmas:dr}}function lj0(a0){if(!a0.startsWith("#!"))return"";let ox=a0.indexOf(` -`);return ox===-1?a0:a0.slice(0,ox)}var QK=lj0;function pj0(a0){let ox=QK(a0);ox&&(a0=a0.slice(ox.length+1));let $x=$K(a0),{pragmas:dr,comments:nr}=HK($x);return{shebang:ox,text:a0,pragmas:dr,comments:nr}}function ZK(a0){let{pragmas:ox}=pj0(a0);return Object.prototype.hasOwnProperty.call(ox,"prettier")||Object.prototype.hasOwnProperty.call(ox,"format")}function kj0(a0){return a0=typeof a0=="function"?{parse:a0}:a0,{astFormat:"estree",hasPragma:ZK,locStart:mt,locEnd:cs,...a0}}var xY=kj0;function mj0(a0){return a0.charAt(0)==="#"&&a0.charAt(1)==="!"?"//"+a0.slice(2):a0}var rY=mj0;var hj0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function dj0(a0){let{message:ox,loc:{start:$x,end:dr}}=a0;return UK(ox,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:dr.line,column:dr.column+1}},cause:a0})}function yj0(a0){let ox=eY.default.parse(rY(a0),hj0),[$x]=ox.errors;if($x)throw dj0($x);return VK(ox,{text:a0})}var gj0=xY(yj0);var bP0=DD;export{bP0 as default,CD as parsers}; + -- too many open files. Try running with OCAMLRUNPARAM=b=2)`].slice(),YW=[0,[11,KE,[2,0,[12,10,0]]],qR],zW=[0],KW="Fatal error: out of memory in uncaught exception handler",JW=[0,[11,KE,[2,0,[12,10,0]]],qR],GW=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s +`];YN(qO,function(x,r){try{try{var e=r?zW:dM(0);try{VN(O)}catch{}try{var t=B6(x);d(oj(YW),t),pj(pn,e);var u=lK(0);if(u<0){var i=i5(u);BM(N2(XW,i)[1+i])}var c=an(pn),v=c}catch(b){var a=U2(b),l=B6(x);d(oj(JW),l),pj(pn,e);var m=B6(a);d(oj(GW),m),pj(pn,dM(0));var v=an(pn)}var h=v}catch(b){var T=U2(b);if(T!==JN)throw W0(T,0);var h=BM(KW)}return h}catch{return 0}});var WW=[n2,"Stdlib.Fun.Finally_raised",as(0)],VW="Fun.Finally_raised: ";kj(function(x){return x[1]===WW?[0,qx(VW,B6(x[2]))]:0});var $W="Digest.BLAKE2: wrong hash size";function mj(x){var r=x[1]<1?1:0,e=r||(64i0){var a0=s0;continue}var d0=i0}else var d0=g0;var w0=d0;break}else var w0=$;var M0=w0-$|0;return 0<=M0?H3(x,[0,aV,M0+t0|0,sV]):dv(x,[0,vV,w0+H|0,oV],x[6]);case 3:var C0=e[2],D0=e[1];if(x[8]<(x[6]-x[9]|0)){var I0=V3(x[2]);if(I0){var j0=I0[1],y0=j0[2],Y0=j0[1];x[9]=Y0-1>>>0&&wq(x,y0)}else m5(x)}var L=x[9]-D0|0,N0=C0===1?1:x[9]=x[14]);)Aq(x,O);return x[13]=yq,_q(x),r&&m5(x),x[12]=1,x[13]=1,ZN(x[28]),yj(x[1]),L6(x[2]),L6(x[3]),L6(x[4]),L6(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Sq(x,0,3)}function wj(x,r,e){var t=x[14]=e)return H0(x[17],jq,0,e);H0(x[17],jq,0,80);var e=e-80|0}}function EV(x){return x[1]===hj?qx(dV,qx(x[2],hV)):yV}function SV(x){return x[1]===hj?qx(wV,qx(x[2],gV)):_V}function AV(x){return 0}function PV(x){return 0}function bj(x,r,e,t,u){var i=eq(O),c=[0,dq,bV,0];xj(c,i);var v=R6(O);yj(v),mv([0,1,c],v);var a=78,l=R6(O),m=R6(O),h=R6(O);return[0,v,R6(O),h,m,l,a,10,68,a,0,1,1,1,1,mV,TV,x,r,e,t,u,0,0,EV,SV,AV,PV,i]}function Cq(x,r){var e=bj(x,r,function(t){return 0},function(t){return 0},function(t){return 0});return e[19]=function(t){return _j(e,O)},e[20]=function(t){return Z3(e,t)},e[21]=function(t){return Z3(e,t)},e}function Oq(x){return Cq(function(r,e,t){return UM(x,r,e,t)},function(r){return an(x)})}function Tj(x){return Cq(function(r,e,t){return ej(x,r,e,t)},function(r){return 0})}var Ej=ZP;function Dq(x){return $r(Ej)}var Fq=Dq(O),IV=Oq(qM),NV=Oq(pn),jV=Tj(Fq),Rq=ls(0,Dq);M6(Rq,Fq),M6(ls(0,function(x){return Tj(hv(Rq))}),jV);function Lq(x,r,e,t){return ej(hv(x),r,e,t)}function Mq(x,r,e){var t=hv(r),u=t[2];return UM(x,G2(t),0,u),an(x),t[2]=0,0}var qq=ls(0,function(x){return $r(Ej)}),Uq=ls(0,function(x){return $r(Ej)}),Bq=ls(0,function(x){var r=bj(function(e,t,u){return Lq(qq,e,t,u)},function(e){return Mq(qM,qq,O)},function(e){return 0},function(e){return 0},function(e){return 0});return r[19]=function(e){return _j(r,O)},r[20]=function(e){return Z3(r,e)},r[21]=function(e){return Z3(r,e)},iq(function(e){return yv(r,O)}),r});M6(Bq,IV);var Xq=ls(0,function(x){var r=bj(function(e,t,u){return Lq(Uq,e,t,u)},function(e){return Mq(pn,Uq,O)},function(e){return 0},function(e){return 0},function(e){return 0});return r[19]=function(e){return _j(r,O)},r[20]=function(e){return Z3(r,e)},r[21]=function(e){return Z3(r,e)},iq(function(e){return yv(r,O)}),r});M6(Xq,NV);var CV="Buffer.sub",OV=[0,0,4],DV=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],FV=Z0,RV=Z0,LV=Z0,MV=Z0;function Yq(x,r){var e=$r(16),t=Tj(e);x(t,r),yv(t,O);var u=e[2];if(2>u)return G2(e);var i=u-2|0,c=1;return 0<=i&&(e[2]-i|0)>=1?G3(e[1][1],c,i):R1(CV)}function kt(x,r){if(typeof r!="number"){x:{r:{e:{switch(r[0]){case 0:var e=r[2];if(kt(x,r[1]),typeof e=="number")switch(e){case 0:return Aq(x,O);case 1:return Pq(x,O);case 2:return yv(x,O);case 3:var t=x[14]>>0)break;var $=$+1|0}break t}var H=T1(F,n0,$-n0|0),t0=K($);t:n:{for(var c0=t0;;){if(c0===z)break n;var r0=q2(F,c0);if(48<=r0){if(58<=r0)break}else if(r0!==45)break;var c0=c0+1|0}break t}if(t0===c0)var v0=0;else try{var a0=vt(T1(F,t0,c0-t0|0)),v0=a0}catch(sx){var g0=U2(sx);if(g0[1]!==vn)throw W0(g0,0);var v0=B(O)}K(c0)!==z&&B(O);t:{if(P(H,Z0)&&P(H,iI)){if(!P(H,"h")){var i0=0;break t}if(!P(H,"hov")){var i0=3;break t}if(!P(H,"hv")){var i0=2;break t}if(P(H,YF)){var i0=B(O);break t}var i0=1;break t}var i0=4}var M=[0,v0,i0]}return Sq(x,M[1],M[2]);case 2:var s0=r[1];if(typeof s0!="number"&&s0[0]===0){var d0=s0[2];if(typeof d0!="number"&&d0[0]===1){var w0=r[2],M0=d0[2],C0=s0[1];break r}}var S0=r[2],K0=s0;break x;case 3:var D0=r[1];if(typeof D0!="number"&&D0[0]===0){var I0=D0[2];if(typeof I0!="number"&&I0[0]===1){var j0=r[2],y0=I0[2],Y0=D0[1];break}}var ex=r[2],xx=D0;break e;case 4:var L=r[1];if(typeof L!="number"&&L[0]===0){var N0=L[2];if(typeof N0!="number"&&N0[0]===1){var w0=r[2],M0=N0[2],C0=L[1];break r}}var S0=r[2],K0=L;break x;case 5:var A0=r[1];if(typeof A0!="number"&&A0[0]===0){var $0=A0[2];if(typeof $0!="number"&&$0[0]===1){var j0=r[2],y0=$0[2],Y0=A0[1];break}}var ex=r[2],xx=A0;break e;case 6:var tx=r[2];return kt(x,r[1]),d(tx,x);case 7:return kt(x,r[1]),yv(x,O);default:var z0=r[2];return kt(x,r[1]),R1(z0)}return kt(x,Y0),wj(x,y0,s5(1,j0))}return kt(x,xx),Y6(x,ex)}return kt(x,C0),wj(x,M0,w0)}return kt(x,K0),Nq(x,Nx(S0),S0)}}function s1(x){return function(r){return Lr(function(e){return kt(x,e),0},0,r[1])}}var qV="Array.sub",UV="first domain already spawned",BV=[0,"camlinternalOO.ml",Vb,50],XV=[0,zR,72,5],YV=[0,zR,81,2],zV="/tmp",KV=cn,JV=[0,"src/wtf8.ml",65,9],GV=[0,"src/third-party/sedlex/flow_sedlexing.ml",WE,4],WV="Flow_sedlexing.MalFormed",VV=$l,$V=p3,QV=l3,HV=v6,ZV=av,x$=[0,[12,40,[18,[1,[0,[11,_i,0],_i]],[11,"File_key.LibFile",[17,[0,Ua,1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6,yQ=[0,[18,[1,[0,0,Z0]],[2,0,[11,JD,[17,[0,Ua,1,0],0]]]],TF],gQ=[0,[4,0,0,0,0],O3],wQ=[0,[17,0,0],_A],_Q=[0,[17,[0,Ua,1,0],[12,Ba,[17,0,0]]],"@ }@]"],bQ=Z0,TQ="Object literal may not have data and accessor property with the same name",EQ="Object literal may not have multiple get/set accessors with the same name",SQ="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",AQ="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",PQ="Async functions can only be declared at top level or immediately within another function.",IQ="`await` is an invalid identifier in async functions",NQ="`await` is not allowed in async function parameters.",jQ="Computed properties must have a value.",CQ="Constructor can't be an accessor.",OQ="Constructor can't be an async function.",DQ="Constructor can't be a generator.",FQ="It is sufficient for your declare function to just have a Promise return type.",RQ="async is an implementation detail and isn't necessary for your declare function statement. ",LQ="`declare` modifier can only appear on class fields.",MQ="Unexpected token `=`. Initializers are not allowed in a `declare`.",qQ="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",UQ="Classes may only have one constructor",BQ="Rest element must be final element of an array pattern",XQ="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",YQ="Enum members are separated with `,`. Replace `;` with `,`.",zQ="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",KQ="Expected an object pattern, array pattern, or an identifier but found an expression instead",JQ="Missing comma between export specifiers",GQ="Generators can only be declared at top level or immediately within another function.",WQ="Getter should have zero parameters",VQ="A getter cannot have a `this` parameter.",$Q="Illegal break statement",QQ="Illegal continue statement",HQ="Illegal return statement",ZQ="Illegal Unicode escape",xH="Missing comma between import specifiers",rH="It cannot be used with `import type` or `import typeof` statements",eH="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",tH="Explicit inexact syntax cannot appear inside an explicit exact object type",nH="Explicit inexact syntax can only appear inside an object type",uH="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",iH="A bigint literal must be an integer",fH="JSX value should be either an expression or a quoted JSX text",cH="Invalid left-hand side in assignment",sH="Invalid left-hand side in exponentiation expression",aH="Invalid left-hand side in for-in",oH="Invalid left-hand side in for-of",vH="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",lH="Invalid regular expression",pH="A bigint literal cannot use exponential notation",kH="Tuple spread elements cannot be optional.",mH="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",hH="`typeof` can only be used to get the type of variables.",dH="JSX attributes must only be assigned a non-empty expression",yH="Literals cannot be used as shorthand properties.",gH="Malformed unicode",wH="`match` only supports one argument",_H="Object pattern can't contain methods",bH="Expected at least one type parameter.",TH="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",EH="More than one default clause in switch statement",SH="Illegal newline after throw",AH="Illegal newline before arrow",PH="Missing catch or finally after try",IH="Const must be initialized",NH="Destructuring assignment must be initialized",jH="An optional chain may not be used in a `new` expression.",CH="Template literals may not be used in an optional chain.",OH="Rest parameter must be final parameter of an argument list",DH="Private fields may not be deleted.",FH="Private fields can only be referenced from within a class.",RH="Rest property must be final property of an object pattern",LH="Setter should have exactly one parameter",MH="A setter cannot have a `this` parameter.",qH="Catch variable may not be eval or arguments in strict mode",UH="Delete of an unqualified identifier in strict mode.",BH="Duplicate data property in object literal not allowed in strict mode",XH="Function name may not be eval or arguments in strict mode",YH="Assignment to eval or arguments is not allowed in strict mode",zH="Postfix increment/decrement may not have eval or arguments operand in strict mode",KH="Prefix increment/decrement may not have eval or arguments operand in strict mode",JH="Strict mode code may not include a with statement",GH="Number literals with leading zeros are not allowed in strict mode.",WH="Octal literals are not allowed in strict mode.",VH="Strict mode function may not have duplicate parameter names",$H="Parameter name eval or arguments is not allowed in strict mode",QH='Illegal "use strict" directive in function with non-simple parameter list',HH="Use of reserved word in strict mode",ZH="Variable name may not be eval or arguments in strict mode",xZ="You may not access a private field through the `super` keyword.",rZ="Flow does not support abstract classes.",eZ="Flow does not support template literal types.",tZ="A type annotation is required for the `this` parameter.",nZ="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",uZ="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",iZ="The `this` parameter cannot be optional.",fZ="The `this` parameter must be the first function parameter.",cZ="A trailing comma is not permitted after the rest element",sZ="Unexpected end of input",aZ="Explicit inexact syntax must come at the end of an object type",oZ="Opaque type aliases are not allowed in untyped mode",vZ="Unexpected proto modifier",lZ="Unexpected reserved word",pZ="Unexpected reserved type",kZ="Spreading a type is only allowed inside an object type",mZ="Unexpected static modifier",hZ="Unexpected `super` outside of a class method",dZ="`super()` is only valid in a class constructor",yZ="Type aliases are not allowed in untyped mode",gZ="Type annotations are not allowed in untyped mode",wZ="Type declarations are not allowed in untyped mode",_Z="Type exports are not allowed in untyped mode",bZ="Type imports are not allowed in untyped mode",TZ="Interfaces are not allowed in untyped mode",EZ="Unexpected variance sigil",SZ="Found a decorator in an unsupported position.",AZ="Invalid regular expression: missing /",PZ="Unexpected whitespace between `#` and identifier",IZ="`yield` is an invalid identifier in generators",NZ="Yield expression not allowed in formal parameter",jZ=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],CZ=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],OZ=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,Hs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],DZ=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,Hs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],FZ=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,Hs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],RZ=[0,[11,ZD,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],LZ="The `...` must come at the end of the enum body. Remove the trailing comma.",MZ="The `...` must come after all enum members. Move it to the end of the enum body.",qZ=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,Hs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],UZ=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],BZ=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],XZ=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],YZ=[0,[11,ZD,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],zZ=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,Hs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],KZ=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,Hs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],JZ=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,Hs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],GZ=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,Hs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],WZ=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],VZ=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],$Z="immediately within another function.",QZ="In strict mode code, functions can only be declared at top level or ",HZ="inside a block, or as the body of an if statement.",ZZ="In non-strict mode code, functions can only be declared at top level, ",x00="static ",r00=Z0,e00="methods",t00="fields",n00=OR,u00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,Hs,0]]]]]],"Classes may not have %s%s named `%s`."],i00="Components use `renders` instead of `:` to annotate the render type of a component.",f00=nR,c00=Z0,s00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],a00="Remove the period.",o00="Indexed access uses bracket notation.",v00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],l00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],p00=xn,k00=G4,m00=[0,[11,"In match ",[2,0,[11," pattern, the rest must be the last element in the pattern",0]]],"In match %s pattern, the rest must be the last element in the pattern"],h00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],d00=[0,[11,rR,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],y00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],g00=Z0,w00=Rl,_00=" You can try using JavaScript private fields by prepending `#` to the field name.",b00=h6,T00=" Fields and methods are public by default. You can simply omit the `public` keyword.",E00=l6,S00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],A00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],P00=[0,[11,HF,[2,0,0]],"Unexpected %s"],I00=[0,[11,rR,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],N00=[0,[11,HF,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],j00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],C00="Parse_error.Error",O00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,rn],[0,Ed,Uw],[0,JE,yy],[0,K9,p6],[0,mA,gp],[0,a3,gg],[0,pd,ep],[0,n2,706],[0,BO,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,CR,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,t_,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,OF,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,mI],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,lD,jR],[0,8255,8257],[0,8276,8277],[0,$k,8306],[0,gk,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,j8,8451],[0,tm,8456],[0,8458,mp],[0,Np,8470],[0,cR,8478],[0,Dk,im],[0,mm,Dp],[0,Up,cm],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,$p,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,T8],[0,F4,11560],[0,$8,11566],[0,11568,11624],[0,dk,11632],[0,bp,11671],[0,11680,S8],[0,11688,P8],[0,11696,R4],[0,11704,Zp],[0,11712,u8],[0,11720,B4],[0,11728,_m],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,dm],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,t8],[0,12449,Cm],[0,12540,12544],[0,12549,nm],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,kp],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,Ak,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,ak,ek],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,s8,43482],[0,43488,Z4],[0,pF,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,w8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,F8],[0,43816,Pk],[0,43824,v8],[0,43868,z4],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,ck,H4],[0,64298,Lk],[0,64312,C8],[0,ok,Sp],[0,64320,ym],[0,64323,Rm],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,am],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,A8],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,c6,Sm],[0,65549,l8],[0,65576,Lp],[0,65596,qp],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,bm],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,Ep,lk],[0,67594,Tm],[0,67639,67641],[0,o8,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,fp],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Am,68100],[0,68101,68103],[0,68108,xk],[0,68117,a8],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,Wk],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,Z8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,hm],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,xp,Jp],[0,69968,70004],[0,fm,70007],[0,70016,70085],[0,70089,70093],[0,70096,J8],[0,Ek,70109],[0,70144,K8],[0,70163,70200],[0,70206,70207],[0,70272,Y8],[0,Uk,Wp],[0,70282,z8],[0,70287,I8],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,J4],[0,70405,70413],[0,70415,70417],[0,70419,sm],[0,70442,n8],[0,70450,_8],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,tp,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,dp,70752],[0,70784,rm],[0,yk,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Tk,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,Vk],[0,em,72165],[0,mk,72255],[0,72263,72264],[0,Qp,72346],[0,Ik,72350],[0,72384,72441],[0,72704,um],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,Ck],[0,72968,wm],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,qk],[0,73063,L8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,R8,94088],[0,94095,94112],[0,94176,Pp],[0,K4,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,V4],[0,119894,Kp],[0,119966,119968],[0,pk,119971],[0,119973,119975],[0,119977,qm],[0,119982,U8],[0,Qk,p8],[0,119997,wk],[0,120005,Fm],[0,120071,120075],[0,120077,_p],[0,120086,X8],[0,120094,rp],[0,120123,c8],[0,120128,hk],[0,uk,120135],[0,120138,km],[0,120146,120486],[0,120488,jp],[0,120514,Mk],[0,120540,Om],[0,120572,Gp],[0,120598,zk],[0,120630,vp],[0,120656,Fk],[0,120688,np],[0,120714,Y4],[0,120746,Yp],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,q4,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,lp],[0,126469,N8],[0,126497,jm],[0,X4,126501],[0,Q8,i8],[0,126505,M4],[0,126516,Kk],[0,Pm,h8],[0,sp,126524],[0,gm,126531],[0,Lm,op],[0,Im,E8],[0,Em,$4],[0,126541,Vp],[0,126545,lm],[0,W8,126549],[0,Gk,ap],[0,vk,Ok],[0,b8,pm],[0,Tp,up],[0,Zk,Mp],[0,126561,cp],[0,vm,126565],[0,126567,W4],[0,126572,hp],[0,126580,Bk],[0,126585,sk],[0,Jk,xm],[0,126592,ip],[0,126603,126620],[0,126625,Yk],[0,126629,Nk],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],D00=[0,1,0],F00=[0,0,[0,1,0],[0,1,0]],R00=eL,L00="end of input",M00=n6,q00="template literal part",U00=n6,B00=mO,X00=eL,Y00=n6,z00=p3,K00=n6,J00=av,G00=n6,W00=l3,V00="an",$00=Pt,Q00=hu,H00=[0,[11,"token `",[2,0,[12,96,0]]],"token `%s`"],Z00="{",xx0=m8,rx0="{|",ex0="|}",tx0=IR,nx0=uR,ux0="[",ix0="]",fx0=Jb,cx0=BL,sx0=cn,ax0="=>",ox0="...",vx0=CO,lx0=OR,px0=h3,kx0=d8,mx0=qa,hx0=Gl,dx0=Xe,yx0=Ge,gx0=aI,wx0=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T_PERIOD",W20="T_ARROW",V20="T_ELLIPSIS",$20="T_AT",Q20="T_POUND",H20="T_FUNCTION",Z20="T_IF",x10="T_IN",r10="T_INSTANCEOF",e10="T_RETURN",t10="T_SWITCH",n10="T_MATCH",u10="T_THIS",i10="T_THROW",f10="T_TRY",c10="T_VAR",s10="T_WHILE",a10="T_WITH",o10="T_CONST",v10="T_LET",l10="T_NULL",p10="T_FALSE",k10="T_TRUE",m10="T_BREAK",h10="T_CASE",d10="T_CATCH",y10="T_CONTINUE",g10="T_DEFAULT",w10="T_DO",_10="T_FINALLY",b10="T_FOR",T10="T_CLASS",E10="T_EXTENDS",S10="T_STATIC",A10="T_ELSE",P10="T_NEW",I10="T_DELETE",N10="T_TYPEOF",j10="T_VOID",C10="T_ENUM",O10="T_EXPORT",D10="T_IMPORT",F10="T_SUPER",R10="T_IMPLEMENTS",L10="T_INTERFACE",M10="T_PACKAGE",q10="T_PRIVATE",U10="T_PROTECTED",B10="T_PUBLIC",X10="T_YIELD",Y10="T_DEBUGGER",z10="T_DECLARE",K10="T_TYPE",J10="T_OPAQUE",G10="T_OF",W10="T_ASYNC",V10="T_AWAIT",$10="T_CHECKS",Q10="T_RSHIFT3_ASSIGN",H10="T_RSHIFT_ASSIGN",Z10="T_LSHIFT_ASSIGN",xe0="T_BIT_XOR_ASSIGN",re0="T_BIT_OR_ASSIGN",ee0="T_BIT_AND_ASSIGN",te0="T_MOD_ASSIGN",ne0="T_DIV_ASSIGN",ue0="T_MULT_ASSIGN",ie0="T_EXP_ASSIGN",fe0="T_MINUS_ASSIGN",ce0="T_PLUS_ASSIGN",se0="T_NULLISH_ASSIGN",ae0="T_AND_ASSIGN",oe0="T_OR_ASSIGN",ve0="T_ASSIGN",le0="T_PLING_PERIOD",pe0="T_PLING_PLING",ke0="T_PLING",me0="T_COLON",he0="T_OR",de0="T_AND",ye0="T_BIT_OR",ge0="T_BIT_XOR",we0="T_BIT_AND",_e0="T_EQUAL",be0="T_NOT_EQUAL",Te0="T_STRICT_EQUAL",Ee0="T_STRICT_NOT_EQUAL",Se0="T_LESS_THAN_EQUAL",Ae0="T_GREATER_THAN_EQUAL",Pe0="T_LESS_THAN",Ie0="T_GREATER_THAN",Ne0="T_LSHIFT",je0="T_RSHIFT",Ce0="T_RSHIFT3",Oe0="T_PLUS",De0="T_MINUS",Fe0="T_DIV",Re0="T_MULT",Le0="T_EXP",Me0="T_MOD",qe0="T_NOT",Ue0="T_BIT_NOT",Be0="T_INCR",Xe0="T_DECR",Ye0="T_EOF",ze0="T_ANY_TYPE",Ke0="T_MIXED_TYPE",Je0="T_EMPTY_TYPE",Ge0="T_NUMBER_TYPE",We0="T_BIGINT_TYPE",Ve0="T_STRING_TYPE",$e0="T_VOID_TYPE",Qe0="T_SYMBOL_TYPE",He0="T_UNKNOWN_TYPE",Ze0="T_NEVER_TYPE",xt0="T_UNDEFINED_TYPE",rt0="T_KEYOF",et0="T_READONLY",tt0="T_INFER",nt0="T_IS",ut0="T_ASSERTS",it0="T_IMPLIES",ft0=XL,ct0=XL,st0="T_NUMBER",at0="T_BIGINT",ot0="T_STRING",vt0="T_TEMPLATE_PART",lt0="T_IDENTIFIER",pt0="T_REGEXP",kt0="T_INTERPRETER",mt0="T_ERROR",ht0="T_JSX_IDENTIFIER",dt0=ML,yt0=ML,gt0="T_BOOLEAN_TYPE",wt0="T_NUMBER_SINGLETON_TYPE",_t0="T_BIGINT_SINGLETON_TYPE",bt0=[0,zD,O8,9],Tt0=[0,zD,c_,9],Et0=kL,St0="*/",At0=kL,Pt0="unreachable line_comment",It0="unreachable string_quote",Nt0="\\",jt0="unreachable template_part",Ct0=`\r +`,Ot0=yw,Dt0="unreachable regexp_class",Ft0=WO,Rt0="unreachable regexp_body",Lt0=Z0,Mt0=Z0,qt0=Z0,Ut0=Z0,Bt0=SD,Xt0="{'>'}",Yt0=x6,zt0="{'}'}",Kt0=m8,Jt0=Ya,Gt0=Jb,Wt0=om,Vt0=SD,$t0=Ya,Qt0=Jb,Ht0=om,Zt0="unreachable type_token wholenumber",xn0="unreachable type_token wholebigint",rn0="unreachable type_token floatbigint",en0="unreachable type_token scinumber",tn0="unreachable type_token scibigint",nn0="unreachable type_token hexnumber",un0="unreachable type_token hexbigint",in0="unreachable type_token legacyoctnumber",fn0="unreachable type_token octnumber",cn0="unreachable type_token octbigint",sn0="unreachable type_token binnumber",an0="unreachable type_token bigbigint",on0="unreachable type_token",vn0=lL,ln0=[11,1],pn0=[11,0],kn0="unreachable template_tail",mn0=Z0,hn0=Z0,dn0="unreachable jsx_child",yn0="unreachable jsx_tag",gn0=[0,PD],wn0=[0,913],_n0=[0,a3],bn0=[0,PI],Tn0=[0,mD],En0=[0,OL],Sn0=[0,8747],An0=[0,DO],Pn0=[0,916],In0=[0,8225],Nn0=[0,935],jn0=[0,hL],Cn0=[0,914],On0=[0,iL],Dn0=[0,Db],Fn0=[0,$T],Rn0=[0,915],Ln0=[0,Gd],Mn0=[0,919],qn0=[0,917],Un0=[0,pL],Bn0=[0,eD],Xn0=[0,HD],Yn0=[0,924],zn0=[0,923],Kn0=[0,922],Jn0=[0,kF],Gn0=[0,921],Wn0=[0,xR],Vn0=[0,c_],$n0=[0,nF],Qn0=[0,pd],Hn0=[0,927],Zn0=[0,937],x70=[0,nD],r70=[0,xF],e70=[0,J9],t70=[0,338],n70=[0,352],u70=[0,929],i70=[0,936],f70=[0,8243],c70=[0,928],s70=[0,934],a70=[0,FL],o70=[0,tD],v70=[0,933],l70=[0,pR],p70=[0,vA],k70=[0,yO],m70=[0,920],h70=[0,932],d70=[0,zO],y70=[0,jg],g70=[0,KF],w70=[0,VD],_70=[0,918],b70=[0,376],T70=[0,JF],E70=[0,926],S70=[0,dF],A70=[0,CR],P70=[0,925],I70=[0,39],N70=[0,8736],j70=[0,8743],C70=[0,38],O70=[0,945],D70=[0,8501],F70=[0,s3],R70=[0,8226],L70=[0,rD],M70=[0,946],q70=[0,8222],U70=[0,KO],B70=[0,_R],X70=[0,8776],Y70=[0,oL],z70=[0,8773],K70=[0,9827],J70=[0,BO],G70=[0,967],W70=[0,LR],V70=[0,p6],$70=[0,UO],Q70=[0,BF],H70=[0,8595],Z70=[0,8224],xu0=[0,8659],ru0=[0,hD],eu0=[0,8746],tu0=[0,8629],nu0=[0,Ap],uu0=[0,8745],iu0=[0,8195],fu0=[0,8709],cu0=[0,dO],su0=[0,vL],au0=[0,tL],ou0=[0,ep],vu0=[0,9830],lu0=[0,8707],pu0=[0,8364],ku0=[0,ER],mu0=[0,w3],hu0=[0,951],du0=[0,8801],yu0=[0,949],gu0=[0,8194],wu0=[0,8805],_u0=[0,947],bu0=[0,8260],Tu0=[0,sR],Eu0=[0,U9],Su0=[0,O8],Au0=[0,8704],Pu0=[0,UF],Iu0=[0,yL],Nu0=[0,8230],ju0=[0,9829],Cu0=[0,8596],Ou0=[0,8660],Du0=[0,62],Fu0=[0,402],Ru0=[0,948],Lu0=[0,cF],Mu0=[0,Fy],qu0=[0,8712],Uu0=[0,wL],Bu0=[0,953],Xu0=[0,8734],Yu0=[0,8465],zu0=[0,PR],Ku0=[0,8220],Ju0=[0,8968],Gu0=[0,8592],Wu0=[0,Uw],Vu0=[0,10216],$u0=[0,955],Qu0=[0,8656],Hu0=[0,954],Zu0=[0,60],xi0=[0,8216],ri0=[0,8249],ei0=[0,jR],ti0=[0,9674],ni0=[0,8727],ui0=[0,8970],ii0=[0,bL],fi0=[0,8711],ci0=[0,956],si0=[0,8722],ai0=[0,K9],oi0=[0,JE],vi0=[0,8212],li0=[0,RD],pi0=[0,8804],ki0=[0,957],mi0=[0,gF],hi0=[0,8836],di0=[0,8713],yi0=[0,QD],gi0=[0,8715],wi0=[0,8800],_i0=[0,8853],bi0=[0,959],Ti0=[0,969],Ei0=[0,8254],Si0=[0,YR],Ai0=[0,339],Pi0=[0,zo],Ii0=[0,MR],Ni0=[0,yy],ji0=[0,A3],Ci0=[0,8855],Oi0=[0,HT],Di0=[0,n2],Fi0=[0,mA],Ri0=[0,Ed],Li0=[0,lr],Mi0=[0,VR],qi0=[0,982],Ui0=[0,960],Bi0=[0,966],Xi0=[0,8869],Yi0=[0,8240],zi0=[0,8706],Ki0=[0,8744],Ji0=[0,8211],Gi0=[0,10217],Wi0=[0,8730],Vi0=[0,8658],$i0=[0,34],Qi0=[0,968],Hi0=[0,8733],Zi0=[0,8719],xf0=[0,961],rf0=[0,8971],ef0=[0,DL],tf0=[0,8476],nf0=[0,8221],uf0=[0,8969],if0=[0,8594],ff0=[0,gp],cf0=[0,bR],sf0=[0,mF],af0=[0,8901],of0=[0,353],vf0=[0,8218],lf0=[0,8217],pf0=[0,8250],kf0=[0,8835],mf0=[0,8721],hf0=[0,8838],df0=[0,8834],yf0=[0,9824],gf0=[0,8764],wf0=[0,962],_f0=[0,963],bf0=[0,8207],Tf0=[0,952],Ef0=[0,8756],Sf0=[0,964],Af0=[0,kk],Pf0=[0,8839],If0=[0,zL],Nf0=[0,ng],jf0=[0,D3],Cf0=[0,8657],Of0=[0,8482],Df0=[0,gg],Ff0=[0,732],Rf0=[0,d3],Lf0=[0,8201],Mf0=[0,977],qf0=[0,cR],Uf0=[0,g3],Bf0=[0,965],Xf0=[0,978],Yf0=[0,XP],zf0=[0,WE],Kf0=[0,KL],Jf0=[0,lD],Gf0=[0,8205],Wf0=[0,950],Vf0=[0,Hp],$f0=[0,_F],Qf0=[0,lE],Hf0=[0,958],Zf0=[0,8593],xc0=[0,bO],rc0=[0,8242],ec0=[0,nL],tc0="unreachable regexp",nc0="unreachable token wholenumber",uc0="unreachable token wholebigint",ic0="unreachable token floatbigint",fc0="unreachable token scinumber",cc0="unreachable token scibigint",sc0="unreachable token hexnumber",ac0="unreachable token hexbigint",oc0="unreachable token legacyoctnumber",vc0="unreachable token legacynonoctnumber",lc0="unreachable token octnumber",pc0="unreachable token octbigint",kc0="unreachable token bignumber",mc0="unreachable token bigint",hc0="unreachable token",dc0=lL,yc0=[7,"#!"],gc0="expected ?",wc0="unreachable string_escape",_c0=Y1,bc0=Wl,Tc0=Wl,Ec0=Y1,Sc0=iI,Ac0=PF,Pc0="n",Ic0="r",Nc0="t",jc0=YF,Cc0=Wl,Oc0=Ya,Dc0=Ya,Fc0="unreachable id_char",Rc0=Ya,Lc0=Ya,Mc0=Wl,qc0=HR,Uc0=EO,Bc0=L_,Xc0=[26,"token ILLEGAL"],Yc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],zc0=[0,1],Kc0=[0,1],Jc0=DF,Gc0=DF,Wc0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],Vc0=Mm,$c0="Peeking current location when not available",Qc0=[0,"src/parser/parser_env.ml",365,9],Hc0="Internal Error: Tried to add_declared_private with outside of class scope.",Zc0="Internal Error: `exit_class` called before a matching `enter_class`",xs0=Z0,rs0=[0,0,0],es0=[0,0,0],ts0="Parser_env.Try.Rollback",ns0=Z0,us0=Z0,is0=[0,B1,Gi,Fi,FD,TR,M7,K1,_f,c7,Vf,nc,df,Ai,gu,gi,nu,S7,s7,Ru,Tf,D7,Yu,zi,N7,zn,Rf,fu,Z7,Xn,Kf,is,Jf,rf,cf,ts,gc,U7,ze,Wn,Oi,x7,Nc,Ti,Xf,Oc,Ge,Tc,Su,W7,i7,Bc,zu,xu,k7,Xe,Ju,v7,pf,r7,af,o7,qc,Me,wf,li,Lu,A7,ru,Mi,Ji,g7,Df,Q7,kc,Li,f7,jn,kf,_u,C7,fi,Ic,oi,vu,_e,Dc,Kn,Mf,Du,rs,Un,Gn,e7,Nf,ac,Bn,Jn,Si,Ff,Qi,Tu,Ki,On,Pc,Nu,Xu,mi,Cu,Fu,Gu,Vn,vi,jc,Ei,Qc,Sf,Ec,Au,bu,si,cu,Mn,hf,Vc,Zi,L7,ji,Bf,Hi,lf,J7,uu,m7,Jc,ec,su,mu,$7,Yc,Vu,ne,l7,q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0=nv,ca0=yp,sa0=Op,aa0=be,oa0=p3,va0=av,la0=l3,pa0=Ws,ka0=v6,ma0=Ip,ha0=Fp,da0=fk,ya0=H8,ga0=Zo,wa0=a6,_a0=b3,ba0=m3,Ta0=$l,Ea0=k8,Sa0=[0,Mm],Aa0=Z0,Pa0=[18,1],Ia0=[18,0],Na0=[0,0],ja0=$s,Ca0=[0,0],Oa0=[0,"a type"],Da0=[0,0],Fa0=[0,"a number literal type"],Ra0=[0,0],La0=a6,Ma0=b3,qa0=m3,Ua0="You should only call render_type after making sure the next token is a renders variant",Ba0=[0,[0,0,0,0,0]],Xa0=[0,0,0,0],Ya0=[0,1],za0=[0,I3,1436,6],Ka0=[0,I3,1439,6],Ja0=[0,I3,1542,8],Ga0=[0,1],Wa0=[0,I3,1559,8],Va0="Can not have both `static` and `proto`",$a0=Re,Qa0=pg,Ha0=[0,0],Za0=[0,"the end of a tuple type (no trailing comma is allowed in inexact tuple type)."],xo0=[0,I3,J9,15],ro0=[0,I3,ng,15],eo0=Ue,to0=Ue,no0=ik,uo0=f6,io0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],fo0=[0,0,0,0],co0="Offset_utils.Offset_lookup_failed",so0=g2,ao0=SO,oo0=f6,vo0=ik,lo0=OO,po0=f6,ko0=ik,mo0=_D,ho0=vx,do0="normal",yo0=qf,go0="jsxTag",wo0="jsxChild",_o0="template",bo0=mO,To0="context",Eo0=qf,So0=[6,0],Ao0=[0,0],Po0=[0,1],Io0=[0,4],No0=[0,2],jo0=[0,3],Co0=[0,0],Oo0=Ue,Do0=[0,0,0,0,0,0],Fo0=[0,HE],Ro0=[29,[0,0,0]],Lo0=[0,0],Mo0=[0,1],qo0=[0,1],Uo0=[0,0],Bo0=$s,Xo0=[0,70],Yo0=[0,81],zo0=aR,Ko0=hT,Jo0="exports",Go0=o6,Wo0=[0,Z0,Z0,0],Vo0=[0,MO],$o0=[0,81],Qo0=[0,"a declaration, statement or export specifiers"],Ho0=[0,1],Zo0=[0,My,1872,21],xv0=[0,"the keyword `as`"],rv0=[0,30],ev0=[0,30],tv0=[0,0],nv0=[0,1],uv0=[0,MO],iv0=[0,"the keyword `from`"],fv0=[0,Z0,Z0,0],cv0=[0,HE],sv0="Label",av0=[0,HE],ov0=[0,0,0],vv0=[0,39],lv0=[0,My,372,22],pv0=[0,38],kv0=[0,My,391,22],mv0=[0,0],hv0="the token `;`",dv0=[0,0],yv0=[0,0],gv0=UD,wv0=[0,Mm],_v0=UD,bv0=[26,Pt],Tv0=$s,Ev0=[0,70],Sv0=[0,Z0,0],Av0=Nt,Pv0=[0,Z0,0],Iv0=[0,70],Nv0=[0,70],jv0=h3,Cv0=[0,Z0,0],Ov0=[0,0,0],Dv0=[0,0,0],Fv0=[0,[0,8]],Rv0=[0,[0,7]],Lv0=[0,[0,6]],Mv0=[0,[0,10]],qv0=[0,[0,9]],Uv0=[0,[0,11]],Bv0=[0,[0,5]],Xv0=[0,[0,4]],Yv0=[0,[0,2]],zv0=[0,[0,3]],Kv0=[0,[0,1]],Jv0=[0,[0,0]],Gv0=[0,[0,12]],Wv0=[0,[0,13]],Vv0=[0,[0,14]],$v0=[0,0],Qv0=[0,1],Hv0=[0,0],Zv0=[0,2],x30=[0,3],r30=[0,7],e30=[0,6],t30=[0,4],n30=[0,5],u30=[0,1],i30=[0,0],f30=[0,1],c30=[0,0],s30=N3,a30=[0,"either a call or access of `super`"],o30=N3,v30=X1,l30=Xl,p30=Xl,k30=rv,m30=[0,"the identifier `target`"],h30=[0,0],d30=[0,1],y30=[0,1],g30=[0,1],w30=[0,1],_30=[0,1],b30=[0,70],T30=Wl,E30=HR,S30=L_,A30=L_,P30=EO,I30=[29,[0,0,0]],N30=[0,0],j30=[0,1],C30=[0,0],O30=ue,D30=ue,F30=[0,"a regular expression"],R30=Z0,L30=Z0,M30=Z0,q30=[0,78],U30=[0,"src/parser/expression_parser.ml",1450,17],B30=[0,"a template literal part"],X30=[0,[0,Z0,Z0],1],Y30=qo,z30=[0,6],K30=[0,[0,17,[0,2]]],J30=[0,[0,18,[0,3]]],G30=[0,[0,19,[0,4]]],W30=[0,[0,0,[0,5]]],V30=[0,[0,1,[0,5]]],$30=[0,[0,2,[0,5]]],Q30=[0,[0,3,[0,5]]],H30=[0,[0,5,[0,6]]],Z30=[0,[0,7,[0,6]]],xl0=[0,[0,4,[0,6]]],rl0=[0,[0,6,[0,6]]],el0=[0,[0,8,[0,7]]],tl0=[0,[0,9,[0,7]]],nl0=[0,[0,10,[0,7]]],ul0=[0,[0,11,[0,8]]],il0=[0,[0,12,[0,8]]],fl0=[0,[0,15,[0,9]]],cl0=[0,[0,13,[0,9]]],sl0=[0,[0,14,[1,10]]],al0=[0,[0,16,[0,9]]],ol0=[0,[0,21,[0,6]]],vl0=[0,[0,20,[0,6]]],ll0=[22,Wg],pl0=[13,"JSX fragment"],kl0=Mo,ml0=cn,hl0=[0,tn],dl0=[1,tn],yl0=[0,Z0,Z0,0],gl0=[0,Mm],wl0=Z0,_l0=[0,"a number or string literal"],bl0=[0,Z0,'""',0],Tl0=[0,0],El0=[0,"a number literal"],Sl0=[0,[0,0,Y1,0]],Al0=[0,81],Pl0=[20,dR],Il0=[20,Zl],Nl0=Ml,jl0=[0,Z0,0],Cl0="unexpected PrivateName in Property, expected a PrivateField",Ol0=[0,0,0],Dl0=za,Fl0="Must be one of the above",Rl0=[0,1],Ll0=[0,1],Ml0=[0,1],ql0=za,Ul0=za,Bl0=b9,Xl0="Internal Error: private name found in object props",Yl0=[0,0,0,0],zl0=[0,vF],Kl0=[19,[0,0]],Jl0=[0,vF],Gl0=yw,Wl0="Nooo: ",Vl0=Go,$l0="Parser error: No such thing as an expression pattern!",Ql0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Hl0=[0,"src/parser/parser_flow.ml",Ap,28],Zl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],x60=SO,r60=vx,e60=sD,t60=vD,n60=vD,u60=sD,i60=qf,f60=wO,c60=I2,s60=g2,a60="InterpreterDirective",o60="interpreter",v60="Program",l60=Jl,p60="BreakStatement",k60=Jl,m60="ContinueStatement",h60="DebuggerStatement",d60=iv,y60="DeclareExportAllDeclaration",g60=iv,w60=_9,_60=zT,b60=Go,T60="DeclareExportDeclaration",E60=I2,S60=Vr,A60="DeclareModule",P60=u1,I60="DeclareModuleExports",N60=I2,j60=Vr,C60="DeclareNamespace",O60=y3,D60=I2,F60="DoWhileStatement",R60="EmptyStatement",L60=bE,M60=zT,q60="ExportDefaultDeclaration",U60=bE,B60=bS,X60=iv,Y60="ExportAllDeclaration",z60=bE,K60=iv,J60=_9,G60=zT,W60="ExportNamedDeclaration",V60="directive",$60=n1,Q60="ExpressionStatement",H60=I2,Z60="update",x40=y3,r40=Gc,e40="ForStatement",t40="each",n40=I2,u40=en,i40=Qs,f40="ForInStatement",c40=nv,s40=I2,a40=en,o40=Qs,v40="ForOfStatement",l40=bD,p40=pP,k40=y3,m40="IfStatement",h40=qf,d40=Zs,y40=g2,g40=HO,w40=iv,_40=_9,b40="ImportDeclaration",T40=I2,E40=Jl,S40="LabeledStatement",A40=e9,P40=y1,I40="MatchStatement",N40=y1,j40="ReturnStatement",C40=e9,O40="discriminant",D40="SwitchStatement",F40=y1,R40="ThrowStatement",L40="finalizer",M40="handler",q40=fn,U40="TryStatement",B40=I2,X40=y3,Y40="WhileStatement",z40=I2,K40=G4,J40="WithStatement",G40=cT,W40="ArrayExpression",V40=J1,$40=Dm,Q40=n1,H40=Me,Z40=Rd,xp0=Ka,rp0=I2,ep0=un,tp0=Vr,np0="ArrowFunctionExpression",up0=n1,ip0="AsConstExpression",fp0=u1,cp0=n1,sp0="AsExpression",ap0=b9,op0=en,vp0=Qs,lp0=xv,pp0="AssignmentExpression",kp0=en,mp0=Qs,hp0=xv,dp0="BinaryExpression",yp0="CallExpression",gp0=bD,wp0=pP,_p0=y3,bp0="ConditionalExpression",Tp0=iv,Ep0="ImportExpression",Sp0=LF,Ap0=NR,Pp0=Wg,Ip0=en,Np0=Qs,jp0=xv,Cp0="LogicalExpression",Op0=e9,Dp0=y1,Fp0="MatchExpression",Rp0="MemberExpression",Lp0=M8,Mp0=Xl,qp0="MetaProperty",Up0=vb,Bp0=jk,Xp0=kD,Yp0="NewExpression",zp0=bk,Kp0="ObjectExpression",Jp0=at,Gp0="OptionalCallExpression",Wp0=at,Vp0="OptionalMemberExpression",$p0=ZF,Qp0="SequenceExpression",Hp0="Super",Zp0="ThisExpression",xk0=u1,rk0=n1,ek0="TypeCastExpression",tk0=u1,nk0=n1,uk0="SatisfiesExpression",ik0=y1,fk0="AwaitExpression",ck0=Ue,sk0=q7,ak0=RO,ok0=JL,vk0=Zs,lk0=Ws,pk0=Kl,kk0="matched above",mk0=y1,hk0=KD,dk0=xv,yk0="UnaryExpression",gk0=ED,wk0=WR,_k0=KD,bk0=y1,Tk0=xv,Ek0="UpdateExpression",Sk0="delegate",Ak0=y1,Pk0="YieldExpression",Ik0=PO,Nk0=I2,jk0=_e,Ck0="MatchExpressionCase",Ok0=PO,Dk0=I2,Fk0=_e,Rk0="MatchStatementCase",Lk0=tk,Mk0=_e,qk0=Xa,Uk0="MatchObjectPatternProperty",Bk0=M8,Xk0="base",Yk0="MatchMemberPattern",zk0="literal",Kk0="MatchLiteralPattern",Jk0="MatchWildcardPattern",Gk0=Ue,Wk0=q7,Vk0=y1,$k0=xv,Qk0="MatchUnaryPattern",Hk0=Fl,Zk0=bk,x80="MatchObjectPattern",r80=Fl,e80=cT,t80="MatchArrayPattern",n80="patterns",u80="MatchOrPattern",i80=Um,f80=_e,c80="MatchAsPattern",s80=Vr,a80="MatchIdentifierPattern",o80=Vs,v80=Vr,l80="MatchBindingPattern",p80=y1,k80="MatchRestPattern",m80="Unexpected FunctionDeclaration with BodyExpression",h80="HookDeclaration",d80=n1,y80=Me,g80=Rd,w80=Ka,_80="FunctionDeclaration",b80=J1,T80=Dm,E80=I2,S80=un,A80=Vr,P80="Unexpected FunctionExpression with BodyExpression",I80=J1,N80=Dm,j80=n1,C80=Me,O80=Rd,D80=Ka,F80=I2,R80=un,L80=Vr,M80="FunctionExpression",q80=at,U80=u1,B80=qe,X80=tS,Y80=at,z80=u1,K80=qe,J80="PrivateIdentifier",G80=at,W80=u1,V80=qe,$80=tS,Q80=pP,H80=y3,Z80="SwitchCase",xm0=I2,rm0="param",em0="CatchClause",tm0=I2,nm0="BlockStatement",um0=Vs,im0=Vr,fm0="DeclareVariable",cm0="DeclareHook",sm0=Me,am0="DeclareFunction",om0=Vr,vm0=lR,lm0=cv,pm0=Qf,km0=I2,mm0=J1,hm0=Vr,dm0="DeclareClass",ym0=J1,gm0=h9,wm0=un,_m0=Fl,bm0=un,Tm0=Vr,Em0="DeclareComponent",Sm0=J1,Am0=h9,Pm0=Fl,Im0=un,Nm0="ComponentTypeAnnotation",jm0=at,Cm0=u1,Om0=qe,Dm0="ComponentTypeParameter",Fm0=I2,Rm0=Vr,Lm0="DeclareEnum",Mm0=Qf,qm0=I2,Um0=J1,Bm0=Vr,Xm0="DeclareInterface",Ym0=g2,zm0=qf,Km0=bS,Jm0="ExportNamespaceSpecifier",Gm0=en,Wm0=J1,Vm0=Vr,$m0="DeclareTypeAlias",Qm0=en,Hm0=J1,Zm0=Vr,x50="TypeAlias",r50="DeclareOpaqueType",e50="OpaqueType",t50="supertype",n50="impltype",u50=J1,i50=Vr,f50="ClassDeclaration",c50="ClassExpression",s50=Rk,a50=cv,o50="superTypeParameters",v50="superClass",l50=J1,p50=I2,k50=Vr,m50=n1,h50="Decorator",d50=J1,y50=Vr,g50="ClassImplements",w50=I2,_50="ClassBody",b50=Ro,T50=k6,E50=Bo,S50=T3,A50=Rk,P50=k3,I50=Re,N50=Vs,j50=g2,C50=Xa,O50="MethodDefinition",D50=g6,F50=Rk,R50=K1,L50=Re,M50=k3,q50=u1,U50=g2,B50=Xa,X50=AL,Y50="Internal Error: Private name found in class prop",z50=g6,K50=Rk,J50=K1,G50=Re,W50=k3,V50=u1,$50=g2,Q50=Xa,H50=AL,Z50=J1,xh0=h9,rh0=un,eh0=Vr,th0=I2,nh0="ComponentDeclaration",uh0=y1,ih0=WT,fh0=en,ch0=Qs,sh0=G8,ah0=tk,oh0=i6,vh0=qe,lh0="ComponentParameter",ph0=Gc,kh0=Vr,mh0="EnumBigIntMember",hh0=Vr,dh0=XD,yh0=Gc,gh0=Vr,wh0="EnumStringMember",_h0=Vr,bh0=XD,Th0=Gc,Eh0=Vr,Sh0="EnumNumberMember",Ah0=Gc,Ph0=Vr,Ih0="EnumBooleanMember",Nh0=t6,jh0=B8,Ch0=Ul,Oh0="EnumBooleanBody",Dh0=t6,Fh0=B8,Rh0=Ul,Lh0="EnumNumberBody",Mh0=t6,qh0=B8,Uh0=Ul,Bh0="EnumStringBody",Xh0=t6,Yh0=Ul,zh0="EnumSymbolBody",Kh0=t6,Jh0=B8,Gh0=Ul,Wh0="EnumBigIntBody",Vh0=I2,$h0=Vr,Qh0="EnumDeclaration",Hh0=Qf,Zh0=I2,xd0=J1,rd0=Vr,ed0="InterfaceDeclaration",td0=J1,nd0=Vr,ud0="InterfaceExtends",id0=u1,fd0=bk,cd0="ObjectPattern",sd0=u1,ad0=cT,od0="ArrayPattern",vd0=en,ld0=Qs,pd0=G8,kd0=u1,md0=qe,hd0=tS,dd0=y1,yd0=WT,gd0=y1,wd0=WT,_d0=en,bd0=Qs,Td0=G8,Ed0=Gc,Sd0=Gc,Ad0=Bo,Pd0=T3,Id0=cD,Nd0=k3,jd0=tk,Cd0=k6,Od0=Vs,Dd0=g2,Fd0=Xa,Rd0=wF,Ld0=y1,Md0=pD,qd0=en,Ud0=Qs,Bd0=G8,Xd0=k3,Yd0=tk,zd0=k6,Kd0=Vs,Jd0=g2,Gd0=Xa,Wd0=wF,Vd0=y1,$d0=pD,Qd0=It,Hd0=g2,Zd0=o3,xy0=Z0,ry0=It,ey0=av,ty0=g2,ny0=o3,uy0=It,iy0=g2,fy0=o3,cy0=ra,sy0=Gs,ay0=It,oy0=g2,vy0=o3,ly0="flags",py0=_e,ky0="regex",my0=It,hy0=g2,dy0=o3,yy0=It,gy0=g2,wy0=o3,_y0=ZF,by0="quasis",Ty0="TemplateLiteral",Ey0="cooked",Sy0=It,Ay0="tail",Py0=g2,Iy0="TemplateElement",Ny0="quasi",jy0="tag",Cy0="TaggedTemplateExpression",Oy0=Yl,Dy0=j3,Fy0=u6,Ry0=Vs,Ly0="declarations",My0="VariableDeclaration",qy0=Gc,Uy0=Vr,By0="VariableDeclarator",Xy0="plus",Yy0=eR,zy0=Zo,Ky0=qa,Jy0=dw,Gy0="in-out",Wy0=Vs,Vy0="Variance",$y0="AnyTypeAnnotation",Qy0="MixedTypeAnnotation",Hy0="EmptyTypeAnnotation",Zy0="VoidTypeAnnotation",x90="NullLiteralTypeAnnotation",r90="SymbolTypeAnnotation",e90="NumberTypeAnnotation",t90="BigIntTypeAnnotation",n90="StringTypeAnnotation",u90="BooleanTypeAnnotation",i90=u1,f90="NullableTypeAnnotation",c90="UnknownTypeAnnotation",s90="NeverTypeAnnotation",a90="UndefinedTypeAnnotation",o90=Vs,v90=u1,l90="parameterName",p90="TypePredicate",k90="HookTypeAnnotation",m90="FunctionTypeAnnotation",h90=Qo,d90=J1,y90=Fl,g90=Dm,w90=un,_90=at,b90=u1,T90=qe,E90=iR,S90=at,A90=u1,P90=qe,I90=iR,N90=[0,0,0,0,0],j90="internalSlots",C90="callProperties",O90="indexers",D90=bk,F90="exact",R90=QR,L90="ObjectTypeAnnotation",M90=cD,q90="There should not be computed object type property keys",U90=Gc,B90=Bo,X90=T3,Y90=Vs,z90=K1,K90=pg,J90=Re,G90=at,W90=k6,V90=g2,$90=Xa,Q90="ObjectTypeProperty",H90=y1,Z90="ObjectTypeSpreadProperty",xg0=K1,rg0=Re,eg0=g2,tg0=Xa,ng0=Vr,ug0="ObjectTypeIndexer",ig0=Re,fg0=g2,cg0="ObjectTypeCallProperty",sg0=at,ag0=K1,og0="sourceType",vg0="propType",lg0="keyTparam",pg0="ObjectTypeMappedTypeProperty",kg0=g2,mg0=k6,hg0=Re,dg0=at,yg0=Vr,gg0="ObjectTypeInternalSlot",wg0=I2,_g0=Qf,bg0="InterfaceTypeAnnotation",Tg0=GR,Eg0="ArrayTypeAnnotation",Sg0="falseType",Ag0="trueType",Pg0="extendsType",Ig0="checkType",Ng0="ConditionalTypeAnnotation",jg0="typeParameter",Cg0="InferTypeAnnotation",Og0=Vr,Dg0=qF,Fg0="QualifiedTypeIdentifier",Rg0=J1,Lg0=Vr,Mg0="GenericTypeAnnotation",qg0="indexType",Ug0="objectType",Bg0="IndexedAccessType",Xg0=at,Yg0="OptionalIndexedAccessType",zg0=N9,Kg0="UnionTypeAnnotation",Jg0=N9,Gg0="IntersectionTypeAnnotation",Wg0=jk,Vg0=y1,$g0="TypeofTypeAnnotation",Qg0=Vr,Hg0=qF,Zg0="QualifiedTypeofIdentifier",xw0=y1,rw0="KeyofTypeAnnotation",ew0=_3,tw0=FF,nw0=sF,uw0=u1,iw0=xv,fw0="TypeOperator",cw0=Zo,sw0=QR,aw0="elementTypes",ow0="TupleTypeAnnotation",vw0=at,lw0=K1,pw0=GR,kw0=Jl,mw0="TupleTypeLabeledElement",hw0=u1,dw0=Jl,yw0="TupleTypeSpreadElement",gw0=It,ww0=g2,_w0="StringLiteralTypeAnnotation",bw0=It,Tw0=g2,Ew0="NumberLiteralTypeAnnotation",Sw0=It,Aw0=g2,Pw0="BigIntLiteralTypeAnnotation",Iw0=ra,Nw0=Gs,jw0=It,Cw0=g2,Ow0="BooleanLiteralTypeAnnotation",Dw0="ExistsTypeAnnotation",Fw0=u1,Rw0=hF,Lw0=u1,Mw0=hF,qw0=un,Uw0="TypeParameterDeclaration",Bw0="usesExtendsBound",Xw0=Go,Yw0=K1,zw0="bound",Kw0=qe,Jw0="TypeParameter",Gw0=un,Ww0=mR,Vw0=un,$w0=mR,Qw0=qo,Hw0=SL,Zw0="closingElement",x_0="openingElement",r_0="JSXElement",e_0="closingFragment",t_0=SL,n_0="openingFragment",u_0="JSXFragment",i_0=jk,f_0="selfClosing",c_0="attributes",s_0=qe,a_0="JSXOpeningElement",o_0="JSXOpeningFragment",v_0=qe,l_0="JSXClosingElement",p_0="JSXClosingFragment",k_0=g2,m_0=qe,h_0="JSXAttribute",d_0=y1,y_0="JSXSpreadAttribute",g_0="JSXEmptyExpression",w_0=n1,__0="JSXExpressionContainer",b_0=n1,T_0="JSXSpreadChild",E_0=It,S_0=g2,A_0="JSXText",P_0=M8,I_0=G4,N_0="JSXMemberExpression",j_0=qe,C_0=hT,O_0="JSXNamespacedName",D_0=qe,F_0="JSXIdentifier",R_0=bS,L_0=i6,M_0="ExportSpecifier",q_0=i6,U_0="ImportDefaultSpecifier",B_0=i6,X_0="ImportNamespaceSpecifier",Y_0=HO,z_0=i6,K_0="imported",J_0="ImportSpecifier",G_0="Line",W_0="Block",V_0=g2,$_0=g2,Q_0="DeclaredPredicate",H_0="InferredPredicate",Z_0=vb,xb0=jk,rb0=kD,eb0=k3,tb0=M8,nb0=G4,ub0="message",ib0=vx,fb0=OO,cb0=_D,sb0=iv,ab0=f6,ob0=ik,vb0=[0,B1,Gi,Fi,M7,K1,_f,c7,Vf,nc,df,Ai,gu,gi,nu,S7,s7,Ru,Tf,D7,Yu,zi,N7,zn,Rf,fu,Z7,Xn,Kf,is,Jf,rf,cf,ts,gc,U7,ze,Wn,Oi,x7,Nc,Ti,Xf,Oc,Ge,Tc,Su,W7,i7,Bc,zu,xu,k7,Xe,Ju,v7,pf,r7,af,o7,qc,Me,wf,li,Lu,A7,ru,Mi,Ji,g7,Df,Q7,kc,Li,f7,jn,kf,_u,C7,fi,Ic,oi,vu,_e,Dc,Kn,Mf,Du,rs,Un,Gn,e7,Nf,ac,Bn,Jn,Si,Ff,Qi,Tu,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z(u,v*8|0,T6(N2(r,v)[1+v]));var a=v+1|0;if(i===v)break;var v=a}ua(u,t*8|0,1);var l=pq(u);ua(u,t*8|0,2);var m=pq(u),h=a5(m,8),T=a5(m,0),b=a5(l,8);return mq(e,a5(l,0),b,T,h),e}for(;;){var zq=R3(WN);let x=[0,1],r=zq;if(!(1-Bm(WN,zq,function(e){return Bm(x,1,0)&&(yv(hv(Bq),O),yv(hv(Xq),O)),d(r,0)})))break}if(R3(Ab0))throw W0([0,u5,UV],1);var pa=HN([0,fx]),gv=HN([0,fx]),Ha=HN([0,We]),Kq=XN(0,0),Ib0=2,Nb0=[0,0];function Jq(x){return 2=0)for(var c=i;;){var v=(c*2|0)+3|0,a=N2(x,c)[1+c];N2(e,v)[1+v]=a;var l=c+1|0;if(u===c)break;var c=l}return[0,Ib0,e,gv[1],Ha[1],0,0,pa[1],0]}function Sj(x,r){var e=x[2].length-1;if(e=0)for(var u=t;;){var i=q2(x,u);r[1]=(kk*r[1]|0)+i|0;var c=u+1|0;if(e===u)break;var u=c}r[1]=r[1]&QF;var v=1073741823r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}}function Nj(x,r){try{var e=pa[17].call(null,r,x[7]);return e}catch(i){var t=U2(i);if(t!==os)throw W0(t,0);var u=x[1];return x[1]=u+1|0,P(r,Z0)&&(x[7]=pa[2].call(null,r,u,x[7])),u}}function jj(x){return B3(x,0)?[0]:x}function Cj(x,r,e,t,u,i){var c=u[2],v=u[4],a=Ij(r),l=Ij(e),m=Ij(t),h=vs(function(H){return z6(x,H)},l),T=vs(function(H){return z6(x,H)},m);x[5]=[0,[0,x[3],x[4],x[6],x[7],h,a],x[5]],x[7]=pa[24].call(null,function(H,t0,c0){return QN(H,a)?pa[2].call(null,H,t0,c0):c0},x[7],pa[1]);var b=[0,gv[1]],N=[0,Ha[1]];JM(function(H,t0){b[1]=gv[2].call(null,H,t0,b[1]);var c0=N[1];try{var r0=Ha[17].call(null,t0,x[4]),v0=r0}catch(g0){var a0=U2(g0);if(a0!==os)throw W0(a0,0);var v0=1}N[1]=Ha[2].call(null,t0,v0,c0)},m,T),JM(function(H,t0){b[1]=gv[2].call(null,H,t0,b[1]),N[1]=Ha[2].call(null,t0,0,N[1])},l,h),x[3]=b[1],x[4]=N[1],x[6]=$N(function(H,t0){return QN(H[1],h)?t0:[0,H,t0]},x[6],0);var j=i?d(c(x),v):c(x),I=C6(x[5]),F=I[6],M=I[5],z=I[4],B=I[3],K=I[2],n0=I[1];x[5]=KM(x[5]),x[7]=m1(function(H,t0){var c0=pa[17].call(null,t0,x[7]);return pa[2].call(null,t0,c0,H)},z,F),x[3]=n0,x[4]=K,x[6]=$N(function(H,t0){return QN(H[1],M)?t0:[0,H,t0]},x[6],B);var $=[0,o5(function(H){var t0=z6(x,H);try{for(var c0=x[6];;){if(!c0)throw W0(os,1);var r0=c0[1],v0=c0[2],a0=r0[2];if(kM(r0[1],t0)===0)return a0;var c0=v0}}catch(i0){var g0=U2(i0);if(g0===os)return N2(x[2],t0)[1+t0];throw W0(g0,0)}},jj(t)),0];return yz([0,[0,j],[0,o5(function(H){try{var t0=pa[17].call(null,H,x[7]);return t0}catch(r0){var c0=U2(r0);throw c0===os?W0([0,Nr,BV],1):W0(c0,0)}},jj(r)),$]])}function d5(x,r){if(x===0)var e=Gq([0]);else{var t=Gq(o5(jb0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var c=i;;){var v=(c*2|0)+2|0;t[3]=gv[2].call(null,x[1+c],v,t[3]),t[4]=Ha[2].call(null,v,1,t[4]);var a=c+1|0;if(u===c)break;var c=a}var e=t}var l=r(e);return e[8]=ix(e[8]),Sj(e,3+((N2(e[2],1)[2]*16|0)/32|0)|0),[0,d(l,0),r,,0]}function y5(x,r){if(x)return x;var e=XN(n2,r[1]);return e[1]=r[2],TK(e)}function Oj(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;u;){var i=u[2];d(u[1],r);var u=i}return r}function g5(x){var r=Aj(x);x:{if(r%2|0&&(2+((N2(x[2],1)[2]*16|0)/32|0)|0)>=r){var e=Aj(x);break x}var e=r}return N2(x[2],e)[1+e]=0,e}function Dj(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return;var u=e[1],i=function(K0){e[1]++;var A0=e[1];return N2(r,A0)[1+A0]},c=N2(r,u)[1+u],v=i(O);if(typeof v=="number")switch(v){case 0:let K0=i(O);var S0=function(ux){return K0};break;case 1:let A0=i(O);var S0=function(ux){return ux[1+A0]};break;case 2:var a=i(O);let $0=a,ex=i(O);var S0=function(ux){return ux[1+$0][1+ex]};break;case 3:let xx=i(O);var S0=function(ux){return d(ux[1][1+xx],ux)};break;case 4:let tx=i(O);var S0=function(ux,Lx){return ux[1+tx]=Lx,0};break;case 5:var l=i(O);let z0=l,px=i(O);var S0=function(ux){return d(z0,px)};break;case 6:var m=i(O);let sx=m,Q=i(O);var S0=function(ux){return d(sx,ux[1+Q])};break;case 7:var h=i(O),T=i(O);let b0=h,U=T,h0=i(O);var S0=function(ux){return d(b0,ux[1+U][1+h0])};break;case 8:var b=i(O);let _0=b,m0=i(O);var S0=function(ux){return d(_0,d(ux[1][1+m0],ux))};break;case 9:var N=i(O),j=i(O);let T0=N,X=j,Gx=i(O);var S0=function(ux){return p(T0,X,Gx)};break;case 10:var I=i(O),F=i(O);let Px=I,G0=F,Kr=i(O);var S0=function(ux){return p(Px,G0,ux[1+Kr])};break;case 11:var M=i(O),z=i(O),B=i(O);let S=M,G=z,rx=B,yx=i(O);var S0=function(ux){return p(S,G,ux[1+rx][1+yx])};break;case 12:var K=i(O),n0=i(O);let Ex=K,nx=n0,p0=i(O);var S0=function(ux){return p(Ex,nx,d(ux[1][1+p0],ux))};break;case 13:var $=i(O),H=i(O);let Fx=$,Sx=H,bx=i(O);var S0=function(ux){return p(Fx,ux[1+Sx],bx)};break;case 14:var t0=i(O),c0=i(O),r0=i(O);let B0=t0,Wx=c0,Yx=r0,ax=i(O);var S0=function(ux){return p(B0,ux[1+Wx][1+Yx],ax)};break;case 15:var v0=i(O),a0=i(O);let Qx=v0,kx=a0,tr=i(O);var S0=function(ux){return p(Qx,d(ux[1][1+kx],ux),tr)};break;case 16:var g0=i(O);let sr=g0,Mr=i(O);var S0=function(ux){return p(ux[1][1+sr],ux,Mr)};break;case 17:var i0=i(O);let a2=i0,_2=i(O);var S0=function(ux){return p(ux[1][1+a2],ux,ux[1+_2])};break;case 18:var s0=i(O),d0=i(O);let i2=s0,Q2=d0,jx=i(O);var S0=function(ux){return p(ux[1][1+i2],ux,ux[1+Q2][1+jx])};break;case 19:var w0=i(O);let _=w0,V=i(O);var S0=function(ux){var Lx=d(ux[1][1+V],ux);return p(ux[1][1+_],ux,Lx)};break;case 20:var M0=i(O),C0=i(O);g5(x);let lx=M0,U0=C0;var S0=function(ux){return d(Bx(U0,lx,0),U0)};break;case 21:var D0=i(O),I0=i(O);g5(x);let ox=D0,wx=I0;var S0=function(ux){var Lx=ux[1+wx];return d(Bx(Lx,ox,0),Lx)};break;case 22:var j0=i(O),y0=i(O),Y0=i(O);g5(x);let Cr=j0,Hx=y0,Zr=Y0;var S0=function(ux){var Lx=ux[1+Hx][1+Zr];return d(Bx(Lx,Cr,0),Lx)};break;default:var L=i(O),N0=i(O);g5(x);let dr=L,Or=N0;var S0=function(ux){var Lx=d(ux[1][1+Or],ux);return d(Bx(Lx,dr,0),Lx)}}else var S0=v;Wq(x,c,S0),e[1]++}}function Vq(x,r){var e=r.length-1,t=XN(0,e),u=e-1|0,i=0;if(u>=0)for(var c=i;;){var v=N2(r,c)[1+c];if(typeof v=="number")switch(v){case 0:let N=c;var a=function(z){var B=t[1+N];if(j===B)throw W0([0,I6,x],1);return d(B,z)};let j=a;var h=a;break;case 1:var l=[];let I=l,F=c;Fr(l,[A3,function(z){var B=t[1+F];if(I===B)throw W0([0,I6,x],1);var K=pv(B);if(D3===K)return B[1];if(A3!==K&&zo!==K)return B;if(xK(B)!==0)throw W0(Tb0,1);var n0=B[1];B[1]=0;try{var $=d(n0,0);return B[1]=$,rK(B),$}catch(t0){var H=U2(t0);throw B[1]=function(c0){throw W0(H,0)},Zz(B),W0(H,0)}}]);var h=l;break;default:var m=function(z){throw W0([0,I6,x],1)},h=[0,m,m,m,0]}else var h=v[0]===0?Vq(x,v[1]):v[1];t[1+c]=h;var T=c+1|0;if(u===c)break;var c=T}return t}function $q(x,r,e){if(pv(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=e[1+i],v=N2(x,i)[1+i];x:if(typeof v=="number"){if(v===2){if(pv(c)===0&&c.length-1===4){for(var a=0,l=r[1+i];;){l[1+a]=c[1+a];var m=a+1|0;if(a===3)break;var a=m}break x}throw W0([0,Nr,XV],1)}r[1+i]=c}else v[0]===0&&$q(v[1],r[1+i],c);var h=i+1|0;if(t===i)break;var i=h}return}throw W0([0,Nr,YV],1)}try{var Ob0=CM("TMPDIR"),Fj=Ob0}catch(x){var Qq=U2(x);if(Qq!==os)throw W0(Qq,0);var Fj=zV}var Db0=[0,,,,,,,,,,Fj];try{var Fb0=CM("TEMP"),Hq=Fb0}catch(x){var Zq=U2(x);if(Zq!==os)throw W0(Zq,0);var Hq=KV}var Rb0=[0,,,,,,,,,,Hq],Lb0=[0,,,,,,,,,,Fj],Mb0=P(YM,WD)?P(YM,"Win32")?Db0:Rb0:Lb0,qb0=Mb0[10];ls(0,Pb0),ls([0,function(x){return x}],function(x){return qb0});function ps(x,r){function e(t){return lt(x,t)}return c6<=r?(e(w3|r>>>18|0),e(M2|(r>>>12|0)&63),e(M2|(r>>>6|0)&63),e(M2|r&63)):t_<=r?(e(s3|r>>>12|0),e(M2|(r>>>6|0)&63),e(M2|r&63)):M2<=r?(e(a3|r>>>6|0),e(M2|r&63)):e(r)}var Za=[n2,WV,as(0)],xU=0,rU=0,eU=0,tU=0,nU=0,uU=0,iU=0,fU=0,cU=0,sU=0;function y(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r}function W(x,r){x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r}function or(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],W(x,-1)}function w(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]}function xl(x){x[3]=x[6],x[4]=x[7],x[5]=x[8]}function Rj(x,r){x[6]=r}function w5(x){return x[3]-x[6]|0}function l2(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?gz(t,e,r):R1(qV)}function aU(x){var r=x[6];return N2(x[1],r)[1+r]}function K6(x,r,e,t){for(var u=[0,r],i=[0,e],c=[0,0];;){if(0>=i[1])return c[1];var v=x[1+u[1]];if(0>v)throw W0(Za,1);if(Br>>18|0),Xr(t,c[1]+1|0,M2|(v>>>12|0)&63),Xr(t,c[1]+2|0,M2|(v>>>6|0)&63),Xr(t,c[1]+3|0,M2|v&63),c[1]=c[1]+4|0}else Xr(t,c[1],s3|v>>>12|0),Xr(t,c[1]+1|0,M2|(v>>>6|0)&63),Xr(t,c[1]+2|0,M2|v&63),c[1]=c[1]+3|0;else Xr(t,c[1],a3|v>>>6|0),Xr(t,c[1]+1|0,M2|v&63),c[1]=c[1]+2|0;else Xr(t,c[1],v),c[1]++;u[1]++,i[1]+=-1}}function oU(x){for(var r=Nx(x),e=$a(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],sU,cU,fU,iU,uU,nU,tU,eU,rU,xU];var i=J0(x,t[1]);x:{if(a3<=i){if(w3>i){if(s3>i){var c=J0(x,t[1]+1|0);if((c>>>6|0)!==2)throw W0(Za,1);e[1+u[1]]=(i&31)<<6|c&63,t[1]=t[1]+2|0;break x}var v=J0(x,t[1]+1|0),a=J0(x,t[1]+2|0),l=(i&15)<<12|(v&63)<<6|a&63,m=(v>>>6|0)!==2?1:0,h=m||((a>>>6|0)!==2?1:0);if(h)var b=h;else var T=55296<=l?1:0,b=T&&(l<=57343?1:0);if(b)throw W0(Za,1);e[1+u[1]]=l,t[1]=t[1]+3|0;break x}if(n2>i){var N=J0(x,t[1]+1|0),j=J0(x,t[1]+2|0),I=J0(x,t[1]+3|0),F=(N>>>6|0)!==2?1:0;if(F)var z=F;else var M=(j>>>6|0)!==2?1:0,z=M||((I>>>6|0)!==2?1:0);if(z)throw W0(Za,1);var B=(i&7)<<18|(N&63)<<12|(j&63)<<6|I&63;if(rki){e[1+u[1]]=i,t[1]++;break x}throw W0(Za,1)}u[1]++}}function J6(x,r,e){var t=x[6]+r|0,u=S2(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return G3(u,0,K6(i,t,e,u));throw W0([0,Nr,GV],1)}function Dx(x){var r=x[6],e=x[3]-r|0,t=S2(e*4|0);return G3(t,0,K6(x[1],r,e,t))}function _5(x,r){var e=x[6],t=x[3]-e|0,u=S2(t*4|0);return tj(r,u,0,K6(x[1],e,t,u))}function G6(x){var r=x.length-1,e=S2(r*4|0);return G3(e,0,K6(x,0,r,e))}function vU(x,r){x[3]=x[3]-r|0}function ks(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function wv(x,r,e,t){var u=ks(x),i=ks(t),c=i<=u?u+1|0:i+1|0;return c===1?[0,r,e]:[1,c,r,e,x,t]}function b5(x,r,e,t){var u=ks(x),i=ks(t),c=i<=u?u+1|0:i+1|0;return[1,c,r,e,x,t]}function lU(x,r,e,t){var u=ks(x),i=ks(t);if((i+2|0)=i)return wv(x,r,e,t);var j=t[5],I=t[4],F=t[3],M=t[2],z=ks(I);if(z<=ks(j))return b5(wv(x,r,e,I),M,F,j);var B=I[4],K=I[3],n0=I[2],$=wv(I[5],M,F,j);return b5(wv(x,r,e,B),n0,K,$)}function xo(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function ka(x,r,e){x:{r:{if(typeof x=="number"){if(typeof e=="number")return[0,r];if(e[0]===1)break r}else{if(x[0]!==0){var t=x[1];if(typeof e!="number"&&e[0]===1){var u=e[1],i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}var c=t;break x}if(typeof e!="number"&&e[0]===1)break r}return[1,2,r,x,e]}var c=e[1]}return[1,c+1|0,r,x,e]}function T5(x,r,e){var t=xo(x),u=xo(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}function pU(x,r,e){var t=xo(x),u=xo(e);if((u+2|0)=u)return ka(x,r,e);var T=e[4],b=e[3],N=e[2],j=xo(b);if(j<=xo(T))return T5(ka(x,r,b),N,T);var I=b[3],F=b[2],M=ka(b[4],N,T);return T5(ka(x,r,I),F,M)}var Lj=0;function kU(x){function r(e,t){if(typeof t=="number")return[0,e];if(t[0]===0){var u=t[1],i=p(x[1],e,u);return i===0?t:0<=i?ka(t,e,Lj):ka([0,e],u,Lj)}var c=t[4],v=t[3],a=t[2],l=p(x[1],e,a);if(l===0)return t;if(0<=l){var m=r(e,c);return c===m?t:pU(v,a,m)}var h=r(e,v);return v===h?t:pU(h,a,c)}return[0,Lj,,function(e,t){for(var u=t;;){if(typeof u=="number")return 0;if(u[0]===0)return p(x[1],e,u[1])===0?1:0;var i=u[4],c=u[3],v=p(x[1],e,u[2]),a=v===0?1:0;if(a)return a;var l=0<=v?i:c,u=l}},r]}function mU(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}}function Ax(x,r){if(!r)return r;var e=r[1],t=d(x,e);return e===t?r:[0,t]}function O0(x,r,e,t,u){var i=p(x,r,e);return e===i?t:u(i)}function P0(x,r,e,t){var u=d(x,r);return r===u?e:t(u)}function W2(x,r){var e=r[1];return O0(x,e,r[2],r,function(t){return[0,e,t]})}function W6(x,r){return Ax(function(e){var t=e[1];return O0(x,t,e[2],e,function(u){return[0,t,u]})},r)}function fr(x,r){var e=m1(function(u,i){var c=u[2],v=u[1],a=d(x,i),l=c||(a!==i?1:0);return[0,[0,a,v],l]},S$,r),t=e[1];return e[2]?ix(t):r}var Mj=d5(P$,function(x){var r=Pj(x,A$),e=r[1],t=r[2],u=r[3],i=r[4],c=r[5],v=r[6],a=r[7],l=r[8],m=r[9],h=r[10],T=r[11],b=r[12],N=r[13],j=r[14],I=r[15],F=r[16],M=r[17],z=r[18],B=r[19],K=r[20],n0=r[21],$=r[22],H=r[23],t0=r[24],c0=r[25],r0=r[26],v0=r[27],a0=r[28],g0=r[29],i0=r[30],s0=r[31],d0=r[32],w0=r[33],M0=r[34],C0=r[35],D0=r[36],I0=r[37],j0=r[38],y0=r[39],Y0=r[40],L=r[41],N0=r[42],S0=r[43],K0=r[44],A0=r[45],$0=r[46],ex=r[47],xx=r[48],tx=r[49],z0=r[50],px=r[51],sx=r[52],Q=r[53],b0=r[54],U=r[55],h0=r[56],_0=r[57],m0=r[59],T0=r[60],X=r[61],Gx=r[62],Px=r[63],G0=r[64],Kr=r[65],S=r[66],G=r[67],rx=r[68],yx=r[69],Ex=r[70],nx=r[71],p0=r[72],Fx=r[73],Sx=r[74],bx=r[75],B0=r[76],Wx=r[77],Yx=r[78],ax=r[79],Qx=r[80],kx=r[81],tr=r[82],sr=r[83],Mr=r[84],a2=r[85],_2=r[86],i2=r[87],Q2=r[88],jx=r[89],_=r[90],V=r[91],lx=r[92],U0=r[93],ox=r[94],wx=r[95],Cr=r[96],Hx=r[97],Zr=r[98],dr=r[99],Or=r[y2],x2=r[fe],ux=r[g1],Lx=r[sn],Zx=r[Be],qr=r[ui],Y2=r[Je],H2=r[K2],Kt=r[sv],dt=r[st],Jt=r[z1],C1=r[ce],q1=r[ea],b2=r[Te],wn=r[mr],_n=r[tv],bs=r[Wa],le=r[y6],Ze=r[P3],Ts=r[zl],Lv=r[vf],yt=r[m6],yr=r[s2],Ta=r[rn],Es=r[S3],gt=r[Ba],Mv=r[Sk],qv=r[Br],bn=r[M2],Ea=r[Xo],ko=r[d6],Sa=r[r6],Aa=r[r8],Pa=r[_k],mo=r[wR],Ss=r[fR],H1=r[jD],d1=r[QO],Ia=r[OI],As=r[GF],Gt=r[CL],Uv=r[SR],ho=r[$L],Bv=r[143],Xv=r[144],dl=r[145],Na=r[146],yo=r[147],go=r[148],ja=r[149],Ca=r[150],yl=r[DR],Ps=r[152],Yh=r[153],wo=r[154],T4=r[155],_o=r[156],gl=r[NL],E4=r[158],bo=r[159],S4=r[bL],zh=r[nL],Kh=r[LR],Jh=r[lr],Gh=r[hD],A4=r[_F],P4=r[rD],I4=r[mF],wl=r[XP],Y=r[Ap],A=r[Ed],D=r[Uw],f0=r[QD],k0=r[bR],R0=r[DL],Q0=r[RD],mx=r[BF],Ix=r[VR],Rx=r[ng],nr=r[zL],zx=r[jg],ur=r[JE],kr=r[yy],rr=r[K9],Cx=r[p6],gr=r[bO],Er=r[mA],Jr=r[gp],Sr=r[U9],Gr=r[O8],k2=r[sR],P2=r[wL],Dr=r[a3],m2=r[mD],r2=r[PI],Ar=r[Db],wr=r[iL],f2=r[PD],Ur=r[OL],Qr=r[hL],T2=r[pL],Rr=r[nF],d2=r[eD],o2=r[Gd],c2=r[xR],E2=r[$T],pe=r[c_],je=r[kF],xt=r[DO],U1=r[HD],e2=r[nD],Z1=r[J9],R2=r[xF],wt=r[tD],O1=r[FL],_t=r[gg],Wt=r[pd],rt=r[pR],et=r[yO],Ox=r[vA],tt=r[dF],xe=r[JF],v1=r[zO],Ce=r[kk],Oe=r[s3],nt=r[VD],ut=r[KF],it=r[_R],r1=r[KO],bt=r[oL],Tt=r[cF],Is=r[UO],ft=r[dO],Vt=r[tL],D1=r[vL],Tn=r[ER],ke=r[PR],De=r[yL],$t=r[UF],Ns=r[Fy],En=r[w3],js=r[gF],re=r[YR],Et=r[MR],Cs=r[zo],Sn=r[HT],Fe=r[A3],Os=r[ep],Ds=r[n2],To=r[WE],Eo=r[D3],Yv=r[KL],zv=r[g3],So=r[lE],Ao=r[d3],_l=r[Hp],Kv=r[Hl],bl=r[257],Tl=r[LO],Fs=r[_L],Po=r[260],Jv=r[261],El=r[262],Rs=r[263],Gv=r[264],Oa=r[265],Sl=r[$D],Wv=r[267],Io=r[268],Al=r[269],Da=r[270],Ls=r[UL],No=r[yD],jo=r[273],Fa=r[274],Pl=r[aD],Il=r[276],Nl=r[eF],Co=r[m_],An=r[Vb],Ra=r[280],jl=r[fL],Oo=r[282],Vv=r[283],Ms=r[284],$v=r[285],St=r[VL],F1=r[YD],Qv=r[288],Hv=r[289],Cl=r[290],Do=r[BR],Fo=r[292],Zv=r[RF],Ol=r[294],x3=r[295],Wh=r[296],Qt=r[wD],Pn=r[298],r3=r[299],Vh=r[dD],qs=r[301],e3=r[bF],$h=r[AD],Qh=r[304],Hh=r[305],Zh=r[306],t3=r[xL],N4=r[308],xd=r[fD],j4=r[jO];return Dj(x,[0,r[58],function(n,s){var f=s[2],o=f[4],k=f[3],g=f[1],E=f[2],C=s[1],R=p(n[1][1+C0],n,g),e0=p(n[1][1+L],n,k),l0=fr(d(n[1][1+jo],n),o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,E,e0,l0]]},tx,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+Qt],n),o,k,s,function(cx){return[0,o,[0,cx]]});case 1:var g=f[1];return O0(d(n[1][1+Ol],n),o,g,s,function(cx){return[0,o,[1,cx]]});case 2:var E=f[1];return O0(d(n[1][1+$v],n),o,E,s,function(cx){return[0,o,[2,cx]]});case 3:var C=f[1];return O0(d(n[1][1+Ls],n),o,C,s,function(cx){return[0,o,[3,cx]]});case 4:var R=f[1];return O0(d(n[1][1+Kv],n),o,R,s,function(cx){return[0,o,[4,cx]]});case 5:var e0=f[1];return O0(d(n[1][1+_l],n),o,e0,s,function(cx){return[0,o,[5,cx]]});case 6:var l0=f[1];return O0(d(n[1][1+Ao],n),o,l0,s,function(cx){return[0,o,[6,cx]]});case 7:var F0=f[1];return O0(d(n[1][1+So],n),o,F0,s,function(cx){return[0,o,[7,cx]]});case 8:var dx=f[1];return O0(d(n[1][1+zv],n),o,dx,s,function(cx){return[0,o,[8,cx]]});case 9:var Xx=f[1];return O0(d(n[1][1+Yv],n),o,Xx,s,function(cx){return[0,o,[9,cx]]});case 10:var Kx=f[1];return O0(d(n[1][1+To],n),o,Kx,s,function(cx){return[0,o,[10,cx]]});case 11:var _r=f[1];return O0(d(n[1][1+Ds],n),o,_r,s,function(cx){return[0,o,[11,cx]]});case 12:var t2=f[1];return O0(d(n[1][1+Os],n),o,t2,s,function(cx){return[0,o,[12,cx]]});case 13:var Wr=f[1];return O0(d(n[1][1+Fe],n),o,Wr,s,function(cx){return[0,o,[13,cx]]});case 14:var Vx=f[1];return O0(d(n[1][1+Sn],n),o,Vx,s,function(cx){return[0,o,[14,cx]]});case 15:var C2=f[1];return O0(d(n[1][1+Cs],n),o,C2,s,function(cx){return[0,o,[15,cx]]});case 16:var z2=f[1];return O0(d(n[1][1+i2],n),o,z2,s,function(cx){return[0,o,[16,cx]]});case 17:var ee=f[1];return O0(d(n[1][1+Et],n),o,ee,s,function(cx){return[0,o,[17,cx]]});case 18:var me=f[1];return O0(d(n[1][1+js],n),o,me,s,function(cx){return[0,o,[18,cx]]});case 19:var he=f[1];return O0(d(n[1][1+En],n),o,he,s,function(cx){return[0,o,[19,cx]]});case 20:var te=f[1];return O0(d(n[1][1+D1],n),o,te,s,function(cx){return[0,o,[20,cx]]});case 21:var de=f[1];return O0(d(n[1][1+nt],n),o,de,s,function(cx){return[0,o,[21,cx]]});case 22:var ye=f[1];return O0(d(n[1][1+Ce],n),o,ye,s,function(cx){return[0,o,[22,cx]]});case 23:var ge=f[1];return O0(d(n[1][1+rt],n),o,ge,s,function(cx){return[0,o,[23,cx]]});case 24:var At=f[1];return O0(d(n[1][1+je],n),o,At,s,function(cx){return[0,o,[24,cx]]});case 25:var we=f[1];return O0(d(n[1][1+O1],n),o,we,s,function(cx){return[0,o,[25,cx]]});case 26:var ct=f[1];return O0(d(n[1][1+U1],n),o,ct,s,function(cx){return[0,o,[26,cx]]});case 27:var Us=f[1];return O0(d(n[1][1+d2],n),o,Us,s,function(cx){return[0,o,[27,cx]]});case 28:var Bs=f[1];return O0(d(n[1][1+ur],n),o,Bs,s,function(cx){return[0,o,[28,cx]]});case 29:var Xs=f[1];return O0(d(n[1][1+nr],n),o,Xs,s,function(cx){return[0,o,[29,cx]]});case 30:var In=f[1];return O0(d(n[1][1+A],n),o,In,s,function(cx){return[0,o,[30,cx]]});case 31:var Ys=f[1];return O0(d(n[1][1+As],n),o,Ys,s,function(cx){return[0,o,[31,cx]]});case 32:var zs=f[1];return O0(d(n[1][1+yr],n),o,zs,s,function(cx){return[0,o,[32,cx]]});case 33:var n3=f[1];return O0(d(n[1][1+Q],n),o,n3,s,function(cx){return[0,o,[33,cx]]});case 34:var u3=f[1];return O0(d(n[1][1+K0],n),o,u3,s,function(cx){return[0,o,[34,cx]]});case 35:var i3=f[1];return O0(d(n[1][1+D0],n),o,i3,s,function(cx){return[0,o,[35,cx]]});case 36:var f3=f[1];return O0(d(n[1][1+M0],n),o,f3,s,function(cx){return[0,o,[36,cx]]});case 37:var _x=f[1];return O0(d(n[1][1+v0],n),o,_x,s,function(cx){return[0,o,[37,cx]]});case 38:var c3=f[1];return O0(d(n[1][1+i2],n),o,c3,s,function(cx){return[0,o,[38,cx]]});case 39:var hx=f[1];return O0(d(n[1][1+l],n),o,hx,s,function(cx){return[0,o,[39,cx]]});case 40:var eO=f[1];return O0(d(n[1][1+u],n),o,eO,s,function(cx){return[0,o,[40,cx]]});default:var tO=f[1];return O0(d(n[1][1+t],n),o,tO,s,function(cx){return[0,o,[41,cx]]})}},jo,function(n,s){return s},L,function(n){var s=d(n[1][1+N0],n);return function(f){return Ax(s,f)}},N0,function(n,s){var f=s[2],o=s[1],k=s[3],g=fr(d(n[1][1+jo],n),o),E=fr(d(n[1][1+jo],n),f);return o===g&&f===E?s:[0,g,E,k]},Ox,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+xd],n),o,k,s,function(hx){return[0,o,[0,hx]]});case 1:var g=f[1];return O0(d(n[1][1+Zh],n),o,g,s,function(hx){return[0,o,[1,hx]]});case 2:var E=f[1];return O0(d(n[1][1+Hh],n),o,E,s,function(hx){return[0,o,[2,hx]]});case 3:var C=f[1];return O0(d(n[1][1+Qh],n),o,C,s,function(hx){return[0,o,[3,hx]]});case 4:var R=f[1];return O0(d(n[1][1+$h],n),o,R,s,function(hx){return[0,o,[4,hx]]});case 5:var e0=f[1];return O0(d(n[1][1+Vh],n),o,e0,s,function(hx){return[0,o,[5,hx]]});case 6:var l0=f[1];return O0(d(n[1][1+Zv],n),o,l0,s,function(hx){return[0,o,[6,hx]]});case 7:var F0=f[1];return O0(d(n[1][1+Oo],n),o,F0,s,function(hx){return[0,o,[7,hx]]});case 8:var dx=f[1];return O0(d(n[1][1+Tl],n),o,dx,s,function(hx){return[0,o,[8,hx]]});case 9:var Xx=f[1];return O0(d(n[1][1+Rr],n),o,Xx,s,function(hx){return[0,o,[9,hx]]});case 10:var Kx=f[1];return P0(d(n[1][1+Cx],n),Kx,s,function(hx){return[0,o,[10,hx]]});case 11:var _r=f[1];return P0(p(n[1][1+zx],n,o),_r,s,function(hx){return[0,o,[11,hx]]});case 12:var t2=f[1];return O0(d(n[1][1+gl],n),o,t2,s,function(hx){return[0,o,[12,hx]]});case 13:var Wr=f[1];return O0(d(n[1][1+yl],n),o,Wr,s,function(hx){return[0,o,[13,hx]]});case 14:var Vx=f[1];return O0(d(n[1][1+$0],n),o,Vx,s,function(hx){return[0,o,[14,hx]]});case 15:var C2=f[1];return O0(d(n[1][1+x3],n),o,C2,s,function(hx){return[0,o,[15,hx]]});case 16:var z2=f[1];return O0(d(n[1][1+dt],n),o,z2,s,function(hx){return[0,o,[16,hx]]});case 17:var ee=f[1];return O0(d(n[1][1+H2],n),o,ee,s,function(hx){return[0,o,[17,hx]]});case 18:var me=f[1];return O0(d(n[1][1+qs],n),o,me,s,function(hx){return[0,o,[18,hx]]});case 19:var he=f[1];return O0(d(n[1][1+h0],n),o,he,s,function(hx){return[0,o,[19,hx]]});case 20:var te=f[1];return O0(d(n[1][1+C1],n),o,te,s,function(hx){return[0,o,[20,hx]]});case 21:var de=f[1];return O0(d(n[1][1+Ia],n),o,de,s,function(hx){return[0,o,[21,hx]]});case 22:var ye=f[1];return O0(d(n[1][1+mo],n),o,ye,s,function(hx){return[0,o,[22,hx]]});case 23:var ge=f[1];return O0(d(n[1][1+Ze],n),o,ge,s,function(hx){return[0,o,[23,hx]]});case 24:var At=f[1];return O0(d(n[1][1+q1],n),o,At,s,function(hx){return[0,o,[24,hx]]});case 25:var we=f[1];return O0(d(n[1][1+Jt],n),o,we,s,function(hx){return[0,o,[25,hx]]});case 26:var ct=f[1];return O0(d(n[1][1+Y2],n),o,ct,s,function(hx){return[0,o,[26,hx]]});case 27:var Us=f[1];return P0(p(n[1][1+_2],n,o),Us,s,function(hx){return[0,o,[27,hx]]});case 28:var Bs=f[1];return O0(d(n[1][1+Mr],n),o,Bs,s,function(hx){return[0,o,[28,hx]]});case 29:var Xs=f[1];return O0(d(n[1][1+sx],n),o,Xs,s,function(hx){return[0,o,[29,hx]]});case 30:var In=f[1];return O0(d(n[1][1+A0],n),o,In,s,function(hx){return[0,o,[30,hx]]});case 31:var Ys=f[1];return O0(d(n[1][1+Y0],n),o,Ys,s,function(hx){return[0,o,[31,hx]]});case 32:var zs=f[1];return O0(d(n[1][1+y0],n),o,zs,s,function(hx){return[0,o,[32,hx]]});case 33:var n3=f[1];return O0(d(n[1][1+I0],n),o,n3,s,function(hx){return[0,o,[33,hx]]});case 34:var u3=f[1];return O0(d(n[1][1+H],n),o,u3,s,function(hx){return[0,o,[34,hx]]});case 35:var i3=f[1];return O0(d(n[1][1+w0],n),o,i3,s,function(hx){return[0,o,[35,hx]]});case 36:var f3=f[1];return O0(d(n[1][1+T],n),o,f3,s,function(hx){return[0,o,[36,hx]]});case 37:var _x=f[1];return O0(d(n[1][1+m],n),o,_x,s,function(hx){return[0,o,[37,hx]]});default:var c3=f[1];return O0(d(n[1][1+e],n),o,c3,s,function(hx){return[0,o,[38,hx]]})}},xd,function(n,s,f){var o=f[2],k=f[1],g=fr(d(n[1][1+N4],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},N4,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+Ox],n),f,s,function(k){return[0,k]});case 1:var o=s[1];return P0(d(n[1][1+px],n),o,s,function(k){return[1,k]});default:return s}},Zh,function(n,s,f){return H0(n[1][1+E2],n,s,f)},Hh,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return g===k&&E===o?f:[0,g,E]},Qh,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},$h,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+e3],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},Vh,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+Ox],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},Qt,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+ex],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Ol,function(n,s,f){var o=f[2],k=f[1],g=Ax(d(n[1][1+Gt],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Zv,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Ox],n,E),R=Ax(d(n[1][1+Do],n),g),e0=p(n[1][1+j4],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},j4,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+et],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},_2,function(n,s,f){var o=f[1],k=H0(n[1][1+Zv],n,s,o);return o===k?f:[0,k,f[2],f[3]]},Do,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Fo],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Fo,function(n,s){if(s[0]===0){var f=s[1],o=p(n[1][1+a0],n,f);return o===f?s:[0,o]}var k=s[1],g=k[2][1],E=k[1],C=p(n[1][1+L],n,g);return g===C?s:[1,[0,E,[0,C]]]},Cl,function(n,s){return W2(d(n[1][1+Qt],n),s)},Hv,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=Ax(d(n[1][1+Qv],n),g),C=p(n[1][1+Cl],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},$v,function(n,s,f){return H0(n[1][1+F1],n,s,f)},Oo,function(n,s,f){return H0(n[1][1+F1],n,s,f)},F1,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[4],C=f[3],R=f[2],e0=f[1],l0=Ax(d(n[1][1+Ra],n),e0),F0=Ax(d(n[1][1+M],n),C),dx=p(n[1][1+St],n,R),Xx=d(n[1][1+jl],n),Kx=Ax(function(Vx){return W2(Xx,Vx)},E),_r=Ax(d(n[1][1+An],n),g),t2=fr(d(n[1][1+Ms],n),k),Wr=p(n[1][1+L],n,o);return e0===l0&&R===dx&&E===Kx&&g===_r&&k===t2&&o===Wr&&C===F0?f:[0,l0,dx,F0,Kx,_r,t2,Wr]},jl,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=Ax(d(n[1][1+t0],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Ra,function(n,s){return H0(n[1][1+bx],n,v$,s)},St,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Vv],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Ms,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Vv,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+Nl],n),o,k,s,function(F0){return[0,[0,o,F0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+Pl],n),E,C,s,function(F0){return[1,[0,E,F0]]});default:var R=s[1],e0=R[1],l0=R[2];return O0(d(n[1][1+Il],n),e0,l0,s,function(F0){return[2,[0,e0,F0]]})}},An,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Co],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Co,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+B],n,k),C=Ax(d(n[1][1+t0],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},Nl,function(n,s,f){var o=f[6],k=f[5],g=f[3],E=f[2],C=p(n[1][1+ux],n,E),R=W2(d(n[1][1+T2],n),g),e0=fr(d(n[1][1+Ms],n),k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,f[1],C,R,f[4],e0,l0]},Pl,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[3],C=f[2],R=f[1],e0=p(n[1][1+ux],n,R),l0=p(n[1][1+Fa],n,C),F0=p(n[1][1+c0],n,E),dx=p(n[1][1+i],n,g),Xx=fr(d(n[1][1+Ms],n),k),Kx=p(n[1][1+L],n,o);return R===e0&&C===l0&&F0===E&&dx===g&&Xx===k&&Kx===o?f:[0,e0,l0,F0,f[4],dx,Xx,Kx]},Fa,function(n,s){if(typeof s=="number")return s;var f=s[1],o=p(n[1][1+Ox],n,f);return f===o?s:[0,o]},Il,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[3],C=f[2],R=f[1],e0=p(n[1][1+m0],n,R),l0=p(n[1][1+Fa],n,C),F0=p(n[1][1+c0],n,E),dx=p(n[1][1+i],n,g),Xx=fr(d(n[1][1+Ms],n),k),Kx=p(n[1][1+L],n,o);return R===e0&&C===l0&&F0===E&&dx===g&&Xx===k&&Kx===o?f:[0,e0,l0,F0,f[4],dx,Xx,Kx]},re,function(n,s){return Ax(d(n[1][1+Ox],n),s)},Ls,function(n,s,f){var o=f[6],k=f[5],g=f[4],E=f[3],C=f[2],R=f[1],e0=f[7],l0=p(n[1][1+Da],n,R),F0=Ax(d(n[1][1+M],n),C),dx=p(n[1][1+Sl],n,E),Xx=p(n[1][1+No],n,k),Kx=p(n[1][1+Oa],n,g),_r=p(n[1][1+L],n,o);return R===l0&&C===F0&&E===dx&&k===Xx&&g===Kx&&o===_r?f:[0,l0,F0,dx,Kx,Xx,_r,e0]},Da,function(n,s){return H0(n[1][1+bx],n,l$,s)},Sl,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=fr(d(n[1][1+Al],n),g),R=Ax(d(n[1][1+Gv],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Al,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=f[4],C=s[1],R=p(n[1][1+Io],n,g),e0=p(n[1][1+Wv],n,k),l0=p(n[1][1+re],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,l0,E]]},Io,function(n,s){if(s[0]===0)return[0,p(n[1][1+Cx],n,s[1])];var f=s[1],o=f[1];return[1,[0,o,H0(n[1][1+$0],n,o,f[2])]]},Wv,function(n,s){return H0(n[1][1+r3],n,p$,s)},Gv,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Wv],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},No,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Qt],n),f,o,s,function(k){return[0,f,k]})},Tl,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+T0],n,E),R=p(n[1][1+Ox],n,g),e0=p(n[1][1+Ox],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Kv,function(n,s,f){var o=f[2],k=f[1],g=Ax(d(n[1][1+Gt],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},_l,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},Ao,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[4],C=f[3],R=f[2],e0=f[1],l0=p(n[1][1+Ra],n,e0),F0=Ax(d(n[1][1+M],n),R),dx=W2(d(n[1][1+V],n),C),Xx=d(n[1][1+gr],n),Kx=Ax(function(C2){return W2(Xx,C2)},E),_r=d(n[1][1+gr],n),t2=fr(function(C2){return W2(_r,C2)},g),Wr=Ax(d(n[1][1+An],n),k),Vx=p(n[1][1+L],n,o);return l0===e0&&F0===R&&dx===C&&Kx===E&&t2===g&&Wr===k&&Vx===o?f:[0,l0,F0,dx,Kx,t2,Wr,Vx]},So,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Da],n,C),e0=Ax(d(n[1][1+M],n),E),l0=p(n[1][1+Jv],n,g),F0=p(n[1][1+Oa],n,k),dx=p(n[1][1+L],n,o);return C===R&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},Rs,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=Ax(d(n[1][1+M],n),E),R=p(n[1][1+Jv],n,g),e0=p(n[1][1+Oa],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Jv,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=fr(d(n[1][1+El],n),g),R=Ax(d(n[1][1+Po],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},El,function(n,s){var f=s[2],o=f[2],k=f[1],g=f[3],E=s[1],C=p(n[1][1+Io],n,k),R=p(n[1][1+r0],n,o);return k===C&&o===R?s:[0,E,[0,C,R,g]]},Po,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=Ax(d(n[1][1+Cx],n),g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},zv,function(n,s,f){return H0(n[1][1+D1],n,s,f)},Yv,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=W6(d(n[1][1+tt],n),k),e0=Ax(d(n[1][1+xe],n),g),l0=Ax(d(n[1][1+Eo],n),E),F0=p(n[1][1+L],n,o);return k===R&&g===e0&&E===l0&&o===F0?f:[0,C,l0,e0,R,F0]},Eo,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[2],k=f[1],g=H0(n[1][1+Et],n,k,o);return g===o?s:[0,[0,k,g]];case 1:var E=s[1],C=E[2],R=E[1],e0=H0(n[1][1+To],n,R,C);return e0===C?s:[1,[0,R,e0]];case 2:var l0=s[1],F0=l0[2],dx=l0[1],Xx=H0(n[1][1+Ao],n,dx,F0);return Xx===F0?s:[2,[0,dx,Xx]];case 3:var Kx=s[1],_r=Kx[2],t2=Kx[1],Wr=H0(n[1][1+So],n,t2,_r);return Wr===_r?s:[3,[0,t2,Wr]];case 4:var Vx=s[1],C2=p(n[1][1+a0],n,Vx);return C2===Vx?s:[4,C2];case 5:var z2=s[1],ee=z2[2],me=z2[1],he=H0(n[1][1+v0],n,me,ee);return he===ee?s:[5,[0,me,he]];case 6:var te=s[1],de=te[2],ye=te[1],ge=H0(n[1][1+i2],n,ye,de);return ge===de?s:[6,[0,ye,ge]];case 7:var At=s[1],we=At[2],ct=At[1],Us=H0(n[1][1+D],n,ct,we);return Us===we?s:[7,[0,ct,Us]];default:var Bs=s[1],Xs=Bs[2],In=Bs[1],Ys=H0(n[1][1+D1],n,In,Xs);return Ys===Xs?s:[8,[0,In,Ys]]}},To,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Qr],n,E),R=p(n[1][1+r0],n,g),e0=Ax(d(n[1][1+X],n),k),l0=p(n[1][1+L],n,o);return C===E&&R===g&&e0===k&&l0===o?f:[0,C,R,e0,l0]},Ds,function(n,s,f){return H0(n[1][1+D],n,s,f)},Os,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=W2(d(n[1][1+Qt],n),k),C=p(n[1][1+L],n,o);return E===k&&o===C?f:[0,g,E,C]},Fe,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+r0],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Sn,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,k$,g),C=W2(d(n[1][1+Qt],n),k),R=p(n[1][1+L],n,o);return E===g&&C===k&&o===R?f:[0,E,C,R]},Cs,function(n,s,f){return H0(n[1][1+v0],n,s,f)},Et,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=H0(n[1][1+bx],n,[0,k],E),R=p(n[1][1+r0],n,g),e0=p(n[1][1+L],n,o);return C===E&&R===g&&e0===o?f:[0,C,R,k,e0]},js,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+tx],n,g),C=p(n[1][1+T0],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},En,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},D1,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,m$,g),C=p(n[1][1+De],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},De,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+ke],n),k,s,function(e0){return[0,o,[0,e0]]});case 1:var g=f[1];return P0(d(n[1][1+Is],n),g,s,function(e0){return[0,o,[1,e0]]});case 2:var E=f[1];return P0(d(n[1][1+bt],n),E,s,function(e0){return[0,o,[2,e0]]});case 3:var C=f[1];return P0(d(n[1][1+it],n),C,s,function(e0){return[0,o,[3,e0]]});default:var R=f[1];return P0(d(n[1][1+Ns],n),R,s,function(e0){return[0,o,[4,e0]]})}},ke,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+Tn],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},Is,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+Tt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},bt,function(n,s){var f=s[4],o=s[1];if(o[0]===0)var k=o[1],g=d(n[1][1+Vt],n),R=P0(function(l0){return fr(g,l0)},k,o,function(l0){return[0,l0]});else var E=o[1],C=d(n[1][1+r1],n),R=P0(function(l0){return fr(C,l0)},E,o,function(l0){return[1,l0]});var e0=p(n[1][1+L],n,f);return o===R&&f===e0?s:[0,R,s[2],s[3],e0]},it,function(n,s){var f=s[3],o=s[1],k=fr(d(n[1][1+Vt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],g]},Ns,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+$t],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},Vt,function(n,s){var f=s[2][1],o=s[1],k=p(n[1][1+ft],n,f);return f===k?s:[0,o,[0,k]]},Tn,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},Tt,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},r1,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},$t,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},ft,function(n,s){return p(n[1][1+Cx],n,s)},nt,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Oe],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?f:[0,g,E,C]},Oe,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+tx],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Ox],n),o,s,function(k){return[1,k]})},Ce,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=W6(d(n[1][1+tt],n),k),e0=Ax(d(n[1][1+xe],n),g),l0=Ax(d(n[1][1+tx],n),E),F0=p(n[1][1+L],n,o);return k===R&&g===e0&&E===l0&&o===F0?f:[0,l0,e0,R,C,F0]},v1,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Cx],n,k),C=Ax(d(n[1][1+Cx],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},ut,function(n,s){var f=s[2],o=s[1],k=Ax(d(n[1][1+Cx],n),f);return f===k?s:[0,o,k]},xe,function(n,s){if(s[0]===0){var f=s[1],o=fr(d(n[1][1+v1],n),f);return f===o?s:[0,o]}var k=s[1],g=p(n[1][1+ut],n,k);return k===g?s:[1,g]},tt,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},rt,function(n,s,f){var o=f[3],k=f[1],g=f[2],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,E,g,C]},et,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+Ox],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+px],n),o,s,function(k){return[1,k]})},O1,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=p(n[1][1+wt],n,E),e0=p(n[1][1+Ox],n,g),l0=p(n[1][1+tx],n,k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?f:[0,R,e0,l0,C,F0]},wt,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+_t],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Wt],n),o,s,function(k){return[1,k]})},_t,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},U1,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=p(n[1][1+xt],n,E),e0=p(n[1][1+Ox],n,g),l0=p(n[1][1+tx],n,k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?f:[0,R,e0,l0,C,F0]},xt,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+e2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Z1],n),o,s,function(k){return[1,k]})},e2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},je,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=Ax(d(n[1][1+pe],n),C),e0=Ax(d(n[1][1+T0],n),E),l0=Ax(d(n[1][1+Ox],n),g),F0=p(n[1][1+tx],n,k),dx=p(n[1][1+L],n,o);return C===R&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},pe,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+R2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Ox],n),o,s,function(k){return[1,k]})},R2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},wr,function(n,s){var f=s[2],o=f[2],k=f[1],g=f[3],E=s[1],C=p(n[1][1+a0],n,o),R=Ax(d(n[1][1+Cx],n),k);return C===o&&R===k?s:[0,E,[0,R,C,g]]},m2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+wr],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},k2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+r0],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Sr,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+a0],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+$],n),o,s,function(k){return[1,k]})},Gr,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=g[2],C=E[4],R=E[3],e0=E[2],l0=E[1],F0=f[1],dx=f[5],Xx=g[1],Kx=Ax(d(n[1][1+M],n),F0),_r=Ax(d(n[1][1+k2],n),l0),t2=fr(d(n[1][1+wr],n),e0),Wr=Ax(d(n[1][1+m2],n),R),Vx=p(n[1][1+Sr],n,k),C2=p(n[1][1+L],n,o),z2=p(n[1][1+L],n,C);return t2===e0&&Wr===R&&Vx===k&&Kx===F0&&C2===o&&z2===C&&_r===l0?f:[0,Kx,[0,Xx,[0,_r,t2,Wr,z2]],Vx,C2,dx]},Gt,function(n,s){return p(n[1][1+Cx],n,s)},U0,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+a0],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+jx],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+Q2],n),k,s,function(g){return[2,g]})}},jx,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Gr],n),f,o,s,function(k){return[0,f,k]})},Q2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Gr],n),f,o,s,function(k){return[0,f,k]})},ox,function(n,s){var f=s[2],o=f[8],k=f[7],g=f[2],E=f[1],C=f[6],R=f[5],e0=f[4],l0=f[3],F0=s[1],dx=p(n[1][1+ux],n,E),Xx=p(n[1][1+U0],n,g),Kx=p(n[1][1+i],n,k),_r=p(n[1][1+L],n,o);return dx===E&&Xx===g&&Kx===k&&_r===o?s:[0,F0,[0,dx,Xx,l0,e0,R,C,Kx,_r]]},lx,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+a0],n,k),C=p(n[1][1+L],n,o);return E===k&&o===C?s:[0,g,[0,E,C]]},Zx,function(n,s){var f=s[2],o=f[6],k=f[5],g=f[3],E=f[2],C=f[4],R=f[1],e0=s[1],l0=p(n[1][1+a0],n,E),F0=p(n[1][1+a0],n,g),dx=p(n[1][1+i],n,k),Xx=p(n[1][1+L],n,o);return l0===E&&F0===g&&dx===k&&Xx===o?s:[0,e0,[0,R,l0,F0,C,dx,Xx]]},Lx,function(n,s){var f=s[2],o=f[6],k=f[2],g=f[1],E=f[5],C=f[4],R=f[3],e0=s[1],l0=p(n[1][1+Cx],n,g),F0=p(n[1][1+a0],n,k),dx=p(n[1][1+L],n,o);return g===l0&&k===F0&&o===dx?s:[0,e0,[0,l0,F0,R,C,E,dx]]},qr,function(n,s){var f=s[2],o=f[3],k=f[1],g=k[2],E=k[1],C=f[2],R=s[1],e0=H0(n[1][1+Gr],n,E,g),l0=p(n[1][1+L],n,o);return g===e0&&o===l0?s:[0,R,[0,[0,E,e0],C,l0]]},Cr,function(n,s){var f=s[2],o=f[6],k=f[4],g=f[3],E=f[2],C=f[1],R=f[5],e0=s[1],l0=p(n[1][1+z],n,C),F0=p(n[1][1+a0],n,E),dx=p(n[1][1+a0],n,g),Xx=p(n[1][1+i],n,k),Kx=p(n[1][1+L],n,o);return l0===C&&F0===E&&dx===g&&Xx===k&&Kx===o?s:[0,e0,[0,l0,F0,dx,Xx,R,Kx]]},V,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=fr(d(n[1][1+_],n),k),R=p(n[1][1+L],n,o);return C===k&&o===R?f:[0,E,g,C,R]},_,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+ox],n),f,s,function(R){return[0,R]});case 1:var o=s[1];return P0(d(n[1][1+lx],n),o,s,function(R){return[1,R]});case 2:var k=s[1];return P0(d(n[1][1+Zx],n),k,s,function(R){return[2,R]});case 3:var g=s[1];return P0(d(n[1][1+qr],n),g,s,function(R){return[3,R]});case 4:var E=s[1];return P0(d(n[1][1+Lx],n),E,s,function(R){return[4,R]});default:var C=s[1];return P0(d(n[1][1+Cr],n),C,s,function(R){return[5,R]})}},Y,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=d(n[1][1+gr],n),C=fr(function(l0){return W2(E,l0)},k),R=W2(d(n[1][1+V],n),g),e0=p(n[1][1+L],n,o);return C===k&&R===g&&o===e0?f:[0,R,C,e0]},Jr,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+B],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Er],n),o,s,function(k){return[1,k]})},Er,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Jr],n,k),C=p(n[1][1+b2],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},b2,function(n,s){return p(n[1][1+Cx],n,s)},c,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},i,function(n,s){return Ax(d(n[1][1+c],n),s)},t0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+a0],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},M,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+z],n),k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},z,function(n,s){var f=s[2],o=f[5],k=f[4],g=f[2],E=f[1],C=f[3],R=s[1],e0=p(n[1][1+c0],n,g),l0=p(n[1][1+i],n,k),F0=Ax(d(n[1][1+a0],n),o),dx=p(n[1][1+Pn],n,E);return dx===E&&e0===g&&l0===k&&F0===o?s:[0,R,[0,dx,e0,C,l0,F0]]},gr,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Jr],n,g),C=Ax(d(n[1][1+t0],n),k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},k0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+a0],n,g),C=p(n[1][1+a0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},a2,function(n,s,f){var o=f[1],k=f[2],g=H0(n[1][1+k0],n,s,o);return g===o?f:[0,g,k]},$0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},H2,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},qs,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},x3,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+L],n,o);return o===g?f:[0,k,g]},dt,function(n,s,f){return p(n[1][1+L],n,f)},h0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+L],n,o);return o===C?f:[0,E,g,k,C]},C1,function(n,s,f){var o=f[6],k=f[5],g=f[4],E=f[3],C=f[2],R=f[1];return o===p(n[1][1+L],n,o)?f:[0,R,C,E,g,k,o]},Kt,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},bl,function(n,s){var f=s[5],o=s[4],k=s[3],g=s[2],E=s[1],C=p(n[1][1+a0],n,E),R=p(n[1][1+a0],n,g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+a0],n,o),F0=p(n[1][1+L],n,f);return E===C&&g===R&&k===e0&&o===l0&&f===F0?s:[0,C,R,e0,l0,F0]},f0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+z],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},b,function(n,s){var f=s[3],o=s[2],k=s[1],g=p(n[1][1+F],n,k),E=Ax(d(n[1][1+t0],n),o),C=p(n[1][1+L],n,f);return k===g&&B3(o,E)&&f===C?s:[0,g,E,C]},F,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+I],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+N],n),o,s,function(k){return[1,k]})},I,function(n,s){return p(n[1][1+Cx],n,s)},j,function(n,s){return p(n[1][1+Cx],n,s)},N,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+F],n,k),C=p(n[1][1+j],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Uv,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},b0,function(n,s){var f=s[3],o=s[2],k=s[4],g=s[1],E=p(n[1][1+a0],n,o),C=p(n[1][1+L],n,f);return o===E&&f===C?s:[0,g,E,C,k]},_0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},g0,function(n,s){var f=s[3],o=s[1],k=s[2],g=fr(d(n[1][1+d0],n),o),E=p(n[1][1+L],n,f);return o===g&&f===E?s:[0,g,k,E]},d0,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+a0],n),k,s,function(C){return[0,o,[0,C]]});case 1:var g=f[1];return P0(d(n[1][1+s0],n),g,s,function(C){return[0,o,[1,C]]});default:var E=f[1];return P0(d(n[1][1+i0],n),E,s,function(C){return[0,o,[2,C]]})}},s0,function(n,s){var f=s[3],o=s[2],k=s[4],g=s[1],E=p(n[1][1+a0],n,o),C=p(n[1][1+i],n,f);return E===o&&C===f?s:[0,g,E,C,k]},i0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,f);return k===f?s:[0,o,k]},t3,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},h,function(n,s,f){var o=f[2],k=f[1],g=k[3],E=k[2],C=k[1],R=p(n[1][1+a0],n,C),e0=p(n[1][1+a0],n,E),l0=fr(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return R===C&&e0===E&&l0===g&&F0===o?f:[0,[0,R,e0,l0],F0]},wl,function(n,s,f){var o=f[2],k=f[1],g=k[3],E=k[2],C=k[1],R=p(n[1][1+a0],n,C),e0=p(n[1][1+a0],n,E),l0=fr(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return R===C&&e0===E&&l0===g&&F0===o?f:[0,[0,R,e0,l0],F0]},a0,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+L],n),k,s,function(_x){return[0,o,[0,_x]]});case 1:var g=f[1];return P0(d(n[1][1+L],n),g,s,function(_x){return[0,o,[1,_x]]});case 2:var E=f[1];return P0(d(n[1][1+L],n),E,s,function(_x){return[0,o,[2,_x]]});case 3:var C=f[1];return P0(d(n[1][1+L],n),C,s,function(_x){return[0,o,[3,_x]]});case 4:var R=f[1];return P0(d(n[1][1+L],n),R,s,function(_x){return[0,o,[4,_x]]});case 5:var e0=f[1];return P0(d(n[1][1+L],n),e0,s,function(_x){return[0,o,[5,_x]]});case 6:var l0=f[1];return P0(d(n[1][1+L],n),l0,s,function(_x){return[0,o,[6,_x]]});case 7:var F0=f[1];return P0(d(n[1][1+L],n),F0,s,function(_x){return[0,o,[7,_x]]});case 8:var dx=f[1],Xx=f[2];return P0(d(n[1][1+L],n),Xx,s,function(_x){return[0,o,[8,dx,_x]]});case 9:var Kx=f[1];return P0(d(n[1][1+L],n),Kx,s,function(_x){return[0,o,[9,_x]]});case 10:var _r=f[1];return P0(d(n[1][1+L],n),_r,s,function(_x){return[0,o,[10,_x]]});case 11:var t2=f[1];return P0(d(n[1][1+Kt],n),t2,s,function(_x){return[0,o,[11,_x]]});case 12:var Wr=f[1];return O0(d(n[1][1+Gr],n),o,Wr,s,function(_x){return[0,o,[12,_x]]});case 13:var Vx=f[1];return O0(d(n[1][1+Rs],n),o,Vx,s,function(_x){return[0,o,[13,_x]]});case 14:var C2=f[1];return O0(d(n[1][1+V],n),o,C2,s,function(_x){return[0,o,[14,_x]]});case 15:var z2=f[1];return O0(d(n[1][1+Y],n),o,z2,s,function(_x){return[0,o,[15,_x]]});case 16:var ee=f[1];return P0(d(n[1][1+t3],n),ee,s,function(_x){return[0,o,[16,_x]]});case 17:var me=f[1];return P0(d(n[1][1+bl],n),me,s,function(_x){return[0,o,[17,_x]]});case 18:var he=f[1];return P0(d(n[1][1+f0],n),he,s,function(_x){return[0,o,[18,_x]]});case 19:var te=f[1];return O0(d(n[1][1+gr],n),o,te,s,function(_x){return[0,o,[19,_x]]});case 20:var de=f[1];return O0(d(n[1][1+k0],n),o,de,s,function(_x){return[0,o,[20,_x]]});case 21:var ye=f[1];return O0(d(n[1][1+a2],n),o,ye,s,function(_x){return[0,o,[21,_x]]});case 22:var ge=f[1];return O0(d(n[1][1+h],n),o,ge,s,function(_x){return[0,o,[22,_x]]});case 23:var At=f[1];return O0(d(n[1][1+wl],n),o,At,s,function(_x){return[0,o,[23,_x]]});case 24:var we=f[1];return P0(d(n[1][1+b],n),we,s,function(_x){return[0,o,[24,_x]]});case 25:var ct=f[1];return P0(d(n[1][1+Uv],n),ct,s,function(_x){return[0,o,[25,_x]]});case 26:var Us=f[1];return P0(d(n[1][1+b0],n),Us,s,function(_x){return[0,o,[26,_x]]});case 27:var Bs=f[1];return P0(d(n[1][1+_0],n),Bs,s,function(_x){return[0,o,[27,_x]]});case 28:var Xs=f[1];return P0(d(n[1][1+g0],n),Xs,s,function(_x){return[0,o,[28,_x]]});case 29:var In=f[1];return O0(d(n[1][1+$0],n),o,In,s,function(_x){return[0,o,[29,_x]]});case 30:var Ys=f[1];return O0(d(n[1][1+H2],n),o,Ys,s,function(_x){return[0,o,[30,_x]]});case 31:var zs=f[1];return O0(d(n[1][1+qs],n),o,zs,s,function(_x){return[0,o,[31,_x]]});case 32:var n3=f[1];return O0(d(n[1][1+x3],n),o,n3,s,function(_x){return[0,o,[32,_x]]});case 33:var u3=f[1];return P0(d(n[1][1+L],n),u3,s,function(_x){return[0,o,[33,_x]]});case 34:var i3=f[1];return P0(d(n[1][1+L],n),i3,s,function(_x){return[0,o,[34,_x]]});default:var f3=f[1];return P0(d(n[1][1+L],n),f3,s,function(_x){return[0,o,[35,_x]]})}},r0,function(n,s){var f=s[1],o=s[2];return P0(d(n[1][1+a0],n),o,s,function(k){return[0,f,k]})},c0,function(n,s){if(s[0]===0)return s;var f=s[1];return P0(d(n[1][1+r0],n),f,s,function(o){return[1,o]})},Oa,function(n,s){if(s[0]===0)return s;var f=s[2],o=s[1],k=p(n[1][1+b0],n,f);return k===f?s:[1,o,k]},d2,function(n,s,f){return H0(n[1][1+E2],n,s,f)},Rr,function(n,s,f){return H0(n[1][1+T2],n,s,f)},T2,function(n,s,f){return H0(n[1][1+E2],n,s,f)},E2,function(n,s,f){var o=f[10],k=f[9],g=f[8],E=f[7],C=f[3],R=f[2],e0=f[1],l0=f[11],F0=f[6],dx=f[5],Xx=f[4],Kx=Ax(d(n[1][1+Qr],n),e0),_r=Ax(d(n[1][1+M],n),k),t2=p(n[1][1+Ar],n,R),Wr=p(n[1][1+Dr],n,g),Vx=p(n[1][1+o2],n,C),C2=Ax(d(n[1][1+X],n),E),z2=p(n[1][1+L],n,o);return e0===Kx&&R===t2&&C===Vx&&E===C2&&g===Wr&&k===_r&&o===z2?f:[0,Kx,t2,Vx,Xx,dx,F0,C2,Wr,_r,z2,l0]},Ar,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=fr(d(n[1][1+Ur],n),g),e0=Ax(d(n[1][1+r2],n),k),l0=Ax(d(n[1][1+P2],n),E),F0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===F0&&E===l0?s:[0,C,[0,l0,R,e0,F0]]},P2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+r0],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Ur,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+f2],n,k),C=p(n[1][1+re],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Dr,function(n,s){switch(s[0]){case 0:return s;case 1:var f=s[1];return P0(d(n[1][1+r0],n),f,s,function(k){return[1,k]});default:var o=s[1];return P0(d(n[1][1+n0],n),o,s,function(k){return[2,k]})}},o2,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+c2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Wh],n),o,s,function(k){return[1,k]})},c2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Qt],n),f,o,s,function(k){return[0,f,k]})},Wh,function(n,s){return p(n[1][1+Ox],n,s)},Qr,function(n,s){return H0(n[1][1+bx],n,h$,s)},Cx,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},K,function(n,s){return p(n[1][1+Cx],n,s)},B,function(n,s){return p(n[1][1+K],n,s)},Pn,function(n,s){return p(n[1][1+K],n,s)},D,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Pn],n,C),e0=Ax(d(n[1][1+M],n),E),l0=d(n[1][1+gr],n),F0=fr(function(Kx){return W2(l0,Kx)},g),dx=W2(d(n[1][1+V],n),k),Xx=p(n[1][1+L],n,o);return R===C&&e0===E&&F0===g&&dx===k&&Xx===o?f:[0,R,e0,F0,dx,Xx]},A,function(n,s,f){return H0(n[1][1+D],n,s,f)},m0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},Fs,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},zx,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},kr,function(n,s,f){return p(n[1][1+tx],n,f)},rr,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+tx],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},ur,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+T0],n,E),R=H0(n[1][1+kr],n,k!==0?1:0,g),e0=d(n[1][1+rr],n),l0=Ax(function(dx){return W2(e0,dx)},k),F0=p(n[1][1+L],n,o);return E===C&&g===R&&k===l0&&o===F0?f:[0,C,R,l0,F0]},nr,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=W2(d(n[1][1+Q0],n),E),e0=Ax(p(n[1][1+R0],n,C),k),l0=Ax(function(dx){var Xx=dx[1],Kx=dx[2],_r=H0(n[1][1+Rx],n,C,Xx);return _r===Xx?dx:[0,_r,Kx]},g),F0=p(n[1][1+L],n,o);return E===R&&k===e0&&g===l0&&o===F0?f:[0,C,R,l0,e0,F0]},Q0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},R0,function(n,s,f){if(f[0]===0){var o=f[1],k=fr(p(n[1][1+Ix],n,s),o);return o===k?f:[0,k]}var g=f[1],E=g[1],C=g[2];return O0(p(n[1][1+mx],n,s),E,C,f,function(R){return[1,[0,E,R]]})},U,function(n,s){return p(n[1][1+Cx],n,s)},Ix,function(n,s,f){var o=f[3],k=f[2],g=f[1];x:{r:{var E=f[4];if(s){e:{if(g)switch(g[1]){case 0:break r;case 1:break e}if(2<=s){var C=0,R=0;break x}}var C=1,R=0;break x}}var C=1,R=1}var e0=k?p(n[1][1+U],n,o):R?p(n[1][1+Pn],n,o):H0(n[1][1+bx],n,d$,o);if(k)var l0=k[1],F0=C?d(n[1][1+Pn],n):p(n[1][1+bx],n,y$),dx=P0(F0,l0,k,function(Xx){return[0,Xx]});else var dx=0;return k===dx&&o===e0?f:[0,g,dx,e0,E]},Rx,function(n,s,f){var o=2<=s?p(n[1][1+bx],n,g$):d(n[1][1+Pn],n);return d(o,f)},mx,function(n,s,f,o){var k=2<=s?p(n[1][1+bx],n,w$):d(n[1][1+Pn],n);return d(k,o)},gl,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Xv],n,E),R=Ax(d(n[1][1+E4],n),g),e0=p(n[1][1+bo],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},yl,function(n,s,f){var o=f[4],k=f[3],g=p(n[1][1+bo],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],f[2],g,E]},Xv,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=p(n[1][1+_o],n,g),e0=Ax(d(n[1][1+Do],n),k),l0=fr(d(n[1][1+dl],n),o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},E4,function(n,s){var f=s[2][1],o=s[1],k=p(n[1][1+_o],n,f);return f===k?s:[0,o,[0,k]]},dl,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+I4],n),f,s,function(E){return[0,E]})}var o=s[1],k=o[1],g=o[2];return O0(d(n[1][1+Bv],n),k,g,s,function(E){return[1,[0,k,E]]})},Bv,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},I4,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+P4],n,k),C=Ax(d(n[1][1+Jh],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},P4,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+A4],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Gh],n),o,s,function(k){return[1,k]})},A4,function(n,s){return p(n[1][1+Ca],n,s)},Gh,function(n,s){return p(n[1][1+Na],n,s)},Jh,function(n,s){if(s[0]===0){var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+zh],n),o,k,s,function(R){return[0,[0,o,R]]})}var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+Kh],n),E,C,s,function(R){return[1,[0,E,R]]})},Kh,function(n,s,f){return H0(n[1][1+Ps],n,s,f)},zh,function(n,s,f){return H0(n[1][1+$0],n,s,f)},bo,function(n,s){var f=s[2],o=s[1],k=fr(d(n[1][1+S4],n),f);return f===k?s:[0,o,k]},S4,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+gl],n),o,k,s,function(R){return[0,o,[0,R]]});case 1:var g=f[1];return O0(d(n[1][1+yl],n),o,g,s,function(R){return[0,o,[1,R]]});case 2:var E=f[1];return O0(d(n[1][1+Ps],n),o,E,s,function(R){return[0,o,[2,R]]});case 3:var C=f[1];return P0(d(n[1][1+ho],n),C,s,function(R){return[0,o,[3,R]]});default:return s}},Ps,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+L],n,o);if(!k)return o===g?f:[0,0,g];var E=k[1],C=p(n[1][1+Ox],n,E);return E===C&&o===g?f:[0,[0,C],g]},ho,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+Ox],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},_o,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+T4],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+Yh],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+wo],n),k,s,function(g){return[2,g]})}},T4,function(n,s){return p(n[1][1+Ca],n,s)},Yh,function(n,s){return p(n[1][1+Na],n,s)},wo,function(n,s){return p(n[1][1+ja],n,s)},Na,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ca],n,k),C=p(n[1][1+Ca],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},ja,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+yo],n,k),C=p(n[1][1+Ca],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},yo,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+go],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+ja],n),o,s,function(k){return[1,k]})},go,function(n,s){return p(n[1][1+T4],n,s)},Ca,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},As,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Gt],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Ia,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+Ox],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},mo,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=fr(d(n[1][1+Pa],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Pa,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=p(n[1][1+gt],n,E),e0=p(n[1][1+Ox],n,g),l0=Ax(d(n[1][1+Ox],n),k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?s:[0,C,[0,E,g,l0,F0]]},yr,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=fr(d(n[1][1+yt],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},yt,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=p(n[1][1+gt],n,E),e0=W2(d(n[1][1+Qt],n),g),l0=Ax(d(n[1][1+Ox],n),k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?s:[0,C,[0,E,g,l0,F0]]},gt,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+L],n),k,s,function(Vx){return[0,o,[0,Vx]]});case 1:var g=f[1];return O0(d(n[1][1+H2],n),o,g,s,function(Vx){return[0,o,[1,Vx]]});case 2:var E=f[1];return O0(d(n[1][1+qs],n),o,E,s,function(Vx){return[0,o,[2,Vx]]});case 3:var C=f[1];return O0(d(n[1][1+$0],n),o,C,s,function(Vx){return[0,o,[3,Vx]]});case 4:var R=f[1];return O0(d(n[1][1+x3],n),o,R,s,function(Vx){return[0,o,[4,Vx]]});case 5:var e0=f[1];return P0(d(n[1][1+L],n),e0,s,function(Vx){return[0,o,[5,Vx]]});case 6:var l0=f[1];return P0(d(n[1][1+Lv],n),l0,s,function(Vx){return[0,o,[6,Vx]]});case 7:var F0=f[1];return O0(d(n[1][1+Ss],n),o,F0,s,function(Vx){return[0,o,[7,Vx]]});case 8:var dx=f[1];return P0(d(n[1][1+Cx],n),dx,s,function(Vx){return[0,o,[8,Vx]]});case 9:var Xx=f[1];return P0(d(n[1][1+Aa],n),Xx,s,function(Vx){return[0,o,[9,Vx]]});case 10:var Kx=f[1];return P0(d(n[1][1+Ea],n),Kx,s,function(Vx){return[0,o,[10,Vx]]});case 11:var _r=f[1];return P0(d(n[1][1+d1],n),_r,s,function(Vx){return[0,o,[11,Vx]]});case 12:var t2=f[1];return P0(d(n[1][1+Mv],n),t2,s,function(Vx){return[0,o,[12,Vx]]});default:var Wr=f[1];return P0(d(n[1][1+H1],n),Wr,s,function(Vx){return[0,o,[13,Vx]]})}},Lv,function(n,s){var f=s[3],o=s[2],k=o[1],g=s[1],E=o[2],C=O0(d(n[1][1+Ts],n),k,E,o,function(e0){return[0,k,e0]}),R=p(n[1][1+L],n,f);return o===C&&f===R?s:[0,g,C,R]},Ts,function(n,s,f){if(f[0]===0){var o=f[1];return O0(d(n[1][1+H2],n),s,o,f,function(g){return[0,g]})}var k=f[1];return O0(d(n[1][1+qs],n),s,k,f,function(g){return[1,g]})},Aa,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=p(n[1][1+Sa],n,g),R=p(n[1][1+ko],n,k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Sa,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+Cx],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Aa],n),o,s,function(k){return[1,k]})},ko,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+$0],n),o,k,s,function(e0){return[0,[0,o,e0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+H2],n),E,C,s,function(e0){return[1,[0,E,e0]]});default:var R=s[1];return P0(d(n[1][1+Cx],n),R,s,function(e0){return[2,e0]})}},Ss,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,[0,g],k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,g,E,C]},Ea,function(n,s){var f=s[3],o=s[2],k=s[1],g=fr(d(n[1][1+bn],n),k),E=W6(d(n[1][1+Ta],n),o),C=p(n[1][1+L],n,f);return k===g&&o===E&&f===C?s:[0,g,E,C]},bn,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=p(n[1][1+qv],n,g),e0=p(n[1][1+gt],n,k),l0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},qv,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+$0],n),o,k,s,function(e0){return[0,[0,o,e0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+H2],n),E,C,s,function(e0){return[1,[0,E,e0]]});default:var R=s[1];return P0(d(n[1][1+Cx],n),R,s,function(e0){return[2,e0]})}},d1,function(n,s){var f=s[3],o=s[2],k=s[1],g=fr(d(n[1][1+Es],n),k),E=W6(d(n[1][1+Ta],n),o),C=p(n[1][1+L],n,f);return k===g&&o===E&&f===C?s:[0,g,E,C]},Es,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+gt],n,f);return f===k?s:[0,o,k]},Ta,function(n,s,f){var o=f[2],k=f[1],g=W6(d(n[1][1+Ss],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Mv,function(n,s){var f=s[2],o=s[1],k=fr(d(n[1][1+gt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},H1,function(n,s){var f=s[3],o=s[2],k=s[1],g=p(n[1][1+gt],n,k);if(o[0]===0)var E=o[1],e0=P0(p(n[1][1+bx],n,_$),E,o,function(F0){return[0,F0]});else var C=o[1],R=o[2],e0=O0(d(n[1][1+Ss],n),C,R,o,function(F0){return[1,C,F0]});var l0=p(n[1][1+L],n,f);return k===g&&o===e0&&f===l0?s:[0,g,e0,l0]},Ze,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+bs],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Mr,function(n,s,f){var o=f[1],k=H0(n[1][1+Ze],n,s,o);return o===k?f:[0,k,f[2],f[3]]},bs,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+wn],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+le],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+_n],n),k,s,function(g){return[2,g]})}},wn,function(n,s){return p(n[1][1+Cx],n,s)},le,function(n,s){return p(n[1][1+m0],n,s)},_n,function(n,s){return p(n[1][1+Ox],n,s)},q1,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Cx],n,g),C=p(n[1][1+Cx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Jt,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Ox],n,E),R=Ax(d(n[1][1+Do],n),g),e0=Ax(d(n[1][1+j4],n),k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Y2,function(n,s,f){var o=f[2],k=f[1],g=fr(function(C){if(C[0]===0){var R=C[1],e0=p(n[1][1+wx],n,R);return R===e0?C:[0,e0]}var l0=C[1],F0=p(n[1][1+z0],n,l0);return l0===F0?C:[1,F0]},k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},wx,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[3],g=f[2],E=f[1],C=p(n[1][1+ux],n,E),R=p(n[1][1+Ox],n,g);x:if(k){if(C[0]===3){var e0=R[2];if(e0[0]===10){var F0=br(C[1][2][1],e0[1][2][1]);break x}}var l0=E===C?1:0,F0=l0&&(g===R?1:0)}else var F0=k;return E===C&&g===R&&k===F0?s:[0,o,[0,C,R,F0]];case 1:var dx=f[2],Xx=f[1],Kx=p(n[1][1+ux],n,Xx),_r=W2(d(n[1][1+T2],n),dx);return Xx===Kx&&dx===_r?s:[0,o,[1,Kx,_r]];case 2:var t2=f[3],Wr=f[2],Vx=f[1],C2=p(n[1][1+ux],n,Vx),z2=W2(d(n[1][1+T2],n),Wr),ee=p(n[1][1+L],n,t2);return Vx===C2&&Wr===z2&&t2===ee?s:[0,o,[2,C2,z2,ee]];default:var me=f[3],he=f[2],te=f[1],de=p(n[1][1+ux],n,te),ye=W2(d(n[1][1+T2],n),he),ge=p(n[1][1+L],n,me);return te===de&&he===ye&&me===ge?s:[0,o,[3,de,ye,ge]]}},ux,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+Hx],n),f,s,function(R){return[0,R]});case 1:var o=s[1];return P0(d(n[1][1+Zr],n),o,s,function(R){return[1,R]});case 2:var k=s[1];return P0(d(n[1][1+x2],n),k,s,function(R){return[2,R]});case 3:var g=s[1];return P0(d(n[1][1+dr],n),g,s,function(R){return[3,R]});case 4:var E=s[1];return P0(d(n[1][1+m0],n),E,s,function(R){return[4,R]});default:var C=s[1];return P0(d(n[1][1+Or],n),C,s,function(R){return[5,R]})}},Hx,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+$0],n),f,o,s,function(k){return[0,f,k]})},Zr,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+H2],n),f,o,s,function(k){return[0,f,k]})},x2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+qs],n),f,o,s,function(k){return[0,f,k]})},dr,function(n,s){return p(n[1][1+Cx],n,s)},Or,function(n,s){return p(n[1][1+Fs],n,s)},i2,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Pn],n,C),e0=Ax(d(n[1][1+M],n),E),l0=Ax(d(n[1][1+a0],n),g),F0=Ax(d(n[1][1+a0],n),k),dx=p(n[1][1+L],n,o);return C===R&&g===l0&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},f2,function(n,s){return H0(n[1][1+r3],n,b$,s)},v,function(n,s,f){return H0(n[1][1+r3],n,[0,s],f)},Qv,function(n,s){return H0(n[1][1+r3],n,T$,s)},Wt,function(n,s){return p(n[1][1+e3],n,s)},Z1,function(n,s){return p(n[1][1+e3],n,s)},r3,function(n,s,f){var o=s?s[1]:0;return H0(n[1][1+sr],n,[0,o],f)},e3,function(n,s){return H0(n[1][1+sr],n,0,s)},sr,function(n,s,f){var o=f[2],k=f[1];switch(o[0]){case 0:var g=o[1],E=g[3],C=g[2],R=g[1],e0=fr(p(n[1][1+Fx],n,s),R),l0=p(n[1][1+c0],n,C),F0=p(n[1][1+L],n,E);x:{if(e0===R&&l0===C&&F0===E){var dx=o;break x}var dx=[0,[0,e0,l0,F0]]}var we=dx;break;case 1:var Xx=o[1],Kx=Xx[3],_r=Xx[2],t2=Xx[1],Wr=fr(p(n[1][1+tr],n,s),t2),Vx=p(n[1][1+c0],n,_r),C2=p(n[1][1+L],n,Kx);x:{if(Kx===C2&&Wr===t2&&Vx===_r){var z2=o;break x}var z2=[1,[0,Wr,Vx,C2]]}var we=z2;break;case 2:var ee=o[1],me=ee[2],he=ee[1],te=ee[3],de=H0(n[1][1+bx],n,s,he),ye=p(n[1][1+c0],n,me);x:{if(he===de&&me===ye){var ge=o;break x}var ge=[2,[0,de,ye,te]]}var we=ge;break;default:var At=o[1],we=P0(d(n[1][1+B0],n),At,o,function(ct){return[3,ct]})}return o===we?f:[0,k,we]},bx,function(n,s,f){return p(n[1][1+Cx],n,f)},Gx,function(n,s,f,o){return H0(n[1][1+$0],n,f,o)},Sx,function(n,s,f,o){return H0(n[1][1+H2],n,f,o)},Wx,function(n,s,f,o){return H0(n[1][1+qs],n,f,o)},Fx,function(n,s,f){if(f[0]===0){var o=f[1];return P0(p(n[1][1+p0],n,s),o,f,function(g){return[0,g]})}var k=f[1];return P0(p(n[1][1+G0],n,s),k,f,function(g){return[1,g]})},p0,function(n,s,f){var o=f[2],k=o[4],g=o[3],E=o[2],C=o[1],R=f[1],e0=H0(n[1][1+rx],n,s,C),l0=H0(n[1][1+S],n,s,E),F0=p(n[1][1+re],n,g);x:if(k){if(e0[0]===3){var dx=l0[2];if(dx[0]===2){var Kx=br(e0[1][2][1],dx[1][1][2][1]);break x}}var Xx=C===e0?1:0,Kx=Xx&&(E===l0?1:0)}else var Kx=k;return e0===C&&l0===E&&F0===g&&k===Kx?f:[0,R,[0,e0,l0,F0,Kx]]},rx,function(n,s,f){switch(f[0]){case 0:var o=f[1];return P0(p(n[1][1+Kr],n,s),o,f,function(R){return[0,R]});case 1:var k=f[1];return P0(p(n[1][1+G],n,s),k,f,function(R){return[1,R]});case 2:var g=f[1];return P0(p(n[1][1+nx],n,s),g,f,function(R){return[2,R]});case 3:var E=f[1];return P0(p(n[1][1+yx],n,s),E,f,function(R){return[3,R]});default:var C=f[1];return P0(p(n[1][1+Ex],n,s),C,f,function(R){return[4,R]})}},Kr,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Gx],n,s),o,k,f,function(g){return[0,o,g]})},G,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Sx],n,s),o,k,f,function(g){return[0,o,g]})},nx,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Wx],n,s),o,k,f,function(g){return[0,o,g]})},yx,function(n,s,f){return H0(n[1][1+bx],n,s,f)},Ex,function(n,s,f){return p(n[1][1+Fs],n,f)},G0,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Px],n,s,g),R=p(n[1][1+L],n,k);return C===g&&k===R?f:[0,E,[0,C,R]]},S,function(n,s,f){return H0(n[1][1+sr],n,s,f)},Px,function(n,s,f){return H0(n[1][1+sr],n,s,f)},tr,function(n,s,f){switch(f[0]){case 0:var o=f[1];return P0(p(n[1][1+kx],n,s),o,f,function(g){return[0,g]});case 1:var k=f[1];return P0(p(n[1][1+ax],n,s),k,f,function(g){return[1,g]});default:return f}},kx,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Qx],n,s,g),R=p(n[1][1+re],n,k);return g===C&&k===R?f:[0,E,[0,C,R]]},Qx,function(n,s,f){return H0(n[1][1+sr],n,s,f)},ax,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Yx],n,s,g),R=p(n[1][1+L],n,k);return C===g&&k===R?f:[0,E,[0,C,R]]},Yx,function(n,s,f){return H0(n[1][1+sr],n,s,f)},B0,function(n,s){return p(n[1][1+Ox],n,s)},X,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1];if(k)var E=k[1],C=P0(d(n[1][1+Ox],n),E,k,function(e0){return[0,e0]});else var C=k;var R=p(n[1][1+L],n,o);return k===C&&o===R?s:[0,g,[0,C,R]]},T0,function(n,s){return p(n[1][1+Ox],n,s)},n0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+$],n,f);return B3(k,f)?s:[0,o,k]},$,function(n,s){var f=s[2],o=f[3],k=f[2],g=k[2],E=k[1],C=f[1],R=s[1],e0=p(n[1][1+Cx],n,E),l0=Ax(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return e0===E&&l0===g&&F0===o?s:[0,R,[0,C,[0,e0,l0],F0]]},r2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+f2],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Q,function(n,s,f){var o=f[2],k=f[1],g=f[3],E=Ax(d(n[1][1+Ox],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,E,C,g]},sx,function(n,s,f){var o=f[2],k=f[1],g=fr(d(n[1][1+Ox],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},C0,function(n,s){return p(n[1][1+ex],n,s)},ex,function(n,s){var f=d(n[1][1+xx],n),o=m1(function(g,E){var C=g[2],R=g[1],e0=d(f,E);if(!e0)return[0,R,1];if(e0[2])return[0,K3(e0,R),1];var l0=e0[1],F0=C||(E!==l0?1:0);return[0,[0,l0,R],F0]},E$,s),k=o[1];return o[2]?ix(k):s},xx,function(n,s){return[0,p(n[1][1+tx],n,s),0]},px,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},z0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},A0,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},K0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=f[4],C=p(n[1][1+Ox],n,g),R=fr(d(n[1][1+S0],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?f:[0,C,R,e0,E]},S0,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=Ax(d(n[1][1+Ox],n),g),R=p(n[1][1+ex],n,k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Y0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=W2(d(n[1][1+y0],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},y0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=fr(d(n[1][1+j0],n),g),C=fr(d(n[1][1+Ox],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},j0,function(n,s){return s},I0,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},D0,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},M0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=W2(d(n[1][1+Qt],n),E);if(g)var R=g[1],e0=R[1],l0=R[2],F0=O0(d(n[1][1+Hv],n),e0,l0,g,function(Wr){return[0,[0,e0,Wr]]});else var F0=g;if(k)var dx=k[1],Xx=dx[1],Kx=dx[2],_r=O0(d(n[1][1+Qt],n),Xx,Kx,k,function(Wr){return[0,[0,Xx,Wr]]});else var _r=k;var t2=p(n[1][1+L],n,o);return E===C&&g===F0&&k===_r&&o===t2?f:[0,C,F0,_r,t2]},H,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},w0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&B3(C,k)&&R===o?f:[0,E,C,R]},T,function(n,s,f){var o=f[3],k=f[2],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],g,E]},m,function(n,s,f){var o=f[4],k=f[2],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],g,f[3],E]},l,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=fr(p(n[1][1+a],n,k),g),C=p(n[1][1+L],n,o);return g===E&&o===C?f:[0,E,k,C]},a,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+v],n,s,g),R=Ax(d(n[1][1+Ox],n),k);return g===C&&k===R?f:[0,E,[0,C,R]]},u,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+T0],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},t,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},v0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Pn],n,E),R=Ax(d(n[1][1+M],n),g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+L],n,o);return E===C&&k===e0&&g===R&&o===l0?f:[0,C,R,e0,l0]},e,function(n,s,f){var o=f[2],k=f[1],g=f[4],E=f[3],C=Ax(d(n[1][1+Ox],n),k),R=p(n[1][1+L],n,o);return o===R&&k===C?f:[0,C,R,E,g]}]),function(n,s){return y5(s,x)}}),qj=[];function hU(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return m1(d(qj[1],x),r,u);case 1:var i=t[1][1];return m1(d(qj[2],x),r,i);case 2:return p(x,r,t[1][1]);default:return r}}Fr(qj,[0,function(x,r){return function(e){var t=e[0]===0?e[1][2][2]:e[1][2][1];return hU(x,r,t)}},function(x,r){return function(e){return e[0]===2?r:hU(x,r,e[1][2][1])}}]);var Uj=[];function dU(x){var r=x[2];switch(r[0]){case 0:return J3(Uj[1],r[1][1]);case 1:return J3(Uj[2],r[1][1]);case 2:return 1;default:return 0}}Fr(Uj,[0,function(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return dU(r)},function(x){return x[0]===2?0:dU(x[1][2][1])}]);var E5=[];function Bj(x){var r=x[2];switch(r[0]){case 7:return 1;case 10:var e=r[1],t=e[1],u=d(E5[2],e[2]);return u||J3(E5[1],t);case 11:var i=r[1],c=i[1],v=d(E5[2],i[2]);return v||J3(function(a){return Bj(a[2])},c);case 12:return J3(Bj,r[1][1]);case 13:return 1;default:return 0}}Fr(E5,[0,function(x){return Bj(x[2][2])},function(x){return x&&x[1][2][1]?1:0}]);function mn(x,r){return[0,r[1],[0,r[2],x]]}function yU(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]}function Z(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,yU([0,t],[0,u],0)]}function O2(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,yU([0,u],[0,i],e)]}function S1(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Mx(t[2],e[2])];return Z([0,Mx(e[1],t[1])],u,O)}var i=x}else var i=r;return i}function S5(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],c=t[1],v=[0,Mx(t[2],e[2])];return O2([0,Mx(u,c)],v,i,O)}var a=r[1];return O2([0,a[1]],[0,a[2]],0,O)}function gU(x,r){s1(x)(vQ),d(s1(x)(pQ),lQ);var e=r[1];d(s1(x)(kQ),e),s1(x)(mQ),s1(x)(hQ),d(s1(x)(yQ),dQ);var t=r[2];return d(s1(x)(gQ),t),s1(x)(wQ),s1(x)(_Q)}Fr([],[0,gU,gU,function(x,r){switch(r[0]){case 0:var e=r[1];return s1(x)(x$),d(s1(x)(r$),e),s1(x)(e$);case 1:var t=r[1];return s1(x)(t$),d(s1(x)(n$),t),s1(x)(u$);case 2:var u=r[1];return s1(x)(i$),d(s1(x)(f$),u),s1(x)(c$);default:var i=r[1];return s1(x)(s$),d(s1(x)(a$),i),s1(x)(o$)}}]);function Yr(x,r){return[0,x[1],x[2],r[3]]}function ma(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e}function wU(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],c=mU(i),v=mU(u)-c|0,a=v===0?fx(u[1],i[1]):v;else var a=-1}else var a=e?1:0;if(a!==0)return a;var l=ma(x[2],r[2]);return l===0?ma(x[3],r[3]):l}function ro(x,r){return wU(x,r)===0?1:0}var hr=[];Fr(hr,[0,function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r){switch(x){case 0:if(!r)return 0;break;case 1:if(r===1)return 0;break;case 2:if(r===2)return 0;break;case 3:if(r===3)return 0;break;default:if(4<=r)return 0}function e(u){switch(u){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}}var t=e(r);return We(e(x),t)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)}]);var _U=O00.slice();function Xj(x){for(var r=0,e=_U.length-1-1|0;;){if(ex)return 1;var r=t+1|0}}}var bU=0;function TU(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]}function EU(x){return x[3][1]}function A5(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r}var Qe=[];function SU(x,r){if(typeof x=="number"){var e=x;if(67<=e)if(fe<=e)switch(e){case 101:if(typeof r=="number"&&fe===r)return 1;break;case 102:if(typeof r=="number"&&g1===r)return 1;break;case 103:if(typeof r=="number"&&sn===r)return 1;break;case 104:if(typeof r=="number"&&Be===r)return 1;break;case 105:if(typeof r=="number"&&ui===r)return 1;break;case 106:if(typeof r=="number"&&Je===r)return 1;break;case 107:if(typeof r=="number"&&K2===r)return 1;break;case 108:if(typeof r=="number"&&sv===r)return 1;break;case 109:if(typeof r=="number"&&st===r)return 1;break;case 110:if(typeof r=="number"&&z1===r)return 1;break;case 111:if(typeof r=="number"&&ce===r)return 1;break;case 112:if(typeof r=="number"&&ea===r)return 1;break;case 113:if(typeof r=="number"&&Te===r)return 1;break;case 114:if(typeof r=="number"&&mr===r)return 1;break;case 115:if(typeof r=="number"&&tv===r)return 1;break;case 116:if(typeof r=="number"&&Wa===r)return 1;break;case 117:if(typeof r=="number"&&y6===r)return 1;break;case 118:if(typeof r=="number"&&P3===r)return 1;break;case 119:if(typeof r=="number"&&zl===r)return 1;break;case 120:if(typeof r=="number"&&vf===r)return 1;break;case 121:if(typeof r=="number"&&m6===r)return 1;break;case 122:if(typeof r=="number"&&s2===r)return 1;break;case 123:if(typeof r=="number"&&rn===r)return 1;break;case 124:if(typeof r=="number"&&S3===r)return 1;break;case 125:if(typeof r=="number"&&Ba===r)return 1;break;case 126:if(typeof r=="number"&&Sk===r)return 1;break;case 127:if(typeof r=="number"&&Br===r)return 1;break;case 128:if(typeof r=="number"&&M2===r)return 1;break;case 129:if(typeof r=="number"&&Xo===r)return 1;break;case 130:if(typeof r=="number"&&d6===r)return 1;break;case 131:if(typeof r=="number"&&r6===r)return 1;break;case 132:if(typeof r=="number"&&r8===r)return 1;break;default:if(typeof r=="number"&&_k<=r)return 1}else switch(e){case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;case 97:if(typeof r=="number"&&r===97)return 1;break;case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;default:if(typeof r=="number"&&y2===r)return 1}else if(34<=e)switch(e){case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;case 64:if(typeof r=="number"&&r===64)return 1;break;case 65:if(typeof r=="number"&&r===65)return 1;break;default:if(typeof r=="number"&&r===66)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;case 32:if(typeof r=="number"&&r===32)return 1;break;default:if(typeof r=="number"&&r===33)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=x[2],i=p(Qe[13],x[1],r[1]);return i&&br(u,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var c=r[2],v=x[2],a=p(Qe[12],x[1],r[1]);return a&&br(v,c)}break;case 2:if(typeof r!="number"&&r[0]===2){var l=r[1],m=x[1],h=l[4],T=l[3],b=l[2],N=m[4],j=m[3],I=m[2],F=p(Qe[11],m[1],l[1]),M=F&&br(I,b),z=M&&br(j,T);return z&&(N===h?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var B=r[1],K=x[1],n0=B[5],$=B[4],H=B[3],t0=B[2],c0=K[5],r0=K[4],v0=K[3],a0=K[2],g0=p(Qe[10],K[1],B[1]),i0=g0&&br(a0,t0),s0=i0&&br(v0,H),d0=s0&&(r0===$?1:0);return d0&&(c0===n0?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var w0=r[3],M0=r[2],C0=x[3],D0=x[2],I0=p(Qe[9],x[1],r[1]),j0=I0&&br(D0,M0);return j0&&br(C0,w0)}break;case 5:if(typeof r!="number"&&r[0]===5){var y0=r[3],Y0=r[2],L=x[3],N0=x[2],S0=p(Qe[8],x[1],r[1]),K0=S0&&br(N0,Y0);return K0&&br(L,y0)}break;case 6:if(typeof r!="number"&&r[0]===6){var A0=r[2],$0=x[2],ex=p(Qe[7],x[1],r[1]);return ex&&br($0,A0)}break;case 7:if(typeof r!="number"&&r[0]===7)return br(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var xx=br(x[1],r[1]),tx=r[2],z0=x[2];return xx&&p(Qe[6],z0,tx)}break;case 9:if(typeof r!="number"&&r[0]===9){var px=r[3],sx=r[2],Q=x[3],b0=x[2],U=p(Qe[5],x[1],r[1]),h0=U&&br(b0,sx);return h0&&br(Q,px)}break;case 10:if(typeof r!="number"&&r[0]===10){var _0=r[3],m0=r[2],T0=x[3],X=x[2],Gx=p(Qe[4],x[1],r[1]),Px=Gx&&br(X,m0);return Px&&br(T0,_0)}break;case 11:if(typeof r!="number"&&r[0]===11)return p(Qe[3],x[1],r[1]);break;case 12:if(typeof r!="number"&&r[0]===12){var G0=r[3],Kr=r[2],S=x[3],G=x[2],rx=p(Qe[2],x[1],r[1]),yx=rx&&(G==Kr?1:0);return yx&&br(S,G0)}break;default:if(typeof r!="number"&&r[0]===13){var Ex=r[2],nx=x[2],p0=r[3],Fx=x[3],Sx=p(Qe[1],x[1],r[1]);if(Sx){x:{if(nx){if(Ex){var bx=B3(nx[1],Ex[1]);break x}}else if(!Ex){var bx=1;break x}var bx=0}var B0=bx}else var B0=Sx;return B0&&br(Fx,p0)}}return 0}function AU(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}function PU(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0}Fr(Qe,[0,PU,AU,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0},ro,ro,ro,ro,ro,ro,ro,ro,PU,AU]);function IU(x){if(typeof x!="number")switch(x[0]){case 0:return st0;case 1:return at0;case 2:return ot0;case 3:return vt0;case 4:return lt0;case 5:return pt0;case 6:return kt0;case 7:return mt0;case 8:return ht0;case 9:return dt0;case 10:return yt0;case 11:return gt0;case 12:return wt0;default:return _t0}var r=x;if(67<=r){if(fe<=r)switch(r){case 101:return Ne0;case 102:return je0;case 103:return Ce0;case 104:return Oe0;case 105:return De0;case 106:return Fe0;case 107:return Re0;case 108:return Le0;case 109:return Me0;case 110:return qe0;case 111:return Ue0;case 112:return Be0;case 113:return Xe0;case 114:return Ye0;case 115:return ze0;case 116:return Ke0;case 117:return Je0;case 118:return Ge0;case 119:return We0;case 120:return Ve0;case 121:return $e0;case 122:return Qe0;case 123:return He0;case 124:return Ze0;case 125:return xt0;case 126:return rt0;case 127:return et0;case 128:return tt0;case 129:return nt0;case 130:return ut0;case 131:return it0;case 132:return ft0;default:return ct0}switch(r){case 67:return $10;case 68:return Q10;case 69:return H10;case 70:return Z10;case 71:return xe0;case 72:return re0;case 73:return ee0;case 74:return te0;case 75:return ne0;case 76:return ue0;case 77:return ie0;case 78:return fe0;case 79:return ce0;case 80:return se0;case 81:return ae0;case 82:return oe0;case 83:return ve0;case 84:return le0;case 85:return pe0;case 86:return ke0;case 87:return me0;case 88:return he0;case 89:return de0;case 90:return ye0;case 91:return ge0;case 92:return we0;case 93:return _e0;case 94:return be0;case 95:return Te0;case 96:return Ee0;case 97:return Se0;case 98:return Ae0;case 99:return Pe0;default:return Ie0}}if(34<=r)switch(r){case 34:return h10;case 35:return d10;case 36:return y10;case 37:return g10;case 38:return w10;case 39:return _10;case 40:return b10;case 41:return T10;case 42:return E10;case 43:return S10;case 44:return A10;case 45:return P10;case 46:return I10;case 47:return N10;case 48:return j10;case 49:return C10;case 50:return O10;case 51:return D10;case 52:return F10;case 53:return R10;case 54:return L10;case 55:return M10;case 56:return q10;case 57:return U10;case 58:return B10;case 59:return X10;case 60:return Y10;case 61:return z10;case 62:return K10;case 63:return J10;case 64:return G10;case 65:return W10;default:return V10}switch(r){case 0:return L20;case 1:return M20;case 2:return q20;case 3:return U20;case 4:return B20;case 5:return X20;case 6:return Y20;case 7:return z20;case 8:return K20;case 9:return J20;case 10:return G20;case 11:return W20;case 12:return V20;case 13:return $20;case 14:return Q20;case 15:return H20;case 16:return Z20;case 17:return x10;case 18:return r10;case 19:return e10;case 20:return t10;case 21:return n10;case 22:return u10;case 23:return i10;case 24:return f10;case 25:return c10;case 26:return s10;case 27:return a10;case 28:return o10;case 29:return v10;case 30:return l10;case 31:return p10;case 32:return k10;default:return m10}}function Yj(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?qx(S20,qx(u,E20)):t?qx(P20,qx(u,A20)):e?qx(N20,qx(u,I20)):qx(C20,qx(u,j20));case 4:return x[3];case 5:var i=x[2];return qx(D20,qx(i,qx(O20,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?F20:R20;case 12:return x[3];default:return x[3]}var c=x;if(67<=c){if(fe<=c)switch(c){case 101:return Jr0;case 102:return Gr0;case 103:return Wr0;case 104:return Vr0;case 105:return $r0;case 106:return Qr0;case 107:return Hr0;case 108:return Zr0;case 109:return x20;case 110:return r20;case 111:return e20;case 112:return t20;case 113:return n20;case 114:return u20;case 115:return i20;case 116:return f20;case 117:return c20;case 118:return s20;case 119:return a20;case 120:return o20;case 121:return v20;case 122:return l20;case 123:return p20;case 124:return k20;case 125:return m20;case 126:return h20;case 127:return d20;case 128:return y20;case 129:return g20;case 130:return w20;case 131:return _20;case 132:return b20;default:return T20}switch(c){case 67:return vr0;case 68:return lr0;case 69:return pr0;case 70:return kr0;case 71:return mr0;case 72:return hr0;case 73:return dr0;case 74:return yr0;case 75:return gr0;case 76:return wr0;case 77:return _r0;case 78:return br0;case 79:return Tr0;case 80:return Er0;case 81:return Sr0;case 82:return Ar0;case 83:return Pr0;case 84:return Ir0;case 85:return Nr0;case 86:return jr0;case 87:return Cr0;case 88:return Or0;case 89:return Dr0;case 90:return Fr0;case 91:return Rr0;case 92:return Lr0;case 93:return Mr0;case 94:return qr0;case 95:return Ur0;case 96:return Br0;case 97:return Xr0;case 98:return Yr0;case 99:return zr0;default:return Kr0}}if(34<=c)switch(c){case 34:return Ox0;case 35:return Dx0;case 36:return Fx0;case 37:return Rx0;case 38:return Lx0;case 39:return Mx0;case 40:return qx0;case 41:return Ux0;case 42:return Bx0;case 43:return Xx0;case 44:return Yx0;case 45:return zx0;case 46:return Kx0;case 47:return Jx0;case 48:return Gx0;case 49:return Wx0;case 50:return Vx0;case 51:return $x0;case 52:return Qx0;case 53:return Hx0;case 54:return Zx0;case 55:return xr0;case 56:return rr0;case 57:return er0;case 58:return tr0;case 59:return nr0;case 60:return ur0;case 61:return ir0;case 62:return fr0;case 63:return cr0;case 64:return sr0;case 65:return ar0;default:return or0}switch(c){case 0:return Z00;case 1:return xx0;case 2:return rx0;case 3:return ex0;case 4:return tx0;case 5:return nx0;case 6:return ux0;case 7:return ix0;case 8:return fx0;case 9:return cx0;case 10:return sx0;case 11:return ax0;case 12:return ox0;case 13:return vx0;case 14:return lx0;case 15:return px0;case 16:return kx0;case 17:return mx0;case 18:return hx0;case 19:return dx0;case 20:return yx0;case 21:return gx0;case 22:return wx0;case 23:return _x0;case 24:return bx0;case 25:return Tx0;case 26:return Ex0;case 27:return Sx0;case 28:return Ax0;case 29:return Px0;case 30:return Ix0;case 31:return Nx0;case 32:return jx0;default:return Cx0}}function P5(x){return d(ar(H00),x)}function zj(x,r){var e=x?x[1]:0;x:{if(typeof r=="number"){if(mr===r){var t=R00,u=L00;break x}}else switch(r[0]){case 3:var t=M00,u=q00;break x;case 5:var t=U00,u=B00;break x;case 0:case 12:var t=Y00,u=z00;break x;case 1:case 13:var t=K00,u=J00;break x;case 4:case 8:var t=V00,u=$00;break x;case 6:case 7:case 11:break;default:var t=G00,u=W00;break x}var t=X00,u=P5(Yj(r))}return e?qx(t,qx(Q00,u)):u}function Ub0(x){return Jo>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(W(x,2),fo(y(x))===0){var u=bv(y(x));if(u===0)var t=Tr(y(x))===0&&Tr(y(x))===0&&Tr(y(x))===0?0:w(x);else if(u===1&&Tr(y(x))===0){for(;;){var i=_v(y(x));if(i!==0)break}var t=i===1?0:w(x)}else var t=w(x)}else var t=w(x)}if(2>>0)throw W0([0,Nr,bt0],1);switch(t){case 0:break;case 1:return;default:if(!Xj(aU(x))){vU(x,1);return}}}}function Z5(x,r){var e=r-x[3][2]|0;return[0,EU(x),e]}function Q6(x,r,e){var t=Z5(x,e),u=Z5(x,r);return[0,x[1],u,t]}function A1(x,r){return Z5(x,r[6])}function Pe(x,r){return Z5(x,r[3])}function zr(x,r){return Q6(x,r[6],r[3])}function ZU(x,r){x:if(typeof r!="number"){switch(r[0]){case 2:var e=r[1][1];break;case 3:return r[1][1];case 4:var e=r[1];break;case 5:return r[1];case 8:var e=r[2];break;case 9:return r[1];case 10:return r[1];default:break x}return e}return zr(x,x[2])}function P1(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]}function xB(x,r,e){return P1(x,r,[26,P5(e)])}function $j(x,r,e,t){return P1(x,r,[27,e,t])}function mt(x,r){return P1(x,r,Xc0)}function $1(x,r){var e=r[3],t=[0,EU(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]}function qt(x,r,e,t,u){var i=[0,x[1],r,e],c=G2(t),v=u?0:1;return[0,i,[0,v,c,x[7][3][1]>>0)var a=w(t);else switch(v){case 0:var a=2;break;case 1:for(;;){W(t,3);var l=y(t),m=-1>>0)return Tx(Fc0);switch(a){case 0:var b=eB(i,e,t,2,0),N=b[1],j=vt(qx(Rc0,b[2])),I=0<=j?1:0,F=I&&(j<=55295?1:0);if(F)var z=F;else var M=57344<=j?1:0,z=M&&(j<=rk?1:0);var B=z?rB(i,N,j):P1(i,N,28);ps(u,j);var i=B;break;case 1:var K=eB(i,e,t,3,1),n0=K[1],$=vt(qx(Lc0,K[2])),H=rB(i,n0,$);ps(u,$);var i=H;break;case 2:return[0,i,G2(u)];default:_5(t,u)}}}function D2(x,r,e){var t=mt(x,zr(x,r));return xl(r),e(t,r)}function Ev(x,r,e){for(var t=x;;){or(e);var u=y(e),i=-1>>0)var c=w(e);else switch(i){case 0:for(;;){W(e,3);var v=y(e),a=-1>>0){var h=mt(t,zr(t,e));return[0,h,Pe(h,e)]}switch(c){case 0:var T=$1(t,e);_5(e,r);var t=T;break;case 1:var b=t[4]?$j(t,zr(t,e),St0,Et0):t;return[0,b,Pe(b,e)];case 2:if(t[4])return[0,t,Pe(t,e)];ir(r,At0);break;default:_5(e,r)}}}function nl(x,r,e){for(;;){or(e);var t=y(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){W(e,2);var c=y(e),v=-1>>0)return Tx(Pt0);switch(i){case 0:return[0,x,Pe(x,e)];case 1:var a=Pe(x,e),l=a[2],m=a[1],h=$1(x,e);return[0,h,[0,m,l-w5(e)|0]];default:_5(e,r)}}}function nB(x,r){function e(n0){return W(n0,3),V1(y(n0))===0?2:w(n0)}or(r);var t=y(r),u=vf>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:W(r,15);var i=Ae(y(r))===0?15:w(r);break;case 4:W(r,4);var i=V1(y(r))===0?e(r):w(r);break;case 5:W(r,11);var i=V1(y(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:W(r,14);var c=bv(y(r));if(c===0)var i=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?12:w(r);else if(c===1&&Tr(y(r))===0){for(;;){var v=_v(y(r));if(v!==0)break}var i=v===1?13:w(r)}else var i=w(r);break;case 13:var i=10;break;default:W(r,14);var i=Tr(y(r))===0&&Tr(y(r))===0?1:w(r)}if(16>>0)return Tx(wc0);switch(i){case 0:var a=Dx(r);return[0,x,a,l2(r),0];case 1:var l=Dx(r);return[0,x,l,[0,vt(qx(_c0,l))],0];case 2:var m=Dx(r),h=vt(qx(bc0,m));return Hl<=h?[0,x,m,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,m,[0,h],1];case 3:var T=Dx(r);return[0,x,T,[0,vt(qx(Tc0,T))],1];case 4:return[0,x,Ec0,[0,0],0];case 5:return[0,x,Sc0,[0,8],0];case 6:return[0,x,Ac0,[0,12],0];case 7:return[0,x,Pc0,[0,10],0];case 8:return[0,x,Ic0,[0,13],0];case 9:return[0,x,Nc0,[0,9],0];case 10:return[0,x,jc0,[0,11],0];case 11:var b=Dx(r);return[0,x,b,[0,vt(qx(Cc0,b))],1];case 12:var N=Dx(r);return[0,x,N,[0,vt(qx(Oc0,T1(N,1,Nx(N)-1|0)))],0];case 13:var j=Dx(r),I=vt(qx(Dc0,T1(j,2,Nx(j)-3|0))),F=rk>>0)var m=w(i);else switch(l){case 0:var m=3;break;case 1:for(;;){W(i,4);var h=y(i),T=-1>>0)return Tx(It0);switch(m){case 0:var b=Dx(i);if(ir(t,b),br(r,b))return[0,c,Pe(c,i),v];ir(e,b);break;case 1:ir(t,Nt0);var N=nB(c,i),j=N[4],I=N[3],F=N[2],M=N[1],z=j||v;ir(t,F),xq(function(g0){return ps(e,g0)},I);var c=M,v=z;break;case 2:var B=Dx(i);ir(t,B);var K=$1(mt(c,zr(c,i)),i);return ir(e,B),[0,K,Pe(K,i),v];case 3:var n0=Dx(i);ir(t,n0);var $=mt(c,zr(c,i));return ir(e,n0),[0,$,Pe($,i),v];default:var H=i[6],t0=i[3]-H|0,c0=S2(t0*4|0),r0=K6(i[1],H,t0,c0);tj(t,c0,0,r0),tj(e,c0,0,r0)}}}function iB(x,r,e,t){for(var u=x;;){or(t);var i=y(t),c=96>>0)var v=w(t);else switch(c){case 0:var v=0;break;case 1:for(;;){W(t,6);var a=y(t),l=-1>>0)return Tx(jt0);switch(v){case 0:return[0,mt(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:lt(e,92);var T=nB(u,t),b=T[3],N=T[1];ir(e,T[2]),xq(function(F){return ps(r,F)},b);var u=N;break;case 4:ir(e,Ct0),ir(r,Ot0);var u=$1(u,t);break;case 5:ir(e,Dx(t)),lt(r,10);var u=$1(u,t);break;default:var j=Dx(t);ir(e,j),ir(r,j)}}}function Yb0(x,r,e){for(var t=x;;){or(e);var u=y(e),i=92>>0)var c=w(e);else switch(i){case 0:var c=0;break;case 1:for(;;){W(e,7);var v=y(e),a=-1>>0)var c=w(e);else switch(m){case 0:var c=2;break;case 1:var c=1;break;default:W(e,1);var c=Ae(y(e))===0?1:w(e)}}if(7>>0)return Tx(Rt0);switch(c){case 0:return[0,P1(t,zr(t,e),st),Lt0];case 1:return[0,$1(P1(t,zr(t,e),st),e),Mt0];case 2:ir(r,Dx(e));break;case 3:var h=Dx(e);return[0,t,T1(h,1,Nx(h)-1|0)];case 4:return[0,t,qt0];case 5:lt(r,91);x:{r:{e:{t:{n:for(;;){or(e);var T=y(e),b=93>>0)var N=w(e);else switch(b){case 0:var N=0;break;case 1:for(;;){W(e,5);var j=y(e),I=-1>>0)break r;switch(N){case 0:break e;case 1:ir(r,Ft0);break;case 2:lt(r,92),lt(r,93);break;case 3:break t;case 4:break n;default:ir(r,Dx(e))}}var z=$1(P1(t,zr(t,e),st),e);break x}lt(r,93);var z=t;break x}var z=t;break x}var z=Tx(Dt0)}var t=z;break;case 6:return[0,$1(P1(t,zr(t,e),st),e),Ut0];default:ir(r,Dx(e))}}}function fB(x){var r=fx(x,"iexcl");if(0<=r){if(0>=r)return ec0;var e=fx(x,"prime");if(0<=e){if(0>=e)return rc0;var t=fx(x,"sup1");if(0<=t){if(0>=t)return xc0;var u=fx(x,"uarr");if(0<=u){if(0>=u)return Zf0;var i=fx(x,"xi");if(0<=i){if(0>=i)return Hf0;if(!P(x,"yacute"))return Qf0;if(!P(x,"yen"))return $f0;if(!P(x,"yuml"))return Vf0;if(!P(x,"zeta"))return Wf0;if(!P(x,"zwj"))return Gf0;if(!P(x,"zwnj"))return Jf0}else{if(!P(x,"ucirc"))return Kf0;if(!P(x,"ugrave"))return zf0;if(!P(x,"uml"))return Yf0;if(!P(x,"upsih"))return Xf0;if(!P(x,"upsilon"))return Bf0;if(!P(x,"uuml"))return Uf0;if(!P(x,"weierp"))return qf0}}else{var c=fx(x,"thetasym");if(0<=c){if(0>=c)return Mf0;if(!P(x,"thinsp"))return Lf0;if(!P(x,"thorn"))return Rf0;if(!P(x,"tilde"))return Ff0;if(!P(x,"times"))return Df0;if(!P(x,"trade"))return Of0;if(!P(x,"uArr"))return Cf0;if(!P(x,"uacute"))return jf0}else{if(!P(x,"sup2"))return Nf0;if(!P(x,"sup3"))return If0;if(!P(x,"supe"))return Pf0;if(!P(x,"szlig"))return Af0;if(!P(x,"tau"))return Sf0;if(!P(x,"there4"))return Ef0;if(!P(x,"theta"))return Tf0}}}else{var v=fx(x,"rlm");if(0<=v){if(0>=v)return bf0;var a=fx(x,"sigma");if(0<=a){if(0>=a)return _f0;if(!P(x,"sigmaf"))return wf0;if(!P(x,"sim"))return gf0;if(!P(x,"spades"))return yf0;if(!P(x,"sub"))return df0;if(!P(x,"sube"))return hf0;if(!P(x,"sum"))return mf0;if(!P(x,"sup"))return kf0}else{if(!P(x,"rsaquo"))return pf0;if(!P(x,"rsquo"))return lf0;if(!P(x,"sbquo"))return vf0;if(!P(x,"scaron"))return of0;if(!P(x,"sdot"))return af0;if(!P(x,"sect"))return sf0;if(!P(x,"shy"))return cf0}}else{var l=fx(x,"raquo");if(0<=l){if(0>=l)return ff0;if(!P(x,"rarr"))return if0;if(!P(x,"rceil"))return uf0;if(!P(x,"rdquo"))return nf0;if(!P(x,"real"))return tf0;if(!P(x,"reg"))return ef0;if(!P(x,"rfloor"))return rf0;if(!P(x,"rho"))return xf0}else{if(!P(x,"prod"))return Zi0;if(!P(x,"prop"))return Hi0;if(!P(x,"psi"))return Qi0;if(!P(x,"quot"))return $i0;if(!P(x,"rArr"))return Vi0;if(!P(x,"radic"))return Wi0;if(!P(x,"rang"))return Gi0}}}}else{var m=fx(x,"ndash");if(0<=m){if(0>=m)return Ji0;var h=fx(x,"or");if(0<=h){if(0>=h)return Ki0;var T=fx(x,"part");if(0<=T){if(0>=T)return zi0;if(!P(x,"permil"))return Yi0;if(!P(x,"perp"))return Xi0;if(!P(x,"phi"))return Bi0;if(!P(x,"pi"))return Ui0;if(!P(x,"piv"))return qi0;if(!P(x,"plusmn"))return Mi0;if(!P(x,"pound"))return Li0}else{if(!P(x,"ordf"))return Ri0;if(!P(x,"ordm"))return Fi0;if(!P(x,"oslash"))return Di0;if(!P(x,"otilde"))return Oi0;if(!P(x,"otimes"))return Ci0;if(!P(x,"ouml"))return ji0;if(!P(x,"para"))return Ni0}}else{var b=fx(x,"oacute");if(0<=b){if(0>=b)return Ii0;if(!P(x,"ocirc"))return Pi0;if(!P(x,"oelig"))return Ai0;if(!P(x,"ograve"))return Si0;if(!P(x,"oline"))return Ei0;if(!P(x,"omega"))return Ti0;if(!P(x,"omicron"))return bi0;if(!P(x,"oplus"))return _i0}else{if(!P(x,"ne"))return wi0;if(!P(x,"ni"))return gi0;if(!P(x,"not"))return yi0;if(!P(x,"notin"))return di0;if(!P(x,"nsub"))return hi0;if(!P(x,"ntilde"))return mi0;if(!P(x,"nu"))return ki0}}}else{var N=fx(x,"le");if(0<=N){if(0>=N)return pi0;var j=fx(x,"macr");if(0<=j){if(0>=j)return li0;if(!P(x,"mdash"))return vi0;if(!P(x,"micro"))return oi0;if(!P(x,"middot"))return ai0;if(!P(x,eR))return si0;if(!P(x,"mu"))return ci0;if(!P(x,"nabla"))return fi0;if(!P(x,"nbsp"))return ii0}else{if(!P(x,"lfloor"))return ui0;if(!P(x,"lowast"))return ni0;if(!P(x,"loz"))return ti0;if(!P(x,"lrm"))return ei0;if(!P(x,"lsaquo"))return ri0;if(!P(x,"lsquo"))return xi0;if(!P(x,"lt"))return Zu0}}else{var I=fx(x,"kappa");if(0<=I){if(0>=I)return Hu0;if(!P(x,"lArr"))return Qu0;if(!P(x,"lambda"))return $u0;if(!P(x,"lang"))return Vu0;if(!P(x,"laquo"))return Wu0;if(!P(x,"larr"))return Gu0;if(!P(x,"lceil"))return Ju0;if(!P(x,"ldquo"))return Ku0}else{if(!P(x,"igrave"))return zu0;if(!P(x,"image"))return Yu0;if(!P(x,"infin"))return Xu0;if(!P(x,"iota"))return Bu0;if(!P(x,"iquest"))return Uu0;if(!P(x,"isin"))return qu0;if(!P(x,"iuml"))return Mu0}}}}}else{var F=fx(x,"aelig");if(0<=F){if(0>=F)return Lu0;var M=fx(x,"delta");if(0<=M){if(0>=M)return Ru0;var z=fx(x,"fnof");if(0<=z){if(0>=z)return Fu0;var B=fx(x,"gt");if(0<=B){if(0>=B)return Du0;if(!P(x,"hArr"))return Ou0;if(!P(x,"harr"))return Cu0;if(!P(x,"hearts"))return ju0;if(!P(x,"hellip"))return Nu0;if(!P(x,"iacute"))return Iu0;if(!P(x,"icirc"))return Pu0}else{if(!P(x,"forall"))return Au0;if(!P(x,"frac12"))return Su0;if(!P(x,"frac14"))return Eu0;if(!P(x,"frac34"))return Tu0;if(!P(x,"frasl"))return bu0;if(!P(x,"gamma"))return _u0;if(!P(x,"ge"))return wu0}}else{var K=fx(x,"ensp");if(0<=K){if(0>=K)return gu0;if(!P(x,"epsilon"))return yu0;if(!P(x,"equiv"))return du0;if(!P(x,"eta"))return hu0;if(!P(x,"eth"))return mu0;if(!P(x,"euml"))return ku0;if(!P(x,"euro"))return pu0;if(!P(x,"exist"))return lu0}else{if(!P(x,"diams"))return vu0;if(!P(x,"divide"))return ou0;if(!P(x,"eacute"))return au0;if(!P(x,"ecirc"))return su0;if(!P(x,"egrave"))return cu0;if(!P(x,be))return fu0;if(!P(x,"emsp"))return iu0}}}else{var n0=fx(x,"cap");if(0<=n0){if(0>=n0)return uu0;var $=fx(x,"copy");if(0<=$){if(0>=$)return nu0;if(!P(x,"crarr"))return tu0;if(!P(x,"cup"))return eu0;if(!P(x,"curren"))return ru0;if(!P(x,"dArr"))return xu0;if(!P(x,"dagger"))return Z70;if(!P(x,"darr"))return H70;if(!P(x,"deg"))return Q70}else{if(!P(x,"ccedil"))return $70;if(!P(x,"cedil"))return V70;if(!P(x,"cent"))return W70;if(!P(x,"chi"))return G70;if(!P(x,"circ"))return J70;if(!P(x,"clubs"))return K70;if(!P(x,"cong"))return z70}}else{var H=fx(x,"aring");if(0<=H){if(0>=H)return Y70;if(!P(x,"asymp"))return X70;if(!P(x,"atilde"))return B70;if(!P(x,"auml"))return U70;if(!P(x,"bdquo"))return q70;if(!P(x,"beta"))return M70;if(!P(x,"brvbar"))return L70;if(!P(x,"bull"))return R70}else{if(!P(x,"agrave"))return F70;if(!P(x,"alefsym"))return D70;if(!P(x,"alpha"))return O70;if(!P(x,"amp"))return C70;if(!P(x,"and"))return j70;if(!P(x,"ang"))return N70;if(!P(x,"apos"))return I70}}}}else{var t0=fx(x,"Nu");if(0<=t0){if(0>=t0)return P70;var c0=fx(x,"Sigma");if(0<=c0){if(0>=c0)return A70;var r0=fx(x,"Uuml");if(0<=r0){if(0>=r0)return S70;if(!P(x,"Xi"))return E70;if(!P(x,"Yacute"))return T70;if(!P(x,"Yuml"))return b70;if(!P(x,"Zeta"))return _70;if(!P(x,"aacute"))return w70;if(!P(x,"acirc"))return g70;if(!P(x,"acute"))return y70}else{if(!P(x,"THORN"))return d70;if(!P(x,"Tau"))return h70;if(!P(x,"Theta"))return m70;if(!P(x,"Uacute"))return k70;if(!P(x,"Ucirc"))return p70;if(!P(x,"Ugrave"))return l70;if(!P(x,"Upsilon"))return v70}}else{var v0=fx(x,"Otilde");if(0<=v0){if(0>=v0)return o70;if(!P(x,"Ouml"))return a70;if(!P(x,"Phi"))return s70;if(!P(x,"Pi"))return c70;if(!P(x,"Prime"))return f70;if(!P(x,"Psi"))return i70;if(!P(x,"Rho"))return u70;if(!P(x,"Scaron"))return n70}else{if(!P(x,"OElig"))return t70;if(!P(x,"Oacute"))return e70;if(!P(x,"Ocirc"))return r70;if(!P(x,"Ograve"))return x70;if(!P(x,"Omega"))return Zn0;if(!P(x,"Omicron"))return Hn0;if(!P(x,"Oslash"))return Qn0}}}else{var a0=fx(x,"Eacute");if(0<=a0){if(0>=a0)return $n0;var g0=fx(x,"Icirc");if(0<=g0){if(0>=g0)return Vn0;if(!P(x,"Igrave"))return Wn0;if(!P(x,"Iota"))return Gn0;if(!P(x,"Iuml"))return Jn0;if(!P(x,"Kappa"))return Kn0;if(!P(x,"Lambda"))return zn0;if(!P(x,"Mu"))return Yn0;if(!P(x,"Ntilde"))return Xn0}else{if(!P(x,"Ecirc"))return Bn0;if(!P(x,"Egrave"))return Un0;if(!P(x,"Epsilon"))return qn0;if(!P(x,"Eta"))return Mn0;if(!P(x,"Euml"))return Ln0;if(!P(x,"Gamma"))return Rn0;if(!P(x,"Iacute"))return Fn0}}else{var i0=fx(x,"Atilde");if(0<=i0){if(0>=i0)return Dn0;if(!P(x,"Auml"))return On0;if(!P(x,"Beta"))return Cn0;if(!P(x,"Ccedil"))return jn0;if(!P(x,"Chi"))return Nn0;if(!P(x,"Dagger"))return In0;if(!P(x,"Delta"))return Pn0;if(!P(x,"ETH"))return An0}else{if(!P(x,"'int'"))return Sn0;if(!P(x,"AElig"))return En0;if(!P(x,"Aacute"))return Tn0;if(!P(x,"Acirc"))return bn0;if(!P(x,"Agrave"))return _n0;if(!P(x,"Alpha"))return wn0;if(!P(x,"Aring"))return gn0}}}}}return 0}function cB(x,r,e,t){for(var u=x;;){var i=function(v0){for(;;)if(W(v0,8),Jj(y(v0))!==0)return w(v0)};or(t);var c=y(t),v=Ba>>0)var a=w(t);else switch(v){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:W(t,4);var a=Ae(y(t))===0?4:w(t);break;case 4:W(t,8);var l=QU(y(t));if(l===0){var m=NU(y(t));if(m===0){for(;;){var h=jU(y(t));if(h!==0)break}var a=h===1?6:w(t)}else if(m===1&&Tr(y(t))===0){for(;;){var T=WU(y(t));if(T!==0)break}var a=T===1?5:w(t)}else var a=w(t)}else if(l===1&&cr(y(t))===0){var b=Mt(y(t));if(b===0){var N=Mt(y(t));if(N===0){var j=Mt(y(t));if(j===0){var I=Mt(y(t));if(I===0){var F=Mt(y(t));if(F===0)var M=Mt(y(t)),a=M===0?zU(y(t))===0?7:w(t):M===1?7:w(t);else var a=F===1?7:w(t)}else var a=I===1?7:w(t)}else var a=j===1?7:w(t)}else var a=N===1?7:w(t)}else var a=b===1?7:w(t)}else var a=w(t);break;case 5:var a=0;break;case 6:W(t,1);var a=Jj(y(t))===0?i(t):w(t);break;default:W(t,2);var a=Jj(y(t))===0?i(t):w(t)}if(8>>0)return Tx(Bt0);switch(a){case 0:return xl(t),u;case 1:return $j(u,zr(u,t),Yt0,Xt0);case 2:return $j(u,zr(u,t),Kt0,zt0);case 3:return mt(u,zr(u,t));case 4:var z=Dx(t);ir(e,z),ir(r,z);var u=$1(u,t);break;case 5:var B=Dx(t),K=T1(B,3,Nx(B)-4|0);ir(e,B),ps(r,vt(qx(Jt0,K)));break;case 6:var n0=Dx(t),$=T1(n0,2,Nx(n0)-3|0);ir(e,n0),ps(r,vt($));break;case 7:var H=Dx(t),t0=T1(H,1,Nx(H)-2|0);ir(e,H);var c0=fB(t0);c0?ps(r,c0[1]):ir(r,qx(Wt0,qx(t0,Gt0)));break;default:var r0=Dx(t);ir(e,r0),ir(r,r0)}}}function H6(x){return function(r){var e=0,t=r;x:for(;;){var u=x(t,t[2]);switch(u[0]){case 0:break x;case 1:var i=u[2],c=u[1],e=[0,i,e],t=[0,c[1],c[2],c[3],c[4],c[5],c[6],i[1]];break;default:var t=u[1]}}var v=u[2],a=u[1],l=ZU(a,v),m=e===0?0:ix(e),h=a[6];if(h===0)return[0,[0,a[1],a[2],a[3],a[4],a[5],a[6],l],[0,v,l,0,m]];var T=[0,v,l,ix(h),m];return[0,[0,a[1],a[2],a[3],a[4],a[5],bU,l],T]}}var zb0=H6(function(x,r){or(r);var e=y(r),t=Jo>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(W(r,2),ms(y(r))===0){for(;W(r,2),ms(y(r))===0;);var u=w(r)}else var u=w(r);break;case 3:var u=1;break;case 4:W(r,1);var u=Ae(y(r))===0?1:w(r);break;default:W(r,5);var i=V5(y(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Tx(tc0);switch(u){case 0:return[0,x,mr];case 1:return[2,$1(x,r)];case 2:return[2,x];case 3:var c=A1(x,r),v=$r(Br),a=nl(x,v,r),l=a[1];return[1,l,qt(l,c,a[2],v,0)];case 4:var m=A1(x,r),h=$r(Br),T=Ev(x,h,r),b=T[1];return[1,b,qt(b,m,T[2],h,1)];case 5:var N=A1(x,r),j=$r(Br),I=Yb0(x,j,r),F=I[1],M=I[2],z=Pe(F,r),B=[0,F[1],N,z];return[0,F,[5,B,G2(j),M]];default:var K=mt(x,zr(x,r));return[0,K,[7,Dx(r)]]}}),Kb0=H6(function(x,r){or(r);var e=Xb0(y(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(W(r,2),ms(y(r))===0){for(;W(r,2),ms(y(r))===0;);var t=w(r)}else var t=w(r);break;case 3:var t=1;break;case 4:W(r,1);var t=Ae(y(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:W(r,6);var u=V5(y(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(W(r,14),fo(y(r))===0){var i=bv(y(r));if(i===0)var t=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?13:w(r);else if(i===1&&Tr(y(r))===0){for(;;){var c=_v(y(r));if(c!==0)break}var t=c===1?13:w(r)}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Tx(yn0);switch(t){case 0:return[0,x,mr];case 1:return[2,$1(x,r)];case 2:return[2,x];case 3:var v=A1(x,r),a=$r(Br),l=nl(x,a,r),m=l[1];return[1,m,qt(m,v,l[2],a,0)];case 4:var h=A1(x,r),T=$r(Br),b=Ev(x,T,r),N=b[1];return[1,N,qt(N,h,b[2],T,1)];case 5:return[0,x,99];case 6:return[0,x,Je];case 7:return[0,x,y2];case 8:return[0,x,0];case 9:return[0,x,87];case 10:return[0,x,10];case 11:return[0,x,83];case 12:var j=Dx(r),I=A1(x,r),F=$r(Br),M=$r(Br);ir(M,j);for(var z=br(j,"'"),B=x;;){or(r);var K=y(r),n0=39>>0)var $=w(r);else switch(n0){case 0:var $=2;break;case 1:for(;;){W(r,7);var H=y(r),t0=-1>>0)var C0=Tx(Vt0);else switch($){case 0:if(!z){lt(M,39),lt(F,39);continue}var C0=B;break;case 1:if(z){lt(M,34),lt(F,34);continue}var C0=B;break;case 2:var C0=mt(B,zr(B,r));break;case 3:var D0=Dx(r);ir(M,D0),ir(F,D0);var B=$1(B,r);continue;case 4:var I0=Dx(r),j0=T1(I0,3,Nx(I0)-4|0);ir(M,I0),ps(F,vt(qx($t0,j0)));continue;case 5:var y0=Dx(r),Y0=T1(y0,2,Nx(y0)-3|0);ir(M,y0),ps(F,vt(Y0));continue;case 6:var L=Dx(r),N0=T1(L,1,Nx(L)-2|0);ir(M,L);var S0=fB(N0);S0?ps(F,S0[1]):ir(F,qx(Ht0,qx(N0,Qt0)));continue;default:var K0=Dx(r);ir(M,K0),ir(F,K0);continue}var A0=Pe(C0,r);ir(M,j);var $0=G2(F),ex=G2(M);return[0,C0,[10,[0,C0[1],I,A0],$0,ex]]}case 13:for(var xx=r[6];;){or(r);var tx=y(r),z0=s2>>0)var px=w(r);else switch(z0){case 0:var px=1;break;case 1:var px=2;break;case 2:var px=0;break;default:if(W(r,2),fo(y(r))===0){var sx=bv(y(r));if(sx===0)var px=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?0:w(r);else if(sx===1&&Tr(y(r))===0){for(;;){var Q=_v(y(r));if(Q!==0)break}var px=Q===1?0:w(r)}else var px=w(r)}else var px=w(r)}if(2>>0)throw W0([0,Nr,Tt0],1);switch(px){case 0:continue;case 1:break;default:if(Xj(aU(r)))continue;vU(r,1)}var b0=r[3];Rj(r,xx);var U=l2(r),h0=Q6(x,xx,b0);return[0,x,[8,G6(U),h0]]}default:return[0,x,[7,Dx(r)]]}}),Jb0=H6(function(x,r){or(r);var e=y(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(W(r,1),ms(y(r))===0){for(;W(r,1),ms(y(r))===0;);var u=w(r)}else var u=w(r);break;case 2:var u=0;break;case 3:W(r,0);var u=Ae(y(r))===0?0:w(r);break;case 4:W(r,5);var i=V5(y(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Tx(kn0);switch(u){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var c=A1(x,r),v=$r(Br),a=nl(x,v,r),l=a[1];return[1,l,qt(l,c,a[2],v,0)];case 3:var m=A1(x,r),h=$r(Br),T=Ev(x,h,r),b=T[1];return[1,b,qt(b,m,T[2],h,1)];case 4:var N=A1(x,r),j=$r(Br),I=$r(Br),F=iB(x,j,I,r),M=F[1],z=F[2],B=Pe(M,r),K=[0,M[1],N,B],n0=G2(I);return[0,M,[3,[0,K,G2(j),n0,0,z]]];default:var $=mt(x,zr(x,r));return[0,$,[3,[0,zr($,r),hn0,mn0,0,1]]]}}),Gb0=H6(function(x,r){function e(S){for(;;)if(W(S,29),cr(y(S))!==0)return w(S)}function t(S){W(S,29);var G=KU(y(S));if(3>>0)return w(S);switch(G){case 0:return e(S);case 1:var rx=to(y(S));if(rx===0)for(;;){W(S,24);var yx=rl(y(S));if(2>>0)return w(S);switch(yx){case 0:return u(S);case 1:break;default:return i(S)}}else{if(rx!==1)return w(S);for(;;){W(S,24);var Ex=ds(y(S));if(3>>0)return w(S);switch(Ex){case 0:return u(S);case 1:break;case 2:return c(S);default:return i(S)}}}break;case 2:for(;;){W(S,24);var nx=rl(y(S));if(2>>0)return w(S);switch(nx){case 0:return v(S);case 1:break;default:return a(S)}}break;default:for(;;){W(S,24);var p0=ds(y(S));if(3>>0)return w(S);switch(p0){case 0:return v(S);case 1:break;case 2:return c(S);default:return a(S)}}}}function u(S){for(;;)if(W(S,23),cr(y(S))!==0)return w(S)}function i(S){W(S,22);var G=X2(y(S));if(G!==0)return G===1?u(S):w(S);for(;;)if(W(S,21),cr(y(S))!==0)return w(S)}function c(S){for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,24);var G=ds(y(S));if(3>>0)return w(S);switch(G){case 0:return u(S);case 1:break;case 2:break x;default:return i(S)}}}}function v(S){for(;;)if(W(S,23),cr(y(S))!==0)return w(S)}function a(S){W(S,22);var G=X2(y(S));if(G!==0)return G===1?v(S):w(S);for(;;)if(W(S,21),cr(y(S))!==0)return w(S)}function l(S){W(S,27);var G=X2(y(S));if(G!==0)return G===1?e(S):w(S);for(;;)if(W(S,25),cr(y(S))!==0)return w(S)}function m(S){return W(S,3),$U(y(S))===0?3:w(S)}function h(S){return J5(y(S))===0&&X5(y(S))===0&&GU(y(S))===0&&LU(y(S))===0&&MU(y(S))===0&&B5(y(S))===0&&V6(y(S))===0&&J5(y(S))===0&&fo(y(S))===0&&Vj(y(S))===0&&Tv(y(S))===0?3:w(S)}function T(S){W(S,30);var G=FU(y(S));if(3>>0)return w(S);switch(G){case 0:return e(S);case 1:x:for(;;){W(S,30);var rx=no(y(S));if(4>>0)return w(S);switch(rx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var yx=no(y(S));if(4>>0)return w(S);switch(yx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}}break;case 2:return t(S);default:return l(S)}}function b(S){for(;;)if(W(S,15),cr(y(S))!==0)return w(S)}function N(S){W(S,30);var G=rl(y(S));if(2>>0)return w(S);switch(G){case 0:return e(S);case 1:x:for(;;){W(S,30);var rx=ds(y(S));if(3>>0)return w(S);switch(rx){case 0:return e(S);case 1:break;case 2:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var yx=ds(y(S));if(3>>0)return w(S);switch(yx){case 0:return e(S);case 1:break;case 2:break x;default:return l(S)}}}break;default:return l(S)}}function j(S){W(S,15);var G=X2(y(S));if(G!==0)return G===1?b(S):w(S);for(;;)if(W(S,15),cr(y(S))!==0)return w(S)}function I(S){W(S,28);var G=X2(y(S));if(G!==0)return G===1?e(S):w(S);for(;;)if(W(S,26),cr(y(S))!==0)return w(S)}function F(S){for(;;)if(W(S,9),cr(y(S))!==0)return w(S)}function M(S){for(;;)if(W(S,9),cr(y(S))!==0)return w(S)}function z(S){for(;;)if(W(S,13),cr(y(S))!==0)return w(S)}function B(S){for(;;)if(W(S,13),cr(y(S))!==0)return w(S)}function K(S){for(;;)if(W(S,19),cr(y(S))!==0)return w(S)}function n0(S){for(;;)if(W(S,19),cr(y(S))!==0)return w(S)}function $(S){for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var G=YU(y(S));if(4>>0)return w(S);switch(G){case 0:return e(S);case 1:return N(S);case 2:break;case 3:break x;default:return I(S)}}}}or(r);var H=function(S){var G=Bb0(y(S));if(31>>0)return w(S);switch(G){case 0:return 66;case 1:return 67;case 2:if(W(S,1),ms(y(S))!==0)return w(S);for(;;)if(W(S,1),ms(y(S))!==0)return w(S);break;case 3:return 0;case 4:return W(S,0),Ae(y(S))===0?0:w(S);case 5:return 6;case 6:return 65;case 7:if(W(S,67),V6(y(S))!==0)return w(S);var rx=y(S),yx=sn>>0)return w(S);switch(bx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var B0=no(y(S));if(4>>0)return w(S);switch(B0){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}}break;case 16:W(S,67);var Wx=V5(y(S));if(Wx!==0)return Wx===1?5:w(S);W(S,2);var Yx=F5(y(S));if(2>>0)return w(S);switch(Yx){case 0:for(;;){var ax=F5(y(S));if(2>>0)return w(S);switch(ax){case 0:break;case 1:return m(S);default:return h(S)}}break;case 1:return m(S);default:return h(S)}break;case 17:W(S,30);var Qx=UU(y(S));if(8>>0)return w(S);switch(Qx){case 0:return e(S);case 1:return T(S);case 2:x:for(;;){W(S,16);var kx=JU(y(S));if(4>>0)return w(S);switch(kx){case 0:return b(S);case 1:return N(S);case 2:break;case 3:break x;default:return j(S)}}for(;;){W(S,15);var tr=D5(y(S));if(3

>>0){if(p===55)break x}else if(21>>0)break x;var c=c+1|0;continue}var a=1}var _=a?i:Bx(i,OV);return u(_)}case 6:return t(R);case 7:var y=Cc(t(R)),S=nt(y);if(S===0)var E=y;else{var j=T2(S),C=S-1|0,P=0;if(C>=0)for(var O=P;;){Vr(j,O,rq(fe(y,O)));var F=O+1|0;if(C===O)break;var O=F}var E=j}return A1(E);case 8:return u(t(R));default:return zP(yq(x,r),e)}}function ch(x,r,e,t,u,i,c){if(typeof t=="number"){if(typeof u=="number")return u?function(E,j){return Lr(x,[4,r,Hv(E,i(c,j))],e)}:function(E){return Lr(x,[4,r,i(c,E)],e)};var v=u[1];return function(E){return Lr(x,[4,r,Hv(v,i(c,E))],e)}}if(t[0]===0){var a=t[2],p=t[1];if(typeof u=="number")return u?function(E,j){return Lr(x,[4,r,Oe(p,a,Hv(E,i(c,j)))],e)}:function(E){return Lr(x,[4,r,Oe(p,a,i(c,E))],e)};var _=u[1];return function(E){return Lr(x,[4,r,Oe(p,a,Hv(_,i(c,E)))],e)}}var y=t[1];if(typeof u=="number")return u?function(E,j,C){return Lr(x,[4,r,Oe(y,E,Hv(j,i(c,C)))],e)}:function(E,j){return Lr(x,[4,r,Oe(y,E,i(c,j))],e)};var S=u[1];return function(E,j){return Lr(x,[4,r,Oe(y,E,Hv(S,i(c,j)))],e)}}function hN(x,r,e,t,u){if(typeof t=="number")return function(a){return Lr(x,[4,r,u(a)],e)};if(t[0]===0){var i=t[2],c=t[1];return function(a){return Lr(x,[4,r,Oe(c,i,u(a))],e)}}var v=t[1];return function(a,p){return Lr(x,[4,r,Oe(v,a,u(p))],e)}}function Bl(x,r,e,t){for(var u=r,i=e,c=t;;){if(typeof c=="number")return u(i);switch(c[0]){case 0:var v=c[1];return function(S0){return Lr(u,[5,i,S0],v)};case 1:var a=c[1];return function(S0){x:{r:{if(40<=S0){if(S0===92){var cx=vz;break x}if(Yr>S0)break r}else{if(32<=S0){if(39>S0)break r;var cx=lz;break x}if(14>S0)switch(S0){case 8:var cx=pz;break x;case 9:var cx=kz;break x;case 10:var cx=mz;break x;case 13:var cx=hz;break x}}var q0=T2(4);Vr(q0,0,92),Vr(q0,1,48+(S0/et|0)|0),Vr(q0,2,48+((S0/10|0)%10|0)|0),Vr(q0,3,48+(S0%10|0)|0);var cx=A1(q0);break x}var yx=T2(1);Vr(yx,0,S0);var cx=A1(yx)}var Dx=Nx(cx),Ix=No(Dx+2|0,39);return Dc(cx,0,Ix,1,Dx),Lr(u,[4,i,A1(Ix)],a)};case 2:var p=c[2],_=c[1];return hN(u,i,p,_,function(S0){return S0});case 3:return hN(u,i,c[2],c[1],wb0);case 4:return ch(u,i,c[4],c[2],c[3],Tb0,c[1]);case 5:return ch(u,i,c[4],c[2],c[3],Eb0,c[1]);case 6:return ch(u,i,c[4],c[2],c[3],Sb0,c[1]);case 7:return ch(u,i,c[4],c[2],c[3],Ab0,c[1]);case 8:var y=c[4],S=c[3],E=c[2],j=c[1];if(typeof E=="number"){if(typeof S=="number")return S?function(S0,q0){return Lr(u,[4,i,Ps(j,S0,q0)],y)}:function(S0){return Lr(u,[4,i,Ps(j,kN(j),S0)],y)};var C=S[1];return function(S0){return Lr(u,[4,i,Ps(j,C,S0)],y)}}if(E[0]===0){var P=E[2],O=E[1];if(typeof S=="number")return S?function(S0,q0){return Lr(u,[4,i,Oe(O,P,Ps(j,S0,q0))],y)}:function(S0){return Lr(u,[4,i,Oe(O,P,Ps(j,kN(j),S0))],y)};var F=S[1];return function(S0){return Lr(u,[4,i,Oe(O,P,Ps(j,F,S0))],y)}}var K=E[1];if(typeof S=="number")return S?function(S0,q0,yx){return Lr(u,[4,i,Oe(K,S0,Ps(j,q0,yx))],y)}:function(S0,q0){return Lr(u,[4,i,Oe(K,S0,Ps(j,kN(j),q0))],y)};var U=S[1];return function(S0,q0){return Lr(u,[4,i,Oe(K,S0,Ps(j,U,q0))],y)};case 9:return hN(u,i,c[2],c[1],mb0);case 10:var i=[7,i],c=c[1];break;case 11:var i=[2,i,c[1]],c=c[2];break;case 12:var i=[3,i,c[1]],c=c[2];break;case 13:var V=c[3],Q=c[2],$=kq(16);mN($,Q);var x0=hq($);return function(S0){return Lr(u,[4,i,x0],V)};case 14:var e0=c[3],Z=c[2];return function(S0){var q0=S0[1],yx=a2(q0,C2(Q2(Z)));if(typeof yx[2]=="number")return Lr(u,i,E2(yx[1],e0));throw U0(m1,1)};case 15:var c0=c[1];return function(S0,q0){return Lr(u,[6,i,function(yx){return k(S0,yx,q0)}],c0)};case 16:var d0=c[1];return function(S0){return Lr(u,[6,i,S0],d0)};case 17:var i=[0,i,c[1]],c=c[2];break;case 18:var n0=c[1];if(n0[0]===0)var P0=c[2],h0=n0[1][1],g0=0,u=function(S0,q0,yx){return function(cx){return Lr(q0,[1,S0,[0,cx]],yx)}}(i,u,P0),i=g0,c=h0;else var v0=c[2],p0=n0[1][1],w0=0,u=function(S0,q0,yx){return function(cx){return Lr(q0,[1,S0,[1,cx]],yx)}}(i,u,v0),i=w0,c=p0;break;case 19:throw U0([0,Ar,hV],1);case 20:var T0=c[3],E0=[8,i,dV];return function(S0){return Lr(u,E0,T0)};case 21:var N0=c[2];return function(S0){return Lr(u,[4,i,zm(iL,S0)],N0)};case 22:var X0=c[1];return function(S0){return Lr(u,[5,i,S0],X0)};case 23:var A0=c[2],rx=c[1];if(typeof rx=="number")switch(rx){case 0:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 1:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 2:throw U0([0,Ar,yV],1);default:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0])}switch(rx[0]){case 0:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 1:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 2:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 3:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 4:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 5:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 6:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 7:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 8:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 9:var B=rx[2];return x<50?dN(x+1|0,u,i,B,A0):l1(dN,[0,u,i,B,A0]);case 10:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);default:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0])}default:var G0=c[3],W0=c[1],Y0=l(c[2],0);return x<50?yN(x+1|0,u,i,G0,W0,Y0):l1(yN,[0,u,i,G0,W0,Y0])}}}function dN(x,r,e,t,u){if(typeof t=="number")return x<50?u2(x+1|0,r,e,u):l1(u2,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(U){return it(r,e,i,u)};case 1:var c=t[1];return function(U){return it(r,e,c,u)};case 2:var v=t[1];return function(U){return it(r,e,v,u)};case 3:var a=t[1];return function(U){return it(r,e,a,u)};case 4:var p=t[1];return function(U){return it(r,e,p,u)};case 5:var _=t[1];return function(U){return it(r,e,_,u)};case 6:var y=t[1];return function(U){return it(r,e,y,u)};case 7:var S=t[1];return function(U){return it(r,e,S,u)};case 8:var E=t[2];return function(U){return it(r,e,E,u)};case 9:var j=t[3],C=t[2],P=i1(Q2(t[1]),C);return function(U){return it(r,e,Q1(P,j),u)};case 10:var O=t[1];return function(U,V){return it(r,e,O,u)};case 11:var F=t[1];return function(U){return it(r,e,F,u)};case 12:var K=t[1];return function(U){return it(r,e,K,u)};case 13:throw U0([0,Ar,gV],1);default:throw U0([0,Ar,_V],1)}}function u2(x,r,e,t){var u=[8,e,bV];return x<50?Bl(x+1|0,r,u,t):l1(Bl,[0,r,u,t])}function yN(x,r,e,t,u,i){if(u){var c=u[1];return function(a){return Ib0(r,e,t,c,l(i,a))}}var v=[4,e,i];return x<50?Bl(x+1|0,r,v,t):l1(Bl,[0,r,v,t])}function Lr(x,r,e){return xN(Bl(0,x,r,e))}function it(x,r,e,t){return xN(dN(0,x,r,e,t))}function Ib0(x,r,e,t,u){return xN(yN(0,x,r,e,t,u))}function Ns(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=dq(e[2]);return Ns(x,t),Ol(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];Ns(x,c),Ol(x,wV);var e=v}else{var a=i[1];Ns(x,c),Ol(x,TV);var e=a}break;case 6:var p=e[2];return Ns(x,e[1]),l(p,x);case 7:Ns(x,e[1]),Rc(x);return;case 8:var _=e[2];return Ns(x,e[1]),B1(_);case 2:case 4:var y=e[2];return Ns(x,e[1]),Ol(x,y);default:var S=e[2];Ns(x,e[1]),YU(x,S);return}}}function Os(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=dq(e[2]);return Os(x,t),ar(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];Os(x,c),ar(x,EV);var e=v}else{var a=i[1];Os(x,c),ar(x,SV);var e=a}break;case 6:var p=e[2];return Os(x,e[1]),ar(x,l(p,0));case 7:var e=e[1];break;case 8:var _=e[2];return Os(x,e[1]),B1(_);case 2:case 4:var y=e[2];return Os(x,e[1]),ar(x,y);default:var S=e[2];return Os(x,e[1]),ut(x,S)}}}function gq(x,r){var e=r[1],t=0;return Lr(function(u){return Ns(x,u),0},t,e)}function gN(x){return gq(Lc,x)}function yr(x){var r=x[1];return Lr(function(e){var t=Qr(64);return Os(t,e),R2(t)},0,r)}var _N=[0,0];function bN(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return l(yr(oW),e);if(Po(e)===go)return l(yr(vW),e);if(Po(e)!==i8)return lW;for(var t=zP("%.12g",e),u=0,i=Nx(t);;){if(i<=u)return Bx(t,cz);var c=N2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function _q(x,r){if(x.length-1<=r)return BG;var e=_q(x,r+1|0),t=bN(x,r);return k(yr(XG),t,e)}function sh(x){x:{r:{for(var r=_N[1];r;){e:{var e=r[2],t=r[1];try{var u=l(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===rN)return eW;if(x===$U)return tW;if(x[1]===WU){var c=x[2],v=c[3],a=c[2],p=c[1];return I1(yr(tN),p,a,v,v+5|0,nW)}if(x[1]===Ar){var _=x[2],y=_[3],S=_[2],E=_[1];return I1(yr(tN),E,S,y,y+6|0,uW)}if(x[1]===Pl){var j=x[2],C=j[3],P=j[2],O=j[1];return I1(yr(tN),O,P,C,C+6|0,iW)}if(Po(x)!==0)return x[1];var F=x.length-1,K=x[1][1];if(2>>0)var U=_q(x,2),V=bN(x,1),Q=k(yr(fW),V,U);else switch(F){case 0:var Q=cW;break;case 1:var Q=sW;break;default:var $=bN(x,1),Q=l(yr(aW),$)}return Bx(K,Q)}function wN(x,r){var e=TY(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=$2(e,i)[1+i],v=function(U){return function(V){return V?U===0?GG:WG:U===0?$G:HG}}(i);if(c[0]===0)var a=c[5],p=c[4],_=c[3],y=c[6]?QG:ZG,S=c[2],E=c[7],j=v(c[1]),P=[0,uz(yr(xW),j,E,S,y,_,p,a)];else if(c[1])var P=0;else var C=v(0),P=[0,l(yr(rW),C)];if(P){var O=P[1];l(gq(x,VG),O)}var F=i+1|0;if(t===i)break;var i=F}}function bq(x){for(;;){var r=_N[1],e=1-nN(_N,r,[0,x,r]);if(!e)return e}}var jb0=pW.slice(),Pb0=[0];ZP(cR,function(x,r){try{try{var e=r?Pb0:RU(0);try{iN(R)}catch{}try{var t=sh(x);l(gN(zG),t),wN(Lc,e);var u=MY(0);if(u<0){var i=rh(u);ZU($2(jb0,i)[1+i])}var c=Rc(Lc),v=c}catch(E){var a=O2(E),p=sh(x);l(gN(JG),p),wN(Lc,e);var _=sh(a);l(gN(KG),_),wN(Lc,RU(0));var v=Rc(Lc)}var y=v}catch(E){var S=O2(E);if(S!==rN)throw U0(S,0);var y=ZU(YG)}return y}catch{return 0}});var TN=[x2,DW,Ts(0)],ah=0,wq=-1;function Xl(x,r){return x[13]=x[13]+r[3]|0,vN(r,x[28])}var Tq=1000000010;function EN(x,r){return B0(x[17],r,0,Nx(r))}function oh(x){return l(x[19],0)}function Eq(x,r,e){x[9]=x[9]-r|0,EN(x,e),x[11]=0}function vh(x,r){var e=I(r,H0);return e&&Eq(x,Nx(r),r)}function Co(x,r,e){var t=r[3],u=r[2];vh(x,r[1]),oh(x),x[11]=1;var i=(x[6]-e|0)+u|0,c=x[8],v=c<=i?c:i;return x[10]=v,x[9]=x[6]-x[10]|0,l(x[21],x[10]),vh(x,t)}function Sq(x,r){return Co(x,CW,r)}function Qv(x,r){var e=r[2],t=r[3];return vh(x,r[1]),x[9]=x[9]-e|0,l(x[20],e),vh(x,t)}function Nb0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Wv(x[3]);if(!t)return;var u=t[1][1],i=function(Y0,V0){if(!V0)return[0,Y0,0];var ex=V0[1],Q0=V0[2];return LY(Y0,ex)?[0,Y0,V0]:[0,ex,i(Y0,Q0)]};u[1]=i(x[6]-x[9]|0,u[1]);return;case 1:Gv(x[2]);return;case 2:Gv(x[3]);return;case 3:var c=Wv(x[2]);return c?Sq(x,c[1][2]):oh(x);case 4:var v=x[10]!==(x[6]-x[9]|0)?1:0;if(!v)return v;var a=x[28],p=a[2];if(p){var _=p[1];if(p[2]){var y=p[2];a[1]=a[1]-1|0,a[2]=y;var S=[0,_]}else{oN(a);var S=[0,_]}}else var S=0;if(!S)return;var E=S[1],j=E[1];x[12]=x[12]-E[3]|0,x[9]=x[9]+j|0;return;default:var C=Gv(x[5]);return C?EN(x,l(x[25],C[1])):void 0}switch(e[0]){case 0:return Eq(x,r,e[1]);case 1:var P=e[2],O=e[1],F=P[1],K=P[2],U=Wv(x[2]);if(!U)return;var V=U[1],Q=V[2];switch(V[1]){case 0:return Qv(x,O);case 1:return Co(x,P,Q);case 2:return Co(x,P,Q);case 3:return x[9]<(r+Nx(F)|0)?Co(x,P,Q):Qv(x,O);case 4:return x[11]?Qv(x,O):x[9]<(r+Nx(F)|0)||((x[6]-Q|0)+K|0)h0){var n0=g0;continue}var v0=h0}else var v0=P0;var p0=v0;break}else var p0=$;var w0=p0-$|0;return 0<=w0?Qv(x,[0,PW,w0+e0|0,jW]):Co(x,[0,OW,p0+x0|0,NW],x[6]);case 3:var T0=e[2],E0=e[1];if(x[8]<(x[6]-x[9]|0)){var N0=Wv(x[2]);if(N0){var X0=N0[1],A0=X0[2],rx=X0[1];x[9]=rx-1>>>0&&Sq(x,A0)}else oh(x)}var B=x[9]-E0|0,G0=T0===1?1:x[9]=x[14]);)Oq(x,R);return x[13]=Tq,Aq(x),r&&oh(x),x[12]=1,x[13]=1,oN(x[28]),SN(x[1]),Ul(x[2]),Ul(x[3]),Ul(x[4]),Ul(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Nq(x,0,3)}function jN(x,r,e){var t=x[14]=e)return B0(x[17],Rq,0,e);B0(x[17],Rq,0,80);var e=e+ZR|0}}function Ob0(x){return x[1]===TN?Bx(_W,Bx(x[2],gW)):bW}function Cb0(x){return x[1]===TN?Bx(dW,Bx(x[2],hW)):yW}function Db0(x){return 0}function Rb0(x){return 0}function Lq(x,r){function e(S){return 0}function t(S){return 0}function u(S){return 0}var i=lq(R),c=[0,wq,kW,0];vN(c,i);var v=Ml(R);SN(v),Oo([0,1,c],v);var a=Ml(R),p=Ml(R),_=Ml(R),y=[0,v,Ml(R),_,p,a,78,10,68,78,0,1,1,1,1,kb0,mW,x,r,u,t,e,0,0,Ob0,Cb0,Db0,Rb0,i];return y[19]=function(S){return B0(y[17],wW,0,1)},y[20]=function(S){return Fq(y,S)},y[21]=function(S){return Fq(y,S)},y}function Mq(x){function r(e){return Rc(x)}return Lq(function(e,t,u){return 0<=t&&0<=u&&(Nx(e)-u|0)>=t?HP(x,e,t,u):B1(fz)},r)}function PN(x){function r(e){return 0}return Lq(function(e,t,u){return pq(x,e,t,u)},r)}var Fb0=g_;function Uq(x){return Qr(Fb0)}var Lb0=Uq(R),Mb0=Mq(hb0),Ub0=Mq(Lc);PN(Lb0);function qq(x,r){var e=Qr(16),t=PN(e);x(t,r),Kl(t,R);var u=e[2];if(2>u)return R2(e);var i=u-2|0,c=1;return 0<=i&&(e[2]-i|0)>=1?Vv(e[1],c,i):B1(Lz)}function Ce(x,r){if(typeof r!="number"){x:{r:{e:{switch(r[0]){case 0:var e=r[2];if(Ce(x,r[1]),typeof e=="number")switch(e){case 0:return Oq(x,R);case 1:return Cq(x,R);case 2:return Kl(x,R);case 3:var t=x[14]>>0)break;var $=$+1|0}break t}var x0=k1(O,Q,$-Q|0),e0=V($);t:n:{for(var Z=e0;;){if(Z===K)break n;var c0=N2(O,Z);if(48<=c0){if(58<=c0)break}else if(c0!==45)break;var Z=Z+1|0}break t}if(e0===Z)var d0=0;else try{var n0=tt(k1(O,e0,Z-e0|0)),d0=n0}catch(Dx){var P0=O2(Dx);if(P0[1]!==Qt)throw U0(P0,0);var d0=U(R)}V(Z)!==K&&U(R);t:{if(I(x0,H0)&&I(x0,QT)){if(!I(x0,"h")){var h0=0;break t}if(!I(x0,"hov")){var h0=3;break t}if(!I(x0,"hv")){var h0=2;break t}if(I(x0,BR)){var h0=U(R);break t}var h0=1;break t}var h0=4}var F=[0,d0,h0]}return Nq(x,F[1],F[2]);case 2:var g0=r[1];if(typeof g0!="number"&&g0[0]===0){var v0=g0[2];if(typeof v0!="number"&&v0[0]===1){var p0=r[2],w0=v0[2],T0=g0[1];break r}}var W0=r[2],Y0=g0;break x;case 3:var E0=r[1];if(typeof E0!="number"&&E0[0]===0){var N0=E0[2];if(typeof N0!="number"&&N0[0]===1){var X0=r[2],A0=N0[2],rx=E0[1];break}}var Q0=r[2],S0=E0;break e;case 4:var B=r[1];if(typeof B!="number"&&B[0]===0){var G0=B[2];if(typeof G0!="number"&&G0[0]===1){var p0=r[2],w0=G0[2],T0=B[1];break r}}var W0=r[2],Y0=B;break x;case 5:var V0=r[1];if(typeof V0!="number"&&V0[0]===0){var ex=V0[2];if(typeof ex!="number"&&ex[0]===1){var X0=r[2],A0=ex[2],rx=V0[1];break}}var Q0=r[2],S0=V0;break e;case 6:var q0=r[2];return Ce(x,r[1]),l(q0,x);case 7:return Ce(x,r[1]),Kl(x,R);default:var yx=r[2];return Ce(x,r[1]),B1(yx)}return Ce(x,rx),jN(x,A0,nh(1,X0))}return Ce(x,S0),Jl(x,Q0)}return Ce(x,T0),jN(x,w0,p0)}return Ce(x,Y0),lh(x,W0)}}function e2(x){return function(r){var e=r[1],t=0;return Lr(function(u){return Ce(x,u),0},t,e)}}for(;;){var Bq=uN[1],qb0=[0,1];if(!(1-nN(uN,Bq,function(x,r){return function(e){return nN(x,1,0)&&(Kl(Mb0,R),Kl(Ub0,R)),l(r,0)}}(qb0,Bq))))break}var Bb0=2;function Xb0(x){var r=[0,0],e=Nx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=N2(x,u);r[1]=(ak*r[1]|0)+i|0;var c=u+1|0;if(e===u)break;var u=c}r[1]=r[1]&$D;var v=1073741823=0)for(var c=i;;){var v=(c*2|0)+3|0,a=$2(x,c)[1+c];$2(e,v)[1+v]=a;var p=c+1|0;if(u===c)break;var c=p}return[0,Bb0,e,Do[1],pa[1],0,0,Cs[1],0]}function NN(x,r){var e=x[2].length-1;if(e=0&&(t.length-1-e|0)>=0){tY(u,0,t,0,e);break x}B1(Sz)}x[2]=t}}var Kb0=[0,0];function ON(x){var r=x[2].length-1;return NN(x,r+1|0),r}function Yl(x,r){try{var e=Do[28].call(null,r,x[3]);return e}catch(i){var t=O2(i);if(t!==Fc)throw U0(t,0);var u=ON(x);return x[3]=Do[4].call(null,r,u,x[3]),x[4]=pa[4].call(null,u,1,x[4]),u}}function CN(x,r){return uh(function(e){return Yl(x,e)},r)}function Yq(x,r,e){if(Kb0[1]++,pa[28].call(null,r,x[4])){NN(x,r+1|0),$2(x[2],r)[1+r]=e;return}x[6]=[0,[0,r,e],x[6]]}function DN(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}}function RN(x,r){try{var e=Cs[28].call(null,r,x[7]);return e}catch(i){var t=O2(i);if(t!==Fc)throw U0(t,0);var u=x[1];return x[1]=u+1|0,I(r,H0)&&(x[7]=Cs[4].call(null,r,u,x[7])),u}}function FN(x){return Xv(x,0)?[0]:x}function LN(x,r,e,t,u,i){var c=u[2],v=u[4],a=DN(r),p=DN(e),_=DN(t),y=xn(function(v0){return Yl(x,v0)},p),S=xn(function(v0){return Yl(x,v0)},_);x[5]=[0,[0,x[3],x[4],x[6],x[7],y,a],x[5]];var E=Cs[1],j=x[7];function C(v0,p0,w0){return sN(v0,a)?Cs[4].call(null,v0,p0,w0):w0}x[7]=Cs[13].call(null,C,j,E);var P=[0,Do[1]],O=[0,pa[1]];tq(function(v0,p0){P[1]=Do[4].call(null,v0,p0,P[1]);var w0=O[1];try{var T0=pa[28].call(null,p0,x[4]),E0=T0}catch(X0){var N0=O2(X0);if(N0!==Fc)throw U0(N0,0);var E0=1}O[1]=pa[4].call(null,p0,E0,w0)},_,S),tq(function(v0,p0){P[1]=Do[4].call(null,v0,p0,P[1]),O[1]=pa[4].call(null,p0,0,O[1])},p,y),x[3]=P[1],x[4]=O[1];var F=0,K=x[6];x[6]=fN(function(v0,p0){return sN(v0[1],y)?p0:[0,v0,p0]},K,F);var U=i?l(c(x),v):c(x),V=Dl(x[5]),Q=V[6],$=V[5],x0=V[4],e0=V[3],Z=V[2],c0=V[1];x[5]=eq(x[5]),x[7]=u1(function(v0,p0){var w0=Cs[28].call(null,p0,x[7]);return Cs[4].call(null,p0,w0,v0)},x0,Q),x[3]=c0,x[4]=Z;var d0=x[6];x[6]=fN(function(v0,p0){return sN(v0[1],$)?p0:[0,v0,p0]},d0,e0);var n0=0,P0=FN(t),h0=[0,uh(function(v0){var p0=Yl(x,v0);try{for(var w0=x[6];;){if(!w0)throw U0(Fc,1);var T0=w0[1],E0=w0[2],N0=T0[2];if(CU(T0[1],p0)===0)return N0;var w0=E0}}catch(A0){var X0=O2(A0);if(X0===Fc)return $2(x[2],p0)[1+p0];throw U0(X0,0)}},P0),n0],g0=FN(r);return nY([0,[0,U],[0,uh(function(v0){try{var p0=Cs[28].call(null,v0,x[7]);return p0}catch(T0){var w0=O2(T0);throw w0===Fc?U0([0,Ar,RW],1):U0(w0,0)}},g0),h0]])}function ph(x,r){if(x===0)var e=Kq([0]);else{var t=Kq(uh(Xb0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var c=i;;){var v=(c*2|0)+2|0;t[3]=Do[4].call(null,x[1+c],v,t[3]),t[4]=pa[4].call(null,v,1,t[4]);var a=c+1|0;if(u===c)break;var c=a}var e=t}var p=r(e);return e[8]=vx(e[8]),NN(e,3+(($2(e[2],1)[2]*16|0)/32|0)|0),[0,l(p,0),r,,0]}function kh(x,r){if(x)return x;var e=QP(x2,r[1]);return e[1]=r[2],$Y(e)}function MN(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;u;){var i=u[2];l(u[1],r);var u=i}return r}function mh(x){var r=ON(x);x:{if(r%2|0&&(2+(($2(x[2],1)[2]*16|0)/32|0)|0)>=r){var e=ON(x);break x}var e=r}return $2(x[2],e)[1+e]=0,e}function UN(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return;var u=e[1],i=$2(r,u)[1+u],c=function(Ur){e[1]++;var px=e[1];return $2(r,px)[1+px]},v=c(R);if(typeof v=="number")switch(v){case 0:var a=c(R),Yx=function(px){return function(w){return px}}(a);break;case 1:var p=c(R),Yx=function(px){return function(w){return w[1+px]}}(p);break;case 2:var _=c(R),y=c(R),Yx=function(px,w){return function(L){return L[1+px][1+w]}}(_,y);break;case 3:var S=c(R),Yx=function(px){return function(w){return l(w[1][1+px],w)}}(S);break;case 4:var E=c(R),Yx=function(px){return function(w,L){return w[1+px]=L,0}}(E);break;case 5:var j=c(R),C=c(R),Yx=function(px,w){return function(L){return l(px,w)}}(j,C);break;case 6:var P=c(R),O=c(R),Yx=function(px,w){return function(L){return l(px,L[1+w])}}(P,O);break;case 7:var F=c(R),K=c(R),U=c(R),Yx=function(px,w,L){return function(L0){return l(px,L0[1+w][1+L])}}(F,K,U);break;case 8:var V=c(R),Q=c(R),Yx=function(px,w){return function(L){return l(px,l(L[1][1+w],L))}}(V,Q);break;case 9:var $=c(R),x0=c(R),e0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,L)}}($,x0,e0);break;case 10:var Z=c(R),c0=c(R),d0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,L0[1+L])}}(Z,c0,d0);break;case 11:var n0=c(R),P0=c(R),h0=c(R),g0=c(R),Yx=function(px,w,L,L0){return function(sx){return k(px,w,sx[1+L][1+L0])}}(n0,P0,h0,g0);break;case 12:var v0=c(R),p0=c(R),w0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,l(L0[1][1+L],L0))}}(v0,p0,w0);break;case 13:var T0=c(R),E0=c(R),N0=c(R),Yx=function(px,w,L){return function(L0){return k(px,L0[1+w],L)}}(T0,E0,N0);break;case 14:var X0=c(R),A0=c(R),rx=c(R),B=c(R),Yx=function(px,w,L,L0){return function(sx){return k(px,sx[1+w][1+L],L0)}}(X0,A0,rx,B);break;case 15:var G0=c(R),W0=c(R),Y0=c(R),Yx=function(px,w,L){return function(L0){return k(px,l(L0[1][1+w],L0),L)}}(G0,W0,Y0);break;case 16:var V0=c(R),ex=c(R),Yx=function(px,w){return function(L){return k(L[1][1+px],L,w)}}(V0,ex);break;case 17:var Q0=c(R),S0=c(R),Yx=function(px,w){return function(L){return k(L[1][1+px],L,L[1+w])}}(Q0,S0);break;case 18:var q0=c(R),yx=c(R),cx=c(R),Yx=function(px,w,L){return function(L0){return k(L0[1][1+px],L0,L0[1+w][1+L])}}(q0,yx,cx);break;case 19:var Dx=c(R),Ix=c(R),Yx=function(px,w){return function(L){var L0=l(L[1][1+w],L);return k(L[1][1+px],L,L0)}}(Dx,Ix);break;case 20:var Xx=c(R),Z0=c(R);mh(x);var Yx=function(px,w){return function(L){return l(Wx(w,px,0),w)}}(Xx,Z0);break;case 21:var rr=c(R),xr=c(R);mh(x);var Yx=function(px,w){return function(L){var L0=L[1+w];return l(Wx(L0,px,0),L0)}}(rr,xr);break;case 22:var fr=c(R),Hx=c(R),Y=c(R);mh(x);var Yx=function(px,w,L){return function(L0){var sx=L0[1+w][1+L];return l(Wx(sx,px,0),sx)}}(fr,Hx,Y);break;default:var jx=c(R),hr=c(R);mh(x);var Yx=function(px,w){return function(L){var L0=l(L[1][1+w],L);return l(Wx(L0,px,0),L0)}}(jx,hr)}else var Yx=v;Yq(x,i,Yx),e[1]++}}function zq(x,r){var e=r.length-1,t=QP(0,e),u=e-1|0,i=0;if(u>=0)for(var c=i;;){var v=$2(r,c)[1+c];if(typeof v=="number")switch(v){case 0:var _=function(j){function C(P){var O=t[1+j];if(C===O)throw U0([0,Pl,x],1);return l(O,P)}return C}(c);break;case 1:var a=[];m0(a,[Pk,function(j,C){return function(P){var O=t[1+C];if(j===O)throw U0([0,Pl,x],1);var F=Po(O);if(Mv===F)return O[1];if(Pk!==F)return O;var K=O[1];O[1]=gb0;try{var U=l(K,0);return GY(O,U),U}catch(Q){var V=O2(Q);throw O[1]=function($){throw U0(V,0)},U0(V,0)}}}(a,c)]);var _=a;break;default:var p=function(j){throw U0([0,Pl,x],1)},_=[0,p,p,p,0]}else var _=v[0]===0?zq(x,v[1]):v[1];t[1+c]=_;var y=c+1|0;if(u===c)break;var c=y}return t}function Vq(x,r,e){if(Po(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=e[1+i],v=$2(x,i)[1+i];x:if(typeof v=="number"){if(v===2){if(Po(c)===0&&c.length-1===4){for(var a=0,p=r[1+i];;){p[1+a]=c[1+a];var _=a+1|0;if(a===3)break;var a=_}break x}throw U0([0,Ar,FW],1)}r[1+i]=c}else v[0]===0&&Vq(v[1],r[1+i],c);var y=i+1|0;if(t===i)break;var i=y}return}throw U0([0,Ar,LW],1)}try{zU("TMPDIR")}catch(x){var Gq=O2(x);if(Gq!==Fc)throw U0(Gq,0)}try{zU("TEMP")}catch(x){var Wq=O2(x);if(Wq!==Fc)throw U0(Wq,0)}I(xq,IM)&&I(xq,"Win32");function Mc(x,r){function e(t){return ut(x,t)}return el<=r?(e(po|r>>>18|0),e(y2|(r>>>12|0)&63),e(y2|(r>>>6|0)&63),e(y2|r&63)):kj<=r?(e(Tv|r>>>12|0),e(y2|(r>>>6|0)&63),e(y2|r&63)):y2<=r?(e(dv|r>>>6|0),e(y2|r&63)):e(r)}var ka=[x2,qW,Ts(0)],$q=0,Hq=0,Qq=0,Zq=0,xB=0,rB=0,eB=0,tB=0,nB=0,uB=0;function h(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r}function z(x,r){x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r}function kr(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],z(x,-1)}function d(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]}function Zv(x){x[3]=x[6],x[4]=x[7],x[5]=x[8]}function qN(x,r){x[6]=r}function hh(x){return x[3]-x[6]|0}function i2(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?uY(t,e,r):B1(Az)}function iB(x){var r=x[6];return $2(x[1],r)[1+r]}function zl(x,r,e,t){for(var u=[0,r],i=[0,e],c=[0,0];;){if(0>=i[1])return c[1];var v=x[1+u[1]];if(0>v)throw U0(ka,1);if(Yr>>18|0),Vr(t,c[1]+1|0,y2|(v>>>12|0)&63),Vr(t,c[1]+2|0,y2|(v>>>6|0)&63),Vr(t,c[1]+3|0,y2|v&63),c[1]=c[1]+4|0}else Vr(t,c[1],Tv|v>>>12|0),Vr(t,c[1]+1|0,y2|(v>>>6|0)&63),Vr(t,c[1]+2|0,y2|v&63),c[1]=c[1]+3|0;else Vr(t,c[1],dv|v>>>6|0),Vr(t,c[1]+1|0,y2|v&63),c[1]=c[1]+2|0;else Vr(t,c[1],v),c[1]++;u[1]++,i[1]+=-1}}function fB(x){for(var r=Nx(x),e=Jv(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],uB,nB,tB,eB,rB,xB,Zq,Qq,Hq,$q];var i=F0(x,t[1]);x:{if(dv<=i){if(po>i){if(Tv>i){var c=F0(x,t[1]+1|0);if((c>>>6|0)!==2)throw U0(ka,1);e[1+u[1]]=(i&31)<<6|c&63,t[1]=t[1]+2|0;break x}var v=F0(x,t[1]+1|0),a=F0(x,t[1]+2|0),p=(i&15)<<12|(v&63)<<6|a&63,_=(v>>>6|0)!==2?1:0,y=_||((a>>>6|0)!==2?1:0);if(y)var E=y;else var S=55296<=p?1:0,E=S&&(p<=57343?1:0);if(E)throw U0(ka,1);e[1+u[1]]=p,t[1]=t[1]+3|0;break x}if(x2>i){var j=F0(x,t[1]+1|0),C=F0(x,t[1]+2|0),P=F0(x,t[1]+3|0),O=(j>>>6|0)!==2?1:0;if(O)var K=O;else var F=(C>>>6|0)!==2?1:0,K=F||((P>>>6|0)!==2?1:0);if(K)throw U0(ka,1);var U=(i&7)<<18|(j&63)<<12|(C&63)<<6|P&63;if(d8i){e[1+u[1]]=i,t[1]++;break x}throw U0(ka,1)}u[1]++}}function Vl(x,r,e){var t=x[6]+r|0,u=T2(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Vv(u,0,zl(i,t,e,u));throw U0([0,Ar,UW],1)}function Ox(x){var r=x[6],e=x[3]-r|0,t=T2(e*4|0);return Vv(t,0,zl(x[1],r,e,t))}function dh(x,r){var e=x[6],t=x[3]-e|0,u=T2(t*4|0);return pN(r,u,0,zl(x[1],e,t,u))}function Gl(x){var r=x.length-1,e=T2(r*4|0);return Vv(e,0,zl(x,0,r,e))}function cB(x,r){x[3]=x[3]-r|0}function Uc(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function Ro(x,r,e,t){var u=Uc(x),i=Uc(t),c=i<=u?u+1|0:i+1|0;return c===1?[0,r,e]:[1,c,r,e,x,t]}function yh(x,r,e,t){var u=Uc(x),i=Uc(t),c=i<=u?u+1|0:i+1|0;return[1,c,r,e,x,t]}function sB(x,r,e,t){var u=Uc(x),i=Uc(t);if((i+2|0)=i)return Ro(x,r,e,t);var C=t[5],P=t[4],O=t[3],F=t[2],K=Uc(P);if(K<=Uc(C))return yh(Ro(x,r,e,P),F,O,C);var U=P[4],V=P[3],Q=P[2],$=Ro(P[5],F,O,C);return yh(Ro(x,r,e,U),Q,V,$)}var Yb0=0;function ma(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function Ds(x,r,e){x:{r:{if(typeof x=="number"){if(typeof e=="number")return[0,r];if(e[0]===1)break r}else{if(x[0]!==0){var t=x[1];if(typeof e!="number"&&e[0]===1){var u=e[1],i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}var c=t;break x}if(typeof e!="number"&&e[0]===1)break r}return[1,2,r,x,e]}var c=e[1]}return[1,c+1|0,r,x,e]}function gh(x,r,e){var t=ma(x),u=ma(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}function aB(x,r,e){var t=ma(x),u=ma(e);if((u+2|0)=u)return Ds(x,r,e);var S=e[4],E=e[3],j=e[2],C=ma(E);if(C<=ma(S))return gh(Ds(x,r,E),j,S);var P=E[3],O=E[2],F=Ds(E[4],j,S);return gh(Ds(x,r,P),O,F)}var BN=0;function oB(x){function r(e,t){if(typeof t=="number")return[0,e];if(t[0]===0){var u=t[1],i=k(x[1],e,u);return i===0?t:0<=i?Ds(t,e,BN):Ds([0,e],u,BN)}var c=t[4],v=t[3],a=t[2],p=k(x[1],e,a);if(p===0)return t;if(0<=p){var _=r(e,c);return c===_?t:aB(v,a,_)}var y=r(e,v);return v===y?t:aB(y,a,c)}return[0,BN,,function(e,t){for(var u=t;;){if(typeof u=="number")return 0;if(u[0]===0)return k(x[1],e,u[1])===0?1:0;var i=u[4],c=u[3],v=k(x[1],e,u[2]),a=v===0?1:0;if(a)return a;var p=0<=v?i:c,u=p}},r]}function vB(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}}function Cx(x,r){if(!r)return r;var e=r[1],t=l(x,e);return e===t?r:[0,t]}function R0(x,r,e,t,u){var i=k(x,r,e);return e===i?t:u(i)}function I0(x,r,e,t){var u=l(x,r);return r===u?e:t(u)}function X2(x,r){var e=r[1],t=r[2];return R0(x,e,t,r,function(u){return[0,e,u]})}function lB(x,r){return Cx(function(e){var t=e[1],u=e[2];return R0(x,t,u,e,function(i){return[0,t,i]})},r)}function wr(x,r){var e=u1(function(u,i){var c=u[2],v=u[1],a=l(x,i),p=c||(a!==i?1:0);return[0,[0,a,v],p]},h$,r),t=e[1];return e[2]?vx(t):r}var XN=ph(y$,function(x){var r=CN(x,d$),e=r[1],t=r[2],u=r[3],i=r[4],c=r[5],v=r[6],a=r[7],p=r[8],_=r[9],y=r[10],S=r[11],E=r[12],j=r[13],C=r[14],P=r[15],O=r[16],F=r[17],K=r[18],U=r[19],V=r[20],Q=r[21],$=r[22],x0=r[23],e0=r[24],Z=r[25],c0=r[26],d0=r[27],n0=r[28],P0=r[29],h0=r[30],g0=r[31],v0=r[32],p0=r[33],w0=r[34],T0=r[35],E0=r[36],N0=r[37],X0=r[38],A0=r[39],rx=r[40],B=r[41],G0=r[42],W0=r[43],Y0=r[44],V0=r[45],ex=r[46],Q0=r[47],S0=r[48],q0=r[49],yx=r[50],cx=r[51],Dx=r[52],Ix=r[53],Xx=r[54],Z0=r[55],rr=r[56],xr=r[57],fr=r[59],Hx=r[60],Y=r[61],jx=r[62],hr=r[63],Yx=r[64],Ur=r[65],px=r[66],w=r[67],L=r[68],L0=r[69],sx=r[70],lx=r[71],ax=r[72],Vx=r[73],_x=r[74],zx=r[75],Lx=r[76],M0=r[77],qr=r[78],Ex=r[79],$0=r[80],Gx=r[81],j0=r[82],cr=r[83],tx=r[84],Mx=r[85],b2=r[86],Ux=r[87],c1=r[88],Rr=r[89],U2=r[90],g=r[91],G=r[92],H=r[93],l0=r[94],J=r[95],s0=r[96],_0=r[97],y0=r[98],J0=r[99],Rx=r[et],kx=r[yt],Jx=r[S1],gr=r[Ze],Zx=r[_t],er=r[gt],Fr=r[z2],hx=r[$f],z1=r[R7],Ks=r[Ni],un=r[j2],fn=r[zt],Go=r[ue],Wo=r[Dr],$o=r[ia],Na=r[Ov],Ho=r[ua],st=r[B3],Ys=r[kv],Oa=r[Ev],Ca=r[of],at=r[rl],Gc=r[r2],_r=r[Vt],Da=r[Cv],Ra=r[ms],Qo=r[Bp],Fa=r[Yr],zs=r[y2],La=r[dl],Vs=r[kl],ot=r[_4],K2=r[hl],Wc=r[HD],cn=r[DL],Gs=r[aU],Ma=r[qF],Ws=r[LR],Ua=r[M_],qa=r[_F],Ba=r[mM],vt=r[141],Xa=r[142],Ja=r[143],Zo=r[144],xv=r[145],y3=r[146],sn=r[147],rv=r[148],an=r[SL],Ka=r[xL],O6=r[151],$s=r[152],C6=r[153],D6=r[154],Xd=r[155],Jd=r[156],Kd=r[157],R6=r[158],F6=r[159],L6=r[WF],g3=r[pT],Yd=r[KF],zd=r[RM],X=r[gF],A=r[oj],D=r[RF],u0=r[eM],k0=r[Mb],C0=r[v8],nx=r[Wp],Sx=r[Ly],Px=r[LF],qx=r[FL],lr=r[uU],tr=r[nR],br=r[Eb],pr=r[wR],ur=r[fI],Tr=r[qD],Br=r[VF],Or=r[PP],Wr=r[n9],Pr=r[vj],t2=r[tm],p2=r[tF],o2=r[P4],n2=r[uE],c2=r[_L],w2=r[Fw],k2=r[bR],v2=r[fL],q2=r[dv],s1=r[KR],O1=r[T9],xe=r[XR],sr=r[RL],Xr=r[pR],Cr=r[ZM],Jr=r[pL],bx=r[AP],le=r[KD],pe=r[sM],Re=r[$M],b1=r[$R],$r=r[qM],re=r[Qb],x1=r[sU],C1=r[hM],w1=r[jR],lt=r[rU],Rt=r[k_],Fe=r[eL],D1=r[MD],Le=r[tM],ke=r[Db],ee=r[$I],a1=r[LL],Me=r[BM],V1=r[fM],Ft=r[PL],Ue=r[HF],qe=r[WD],r1=r[ak],T1=r[Tv],Be=r[IL],$c=r[UF],Hc=r[eU],Qc=r[jL],me=r[bM],Xe=r[OF],Lt=r[cL],Je=r[oU],E1=r[wF],on=r[pU],vn=r[OM],Zc=r[YM],Ke=r[UL],Ye=r[oF],ln=r[Gk],pn=r[po],he=r[FD],kn=r[dM],Hs=r[YL],xs=r[NI],Qs=r[MF],Ya=r[Pk],za=r[xl],ev=r[x2],tv=r[vy],nv=r[Mv],Zs=r[bL],_3=r[go],b3=r[i8],rs=r[Pv],Va=r[m4],uv=r[gv],w3=r[257],es=r[lL],iv=r[o_],fv=r[WR],xa=r[261],T3=r[TF],E3=r[263],S3=r[264],mn=r[265],A3=r[266],I3=r[WM],hn=r[VM],ts=r[269],j3=r[270],P3=r[271],Ga=r[HL],Wa=r[273],$a=r[kL],cv=r[275],Mt=r[276],de=r[277],te=r[pM],pt=r[279],ra=r[280],N3=r[sy],ea=r[282],ns=r[gL],ye=r[zF],sv=r[285],O3=r[286],Vd=r[287],Gd=r[KM],Wd=r[289],$d=r[mR],M6=r[PR],DC=r[58];function RC(n,s,f){var o=f[2],m=f[1],b=f[4],T=f[3],N=Cx(l(n[1][1+bx],n),m),q=k(n[1][1+B],n,o);return o===q&&m===N?f:[0,N,q,T,b]}function FC(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+pt],n,T),q=Cx(l(n[1][1+F],n),b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+B],n,o);return T===N&&m===i0&&b===q&&o===o0?f:[0,N,q,i0,o0]}function LC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function MC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+Hx],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function UC(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+v],n,s,b),q=Cx(l(n[1][1+bx],n),m);return b===N&&m===q?f:[0,T,[0,N,q]]}function Hd(n,s,f){var o=f[3],m=f[2],b=f[1],T=wr(k(n[1][1+a],n,m),b),N=k(n[1][1+B],n,o);return b===T&&o===N?f:[0,T,m,N]}function Qd(n,s,f){var o=f[4],m=f[2],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],b,f[3],T]}function qC(n,s,f){var o=f[3],m=f[2],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],b,T]}function BC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&Xv(N,m)&&q===o?f:[0,T,N,q]}function XC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function JC(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=X2(l(n[1][1+te],n),T);if(b)var q=b[1],i0=q[1],o0=q[2],O0=function(d2){return[0,[0,i0,d2]]},K0=R0(l(n[1][1+j3],n),i0,o0,b,O0);else var K0=b;if(m)var Ax=m[1],ux=Ax[1],Kr=Ax[2],m2=function(d2){return[0,[0,ux,d2]]},s2=R0(l(n[1][1+te],n),ux,Kr,m,m2);else var s2=m;var h2=k(n[1][1+B],n,o);return T===N&&b===K0&&m===s2&&o===h2?f:[0,N,K0,s2,h2]}function C3(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function Zd(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function KC(n,s){return s}function YC(n,s,f){var o=f[3],m=f[2],b=f[1],T=wr(l(n[1][1+X0],n),b),N=wr(l(n[1][1+bx],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function zC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=X2(l(n[1][1+A0],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function x5(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=Cx(l(n[1][1+bx],n),b),q=k(n[1][1+Q0],n,m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function r5(n,s,f){var o=f[3],m=f[2],b=f[1],T=f[4],N=k(n[1][1+bx],n,b),q=wr(l(n[1][1+W0],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?f:[0,N,q,i0,T]}function VC(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function av(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function e5(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function t5(n,s){return[0,k(n[1][1+q0],n,s),0]}function GC(n,s){var f=l(n[1][1+S0],n),o=u1(function(b,T){var N=b[2],q=b[1],i0=l(f,T);if(!i0)return[0,q,1];if(i0[2])return[0,zv(i0,q),1];var o0=i0[1],O0=N||(T!==o0?1:0);return[0,[0,o0,q],O0]},m$,s),m=o[1];return o[2]?vx(m):s}function WC(n,s){return k(n[1][1+Q0],n,s)}function $C(n,s,f){var o=f[2],m=f[1],b=wr(l(n[1][1+bx],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function U6(n,s,f){var o=f[2],m=f[1],b=f[3],T=Cx(l(n[1][1+bx],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?f:[0,T,N,b]}function HC(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ur],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function n5(n,s){var f=s[2],o=f[3],m=f[2],b=m[2],T=m[1],N=f[1],q=s[1],i0=k(n[1][1+A],n,T),o0=Cx(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return i0===T&&o0===b&&O0===o?s:[0,q,[0,N,[0,i0,o0],O0]]}function QC(n,s){var f=s[2],o=s[1],m=k(n[1][1+$],n,f);return Xv(m,f)?s:[0,o,m]}function u5(n,s){return k(n[1][1+bx],n,s)}function q6(n,s){var f=s[2],o=f[2],m=f[1],b=s[1];if(m)var T=m[1],N=function(o0){return[0,o0]},q=I0(l(n[1][1+bx],n),T,m,N);else var q=m;var i0=k(n[1][1+B],n,o);return m===q&&o===i0?s:[0,b,[0,q,i0]]}function i5(n,s){return k(n[1][1+bx],n,s)}function ZC(n,s,f){return B0(n[1][1+cr],n,s,f)}function f5(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+qr],n,s,b),q=k(n[1][1+B],n,m);return N===b&&m===q?f:[0,T,[0,N,q]]}function B6(n,s,f){return B0(n[1][1+cr],n,s,f)}function xD(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+$0],n,s,b),q=k(n[1][1+r1],n,m);return b===N&&m===q?f:[0,T,[0,N,q]]}function X6(n,s,f){switch(f[0]){case 0:var o=f[1],m=function(N){return[0,N]};return I0(k(n[1][1+Gx],n,s),o,f,m);case 1:var b=f[1],T=function(N){return[1,N]};return I0(k(n[1][1+Ex],n,s),b,f,T);default:return f}}function rD(n,s,f){return B0(n[1][1+cr],n,s,f)}function eD(n,s,f){return B0(n[1][1+cr],n,s,f)}function tD(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+hr],n,s,b),q=k(n[1][1+B],n,m);return N===b&&m===q?f:[0,T,[0,N,q]]}function c5(n,s,f){return k(n[1][1+pn],n,f)}function nD(n,s,f){return B0(n[1][1+zx],n,s,f)}function J6(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+M0],n,s),o,m,f,b)}function uD(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+_x],n,s),o,m,f,b)}function iD(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+jx],n,s),o,m,f,b)}function fD(n,s,f){switch(f[0]){case 0:var o=f[1],m=function(Ax){return[0,Ax]};return I0(k(n[1][1+Ur],n,s),o,f,m);case 1:var b=f[1],T=function(Ax){return[1,Ax]};return I0(k(n[1][1+w],n,s),b,f,T);case 2:var N=f[1],q=function(Ax){return[2,Ax]};return I0(k(n[1][1+lx],n,s),N,f,q);case 3:var i0=f[1],o0=function(Ax){return[3,Ax]};return I0(k(n[1][1+L0],n,s),i0,f,o0);default:var O0=f[1],K0=function(Ax){return[4,Ax]};return I0(k(n[1][1+sx],n,s),O0,f,K0)}}function s5(n,s,f){var o=f[2],m=o[4],b=o[3],T=o[2],N=o[1],q=f[1],i0=B0(n[1][1+L],n,s,N),o0=B0(n[1][1+px],n,s,T),O0=k(n[1][1+r1],n,b);x:if(m){if(i0[0]===3){var K0=o0[2];if(K0[0]===2){var ux=Sr(i0[1][2][1],K0[1][1][2][1]);break x}}var Ax=N===i0?1:0,ux=Ax&&(T===o0?1:0)}else var ux=m;return i0===N&&o0===T&&O0===b&&m===ux?f:[0,q,[0,i0,o0,O0,ux]]}function cD(n,s,f){if(f[0]===0){var o=f[1],m=function(N){return[0,N]};return I0(k(n[1][1+ax],n,s),o,f,m)}var b=f[1];function T(N){return[1,N]}return I0(k(n[1][1+Yx],n,s),b,f,T)}function D3(n,s,f,o){return B0(n[1][1+ea],n,f,o)}function sD(n,s,f,o){return B0(n[1][1+hx],n,f,o)}function aD(n,s,f,o){return B0(n[1][1+ex],n,f,o)}function oD(n,s,f){return k(n[1][1+A],n,f)}function vD(n,s,f){var o=f[2],m=f[1];switch(o[0]){case 0:var b=o[1],T=b[3],N=b[2],q=b[1],i0=wr(k(n[1][1+Vx],n,s),q),o0=k(n[1][1+Z],n,N),O0=k(n[1][1+B],n,T);x:{if(i0===q&&o0===N&&O0===T){var K0=o;break x}var K0=[0,[0,i0,o0,O0]]}var He=K0;break;case 1:var Ax=o[1],ux=Ax[3],Kr=Ax[2],m2=Ax[1],s2=wr(k(n[1][1+j0],n,s),m2),h2=k(n[1][1+Z],n,Kr),d2=k(n[1][1+B],n,ux);x:{if(ux===d2&&s2===m2&&h2===Kr){var o1=o;break x}var o1=[1,[0,s2,h2,d2]]}var He=o1;break;case 2:var ge=o[1],ze=ge[2],Ve=ge[1],kt=ge[3],Ge=B0(n[1][1+zx],n,s,Ve),We=k(n[1][1+Z],n,ze);x:{if(Ve===Ge&&ze===We){var $e=o;break x}var $e=[2,[0,Ge,We,kt]]}var He=$e;break;default:var us=o[1],is=function(fs){return[3,fs]},He=I0(l(n[1][1+Lx],n),us,o,is)}return o===He?f:[0,m,He]}function lD(n,s){return B0(n[1][1+cr],n,0,s)}function K6(n,s,f){var o=s?s[1]:0;return B0(n[1][1+cr],n,[0,o],f)}function pD(n,s){return k(n[1][1+ns],n,s)}function kD(n,s){return k(n[1][1+ns],n,s)}function mD(n,s){return B0(n[1][1+ra],n,k$,s)}function Y6(n,s,f){return B0(n[1][1+ra],n,[0,s],f)}function hD(n,s){return B0(n[1][1+ra],n,p$,s)}function dD(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+pt],n,N),i0=Cx(l(n[1][1+F],n),T),o0=Cx(l(n[1][1+n0],n),b),O0=Cx(l(n[1][1+n0],n),m),K0=k(n[1][1+B],n,o);return N===q&&b===o0&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function yD(n,s){return k(n[1][1+pn],n,s)}function z6(n,s){return k(n[1][1+A],n,s)}function V6(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+ea],n),f,o,s,m)}function R3(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+hx],n),f,o,s,m)}function F3(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+ex],n),f,o,s,m)}function a5(n,s){switch(s[0]){case 0:var f=s[1],o=function(ux){return[0,ux]};return I0(l(n[1][1+_0],n),f,s,o);case 1:var m=s[1],b=function(ux){return[1,ux]};return I0(l(n[1][1+y0],n),m,s,b);case 2:var T=s[1],N=function(ux){return[2,ux]};return I0(l(n[1][1+kx],n),T,s,N);case 3:var q=s[1],i0=function(ux){return[3,ux]};return I0(l(n[1][1+J0],n),q,s,i0);case 4:var o0=s[1],O0=function(ux){return[4,ux]};return I0(l(n[1][1+fr],n),o0,s,O0);default:var K0=s[1],Ax=function(ux){return[5,ux]};return I0(l(n[1][1+Rx],n),K0,s,Ax)}}function gD(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[3],b=f[2],T=f[1],N=k(n[1][1+Jx],n,T),q=k(n[1][1+bx],n,b);x:if(m){if(N[0]===3){var i0=q[2];if(i0[0]===10){var O0=Sr(N[1][2][1],i0[1][2][1]);break x}}var o0=T===N?1:0,O0=o0&&(b===q?1:0)}else var O0=m;return T===N&&b===q&&m===O0?s:[0,o,[0,N,q,O0]];case 1:var K0=f[2],Ax=f[1],ux=k(n[1][1+Jx],n,Ax),Kr=X2(l(n[1][1+Or],n),K0);return Ax===ux&&K0===Kr?s:[0,o,[1,ux,Kr]];case 2:var m2=f[3],s2=f[2],h2=f[1],d2=k(n[1][1+Jx],n,h2),o1=X2(l(n[1][1+Or],n),s2),ge=k(n[1][1+B],n,m2);return h2===d2&&s2===o1&&m2===ge?s:[0,o,[2,d2,o1,ge]];default:var ze=f[3],Ve=f[2],kt=f[1],Ge=k(n[1][1+Jx],n,kt),We=X2(l(n[1][1+Or],n),Ve),$e=k(n[1][1+B],n,ze);return kt===Ge&&Ve===We&&ze===$e?s:[0,o,[3,Ge,We,$e]]}}function _D(n,s,f){var o=f[2],m=f[1],b=wr(function(N){if(N[0]===0){var q=N[1],i0=k(n[1][1+J],n,q);return q===i0?N:[0,i0]}var o0=N[1],O0=k(n[1][1+yx],n,o0);return o0===O0?N:[1,O0]},m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function bD(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+bx],n,T),q=Cx(l(n[1][1+Ga],n),b),i0=Cx(l(n[1][1+M6],n),m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function o5(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+A],n,b),N=k(n[1][1+A],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function v5(n,s){return k(n[1][1+bx],n,s)}function wD(n,s){return k(n[1][1+fr],n,s)}function DT0(n,s){return k(n[1][1+A],n,s)}function RT0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+$o],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+st],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+Na],n),T,s,N)}}function FT0(n,s,f){var o=f[1],m=B0(n[1][1+Ys],n,s,o);return o===m?f:[0,m,f[2],f[3]]}function LT0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+Ho],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function MT0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+bx],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function UT0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+at],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function qT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function BT0(n,s){return k(n[1][1+Ma],n,s)}function XT0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+La],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+Vs],n),m,s,b)}function JT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+zs],n,m),N=k(n[1][1+ot],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function KT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ot],n,m),N=k(n[1][1+ot],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function YT0(n,s){return k(n[1][1+Vs],n,s)}function zT0(n,s){return k(n[1][1+Fa],n,s)}function VT0(n,s){return k(n[1][1+ot],n,s)}function GT0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+Ma],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+cn],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+Gs],n),T,s,N)}}function WT0(n,s){var f=s[2],o=s[1],m=k(n[1][1+bx],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function $T0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+B],n,o);if(!m)return o===b?f:[0,0,b];var T=m[1],N=k(n[1][1+bx],n,T);return T===N&&o===b?f:[0,[0,N],b]}function HT0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(K0){return[0,o,[0,K0]]};return R0(l(n[1][1+Ua],n),o,m,s,b);case 1:var T=f[1],N=function(K0){return[0,o,[1,K0]]};return R0(l(n[1][1+K2],n),o,T,s,N);case 2:var q=f[1],i0=function(K0){return[0,o,[2,K0]]};return R0(l(n[1][1+Wc],n),o,q,s,i0);case 3:var o0=f[1],O0=function(K0){return[0,o,[3,K0]]};return I0(l(n[1][1+_r],n),o0,s,O0);default:return s}}function QT0(n,s){var f=s[2],o=s[1],m=wr(l(n[1][1+vt],n),f);return f===m?s:[0,o,m]}function ZT0(n,s,f){return B0(n[1][1+ex],n,s,f)}function xE0(n,s,f){return B0(n[1][1+Wc],n,s,f)}function rE0(n,s){if(s[0]===0){var f=s[1],o=f[1],m=f[2],b=function(o0){return[0,[0,o,o0]]};return R0(l(n[1][1+Xa],n),o,m,s,b)}var T=s[1],N=T[1],q=T[2];function i0(o0){return[1,[0,N,o0]]}return R0(l(n[1][1+Ja],n),N,q,s,i0)}function eE0(n,s){return k(n[1][1+Fa],n,s)}function tE0(n,s){return k(n[1][1+ot],n,s)}function nE0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+y3],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+xv],n),m,s,b)}function uE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+sn],n,m),N=Cx(l(n[1][1+Zo],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function iE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function fE0(n,s){if(s[0]===0){var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+rv],n),f,s,o)}var m=s[1],b=m[1],T=m[2];function N(q){return[1,[0,b,q]]}return R0(l(n[1][1+Da],n),b,T,s,N)}function cE0(n,s){var f=s[2][1],o=s[1],m=k(n[1][1+Ws],n,f);return f===m?s:[0,o,[0,m]]}function sE0(n,s){var f=s[2],o=f[4],m=f[2],b=f[1],T=f[3],N=s[1],q=k(n[1][1+Ws],n,b),i0=Cx(l(n[1][1+Ga],n),m),o0=wr(l(n[1][1+Qo],n),o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,T,o0]]}function aE0(n,s,f){var o=f[4],m=f[3],b=k(n[1][1+Ba],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],f[2],b,T]}function oE0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Ra],n,T),q=Cx(l(n[1][1+qa],n),b),i0=k(n[1][1+Ba],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function vE0(n,s,f,o){var m=2<=s?k(n[1][1+zx],n,l$):l(n[1][1+pt],n);return l(m,o)}function lE0(n,s,f){var o=2<=s?k(n[1][1+zx],n,v$):l(n[1][1+pt],n);return l(o,f)}function pE0(n,s,f){var o=f[3],m=f[2],b=f[1];x:{r:{var T=f[4];if(s){e:{if(b)switch(b[1]){case 0:break r;case 1:break e}if(2<=s){var N=0,q=0;break x}}var N=1,q=0;break x}}var N=1,q=1}var i0=m?k(n[1][1+Z0],n,o):q?k(n[1][1+pt],n,o):B0(n[1][1+zx],n,a$,o);if(m)var o0=m[1],O0=N?l(n[1][1+pt],n):k(n[1][1+zx],n,o$),K0=I0(O0,o0,m,function(Ax){return[0,Ax]});else var K0=0;return m===K0&&o===i0?f:[0,b,K0,i0,T]}function kE0(n,s){return k(n[1][1+A],n,s)}function mE0(n,s,f){if(f[0]===0){var o=f[1],m=wr(k(n[1][1+R6],n,s),o);return o===m?f:[0,m]}var b=f[1],T=b[1],N=b[2];function q(i0){return[1,[0,T,i0]]}return R0(k(n[1][1+Kd],n,s),T,N,f,q)}function hE0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function dE0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=X2(l(n[1][1+Jd],n),T),i0=Cx(k(n[1][1+Xd],n,N),m),o0=Cx(function(K0){var Ax=K0[1],ux=K0[2],Kr=B0(n[1][1+F6],n,N,Ax);return Kr===Ax?K0:[0,Kr,ux]},b),O0=k(n[1][1+B],n,o);return T===q&&m===i0&&b===o0&&o===O0?f:[0,N,q,o0,i0,O0]}function yE0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Hx],n,T),q=B0(n[1][1+zd],n,m!==0?1:0,b),i0=l(n[1][1+X],n),o0=Cx(function(K0){return X2(i0,K0)},m),O0=k(n[1][1+B],n,o);return T===N&&b===q&&m===o0&&o===O0?f:[0,N,q,o0,O0]}function gE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+q0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function _E0(n,s,f){return k(n[1][1+q0],n,f)}function bE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function wE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function TE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function EE0(n,s,f){return B0(n[1][1+$s],n,s,f)}function SE0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+pt],n,N),i0=Cx(l(n[1][1+F],n),T),o0=l(n[1][1+D],n),O0=wr(function(ux){return X2(o0,ux)},b),K0=X2(l(n[1][1+g],n),m),Ax=k(n[1][1+B],n,o);return q===N&&i0===T&&O0===b&&K0===m&&Ax===o?f:[0,q,i0,O0,K0,Ax]}function AE0(n,s){return k(n[1][1+V],n,s)}function IE0(n,s){return k(n[1][1+V],n,s)}function jE0(n,s){return k(n[1][1+A],n,s)}function PE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function NE0(n,s){return B0(n[1][1+zx],n,s$,s)}function OE0(n,s){return k(n[1][1+bx],n,s)}function CE0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+te],n),f,o,s,m)}function DE0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+p2],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+de],n),m,s,b)}function RE0(n,s){switch(s[0]){case 0:return s;case 1:var f=s[1],o=function(T){return[1,T]};return I0(l(n[1][1+c0],n),f,s,o);default:var m=s[1],b=function(T){return[2,T]};return I0(l(n[1][1+Q],n),m,s,b)}}function FE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ur],n,m),N=k(n[1][1+r1],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function LE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+c0],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function ME0(n,s){var f=s[2],o=f[4],m=f[3],b=f[2],T=f[1],N=s[1],q=wr(l(n[1][1+Tr],n),b),i0=Cx(l(n[1][1+tr],n),m),o0=Cx(l(n[1][1+Px],n),T),O0=k(n[1][1+B],n,o);return b===q&&m===i0&&o===O0&&T===o0?s:[0,N,[0,o0,q,i0,O0]]}function UE0(n,s,f){var o=f[10],m=f[9],b=f[8],T=f[7],N=f[3],q=f[2],i0=f[1],o0=f[11],O0=f[6],K0=f[5],Ax=f[4],ux=Cx(l(n[1][1+Br],n),i0),Kr=Cx(l(n[1][1+F],n),m),m2=k(n[1][1+br],n,q),s2=k(n[1][1+qx],n,b),h2=k(n[1][1+t2],n,N),d2=Cx(l(n[1][1+Y],n),T),o1=k(n[1][1+B],n,o);return i0===ux&&q===m2&&N===h2&&T===d2&&b===s2&&m===Kr&&o===o1?f:[0,ux,m2,h2,Ax,K0,O0,d2,s2,Kr,o1,o0]}function qE0(n,s,f){return B0(n[1][1+o2],n,s,f)}function BE0(n,s,f){return B0(n[1][1+Or],n,s,f)}function XE0(n,s,f){return B0(n[1][1+o2],n,s,f)}function JE0(n,s){if(s[0]===0)return s;var f=s[2],o=s[1],m=k(n[1][1+Xx],n,f);return m===f?s:[1,o,m]}function KE0(n,s){if(s[0]===0)return s;var f=s[1];function o(m){return[1,m]}return I0(l(n[1][1+c0],n),f,s,o)}function YE0(n,s){var f=s[2],o=s[1];function m(b){return[0,o,b]}return I0(l(n[1][1+n0],n),f,s,m)}function zE0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(wx){return[0,o,[0,wx]]};return I0(l(n[1][1+B],n),m,s,b);case 1:var T=f[1],N=function(wx){return[0,o,[1,wx]]};return I0(l(n[1][1+B],n),T,s,N);case 2:var q=f[1],i0=function(wx){return[0,o,[2,wx]]};return I0(l(n[1][1+B],n),q,s,i0);case 3:var o0=f[1],O0=function(wx){return[0,o,[3,wx]]};return I0(l(n[1][1+B],n),o0,s,O0);case 4:var K0=f[1],Ax=function(wx){return[0,o,[4,wx]]};return I0(l(n[1][1+B],n),K0,s,Ax);case 5:var ux=f[1],Kr=function(wx){return[0,o,[5,wx]]};return I0(l(n[1][1+B],n),ux,s,Kr);case 6:var m2=f[1],s2=function(wx){return[0,o,[6,wx]]};return I0(l(n[1][1+B],n),m2,s,s2);case 7:var h2=f[1],d2=function(wx){return[0,o,[7,wx]]};return I0(l(n[1][1+B],n),h2,s,d2);case 8:var o1=f[2],ge=f[1],ze=function(wx){return[0,o,[8,ge,wx]]};return I0(l(n[1][1+B],n),o1,s,ze);case 9:var Ve=f[1],kt=function(wx){return[0,o,[9,wx]]};return I0(l(n[1][1+B],n),Ve,s,kt);case 10:var Ge=f[1],We=function(wx){return[0,o,[10,wx]]};return I0(l(n[1][1+B],n),Ge,s,We);case 11:var $e=f[1],us=function(wx){return[0,o,[11,wx]]};return I0(l(n[1][1+z1],n),$e,s,us);case 12:var is=f[1],He=function(wx){return[0,o,[12,wx]]};return R0(l(n[1][1+nx],n),o,is,s,He);case 13:var fs=f[1],Ha=function(wx){return[0,o,[13,wx]]};return R0(l(n[1][1+xs],n),o,fs,s,Ha);case 14:var Qa=f[1],Za=function(wx){return[0,o,[14,wx]]};return R0(l(n[1][1+g],n),o,Qa,s,Za);case 15:var xo=f[1],G6=function(wx){return[0,o,[15,wx]]};return R0(l(n[1][1+Ka],n),o,xo,s,G6);case 16:var W6=f[1],$6=function(wx){return[0,o,[16,wx]]};return I0(l(n[1][1+Gd],n),W6,s,$6);case 17:var H6=f[1],Q6=function(wx){return[0,o,[17,wx]]};return I0(l(n[1][1+Ye],n),H6,s,Q6);case 18:var Z6=f[1],xp=function(wx){return[0,o,[18,wx]]};return I0(l(n[1][1+C6],n),Z6,s,xp);case 19:var rp=f[1],ep=function(wx){return[0,o,[19,wx]]};return R0(l(n[1][1+D],n),o,rp,s,ep);case 20:var tp=f[1],np=function(wx){return[0,o,[20,wx]]};return R0(l(n[1][1+D6],n),o,tp,s,np);case 21:var up=f[1],ip=function(wx){return[0,o,[21,wx]]};return R0(l(n[1][1+Mx],n),o,up,s,ip);case 22:var fp=f[1],cp=function(wx){return[0,o,[22,wx]]};return R0(l(n[1][1+y],n),o,fp,s,cp);case 23:var sp=f[1],ap=function(wx){return[0,o,[23,wx]]};return R0(l(n[1][1+an],n),o,sp,s,ap);case 24:var op=f[1],vp=function(wx){return[0,o,[24,wx]]};return I0(l(n[1][1+E],n),op,s,vp);case 25:var lp=f[1],pp=function(wx){return[0,o,[25,wx]]};return I0(l(n[1][1+Gc],n),lp,s,pp);case 26:var kp=f[1],mp=function(wx){return[0,o,[26,wx]]};return I0(l(n[1][1+Xx],n),kp,s,mp);case 27:var hp=f[1],dp=function(wx){return[0,o,[27,wx]]};return I0(l(n[1][1+xr],n),hp,s,dp);case 28:var yp=f[1],gp=function(wx){return[0,o,[28,wx]]};return I0(l(n[1][1+P0],n),yp,s,gp);case 29:var _p=f[1],bp=function(wx){return[0,o,[29,wx]]};return R0(l(n[1][1+ex],n),o,_p,s,bp);case 30:var wp=f[1],Tp=function(wx){return[0,o,[30,wx]]};return R0(l(n[1][1+hx],n),o,wp,s,Tp);case 31:var Ep=f[1],Sp=function(wx){return[0,o,[31,wx]]};return R0(l(n[1][1+ea],n),o,Ep,s,Sp);case 32:var Ap=f[1],Ip=function(wx){return[0,o,[32,wx]]};return R0(l(n[1][1+Mt],n),o,Ap,s,Ip);case 33:var jp=f[1],Pp=function(wx){return[0,o,[33,wx]]};return I0(l(n[1][1+B],n),jp,s,Pp);case 34:var Np=f[1],Op=function(wx){return[0,o,[34,wx]]};return I0(l(n[1][1+B],n),Np,s,Op);default:var Cp=f[1],Dp=function(wx){return[0,o,[35,wx]]};return I0(l(n[1][1+B],n),Cp,s,Dp)}}function VE0(n,s,f){var o=f[2],m=f[1],b=m[3],T=m[2],N=m[1],q=k(n[1][1+n0],n,N),i0=k(n[1][1+n0],n,T),o0=wr(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return q===N&&i0===T&&o0===b&&O0===o?f:[0,[0,q,i0,o0],O0]}function GE0(n,s,f){var o=f[2],m=f[1],b=m[3],T=m[2],N=m[1],q=k(n[1][1+n0],n,N),i0=k(n[1][1+n0],n,T),o0=wr(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return q===N&&i0===T&&o0===b&&O0===o?f:[0,[0,q,i0,o0],O0]}function WE0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function $E0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,f);return m===f?s:[0,o,m]}function HE0(n,s){var f=s[3],o=s[2],m=s[4],b=s[1],T=k(n[1][1+n0],n,o),N=k(n[1][1+i],n,f);return T===o&&N===f?s:[0,b,T,N,m]}function QE0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(o0){return[0,o,[0,o0]]};return I0(l(n[1][1+n0],n),m,s,b);case 1:var T=f[1],N=function(o0){return[0,o,[1,o0]]};return I0(l(n[1][1+g0],n),T,s,N);default:var q=f[1],i0=function(o0){return[0,o,[2,o0]]};return I0(l(n[1][1+h0],n),q,s,i0)}}function ZE0(n,s){var f=s[3],o=s[1],m=s[2],b=wr(l(n[1][1+v0],n),o),T=k(n[1][1+B],n,f);return o===b&&f===T?s:[0,b,m,T]}function xS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function rS0(n,s){var f=s[3],o=s[2],m=s[4],b=s[1],T=k(n[1][1+n0],n,o),N=k(n[1][1+B],n,f);return o===T&&f===N?s:[0,b,T,N,m]}function eS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function tS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+O],n,m),N=k(n[1][1+C],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function nS0(n,s){return k(n[1][1+A],n,s)}function uS0(n,s){return k(n[1][1+A],n,s)}function iS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+P],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+j],n),m,s,b)}function fS0(n,s){var f=s[3],o=s[2],m=s[1],b=k(n[1][1+O],n,m),T=Cx(l(n[1][1+e0],n),o),N=k(n[1][1+B],n,f);return m===b&&Xv(o,T)&&f===N?s:[0,b,T,N]}function cS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+K],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function sS0(n,s){var f=s[5],o=s[4],m=s[3],b=s[2],T=s[1],N=k(n[1][1+n0],n,T),q=k(n[1][1+n0],n,b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+n0],n,o),O0=k(n[1][1+B],n,f);return T===N&&b===q&&m===i0&&o===o0&&f===O0?s:[0,N,q,i0,o0,O0]}function aS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function oS0(n,s,f){var o=f[6],m=f[5],b=f[4],T=f[3],N=f[2],q=f[1];return o===k(n[1][1+B],n,o)?f:[0,q,N,T,b,m,o]}function vS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+B],n,o);return o===N?f:[0,T,b,m,N]}function lS0(n,s,f){return k(n[1][1+B],n,f)}function pS0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+B],n,o);return o===b?f:[0,m,b]}function kS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function mS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function hS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function dS0(n,s,f){var o=f[1],m=f[2],b=B0(n[1][1+D6],n,s,o);return b===o?f:[0,b,m]}function yS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+n0],n,b),N=k(n[1][1+n0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function gS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+k0],n,b),N=Cx(l(n[1][1+e0],n),m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function _S0(n,s){var f=s[2],o=f[5],m=f[4],b=f[2],T=f[1],N=f[3],q=s[1],i0=k(n[1][1+Z],n,b),o0=k(n[1][1+i],n,m),O0=Cx(l(n[1][1+n0],n),o),K0=k(n[1][1+pt],n,T);return K0===T&&i0===b&&o0===m&&O0===o?s:[0,q,[0,K0,i0,N,o0,O0]]}function bS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+K],n),m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function wS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+n0],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function TS0(n,s){return Cx(l(n[1][1+c],n),s)}function ES0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function SS0(n,s){return k(n[1][1+A],n,s)}function AS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+k0],n,m),N=k(n[1][1+Wo],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function IS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+U],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+u0],n),m,s,b)}function jS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=l(n[1][1+D],n),N=wr(function(o0){return X2(T,o0)},m),q=X2(l(n[1][1+g],n),b),i0=k(n[1][1+B],n,o);return N===m&&q===b&&o===i0?f:[0,q,N,i0]}function PS0(n,s){switch(s[0]){case 0:var f=s[1],o=function(ux){return[0,ux]};return I0(l(n[1][1+l0],n),f,s,o);case 1:var m=s[1],b=function(ux){return[1,ux]};return I0(l(n[1][1+G],n),m,s,b);case 2:var T=s[1],N=function(ux){return[2,ux]};return I0(l(n[1][1+Zx],n),T,s,N);case 3:var q=s[1],i0=function(ux){return[3,ux]};return I0(l(n[1][1+er],n),q,s,i0);case 4:var o0=s[1],O0=function(ux){return[4,ux]};return I0(l(n[1][1+gr],n),o0,s,O0);default:var K0=s[1],Ax=function(ux){return[5,ux]};return I0(l(n[1][1+s0],n),K0,s,Ax)}}function NS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=wr(l(n[1][1+U2],n),m),q=k(n[1][1+B],n,o);return N===m&&o===q?f:[0,T,b,N,q]}function OS0(n,s){var f=s[2],o=f[6],m=f[4],b=f[3],T=f[2],N=f[1],q=f[5],i0=s[1],o0=k(n[1][1+K],n,N),O0=k(n[1][1+n0],n,T),K0=k(n[1][1+n0],n,b),Ax=k(n[1][1+i],n,m),ux=k(n[1][1+B],n,o);return o0===N&&O0===T&&K0===b&&Ax===m&&ux===o?s:[0,i0,[0,o0,O0,K0,Ax,q,ux]]}function CS0(n,s){var f=s[2],o=f[3],m=f[1],b=m[2],T=m[1],N=f[2],q=s[1],i0=B0(n[1][1+nx],n,T,b),o0=k(n[1][1+B],n,o);return b===i0&&o===o0?s:[0,q,[0,[0,T,i0],N,o0]]}function DS0(n,s){var f=s[2],o=f[6],m=f[2],b=f[1],T=f[5],N=f[4],q=f[3],i0=s[1],o0=k(n[1][1+A],n,b),O0=k(n[1][1+n0],n,m),K0=k(n[1][1+B],n,o);return b===o0&&m===O0&&o===K0?s:[0,i0,[0,o0,O0,q,N,T,K0]]}function RS0(n,s){var f=s[2],o=f[6],m=f[5],b=f[3],T=f[2],N=f[4],q=f[1],i0=s[1],o0=k(n[1][1+n0],n,T),O0=k(n[1][1+n0],n,b),K0=k(n[1][1+i],n,m),Ax=k(n[1][1+B],n,o);return o0===T&&O0===b&&K0===m&&Ax===o?s:[0,i0,[0,q,o0,O0,N,K0,Ax]]}function FS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+n0],n,m),N=k(n[1][1+B],n,o);return T===m&&o===N?s:[0,b,[0,T,N]]}function LS0(n,s){var f=s[2],o=f[8],m=f[7],b=f[2],T=f[1],N=f[6],q=f[5],i0=f[4],o0=f[3],O0=s[1],K0=k(n[1][1+Jx],n,T),Ax=k(n[1][1+H],n,b),ux=k(n[1][1+i],n,m),Kr=k(n[1][1+B],n,o);return K0===T&&Ax===b&&ux===m&&Kr===o?s:[0,O0,[0,K0,Ax,o0,i0,q,N,ux,Kr]]}function MS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+nx],n),f,o,s,m)}function US0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+nx],n),f,o,s,m)}function qS0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+n0],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+Rr],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+c1],n),T,s,N)}}function BS0(n,s){return k(n[1][1+A],n,s)}function XS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=b[2],N=T[4],q=T[3],i0=T[2],o0=T[1],O0=f[1],K0=f[5],Ax=b[1],ux=Cx(l(n[1][1+F],n),O0),Kr=Cx(l(n[1][1+Sx],n),o0),m2=wr(l(n[1][1+pr],n),i0),s2=Cx(l(n[1][1+lr],n),q),h2=k(n[1][1+C0],n,m),d2=k(n[1][1+B],n,o),o1=k(n[1][1+B],n,N);return m2===i0&&s2===q&&h2===m&&ux===O0&&d2===o&&o1===N&&Kr===o0?f:[0,ux,[0,Ax,[0,Kr,m2,s2,o1]],h2,d2,K0]}function JS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+n0],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+$],n),m,s,b)}function KS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+c0],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function YS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+pr],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function zS0(n,s){var f=s[2],o=f[2],m=f[1],b=f[3],T=s[1],N=k(n[1][1+n0],n,o),q=Cx(l(n[1][1+A],n),m);return N===o&&q===m?s:[0,T,[0,q,N,b]]}function VS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function GS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+s1],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+bx],n),m,s,b)}function WS0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=Cx(l(n[1][1+n2],n),N),i0=Cx(l(n[1][1+Hx],n),T),o0=Cx(l(n[1][1+bx],n),b),O0=k(n[1][1+q0],n,m),K0=k(n[1][1+B],n,o);return N===q&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function $S0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function HS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+v2],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+q2],n),m,s,b)}function QS0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=k(n[1][1+w2],n,T),i0=k(n[1][1+bx],n,b),o0=k(n[1][1+q0],n,m),O0=k(n[1][1+B],n,o);return T===q&&b===i0&&m===o0&&o===O0?f:[0,q,i0,o0,N,O0]}function ZS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function xA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+sr],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+Xr],n),m,s,b)}function rA0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=k(n[1][1+O1],n,T),i0=k(n[1][1+bx],n,b),o0=k(n[1][1+q0],n,m),O0=k(n[1][1+B],n,o);return T===q&&b===i0&&m===o0&&o===O0?f:[0,q,i0,o0,N,O0]}function eA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+bx],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+cx],n),m,s,b)}function tA0(n,s,f){var o=f[3],m=f[1],b=f[2],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?f:[0,T,b,N]}function nA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function uA0(n,s){if(s[0]===0){var f=s[1],o=wr(l(n[1][1+Re],n),f);return f===o?s:[0,o]}var m=s[1],b=k(n[1][1+x1],n,m);return m===b?s:[1,b]}function iA0(n,s){var f=s[2],o=s[1],m=Cx(l(n[1][1+A],n),f);return f===m?s:[0,o,m]}function fA0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+A],n,m),N=Cx(l(n[1][1+A],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function cA0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=lB(l(n[1][1+le],n),m),i0=Cx(l(n[1][1+pe],n),b),o0=Cx(l(n[1][1+q0],n),T),O0=k(n[1][1+B],n,o);return m===q&&b===i0&&T===o0&&o===O0?f:[0,o0,i0,q,N,O0]}function sA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+q0],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+bx],n),m,s,b)}function aA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+$r],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?f:[0,b,T,N]}function oA0(n,s){return k(n[1][1+A],n,s)}function vA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function lA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function pA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function kA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function mA0(n,s){var f=s[2][1],o=s[1],m=k(n[1][1+D1],n,f);return f===m?s:[0,o,[0,m]]}function hA0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+V1],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function dA0(n,s){var f=s[3],o=s[1],m=wr(l(n[1][1+Le],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],b]}function yA0(n,s){var f=s[4],o=s[1];if(o[0]===0)var m=o[1],b=function(K0){return[0,K0]},T=l(n[1][1+Le],n),o0=I0(function(K0){return wr(T,K0)},m,o,b);else var N=o[1],q=function(K0){return[1,K0]},i0=l(n[1][1+w1],n),o0=I0(function(K0){return wr(i0,K0)},N,o,q);var O0=k(n[1][1+B],n,f);return o===o0&&f===O0?s:[0,o0,s[2],s[3],O0]}function gA0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+Rt],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function _A0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+ee],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function bA0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(ux){return[0,o,[0,ux]]};return I0(l(n[1][1+a1],n),m,s,b);case 1:var T=f[1],N=function(ux){return[0,o,[1,ux]]};return I0(l(n[1][1+Fe],n),T,s,N);case 2:var q=f[1],i0=function(ux){return[0,o,[2,ux]]};return I0(l(n[1][1+lt],n),q,s,i0);case 3:var o0=f[1],O0=function(ux){return[0,o,[3,ux]]};return I0(l(n[1][1+C1],n),o0,s,O0);default:var K0=f[1],Ax=function(ux){return[0,o,[4,ux]]};return I0(l(n[1][1+Ft],n),K0,s,Ax)}}function wA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=B0(n[1][1+zx],n,c$,b),N=k(n[1][1+Me],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function TA0(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function EA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+q0],n,b),N=k(n[1][1+Hx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function SA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=B0(n[1][1+zx],n,[0,m],T),q=k(n[1][1+c0],n,b),i0=k(n[1][1+B],n,o);return N===T&&q===b&&i0===o?f:[0,N,q,m,i0]}function AA0(n,s,f){return B0(n[1][1+d0],n,s,f)}function IA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=B0(n[1][1+zx],n,f$,b),N=X2(l(n[1][1+te],n),m),q=k(n[1][1+B],n,o);return T===b&&N===m&&o===q?f:[0,T,N,q]}function jA0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+c0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function PA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=X2(l(n[1][1+te],n),m),N=k(n[1][1+B],n,o);return T===m&&o===N?f:[0,b,T,N]}function NA0(n,s,f){return B0(n[1][1+$s],n,s,f)}function OA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Br],n,T),q=k(n[1][1+c0],n,b),i0=Cx(l(n[1][1+Y],n),m),o0=k(n[1][1+B],n,o);return N===T&&q===b&&i0===m&&o0===o?f:[0,N,q,i0,o0]}function CA0(n,s){switch(s[0]){case 0:var f=s[1],o=f[2],m=f[1],b=B0(n[1][1+T1],n,m,o);return b===o?s:[0,[0,m,b]];case 1:var T=s[1],N=T[2],q=T[1],i0=B0(n[1][1+Xe],n,q,N);return i0===N?s:[1,[0,q,i0]];case 2:var o0=s[1],O0=o0[2],K0=o0[1],Ax=B0(n[1][1+vn],n,K0,O0);return Ax===O0?s:[2,[0,K0,Ax]];case 3:var ux=s[1],Kr=ux[2],m2=ux[1],s2=B0(n[1][1+on],n,m2,Kr);return s2===Kr?s:[3,[0,m2,s2]];case 4:var h2=s[1],d2=k(n[1][1+n0],n,h2);return d2===h2?s:[4,d2];case 5:var o1=s[1],ge=o1[2],ze=o1[1],Ve=B0(n[1][1+d0],n,ze,ge);return Ve===ge?s:[5,[0,ze,Ve]];case 6:var kt=s[1],Ge=kt[2],We=kt[1],$e=B0(n[1][1+Ux],n,We,Ge);return $e===Ge?s:[6,[0,We,$e]];case 7:var us=s[1],is=us[2],He=us[1],fs=B0(n[1][1+$s],n,He,is);return fs===is?s:[7,[0,He,fs]];default:var Ha=s[1],Qa=Ha[2],Za=Ha[1],xo=B0(n[1][1+ke],n,Za,Qa);return xo===Qa?s:[8,[0,Za,xo]]}}function DA0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=lB(l(n[1][1+le],n),m),i0=Cx(l(n[1][1+pe],n),b),o0=Cx(l(n[1][1+Lt],n),T),O0=k(n[1][1+B],n,o);return m===q&&b===i0&&T===o0&&o===O0?f:[0,N,o0,i0,q,O0]}function RA0(n,s,f){return B0(n[1][1+ke],n,s,f)}function FA0(n,s){var f=s[2],o=f[4],m=f[2],b=f[1],T=f[3],N=s[1],q=Cx(l(n[1][1+A],n),b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+B],n,o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,T,o0]]}function LA0(n,s){var f=s[2],o=f[2],m=f[1],b=f[3],T=s[1],N=k(n[1][1+tv],n,m),q=k(n[1][1+c0],n,o);return m===N&&o===q?s:[0,T,[0,N,q,b]]}function MA0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=wr(l(n[1][1+Hs],n),b),q=Cx(l(n[1][1+he],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function UA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=Cx(l(n[1][1+F],n),T),q=k(n[1][1+kn],n,b),i0=k(n[1][1+Ya],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function qA0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+Zs],n,N),i0=Cx(l(n[1][1+F],n),T),o0=k(n[1][1+kn],n,b),O0=k(n[1][1+Ya],n,m),K0=k(n[1][1+B],n,o);return N===q&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function BA0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[4],N=f[3],q=f[2],i0=f[1],o0=k(n[1][1+xa],n,i0),O0=Cx(l(n[1][1+F],n),q),K0=X2(l(n[1][1+g],n),N),Ax=l(n[1][1+D],n),ux=Cx(function(d2){return X2(Ax,d2)},T),Kr=l(n[1][1+D],n),m2=wr(function(d2){return X2(Kr,d2)},b),s2=Cx(l(n[1][1+fv],n),m),h2=k(n[1][1+B],n,o);return o0===i0&&O0===q&&K0===N&&ux===T&&m2===b&&s2===m&&h2===o?f:[0,o0,O0,K0,ux,m2,s2,h2]}function XA0(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function JA0(n,s,f){var o=f[2],m=f[1],b=Cx(l(n[1][1+at],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function KA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Hx],n,T),q=k(n[1][1+bx],n,b),i0=k(n[1][1+bx],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function YA0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+te],n),f,o,s,m)}function zA0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ev],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function VA0(n,s){return B0(n[1][1+ra],n,i$,s)}function GA0(n,s){if(s[0]===0)return[0,k(n[1][1+A],n,s[1])];var f=s[1],o=f[1];return[1,[0,o,B0(n[1][1+ex],n,o,f[2])]]}function WA0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=f[4],N=s[1],q=k(n[1][1+tv],n,b),i0=k(n[1][1+ev],n,m),o0=k(n[1][1+r1],n,o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,o0,T]]}function $A0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=wr(l(n[1][1+nv],n),b),q=Cx(l(n[1][1+Qs],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function HA0(n,s){return B0(n[1][1+zx],n,u$,s)}function QA0(n,s,f){var o=f[6],m=f[5],b=f[4],T=f[3],N=f[2],q=f[1],i0=f[7],o0=k(n[1][1+Zs],n,q),O0=Cx(l(n[1][1+F],n),N),K0=k(n[1][1+za],n,T),Ax=k(n[1][1+b3],n,m),ux=k(n[1][1+Ya],n,b),Kr=k(n[1][1+B],n,o);return q===o0&&N===O0&&T===K0&&m===Ax&&b===ux&&o===Kr?f:[0,o0,O0,K0,ux,Ax,Kr,i0]}function ZA0(n,s){return Cx(l(n[1][1+bx],n),s)}function xI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[3],N=f[2],q=f[1],i0=k(n[1][1+fr],n,q),o0=k(n[1][1+Va],n,N),O0=k(n[1][1+Z],n,T),K0=k(n[1][1+i],n,b),Ax=wr(l(n[1][1+mn],n),m),ux=k(n[1][1+B],n,o);return q===i0&&N===o0&&O0===T&&K0===b&&Ax===m&&ux===o?f:[0,i0,o0,O0,f[4],K0,Ax,ux]}function rI0(n,s){if(typeof s=="number")return s;var f=s[1],o=k(n[1][1+bx],n,f);return f===o?s:[0,o]}function eI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[3],N=f[2],q=f[1],i0=k(n[1][1+Jx],n,q),o0=k(n[1][1+Va],n,N),O0=k(n[1][1+Z],n,T),K0=k(n[1][1+i],n,b),Ax=wr(l(n[1][1+mn],n),m),ux=k(n[1][1+B],n,o);return q===i0&&N===o0&&O0===T&&K0===b&&Ax===m&&ux===o?f:[0,i0,o0,O0,f[4],K0,Ax,ux]}function tI0(n,s,f){var o=f[6],m=f[5],b=f[3],T=f[2],N=k(n[1][1+Jx],n,T),q=X2(l(n[1][1+Or],n),b),i0=wr(l(n[1][1+mn],n),m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,f[1],N,q,f[4],i0,o0]}function nI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+U],n,m),N=Cx(l(n[1][1+e0],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function uI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+iv],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function iI0(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],m=f[2],b=function(ux){return[0,[0,o,ux]]};return R0(l(n[1][1+es],n),o,m,s,b);case 1:var T=s[1],N=T[1],q=T[2],i0=function(ux){return[1,[0,N,ux]]};return R0(l(n[1][1+uv],n),N,q,s,i0);default:var o0=s[1],O0=o0[1],K0=o0[2],Ax=function(ux){return[2,[0,O0,ux]]};return R0(l(n[1][1+w3],n),O0,K0,s,Ax)}}function fI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function cI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+S3],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function sI0(n,s){return B0(n[1][1+zx],n,n$,s)}function aI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=Cx(l(n[1][1+e0],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function oI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[4],N=f[3],q=f[2],i0=f[1],o0=Cx(l(n[1][1+xa],n),i0),O0=Cx(l(n[1][1+F],n),N),K0=k(n[1][1+I3],n,q),Ax=l(n[1][1+T3],n),ux=Cx(function(h2){return X2(Ax,h2)},T),Kr=Cx(l(n[1][1+fv],n),b),m2=wr(l(n[1][1+mn],n),m),s2=k(n[1][1+B],n,o);return i0===o0&&q===K0&&T===ux&&b===Kr&&m===m2&&o===s2&&N===O0?f:[0,o0,K0,O0,ux,Kr,m2,s2]}function vI0(n,s,f){return B0(n[1][1+hn],n,s,f)}function lI0(n,s,f){return B0(n[1][1+hn],n,s,f)}function pI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=Cx(l(n[1][1+ts],n),b),N=k(n[1][1+P3],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function kI0(n,s){return X2(l(n[1][1+te],n),s)}function mI0(n,s){if(s[0]===0){var f=s[1],o=k(n[1][1+n0],n,f);return o===f?s:[0,o]}var m=s[1],b=m[2][1],T=m[1],N=k(n[1][1+B],n,b);return b===N?s:[1,[0,T,[0,N]]]}function hI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+Wa],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function dI0(n,s,f){var o=f[1],m=B0(n[1][1+$a],n,s,o);return o===m?f:[0,m,f[2],f[3]]}function yI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+Jr],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function gI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+bx],n,T),q=Cx(l(n[1][1+Ga],n),b),i0=k(n[1][1+M6],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function _I0(n,s,f){var o=f[2],m=f[1],b=Cx(l(n[1][1+at],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function bI0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+Q0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function wI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+bx],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function TI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+ns],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function EI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function SI0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return b===m&&T===o?f:[0,b,T]}function AI0(n,s,f){return B0(n[1][1+o2],n,s,f)}function II0(n,s){switch(s[0]){case 0:var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+bx],n),f,s,o);case 1:var m=s[1],b=function(T){return[1,T]};return I0(l(n[1][1+cx],n),m,s,b);default:return s}}function jI0(n,s,f){var o=f[2],m=f[1],b=wr(l(n[1][1+Wd],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function PI0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(dx){return[0,o,[0,dx]]};return R0(l(n[1][1+$d],n),o,m,s,b);case 1:var T=f[1],N=function(dx){return[0,o,[1,dx]]};return R0(l(n[1][1+Vd],n),o,T,s,N);case 2:var q=f[1],i0=function(dx){return[0,o,[2,dx]]};return R0(l(n[1][1+O3],n),o,q,s,i0);case 3:var o0=f[1],O0=function(dx){return[0,o,[3,dx]]};return R0(l(n[1][1+sv],n),o,o0,s,O0);case 4:var K0=f[1],Ax=function(dx){return[0,o,[4,dx]]};return R0(l(n[1][1+ye],n),o,K0,s,Ax);case 5:var ux=f[1],Kr=function(dx){return[0,o,[5,dx]]};return R0(l(n[1][1+N3],n),o,ux,s,Kr);case 6:var m2=f[1],s2=function(dx){return[0,o,[6,dx]]};return R0(l(n[1][1+$a],n),o,m2,s,s2);case 7:var h2=f[1],d2=function(dx){return[0,o,[7,dx]]};return R0(l(n[1][1+E3],n),o,h2,s,d2);case 8:var o1=f[1],ge=function(dx){return[0,o,[8,dx]]};return R0(l(n[1][1+ln],n),o,o1,s,ge);case 9:var ze=f[1],Ve=function(dx){return[0,o,[9,dx]]};return R0(l(n[1][1+Wr],n),o,ze,s,Ve);case 10:var kt=f[1],Ge=function(dx){return[0,o,[10,dx]]};return I0(l(n[1][1+A],n),kt,s,Ge);case 11:var We=f[1],$e=function(dx){return[0,o,[11,dx]]};return I0(k(n[1][1+g3],n,o),We,s,$e);case 12:var us=f[1],is=function(dx){return[0,o,[12,dx]]};return R0(l(n[1][1+Ua],n),o,us,s,is);case 13:var He=f[1],fs=function(dx){return[0,o,[13,dx]]};return R0(l(n[1][1+K2],n),o,He,s,fs);case 14:var Ha=f[1],Qa=function(dx){return[0,o,[14,dx]]};return R0(l(n[1][1+ex],n),o,Ha,s,Qa);case 15:var Za=f[1],xo=function(dx){return[0,o,[15,dx]]};return R0(l(n[1][1+Mt],n),o,Za,s,xo);case 16:var G6=f[1],W6=function(dx){return[0,o,[16,dx]]};return R0(l(n[1][1+Ks],n),o,G6,s,W6);case 17:var $6=f[1],H6=function(dx){return[0,o,[17,dx]]};return R0(l(n[1][1+hx],n),o,$6,s,H6);case 18:var Q6=f[1],Z6=function(dx){return[0,o,[18,dx]]};return R0(l(n[1][1+ea],n),o,Q6,s,Z6);case 19:var xp=f[1],rp=function(dx){return[0,o,[19,dx]]};return R0(l(n[1][1+rr],n),o,xp,s,rp);case 20:var ep=f[1],tp=function(dx){return[0,o,[20,dx]]};return R0(l(n[1][1+fn],n),o,ep,s,tp);case 21:var np=f[1],up=function(dx){return[0,o,[21,dx]]};return R0(l(n[1][1+Oa],n),o,np,s,up);case 22:var ip=f[1],fp=function(dx){return[0,o,[22,dx]]};return R0(l(n[1][1+Ys],n),o,ip,s,fp);case 23:var cp=f[1],sp=function(dx){return[0,o,[23,dx]]};return R0(l(n[1][1+Go],n),o,cp,s,sp);case 24:var ap=f[1],op=function(dx){return[0,o,[24,dx]]};return R0(l(n[1][1+un],n),o,ap,s,op);case 25:var vp=f[1],lp=function(dx){return[0,o,[25,dx]]};return R0(l(n[1][1+Fr],n),o,vp,s,lp);case 26:var pp=f[1],kp=function(dx){return[0,o,[26,dx]]};return I0(k(n[1][1+b2],n,o),pp,s,kp);case 27:var mp=f[1],hp=function(dx){return[0,o,[27,dx]]};return R0(l(n[1][1+tx],n),o,mp,s,hp);case 28:var dp=f[1],yp=function(dx){return[0,o,[28,dx]]};return R0(l(n[1][1+Dx],n),o,dp,s,yp);case 29:var gp=f[1],_p=function(dx){return[0,o,[29,dx]]};return R0(l(n[1][1+V0],n),o,gp,s,_p);case 30:var bp=f[1],wp=function(dx){return[0,o,[30,dx]]};return R0(l(n[1][1+rx],n),o,bp,s,wp);case 31:var Tp=f[1],Ep=function(dx){return[0,o,[31,dx]]};return R0(l(n[1][1+A0],n),o,Tp,s,Ep);case 32:var Sp=f[1],Ap=function(dx){return[0,o,[32,dx]]};return R0(l(n[1][1+N0],n),o,Sp,s,Ap);case 33:var Ip=f[1],jp=function(dx){return[0,o,[33,dx]]};return R0(l(n[1][1+x0],n),o,Ip,s,jp);case 34:var Pp=f[1],Np=function(dx){return[0,o,[34,dx]]};return R0(l(n[1][1+p0],n),o,Pp,s,Np);case 35:var Op=f[1],Cp=function(dx){return[0,o,[35,dx]]};return R0(l(n[1][1+S],n),o,Op,s,Cp);case 36:var Dp=f[1],wx=function(dx){return[0,o,[36,dx]]};return R0(l(n[1][1+_],n),o,Dp,s,wx);default:var TD=f[1],ED=function(dx){return[0,o,[37,dx]]};return R0(l(n[1][1+e],n),o,TD,s,ED)}}function NI0(n,s){var f=s[2],o=s[1],m=s[3],b=wr(l(n[1][1+rs],n),o),T=wr(l(n[1][1+rs],n),f);return o===b&&f===T?s:[0,b,T,m]}function OI0(n){var s=l(n[1][1+G0],n);return function(f){return Cx(s,f)}}function CI0(n,s){return s}function DI0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(mx){return[0,o,[0,mx]]};return R0(l(n[1][1+te],n),o,m,s,b);case 1:var T=f[1],N=function(mx){return[0,o,[1,mx]]};return R0(l(n[1][1+cv],n),o,T,s,N);case 2:var q=f[1],i0=function(mx){return[0,o,[2,mx]]};return R0(l(n[1][1+A3],n),o,q,s,i0);case 3:var o0=f[1],O0=function(mx){return[0,o,[3,mx]]};return R0(l(n[1][1+_3],n),o,o0,s,O0);case 4:var K0=f[1],Ax=function(mx){return[0,o,[4,mx]]};return R0(l(n[1][1+Ke],n),o,K0,s,Ax);case 5:var ux=f[1],Kr=function(mx){return[0,o,[5,mx]]};return R0(l(n[1][1+Zc],n),o,ux,s,Kr);case 6:var m2=f[1],s2=function(mx){return[0,o,[6,mx]]};return R0(l(n[1][1+vn],n),o,m2,s,s2);case 7:var h2=f[1],d2=function(mx){return[0,o,[7,mx]]};return R0(l(n[1][1+on],n),o,h2,s,d2);case 8:var o1=f[1],ge=function(mx){return[0,o,[8,mx]]};return R0(l(n[1][1+E1],n),o,o1,s,ge);case 9:var ze=f[1],Ve=function(mx){return[0,o,[9,mx]]};return R0(l(n[1][1+Je],n),o,ze,s,Ve);case 10:var kt=f[1],Ge=function(mx){return[0,o,[10,mx]]};return R0(l(n[1][1+Xe],n),o,kt,s,Ge);case 11:var We=f[1],$e=function(mx){return[0,o,[11,mx]]};return R0(l(n[1][1+me],n),o,We,s,$e);case 12:var us=f[1],is=function(mx){return[0,o,[12,mx]]};return R0(l(n[1][1+Qc],n),o,us,s,is);case 13:var He=f[1],fs=function(mx){return[0,o,[13,mx]]};return R0(l(n[1][1+Hc],n),o,He,s,fs);case 14:var Ha=f[1],Qa=function(mx){return[0,o,[14,mx]]};return R0(l(n[1][1+$c],n),o,Ha,s,Qa);case 15:var Za=f[1],xo=function(mx){return[0,o,[15,mx]]};return R0(l(n[1][1+Be],n),o,Za,s,xo);case 16:var G6=f[1],W6=function(mx){return[0,o,[16,mx]]};return R0(l(n[1][1+Ux],n),o,G6,s,W6);case 17:var $6=f[1],H6=function(mx){return[0,o,[17,mx]]};return R0(l(n[1][1+T1],n),o,$6,s,H6);case 18:var Q6=f[1],Z6=function(mx){return[0,o,[18,mx]]};return R0(l(n[1][1+qe],n),o,Q6,s,Z6);case 19:var xp=f[1],rp=function(mx){return[0,o,[19,mx]]};return R0(l(n[1][1+Ue],n),o,xp,s,rp);case 20:var ep=f[1],tp=function(mx){return[0,o,[20,mx]]};return R0(l(n[1][1+ke],n),o,ep,s,tp);case 21:var np=f[1],up=function(mx){return[0,o,[21,mx]]};return R0(l(n[1][1+re],n),o,np,s,up);case 22:var ip=f[1],fp=function(mx){return[0,o,[22,mx]]};return R0(l(n[1][1+b1],n),o,ip,s,fp);case 23:var cp=f[1],sp=function(mx){return[0,o,[23,mx]]};return R0(l(n[1][1+Cr],n),o,cp,s,sp);case 24:var ap=f[1],op=function(mx){return[0,o,[24,mx]]};return R0(l(n[1][1+c2],n),o,ap,s,op);case 25:var vp=f[1],lp=function(mx){return[0,o,[25,mx]]};return R0(l(n[1][1+xe],n),o,vp,s,lp);case 26:var pp=f[1],kp=function(mx){return[0,o,[26,mx]]};return R0(l(n[1][1+k2],n),o,pp,s,kp);case 27:var mp=f[1],hp=function(mx){return[0,o,[27,mx]]};return R0(l(n[1][1+Pr],n),o,mp,s,hp);case 28:var dp=f[1],yp=function(mx){return[0,o,[28,mx]]};return R0(l(n[1][1+Yd],n),o,dp,s,yp);case 29:var gp=f[1],_p=function(mx){return[0,o,[29,mx]]};return R0(l(n[1][1+L6],n),o,gp,s,_p);case 30:var bp=f[1],wp=function(mx){return[0,o,[30,mx]]};return R0(l(n[1][1+O6],n),o,bp,s,wp);case 31:var Tp=f[1],Ep=function(mx){return[0,o,[31,mx]]};return R0(l(n[1][1+Ca],n),o,Tp,s,Ep);case 32:var Sp=f[1],Ap=function(mx){return[0,o,[32,mx]]};return R0(l(n[1][1+Ix],n),o,Sp,s,Ap);case 33:var Ip=f[1],jp=function(mx){return[0,o,[33,mx]]};return R0(l(n[1][1+Y0],n),o,Ip,s,jp);case 34:var Pp=f[1],Np=function(mx){return[0,o,[34,mx]]};return R0(l(n[1][1+E0],n),o,Pp,s,Np);case 35:var Op=f[1],Cp=function(mx){return[0,o,[35,mx]]};return R0(l(n[1][1+w0],n),o,Op,s,Cp);case 36:var Dp=f[1],wx=function(mx){return[0,o,[36,mx]]};return R0(l(n[1][1+d0],n),o,Dp,s,wx);case 37:var TD=f[1],ED=function(mx){return[0,o,[37,mx]]};return R0(l(n[1][1+Ux],n),o,TD,s,ED);case 38:var dx=f[1],RI0=function(mx){return[0,o,[38,mx]]};return R0(l(n[1][1+p],n),o,dx,s,RI0);case 39:var FI0=f[1],LI0=function(mx){return[0,o,[39,mx]]};return R0(l(n[1][1+u],n),o,FI0,s,LI0);default:var MI0=f[1],UI0=function(mx){return[0,o,[40,mx]]};return R0(l(n[1][1+t],n),o,MI0,s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,x5,rx,zC,A0,YC,X0,KC,N0,Zd,E0,C3,w0,JC,x0,XC,p0,BC,S,qC,_,Qd,p,Hd,a,UC,u,MC,t,LC,d0,FC,e,RC]),function(n,s){return kh(s,x)}}),JN=function x(r,e,t){return x.fun(r,e,t)};m0(JN,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return u1(function(c){return function(v){var a=v[0]===0?v[1][2][2]:v[1][2][1];return B0(JN,x,c,a)}},r,u);case 1:var i=t[1][1];return u1(function(c){return function(v){return v[0]===2?c:B0(JN,x,c,v[1][2][1])}},r,i);case 2:return k(x,r,t[1][1]);default:return r}});var KN=function x(r){return x.fun(r)};function zb0(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return l(KN,r)}function Vb0(x){return x[0]===2?0:l(KN,x[1][2][1])}m0(KN,function(x){var r=x[2];switch(r[0]){case 0:return cN(zb0,r[1][1]);case 1:return cN(Vb0,r[1][1]);case 2:return 1;default:return 0}});function rn(x,r){return[0,r[1],[0,r[2],x]]}function pB(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]}function t0(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,pB([0,t],[0,u],0)]}function F2(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,pB([0,u],[0,i],e)]}function N1(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Fx(t[2],e[2])];return t0([0,Fx(e[1],t[1])],u,R)}var i=x}else var i=r;return i}function YN(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],c=t[1],v=[0,Fx(t[2],e[2])];return F2([0,Fx(u,c)],v,i,R)}var a=r[1];return F2([0,a[1]],[0,a[2]],0,R)}function kB(x,r){e2(x)(tH),l(e2(x)(uH),nH);var e=r[1];l(e2(x)(iH),e),e2(x)(fH),e2(x)(cH),l(e2(x)(aH),sH);var t=r[2];return l(e2(x)(oH),t),e2(x)(vH),e2(x)(lH)}var mB=function x(r,e){return x.fun(r,e)},Gb0=function x(r){return x.fun(r)};m0(mB,function(x,r){e2(x)(dH),l(e2(x)(gH),yH);var e=r[1];if(e){var t=e[1];switch(lh(x,kH),t[0]){case 0:var u=t[1];e2(x)(zW),l(e2(x)(VW),u),e2(x)(GW);break;case 1:var i=t[1];e2(x)(WW),l(e2(x)($W),i),e2(x)(HW);break;case 2:var c=t[1];e2(x)(QW),l(e2(x)(ZW),c),e2(x)(x$);break;default:var v=t[1];e2(x)(r$),l(e2(x)(e$),v),e2(x)(t$)}lh(x,mH)}else lh(x,hH);return e2(x)(_H),e2(x)(bH),l(e2(x)(TH),wH),kB(x,r[2]),e2(x)(EH),e2(x)(SH),l(e2(x)(IH),AH),kB(x,r[3]),e2(x)(jH),e2(x)(PH)}),m0(Gb0,function(x){var r=pH[1],e=Uq(R),t=PN(e);return k(Lr(function(u){Ce(t,u),IN(t,0);var i=R2(e);return e[2]=0,e[1]=e[4],e[3]=nt(e[1]),i},0,r),mB,x)});function Zr(x,r){return[0,x[1],x[2],r[3]]}function Rs(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e}function hB(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],c=vB(i),v=vB(u)-c|0,a=v===0?ix(u[1],i[1]):v;else var a=-1}else var a=e?1:0;if(a!==0)return a;var p=Rs(x[2],r[2]);return p===0?Rs(x[3],r[3]):p}function ha(x,r){return hB(x,r)===0?1:0}var dB=function x(r,e){return x.fun(r,e)};m0(dB,function(x,r){if(typeof x=="number"){var e=x;if(57<=e)switch(e){case 57:if(typeof r=="number"&&r===57)return 0;break;case 58:if(typeof r=="number"&&r===58)return 0;break;case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&et===r)return 0;break;case 101:if(typeof r=="number"&&yt===r)return 0;break;case 102:if(typeof r=="number"&&S1===r)return 0;break;case 103:if(typeof r=="number"&&Ze===r)return 0;break;case 104:if(typeof r=="number"&&_t===r)return 0;break;case 105:if(typeof r=="number"&>===r)return 0;break;case 106:if(typeof r=="number"&&z2===r)return 0;break;case 107:if(typeof r=="number"&&$f===r)return 0;break;case 108:if(typeof r=="number"&&R7===r)return 0;break;case 109:if(typeof r=="number"&&Ni===r)return 0;break;case 110:if(typeof r=="number"&&j2===r)return 0;break;case 111:if(typeof r=="number"&&zt===r)return 0;break;default:if(typeof r=="number"&&ue<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;default:if(typeof r=="number"&&r===56)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return ix(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return ix(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=ix(x[1],r[1]),u=r[2],i=x[2];return t===0?ix(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var c=ix(x[1],r[1]),v=r[2],a=x[2];return c===0?ix(a,v):c}break;case 4:if(typeof r!="number"&&r[0]===4){var p=ix(x[1],r[1]),_=r[2],y=x[2];return p===0?ix(y,_):p}break;case 5:if(typeof r!="number"&&r[0]===5)return ix(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return wt(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var S=r[2],E=x[2],j=ix(x[1],r[1]);if(j!==0)return j;if(!E)return S?-1:0;var C=E[1];return S?ix(C,S[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return ix(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var P=r[2],O=x[2],F=ix(x[1],r[1]),K=r[3],U=x[3];if(F!==0)return F;if(O){var V=O[1];if(P){var Q=P[1];x:{switch(V){case 0:if(!Q){var e0=0;break x}break;case 1:if(Q===1){var e0=0;break x}break;case 2:if(Q===2){var e0=0;break x}break;case 3:if(Q===3){var e0=0;break x}break;default:if(4<=Q){var e0=0;break x}}var $=function(jx){switch(jx){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},x0=$(Q),e0=wt($(V),x0)}var Z=e0}else var Z=1}else var Z=P?-1:0;return Z===0?ix(U,K):Z}break;case 10:if(typeof r!="number"&&r[0]===10){var c0=ix(x[1],r[1]),d0=r[2],n0=x[2];return c0===0?ix(n0,d0):c0}break;case 11:if(typeof r!="number"&&r[0]===11){var P0=ix(x[1],r[1]),h0=r[2],g0=x[2];return P0===0?ix(g0,h0):P0}break;case 12:if(typeof r!="number"&&r[0]===12)return ix(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return ix(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return wt(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var v0=ix(x[1],r[1]),p0=r[4],w0=r[3],T0=r[2],E0=x[4],N0=x[3],X0=x[2];if(v0!==0)return v0;var A0=wt(X0,T0);if(A0!==0)return A0;var rx=wt(N0,w0);return rx===0?wt(E0,p0):rx}break;case 16:if(typeof r!="number"&&r[0]===16){var B=wt(x[1],r[1]),G0=r[2],W0=x[2];return B===0?ix(W0,G0):B}break;case 17:if(typeof r!="number"&&r[0]===17)return wt(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return ix(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return ix(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20)return ix(x[1],r[1]);break;case 21:if(typeof r!="number"&&r[0]===21){var Y0=ix(x[1],r[1]),V0=r[2],ex=x[2];return Y0===0?ix(ex,V0):Y0}break;case 22:if(typeof r!="number"&&r[0]===22){var Q0=r[1],S0=x[1];if(ol===S0){if(ol===Q0)return 0}else if(tl<=S0){if(tl===Q0)return 0}else if(xU===Q0)return 0;var q0=function(Hx){return ol===Hx?0:tl<=Hx?2:1},yx=q0(Q0);return wt(q0(S0),yx)}break;case 23:if(typeof r!="number"&&r[0]===23)return ix(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24)return ix(x[1],r[1]);break;case 25:if(typeof r!="number"&&r[0]===25){var cx=ix(x[1],r[1]),Dx=r[2],Ix=x[2];return cx===0?ix(Ix,Dx):cx}break;case 26:if(typeof r!="number"&&r[0]===26){var Xx=ix(x[1],r[1]),Z0=r[2],rr=x[2];return Xx===0?ix(rr,Z0):Xx}break;default:if(typeof r!="number"&&r[0]===27)return ix(x[1],r[1])}function xr(Hx){if(typeof Hx!="number")switch(Hx[0]){case 0:return 16;case 1:return 17;case 2:return 19;case 3:return 20;case 4:return 21;case 5:return 22;case 6:return 23;case 7:return 24;case 8:return 26;case 9:return 27;case 10:return 28;case 11:return 30;case 12:return 31;case 13:return 33;case 14:return 36;case 15:return 48;case 16:return 51;case 17:return 53;case 18:return 61;case 19:return 70;case 20:return 79;case 21:return 86;case 22:return z2;case 23:return ia;case 24:return Ov;case 25:return Bp;case 26:return DL;default:return aU}var Y=Hx;if(57<=Y)switch(Y){case 57:return 77;case 58:return 78;case 59:return 80;case 60:return 81;case 61:return 82;case 62:return 83;case 63:return 84;case 64:return 85;case 65:return 87;case 66:return 88;case 67:return 89;case 68:return 90;case 69:return 91;case 70:return 92;case 71:return 93;case 72:return 94;case 73:return 95;case 74:return 96;case 75:return 97;case 76:return 98;case 77:return 99;case 78:return et;case 79:return yt;case 80:return S1;case 81:return Ze;case 82:return _t;case 83:return gt;case 84:return $f;case 85:return R7;case 86:return Ni;case 87:return j2;case 88:return zt;case 89:return ue;case 90:return Dr;case 91:return ua;case 92:return B3;case 93:return kv;case 94:return Ev;case 95:return of;case 96:return rl;case 97:return r2;case 98:return Vt;case 99:return Cv;case 100:return ms;case 101:return Yr;case 102:return y2;case 103:return dl;case 104:return kl;case 105:return _4;case 106:return hl;case 107:return HD;case 108:return qF;case 109:return LR;case 110:return M_;case 111:return _F;default:return mM}switch(Y){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 18;case 17:return 25;case 18:return 29;case 19:return 32;case 20:return 34;case 21:return 35;case 22:return 37;case 23:return 38;case 24:return 39;case 25:return 40;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 49;case 34:return 50;case 35:return 52;case 36:return 54;case 37:return 55;case 38:return 56;case 39:return 57;case 40:return 58;case 41:return 59;case 42:return 60;case 43:return 62;case 44:return 63;case 45:return 64;case 46:return 65;case 47:return 66;case 48:return 67;case 49:return 68;case 50:return 69;case 51:return 71;case 52:return 72;case 53:return 73;case 54:return 74;case 55:return 75;default:return 76}}var fr=xr(r);return wt(xr(x),fr)});var Wb0=[x2,F00,Ts(0)];function $b0(x){if(typeof x=="number"){var r=x;if(57<=r)switch(r){case 57:return LQ;case 58:return MQ;case 59:return UQ;case 60:return qQ;case 61:return BQ;case 62:return XQ;case 63:return JQ;case 64:return KQ;case 65:return YQ;case 66:return zQ;case 67:return VQ;case 68:return GQ;case 69:return WQ;case 70:return $Q;case 71:return HQ;case 72:return QQ;case 73:return ZQ;case 74:return xZ;case 75:return rZ;case 76:return eZ;case 77:return tZ;case 78:return nZ;case 79:return uZ;case 80:return iZ;case 81:return fZ;case 82:return cZ;case 83:return sZ;case 84:return aZ;case 85:return oZ;case 86:return vZ;case 87:return lZ;case 88:return pZ;case 89:return kZ;case 90:return mZ;case 91:return hZ;case 92:return dZ;case 93:return yZ;case 94:return gZ;case 95:return _Z;case 96:return bZ;case 97:return wZ;case 98:return TZ;case 99:return EZ;case 100:return SZ;case 101:return AZ;case 102:return IZ;case 103:return jZ;case 104:return PZ;case 105:return NZ;case 106:return OZ;case 107:return CZ;case 108:return DZ;case 109:return RZ;case 110:return FZ;case 111:return LZ;default:return MZ}switch(r){case 0:return OH;case 1:return CH;case 2:return DH;case 3:return RH;case 4:return FH;case 5:return LH;case 6:return MH;case 7:return UH;case 8:return qH;case 9:return BH;case 10:return XH;case 11:return Bx(KH,JH);case 12:return YH;case 13:return zH;case 14:return VH;case 15:return GH;case 16:return WH;case 17:return $H;case 18:return HH;case 19:return QH;case 20:return ZH;case 21:return xQ;case 22:return rQ;case 23:return eQ;case 24:return tQ;case 25:return nQ;case 26:return uQ;case 27:return iQ;case 28:return fQ;case 29:return cQ;case 30:return Bx(aQ,sQ);case 31:return oQ;case 32:return vQ;case 33:return lQ;case 34:return pQ;case 35:return kQ;case 36:return mQ;case 37:return hQ;case 38:return dQ;case 39:return yQ;case 40:return gQ;case 41:return _Q;case 42:return bQ;case 43:return wQ;case 44:return TQ;case 45:return EQ;case 46:return SQ;case 47:return AQ;case 48:return IQ;case 49:return jQ;case 50:return PQ;case 51:return NQ;case 52:return OQ;case 53:return CQ;case 54:return DQ;case 55:return RQ;default:return FQ}}switch(x[0]){case 0:var e=x[1];return l(yr(UZ),e);case 1:var t=x[1];return l(yr(qZ),t);case 2:var u=x[2],i=x[1];return k(yr(BZ),u,i);case 3:var c=x[2],v=x[1];return B0(yr(XZ),c,c,v);case 4:var a=x[2],p=x[1];return k(yr(JZ),a,p);case 5:var _=x[1];return l(yr(KZ),_);case 6:return x[1]?YZ:zZ;case 7:var y=x[2],S=x[1],E=l(yr(VZ),S);if(!y)return l(yr(WZ),E);var j=y[1];return k(yr(GZ),j,E);case 8:var C=x[1];return k(yr($Z),C,C);case 9:var P=x[3],O=x[2],F=x[1];if(!O)return k(yr(ZZ),P,F);var K=O[1];if(K===3)return k(yr(QZ),P,F);switch(K){case 0:var U=BW;break;case 1:var U=XW;break;case 2:var U=JW;break;case 3:var U=KW;break;default:var U=YW}return St(yr(HZ),F,U,P,U);case 10:var V=x[2],Q=x[1],$=cq(V);return B0(yr(x00),V,$,Q);case 11:var x0=x[2],e0=x[1];return k(yr(r00),x0,e0);case 12:var Z=x[1];return l(yr(e00),Z);case 13:var c0=x[1];return l(yr(t00),c0);case 14:return x[1]?Bx(u00,n00):Bx(f00,i00);case 15:var d0=x[1],n0=x[4],P0=x[3],h0=x[2]?c00:s00,g0=P0?a00:o00,v0=n0?Bx(v00,d0):d0;return B0(yr(l00),h0,g0,v0);case 16:var p0=x[2],w0=x[1],T0=aq(45,p0);if(T0)var E0=T0[1],N0=T0[2]?fq(NH,[0,E0,xn(cq,T0[2])]):E0;else var N0=p0;var X0=w0?p00:k00;return B0(yr(m00),p0,N0,X0);case 17:var A0=x[1]?h00:d00;return l(yr(y00),A0);case 18:var rx=x[1];return l(yr(g00),rx);case 19:var B=x[1];return l(yr(_00),B);case 20:var G0=x[1];return l(yr(b00),G0);case 21:var W0=x[2],Y0=x[1];return k(yr(w00),Y0,W0);case 22:var V0=x[1];if(ol===V0)var ex=I00,Q0=j00;else if(tl<=V0)var ex=T00,Q0=E00;else var ex=S00,Q0=A00;return k(yr(P00),Q0,ex);case 23:var S0=x[1];return l(yr(N00),S0);case 24:var q0=x[1];return l(yr(O00),q0);case 25:var yx=x[2],cx=x[1];return k(yr(C00),cx,yx);case 26:var Dx=x[2],Ix=x[1];return k(yr(D00),Ix,Dx);default:var Xx=x[1];return l(yr(R00),Xx)}}var yB=L00.slice();function zN(x){for(var r=0,e=yB.length-1-1|0;;){if(ex)return 1;var r=t+1|0}}}var gB=0;function _B(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]}function bB(x){return x[3][1]}function _h(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r}var VN=function x(r,e){return x.fun(r,e)},wB=function x(r,e){return x.fun(r,e)},GN=function x(r,e){return x.fun(r,e)},WN=function x(r,e){return x.fun(r,e)};m0(VN,function(x,r){if(typeof x=="number"){var e=x;if(67<=e)if(et<=e)switch(e){case 100:if(typeof r=="number"&&et===r)return 1;break;case 101:if(typeof r=="number"&&yt===r)return 1;break;case 102:if(typeof r=="number"&&S1===r)return 1;break;case 103:if(typeof r=="number"&&Ze===r)return 1;break;case 104:if(typeof r=="number"&&_t===r)return 1;break;case 105:if(typeof r=="number"&>===r)return 1;break;case 106:if(typeof r=="number"&&z2===r)return 1;break;case 107:if(typeof r=="number"&&$f===r)return 1;break;case 108:if(typeof r=="number"&&R7===r)return 1;break;case 109:if(typeof r=="number"&&Ni===r)return 1;break;case 110:if(typeof r=="number"&&j2===r)return 1;break;case 111:if(typeof r=="number"&&zt===r)return 1;break;case 112:if(typeof r=="number"&&ue===r)return 1;break;case 113:if(typeof r=="number"&&Dr===r)return 1;break;case 114:if(typeof r=="number"&&ia===r)return 1;break;case 115:if(typeof r=="number"&&Ov===r)return 1;break;case 116:if(typeof r=="number"&&ua===r)return 1;break;case 117:if(typeof r=="number"&&B3===r)return 1;break;case 118:if(typeof r=="number"&&kv===r)return 1;break;case 119:if(typeof r=="number"&&Ev===r)return 1;break;case 120:if(typeof r=="number"&&of===r)return 1;break;case 121:if(typeof r=="number"&&rl===r)return 1;break;case 122:if(typeof r=="number"&&r2===r)return 1;break;case 123:if(typeof r=="number"&&Vt===r)return 1;break;case 124:if(typeof r=="number"&&Cv===r)return 1;break;case 125:if(typeof r=="number"&&ms===r)return 1;break;case 126:if(typeof r=="number"&&Bp===r)return 1;break;case 127:if(typeof r=="number"&&Yr===r)return 1;break;case 128:if(typeof r=="number"&&y2===r)return 1;break;case 129:if(typeof r=="number"&&dl===r)return 1;break;case 130:if(typeof r=="number"&&kl===r)return 1;break;case 131:if(typeof r=="number"&&_4===r)return 1;break;default:if(typeof r=="number"&&hl<=r)return 1}else switch(e){case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;case 97:if(typeof r=="number"&&r===97)return 1;break;case 98:if(typeof r=="number"&&r===98)return 1;break;default:if(typeof r=="number"&&r===99)return 1}else if(34<=e)switch(e){case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;case 64:if(typeof r=="number"&&r===64)return 1;break;case 65:if(typeof r=="number"&&r===65)return 1;break;default:if(typeof r=="number"&&r===66)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;case 32:if(typeof r=="number"&&r===32)return 1;break;default:if(typeof r=="number"&&r===33)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],c=l(l(GN,x[1]),u);return c&&Sr(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var v=r[2],a=r[1],p=x[2],_=l(l(WN,x[1]),a);return _&&Sr(p,v)}break;case 2:if(typeof r!="number"&&r[0]===2){var y=r[1],S=x[1],E=y[4],j=y[3],C=y[2],P=S[4],O=S[3],F=S[2],K=ha(S[1],y[1]),U=K&&Sr(F,C),V=U&&Sr(O,j);return V&&(P===E?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var Q=r[1],$=x[1],x0=Q[5],e0=Q[4],Z=Q[3],c0=Q[2],d0=$[5],n0=$[4],P0=$[3],h0=$[2],g0=ha($[1],Q[1]),v0=g0&&Sr(h0,c0),p0=v0&&Sr(P0,Z),w0=p0&&(n0===e0?1:0);return w0&&(d0===x0?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var T0=r[3],E0=r[2],N0=x[3],X0=x[2],A0=ha(x[1],r[1]),rx=A0&&Sr(X0,E0);return rx&&Sr(N0,T0)}break;case 5:if(typeof r!="number"&&r[0]===5){var B=r[3],G0=r[2],W0=x[3],Y0=x[2],V0=ha(x[1],r[1]),ex=V0&&Sr(Y0,G0);return ex&&Sr(W0,B)}break;case 6:if(typeof r!="number"&&r[0]===6){var Q0=r[2],S0=x[2],q0=ha(x[1],r[1]);return q0&&Sr(S0,Q0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Sr(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var yx=Sr(x[1],r[1]),cx=r[2],Dx=x[2];return yx&&ha(Dx,cx)}break;case 9:if(typeof r!="number"&&r[0]===9){var Ix=r[3],Xx=r[2],Z0=x[3],rr=x[2],xr=ha(x[1],r[1]),fr=xr&&Sr(rr,Xx);return fr&&Sr(Z0,Ix)}break;case 10:if(typeof r!="number"&&r[0]===10){var Hx=r[3],Y=r[2],jx=x[3],hr=x[2],Yx=ha(x[1],r[1]),Ur=Yx&&Sr(hr,Y);return Ur&&Sr(jx,Hx)}break;case 11:if(typeof r!="number"&&r[0]===11){var px=r[1];return l(l(wB,x[1]),px)}break;case 12:if(typeof r!="number"&&r[0]===12){var w=r[3],L=r[2],L0=r[1],sx=x[3],lx=x[2],ax=l(l(GN,x[1]),L0),Vx=ax&&(lx==L?1:0);return Vx&&Sr(sx,w)}break;default:if(typeof r!="number"&&r[0]===13){var _x=r[2],zx=x[2],Lx=r[3],M0=r[1],qr=x[3],Ex=l(l(WN,x[1]),M0);if(Ex){x:{if(zx){if(_x){var $0=Xv(zx[1],_x[1]);break x}}else if(!_x){var $0=1;break x}var $0=0}var Gx=$0}else var Gx=Ex;return Gx&&Sr(qr,Lx)}}return 0}),m0(wB,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),m0(GN,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),m0(WN,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});function TB(x){if(typeof x!="number")switch(x[0]){case 0:return ot0;case 1:return vt0;case 2:return lt0;case 3:return pt0;case 4:return kt0;case 5:return mt0;case 6:return ht0;case 7:return dt0;case 8:return yt0;case 9:return gt0;case 10:return _t0;case 11:return bt0;case 12:return wt0;default:return Tt0}var r=x;if(67<=r){if(et<=r)switch(r){case 100:return Oe0;case 101:return Ce0;case 102:return De0;case 103:return Re0;case 104:return Fe0;case 105:return Le0;case 106:return Me0;case 107:return Ue0;case 108:return qe0;case 109:return Be0;case 110:return Xe0;case 111:return Je0;case 112:return Ke0;case 113:return Ye0;case 114:return ze0;case 115:return Ve0;case 116:return Ge0;case 117:return We0;case 118:return $e0;case 119:return He0;case 120:return Qe0;case 121:return Ze0;case 122:return xt0;case 123:return rt0;case 124:return et0;case 125:return tt0;case 126:return nt0;case 127:return ut0;case 128:return it0;case 129:return ft0;case 130:return ct0;case 131:return st0;default:return at0}switch(r){case 67:return Z10;case 68:return xe0;case 69:return re0;case 70:return ee0;case 71:return te0;case 72:return ne0;case 73:return ue0;case 74:return ie0;case 75:return fe0;case 76:return ce0;case 77:return se0;case 78:return ae0;case 79:return oe0;case 80:return ve0;case 81:return le0;case 82:return pe0;case 83:return ke0;case 84:return me0;case 85:return he0;case 86:return de0;case 87:return ye0;case 88:return ge0;case 89:return _e0;case 90:return be0;case 91:return we0;case 92:return Te0;case 93:return Ee0;case 94:return Se0;case 95:return Ae0;case 96:return Ie0;case 97:return je0;case 98:return Pe0;default:return Ne0}}if(34<=r)switch(r){case 34:return g10;case 35:return _10;case 36:return b10;case 37:return w10;case 38:return T10;case 39:return E10;case 40:return S10;case 41:return A10;case 42:return I10;case 43:return j10;case 44:return P10;case 45:return N10;case 46:return O10;case 47:return C10;case 48:return D10;case 49:return R10;case 50:return F10;case 51:return L10;case 52:return M10;case 53:return U10;case 54:return q10;case 55:return B10;case 56:return X10;case 57:return J10;case 58:return K10;case 59:return Y10;case 60:return z10;case 61:return V10;case 62:return G10;case 63:return W10;case 64:return $10;case 65:return H10;default:return Q10}switch(r){case 0:return q20;case 1:return B20;case 2:return X20;case 3:return J20;case 4:return K20;case 5:return Y20;case 6:return z20;case 7:return V20;case 8:return G20;case 9:return W20;case 10:return $20;case 11:return H20;case 12:return Q20;case 13:return Z20;case 14:return x10;case 15:return r10;case 16:return e10;case 17:return t10;case 18:return n10;case 19:return u10;case 20:return i10;case 21:return f10;case 22:return c10;case 23:return s10;case 24:return a10;case 25:return o10;case 26:return v10;case 27:return l10;case 28:return p10;case 29:return k10;case 30:return m10;case 31:return h10;case 32:return d10;default:return y10}}function $N(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Bx(j20,Bx(u,I20)):t?Bx(N20,Bx(u,P20)):e?Bx(C20,Bx(u,O20)):Bx(R20,Bx(u,D20));case 4:return x[3];case 5:var i=x[2];return Bx(L20,Bx(i,Bx(F20,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?M20:U20;case 12:return x[3];default:return x[3]}var c=x;if(67<=c){if(et<=c)switch(c){case 100:return Wr0;case 101:return $r0;case 102:return Hr0;case 103:return Qr0;case 104:return Zr0;case 105:return x20;case 106:return r20;case 107:return e20;case 108:return t20;case 109:return n20;case 110:return u20;case 111:return i20;case 112:return f20;case 113:return c20;case 114:return s20;case 115:return a20;case 116:return o20;case 117:return v20;case 118:return l20;case 119:return p20;case 120:return k20;case 121:return m20;case 122:return h20;case 123:return d20;case 124:return y20;case 125:return g20;case 126:return _20;case 127:return b20;case 128:return w20;case 129:return T20;case 130:return E20;case 131:return S20;default:return A20}switch(c){case 67:return mr0;case 68:return hr0;case 69:return dr0;case 70:return yr0;case 71:return gr0;case 72:return _r0;case 73:return br0;case 74:return wr0;case 75:return Tr0;case 76:return Er0;case 77:return Sr0;case 78:return Ar0;case 79:return Ir0;case 80:return jr0;case 81:return Pr0;case 82:return Nr0;case 83:return Or0;case 84:return Cr0;case 85:return Dr0;case 86:return Rr0;case 87:return Fr0;case 88:return Lr0;case 89:return Mr0;case 90:return Ur0;case 91:return qr0;case 92:return Br0;case 93:return Xr0;case 94:return Jr0;case 95:return Kr0;case 96:return Yr0;case 97:return zr0;case 98:return Vr0;default:return Gr0}}if(34<=c)switch(c){case 34:return Lx0;case 35:return Mx0;case 36:return Ux0;case 37:return qx0;case 38:return Bx0;case 39:return Xx0;case 40:return Jx0;case 41:return Kx0;case 42:return Yx0;case 43:return zx0;case 44:return Vx0;case 45:return Gx0;case 46:return Wx0;case 47:return $x0;case 48:return Hx0;case 49:return Qx0;case 50:return Zx0;case 51:return xr0;case 52:return rr0;case 53:return er0;case 54:return tr0;case 55:return nr0;case 56:return ur0;case 57:return ir0;case 58:return fr0;case 59:return cr0;case 60:return sr0;case 61:return ar0;case 62:return or0;case 63:return vr0;case 64:return lr0;case 65:return pr0;default:return kr0}switch(c){case 0:return tx0;case 1:return nx0;case 2:return ux0;case 3:return ix0;case 4:return fx0;case 5:return cx0;case 6:return sx0;case 7:return ax0;case 8:return ox0;case 9:return vx0;case 10:return lx0;case 11:return px0;case 12:return kx0;case 13:return mx0;case 14:return hx0;case 15:return dx0;case 16:return yx0;case 17:return gx0;case 18:return _x0;case 19:return bx0;case 20:return wx0;case 21:return Tx0;case 22:return Ex0;case 23:return Sx0;case 24:return Ax0;case 25:return Ix0;case 26:return jx0;case 27:return Px0;case 28:return Nx0;case 29:return Ox0;case 30:return Cx0;case 31:return Dx0;case 32:return Rx0;default:return Fx0}}function bh(x){return l(yr(ex0),x)}function HN(x,r){var e=x?x[1]:0;x:{if(typeof r=="number"){if(Dr===r){var t=q00,u=B00;break x}}else switch(r[0]){case 3:var t=X00,u=J00;break x;case 5:var t=K00,u=Y00;break x;case 0:case 12:var t=V00,u=G00;break x;case 1:case 13:var t=W00,u=$00;break x;case 4:case 8:var t=Z00,u=xx0;break x;case 6:case 7:case 11:break;default:var t=H00,u=Q00;break x}var t=z00,u=bh($N(r))}return e?Bx(t,Bx(rx0,u)):u}function Hb0(x){return Eo>>0)var t=d(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(z(x,2),wa(h(x))===0){var u=Lo(h(x));if(u===0)var t=Ir(h(x))===0&&Ir(h(x))===0&&Ir(h(x))===0?0:d(x);else if(u===1&&Ir(h(x))===0){for(;;){var i=Fo(h(x));if(i!==0)break}var t=i===1?0:d(x)}else var t=d(x)}else var t=d(x)}if(2>>0)throw U0([0,Ar,Et0],1);switch(t){case 0:break;case 1:return;default:if(!zN(iB(x))){cB(x,1);return}}}}function Vh(x,r){var e=r-x[3][2]|0;return[0,bB(x),e]}function Hl(x,r,e){var t=Vh(x,e),u=Vh(x,r);return[0,x[1],u,t]}function h1(x,r){return Vh(x,r[6])}function oe(x,r){return Vh(x,r[3])}function zr(x,r){return Hl(x,r[6],r[3])}function GB(x,r){x:if(typeof r!="number"){switch(r[0]){case 2:var e=r[1][1];break;case 3:return r[1][1];case 4:var e=r[1];break;case 5:return r[1];case 8:var e=r[2];break;case 9:return r[1];case 10:return r[1];default:break x}return e}return zr(x,x[2])}function d1(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]}function WB(x,r,e){return d1(x,r,[24,bh(e)])}function tO(x,r,e,t){return d1(x,r,[25,e,t])}function ft(x,r){return d1(x,r,Kc0)}function J1(x,r){var e=r[3],t=[0,bB(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]}function jt(x,r,e,t,u){var i=[0,x[1],r,e],c=R2(t),v=u?0:1;return[0,i,[0,v,c,x[7][3][1]>>0)var a=d(t);else switch(v){case 0:var a=2;break;case 1:for(;;){z(t,3);var p=h(t),_=-1>>0)return gx(Lc0);switch(a){case 0:var E=HB(i,e,t,2,0),j=E[1],C=tt(Bx(Mc0,E[2])),P=0<=C?1:0,O=P&&(C<=55295?1:0);if(O)var K=O;else var F=57344<=C?1:0,K=F&&(C<=d8?1:0);var U=K?$B(i,j,C):d1(i,j,28);Mc(u,C);var i=U;break;case 1:var V=HB(i,e,t,3,1),Q=V[1],$=tt(Bx(Uc0,V[2])),x0=$B(i,Q,$);Mc(u,$);var i=x0;break;case 2:return[0,i,R2(u)];default:dh(t,u)}}}function A2(x,r,e){var t=ft(x,zr(x,r));return Zv(r),e(t,r)}function Uo(x,r,e){for(var t=x;;){kr(e);var u=h(e),i=-1>>0)var c=d(e);else switch(i){case 0:for(;;){z(e,3);var v=h(e),a=-1>>0){var y=ft(t,zr(t,e));return[0,y,oe(y,e)]}switch(c){case 0:var S=J1(t,e);dh(e,r);var t=S;break;case 1:var E=t[4]?tO(t,zr(t,e),It0,At0):t;return[0,E,oe(E,e)];case 2:if(t[4])return[0,t,oe(t,e)];ar(r,jt0);break;default:dh(e,r)}}}function t3(x,r,e){for(;;){kr(e);var t=h(e),u=13>>0)var i=d(e);else switch(u){case 0:var i=0;break;case 1:for(;;){z(e,2);var c=h(e),v=-1>>0)return gx(Pt0);switch(i){case 0:return[0,x,oe(x,e)];case 1:var a=oe(x,e),p=a[2],_=a[1],y=J1(x,e);return[0,y,[0,_,p-hh(e)|0]];default:dh(e,r)}}}function ZB(x,r){function e(Q){return z(Q,3),X1(h(Q))===0?2:d(Q)}kr(r);var t=h(r),u=of>>0)var i=d(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:z(r,15);var i=ae(h(r))===0?15:d(r);break;case 4:z(r,4);var i=X1(h(r))===0?e(r):d(r);break;case 5:z(r,11);var i=X1(h(r))===0?e(r):d(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:z(r,14);var c=Lo(h(r));if(c===0)var i=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?12:d(r);else if(c===1&&Ir(h(r))===0){for(;;){var v=Fo(h(r));if(v!==0)break}var i=v===1?13:d(r)}else var i=d(r);break;case 13:var i=10;break;default:z(r,14);var i=Ir(h(r))===0&&Ir(h(r))===0?1:d(r)}if(16>>0)return gx(wc0);switch(i){case 0:var a=Ox(r);return[0,x,a,i2(r),0];case 1:var p=Ox(r);return[0,x,p,[0,tt(Bx(Tc0,p))],0];case 2:var _=Ox(r),y=tt(Bx(Ec0,_));return gv<=y?[0,x,_,[0,y>>>3|0,48+(y&7)|0],1]:[0,x,_,[0,y],1];case 3:var S=Ox(r);return[0,x,S,[0,tt(Bx(Sc0,S))],1];case 4:return[0,x,Ac0,[0,0],0];case 5:return[0,x,Ic0,[0,8],0];case 6:return[0,x,jc0,[0,12],0];case 7:return[0,x,Pc0,[0,10],0];case 8:return[0,x,Nc0,[0,13],0];case 9:return[0,x,Oc0,[0,9],0];case 10:return[0,x,Cc0,[0,11],0];case 11:var E=Ox(r);return[0,x,E,[0,tt(Bx(Dc0,E))],1];case 12:var j=Ox(r);return[0,x,j,[0,tt(Bx(Rc0,k1(j,1,Nx(j)-1|0)))],0];case 13:var C=Ox(r),P=tt(Bx(Fc0,k1(C,2,Nx(C)-3|0))),O=d8>>0)var _=d(i);else switch(p){case 0:var _=3;break;case 1:for(;;){z(i,4);var y=h(i),S=-1>>0)return gx(Nt0);switch(_){case 0:var E=Ox(i);if(ar(t,E),Sr(r,E))return[0,c,oe(c,i),v];ar(e,E);break;case 1:ar(t,Ot0);var j=ZB(c,i),C=j[4],P=j[3],O=j[2],F=j[1],K=C||v;ar(t,O),oq(function(P0){return Mc(e,P0)},P);var c=F,v=K;break;case 2:var U=Ox(i);ar(t,U);var V=J1(ft(c,zr(c,i)),i);return ar(e,U),[0,V,oe(V,i),v];case 3:var Q=Ox(i);ar(t,Q);var $=ft(c,zr(c,i));return ar(e,Q),[0,$,oe($,i),v];default:var x0=i[6],e0=i[3]-x0|0,Z=T2(e0*4|0),c0=zl(i[1],x0,e0,Z);pN(t,Z,0,c0),pN(e,Z,0,c0)}}}function rX(x,r,e,t){for(var u=x;;){kr(t);var i=h(t),c=96>>0)var v=d(t);else switch(c){case 0:var v=0;break;case 1:for(;;){z(t,6);var a=h(t),p=-1>>0)return gx(Ct0);switch(v){case 0:return[0,ft(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:ut(e,92);var S=ZB(u,t),E=S[3],j=S[1];ar(e,S[2]),oq(function(O){return Mc(r,O)},E);var u=j;break;case 4:ar(e,Dt0),ar(r,Rt0);var u=J1(u,t);break;case 5:ar(e,Ox(t)),ut(r,10);var u=J1(u,t);break;default:var C=Ox(t);ar(e,C),ar(r,C)}}}function xw0(x,r){function e(g){for(;;)if(z(g,33),or(h(g))!==0)return d(g)}function t(g){z(g,32);var G=D2(h(g));if(G!==0)return G===1?e(g):d(g);for(;;)if(z(g,30),or(h(g))!==0)return d(g)}function u(g){z(g,31);var G=D2(h(g));if(G!==0)return G===1?e(g):d(g);for(;;)if(z(g,29),or(h(g))!==0)return d(g)}function i(g){z(g,34);var G=x3(h(g));if(2>>0)return d(g);switch(G){case 0:return e(g);case 1:x:for(;;){z(g,34);var H=Xc(h(g));if(3>>0)return d(g);switch(H){case 0:return e(g);case 1:break;case 2:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var l0=Xc(h(g));if(3>>0)return d(g);switch(l0){case 0:return e(g);case 1:break;case 2:break x;default:return u(g)}}}break;default:return u(g)}}function c(g){for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var G=MB(h(g));if(4>>0)return d(g);switch(G){case 0:return e(g);case 1:return i(g);case 2:break;case 3:break x;default:return t(g)}}}}function v(g){for(;;)if(z(g,23),or(h(g))!==0)return d(g)}function a(g){for(;;)if(z(g,23),or(h(g))!==0)return d(g)}function p(g){for(;;)if(z(g,15),or(h(g))!==0)return d(g)}function _(g){for(;;)if(z(g,15),or(h(g))!==0)return d(g)}function y(g){for(;;)if(z(g,11),or(h(g))!==0)return d(g)}function S(g){for(;;)if(z(g,11),or(h(g))!==0)return d(g)}function E(g){for(;;)if(z(g,17),or(h(g))!==0)return d(g)}function j(g){for(;;)if(z(g,17),or(h(g))!==0)return d(g)}function C(g){for(;;)if(z(g,19),or(h(g))!==0)return d(g)}function P(g){for(;;)if(z(g,27),or(h(g))!==0)return d(g)}function O(g){z(g,26);var G=D2(h(g));if(G!==0)return G===1?P(g):d(g);for(;;)if(z(g,25),or(h(g))!==0)return d(g)}function F(g){for(;;)if(z(g,27),or(h(g))!==0)return d(g)}function K(g){z(g,26);var G=D2(h(g));if(G!==0)return G===1?F(g):d(g);for(;;)if(z(g,25),or(h(g))!==0)return d(g)}function U(g){for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,28);var G=Xc(h(g));if(3>>0)return d(g);switch(G){case 0:return F(g);case 1:break;case 2:break x;default:return K(g)}}}}function V(g){z(g,33);var G=qB(h(g));if(3>>0)return d(g);switch(G){case 0:return e(g);case 1:var H=ya(h(g));if(H===0)for(;;){z(g,28);var l0=x3(h(g));if(2>>0)return d(g);switch(l0){case 0:return F(g);case 1:break;default:return K(g)}}else{if(H!==1)return d(g);for(;;){z(g,28);var J=Xc(h(g));if(3>>0)return d(g);switch(J){case 0:return F(g);case 1:break;case 2:return U(g);default:return K(g)}}}break;case 2:for(;;){z(g,28);var s0=x3(h(g));if(2>>0)return d(g);switch(s0){case 0:return P(g);case 1:break;default:return O(g)}}break;default:for(;;){z(g,28);var _0=Xc(h(g));if(3<_0>>>0)return d(g);switch(_0){case 0:return P(g);case 1:break;case 2:return U(g);default:return O(g)}}}}function Q(g){z(g,34);var G=PB(h(g));if(3>>0)return d(g);switch(G){case 0:return e(g);case 1:x:for(;;){z(g,34);var H=ga(h(g));if(4>>0)return d(g);switch(H){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var l0=ga(h(g));if(4>>0)return d(g);switch(l0){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}}break;case 2:return V(g);default:return u(g)}}function $(g){return qh(h(g))===0&&Fh(h(g))===0&&XB(h(g))===0&&OB(h(g))===0&&CB(h(g))===0&&Rh(h(g))===0&&Wl(h(g))===0&&qh(h(g))===0&&wa(h(g))===0&&eO(h(g))===0&&Mo(h(g))===0?3:d(g)}function x0(g){return z(g,3),YB(h(g))===0?3:d(g)}function e0(g){var G=Hb0(h(g));if(36>>0)return d(g);switch(G){case 0:return 98;case 1:return 99;case 2:if(z(g,1),qc(h(g))!==0)return d(g);for(;;)if(z(g,1),qc(h(g))!==0)return d(g);break;case 3:return 0;case 4:return z(g,0),ae(h(g))===0?0:d(g);case 5:return z(g,88),en(h(g))===0?(z(g,58),en(h(g))===0?54:d(g)):d(g);case 6:return 7;case 7:z(g,95);var H=h(g),l0=32>>0)return d(g);switch(_0){case 0:return z(g,83),en(h(g))===0?70:d(g);case 1:return 4;default:return 69}case 14:z(g,80);var y0=h(g),J0=42>>0)return d(g);switch(gr){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var Zx=ga(h(g));if(4>>0)return d(g);switch(Zx){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}}break;case 18:z(g,93);var er=NB(h(g));if(2>>0)return d(g);switch(er){case 0:z(g,2);var Fr=jh(h(g));if(2>>0)return d(g);switch(Fr){case 0:for(;;){var hx=jh(h(g));if(2>>0)return d(g);switch(hx){case 0:break;case 1:return x0(g);default:return $(g)}}break;case 1:return x0(g);default:return $(g)}break;case 1:return 5;default:return 92}break;case 19:z(g,34);var z1=RB(h(g));if(8>>0)return d(g);switch(z1){case 0:return e(g);case 1:return Q(g);case 2:x:{r:for(;;){z(g,20);var Ks=BB(h(g));if(4>>0)return d(g);switch(Ks){case 0:return C(g);case 1:return i(g);case 2:break;case 3:break x;default:break r}}z(g,19);var un=D2(h(g));if(un!==0)return un===1?C(g):d(g);for(;;)if(z(g,19),or(h(g))!==0)return d(g)}x:for(;;){z(g,18);var fn=Ih(h(g));if(3>>0)return d(g);switch(fn){case 0:return j(g);case 1:return i(g);case 2:break;default:break x}}z(g,17);var Go=D2(h(g));if(Go!==0)return Go===1?j(g):d(g);for(;;)if(z(g,17),or(h(g))!==0)return d(g);break;case 3:x:for(;;){z(g,18);var Wo=Ih(h(g));if(3>>0)return d(g);switch(Wo){case 0:return E(g);case 1:return i(g);case 2:break;default:break x}}z(g,17);var $o=D2(h(g));if($o!==0)return $o===1?E(g):d(g);for(;;)if(z(g,17),or(h(g))!==0)return d(g);break;case 4:z(g,33);var Na=DB(h(g));if(Na===0)return e(g);if(Na!==1)return d(g);x:{r:for(;;){z(g,12);var Ho=Kh(h(g));if(3>>0)return d(g);switch(Ho){case 0:return S(g);case 1:break;case 2:break x;default:break r}}z(g,10);var st=D2(h(g));if(st!==0)return st===1?S(g):d(g);for(;;)if(z(g,9),or(h(g))!==0)return d(g)}x:for(;;){if(Bc(h(g))!==0)return d(g);r:for(;;){z(g,12);var Ys=Kh(h(g));if(3>>0)return d(g);switch(Ys){case 0:return y(g);case 1:break;case 2:break r;default:break x}}}z(g,10);var Oa=D2(h(g));if(Oa!==0)return Oa===1?y(g):d(g);for(;;)if(z(g,9),or(h(g))!==0)return d(g);break;case 5:return V(g);case 6:z(g,33);var Ca=FB(h(g));if(Ca===0)return e(g);if(Ca!==1)return d(g);x:{r:for(;;){z(g,16);var at=Xh(h(g));if(3>>0)return d(g);switch(at){case 0:return _(g);case 1:break;case 2:break x;default:break r}}z(g,14);var Gc=D2(h(g));if(Gc!==0)return Gc===1?_(g):d(g);for(;;)if(z(g,13),or(h(g))!==0)return d(g)}x:for(;;){if(X1(h(g))!==0)return d(g);r:for(;;){z(g,16);var _r=Xh(h(g));if(3<_r>>>0)return d(g);switch(_r){case 0:return p(g);case 1:break;case 2:break r;default:break x}}}z(g,14);var Da=D2(h(g));if(Da!==0)return Da===1?p(g):d(g);for(;;)if(z(g,13),or(h(g))!==0)return d(g);break;case 7:z(g,33);var Ra=AB(h(g));if(Ra===0)return e(g);if(Ra!==1)return d(g);x:{r:for(;;){z(g,24);var Qo=Yh(h(g));if(3>>0)return d(g);switch(Qo){case 0:return a(g);case 1:break;case 2:break x;default:break r}}z(g,22);var Fa=D2(h(g));if(Fa!==0)return Fa===1?a(g):d(g);for(;;)if(z(g,21),or(h(g))!==0)return d(g)}x:for(;;){if(Ir(h(g))!==0)return d(g);r:for(;;){z(g,24);var zs=Yh(h(g));if(3>>0)return d(g);switch(zs){case 0:return v(g);case 1:break;case 2:break r;default:break x}}}z(g,22);var La=D2(h(g));if(La!==0)return La===1?v(g):d(g);for(;;)if(z(g,21),or(h(g))!==0)return d(g);break;default:return t(g)}break;case 20:z(g,34);var Vs=Nh(h(g));if(5>>0)return d(g);switch(Vs){case 0:return e(g);case 1:return Q(g);case 2:for(;;){z(g,34);var ot=Nh(h(g));if(5>>0)return d(g);switch(ot){case 0:return e(g);case 1:return Q(g);case 2:break;case 3:return V(g);case 4:return c(g);default:return t(g)}}break;case 3:return V(g);case 4:return c(g);default:return t(g)}break;case 21:return 46;case 22:return 44;case 23:z(g,78);var K2=h(g),Wc=59>>0)return gx(yc0);var c0=Z;if(50>c0)switch(c0){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var d0=h1(x,r),n0=Qr(Yr),P0=Uo(x,n0,r),h0=P0[1];return[1,h0,jt(h0,d0,P0[2],n0,1)];case 3:var g0=Ox(r);if(!x[5]){var v0=h1(x,r),p0=Qr(Yr);ar(p0,k1(g0,2,Nx(g0)-2|0));var w0=Uo(x,p0,r),T0=w0[1];return[1,T0,jt(T0,v0,w0[2],p0,1)]}var E0=x[4]?WB(x,zr(x,r),g0):x,N0=_h(1,E0),X0=hh(r);return Sr(Vl(r,X0-1|0,1),Ao)&&I(Vl(r,X0-2|0,1),Ao)?[0,N0,86]:[2,N0];case 4:if(x[4])return[2,_h(0,x)];Zv(r),kr(r);var A0=jB(h(r))===0?0:d(r);return A0===0?[0,x,z2]:gx(gc0);case 5:var rx=h1(x,r),B=Qr(Yr),G0=t3(x,B,r),W0=G0[1];return[1,W0,jt(W0,rx,G0[2],B,0)];case 6:if(r[6]!==0)return[0,x,_c0];var Y0=h1(x,r),V0=Qr(Yr),ex=t3(x,V0,r),Q0=ex[1],S0=[0,Q0[1],Y0,ex[2]];return[0,Q0,[6,S0,R2(V0)]];case 7:var q0=Ox(r),yx=h1(x,r),cx=Qr(Yr),Dx=Qr(Yr);ar(Dx,q0);var Ix=xX(x,q0,cx,Dx,0,r),Xx=Ix[1],Z0=Ix[3],rr=[0,Xx[1],yx,Ix[2]],xr=R2(Dx);return[0,Xx,[2,[0,rr,R2(cx),xr,Z0]]];case 8:var fr=Qr(Yr),Hx=Qr(Yr),Y=h1(x,r),jx=rX(x,fr,Hx,r),hr=jx[1],Yx=jx[2],Ur=oe(hr,r),px=[0,hr[1],Y,Ur],w=R2(Hx);return[0,hr,[3,[0,px,R2(fr),w,1,Yx]]];case 9:return A2(x,r,function(g,G){kr(G);x:if(se(h(G))===0&&Ch(h(G))===0&&Bc(h(G))===0){r:for(;;){var H=Sh(h(G));if(2>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(Bc(h(G))===0){e:for(;;){var l0=Sh(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,0,Ox(G)]]:gx(dc0)});case 10:return[0,x,[1,0,Ox(r)]];case 11:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&Ch(h(G))===0&&Bc(h(G))===0){for(;;){z(G,0);var H=Eh(h(G));if(H!==0)break}if(H===1)for(;;){if(Bc(h(G))===0){for(;;){z(G,0);var l0=Eh(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,0,Ox(G)]]:gx(hc0)});case 12:return[0,x,[0,0,Ox(r)]];case 13:return A2(x,r,function(g,G){kr(G);x:if(se(h(G))===0&&Mh(h(G))===0&&X1(h(G))===0){r:for(;;){var H=Oh(h(G));if(2>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(X1(h(G))===0){e:for(;;){var l0=Oh(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,1,Ox(G)]]:gx(mc0)});case 14:return[0,x,[1,1,Ox(r)]];case 15:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&Mh(h(G))===0&&X1(h(G))===0){for(;;){z(G,0);var H=Ph(h(G));if(H!==0)break}if(H===1)for(;;){if(X1(h(G))===0){for(;;){z(G,0);var l0=Ph(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,3,Ox(G)]]:gx(kc0)});case 16:return[0,x,[0,3,Ox(r)]];case 17:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0){for(;;){var H=h(G),l0=47>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(Ir(h(G))===0){e:for(;;){var l0=Ah(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,2,Ox(G)]]:gx(vc0)});case 22:return[0,x,[1,2,Ox(r)]];case 23:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&wh(h(G))===0&&Ir(h(G))===0){for(;;){z(G,0);var H=Bh(h(G));if(H!==0)break}if(H===1)for(;;){if(Ir(h(G))===0){for(;;){z(G,0);var l0=Bh(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,4,Ox(G)]]:gx(oc0)});case 24:return[0,x,[0,4,Ox(r)]];case 25:return A2(x,r,function(g,G){function H(er){for(;;){var Fr=At(h(er));if(2>>0)return d(er);switch(Fr){case 0:break;case 1:for(;;){if(mr(h(er))!==0)return d(er);x:for(;;){var hx=At(h(er));if(2>>0)return d(er);switch(hx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function l0(er){for(;;){var Fr=r3(h(er));if(Fr!==0)return Fr===1?0:d(er)}}function J(er){var Fr=zh(h(er));if(2>>0)return d(er);switch(Fr){case 0:var hx=ya(h(er));return hx===0?l0(er):hx===1?H(er):d(er);case 1:return l0(er);default:return H(er)}}function s0(er){var Fr=Uh(h(er));if(Fr!==0)return Fr===1?J(er):d(er);x:for(;;){var hx=Z1(h(er));if(2>>0)return d(er);switch(hx){case 0:break;case 1:return J(er);default:break x}}for(;;){if(mr(h(er))!==0)return d(er);x:for(;;){var z1=Z1(h(er));if(2>>0)return d(er);switch(z1){case 0:break;case 1:return J(er);default:break x}}}}kr(G);var _0=da(h(G));if(2<_0>>>0)var y0=d(G);else x:switch(_0){case 0:if(mr(h(G))===0){r:for(;;){var J0=Z1(h(G));if(2>>0){var y0=d(G);break x}switch(J0){case 0:break;case 1:var y0=J(G);break x;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var Rx=Z1(h(G));if(2>>0){var kx=d(G);break r}switch(Rx){case 0:break;case 1:var kx=J(G);break r;default:break e}}continue}var kx=d(G)}var y0=kx;break}}else var y0=d(G);break;case 1:var Jx=Th(h(G)),y0=Jx===0?s0(G):Jx===1?J(G):d(G);break;default:r:for(;;){var gr=Lh(h(G));if(2>>0){var y0=d(G);break}switch(gr){case 0:var y0=s0(G);break r;case 1:break;default:var y0=J(G);break r}}}if(y0!==0)return gx(ac0);var Zx=d1(g,zr(g,G),43);return[0,Zx,[1,2,Ox(G)]]});case 26:var L=d1(x,zr(x,r),43);return[0,L,[1,2,Ox(r)]];case 27:return A2(x,r,function(g,G){function H(Zx){for(;;){z(Zx,0);var er=_a(h(Zx));if(er!==0){if(er!==1)return d(Zx);for(;;){if(mr(h(Zx))!==0)return d(Zx);for(;;){z(Zx,0);var Fr=_a(h(Zx));if(Fr!==0)break}if(Fr!==1)return d(Zx)}}}}function l0(Zx){for(;;)if(z(Zx,0),mr(h(Zx))!==0)return d(Zx)}function J(Zx){var er=zh(h(Zx));if(2>>0)return d(Zx);switch(er){case 0:var Fr=ya(h(Zx));return Fr===0?l0(Zx):Fr===1?H(Zx):d(Zx);case 1:return l0(Zx);default:return H(Zx)}}function s0(Zx){var er=Uh(h(Zx));if(er!==0)return er===1?J(Zx):d(Zx);x:for(;;){var Fr=Z1(h(Zx));if(2>>0)return d(Zx);switch(Fr){case 0:break;case 1:return J(Zx);default:break x}}for(;;){if(mr(h(Zx))!==0)return d(Zx);x:for(;;){var hx=Z1(h(Zx));if(2>>0)return d(Zx);switch(hx){case 0:break;case 1:return J(Zx);default:break x}}}}kr(G);var _0=da(h(G));if(2<_0>>>0)var y0=d(G);else x:switch(_0){case 0:if(mr(h(G))===0){r:for(;;){var J0=Z1(h(G));if(2>>0){var y0=d(G);break x}switch(J0){case 0:break;case 1:var y0=J(G);break x;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var Rx=Z1(h(G));if(2>>0){var kx=d(G);break r}switch(Rx){case 0:break;case 1:var kx=J(G);break r;default:break e}}continue}var kx=d(G)}var y0=kx;break}}else var y0=d(G);break;case 1:var Jx=Th(h(G)),y0=Jx===0?s0(G):Jx===1?J(G):d(G);break;default:r:for(;;){var gr=Lh(h(G));if(2>>0){var y0=d(G);break}switch(gr){case 0:var y0=s0(G);break r;case 1:break;default:var y0=J(G);break r}}}return y0===0?[0,g,[0,4,Ox(G)]]:gx(sc0)});case 28:return[0,x,[0,4,Ox(r)]];case 29:return A2(x,r,function(g,G){function H(Jx){for(;;){var gr=At(h(Jx));if(2>>0)return d(Jx);switch(gr){case 0:break;case 1:for(;;){if(mr(h(Jx))!==0)return d(Jx);x:for(;;){var Zx=At(h(Jx));if(2>>0)return d(Jx);switch(Zx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function l0(Jx){var gr=r3(h(Jx));return gr===0?H(Jx):gr===1?0:d(Jx)}kr(G);var J=da(h(G));if(2>>0)var s0=d(G);else x:switch(J){case 0:var s0=mr(h(G))===0?H(G):d(G);break;case 1:for(;;){var _0=e3(h(G));if(_0===0){var s0=l0(G);break}if(_0!==1){var s0=d(G);break}}break;default:r:for(;;){var y0=ba(h(G));if(2>>0){var s0=d(G);break x}switch(y0){case 0:var s0=l0(G);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var J0=ba(h(G));if(2>>0){var Rx=d(G);break r}switch(J0){case 0:var Rx=l0(G);break r;case 1:break;default:break e}}continue}var Rx=d(G)}var s0=Rx;break}}if(s0!==0)return gx(cc0);var kx=d1(g,zr(g,G),35);return[0,kx,[1,2,Ox(G)]]});case 30:return A2(x,r,function(g,G){kr(G);var H=ya(h(G));x:if(H===0)for(;;){var l0=r3(h(G));if(l0!==0){if(l0===1){var y0=0;break}var y0=d(G);break}}else if(H===1){r:for(;;){var J=At(h(G));if(2>>0){var y0=d(G);break x}switch(J){case 0:break;case 1:break r;default:var y0=0;break x}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var s0=At(h(G));if(2>>0){var _0=d(G);break r}switch(s0){case 0:break;case 1:break e;default:var _0=0;break r}}continue}var _0=d(G)}var y0=_0;break}}else var y0=d(G);return y0===0?[0,g,[1,2,Ox(G)]]:gx(fc0)});case 31:var L0=d1(x,zr(x,r),35);return[0,L0,[1,2,Ox(r)]];case 32:return[0,x,[1,2,Ox(r)]];case 33:return A2(x,r,function(g,G){function H(kx){for(;;){z(kx,0);var Jx=_a(h(kx));if(Jx!==0){if(Jx!==1)return d(kx);for(;;){if(mr(h(kx))!==0)return d(kx);for(;;){z(kx,0);var gr=_a(h(kx));if(gr!==0)break}if(gr!==1)return d(kx)}}}}function l0(kx){return z(kx,0),mr(h(kx))===0?H(kx):d(kx)}kr(G);var J=da(h(G));if(2>>0)var s0=d(G);else x:switch(J){case 0:var s0=mr(h(G))===0?H(G):d(G);break;case 1:for(;;){z(G,0);var _0=e3(h(G));if(_0===0){var s0=l0(G);break}if(_0!==1){var s0=d(G);break}}break;default:r:for(;;){z(G,0);var y0=ba(h(G));if(2>>0){var s0=d(G);break x}switch(y0){case 0:var s0=l0(G);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){z(G,0);var J0=ba(h(G));if(2>>0){var Rx=d(G);break r}switch(J0){case 0:var Rx=l0(G);break r;case 1:break;default:break e}}continue}var Rx=d(G)}var s0=Rx;break}}return s0===0?[0,g,[0,4,Ox(G)]]:gx(ic0)});case 34:return[0,x,[0,4,Ox(r)]];case 35:var sx=zr(x,r),lx=Ox(r);return[0,x,[4,sx,lx,lx]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:Zv(r),kr(r);var ax=h(r),Vx=62=qr)return[0,x,18];var Ex=ix(M0,jv);if(0<=Ex){if(0>=Ex)return[0,x,51];var $0=ix(M0,ss);if(0<=$0){if(0>=$0)return[0,x,46];if(!I(M0,al))return[0,x,24];if(!I(M0,ps))return[0,x,47];if(!I(M0,Y4))return[0,x,25];if(!I(M0,y4))return[0,x,26];if(!I(M0,M1))return[0,x,58]}else{if(!I(M0,Pe))return[0,x,20];if(!I(M0,uo))return[0,x,21];if(!I(M0,je))return[0,x,22];if(!I(M0,as))return[0,x,31];if(!I(M0,lm))return[0,x,23];if(!I(M0,qu))return[0,x,61]}}else{var Gx=ix(M0,ek);if(0<=Gx){if(0>=Gx)return[0,x,54];if(!I(M0,_l))return[0,x,55];if(!I(M0,z3))return[0,x,56];if(!I(M0,U3))return[0,x,57];if(!I(M0,Se))return[0,x,19];if(!I(M0,Ae))return[0,x,42]}else{if(!I(M0,W1))return[0,x,53];if(!I(M0,mv))return[0,x,28];if(!I(M0,no))return[0,x,44];if(!I(M0,oo))return[0,x,29];if(!I(M0,W9))return[0,x,63];if(!I(M0,U9))return[0,x,62]}}}else{var j0=ix(M0,xm);if(0<=j0){if(0>=j0)return[0,x,37];var cr=ix(M0,Sk);if(0<=cr){if(0>=cr)return[0,x,39];if(!I(M0,pv))return[0,x,15];if(!I(M0,ik))return[0,x,16];if(!I(M0,lo))return[0,x,52];if(!I(M0,R1))return[0,x,50];if(!I(M0,aa))return[0,x,17]}else{if(!I(M0,B4))return[0,x,43];if(!I(M0,sl))return[0,x,48];if(!I(M0,ok))return[0,x,49];if(!I(M0,hc))return[0,x,41];if(!I(M0,ls))return[0,x,30];if(!I(M0,F4))return[0,x,38]}}else{var tx=ix(M0,ul);if(0<=tx){if(0>=tx)return[0,x,27];if(!I(M0,_e))return[0,x,35];if(!I(M0,we))return[0,x,59];if(!I(M0,H3))return[0,x,60];if(!I(M0,io))return[0,x,36];if(!I(M0,nl))return[0,x,45]}else{if(!I(M0,oa))return[0,x,64];if(!I(M0,_o))return[0,x,65];if(!I(M0,Ee))return[0,x,32];if(!I(M0,$4))return[0,x,33];if(!I(M0,x8))return[0,x,34];if(!I(M0,K3))return[0,x,40]}}}var Mx=i2(r),b2=QB(x,Mx),Ux=b2[2],c1=b2[1];return[0,c1,[4,Lx,Ux,Gl(Mx)]];case 98:var Rr=x[4]?d1(x,zr(x,r),91):x;return[0,Rr,Dr];default:var U2=ft(x,zr(x,r));return[0,U2,[7,Ox(r)]]}}function rw0(x,r,e){for(var t=x;;){kr(e);var u=h(e),i=92>>0)var c=d(e);else switch(i){case 0:var c=0;break;case 1:for(;;){z(e,7);var v=h(e),a=-1>>0)var c=d(e);else switch(_){case 0:var c=2;break;case 1:var c=1;break;default:z(e,1);var c=ae(h(e))===0?1:d(e)}}if(7>>0)return gx(Mt0);switch(c){case 0:return[0,d1(t,zr(t,e),Ni),Ut0];case 1:return[0,J1(d1(t,zr(t,e),Ni),e),qt0];case 2:ar(r,Ox(e));break;case 3:var y=Ox(e);return[0,t,k1(y,1,Nx(y)-1|0)];case 4:return[0,t,Bt0];case 5:ut(r,91);x:{r:{e:{t:{n:for(;;){kr(e);var S=h(e),E=93>>0)var j=d(e);else switch(E){case 0:var j=0;break;case 1:for(;;){z(e,5);var C=h(e),P=-1>>0)break r;switch(j){case 0:break e;case 1:ar(r,Lt0);break;case 2:ut(r,92),ut(r,93);break;case 3:break t;case 4:break n;default:ar(r,Ox(e))}}var K=J1(d1(t,zr(t,e),Ni),e);break x}ut(r,93);var K=t;break x}var K=t;break x}var K=gx(Ft0)}var t=K;break;case 6:return[0,J1(d1(t,zr(t,e),Ni),e),Xt0];default:ar(r,Ox(e))}}}function ew0(x,r){kr(r);var e=h(r),t=Eo>>0)var u=d(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(z(r,2),qc(h(r))===0){for(;z(r,2),qc(h(r))===0;);var u=d(r)}else var u=d(r);break;case 3:var u=1;break;case 4:z(r,1);var u=ae(h(r))===0?1:d(r);break;default:z(r,5);var i=Jh(h(r)),u=i===0?4:i===1?3:d(r)}if(6>>0)return gx(uc0);switch(u){case 0:return[0,x,Dr];case 1:return[2,J1(x,r)];case 2:return[2,x];case 3:var c=h1(x,r),v=Qr(Yr),a=t3(x,v,r),p=a[1];return[1,p,jt(p,c,a[2],v,0)];case 4:var _=h1(x,r),y=Qr(Yr),S=Uo(x,y,r),E=S[1];return[1,E,jt(E,_,S[2],y,1)];case 5:var j=h1(x,r),C=Qr(Yr),P=rw0(x,C,r),O=P[1],F=P[2],K=oe(O,r),U=[0,O[1],j,K];return[0,O,[5,U,R2(C),F]];default:var V=ft(x,zr(x,r));return[0,V,[7,Ox(r)]]}}function eX(x){var r=ix(x,"iexcl");if(0<=r){if(0>=r)return nc0;var e=ix(x,"prime");if(0<=e){if(0>=e)return tc0;var t=ix(x,"sup1");if(0<=t){if(0>=t)return ec0;var u=ix(x,"uarr");if(0<=u){if(0>=u)return rc0;var i=ix(x,"xi");if(0<=i){if(0>=i)return xc0;if(!I(x,"yacute"))return Zf0;if(!I(x,"yen"))return Qf0;if(!I(x,"yuml"))return Hf0;if(!I(x,"zeta"))return $f0;if(!I(x,"zwj"))return Wf0;if(!I(x,"zwnj"))return Gf0}else{if(!I(x,"ucirc"))return Vf0;if(!I(x,"ugrave"))return zf0;if(!I(x,"uml"))return Yf0;if(!I(x,"upsih"))return Kf0;if(!I(x,"upsilon"))return Jf0;if(!I(x,"uuml"))return Xf0;if(!I(x,"weierp"))return Bf0}}else{var c=ix(x,"thetasym");if(0<=c){if(0>=c)return qf0;if(!I(x,"thinsp"))return Uf0;if(!I(x,"thorn"))return Mf0;if(!I(x,"tilde"))return Lf0;if(!I(x,"times"))return Ff0;if(!I(x,"trade"))return Rf0;if(!I(x,"uArr"))return Df0;if(!I(x,"uacute"))return Cf0}else{if(!I(x,"sup2"))return Of0;if(!I(x,"sup3"))return Nf0;if(!I(x,"supe"))return Pf0;if(!I(x,"szlig"))return jf0;if(!I(x,"tau"))return If0;if(!I(x,"there4"))return Af0;if(!I(x,"theta"))return Sf0}}}else{var v=ix(x,"rlm");if(0<=v){if(0>=v)return Ef0;var a=ix(x,"sigma");if(0<=a){if(0>=a)return Tf0;if(!I(x,"sigmaf"))return wf0;if(!I(x,"sim"))return bf0;if(!I(x,"spades"))return _f0;if(!I(x,"sub"))return gf0;if(!I(x,"sube"))return yf0;if(!I(x,"sum"))return df0;if(!I(x,"sup"))return hf0}else{if(!I(x,"rsaquo"))return mf0;if(!I(x,"rsquo"))return kf0;if(!I(x,"sbquo"))return pf0;if(!I(x,"scaron"))return lf0;if(!I(x,"sdot"))return vf0;if(!I(x,"sect"))return of0;if(!I(x,"shy"))return af0}}else{var p=ix(x,"raquo");if(0<=p){if(0>=p)return sf0;if(!I(x,"rarr"))return cf0;if(!I(x,"rceil"))return ff0;if(!I(x,"rdquo"))return if0;if(!I(x,"real"))return uf0;if(!I(x,"reg"))return nf0;if(!I(x,"rfloor"))return tf0;if(!I(x,"rho"))return ef0}else{if(!I(x,"prod"))return rf0;if(!I(x,"prop"))return xf0;if(!I(x,"psi"))return Zi0;if(!I(x,"quot"))return Qi0;if(!I(x,"rArr"))return Hi0;if(!I(x,"radic"))return $i0;if(!I(x,"rang"))return Wi0}}}}else{var _=ix(x,"ndash");if(0<=_){if(0>=_)return Gi0;var y=ix(x,"or");if(0<=y){if(0>=y)return Vi0;var S=ix(x,"part");if(0<=S){if(0>=S)return zi0;if(!I(x,"permil"))return Yi0;if(!I(x,"perp"))return Ki0;if(!I(x,"phi"))return Ji0;if(!I(x,"pi"))return Xi0;if(!I(x,"piv"))return Bi0;if(!I(x,"plusmn"))return qi0;if(!I(x,"pound"))return Ui0}else{if(!I(x,"ordf"))return Mi0;if(!I(x,"ordm"))return Li0;if(!I(x,"oslash"))return Fi0;if(!I(x,"otilde"))return Ri0;if(!I(x,"otimes"))return Di0;if(!I(x,"ouml"))return Ci0;if(!I(x,"para"))return Oi0}}else{var E=ix(x,"oacute");if(0<=E){if(0>=E)return Ni0;if(!I(x,"ocirc"))return Pi0;if(!I(x,"oelig"))return ji0;if(!I(x,"ograve"))return Ii0;if(!I(x,"oline"))return Ai0;if(!I(x,"omega"))return Si0;if(!I(x,"omicron"))return Ei0;if(!I(x,"oplus"))return Ti0}else{if(!I(x,"ne"))return wi0;if(!I(x,"ni"))return bi0;if(!I(x,"not"))return _i0;if(!I(x,"notin"))return gi0;if(!I(x,"nsub"))return yi0;if(!I(x,"ntilde"))return di0;if(!I(x,"nu"))return hi0}}}else{var j=ix(x,"le");if(0<=j){if(0>=j)return mi0;var C=ix(x,"macr");if(0<=C){if(0>=C)return ki0;if(!I(x,"mdash"))return pi0;if(!I(x,"micro"))return li0;if(!I(x,"middot"))return vi0;if(!I(x,CR))return oi0;if(!I(x,"mu"))return ai0;if(!I(x,"nabla"))return si0;if(!I(x,"nbsp"))return ci0}else{if(!I(x,"lfloor"))return fi0;if(!I(x,"lowast"))return ii0;if(!I(x,"loz"))return ui0;if(!I(x,"lrm"))return ni0;if(!I(x,"lsaquo"))return ti0;if(!I(x,"lsquo"))return ei0;if(!I(x,"lt"))return ri0}}else{var P=ix(x,"kappa");if(0<=P){if(0>=P)return xi0;if(!I(x,"lArr"))return Zu0;if(!I(x,"lambda"))return Qu0;if(!I(x,"lang"))return Hu0;if(!I(x,"laquo"))return $u0;if(!I(x,"larr"))return Wu0;if(!I(x,"lceil"))return Gu0;if(!I(x,"ldquo"))return Vu0}else{if(!I(x,"igrave"))return zu0;if(!I(x,"image"))return Yu0;if(!I(x,"infin"))return Ku0;if(!I(x,"iota"))return Ju0;if(!I(x,"iquest"))return Xu0;if(!I(x,"isin"))return Bu0;if(!I(x,"iuml"))return qu0}}}}}else{var O=ix(x,"aelig");if(0<=O){if(0>=O)return Uu0;var F=ix(x,"delta");if(0<=F){if(0>=F)return Mu0;var K=ix(x,"fnof");if(0<=K){if(0>=K)return Lu0;var U=ix(x,"gt");if(0<=U){if(0>=U)return Fu0;if(!I(x,"hArr"))return Ru0;if(!I(x,"harr"))return Du0;if(!I(x,"hearts"))return Cu0;if(!I(x,"hellip"))return Ou0;if(!I(x,"iacute"))return Nu0;if(!I(x,"icirc"))return Pu0}else{if(!I(x,"forall"))return ju0;if(!I(x,"frac12"))return Iu0;if(!I(x,"frac14"))return Au0;if(!I(x,"frac34"))return Su0;if(!I(x,"frasl"))return Eu0;if(!I(x,"gamma"))return Tu0;if(!I(x,"ge"))return wu0}}else{var V=ix(x,"ensp");if(0<=V){if(0>=V)return bu0;if(!I(x,"epsilon"))return _u0;if(!I(x,"equiv"))return gu0;if(!I(x,"eta"))return yu0;if(!I(x,"eth"))return du0;if(!I(x,"euml"))return hu0;if(!I(x,"euro"))return mu0;if(!I(x,"exist"))return ku0}else{if(!I(x,"diams"))return pu0;if(!I(x,"divide"))return lu0;if(!I(x,"eacute"))return vu0;if(!I(x,"ecirc"))return ou0;if(!I(x,"egrave"))return au0;if(!I(x,ie))return su0;if(!I(x,"emsp"))return cu0}}}else{var Q=ix(x,"cap");if(0<=Q){if(0>=Q)return fu0;var $=ix(x,"copy");if(0<=$){if(0>=$)return iu0;if(!I(x,"crarr"))return uu0;if(!I(x,"cup"))return nu0;if(!I(x,"curren"))return tu0;if(!I(x,"dArr"))return eu0;if(!I(x,"dagger"))return ru0;if(!I(x,"darr"))return xu0;if(!I(x,"deg"))return Z70}else{if(!I(x,"ccedil"))return Q70;if(!I(x,"cedil"))return H70;if(!I(x,"cent"))return $70;if(!I(x,"chi"))return W70;if(!I(x,"circ"))return G70;if(!I(x,"clubs"))return V70;if(!I(x,"cong"))return z70}}else{var x0=ix(x,"aring");if(0<=x0){if(0>=x0)return Y70;if(!I(x,"asymp"))return K70;if(!I(x,"atilde"))return J70;if(!I(x,"auml"))return X70;if(!I(x,"bdquo"))return B70;if(!I(x,"beta"))return q70;if(!I(x,"brvbar"))return U70;if(!I(x,"bull"))return M70}else{if(!I(x,"agrave"))return L70;if(!I(x,"alefsym"))return F70;if(!I(x,"alpha"))return R70;if(!I(x,"amp"))return D70;if(!I(x,"and"))return C70;if(!I(x,"ang"))return O70;if(!I(x,"apos"))return N70}}}}else{var e0=ix(x,"Nu");if(0<=e0){if(0>=e0)return P70;var Z=ix(x,"Sigma");if(0<=Z){if(0>=Z)return j70;var c0=ix(x,"Uuml");if(0<=c0){if(0>=c0)return I70;if(!I(x,"Xi"))return A70;if(!I(x,"Yacute"))return S70;if(!I(x,"Yuml"))return E70;if(!I(x,"Zeta"))return T70;if(!I(x,"aacute"))return w70;if(!I(x,"acirc"))return b70;if(!I(x,"acute"))return _70}else{if(!I(x,"THORN"))return g70;if(!I(x,"Tau"))return y70;if(!I(x,"Theta"))return d70;if(!I(x,"Uacute"))return h70;if(!I(x,"Ucirc"))return m70;if(!I(x,"Ugrave"))return k70;if(!I(x,"Upsilon"))return p70}}else{var d0=ix(x,"Otilde");if(0<=d0){if(0>=d0)return l70;if(!I(x,"Ouml"))return v70;if(!I(x,"Phi"))return o70;if(!I(x,"Pi"))return a70;if(!I(x,"Prime"))return s70;if(!I(x,"Psi"))return c70;if(!I(x,"Rho"))return f70;if(!I(x,"Scaron"))return i70}else{if(!I(x,"OElig"))return u70;if(!I(x,"Oacute"))return n70;if(!I(x,"Ocirc"))return t70;if(!I(x,"Ograve"))return e70;if(!I(x,"Omega"))return r70;if(!I(x,"Omicron"))return x70;if(!I(x,"Oslash"))return Zn0}}}else{var n0=ix(x,"Eacute");if(0<=n0){if(0>=n0)return Qn0;var P0=ix(x,"Icirc");if(0<=P0){if(0>=P0)return Hn0;if(!I(x,"Igrave"))return $n0;if(!I(x,"Iota"))return Wn0;if(!I(x,"Iuml"))return Gn0;if(!I(x,"Kappa"))return Vn0;if(!I(x,"Lambda"))return zn0;if(!I(x,"Mu"))return Yn0;if(!I(x,"Ntilde"))return Kn0}else{if(!I(x,"Ecirc"))return Jn0;if(!I(x,"Egrave"))return Xn0;if(!I(x,"Epsilon"))return Bn0;if(!I(x,"Eta"))return qn0;if(!I(x,"Euml"))return Un0;if(!I(x,"Gamma"))return Mn0;if(!I(x,"Iacute"))return Ln0}}else{var h0=ix(x,"Atilde");if(0<=h0){if(0>=h0)return Fn0;if(!I(x,"Auml"))return Rn0;if(!I(x,"Beta"))return Dn0;if(!I(x,"Ccedil"))return Cn0;if(!I(x,"Chi"))return On0;if(!I(x,"Dagger"))return Nn0;if(!I(x,"Delta"))return Pn0;if(!I(x,"ETH"))return jn0}else{if(!I(x,"'int'"))return In0;if(!I(x,"AElig"))return An0;if(!I(x,"Aacute"))return Sn0;if(!I(x,"Acirc"))return En0;if(!I(x,"Agrave"))return Tn0;if(!I(x,"Alpha"))return wn0;if(!I(x,"Aring"))return bn0}}}}}return 0}function tX(x,r,e,t){for(var u=x;;){var i=function(d0){for(;;)if(z(d0,8),ZN(h(d0))!==0)return d(d0)};kr(t);var c=h(t),v=ms>>0)var a=d(t);else switch(v){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:z(t,4);var a=ae(h(t))===0?4:d(t);break;case 4:z(t,8);var p=zB(h(t));if(p===0){var _=EB(h(t));if(_===0){for(;;){var y=SB(h(t));if(y!==0)break}var a=y===1?6:d(t)}else if(_===1&&Ir(h(t))===0){for(;;){var S=JB(h(t));if(S!==0)break}var a=S===1?5:d(t)}else var a=d(t)}else if(p===1&&or(h(t))===0){var E=It(h(t));if(E===0){var j=It(h(t));if(j===0){var C=It(h(t));if(C===0){var P=It(h(t));if(P===0){var O=It(h(t));if(O===0)var F=It(h(t)),a=F===0?UB(h(t))===0?7:d(t):F===1?7:d(t);else var a=O===1?7:d(t)}else var a=P===1?7:d(t)}else var a=C===1?7:d(t)}else var a=j===1?7:d(t)}else var a=E===1?7:d(t)}else var a=d(t);break;case 5:var a=0;break;case 6:z(t,1);var a=ZN(h(t))===0?i(t):d(t);break;default:z(t,2);var a=ZN(h(t))===0?i(t):d(t)}if(8>>0)return gx(Jt0);switch(a){case 0:return Zv(t),u;case 1:return tO(u,zr(u,t),Yt0,Kt0);case 2:return tO(u,zr(u,t),Vt0,zt0);case 3:return ft(u,zr(u,t));case 4:var K=Ox(t);ar(e,K),ar(r,K);var u=J1(u,t);break;case 5:var U=Ox(t),V=k1(U,3,Nx(U)-4|0);ar(e,U),Mc(r,tt(Bx(Gt0,V)));break;case 6:var Q=Ox(t),$=k1(Q,2,Nx(Q)-3|0);ar(e,Q),Mc(r,tt($));break;case 7:var x0=Ox(t),e0=k1(x0,1,Nx(x0)-2|0);ar(e,x0);var Z=eX(e0);Z?Mc(r,Z[1]):ar(r,Bx($t0,Bx(e0,Wt0)));break;default:var c0=Ox(t);ar(e,c0),ar(r,c0)}}}function tw0(x,r){kr(r);var e=Zb0(h(r));if(14>>0)var t=d(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(z(r,2),qc(h(r))===0){for(;z(r,2),qc(h(r))===0;);var t=d(r)}else var t=d(r);break;case 3:var t=1;break;case 4:z(r,1);var t=ae(h(r))===0?1:d(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:z(r,6);var u=Jh(h(r)),t=u===0?4:u===1?3:d(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(z(r,14),wa(h(r))===0){var i=Lo(h(r));if(i===0)var t=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?13:d(r);else if(i===1&&Ir(h(r))===0){for(;;){var c=Fo(h(r));if(c!==0)break}var t=c===1?13:d(r)}else var t=d(r)}else var t=d(r);break;default:var t=8}if(14>>0)return gx(_n0);switch(t){case 0:return[0,x,Dr];case 1:return[2,J1(x,r)];case 2:return[2,x];case 3:var v=h1(x,r),a=Qr(Yr),p=t3(x,a,r),_=p[1];return[1,_,jt(_,v,p[2],a,0)];case 4:var y=h1(x,r),S=Qr(Yr),E=Uo(x,S,r),j=E[1];return[1,j,jt(j,y,E[2],S,1)];case 5:return[0,x,98];case 6:return[0,x,gt];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Ox(r),P=h1(x,r),O=Qr(Yr),F=Qr(Yr);ar(F,C);for(var K=Sr(C,"'"),U=x;;){kr(r);var V=h(r),Q=39>>0)var $=d(r);else switch(Q){case 0:var $=2;break;case 1:for(;;){z(r,7);var x0=h(r),e0=-1>>0)var T0=gx(Ht0);else switch($){case 0:if(!K){ut(F,39),ut(O,39);continue}var T0=U;break;case 1:if(K){ut(F,34),ut(O,34);continue}var T0=U;break;case 2:var T0=ft(U,zr(U,r));break;case 3:var E0=Ox(r);ar(F,E0),ar(O,E0);var U=J1(U,r);continue;case 4:var N0=Ox(r),X0=k1(N0,3,Nx(N0)-4|0);ar(F,N0),Mc(O,tt(Bx(Qt0,X0)));continue;case 5:var A0=Ox(r),rx=k1(A0,2,Nx(A0)-3|0);ar(F,A0),Mc(O,tt(rx));continue;case 6:var B=Ox(r),G0=k1(B,1,Nx(B)-2|0);ar(F,B);var W0=eX(G0);W0?Mc(O,W0[1]):ar(O,Bx(xn0,Bx(G0,Zt0)));continue;default:var Y0=Ox(r);ar(F,Y0),ar(O,Y0);continue}var V0=oe(T0,r);ar(F,C);var ex=R2(O),Q0=R2(F);return[0,T0,[10,[0,T0[1],P,V0],ex,Q0]]}case 13:for(var S0=r[6];;){kr(r);var q0=h(r),yx=r2>>0)var cx=d(r);else switch(yx){case 0:var cx=1;break;case 1:var cx=2;break;case 2:var cx=0;break;default:if(z(r,2),wa(h(r))===0){var Dx=Lo(h(r));if(Dx===0)var cx=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?0:d(r);else if(Dx===1&&Ir(h(r))===0){for(;;){var Ix=Fo(h(r));if(Ix!==0)break}var cx=Ix===1?0:d(r)}else var cx=d(r)}else var cx=d(r)}if(2>>0)throw U0([0,Ar,St0],1);switch(cx){case 0:continue;case 1:break;default:if(zN(iB(r)))continue;cB(r,1)}var Xx=r[3];qN(r,S0);var Z0=i2(r),rr=Hl(x,S0,Xx);return[0,x,[8,Gl(Z0),rr]]}default:return[0,x,[7,Ox(r)]]}}function nw0(x,r){kr(r);var e=h(r),t=-1>>0)var u=d(r);else switch(t){case 0:var u=5;break;case 1:if(z(r,1),qc(h(r))===0){for(;z(r,1),qc(h(r))===0;);var u=d(r)}else var u=d(r);break;case 2:var u=0;break;case 3:z(r,0);var u=ae(h(r))===0?0:d(r);break;case 4:z(r,5);var i=Jh(h(r)),u=i===0?3:i===1?2:d(r);break;default:var u=4}if(5>>0)return gx(hn0);switch(u){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var c=h1(x,r),v=Qr(Yr),a=t3(x,v,r),p=a[1];return[1,p,jt(p,c,a[2],v,0)];case 3:var _=h1(x,r),y=Qr(Yr),S=Uo(x,y,r),E=S[1];return[1,E,jt(E,_,S[2],y,1)];case 4:var j=h1(x,r),C=Qr(Yr),P=Qr(Yr),O=rX(x,C,P,r),F=O[1],K=O[2],U=oe(F,r),V=[0,F[1],j,U],Q=R2(P);return[0,F,[3,[0,V,R2(C),Q,0,K]]];default:var $=ft(x,zr(x,r));return[0,$,[3,[0,zr($,r),yn0,dn0,0,1]]]}}function uw0(x,r){function e(w){for(;;)if(z(w,29),or(h(w))!==0)return d(w)}function t(w){z(w,28);var L=D2(h(w));if(L!==0)return L===1?e(w):d(w);for(;;)if(z(w,26),or(h(w))!==0)return d(w)}function u(w){z(w,27);var L=D2(h(w));if(L!==0)return L===1?e(w):d(w);for(;;)if(z(w,25),or(h(w))!==0)return d(w)}function i(w){z(w,30);var L=x3(h(w));if(2>>0)return d(w);switch(L){case 0:return e(w);case 1:x:for(;;){z(w,30);var L0=Xc(h(w));if(3>>0)return d(w);switch(L0){case 0:return e(w);case 1:break;case 2:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var sx=Xc(h(w));if(3>>0)return d(w);switch(sx){case 0:return e(w);case 1:break;case 2:break x;default:return u(w)}}}break;default:return u(w)}}function c(w){for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var L=MB(h(w));if(4>>0)return d(w);switch(L){case 0:return e(w);case 1:return i(w);case 2:break;case 3:break x;default:return t(w)}}}}function v(w){for(;;)if(z(w,19),or(h(w))!==0)return d(w)}function a(w){for(;;)if(z(w,19),or(h(w))!==0)return d(w)}function p(w){for(;;)if(z(w,13),or(h(w))!==0)return d(w)}function _(w){for(;;)if(z(w,13),or(h(w))!==0)return d(w)}function y(w){for(;;)if(z(w,9),or(h(w))!==0)return d(w)}function S(w){for(;;)if(z(w,9),or(h(w))!==0)return d(w)}function E(w){for(;;)if(z(w,15),or(h(w))!==0)return d(w)}function j(w){z(w,15);var L=D2(h(w));if(L!==0)return L===1?E(w):d(w);for(;;)if(z(w,15),or(h(w))!==0)return d(w)}function C(w){for(;;)if(z(w,23),or(h(w))!==0)return d(w)}function P(w){z(w,22);var L=D2(h(w));if(L!==0)return L===1?C(w):d(w);for(;;)if(z(w,21),or(h(w))!==0)return d(w)}function O(w){for(;;)if(z(w,23),or(h(w))!==0)return d(w)}function F(w){z(w,22);var L=D2(h(w));if(L!==0)return L===1?O(w):d(w);for(;;)if(z(w,21),or(h(w))!==0)return d(w)}function K(w){for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,24);var L=Xc(h(w));if(3>>0)return d(w);switch(L){case 0:return O(w);case 1:break;case 2:break x;default:return F(w)}}}}function U(w){z(w,29);var L=qB(h(w));if(3>>0)return d(w);switch(L){case 0:return e(w);case 1:var L0=ya(h(w));if(L0===0)for(;;){z(w,24);var sx=x3(h(w));if(2>>0)return d(w);switch(sx){case 0:return O(w);case 1:break;default:return F(w)}}else{if(L0!==1)return d(w);for(;;){z(w,24);var lx=Xc(h(w));if(3>>0)return d(w);switch(lx){case 0:return O(w);case 1:break;case 2:return K(w);default:return F(w)}}}break;case 2:for(;;){z(w,24);var ax=x3(h(w));if(2>>0)return d(w);switch(ax){case 0:return C(w);case 1:break;default:return P(w)}}break;default:for(;;){z(w,24);var Vx=Xc(h(w));if(3>>0)return d(w);switch(Vx){case 0:return C(w);case 1:break;case 2:return K(w);default:return P(w)}}}}function V(w){z(w,30);var L=PB(h(w));if(3>>0)return d(w);switch(L){case 0:return e(w);case 1:x:for(;;){z(w,30);var L0=ga(h(w));if(4>>0)return d(w);switch(L0){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var sx=ga(h(w));if(4>>0)return d(w);switch(sx){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}}break;case 2:return U(w);default:return u(w)}}function Q(w){return qh(h(w))===0&&Fh(h(w))===0&&XB(h(w))===0&&OB(h(w))===0&&CB(h(w))===0&&Rh(h(w))===0&&Wl(h(w))===0&&qh(h(w))===0&&wa(h(w))===0&&eO(h(w))===0&&Mo(h(w))===0?3:d(w)}function $(w){return z(w,3),YB(h(w))===0?3:d(w)}function x0(w){var L=Qb0(h(w));if(31>>0)return d(w);switch(L){case 0:return 66;case 1:return 67;case 2:if(z(w,1),qc(h(w))!==0)return d(w);for(;;)if(z(w,1),qc(h(w))!==0)return d(w);break;case 3:return 0;case 4:return z(w,0),ae(h(w))===0?0:d(w);case 5:return 6;case 6:return 65;case 7:if(z(w,67),Wl(h(w))!==0)return d(w);var L0=h(w),sx=Ze>>0)return d(w);switch(Lx){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var M0=ga(h(w));if(4>>0)return d(w);switch(M0){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}}break;case 16:z(w,67);var qr=Jh(h(w));if(qr!==0)return qr===1?5:d(w);z(w,2);var Ex=jh(h(w));if(2>>0)return d(w);switch(Ex){case 0:for(;;){var $0=jh(h(w));if(2<$0>>>0)return d(w);switch($0){case 0:break;case 1:return $(w);default:return Q(w)}}break;case 1:return $(w);default:return Q(w)}break;case 17:z(w,30);var Gx=RB(h(w));if(8>>0)return d(w);switch(Gx){case 0:return e(w);case 1:return V(w);case 2:x:for(;;){z(w,16);var j0=BB(h(w));if(4>>0)return d(w);switch(j0){case 0:return E(w);case 1:return i(w);case 2:break;case 3:break x;default:return j(w)}}for(;;){z(w,15);var cr=Ih(h(w));if(3>>0)return d(w);switch(cr){case 0:return E(w);case 1:return i(w);case 2:break;default:return j(w)}}break;case 3:for(;;){z(w,30);var tx=Ih(h(w));if(3>>0)return d(w);switch(tx){case 0:return e(w);case 1:return i(w);case 2:break;default:return t(w)}}break;case 4:z(w,29);var Mx=DB(h(w));if(Mx===0)return e(w);if(Mx!==1)return d(w);x:{r:for(;;){z(w,10);var b2=Kh(h(w));if(3>>0)return d(w);switch(b2){case 0:return S(w);case 1:break;case 2:break x;default:break r}}z(w,8);var Ux=D2(h(w));if(Ux!==0)return Ux===1?S(w):d(w);for(;;)if(z(w,7),or(h(w))!==0)return d(w)}x:for(;;){if(Bc(h(w))!==0)return d(w);r:for(;;){z(w,10);var c1=Kh(h(w));if(3>>0)return d(w);switch(c1){case 0:return y(w);case 1:break;case 2:break r;default:break x}}}z(w,8);var Rr=D2(h(w));if(Rr!==0)return Rr===1?y(w):d(w);for(;;)if(z(w,7),or(h(w))!==0)return d(w);break;case 5:return U(w);case 6:z(w,29);var U2=FB(h(w));if(U2===0)return e(w);if(U2!==1)return d(w);x:{r:for(;;){z(w,14);var g=Xh(h(w));if(3>>0)return d(w);switch(g){case 0:return _(w);case 1:break;case 2:break x;default:break r}}z(w,12);var G=D2(h(w));if(G!==0)return G===1?_(w):d(w);for(;;)if(z(w,11),or(h(w))!==0)return d(w)}x:for(;;){if(X1(h(w))!==0)return d(w);r:for(;;){z(w,14);var H=Xh(h(w));if(3>>0)return d(w);switch(H){case 0:return p(w);case 1:break;case 2:break r;default:break x}}}z(w,12);var l0=D2(h(w));if(l0!==0)return l0===1?p(w):d(w);for(;;)if(z(w,11),or(h(w))!==0)return d(w);break;case 7:z(w,29);var J=AB(h(w));if(J===0)return e(w);if(J!==1)return d(w);x:{r:for(;;){z(w,20);var s0=Yh(h(w));if(3>>0)return d(w);switch(s0){case 0:return a(w);case 1:break;case 2:break x;default:break r}}z(w,18);var _0=D2(h(w));if(_0!==0)return _0===1?a(w):d(w);for(;;)if(z(w,17),or(h(w))!==0)return d(w)}x:for(;;){if(Ir(h(w))!==0)return d(w);r:for(;;){z(w,20);var y0=Yh(h(w));if(3>>0)return d(w);switch(y0){case 0:return v(w);case 1:break;case 2:break r;default:break x}}}z(w,18);var J0=D2(h(w));if(J0!==0)return J0===1?v(w):d(w);for(;;)if(z(w,17),or(h(w))!==0)return d(w);break;default:return t(w)}break;case 18:z(w,30);var Rx=Nh(h(w));if(5>>0)return d(w);switch(Rx){case 0:return e(w);case 1:return V(w);case 2:for(;;){z(w,30);var kx=Nh(h(w));if(5>>0)return d(w);switch(kx){case 0:return e(w);case 1:return V(w);case 2:break;case 3:return U(w);case 4:return c(w);default:return t(w)}}break;case 3:return U(w);case 4:return c(w);default:return t(w)}break;case 19:return 44;case 20:return 42;case 21:return 49;case 22:z(w,51);var Jx=h(w),gr=61>>0)return gx(ln0);var Z=e0;if(34>Z)switch(Z){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var c0=h1(x,r),d0=Qr(Yr),n0=Uo(x,d0,r),P0=n0[1];return[1,P0,jt(P0,c0,n0[2],d0,1)];case 3:var h0=Ox(r);if(!x[5]){var g0=h1(x,r),v0=Qr(Yr);ar(v0,h0);var p0=Uo(x,v0,r),w0=p0[1];return[1,w0,jt(w0,g0,p0[2],v0,1)]}var T0=x[4]?WB(x,zr(x,r),h0):x,E0=_h(1,T0),N0=hh(r);return Sr(Vl(r,N0-1|0,1),Ao)&&I(Vl(r,N0-2|0,1),Ao)?[0,E0,86]:[2,E0];case 4:if(x[4])return[2,_h(0,x)];Zv(r),kr(r);var X0=jB(h(r))===0?0:d(r);return X0===0?[0,x,z2]:gx(pn0);case 5:var A0=h1(x,r),rx=Qr(Yr),B=t3(x,rx,r),G0=B[1];return[1,G0,jt(G0,A0,B[2],rx,0)];case 6:var W0=Ox(r),Y0=h1(x,r),V0=Qr(Yr),ex=Qr(Yr);ar(ex,W0);var Q0=xX(x,W0,V0,ex,0,r),S0=Q0[1],q0=Q0[3],yx=[0,S0[1],Y0,Q0[2]],cx=R2(ex);return[0,S0,[2,[0,yx,R2(V0),cx,q0]]];case 7:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&Ch(h(L))===0&&Bc(h(L))===0){r:for(;;){var L0=Sh(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(Bc(h(L))===0){e:for(;;){var sx=Sh(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(0,i2(L))]:gx(vn0)});case 8:return[0,x,Nt(0,i2(r))];case 9:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&Ch(h(L))===0&&Bc(h(L))===0){for(;;){z(L,0);var L0=Eh(h(L));if(L0!==0)break}if(L0===1)for(;;){if(Bc(h(L))===0){for(;;){z(L,0);var sx=Eh(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(0,i2(L))]:gx(on0)});case 10:return[0,x,Pt(0,i2(r))];case 11:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&Mh(h(L))===0&&X1(h(L))===0){r:for(;;){var L0=Oh(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(X1(h(L))===0){e:for(;;){var sx=Oh(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(1,i2(L))]:gx(an0)});case 12:return[0,x,Nt(1,i2(r))];case 13:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&Mh(h(L))===0&&X1(h(L))===0){for(;;){z(L,0);var L0=Ph(h(L));if(L0!==0)break}if(L0===1)for(;;){if(X1(h(L))===0){for(;;){z(L,0);var sx=Ph(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(3,i2(L))]:gx(sn0)});case 14:return[0,x,Pt(3,i2(r))];case 15:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&X1(h(L))===0){for(;;)if(z(L,0),X1(h(L))!==0){var L0=d(L);break}}else var L0=d(L);return L0===0?[0,w,Pt(1,i2(L))]:gx(cn0)});case 16:return[0,x,Pt(1,i2(r))];case 17:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&wh(h(L))===0&&Ir(h(L))===0){r:for(;;){var L0=Ah(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(Ir(h(L))===0){e:for(;;){var sx=Ah(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(2,i2(L))]:gx(fn0)});case 18:return[0,x,Nt(2,i2(r))];case 19:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&wh(h(L))===0&&Ir(h(L))===0){for(;;){z(L,0);var L0=Bh(h(L));if(L0!==0)break}if(L0===1)for(;;){if(Ir(h(L))===0){for(;;){z(L,0);var sx=Bh(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(4,i2(L))]:gx(in0)});case 20:return[0,x,Pt(4,i2(r))];case 21:return A2(x,r,function(w,L){function L0(j0){for(;;){var cr=At(h(j0));if(2>>0)return d(j0);switch(cr){case 0:break;case 1:for(;;){if(mr(h(j0))!==0)return d(j0);x:for(;;){var tx=At(h(j0));if(2>>0)return d(j0);switch(tx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function sx(j0){for(;;){var cr=r3(h(j0));if(cr!==0)return cr===1?0:d(j0)}}function lx(j0){var cr=zh(h(j0));if(2>>0)return d(j0);switch(cr){case 0:var tx=ya(h(j0));return tx===0?sx(j0):tx===1?L0(j0):d(j0);case 1:return sx(j0);default:return L0(j0)}}function ax(j0){var cr=Uh(h(j0));if(cr!==0)return cr===1?lx(j0):d(j0);x:for(;;){var tx=Z1(h(j0));if(2>>0)return d(j0);switch(tx){case 0:break;case 1:return lx(j0);default:break x}}for(;;){if(mr(h(j0))!==0)return d(j0);x:for(;;){var Mx=Z1(h(j0));if(2>>0)return d(j0);switch(Mx){case 0:break;case 1:return lx(j0);default:break x}}}}kr(L);var Vx=da(h(L));if(2>>0)var _x=d(L);else x:switch(Vx){case 0:if(mr(h(L))===0){r:for(;;){var zx=Z1(h(L));if(2>>0){var _x=d(L);break x}switch(zx){case 0:break;case 1:var _x=lx(L);break x;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var Lx=Z1(h(L));if(2>>0){var M0=d(L);break r}switch(Lx){case 0:break;case 1:var M0=lx(L);break r;default:break e}}continue}var M0=d(L)}var _x=M0;break}}else var _x=d(L);break;case 1:var qr=Th(h(L)),_x=qr===0?ax(L):qr===1?lx(L):d(L);break;default:r:for(;;){var Ex=Lh(h(L));if(2>>0){var _x=d(L);break}switch(Ex){case 0:var _x=ax(L);break r;case 1:break;default:var _x=lx(L);break r}}}if(_x!==0)return gx(un0);var $0=i2(L),Gx=d1(w,zr(w,L),43);return[0,Gx,Nt(2,$0)]});case 22:var Dx=i2(r),Ix=d1(x,zr(x,r),43);return[0,Ix,Nt(2,Dx)];case 23:return A2(x,r,function(w,L){function L0($0){for(;;){z($0,0);var Gx=_a(h($0));if(Gx!==0){if(Gx!==1)return d($0);for(;;){if(mr(h($0))!==0)return d($0);for(;;){z($0,0);var j0=_a(h($0));if(j0!==0)break}if(j0!==1)return d($0)}}}}function sx($0){for(;;)if(z($0,0),mr(h($0))!==0)return d($0)}function lx($0){var Gx=zh(h($0));if(2>>0)return d($0);switch(Gx){case 0:var j0=ya(h($0));return j0===0?sx($0):j0===1?L0($0):d($0);case 1:return sx($0);default:return L0($0)}}function ax($0){var Gx=Uh(h($0));if(Gx!==0)return Gx===1?lx($0):d($0);x:for(;;){var j0=Z1(h($0));if(2>>0)return d($0);switch(j0){case 0:break;case 1:return lx($0);default:break x}}for(;;){if(mr(h($0))!==0)return d($0);x:for(;;){var cr=Z1(h($0));if(2>>0)return d($0);switch(cr){case 0:break;case 1:return lx($0);default:break x}}}}kr(L);var Vx=da(h(L));if(2>>0)var _x=d(L);else x:switch(Vx){case 0:if(mr(h(L))===0){r:for(;;){var zx=Z1(h(L));if(2>>0){var _x=d(L);break x}switch(zx){case 0:break;case 1:var _x=lx(L);break x;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var Lx=Z1(h(L));if(2>>0){var M0=d(L);break r}switch(Lx){case 0:break;case 1:var M0=lx(L);break r;default:break e}}continue}var M0=d(L)}var _x=M0;break}}else var _x=d(L);break;case 1:var qr=Th(h(L)),_x=qr===0?ax(L):qr===1?lx(L):d(L);break;default:r:for(;;){var Ex=Lh(h(L));if(2>>0){var _x=d(L);break}switch(Ex){case 0:var _x=ax(L);break r;case 1:break;default:var _x=lx(L);break r}}}return _x===0?[0,w,Pt(4,i2(L))]:gx(nn0)});case 24:return[0,x,Pt(4,i2(r))];case 25:return A2(x,r,function(w,L){function L0(Ex){for(;;){var $0=At(h(Ex));if(2<$0>>>0)return d(Ex);switch($0){case 0:break;case 1:for(;;){if(mr(h(Ex))!==0)return d(Ex);x:for(;;){var Gx=At(h(Ex));if(2>>0)return d(Ex);switch(Gx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function sx(Ex){var $0=r3(h(Ex));return $0===0?L0(Ex):$0===1?0:d(Ex)}kr(L);var lx=da(h(L));if(2>>0)var ax=d(L);else x:switch(lx){case 0:var ax=mr(h(L))===0?L0(L):d(L);break;case 1:for(;;){var Vx=e3(h(L));if(Vx===0){var ax=sx(L);break}if(Vx!==1){var ax=d(L);break}}break;default:r:for(;;){var _x=ba(h(L));if(2<_x>>>0){var ax=d(L);break x}switch(_x){case 0:var ax=sx(L);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var zx=ba(h(L));if(2>>0){var Lx=d(L);break r}switch(zx){case 0:var Lx=sx(L);break r;case 1:break;default:break e}}continue}var Lx=d(L)}var ax=Lx;break}}if(ax!==0)return gx(tn0);var M0=i2(L),qr=d1(w,zr(w,L),35);return[0,qr,Nt(2,M0)]});case 26:return A2(x,r,function(w,L){kr(L);var L0=ya(h(L));x:if(L0===0)for(;;){var sx=r3(h(L));if(sx!==0){if(sx===1){var _x=0;break}var _x=d(L);break}}else if(L0===1){r:for(;;){var lx=At(h(L));if(2>>0){var _x=d(L);break x}switch(lx){case 0:break;case 1:break r;default:var _x=0;break x}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var ax=At(h(L));if(2>>0){var Vx=d(L);break r}switch(ax){case 0:break;case 1:break e;default:var Vx=0;break r}}continue}var Vx=d(L)}var _x=Vx;break}}else var _x=d(L);return _x===0?[0,w,Nt(2,i2(L))]:gx(en0)});case 27:var Xx=i2(r),Z0=d1(x,zr(x,r),35);return[0,Z0,Nt(2,Xx)];case 28:return[0,x,Nt(2,i2(r))];case 29:return A2(x,r,function(w,L){function L0(M0){for(;;){z(M0,0);var qr=_a(h(M0));if(qr!==0){if(qr!==1)return d(M0);for(;;){if(mr(h(M0))!==0)return d(M0);for(;;){z(M0,0);var Ex=_a(h(M0));if(Ex!==0)break}if(Ex!==1)return d(M0)}}}}function sx(M0){return z(M0,0),mr(h(M0))===0?L0(M0):d(M0)}kr(L);var lx=da(h(L));if(2>>0)var ax=d(L);else x:switch(lx){case 0:var ax=mr(h(L))===0?L0(L):d(L);break;case 1:for(;;){z(L,0);var Vx=e3(h(L));if(Vx===0){var ax=sx(L);break}if(Vx!==1){var ax=d(L);break}}break;default:r:for(;;){z(L,0);var _x=ba(h(L));if(2<_x>>>0){var ax=d(L);break x}switch(_x){case 0:var ax=sx(L);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){z(L,0);var zx=ba(h(L));if(2>>0){var Lx=d(L);break r}switch(zx){case 0:var Lx=sx(L);break r;case 1:break;default:break e}}continue}var Lx=d(L)}var ax=Lx;break}}return ax===0?[0,w,Pt(4,i2(L))]:gx(rn0)});case 30:return[0,x,Pt(4,i2(r))];case 31:return[0,x,66];case 32:return[0,x,6];default:return[0,x,7]}switch(Z){case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,z2];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,Ze];case 62:return[0,x,_t];case 63:return[0,x,_4];case 64:return[0,x,hl];case 65:var rr=r[6];VB(r);var xr=Hl(x,rr,r[3]);qN(r,rr);var fr=i2(r),Hx=QB(x,fr),Y=Hx[2],jx=Hx[1],hr=ix(Y,h4);if(0<=hr){if(0>=hr)return[0,jx,Ov];var Yx=ix(Y,ox);if(0<=Yx){if(0>=Yx)return[0,jx,rl];if(!I(Y,as))return[0,jx,31];if(!I(Y,ss))return[0,jx,46];if(!I(Y,cm))return[0,jx,Cv];if(!I(Y,F8))return[0,jx,r2];if(!I(Y,ps))return[0,jx,of]}else{if(!I(Y,Mk))return[0,jx,Vt];if(!I(Y,oo))return[0,jx,29];if(!I(Y,yv))return[0,jx,B3];if(!I(Y,ko))return[0,jx,Bp];if(!I(Y,Ae))return[0,jx,42];if(!I(Y,Rv))return[0,jx,Ev]}}else{var Ur=ix(Y,hc);if(0<=Ur){if(0>=Ur)return[0,jx,41];if(!I(Y,ls))return[0,jx,30];if(!I(Y,ov))return[0,jx,kl];if(!I(Y,DF))return[0,jx,Yr];if(!I(Y,W1))return[0,jx,53];if(!I(Y,ll))return[0,jx,y2];if(!I(Y,Lk))return[0,jx,ms]}else{if(!I(Y,p8))return[0,jx,ia];if(!I(Y,hv))return[0,jx,dl];if(!I(Y,vo))return[0,jx,kv];if(!I(Y,C8))return[0,jx,mn0];if(!I(Y,$3))return[0,jx,kn0];if(!I(Y,ie))return[0,jx,ua]}}return[0,jx,[4,xr,Y,Gl(fr)]];case 66:var px=x[4]?d1(x,zr(x,r),91):x;return[0,px,Dr];default:return[0,x,[7,Ox(r)]]}}function Ql(x){return function(r){var e=0,t=r;x:for(;;){var u=x(t,t[2]);switch(u[0]){case 0:break x;case 1:var i=u[2],c=u[1],e=[0,i,e],t=[0,c[1],c[2],c[3],c[4],c[5],c[6],i[1]];break;default:var t=u[1]}}var v=u[2],a=u[1],p=GB(a,v),_=e===0?0:vx(e),y=a[6];if(y===0)return[0,[0,a[1],a[2],a[3],a[4],a[5],a[6],p],[0,v,p,0,_]];var S=[0,v,p,vx(y),_];return[0,[0,a[1],a[2],a[3],a[4],a[5],gB,p],S]}}var iw0=Ql(ew0),fw0=Ql(tw0),cw0=Ql(nw0),sw0=Ql(uw0),aw0=Ql(xw0),y1=oB([0,_b0]);function Zl(x,r){return[0,0,0,r,_B(x)]}function Gh(x){var r=x[4];switch(x[3]){case 0:var e0=aw0(r);break;case 1:var e0=sw0(r);break;case 2:var e0=fw0(r);break;case 3:var e=oe(r,r[2]),t=Qr(Yr),u=Qr(Yr),i=r[2];kr(i);var c=h(i),v=Vt>>0)var a=d(i);else switch(v){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:z(i,0);var a=ae(h(i))===0?0:d(i);break;case 4:var a=2;break;default:var a=3}if(4>>0)var p=gx(gn0);else switch(a){case 0:var _=Ox(i);ar(u,_),ar(t,_);var y=tX(J1(r,i),t,u,i),S=oe(y,i),E=R2(t),j=R2(u),p=[0,y,[9,[0,y[1],e,S],E,j]];break;case 1:var p=[0,r,Dr];break;case 2:var p=[0,r,98];break;case 3:var p=[0,r,0];break;default:Zv(i);var C=tX(r,t,u,i),P=oe(C,i),O=R2(t),F=R2(u),p=[0,C,[9,[0,C[1],e,P],O,F]]}var K=p[2],U=p[1],V=GB(U,K),Q=U[6];if(Q===0)var x0=[0,U,[0,K,V,0,0]];else var $=[0,K,V,vx(Q),0],x0=[0,[0,U[1],U[2],U[3],U[4],U[5],0,U[7]],$];var e0=x0;break;case 4:var e0=cw0(r);break;default:var e0=iw0(r)}var Z=e0[1],c0=e0[2],d0=[0,_B(Z),c0];return x[4]=Z,x[1]?x[2]=[0,d0]:x[1]=[0,d0],d0}function nX(x){var r=x[1];return r?r[1][2]:Gh(x)[2]}function n3(x){return Dl(x[24][1])}function g2(x){return x[28][4]}function D0(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];if(t)return k(t[1],x,e)}function x6(x,r){x[31][1]=r}function Ta(x,r){if(x===0)return nX(r[26][1]);if(x!==1)throw U0([0,Ar,Zc0],1);var e=r[26][1];e[1]||Gh(e);var t=e[2];return t?t[1][2]:Gh(e)[2]}function Fs(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function uX(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function nO(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function uO(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function iX(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function qo(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function iO(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function r6(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function e6(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Bo(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function fO(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function fX(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function cX(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function cO(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Wh(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function sO(x){function r(e){return D0(x,e)}return function(e){return p1(r,e)}}function u3(x){var r=x[4][1];return r?[0,r[1][2]]:0}function sX(x){var r=x[4][1];return r?[0,r[1][1]]:0}function aX(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function oX(x,r,e,t){return[0,x[1],x[2],y1[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function i3(x){return I(x,lo)&&I(x,W1)&&I(x,mv)&&I(x,ek)&&I(x,_l)&&I(x,z3)&&I(x,U3)&&I(x,Ae)&&I(x,M1)?0:1}function Xo(x){return I(x,_A)&&I(x,"eval")?0:1}function $h(x){var r=ix(x,ik);x:{if(0<=r){if(0>>0){if(ue>=t+1>>>0)return 1}else if(t===6)return 0}return t6(x,r)}function c3(x){return pX(0,x)}function Ms(x,r){var e=vr(x,r);x:{if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var t=1;break x}else if(e[0]===4){var t=i3(e[2]);break x}var t=0}if(t)return 1;x:{if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:break;default:break x}else if(e[0]!==4)break x;return 1}return 0}function Hh(x,r){return vX(r,vr(x,r))}function kX(x,r){var e=Ms(x,r);return e||Hh(x,r)}function Jc(x){return Ms(0,x)}function Ea(x){var r=M(x)===15?1:0;if(r)var e=r;else{var t=M(x)===64?1:0;if(t){var u=vr(1,x)===15?1:0;if(u)var i=f3(1,x)[2][1],e=fx(x)[3][1]===i?1:0;else var e=u}else var e=t}return e}function Qh(x){var r=M(x);if(typeof r!="number"&&r[0]===4&&!I(r[3],wo)){var e=x[28][1];if(e){var t=Ms(1,x);if(t)var u=f3(1,x)[2][1],i=fx(x)[3][1]===u?1:0;else var i=t}else var i=e;return i}return 0}function n6(x){var r=M(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!I(r[3],Z9)&&vr(1,x)===40)return 1;return 0}function vO(x){var r=x[28][1];if(r){var e=M(x);if(typeof e!="number"&&e[0]===4&&!I(e[3],ta)&&Ms(1,x))return 1;var t=0}else var t=r;return t}function lO(x){var r=M(x);return typeof r!="number"&&r[0]===4&&!I(r[3],dr)?1:0}function Kx(x,r){return D0(x,[0,fx(x),r])}function mX(x,r){var e=HN(0,r);return x?[26,e,x[1]]:[24,e]}function _2(x,r){var e=oO(r);return sO(r)(e),Kx(r,mX(x,M(r)))}function Zh(x){function r(e){return D0(x,[0,e[1],R7])}return function(e){return p1(r,e)}}function hX(x,r){var e=x[6]?B0(yr($c0),r,r,r):Hc0;return _2([0,e],x)}function Ot(x,r){var e=x[5];return e&&Kx(x,r)}function ct(x,r){var e=x[5],t=r[2],u=r[1];return e&&D0(x,[0,u,t])}function Jo(x,r){return D0(x,[0,r,[14,x[5]]])}function b0(x){var r=x[27][1];if(r){var e=r[1],t=n3(x),u=M(x);l(e,[0,fx(x),u,t])}var i=x[26][1],c=i[1],v=c?c[1][1]:Gh(i)[1];x[25][1]=v;var a=oO(x);sO(x)(a);var p=x[2][1],_=zv(Ta(0,x)[4],p);x[2][1]=_;var y=[0,Ta(0,x)];x[4][1]=y;var S=x[26][1];return S[2]?(S[1]=S[2],S[2]=0,0):(nX(S),S[1]=0,0)}function f2(x,r){var e=k(VN,M(x),r);return e&&b0(x),e}function L2(x,r){x[24][1]=[0,r,x[24][1]];var e=n3(x),t=Zl(x[25][1],e);x[26][1]=t}function J2(x){var r=x[24][1],e=r?r[2]:gx(Wc0);x[24][1]=e;var t=n3(x),u=Zl(x[25][1],t);x[26][1]=u}function xx(x){var r=fx(x);if(M(x)===9&&t6(1,x)){var e=f0(x),t=Ta(1,x)[4],u=Fx(e,Fl(function(c){return c[1][2][1]<=r[3][1]?1:0})(t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=f0(x);return x6(x,r[3]),i}function Sa(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=f0(x),u=Fl(function(i){return i[1][2][1]<=e[3][1]?1:0})(t);return x6(x,[0,e[3][1]+1|0,0]),u}function tn(x,r){return _2([0,HN(zc0,r)],x)}function W(x,r){return 1-k(VN,M(x),r)&&tn(x,r),b0(x)}function dX(x,r){var e=f2(x,r);return 1-e&&tn(x,r),e}function xd(x,r){dX(x,r)}function Kc(x,r){var e=M(x);x:{if(typeof e!="number"&&e[0]===4&&Sr(e[3],r))break x;_2([0,l(yr(Yc0),r)],x)}return b0(x)}var Yc=[x2,us0,Ts(0)];function yX(x,r,e){if(e){var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var c=i[2];;){if(!c)return;var v=c[2];l(u,c[1]);var c=v}}}function pO(x,r){var e=x[27][1];if(e){var t=e[1],u=lq(R),i=[0,function(K){return vN(K,u)}];x[27][1]=i;var c=[0,[0,t,u]]}else var c=0;var v=x[31][1],a=x[25][1],p=x[24][1],_=x[4][1],y=x[2][1],S=x[1][1];try{var E=l(r,x);yX(1,x,c);var j=[0,E];return j}catch(F){var C=O2(F);if(C!==Yc)throw U0(C,0);yX(0,x,c),x[1][1]=S,x[2][1]=y,x[4][1]=_,x[24][1]=p,x[25][1]=a,x[31][1]=v;var P=n3(x),O=Zl(x[25][1],P);return x[26][1]=O,0}}function rd(x,r,e){var t=pO(x,e);return t?t[1]:r}function u6(x,r){var e=vx(r);if(!e)return r;var t=e[1],u=e[2],i=l(x,t);return t===i?r:vx([0,i,u])}var gX=ph(as0,function(x){var r=RN(x,fs0),e=CN(x,ss0),t=e[24],u=e[28],i=e[41],c=e[91],v=e[oj],a=e[AP],p=e[o_],_=e[WM],y=e[HL],S=e[PR],E=e[6],j=e[7],C=e[10],P=e[17],O=e[23],F=e[29],K=e[39],U=e[42],V=e[52],Q=e[61],$=e[z2],x0=e[j2],e0=e[ua],Z=e[kv],c0=e[Ev],d0=e[hl],n0=e[M_],P0=e[SL],h0=e[xL],g0=e[pT],v0=e[Mb],p0=e[v8],w0=e[Wp],T0=e[Eb],E0=e[tm],N0=e[P4],X0=e[Gk],A0=e[po],rx=e[xl],B=e[go],G0=e[i8],W0=e[WR],Y0=e[TF],V0=e[VM],ex=e[kL],Q0=e[pM],S0=e[sy],q0=e[zF],yx=e[KM],cx=e[mR],Dx=LN(x,0,0,QU,XN,1)[1];function Ix(H,l0,J){var s0=J[2],_0=s0[2],y0=s0[1],J0=J[1];if(_0){var Rx=_0[1],kx=function(gr){return[0,J0,[0,y0,[0,gr]]]};return I0(l(H[1][1+a],H),Rx,J,kx)}function Jx(gr){return[0,J0,[0,gr,_0]]}return I0(k(H[1][1+E],H,l0),y0,J,Jx)}function Xx(H,l0,J){var s0=J[2],_0=J[1],y0=_0[3],J0=_0[2],Rx=_0[1];if(y0)var kx=u6(l(H[1][1+u],H),y0),Jx=J0;else var kx=0,Jx=k(H[1][1+u],H,J0);var gr=k(H[1][1+i],H,s0);return J0===Jx&&y0===kx&&s0===gr?J:[0,[0,Rx,Jx,kx],gr]}function Z0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function rr(H,l0,J){var s0=J[3];function _0(y0){return[0,J[1],J[2],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function xr(H,l0){var J=l0[3];function s0(_0){return[0,l0[1],l0[2],_0]}return I0(l(H[1][1+i],H),J,l0,s0)}function fr(H,l0,J){var s0=J[3];function _0(y0){return[0,J[1],J[2],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Hx(H,l0,J){var s0=J[2],_0=J[1],y0=u6(l(H[1][1+a],H),_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,y0,J0]}function Y(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function jx(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function hr(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Yx(H,l0,J){var s0=J[3],_0=J[2],y0=k(H[1][1+e0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],y0,J0]}function Ur(H,l0,J){var s0=J[4],_0=J[3],y0=J[2],J0=J[1],Rx=k(H[1][1+i],H,s0);if(_0){var kx=Cx(l(H[1][1+S],H),_0);return _0===kx&&s0===Rx?J:[0,J[1],J[2],kx,Rx]}if(y0){var Jx=Cx(l(H[1][1+y],H),y0);return y0===Jx&&s0===Rx?J:[0,J[1],Jx,J[3],Rx]}var gr=k(H[1][1+a],H,J0);return J0===gr&&s0===Rx?J:[0,gr,J[2],J[3],Rx]}function px(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function w(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function L(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function L0(H,l0,J){var s0=J[2],_0=J[1],y0=_0[3],J0=_0[2],Rx=_0[1];if(y0)var kx=u6(l(H[1][1+u],H),y0),Jx=J0;else var kx=0,Jx=k(H[1][1+u],H,J0);var gr=k(H[1][1+i],H,s0);return J0===Jx&&y0===kx&&s0===gr?J:[0,[0,Rx,Jx,kx],gr]}function sx(H,l0,J){var s0=J[3],_0=J[1],y0=X2(l(H[1][1+c],H),_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,y0,J[2],J0]}function lx(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function ax(H,l0){if(l0[0]===0){var J=l0[1],s0=function(Jx){return[0,Jx]};return I0(l(H[1][1+v],H),J,l0,s0)}var _0=l0[1],y0=_0[2],J0=y0[2],Rx=_0[1],kx=k(H[1][1+v],H,J0);return J0===kx?l0:[1,[0,Rx,[0,y0[1],kx]]]}function Vx(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+p0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0,J[5]]}function _x(H,l0){var J=l0[2],s0=l0[1],_0=J[4];function y0(J0){return[0,s0,[0,J[1],J[2],J[3],J0]]}return I0(l(H[1][1+i],H),_0,[0,s0,J],y0)}function zx(H,l0,J){var s0=J[10],_0=J[3],y0=k(H[1][1+E0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J[4],J[5],J[6],J[7],J[8],J[9],J0,J[11]]}function Lx(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function M0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function qr(H,l0){var J=l0[2],s0=l0[1],_0=J[3];function y0(J0){return[0,s0,[0,J[1],J[2],J0]]}return I0(l(H[1][1+i],H),_0,[0,s0,J],y0)}function Ex(H,l0,J){var s0=J[6],_0=J[5],y0=k(H[1][1+G0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],J[3],J[4],y0,J0,J[7]]}function $0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];if(s0===0){var J0=function(Jx){return[0,y0,[0,Jx,s0]]};return I0(l(H[1][1+v],H),_0,l0,J0)}function Rx(Jx){return[0,y0,[0,_0,Jx]]}var kx=l(H[1][1+t],H);return I0(function(Jx){return Cx(kx,Jx)},s0,l0,Rx)}function Gx(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(kx){return[0,y0,[0,kx,s0]]}var Rx=l(H[1][1+p],H);return I0(function(kx){return u6(Rx,kx)},_0,l0,J0)}function j0(H,l0,J){var s0=J[2],_0=J[1];if(s0===0){var y0=function(kx){return[0,kx,J[2],J[3]]};return I0(l(H[1][1+a],H),_0,J,y0)}function J0(kx){return[0,J[1],kx,J[3]]}var Rx=l(H[1][1+t],H);return I0(function(kx){return Cx(Rx,kx)},s0,J,J0)}function cr(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function tx(H,l0,J){var s0=J[7],_0=J[2],y0=k(H[1][1+_],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],y0,J[3],J[4],J[5],J[6],J0]}function Mx(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function b2(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function Ux(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+S],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function c1(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Rr(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function U2(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function g(H,l0){var J=l0[2];function s0(_0){return[0,l0[1],_0]}return I0(l(H[1][1+i],H),J,l0,s0)}function G(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}return UN(x,[0,U,function(H,l0){var J=l0[2],s0=Fl(function(y0){return Rs(y0[1][2],H[1+r])<0?1:0})(J),_0=Is(s0);return Is(J)===_0?l0:[0,l0[1],s0,l0[3]]},cx,G,yx,g,q0,U2,S0,Rr,Q0,c1,ex,Ux,S,b2,y,Mx,V0,tx,_,cr,Y0,j0,W0,Gx,p,$0,B,Ex,rx,qr,A0,M0,X0,Lx,N0,zx,T0,_x,w0,Vx,v0,ax,g0,lx,h0,sx,P0,L0,n0,L,d0,w,c0,px,x0,Ur,Z,Yx,$,hr,c,jx,Q,Y,V,Hx,K,fr,F,xr,O,rr,P,Z0,C,Xx,j,Ix]),function(H,l0,J){var s0=kh(l0,x);return s0[1+r]=J,l(Dx,s0),MN(l0,s0,x)}});function ed(x){var r=u3(x);if(r)var e=r[1],t=lX(x)?(x6(x,e[3]),[0,k(gX[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,c){return u?c(u[1],i):i}]}function i6(x){var r=u3(x);if(r){var e=r[1];if(lX(x)){x6(x,e[3]);var t=Sa(x),u=[0,k(gX[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Sa(x)}else var u=0,i=0;return[0,i,function(c,v){return u?k(v,u[1],c):c}]}function I2(x){return K1(x)?i6(x):ed(x)}function Ct(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,Av,2),t,u)})}function Y1(x,r){if(!r)return 0;var e=r[1],t=I2(x)[2];return[0,k(t,e,function(u,i){return k(Wx(u,Gj,5),u,i)})]}function kO(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,IR,8),t,u)})}function s3(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-1045824777,9),t,u)})}function f6(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-455772979,10),t,u)})}function _X(x,r){if(!r)return 0;var e=r[1],t=I2(x)[2];return[0,k(t,e,function(u,i){return k(Wx(u,QF,13),u,i)})]}function nn(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,eR,14),t,u)})}function bX(x,r){var e=I2(x)[2];return k(e,r,function(t,u){var i=l(Wx(t,VL,16),t);return u6(function(c){return X2(i,c)},u)})}function wX(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-21476009,17),t,u)})}function ow0(x,r){var e=x[2],t=x[1];function u(c1){return N1(c1,r)}switch(e[0]){case 0:var i=e[1],c=YN(i[2],r),Ux=[0,[0,i[1],c]];break;case 1:var v=e[1],a=u(v[2]),Ux=[1,[0,v[1],a]];break;case 2:var p=e[1],_=u(p[7]),Ux=[2,[0,p[1],p[2],p[3],p[4],p[5],p[6],_]];break;case 3:var y=e[1],S=y[7],E=u(y[6]),Ux=[3,[0,y[1],y[2],y[3],y[4],y[5],E,S]];break;case 4:var j=e[1],C=u(j[2]),Ux=[4,[0,j[1],C]];break;case 5:var Ux=[5,[0,u(e[1][1])]];break;case 6:var P=e[1],O=u(P[7]),Ux=[6,[0,P[1],P[2],P[3],P[4],P[5],P[6],O]];break;case 7:var F=e[1],K=u(F[5]),Ux=[7,[0,F[1],F[2],F[3],F[4],K]];break;case 8:var U=e[1],V=u(U[3]),Ux=[8,[0,U[1],U[2],V]];break;case 9:var Q=e[1],$=u(Q[5]),Ux=[9,[0,Q[1],Q[2],Q[3],Q[4],$]];break;case 10:var x0=e[1],e0=u(x0[4]),Ux=[10,[0,x0[1],x0[2],x0[3],e0]];break;case 11:var Z=e[1],c0=u(Z[5]),Ux=[11,[0,Z[1],Z[2],Z[3],Z[4],c0]];break;case 12:var d0=e[1],n0=u(d0[3]),Ux=[12,[0,d0[1],d0[2],n0]];break;case 13:var P0=e[1],h0=u(P0[2]),Ux=[13,[0,P0[1],h0]];break;case 14:var g0=e[1],v0=u(g0[3]),Ux=[14,[0,g0[1],g0[2],v0]];break;case 15:var p0=e[1],w0=u(p0[4]),Ux=[15,[0,p0[1],p0[2],p0[3],w0]];break;case 16:var T0=e[1],E0=u(T0[5]),Ux=[16,[0,T0[1],T0[2],T0[3],T0[4],E0]];break;case 17:var N0=e[1],X0=u(N0[4]),Ux=[17,[0,N0[1],N0[2],N0[3],X0]];break;case 18:var A0=e[1],rx=u(A0[3]),Ux=[18,[0,A0[1],A0[2],rx]];break;case 19:var Ux=[19,[0,u(e[1][1])]];break;case 20:var B=e[1],G0=u(B[3]),Ux=[20,[0,B[1],B[2],G0]];break;case 21:var W0=e[1],Y0=u(W0[3]),Ux=[21,[0,W0[1],W0[2],Y0]];break;case 22:var V0=e[1],ex=u(V0[5]),Ux=[22,[0,V0[1],V0[2],V0[3],V0[4],ex]];break;case 23:var Q0=e[1],S0=u(Q0[3]),Ux=[23,[0,Q0[1],Q0[2],S0]];break;case 24:var q0=e[1],yx=u(q0[5]),Ux=[24,[0,q0[1],q0[2],q0[3],q0[4],yx]];break;case 25:var cx=e[1],Dx=u(cx[5]),Ux=[25,[0,cx[1],cx[2],cx[3],cx[4],Dx]];break;case 26:var Ix=e[1],Xx=u(Ix[5]),Ux=[26,[0,Ix[1],Ix[2],Ix[3],Ix[4],Xx]];break;case 27:var Z0=e[1],rr=Z0[11],xr=u(Z0[10]),Ux=[27,[0,Z0[1],Z0[2],Z0[3],Z0[4],Z0[5],Z0[6],Z0[7],Z0[8],Z0[9],xr,rr]];break;case 28:var fr=e[1],Hx=u(fr[4]),Ux=[28,[0,fr[1],fr[2],fr[3],Hx]];break;case 29:var Y=e[1],jx=u(Y[5]),Ux=[29,[0,Y[1],Y[2],Y[3],Y[4],jx]];break;case 30:var hr=e[1],Yx=u(hr[5]),Ux=[30,[0,hr[1],hr[2],hr[3],hr[4],Yx]];break;case 31:var Ur=e[1],px=u(Ur[3]),Ux=[31,[0,Ur[1],Ur[2],px]];break;case 32:var w=e[1],L=w[3],L0=u(w[2]),Ux=[32,[0,w[1],L0,L]];break;case 33:var sx=e[1],lx=sx[4],ax=u(sx[3]),Ux=[33,[0,sx[1],sx[2],ax,lx]];break;case 34:var Vx=e[1],_x=u(Vx[2]),Ux=[34,[0,Vx[1],_x]];break;case 35:var zx=e[1],Lx=u(zx[4]),Ux=[35,[0,zx[1],zx[2],zx[3],Lx]];break;case 36:var M0=e[1],qr=u(M0[4]),Ux=[36,[0,M0[1],M0[2],M0[3],qr]];break;case 37:var Ex=e[1],$0=u(Ex[5]),Ux=[37,[0,Ex[1],Ex[2],Ex[3],Ex[4],$0]];break;case 38:var Gx=e[1],j0=u(Gx[3]),Ux=[38,[0,Gx[1],Gx[2],j0]];break;case 39:var cr=e[1],tx=u(cr[3]),Ux=[39,[0,cr[1],cr[2],tx]];break;default:var Mx=e[1],b2=u(Mx[3]),Ux=[40,[0,Mx[1],Mx[2],b2]]}return[0,t,Ux]}ph(os0,function(x){var r=RN(x,is0),e=FN(cs0),t=e.length-1,u=HU.length-1,i=Jv(t+u|0,0),c=t-1|0,v=0;if(c>=0)for(var a=v;;){var p=Yl(x,$2(e,a)[1+a]);$2(i,a)[1+a]=p;var _=a+1|0;if(c===a)break;var a=_}var y=u-1|0,S=0;if(y>=0)for(var E=S;;){var j=E+t|0,C=RN(x,$2(HU,E)[1+E]);$2(i,j)[1+j]=C;var P=E+1|0;if(y===E)break;var E=P}var O=i[4],F=i[5],K=i[lL],U=i[o_],V=i[297],Q=i[298],$=i[44],x0=i[gv],e0=i[gL],Z=LN(x,0,0,QU,XN,1)[1];function c0(v0,p0,w0){return k(v0[1][1+K],v0,w0[2]),w0}function d0(v0,p0){return k(v0[1][1+U],v0,p0),p0}function n0(v0,p0){var w0=p0[1],T0=v0[1+Q];if(T0){var E0=Rs(T0[1][1][2],w0[2])<0?1:0,N0=E0&&(v0[1+Q]=[0,p0],0);return N0}var X0=0<=Rs(w0[2],v0[1+r][3])?1:0,A0=X0&&(v0[1+Q]=[0,p0],0);return A0}function P0(v0,p0){var w0=p0[1],T0=v0[1+V];if(T0){var E0=Rs(w0[2],T0[1][1][2])<0?1:0,N0=E0&&(v0[1+V]=[0,p0],0);return N0}var X0=Rs(w0[2],v0[1+r][2])<0?1:0,A0=X0&&(v0[1+V]=[0,p0],0);return A0}function h0(v0,p0){return p0?k(v0[1][1+U],v0,p0[1]):0}function g0(v0,p0){var w0=p0[2],T0=p0[1];return p1(l(v0[1][1+F],v0),T0),p1(l(v0[1][1+O],v0),w0)}return UN(x,[0,x0,function(v0){return[0,v0[1+V],v0[1+Q]]},U,g0,K,h0,F,P0,O,n0,$,d0,e0,c0]),function(v0,p0,w0){var T0=kh(p0,x);return T0[1+r]=w0,l(Z,T0),T0[1+V]=0,T0[1+Q]=0,MN(p0,T0,x)}});function TX(x){var r=M(x);x:{if(typeof r=="number"){var e=r;if(50<=e)switch(e){case 50:var u=Vs0;break x;case 51:var u=Gs0;break x;case 52:var u=Ws0;break x;case 53:var u=$s0;break x;case 54:var u=Hs0;break x;case 55:var u=Qs0;break x;case 56:var u=Zs0;break x;case 57:var u=xa0;break x;case 58:var u=ra0;break x;case 59:var u=ea0;break x;case 60:var u=ta0;break x;case 61:var u=na0;break x;case 62:var u=ua0;break x;case 63:var u=ia0;break x;case 64:var u=fa0;break x;case 65:var u=ca0;break x;case 114:var u=sa0;break x;case 115:var u=aa0;break x;case 116:var u=oa0;break x;case 117:var u=va0;break x;case 118:var u=la0;break x;case 119:var u=pa0;break x;case 120:var u=ka0;break x;case 121:var u=ma0;break x;case 122:var u=ha0;break x;case 123:var u=da0;break x;case 124:var u=ya0;break x;case 125:var u=ga0;break x;case 126:var u=_a0;break x;case 128:var u=ba0;break x;case 129:var u=wa0;break x;case 130:var u=Ta0;break x}else switch(e){case 15:var u=vs0;break x;case 16:var u=ls0;break x;case 17:var u=ps0;break x;case 18:var u=ks0;break x;case 19:var u=ms0;break x;case 20:var u=hs0;break x;case 21:var u=ds0;break x;case 22:var u=ys0;break x;case 23:var u=gs0;break x;case 24:var u=_s0;break x;case 25:var u=bs0;break x;case 26:var u=ws0;break x;case 27:var u=Ts0;break x;case 28:var u=Es0;break x;case 29:var u=Ss0;break x;case 30:var u=As0;break x;case 31:var u=Is0;break x;case 32:var u=js0;break x;case 33:var u=Ps0;break x;case 34:var u=Ns0;break x;case 35:var u=Os0;break x;case 36:var u=Cs0;break x;case 37:var u=Ds0;break x;case 38:var u=Rs0;break x;case 39:var u=Fs0;break x;case 40:var u=Ls0;break x;case 41:var u=Ms0;break x;case 42:var u=Us0;break x;case 43:var u=qs0;break x;case 44:var u=Bs0;break x;case 45:var u=Xs0;break x;case 46:var u=Js0;break x;case 47:var u=Ks0;break x;case 48:var u=Ys0;break x;case 49:var u=zs0;break x}}else switch(r[0]){case 4:var u=r[2];break x;case 11:var t=r[1]?Ea0:Sa0,u=t;break x}_2(Aa0,x);var u=Ia0}return b0(x),u}function g1(x){var r=fx(x),e=f0(x),t=TX(x);return[0,r,[0,t,t0([0,e],[0,xx(x)],R)]]}function EX(x){var r=fx(x),e=f0(x);W(x,14);var t=fx(x),u=TX(x),i=t0([0,e],[0,xx(x)],R),c=Zr(r,t),v=t[2],a=r[3],p=a[1]===v[1]?1:0,_=p&&(a[2]===v[2]?1:0);return 1-_&&D0(x,[0,c,j2]),[0,c,[0,u,i]]}function Ko(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],c=u[2];x:{if(i[1][2][0]===2&&!i[2]){var v=1;break x}var v=0}if(!v)return v;var u=c}}function c6(x){for(var r=x;;){var e=r[2];if(e[0]!==31)return 0;var t=e[1][2];if(t[2][0]===27)return 1;var r=t}}function td(x,r,e){var t=e[2][1],u=e[1];if(!I(t,_o)){var i=r[19];return i&&D0(r,[0,u,5])}if(I(t,mv)){if(!I(t,M1))return r[18]?D0(r,[0,u,95]):ct(r,[0,u,80])}else if(r[14])return D0(r,[0,u,[24,bh(t)]]);if(i3(t))return ct(r,[0,u,80]);if($h(t))return D0(r,[0,u,95]);if(x){var c=x[1];if(Xo(t))return ct(r,[0,u,c])}}function r0(x,r,e){var t=x?x[1]:fx(e),u=l(r,e),i=u3(e),c=i?Zr(t,i[1]):t;return[0,c,u]}function mO(x,r,e){var t=r0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]}function nd(x){L2(x,0);var r=M(x);J2(x);var e=vr(1,x);x:{r:{if(typeof r=="number"){if(r!==21)break x}else{if(r[0]!==4)break x;var t=r[3];if(I(t,hv)){if(!I(t,ov))e:{if(typeof e=="number"){if(e!==21)break e}else if(e[0]!==4)break e;break r}}else e:{if(typeof e=="number"){if(e!==21)break e}else if(e[0]!==4)break e;break r}}if(typeof e=="number"){if(y2!==e)break x}else if(e[0]!==4||I(e[3],ll))break x}return 1}return 0}function SX(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}}function hO(x,r,e){if(e){var t=e[1];x:{if(t!==8232&&G2!==t){if(t===10){var u=6;break x}if(t===13){var u=5;break x}if(el<=t){var u=3;break x}if(kj<=t){var u=2;break x}if(y2<=t){var u=1;break x}var u=0;break x}var u=7}var i=u}else var i=4;return[0,i,x]}var vw0=[x2,so0,Ts(0)];function AX(x,r,e,t){try{var u=$2(x,r)[1+r];return u}catch(c){var i=O2(c);throw i[1]===eN?U0([0,vw0,e,B0(yr(fo0),t,r,x.length-1)],1):U0(i,0)}}function ud(x,r){if(r[1]===0&&r[2]===0)return 0;var e=AX(x,r[1]-1|0,r,uo0);return AX(e,r[2],r,io0)}function IX(x){var r=[0,Ro0,y1[1],0,0];function e(a){var p=M(a);x:if(typeof p=="number"){if(8<=p){if(10<=p)break x}else if(p!==1)break x;return 1}return 0}function t(a,p,_,y,S,E){var j=B0(x[24],a,S,E);if(_)var C=Bx(Do0,E),P=-j;else var C=E,P=j;var O=xx(a);return e(a)?[2,p,[0,P,C,t0([0,y],[0,O],R)]]:[0,p]}function u(a){var p=fx(a),_=f0(a),y=M(a);if(typeof y=="number")switch(y){case 104:b0(a);var S=M(a);return typeof S!="number"&&S[0]===0?t(a,p,1,_,S[1],S[2]):[0,p];case 30:case 31:b0(a);var E=xx(a);return e(a)?[1,p,[0,y===31?1:0,t0([0,_],[0,E],R)]]:[0,p]}else switch(y[0]){case 0:return t(a,p,0,_,y[1],y[2]);case 1:var j=y[2],C=B0(x[26],a,y[1],j),P=xx(a);return e(a)?[4,p,[0,C,j,t0([0,_],[0,P],R)]]:[0,p];case 2:var O=y[1],F=O[1],K=O[3],U=O[2];O[4]&&Ot(a,76),b0(a);var V=xx(a);return e(a)?[3,F,[0,U,K,t0([0,_],[0,V],R)]]:[0,F]}return b0(a),[0,p]}function i(a){var p=g1(a),_=M(a);x:{if(typeof _=="number"){if(_===82){W(a,82);var y=u(a);break x}if(_===86){Kx(a,[8,p[2][1]]),W(a,86);var y=u(a);break x}}var y=0}return[0,p,y]}var c=0;function v(a,p,_,y,S,E,j){var C=Is(S),P=Is(E);function O(K){return[2,[0,[0,E],_,y,j]]}function F(K){return[2,[0,[1,S],_,y,j]]}return C===0?O(R):P===0?F(R):C>>0){if(ue>=$+1>>>0)break}else if($===10){var x0=fx(P),e0=f0(P);b0(P);var Z=M(P);x:{r:if(typeof Z=="number"){var c0=Z-2|0;if(j2>>0){if(ue>>0)break r}else{if(c0!==7)break r;W(P,9);var d0=M(P);e:{t:if(typeof d0=="number"){if(d0!==1&&Dr!==d0)break t;var n0=1;break e}var n0=0}D0(P,[0,x0,[6,n0]])}break x}D0(P,[0,x0,Ao0])}var V=[0,V[1],V[2],1,e0];continue}}var P0=V[2],h0=V[1],g0=r0(c,i,P),v0=g0[2],p0=v0[2],w0=v0[1],T0=g0[1],E0=w0[2][1],N0=w0[1];x:if(Sr(E0,H0))var X0=V;else{var A0=N2(E0,0),rx=97<=A0?1:0,B=rx&&(A0<=r2?1:0);B&&D0(P,[0,N0,[10,E,E0]]),y1[3].call(null,E0,P0)&&D0(P,[0,N0,[4,E,E0]]);var G0=V[4],W0=V[3],Y0=y1[4].call(null,E0,P0),V0=[0,V[1],Y0,W0,G0],ex=function(Ex){return function($0,Gx){if(K&&K[1]!==$0)return D0(P,[0,Gx,[9,E,K,Ex]])}}(E0);if(typeof p0=="number"){if(K)switch(K[1]){case 0:D0(P,[0,T0,[3,E,E0]]);var X0=V0;break x;case 1:D0(P,[0,T0,[11,E,E0]]);var X0=V0;break x;case 4:D0(P,[0,T0,[2,E,E0]]);var X0=V0;break x}var X0=[0,[0,h0[1],h0[2],h0[3],h0[4],[0,[0,T0,[0,w0]],h0[5]]],Y0,W0,G0]}else switch(p0[0]){case 0:D0(P,[0,p0[1],[9,E,K,E0]]);var X0=V0;break;case 1:var Q0=p0[1],S0=p0[2];ex(0,Q0);var X0=[0,[0,[0,[0,T0,[0,w0,[0,Q0,S0]]],h0[1]],h0[2],h0[3],h0[4],h0[5]],Y0,W0,G0];break;case 2:var q0=p0[1],yx=p0[2];ex(1,q0);var X0=[0,[0,h0[1],[0,[0,T0,[0,w0,[0,q0,yx]]],h0[2]],h0[3],h0[4],h0[5]],Y0,W0,G0];break;case 3:var cx=p0[1],Dx=p0[2];ex(2,cx);var X0=[0,[0,h0[1],h0[2],[0,[0,T0,[0,w0,[0,cx,Dx]]],h0[3]],h0[4],h0[5]],Y0,W0,G0];break;default:var Ix=p0[1],Xx=p0[2];ex(4,Ix);var X0=[0,[0,h0[1],h0[2],h0[3],[0,[0,T0,[0,w0,[0,Ix,Xx]]],h0[4]],h0[5]],Y0,W0,G0]}}var Z0=M(P);x:{r:if(typeof Z0=="number"){var rr=Z0-2|0;if(j2>>0){if(ue>>0)break r}else{if(rr!==6)break r;Kx(P,18),W(P,8)}break x}W(P,9)}var V=X0}var xr=V[3],fr=V[4],Hx=vx(V[1][5]),Y=vx(V[1][4]),jx=vx(V[1][3]),hr=vx(V[1][2]),Yx=vx(V[1][1]),Ur=Fx(fr,f0(P));W(P,1);var px=M(P);x:{r:if(typeof px=="number"){if(px!==1&&Dr!==px)break r;var w=xx(P);break x}var w=K1(P)?Sa(P):0}var L=F2([0,U],[0,w],Ur,R);if(K){switch(K[1]){case 0:var L0=[0,[0,Yx,1,xr,L]];break;case 1:var L0=[1,[0,hr,1,xr,L]];break;case 2:var L0=v(P,E,1,xr,jx,Hx,L);break;case 3:var L0=[3,[0,Hx,xr,L]];break;default:var L0=[4,[0,Y,1,xr,L]]}var sx=L0}else{var lx=Is(Yx),ax=Is(hr),Vx=Is(Y),_x=Is(jx),zx=Is(Hx),Lx=function(Ex){return[2,[0,Io0,0,xr,L]]};x:{if(lx===0&&ax===0&&Vx===0){if(_x===0&&zx===0){var M0=Lx(R);break x}var M0=v(P,E,0,xr,jx,Hx,L);break x}if(ax===0&&Vx===0&&_x===0&&zx<=lx){p1(function($0){return D0(P,[0,$0[1],[3,E,$0[2][1][2][1]]])},Hx);var M0=[0,[0,Yx,0,xr,L]];break x}if(lx===0){if(Vx===0&&_x===0&&zx<=ax){p1(function($0){return D0(P,[0,$0[1],[11,E,$0[2][1][2][1]]])},Hx);var M0=[1,[0,hr,0,xr,L]];break x}if(ax===0&&_x===0&&zx<=Vx){p1(function($0){return D0(P,[0,$0[1],[11,E,$0[2][1][2][1]]])},Hx);var M0=[4,[0,Y,0,xr,L]];break x}}D0(P,[0,j,[5,E]]);var M0=Lx(R)}var sx=M0}return sx},p);return[0,S,C,t0([0,y],0,R)]}]}function a3(x){return[0,Ls(x)]}function id(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=ix(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var c=e[5],v=e[4],a=e[3],p=e[2],_=ix(x,p),y=e[1];if(_===0)return a===r?e:[1,y,x,r,v,c];if(0<=_){var S=id(x,r,c);return c===S?e:sB(v,p,a,S)}var E=id(x,r,v);return v===E?e:sB(E,p,a,c)}var dO=oB([0,function(x,r){var e=r[2],t=x[2],u=hB(x[1],r[1]);return u===0?k(dB,t,e):u}]);function s6(x,r,e){var t=e[2][1],u=e[1];return Sr(t,H0)?r:y1[3].call(null,t,r)?(D0(x,[0,u,[0,t]]),r):y1[4].call(null,t,r)}function yO(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return u1(function(i,c){var v=c[0]===0?c[1][2][2]:c[1][2][1];return yO(i)(v)},x,t);case 1:var u=e[1][1];return u1(function(i,c){if(c[0]===2)return i;var v=c[1][2][1];return yO(i)(v)},x,u);case 2:return[0,e[1][1],x];default:return gx(Rl0)}}}var z0=zq(Ll0,Fl0[1]);function fd(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=fx(e),c=M(e);if(typeof c=="number")switch(c){case 103:var v=f0(e);return b0(e),[0,[0,i,[0,0,t0([0,v],0,R)]]];case 104:var a=f0(e);return b0(e),[0,[0,i,[0,1,t0([0,a],0,R)]]];case 126:if(t){var p=f0(e);return b0(e),[0,[0,i,[0,2,t0([0,p],0,R)]]]}break}else if(c[0]===4){var _=c[3];if(I(_,aa)){if(!I(_,Eg)&&u&&Hh(1,e)){var y=f0(e);return b0(e),[0,[0,i,[0,4,t0([0,y],0,R)]]]}}else if(u&&Hh(1,e)){var S=f0(e);b0(e);var E=M(e);x:{if(typeof E!="number"&&E[0]===4&&!I(E[3],Eg)){var j=fx(e);b0(e);var C=Zr(i,j),P=5;break x}var C=i,P=3}return[0,[0,C,[0,P,t0([0,S],0,R)]]]}}return 0}function jX(x,r,e,t,u){r===1&&Ot(u,76);var i=f0(u);b0(u);var c=xx(u);if(x)var v=t0([0,Fx(x[1],i)],[0,c],R),a=v,p=Bx(no0,t),_=-e;else var a=t0([0,i],[0,c],R),p=t,_=e;return[30,[0,_,p,a]]}function PX(x,r,e,t){var u=f0(t);b0(t);var i=xx(t);if(x)var c=t0([0,Fx(x[1],u)],[0,i],R),v=Bx(to0,e),a=c,p=v,_=eh(VP,r);else var a=t0([0,u],[0,i],R),p=e,_=r;return[31,[0,_,p,a]]}var Gr=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},NX=function x(r){return x.fun(r)},OX=function x(r){return x.fun(r)},gO=function x(r,e,t){return x.fun(r,e,t)},cd=function x(r){return x.fun(r)},_O=function x(r,e,t,u){return x.fun(r,e,t,u)},bO=function x(r){return x.fun(r)},wO=function x(r,e,t,u){return x.fun(r,e,t,u)},TO=function x(r){return x.fun(r)},EO=function x(r,e){return x.fun(r,e)},sd=function x(r){return x.fun(r)},CX=function x(r){return x.fun(r)},ad=function x(r,e,t,u){return x.fun(r,e,t,u)},od=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},DX=function x(r){return x.fun(r)},RX=function x(r,e){return x.fun(r,e)},SO=function x(r){return x.fun(r)},FX=function x(r){return x.fun(r)},LX=function x(r){return x.fun(r)},MX=function x(r){return x.fun(r)},UX=function x(r){return x.fun(r)},vd=function x(r,e){return x.fun(r,e)},qX=function x(r){return x.fun(r)},BX=function x(r){return x.fun(r)},AO=function x(r){return x.fun(r)},a6=function x(r,e){return x.fun(r,e)},XX=function x(r){return x.fun(r)},Us=function x(r){return x.fun(r)},o6=function x(r){return x.fun(r)},JX=function x(r,e){return x.fun(r,e)},IO=function x(r){return x.fun(r)},KX=function x(r){return x.fun(r)},YX=function x(r){return x.fun(r)},zX=function x(r){return x.fun(r)},VX=function x(r){return x.fun(r)},v6=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},GX=function x(r){return x.fun(r)},jO=function x(r){return x.fun(r)},ld=function x(r){return x.fun(r)},PO=function x(r,e){return x.fun(r,e)},pd=function x(r,e,t,u){return x.fun(r,e,t,u)},NO=function x(r){return x.fun(r)},Aa=function x(r){return x.fun(r)},WX=function x(r){return x.fun(r)},Ia=function x(r){return x.fun(r)},kd=function x(r){return x.fun(r)},l6=function x(r){return x.fun(r)},OO=function x(r,e){return x.fun(r,e)},$X=function x(r,e){return x.fun(r,e)},HX=function x(r){return x.fun(r)},QX=function x(r){return x.fun(r)},md=function x(r){return x.fun(r)},ZX=function x(r,e,t){return x.fun(r,e,t)};m0(Gr,function(x){return l(OX,x)}),m0(o3,function(x){return 1-g2(x)&&Kx(x,S1),r0(0,function(r){return W(r,86),l(Gr,r)},x)}),m0(NX,function(x){1-g2(x)&&Kx(x,S1);var r=fx(x);return W(x,86),nd(x)?[2,k(PO,x,r)]:[1,r0([0,r],Gr,x)]}),m0(OX,function(x){var r=fx(x),e=fO(0,x);return B0(gO,e,r,l(cd,e))}),m0(gO,function(x,r,e){var t=M(x);return typeof t=="number"&&t===41?r0([0,r],function(u){W(u,41);var i=l(cd,fO(1,u));xd(u,85);var c=l(Gr,u);xd(u,86);var v=l(Gr,u);return[17,[0,e,i,c,v,t0(0,[0,xx(u)],R)]]},x):e}),m0(cd,function(x){var r=fx(x);if(M(x)===89){var e=f0(x);b0(x);var t=e}else var t=0;return St(_O,x,[0,t],r,l(bO,x))}),m0(_O,function(x,r,e,t){var u=r?r[1]:0;if(M(x)!==89)return t;var i=[0,t,0];return r0([0,e],function(c){for(var v=i;;){if(!f2(c,89)){var a=vx(v);if(a){var p=a[2];if(p){var _=p[2],y=p[1],S=a[1];return[22,[0,[0,S,y,_],t0([0,u],0,R)]]}}throw U0([0,Ar,eo0],1)}var v=[0,l(bO,c),v]}},x)}),m0(bO,function(x){var r=fx(x);if(M(x)===91){var e=f0(x);b0(x);var t=e}else var t=0;return St(wO,x,[0,t],r,l(TO,x))}),m0(wO,function(x,r,e,t){var u=r?r[1]:0;if(M(x)!==91)return t;var i=[0,t,0];return r0([0,e],function(c){for(var v=i;;){if(!f2(c,91)){var a=vx(v);if(a){var p=a[2];if(p){var _=p[2],y=p[1],S=a[1];return[23,[0,[0,S,y,_],t0([0,u],0,R)]]}}throw U0([0,Ar,ro0],1)}var v=[0,l(TO,c),v]}},x)}),m0(TO,function(x){return k(EO,x,l(sd,x))}),m0(EO,function(x,r){var e=M(x);if(typeof e=="number"&&e===11&&!x[15]){var t=k(a6,x,r);return I1(v6,1,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),m0(sd,function(x){var r=M(x);return typeof r=="number"&&r===85?r0(0,function(e){var t=f0(e);W(e,85);var u=t0([0,t],0,R);return[11,[0,l(sd,e),u]]},x):l(CX,x)}),m0(CX,function(x){var r=fx(x);return St(ad,0,x,r,l(LX,x))}),m0(ad,function(x,r,e,t){var u=x?x[1]:0;if(K1(r))return t;var i=M(r);if(typeof i=="number"){if(i===6)return b0(r),I1(od,u,0,r,e,t);if(i===10){var c=vr(1,r);return typeof c=="number"&&c===6?(Kx(r,Za0),W(r,10),W(r,6),I1(od,u,0,r,e,t)):(Kx(r,xo0),t)}if(i===83)return b0(r),M(r)!==6&&Kx(r,41),W(r,6),I1(od,1,1,r,e,t)}return t}),m0(od,function(x,r,e,t,u){return St(ad,[0,x],e,t,r0([0,t],function(i){if(!r&&f2(i,7))return[16,[0,u,t0(0,[0,xx(i)],R)]];var c=l(Gr,i);W(i,7);var v=[0,u,c,t0(0,[0,xx(i)],R)];return x?[21,[0,v,r]]:[20,v]},e))}),m0(DX,function(x){return k(RX,x,k(z0[13],0,x))}),m0(RX,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(M(x)===10&&kX(1,x)){var i=r0([0,u],function(a){return function(p){return W(p,10),[0,a,g1(p)]}}(t),x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return t}}),m0(SO,function(x){if(L2(x,0),M(x)===4){b0(x);var r=l(SO,x);W(x,5);var e=r}else var e=Jc(x)?[0,l(DX,x)]:(Kx(x,46),0);return J2(x),e}),m0(FX,function(x){return r0(0,function(r){var e=f0(r);W(r,46);var t=l(SO,r);if(!t)return Qa0;var u=t[1],i=K1(r)?0:l(kd,r);return[24,[0,u,i,t0([0,e],0,R)]]},x)}),m0(LX,function(x){var r=fx(x),e=M(x);x:{r:{if(typeof e=="number")switch(e){case 4:return l(zX,x);case 6:return l(BX,x);case 46:return l(FX,x);case 53:return r0(0,function($){var x0=f0($);b0($);var e0=l(NO,$),Z=e0[2],c0=e0[1];return[15,[0,Z,c0,t0([0,x0],0,R)]]},x);case 98:return l(VX,x);case 104:return r0(0,MX,x);case 106:var t=f0(x);return b0(x),[0,r,[10,t0([0,t],[0,xx(x)],R)]];case 125:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=l(Gr,$);return[25,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 126:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=l(Gr,$);return[27,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 127:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=r0(0,function(c0){var d0=l(Aa,c0);function n0(P0){if(1-f2(P0,41))throw U0(Yc,1);var h0=l(cd,P0);if(!P0[16]&&M(P0)===85)throw U0(Yc,1);return[1,[0,h0[1],h0]]}return[0,d0,rd(c0,[0,fx(c0)],n0),1,0,0]},$);return[18,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 0:case 2:var u=St(pd,0,1,1,x);return[0,u[1],[14,u[2]]];case 131:case 132:break r;case 41:case 42:break;case 30:case 31:var i=f0(x);return b0(x),[0,r,[32,[0,e===31?1:0,t0([0,i],[0,xx(x)],R)]]];default:break x}else switch(e[0]){case 2:var c=e[1],v=c[3],a=c[2],p=c[1];c[4]&&Ot(x,76);var _=f0(x);return b0(x),[0,p,[29,[0,a,v,t0([0,_],[0,xx(x)],R)]]];case 4:var y=e[3];if(I(y,ta)){if(I(y,wo)){if(!I(y,dr))break r}else if(x[28][1]){var S=vr(1,x);e:if(typeof S=="number"){if(S!==4&&S!==98)break e;return l(GX,x)}var E=l(l6,x);return[0,E[1],[19,E[2]]]}}else if(x[28][1])return r0(0,function($){var x0=f0($);Kc($,Ga0);var e0=Y1($,l(Ia,$)),Z=l(IO,$);if(lO($))var n0=kO($,l(md,$)),P0=Z;else var c0=l(md,$),d0=I2($)[2],n0=c0,P0=k(d0,Z,function(h0,g0){return k(Wx(h0,420776873,12),h0,g0)});return[13,[0,e0,P0,n0,t0([0,x0],0,R)]]},x);break;case 7:if(I(e[1],M3))break x;return Kx(x,84),[0,r,Wa0];case 12:var j=e[3],C=e[2],P=e[1],O=0;return r0(0,function($){return jX(O,P,C,j,$)},x);case 13:var F=e[3],K=e[2],U=0;return r0(0,function($){return PX(U,K,F,$)},x);default:break x}var V=l(l6,x);return[0,V[1],[19,V[2]]]}return r0(0,function($){return[26,l(AO,$)]},x)}var Q=l(qX,x);return Q?[0,r,Q[1]]:(_2($a0,x),[0,r,Ha0])}),m0(MX,function(x){var r=f0(x);b0(x);var e=M(x);if(typeof e!="number")switch(e[0]){case 12:return jX([0,r],e[1],e[2],e[3],x);case 13:return PX([0,r],e[2],e[3],x)}return _2(za0,x),Va0}),m0(UX,function(x){x:{if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:break;default:break x}else if(x[0]!==11)break x;return 1}return 0}),m0(vd,function(x,r){var e=f0(x),t=r0(0,b0,x)[1],u=t0([0,e],[0,xx(x)],R);return[0,[19,[0,[0,rn(0,[0,t,r])],0,u]]]}),m0(qX,function(x){var r=f0(x),e=M(x);if(typeof e=="number")switch(e){case 29:return b0(x),[0,[4,t0([0,r],[0,xx(x)],R)]];case 114:return b0(x),[0,[0,t0([0,r],[0,xx(x)],R)]];case 115:return b0(x),[0,[1,t0([0,r],[0,xx(x)],R)]];case 116:return b0(x),[0,[2,t0([0,r],[0,xx(x)],R)]];case 117:return b0(x),[0,[5,t0([0,r],[0,xx(x)],R)]];case 118:return b0(x),[0,[6,t0([0,r],[0,xx(x)],R)]];case 119:return b0(x),[0,[7,t0([0,r],[0,xx(x)],R)]];case 120:return b0(x),[0,[3,t0([0,r],[0,xx(x)],R)]];case 121:return b0(x),[0,[9,t0([0,r],[0,xx(x)],R)]];case 122:return b0(x),[0,[33,t0([0,r],[0,xx(x)],R)]];case 123:return b0(x),[0,[34,t0([0,r],[0,xx(x)],R)]];case 124:return b0(x),[0,[35,t0([0,r],[0,xx(x)],R)]];case 128:return k(vd,x,Ja0);case 129:return k(vd,x,Ka0);case 130:return k(vd,x,Ya0)}else if(e[0]===11){var t=e[1];b0(x);var u=xx(x),i=t?-883944824:737456202;return[0,[8,i,t0([0,r],[0,u],R)]]}return 0}),m0(BX,function(x){return r0(0,function(r){var e=f0(r);W(r,6);for(var t=Bo(0,r),u=0;;){var i=M(t);x:{r:if(typeof i=="number"){if(i!==7&&Dr!==i)break r;var _=[0,vx(u),0];break x}var c=r0(0,function(E){if(!f2(E,12)){var j=M(E);r:{if(typeof j=="number"&&(Ze===j||_t===j&&Ms(1,E))){var C=fd(0,0,E);break r}var C=0}var P=Jc(E),O=vr(1,E);if(P&&typeof O=="number"&&1>=O+hs>>>0){var F=g1(E),K=f2(E,85);return W(E,86),[0,[1,[0,F,l(Gr,E),C,K]]]}var U=C?1:0;return U&&Kx(E,45),[0,[0,l(Gr,E)]]}var V=M(E);r:if(typeof V=="number"){if(10<=V){if(Dr!==V)break r}else{if(7>V)break r;switch(V-7|0){case 0:break;case 1:break r;default:return _2(Xa0,E),b0(E),0}}return 0}var Q=Jc(E),$=vr(1,E);r:{if(Q&&typeof $=="number"&&1>=$+hs>>>0){var x0=g1(E);M(E)===85&&(Kx(E,44),b0(E)),W(E,86);var e0=[0,x0];break r}var e0=0}return[0,[2,[0,e0,l(Gr,E)]]]},t),v=c[2],a=c[1];if(v){var p=[0,[0,a,v[1]],u];M(t)!==7&&W(t,9);var u=p;continue}var _=[0,vx(u),1]}var y=_[2],S=_[1];return W(r,7),[28,[0,S,y,t0([0,e],[0,xx(r)],R)]]}},x)}),m0(AO,function(x){var r=f0(x),e=M(x);x:{if(typeof e=="number")switch(e){case 131:var t=1;break x;case 132:var t=2;break x}else if(e[0]===4&&!I(e[3],dr)){var t=0;break x}var t=gx(Ba0)}var u=fx(x);b0(x);var i=xx(x),c=l(sd,x);return[0,u,c,t0([0,r],[0,i],R),t]}),m0(a6,function(x,r){return[0,r[1],[0,0,r,0]]}),m0(XX,function(x){return r0(0,function(r){L2(r,0);var e=k(z0[13],0,r);J2(r),1-g2(r)&&Kx(r,S1);var t=f2(r,85);return W(r,86),[0,[0,e],l(Gr,r),t]},x)});function xJ(x){var r=vr(1,x);return typeof r=="number"&&1>=r+hs>>>0?l(XX,x):k(a6,x,l(Gr,x))}function lw0(x,r,e){for(var t=r,u=e;;){var i=M(x);x:if(typeof i=="number")switch(i){case 5:case 12:case 113:var c=i===12?[0,r0(0,function(S){var E=f0(S);W(S,12);var j=t0([0,E],0,R);return[0,xJ(S),j]},x)]:0;return[0,t,vx(u),c,0]}else if(i[0]===4&&!I(i[3],uo)){if(vr(1,x)!==86&&vr(1,x)!==85)break x;var v=t!==0?1:0,a=v||(u!==0?1:0);a&&Kx(x,89);var p=r0(0,function(E){var j=f0(E);b0(E),M(E)===85&&Kx(E,88);var C=t0([0,j],0,R);return[0,l(o3,E),C]},x);M(x)!==5&&W(x,9);var t=[0,p];continue}var _=[0,xJ(x),u];M(x)!==5&&W(x,9);var u=_}}m0(Us,function(x){var r=0;return function(e){return lw0(x,r,e)}}),m0(o6,function(x){return r0(0,function(r){var e=f0(r);W(r,4);var t=k(Us,r,0),u=f0(r);W(r,5);var i=F2([0,e],[0,xx(r)],u,R);return[0,t[1],t[2],t[3],i]},x)}),m0(JX,function(x,r){for(var e=r;;){var t=M(x);x:if(typeof t=="number"){var u=t-5|0;if(7>>0){if(R7!==u)break x}else if(5>=u-1>>>0)break x;var i=t===12?[0,r0(0,function(a){var p=f0(a);W(a,12);var _=vr(1,a);r:{if(typeof _=="number"){if(_===85){L2(a,0);var y=k(z0[13],0,a);J2(a),W(a,85),W(a,86);var E=1,j=[0,y];break r}if(_===86){L2(a,0);var S=k(z0[13],0,a);J2(a),W(a,86);var E=0,j=[0,S];break r}}var E=0,j=0}var C=l(Gr,a);return[0,j,C,E,t0([0,p],0,R)]},x)]:0;return[0,vx(e),i,0]}var c=[0,r0(0,function(a){var p=M(a);x:{if(typeof p!="number"&&p[0]===2){var _=p[1],y=_[4],S=_[3],E=_[2],j=_[1];y&&Ot(a,76),W(a,[2,[0,j,E,S,y]]);var P=[1,[0,j,[0,E,S,t0(0,[0,xx(a)],R)]]];break x}L2(a,0);var C=k(z0[13],0,a);J2(a);var P=[0,C]}var O=f2(a,85);return[0,P,l(o3,a),O]},x),e];M(x)!==5&&W(x,9);var e=c}}),m0(IO,function(x){return r0(0,function(r){var e=f0(r);W(r,4);var t=k(JX,r,0),u=f0(r);W(r,5);var i=F2([0,e],[0,xx(r)],u,R);return[0,t[1],t[2],i]},x)}),m0(KX,function(x){var r=f0(x);W(x,4);var e=Bo(0,x),t=M(e);x:{r:{if(typeof t=="number")switch(t){case 5:var _=qa0;break x;case 131:var u=vr(1,e);e:{if(typeof u=="number"&&u===86){var i=[0,k(Us,e,0)];break e}var i=[1,l(Gr,e)]}var _=i;break x;case 42:break;case 12:case 113:var _=[0,k(Us,e,0)];break x;default:break r}else{if(t[0]!==4)break r;if(!I(t[3],dr)){var c=vr(1,e);e:{if(typeof c=="number"&&1>=c+hs>>>0){var v=[0,k(Us,e,0)];break e}var v=[1,l(Gr,e)]}var _=v;break x}}var _=l(YX,e);break x}if(l(UX,t)){var a=vr(1,e);r:{if(typeof a=="number"&&1>=a+hs>>>0){var p=[0,k(Us,e,0)];break r}var p=[1,l(Gr,e)]}var _=p}else var _=[1,l(Gr,e)]}if(_[0]===0)var y=_;else{var S=_[1];if(x[15])var E=_;else{var j=M(x);x:{if(typeof j=="number"){if(j===5){if(vr(1,x)===11){var C=[0,k(Us,x,[0,k(a6,x,S),0])];break x}var C=[1,S];break x}if(j===9){W(x,9);var C=[0,k(Us,x,[0,k(a6,x,S),0])];break x}}var C=_}var E=C}var y=E}var P=f0(x);W(x,5);var O=xx(x);if(y[0]===0)var F=y[1],K=F2([0,r],[0,O],P,R),U=[0,[0,F[1],F[2],F[3],K]];else var U=[1,B0(ZX,y[1],r,O)];return U}),m0(YX,function(x){var r=vr(1,x);if(typeof r=="number"&&1>=r+hs>>>0)return[0,k(Us,x,0)];var e=fx(x),t=k($X,x,l(Aa,x)),u=l(B0(ad,0,x,e),t),i=l(l(EO,x),u),c=l(k(l(wO,x),0,e),i),v=l(k(l(_O,x),0,e),c);return[1,l(k(gO,fO(0,x),e),v)]}),m0(zX,function(x){var r=fx(x),e=r0(0,KX,x),t=e[2],u=e[1];return t[0]===0?I1(v6,1,x,r,0,[0,u,t[1]]):t[1]}),m0(VX,function(x){var r=fx(x),e=Y1(x,l(Ia,x));return I1(v6,1,x,r,e,l(o6,x))}),m0(v6,function(x,r,e,t,u){return r0([0,e],function(i){return W(i,11),[12,[0,t,u,l(jO,i),0,x]]},r)}),m0(GX,function(x){var r=fx(x);b0(x);var e=Y1(x,l(Ia,x));return I1(v6,0,x,r,e,l(o6,x))}),m0(jO,function(x){return nd(x)?[1,l(ld,x)]:[0,l(Gr,x)]}),m0(ld,function(x){function r(e){var t=f0(e);W(e,y2);var u=Fx(t,f0(e));return[0,[0,l(Gr,e)],u]}return r0(0,function(e){var t=f0(e),u=f2(e,dl)?1:f2(e,kl)?2:0;L2(e,0);var i=g1(e);J2(e);x:if(u===2)var c=r(e),v=c[2],a=c[1];else{var p=M(e);if(typeof p=="number"&&y2===p){var _=r(e),v=_[2],a=_[1];break x}var v=0,a=0}return[0,u,[0,i,a],F2([0,t],0,v,R)]},x)}),m0(PO,function(x,r){return r0([0,r],ld,x)});function hd(x,r,e){return r0([0,r],function(t){var u=l(o6,t);return W(t,86),[0,e,u,l(jO,t),0,1]},x)}function rJ(x,r,e,t,u){var i=nn(x,t),c=hd(x,r,Y1(x,l(Ia,x))),v=[0,c[1],[12,c[2]]],a=[0,i,[0,v],0,e!==0?1:0,0,1,0,t0([0,u],0,R)];return[0,[0,v[1],a]]}function dd(x,r,e,t,u,i,c){var v=c[2],a=c[1];return 1-g2(x)&&Kx(x,S1),[0,r0([0,r],function(p){var _=f2(p,85),y=dX(p,86)?l(Gr,p):[0,a,Ua0];return[0,v,[0,y],_,t!==0?1:0,u!==0?1:0,0,e,t0([0,i],0,R)]},x)]}function p6(x,r){var e=M(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return;break;case 3:if(x)return;break;case 8:case 9:return b0(r)}return tn(r,9)}function k6(x,r){if(r)return D0(x,[0,r[1][1],$f])}function m6(x,r){if(r)return D0(x,[0,r[1],94])}function pw0(x,r,e,t,u,i,c,v,a){for(var p=e,_=t,y=u,S=i,E=c,j=v;;){var C=M(x);if(typeof C=="number")switch(C){case 6:m6(x,E);var P=vr(1,x);if(typeof P=="number"&&P===6)return k6(x,y),[4,r0([0,a],function(B){var G0=Fx(j,f0(B));W(B,6),W(B,6);var W0=g1(B);W(B,7),W(B,7);var Y0=M(B);x:{r:if(typeof Y0=="number"){if(Y0!==4&&Y0!==98)break r;var V0=hd(B,a,Y1(B,l(Ia,B))),S0=0,q0=[0,V0[1],[12,V0[2]]],yx=1,cx=0;break x}var ex=f2(B,85),Q0=xx(B);W(B,86);var S0=Q0,q0=l(Gr,B),yx=0,cx=ex}return[0,W0,q0,cx,S!==0?1:0,yx,t0([0,G0],[0,S0],R)]},x)];var O=Fx(j,f0(x));W(x,6);var F=vr(1,x);return typeof F!="number"&&F[0]===4&&!I(F[3],aa)&&S===0?[5,r0([0,a],function(B){var G0=l(Aa,B),W0=G0[1];b0(B);var Y0=l(Gr,B);W(B,7);var V0=M(B);x:{r:{var ex=[0,G0,[0,W0],0,0,0];if(typeof V0=="number"){var Q0=V0+LA|0;if(1>>0){if(Q0!==-18)break r;b0(B);var S0=2}else var S0=Q0?(b0(B),W(B,85),1):(b0(B),W(B,85),0);var q0=S0;break x}}var q0=3}W(B,86);var yx=l(Gr,B);return[0,[0,W0,ex],yx,Y0,y,q0,t0([0,O],[0,xx(B)],R)]},x)]:[2,r0([0,a],function(B){if(vr(1,B)===86){var G0=g1(B);W(B,86);var W0=[0,G0]}else var W0=0;var Y0=l(Gr,B);W(B,7);var V0=xx(B);W(B,86);var ex=l(Gr,B);return[0,W0,Y0,ex,S!==0?1:0,y,t0([0,O],[0,V0],R)]},x)];case 42:if(p){if(y!==0)throw U0([0,Ar,Oa0],1);var K=[0,fx(x)],U=Fx(j,f0(x));b0(x);var p=0,_=0,S=K,j=U;continue}break;case 126:if(y===0){if(!Ms(1,x)&&vr(1,x)!==6)break;var p=0,_=0,y=fd(Ca0,0,x);continue}break;case 103:case 104:if(y===0){var p=0,_=0,y=fd(0,0,x);continue}break;case 4:case 98:return m6(x,E),k6(x,y),[3,r0([0,a],function(B){var G0=fx(B),W0=hd(B,G0,Y1(B,l(Ia,B)));return[0,W0,S!==0?1:0,t0([0,j],0,R)]},x)]}else if(C[0]===4&&!I(C[3],Rj)&&_){if(y!==0)throw U0([0,Ar,Da0],1);var V=[0,fx(x)],Q=Fx(j,f0(x));b0(x);var p=0,_=0,E=V,j=Q;continue}if(S){var $=S[1];if(E)return gx(Ra0);if(typeof C=="number"&&1>=C+hs>>>0)return dd(x,a,y,0,E,0,[0,$,[3,rn(t0([0,j],0,R),[0,$,Fa0])]])}else if(E){var x0=E[1];if(typeof C=="number"&&1>=C+hs>>>0)return dd(x,a,y,S,0,0,[0,x0,[3,rn(t0([0,j],0,R),[0,x0,La0])]])}var e0=function(B){L2(B,0);var G0=k(z0[20],0,B);return J2(B),G0},Z=f0(x),c0=e0(x),d0=c0[1],n0=c0[2];x:if(n0[0]===3){var P0=n0[1][2][1];if(I(P0,bo)&&I(P0,Dv))break x;var h0=M(x);if(typeof h0=="number"){var g0=h0-5|0;if(92>>0){if(94>=g0+1>>>0)return m6(x,E),k6(x,y),rJ(x,a,S,n0,j)}else if(1>=g0+ZR>>>0)return dd(x,a,y,S,E,j,[0,d0,n0])}nn(x,n0);var v0=e0(x),p0=Sr(P0,bo),w0=Fx(j,Z);return m6(x,E),k6(x,y),[0,r0([0,a],function(B){var G0=v0[1],W0=nn(B,v0[2]),Y0=hd(B,a,0),V0=Y0[2][2];r:if(p0){var ex=V0[2];e:{if(!ex[1]){if(!ex[2]&&!ex[3])break e;D0(B,[0,G0,23]);break r}D0(B,[0,G0,24])}}else{var Q0=V0[2];if(Q0[1])D0(B,[0,G0,66]);else{var S0=Q0[2];e:{if(!Q0[3]){if(S0&&!S0[2])break e;D0(B,[0,G0,65]);break r}D0(B,[0,G0,65])}}}var q0=t0([0,w0],0,R),yx=0,cx=0,Dx=0,Ix=S!==0?1:0,Xx=0,Z0=p0?[1,Y0]:[2,Y0];return[0,W0,Z0,Xx,Ix,Dx,cx,yx,q0]},x)]}var T0=c0[2],E0=M(x);x:if(typeof E0=="number"){if(E0!==4&&E0!==98)break x;return m6(x,E),k6(x,y),rJ(x,a,S,T0,j)}var N0=S!==0?1:0;x:if(T0[0]===3){var X0=T0[1],A0=X0[2][1];r:{var rx=X0[1];if(r){if(!Sr(ho,A0)&&(!N0||!Sr(sa,A0)))break r;D0(x,[0,rx,[15,A0,N0,0,0]]);break x}}}return dd(x,a,y,S,E,j,[0,d0,T0])}}m0(pd,function(x,r,e,t){var u=r&&(M(t)===2?1:0),i=r&&1-u;return r0(0,function(c){var v=f0(c),a=u?2:0;W(c,a);var p=Bo(0,c);x:{r:{e:{t:{n:{var _=Ma0;u:for(;;){var y=_[3],S=_[2],E=_[1];if(x&&e)throw U0([0,Ar,Pa0],1);if(i&&!e)throw U0([0,Ar,Na0],1);var j=fx(p),C=M(p);if(typeof C=="number"){if(13<=C){if(Dr===C)break r}else if(C)switch(C-1|0){case 0:if(!u)break e;break;case 2:if(u)break t;break;case 11:if(!e){b0(p);var P=M(p);if(typeof P=="number"&&10>P)switch(P){case 1:case 3:case 8:case 9:D0(p,[0,j,32]),p6(u,p);continue}var O=oO(p);sO(p)(O),D0(p,[0,j,97]),b0(p),p6(u,p);continue}var F=f0(p);b0(p);var K=M(p);if(typeof K=="number"&&10>K)switch(K){case 1:case 3:case 8:case 9:p6(u,p);var U=M(p);if(typeof U=="number"){var V=U-1|0;if(2>=V>>>0)switch(V){case 0:if(i)break n;break;case 1:break;default:break u}}D0(p,[0,j,92]);continue}var Q=[1,r0([0,j],function(T0){return function(E0){var N0=t0([0,T0],0,R);return[0,l(Gr,E0),N0]}}(F),p)];p6(u,p);var _=[0,[0,Q,E],S,y];continue}}var $=pw0(p,x,x,x,0,0,0,0,j);p6(u,p);var _=[0,[0,$,E],S,y]}D0(p,[0,j,31]);var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),1,F];break x}var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),S,y]}var e0=x0[3],Z=x0[2],c0=x0[1],d0=Fx(e0,f0(c)),n0=u?3:1;return W(c,n0),[0,u,Z,c0,F2([0,v],[0,xx(c)],d0,R)]},t)}),m0(NO,function(x){if(f2(x,41))for(var r=0;;){var e=[0,l(l6,x),r],t=M(x);if(typeof t=="number"&&t===9){W(x,9);var r=e;continue}var u=bX(x,vx(e));break}else var u=0;return[0,u,St(pd,0,0,0,x)]}),m0(Aa,function(x){var r=g1(x),e=r[2],t=e[1],u=r[1],i=e[2];return aO(t)&&D0(x,[0,u,96]),[0,u,[0,t,i]]}),m0(WX,function(x){return r0(0,function(r){var e=l(Aa,r),t=M(r);x:{if(typeof t=="number"){if(t===41){var u=1,i=u,c=[1,r0(0,function(p){return b0(p),l(Gr,p)},r)];break x}if(t===86){var i=0,c=[1,l(o3,r)];break x}}var i=0,c=[0,Ls(r)]}return[0,e,c,i]},x)});function eJ(x,r){var e=vX(x,r);if(e)var t=e;else{x:{if(typeof r=="number"&&1>=r+LA>>>0){var u=1;break x}var u=0}if(!u){x:{if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break;default:break x}else switch(r[0]){case 4:if(aO(r[3]))return 1;break x;case 11:break;default:break x}return 1}return 0}var t=u}return t}m0(Ia,function(x){if(M(x)!==98)return 0;1-g2(x)&&Kx(x,S1);var r=r0(0,function(t){var u=f0(t);W(t,98);for(var i=0,c=0;;){if(eJ(t,M(t)))var v=mO(0,function(O){return function(F){var K=fd(0,ja0,F),U=l(WX,F),V=U[2],Q=V[3],$=V[2],x0=V[1],e0=U[1],Z=M(F);x:{if(typeof Z=="number"&&Z===82){b0(F);var c0=1,d0=[0,l(Gr,F)];break x}O&&D0(F,[0,e0,52]);var c0=O,d0=0}return[0,[0,x0,$,Q,K,d0],c0]}}(i),t),a=v[2],p=[0,v[1],c];else var a=i,p=c;var _=M(t);x:{if(typeof _=="number"){var y=_+TM|0;if(14>>0){if(y===-90){b0(t);var i=a,c=p;continue}}else if(12>>0){var C=vx(p);break x}}r:{e:{t:{if(typeof _!="number"){if(_[0]!==4)break e;var S=_[3];if(!$h(S)){n:{if(I(S,_o)&&I(S,M1)){var E=0;break n}var E=1}if(!E){if(I(S,sl)){if(!I(S,lo))break t;if(I(S,qu))break e;break t}if(!t[28][2])break e;var j=1;break r}}var j=1;break r}switch(_){case 4:case 82:break;default:break e}}var j=1;break r}var j=0}if(!j){if(eJ(t,_)){tn(t,9);var i=a,c=p;continue}W(t,9);var i=a,c=p;continue}tn(t,99);var C=vx(p)}var P=f0(t);return xd(t,99),[0,C,F2([0,u],[0,xx(t)],P,R)]}},x),e=r[1];return r[2][1]||D0(x,[0,e,51]),[0,r]}),m0(kd,function(x){return M(x)===98?[0,r0(0,function(r){var e=f0(r);W(r,98);for(var t=Bo(0,r),u=0;;){var i=M(t);x:if(typeof i=="number"){if(i!==99&&Dr!==i)break x;var c=vx(u),v=f0(t);return W(t,99),[0,c,F2([0,e],[0,xx(t)],v,R)]}var a=[0,l(Gr,t),u];M(t)!==99&&W(t,9);var u=a}},x)]:0}),m0(l6,function(x){return k(OO,x,l(Aa,x))}),m0(OO,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],c=u[1];if(M(t)===10&&Hh(1,t)){var v=r0([0,c],function(S){return function(E){return W(E,10),[0,S,l(Aa,E)]}}(i),t),a=v[1],u=[0,a,[1,[0,a,v[2]]]];continue}if(M(t)===98)var p=I2(t)[2],_=k(p,i,function(y,S){return k(Wx(y,-860373976,61),y,S)});else var _=i;return[0,_,l(kd,t),0]}}return r0([0,r[1]],e,x)}),m0($X,function(x,r){var e=k(OO,x,r);return[0,e[1],[19,e[2]]]}),m0(HX,function(x){var r=M(x);return typeof r=="number"&&r===86?l(NX,x):[0,Ls(x)]}),m0(QX,function(x){var r=M(x);return typeof r=="number"&&r===86?[1,l(o3,x)]:[0,Ls(x)]}),m0(md,function(x){var r=M(x);x:{if(typeof r=="number")switch(r){case 86:var e=fx(x);1-g2(x)&&Kx(x,S1),Kx(x,34),b0(x);var t=r0(0,Gr,x);return[1,t[1],[0,e,t[2],0,0]];case 131:case 132:break;default:break x}else if(r[0]!==4||I(r[3],dr))break x;1-g2(x)&&Kx(x,S1);var u=r0([0,fx(x)],AO,x);return[1,u[1],u[2]]}return[0,Ls(x)]}),m0(ZX,function(x,r,e){var t=x[2],u=x[1];function i(rr){return N1(rr,t0([0,r],[0,e],R))}switch(t[0]){case 0:var Z0=[0,i(t[1])];break;case 1:var Z0=[1,i(t[1])];break;case 2:var Z0=[2,i(t[1])];break;case 3:var Z0=[3,i(t[1])];break;case 4:var Z0=[4,i(t[1])];break;case 5:var Z0=[5,i(t[1])];break;case 6:var Z0=[6,i(t[1])];break;case 7:var Z0=[7,i(t[1])];break;case 8:var c=i(t[2]),Z0=[8,t[1],c];break;case 9:var Z0=[9,i(t[1])];break;case 10:var Z0=[10,i(t[1])];break;case 11:var v=t[1],a=i(v[2]),Z0=[11,[0,v[1],a]];break;case 12:var p=t[1],_=p[5],y=i(p[4]),Z0=[12,[0,p[1],p[2],p[3],y,_]];break;case 13:var S=t[1],E=i(S[4]),Z0=[13,[0,S[1],S[2],S[3],E]];break;case 14:var j=t[1],C=j[4],P=YN(C,t0([0,r],[0,e],R)),Z0=[14,[0,j[1],j[2],j[3],P]];break;case 15:var O=t[1],F=i(O[3]),Z0=[15,[0,O[1],O[2],F]];break;case 16:var K=t[1],U=i(K[2]),Z0=[16,[0,K[1],U]];break;case 17:var V=t[1],Q=i(V[5]),Z0=[17,[0,V[1],V[2],V[3],V[4],Q]];break;case 18:var $=t[1],x0=i($[2]),Z0=[18,[0,$[1],x0]];break;case 19:var e0=t[1],Z=i(e0[3]),Z0=[19,[0,e0[1],e0[2],Z]];break;case 20:var c0=t[1],d0=i(c0[3]),Z0=[20,[0,c0[1],c0[2],d0]];break;case 21:var n0=t[1],P0=n0[1],h0=n0[2],g0=i(P0[3]),Z0=[21,[0,[0,P0[1],P0[2],g0],h0]];break;case 22:var v0=t[1],p0=i(v0[2]),Z0=[22,[0,v0[1],p0]];break;case 23:var w0=t[1],T0=i(w0[2]),Z0=[23,[0,w0[1],T0]];break;case 24:var E0=t[1],N0=i(E0[3]),Z0=[24,[0,E0[1],E0[2],N0]];break;case 25:var X0=t[1],A0=i(X0[2]),Z0=[25,[0,X0[1],A0]];break;case 26:var rx=t[1],B=rx[4],G0=i(rx[3]),Z0=[26,[0,rx[1],rx[2],G0,B]];break;case 27:var W0=t[1],Y0=i(W0[2]),Z0=[27,[0,W0[1],Y0]];break;case 28:var V0=t[1],ex=i(V0[3]),Z0=[28,[0,V0[1],V0[2],ex]];break;case 29:var Q0=t[1],S0=i(Q0[3]),Z0=[29,[0,Q0[1],Q0[2],S0]];break;case 30:var q0=t[1],yx=i(q0[3]),Z0=[30,[0,q0[1],q0[2],yx]];break;case 31:var cx=t[1],Dx=i(cx[3]),Z0=[31,[0,cx[1],cx[2],Dx]];break;case 32:var Ix=t[1],Xx=i(Ix[2]),Z0=[32,[0,Ix[1],Xx]];break;case 33:var Z0=[33,i(t[1])];break;case 34:var Z0=[34,i(t[1])];break;default:var Z0=[35,i(t[1])]}return[0,u,Z0]});function tJ(x,r){if(M(x)!==4)return[0,0,t0([0,r],[0,xx(x)],R)];var e=Fx(r,f0(x));W(x,4),L2(x,0);var t=l(z0[9],x);return J2(x),W(x,5),[0,[0,t],t0([0,e],[0,xx(x)],R)]}function kw0(x){var r=f0(x);return W(x,66),tJ(x,r)}var mw0=0;function nJ(x){var r=Bo(0,x),e=M(r);return typeof e=="number"&&e===66?[0,r0(mw0,kw0,r)]:0}function hw0(x){var r=M(x);if(typeof r=="number"&&r===86){1-g2(x)&&Kx(x,S1);var e=Ls(x),t=fx(x);W(x,86);var u=M(x);if(typeof u=="number"&&u===66){var i=Bo(0,x);return[0,[0,e],[0,r0([0,t],function(a){var p=f0(a);return W(a,66),tJ(a,p)},i)]]}if(nd(x))return[0,[2,k(PO,x,t)],0];var c=[1,r0([0,t],Gr,x)],v=M(x)===66?s3(x,c):c;return[0,v,nJ(x)]}return[0,[0,Ls(x)],0]}function ve(x,r){var e=Fs(1,r);L2(e,1);var t=l(x,e);return J2(e),t}function qs(x){return ve(Gr,x)}function zc(x){return ve(Aa,x)}function De(x){return ve(Ia,x)}function uJ(x){return ve(kd,x)}function Yo(x){return ve(o3,x)}function CO(x){return ve(QX,x)}function DO(x){return ve(HX,x)}function RO(x){return ve(hw0,x)}function iJ(x){return ve(l6,x)}function FO(x){return ve(md,x)}var dw0=IX(z0);function ja(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return u1(yw0,x,e[1][1]);case 1:return u1(gw0,x,e[1][1]);case 2:var i=e[1][1],c=i[2][1],v=x[2],a=x[1],p=i[1];y1[3].call(null,c,v)&&D0(a,[0,p,77]);var _=i[2][1],y=i[1];return Xo(_)&&ct(a,[0,y,78]),i3(_)&&ct(a,[0,y,80]),[0,a,y1[4].call(null,c,v)];default:return D0(u,[0,t,20]),x}}function yw0(x){return function(r){return r[0]===0?ja(x,r[1][2][2]):ja(x,r[1][2][1])}}function gw0(x){return function(r){switch(r[0]){case 0:return ja(x,r[1][2][1]);case 1:return ja(x,r[1][2][1]);default:return x}}}function fJ(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,y1[1]],c=u1(function(v,a){return ja(v,a[2][1])},i,u);t&&ja(c,t[1][2][1])}function cJ(x,r,e,t){var u=x[5],i=t[0]===0?Ko(t[1]):0,c=Fs(u?0:r,x),v=r||u||1-i;if(!v)return v;if(e){var a=e[1],p=a[2][1],_=a[1];Xo(p)&&ct(c,[0,_,70]),i3(p)&&ct(c,[0,_,80])}if(t[0]===0)return fJ(c,t[1]);var y=t[1][2],S=y[2],E=y[1],j=[0,Yv,[0,[0,xn(function(P){var O=P[2],F=O[1],K=O[4],U=O[3],V=O[2],Q=F[0]===0?[3,F[1]]:[0,[0,Yv,F[1][2]]];return[0,[0,Yv,[0,Q,V,U,K]]]},E),[0,Yv],0]]],C=ja([0,c,y1[1]],j);S&&ja(C,S[1][2][1])}function v3(x,r,e,t){return cJ(x,r,e,[0,t])}function sJ(x,r){if(r!==12)return 0;var e=f0(x),t=r0(0,function(c){return W(c,12),k(z0[18],c,78)},x),u=t[2],i=t[1];return[0,[0,i,u,t0([0,e],0,R)]]}var LO=function x(r,e){return x.fun(r,e)};function _w0(x){M(x)===21&&Kx(x,89);var r=k(z0[18],x,78),e=M(x)===82?(W(x,82),[0,l(z0[10],x)]):0;return[0,r,e]}var bw0=0;m0(LO,function(x,r){var e=M(x);x:if(typeof e=="number"){var t=e-5|0;if(7>>0){if(R7!==t)break x}else if(5>=t-1>>>0)break x;var u=sJ(x,e),i=eh(function(v){return[0,v[1],[0,v[2],v[3]]]},u);return M(x)!==5&&Kx(x,61),[0,vx(r),i]}var c=r0(bw0,_w0,x);return M(x)!==5&&W(x,9),k(LO,x,[0,c,r])});function l3(x,r){function e(u){var i=uX(1,nO(r,uO(x,u))),c=f0(i);W(i,4);x:{if(g2(i)&&M(i)===21){var v=f0(i),a=r0(0,function(F){return W(F,21),M(F)===86?[0,Yo(F)]:(Kx(F,85),0)},i),p=a[2],_=a[1];if(!p){var S=0;break x}var y=p[1];M(i)===9&&b0(i);var S=[0,[0,_,[0,y,t0([0,v],0,R)]]];break x}var S=0}var E=k(LO,i,0),j=E[2],C=E[1],P=f0(i);return W(i,5),[0,S,C,j,F2([0,c],[0,xx(i)],P,R)]}var t=0;return function(u){return r0(t,e,u)}}function aJ(x,r,e,t,u){var i=oX(x,r,e,u);return k(z0[16],t,i)}function h6(x,r,e,t,u){var i=aJ(x,r,e,t,u);return[0,[0,i[1]],i[2]]}function ww0(x,r,e,t){var u=fx(x),i=M(x);x:{if(typeof i=="number")switch(i){case 103:var c=f0(x);b0(x);var p=[0,[0,u,[0,0,t0([0,c],0,R)]]];break x;case 104:var v=f0(x);b0(x);var p=[0,[0,u,[0,1,t0([0,v],0,R)]]];break x}else if(i[0]===4&&!I(i[3],ko)&&r){var a=f0(x);b0(x);var p=[0,[0,u,[0,2,t0([0,a],0,R)]]];break x}var p=0}x:if(p){var _=p[1][1];if(!e&&!t)break x;return D0(x,[0,_,$f]),0}return p}function zo(x){if(z2!==M(x))return Pv0;var r=f0(x);return b0(x),[0,1,r]}function yd(x){if(M(x)===64&&!t6(1,x)){var r=f0(x);return b0(x),[0,1,r]}return jv0}function Tw0(x){var r=yd(x),e=r[1],t=r[2],u=r0(0,function(O){var F=f0(O),K=M(O);x:{if(typeof K=="number"){if(K===15){b0(O);var U=zo(O),Q=U[2],$=U[1],x0=1;break x}}else if(K[0]===4&&!I(K[3],wo)&&!e){b0(O);var Q=0,$=0,x0=0;break x}tn(O,K);var V=zo(O),Q=V[2],$=V[1],x0=1}var e0=Rl([0,t,[0,F,[0,Q,0]]]),Z=O[7],c0=M(O);x:{if(Z&&typeof c0=="number"){if(c0===4){var h0=0,g0=0;break x}if(c0===98){var d0=Y1(O,De(O)),n0=M(O)===4?0:[0,Ct(O,k(z0[13],Ev0,O))],h0=n0,g0=d0;break x}}var P0=Jc(O)?Ct(O,k(z0[13],Sv0,O)):(hX(O,Av0),[0,fx(O),Iv0]),h0=[0,P0],g0=Y1(O,De(O))}var v0=l3(e,$)(O),p0=M(O)===86?v0:f6(O,v0),w0=RO(O),T0=w0[2],E0=w0[1];if(T0)var N0=_X(O,T0),X0=E0;else var N0=T0,X0=s3(O,E0);return[0,$,x0,g0,h0,p0,X0,N0,e0]},x),i=u[2],c=i[5],v=i[4],a=i[1],p=i[8],_=i[7],y=i[6],S=i[3],E=i[2],j=u[1],C=h6(x,e,a,0,Ko(c)),P=C[1];return v3(x,C[2],v,c),[27,[0,v,c,P,e,a,E,_,y,S,t0([0,p],0,R),j]]}var Ew0=0;function d6(x){return r0(Ew0,Tw0,x)}function MO(x,r){var e=f0(r);W(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(M(r)===48?1:0);else var i=t;i&&Kx(r,19);for(var c=0,v=0;;){var a=r0(0,function(P){var O=k(z0[18],P,81);if(f2(P,82))var F=0,K=[0,l(z0[10],P)];else{var U=O[1];if(O[2][0]===2)var F=0,K=0;else var F=[0,[0,U,58]],K=0}return[0,[0,O,K],F]},r),p=a[2],_=p[2],y=[0,[0,a[1],p[1]],c],S=_?[0,_[1],v]:v;if(!f2(r,9)){var E=vx(S);return[0,vx(y),e,E]}var c=y,v=S}}var Sw0=24;function oJ(x){return MO(Sw0,x)}function vJ(x){var r=MO(27,iO(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,vx(u1(function(i,c){return c[2][2]?i:[0,[0,c[1],57],i]},t,e))]}function lJ(x){return MO(28,iO(1,x))}function pJ(x){function r(t){return[20,dw0[1].call(null,x,t)]}var e=0;return function(t){return r0(e,r,t)}}var UO=function x(r,e){return x.fun(r,e)};function Aw0(x){var r=f0(x),e=M(x),t=vr(1,x);x:{r:if(typeof e!="number"&&e[0]===2){var u=e[1],i=u[4],c=u[3],v=u[2],a=u[1];e:{if(typeof t=="number")switch(t){case 85:case 86:break;default:break e}else{if(t[0]!==4)break e;if(I(t[3],Jt))break r}i&&Ot(x,76),W(x,[2,[0,a,v,c,i]]);var p=[1,[0,a,[0,v,c,t0([0,r],[0,xx(x)],R)]]];if(typeof t=="number"&&1>=t+hs>>>0){var _=t===85?1:0;Kx(x,[16,_,v]),_&&b0(x);var y=fx(x),C=0,P=[0,y,[2,[0,[0,y,wv0],CO(x),_]]],O=p;break x}b0(x);var C=0,P=k(z0[18],x,78),O=p;break x}}if(typeof t!="number"&&t[0]===4&&!I(t[3],Jt)){var S=[0,g1(x)];Kc(x,Tv0);var C=0,P=k(z0[18],x,78),O=S;break x}var E=B0(z0[14],x,0,78),j=E[2],C=1,P=[0,E[1],[2,j]],O=[0,j[1]]}var F=M(x)===82?(W(x,82),[0,l(z0[10],x)]):0;return[0,O,P,F,C]}var Iw0=0;m0(UO,function(x,r){var e=M(x);x:if(typeof e=="number"){var t=e-5|0;if(7>>0){if(R7!==t)break x}else if(5>=t-1>>>0)break x;var u=sJ(x,e),i=eh(function(v){return[0,v[1],[0,v[2],v[3]]]},u);return M(x)!==5&&Kx(x,61),[0,vx(r),i]}var c=r0(Iw0,Aw0,x);return M(x)!==5&&W(x,9),k(UO,x,[0,c,r])});function jw0(x){var r=uX(1,x),e=f0(r);W(r,4);var t=k(UO,r,0),u=t[2],i=t[1],c=f0(r);return W(r,5),[0,i,u,F2([0,e],[0,xx(r)],c,R)]}var Pw0=0;function Nw0(x){var r=r0(0,function(y){var S=f0(y);Kc(y,_v0);var E=Ct(y,k(z0[13],bv0,y)),j=Y1(y,De(y)),C=r0(Pw0,jw0,y);if(lO(y))var O=C;else var P=I2(y)[2],O=k(P,C,function(F,K){return k(Wx(F,842685896,11),F,K)});return[0,j,E,O,kO(y,FO(y)),S]},x),e=r[2],t=e[3],u=e[2],i=e[5],c=e[4],v=e[1],a=r[1],p=aJ(x,0,0,0,0),_=p[1];return cJ(x,p[2],[0,u],[1,t]),[3,[0,u,v,t,c,_,t0([0,i],0,R),a]]}var Ow0=0;function qO(x){return r0(Ow0,Nw0,x)}function f1(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return p1(function(u){return D0(x,u)},e),t}function BO(x,r,e){var t=x?x[1]:37;if(e[0]===0)var u=e[1];else{var i=e[2][2],c=e[1];p1(function(_){return D0(r,_)},i);var u=c}1-l(z0[23],u)&&D0(r,[0,u[1],t]);var v=u[2];x:if(v[0]===10){var a=u[1];if(Xo(v[1][2][1])){ct(r,[0,a,71]);break x}}return k(z0[19],r,u)}function XO(x,r){var e=zv(x[2],r[2]);return[0,zv(x[1],r[1]),e]}function kJ(x){var r=vx(x[2]);return[0,vx(x[1]),r]}function mJ(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0}var p3=function x(r){return x.fun(r)},Dt=function x(r){return x.fun(r)},hJ=function x(r){return x.fun(r)},JO=function x(r){return x.fun(r)},dJ=function x(r){return x.fun(r)},KO=function x(r){return x.fun(r)},yJ=function x(r){return x.fun(r)},gJ=function x(r){return x.fun(r)},y6=function x(r){return x.fun(r)},YO=function x(r){return x.fun(r)},zO=function x(r){return x.fun(r)},VO=function x(r){return x.fun(r)},_J=function x(r){return x.fun(r)},GO=function x(r){return x.fun(r)},gd=function x(r){return x.fun(r)},WO=function x(r){return x.fun(r)},bJ=function x(r){return x.fun(r)},Vo=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},$O=function x(r,e,t,u){return x.fun(r,e,t,u)},HO=function x(r){return x.fun(r)},_d=function x(r){return x.fun(r)},QO=function x(r){return x.fun(r)},ZO=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},wJ=function x(r,e,t,u){return x.fun(r,e,t,u)},xC=function x(r){return x.fun(r)},bd=function x(r,e,t){return x.fun(r,e,t)},TJ=function x(r){return x.fun(r)},wd=function x(r,e,t){return x.fun(r,e,t)},rC=function x(r){return x.fun(r)},EJ=function x(r){return x.fun(r)},eC=function x(r,e){return x.fun(r,e)},tC=function x(r,e,t,u){return x.fun(r,e,t,u)},SJ=function x(r){return x.fun(r)},nC=function x(r,e,t){return x.fun(r,e,t)},AJ=function x(r){return x.fun(r)},IJ=function x(r){return x.fun(r)},uC=function x(r){return x.fun(r)},Td=function x(r,e,t){return x.fun(r,e,t)};function Cw0(x){var r=x[2];switch(r[0]){case 23:var e=r[1],t=e[1][2][1];if(I(t,R1)){if(!I(t,no)&&!I(e[2][2][1],Rw))return 0}else if(!I(e[2][2][1],ml))return 0;break;case 0:case 10:case 22:case 25:break;default:return 0}return 1}function iC(x){var r=fx(x),e=l(KO,x),t=l(dJ,x);if(!t)return e;var u=t[1];return[0,r0([0,r],function(i){var c=BO(0,i,e);return[4,[0,u,c,l(Dt,i),0]]},x)]}function Dw0(x,r){if(typeof r=="number"&&r===80)return 0;throw U0(Yc,1)}function jJ(x){var r=Wh(Dw0,x),e=iC(r),t=M(r);if(typeof t=="number"){if(t===11)throw U0(Yc,1);if(t===86){var u=sX(r);x:{if(u){var i=u[1];if(typeof i=="number"&&i===5){var c=1;break x}}var c=0}if(c)throw U0(Yc,1)}}if(!Jc(r))return e;if(e[0]===0){var v=e[1][2];if(v[0]===10&&!I(v[1][2][1],oa)&&!K1(r))throw U0(Yc,1)}return e}m0(p3,function(x){var r=Jc(x);if(r){var e=M(x);x:{if(typeof e=="number"){if(e===58){if(x[18]){var t=0;break x}}else if(e===65&&x[19]){var t=0;break x}}var t=1}var u=t}else var u=r;var i=M(x);x:{r:if(typeof i=="number"){if(22<=i){if(i===58){if(x[18])return[0,l(hJ,x)];break r}if(i!==98)break r}else if(i!==4&&21>i)break r;break x}if(!u)return iC(x)}x:{if(i===64&&g2(x)&&vr(1,x)===98){var c=jJ,v=uC;break x}var c=uC,v=jJ}var a=pO(x,v);if(a)return a[1];var p=pO(x,c);return p?p[1]:iC(x)}),m0(Dt,function(x){return f1(x,l(p3,x))}),m0(hJ,function(x){return r0(0,function(r){r[10]&&Kx(r,ue);var e=f0(r),t=fx(r);W(r,58);var u=fx(r);if(c3(r))var i=0,c=0;else{var v=f2(r,z2),a=M(r);x:{r:if(typeof a=="number"){if(a!==86){if(10<=a)break r;switch(a){case 0:case 2:case 3:case 4:case 6:break r}}var p=0;break x}var p=1}x:{if(!v&&!p){var _=0;break x}var _=[0,l(Dt,r)]}var i=v,c=_}var y=c?0:xx(r),S=Zr(t,u);return[37,[0,c,t0([0,e],[0,y],R),i,S]]},x)}),m0(JO,function(x){var r=x[2];switch(r[0]){case 23:var e=r[1],t=e[1][2][1];if(I(t,R1)){if(!I(t,no)&&!I(e[2][2][1],Rw))return 0}else if(!I(e[2][2][1],ml))return 0;break;case 10:case 22:break;default:return 0}return 1}),m0(dJ,function(x){var r=M(x);x:{if(typeof r=="number"){var e=r-67|0;if(15>=e>>>0){switch(e){case 0:var t=Y30;break;case 1:var t=z30;break;case 2:var t=V30;break;case 3:var t=G30;break;case 4:var t=W30;break;case 5:var t=$30;break;case 6:var t=H30;break;case 7:var t=Q30;break;case 8:var t=Z30;break;case 9:var t=xl0;break;case 10:var t=rl0;break;case 11:var t=el0;break;case 12:var t=tl0;break;case 13:var t=nl0;break;case 14:var t=ul0;break;default:var t=il0}var u=t;break x}}var u=0}return u!==0&&b0(x),u}),m0(KO,function(x){var r=fx(x),e=l(gJ,x);if(M(x)!==85)return e;b0(x);var t=l(Dt,e6(0,x));W(x,86);var u=r0([0,r],Dt,x),i=u[2],c=u[1];return[0,[0,c,[8,[0,f1(x,e),t,i,0]]]]}),m0(yJ,function(x){return f1(x,l(KO,x))});function fC(x,r,e,t,u){var i=f1(x,r);return[0,[0,u,[21,[0,t,i,f1(x,e),0]]]]}function cC(x,r,e){for(var t=r,u=e;;){var i=M(x);if(typeof i=="number"&&i===88){b0(x);var c=r0(0,y6,x),v=c[2],a=Zr(u,c[1]),p=sC(0,x,fC(x,t,v,1,a),a),t=p[2],u=p[1];continue}return[0,u,t]}}function PJ(x,r,e){for(var t=r,u=e;;){var i=M(x);if(typeof i=="number"&&i===87){b0(x);var c=r0(0,y6,x),v=cC(x,c[2],c[1]),a=v[2],p=Zr(u,v[1]),_=sC(0,x,fC(x,t,a,0,p),p),t=_[2],u=_[1];continue}return[0,u,t]}}function sC(x,r,e,t){for(var u=x,i=e,c=t;;){var v=M(r);if(typeof v=="number"&&v===84){1-u&&Kx(r,K30),W(r,84);var a=r0(0,y6,r),p=a[2],_=a[1],y=M(r);x:{if(typeof y=="number"&&1>=y-87>>>0){Kx(r,[20,$N(y)]);var S=cC(r,p,_),E=PJ(r,S[2],S[1]),j=E[2],C=E[1];break x}var j=p,C=_}var P=Zr(c,C),u=1,i=fC(r,i,j,2,P),c=P;continue}return[0,c,i]}}m0(gJ,function(x){var r=r0(0,y6,x),e=r[2],t=r[1],u=M(x);x:{if(typeof u=="number"&&u===84){var c=sC(1,x,e,t);break x}var i=cC(x,e,t),c=PJ(x,i[2],i[1])}return c[2]});function aC(x,r,e,t){return[0,t,[5,[0,e,x,r,0]]]}m0(y6,function(x){for(var r=0;;){var e=r0(0,function(rx){var B=l(YO,rx)!==0?1:0;return[0,B,l(zO,e6(0,rx))]},x),t=e[2],u=t[2],i=t[1],c=e[1];x:if(M(x)===98&&u[0]===0&&u[1][2][0]===12){Kx(x,2);break x}var v=function(rx){return function(B,G0){for(var W0=B,Y0=G0;;){var V0=M(x);x:if(typeof V0!="number"&&V0[0]===4){var ex=V0[3];if(I(ex,Jt)&&I(ex,$F))break x;if(g2(x)){b0(x);var Q0=f1(x,Y0);r:{if(W0){var S0=W0[1],q0=S0[2],yx=W0[2],cx=S0[3],Dx=q0[1],Ix=S0[1];if(mJ(q0[2],_30)){var Xx=aC(Ix,Q0,Dx,Zr(cx,rx)),Z0=yx;break r}}var Xx=Q0,Z0=W0}var rr=Xx[1];if(Sr(ex,$F))var xr=qs(x),fr=xr[1],hr=[0,[0,Zr(rr,fr),[34,[0,Xx,[0,fr,xr],0]]]];else if(M(x)===27){var Hx=Zr(rr,fx(x));b0(x);var hr=[0,[0,Hx,[2,[0,Xx,0]]]]}else var Y=qs(x),jx=Y[1],hr=[0,[0,Zr(rr,jx),[3,[0,Xx,[0,jx,Y],0]]]];var W0=Z0,Y0=hr;continue}}return[0,W0,Y0]}}}(c)(r,u),a=v[2],p=v[1],_=M(x);x:{r:if(typeof _=="number"){var y=_-17|0;if(1>>0){if(72>y)break r;switch(y-72|0){case 0:var S=b30;break;case 1:var S=w30;break;case 2:var S=T30;break;case 3:var S=E30;break;case 4:var S=S30;break;case 5:var S=A30;break;case 6:var S=I30;break;case 7:var S=j30;break;case 8:var S=P30;break;case 9:var S=N30;break;case 10:var S=O30;break;case 11:var S=C30;break;case 12:var S=D30;break;case 13:var S=R30;break;case 14:var S=F30;break;case 15:var S=L30;break;case 16:var S=M30;break;case 17:var S=U30;break;case 18:var S=q30;break;case 19:var S=B30;break;default:break r}var E=S}else var E=y?X30:x[12]?0:J30;var j=E;break x}var j=0}if(j!==0&&b0(x),!p&&!j)return a;if(!j)break;var C=j[1],P=C[1],O=C[2],F=i&&(P===14?1:0);F&&D0(x,[0,c,38]);x:for(var K=f1(x,a),U=[0,P,O],V=c,Q=p;;){var $=U[2],x0=U[1];if(!Q)break x;var e0=Q[1],Z=e0[2],c0=Q[2],d0=e0[3],n0=Z[1],P0=e0[1];if(!mJ(Z[2],$))break;var h0=Zr(d0,V),K=aC(P0,K,n0,h0),U=[0,x0,$],V=h0,Q=c0}var r=[0,[0,K,[0,x0,$],V],Q]}for(var g0=f1(x,a),v0=c,p0=p;;){if(!p0)return[0,g0];var w0=p0[1],T0=p0[2],E0=w0[2][1],N0=w0[1],X0=Zr(w0[3],v0),g0=aC(N0,g0,E0,X0),v0=X0,p0=T0}}),m0(YO,function(x){var r=M(x);if(typeof r=="number"){if(48<=r){if(Ze<=r){if(zt>r)switch(r+LA|0){case 0:return l30;case 1:return p30;case 6:return k30;case 7:return m30}}else if(r===65&&x[19])return x[10]&&Kx(x,6),h30}else if(45<=r)switch(r+gT|0){case 0:return d30;case 1:return y30;default:return g30}}return 0}),m0(zO,function(x){var r=fx(x),e=f0(x),t=l(YO,x);if(t){var u=t[1];b0(x);var i=r0([0,r],VO,x),c=i[2],v=i[1];x:r:if(u===6){var a=c[2];switch(a[0]){case 10:ct(x,[0,v,68]);break;case 22:a[1][2][0]===1&&D0(x,[0,v,62]);break;default:break r}break x}return[0,[0,v,[35,[0,u,c,t0([0,e],0,R)]]]]}var p=M(x);x:{if(typeof p=="number"){if(zt===p){var _=v30;break x}if(ue===p){var _=o30;break x}}var _=0}if(!_)return l(_J,x);var y=_[1];b0(x);var S=r0([0,r],VO,x),E=S[2],j=S[1];1-l(JO,E)&&D0(x,[0,E[1],37]);var C=E[2];x:if(C[0]===10&&Xo(C[1][2][1])){Ot(x,73);break x}return[0,[0,j,[36,[0,y,E,1,t0([0,e],0,R)]]]]}),m0(VO,function(x){return f1(x,l(zO,x))}),m0(_J,function(x){var r=l(GO,x);if(K1(x))return r;var e=M(x);x:{if(typeof e=="number"){if(zt===e){var t=a30;break x}if(ue===e){var t=s30;break x}}var t=0}if(!t)return r;var u=t[1],i=f1(x,r);1-l(JO,i)&&D0(x,[0,i[1],37]);var c=i[2];x:if(c[0]===10&&Xo(c[1][2][1])){Ot(x,72);break x}var v=fx(x);b0(x);var a=xx(x),p=Zr(i[1],v);return[0,[0,p,[36,[0,u,i,0,t0(0,[0,a],R)]]]]}),m0(GO,function(x){var r=fx(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=M(u);x:{r:if(typeof i=="number"){var c=i-44|0;if(7>=c>>>0){switch(c){case 0:if(!e)break r;var v=[0,l(HO,u)];break;case 6:var v=[0,l(bJ,u)];break;case 7:var v=[0,l(WO,u)];break;default:break r}var a=v;break x}}var a=Ea(u)?[0,l(xC,u)]:l(rC,u)}return I1(Vo,0,0,u,r,a)}),m0(gd,function(x){return f1(x,l(GO,x))}),m0(WO,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=fx(x),u=f0(x);W(x,51);var i=[0,t,[29,[0,t0([0,u],[0,xx(x)],R)]]],c=M(x);if(typeof c=="number"&&11>c)switch(c){case 4:var v=r?i:(D0(x,[0,t,et]),[0,t,[10,rn(0,[0,t,i30])]]);return St($O,0,x,t,v);case 6:case 10:var a=e?i:(D0(x,[0,t,99]),[0,t,[10,rn(0,[0,t,c30])]]);return St($O,0,x,t,a)}return e?_2(f30,x):D0(x,[0,t,99]),i}),m0(bJ,function(x){return r0(0,function(r){var e=f0(r),t=fx(r);if(W(r,50),f2(r,10)){var u=rn(0,[0,t,t30]),i=fx(r);Kc(r,n30);var c=rn(0,[0,i,u30]);return[23,[0,u,c,t0([0,e],[0,xx(r)],R)]]}var v=f0(r);W(r,4);var a=B0(nC,[0,v],0,l(Dt,e6(0,r)));return W(r,5),[11,[0,a,t0([0,e],[0,xx(r)],R)]]},x)}),m0(Vo,function(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=I1(ZO,[0,i],[0,c],e,t,u),a=sX(e);x:{if(a){var p=a[1];if(typeof p=="number"&&p===83){var _=1;break x}}var _=0}function y(P){var O=I2(P)[2];function F(K,U){return k(Wx(K,Wt,88),K,U)}return k(O,f1(P,v),F)}function S(P,O,F){var K=l(QO,O),U=K[1],V=K[2],Q=Zr(t,U),$=[0,F,P,[0,U,V],0];x:{if(!_&&!c){var x0=[6,$];break x}var x0=[26,[0,$,Q,_]]}var e0=c||_;return I1(Vo,[0,i],[0,e0],O,t,[0,[0,Q,x0]])}if(e[13])return v;var E=M(e);if(typeof E=="number"){var j=E-98|0;if(2>>0){if(j===-94)return S(0,e,y(e))}else if(j!==1&&g2(e)){var C=Wh(function(P,O){throw U0(Yc,1)},e);return rd(C,v,function(P){var O=y(P);return S(l(_d,P),P,O)})}}return v}),m0($O,function(x,r,e,t){var u=x?x[1]:1;return f1(r,I1(Vo,[0,u],0,r,e,[0,t]))}),m0(HO,function(x){return r0(0,function(r){var e=fx(r),t=f0(r);if(W(r,44),r[11]&&M(r)===10){var u=xx(r);b0(r);var i=rn(t0([0,t],[0,u],R),[0,e,x30]),c=M(r);return typeof c!="number"&&c[0]===4&&!I(c[3],Rw)?[23,[0,i,k(z0[13],0,r),0]]:(_2(r30,r),b0(r),[10,i])}var v=fx(r),a=M(r);x:{if(typeof a=="number"){if(a===44){var p=l(HO,r);break x}if(a===51){var p=l(WO,cO(1,r));break x}}var p=Ea(r)?l(xC,r):l(EJ,r)}var _=St(wJ,e30,cO(1,r),v,p),y=M(r);x:{if(typeof y!="number"&&y[0]===3){var S=St(tC,r,v,_,y[1]);break x}var S=_}x:{r:if(M(r)!==4){if(g2(r)&&M(r)===98)break r;var j=S;break x}var E=I2(r)[2],j=k(E,S,function(F,K){return k(Wx(F,Wt,89),F,K)})}var C=g2(r)?rd(Wh(function(F,K){throw U0(Yc,1)},r),0,_d):0,P=M(r);x:{if(typeof P=="number"&&P===4){var O=[0,l(QO,r)];break x}var O=0}return[24,[0,j,C,O,t0([0,t],0,R)]]},x)});function Rw0(x){var r=f0(x);W(x,98);for(var e=0;;){var t=M(x);x:if(typeof t=="number"){if(t!==99&&Dr!==t)break x;var u=vx(e),i=f0(x);W(x,99);var c=M(x)===4?I2(x)[1]:xx(x);return[0,u,F2([0,r],[0,c],i,R)]}var v=M(x);x:{if(typeof v!="number"&&v[0]===4&&!I(v[2],Sv)){var a=fx(x),p=f0(x);Kc(x,Zv0);var _=[1,[0,a,[0,t0([0,p],[0,xx(x)],R)]]];break x}var _=[0,qs(x)]}var y=[0,_,e];M(x)!==99&&W(x,9);var e=y}}m0(_d,function(x){L2(x,1);var r=M(x)===98?[0,r0(0,Rw0,x)]:0;return J2(x),r});function Fw0(x){var r=f0(x);W(x,12);var e=l(Dt,x);return[0,e,t0([0,r],0,R)]}m0(QO,function(x){return r0(0,function(r){var e=f0(r);W(r,4);for(var t=0;;){var u=M(r);x:if(typeof u=="number"){if(u!==5&&Dr!==u)break x;var i=vx(t),c=f0(r);return W(r,5),[0,i,F2([0,e],[0,xx(r)],c,R)]}var v=M(r);x:{if(typeof v=="number"&&v===12){var a=[1,r0(0,Fw0,r)];break x}var a=[0,l(Dt,r)]}var p=[0,a,t];M(r)!==5&&W(r,9);var t=p}},x)});function NJ(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,p=cO(0,t),_=l(z0[7],p),y=fx(t);W(t,7);var S=xx(t),E=Zr(u,y),j=t0(0,[0,S],R),C=[0,f1(t,i),[2,_],j],P=v?[27,[0,C,E,a]]:[22,C];return I1(Vo,[0,c],[0,v],t,u,[0,[0,E,P]])}function OJ(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,p=M(t);x:{if(typeof p=="number"&&p===14){var _=EX(t),y=_[1],S=t[30][1],E=_[2][1];if(S){var j=S[1];t[30][1]=[0,[0,j[1],[0,[0,E,y],j[2]]],S[2]]}else D0(t,[0,y,63]);var P=[1,_],O=y;break x}var C=g1(t),P=[0,C],O=C[1]}var F=Zr(u,O);x:if(i[0]===0&&i[1][2][0]===29&&P[0]===1){D0(t,[0,F,82]);break x}var K=[0,f1(t,i),P,0],U=v?[27,[0,K,F,a]]:[22,K];return I1(Vo,[0,c],[0,v],t,u,[0,[0,F,U]])}m0(ZO,function(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=M(e);if(typeof v=="number")switch(v){case 6:return b0(e),NJ([0,i],[0,c],0,e,t,u);case 10:return b0(e),OJ([0,i],[0,c],0,e,t,u);case 83:1-i&&Kx(e,59),W(e,83);var a=M(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return b0(e),NJ([0,i],Wv0,Gv0,e,t,u);case 98:if(g2(e))return u;break}else if(a[0]===3)return Kx(e,60),u;return OJ([0,i],Hv0,$v0,e,t,u)}else if(v[0]===3){var p=v[1];return c&&Kx(e,60),I1(Vo,Qv0,0,e,t,[0,St(tC,e,t,f1(e,u),p)])}return u}),m0(wJ,function(x,r,e,t){var u=x?x[1]:1;return f1(r,I1(ZO,[0,u],0,r,e,[0,t]))}),m0(xC,function(x){return r0(0,function(r){var e=yd(r),t=e[1],u=e[2],i=r0(0,function(O){var F=f0(O);W(O,15);var K=zo(O),U=K[1],V=Rl([0,u,[0,F,[0,K[2],0]]]);if(M(O)===4)var Q=0,$=0;else{var x0=M(O);x:{if(typeof x0=="number"&&x0===98){var Z=0;break x}var e0=nO(U,uO(t,O)),Z=[0,Ct(e0,k(z0[13],Vv0,e0))]}var Q=Y1(O,De(O)),$=Z}var c0=qo(0,O),d0=t||c0[19],n0=l3(d0,U)(c0),P0=M(c0)===86?n0:f6(c0,n0),h0=RO(c0),g0=h0[2],v0=h0[1];if(g0)var p0=_X(c0,g0),w0=v0;else var p0=g0,w0=s3(c0,v0);return[0,$,P0,U,p0,w0,Q,V]},r),c=i[2],v=c[3],a=c[2],p=c[1],_=c[7],y=c[6],S=c[5],E=c[4],j=i[1],C=h6(r,t,v,1,Ko(a)),P=C[1];return v3(r,C[2],p,a),[9,[0,p,a,P,t,v,1,E,S,y,t0([0,_],0,R),j]]},x)}),m0(bd,function(x,r,e){switch(r){case 1:Ot(x,76);try{var t=$m(El(Bx(Xv0,e))),u=t}catch(S){var i=O2(S);if(i[1]!==Qt)throw U0(i,0);var u=gx(Bx(Jv0,e))}break;case 2:Ot(x,75);try{var c=JP(e),u=c}catch(S){var v=O2(S);if(v[1]!==Qt)throw U0(v,0);var u=gx(Bx(Kv0,e))}break;case 4:try{var a=JP(e),u=a}catch(S){var p=O2(S);if(p[1]!==Qt)throw U0(p,0);var u=gx(Bx(Yv0,e))}break;default:try{var _=$m(El(e)),u=_}catch(S){var y=O2(S);if(y[1]!==Qt)throw U0(y,0);var u=gx(Bx(zv0,e))}}return W(x,[0,r,e]),u}),m0(TJ,function(x){var r=Nx(x);x:{if(r!==0&&j2===N2(x,r-1|0)){var e=k1(x,0,r-1|0);break x}var e=x}return e}),m0(wd,function(x,r,e){var t=vq(l(TJ,e));return W(x,[1,r,e]),t}),m0(rC,function(x){var r=fx(x),e=f0(x),t=M(x);if(typeof t=="number")switch(t){case 0:var u=l(z0[12],x);return[1,[0,u[1],[25,u[2]]],u[3]];case 4:return[0,l(SJ,x)];case 6:var i=r0(0,AJ,x),c=i[2];return[1,[0,i[1],[0,c[1]]],c[2]];case 21:return b0(x),[0,[0,r,[32,[0,t0([0,e],[0,xx(x)],R)]]]];case 29:return b0(x),[0,[0,r,[16,t0([0,e],[0,xx(x)],R)]]];case 40:return[0,l(z0[22],x)];case 98:var v=l(z0[17],x),a=v[2],p=v[1],_=Ut<=a[1]?[13,a[2]]:[12,a[2]];return[0,[0,p,_]];case 30:case 31:return b0(x),[0,[0,r,[15,[0,t===31?1:0,t0([0,e],[0,xx(x)],R)]]]];case 74:case 105:return[0,l(IJ,x)]}else switch(t[0]){case 0:var y=t[2],S=B0(bd,x,t[1],y);return[0,[0,r,[17,[0,S,y,t0([0,e],[0,xx(x)],R)]]]];case 1:var E=t[2],j=B0(wd,x,t[1],E);return[0,[0,r,[18,[0,j,E,t0([0,e],[0,xx(x)],R)]]]];case 2:var C=t[1],P=C[3],O=C[2],F=C[1];C[4]&&Ot(x,76),b0(x);var K=t0([0,e],[0,xx(x)],R),U=x[28],V=U[6],Q=U[7];x:{if(V){var $=V[1];if(sq($,O)){var e0=[20,[0,O,F,Nx($),0,P,K]];break x}}if(Q){var x0=Q[1];if(sq(x0,O)){var e0=[20,[0,O,F,Nx(x0),1,P,K]];break x}}var e0=[14,[0,O,P,K]]}return[0,[0,F,e0]];case 3:var Z=k(eC,x,t[1]);return[0,[0,Z[1],[31,Z[2]]]];case 4:if(!I(t[3],Z9)&&vr(1,x)===40)return[0,l(z0[22],x)];break}if(Jc(x)){var c0=k(z0[13],0,x);return[0,[0,c0[1],[10,c0]]]}_2(0,x);x:if(typeof t!="number"&&t[0]===7){b0(x);break x}return[0,[0,r,[16,t0([0,e],Bv0,R)]]]}),m0(EJ,function(x){return f1(x,l(rC,x))}),m0(eC,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],c=f0(x);W(x,[3,r]);var v=[0,t,[0,[0,u,i],e]];if(e)var a=0,p=[0,v,0],_=t;else for(var y=[0,v,0],S=0;;){var E=l(z0[7],x),j=[0,E,S],C=M(x);x:{if(typeof C=="number"&&C===1){L2(x,4);var P=M(x);if(typeof P!="number"&&P[0]===3){var O=P[1],F=O[5],K=O[1],U=O[3],V=O[2];b0(x),J2(x);var Q=[0,[0,K,[0,[0,U,V],F]],y];if(F){var $=vx(j),c0=[0,K,vx(Q),$];break x}var y=Q,S=j;continue}throw U0([0,Ar,Mv0],1)}_2(Uv0,x);var x0=[0,E[1],qv0],e0=vx(j),Z=vx([0,x0,y]),c0=[0,E[1],Z,e0]}var a=c0[3],p=c0[2],_=c0[1];break}var d0=xx(x),n0=Zr(t,_);return[0,n0,[0,p,a,t0([0,c],[0,d0],R)]]}),m0(tC,function(x,r,e,t){var u=I2(x)[2],i=k(u,e,function(v,a){return k(Wx(v,Wt,3),v,a)}),c=k(eC,x,t);return[0,Zr(r,c[1]),[30,[0,i,c,0]]]}),m0(SJ,function(x){var r=f0(x),e=r0(0,function(v){W(v,4);var a=fx(v),p=l(Dt,v),_=M(v);x:{if(typeof _=="number"){if(_===9){var y=[0,B0(Td,v,a,[0,p,0])];break x}if(_===86){var y=[1,[0,p,Yo(v),0]];break x}}var y=[0,p]}return W(v,5),y},x),t=e[2],u=e[1],i=xx(x),c=t[0]===0?t[1]:[0,u,[33,t[1]]];return B0(nC,[0,r],[0,i],c)}),m0(nC,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,c=r?r[1]:0;function v(b2){return N1(b2,t0([0,i],[0,c],R))}function a(b2){return YN(b2,t0([0,i],[0,c],R))}switch(t[0]){case 0:var p=t[1],_=a(p[2]),Mx=[0,[0,p[1],_]];break;case 1:var y=t[1],S=y[11],E=v(y[10]),Mx=[1,[0,y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],E,S]];break;case 4:var j=t[1],C=v(j[4]),Mx=[4,[0,j[1],j[2],j[3],C]];break;case 5:var P=t[1],O=v(P[4]),Mx=[5,[0,P[1],P[2],P[3],O]];break;case 6:var F=t[1],K=v(F[4]),Mx=[6,[0,F[1],F[2],F[3],K]];break;case 7:var U=t[1],V=v(U[7]),Mx=[7,[0,U[1],U[2],U[3],U[4],U[5],U[6],V]];break;case 8:var Q=t[1],$=v(Q[4]),Mx=[8,[0,Q[1],Q[2],Q[3],$]];break;case 9:var x0=t[1],e0=x0[11],Z=v(x0[10]),Mx=[9,[0,x0[1],x0[2],x0[3],x0[4],x0[5],x0[6],x0[7],x0[8],x0[9],Z,e0]];break;case 10:var c0=t[1],d0=c0[2],n0=c0[1],P0=v(d0[2]),Mx=[10,[0,n0,[0,d0[1],P0]]];break;case 11:var h0=t[1],g0=v(h0[2]),Mx=[11,[0,h0[1],g0]];break;case 12:var v0=t[1],p0=v(v0[4]),Mx=[12,[0,v0[1],v0[2],v0[3],p0]];break;case 13:var w0=t[1],T0=v(w0[4]),Mx=[13,[0,w0[1],w0[2],w0[3],T0]];break;case 14:var E0=t[1],N0=v(E0[3]),Mx=[14,[0,E0[1],E0[2],N0]];break;case 15:var X0=t[1],A0=v(X0[2]),Mx=[15,[0,X0[1],A0]];break;case 16:var Mx=[16,v(t[1])];break;case 17:var rx=t[1],B=v(rx[3]),Mx=[17,[0,rx[1],rx[2],B]];break;case 18:var G0=t[1],W0=v(G0[3]),Mx=[18,[0,G0[1],G0[2],W0]];break;case 19:var Y0=t[1],V0=v(Y0[4]),Mx=[19,[0,Y0[1],Y0[2],Y0[3],V0]];break;case 20:var ex=t[1],Q0=v(ex[6]),Mx=[20,[0,ex[1],ex[2],ex[3],ex[4],ex[5],Q0]];break;case 21:var S0=t[1],q0=v(S0[4]),Mx=[21,[0,S0[1],S0[2],S0[3],q0]];break;case 22:var yx=t[1],cx=v(yx[3]),Mx=[22,[0,yx[1],yx[2],cx]];break;case 23:var Dx=t[1],Ix=v(Dx[3]),Mx=[23,[0,Dx[1],Dx[2],Ix]];break;case 24:var Xx=t[1],Z0=v(Xx[4]),Mx=[24,[0,Xx[1],Xx[2],Xx[3],Z0]];break;case 25:var rr=t[1],xr=a(rr[2]),Mx=[25,[0,rr[1],xr]];break;case 26:var fr=t[1],Hx=fr[1],Y=fr[3],jx=fr[2],hr=v(Hx[4]),Mx=[26,[0,[0,Hx[1],Hx[2],Hx[3],hr],jx,Y]];break;case 27:var Yx=t[1],Ur=Yx[1],px=Yx[3],w=Yx[2],L=v(Ur[3]),Mx=[27,[0,[0,Ur[1],Ur[2],L],w,px]];break;case 28:var L0=t[1],sx=v(L0[2]),Mx=[28,[0,L0[1],sx]];break;case 29:var Mx=[29,[0,v(t[1][1])]];break;case 30:var lx=t[1],ax=v(lx[3]),Mx=[30,[0,lx[1],lx[2],ax]];break;case 31:var Vx=t[1],_x=v(Vx[3]),Mx=[31,[0,Vx[1],Vx[2],_x]];break;case 32:var Mx=[32,[0,v(t[1][1])]];break;case 33:var zx=t[1],Lx=v(zx[3]),Mx=[33,[0,zx[1],zx[2],Lx]];break;case 35:var M0=t[1],qr=v(M0[3]),Mx=[35,[0,M0[1],M0[2],qr]];break;case 36:var Ex=t[1],$0=v(Ex[4]),Mx=[36,[0,Ex[1],Ex[2],Ex[3],$0]];break;case 37:var Gx=t[1],j0=Gx[4],cr=Gx[3],tx=v(Gx[2]),Mx=[37,[0,Gx[1],tx,cr,j0]];break;default:var Mx=t}return[0,u,Mx]}),m0(AJ,function(x){var r=f0(x);W(x,6);for(var e=[0,0,Zt];;){var t=e[2],u=e[1],i=M(x);x:if(typeof i=="number"){if(13<=i){if(Dr!==i)break x}else{if(7>i)break x;switch(i-7|0){case 0:break;case 2:var c=fx(x);b0(x);var e=[0,[0,[2,c],u],t];continue;case 5:var v=f0(x),a=r0(0,function(x0){b0(x0);var e0=l(p3,x0);return e0[0]===0?[0,e0[1],Zt]:[0,e0[1],e0[2]]},x),p=a[2],_=p[2],y=a[1],S=p[1],E=[1,[0,y,[0,S,t0([0,v],0,R)]]],j=M(x)===7?1:0;r:{if(!j&&vr(1,x)===7){var C=[0,_[1],[0,[0,y,16],_[2]]];break r}var C=_}1-j&&W(x,9);var e=[0,[0,E,u],XO(C,t)];continue;default:break x}}var P=kJ(t),O=vx(u),F=f0(x);return W(x,7),[0,[0,O,F2([0,r],[0,xx(x)],F,R)],P]}var K=l(p3,x);if(K[0]===0)var U=Zt,V=K[1];else var U=K[2],V=K[1];M(x)!==7&&W(x,9);var e=[0,[0,[0,V],u],XO(U,t)]}}),m0(IJ,function(x){L2(x,5);var r=fx(x),e=f0(x),t=M(x);x:{if(typeof t!="number"&&t[0]===5){var u=t[3],i=t[2];b0(x);var c=xx(x),v=c,a=u,p=i,_=Bx(Cv0,Bx(i,Bx(Ov0,u)));break x}_2(Dv0,x);var v=0,a=Rv0,p=Fv0,_=Lv0}J2(x);var y=Qr(Nx(a)),S=Nx(a)-1|0,E=0;if(S>=0)for(var j=E;;){var C=F0(a,j),P=C-100|0;x:if(21>=P>>>0)switch(P){case 0:case 3:case 5:case 9:case 15:case 17:case 21:ut(y,C);break x}var O=j+1|0;if(S===j)break;var j=O}var F=R2(y);return I(F,a)&&Kx(x,[18,a]),[0,r,[19,[0,p,F,_,t0([0,e],[0,v],R)]]]});function Lw0(x){return function(r){x:if(typeof r=="number"){if(61<=r){var e=r-62|0;if(49>=e>>>0){var t=e-15|0;if(9>>0)break x;switch(t){case 0:case 1:case 3:case 9:break;default:break x}}}else if(7<=r){if(r!==55)break x}else if(5>r)break x;return 0}throw U0(Yc,1)}}function Mw0(x){var r=M(x);if(typeof r=="number"&&!r){var e=k(z0[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,l(z0[10],x)],0]}m0(uC,function(x){var r=Wh(Lw0,x),e=fx(r);if(vr(1,r)===11)var u=0,i=0;else var t=yd(r),u=t[2],i=t[1];var c=i||r[19],v=uO(c,r),a=v[18],p=r0(0,function(g0){var v0=Y1(g0,De(g0));if(Jc(g0)&&v0===0){var p0=k(z0[13],Nv0,g0),w0=p0[1],T0=[0,w0,[0,[0,w0,[2,[0,p0,[0,Ls(g0)],0]]],0]];return[0,v0,[0,w0,[0,0,[0,T0,0],0,0]],[0,[0,w0[1],w0[3],w0[3]]],0]}var E0=l3(c,a)(g0);fJ(g0,E0);var N0=RO(Bo(1,g0));return[0,v0,E0,N0[1],N0[2]]},v),_=p[2],y=_[2],S=y[2];x:{r:{var E=_[4],j=_[3],C=_[1],P=p[1];if(!S[1]){var O=S[2];if(!S[3]&&O)break r;var F=aX(v);break x}}var F=v}var K=y[2],U=K[1];if(U){var V=y[1];D0(F,[0,U[1][1],86]);var Q=[0,V,[0,0,K[2],K[3],K[4]]]}else var Q=y;var $=Ko(Q),x0=K1(F),e0=x0&&(M(F)===11?1:0);e0&&Kx(F,55),W(F,11);var Z=oX(aX(F),i,0,$),c0=r0(0,Mw0,Z),d0=c0[2],n0=d0[1],P0=c0[1];v3(Z,d0[2],0,Q);var h0=Zr(e,P0);return[0,[0,h0,[1,[0,0,Q,n0,i,0,1,E,j,C,t0([0,u],0,R),P]]]]}),m0(Td,function(x,r,e){return r0([0,r],function(t){for(var u=e;;){var i=M(t);if(typeof i=="number"&&i===9){b0(t);var u=[0,l(Dt,t),u];continue}return[28,[0,vx(u),0]]}},x)});function Uw0(x){var r=f0(x);b0(x);var e=t0([0,r],0,R),t=l(gd,x),u=K1(x)?i6(x):ed(x),i=u[2];return[0,k(i,t,function(c,v){return k(Wx(c,Wt,90),c,v)}),e]}function oC(x){if(!x[28][3])return 0;for(var r=0;;){var e=M(x);if(typeof e=="number"&&e===13){var r=[0,r0(0,Uw0,x),r];continue}return vx(r)}}function Pa(x,r){var e=x?x[1]:0,t=f0(r),u=M(r);if(typeof u=="number")switch(u){case 6:var i=r0(0,function(g0){var v0=f0(g0);W(g0,6);var p0=e6(0,g0),w0=l(z0[10],p0);return W(g0,7),[0,w0,t0([0,v0],[0,xx(g0)],R)]},r),c=i[1];return[0,c,[5,[0,c,i[2]]]];case 14:if(!e){var v=r0(0,function(g0){return b0(g0),[3,g1(g0)]},r),a=v[1],p=v[2];return D0(r,[0,a,63]),[0,a,p]}var _=EX(r),y=r[30][1],S=_[2][1],E=_[1];if(y){var j=y[1],C=y[2],P=j[2],O=[0,[0,y1[4].call(null,S,j[1]),P],C];r[30][1]=O}else gx(xs0);return[0,E,[4,_]]}else switch(u[0]){case 0:var F=u[2],K=u[1],U=fx(r),V=B0(bd,r,K,F);return[0,U,[1,[0,U,[0,V,F,t0([0,t],[0,xx(r)],R)]]]];case 1:var Q=u[2],$=u[1],x0=fx(r),e0=B0(wd,r,$,Q);return[0,x0,[2,[0,x0,[0,e0,Q,t0([0,t],[0,xx(r)],R)]]]];case 2:var Z=u[1],c0=Z[4],d0=Z[3],n0=Z[2],P0=Z[1];return c0&&Ot(r,76),W(r,[2,[0,P0,n0,d0,c0]]),[0,P0,[0,[0,P0,[0,n0,d0,t0([0,t],[0,xx(r)],R)]]]]}var h0=g1(r);return[0,h0[1],[3,h0]]}function Ed(x,r,e){var t=zo(x),u=t[1],i=t[2],c=Pa([0,r],x),v=c[1],a=0,p=nn(x,c[2]);return[0,p,r0(0,function(_){var y=qo(1,_),S=r0(0,function(U){var V=l3(0,0)(U),Q=0,$=M(U)===86?V:f6(U,V);x:if(e){var x0=$[2];r:{if(!x0[1]){if(!x0[2]&&!x0[3])break r;D0(U,[0,v,23]);break x}D0(U,[0,v,24])}}else{var e0=$[2];r:if(e0[1])D0(U,[0,v,66]);else{var Z=e0[2];if(Z&&!Z[2]&&!e0[3])break r;e0[3]?D0(U,[0,v,65]):D0(U,[0,v,65])}}return[0,Q,$,s3(U,DO(U))]},y),E=S[2],j=E[2],C=E[3],P=E[1],O=S[1],F=h6(y,a,u,0,Ko(j)),K=F[1];return v3(y,F[2],0,j),[0,0,j,K,a,u,1,0,C,P,t0([0,i],0,R),O]},x)]}function CJ(x){var r=l(p3,x);return r[0]===0?[0,r[1],Zt]:[0,r[1],r[2]]}function DJ(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return D0(x,[0,t,48]),[0,t,[14,u]];case 1:var i=r[1],c=i[1],v=i[2];return D0(x,[0,c,48]),[0,c,[17,v]];case 2:var a=r[1],p=a[1],_=a[2];return D0(x,[0,p,48]),[0,p,[18,_]];case 3:var y=r[1],S=y[2][1],E=y[1];return $h(S)?D0(x,[0,E,95]):i3(S)&&ct(x,[0,E,80]),[0,E,[10,y]];case 4:return gx(Al0);default:var j=r[1][2][1];return D0(x,[0,j[1],7]),j}}function RJ(x,r,e){function t(i){var c=qo(1,i),v=r0(0,function(C){var P=Y1(C,De(C)),O=l3(x,r)(C),F=M(C)===86?O:f6(C,O);return[0,P,F,s3(C,DO(C))]},c),a=v[2],p=a[2],_=a[3],y=a[1],S=v[1],E=h6(c,x,r,0,Ko(p)),j=E[1];return v3(c,E[2],0,p),[0,0,p,j,x,r,1,0,_,y,t0([0,e],0,R),S]}var u=0;return function(i){return r0(u,t,i)}}function FJ(x){return W(x,86),CJ(x)}function vC(x,r,e,t,u,i){var c=r0([0,r],function(a){if(!t&&!u){var p=M(a);x:if(typeof p=="number"){if(86<=p){if(p!==98){if(87<=p)break x;var _=FJ(a);return[0,[0,e,_[1],0],_[2]]}}else{if(p===82){if(e[0]===3)var y=e[1],S=fx(a),E=function(F){var K=f0(F);W(F,82);var U=xx(F),V=k(z0[19],F,[0,y[1],[10,y]]),Q=l(z0[10],F);return[4,[0,0,V,Q,t0([0,K],[0,U],R)]]},j=r0([0,y[1]],E,a),C=[0,j,[0,[0,[0,S,[24,bh(Sl0)]],0],0]];else var C=FJ(a);return[0,[0,e,C[1],1],C[2]]}if(10<=p)break x;switch(p){case 4:break;case 1:case 9:return[0,[0,e,DJ(a,e),1],Zt];default:break x}}var P=nn(a,e);return[0,[1,P,RJ(t,u,i)(a)],Zt]}return[0,[0,e,DJ(a,e),1],Zt]}var O=nn(a,e);return[0,[1,O,RJ(t,u,i)(a)],Zt]},x),v=c[2];return[0,[0,[0,c[1],v[1]]],v[2]]}function qw0(x){if(M(x)===12){var r=f0(x),e=r0(0,function(v0){return W(v0,12),CJ(v0)},x),t=e[2],u=t[2],i=t[1],c=e[1];return[0,[1,[0,c,[0,i,t0([0,r],0,R)]]],u]}var v=fx(x),a=vr(1,x);x:{r:if(typeof a=="number"){if(86<=a){if(a!==98&&87<=a)break r}else if(a!==82){if(10<=a)break r;switch(a){case 1:case 4:case 9:break;default:break r}}var _=0,y=0;break x}var p=yd(x),_=p[2],y=p[1]}var S=zo(x),E=S[1],j=Fx(_,S[2]),C=M(x);if(!y&&!E&&typeof C!="number"&&C[0]===4){var P=C[3];if(!I(P,bo)){var O=f0(x),F=Pa(0,x)[2],K=M(x);x:if(typeof K=="number"){if(86<=K){if(K!==98&&87<=K)break x}else if(K!==82){if(10<=K)break x;switch(K){case 1:case 4:case 9:break;default:break x}}return vC(x,v,F,0,0,0)}nn(x,F);var U=r0([0,v],function(v0){return Ed(v0,0,1)},x),V=U[2],Q=V[2],$=V[1],x0=U[1];return[0,[0,[0,x0,[2,$,Q,t0([0,O],0,R)]]],Zt]}if(!I(P,Dv)){var e0=f0(x),Z=Pa(0,x)[2],c0=M(x);x:if(typeof c0=="number"){if(86<=c0){if(c0!==98&&87<=c0)break x}else if(c0!==82){if(10<=c0)break x;switch(c0){case 1:case 4:case 9:break;default:break x}}return vC(x,v,Z,0,0,0)}nn(x,Z);var d0=r0([0,v],function(v0){return Ed(v0,0,0)},x),n0=d0[2],P0=n0[2],h0=n0[1],g0=d0[1];return[0,[0,[0,g0,[3,h0,P0,t0([0,e0],0,R)]]],Zt]}}return vC(x,v,Pa(0,x)[2],y,E,j)}function Bw0(x){var r=r0(0,function(t){var u=f0(t);W(t,0);x:for(var i=0,c=[0,0,Zt];;){var v=c[2],a=c[1],p=M(t);if(typeof p=="number"){if(p===1)break x;if(Dr===p)break}var _=qw0(t),y=_[1],S=_[2];r:{if(y[0]===1&&M(t)===9){var E=[0,fx(t)];break r}var E=0}var j=XO(S,v),C=M(t);r:{e:if(typeof C=="number"){var P=C-2|0;if(j2

>>0)return w(S);switch(tr){case 0:return b(S);case 1:return N(S);case 2:break;default:return j(S)}}break;case 3:for(;;){W(S,30);var sr=D5(y(S));if(3>>0)return w(S);switch(sr){case 0:return e(S);case 1:return N(S);case 2:break;default:return I(S)}}break;case 4:W(S,29);var Mr=qU(y(S));if(Mr===0)return e(S);if(Mr!==1)return w(S);x:{r:for(;;){W(S,10);var a2=$5(y(S));if(3>>0)return w(S);switch(a2){case 0:return F(S);case 1:break;case 2:break x;default:break r}}W(S,8);var _2=X2(y(S));if(_2!==0)return _2===1?F(S):w(S);for(;;)if(W(S,7),cr(y(S))!==0)return w(S)}x:for(;;){if(hs(y(S))!==0)return w(S);r:for(;;){W(S,10);var i2=$5(y(S));if(3>>0)return w(S);switch(i2){case 0:return M(S);case 1:break;case 2:break r;default:break x}}}W(S,8);var Q2=X2(y(S));if(Q2!==0)return Q2===1?M(S):w(S);for(;;)if(W(S,7),cr(y(S))!==0)return w(S);break;case 5:return t(S);case 6:W(S,29);var jx=BU(y(S));if(jx===0)return e(S);if(jx!==1)return w(S);x:{r:for(;;){W(S,14);var _=W5(y(S));if(3<_>>>0)return w(S);switch(_){case 0:return z(S);case 1:break;case 2:break x;default:break r}}W(S,12);var V=X2(y(S));if(V!==0)return V===1?z(S):w(S);for(;;)if(W(S,11),cr(y(S))!==0)return w(S)}x:for(;;){if(V1(y(S))!==0)return w(S);r:for(;;){W(S,14);var lx=W5(y(S));if(3>>0)return w(S);switch(lx){case 0:return B(S);case 1:break;case 2:break r;default:break x}}}W(S,12);var U0=X2(y(S));if(U0!==0)return U0===1?B(S):w(S);for(;;)if(W(S,11),cr(y(S))!==0)return w(S);break;case 7:W(S,29);var ox=CU(y(S));if(ox===0)return e(S);if(ox!==1)return w(S);x:{r:for(;;){W(S,20);var wx=Q5(y(S));if(3>>0)return w(S);switch(wx){case 0:return K(S);case 1:break;case 2:break x;default:break r}}W(S,18);var Cr=X2(y(S));if(Cr!==0)return Cr===1?K(S):w(S);for(;;)if(W(S,17),cr(y(S))!==0)return w(S)}x:for(;;){if(Tr(y(S))!==0)return w(S);r:for(;;){W(S,20);var Hx=Q5(y(S));if(3>>0)return w(S);switch(Hx){case 0:return n0(S);case 1:break;case 2:break r;default:break x}}}W(S,18);var Zr=X2(y(S));if(Zr!==0)return Zr===1?n0(S):w(S);for(;;)if(W(S,17),cr(y(S))!==0)return w(S);break;default:return I(S)}break;case 18:W(S,30);var dr=L5(y(S));if(5>>0)return w(S);switch(dr){case 0:return e(S);case 1:return T(S);case 2:for(;;){W(S,30);var Or=L5(y(S));if(5>>0)return w(S);switch(Or){case 0:return e(S);case 1:return T(S);case 2:break;case 3:return t(S);case 4:return $(S);default:return I(S)}}break;case 3:return t(S);case 4:return $(S);default:return I(S)}break;case 19:return 44;case 20:return 42;case 21:return 49;case 22:W(S,51);var x2=y(S),ux=61>>0)return Tx(on0);var t0=H;if(34>t0)switch(t0){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var c0=A1(x,r),r0=$r(Br),v0=Ev(x,r0,r),a0=v0[1];return[1,a0,qt(a0,c0,v0[2],r0,1)];case 3:var g0=Dx(r);if(!x[5]){var i0=A1(x,r),s0=$r(Br);ir(s0,g0);var d0=Ev(x,s0,r),w0=d0[1];return[1,w0,qt(w0,i0,d0[2],s0,1)]}var M0=x[4]?xB(x,zr(x,r),g0):x,C0=A5(1,M0),D0=w5(r);return br(J6(r,D0-1|0,1),Mo)&&P(J6(r,D0-2|0,1),Mo)?[0,C0,87]:[2,C0];case 4:if(x[4])return[2,A5(0,x)];xl(r),or(r);var I0=DU(y(r))===0?0:w(r);return I0===0?[0,x,K2]:Tx(vn0);case 5:var j0=A1(x,r),y0=$r(Br),Y0=nl(x,y0,r),L=Y0[1];return[1,L,qt(L,j0,Y0[2],y0,0)];case 6:var N0=Dx(r),S0=A1(x,r),K0=$r(Br),A0=$r(Br);ir(A0,N0);var $0=uB(x,N0,K0,A0,0,r),ex=$0[1],xx=$0[3],tx=[0,ex[1],S0,$0[2]],z0=G2(A0);return[0,ex,[2,[0,tx,G2(K0),z0,xx]]];case 7:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&q5(y(G))===0&&hs(y(G))===0){r:for(;;){var rx=C5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(hs(y(G))===0){e:for(;;){var yx=C5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(0,l2(G))]:Tx(an0)});case 8:return[0,x,Bt(0,l2(r))];case 9:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&q5(y(G))===0&&hs(y(G))===0){for(;;){W(G,0);var rx=j5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(hs(y(G))===0){for(;;){W(G,0);var yx=j5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(0,l2(G))]:Tx(sn0)});case 10:return[0,x,Ut(0,l2(r))];case 11:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&z5(y(G))===0&&V1(y(G))===0){r:for(;;){var rx=M5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(V1(y(G))===0){e:for(;;){var yx=M5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(1,l2(G))]:Tx(cn0)});case 12:return[0,x,Bt(1,l2(r))];case 13:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&z5(y(G))===0&&V1(y(G))===0){for(;;){W(G,0);var rx=R5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(V1(y(G))===0){for(;;){W(G,0);var yx=R5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(3,l2(G))]:Tx(fn0)});case 14:return[0,x,Ut(3,l2(r))];case 15:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&V1(y(G))===0){for(;;)if(W(G,0),V1(y(G))!==0){var rx=w(G);break}}else var rx=w(G);return rx===0?[0,S,Ut(1,l2(G))]:Tx(in0)});case 16:return[0,x,Ut(1,l2(r))];case 17:return D2(x,r,function(S,G){or(G);x:if(Se(y(G))===0&&I5(y(G))===0&&Tr(y(G))===0){r:for(;;){var rx=O5(y(G));if(2>>0){var nx=w(G);break x}switch(rx){case 0:break;case 1:break r;default:var nx=0;break x}}for(;;){r:{if(Tr(y(G))===0){e:for(;;){var yx=O5(y(G));if(2>>0){var Ex=w(G);break r}switch(yx){case 0:break;case 1:break e;default:var Ex=0;break r}}continue}var Ex=w(G)}var nx=Ex;break}}else var nx=w(G);return nx===0?[0,S,Bt(2,l2(G))]:Tx(un0)});case 18:return[0,x,Bt(2,l2(r))];case 19:return D2(x,r,function(S,G){if(or(G),Se(y(G))===0&&I5(y(G))===0&&Tr(y(G))===0){for(;;){W(G,0);var rx=G5(y(G));if(rx!==0)break}if(rx===1)for(;;){if(Tr(y(G))===0){for(;;){W(G,0);var yx=G5(y(G));if(yx!==0)break}if(yx===1)continue;var Ex=w(G)}else var Ex=w(G);var nx=Ex;break}else var nx=w(G)}else var nx=w(G);return nx===0?[0,S,Ut(4,l2(G))]:Tx(nn0)});case 20:return[0,x,Ut(4,l2(r))];case 21:return D2(x,r,function(S,G){function rx(kx){var tr=H5(y(kx));if(2>>0)return w(kx);switch(tr){case 0:var sr=to(y(kx));return sr===0?yx(kx):sr===1?Ex(kx):w(kx);case 1:return yx(kx);default:return Ex(kx)}}function yx(kx){for(;;){var tr=el(y(kx));if(tr!==0)return tr===1?0:w(kx)}}function Ex(kx){for(;;){var tr=Lt(y(kx));if(2>>0)return w(kx);switch(tr){case 0:break;case 1:for(;;){if(vr(y(kx))!==0)return w(kx);x:for(;;){var sr=Lt(y(kx));if(2>>0)return w(kx);switch(sr){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function nx(kx){var tr=K5(y(kx));if(tr!==0)return tr===1?rx(kx):w(kx);x:for(;;){var sr=ve(y(kx));if(2>>0)return w(kx);switch(sr){case 0:break;case 1:return rx(kx);default:break x}}for(;;){if(vr(y(kx))!==0)return w(kx);x:for(;;){var Mr=ve(y(kx));if(2>>0)return w(kx);switch(Mr){case 0:break;case 1:return rx(kx);default:break x}}}}or(G);var p0=eo(y(G));if(2>>0)var Fx=w(G);else x:switch(p0){case 0:if(vr(y(G))===0){r:for(;;){var Sx=ve(y(G));if(2>>0){var Fx=w(G);break x}switch(Sx){case 0:break;case 1:var Fx=rx(G);break x;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var bx=ve(y(G));if(2>>0){var B0=w(G);break r}switch(bx){case 0:break;case 1:var B0=rx(G);break r;default:break e}}continue}var B0=w(G)}var Fx=B0;break}}else var Fx=w(G);break;case 1:var Wx=N5(y(G)),Fx=Wx===0?nx(G):Wx===1?rx(G):w(G);break;default:r:for(;;){var Yx=Y5(y(G));if(2>>0){var Fx=w(G);break}switch(Yx){case 0:var Fx=nx(G);break r;case 1:break;default:var Fx=rx(G);break r}}}if(Fx!==0)return Tx(tn0);var ax=l2(G),Qx=P1(S,zr(S,G),42);return[0,Qx,Bt(2,ax)]});case 22:var px=l2(r),sx=P1(x,zr(x,r),42);return[0,sx,Bt(2,px)];case 23:return D2(x,r,function(S,G){function rx(ax){var Qx=H5(y(ax));if(2>>0)return w(ax);switch(Qx){case 0:var kx=to(y(ax));return kx===0?yx(ax):kx===1?Ex(ax):w(ax);case 1:return yx(ax);default:return Ex(ax)}}function yx(ax){for(;;)if(W(ax,0),vr(y(ax))!==0)return w(ax)}function Ex(ax){for(;;){W(ax,0);var Qx=uo(y(ax));if(Qx!==0){if(Qx!==1)return w(ax);for(;;){if(vr(y(ax))!==0)return w(ax);for(;;){W(ax,0);var kx=uo(y(ax));if(kx!==0)break}if(kx!==1)return w(ax)}}}}function nx(ax){var Qx=K5(y(ax));if(Qx!==0)return Qx===1?rx(ax):w(ax);x:for(;;){var kx=ve(y(ax));if(2>>0)return w(ax);switch(kx){case 0:break;case 1:return rx(ax);default:break x}}for(;;){if(vr(y(ax))!==0)return w(ax);x:for(;;){var tr=ve(y(ax));if(2>>0)return w(ax);switch(tr){case 0:break;case 1:return rx(ax);default:break x}}}}or(G);var p0=eo(y(G));if(2>>0)var Fx=w(G);else x:switch(p0){case 0:if(vr(y(G))===0){r:for(;;){var Sx=ve(y(G));if(2>>0){var Fx=w(G);break x}switch(Sx){case 0:break;case 1:var Fx=rx(G);break x;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var bx=ve(y(G));if(2>>0){var B0=w(G);break r}switch(bx){case 0:break;case 1:var B0=rx(G);break r;default:break e}}continue}var B0=w(G)}var Fx=B0;break}}else var Fx=w(G);break;case 1:var Wx=N5(y(G)),Fx=Wx===0?nx(G):Wx===1?rx(G):w(G);break;default:r:for(;;){var Yx=Y5(y(G));if(2>>0){var Fx=w(G);break}switch(Yx){case 0:var Fx=nx(G);break r;case 1:break;default:var Fx=rx(G);break r}}}return Fx===0?[0,S,Ut(4,l2(G))]:Tx(en0)});case 24:return[0,x,Ut(4,l2(r))];case 25:return D2(x,r,function(S,G){function rx(Yx){for(;;){var ax=Lt(y(Yx));if(2>>0)return w(Yx);switch(ax){case 0:break;case 1:for(;;){if(vr(y(Yx))!==0)return w(Yx);x:for(;;){var Qx=Lt(y(Yx));if(2>>0)return w(Yx);switch(Qx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function yx(Yx){var ax=el(y(Yx));return ax===0?rx(Yx):ax===1?0:w(Yx)}or(G);var Ex=eo(y(G));if(2>>0)var nx=w(G);else x:switch(Ex){case 0:var nx=vr(y(G))===0?rx(G):w(G);break;case 1:for(;;){var p0=tl(y(G));if(p0===0){var nx=yx(G);break}if(p0!==1){var nx=w(G);break}}break;default:r:for(;;){var Fx=io(y(G));if(2>>0){var nx=w(G);break x}switch(Fx){case 0:var nx=yx(G);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var Sx=io(y(G));if(2>>0){var bx=w(G);break r}switch(Sx){case 0:var bx=yx(G);break r;case 1:break;default:break e}}continue}var bx=w(G)}var nx=bx;break}}if(nx!==0)return Tx(rn0);var B0=l2(G),Wx=P1(S,zr(S,G),34);return[0,Wx,Bt(2,B0)]});case 26:return D2(x,r,function(S,G){or(G);var rx=to(y(G));x:if(rx===0)for(;;){var yx=el(y(G));if(yx!==0){if(yx===1){var Fx=0;break}var Fx=w(G);break}}else if(rx===1){r:for(;;){var Ex=Lt(y(G));if(2>>0){var Fx=w(G);break x}switch(Ex){case 0:break;case 1:break r;default:var Fx=0;break x}}for(;;){r:{if(vr(y(G))===0){e:for(;;){var nx=Lt(y(G));if(2>>0){var p0=w(G);break r}switch(nx){case 0:break;case 1:break e;default:var p0=0;break r}}continue}var p0=w(G)}var Fx=p0;break}}else var Fx=w(G);return Fx===0?[0,S,Bt(2,l2(G))]:Tx(xn0)});case 27:var Q=l2(r),b0=P1(x,zr(x,r),34);return[0,b0,Bt(2,Q)];case 28:return[0,x,Bt(2,l2(r))];case 29:return D2(x,r,function(S,G){function rx(B0){for(;;){W(B0,0);var Wx=uo(y(B0));if(Wx!==0){if(Wx!==1)return w(B0);for(;;){if(vr(y(B0))!==0)return w(B0);for(;;){W(B0,0);var Yx=uo(y(B0));if(Yx!==0)break}if(Yx!==1)return w(B0)}}}}function yx(B0){return W(B0,0),vr(y(B0))===0?rx(B0):w(B0)}or(G);var Ex=eo(y(G));if(2>>0)var nx=w(G);else x:switch(Ex){case 0:var nx=vr(y(G))===0?rx(G):w(G);break;case 1:for(;;){W(G,0);var p0=tl(y(G));if(p0===0){var nx=yx(G);break}if(p0!==1){var nx=w(G);break}}break;default:r:for(;;){W(G,0);var Fx=io(y(G));if(2>>0){var nx=w(G);break x}switch(Fx){case 0:var nx=yx(G);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(G))===0){e:for(;;){W(G,0);var Sx=io(y(G));if(2>>0){var bx=w(G);break r}switch(Sx){case 0:var bx=yx(G);break r;case 1:break;default:break e}}continue}var bx=w(G)}var nx=bx;break}}return nx===0?[0,S,Ut(4,l2(G))]:Tx(Zt0)});case 30:return[0,x,Ut(4,l2(r))];case 31:return[0,x,67];case 32:return[0,x,6];default:return[0,x,7]}switch(t0){case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,87];case 45:return[0,x,84];case 46:return[0,x,86];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,99];case 50:return[0,x,y2];case 51:return[0,x,83];case 52:return[0,x,86];case 53:return[0,x,K2];case 54:return[0,x,87];case 55:return[0,x,89];case 56:return[0,x,88];case 57:return[0,x,90];case 58:return[0,x,92];case 59:return[0,x,11];case 60:return[0,x,83];case 61:return[0,x,Be];case 62:return[0,x,ui];case 63:return[0,x,r8];case 64:return[0,x,_k];case 65:var U=r[6];HU(r);var h0=Q6(x,U,r[3]);Rj(r,U);var _0=l2(r),m0=tB(x,_0),T0=m0[2],X=m0[1],Gx=fx(T0,Op);if(0<=Gx){if(0>=Gx)return[0,X,Wa];var Px=fx(T0,v6);if(0<=Px){if(0>=Px)return[0,X,s2];if(!P(T0,ra))return[0,X,32];if(!P(T0,Zs))return[0,X,47];if(!P(T0,fk))return[0,X,Ba];if(!P(T0,Ip))return[0,X,rn];if(!P(T0,Ws))return[0,X,m6]}else{if(!P(T0,Fp))return[0,X,S3];if(!P(T0,uv))return[0,X,30];if(!P(T0,p3))return[0,X,P3];if(!P(T0,Zo))return[0,X,Br];if(!P(T0,Re))return[0,X,43];if(!P(T0,l3))return[0,X,vf]}}else{var G0=fx(T0,Qf);if(0<=G0){if(0>=G0)return[0,X,42];if(!P(T0,Gs))return[0,X,31];if(!P(T0,m3))return[0,X,r6];if(!P(T0,JO))return[0,X,M2];if(!P(T0,ie))return[0,X,54];if(!P(T0,a6))return[0,X,Xo];if(!P(T0,H8))return[0,X,Sk]}else{if(!P(T0,yp))return[0,X,tv];if(!P(T0,b3))return[0,X,d6];if(!P(T0,av))return[0,X,zl];if(!P(T0,k8))return[0,X,pn0];if(!P(T0,$l))return[0,X,ln0];if(!P(T0,be))return[0,X,y6]}}return[0,X,[4,h0,T0,G6(_0)]];case 66:var Kr=x[4]?P1(x,zr(x,r),91):x;return[0,Kr,mr];default:return[0,x,[7,Dx(r)]]}}),Wb0=H6(function(x,r){function e(_){for(;;)if(W(_,33),cr(y(_))!==0)return w(_)}function t(_){W(_,33);var V=KU(y(_));if(3>>0)return w(_);switch(V){case 0:return e(_);case 1:var lx=to(y(_));if(lx===0)for(;;){W(_,28);var U0=rl(y(_));if(2>>0)return w(_);switch(U0){case 0:return u(_);case 1:break;default:return i(_)}}else{if(lx!==1)return w(_);for(;;){W(_,28);var ox=ds(y(_));if(3>>0)return w(_);switch(ox){case 0:return u(_);case 1:break;case 2:return c(_);default:return i(_)}}}break;case 2:for(;;){W(_,28);var wx=rl(y(_));if(2>>0)return w(_);switch(wx){case 0:return v(_);case 1:break;default:return a(_)}}break;default:for(;;){W(_,28);var Cr=ds(y(_));if(3>>0)return w(_);switch(Cr){case 0:return v(_);case 1:break;case 2:return c(_);default:return a(_)}}}}function u(_){for(;;)if(W(_,27),cr(y(_))!==0)return w(_)}function i(_){W(_,26);var V=X2(y(_));if(V!==0)return V===1?u(_):w(_);for(;;)if(W(_,25),cr(y(_))!==0)return w(_)}function c(_){for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,28);var V=ds(y(_));if(3>>0)return w(_);switch(V){case 0:return u(_);case 1:break;case 2:break x;default:return i(_)}}}}function v(_){for(;;)if(W(_,27),cr(y(_))!==0)return w(_)}function a(_){W(_,26);var V=X2(y(_));if(V!==0)return V===1?v(_):w(_);for(;;)if(W(_,25),cr(y(_))!==0)return w(_)}function l(_){W(_,31);var V=X2(y(_));if(V!==0)return V===1?e(_):w(_);for(;;)if(W(_,29),cr(y(_))!==0)return w(_)}function m(_){return W(_,3),$U(y(_))===0?3:w(_)}function h(_){return J5(y(_))===0&&X5(y(_))===0&&GU(y(_))===0&&LU(y(_))===0&&MU(y(_))===0&&B5(y(_))===0&&V6(y(_))===0&&J5(y(_))===0&&fo(y(_))===0&&Vj(y(_))===0&&Tv(y(_))===0?3:w(_)}function T(_){W(_,34);var V=FU(y(_));if(3>>0)return w(_);switch(V){case 0:return e(_);case 1:x:for(;;){W(_,34);var lx=no(y(_));if(4>>0)return w(_);switch(lx){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var U0=no(y(_));if(4>>0)return w(_);switch(U0){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}}break;case 2:return t(_);default:return l(_)}}function b(_){for(;;)if(W(_,19),cr(y(_))!==0)return w(_)}function N(_){W(_,34);var V=rl(y(_));if(2>>0)return w(_);switch(V){case 0:return e(_);case 1:x:for(;;){W(_,34);var lx=ds(y(_));if(3>>0)return w(_);switch(lx){case 0:return e(_);case 1:break;case 2:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var U0=ds(y(_));if(3>>0)return w(_);switch(U0){case 0:return e(_);case 1:break;case 2:break x;default:return l(_)}}}break;default:return l(_)}}function j(_){for(;;)if(W(_,17),cr(y(_))!==0)return w(_)}function I(_){for(;;)if(W(_,17),cr(y(_))!==0)return w(_)}function F(_){for(;;)if(W(_,11),cr(y(_))!==0)return w(_)}function M(_){for(;;)if(W(_,11),cr(y(_))!==0)return w(_)}function z(_){for(;;)if(W(_,15),cr(y(_))!==0)return w(_)}function B(_){for(;;)if(W(_,15),cr(y(_))!==0)return w(_)}function K(_){for(;;)if(W(_,23),cr(y(_))!==0)return w(_)}function n0(_){for(;;)if(W(_,23),cr(y(_))!==0)return w(_)}function $(_){W(_,32);var V=X2(y(_));if(V!==0)return V===1?e(_):w(_);for(;;)if(W(_,30),cr(y(_))!==0)return w(_)}function H(_){for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var V=YU(y(_));if(4>>0)return w(_);switch(V){case 0:return e(_);case 1:return N(_);case 2:break;case 3:break x;default:return $(_)}}}}or(r);var t0=function(_){var V=Ub0(y(_));if(36>>0)return w(_);switch(V){case 0:return 98;case 1:return 99;case 2:if(W(_,1),ms(y(_))!==0)return w(_);for(;;)if(W(_,1),ms(y(_))!==0)return w(_);break;case 3:return 0;case 4:return W(_,0),Ae(y(_))===0?0:w(_);case 5:return W(_,88),hn(y(_))===0?(W(_,58),hn(y(_))===0?54:w(_)):w(_);case 6:return 7;case 7:W(_,95);var lx=y(_),U0=32>>0)return w(_);switch(Cr){case 0:return W(_,83),hn(y(_))===0?70:w(_);case 1:return 4;default:return 69}case 14:W(_,80);var Hx=y(_),Zr=42>>0)return w(_);switch(ux){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}for(;;){if(vr(y(_))!==0)return w(_);x:for(;;){W(_,34);var Lx=no(y(_));if(4>>0)return w(_);switch(Lx){case 0:return e(_);case 1:break;case 2:return t(_);case 3:break x;default:return l(_)}}}break;case 18:W(_,93);var Zx=RU(y(_));if(2>>0)return w(_);switch(Zx){case 0:W(_,2);var qr=F5(y(_));if(2>>0)return w(_);switch(qr){case 0:for(;;){var Y2=F5(y(_));if(2>>0)return w(_);switch(Y2){case 0:break;case 1:return m(_);default:return h(_)}}break;case 1:return m(_);default:return h(_)}break;case 1:return 5;default:return 92}break;case 19:W(_,34);var H2=UU(y(_));if(8

>>0)return w(_);switch(H2){case 0:return e(_);case 1:return T(_);case 2:x:{r:for(;;){W(_,20);var Kt=JU(y(_));if(4>>0)return w(_);switch(Kt){case 0:return b(_);case 1:return N(_);case 2:break;case 3:break x;default:break r}}W(_,19);var dt=X2(y(_));if(dt!==0)return dt===1?b(_):w(_);for(;;)if(W(_,19),cr(y(_))!==0)return w(_)}x:for(;;){W(_,18);var Jt=D5(y(_));if(3>>0)return w(_);switch(Jt){case 0:return j(_);case 1:return N(_);case 2:break;default:break x}}W(_,17);var C1=X2(y(_));if(C1!==0)return C1===1?j(_):w(_);for(;;)if(W(_,17),cr(y(_))!==0)return w(_);break;case 3:x:for(;;){W(_,18);var q1=D5(y(_));if(3>>0)return w(_);switch(q1){case 0:return I(_);case 1:return N(_);case 2:break;default:break x}}W(_,17);var b2=X2(y(_));if(b2!==0)return b2===1?I(_):w(_);for(;;)if(W(_,17),cr(y(_))!==0)return w(_);break;case 4:W(_,33);var wn=qU(y(_));if(wn===0)return e(_);if(wn!==1)return w(_);x:{r:for(;;){W(_,12);var _n=$5(y(_));if(3<_n>>>0)return w(_);switch(_n){case 0:return F(_);case 1:break;case 2:break x;default:break r}}W(_,10);var bs=X2(y(_));if(bs!==0)return bs===1?F(_):w(_);for(;;)if(W(_,9),cr(y(_))!==0)return w(_)}x:for(;;){if(hs(y(_))!==0)return w(_);r:for(;;){W(_,12);var le=$5(y(_));if(3>>0)return w(_);switch(le){case 0:return M(_);case 1:break;case 2:break r;default:break x}}}W(_,10);var Ze=X2(y(_));if(Ze!==0)return Ze===1?M(_):w(_);for(;;)if(W(_,9),cr(y(_))!==0)return w(_);break;case 5:return t(_);case 6:W(_,33);var Ts=BU(y(_));if(Ts===0)return e(_);if(Ts!==1)return w(_);x:{r:for(;;){W(_,16);var Lv=W5(y(_));if(3>>0)return w(_);switch(Lv){case 0:return z(_);case 1:break;case 2:break x;default:break r}}W(_,14);var yt=X2(y(_));if(yt!==0)return yt===1?z(_):w(_);for(;;)if(W(_,13),cr(y(_))!==0)return w(_)}x:for(;;){if(V1(y(_))!==0)return w(_);r:for(;;){W(_,16);var yr=W5(y(_));if(3>>0)return w(_);switch(yr){case 0:return B(_);case 1:break;case 2:break r;default:break x}}}W(_,14);var Ta=X2(y(_));if(Ta!==0)return Ta===1?B(_):w(_);for(;;)if(W(_,13),cr(y(_))!==0)return w(_);break;case 7:W(_,33);var Es=CU(y(_));if(Es===0)return e(_);if(Es!==1)return w(_);x:{r:for(;;){W(_,24);var gt=Q5(y(_));if(3>>0)return w(_);switch(gt){case 0:return K(_);case 1:break;case 2:break x;default:break r}}W(_,22);var Mv=X2(y(_));if(Mv!==0)return Mv===1?K(_):w(_);for(;;)if(W(_,21),cr(y(_))!==0)return w(_)}x:for(;;){if(Tr(y(_))!==0)return w(_);r:for(;;){W(_,24);var qv=Q5(y(_));if(3>>0)return w(_);switch(qv){case 0:return n0(_);case 1:break;case 2:break r;default:break x}}}W(_,22);var bn=X2(y(_));if(bn!==0)return bn===1?n0(_):w(_);for(;;)if(W(_,21),cr(y(_))!==0)return w(_);break;default:return $(_)}break;case 20:W(_,34);var Ea=L5(y(_));if(5>>0)return w(_);switch(Ea){case 0:return e(_);case 1:return T(_);case 2:for(;;){W(_,34);var ko=L5(y(_));if(5>>0)return w(_);switch(ko){case 0:return e(_);case 1:return T(_);case 2:break;case 3:return t(_);case 4:return H(_);default:return $(_)}}break;case 3:return t(_);case 4:return H(_);default:return $(_)}break;case 21:return 46;case 22:return 44;case 23:W(_,78);var Sa=y(_),Aa=59>>0)return Tx(hc0);var c0=t0;if(50>c0)switch(c0){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var r0=A1(x,r),v0=$r(Br),a0=Ev(x,v0,r),g0=a0[1];return[1,g0,qt(g0,r0,a0[2],v0,1)];case 3:var i0=Dx(r);if(!x[5]){var s0=A1(x,r),d0=$r(Br);ir(d0,T1(i0,2,Nx(i0)-2|0));var w0=Ev(x,d0,r),M0=w0[1];return[1,M0,qt(M0,s0,w0[2],d0,1)]}var C0=x[4]?xB(x,zr(x,r),i0):x,D0=A5(1,C0),I0=w5(r);return br(J6(r,I0-1|0,1),Mo)&&P(J6(r,I0-2|0,1),Mo)?[0,D0,87]:[2,D0];case 4:if(x[4])return[2,A5(0,x)];xl(r),or(r);var j0=DU(y(r))===0?0:w(r);return j0===0?[0,x,K2]:Tx(dc0);case 5:var y0=A1(x,r),Y0=$r(Br),L=nl(x,Y0,r),N0=L[1];return[1,N0,qt(N0,y0,L[2],Y0,0)];case 6:if(r[6]!==0)return[0,x,yc0];var S0=A1(x,r),K0=$r(Br),A0=nl(x,K0,r),$0=A0[1],ex=[0,$0[1],S0,A0[2]];return[0,$0,[6,ex,G2(K0)]];case 7:var xx=Dx(r),tx=A1(x,r),z0=$r(Br),px=$r(Br);ir(px,xx);var sx=uB(x,xx,z0,px,0,r),Q=sx[1],b0=sx[3],U=[0,Q[1],tx,sx[2]],h0=G2(px);return[0,Q,[2,[0,U,G2(z0),h0,b0]]];case 8:var _0=$r(Br),m0=$r(Br),T0=A1(x,r),X=iB(x,_0,m0,r),Gx=X[1],Px=X[2],G0=Pe(Gx,r),Kr=[0,Gx[1],T0,G0],S=G2(m0);return[0,Gx,[3,[0,Kr,G2(_0),S,1,Px]]];case 9:return D2(x,r,function(_,V){or(V);x:if(Se(y(V))===0&&q5(y(V))===0&&hs(y(V))===0){r:for(;;){var lx=C5(y(V));if(2>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(hs(y(V))===0){e:for(;;){var U0=C5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,0,Dx(V)]]:Tx(mc0)});case 10:return[0,x,[1,0,Dx(r)]];case 11:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&q5(y(V))===0&&hs(y(V))===0){for(;;){W(V,0);var lx=j5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(hs(y(V))===0){for(;;){W(V,0);var U0=j5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,0,Dx(V)]]:Tx(kc0)});case 12:return[0,x,[0,0,Dx(r)]];case 13:return D2(x,r,function(_,V){or(V);x:if(Se(y(V))===0&&z5(y(V))===0&&V1(y(V))===0){r:for(;;){var lx=M5(y(V));if(2>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(V1(y(V))===0){e:for(;;){var U0=M5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,1,Dx(V)]]:Tx(pc0)});case 14:return[0,x,[1,1,Dx(r)]];case 15:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&z5(y(V))===0&&V1(y(V))===0){for(;;){W(V,0);var lx=R5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(V1(y(V))===0){for(;;){W(V,0);var U0=R5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,3,Dx(V)]]:Tx(lc0)});case 16:return[0,x,[0,3,Dx(r)]];case 17:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0){for(;;){var lx=y(V),U0=47>>0){var wx=w(V);break x}switch(lx){case 0:break;case 1:break r;default:var wx=0;break x}}for(;;){r:{if(Tr(y(V))===0){e:for(;;){var U0=O5(y(V));if(2>>0){var ox=w(V);break r}switch(U0){case 0:break;case 1:break e;default:var ox=0;break r}}continue}var ox=w(V)}var wx=ox;break}}else var wx=w(V);return wx===0?[0,_,[1,2,Dx(V)]]:Tx(ac0)});case 22:return[0,x,[1,2,Dx(r)]];case 23:return D2(x,r,function(_,V){if(or(V),Se(y(V))===0&&I5(y(V))===0&&Tr(y(V))===0){for(;;){W(V,0);var lx=G5(y(V));if(lx!==0)break}if(lx===1)for(;;){if(Tr(y(V))===0){for(;;){W(V,0);var U0=G5(y(V));if(U0!==0)break}if(U0===1)continue;var ox=w(V)}else var ox=w(V);var wx=ox;break}else var wx=w(V)}else var wx=w(V);return wx===0?[0,_,[0,4,Dx(V)]]:Tx(sc0)});case 24:return[0,x,[0,4,Dx(r)]];case 25:return D2(x,r,function(_,V){function lx(Zx){var qr=H5(y(Zx));if(2>>0)return w(Zx);switch(qr){case 0:var Y2=to(y(Zx));return Y2===0?U0(Zx):Y2===1?ox(Zx):w(Zx);case 1:return U0(Zx);default:return ox(Zx)}}function U0(Zx){for(;;){var qr=el(y(Zx));if(qr!==0)return qr===1?0:w(Zx)}}function ox(Zx){for(;;){var qr=Lt(y(Zx));if(2>>0)return w(Zx);switch(qr){case 0:break;case 1:for(;;){if(vr(y(Zx))!==0)return w(Zx);x:for(;;){var Y2=Lt(y(Zx));if(2>>0)return w(Zx);switch(Y2){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function wx(Zx){var qr=K5(y(Zx));if(qr!==0)return qr===1?lx(Zx):w(Zx);x:for(;;){var Y2=ve(y(Zx));if(2>>0)return w(Zx);switch(Y2){case 0:break;case 1:return lx(Zx);default:break x}}for(;;){if(vr(y(Zx))!==0)return w(Zx);x:for(;;){var H2=ve(y(Zx));if(2

>>0)return w(Zx);switch(H2){case 0:break;case 1:return lx(Zx);default:break x}}}}or(V);var Cr=eo(y(V));if(2>>0)var Hx=w(V);else x:switch(Cr){case 0:if(vr(y(V))===0){r:for(;;){var Zr=ve(y(V));if(2>>0){var Hx=w(V);break x}switch(Zr){case 0:break;case 1:var Hx=lx(V);break x;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var dr=ve(y(V));if(2>>0){var Or=w(V);break r}switch(dr){case 0:break;case 1:var Or=lx(V);break r;default:break e}}continue}var Or=w(V)}var Hx=Or;break}}else var Hx=w(V);break;case 1:var x2=N5(y(V)),Hx=x2===0?wx(V):x2===1?lx(V):w(V);break;default:r:for(;;){var ux=Y5(y(V));if(2>>0){var Hx=w(V);break}switch(ux){case 0:var Hx=wx(V);break r;case 1:break;default:var Hx=lx(V);break r}}}if(Hx!==0)return Tx(cc0);var Lx=P1(_,zr(_,V),42);return[0,Lx,[1,2,Dx(V)]]});case 26:var G=P1(x,zr(x,r),42);return[0,G,[1,2,Dx(r)]];case 27:return D2(x,r,function(_,V){function lx(Lx){var Zx=H5(y(Lx));if(2>>0)return w(Lx);switch(Zx){case 0:var qr=to(y(Lx));return qr===0?U0(Lx):qr===1?ox(Lx):w(Lx);case 1:return U0(Lx);default:return ox(Lx)}}function U0(Lx){for(;;)if(W(Lx,0),vr(y(Lx))!==0)return w(Lx)}function ox(Lx){for(;;){W(Lx,0);var Zx=uo(y(Lx));if(Zx!==0){if(Zx!==1)return w(Lx);for(;;){if(vr(y(Lx))!==0)return w(Lx);for(;;){W(Lx,0);var qr=uo(y(Lx));if(qr!==0)break}if(qr!==1)return w(Lx)}}}}function wx(Lx){var Zx=K5(y(Lx));if(Zx!==0)return Zx===1?lx(Lx):w(Lx);x:for(;;){var qr=ve(y(Lx));if(2>>0)return w(Lx);switch(qr){case 0:break;case 1:return lx(Lx);default:break x}}for(;;){if(vr(y(Lx))!==0)return w(Lx);x:for(;;){var Y2=ve(y(Lx));if(2>>0)return w(Lx);switch(Y2){case 0:break;case 1:return lx(Lx);default:break x}}}}or(V);var Cr=eo(y(V));if(2>>0)var Hx=w(V);else x:switch(Cr){case 0:if(vr(y(V))===0){r:for(;;){var Zr=ve(y(V));if(2>>0){var Hx=w(V);break x}switch(Zr){case 0:break;case 1:var Hx=lx(V);break x;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var dr=ve(y(V));if(2>>0){var Or=w(V);break r}switch(dr){case 0:break;case 1:var Or=lx(V);break r;default:break e}}continue}var Or=w(V)}var Hx=Or;break}}else var Hx=w(V);break;case 1:var x2=N5(y(V)),Hx=x2===0?wx(V):x2===1?lx(V):w(V);break;default:r:for(;;){var ux=Y5(y(V));if(2>>0){var Hx=w(V);break}switch(ux){case 0:var Hx=wx(V);break r;case 1:break;default:var Hx=lx(V);break r}}}return Hx===0?[0,_,[0,4,Dx(V)]]:Tx(fc0)});case 28:return[0,x,[0,4,Dx(r)]];case 29:return D2(x,r,function(_,V){function lx(x2){for(;;){var ux=Lt(y(x2));if(2>>0)return w(x2);switch(ux){case 0:break;case 1:for(;;){if(vr(y(x2))!==0)return w(x2);x:for(;;){var Lx=Lt(y(x2));if(2>>0)return w(x2);switch(Lx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function U0(x2){var ux=el(y(x2));return ux===0?lx(x2):ux===1?0:w(x2)}or(V);var ox=eo(y(V));if(2>>0)var wx=w(V);else x:switch(ox){case 0:var wx=vr(y(V))===0?lx(V):w(V);break;case 1:for(;;){var Cr=tl(y(V));if(Cr===0){var wx=U0(V);break}if(Cr!==1){var wx=w(V);break}}break;default:r:for(;;){var Hx=io(y(V));if(2>>0){var wx=w(V);break x}switch(Hx){case 0:var wx=U0(V);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var Zr=io(y(V));if(2>>0){var dr=w(V);break r}switch(Zr){case 0:var dr=U0(V);break r;case 1:break;default:break e}}continue}var dr=w(V)}var wx=dr;break}}if(wx!==0)return Tx(ic0);var Or=P1(_,zr(_,V),34);return[0,Or,[1,2,Dx(V)]]});case 30:return D2(x,r,function(_,V){or(V);var lx=to(y(V));x:if(lx===0)for(;;){var U0=el(y(V));if(U0!==0){if(U0===1){var Hx=0;break}var Hx=w(V);break}}else if(lx===1){r:for(;;){var ox=Lt(y(V));if(2>>0){var Hx=w(V);break x}switch(ox){case 0:break;case 1:break r;default:var Hx=0;break x}}for(;;){r:{if(vr(y(V))===0){e:for(;;){var wx=Lt(y(V));if(2>>0){var Cr=w(V);break r}switch(wx){case 0:break;case 1:break e;default:var Cr=0;break r}}continue}var Cr=w(V)}var Hx=Cr;break}}else var Hx=w(V);return Hx===0?[0,_,[1,2,Dx(V)]]:Tx(uc0)});case 31:var rx=P1(x,zr(x,r),34);return[0,rx,[1,2,Dx(r)]];case 32:return[0,x,[1,2,Dx(r)]];case 33:return D2(x,r,function(_,V){function lx(Or){for(;;){W(Or,0);var x2=uo(y(Or));if(x2!==0){if(x2!==1)return w(Or);for(;;){if(vr(y(Or))!==0)return w(Or);for(;;){W(Or,0);var ux=uo(y(Or));if(ux!==0)break}if(ux!==1)return w(Or)}}}}function U0(Or){return W(Or,0),vr(y(Or))===0?lx(Or):w(Or)}or(V);var ox=eo(y(V));if(2>>0)var wx=w(V);else x:switch(ox){case 0:var wx=vr(y(V))===0?lx(V):w(V);break;case 1:for(;;){W(V,0);var Cr=tl(y(V));if(Cr===0){var wx=U0(V);break}if(Cr!==1){var wx=w(V);break}}break;default:r:for(;;){W(V,0);var Hx=io(y(V));if(2>>0){var wx=w(V);break x}switch(Hx){case 0:var wx=U0(V);break x;case 1:break;default:break r}}for(;;){r:{if(vr(y(V))===0){e:for(;;){W(V,0);var Zr=io(y(V));if(2>>0){var dr=w(V);break r}switch(Zr){case 0:var dr=U0(V);break r;case 1:break;default:break e}}continue}var dr=w(V)}var wx=dr;break}}return wx===0?[0,_,[0,4,Dx(V)]]:Tx(nc0)});case 34:return[0,x,[0,4,Dx(r)]];case 35:var yx=zr(x,r),Ex=Dx(r);return[0,x,[4,yx,Ex,Ex]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,87];case 47:xl(r),or(r);var nx=y(r),p0=62=Wx)return[0,x,54];var Yx=fx(B0,N3);if(0<=Yx){if(0>=Yx)return[0,x,52];var ax=fx(B0,Zs);if(0<=ax){if(0>=ax)return[0,x,47];if(!P(B0,Yl))return[0,x,25];if(!P(B0,Ws))return[0,x,48];if(!P(B0,L4))return[0,x,26];if(!P(B0,Hk))return[0,x,27];if(!P(B0,B1))return[0,x,59]}else{if(!P(B0,Ge))return[0,x,20];if(!P(B0,Qo))return[0,x,22];if(!P(B0,ze))return[0,x,23];if(!P(B0,ra))return[0,x,32];if(!P(B0,y8))return[0,x,24];if(!P(B0,qf))return[0,x,62]}}else{var Qx=fx(B0,Bp);if(0<=Qx){if(0>=Qx)return[0,x,55];if(!P(B0,h6))return[0,x,56];if(!P(B0,Rl))return[0,x,57];if(!P(B0,l6))return[0,x,58];if(!P(B0,Xe))return[0,x,19];if(!P(B0,Re))return[0,x,43]}else{if(!P(B0,j3))return[0,x,29];if(!P(B0,aI))return[0,x,21];if(!P(B0,rv))return[0,x,45];if(!P(B0,uv))return[0,x,30];if(!P(B0,cS))return[0,x,64];if(!P(B0,ub))return[0,x,63]}}}else{var kx=fx(B0,Xp);if(0<=kx){if(0>=kx)return[0,x,44];var tr=fx(B0,h3);if(0<=tr){if(0>=tr)return[0,x,15];if(!P(B0,d8))return[0,x,16];if(!P(B0,cv))return[0,x,53];if(!P(B0,X1))return[0,x,51];if(!P(B0,qa))return[0,x,17];if(!P(B0,Gl))return[0,x,18]}else{if(!P(B0,Ql))return[0,x,49];if(!P(B0,Nm))return[0,x,50];if(!P(B0,Qf))return[0,x,42];if(!P(B0,Gs))return[0,x,31];if(!P(B0,e8))return[0,x,39];if(!P(B0,f8))return[0,x,40]}}else{var sr=fx(B0,u6);if(0<=sr){if(0>=sr)return[0,x,28];if(!P(B0,Le))return[0,x,36];if(!P(B0,Ye))return[0,x,60];if(!P(B0,g6))return[0,x,61];if(!P(B0,Go))return[0,x,37];if(!P(B0,Kl))return[0,x,46];if(!P(B0,Rp))return[0,x,38]}else{if(!P(B0,Ka))return[0,x,65];if(!P(B0,nv))return[0,x,66];if(!P(B0,Ke))return[0,x,33];if(!P(B0,pp))return[0,x,34];if(!P(B0,V8))return[0,x,35];if(!P(B0,Ml))return[0,x,41]}}}var Mr=l2(r),a2=tB(x,Mr),_2=a2[2],i2=a2[1];return[0,i2,[4,bx,_2,G6(Mr)]];case 98:var Q2=x[4]?P1(x,zr(x,r),91):x;return[0,Q2,mr];default:var jx=mt(x,zr(x,r));return[0,jx,[7,Dx(r)]]}}),I1=kU([0,Sb0]);function Z6(x,r){return[0,0,0,r,TU(x)]}function xh(x){var r=x[4];switch(x[3]){case 0:var t0=Wb0(r);break;case 1:var t0=Gb0(r);break;case 2:var t0=Kb0(r);break;case 3:var e=Pe(r,r[2]),t=$r(Br),u=$r(Br),i=r[2];or(i);var c=y(i),v=rn>>0)var a=w(i);else switch(v){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:W(i,0);var a=Ae(y(i))===0?0:w(i);break;case 4:var a=2;break;default:var a=3}if(4>>0)var l=Tx(dn0);else switch(a){case 0:var m=Dx(i);ir(u,m),ir(t,m);var h=cB($1(r,i),t,u,i),T=Pe(h,i),b=G2(t),N=G2(u),l=[0,h,[9,[0,h[1],e,T],b,N]];break;case 1:var l=[0,r,mr];break;case 2:var l=[0,r,99];break;case 3:var l=[0,r,0];break;default:xl(i);var j=cB(r,t,u,i),I=Pe(j,i),F=G2(t),M=G2(u),l=[0,j,[9,[0,j[1],e,I],F,M]]}var z=l[2],B=l[1],K=ZU(B,z),n0=B[6];if(n0===0)var H=[0,B,[0,z,K,0,0]];else var $=[0,z,K,ix(n0),0],H=[0,[0,B[1],B[2],B[3],B[4],B[5],0,B[7]],$];var t0=H;break;case 4:var t0=Jb0(r);break;default:var t0=zb0(r)}var c0=t0[1],r0=t0[2],v0=[0,TU(c0),r0];return x[4]=c0,x[1]?x[2]=[0,v0]:x[1]=[0,v0],v0}function sB(x){var r=x[1];return r?r[1][2]:xh(x)[2]}function ul(x){return C6(x[24][1])}function A2(x){return x[28][5]}function q0(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];return t?p(t[1],x,e):0}function x4(x,r){x[31][1]=r}function co(x,r){if(x===0)return sB(r[26][1]);if(x!==1)throw W0([0,Nr,Qc0],1);var e=r[26][1];e[1]||xh(e);var t=e[2];return t?t[1][2]:xh(e)[2]}function ha(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function aB(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Qj(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Hj(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function oB(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Sv(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Zj(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function r4(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function e4(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Av(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function xC(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function vB(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function lB(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function rC(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function rh(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function eC(x){function r(e){return q0(x,e)}return function(e){return b1(r,e)}}function il(x){var r=x[4][1];return r?[0,r[1][2]]:0}function pB(x){var r=x[4][1];return r?[0,r[1][1]]:0}function kB(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function mB(x,r,e,t){return[0,x[1],x[2],I1[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function fl(x){return P(x,cv)&&P(x,ie)&&P(x,j3)&&P(x,Bp)&&P(x,h6)&&P(x,Rl)&&P(x,l6)&&P(x,Re)&&P(x,B1)?0:1}function Pv(x){return P(x,vb)&&P(x,"eval")?0:1}function eh(x){var r=fx(x,d8);x:{if(0<=r){if(0>>0){if(Te>=t+1>>>0)return 1}else if(t===6)return 0}return Iv(x,r)}function sl(x){return yB(0,x)}function ya(x,r){var e=xr(x,r);x:{if(typeof e=="number")switch(e){case 29:case 43:case 53:case 54:case 55:case 56:case 57:case 58:case 59:var t=1;break x}else if(e[0]===4){var t=fl(e[2]);break x}var t=0}if(t)return 1;x:{if(typeof e=="number")switch(e){case 14:case 21:case 49:case 61:case 62:case 63:case 64:case 65:case 66:case 127:break;default:break x}else if(e[0]!==4)break x;return 1}return 0}function th(x,r){return hB(r,xr(x,r))}function gB(x,r){var e=ya(x,r);return e||th(x,r)}function dn(x){return ya(0,x)}function so(x){var r=q(x)===15?1:0;if(r)var e=r;else{var t=q(x)===65?1:0;if(t){var u=xr(1,x)===15?1:0;if(u)var i=cl(1,x)[2][1],e=V0(x)[3][1]===i?1:0;else var e=u}else var e=t}return e}function nh(x){var r=q(x);if(typeof r!="number"&&r[0]===4&&!P(r[3],Vo)){var e=x[28][1];if(e){var t=ya(1,x);if(t)var u=cl(1,x)[2][1],i=V0(x)[3][1]===u?1:0;else var i=t}else var i=e;return i}return 0}function t4(x){var r=q(x);if(typeof r=="number")switch(r){case 13:case 41:return 1}else if(r[0]===4&&!P(r[3],lA)&&xr(1,x)===41)return 1;return 0}function uC(x){var r=x[28][1];if(r){var e=q(x);if(typeof e!="number"&&e[0]===4&&!P(e[3],$s)&&ya(1,x))return 1;var t=0}else var t=r;return t}function iC(x){var r=q(x);return typeof r!="number"&&r[0]===4&&!P(r[3],_3)?1:0}function Ux(x,r){return q0(x,[0,V0(x),r])}function wB(x,r){var e=zj(0,r);return x?[28,e,x[1]]:[26,e]}function p2(x,r){var e=nC(r);return eC(r)(e),Ux(r,wB(x,q(r)))}function uh(x){function r(e){return q0(x,[0,e[1],sv])}return function(e){return b1(r,e)}}function _B(x,r){var e=x[6]?H0(ar(Wc0),r,r,r):Vc0;return p2([0,e],x)}function Ie(x,r){var e=x[5];return e&&Ux(x,r)}function ht(x,r){var e=x[5],t=r[2],u=r[1];return e&&q0(x,[0,u,t])}function Nv(x,r){return q0(x,[0,r,[14,x[5]]])}function E0(x){var r=x[27][1];if(r){var e=r[1],t=ul(x),u=q(x);d(e,[0,V0(x),u,t])}var i=x[26][1],c=i[1],v=c?c[1][1]:xh(i)[1];x[25][1]=v;var a=nC(x);eC(x)(a);var l=x[2][1],m=K3(co(0,x)[4],l);x[2][1]=m;var h=[0,co(0,x)];x[4][1]=h;var T=x[26][1];return T[2]?(T[1]=T[2],T[2]=0,0):(sB(T),T[1]=0,0)}function u2(x,r){var e=SU(q(x),r);return e&&E0(x),e}function V2(x,r){x[24][1]=[0,r,x[24][1]];var e=ul(x),t=Z6(x[25][1],e);x[26][1]=t}function Z2(x){var r=x[24][1],e=r?r[2]:Tx(Gc0);x[24][1]=e;var t=ul(x),u=Z6(x[25][1],t);x[26][1]=u}function L0(x){var r=V0(x);if(q(x)===9&&Iv(1,x)){var e=u0(x),t=Mx(e,D6(function(i){return i[1][2][1]<=r[3][1]?1:0},co(1,x)[4]));return x4(x,[0,r[3][1]+1|0,0]),t}var u=u0(x);return x4(x,r[3]),u}function ao(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=D6(function(u){return u[1][2][1]<=e[3][1]?1:0},u0(x));return x4(x,[0,e[3][1]+1|0,0]),t}function yn(x,r){return p2([0,zj(zc0,r)],x)}function J(x,r){return 1-SU(q(x),r)&&yn(x,r),E0(x)}function bB(x,r){var e=u2(x,r);return 1-e&&yn(x,r),e}function ih(x,r){bB(x,r)}function ys(x,r){var e=q(x);x:{if(typeof e!="number"&&e[0]===4&&br(e[3],r))break x;p2([0,d(ar(Yc0),r)],x)}return E0(x)}var gs=[n2,ts0,as(0)];function TB(x,r,e){if(e){var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var c=i[2];;){if(!c)return;var v=c[2];d(u,c[1]);var c=v}}}function fC(x,r){var e=x[27][1];if(e){var t=e[1],u=eq(O);x[27][1]=[0,function(M){return xj(M,u)}];var i=[0,[0,t,u]]}else var i=0;var c=x[31][1],v=x[25][1],a=x[24][1],l=x[4][1],m=x[2][1],h=x[1][1];try{var T=d(r,x);TB(1,x,i);var b=[0,T];return b}catch(F){var N=U2(F);if(N!==gs)throw W0(N,0);TB(0,x,i),x[1][1]=h,x[2][1]=m,x[4][1]=l,x[24][1]=a,x[25][1]=v,x[31][1]=c;var j=ul(x),I=Z6(x[25][1],j);return x[26][1]=I,0}}function fh(x,r,e){var t=fC(x,e);return t?t[1]:r}function n4(x,r){var e=ix(r);if(!e)return r;var t=e[1],u=e[2],i=d(x,t);return t===i?r:ix([0,i,u])}var EB=d5(cs0,function(x){var r=Nj(x,us0),e=Pj(x,fs0),t=e[24],u=e[28],i=e[41],c=e[91],v=e[p6],a=e[vA],l=e[m_],m=e[VL],h=e[BR],T=e[jO],b=e[6],N=e[7],j=e[10],I=e[17],F=e[23],M=e[29],z=e[39],B=e[42],K=e[52],n0=e[61],$=e[Je],H=e[z1],t0=e[Wa],c0=e[P3],r0=e[OI],v0=e[DR],a0=e[NL],g0=e[XP],i0=e[Ap],s0=e[jg],d0=e[gp],w0=e[U9],M0=e[O8],C0=e[Db],D0=e[Gd],I0=e[$T],j0=e[LO],y0=e[_L],Y0=e[$D],L=e[UL],N0=e[yD],S0=e[Vb],K0=e[fL],A0=e[YD],$0=e[RF],ex=e[wD],xx=e[dD],tx=e[AD],z0=e[xL],px=e[fD],sx=Cj(x,0,0,MM,Mj,1)[1];return Dj(x,[0,B,function(Q,b0){var U=b0[2],h0=D6(function(m0){return ma(m0[1][2],Q[1+r])<0?1:0},U),_0=aa(h0);return aa(U)===_0?b0:[0,b0[1],h0,b0[3]]},px,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},z0,function(Q,b0){var U=b0[2];return P0(d(Q[1][1+i],Q),U,b0,function(h0){return[0,b0[1],h0]})},tx,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},xx,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},ex,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},$0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+T],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},T,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},h,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},A0,function(Q,b0,U){var h0=U[7],_0=U[2],m0=p(Q[1][1+m],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],m0,U[3],U[4],U[5],U[6],T0]},m,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},K0,function(Q,b0,U){var h0=U[2],_0=U[1];if(h0===0)return P0(d(Q[1][1+a],Q),_0,U,function(T0){return[0,T0,U[2],U[3]]});var m0=d(Q[1][1+t],Q);return P0(function(T0){return Ax(m0,T0)},h0,U,function(T0){return[0,U[1],T0,U[3]]})},S0,function(Q,b0){var U=b0[2],h0=U[2],_0=b0[1],m0=U[1],T0=d(Q[1][1+l],Q);return P0(function(X){return n4(T0,X)},m0,b0,function(X){return[0,_0,[0,X,h0]]})},l,function(Q,b0){var U=b0[2],h0=U[2],_0=U[1],m0=b0[1];if(h0===0)return P0(d(Q[1][1+v],Q),_0,b0,function(X){return[0,m0,[0,X,h0]]});var T0=d(Q[1][1+t],Q);return P0(function(X){return Ax(T0,X)},h0,b0,function(X){return[0,m0,[0,_0,X]]})},L,function(Q,b0,U){var h0=U[6],_0=U[5],m0=p(Q[1][1+N0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],U[3],U[4],m0,T0,U[7]]},Y0,function(Q,b0){var U=b0[2],h0=b0[1],_0=U[3];return P0(d(Q[1][1+i],Q),_0,[0,h0,U],function(m0){return[0,h0,[0,U[1],U[2],m0]]})},y0,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},j0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},I0,function(Q,b0,U){var h0=U[10],_0=U[3],m0=p(Q[1][1+D0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,U[4],U[5],U[6],U[7],U[8],U[9],T0,U[11]]},C0,function(Q,b0){var U=b0[2],h0=b0[1],_0=U[4];return P0(d(Q[1][1+i],Q),_0,[0,h0,U],function(m0){return[0,h0,[0,U[1],U[2],U[3],m0]]})},M0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+w0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0,U[5]]},d0,function(Q,b0){if(b0[0]===0){var U=b0[1];return P0(d(Q[1][1+v],Q),U,b0,function(Gx){return[0,Gx]})}var h0=b0[1],_0=h0[2],m0=_0[2],T0=h0[1],X=p(Q[1][1+v],Q,m0);return m0===X?b0:[1,[0,T0,[0,_0[1],X]]]},s0,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},i0,function(Q,b0,U){var h0=U[3],_0=U[1],m0=W2(d(Q[1][1+c],Q),_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,m0,U[2],T0]},g0,function(Q,b0,U){var h0=U[2],_0=U[1],m0=_0[3],T0=_0[2],X=_0[1];if(m0)var Gx=n4(d(Q[1][1+u],Q),m0),Px=T0;else var Gx=0,Px=p(Q[1][1+u],Q,T0);var G0=p(Q[1][1+i],Q,h0);return T0===Px&&m0===Gx&&h0===G0?U:[0,[0,X,Px,Gx],G0]},a0,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},v0,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},r0,function(Q,b0,U){var h0=U[4],_0=U[3],m0=p(Q[1][1+a],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],U[2],m0,T0]},H,function(Q,b0,U){var h0=U[4],_0=U[3],m0=U[2],T0=U[1],X=p(Q[1][1+i],Q,h0);if(_0){var Gx=Ax(d(Q[1][1+T],Q),_0);return _0===Gx&&h0===X?U:[0,U[1],U[2],Gx,X]}if(m0){var Px=Ax(d(Q[1][1+h],Q),m0);return m0===Px&&h0===X?U:[0,U[1],Px,U[3],X]}var G0=p(Q[1][1+a],Q,T0);return T0===G0&&h0===X?U:[0,G0,U[2],U[3],X]},c0,function(Q,b0,U){var h0=U[3],_0=U[2],m0=p(Q[1][1+t0],Q,_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,U[1],m0,T0]},$,function(Q,b0,U){var h0=U[2];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],_0]})},c,function(Q,b0,U){var h0=U[4];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],U[3],_0]})},n0,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},K,function(Q,b0,U){var h0=U[2],_0=U[1],m0=n4(d(Q[1][1+a],Q),_0),T0=p(Q[1][1+i],Q,h0);return _0===m0&&h0===T0?U:[0,m0,T0]},z,function(Q,b0,U){var h0=U[3];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],_0]})},M,function(Q,b0){var U=b0[3];return P0(d(Q[1][1+i],Q),U,b0,function(h0){return[0,b0[1],b0[2],h0]})},F,function(Q,b0,U){var h0=U[3];return P0(d(Q[1][1+i],Q),h0,U,function(_0){return[0,U[1],U[2],_0]})},I,function(Q,b0){var U=b0[2],h0=U[1],_0=b0[1],m0=U[2];return P0(d(Q[1][1+i],Q),m0,b0,function(T0){return[0,_0,[0,h0,T0]]})},j,function(Q,b0,U){var h0=U[2],_0=U[1],m0=_0[3],T0=_0[2],X=_0[1];if(m0)var Gx=n4(d(Q[1][1+u],Q),m0),Px=T0;else var Gx=0,Px=p(Q[1][1+u],Q,T0);var G0=p(Q[1][1+i],Q,h0);return T0===Px&&m0===Gx&&h0===G0?U:[0,[0,X,Px,Gx],G0]},N,function(Q,b0,U){var h0=U[2],_0=h0[2],m0=h0[1],T0=U[1];if(!_0)return P0(p(Q[1][1+b],Q,b0),m0,U,function(Gx){return[0,T0,[0,Gx,_0]]});var X=_0[1];return P0(d(Q[1][1+a],Q),X,U,function(Gx){return[0,T0,[0,m0,[0,Gx]]]})}]),function(Q,b0,U){var h0=y5(b0,x);return h0[1+r]=U,d(sx,h0),Oj(b0,h0,x)}});function ch(x){var r=il(x);if(r)var e=r[1],t=dB(x)?(x4(x,e[3]),[0,p(EB[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,c){return u?c(u[1],i):i}]}function u4(x){var r=il(x);if(r){var e=r[1];if(dB(x)){x4(x,e[3]);var t=ao(x),u=[0,p(EB[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=ao(x)}else var u=0,i=0;return[0,i,function(c,v){return u?p(v,u[1],c):c}]}function F2(x){return N1(x)?u4(x):ch(x)}function Xt(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,C3,2),e,t)})}function Q1(x,r){if(!r)return 0;var e=r[1];return[0,p(F2(x)[2],e,function(t,u){return p(Bx(t,oT,5),t,u)})]}function cC(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,qL,8),e,t)})}function al(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-1045824777,9),e,t)})}function i4(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-455772979,10),e,t)})}function SB(x,r){if(!r)return 0;var e=r[1];return[0,p(F2(x)[2],e,function(t,u){return p(Bx(t,jL,13),t,u)})]}function gn(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,ZR,14),e,t)})}function AB(x,r){return p(F2(x)[2],r,function(e,t){var u=d(Bx(e,TD,16),e);return n4(function(i){return W2(u,i)},t)})}function PB(x,r){return p(F2(x)[2],r,function(e,t){return p(Bx(e,-21476009,17),e,t)})}d5(ss0,function(x){var r=Nj(x,ns0),e=jj(is0),t=e.length-1,u=LM.length-1,i=$a(t+u|0,0),c=t-1|0,v=0;if(c>=0)for(var a=v;;){var l=z6(x,N2(e,a)[1+a]);N2(i,a)[1+a]=l;var m=a+1|0;if(c===a)break;var a=m}var h=u-1|0,T=0;if(h>=0)for(var b=T;;){var N=b+t|0,j=Nj(x,N2(LM,b)[1+b]);N2(i,N)[1+N]=j;var I=b+1|0;if(h===b)break;var b=I}var F=i[4],M=i[5],z=i[eF],B=i[m_],K=i[316],n0=i[317],$=i[44],H=i[aD],t0=i[bF],c0=Cj(x,0,0,MM,Mj,1)[1];return Dj(x,[0,H,function(r0){return[0,r0[1+K],r0[1+n0]]},B,function(r0,v0){var a0=v0[2],g0=v0[1];return b1(d(r0[1][1+M],r0),g0),b1(d(r0[1][1+F],r0),a0)},z,function(r0,v0){return v0?p(r0[1][1+B],r0,v0[1]):0},M,function(r0,v0){var a0=v0[1],g0=r0[1+K];if(g0){var i0=ma(a0[2],g0[1][1][2])<0?1:0,s0=i0&&(r0[1+K]=[0,v0],0);return s0}var d0=ma(a0[2],r0[1+r][2])<0?1:0,w0=d0&&(r0[1+K]=[0,v0],0);return w0},F,function(r0,v0){var a0=v0[1],g0=r0[1+n0];if(g0){var i0=ma(g0[1][1][2],a0[2])<0?1:0,s0=i0&&(r0[1+n0]=[0,v0],0);return s0}var d0=0<=ma(a0[2],r0[1+r][3])?1:0,w0=d0&&(r0[1+n0]=[0,v0],0);return w0},$,function(r0,v0){return p(r0[1][1+B],r0,v0),v0},t0,function(r0,v0,a0){return p(r0[1][1+z],r0,a0[2]),a0}]),function(r0,v0,a0){var g0=y5(v0,x);return g0[1+r]=a0,d(c0,g0),g0[1+K]=0,g0[1+n0]=0,Oj(v0,g0,x)}});function IB(x){var r=q(x);x:{if(typeof r=="number"){var e=r;if(50<=e)switch(e){case 50:var u=Ks0;break x;case 51:var u=Js0;break x;case 52:var u=Gs0;break x;case 53:var u=Ws0;break x;case 54:var u=Vs0;break x;case 55:var u=$s0;break x;case 56:var u=Qs0;break x;case 57:var u=Hs0;break x;case 58:var u=Zs0;break x;case 59:var u=xa0;break x;case 60:var u=ra0;break x;case 61:var u=ea0;break x;case 62:var u=ta0;break x;case 63:var u=na0;break x;case 64:var u=ua0;break x;case 65:var u=ia0;break x;case 66:var u=fa0;break x;case 115:var u=ca0;break x;case 116:var u=sa0;break x;case 117:var u=aa0;break x;case 118:var u=oa0;break x;case 119:var u=va0;break x;case 120:var u=la0;break x;case 121:var u=pa0;break x;case 122:var u=ka0;break x;case 123:var u=ma0;break x;case 124:var u=ha0;break x;case 125:var u=da0;break x;case 126:var u=ya0;break x;case 127:var u=ga0;break x;case 129:var u=wa0;break x;case 130:var u=_a0;break x;case 131:var u=ba0;break x}else switch(e){case 15:var u=as0;break x;case 16:var u=os0;break x;case 17:var u=vs0;break x;case 18:var u=ls0;break x;case 19:var u=ps0;break x;case 20:var u=ks0;break x;case 21:var u=ms0;break x;case 22:var u=hs0;break x;case 23:var u=ds0;break x;case 24:var u=ys0;break x;case 25:var u=gs0;break x;case 26:var u=ws0;break x;case 27:var u=_s0;break x;case 28:var u=bs0;break x;case 29:var u=Ts0;break x;case 30:var u=Es0;break x;case 31:var u=Ss0;break x;case 32:var u=As0;break x;case 33:var u=Ps0;break x;case 34:var u=Is0;break x;case 35:var u=Ns0;break x;case 36:var u=js0;break x;case 37:var u=Cs0;break x;case 38:var u=Os0;break x;case 39:var u=Ds0;break x;case 40:var u=Fs0;break x;case 41:var u=Rs0;break x;case 42:var u=Ls0;break x;case 43:var u=Ms0;break x;case 44:var u=qs0;break x;case 45:var u=Us0;break x;case 46:var u=Bs0;break x;case 47:var u=Xs0;break x;case 48:var u=Ys0;break x;case 49:var u=zs0;break x}}else switch(r[0]){case 4:var u=r[2];break x;case 11:var t=r[1]?Ta0:Ea0,u=t;break x}p2(Sa0,x);var u=Aa0}return E0(x),u}function a1(x){var r=V0(x),e=u0(x),t=IB(x);return[0,r,[0,t,Z([0,e],[0,L0(x)],O)]]}function NB(x){var r=V0(x),e=u0(x);J(x,14);var t=V0(x),u=IB(x),i=Z([0,e],[0,L0(x)],O),c=Yr(r,t),v=t[2],a=r[3],l=a[1]===v[1]?1:0,m=l&&(a[2]===v[2]?1:0);return 1-m&&q0(x,[0,c,z1]),[0,c,[0,u,i]]}function jv(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],c=u[2];x:{if(i[1][2][0]===2&&!i[2]){var v=1;break x}var v=0}if(!v)return v;var u=c}}function f4(x){for(var r=x;;){var e=r[2];if(e[0]!==31)return 0;var t=e[1][2];if(t[2][0]===27)return 1;var r=t}}function sh(x,r,e){var t=e[2][1],u=e[1];if(!P(t,nv)){var i=r[19];return i&&q0(r,[0,u,5])}if(P(t,j3)){if(!P(t,B1))return r[18]?q0(r,[0,u,95]):ht(r,[0,u,80])}else if(r[14])return q0(r,[0,u,[26,P5(t)]]);if(fl(t))return ht(r,[0,u,80]);if(eh(t))return q0(r,[0,u,95]);if(x){var c=x[1];if(Pv(t))return ht(r,[0,u,c])}}function x0(x,r,e){var t=x?x[1]:V0(e),u=d(r,e),i=il(e),c=i?Yr(t,i[1]):t;return[0,c,u]}function sC(x,r,e){var t=x0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]}function ah(x){V2(x,0);var r=q(x);Z2(x);var e=xr(1,x);x:{r:{if(typeof r=="number"){if(r!==22)break x}else{if(r[0]!==4)break x;var t=r[3];if(P(t,b3)){if(!P(t,m3))e:{if(typeof e=="number"){if(e!==22)break e}else if(e[0]!==4)break e;break r}}else e:{if(typeof e=="number"){if(e!==22)break e}else if(e[0]!==4)break e;break r}}if(typeof e=="number"){if(Xo!==e)break x}else if(e[0]!==4||P(e[3],a6))break x}return 1}return 0}function jB(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}}function aC(x,r,e){if(e){var t=e[1];x:{if(t!==8232&&t1!==t){if(t===10){var u=6;break x}if(t===13){var u=5;break x}if(c6<=t){var u=3;break x}if(t_<=t){var u=2;break x}if(M2<=t){var u=1;break x}var u=0;break x}var u=7}var i=u}else var i=4;return[0,i,x]}var Vb0=[n2,co0,as(0)];function CB(x,r,e,t){try{var u=N2(x,r)[1+r];return u}catch(c){var i=U2(c);throw i[1]===u5?W0([0,Vb0,e,H0(ar(io0),t,r,x.length-1)],1):W0(i,0)}}function oh(x,r){if(r[1]===0&&r[2]===0)return 0;var e=CB(x,r[1]-1|0,r,no0);return CB(e,r[2],r,uo0)}function OB(x){function r(a){var l=q(a);x:if(typeof l=="number"){if(8<=l){if(10<=l)break x}else if(l!==1)break x;return 1}return 0}function e(a,l,m,h,T,b){var N=H0(x[24],a,T,b);if(m)var j=qx(Oo0,b),I=-N;else var j=b,I=N;var F=L0(a);return r(a)?[2,l,[0,I,j,Z([0,h],[0,F],O)]]:[0,l]}function t(a){var l=V0(a),m=u0(a),h=q(a);if(typeof h=="number")switch(h){case 105:E0(a);var T=q(a);return typeof T!="number"&&T[0]===0?e(a,l,1,m,T[1],T[2]):[0,l];case 31:case 32:E0(a);var b=L0(a);return r(a)?[1,l,[0,h===32?1:0,Z([0,m],[0,b],O)]]:[0,l]}else switch(h[0]){case 0:return e(a,l,0,m,h[1],h[2]);case 1:var N=h[2],j=H0(x[26],a,h[1],N),I=L0(a);return r(a)?[4,l,[0,j,N,Z([0,m],[0,I],O)]]:[0,l];case 2:var F=h[1],M=F[1],z=F[3],B=F[2];F[4]&&Ie(a,76),E0(a);var K=L0(a);return r(a)?[3,M,[0,B,z,Z([0,m],[0,K],O)]]:[0,M]}return E0(a),[0,l]}var u=[0,Do0,I1[1],0,0];function i(a){var l=a1(a),m=q(a);x:{if(typeof m=="number"){if(m===83){J(a,83);var h=t(a);break x}if(m===87){Ux(a,[8,l[2][1]]),J(a,87);var h=t(a);break x}}var h=0}return[0,l,h]}var c=0;function v(a,l,m,h,T,b,N){var j=aa(T),I=aa(b);function F(z){return[2,[0,[0,b],m,h,N]]}function M(z){return[2,[0,[1,T],m,h,N]]}return j===0?F(O):I===0?M(O):j>>0){if(Te>=$+1>>>0)break}else if($===10){var H=V0(I),t0=u0(I);E0(I);var c0=q(I);x:{r:if(typeof c0=="number"){var r0=c0-2|0;if(ce>>0){if(Te>>0)break r}else{if(r0!==7)break r;J(I,9);var v0=q(I);e:{t:if(typeof v0=="number"){if(v0!==1&&mr!==v0)break t;var a0=1;break e}var a0=0}q0(I,[0,H,[6,a0]])}break x}q0(I,[0,H,So0])}var K=[0,K[1],K[2],1,t0];continue}}var g0=K[2],i0=K[1],s0=x0(c,i,I),d0=s0[2],w0=d0[2],M0=d0[1],C0=s0[1],D0=M0[2][1],I0=M0[1];x:if(br(D0,Z0))var j0=K;else{var y0=q2(D0,0),Y0=97<=y0?1:0,L=Y0&&(y0<=s2?1:0);L&&q0(I,[0,I0,[10,b,D0]]),I1[3].call(null,D0,g0)&&q0(I,[0,I0,[4,b,D0]]);var N0=K[4],S0=K[3],K0=I1[4].call(null,D0,g0),A0=[0,K[1],K0,S0,N0];let ax=D0;var $0=function(Qx,kx){if(z&&z[1]!==Qx)return q0(I,[0,kx,[9,b,z,ax]])};if(typeof w0=="number"){if(z)switch(z[1]){case 0:q0(I,[0,C0,[3,b,D0]]);var j0=A0;break x;case 1:q0(I,[0,C0,[11,b,D0]]);var j0=A0;break x;case 4:q0(I,[0,C0,[2,b,D0]]);var j0=A0;break x}var j0=[0,[0,i0[1],i0[2],i0[3],i0[4],[0,[0,C0,[0,M0]],i0[5]]],K0,S0,N0]}else switch(w0[0]){case 0:q0(I,[0,w0[1],[9,b,z,D0]]);var j0=A0;break;case 1:var ex=w0[1],xx=w0[2];$0(0,ex);var j0=[0,[0,[0,[0,C0,[0,M0,[0,ex,xx]]],i0[1]],i0[2],i0[3],i0[4],i0[5]],K0,S0,N0];break;case 2:var tx=w0[1],z0=w0[2];$0(1,tx);var j0=[0,[0,i0[1],[0,[0,C0,[0,M0,[0,tx,z0]]],i0[2]],i0[3],i0[4],i0[5]],K0,S0,N0];break;case 3:var px=w0[1],sx=w0[2];$0(2,px);var j0=[0,[0,i0[1],i0[2],[0,[0,C0,[0,M0,[0,px,sx]]],i0[3]],i0[4],i0[5]],K0,S0,N0];break;default:var Q=w0[1],b0=w0[2];$0(4,Q);var j0=[0,[0,i0[1],i0[2],i0[3],[0,[0,C0,[0,M0,[0,Q,b0]]],i0[4]],i0[5]],K0,S0,N0]}}var U=q(I);x:{r:if(typeof U=="number"){var h0=U-2|0;if(ce>>0){if(Te>>0)break r}else{if(h0!==6)break r;Ux(I,18),J(I,8)}break x}J(I,9)}var K=j0}var _0=K[3],m0=K[4],T0=ix(K[1][5]),X=ix(K[1][4]),Gx=ix(K[1][3]),Px=ix(K[1][2]),G0=ix(K[1][1]),Kr=Mx(m0,u0(I));J(I,1);var S=q(I);x:{r:if(typeof S=="number"){if(S!==1&&mr!==S)break r;var G=L0(I);break x}var G=N1(I)?ao(I):0}var rx=O2([0,B],[0,G],Kr,O);if(z){switch(z[1]){case 0:var yx=[0,[0,G0,1,_0,rx]];break;case 1:var yx=[1,[0,Px,1,_0,rx]];break;case 2:var yx=v(I,b,1,_0,Gx,T0,rx);break;case 3:var yx=[3,[0,T0,_0,rx]];break;default:var yx=[4,[0,X,1,_0,rx]]}var Ex=yx}else{var nx=aa(G0),p0=aa(Px),Fx=aa(X),Sx=aa(Gx),bx=aa(T0),B0=function(ax){return[2,[0,Ao0,0,_0,rx]]};x:{if(nx===0&&p0===0&&Fx===0){if(Sx===0&&bx===0){var Wx=B0(O);break x}var Wx=v(I,b,0,_0,Gx,T0,rx);break x}if(p0===0&&Fx===0&&Sx===0&&bx<=nx){b1(function(Qx){return q0(I,[0,Qx[1],[3,b,Qx[2][1][2][1]]])},T0);var Wx=[0,[0,G0,0,_0,rx]];break x}if(nx===0){if(Fx===0&&Sx===0&&bx<=p0){b1(function(Qx){return q0(I,[0,Qx[1],[11,b,Qx[2][1][2][1]]])},T0);var Wx=[1,[0,Px,0,_0,rx]];break x}if(p0===0&&Sx===0&&bx<=Fx){b1(function(Qx){return q0(I,[0,Qx[1],[11,b,Qx[2][1][2][1]]])},T0);var Wx=[4,[0,X,0,_0,rx]];break x}}q0(I,[0,N,[5,b]]);var Wx=B0(O)}var Ex=Wx}return Ex},l);return[0,T,j,Z([0,h],0,O)]}]}function ol(x){return[0,da(x)]}function vh(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=fx(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var c=e[5],v=e[4],a=e[3],l=e[2],m=fx(x,l),h=e[1];if(m===0)return a===r?e:[1,h,x,r,v,c];if(0<=m){var T=vh(x,r,c);return c===T?e:lU(v,l,a,T)}var b=vh(x,r,v);return v===b?e:lU(b,l,a,c)}function $b0(x,r){if(typeof x=="number"){var e=x;if(57<=e)switch(e){case 57:if(typeof r=="number"&&r===57)return 0;break;case 58:if(typeof r=="number"&&r===58)return 0;break;case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&y2===r)return 0;break;case 101:if(typeof r=="number"&&fe===r)return 0;break;case 102:if(typeof r=="number"&&g1===r)return 0;break;case 103:if(typeof r=="number"&&sn===r)return 0;break;case 104:if(typeof r=="number"&&Be===r)return 0;break;case 105:if(typeof r=="number"&&ui===r)return 0;break;case 106:if(typeof r=="number"&&Je===r)return 0;break;case 107:if(typeof r=="number"&&K2===r)return 0;break;case 108:if(typeof r=="number"&&sv===r)return 0;break;case 109:if(typeof r=="number"&&st===r)return 0;break;case 110:if(typeof r=="number"&&z1===r)return 0;break;case 111:if(typeof r=="number"&&ce===r)return 0;break;default:if(typeof r=="number"&&ea<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;default:if(typeof r=="number"&&r===56)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[1],u=x[1];return p(d(hr[43],0),u,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var i=r[1],c=x[1];return p(d(hr[42],0),c,i)}break;case 2:if(typeof r!="number"&&r[0]===2){var v=r[2],a=r[1],l=x[2],m=x[1],h=p(d(hr[41],0),m,a);return h===0?p(d(hr[40],0),l,v):h}break;case 3:if(typeof r!="number"&&r[0]===3){var T=r[2],b=r[1],N=x[2],j=x[1],I=p(d(hr[39],0),j,b);return I===0?p(d(hr[38],0),N,T):I}break;case 4:if(typeof r!="number"&&r[0]===4){var F=r[2],M=r[1],z=x[2],B=x[1],K=p(d(hr[37],0),B,M);return K===0?p(d(hr[36],0),z,F):K}break;case 5:if(typeof r!="number"&&r[0]===5){var n0=r[1],$=x[1];return p(d(hr[35],0),$,n0)}break;case 6:if(typeof r!="number"&&r[0]===6){var H=r[1],t0=x[1];return p(d(hr[34],0),t0,H)}break;case 7:if(typeof r!="number"&&r[0]===7){var c0=r[2],r0=x[2],v0=r[1],a0=x[1],g0=p(d(hr[33],0),a0,v0);if(g0!==0)return g0;if(!r0)return c0?-1:0;var i0=r0[1];if(!c0)return 1;var s0=c0[1];return p(d(hr[32],0),i0,s0)}break;case 8:if(typeof r!="number"&&r[0]===8){var d0=r[1],w0=x[1];return p(d(hr[31],0),w0,d0)}break;case 9:if(typeof r!="number"&&r[0]===9){var M0=r[2],C0=x[2],D0=r[3],I0=r[1],j0=x[3],y0=x[1],Y0=p(d(hr[30],0),y0,I0);if(Y0!==0)return Y0;if(C0)var L=C0[1],N0=M0?p(hr[29],L,M0[1]):1;else var N0=M0?-1:0;return N0===0?p(d(hr[28],0),j0,D0):N0}break;case 10:if(typeof r!="number"&&r[0]===10){var S0=r[2],K0=r[1],A0=x[2],$0=x[1],ex=p(d(hr[27],0),$0,K0);return ex===0?p(d(hr[26],0),A0,S0):ex}break;case 11:if(typeof r!="number"&&r[0]===11){var xx=r[2],tx=r[1],z0=x[2],px=x[1],sx=p(d(hr[25],0),px,tx);return sx===0?p(d(hr[24],0),z0,xx):sx}break;case 12:if(typeof r!="number"&&r[0]===12){var Q=r[1],b0=x[1];return p(d(hr[23],0),b0,Q)}break;case 13:if(typeof r!="number"&&r[0]===13){var U=r[1],h0=x[1];return p(d(hr[22],0),h0,U)}break;case 14:if(typeof r!="number"&&r[0]===14){var _0=r[1],m0=x[1];return p(d(hr[21],0),m0,_0)}break;case 15:if(typeof r!="number"&&r[0]===15){var T0=r[4],X=r[3],Gx=r[2],Px=r[1],G0=x[4],Kr=x[3],S=x[2],G=x[1],rx=p(d(hr[20],0),G,Px);if(rx!==0)return rx;var yx=p(d(hr[19],0),S,Gx);if(yx!==0)return yx;var Ex=p(d(hr[18],0),Kr,X);return Ex===0?p(d(hr[17],0),G0,T0):Ex}break;case 16:if(typeof r!="number"&&r[0]===16){var nx=r[1],p0=x[1];return p(d(hr[16],0),p0,nx)}break;case 17:if(typeof r!="number"&&r[0]===17){var Fx=r[2],Sx=r[1],bx=x[2],B0=x[1],Wx=p(d(hr[15],0),B0,Sx);return Wx===0?p(d(hr[14],0),bx,Fx):Wx}break;case 18:if(typeof r!="number"&&r[0]===18){var Yx=r[1],ax=x[1];return p(d(hr[13],0),ax,Yx)}break;case 19:if(typeof r!="number"&&r[0]===19){var Qx=r[1],kx=x[1];return p(d(hr[12],0),kx,Qx)}break;case 20:if(typeof r!="number"&&r[0]===20){var tr=r[1],sr=x[1];if(Zl<=sr){if(typeof tr=="number"&&Zl===tr)return 0}else if(typeof tr=="number"&&dR===tr)return 0;var Mr=function(le){return Zl<=le?1:0},a2=Mr(tr);return We(Mr(sr),a2)}break;case 21:if(typeof r!="number"&&r[0]===21){var _2=r[1],i2=x[1];return p(d(hr[11],0),i2,_2)}break;case 22:if(typeof r!="number"&&r[0]===22){var Q2=r[1],jx=x[1];return p(d(hr[10],0),jx,Q2)}break;case 23:if(typeof r!="number"&&r[0]===23){var _=r[2],V=r[1],lx=x[2],U0=x[1],ox=p(d(hr[9],0),U0,V);return ox===0?p(d(hr[8],0),lx,_):ox}break;case 24:if(typeof r!="number"&&r[0]===24){var wx=r[1],Cr=x[1];if(Bl===Cr){if(typeof wx=="number"&&Bl===wx)return 0}else if(s6<=Cr){if(typeof wx=="number"&&s6===wx)return 0}else if(typeof wx=="number"&&XO===wx)return 0;var Hx=function(le){return Bl===le?0:s6<=le?2:1},Zr=Hx(wx);return We(Hx(Cr),Zr)}break;case 25:if(typeof r!="number"&&r[0]===25){var dr=r[1],Or=x[1];return p(d(hr[7],0),Or,dr)}break;case 26:if(typeof r!="number"&&r[0]===26){var x2=r[1],ux=x[1];return p(d(hr[6],0),ux,x2)}break;case 27:if(typeof r!="number"&&r[0]===27){var Lx=r[2],Zx=r[1],qr=x[2],Y2=x[1],H2=p(d(hr[5],0),Y2,Zx);return H2===0?p(d(hr[4],0),qr,Lx):H2}break;case 28:if(typeof r!="number"&&r[0]===28){var Kt=r[2],dt=r[1],Jt=x[2],C1=x[1],q1=p(d(hr[3],0),C1,dt);return q1===0?p(d(hr[2],0),Jt,Kt):q1}break;default:if(typeof r!="number"&&r[0]===29){var b2=r[1],wn=x[1];return p(d(hr[1],0),wn,b2)}}function _n(le){if(typeof le!="number")switch(le[0]){case 0:return 16;case 1:return 17;case 2:return 19;case 3:return 20;case 4:return 21;case 5:return 22;case 6:return 23;case 7:return 24;case 8:return 26;case 9:return 27;case 10:return 28;case 11:return 30;case 12:return 31;case 13:return 33;case 14:return 36;case 15:return 48;case 16:return 50;case 17:return 51;case 18:return 53;case 19:return 61;case 20:return 69;case 21:return 72;case 22:return 81;case 23:return 88;case 24:return sv;case 25:return Wa;case 26:return y6;case 27:return M2;case 28:return jD;default:return QO}var Ze=le;if(57<=Ze)switch(Ze){case 57:return 79;case 58:return 80;case 59:return 82;case 60:return 83;case 61:return 84;case 62:return 85;case 63:return 86;case 64:return 87;case 65:return 89;case 66:return 90;case 67:return 91;case 68:return 92;case 69:return 93;case 70:return 94;case 71:return 95;case 72:return 96;case 73:return 97;case 74:return 98;case 75:return 99;case 76:return y2;case 77:return fe;case 78:return g1;case 79:return sn;case 80:return Be;case 81:return ui;case 82:return Je;case 83:return K2;case 84:return st;case 85:return z1;case 86:return ce;case 87:return ea;case 88:return Te;case 89:return mr;case 90:return tv;case 91:return P3;case 92:return zl;case 93:return vf;case 94:return m6;case 95:return s2;case 96:return rn;case 97:return S3;case 98:return Ba;case 99:return Sk;case 100:return Br;case 101:return Xo;case 102:return d6;case 103:return r6;case 104:return r8;case 105:return _k;case 106:return wR;case 107:return fR;case 108:return OI;case 109:return GF;case 110:return CL;case 111:return SR;default:return $L}switch(Ze){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 18;case 17:return 25;case 18:return 29;case 19:return 32;case 20:return 34;case 21:return 35;case 22:return 37;case 23:return 38;case 24:return 39;case 25:return 40;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 49;case 34:return 52;case 35:return 54;case 36:return 55;case 37:return 56;case 38:return 57;case 39:return 58;case 40:return 59;case 41:return 60;case 42:return 62;case 43:return 63;case 44:return 64;case 45:return 65;case 46:return 66;case 47:return 67;case 48:return 68;case 49:return 70;case 50:return 71;case 51:return 73;case 52:return 74;case 53:return 75;case 54:return 76;case 55:return 77;default:return 78}}var bs=_n(r);return We(_n(x),bs)}var oC=kU([0,function(x,r){var e=r[2],t=x[2],u=wU(x[1],r[1]);return u===0?$b0(t,e):u}]);function c4(x,r,e){var t=e[2][1],u=e[1];return br(t,Z0)?r:I1[3].call(null,t,r)?(q0(x,[0,u,[0,t]]),r):I1[4].call(null,t,r)}function vC(x){return function(r){var e=r[2];switch(e[0]){case 0:return m1(function(t,u){var i=u[0]===0?u[1][2][2]:u[1][2][1];return vC(t)(i)},x,e[1][1]);case 1:return m1(function(t,u){if(u[0]===2)return t;var i=u[1][2][1];return vC(t)(i)},x,e[1][1]);case 2:return[0,e[1][1],x];default:return Tx($l0)}}}var X0=Vq(Hl0,Ql0[1]);function lh(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=V0(e),c=q(e);if(typeof c=="number")switch(c){case 104:var v=u0(e);return E0(e),[0,[0,i,[0,0,Z([0,v],0,O)]]];case 105:var a=u0(e);return E0(e),[0,[0,i,[0,1,Z([0,a],0,O)]]];case 127:if(t){var l=u0(e);return E0(e),[0,[0,i,[0,2,Z([0,l],0,O)]]]}break}else if(c[0]===4){var m=c[3];if(P(m,qa)){if(!P(m,dw)&&u&&th(1,e)){var h=u0(e);return E0(e),[0,[0,i,[0,4,Z([0,h],0,O)]]]}}else if(u&&th(1,e)){var T=u0(e);E0(e);var b=q(e);x:{if(typeof b!="number"&&b[0]===4&&!P(b[3],dw)){var N=V0(e);E0(e);var j=Yr(i,N),I=5;break x}var j=i,I=3}return[0,[0,j,[0,I,Z([0,T],0,O)]]]}}return 0}function DB(x,r,e,t,u){r===1&&Ie(u,76);var i=u0(u);E0(u);var c=L0(u);if(x)var v=Z([0,Mx(x[1],i)],[0,c],O),a=v,l=qx(to0,t),m=-e;else var a=Z([0,i],[0,c],O),l=t,m=e;return[30,[0,m,l,a]]}function FB(x,r,e,t){var u=u0(t);E0(t);var i=L0(t);if(x)var c=Z([0,Mx(x[1],u)],[0,i],O),v=qx(eo0,e),a=c,l=v,m=f5(FN,r);else var a=Z([0,u],[0,i],O),l=e,m=r;return[31,[0,m,l,a]]}var RB=[],LB=[],MB=[],qB=[],UB=[],BB=[],XB=[],YB=[],zB=[],KB=[],JB=[];function Hr(x){var r=V0(x),e=xC(0,x);return GB(e,r,lC(e))}function s4(x){return 1-A2(x)&&Ux(x,g1),x0(0,function(r){return J(r,87),Hr(r)},x)}function GB(x,r,e){var t=q(x);return typeof t=="number"&&t===42?x0([0,r],function(u){J(u,42);var i=lC(xC(1,u));ih(u,86);var c=Hr(u);ih(u,87);var v=Hr(u);return[17,[0,e,i,c,v,Z(0,[0,L0(u)],O)]]},x):e}function lC(x){var r=V0(x);if(q(x)===90){var e=u0(x);E0(x);var t=e}else var t=0;return WB(x,[0,t],r,VB(x))}function WB(x,r,e,t){var u=r?r[1]:0;return q(x)===90?x0([0,e],p(RB[1],u,[0,t,0]),x):t}function VB(x){var r=V0(x);if(q(x)===92){var e=u0(x);E0(x);var t=e}else var t=0;return $B(x,[0,t],r,QB(x))}function $B(x,r,e,t){var u=r?r[1]:0;return q(x)===92?x0([0,e],p(LB[1],u,[0,t,0]),x):t}function QB(x){return HB(x,pC(x))}function HB(x,r){var e=q(x);if(typeof e=="number"&&e===11&&!x[15]){var t=ph(x,r);return mh(1,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}function pC(x){var r=q(x);if(typeof r=="number"&&r===86)return x0(0,function(t){var u=u0(t);J(t,86);var i=Z([0,u],0,O);return[11,[0,pC(t),i]]},x);var e=V0(x);return ZB(0,x,e,Qb0(x))}function kC(x,r,e,t,u){var i=r?r[1]:0;if(N1(e))return u;var c=q(e);if(typeof c=="number"){if(c===6){E0(e);var v=0;return x<50?vl(x+1|0,i,v,e,t,u):J2(vl,[0,i,v,e,t,u])}if(c===10){var a=xr(1,e);if(typeof a=="number"&&a===6){Ux(e,Pa0),J(e,10),J(e,6);var l=0;return x<50?vl(x+1|0,i,l,e,t,u):J2(vl,[0,i,l,e,t,u])}return Ux(e,Ia0),u}if(c===84){E0(e),q(e)!==6&&Ux(e,40),J(e,6);var m=1,h=1;return x<50?vl(x+1|0,h,m,e,t,u):J2(vl,[0,h,m,e,t,u])}}return u}function ZB(x,r,e,t){return n5(kC(0,x,r,e,t))}function vl(x,r,e,t,u,i){var c=x0([0,u],function(a){if(!e&&u2(a,7))return[16,[0,i,Z(0,[0,L0(a)],O)]];var l=Hr(a);J(a,7);var m=[0,i,l,Z(0,[0,L0(a)],O)];return r?[21,[0,m,e]]:[20,m]},t),v=[0,r];return x<50?kC(x+1|0,v,t,u,c):J2(kC,[0,v,t,u,c])}function xX(x){if(V2(x,0),q(x)===4){E0(x);var r=xX(x);J(x,5);var t=r}else if(dn(x))var e=p(X0[13],0,x),t=[0,p(MB[1],x,[0,e[1],[0,e]])];else{Ux(x,45);var t=0}return Z2(x),t}function Qb0(x){var r=V0(x),e=q(x);x:{r:{if(typeof e=="number")switch(e){case 4:var t=V0(x),u=x0(0,xT0,x),i=u[2],c=u[1];return i[0]===0?mh(1,x,t,0,[0,c,i[1]]):i[1];case 6:return x0(0,function(i0){var s0=u0(i0);J(i0,6);var d0=Av(0,i0),w0=p(qB[1],d0,0),M0=w0[2],C0=w0[1];return J(i0,7),[28,[0,C0,M0,Z([0,s0],[0,L0(i0)],O)]]},x);case 47:return x0(0,function(i0){var s0=u0(i0);J(i0,47);var d0=xX(i0);if(!d0)return Na0;var w0=d0[1],M0=N1(i0)?0:yC(i0);return[24,[0,w0,M0,Z([0,s0],0,O)]]},x);case 54:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=iX(i0),w0=d0[2],M0=d0[1];return[15,[0,w0,M0,Z([0,s0],0,O)]]},x);case 99:var v=V0(x),a=Q1(x,Ov(x));return mh(1,x,v,a,kh(x));case 105:return x0(0,Hb0,x);case 107:var l=u0(x);return E0(x),[0,r,[10,Z([0,l],[0,L0(x)],O)]];case 126:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=Hr(i0);return[25,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 127:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=Hr(i0);return[27,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 128:return x0(0,function(i0){var s0=u0(i0);E0(i0);var d0=L0(i0),w0=x0(0,function(M0){var C0=Cv(M0);return[0,C0,fh(M0,[0,V0(M0)],function(D0){if(1-u2(D0,42))throw W0(gs,1);var I0=lC(D0);if(!D0[16]&&q(D0)===86)throw W0(gs,1);return[1,[0,I0[1],I0]]}),1,0,0]},i0);return[18,[0,w0,Z([0,s0],[0,d0],O)]]},x);case 0:case 2:var m=dC(0,1,1,x);return[0,m[1],[14,m[2]]];case 132:case 133:break r;case 42:case 43:break;case 31:case 32:var h=u0(x);return E0(x),[0,r,[32,[0,e===32?1:0,Z([0,h],[0,L0(x)],O)]]];default:break x}else switch(e[0]){case 2:var T=e[1],b=T[3],N=T[2],j=T[1];T[4]&&Ie(x,76);var I=u0(x);return E0(x),[0,j,[29,[0,N,b,Z([0,I],[0,L0(x)],O)]]];case 4:var F=e[3];if(P(F,$s)){if(P(F,Vo)){if(!P(F,_3))break r}else if(x[28][1]){var M=xr(1,x);e:if(typeof M=="number"){if(M!==4&&M!==99)break e;var z=V0(x);E0(x);var B=Q1(x,Ov(x));return mh(0,x,z,B,kh(x))}var K=hh(x);return[0,K[1],[19,K[2]]]}}else if(x[28][1])return x0(0,function(i0){var s0=u0(i0);ys(i0,ja0);var d0=Q1(i0,Ov(i0)),w0=eX(i0);if(iC(i0))var C0=cC(i0,gC(i0)),D0=w0;else var M0=gC(i0),C0=M0,D0=p(F2(i0)[2],w0,function(I0,j0){return p(Bx(I0,420776873,12),I0,j0)});return[13,[0,d0,D0,C0,Z([0,s0],0,O)]]},x);break;case 7:if(P(e[1],Ll))break x;return Ux(x,84),[0,r,Ca0];case 12:var n0=e[3],$=e[2],H=e[1],t0=0;return x0(0,function(i0){return DB(t0,H,$,n0,i0)},x);case 13:var c0=e[3],r0=e[2],v0=0;return x0(0,function(i0){return FB(v0,r0,c0,i0)},x);default:break x}var a0=hh(x);return[0,a0[1],[19,a0[2]]]}return x0(0,function(i0){return[26,rX(i0)]},x)}var g0=Zb0(x);return g0?[0,r,g0[1]]:(p2(Oa0,x),[0,r,Da0])}function Hb0(x){var r=u0(x);E0(x);var e=q(x);if(typeof e!="number")switch(e[0]){case 12:return DB([0,r],e[1],e[2],e[3],x);case 13:return FB([0,r],e[2],e[3],x)}return p2(Fa0,x),Ra0}function mC(x,r){var e=u0(x),t=x0(0,E0,x)[1],u=Z([0,e],[0,L0(x)],O);return[0,[19,[0,[0,mn(0,[0,t,r])],0,u]]]}function Zb0(x){var r=u0(x),e=q(x);if(typeof e=="number")switch(e){case 30:return E0(x),[0,[4,Z([0,r],[0,L0(x)],O)]];case 115:return E0(x),[0,[0,Z([0,r],[0,L0(x)],O)]];case 116:return E0(x),[0,[1,Z([0,r],[0,L0(x)],O)]];case 117:return E0(x),[0,[2,Z([0,r],[0,L0(x)],O)]];case 118:return E0(x),[0,[5,Z([0,r],[0,L0(x)],O)]];case 119:return E0(x),[0,[6,Z([0,r],[0,L0(x)],O)]];case 120:return E0(x),[0,[7,Z([0,r],[0,L0(x)],O)]];case 121:return E0(x),[0,[3,Z([0,r],[0,L0(x)],O)]];case 122:return E0(x),[0,[9,Z([0,r],[0,L0(x)],O)]];case 123:return E0(x),[0,[33,Z([0,r],[0,L0(x)],O)]];case 124:return E0(x),[0,[34,Z([0,r],[0,L0(x)],O)]];case 125:return E0(x),[0,[35,Z([0,r],[0,L0(x)],O)]];case 129:return mC(x,La0);case 130:return mC(x,Ma0);case 131:return mC(x,qa0)}else if(e[0]===11){var t=e[1];E0(x);var u=L0(x),i=t?-883944824:737456202;return[0,[8,i,Z([0,r],[0,u],O)]]}return 0}function rX(x){var r=u0(x),e=q(x);x:{if(typeof e=="number")switch(e){case 132:var t=1;break x;case 133:var t=2;break x}else if(e[0]===4&&!P(e[3],_3)){var t=0;break x}var t=Tx(Ua0)}var u=V0(x);E0(x);var i=L0(x),c=pC(x);return[0,u,c,Z([0,r],[0,i],O),t]}function ph(x,r){return[0,r[1],[0,0,r,0]]}function oo(x){return p(UB[1],x,0)}function kh(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=d(oo(r),0),u=u0(r);J(r,5);var i=O2([0,e],[0,L0(r)],u,O);return[0,t[1],t[2],t[3],i]},x)}function eX(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=p(BB[1],r,0),u=u0(r);J(r,5);var i=O2([0,e],[0,L0(r)],u,O);return[0,t[1],t[2],i]},x)}function xT0(x){var r=u0(x);J(x,4);var e=Av(0,x),t=q(e);x:{r:{e:{if(typeof t!="number"){if(t[0]!==4)break r;var u=t[3];if(P(u,$s)){if(P(u,_3))break e;var i=xr(1,e);t:{if(typeof i=="number"&&1>=i+xa>>>0){var c=[0,d(oo(e),0)];break t}var c=[1,Hr(e)]}var v=c}else{if(!e[28][1])break e;var a=xr(1,e);t:{n:if(typeof a=="number"){if(a!==4&&a!==99)break n;var l=[1,Hr(e)];break t}var l=tX(e)}var v=l}var j=v;break x}switch(t){case 5:var j=Ba0;break x;case 132:var m=xr(1,e);t:{if(typeof m=="number"&&m===87){var h=[0,d(oo(e),0)];break t}var h=[1,Hr(e)]}var j=h;break x;case 43:break;case 12:case 114:var j=[0,d(oo(e),0)];break x;default:break r}}var j=tX(e);break x}r:{e:{if(typeof t=="number")switch(t){case 30:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:break;default:break e}else if(t[0]!==11)break e;var T=1;break r}var T=0}if(T){var b=xr(1,e);r:{if(typeof b=="number"&&1>=b+xa>>>0){var N=[0,d(oo(e),0)];break r}var N=[1,Hr(e)]}var j=N}else var j=[1,Hr(e)]}if(j[0]===0)var I=j;else{var F=j[1];if(x[15])var M=j;else{var z=q(x);x:{if(typeof z=="number"){if(z===5){if(xr(1,x)===11){var B=[0,ph(x,F),0],n0=[0,d(oo(x),B)];break x}var n0=[1,F];break x}if(z===9){J(x,9);var K=[0,ph(x,F),0],n0=[0,d(oo(x),K)];break x}}var n0=j}var M=n0}var I=M}var $=u0(x);J(x,5);var H=L0(x);if(I[0]===0)var t0=I[1],c0=O2([0,r],[0,H],$,O),r0=[0,[0,t0[1],t0[2],t0[3],c0]];else var r0=[1,rT0(I[1],r,H)];return r0}function tX(x){var r=xr(1,x);if(typeof r=="number"&&1>=r+xa>>>0)return[0,d(oo(x),0)];var e=V0(x),t=fX(x,Cv(x)),u=WB(x,0,e,$B(x,0,e,HB(x,ZB(0,x,e,[0,t[1],[19,t[2]]]))));return[1,GB(xC(0,x),e,u)]}function mh(x,r,e,t,u){return x0([0,e],function(i){return J(i,11),[12,[0,t,u,nX(i),0,x]]},r)}function nX(x){return ah(x)?[1,hC(x)]:[0,Hr(x)]}function hC(x){function r(e){var t=u0(e);J(e,Xo);var u=Mx(t,u0(e));return[0,[0,Hr(e)],u]}return x0(0,function(e){var t=u0(e),u=u2(e,d6)?1:u2(e,r6)?2:0;V2(e,0);var i=a1(e);Z2(e);x:if(u===2)var c=r(e),v=c[2],a=c[1];else{var l=q(e);if(typeof l=="number"&&Xo===l){var m=r(e),v=m[2],a=m[1];break x}var v=0,a=0}return[0,u,[0,i,a],O2([0,t],0,v,O)]},x)}function uX(x,r){return x0([0,r],hC,x)}function dC(x,r,e,t){var u=r&&(q(t)===2?1:0),i=r&&1-u;return x0(0,function(c){var v=u0(c),a=u?2:0;J(c,a);var l=Av(0,c),m=P6(XB[1],x,i,e,u,l,Xa0),h=m[3],T=m[2],b=m[1],N=Mx(h,u0(c)),j=u?3:1;return J(c,j),[0,u,T,b,O2([0,v],[0,L0(c)],N,O)]},t)}function iX(x){var r=u2(x,42)?AB(x,p(YB[1],x,0)):0;return[0,r,dC(0,0,0,x)]}function Cv(x){var r=a1(x),e=r[2],t=e[1],u=r[1],i=e[2];return tC(t)&&q0(x,[0,u,96]),[0,u,[0,t,i]]}function Ov(x){if(q(x)!==99)return 0;1-A2(x)&&Ux(x,g1);var r=x0(0,function(t){var u=u0(t);J(t,99);var i=H0(zB[1],t,0,0),c=u0(t);return ih(t,y2),[0,i,O2([0,u],[0,L0(t)],c,O)]},x),e=r[1];return r[2][1]||q0(x,[0,e,51]),[0,r]}function yC(x){return q(x)===99?[0,x0(0,function(r){var e=u0(r);J(r,99);var t=Av(0,r),u=p(KB[1],t,0),i=u0(t);return J(t,y2),[0,u,O2([0,e],[0,L0(t)],i,O)]},x)]:0}function hh(x){return fX(x,Cv(x))}function fX(x,r){return x0([0,r[1]],function(e){var t=p(JB[1],e,[0,r[1],[0,r]])[2],u=q(e)===99?p(F2(e)[2],t,function(i,c){return p(Bx(i,-860373976,65),i,c)}):t;return[0,u,yC(e),0]},x)}function gC(x){var r=q(x);x:{if(typeof r=="number")switch(r){case 87:var e=V0(x);1-A2(x)&&Ux(x,g1),E0(x);var t=x0(0,Hr,x),u=t[2],i=t[1],c=u[2][0]===26?1:0;return q0(x,[0,e,[16,c]]),[1,i,[0,e,u,0,0]];case 132:case 133:break;default:break x}else if(r[0]!==4||P(r[3],_3))break x;1-A2(x)&&Ux(x,g1);var v=x0([0,V0(x)],rX,x);return[1,v[1],v[2]]}return[0,da(x)]}function rT0(x,r,e){var t=x[2];function u(h0){return S1(h0,Z([0,r],[0,e],O))}var i=x[1];switch(t[0]){case 0:var U=[0,u(t[1])];break;case 1:var U=[1,u(t[1])];break;case 2:var U=[2,u(t[1])];break;case 3:var U=[3,u(t[1])];break;case 4:var U=[4,u(t[1])];break;case 5:var U=[5,u(t[1])];break;case 6:var U=[6,u(t[1])];break;case 7:var U=[7,u(t[1])];break;case 8:var c=u(t[2]),U=[8,t[1],c];break;case 9:var U=[9,u(t[1])];break;case 10:var U=[10,u(t[1])];break;case 11:var v=t[1],a=u(v[2]),U=[11,[0,v[1],a]];break;case 12:var l=t[1],m=l[5],h=u(l[4]),U=[12,[0,l[1],l[2],l[3],h,m]];break;case 13:var T=t[1],b=u(T[4]),U=[13,[0,T[1],T[2],T[3],b]];break;case 14:var N=t[1],j=N[4],I=S5(j,Z([0,r],[0,e],O)),U=[14,[0,N[1],N[2],N[3],I]];break;case 15:var F=t[1],M=u(F[3]),U=[15,[0,F[1],F[2],M]];break;case 16:var z=t[1],B=u(z[2]),U=[16,[0,z[1],B]];break;case 17:var K=t[1],n0=u(K[5]),U=[17,[0,K[1],K[2],K[3],K[4],n0]];break;case 18:var $=t[1],H=u($[2]),U=[18,[0,$[1],H]];break;case 19:var t0=t[1],c0=u(t0[3]),U=[19,[0,t0[1],t0[2],c0]];break;case 20:var r0=t[1],v0=u(r0[3]),U=[20,[0,r0[1],r0[2],v0]];break;case 21:var a0=t[1],g0=a0[1],i0=a0[2],s0=u(g0[3]),U=[21,[0,[0,g0[1],g0[2],s0],i0]];break;case 22:var d0=t[1],w0=u(d0[2]),U=[22,[0,d0[1],w0]];break;case 23:var M0=t[1],C0=u(M0[2]),U=[23,[0,M0[1],C0]];break;case 24:var D0=t[1],I0=u(D0[3]),U=[24,[0,D0[1],D0[2],I0]];break;case 25:var j0=t[1],y0=u(j0[2]),U=[25,[0,j0[1],y0]];break;case 26:var Y0=t[1],L=Y0[4],N0=u(Y0[3]),U=[26,[0,Y0[1],Y0[2],N0,L]];break;case 27:var S0=t[1],K0=u(S0[2]),U=[27,[0,S0[1],K0]];break;case 28:var A0=t[1],$0=u(A0[3]),U=[28,[0,A0[1],A0[2],$0]];break;case 29:var ex=t[1],xx=u(ex[3]),U=[29,[0,ex[1],ex[2],xx]];break;case 30:var tx=t[1],z0=u(tx[3]),U=[30,[0,tx[1],tx[2],z0]];break;case 31:var px=t[1],sx=u(px[3]),U=[31,[0,px[1],px[2],sx]];break;case 32:var Q=t[1],b0=u(Q[2]),U=[32,[0,Q[1],b0]];break;case 33:var U=[33,u(t[1])];break;case 34:var U=[34,u(t[1])];break;default:var U=[35,u(t[1])]}return[0,i,U]}Fr(RB,[0,function(x,r,e){for(var t=r;;){if(!u2(e,90)){var u=ix(t);if(u){var i=u[2];if(i){var c=i[2],v=i[1],a=u[1];return[22,[0,[0,a,v,c],Z([0,x],0,O)]]}}throw W0([0,Nr,ro0],1)}var t=[0,VB(e),t]}}]),Fr(LB,[0,function(x,r,e){for(var t=r;;){if(!u2(e,92)){var u=ix(t);if(u){var i=u[2];if(i){var c=i[2],v=i[1],a=u[1];return[23,[0,[0,a,v,c],Z([0,x],0,O)]]}}throw W0([0,Nr,xo0],1)}var t=[0,QB(e),t]}}]),Fr(MB,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1];if(q(x)===10&&gB(1,x)){let v=t;var i=x0([0,u],function(l){return J(l,10),[0,v,a1(l)]},x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return t}}]),Fr(qB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(t!==7&&mr!==t)break x;return[0,ix(e),0]}var u=x0(0,function(l){if(!u2(l,12)){var m=q(l);x:{if(typeof m=="number"&&(Be===m||ui===m&&ya(1,l))){var h=lh(0,0,l);break x}var h=0}var T=dn(l),b=xr(1,l);if(T&&typeof b=="number"&&1>=b+xa>>>0){var N=a1(l),j=u2(l,86);return J(l,87),[0,[1,[0,N,Hr(l),h,j]]]}var I=h?1:0;return I&&Ux(l,44),[0,[0,Hr(l)]]}var F=q(l);x:if(typeof F=="number"){if(10<=F){if(mr!==F)break x}else{if(7>F)break x;switch(F-7|0){case 0:break;case 1:break x;default:return p2(Za0,l),E0(l),0}}return 0}var M=dn(l),z=xr(1,l);x:{if(M&&typeof z=="number"&&1>=z+xa>>>0){var B=a1(l);q(l)===86&&(Ux(l,43),E0(l)),J(l,87);var K=[0,B];break x}var K=0}return[0,[2,[0,K,Hr(l)]]]},x),i=u[2],c=u[1];if(!i)return[0,ix(e),1];var v=[0,[0,c,i[1]],e];q(x)!==7&&J(x,9);var e=v}}]);function cX(x){var r=xr(1,x);return typeof r=="number"&&1>=r+xa>>>0?x0(0,function(e){V2(e,0);var t=p(X0[13],0,e);Z2(e),1-A2(e)&&Ux(e,g1);var u=u2(e,86);return J(e,87),[0,[0,t],Hr(e),u]},x):ph(x,Hr(x))}Fr(UB,[0,function(x,r,e){for(var t=r,u=e;;){var i=q(x);x:if(typeof i=="number")switch(i){case 5:case 12:case 114:var c=i===12?[0,x0(0,function(T){var b=u0(T);J(T,12);var N=Z([0,b],0,O);return[0,cX(T),N]},x)]:0;return[0,t,ix(u),c,0]}else if(i[0]===4&&!P(i[3],Qo)){if(xr(1,x)!==87&&xr(1,x)!==86)break x;var v=t!==0?1:0,a=v||(u!==0?1:0);a&&Ux(x,89);var l=x0(0,function(b){var N=u0(b);E0(b),q(b)===86&&Ux(b,88);var j=Z([0,N],0,O);return[0,s4(b),j]},x);q(x)!==5&&J(x,9);var t=[0,l];continue}var m=[0,cX(x),u];q(x)!==5&&J(x,9);var u=m}}]),Fr(BB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){var u=t-5|0;if(7>>0){if(st!==u)break x}else if(5>=u-1>>>0)break x;var i=t===12?[0,x0(0,function(a){var l=u0(a);J(a,12);var m=xr(1,a);r:{if(typeof m=="number"){if(m===86){V2(a,0);var h=p(X0[13],0,a);Z2(a),J(a,86),J(a,87);var b=1,N=[0,h];break r}if(m===87){V2(a,0);var T=p(X0[13],0,a);Z2(a),J(a,87);var b=0,N=[0,T];break r}}var b=0,N=0}var j=Hr(a);return q(a)===9&&E0(a),[0,N,j,b,Z([0,l],0,O)]},x)]:0;return[0,ix(e),i,0]}var c=[0,x0(0,function(a){var l=q(a);x:{if(typeof l!="number"&&l[0]===2){var m=l[1],h=m[4],T=m[3],b=m[2],N=m[1];h&&Ie(a,76),J(a,[2,[0,N,b,T,h]]);var I=[1,[0,N,[0,b,T,Z(0,[0,L0(a)],O)]]];break x}V2(a,0);var j=p(X0[13],0,a);Z2(a);var I=[0,j]}var F=u2(a,86);return[0,I,s4(a),F]},x),e];q(x)!==5&&J(x,9);var e=c}}]);function dh(x,r,e){return x0([0,r],function(t){var u=kh(t);return J(t,87),[0,e,u,nX(t),0,1]},x)}function sX(x,r,e,t,u){var i=gn(x,t),c=dh(x,r,Q1(x,Ov(x))),v=[0,c[1],[12,c[2]]],a=[0,i,[0,v],0,e!==0?1:0,0,1,0,Z([0,u],0,O)];return[0,[0,v[1],a]]}function yh(x,r,e,t,u,i,c){var v=c[2],a=c[1];return 1-A2(x)&&Ux(x,g1),[0,x0([0,r],function(l){var m=u2(l,86),h=bB(l,87)?Hr(l):[0,a,Ha0];return[0,v,[0,h],m,t!==0?1:0,u!==0?1:0,0,e,Z([0,i],0,O)]},x)]}function a4(x,r){var e=q(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return;break;case 3:if(x)return;break;case 8:case 9:return E0(r)}return yn(r,9)}function o4(x,r){if(r)return q0(x,[0,r[1][1],K2])}function v4(x,r){if(r)return q0(x,[0,r[1],94])}function eT0(x,r,e,t,u,i,c,v,a){for(var l=e,m=t,h=u,T=i,b=c,N=v;;){var j=q(x);if(typeof j=="number")switch(j){case 6:v4(x,b);var I=xr(1,x);if(typeof I=="number"&&I===6)return o4(x,h),[4,x0([0,a],function(L){var N0=Mx(N,u0(L));J(L,6),J(L,6);var S0=a1(L);J(L,7),J(L,7);var K0=q(L);x:{r:if(typeof K0=="number"){if(K0!==4&&K0!==99)break r;var A0=dh(L,a,Q1(L,Ov(L))),xx=0,tx=[0,A0[1],[12,A0[2]]],z0=1,px=0;break x}var $0=u2(L,86),ex=L0(L);J(L,87);var xx=ex,tx=Hr(L),z0=0,px=$0}return[0,S0,tx,px,T!==0?1:0,z0,Z([0,N0],[0,xx],O)]},x)];var F=Mx(N,u0(x));J(x,6);var M=xr(1,x);return typeof M!="number"&&M[0]===4&&!P(M[3],qa)&&T===0?[5,x0([0,a],function(L){var N0=Cv(L),S0=N0[1];E0(L);var K0=Hr(L);J(L,7);var A0=q(L);x:{r:{var $0=[0,N0,[0,S0],0,0,0];if(typeof A0=="number"){var ex=A0+F9|0;if(1>>0){if(ex!==-18)break r;E0(L);var xx=2}else var xx=ex?(E0(L),J(L,86),1):(E0(L),J(L,86),0);var tx=xx;break x}}var tx=3}J(L,87);var z0=Hr(L);return[0,[0,S0,$0],z0,K0,h,tx,Z([0,F],[0,L0(L)],O)]},x)]:[2,x0([0,a],function(L){if(xr(1,L)===87){var N0=a1(L);J(L,87);var S0=[0,N0]}else var S0=0;var K0=Hr(L);J(L,7);var A0=L0(L);J(L,87);var $0=Hr(L);return[0,S0,K0,$0,T!==0?1:0,h,Z([0,F],[0,A0],O)]},x)];case 43:if(l){if(h!==0)throw W0([0,Nr,Ja0],1);var z=[0,V0(x)],B=Mx(N,u0(x));E0(x);var l=0,m=0,T=z,N=B;continue}break;case 127:if(h===0){if(!ya(1,x)&&xr(1,x)!==6)break;var l=0,m=0,h=lh(Ga0,0,x);continue}break;case 104:case 105:if(h===0){var l=0,m=0,h=lh(0,0,x);continue}break;case 4:case 99:return v4(x,b),o4(x,h),[3,x0([0,a],function(L){var N0=V0(L),S0=dh(L,N0,Q1(L,Ov(L)));return[0,S0,T!==0?1:0,Z([0,N],0,O)]},x)]}else if(j[0]===4&&!P(j[3],pg)&&m){if(h!==0)throw W0([0,Nr,Wa0],1);var K=[0,V0(x)],n0=Mx(N,u0(x));E0(x);var l=0,m=0,b=K,N=n0;continue}if(T){var $=T[1];if(b)return Tx(Va0);if(typeof j=="number"&&1>=j+xa>>>0)return yh(x,a,h,0,b,0,[0,$,[3,mn(Z([0,N],0,O),[0,$,$a0])]])}else if(b){var H=b[1];if(typeof j=="number"&&1>=j+xa>>>0)return yh(x,a,h,T,0,0,[0,H,[3,mn(Z([0,N],0,O),[0,H,Qa0])]])}var t0=function(L){V2(L,0);var N0=p(X0[20],0,L);return Z2(L),N0},c0=u0(x),r0=t0(x),v0=r0[1],a0=r0[2];x:if(a0[0]===3){var g0=a0[1][2][1];if(P(g0,Bo)&&P(g0,T3))break x;var i0=q(x);if(typeof i0=="number"){var s0=i0-5|0;if(93>>0){if(95>=s0+1>>>0)return v4(x,b),o4(x,h),sX(x,a,T,a0,N)}else if(1>=s0-81>>>0)return yh(x,a,h,T,b,N,[0,v0,a0])}gn(x,a0);var d0=t0(x),w0=br(g0,Bo),M0=Mx(N,c0);return v4(x,b),o4(x,h),[0,x0([0,a],function(L){var N0=d0[1],S0=gn(L,d0[2]),K0=dh(L,a,0),A0=K0[2][2];r:if(w0){var $0=A0[2];e:{if(!$0[1]){if(!$0[2]&&!$0[3])break e;q0(L,[0,N0,23]);break r}q0(L,[0,N0,24])}}else{var ex=A0[2];if(ex[1])q0(L,[0,N0,66]);else{var xx=ex[2];e:{if(!ex[3]){if(xx&&!xx[2])break e;q0(L,[0,N0,65]);break r}q0(L,[0,N0,65])}}}var tx=Z([0,M0],0,O),z0=0,px=0,sx=0,Q=T!==0?1:0,b0=0,U=w0?[1,K0]:[2,K0];return[0,S0,U,b0,Q,sx,px,z0,tx]},x)]}var C0=r0[2],D0=q(x);x:if(typeof D0=="number"){if(D0!==4&&D0!==99)break x;return v4(x,b),o4(x,h),sX(x,a,T,C0,N)}var I0=T!==0?1:0;x:if(C0[0]===3){var j0=C0[1],y0=j0[2][1];r:{var Y0=j0[1];if(r){if(!br(Ro,y0)&&(!I0||!br(za,y0)))break r;q0(x,[0,Y0,[15,y0,I0,0,0]]);break x}}}return yh(x,a,h,T,b,N,[0,v0,C0])}}Fr(XB,[0,function(x,r,e,t,u,i){for(var c=i;;){var v=c[3],a=c[2],l=c[1];if(x&&e)throw W0([0,Nr,za0],1);if(r&&!e)throw W0([0,Nr,Ka0],1);var m=V0(u),h=q(u);if(typeof h=="number"){if(13<=h){if(mr===h)return[0,ix(l),a,v]}else if(h)switch(h-1|0){case 0:if(!t)return[0,ix(l),a,v];break;case 2:if(t)return[0,ix(l),a,v];break;case 11:if(!e){E0(u);var T=q(u);if(typeof T=="number"&&10>T)switch(T){case 1:case 3:case 8:case 9:q0(u,[0,m,32]),a4(t,u);continue}var b=nC(u);eC(u)(b),q0(u,[0,m,97]),E0(u),a4(t,u);continue}var N=u0(u);E0(u);var j=q(u);if(typeof j=="number"&&10>j)switch(j){case 1:case 3:case 8:case 9:a4(t,u);var I=q(u);if(typeof I=="number"){var F=I-1|0;if(2>=F>>>0)switch(F){case 0:if(r)return[0,ix(l),1,N];break;case 1:break;default:return q0(u,[0,m,31]),[0,ix(l),a,v]}}q0(u,[0,m,92]);continue}let K=N;var M=[1,x0([0,m],function($){var H=Z([0,K],0,O);return[0,Hr($),H]},u)];a4(t,u);var c=[0,[0,M,l],a,v];continue}}var z=eT0(u,x,x,x,0,0,0,0,m);a4(t,u);var c=[0,[0,z,l],a,v]}}]),Fr(YB,[0,function(x,r){for(var e=r;;){var t=[0,hh(x),e],u=q(x);if(typeof u=="number"&&u===9){J(x,9);var e=t;continue}return ix(t)}}]);function aX(x,r){var e=hB(x,r);if(e)var t=e;else{x:{if(typeof r=="number"&&1>=r+F9>>>0){var u=1;break x}var u=0}if(!u){x:{if(typeof r=="number")switch(r){case 15:case 30:case 31:case 32:case 42:case 43:case 47:case 54:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:break;default:break x}else switch(r[0]){case 4:if(tC(r[3]))return 1;break x;case 11:break;default:break x}return 1}return 0}var t=u}return t}Fr(zB,[0,function(x,r,e){for(var t=r,u=e;;){if(aX(x,q(x))){let b=t;var i=sC(0,function(I){var F=lh(0,Ya0,I),M=x0(0,function(r0){var v0=Cv(r0),a0=q(r0);x:{if(typeof a0=="number"){if(a0===42){var g0=1,i0=[1,x0(0,function(w0){return E0(w0),Hr(w0)},r0)];break x}if(a0===87){var g0=0,i0=[1,s4(r0)];break x}}var g0=0,i0=[0,da(r0)]}return[0,v0,i0,g0]},I),z=M[2],B=z[3],K=z[2],n0=z[1],$=M[1],H=q(I);x:{if(typeof H=="number"&&H===83){E0(I);var t0=1,c0=[0,Hr(I)];break x}b&&q0(I,[0,$,52]);var t0=b,c0=0}return[0,[0,n0,K,B,F,c0],t0]},x),c=i[2],v=[0,i[1],u]}else var c=t,v=u;var a=q(x);if(typeof a=="number"){var l=a+D9|0;if(14>>0){if(l===-91){E0(x);var t=c,u=v;continue}}else if(12>>0)return ix(v)}x:{r:{e:{if(typeof a!="number"){if(a[0]!==4)break r;var m=a[3];if(!eh(m)){t:{if(P(m,nv)&&P(m,B1)){var h=0;break t}var h=1}if(!h){if(P(m,Ql)){if(!P(m,cv))break e;if(P(m,qf))break r;break e}if(!x[28][2])break r;var T=1;break x}}var T=1;break x}switch(a){case 4:case 83:break;default:break r}}var T=1;break x}var T=0}if(T)return yn(x,y2),ix(v);if(aX(x,a)){yn(x,9);var t=c,u=v}else{J(x,9);var t=c,u=v}}}]),Fr(KB,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(y2!==t&&mr!==t)break x;return ix(e)}var u=[0,Hr(x),e];y2!==q(x)&&J(x,9);var e=u}}]),Fr(JB,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1];if(q(x)===10&&th(1,x)){let v=t;var i=x0([0,u],function(l){return J(l,10),[0,v,Cv(l)]},x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return[0,u,t]}}]);function oX(x,r){if(q(x)!==4)return[0,0,Z([0,r],[0,L0(x)],O)];var e=Mx(r,u0(x));J(x,4),V2(x,0);var t=d(X0[9],x);return Z2(x),J(x,5),[0,[0,t],Z([0,e],[0,L0(x)],O)]}function tT0(x){var r=q(x);if(typeof r=="number"&&r===87){1-A2(x)&&Ux(x,g1);var e=V0(x);return J(x,87),ah(x)?[2,uX(x,e)]:[1,x0([0,e],Hr,x)]}return[0,da(x)]}function nT0(x){var r=q(x);return typeof r=="number"&&r===87?[1,s4(x)]:[0,da(x)]}function uT0(x){var r=u0(x);return J(x,67),oX(x,r)}var iT0=0;function vX(x){var r=Av(0,x),e=q(r);return typeof e=="number"&&e===67?[0,x0(iT0,uT0,r)]:0}function fT0(x){var r=q(x);if(typeof r=="number"&&r===87){1-A2(x)&&Ux(x,g1);var e=da(x),t=V0(x);J(x,87);var u=q(x);if(typeof u=="number"&&u===67)return[0,[0,e],[0,x0([0,t],function(v){var a=u0(v);return J(v,67),oX(v,a)},Av(0,x))]];if(ah(x))return[0,[2,uX(x,t)],0];var i=[1,x0([0,t],Hr,x)],c=q(x)===67?al(x,i):i;return[0,c,vX(x)]}return[0,[0,da(x)],0]}function Ne(x,r){var e=ha(1,r);V2(e,1);var t=x(e);return Z2(e),t}function ga(x){return Ne(Hr,x)}function ws(x){return Ne(Cv,x)}function He(x){return Ne(Ov,x)}function lX(x){return Ne(yC,x)}function Dv(x){return Ne(s4,x)}function wC(x){return Ne(nT0,x)}function _C(x){return Ne(tT0,x)}function bC(x){return Ne(fT0,x)}function pX(x){return Ne(hh,x)}function TC(x){return Ne(gC,x)}function vo(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return m1(cT0,x,e[1][1]);case 1:return m1(sT0,x,e[1][1]);case 2:var i=e[1][1],c=i[2][1],v=x[2],a=x[1],l=i[1];I1[3].call(null,c,v)&&q0(a,[0,l,77]);var m=i[2][1],h=i[1];return Pv(m)&&ht(a,[0,h,78]),fl(m)&&ht(a,[0,h,80]),[0,a,I1[4].call(null,c,v)];default:return q0(u,[0,t,20]),x}}function cT0(x){return function(r){return r[0]===0?vo(x,r[1][2][2]):vo(x,r[1][2][1])}}function sT0(x){return function(r){switch(r[0]){case 0:return vo(x,r[1][2][1]);case 1:return vo(x,r[1][2][1]);default:return x}}}function kX(x,r){var e=r[2],t=e[3],u=m1(function(i,c){return vo(i,c[2][1])},[0,x,I1[1]],e[2]);t&&vo(u,t[1][2][1])}function mX(x,r,e,t){var u=x[5],i=t[0]===0?jv(t[1]):0,c=ha(u?0:r,x),v=r||u||1-i;if(!v)return v;if(e){var a=e[1],l=a[2][1],m=a[1];Pv(l)&&ht(c,[0,m,70]),fl(l)&&ht(c,[0,m,80])}if(t[0]===0)return kX(c,t[1]);var h=t[1][2],T=h[2],b=[0,Y3,[0,[0,vs(function(j){var I=j[2],F=I[1],M=I[4],z=I[3],B=I[2],K=F[0]===0?[3,F[1]]:[0,[0,Y3,F[1][2]]];return[0,[0,Y3,[0,K,B,z,M]]]},h[1]),[0,Y3],0]]],N=vo([0,c,I1[1]],b);T&&vo(N,T[1][2][1])}function ll(x,r,e,t){return mX(x,r,e,[0,t])}function hX(x,r){if(r!==12)return 0;var e=u0(x),t=x0(0,function(c){return J(c,12),p(X0[18],c,78)},x),u=t[2],i=t[1];return[0,[0,i,u,Z([0,e],0,O)]]}function aT0(x){q(x)===22&&Ux(x,89);var r=p(X0[18],x,78),e=q(x)===83?(J(x,83),[0,d(X0[10],x)]):0;return[0,r,e]}var oT0=0;function pl(x,r){function e(u){var i=aB(1,Qj(r,Hj(x,u))),c=u0(i);J(i,4);x:{if(A2(i)&&q(i)===22){var v=u0(i),a=x0(0,function(K){return J(K,22),q(K)===87?[0,Dv(K)]:(Ux(K,85),0)},i),l=a[2],m=a[1];if(!l){var T=0;break x}var h=l[1];q(i)===9&&E0(i);var T=[0,[0,m,[0,h,Z([0,v],0,O)]]];break x}var T=0}x:r:{for(var b=0;;){var N=q(i);if(typeof N=="number"){var j=N-5|0;if(7>>0){if(st===j)break}else if(5>>0)break r}var I=x0(oT0,aT0,i);q(i)!==5&&J(i,9);var b=[0,I,b]}break x}var F=f5(function(B){return[0,B[1],[0,B[2],B[3]]]},hX(i,N));q(i)!==5&&Ux(i,61);var M=ix(b),z=u0(i);return J(i,5),[0,T,M,F,O2([0,c],[0,L0(i)],z,O)]}var t=0;return function(u){return x0(t,e,u)}}function dX(x,r,e,t,u){var i=mB(x,r,e,u);return p(X0[16],t,i)}function l4(x,r,e,t,u){var i=dX(x,r,e,t,u);return[0,[0,i[1]],i[2]]}function Fv(x){if(K2!==q(x))return Dv0;var r=u0(x);return E0(x),[0,1,r]}function gh(x){if(q(x)===65&&!Iv(1,x)){var r=u0(x);return E0(x),[0,1,r]}return Ov0}function vT0(x){var r=gh(x),e=r[1],t=r[2],u=x0(0,function(F){var M=u0(F),z=q(F);x:{if(typeof z=="number"){if(z===15){E0(F);var B=Fv(F),n0=B[2],$=B[1],H=1;break x}}else if(z[0]===4&&!P(z[3],Vo)&&!e){E0(F);var n0=0,$=0,H=0;break x}yn(F,z);var K=Fv(F),n0=K[2],$=K[1],H=1}var t0=O6([0,t,[0,M,[0,n0,0]]]),c0=F[7],r0=q(F);x:{if(c0&&typeof r0=="number"){if(r0===4){var i0=0,s0=0;break x}if(r0===99){var v0=Q1(F,He(F)),a0=q(F)===4?0:[0,Xt(F,p(X0[13],Iv0,F))],i0=a0,s0=v0;break x}}var g0=dn(F)?Xt(F,p(X0[13],Nv0,F)):(_B(F,jv0),[0,V0(F),Cv0]),i0=[0,g0],s0=Q1(F,He(F))}var d0=pl(e,$)(F),w0=q(F)===87?d0:i4(F,d0),M0=bC(F),C0=M0[2],D0=M0[1];if(C0)var I0=SB(F,C0),j0=D0;else var I0=C0,j0=al(F,D0);return[0,$,H,s0,i0,w0,j0,I0,t0]},x),i=u[2],c=i[5],v=i[4],a=i[1],l=i[8],m=i[7],h=i[6],T=i[3],b=i[2],N=u[1],j=l4(x,e,a,0,jv(c)),I=j[1];return ll(x,j[2],v,c),[27,[0,v,c,I,e,a,b,m,h,T,Z([0,l],0,O),N]]}var lT0=0;function p4(x){return x0(lT0,vT0,x)}function EC(x,r){var e=u0(r);J(r,x);var t=r[28][2];if(t)var u=x===28?1:0,i=u&&(q(r)===49?1:0);else var i=t;i&&Ux(r,19);for(var c=0,v=0;;){var a=x0(0,function(I){var F=p(X0[18],I,81);if(u2(I,83))var M=0,z=[0,d(X0[10],I)];else{var B=F[1];if(F[2][0]===2)var M=0,z=0;else var M=[0,[0,B,58]],z=0}return[0,[0,F,z],M]},r),l=a[2],m=l[2],h=[0,[0,a[1],l[1]],c],T=m?[0,m[1],v]:v;if(!u2(r,9)){var b=ix(T);return[0,ix(h),e,b]}var c=h,v=T}}var pT0=OB(X0),kT0=25;function yX(x){return EC(kT0,x)}function gX(x){var r=EC(28,Zj(1,x)),e=r[1],t=r[2];return[0,e,t,ix(m1(function(u,i){return i[2][2]?u:[0,[0,i[1],57],u]},r[3],e))]}function wX(x){return EC(29,Zj(1,x))}function _X(x){function r(t){return[20,pT0[1].call(null,x,t)]}var e=0;return function(t){return x0(e,r,t)}}function mT0(x){var r=u0(x),e=q(x),t=xr(1,x);x:{r:if(typeof e!="number"&&e[0]===2){var u=e[1],i=u[4],c=u[3],v=u[2],a=u[1];e:{if(typeof t=="number")switch(t){case 86:case 87:break;default:break e}else{if(t[0]!==4)break e;if(P(t[3],Nt))break r}i&&Ie(x,76),J(x,[2,[0,a,v,c,i]]);var l=[1,[0,a,[0,v,c,Z([0,r],[0,L0(x)],O)]]];if(typeof t=="number"&&1>=t+xa>>>0){var m=t===86?1:0;Ux(x,[17,m,v]),m&&E0(x);var h=V0(x),I=0,F=[0,h,[2,[0,[0,h,Sv0],wC(x),m]]],M=l;break x}E0(x);var I=0,F=p(X0[18],x,78),M=l;break x}}if(typeof t!="number"&&t[0]===4&&!P(t[3],Nt)){var T=[0,a1(x)];ys(x,Av0);var I=0,F=p(X0[18],x,78),M=T;break x}if(typeof e=="number"&&!e){Ux(x,33);var b=[0,[0,V0(x),Pv0]],I=0,F=p(X0[18],x,78),M=b;break x}var N=H0(X0[14],x,0,78),j=N[2],I=1,F=[0,N[1],[2,j]],M=[0,j[1]]}var z=q(x)===83?(J(x,83),[0,d(X0[10],x)]):0;return[0,M,F,z,I]}var hT0=0;function dT0(x){var r=aB(1,x),e=u0(r);J(r,4);x:r:{for(var t=0;;){var u=q(r);if(typeof u=="number"){var i=u-5|0;if(7>>0){if(st===i)break}else if(5>>0)break r}var c=x0(hT0,mT0,r);q(r)!==5&&J(r,9);var t=[0,c,t]}break x}var v=f5(function(m){var h=m[3],T=m[2],b=m[1];return q(r)===9&&E0(r),[0,b,[0,T,h]]},hX(r,u));q(r)!==5&&Ux(r,61);var a=ix(t),l=u0(r);return J(r,5),[0,a,v,O2([0,e],[0,L0(r)],l,O)]}var yT0=0;function gT0(x){var r=x0(0,function(h){var T=u0(h);ys(h,Tv0);var b=Xt(h,p(X0[13],Ev0,h)),N=Q1(h,He(h)),j=x0(yT0,dT0,h),I=iC(h)?j:p(F2(h)[2],j,function(F,M){return p(Bx(F,842685896,11),F,M)});return[0,N,b,I,cC(h,TC(h)),T]},x),e=r[2],t=e[3],u=e[2],i=e[5],c=e[4],v=e[1],a=r[1],l=dX(x,0,0,0,0),m=l[1];return mX(x,l[2],[0,u],[1,t]),[3,[0,u,v,t,c,m,Z([0,i],0,O),a]]}var wT0=0;function SC(x){return x0(wT0,gT0,x)}function o1(x,r){if(r[0]===0)return r[1];var e=r[1];return b1(function(t){return q0(x,t)},r[2][1]),e}function AC(x,r,e){var t=x?x[1]:36;if(e[0]===0)var u=e[1];else{var i=e[1];b1(function(l){return q0(r,l)},e[2][2]);var u=i}1-d(X0[23],u)&&q0(r,[0,u[1],t]);var c=u[2];x:if(c[0]===10){var v=u[1];if(Pv(c[1][2][1])){ht(r,[0,v,71]);break x}}return p(X0[19],r,u)}function PC(x,r){var e=K3(x[2],r[2]);return[0,K3(x[1],r[1]),e]}function bX(x){var r=ix(x[2]);return[0,ix(x[1]),r]}function wh(x){var r=V0(x),e=TX(x),t=q(x);x:{if(typeof t=="number"&&t===90){var u=x0([0,r],function(l){for(var m=[0,e,0];;){var h=q(l);if(typeof h=="number"&&h===90){E0(l);var m=[0,TX(l),m];continue}var T=ix(m);return[0,T,Z(0,[0,L0(l)],O)]}},x),i=[0,u[1],[12,u[2]]];break x}var i=e}var c=q(x);if(typeof c!="number"&&c[0]===4&&!P(c[3],Nt)){var v=x0([0,r],function(a){E0(a);var l=q(a);x:{r:if(typeof l=="number"){var m=l+E3|0;if(4>=m>>>0){switch(m){case 0:var h=Yt(a,0),N=[1,h[1],h[2]];break;case 3:var T=Yt(a,2),N=[1,T[1],T[2]];break;case 4:var b=Yt(a,1),N=[1,b[1],b[2]];break;default:break r}var j=N;break x}}var j=[0,p(X0[13],0,a)]}return[0,i,j,Z(0,[0,L0(a)],O)]},x);return[0,v[1],[13,v[2]]]}return i}function TX(x){var r=q(x);if(typeof r=="number")switch(r){case 0:var e=function(p0){var Fx=V0(p0),Sx=u0(p0);function bx(V){var lx=V[2],U0=V[1],ox=[2,[0,U0,lx[2][2]]];return[0,Fx,[0,ox,[0,U0,[7,lx]],1,Z([0,Sx],[0,L0(p0)],O)]]}var B0=q(p0);if(typeof B0=="number"){var Wx=B0+E3|0;if(4>=Wx>>>0)switch(Wx){case 0:return bx(Yt(p0,0));case 3:return bx(Yt(p0,2));case 4:return bx(Yt(p0,1))}}var Yx=u0(p0),ax=q(p0);x:{if(typeof ax!="number")switch(ax[0]){case 0:var Qx=ax[2],kx=ax[1],tr=V0(p0),sr=H0(X0[24],p0,kx,Qx),jx=[1,[0,tr,[0,sr,Qx,Z([0,Yx],[0,L0(p0)],O)]]];break x;case 2:var Mr=ax[1],a2=Mr[4],_2=Mr[3],i2=Mr[2],Q2=Mr[1];a2&&Ie(p0,76),J(p0,[2,[0,Q2,i2,_2,a2]]);var jx=[0,[0,Q2,[0,i2,_2,Z([0,Yx],[0,L0(p0)],O)]]];break x}var jx=[2,a1(p0)]}J(p0,87);var _=wh(p0);return[0,Fx,[0,jx,_,0,Z([0,Sx],[0,L0(p0)],O)]]};return x0(0,function(p0){var Fx=u0(p0);J(p0,0);x:{for(var Sx=0;;){var bx=q(p0);if(typeof bx=="number"){var B0=bx-2|0;if(ce>>0){if(Te>=B0+1>>>0){var ax=[0,ix(Sx),0];break x}}else if(B0===10)break}var Wx=e(p0);1-(q(p0)===1?1:0)&&J(p0,9);var Sx=[0,Wx,Sx]}var Yx=SX(p0);q(p0)===9&&q0(p0,[0,V0(p0),Pl0]);var ax=[0,ix(Sx),[0,Yx]]}var Qx=ax[2],kx=ax[1],tr=u0(p0);return J(p0,1),[10,[0,kx,Qx,O2([0,Fx],[0,L0(p0)],tr,O)]]},x);case 4:var t=u0(x);J(x,4);var u=wh(x);J(x,5);var i=L0(x),c=u[2],v=function(p0){return S1(p0,Z([0,t],[0,i],O))},a=function(p0){return S5(p0,Z([0,t],[0,i],O))},l=u[1];switch(c[0]){case 0:var I0=[0,v(c[1])];break;case 1:var m=c[1],h=v(m[3]),I0=[1,[0,m[1],m[2],h]];break;case 2:var T=c[1],b=v(T[3]),I0=[2,[0,T[1],T[2],b]];break;case 3:var N=c[1],j=v(N[3]),I0=[3,[0,N[1],N[2],j]];break;case 4:var I=c[1],F=v(I[2]),I0=[4,[0,I[1],F]];break;case 5:var I0=[5,v(c[1])];break;case 6:var M=c[1],z=v(M[3]),I0=[6,[0,M[1],M[2],z]];break;case 7:var B=c[1],K=v(B[3]),I0=[7,[0,B[1],B[2],K]];break;case 8:var n0=c[1],$=n0[2],H=n0[1],t0=v($[2]),I0=[8,[0,H,[0,$[1],t0]]];break;case 9:var c0=c[1],r0=c0[2],v0=c0[1],a0=v(r0[3]),I0=[9,[0,v0,[0,r0[1],r0[2],a0]]];break;case 10:var g0=c[1],i0=a(g0[3]),I0=[10,[0,g0[1],g0[2],i0]];break;case 11:var s0=c[1],d0=a(s0[3]),I0=[11,[0,s0[1],s0[2],d0]];break;case 12:var w0=c[1],M0=v(w0[2]),I0=[12,[0,w0[1],M0]];break;default:var C0=c[1],D0=v(C0[3]),I0=[13,[0,C0[1],C0[2],D0]]}return[0,l,I0];case 6:return x0(0,function(p0){var Fx=u0(p0),Sx=V0(p0);J(p0,6);x:{for(var bx=0;;){var B0=q(p0);if(typeof B0=="number"){var Wx=B0-8|0;if(ui>>0){if(K2>=Wx+1>>>0){var kx=[0,ix(bx),0];break x}}else if(Wx===4)break}var Yx=wh(p0),ax=Yr(Sx,V0(p0));q(p0)!==7&&J(p0,9);var bx=[0,[0,ax,Yx],bx]}var Qx=SX(p0);q(p0)===9&&q0(p0,[0,V0(p0),Il0]);var kx=[0,ix(bx),[0,Qx]]}var tr=kx[2],sr=kx[1],Mr=u0(p0);return J(p0,7),[11,[0,sr,tr,O2([0,Fx],[0,L0(p0)],Mr,O)]]},x);case 25:var j0=Yt(x,0);return[0,j0[1],[7,j0[2]]];case 28:var y0=Yt(x,2);return[0,y0[1],[7,y0[2]]];case 29:var Y0=Yt(x,1);return[0,Y0[1],[7,Y0[2]]];case 30:var L=u0(x),N0=V0(x);return E0(x),[0,N0,[5,Z([0,L],[0,L0(x)],O)]];case 104:return EX(x,0);case 105:return EX(x,1);case 31:case 32:var S0=u0(x),K0=V0(x);return E0(x),[0,K0,[4,[0,r===32?1:0,Z([0,S0],[0,L0(x)],O)]]]}else switch(r[0]){case 0:var A0=r[2],$0=r[1],ex=u0(x),xx=V0(x),tx=H0(X0[24],x,$0,A0);return[0,xx,[1,[0,tx,A0,Z([0,ex],[0,L0(x)],O)]]];case 1:var z0=r[2],px=r[1],sx=u0(x),Q=V0(x),b0=H0(X0[26],x,px,z0);return[0,Q,[2,[0,b0,z0,Z([0,sx],[0,L0(x)],O)]]];case 2:var U=r[1],h0=U[4],_0=U[3],m0=U[2],T0=U[1],X=u0(x);return h0&&Ie(x,76),E0(x),[0,T0,[3,[0,m0,_0,Z([0,X],[0,L0(x)],O)]]];case 4:if(!P(r[3],qo)){var Gx=u0(x),Px=V0(x);return E0(x),[0,Px,[0,Z([0,Gx],[0,L0(x)],O)]]}break}if(!dn(x)){var G0=u0(x),Kr=V0(x);p2(0,x);x:if(typeof r!="number"&&r[0]===7){E0(x);break x}return[0,Kr,[0,Z([0,G0],Tl0,O)]]}for(var S=V0(x),G=[0,p(X0[13],0,x)];;){var rx=q(x);if(typeof rx=="number"){if(rx===6){let p0=G;var G=[1,x0([0,S],function(Sx){J(Sx,6);var bx=u0(Sx),B0=q(Sx);x:{if(typeof B0!="number")switch(B0[0]){case 0:var Wx=B0[2],Yx=B0[1],ax=V0(Sx),Qx=H0(X0[24],Sx,Yx,Wx),_2=[1,[0,ax,[0,Qx,Wx,Z([0,bx],[0,L0(Sx)],O)]]];break x;case 2:var kx=B0[1],tr=kx[4],sr=kx[3],Mr=kx[2],a2=kx[1];tr&&Ie(Sx,76),J(Sx,[2,[0,a2,Mr,sr,tr]]);var _2=[0,[0,a2,[0,Mr,sr,Z([0,bx],[0,L0(Sx)],O)]]];break x}p2(_l0,Sx);var _2=[0,[0,V0(Sx),bl0]]}return J(Sx,7),[0,p0,_2,Z(0,[0,L0(Sx)],O)]},x)];continue}if(rx===10){let p0=G;var G=[1,x0([0,S],function(Sx){E0(Sx);var bx=[2,a1(Sx)];return[0,p0,bx,Z(0,[0,L0(Sx)],O)]},x)];continue}}if(G[0]===0){var yx=G[1];return[0,yx[1],[8,yx]]}var Ex=G[1],nx=Ex[1];return[0,nx,[9,[0,nx,Ex[2]]]]}}function EX(x,r){return x0(0,function(e){var t=u0(e);E0(e);var u=q(e);x:{if(typeof u!="number")switch(u[0]){case 0:var i=u[2],c=u[1],v=u0(e),a=V0(e),l=H0(X0[24],e,c,i),I=[0,a,[0,[0,l,i,Z([0,v],[0,L0(e)],O)]]];break x;case 1:var m=u[2],h=u[1],T=u0(e),b=V0(e),N=H0(X0[26],e,h,m),I=[0,b,[1,[0,N,m,Z([0,T],[0,L0(e)],O)]]];break x}var j=V0(e);p2(El0,e);var I=[0,j,Sl0]}return[6,[0,r,I,Z([0,t],[0,L0(e)],O)]]},x)}function Yt(x,r){return x0(0,function(e){var t=u0(e);E0(e);var u=p(X0[13],Al0,e);return[0,r,u,Z([0,t],[0,L0(e)],O)]},x)}function SX(x){return x0(0,function(r){var e=u0(r);J(r,12);var t=q(r);x:{r:if(typeof t=="number"){var u=t+E3|0;if(4>=u>>>0){switch(u){case 0:var i=[0,Yt(r,0)];break;case 3:var i=[0,Yt(r,2)];break;case 4:var i=[0,Yt(r,1)];break;default:break r}var c=i;break x}}var c=0}return[0,c,Z([0,e],[0,L0(r)],O)]},x)}function AX(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0}var k4=[],_h=[],PX=[],IX=[],NX=[],m4=[],jX=[],CX=[],IC=[],OX=[];function h4(x){var r=dn(x);if(r){var e=q(x);x:{if(typeof e=="number"){if(e===59){if(x[18]){var t=0;break x}}else if(e===66&&x[19]){var t=0;break x}}var t=1}var u=t}else var u=r;var i=q(x);x:{r:if(typeof i=="number"){if(23<=i){if(i===59){if(x[18])return[0,x0(0,function(m){m[10]&&Ux(m,ea);var h=u0(m),T=V0(m);J(m,59);var b=V0(m);if(sl(m))var N=0,j=0;else{var I=u2(m,K2),F=q(m);e:{t:if(typeof F=="number"){if(F!==87){if(10<=F)break t;switch(F){case 0:case 2:case 3:case 4:case 6:break t}}var M=0;break e}var M=1}e:{if(!I&&!M){var z=0;break e}var z=[0,zt(m)]}var N=I,j=z}var B=j?0:L0(m),K=Yr(T,b);return[38,[0,j,Z([0,h],[0,B],O),N,K]]},x)];break r}if(i!==99)break r}else if(i!==4&&22>i)break r;break x}if(!u)return d(k4[1],x)}x:{if(i===65&&A2(x)&&xr(1,x)===99){var c=k4[2],v=$X;break x}var c=$X,v=k4[2]}var a=fC(x,v);if(a)return a[1];var l=fC(x,c);return l?l[1]:d(k4[1],x)}function zt(x){return o1(x,h4(x))}function DX(x){var r=x[2];switch(r[0]){case 24:var e=r[1],t=e[1][2][1];if(P(t,X1)){if(!P(t,rv)&&!P(e[2][2][1],Um))return 0}else if(!P(e[2][2][1],Xl))return 0;break;case 10:case 23:break;default:return 0}return 1}function FX(x){var r=V0(x),e=x0(0,bh,x),t=e[2],u=e[1],i=q(x);x:{if(typeof i=="number"&&i===85){var v=zN(_h[3],1,x,t,u);break x}var c=H0(_h[1],x,t,u),v=H0(_h[2],x,c[2],c[1])}var a=v[2];if(q(x)!==86)return a;E0(x);var l=zt(e4(0,x));J(x,87);var m=x0([0,r],zt,x),h=m[2],T=m[1];return[0,[0,T,[8,[0,o1(x,a),l,h,0]]]]}function bh(x){return p(PX[1],x,0)}function RX(x){var r=q(x);if(typeof r=="number"){if(49<=r){if(Be<=r){if(ea>r)switch(r+F9|0){case 0:return Qv0;case 1:return Hv0;case 6:return Zv0;case 7:return x30}}else if(r===66&&x[19])return x[10]&&Ux(x,6),r30}else if(46<=r)switch(r+Ja|0){case 0:return e30;case 1:return t30;default:return n30}}return 0}function LX(x){var r=V0(x),e=u0(x),t=RX(x);if(t){var u=t[1];E0(x);var i=x0([0,r],MX,x),c=i[2],v=i[1];x:r:if(u===6){var a=c[2];switch(a[0]){case 10:ht(x,[0,v,68]);break;case 23:a[1][2][0]===1&&q0(x,[0,v,62]);break;default:break r}break x}return[0,[0,v,[36,[0,u,c,Z([0,e],0,O)]]]]}var l=q(x);x:{if(typeof l=="number"){if(ea===l){var m=i30;break x}if(Te===l){var m=u30;break x}}var m=0}if(m){var h=m[1];E0(x);var T=x0([0,r],MX,x),b=T[2],N=T[1];1-DX(b)&&q0(x,[0,b[1],36]);var j=b[2];x:if(j[0]===10&&Pv(j[1][2][1])){Ie(x,73);break x}return[0,[0,N,[37,[0,h,b,1,Z([0,e],0,O)]]]]}var I=qX(x);if(N1(x))return I;var F=q(x);x:{if(typeof F=="number"){if(ea===F){var M=c30;break x}if(Te===F){var M=f30;break x}}var M=0}if(!M)return I;var z=M[1],B=o1(x,I);1-DX(B)&&q0(x,[0,B[1],36]);var K=B[2];x:if(K[0]===10&&Pv(K[1][2][1])){Ie(x,72);break x}var n0=V0(x);E0(x);var $=L0(x),H=Yr(B[1],n0);return[0,[0,H,[37,[0,z,B,0,Z(0,[0,$],O)]]]]}function MX(x){return o1(x,LX(x))}function qX(x){var r=V0(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=q(u);x:{r:if(typeof i=="number"){var c=i+nA|0;if(7>=c>>>0){switch(c){case 0:if(!e)break r;var v=[0,XX(u)];break;case 6:var v=[0,x0(0,function(m){var h=u0(m),T=V0(m);if(J(m,51),u2(m,10)){var b=mn(0,[0,T,v30]),N=V0(m);ys(m,l30);var j=mn(0,[0,N,p30]);return[24,[0,b,j,Z([0,h],[0,L0(m)],O)]]}var I=u0(m);J(m,4);var F=VX([0,I],0,zt(e4(0,m)));return J(m,5),[11,[0,F,Z([0,h],[0,L0(m)],O)]]},u)];break;case 7:var v=[0,UX(u)];break;default:break r}var a=v;break x}}var a=so(u)?[0,zX(u)]:KX(u)}return lo(0,0,u,r,a)}function NC(x){return o1(x,qX(x))}function UX(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=V0(x),u=u0(x);J(x,52);var i=[0,t,[30,[0,Z([0,u],[0,L0(x)],O)]]],c=q(x);if(typeof c=="number"&&11>c)switch(c){case 4:var v=r?i:(q0(x,[0,t,y2]),[0,t,[10,mn(0,[0,t,s30])]]);return BX(0,x,t,v);case 6:case 10:var a=e?i:(q0(x,[0,t,99]),[0,t,[10,mn(0,[0,t,o30])]]);return BX(0,x,t,a)}return e?p2(a30,x):q0(x,[0,t,99]),i}function lo(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=YX([0,i],[0,c],e,t,u),a=pB(e);x:{if(a){var l=a[1];if(typeof l=="number"&&l===84){var m=1;break x}}var m=0}function h(j){var I=F2(j)[2];return p(I,o1(j,v),function(F,M){return p(Bx(F,jt,93),F,M)})}function T(j,I,F){var M=Th(I),z=M[1],B=M[2],K=Yr(t,z),n0=[0,F,j,[0,z,B],0];x:{if(!m&&!c){var $=[6,n0];break x}var $=[27,[0,n0,K,m]]}var H=c||m;return lo([0,i],[0,H],I,t,[0,[0,K,$]])}if(e[13])return v;var b=q(e);if(typeof b=="number"){var N=b-99|0;if(2>>0){if(N===-95)return T(0,e,h(e))}else if(N!==1&&A2(e))return fh(rh(function(j,I){throw W0(gs,1)},e),v,function(j){var I=h(j);return T(jC(j),j,I)})}return v}function BX(x,r,e,t){var u=x?x[1]:1;return o1(r,lo([0,u],0,r,e,[0,t]))}function XX(x){return x0(0,function(r){var e=V0(r),t=u0(r);if(J(r,45),r[11]&&q(r)===10){var u=L0(r);E0(r);var i=mn(Z([0,t],[0,u],O),[0,e,k30]),c=q(r);return typeof c!="number"&&c[0]===4&&!P(c[3],Um)?[24,[0,i,p(X0[13],0,r),0]]:(p2(m30,r),E0(r),[10,i])}var v=V0(r),a=q(r);x:{if(typeof a=="number"){if(a===45){var l=XX(r);break x}if(a===52){var l=UX(rC(1,r));break x}}var l=so(r)?zX(r):o1(r,KX(r))}var m=rC(1,r),h=o1(m,YX([0,h30[1]],0,m,v,[0,l])),T=q(r);x:{if(typeof T!="number"&&T[0]===3){var b=WX(r,v,h,T[1]);break x}var b=h}x:{r:if(q(r)!==4){if(A2(r)&&q(r)===99)break r;var N=b;break x}var N=p(F2(r)[2],b,function(M,z){return p(Bx(M,jt,94),M,z)})}var j=A2(r)?fh(rh(function(M,z){throw W0(gs,1)},r),0,jC):0,I=q(r);x:{if(typeof I=="number"&&I===4){var F=[0,Th(r)];break x}var F=0}return[25,[0,N,j,F,Z([0,t],0,O)]]},x)}function jC(x){V2(x,1);var r=q(x)===99?[0,x0(0,IX[1],x)]:0;return Z2(x),r}function Th(x){return x0(0,function(r){var e=u0(r);J(r,4);var t=p(NX[1],r,0),u=u0(r);return J(r,5),[0,t,O2([0,e],[0,L0(r)],u,O)]},x)}function YX(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=q(e);if(typeof v=="number")switch(v){case 6:return E0(e),P6(m4[1],[0,i],[0,c],0,e,t,u);case 10:return E0(e),P6(m4[2],[0,i],[0,c],0,e,t,u);case 84:1-i&&Ux(e,59),J(e,84);var a=q(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return E0(e),P6(m4[1],[0,i],y30,d30,e,t,u);case 99:if(A2(e))return u;break}else if(a[0]===3)return Ux(e,60),u;return P6(m4[2],[0,i],w30,g30,e,t,u)}else if(v[0]===3){var l=v[1];return c&&Ux(e,60),lo(_30,0,e,t,[0,WX(e,t,o1(e,u),l)])}return u}function zX(x){return x0(0,function(r){var e=gh(r),t=e[1],u=e[2],i=x0(0,function(F){var M=u0(F);J(F,15);var z=Fv(F),B=z[1],K=O6([0,u,[0,M,[0,z[2],0]]]);if(q(F)===4)var n0=0,$=0;else{var H=q(F);x:{if(typeof H=="number"&&H===99){var c0=0;break x}var t0=Qj(B,Hj(t,F)),c0=[0,Xt(t0,p(X0[13],b30,t0))]}var n0=Q1(F,He(F)),$=c0}var r0=Sv(0,F),v0=t||r0[19],a0=pl(v0,B)(r0),g0=q(r0)===87?a0:i4(r0,a0),i0=bC(r0),s0=i0[2],d0=i0[1];if(s0)var w0=SB(r0,s0),M0=d0;else var w0=s0,M0=al(r0,d0);return[0,$,g0,B,w0,M0,n0,K]},r),c=i[2],v=c[3],a=c[2],l=c[1],m=c[7],h=c[6],T=c[5],b=c[4],N=i[1],j=l4(r,t,v,1,jv(a)),I=j[1];return ll(r,j[2],l,a),[9,[0,l,a,I,t,v,1,b,T,h,Z([0,m],0,O),N]]},x)}function CC(x,r,e){switch(r){case 1:Ie(x,76);try{var t=Qm(ov(qx(T30,e))),u=t}catch(T){var i=U2(T);if(i[1]!==vn)throw W0(i,0);var u=Tx(qx(E30,e))}break;case 2:Ie(x,75);try{var c=jN(e),u=c}catch(T){var v=U2(T);if(v[1]!==vn)throw W0(v,0);var u=Tx(qx(S30,e))}break;case 4:try{var a=jN(e),u=a}catch(T){var l=U2(T);if(l[1]!==vn)throw W0(l,0);var u=Tx(qx(A30,e))}break;default:try{var m=Qm(ov(e)),u=m}catch(T){var h=U2(T);if(h[1]!==vn)throw W0(h,0);var u=Tx(qx(P30,e))}}return J(x,[0,r,e]),u}function OC(x,r,e){var t=Nx(e);x:{if(t!==0&&z1===q2(e,t-1|0)){var u=T1(e,0,t-1|0);break x}var u=e}var i=rq(u);return J(x,[1,r,e]),i}function KX(x){var r=V0(x),e=u0(x),t=q(x);if(typeof t=="number")switch(t){case 0:var u=d(X0[12],x);return[1,[0,u[1],[26,u[2]]],u[3]];case 4:var i=u0(x),c=x0(0,function(U){J(U,4);var h0=V0(U),_0=zt(U),m0=q(U);x:{if(typeof m0=="number"){if(m0===9){var T0=[0,DC(U,h0,[0,_0,0])];break x}if(m0===87){var T0=[1,[0,_0,Dv(U),0]];break x}}var T0=[0,_0]}return J(U,5),T0},x),v=c[2],a=c[1],l=L0(x),m=v[0]===0?v[1]:[0,a,[34,v[1]]];return[0,VX([0,i],[0,l],m)];case 6:var h=x0(0,_T0,x),T=h[2];return[1,[0,h[1],[0,T[1]]],T[2]];case 21:if(x[28][3]&&!Iv(1,x)&&xr(1,x)===4){var b=u0(x),N=V0(x),j=p(X0[13],0,x),I=Th(x),F=I[2],M=I[1];if(!N1(x)&&q(x)===0){var z=F[1];if(z){var B=z[1];if(B[0]===0&&!z[2])return[0,JX(x,N,b,B[1])]}return q0(x,[0,M,49]),[0,JX(x,N,b,[0,M,I30])]}var K=[0,j[1],[10,j]],n0=Yr(N,M);return lo(j30,N30,x,N,[0,[0,n0,[6,[0,K,0,[0,M,F],Z([0,b],0,O)]]]])}break;case 22:return E0(x),[0,[0,r,[33,[0,Z([0,e],[0,L0(x)],O)]]]];case 30:return E0(x),[0,[0,r,[16,Z([0,e],[0,L0(x)],O)]]];case 41:return[0,d(X0[22],x)];case 99:var $=d(X0[17],x),H=$[2],t0=$[1],c0=tn<=H[1]?[13,H[2]]:[12,H[2]];return[0,[0,t0,c0]];case 31:case 32:return E0(x),[0,[0,r,[15,[0,t===32?1:0,Z([0,e],[0,L0(x)],O)]]]];case 75:case 106:V2(x,5);var r0=V0(x),v0=u0(x),a0=q(x);x:{if(typeof a0!="number"&&a0[0]===5){var g0=a0[3],i0=a0[2];E0(x);var s0=L0(x),d0=s0,w0=g0,M0=i0,C0=qx(D30,qx(i0,qx(O30,g0)));break x}p2(F30,x);var d0=0,w0=R30,M0=L30,C0=M30}Z2(x);var D0=$r(Nx(w0));Eb0(function(U){var h0=U+D9|0;if(21>=h0>>>0)switch(h0){case 0:case 3:case 5:case 9:case 15:case 17:case 18:case 21:return lt(D0,U)}},w0);var I0=G2(D0);return P(I0,w0)&&Ux(x,[19,w0]),[0,[0,r0,[19,[0,M0,I0,C0,Z([0,v0],[0,d0],O)]]]]}else switch(t[0]){case 0:var j0=t[2],y0=CC(x,t[1],j0);return[0,[0,r,[17,[0,y0,j0,Z([0,e],[0,L0(x)],O)]]]];case 1:var Y0=t[2],L=OC(x,t[1],Y0);return[0,[0,r,[18,[0,L,Y0,Z([0,e],[0,L0(x)],O)]]]];case 2:var N0=t[1],S0=N0[3],K0=N0[2],A0=N0[1];N0[4]&&Ie(x,76),E0(x);var $0=Z([0,e],[0,L0(x)],O),ex=x[28],xx=ex[7],tx=ex[8];x:{if(xx){var z0=xx[1];if(QM(z0,K0)){var sx=[20,[0,K0,A0,Nx(z0),0,S0,$0]];break x}}if(tx){var px=tx[1];if(QM(px,K0)){var sx=[20,[0,K0,A0,Nx(px),1,S0,$0]];break x}}var sx=[14,[0,K0,S0,$0]]}return[0,[0,A0,sx]];case 3:var Q=GX(x,t[1]);return[0,[0,Q[1],[32,Q[2]]]];case 4:if(!P(t[3],lA)&&xr(1,x)===41)return[0,d(X0[22],x)];break}if(dn(x)){var b0=p(X0[13],0,x);return[0,[0,b0[1],[10,b0]]]}p2(0,x);x:if(typeof t!="number"&&t[0]===7){E0(x);break x}return[0,[0,r,[16,Z([0,e],C30,O)]]]}function JX(x,r,e,t){function u(i){var c=u0(i),v=d(X0[27],i),a=u2(i,16)?[0,d(X0[7],i)]:0;J(i,87);var l=zt(i),m=q(i);x:{r:if(typeof m=="number"){if(m!==1&&mr!==m)break r;break x}J(i,9)}return[0,v,l,a,Z([0,c],[0,L0(i)],O)]}return x0([0,r],function(i){J(i,0);for(var c=0;;){var v=q(i);x:if(typeof v=="number"){if(v!==1&&mr!==v)break x;var a=ix(c);return J(i,1),[22,[0,t,a,Z([0,e],[0,L0(i)],O)]]}var c=[0,x0(0,u,i),c]}},x)}function GX(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],c=u0(x);J(x,[3,r]);var v=[0,t,[0,[0,u,i],e]];if(e)var l=0,m=[0,v,0],h=t;else var a=H0(jX[1],x,[0,v,0],0),l=a[3],m=a[2],h=a[1];var T=L0(x),b=Yr(t,h);return[0,b,[0,m,l,Z([0,c],[0,T],O)]]}function WX(x,r,e,t){var u=p(F2(x)[2],e,function(c,v){return p(Bx(c,jt,3),c,v)}),i=GX(x,t);return[0,Yr(r,i[1]),[31,[0,u,i,0]]]}function VX(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=e[2];function c(ox){return S1(ox,Z([0,t],[0,u],O))}function v(ox){return S5(ox,Z([0,t],[0,u],O))}var a=e[1];switch(i[0]){case 0:var l=i[1],m=v(l[2]),U0=[0,[0,l[1],m]];break;case 1:var h=i[1],T=h[11],b=c(h[10]),U0=[1,[0,h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],b,T]];break;case 2:var N=i[1],j=c(N[2]),U0=[2,[0,N[1],j]];break;case 3:var I=i[1],F=c(I[3]),U0=[3,[0,I[1],I[2],F]];break;case 4:var M=i[1],z=c(M[4]),U0=[4,[0,M[1],M[2],M[3],z]];break;case 5:var B=i[1],K=c(B[4]),U0=[5,[0,B[1],B[2],B[3],K]];break;case 6:var n0=i[1],$=c(n0[4]),U0=[6,[0,n0[1],n0[2],n0[3],$]];break;case 7:var H=i[1],t0=c(H[7]),U0=[7,[0,H[1],H[2],H[3],H[4],H[5],H[6],t0]];break;case 8:var c0=i[1],r0=c(c0[4]),U0=[8,[0,c0[1],c0[2],c0[3],r0]];break;case 9:var v0=i[1],a0=v0[11],g0=c(v0[10]),U0=[9,[0,v0[1],v0[2],v0[3],v0[4],v0[5],v0[6],v0[7],v0[8],v0[9],g0,a0]];break;case 10:var i0=i[1],s0=i0[2],d0=i0[1],w0=c(s0[2]),U0=[10,[0,d0,[0,s0[1],w0]]];break;case 11:var M0=i[1],C0=c(M0[2]),U0=[11,[0,M0[1],C0]];break;case 12:var D0=i[1],I0=c(D0[4]),U0=[12,[0,D0[1],D0[2],D0[3],I0]];break;case 13:var j0=i[1],y0=c(j0[4]),U0=[13,[0,j0[1],j0[2],j0[3],y0]];break;case 14:var Y0=i[1],L=c(Y0[3]),U0=[14,[0,Y0[1],Y0[2],L]];break;case 15:var N0=i[1],S0=c(N0[2]),U0=[15,[0,N0[1],S0]];break;case 16:var U0=[16,c(i[1])];break;case 17:var K0=i[1],A0=c(K0[3]),U0=[17,[0,K0[1],K0[2],A0]];break;case 18:var $0=i[1],ex=c($0[3]),U0=[18,[0,$0[1],$0[2],ex]];break;case 19:var xx=i[1],tx=c(xx[4]),U0=[19,[0,xx[1],xx[2],xx[3],tx]];break;case 20:var z0=i[1],px=c(z0[6]),U0=[20,[0,z0[1],z0[2],z0[3],z0[4],z0[5],px]];break;case 21:var sx=i[1],Q=c(sx[4]),U0=[21,[0,sx[1],sx[2],sx[3],Q]];break;case 22:var b0=i[1],U=c(b0[3]),U0=[22,[0,b0[1],b0[2],U]];break;case 23:var h0=i[1],_0=c(h0[3]),U0=[23,[0,h0[1],h0[2],_0]];break;case 24:var m0=i[1],T0=c(m0[3]),U0=[24,[0,m0[1],m0[2],T0]];break;case 25:var X=i[1],Gx=c(X[4]),U0=[25,[0,X[1],X[2],X[3],Gx]];break;case 26:var Px=i[1],G0=v(Px[2]),U0=[26,[0,Px[1],G0]];break;case 27:var Kr=i[1],S=Kr[1],G=Kr[3],rx=Kr[2],yx=c(S[4]),U0=[27,[0,[0,S[1],S[2],S[3],yx],rx,G]];break;case 28:var Ex=i[1],nx=Ex[1],p0=Ex[3],Fx=Ex[2],Sx=c(nx[3]),U0=[28,[0,[0,nx[1],nx[2],Sx],Fx,p0]];break;case 29:var bx=i[1],B0=c(bx[2]),U0=[29,[0,bx[1],B0]];break;case 30:var U0=[30,[0,c(i[1][1])]];break;case 31:var Wx=i[1],Yx=c(Wx[3]),U0=[31,[0,Wx[1],Wx[2],Yx]];break;case 32:var ax=i[1],Qx=c(ax[3]),U0=[32,[0,ax[1],ax[2],Qx]];break;case 33:var U0=[33,[0,c(i[1][1])]];break;case 34:var kx=i[1],tr=c(kx[3]),U0=[34,[0,kx[1],kx[2],tr]];break;case 35:var sr=i[1],Mr=c(sr[3]),U0=[35,[0,sr[1],sr[2],Mr]];break;case 36:var a2=i[1],_2=c(a2[3]),U0=[36,[0,a2[1],a2[2],_2]];break;case 37:var i2=i[1],Q2=c(i2[4]),U0=[37,[0,i2[1],i2[2],i2[3],Q2]];break;default:var jx=i[1],_=jx[4],V=jx[3],lx=c(jx[2]),U0=[38,[0,jx[1],lx,V,_]]}return[0,a,U0]}function _T0(x){var r=u0(x);J(x,6);var e=p(CX[1],x,[0,0,ln]),t=e[2],u=e[1],i=u0(x);return J(x,7),[0,[0,u,O2([0,r],[0,L0(x)],i,O)],t]}function $X(x){var r=rh(IC[1],x),e=V0(r);if(xr(1,r)===11)var u=0,i=0;else var t=gh(r),u=t[2],i=t[1];var c=i||r[19],v=Hj(c,r),a=v[18],l=x0(0,function(s0){var d0=Q1(s0,He(s0));if(dn(s0)&&d0===0){var w0=p(X0[13],q30,s0),M0=w0[1],C0=[0,M0,[0,[0,M0,[2,[0,w0,[0,da(s0)],0]]],0]];return[0,d0,[0,M0,[0,0,[0,C0,0],0,0]],[0,[0,M0[1],M0[3],M0[3]]],0]}var D0=pl(c,a)(s0);kX(s0,D0);var I0=bC(Av(1,s0));return[0,d0,D0,I0[1],I0[2]]},v),m=l[2],h=m[2],T=h[2];x:{r:{var b=m[4],N=m[3],j=m[1],I=l[1];if(!T[1]){var F=T[2];if(!T[3]&&F)break r;var M=kB(v);break x}}var M=v}var z=h[2],B=z[1];if(B){var K=h[1];q0(M,[0,B[1][1],86]);var n0=[0,K,[0,0,z[2],z[3],z[4]]]}else var n0=h;var $=jv(n0),H=N1(M),t0=H&&(q(M)===11?1:0);t0&&Ux(M,55),J(M,11);var c0=mB(kB(M),i,0,$),r0=x0(0,IC[2],c0),v0=r0[2],a0=v0[1],g0=r0[1];ll(c0,v0[2],0,n0);var i0=Yr(e,g0);return[0,[0,i0,[1,[0,0,n0,a0,i,0,1,b,N,j,Z([0,u],0,O),I]]]]}function DC(x,r,e){return x0([0,r],d(OX[1],e),x)}function QX(x){var r=V0(x),e=FX(x),t=q(x);x:{if(typeof t=="number"){var u=t-68|0;if(15>=u>>>0){switch(u){case 0:var i=Fv0;break;case 1:var i=Rv0;break;case 2:var i=Lv0;break;case 3:var i=Mv0;break;case 4:var i=qv0;break;case 5:var i=Uv0;break;case 6:var i=Bv0;break;case 7:var i=Xv0;break;case 8:var i=Yv0;break;case 9:var i=zv0;break;case 10:var i=Kv0;break;case 11:var i=Jv0;break;case 12:var i=Gv0;break;case 13:var i=Wv0;break;case 14:var i=Vv0;break;default:var i=$v0}var c=i;break x}}var c=0}if(c!==0&&E0(x),!c)return e;var v=c[1];return[0,x0([0,r],function(a){var l=AC(0,a,e);return[4,[0,v,l,zt(a),0]]},x)]}function bT0(x,r){if(typeof r=="number"&&r===80)return 0;throw W0(gs,1)}Fr(k4,[0,QX,function(x){var r=rh(bT0,x),e=QX(r),t=q(r);if(typeof t=="number"){if(t===11)throw W0(gs,1);if(t===87){var u=pB(r);x:{if(u){var i=u[1];if(typeof i=="number"&&i===5){var c=1;break x}}var c=0}if(c)throw W0(gs,1)}}if(!dn(r))return e;if(e[0]===0){var v=e[1][2];if(v[0]===10&&!P(v[1][2][1],Ka)&&!N1(r))throw W0(gs,1)}return e}]);function FC(x,r,e,t,u){var i=o1(x,r);return[0,[0,u,[21,[0,t,i,o1(x,e),0]]]]}function RC(x,r,e){for(var t=r,u=e;;){var i=q(x);if(typeof i=="number"&&i===89){E0(x);var c=x0(0,bh,x),v=c[2],a=Yr(u,c[1]),l=LC(0,x,FC(x,t,v,1,a),a),t=l[2],u=l[1];continue}return[0,u,t]}}function HX(x,r,e){for(var t=r,u=e;;){var i=q(x);if(typeof i=="number"&&i===88){E0(x);var c=x0(0,bh,x),v=RC(x,c[2],c[1]),a=v[2],l=Yr(u,v[1]),m=LC(0,x,FC(x,t,a,0,l),l),t=m[2],u=m[1];continue}return[0,u,t]}}function LC(x,r,e,t){for(var u=x,i=e,c=t;;){var v=q(r);if(typeof v=="number"&&v===85){1-u&&Ux(r,ll0),J(r,85);var a=x0(0,bh,r),l=a[2],m=a[1],h=q(r);x:{if(typeof h=="number"&&1>=h+iD>>>0){Ux(r,[22,Yj(h)]);var T=RC(r,l,m),b=HX(r,T[2],T[1]),N=b[2],j=b[1];break x}var N=l,j=m}var I=Yr(c,j),u=1,i=FC(r,i,N,2,I),c=I;continue}return[0,c,i]}}Fr(_h,[0,RC,HX,LC]);function MC(x,r,e,t){return[0,t,[5,[0,e,x,r,0]]]}Fr(PX,[0,function(x,r){for(var e=r;;){var t=x0(0,function(L){var N0=RX(L)!==0?1:0;return[0,N0,LX(e4(0,L))]},x),u=t[2],i=u[2],c=u[1],v=t[1];x:if(q(x)===99&&i[0]===0&&i[1][2][0]===12){Ux(x,2);break x}let Y0=v;var a=function(L,N0){for(var S0=L,K0=N0;;){var A0=q(x);x:if(typeof A0!="number"&&A0[0]===4){var $0=A0[3];if(P($0,Nt)&&P($0,$R))break x;if(A2(x)){E0(x);var ex=o1(x,K0);r:{if(S0){var xx=S0[1],tx=xx[2],z0=S0[2],px=xx[3],sx=tx[1],Q=xx[1];if(AX(tx[2],z30)){var b0=MC(Q,ex,sx,Yr(px,Y0)),U=z0;break r}}var b0=ex,U=S0}var h0=b0[1];if(br($0,$R))var _0=ga(x),m0=_0[1],Px=[0,[0,Yr(h0,m0),[35,[0,b0,[0,m0,_0],0]]]];else if(q(x)===28){var T0=Yr(h0,V0(x));E0(x);var Px=[0,[0,T0,[2,[0,b0,0]]]]}else var X=ga(x),Gx=X[1],Px=[0,[0,Yr(h0,Gx),[3,[0,b0,[0,Gx,X],0]]]];var S0=U,K0=Px;continue}}return[0,S0,K0]}}(e,i),l=a[2],m=a[1],h=q(x);x:{r:if(typeof h=="number"){var T=h-17|0;if(1>>0){if(73>T)break r;switch(T-73|0){case 0:var b=K30;break;case 1:var b=J30;break;case 2:var b=G30;break;case 3:var b=W30;break;case 4:var b=V30;break;case 5:var b=$30;break;case 6:var b=Q30;break;case 7:var b=H30;break;case 8:var b=Z30;break;case 9:var b=xl0;break;case 10:var b=rl0;break;case 11:var b=el0;break;case 12:var b=tl0;break;case 13:var b=nl0;break;case 14:var b=ul0;break;case 15:var b=il0;break;case 16:var b=fl0;break;case 17:var b=cl0;break;case 18:var b=sl0;break;case 19:var b=al0;break;default:break r}var N=b}else var N=T?ol0:x[12]?0:vl0;var j=N;break x}var j=0}if(j!==0&&E0(x),!m&&!j)return l;if(j){var I=j[1],F=I[1],M=I[2],z=c&&(F===14?1:0);z&&q0(x,[0,v,37]);x:for(var B=o1(x,l),K=[0,F,M],n0=v,$=m;;){var H=K[2],t0=K[1];if(!$)break x;var c0=$[1],r0=c0[2],v0=$[2],a0=c0[3],g0=r0[1],i0=c0[1];if(!AX(r0[2],H))break;var s0=Yr(a0,n0),B=MC(i0,B,g0,s0),K=[0,t0,H],n0=s0,$=v0}var e=[0,[0,B,[0,t0,H],n0],$]}else for(var d0=o1(x,l),w0=v,M0=m;;){if(!M0)return[0,d0];var C0=M0[1],D0=M0[2],I0=C0[2][1],j0=C0[1],y0=Yr(C0[3],w0),d0=MC(j0,d0,I0,y0),w0=y0,M0=D0}}}]),Fr(IX,[0,function(x){var r=u0(x);J(x,99);for(var e=0;;){var t=q(x);x:if(typeof t=="number"){if(y2!==t&&mr!==t)break x;var u=ix(e),i=u0(x);J(x,y2);var c=q(x)===4?F2(x)[1]:L0(x);return[0,u,O2([0,r],[0,c],i,O)]}var v=q(x);x:{if(typeof v!="number"&&v[0]===4&&!P(v[2],qo)){var a=V0(x),l=u0(x);ys(x,Y30);var m=[1,[0,a,[0,Z([0,l],[0,L0(x)],O)]]];break x}var m=[0,ga(x)]}var h=[0,m,e];y2!==q(x)&&J(x,9);var e=h}}]);function TT0(x){var r=u0(x);J(x,12);var e=zt(x);return[0,e,Z([0,r],0,O)]}Fr(NX,[0,function(x,r){for(var e=r;;){var t=q(x);x:if(typeof t=="number"){if(t!==5&&mr!==t)break x;return ix(e)}var u=q(x);x:{if(typeof u=="number"&&u===12){var i=[1,x0(0,TT0,x)];break x}var i=[0,zt(x)]}var c=[0,i,e];q(x)!==5&&J(x,9);var e=c}}]),Fr(m4,[0,function(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,l=rC(0,t),m=d(X0[7],l),h=V0(t);J(t,7);var T=L0(t),b=Yr(u,h),N=Z(0,[0,T],O),j=[0,o1(t,i),[2,m],N],I=v?[28,[0,j,b,a]]:[23,j];return lo([0,c],[0,v],t,u,[0,[0,b,I]])},function(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,l=q(t);x:{if(typeof l=="number"&&l===14){var m=NB(t),h=m[1],T=t[30][1],b=m[2][1];if(T){var N=T[1];t[30][1]=[0,[0,N[1],[0,[0,b,h],N[2]]],T[2]]}else q0(t,[0,h,63]);var I=[1,m],F=h;break x}var j=a1(t),I=[0,j],F=j[1]}var M=Yr(u,F);x:if(i[0]===0&&i[1][2][0]===30&&I[0]===1){q0(t,[0,M,82]);break x}var z=[0,o1(t,i),I,0],B=v?[28,[0,z,M,a]]:[23,z];return lo([0,c],[0,v],t,u,[0,[0,M,B]])}]),Fr(jX,[0,function(x,r,e){for(var t=r,u=e;;){var i=d(X0[7],x),c=[0,i,u],v=q(x);if(typeof v=="number"&&v===1){V2(x,4);var a=q(x);if(typeof a!="number"&&a[0]===3){var l=a[1],m=l[5],h=l[1],T=l[3],b=l[2];E0(x),Z2(x);var N=[0,[0,h,[0,[0,T,b],m]],t];if(m){var j=ix(c);return[0,h,ix(N),j]}var t=N,u=c;continue}throw W0([0,Nr,U30],1)}p2(B30,x);var I=[0,i[1],X30],F=ix(c),M=ix([0,I,t]);return[0,i[1],M,F]}}]),Fr(CX,[0,function(x,r){for(var e=r;;){var t=e[2],u=e[1],i=q(x);x:if(typeof i=="number"){if(13<=i){if(mr!==i)break x}else{if(7>i)break x;switch(i-7|0){case 0:break;case 2:var c=V0(x);E0(x);var e=[0,[0,[2,c],u],t];continue;case 5:var v=u0(x),a=x0(0,function(n0){E0(n0);var $=h4(n0);return $[0]===0?[0,$[1],ln]:[0,$[1],$[2]]},x),l=a[2],m=l[2],h=a[1],T=l[1],b=[1,[0,h,[0,T,Z([0,v],0,O)]]],N=q(x)===7?1:0;r:{if(!N&&xr(1,x)===7){var j=[0,m[1],[0,[0,h,16],m[2]]];break r}var j=m}1-N&&J(x,9);var e=[0,[0,b,u],PC(j,t)];continue;default:break x}}var I=bX(t);return[0,ix(u),I]}var F=h4(x);if(F[0]===0)var M=ln,z=F[1];else var M=F[2],z=F[1];q(x)!==7&&J(x,9);var e=[0,[0,[0,z],u],PC(M,t)]}}]),Fr(IC,[0,function(x){return function(r){x:if(typeof r=="number"){if(61<=r){var e=r-62|0;if(49>=e>>>0){var t=e-15|0;if(9>>0)break x;switch(t){case 0:case 1:case 3:case 9:break;default:break x}}}else if(7<=r){if(r!==55)break x}else if(5>r)break x;return 0}throw W0(gs,1)}},function(x){var r=q(x);if(typeof r=="number"&&!r){var e=p(X0[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,d(X0[10],x)],0]}]),Fr(OX,[0,function(x,r){for(var e=x;;){var t=q(r);if(typeof t=="number"&&t===9){E0(r);var e=[0,zt(r),e];continue}return[29,[0,ix(e),0]]}}]);function ET0(x){var r=u0(x);E0(x);var e=Z([0,r],0,O),t=NC(x),u=N1(x)?u4(x):ch(x);return[0,p(u[2],t,function(i,c){return p(Bx(i,jt,95),i,c)}),e]}function qC(x){if(!x[28][4])return 0;for(var r=0;;){var e=q(x);if(typeof e=="number"&&e===13){var r=[0,x0(0,ET0,x),r];continue}return ix(r)}}function po(x,r){var e=x?x[1]:0,t=u0(r),u=q(r);if(typeof u=="number")switch(u){case 6:var i=x0(0,function(s0){var d0=u0(s0);J(s0,6);var w0=e4(0,s0),M0=d(X0[10],w0);return J(s0,7),[0,M0,Z([0,d0],[0,L0(s0)],O)]},r),c=i[1];return[0,c,[5,[0,c,i[2]]]];case 14:if(!e){var v=x0(0,function(s0){return E0(s0),[3,a1(s0)]},r),a=v[1],l=v[2];return q0(r,[0,a,63]),[0,a,l]}var m=NB(r),h=r[30][1],T=m[2][1],b=m[1];if(h){var N=h[1],j=h[2],I=N[2],F=[0,[0,I1[4].call(null,T,N[1]),I],j];r[30][1]=F}else Tx(Hc0);return[0,b,[4,m]]}else switch(u[0]){case 0:var M=u[2],z=u[1],B=V0(r),K=CC(r,z,M);return[0,B,[1,[0,B,[0,K,M,Z([0,t],[0,L0(r)],O)]]]];case 1:var n0=u[2],$=u[1],H=V0(r),t0=OC(r,$,n0);return[0,H,[2,[0,H,[0,t0,n0,Z([0,t],[0,L0(r)],O)]]]];case 2:var c0=u[1],r0=c0[4],v0=c0[3],a0=c0[2],g0=c0[1];return r0&&Ie(r,76),J(r,[2,[0,g0,a0,v0,r0]]),[0,g0,[0,[0,g0,[0,a0,v0,Z([0,t],[0,L0(r)],O)]]]]}var i0=a1(r);return[0,i0[1],[3,i0]]}function Eh(x,r,e){var t=0,u=Fv(x),i=u[1],c=u[2],v=po([0,r],x),a=v[1],l=gn(x,v[2]);return[0,l,x0(0,function(m){var h=Sv(1,m),T=x0(0,function(B){var K=pl(0,0)(B),n0=0,$=q(B)===87?K:i4(B,K);x:if(e){var H=$[2];r:{if(!H[1]){if(!H[2]&&!H[3])break r;q0(B,[0,a,23]);break x}q0(B,[0,a,24])}}else{var t0=$[2];r:if(t0[1])q0(B,[0,a,66]);else{var c0=t0[2];if(c0&&!c0[2]&&!t0[3])break r;t0[3]?q0(B,[0,a,65]):q0(B,[0,a,65])}}return[0,n0,$,al(B,_C(B))]},h),b=T[2],N=b[2],j=b[3],I=b[1],F=T[1],M=l4(h,t,i,0,jv(N)),z=M[1];return ll(h,M[2],0,N),[0,0,N,z,t,i,1,0,j,I,Z([0,c],0,O),F]},x)]}function ZX(x){var r=h4(x);return r[0]===0?[0,r[1],ln]:[0,r[1],r[2]]}function xY(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return q0(x,[0,t,47]),[0,t,[14,u]];case 1:var i=r[1],c=i[1],v=i[2];return q0(x,[0,c,47]),[0,c,[17,v]];case 2:var a=r[1],l=a[1],m=a[2];return q0(x,[0,l,47]),[0,l,[18,m]];case 3:var h=r[1],T=h[2][1],b=h[1];return eh(T)?q0(x,[0,b,95]):fl(T)&&ht(x,[0,b,80]),[0,b,[10,h]];case 4:return Tx(Xl0);default:var N=r[1][2][1];return q0(x,[0,N[1],7]),N}}function rY(x,r,e){function t(i){var c=Sv(1,i),v=x0(0,function(j){var I=Q1(j,He(j)),F=pl(x,r)(j),M=q(j)===87?F:i4(j,F);return[0,I,M,al(j,_C(j))]},c),a=v[2],l=a[2],m=a[3],h=a[1],T=v[1],b=l4(c,x,r,0,jv(l)),N=b[1];return ll(c,b[2],0,l),[0,0,l,N,x,r,1,0,m,h,Z([0,e],0,O),T]}var u=0;return function(i){return x0(u,t,i)}}function eY(x){return J(x,87),ZX(x)}function UC(x,r,e,t,u,i){var c=x0([0,r],function(a){if(!t&&!u){var l=q(a);x:if(typeof l=="number"){if(87<=l){if(l!==99){if(88<=l)break x;var m=eY(a);return[0,[0,e,m[1],0],m[2]]}}else{if(l===83){if(e[0]===3)var h=e[1],T=V0(a),b=x0([0,h[1]],function(F){var M=u0(F);J(F,83);var z=L0(F),B=p(X0[19],F,[0,h[1],[10,h]]),K=d(X0[10],F);return[4,[0,0,B,K,Z([0,M],[0,z],O)]]},a),N=[0,b,[0,[0,[0,T,[26,P5(Bl0)]],0],0]];else var N=eY(a);return[0,[0,e,N[1],1],N[2]]}if(10<=l)break x;switch(l){case 4:break;case 1:case 9:return[0,[0,e,xY(a,e),1],ln];default:break x}}var j=gn(a,e);return[0,[1,j,rY(t,u,i)(a)],ln]}return[0,[0,e,xY(a,e),1],ln]}var I=gn(a,e);return[0,[1,I,rY(t,u,i)(a)],ln]},x),v=c[2];return[0,[0,[0,c[1],v[1]]],v[2]]}function ST0(x){if(q(x)===12){var r=u0(x),e=x0(0,function(d0){return J(d0,12),ZX(d0)},x),t=e[2],u=t[2],i=t[1],c=e[1];return[0,[1,[0,c,[0,i,Z([0,r],0,O)]]],u]}var v=V0(x),a=xr(1,x);x:{r:if(typeof a=="number"){if(87<=a){if(a!==99&&88<=a)break r}else if(a!==83){if(10<=a)break r;switch(a){case 1:case 4:case 9:break;default:break r}}var m=0,h=0;break x}var l=gh(x),m=l[2],h=l[1]}var T=Fv(x),b=T[1],N=Mx(m,T[2]),j=q(x);if(!h&&!b&&typeof j!="number"&&j[0]===4){var I=j[3];if(!P(I,Bo)){var F=u0(x),M=po(0,x)[2],z=q(x);x:if(typeof z=="number"){if(87<=z){if(z!==99&&88<=z)break x}else if(z!==83){if(10<=z)break x;switch(z){case 1:case 4:case 9:break;default:break x}}return UC(x,v,M,0,0,0)}gn(x,M);var B=x0([0,v],function(d0){return Eh(d0,0,1)},x),K=B[2],n0=K[2],$=K[1],H=B[1];return[0,[0,[0,H,[2,$,n0,Z([0,F],0,O)]]],ln]}if(!P(I,T3)){var t0=u0(x),c0=po(0,x)[2],r0=q(x);x:if(typeof r0=="number"){if(87<=r0){if(r0!==99&&88<=r0)break x}else if(r0!==83){if(10<=r0)break x;switch(r0){case 1:case 4:case 9:break;default:break x}}return UC(x,v,c0,0,0,0)}gn(x,c0);var v0=x0([0,v],function(d0){return Eh(d0,0,0)},x),a0=v0[2],g0=a0[2],i0=a0[1],s0=v0[1];return[0,[0,[0,s0,[3,i0,g0,Z([0,t0],0,O)]]],ln]}}return UC(x,v,po(0,x)[2],h,b,N)}function Sh(x,r,e,t){var u=e[2][1],i=e[1];if(br(u,Ro))return q0(x,[0,i,[15,u,0,RL===t?1:0,1]]),r;x:{r:{e:{for(var c=r;;){if(typeof c=="number")break r;if(c[0]===0)break e;var v=fx(u,c[2]),a=c[5],l=c[4],m=c[3];if(v===0)break;var h=0<=v?a:l,c=h}var b=[0,m];break x}var T=c[2];if(fx(u,c[1])===0){var b=[0,T];break x}var b=0;break x}var b=0}if(!b)return vh(u,t,r);var N=b[1];x:{r:if(typeof t=="number"){if(jA===t){if(typeof N!="number"||KI!==N)break r}else if(KI!==t||typeof N!="number"||jA!==N)break r;break x}q0(x,[0,i,[1,u]])}return vh(u,yR,r)}function tY(x,r){return x0(0,function(e){var t=r?u0(e):0;J(e,53);for(var u=0;;){var i=[0,x0(0,function(a){var l=ws(a),m=q(a)===99?p(F2(a)[2],l,function(h,T){return p(Bx(h,C3,96),h,T)}):l;return[0,m,lX(a)]},e),u],c=q(e);if(typeof c=="number"&&c===9){J(e,9);var u=i;continue}var v=ix(i);return[0,v,Z([0,t],0,O)]}},x)}function BC(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}}function XC(x,r){if(r)return q0(x,[0,r[1][1],K2])}function YC(x,r){if(r)return q0(x,[0,r[1],12])}function nY(x,r,e,t,u,i,c,v){var a=x0([0,r],function(j){var I=wC(j),F=q(j);x:if(i){if(typeof F=="number"&&F===83){Ux(j,13),E0(j);var M=0;break x}var M=0}else{if(typeof F=="number"&&F===83){E0(j);var z=Sv(1,j),M=[0,d(X0[7],z)];break x}var M=1}var B=q(j);x:{if(typeof B=="number"&&9>B)switch(B){case 8:E0(j);var K=q(j);r:{e:if(typeof K=="number"){if(K!==1&&mr!==K)break e;var n0=L0(j);break r}var n0=N1(j)?ao(j):0}var v0=[0,t,I,M,n0];break x;case 4:case 6:p2(0,j);var v0=[0,t,I,M,0];break x}var $=q(j);r:{e:if(typeof $=="number"){if($!==1&&mr!==$)break e;var H=[0,,function(d0,w0){return d0}];break r}var H=N1(j)?u4(j):ch(j)}if(typeof M=="number")if(I[0]===0)var t0=M,c0=I,r0=p(H[2],t,function(s0,d0){return p(Bx(s0,ZR,99),s0,d0)});else var t0=M,c0=[1,p(H[2],I[1],function(s0,d0){return p(Bx(s0,kA,y2),s0,d0)})],r0=t;else var t0=[0,p(H[2],M[1],function(s0,d0){return p(Bx(s0,jt,fe),s0,d0)})],c0=I,r0=t;var v0=[0,r0,c0,t0,0]}var a0=v0[3],g0=v0[2],i0=v0[1];return[0,i0,g0,a0,Z([0,v],[0,v0[4]],O)]},x),l=a[2],m=l[4],h=l[3],T=l[2],b=l[1],N=a[1];return b[0]===4?[2,[0,N,[0,b[1],h,T,u,c,e,m]]]:[1,[0,N,[0,b,h,T,u,c,e,m]]]}function zC(x,r,e,t,u,i,c,v,a,l){for(;;){var m=q(x);x:if(typeof m=="number"){var h=m-1|0;if(7>>0){var T=h-82|0;if(4>>0)break x;switch(T){case 3:p2(0,x),E0(x);continue;case 0:case 4:break;default:break x}}else if(5>=h-1>>>0)break x;if(!u&&!i)return nY(x,r,e,t,c,v,a,l)}var b=q(x);x:{if(typeof b=="number"&&(b===4||b===99)){var N=0;break x}var N=sl(x)?1:0}if(N)return nY(x,r,e,t,c,v,a,l);YC(x,v),XC(x,a);var j=BC(t);x:{if(c){if(j){var I=j[1],F=I[1];if(!P(I[2],za)){q0(x,[0,F,[15,Dl0,c,1,0]]);var B=Sv(1,x),K=1;break x}}}else if(j){var M=j[1],z=M[1];if(!P(M[2],Ro)){u&&q0(x,[0,z,9]),i&&q0(x,[0,z,10]);var B=Sv(2,x),K=0;break x}}var B=Sv(1,x),K=1}var n0=gn(B,t),$=x0(0,function(t0){var c0=x0(0,function(w0){var M0=Q1(w0,He(w0)),C0=pl(u,i)(w0),D0=q(w0)===87?C0:i4(w0,C0),I0=D0[2],j0=I0[1];x:{if(j0){var y0=j0[1][1],Y0=D0[1];if(K===0){q0(w0,[0,y0,87]);var L=[0,Y0,[0,0,I0[2],I0[3],I0[4]]];break x}}var L=D0}return[0,M0,L,al(w0,_C(w0))]},t0),r0=c0[2],v0=r0[2],a0=r0[3],g0=r0[1],i0=c0[1],s0=l4(t0,u,i,0,jv(v0)),d0=s0[1];return ll(t0,s0[2],0,v0),[0,0,v0,d0,u,i,1,0,a0,g0,0,i0]},B),H=[0,K,n0,$,c,e,Z([0,l],0,O)];return[0,[0,Yr(r,$[1]),H]]}}function KC(x,r){var e=xr(x,r);x:if(typeof e=="number"){if(87<=e){if(e!==99&&88<=e)break x}else if(e!==83){if(9<=e)break x;switch(e){case 1:case 4:case 8:break;default:break x}}return 1}return 0}var AT0=0;function PT0(x,r,e,t){var u=V0(x),i=q(x);x:{if(typeof i=="number")switch(i){case 104:var c=u0(x);E0(x);var l=[0,[0,u,[0,0,Z([0,c],0,O)]]];break x;case 105:var v=u0(x);E0(x);var l=[0,[0,u,[0,1,Z([0,v],0,O)]]];break x}else if(i[0]===4&&!P(i[3],Zo)&&r){var a=u0(x);E0(x);var l=[0,[0,u,[0,2,Z([0,a],0,O)]]];break x}var l=0}x:if(l){var m=l[1][1];if(!e&&!t)break x;return q0(x,[0,m,K2]),0}return l}var IT0=0;function uY(x){return KC(IT0,x)}function NT0(x){var r=V0(x),e=qC(x),t=q(x);x:{if(typeof t=="number"&&t===61&&!KC(1,x)){var u=[0,V0(x)],i=u0(x);E0(x);var c=i,v=u;break x}var c=0,v=0}var a=q(x);x:if(typeof a=="number"&&2>=a+tR>>>0&&ya(1,x)){r:{if(typeof a=="number"){var l=a+tR|0;if(2>=l>>>0){switch(l){case 0:var m=XO;break;case 1:var m=s6;break;default:var m=Bl}var h=m;break r}}var h=Tx(Fl0)}Ux(x,[24,h]),E0(x);break x}var T=q(x)===43?1:0;if(T){var b=xr(1,x);x:{r:if(typeof b=="number"){if(88<=b){if(b!==99&&mr!==b)break r}else{var N=b-9|0;if(77>>0){if(78>N)switch(N+9|0){case 1:case 4:case 8:break;default:break r}}else if(N!==74)break r}var j=0;break x}var j=1}var I=j}else var I=T;if(I){var F=u0(x);E0(x);var M=F}else var M=0;var z=q(x)===65?1:0;if(z)var B=1-KC(1,x),K=B&&1-Iv(1,x);else var K=z;if(K){var n0=u0(x);E0(x);var $=n0}else var $=0;var H=Fv(x),t0=H[1],c0=H[2],r0=ya(1,x),v0=r0||(xr(1,x)===6?1:0),a0=PT0(x,v0,K,t0);x:{if(!t0&&a0){var g0=Fv(x),i0=g0[2],s0=g0[1];break x}var i0=c0,s0=t0}var d0=O6([0,c,[0,M,[0,$,[0,i0,0]]]]),w0=q(x);if(!K&&!s0&&typeof w0!="number"&&w0[0]===4){var M0=w0[3];if(!P(M0,Bo)){var C0=u0(x),D0=po(Ll0,x)[2];if(uY(x))return zC(x,r,e,D0,K,s0,I,v,a0,d0);YC(x,v),XC(x,a0),gn(x,D0);var I0=Mx(d0,C0),j0=x0([0,r],function(Gx){return Eh(Gx,1,1)},x),y0=j0[2],Y0=y0[1],L=y0[2],N0=j0[1],S0=BC(Y0);x:if(I){if(S0){var K0=S0[1],A0=K0[1];if(!P(K0[2],za)){q0(x,[0,A0,[15,Ul0,I,0,0]]);break x}}}else if(S0){var $0=S0[1],ex=$0[1];if(!P($0[2],Ro)){q0(x,[0,ex,8]);break x}}return[0,[0,N0,[0,2,Y0,L,I,e,Z([0,I0],0,O)]]]}if(!P(M0,T3)){var xx=u0(x),tx=po(Rl0,x)[2];if(uY(x))return zC(x,r,e,tx,K,s0,I,v,a0,d0);YC(x,v),XC(x,a0),gn(x,tx);var z0=Mx(d0,xx),px=x0([0,r],function(Gx){return Eh(Gx,1,0)},x),sx=px[2],Q=sx[1],b0=sx[2],U=px[1],h0=BC(Q);x:if(I){if(h0){var _0=h0[1],m0=_0[1];if(!P(_0[2],za)){q0(x,[0,m0,[15,ql0,I,0,0]]);break x}}}else if(h0){var T0=h0[1],X=T0[1];if(!P(T0[2],Ro)){q0(x,[0,X,8]);break x}}return[0,[0,U,[0,3,Q,b0,I,e,Z([0,z0],0,O)]]]}}return zC(x,r,e,po(Ml0,x)[2],K,s0,I,v,a0,d0)}function iY(x,r,e,t){var u=x?x[1]:0,i=ha(1,r),c=Mx(u,qC(i)),v=u0(i),a=q(i);x:if(typeof a!="number"&&a[0]===4&&!P(a[3],lA)){Ux(i,83),E0(i);break x}J(i,41);var l=Zj(1,i),m=q(l);x:{r:if(e&&typeof m=="number"){if(53<=m){if(m!==99&&54<=m)break r}else if(m!==42&&m)break r;var T=0;break x}if(dn(i))var h=p(X0[13],0,l),T=[0,p(F2(i)[2],h,function($,H){return p(Bx($,C3,sn),$,H)})];else{_B(i,Nl0);var T=[0,[0,V0(i),jl0]]}}var b=He(i);if(b)var N=b[1],j=[0,p(F2(i)[2],N,function($,H){return p(Bx($,oT,g1),$,H)})];else var j=0;var I=u0(i);if(u2(i,42))var F=x0(0,function($){var H=NC(Qj(0,$)),t0=q($)===99?p(F2($)[2],H,function(r0,v0){return p(Bx(r0,jt,97),r0,v0)}):H,c0=lX($);return[0,t0,c0,Z([0,I],0,O)]},i),M=F[1],z=F[2],B=[0,[0,M,p(F2(i)[2],z,function($,H){return H0(Bx($,-663447790,98),$,M,H)})]];else var B=0;if(q(i)===53){1-A2(i)&&Ux(i,Je);var K=[0,PB(i,tY(i,1))]}else var K=0;var n0=x0(0,function($){var H=u0($);if(!u2($,0))return yn($,0),Ol0;$[30][1]=[0,[0,I1[1],0],$[30][1]];for(var t0=0,c0=AT0,r0=0;;){var v0=q($);if(typeof v0=="number"){var a0=v0-2|0;if(ce>>0){if(Te>=a0+1>>>0)break}else if(a0===6){J($,8);continue}}var g0=NT0($);switch(g0[0]){case 0:var i0=g0[1],s0=i0[2],d0=i0[1];switch(s0[1]){case 0:if(s0[4])var xx=c0,tx=t0;else{t0&&q0($,[0,d0,15]);var xx=c0,tx=1}break;case 1:var w0=s0[2],M0=w0[0]===4?Sh($,c0,w0[1],RL):c0,xx=M0,tx=t0;break;case 2:var C0=s0[2],D0=C0[0]===4?Sh($,c0,C0[1],jA):c0,xx=D0,tx=t0;break;default:var I0=s0[2],j0=I0[0]===4?Sh($,c0,I0[1],KI):c0,xx=j0,tx=t0}break;case 1:var y0=g0[1][2],Y0=y0[4],L=y0[1];switch(L[0]){case 4:Tx(Cl0);break;case 0:case 3:var N0=L[1],S0=N0[2][1],K0=br(S0,Ro),A0=N0[1];if(K0)var ex=K0;else var $0=br(S0,za),ex=$0&&Y0;ex&&q0($,[0,A0,[15,S0,Y0,0,0]]);break}var xx=c0,tx=t0;break;default:var xx=Sh($,c0,g0[1][2][1],yR),tx=t0}var t0=tx,c0=xx,r0=[0,g0,r0]}function z0(Kr,S){return D6(function(G){return 1-I1[3].call(null,G[1],Kr)},S)}var px=ix(r0),sx=$[30][1];if(sx){var Q=sx[1],b0=Q[1];if(sx[2]){var U=sx[2],h0=z0(b0,Q[2]),_0=C6(U),m0=_0[2],T0=_0[1],X=KM(U),Gx=[0,[0,T0,Mx(m0,h0)],X];$[30][1]=Gx}else b1(function(Kr){return q0($,[0,Kr[2],[25,Kr[1]]])},z0(b0,Q[2])),$[30][1]=0}else Tx(Zc0);J($,1);var Px=q($);x:{r:if(!t){if(typeof Px=="number"&&(Px===1||mr===Px))break r;if(N1($)){var G0=ao($);break x}var G0=0;break x}var G0=L0($)}return[0,px,Z([0,H],[0,G0],O)]},i);return[0,T,n0,j,B,K,c,Z([0,v],0,O)]}function Ah(x,r){return x0(0,function(e){return[2,iY([0,r],e,e[7],0)]},x)}function jT0(x){return[7,iY(0,x,1,1)]}var CT0=0,fY=OB(X0);function cY(x){var r=p4(x);x:if(x[5])Nv(x,r[1]);else{var e=r[2];r:if(e[0]===27){var t=e[1],u=r[1];if(t[4])q0(x,[0,u,4]);else{if(!t[5])break r;q0(x,[0,u,22])}break x}}return r}function Ph(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Ie(x,76);var c=u0(x);return J(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,Z([0,c],[0,L0(x)],O)]]}function x1(x,r,e){var t=x?x[1]:hv0,u=r?r[1]:1,i=q(e);if(typeof i=="number"){var c=i-2|0;if(ce>>0){if(Te>=c+1>>>0)return[1,[0,L0(e),function(a,l){return a}]]}else if(c===6){E0(e);var v=q(e);x:if(typeof v=="number"){if(v!==1&&mr!==v)break x;return[0,L0(e)]}return N1(e)?[0,ao(e)]:dv0}}return N1(e)?[1,u4(e)]:(u&&p2([0,t],e),yv0)}function wa(x){var r=q(x);x:if(typeof r=="number"){if(r!==1&&mr!==r)break x;return[0,L0(x),function(e,t){return e}]}return N1(x)?u4(x):ch(x)}function JC(x,r,e){var t=x1(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=ix(e);if(i)var c=i[2],v=ix([0,p(u,i[1],function(a,l){return H0(Bx(a,634872468,66),a,x,l)}),c]);else var v=0;return[0,0,v]}var sY=[],aY=[],oY=[];function vY(x,r,e){var t=e[2][1],u=e[1];if(!(t&&!t[1][2][2]&&!t[2]))return q0(x,[0,u,r])}function GC(x,r){if(!x[5]&&f4(r))return Nv(x,r[1])}function lY(x){var r=so(x)?cY(x):d(X0[2],x),e=1-x[5],t=e&&f4(r);return t&&Nv(x,r[1]),r}function OT0(x){var r=u0(x);J(x,44);var e=lY(x);return[0,e,Z([0,r],0,O)]}function DT0(x){var r=u0(x);J(x,16);var e=Mx(r,u0(x));J(x,4);var t=d(X0[7],x);J(x,5);var u=lY(x),i=q(x)===44?[0,x0(0,OT0,x)]:0;return[28,[0,t,u,i,Z([0,e],0,O)]]}var FT0=0;function pY(x){return x0(FT0,DT0,x)}function RT0(x){var r=d(X0[7],x),e=x1(cv0,0,x);if(e[0]===0)var t=r,u=e[1];else var t=p(e[1][2],r,function(h,T){return p(Bx(h,jt,72),h,T)}),u=0;if(x[20]){var i=t[2];if(i[0]===14){var c=i[1][2];x:{if(1>>0){if(e!==14)break x}else if(4>=e-1>>>0)break x;return L0(x)}return N1(x)?ao(x):0}function AY(x){return q(x)===1?0:[0,d(X0[7],x)]}function _a(x){var r=V0(x),e=q(x);x:{if(typeof e!="number"&&e[0]===8){var t=e[1];break x}p2(gl0,x);var t=wl0}var u=u0(x);E0(x);var i=q(x);x:{r:if(typeof i=="number"){var c=i+RR|0;if(73>>0){if(c!==77)break r}else if(71>=c-1>>>0)break r;var v=L0(x);break x}var v=qh(x)}return[0,r,[0,t,Z([0,u],[0,v],O)]]}function PY(x){var r=xr(1,x);if(typeof r=="number"){if(r===10)for(var e=x0(0,function(u){var i=[0,_a(u)];return J(u,10),[0,i,_a(u)]},x);;){var t=q(x);if(typeof t=="number"&&t===10){let u=e;var e=x0([0,e[1]],function(c){return J(c,10),[0,[1,u],_a(c)]},x);continue}return[2,e]}if(r===87)return[1,x0(0,function(u){var i=_a(u);return J(u,87),[0,i,_a(u)]},x)]}return[0,_a(x)]}function b4(x,r){return br(x[2][1],r[2][1])}function IY(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],c=e[2],v=u[2];x:{if(t[0]===0){var a=t[1];if(i[0]===0){var m=b4(a,i[1]);break x}}else{var l=t[1];if(i[0]!==0){var m=IY(l,i[1]);break x}}var m=0}return m&&b4(c,v)}function Uh(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return b4(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],c=u[2],v=i[2],a=b4(u[1],i[1]);return a&&b4(c,v)}break;default:var l=x[1];if(r[0]===2)return IY(l,r[1])}return 0}function QC(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}}var Rv=[];function NY(x,r){var e=u0(r),t=x0(0,function(d0){J(d0,99);var w0=q(d0);if(typeof w0=="number"){if(y2===w0)return E0(d0),hl0}else if(w0[0]===8){var M0=PY(d0);x:{if(A2(d0)&&q(d0)===99&&Je!==xr(1,d0)){var C0=fh(d0,0,jC);break x}var C0=0}for(var D0=0;;){var I0=q(d0);if(typeof I0=="number"){if(I0===0){var j0=u0(d0);V2(d0,0);var y0=x0(0,function(A0){J(A0,0),J(A0,12);var $0=d(X0[10],A0);return J(A0,1),$0},d0),Y0=y0[2],L=y0[1];Z2(d0);var D0=[0,[1,[0,L,[0,Y0,Z([0,j0],[0,qh(d0)],O)]]],D0];continue}}else if(I0[0]===8){var D0=[0,[0,x0(0,function(A0){var $0=xr(1,A0);x:{if(typeof $0=="number"&&$0===87){var ex=[1,x0(0,function(Px){var G0=_a(Px);return J(Px,87),[0,G0,_a(Px)]},A0)];break x}var ex=[0,_a(A0)]}var xx=q(A0);x:{if(typeof xx=="number"&&xx===83){J(A0,83);var tx=u0(A0),z0=q(A0);r:{if(typeof z0=="number"){if(z0===0){var px=u0(A0);V2(A0,0);var sx=x0(0,function(G0){J(G0,0);var Kr=AY(G0);return J(G0,1),Kr},A0),Q=sx[1],b0=sx[2];Z2(A0);var U=[0,b0,O2([0,px],[0,qh(A0)],0,O)];U[1]||q0(A0,[0,Q,46]);var T0=[0,[1,[0,Q,U]]];break r}}else if(z0[0]===10){var h0=z0[3],_0=z0[2],m0=z0[1];J(A0,z0);var T0=[0,[0,[0,m0,[0,_0,h0,Z([0,tx],[0,qh(A0)],O)]]]];break r}Ux(A0,35);var T0=[0,[0,[0,V0(A0),yl0]]]}var X=T0;break x}var X=0}return[0,ex,X]},d0)],D0];continue}var N0=ix(D0),S0=[0,Ma,[0,M0,C0,u2(d0,Je),N0]];return u2(d0,y2)?[0,S0]:(yn(d0,y2),[1,S0])}}return yn(d0,y2),dl0},r);if(Z2(r),d(Rv[3],t))var u=eE,i=x0(0,function(d0){return 0},r);else{V2(r,3);var c=d(Rv[4],t),v=H0(Rv[1],x,c,r),u=v[2],i=v[1]}var a=L0(r);x:{r:if(typeof u!="number"){var l=u[1];if(Ma===l){var m=u[2],h=m[2][1],T=t[2],b=m[1];if(T[0]===0){var N=T[1];if(typeof N=="number")q0(r,[0,QC(h),pl0]);else{var j=N[2][1];e:if(1-Uh(h,j)){if(x&&Uh(x[1],h)){var I=[21,d(Rv[2],j)];q0(r,[0,QC(j),I]);break e}var F=[13,d(Rv[2],j)];q0(r,[0,QC(h),F])}}}var M=b}else{if(tn!==l)break r;var z=u[2],B=t[2];if(B[0]===0){var K=B[1];typeof K!="number"&&q0(r,[0,z,[13,d(Rv[2],K[2][1])]])}var M=z}var n0=M;break x}var n0=t[1]}var $=t[2][1],H=t[1];if(typeof $=="number"){x:{r:{var t0=Z([0,e],[0,a],O);if(typeof u!="number"){var c0=u[1];if(Ma===c0)var r0=u[2][1];else{if(tn!==c0)break r;var r0=u[2]}var v0=r0;break x}}var v0=n0}var a0=[0,tn,[0,H,v0,i,t0]]}else{var g0=$[2];x:{var i0=Z([0,e],[0,a],O);if(typeof u!="number"&&Ma===u[1]){var s0=[0,u[2]];break x}var s0=0}var a0=[0,Ma,[0,[0,H,g0],s0,i,i0]]}return[0,Yr(t[1],n0),a0]}function jY(x,r){return V2(r,2),NY(x,r)}function BT0(x,r,e,t){for(var u=t;;){var i=il(e);if(u&&r){var c=u[1],v=c[2],a=r[1],l=u[2];x:{if(v[0]===0){var m=v[1],h=m[2];if(h){var T=h[1][2][1],b=1-Uh(m[1][2][1],T);if(b){var N=Uh(a,T);break x}var N=b;break x}}var N=0}if(N){var j=c[2];x:{if(j[0]===0){var I=j[1],F=I[2];if(F){var M=F[1],z=Yr(c[1],I[3][1]),B=[0,Ma,M],K=[0,z,[0,[0,I[1],0,I[3],I[4]]]];break x}}var B=eE,K=c}return Z2(e),[0,ix([0,K,l]),i,B]}}var n0=q(e);if(typeof n0=="number"){if(n0===99){V2(e,2);var $=q(e),H=xr(1,e);x:if(typeof $=="number"&&$===99&&typeof H=="number"){if(Je!==H&&mr!==H)break x;var t0=x0(0,function(z0){J(z0,99),J(z0,Je);var px=q(z0);if(typeof px=="number"){if(y2===px)return E0(z0),tn}else if(px[0]===8){var sx=PY(z0);return ih(z0,y2),[0,Ma,[0,sx]]}return yn(z0,y2),tn},e),c0=t0[2],r0=t0[1],v0=typeof c0=="number"?[0,tn,r0]:[0,Ma,[0,r0,c0[2]]],a0=e[24][1];r:{if(a0){var g0=a0[2];if(g0){var i0=g0[2];break r}}var i0=Tx(Jc0)}e[24][1]=i0;var s0=ul(e),d0=Z6(e[25][1],s0);return e[26][1]=d0,[0,ix(u),i,v0]}var w0=NY(r,e),M0=w0[2],C0=w0[1],D0=tn<=M0[1]?[0,C0,[1,M0[2]]]:[0,C0,[0,M0[2]]],u=[0,D0,u];continue}if(mr===n0)return p2(0,e),[0,ix(u),i,eE]}var I0=q(e);x:{if(typeof I0=="number"){if(I0===0){V2(e,0);var j0=x0(0,function(z0){J(z0,0);var px=q(z0);r:{if(typeof px=="number"&&px===12){var sx=u0(z0);J(z0,12);var Q=d(X0[10],z0),h0=[3,[0,Q,Z([0,sx],0,O)]];break r}var b0=AY(z0),U=b0?0:u0(z0),h0=[2,[0,b0,O2(0,0,U,O)]]}return J(z0,1),h0},e),y0=j0[2],Y0=j0[1];Z2(e);var ex=[0,Y0,y0];break x}}else if(I0[0]===9){var L=I0[3],N0=I0[2],S0=I0[1];J(e,I0);var ex=[0,S0,[4,[0,N0,L]]];break x}var K0=jY(r,e),A0=K0[2],$0=K0[1],ex=tn<=A0[1]?[0,$0,[1,A0[2]]]:[0,$0,[0,A0[2]]]}var u=[0,ex,u]}}function CY(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=qx(kl0,r[2][2][1]);return qx(e[2][1],t);default:var u=x[1][2],i=u[1],c=u[2],v=i[0]===0?i[1][2][1]:CY([2,i[1]]);return qx(v,qx(ml0,c[2][1]))}}Fr(Rv,[0,function(x,r,e){var t=V0(e),u=BT0(O,r,e,0),i=u[2],c=u[3],v=u[1],a=i?i[1]:t;return[0,[0,Yr(t,a),v],c]},CY,function(x){var r=x[2];if(r[0]!==0)return 1;var e=r[1];return typeof e=="number"?0:e[2][3]},function(x){var r=x[2][1];return typeof r=="number"?0:[0,r[2][1]]}]);function OY(x,r){var e=a1(r);return sh(x,r,e),e}var HC=[],DY=[],FY=[],RY=[];function XT0(x){var r=u0(x);J(x,60);var e=q(x)===8?L0(x):0,t=x1(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,Z([0,r],[0,Mx(e,u)],O)]]}var YT0=0;function zT0(x){var r=u0(x);J(x,38);var e=r4(1,x),t=d(X0[2],e),u=1-x[5],i=u&&f4(t);i&&Nv(x,t[1]);var c=L0(x);J(x,26);var v=L0(x);J(x,4);var a=d(X0[7],x);J(x,5);var l=q(x)===8?L0(x):0,m=x1(0,mv0,x),h=m[0]===0?Mx(l,m[1]):m[1][1];return[18,[0,t,a,Z([0,r],[0,Mx(c,Mx(v,h))],O)]]}var KT0=0;function JT0(x){var r=u0(x);J(x,40);var e=x[19],t=e&&u2(x,66),u=Mx(r,u0(x));J(x,4);var i=Z([0,u],0,O),c=q(x);x:{if(typeof c=="number"&&c===65){var v=1;break x}var v=0}var a=e4(1,x),l=q(a);x:{if(typeof l=="number"){if(25<=l){if(30>l)switch(l+E3|0){case 0:var m=x0(0,yX,a),h=m[2],T=h[3],b=h[1],N=m[1],t0=T,c0=[0,[1,[0,N,[0,b,0,Z([0,h[2]],0,O)]]]];break x;case 3:var j=x0(0,gX,a),I=j[2],F=I[3],M=I[1],z=j[1],t0=F,c0=[0,[1,[0,z,[0,M,2,Z([0,I[2]],0,O)]]]];break x;case 4:if(xr(1,a)!==17){var B=x0(0,wX,a),K=B[2],n0=K[3],$=K[1],H=B[1],t0=n0,c0=[0,[1,[0,H,[0,$,1,Z([0,K[2]],0,O)]]]];break x}break}}else if(l===8){var t0=0,c0=0;break x}}var t0=0,c0=[0,[0,d(X0[8],a)]]}var r0=q(x);if(typeof r0=="number"){if(r0===17){if(!c0)throw W0([0,Nr,kv0],1);var v0=c0[1];if(v0[0]===0)var a0=[1,AC(pv0,x,v0[1])];else{var g0=v0[1];vY(x,38,g0);var a0=[0,g0]}t?J(x,64):J(x,17);var i0=d(X0[7],x);J(x,5);var s0=r4(1,x),d0=d(X0[2],s0);return GC(x,d0),[25,[0,a0,i0,d0,0,i]]}if(r0===64){if(!c0)throw W0([0,Nr,lv0],1);var w0=c0[1];if(w0[0]===0){var M0=AC(vv0,x,w0[1]),C0=1-t,D0=C0&&v;x:if(D0){var I0=M0[2];if(I0[0]===2){var j0=I0[1][1],y0=j0[1];if(!P(j0[2][1],Ka)){q0(x,[0,y0,39]);break x}}}var Y0=[1,M0]}else{var L=w0[1];vY(x,39,L);var Y0=[0,L]}J(x,64);var N0=d(X0[10],x);J(x,5);var S0=r4(1,x),K0=d(X0[2],S0);return GC(x,K0),[26,[0,Y0,N0,K0,t,i]]}}if(b1(function(b0){return q0(x,b0)},t0),t?J(x,64):J(x,8),c0)var A0=c0[1],$0=A0[0]===0?[0,[1,o1(x,A0[1])]]:[0,[0,A0[1]]],ex=$0;else var ex=0;var xx=q(x);x:{if(typeof xx=="number"&&xx===8){var tx=0;break x}var tx=[0,d(X0[7],x)]}J(x,8);var z0=q(x);x:{if(typeof z0=="number"&&z0===5){var px=0;break x}var px=[0,d(X0[7],x)]}J(x,5);var sx=r4(1,x),Q=d(X0[2],sx);return GC(x,Q),[24,[0,ex,tx,px,Q,i]]}var GT0=0;function WT0(x){1-x[11]&&Ux(x,27);var r=u0(x),e=V0(x);J(x,19);var t=q(x)===8?L0(x):0;x:{if(q(x)!==8&&!sl(x)){var u=[0,d(X0[7],x)];break x}var u=0}var i=Yr(e,V0(x)),c=x1(0,0,x);x:{if(c[0]===0)var v=c[1];else{var a=c[1],l=a[1];if(u){var m=[0,p(a[2],u[1],function(j,I){return p(Bx(j,jt,67),j,I)})],h=t;break x}var v=l}var m=u,h=Mx(t,v)}return[33,[0,m,Z([0,r],[0,h],O),i]]}var VT0=0;function $T0(x){var r=u0(x);J(x,20),J(x,4);var e=d(X0[7],x);J(x,5),J(x,0);for(var t=ov0;;){var u=t[2],i=t[1],c=q(x);x:if(typeof c=="number"){if(c!==1&&mr!==c)break x;var v=ix(u);J(x,1);var a=wa(x)[1],l=e[1];return[34,[0,e,v,Z([0,r],[0,a],O),l]]}let h=i;var m=sC(0,function(b){var N=u0(b),j=q(b);x:{if(typeof j=="number"&&j===37){h&&Ux(b,53),J(b,37);var I=L0(b),F=0;break x}J(b,34);var I=0,F=[0,d(X0[7],b)]}var M=h||(F===0?1:0);J(b,87);var z=Mx(I,wa(b)[1]);function B(H){x:if(typeof H=="number"){var t0=H-1|0;if(33>>0){if(t0!==36)break x}else if(31>=t0-1>>>0)break x;return 1}return 0}var K=1,n0=b[9]===1?b:[0,b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],K,b[10],b[11],b[12],b[13],b[14],b[15],b[16],b[17],b[18],b[19],b[20],b[21],b[22],b[23],b[24],b[25],b[26],b[27],b[28],b[29],b[30],b[31]],$=p(X0[4],B,n0);return[0,[0,F,$,Z([0,N],[0,z],O)],M]},x),t=[0,m[2],[0,m[1],u]]}}var QT0=0;function HT0(x){var r=u0(x),e=V0(x);J(x,23),N1(x)&&q0(x,[0,e,54]);var t=d(X0[7],x),u=x1(0,0,x);if(u[0]===0)var i=t,c=u[1];else var i=p(u[1][2],t,function(v,a){return p(Bx(v,jt,68),v,a)}),c=0;return[35,[0,i,Z([0,r],[0,c],O)]]}var ZT0=0;function xE0(x){var r=u0(x);J(x,24);var e=d(X0[15],x),t=q(x)===35?p(F2(x)[2],e,function(b,N){var j=N[1];return[0,j,H0(Bx(b,zp,4),b,j,N[2])]}):e,u=q(x);x:{if(typeof u=="number"&&u===35){var i=[0,x0(0,function(N){var j=u0(N);J(N,35);var I=L0(N);if(q(N)===4){J(N,4);var F=[0,p(X0[18],N,67)];J(N,5);var M=F}else var M=0;var z=d(X0[15],N),B=q(N)===39?z:p(wa(N)[2],z,function(K,n0){var $=n0[1];return[0,$,H0(Bx(K,zp,69),K,$,n0[2])]});return[0,M,B,Z([0,j],[0,I],O)]},x)];break x}var i=0}var c=q(x);x:{if(typeof c=="number"&&c===39){J(x,39);var v=d(X0[15],x),a=v[1],l=v[2],m=[0,[0,a,p(wa(x)[2],l,function(N,j){return H0(Bx(N,zp,70),N,a,j)})]];break x}var m=0}var h=i===0?1:0,T=h&&(m===0?1:0);return T&&q0(x,[0,t[1],56]),[36,[0,t,i,m,Z([0,r],0,O)]]}var rE0=0;function eE0(x){var r=0,e=yX(x),t=e[3],u=e[2],i=JC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var tE0=0;function nE0(x){var r=2,e=gX(x),t=e[3],u=e[2],i=JC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var uE0=0;function iE0(x){var r=1,e=wX(x),t=e[3],u=e[2],i=JC(r,x,e[1]),c=i[2],v=i[1];return b1(function(a){return q0(x,a)},t),[39,[0,c,r,Z([0,u],[0,v],O)]]}var fE0=0;function cE0(x){var r=u0(x);J(x,26);var e=Mx(r,u0(x));J(x,4);var t=d(X0[7],x);J(x,5);var u=r4(1,x),i=d(X0[2],u),c=1-x[5],v=c&&f4(i);return v&&Nv(x,i[1]),[40,[0,t,i,Z([0,e],0,O)]]}var sE0=0;function aE0(x){var r=u0(x),e=d(X0[7],x),t=q(x),u=e[2];if(u[0]===10&&typeof t=="number"&&t===87){var i=u[1],c=i[2][1],v=e[1];J(x,87),I1[3].call(null,c,x[3])&&q0(x,[0,v,[23,sv0,c]]);var a=x[31],l=x[30],m=x[29],h=x[28],T=x[27],b=x[26],N=x[25],j=x[24],I=x[23],F=x[22],M=x[21],z=x[20],B=x[19],K=x[18],n0=x[17],$=x[16],H=x[15],t0=x[14],c0=x[13],r0=x[12],v0=x[11],a0=x[10],g0=x[9],i0=x[8],s0=x[7],d0=x[6],w0=x[5],M0=x[4],C0=I1[4].call(null,c,x[3]),D0=[0,x[1],x[2],C0,M0,w0,d0,s0,i0,g0,a0,v0,r0,c0,t0,H,$,n0,K,B,z,M,F,I,j,N,b,T,h,m,l,a],I0=so(D0)?cY(D0):d(X0[2],D0);return[31,[0,i,I0,Z([0,r],0,O)]]}var j0=x1(av0,0,x);if(j0[0]===0)var y0=e,Y0=j0[1];else var y0=p(j0[1][2],e,function(L,N0){return p(Bx(L,jt,71),L,N0)}),Y0=0;return[23,[0,y0,0,Z(0,[0,Y0],O)]]}var oE0=0;function vE0(x,r){var e=x?x[1]:0;1-A2(r)&&Ux(r,sn);var t=xr(1,r);if(typeof t=="number")switch(t){case 25:return Rh(0,r);case 28:return Rh(2,r);case 29:return Rh(1,r);case 41:return x0(0,function(b){var N=u0(b);return J(b,61),[6,VC(N,b)]},r);case 47:if(q(r)===51)return jh(r);break;case 49:if(r[28][2])return x0(0,function(b){var N=u0(b);return J(b,61),[8,fY[1].call(null,[0,N],b)]},r);break;case 50:if(e)return bY(r);break;case 54:return x0(0,function(b){var N=u0(b);return J(b,61),[11,Dh(N,b)]},r);case 62:var u=q(r);return typeof u=="number"&&u===51&&e?jh(r):x0(0,function(b){var N=u0(b);return J(b,61),[15,Ch(N,b)]},r);case 63:return x0(0,function(b){var N=u0(b);return J(b,61),[16,Oh(qo0,N,b)]},r);case 15:case 65:return yY(r)}else if(t[0]===4){var i=t[3];if(P(i,$s)){if(P(i,Vo)){if(!P(i,aR)){var c=V0(r),v=u0(r);J(r,61);var a=Mx(v,u0(r));return ys(r,zo0),q(r)===10?x0([0,c],function(b){var N=u0(b);J(b,10);var j=u0(b);ys(b,Jo0);var I=O6([0,a,[0,N,[0,j,[0,u0(b),0]]]]),F=Dv(b),M=x1(0,0,b);if(M[0]===0)var z=M[1],B=F;else var z=0,B=p(M[1][2],F,function(K,n0){return p(Bx(K,kA,89),K,n0)});return[13,[0,B,Z([0,I],[0,z],O)]]},r):x0([0,c],d(aY[1],a),r)}if(!P(i,hT)){var l=V0(r),m=u0(r);J(r,61);var h=Mx(m,u0(r));return ys(r,Ko0),x0([0,l],d(oY[1],h),r)}}else if(r[28][1])return yY(r)}else if(r[28][1])return x0(0,function(b){var N=u0(b);return J(b,61),[7,$C(N,b)]},r)}if(!e)return d(X0[2],r);var T=q(r);return typeof T=="number"&&T===51?jh(r):Rh(0,r)}var lE0=0;function LY(x,r,e){var t=oB(1,x),u=zN(HC[2],t,r,e,Yl0),i=u[4],c=u[3],v=u[2],a=oB(0,u[1]),l=ix(v);return b1(d(HC[1],a),l),[0,a,c,i]}function MY(x){var r=qC(x),e=q(x);if(typeof e=="number"){var t=e-50|0;if(11>=t>>>0)switch(t){case 0:var u=vB(1,ha(1,x)),i=u0(u),c=V0(u);J(u,50);var v=q(u);if(typeof v=="number"){if(54<=v){if(64>v)switch(v-54|0){case 0:return x0([0,c],function(T){1-A2(T)&&Ux(T,Be);var b=0,N=x0(0,function(I){return Dh(b,I)},T),j=[0,N[1],[30,N[2]]];return[22,[0,[0,j],0,0,0,Z([0,i],0,O)]]},u);case 8:if(xr(1,u)!==0)return x0([0,c],function(T){1-A2(T)&&Ux(T,Be);var b=xr(1,T);if(typeof b=="number"){if(b===49)return Ux(T,17),J(T,62),[22,[0,0,0,0,0,Z([0,i],0,O)]];if(K2===b){J(T,62);var N=V0(T);J(T,K2);var j=w4(T),I=j[1];return[22,[0,0,[0,[1,[0,N,0]]],[0,I],0,Z([0,i],[0,j[2]],O)]]}}var F=0,M=x0(0,function(B){return Ch(F,B)},T),z=[0,M[1],[37,M[2]]];return[22,[0,[0,z],0,0,0,Z([0,i],0,O)]]},u);break;case 9:return x0([0,c],function(T){var b=x0(0,function(j){return Oh(0,0,j)},T),N=[0,b[1],[38,b[2]]];return[22,[0,[0,N],0,0,0,Z([0,i],0,O)]]},u)}}else if(v===37)return x0([0,c],function(T){var b=Mx(i,u0(T)),N=x0(0,function(n0){return J(n0,37)},T)[1],j=lB(1,T);x:{if(!so(j)&&!nh(j)){if(t4(j)){var B=0,K=[0,Ah(j,r)];break x}if(q(j)===49){var B=0,K=[0,_X(0)(j)];break x}if(uC(j)){var B=0,K=[0,SC(j)];break x}var I=d(X0[10],j),F=x1(0,0,j);if(F[0]===0)var M=F[1],z=I;else var M=0,z=p(F[1][2],I,function(H,t0){return p(Bx(H,jt,91),H,t0)});var B=M,K=[1,z];break x}var B=0,K=[0,p4(j)]}return[21,[0,N,K,Z([0,b],[0,B],O)]]},u)}if(t4(u))return x0([0,c],function(T){var b=Ah(T,r);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);if(!so(u)&&!nh(u)){if(typeof v=="number"){var a=v+E3|0;if(4>>0){if(a===24&&u[28][2])return x0([0,c],function(T){var b=p(X0[3],[0,r],T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u)}else if(1>>0)return x0([0,c],function(T){var b=p(X0[3],[0,r],T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u)}if(uC(u))return x0([0,c],function(T){var b=SC(T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);if(typeof v=="number"&&K2===v)return x0([0,c],function(T){var b=V0(T);J(T,K2);var N=q(T);x:{if(typeof N!="number"&&N[0]===4&&!P(N[3],Nt)){E0(T);var j=[0,a1(T)];break x}var j=0}var I=w4(T),F=I[1];return[22,[0,0,[0,[1,[0,b,j]]],[0,F],1,Z([0,i],[0,I[2]],O)]]},u);var l=u2(u,62)?0:1;return u2(u,0)?x0([0,c],function(T){var b=wY(0,T,0);J(T,1);var N=q(T);x:{if(typeof N!="number"&&N[0]===4&&!P(N[3],o6)){var j=w4(T),M=j[2],z=[0,j[1]];break x}_Y(T,b);var I=x1(0,0,T),F=I[0]===0?I[1]:I[1][1],M=F,z=0}return[22,[0,0,[0,[0,b]],z,l,Z([0,i],[0,M],O)]]},u):(p2(Qo0,u),p(X0[3],[0,r],u))}return x0([0,c],function(T){uh(T)(r);var b=p4(T);return[22,[0,[0,b],0,0,1,Z([0,i],0,O)]]},u);case 1:uh(x)(r);var m=xr(1,x);x:{r:if(typeof m=="number"){if(m!==4&&m!==10)break r;var h=d4(x);break x}var h=jh(x)}return h;case 11:if(xr(1,x)===50)return uh(x)(r),bY(x);break}}return Bh([0,r],x)}function qY(x,r){return H0(DY[1],r,x,0)}function UY(x,r){var e=LY(r,x,function(i){return Bh(0,i)}),t=e[3],u=e[2];return[0,m1(function(i,c){return[0,c,i]},ZC(x,e[1]),u),t]}function ZC(x,r){return H0(FY[1],r,x,0)}function Bh(x,r){var e=x?x[1]:0;1-t4(r)&&uh(r)(e);var t=q(r);if(typeof t=="number"){if(t===28)return x0(uE0,nE0,r);if(t===29)return x0(fE0,iE0,r)}if(!so(r)&&!nh(r)){if(t4(r))return Ah(r,e);if(typeof t=="number"){var u=t-49|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return _X(0)(r);break;case 5:if(!gB(1,r))return d4(r);var i=0,c=x0(0,function(T){return Dh(i,T)},r);return[0,c[1],[30,c[2]]];case 12:return vE0(0,r);case 13:if(ya(1,r)&&!yB(1,r)){var v=0,a=x0(0,function(T){return Ch(v,T)},r);return[0,a[1],[37,a[2]]]}return d(X0[2],r);case 14:var l=xr(1,r);if(typeof l=="number"&&l===62){var m=0,h=x0(0,function(T){return Oh(Uo0,m,T)},r);return[0,h[1],[38,h[2]]]}return d(X0[2],r)}}return uC(r)?SC(r):BY(r)}return p4(r)}function BY(x){for(;;){var r=q(x);if(typeof r=="number"&&tv>r)switch(r){case 0:var e=d(X0[15],x),t=e[1],u=e[2];return[0,t,[0,p(wa(x)[2],u,function(j0,y0){return H0(Bx(j0,zp,77),j0,t,y0)})]];case 8:var i=V0(x),c=u0(x);return J(x,8),[0,i,[19,[0,Z([0,c],[0,wa(x)[1]],O)]]];case 16:return pY(x);case 19:return x0(VT0,WT0,x);case 20:return x0(QT0,$T0,x);case 21:if(x[28][3]&&!Iv(1,x)&&xr(1,x)===4){var v=u0(x),a=V0(x),l=p(X0[13],0,x),m=Th(x),h=m[2],T=m[1];if(!N1(x)&&q(x)===0){var b=h[1];if(b){var N=b[1];if(N[0]===0&&!b[2])return dY(x,a,v,N[1])}return q0(x,[0,T,49]),dY(x,a,v,[0,T,Ro0])}var j=[0,l[1],[10,l]],I=Yr(a,T),F=o1(x,lo(Mo0,Lo0,x,a,[0,[0,I,[6,[0,j,0,[0,T,h],Z([0,v],0,O)]]]]));return x0([0,a],function(j0){var y0=x1(Fo0,0,j0);if(y0[0]===0)var Y0=F,L=y0[1];else var Y0=p(y0[1][2],F,function(N0,S0){return p(Bx(N0,jt,76),N0,S0)}),L=0;return[23,[0,Y0,0,Z(0,[0,L],O)]]},x)}break;case 23:return x0(ZT0,HT0,x);case 24:return x0(rE0,xE0,x);case 25:return x0(tE0,eE0,x);case 26:return x0(sE0,cE0,x);case 27:var M=x0(0,function(j0){var y0=u0(j0);J(j0,27);var Y0=Mx(y0,u0(j0));J(j0,4);var L=d(X0[7],j0);J(j0,5);var N0=d(X0[2],j0),S0=1-j0[5],K0=S0&&f4(N0);return K0&&Nv(j0,N0[1]),[41,[0,L,N0,Z([0,Y0],0,O)]]},x),z=M[1],B=M[2];return ht(x,[0,z,74]),[0,z,B];case 33:var K=u0(x),n0=x0(0,function(j0){J(j0,33);x:{if(q(j0)!==8&&!sl(j0)){var y0=p(X0[13],0,j0),Y0=y0[2][1],L=y0[1];1-I1[3].call(null,Y0,j0[3])&&q0(j0,[0,L,[29,Y0]]);var N0=[0,y0];break x}var N0=0}var S0=x1(0,0,j0);x:{if(S0[0]===0)var K0=S0[1];else{var A0=S0[1],$0=A0[1];if(N0){var ex=[0,p(A0[2],N0[1],function(sx,Q){return p(Bx(sx,C3,74),sx,Q)})],xx=0;break x}var K0=$0}var ex=N0,xx=K0}return[0,ex,xx]},x),$=n0[2],H=$[1],t0=n0[1],c0=H===0?1:0,r0=$[2];if(c0)var v0=x[8],a0=v0||x[9],g0=1-a0;else var g0=c0;return g0&&q0(x,[0,t0,25]),[0,t0,[1,[0,H,Z([0,K],[0,r0],O)]]];case 36:var i0=u0(x),s0=x0(0,function(j0){J(j0,36);x:{if(q(j0)!==8&&!sl(j0)){var y0=p(X0[13],0,j0),Y0=y0[2][1],L=y0[1];1-I1[3].call(null,Y0,j0[3])&&q0(j0,[0,L,[29,Y0]]);var N0=[0,y0];break x}var N0=0}var S0=x1(0,0,j0);x:{if(S0[0]===0)var K0=S0[1];else{var A0=S0[1],$0=A0[1];if(N0){var ex=[0,p(A0[2],N0[1],function(sx,Q){return p(Bx(sx,C3,75),sx,Q)})],xx=0;break x}var K0=$0}var ex=N0,xx=K0}return[0,ex,xx]},x),d0=s0[2],w0=s0[1],M0=d0[2],C0=d0[1];return 1-x[8]&&q0(x,[0,w0,26]),[0,w0,[4,[0,C0,Z([0,i0],[0,M0],O)]]];case 38:return x0(KT0,zT0,x);case 40:return x0(GT0,JT0,x);case 44:return pY(x);case 60:return x0(YT0,XT0,x);case 114:return p2(zl0,x),[0,V0(x),Kl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 34:case 35:case 37:case 39:case 42:case 43:case 50:case 84:case 87:p2(Jl0,x),E0(x);continue}if(!so(x)&&!nh(x)){if(typeof r=="number"&&r===29&&xr(1,x)===6){var D0=cl(1,x);return q0(x,[0,Yr(V0(x),D0),3]),d4(x)}return dn(x)?x0(oE0,aE0,x):(t4(x)&&(p2(0,x),E0(x)),d4(x))}var I0=p4(x);return Nv(x,I0[1]),I0}}Fr(HC,[0,function(x,r){if(typeof r!="number"&&r[0]===2){var e=r[1],t=e[4],u=e[1];return t&&ht(x,[0,u,76])}return Tx(qx(Wl0,qx(IU(r),Gl0)))},function(x,r,e,t){for(var u=x,i=t;;){var c=i[3],v=i[2],a=i[1],l=q(u);if(typeof l=="number"&&mr===l)return[0,u,a,v,c];if(d(r,l))return[0,u,a,v,c];if(typeof l!="number"&&l[0]===2){var m=d(e,u),h=[0,m,v],T=m[2];if(T[0]===23){var b=T[1][2];if(b){var N=br(b[1],"use strict"),j=m[1],I=N&&1-u[21];I&&q0(u,[0,j,79]);var F=N?ha(1,u):u,M=[0,l,a],z=c||N,u=F,i=[0,M,h,z];continue}}return[0,u,a,h,c]}return[0,u,a,v,c]}}]),Fr(DY,[0,function(x,r,e){for(var t=e;;){var u=q(x);if(typeof u=="number"&&mr===u||d(r,u))return ix(t);var t=[0,MY(x),t]}}]),Fr(FY,[0,function(x,r,e){for(var t=e;;){var u=q(x);if(typeof u=="number"&&mr===u||d(r,u))return ix(t);var t=[0,Bh(0,x),t]}}]),Fr(RY,[0,function(x,r,e){var t=1-x,u=OY([0,r],e),i=t&&(q(e)===86?1:0);return i&&(1-A2(e)&&Ux(e,g1),J(e,86)),[0,u,wC(e),i]}]),$q(Zl0[1],X0,[0,function(x){var r=q(x);x:{if(typeof r!="number"&&r[0]===6){var e=r[2],t=r[1];E0(x);var u=[0,[0,t,e]];break x}var u=0}var i=u0(x);x:{r:{for(var c=ix(i),v=5;c;){var a=c[2],l=c[1],m=l[2],h=l[1],T=m[2];e:{t:{for(var b=0,N=Nx(T);;){if(N<(b+5|0))break t;var j=br(T1(T,b,v),"@flow");if(j)break;var b=b+1|0}var I=j;break e}var I=0}if(I)break r;var c=a}var F=0;break x}x[31][1]=h[3];var F=ix([0,[0,h,m],a])}x:if(F===0){if(i){var M=i[1],z=M[2];if(!z[1]){var B=z[2],K=M[1];if(1<=Nx(B)&&q2(B,0)===42){x[31][1]=K[3];var n0=[0,M,0];break x}}}var n0=0}else var n0=F;function $(i0){return 0}var H=LY(x,$,MY),t0=H[2],c0=m1(function(i0,s0){return[0,s0,i0]},qY($,H[1]),t0),r0=V0(x);if(J(x,mr),m1(function(i0,s0){var d0=s0[2];switch(d0[0]){case 21:return c4(x,i0,mn(0,[0,d0[1][1],Vl0]));case 22:var w0=d0[1],M0=w0[1];if(M0){if(!w0[2]){var C0=M0[1],D0=C0[2],I0=C0[1];x:{switch(D0[0]){case 39:return m1(function(N0,S0){return c4(x,N0,S0)},i0,m1(function(N0,S0){return m1(vC,N0,[0,S0[2][1],0])},0,D0[1][1]));case 2:case 27:var j0=D0[1][1];if(j0){var y0=j0[1];break x}break;case 3:case 20:case 30:case 37:case 38:var y0=D0[1][1];break x}return i0}return c4(x,i0,mn(0,[0,I0,y0[2][1]]))}}else{var Y0=w0[2];if(Y0){var L=Y0[1];return L[0]===0?m1(function(N0,S0){var K0=S0[2],A0=K0[2],$0=K0[1];return A0?c4(x,N0,A0[1]):c4(x,N0,$0)},i0,L[1]):i0}}return i0;default:return i0}},I1[1],c0),c0)var v0=C6(ix(c0))[1],a0=Yr(C6(c0)[1],v0);else var a0=r0;var g0=ix(x[2][1]);return[0,a0,[0,c0,u,Z([0,n0],0,O),g0]]},BY,Bh,ZC,UY,qY,function(x){var r=V0(x),e=zt(x),t=q(x);return typeof t=="number"&&t===9?DC(x,r,[0,e,0]):e},function(x){var r=V0(x),e=h4(x),t=q(x);return typeof t=="number"&&t===9?[0,DC(x,r,[0,o1(x,e),0])]:e},function(x){return o1(x,FX(x))},zt,NC,function(x){var r=x0(0,function(t){var u=u0(t);J(t,0);x:for(var i=0,c=[0,0,ln];;){var v=c[2],a=c[1],l=q(t);if(typeof l=="number"){if(l===1)break x;if(mr===l)break}var m=ST0(t),h=m[1],T=m[2];r:{if(h[0]===1&&q(t)===9){var b=[0,V0(t)];break r}var b=0}var N=PC(T,v),j=q(t);r:{e:if(typeof j=="number"){var I=j-2|0;if(ce>>0){if(Te>>0)break e}else{if(I!==7)break e;E0(t)}var B=N;break r}var F=zj(Kc0,9),M=wB([0,F],q(t)),z=[0,V0(t),M];u2(t,8);var B=[0,[0,z,N[1]],[0,z,N[2]]]}var i=b,c=[0,[0,h,a],B]}var K=i?[0,v[1],[0,[0,i[1],90],v[2]]]:v,n0=bX(K),$=ix(a),H=u0(t);return J(t,1),[0,[0,$,O2([0,u],[0,L0(t)],H,O)],n0]},x),e=r[2];return[0,r[1],e[1],e[2]]},OY,function(x,r,e){var t=r?r[1]:0;return x0(0,p(RY[1],t,e),x)},function(x){var r=V0(x),e=u0(x);J(x,0);var t=ZC(function(v){return v===1?1:0},x),u=V0(x),i=t===0?u0(x):0;J(x,1);var c=[0,t,O2([0,e],[0,L0(x)],i,O)];return[0,Yr(r,u),c]},function(x){function r(t){var u=u0(t);J(t,0);var i=UY(function(h){return h===1?1:0},t),c=i[1],v=i[2],a=c===0?u0(t):0;J(t,1);var l=q(t);x:{r:if(!x){if(typeof l=="number"&&(l===1||mr===l))break r;if(N1(t)){var m=ao(t);break x}var m=0;break x}var m=L0(t)}return[0,[0,c,O2([0,u],[0,m],a,O)],v]}var e=0;return function(t){return sC(e,r,t)}},function(x){return jY(lE0,x)},_4,Lh,po,Ah,function(x){return x0(CT0,jT0,x)},function(x){var r=x[2];switch(r[0]){case 24:var e=r[1],t=e[1][2][1];if(P(t,X1)){if(!P(t,rv)&&!P(e[2][2][1],Um))return 0}else if(!P(e[2][2][1],Xl))return 0;break;case 0:case 10:case 23:case 26:break;default:return 0}return 1},CC,Dv,OC,wh]);var xO=[n2,kb0,as(0)],rO=[0,xO,[0]],pE0=d5(lb0,function(x){var r=Pj(x,vb0)[41],e=Cj(x,0,0,pb0,Mj,1)[1];return Wq(x,r,function(t,u){return 0}),function(t,u){var i=y5(u,x);return d(e,i),Oj(u,i,x)}}),kE0=[n2,C00,as(0)];function mE0(x){if(typeof x=="number"){var r=x;if(57<=r)switch(r){case 57:return IH;case 58:return NH;case 59:return jH;case 60:return CH;case 61:return OH;case 62:return DH;case 63:return FH;case 64:return RH;case 65:return LH;case 66:return MH;case 67:return qH;case 68:return UH;case 69:return BH;case 70:return XH;case 71:return YH;case 72:return zH;case 73:return KH;case 74:return JH;case 75:return GH;case 76:return WH;case 77:return VH;case 78:return $H;case 79:return QH;case 80:return HH;case 81:return ZH;case 82:return xZ;case 83:return rZ;case 84:return eZ;case 85:return tZ;case 86:return nZ;case 87:return uZ;case 88:return iZ;case 89:return fZ;case 90:return cZ;case 91:return sZ;case 92:return aZ;case 93:return oZ;case 94:return vZ;case 95:return lZ;case 96:return pZ;case 97:return kZ;case 98:return mZ;case 99:return hZ;case 100:return dZ;case 101:return yZ;case 102:return gZ;case 103:return wZ;case 104:return _Z;case 105:return bZ;case 106:return TZ;case 107:return EZ;case 108:return SZ;case 109:return AZ;case 110:return PZ;case 111:return IZ;default:return NZ}switch(r){case 0:return TQ;case 1:return EQ;case 2:return SQ;case 3:return AQ;case 4:return PQ;case 5:return IQ;case 6:return NQ;case 7:return jQ;case 8:return CQ;case 9:return OQ;case 10:return DQ;case 11:return qx(RQ,FQ);case 12:return LQ;case 13:return MQ;case 14:return qQ;case 15:return UQ;case 16:return BQ;case 17:return XQ;case 18:return YQ;case 19:return zQ;case 20:return KQ;case 21:return JQ;case 22:return GQ;case 23:return WQ;case 24:return VQ;case 25:return $Q;case 26:return QQ;case 27:return HQ;case 28:return ZQ;case 29:return xH;case 30:return qx(eH,rH);case 31:return tH;case 32:return nH;case 33:return uH;case 34:return iH;case 35:return fH;case 36:return cH;case 37:return sH;case 38:return aH;case 39:return oH;case 40:return vH;case 41:return lH;case 42:return pH;case 43:return kH;case 44:return mH;case 45:return hH;case 46:return dH;case 47:return yH;case 48:return gH;case 49:return wH;case 50:return _H;case 51:return bH;case 52:return TH;case 53:return EH;case 54:return SH;case 55:return AH;default:return PH}}switch(x[0]){case 0:var e=x[1];return d(ar(jZ),e);case 1:var t=x[1];return d(ar(CZ),t);case 2:var u=x[2],i=x[1];return p(ar(OZ),u,i);case 3:var c=x[2],v=x[1];return H0(ar(DZ),c,c,v);case 4:var a=x[2],l=x[1];return p(ar(FZ),a,l);case 5:var m=x[1];return d(ar(RZ),m);case 6:return x[1]?LZ:MZ;case 7:var h=x[2],T=x[1],b=d(ar(qZ),T);if(!h)return d(ar(BZ),b);var N=h[1];return p(ar(UZ),N,b);case 8:var j=x[1];return p(ar(XZ),j,j);case 9:var I=x[3],F=x[2],M=x[1];if(!F)return p(ar(KZ),I,M);var z=F[1];if(z===3)return p(ar(zZ),I,M);switch(z){case 0:var B=VV;break;case 1:var B=$V;break;case 2:var B=QV;break;case 3:var B=HV;break;default:var B=ZV}return zN(ar(YZ),M,B,I,B);case 10:var K=x[2],n0=x[1],$=$M(K);return H0(ar(JZ),K,$,n0);case 11:var H=x[2],t0=x[1];return p(ar(GZ),H,t0);case 12:var c0=x[1];return d(ar(WZ),c0);case 13:var r0=x[1];return d(ar(VZ),r0);case 14:return x[1]?qx(QZ,$Z):qx(ZZ,HZ);case 15:var v0=x[1],a0=x[4],g0=x[3],i0=x[2]?x00:r00,s0=g0?e00:t00,d0=a0?qx(n00,v0):v0;return H0(ar(u00),i0,s0,d0);case 16:return i00;case 17:var w0=x[2],M0=x[1],C0=HM(45,w0);if(C0)var D0=C0[1],I0=C0[2]?VM(bQ,[0,D0,vs($M,C0[2])]):D0;else var I0=w0;var j0=M0?f00:c00;return H0(ar(s00),w0,I0,j0);case 18:var y0=x[1]?a00:o00;return d(ar(v00),y0);case 19:var Y0=x[1];return d(ar(l00),Y0);case 20:var L=Zl<=x[1]?p00:k00;return d(ar(m00),L);case 21:var N0=x[1];return d(ar(h00),N0);case 22:var S0=x[1];return d(ar(d00),S0);case 23:var K0=x[2],A0=x[1];return p(ar(y00),A0,K0);case 24:var $0=x[1];if(Bl===$0)var ex=T00,xx=E00;else if(s6<=$0)var ex=g00,xx=w00;else var ex=_00,xx=b00;return p(ar(S00),xx,ex);case 25:var tx=x[1];return d(ar(A00),tx);case 26:var z0=x[1];return d(ar(P00),z0);case 27:var px=x[2],sx=x[1];return p(ar(I00),sx,px);case 28:var Q=x[2],b0=x[1];return p(ar(N00),b0,Q);default:var U=x[1];return d(ar(j00),U)}}function hE0(x,r){var e=x[2];function t(_){return S1(_,r)}var u=x[1];switch(e[0]){case 0:var i=e[1],c=S5(i[2],r),jx=[0,[0,i[1],c]];break;case 1:var v=e[1],a=t(v[2]),jx=[1,[0,v[1],a]];break;case 2:var l=e[1],m=t(l[7]),jx=[2,[0,l[1],l[2],l[3],l[4],l[5],l[6],m]];break;case 3:var h=e[1],T=h[7],b=t(h[6]),jx=[3,[0,h[1],h[2],h[3],h[4],h[5],b,T]];break;case 4:var N=e[1],j=t(N[2]),jx=[4,[0,N[1],j]];break;case 5:var jx=[5,[0,t(e[1][1])]];break;case 6:var I=e[1],F=t(I[7]),jx=[6,[0,I[1],I[2],I[3],I[4],I[5],I[6],F]];break;case 7:var M=e[1],z=t(M[5]),jx=[7,[0,M[1],M[2],M[3],M[4],z]];break;case 8:var B=e[1],K=t(B[3]),jx=[8,[0,B[1],B[2],K]];break;case 9:var n0=e[1],$=t(n0[5]),jx=[9,[0,n0[1],n0[2],n0[3],n0[4],$]];break;case 10:var H=e[1],t0=t(H[4]),jx=[10,[0,H[1],H[2],H[3],t0]];break;case 11:var c0=e[1],r0=t(c0[5]),jx=[11,[0,c0[1],c0[2],c0[3],c0[4],r0]];break;case 12:var v0=e[1],a0=t(v0[3]),jx=[12,[0,v0[1],v0[2],a0]];break;case 13:var g0=e[1],i0=t(g0[2]),jx=[13,[0,g0[1],i0]];break;case 14:var s0=e[1],d0=t(s0[3]),jx=[14,[0,s0[1],s0[2],d0]];break;case 15:var w0=e[1],M0=t(w0[4]),jx=[15,[0,w0[1],w0[2],w0[3],M0]];break;case 16:var C0=e[1],D0=t(C0[5]),jx=[16,[0,C0[1],C0[2],C0[3],C0[4],D0]];break;case 17:var I0=e[1],j0=t(I0[4]),jx=[17,[0,I0[1],I0[2],I0[3],j0]];break;case 18:var y0=e[1],Y0=t(y0[3]),jx=[18,[0,y0[1],y0[2],Y0]];break;case 19:var jx=[19,[0,t(e[1][1])]];break;case 20:var L=e[1],N0=t(L[3]),jx=[20,[0,L[1],L[2],N0]];break;case 21:var S0=e[1],K0=t(S0[3]),jx=[21,[0,S0[1],S0[2],K0]];break;case 22:var A0=e[1],$0=t(A0[5]),jx=[22,[0,A0[1],A0[2],A0[3],A0[4],$0]];break;case 23:var ex=e[1],xx=t(ex[3]),jx=[23,[0,ex[1],ex[2],xx]];break;case 24:var tx=e[1],z0=t(tx[5]),jx=[24,[0,tx[1],tx[2],tx[3],tx[4],z0]];break;case 25:var px=e[1],sx=t(px[5]),jx=[25,[0,px[1],px[2],px[3],px[4],sx]];break;case 26:var Q=e[1],b0=t(Q[5]),jx=[26,[0,Q[1],Q[2],Q[3],Q[4],b0]];break;case 27:var U=e[1],h0=U[11],_0=t(U[10]),jx=[27,[0,U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],_0,h0]];break;case 28:var m0=e[1],T0=t(m0[4]),jx=[28,[0,m0[1],m0[2],m0[3],T0]];break;case 29:var X=e[1],Gx=t(X[5]),jx=[29,[0,X[1],X[2],X[3],X[4],Gx]];break;case 30:var Px=e[1],G0=t(Px[5]),jx=[30,[0,Px[1],Px[2],Px[3],Px[4],G0]];break;case 31:var Kr=e[1],S=t(Kr[3]),jx=[31,[0,Kr[1],Kr[2],S]];break;case 32:var G=e[1],rx=t(G[3]),jx=[32,[0,G[1],G[2],rx]];break;case 33:var yx=e[1],Ex=yx[3],nx=t(yx[2]),jx=[33,[0,yx[1],nx,Ex]];break;case 34:var p0=e[1],Fx=p0[4],Sx=t(p0[3]),jx=[34,[0,p0[1],p0[2],Sx,Fx]];break;case 35:var bx=e[1],B0=t(bx[2]),jx=[35,[0,bx[1],B0]];break;case 36:var Wx=e[1],Yx=t(Wx[4]),jx=[36,[0,Wx[1],Wx[2],Wx[3],Yx]];break;case 37:var ax=e[1],Qx=t(ax[4]),jx=[37,[0,ax[1],ax[2],ax[3],Qx]];break;case 38:var kx=e[1],tr=t(kx[5]),jx=[38,[0,kx[1],kx[2],kx[3],kx[4],tr]];break;case 39:var sr=e[1],Mr=t(sr[3]),jx=[39,[0,sr[1],sr[2],Mr]];break;case 40:var a2=e[1],_2=t(a2[3]),jx=[40,[0,a2[1],a2[2],_2]];break;default:var i2=e[1],Q2=t(i2[3]),jx=[41,[0,i2[1],i2[2],Q2]]}return[0,u,jx]}var dE0=pv(rO)===n2?rO:rO[1];YN(OS,dE0);var ba=o0,j1=null,XY=void 0;function Xh(x){return 1-(x===XY?1:0)}ba.String,ba.RegExp,ba.Object,ba.Date,ba.Math;function yE0(x){throw x}function YY(x){return d(yE0,x)}ba.JSON;var gE0=ba.Array,wE0=ba.Error;kj(function(x){return x[1]===xO?[0,Dt(x[2].toString())]:0}),kj(function(x){return x instanceof gE0?0:[0,Dt(x.toString())]});var zY=[0,0];function _s(x){return $z(F6(x))}function $2(x){return tM(F6(x))}function pr(x,r){return $2(ix(c5(x,r)))}function gx(x,r){return r?d(x,r[1]):j1}function ml(x,r){return r[0]===0?j1:x(r[1])}function KY(x){return _s([0,[0,ob0,x[1]],[0,[0,ab0,x[2]],0]])}function JY(x){var r=x[1],e=r?Jx(r[1][1]):j1,t=[0,[0,fb0,KY(x[3])],0];return _s([0,[0,sb0,e],[0,[0,cb0,KY(x[2])],t]])}function w2(x){if(!x)return 0;var r=x[1],e=r[1];return Z([0,e],[0,Mx(r[3],r[2])],O)}var _E0=Jx;function hl(x,r,e){var t=r[e];return Xh(t)?t|0:x}function bE0(x,r){var e=B3(r,XY)?{}:r,t=Dt(x),u=hl(z3[6],e,hb0),i=hl(z3[5],e,db0),c=hl(z3[4],e,yb0),v=hl(z3[3],e,gb0),a=hl(z3[2],e,wb0),l=[0,hl(z3[1],e,_b0),a,v,c,i,u,0,0],m=e[GO],h=Xh(m),T=h&&m|0,b=e[wO],N=Xh(b)?b|0:1,j=e.all_comments,I=Xh(j)?j|0:1,F=[0,0],M=T?[0,function(Y){return F[1]=[0,Y,F[1]],0}]:0,z=0,B=mb0[1];try{var K=0,n0=oU(t),$=K,H=n0}catch(Y){var t0=U2(Y);if(t0!==Za)throw W0(t0,0);var c0=[0,[0,[0,z,Y3[2],Y3[3]],48],0],$=c0,H=oU(xs0)}var r0=[0,z,H,D00,0,l[5],bU,F00],v0=[0,Z6(r0,0)],a0=[0,[0,$],[0,0],I1[1],[0,0],l[6],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,es0],[0,r0],v0,[0,M],l,z,[0,0],[0,rs0]],g0=d(X0[1],a0),i0=ix(a0[1][1]),s0=ix(m1(function(Y,A){var D=Y[2],f0=Y[1];return oC[3].call(null,A,f0)?[0,f0,D]:[0,oC[4].call(null,A,f0),[0,A,D]]},[0,oC[1],0],i0)[2]);if(s0){var d0=s0[2],w0=s0[1];if(B)throw W0([0,kE0,w0,d0],1)}zY[1]=0;var M0=Nx(t)-0|0,C0=Ot(t);x:{r:{for(var D0=0,I0=0;;){if(I0===M0)break r;var j0=se(C0,I0);e:{if(0<=j0&&Br>=j0){var y0=1;break e}if(PI<=j0&&kk>=j0){var y0=2;break e}if(s3<=j0&&Fy>=j0){var y0=3;break e}if(w3<=j0&&zo>=j0){var y0=4;break e}var y0=0}if(y0===0)var D0=aC(D0,I0,0),I0=I0+1|0;else{if((M0-I0|0)>>0)throw W0([0,Nr,JV],1);switch(Y0){case 0:var N0=se(C0,I0);break;case 1:var N0=(se(C0,I0)&31)<<6|se(C0,I0+1|0)&63;break;case 2:var N0=(se(C0,I0)&15)<<12|(se(C0,I0+1|0)&63)<<6|se(C0,I0+2|0)&63;break;default:var N0=(se(C0,I0)&7)<<18|(se(C0,I0+1|0)&63)<<12|(se(C0,I0+2|0)&63)<<6|se(C0,I0+3|0)&63}var D0=aC(D0,I0,[0,N0]),I0=L}}var S0=aC(D0,I0,0);break x}var S0=D0}for(var K0=fo0,A0=ix([0,6,S0]);;){var $0=K0[3],ex=K0[2],xx=K0[1];if(!A0)break;var tx=A0[1];if(tx===5){var z0=A0[2];if(z0&&z0[1]===6){var px=z0[2],K0=[0,xx+2|0,0,[0,F6(ix([0,xx,ex])),$0]],A0=px;continue}}else if(6>tx){var sx=A0[2],K0=[0,xx+jB(tx)|0,[0,xx,ex],$0],A0=sx;continue}var Q=A0[2],b0=[0,F6(ix([0,xx,ex])),$0],K0=[0,xx+jB(tx)|0,0,b0],A0=Q}var U=F6(ix($0));if(N)var _0=g0;else var h0=d(pE0[1],0),_0=p(Bx(h0,-201766268,Be),h0,g0);if(I)var T0=_0;else var m0=_0[2],T0=[0,_0[1],[0,m0[1],m0[2],m0[3],0]];function X(Y,A,D,f0){var k0=[0,oh(U,A[3]),0],R0=[0,[0,x60,$2([0,oh(U,A[2]),k0])],0],Q0=Mx(R0,[0,[0,r60,JY(A)],0]);if(D){var mx=D[1],Ix=mx[1];if(Ix){var Rx=mx[2];if(Rx)var nr=[0,[0,e60,wo(Rx)],0],zx=[0,[0,t60,wo(Ix)],nr];else var zx=[0,[0,n60,wo(Ix)],0];var rr=zx}else var ur=mx[2],kr=ur?[0,[0,u60,wo(ur)],0]:0,rr=kr;var Cx=rr}else var Cx=0;return _s(K3(Mx(Q0,Mx(Cx,[0,[0,i60,Jx(Y)],0])),f0))}function Gx(Y){return pr(Px,Y)}function Px(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return Yx([0,D,A[1]]);case 1:var f0=A[1],k0=f0[2];return X(p60,D,k0,[0,[0,l60,gx(p0,f0[1])],0]);case 2:return V(f50,[0,D,A[1]]);case 3:var R0=A[1],Q0=R0[3],mx=R0[6],Ix=R0[5],Rx=R0[4],nr=R0[2],zx=R0[1],ur=S1(w2(Q0[2][3]),mx),kr=[0,[0,Z50,gx(d1,nr)],0],rr=[0,[0,xh0,Pa(Rx)],kr],Cx=Q0[2],gr=Cx[2],Er=Cx[1];if(gr)var Jr=gr[1],Sr=Jr[2],Gr=Sr[2],k2=Jr[1],P2=X(ih0,k2,Gr,[0,[0,uh0,dr(Sr[1])],0]),Dr=$2(ix([0,P2,c5(wx,Er)]));else var Dr=$2(vs(wx,Er));var m2=[0,[0,eh0,p0(zx)],[0,[0,rh0,Dr],rr]];return X(nh0,D,ur,[0,[0,th0,Yx(Ix)],m2]);case 4:var r2=A[1],Ar=r2[2];return X(m60,D,Ar,[0,[0,k60,gx(p0,r2[1])],0]);case 5:return X(h60,D,A[1][1],0);case 6:return kx([0,D,A[1]]);case 7:return tr([0,D,A[1]]);case 8:return _2([0,D,A[1]]);case 9:var wr=A[1],f2=wr[5],Ur=wr[4],Qr=wr[3],T2=wr[2],Rr=wr[1];if(Qr){var d2=Qr[1];if(d2[0]!==0&&!d2[1][2])return X(y60,D,f2,[0,[0,d60,gx(b2,Ur)],0])}if(T2){var o2=T2[1];switch(o2[0]){case 0:var c2=ax(o2[1]);break;case 1:var c2=Qx(o2[1]);break;case 2:var c2=kx(o2[1]);break;case 3:var c2=tr(o2[1]);break;case 4:var c2=yr(o2[1]);break;case 5:var c2=jx(o2[1]);break;case 6:var c2=_(1,o2[1]);break;case 7:var c2=Hx(o2[1]);break;default:var c2=_2(o2[1])}var E2=c2}else var E2=j1;var pe=[0,[0,g60,gx(b2,Ur)],0],je=[0,[0,_60,E2],[0,[0,w60,Q2(Qr)],pe]],xt=Rr?1:0;return X(T60,D,f2,[0,[0,b60,!!xt],je]);case 10:return Qx([0,D,A[1]]);case 11:var U1=A[1],e2=U1[5],Z1=U1[4],R2=U1[2],wt=U1[1],O1=[0,[0,Mm0,pr(Zr,U1[3])],0],_t=[0,[0,qm0,bn(0,Z1)],O1],Wt=[0,[0,Um0,gx(d1,R2)],_t];return X(Xm0,D,e2,[0,[0,Bm0,p0(wt)],Wt]);case 12:var rt=A[1],et=rt[1],Ox=rt[3],tt=rt[2],xe=et[0]===0?p0(et[1]):b2(et[1]);return X(A60,D,Ox,[0,[0,S60,xe],[0,[0,E60,Yx(tt)],0]]);case 13:var v1=A[1],Ce=v1[2];return X(I60,D,Ce,[0,[0,P60,H1(v1[1])],0]);case 14:var Oe=A[1],nt=Oe[3],ut=Oe[2],it=p0(Oe[1]);return X(C60,D,nt,[0,[0,j60,it],[0,[0,N60,Yx(ut)],0]]);case 15:var r1=A[1],bt=r1[4],Tt=r1[2],Is=r1[1],ft=[0,[0,Gm0,yr(r1[3])],0],Vt=[0,[0,Wm0,gx(d1,Tt)],ft];return X($m0,D,bt,[0,[0,Vm0,p0(Is)],Vt]);case 16:return _(1,[0,D,A[1]]);case 17:return ax([0,D,A[1]]);case 18:var D1=A[1],Tn=D1[3],ke=D1[1],De=[0,[0,O60,G0(D1[2])],0];return X(F60,D,Tn,[0,[0,D60,Px(ke)],De]);case 19:return X(R60,D,A[1][1],0);case 20:var $t=A[1],Ns=$t[3],En=$t[1],js=[0,[0,Vh0,Cr($t[2])],0];return X(Qh0,D,Ns,[0,[0,$h0,p0(En)],js]);case 21:var re=A[1],Et=re[2],Cs=re[3],Sn=Et[0]===0?Px(Et[1]):G0(Et[1]);return X(q60,D,Cs,[0,[0,M60,Sn],[0,[0,L60,Jx(i2(1))],0]]);case 22:var Fe=A[1],Os=Fe[5],Ds=Fe[4],To=Fe[3],Eo=Fe[2],Yv=Fe[1];if(Eo){var zv=Eo[1];if(zv[0]!==0){var So=zv[1][2],Ao=[0,[0,U60,Jx(i2(Ds))],0],_l=[0,[0,B60,gx(p0,So)],Ao];return X(Y60,D,Os,[0,[0,X60,gx(b2,To)],_l])}}var Kv=[0,[0,z60,Jx(i2(Ds))],0],bl=[0,[0,K60,gx(b2,To)],Kv],Tl=[0,[0,J60,Q2(Eo)],bl];return X(W60,D,Os,[0,[0,G60,gx(Px,Yv)],Tl]);case 23:var Fs=A[1],Po=Fs[3],Jv=Fs[1],El=[0,[0,V60,gx(_E0,Fs[2])],0];return X(Q60,D,Po,[0,[0,$60,G0(Jv)],El]);case 24:var Rs=A[1],Gv=Rs[5],Oa=Rs[3],Sl=Rs[2],Wv=Rs[1],Io=[0,[0,H60,Px(Rs[4])],0],Al=[0,[0,Z60,gx(G0,Oa)],Io],Da=[0,[0,x40,gx(G0,Sl)],Al];return X(e40,D,Gv,[0,[0,r40,gx(function(nO){return nO[0]===0?Ts(nO[1]):G0(nO[1])},Wv)],Da]);case 25:var Ls=A[1],No=Ls[1],jo=Ls[5],Fa=Ls[4],Pl=Ls[3],Il=Ls[2],Nl=No[0]===0?Ts(No[1]):dr(No[1]),Co=[0,[0,n40,Px(Pl)],[0,[0,t40,!!Fa],0]];return X(f40,D,jo,[0,[0,i40,Nl],[0,[0,u40,G0(Il)],Co]]);case 26:var An=A[1],Ra=An[1],jl=An[5],Oo=An[4],Vv=An[3],Ms=An[2],$v=Ra[0]===0?Ts(Ra[1]):dr(Ra[1]),St=[0,[0,s40,Px(Vv)],[0,[0,c40,!!Oo],0]];return X(v40,D,jl,[0,[0,o40,$v],[0,[0,a40,G0(Ms)],St]]);case 27:var F1=A[1],Qv=F1[3],Hv=F1[2],Cl=F1[10],Do=F1[9],Fo=F1[8],Zv=F1[7],Ol=F1[6],x3=F1[5],Wh=F1[4],Qt=Hv[2][4],Pn=F1[1],r3=Qv[0]===0?Qv[1]:Tx(m80),Vh=S1(w2(Qt),Cl);if(Ol===0)var qs=0,e3=h80;else var qs=[0,[0,w80,!!Wh],[0,[0,g80,!!x3],[0,[0,y80,gx(_o,Zv)],[0,[0,d80,!1],0]]]],e3=_80;var $h=[0,[0,b80,gx(d1,Do)],0],Qh=[0,[0,T80,qr(Fo)],$h],Hh=[0,[0,E80,Yx(r3)],Qh],Zh=[0,[0,S80,ux(Hv)],Hh];return X(e3,D,Vh,Mx([0,[0,A80,gx(p0,Pn)],Zh],qs));case 28:var t3=A[1],N4=t3[3],xd=t3[4],j4=t3[2],n=t3[1];if(N4)var s=N4[1][2],f=Px(hE0(s[1],s[2]));else var f=j1;var o=[0,[0,p40,Px(j4)],[0,[0,l40,f],0]];return X(m40,D,xd,[0,[0,k40,G0(n)],o]);case 29:var k=A[1],g=k[4],E=k[3],C=k[5],R=k[2],e0=k[1];if(g){var l0=g[1];if(l0[0]===0)var Xx=vs(function(uO){var rd=uO[3],ed=uO[2],VY=uO[1],AE0=ed?Yr(rd[1],ed[1][1]):rd[1],PE0=ed?ed[1]:rd;x:{r:{var IE0=0;if(VY){switch(VY[1]){case 0:var $Y=qf;break;case 1:var $Y=Zs;break;default:break r}var QY=$Y;break x}}var QY=j1}var NE0=[0,[0,z_0,p0(PE0)],[0,[0,Y_0,QY],IE0]];return X(J_0,AE0,0,[0,[0,K_0,p0(rd)],NE0])},l0[1]);else var F0=l0[1],dx=F0[1],Xx=[0,X(X_0,dx,0,[0,[0,B_0,p0(F0[2])],0]),0];var Kx=Xx}else var Kx=0;if(E)var _r=E[1][1],t2=[0,[0,q_0,p0(_r)],0],Wr=[0,X(U_0,_r[1],0,t2),Kx];else var Wr=Kx;switch(e0){case 0:var Vx=h40;break;case 1:var Vx=d40;break;default:var Vx=y40}var C2=[0,[0,w40,b2(R)],[0,[0,g40,Jx(Vx)],0]];return X(b40,D,C,[0,[0,_40,$2(Wr)],C2]);case 30:return Hx([0,D,A[1]]);case 31:var z2=A[1],ee=z2[3],me=z2[1],he=[0,[0,T40,Px(z2[2])],0];return X(S40,D,ee,[0,[0,E40,p0(me)],he]);case 32:var te=A[1],de=te[3],ye=te[1],ge=[0,[0,A40,pr(S,te[2])],0];return X(I40,D,de,[0,[0,P40,G0(ye)],ge]);case 33:var At=A[1],we=At[2];return X(j40,D,we,[0,[0,N40,gx(G0,At[1])],0]);case 34:var ct=A[1],Us=ct[3],Bs=ct[1],Xs=[0,[0,C40,pr(B0,ct[2])],0];return X(D40,D,Us,[0,[0,O40,G0(Bs)],Xs]);case 35:var In=A[1],Ys=In[2];return X(R40,D,Ys,[0,[0,F40,G0(In[1])],0]);case 36:var zs=A[1],n3=zs[4],u3=zs[2],i3=zs[1],f3=[0,[0,L40,gx(Yx,zs[3])],0],_x=[0,[0,M40,gx(Wx,u3)],f3];return X(U40,D,n3,[0,[0,q40,Yx(i3)],_x]);case 37:return jx([0,D,A[1]]);case 38:return _(0,[0,D,A[1]]);case 39:return Ts([0,D,A[1]]);case 40:var c3=A[1],hx=c3[3],eO=c3[1],tO=[0,[0,B40,Px(c3[2])],0];return X(Y40,D,hx,[0,[0,X40,G0(eO)],tO]);default:var cx=A[1],TE0=cx[3],EE0=cx[1],SE0=[0,[0,z40,Px(cx[2])],0];return X(J40,D,TE0,[0,[0,K40,G0(EE0)],SE0])}}function G0(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[2],R0=[0,[0,G40,pr(Jt,f0[1])],0];return X(W40,D,w2(k0),R0);case 1:var Q0=A[1],mx=Q0[3],Ix=Q0[2],Rx=Q0[10],nr=Q0[9],zx=Q0[8],ur=Q0[7],kr=Q0[4],rr=Ix[2][4];if(mx[0]===0)var Cx=0,gr=Yx(mx[1]);else var Cx=1,gr=G0(mx[1]);var Er=S1(w2(rr),Rx),Jr=[0,[0,V40,gx(d1,nr)],0],Sr=[0,[0,Q40,!!Cx],[0,[0,$40,qr(zx)],Jr]],Gr=[0,[0,rp0,gr],[0,[0,xp0,!!kr],[0,[0,Z40,!1],[0,[0,H40,gx(_o,ur)],Sr]]]];return X(np0,D,Er,[0,[0,tp0,j1],[0,[0,ep0,ux(Ix)],Gr]]);case 2:var k2=A[1],P2=k2[2];return X(ip0,D,P2,[0,[0,up0,G0(k2[1])],0]);case 3:var Dr=A[1],m2=Dr[3],r2=Dr[1],Ar=[0,[0,fp0,yr(Dr[2][2])],0];return X(sp0,D,m2,[0,[0,cp0,G0(r2)],Ar]);case 4:var wr=A[1],f2=wr[1],Ur=wr[4],Qr=wr[3],T2=wr[2];if(f2){switch(f2[1]){case 0:var Rr=Q$;break;case 1:var Rr=H$;break;case 2:var Rr=Z$;break;case 3:var Rr=xQ;break;case 4:var Rr=rQ;break;case 5:var Rr=eQ;break;case 6:var Rr=tQ;break;case 7:var Rr=nQ;break;case 8:var Rr=uQ;break;case 9:var Rr=iQ;break;case 10:var Rr=fQ;break;case 11:var Rr=cQ;break;case 12:var Rr=sQ;break;case 13:var Rr=aQ;break;default:var Rr=oQ}var d2=Rr}else var d2=ap0;var o2=[0,[0,op0,G0(Qr)],0];return X(pp0,D,Ur,[0,[0,lp0,Jx(d2)],[0,[0,vp0,dr(T2)],o2]]);case 5:var c2=A[1],E2=c2[4],pe=c2[2],je=c2[1],xt=[0,[0,kp0,G0(c2[3])],0],U1=[0,[0,mp0,G0(pe)],xt];switch(je){case 0:var e2=I$;break;case 1:var e2=N$;break;case 2:var e2=j$;break;case 3:var e2=C$;break;case 4:var e2=O$;break;case 5:var e2=D$;break;case 6:var e2=F$;break;case 7:var e2=R$;break;case 8:var e2=L$;break;case 9:var e2=M$;break;case 10:var e2=q$;break;case 11:var e2=U$;break;case 12:var e2=B$;break;case 13:var e2=X$;break;case 14:var e2=Y$;break;case 15:var e2=z$;break;case 16:var e2=K$;break;case 17:var e2=J$;break;case 18:var e2=G$;break;case 19:var e2=W$;break;case 20:var e2=V$;break;default:var e2=$$}return X(dp0,D,E2,[0,[0,hp0,Jx(e2)],U1]);case 6:var Z1=A[1],R2=Z1[4],wt=S1(w2(Z1[3][2][2]),R2);return X(yp0,D,wt,gl(Z1));case 7:return V(c50,[0,D,A[1]]);case 8:var O1=A[1],_t=O1[4],Wt=O1[2],rt=O1[1],et=[0,[0,gp0,G0(O1[3])],0],Ox=[0,[0,wp0,G0(Wt)],et];return X(bp0,D,_t,[0,[0,_p0,G0(rt)],Ox]);case 9:return nx([0,D,A[1]]);case 10:return p0(A[1]);case 11:var tt=A[1],xe=tt[2];return X(Ep0,D,xe,[0,[0,Tp0,G0(tt[1])],0]);case 12:return ho([0,D,A[1]]);case 13:return Bv([0,D,A[1]]);case 14:return b2([0,D,A[1]]);case 15:return wn([0,D,A[1]]);case 16:return _n([0,D,A[1]]);case 17:return C1([0,D,A[1]]);case 18:return q1([0,D,A[1]]);case 19:var v1=A[1],Ce=v1[2],Oe=v1[1],nt=v1[4],ut=v1[3];try{var it=new RegExp(Jx(Oe),Jx(Ce)),r1=it}catch{var r1=j1}return X(dy0,D,nt,[0,[0,hy0,r1],[0,[0,my0,Jx(ut)],[0,[0,ky0,_s([0,[0,py0,Jx(Oe)],[0,[0,ly0,Jx(Ce)],0]])],0]]]);case 20:var bt=A[1];return b2([0,D,[0,bt[1],bt[5],bt[6]]]);case 21:var Tt=A[1],Is=Tt[4],ft=Tt[3],Vt=Tt[2];switch(Tt[1]){case 0:var D1=Sp0;break;case 1:var D1=Ap0;break;default:var D1=Pp0}var Tn=[0,[0,Ip0,G0(ft)],0];return X(Cp0,D,Is,[0,[0,jp0,Jx(D1)],[0,[0,Np0,G0(Vt)],Tn]]);case 22:var ke=A[1],De=ke[3],$t=ke[1],Ns=[0,[0,Op0,pr(Kr,ke[2])],0];return X(Fp0,D,De,[0,[0,Dp0,G0($t)],Ns]);case 23:var En=A[1],js=En[3];return X(Rp0,D,js,E4(En));case 24:var re=A[1],Et=re[3],Cs=re[1],Sn=[0,[0,Lp0,p0(re[2])],0];return X(qp0,D,Et,[0,[0,Mp0,p0(Cs)],Sn]);case 25:var Fe=A[1],Os=Fe[4],Ds=Fe[3],To=Fe[2],Eo=Fe[1];if(Ds)var Yv=Ds[1],zv=S1(w2(Yv[2][2]),Os),So=zv,Ao=bx(Yv);else var So=Os,Ao=$2(0);var _l=[0,[0,Bp0,gx(Gt,To)],[0,[0,Up0,Ao],0]];return X(Yp0,D,So,[0,[0,Xp0,G0(Eo)],_l]);case 26:var Kv=A[1],bl=Kv[2],Tl=[0,[0,zp0,pr(Y2,Kv[1])],0];return X(Kp0,D,w2(bl),Tl);case 27:var Fs=A[1],Po=Fs[1],Jv=Fs[3],El=Po[4],Rs=S1(w2(Po[3][2][2]),El);return X(Gp0,D,Rs,Mx(gl(Po),[0,[0,Jp0,!!Jv],0]));case 28:var Gv=A[1],Oa=Gv[1],Sl=Oa[3],Wv=[0,[0,Wp0,!!Gv[3]],0];return X(Vp0,D,Sl,Mx(E4(Oa),Wv));case 29:var Io=A[1],Al=Io[2];return X(Qp0,D,Al,[0,[0,$p0,pr(G0,Io[1])],0]);case 30:return X(Hp0,D,A[1][1],0);case 31:var Da=A[1],Ls=Da[3],No=Da[1],jo=[0,[0,Ny0,bs(Da[2])],0];return X(Cy0,D,Ls,[0,[0,jy0,G0(No)],jo]);case 32:return bs([0,D,A[1]]);case 33:return X(Zp0,D,A[1][1],0);case 34:var Fa=A[1],Pl=Fa[3],Il=Fa[1],Nl=[0,[0,xk0,H1(Fa[2])],0];return X(ek0,D,Pl,[0,[0,rk0,G0(Il)],Nl]);case 35:var Co=A[1],An=Co[3],Ra=Co[1],jl=[0,[0,tk0,yr(Co[2][2])],0];return X(uk0,D,An,[0,[0,nk0,G0(Ra)],jl]);case 36:var Oo=A[1],Vv=Oo[3],Ms=Oo[2],$v=Oo[1];if(7<=$v)return X(fk0,D,Vv,[0,[0,ik0,G0(Ms)],0]);switch($v){case 0:var St=ck0;break;case 1:var St=sk0;break;case 2:var St=ak0;break;case 3:var St=ok0;break;case 4:var St=vk0;break;case 5:var St=lk0;break;case 6:var St=pk0;break;default:var St=Tx(kk0)}return X(yk0,D,Vv,[0,[0,dk0,Jx(St)],[0,[0,hk0,!0],[0,[0,mk0,G0(Ms)],0]]]);case 37:var F1=A[1],Qv=F1[4],Hv=F1[3],Cl=F1[2],Do=F1[1]?gk0:wk0;return X(Ek0,D,Qv,[0,[0,Tk0,Jx(Do)],[0,[0,bk0,G0(Cl)],[0,[0,_k0,!!Hv],0]]]);default:var Fo=A[1],Zv=Fo[2],Ol=[0,[0,Sk0,!!Fo[3]],0];return X(Pk0,D,Zv,[0,[0,Ak0,gx(G0,Fo[1])],Ol])}}function Kr(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Ik0,gx(G0,A[3])],0],mx=[0,[0,Nk0,G0(f0)],Q0];return X(Ck0,R0,D,[0,[0,jk0,G(k0)],mx])}function S(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Ok0,gx(G0,A[3])],0],mx=[0,[0,Dk0,Yx(f0)],Q0];return X(Rk0,R0,D,[0,[0,Fk0,G(k0)],mx])}function G(Y){var A=Y[2],D=Y[1];function f0(Ur){return X(Kk0,D,0,[0,[0,zk0,Ur],0])}switch(A[0]){case 0:return X(Jk0,D,A[1],0);case 1:return f0(C1([0,D,A[1]]));case 2:return f0(q1([0,D,A[1]]));case 3:return f0(b2([0,D,A[1]]));case 4:return f0(wn([0,D,A[1]]));case 5:return f0(_n([0,D,A[1]]));case 6:var k0=A[1],R0=k0[2],Q0=k0[3],mx=k0[1]?Gk0:Wk0,Ix=R0[2],Rx=R0[1],nr=Ix[0]===0?C1([0,Rx,Ix[1]]):q1([0,Rx,Ix[1]]);return X(Qk0,D,Q0,[0,[0,$k0,Jx(mx)],[0,[0,Vk0,nr],0]]);case 7:return yx([0,D,A[1]]);case 8:return rx(A[1]);case 9:var zx=function(Ur){var Qr=Ur[2],T2=Qr[2],Rr=Qr[1],d2=Qr[3],o2=Ur[1],c2=0;switch(T2[0]){case 0:var E2=b2(T2[1]);break;case 1:var E2=C1(T2[1]);break;default:var E2=p0(T2[1])}var pe=[0,[0,Bk0,E2],c2],je=Rr[0]===0?rx(Rr[1]):zx(Rr[1]);return X(Yk0,o2,d2,[0,[0,Xk0,je],pe])};return zx(A[1]);case 10:var ur=A[1],kr=ur[3],rr=ur[1],Cx=[0,[0,Hk0,gx(Ex,ur[2])],0],gr=[0,[0,Zk0,pr(function(Ur){var Qr=Ur[2],T2=Qr[1],Rr=Qr[4],d2=Ur[1],o2=[0,[0,Lk0,!!Qr[3]],0],c2=[0,[0,Mk0,G(Qr[2])],o2];switch(T2[0]){case 0:var E2=b2(T2[1]);break;case 1:var E2=C1(T2[1]);break;default:var E2=p0(T2[1])}return X(Uk0,d2,Rr,[0,[0,qk0,E2],c2])},rr)],Cx];return X(x80,D,w2(kr),gr);case 11:var Er=A[1],Jr=Er[3],Sr=Er[1],Gr=[0,[0,r80,gx(Ex,Er[2])],0],k2=[0,[0,e80,pr(function(Ur){return G(Ur[2])},Sr)],Gr];return X(t80,D,w2(Jr),k2);case 12:var P2=A[1],Dr=P2[2];return X(u80,D,Dr,[0,[0,n80,pr(G,P2[1])],0]);default:var m2=A[1],r2=m2[2],Ar=m2[3],wr=m2[1],f2=r2[0]===0?p0(r2[1]):yx([0,r2[1],r2[2]]);return X(c80,D,Ar,[0,[0,f80,G(wr)],[0,[0,i80,f2],0]])}}function rx(Y){var A=Y[1];return X(a80,A,0,[0,[0,s80,p0(Y)],0])}function yx(Y){var A=Y[2],D=A[3],f0=A[2],k0=Y[1],R0=[0,[0,o80,Jx(Ze(A[1]))],0];return X(l80,k0,D,[0,[0,v80,p0(f0)],R0])}function Ex(Y){var A=Y[2],D=A[2],f0=Y[1];return X(k80,f0,D,[0,[0,p80,gx(yx,A[1])],0])}function nx(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[10],R0=A[9],Q0=A[8],mx=A[7],Ix=A[5],Rx=A[4],nr=f0[2][4],zx=A[1],ur=Y[1],kr=D[0]===0?D[1]:Tx(P80),rr=S1(w2(nr),k0),Cx=[0,[0,I80,gx(d1,R0)],0],gr=[0,[0,j80,!1],[0,[0,N80,qr(Q0)],Cx]],Er=[0,[0,D80,!!Rx],[0,[0,O80,!!Ix],[0,[0,C80,gx(_o,mx)],gr]]],Jr=[0,[0,F80,Yx(kr)],Er],Sr=[0,[0,R80,ux(f0)],Jr];return X(M80,ur,rr,[0,[0,L80,gx(p0,zx)],Sr])}function p0(Y){var A=Y[2];return X(X80,Y[1],A[2],[0,[0,B80,Jx(A[1])],[0,[0,U80,j1],[0,[0,q80,!1],0]]])}function Fx(Y){var A=Y[2];return X(J80,Y[1],A[2],[0,[0,K80,Jx(A[1])],[0,[0,z80,j1],[0,[0,Y80,!1],0]]])}function Sx(Y,A){var D=A[1][2],f0=D[2],k0=D[1],R0=[0,[0,G80,!!A[3]],0];return X($80,Y,f0,[0,[0,V80,Jx(k0)],[0,[0,W80,ml(H1,A[2])],R0]])}function bx(Y){return pr(dt,Y[2][1])}function B0(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Q80,pr(Px,A[2])],0];return X(Z80,k0,D,[0,[0,H80,gx(G0,f0)],R0])}function Wx(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,xm0,Yx(A[2])],0];return X(em0,k0,D,[0,[0,rm0,gx(dr,f0)],R0])}function Yx(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,tm0,Gx(A[1])],0];return X(nm0,f0,w2(D),k0)}function ax(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[4],R0=A[3],Q0=Y[1],mx=Yr(f0[1],D[1]),Ix=[0,[0,um0,Jx(Ze(R0))],0];return X(fm0,Q0,k0,[0,[0,im0,Sx(mx,[0,f0,[1,D],0])],Ix])}function Qx(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[4],R0=A[3],Q0=Y[1],mx=Yr(f0[1],D[1]),Ix=D[2][2];x:{if(Ix[0]===12){var Rx=Ix[1][5];if(typeof Rx=="number"&&!Rx){var nr=0,zx=cm0;break x}}var nr=[0,[0,sm0,gx(_o,R0)],0],zx=am0}return X(zx,Q0,k0,Mx([0,[0,om0,Sx(mx,[0,f0,[1,D],0])],0],nr))}function kx(Y){var A=Y[2],D=A[6],f0=A[4],k0=A[7],R0=A[5],Q0=A[3],mx=A[2],Ix=A[1],Rx=Y[1],nr=$2(f0?[0,Zr(f0[1]),0]:0),zx=D?pr(U0,D[1][2][1]):$2(0),ur=[0,[0,pm0,nr],[0,[0,lm0,zx],[0,[0,vm0,pr(Zr,R0)],0]]],kr=[0,[0,km0,bn(0,Q0)],ur],rr=[0,[0,mm0,gx(d1,mx)],kr];return X(dm0,Rx,k0,[0,[0,hm0,p0(Ix)],rr])}function tr(Y){var A=Y[2],D=A[3],f0=Y[1],k0=A[5],R0=A[4],Q0=A[2],mx=A[1],Ix=S1(w2(D[2][3]),k0),Rx=D[2],nr=Rx[1],zx=Rx[2],ur=[0,[0,ym0,gx(d1,Q0)],0],kr=[0,[0,gm0,Pa(R0)],ur],rr=[0,[0,wm0,sr(nr)],kr],Cx=[0,[0,_m0,gx(Mr,zx)],rr],gr=[0,[0,bm0,sr(nr)],Cx];return X(Em0,f0,Ix,[0,[0,Tm0,p0(mx)],gr])}function sr(Y){return $2(vs(function(A){var D=A[2];return a2(0,D[3],A[1],[0,D[1]],D[2][2])},Y))}function Mr(Y){var A=Y[2],D=A[4],f0=A[3],k0=A[2],R0=Y[1];return a2(D,f0,R0,f5(function(Q0){return[0,Q0]},A[1]),k0)}function a2(Y,A,D,f0,k0){if(f0)var R0=f0[1],Q0=R0[0]===0?gx(p0,[0,R0[1]]):gx(b2,[0,R0[1]]),mx=Q0;else var mx=gx(p0,0);return X(Dm0,D,Y,[0,[0,Om0,mx],[0,[0,Cm0,yr(k0)],[0,[0,jm0,!!A],0]]])}function _2(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Fm0,Cr(A[2])],0];return X(Lm0,k0,D,[0,[0,Rm0,p0(f0)],R0])}function i2(Y){return Y?Ym0:zm0}function Q2(Y){if(!Y)return $2(0);var A=Y[1];if(A[0]===0)return pr(Yh,A[1]);var D=A[1],f0=D[2],k0=D[1];return $2(f0?[0,X(Jm0,k0,0,[0,[0,Km0,p0(f0[1])],0]),0]:0)}function jx(Y){var A=Y[2],D=A[4],f0=A[2],k0=A[1],R0=Y[1],Q0=[0,[0,Qm0,yr(A[3])],0],mx=[0,[0,Hm0,gx(d1,f0)],Q0];return X(x50,R0,D,[0,[0,Zm0,p0(k0)],mx])}function _(Y,A){var D=A[2],f0=D[5],k0=D[4],R0=D[3],Q0=D[2],mx=D[1],Ix=A[1],Rx=Y?r50:e50,nr=[0,[0,t50,gx(yr,k0)],0],zx=[0,[0,n50,gx(yr,R0)],nr],ur=[0,[0,u50,gx(d1,Q0)],zx];return X(Rx,Ix,f0,[0,[0,i50,p0(mx)],ur])}function V(Y,A){var D=A[2],f0=D[7],k0=D[5],R0=D[4],Q0=D[2],mx=D[6],Ix=D[3],Rx=D[1],nr=A[1];if(R0)var zx=R0[1][2],ur=zx[2],kr=zx[1],rr=S1(zx[3],f0),Cx=ur,gr=[0,kr];else var rr=f0,Cx=0,gr=0;if(k0)var Er=k0[1][2],Jr=Er[1],Sr=S1(Er[2],rr),Gr=Sr,k2=pr(U0,Jr);else var Gr=rr,k2=$2(0);var P2=[0,[0,a50,k2],[0,[0,s50,pr(lx,mx)],0]],Dr=[0,[0,o50,gx(As,Cx)],P2],m2=[0,[0,v50,gx(G0,gr)],Dr],r2=[0,[0,l50,gx(d1,Ix)],m2],Ar=Q0[2],wr=Ar[2],f2=Q0[1],Ur=[0,[0,p50,X(_50,f2,wr,[0,[0,w50,pr(ox,Ar[1])],0])],r2];return X(Y,nr,Gr,[0,[0,k50,gx(p0,Rx)],Ur])}function lx(Y){var A=Y[2],D=A[2],f0=Y[1];return X(h50,f0,D,[0,[0,m50,G0(A[1])],0])}function U0(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,d50,gx(As,A[2])],0];return X(g50,f0,0,[0,[0,y50,p0(D)],k0])}function ox(Y){switch(Y[0]){case 0:var A=Y[1],D=A[2],f0=D[6],k0=D[2],R0=D[5],Q0=D[4],mx=D[3],Ix=D[1],Rx=A[1];switch(k0[0]){case 0:var kr=f0,rr=0,Cx=b2(k0[1]);break;case 1:var kr=f0,rr=0,Cx=C1(k0[1]);break;case 2:var kr=f0,rr=0,Cx=q1(k0[1]);break;case 3:var kr=f0,rr=0,Cx=p0(k0[1]);break;case 4:var kr=f0,rr=0,Cx=Fx(k0[1]);break;default:var nr=k0[1][2],zx=nr[1],ur=S1(nr[2],f0),kr=ur,rr=1,Cx=G0(zx)}switch(Ix){case 0:var gr=b50;break;case 1:var gr=T50;break;case 2:var gr=E50;break;default:var gr=S50}var Er=[0,[0,N50,Jx(gr)],[0,[0,I50,!!Q0],[0,[0,P50,!!rr],[0,[0,A50,pr(lx,R0)],0]]]];return X(O50,Rx,kr,[0,[0,C50,Cx],[0,[0,j50,nx(mx)],Er]]);case 1:var Jr=Y[1],Sr=Jr[2],Gr=Sr[7],k2=Sr[6],P2=Sr[2],Dr=Sr[1],m2=Sr[5],r2=Sr[4],Ar=Sr[3],wr=Jr[1];switch(Dr[0]){case 0:var Rr=Gr,d2=0,o2=b2(Dr[1]);break;case 1:var Rr=Gr,d2=0,o2=C1(Dr[1]);break;case 2:var Rr=Gr,d2=0,o2=q1(Dr[1]);break;case 3:var Rr=Gr,d2=0,o2=p0(Dr[1]);break;case 4:var f2=Tx(Y50),Rr=f2[3],d2=f2[2],o2=f2[1];break;default:var Ur=Dr[1][2],Qr=Ur[1],T2=S1(Ur[2],Gr),Rr=T2,d2=1,o2=G0(Qr)}if(typeof P2=="number")if(P2)var c2=0,E2=0;else var c2=1,E2=0;else var c2=0,E2=[0,P2[1]];var pe=c2?[0,[0,z50,!!c2],0]:0,je=k2===0?0:[0,[0,K50,pr(lx,k2)],0],xt=Mx(je,pe),U1=[0,[0,W50,!!d2],[0,[0,G50,!!r2],[0,[0,J50,gx(yt,m2)],0]]],e2=[0,[0,V50,ml(H1,Ar)],U1];return X(H50,wr,Rr,Mx([0,[0,Q50,o2],[0,[0,$50,gx(G0,E2)],e2]],xt));default:var Z1=Y[1],R2=Z1[2],wt=R2[6],O1=R2[2],_t=R2[7],Wt=R2[5],rt=R2[4],et=R2[3],Ox=R2[1],tt=Z1[1];if(typeof O1=="number")if(O1)var xe=0,v1=0;else var xe=1,v1=0;else var xe=0,v1=[0,O1[1]];var Ce=xe?[0,[0,D50,!!xe],0]:0,Oe=wt===0?0:[0,[0,F50,pr(lx,wt)],0],nt=Mx(Oe,Ce),ut=[0,[0,M50,!1],[0,[0,L50,!!rt],[0,[0,R50,gx(yt,Wt)],0]]],it=[0,[0,q50,ml(H1,et)],ut],r1=[0,[0,U50,gx(G0,v1)],it];return X(X50,tt,_t,Mx([0,[0,B50,Fx(Ox)],r1],nt))}}function wx(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[1],R0=Y[1],Q0=A[4],mx=k0[0]===0?p0(k0[1]):b2(k0[1]);if(D)var Ix=[0,[0,fh0,G0(D[1])],0],Rx=X(sh0,R0,0,[0,[0,ch0,dr(f0)],Ix]);else var Rx=dr(f0);return X(lh0,R0,0,[0,[0,vh0,mx],[0,[0,oh0,Rx],[0,[0,ah0,!!Q0],0]]])}function Cr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[4],R0=[0,[0,jh0,!!f0[2]],[0,[0,Nh0,!!f0[3]],0]],Q0=[0,[0,Ch0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,Ah0,wn(wr[2])],0];return X(Ih0,Ur,0,[0,[0,Ph0,p0(f2)],Qr])},f0[1])],R0];return X(Oh0,D,w2(k0),Q0);case 1:var mx=A[1],Ix=mx[4],Rx=[0,[0,Fh0,!!mx[2]],[0,[0,Dh0,!!mx[3]],0]],nr=[0,[0,Rh0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,Th0,C1(wr[2])],0];return X(Sh0,Ur,0,[0,[0,Eh0,p0(f2)],Qr])},mx[1])],Rx];return X(Lh0,D,w2(Ix),nr);case 2:var zx=A[1],ur=zx[1],kr=zx[4],rr=zx[3],Cx=zx[2],gr=ur[0]===0?vs(function(Ar){var wr=Ar[1];return X(bh0,wr,0,[0,[0,_h0,p0(Ar[2][1])],0])},ur[1]):vs(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,yh0,b2(wr[2])],0];return X(wh0,Ur,0,[0,[0,gh0,p0(f2)],Qr])},ur[1]),Er=[0,[0,Uh0,$2(gr)],[0,[0,qh0,!!Cx],[0,[0,Mh0,!!rr],0]]];return X(Bh0,D,w2(kr),Er);case 3:var Jr=A[1],Sr=Jr[3],Gr=[0,[0,Xh0,!!Jr[2]],0],k2=[0,[0,Yh0,pr(function(Ar){var wr=Ar[1];return X(dh0,wr,0,[0,[0,hh0,p0(Ar[2][1])],0])},Jr[1])],Gr];return X(zh0,D,w2(Sr),k2);default:var P2=A[1],Dr=P2[4],m2=[0,[0,Jh0,!!P2[2]],[0,[0,Kh0,!!P2[3]],0]],r2=[0,[0,Gh0,pr(function(Ar){var wr=Ar[2],f2=wr[1],Ur=Ar[1],Qr=[0,[0,ph0,q1(wr[2])],0];return X(mh0,Ur,0,[0,[0,kh0,p0(f2)],Qr])},P2[1])],m2];return X(Wh0,D,w2(Dr),r2)}}function Hx(Y){var A=Y[2],D=A[5],f0=A[4],k0=A[2],R0=A[1],Q0=Y[1],mx=[0,[0,Hh0,pr(Zr,A[3])],0],Ix=[0,[0,Zh0,bn(0,f0)],mx],Rx=[0,[0,xd0,gx(d1,k0)],Ix];return X(ed0,Q0,D,[0,[0,rd0,p0(R0)],Rx])}function Zr(Y){var A=Y[2],D=A[1],f0=A[3],k0=A[2],R0=Y[1],Q0=D[0]===0?p0(D[1]):Ea(D[1]);return X(ud0,R0,f0,[0,[0,nd0,Q0],[0,[0,td0,gx(As,k0)],0]])}function dr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=A[1],k0=f0[3],R0=f0[1],Q0=[0,[0,id0,ml(H1,f0[2])],0],mx=[0,[0,fd0,pr(H2,R0)],Q0];return X(cd0,D,w2(k0),mx);case 1:var Ix=A[1],Rx=Ix[3],nr=Ix[1],zx=[0,[0,sd0,ml(H1,Ix[2])],0],ur=[0,[0,ad0,pr(Zx,nr)],zx];return X(od0,D,w2(Rx),ur);case 2:return Sx(D,A[1]);default:return G0(A[1])}}function Or(Y){var A=Y[2],D=A[2],f0=A[1],k0=Y[1];if(!D)return dr(f0);var R0=[0,[0,vd0,G0(D[1])],0];return X(pd0,k0,0,[0,[0,ld0,dr(f0)],R0])}function x2(Y){var A=Y[2],D=A[2],f0=Y[1];return X(hd0,f0,D,[0,[0,md0,Qo],[0,[0,kd0,H1(A[1])],0]])}function ux(Y){var A=Y[2],D=A[3],f0=A[2],k0=A[1];if(D){var R0=D[1],Q0=R0[2],mx=Q0[2],Ix=R0[1],Rx=X(yd0,Ix,mx,[0,[0,dd0,dr(Q0[1])],0]),nr=ix([0,Rx,c5(Or,f0)]),zx=k0?[0,x2(k0[1]),nr]:nr;return $2(zx)}var ur=vs(Or,f0),kr=k0?[0,x2(k0[1]),ur]:ur;return $2(kr)}function Lx(Y,A){var D=A[2];return X(wd0,Y,D,[0,[0,gd0,dr(A[1])],0])}function Zx(Y){switch(Y[0]){case 0:var A=Y[1],D=A[2],f0=D[2],k0=D[1],R0=A[1];if(!f0)return dr(k0);var Q0=[0,[0,_d0,G0(f0[1])],0];return X(Td0,R0,0,[0,[0,bd0,dr(k0)],Q0]);case 1:var mx=Y[1];return Lx(mx[1],mx[2]);default:return j1}}function qr(Y){switch(Y[0]){case 0:return j1;case 1:return H1(Y[1]);default:var A=Y[1],D=A[2],f0=A[1];return X(Mw0,f0,0,[0,[0,Lw0,Ta([0,D[1],D[2]])],0])}}function Y2(Y){if(Y[0]===0){var A=Y[1],D=A[2],f0=A[1];switch(D[0]){case 0:var k0=D[3],R0=D[1],rr=0,Cx=k0,gr=0,Er=Ed0,Jr=G0(D[2]),Sr=R0;break;case 1:var Q0=D[2],mx=D[1],rr=0,Cx=0,gr=1,Er=Sd0,Jr=nx([0,Q0[1],Q0[2]]),Sr=mx;break;case 2:var Ix=D[2],Rx=D[3],nr=D[1],rr=Rx,Cx=0,gr=0,Er=Ad0,Jr=nx([0,Ix[1],Ix[2]]),Sr=nr;break;default:var zx=D[2],ur=D[3],kr=D[1],rr=ur,Cx=0,gr=0,Er=Pd0,Jr=nx([0,zx[1],zx[2]]),Sr=kr}switch(Sr[0]){case 0:var m2=rr,r2=0,Ar=b2(Sr[1]);break;case 1:var m2=rr,r2=0,Ar=C1(Sr[1]);break;case 2:var m2=rr,r2=0,Ar=q1(Sr[1]);break;case 3:var m2=rr,r2=0,Ar=p0(Sr[1]);break;case 4:var Gr=Tx(Id0),m2=Gr[3],r2=Gr[2],Ar=Gr[1];break;default:var k2=Sr[1][2],P2=k2[1],Dr=S1(k2[2],rr),m2=Dr,r2=1,Ar=G0(P2)}return X(Rd0,f0,m2,[0,[0,Fd0,Ar],[0,[0,Dd0,Jr],[0,[0,Od0,Jx(Er)],[0,[0,Cd0,!!gr],[0,[0,jd0,!!Cx],[0,[0,Nd0,!!r2],0]]]]]])}var wr=Y[1],f2=wr[2],Ur=f2[2],Qr=wr[1];return X(Md0,Qr,Ur,[0,[0,Ld0,G0(f2[1])],0])}function H2(Y){if(Y[0]!==0){var A=Y[1];return Lx(A[1],A[2])}var D=Y[1],f0=D[2],k0=f0[3],R0=f0[2],Q0=f0[1],mx=f0[4],Ix=D[1];switch(Q0[0]){case 0:var zx=0,ur=0,kr=b2(Q0[1]);break;case 1:var zx=0,ur=0,kr=C1(Q0[1]);break;case 2:var zx=0,ur=0,kr=q1(Q0[1]);break;case 3:var zx=0,ur=0,kr=p0(Q0[1]);break;default:var Rx=Q0[1][2],nr=Rx[2],zx=nr,ur=1,kr=G0(Rx[1])}if(k0)var rr=k0[1],Cx=Yr(R0[1],rr[1]),gr=[0,[0,qd0,G0(rr)],0],Er=X(Bd0,Cx,0,[0,[0,Ud0,dr(R0)],gr]);else var Er=dr(R0);return X(Wd0,Ix,zx,[0,[0,Gd0,kr],[0,[0,Jd0,Er],[0,[0,Kd0,Gc],[0,[0,zd0,!1],[0,[0,Yd0,!!mx],[0,[0,Xd0,!!ur],0]]]]]])}function Kt(Y){var A=Y[2],D=A[2],f0=Y[1];return X($d0,f0,D,[0,[0,Vd0,G0(A[1])],0])}function dt(Y){return Y[0]===0?G0(Y[1]):Kt(Y[1])}function Jt(Y){switch(Y[0]){case 0:return G0(Y[1]);case 1:return Kt(Y[1]);default:return j1}}function C1(Y){var A=Y[2];return X(Zd0,Y[1],A[3],[0,[0,Hd0,A[1]],[0,[0,Qd0,Jx(A[2])],0]])}function q1(Y){var A=Y[2],D=A[2],f0=A[1],k0=A[3],R0=Y[1],Q0=f0?yM(O3,f0[1]):VM(xy0,HM(95,T1(D,0,Nx(D)-1|0)));return X(ny0,R0,k0,[0,[0,ty0,j1],[0,[0,ey0,Jx(Q0)],[0,[0,ry0,Jx(D)],0]]])}function b2(Y){var A=Y[2];return X(fy0,Y[1],A[3],[0,[0,iy0,Jx(A[1])],[0,[0,uy0,Jx(A[2])],0]])}function wn(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D?cy0:sy0;return X(vy0,k0,f0,[0,[0,oy0,!!D],[0,[0,ay0,Jx(R0)],0]])}function _n(Y){return X(wy0,Y[1],Y[2],[0,[0,gy0,j1],[0,[0,yy0,uv],0]])}function bs(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,_y0,pr(G0,A[2])],0];return X(Ty0,k0,D,[0,[0,by0,pr(le,f0)],R0])}function le(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1];return X(Iy0,k0,0,[0,[0,Py0,_s([0,[0,Sy0,Jx(D[1])],[0,[0,Ey0,Jx(D[2])],0]])],[0,[0,Ay0,!!f0],0]])}function Ze(Y){switch(Y){case 0:return Oy0;case 1:return Dy0;default:return Fy0}}function Ts(Y){var A=Y[2],D=A[3],f0=A[1],k0=Y[1],R0=[0,[0,Ry0,Jx(Ze(A[2]))],0];return X(My0,k0,D,[0,[0,Ly0,pr(Lv,f0)],R0])}function Lv(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,qy0,gx(G0,A[2])],0];return X(By0,f0,0,[0,[0,Uy0,dr(D)],k0])}function yt(Y){var A=Y[2],D=A[2],f0=Y[1];switch(A[1]){case 0:var k0=Xy0;break;case 1:var k0=Yy0;break;case 2:var k0=zy0;break;case 3:var k0=Ky0;break;case 4:var k0=Jy0;break;default:var k0=Gy0}return X(Vy0,f0,D,[0,[0,Wy0,Jx(k0)],0])}function yr(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return X($y0,D,A[1],0);case 1:return X(Qy0,D,A[1],0);case 2:return X(Hy0,D,A[1],0);case 3:return X(Zy0,D,A[1],0);case 4:return X(x90,D,A[1],0);case 5:return X(e90,D,A[1],0);case 6:return X(t90,D,A[1],0);case 7:return X(n90,D,A[1],0);case 8:return X(u90,D,A[2],0);case 9:return X(r90,D,A[1],0);case 10:return X(Dw0,D,A[1],0);case 11:var f0=A[1],k0=f0[2];return X(f90,D,k0,[0,[0,i90,yr(f0[1])],0]);case 12:return Es([0,D,A[1]]);case 13:var R0=A[1],Q0=R0[2],mx=R0[4],Ix=R0[3],Rx=R0[1],nr=S1(w2(Q0[2][3]),mx),zx=Q0[2],ur=zx[2],kr=zx[1],rr=[0,[0,Sm0,gx(d1,Rx)],0],Cx=[0,[0,Am0,Pa(Ix)],rr],gr=[0,[0,Pm0,gx(Mr,ur)],Cx];return X(Nm0,D,nr,[0,[0,Im0,sr(kr)],gr]);case 14:return bn(1,[0,D,A[1]]);case 15:var Er=A[1],Jr=Er[3],Sr=Er[2],Gr=[0,[0,wg0,bn(0,Er[1])],0];return X(bg0,D,Jr,[0,[0,_g0,pr(Zr,Sr)],Gr]);case 16:var k2=A[1],P2=k2[2];return X(Eg0,D,P2,[0,[0,Tg0,yr(k2[1])],0]);case 17:var Dr=A[1],m2=Dr[5],r2=Dr[3],Ar=Dr[2],wr=Dr[1],f2=[0,[0,Sg0,yr(Dr[4])],0],Ur=[0,[0,Ag0,yr(r2)],f2],Qr=[0,[0,Pg0,yr(Ar)],Ur];return X(Ng0,D,m2,[0,[0,Ig0,yr(wr)],Qr]);case 18:var T2=A[1],Rr=T2[2];return X(Cg0,D,Rr,[0,[0,jg0,Ia(T2[1])],0]);case 19:return ko([0,D,A[1]]);case 20:var d2=A[1],o2=d2[3];return X(Bg0,D,o2,Sa(d2));case 21:var c2=A[1],E2=c2[1],pe=E2[3],je=[0,[0,Xg0,!!c2[2]],0];return X(Yg0,D,pe,Mx(Sa(E2),je));case 22:var xt=A[1],U1=xt[1],e2=xt[2];return X(Kg0,D,e2,[0,[0,zg0,pr(yr,[0,U1[1],[0,U1[2],U1[3]]])],0]);case 23:var Z1=A[1],R2=Z1[1],wt=Z1[2];return X(Gg0,D,wt,[0,[0,Jg0,pr(yr,[0,R2[1],[0,R2[2],R2[3]]])],0]);case 24:var O1=A[1],_t=O1[2],Wt=O1[3],rt=O1[1],et=_t?[0,[0,Wg0,As(_t[1])],0]:0;return X($g0,D,Wt,[0,[0,Vg0,Aa(rt)],et]);case 25:var Ox=A[1],tt=Ox[2];return X(rw0,D,tt,[0,[0,xw0,yr(Ox[1])],0]);case 26:return mo(D,A[1]);case 27:var xe=A[1];return Ss(D,xe[2],cw0,xe[1]);case 28:var v1=A[1],Ce=v1[3],Oe=[0,[0,sw0,!!v1[2]],0];return X(ow0,D,Ce,[0,[0,aw0,pr(function(Vt){var D1=Vt[2],Tn=Vt[1];switch(D1[0]){case 0:return yr(D1[1]);case 1:var ke=D1[1],De=ke[2],$t=ke[1],Ns=[0,[0,vw0,!!ke[4]],0],En=[0,[0,lw0,gx(yt,ke[3])],Ns],js=[0,[0,pw0,yr(De)],En];return X(mw0,Tn,0,[0,[0,kw0,p0($t)],js]);default:var re=D1[1],Et=re[1],Cs=[0,[0,hw0,yr(re[2])],0];return X(yw0,Tn,0,[0,[0,dw0,gx(p0,Et)],Cs])}},v1[1])],Oe]);case 29:var nt=A[1];return X(_w0,D,nt[3],[0,[0,ww0,Jx(nt[1])],[0,[0,gw0,Jx(nt[2])],0]]);case 30:var ut=A[1];return X(Ew0,D,ut[3],[0,[0,Tw0,ut[1]],[0,[0,bw0,Jx(ut[2])],0]]);case 31:var it=A[1];return X(Pw0,D,it[3],[0,[0,Aw0,j1],[0,[0,Sw0,Jx(it[2])],0]]);case 32:var r1=A[1],bt=r1[1],Tt=r1[2],Is=0,ft=bt?Iw0:Nw0;return X(Ow0,D,Tt,[0,[0,Cw0,!!bt],[0,[0,jw0,Jx(ft)],Is]]);case 33:return X(c90,D,A[1],0);case 34:return X(s90,D,A[1],0);default:return X(a90,D,A[1],0)}}function Ta(Y){var A=Y[2],D=A[2],f0=A[3],k0=D[2],R0=D[1],Q0=Y[1];switch(A[1]){case 0:var mx=j1;break;case 1:var mx=b3;break;default:var mx=m3}var Ix=[0,[0,v90,gx(yr,k0)],[0,[0,o90,mx],0]],Rx=[0,[0,l90,p0(R0)],Ix];return X(p90,Q0,w2(f0),Rx)}function Es(Y){var A=Y[2],D=A[5],f0=A[3],k0=A[2][2],R0=A[4],Q0=k0[3],mx=k0[2],Ix=k0[1],Rx=A[1],nr=Y[1],zx=S1(w2(k0[4]),R0),ur=D===0?k90:m90,kr=D===0?0:[0,[0,h90,gx(qv,Ix)],0],rr=[0,[0,d90,gx(d1,Rx)],0],Cx=[0,[0,y90,gx(Mv,Q0)],rr],gr=f0[0]===0?yr(f0[1]):Ta(f0[1]);return X(ur,nr,zx,Mx([0,[0,w90,pr(function(Er){return gt(0,Er)},mx)],[0,[0,g90,gr],Cx]],kr))}function gt(Y,A){var D=A[2],f0=D[1],k0=A[1],R0=[0,[0,_90,!!D[3]],0],Q0=[0,[0,b90,yr(D[2])],R0];return X(E90,k0,Y,[0,[0,T90,gx(p0,f0)],Q0])}function Mv(Y){var A=Y[2];return gt(A[2],A[1])}function qv(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,A90,yr(A[1][2])],[0,[0,S90,!1],0]];return X(I90,f0,D,[0,[0,P90,gx(p0,0)],k0])}function bn(Y,A){var D=A[2],f0=D[4],k0=D[2],R0=D[1],Q0=A[1],mx=m1(function(gr,Er){var Jr=gr[4],Sr=gr[3],Gr=gr[2],k2=gr[1];switch(Er[0]){case 0:var P2=Er[1],Dr=P2[2],m2=Dr[2],r2=Dr[1],Ar=Dr[8],wr=Dr[7],f2=Dr[6],Ur=Dr[5],Qr=Dr[4],T2=Dr[3],Rr=P2[1];switch(r2[0]){case 0:var d2=b2(r2[1]);break;case 1:var d2=C1(r2[1]);break;case 2:var d2=q1(r2[1]);break;case 3:var d2=p0(r2[1]);break;case 4:var d2=Tx(M90);break;default:var d2=Tx(q90)}switch(m2[0]){case 0:var E2=U90,pe=yr(m2[1]);break;case 1:var o2=m2[1],E2=B90,pe=Es([0,o2[1],o2[2]]);break;default:var c2=m2[1],E2=X90,pe=Es([0,c2[1],c2[2]])}return[0,[0,X(Q90,Rr,Ar,[0,[0,$90,d2],[0,[0,V90,pe],[0,[0,W90,!!f2],[0,[0,G90,!!T2],[0,[0,J90,!!Qr],[0,[0,K90,!!Ur],[0,[0,z90,gx(yt,wr)],[0,[0,Y90,Jx(E2)],0]]]]]]]]),k2],Gr,Sr,Jr];case 1:var je=Er[1],xt=je[2],U1=xt[2],e2=je[1];return[0,[0,X(Z90,e2,U1,[0,[0,H90,yr(xt[1])],0]),k2],Gr,Sr,Jr];case 2:var Z1=Er[1],R2=Z1[2],wt=R2[6],O1=R2[4],_t=R2[3],Wt=R2[2],rt=R2[1],et=Z1[1],Ox=[0,[0,rg0,!!O1],[0,[0,xg0,gx(yt,R2[5])],0]],tt=[0,[0,eg0,yr(_t)],Ox],xe=[0,[0,tg0,yr(Wt)],tt];return[0,k2,[0,X(ug0,et,wt,[0,[0,ng0,gx(p0,rt)],xe]),Gr],Sr,Jr];case 3:var v1=Er[1],Ce=v1[2],Oe=Ce[3],nt=v1[1],ut=[0,[0,ig0,!!Ce[2]],0];return[0,k2,Gr,[0,X(cg0,nt,Oe,[0,[0,fg0,Es(Ce[1])],ut]),Sr],Jr];case 4:var it=Er[1],r1=it[2],bt=r1[6],Tt=r1[5],Is=r1[4],ft=r1[3],Vt=r1[1],D1=it[1],Tn=[0,[0,dg0,!!ft],[0,[0,hg0,!!Is],[0,[0,mg0,!!Tt],[0,[0,kg0,yr(r1[2])],0]]]];return[0,k2,Gr,Sr,[0,X(gg0,D1,bt,[0,[0,yg0,p0(Vt)],Tn]),Jr]];default:var ke=Er[1],De=ke[2],$t=De[6],Ns=De[4],En=De[3],js=De[2],re=De[1],Et=ke[1],Cs=0;switch(De[5]){case 0:var Sn="PlusOptional";break;case 1:var Sn="MinusOptional";break;case 2:var Sn="Optional";break;default:var Sn=j1}var Fe=[0,[0,ag0,gx(yt,Ns)],[0,[0,sg0,Sn],Cs]],Os=[0,[0,og0,yr(En)],Fe],Ds=[0,[0,vg0,yr(js)],Os];return[0,[0,X(pg0,Et,$t,[0,[0,lg0,Ia(re)],Ds]),k2],Gr,Sr,Jr]}},N90,D[3]),Ix=mx[3],Rx=mx[2],nr=mx[1],zx=[0,[0,j90,$2(ix(mx[4]))],0],ur=[0,[0,C90,$2(ix(Ix))],zx],kr=[0,[0,O90,$2(ix(Rx))],ur],rr=[0,[0,F90,!!R0],[0,[0,D90,$2(ix(nr))],kr]],Cx=Y?[0,[0,R90,!!k0],rr]:rr;return X(L90,Q0,w2(f0),Cx)}function Ea(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D[0]===0?p0(D[1]):Ea(D[1]);return X(Fg0,k0,0,[0,[0,Dg0,R0],[0,[0,Og0,p0(f0)],0]])}function ko(Y){var A=Y[2],D=A[1],f0=A[3],k0=A[2],R0=Y[1],Q0=D[0]===0?p0(D[1]):Ea(D[1]);return X(Mg0,R0,f0,[0,[0,Lg0,Q0],[0,[0,Rg0,gx(As,k0)],0]])}function Sa(Y){var A=Y[1],D=[0,[0,qg0,yr(Y[2])],0];return[0,[0,Ug0,yr(A)],D]}function Aa(Y){if(Y[0]===0)return p0(Y[1]);var A=Y[1],D=A[2],f0=D[2],k0=A[1],R0=Aa(D[1]);return X(Zg0,k0,0,[0,[0,Hg0,R0],[0,[0,Qg0,p0(f0)],0]])}function Pa(Y){return Y[0]===0?j1:mo(Y[1],Y[2])}function mo(Y,A){var D=A[3],f0=A[2];switch(A[4]){case 0:var k0=ew0;break;case 1:var k0=tw0;break;default:var k0=nw0}return Ss(Y,D,k0,f0)}function Ss(Y,A,D,f0){return X(fw0,Y,A,[0,[0,iw0,Jx(D)],[0,[0,uw0,yr(f0)],0]])}function H1(Y){var A=Y[1];return X(Rw0,A,0,[0,[0,Fw0,yr(Y[2])],0])}function d1(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,qw0,pr(Ia,A[1])],0];return X(Uw0,f0,w2(D),k0)}function Ia(Y){var A=Y[2],D=A[1][2],f0=A[5],k0=A[4],R0=A[2],Q0=D[2],mx=D[1],Ix=Y[1],Rx=A[3]?[0,[0,Bw0,!0],0]:0,nr=[0,[0,Xw0,gx(yr,f0)],0],zx=[0,[0,Yw0,gx(yt,k0)],nr];return X(Jw0,Ix,Q0,Mx([0,[0,Kw0,Jx(mx)],[0,[0,zw0,ml(H1,R0)],zx]],Rx))}function As(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,Gw0,pr(yr,A[1])],0];return X(Ww0,f0,w2(D),k0)}function Gt(Y){var A=Y[2],D=A[2],f0=Y[1],k0=[0,[0,Vw0,pr(Uv,A[1])],0];return X($w0,f0,w2(D),k0)}function Uv(Y){if(Y[0]===0)return yr(Y[1]);var A=Y[1],D=A[1],f0=A[2][1];return ko([0,D,[0,[0,mn(0,[0,D,Qw0])],0,f0]])}function ho(Y){var A=Y[2],D=A[1],f0=A[4],k0=A[2],R0=Y[1],Q0=[0,[0,Hw0,pr(Na,A[3][2])],0],mx=[0,[0,Zw0,gx(dl,k0)],Q0],Ix=D[2],Rx=Ix[2],nr=Ix[4],zx=Ix[3],ur=Ix[1],kr=D[1],rr=Rx?[0,[0,i_0,Gt(Rx[1])],0]:0,Cx=[0,[0,c_0,pr(Xv,nr)],[0,[0,f_0,!!zx],0]];return X(r_0,R0,f0,[0,[0,x_0,X(a_0,kr,0,Mx([0,[0,s_0,yo(ur)],Cx],rr))],mx])}function Bv(Y){var A=Y[2],D=A[4],f0=A[3][2],k0=A[1],R0=Y[1],Q0=[0,[0,e_0,X(p_0,A[2],0,0)],0],mx=[0,[0,t_0,pr(Na,f0)],Q0];return X(u_0,R0,D,[0,[0,n_0,X(o_0,k0,0,0)],mx])}function Xv(Y){if(Y[0]===0){var A=Y[1],D=A[2],f0=D[1],k0=D[2],R0=A[1],Q0=f0[0]===0?Ps(f0[1]):yl(f0[1]);return X(h_0,R0,0,[0,[0,m_0,Q0],[0,[0,k_0,gx(go,k0)],0]])}var mx=Y[1],Ix=mx[2],Rx=Ix[2],nr=mx[1];return X(y_0,nr,Rx,[0,[0,d_0,G0(Ix[1])],0])}function dl(Y){var A=Y[1];return X(l_0,A,0,[0,[0,v_0,yo(Y[2][1])],0])}function Na(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:return ho([0,D,A[1]]);case 1:return Bv([0,D,A[1]]);case 2:return ja([0,D,A[1]]);case 3:var f0=A[1],k0=f0[2];return X(T_0,D,k0,[0,[0,b_0,G0(f0[1])],0]);default:var R0=A[1];return X(A_0,D,0,[0,[0,S_0,Jx(R0[1])],[0,[0,E_0,Jx(R0[2])],0]])}}function yo(Y){switch(Y[0]){case 0:return Ps(Y[1]);case 1:return yl(Y[1]);default:return Ca(Y[1])}}function go(Y){if(Y[0]===0){var A=Y[1];return b2([0,A[1],A[2]])}var D=Y[1];return ja([0,D[1],D[2]])}function ja(Y){var A=Y[2],D=A[1],f0=Y[1],k0=A[2],R0=D?G0(D[1]):X(g_0,[0,f0[1],[0,f0[2][1],f0[2][2]+1|0],[0,f0[3][1],f0[3][2]-1|0]],0,0);return X(__0,f0,w2(k0),[0,[0,w_0,R0],0])}function Ca(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1],R0=D[0]===0?Ps(D[1]):Ca(D[1]);return X(N_0,k0,0,[0,[0,I_0,R0],[0,[0,P_0,Ps(f0)],0]])}function yl(Y){var A=Y[2],D=A[1],f0=Y[1],k0=[0,[0,j_0,Ps(A[2])],0];return X(O_0,f0,0,[0,[0,C_0,Ps(D)],k0])}function Ps(Y){var A=Y[2];return X(F_0,Y[1],A[2],[0,[0,D_0,Jx(A[1])],0])}function Yh(Y){var A=Y[2],D=A[2],f0=A[1],k0=Y[1],R0=p0(D?D[1]:f0);return X(M_0,k0,0,[0,[0,L_0,p0(f0)],[0,[0,R_0,R0],0]])}function wo(Y){return pr(T4,Y)}function T4(Y){var A=Y[2],D=Y[1];if(A[1])var f0=A[2],k0=G_0;else var f0=A[2],k0=W_0;return X(k0,D,0,[0,[0,V_0,Jx(f0)],0])}function _o(Y){var A=Y[2],D=A[1],f0=A[2],k0=Y[1];if(D)var R0=[0,[0,$_0,G0(D[1])],0],Q0=Q_0;else var R0=0,Q0=H_0;return X(Q0,k0,f0,R0)}function gl(Y){var A=Y[2],D=Y[1],f0=[0,[0,Z_0,bx(Y[3])],0],k0=[0,[0,xb0,gx(Gt,A)],f0];return[0,[0,rb0,G0(D)],k0]}function E4(Y){var A=Y[2],D=Y[1];switch(A[0]){case 0:var f0=0,k0=p0(A[1]);break;case 1:var f0=0,k0=Fx(A[1]);break;default:var f0=1,k0=G0(A[1])}return[0,[0,nb0,G0(D)],[0,[0,tb0,k0],[0,[0,eb0,!!f0],0]]]}var bo=T0[2],S4=bo[2],zh=bo[4],Kh=bo[3],Jh=T0[1],Gh=Gx(bo[1]),A4=[0,[0,c60,Gh],[0,[0,f60,wo(zh)],0]];if(S4)var P4=S4[1],I4=Mx(A4,[0,[0,o60,X(a60,P4[1],0,[0,[0,s60,Jx(P4[2])],0])],0]);else var I4=A4;var wl=X(v60,Jh,Kh,I4);return wl.errors=pr(function(Y){var A=Y[1],D=[0,[0,ub0,Jx(mE0(Y[2]))],0];return _s([0,[0,ib0,JY(A)],D])},Mx(s0,zY[1])),T&&(wl[GO]=$2(c5(function(Y){var A=Y[2],D=Y[1],f0=Y[3],k0=[0,[0,so0,Jx(Yj(A))],0],R0=[0,oh(U,D[3]),0],Q0=[0,[0,ao0,$2([0,oh(U,D[2]),R0])],k0],mx=[0,[0,lo0,_s([0,[0,vo0,D[3][1]],[0,[0,oo0,D[3][2]],0]])],0],Ix=[0,[0,ho0,_s([0,[0,mo0,_s([0,[0,ko0,D[2][1]],[0,[0,po0,D[2][2]],0]])],mx])],Q0];switch(f0){case 0:var Rx=do0;break;case 1:var Rx=yo0;break;case 2:var Rx=go0;break;case 3:var Rx=wo0;break;case 4:var Rx=_o0;break;default:var Rx=bo0}return _s([0,[0,Eo0,Jx(IU(A))],[0,[0,To0,Jx(Rx)],Ix]])},F[1]))),wl}if(typeof fO<"u")var GY=fO;else{var WY={};ba.flow=WY;var GY=WY}GY.parse=Hz(function(x,r){try{var e=bE0(x,r);return e}catch(u){var t=U2(u);return t[1]===xO?YY(t[2]):YY(new wE0(Jx(qx(bb0,B6(t)))))}}),VN(O)})(globalThis)});var pO={};HY(pO,{parsers:()=>lO});var lO={};HY(lO,{flow:()=>oS0});var hz=ME0(ZY(),1);function qE0(o0,vx){let $x=new SyntaxError(o0+" ("+vx.loc.start.line+":"+vx.loc.start.column+")");return Object.assign($x,vx)}var xz=qE0;var UE0=(o0,vx,$x)=>{if(!(o0&&vx==null))return Array.isArray(vx)||typeof vx=="string"?vx[$x<0?vx.length+$x:$x]:vx.at($x)},cO=UE0;function BE0(o0){return Array.isArray(o0)&&o0.length>0}var rz=BE0;function Ht(o0){var Pr,lr,Ir;let vx=((Pr=o0.range)==null?void 0:Pr[0])??o0.start,$x=(Ir=((lr=o0.declaration)==null?void 0:lr.decorators)??o0.decorators)==null?void 0:Ir[0];return $x?Math.min(Ht($x),vx):vx}function La(o0){var vx;return((vx=o0.range)==null?void 0:vx[1])??o0.end}function XE0(o0){let vx=new Set(o0);return $x=>vx.has($x==null?void 0:$x.type)}var ez=XE0;var YE0=ez(["Block","CommentBlock","MultiLine"]),C4=YE0;function zE0(o0){let vx=`*${o0.value}*`.split(` +`);return vx.length>1&&vx.every($x=>$x.trimStart()[0]==="*")}var sO=zE0;function KE0(o0){return C4(o0)&&o0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(o0.value)}var tz=KE0;var O4=null;function D4(o0){if(O4!==null&&typeof O4.property){let vx=O4;return O4=D4.prototype=null,vx}return O4=D4.prototype=o0??Object.create(null),new D4}var JE0=10;for(let o0=0;o0<=JE0;o0++)D4();function aO(o0){return D4(o0)}function GE0(o0,vx="type"){aO(o0);function $x(Pr){let lr=Pr[vx],Ir=o0[lr];if(!Array.isArray(Ir))throw Object.assign(new Error(`Missing visitor keys for '${lr}'.`),{node:Pr});return Ir}return $x}var nz=GE0;var uz={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var WE0=nz(uz),iz=WE0;function oO(o0,vx){if(!(o0!==null&&typeof o0=="object"))return o0;if(Array.isArray(o0)){for(let Pr=0;Pr{var L2;(L2=Ir.leadingComments)!=null&&L2.some(tz)&&lr.add(Ht(Ir))}),o0=td(o0,Ir=>{if(Ir.type==="ParenthesizedExpression"){let{expression:L2}=Ir;if(L2.type==="TypeCastExpression")return L2.range=[...Ir.range],L2;let ne=Ht(Ir);if(!lr.has(ne))return L2.extra={...L2.extra,parenthesized:!0},L2}})}if(o0=td(o0,lr=>{switch(lr.type){case"LogicalExpression":if(fz(lr))return vO(lr);break;case"VariableDeclaration":{let Ir=cO(!1,lr.declarations,-1);Ir!=null&&Ir.init&&Pr[La(Ir)]!==";"&&(lr.range=[Ht(lr),La(Ir)]);break}case"TSParenthesizedType":return lr.typeAnnotation;case"TSTypeParameter":if(typeof lr.name=="string"){let Ir=Ht(lr);lr.name={type:"Identifier",name:lr.name,range:[Ir,Ir+lr.name.length]}}break;case"TopicReference":o0.extra={...o0.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(lr.types.length===1)return lr.types[0];break}}),rz(o0.comments)){let lr=cO(!1,o0.comments,-1);for(let Ir=o0.comments.length-2;Ir>=0;Ir--){let L2=o0.comments[Ir];La(L2)===Ht(lr)&&C4(L2)&&C4(lr)&&sO(L2)&&sO(lr)&&(o0.comments.splice(Ir+1,1),L2.value+="*//*"+lr.value,L2.range=[Ht(L2),La(lr)]),lr=L2}}return o0.type==="Program"&&(o0.range=[0,Pr.length]),o0}function fz(o0){return o0.type==="LogicalExpression"&&o0.right.type==="LogicalExpression"&&o0.operator===o0.right.operator}function vO(o0){return fz(o0)?vO({type:"LogicalExpression",operator:o0.operator,left:vO({type:"LogicalExpression",operator:o0.operator,left:o0.left,right:o0.right.left,range:[Ht(o0.left),La(o0.right.left)]}),right:o0.right.right,range:[Ht(o0),La(o0)]}):o0}var cz=VE0;var $E0=(o0,vx,$x,Pr)=>{if(!(o0&&vx==null))return vx.replaceAll?vx.replaceAll($x,Pr):$x.global?vx.replace($x,Pr):vx.split($x).join(Pr)},Dl=$E0;var QE0=/\*\/$/,HE0=/^\/\*\*?/,ZE0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,xS0=/(^|\s+)\/\/([^\n\r]*)/g,sz=/^(\r?\n)+/,rS0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,az=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,eS0=/(\r?\n|^) *\* ?/g,tS0=[];function oz(o0){let vx=o0.match(ZE0);return vx?vx[0].trimStart():""}function vz(o0){let vx=` +`;o0=Dl(!1,o0.replace(HE0,"").replace(QE0,""),eS0,"$1");let $x="";for(;$x!==o0;)$x=o0,o0=Dl(!1,o0,rS0,`${vx}$1 $2${vx}`);o0=o0.replace(sz,"").trimEnd();let Pr=Object.create(null),lr=Dl(!1,o0,az,"").replace(sz,"").trimEnd(),Ir;for(;Ir=az.exec(o0);){let L2=Dl(!1,Ir[2],xS0,"");if(typeof Pr[Ir[1]]=="string"||Array.isArray(Pr[Ir[1]])){let ne=Pr[Ir[1]];Pr[Ir[1]]=[...tS0,...Array.isArray(ne)?ne:[ne],L2]}else Pr[Ir[1]]=L2}return{comments:lr,pragmas:Pr}}function nS0(o0){if(!o0.startsWith("#!"))return"";let vx=o0.indexOf(` +`);return vx===-1?o0:o0.slice(0,vx)}var lz=nS0;function uS0(o0){let vx=lz(o0);vx&&(o0=o0.slice(vx.length+1));let $x=oz(o0),{pragmas:Pr,comments:lr}=vz($x);return{shebang:vx,text:o0,pragmas:Pr,comments:lr}}function pz(o0){let{pragmas:vx}=uS0(o0);return Object.prototype.hasOwnProperty.call(vx,"prettier")||Object.prototype.hasOwnProperty.call(vx,"format")}function iS0(o0){return o0=typeof o0=="function"?{parse:o0}:o0,{astFormat:"estree",hasPragma:pz,locStart:Ht,locEnd:La,...o0}}var kz=iS0;function fS0(o0){return o0.charAt(0)==="#"&&o0.charAt(1)==="!"?"//"+o0.slice(2):o0}var mz=fS0;var cS0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function sS0(o0){let{message:vx,loc:{start:$x,end:Pr}}=o0;return xz(vx,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:Pr.line,column:Pr.column+1}},cause:o0})}function aS0(o0){let vx=hz.default.parse(mz(o0),cS0),[$x]=vx.errors;if($x)throw sS0($x);return cz(vx,{text:o0})}var oS0=kz(aS0);var lA0=pO;export{lA0 as default,lO as parsers}; diff --git a/node_modules/prettier/plugins/glimmer.js b/node_modules/prettier/plugins/glimmer.js index 202645a6..9fd7fe48 100644 --- a/node_modules/prettier/plugins/glimmer.js +++ b/node_modules/prettier/plugins/glimmer.js @@ -1,20 +1,20 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var zt=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var ss=Object.prototype.hasOwnProperty;var Fr=t=>{throw TypeError(t)};var Gt=(t,e)=>{for(var r in e)zt(t,r,{get:e[r],enumerable:!0})},is=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ns(e))!ss.call(t,s)&&s!==r&&zt(t,s,{get:()=>e[s],enumerable:!(n=rs(e,s))||n.enumerable});return t};var as=t=>is(zt({},"__esModule",{value:!0}),t);var Mr=(t,e,r)=>e.has(t)||Fr("Cannot "+r);var $=(t,e,r)=>(Mr(t,e,"read from private field"),r?r.call(t):e.get(t)),Yt=(t,e,r)=>e.has(t)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Kt=(t,e,r,n)=>(Mr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var ba={};Gt(ba,{languages:()=>Sn,parsers:()=>Rr,printers:()=>ga});var os=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Wt=os;var ze="string",Ge="array",Ye="cursor",Le="indent",_e="align",Ke="trim",De="group",Oe="fill",Be="if-break",We="indent-if-break",$e="line-suffix",je="line-suffix-boundary",ee="line",Qe="label",Ie="break-parent",ft=new Set([Ye,Le,_e,Ke,De,Oe,Be,We,$e,je,ee,Qe,Ie]);function ls(t){if(typeof t=="string")return ze;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(ft.has(e))return e}var Xe=ls;var cs=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function us(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=cs([...ft].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var $t=class extends Error{name="InvalidDocError";constructor(e){super(us(e)),this.doc=e}},jt=$t;var zr=()=>{},be=zr,dt=zr;function R(t){return be(t),{type:Le,contents:t}}function hs(t,e){return be(e),{type:_e,contents:e,n:t}}function q(t,e={}){return be(t),dt(e.expandedStates,!0),{type:De,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Qt(t){return hs(-1,t)}function Xt(t){return dt(t),{type:Oe,parts:t}}function Jt(t,e="",r={}){return be(t),e!==""&&be(e),{type:Be,breakContents:t,flatContents:e,groupId:r.groupId}}var Gr={type:Ie};var ps={type:ee,hard:!0},fs={type:ee,hard:!0,literal:!0},D={type:ee},Y={type:ee,soft:!0},ye=[ps,Gr],Yr=[fs,Gr];function Ee(t,e){be(t),dt(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},oe=ds;function ms(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Xe(i)){case Ge:return e(i.map(n));case Oe:return e({...i,parts:i.parts.map(n)});case Be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case De:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case _e:case Le:case We:case Qe:case $e:return e({...i,contents:n(i.contents)});case ze:case Ye:case Ke:case je:case ee:case Ie:return e(i);default:throw new jt(i)}}}function Kr(t,e=Yr){return ms(t,r=>typeof r=="string"?Ee(e,r.split(` -`)):r)}var mt="'",Wr='"';function gs(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=gs;function Zt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,er=class{constructor(e){Yt(this,G);Kt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Zt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=er;var bs=[" ",` -`,"\f","\r"," "],ys=new $r(bs),K=ys;function Es(t){return Array.isArray(t)&&t.length>0}var Je=Es;var tr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=tr;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var Ss=10;for(let t=0;t<=Ss;t++)et();function rr(t){return et(t)}function ws(t,e="type"){rr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=ws;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ks=Jr(Zr),en=ks;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Ts(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ns(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function nr(t){return t.selfClosing===!0||Ns(t.tag)||Ts(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/u.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function vs(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ps(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(nr(n))return[g,T];let x=[""];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Os(t)?[Bs(t,r),cn(t,r,e),un(t,r,e)]:[_s(t,r),q([cn(t,r,e),un(t,r,e),Is(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Ms(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Wt(!1,n.chars,"{{",String.raw`\{{`),T=qs(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/u).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>Qt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>Qt(se)))}g=g.slice(0,-U.length)}return[...Pe,Xt(hn(g)),...ne]}let M=Re(g),H=Hs(g),X=Vs(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Xt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ks(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Us(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function As(t,e){return Se(t)-Se(e)}function Ps(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(As);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,ir(r)),["<",r.tag,R(s),xs(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function xs(t){return nr(t)?Jt([Y,"/>"],[" />",Y]):Jt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function Cs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Ls(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function _s(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(ir(r.program)),q([Cs(r),sr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,Ls(r)])}function Ds(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Os(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Bs(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,ir(r.program)]:[]]),Y,mn(n)])}function Is(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Rs(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Rs(n)?i:yn(n)?[Ds(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function qs(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(` -`).length-1}function Hs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Re(e)}function Vs(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Us(t,e){let{node:{value:r}}=t,n=gt(r,Fs(t)?!e.singleQuote:e.singleQuote);return[n,Wt(!1,r,n,`\\${n}`),n]}function Fs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Ms(t,e){let r=sr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=sr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function sr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function ir(t){return["as |",t.blockParams.join(" "),"|"]}var zs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Gs=new Set(["true","false","null","undefined"]),Ys=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Gs.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,r=>zs.has(r));function Ks(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Ys(r,n)?`[${r}]`:r).join(".")}var Ws={print:vs,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=Ws;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Rr={};Gt(Rr,{glimmer:()=>ma});var $s=Object.freeze([]);function kn(){return $s}var Do=kn(),Oo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){ri.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var js;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);js=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ar=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Qs(t){return t&ar.SIGN_BIT}function Xs(t){return t|~ar.SIGN_BIT}function Js(t){return~t}function Zs(t){return~t}function ei(t){return t|=0,t<0?Qs(t):Js(t)}function ti(t){return t|=0,t>ar.SIGN_BIT?Zs(t):Xs(t)}[1,-1].forEach(t=>ti(ei(t)));var or=Object.assign;var ri=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ni=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ya(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,Ea,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`: -`+L.showPosition()+` -Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error on line "+(ae+1)+": Unexpected "+(I==Vr?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Mt,{text:L.match,token:this.terminals_[I]||I,line:L.yylineno,loc:Vt,expected:pt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+I);switch(z[0]){case 1:b.push(I),P.push(L.yytext),l.push(L.yylloc),b.push(z[1]),I=null,Ut?(I=Ut,Ut=null):(Me=L.yyleng,u=L.yytext,ae=L.yylineno,Vt=L.yylloc,Hr>0&&Hr--);break;case 2:if(Z=this.productions_[z[1]][1],Ce.$=P[P.length-Z],Ce._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},es&&(Ce._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(Ce,[u,Me,ae,me.yy,z[1],P,l].concat(Zn)),typeof Ft<"u")return Ft;Z&&(b=b.slice(0,-1*Z*2),P=P.slice(0,-1*Z),l=l.slice(0,-1*Z)),b.push(this.productions_[z[1]][0]),P.push(Ce.$),l.push(Ce._$),Ur=xe[b[b.length-2]][b[b.length-1]],b.push(Ur);break;case 3:return!0}}return!0}},Xn=function(){var ie={EOF:1,parseError:function(E,b){if(this.yy.parser)this.yy.parser.parseError(E,b);else throw new Error(E)},setInput:function(m,E){return this.yy=E||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var E=m.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var E=m.length,b=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),E=new Array(m.length+1).join("-");return m+this.upcomingInput()+` -`+E+"^"},test_match:function(m,E){var b,y,P;if(this.options.backtrack_lexer&&(P={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(P.yylloc.range=this.yylloc.range.slice(0))),y=m[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],b=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var l in P)this[l]=P[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,E,b,y;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),l=0;lE[0].length)){if(E=b,y=l,this.options.backtrack_lexer){if(m=this.test_match(b,P[l]),m!==!1)return m;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(m=this.test_match(E,P[y]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(E,b,y,P){function l(u,ae){return b.yytext=b.yytext.substring(u,b.yyleng-ae+u)}var xe=P;switch(y){case 0:if(b.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return b.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return b.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ie}();Rt.lexer=Xn;function qt(){this.yy={}}return qt.prototype=Rt,Rt.Parser=qt,new qt}(),vt=ni;var lr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function cr(t,e){var r=e&&e.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,t+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,t),c=0;cfr,id:()=>si,prepareBlock:()=>ui,prepareMustache:()=>li,preparePartialBlock:()=>pi,preparePath:()=>oi,prepareProgram:()=>hi,prepareRawBlock:()=>ci,stripComment:()=>ai,stripFlags:()=>ii});function pr(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new le(t.path.original+" doesn't match "+e,r)}}function fr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function si(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function ii(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function ai(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function oi(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],i=0,a=0,o=e.length;a0)throw new le("Invalid path: "+n,{loc:r});c===".."&&i++}else s.push(c)}return{type:"PathExpression",data:t,depth:i,parts:s,original:n,loc:r}}function li(t,e,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function ci(t,e,r,n){pr(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function ui(t,e,r,n,s,i){n&&n.path&&pr(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var o,c;if(r){if(a)throw new le("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=e,e=s),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:o,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function hi(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function pi(t,e,r,n){return pr(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var Ln={};for(xt in nt)Object.prototype.hasOwnProperty.call(nt,xt)&&(Ln[xt]=nt[xt]);var xt;function Ct(t,e){if(t.type==="Program")return t;vt.yy=Ln,vt.yy.locInfo=function(n){return new fr(e&&e.srcName,n)};var r=vt.parse(t);return r}function dr(t,e){var r=Ct(t,e),n=new Cn(e);return n.accept(r)}var Dn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},fi=/^#[xX]([A-Fa-f0-9]+)$/,di=/^#([0-9]+)$/,mi=/^([A-Za-z0-9]+)$/,mr=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var r=e.match(fi);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=e.match(di),r)return String.fromCharCode(parseInt(r[1],10));if(r=e.match(mi),r)return this.named[r[1]]}},t}(),gi=/[\t\n\f ]/,bi=/[A-Za-z]/,yi=/\r\n?/g;function B(t){return gi.test(t)}function _n(t){return bi.test(t)}function Ei(t){return t.replace(yi,` -`)}var gr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var s=this.peek();if(s==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&s===` -`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var s=this.peek(),i=this.tagNameBuffer;s==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):s==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(s))},tagOpen:function(){var s=this.consume();s==="!"?this.transitionTo("markupDeclarationOpen"):s==="/"?this.transitionTo("endTagOpen"):(s==="@"||s===":"||_n(s))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(s))},markupDeclarationOpen:function(){var s=this.consume();if(s==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var s=this.consume();B(s)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var s=this.consume();B(s)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase()))},doctypeName:function(){var s=this.consume();B(s)?this.transitionTo("afterDoctypeName"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase())},afterDoctypeName:function(){var s=this.consume();if(!B(s))if(s===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var s=this.peek();B(s)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):s==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):s==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):s===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},doctypePublicIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},afterDoctypePublicIdentifier:function(){var s=this.consume();B(s)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var s=this.consume();B(s)||(s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},doctypeSystemIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},afterDoctypeSystemIdentifier:function(){var s=this.consume();B(s)||s===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var s=this.consume();s==="-"?this.transitionTo("commentStartDash"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(s),this.transitionTo("comment"))},commentStartDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var s=this.consume();s==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(s)},commentEndDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+s),this.transitionTo("comment"))},commentEnd:function(){var s=this.consume();s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+s),this.transitionTo("comment"))},tagName:function(){var s=this.consume();B(s)?this.transitionTo("beforeAttributeName"):s==="/"?this.transitionTo("selfClosingStartTag"):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(s)},endTagName:function(){var s=this.consume();B(s)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):s==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();if(B(s)){this.consume();return}else s==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();B(s)?(this.transitionTo("afterAttributeName"),this.consume()):s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==='"'||s==="'"||s==="<"?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();if(B(s)){this.consume();return}else s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();B(s)?this.consume():s==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var s=this.consume();s==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueSingleQuoted:function(){var s=this.consume();s==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueUnquoted:function(){var s=this.peek();B(s)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):s===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();B(s)?(this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var s=this.peek();s===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var s=this.consume();(s==="@"||s===":"||_n(s))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(s))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=Ei(e);this.index"||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),Yo=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new gr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r\xA0]/u,il=new RegExp(wi.source,"gu");var Tr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ki(t){var e;return Tr.has(t.toLowerCase())&&((e=t[0])==null?void 0:e.toLowerCase())===t[0]}var pe=Object.freeze({line:1,column:0}),Ti=Object.freeze({source:"(synthetic)",start:pe,end:pe}),st=Object.freeze({source:"(nonexistent)",start:pe,end:pe}),ue=Object.freeze({source:"(broken)",start:pe,end:pe}),k=function(t){return t.CharPosition="CharPosition",t.HbsPosition="HbsPosition",t.InternalsSynthetic="InternalsSynthetic",t.NonExistent="NonExistent",t.Broken="Broken",t}({}),it="MATCH_ANY",Nr="IS_INVISIBLE",vr=class{_whens;constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(we(n))return n[0]}return null}},Dt=class{_map=new Map;get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=Ni(e),n=[],s=this._map.get(r),i=this._map.get(it);return s&&n.push(s),i&&n.push(i),n}};function Hn(t){return t(new Ar).check()}var Ar=class{_whens=new Dt;check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);w(we(n),`no match defined for (${e}, ${r}) and no AnyMatch defined either`);let s=new vr(n).first(r);return w(s!==null,`no match defined for (${e}, ${r}) and no AnyMatch defined either`),s}when(e,r,n){return this._whens.get(e,()=>new Dt).add(r,n),this}};function Ni(t){switch(t){case k.Broken:case k.InternalsSynthetic:case k.NonExistent:return Nr;default:return t}}var Pr=class t{static synthetic(e){let r=O.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:O.load(e,r[1]),chars:r[0]})}chars;loc;constructor(e){this.loc=e.loc,this.chars=e.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},O=class t{static get NON_EXISTENT(){return new te(k.NonExistent,st).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r===k.NonExistent)return t.NON_EXISTENT;if(r===k.Broken)return t.broken(ue);vn(r)}static forHbsLoc(e,r){let n=new de(e,r.start),s=new de(e,r.end);return new ot(e,{start:n,end:s},r).wrap()}static forCharPositions(e,r,n){let s=new Ne(e,r),i=new Ne(e,n);return new at(e,{start:s,end:i}).wrap()}static synthetic(e){return new te(k.InternalsSynthetic,st,e).wrap()}static broken(e=ue){return new te(k.Broken,e).wrap()}isInvisible;constructor(e){this.data=e,this.isInvisible=e.kind!==k.CharPosition&&e.kind!==k.HbsPosition}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ue:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return Q(e.data,this.data.getEnd())}withEnd(e){return Q(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1,new Pr({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return Q(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return Q(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return Q(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return Q(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{kind=k.CharPosition;_locPosSpan=null;constructor(e,r){this.source=e,this.charPositions=r}wrap(){return new O(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=fe:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===fe?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{kind=k.HbsPosition;_charPosSpan=null;_providedHbsLoc;constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?k.Broken:e.wrap().serialize()}wrap(){return new O(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new de(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new de(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=fe,null}return e===fe?null:e}},te=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case k.Broken:case k.NonExistent:return this.kind;case k.InternalsSynthetic:return this.string||""}}wrap(){return new O(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new lt(this.kind,this.loc.start)}getEnd(){return new lt(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ue}},Q=Hn(t=>t.when(k.HbsPosition,k.HbsPosition,(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when(k.CharPosition,k.CharPosition,(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when(k.CharPosition,k.HbsPosition,(e,r)=>{let n=r.toCharPos();return n===null?new te(k.Broken,ue).wrap():Q(e,n)}).when(k.HbsPosition,k.CharPosition,(e,r)=>{let n=e.toCharPos();return n===null?new te(k.Broken,ue).wrap():Q(n,r)}).when(Nr,it,e=>new te(e.kind,ue).wrap()).when(it,Nr,(e,r)=>new te(r.kind,ue).wrap())),fe="BROKEN",Ue=class t{static forHbsPos(e,r){return new de(e,r,null).wrap()}static broken(e=pe){return new lt(k.Broken,e).wrap()}constructor(e){this.data=e}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return vi(this.data,e.data)}until(e){return Q(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new Ne(r.source,n).wrap():t.broken()}}collapsed(){return Q(this.data,this.data)}toJSON(){return this.data.toJSON()}},Ne=class{kind=k.CharPosition;_locPos=null;constructor(e,r){this.source=e,this.charPos=r}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?pe:e.toJSON()}wrap(){return new Ue(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=fe:this._locPos=e=new de(this.source,r,this.charPos)}return e===fe?null:e}},de=class{kind=k.HbsPosition;_charPos;constructor(e,r,n=null){this.source=e,this.hbsPos=r,this._charPos=n===null?null:new Ne(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=fe:this._charPos=e=new Ne(this.source,r)}return e===fe?null:e}toJSON(){return this.hbsPos}wrap(){return new Ue(this)}toHbsPos(){return this}},lt=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Ue(this)}get offset(){return null}},vi=Hn(t=>t.when(k.HbsPosition,k.HbsPosition,({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when(k.CharPosition,k.CharPosition,({charPos:e},{charPos:r})=>e===r).when(k.CharPosition,k.HbsPosition,({offset:e},r)=>{var n;return e===((n=r.toCharPos())==null?void 0:n.offset)}).when(k.HbsPosition,k.CharPosition,(e,{offset:r})=>{var n;return((n=e.toCharPos())==null?void 0:n.offset)===r}).when(it,it,()=>!1)),Te=class t{static from(e,r={}){var n;return new t(e,(n=r.meta)==null?void 0:n.moduleName)}constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return Ue.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return O.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let s=this.source.indexOf(` -`,n);if(e<=s||s===-1)return{line:r+1,column:e-n};r+=1,n=s+1}}charPosFor(e){let{line:r,column:n}=e,i=this.source.length,a=0,o=0;for(;oc)return c;if(!1){let p=this.hbsPosFor(o+n);w(p!==null,"the returned offset failed to round-trip"),w(p.line===r,"the round-tripped line didn't match the original line"),w(p.column===n,"the round-tripped column didn't match the original column")}return o+n}else{if(c===-1)return 0;a+=1,o=c+1}}return i}};function S(t,e){let{module:r,loc:n}=e,{line:s,column:i}=n.start,a=e.asString(),o=a?` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var me=Object.defineProperty;var Wn=Object.getOwnPropertyDescriptor;var jn=Object.getOwnPropertyNames;var Qn=Object.prototype.hasOwnProperty;var Br=e=>{throw TypeError(e)};var Jn=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Me=(e,t)=>{for(var r in t)me(e,r,{get:t[r],enumerable:!0})},$n=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of jn(t))!Qn.call(e,s)&&s!==r&&me(e,s,{get:()=>t[s],enumerable:!(n=Wn(t,s))||n.enumerable});return e};var Xn=e=>$n(me({},"__esModule",{value:!0}),e);var ze=(e,t,r)=>Jn(e,typeof t!="symbol"?t+"":t,r),Ir=(e,t,r)=>t.has(e)||Br("Cannot "+r);var I=(e,t,r)=>(Ir(e,t,"read from private field"),r?r.call(e):t.get(e)),Pt=(e,t,r)=>t.has(e)?Br("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),J=(e,t,r,n)=>(Ir(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ni={};Me(Ni,{languages:()=>fn,parsers:()=>Pr,printers:()=>Ci});var Zn=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Ye=Zn;var Mt="string",zt="array",Yt="cursor",Lt="indent",Dt="align",Gt="trim",_t="group",Ot="fill",Bt="if-break",Kt="indent-if-break",Wt="line-suffix",jt="line-suffix-boundary",$="line",Qt="label",It="break-parent",de=new Set([Yt,Lt,Dt,Gt,_t,Ot,Bt,Kt,Wt,jt,$,Qt,It]);function ts(e){if(typeof e=="string")return Mt;if(Array.isArray(e))return zt;if(!e)return;let{type:t}=e;if(de.has(t))return t}var Jt=ts;var es=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function rs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Jt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=es([...de].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Ge=class extends Error{name="InvalidDocError";constructor(t){super(rs(t)),this.doc=t}},Ke=Ge;var Rr=()=>{},dt=Rr,ge=Rr;function B(e){return dt(e),{type:Lt,contents:e}}function ns(e,t){return dt(t),{type:Dt,contents:t,n:e}}function R(e,t={}){return dt(e),ge(t.expandedStates,!0),{type:_t,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function We(e){return ns(-1,e)}function je(e){return ge(e),{type:Ot,parts:e}}function Qe(e,t="",r={}){return dt(e),t!==""&&dt(t),{type:Bt,breakContents:e,flatContents:t,groupId:r.groupId}}var qr={type:It};var ss={type:$,hard:!0},is={type:$,hard:!0,literal:!0},L={type:$},M={type:$,soft:!0},gt=[ss,qr],Vr=[is,qr];function bt(e,t){dt(e),ge(t);let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},it=as;function os(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Jt(i)){case zt:return t(i.map(n));case Ot:return t({...i,parts:i.parts.map(n)});case Bt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case _t:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),t({...i,contents:o,expandedStates:a})}case Dt:case Lt:case Kt:case Qt:case Wt:return t({...i,contents:n(i.contents)});case Mt:case Yt:case Gt:case jt:case $:case It:return t(i);default:throw new Ke(i)}}}function Hr(e,t=Vr){return os(e,r=>typeof r=="string"?bt(t,r.split(` +`)):r)}var be="'",Fr='"';function ls(e,t){let r=t===!0||t===be?be:Fr,n=r===be?Fr:be,s=0,i=0;for(let a of e)a===r?s++:a===n&&i++;return s>i?n:r}var ye=ls;function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,$e=class{constructor(t){Pt(this,U);J(this,U,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,U),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,U).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,U).has(it(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Je([...I(this,U)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=I(this,U);return Array.prototype.every.call(t,n=>r.has(n))}};U=new WeakMap;var Ur=$e;var cs=[" ",` +`,"\f","\r"," "],us=new Ur(cs),z=us;function hs(e){return Array.isArray(e)&&e.length>0}var $t=hs;var Xe=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Mr=Xe;function zr(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=z.split(r).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}zr.ignoredProperties=new Set(["loc","selfClosing"]);var Yr=zr;var Xt=null;function Zt(e){if(Xt!==null&&typeof Xt.property){let t=Xt;return Xt=Zt.prototype=null,t}return Xt=Zt.prototype=e??Object.create(null),new Zt}var ps=10;for(let e=0;e<=ps;e++)Zt();function Ze(e){return Zt(e)}function fs(e,t="type"){Ze(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Gr=fs;var Kr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ms=Gr(Kr),Wr=ms;function yt(e){return e.loc.start.offset}function te(e){return e.loc.end.offset}var jr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Jr(e){return e.toUpperCase()===e}function ds(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(Jr(e.tag[0])||e.tag.includes("."))}function gs(e){return jr.has(e.toLowerCase())&&!Jr(e[0])}function tr(e){return e.selfClosing===!0||gs(e.tag)||ds(e)&&e.children.every(t=>ke(t))}function ke(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Qr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function $r(e){return Qr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Qr(e.siblings[e.index-2])}var an=2;function bs(e,t,r){var s,i,a,o,c,h,p,m,v;let{node:n}=e;switch(n.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let g=R(ks(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((s=e.next)==null?void 0:s.type)==="ElementNode"?M:"";if(tr(n))return[g,E];let N=[""];return n.children.length===0?[g,B(N),E]:t.htmlWhitespaceSensitivity==="ignore"?[g,B(Xr(e,t,r)),gt,B(N),E]:[g,B(R(Xr(e,t,r))),B(N),E]}case"BlockStatement":return Cs(e)?[Ns(e,r),en(e,r,t),rn(e,r,t)]:[ws(e,r),R([en(e,r,t),rn(e,r,t),As(e,r,t)])];case"ElementModifierStatement":return R(["{{",sn(e,r),"}}"]);case"MustacheStatement":return R([Se(n),sn(e,r),ve(n)]);case"SubExpression":return R(["(",Bs(e,r),M,")"]);case"AttrNode":{let{name:g,value:E}=n,N=E.type==="TextNode";if(N&&E.chars===""&&yt(E)===te(E))return g;let w=N?ye(E.chars,t.singleQuote):E.type==="ConcatStatement"?ye(E.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",Z=r("value");return[g,"=",w,g==="class"&&w?R(B(Z)):Z,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return bt(L,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Ye(!1,n.chars,"{{",String.raw`\{{`),E=Ps(e);if(E){if(E==="class"){let j=g.trim().split(/\s+/u).join(" "),tt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(tt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&j!==""&&(V=!0)),[tt?L:"",j,V?L:""]}return Hr(g)}let N=z.isWhitespaceOnly(g),{isFirst:A,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let j=w&&e.parent.type==="Template",tt=A&&e.parent.type==="Template";if(N){if(tt||j)return"";let P=[L],rt=Rt(g);return rt&&(P=ee(rt)),w&&(P=P.map(he=>We(he))),P}let V=z.getLeadingWhitespace(g),Nt=[];if(V){Nt=[L];let P=Rt(V);P&&(Nt=ee(P)),g=g.slice(V.length)}let H=z.getTrailingWhitespace(g),et=[];if(H){if(!j){et=[L];let P=Rt(H);P&&(et=ee(P)),w&&(et=et.map(rt=>We(rt)))}g=g.slice(0,-H.length)}return[...Nt,je(nn(g)),...et]}let Z=Rt(g),q=Ls(g),W=Ds(g);if((A||w)&&N&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";N&&Z?(q=Math.min(Z,an),W=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&(W=Math.max(W,1)),(((h=e.previous)==null?void 0:h.type)==="BlockStatement"||((p=e.previous)==null?void 0:p.type)==="ElementNode")&&(q=Math.max(q,1)));let Tt="",Ct="";return W===0&&((m=e.next)==null?void 0:m.type)==="MustacheStatement"&&(Ct=" "),q===0&&((v=e.previous)==null?void 0:v.type)==="MustacheStatement"&&(Tt=" "),A&&(q=0,Tt=""),w&&(W=0,Ct=""),z.hasLeadingWhitespace(g)&&(g=Tt+z.trimStart(g)),z.hasTrailingWhitespace(g)&&(g=z.trimEnd(g)+Ct),[...ee(q),je(nn(g)),...ee(W)]}case"MustacheCommentStatement":{let g=yt(n),E=te(n),N=t.originalText.charAt(g+2)==="~",A=t.originalText.charAt(E-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,A?"~":"","}}"]}case"PathExpression":return Vs(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return _s(e,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new Mr(n,"Handlebars")}}function ys(e,t){return yt(e)-yt(t)}function ks(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(i=>$t(r[i])),s=n.flatMap(i=>r[i]).sort(ys);for(let i of n)e.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[L,t()])},i);return $t(r.blockParams)&&s.push(L,rr(r)),["<",r.tag,B(s),Ss(r)]}function Xr(e,t,r){let{node:n}=e,s=n.children.every(i=>ke(i));return t.htmlWhitespaceSensitivity==="ignore"&&s?"":e.map(({isFirst:i})=>{let a=r();return i&&t.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function Ss(e){return tr(e)?Qe([M,"/>"],[" />",M]):Qe([M,">"],">")}function Se(e){var n;let t=e.trusting?"{{{":"{{",r=(n=e.strip)!=null&&n.open?"~":"";return[t,r]}function ve(e){var n;let t=e.trusting?"}}}":"}}";return[(n=e.strip)!=null&&n.close?"~":"",t]}function vs(e){let t=Se(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function Es(e){let t=ve(e);return[e.openStrip.close?"~":"",t]}function Zr(e){let t=Se(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function tn(e){let t=ve(e);return[e.closeStrip.close?"~":"",t]}function on(e){let t=Se(e),r=e.inverseStrip.open?"~":"";return[t,r]}function ln(e){let t=ve(e);return[e.inverseStrip.close?"~":"",t]}function ws(e,t){let{node:r}=e,n=[],s=Ee(e,t);return s&&n.push(R(s)),$t(r.program.blockParams)&&n.push(rr(r.program)),R([vs(r),er(e,t),n.length>0?B([L,bt(L,n)]):"",M,Es(r)])}function Ts(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?gt:"",on(e),"else",ln(e)]}var cn=(e,t)=>e.head.type==="VarHead"&&t.head.type==="VarHead"&&e.head.name===t.head.name;function Cs(e){var n;let{grandparent:t,node:r}=e;return((n=t==null?void 0:t.inverse)==null?void 0:n.body.length)===1&&t.inverse.body[0]===r&&cn(t.inverse.body[0].path,t.path)}function Ns(e,t){let{node:r,grandparent:n}=e;return R([on(n),["else"," ",n.inverse.body[0].path.head.name],B([L,R(Ee(e,t)),...$t(r.program.blockParams)?[L,rr(r.program)]:[]]),M,ln(n)])}function As(e,t,r){let{node:n}=e;return r.htmlWhitespaceSensitivity==="ignore"?[un(n)?M:gt,Zr(n),t("path"),tn(n)]:[Zr(n),t("path"),tn(n)]}function un(e){return e.type==="BlockStatement"&&e.program.body.every(t=>ke(t))}function xs(e){return hn(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&cn(e.inverse.body[0].path,e.path)}function hn(e){return e.type==="BlockStatement"&&e.inverse}function en(e,t,r){let{node:n}=e;if(un(n))return"";let s=t("program");return r.htmlWhitespaceSensitivity==="ignore"?B([gt,s]):B(s)}function rn(e,t,r){let{node:n}=e,s=t("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[gt,s]:s;return xs(n)?i:hn(n)?[Ts(n,r),B(i)]:""}function nn(e){return bt(L,z.split(e))}function Ps(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Rt(e){return e=typeof e=="string"?e:"",e.split(` +`).length-1}function Ls(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Rt(t)}function Ds(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Rt(t)}function ee(e=0){return Array.from({length:Math.min(e,an)}).fill(gt)}function _s(e,t){let{node:{value:r}}=e,n=ye(r,Os(e)?!t.singleQuote:t.singleQuote);return[n,Ye(!1,r,n,`\\${n}`),n]}function Os(e){let{ancestors:t}=e,r=t.findIndex(n=>n.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Bs(e,t){let r=er(e,t),n=Ee(e,t);return n?B([r,L,R(n)]):r}function sn(e,t){let r=er(e,t),n=Ee(e,t);return n?[B([r,L,n]),M]:r}function er(e,t){return t("path")}function Ee(e,t){var s;let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(t("hash")),n.length===0?"":bt(L,n)}function rr(e){return["as |",e.blockParams.join(" "),"|"]}var Is=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Rs=new Set(["true","false","null","undefined"]),qs=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&Rs.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>Is.has(r));function Vs(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,n)=>qs(r,n)?`[${r}]`:r).join(".")}var Hs={print:bs,massageAstNode:Yr,hasPrettierIgnore:$r,getVisitorKeys:Wr},pn=Hs;var fn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Pr={};Me(Pr,{glimmer:()=>Ti});var Fs=Object.freeze([]);function dn(){return Fs}var Va=dn(),Ha=dn();var nr=Object.assign;var mn=console;function gn(e,t="unexpected unreachable branch"){throw mn.log("unreachable",e),mn.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var Us=function(){var e=function(nt,d,k,b){for(k=k||{},b=nt.length;b--;k[nt[b]]=d);return k},t=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],v=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],E=[15,18],N=[14,15,19,29,34,47,48,52,56,60],A=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],Z=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],W=[2,43],Tt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],j=[1,59],tt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Nt=[23,64,71,79,80,81,82,83,84],H=[1,76],et=[64,67,71,79,80,81,82,83,84],P=[33,74],rt=[23,33,55,67,71,74],he=[1,106],Be=[1,118],Lr=[71,76],Ie={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(d,k,b,y,C,l,At){var u=l.length-1;switch(C){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var st=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Ut=y.prepareProgram([st],l[u-1].loc);Ut.chained=!0,this.$={strip:l[u-2].strip,program:Ut,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,52,56,60],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},e(n,[2,45]),e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),e(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(v,t,{6:3,4:40}),e(g,t,{6:3,4:41}),e(E,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:44}),e([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(A,[2,76],{50:49}),e(w,[2,27]),e(w,[2,28]),e(w,[2,33]),e(w,[2,34]),e(w,[2,35]),e(w,[2,36]),e(w,[2,37]),e(w,[2,38]),e(w,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(w,[2,41],{86:Z}),{71:i,85:52},e(q,W),e(Tt,[2,80],{53:53}),{25:54,38:56,39:Ct,43:57,44:j,45:55,47:[2,52]},{28:60,43:61,44:j,47:[2,54]},{13:63,15:r,18:[1,62]},e(A,[2,84],{57:64}),{26:65,47:tt},e(V,[2,56],{30:67}),e(V,[2,62],{35:68}),e(Nt,[2,48],{21:69}),e(A,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(et,[2,92],{65:77}),{71:[1,78]},e(w,[2,40],{86:Z}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{26:82,47:tt},{47:[2,53]},e(v,t,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:85}),{26:86,47:tt},{47:[2,55]},e(n,[2,11]),e(E,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(P,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(P,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{33:[1,103]},e(A,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(rt,[2,96]),e(q,W,{72:he}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(q,[2,42]),{55:[1,110]},e(Tt,[2,81]),{55:[2,83]},e(n,[2,13]),{38:56,39:Ct,43:57,44:j,45:112,46:111,47:[2,74]},e(V,[2,68],{40:113}),{47:[2,18]},e(n,[2,14]),{33:[1,114]},e(A,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Be},e(V,[2,57]),e(P,[2,59]),{33:[2,66],37:119,73:120,74:Be},e(V,[2,63]),e(P,[2,65]),{23:[1,121]},e(Nt,[2,49]),{23:[2,51]},{33:[1,122]},e(A,[2,89]),{33:[2,91]},e(n,[2,22]),e(rt,[2,97]),{72:he},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{67:[1,124]},e(et,[2,93]),{67:[2,95]},e(n,[2,23]),{47:[2,19]},{47:[2,75]},e(P,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(n,[2,24]),e(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},e(E,[2,12]),e(N,[2,26]),e(rt,[2,31]),e(w,[2,29]),{33:[2,72],42:132,73:133,74:Be},e(V,[2,69]),e(P,[2,71]),e(v,[2,15]),{71:[1,135],76:[1,134]},e(Lr,[2,98]),e(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(Lr,[2,99]),e(v,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(d,k){if(k.recoverable)this.trace(d);else{var b=new Error(d);throw b.hash=k,b}},parse:function(d){var k=this,b=[0],y=[],C=[null],l=[],At=this.table,u="",st=0,Ut=0,Dr=0,zn=2,_r=1,Yn=l.slice.call(arguments,1),x=Object.create(this.lexer),ft={yy:{}};for(var qe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qe)&&(ft.yy[qe]=this.yy[qe]);x.setInput(d,ft.yy),ft.yy.lexer=x,ft.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Ve=x.yylloc;l.push(Ve);var Gn=x.options&&x.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ai(Y){b.length=b.length-2*Y,C.length=C.length-Y,l.length=l.length-Y}for(var Kn=function(){var Y;return Y=x.lex()||_r,typeof Y!="number"&&(Y=k.symbols_[Y]||Y),Y},O,He,mt,F,xi,Fe,xt={},pe,Q,Or,fe;;){if(mt=b[b.length-1],this.defaultActions[mt]?F=this.defaultActions[mt]:((O===null||typeof O>"u")&&(O=Kn()),F=At[mt]&&At[mt][O]),typeof F>"u"||!F.length||!F[0]){var Ue="";fe=[];for(pe in At[mt])this.terminals_[pe]&&pe>zn&&fe.push("'"+this.terminals_[pe]+"'");x.showPosition?Ue="Parse error on line "+(st+1)+`: +`+x.showPosition()+` +Expecting `+fe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Ue="Parse error on line "+(st+1)+": Unexpected "+(O==_r?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Ue,{text:x.match,token:this.terminals_[O]||O,line:x.yylineno,loc:Ve,expected:fe})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+O);switch(F[0]){case 1:b.push(O),C.push(x.yytext),l.push(x.yylloc),b.push(F[1]),O=null,He?(O=He,He=null):(Ut=x.yyleng,u=x.yytext,st=x.yylineno,Ve=x.yylloc,Dr>0&&Dr--);break;case 2:if(Q=this.productions_[F[1]][1],xt.$=C[C.length-Q],xt._$={first_line:l[l.length-(Q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Q||1)].first_column,last_column:l[l.length-1].last_column},Gn&&(xt._$.range=[l[l.length-(Q||1)].range[0],l[l.length-1].range[1]]),Fe=this.performAction.apply(xt,[u,Ut,st,ft.yy,F[1],C,l].concat(Yn)),typeof Fe<"u")return Fe;Q&&(b=b.slice(0,-1*Q*2),C=C.slice(0,-1*Q),l=l.slice(0,-1*Q)),b.push(this.productions_[F[1]][0]),C.push(xt.$),l.push(xt._$),Or=At[b[b.length-2]][b[b.length-1]],b.push(Or);break;case 3:return!0}}return!0}},Mn=function(){var nt={EOF:1,parseError:function(k,b){if(this.yy.parser)this.yy.parser.parseError(k,b);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,b=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+` +`+k+"^"},test_match:function(d,k){var b,y,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),y=d[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],b=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var l in C)this[l]=C[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,b,y;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),l=0;lk[0].length)){if(k=b,y=l,this.options.backtrack_lexer){if(d=this.test_match(b,C[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,C[y]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,b,y,C){function l(u,st){return b.yytext=b.yytext.substring(u,b.yyleng-st+u)}var At=C;switch(y){case 0:if(b.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return b.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return b.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return nt}();Ie.lexer=Mn;function Re(){this.yy={}}return Re.prototype=Ie,Ie.Parser=Re,new Re}(),we=Us;var sr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ir(e,t){var r=t&&t.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;ccr,id:()=>Ms,prepareBlock:()=>js,prepareMustache:()=>Ks,preparePartialBlock:()=>Js,preparePath:()=>Gs,prepareProgram:()=>Qs,prepareRawBlock:()=>Ws,stripComment:()=>Ys,stripFlags:()=>zs});function lr(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new at(e.path.original+" doesn't match "+t,r)}}function cr(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function Ms(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function zs(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Ys(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Gs(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",s=[],i=0,a=0,o=t.length;a0)throw new at("Invalid path: "+n,{loc:r});c===".."&&i++}else s.push(c)}return{type:"PathExpression",data:e,depth:i,parts:s,original:n,loc:r}}function Ks(e,t,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function Ws(e,t,r,n){lr(e,r),n=this.locInfo(n);var s={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function js(e,t,r,n,s,i){n&&n.path&&lr(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new at("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=t,t=s),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function Qs(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Js(e,t,r,n){return lr(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var vn={};for(Ne in re)Object.prototype.hasOwnProperty.call(re,Ne)&&(vn[Ne]=re[Ne]);var Ne;function Ae(e,t){if(e.type==="Program")return e;we.yy=vn,we.yy.locInfo=function(n){return new cr(t&&t.srcName,n)};var r=we.parse(e);return r}function ur(e,t){var r=Ae(e,t),n=new Sn(t);return n.accept(r)}var wn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},$s=/^#[xX]([A-Fa-f0-9]+)$/,Xs=/^#([0-9]+)$/,Zs=/^([A-Za-z0-9]+)$/,hr=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match($s);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(Xs),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(Zs),r)return this.named[r[1]]}},e}(),ti=/[\t\n\f ]/,ei=/[A-Za-z]/,ri=/\r\n?/g;function _(e){return ti.test(e)}function En(e){return ei.test(e)}function ni(e){return e.replace(ri,` +`)}var pr=function(){function e(t,r,n){n===void 0&&(n="precompile"),this.delegate=t,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var s=this.peek();if(s==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&s===` +`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var s=this.peek(),i=this.tagNameBuffer;s==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):s==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(s))},tagOpen:function(){var s=this.consume();s==="!"?this.transitionTo("markupDeclarationOpen"):s==="/"?this.transitionTo("endTagOpen"):(s==="@"||s===":"||En(s))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(s))},markupDeclarationOpen:function(){var s=this.consume();if(s==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var s=this.consume();_(s)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var s=this.consume();_(s)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase()))},doctypeName:function(){var s=this.consume();_(s)?this.transitionTo("afterDoctypeName"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase())},afterDoctypeName:function(){var s=this.consume();if(!_(s))if(s===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var s=this.peek();_(s)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):s==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):s==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):s===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},doctypePublicIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},afterDoctypePublicIdentifier:function(){var s=this.consume();_(s)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var s=this.consume();_(s)||(s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},doctypeSystemIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},afterDoctypeSystemIdentifier:function(){var s=this.consume();_(s)||s===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var s=this.consume();s==="-"?this.transitionTo("commentStartDash"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(s),this.transitionTo("comment"))},commentStartDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var s=this.consume();s==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(s)},commentEndDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+s),this.transitionTo("comment"))},commentEnd:function(){var s=this.consume();s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+s),this.transitionTo("comment"))},tagName:function(){var s=this.consume();_(s)?this.transitionTo("beforeAttributeName"):s==="/"?this.transitionTo("selfClosingStartTag"):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(s)},endTagName:function(){var s=this.consume();_(s)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):s==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();if(_(s)){this.consume();return}else s==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();_(s)?(this.transitionTo("afterAttributeName"),this.consume()):s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==='"'||s==="'"||s==="<"?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();if(_(s)){this.consume();return}else s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();_(s)?this.consume():s==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var s=this.consume();s==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueSingleQuoted:function(){var s=this.consume();s==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueUnquoted:function(){var s=this.peek();_(s)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):s===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();_(s)?(this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var s=this.peek();s===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var s=this.consume();(s==="@"||s===":"||En(s))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(s))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=ni(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),$a=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new pr(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xA0]/u,ho=new RegExp(ii.source,"gu");var yr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ai(e){var t;return yr.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ue(e){return e.length>0}function ie(e,t="unexpected empty list"){return e}function Ar(e){return e.length===0?void 0:e[e.length-1]}function oi(e){return e.length===0?void 0:e[0]}var ut=Object.freeze({line:1,column:0}),li=Object.freeze({source:"(synthetic)",start:ut,end:ut}),se=Object.freeze({source:"(nonexistent)",start:ut,end:ut}),ct=Object.freeze({source:"(broken)",start:ut,end:ut}),kr=class{_whens;constructor(t){this._whens=t}first(t){for(let r of this._whens){let n=r.match(t);if(ue(n))return n[0]}return null}},De=class{_map=new Map;get(t,r){let n=this._map.get(t);return n||(n=r(),this._map.set(t,n),n)}add(t,r){this._map.set(t,r)}match(t){let r=function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}}(t),n=[],s=this._map.get(r),i=this._map.get("MATCH_ANY");return s&&n.push(s),i&&n.push(i),n}};function _n(e){return e(new Sr).validate()}var Sr=class{_whens=new De;validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let n=this._whens.match(t);return ue(n),new kr(n).first(r)}when(t,r,n){return this._whens.get(t,()=>new De).add(r,n),this}},vr=class e{static synthetic(t){let r=D.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:D.load(t,r[1]),chars:r[0]})}chars;loc;constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},D=class e{static get NON_EXISTENT(){return new X("NonExistent",se).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(ct):void gn(r)}static forHbsLoc(t,r){let n=new pt(t,r.start),s=new pt(t,r.end);return new oe(t,{start:n,end:s},r).wrap()}static forCharPositions(t,r,n){let s=new wt(t,r),i=new wt(t,n);return new ae(t,{start:s,end:i}).wrap()}static synthetic(t){return new X("InternalsSynthetic",se,t).wrap()}static broken(t=ct){return new X("Broken",t).wrap()}isInvisible;constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?ct:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return K(t.data,this.data.getEnd())}withEnd(t){return K(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return!1,new vr({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return K(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return K(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return K(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return K(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},ce,ae=class{constructor(t,r){ze(this,"kind","CharPosition");Pt(this,ce,null);this.source=t,this.charPositions=r}wrap(){return new D(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=I(this,ce);if(t===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();t=J(this,ce,r===null||n===null?ht:new oe(this.source,{start:r,end:n}))}return t===ht?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}};ce=new WeakMap;var St,vt,oe=class{constructor(t,r,n=null){ze(this,"kind","HbsPosition");Pt(this,St,null);Pt(this,vt);this.source=t,this.hbsPositions=r,J(this,vt,n)}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new D(this)}updateProvided(t,r){I(this,vt)&&(I(this,vt)[r]=t),J(this,St,null),J(this,vt,{start:t,end:t})}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new pt(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new pt(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=I(this,St);if(t===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(!r||!n)return t=J(this,St,ht),null;t=J(this,St,new ae(this.source,{start:r,end:n}))}return t===ht?null:t}};St=new WeakMap,vt=new WeakMap;var X=class{constructor(t,r,n=null){this.kind=t,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new D(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new le(this.kind,this.loc.start)}getEnd(){return new le(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ct}},K=_n(e=>e.when("HbsPosition","HbsPosition",(t,r)=>new oe(t.source,{start:t,end:r}).wrap()).when("CharPosition","CharPosition",(t,r)=>new ae(t.source,{start:t,end:r}).wrap()).when("CharPosition","HbsPosition",(t,r)=>{let n=r.toCharPos();return n===null?new X("Broken",ct).wrap():K(t,n)}).when("HbsPosition","CharPosition",(t,r)=>{let n=t.toCharPos();return n===null?new X("Broken",ct).wrap():K(n,r)}).when("IS_INVISIBLE","MATCH_ANY",t=>new X(t.kind,ct).wrap()).when("MATCH_ANY","IS_INVISIBLE",(t,r)=>new X(r.kind,ct).wrap())),ht="BROKEN",Ht=class e{static forHbsPos(t,r){return new pt(t,r,null).wrap()}static broken(t=ut){return new le("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return ci(this.data,t.data)}until(t){return K(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let n=r.offset+t;return r.source.validate(n)?new wt(r.source,n).wrap():e.broken()}}collapsed(){return K(this.data,this.data)}toJSON(){return this.data.toJSON()}},wt=class{kind="CharPosition";_locPos=null;constructor(t,r){this.source=t,this.charPos=r}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?ut:t.toJSON()}wrap(){return new Ht(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?ht:new pt(this.source,r,this.charPos)}return t===ht?null:t}},pt=class{kind="HbsPosition";_charPos;constructor(t,r,n=null){this.source=t,this.hbsPos=r,this._charPos=n===null?null:new wt(t,n)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?ht:new wt(this.source,r)}return t===ht?null:t}toJSON(){return this.hbsPos}wrap(){return new Ht(this)}toHbsPos(){return this}},le=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Ht(this)}get offset(){return null}},ci=_n(e=>e.when("HbsPosition","HbsPosition",({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line).when("CharPosition","CharPosition",({charPos:t},{charPos:r})=>t===r).when("CharPosition","HbsPosition",({offset:t},r)=>{var n;return t===((n=r.toCharPos())==null?void 0:n.offset)}).when("HbsPosition","CharPosition",(t,{offset:r})=>{var n;return((n=t.toCharPos())==null?void 0:n.offset)===r}).when("MATCH_ANY","MATCH_ANY",()=>!1)),Et=class e{static from(t,r={}){var n;return new e(t,(n=r.meta)==null?void 0:n.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Ht.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return D.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,n=0;if(t>this.source.length)return null;for(;;){let s=this.source.indexOf(` +`,n);if(t<=s||s===-1)return{line:r+1,column:t-n};r+=1,n=s+1}}charPosFor(t){let{line:r,column:n}=t,s=this.source.length,i=0,a=0;for(;ao)return o;if(!1){let c=this.hbsPosFor(a+n);c.line,c.column}return a+n}if(o===-1)return 0;i+=1,a=o+1}return s}};function S(e,t){let{module:r,loc:n}=t,{line:s,column:i}=n.start,a=t.asString(),o=a?` | | ${a.split(` @@ -22,9 +22,9 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error | `)} | -`:"",c=new Error(`${t}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);return c.name="SyntaxError",c.location=e,c.code=a,c}var Ai={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Br=function(){t.prototype=Object.create(Error.prototype),t.prototype.constructor=t;function t(e,r,n,s){let i=Error.call(this,e);this.key=s,this.message=e,this.node=r,this.parent=n,i.stack&&(this.stack=i.stack)}return t}();function Bn(t,e,r){return new Br("Cannot remove a node unless it is part of an array",t,e,r)}function Pi(t,e,r){return new Br("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}function In(t,e){return new Br("Replacing and removing in key handlers is not yet supported.",t,null,e)}var Fe=class{node;parent;parentKey;constructor(e,r=null,n=null){this.node=e,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new xr(this)}}},xr=class{path;constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Vn(t){return typeof t=="function"?t:t.enter}function Un(t){if(typeof t!="function")return t.exit}function xi(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function Ci(t,e){if(t.Program&&(e==="Template"&&!t.Template||e==="Block"&&!t.Block))return F(`The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was '${e}') `),t.Program;let r=t[e];return r!==void 0?r:t.All}function Ot(t,e){let{node:r,parent:n,parentKey:s}=e,i=Ci(t,r.type),a,o;i!==void 0&&(a=Vn(i),o=Un(i));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Fn(t,c,n,s),c;{let p=new Fe(c,n,s);return Ot(t,p)||c}}if(c===void 0){let p=Ai[r.type];for(let h=0;htypeof T=="string"?zn(T):T),g=null;return c?g=A(c||null):c===void 0&&(g=d||ki(h.original)?null:A(null)),f.element({path:h,selfClosing:d||!1,attributes:r||[],params:N||[],modifiers:s||[],comments:i||[],children:a||[],openTag:A(o||null),closeTag:g,loc:A(p||null)})}function Gi(t,e,r){return f.attr({name:t,value:e,loc:A(r||null)})}function Yi(t="",e){return f.text({chars:t,loc:A(e||null)})}function Ki(t,e=[],r=ct([]),n){return f.sexpr({path:he(t),params:e,hash:r,loc:A(n||null)})}function Wi(t,e){let[r,...n]=qe(t.split(".")),s=f.head({original:r,loc:A(e||null)});return f.path({head:s,tail:n,loc:A(e||null)})}function $i(t){return f.this({loc:A(t||null)})}function ji(t,e){return f.atName({name:t,loc:A(e||null)})}function zn(t,e){return f.var({name:t,loc:A(e||null)})}function Qi(t,e){return f.head({original:t,loc:A(e||null)})}function Xi(t,e=[],r){return f.path({head:t,tail:e,loc:A(r||null)})}function he(t,e){let r=A(e||null);if(typeof t!="string"){if("type"in t)return t;{w(t.head.indexOf(".")===-1,"builder.path({ head, tail }) should not be called with a head with dots in it");let{head:i,tail:a}=t;return f.path({head:f.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:a,loc:A(e||null)})}}let{head:n,tail:s}=Wi(t,r);return f.path({head:n,tail:s,loc:r})}function _t(t,e,r){return f.literal({type:t,value:e,loc:A(r||null)})}function ct(t=[],e){return f.hash({pairs:t,loc:A(e||null)})}function Ji(t,e,r){return f.pair({key:t,value:e,loc:A(r||null)})}function Zi(t,e,r){return F("b.program is deprecated. Use b.template or b.blockItself instead."),e&&e.length?Yn(t,e,!1,r):Kn(t,[],r)}function Gn(t){return t.map(e=>typeof e=="string"?f.var({name:e,loc:O.synthetic(e)}):e)}function Yn(t=[],e=[],r=!1,n){return f.blockItself({body:t,params:Gn(e),chained:r,loc:A(n||null)})}function Kn(t=[],e=[],r){return f.template({body:t,blockParams:e,loc:A(r||null)})}function ea(t,e){return f.pos({line:t,column:e})}function A(...t){if(t.length===1){let e=t[0];return e&&typeof e=="object"?O.forHbsLoc(Er(),e):O.forHbsLoc(Er(),Ti)}else{let[e,r,n,s,i]=t,a=i?new Te("",i):Er();return O.forHbsLoc(a,{start:{line:e,column:r},end:{line:n||e,column:s||r}})}}var ta={mustache:qi,block:Hi,comment:Ui,mustacheComment:Fi,element:zi,elementModifier:Vi,attr:Gi,text:Yi,sexpr:Ki,concat:Mi,hash:ct,pair:Ji,literal:_t,program:Zi,blockItself:Yn,template:Kn,loc:A,pos:ea,path:he,fullPath:Xi,head:Qi,at:ji,var:zn,this:$i,string:Sr("StringLiteral"),boolean:Sr("BooleanLiteral"),number:Sr("NumberLiteral"),undefined(){return _t("UndefinedLiteral",void 0)},null(){return _t("NullLiteral",null)}};function Sr(t){return function(e,r){return _t(t,e,r)}}function ra({path:t,params:e,hash:r,trusting:n,strip:s,loc:i}){let a={type:"MustacheStatement",path:t,params:e,hash:r,trusting:n,strip:s,loc:i};return Object.defineProperty(a,"escaped",{enumerable:!1,get(){return F("The escaped property on mustache nodes is deprecated, use trusting instead"),!this.trusting},set(o){F("The escaped property on mustache nodes is deprecated, use trusting instead"),this.trusting=!o}}),a}function na({head:t,tail:e,loc:r}){let n={type:"PathExpression",head:t,tail:e,get original(){return[this.head.original,...this.tail].join(".")},set original(s){let[i,...a]=qe(s.split("."));this.head=ta.head(i,this.head.loc),this.tail=a},loc:r};return Object.defineProperty(n,"parts",{enumerable:!1,get(){F("The parts property on path nodes is deprecated, use head and tail instead");let s=qe(this.original.split("."));return s[0]==="this"?s.shift():s[0].startsWith("@")&&(s[0]=s[0].slice(1)),Object.freeze(s)},set(s){var a;F("The parts property on mustache nodes is deprecated, use head and tail instead");let i=[...s];i[0]!=="this"&&!((a=i[0])!=null&&a.startsWith("@"))&&(this.head.type==="ThisHead"?i.unshift("this"):this.head.type==="AtHead"&&(i[0]=`@${i[0]}`)),this.original=i.join(".")}}),Object.defineProperty(n,"this",{enumerable:!1,get(){return F("The this property on path nodes is deprecated, use head.type instead"),this.head.type==="ThisHead"}}),Object.defineProperty(n,"data",{enumerable:!1,get(){return F("The data property on path nodes is deprecated, use head.type instead"),this.head.type==="AtHead"}}),n}function sa({type:t,value:e,loc:r}){let n={type:t,value:e,loc:r};return Object.defineProperty(n,"original",{enumerable:!1,get(){return F("The original property on literal nodes is deprecated, use value instead"),this.value},set(s){F("The original property on literal nodes is deprecated, use value instead"),this.value=s}}),n}var Lt={close:!1,open:!1},Cr=class{pos({line:e,column:r}){return{line:e,column:r}}blockItself({body:e,params:r,chained:n=!1,loc:s}){return{type:"Block",body:e,params:r,get blockParams(){return this.params.map(i=>i.name)},set blockParams(i){this.params=i.map(a=>f.var({name:a,loc:O.synthetic(a)}))},chained:n,loc:s}}template({body:e,blockParams:r,loc:n}){return{type:"Template",body:e,blockParams:r,loc:n}}mustache({path:e,params:r,hash:n,trusting:s,loc:i,strip:a=Lt}){return ra({path:e,params:r,hash:n,trusting:s,strip:a,loc:i})}block({path:e,params:r,hash:n,defaultBlock:s,elseBlock:i=null,loc:a,openStrip:o=Lt,inverseStrip:c=Lt,closeStrip:p=Lt}){return{type:"BlockStatement",path:e,params:r,hash:n,program:s,inverse:i,loc:a,openStrip:o,inverseStrip:c,closeStrip:p}}comment({value:e,loc:r}){return{type:"CommentStatement",value:e,loc:r}}mustacheComment({value:e,loc:r}){return{type:"MustacheCommentStatement",value:e,loc:r}}concat({parts:e,loc:r}){return{type:"ConcatStatement",parts:e,loc:r}}element({path:e,selfClosing:r,attributes:n,modifiers:s,params:i,comments:a,children:o,openTag:c,closeTag:p,loc:h}){let d=r;return{type:"ElementNode",path:e,attributes:n,modifiers:s,params:i,comments:a,children:o,openTag:c,closeTag:p,loc:h,get tag(){return this.path.original},set tag(N){this.path.original=N},get blockParams(){return this.params.map(N=>N.name)},set blockParams(N){this.params=N.map(g=>f.var({name:g,loc:O.synthetic(g)}))},get selfClosing(){return d},set selfClosing(N){d=N,N?this.closeTag=null:this.closeTag=O.synthetic(``)}}}elementModifier({path:e,params:r,hash:n,loc:s}){return{type:"ElementModifierStatement",path:e,params:r,hash:n,loc:s}}attr({name:e,value:r,loc:n}){return{type:"AttrNode",name:e,value:r,loc:n}}text({chars:e,loc:r}){return{type:"TextNode",chars:e,loc:r}}sexpr({path:e,params:r,hash:n,loc:s}){return{type:"SubExpression",path:e,params:r,hash:n,loc:s}}path({head:e,tail:r,loc:n}){return na({head:e,tail:r,loc:n})}head({original:e,loc:r}){return e==="this"?this.this({loc:r}):e[0]==="@"?this.atName({name:e,loc:r}):this.var({name:e,loc:r})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:r}){let n="",s={type:"AtHead",get name(){return n},set name(i){w(i[0]==="@","call builders.at() with a string that starts with '@'"),w(i.indexOf(".")===-1,"builder.at() should not be called with a name with dots in it"),n=i},get original(){return this.name},set original(i){this.name=i},loc:r};return s.name=e,s}var({name:e,loc:r}){let n="",s={type:"VarHead",get name(){return n},set name(i){w(i!=="this","You called builders.var() with 'this'. Call builders.this instead"),w(i[0]!=="@",`You called builders.var() with '${e}'. Call builders.at('${e}') instead`),w(i.indexOf(".")===-1,"builder.var() should not be called with a name with dots in it"),n=i},get original(){return this.name},set original(i){this.name=i},loc:r};return s.name=e,s}hash({pairs:e,loc:r}){return{type:"Hash",pairs:e,loc:r}}pair({key:e,value:r,loc:n}){return{type:"HashPair",key:e,value:r,loc:n}}literal({type:e,value:r,loc:n}){return sa({type:e,value:r,loc:n})}},f=new Cr,Lr=class{elementStack=[];lines;source;currentAttribute=null;currentNode=null;tokenizer;constructor(e,r=new mr(Dn),n="precompile"){this.source=e,this.lines=e.source.split(/\r\n?|\n/u),this.tokenizer=new gr(this,r,n)}offset(){let{line:e,column:r}=this.tokenizer;return this.source.offsetFor(e,r)}pos({line:e,column:r}){return this.source.offsetFor(e,r)}finish(e){return or({},e,{loc:e.start.until(this.offset())})}get currentAttr(){return Tn(this.currentAttribute,"expected attribute")}get currentTag(){let e=this.currentNode;return w(e&&(e.type==="StartTag"||e.type==="EndTag"),"expected tag"),e}get currentStartTag(){let e=this.currentNode;return w(e&&e.type==="StartTag","expected start tag"),e}get currentEndTag(){let e=this.currentNode;return w(e&&e.type==="EndTag","expected end tag"),e}get currentComment(){let e=this.currentNode;return w(e&&e.type==="CommentStatement","expected a comment"),e}get currentData(){let e=this.currentNode;return w(e&&e.type==="TextNode","expected a text node"),e}acceptNode(e){return this[e.type](e)}currentElement(){return Nt(qe(this.elementStack))}sourceForNode(e,r){let n=e.loc.start.line-1,s=n-1,i=e.loc.start.column,a=[],o,c,p;for(r?(c=r.loc.end.line-1,p=r.loc.end.column):(c=e.loc.end.line-1,p=e.loc.end.column);s=x?v=-1:v=g.indexOf(C,T),v===-1||v+C.length>x?(T=x,M=this.source.spanFor(st)):(T=v,M=N.sliceStartChars({skipStart:T,chars:C.length}),T+=C.length),a.push(f.var({name:C,loc:M}))}}e.program.loc||(e.program.loc=st),e.inverse&&!e.inverse.loc&&(e.inverse.loc=st);let o=this.Program(e.program,a),c=e.inverse?this.Program(e.inverse,[]):null,p=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip}),h=this.currentElement();Ve(h,p)}MustacheStatement(e){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(e.loc));let{tokenizer:r}=this;if(r.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}let n,{escaped:s,loc:i,strip:a}=e;if("original"in e.path&&e.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(e.loc));if(Mn(e.path))n=f.mustache({path:this.acceptNode(e.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(e.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:p,hash:h}=wr(this,e);n=f.mustache({path:c,params:p,hash:h,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":kr(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),kr(this.currentStartTag,n),r.transitionTo(qn);break;case"afterAttributeValueQuoted":kr(this.currentStartTag,n),r.transitionTo(qn);break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo(ia);break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Ve(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(e)}finalizeTextPart(){let r=this.currentAttr.currentPart;r!==null&&(this.currentAttr.parts.push(r),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){oa(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(e)),null;let{value:n,loc:s}=e,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ve(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(e.loc))}return i}PartialStatement(e){throw S("Handlebars partials are not supported",this.source.spanFor(e.loc))}PartialBlockStatement(e){throw S("Handlebars partial blocks are not supported",this.source.spanFor(e.loc))}Decorator(e){throw S("Handlebars decorators are not supported",this.source.spanFor(e.loc))}DecoratorBlock(e){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(e.loc))}SubExpression(e){let{path:r,params:n,hash:s}=wr(this,e);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(e.loc)})}PathExpression(e){let{original:r}=e,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(e.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(e.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(e.loc));n=[e.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(e.loc));n=e.parts}let s=!1;/^this(?:\..+)?$/u.test(r)&&(s=!0);let i;if(s)i=f.this({loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+4}})});else if(e.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(e.loc));i=f.atName({name:`@${a}`,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(e.loc));i=f.var({name:a,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length}})})}return f.path({head:i,tail:n,loc:this.source.spanFor(e.loc)})}Hash(e){let r=e.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(e.loc)})}StringLiteral(e){return f.literal({type:"StringLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}BooleanLiteral(e){return f.literal({type:"BooleanLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}NumberLiteral(e){return f.literal({type:"NumberLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}UndefinedLiteral(e){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(e.loc)})}NullLiteral(e){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(e.loc)})}};function aa(t,e){if(e==="")return{lines:t.split(` -`).length-1,columns:0};let[r]=t.split(e),n=r.split(/\n/u),s=n.length-1;return{lines:s,columns:kt(n[s]).length}}function oa(t,e){let r=e.loc.start.line,n=e.loc.start.column,s=aa(e.original,e.value);r=r+s.lines,s.lines?n=s.columns:n=n+s.columns,t.line=r,t.column=n}function wr(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let a;throw e.path.type==="BooleanLiteral"?a=e.path.original.toString():e.path.type==="StringLiteral"?a=`"${e.path.original}"`:e.path.type==="NullLiteral"?a="null":e.path.type==="NumberLiteral"?a=e.path.value.toString():a="undefined",S(`${e.path.type} "${e.path.type==="StringLiteral"?e.path.original:a}" cannot be called as a sub-expression, replace (${a}) with ${a}`,t.source.spanFor(e.path.loc))}}let n=e.params?e.params.map(a=>t.acceptNode(a)):[],s=we(n)?Nt(n).loc:r.loc,i=e.hash?t.Hash(e.hash):f.hash({pairs:[],loc:t.source.spanFor(s).collapse("end")});return{path:r,params:n,hash:i}}function kr(t,e){let{path:r,params:n,hash:s,loc:i}=e;if(Mn(r)){let o=`{{${Ri(r)}}}`,c=`<${t.name} ... ${o} ...`;throw S(`In ${c}, ${o} is not a valid modifier`,e.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});t.modifiers.push(a)}function He(t){return/[\t\n\f ]/u.test(t)}var Dr=class extends _r{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(e){this.currentComment.value+=e}finishComment(){Ve(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(e){this.currentData.chars+=e}finishData(){Ve(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(Tr.has(e.name)||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,nameStart:r,nameEnd:n}=this.currentStartTag;w(e!=="","tag name cannot be empty"),w(r!==null,"nameStart unexpectedly null"),w(n!==null,"nameEnd unexpectedly null");let s=r.until(n),[i,...a]=qe(e.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:p,comments:h,params:d,selfClosing:N,loc:g}=this.finish(this.currentStartTag),T=f.element({path:o,selfClosing:N,attributes:c,modifiers:p,comments:h,params:d,children:[],openTag:g,closeTag:N?null:O.broken(),loc:g});this.elementStack.push(T)}finishEndTag(e){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,e);let i=this.currentElement();e?s.closeTag=null:s.selfClosing?w(s.closeTag===null,"element.closeTag unexpectedly present"):s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Ve(i,f.element(s))}markTagAsSelfClosing(){let e=this.currentTag;if(e.type==="StartTag")e.selfClosing=!0;else throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:e.start.toJSON(),end:this.offset().toJSON()}))}appendToTagName(e){let r=this.currentTag;if(r.name+=e,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(w(r.nameEnd===null,"nameStart and nameEnd must both be null"),r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=e,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();e===` -`?i=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i=i.move(-1),this.currentAttr.currentPart=f.text({chars:e,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let p=this.assembleAttributeValue(s,a,o,i.until(r));p.loc=c.withEnd(r);let h=f.attr({name:n,value:p,loc:i.until(r)});this.currentStartTag.attributes.push(h)}parsePossibleBlockParams(){let e="beforeAttributeName",r="attributeName",n="afterAttributeName",s=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;w(this.tokenizer.state===r,"must be in TokenizerState.attributeName");let i=this.currentStartTag,a=this.currentAttr,o={state:"PossibleAs"},c={PossibleAs:h=>{if(w(o.state==="PossibleAs","bug in block params parser"),He(h))o={state:"BeforeStartPipe"},this.tokenizer.transitionTo(n),this.tokenizer.consume();else{if(h==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',a.start.until(this.offset().move(1)));o={state:"Done"}}},BeforeStartPipe:h=>{w(o.state==="BeforeStartPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h==="|"?(o={state:"BeforeBlockParamName"},this.tokenizer.transitionTo(e),this.tokenizer.consume()):o={state:"Done"}},BeforeBlockParamName:h=>{if(w(o.state==="BeforeBlockParamName","bug in block params parser"),He(h))this.tokenizer.consume();else if(h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"){if(i.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",a.start.until(this.offset().move(1)));o={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o={state:"BlockParamName",name:h,start:this.offset()},this.tokenizer.consume()}},BlockParamName:h=>{if(w(o.state==="BlockParamName","bug in block params parser"),h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"||He(h)){let d=o.start.until(this.offset());if(o.name==="this"||s.test(o.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``,d);i.params.push(f.var({name:o.name,loc:d})),o=h==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o.name+=h,this.tokenizer.consume()}},AfterEndPipe:h=>{w(o.state==="AfterEndPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h===""?(o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}}):h===">"||h==="/"?o={state:"Done"}:(o={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:h=>{if(w(o.state==="Error","bug in block params parser"),h===""||h==="/"||h===">"||He(h))throw S(o.message,o.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{w(!1,"This should never be called")}},p;do p=this.tokenizer.peek(),c[o.state](p);while(o.state!=="Done"&&p!=="");w(o.state==="Done","bug in block params parser")}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let s of e)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);Tt(e,"the concatenation parts of an element should not be empty");let r=Nn(e),n=Nt(e);return f.concat({parts:e,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(e,r,n){if(Tr.has(e.name)&&!n)throw S(`<${e.name}> elements do not need end tags. You should remove it`,e.loc);if(r.tag===void 0)throw S(`Closing tag without an open tag`,e.loc);if(r.tag!==e.name)throw S(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,e.loc)}assembleAttributeValue(e,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(e);{Tt(e);let[i,a]=e;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}else return we(e)?e[0]:f.text({chars:"",loc:s})}},la={},Or=class extends mr{constructor(){super({})}parse(){}};function Wn(t,e={}){var c,p,h;let r=e.mode||"precompile",n,s;typeof t=="string"?(n=new Te(t,(c=e.meta)==null?void 0:c.moduleName),r==="codemod"?s=Ct(t,e.parseOptions):s=dr(t,e.parseOptions)):t instanceof Te?(n=t,r==="codemod"?s=Ct(t.source,e.parseOptions):s=dr(t.source,e.parseOptions)):(n=new Te("",(p=e.meta)==null?void 0:p.moduleName),s=t);let i;r==="codemod"&&(i=new Or);let a=O.forCharPositions(n,0,n.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new Dr(n,i,r).parse(s,e.locals??[]);if((h=e==null?void 0:e.plugins)!=null&&h.ast)for(let d of e.plugins.ast){let N=or({},e,{syntax:la},{plugins:void 0}),g=d(N);Bi(o,g.visitor)}return o}var Ir=function(t){return t.Helper="Helper",t.Modifier="Modifier",t.Component="Component",t}({}),al=Ir.Helper,ol=Ir.Modifier,ll=Ir.Component;var Bt=` -`,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;nthis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ca(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ca;function ua(t){let e=t.children??t.body;if(e)for(let r=0;re.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),ua(s)}}})}function pa(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[ha(t)]}})}catch(r){let n=da(r);if(n){let s=fa(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function fa(t){let{message:e}=t,r=e.split(` -`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function da(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ma={parse:pa,astFormat:"glimmer",locStart:Se,locEnd:tt};var ga={glimmer:En};return as(ba);}); \ No newline at end of file +`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var ui={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},xr=function(){function e(t,r,n,s){let i=Error.call(this,t);this.key=s,this.message=t,this.node=r,this.parent=n,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function Cn(e,t,r){return new xr("Cannot remove a node unless it is part of an array",e,t,r)}function hi(e,t,r){return new xr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function Nn(e,t){return new xr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var Ft=class{node;parent;parentKey;constructor(t,r=null,n=null){this.node=t,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Er(this)}}},Er=class{path;constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function On(e){return typeof e=="function"?e:e.enter}function Bn(e){return typeof e=="function"?void 0:e.exit}function _e(e,t){let r,n,s,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=On(c),n=Bn(c)),r!==void 0&&(s=r(i,t)),s!=null){if(JSON.stringify(i)!==JSON.stringify(s))return Array.isArray(s)?(In(e,s,a,o),s):_e(e,new Ft(s,a,o))||s;s=void 0}if(s===void 0){let h=ui[i.type];for(let p=0;ptypeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function Pn(e=[],t=[],r=!1,n){return f.blockItself({body:e,params:qn(t),chained:r,loc:T(n||null)})}function Ln(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(mr(),t):D.forHbsLoc(mr(),li)}{let[t,r,n,s,i]=e,a=i?new Et("",i):mr();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:n||t,column:s||r}})}}var di={mustache:function(e,t=[],r=ne([]),n=!1,s,i){return f.mustache({path:lt(e),params:t,hash:r,trusting:n,strip:i,loc:T(s||null)})},block:function(e,t,r,n,s=null,i,a,o,c){let h,p=null;return h=n.type==="Template"?f.blockItself({params:qn(n.blockParams),body:n.body,loc:n.loc}):n,(s==null?void 0:s.type)==="Template"?(s.blockParams.length,p=f.blockItself({params:[],body:s.body,loc:s.loc})):p=s,f.block({path:lt(e),params:t||[],hash:r||ne([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return f.comment({value:e,loc:T(t||null)})},mustacheComment:function(e,t){return f.mustacheComment({value:e,loc:T(t||null)})},element:function(e,t={}){let r,n,{attrs:s,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:p,loc:m}=t;typeof e=="string"?e.endsWith("/")?(r=lt(e.slice(0,-1)),n=!0):r=lt(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,n=e.selfClosing):(r=lt(e.name),n=e.selfClosing);let v=i==null?void 0:i.map(E=>typeof E=="string"?xn(E):E),g=null;return p?g=T(p||null):p===void 0&&(g=n||ai(r.original)?null:T(null)),f.element({path:r,selfClosing:n||!1,attributes:s||[],params:v||[],modifiers:a||[],comments:o||[],children:c||[],openTag:T(h||null),closeTag:g,loc:T(m||null)})},elementModifier:function(e,t,r,n){return f.elementModifier({path:lt(e),params:t||[],hash:r||ne([]),loc:T(n||null)})},attr:function(e,t,r){return f.attr({name:e,value:t,loc:T(r||null)})},text:function(e="",t){return f.text({chars:e,loc:T(t||null)})},sexpr:function(e,t=[],r=ne([]),n){return f.sexpr({path:lt(e),params:t,hash:r,loc:T(n||null)})},concat:function(e,t){if(!ue(e))throw new Error("b.concat requires at least one part");return f.concat({parts:e,loc:T(t||null)})},hash:ne,pair:function(e,t,r){return f.pair({key:e,value:t,loc:T(r||null)})},literal:Le,program:function(e,t,r){return t&&t.length?Pn(e,t,!1,r):Ln(e,[],r)},blockItself:Pn,template:Ln,loc:T,pos:function(e,t){return f.pos({line:e,column:t})},path:lt,fullPath:function(e,t=[],r){return f.path({head:e,tail:t,loc:T(r||null)})},head:function(e,t){return f.head({original:e,loc:T(t||null)})},at:function(e,t){return f.atName({name:e,loc:T(t||null)})},var:xn,this:function(e){return f.this({loc:T(e||null)})},string:dr("StringLiteral"),boolean:dr("BooleanLiteral"),number:dr("NumberLiteral"),undefined:()=>Le("UndefinedLiteral",void 0),null:()=>Le("NullLiteral",null)};function dr(e){return function(t,r){return Le(e,t,r)}}var Pe={close:!1,open:!1},f=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:n}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map(s=>s.name)},set blockParams(s){this.params=s.map(i=>f.var({name:i,loc:D.synthetic(i)}))},chained:r,loc:n}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:n,loc:s,strip:i=Pe}){return function({path:a,params:o,hash:c,trusting:h,strip:p,loc:m}){let v={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:p,loc:m};return Object.defineProperty(v,"escaped",{enumerable:!1,get(){return!this.trusting},set(g){this.trusting=!g}}),v}({path:e,params:t,hash:r,trusting:n,strip:i,loc:s})}block({path:e,params:t,hash:r,defaultBlock:n,elseBlock:s=null,loc:i,openStrip:a=Pe,inverseStrip:o=Pe,closeStrip:c=Pe}){return{type:"BlockStatement",path:e,params:t,hash:r,program:n,inverse:s,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:n,params:s,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let p=t;return{type:"ElementNode",path:e,attributes:r,modifiers:n,params:s,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(m){this.path.original=m},get blockParams(){return this.params.map(m=>m.name)},set blockParams(m){this.params=m.map(v=>f.var({name:v,loc:D.synthetic(v)}))},get selfClosing(){return p},set selfClosing(m){p=m,this.closeTag=m?null:D.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:n}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:n}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:n}){return{type:"SubExpression",path:e,params:t,hash:r,loc:n}}path({head:e,tail:t,loc:r}){return function({head:n,tail:s,loc:i}){let a={type:"PathExpression",head:n,tail:s,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=ie(o.split("."));this.head=di.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=ie(this.original.split("."));return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){var h;let c=[...o];c[0]==="this"||(h=c[0])!=null&&h.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a}({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",n={type:"AtHead",get name(){return r},set name(s){s[0],s.indexOf("."),r=s},get original(){return this.name},set original(s){this.name=s},loc:t};return n.name=e,n}var({name:e,loc:t}){let r="",n={type:"VarHead",get name(){return r},set name(s){s[0],s.indexOf("."),r=s},get original(){return this.name},set original(s){this.name=s},loc:t};return n.name=e,n}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return function({type:n,value:s,loc:i}){let a={type:n,value:s,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a}({type:e,value:t,loc:r})}},wr=class{elementStack=[];lines;source;currentAttribute=null;currentNode=null;tokenizer;constructor(t,r=new hr(wn),n="precompile"){this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new pr(this,r,n)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return nr({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Ar(ie(this.elementStack))}sourceForNode(t,r){let n,s,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(s=r.loc.end.line-1,i=r.loc.end.column):(s=t.loc.end.line-1,i=t.loc.end.column);o=E?-1:v.indexOf(N,g),A===-1||A+N.length>E?(g=E,w=this.source.spanFor(se)):(g=A,w=m.sliceStartChars({skipStart:g,chars:N.length}),g+=N.length),a.push(f.var({name:N,loc:w}))}}t.program.loc||(t.program.loc=se),t.inverse&&!t.inverse.loc&&(t.inverse.loc=se);let o=this.Program(t.program,a),c=t.inverse?this.Program(t.inverse,[]):null,h=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Vt(this.currentElement(),h)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let n,{escaped:s,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Rn(t.path))n=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=gr(this,t);n=f.mustache({path:c,params:h,hash:p,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":br(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),br(this.currentStartTag,n),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":br(this.currentStartTag,n),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Vt(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,n){let s=n.loc.start.line,i=n.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(` +`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(n.original,n.value);s+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=s,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:n,loc:s}=t,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Vt(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw S("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw S("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw S("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:n,hash:s}=gr(this,t);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));n=[t.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));n=t.parts}let s,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)s=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));s=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));s=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:s,tail:n,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}};function gr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",S(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let n=t.params?t.params.map(i=>e.acceptNode(i)):[],s=ue(n)?Ar(n).loc:r.loc;return{path:r,params:n,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(s).collapse("end")})}}function br(e,t){let{path:r,params:n,hash:s,loc:i}=t;if(Rn(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw S(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});e.modifiers.push(a)}function qt(e){return/[\t\n\f ]/u.test(e)}var Cr=class extends Tr{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){Vt(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){Vt(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(yr.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:n}=this.currentStartTag,s=r.until(n),[i,...a]=ie(t.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:h,comments:p,params:m,selfClosing:v,loc:g}=this.finish(this.currentStartTag),E=f.element({path:o,selfClosing:v,attributes:c,modifiers:h,comments:p,params:m,children:[],openTag:g,closeTag:v?null:D.broken(),loc:g});this.elementStack.push(E)}finishEndTag(t){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,t);let i=this.currentElement();t?s.closeTag=null:s.selfClosing?s.closeTag:s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Vt(i,f.element(s))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=t,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();i=t===` +`?n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let h=this.assembleAttributeValue(s,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:n,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,n=this.currentAttr,s={state:"PossibleAs"},i={PossibleAs:o=>{if(s.state,qt(o))s={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',n.start.until(this.offset().move(1)));s={state:"Done"}}},BeforeStartPipe:o=>{s.state,qt(o)?this.tokenizer.consume():o==="|"?(s={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):s={state:"Done"}},BeforeBlockParamName:o=>{if(s.state,qt(o))this.tokenizer.consume();else if(o==="")s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",n.start.until(this.offset().move(1)));s={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));s={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(s.state,o==="")s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}};else if(o==="|"||qt(o)){let c=s.start.until(this.offset());if(s.name==="this"||t.test(s.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${s.name}\``,c);r.params.push(f.var({name:s.name,loc:c})),s=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));s.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{s.state,qt(o)?this.tokenizer.consume():o===""?(s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}}):o===">"||o==="/"?s={state:"Done"}:(s={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(s.state,o===""||o==="/"||o===">"||qt(o))throw S(s.message,s.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[s.state](a);while(s.state!=="Done"&&a!=="");s.state}reportSyntaxError(t){throw S(t,this.offset().collapsed())}assembleConcatenatedValue(t){for(let s of t)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);let r=oi(t),n=Ar(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(t,r,n){if(yr.has(t.name)&&!n)throw S(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.tag===void 0)throw S(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw S(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}return ue(t)?t[0]:f.text({chars:"",loc:s})}},gi={},Nr=class extends hr{constructor(){super({})}parse(){}};function Vn(e,t={}){var c,h,p;let r,n,s,i=t.mode||"precompile";typeof e=="string"?(r=new Et(e,(c=t.meta)==null?void 0:c.moduleName),n=i==="codemod"?Ae(e,t.parseOptions):ur(e,t.parseOptions)):e instanceof Et?(r=e,n=i==="codemod"?Ae(e.source,t.parseOptions):ur(e.source,t.parseOptions)):(r=new Et("",(h=t.meta)==null?void 0:h.moduleName),n=e),i==="codemod"&&(s=new Nr);let a=D.forCharPositions(r,0,r.source.length);n.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new Cr(r,s,i).parse(n,t.locals??[]);if((p=t==null?void 0:t.plugins)!=null&&p.ast)for(let m of t.plugins.ast)mi(o,m(nr({},t,{syntax:gi},{plugins:void 0})).visitor);return o}var bi={resolution:()=>xe.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},po={...bi,isAngleBracket:!0};var Oe=` +`,Hn="\r",Fn=function(){function e(t){this.length=t.length;for(var r=[0],n=0;nthis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var s=t-n[r];return{line:r,column:s}},e.prototype.indexForLocation=function(t){var r=t.line,n=t.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}();function yi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Un=yi;function ki(e){let t=e.children??e.body;if(t)for(let r=0;rt.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),ki(s)}}})}function vi(e){let t;try{t=Vn(e,{mode:"codemod",plugins:{ast:[Si(e)]}})}catch(r){let n=wi(r);if(n){let s=Ei(r);throw Un(s,{loc:n,cause:r})}throw r}return t}function Ei(e){let{message:t}=e,r=t.split(` +`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(it(!1,r,-2))?it(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(it(!1,r,-1))&&r[1]===""&&it(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):t}function wi(e){let{location:t,hash:r}=e;if(t){let{start:n,end:s}=t;return typeof s.line!="number"?{start:n}:t}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var Ti={parse:vi,astFormat:"glimmer",locStart:yt,locEnd:te};var Ci={glimmer:pn};return Xn(Ni);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/glimmer.mjs b/node_modules/prettier/plugins/glimmer.mjs index fa428717..8d351eeb 100644 --- a/node_modules/prettier/plugins/glimmer.mjs +++ b/node_modules/prettier/plugins/glimmer.mjs @@ -1,20 +1,20 @@ -var rs=Object.defineProperty;var Fr=t=>{throw TypeError(t)};var zt=(t,e)=>{for(var r in e)rs(t,r,{get:e[r],enumerable:!0})};var Mr=(t,e,r)=>e.has(t)||Fr("Cannot "+r);var $=(t,e,r)=>(Mr(t,e,"read from private field"),r?r.call(t):e.get(t)),Gt=(t,e,r)=>e.has(t)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Yt=(t,e,r,n)=>(Mr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Rr={};zt(Rr,{languages:()=>Sn,parsers:()=>Ir,printers:()=>pa});var ns=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Kt=ns;var ze="string",Ge="array",Ye="cursor",Le="indent",_e="align",Ke="trim",De="group",Oe="fill",Be="if-break",We="indent-if-break",$e="line-suffix",je="line-suffix-boundary",ee="line",Qe="label",Ie="break-parent",ft=new Set([Ye,Le,_e,Ke,De,Oe,Be,We,$e,je,ee,Qe,Ie]);function ss(t){if(typeof t=="string")return ze;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(ft.has(e))return e}var Xe=ss;var is=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function as(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=is([...ft].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var Wt=class extends Error{name="InvalidDocError";constructor(e){super(as(e)),this.doc=e}},$t=Wt;var zr=()=>{},be=zr,dt=zr;function R(t){return be(t),{type:Le,contents:t}}function os(t,e){return be(e),{type:_e,contents:e,n:t}}function q(t,e={}){return be(t),dt(e.expandedStates,!0),{type:De,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function jt(t){return os(-1,t)}function Qt(t){return dt(t),{type:Oe,parts:t}}function Xt(t,e="",r={}){return be(t),e!==""&&be(e),{type:Be,breakContents:t,flatContents:e,groupId:r.groupId}}var Gr={type:Ie};var ls={type:ee,hard:!0},cs={type:ee,hard:!0,literal:!0},D={type:ee},Y={type:ee,soft:!0},ye=[ls,Gr],Yr=[cs,Gr];function Ee(t,e){be(t),dt(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},oe=us;function hs(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Xe(i)){case Ge:return e(i.map(n));case Oe:return e({...i,parts:i.parts.map(n)});case Be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case De:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case _e:case Le:case We:case Qe:case $e:return e({...i,contents:n(i.contents)});case ze:case Ye:case Ke:case je:case ee:case Ie:return e(i);default:throw new $t(i)}}}function Kr(t,e=Yr){return hs(t,r=>typeof r=="string"?Ee(e,r.split(` -`)):r)}var mt="'",Wr='"';function ps(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=ps;function Jt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,Zt=class{constructor(e){Gt(this,G);Yt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Jt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=Zt;var fs=[" ",` -`,"\f","\r"," "],ds=new $r(fs),K=ds;function ms(t){return Array.isArray(t)&&t.length>0}var Je=ms;var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=er;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var gs=10;for(let t=0;t<=gs;t++)et();function tr(t){return et(t)}function bs(t,e="type"){tr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=bs;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ys=Jr(Zr),en=ys;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Es(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ss(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function rr(t){return t.selfClosing===!0||Ss(t.tag)||Es(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/u.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function ws(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ts(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(rr(n))return[g,T];let x=[""];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Cs(t)?[Ls(t,r),cn(t,r,e),un(t,r,e)]:[Ps(t,r),q([cn(t,r,e),un(t,r,e),_s(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Hs(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Kt(!1,n.chars,"{{",String.raw`\{{`),T=Os(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/u).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>jt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>jt(se)))}g=g.slice(0,-U.length)}return[...Pe,Qt(hn(g)),...ne]}let M=Re(g),H=Bs(g),X=Is(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Qt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ms(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return Rs(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function ks(t,e){return Se(t)-Se(e)}function Ts(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(ks);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,sr(r)),["<",r.tag,R(s),Ns(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function Ns(t){return rr(t)?Xt([Y,"/>"],[" />",Y]):Xt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function vs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function As(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function Ps(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(sr(r.program)),q([vs(r),nr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,As(r)])}function xs(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Cs(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Ls(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,sr(r.program)]:[]]),Y,mn(n)])}function _s(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Ds(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Ds(n)?i:yn(n)?[xs(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function Os(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(` -`).length-1}function Bs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Re(e)}function Is(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Rs(t,e){let{node:{value:r}}=t,n=gt(r,qs(t)?!e.singleQuote:e.singleQuote);return[n,Kt(!1,r,n,`\\${n}`),n]}function qs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Hs(t,e){let r=nr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=nr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function nr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function sr(t){return["as |",t.blockParams.join(" "),"|"]}var Vs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Us=new Set(["true","false","null","undefined"]),Fs=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Us.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,r=>Vs.has(r));function Ms(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Fs(r,n)?`[${r}]`:r).join(".")}var zs={print:ws,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=zs;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Ir={};zt(Ir,{glimmer:()=>ha});var Gs=Object.freeze([]);function kn(){return Gs}var Po=kn(),xo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){Js.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var Ys;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);Ys=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ir=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Ks(t){return t&ir.SIGN_BIT}function Ws(t){return t|~ir.SIGN_BIT}function $s(t){return~t}function js(t){return~t}function Qs(t){return t|=0,t<0?Ks(t):$s(t)}function Xs(t){return t|=0,t>ir.SIGN_BIT?js(t):Ws(t)}[1,-1].forEach(t=>Xs(Qs(t)));var ar=Object.assign;var Js=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Zs=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fa(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,da,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`: -`+L.showPosition()+` -Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error on line "+(ae+1)+": Unexpected "+(I==Vr?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Mt,{text:L.match,token:this.terminals_[I]||I,line:L.yylineno,loc:Vt,expected:pt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+I);switch(z[0]){case 1:b.push(I),P.push(L.yytext),l.push(L.yylloc),b.push(z[1]),I=null,Ut?(I=Ut,Ut=null):(Me=L.yyleng,u=L.yytext,ae=L.yylineno,Vt=L.yylloc,Hr>0&&Hr--);break;case 2:if(Z=this.productions_[z[1]][1],Ce.$=P[P.length-Z],Ce._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},es&&(Ce._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(Ce,[u,Me,ae,me.yy,z[1],P,l].concat(Zn)),typeof Ft<"u")return Ft;Z&&(b=b.slice(0,-1*Z*2),P=P.slice(0,-1*Z),l=l.slice(0,-1*Z)),b.push(this.productions_[z[1]][0]),P.push(Ce.$),l.push(Ce._$),Ur=xe[b[b.length-2]][b[b.length-1]],b.push(Ur);break;case 3:return!0}}return!0}},Xn=function(){var ie={EOF:1,parseError:function(E,b){if(this.yy.parser)this.yy.parser.parseError(E,b);else throw new Error(E)},setInput:function(m,E){return this.yy=E||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var E=m.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var E=m.length,b=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),E=new Array(m.length+1).join("-");return m+this.upcomingInput()+` -`+E+"^"},test_match:function(m,E){var b,y,P;if(this.options.backtrack_lexer&&(P={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(P.yylloc.range=this.yylloc.range.slice(0))),y=m[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],b=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var l in P)this[l]=P[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,E,b,y;this._more||(this.yytext="",this.match="");for(var P=this._currentRules(),l=0;lE[0].length)){if(E=b,y=l,this.options.backtrack_lexer){if(m=this.test_match(b,P[l]),m!==!1)return m;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(m=this.test_match(E,P[y]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(E,b,y,P){function l(u,ae){return b.yytext=b.yytext.substring(u,b.yyleng-ae+u)}var xe=P;switch(y){case 0:if(b.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return b.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return b.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return ie}();Rt.lexer=Xn;function qt(){this.yy={}}return qt.prototype=Rt,Rt.Parser=qt,new qt}(),vt=Zs;var or=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function lr(t,e){var r=e&&e.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,t+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,t),c=0;cpr,id:()=>ei,prepareBlock:()=>ai,prepareMustache:()=>si,preparePartialBlock:()=>li,preparePath:()=>ni,prepareProgram:()=>oi,prepareRawBlock:()=>ii,stripComment:()=>ri,stripFlags:()=>ti});function hr(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new le(t.path.original+" doesn't match "+e,r)}}function pr(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function ei(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function ti(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function ri(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function ni(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],i=0,a=0,o=e.length;a0)throw new le("Invalid path: "+n,{loc:r});c===".."&&i++}else s.push(c)}return{type:"PathExpression",data:t,depth:i,parts:s,original:n,loc:r}}function si(t,e,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function ii(t,e,r,n){hr(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function ai(t,e,r,n,s,i){n&&n.path&&hr(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var o,c;if(r){if(a)throw new le("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=e,e=s),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:o,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function oi(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function li(t,e,r,n){return hr(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var Ln={};for(xt in nt)Object.prototype.hasOwnProperty.call(nt,xt)&&(Ln[xt]=nt[xt]);var xt;function Ct(t,e){if(t.type==="Program")return t;vt.yy=Ln,vt.yy.locInfo=function(n){return new pr(e&&e.srcName,n)};var r=vt.parse(t);return r}function fr(t,e){var r=Ct(t,e),n=new Cn(e);return n.accept(r)}var Dn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ci=/^#[xX]([A-Fa-f0-9]+)$/,ui=/^#([0-9]+)$/,hi=/^([A-Za-z0-9]+)$/,dr=function(){function t(e){this.named=e}return t.prototype.parse=function(e){if(e){var r=e.match(ci);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=e.match(ui),r)return String.fromCharCode(parseInt(r[1],10));if(r=e.match(hi),r)return this.named[r[1]]}},t}(),pi=/[\t\n\f ]/,fi=/[A-Za-z]/,di=/\r\n?/g;function B(t){return pi.test(t)}function _n(t){return fi.test(t)}function mi(t){return t.replace(di,` -`)}var mr=function(){function t(e,r,n){n===void 0&&(n="precompile"),this.delegate=e,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var s=this.peek();if(s==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&s===` -`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var s=this.peek(),i=this.tagNameBuffer;s==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):s==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(s))},tagOpen:function(){var s=this.consume();s==="!"?this.transitionTo("markupDeclarationOpen"):s==="/"?this.transitionTo("endTagOpen"):(s==="@"||s===":"||_n(s))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(s))},markupDeclarationOpen:function(){var s=this.consume();if(s==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var s=this.consume();B(s)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var s=this.consume();B(s)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase()))},doctypeName:function(){var s=this.consume();B(s)?this.transitionTo("afterDoctypeName"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase())},afterDoctypeName:function(){var s=this.consume();if(!B(s))if(s===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var s=this.peek();B(s)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):s==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):s==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):s===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},doctypePublicIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},afterDoctypePublicIdentifier:function(){var s=this.consume();B(s)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var s=this.consume();B(s)||(s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},doctypeSystemIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},afterDoctypeSystemIdentifier:function(){var s=this.consume();B(s)||s===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var s=this.consume();s==="-"?this.transitionTo("commentStartDash"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(s),this.transitionTo("comment"))},commentStartDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var s=this.consume();s==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(s)},commentEndDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+s),this.transitionTo("comment"))},commentEnd:function(){var s=this.consume();s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+s),this.transitionTo("comment"))},tagName:function(){var s=this.consume();B(s)?this.transitionTo("beforeAttributeName"):s==="/"?this.transitionTo("selfClosingStartTag"):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(s)},endTagName:function(){var s=this.consume();B(s)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):s==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();if(B(s)){this.consume();return}else s==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();B(s)?(this.transitionTo("afterAttributeName"),this.consume()):s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==='"'||s==="'"||s==="<"?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();if(B(s)){this.consume();return}else s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();B(s)?this.consume():s==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var s=this.consume();s==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueSingleQuoted:function(){var s=this.consume();s==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueUnquoted:function(){var s=this.peek();B(s)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):s===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();B(s)?(this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var s=this.peek();s===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var s=this.consume();(s==="@"||s===":"||_n(s))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(s))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(e){this.state=e},t.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},t.prototype.tokenizePart=function(e){for(this.input+=mi(e);this.index"||e==="style"&&this.input.substring(this.index,this.index+8)!==""||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},t}(),Uo=function(){function t(e,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new mr(this,e,r.mode),this._currentAttribute=void 0}return t.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},t.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},t.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},t.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},t.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var r=0;r\xA0]/u,el=new RegExp(bi.source,"gu");var kr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function yi(t){var e;return kr.has(t.toLowerCase())&&((e=t[0])==null?void 0:e.toLowerCase())===t[0]}var pe=Object.freeze({line:1,column:0}),Ei=Object.freeze({source:"(synthetic)",start:pe,end:pe}),st=Object.freeze({source:"(nonexistent)",start:pe,end:pe}),ue=Object.freeze({source:"(broken)",start:pe,end:pe}),k=function(t){return t.CharPosition="CharPosition",t.HbsPosition="HbsPosition",t.InternalsSynthetic="InternalsSynthetic",t.NonExistent="NonExistent",t.Broken="Broken",t}({}),it="MATCH_ANY",Tr="IS_INVISIBLE",Nr=class{_whens;constructor(e){this._whens=e}first(e){for(let r of this._whens){let n=r.match(e);if(we(n))return n[0]}return null}},Dt=class{_map=new Map;get(e,r){let n=this._map.get(e);return n||(n=r(),this._map.set(e,n),n)}add(e,r){this._map.set(e,r)}match(e){let r=Si(e),n=[],s=this._map.get(r),i=this._map.get(it);return s&&n.push(s),i&&n.push(i),n}};function Hn(t){return t(new vr).check()}var vr=class{_whens=new Dt;check(){return(e,r)=>this.matchFor(e.kind,r.kind)(e,r)}matchFor(e,r){let n=this._whens.match(e);w(we(n),`no match defined for (${e}, ${r}) and no AnyMatch defined either`);let s=new Nr(n).first(r);return w(s!==null,`no match defined for (${e}, ${r}) and no AnyMatch defined either`),s}when(e,r,n){return this._whens.get(e,()=>new Dt).add(r,n),this}};function Si(t){switch(t){case k.Broken:case k.InternalsSynthetic:case k.NonExistent:return Tr;default:return t}}var Ar=class t{static synthetic(e){let r=O.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:O.load(e,r[1]),chars:r[0]})}chars;loc;constructor(e){this.loc=e.loc,this.chars=e.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},O=class t{static get NON_EXISTENT(){return new te(k.NonExistent,st).wrap()}static load(e,r){if(typeof r=="number")return t.forCharPositions(e,r,r);if(typeof r=="string")return t.synthetic(r);if(Array.isArray(r))return t.forCharPositions(e,r[0],r[1]);if(r===k.NonExistent)return t.NON_EXISTENT;if(r===k.Broken)return t.broken(ue);vn(r)}static forHbsLoc(e,r){let n=new de(e,r.start),s=new de(e,r.end);return new ot(e,{start:n,end:s},r).wrap()}static forCharPositions(e,r,n){let s=new Ne(e,r),i=new Ne(e,n);return new at(e,{start:s,end:i}).wrap()}static synthetic(e){return new te(k.InternalsSynthetic,st,e).wrap()}static broken(e=ue){return new te(k.Broken,e).wrap()}isInvisible;constructor(e){this.data=e,this.isInvisible=e.kind!==k.CharPosition&&e.kind!==k.HbsPosition}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?ue:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return Q(e.data,this.data.getEnd())}withEnd(e){return Q(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let r=this.data.asString();return!1,new Ar({loc:this,chars:e||r})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return Q(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:r=0}){return Q(this.getStart().move(e).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:e=0,chars:r}){return Q(this.getStart().move(e).data,this.getStart().move(e+r).data)}sliceEndChars({skipEnd:e=0,chars:r}){return Q(this.getEnd().move(e-r).data,this.getStart().move(-e).data)}},at=class{kind=k.CharPosition;_locPosSpan=null;constructor(e,r){this.source=e,this.charPositions=r}wrap(){return new O(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(e===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();r===null||n===null?e=this._locPosSpan=fe:e=this._locPosSpan=new ot(this.source,{start:r,end:n})}return e===fe?null:e}serialize(){let{start:{charPos:e},end:{charPos:r}}=this.charPositions;return e===r?e:[e,r]}toCharPosSpan(){return this}},ot=class{kind=k.HbsPosition;_charPosSpan=null;_providedHbsLoc;constructor(e,r,n=null){this.source=e,this.hbsPositions=r,this._providedHbsLoc=n}serialize(){let e=this.toCharPosSpan();return e===null?k.Broken:e.wrap().serialize()}wrap(){return new O(this)}updateProvided(e,r){this._providedHbsLoc&&(this._providedHbsLoc[r]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate({start:e,end:r}){e!==void 0&&(this.updateProvided(e,"start"),this.hbsPositions.start=new de(this.source,e,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new de(this.source,r,null))}asString(){let e=this.toCharPosSpan();return e===null?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(e===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(r&&n)e=this._charPosSpan=new at(this.source,{start:r,end:n});else return e=this._charPosSpan=fe,null}return e===fe?null:e}},te=class{constructor(e,r,n=null){this.kind=e,this.loc=r,this.string=n}serialize(){switch(this.kind){case k.Broken:case k.NonExistent:return this.kind;case k.InternalsSynthetic:return this.string||""}}wrap(){return new O(this)}asString(){return this.string||""}locDidUpdate({start:e,end:r}){e!==void 0&&(this.loc.start=e),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new lt(this.kind,this.loc.start)}getEnd(){return new lt(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ue}},Q=Hn(t=>t.when(k.HbsPosition,k.HbsPosition,(e,r)=>new ot(e.source,{start:e,end:r}).wrap()).when(k.CharPosition,k.CharPosition,(e,r)=>new at(e.source,{start:e,end:r}).wrap()).when(k.CharPosition,k.HbsPosition,(e,r)=>{let n=r.toCharPos();return n===null?new te(k.Broken,ue).wrap():Q(e,n)}).when(k.HbsPosition,k.CharPosition,(e,r)=>{let n=e.toCharPos();return n===null?new te(k.Broken,ue).wrap():Q(n,r)}).when(Tr,it,e=>new te(e.kind,ue).wrap()).when(it,Tr,(e,r)=>new te(r.kind,ue).wrap())),fe="BROKEN",Ue=class t{static forHbsPos(e,r){return new de(e,r,null).wrap()}static broken(e=pe){return new lt(k.Broken,e).wrap()}constructor(e){this.data=e}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return wi(this.data,e.data)}until(e){return Q(this.data,e.data)}move(e){let r=this.data.toCharPos();if(r===null)return t.broken();{let n=r.offset+e;return r.source.check(n)?new Ne(r.source,n).wrap():t.broken()}}collapsed(){return Q(this.data,this.data)}toJSON(){return this.data.toJSON()}},Ne=class{kind=k.CharPosition;_locPos=null;constructor(e,r){this.source=e,this.charPos=r}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?pe:e.toJSON()}wrap(){return new Ue(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let r=this.source.hbsPosFor(this.charPos);r===null?this._locPos=e=fe:this._locPos=e=new de(this.source,r,this.charPos)}return e===fe?null:e}},de=class{kind=k.HbsPosition;_charPos;constructor(e,r,n=null){this.source=e,this.hbsPos=r,this._charPos=n===null?null:new Ne(e,n)}toCharPos(){let e=this._charPos;if(e===null){let r=this.source.charPosFor(this.hbsPos);r===null?this._charPos=e=fe:this._charPos=e=new Ne(this.source,r)}return e===fe?null:e}toJSON(){return this.hbsPos}wrap(){return new Ue(this)}toHbsPos(){return this}},lt=class{constructor(e,r){this.kind=e,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Ue(this)}get offset(){return null}},wi=Hn(t=>t.when(k.HbsPosition,k.HbsPosition,({hbsPos:e},{hbsPos:r})=>e.column===r.column&&e.line===r.line).when(k.CharPosition,k.CharPosition,({charPos:e},{charPos:r})=>e===r).when(k.CharPosition,k.HbsPosition,({offset:e},r)=>{var n;return e===((n=r.toCharPos())==null?void 0:n.offset)}).when(k.HbsPosition,k.CharPosition,(e,{offset:r})=>{var n;return((n=e.toCharPos())==null?void 0:n.offset)===r}).when(it,it,()=>!1)),Te=class t{static from(e,r={}){var n;return new t(e,(n=r.meta)==null?void 0:n.moduleName)}constructor(e,r="an unknown module"){this.source=e,this.module=r}check(e){return e>=0&&e<=this.source.length}slice(e,r){return this.source.slice(e,r)}offsetFor(e,r){return Ue.forHbsPos(this,{line:e,column:r})}spanFor({start:e,end:r}){return O.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let r=0,n=0;if(e>this.source.length)return null;for(;;){let s=this.source.indexOf(` -`,n);if(e<=s||s===-1)return{line:r+1,column:e-n};r+=1,n=s+1}}charPosFor(e){let{line:r,column:n}=e,i=this.source.length,a=0,o=0;for(;oc)return c;if(!1){let p=this.hbsPosFor(o+n);w(p!==null,"the returned offset failed to round-trip"),w(p.line===r,"the round-tripped line didn't match the original line"),w(p.column===n,"the round-tripped column didn't match the original column")}return o+n}else{if(c===-1)return 0;a+=1,o=c+1}}return i}};function S(t,e){let{module:r,loc:n}=e,{line:s,column:i}=n.start,a=e.asString(),o=a?` +var Br=Object.defineProperty;var Ir=e=>{throw TypeError(e)};var jn=(e,t,r)=>t in e?Br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ue=(e,t)=>{for(var r in t)Br(e,r,{get:t[r],enumerable:!0})};var Me=(e,t,r)=>jn(e,typeof t!="symbol"?t+"":t,r),Rr=(e,t,r)=>t.has(e)||Ir("Cannot "+r);var I=(e,t,r)=>(Rr(e,t,"read from private field"),r?r.call(e):t.get(e)),Pt=(e,t,r)=>t.has(e)?Ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),J=(e,t,r,n)=>(Rr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Pr={};Ue(Pr,{languages:()=>mn,parsers:()=>Ar,printers:()=>vi});var Qn=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ze=Qn;var Mt="string",zt="array",Yt="cursor",Lt="indent",Dt="align",Gt="trim",_t="group",Ot="fill",Bt="if-break",Kt="indent-if-break",Wt="line-suffix",jt="line-suffix-boundary",$="line",Qt="label",It="break-parent",me=new Set([Yt,Lt,Dt,Gt,_t,Ot,Bt,Kt,Wt,jt,$,Qt,It]);function Jn(e){if(typeof e=="string")return Mt;if(Array.isArray(e))return zt;if(!e)return;let{type:t}=e;if(me.has(t))return t}var Jt=Jn;var $n=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Xn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Jt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=$n([...me].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Ye=class extends Error{name="InvalidDocError";constructor(t){super(Xn(t)),this.doc=t}},Ge=Ye;var qr=()=>{},dt=qr,de=qr;function B(e){return dt(e),{type:Lt,contents:e}}function Zn(e,t){return dt(t),{type:Dt,contents:t,n:e}}function R(e,t={}){return dt(e),de(t.expandedStates,!0),{type:_t,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ke(e){return Zn(-1,e)}function We(e){return de(e),{type:Ot,parts:e}}function je(e,t="",r={}){return dt(e),t!==""&&dt(t),{type:Bt,breakContents:e,flatContents:t,groupId:r.groupId}}var Vr={type:It};var ts={type:$,hard:!0},es={type:$,hard:!0,literal:!0},L={type:$},M={type:$,soft:!0},gt=[ts,Vr],Hr=[es,Vr];function bt(e,t){dt(e),de(t);let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},it=rs;function ns(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Jt(i)){case zt:return t(i.map(n));case Ot:return t({...i,parts:i.parts.map(n)});case Bt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case _t:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),t({...i,contents:o,expandedStates:a})}case Dt:case Lt:case Kt:case Qt:case Wt:return t({...i,contents:n(i.contents)});case Mt:case Yt:case Gt:case jt:case $:case It:return t(i);default:throw new Ge(i)}}}function Fr(e,t=Hr){return ns(e,r=>typeof r=="string"?bt(t,r.split(` +`)):r)}var ge="'",Ur='"';function ss(e,t){let r=t===!0||t===ge?ge:Ur,n=r===ge?Ur:ge,s=0,i=0;for(let a of e)a===r?s++:a===n&&i++;return s>i?n:r}var be=ss;function Qe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Je=class{constructor(t){Pt(this,U);J(this,U,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,U),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,U).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,U).has(it(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Qe([...I(this,U)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=I(this,U);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=I(this,U);return Array.prototype.every.call(t,n=>r.has(n))}};U=new WeakMap;var Mr=Je;var is=[" ",` +`,"\f","\r"," "],as=new Mr(is),z=as;function os(e){return Array.isArray(e)&&e.length>0}var $t=os;var $e=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},zr=$e;function Yr(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=z.split(r).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Yr.ignoredProperties=new Set(["loc","selfClosing"]);var Gr=Yr;var Xt=null;function Zt(e){if(Xt!==null&&typeof Xt.property){let t=Xt;return Xt=Zt.prototype=null,t}return Xt=Zt.prototype=e??Object.create(null),new Zt}var ls=10;for(let e=0;e<=ls;e++)Zt();function Xe(e){return Zt(e)}function cs(e,t="type"){Xe(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Kr=cs;var Wr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var us=Kr(Wr),jr=us;function yt(e){return e.loc.start.offset}function te(e){return e.loc.end.offset}var Qr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function $r(e){return e.toUpperCase()===e}function hs(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&($r(e.tag[0])||e.tag.includes("."))}function ps(e){return Qr.has(e.toLowerCase())&&!$r(e[0])}function Ze(e){return e.selfClosing===!0||ps(e.tag)||hs(e)&&e.children.every(t=>ye(t))}function ye(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Jr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Xr(e){return Jr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Jr(e.siblings[e.index-2])}var on=2;function fs(e,t,r){var s,i,a,o,c,h,p,m,v;let{node:n}=e;switch(n.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let g=R(ds(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((s=e.next)==null?void 0:s.type)==="ElementNode"?M:"";if(Ze(n))return[g,E];let N=[""];return n.children.length===0?[g,B(N),E]:t.htmlWhitespaceSensitivity==="ignore"?[g,B(Zr(e,t,r)),gt,B(N),E]:[g,B(R(Zr(e,t,r))),B(N),E]}case"BlockStatement":return vs(e)?[Es(e,r),rn(e,r,t),nn(e,r,t)]:[ks(e,r),R([rn(e,r,t),nn(e,r,t),ws(e,r,t)])];case"ElementModifierStatement":return R(["{{",an(e,r),"}}"]);case"MustacheStatement":return R([ke(n),an(e,r),Se(n)]);case"SubExpression":return R(["(",Ls(e,r),M,")"]);case"AttrNode":{let{name:g,value:E}=n,N=E.type==="TextNode";if(N&&E.chars===""&&yt(E)===te(E))return g;let w=N?be(E.chars,t.singleQuote):E.type==="ConcatStatement"?be(E.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",Z=r("value");return[g,"=",w,g==="class"&&w?R(B(Z)):Z,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return bt(L,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=ze(!1,n.chars,"{{",String.raw`\{{`),E=Cs(e);if(E){if(E==="class"){let j=g.trim().split(/\s+/u).join(" "),tt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(tt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&j!==""&&(V=!0)),[tt?L:"",j,V?L:""]}return Fr(g)}let N=z.isWhitespaceOnly(g),{isFirst:x,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let j=w&&e.parent.type==="Template",tt=x&&e.parent.type==="Template";if(N){if(tt||j)return"";let P=[L],rt=Rt(g);return rt&&(P=ee(rt)),w&&(P=P.map(he=>Ke(he))),P}let V=z.getLeadingWhitespace(g),Nt=[];if(V){Nt=[L];let P=Rt(V);P&&(Nt=ee(P)),g=g.slice(V.length)}let H=z.getTrailingWhitespace(g),et=[];if(H){if(!j){et=[L];let P=Rt(H);P&&(et=ee(P)),w&&(et=et.map(rt=>Ke(rt)))}g=g.slice(0,-H.length)}return[...Nt,We(sn(g)),...et]}let Z=Rt(g),q=Ns(g),W=xs(g);if((x||w)&&N&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";N&&Z?(q=Math.min(Z,on),W=0):((((o=e.next)==null?void 0:o.type)==="BlockStatement"||((c=e.next)==null?void 0:c.type)==="ElementNode")&&(W=Math.max(W,1)),(((h=e.previous)==null?void 0:h.type)==="BlockStatement"||((p=e.previous)==null?void 0:p.type)==="ElementNode")&&(q=Math.max(q,1)));let Tt="",Ct="";return W===0&&((m=e.next)==null?void 0:m.type)==="MustacheStatement"&&(Ct=" "),q===0&&((v=e.previous)==null?void 0:v.type)==="MustacheStatement"&&(Tt=" "),x&&(q=0,Tt=""),w&&(W=0,Ct=""),z.hasLeadingWhitespace(g)&&(g=Tt+z.trimStart(g)),z.hasTrailingWhitespace(g)&&(g=z.trimEnd(g)+Ct),[...ee(q),We(sn(g)),...ee(W)]}case"MustacheCommentStatement":{let g=yt(n),E=te(n),N=t.originalText.charAt(g+2)==="~",x=t.originalText.charAt(E-3)==="~",w=n.value.includes("}}")?"--":"";return["{{",N?"~":"","!",w,n.value,w,x?"~":"","}}"]}case"PathExpression":return Bs(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return[""];case"StringLiteral":return As(e,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new zr(n,"Handlebars")}}function ms(e,t){return yt(e)-yt(t)}function ds(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(i=>$t(r[i])),s=n.flatMap(i=>r[i]).sort(ms);for(let i of n)e.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[L,t()])},i);return $t(r.blockParams)&&s.push(L,er(r)),["<",r.tag,B(s),gs(r)]}function Zr(e,t,r){let{node:n}=e,s=n.children.every(i=>ye(i));return t.htmlWhitespaceSensitivity==="ignore"&&s?"":e.map(({isFirst:i})=>{let a=r();return i&&t.htmlWhitespaceSensitivity==="ignore"?[M,a]:a},"children")}function gs(e){return Ze(e)?je([M,"/>"],[" />",M]):je([M,">"],">")}function ke(e){var n;let t=e.trusting?"{{{":"{{",r=(n=e.strip)!=null&&n.open?"~":"";return[t,r]}function Se(e){var n;let t=e.trusting?"}}}":"}}";return[(n=e.strip)!=null&&n.close?"~":"",t]}function bs(e){let t=ke(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function ys(e){let t=Se(e);return[e.openStrip.close?"~":"",t]}function tn(e){let t=ke(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function en(e){let t=Se(e);return[e.closeStrip.close?"~":"",t]}function ln(e){let t=ke(e),r=e.inverseStrip.open?"~":"";return[t,r]}function cn(e){let t=Se(e);return[e.inverseStrip.close?"~":"",t]}function ks(e,t){let{node:r}=e,n=[],s=ve(e,t);return s&&n.push(R(s)),$t(r.program.blockParams)&&n.push(er(r.program)),R([bs(r),tr(e,t),n.length>0?B([L,bt(L,n)]):"",M,ys(r)])}function Ss(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?gt:"",ln(e),"else",cn(e)]}var un=(e,t)=>e.head.type==="VarHead"&&t.head.type==="VarHead"&&e.head.name===t.head.name;function vs(e){var n;let{grandparent:t,node:r}=e;return((n=t==null?void 0:t.inverse)==null?void 0:n.body.length)===1&&t.inverse.body[0]===r&&un(t.inverse.body[0].path,t.path)}function Es(e,t){let{node:r,grandparent:n}=e;return R([ln(n),["else"," ",n.inverse.body[0].path.head.name],B([L,R(ve(e,t)),...$t(r.program.blockParams)?[L,er(r.program)]:[]]),M,cn(n)])}function ws(e,t,r){let{node:n}=e;return r.htmlWhitespaceSensitivity==="ignore"?[hn(n)?M:gt,tn(n),t("path"),en(n)]:[tn(n),t("path"),en(n)]}function hn(e){return e.type==="BlockStatement"&&e.program.body.every(t=>ye(t))}function Ts(e){return pn(e)&&e.inverse.body.length===1&&e.inverse.body[0].type==="BlockStatement"&&un(e.inverse.body[0].path,e.path)}function pn(e){return e.type==="BlockStatement"&&e.inverse}function rn(e,t,r){let{node:n}=e;if(hn(n))return"";let s=t("program");return r.htmlWhitespaceSensitivity==="ignore"?B([gt,s]):B(s)}function nn(e,t,r){let{node:n}=e,s=t("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[gt,s]:s;return Ts(n)?i:pn(n)?[Ss(n,r),B(i)]:""}function sn(e){return bt(L,z.split(e))}function Cs(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Rt(e){return e=typeof e=="string"?e:"",e.split(` +`).length-1}function Ns(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Rt(t)}function xs(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Rt(t)}function ee(e=0){return Array.from({length:Math.min(e,on)}).fill(gt)}function As(e,t){let{node:{value:r}}=e,n=be(r,Ps(e)?!t.singleQuote:t.singleQuote);return[n,ze(!1,r,n,`\\${n}`),n]}function Ps(e){let{ancestors:t}=e,r=t.findIndex(n=>n.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Ls(e,t){let r=tr(e,t),n=ve(e,t);return n?B([r,L,R(n)]):r}function an(e,t){let r=tr(e,t),n=ve(e,t);return n?[B([r,L,n]),M]:r}function tr(e,t){return t("path")}function ve(e,t){var s;let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(t("hash")),n.length===0?"":bt(L,n)}function er(e){return["as |",e.blockParams.join(" "),"|"]}var Ds=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),_s=new Set(["true","false","null","undefined"]),Os=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&_s.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>Ds.has(r));function Bs(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,n)=>Os(r,n)?`[${r}]`:r).join(".")}var Is={print:fs,massageAstNode:Gr,hasPrettierIgnore:Xr,getVisitorKeys:jr},fn=Is;var mn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Ar={};Ue(Ar,{glimmer:()=>Si});var Rs=Object.freeze([]);function gn(){return Rs}var Oa=gn(),Ba=gn();var rr=Object.assign;var dn=console;function bn(e,t="unexpected unreachable branch"){throw dn.log("unreachable",e),dn.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var qs=function(){var e=function(nt,d,k,b){for(k=k||{},b=nt.length;b--;k[nt[b]]=d);return k},t=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],v=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],E=[15,18],N=[14,15,19,29,34,47,48,52,56,60],x=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],Z=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],W=[2,43],Tt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],j=[1,59],tt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Nt=[23,64,71,79,80,81,82,83,84],H=[1,76],et=[64,67,71,79,80,81,82,83,84],P=[33,74],rt=[23,33,55,67,71,74],he=[1,106],Oe=[1,118],Lr=[71,76],Be={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(d,k,b,y,C,l,xt){var u=l.length-1;switch(C){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var st=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Ut=y.prepareProgram([st],l[u-1].loc);Ut.chained=!0,this.$={strip:l[u-2].strip,program:Ut,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,52,56,60],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},e(n,[2,45]),e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),e(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(v,t,{6:3,4:40}),e(g,t,{6:3,4:41}),e(E,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:44}),e([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(x,[2,76],{50:49}),e(w,[2,27]),e(w,[2,28]),e(w,[2,33]),e(w,[2,34]),e(w,[2,35]),e(w,[2,36]),e(w,[2,37]),e(w,[2,38]),e(w,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(w,[2,41],{86:Z}),{71:i,85:52},e(q,W),e(Tt,[2,80],{53:53}),{25:54,38:56,39:Ct,43:57,44:j,45:55,47:[2,52]},{28:60,43:61,44:j,47:[2,54]},{13:63,15:r,18:[1,62]},e(x,[2,84],{57:64}),{26:65,47:tt},e(V,[2,56],{30:67}),e(V,[2,62],{35:68}),e(Nt,[2,48],{21:69}),e(x,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(et,[2,92],{65:77}),{71:[1,78]},e(w,[2,40],{86:Z}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{26:82,47:tt},{47:[2,53]},e(v,t,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(N,t,{6:3,4:85}),{26:86,47:tt},{47:[2,55]},e(n,[2,11]),e(E,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(P,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(P,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{33:[1,103]},e(x,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(rt,[2,96]),e(q,W,{72:he}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:H,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},e(q,[2,42]),{55:[1,110]},e(Tt,[2,81]),{55:[2,83]},e(n,[2,13]),{38:56,39:Ct,43:57,44:j,45:112,46:111,47:[2,74]},e(V,[2,68],{40:113}),{47:[2,18]},e(n,[2,14]),{33:[1,114]},e(x,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:Oe},e(V,[2,57]),e(P,[2,59]),{33:[2,66],37:119,73:120,74:Oe},e(V,[2,63]),e(P,[2,65]),{23:[1,121]},e(Nt,[2,49]),{23:[2,51]},{33:[1,122]},e(x,[2,89]),{33:[2,91]},e(n,[2,22]),e(rt,[2,97]),{72:he},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:h,83:p,84:m,85:36},{67:[1,124]},e(et,[2,93]),{67:[2,95]},e(n,[2,23]),{47:[2,19]},{47:[2,75]},e(P,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:H,79:a,80:o,81:c,82:h,83:p,84:m}),e(n,[2,24]),e(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},e(E,[2,12]),e(N,[2,26]),e(rt,[2,31]),e(w,[2,29]),{33:[2,72],42:132,73:133,74:Oe},e(V,[2,69]),e(P,[2,71]),e(v,[2,15]),{71:[1,135],76:[1,134]},e(Lr,[2,98]),e(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(Lr,[2,99]),e(v,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(d,k){if(k.recoverable)this.trace(d);else{var b=new Error(d);throw b.hash=k,b}},parse:function(d){var k=this,b=[0],y=[],C=[null],l=[],xt=this.table,u="",st=0,Ut=0,Dr=0,Yn=2,_r=1,Gn=l.slice.call(arguments,1),A=Object.create(this.lexer),ft={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(ft.yy[Re]=this.yy[Re]);A.setInput(d,ft.yy),ft.yy.lexer=A,ft.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qe=A.yylloc;l.push(qe);var Kn=A.options&&A.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ei(Y){b.length=b.length-2*Y,C.length=C.length-Y,l.length=l.length-Y}for(var Wn=function(){var Y;return Y=A.lex()||_r,typeof Y!="number"&&(Y=k.symbols_[Y]||Y),Y},O,Ve,mt,F,wi,He,At={},pe,Q,Or,fe;;){if(mt=b[b.length-1],this.defaultActions[mt]?F=this.defaultActions[mt]:((O===null||typeof O>"u")&&(O=Wn()),F=xt[mt]&&xt[mt][O]),typeof F>"u"||!F.length||!F[0]){var Fe="";fe=[];for(pe in xt[mt])this.terminals_[pe]&&pe>Yn&&fe.push("'"+this.terminals_[pe]+"'");A.showPosition?Fe="Parse error on line "+(st+1)+`: +`+A.showPosition()+` +Expecting `+fe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Fe="Parse error on line "+(st+1)+": Unexpected "+(O==_r?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Fe,{text:A.match,token:this.terminals_[O]||O,line:A.yylineno,loc:qe,expected:fe})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+O);switch(F[0]){case 1:b.push(O),C.push(A.yytext),l.push(A.yylloc),b.push(F[1]),O=null,Ve?(O=Ve,Ve=null):(Ut=A.yyleng,u=A.yytext,st=A.yylineno,qe=A.yylloc,Dr>0&&Dr--);break;case 2:if(Q=this.productions_[F[1]][1],At.$=C[C.length-Q],At._$={first_line:l[l.length-(Q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Q||1)].first_column,last_column:l[l.length-1].last_column},Kn&&(At._$.range=[l[l.length-(Q||1)].range[0],l[l.length-1].range[1]]),He=this.performAction.apply(At,[u,Ut,st,ft.yy,F[1],C,l].concat(Gn)),typeof He<"u")return He;Q&&(b=b.slice(0,-1*Q*2),C=C.slice(0,-1*Q),l=l.slice(0,-1*Q)),b.push(this.productions_[F[1]][0]),C.push(At.$),l.push(At._$),Or=xt[b[b.length-2]][b[b.length-1]],b.push(Or);break;case 3:return!0}}return!0}},zn=function(){var nt={EOF:1,parseError:function(k,b){if(this.yy.parser)this.yy.parser.parseError(k,b);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,b=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+` +`+k+"^"},test_match:function(d,k){var b,y,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),y=d[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],b=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var l in C)this[l]=C[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,b,y;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),l=0;lk[0].length)){if(k=b,y=l,this.options.backtrack_lexer){if(d=this.test_match(b,C[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,C[y]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,b,y,C){function l(u,st){return b.yytext=b.yytext.substring(u,b.yyleng-st+u)}var xt=C;switch(y){case 0:if(b.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):b.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return b.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return b.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return nt}();Be.lexer=zn;function Ie(){this.yy={}}return Ie.prototype=Be,Be.Parser=Ie,new Ie}(),Ee=qs;var nr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function sr(e,t){var r=t&&t.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;clr,id:()=>Vs,prepareBlock:()=>Ys,prepareMustache:()=>Ms,preparePartialBlock:()=>Ks,preparePath:()=>Us,prepareProgram:()=>Gs,prepareRawBlock:()=>zs,stripComment:()=>Fs,stripFlags:()=>Hs});function or(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new at(e.path.original+" doesn't match "+t,r)}}function lr(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function Vs(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Hs(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Fs(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Us(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",s=[],i=0,a=0,o=t.length;a0)throw new at("Invalid path: "+n,{loc:r});c===".."&&i++}else s.push(c)}return{type:"PathExpression",data:e,depth:i,parts:s,original:n,loc:r}}function Ms(e,t,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function zs(e,t,r,n){or(e,r),n=this.locInfo(n);var s={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Ys(e,t,r,n,s,i){n&&n.path&&or(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new at("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=t,t=s),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function Gs(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Ks(e,t,r,n){return or(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var En={};for(Ce in re)Object.prototype.hasOwnProperty.call(re,Ce)&&(En[Ce]=re[Ce]);var Ce;function Ne(e,t){if(e.type==="Program")return e;Ee.yy=En,Ee.yy.locInfo=function(n){return new lr(t&&t.srcName,n)};var r=Ee.parse(e);return r}function cr(e,t){var r=Ne(e,t),n=new vn(t);return n.accept(r)}var Tn={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Ws=/^#[xX]([A-Fa-f0-9]+)$/,js=/^#([0-9]+)$/,Qs=/^([A-Za-z0-9]+)$/,ur=function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(Ws);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(js),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(Qs),r)return this.named[r[1]]}},e}(),Js=/[\t\n\f ]/,$s=/[A-Za-z]/,Xs=/\r\n?/g;function _(e){return Js.test(e)}function wn(e){return $s.test(e)}function Zs(e){return e.replace(Xs,` +`)}var hr=function(){function e(t,r,n){n===void 0&&(n="precompile"),this.delegate=t,this.entityParser=r,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var s=this.peek();if(s==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&s===` +`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var s=this.peek(),i=this.tagNameBuffer;s==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):s==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(s))},tagOpen:function(){var s=this.consume();s==="!"?this.transitionTo("markupDeclarationOpen"):s==="/"?this.transitionTo("endTagOpen"):(s==="@"||s===":"||wn(s))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(s))},markupDeclarationOpen:function(){var s=this.consume();if(s==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var s=this.consume();_(s)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var s=this.consume();_(s)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase()))},doctypeName:function(){var s=this.consume();_(s)?this.transitionTo("afterDoctypeName"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(s.toLowerCase())},afterDoctypeName:function(){var s=this.consume();if(!_(s))if(s===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=s.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var s=this.peek();_(s)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):s==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):s==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):s===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},doctypePublicIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypePublicIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(s)},afterDoctypePublicIdentifier:function(){var s=this.consume();_(s)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var s=this.consume();_(s)||(s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):s==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):s==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var s=this.consume();s==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},doctypeSystemIdentifierSingleQuoted:function(){var s=this.consume();s==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):s===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(s)},afterDoctypeSystemIdentifier:function(){var s=this.consume();_(s)||s===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var s=this.consume();s==="-"?this.transitionTo("commentStartDash"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(s),this.transitionTo("comment"))},commentStartDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var s=this.consume();s==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(s)},commentEndDash:function(){var s=this.consume();s==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+s),this.transitionTo("comment"))},commentEnd:function(){var s=this.consume();s===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+s),this.transitionTo("comment"))},tagName:function(){var s=this.consume();_(s)?this.transitionTo("beforeAttributeName"):s==="/"?this.transitionTo("selfClosingStartTag"):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(s)},endTagName:function(){var s=this.consume();_(s)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):s==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):s===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();if(_(s)){this.consume();return}else s==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();_(s)?(this.transitionTo("afterAttributeName"),this.consume()):s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):s==='"'||s==="'"||s==="<"?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();if(_(s)){this.consume();return}else s==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();_(s)?this.consume():s==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):s===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var s=this.consume();s==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueSingleQuoted:function(){var s=this.consume();s==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):s==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(s)},attributeValueUnquoted:function(){var s=this.peek();_(s)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):s==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):s===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();_(s)?(this.consume(),this.transitionTo("beforeAttributeName")):s==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):s===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var s=this.peek();s===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var s=this.consume();(s==="@"||s===":"||wn(s))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(s))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=Zs(t);this.index"||t==="style"&&this.input.substring(this.index,this.index+8)!==""||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),Ka=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new hr(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r\xA0]/u,ao=new RegExp(ei.source,"gu");var br=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ri(e){var t;return br.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ue(e){return e.length>0}function ie(e,t="unexpected empty list"){return e}function Nr(e){return e.length===0?void 0:e[e.length-1]}function ni(e){return e.length===0?void 0:e[0]}var ut=Object.freeze({line:1,column:0}),si=Object.freeze({source:"(synthetic)",start:ut,end:ut}),se=Object.freeze({source:"(nonexistent)",start:ut,end:ut}),ct=Object.freeze({source:"(broken)",start:ut,end:ut}),yr=class{_whens;constructor(t){this._whens=t}first(t){for(let r of this._whens){let n=r.match(t);if(ue(n))return n[0]}return null}},Le=class{_map=new Map;get(t,r){let n=this._map.get(t);return n||(n=r(),this._map.set(t,n),n)}add(t,r){this._map.set(t,r)}match(t){let r=function(a){switch(a){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return a}}(t),n=[],s=this._map.get(r),i=this._map.get("MATCH_ANY");return s&&n.push(s),i&&n.push(i),n}};function On(e){return e(new kr).validate()}var kr=class{_whens=new Le;validate(){return(t,r)=>this.matchFor(t.kind,r.kind)(t,r)}matchFor(t,r){let n=this._whens.match(t);return ue(n),new yr(n).first(r)}when(t,r,n){return this._whens.get(t,()=>new Le).add(r,n),this}},Sr=class e{static synthetic(t){let r=D.synthetic(t);return new e({loc:r,chars:t})}static load(t,r){return new e({loc:D.load(t,r[1]),chars:r[0]})}chars;loc;constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},D=class e{static get NON_EXISTENT(){return new X("NonExistent",se).wrap()}static load(t,r){return typeof r=="number"?e.forCharPositions(t,r,r):typeof r=="string"?e.synthetic(r):Array.isArray(r)?e.forCharPositions(t,r[0],r[1]):r==="NonExistent"?e.NON_EXISTENT:r==="Broken"?e.broken(ct):void bn(r)}static forHbsLoc(t,r){let n=new pt(t,r.start),s=new pt(t,r.end);return new oe(t,{start:n,end:s},r).wrap()}static forCharPositions(t,r,n){let s=new wt(t,r),i=new wt(t,n);return new ae(t,{start:s,end:i}).wrap()}static synthetic(t){return new X("InternalsSynthetic",se,t).wrap()}static broken(t=ct){return new X("Broken",t).wrap()}isInvisible;constructor(t){var r;this.data=t,this.isInvisible=(r=t.kind)!=="CharPosition"&&r!=="HbsPosition"}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return t===null?ct:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return K(t.data,this.data.getEnd())}withEnd(t){return K(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let r=this.data.asString();return!1,new Sr({loc:this,chars:t||r})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return K(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:r=0}){return K(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars({skipStart:t=0,chars:r}){return K(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars({skipEnd:t=0,chars:r}){return K(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}},ce,ae=class{constructor(t,r){Me(this,"kind","CharPosition");Pt(this,ce,null);this.source=t,this.charPositions=r}wrap(){return new D(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=I(this,ce);if(t===null){let r=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();t=J(this,ce,r===null||n===null?ht:new oe(this.source,{start:r,end:n}))}return t===ht?null:t}serialize(){let{start:{charPos:t},end:{charPos:r}}=this.charPositions;return t===r?t:[t,r]}toCharPosSpan(){return this}};ce=new WeakMap;var St,vt,oe=class{constructor(t,r,n=null){Me(this,"kind","HbsPosition");Pt(this,St,null);Pt(this,vt);this.source=t,this.hbsPositions=r,J(this,vt,n)}serialize(){let t=this.toCharPosSpan();return t===null?"Broken":t.wrap().serialize()}wrap(){return new D(this)}updateProvided(t,r){I(this,vt)&&(I(this,vt)[r]=t),J(this,St,null),J(this,vt,{start:t,end:t})}locDidUpdate({start:t,end:r}){t!==void 0&&(this.updateProvided(t,"start"),this.hbsPositions.start=new pt(this.source,t,null)),r!==void 0&&(this.updateProvided(r,"end"),this.hbsPositions.end=new pt(this.source,r,null))}asString(){let t=this.toCharPosSpan();return t===null?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=I(this,St);if(t===null){let r=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(!r||!n)return t=J(this,St,ht),null;t=J(this,St,new ae(this.source,{start:r,end:n}))}return t===ht?null:t}};St=new WeakMap,vt=new WeakMap;var X=class{constructor(t,r,n=null){this.kind=t,this.loc=r,this.string=n}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new D(this)}asString(){return this.string||""}locDidUpdate({start:t,end:r}){t!==void 0&&(this.loc.start=t),r!==void 0&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new le(this.kind,this.loc.start)}getEnd(){return new le(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ct}},K=On(e=>e.when("HbsPosition","HbsPosition",(t,r)=>new oe(t.source,{start:t,end:r}).wrap()).when("CharPosition","CharPosition",(t,r)=>new ae(t.source,{start:t,end:r}).wrap()).when("CharPosition","HbsPosition",(t,r)=>{let n=r.toCharPos();return n===null?new X("Broken",ct).wrap():K(t,n)}).when("HbsPosition","CharPosition",(t,r)=>{let n=t.toCharPos();return n===null?new X("Broken",ct).wrap():K(n,r)}).when("IS_INVISIBLE","MATCH_ANY",t=>new X(t.kind,ct).wrap()).when("MATCH_ANY","IS_INVISIBLE",(t,r)=>new X(r.kind,ct).wrap())),ht="BROKEN",Ht=class e{static forHbsPos(t,r){return new pt(t,r,null).wrap()}static broken(t=ut){return new le("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return t===null?null:t.offset}eql(t){return ii(this.data,t.data)}until(t){return K(this.data,t.data)}move(t){let r=this.data.toCharPos();if(r===null)return e.broken();{let n=r.offset+t;return r.source.validate(n)?new wt(r.source,n).wrap():e.broken()}}collapsed(){return K(this.data,this.data)}toJSON(){return this.data.toJSON()}},wt=class{kind="CharPosition";_locPos=null;constructor(t,r){this.source=t,this.charPos=r}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return t===null?ut:t.toJSON()}wrap(){return new Ht(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(t===null){let r=this.source.hbsPosFor(this.charPos);this._locPos=t=r===null?ht:new pt(this.source,r,this.charPos)}return t===ht?null:t}},pt=class{kind="HbsPosition";_charPos;constructor(t,r,n=null){this.source=t,this.hbsPos=r,this._charPos=n===null?null:new wt(t,n)}toCharPos(){let t=this._charPos;if(t===null){let r=this.source.charPosFor(this.hbsPos);this._charPos=t=r===null?ht:new wt(this.source,r)}return t===ht?null:t}toJSON(){return this.hbsPos}wrap(){return new Ht(this)}toHbsPos(){return this}},le=class{constructor(t,r){this.kind=t,this.pos=r}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new Ht(this)}get offset(){return null}},ii=On(e=>e.when("HbsPosition","HbsPosition",({hbsPos:t},{hbsPos:r})=>t.column===r.column&&t.line===r.line).when("CharPosition","CharPosition",({charPos:t},{charPos:r})=>t===r).when("CharPosition","HbsPosition",({offset:t},r)=>{var n;return t===((n=r.toCharPos())==null?void 0:n.offset)}).when("HbsPosition","CharPosition",(t,{offset:r})=>{var n;return((n=t.toCharPos())==null?void 0:n.offset)===r}).when("MATCH_ANY","MATCH_ANY",()=>!1)),Et=class e{static from(t,r={}){var n;return new e(t,(n=r.meta)==null?void 0:n.moduleName)}constructor(t,r="an unknown module"){this.source=t,this.module=r}validate(t){return t>=0&&t<=this.source.length}slice(t,r){return this.source.slice(t,r)}offsetFor(t,r){return Ht.forHbsPos(this,{line:t,column:r})}spanFor({start:t,end:r}){return D.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(t){let r=0,n=0;if(t>this.source.length)return null;for(;;){let s=this.source.indexOf(` +`,n);if(t<=s||s===-1)return{line:r+1,column:t-n};r+=1,n=s+1}}charPosFor(t){let{line:r,column:n}=t,s=this.source.length,i=0,a=0;for(;ao)return o;if(!1){let c=this.hbsPosFor(a+n);c.line,c.column}return a+n}if(o===-1)return 0;i+=1,a=o+1}return s}};function S(e,t){let{module:r,loc:n}=t,{line:s,column:i}=n.start,a=t.asString(),o=a?` | | ${a.split(` @@ -22,9 +22,9 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error | `)} | -`:"",c=new Error(`${t}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);return c.name="SyntaxError",c.location=e,c.code=a,c}var ki={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Or=function(){t.prototype=Object.create(Error.prototype),t.prototype.constructor=t;function t(e,r,n,s){let i=Error.call(this,e);this.key=s,this.message=e,this.node=r,this.parent=n,i.stack&&(this.stack=i.stack)}return t}();function Bn(t,e,r){return new Or("Cannot remove a node unless it is part of an array",t,e,r)}function Ti(t,e,r){return new Or("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}function In(t,e){return new Or("Replacing and removing in key handlers is not yet supported.",t,null,e)}var Fe=class{node;parent;parentKey;constructor(e,r=null,n=null){this.node=e,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Pr(this)}}},Pr=class{path;constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Vn(t){return typeof t=="function"?t:t.enter}function Un(t){if(typeof t!="function")return t.exit}function Ni(t,e){let r=typeof t!="function"?t.keys:void 0;if(r===void 0)return;let n=r[e];return n!==void 0?n:r.All}function vi(t,e){if(t.Program&&(e==="Template"&&!t.Template||e==="Block"&&!t.Block))return F(`The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was '${e}') `),t.Program;let r=t[e];return r!==void 0?r:t.All}function Ot(t,e){let{node:r,parent:n,parentKey:s}=e,i=vi(t,r.type),a,o;i!==void 0&&(a=Vn(i),o=Un(i));let c;if(a!==void 0&&(c=a(r,e)),c!=null)if(JSON.stringify(r)===JSON.stringify(c))c=void 0;else{if(Array.isArray(c))return Fn(t,c,n,s),c;{let p=new Fe(c,n,s);return Ot(t,p)||c}}if(c===void 0){let p=ki[r.type];for(let h=0;htypeof T=="string"?zn(T):T),g=null;return c?g=A(c||null):c===void 0&&(g=d||yi(h.original)?null:A(null)),f.element({path:h,selfClosing:d||!1,attributes:r||[],params:N||[],modifiers:s||[],comments:i||[],children:a||[],openTag:A(o||null),closeTag:g,loc:A(p||null)})}function Ui(t,e,r){return f.attr({name:t,value:e,loc:A(r||null)})}function Fi(t="",e){return f.text({chars:t,loc:A(e||null)})}function Mi(t,e=[],r=ct([]),n){return f.sexpr({path:he(t),params:e,hash:r,loc:A(n||null)})}function zi(t,e){let[r,...n]=qe(t.split(".")),s=f.head({original:r,loc:A(e||null)});return f.path({head:s,tail:n,loc:A(e||null)})}function Gi(t){return f.this({loc:A(t||null)})}function Yi(t,e){return f.atName({name:t,loc:A(e||null)})}function zn(t,e){return f.var({name:t,loc:A(e||null)})}function Ki(t,e){return f.head({original:t,loc:A(e||null)})}function Wi(t,e=[],r){return f.path({head:t,tail:e,loc:A(r||null)})}function he(t,e){let r=A(e||null);if(typeof t!="string"){if("type"in t)return t;{w(t.head.indexOf(".")===-1,"builder.path({ head, tail }) should not be called with a head with dots in it");let{head:i,tail:a}=t;return f.path({head:f.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:a,loc:A(e||null)})}}let{head:n,tail:s}=zi(t,r);return f.path({head:n,tail:s,loc:r})}function _t(t,e,r){return f.literal({type:t,value:e,loc:A(r||null)})}function ct(t=[],e){return f.hash({pairs:t,loc:A(e||null)})}function $i(t,e,r){return f.pair({key:t,value:e,loc:A(r||null)})}function ji(t,e,r){return F("b.program is deprecated. Use b.template or b.blockItself instead."),e&&e.length?Yn(t,e,!1,r):Kn(t,[],r)}function Gn(t){return t.map(e=>typeof e=="string"?f.var({name:e,loc:O.synthetic(e)}):e)}function Yn(t=[],e=[],r=!1,n){return f.blockItself({body:t,params:Gn(e),chained:r,loc:A(n||null)})}function Kn(t=[],e=[],r){return f.template({body:t,blockParams:e,loc:A(r||null)})}function Qi(t,e){return f.pos({line:t,column:e})}function A(...t){if(t.length===1){let e=t[0];return e&&typeof e=="object"?O.forHbsLoc(yr(),e):O.forHbsLoc(yr(),Ei)}else{let[e,r,n,s,i]=t,a=i?new Te("",i):yr();return O.forHbsLoc(a,{start:{line:e,column:r},end:{line:n||e,column:s||r}})}}var Xi={mustache:Oi,block:Bi,comment:Ri,mustacheComment:qi,element:Vi,elementModifier:Ii,attr:Ui,text:Fi,sexpr:Mi,concat:Hi,hash:ct,pair:$i,literal:_t,program:ji,blockItself:Yn,template:Kn,loc:A,pos:Qi,path:he,fullPath:Wi,head:Ki,at:Yi,var:zn,this:Gi,string:Er("StringLiteral"),boolean:Er("BooleanLiteral"),number:Er("NumberLiteral"),undefined(){return _t("UndefinedLiteral",void 0)},null(){return _t("NullLiteral",null)}};function Er(t){return function(e,r){return _t(t,e,r)}}function Ji({path:t,params:e,hash:r,trusting:n,strip:s,loc:i}){let a={type:"MustacheStatement",path:t,params:e,hash:r,trusting:n,strip:s,loc:i};return Object.defineProperty(a,"escaped",{enumerable:!1,get(){return F("The escaped property on mustache nodes is deprecated, use trusting instead"),!this.trusting},set(o){F("The escaped property on mustache nodes is deprecated, use trusting instead"),this.trusting=!o}}),a}function Zi({head:t,tail:e,loc:r}){let n={type:"PathExpression",head:t,tail:e,get original(){return[this.head.original,...this.tail].join(".")},set original(s){let[i,...a]=qe(s.split("."));this.head=Xi.head(i,this.head.loc),this.tail=a},loc:r};return Object.defineProperty(n,"parts",{enumerable:!1,get(){F("The parts property on path nodes is deprecated, use head and tail instead");let s=qe(this.original.split("."));return s[0]==="this"?s.shift():s[0].startsWith("@")&&(s[0]=s[0].slice(1)),Object.freeze(s)},set(s){var a;F("The parts property on mustache nodes is deprecated, use head and tail instead");let i=[...s];i[0]!=="this"&&!((a=i[0])!=null&&a.startsWith("@"))&&(this.head.type==="ThisHead"?i.unshift("this"):this.head.type==="AtHead"&&(i[0]=`@${i[0]}`)),this.original=i.join(".")}}),Object.defineProperty(n,"this",{enumerable:!1,get(){return F("The this property on path nodes is deprecated, use head.type instead"),this.head.type==="ThisHead"}}),Object.defineProperty(n,"data",{enumerable:!1,get(){return F("The data property on path nodes is deprecated, use head.type instead"),this.head.type==="AtHead"}}),n}function ea({type:t,value:e,loc:r}){let n={type:t,value:e,loc:r};return Object.defineProperty(n,"original",{enumerable:!1,get(){return F("The original property on literal nodes is deprecated, use value instead"),this.value},set(s){F("The original property on literal nodes is deprecated, use value instead"),this.value=s}}),n}var Lt={close:!1,open:!1},xr=class{pos({line:e,column:r}){return{line:e,column:r}}blockItself({body:e,params:r,chained:n=!1,loc:s}){return{type:"Block",body:e,params:r,get blockParams(){return this.params.map(i=>i.name)},set blockParams(i){this.params=i.map(a=>f.var({name:a,loc:O.synthetic(a)}))},chained:n,loc:s}}template({body:e,blockParams:r,loc:n}){return{type:"Template",body:e,blockParams:r,loc:n}}mustache({path:e,params:r,hash:n,trusting:s,loc:i,strip:a=Lt}){return Ji({path:e,params:r,hash:n,trusting:s,strip:a,loc:i})}block({path:e,params:r,hash:n,defaultBlock:s,elseBlock:i=null,loc:a,openStrip:o=Lt,inverseStrip:c=Lt,closeStrip:p=Lt}){return{type:"BlockStatement",path:e,params:r,hash:n,program:s,inverse:i,loc:a,openStrip:o,inverseStrip:c,closeStrip:p}}comment({value:e,loc:r}){return{type:"CommentStatement",value:e,loc:r}}mustacheComment({value:e,loc:r}){return{type:"MustacheCommentStatement",value:e,loc:r}}concat({parts:e,loc:r}){return{type:"ConcatStatement",parts:e,loc:r}}element({path:e,selfClosing:r,attributes:n,modifiers:s,params:i,comments:a,children:o,openTag:c,closeTag:p,loc:h}){let d=r;return{type:"ElementNode",path:e,attributes:n,modifiers:s,params:i,comments:a,children:o,openTag:c,closeTag:p,loc:h,get tag(){return this.path.original},set tag(N){this.path.original=N},get blockParams(){return this.params.map(N=>N.name)},set blockParams(N){this.params=N.map(g=>f.var({name:g,loc:O.synthetic(g)}))},get selfClosing(){return d},set selfClosing(N){d=N,N?this.closeTag=null:this.closeTag=O.synthetic(``)}}}elementModifier({path:e,params:r,hash:n,loc:s}){return{type:"ElementModifierStatement",path:e,params:r,hash:n,loc:s}}attr({name:e,value:r,loc:n}){return{type:"AttrNode",name:e,value:r,loc:n}}text({chars:e,loc:r}){return{type:"TextNode",chars:e,loc:r}}sexpr({path:e,params:r,hash:n,loc:s}){return{type:"SubExpression",path:e,params:r,hash:n,loc:s}}path({head:e,tail:r,loc:n}){return Zi({head:e,tail:r,loc:n})}head({original:e,loc:r}){return e==="this"?this.this({loc:r}):e[0]==="@"?this.atName({name:e,loc:r}):this.var({name:e,loc:r})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:r}){let n="",s={type:"AtHead",get name(){return n},set name(i){w(i[0]==="@","call builders.at() with a string that starts with '@'"),w(i.indexOf(".")===-1,"builder.at() should not be called with a name with dots in it"),n=i},get original(){return this.name},set original(i){this.name=i},loc:r};return s.name=e,s}var({name:e,loc:r}){let n="",s={type:"VarHead",get name(){return n},set name(i){w(i!=="this","You called builders.var() with 'this'. Call builders.this instead"),w(i[0]!=="@",`You called builders.var() with '${e}'. Call builders.at('${e}') instead`),w(i.indexOf(".")===-1,"builder.var() should not be called with a name with dots in it"),n=i},get original(){return this.name},set original(i){this.name=i},loc:r};return s.name=e,s}hash({pairs:e,loc:r}){return{type:"Hash",pairs:e,loc:r}}pair({key:e,value:r,loc:n}){return{type:"HashPair",key:e,value:r,loc:n}}literal({type:e,value:r,loc:n}){return ea({type:e,value:r,loc:n})}},f=new xr,Cr=class{elementStack=[];lines;source;currentAttribute=null;currentNode=null;tokenizer;constructor(e,r=new dr(Dn),n="precompile"){this.source=e,this.lines=e.source.split(/\r\n?|\n/u),this.tokenizer=new mr(this,r,n)}offset(){let{line:e,column:r}=this.tokenizer;return this.source.offsetFor(e,r)}pos({line:e,column:r}){return this.source.offsetFor(e,r)}finish(e){return ar({},e,{loc:e.start.until(this.offset())})}get currentAttr(){return Tn(this.currentAttribute,"expected attribute")}get currentTag(){let e=this.currentNode;return w(e&&(e.type==="StartTag"||e.type==="EndTag"),"expected tag"),e}get currentStartTag(){let e=this.currentNode;return w(e&&e.type==="StartTag","expected start tag"),e}get currentEndTag(){let e=this.currentNode;return w(e&&e.type==="EndTag","expected end tag"),e}get currentComment(){let e=this.currentNode;return w(e&&e.type==="CommentStatement","expected a comment"),e}get currentData(){let e=this.currentNode;return w(e&&e.type==="TextNode","expected a text node"),e}acceptNode(e){return this[e.type](e)}currentElement(){return Nt(qe(this.elementStack))}sourceForNode(e,r){let n=e.loc.start.line-1,s=n-1,i=e.loc.start.column,a=[],o,c,p;for(r?(c=r.loc.end.line-1,p=r.loc.end.column):(c=e.loc.end.line-1,p=e.loc.end.column);s=x?v=-1:v=g.indexOf(C,T),v===-1||v+C.length>x?(T=x,M=this.source.spanFor(st)):(T=v,M=N.sliceStartChars({skipStart:T,chars:C.length}),T+=C.length),a.push(f.var({name:C,loc:M}))}}e.program.loc||(e.program.loc=st),e.inverse&&!e.inverse.loc&&(e.inverse.loc=st);let o=this.Program(e.program,a),c=e.inverse?this.Program(e.inverse,[]):null,p=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip}),h=this.currentElement();Ve(h,p)}MustacheStatement(e){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(e.loc));let{tokenizer:r}=this;if(r.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}let n,{escaped:s,loc:i,strip:a}=e;if("original"in e.path&&e.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(e.loc));if(Mn(e.path))n=f.mustache({path:this.acceptNode(e.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(e.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:p,hash:h}=Sr(this,e);n=f.mustache({path:c,params:p,hash:h,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":wr(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),wr(this.currentStartTag,n),r.transitionTo(qn);break;case"afterAttributeValueQuoted":wr(this.currentStartTag,n),r.transitionTo(qn);break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo(ta);break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Ve(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(e)}finalizeTextPart(){let r=this.currentAttr.currentPart;r!==null&&(this.currentAttr.parts.push(r),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){na(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(e)),null;let{value:n,loc:s}=e,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ve(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(e.loc))}return i}PartialStatement(e){throw S("Handlebars partials are not supported",this.source.spanFor(e.loc))}PartialBlockStatement(e){throw S("Handlebars partial blocks are not supported",this.source.spanFor(e.loc))}Decorator(e){throw S("Handlebars decorators are not supported",this.source.spanFor(e.loc))}DecoratorBlock(e){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(e.loc))}SubExpression(e){let{path:r,params:n,hash:s}=Sr(this,e);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(e.loc)})}PathExpression(e){let{original:r}=e,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(e.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(e.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(e.loc));n=[e.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(e.loc));n=e.parts}let s=!1;/^this(?:\..+)?$/u.test(r)&&(s=!0);let i;if(s)i=f.this({loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+4}})});else if(e.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(e.loc));i=f.atName({name:`@${a}`,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(e.loc));i=f.var({name:a,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length}})})}return f.path({head:i,tail:n,loc:this.source.spanFor(e.loc)})}Hash(e){let r=e.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(e.loc)})}StringLiteral(e){return f.literal({type:"StringLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}BooleanLiteral(e){return f.literal({type:"BooleanLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}NumberLiteral(e){return f.literal({type:"NumberLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}UndefinedLiteral(e){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(e.loc)})}NullLiteral(e){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(e.loc)})}};function ra(t,e){if(e==="")return{lines:t.split(` -`).length-1,columns:0};let[r]=t.split(e),n=r.split(/\n/u),s=n.length-1;return{lines:s,columns:kt(n[s]).length}}function na(t,e){let r=e.loc.start.line,n=e.loc.start.column,s=ra(e.original,e.value);r=r+s.lines,s.lines?n=s.columns:n=n+s.columns,t.line=r,t.column=n}function Sr(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let a;throw e.path.type==="BooleanLiteral"?a=e.path.original.toString():e.path.type==="StringLiteral"?a=`"${e.path.original}"`:e.path.type==="NullLiteral"?a="null":e.path.type==="NumberLiteral"?a=e.path.value.toString():a="undefined",S(`${e.path.type} "${e.path.type==="StringLiteral"?e.path.original:a}" cannot be called as a sub-expression, replace (${a}) with ${a}`,t.source.spanFor(e.path.loc))}}let n=e.params?e.params.map(a=>t.acceptNode(a)):[],s=we(n)?Nt(n).loc:r.loc,i=e.hash?t.Hash(e.hash):f.hash({pairs:[],loc:t.source.spanFor(s).collapse("end")});return{path:r,params:n,hash:i}}function wr(t,e){let{path:r,params:n,hash:s,loc:i}=e;if(Mn(r)){let o=`{{${Di(r)}}}`,c=`<${t.name} ... ${o} ...`;throw S(`In ${c}, ${o} is not a valid modifier`,e.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});t.modifiers.push(a)}function He(t){return/[\t\n\f ]/u.test(t)}var _r=class extends Lr{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(e){this.currentComment.value+=e}finishComment(){Ve(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(e){this.currentData.chars+=e}finishData(){Ve(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(kr.has(e.name)||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,nameStart:r,nameEnd:n}=this.currentStartTag;w(e!=="","tag name cannot be empty"),w(r!==null,"nameStart unexpectedly null"),w(n!==null,"nameEnd unexpectedly null");let s=r.until(n),[i,...a]=qe(e.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:p,comments:h,params:d,selfClosing:N,loc:g}=this.finish(this.currentStartTag),T=f.element({path:o,selfClosing:N,attributes:c,modifiers:p,comments:h,params:d,children:[],openTag:g,closeTag:N?null:O.broken(),loc:g});this.elementStack.push(T)}finishEndTag(e){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,e);let i=this.currentElement();e?s.closeTag=null:s.selfClosing?w(s.closeTag===null,"element.closeTag unexpectedly present"):s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Ve(i,f.element(s))}markTagAsSelfClosing(){let e=this.currentTag;if(e.type==="StartTag")e.selfClosing=!0;else throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:e.start.toJSON(),end:this.offset().toJSON()}))}appendToTagName(e){let r=this.currentTag;if(r.name+=e,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(w(r.nameEnd===null,"nameStart and nameEnd must both be null"),r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=e,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();e===` -`?i=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i=i.move(-1),this.currentAttr.currentPart=f.text({chars:e,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let p=this.assembleAttributeValue(s,a,o,i.until(r));p.loc=c.withEnd(r);let h=f.attr({name:n,value:p,loc:i.until(r)});this.currentStartTag.attributes.push(h)}parsePossibleBlockParams(){let e="beforeAttributeName",r="attributeName",n="afterAttributeName",s=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;w(this.tokenizer.state===r,"must be in TokenizerState.attributeName");let i=this.currentStartTag,a=this.currentAttr,o={state:"PossibleAs"},c={PossibleAs:h=>{if(w(o.state==="PossibleAs","bug in block params parser"),He(h))o={state:"BeforeStartPipe"},this.tokenizer.transitionTo(n),this.tokenizer.consume();else{if(h==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',a.start.until(this.offset().move(1)));o={state:"Done"}}},BeforeStartPipe:h=>{w(o.state==="BeforeStartPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h==="|"?(o={state:"BeforeBlockParamName"},this.tokenizer.transitionTo(e),this.tokenizer.consume()):o={state:"Done"}},BeforeBlockParamName:h=>{if(w(o.state==="BeforeBlockParamName","bug in block params parser"),He(h))this.tokenizer.consume();else if(h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"){if(i.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",a.start.until(this.offset().move(1)));o={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o={state:"BlockParamName",name:h,start:this.offset()},this.tokenizer.consume()}},BlockParamName:h=>{if(w(o.state==="BlockParamName","bug in block params parser"),h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"||He(h)){let d=o.start.until(this.offset());if(o.name==="this"||s.test(o.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``,d);i.params.push(f.var({name:o.name,loc:d})),o=h==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o.name+=h,this.tokenizer.consume()}},AfterEndPipe:h=>{w(o.state==="AfterEndPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h===""?(o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}}):h===">"||h==="/"?o={state:"Done"}:(o={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:h=>{if(w(o.state==="Error","bug in block params parser"),h===""||h==="/"||h===">"||He(h))throw S(o.message,o.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{w(!1,"This should never be called")}},p;do p=this.tokenizer.peek(),c[o.state](p);while(o.state!=="Done"&&p!=="");w(o.state==="Done","bug in block params parser")}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let s of e)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);Tt(e,"the concatenation parts of an element should not be empty");let r=Nn(e),n=Nt(e);return f.concat({parts:e,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(e,r,n){if(kr.has(e.name)&&!n)throw S(`<${e.name}> elements do not need end tags. You should remove it`,e.loc);if(r.tag===void 0)throw S(`Closing tag without an open tag`,e.loc);if(r.tag!==e.name)throw S(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,e.loc)}assembleAttributeValue(e,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(e);{Tt(e);let[i,a]=e;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}else return we(e)?e[0]:f.text({chars:"",loc:s})}},sa={},Dr=class extends dr{constructor(){super({})}parse(){}};function Wn(t,e={}){var c,p,h;let r=e.mode||"precompile",n,s;typeof t=="string"?(n=new Te(t,(c=e.meta)==null?void 0:c.moduleName),r==="codemod"?s=Ct(t,e.parseOptions):s=fr(t,e.parseOptions)):t instanceof Te?(n=t,r==="codemod"?s=Ct(t.source,e.parseOptions):s=fr(t.source,e.parseOptions)):(n=new Te("",(p=e.meta)==null?void 0:p.moduleName),s=t);let i;r==="codemod"&&(i=new Dr);let a=O.forCharPositions(n,0,n.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new _r(n,i,r).parse(s,e.locals??[]);if((h=e==null?void 0:e.plugins)!=null&&h.ast)for(let d of e.plugins.ast){let N=ar({},e,{syntax:sa},{plugins:void 0}),g=d(N);Li(o,g.visitor)}return o}var Br=function(t){return t.Helper="Helper",t.Modifier="Modifier",t.Component="Component",t}({}),tl=Br.Helper,rl=Br.Modifier,nl=Br.Component;var Bt=` -`,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;nthis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ia(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ia;function aa(t){let e=t.children??t.body;if(e)for(let r=0;re.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),aa(s)}}})}function la(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[oa(t)]}})}catch(r){let n=ua(r);if(n){let s=ca(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function ca(t){let{message:e}=t,r=e.split(` -`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function ua(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ha={parse:la,astFormat:"glimmer",locStart:Se,locEnd:tt};var pa={glimmer:En};var bl=Rr;export{bl as default,Sn as languages,Ir as parsers,pa as printers}; +`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var ai={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},xr=function(){function e(t,r,n,s){let i=Error.call(this,t);this.key=s,this.message=t,this.node=r,this.parent=n,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function Nn(e,t,r){return new xr("Cannot remove a node unless it is part of an array",e,t,r)}function oi(e,t,r){return new xr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function xn(e,t){return new xr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var Ft=class{node;parent;parentKey;constructor(t,r=null,n=null){this.node=t,this.parent=r,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new vr(this)}}},vr=class{path;constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Bn(e){return typeof e=="function"?e:e.enter}function In(e){return typeof e=="function"?void 0:e.exit}function De(e,t){let r,n,s,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=Bn(c),n=In(c)),r!==void 0&&(s=r(i,t)),s!=null){if(JSON.stringify(i)!==JSON.stringify(s))return Array.isArray(s)?(Rn(e,s,a,o),s):De(e,new Ft(s,a,o))||s;s=void 0}if(s===void 0){let h=ai[i.type];for(let p=0;ptypeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function Ln(e=[],t=[],r=!1,n){return f.blockItself({body:e,params:Vn(t),chained:r,loc:T(n||null)})}function Dn(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(fr(),t):D.forHbsLoc(fr(),si)}{let[t,r,n,s,i]=e,a=i?new Et("",i):fr();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:n||t,column:s||r}})}}var hi={mustache:function(e,t=[],r=ne([]),n=!1,s,i){return f.mustache({path:lt(e),params:t,hash:r,trusting:n,strip:i,loc:T(s||null)})},block:function(e,t,r,n,s=null,i,a,o,c){let h,p=null;return h=n.type==="Template"?f.blockItself({params:Vn(n.blockParams),body:n.body,loc:n.loc}):n,(s==null?void 0:s.type)==="Template"?(s.blockParams.length,p=f.blockItself({params:[],body:s.body,loc:s.loc})):p=s,f.block({path:lt(e),params:t||[],hash:r||ne([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})},comment:function(e,t){return f.comment({value:e,loc:T(t||null)})},mustacheComment:function(e,t){return f.mustacheComment({value:e,loc:T(t||null)})},element:function(e,t={}){let r,n,{attrs:s,blockParams:i,modifiers:a,comments:o,children:c,openTag:h,closeTag:p,loc:m}=t;typeof e=="string"?e.endsWith("/")?(r=lt(e.slice(0,-1)),n=!0):r=lt(e):"type"in e?(e.type,e.type,r=e):"path"in e?(e.path.type,e.path.type,r=e.path,n=e.selfClosing):(r=lt(e.name),n=e.selfClosing);let v=i==null?void 0:i.map(E=>typeof E=="string"?Pn(E):E),g=null;return p?g=T(p||null):p===void 0&&(g=n||ri(r.original)?null:T(null)),f.element({path:r,selfClosing:n||!1,attributes:s||[],params:v||[],modifiers:a||[],comments:o||[],children:c||[],openTag:T(h||null),closeTag:g,loc:T(m||null)})},elementModifier:function(e,t,r,n){return f.elementModifier({path:lt(e),params:t||[],hash:r||ne([]),loc:T(n||null)})},attr:function(e,t,r){return f.attr({name:e,value:t,loc:T(r||null)})},text:function(e="",t){return f.text({chars:e,loc:T(t||null)})},sexpr:function(e,t=[],r=ne([]),n){return f.sexpr({path:lt(e),params:t,hash:r,loc:T(n||null)})},concat:function(e,t){if(!ue(e))throw new Error("b.concat requires at least one part");return f.concat({parts:e,loc:T(t||null)})},hash:ne,pair:function(e,t,r){return f.pair({key:e,value:t,loc:T(r||null)})},literal:Pe,program:function(e,t,r){return t&&t.length?Ln(e,t,!1,r):Dn(e,[],r)},blockItself:Ln,template:Dn,loc:T,pos:function(e,t){return f.pos({line:e,column:t})},path:lt,fullPath:function(e,t=[],r){return f.path({head:e,tail:t,loc:T(r||null)})},head:function(e,t){return f.head({original:e,loc:T(t||null)})},at:function(e,t){return f.atName({name:e,loc:T(t||null)})},var:Pn,this:function(e){return f.this({loc:T(e||null)})},string:mr("StringLiteral"),boolean:mr("BooleanLiteral"),number:mr("NumberLiteral"),undefined:()=>Pe("UndefinedLiteral",void 0),null:()=>Pe("NullLiteral",null)};function mr(e){return function(t,r){return Pe(e,t,r)}}var Ae={close:!1,open:!1},f=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:r=!1,loc:n}){return{type:"Block",body:e,params:t,get blockParams(){return this.params.map(s=>s.name)},set blockParams(s){this.params=s.map(i=>f.var({name:i,loc:D.synthetic(i)}))},chained:r,loc:n}}template({body:e,blockParams:t,loc:r}){return{type:"Template",body:e,blockParams:t,loc:r}}mustache({path:e,params:t,hash:r,trusting:n,loc:s,strip:i=Ae}){return function({path:a,params:o,hash:c,trusting:h,strip:p,loc:m}){let v={type:"MustacheStatement",path:a,params:o,hash:c,trusting:h,strip:p,loc:m};return Object.defineProperty(v,"escaped",{enumerable:!1,get(){return!this.trusting},set(g){this.trusting=!g}}),v}({path:e,params:t,hash:r,trusting:n,strip:i,loc:s})}block({path:e,params:t,hash:r,defaultBlock:n,elseBlock:s=null,loc:i,openStrip:a=Ae,inverseStrip:o=Ae,closeStrip:c=Ae}){return{type:"BlockStatement",path:e,params:t,hash:r,program:n,inverse:s,loc:i,openStrip:a,inverseStrip:o,closeStrip:c}}comment({value:e,loc:t}){return{type:"CommentStatement",value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:"MustacheCommentStatement",value:e,loc:t}}concat({parts:e,loc:t}){return{type:"ConcatStatement",parts:e,loc:t}}element({path:e,selfClosing:t,attributes:r,modifiers:n,params:s,comments:i,children:a,openTag:o,closeTag:c,loc:h}){let p=t;return{type:"ElementNode",path:e,attributes:r,modifiers:n,params:s,comments:i,children:a,openTag:o,closeTag:c,loc:h,get tag(){return this.path.original},set tag(m){this.path.original=m},get blockParams(){return this.params.map(m=>m.name)},set blockParams(m){this.params=m.map(v=>f.var({name:v,loc:D.synthetic(v)}))},get selfClosing(){return p},set selfClosing(m){p=m,this.closeTag=m?null:D.synthetic(``)}}}elementModifier({path:e,params:t,hash:r,loc:n}){return{type:"ElementModifierStatement",path:e,params:t,hash:r,loc:n}}attr({name:e,value:t,loc:r}){return{type:"AttrNode",name:e,value:t,loc:r}}text({chars:e,loc:t}){return{type:"TextNode",chars:e,loc:t}}sexpr({path:e,params:t,hash:r,loc:n}){return{type:"SubExpression",path:e,params:t,hash:r,loc:n}}path({head:e,tail:t,loc:r}){return function({head:n,tail:s,loc:i}){let a={type:"PathExpression",head:n,tail:s,get original(){return[this.head.original,...this.tail].join(".")},set original(o){let[c,...h]=ie(o.split("."));this.head=hi.head(c,this.head.loc),this.tail=h},loc:i};return Object.defineProperty(a,"parts",{enumerable:!1,get(){let o=ie(this.original.split("."));return o[0]==="this"?o.shift():o[0].startsWith("@")&&(o[0]=o[0].slice(1)),Object.freeze(o)},set(o){var h;let c=[...o];c[0]==="this"||(h=c[0])!=null&&h.startsWith("@")||(this.head.type==="ThisHead"?c.unshift("this"):this.head.type==="AtHead"&&(c[0]=`@${c[0]}`)),this.original=c.join(".")}}),Object.defineProperty(a,"this",{enumerable:!1,get(){return this.head.type==="ThisHead"}}),Object.defineProperty(a,"data",{enumerable:!1,get(){return this.head.type==="AtHead"}}),a}({head:e,tail:t,loc:r})}head({original:e,loc:t}){return e==="this"?this.this({loc:t}):e[0]==="@"?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:"ThisHead",get original(){return"this"},loc:e}}atName({name:e,loc:t}){let r="",n={type:"AtHead",get name(){return r},set name(s){s[0],s.indexOf("."),r=s},get original(){return this.name},set original(s){this.name=s},loc:t};return n.name=e,n}var({name:e,loc:t}){let r="",n={type:"VarHead",get name(){return r},set name(s){s[0],s.indexOf("."),r=s},get original(){return this.name},set original(s){this.name=s},loc:t};return n.name=e,n}hash({pairs:e,loc:t}){return{type:"Hash",pairs:e,loc:t}}pair({key:e,value:t,loc:r}){return{type:"HashPair",key:e,value:t,loc:r}}literal({type:e,value:t,loc:r}){return function({type:n,value:s,loc:i}){let a={type:n,value:s,loc:i};return Object.defineProperty(a,"original",{enumerable:!1,get(){return this.value},set(o){this.value=o}}),a}({type:e,value:t,loc:r})}},Er=class{elementStack=[];lines;source;currentAttribute=null;currentNode=null;tokenizer;constructor(t,r=new ur(Tn),n="precompile"){this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new hr(this,r,n)}offset(){let{line:t,column:r}=this.tokenizer;return this.source.offsetFor(t,r)}pos({line:t,column:r}){return this.source.offsetFor(t,r)}finish(t){return rr({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&(t.type==="StartTag"||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Nr(ie(this.elementStack))}sourceForNode(t,r){let n,s,i,a=t.loc.start.line-1,o=a-1,c=t.loc.start.column,h=[];for(r?(s=r.loc.end.line-1,i=r.loc.end.column):(s=t.loc.end.line-1,i=t.loc.end.column);o=E?-1:v.indexOf(N,g),x===-1||x+N.length>E?(g=E,w=this.source.spanFor(se)):(g=x,w=m.sliceStartChars({skipStart:g,chars:N.length}),g+=N.length),a.push(f.var({name:N,loc:w}))}}t.program.loc||(t.program.loc=se),t.inverse&&!t.inverse.loc&&(t.inverse.loc=se);let o=this.Program(t.program,a),c=t.inverse?this.Program(t.inverse,[]):null,h=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Vt(this.currentElement(),h)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let n,{escaped:s,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(t.loc));if(qn(t.path))n=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=dr(this,t);n=f.mustache({path:c,params:h,hash:p,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":gr(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),gr(this.currentStartTag,n),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":gr(this.currentStartTag,n),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Vt(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,n){let s=n.loc.start.line,i=n.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(` +`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(n.original,n.value);s+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=s,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:n,loc:s}=t,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Vt(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw S("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw S("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw S("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:n,hash:s}=dr(this,t);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));n=[t.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));n=t.parts}let s,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)s=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));s=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));s=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:s,tail:n,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}};function dr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",S(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let n=t.params?t.params.map(i=>e.acceptNode(i)):[],s=ue(n)?Nr(n).loc:r.loc;return{path:r,params:n,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(s).collapse("end")})}}function gr(e,t){let{path:r,params:n,hash:s,loc:i}=t;if(qn(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw S(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});e.modifiers.push(a)}function qt(e){return/[\t\n\f ]/u.test(e)}var Tr=class extends wr{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){Vt(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){Vt(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if(t.type==="StartTag"){if(this.finishStartTag(),t.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(br.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:r,nameEnd:n}=this.currentStartTag,s=r.until(n),[i,...a]=ie(t.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:h,comments:p,params:m,selfClosing:v,loc:g}=this.finish(this.currentStartTag),E=f.element({path:o,selfClosing:v,attributes:c,modifiers:h,comments:p,params:m,children:[],openTag:g,closeTag:v?null:D.broken(),loc:g});this.elementStack.push(E)}finishEndTag(t){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,t);let i=this.currentElement();t?s.closeTag=null:s.selfClosing?s.closeTag:s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Vt(i,f.element(s))}markTagAsSelfClosing(){let t=this.currentTag;if(t.type!=="StartTag")throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let r=this.currentTag;if(r.name+=t,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(r.nameEnd,r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=t,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();i=t===` +`?n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let h=this.assembleAttributeValue(s,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:n,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,n=this.currentAttr,s={state:"PossibleAs"},i={PossibleAs:o=>{if(s.state,qt(o))s={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',n.start.until(this.offset().move(1)));s={state:"Done"}}},BeforeStartPipe:o=>{s.state,qt(o)?this.tokenizer.consume():o==="|"?(s={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):s={state:"Done"}},BeforeBlockParamName:o=>{if(s.state,qt(o))this.tokenizer.consume();else if(o==="")s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",n.start.until(this.offset().move(1)));s={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));s={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(s.state,o==="")s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}};else if(o==="|"||qt(o)){let c=s.start.until(this.offset());if(s.name==="this"||t.test(s.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${s.name}\``,c);r.params.push(f.var({name:s.name,loc:c})),s=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));s.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{s.state,qt(o)?this.tokenizer.consume():o===""?(s={state:"Done"},this.pendingError={mustache(c){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(c))}}):o===">"||o==="/"?s={state:"Done"}:(s={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(s.state,o===""||o==="/"||o===">"||qt(o))throw S(s.message,s.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[s.state](a);while(s.state!=="Done"&&a!=="");s.state}reportSyntaxError(t){throw S(t,this.offset().collapsed())}assembleConcatenatedValue(t){for(let s of t)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);let r=ni(t),n=Nr(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(t,r,n){if(br.has(t.name)&&!n)throw S(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.tag===void 0)throw S(`Closing tag without an open tag`,t.loc);if(r.tag!==t.name)throw S(`Closing tag did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}return ue(t)?t[0]:f.text({chars:"",loc:s})}},pi={},Cr=class extends ur{constructor(){super({})}parse(){}};function Hn(e,t={}){var c,h,p;let r,n,s,i=t.mode||"precompile";typeof e=="string"?(r=new Et(e,(c=t.meta)==null?void 0:c.moduleName),n=i==="codemod"?Ne(e,t.parseOptions):cr(e,t.parseOptions)):e instanceof Et?(r=e,n=i==="codemod"?Ne(e.source,t.parseOptions):cr(e.source,t.parseOptions)):(r=new Et("",(h=t.meta)==null?void 0:h.moduleName),n=e),i==="codemod"&&(s=new Cr);let a=D.forCharPositions(r,0,r.source.length);n.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new Tr(r,s,i).parse(n,t.locals??[]);if((p=t==null?void 0:t.plugins)!=null&&p.ast)for(let m of t.plugins.ast)ui(o,m(rr({},t,{syntax:pi},{plugins:void 0})).visitor);return o}var fi={resolution:()=>xe.GetStrictKeyword,serialize:()=>"Strict",isAngleBracket:!1},oo={...fi,isAngleBracket:!0};var _e=` +`,Fn="\r",Un=function(){function e(t){this.length=t.length;for(var r=[0],n=0;nthis.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var s=t-n[r];return{line:r,column:s}},e.prototype.indexForLocation=function(t){var r=t.line,n=t.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}();function mi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Mn=mi;function di(e){let t=e.children??e.body;if(t)for(let r=0;rt.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),di(s)}}})}function bi(e){let t;try{t=Hn(e,{mode:"codemod",plugins:{ast:[gi(e)]}})}catch(r){let n=ki(r);if(n){let s=yi(r);throw Mn(s,{loc:n,cause:r})}throw r}return t}function yi(e){let{message:t}=e,r=t.split(` +`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(it(!1,r,-2))?it(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(it(!1,r,-1))&&r[1]===""&&it(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):t}function ki(e){let{location:t,hash:r}=e;if(t){let{start:n,end:s}=t;return typeof s.line!="number"?{start:n}:t}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var Si={parse:bi,astFormat:"glimmer",locStart:yt,locEnd:te};var vi={glimmer:fn};var wo=Pr;export{wo as default,mn as languages,Ar as parsers,vi as printers}; diff --git a/node_modules/prettier/plugins/html.js b/node_modules/prettier/plugins/html.js index c9844c38..9b6fbb89 100644 --- a/node_modules/prettier/plugins/html.js +++ b/node_modules/prettier/plugins/html.js @@ -1,22 +1,22 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var lr=Object.defineProperty;var ni=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var ii=Object.prototype.hasOwnProperty;var Xr=t=>{throw TypeError(t)};var Jr=(t,e)=>{for(var r in e)lr(t,r,{get:e[r],enumerable:!0})},ai=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of si(e))!ii.call(t,s)&&s!==r&&lr(t,s,{get:()=>e[s],enumerable:!(n=ni(e,s))||n.enumerable});return t};var oi=t=>ai(lr({},"__esModule",{value:!0}),t);var Zr=(t,e,r)=>e.has(t)||Xr("Cannot "+r);var Q=(t,e,r)=>(Zr(t,e,"read from private field"),r?r.call(t):e.get(t)),en=(t,e,r)=>e.has(t)?Xr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),tn=(t,e,r,n)=>(Zr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Vo={};Jr(Vo,{languages:()=>Ds,options:()=>ys,parsers:()=>Yr,printers:()=>Ho});var ui=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=ui;var ke="string",Be="array",Le="cursor",ce="indent",pe="align",Fe="trim",te="group",he="fill",me="if-break",fe="indent-if-break",Ne="line-suffix",Pe="line-suffix-boundary",Y="line",Ie="label",de="break-parent",St=new Set([Le,ce,pe,Fe,te,he,me,fe,Ne,Pe,Y,Ie,de]);function li(t){if(typeof t=="string")return ke;if(Array.isArray(t))return Be;if(!t)return;let{type:e}=t;if(St.has(e))return e}var Re=li;var ci=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function pi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Re(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ci([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var cr=class extends Error{name="InvalidDocError";constructor(e){super(pi(e)),this.doc=e}},_t=cr;var rn=()=>{},re=rn,Et=rn;function k(t){return re(t),{type:ce,contents:t}}function nn(t,e){return re(e),{type:pe,contents:e,n:t}}function _(t,e={}){return re(t),Et(e.expandedStates,!0),{type:te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function sn(t){return nn(Number.NEGATIVE_INFINITY,t)}function an(t){return nn({type:"root"},t)}function At(t){return Et(t),{type:he,parts:t}}function ge(t,e="",r={}){return re(t),e!==""&&re(e),{type:me,breakContents:t,flatContents:e,groupId:r.groupId}}function on(t,e){return re(t),{type:fe,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:de};var hi={type:Y,hard:!0},mi={type:Y,hard:!0,literal:!0},E={type:Y},v={type:Y,soft:!0},S=[hi,ne],un=[mi,ne];function q(t,e){re(t),Et(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},X=fi;function Dt(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Re(i)){case Be:return e(i.map(n));case he:return e({...i,parts:i.parts.map(n)});case me:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case te:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case pe:case ce:case fe:case Ie:case Ne:return e({...i,contents:n(i.contents)});case ke:case Le:case Fe:case Pe:case Y:case de:return e(i);default:throw new _t(i)}}}function di(t){switch(Re(t)){case he:if(t.parts.every(e=>e===""))return"";break;case te:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===te&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case pe:case ce:case fe:case Ne:if(!t.contents)return"";break;case me:if(!t.flatContents&&!t.breakContents)return"";break;case Be:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof X(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case ke:case Le:case Fe:case Pe:case Y:case Ie:case de:break;default:throw new _t(t)}return t}function ln(t){return Dt(t,e=>di(e))}function B(t,e=un){return Dt(t,r=>typeof r=="string"?q(e,r.split(` -`)):r)}var vt="'",cn='"';function gi(t,e){let r=e===!0||e===vt?vt:cn,n=r===vt?cn:vt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var pn=gi;function pr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var H,hr=class{constructor(e){en(this,H);tn(this,H,new Set(e))}getLeadingWhitespaceCount(e){let r=Q(this,H),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return Q(this,H).has(e.charAt(0))}hasTrailingWhitespace(e){return Q(this,H).has(X(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${pr([...Q(this,H)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=Q(this,H);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Q(this,H);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Q(this,H);return Array.prototype.every.call(e,n=>r.has(n))}};H=new WeakMap;var hn=hr;var Ci=[" ",` -`,"\f","\r"," "],Si=new hn(Ci),N=Si;var mr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},mn=mr;function _i(t){return(t==null?void 0:t.type)==="front-matter"}var $e=_i;var Ei=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ai=new Set(["if","else if","for","switch","case"]);function fn(t,e){var r;if(t.type==="text"||t.type==="comment"||$e(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)Ai.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}fn.ignoredProperties=Ei;var dn=fn;async function Di(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var gn=Di;function Ce(t,e=!0){return[k([v,t]),e?v:""]}function j(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?_(i):Ce(i)}function vi(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},j)}var Cn=vi;var yi=t=>String(t).split(/[/\\]/u).pop();function Sn(t,e){if(!e)return;let r=yi(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function wi(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function bi(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=wi(r,e.language)??Sn(r,e.physicalFile)??Sn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Oe=bi;var _n="inline",En={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},An="normal",Dn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ti(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var Se=Ti;var xi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),fr=t=>xi(N.trimEnd(t)),vn=t=>{let e=t,r=N.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=N.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function yt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||_e(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Tt(t,e)&&!U(t)&&t.type!=="interpolation")}function Ee(t){return t.type==="attribute"||!t.parent||!t.prev?!1:ki(t.prev)}function ki(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function U(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||Se(t)&&(t.name==="script"||t.name==="style"))}function yn(t){return t.children&&!U(t)}function wn(t){return U(t)||t.type==="interpolation"||dr(t)}function dr(t){return Rn(t).startsWith("pre")}function bn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return $e(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:_e(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||_e(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Ii(t.parent.cssDisplay))||t.prev&&!Oi(t.prev.cssDisplay))}}function Tn(t,e){return $e(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:_e(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||_e(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Ri(t.parent.cssDisplay))||t.next&&!$i(t.next.cssDisplay))}function xn(t){return Mi(t.cssDisplay)&&!U(t)}function Qe(t){return $e(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>Li(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Ln(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Fn(t.lastChild))}function gr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function wt(t){return Nn(t)||t.prev&&Bi(t.prev)||Bn(t)}function Bi(t){return Nn(t)||t.type==="element"&&t.fullName==="br"||Bn(t)}function Bn(t){return Ln(t)&&Fn(t)}function Ln(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Nn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function bt(t){return t.lastChild?bt(t.lastChild):t}function Li(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Pn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function Fi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Oe(e,{language:i})??Pn(s)}function Ni(t,e){if(!Tt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Oe(e,{language:s})??Pn(n)}function Pi(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Oe(e,{language:r}):"css"}function Cr(t,e){return Fi(t,e)??Pi(t,e)??Ni(t,e)}function Xe(t){return t==="block"||t==="list-item"||t.startsWith("table")}function Ii(t){return!Xe(t)&&t!=="inline-block"}function Ri(t){return!Xe(t)&&t!=="inline-block"}function $i(t){return!Xe(t)}function Oi(t){return!Xe(t)}function Mi(t){return!Xe(t)&&t!=="inline-block"}function _e(t){return Rn(t).startsWith("pre")}function qi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function In(t,e){var n;if(Ae(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(qi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||Se(t))&&En[t.name]||_n}}function Rn(t){return t.type==="element"&&(!t.namespace||Se(t))&&Dn[t.name]||An}function Hi(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=N.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{throw TypeError(t)};var Jr=(t,e)=>{for(var r in e)or(t,r,{get:e[r],enumerable:!0})},ii=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ni(e))!si.call(t,s)&&s!==r&&or(t,s,{get:()=>e[s],enumerable:!(n=ri(e,s))||n.enumerable});return t};var ai=t=>ii(or({},"__esModule",{value:!0}),t);var Zr=(t,e,r)=>e.has(t)||Xr("Cannot "+r);var K=(t,e,r)=>(Zr(t,e,"read from private field"),r?r.call(t):e.get(t)),en=(t,e,r)=>e.has(t)?Xr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),tn=(t,e,r,n)=>(Zr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var qo={};Jr(qo,{languages:()=>As,options:()=>vs,parsers:()=>Yr,printers:()=>Mo});var oi=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=oi;var Ve="string",Ue="array",We="cursor",De="indent",ve="align",ze="trim",ye="group",we="fill",be="if-break",Te="indent-if-break",Ge="line-suffix",Ye="line-suffix-boundary",Q="line",je="label",xe="break-parent",St=new Set([We,De,ve,ze,ye,we,be,Te,Ge,Ye,Q,je,xe]);function ui(t){if(typeof t=="string")return Ve;if(Array.isArray(t))return Ue;if(!t)return;let{type:e}=t;if(St.has(e))return e}var Ke=ui;var li=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ci(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Ke(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=li([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var ur=class extends Error{name="InvalidDocError";constructor(e){super(ci(e)),this.doc=e}},lr=ur;var rn=()=>{},re=rn,_t=rn;function k(t){return re(t),{type:De,contents:t}}function nn(t,e){return re(e),{type:ve,contents:e,n:t}}function _(t,e={}){return re(t),_t(e.expandedStates,!0),{type:ye,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function sn(t){return nn(Number.NEGATIVE_INFINITY,t)}function an(t){return nn({type:"root"},t)}function Et(t){return _t(t),{type:we,parts:t}}function le(t,e="",r={}){return re(t),e!==""&&re(e),{type:be,breakContents:t,flatContents:e,groupId:r.groupId}}function on(t,e){return re(t),{type:Te,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:xe};var pi={type:Q,hard:!0},hi={type:Q,hard:!0,literal:!0},E={type:Q},v={type:Q,soft:!0},S=[pi,ne],un=[hi,ne];function q(t,e){re(t),_t(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},se=mi;function cr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Ke(i)){case Ue:return e(i.map(n));case we:return e({...i,parts:i.parts.map(n)});case be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case ye:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case ve:case De:case Te:case je:case Ge:return e({...i,contents:n(i.contents)});case Ve:case We:case ze:case Ye:case Q:case xe:return e(i);default:throw new lr(i)}}}function B(t,e=un){return cr(t,r=>typeof r=="string"?q(e,r.split(` +`)):r)}var At="'",ln='"';function fi(t,e){let r=e===!0||e===At?At:ln,n=r===At?ln:At,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var cn=fi;function pr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var H,hr=class{constructor(e){en(this,H);tn(this,H,new Set(e))}getLeadingWhitespaceCount(e){let r=K(this,H),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return K(this,H).has(e.charAt(0))}hasTrailingWhitespace(e){return K(this,H).has(se(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${pr([...K(this,H)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=K(this,H);return Array.prototype.every.call(e,n=>r.has(n))}};H=new WeakMap;var pn=hr;var di=[" ",` +`,"\f","\r"," "],gi=new pn(di),N=gi;var mr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},hn=mr;function Ci(t){return(t==null?void 0:t.type)==="front-matter"}var ke=Ci;var Si=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),_i=new Set(["if","else if","for","switch","case"]);function mn(t,e){var r;if(t.type==="text"||t.type==="comment"||ke(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)_i.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}mn.ignoredProperties=Si;var fn=mn;async function Ei(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var dn=Ei;function ce(t,e=!0){return[k([v,t]),e?v:""]}function Y(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?_(i):ce(i)}function Ai(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Y)}var gn=Ai;var Di=t=>String(t).split(/[/\\]/u).pop();function Cn(t,e){if(!e)return;let r=Di(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function vi(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function yi(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=vi(r,e.language)??Cn(r,e.physicalFile)??Cn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Be=yi;var Sn="inline",_n={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},En="normal",An={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function wi(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pe=wi;var bi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),fr=t=>bi(N.trimEnd(t)),Dn=t=>{let e=t,r=N.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=N.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function Dt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||he(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||wt(t,e)&&!U(t)&&t.type!=="interpolation")}function me(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Ti(t.prev)}function Ti(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function O(t){return t.type==="text"||t.type==="comment"}function U(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||pe(t)&&(t.name==="script"||t.name==="style"))}function vn(t){return t.children&&!U(t)}function yn(t){return U(t)||t.type==="interpolation"||dr(t)}function dr(t){return In(t).startsWith("pre")}function wn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return ke(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||he(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Ni(t.parent.cssDisplay))||t.prev&&!Ri(t.prev.cssDisplay))}}function bn(t,e){return ke(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||he(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Pi(t.parent.cssDisplay))||t.next&&!Ii(t.next.cssDisplay))}function Tn(t){return Oi(t.cssDisplay)&&!U(t)}function Qe(t){return ke(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>ki(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Bn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Ln(t.lastChild))}function gr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function vt(t){return Fn(t)||t.prev&&xi(t.prev)||kn(t)}function xi(t){return Fn(t)||t.type==="element"&&t.fullName==="br"||kn(t)}function kn(t){return Bn(t)&&Ln(t)}function Bn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Fn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function yt(t){return t.lastChild?yt(t.lastChild):t}function ki(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Nn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function Bi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Be(e,{language:i})??Nn(s)}function Li(t,e){if(!wt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Be(e,{language:s})??Nn(n)}function Fi(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Be(e,{language:r}):"css"}function Cr(t,e){return Bi(t,e)??Fi(t,e)??Li(t,e)}function Xe(t){return t==="block"||t==="list-item"||t.startsWith("table")}function Ni(t){return!Xe(t)&&t!=="inline-block"}function Pi(t){return!Xe(t)&&t!=="inline-block"}function Ii(t){return!Xe(t)}function Ri(t){return!Xe(t)}function Oi(t){return!Xe(t)&&t!=="inline-block"}function he(t){return In(t).startsWith("pre")}function $i(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function Pn(t,e){var n;if(fe(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if($i(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||pe(t))&&_n[t.name]||Sn}}function In(t){return t.type==="element"&&(!t.namespace||pe(t))&&An[t.name]||En}function Mi(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` +`)){if(r.length===0)continue;let n=N.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function _r(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return _r(t.value)}var Vi=new Set(["template","style","script"]);function Je(t,e){return Ae(t,e)&&!Vi.has(t.fullName)}function Ae(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function Tt(t,e){return Ae(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function $n(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function On(t,e){let r=t.parent;if(!Ae(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function xt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Sr(fr(e)),S):q(E,N.split(e))}function kt(t,e){return Ae(t,e)&&t.name==="script"}var Er=/\{\{(.+?)\}\}/su;async function Mn(t,e){let r=[];for(let[n,s]of t.split(Er).entries())if(n%2===0)r.push(B(s));else try{r.push(_(["{{",k([E,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),E,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Ar({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},j)}var Ui=Ar({parser:"__ng_action"}),Wi=Ar({parser:"__ng_binding"}),zi=Ar({parser:"__ng_directive"});function Gi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Ui;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Wi;if(n.startsWith("*"))return zi;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>Ce(At(xt(r,s.trim())),!s.includes("@@"));if(Er.test(s))return i=>Mn(s,i)}var qn=Gi;function Yi(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var Hn=Yi;function Vn(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var ji=/^[ \t\n\r\u000c]+/,Ki=/^[, \t\n\r\u000c]+/,Qi=/^[^ \t\n\r\u000c]+/,Xi=/[,]+$/,Un=/^\d+$/,Ji=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Zi(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Ki),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Qi),n=[],r.slice(-1)===","?(r=r.replace(Xi,""),d()):f()}function f(){for(p(ji),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Vn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Vn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,R,F,c={},g,y,M,x,V;for(F=0;Fra(P(t.node))}var zn={width:"w",height:"h",density:"x"},ta=Object.keys(zn);function ra(t){let e=Wn(t),r=ta.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=zn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return Ce(q([",",E],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],R=" ".repeat(A+D);d.push(ge(R," "),C+s)}return d})))}var Gn=ea;function Yn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Dr=new WeakMap;function na(t,e){let{root:r}=t;return Dr.has(r)||Dr.set(r,r.children.some(n=>kt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Dr.get(r)}var Me=na;function jn(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},j)}function Kn(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Qn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,n=t.trim();return e.test(n)||r.test(n)}async function Xn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=sa(s),u=Me(r,n);return[_(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function sa(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function ia(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Xn;if(n==="generic"&&kt(r.parent,e))return jn;let s=P(r),i=Me(t,e);if($n(r)||On(r,e))return a=>Kn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>aa(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>oa(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Jn(s,a,{parseWithTs:i})}function aa(t,e,{parseWithTs:r}){return Qn(t)?Jn(t,e,{parseWithTs:r}):T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},j)}function oa(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},j)}function Jn(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},j)}var Zn=ia;function ua(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Gn,Yn,Hn,Zn,qn]){let s=n(t,e);if(s)return la(s)}}}function la(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=Dt(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',_(i),'"']}}var es=ua;var ts=new Proxy(()=>{},{get:()=>ts}),vr=ts;function ca(t){return Array.isArray(t)&&t.length>0}var qe=ca;function se(t){return t.sourceSpan.start.offset}function ie(t){return t.sourceSpan.end.offset}function Ze(t,e){return[t.isSelfClosing?"":pa(t,e),De(t,e)]}function pa(t,e){return t.lastChild&&we(t.lastChild)?"":[ha(t,e),Bt(t,e)]}function De(t,e){return(t.next?K(t.next):ye(t.parent))?"":[ve(t,e),W(t,e)]}function ha(t,e){return ye(t)?ve(t.lastChild,e):""}function W(t,e){return we(t)?Bt(t.parent,e):et(t)?Lt(t.next):""}function Bt(t,e){if(vr(!t.isSelfClosing),rs(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function rs(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Ee(t)||yt(t.parent,e))}function K(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!$(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ye(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!$(bt(t.lastChild))&&!_e(t)}function we(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&$(bt(t))}function et(t){return t.next&&!$(t.next)&&$(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function ma(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function tt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function fa(t,e,r){var f;let{node:n}=t;if(!qe(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&ma(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?B(e.originalText.slice(se(d),ie(d))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!Ae(n,e)?S:E,l=[k([o?" ":E,q(p,a)])];return n.firstChild&&tt(n.firstChild)||n.isSelfClosing&&ye(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?E:v),l}function da(t){return t.firstChild&&tt(t.firstChild)?"":Ft(t)}function rt(t,e,r){let{node:n}=t;return[be(n,e),fa(t,e,r),n.isSelfClosing?"":da(n)]}function be(t,e){return t.prev&&et(t.prev)?"":[z(t,e),Lt(t)]}function z(t,e){return tt(t)?Ft(t.parent):K(t)?ve(t.prev,e):""}function Lt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function Ft(t){switch(vr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function ga(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&tt(t.firstChild)&&(r-=Ft(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&we(t.lastChild)?n+=Bt(t,e).length:ye(t)&&(n-=ve(t.lastChild,e).length),e.originalText.slice(r,n)}var Nt=ga;var Ca=new Set(["if","else if","for","switch","case"]);function Sa(t,e){let{node:r}=t;switch(r.type){case"element":if(U(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Tt(r,e)){let n=Cr(r,e);return n?async(s,i)=>{let a=Nt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(fr(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),_(rt(t,e,i)),o?"":S,u,o?"":S,Ze(r,e),W(r,e)]}:void 0}break;case"text":if(U(r.parent)){let n=Cr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?Sr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),W(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Me(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([E,await n(r.value,s)]),r.parent.next&&K(r.parent.next)?" ":E]};break;case"attribute":return es(t,e);case"front-matter":return n=>gn(r,n);case"angularControlFlowBlockParameters":return Ca.has(t.parent.name)?Cn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ns=Sa;var nt=null;function st(t){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t??Object.create(null),new st}var _a=10;for(let t=0;t<=_a;t++)st();function yr(t){return st(t)}function Ea(t,e="type"){yr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var ss=Ea;var Aa={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},is=Aa;var Da=ss(is),as=Da;function os(t){return/^\s*/u.test(t)}function us(t){return` +`)}function _r(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return _r(t.value)}var qi=new Set(["template","style","script"]);function Je(t,e){return fe(t,e)&&!qi.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function wt(t,e){return fe(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Rn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function On(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function bt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Sr(fr(e)),S):q(E,N.split(e))}function Tt(t,e){return fe(t,e)&&t.name==="script"}var Er=/\{\{(.+?)\}\}/su;async function $n(t,e){let r=[];for(let[n,s]of t.split(Er).entries())if(n%2===0)r.push(B(s));else try{r.push(_(["{{",k([E,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),E,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Ar({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},Y)}var Hi=Ar({parser:"__ng_action"}),Vi=Ar({parser:"__ng_binding"}),Ui=Ar({parser:"__ng_directive"});function Wi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Hi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Vi;if(n.startsWith("*"))return Ui;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>ce(Et(bt(r,s.trim())),!s.includes("@@"));if(Er.test(s))return i=>$n(s,i)}var Mn=Wi;function zi(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var qn=zi;function Hn(t){return t===" "||t===` +`||t==="\f"||t==="\r"||t===" "}var Gi=/^[ \t\n\r\u000c]+/,Yi=/^[, \t\n\r\u000c]+/,ji=/^[^ \t\n\r\u000c]+/,Ki=/[,]+$/,Vn=/^\d+$/,Qi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Xi(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Yi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(ji),n=[],r.slice(-1)===","?(r=r.replace(Ki,""),d()):f()}function f(){for(p(Gi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Hn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Hn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,R,F,c={},g,y,M,x,V;for(F=0;Fea(P(t.node))}var Wn={width:"w",height:"h",density:"x"},Zi=Object.keys(Wn);function ea(t){let e=Un(t),r=Zi.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Wn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return ce(q([",",E],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],R=" ".repeat(A+D);d.push(le(R," "),C+s)}return d})))}var zn=Ji;function Gn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Dr=new WeakMap;function ta(t,e){let{root:r}=t;return Dr.has(r)||Dr.set(r,r.children.some(n=>Tt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Dr.get(r)}var Le=ta;function Yn(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Y)}function jn(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function Kn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=ra(s),u=Le(r,n);return[_(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function ra(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function na(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Kn;if(n==="generic"&&Tt(r.parent,e))return Yn;let s=P(r),i=Le(t,e);if(Rn(r)||On(r,e))return a=>jn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>sa(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>ia(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Qn(s,a,{parseWithTs:i})}async function sa(t,e,{parseWithTs:r}){var n;try{return await Qn(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Y)}function ia(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Y)}function Qn(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},Y)}var Xn=na;function aa(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[zn,Gn,qn,Xn,Mn]){let s=n(t,e);if(s)return oa(s)}}}function oa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=cr(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',_(i),'"']}}var Jn=aa;var Zn=new Proxy(()=>{},{get:()=>Zn}),vr=Zn;function ua(t){return Array.isArray(t)&&t.length>0}var Fe=ua;function X(t){return t.sourceSpan.start.offset}function J(t){return t.sourceSpan.end.offset}function Ze(t,e){return[t.isSelfClosing?"":la(t,e),de(t,e)]}function la(t,e){return t.lastChild&&Se(t.lastChild)?"":[ca(t,e),xt(t,e)]}function de(t,e){return(t.next?j(t.next):Ce(t.parent))?"":[ge(t,e),W(t,e)]}function ca(t,e){return Ce(t)?ge(t.lastChild,e):""}function W(t,e){return Se(t)?xt(t.parent,e):et(t)?kt(t.next,e):""}function xt(t,e){if(vr(!t.isSelfClosing),ts(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function ts(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(me(t)||Dt(t.parent,e))}function j(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!O(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ce(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!O(yt(t.lastChild))&&!he(t)}function Se(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&O(yt(t))}function et(t){return t.next&&!O(t.next)&&O(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function pa(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function tt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ha(t,e,r){var f;let{node:n}=t;if(!Fe(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&pa(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?B(e.originalText.slice(X(d),J(d))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!fe(n,e)?S:E,l=[k([o?" ":E,q(p,a)])];return n.firstChild&&tt(n.firstChild)||n.isSelfClosing&&Ce(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?E:v),l}function ma(t){return t.firstChild&&tt(t.firstChild)?"":Bt(t)}function rt(t,e,r){let{node:n}=t;return[_e(n,e),ha(t,e,r),n.isSelfClosing?"":ma(n)]}function _e(t,e){return t.prev&&et(t.prev)?"":[z(t,e),kt(t,e)]}function z(t,e){return tt(t)?Bt(t.parent):j(t)?ge(t.prev,e):""}var es="<${t.rawName}`;default:return`<${t.rawName}`}}function Bt(t){switch(vr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function fa(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&tt(t.firstChild)&&(r-=Bt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Se(t.lastChild)?n+=xt(t,e).length:Ce(t)&&(n-=ge(t.lastChild,e).length),e.originalText.slice(r,n)}var Lt=fa;var da=new Set(["if","else if","for","switch","case"]);function ga(t,e){let{node:r}=t;switch(r.type){case"element":if(U(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&wt(r,e)){let n=Cr(r,e);return n?async(s,i)=>{let a=Lt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(fr(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),_(rt(t,e,i)),o?"":S,u,o?"":S,Ze(r,e),W(r,e)]}:void 0}break;case"text":if(U(r.parent)){let n=Cr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?Sr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),W(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Le(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([E,await n(r.value,s)]),r.parent.next&&j(r.parent.next)?" ":E]};break;case"attribute":return Jn(t,e);case"front-matter":return n=>dn(r,n);case"angularControlFlowBlockParameters":return da.has(t.parent.name)?gn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var rs=ga;var nt=null;function st(t){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t??Object.create(null),new st}var Ca=10;for(let t=0;t<=Ca;t++)st();function yr(t){return st(t)}function Sa(t,e="type"){yr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var ns=Sa;var _a={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},ss=_a;var Ea=ns(ss),is=Ea;function as(t){return/^\s*/u.test(t)}function os(t){return` -`+t}var ls=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function cs(t){let e=ie(t);return t.type==="element"&&!t.endSourceSpan&&qe(t.children)?Math.max(e,cs(X(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(Ee(n)){let s=cs(n);return[z(n,e),B(N.trimEnd(e.originalText.slice(se(n)+(n.prev&&et(n.prev)?Lt(n).length:0),s-(n.next&&K(n.next)?ve(n,e).length:0)))),W(n,e)]}return r()}function Pt(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?wt(e)?S:E:"":wt(e)?S:v:et(t)&&(Ee(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&K(e)?"":!e.isLeadingSpaceSensitive||wt(e)||K(e)&&t.lastChild&&we(t.lastChild)&&t.lastChild.lastChild&&we(t.lastChild.lastChild)?S:e.hasLeadingSpaces?E:v}function He(t,e,r){let{node:n}=t;if(gr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return[o?[o,Qe(a.prev)?S:""]:"",it(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=Pt(o.prev,o);if(A)return Qe(o.prev)?[S,S,it(i,e,r)]:[A,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):$(o.prev)?p.push(d):p.push(ge("",v,{groupId:s[a-1]}))),C&&(Qe(o)?$(o.next)&&f.push(S,S):C===S?$(o.next)&&f.push(S):l.push(C)),[...u,_([...p,_([it(i,e,r),...l],{id:s[a]})]),...f]},"children")}function ps(t,e,r){let{node:n}=t,s=[];va(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",_(r("parameters")),")"),s.push(" {");let i=hs(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,He(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),_(s,{shouldBreak:!0})}function hs(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=ls.get(t.name))!=null&&r.has(t.next.name)))}function va(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!Ee(e)&&!hs(e)}function ms(t,e,r){return[k([v,q([";",E],t.map(r,"children"))]),v]}function fs(t,e,r){let{node:n}=t;return[be(n,e),_([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([E,q(E,t.map(r,"cases"))])]:"",v]),De(n,e)]}function ds(t,e,r){let{node:n}=t;return[n.value," {",_([k([v,t.map(({node:s})=>s.type==="text"&&!N.trim(s.value)?"":r(),"expression")]),v]),"}"]}function gs(t,e,r){let{node:n}=t;if(yt(n,e))return[z(n,e),_(rt(t,e,r)),B(Nt(n,e)),...Ze(n,e),W(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>_([_(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?on(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?ge(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?E:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(v):v,p=()=>(n.next?K(n.next):ye(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?ge(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?E:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?E:""):a([kn(n)?ne:"",o([u(),He(t,e,r)]),p()])}function at(t){return t>=9&&t<=32||t==160}function It(t){return 48<=t&&t<=57}function ot(t){return t>=97&&t<=122||t>=65&&t<=90}function Cs(t){return t>=97&&t<=102||t>=65&&t<=70||It(t)}function Rt(t){return t===10||t===13}function wr(t){return 48<=t&&t<=55}function $t(t){return t===39||t===34||t===96}var ya=/-+([a-z0-9])/g;function _s(t){return t.replace(ya,(...e)=>e[1].toUpperCase())}var ae=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` +`+t}var us=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ls(t){let e=J(t);return t.type==="element"&&!t.endSourceSpan&&Fe(t.children)?Math.max(e,ls(se(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(me(n)){let s=ls(n);return[z(n,e),B(N.trimEnd(e.originalText.slice(X(n)+(n.prev&&et(n.prev)?kt(n).length:0),s-(n.next&&j(n.next)?ge(n,e).length:0)))),W(n,e)]}return r()}function Ft(t,e){return O(t)&&O(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?vt(e)?S:E:"":vt(e)?S:v:et(t)&&(me(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&j(e)?"":!e.isLeadingSpaceSensitive||vt(e)||j(e)&&t.lastChild&&Se(t.lastChild)&&t.lastChild.lastChild&&Se(t.lastChild.lastChild)?S:e.hasLeadingSpaces?E:v}function Ne(t,e,r){let{node:n}=t;if(gr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Ft(a.prev,a):"";return[o?[o,Qe(a.prev)?S:""]:"",it(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if(O(o)){if(o.prev&&O(o.prev)){let A=Ft(o.prev,o);if(A)return Qe(o.prev)?[S,S,it(i,e,r)]:[A,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Ft(o.prev,o):"",C=o.next?Ft(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):O(o.prev)?p.push(d):p.push(le("",v,{groupId:s[a-1]}))),C&&(Qe(o)?O(o.next)&&f.push(S,S):C===S?O(o.next)&&f.push(S):l.push(C)),[...u,_([...p,_([it(i,e,r),...l],{id:s[a]})]),...f]},"children")}function cs(t,e,r){let{node:n}=t,s=[];Aa(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",_(r("parameters")),")"),s.push(" {");let i=ps(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Ne(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),_(s,{shouldBreak:!0})}function ps(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=us.get(t.name))!=null&&r.has(t.next.name)))}function Aa(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!me(e)&&!ps(e)}function hs(t,e,r){return[k([v,q([";",E],t.map(r,"children"))]),v]}function ms(t,e,r){let{node:n}=t;return[_e(n,e),_([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([E,q(E,t.map(r,"cases"))])]:"",v]),de(n,e)]}function fs(t,e,r){let{node:n}=t;return[n.value," {",_([k([v,t.map(({node:s})=>s.type==="text"&&!N.trim(s.value)?"":r(),"expression")]),v]),"}"]}function ds(t,e,r){let{node:n}=t;if(Dt(n,e))return[z(n,e),_(rt(t,e,r)),B(Lt(n,e)),...Ze(n,e),W(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>_([_(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?on(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?le(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?E:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(v):v,p=()=>(n.next?j(n.next):Ce(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?le(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?E:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?E:""):a([xn(n)?ne:"",o([u(),Ne(t,e,r)]),p()])}function at(t){return t>=9&&t<=32||t==160}function Nt(t){return 48<=t&&t<=57}function ot(t){return t>=97&&t<=122||t>=65&&t<=90}function gs(t){return t>=97&&t<=102||t>=65&&t<=70||Nt(t)}function Pt(t){return t===10||t===13}function wr(t){return 48<=t&&t<=55}function It(t){return t===39||t===34||t===96}var Da=/-+([a-z0-9])/g;function Ss(t){return t.replace(Da,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` `&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var wa=[Ta,xa,Ba,Fa,Na,Ra,Pa,Ia,$a,La];function ba(t,e){for(let r of wa)r(t,e);return t}function Ta(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function xa(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function La(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Fa(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(yn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Na(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&N.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=wn(e),n=dr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Ia(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Ra(t,e){t.walk(r=>{r.cssDisplay=In(r,e)})}function $a(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=xn(r);return}for(let s of n)s.isLeadingSpaceSensitive=bn(s,e),s.isTrailingSpaceSensitive=Tn(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var vs="HTML",qa={bracketSameLine:br.bracketSameLine,htmlWhitespaceSensitivity:{category:vs,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:br.singleAttributePerLine,vueIndentScriptAndStyle:{category:vs,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ys=qa;var Yr={};Jr(Yr,{angular:()=>Oo,html:()=>$o,lwc:()=>qo,vue:()=>Mo});var yp=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ws;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ws||(ws={}));var bs;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(bs||(bs={}));var Ts;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Ts||(Ts={}));var Tr={name:"custom-elements"},xr={name:"no-errors-schema"};var J;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(J||(J={}));var xs;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(xs||(xs={}));var I;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(I||(I={}));function ut(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function kr(t){return ut(t)[1]==="ng-container"}function Br(t){return ut(t)[1]==="ng-content"}function We(t){return t===null?null:ut(t)[0]}function ze(t,e){return t?`:${t}:${e}`:e}var qt;function Lr(){return qt||(qt={},Mt(J.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mt(J.STYLE,["*|style"]),Mt(J.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Mt(J.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),qt}function Mt(t,e){for(let r of e)qt[r.toLowerCase()]=t}var Ht=class{};var Ha="boolean",Va="number",Ua="string",Wa="object",za=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],ks=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Ga=Array.from(ks).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Vt=class extends Ht{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,za.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),Ha);break;case"#":r.set(l.substring(1),Va);break;case"%":r.set(l.substring(1),Wa);break;default:r.set(l,Ua)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===xr.name))return!0;if(e.indexOf("-")>-1){if(kr(e)||Br(e))return!1;if(n.some(i=>i.name===Tr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===xr.name)||e.indexOf("-")>-1&&(kr(e)||Br(e)||r.some(n=>n.name===Tr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Lr()[e+"|"+r];return s||(s=Lr()["*|"+r],s||J.NONE)}getMappedPropName(e){return ks.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Ga.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return _s(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ya(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Ya(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=I.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Bs,lt;function Ge(t){return lt||(Bs=new m({canSelfClose:!0}),lt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:I.RAW_TEXT}),script:new m({contentType:I.RAW_TEXT}),title:new m({contentType:{default:I.ESCAPABLE_RAW_TEXT,svg:I.PARSABLE_DATA}}),textarea:new m({contentType:I.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Vt().allKnownElementNames().forEach(e=>{!lt[e]&&We(e)===null&&(lt[e]=new m({canSelfClose:!1}))})),lt[t]??Bs}var oe=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ut=class extends oe{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Wt=class extends oe{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},zt=class extends oe{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Gt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},Yt=class extends oe{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},G=class extends oe{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},jt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Kt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},Z=class extends oe{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ct=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},pt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function Qt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ht=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Qt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Ye={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Ka="\uE500";Ye.ngsp=Ka;var Qa=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ls(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Qa.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Fr=class t{static fromArray(e){return e?(Ls("interpolation",e),new t(e[0],e[1])):Nr}constructor(e,r){this.start=e,this.end=r}},Nr=new Fr("{{","}}");var ft=class extends Ue{constructor(e,r,n){super(n,e),this.tokenType=r}},Or=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Ws(t,e,r,n={}){let s=new Mr(new Te(t,e),r,n);return s.tokenize(),new Or(vo(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var go=/\r\n?/g;function je(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function Rs(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function Co(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var tr;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(tr||(tr={}));var dt=class{constructor(e){this.error=e}},Mr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Nr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new qr(e,s):new rr(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(go,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>at(n)?!e:Ms(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(qs);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&$t(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(qs)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),at(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Rt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ot(n)||n==36||n===95||r&&It(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;$t(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ao(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ft("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new ft("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new ft(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new dt(n)}handleError(e){if(e instanceof gt&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof dt)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Do(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(je(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!So(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn($s,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!ot(this._cursor.peek()))throw this._createError(je(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof dt){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===I.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===I.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(je(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>$s(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&$t(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),Ms(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=ze(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=ze(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!at(t)||t===0}function $s(t){return at(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function So(t){return(t<97||12257)}function _o(t){return t===59||t===0||!Cs(t)}function Eo(t){return t===59||t===0||!ot(t)}function Ao(t){return t!==125}function Do(t,e){return Os(t)===Os(e)}function Os(t){return t>=97&&t<=122?t-97+65:t}function Ms(t){return ot(t)||It(t)||t===95}function qs(t){return t!==59&&b(t)}function vo(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new gt('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Rt(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ae(e.file,e.state.offset,e.state.line,e.state.column)}},qr=class t extends rr{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(wr(e())){let r="",n=0,s=this.clone();for(;wr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else Rt(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new gt("Invalid hexadecimal escape sequence",e);return s}},gt=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Ue{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Ur=class{constructor(e,r){this.rootNodes=e,this.errors=r}},nr=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(R,...F)=>D(R.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),f=Ws(e,r,i?(D,R,F,c)=>{let g=p(D,R,F,c);return g!==void 0?g:u(D)}:u,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Wr(f.tokens,o,d,C,s);return A.build(),new Ur(A.rootNodes,f.errors.concat(A.errors))}},Wr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Z&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Gt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(zs(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(zs(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` +`&&++o==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},Ee=class{constructor(e,r){this.content=e,this.url=r}},h=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Rt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Rt||(Rt={}));var Ie=class{constructor(e,r,n=Rt.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Rt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var va=[wa,ba,xa,Ba,La,Pa,Fa,Na,Ia,ka];function ya(t,e){for(let r of va)r(t,e);return t}function wa(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` +`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function ba(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function ka(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Ba(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(vn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function La(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&N.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=yn(e),n=dr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Na(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Pa(t,e){t.walk(r=>{r.cssDisplay=Pn(r,e)})}function Ia(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Tn(r);return}for(let s of n)s.isLeadingSpaceSensitive=wn(s,e),s.isTrailingSpaceSensitive=bn(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ds="HTML",$a={bracketSameLine:br.bracketSameLine,htmlWhitespaceSensitivity:{category:Ds,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:br.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ds,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},vs=$a;var Yr={};Jr(Yr,{angular:()=>Ro,html:()=>Io,lwc:()=>$o,vue:()=>Oo});var Dp=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ys;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ys||(ys={}));var ws;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ws||(ws={}));var bs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(bs||(bs={}));var Tr={name:"custom-elements"},xr={name:"no-errors-schema"};var Z;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(Z||(Z={}));var Ts;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Ts||(Ts={}));var I;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(I||(I={}));function ut(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function kr(t){return ut(t)[1]==="ng-container"}function Br(t){return ut(t)[1]==="ng-content"}function Re(t){return t===null?null:ut(t)[0]}function Oe(t,e){return t?`:${t}:${e}`:e}var $t;function Lr(){return $t||($t={},Ot(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ot(Z.STYLE,["*|style"]),Ot(Z.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Ot(Z.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),$t}function Ot(t,e){for(let r of e)$t[r.toLowerCase()]=t}var Mt=class{};var Ma="boolean",qa="number",Ha="string",Va="object",Ua=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],xs=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Wa=Array.from(xs).reduce((t,[e,r])=>(t.set(e,r),t),new Map),qt=class extends Mt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ua.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),Ma);break;case"#":r.set(l.substring(1),qa);break;case"%":r.set(l.substring(1),Va);break;default:r.set(l,Ha)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===xr.name))return!0;if(e.indexOf("-")>-1){if(kr(e)||Br(e))return!1;if(n.some(i=>i.name===Tr.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===xr.name)||e.indexOf("-")>-1&&(kr(e)||Br(e)||r.some(n=>n.name===Tr.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Lr()[e+"|"+r];return s||(s=Lr()["*|"+r],s||Z.NONE)}getMappedPropName(e){return xs.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Wa.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Ss(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(za(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function za(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=I.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},ks,lt;function $e(t){return lt||(ks=new m({canSelfClose:!0}),lt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:I.RAW_TEXT}),script:new m({contentType:I.RAW_TEXT}),title:new m({contentType:{default:I.ESCAPABLE_RAW_TEXT,svg:I.PARSABLE_DATA}}),textarea:new m({contentType:I.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new qt().allKnownElementNames().forEach(e=>{!lt[e]&&Re(e)===null&&(lt[e]=new m({canSelfClose:!1}))})),lt[t]??ks}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ht=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Vt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Ut=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Wt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},zt=class extends ae{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},G=class extends ae{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},Gt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Yt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},ee=class extends ae{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ct=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},pt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function jt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ht=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(jt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Ya="\uE500";Me.ngsp=Ya;var ja=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Bs(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];ja.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Fr=class t{static fromArray(e){return e?(Bs("interpolation",e),new t(e[0],e[1])):Nr}constructor(e,r){this.start=e,this.end=r}},Nr=new Fr("{{","}}");var ft=class extends Ie{constructor(e,r,n){super(n,e),this.tokenType=r}},$r=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Us(t,e,r,n={}){let s=new Mr(new Ee(t,e),r,n);return s.tokenize(),new $r(Ao(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var mo=/\r\n?/g;function qe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function Is(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function fo(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Zt;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Zt||(Zt={}));var dt=class{constructor(e){this.error=e}},Mr=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Nr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new qr(e,s):new er(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(mo,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>at(n)?!e:$s(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ms);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&It(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ms)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),at(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Pt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ot(n)||n===36||n===95||r&&Nt(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;It(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(_o(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ft("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new ft("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new ft(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new dt(n)}handleError(e){if(e instanceof gt&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof dt)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Eo(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(qe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!go(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(Rs,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!ot(this._cursor.peek()))throw this._createError(qe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof dt){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===I.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===I.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(qe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>Rs(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&It(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),$s(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Oe(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Oe(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!at(t)||t===0}function Rs(t){return at(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function go(t){return(t<97||12257)}function Co(t){return t===59||t===0||!gs(t)}function So(t){return t===59||t===0||!ot(t)}function _o(t){return t!==125}function Eo(t,e){return Os(t)===Os(e)}function Os(t){return t>=97&&t<=122?t-97+65:t}function $s(t){return ot(t)||Nt(t)||t===95}function Ms(t){return t!==59&&b(t)}function Ao(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new gt('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Pt(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ie(e.file,e.state.offset,e.state.line,e.state.column)}},qr=class t extends er{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(wr(e())){let r="",n=0,s=this.clone();for(;wr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else Pt(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new gt("Invalid hexadecimal escape sequence",e);return s}},gt=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Ie{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Ur=class{constructor(e,r){this.rootNodes=e,this.errors=r}},tr=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(R,...F)=>D(R.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),f=Us(e,r,i?(D,R,F,c)=>{let g=p(D,R,F,c);return g!==void 0?g:u(D)}:u,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Wr(f.tokens,o,d,C,s);return A.build(),new Ur(A.rootNodes,f.errors.concat(A.errors))}},Wr=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof ee&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Wt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Ws(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ws(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` `){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Gs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ut(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof G&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||We(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new G(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof G&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,G,u):e.type===4&&(this._popContainer(i,G,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,G,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(We(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof Z||a instanceof G&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=ze(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Gs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new Yt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Z(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,Z,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Z(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,Z,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new pt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new pt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof G)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ut(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=We(n.name))}return ze(e,r)}};function zs(t,e){return t.length>0&&t[t.length-1]===e}function Gs(t,e){return Ye[e]!==void 0?Ye[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var sr=class extends nr{constructor(){super(Ge)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var zr=null,yo=()=>(zr||(zr=new sr),zr);function Gr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return yo().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function wo(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Ys=wo;var Ct=3;function bo(t){let e=t.slice(0,Ct);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` +`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,zs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ht(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof G&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Re(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new G(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof G&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,G,u):e.type===4&&(this._popContainer(i,G,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,G,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Re(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof ee||a instanceof G&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=Oe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,zs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new zt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,ee,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,ee,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new pt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new pt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof G)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ut(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Re(n.name))}return Oe(e,r)}};function Ws(t,e){return t.length>0&&t[t.length-1]===e}function zs(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var rr=class extends tr{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var zr=null,Do=()=>(zr||(zr=new rr),zr);function Gr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return Do().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function vo(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Gs=vo;var Ct=3;function yo(t){let e=t.slice(0,Ct);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` `,Ct);if(r===-1)return;let n=t.slice(Ct,r).trim(),s=t.indexOf(` ${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(` -...`,r)),s===-1)return;let a=s+1+Ct,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-Ct),raw:u}}function To(t){let e=bo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var js=To;var ir={attrs:!0,children:!0,cases:!0,expression:!0},Ks=new Set(["parent"]),ar=class t{constructor(e={}){for(let r of new Set([...Ks,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in ir&&(r=r.map(n=>this.createChild(n))),!Ks.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in ir){let s=this[n];if(s){let i=xo(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ir||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in ir){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function xo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var ko=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function Lo(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function Fo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var or=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var Xs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function No(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!qe(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,X(!1,t.parameters,-1).sourceSpan.end)}}}function Po(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function Io(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Zs(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=Gr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?I.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Zs(t,ti,r);let g,y=()=>g??(g=Gr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),M=x=>y().rootNodes.find(({startSourceSpan:V})=>V&&V.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,V]of l.entries()){let{endSourceSpan:jr,startSourceSpan:ri}=V;if(jr===null)f=y().errors,l[x]=M(V);else if(Ro(V,r)){let Kr=y().errors.find(Qr=>Qr.span.start.offset>ri.start.offset&&Qr.span.start.offset0&&Js(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),M=g!==null&&y.startsWith(`${g}:`),x=M?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=M},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||Se(c))&&(c.name=A(c.name,g=>Xs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>or.has(c.name)&&(or.get("*").has(y)||or.get(c.name).has(y))))},R=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=Ge(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||Se(c)?c.tagDefinition=g:c.tagDefinition=Ge("")}};return Qt(new class extends ht{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),R(c)}},l),l}function Ro(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Oe(e,{language:r})==="html"}function Js(t){let{msg:e,span:{start:r,end:n}}=t;throw Ys(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function ei(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?js(t):{frontMatter:null,content:t},a=new Te(t,r.filepath),o=new ae(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Zs(i,e,r)};if(s){let d=new ae(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new h(d,C),p.children.unshift(s)}let l=new ar(p),f=(d,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=ei(D+d,e,r,!1);F.sourceSpan=new h(C,X(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(d=>{if(d.type==="comment"){let C=Qs(d,f);C&&d.parent.replaceChild(d,C)}No(d),Po(d),Io(d)}),l}function ur(t){return{parse:(e,r)=>ei(e,t,r),hasPragma:os,astFormat:"html",locStart:se,locEnd:ie}}var ti={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},$o=ur(ti),Oo=ur({name:"angular"}),Mo=ur({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),qo=ur({name:"lwc",canSelfClose:!1});var Ho={html:As};return oi(Vo);}); \ No newline at end of file +...`,r)),s===-1)return;let a=s+1+Ct,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-Ct),raw:u}}function wo(t){let e=yo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var Ys=wo;var nr={attrs:!0,children:!0,cases:!0,expression:!0},js=new Set(["parent"]),sr=class t{constructor(e={}){for(let r of new Set([...js,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in nr&&(r=r.map(n=>this.createChild(n))),!js.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in nr){let s=this[n];if(s){let i=bo(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in nr||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in nr){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function bo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var To=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function ko(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function Bo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var ir=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var Qs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Lo(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!Fe(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,se(!1,t.parameters,-1).sourceSpan.end)}}}function Fo(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function No(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Js(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=Gr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?I.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Js(t,ei,r);let g,y=()=>g??(g=Gr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),M=x=>y().rootNodes.find(({startSourceSpan:V})=>V&&V.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,V]of l.entries()){let{endSourceSpan:jr,startSourceSpan:ti}=V;if(jr===null)f=y().errors,l[x]=M(V);else if(Po(V,r)){let Kr=y().errors.find(Qr=>Qr.span.start.offset>ti.start.offset&&Qr.span.start.offset0&&Xs(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),M=g!==null&&y.startsWith(`${g}:`),x=M?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=M},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||pe(c))&&(c.name=A(c.name,g=>Qs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>ir.has(c.name)&&(ir.get("*").has(y)||ir.get(c.name).has(y))))},R=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=$e(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||pe(c)?c.tagDefinition=g:c.tagDefinition=$e("")}};return jt(new class extends ht{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),R(c)}},l),l}function Po(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Be(e,{language:r})==="html"}function Xs(t){let{msg:e,span:{start:r,end:n}}=t;throw Gs(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function Zs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?Ys(t):{frontMatter:null,content:t},a=new Ee(t,r.filepath),o=new ie(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Js(i,e,r)};if(s){let d=new ie(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new h(d,C),p.children.unshift(s)}let l=new sr(p),f=(d,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=Zs(D+d,e,r,!1);F.sourceSpan=new h(C,se(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(d=>{if(d.type==="comment"){let C=Ks(d,f);C&&d.parent.replaceChild(d,C)}Lo(d),Fo(d),No(d)}),l}function ar(t){return{parse:(e,r)=>Zs(e,t,r),hasPragma:as,astFormat:"html",locStart:X,locEnd:J}}var ei={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Io=ar(ei),Ro=ar({name:"angular"}),Oo=ar({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),$o=ar({name:"lwc",canSelfClose:!1});var Mo={html:Es};return ai(qo);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/html.mjs b/node_modules/prettier/plugins/html.mjs index bbb65ed1..5d819726 100644 --- a/node_modules/prettier/plugins/html.mjs +++ b/node_modules/prettier/plugins/html.mjs @@ -1,22 +1,22 @@ -var ni=Object.defineProperty;var Xr=t=>{throw TypeError(t)};var Jr=(t,e)=>{for(var r in e)ni(t,r,{get:e[r],enumerable:!0})};var Zr=(t,e,r)=>e.has(t)||Xr("Cannot "+r);var Q=(t,e,r)=>(Zr(t,e,"read from private field"),r?r.call(t):e.get(t)),en=(t,e,r)=>e.has(t)?Xr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),tn=(t,e,r,n)=>(Zr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Yr={};Jr(Yr,{languages:()=>Ds,options:()=>ys,parsers:()=>Gr,printers:()=>$o});var si=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=si;var ke="string",Be="array",Le="cursor",ce="indent",pe="align",Fe="trim",te="group",he="fill",me="if-break",fe="indent-if-break",Ne="line-suffix",Pe="line-suffix-boundary",Y="line",Ie="label",de="break-parent",St=new Set([Le,ce,pe,Fe,te,he,me,fe,Ne,Pe,Y,Ie,de]);function ii(t){if(typeof t=="string")return ke;if(Array.isArray(t))return Be;if(!t)return;let{type:e}=t;if(St.has(e))return e}var Re=ii;var ai=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function oi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Re(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ai([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${n}.`}var lr=class extends Error{name="InvalidDocError";constructor(e){super(oi(e)),this.doc=e}},_t=lr;var rn=()=>{},re=rn,Et=rn;function k(t){return re(t),{type:ce,contents:t}}function nn(t,e){return re(e),{type:pe,contents:e,n:t}}function _(t,e={}){return re(t),Et(e.expandedStates,!0),{type:te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function sn(t){return nn(Number.NEGATIVE_INFINITY,t)}function an(t){return nn({type:"root"},t)}function At(t){return Et(t),{type:he,parts:t}}function ge(t,e="",r={}){return re(t),e!==""&&re(e),{type:me,breakContents:t,flatContents:e,groupId:r.groupId}}function on(t,e){return re(t),{type:fe,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:de};var ui={type:Y,hard:!0},li={type:Y,hard:!0,literal:!0},E={type:Y},v={type:Y,soft:!0},S=[ui,ne],un=[li,ne];function q(t,e){re(t),Et(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},X=ci;function Dt(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Re(i)){case Be:return e(i.map(n));case he:return e({...i,parts:i.parts.map(n)});case me:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case te:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case pe:case ce:case fe:case Ie:case Ne:return e({...i,contents:n(i.contents)});case ke:case Le:case Fe:case Pe:case Y:case de:return e(i);default:throw new _t(i)}}}function pi(t){switch(Re(t)){case he:if(t.parts.every(e=>e===""))return"";break;case te:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===te&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case pe:case ce:case fe:case Ne:if(!t.contents)return"";break;case me:if(!t.flatContents&&!t.breakContents)return"";break;case Be:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof X(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s)}return e.length===0?"":e.length===1?e[0]:e}case ke:case Le:case Fe:case Pe:case Y:case Ie:case de:break;default:throw new _t(t)}return t}function ln(t){return Dt(t,e=>pi(e))}function B(t,e=un){return Dt(t,r=>typeof r=="string"?q(e,r.split(` -`)):r)}var vt="'",cn='"';function hi(t,e){let r=e===!0||e===vt?vt:cn,n=r===vt?cn:vt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var pn=hi;function cr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var H,pr=class{constructor(e){en(this,H);tn(this,H,new Set(e))}getLeadingWhitespaceCount(e){let r=Q(this,H),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return Q(this,H).has(e.charAt(0))}hasTrailingWhitespace(e){return Q(this,H).has(X(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${cr([...Q(this,H)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=Q(this,H);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Q(this,H);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Q(this,H);return Array.prototype.every.call(e,n=>r.has(n))}};H=new WeakMap;var hn=pr;var mi=[" ",` -`,"\f","\r"," "],fi=new hn(mi),N=fi;var hr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},mn=hr;function di(t){return(t==null?void 0:t.type)==="front-matter"}var $e=di;var gi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ci=new Set(["if","else if","for","switch","case"]);function fn(t,e){var r;if(t.type==="text"||t.type==="comment"||$e(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)Ci.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}fn.ignoredProperties=gi;var dn=fn;async function Si(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var gn=Si;function Ce(t,e=!0){return[k([v,t]),e?v:""]}function j(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?_(i):Ce(i)}function _i(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},j)}var Cn=_i;var Ei=t=>String(t).split(/[/\\]/u).pop();function Sn(t,e){if(!e)return;let r=Ei(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function Ai(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Di(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Ai(r,e.language)??Sn(r,e.physicalFile)??Sn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Oe=Di;var _n="inline",En={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},An="normal",Dn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function vi(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var Se=vi;var yi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),mr=t=>yi(N.trimEnd(t)),vn=t=>{let e=t,r=N.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=N.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function yt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||_e(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Tt(t,e)&&!U(t)&&t.type!=="interpolation")}function Ee(t){return t.type==="attribute"||!t.parent||!t.prev?!1:wi(t.prev)}function wi(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function U(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||Se(t)&&(t.name==="script"||t.name==="style"))}function yn(t){return t.children&&!U(t)}function wn(t){return U(t)||t.type==="interpolation"||fr(t)}function fr(t){return Rn(t).startsWith("pre")}function bn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return $e(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:_e(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||_e(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Li(t.parent.cssDisplay))||t.prev&&!Pi(t.prev.cssDisplay))}}function Tn(t,e){return $e(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:_e(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||_e(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Fi(t.parent.cssDisplay))||t.next&&!Ni(t.next.cssDisplay))}function xn(t){return Ii(t.cssDisplay)&&!U(t)}function Qe(t){return $e(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>Ti(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Ln(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Fn(t.lastChild))}function dr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function wt(t){return Nn(t)||t.prev&&bi(t.prev)||Bn(t)}function bi(t){return Nn(t)||t.type==="element"&&t.fullName==="br"||Bn(t)}function Bn(t){return Ln(t)&&Fn(t)}function Ln(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Nn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function bt(t){return t.lastChild?bt(t.lastChild):t}function Ti(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Pn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function xi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Oe(e,{language:i})??Pn(s)}function ki(t,e){if(!Tt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Oe(e,{language:s})??Pn(n)}function Bi(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Oe(e,{language:r}):"css"}function gr(t,e){return xi(t,e)??Bi(t,e)??ki(t,e)}function Xe(t){return t==="block"||t==="list-item"||t.startsWith("table")}function Li(t){return!Xe(t)&&t!=="inline-block"}function Fi(t){return!Xe(t)&&t!=="inline-block"}function Ni(t){return!Xe(t)}function Pi(t){return!Xe(t)}function Ii(t){return!Xe(t)&&t!=="inline-block"}function _e(t){return Rn(t).startsWith("pre")}function Ri(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function In(t,e){var n;if(Ae(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(Ri(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||Se(t))&&En[t.name]||_n}}function Rn(t){return t.type==="element"&&(!t.namespace||Se(t))&&Dn[t.name]||An}function $i(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` -`)){if(r.length===0)continue;let n=N.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{throw TypeError(t)};var Jr=(t,e)=>{for(var r in e)ri(t,r,{get:e[r],enumerable:!0})};var Zr=(t,e,r)=>e.has(t)||Xr("Cannot "+r);var K=(t,e,r)=>(Zr(t,e,"read from private field"),r?r.call(t):e.get(t)),en=(t,e,r)=>e.has(t)?Xr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),tn=(t,e,r,n)=>(Zr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Yr={};Jr(Yr,{languages:()=>As,options:()=>vs,parsers:()=>Gr,printers:()=>Io});var ni=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=ni;var Ve="string",Ue="array",We="cursor",De="indent",ve="align",ze="trim",ye="group",we="fill",be="if-break",Te="indent-if-break",Ge="line-suffix",Ye="line-suffix-boundary",Q="line",je="label",xe="break-parent",St=new Set([We,De,ve,ze,ye,we,be,Te,Ge,Ye,Q,je,xe]);function si(t){if(typeof t=="string")return Ve;if(Array.isArray(t))return Ue;if(!t)return;let{type:e}=t;if(St.has(e))return e}var Ke=si;var ii=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function ai(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Ke(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ii([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${n}.`}var or=class extends Error{name="InvalidDocError";constructor(e){super(ai(e)),this.doc=e}},ur=or;var rn=()=>{},re=rn,_t=rn;function k(t){return re(t),{type:De,contents:t}}function nn(t,e){return re(e),{type:ve,contents:e,n:t}}function _(t,e={}){return re(t),_t(e.expandedStates,!0),{type:ye,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function sn(t){return nn(Number.NEGATIVE_INFINITY,t)}function an(t){return nn({type:"root"},t)}function Et(t){return _t(t),{type:we,parts:t}}function le(t,e="",r={}){return re(t),e!==""&&re(e),{type:be,breakContents:t,flatContents:e,groupId:r.groupId}}function on(t,e){return re(t),{type:Te,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:xe};var oi={type:Q,hard:!0},ui={type:Q,hard:!0,literal:!0},E={type:Q},v={type:Q,soft:!0},S=[oi,ne],un=[ui,ne];function q(t,e){re(t),_t(e);let r=[];for(let n=0;n{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},se=li;function lr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Ke(i)){case Ue:return e(i.map(n));case we:return e({...i,parts:i.parts.map(n)});case be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case ye:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case ve:case De:case Te:case je:case Ge:return e({...i,contents:n(i.contents)});case Ve:case We:case ze:case Ye:case Q:case xe:return e(i);default:throw new ur(i)}}}function B(t,e=un){return lr(t,r=>typeof r=="string"?q(e,r.split(` +`)):r)}var At="'",ln='"';function ci(t,e){let r=e===!0||e===At?At:ln,n=r===At?ln:At,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var cn=ci;function cr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var H,pr=class{constructor(e){en(this,H);tn(this,H,new Set(e))}getLeadingWhitespaceCount(e){let r=K(this,H),n=0;for(let s=0;s=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return K(this,H).has(e.charAt(0))}hasTrailingWhitespace(e){return K(this,H).has(se(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${cr([...K(this,H)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=K(this,H);return Array.prototype.every.call(e,n=>r.has(n))}};H=new WeakMap;var pn=pr;var pi=[" ",` +`,"\f","\r"," "],hi=new pn(pi),N=hi;var hr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},hn=hr;function mi(t){return(t==null?void 0:t.type)==="front-matter"}var ke=mi;var fi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),di=new Set(["if","else if","for","switch","case"]);function mn(t,e){var r;if(t.type==="text"||t.type==="comment"||ke(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)di.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}mn.ignoredProperties=fi;var fn=mn;async function gi(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var dn=gi;function ce(t,e=!0){return[k([v,t]),e?v:""]}function Y(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?_(i):ce(i)}function Ci(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Y)}var gn=Ci;var Si=t=>String(t).split(/[/\\]/u).pop();function Cn(t,e){if(!e)return;let r=Si(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function _i(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Ei(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=_i(r,e.language)??Cn(r,e.physicalFile)??Cn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Be=Ei;var Sn="inline",_n={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},En="normal",An={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ai(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var pe=Ai;var Di=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),mr=t=>Di(N.trimEnd(t)),Dn=t=>{let e=t,r=N.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=N.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function Dt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||he(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||wt(t,e)&&!U(t)&&t.type!=="interpolation")}function me(t){return t.type==="attribute"||!t.parent||!t.prev?!1:vi(t.prev)}function vi(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function O(t){return t.type==="text"||t.type==="comment"}function U(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||pe(t)&&(t.name==="script"||t.name==="style"))}function vn(t){return t.children&&!U(t)}function yn(t){return U(t)||t.type==="interpolation"||fr(t)}function fr(t){return In(t).startsWith("pre")}function wn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return ke(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||he(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!ki(t.parent.cssDisplay))||t.prev&&!Fi(t.prev.cssDisplay))}}function bn(t,e){return ke(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:he(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||he(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!Bi(t.parent.cssDisplay))||t.next&&!Li(t.next.cssDisplay))}function Tn(t){return Ni(t.cssDisplay)&&!U(t)}function Qe(t){return ke(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+10&&(["body","script","style"].includes(t.name)||t.children.some(e=>wi(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&Bn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||Ln(t.lastChild))}function dr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function vt(t){return Fn(t)||t.prev&&yi(t.prev)||kn(t)}function yi(t){return Fn(t)||t.type==="element"&&t.fullName==="br"||kn(t)}function kn(t){return Bn(t)&&Ln(t)}function Bn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Fn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function yt(t){return t.lastChild?yt(t.lastChild):t}function wi(t){var e;return(e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Nn(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function bi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return!i&&!s?"babel":Be(e,{language:i})??Nn(s)}function Ti(t,e){if(!wt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Be(e,{language:s})??Nn(n)}function xi(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?Be(e,{language:r}):"css"}function gr(t,e){return bi(t,e)??xi(t,e)??Ti(t,e)}function Xe(t){return t==="block"||t==="list-item"||t.startsWith("table")}function ki(t){return!Xe(t)&&t!=="inline-block"}function Bi(t){return!Xe(t)&&t!=="inline-block"}function Li(t){return!Xe(t)}function Fi(t){return!Xe(t)}function Ni(t){return!Xe(t)&&t!=="inline-block"}function he(t){return In(t).startsWith("pre")}function Pi(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function Pn(t,e){var n;if(fe(t,e))return"block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(Pi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.type==="element"&&(!t.namespace||r||pe(t))&&_n[t.name]||Sn}}function In(t){return t.type==="element"&&(!t.namespace||pe(t))&&An[t.name]||En}function Ii(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` +`)){if(r.length===0)continue;let n=N.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(e)).join(` -`)}function Sr(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return Sr(t.value)}var Oi=new Set(["template","style","script"]);function Je(t,e){return Ae(t,e)&&!Oi.has(t.fullName)}function Ae(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function Tt(t,e){return Ae(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function $n(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function On(t,e){let r=t.parent;if(!Ae(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function xt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Cr(mr(e)),S):q(E,N.split(e))}function kt(t,e){return Ae(t,e)&&t.name==="script"}var _r=/\{\{(.+?)\}\}/su;async function Mn(t,e){let r=[];for(let[n,s]of t.split(_r).entries())if(n%2===0)r.push(B(s));else try{r.push(_(["{{",k([E,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),E,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Er({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},j)}var Mi=Er({parser:"__ng_action"}),qi=Er({parser:"__ng_binding"}),Hi=Er({parser:"__ng_directive"});function Vi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Mi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return qi;if(n.startsWith("*"))return Hi;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>Ce(At(xt(r,s.trim())),!s.includes("@@"));if(_r.test(s))return i=>Mn(s,i)}var qn=Vi;function Ui(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var Hn=Ui;function Vn(t){return t===" "||t===` -`||t==="\f"||t==="\r"||t===" "}var Wi=/^[ \t\n\r\u000c]+/,zi=/^[, \t\n\r\u000c]+/,Gi=/^[^ \t\n\r\u000c]+/,Yi=/[,]+$/,Un=/^\d+$/,ji=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Ki(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(zi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Gi),n=[],r.slice(-1)===","?(r=r.replace(Yi,""),d()):f()}function f(){for(p(Wi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Vn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Vn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,R,F,c={},g,y,M,x,V;for(F=0;FJi(P(t.node))}var zn={width:"w",height:"h",density:"x"},Xi=Object.keys(zn);function Ji(t){let e=Wn(t),r=Xi.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=zn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return Ce(q([",",E],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],R=" ".repeat(A+D);d.push(ge(R," "),C+s)}return d})))}var Gn=Qi;function Yn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>Ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Ar=new WeakMap;function Zi(t,e){let{root:r}=t;return Ar.has(r)||Ar.set(r,r.children.some(n=>kt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Ar.get(r)}var Me=Zi;function jn(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},j)}function Kn(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Qn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,n=t.trim();return e.test(n)||r.test(n)}async function Xn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=ea(s),u=Me(r,n);return[_(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function ea(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function ta(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Xn;if(n==="generic"&&kt(r.parent,e))return jn;let s=P(r),i=Me(t,e);if($n(r)||On(r,e))return a=>Kn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ra(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>na(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Jn(s,a,{parseWithTs:i})}function ra(t,e,{parseWithTs:r}){return Qn(t)?Jn(t,e,{parseWithTs:r}):T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},j)}function na(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},j)}function Jn(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},j)}var Zn=ta;function sa(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Gn,Yn,Hn,Zn,qn]){let s=n(t,e);if(s)return ia(s)}}}function ia(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=Dt(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',_(i),'"']}}var es=sa;var ts=new Proxy(()=>{},{get:()=>ts}),Dr=ts;function aa(t){return Array.isArray(t)&&t.length>0}var qe=aa;function se(t){return t.sourceSpan.start.offset}function ie(t){return t.sourceSpan.end.offset}function Ze(t,e){return[t.isSelfClosing?"":oa(t,e),De(t,e)]}function oa(t,e){return t.lastChild&&we(t.lastChild)?"":[ua(t,e),Bt(t,e)]}function De(t,e){return(t.next?K(t.next):ye(t.parent))?"":[ve(t,e),W(t,e)]}function ua(t,e){return ye(t)?ve(t.lastChild,e):""}function W(t,e){return we(t)?Bt(t.parent,e):et(t)?Lt(t.next):""}function Bt(t,e){if(Dr(!t.isSelfClosing),rs(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function rs(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Ee(t)||yt(t.parent,e))}function K(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!$(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ye(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!$(bt(t.lastChild))&&!_e(t)}function we(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&$(bt(t))}function et(t){return t.next&&!$(t.next)&&$(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function la(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function tt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ca(t,e,r){var f;let{node:n}=t;if(!qe(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&la(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?B(e.originalText.slice(se(d),ie(d))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!Ae(n,e)?S:E,l=[k([o?" ":E,q(p,a)])];return n.firstChild&&tt(n.firstChild)||n.isSelfClosing&&ye(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?E:v),l}function pa(t){return t.firstChild&&tt(t.firstChild)?"":Ft(t)}function rt(t,e,r){let{node:n}=t;return[be(n,e),ca(t,e,r),n.isSelfClosing?"":pa(n)]}function be(t,e){return t.prev&&et(t.prev)?"":[z(t,e),Lt(t)]}function z(t,e){return tt(t)?Ft(t.parent):K(t)?ve(t.prev,e):""}function Lt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${t.rawName}`;default:return`<${t.rawName}`}}function Ft(t){switch(Dr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function ha(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&tt(t.firstChild)&&(r-=Ft(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&we(t.lastChild)?n+=Bt(t,e).length:ye(t)&&(n-=ve(t.lastChild,e).length),e.originalText.slice(r,n)}var Nt=ha;var ma=new Set(["if","else if","for","switch","case"]);function fa(t,e){let{node:r}=t;switch(r.type){case"element":if(U(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Tt(r,e)){let n=gr(r,e);return n?async(s,i)=>{let a=Nt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(mr(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),_(rt(t,e,i)),o?"":S,u,o?"":S,Ze(r,e),W(r,e)]}:void 0}break;case"text":if(U(r.parent)){let n=gr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?Cr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),W(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Me(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([E,await n(r.value,s)]),r.parent.next&&K(r.parent.next)?" ":E]};break;case"attribute":return es(t,e);case"front-matter":return n=>gn(r,n);case"angularControlFlowBlockParameters":return ma.has(t.parent.name)?Cn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ns=fa;var nt=null;function st(t){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t??Object.create(null),new st}var da=10;for(let t=0;t<=da;t++)st();function vr(t){return st(t)}function ga(t,e="type"){vr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var ss=ga;var Ca={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},is=Ca;var Sa=ss(is),as=Sa;function os(t){return/^\s*/u.test(t)}function us(t){return` +`)}function Sr(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return Sr(t.value)}var Ri=new Set(["template","style","script"]);function Je(t,e){return fe(t,e)&&!Ri.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function wt(t,e){return fe(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Rn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function On(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function bt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Cr(mr(e)),S):q(E,N.split(e))}function Tt(t,e){return fe(t,e)&&t.name==="script"}var _r=/\{\{(.+?)\}\}/su;async function $n(t,e){let r=[];for(let[n,s]of t.split(_r).entries())if(n%2===0)r.push(B(s));else try{r.push(_(["{{",k([E,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),E,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Er({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},Y)}var Oi=Er({parser:"__ng_action"}),$i=Er({parser:"__ng_binding"}),Mi=Er({parser:"__ng_directive"});function qi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Oi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return $i;if(n.startsWith("*"))return Mi;let s=P(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>ce(Et(bt(r,s.trim())),!s.includes("@@"));if(_r.test(s))return i=>$n(s,i)}var Mn=qi;function Hi(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var qn=Hi;function Hn(t){return t===" "||t===` +`||t==="\f"||t==="\r"||t===" "}var Vi=/^[ \t\n\r\u000c]+/,Ui=/^[, \t\n\r\u000c]+/,Wi=/^[^ \t\n\r\u000c]+/,zi=/[,]+$/,Vn=/^\d+$/,Gi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Yi(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Ui),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Wi),n=[],r.slice(-1)===","?(r=r.replace(zi,""),d()):f()}function f(){for(p(Vi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Hn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Hn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,R,F,c={},g,y,M,x,V;for(F=0;FQi(P(t.node))}var Wn={width:"w",height:"h",density:"x"},Ki=Object.keys(Wn);function Qi(t){let e=Un(t),r=Ki.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Wn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return ce(q([",",E],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],R=" ".repeat(A+D);d.push(le(R," "),C+s)}return d})))}var zn=ji;function Gn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Ar=new WeakMap;function Xi(t,e){let{root:r}=t;return Ar.has(r)||Ar.set(r,r.children.some(n=>Tt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Ar.get(r)}var Le=Xi;function Yn(t,e,r){let{node:n}=r,s=P(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Y)}function jn(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function Kn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=Ji(s),u=Le(r,n);return[_(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function Ji(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function Zi(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Kn;if(n==="generic"&&Tt(r.parent,e))return Yn;let s=P(r),i=Le(t,e);if(Rn(r)||On(r,e))return a=>jn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ea(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>ta(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Qn(s,a,{parseWithTs:i})}async function ea(t,e,{parseWithTs:r}){var n;try{return await Qn(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Y)}function ta(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Y)}function Qn(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},Y)}var Xn=Zi;function ra(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[zn,Gn,qn,Xn,Mn]){let s=n(t,e);if(s)return na(s)}}}function na(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=lr(i,a=>typeof a=="string"?w(!1,a,'"',"""):a),[n.node.rawName,'="',_(i),'"']}}var Jn=ra;var Zn=new Proxy(()=>{},{get:()=>Zn}),Dr=Zn;function sa(t){return Array.isArray(t)&&t.length>0}var Fe=sa;function X(t){return t.sourceSpan.start.offset}function J(t){return t.sourceSpan.end.offset}function Ze(t,e){return[t.isSelfClosing?"":ia(t,e),de(t,e)]}function ia(t,e){return t.lastChild&&Se(t.lastChild)?"":[aa(t,e),xt(t,e)]}function de(t,e){return(t.next?j(t.next):Ce(t.parent))?"":[ge(t,e),W(t,e)]}function aa(t,e){return Ce(t)?ge(t.lastChild,e):""}function W(t,e){return Se(t)?xt(t.parent,e):et(t)?kt(t.next,e):""}function xt(t,e){if(Dr(!t.isSelfClosing),ts(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function ts(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(me(t)||Dt(t.parent,e))}function j(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!O(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function Ce(t){var e;return((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!O(yt(t.lastChild))&&!he(t)}function Se(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&O(yt(t))}function et(t){return t.next&&!O(t.next)&&O(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function oa(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function tt(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function ua(t,e,r){var f;let{node:n}=t;if(!Fe(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&oa(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?B(e.originalText.slice(X(d),J(d))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!fe(n,e)?S:E,l=[k([o?" ":E,q(p,a)])];return n.firstChild&&tt(n.firstChild)||n.isSelfClosing&&Ce(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?E:v),l}function la(t){return t.firstChild&&tt(t.firstChild)?"":Bt(t)}function rt(t,e,r){let{node:n}=t;return[_e(n,e),ua(t,e,r),n.isSelfClosing?"":la(n)]}function _e(t,e){return t.prev&&et(t.prev)?"":[z(t,e),kt(t,e)]}function z(t,e){return tt(t)?Bt(t.parent):j(t)?ge(t.prev,e):""}var es="<${t.rawName}`;default:return`<${t.rawName}`}}function Bt(t){switch(Dr(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function ca(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&tt(t.firstChild)&&(r-=Bt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&Se(t.lastChild)?n+=xt(t,e).length:Ce(t)&&(n-=ge(t.lastChild,e).length),e.originalText.slice(r,n)}var Lt=ca;var pa=new Set(["if","else if","for","switch","case"]);function ha(t,e){let{node:r}=t;switch(r.type){case"element":if(U(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&wt(r,e)){let n=gr(r,e);return n?async(s,i)=>{let a=Lt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(mr(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),_(rt(t,e,i)),o?"":S,u,o?"":S,Ze(r,e),W(r,e)]}:void 0}break;case"text":if(U(r.parent)){let n=gr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?Cr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[ne,z(r,e),await s(i,a),W(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Le(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([E,await n(r.value,s)]),r.parent.next&&j(r.parent.next)?" ":E]};break;case"attribute":return Jn(t,e);case"front-matter":return n=>dn(r,n);case"angularControlFlowBlockParameters":return pa.has(t.parent.name)?gn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var rs=ha;var nt=null;function st(t){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t??Object.create(null),new st}var ma=10;for(let t=0;t<=ma;t++)st();function vr(t){return st(t)}function fa(t,e="type"){vr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var ns=fa;var da={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},ss=da;var ga=ns(ss),is=ga;function as(t){return/^\s*/u.test(t)}function os(t){return` -`+t}var ls=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function cs(t){let e=ie(t);return t.type==="element"&&!t.endSourceSpan&&qe(t.children)?Math.max(e,cs(X(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(Ee(n)){let s=cs(n);return[z(n,e),B(N.trimEnd(e.originalText.slice(se(n)+(n.prev&&et(n.prev)?Lt(n).length:0),s-(n.next&&K(n.next)?ve(n,e).length:0)))),W(n,e)]}return r()}function Pt(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?wt(e)?S:E:"":wt(e)?S:v:et(t)&&(Ee(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&K(e)?"":!e.isLeadingSpaceSensitive||wt(e)||K(e)&&t.lastChild&&we(t.lastChild)&&t.lastChild.lastChild&&we(t.lastChild.lastChild)?S:e.hasLeadingSpaces?E:v}function He(t,e,r){let{node:n}=t;if(dr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return[o?[o,Qe(a.prev)?S:""]:"",it(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=Pt(o.prev,o);if(A)return Qe(o.prev)?[S,S,it(i,e,r)]:[A,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):$(o.prev)?p.push(d):p.push(ge("",v,{groupId:s[a-1]}))),C&&(Qe(o)?$(o.next)&&f.push(S,S):C===S?$(o.next)&&f.push(S):l.push(C)),[...u,_([...p,_([it(i,e,r),...l],{id:s[a]})]),...f]},"children")}function ps(t,e,r){let{node:n}=t,s=[];_a(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",_(r("parameters")),")"),s.push(" {");let i=hs(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,He(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),_(s,{shouldBreak:!0})}function hs(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=ls.get(t.name))!=null&&r.has(t.next.name)))}function _a(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!Ee(e)&&!hs(e)}function ms(t,e,r){return[k([v,q([";",E],t.map(r,"children"))]),v]}function fs(t,e,r){let{node:n}=t;return[be(n,e),_([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([E,q(E,t.map(r,"cases"))])]:"",v]),De(n,e)]}function ds(t,e,r){let{node:n}=t;return[n.value," {",_([k([v,t.map(({node:s})=>s.type==="text"&&!N.trim(s.value)?"":r(),"expression")]),v]),"}"]}function gs(t,e,r){let{node:n}=t;if(yt(n,e))return[z(n,e),_(rt(t,e,r)),B(Nt(n,e)),...Ze(n,e),W(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>_([_(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?on(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?ge(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?E:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(v):v,p=()=>(n.next?K(n.next):ye(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?ge(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?E:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?E:""):a([kn(n)?ne:"",o([u(),He(t,e,r)]),p()])}function at(t){return t>=9&&t<=32||t==160}function It(t){return 48<=t&&t<=57}function ot(t){return t>=97&&t<=122||t>=65&&t<=90}function Cs(t){return t>=97&&t<=102||t>=65&&t<=70||It(t)}function Rt(t){return t===10||t===13}function yr(t){return 48<=t&&t<=55}function $t(t){return t===39||t===34||t===96}var Ea=/-+([a-z0-9])/g;function _s(t){return t.replace(Ea,(...e)=>e[1].toUpperCase())}var ae=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` +`+t}var us=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ls(t){let e=J(t);return t.type==="element"&&!t.endSourceSpan&&Fe(t.children)?Math.max(e,ls(se(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(me(n)){let s=ls(n);return[z(n,e),B(N.trimEnd(e.originalText.slice(X(n)+(n.prev&&et(n.prev)?kt(n).length:0),s-(n.next&&j(n.next)?ge(n,e).length:0)))),W(n,e)]}return r()}function Ft(t,e){return O(t)&&O(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?vt(e)?S:E:"":vt(e)?S:v:et(t)&&(me(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&j(e)?"":!e.isLeadingSpaceSensitive||vt(e)||j(e)&&t.lastChild&&Se(t.lastChild)&&t.lastChild.lastChild&&Se(t.lastChild.lastChild)?S:e.hasLeadingSpaces?E:v}function Ne(t,e,r){let{node:n}=t;if(dr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Ft(a.prev,a):"";return[o?[o,Qe(a.prev)?S:""]:"",it(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if(O(o)){if(o.prev&&O(o.prev)){let A=Ft(o.prev,o);if(A)return Qe(o.prev)?[S,S,it(i,e,r)]:[A,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Ft(o.prev,o):"",C=o.next?Ft(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):O(o.prev)?p.push(d):p.push(le("",v,{groupId:s[a-1]}))),C&&(Qe(o)?O(o.next)&&f.push(S,S):C===S?O(o.next)&&f.push(S):l.push(C)),[...u,_([...p,_([it(i,e,r),...l],{id:s[a]})]),...f]},"children")}function cs(t,e,r){let{node:n}=t,s=[];Ca(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",_(r("parameters")),")"),s.push(" {");let i=ps(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Ne(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),_(s,{shouldBreak:!0})}function ps(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=us.get(t.name))!=null&&r.has(t.next.name)))}function Ca(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!me(e)&&!ps(e)}function hs(t,e,r){return[k([v,q([";",E],t.map(r,"children"))]),v]}function ms(t,e,r){let{node:n}=t;return[_e(n,e),_([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([E,q(E,t.map(r,"cases"))])]:"",v]),de(n,e)]}function fs(t,e,r){let{node:n}=t;return[n.value," {",_([k([v,t.map(({node:s})=>s.type==="text"&&!N.trim(s.value)?"":r(),"expression")]),v]),"}"]}function ds(t,e,r){let{node:n}=t;if(Dt(n,e))return[z(n,e),_(rt(t,e,r)),B(Lt(n,e)),...Ze(n,e),W(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>_([_(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?on(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?le(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?E:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(v):v,p=()=>(n.next?j(n.next):Ce(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?le(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?E:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?E:""):a([xn(n)?ne:"",o([u(),Ne(t,e,r)]),p()])}function at(t){return t>=9&&t<=32||t==160}function Nt(t){return 48<=t&&t<=57}function ot(t){return t>=97&&t<=122||t>=65&&t<=90}function gs(t){return t>=97&&t<=102||t>=65&&t<=70||Nt(t)}function Pt(t){return t===10||t===13}function yr(t){return 48<=t&&t<=55}function It(t){return t===39||t===34||t===96}var Sa=/-+([a-z0-9])/g;function Ss(t){return t.replace(Sa,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a0&&(s--,a++,!(n[s]==` `&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var Aa=[va,ya,ba,xa,ka,Fa,Ba,La,Na,Ta];function Da(t,e){for(let r of Aa)r(t,e);return t}function va(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function ya(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function Ta(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function xa(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(yn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function ka(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&N.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=wn(e),n=fr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function La(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Fa(t,e){t.walk(r=>{r.cssDisplay=In(r,e)})}function Na(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=xn(r);return}for(let s of n)s.isLeadingSpaceSensitive=bn(s,e),s.isTrailingSpaceSensitive=Tn(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var vs="HTML",Ra={bracketSameLine:wr.bracketSameLine,htmlWhitespaceSensitivity:{category:vs,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:wr.singleAttributePerLine,vueIndentScriptAndStyle:{category:vs,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ys=Ra;var Gr={};Jr(Gr,{angular:()=>Po,html:()=>No,lwc:()=>Ro,vue:()=>Io});var _p=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ws;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ws||(ws={}));var bs;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(bs||(bs={}));var Ts;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Ts||(Ts={}));var br={name:"custom-elements"},Tr={name:"no-errors-schema"};var J;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(J||(J={}));var xs;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(xs||(xs={}));var I;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(I||(I={}));function ut(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function xr(t){return ut(t)[1]==="ng-container"}function kr(t){return ut(t)[1]==="ng-content"}function We(t){return t===null?null:ut(t)[0]}function ze(t,e){return t?`:${t}:${e}`:e}var qt;function Br(){return qt||(qt={},Mt(J.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mt(J.STYLE,["*|style"]),Mt(J.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Mt(J.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),qt}function Mt(t,e){for(let r of e)qt[r.toLowerCase()]=t}var Ht=class{};var $a="boolean",Oa="number",Ma="string",qa="object",Ha=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],ks=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Va=Array.from(ks).reduce((t,[e,r])=>(t.set(e,r),t),new Map),Vt=class extends Ht{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ha.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),$a);break;case"#":r.set(l.substring(1),Oa);break;case"%":r.set(l.substring(1),qa);break;default:r.set(l,Ma)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Tr.name))return!0;if(e.indexOf("-")>-1){if(xr(e)||kr(e))return!1;if(n.some(i=>i.name===br.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Tr.name)||e.indexOf("-")>-1&&(xr(e)||kr(e)||r.some(n=>n.name===br.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Br()[e+"|"+r];return s||(s=Br()["*|"+r],s||J.NONE)}getMappedPropName(e){return ks.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Va.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return _s(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ua(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Ua(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=I.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Bs,lt;function Ge(t){return lt||(Bs=new m({canSelfClose:!0}),lt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:I.RAW_TEXT}),script:new m({contentType:I.RAW_TEXT}),title:new m({contentType:{default:I.ESCAPABLE_RAW_TEXT,svg:I.PARSABLE_DATA}}),textarea:new m({contentType:I.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Vt().allKnownElementNames().forEach(e=>{!lt[e]&&We(e)===null&&(lt[e]=new m({canSelfClose:!1}))})),lt[t]??Bs}var oe=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ut=class extends oe{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Wt=class extends oe{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},zt=class extends oe{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Gt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},Yt=class extends oe{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},G=class extends oe{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},jt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Kt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},Z=class extends oe{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ct=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},pt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function Qt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ht=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(Qt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Ye={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},za="\uE500";Ye.ngsp=za;var Ga=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ls(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Ga.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Lr=class t{static fromArray(e){return e?(Ls("interpolation",e),new t(e[0],e[1])):Fr}constructor(e,r){this.start=e,this.end=r}},Fr=new Lr("{{","}}");var ft=class extends Ue{constructor(e,r,n){super(n,e),this.tokenType=r}},$r=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Ws(t,e,r,n={}){let s=new Or(new Te(t,e),r,n);return s.tokenize(),new $r(_o(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var po=/\r\n?/g;function je(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function Rs(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function ho(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var tr;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(tr||(tr={}));var dt=class{constructor(e){this.error=e}},Or=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Fr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Mr(e,s):new rr(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(po,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>at(n)?!e:Ms(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(qs);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&$t(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(qs)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),at(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Rt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ot(n)||n==36||n===95||r&&It(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;$t(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Co(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ft("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new ft("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new ft(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new dt(n)}handleError(e){if(e instanceof gt&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof dt)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return So(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(je(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!mo(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn($s,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!ot(this._cursor.peek()))throw this._createError(je(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof dt){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===I.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===I.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(je(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>$s(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&$t(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),Ms(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=ze(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=ze(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!at(t)||t===0}function $s(t){return at(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function mo(t){return(t<97||12257)}function fo(t){return t===59||t===0||!Cs(t)}function go(t){return t===59||t===0||!ot(t)}function Co(t){return t!==125}function So(t,e){return Os(t)===Os(e)}function Os(t){return t>=97&&t<=122?t-97+65:t}function Ms(t){return ot(t)||It(t)||t===95}function qs(t){return t!==59&&b(t)}function _o(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new gt('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Rt(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ae(e.file,e.state.offset,e.state.line,e.state.column)}},Mr=class t extends rr{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(yr(e())){let r="",n=0,s=this.clone();for(;yr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else Rt(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new gt("Invalid hexadecimal escape sequence",e);return s}},gt=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Ue{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Vr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},nr=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(R,...F)=>D(R.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),f=Ws(e,r,i?(D,R,F,c)=>{let g=p(D,R,F,c);return g!==void 0?g:u(D)}:u,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Ur(f.tokens,o,d,C,s);return A.build(),new Vr(A.rootNodes,f.errors.concat(A.errors))}},Ur=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Z&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Gt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(zs(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(zs(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` +`&&++o==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},Ee=class{constructor(e,r){this.content=e,this.url=r}},h=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Rt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Rt||(Rt={}));var Ie=class{constructor(e,r,n=Rt.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Rt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var _a=[Aa,Da,ya,ba,Ta,Ba,xa,ka,La,wa];function Ea(t,e){for(let r of _a)r(t,e);return t}function Aa(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` +`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Da(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let s=0;se.type==="cdata",e=>``)}function wa(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!N.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n`+s.firstChild.value+``+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function ba(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(vn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Ta(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&N.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=yn(e),n=fr(e);if(!r)for(let s=0;s{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function ka(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Ba(t,e){t.walk(r=>{r.cssDisplay=Pn(r,e)})}function La(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Tn(r);return}for(let s of n)s.isLeadingSpaceSensitive=wn(s,e),s.isTrailingSpaceSensitive=bn(s,e);for(let s=0;s of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ds="HTML",Pa={bracketSameLine:wr.bracketSameLine,htmlWhitespaceSensitivity:{category:Ds,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:wr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Ds,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},vs=Pa;var Gr={};Jr(Gr,{angular:()=>Fo,html:()=>Lo,lwc:()=>Po,vue:()=>No});var Cp=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var ys;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(ys||(ys={}));var ws;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ws||(ws={}));var bs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(bs||(bs={}));var br={name:"custom-elements"},Tr={name:"no-errors-schema"};var Z;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(Z||(Z={}));var Ts;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Ts||(Ts={}));var I;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(I||(I={}));function ut(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function xr(t){return ut(t)[1]==="ng-container"}function kr(t){return ut(t)[1]==="ng-content"}function Re(t){return t===null?null:ut(t)[0]}function Oe(t,e){return t?`:${t}:${e}`:e}var $t;function Br(){return $t||($t={},Ot(Z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ot(Z.STYLE,["*|style"]),Ot(Z.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Ot(Z.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),$t}function Ot(t,e){for(let r of e)$t[r.toLowerCase()]=t}var Mt=class{};var Ia="boolean",Ra="number",Oa="string",$a="object",Ma=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],xs=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),qa=Array.from(xs).reduce((t,[e,r])=>(t.set(e,r),t),new Map),qt=class extends Mt{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ma.forEach(e=>{let r=new Map,n=new Set,[s,i]=e.split("|"),a=i.split(","),[o,u]=s.split("^");o.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),r),this._eventSchema.set(l.toLowerCase(),n)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[l,f]of p)r.set(l,f);for(let l of this._eventSchema.get(u.toLowerCase()))n.add(l)}a.forEach(l=>{if(l.length>0)switch(l[0]){case"*":n.add(l.substring(1));break;case"!":r.set(l.substring(1),Ia);break;case"#":r.set(l.substring(1),Ra);break;case"%":r.set(l.substring(1),$a);break;default:r.set(l,Oa)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Tr.name))return!0;if(e.indexOf("-")>-1){if(xr(e)||kr(e))return!1;if(n.some(i=>i.name===br.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Tr.name)||e.indexOf("-")>-1&&(xr(e)||kr(e)||r.some(n=>n.name===br.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let s=Br()[e+"|"+r];return s||(s=Br()["*|"+r],s||Z.NONE)}getMappedPropName(e){return xs.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>qa.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Ss(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ha(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Ha(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=I.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},ks,lt;function $e(t){return lt||(ks=new m({canSelfClose:!0}),lt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:I.RAW_TEXT}),script:new m({contentType:I.RAW_TEXT}),title:new m({contentType:{default:I.ESCAPABLE_RAW_TEXT,svg:I.PARSABLE_DATA}}),textarea:new m({contentType:I.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new qt().allKnownElementNames().forEach(e=>{!lt[e]&&Re(e)===null&&(lt[e]=new m({canSelfClose:!1}))})),lt[t]??ks}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ht=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Vt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Ut=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Wt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},zt=class extends ae{constructor(e,r,n,s,i,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=s,this.valueSpan=i,this.valueTokens=a,this.type="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},G=class extends ae{constructor(e,r,n,s,i,a=null,o=null,u){super(s,u),this.name=e,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type="element"}visit(e,r){return e.visitElement(this,r)}},Gt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="comment"}visit(e,r){return e.visitComment(this,r)}},Yt=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.type="docType"}visit(e,r){return e.visitDocType(this,r)}},ee=class extends ae{constructor(e,r,n,s,i,a,o=null,u){super(s,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,r){return e.visitBlock(this,r)}},ct=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},pt=class{constructor(e,r,n,s,i){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=s,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function jt(t,e,r=null){let n=[],s=t.visit?i=>t.visit(i,r)||i.visit(t,r):i=>i.visit(t,r);return e.forEach(i=>{let a=s(i);a&&n.push(a)}),n}var ht=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitChildren(e,r){let n=[],s=this;function i(a){a&&n.push(jt(s,a,e))}return r(i),Array.prototype.concat.apply([],n)}};var Me={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Ua="\uE500";Me.ngsp=Ua;var Wa=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Bs(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];Wa.forEach(s=>{if(s.test(r)||s.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var Lr=class t{static fromArray(e){return e?(Bs("interpolation",e),new t(e[0],e[1])):Fr}constructor(e,r){this.start=e,this.end=r}},Fr=new Lr("{{","}}");var ft=class extends Ie{constructor(e,r,n){super(n,e),this.tokenType=r}},Or=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function Us(t,e,r,n={}){let s=new $r(new Ee(t,e),r,n);return s.tokenize(),new Or(Co(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var lo=/\r\n?/g;function qe(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function Is(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function co(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Zt;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Zt||(Zt={}));var dt=class{constructor(e){this.error=e}},$r=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Fr,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let s=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Mr(e,s):new er(e,s),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(lo,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>at(n)?!e:$s(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ms);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&It(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ms)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),at(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Pt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ot(n)||n===36||n===95||r&&Nt(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;It(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(fo(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ft("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new ft("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new ft(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new dt(n)}handleError(e){if(e instanceof gt&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof dt)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return go(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(qe(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!po(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(Rs,r===""?0:1);let s=this._cursor.getChars(n);return[r,s]}_consumeTagOpen(e){let r,n,s,i=[];try{if(!ot(this._cursor.peek()))throw this._createError(qe(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),n=s.parts[0],r=s.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[o,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let p=this._consumeAttributeValue();i.push({prefix:o,name:u,value:p})}else i.push({prefix:o,name:u});this._attemptCharCodeUntilFn(b)}this._consumeTagOpenEnd()}catch(o){if(o instanceof dt){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),a===I.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):a===I.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(qe(e),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=()=>Rs(this._cursor.peek());e=this._consumeWithInterpolation(16,17,r,r)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let s=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,s){this._beginToken(e);let i=[];for(;!n();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(r,o,s),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let s=[];this._beginToken(e,r),s.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,s.push(this._getProcessedChars(i,u)),this._endToken(s);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,u)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(o=!0);let p=this._cursor.peek();this._cursor.advance(),p===92?this._cursor.advance():p===a?a=null:!o&&a===null&&It(p)&&(a=p)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),$s(e.peek()))return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}_handleFullNameStackForTagOpen(e,r){let n=Oe(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=Oe(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function b(t){return!at(t)||t===0}function Rs(t){return at(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function po(t){return(t<97||12257)}function ho(t){return t===59||t===0||!gs(t)}function mo(t){return t===59||t===0||!ot(t)}function fo(t){return t!==125}function go(t,e){return Os(t)===Os(e)}function Os(t){return t>=97&&t<=122?t-97+65:t}function $s(t){return ot(t)||Nt(t)||t===95}function Ms(t){return t!==59&&b(t)}function Co(t){let e=[],r;for(let n=0;n0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):s;return new h(s,i,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new gt('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):Pt(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new ie(e.file,e.state.offset,e.state.line,e.state.column)}},Mr=class t extends er{constructor(e,r){e instanceof t?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(yr(e())){let r="",n=0,s=this.clone();for(;yr(e())&&n<3;)s=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=s.internalState}else Pt(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),s=parseInt(n,16);if(isNaN(s))throw e.state=e.internalState,new gt("Invalid hexadecimal escape sequence",e);return s}},gt=class{constructor(e,r){this.msg=e,this.cursor=r}};var L=class t extends Ie{static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Vr=class{constructor(e,r){this.rootNodes=e,this.errors=r}},tr=class{constructor(e){this.getTagDefinition=e}parse(e,r,n,s=!1,i){let a=D=>(R,...F)=>D(R.toLowerCase(),...F),o=s?this.getTagDefinition:a(this.getTagDefinition),u=D=>o(D).getContentType(),p=s?i:a(i),f=Us(e,r,i?(D,R,F,c)=>{let g=p(D,R,F,c);return g!==void 0?g:u(D)}:u,n),d=n&&n.canSelfClose||!1,C=n&&n.allowHtmComponentClosingTags||!1,A=new Ur(f.tokens,o,d,C,s);return A.build(),new Vr(A.rootNodes,f.errors.concat(A.errors))}},Ur=class t{constructor(e,r,n,s,i){this.tokens=e,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=s,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof ee&&this.errors.push(L.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new h(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),o=new h(r.sourceSpan.start,s.sourceSpan.end,r.sourceSpan.fullStart);return new Wt(e.parts[0],i.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Ws(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ws(n,20))n.pop();else return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(L.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==` `){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` -`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Gs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ut(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof G&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||We(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new G(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof G&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,G,u):e.type===4&&(this._popContainer(i,G,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,G,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(We(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof Z||a instanceof G&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=ze(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Gs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new Yt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Z(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,Z,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Z(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,Z,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new pt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new pt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof G)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ut(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=We(n.name))}return ze(e,r)}};function zs(t,e){return t.length>0&&t[t.length-1]===e}function Gs(t,e){return Ye[e]!==void 0?Ye[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var sr=class extends nr{constructor(){super(Ge)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Wr=null,Eo=()=>(Wr||(Wr=new sr),Wr);function zr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return Eo().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function Ao(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Ys=Ao;var Ct=3;function Do(t){let e=t.slice(0,Ct);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` +`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,zs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ht(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof G&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Re(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new G(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof G&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,G,u):e.type===4&&(this._popContainer(i,G,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,G,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Re(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof ee||a instanceof G&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=Oe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,zs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new zt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,ee,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,ee,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,a=new h(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=e.sourceSpan.start.moveBy(o),p=new h(u,e.sourceSpan.end),l=new pt(r,n.parts[0],a,p,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let s=e.sourceSpan.toString().lastIndexOf(r),i=e.sourceSpan.start.moveBy(s),a=new h(i,e.sourceSpan.end),o=new h(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new pt(r,"",e.sourceSpan,a,o);this._addToParent(u)}this.errors.push(L.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof G)return this._containerStack[e];return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r,n){if(e===""&&(e=this.getTagDefinition(r).implicitNamespacePrefix||"",e===""&&n!=null)){let s=ut(n.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Re(n.name))}return Oe(e,r)}};function Ws(t,e){return t.length>0&&t[t.length-1]===e}function zs(t,e){return Me[e]!==void 0?Me[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var rr=class extends tr{constructor(){super($e)}parse(e,r,n,s=!1,i){return super.parse(e,r,n,s,i)}};var Wr=null,So=()=>(Wr||(Wr=new rr),Wr);function zr(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:s=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1}=e;return So().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o},s,i)}function _o(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Gs=_o;var Ct=3;function Eo(t){let e=t.slice(0,Ct);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(` `,Ct);if(r===-1)return;let n=t.slice(Ct,r).trim(),s=t.indexOf(` ${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(` -...`,r)),s===-1)return;let a=s+1+Ct,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-Ct),raw:u}}function vo(t){let e=Do(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var js=vo;var ir={attrs:!0,children:!0,cases:!0,expression:!0},Ks=new Set(["parent"]),ar=class t{constructor(e={}){for(let r of new Set([...Ks,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in ir&&(r=r.map(n=>this.createChild(n))),!Ks.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in ir){let s=this[n];if(s){let i=yo(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ir||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in ir){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function yo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var wo=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function To(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function xo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var or=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var Xs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function ko(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!qe(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,X(!1,t.parameters,-1).sourceSpan.end)}}}function Bo(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function Lo(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Zs(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=zr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?I.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Zs(t,ti,r);let g,y=()=>g??(g=zr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),M=x=>y().rootNodes.find(({startSourceSpan:V})=>V&&V.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,V]of l.entries()){let{endSourceSpan:jr,startSourceSpan:ri}=V;if(jr===null)f=y().errors,l[x]=M(V);else if(Fo(V,r)){let Kr=y().errors.find(Qr=>Qr.span.start.offset>ri.start.offset&&Qr.span.start.offset0&&Js(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),M=g!==null&&y.startsWith(`${g}:`),x=M?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=M},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||Se(c))&&(c.name=A(c.name,g=>Xs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>or.has(c.name)&&(or.get("*").has(y)||or.get(c.name).has(y))))},R=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=Ge(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||Se(c)?c.tagDefinition=g:c.tagDefinition=Ge("")}};return Qt(new class extends ht{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),R(c)}},l),l}function Fo(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Oe(e,{language:r})==="html"}function Js(t){let{msg:e,span:{start:r,end:n}}=t;throw Ys(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function ei(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?js(t):{frontMatter:null,content:t},a=new Te(t,r.filepath),o=new ae(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Zs(i,e,r)};if(s){let d=new ae(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new h(d,C),p.children.unshift(s)}let l=new ar(p),f=(d,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=ei(D+d,e,r,!1);F.sourceSpan=new h(C,X(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(d=>{if(d.type==="comment"){let C=Qs(d,f);C&&d.parent.replaceChild(d,C)}ko(d),Bo(d),Lo(d)}),l}function ur(t){return{parse:(e,r)=>ei(e,t,r),hasPragma:os,astFormat:"html",locStart:se,locEnd:ie}}var ti={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},No=ur(ti),Po=ur({name:"angular"}),Io=ur({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),Ro=ur({name:"lwc",canSelfClose:!1});var $o={html:As};var Ih=Yr;export{Ih as default,Ds as languages,ys as options,Gr as parsers,$o as printers}; +...`,r)),s===-1)return;let a=s+1+Ct,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-Ct),raw:u}}function Ao(t){let e=Eo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var Ys=Ao;var nr={attrs:!0,children:!0,cases:!0,expression:!0},js=new Set(["parent"]),sr=class t{constructor(e={}){for(let r of new Set([...js,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in nr&&(r=r.map(n=>this.createChild(n))),!js.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in nr){let s=this[n];if(s){let i=Do(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in nr||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in nr){let n=this[r];if(n)for(let s=0;s[e.fullName,e.value]))}};function Do(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var vo=[{regex:/^(\[if([^\]]*)\]>)(.*?){try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function wo(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function bo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var ir=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]);var Qs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function To(t){if(t.type==="block"){if(t.name=w(!1,t.name.toLowerCase(),/\s+/gu," ").trim(),t.type="angularControlFlowBlock",!Fe(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.type="angularControlFlowBlockParameter";t.parameters={type:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new h(t.parameters[0].sourceSpan.start,se(!1,t.parameters,-1).sourceSpan.end)}}}function xo(t){t.type==="letDeclaration"&&(t.type="angularLetDeclaration",t.id=t.name,t.init={type:"angularLetDeclarationInitializer",sourceSpan:new h(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function ko(t){(t.type==="plural"||t.type==="select")&&(t.clause=t.type,t.type="angularIcuExpression"),t.type==="expansionCase"&&(t.type="angularIcuCase")}function Js(t,e,r){let{name:n,canSelfClose:s=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:o=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:p}=e,{rootNodes:l,errors:f}=zr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u,getTagContentType:p?(...c)=>p(...c)?I.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(l.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Js(t,ei,r);let g,y=()=>g??(g=zr(t,{canSelfClose:s,allowHtmComponentClosingTags:o,isTagNameCaseSensitive:u})),M=x=>y().rootNodes.find(({startSourceSpan:V})=>V&&V.start.offset===x.startSourceSpan.start.offset)??x;for(let[x,V]of l.entries()){let{endSourceSpan:jr,startSourceSpan:ti}=V;if(jr===null)f=y().errors,l[x]=M(V);else if(Bo(V,r)){let Kr=y().errors.find(Qr=>Qr.span.start.offset>ti.start.offset&&Qr.span.start.offset0&&Xs(f[0]);let d=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,y=c.nameSpan.toString(),M=g!==null&&y.startsWith(`${g}:`),x=M?y.slice(g.length+1):y;c.name=x,c.namespace=g,c.hasExplicitNamespace=M},C=c=>{switch(c.type){case"element":d(c);for(let g of c.attrs)d(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case"comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case"text":c.value=c.sourceSpan.toString();break}},A=(c,g)=>{let y=c.toLowerCase();return g(y)?y:c},D=c=>{if(c.type==="element"&&(i&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||pe(c))&&(c.name=A(c.name,g=>Qs.has(g))),a))for(let g of c.attrs)g.namespace||(g.name=A(g.name,y=>ir.has(c.name)&&(ir.get("*").has(y)||ir.get(c.name).has(y))))},R=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new h(c.sourceSpan.start,c.endSourceSpan.end))},F=c=>{if(c.type==="element"){let g=$e(u?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||pe(c)?c.tagDefinition=g:c.tagDefinition=$e("")}};return jt(new class extends ht{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,y=>{y(c.expression)})}visit(c){C(c),F(c),D(c),R(c)}},l),l}function Bo(t,e){var n;if(t.type!=="element"||t.name!=="template")return!1;let r=(n=t.attrs.find(s=>s.name==="lang"))==null?void 0:n.value;return!r||Be(e,{language:r})==="html"}function Xs(t){let{msg:e,span:{start:r,end:n}}=t;throw Gs(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function Zs(t,e,r={},n=!0){let{frontMatter:s,content:i}=n?Ys(t):{frontMatter:null,content:t},a=new Ee(t,r.filepath),o=new ie(a,0,0,0),u=o.moveBy(t.length),p={type:"root",sourceSpan:new h(o,u),children:Js(i,e,r)};if(s){let d=new ie(a,0,0,0),C=d.moveBy(s.raw.length);s.sourceSpan=new h(d,C),p.children.unshift(s)}let l=new sr(p),f=(d,C)=>{let{offset:A}=C,D=w(!1,t.slice(0,A),/[^\n\r]/gu," "),F=Zs(D+d,e,r,!1);F.sourceSpan=new h(C,se(!1,F.children,-1).sourceSpan.end);let c=F.children[0];return c.length===A?F.children.shift():(c.sourceSpan=new h(c.sourceSpan.start.moveBy(A),c.sourceSpan.end),c.value=c.value.slice(A)),F};return l.walk(d=>{if(d.type==="comment"){let C=Ks(d,f);C&&d.parent.replaceChild(d,C)}To(d),xo(d),ko(d)}),l}function ar(t){return{parse:(e,r)=>Zs(e,t,r),hasPragma:as,astFormat:"html",locStart:X,locEnd:J}}var ei={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Lo=ar(ei),Fo=ar({name:"angular"}),No=ar({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:s,value:i})=>s==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),Po=ar({name:"lwc",canSelfClose:!1});var Io={html:Es};var Nh=Yr;export{Nh as default,As as languages,vs as options,Gr as parsers,Io as printers}; diff --git a/node_modules/prettier/plugins/markdown.js b/node_modules/prettier/plugins/markdown.js index 3445c7d9..efd00df7 100644 --- a/node_modules/prettier/plugins/markdown.js +++ b/node_modules/prettier/plugins/markdown.js @@ -1,62 +1,63 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var el=Object.create;var xr=Object.defineProperty;var rl=Object.getOwnPropertyDescriptor;var tl=Object.getOwnPropertyNames;var nl=Object.getPrototypeOf,il=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Pn=(e,r)=>{for(var t in r)xr(e,t,{get:r[t],enumerable:!0})},Ln=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of tl(r))!il.call(e,a)&&a!==t&&xr(e,a,{get:()=>r[a],enumerable:!(n=rl(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?el(nl(e)):{},Ln(r||!e||!e.__esModule?xr(t,"default",{value:e,enumerable:!0}):t,e)),ul=e=>Ln(xr({},"__esModule",{value:!0}),e);var wr=C((Pm,In)=>{"use strict";In.exports=sl;function sl(e){return String(e).replace(/\s+/g," ")}});var Pi=C((ov,Oi)=>{"use strict";Oi.exports=mf;var lr=9,Ur=10,Ye=32,Df=33,pf=58,Ge=91,df=92,xt=93,fr=94,zr=96,Mr=4,hf=1024;function mf(e){var r=this.Parser,t=this.Compiler;Ff(r)&&vf(r,e),gf(t)&&Ef(t)}function Ff(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function gf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function vf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,D=i.length,h;++fMr&&(Q=void 0,me=q);else{if(Q0&&(z=Fe[k-1],z.contentStart===z.contentEnd);)k--;for(ke=b(g.slice(0,z.contentEnd));++q{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Un=(e,r)=>{for(var t in r)kr(e,t,{get:r[t],enumerable:!0})},Mn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of fl(r))!pl.call(e,a)&&a!==t&&kr(e,a,{get:()=>r[a],enumerable:!(n=ll(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?cl(Dl(e)):{},Mn(r||!e||!e.__esModule?kr(t,"default",{value:e,enumerable:!0}):t,e)),hl=e=>Mn(kr({},"__esModule",{value:!0}),e);var zn=(e,r,t)=>r.has(e)||Rn("Cannot "+t);var ce=(e,r,t)=>(zn(e,r,"read from private field"),t?t.call(e):r.get(e)),Yn=(e,r,t)=>r.has(e)?Rn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),Gn=(e,r,t,n)=>(zn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var Br=C((Gm,Vn)=>{"use strict";Vn.exports=Fl;function Fl(e){return String(e).replace(/\s+/g," ")}});var Gi=C((yv,Yi)=>{"use strict";Yi.exports=xf;var Dr=9,zr=10,je=32,Cf=33,bf=58,$e=91,yf=92,Tt=93,pr=94,Yr=96,Gr=4,Af=1024;function xf(e){var r=this.Parser,t=this.Compiler;wf(r)&&Bf(r,e),kf(t)&&Tf(t)}function wf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function kf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Bf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,D=i.length,d;++fGr&&(Z=void 0,ve=T);else{if(Z0&&(M=Ee[k-1],M.contentStart===M.contentEnd);)k--;for(Be=b(g.slice(0,M.contentEnd));++T{kt.isRemarkParser=bf;kt.isRemarkCompiler=yf;function bf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function yf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Mi=C((cv,zi)=>{var Li=Bt();zi.exports=kf;var Ii=9,Ni=32,Yr=36,Af=48,xf=57,Ri=92,wf=["math","math-inline"],Ui="math-display";function kf(e){let r=this.Parser,t=this.Compiler;Li.isRemarkParser(r)&&Bf(r,e),Li.isRemarkCompiler(t)&&qf(t,e)}function Bf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,F,y,E;if(o.charCodeAt(D)===Ri&&(f=!0,D++),o.charCodeAt(D)===Yr){if(D++,f)return s?!0:i(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===Yr&&(c=!0,D++),d=o.charCodeAt(D),!(d===Ni||d===Ii)){for(m=D;Dxf)&&(!c||d===Yr)){F=D-1,D++,c&&D++,y=D;break}}else p===Ri&&(D++,d=o.charCodeAt(D+1));D++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:wf.concat(c&&r.inlineMathDouble?[Ui]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function qf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Ui)&&(a="$$"),a+n.value+a}}});var $i=C((lv,ji)=>{var Yi=Bt();ji.exports=Of;var Gi=10,Dr=32,qt=36,Vi=` -`,Tf="$",_f=2,Sf=["math","math-display"];function Of(){let e=this.Parser,r=this.Compiler;Yi.isRemarkParser(e)&&Pf(e),Yi.isRemarkCompiler(r)&&Lf(r)}function Pf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let D,h,p,d,m,F,y,E,B,b,g;for(;fb&&s.charCodeAt(d-1)===Dr;)d--;for(;d>b&&s.charCodeAt(d-1)===qt;)B++,d--;for(F<=B&&s.indexOf(Tf,b)===d&&(E=!0,g=d);b<=g&&b-fb&&s.charCodeAt(g-1)===Dr;)g--;if((!E||b!==g)&&h.push(s.slice(b,g)),E)break;f=p+1,p=s.indexOf(Vi,f+1),p=p===-1?c:p}return h=h.join(` -`),o(s.slice(0,p))({type:"math",value:h,data:{hName:"div",hProperties:{className:Sf.concat()},hChildren:[{type:"text",value:h}]}})}}}}function Lf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ +`)}}function qt(e,r,t){e.splice(e.indexOf(r),0,t)}function qf(e,r,t,n){for(var a=e.length,u=-1;++u{_t.isRemarkParser=_f;_t.isRemarkCompiler=Sf;function _f(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Sf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Ji=C((xv,Ki)=>{var Vi=St();Ki.exports=If;var ji=9,$i=32,Vr=36,Of=48,Lf=57,Wi=92,Pf=["math","math-inline"],Hi="math-display";function If(e){let r=this.Parser,t=this.Compiler;Vi.isRemarkParser(r)&&Nf(r,e),Vi.isRemarkCompiler(t)&&Rf(t,e)}function Nf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,D=0,d,p,h,m,F,y,E;if(o.charCodeAt(D)===Wi&&(f=!0,D++),o.charCodeAt(D)===Vr){if(D++,f)return s?!0:i(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===Vr&&(c=!0,D++),h=o.charCodeAt(D),!(h===$i||h===ji)){for(m=D;DLf)&&(!c||h===Vr)){F=D-1,D++,c&&D++,y=D;break}}else p===Wi&&(D++,h=o.charCodeAt(D+1));D++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:Pf.concat(c&&r.inlineMathDouble?[Hi]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function Rf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Hi)&&(a="$$"),a+n.value+a}}});var ru=C((wv,eu)=>{var Xi=St();eu.exports=Yf;var Qi=10,hr=32,Ot=36,Zi=` +`,Uf="$",Mf=2,zf=["math","math-display"];function Yf(){let e=this.Parser,r=this.Compiler;Xi.isRemarkParser(e)&&Gf(e),Xi.isRemarkCompiler(r)&&Vf(r)}function Gf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let D,d,p,h,m,F,y,E,B,b,g;for(;fb&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===Ot;)B++,h--;for(F<=B&&s.indexOf(Uf,b)===h&&(E=!0,g=h);b<=g&&b-fb&&s.charCodeAt(g-1)===hr;)g--;if((!E||b!==g)&&d.push(s.slice(b,g)),E)break;f=p+1,p=s.indexOf(Zi,f+1),p=p===-1?c:p}return d=d.join(` +`),o(s.slice(0,p))({type:"math",value:d,data:{hName:"div",hProperties:{className:zf.concat()},hChildren:[{type:"text",value:d}]}})}}}}function Vf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ `+n.value+` -$$`}}});var Wi=C((fv,Hi)=>{var If=Mi(),Nf=$i();Hi.exports=Rf;function Rf(e){var r=e||{};Nf.call(this,r),If.call(this,r)}});var Ie=C((Dv,Ki)=>{Ki.exports=zf;var Uf=Object.prototype.hasOwnProperty;function zf(){for(var e={},r=0;r{typeof Object.create=="function"?Tt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Tt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var Zi=C((dv,Qi)=>{"use strict";var Mf=Ie(),Xi=Ji();Qi.exports=Yf;function Yf(e){var r,t,n;Xi(u,e),Xi(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Mf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var ru=C((hv,eu)=>{"use strict";eu.exports=Gf;function Gf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var nu=C((mv,tu)=>{"use strict";tu.exports=Vf;function Vf(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&ii)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";iu.exports=jf;var _t="\\";function jf(e,r){return t;function t(n){for(var a=0,u=n.indexOf(_t),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(_t),u=n.indexOf(_t,a+1);return o.push(n.slice(a)),o.join("")}}});var au=C((gv,$f)=>{$f.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var ou=C((vv,Hf)=>{Hf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((Ev,su)=>{"use strict";su.exports=Wf;function Wf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var lu=C((Cv,cu)=>{"use strict";cu.exports=Kf;function Kf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var Ve=C((bv,fu)=>{"use strict";fu.exports=Jf;function Jf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var pu=C((yv,Du)=>{"use strict";var Xf=Ve(),Qf=Ne();Du.exports=Zf;function Zf(e){return Xf(e)||Qf(e)}});var du=C((Av,eD)=>{eD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Fu=C((xv,mu)=>{"use strict";var hu=du();mu.exports=tD;var rD={}.hasOwnProperty;function tD(e){return rD.call(hu,e)?hu[e]:!1}});var pr=C((wv,Tu)=>{"use strict";var gu=au(),vu=ou(),nD=Ne(),iD=lu(),yu=pu(),uD=Fu();Tu.exports=gD;var aD={}.hasOwnProperty,je=String.fromCharCode,oD=Function.prototype,Eu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},sD=9,Cu=10,cD=12,lD=32,bu=38,fD=59,DD=60,pD=61,dD=35,hD=88,mD=120,FD=65533,$e="named",Ot="hexadecimal",Pt="decimal",Lt={};Lt[Ot]=16;Lt[Pt]=10;var Gr={};Gr[$e]=yu;Gr[Pt]=nD;Gr[Ot]=iD;var Au=1,xu=2,wu=3,ku=4,Bu=5,St=6,qu=7,Ae={};Ae[Au]="Named character references must be terminated by a semicolon";Ae[xu]="Numeric character references must be terminated by a semicolon";Ae[wu]="Named character references cannot be empty";Ae[ku]="Numeric character references cannot be empty";Ae[Bu]="Named character references must be known";Ae[St]="Numeric character references cannot be disallowed";Ae[qu]="Numeric character references cannot be outside the permissible Unicode range";function gD(e,r){var t={},n,a;r||(r={});for(a in Eu)n=r[a],t[a]=n??Eu[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),vD(e,t)}function vD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,u=r.reference,i=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,F="",y=[],E,B,b,g,A,x,v,w,k,q,T,R,O,S,_,P,ke,j,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),P=Z(),w=i?Q:oD,h--,D++;++h65535&&(x-=65536,q+=je(x>>>10|55296),x=56320|x&1023),x=q+je(x))):S!==$e&&w(ku,j)),x?(me(),P=Z(),h=I-1,d+=I-O+1,y.push(x),ke=Z(),ke.offset++,u&&u.call(s,x,{start:P,end:ke},e.slice(O-1,I)),P=ke):(g=e.slice(O-1,I),F+=g,d+=g.length,h=I-1)}else A===10&&(m++,p++,d=0),A===A?(F+=je(A),d++):me();return y.join("");function Z(){return{line:m,column:d,offset:h+(c.offset||0)}}function Q(Fe,z){var ft=Z();ft.column+=z,ft.offset+=z,i.call(l,Ae[Fe],ft,Fe)}function me(){F&&(y.push(F),a&&a.call(o,F,{start:P,end:Z()}),F="")}}function ED(e){return e>=55296&&e<=57343||e>1114111}function CD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Ou=C((kv,Su)=>{"use strict";var bD=Ie(),_u=pr();Su.exports=yD;function yD(e){return t.raw=n,t;function r(u){for(var i=e.offset,o=u.line,s=[];++o&&o in i;)s.push((i[o]||0)+1);return{start:u,indent:s}}function t(u,i,o){_u(u,{position:r(i),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,i,o){return _u(u,bD(o,{position:r(i),warning:a}))}function a(u,i,o){o!==3&&e.file.message(u,i)}}});var Iu=C((Bv,Lu)=>{"use strict";Lu.exports=AD;function AD(e){return r;function r(t,n){var a=this,u=a.offset,i=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,D,h,p,d,m;if(!t)return i;for(x.now=E,x.file=a.file,F("");t;){for(f=-1,D=o.length,d=!1;++f{var jf=Ji(),$f=ru();tu.exports=Wf;function Wf(e){var r=e||{};$f.call(this,r),jf.call(this,r)}});var Ie=C((Bv,iu)=>{iu.exports=Kf;var Hf=Object.prototype.hasOwnProperty;function Kf(){for(var e={},r=0;r{typeof Object.create=="function"?Lt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Lt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var su=C((qv,ou)=>{"use strict";var Jf=Ie(),au=uu();ou.exports=Xf;function Xf(e){var r,t,n;au(u,e),au(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Jf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var lu=C((_v,cu)=>{"use strict";cu.exports=Qf;function Qf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var Du=C((Sv,fu)=>{"use strict";fu.exports=Zf;function Zf(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&ii)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";pu.exports=eD;var Pt="\\";function eD(e,r){return t;function t(n){for(var a=0,u=n.indexOf(Pt),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Pt),u=n.indexOf(Pt,a+1);return o.push(n.slice(a)),o.join("")}}});var du=C((Lv,rD)=>{rD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var mu=C((Pv,tD)=>{tD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((Iv,Fu)=>{"use strict";Fu.exports=nD;function nD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var vu=C((Nv,gu)=>{"use strict";gu.exports=iD;function iD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var We=C((Rv,Eu)=>{"use strict";Eu.exports=uD;function uD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var bu=C((Uv,Cu)=>{"use strict";var aD=We(),oD=Ne();Cu.exports=sD;function sD(e){return aD(e)||oD(e)}});var yu=C((Mv,cD)=>{cD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var wu=C((zv,xu)=>{"use strict";var Au=yu();xu.exports=fD;var lD={}.hasOwnProperty;function fD(e){return lD.call(Au,e)?Au[e]:!1}});var dr=C((Yv,Uu)=>{"use strict";var ku=du(),Bu=mu(),DD=Ne(),pD=vu(),Su=bu(),hD=wu();Uu.exports=kD;var dD={}.hasOwnProperty,He=String.fromCharCode,mD=Function.prototype,Tu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},FD=9,qu=10,gD=12,vD=32,_u=38,ED=59,CD=60,bD=61,yD=35,AD=88,xD=120,wD=65533,Ke="named",Nt="hexadecimal",Rt="decimal",Ut={};Ut[Nt]=16;Ut[Rt]=10;var jr={};jr[Ke]=Su;jr[Rt]=DD;jr[Nt]=pD;var Ou=1,Lu=2,Pu=3,Iu=4,Nu=5,It=6,Ru=7,xe={};xe[Ou]="Named character references must be terminated by a semicolon";xe[Lu]="Numeric character references must be terminated by a semicolon";xe[Pu]="Named character references cannot be empty";xe[Iu]="Numeric character references cannot be empty";xe[Nu]="Named character references must be known";xe[It]="Numeric character references cannot be disallowed";xe[Ru]="Numeric character references cannot be outside the permissible Unicode range";function kD(e,r){var t={},n,a;r||(r={});for(a in Tu)n=r[a],t[a]=n??Tu[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),BD(e,t)}function BD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,u=r.reference,i=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,d=0,p=-1,h=c.column||1,m=c.line||1,F="",y=[],E,B,b,g,A,x,v,w,k,T,q,R,O,S,_,L,Be,j,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),L=ee(),w=i?Z:mD,d--,D++;++d65535&&(x-=65536,T+=He(x>>>10|55296),x=56320|x&1023),x=T+He(x))):S!==Ke&&w(Iu,j)),x?(ve(),L=ee(),d=I-1,h+=I-O+1,y.push(x),Be=ee(),Be.offset++,u&&u.call(s,x,{start:L,end:Be},e.slice(O-1,I)),L=Be):(g=e.slice(O-1,I),F+=g,h+=g.length,d=I-1)}else A===10&&(m++,p++,h=0),A===A?(F+=He(A),h++):ve();return y.join("");function ee(){return{line:m,column:h,offset:d+(c.offset||0)}}function Z(Ee,M){var pt=ee();pt.column+=M,pt.offset+=M,i.call(l,xe[Ee],pt,Ee)}function ve(){F&&(y.push(F),a&&a.call(o,F,{start:L,end:ee()}),F="")}}function TD(e){return e>=55296&&e<=57343||e>1114111}function qD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Yu=C((Gv,zu)=>{"use strict";var _D=Ie(),Mu=dr();zu.exports=SD;function SD(e){return t.raw=n,t;function r(u){for(var i=e.offset,o=u.line,s=[];++o&&o in i;)s.push((i[o]||0)+1);return{start:u,indent:s}}function t(u,i,o){Mu(u,{position:r(i),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,i,o){return Mu(u,_D(o,{position:r(i),warning:a}))}function a(u,i,o){o!==3&&e.file.message(u,i)}}});var ju=C((Vv,Vu)=>{"use strict";Vu.exports=OD;function OD(e){return r;function r(t,n){var a=this,u=a.offset,i=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,D,d,p,h,m;if(!t)return i;for(x.now=E,x.file=a.file,F("");t;){for(f=-1,D=o.length,h=!1;++f{"use strict";Ru.exports=Vr;var It=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Nt=It.concat(["~","|"]),Nu=Nt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Vr.default=It;Vr.gfm=Nt;Vr.commonmark=Nu;function Vr(e){var r=e||{};return r.commonmark?Nu:r.gfm?Nt:It}});var Mu=C((Tv,zu)=>{"use strict";zu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Rt=C((_v,Yu)=>{"use strict";Yu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu()}});var Vu=C((Sv,Gu)=>{"use strict";var kD=Ie(),BD=Uu(),qD=Rt();Gu.exports=TD;function TD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=kD(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in qD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=BD(e),r}});var Hu=C((Ov,$u)=>{"use strict";$u.exports=ju;function ju(e){if(e==null)return PD;if(typeof e=="string")return OD(e);if(typeof e=="object")return"length"in e?SD(e):_D(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function _D(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function SD(e){for(var r=[],t=-1;++t{Wu.exports=LD;function LD(e){return e}});var Zu=C((Lv,Qu)=>{"use strict";Qu.exports=jr;var ID=Hu(),ND=Ku(),Ju=!0,Xu="skip",Ut=!1;jr.CONTINUE=Ju;jr.SKIP=Xu;jr.EXIT=Ut;function jr(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=ID(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+ND(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||u(o,s,l[l.length-1]||null))&&(p=RD(t(o,l)),p[0]===Ut))return p;if(o.children&&p[0]!==Xu)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ea.exports=Hr;var $r=Zu(),UD=$r.CONTINUE,zD=$r.SKIP,MD=$r.EXIT;Hr.CONTINUE=UD;Hr.SKIP=zD;Hr.EXIT=MD;function Hr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),$r(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var na=C((Nv,ta)=>{"use strict";var YD=ra();ta.exports=GD;function GD(e,r){return YD(e,r?VD:jD),e}function VD(e){delete e.position}function jD(e){e.position=void 0}});var aa=C((Rv,ua)=>{"use strict";var ia=Ie(),$D=na();ua.exports=KD;var HD=` -`,WD=/\r\n|\r/g;function KD(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ia(t),a;return r=r.replace(WD,HD),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ia(t)}},e.options.position||$D(a,!0),a}});var sa=C((Uv,oa)=>{"use strict";var JD=/^[ \t]*(\n|$)/;oa.exports=XD;function XD(e,r,t){for(var n,a="",u=0,i=r.length;u{"use strict";var pe="",zt;ca.exports=QD;function QD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(zt!==e||typeof zt>"u")zt=e,pe="";else if(pe.length>=t)return pe.substr(0,t);for(;t>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,t),pe}});var Mt=C((Mv,la)=>{"use strict";la.exports=ZD;function ZD(e){return String(e).replace(/\n+$/,"")}});var pa=C((Yv,Da)=>{"use strict";var ep=Wr(),rp=Mt();Da.exports=ip;var Yt=` -`,fa=" ",Gt=" ",tp=4,np=ep(Gt,tp);function ip(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n{"use strict";ha.exports=sp;var Kr=` -`,dr=" ",He=" ",up="~",da="`",ap=3,op=4;function sp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,D,h,p,d,m,F,y,E,B;if(a){for(;i=op)){for(p="";i{We=Fa.exports=cp;function cp(e){return e.trim?e.trim():We.right(We.left(e))}We.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};We.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Jr=C((Vv,ga)=>{"use strict";ga.exports=lp;function lp(e,r,t,n){for(var a=e.length,u=-1,i,o;++u{"use strict";var fp=Re(),Dp=Jr();Ca.exports=pp;var Vt=` -`,va=" ",jt=" ",Ea=">";function pp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,F,y,E,B,b,g;p{"use strict";Aa.exports=hp;var ya=` -`,hr=" ",mr=" ",Fr="#",dp=6;function hp(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,D;++idp)&&!(!D||!a&&r.charAt(i+1)===Fr)){for(u=r.length+1,f="";++i{"use strict";ka.exports=bp;var mp=" ",Fp=` -`,wa=" ",gp="*",vp="-",Ep="_",Cp=3;function bp(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n=Cp&&(!i||i===Fp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var $t=C((Wv,Ta)=>{"use strict";Ta.exports=wp;var qa=" ",yp=" ",Ap=1,xp=4;function wp(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===qa||n===yp;){for(u=n===qa?xp:Ap,t+=u,u>1&&(t=Math.floor(t/u)*u);i{"use strict";var kp=Re(),Bp=Wr(),qp=$t();Sa.exports=Sp;var _a=` -`,Tp=" ",_p="!";function Sp(e,r){var t=e.split(_a),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Bp(Tp,r)+_p);n--;)if(o=qp(t[n]),u[n]=o.stops,kp(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var Op=Re(),Pp=Wr(),Pa=Ne(),Lp=$t(),Ip=Oa(),Np=Jr();Ra.exports=jp;var Ht="*",Rp="_",La="+",Wt="-",Ia=".",de=" ",ie=` -`,Xr=" ",Na=")",Up="x",xe=4,zp=/\n\n(?!\s*$)/,Mp=/^\[([ X\tx])][ \t]/,Yp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Gp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Vp=/^( {1,4}|\t)?/gm;function jp(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v,w,k,q,T,R=!1,O,S,_,P;s=k.indent&&(P=!0),p=r.charAt(s),E=null,!P){if(p===Ht||p===La||p===Wt)E=p,s++,f++;else{for(D="";s=k.indent||f>xe),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===Ht||E===Rp||E===Wt)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Op(B).length,P&&k)k.value=k.value.concat(w,b),v=v.concat(w,b),w=[];else if(y)w.length!==0&&(R=!0,k.value.push(""),k.trail=w.concat()),k={value:[b],indent:f,trail:[]},x.push(k),v=v.concat(w,b),w=[];else if(A){if(g&&!a)break;w.push(b)}else{if(g||Np(o,i,n,[e,b,!0]))break;k.value=k.value.concat(w,b),v=v.concat(w,b),w=[]}s=m+1}for(O=e(v.join(ie)).reset({type:"list",ordered:h,start:c,spread:R,children:[]}),q=n.enterList(),T=n.enterBlock(),s=-1,l=x.length;++s{"use strict";Ya.exports=ed;var Kt=` -`,Kp=" ",za=" ",Ma="=",Jp="-",Xp=3,Qp=1,Zp=2;function ed(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,D;++i=Xp){i--;break}o+=c}for(s="",l="";++i{"use strict";var rd="[a-zA-Z_:][a-zA-Z0-9:._-]*",td="[^\"'=<>`\\u0000-\\u0020]+",nd="'[^']*'",id='"[^"]*"',ud="(?:"+td+"|"+nd+"|"+id+")",ad="(?:\\s+"+rd+"(?:\\s*=\\s*"+ud+")?)",Va="<[A-Za-z][A-Za-z0-9\\-]*"+ad+"*\\s*\\/?>",ja="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",od="|",sd="<[?].*?[?]>",cd="]*>",ld="";Jt.openCloseTag=new RegExp("^(?:"+Va+"|"+ja+")");Jt.tag=new RegExp("^(?:"+Va+"|"+ja+"|"+od+"|"+sd+"|"+cd+"|"+ld+")")});var Ka=C((Zv,Wa)=>{"use strict";var fd=Xt().openCloseTag;Wa.exports=wd;var Dd=" ",pd=" ",$a=` -`,dd="<",hd=/^<(script|pre|style)(?=(\s|>|$))/i,md=/<\/(script|pre|style)>/i,Fd=/^/,vd=/^<\?/,Ed=/\?>/,Cd=/^/,yd=/^/,Ha=/^$/,xd=new RegExp(fd.source+"\\s*$");function wd(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),i=r.length,o=0,s,l,c,f,D,h,p,d=[[hd,md,!0],[Fd,gd,!0],[vd,Ed,!0],[Cd,bd,!0],[yd,Ad,!0],[u,Ha,!0],[xd,Ha,!1]];o{"use strict";Ja.exports=qd;var kd=String.fromCharCode,Bd=/\s/;function qd(e){return Bd.test(typeof e=="number"?kd(e):e.charAt(0))}});var Qt=C((rE,Xa)=>{"use strict";var Td=wr();Xa.exports=_d;function _d(e){return Td(e).toLowerCase()}});var io=C((tE,no)=>{"use strict";var Sd=ue(),Od=Qt();no.exports=Nd;var Qa='"',Za="'",Pd="\\",Ke=` -`,Qr=" ",Zr=" ",en="[",gr="]",Ld="(",Id=")",eo=":",ro="<",to=">";function Nd(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,D,h,p,d;u{"use strict";var Ud=ue();ao.exports=Kd;var zd=" ",et=` -`,Md=" ",Yd="-",Gd=":",Vd="\\",rn="|",jd=1,$d=2,uo="left",Hd="center",Wd="right";function Kd(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];aA){if(E<$d)return;break}c.push(r.slice(a,A)),E++,a=A+1}for(o=c.join(et),u=c.splice(1,1)[0]||[],a=0,l=u.length,E--,i=!1,p=[];a1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(d,F)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===Vd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}y||e(et+u)}return g}}}});var lo=C((iE,co)=>{"use strict";var Jd=Re(),Xd=Mt(),Qd=Jr();co.exports=rh;var Zd=" ",vr=` -`,eh=" ",so=4;function rh(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(vr),l=r.length,c,f,D,h,p;s=so&&D!==vr){s=r.indexOf(vr,s+1);continue}}if(f=r.slice(s+1),Qd(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(vr,s+1),s!==-1&&Jd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=Xd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var Do=C((uE,fo)=>{"use strict";fo.exports=th;function th(e,r){return e.indexOf("\\",r)}});var Fo=C((aE,mo)=>{"use strict";var nh=Do();mo.exports=ho;ho.locator=nh;var ih=` -`,po="\\";function ho(e,r,t){var n=this,a,u;if(r.charAt(0)===po&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===ih?u={type:"break"}:u={type:"text",value:a},e(po+a)(u))}});var tn=C((oE,go)=>{"use strict";go.exports=uh;function uh(e,r){return e.indexOf("<",r)}});var yo=C((sE,bo)=>{"use strict";var vo=ue(),ah=pr(),oh=tn();bo.exports=on;on.locator=oh;on.notInLink=!0;var Eo="<",nn=">",Co="@",un="/",an="mailto:",rt=an.length;function on(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===Eo){for(i++,a=Eo;i{"use strict";Ao.exports=sh;function sh(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Bo=C((lE,ko)=>{"use strict";ko.exports=ch;var wo=["www.","http://","https://"];function ch(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=wo.length,n=-1;++n{"use strict";var qo=xo(),lh=pr(),fh=Ne(),sn=Ve(),Dh=ue(),ph=Bo();So.exports=ln;ln.locator=ph;ln.notInLink=!0;var dh=33,hh=38,mh=41,Fh=42,gh=44,vh=45,cn=46,Eh=58,Ch=59,bh=63,yh=60,To=95,Ah=126,xh="(",_o=")";function ln(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];DF;)D=h+p.lastIndexOf(_o),p=r.slice(h,D),y--;if(r.charCodeAt(D-1)===Ch&&(D--,sn(r.charCodeAt(D-1)))){for(m=D-2;sn(r.charCodeAt(m));)m--;r.charCodeAt(m)===hh&&(D=m)}return E=r.slice(0,D),b=lh(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var No=C((DE,Io)=>{"use strict";var wh=Ne(),kh=Ve(),Bh=43,qh=45,Th=46,_h=95;Io.exports=Lo;function Lo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Po(e.charCodeAt(a-1)))return Lo.call(t,e,n+1);for(;a>r&&Po(e.charCodeAt(a-1));)a--;return a}function Po(e){return wh(e)||kh(e)||e===Bh||e===qh||e===Th||e===_h}});var Mo=C((pE,zo)=>{"use strict";var Sh=pr(),Ro=Ne(),Uo=Ve(),Oh=No();zo.exports=pn;pn.locator=Oh;pn.notInLink=!0;var Ph=43,fn=45,tt=46,Lh=64,Dn=95;function pn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(i);Ro(l)||Uo(l)||l===Ph||l===fn||l===tt||l===Dn;)l=r.charCodeAt(++i);if(i!==0&&l===Lh){for(i++;i{"use strict";var Ih=Ve(),Nh=tn(),Rh=Xt().tag;Go.exports=Yo;Yo.locator=Nh;var Uh="<",zh="?",Mh="!",Yh="/",Gh=/^/i;function Yo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Uh||a<3)&&(u=r.charAt(1),!(!Ih(u)&&u!==zh&&u!==Mh&&u!==Yh)&&(i=r.match(Rh),!!i)))return t?!0:(i=i[0],!n.inLink&&Gh.test(i)?n.inLink=!0:n.inLink&&Vh.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var dn=C((hE,jo)=>{"use strict";jo.exports=jh;function jh(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var Er=ue(),$h=dn();Xo.exports=Jo;Jo.locator=$h;var Hh=` -`,Wh="!",$o='"',Ho="'",Je="(",Cr=")",hn="<",mn=">",Wo="[",br="\\",Kh="]",Ko="`";function Jo(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v,w,k;if(i===Wh&&(F=!0,a=i,i=r.charAt(++u)),i===Wo&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u=D&&(D=0):D=f}else if(i===br)u++,d+=r.charAt(u);else if((!D||l)&&i===Wo)g++;else if((!D||l)&&i===Kh)if(g)g--;else{if(r.charAt(u+1)!==Je)return;d+=Je,c=!0,u++;break}A+=d,d="",u++}if(c){for(y=A,a+=A+d,u++;u{"use strict";var Jh=ue(),Xh=dn(),Qh=Qt();es.exports=Zo;Zo.locator=Xh;var Fn="link",Zh="image",e0="shortcut",r0="collapsed",gn="full",t0="!",nt="[",it="\\",ut="]";function Zo(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=Fn,f=e0,D,h,p,d,m,F,y,E;if(u===t0&&(c=Zh,l=u,u=r.charAt(++i)),u===nt){for(i++,l+=u,F="",E=0;i{"use strict";ts.exports=n0;function n0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var i0=Re(),is=ue(),u0=ns();as.exports=us;us.locator=u0;var a0="\\",o0="*",s0="_";function us(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==o0&&u!==s0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&is(r.charAt(a)))))for(;a{"use strict";ss.exports=f0;var c0=String.fromCharCode,l0=/\w/;function f0(e){return l0.test(typeof e=="number"?c0(e):e.charAt(0))}});var fs=C((CE,ls)=>{"use strict";ls.exports=D0;function D0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var p0=Re(),d0=cs(),Ds=ue(),h0=fs();hs.exports=ds;ds.locator=h0;var m0="*",ps="_",F0="\\";function ds(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==m0&&u!==ps)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&Ds(r.charAt(a)))))for(;a{"use strict";Fs.exports=g0;function g0(e,r){return e.indexOf("~~",r)}});var ys=C((AE,bs)=>{"use strict";var vs=ue(),v0=gs();bs.exports=Cs;Cs.locator=v0;var at="~",Es="~~";function Cs(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==at||r.charAt(1)!==at||vs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";As.exports=E0;function E0(e,r){return e.indexOf("`",r)}});var Bs=C((wE,ks)=>{"use strict";var C0=xs();ks.exports=ws;ws.locator=C0;var vn=10,En=32,Cn=96;function ws(e,r,t){for(var n=r.length,a=0,u,i,o,s,l,c;a2&&(s===En||s===vn)&&(l===En||l===vn)){for(a++,n--;a{"use strict";qs.exports=b0;function b0(e,r){for(var t=e.indexOf(` -`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Os=C((BE,Ss)=>{"use strict";var y0=Ts();Ss.exports=_s;_s.locator=y0;var A0=" ",x0=` -`,w0=2;function _s(e,r,t){for(var n=r.length,a=-1,u="",i;++a{"use strict";Ps.exports=k0;function k0(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,h;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,D=r.length;++i{"use strict";var B0=Ie(),ot=ru(),q0=nu(),T0=uu(),_0=Ou(),bn=Iu();Rs.exports=Is;function Is(e,r){this.file=r,this.offset={},this.options=B0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=q0(r).toOffset,this.unescape=T0(this,"escape"),this.decode=_0(this)}var U=Is.prototype;U.setOptions=Vu();U.parse=aa();U.options=Rt();U.exitStart=ot("atStart",!0);U.enterList=ot("inList",!1);U.enterLink=ot("inLink",!1);U.enterBlock=ot("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:sa(),indentedCode:pa(),fencedCode:ma(),blockquote:ba(),atxHeading:xa(),thematicBreak:Ba(),list:Ua(),setextHeading:Ga(),html:Ka(),definition:io(),table:oo(),paragraph:lo()};U.inlineTokenizers={escape:Fo(),autoLink:yo(),url:Oo(),email:Mo(),html:Vo(),link:Qo(),reference:rs(),strong:os(),emphasis:ms(),deletion:ys(),code:Bs(),break:Os(),text:Ls()};U.blockMethods=Ns(U.blockTokenizers);U.inlineMethods=Ns(U.inlineTokenizers);U.tokenizeBlock=bn("block");U.tokenizeInline=bn("inline");U.tokenizeFactory=bn;function Ns(e){var r=[],t;for(t in e)r.push(t);return r}});var Gs=C((_E,Ys)=>{"use strict";var S0=Zi(),O0=Ie(),zs=Us();Ys.exports=Ms;Ms.Parser=zs;function Ms(e){var r=this.data("settings"),t=S0(zs);t.prototype.options=O0(t.prototype.options,r,e),this.Parser=t}});var js=C((SE,Vs)=>{"use strict";Vs.exports=P0;function P0(e){if(e)throw e}});var yn=C((OE,$s)=>{$s.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var rc=C((PE,ec)=>{"use strict";var st=Object.prototype.hasOwnProperty,Zs=Object.prototype.toString,Hs=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Ks=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Zs.call(r)==="[object Array]"},Js=function(r){if(!r||Zs.call(r)!=="[object Object]")return!1;var t=st.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&st.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||st.call(r,a)},Xs=function(r,t){Hs&&t.name==="__proto__"?Hs(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},Qs=function(r,t){if(t==="__proto__")if(st.call(r,t)){if(Ws)return Ws(r,t).value}else return;return r[t]};ec.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";tc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var uc=C((IE,ic)=>{"use strict";var L0=[].slice;ic.exports=I0;function I0(e,r){var t;return n;function n(){var i=L0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var lc=C((NE,cc)=>{"use strict";var oc=uc();cc.exports=sc;sc.wrap=oc;var ac=[].slice;function sc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=ac.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=ac.call(arguments,0),f=c.slice(1),D=u.length,h=-1;if(s){i(s);return}for(;++h{"use strict";var Xe={}.hasOwnProperty;pc.exports=N0;function N0(e){return!e||typeof e!="object"?"":Xe.call(e,"position")||Xe.call(e,"type")?fc(e.position):Xe.call(e,"start")||Xe.call(e,"end")?fc(e):Xe.call(e,"line")||Xe.call(e,"column")?An(e):""}function An(e){return(!e||typeof e!="object")&&(e={}),Dc(e.line)+":"+Dc(e.column)}function fc(e){return(!e||typeof e!="object")&&(e={}),An(e.start)+"-"+An(e.end)}function Dc(e){return e&&typeof e=="number"?e:1}});var Fc=C((UE,mc)=>{"use strict";var R0=dc();mc.exports=xn;function hc(){}hc.prototype=Error.prototype;xn.prototype=new hc;var we=xn.prototype;we.file="";we.name="";we.reason="";we.message="";we.stack="";we.fatal=null;we.column=null;we.line=null;function xn(e,r,t){var n,a,u;typeof r=="string"&&(t=r,r=null),n=U0(t),a=R0(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function U0(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var gc=C(Qe=>{"use strict";Qe.basename=z0;Qe.dirname=M0;Qe.extname=Y0;Qe.join=G0;Qe.sep="/";function z0(e,r){var t=0,n=-1,a,u,i,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(yr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function M0(e){var r,t,n;if(yr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function Y0(e){var r=-1,t=0,n=-1,a=0,u,i,o;for(yr(e),o=e.length;o--;){if(i=e.charCodeAt(o),i===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),i===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function G0(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=i,u=0;continue}}else if(t.length){t="",n=0,a=i,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,i):t=e.slice(a+1,i),n=i-a-1;a=i,u=0}else o===46&&u>-1?u++:u=-1}return t}function yr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Ec=C(vc=>{"use strict";vc.cwd=$0;function $0(){return"/"}});var yc=C((YE,bc)=>{"use strict";var ae=gc(),H0=Ec(),W0=yn();bc.exports=he;var K0={}.hasOwnProperty,wn=["history","path","basename","stem","extname","dirname"];he.prototype.toString=am;Object.defineProperty(he.prototype,"path",{get:J0,set:X0});Object.defineProperty(he.prototype,"dirname",{get:Q0,set:Z0});Object.defineProperty(he.prototype,"basename",{get:em,set:rm});Object.defineProperty(he.prototype,"extname",{get:tm,set:nm});Object.defineProperty(he.prototype,"stem",{get:im,set:um});function he(e){var r,t;if(!e)e={};else if(typeof e=="string"||W0(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=H0.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ae.join(this.dirname,this.stem+(e||""))}function im(){return typeof this.path=="string"?ae.basename(this.path,this.extname):void 0}function um(e){Bn(e,"stem"),kn(e,"stem"),this.path=ae.join(this.dirname||"",e+(this.extname||""))}function am(e){return(this.contents||"").toString(e)}function kn(e,r){if(e&&e.indexOf(ae.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ae.sep+"`")}function Bn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Cc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var xc=C((GE,Ac)=>{"use strict";var om=Fc(),ct=yc();Ac.exports=ct;ct.prototype.message=sm;ct.prototype.info=lm;ct.prototype.fail=cm;function sm(e,r,t){var n=new om(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function cm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function lm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var kc=C((VE,wc)=>{"use strict";wc.exports=xc()});var Ic=C((jE,Lc)=>{"use strict";var Bc=js(),fm=yn(),lt=rc(),qc=nc(),Oc=lc(),Ar=kc();Lc.exports=Pc().freeze();var Dm=[].slice,pm={}.hasOwnProperty,dm=Oc().use(hm).use(mm).use(Fm);function hm(e,r){r.tree=e.parse(r.file)}function mm(e,r,t){e.run(r.tree,r.file,n);function n(a,u,i){a?t(a):(r.tree=u,r.file=i,t())}}function Fm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||fm(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Pc(){var e=[],r=Oc(),t={},n=-1,a;return u.data=o,u.freeze=i,u.attachers=e,u.use=s,u.parse=c,u.stringify=h,u.run=f,u.runSync=D,u.process=p,u.processSync=d,u;function u(){for(var m=Pc(),F=-1;++F_i,options:()=>Si,parsers:()=>On,printers:()=>qm});var al=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},N=al;var ol=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},M=ol;var qi=Ue(wr(),1);function Be(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $="string",H="array",ge="cursor",ee="indent",re="align",oe="trim",K="group",J="fill",X="if-break",se="indent-if-break",ce="line-suffix",le="line-suffix-boundary",W="line",fe="label",te="break-parent",kr=new Set([ge,ee,re,oe,K,J,X,se,ce,le,W,fe,te]);function cl(e){if(typeof e=="string")return $;if(Array.isArray(e))return H;if(!e)return;let{type:r}=e;if(kr.has(r))return r}var Y=cl;var ll=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function fl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=ll([...kr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Dt=class extends Error{name="InvalidDocError";constructor(r){super(fl(r)),this.doc=r}},qe=Dt;var Nn={};function Dl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===Nn){t(a.pop());continue}t&&a.push(u,Nn);let i=Y(u);if(!i)throw new qe(u);if((r==null?void 0:r(u))!==!1)switch(i){case H:case J:{let o=i===H?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case X:a.push(u.flatContents,u.breakContents);break;case K:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case re:case ee:case se:case fe:case ce:a.push(u.contents);break;case $:case ge:case oe:case le:case W:case te:break;default:throw new qe(u)}}}var Rn=Dl;var Un=()=>{},Te=Un,Br=Un;function Ze(e){return Te(e),{type:ee,contents:e}}function ve(e,r){return Te(r),{type:re,contents:r,n:e}}function ze(e,r={}){return Te(e),Br(r.expandedStates,!0),{type:K,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return ve({type:"root"},e)}function Ee(e){return Br(e),{type:J,parts:e}}function zn(e,r="",t={}){return Te(e),r!==""&&Te(r),{type:X,breakContents:e,flatContents:r,groupId:t.groupId}}var er={type:te};var rr={type:W,hard:!0},pl={type:W,hard:!0,literal:!0},qr={type:W},Tr={type:W,soft:!0},L=[rr,er],tr=[pl,er];function _r(e,r){Te(e),Br(r);let t=[];for(let n=0;n0){let r=M(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Yn(e){let r=new Set,t=[];function n(u){if(u.type===te&&Mn(t),u.type===K){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===K&&t.pop().break&&Mn(t)}Rn(e,n,a,!0)}function Ce(e,r=tr){return dl(e,t=>typeof t=="string"?_r(r,t.split(` -`)):t)}function hl(e,r){let t=e.match(new RegExp(`(${Be(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Sr=hl;function ml(e,r){let t=e.match(new RegExp(`(${Be(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;uu?n:t}var jn=Fl;var pt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},$n=pt;var Xn=Ue(wr(),1);function gl(e){return(e==null?void 0:e.type)==="front-matter"}var Hn=gl;var nr=3;function vl(e){let r=e.slice(0,nr);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` -`,nr);if(t===-1)return;let n=e.slice(nr,t).trim(),a=e.indexOf(` +`,k+1);w===-1?c+=v.length:c=v.length-w,l in u&&(w!==-1?c+=u[l]:c<=u[l]&&(c=u[l]+1))}function y(){var v=[],w=l+1;return function(){for(var k=l+1;w{"use strict";Wu.exports=$r;var Mt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],zt=Mt.concat(["~","|"]),$u=zt.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);$r.default=Mt;$r.gfm=zt;$r.commonmark=$u;function $r(e){var r=e||{};return r.commonmark?$u:r.gfm?zt:Mt}});var Ju=C(($v,Ku)=>{"use strict";Ku.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Yt=C((Wv,Xu)=>{"use strict";Xu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Ju()}});var Zu=C((Hv,Qu)=>{"use strict";var ID=Ie(),ND=Hu(),RD=Yt();Qu.exports=UD;function UD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=ID(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in RD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=ND(e),r}});var ta=C((Kv,ra)=>{"use strict";ra.exports=ea;function ea(e){if(e==null)return GD;if(typeof e=="string")return YD(e);if(typeof e=="object")return"length"in e?zD(e):MD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function MD(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function zD(e){for(var r=[],t=-1;++t{na.exports=VD;function VD(e){return e}});var sa=C((Xv,oa)=>{"use strict";oa.exports=Wr;var jD=ta(),$D=ia(),ua=!0,aa="skip",Gt=!1;Wr.CONTINUE=ua;Wr.SKIP=aa;Wr.EXIT=Gt;function Wr(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=jD(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+$D(c.type+(f?"<"+f+">":""))+")"),D;function D(){var d=l.concat(o),p=[],h,m;if((!r||u(o,s,l[l.length-1]||null))&&(p=WD(t(o,l)),p[0]===Gt))return p;if(o.children&&p[0]!==aa)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ca.exports=Kr;var Hr=sa(),HD=Hr.CONTINUE,KD=Hr.SKIP,JD=Hr.EXIT;Kr.CONTINUE=HD;Kr.SKIP=KD;Kr.EXIT=JD;function Kr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Hr(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var Da=C((Zv,fa)=>{"use strict";var XD=la();fa.exports=QD;function QD(e,r){return XD(e,r?ZD:ep),e}function ZD(e){delete e.position}function ep(e){e.position=void 0}});var da=C((eE,ha)=>{"use strict";var pa=Ie(),rp=Da();ha.exports=ip;var tp=` +`,np=/\r\n|\r/g;function ip(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=pa(t),a;return r=r.replace(np,tp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||pa(t)}},e.options.position||rp(a,!0),a}});var Fa=C((rE,ma)=>{"use strict";var up=/^[ \t]*(\n|$)/;ma.exports=ap;function ap(e,r,t){for(var n,a="",u=0,i=r.length;u{"use strict";var me="",Vt;ga.exports=op;function op(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Vt!==e||typeof Vt>"u")Vt=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var jt=C((nE,va)=>{"use strict";va.exports=sp;function sp(e){return String(e).replace(/\n+$/,"")}});var ba=C((iE,Ca)=>{"use strict";var cp=Jr(),lp=jt();Ca.exports=pp;var $t=` +`,Ea=" ",Wt=" ",fp=4,Dp=cp(Wt,fp);function pp(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n{"use strict";Aa.exports=Fp;var Xr=` +`,mr=" ",Je=" ",hp="~",ya="`",dp=3,mp=4;function Fp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,D,d,p,h,m,F,y,E,B;if(a){for(;i=mp)){for(p="";i{Xe=wa.exports=gp;function gp(e){return e.trim?e.trim():Xe.right(Xe.left(e))}Xe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Xe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Qr=C((aE,ka)=>{"use strict";ka.exports=vp;function vp(e,r,t,n){for(var a=e.length,u=-1,i,o;++u{"use strict";var Ep=Re(),Cp=Qr();qa.exports=bp;var Ht=` +`,Ba=" ",Kt=" ",Ta=">";function bp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],d,p=0,h,m,F,y,E,B,b,g;p{"use strict";Oa.exports=Ap;var Sa=` +`,Fr=" ",gr=" ",vr="#",yp=6;function Ap(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,D;++iyp)&&!(!D||!a&&r.charAt(i+1)===vr)){for(u=r.length+1,f="";++i{"use strict";Ia.exports=_p;var xp=" ",wp=` +`,Pa=" ",kp="*",Bp="-",Tp="_",qp=3;function _p(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n=qp&&(!i||i===wp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var Jt=C((lE,Ua)=>{"use strict";Ua.exports=Pp;var Ra=" ",Sp=" ",Op=1,Lp=4;function Pp(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===Ra||n===Sp;){for(u=n===Ra?Lp:Op,t+=u,u>1&&(t=Math.floor(t/u)*u);i{"use strict";var Ip=Re(),Np=Jr(),Rp=Jt();za.exports=zp;var Ma=` +`,Up=" ",Mp="!";function zp(e,r){var t=e.split(Ma),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Np(Up,r)+Mp);n--;)if(o=Rp(t[n]),u[n]=o.stops,Ip(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var Yp=Re(),Gp=Jr(),Ga=Ne(),Vp=Jt(),jp=Ya(),$p=Qr();Wa.exports=eh;var Xt="*",Wp="_",Va="+",Qt="-",ja=".",Fe=" ",ae=` +`,Zr=" ",$a=")",Hp="x",we=4,Kp=/\n\n(?!\s*$)/,Jp=/^\[([ X\tx])][ \t]/,Xp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Qp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Zp=/^( {1,4}|\t)?/gm;function eh(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v,w,k,T,q,R=!1,O,S,_,L;s=k.indent&&(L=!0),p=r.charAt(s),E=null,!L){if(p===Xt||p===Va||p===Qt)E=p,s++,f++;else{for(D="";s=k.indent||f>we),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===Xt||E===Wp||E===Qt)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Yp(B).length,L&&k)k.value=k.value.concat(w,b),v=v.concat(w,b),w=[];else if(y)w.length!==0&&(R=!0,k.value.push(""),k.trail=w.concat()),k={value:[b],indent:f,trail:[]},x.push(k),v=v.concat(w,b),w=[];else if(A){if(g&&!a)break;w.push(b)}else{if(g||$p(o,i,n,[e,b,!0]))break;k.value=k.value.concat(w,b),v=v.concat(w,b),w=[]}s=m+1}for(O=e(v.join(ae)).reset({type:"list",ordered:d,start:c,spread:R,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=x.length;++s{"use strict";Xa.exports=ch;var Zt=` +`,ih=" ",Ka=" ",Ja="=",uh="-",ah=3,oh=1,sh=2;function ch(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,D;++i=ah){i--;break}o+=c}for(s="",l="";++i{"use strict";var lh="[a-zA-Z_:][a-zA-Z0-9:._-]*",fh="[^\"'=<>`\\u0000-\\u0020]+",Dh="'[^']*'",ph='"[^"]*"',hh="(?:"+fh+"|"+Dh+"|"+ph+")",dh="(?:\\s+"+lh+"(?:\\s*=\\s*"+hh+")?)",Za="<[A-Za-z][A-Za-z0-9\\-]*"+dh+"*\\s*\\/?>",eo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mh="|",Fh="<[?].*?[?]>",gh="]*>",vh="";en.openCloseTag=new RegExp("^(?:"+Za+"|"+eo+")");en.tag=new RegExp("^(?:"+Za+"|"+eo+"|"+mh+"|"+Fh+"|"+gh+"|"+vh+")")});var io=C((dE,no)=>{"use strict";var Eh=rn().openCloseTag;no.exports=Ph;var Ch=" ",bh=" ",ro=` +`,yh="<",Ah=/^<(script|pre|style)(?=(\s|>|$))/i,xh=/<\/(script|pre|style)>/i,wh=/^/,Bh=/^<\?/,Th=/\?>/,qh=/^/,Sh=/^/,to=/^$/,Lh=new RegExp(Eh.source+"\\s*$");function Ph(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),i=r.length,o=0,s,l,c,f,D,d,p,h=[[Ah,xh,!0],[wh,kh,!0],[Bh,Th,!0],[qh,_h,!0],[Sh,Oh,!0],[u,to,!0],[Lh,to,!1]];o{"use strict";uo.exports=Rh;var Ih=String.fromCharCode,Nh=/\s/;function Rh(e){return Nh.test(typeof e=="number"?Ih(e):e.charAt(0))}});var tn=C((FE,ao)=>{"use strict";var Uh=Br();ao.exports=Mh;function Mh(e){return Uh(e).toLowerCase()}});var po=C((gE,Do)=>{"use strict";var zh=oe(),Yh=tn();Do.exports=$h;var oo='"',so="'",Gh="\\",Qe=` +`,et=" ",rt=" ",un="[",Er="]",Vh="(",jh=")",co=":",lo="<",fo=">";function $h(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,D,d,p,h;u{"use strict";var Hh=oe();mo.exports=id;var Kh=" ",tt=` +`,Jh=" ",Xh="-",Qh=":",Zh="\\",an="|",ed=1,rd=2,ho="left",td="center",nd="right";function id(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];aA){if(E1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+D),f="",h=""):(f&&(h+=f,f=""),h+=D,D===Zh&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}y||e(tt+u)}return g}}}});var Eo=C((EE,vo)=>{"use strict";var ud=Re(),ad=jt(),od=Qr();vo.exports=ld;var sd=" ",Cr=` +`,cd=" ",go=4;function ld(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,D,d,p;s=go&&D!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),od(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&ud(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=ad(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var bo=C((CE,Co)=>{"use strict";Co.exports=fd;function fd(e,r){return e.indexOf("\\",r)}});var wo=C((bE,xo)=>{"use strict";var Dd=bo();xo.exports=Ao;Ao.locator=Dd;var pd=` +`,yo="\\";function Ao(e,r,t){var n=this,a,u;if(r.charAt(0)===yo&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===pd?u={type:"break"}:u={type:"text",value:a},e(yo+a)(u))}});var on=C((yE,ko)=>{"use strict";ko.exports=hd;function hd(e,r){return e.indexOf("<",r)}});var So=C((AE,_o)=>{"use strict";var Bo=oe(),dd=dr(),md=on();_o.exports=fn;fn.locator=md;fn.notInLink=!0;var To="<",sn=">",qo="@",cn="/",ln="mailto:",nt=ln.length;function fn(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,D,d,p;if(r.charAt(0)===To){for(i++,a=To;i{"use strict";Oo.exports=Fd;function Fd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var No=C((wE,Io)=>{"use strict";Io.exports=gd;var Po=["www.","http://","https://"];function gd(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=Po.length,n=-1;++n{"use strict";var Ro=Lo(),vd=dr(),Ed=Ne(),Dn=We(),Cd=oe(),bd=No();zo.exports=hn;hn.locator=bd;hn.notInLink=!0;var yd=33,Ad=38,xd=41,wd=42,kd=44,Bd=45,pn=46,Td=58,qd=59,_d=63,Sd=60,Uo=95,Od=126,Ld="(",Mo=")";function hn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,D,d,p,h,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];DF;)D=d+p.lastIndexOf(Mo),p=r.slice(d,D),y--;if(r.charCodeAt(D-1)===qd&&(D--,Dn(r.charCodeAt(D-1)))){for(m=D-2;Dn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Ad&&(D=m)}return E=r.slice(0,D),b=vd(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var $o=C((BE,jo)=>{"use strict";var Pd=Ne(),Id=We(),Nd=43,Rd=45,Ud=46,Md=95;jo.exports=Vo;function Vo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Go(e.charCodeAt(a-1)))return Vo.call(t,e,n+1);for(;a>r&&Go(e.charCodeAt(a-1));)a--;return a}function Go(e){return Pd(e)||Id(e)||e===Nd||e===Rd||e===Ud||e===Md}});var Jo=C((TE,Ko)=>{"use strict";var zd=dr(),Wo=Ne(),Ho=We(),Yd=$o();Ko.exports=Fn;Fn.locator=Yd;Fn.notInLink=!0;var Gd=43,dn=45,it=46,Vd=64,mn=95;function Fn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(i);Wo(l)||Ho(l)||l===Gd||l===dn||l===it||l===mn;)l=r.charCodeAt(++i);if(i!==0&&l===Vd){for(i++;i{"use strict";var jd=We(),$d=on(),Wd=rn().tag;Qo.exports=Xo;Xo.locator=$d;var Hd="<",Kd="?",Jd="!",Xd="/",Qd=/^/i;function Xo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Hd||a<3)&&(u=r.charAt(1),!(!jd(u)&&u!==Kd&&u!==Jd&&u!==Xd)&&(i=r.match(Wd),!!i)))return t?!0:(i=i[0],!n.inLink&&Qd.test(i)?n.inLink=!0:n.inLink&&Zd.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var gn=C((_E,es)=>{"use strict";es.exports=e0;function e0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=oe(),r0=gn();as.exports=us;us.locator=r0;var t0=` +`,n0="!",rs='"',ts="'",Ze="(",yr=")",vn="<",En=">",ns="[",Ar="\\",i0="]",is="`";function us(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v,w,k;if(i===n0&&(F=!0,a=i,i=r.charAt(++u)),i===ns&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u=D&&(D=0):D=f}else if(i===Ar)u++,h+=r.charAt(u);else if((!D||l)&&i===ns)g++;else if((!D||l)&&i===i0)if(g)g--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}A+=h,h="",u++}if(c){for(y=A,a+=A+h,u++;u{"use strict";var u0=oe(),a0=gn(),o0=tn();cs.exports=ss;ss.locator=a0;var Cn="link",s0="image",c0="shortcut",l0="collapsed",bn="full",f0="!",ut="[",at="\\",ot="]";function ss(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=Cn,f=c0,D,d,p,h,m,F,y,E;if(u===f0&&(c=s0,l=u,u=r.charAt(++i)),u===ut){for(i++,l+=u,F="",E=0;i{"use strict";fs.exports=D0;function D0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var p0=Re(),ps=oe(),h0=Ds();ds.exports=hs;hs.locator=h0;var d0="\\",m0="*",F0="_";function hs(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==m0&&u!==F0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&ps(r.charAt(a)))))for(;a{"use strict";Fs.exports=E0;var g0=String.fromCharCode,v0=/\w/;function E0(e){return v0.test(typeof e=="number"?g0(e):e.charAt(0))}});var Es=C((NE,vs)=>{"use strict";vs.exports=C0;function C0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var b0=Re(),y0=gs(),Cs=oe(),A0=Es();As.exports=ys;ys.locator=A0;var x0="*",bs="_",w0="\\";function ys(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==x0&&u!==bs)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&Cs(r.charAt(a)))))for(;a{"use strict";ws.exports=k0;function k0(e,r){return e.indexOf("~~",r)}});var Ss=C((ME,_s)=>{"use strict";var Bs=oe(),B0=ks();_s.exports=qs;qs.locator=B0;var st="~",Ts="~~";function qs(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==st||r.charAt(1)!==st||Bs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";Os.exports=T0;function T0(e,r){return e.indexOf("`",r)}});var Ns=C((YE,Is)=>{"use strict";var q0=Ls();Is.exports=Ps;Ps.locator=q0;var yn=10,An=32,xn=96;function Ps(e,r,t){for(var n=r.length,a=0,u,i,o,s,l,c;a2&&(s===An||s===yn)&&(l===An||l===yn)){for(a++,n--;a{"use strict";Rs.exports=_0;function _0(e,r){for(var t=e.indexOf(` +`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Ys=C((VE,zs)=>{"use strict";var S0=Us();zs.exports=Ms;Ms.locator=S0;var O0=" ",L0=` +`,P0=2;function Ms(e,r,t){for(var n=r.length,a=-1,u="",i;++a{"use strict";Gs.exports=I0;function I0(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,D=r.length;++i{"use strict";var N0=Ie(),ct=lu(),R0=Du(),U0=hu(),M0=Yu(),wn=ju();Ws.exports=js;function js(e,r){this.file=r,this.offset={},this.options=N0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=R0(r).toOffset,this.unescape=U0(this,"escape"),this.decode=M0(this)}var U=js.prototype;U.setOptions=Zu();U.parse=da();U.options=Yt();U.exitStart=ct("atStart",!0);U.enterList=ct("inList",!1);U.enterLink=ct("inLink",!1);U.enterBlock=ct("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:Fa(),indentedCode:ba(),fencedCode:xa(),blockquote:_a(),atxHeading:La(),thematicBreak:Na(),list:Ha(),setextHeading:Qa(),html:io(),definition:po(),table:Fo(),paragraph:Eo()};U.inlineTokenizers={escape:wo(),autoLink:So(),url:Yo(),email:Jo(),html:Zo(),link:os(),reference:ls(),strong:ms(),emphasis:xs(),deletion:Ss(),code:Ns(),break:Ys(),text:Vs()};U.blockMethods=$s(U.blockTokenizers);U.inlineMethods=$s(U.inlineTokenizers);U.tokenizeBlock=wn("block");U.tokenizeInline=wn("inline");U.tokenizeFactory=wn;function $s(e){var r=[],t;for(t in e)r.push(t);return r}});var Qs=C((WE,Xs)=>{"use strict";var z0=su(),Y0=Ie(),Ks=Hs();Xs.exports=Js;Js.Parser=Ks;function Js(e){var r=this.data("settings"),t=z0(Ks);t.prototype.options=Y0(t.prototype.options,r,e),this.Parser=t}});var ec=C((HE,Zs)=>{"use strict";Zs.exports=G0;function G0(e){if(e)throw e}});var kn=C((KE,rc)=>{rc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var lc=C((JE,cc)=>{"use strict";var lt=Object.prototype.hasOwnProperty,sc=Object.prototype.toString,tc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,ic=function(r){return typeof Array.isArray=="function"?Array.isArray(r):sc.call(r)==="[object Array]"},uc=function(r){if(!r||sc.call(r)!=="[object Object]")return!1;var t=lt.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&<.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||lt.call(r,a)},ac=function(r,t){tc&&t.name==="__proto__"?tc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},oc=function(r,t){if(t==="__proto__")if(lt.call(r,t)){if(nc)return nc(r,t).value}else return;return r[t]};cc.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";fc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var hc=C((QE,pc)=>{"use strict";var V0=[].slice;pc.exports=j0;function j0(e,r){var t;return n;function n(){var i=V0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var vc=C((ZE,gc)=>{"use strict";var mc=hc();gc.exports=Fc;Fc.wrap=mc;var dc=[].slice;function Fc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=dc.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=dc.call(arguments,0),f=c.slice(1),D=u.length,d=-1;if(s){i(s);return}for(;++d{"use strict";var er={}.hasOwnProperty;bc.exports=$0;function $0(e){return!e||typeof e!="object"?"":er.call(e,"position")||er.call(e,"type")?Ec(e.position):er.call(e,"start")||er.call(e,"end")?Ec(e):er.call(e,"line")||er.call(e,"column")?Bn(e):""}function Bn(e){return(!e||typeof e!="object")&&(e={}),Cc(e.line)+":"+Cc(e.column)}function Ec(e){return(!e||typeof e!="object")&&(e={}),Bn(e.start)+"-"+Bn(e.end)}function Cc(e){return e&&typeof e=="number"?e:1}});var wc=C((rC,xc)=>{"use strict";var W0=yc();xc.exports=Tn;function Ac(){}Ac.prototype=Error.prototype;Tn.prototype=new Ac;var ke=Tn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Tn(e,r,t){var n,a,u;typeof r=="string"&&(t=r,r=null),n=H0(t),a=W0(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function H0(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var kc=C(rr=>{"use strict";rr.basename=K0;rr.dirname=J0;rr.extname=X0;rr.join=Q0;rr.sep="/";function K0(e,r){var t=0,n=-1,a,u,i,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(xr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function J0(e){var r,t,n;if(xr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function X0(e){var r=-1,t=0,n=-1,a=0,u,i,o;for(xr(e),o=e.length;o--;){if(i=e.charCodeAt(o),i===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),i===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function Q0(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=i,u=0;continue}}else if(t.length){t="",n=0,a=i,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,i):t=e.slice(a+1,i),n=i-a-1;a=i,u=0}else o===46&&u>-1?u++:u=-1}return t}function xr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Tc=C(Bc=>{"use strict";Bc.cwd=rm;function rm(){return"/"}});var Sc=C((iC,_c)=>{"use strict";var se=kc(),tm=Tc(),nm=kn();_c.exports=ge;var im={}.hasOwnProperty,qn=["history","path","basename","stem","extname","dirname"];ge.prototype.toString=dm;Object.defineProperty(ge.prototype,"path",{get:um,set:am});Object.defineProperty(ge.prototype,"dirname",{get:om,set:sm});Object.defineProperty(ge.prototype,"basename",{get:cm,set:lm});Object.defineProperty(ge.prototype,"extname",{get:fm,set:Dm});Object.defineProperty(ge.prototype,"stem",{get:pm,set:hm});function ge(e){var r,t;if(!e)e={};else if(typeof e=="string"||nm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof ge))return new ge(e);for(this.data={},this.messages=[],this.history=[],this.cwd=tm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(e||""))}function pm(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}function hm(e){Sn(e,"stem"),_n(e,"stem"),this.path=se.join(this.dirname||"",e+(this.extname||""))}function dm(e){return(this.contents||"").toString(e)}function _n(e,r){if(e&&e.indexOf(se.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+se.sep+"`")}function Sn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function qc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var Lc=C((uC,Oc)=>{"use strict";var mm=wc(),ft=Sc();Oc.exports=ft;ft.prototype.message=Fm;ft.prototype.info=vm;ft.prototype.fail=gm;function Fm(e,r,t){var n=new mm(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function gm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function vm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var Ic=C((aC,Pc)=>{"use strict";Pc.exports=Lc()});var jc=C((oC,Vc)=>{"use strict";var Nc=ec(),Em=kn(),Dt=lc(),Rc=Dc(),Yc=vc(),wr=Ic();Vc.exports=Gc().freeze();var Cm=[].slice,bm={}.hasOwnProperty,ym=Yc().use(Am).use(xm).use(wm);function Am(e,r){r.tree=e.parse(r.file)}function xm(e,r,t){e.run(r.tree,r.file,n);function n(a,u,i){a?t(a):(r.tree=u,r.file=i,t())}}function wm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||Em(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Gc(){var e=[],r=Yc(),t={},n=-1,a;return u.data=o,u.freeze=i,u.attachers=e,u.use=s,u.parse=c,u.stringify=d,u.run=f,u.runSync=D,u.process=p,u.processSync=h,u;function u(){for(var m=Gc(),F=-1;++FMi,options:()=>zi,parsers:()=>Nn,printers:()=>Rm});var dl=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},N=dl;var ml=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},z=ml;var Ri=Ue(Br(),1);function le(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $="string",W="array",Ce="cursor",re="indent",te="align",fe="trim",K="group",J="fill",X="if-break",De="indent-if-break",pe="line-suffix",he="line-suffix-boundary",H="line",de="label",ne="break-parent",Tr=new Set([Ce,re,te,fe,K,J,X,De,pe,he,H,de,ne]);function gl(e){if(typeof e=="string")return $;if(Array.isArray(e))return W;if(!e)return;let{type:r}=e;if(Tr.has(r))return r}var Y=gl;var vl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function El(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=vl([...Tr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var ht=class extends Error{name="InvalidDocError";constructor(r){super(El(r)),this.doc=r}},Te=ht;var jn={};function Cl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===jn){t(a.pop());continue}t&&a.push(u,jn);let i=Y(u);if(!i)throw new Te(u);if((r==null?void 0:r(u))!==!1)switch(i){case W:case J:{let o=i===W?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case X:a.push(u.flatContents,u.breakContents);break;case K:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case te:case re:case De:case de:case pe:a.push(u.contents);break;case $:case Ce:case fe:case he:case H:case ne:break;default:throw new Te(u)}}}var $n=Cl;var Wn=()=>{},qe=Wn,qr=Wn;function tr(e){return qe(e),{type:re,contents:e}}function be(e,r){return qe(r),{type:te,contents:r,n:e}}function Me(e,r={}){return qe(e),qr(r.expandedStates,!0),{type:K,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return be({type:"root"},e)}function ze(e){return qr(e),{type:J,parts:e}}function Hn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:X,breakContents:e,flatContents:r,groupId:t.groupId}}var nr={type:ne};var ir={type:H,hard:!0},bl={type:H,hard:!0,literal:!0},_r={type:H},Sr={type:H,soft:!0},P=[ir,nr],ur=[bl,nr];function Or(e,r){qe(e),qr(r);let t=[];for(let n=0;n0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===ne&&Kn(t),u.type===K){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===K&&t.pop().break&&Kn(t)}$n(e,n,a,!0)}function ye(e,r=ur){return yl(e,t=>typeof t=="string"?Or(r,t.split(` +`)):t)}function Al(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Lr=Al;function xl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;uu?n:t}var Zn=wl;var dt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ei=dt;var ui=Ue(Br(),1);function kl(e){return(e==null?void 0:e.type)==="front-matter"}var ri=kl;var ar=3;function Bl(e){let r=e.slice(0,ar);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` +`,ar);if(t===-1)return;let n=e.slice(ar,t).trim(),a=e.indexOf(` ${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&u==="yaml"&&(a=e.indexOf(` -...`,t)),a===-1)return;let i=a+1+nr,o=e.charAt(i+1);if(!/\s?/u.test(o))return;let s=e.slice(0,i);return{type:"front-matter",language:u,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-nr),raw:s}}function El(e){let r=vl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:N(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var ir=El;var Wn=["format","prettier"];function dt(e){let r=`@(${Wn.join("|")})`,t=new RegExp([``,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,``,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,``].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var Kn=e=>dt(ir(e).content.trimStart()),Jn=e=>{let r=ir(e),t=``;return r.frontMatter?`${r.frontMatter.raw} +.*-->`].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var ni=e=>mt(or(e).content.trimStart()),ii=e=>{let r=or(e),t=``;return r.frontMatter?`${r.frontMatter.raw} ${t} ${r.content}`:`${t} -${r.content}`};var Cl=new Set(["position","raw"]);function Qn(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,Xn.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||Hn(t.children[0])&&t.children[1]===e)&&e.type==="html"&&dt(e.value))return null}Qn.ignoredProperties=Cl;var Zn=Qn;var ei=/(?:[\u02ea-\u02eb\u1100-\u11ff\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u303f\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u3190-\u4dbf\u4e00-\u9fff\ua700-\ua707\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufe10-\ufe1f\ufe30-\ufe6f\uff00-\uffef]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883\ud885-\ud887][\udc00-\udfff]|\ud81b[\udfe3]|\ud82b[\udff0-\udff3\udff5-\udffb\udffd-\udffe]|\ud82c[\udc00-\udd22\udd32\udd50-\udd52\udd55\udd64-\udd67]|\ud83c[\ude00\ude50-\ude51]|\ud869[\udc00-\udedf\udf00-\udfff]|\ud86d[\udc00-\udf39\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a\udf50-\udfff]|\ud888[\udc00-\udfaf])(?:[\ufe00-\ufe0f]|\udb40[\udd00-\uddef])?/u,Se=/(?:[\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function bl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,L,n,n?L:"",e.endDelimiter])}}var ri=bl;var yl=e=>String(e).split(/[/\\]/u).pop();function ti(e,r){if(!r)return;let t=yl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Al(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function xl(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Al(t,r.language)??ti(t,r.physicalFile)??ti(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var ni=xl;var wl=new Proxy(()=>{},{get:()=>wl});function Oe(e){return e.position.start.offset}function Pe(e){return e.position.end.offset}var ht=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Pr=new Set([...ht,"tableCell","paragraph","heading"]),Le="non-cjk",De="cj-letter",be="k-letter",ur="cjk-punctuation",kl=/\p{Script_Extensions=Hangul}/u;function Lr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` -`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${ei.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Le,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(M(!1,s,-1))});continue}n(Se.test(s)?{type:"word",value:s,kind:ur,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:kl.test(s)?be:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=M(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Le,ur)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Me(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function ii(e,r){return!e.ordered||e.children.length<2||Me(e.children[1],r).number!==1?!1:Me(e.children[0],r).number!==0?!0:e.children.length>2&&Me(e.children[2],r).number===1}function Ir(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` +${r.content}`};var ql=new Set(["position","raw"]);function ai(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,ui.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ri(t.children[0])&&t.children[1]===e)&&e.type==="html"&&mt(e.value))return null}ai.ignoredProperties=ql;var oi=ai;var si=/(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{309f}\u{30a1}-\u{30fa}\u{30fc}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function _l(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,P,n,n?P:"",e.endDelimiter])}}var ci=_l;var Sl=e=>String(e).split(/[/\\]/u).pop();function li(e,r){if(!r)return;let t=Sl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ol(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function Ll(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Ol(t,r.language)??li(t,r.physicalFile)??li(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var fi=Ll;var Pl=new Proxy(()=>{},{get:()=>Pl});function Oe(e){return e.position.start.offset}function Le(e){return e.position.end.offset}var Ft=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Ir=new Set([...Ft,"tableCell","paragraph","heading"]),Ge="non-cjk",ie="cj-letter",Pe="k-letter",sr="cjk-punctuation",Il=/\p{Script_Extensions=Hangul}/u;function Nr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` +`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${si.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Ge,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Il.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=z(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Ge,sr)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function Di(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Rr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` `)&&r.endsWith(` -`)?t.slice(0,-1):t}function ye(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function mt(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Pe(e)===Pe(r)}function Bl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=ni(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Sr(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Ir(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",L,Ce(s),L,i])}}switch(t.type){case"front-matter":return n=>ri(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ui=Bl;var ar=null;function or(e){if(ar!==null&&typeof ar.property){let r=ar;return ar=or.prototype=null,r}return ar=or.prototype=e??Object.create(null),new or}var ql=10;for(let e=0;e<=ql;e++)or();function Ft(e){return or(e)}function Tl(e,r="type"){Ft(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var ai=Tl;var _l={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},oi=_l;var Sl=ai(oi),si=Sl;function ci(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`)?t.slice(0,-1):t}function Ae(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function gt(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Le(e)===Le(r)}function Nl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=fi(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Lr(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Rr(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",P,ye(s),P,i])}}switch(t.type){case"front-matter":return n=>ci(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var pi=Nl;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var Rl=10;for(let e=0;e<=Rl;e++)lr();function vt(e){return lr(e)}function Ul(e,r="type"){vt(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var hi=Ul;var Ml={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},di=Ml;var zl=hi(di),mi=zl;function Fi(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var li=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D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DD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function fi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Di(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var pi=e=>!(fi(e)||Di(e));var Ol=/[^\x20-\x7F]/u;function Pl(e){if(!e)return 0;if(!Ol.test(e))return e.length;e=e.replace(li()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=pi(n)?1:2)}return r}var sr=Pl;var G=Symbol("MODE_BREAK"),ne=Symbol("MODE_FLAT"),cr=Symbol("cursor");function di(){return{value:"",length:0,queue:[]}}function Ll(e,r){return gt(e,{type:"indent"},r)}function Il(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||di():r<0?gt(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:gt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function gt(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",u=0,i=0,o=0;for(let p of n)switch(p.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:u,queue:n};function s(p){a+=" ".repeat(p),u+=t.tabWidth*p}function l(p){a+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){i>0&&s(i),h()}function D(){o>0&&l(o),h()}function h(){i=0,o=0}}function vt(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===cr){t++;continue}for(let u=a.length-1;u>=0;u--){let i=a[u];if(i===" "||i===" ")r++;else{e[n]=a.slice(0,u+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(cr);return r}function Nr(e,r,t,n,a,u){if(t===Number.POSITIVE_INFINITY)return!0;let i=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(r[--i]);continue}let{mode:l,doc:c}=o.pop(),f=Y(c);switch(f){case $:s.push(c),t-=sr(c);break;case H:case J:{let D=f===H?c:c.parts;for(let h=D.length-1;h>=0;h--)o.push({mode:l,doc:D[h]});break}case ee:case re:case se:case fe:o.push({mode:l,doc:c.contents});break;case oe:t+=vt(s);break;case K:{if(u&&c.break)return!1;let D=c.break?G:l,h=c.expandedStates&&D===G?M(!1,c.expandedStates,-1):c.contents;o.push({mode:D,doc:h});break}case X:{let h=(c.groupId?a[c.groupId]||ne:l)===G?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case W:if(l===G||c.hard)return!0;c.soft||(s.push(" "),t--);break;case ce:n=!0;break;case le:if(n)return!1;break}}return!1}function hi(e,r){let t={},n=r.printWidth,a=ci(r.endOfLine),u=0,i=[{ind:di(),mode:G,doc:e}],o=[],s=!1,l=[],c=0;for(Yn(e);i.length>0;){let{ind:D,mode:h,doc:p}=i.pop();switch(Y(p)){case $:{let d=a!==` +`}}var gi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?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\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function vi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ei(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Ci=e=>!(vi(e)||Ei(e));var Yl=/[^\x20-\x7F]/u;function Gl(e){if(!e)return 0;if(!Yl.test(e))return e.length;e=e.replace(gi()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=Ci(n)?1:2)}return r}var fr=Gl;var G=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),Ve=Symbol("cursor"),bi=Symbol("DOC_FILL_PRINTED_LENGTH");function yi(){return{value:"",length:0,queue:[]}}function Vl(e,r){return Et(e,{type:"indent"},r)}function jl(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||yi():r<0?Et(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:Et(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function Et(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",u=0,i=0,o=0;for(let p of n)switch(p.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:u,queue:n};function s(p){a+=" ".repeat(p),u+=t.tabWidth*p}function l(p){a+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){i>0&&s(i),d()}function D(){o>0&&l(o),d()}function d(){i=0,o=0}}function Ct(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Ve){t++;continue}for(let u=a.length-1;u>=0;u--){let i=a[u];if(i===" "||i===" ")r++;else{e[n]=a.slice(0,u+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(Ve);return r}function Ur(e,r,t,n,a,u){if(t===Number.POSITIVE_INFINITY)return!0;let i=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(r[--i]);continue}let{mode:l,doc:c}=o.pop(),f=Y(c);switch(f){case $:s.push(c),t-=fr(c);break;case W:case J:{let D=f===W?c:c.parts;for(let d=D.length-1;d>=0;d--)o.push({mode:l,doc:D[d]});break}case re:case te:case De:case de:o.push({mode:l,doc:c.contents});break;case fe:t+=Ct(s);break;case K:{if(u&&c.break)return!1;let D=c.break?G:l,d=c.expandedStates&&D===G?z(!1,c.expandedStates,-1):c.contents;o.push({mode:D,doc:d});break}case X:{let d=(c.groupId?a[c.groupId]||ue:l)===G?c.breakContents:c.flatContents;d&&o.push({mode:l,doc:d});break}case H:if(l===G||c.hard)return!0;c.soft||(s.push(" "),t--);break;case pe:n=!0;break;case he:if(n)return!1;break}}return!1}function Ai(e,r){let t={},n=r.printWidth,a=Fi(r.endOfLine),u=0,i=[{ind:yi(),mode:G,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);i.length>0;){let{ind:D,mode:d,doc:p}=i.pop();switch(Y(p)){case $:{let h=a!==` `?N(!1,p,` -`,a):p;o.push(d),i.length>0&&(u+=sr(d));break}case H:for(let d=p.length-1;d>=0;d--)i.push({ind:D,mode:h,doc:p[d]});break;case ge:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(cr),c++;break;case ee:i.push({ind:Ll(D,r),mode:h,doc:p.contents});break;case re:i.push({ind:Il(D,p.n,r),mode:h,doc:p.contents});break;case oe:u-=vt(o);break;case K:switch(h){case ne:if(!s){i.push({ind:D,mode:p.break?G:ne,doc:p.contents});break}case G:{s=!1;let d={ind:D,mode:ne,doc:p.contents},m=n-u,F=l.length>0;if(!p.break&&Nr(d,i,m,F,t))i.push(d);else if(p.expandedStates){let y=M(!1,p.expandedStates,-1);if(p.break){i.push({ind:D,mode:G,doc:y});break}else for(let E=1;E=p.expandedStates.length){i.push({ind:D,mode:G,doc:y});break}else{let B=p.expandedStates[E],b={ind:D,mode:ne,doc:B};if(Nr(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:D,mode:G,doc:p.contents});break}}p.id&&(t[p.id]=M(!1,i,-1).mode);break;case J:{let d=n-u,{parts:m}=p;if(m.length===0)break;let[F,y]=m,E={ind:D,mode:ne,doc:F},B={ind:D,mode:G,doc:F},b=Nr(E,[],d,l.length>0,t,!0);if(m.length===1){b?i.push(E):i.push(B);break}let g={ind:D,mode:ne,doc:y},A={ind:D,mode:G,doc:y};if(m.length===2){b?i.push(g,E):i.push(A,B);break}m.splice(0,2);let x={ind:D,mode:h,doc:Ee(m)},v=m[0];Nr({ind:D,mode:ne,doc:[F,y,v]},[],d,l.length>0,t,!0)?i.push(x,g,E):b?i.push(x,A,E):i.push(x,A,B);break}case X:case se:{let d=p.groupId?t[p.groupId]:h;if(d===G){let m=p.type===X?p.breakContents:p.negate?p.contents:Ze(p.contents);m&&i.push({ind:D,mode:h,doc:m})}if(d===ne){let m=p.type===X?p.flatContents:p.negate?Ze(p.contents):p.contents;m&&i.push({ind:D,mode:h,doc:m})}break}case ce:l.push({ind:D,mode:h,doc:p.contents});break;case le:l.length>0&&i.push({ind:D,mode:h,doc:rr});break;case W:switch(h){case ne:if(p.hard)s=!0;else{p.soft||(o.push(" "),u+=1);break}case G:if(l.length>0){i.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),u=D.root.length):(o.push(a),u=0):(u-=vt(o),o.push(a+D.value),u=D.length);break}break;case fe:i.push({ind:D,mode:h,doc:p.contents});break;case te:break;default:throw new qe(p)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(cr);if(f!==-1){let D=o.indexOf(cr,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}function mi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let D=hi(t(),r).formatted,h=sr(D);return a[f]=Math.max(a[f]??3,h),{text:D,width:h}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[er,i];let o=s(!0);return[er,ze(zn(o,i))];function s(f){return _r(rr,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return a.map((D,h)=>{let p=n.align[h],d=p==="center"||p==="left"?":":"-",m=p==="center"||p==="right"?":":"-",F=f?"-":"-".repeat(D-2);return`${d}${F}${m}`})}function c(f,D){return f.map(({text:h,width:p},d)=>{if(D)return h;let m=a[d]-p,F=n.align[d],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${h}${" ".repeat(E)}`})}}function Fi(e,r,t){let n=e.map(t,"children");return Nl(n)}function Nl(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===H){t(a);continue}let i=a,o=[];u===J&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),Ee(r)}var Rl=/^.$/su;function Ul(e,r){return e=zl(e,r),e=Yl(e),e=Vl(e,r),e=jl(e,r),e=Gl(e),e}function zl(e,r){return ye(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Rl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Ml(e,r,t){return ye(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=M(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function Yl(e){return Ml(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Gl(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=a.trimStart()),t===n.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Lr(a)}})}function Vl(e,r){return ye(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Me(i,r).leadingSpaces.length>1}}var gi=Ul;function vi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==$){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),Ee(t)}var $l=new Set(["heading","tableCell","link","wikiLink"]),Hl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),Wl=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB\u3099\u309A`),Ei=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Kl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function Jl(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return bi(a)&&bi(u)||a===be&&u===De||u===be&&a===De?!0:a===ur||u===ur||a===De&&u===De?!1:Ei.has(n.value[0])||Ei.has(M(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:Kl(e)}function Ci(e){return e===Le||e===De||e===be}function bi(e){return e===Le||e===be}function Xl(e,r,t,n,a){if(t!=="always"||e.hasAncestor(s=>$l.has(s.type)))return!1;if(n)return r!=="";if(r===" ")return!0;let{previous:u,next:i}=e;return!(r===""&&((u==null?void 0:u.kind)===be&&Ci(i==null?void 0:i.kind)||(i==null?void 0:i.kind)===be&&Ci(u==null?void 0:u.kind))||!a&&(i&&Wl.has(i.value[0])||u&&Hl.has(M(!1,u.value,-1))))}function Et(e,r,t,n){if(t==="preserve"&&r===` -`)return L;let a=r===" "||r===` -`&&Jl(e,n);return Xl(e,r,t,n,a)?a?qr:Tr:a?" ":""}var Ql=new Set(["listItem","definition"]);function Zl(e,r,t){var a,u;let{node:n}=e;if(af(e)){let i=[""],o=Lr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=Et(e,s.value,r.proseWrap,!0);if(Y(l)===$){i.push([i.pop(),l]);continue}i.push(l)}return Ee(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[tf(e,r,t),L];case"paragraph":return Fi(e,r,t);case"sentence":return vi(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,D,h)=>N(!1,f?`${c}${f}`:`${D}${h}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>mt(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return Et(e,n.value,o)}case"emphasis":{let i;if(mt(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=M(!1,o.children,-1))==null?void 0:a.type)==="word"&&!M(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,V(e,r,t),i]}case"strong":return["**",V(e,r,t),"**"];case"delete":return["~~",V(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,` -`," "),o=Gn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",V(e,r,t),"](",Ct(n.url,")"),Rr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Ct(n.url,")"),Rr(n.title,r),")"];case"blockquote":return["> ",ve("> ",V(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",V(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ve(s,[s,Ce(n.value,L)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Sr(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",L,Ce(Ir(n,r.originalText),L),L,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^$/su.test(s);return Ce(s,l?L:_e(tr))}case"list":{let i=Ai(n,e.parent),o=ii(n,r);return V(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,yi(s,r,t,l)];return[l,ve(" ".repeat(l.length),yi(s,r,t,l))];function f(){let D=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?ef(D,r):D}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Ai(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",V(e,r,t),"]",n.referenceType==="full"?bt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",bt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?qr:" ";return ze([bt(n),":",Ze([i,Ct(n.url),n.title===null?"":[i,Rr(n.title,r,!1)]])])}case"footnote":return["[^",V(e,r,t),"]"];case"footnoteReference":return Bi(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Bi(n),": ",i?V(e,r,t):ze([ve(" ".repeat(4),V(e,r,t,{processor:({isFirst:o})=>o?ze([Tr,t()]):t()}))])]}case"table":return mi(e,r,t);case"tableCell":return V(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(tr)]:["\\",L];case"liquidNode":return Ce(n.value,L);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",L,n.value?[Ce(n.value,L),L]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Pe(n));case"tableRow":case"listItem":case"text":default:throw new $n(n,"Markdown")}}function yi(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,V(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return ve(" ".repeat(u.length),t());let s=" ".repeat(sf(r.tabWidth-n.length,0,3));return[s,ve(s,t())]}})]}function ef(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Ai(e,r){return rf(e,r,t=>t.ordered===e.ordered)}function rf(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function tf(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(yt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return V(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[xi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),xi(u[o.end.index])];if(o.start.index{let i=a(e);i!==!1&&(u.length>0&&nf(e)&&(u.push(L),(uf(e,r)||ki(e))&&u.push(L),ki(e)&&u.push(L)),u.push(i))},"children"),u}function xi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function yt(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function nf({node:e,parent:r}){let t=ht.has(e.type),n=e.type==="html"&&Pr.has(r.type);return!t&&!n}function wi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function uf({node:e,previous:r,parent:t},n){if(wi(r,n))return!0;let i=r.type===e.type&&Ql.has(e.type),o=t.type==="listItem"&&!wi(t,n),s=yt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function ki({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function af(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var of=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function Ct(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>Be(n)).join("|"),"u").test(e)?`<${of(e,"<>")}>`:e}function Rr(e,r,t=!0){if(!e)return"";if(t)return" "+Rr(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=jn(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function sf(e,r,t){return et?t:e}function cf(e){return e.index>0&&yt(e.previous)==="next"}function bt(e){return`[${(0,qi.default)(e.label)}]`}function Bi(e){return`[^${e.label}]`}var lf={preprocess:gi,print:Zl,embed:ui,massageAstNode:Zn,hasPrettierIgnore:cf,insertPragma:Jn,getVisitorKeys:si},Ti=lf;var _i=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var At={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var ff={proseWrap:At.proseWrap,singleQuote:At.singleQuote},Si=ff;var On={};Pn(On,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc=Ue(Pi(),1),Kc=Ue(Wi(),1),Jc=Ue(Gs(),1),Xc=Ue(Ic(),1);var vm=/^import\s/u,Em=/^export\s/u,Nc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Rc=/|/u,Cm=/^\{\s*\/\*(.*)\*\/\s*\}/u,bm=` +`,a):p;o.push(h),i.length>0&&(u+=fr(h));break}case W:for(let h=p.length-1;h>=0;h--)i.push({ind:D,mode:d,doc:p[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:i.push({ind:Vl(D,r),mode:d,doc:p.contents});break;case te:i.push({ind:jl(D,p.n,r),mode:d,doc:p.contents});break;case fe:u-=Ct(o);break;case K:switch(d){case ue:if(!s){i.push({ind:D,mode:p.break?G:ue,doc:p.contents});break}case G:{s=!1;let h={ind:D,mode:ue,doc:p.contents},m=n-u,F=l.length>0;if(!p.break&&Ur(h,i,m,F,t))i.push(h);else if(p.expandedStates){let y=z(!1,p.expandedStates,-1);if(p.break){i.push({ind:D,mode:G,doc:y});break}else for(let E=1;E=p.expandedStates.length){i.push({ind:D,mode:G,doc:y});break}else{let B=p.expandedStates[E],b={ind:D,mode:ue,doc:B};if(Ur(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:D,mode:G,doc:p.contents});break}}p.id&&(t[p.id]=z(!1,i,-1).mode);break;case J:{let h=n-u,m=p[bi]??0,{parts:F}=p,y=F.length-m;if(y===0)break;let E=F[m+0],B=F[m+1],b={ind:D,mode:ue,doc:E},g={ind:D,mode:G,doc:E},A=Ur(b,[],h,l.length>0,t,!0);if(y===1){A?i.push(b):i.push(g);break}let x={ind:D,mode:ue,doc:B},v={ind:D,mode:G,doc:B};if(y===2){A?i.push(x,b):i.push(v,g);break}let w=F[m+2],k={ind:D,mode:d,doc:{...p,[bi]:m+2}};Ur({ind:D,mode:ue,doc:[E,B,w]},[],h,l.length>0,t,!0)?i.push(k,x,b):A?i.push(k,v,b):i.push(k,v,g);break}case X:case De:{let h=p.groupId?t[p.groupId]:d;if(h===G){let m=p.type===X?p.breakContents:p.negate?p.contents:tr(p.contents);m&&i.push({ind:D,mode:d,doc:m})}if(h===ue){let m=p.type===X?p.flatContents:p.negate?tr(p.contents):p.contents;m&&i.push({ind:D,mode:d,doc:m})}break}case pe:l.push({ind:D,mode:d,doc:p.contents});break;case he:l.length>0&&i.push({ind:D,mode:d,doc:ir});break;case H:switch(d){case ue:if(p.hard)s=!0;else{p.soft||(o.push(" "),u+=1);break}case G:if(l.length>0){i.push({ind:D,mode:d,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),u=D.root.length):(o.push(a),u=0):(u-=Ct(o),o.push(a+D.value),u=D.length);break}break;case de:i.push({ind:D,mode:d,doc:p.contents});break;case ne:break;default:throw new Te(p)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let D=o.indexOf(Ve,f+1);if(D===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),h=o.slice(D+1).join("");return{formatted:d+p+h,cursorNodeStart:d.length,cursorNodeText:p}}return{formatted:o.join("")}}function xi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let D=Ai(t(),r).formatted,d=fr(D);return a[f]=Math.max(a[f]??3,d),{text:D,width:d}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[nr,i];let o=s(!0);return[nr,Me(Hn(o,i))];function s(f){return Or(ir,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return a.map((D,d)=>{let p=n.align[d],h=p==="center"||p==="left"?":":"-",m=p==="center"||p==="right"?":":"-",F=f?"-":"-".repeat(D-2);return`${h}${F}${m}`})}function c(f,D){return f.map(({text:d,width:p},h)=>{if(D)return d;let m=a[h]-p,F=n.align[h],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${d}${" ".repeat(E)}`})}}function wi(e,r,t){let n=e.map(t,"children");return $l(n)}function $l(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===W){t(a);continue}let i=a,o=[];u===J&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),ze(r)}var Q,bt=class{constructor(r){Yn(this,Q);Gn(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var ki=bt;var Wl=[" ",` +`,"\f","\r"," "],Hl=new ki(Wl),yt=Hl;var Kl=/^.$/su;function Jl(e,r){return e=Xl(e,r),e=Zl(e),e=rf(e,r),e=tf(e,r),e=ef(e),e}function Xl(e,r){return Ae(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Kl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Ql(e,r,t){return Ae(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=z(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function Zl(e){return Ql(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function ef(e){return Ae(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=yt.trimStart(a)),t===n.children.length-1&&(a=yt.trimEnd(a))),{type:"sentence",position:r.position,children:Nr(a)}})}function rf(e,r){return Ae(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Ye(i,r).leadingSpaces.length>1}}var Bi=Jl;function Ti(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==$){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var nf=new Set(["heading","tableCell","link","wikiLink"]),qi=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function uf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function af(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return _i(a)&&_i(u)||a===Pe&&u===ie||u===Pe&&a===ie?!0:a===sr||u===sr||a===ie&&u===ie?!1:qi.has(n.value[0])||qi.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:uf(e)}function _i(e){return e===Ge||e===Pe}function of(e,r,t,n){if(t!=="always"||e.hasAncestor(i=>nf.has(i.type)))return!1;if(n)return r!=="";let{previous:a,next:u}=e;return!a||!u?!0:r===""?!1:a.kind===Pe&&u.kind===ie||u.kind===Pe&&a.kind===ie?!0:!(a.isCJ||u.isCJ)}function At(e,r,t,n){if(t==="preserve"&&r===` +`)return P;let a=r===" "||r===` +`&&af(e,n);return of(e,r,t,n)?a?_r:Sr:a?" ":""}var sf=new Set(["listItem","definition"]);function cf(e,r,t){var a,u;let{node:n}=e;if(df(e)){let i=[""],o=Nr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=At(e,s.value,r.proseWrap,!0);if(Y(l)===$){i.push([i.pop(),l]);continue}i.push(l,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Df(e,r,t),P];case"paragraph":return wi(e,r,t);case"sentence":return Ti(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,D,d)=>N(!1,f?`${c}${f}`:`${D}${d}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>gt(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return At(e,n.value,o)}case"emphasis":{let i;if(gt(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=z(!1,o.children,-1))==null?void 0:a.type)==="word"&&!z(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,V(e,r,t),i]}case"strong":return["**",V(e,r,t),"**"];case"delete":return["~~",V(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,` +`," "),o=Xn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",V(e,r,t),"](",xt(n.url,")"),Mr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",xt(n.url,")"),Mr(n.title,r),")"];case"blockquote":return["> ",be("> ",V(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",V(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return be(s,[s,ye(n.value,P)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Lr(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",P,ye(Rr(n,r.originalText),P),P,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^$/su.test(s);return ye(s,l?P:_e(ur))}case"list":{let i=Oi(n,e.parent),o=Di(n,r);return V(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,Si(s,r,t,l)];return[l,be(" ".repeat(l.length),Si(s,r,t,l))];function f(){let D=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?lf(D,r):D}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Oi(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",V(e,r,t),"]",n.referenceType==="full"?wt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",wt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?_r:" ";return Me([wt(n),":",tr([i,xt(n.url),n.title===null?"":[i,Mr(n.title,r,!1)]])])}case"footnote":return["[^",V(e,r,t),"]"];case"footnoteReference":return Ni(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Ni(n),": ",i?V(e,r,t):Me([be(" ".repeat(4),V(e,r,t,{processor:({isFirst:o})=>o?Me([Sr,t()]):t()}))])]}case"table":return xi(e,r,t);case"tableCell":return V(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(ur)]:["\\",P];case"liquidNode":return ye(n.value,P);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",P,n.value?[ye(n.value,P),P]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Le(n));case"tableRow":case"listItem":case"text":default:throw new ei(n,"Markdown")}}function Si(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,V(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return be(" ".repeat(u.length),t());let s=" ".repeat(Ff(r.tabWidth-n.length,0,3));return[s,be(s,t())]}})]}function lf(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Oi(e,r){return ff(e,r,t=>t.ordered===e.ordered)}function ff(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function Df(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(kt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return V(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Li(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Li(u[o.end.index])];if(o.start.index{let i=a(e);i!==!1&&(u.length>0&&pf(e)&&(u.push(P),(hf(e,r)||Ii(e))&&u.push(P),Ii(e)&&u.push(P)),u.push(i))},"children"),u}function Li(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function kt(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function pf({node:e,parent:r}){let t=Ft.has(e.type),n=e.type==="html"&&Ir.has(r.type);return!t&&!n}function Pi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` +`)}function hf({node:e,previous:r,parent:t},n){if(Pi(r,n))return!0;let i=r.type===e.type&&sf.has(e.type),o=t.type==="listItem"&&!Pi(t,n),s=kt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function Ii({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function df(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var mf=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function xt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${mf(e,"<>")}>`:e}function Mr(e,r,t=!0){if(!e)return"";if(t)return" "+Mr(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=Zn(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function Ff(e,r,t){return Math.max(r,Math.min(e,t))}function gf(e){return e.index>0&&kt(e.previous)==="next"}function wt(e){return`[${(0,Ri.default)(e.label)}]`}function Ni(e){return`[^${e.label}]`}var vf={preprocess:Bi,print:cf,embed:pi,massageAstNode:oi,hasPrettierIgnore:gf,insertPragma:ii,getVisitorKeys:mi},Ui=vf;var Mi=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var Bt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ef={proseWrap:Bt.proseWrap,singleQuote:Bt.singleQuote},zi=Ef;var Nn={};Un(Nn,{markdown:()=>Im,mdx:()=>Nm,remark:()=>Im});var nl=Ue(Gi(),1),il=Ue(nu(),1),ul=Ue(Qs(),1),al=Ue(jc(),1);var Bm=/^import\s/u,Tm=/^export\s/u,$c=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Wc=/|/u,qm=/^\{\s*\/\*(.*)\*\/\s*\}/u,_m=` -`,Uc=e=>vm.test(e),Sn=e=>Em.test(e),zc=(e,r)=>{let t=r.indexOf(bm),n=r.slice(0,t);if(Sn(n)||Uc(n))return e(n)({type:Sn(n)?"export":"import",value:n})},Mc=(e,r)=>{let t=Cm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};zc.locator=e=>Sn(e)||Uc(e)?-1:1;Mc.locator=(e,r)=>e.indexOf("{",r);var Yc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=zc,n.esComment=Mc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var ym=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=ir(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Gc=ym;function Am(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||Rc.test(r.value)||Pr.has(n.type)?r:{...r,type:"jsx"})}var Vc=Am;var xm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},jc=xm;var wm=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},$c=wm;function Qc({isMDX:e}){return r=>{let t=(0,Xc.default)().use(Jc.default,{commonmark:!0,...e&&{blocks:[Nc]}}).use(Wc.default).use(Gc).use(Kc.default).use(e?Yc:Hc).use(jc).use(e?Vc:Hc).use($c);return t.run(t.parse(r))}}function Hc(){}var Zc={astFormat:"mdast",hasPragma:Kn,locStart:Oe,locEnd:Pe},km={...Zc,parse:Qc({isMDX:!1})},Bm={...Zc,parse:Qc({isMDX:!0})};var qm={mdast:Ti};return ul(Tm);}); \ No newline at end of file +`,Hc=e=>Bm.test(e),In=e=>Tm.test(e),Kc=(e,r)=>{let t=r.indexOf(_m),n=r.slice(0,t);if(In(n)||Hc(n))return e(n)({type:In(n)?"export":"import",value:n})},Jc=(e,r)=>{let t=qm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};Kc.locator=e=>In(e)||Hc(e)?-1:1;Jc.locator=(e,r)=>e.indexOf("{",r);var Xc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=Kc,n.esComment=Jc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Sm=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=or(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Qc=Sm;function Om(){return e=>Ae(e,(r,t,[n])=>r.type!=="html"||Wc.test(r.value)||Ir.has(n.type)?r:{...r,type:"jsx"})}var Zc=Om;var Lm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},el=Lm;var Pm=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},rl=Pm;function ol({isMDX:e}){return r=>{let t=(0,al.default)().use(ul.default,{commonmark:!0,...e&&{blocks:[$c]}}).use(nl.default).use(Qc).use(il.default).use(e?Xc:tl).use(el).use(e?Zc:tl).use(rl);return t.run(t.parse(r))}}function tl(){}var sl={astFormat:"mdast",hasPragma:ni,locStart:Oe,locEnd:Le},Im={...sl,parse:ol({isMDX:!1})},Nm={...sl,parse:ol({isMDX:!0})};var Rm={mdast:Ui};return hl(Um);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/markdown.mjs b/node_modules/prettier/plugins/markdown.mjs index 8a4f0387..2105cc44 100644 --- a/node_modules/prettier/plugins/markdown.mjs +++ b/node_modules/prettier/plugins/markdown.mjs @@ -1,62 +1,63 @@ -var el=Object.create;var ft=Object.defineProperty;var rl=Object.getOwnPropertyDescriptor;var tl=Object.getOwnPropertyNames;var nl=Object.getPrototypeOf,il=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ln=(e,r)=>{for(var t in r)ft(e,t,{get:r[t],enumerable:!0})},ul=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of tl(r))!il.call(e,a)&&a!==t&&ft(e,a,{get:()=>r[a],enumerable:!(n=rl(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?el(nl(e)):{},ul(r||!e||!e.__esModule?ft(t,"default",{value:e,enumerable:!0}):t,e));var xr=C((Om,In)=>{"use strict";In.exports=sl;function sl(e){return String(e).replace(/\s+/g," ")}});var Pi=C((av,Oi)=>{"use strict";Oi.exports=mf;var lr=9,Rr=10,Ye=32,Df=33,pf=58,Ge=91,df=92,xt=93,fr=94,Ur=96,zr=4,hf=1024;function mf(e){var r=this.Parser,t=this.Compiler;Ff(r)&&vf(r,e),gf(t)&&Ef(t)}function Ff(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function gf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function vf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,D=i.length,h;++fzr&&(Q=void 0,me=q);else{if(Q0&&(z=Fe[k-1],z.contentStart===z.contentEnd);)k--;for(ke=b(g.slice(0,z.contentEnd));++q{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mn=(e,r)=>{for(var t in r)pt(e,t,{get:r[t],enumerable:!0})},hl=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of fl(r))!pl.call(e,a)&&a!==t&&pt(e,a,{get:()=>r[a],enumerable:!(n=ll(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?cl(Dl(e)):{},hl(r||!e||!e.__esModule?pt(t,"default",{value:e,enumerable:!0}):t,e));var zn=(e,r,t)=>r.has(e)||Un("Cannot "+t);var ce=(e,r,t)=>(zn(e,r,"read from private field"),t?t.call(e):r.get(e)),Yn=(e,r,t)=>r.has(e)?Un("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),Gn=(e,r,t,n)=>(zn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var kr=C((Ym,Vn)=>{"use strict";Vn.exports=Fl;function Fl(e){return String(e).replace(/\s+/g," ")}});var Gi=C((bv,Yi)=>{"use strict";Yi.exports=xf;var Dr=9,Mr=10,je=32,Cf=33,bf=58,$e=91,yf=92,Tt=93,pr=94,zr=96,Yr=4,Af=1024;function xf(e){var r=this.Parser,t=this.Compiler;wf(r)&&Bf(r,e),kf(t)&&Tf(t)}function wf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function kf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Bf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,D=i.length,d;++fYr&&(Z=void 0,ve=T);else{if(Z0&&(M=Ee[k-1],M.contentStart===M.contentEnd);)k--;for(Be=b(g.slice(0,M.contentEnd));++T{kt.isRemarkParser=bf;kt.isRemarkCompiler=yf;function bf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function yf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Mi=C((sv,zi)=>{var Li=Bt();zi.exports=kf;var Ii=9,Ni=32,Mr=36,Af=48,xf=57,Ri=92,wf=["math","math-inline"],Ui="math-display";function kf(e){let r=this.Parser,t=this.Compiler;Li.isRemarkParser(r)&&Bf(r,e),Li.isRemarkCompiler(t)&&qf(t,e)}function Bf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,F,y,E;if(o.charCodeAt(D)===Ri&&(f=!0,D++),o.charCodeAt(D)===Mr){if(D++,f)return s?!0:i(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===Mr&&(c=!0,D++),d=o.charCodeAt(D),!(d===Ni||d===Ii)){for(m=D;Dxf)&&(!c||d===Mr)){F=D-1,D++,c&&D++,y=D;break}}else p===Ri&&(D++,d=o.charCodeAt(D+1));D++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:wf.concat(c&&r.inlineMathDouble?[Ui]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function qf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Ui)&&(a="$$"),a+n.value+a}}});var $i=C((cv,ji)=>{var Yi=Bt();ji.exports=Of;var Gi=10,Dr=32,qt=36,Vi=` -`,Tf="$",_f=2,Sf=["math","math-display"];function Of(){let e=this.Parser,r=this.Compiler;Yi.isRemarkParser(e)&&Pf(e),Yi.isRemarkCompiler(r)&&Lf(r)}function Pf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let D,h,p,d,m,F,y,E,B,b,g;for(;fb&&s.charCodeAt(d-1)===Dr;)d--;for(;d>b&&s.charCodeAt(d-1)===qt;)B++,d--;for(F<=B&&s.indexOf(Tf,b)===d&&(E=!0,g=d);b<=g&&b-fb&&s.charCodeAt(g-1)===Dr;)g--;if((!E||b!==g)&&h.push(s.slice(b,g)),E)break;f=p+1,p=s.indexOf(Vi,f+1),p=p===-1?c:p}return h=h.join(` -`),o(s.slice(0,p))({type:"math",value:h,data:{hName:"div",hProperties:{className:Sf.concat()},hChildren:[{type:"text",value:h}]}})}}}}function Lf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ +`)}}function qt(e,r,t){e.splice(e.indexOf(r),0,t)}function qf(e,r,t,n){for(var a=e.length,u=-1;++u{_t.isRemarkParser=_f;_t.isRemarkCompiler=Sf;function _f(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Sf(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Ji=C((Av,Ki)=>{var Vi=St();Ki.exports=If;var ji=9,$i=32,Gr=36,Of=48,Lf=57,Wi=92,Pf=["math","math-inline"],Hi="math-display";function If(e){let r=this.Parser,t=this.Compiler;Vi.isRemarkParser(r)&&Nf(r,e),Vi.isRemarkCompiler(t)&&Rf(t,e)}function Nf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,D=0,d,p,h,m,F,y,E;if(o.charCodeAt(D)===Wi&&(f=!0,D++),o.charCodeAt(D)===Gr){if(D++,f)return s?!0:i(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===Gr&&(c=!0,D++),h=o.charCodeAt(D),!(h===$i||h===ji)){for(m=D;DLf)&&(!c||h===Gr)){F=D-1,D++,c&&D++,y=D;break}}else p===Wi&&(D++,h=o.charCodeAt(D+1));D++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:Pf.concat(c&&r.inlineMathDouble?[Hi]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function Rf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Hi)&&(a="$$"),a+n.value+a}}});var ru=C((xv,eu)=>{var Xi=St();eu.exports=Yf;var Qi=10,hr=32,Ot=36,Zi=` +`,Uf="$",Mf=2,zf=["math","math-display"];function Yf(){let e=this.Parser,r=this.Compiler;Xi.isRemarkParser(e)&&Gf(e),Xi.isRemarkCompiler(r)&&Vf(r)}function Gf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let D,d,p,h,m,F,y,E,B,b,g;for(;fb&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===Ot;)B++,h--;for(F<=B&&s.indexOf(Uf,b)===h&&(E=!0,g=h);b<=g&&b-fb&&s.charCodeAt(g-1)===hr;)g--;if((!E||b!==g)&&d.push(s.slice(b,g)),E)break;f=p+1,p=s.indexOf(Zi,f+1),p=p===-1?c:p}return d=d.join(` +`),o(s.slice(0,p))({type:"math",value:d,data:{hName:"div",hProperties:{className:zf.concat()},hChildren:[{type:"text",value:d}]}})}}}}function Vf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$ `+n.value+` -$$`}}});var Wi=C((lv,Hi)=>{var If=Mi(),Nf=$i();Hi.exports=Rf;function Rf(e){var r=e||{};Nf.call(this,r),If.call(this,r)}});var Ie=C((fv,Ki)=>{Ki.exports=zf;var Uf=Object.prototype.hasOwnProperty;function zf(){for(var e={},r=0;r{typeof Object.create=="function"?Tt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Tt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var Zi=C((pv,Qi)=>{"use strict";var Mf=Ie(),Xi=Ji();Qi.exports=Yf;function Yf(e){var r,t,n;Xi(u,e),Xi(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Mf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var ru=C((dv,eu)=>{"use strict";eu.exports=Gf;function Gf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var nu=C((hv,tu)=>{"use strict";tu.exports=Vf;function Vf(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&ii)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";iu.exports=jf;var _t="\\";function jf(e,r){return t;function t(n){for(var a=0,u=n.indexOf(_t),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(_t),u=n.indexOf(_t,a+1);return o.push(n.slice(a)),o.join("")}}});var au=C((Fv,$f)=>{$f.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var ou=C((gv,Hf)=>{Hf.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((vv,su)=>{"use strict";su.exports=Wf;function Wf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var lu=C((Ev,cu)=>{"use strict";cu.exports=Kf;function Kf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var Ve=C((Cv,fu)=>{"use strict";fu.exports=Jf;function Jf(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var pu=C((bv,Du)=>{"use strict";var Xf=Ve(),Qf=Ne();Du.exports=Zf;function Zf(e){return Xf(e)||Qf(e)}});var du=C((yv,eD)=>{eD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Fu=C((Av,mu)=>{"use strict";var hu=du();mu.exports=tD;var rD={}.hasOwnProperty;function tD(e){return rD.call(hu,e)?hu[e]:!1}});var pr=C((xv,Tu)=>{"use strict";var gu=au(),vu=ou(),nD=Ne(),iD=lu(),yu=pu(),uD=Fu();Tu.exports=gD;var aD={}.hasOwnProperty,je=String.fromCharCode,oD=Function.prototype,Eu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},sD=9,Cu=10,cD=12,lD=32,bu=38,fD=59,DD=60,pD=61,dD=35,hD=88,mD=120,FD=65533,$e="named",Ot="hexadecimal",Pt="decimal",Lt={};Lt[Ot]=16;Lt[Pt]=10;var Yr={};Yr[$e]=yu;Yr[Pt]=nD;Yr[Ot]=iD;var Au=1,xu=2,wu=3,ku=4,Bu=5,St=6,qu=7,Ae={};Ae[Au]="Named character references must be terminated by a semicolon";Ae[xu]="Numeric character references must be terminated by a semicolon";Ae[wu]="Named character references cannot be empty";Ae[ku]="Numeric character references cannot be empty";Ae[Bu]="Named character references must be known";Ae[St]="Numeric character references cannot be disallowed";Ae[qu]="Numeric character references cannot be outside the permissible Unicode range";function gD(e,r){var t={},n,a;r||(r={});for(a in Eu)n=r[a],t[a]=n??Eu[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),vD(e,t)}function vD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,u=r.reference,i=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,h=0,p=-1,d=c.column||1,m=c.line||1,F="",y=[],E,B,b,g,A,x,v,w,k,q,T,R,O,S,_,P,ke,j,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),P=Z(),w=i?Q:oD,h--,D++;++h65535&&(x-=65536,q+=je(x>>>10|55296),x=56320|x&1023),x=q+je(x))):S!==$e&&w(ku,j)),x?(me(),P=Z(),h=I-1,d+=I-O+1,y.push(x),ke=Z(),ke.offset++,u&&u.call(s,x,{start:P,end:ke},e.slice(O-1,I)),P=ke):(g=e.slice(O-1,I),F+=g,d+=g.length,h=I-1)}else A===10&&(m++,p++,d=0),A===A?(F+=je(A),d++):me();return y.join("");function Z(){return{line:m,column:d,offset:h+(c.offset||0)}}function Q(Fe,z){var lt=Z();lt.column+=z,lt.offset+=z,i.call(l,Ae[Fe],lt,Fe)}function me(){F&&(y.push(F),a&&a.call(o,F,{start:P,end:Z()}),F="")}}function ED(e){return e>=55296&&e<=57343||e>1114111}function CD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Ou=C((wv,Su)=>{"use strict";var bD=Ie(),_u=pr();Su.exports=yD;function yD(e){return t.raw=n,t;function r(u){for(var i=e.offset,o=u.line,s=[];++o&&o in i;)s.push((i[o]||0)+1);return{start:u,indent:s}}function t(u,i,o){_u(u,{position:r(i),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,i,o){return _u(u,bD(o,{position:r(i),warning:a}))}function a(u,i,o){o!==3&&e.file.message(u,i)}}});var Iu=C((kv,Lu)=>{"use strict";Lu.exports=AD;function AD(e){return r;function r(t,n){var a=this,u=a.offset,i=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,D,h,p,d,m;if(!t)return i;for(x.now=E,x.file=a.file,F("");t;){for(f=-1,D=o.length,d=!1;++f{var jf=Ji(),$f=ru();tu.exports=Wf;function Wf(e){var r=e||{};$f.call(this,r),jf.call(this,r)}});var Ie=C((kv,iu)=>{iu.exports=Kf;var Hf=Object.prototype.hasOwnProperty;function Kf(){for(var e={},r=0;r{typeof Object.create=="function"?Lt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Lt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var su=C((Tv,ou)=>{"use strict";var Jf=Ie(),au=uu();ou.exports=Xf;function Xf(e){var r,t,n;au(u,e),au(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Jf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var lu=C((qv,cu)=>{"use strict";cu.exports=Qf;function Qf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var Du=C((_v,fu)=>{"use strict";fu.exports=Zf;function Zf(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&ii)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l{"use strict";pu.exports=eD;var Pt="\\";function eD(e,r){return t;function t(n){for(var a=0,u=n.indexOf(Pt),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Pt),u=n.indexOf(Pt,a+1);return o.push(n.slice(a)),o.join("")}}});var du=C((Ov,rD)=>{rD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var mu=C((Lv,tD)=>{tD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((Pv,Fu)=>{"use strict";Fu.exports=nD;function nD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var vu=C((Iv,gu)=>{"use strict";gu.exports=iD;function iD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var We=C((Nv,Eu)=>{"use strict";Eu.exports=uD;function uD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var bu=C((Rv,Cu)=>{"use strict";var aD=We(),oD=Ne();Cu.exports=sD;function sD(e){return aD(e)||oD(e)}});var yu=C((Uv,cD)=>{cD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var wu=C((Mv,xu)=>{"use strict";var Au=yu();xu.exports=fD;var lD={}.hasOwnProperty;function fD(e){return lD.call(Au,e)?Au[e]:!1}});var dr=C((zv,Uu)=>{"use strict";var ku=du(),Bu=mu(),DD=Ne(),pD=vu(),Su=bu(),hD=wu();Uu.exports=kD;var dD={}.hasOwnProperty,He=String.fromCharCode,mD=Function.prototype,Tu={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},FD=9,qu=10,gD=12,vD=32,_u=38,ED=59,CD=60,bD=61,yD=35,AD=88,xD=120,wD=65533,Ke="named",Nt="hexadecimal",Rt="decimal",Ut={};Ut[Nt]=16;Ut[Rt]=10;var Vr={};Vr[Ke]=Su;Vr[Rt]=DD;Vr[Nt]=pD;var Ou=1,Lu=2,Pu=3,Iu=4,Nu=5,It=6,Ru=7,xe={};xe[Ou]="Named character references must be terminated by a semicolon";xe[Lu]="Numeric character references must be terminated by a semicolon";xe[Pu]="Named character references cannot be empty";xe[Iu]="Numeric character references cannot be empty";xe[Nu]="Named character references must be known";xe[It]="Numeric character references cannot be disallowed";xe[Ru]="Numeric character references cannot be outside the permissible Unicode range";function kD(e,r){var t={},n,a;r||(r={});for(a in Tu)n=r[a],t[a]=n??Tu[a];return(t.position.indent||t.position.start)&&(t.indent=t.position.indent||[],t.position=t.position.start),BD(e,t)}function BD(e,r){var t=r.additional,n=r.nonTerminated,a=r.text,u=r.reference,i=r.warning,o=r.textContext,s=r.referenceContext,l=r.warningContext,c=r.position,f=r.indent||[],D=e.length,d=0,p=-1,h=c.column||1,m=c.line||1,F="",y=[],E,B,b,g,A,x,v,w,k,T,q,R,O,S,_,L,Be,j,I;for(typeof t=="string"&&(t=t.charCodeAt(0)),L=ee(),w=i?Z:mD,d--,D++;++d65535&&(x-=65536,T+=He(x>>>10|55296),x=56320|x&1023),x=T+He(x))):S!==Ke&&w(Iu,j)),x?(ve(),L=ee(),d=I-1,h+=I-O+1,y.push(x),Be=ee(),Be.offset++,u&&u.call(s,x,{start:L,end:Be},e.slice(O-1,I)),L=Be):(g=e.slice(O-1,I),F+=g,h+=g.length,d=I-1)}else A===10&&(m++,p++,h=0),A===A?(F+=He(A),h++):ve();return y.join("");function ee(){return{line:m,column:h,offset:d+(c.offset||0)}}function Z(Ee,M){var Dt=ee();Dt.column+=M,Dt.offset+=M,i.call(l,xe[Ee],Dt,Ee)}function ve(){F&&(y.push(F),a&&a.call(o,F,{start:L,end:ee()}),F="")}}function TD(e){return e>=55296&&e<=57343||e>1114111}function qD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}});var Yu=C((Yv,zu)=>{"use strict";var _D=Ie(),Mu=dr();zu.exports=SD;function SD(e){return t.raw=n,t;function r(u){for(var i=e.offset,o=u.line,s=[];++o&&o in i;)s.push((i[o]||0)+1);return{start:u,indent:s}}function t(u,i,o){Mu(u,{position:r(i),warning:a,text:o,reference:o,textContext:e,referenceContext:e})}function n(u,i,o){return Mu(u,_D(o,{position:r(i),warning:a}))}function a(u,i,o){o!==3&&e.file.message(u,i)}}});var ju=C((Gv,Vu)=>{"use strict";Vu.exports=OD;function OD(e){return r;function r(t,n){var a=this,u=a.offset,i=[],o=a[e+"Methods"],s=a[e+"Tokenizers"],l=n.line,c=n.column,f,D,d,p,h,m;if(!t)return i;for(x.now=E,x.file=a.file,F("");t;){for(f=-1,D=o.length,h=!1;++f{"use strict";Ru.exports=Gr;var It=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Nt=It.concat(["~","|"]),Nu=Nt.concat([` -`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Gr.default=It;Gr.gfm=Nt;Gr.commonmark=Nu;function Gr(e){var r=e||{};return r.commonmark?Nu:r.gfm?Nt:It}});var Mu=C((qv,zu)=>{"use strict";zu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Rt=C((Tv,Yu)=>{"use strict";Yu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu()}});var Vu=C((_v,Gu)=>{"use strict";var kD=Ie(),BD=Uu(),qD=Rt();Gu.exports=TD;function TD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=kD(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in qD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=BD(e),r}});var Hu=C((Sv,$u)=>{"use strict";$u.exports=ju;function ju(e){if(e==null)return PD;if(typeof e=="string")return OD(e);if(typeof e=="object")return"length"in e?SD(e):_D(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function _D(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function SD(e){for(var r=[],t=-1;++t{Wu.exports=LD;function LD(e){return e}});var Zu=C((Pv,Qu)=>{"use strict";Qu.exports=Vr;var ID=Hu(),ND=Ku(),Ju=!0,Xu="skip",Ut=!1;Vr.CONTINUE=Ju;Vr.SKIP=Xu;Vr.EXIT=Ut;function Vr(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=ID(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+ND(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||u(o,s,l[l.length-1]||null))&&(p=RD(t(o,l)),p[0]===Ut))return p;if(o.children&&p[0]!==Xu)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ea.exports=$r;var jr=Zu(),UD=jr.CONTINUE,zD=jr.SKIP,MD=jr.EXIT;$r.CONTINUE=UD;$r.SKIP=zD;$r.EXIT=MD;function $r(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),jr(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var na=C((Iv,ta)=>{"use strict";var YD=ra();ta.exports=GD;function GD(e,r){return YD(e,r?VD:jD),e}function VD(e){delete e.position}function jD(e){e.position=void 0}});var aa=C((Nv,ua)=>{"use strict";var ia=Ie(),$D=na();ua.exports=KD;var HD=` -`,WD=/\r\n|\r/g;function KD(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ia(t),a;return r=r.replace(WD,HD),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ia(t)}},e.options.position||$D(a,!0),a}});var sa=C((Rv,oa)=>{"use strict";var JD=/^[ \t]*(\n|$)/;oa.exports=XD;function XD(e,r,t){for(var n,a="",u=0,i=r.length;u{"use strict";var pe="",zt;ca.exports=QD;function QD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(zt!==e||typeof zt>"u")zt=e,pe="";else if(pe.length>=t)return pe.substr(0,t);for(;t>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,t),pe}});var Mt=C((zv,la)=>{"use strict";la.exports=ZD;function ZD(e){return String(e).replace(/\n+$/,"")}});var pa=C((Mv,Da)=>{"use strict";var ep=Hr(),rp=Mt();Da.exports=ip;var Yt=` -`,fa=" ",Gt=" ",tp=4,np=ep(Gt,tp);function ip(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n{"use strict";ha.exports=sp;var Wr=` -`,dr=" ",He=" ",up="~",da="`",ap=3,op=4;function sp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,D,h,p,d,m,F,y,E,B;if(a){for(;i=op)){for(p="";i{We=Fa.exports=cp;function cp(e){return e.trim?e.trim():We.right(We.left(e))}We.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};We.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Kr=C((Gv,ga)=>{"use strict";ga.exports=lp;function lp(e,r,t,n){for(var a=e.length,u=-1,i,o;++u{"use strict";var fp=Re(),Dp=Kr();Ca.exports=pp;var Vt=` -`,va=" ",jt=" ",Ea=">";function pp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,F,y,E,B,b,g;p{"use strict";Aa.exports=hp;var ya=` -`,hr=" ",mr=" ",Fr="#",dp=6;function hp(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,D;++idp)&&!(!D||!a&&r.charAt(i+1)===Fr)){for(u=r.length+1,f="";++i{"use strict";ka.exports=bp;var mp=" ",Fp=` -`,wa=" ",gp="*",vp="-",Ep="_",Cp=3;function bp(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n=Cp&&(!i||i===Fp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var $t=C((Hv,Ta)=>{"use strict";Ta.exports=wp;var qa=" ",yp=" ",Ap=1,xp=4;function wp(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===qa||n===yp;){for(u=n===qa?xp:Ap,t+=u,u>1&&(t=Math.floor(t/u)*u);i{"use strict";var kp=Re(),Bp=Hr(),qp=$t();Sa.exports=Sp;var _a=` -`,Tp=" ",_p="!";function Sp(e,r){var t=e.split(_a),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Bp(Tp,r)+_p);n--;)if(o=qp(t[n]),u[n]=o.stops,kp(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var Op=Re(),Pp=Hr(),Pa=Ne(),Lp=$t(),Ip=Oa(),Np=Kr();Ra.exports=jp;var Ht="*",Rp="_",La="+",Wt="-",Ia=".",de=" ",ie=` -`,Jr=" ",Na=")",Up="x",xe=4,zp=/\n\n(?!\s*$)/,Mp=/^\[([ X\tx])][ \t]/,Yp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Gp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Vp=/^( {1,4}|\t)?/gm;function jp(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v,w,k,q,T,R=!1,O,S,_,P;s=k.indent&&(P=!0),p=r.charAt(s),E=null,!P){if(p===Ht||p===La||p===Wt)E=p,s++,f++;else{for(D="";s=k.indent||f>xe),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===Ht||E===Rp||E===Wt)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Op(B).length,P&&k)k.value=k.value.concat(w,b),v=v.concat(w,b),w=[];else if(y)w.length!==0&&(R=!0,k.value.push(""),k.trail=w.concat()),k={value:[b],indent:f,trail:[]},x.push(k),v=v.concat(w,b),w=[];else if(A){if(g&&!a)break;w.push(b)}else{if(g||Np(o,i,n,[e,b,!0]))break;k.value=k.value.concat(w,b),v=v.concat(w,b),w=[]}s=m+1}for(O=e(v.join(ie)).reset({type:"list",ordered:h,start:c,spread:R,children:[]}),q=n.enterList(),T=n.enterBlock(),s=-1,l=x.length;++s{"use strict";Ya.exports=ed;var Kt=` -`,Kp=" ",za=" ",Ma="=",Jp="-",Xp=3,Qp=1,Zp=2;function ed(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,D;++i=Xp){i--;break}o+=c}for(s="",l="";++i{"use strict";var rd="[a-zA-Z_:][a-zA-Z0-9:._-]*",td="[^\"'=<>`\\u0000-\\u0020]+",nd="'[^']*'",id='"[^"]*"',ud="(?:"+td+"|"+nd+"|"+id+")",ad="(?:\\s+"+rd+"(?:\\s*=\\s*"+ud+")?)",Va="<[A-Za-z][A-Za-z0-9\\-]*"+ad+"*\\s*\\/?>",ja="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",od="|",sd="<[?].*?[?]>",cd="]*>",ld="";Jt.openCloseTag=new RegExp("^(?:"+Va+"|"+ja+")");Jt.tag=new RegExp("^(?:"+Va+"|"+ja+"|"+od+"|"+sd+"|"+cd+"|"+ld+")")});var Ka=C((Qv,Wa)=>{"use strict";var fd=Xt().openCloseTag;Wa.exports=wd;var Dd=" ",pd=" ",$a=` -`,dd="<",hd=/^<(script|pre|style)(?=(\s|>|$))/i,md=/<\/(script|pre|style)>/i,Fd=/^/,vd=/^<\?/,Ed=/\?>/,Cd=/^/,yd=/^/,Ha=/^$/,xd=new RegExp(fd.source+"\\s*$");function wd(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),i=r.length,o=0,s,l,c,f,D,h,p,d=[[hd,md,!0],[Fd,gd,!0],[vd,Ed,!0],[Cd,bd,!0],[yd,Ad,!0],[u,Ha,!0],[xd,Ha,!1]];o{"use strict";Ja.exports=qd;var kd=String.fromCharCode,Bd=/\s/;function qd(e){return Bd.test(typeof e=="number"?kd(e):e.charAt(0))}});var Qt=C((eE,Xa)=>{"use strict";var Td=xr();Xa.exports=_d;function _d(e){return Td(e).toLowerCase()}});var io=C((rE,no)=>{"use strict";var Sd=ue(),Od=Qt();no.exports=Nd;var Qa='"',Za="'",Pd="\\",Ke=` -`,Xr=" ",Qr=" ",en="[",gr="]",Ld="(",Id=")",eo=":",ro="<",to=">";function Nd(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,D,h,p,d;u{"use strict";var Ud=ue();ao.exports=Kd;var zd=" ",Zr=` -`,Md=" ",Yd="-",Gd=":",Vd="\\",rn="|",jd=1,$d=2,uo="left",Hd="center",Wd="right";function Kd(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];aA){if(E<$d)return;break}c.push(r.slice(a,A)),E++,a=A+1}for(o=c.join(Zr),u=c.splice(1,1)[0]||[],a=0,l=u.length,E--,i=!1,p=[];a1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(d,F)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===Vd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}y||e(Zr+u)}return g}}}});var lo=C((nE,co)=>{"use strict";var Jd=Re(),Xd=Mt(),Qd=Kr();co.exports=rh;var Zd=" ",vr=` -`,eh=" ",so=4;function rh(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(vr),l=r.length,c,f,D,h,p;s=so&&D!==vr){s=r.indexOf(vr,s+1);continue}}if(f=r.slice(s+1),Qd(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(vr,s+1),s!==-1&&Jd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=Xd(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var Do=C((iE,fo)=>{"use strict";fo.exports=th;function th(e,r){return e.indexOf("\\",r)}});var Fo=C((uE,mo)=>{"use strict";var nh=Do();mo.exports=ho;ho.locator=nh;var ih=` -`,po="\\";function ho(e,r,t){var n=this,a,u;if(r.charAt(0)===po&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===ih?u={type:"break"}:u={type:"text",value:a},e(po+a)(u))}});var tn=C((aE,go)=>{"use strict";go.exports=uh;function uh(e,r){return e.indexOf("<",r)}});var yo=C((oE,bo)=>{"use strict";var vo=ue(),ah=pr(),oh=tn();bo.exports=on;on.locator=oh;on.notInLink=!0;var Eo="<",nn=">",Co="@",un="/",an="mailto:",et=an.length;function on(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===Eo){for(i++,a=Eo;i{"use strict";Ao.exports=sh;function sh(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Bo=C((cE,ko)=>{"use strict";ko.exports=ch;var wo=["www.","http://","https://"];function ch(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=wo.length,n=-1;++n{"use strict";var qo=xo(),lh=pr(),fh=Ne(),sn=Ve(),Dh=ue(),ph=Bo();So.exports=ln;ln.locator=ph;ln.notInLink=!0;var dh=33,hh=38,mh=41,Fh=42,gh=44,vh=45,cn=46,Eh=58,Ch=59,bh=63,yh=60,To=95,Ah=126,xh="(",_o=")";function ln(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];DF;)D=h+p.lastIndexOf(_o),p=r.slice(h,D),y--;if(r.charCodeAt(D-1)===Ch&&(D--,sn(r.charCodeAt(D-1)))){for(m=D-2;sn(r.charCodeAt(m));)m--;r.charCodeAt(m)===hh&&(D=m)}return E=r.slice(0,D),b=lh(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var No=C((fE,Io)=>{"use strict";var wh=Ne(),kh=Ve(),Bh=43,qh=45,Th=46,_h=95;Io.exports=Lo;function Lo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Po(e.charCodeAt(a-1)))return Lo.call(t,e,n+1);for(;a>r&&Po(e.charCodeAt(a-1));)a--;return a}function Po(e){return wh(e)||kh(e)||e===Bh||e===qh||e===Th||e===_h}});var Mo=C((DE,zo)=>{"use strict";var Sh=pr(),Ro=Ne(),Uo=Ve(),Oh=No();zo.exports=pn;pn.locator=Oh;pn.notInLink=!0;var Ph=43,fn=45,rt=46,Lh=64,Dn=95;function pn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(i);Ro(l)||Uo(l)||l===Ph||l===fn||l===rt||l===Dn;)l=r.charCodeAt(++i);if(i!==0&&l===Lh){for(i++;i{"use strict";var Ih=Ve(),Nh=tn(),Rh=Xt().tag;Go.exports=Yo;Yo.locator=Nh;var Uh="<",zh="?",Mh="!",Yh="/",Gh=/^/i;function Yo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Uh||a<3)&&(u=r.charAt(1),!(!Ih(u)&&u!==zh&&u!==Mh&&u!==Yh)&&(i=r.match(Rh),!!i)))return t?!0:(i=i[0],!n.inLink&&Gh.test(i)?n.inLink=!0:n.inLink&&Vh.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var dn=C((dE,jo)=>{"use strict";jo.exports=jh;function jh(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var Er=ue(),$h=dn();Xo.exports=Jo;Jo.locator=$h;var Hh=` -`,Wh="!",$o='"',Ho="'",Je="(",Cr=")",hn="<",mn=">",Wo="[",br="\\",Kh="]",Ko="`";function Jo(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,h,p,d,m,F,y,E,B,b,g,A,x,v,w,k;if(i===Wh&&(F=!0,a=i,i=r.charAt(++u)),i===Wo&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u=D&&(D=0):D=f}else if(i===br)u++,d+=r.charAt(u);else if((!D||l)&&i===Wo)g++;else if((!D||l)&&i===Kh)if(g)g--;else{if(r.charAt(u+1)!==Je)return;d+=Je,c=!0,u++;break}A+=d,d="",u++}if(c){for(y=A,a+=A+d,u++;u{"use strict";var Jh=ue(),Xh=dn(),Qh=Qt();es.exports=Zo;Zo.locator=Xh;var Fn="link",Zh="image",e0="shortcut",r0="collapsed",gn="full",t0="!",tt="[",nt="\\",it="]";function Zo(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=Fn,f=e0,D,h,p,d,m,F,y,E;if(u===t0&&(c=Zh,l=u,u=r.charAt(++i)),u===tt){for(i++,l+=u,F="",E=0;i{"use strict";ts.exports=n0;function n0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var i0=Re(),is=ue(),u0=ns();as.exports=us;us.locator=u0;var a0="\\",o0="*",s0="_";function us(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==o0&&u!==s0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&is(r.charAt(a)))))for(;a{"use strict";ss.exports=f0;var c0=String.fromCharCode,l0=/\w/;function f0(e){return l0.test(typeof e=="number"?c0(e):e.charAt(0))}});var fs=C((EE,ls)=>{"use strict";ls.exports=D0;function D0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var p0=Re(),d0=cs(),Ds=ue(),h0=fs();hs.exports=ds;ds.locator=h0;var m0="*",ps="_",F0="\\";function ds(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==m0&&u!==ps)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&Ds(r.charAt(a)))))for(;a{"use strict";Fs.exports=g0;function g0(e,r){return e.indexOf("~~",r)}});var ys=C((yE,bs)=>{"use strict";var vs=ue(),v0=gs();bs.exports=Cs;Cs.locator=v0;var ut="~",Es="~~";function Cs(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==ut||r.charAt(1)!==ut||vs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";As.exports=E0;function E0(e,r){return e.indexOf("`",r)}});var Bs=C((xE,ks)=>{"use strict";var C0=xs();ks.exports=ws;ws.locator=C0;var vn=10,En=32,Cn=96;function ws(e,r,t){for(var n=r.length,a=0,u,i,o,s,l,c;a2&&(s===En||s===vn)&&(l===En||l===vn)){for(a++,n--;a{"use strict";qs.exports=b0;function b0(e,r){for(var t=e.indexOf(` -`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Os=C((kE,Ss)=>{"use strict";var y0=Ts();Ss.exports=_s;_s.locator=y0;var A0=" ",x0=` -`,w0=2;function _s(e,r,t){for(var n=r.length,a=-1,u="",i;++a{"use strict";Ps.exports=k0;function k0(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,h;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,D=r.length;++i{"use strict";var B0=Ie(),at=ru(),q0=nu(),T0=uu(),_0=Ou(),bn=Iu();Rs.exports=Is;function Is(e,r){this.file=r,this.offset={},this.options=B0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=q0(r).toOffset,this.unescape=T0(this,"escape"),this.decode=_0(this)}var U=Is.prototype;U.setOptions=Vu();U.parse=aa();U.options=Rt();U.exitStart=at("atStart",!0);U.enterList=at("inList",!1);U.enterLink=at("inLink",!1);U.enterBlock=at("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:sa(),indentedCode:pa(),fencedCode:ma(),blockquote:ba(),atxHeading:xa(),thematicBreak:Ba(),list:Ua(),setextHeading:Ga(),html:Ka(),definition:io(),table:oo(),paragraph:lo()};U.inlineTokenizers={escape:Fo(),autoLink:yo(),url:Oo(),email:Mo(),html:Vo(),link:Qo(),reference:rs(),strong:os(),emphasis:ms(),deletion:ys(),code:Bs(),break:Os(),text:Ls()};U.blockMethods=Ns(U.blockTokenizers);U.inlineMethods=Ns(U.inlineTokenizers);U.tokenizeBlock=bn("block");U.tokenizeInline=bn("inline");U.tokenizeFactory=bn;function Ns(e){var r=[],t;for(t in e)r.push(t);return r}});var Gs=C((TE,Ys)=>{"use strict";var S0=Zi(),O0=Ie(),zs=Us();Ys.exports=Ms;Ms.Parser=zs;function Ms(e){var r=this.data("settings"),t=S0(zs);t.prototype.options=O0(t.prototype.options,r,e),this.Parser=t}});var js=C((_E,Vs)=>{"use strict";Vs.exports=P0;function P0(e){if(e)throw e}});var yn=C((SE,$s)=>{$s.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var rc=C((OE,ec)=>{"use strict";var ot=Object.prototype.hasOwnProperty,Zs=Object.prototype.toString,Hs=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Ks=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Zs.call(r)==="[object Array]"},Js=function(r){if(!r||Zs.call(r)!=="[object Object]")return!1;var t=ot.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ot.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||ot.call(r,a)},Xs=function(r,t){Hs&&t.name==="__proto__"?Hs(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},Qs=function(r,t){if(t==="__proto__")if(ot.call(r,t)){if(Ws)return Ws(r,t).value}else return;return r[t]};ec.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";tc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var uc=C((LE,ic)=>{"use strict";var L0=[].slice;ic.exports=I0;function I0(e,r){var t;return n;function n(){var i=L0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var lc=C((IE,cc)=>{"use strict";var oc=uc();cc.exports=sc;sc.wrap=oc;var ac=[].slice;function sc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=ac.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=ac.call(arguments,0),f=c.slice(1),D=u.length,h=-1;if(s){i(s);return}for(;++h{"use strict";var Xe={}.hasOwnProperty;pc.exports=N0;function N0(e){return!e||typeof e!="object"?"":Xe.call(e,"position")||Xe.call(e,"type")?fc(e.position):Xe.call(e,"start")||Xe.call(e,"end")?fc(e):Xe.call(e,"line")||Xe.call(e,"column")?An(e):""}function An(e){return(!e||typeof e!="object")&&(e={}),Dc(e.line)+":"+Dc(e.column)}function fc(e){return(!e||typeof e!="object")&&(e={}),An(e.start)+"-"+An(e.end)}function Dc(e){return e&&typeof e=="number"?e:1}});var Fc=C((RE,mc)=>{"use strict";var R0=dc();mc.exports=xn;function hc(){}hc.prototype=Error.prototype;xn.prototype=new hc;var we=xn.prototype;we.file="";we.name="";we.reason="";we.message="";we.stack="";we.fatal=null;we.column=null;we.line=null;function xn(e,r,t){var n,a,u;typeof r=="string"&&(t=r,r=null),n=U0(t),a=R0(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function U0(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var gc=C(Qe=>{"use strict";Qe.basename=z0;Qe.dirname=M0;Qe.extname=Y0;Qe.join=G0;Qe.sep="/";function z0(e,r){var t=0,n=-1,a,u,i,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(yr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function M0(e){var r,t,n;if(yr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function Y0(e){var r=-1,t=0,n=-1,a=0,u,i,o;for(yr(e),o=e.length;o--;){if(i=e.charCodeAt(o),i===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),i===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function G0(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=i,u=0;continue}}else if(t.length){t="",n=0,a=i,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,i):t=e.slice(a+1,i),n=i-a-1;a=i,u=0}else o===46&&u>-1?u++:u=-1}return t}function yr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Ec=C(vc=>{"use strict";vc.cwd=$0;function $0(){return"/"}});var yc=C((ME,bc)=>{"use strict";var ae=gc(),H0=Ec(),W0=yn();bc.exports=he;var K0={}.hasOwnProperty,wn=["history","path","basename","stem","extname","dirname"];he.prototype.toString=am;Object.defineProperty(he.prototype,"path",{get:J0,set:X0});Object.defineProperty(he.prototype,"dirname",{get:Q0,set:Z0});Object.defineProperty(he.prototype,"basename",{get:em,set:rm});Object.defineProperty(he.prototype,"extname",{get:tm,set:nm});Object.defineProperty(he.prototype,"stem",{get:im,set:um});function he(e){var r,t;if(!e)e={};else if(typeof e=="string"||W0(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=H0.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ae.join(this.dirname,this.stem+(e||""))}function im(){return typeof this.path=="string"?ae.basename(this.path,this.extname):void 0}function um(e){Bn(e,"stem"),kn(e,"stem"),this.path=ae.join(this.dirname||"",e+(this.extname||""))}function am(e){return(this.contents||"").toString(e)}function kn(e,r){if(e&&e.indexOf(ae.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ae.sep+"`")}function Bn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Cc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var xc=C((YE,Ac)=>{"use strict";var om=Fc(),st=yc();Ac.exports=st;st.prototype.message=sm;st.prototype.info=lm;st.prototype.fail=cm;function sm(e,r,t){var n=new om(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function cm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function lm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var kc=C((GE,wc)=>{"use strict";wc.exports=xc()});var Ic=C((VE,Lc)=>{"use strict";var Bc=js(),fm=yn(),ct=rc(),qc=nc(),Oc=lc(),Ar=kc();Lc.exports=Pc().freeze();var Dm=[].slice,pm={}.hasOwnProperty,dm=Oc().use(hm).use(mm).use(Fm);function hm(e,r){r.tree=e.parse(r.file)}function mm(e,r,t){e.run(r.tree,r.file,n);function n(a,u,i){a?t(a):(r.tree=u,r.file=i,t())}}function Fm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||fm(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Pc(){var e=[],r=Oc(),t={},n=-1,a;return u.data=o,u.freeze=i,u.attachers=e,u.use=s,u.parse=c,u.stringify=h,u.run=f,u.runSync=D,u.process=p,u.processSync=d,u;function u(){for(var m=Pc(),F=-1;++F_i,options:()=>Si,parsers:()=>On,printers:()=>qm});var al=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},N=al;var ol=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},M=ol;var qi=Ue(xr(),1);function Be(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $="string",H="array",ge="cursor",ee="indent",re="align",oe="trim",K="group",J="fill",X="if-break",se="indent-if-break",ce="line-suffix",le="line-suffix-boundary",W="line",fe="label",te="break-parent",wr=new Set([ge,ee,re,oe,K,J,X,se,ce,le,W,fe,te]);function cl(e){if(typeof e=="string")return $;if(Array.isArray(e))return H;if(!e)return;let{type:r}=e;if(wr.has(r))return r}var Y=cl;var ll=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function fl(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', -Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=ll([...wr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Dt=class extends Error{name="InvalidDocError";constructor(r){super(fl(r)),this.doc=r}},qe=Dt;var Nn={};function Dl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===Nn){t(a.pop());continue}t&&a.push(u,Nn);let i=Y(u);if(!i)throw new qe(u);if((r==null?void 0:r(u))!==!1)switch(i){case H:case J:{let o=i===H?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case X:a.push(u.flatContents,u.breakContents);break;case K:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case re:case ee:case se:case fe:case ce:a.push(u.contents);break;case $:case ge:case oe:case le:case W:case te:break;default:throw new qe(u)}}}var Rn=Dl;var Un=()=>{},Te=Un,kr=Un;function Ze(e){return Te(e),{type:ee,contents:e}}function ve(e,r){return Te(r),{type:re,contents:r,n:e}}function ze(e,r={}){return Te(e),kr(r.expandedStates,!0),{type:K,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return ve({type:"root"},e)}function Ee(e){return kr(e),{type:J,parts:e}}function zn(e,r="",t={}){return Te(e),r!==""&&Te(r),{type:X,breakContents:e,flatContents:r,groupId:t.groupId}}var er={type:te};var rr={type:W,hard:!0},pl={type:W,hard:!0,literal:!0},Br={type:W},qr={type:W,soft:!0},L=[rr,er],tr=[pl,er];function Tr(e,r){Te(e),kr(r);let t=[];for(let n=0;n0){let r=M(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Yn(e){let r=new Set,t=[];function n(u){if(u.type===te&&Mn(t),u.type===K){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===K&&t.pop().break&&Mn(t)}Rn(e,n,a,!0)}function Ce(e,r=tr){return dl(e,t=>typeof t=="string"?Tr(r,t.split(` -`)):t)}function hl(e,r){let t=e.match(new RegExp(`(${Be(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var _r=hl;function ml(e,r){let t=e.match(new RegExp(`(${Be(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;uu?n:t}var jn=Fl;var pt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},$n=pt;var Xn=Ue(xr(),1);function gl(e){return(e==null?void 0:e.type)==="front-matter"}var Hn=gl;var nr=3;function vl(e){let r=e.slice(0,nr);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` -`,nr);if(t===-1)return;let n=e.slice(nr,t).trim(),a=e.indexOf(` +`,k+1);w===-1?c+=v.length:c=v.length-w,l in u&&(w!==-1?c+=u[l]:c<=u[l]&&(c=u[l]+1))}function y(){var v=[],w=l+1;return function(){for(var k=l+1;w{"use strict";Wu.exports=jr;var Mt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],zt=Mt.concat(["~","|"]),$u=zt.concat([` +`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);jr.default=Mt;jr.gfm=zt;jr.commonmark=$u;function jr(e){var r=e||{};return r.commonmark?$u:r.gfm?zt:Mt}});var Ju=C((jv,Ku)=>{"use strict";Ku.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Yt=C(($v,Xu)=>{"use strict";Xu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Ju()}});var Zu=C((Wv,Qu)=>{"use strict";var ID=Ie(),ND=Hu(),RD=Yt();Qu.exports=UD;function UD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=ID(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in RD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=ND(e),r}});var ta=C((Hv,ra)=>{"use strict";ra.exports=ea;function ea(e){if(e==null)return GD;if(typeof e=="string")return YD(e);if(typeof e=="object")return"length"in e?zD(e):MD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function MD(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function zD(e){for(var r=[],t=-1;++t{na.exports=VD;function VD(e){return e}});var sa=C((Jv,oa)=>{"use strict";oa.exports=$r;var jD=ta(),$D=ia(),ua=!0,aa="skip",Gt=!1;$r.CONTINUE=ua;$r.SKIP=aa;$r.EXIT=Gt;function $r(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=jD(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+$D(c.type+(f?"<"+f+">":""))+")"),D;function D(){var d=l.concat(o),p=[],h,m;if((!r||u(o,s,l[l.length-1]||null))&&(p=WD(t(o,l)),p[0]===Gt))return p;if(o.children&&p[0]!==aa)for(m=(n?o.children.length:-1)+a;m>-1&&m{"use strict";ca.exports=Hr;var Wr=sa(),HD=Wr.CONTINUE,KD=Wr.SKIP,JD=Wr.EXIT;Hr.CONTINUE=HD;Hr.SKIP=KD;Hr.EXIT=JD;function Hr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Wr(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var Da=C((Qv,fa)=>{"use strict";var XD=la();fa.exports=QD;function QD(e,r){return XD(e,r?ZD:ep),e}function ZD(e){delete e.position}function ep(e){e.position=void 0}});var da=C((Zv,ha)=>{"use strict";var pa=Ie(),rp=Da();ha.exports=ip;var tp=` +`,np=/\r\n|\r/g;function ip(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=pa(t),a;return r=r.replace(np,tp),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||pa(t)}},e.options.position||rp(a,!0),a}});var Fa=C((eE,ma)=>{"use strict";var up=/^[ \t]*(\n|$)/;ma.exports=ap;function ap(e,r,t){for(var n,a="",u=0,i=r.length;u{"use strict";var me="",Vt;ga.exports=op;function op(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Vt!==e||typeof Vt>"u")Vt=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var jt=C((tE,va)=>{"use strict";va.exports=sp;function sp(e){return String(e).replace(/\n+$/,"")}});var ba=C((nE,Ca)=>{"use strict";var cp=Kr(),lp=jt();Ca.exports=pp;var $t=` +`,Ea=" ",Wt=" ",fp=4,Dp=cp(Wt,fp);function pp(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n{"use strict";Aa.exports=Fp;var Jr=` +`,mr=" ",Je=" ",hp="~",ya="`",dp=3,mp=4;function Fp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,D,d,p,h,m,F,y,E,B;if(a){for(;i=mp)){for(p="";i{Xe=wa.exports=gp;function gp(e){return e.trim?e.trim():Xe.right(Xe.left(e))}Xe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Xe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Xr=C((uE,ka)=>{"use strict";ka.exports=vp;function vp(e,r,t,n){for(var a=e.length,u=-1,i,o;++u{"use strict";var Ep=Re(),Cp=Xr();qa.exports=bp;var Ht=` +`,Ba=" ",Kt=" ",Ta=">";function bp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],d,p=0,h,m,F,y,E,B,b,g;p{"use strict";Oa.exports=Ap;var Sa=` +`,Fr=" ",gr=" ",vr="#",yp=6;function Ap(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,D;++iyp)&&!(!D||!a&&r.charAt(i+1)===vr)){for(u=r.length+1,f="";++i{"use strict";Ia.exports=_p;var xp=" ",wp=` +`,Pa=" ",kp="*",Bp="-",Tp="_",qp=3;function _p(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n=qp&&(!i||i===wp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var Jt=C((cE,Ua)=>{"use strict";Ua.exports=Pp;var Ra=" ",Sp=" ",Op=1,Lp=4;function Pp(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===Ra||n===Sp;){for(u=n===Ra?Lp:Op,t+=u,u>1&&(t=Math.floor(t/u)*u);i{"use strict";var Ip=Re(),Np=Kr(),Rp=Jt();za.exports=zp;var Ma=` +`,Up=" ",Mp="!";function zp(e,r){var t=e.split(Ma),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Np(Up,r)+Mp);n--;)if(o=Rp(t[n]),u[n]=o.stops,Ip(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent{"use strict";var Yp=Re(),Gp=Kr(),Ga=Ne(),Vp=Jt(),jp=Ya(),$p=Xr();Wa.exports=eh;var Xt="*",Wp="_",Va="+",Qt="-",ja=".",Fe=" ",ae=` +`,Qr=" ",$a=")",Hp="x",we=4,Kp=/\n\n(?!\s*$)/,Jp=/^\[([ X\tx])][ \t]/,Xp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Qp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Zp=/^( {1,4}|\t)?/gm;function eh(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v,w,k,T,q,R=!1,O,S,_,L;s=k.indent&&(L=!0),p=r.charAt(s),E=null,!L){if(p===Xt||p===Va||p===Qt)E=p,s++,f++;else{for(D="";s=k.indent||f>we),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===Xt||E===Wp||E===Qt)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Yp(B).length,L&&k)k.value=k.value.concat(w,b),v=v.concat(w,b),w=[];else if(y)w.length!==0&&(R=!0,k.value.push(""),k.trail=w.concat()),k={value:[b],indent:f,trail:[]},x.push(k),v=v.concat(w,b),w=[];else if(A){if(g&&!a)break;w.push(b)}else{if(g||$p(o,i,n,[e,b,!0]))break;k.value=k.value.concat(w,b),v=v.concat(w,b),w=[]}s=m+1}for(O=e(v.join(ae)).reset({type:"list",ordered:d,start:c,spread:R,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=x.length;++s{"use strict";Xa.exports=ch;var Zt=` +`,ih=" ",Ka=" ",Ja="=",uh="-",ah=3,oh=1,sh=2;function ch(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,D;++i=ah){i--;break}o+=c}for(s="",l="";++i{"use strict";var lh="[a-zA-Z_:][a-zA-Z0-9:._-]*",fh="[^\"'=<>`\\u0000-\\u0020]+",Dh="'[^']*'",ph='"[^"]*"',hh="(?:"+fh+"|"+Dh+"|"+ph+")",dh="(?:\\s+"+lh+"(?:\\s*=\\s*"+hh+")?)",Za="<[A-Za-z][A-Za-z0-9\\-]*"+dh+"*\\s*\\/?>",eo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mh="|",Fh="<[?].*?[?]>",gh="]*>",vh="";en.openCloseTag=new RegExp("^(?:"+Za+"|"+eo+")");en.tag=new RegExp("^(?:"+Za+"|"+eo+"|"+mh+"|"+Fh+"|"+gh+"|"+vh+")")});var io=C((hE,no)=>{"use strict";var Eh=rn().openCloseTag;no.exports=Ph;var Ch=" ",bh=" ",ro=` +`,yh="<",Ah=/^<(script|pre|style)(?=(\s|>|$))/i,xh=/<\/(script|pre|style)>/i,wh=/^/,Bh=/^<\?/,Th=/\?>/,qh=/^/,Sh=/^/,to=/^$/,Lh=new RegExp(Eh.source+"\\s*$");function Ph(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^|$))","i"),i=r.length,o=0,s,l,c,f,D,d,p,h=[[Ah,xh,!0],[wh,kh,!0],[Bh,Th,!0],[qh,_h,!0],[Sh,Oh,!0],[u,to,!0],[Lh,to,!1]];o{"use strict";uo.exports=Rh;var Ih=String.fromCharCode,Nh=/\s/;function Rh(e){return Nh.test(typeof e=="number"?Ih(e):e.charAt(0))}});var tn=C((mE,ao)=>{"use strict";var Uh=kr();ao.exports=Mh;function Mh(e){return Uh(e).toLowerCase()}});var po=C((FE,Do)=>{"use strict";var zh=oe(),Yh=tn();Do.exports=$h;var oo='"',so="'",Gh="\\",Qe=` +`,Zr=" ",et=" ",un="[",Er="]",Vh="(",jh=")",co=":",lo="<",fo=">";function $h(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,D,d,p,h;u{"use strict";var Hh=oe();mo.exports=id;var Kh=" ",rt=` +`,Jh=" ",Xh="-",Qh=":",Zh="\\",an="|",ed=1,rd=2,ho="left",td="center",nd="right";function id(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];aA){if(E1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+D),f="",h=""):(f&&(h+=f,f=""),h+=D,D===Zh&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}y||e(rt+u)}return g}}}});var Eo=C((vE,vo)=>{"use strict";var ud=Re(),ad=jt(),od=Xr();vo.exports=ld;var sd=" ",Cr=` +`,cd=" ",go=4;function ld(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,D,d,p;s=go&&D!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),od(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&ud(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(p=e.now(),f=ad(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,p)}))}});var bo=C((EE,Co)=>{"use strict";Co.exports=fd;function fd(e,r){return e.indexOf("\\",r)}});var wo=C((CE,xo)=>{"use strict";var Dd=bo();xo.exports=Ao;Ao.locator=Dd;var pd=` +`,yo="\\";function Ao(e,r,t){var n=this,a,u;if(r.charAt(0)===yo&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===pd?u={type:"break"}:u={type:"text",value:a},e(yo+a)(u))}});var on=C((bE,ko)=>{"use strict";ko.exports=hd;function hd(e,r){return e.indexOf("<",r)}});var So=C((yE,_o)=>{"use strict";var Bo=oe(),dd=dr(),md=on();_o.exports=fn;fn.locator=md;fn.notInLink=!0;var To="<",sn=">",qo="@",cn="/",ln="mailto:",tt=ln.length;function fn(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,D,d,p;if(r.charAt(0)===To){for(i++,a=To;i{"use strict";Oo.exports=Fd;function Fd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var No=C((xE,Io)=>{"use strict";Io.exports=gd;var Po=["www.","http://","https://"];function gd(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=Po.length,n=-1;++n{"use strict";var Ro=Lo(),vd=dr(),Ed=Ne(),Dn=We(),Cd=oe(),bd=No();zo.exports=hn;hn.locator=bd;hn.notInLink=!0;var yd=33,Ad=38,xd=41,wd=42,kd=44,Bd=45,pn=46,Td=58,qd=59,_d=63,Sd=60,Uo=95,Od=126,Ld="(",Mo=")";function hn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,D,d,p,h,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];DF;)D=d+p.lastIndexOf(Mo),p=r.slice(d,D),y--;if(r.charCodeAt(D-1)===qd&&(D--,Dn(r.charCodeAt(D-1)))){for(m=D-2;Dn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Ad&&(D=m)}return E=r.slice(0,D),b=vd(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var $o=C((kE,jo)=>{"use strict";var Pd=Ne(),Id=We(),Nd=43,Rd=45,Ud=46,Md=95;jo.exports=Vo;function Vo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Go(e.charCodeAt(a-1)))return Vo.call(t,e,n+1);for(;a>r&&Go(e.charCodeAt(a-1));)a--;return a}function Go(e){return Pd(e)||Id(e)||e===Nd||e===Rd||e===Ud||e===Md}});var Jo=C((BE,Ko)=>{"use strict";var zd=dr(),Wo=Ne(),Ho=We(),Yd=$o();Ko.exports=Fn;Fn.locator=Yd;Fn.notInLink=!0;var Gd=43,dn=45,nt=46,Vd=64,mn=95;function Fn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(i);Wo(l)||Ho(l)||l===Gd||l===dn||l===nt||l===mn;)l=r.charCodeAt(++i);if(i!==0&&l===Vd){for(i++;i{"use strict";var jd=We(),$d=on(),Wd=rn().tag;Qo.exports=Xo;Xo.locator=$d;var Hd="<",Kd="?",Jd="!",Xd="/",Qd=/^/i;function Xo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Hd||a<3)&&(u=r.charAt(1),!(!jd(u)&&u!==Kd&&u!==Jd&&u!==Xd)&&(i=r.match(Wd),!!i)))return t?!0:(i=i[0],!n.inLink&&Qd.test(i)?n.inLink=!0:n.inLink&&Zd.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var gn=C((qE,es)=>{"use strict";es.exports=e0;function e0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t{"use strict";var br=oe(),r0=gn();as.exports=us;us.locator=r0;var t0=` +`,n0="!",rs='"',ts="'",Ze="(",yr=")",vn="<",En=">",ns="[",Ar="\\",i0="]",is="`";function us(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,D,d,p,h,m,F,y,E,B,b,g,A,x,v,w,k;if(i===n0&&(F=!0,a=i,i=r.charAt(++u)),i===ns&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u=D&&(D=0):D=f}else if(i===Ar)u++,h+=r.charAt(u);else if((!D||l)&&i===ns)g++;else if((!D||l)&&i===i0)if(g)g--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}A+=h,h="",u++}if(c){for(y=A,a+=A+h,u++;u{"use strict";var u0=oe(),a0=gn(),o0=tn();cs.exports=ss;ss.locator=a0;var Cn="link",s0="image",c0="shortcut",l0="collapsed",bn="full",f0="!",it="[",ut="\\",at="]";function ss(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=Cn,f=c0,D,d,p,h,m,F,y,E;if(u===f0&&(c=s0,l=u,u=r.charAt(++i)),u===it){for(i++,l+=u,F="",E=0;i{"use strict";fs.exports=D0;function D0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n{"use strict";var p0=Re(),ps=oe(),h0=Ds();ds.exports=hs;hs.locator=h0;var d0="\\",m0="*",F0="_";function hs(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==m0&&u!==F0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&ps(r.charAt(a)))))for(;a{"use strict";Fs.exports=E0;var g0=String.fromCharCode,v0=/\w/;function E0(e){return v0.test(typeof e=="number"?g0(e):e.charAt(0))}});var Es=C((IE,vs)=>{"use strict";vs.exports=C0;function C0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n{"use strict";var b0=Re(),y0=gs(),Cs=oe(),A0=Es();As.exports=ys;ys.locator=A0;var x0="*",bs="_",w0="\\";function ys(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,D;if(!(u!==x0&&u!==bs)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&Cs(r.charAt(a)))))for(;a{"use strict";ws.exports=k0;function k0(e,r){return e.indexOf("~~",r)}});var Ss=C((UE,_s)=>{"use strict";var Bs=oe(),B0=ks();_s.exports=qs;qs.locator=B0;var ot="~",Ts="~~";function qs(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==ot||r.charAt(1)!==ot||Bs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";Os.exports=T0;function T0(e,r){return e.indexOf("`",r)}});var Ns=C((zE,Is)=>{"use strict";var q0=Ls();Is.exports=Ps;Ps.locator=q0;var yn=10,An=32,xn=96;function Ps(e,r,t){for(var n=r.length,a=0,u,i,o,s,l,c;a2&&(s===An||s===yn)&&(l===An||l===yn)){for(a++,n--;a{"use strict";Rs.exports=_0;function _0(e,r){for(var t=e.indexOf(` +`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Ys=C((GE,zs)=>{"use strict";var S0=Us();zs.exports=Ms;Ms.locator=S0;var O0=" ",L0=` +`,P0=2;function Ms(e,r,t){for(var n=r.length,a=-1,u="",i;++a{"use strict";Gs.exports=I0;function I0(e,r,t){var n=this,a,u,i,o,s,l,c,f,D,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,D=r.length;++i{"use strict";var N0=Ie(),st=lu(),R0=Du(),U0=hu(),M0=Yu(),wn=ju();Ws.exports=js;function js(e,r){this.file=r,this.offset={},this.options=N0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=R0(r).toOffset,this.unescape=U0(this,"escape"),this.decode=M0(this)}var U=js.prototype;U.setOptions=Zu();U.parse=da();U.options=Yt();U.exitStart=st("atStart",!0);U.enterList=st("inList",!1);U.enterLink=st("inLink",!1);U.enterBlock=st("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:Fa(),indentedCode:ba(),fencedCode:xa(),blockquote:_a(),atxHeading:La(),thematicBreak:Na(),list:Ha(),setextHeading:Qa(),html:io(),definition:po(),table:Fo(),paragraph:Eo()};U.inlineTokenizers={escape:wo(),autoLink:So(),url:Yo(),email:Jo(),html:Zo(),link:os(),reference:ls(),strong:ms(),emphasis:xs(),deletion:Ss(),code:Ns(),break:Ys(),text:Vs()};U.blockMethods=$s(U.blockTokenizers);U.inlineMethods=$s(U.inlineTokenizers);U.tokenizeBlock=wn("block");U.tokenizeInline=wn("inline");U.tokenizeFactory=wn;function $s(e){var r=[],t;for(t in e)r.push(t);return r}});var Qs=C(($E,Xs)=>{"use strict";var z0=su(),Y0=Ie(),Ks=Hs();Xs.exports=Js;Js.Parser=Ks;function Js(e){var r=this.data("settings"),t=z0(Ks);t.prototype.options=Y0(t.prototype.options,r,e),this.Parser=t}});var ec=C((WE,Zs)=>{"use strict";Zs.exports=G0;function G0(e){if(e)throw e}});var kn=C((HE,rc)=>{rc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var lc=C((KE,cc)=>{"use strict";var ct=Object.prototype.hasOwnProperty,sc=Object.prototype.toString,tc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,ic=function(r){return typeof Array.isArray=="function"?Array.isArray(r):sc.call(r)==="[object Array]"},uc=function(r){if(!r||sc.call(r)!=="[object Object]")return!1;var t=ct.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ct.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||ct.call(r,a)},ac=function(r,t){tc&&t.name==="__proto__"?tc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},oc=function(r,t){if(t==="__proto__")if(ct.call(r,t)){if(nc)return nc(r,t).value}else return;return r[t]};cc.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";fc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var hc=C((XE,pc)=>{"use strict";var V0=[].slice;pc.exports=j0;function j0(e,r){var t;return n;function n(){var i=V0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var vc=C((QE,gc)=>{"use strict";var mc=hc();gc.exports=Fc;Fc.wrap=mc;var dc=[].slice;function Fc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=dc.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=dc.call(arguments,0),f=c.slice(1),D=u.length,d=-1;if(s){i(s);return}for(;++d{"use strict";var er={}.hasOwnProperty;bc.exports=$0;function $0(e){return!e||typeof e!="object"?"":er.call(e,"position")||er.call(e,"type")?Ec(e.position):er.call(e,"start")||er.call(e,"end")?Ec(e):er.call(e,"line")||er.call(e,"column")?Bn(e):""}function Bn(e){return(!e||typeof e!="object")&&(e={}),Cc(e.line)+":"+Cc(e.column)}function Ec(e){return(!e||typeof e!="object")&&(e={}),Bn(e.start)+"-"+Bn(e.end)}function Cc(e){return e&&typeof e=="number"?e:1}});var wc=C((eC,xc)=>{"use strict";var W0=yc();xc.exports=Tn;function Ac(){}Ac.prototype=Error.prototype;Tn.prototype=new Ac;var ke=Tn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Tn(e,r,t){var n,a,u;typeof r=="string"&&(t=r,r=null),n=H0(t),a=W0(r)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(u=r,r=r.start):u.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=u,this.source=n[0],this.ruleId=n[1]}function H0(e){var r=[null,null],t;return typeof e=="string"&&(t=e.indexOf(":"),t===-1?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1))),r}});var kc=C(rr=>{"use strict";rr.basename=K0;rr.dirname=J0;rr.extname=X0;rr.join=Q0;rr.sep="/";function K0(e,r){var t=0,n=-1,a,u,i,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(xr(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(t,n)}if(r===e)return"";for(u=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(i){t=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(n=a):(o=-1,n=u));return t===n?n=u:n<0&&(n=e.length),e.slice(t,n)}function J0(e){var r,t,n;if(xr(e),!e.length)return".";for(r=-1,n=e.length;--n;)if(e.charCodeAt(n)===47){if(t){r=n;break}}else t||(t=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function X0(e){var r=-1,t=0,n=-1,a=0,u,i,o;for(xr(e),o=e.length;o--;){if(i=e.charCodeAt(o),i===47){if(u){t=o+1;break}continue}n<0&&(u=!0,n=o+1),i===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===t+1?"":e.slice(r,n)}function Q0(){for(var e=-1,r;++e2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",n=0):(t=t.slice(0,s),n=t.length-1-t.lastIndexOf("/")),a=i,u=0;continue}}else if(t.length){t="",n=0,a=i,u=0;continue}}r&&(t=t.length?t+"/..":"..",n=2)}else t.length?t+="/"+e.slice(a+1,i):t=e.slice(a+1,i),n=i-a-1;a=i,u=0}else o===46&&u>-1?u++:u=-1}return t}function xr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var Tc=C(Bc=>{"use strict";Bc.cwd=rm;function rm(){return"/"}});var Sc=C((nC,_c)=>{"use strict";var se=kc(),tm=Tc(),nm=kn();_c.exports=ge;var im={}.hasOwnProperty,qn=["history","path","basename","stem","extname","dirname"];ge.prototype.toString=dm;Object.defineProperty(ge.prototype,"path",{get:um,set:am});Object.defineProperty(ge.prototype,"dirname",{get:om,set:sm});Object.defineProperty(ge.prototype,"basename",{get:cm,set:lm});Object.defineProperty(ge.prototype,"extname",{get:fm,set:Dm});Object.defineProperty(ge.prototype,"stem",{get:pm,set:hm});function ge(e){var r,t;if(!e)e={};else if(typeof e=="string"||nm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof ge))return new ge(e);for(this.data={},this.messages=[],this.history=[],this.cwd=tm.cwd(),t=-1;++t-1)throw new Error("`extname` cannot contain multiple dots")}this.path=se.join(this.dirname,this.stem+(e||""))}function pm(){return typeof this.path=="string"?se.basename(this.path,this.extname):void 0}function hm(e){Sn(e,"stem"),_n(e,"stem"),this.path=se.join(this.dirname||"",e+(this.extname||""))}function dm(e){return(this.contents||"").toString(e)}function _n(e,r){if(e&&e.indexOf(se.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+se.sep+"`")}function Sn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function qc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var Lc=C((iC,Oc)=>{"use strict";var mm=wc(),lt=Sc();Oc.exports=lt;lt.prototype.message=Fm;lt.prototype.info=vm;lt.prototype.fail=gm;function Fm(e,r,t){var n=new mm(e,r,t);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}function gm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function vm(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var Ic=C((uC,Pc)=>{"use strict";Pc.exports=Lc()});var jc=C((aC,Vc)=>{"use strict";var Nc=ec(),Em=kn(),ft=lc(),Rc=Dc(),Yc=vc(),wr=Ic();Vc.exports=Gc().freeze();var Cm=[].slice,bm={}.hasOwnProperty,ym=Yc().use(Am).use(xm).use(wm);function Am(e,r){r.tree=e.parse(r.file)}function xm(e,r,t){e.run(r.tree,r.file,n);function n(a,u,i){a?t(a):(r.tree=u,r.file=i,t())}}function wm(e,r){var t=e.stringify(r.tree,r.file);t==null||(typeof t=="string"||Em(t)?("value"in r.file&&(r.file.value=t),r.file.contents=t):r.file.result=t)}function Gc(){var e=[],r=Yc(),t={},n=-1,a;return u.data=o,u.freeze=i,u.attachers=e,u.use=s,u.parse=c,u.stringify=d,u.run=f,u.runSync=D,u.process=p,u.processSync=h,u;function u(){for(var m=Gc(),F=-1;++FMi,options:()=>zi,parsers:()=>Nn,printers:()=>Rm});var dl=(e,r,t,n)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(t,n):t.global?r.replace(t,n):r.split(t).join(n)},N=dl;var ml=(e,r,t)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[t<0?r.length+t:t]:r.at(t)},z=ml;var Ri=Ue(kr(),1);function le(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var $="string",W="array",Ce="cursor",re="indent",te="align",fe="trim",K="group",J="fill",X="if-break",De="indent-if-break",pe="line-suffix",he="line-suffix-boundary",H="line",de="label",ne="break-parent",Br=new Set([Ce,re,te,fe,K,J,X,De,pe,he,H,de,ne]);function gl(e){if(typeof e=="string")return $;if(Array.isArray(e))return W;if(!e)return;let{type:r}=e;if(Br.has(r))return r}var Y=gl;var vl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function El(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', +Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=vl([...Br].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var ht=class extends Error{name="InvalidDocError";constructor(r){super(El(r)),this.doc=r}},Te=ht;var jn={};function Cl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===jn){t(a.pop());continue}t&&a.push(u,jn);let i=Y(u);if(!i)throw new Te(u);if((r==null?void 0:r(u))!==!1)switch(i){case W:case J:{let o=i===W?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case X:a.push(u.flatContents,u.breakContents);break;case K:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case te:case re:case De:case de:case pe:a.push(u.contents);break;case $:case Ce:case fe:case he:case H:case ne:break;default:throw new Te(u)}}}var $n=Cl;var Wn=()=>{},qe=Wn,Tr=Wn;function tr(e){return qe(e),{type:re,contents:e}}function be(e,r){return qe(r),{type:te,contents:r,n:e}}function Me(e,r={}){return qe(e),Tr(r.expandedStates,!0),{type:K,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return be({type:"root"},e)}function ze(e){return Tr(e),{type:J,parts:e}}function Hn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:X,breakContents:e,flatContents:r,groupId:t.groupId}}var nr={type:ne};var ir={type:H,hard:!0},bl={type:H,hard:!0,literal:!0},qr={type:H},_r={type:H,soft:!0},P=[ir,nr],ur=[bl,nr];function Sr(e,r){qe(e),Tr(r);let t=[];for(let n=0;n0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===ne&&Kn(t),u.type===K){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===K&&t.pop().break&&Kn(t)}$n(e,n,a,!0)}function ye(e,r=ur){return yl(e,t=>typeof t=="string"?Sr(r,t.split(` +`)):t)}function Al(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Or=Al;function xl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;uu?n:t}var Zn=wl;var dt=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ei=dt;var ui=Ue(kr(),1);function kl(e){return(e==null?void 0:e.type)==="front-matter"}var ri=kl;var ar=3;function Bl(e){let r=e.slice(0,ar);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(` +`,ar);if(t===-1)return;let n=e.slice(ar,t).trim(),a=e.indexOf(` ${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&u==="yaml"&&(a=e.indexOf(` -...`,t)),a===-1)return;let i=a+1+nr,o=e.charAt(i+1);if(!/\s?/u.test(o))return;let s=e.slice(0,i);return{type:"front-matter",language:u,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-nr),raw:s}}function El(e){let r=vl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:N(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var ir=El;var Wn=["format","prettier"];function dt(e){let r=`@(${Wn.join("|")})`,t=new RegExp([``,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,``,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,``].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var Kn=e=>dt(ir(e).content.trimStart()),Jn=e=>{let r=ir(e),t=``;return r.frontMatter?`${r.frontMatter.raw} +.*-->`].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var ni=e=>mt(or(e).content.trimStart()),ii=e=>{let r=or(e),t=``;return r.frontMatter?`${r.frontMatter.raw} ${t} ${r.content}`:`${t} -${r.content}`};var Cl=new Set(["position","raw"]);function Qn(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,` -`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,Xn.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||Hn(t.children[0])&&t.children[1]===e)&&e.type==="html"&&dt(e.value))return null}Qn.ignoredProperties=Cl;var Zn=Qn;var ei=/(?:[\u02ea-\u02eb\u1100-\u11ff\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u303f\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u3190-\u4dbf\u4e00-\u9fff\ua700-\ua707\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufe10-\ufe1f\ufe30-\ufe6f\uff00-\uffef]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883\ud885-\ud887][\udc00-\udfff]|\ud81b[\udfe3]|\ud82b[\udff0-\udff3\udff5-\udffb\udffd-\udffe]|\ud82c[\udc00-\udd22\udd32\udd50-\udd52\udd55\udd64-\udd67]|\ud83c[\ude00\ude50-\ude51]|\ud869[\udc00-\udedf\udf00-\udfff]|\ud86d[\udc00-\udf39\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a\udf50-\udfff]|\ud888[\udc00-\udfaf])(?:[\ufe00-\ufe0f]|\udb40[\udd00-\uddef])?/u,Se=/(?:[\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function bl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,L,n,n?L:"",e.endDelimiter])}}var ri=bl;var yl=e=>String(e).split(/[/\\]/u).pop();function ti(e,r){if(!r)return;let t=yl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Al(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function xl(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Al(t,r.language)??ti(t,r.physicalFile)??ti(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var ni=xl;var wl=new Proxy(()=>{},{get:()=>wl});function Oe(e){return e.position.start.offset}function Pe(e){return e.position.end.offset}var ht=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or=new Set([...ht,"tableCell","paragraph","heading"]),Le="non-cjk",De="cj-letter",be="k-letter",ur="cjk-punctuation",kl=/\p{Script_Extensions=Hangul}/u;function Pr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` -`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${ei.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Le,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(M(!1,s,-1))});continue}n(Se.test(s)?{type:"word",value:s,kind:ur,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:kl.test(s)?be:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=M(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Le,ur)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Me(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function ii(e,r){return!e.ordered||e.children.length<2||Me(e.children[1],r).number!==1?!1:Me(e.children[0],r).number!==0?!0:e.children.length>2&&Me(e.children[2],r).number===1}function Lr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` +${r.content}`};var ql=new Set(["position","raw"]);function ai(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,` +`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,ui.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ri(t.children[0])&&t.children[1]===e)&&e.type==="html"&&mt(e.value))return null}ai.ignoredProperties=ql;var oi=ai;var si=/(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{309f}\u{30a1}-\u{30fa}\u{30fc}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function _l(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,P,n,n?P:"",e.endDelimiter])}}var ci=_l;var Sl=e=>String(e).split(/[/\\]/u).pop();function li(e,r){if(!r)return;let t=Sl(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ol(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function Ll(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Ol(t,r.language)??li(t,r.physicalFile)??li(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var fi=Ll;var Pl=new Proxy(()=>{},{get:()=>Pl});function Oe(e){return e.position.start.offset}function Le(e){return e.position.end.offset}var Ft=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Pr=new Set([...Ft,"tableCell","paragraph","heading"]),Ge="non-cjk",ie="cj-letter",Pe="k-letter",sr="cjk-punctuation",Il=/\p{Script_Extensions=Hangul}/u;function Ir(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?` +`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${si.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Ge,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Il.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=z(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Ge,sr)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?\d+)(\.|\))(?\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function Di(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Nr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(` `)&&r.endsWith(` -`)?t.slice(0,-1):t}function ye(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function mt(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Pe(e)===Pe(r)}function Bl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=ni(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,_r(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Lr(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",L,Ce(s),L,i])}}switch(t.type){case"front-matter":return n=>ri(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ui=Bl;var ar=null;function or(e){if(ar!==null&&typeof ar.property){let r=ar;return ar=or.prototype=null,r}return ar=or.prototype=e??Object.create(null),new or}var ql=10;for(let e=0;e<=ql;e++)or();function Ft(e){return or(e)}function Tl(e,r="type"){Ft(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var ai=Tl;var _l={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},oi=_l;var Sl=ai(oi),si=Sl;function ci(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`)?t.slice(0,-1):t}function Ae(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function gt(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Le(e)===Le(r)}function Nl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=fi(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Or(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Nr(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",P,ye(s),P,i])}}switch(t.type){case"front-matter":return n=>ci(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var pi=Nl;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var Rl=10;for(let e=0;e<=Rl;e++)lr();function vt(e){return lr(e)}function Ul(e,r="type"){vt(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var hi=Ul;var Ml={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},di=Ml;var zl=hi(di),mi=zl;function Fi(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var li=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\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F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function fi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Di(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var pi=e=>!(fi(e)||Di(e));var Ol=/[^\x20-\x7F]/u;function Pl(e){if(!e)return 0;if(!Ol.test(e))return e.length;e=e.replace(li()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=pi(n)?1:2)}return r}var sr=Pl;var G=Symbol("MODE_BREAK"),ne=Symbol("MODE_FLAT"),cr=Symbol("cursor");function di(){return{value:"",length:0,queue:[]}}function Ll(e,r){return gt(e,{type:"indent"},r)}function Il(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||di():r<0?gt(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:gt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function gt(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",u=0,i=0,o=0;for(let p of n)switch(p.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:u,queue:n};function s(p){a+=" ".repeat(p),u+=t.tabWidth*p}function l(p){a+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){i>0&&s(i),h()}function D(){o>0&&l(o),h()}function h(){i=0,o=0}}function vt(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===cr){t++;continue}for(let u=a.length-1;u>=0;u--){let i=a[u];if(i===" "||i===" ")r++;else{e[n]=a.slice(0,u+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(cr);return r}function Ir(e,r,t,n,a,u){if(t===Number.POSITIVE_INFINITY)return!0;let i=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(r[--i]);continue}let{mode:l,doc:c}=o.pop(),f=Y(c);switch(f){case $:s.push(c),t-=sr(c);break;case H:case J:{let D=f===H?c:c.parts;for(let h=D.length-1;h>=0;h--)o.push({mode:l,doc:D[h]});break}case ee:case re:case se:case fe:o.push({mode:l,doc:c.contents});break;case oe:t+=vt(s);break;case K:{if(u&&c.break)return!1;let D=c.break?G:l,h=c.expandedStates&&D===G?M(!1,c.expandedStates,-1):c.contents;o.push({mode:D,doc:h});break}case X:{let h=(c.groupId?a[c.groupId]||ne:l)===G?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case W:if(l===G||c.hard)return!0;c.soft||(s.push(" "),t--);break;case ce:n=!0;break;case le:if(n)return!1;break}}return!1}function hi(e,r){let t={},n=r.printWidth,a=ci(r.endOfLine),u=0,i=[{ind:di(),mode:G,doc:e}],o=[],s=!1,l=[],c=0;for(Yn(e);i.length>0;){let{ind:D,mode:h,doc:p}=i.pop();switch(Y(p)){case $:{let d=a!==` +`}}var gi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFF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|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function vi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ei(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Ci=e=>!(vi(e)||Ei(e));var Yl=/[^\x20-\x7F]/u;function Gl(e){if(!e)return 0;if(!Yl.test(e))return e.length;e=e.replace(gi()," ");let r=0;for(let t of e){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(r+=Ci(n)?1:2)}return r}var fr=Gl;var G=Symbol("MODE_BREAK"),ue=Symbol("MODE_FLAT"),Ve=Symbol("cursor"),bi=Symbol("DOC_FILL_PRINTED_LENGTH");function yi(){return{value:"",length:0,queue:[]}}function Vl(e,r){return Et(e,{type:"indent"},r)}function jl(e,r,t){return r===Number.NEGATIVE_INFINITY?e.root||yi():r<0?Et(e,{type:"dedent"},t):r?r.type==="root"?{...e,root:e}:Et(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},t):e}function Et(e,r,t){let n=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",u=0,i=0,o=0;for(let p of n)switch(p.type){case"indent":c(),t.useTabs?s(1):l(t.tabWidth);break;case"stringAlign":c(),a+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:u,queue:n};function s(p){a+=" ".repeat(p),u+=t.tabWidth*p}function l(p){a+=" ".repeat(p),u+=p}function c(){t.useTabs?f():D()}function f(){i>0&&s(i),d()}function D(){o>0&&l(o),d()}function d(){i=0,o=0}}function Ct(e){let r=0,t=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Ve){t++;continue}for(let u=a.length-1;u>=0;u--){let i=a[u];if(i===" "||i===" ")r++;else{e[n]=a.slice(0,u+1);break e}}}if(r>0||t>0)for(e.length=n+1;t-- >0;)e.push(Ve);return r}function Rr(e,r,t,n,a,u){if(t===Number.POSITIVE_INFINITY)return!0;let i=r.length,o=[e],s=[];for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(r[--i]);continue}let{mode:l,doc:c}=o.pop(),f=Y(c);switch(f){case $:s.push(c),t-=fr(c);break;case W:case J:{let D=f===W?c:c.parts;for(let d=D.length-1;d>=0;d--)o.push({mode:l,doc:D[d]});break}case re:case te:case De:case de:o.push({mode:l,doc:c.contents});break;case fe:t+=Ct(s);break;case K:{if(u&&c.break)return!1;let D=c.break?G:l,d=c.expandedStates&&D===G?z(!1,c.expandedStates,-1):c.contents;o.push({mode:D,doc:d});break}case X:{let d=(c.groupId?a[c.groupId]||ue:l)===G?c.breakContents:c.flatContents;d&&o.push({mode:l,doc:d});break}case H:if(l===G||c.hard)return!0;c.soft||(s.push(" "),t--);break;case pe:n=!0;break;case he:if(n)return!1;break}}return!1}function Ai(e,r){let t={},n=r.printWidth,a=Fi(r.endOfLine),u=0,i=[{ind:yi(),mode:G,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);i.length>0;){let{ind:D,mode:d,doc:p}=i.pop();switch(Y(p)){case $:{let h=a!==` `?N(!1,p,` -`,a):p;o.push(d),i.length>0&&(u+=sr(d));break}case H:for(let d=p.length-1;d>=0;d--)i.push({ind:D,mode:h,doc:p[d]});break;case ge:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(cr),c++;break;case ee:i.push({ind:Ll(D,r),mode:h,doc:p.contents});break;case re:i.push({ind:Il(D,p.n,r),mode:h,doc:p.contents});break;case oe:u-=vt(o);break;case K:switch(h){case ne:if(!s){i.push({ind:D,mode:p.break?G:ne,doc:p.contents});break}case G:{s=!1;let d={ind:D,mode:ne,doc:p.contents},m=n-u,F=l.length>0;if(!p.break&&Ir(d,i,m,F,t))i.push(d);else if(p.expandedStates){let y=M(!1,p.expandedStates,-1);if(p.break){i.push({ind:D,mode:G,doc:y});break}else for(let E=1;E=p.expandedStates.length){i.push({ind:D,mode:G,doc:y});break}else{let B=p.expandedStates[E],b={ind:D,mode:ne,doc:B};if(Ir(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:D,mode:G,doc:p.contents});break}}p.id&&(t[p.id]=M(!1,i,-1).mode);break;case J:{let d=n-u,{parts:m}=p;if(m.length===0)break;let[F,y]=m,E={ind:D,mode:ne,doc:F},B={ind:D,mode:G,doc:F},b=Ir(E,[],d,l.length>0,t,!0);if(m.length===1){b?i.push(E):i.push(B);break}let g={ind:D,mode:ne,doc:y},A={ind:D,mode:G,doc:y};if(m.length===2){b?i.push(g,E):i.push(A,B);break}m.splice(0,2);let x={ind:D,mode:h,doc:Ee(m)},v=m[0];Ir({ind:D,mode:ne,doc:[F,y,v]},[],d,l.length>0,t,!0)?i.push(x,g,E):b?i.push(x,A,E):i.push(x,A,B);break}case X:case se:{let d=p.groupId?t[p.groupId]:h;if(d===G){let m=p.type===X?p.breakContents:p.negate?p.contents:Ze(p.contents);m&&i.push({ind:D,mode:h,doc:m})}if(d===ne){let m=p.type===X?p.flatContents:p.negate?Ze(p.contents):p.contents;m&&i.push({ind:D,mode:h,doc:m})}break}case ce:l.push({ind:D,mode:h,doc:p.contents});break;case le:l.length>0&&i.push({ind:D,mode:h,doc:rr});break;case W:switch(h){case ne:if(p.hard)s=!0;else{p.soft||(o.push(" "),u+=1);break}case G:if(l.length>0){i.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),u=D.root.length):(o.push(a),u=0):(u-=vt(o),o.push(a+D.value),u=D.length);break}break;case fe:i.push({ind:D,mode:h,doc:p.contents});break;case te:break;default:throw new qe(p)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(cr);if(f!==-1){let D=o.indexOf(cr,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}function mi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let D=hi(t(),r).formatted,h=sr(D);return a[f]=Math.max(a[f]??3,h),{text:D,width:h}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[er,i];let o=s(!0);return[er,ze(zn(o,i))];function s(f){return Tr(rr,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return a.map((D,h)=>{let p=n.align[h],d=p==="center"||p==="left"?":":"-",m=p==="center"||p==="right"?":":"-",F=f?"-":"-".repeat(D-2);return`${d}${F}${m}`})}function c(f,D){return f.map(({text:h,width:p},d)=>{if(D)return h;let m=a[d]-p,F=n.align[d],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${h}${" ".repeat(E)}`})}}function Fi(e,r,t){let n=e.map(t,"children");return Nl(n)}function Nl(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===H){t(a);continue}let i=a,o=[];u===J&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),Ee(r)}var Rl=/^.$/su;function Ul(e,r){return e=zl(e,r),e=Yl(e),e=Vl(e,r),e=jl(e,r),e=Gl(e),e}function zl(e,r){return ye(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Rl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Ml(e,r,t){return ye(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=M(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function Yl(e){return Ml(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function Gl(e){return ye(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=a.trimStart()),t===n.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Pr(a)}})}function Vl(e,r){return ye(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Me(i,r).leadingSpaces.length>1}}var gi=Ul;function vi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==$){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),Ee(t)}var $l=new Set(["heading","tableCell","link","wikiLink"]),Hl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),Wl=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB\u3099\u309A`),Ei=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Kl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function Jl(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return bi(a)&&bi(u)||a===be&&u===De||u===be&&a===De?!0:a===ur||u===ur||a===De&&u===De?!1:Ei.has(n.value[0])||Ei.has(M(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:Kl(e)}function Ci(e){return e===Le||e===De||e===be}function bi(e){return e===Le||e===be}function Xl(e,r,t,n,a){if(t!=="always"||e.hasAncestor(s=>$l.has(s.type)))return!1;if(n)return r!=="";if(r===" ")return!0;let{previous:u,next:i}=e;return!(r===""&&((u==null?void 0:u.kind)===be&&Ci(i==null?void 0:i.kind)||(i==null?void 0:i.kind)===be&&Ci(u==null?void 0:u.kind))||!a&&(i&&Wl.has(i.value[0])||u&&Hl.has(M(!1,u.value,-1))))}function Et(e,r,t,n){if(t==="preserve"&&r===` -`)return L;let a=r===" "||r===` -`&&Jl(e,n);return Xl(e,r,t,n,a)?a?Br:qr:a?" ":""}var Ql=new Set(["listItem","definition"]);function Zl(e,r,t){var a,u;let{node:n}=e;if(af(e)){let i=[""],o=Pr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=Et(e,s.value,r.proseWrap,!0);if(Y(l)===$){i.push([i.pop(),l]);continue}i.push(l)}return Ee(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[tf(e,r,t),L];case"paragraph":return Fi(e,r,t);case"sentence":return vi(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,D,h)=>N(!1,f?`${c}${f}`:`${D}${h}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>mt(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return Et(e,n.value,o)}case"emphasis":{let i;if(mt(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=M(!1,o.children,-1))==null?void 0:a.type)==="word"&&!M(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,V(e,r,t),i]}case"strong":return["**",V(e,r,t),"**"];case"delete":return["~~",V(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,` -`," "),o=Gn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",V(e,r,t),"](",Ct(n.url,")"),Nr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Ct(n.url,")"),Nr(n.title,r),")"];case"blockquote":return["> ",ve("> ",V(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",V(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ve(s,[s,Ce(n.value,L)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,_r(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",L,Ce(Lr(n,r.originalText),L),L,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^$/su.test(s);return Ce(s,l?L:_e(tr))}case"list":{let i=Ai(n,e.parent),o=ii(n,r);return V(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,yi(s,r,t,l)];return[l,ve(" ".repeat(l.length),yi(s,r,t,l))];function f(){let D=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?ef(D,r):D}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Ai(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",V(e,r,t),"]",n.referenceType==="full"?bt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",bt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?Br:" ";return ze([bt(n),":",Ze([i,Ct(n.url),n.title===null?"":[i,Nr(n.title,r,!1)]])])}case"footnote":return["[^",V(e,r,t),"]"];case"footnoteReference":return Bi(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Bi(n),": ",i?V(e,r,t):ze([ve(" ".repeat(4),V(e,r,t,{processor:({isFirst:o})=>o?ze([qr,t()]):t()}))])]}case"table":return mi(e,r,t);case"tableCell":return V(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(tr)]:["\\",L];case"liquidNode":return Ce(n.value,L);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",L,n.value?[Ce(n.value,L),L]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Pe(n));case"tableRow":case"listItem":case"text":default:throw new $n(n,"Markdown")}}function yi(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,V(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return ve(" ".repeat(u.length),t());let s=" ".repeat(sf(r.tabWidth-n.length,0,3));return[s,ve(s,t())]}})]}function ef(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Ai(e,r){return rf(e,r,t=>t.ordered===e.ordered)}function rf(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function tf(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(yt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return V(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[xi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),xi(u[o.end.index])];if(o.start.index{let i=a(e);i!==!1&&(u.length>0&&nf(e)&&(u.push(L),(uf(e,r)||ki(e))&&u.push(L),ki(e)&&u.push(L)),u.push(i))},"children"),u}function xi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function yt(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function nf({node:e,parent:r}){let t=ht.has(e.type),n=e.type==="html"&&Or.has(r.type);return!t&&!n}function wi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` -`)}function uf({node:e,previous:r,parent:t},n){if(wi(r,n))return!0;let i=r.type===e.type&&Ql.has(e.type),o=t.type==="listItem"&&!wi(t,n),s=yt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function ki({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function af(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var of=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function Ct(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>Be(n)).join("|"),"u").test(e)?`<${of(e,"<>")}>`:e}function Nr(e,r,t=!0){if(!e)return"";if(t)return" "+Nr(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=jn(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function sf(e,r,t){return et?t:e}function cf(e){return e.index>0&&yt(e.previous)==="next"}function bt(e){return`[${(0,qi.default)(e.label)}]`}function Bi(e){return`[^${e.label}]`}var lf={preprocess:gi,print:Zl,embed:ui,massageAstNode:Zn,hasPrettierIgnore:cf,insertPragma:Jn,getVisitorKeys:si},Ti=lf;var _i=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var At={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var ff={proseWrap:At.proseWrap,singleQuote:At.singleQuote},Si=ff;var On={};Ln(On,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc=Ue(Pi(),1),Kc=Ue(Wi(),1),Jc=Ue(Gs(),1),Xc=Ue(Ic(),1);var vm=/^import\s/u,Em=/^export\s/u,Nc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Rc=/|/u,Cm=/^\{\s*\/\*(.*)\*\/\s*\}/u,bm=` +`,a):p;o.push(h),i.length>0&&(u+=fr(h));break}case W:for(let h=p.length-1;h>=0;h--)i.push({ind:D,mode:d,doc:p[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:i.push({ind:Vl(D,r),mode:d,doc:p.contents});break;case te:i.push({ind:jl(D,p.n,r),mode:d,doc:p.contents});break;case fe:u-=Ct(o);break;case K:switch(d){case ue:if(!s){i.push({ind:D,mode:p.break?G:ue,doc:p.contents});break}case G:{s=!1;let h={ind:D,mode:ue,doc:p.contents},m=n-u,F=l.length>0;if(!p.break&&Rr(h,i,m,F,t))i.push(h);else if(p.expandedStates){let y=z(!1,p.expandedStates,-1);if(p.break){i.push({ind:D,mode:G,doc:y});break}else for(let E=1;E=p.expandedStates.length){i.push({ind:D,mode:G,doc:y});break}else{let B=p.expandedStates[E],b={ind:D,mode:ue,doc:B};if(Rr(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:D,mode:G,doc:p.contents});break}}p.id&&(t[p.id]=z(!1,i,-1).mode);break;case J:{let h=n-u,m=p[bi]??0,{parts:F}=p,y=F.length-m;if(y===0)break;let E=F[m+0],B=F[m+1],b={ind:D,mode:ue,doc:E},g={ind:D,mode:G,doc:E},A=Rr(b,[],h,l.length>0,t,!0);if(y===1){A?i.push(b):i.push(g);break}let x={ind:D,mode:ue,doc:B},v={ind:D,mode:G,doc:B};if(y===2){A?i.push(x,b):i.push(v,g);break}let w=F[m+2],k={ind:D,mode:d,doc:{...p,[bi]:m+2}};Rr({ind:D,mode:ue,doc:[E,B,w]},[],h,l.length>0,t,!0)?i.push(k,x,b):A?i.push(k,v,b):i.push(k,v,g);break}case X:case De:{let h=p.groupId?t[p.groupId]:d;if(h===G){let m=p.type===X?p.breakContents:p.negate?p.contents:tr(p.contents);m&&i.push({ind:D,mode:d,doc:m})}if(h===ue){let m=p.type===X?p.flatContents:p.negate?tr(p.contents):p.contents;m&&i.push({ind:D,mode:d,doc:m})}break}case pe:l.push({ind:D,mode:d,doc:p.contents});break;case he:l.length>0&&i.push({ind:D,mode:d,doc:ir});break;case H:switch(d){case ue:if(p.hard)s=!0;else{p.soft||(o.push(" "),u+=1);break}case G:if(l.length>0){i.push({ind:D,mode:d,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),u=D.root.length):(o.push(a),u=0):(u-=Ct(o),o.push(a+D.value),u=D.length);break}break;case de:i.push({ind:D,mode:d,doc:p.contents});break;case ne:break;default:throw new Te(p)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let D=o.indexOf(Ve,f+1);if(D===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),h=o.slice(D+1).join("");return{formatted:d+p+h,cursorNodeStart:d.length,cursorNodeText:p}}return{formatted:o.join("")}}function xi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let D=Ai(t(),r).formatted,d=fr(D);return a[f]=Math.max(a[f]??3,d),{text:D,width:d}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[nr,i];let o=s(!0);return[nr,Me(Hn(o,i))];function s(f){return Sr(ir,[c(u[0],f),l(f),...u.slice(1).map(D=>c(D,f))].map(D=>`| ${D.join(" | ")} |`))}function l(f){return a.map((D,d)=>{let p=n.align[d],h=p==="center"||p==="left"?":":"-",m=p==="center"||p==="right"?":":"-",F=f?"-":"-".repeat(D-2);return`${h}${F}${m}`})}function c(f,D){return f.map(({text:d,width:p},h)=>{if(D)return d;let m=a[h]-p,F=n.align[h],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${d}${" ".repeat(E)}`})}}function wi(e,r,t){let n=e.map(t,"children");return $l(n)}function $l(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===W){t(a);continue}let i=a,o=[];u===J&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),ze(r)}var Q,bt=class{constructor(r){Yn(this,Q);Gn(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var ki=bt;var Wl=[" ",` +`,"\f","\r"," "],Hl=new ki(Wl),yt=Hl;var Kl=/^.$/su;function Jl(e,r){return e=Xl(e,r),e=Zl(e),e=rf(e,r),e=tf(e,r),e=ef(e),e}function Xl(e,r){return Ae(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Kl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Ql(e,r,t){return Ae(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=z(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function Zl(e){return Ql(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function ef(e){return Ae(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=yt.trimStart(a)),t===n.children.length-1&&(a=yt.trimEnd(a))),{type:"sentence",position:r.position,children:Ir(a)}})}function rf(e,r){return Ae(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Ye(i,r).leadingSpaces.length>1}}var Bi=Jl;function Ti(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==$){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var nf=new Set(["heading","tableCell","link","wikiLink"]),qi=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function uf({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;nr[""]}return e.usesCJSpaces}function af(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return _i(a)&&_i(u)||a===Pe&&u===ie||u===Pe&&a===ie?!0:a===sr||u===sr||a===ie&&u===ie?!1:qi.has(n.value[0])||qi.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:uf(e)}function _i(e){return e===Ge||e===Pe}function of(e,r,t,n){if(t!=="always"||e.hasAncestor(i=>nf.has(i.type)))return!1;if(n)return r!=="";let{previous:a,next:u}=e;return!a||!u?!0:r===""?!1:a.kind===Pe&&u.kind===ie||u.kind===Pe&&a.kind===ie?!0:!(a.isCJ||u.isCJ)}function At(e,r,t,n){if(t==="preserve"&&r===` +`)return P;let a=r===" "||r===` +`&&af(e,n);return of(e,r,t,n)?a?qr:_r:a?" ":""}var sf=new Set(["listItem","definition"]);function cf(e,r,t){var a,u;let{node:n}=e;if(df(e)){let i=[""],o=Ir(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=At(e,s.value,r.proseWrap,!0);if(Y(l)===$){i.push([i.pop(),l]);continue}i.push(l,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[Df(e,r,t),P];case"paragraph":return wi(e,r,t);case"sentence":return Ti(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,D,d)=>N(!1,f?`${c}${f}`:`${D}${d}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>gt(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return At(e,n.value,o)}case"emphasis":{let i;if(gt(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=z(!1,o.children,-1))==null?void 0:a.type)==="word"&&!z(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,V(e,r,t),i]}case"strong":return["**",V(e,r,t),"**"];case"delete":return["~~",V(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,` +`," "),o=Xn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",V(e,r,t),"](",xt(n.url,")"),Ur(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",xt(n.url,")"),Ur(n.title,r),")"];case"blockquote":return["> ",be("> ",V(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",V(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return be(s,[s,ye(n.value,P)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Or(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",P,ye(Nr(n,r.originalText),P),P,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^$/su.test(s);return ye(s,l?P:_e(ur))}case"list":{let i=Oi(n,e.parent),o=Di(n,r);return V(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,Si(s,r,t,l)];return[l,be(" ".repeat(l.length),Si(s,r,t,l))];function f(){let D=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?lf(D,r):D}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Oi(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",V(e,r,t),"]",n.referenceType==="full"?wt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",wt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?qr:" ";return Me([wt(n),":",tr([i,xt(n.url),n.title===null?"":[i,Ur(n.title,r,!1)]])])}case"footnote":return["[^",V(e,r,t),"]"];case"footnoteReference":return Ni(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Ni(n),": ",i?V(e,r,t):Me([be(" ".repeat(4),V(e,r,t,{processor:({isFirst:o})=>o?Me([_r,t()]):t()}))])]}case"table":return xi(e,r,t);case"tableCell":return V(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(ur)]:["\\",P];case"liquidNode":return ye(n.value,P);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",P,n.value?[ye(n.value,P),P]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Le(n));case"tableRow":case"listItem":case"text":default:throw new ei(n,"Markdown")}}function Si(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,V(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return be(" ".repeat(u.length),t());let s=" ".repeat(Ff(r.tabWidth-n.length,0,3));return[s,be(s,t())]}})]}function lf(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Oi(e,r){return ff(e,r,t=>t.ordered===e.ordered)}function ff(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function Df(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(kt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return V(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Li(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Li(u[o.end.index])];if(o.start.index{let i=a(e);i!==!1&&(u.length>0&&pf(e)&&(u.push(P),(hf(e,r)||Ii(e))&&u.push(P),Ii(e)&&u.push(P)),u.push(i))},"children"),u}function Li(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function kt(e){let r;if(e.type==="html")r=e.value.match(/^$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function pf({node:e,parent:r}){let t=Ft.has(e.type),n=e.type==="html"&&Pr.has(r.type);return!t&&!n}function Pi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` +`)}function hf({node:e,previous:r,parent:t},n){if(Pi(r,n))return!0;let i=r.type===e.type&&sf.has(e.type),o=t.type==="listItem"&&!Pi(t,n),s=kt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function Ii({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function df(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var mf=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function xt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${mf(e,"<>")}>`:e}function Ur(e,r,t=!0){if(!e)return"";if(t)return" "+Ur(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=Zn(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function Ff(e,r,t){return Math.max(r,Math.min(e,t))}function gf(e){return e.index>0&&kt(e.previous)==="next"}function wt(e){return`[${(0,Ri.default)(e.label)}]`}function Ni(e){return`[^${e.label}]`}var vf={preprocess:Bi,print:cf,embed:pi,massageAstNode:oi,hasPrettierIgnore:gf,insertPragma:ii,getVisitorKeys:mi},Ui=vf;var Mi=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var Bt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ef={proseWrap:Bt.proseWrap,singleQuote:Bt.singleQuote},zi=Ef;var Nn={};Mn(Nn,{markdown:()=>Im,mdx:()=>Nm,remark:()=>Im});var nl=Ue(Gi(),1),il=Ue(nu(),1),ul=Ue(Qs(),1),al=Ue(jc(),1);var Bm=/^import\s/u,Tm=/^export\s/u,$c=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Wc=/|/u,qm=/^\{\s*\/\*(.*)\*\/\s*\}/u,_m=` -`,Uc=e=>vm.test(e),Sn=e=>Em.test(e),zc=(e,r)=>{let t=r.indexOf(bm),n=r.slice(0,t);if(Sn(n)||Uc(n))return e(n)({type:Sn(n)?"export":"import",value:n})},Mc=(e,r)=>{let t=Cm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};zc.locator=e=>Sn(e)||Uc(e)?-1:1;Mc.locator=(e,r)=>e.indexOf("{",r);var Yc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=zc,n.esComment=Mc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var ym=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=ir(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Gc=ym;function Am(){return e=>ye(e,(r,t,[n])=>r.type!=="html"||Rc.test(r.value)||Or.has(n.type)?r:{...r,type:"jsx"})}var Vc=Am;var xm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},jc=xm;var wm=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},$c=wm;function Qc({isMDX:e}){return r=>{let t=(0,Xc.default)().use(Jc.default,{commonmark:!0,...e&&{blocks:[Nc]}}).use(Wc.default).use(Gc).use(Kc.default).use(e?Yc:Hc).use(jc).use(e?Vc:Hc).use($c);return t.run(t.parse(r))}}function Hc(){}var Zc={astFormat:"mdast",hasPragma:Kn,locStart:Oe,locEnd:Pe},km={...Zc,parse:Qc({isMDX:!1})},Bm={...Zc,parse:Qc({isMDX:!0})};var qm={mdast:Ti};var fC=Pn;export{fC as default,_i as languages,Si as options,On as parsers,qm as printers}; +`,Hc=e=>Bm.test(e),In=e=>Tm.test(e),Kc=(e,r)=>{let t=r.indexOf(_m),n=r.slice(0,t);if(In(n)||Hc(n))return e(n)({type:In(n)?"export":"import",value:n})},Jc=(e,r)=>{let t=qm.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};Kc.locator=e=>In(e)||Hc(e)?-1:1;Jc.locator=(e,r)=>e.indexOf("{",r);var Xc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=Kc,n.esComment=Jc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Sm=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=or(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Qc=Sm;function Om(){return e=>Ae(e,(r,t,[n])=>r.type!=="html"||Wc.test(r.value)||Pr.has(n.type)?r:{...r,type:"jsx"})}var Zc=Om;var Lm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},el=Lm;var Pm=function(){let e="wikiLink",r=/^\[\[(?.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},rl=Pm;function ol({isMDX:e}){return r=>{let t=(0,al.default)().use(ul.default,{commonmark:!0,...e&&{blocks:[$c]}}).use(nl.default).use(Qc).use(il.default).use(e?Xc:tl).use(el).use(e?Zc:tl).use(rl);return t.run(t.parse(r))}}function tl(){}var sl={astFormat:"mdast",hasPragma:ni,locStart:Oe,locEnd:Le},Im={...sl,parse:ol({isMDX:!1})},Nm={...sl,parse:ol({isMDX:!0})};var Rm={mdast:Ui};var kC=Rn;export{kC as default,Mi as languages,zi as options,Nn as parsers,Rm as printers}; diff --git a/node_modules/prettier/plugins/meriyah.js b/node_modules/prettier/plugins/meriyah.js index 85f116aa..9a35a9a8 100644 --- a/node_modules/prettier/plugins/meriyah.js +++ b/node_modules/prettier/plugins/meriyah.js @@ -1,4 +1,4 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var _2=Object.defineProperty;var v1=Object.getOwnPropertyDescriptor;var T1=Object.getOwnPropertyNames;var F1=Object.prototype.hasOwnProperty;var be=(e,u)=>{for(var n in u)_2(e,n,{get:u[n],enumerable:!0})},q1=(e,u,n,t)=>{if(u&&typeof u=="object"||typeof u=="function")for(let i of T1(u))!F1.call(e,i)&&i!==n&&_2(e,i,{get:()=>u[i],enumerable:!(t=v1(u,i))||t.enumerable});return e};var L1=e=>q1(_2({},"__esModule",{value:!0}),e);var N0={};be(N0,{parsers:()=>De});var De={};be(De,{meriyah:()=>I0});var I1={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},y2=class extends SyntaxError{constructor(u,n,t,i,...o){let l="["+n+":"+t+"]: "+I1[i].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=u,this.line=n,this.column=t,this.description=l,this.loc={line:n,column:t}}};function s(e,u,...n){throw new y2(e.index,e.line,e.column,u,...n)}function j2(e){throw new y2(e.index,e.line,e.column,e.type,e.params)}function k2(e,u,n,t,...i){throw new y2(e,u,n,t,...i)}function A2(e,u,n,t){throw new y2(e,u,n,t)}var P2=((e,u)=>{let n=new Uint32Array(104448),t=0,i=0;for(;t<3701;){let o=e[t++];if(o<0)i-=o;else{let l=e[t++];o&2&&(l=u[l]),o&1?n.fill(l,i,i+=e[t++]):n[i++]=l}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,54,2,7,2,6,0,4278222591,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,200,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,67,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,133,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,42,0,67090432,3,0,2,2,41,2,0,2,6,2,0,2,30,2,8,0,268374015,2,107,2,48,2,0,2,76,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,0,67051519,0,1046528,3,0,3,2,9,2,0,2,50,0,4294960127,2,10,2,39,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,79,2,10,2,0,2,80,2,81,2,82,2,206,2,129,0,1048577,2,83,2,14,-1,2,14,0,131042,2,84,2,85,2,86,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,87,2,2,0,-16,2,88,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,68,-1,2,18,2,10,3,0,8,2,90,2,128,2,0,0,3220242431,3,0,3,2,19,2,91,2,92,3,0,2,2,93,2,0,2,94,2,45,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,98,2,99,2,22,2,23,3,0,3,0,67057663,3,0,349,2,100,2,101,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,102,2,103,3,0,2,2,19,2,104,3,0,10,2,10,2,18,2,0,2,46,2,0,2,31,2,105,2,25,0,1638399,2,170,2,106,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,108,-1,2,109,2,110,2,111,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,159,-4,2,20,2,0,2,36,0,1,2,0,2,62,2,6,2,12,2,10,2,0,2,112,-1,3,0,4,2,10,2,23,2,113,2,7,2,0,2,114,2,0,2,115,2,116,2,117,-2,3,0,9,2,21,2,30,2,31,2,118,2,119,-2,2,120,2,121,2,30,2,21,2,8,-2,2,122,2,30,2,32,-2,2,0,2,38,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,37,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,-10,2,0,0,203775,-1,2,164,2,20,2,43,2,36,2,18,2,77,2,18,2,123,2,21,3,0,2,2,37,0,2151677888,2,0,2,12,0,4294901764,2,140,2,0,2,52,2,51,0,5242879,3,0,2,0,402644511,-1,2,125,2,38,0,3,-1,2,126,2,39,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,41,2,42,-1,2,11,2,55,2,37,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,130,0,4190109695,2,49,-2,2,131,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,63,2,18,2,0,2,41,-8,2,53,2,44,0,67043329,2,45,2,46,0,8388351,-2,2,132,0,3028287487,2,47,2,134,0,33259519,2,42,-9,2,21,0,4294836223,0,3355443199,0,67043335,-2,2,64,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,78,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,-125,3,0,18,2,37,-269,3,0,17,2,41,2,8,2,23,2,0,2,8,2,23,2,48,2,0,2,21,2,49,2,135,2,25,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,50,3,0,38,2,30,-1,2,34,-278,2,136,3,0,9,2,137,2,138,2,51,3,0,11,2,7,-72,3,0,3,2,139,0,1677656575,-147,2,0,2,24,2,37,-16,0,4161266656,0,4071,2,201,-4,0,28,-13,3,0,2,2,52,2,0,2,141,2,142,2,56,2,0,2,143,2,144,2,145,3,0,10,2,146,2,147,2,22,3,52,2,3,148,2,3,53,2,0,4294954999,2,0,-16,2,0,2,89,2,0,0,2105343,0,4160749584,2,174,-34,2,8,2,150,-6,0,4194303871,0,4294903771,2,0,2,54,2,97,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-23,2,151,3,0,6,0,8323103,-1,3,0,2,2,55,-37,2,56,2,152,2,153,2,154,2,155,2,156,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,157,3,0,233,2,158,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,34,-1,2,18,2,61,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,41,2,6,0,32511,2,0,2,42,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,127,2,65,2,160,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,167,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,37,-1,2,4,0,917503,2,37,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,41,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,48,2,0,2,76,2,42,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,124,0,4227907585,2,0,2,77,2,0,2,78,2,180,2,10,2,39,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,79,2,10,2,0,2,80,2,81,2,82,-3,2,83,2,14,-3,2,84,2,85,2,86,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,87,2,-17,2,88,0,524157950,2,4,2,0,2,89,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,68,-1,2,18,2,10,3,0,8,2,90,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,91,2,92,3,0,2,2,93,2,0,2,94,2,45,0,4294965179,0,7,2,0,2,9,2,92,2,9,-1,0,1761345536,2,95,0,4294901823,2,37,2,20,2,96,2,35,2,97,0,2080440287,2,0,2,34,2,149,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,98,2,99,2,22,2,23,3,0,3,0,7,3,0,349,2,100,2,101,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,102,2,103,3,0,2,2,19,2,104,3,0,10,2,10,2,18,2,0,2,46,2,0,2,31,2,105,-3,2,106,3,0,3,2,20,-1,3,5,2,2,107,2,0,2,8,2,108,-1,2,109,2,110,2,111,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,62,2,6,2,30,2,10,2,0,2,112,-1,3,0,4,2,10,2,18,2,113,2,7,2,0,2,114,2,0,2,115,2,116,2,117,-2,3,0,9,2,21,2,30,2,31,2,118,2,119,-2,2,120,2,121,2,30,2,21,2,8,-2,2,122,2,30,2,32,-2,2,0,2,38,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,123,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,78,-10,2,0,0,197631,-2,2,20,2,43,2,77,2,18,0,3,2,18,2,123,2,21,2,124,2,50,-1,0,2490368,2,124,2,25,2,18,2,34,2,124,2,37,0,4294901904,0,4718591,2,124,2,35,0,335544350,-1,2,125,0,2147487743,0,1,-1,2,126,2,39,2,8,-1,2,127,2,65,0,3758161920,0,3,-4,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,188,-1,2,0,2,25,2,205,-1,2,0,0,16779263,-2,2,12,-1,2,37,-5,2,0,2,128,-3,3,0,2,2,129,2,130,0,2147549183,0,2,-2,2,131,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,41,-8,2,53,2,17,0,1,2,45,2,25,-3,2,132,2,36,2,133,2,134,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,64,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,78,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,-125,3,0,18,2,37,-269,3,0,17,2,41,2,8,2,18,2,0,2,8,2,18,2,54,2,0,2,25,2,78,2,135,2,25,-21,3,0,2,-4,3,0,2,0,67583,-1,2,104,-2,0,11,3,0,191,2,50,3,0,38,2,30,-1,2,34,-278,2,136,3,0,9,2,137,2,138,2,51,3,0,11,2,7,-72,3,0,3,2,139,2,140,-187,3,0,2,2,52,2,0,2,141,2,142,2,56,2,0,2,143,2,144,2,145,3,0,10,2,146,2,147,2,22,3,52,2,3,148,2,3,53,2,2,149,-57,2,8,2,150,-7,2,18,2,0,2,54,-4,2,0,0,1065361407,0,16384,-9,2,18,2,54,2,0,2,128,-14,2,18,2,128,-23,2,151,3,0,6,2,123,-1,3,0,2,0,2063,-37,2,56,2,152,2,153,2,154,2,155,2,156,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,157,3,0,233,2,158,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,129,2,0,0,8193,-21,2,198,0,10255,0,4,-11,2,64,2,179,-1,0,71680,-1,2,171,0,4292900864,0,268435519,-5,2,159,-1,2,169,-1,0,6144,-2,2,45,-1,2,163,-1,0,2147532800,2,160,2,166,0,16744448,-2,0,4,-4,2,194,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,161,0,4294886464,0,33292336,0,417809,2,161,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,162,0,201327104,0,3634348576,0,8323120,2,162,0,202375680,0,2678047264,0,4293984304,2,162,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,182,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,159,0,4160757760,2,0,-6,2,176,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,163,2,164,2,183,-2,2,172,-20,0,3758096385,-2,2,165,2,191,2,91,2,177,0,4294057984,-2,2,173,2,168,0,4227874816,-2,2,165,-1,2,166,-1,2,178,2,129,0,4026593280,0,14,0,4292919296,-1,2,175,0,939588608,-1,0,805306368,-1,2,129,2,167,2,168,2,169,2,207,2,0,-2,2,170,2,129,-3,0,267386880,-1,0,117440512,0,7168,-1,2,210,2,163,2,171,2,184,-16,2,172,-1,0,1426112704,2,173,-1,2,192,0,271581216,0,2149777408,2,25,2,171,2,129,0,851967,2,185,-1,2,174,2,186,-4,2,175,-20,2,197,2,204,-56,0,3145728,2,187,-10,0,32505856,-1,2,176,-1,0,2147385088,2,91,1,2155905152,2,-3,2,173,2,0,0,67108864,-2,2,177,-6,2,178,2,25,0,1,-1,0,1,-1,2,179,-3,2,123,2,64,-2,2,97,-2,0,32752,2,129,-915,2,170,-1,2,203,-10,2,190,-5,2,181,-6,0,4229232640,2,19,-1,2,180,-1,2,181,-2,0,4227874752,-3,0,2146435072,2,164,-2,0,1006649344,2,129,-1,2,91,0,201375744,-3,0,134217720,2,91,0,4286677377,0,32896,-1,2,175,-3,0,4227907584,-349,0,65520,0,1920,2,182,3,0,264,-11,2,169,-2,2,183,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,189,-1,0,4294934272,2,25,2,183,-1,2,213,0,2158720,-3,2,164,0,1,-4,2,129,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,184,0,120,0,7340032,-2,2,185,2,4,2,25,2,173,3,0,4,2,164,-1,2,186,2,182,-1,0,8176,2,166,2,184,2,211,-1,0,4290773232,2,0,-4,2,173,2,193,0,15728640,2,182,-1,2,171,-1,0,134250480,0,4720640,0,3825467396,3,0,2,-9,2,91,2,178,0,4294967040,2,133,0,4160880640,3,0,2,0,704,0,1849688064,2,187,-1,2,129,0,4294901887,2,0,0,130547712,0,1879048192,2,208,3,0,2,-1,2,188,2,189,-1,0,17829776,0,2025848832,2,212,-2,2,0,-1,0,4286580608,-1,0,29360128,2,196,0,16252928,0,3791388672,2,39,3,0,2,-2,2,202,2,0,-1,2,104,-1,0,66584576,-1,2,195,3,0,9,2,129,-1,0,4294755328,2,0,2,20,-1,2,171,2,183,2,25,2,95,2,25,2,190,2,91,-2,0,245760,2,191,-1,2,159,2,199,0,4227923456,-1,2,192,2,171,2,91,-3,0,4292870145,0,262144,-1,2,92,2,0,0,1073758848,2,193,-1,0,4227921920,2,194,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,92,-2,2,195,3,0,5,-1,2,196,2,173,2,0,-2,0,4227923936,2,62,-1,2,183,2,95,2,0,2,163,2,175,2,197,3,0,5,-1,2,182,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,198,2,28,-2,2,171,-2,2,199,-1,2,165,2,95,3,0,7,0,512,0,8388608,2,200,2,170,2,189,0,4286578944,3,0,2,0,1152,0,1266679808,2,195,0,576,0,4261707776,2,95,3,0,9,2,165,0,131072,0,939524096,2,183,3,0,2,2,16,-1,0,2147221504,-28,2,183,3,0,3,-3,0,4292902912,-6,2,96,3,0,81,2,25,-2,2,104,-33,2,18,2,178,3,0,125,-18,2,197,3,0,269,-17,2,165,2,129,2,201,-1,2,129,2,193,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,21,-2,2,184,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,181,-38,2,178,2,0,2,202,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,182,3,0,72,-3,0,3758159872,0,201391616,3,0,147,-1,2,169,2,203,-3,2,96,2,0,-7,2,178,-1,0,384,-1,0,133693440,-3,2,204,-2,2,107,3,0,3,3,177,2,-2,2,91,2,165,3,0,4,-2,2,192,-1,2,159,0,335552923,2,205,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,206,-21,0,134213632,2,158,3,0,34,2,129,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,209,2,148,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,207,-1,2,208,3,0,14,2,25,2,183,3,0,23,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,173,3,0,6,2,205,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,46,3,0,8,-1,2,175,-2,2,177,0,98304,0,65537,2,178,-5,2,209,2,0,2,77,2,199,2,182,0,4294770176,2,107,3,0,4,-30,2,188,0,3758153728,-3,0,125829120,-2,2,183,0,4294897664,2,175,-1,2,195,-1,2,171,0,4294754304,3,0,2,-10,2,177,0,3758145536,2,210,2,211,0,4026548160,2,212,-4,2,213,-1,2,204,0,4227923967,3,0,32,-1335,2,0,-129,2,183,-6,2,173,-180,0,65532,-233,2,174,-18,2,173,3,0,77,-16,2,173,3,0,47,-154,2,166,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,127,3238002687,4294902271,4294549487,33554431,1023,4294901888,4286578687,4294705152,4294770687,67043583,2047999,67043343,16777215,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,63,15,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,65734655,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294549472,4095,2147483648,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,402653184,3758096384,4261412864,63488,1610612736,4227922944,49152,57344,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,4227915776,4278190080,4026531840,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,4294967168,50331648,65528,65472,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,4294950912,65024,1073741824,4261477888,524288]);function A(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function N1(e,u){if((u&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:(u=e.currentChar=65536+((u&1023)<<10)+(n&1023),P2[(u>>>5)+0]>>>u&31&1||s(e,18,G(u)),e.index++,e.column++,1)}function x2(e,u){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,u&4||(e.column=0,e.line++)}function c2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function V1(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function G(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(e>>>10)+String.fromCharCode(e&1023)}function z(e){return e<65?e-48:e-65+10&15}function R1(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],O1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Y2(e){return e<=127?O1[e]:P2[(e>>>5)+34816]>>>e&31&1}function R2(e){return e<=127?Fe[e]:P2[(e>>>5)+0]>>>e&31&1||e===8204||e===8205}var qe=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function U1(e){let u=e.source;e.currentChar===35&&u.charCodeAt(e.index+1)===33&&(A(e),A(e),p2(e,u,0,4,e.tokenPos,e.linePos,e.colPos))}function Ce(e,u,n,t,i,o,l,f){return t&2048&&s(e,0),p2(e,u,n,i,o,l,f)}function p2(e,u,n,t,i,o,l){let{index:f}=e;for(e.tokenPos=e.index,e.linePos=e.line,e.colPos=e.column;e.index=e.source.length)return s(e,32)}let i=e.index-1,o=0,l=e.currentChar,{index:f}=e;for(;R2(l);){switch(l){case 103:o&2&&s(e,34,"g"),o|=2;break;case 105:o&1&&s(e,34,"i"),o|=1;break;case 109:o&4&&s(e,34,"m"),o|=4;break;case 117:o&16&&s(e,34,"u"),o|=16;break;case 121:o&8&&s(e,34,"y"),o|=8;break;case 115:o&32&&s(e,34,"s"),o|=32;break;case 100:o&64&&s(e,34,"d"),o|=64;break;default:s(e,33)}l=A(e)}let c=e.source.slice(f,e.index),m=e.source.slice(n,i);return e.tokenRegExp={pattern:m,flags:c},u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),e.tokenValue=j1(e,m,c),65540}function j1(e,u,n){try{return new RegExp(u,n)}catch{try{return new RegExp(u,n.replace("d","")),null}catch{s(e,32)}}}function X1(e,u,n){let{index:t}=e,i="",o=A(e),l=e.index;for(;!(L[o]&8);){if(o===n)return i+=e.source.slice(l,e.index),A(e),u&512&&(e.tokenRaw=e.source.slice(t,e.index)),e.tokenValue=i,134283267;if((o&8)===8&&o===92){if(i+=e.source.slice(l,e.index),o=A(e),o<127||o===8232||o===8233){let f=Le(e,u,o);f>=0?i+=G(f):Ie(e,f,0)}else i+=G(o);l=e.index+1}e.index>=e.end&&s(e,14),o=A(e)}s(e,14)}function Le(e,u,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if(!(L[t]&64))return-4;let i=e.source.charCodeAt(e.index+1);if(!(L[i]&64))return-4;let o=e.source.charCodeAt(e.index+2);if(!(L[o]&64))return-4;let l=e.source.charCodeAt(e.index+3);return L[l]&64?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),z(t)<<12|z(i)<<8|z(o)<<4|z(l)):-4}}case 56:case 57:if(!(u&256))return-3;default:return n}}function Ie(e,u,n){switch(u){case-1:return;case-2:s(e,n?2:1);case-3:s(e,13);case-4:s(e,6);case-5:s(e,102)}}function Ne(e,u){let{index:n}=e,t=67174409,i="",o=A(e);for(;o!==96;){if(o===36&&e.source.charCodeAt(e.index+1)===123){A(e),t=67174408;break}else if((o&8)===8&&o===92)if(o=A(e),o>126)i+=G(o);else{let l=Le(e,u|1024,o);if(l>=0)i+=G(l);else if(l!==-1&&u&65536){i=void 0,o=H1(e,o),o<0&&(t=67174408);break}else Ie(e,l,1)}else e.index=e.end&&s(e,15),o=A(e)}return A(e),e.tokenValue=i,e.tokenRaw=e.source.slice(n+1,e.index-(t===67174409?1:2)),t}function H1(e,u){for(;u!==96;){switch(u){case 36:{let n=e.index+1;if(n=e.end&&s(e,15),u=A(e)}return u}function z1(e,u){return e.index>=e.end&&s(e,0),e.index--,e.column--,Ne(e,u)}function Pe(e,u,n){let t=e.currentChar,i=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)i="."+q2(e,t),t=e.currentChar,t===110&&s(e,11);else{if(t===48)if(t=A(e),(t|32)===120){for(n=136,t=A(e);L[t]&4160;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*16+z(t),f++,t=A(e)}(f===0||!c)&&s(e,f===0?19:148)}else if((t|32)===111){for(n=132,t=A(e);L[t]&4128;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*8+(t-48),f++,t=A(e)}(f===0||!c)&&s(e,f===0?0:148)}else if((t|32)===98){for(n=130,t=A(e);L[t]&4224;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*2+(t-48),f++,t=A(e)}(f===0||!c)&&s(e,f===0?0:148)}else if(L[t]&32)for(u&1024&&s(e,1),n=1;L[t]&16;){if(L[t]&512){n=32,l=0;break}i=i*8+(t-48),t=A(e)}else L[t]&512?(u&1024&&s(e,1),e.flags|=64,n=32):t===95&&s(e,0);if(n&48){if(l){for(;o>=0&&L[t]&4112;){if(t===95){t=A(e),(t===95||n&32)&&A2(e.index,e.line,e.index+1,147),c=1;continue}c=0,i=10*i+(t-48),t=A(e),--o}if(c&&A2(e.index,e.line,e.index+1,148),o>=0&&!Y2(t)&&t!==46)return e.tokenValue=i,u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283266}i+=q2(e,t),t=e.currentChar,t===46&&(A(e)===95&&s(e,0),n=64,i+="."+q2(e,e.currentChar),t=e.currentChar)}}let m=e.index,g=0;if(t===110&&n&128)g=1,t=A(e);else if((t|32)===101){t=A(e),L[t]&256&&(t=A(e));let{index:a}=e;L[t]&16||s(e,10),i+=e.source.substring(m,a)+q2(e,t),t=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Ve=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Ee(e,u,n){for(;Fe[A(e)];);return e.tokenValue=e.source.slice(e.tokenPos,e.index),e.currentChar!==92&&e.currentChar<=126?Ve[e.tokenValue]||208897:ee(e,u,0,n)}function K1(e,u){let n=Re(e);return R2(n)||s(e,4),e.tokenValue=G(n),ee(e,u,1,L[n]&4)}function ee(e,u,n,t){let i=e.index;for(;e.index=2&&o<=11){let l=Ve[e.tokenValue];return l===void 0?208897:n?l===209008?u&4196352?121:l:u&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?u&268435456&&!(u&8192)?l:121:143483:u&268435456&&!(u&8192)&&(l&20480)===20480?l:l===241773?u&268435456?143483:u&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function $1(e){return Y2(A(e))||s(e,94),131}function Re(e){return e.source.charCodeAt(e.index+1)!==117&&s(e,4),e.currentChar=e.source.charCodeAt(e.index+=2),W1(e)}function W1(e){let u=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;L[A(e)]&64;)u=u<<4|z(e.currentChar),u>1114111&&A2(l,e.line,e.index+1,102);return e.currentChar!==125&&A2(l,e.line,e.index-1,6),A(e),u}L[n]&64||s(e,6);let t=e.source.charCodeAt(e.index+1);L[t]&64||s(e,6);let i=e.source.charCodeAt(e.index+2);L[i]&64||s(e,6);let o=e.source.charCodeAt(e.index+3);return L[o]&64||s(e,6),u=z(n)<<12|z(t)<<8|z(i)<<4|z(o),e.currentChar=e.source.charCodeAt(e.index+=4),u}var Oe=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function D(e,u){if(e.flags=(e.flags|1)^1,e.startPos=e.index,e.startColumn=e.column,e.startLine=e.line,e.token=Ue(e,u,0),e.onToken&&e.token!==1048576){let n={start:{line:e.linePos,column:e.colPos},end:{line:e.line,column:e.column}};e.onToken(R1(e.token),e.tokenPos,e.index,n)}}function Ue(e,u,n){let t=e.index===0,i=e.source,o=e.index,l=e.line,f=e.column;for(;e.index=e.end)return 8457014;let d=e.currentChar;return d===61?(A(e),4194340):d!==42?8457014:A(e)!==61?8457273:(A(e),4194337)}case 8455497:return A(e)!==61?8455497:(A(e),4194343);case 25233970:{A(e);let d=e.currentChar;return d===43?(A(e),33619995):d===61?(A(e),4194338):25233970}case 25233971:{A(e);let d=e.currentChar;if(d===45){if(A(e),(n&1||t)&&e.currentChar===62){u&256||s(e,109),A(e),n=Ce(e,i,n,u,3,o,l,f),o=e.tokenPos,l=e.linePos,f=e.colPos;continue}return 33619996}return d===61?(A(e),4194339):25233971}case 8457016:{if(A(e),e.index=48&&a<=57)return Pe(e,u,80);if(a===46){let d=e.index+1;if(d=48&&d<=57)))return A(e),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(e);continue}if((c&64512)===55296||P2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,P2[(c>>>5)+0]>>>c&31&1||s(e,18,G(c)),e.index++,e.currentChar=c),e.column++,e.tokenValue="",ee(e,u,0,0);if(V1(c)){A(e);continue}s(e,18,G(c))}}return 1048576}function _1(e,u){return e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.token=L[e.currentChar]&8192?Y1(e,u):Ue(e,u,0),e.token}function Y1(e,u){let n=e.currentChar,t=A(e),i=e.index;for(;t!==n;)e.index>=e.end&&s(e,14),t=A(e);return t!==n&&s(e,14),e.tokenValue=e.source.slice(i,e.index),A(e),u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283267}function d2(e,u){if(e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.index>=e.end)return e.token=1048576;switch(Oe[e.source.charCodeAt(e.index)]){case 8456258:{A(e),e.currentChar===47?(A(e),e.token=25):e.token=8456258;break}case 2162700:{A(e),e.token=2162700;break}default:{let t=0;for(;e.index1&&i&32&&e.token&262144&&s(e,59,O[e.token&255]),l}function Se(e,u,n,t,i){let{token:o,tokenPos:l,linePos:f,colPos:c}=e,m=null,g=i1(e,u,n,t,i,l,f,c);return e.token===1077936157?(D(e,u|32768),m=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),(i&32||!(o&2097152))&&(e.token===274549||e.token===8738868&&(o&2097152||!(t&4)||u&1024))&&k2(l,e.line,e.index-3,58,e.token===274549?"of":"in")):(t&16||(o&2097152)>0)&&(e.token&262144)!==262144&&s(e,57,t&16?"const":"destructuring"),y(e,u,l,f,c,{type:"VariableDeclarator",id:g,init:m})}function Cu(e,u,n,t,i,o,l){D(e,u);let f=((u&4194304)>0||(u&2048)>0&&(u&8192)>0)&&q(e,u,209008);P(e,u|32768,67174411),n&&(n=J(n,1));let c=null,m=null,g=0,a=null,d=e.token===86090||e.token===241739||e.token===86092,k,{token:C,tokenPos:b,linePos:E,colPos:w}=e;if(d?C===241739?(a=I(e,u),e.token&2240512?(e.token===8738868?u&1024&&s(e,65):a=y(e,u,b,E,w,{type:"VariableDeclaration",kind:"let",declarations:g2(e,u|134217728,n,8,32)}),e.assignable=1):u&1024?s(e,65):(d=!1,e.assignable=1,a=N(e,u,a,0,0,b,E,w),e.token===274549&&s(e,112))):(D(e,u),a=y(e,u,b,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:g2(e,u|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:g2(e,u|134217728,n,16,32)}),e.assignable=1):C===1074790417?f&&s(e,80):(C&2097152)===2097152?(a=C===2162700?Y(e,u,void 0,1,0,0,2,32,b,E,w):_(e,u,void 0,1,0,0,2,32,b,E,w),g=e.destructible,u&256&&g&64&&s(e,61),e.assignable=g&16?2:1,a=N(e,u|134217728,a,0,0,e.tokenPos,e.linePos,e.colPos)):a=W(e,u|134217728,1,0,1,b,E,w),(e.token&262144)===262144){if(e.token===274549){e.assignable&2&&s(e,78,f?"await":"of"),r(e,a),D(e,u|32768),k=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let S=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForOfStatement",left:a,right:k,body:S,await:f})}e.assignable&2&&s(e,78,"in"),r(e,a),D(e,u|32768),f&&s(e,80),k=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let M=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForInStatement",body:M,left:a,right:k})}f&&s(e,80),d||(g&8&&e.token!==1077936157&&s(e,78,"loop"),a=U(e,u|134217728,0,0,b,E,w,a)),e.token===18&&(a=p(e,u,0,e.tokenPos,e.linePos,e.colPos,a)),P(e,u|32768,1074790417),e.token!==1074790417&&(c=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,1074790417),e.token!==16&&(m=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,16);let v=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForStatement",init:a,test:c,update:m,body:v})}function $e(e,u,n){return ne(u,e.token)||s(e,115),(e.token&537079808)===537079808&&s(e,116),n&&t2(e,u,n,e.tokenValue,8,0),I(e,u)}function Pu(e,u,n){let t=e.tokenPos,i=e.linePos,o=e.colPos;D(e,u);let l=null,{tokenPos:f,linePos:c,colPos:m}=e,g=[];if(e.token===134283267)l=X(e,u);else{if(e.token&143360){let a=$e(e,u,n);if(g=[y(e,u,f,c,m,{type:"ImportDefaultSpecifier",local:a})],q(e,u,18))switch(e.token){case 8457014:g.push(Be(e,u,n));break;case 2162700:ve(e,u,n,g);break;default:s(e,105)}}else switch(e.token){case 8457014:g=[Be(e,u,n)];break;case 2162700:ve(e,u,n,g);break;case 67174411:return _e(e,u,t,i,o);case 67108877:return We(e,u,t,i,o);default:s(e,28,O[e.token&255])}l=Eu(e,u)}return H(e,u|32768),y(e,u,t,i,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Be(e,u,n){let{tokenPos:t,linePos:i,colPos:o}=e;return D(e,u),P(e,u,77934),(e.token&134217728)===134217728&&k2(t,e.line,e.index,28,O[e.token&255]),y(e,u,t,i,o,{type:"ImportNamespaceSpecifier",local:$e(e,u,n)})}function Eu(e,u){return q(e,u,12404)||s(e,28,O[e.token&255]),e.token!==134283267&&s(e,103,"Import"),X(e,u)}function ve(e,u,n,t){for(D(e,u);e.token&143360;){let{token:i,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=e,m=I(e,u),g;q(e,u,77934)?((e.token&134217728)===134217728||e.token===18?s(e,104):O2(e,u,16,e.token,0),o=e.tokenValue,g=I(e,u)):(O2(e,u,16,i,0),g=m),n&&t2(e,u,n,o,8,0),t.push(y(e,u,l,f,c,{type:"ImportSpecifier",local:g,imported:m})),e.token!==1074790415&&P(e,u,18)}return P(e,u,1074790415),t}function We(e,u,n,t,i){let o=Qe(e,u,y(e,u,n,t,i,{type:"Identifier",name:"import"}),n,t,i);return o=N(e,u,o,0,0,n,t,i),o=U(e,u,0,0,n,t,i,o),e.token===18&&(o=p(e,u,0,n,t,i,o)),h2(e,u,o,n,t,i)}function _e(e,u,n,t,i){let o=Ze(e,u,0,n,t,i);return o=N(e,u,o,0,0,n,t,i),e.token===18&&(o=p(e,u,0,n,t,i,o)),h2(e,u,o,n,t,i)}function wu(e,u,n){let t=e.tokenPos,i=e.linePos,o=e.colPos;D(e,u|32768);let l=[],f=null,c=null,m;if(q(e,u|32768,20563)){switch(e.token){case 86106:{f=i2(e,u,n,4,1,1,0,e.tokenPos,e.linePos,e.colPos);break}case 133:case 86096:f=G2(e,u,n,1,e.tokenPos,e.linePos,e.colPos);break;case 209007:let{tokenPos:g,linePos:a,colPos:d}=e;f=I(e,u);let{flags:k}=e;k&1||(e.token===86106?f=i2(e,u,n,4,1,1,1,g,a,d):e.token===67174411?(f=se(e,u,f,1,1,0,k,g,a,d),f=N(e,u,f,0,0,g,a,d),f=U(e,u,0,0,g,a,d,f)):e.token&143360&&(n&&(n=X2(e,u,e.tokenValue)),f=I(e,u),f=B2(e,u,n,[f],1,g,a,d)));break;default:f=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),H(e,u|32768)}return n&&l2(e,"default"),y(e,u,t,i,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(e.token){case 8457014:{D(e,u);let k=null;return q(e,u,77934)&&(n&&l2(e,e.tokenValue),k=I(e,u)),P(e,u,12404),e.token!==134283267&&s(e,103,"Export"),c=X(e,u),H(e,u|32768),y(e,u,t,i,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{D(e,u);let k=[],C=[];for(;e.token&143360;){let{tokenPos:b,tokenValue:E,linePos:w,colPos:v}=e,M=I(e,u),S;e.token===77934?(D(e,u),(e.token&134217728)===134217728&&s(e,104),n&&(k.push(e.tokenValue),C.push(E)),S=I(e,u)):(n&&(k.push(e.tokenValue),C.push(e.tokenValue)),S=M),l.push(y(e,u,b,w,v,{type:"ExportSpecifier",local:M,exported:S})),e.token!==1074790415&&P(e,u,18)}if(P(e,u,1074790415),q(e,u,12404))e.token!==134283267&&s(e,103,"Export"),c=X(e,u);else if(n){let b=0,E=k.length;for(;b0)&8738868,g,a;for(e.assignable=2;e.token&8454144&&(g=e.token,a=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&s(e,160),!(a+((g===8457273)<<8)-((m===g)<<12)<=l));)D(e,u|32768),c=y(e,u,t,i,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(e,u,n,e.tokenPos,e.linePos,e.colPos,a,g,W(e,u,0,n,1,e.tokenPos,e.linePos,e.colPos)),operator:O[g&255]});return e.token===1077936157&&s(e,24),c}function Su(e,u,n,t,i,o,l){n||s(e,0);let f=e.token;D(e,u|32768);let c=W(e,u,0,l,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&s(e,31),u&1024&&f===16863278&&(c.type==="Identifier"?s(e,118):Q1(c)&&s(e,124)),e.assignable=2,y(e,u,t,i,o,{type:"UnaryExpression",operator:O[f&255],argument:c,prefix:!0})}function Bu(e,u,n,t,i,o,l,f,c){let{token:m}=e,g=I(e,u),{flags:a}=e;if(!(a&1)){if(e.token===86106)return Ge(e,u,1,n,l,f,c);if((e.token&143360)===143360)return t||s(e,0),e1(e,u,i,l,f,c)}return!o&&e.token===67174411?se(e,u,g,i,1,0,a,l,f,c):e.token===10?(ie(e,u,m),o&&s(e,49),z2(e,u,e.tokenValue,g,o,i,0,l,f,c)):(e.assignable=1,g)}function vu(e,u,n,t,i,o,l){if(n&&(e.destructible|=256),u&2097152){D(e,u|32768),u&8388608&&s(e,30),t||s(e,24),e.token===22&&s(e,121);let f=null,c=!1;return e.flags&1||(c=q(e,u|32768,8457014),(e.token&77824||c)&&(f=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos))),e.assignable=2,y(e,u,i,o,l,{type:"YieldExpression",argument:f,delegate:c})}return u&1024&&s(e,95,"yield"),de(e,u,i,o,l)}function Tu(e,u,n,t,i,o,l){if(t&&(e.destructible|=128),u&4194304||u&2048&&u&8192){n&&s(e,0),u&8388608&&k2(e.index,e.line,e.index,29),D(e,u|32768);let f=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&s(e,31),e.assignable=2,y(e,u,i,o,l,{type:"AwaitExpression",argument:f})}return u&2048&&s(e,96),de(e,u,i,o,l)}function H2(e,u,n,t,i,o){let{tokenPos:l,linePos:f,colPos:c}=e;P(e,u|32768,2162700);let m=[],g=u;if(e.token!==1074790415){for(;e.token===134283267;){let{index:a,tokenPos:d,tokenValue:k,token:C}=e,b=X(e,u);Me(e,a,d,k)&&(u|=1024,e.flags&128&&k2(e.index,e.line,e.tokenPos,64),e.flags&64&&k2(e.index,e.line,e.tokenPos,8)),m.push(oe(e,u,b,C,d,e.linePos,e.colPos))}u&1024&&(i&&((i&537079808)===537079808&&s(e,116),(i&36864)===36864&&s(e,38)),e.flags&512&&s(e,116),e.flags&256&&s(e,115)),u&64&&n&&o!==void 0&&!(g&1024)&&!(u&8192)&&j2(o)}for(e.flags=(e.flags|512|256|64)^832,e.destructible=(e.destructible|256)^256;e.token!==1074790415;)m.push(w2(e,u,n,4,{}));return P(e,t&24?u|32768:u,1074790415),e.flags&=-193,e.token===1077936157&&s(e,24),y(e,u,l,f,c,{type:"BlockStatement",body:m})}function Fu(e,u,n,t,i){switch(D(e,u),e.token){case 67108991:s(e,162);case 67174411:{u&524288||s(e,26),u&16384&&!(u&33554432)&&s(e,27),e.assignable=2;break}case 69271571:case 67108877:{u&262144||s(e,27),u&16384&&!(u&33554432)&&s(e,27),e.assignable=1;break}default:s(e,28,"super")}return y(e,u,n,t,i,{type:"Super"})}function W(e,u,n,t,i,o,l,f){let c=K(e,u,2,0,n,t,i,o,l,f);return N(e,u,c,t,0,o,l,f)}function qu(e,u,n,t,i,o){e.assignable&2&&s(e,53);let{token:l}=e;return D(e,u),e.assignable=2,y(e,u,t,i,o,{type:"UpdateExpression",argument:n,operator:O[l&255],prefix:!1})}function N(e,u,n,t,i,o,l,f){if((e.token&33619968)===33619968&&!(e.flags&1))n=qu(e,u,n,o,l,f);else if((e.token&67108864)===67108864){switch(u=(u|134217728)^134217728,e.token){case 67108877:{D(e,(u|268435456|8192)^8192),u&16384&&e.token===131&&e.tokenValue==="super"&&s(e,27),e.assignable=1;let c=Ye(e,u|65536);n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),D(e,u|32768);let{tokenPos:m,linePos:g,colPos:a}=e,d=j(e,u,t,1,m,g,a);P(e,u,20),e.assignable=1,n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:d}),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,n;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let m=ce(e,u,t);e.assignable=2,n=y(e,u,o,l,f,{type:"CallExpression",callee:n,arguments:m}),c&&(e.flags|=2048);break}case 67108991:{D(e,(u|268435456|8192)^8192),e.flags|=2048,e.assignable=2,n=Lu(e,u,n,o,l,f);break}default:(e.flags&2048)===2048&&s(e,161),e.assignable=2,n=y(e,u,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:e.token===67174408?fe(e,u|65536):le(e,u,e.tokenPos,e.linePos,e.colPos)})}n=N(e,u,n,0,1,o,l,f)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,n=y(e,u,o,l,f,{type:"ChainExpression",expression:n})),n}function Lu(e,u,n,t,i,o){let l=!1,f;if((e.token===69271571||e.token===67174411)&&(e.flags&2048)===2048&&(l=!0,e.flags=(e.flags|2048)^2048),e.token===69271571){D(e,u|32768);let{tokenPos:c,linePos:m,colPos:g}=e,a=j(e,u,0,1,c,m,g);P(e,u,20),e.assignable=2,f=y(e,u,t,i,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:a})}else if(e.token===67174411){let c=ce(e,u,0);e.assignable=2,f=y(e,u,t,i,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{e.token&143360||s(e,155);let c=I(e,u);e.assignable=2,f=y(e,u,t,i,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(e.flags|=2048),f}function Ye(e,u){return!(e.token&143360)&&e.token!==131&&s(e,155),u&1&&e.token===131?J2(e,u,e.tokenPos,e.linePos,e.colPos):I(e,u)}function Iu(e,u,n,t,i,o,l){n&&s(e,54),t||s(e,0);let{token:f}=e;D(e,u|32768);let c=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.assignable&2&&s(e,53),e.assignable=2,y(e,u,i,o,l,{type:"UpdateExpression",argument:c,operator:O[f&255],prefix:!0})}function K(e,u,n,t,i,o,l,f,c,m){if((e.token&143360)===143360){switch(e.token){case 209008:return Tu(e,u,t,o,f,c,m);case 241773:return vu(e,u,o,i,f,c,m);case 209007:return Bu(e,u,o,l,i,t,f,c,m)}let{token:g,tokenValue:a}=e,d=I(e,u|65536);return e.token===10?(l||s(e,0),ie(e,u,g),z2(e,u,a,d,t,i,0,f,c,m)):(u&16384&&g===537079928&&s(e,127),g===241739&&(u&1024&&s(e,110),n&24&&s(e,98)),e.assignable=u&1024&&(g&537079808)===537079808?2:1,d)}if((e.token&134217728)===134217728)return X(e,u);switch(e.token){case 33619995:case 33619996:return Iu(e,u,t,l,f,c,m);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return Su(e,u,l,f,c,m,o);case 86106:return Ge(e,u,0,o,f,c,m);case 2162700:return Mu(e,u,i?0:1,o,f,c,m);case 69271571:return Uu(e,u,i?0:1,o,f,c,m);case 67174411:return ju(e,u|65536,i,1,0,f,c,m);case 86021:case 86022:case 86023:return Ru(e,u,f,c,m);case 86113:return Ou(e,u);case 65540:return zu(e,u,f,c,m);case 133:case 86096:return Ku(e,u,o,f,c,m);case 86111:return Fu(e,u,f,c,m);case 67174409:return le(e,u,f,c,m);case 67174408:return fe(e,u);case 86109:return Xu(e,u,o,f,c,m);case 134283389:return re(e,u,f,c,m);case 131:return J2(e,u,f,c,m);case 86108:return Nu(e,u,t,o,f,c,m);case 8456258:if(u&16)return me(e,u,1,f,c,m);default:if(ne(u,e.token))return de(e,u,f,c,m);s(e,28,O[e.token&255])}}function Nu(e,u,n,t,i,o,l){let f=I(e,u);return e.token===67108877?Qe(e,u,f,i,o,l):(n&&s(e,138),f=Ze(e,u,t,i,o,l),e.assignable=2,N(e,u,f,t,0,i,o,l))}function Qe(e,u,n,t,i,o){return u&2048||s(e,164),D(e,u),e.token!==143495&&e.tokenValue!=="meta"&&s(e,28,O[e.token&255]),e.assignable=2,y(e,u,t,i,o,{type:"MetaProperty",meta:n,property:I(e,u)})}function Ze(e,u,n,t,i,o){P(e,u|32768,67174411),e.token===14&&s(e,139);let l=R(e,u,1,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,16),y(e,u,t,i,o,{type:"ImportExpression",source:l})}function re(e,u,n,t,i){let{tokenRaw:o,tokenValue:l}=e;return D(e,u),e.assignable=2,y(e,u,n,t,i,u&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function le(e,u,n,t,i){e.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:m}=e;P(e,u,67174409);let g=[N2(e,u,o,l,f,c,m,!0)];return y(e,u,n,t,i,{type:"TemplateLiteral",expressions:[],quasis:g})}function fe(e,u){u=(u|134217728)^134217728;let{tokenValue:n,tokenRaw:t,tokenPos:i,linePos:o,colPos:l}=e;P(e,u|32768,67174408);let f=[N2(e,u,n,t,i,o,l,!1)],c=[j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)];for(e.token!==1074790415&&s(e,81);(e.token=z1(e,u))!==67174409;){let{tokenValue:m,tokenRaw:g,tokenPos:a,linePos:d,colPos:k}=e;P(e,u|32768,67174408),f.push(N2(e,u,m,g,a,d,k,!1)),c.push(j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),e.token!==1074790415&&s(e,81)}{let{tokenValue:m,tokenRaw:g,tokenPos:a,linePos:d,colPos:k}=e;P(e,u,67174409),f.push(N2(e,u,m,g,a,d,k,!0))}return y(e,u,i,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function N2(e,u,n,t,i,o,l,f){let c=y(e,u,i,o,l,{type:"TemplateElement",value:{cooked:n,raw:t},tail:f}),m=f?1:2;return u&2&&(c.start+=1,c.range[0]+=1,c.end-=m,c.range[1]-=m),u&4&&(c.loc.start.column+=1,c.loc.end.column-=m),c}function Vu(e,u,n,t,i){u=(u|134217728)^134217728,P(e,u|32768,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return e.assignable=1,y(e,u,n,t,i,{type:"SpreadElement",argument:o})}function ce(e,u,n){D(e,u|32768);let t=[];if(e.token===16)return D(e,u|65536),t;for(;e.token!==16&&(e.token===14?t.push(Vu(e,u,e.tokenPos,e.linePos,e.colPos)):t.push(R(e,u,1,n,e.tokenPos,e.linePos,e.colPos)),!(e.token!==18||(D(e,u|32768),e.token===16))););return P(e,u,16),t}function I(e,u){let{tokenValue:n,tokenPos:t,linePos:i,colPos:o}=e;return D(e,u),y(e,u,t,i,o,{type:"Identifier",name:n})}function X(e,u){let{tokenValue:n,tokenRaw:t,tokenPos:i,linePos:o,colPos:l}=e;return e.token===134283389?re(e,u,i,o,l):(D(e,u),e.assignable=2,y(e,u,i,o,l,u&512?{type:"Literal",value:n,raw:t}:{type:"Literal",value:n}))}function Ru(e,u,n,t,i){let o=O[e.token&255],l=e.token===86023?null:o==="true";return D(e,u),e.assignable=2,y(e,u,n,t,i,u&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function Ou(e,u){let{tokenPos:n,linePos:t,colPos:i}=e;return D(e,u),e.assignable=2,y(e,u,n,t,i,{type:"ThisExpression"})}function i2(e,u,n,t,i,o,l,f,c,m){D(e,u|32768);let g=i?ue(e,u,8457014):0,a=null,d,k=n?s2():void 0;if(e.token===67174411)o&1||s(e,37,"Function");else{let E=t&4&&(!(u&8192)||!(u&2048))?4:64;Je(e,u|(u&3072)<<11,e.token),n&&(E&4?He(e,u,n,e.tokenValue,E):t2(e,u,n,e.tokenValue,E,t),k=J(k,256),o&&o&2&&l2(e,e.tokenValue)),d=e.token,e.token&143360?a=I(e,u):s(e,28,O[e.token&255])}u=(u|32243712)^32243712|67108864|l*2+g<<21|(g?0:268435456),n&&(k=J(k,512));let C=pe(e,u|8388608,k,0,1),b=H2(e,(u|8192|4096|131072)^143360,n?J(k,128):k,8,d,n?k.scopeError:void 0);return y(e,u,f,c,m,{type:"FunctionDeclaration",id:a,params:C,body:b,async:l===1,generator:g===1})}function Ge(e,u,n,t,i,o,l){D(e,u|32768);let f=ue(e,u,8457014),c=n*2+f<<21,m=null,g,a=u&64?s2():void 0;(e.token&176128)>0&&(Je(e,(u|32243712)^32243712|c,e.token),a&&(a=J(a,256)),g=e.token,m=I(e,u)),u=(u|32243712)^32243712|67108864|c|(f?0:268435456),a&&(a=J(a,512));let d=pe(e,u|8388608,a,t,1),k=H2(e,u&-134377473,a&&J(a,128),0,g,void 0);return e.assignable=2,y(e,u,i,o,l,{type:"FunctionExpression",id:m,params:d,body:k,async:n===1,generator:f===1})}function Uu(e,u,n,t,i,o,l){let f=_(e,u,void 0,n,t,0,2,0,i,o,l);return u&256&&e.destructible&64&&s(e,61),e.destructible&8&&s(e,60),f}function _(e,u,n,t,i,o,l,f,c,m,g){D(e,u|32768);let a=[],d=0;for(u=(u|134217728)^134217728;e.token!==20;)if(q(e,u|32768,18))a.push(null);else{let C,{token:b,tokenPos:E,linePos:w,colPos:v,tokenValue:M}=e;if(b&143360)if(C=K(e,u,l,0,1,i,1,E,w,v),e.token===1077936157){e.assignable&2&&s(e,24),D(e,u|32768),n&&u2(e,u,n,M,l,f);let S=R(e,u,1,i,e.tokenPos,e.linePos,e.colPos);C=y(e,u,E,w,v,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),d|=e.destructible&256?256:0|e.destructible&128?128:0}else e.token===18||e.token===20?(e.assignable&2?d|=16:n&&u2(e,u,n,M,l,f),d|=e.destructible&256?256:0|e.destructible&128?128:0):(d|=l&1?32:l&2?0:16,C=N(e,u,C,i,0,E,w,v),e.token!==18&&e.token!==20?(e.token!==1077936157&&(d|=16),C=U(e,u,i,o,E,w,v,C)):e.token!==1077936157&&(d|=e.assignable&2?16:32));else b&2097152?(C=e.token===2162700?Y(e,u,n,0,i,o,l,f,E,w,v):_(e,u,n,0,i,o,l,f,E,w,v),d|=e.destructible,e.assignable=e.destructible&16?2:1,e.token===18||e.token===20?e.assignable&2&&(d|=16):e.destructible&8?s(e,69):(C=N(e,u,C,i,0,E,w,v),d=e.assignable&2?16:0,e.token!==18&&e.token!==20?C=U(e,u,i,o,E,w,v,C):e.token!==1077936157&&(d|=e.assignable&2?16:32))):b===14?(C=D2(e,u,n,20,l,f,0,i,o,E,w,v),d|=e.destructible,e.token!==18&&e.token!==20&&s(e,28,O[e.token&255])):(C=W(e,u,1,0,1,E,w,v),e.token!==18&&e.token!==20?(C=U(e,u,i,o,E,w,v,C),!(l&3)&&b===67174411&&(d|=16)):e.assignable&2?d|=16:b===67174411&&(d|=e.assignable&1&&l&3?32:16));if(a.push(C),q(e,u|32768,18)){if(e.token===20)break}else break}P(e,u,20);let k=y(e,u,c,m,g,{type:o?"ArrayPattern":"ArrayExpression",elements:a});return!t&&e.token&4194304?xe(e,u,d,i,o,c,m,g,k):(e.destructible=d,k)}function xe(e,u,n,t,i,o,l,f,c){e.token!==1077936157&&s(e,24),D(e,u|32768),n&16&&s(e,24),i||r(e,c);let{tokenPos:m,linePos:g,colPos:a}=e,d=R(e,u,1,t,m,g,a);return e.destructible=(n|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),y(e,u,o,l,f,i?{type:"AssignmentPattern",left:c,right:d}:{type:"AssignmentExpression",left:c,operator:"=",right:d})}function D2(e,u,n,t,i,o,l,f,c,m,g,a){D(e,u|32768);let d=null,k=0,{token:C,tokenValue:b,tokenPos:E,linePos:w,colPos:v}=e;if(C&143360)e.assignable=1,d=K(e,u,i,0,1,f,1,E,w,v),C=e.token,d=N(e,u,d,f,0,E,w,v),e.token!==18&&e.token!==t&&(e.assignable&2&&e.token===1077936157&&s(e,69),k|=16,d=U(e,u,f,c,E,w,v,d)),e.assignable&2?k|=16:C===t||C===18?n&&u2(e,u,n,b,i,o):k|=32,k|=e.destructible&128?128:0;else if(C===t)s(e,39);else if(C&2097152)d=e.token===2162700?Y(e,u,n,1,f,c,i,o,E,w,v):_(e,u,n,1,f,c,i,o,E,w,v),C=e.token,C!==1077936157&&C!==t&&C!==18?(e.destructible&8&&s(e,69),d=N(e,u,d,f,0,E,w,v),k|=e.assignable&2?16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(k|=16),d=U(e,u,f,c,E,w,v,d)):((e.token&8454144)===8454144&&(d=n2(e,u,1,E,w,v,4,C,d)),q(e,u|32768,22)&&(d=f2(e,u,d,E,w,v)),k|=e.assignable&2?16:32)):k|=t===1074790415&&C!==1077936157?16:e.destructible;else{k|=32,d=W(e,u,1,f,1,e.tokenPos,e.linePos,e.colPos);let{token:M,tokenPos:S,linePos:V,colPos:h}=e;return M===1077936157&&M!==t&&M!==18?(e.assignable&2&&s(e,24),d=U(e,u,f,c,S,V,h,d),k|=16):(M===18?k|=16:M!==t&&(d=U(e,u,f,c,S,V,h,d)),k|=e.assignable&1?32:16),e.destructible=k,e.token!==t&&e.token!==18&&s(e,156),y(e,u,m,g,a,{type:c?"RestElement":"SpreadElement",argument:d})}if(e.token!==t)if(i&1&&(k|=l?16:32),q(e,u|32768,1077936157)){k&16&&s(e,24),r(e,d);let M=R(e,u,1,f,e.tokenPos,e.linePos,e.colPos);d=y(e,u,E,w,v,c?{type:"AssignmentPattern",left:d,right:M}:{type:"AssignmentExpression",left:d,operator:"=",right:M}),k=16}else k|=16;return e.destructible=k,y(e,u,m,g,a,{type:c?"RestElement":"SpreadElement",argument:d})}function Z(e,u,n,t,i,o,l){let f=n&64?14680064:31981568;u=(u|f)^f|(n&88)<<18|100925440;let c=u&64?J(s2(),512):void 0,m=Ju(e,u|8388608,c,n,1,t);c&&(c=J(c,128));let g=H2(e,u&-134230017,c,0,void 0,void 0);return y(e,u,i,o,l,{type:"FunctionExpression",params:m,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function Mu(e,u,n,t,i,o,l){let f=Y(e,u,void 0,n,t,0,2,0,i,o,l);return u&256&&e.destructible&64&&s(e,61),e.destructible&8&&s(e,60),f}function Y(e,u,n,t,i,o,l,f,c,m,g){D(e,u);let a=[],d=0,k=0;for(u=(u|134217728)^134217728;e.token!==1074790415;){let{token:b,tokenValue:E,linePos:w,colPos:v,tokenPos:M}=e;if(b===14)a.push(D2(e,u,n,1074790415,l,f,0,i,o,M,w,v));else{let S=0,V=null,h,Q=e.token;if(e.token&143360||e.token===121)if(V=I(e,u),e.token===18||e.token===1074790415||e.token===1077936157)if(S|=4,u&1024&&(b&537079808)===537079808?d|=16:O2(e,u,l,b,0),n&&u2(e,u,n,E,l,f),q(e,u|32768,1077936157)){d|=8;let B=R(e,u,1,i,e.tokenPos,e.linePos,e.colPos);d|=e.destructible&256?256:0|e.destructible&128?128:0,h=y(e,u,M,w,v,{type:"AssignmentPattern",left:u&536870912?Object.assign({},V):V,right:B})}else d|=(b===209008?128:0)|(b===121?16:0),h=u&536870912?Object.assign({},V):V;else if(q(e,u|32768,21)){let{tokenPos:B,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){let o2=e.token,a2=e.tokenValue;d|=Q===121?16:0,h=K(e,u,l,0,1,i,1,B,F,T);let{token:x}=e;h=N(e,u,h,i,0,B,F,T),e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?(d|=e.destructible&128?128:0,e.assignable&2?d|=16:n&&(o2&143360)===143360&&u2(e,u,n,a2,l,f)):d|=e.assignable&1?32:16:(e.token&4194304)===4194304?(e.assignable&2?d|=16:x!==1077936157?d|=32:n&&u2(e,u,n,a2,l,f),h=U(e,u,i,o,B,F,T,h)):(d|=16,(e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,x,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):e.destructible&8?s(e,69):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,(e.token&4194304)===4194304?h=L2(e,u,i,o,B,F,T,h):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,i,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,e.token!==18&&b!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===69271571?(d|=16,b===209007&&(S|=16),S|=(b===12402?256:b===12403?512:1)|2,V=m2(e,u,i),d|=e.assignable,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token&143360?(d|=16,b===121&&s(e,93),b===209007&&(e.flags&1&&s(e,129),S|=16),V=I(e,u),S|=b===12402?256:b===12403?512:1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token===67174411?(d|=16,S|=1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token===8457014?(d|=16,b===12402?s(e,40):b===12403?s(e,41):b===143483&&s(e,93),D(e,u),S|=9|(b===209007?16:0),e.token&143360?V=I(e,u):(e.token&134217728)===134217728?V=X(e,u):e.token===69271571?(S|=2,V=m2(e,u,i),d|=e.assignable):s(e,28,O[e.token&255]),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):(e.token&134217728)===134217728?(b===209007&&(S|=16),S|=b===12402?256:b===12403?512:1,d|=16,V=X(e,u),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):s(e,130);else if((e.token&134217728)===134217728)if(V=X(e,u),e.token===21){P(e,u|32768,21);let{tokenPos:B,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){h=K(e,u,l,0,1,i,1,B,F,T);let{token:o2,tokenValue:a2}=e;h=N(e,u,h,i,0,B,F,T),e.token===18||e.token===1074790415?o2===1077936157||o2===1074790415||o2===18?e.assignable&2?d|=16:n&&u2(e,u,n,a2,l,f):d|=e.assignable&1?32:16:e.token===1077936157?(e.assignable&2&&(d|=16),h=U(e,u,i,o,B,F,T,h)):(d|=16,h=U(e,u,i,o,B,F,T,h))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(e.destructible&8)!==8&&(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,(e.token&4194304)===4194304?h=L2(e,u,i,o,B,F,T,h):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,0,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===67174411?(S|=1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos),d=e.assignable|16):s(e,131);else if(e.token===69271571)if(V=m2(e,u,i),d|=e.destructible&256?256:0,S|=2,e.token===21){D(e,u|32768);let{tokenPos:B,linePos:F,colPos:T,tokenValue:o2,token:a2}=e;if(e.token&143360){h=K(e,u,l,0,1,i,1,B,F,T);let{token:x}=e;h=N(e,u,h,i,0,B,F,T),(e.token&4194304)===4194304?(d|=e.assignable&2?16:x===1077936157?0:32,h=L2(e,u,i,o,B,F,T,h)):e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?e.assignable&2?d|=16:n&&(a2&143360)===143360&&u2(e,u,n,o2,l,f):d|=e.assignable&1?32:16:(d|=16,h=U(e,u,i,o,B,F,T,h))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):d&8?s(e,60):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?d|16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(d|=16),h=L2(e,u,i,o,B,F,T,h)):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,0,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===67174411?(S|=1,h=Z(e,u,S,i,e.tokenPos,w,v),d=16):s(e,42);else if(b===8457014)if(P(e,u|32768,8457014),S|=8,e.token&143360){let{token:B,line:F,index:T}=e;V=I(e,u),S|=1,e.token===67174411?(d|=16,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):k2(T,F,T,B===209007?44:B===12402||e.token===12403?43:45,O[B&255])}else(e.token&134217728)===134217728?(d|=16,V=X(e,u),S|=1,h=Z(e,u,S,i,M,w,v)):e.token===69271571?(d|=16,S|=3,V=m2(e,u,i),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):s(e,123);else s(e,28,O[b&255]);d|=e.destructible&128?128:0,e.destructible=d,a.push(y(e,u,M,w,v,{type:"Property",key:V,value:h,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(d|=e.destructible,e.token!==18)break;D(e,u)}P(e,u,1074790415),k>1&&(d|=64);let C=y(e,u,c,m,g,{type:o?"ObjectPattern":"ObjectExpression",properties:a});return!t&&e.token&4194304?xe(e,u,d,i,o,c,m,g,C):(e.destructible=d,C)}function Ju(e,u,n,t,i,o){P(e,u,67174411);let l=[];if(e.flags=(e.flags|128)^128,e.token===16)return t&512&&s(e,35,"Setter","one",""),D(e,u),l;t&256&&s(e,35,"Getter","no","s"),t&512&&e.token===14&&s(e,36),u=(u|134217728)^134217728;let f=0,c=0;for(;e.token!==18;){let m=null,{tokenPos:g,linePos:a,colPos:d}=e;if(e.token&143360?(u&1024||((e.token&36864)===36864&&(e.flags|=256),(e.token&537079808)===537079808&&(e.flags|=512)),m=ae(e,u,n,t|1,0,g,a,d)):(e.token===2162700?m=Y(e,u,n,1,o,1,i,0,g,a,d):e.token===69271571?m=_(e,u,n,1,o,1,i,0,g,a,d):e.token===14&&(m=D2(e,u,n,16,i,0,0,o,1,g,a,d)),c=1,e.destructible&48&&s(e,48)),e.token===1077936157){D(e,u|32768),c=1;let k=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);m=y(e,u,g,a,d,{type:"AssignmentPattern",left:m,right:k})}if(f++,l.push(m),!q(e,u,18)||e.token===16)break}return t&512&&f!==1&&s(e,35,"Setter","one",""),n&&n.scopeError!==void 0&&j2(n.scopeError),c&&(e.flags|=128),P(e,u,16),l}function m2(e,u,n){D(e,u|32768);let t=R(e,(u|134217728)^134217728,1,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,20),t}function ju(e,u,n,t,i,o,l,f){e.flags=(e.flags|128)^128;let{tokenPos:c,linePos:m,colPos:g}=e;D(e,u|32768|268435456);let a=u&64?J(s2(),1024):void 0;if(u=(u|134217728)^134217728,q(e,u,16))return M2(e,u,a,[],n,0,o,l,f);let d=0;e.destructible&=-385;let k,C=[],b=0,E=0,{tokenPos:w,linePos:v,colPos:M}=e;for(e.assignable=1;e.token!==16;){let{token:S,tokenPos:V,linePos:h,colPos:Q}=e;if(S&143360)a&&t2(e,u,a,e.tokenValue,1,0),k=K(e,u,t,0,1,1,1,V,h,Q),e.token===16||e.token===18?e.assignable&2?(d|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(e.token===1077936157?E=1:d|=16,k=N(e,u,k,1,0,V,h,Q),e.token!==16&&e.token!==18&&(k=U(e,u,1,0,V,h,Q,k)));else if((S&2097152)===2097152)k=S===2162700?Y(e,u|268435456,a,0,1,0,t,i,V,h,Q):_(e,u|268435456,a,0,1,0,t,i,V,h,Q),d|=e.destructible,E=1,e.assignable=2,e.token!==16&&e.token!==18&&(d&8&&s(e,119),k=N(e,u,k,0,0,V,h,Q),d|=16,e.token!==16&&e.token!==18&&(k=U(e,u,0,0,V,h,Q,k)));else if(S===14){k=D2(e,u,a,16,t,i,0,1,0,V,h,Q),e.destructible&16&&s(e,72),E=1,b&&(e.token===16||e.token===18)&&C.push(k),d|=8;break}else{if(d|=16,k=R(e,u,1,1,V,h,Q),b&&(e.token===16||e.token===18)&&C.push(k),e.token===18&&(b||(b=1,C=[k])),b){for(;q(e,u|32768,18);)C.push(R(e,u,1,1,e.tokenPos,e.linePos,e.colPos));e.assignable=2,k=y(e,u,w,v,M,{type:"SequenceExpression",expressions:C})}return P(e,u,16),e.destructible=d,k}if(b&&(e.token===16||e.token===18)&&C.push(k),!q(e,u|32768,18))break;if(b||(b=1,C=[k]),e.token===16){d|=8;break}}return b&&(e.assignable=2,k=y(e,u,w,v,M,{type:"SequenceExpression",expressions:C})),P(e,u,16),d&16&&d&8&&s(e,146),d|=e.destructible&256?256:0|e.destructible&128?128:0,e.token===10?(d&48&&s(e,47),u&4196352&&d&128&&s(e,29),u&2098176&&d&256&&s(e,30),E&&(e.flags|=128),M2(e,u,a,b?C:[k],n,0,o,l,f)):(d&8&&s(e,140),e.destructible=(e.destructible|256)^256|d,u&128?y(e,u,c,m,g,{type:"ParenthesizedExpression",expression:k}):k)}function de(e,u,n,t,i){let{tokenValue:o}=e,l=I(e,u);if(e.assignable=1,e.token===10){let f;return u&64&&(f=X2(e,u,o)),e.flags=(e.flags|128)^128,B2(e,u,f,[l],0,n,t,i)}return l}function z2(e,u,n,t,i,o,l,f,c,m){o||s(e,55),i&&s(e,49),e.flags&=-129;let g=u&64?X2(e,u,n):void 0;return B2(e,u,g,[t],l,f,c,m)}function M2(e,u,n,t,i,o,l,f,c){i||s(e,55);for(let m=0;m0&&e.tokenValue==="constructor"&&s(e,107),e.token===1074790415&&s(e,106),q(e,u,1074790417)){k>0&&s(e,117);continue}a.push(n1(e,u,t,n,i,d,0,l,e.tokenPos,e.linePos,e.colPos))}return P(e,o&8?u|32768:u,1074790415),e.flags=e.flags&-33|g,y(e,u,f,c,m,{type:"ClassBody",body:a})}function n1(e,u,n,t,i,o,l,f,c,m,g){let a=l?32:0,d=null,{token:k,tokenPos:C,linePos:b,colPos:E}=e;if(k&176128)switch(d=I(e,u),k){case 36972:if(!l&&e.token!==67174411&&(e.token&1048576)!==1048576&&e.token!==1077936157)return n1(e,u,n,t,i,o,1,f,c,m,g);break;case 209007:if(e.token!==67174411&&!(e.flags&1)){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=16|(ue(e,u,8457014)?8:0)}break;case 12402:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=256}break;case 12403:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=512}break}else if(k===69271571)a|=2,d=m2(e,t,f);else if((k&134217728)===134217728)d=X(e,u);else if(k===8457014)a|=8,D(e,u);else if(u&1&&e.token===131)a|=4096,d=J2(e,u|16384,C,b,E);else if(u&1&&(e.token&1073741824)===1073741824)a|=128;else{if(l&&k===2162700)return hu(e,u,n,C,b,E);k===122?(d=I(e,u),e.token!==67174411&&s(e,28,O[e.token&255])):s(e,28,O[e.token&255])}if(a&792&&(e.token&143360?d=I(e,u):(e.token&134217728)===134217728?d=X(e,u):e.token===69271571?(a|=2,d=m2(e,u,0)):e.token===122?d=I(e,u):u&1&&e.token===131?(a|=4096,d=J2(e,u,C,b,E)):s(e,132)),a&2||(e.tokenValue==="constructor"?((e.token&1073741824)===1073741824?s(e,126):!(a&32)&&e.token===67174411&&(a&920?s(e,51,"accessor"):u&524288||(e.flags&32?s(e,52):e.flags|=32)),a|=64):!(a&4096)&&a&824&&e.tokenValue==="prototype"&&s(e,50)),u&1&&e.token!==67174411)return I2(e,u,d,a,o,C,b,E);let w=Z(e,u,a,f,e.tokenPos,e.linePos,e.colPos);return y(e,u,c,m,g,u&1?{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:d,decorators:o,value:w}:{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:d,value:w})}function J2(e,u,n,t,i){D(e,u);let{tokenValue:o}=e;return o==="constructor"&&s(e,125),D(e,u),y(e,u,n,t,i,{type:"PrivateIdentifier",name:o})}function I2(e,u,n,t,i,o,l,f){let c=null;if(t&8&&s(e,0),e.token===1077936157){D(e,u|32768);let{tokenPos:m,linePos:g,colPos:a}=e;e.token===537079928&&s(e,116);let d=t&64?14680064:31981568;u=(u|d)^d|(t&88)<<18|100925440,c=K(e,u|16384,2,0,1,0,1,m,g,a),((e.token&1073741824)!==1073741824||(e.token&4194304)===4194304)&&(c=N(e,u|16384,c,0,0,m,g,a),c=U(e,u|16384,0,0,m,g,a,c),e.token===18&&(c=p(e,u,0,o,l,f,c)))}return y(e,u,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(t&32)>0,computed:(t&2)>0,decorators:i})}function i1(e,u,n,t,i,o,l,f){if(e.token&143360)return ae(e,u,n,t,i,o,l,f);(e.token&2097152)!==2097152&&s(e,28,O[e.token&255]);let c=e.token===69271571?_(e,u,n,1,0,1,t,i,o,l,f):Y(e,u,n,1,0,1,t,i,o,l,f);return e.destructible&16&&s(e,48),e.destructible&32&&s(e,48),c}function ae(e,u,n,t,i,o,l,f){let{tokenValue:c,token:m}=e;return u&1024&&((m&537079808)===537079808?s(e,116):(m&36864)===36864&&s(e,115)),(m&20480)===20480&&s(e,100),u&2099200&&m===241773&&s(e,30),m===241739&&t&24&&s(e,98),u&4196352&&m===209008&&s(e,96),D(e,u),n&&u2(e,u,n,c,t,i),y(e,u,o,l,f,{type:"Identifier",name:c})}function me(e,u,n,t,i,o){if(D(e,u),e.token===8456259)return y(e,u,t,i,o,{type:"JSXFragment",openingFragment:Wu(e,u,t,i,o),children:Te(e,u),closingFragment:Yu(e,u,n,e.tokenPos,e.linePos,e.colPos)});let l=null,f=[],c=ru(e,u,n,t,i,o);if(!c.selfClosing){f=Te(e,u),l=_u(e,u,n,e.tokenPos,e.linePos,e.colPos);let m=U2(l.name);U2(c.name)!==m&&s(e,150,m)}return y(e,u,t,i,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function Wu(e,u,n,t,i){return d2(e,u),y(e,u,n,t,i,{type:"JSXOpeningFragment"})}function _u(e,u,n,t,i,o){P(e,u,25);let l=t1(e,u,e.tokenPos,e.linePos,e.colPos);return n?P(e,u,8456259):e.token=d2(e,u),y(e,u,t,i,o,{type:"JSXClosingElement",name:l})}function Yu(e,u,n,t,i,o){return P(e,u,25),P(e,u,8456259),y(e,u,t,i,o,{type:"JSXClosingFragment"})}function Te(e,u){let n=[];for(;e.token!==25;)e.index=e.tokenPos=e.startPos,e.column=e.colPos=e.startColumn,e.line=e.linePos=e.startLine,d2(e,u),n.push(Qu(e,u,e.tokenPos,e.linePos,e.colPos));return n}function Qu(e,u,n,t,i){if(e.token===138)return Zu(e,u,n,t,i);if(e.token===2162700)return l1(e,u,0,0,n,t,i);if(e.token===8456258)return me(e,u,0,n,t,i);s(e,0)}function Zu(e,u,n,t,i){d2(e,u);let o={type:"JSXText",value:e.tokenValue};return u&512&&(o.raw=e.tokenRaw),y(e,u,n,t,i,o)}function ru(e,u,n,t,i,o){(e.token&143360)!==143360&&(e.token&4096)!==4096&&s(e,0);let l=t1(e,u,e.tokenPos,e.linePos,e.colPos),f=xu(e,u),c=e.token===8457016;return e.token===8456259?d2(e,u):(P(e,u,8457016),n?P(e,u,8456259):d2(e,u)),y(e,u,t,i,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function t1(e,u,n,t,i){Q2(e);let o=$2(e,u,n,t,i);if(e.token===21)return o1(e,u,o,n,t,i);for(;q(e,u,67108877);)Q2(e),o=Gu(e,u,o,n,t,i);return o}function Gu(e,u,n,t,i,o){let l=$2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,t,i,o,{type:"JSXMemberExpression",object:n,property:l})}function xu(e,u){let n=[];for(;e.token!==8457016&&e.token!==8456259&&e.token!==1048576;)n.push(e0(e,u,e.tokenPos,e.linePos,e.colPos));return n}function pu(e,u,n,t,i){D(e,u),P(e,u,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,t,i,{type:"JSXSpreadAttribute",argument:o})}function e0(e,u,n,t,i){if(e.token===2162700)return pu(e,u,n,t,i);Q2(e);let o=null,l=$2(e,u,n,t,i);if(e.token===21&&(l=o1(e,u,l,n,t,i)),e.token===1077936157){let f=_1(e,u),{tokenPos:c,linePos:m,colPos:g}=e;switch(f){case 134283267:o=X(e,u);break;case 8456258:o=me(e,u,1,c,m,g);break;case 2162700:o=l1(e,u,1,1,c,m,g);break;default:s(e,149)}}return y(e,u,n,t,i,{type:"JSXAttribute",value:o,name:l})}function o1(e,u,n,t,i,o){P(e,u,21);let l=$2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,t,i,o,{type:"JSXNamespacedName",namespace:n,name:l})}function l1(e,u,n,t,i,o,l){D(e,u|32768);let{tokenPos:f,linePos:c,colPos:m}=e;if(e.token===14)return u0(e,u,i,o,l);let g=null;return e.token===1074790415?(t&&s(e,152),g=n0(e,u,e.startPos,e.startLine,e.startColumn)):g=R(e,u,1,0,f,c,m),n?P(e,u,1074790415):d2(e,u),y(e,u,i,o,l,{type:"JSXExpressionContainer",expression:g})}function u0(e,u,n,t,i){P(e,u,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,t,i,{type:"JSXSpreadChild",expression:o})}function n0(e,u,n,t,i){return e.startPos=e.tokenPos,e.startLine=e.linePos,e.startColumn=e.colPos,y(e,u,n,t,i,{type:"JSXEmptyExpression"})}function $2(e,u,n,t,i){let{tokenValue:o}=e;return D(e,u),y(e,u,n,t,i,{type:"JSXIdentifier",name:o})}function f1(e,u){return eu(e,u,0)}function i0(e,u){let n=new SyntaxError(e+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(n,u)}var c1=i0;function t0(e){let u=[];for(let n of e)try{return n()}catch(t){u.push(t)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var d1=t0;var o0=(e,u,n)=>{if(!(e&&u==null))return Array.isArray(u)||typeof u=="string"?u[n<0?u.length+n:n]:u.at(n)},ge=o0;function l0(e){return Array.isArray(e)&&e.length>0}var s1=l0;function $(e){var t,i,o;let u=((t=e.range)==null?void 0:t[0])??e.start,n=(o=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:o[0];return n?Math.min($(n),u):u}function e2(e){var u;return((u=e.range)==null?void 0:u[1])??e.end}function f0(e){let u=new Set(e);return n=>u.has(n==null?void 0:n.type)}var a1=f0;var c0=a1(["Block","CommentBlock","MultiLine"]),v2=c0;function d0(e){let u=`*${e.value}*`.split(` -`);return u.length>1&&u.every(n=>n.trimStart()[0]==="*")}var ye=d0;function s0(e){return v2(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var m1=s0;var T2=null;function F2(e){if(T2!==null&&typeof T2.property){let u=T2;return T2=F2.prototype=null,u}return T2=F2.prototype=e??Object.create(null),new F2}var a0=10;for(let e=0;e<=a0;e++)F2();function ke(e){return F2(e)}function m0(e,u="type"){ke(e);function n(t){let i=t[u],o=e[i];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:t});return o}return n}var g1=m0;var y1={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var g0=g1(y1),k1=g0;function Ae(e,u){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let t=0;t{var l;(l=o.leadingComments)!=null&&l.some(m1)&&i.add($(o))}),e=W2(e,o=>{if(o.type==="ParenthesizedExpression"){let{expression:l}=o;if(l.type==="TypeCastExpression")return l.range=[...o.range],l;let f=$(o);if(!i.has(f))return l.extra={...l.extra,parenthesized:!0},l}})}if(e=W2(e,i=>{var o;switch(i.type){case"LogicalExpression":if(A1(i))return he(i);break;case"VariableDeclaration":{let l=ge(!1,i.declarations,-1);l!=null&&l.init&&t[e2(l)]!==";"&&(i.range=[$(i),e2(l)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let l=$(i);i.name={type:"Identifier",name:i.name,range:[l,l+i.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(n==="meriyah"&&((o=i.exported)==null?void 0:o.type)==="Identifier"){let{exported:l}=i,f=t.slice($(l),e2(l));(f.startsWith('"')||f.startsWith("'"))&&(i.exported={...i.exported,type:"Literal",value:i.exported.name,raw:f})}break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),s1(e.comments)){let i=ge(!1,e.comments,-1);for(let o=e.comments.length-2;o>=0;o--){let l=e.comments[o];e2(l)===$(i)&&v2(l)&&v2(i)&&ye(l)&&ye(i)&&(e.comments.splice(o+1,1),l.value+="*//*"+i.value,l.range=[$(l),e2(i)]),i=l}}return e.type==="Program"&&(e.range=[0,t.length]),e}function A1(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function he(e){return A1(e)?he({type:"LogicalExpression",operator:e.operator,left:he({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[$(e.left),e2(e.right.left)]}),right:e.right.right,range:[$(e),e2(e)]}):e}var h1=y0;var k0=(e,u,n,t)=>{if(!(e&&u==null))return u.replaceAll?u.replaceAll(n,t):n.global?u.replace(n,t):u.split(n).join(t)},b2=k0;var A0=/\*\/$/,h0=/^\/\*\*?/,D0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,b0=/(^|\s+)\/\/([^\n\r]*)/g,D1=/^(\r?\n)+/,C0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,b1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,P0=/(\r?\n|^) *\* ?/g,E0=[];function C1(e){let u=e.match(D0);return u?u[0].trimStart():""}function P1(e){let u=` -`;e=b2(!1,e.replace(h0,"").replace(A0,""),P0,"$1");let n="";for(;n!==e;)n=e,e=b2(!1,e,C0,`${u}$1 $2${u}`);e=e.replace(D1,"").trimEnd();let t=Object.create(null),i=b2(!1,e,b1,"").replace(D1,"").trimEnd(),o;for(;o=b1.exec(e);){let l=b2(!1,o[2],b0,"");if(typeof t[o[1]]=="string"||Array.isArray(t[o[1]])){let f=t[o[1]];t[o[1]]=[...E0,...Array.isArray(f)?f:[f],l]}else t[o[1]]=l}return{comments:i,pragmas:t}}function w0(e){if(!e.startsWith("#!"))return"";let u=e.indexOf(` -`);return u===-1?e:e.slice(0,u)}var E1=w0;function S0(e){let u=E1(e);u&&(e=e.slice(u.length+1));let n=C1(e),{pragmas:t,comments:i}=P1(n);return{shebang:u,text:e,pragmas:t,comments:i}}function w1(e){let{pragmas:u}=S0(e);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function B0(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:w1,locStart:$,locEnd:e2,...e}}var S1=B0;function v0(e){let{filepath:u}=e;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var B1=v0;var T0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function F0(e,u){let n=[],t=[],i=f1(e,{...T0,module:u==="module",onComment:n,onToken:t});return i.comments=n,i.tokens=t,i}function q0(e){var o;let{message:u,line:n,column:t}=e,i=(o=u.match(/^\[(?\d+):(?\d+)\]: (?.*)$/u))==null?void 0:o.groups;return i&&(u=i.message,typeof n!="number"&&(n=Number(i.line),t=Number(i.column))),typeof n!="number"?e:c1(u,{loc:{start:{line:n,column:t}},cause:e})}function L0(e,u={}){let n=B1(u),t=(n?[n]:["module","script"]).map(o=>()=>F0(e,o)),i;try{i=d1(t)}catch({errors:[o]}){throw q0(o)}return h1(i,{parser:"meriyah",text:e})}var I0=S1(L0);return L1(N0);}); \ No newline at end of file +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var x2=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Oe=Object.prototype.hasOwnProperty;var In=(n,e)=>{for(var u in e)x2(n,u,{get:e[u],enumerable:!0})},Re=(n,e,u,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ve(e))!Oe.call(n,o)&&o!==u&&x2(n,o,{get:()=>e[o],enumerable:!(t=Ne(e,o))||t.enumerable});return n};var Ue=n=>Re(x2({},"__esModule",{value:!0}),n);var Q1={};In(Q1,{parsers:()=>Bn});var Bn={};In(Bn,{meriyah:()=>Y1});var Me=(n,e,u,t)=>{if(!(n&&e==null))return e.replaceAll?e.replaceAll(u,t):u.global?e.replace(u,t):e.split(u).join(t)},i2=Me;var Je={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate, found %0",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},m2=class extends SyntaxError{constructor(e,u,t,o,i,l,f,...d){let g="["+u+":"+t+"-"+i+":"+l+"]: "+Je[f].replace(/%(\d+)/g,(m,y)=>d[y]);super(`${g}`),this.start=e,this.end=o,this.range=[e,o],this.loc={start:{line:u,column:t},end:{line:i,column:l}},this.description=g}};function c(n,e,...u){throw new m2(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,e,...u)}function z2(n){throw new m2(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,n.type,...n.params)}function $(n,e,u,t,o,i,l,...f){throw new m2(n,e,u,t,o,i,l,...f)}function h2(n,e,u,t,o,i,l){throw new m2(n,e,u,t,o,i,l)}function je(n){return(On[(n>>>5)+0]>>>n&31&1)!==0}function Vn(n){return(On[(n>>>5)+34816]>>>n&31&1)!==0}var On=((n,e)=>{let u=new Uint32Array(104448),t=0,o=0;for(;t<3822;){let i=n[t++];if(i<0)o-=i;else{let l=n[t++];i&2&&(l=e[l]),i&1?u.fill(l,o,o+=n[t++]):u[o++]=l}}return u})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,63,2,64,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,65,2,0,0,4294836735,0,3221225471,0,4294901942,2,66,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,60,2,7,2,6,0,4286611199,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,203,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,71,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,72,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,49,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,110,2,51,2,0,2,81,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,2,53,0,1046528,3,0,3,2,9,2,0,2,54,0,4294960127,2,10,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,2,210,2,55,0,1048577,2,86,2,14,-1,2,14,0,131042,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,90,2,2,0,-16,2,91,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,2,133,2,0,0,3220242431,3,0,3,2,19,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,101,2,102,2,22,2,23,3,0,3,0,67057663,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,2,25,0,1638399,2,183,2,109,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,163,-4,2,20,2,0,2,36,0,1,2,0,2,67,2,6,2,12,2,10,2,0,2,115,-1,3,0,4,2,10,2,23,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,48,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,57,2,167,2,20,2,43,2,36,2,18,2,37,2,18,2,126,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,144,2,0,2,58,2,56,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,61,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,134,0,4190109695,2,52,-2,2,135,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,68,2,18,2,0,2,42,-6,2,0,2,45,2,59,2,44,2,45,2,46,2,47,0,8388351,-2,2,136,0,3028287487,2,48,2,138,0,33259519,2,49,-9,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,2,205,-4,2,57,-13,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,0,4294954999,2,0,-16,2,0,2,92,2,0,0,2105343,0,4160749584,2,177,-34,2,8,2,154,-6,0,4194303871,0,4294903771,2,0,2,60,2,100,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-6,2,18,2,12,-15,2,155,3,0,6,0,8323103,-1,3,0,2,2,61,-37,2,62,2,156,2,157,2,158,2,159,2,160,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,63,2,64,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,65,2,0,2,34,-1,2,18,2,66,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,67,3,0,2,0,131135,2,98,0,70256639,0,71303167,0,272,2,42,2,6,0,32511,2,0,2,49,-1,2,99,2,68,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,70,2,69,0,33554435,2,131,2,70,2,164,0,131075,0,3594373096,0,67094296,2,69,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,171,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,71,2,38,-1,2,4,0,917503,2,38,-1,2,72,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,73,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,51,2,0,2,81,2,49,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,127,0,4227907585,2,0,2,37,2,0,2,50,2,184,2,10,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,-3,2,86,2,14,-3,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,90,2,-17,2,91,0,524157950,2,4,2,0,2,92,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,0,4294965179,0,7,2,0,2,9,2,95,2,9,-1,0,1761345536,2,98,0,4294901823,2,38,2,20,2,99,2,35,2,100,0,2080440287,2,0,2,34,2,153,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,101,2,102,2,22,2,23,3,0,3,0,7,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,-3,2,109,3,0,3,2,20,-1,3,5,2,2,110,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,67,2,6,2,30,2,10,2,0,2,115,-1,3,0,4,2,10,2,18,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,126,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,98,0,4294934591,2,37,-7,2,0,0,197631,2,57,-1,2,20,2,43,2,37,2,18,0,3,2,18,2,126,2,21,2,127,2,54,-1,0,2490368,2,127,2,25,2,18,2,34,2,127,2,38,0,4294901904,0,4718591,2,127,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,70,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,192,-1,2,0,2,25,2,209,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,133,-3,3,0,2,2,55,2,134,0,2147549183,0,2,-2,2,135,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,42,-6,2,0,0,1,2,59,2,17,0,1,2,46,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,10,-55,3,0,17,2,42,2,8,2,18,2,0,2,8,2,18,2,60,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,73,-6,3,0,2,-4,3,0,2,0,67583,-1,2,107,-2,0,11,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,2,144,-187,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,2,153,-57,2,8,2,154,-7,2,18,2,0,2,60,-4,2,0,0,1065361407,0,16384,-9,2,18,2,60,2,0,2,133,-14,2,18,2,133,-6,2,18,0,81919,-15,2,155,3,0,6,2,126,-1,3,0,2,0,2063,-37,2,62,2,156,2,157,2,158,2,159,2,160,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,55,2,0,0,8193,-21,2,201,0,10255,0,4,-11,2,69,2,182,-1,0,71680,-1,2,174,0,4292900864,0,268435519,-5,2,163,-1,2,173,-1,0,6144,-2,2,46,-1,2,168,-1,0,2147532800,2,164,2,170,0,8355840,-2,0,4,-4,2,198,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,165,0,4294886464,0,33292336,0,417809,2,165,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,166,0,201327104,0,3634348576,0,8323120,2,166,0,202375680,0,2678047264,0,4293984304,2,166,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,2,213,2,167,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,163,0,4160757760,2,0,-6,2,179,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,168,2,186,2,187,-2,2,175,-20,0,3758096385,-2,2,169,2,195,2,94,2,180,0,4294057984,-2,2,176,2,172,0,4227874816,-2,2,169,-1,2,170,-1,2,181,2,55,0,4026593280,0,14,0,4292919296,-1,2,178,0,939588608,-1,0,805306368,-1,2,55,2,171,2,172,2,173,2,211,2,0,-2,0,8192,-4,0,267386880,-1,0,117440512,0,7168,-1,2,170,2,168,2,174,2,188,-16,2,175,-1,0,1426112704,2,176,-1,2,196,0,271581216,0,2149777408,2,25,2,174,2,55,0,851967,2,189,-1,2,177,2,190,-4,2,178,-20,2,98,2,208,-56,0,3145728,2,191,-10,0,32505856,-1,2,179,-1,0,2147385088,2,94,1,2155905152,2,-3,2,176,2,0,0,67108864,-2,2,180,-6,2,181,2,25,0,1,-1,0,1,-1,2,182,-3,2,126,2,69,-2,2,100,-2,0,32704,2,55,-915,2,183,-1,2,207,-10,2,194,-5,2,185,-6,0,3759456256,2,19,-1,2,184,-1,2,185,-2,0,4227874752,-3,0,2146435072,2,186,-2,0,1006649344,2,55,-1,2,94,0,201375744,-3,0,134217720,2,94,0,4286677377,0,32896,-1,2,178,-3,0,4227907584,-349,0,65520,0,1920,2,167,3,0,264,-11,2,173,-2,2,187,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,193,-1,0,4294934272,2,25,2,187,-1,2,215,0,2158720,-3,2,186,0,1,-4,2,55,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,188,0,120,0,7340032,-2,2,189,2,4,2,25,2,176,3,0,4,2,186,-1,2,190,2,167,-1,0,8176,2,170,2,188,0,1073741824,-1,0,4290773232,2,0,-4,2,176,2,197,0,15728640,2,167,-1,2,174,-1,0,134250480,0,4720640,0,3825467396,-1,2,180,-9,2,94,2,181,0,4294967040,2,137,0,4160880640,3,0,2,0,704,0,1849688064,2,191,-1,2,55,0,4294901887,2,0,0,130547712,0,1879048192,2,212,3,0,2,-1,2,192,2,193,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,200,0,16252928,0,3791388672,2,130,3,0,2,-2,2,206,2,0,-1,2,107,-1,0,66584576,-1,2,199,-1,0,448,0,4294918080,3,0,6,2,55,-1,0,4294755328,0,4294967267,2,7,-1,2,174,2,187,2,25,2,98,2,25,2,194,2,94,-2,0,245760,2,195,-1,2,163,2,202,0,4227923456,-1,2,196,2,174,2,94,-3,0,4292870145,0,262144,-1,2,95,2,0,0,1073758848,2,197,-1,0,4227921920,2,198,0,68289024,0,528402016,0,4292927536,0,46080,2,191,0,4265609306,0,4294967289,-2,0,268435456,2,95,-2,2,199,3,0,5,-1,2,200,2,176,2,0,-2,0,4227923936,2,67,-1,2,187,2,197,2,99,2,168,2,178,2,204,3,0,5,-1,2,167,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,201,2,28,-2,2,174,-2,2,202,-1,2,169,2,98,3,0,5,-1,0,4227923964,0,512,0,8388608,2,203,2,183,2,193,0,4286578944,3,0,2,0,1152,0,1266679808,2,199,0,576,0,4261707776,2,98,3,0,9,2,169,0,131072,0,939524096,2,188,3,0,2,2,16,-1,0,2147221504,-28,2,187,3,0,3,-3,0,4292902912,-6,2,99,3,0,81,2,25,-2,2,107,-33,2,18,2,181,-124,2,188,-18,2,204,3,0,213,-1,2,187,3,0,54,-17,2,169,2,55,2,205,-1,2,55,2,197,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,13,-1,2,187,3,0,6,-2,2,188,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,185,-38,2,181,2,8,2,206,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,167,3,0,72,-3,0,3758159872,0,201391616,3,0,123,-7,2,187,-13,2,180,3,0,2,-1,2,173,2,207,-3,2,99,2,0,-7,2,181,-1,0,384,-1,0,133693440,-3,2,208,-2,2,110,3,0,3,3,180,2,-2,2,94,2,169,3,0,4,-2,2,196,-1,2,163,0,335552923,2,209,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,210,-21,0,134213632,2,162,3,0,34,2,55,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,214,2,152,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,211,-1,2,212,3,0,14,2,25,2,187,3,0,6,2,25,2,213,3,0,15,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,176,3,0,6,2,209,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,47,3,0,8,-1,2,178,-2,2,180,0,98304,0,65537,2,181,-5,2,214,2,0,2,37,2,202,2,167,0,4294770176,2,110,3,0,4,-30,2,192,0,3758153728,-3,0,125829120,-2,2,187,0,4294897664,2,178,-1,2,199,-1,2,174,0,4026580992,2,95,2,0,-10,2,180,0,3758145536,0,31744,-1,0,1610628992,0,4261477376,-4,2,215,-2,2,187,3,0,32,-1335,2,0,-129,2,187,-6,2,176,-180,0,65532,-233,2,177,-18,2,176,3,0,77,-16,2,176,3,0,47,-154,2,170,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294705152,4294770687,67043583,1023,15,2047999,67043343,67051519,16777215,2147483648,4294902e3,28,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,535511039,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294902271,4294549472,4294921215,4095,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,4026531840,402653184,4261412864,63488,1610612736,4227922944,49152,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,57344,4227915776,4278190080,3758096384,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,50331648,65528,65472,4294967168,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,2013265920,4294950912,524288]);function A(n){return n.column++,n.currentChar=n.source.charCodeAt(++n.index)}function tn(n){let e=n.currentChar;if((e&64512)!==55296)return 0;let u=n.source.charCodeAt(n.index+1);return(u&64512)!==56320?0:65536+((e&1023)<<10)+(u&1023)}function on(n,e){n.currentChar=n.source.charCodeAt(++n.index),n.flags|=1,e&4||(n.column=0,n.line++)}function k2(n){n.flags|=1,n.currentChar=n.source.charCodeAt(++n.index),n.column=0,n.line++}function Xe(n){return n===160||n===65279||n===133||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===8201||n===65519}function W(n){return n<65?n-48:n-65+10&15}function He(n){switch(n){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(n&143360)===143360?"Identifier":(n&4096)===4096?"Keyword":"Punctuator"}}var N=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],ze=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Rn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function M2(n){return n<=127?ze[n]>0:Vn(n)}function V2(n){return n<=127?Rn[n]>0:je(n)||n===8204||n===8205}var Un=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function Ke(n){let{source:e}=n;n.currentChar===35&&e.charCodeAt(n.index+1)===33&&(A(n),A(n),ln(n,e,0,4,n.tokenIndex,n.tokenLine,n.tokenColumn))}function Ln(n,e,u,t,o,i,l,f){return t&512&&c(n,0),ln(n,e,u,o,i,l,f)}function ln(n,e,u,t,o,i,l){let{index:f}=n;for(n.tokenIndex=n.index,n.tokenLine=n.line,n.tokenColumn=n.column;n.index=n.source.length)return c(n,34)}let o=n.index-1,i=X.Empty,l=n.currentChar,{index:f}=n;for(;V2(l);){switch(l){case 103:i&X.Global&&c(n,36,"g"),i|=X.Global;break;case 105:i&X.IgnoreCase&&c(n,36,"i"),i|=X.IgnoreCase;break;case 109:i&X.Multiline&&c(n,36,"m"),i|=X.Multiline;break;case 117:i&X.Unicode&&c(n,36,"u"),i&X.UnicodeSets&&c(n,36,"vu"),i|=X.Unicode;break;case 118:i&X.Unicode&&c(n,36,"uv"),i&X.UnicodeSets&&c(n,36,"v"),i|=X.UnicodeSets;break;case 121:i&X.Sticky&&c(n,36,"y"),i|=X.Sticky;break;case 115:i&X.DotAll&&c(n,36,"s"),i|=X.DotAll;break;case 100:i&X.Indices&&c(n,36,"d"),i|=X.Indices;break;default:c(n,35)}l=A(n)}let d=n.source.slice(f,n.index),g=n.source.slice(u,o);return n.tokenRegExp={pattern:g,flags:d},e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),n.tokenValue=_e(n,g,d),65540}function _e(n,e,u){try{return new RegExp(e,u)}catch{try{return new RegExp(e,u),null}catch{c(n,34)}}}function Ye(n,e,u){let{index:t}=n,o="",i=A(n),l=n.index;for(;!(N[i]&8);){if(i===u)return o+=n.source.slice(l,n.index),A(n),e&128&&(n.tokenRaw=n.source.slice(t,n.index)),n.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=n.source.slice(l,n.index),i=A(n),i<127||i===8232||i===8233){let f=Mn(n,e,i);f>=0?o+=String.fromCodePoint(f):Jn(n,f,0)}else o+=String.fromCodePoint(i);l=n.index+1}n.index>=n.end&&c(n,16),i=A(n)}c(n,16)}function Mn(n,e,u,t=0){switch(u){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(n.index1114111)return-5;return n.currentChar<1||n.currentChar!==125?-4:i}else{if(!(N[o]&64))return-4;let i=n.source.charCodeAt(n.index+1);if(!(N[i]&64))return-4;let l=n.source.charCodeAt(n.index+2);if(!(N[l]&64))return-4;let f=n.source.charCodeAt(n.index+3);return N[f]&64?(n.index+=3,n.column+=3,n.currentChar=n.source.charCodeAt(n.index),W(o)<<12|W(i)<<8|W(l)<<4|W(f)):-4}}case 56:case 57:if(t||!(e&64)||e&256)return-3;n.flags|=4096;default:return u}}function Jn(n,e,u){switch(e){case-1:return;case-2:c(n,u?2:1);case-3:c(n,u?3:14);case-4:c(n,7);case-5:c(n,104)}}function jn(n,e){let{index:u}=n,t=67174409,o="",i=A(n);for(;i!==96;){if(i===36&&n.source.charCodeAt(n.index+1)===123){A(n),t=67174408;break}else if(i===92)if(i=A(n),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:f,column:d}=n,g=Mn(n,e|256,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&e&16384){n.index=l,n.line=f,n.column=d,o=null,i=Qe(n,i),i<0&&(t=67174408);break}else Jn(n,g,1)}else n.index=n.end&&c(n,17),i=A(n)}return A(n),n.tokenValue=o,n.tokenRaw=n.source.slice(u+1,n.index-(t===67174409?1:2)),t}function Qe(n,e){for(;e!==96;){switch(e){case 36:{let u=n.index+1;if(u=n.end&&c(n,17),e=A(n)}return e}function Ze(n,e){return n.index>=n.end&&c(n,0),n.index--,n.column--,jn(n,e)}function Fn(n,e,u){let t=n.currentChar,o=0,i=9,l=u&64?0:1,f=0,d=0;if(u&64)o="."+v2(n,t),t=n.currentChar,t===110&&c(n,12);else{if(t===48)if(t=A(n),(t|32)===120){for(u=136,t=A(n);N[t]&4160;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*16+W(t),f++,t=A(n)}(f===0||!d)&&c(n,f===0?21:153)}else if((t|32)===111){for(u=132,t=A(n);N[t]&4128;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*8+(t-48),f++,t=A(n)}(f===0||!d)&&c(n,f===0?0:153)}else if((t|32)===98){for(u=130,t=A(n);N[t]&4224;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*2+(t-48),f++,t=A(n)}(f===0||!d)&&c(n,f===0?0:153)}else if(N[t]&32)for(e&256&&c(n,1),u=1;N[t]&16;){if(N[t]&512){u=32,l=0;break}o=o*8+(t-48),t=A(n)}else N[t]&512?(e&256&&c(n,1),n.flags|=64,u=32):t===95&&c(n,0);if(u&48){if(l){for(;i>=0&&N[t]&4112;){if(t===95){t=A(n),(t===95||u&32)&&h2(n.index,n.line,n.column,n.index+1,n.line,n.column,152),d=1;continue}d=0,o=10*o+(t-48),t=A(n),--i}if(d&&h2(n.index,n.line,n.column,n.index+1,n.line,n.column,153),i>=0&&!M2(t)&&t!==46)return n.tokenValue=o,e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),134283266}o+=v2(n,t),t=n.currentChar,t===46&&(A(n)===95&&c(n,0),u=64,o+="."+v2(n,n.currentChar),t=n.currentChar)}}let g=n.index,m=0;if(t===110&&u&128)m=1,t=A(n);else if((t|32)===101){t=A(n),N[t]&256&&(t=A(n));let{index:y}=n;N[t]&16||c(n,11),o+=n.source.substring(g,y)+v2(n,t),t=n.currentChar}return(n.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Xn=Object.create(null,{this:{value:86111},function:{value:86104},if:{value:20569},return:{value:20572},var:{value:86088},else:{value:20563},for:{value:20567},new:{value:86107},in:{value:8673330},typeof:{value:16863275},while:{value:20578},case:{value:20556},break:{value:20555},try:{value:20577},catch:{value:20557},delete:{value:16863276},throw:{value:86112},switch:{value:86110},continue:{value:20559},default:{value:20561},instanceof:{value:8411187},do:{value:20562},void:{value:16863277},finally:{value:20566},async:{value:209005},await:{value:209006},class:{value:86094},const:{value:86090},constructor:{value:12399},debugger:{value:20560},export:{value:20564},extends:{value:20565},false:{value:86021},from:{value:12403},get:{value:12400},implements:{value:36964},import:{value:86106},interface:{value:36965},let:{value:241737},null:{value:86023},of:{value:274548},package:{value:36966},private:{value:36967},protected:{value:36968},public:{value:36969},set:{value:12401},static:{value:36970},super:{value:86109},true:{value:86022},with:{value:20579},yield:{value:241771},enum:{value:86133},eval:{value:537079926},as:{value:77932},arguments:{value:537079927},target:{value:209029},meta:{value:209030},accessor:{value:12402}});function qn(n,e,u){for(;Rn[A(n)];);return n.tokenValue=n.source.slice(n.tokenIndex,n.index),n.currentChar!==92&&n.currentChar<=126?Xn[n.tokenValue]||208897:fn(n,e,0,u)}function Ge(n,e){let u=Hn(n);return M2(u)||c(n,5),n.tokenValue=String.fromCodePoint(u),fn(n,e,1,N[u]&4)}function fn(n,e,u,t){let o=n.index;for(;n.index0)V2(l)||c(n,20,String.fromCodePoint(l)),n.currentChar=l,n.index++,n.column++;else if(!V2(n.currentChar))break;A(n)}n.index<=n.end&&(n.tokenValue+=n.source.slice(o,n.index));let{length:i}=n.tokenValue;if(t&&i>=2&&i<=11){let l=Xn[n.tokenValue];return l===void 0?208897|(u?-2147483648:0):u?l===209006?e&524800?-2147483528:l|-2147483648:e&256?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?e&67108864&&!(e&2048)?l|-2147483648:-2147483528:-2147274630:e&67108864&&!(e&2048)&&(l&20480)===20480?l|-2147483648:l===241771?e&67108864?-2147274630:e&262144?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(u?-2147483648:0)}function xe(n){let e=A(n);if(e===92)return 130;let u=tn(n);return u&&(e=u),M2(e)||c(n,96),130}function Hn(n){return n.source.charCodeAt(n.index+1)!==117&&c(n,5),n.currentChar=n.source.charCodeAt(n.index+=2),re(n)}function re(n){let e=0,u=n.currentChar;if(u===123){let l=n.index-2;for(;N[A(n)]&64;)e=e<<4|W(n.currentChar),e>1114111&&h2(l,n.line,n.column,n.index,n.line,n.column,104);return n.currentChar!==125&&h2(l,n.line,n.column,n.index,n.line,n.column,7),A(n),e}N[u]&64||c(n,7);let t=n.source.charCodeAt(n.index+1);N[t]&64||c(n,7);let o=n.source.charCodeAt(n.index+2);N[o]&64||c(n,7);let i=n.source.charCodeAt(n.index+3);return N[i]&64||c(n,7),e=W(u)<<12|W(t)<<8|W(o)<<4|W(i),n.currentChar=n.source.charCodeAt(n.index+=4),e}var pe=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function b(n,e){n.flags=(n.flags|1)^1,n.startIndex=n.index,n.startColumn=n.column,n.startLine=n.line,n.setToken(zn(n,e,0))}function zn(n,e,u){let t=n.index===0,{source:o}=n,i=n.index,l=n.line,f=n.column;for(;n.index=n.end)return 8391476;let m=n.currentChar;return m===61?(A(n),4194338):m!==42?8391476:A(n)!==61?8391735:(A(n),4194335)}case 8389959:return A(n)!==61?8389959:(A(n),4194341);case 25233968:{A(n);let m=n.currentChar;return m===43?(A(n),33619993):m===61?(A(n),4194336):25233968}case 25233969:{A(n);let m=n.currentChar;if(m===45){if(A(n),(u&1||t)&&n.currentChar===62){e&64||c(n,112),A(n),u=Ln(n,o,u,e,3,i,l,f),i=n.tokenIndex,l=n.tokenLine,f=n.tokenColumn;continue}return 33619994}return m===61?(A(n),4194337):25233969}case 8457014:{if(A(n),n.index=48&&m<=57)return Fn(n,e,80);if(m===46){let y=n.index+1;if(y=48&&m<=57)))return A(n),67108990}return 22}}}else{if((d^8232)<=1){u=u&-5|1,k2(n);continue}let g=tn(n);if(g>0&&(d=g),Vn(d))return n.tokenValue="",fn(n,e,0,0);if(Xe(d)){A(n);continue}c(n,20,String.fromCodePoint(d))}}return 1048576}function nu(n,e){return n.startIndex=n.tokenIndex=n.index,n.startColumn=n.tokenColumn=n.column,n.startLine=n.tokenLine=n.line,n.setToken(N[n.currentChar]&8192?eu(n,e):zn(n,e,0)),n.getToken()}function eu(n,e){let u=n.currentChar,t=A(n),o=n.index;for(;t!==u;)n.index>=n.end&&c(n,16),t=A(n);return t!==u&&c(n,16),n.tokenValue=n.source.slice(o,n.index),A(n),e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),134283267}function w2(n,e){if(n.startIndex=n.tokenIndex=n.index,n.startColumn=n.tokenColumn=n.column,n.startLine=n.tokenLine=n.line,n.index>=n.end){n.setToken(1048576);return}if(n.currentChar===60){A(n),n.setToken(8456256);return}if(n.currentChar===123){A(n),n.setToken(2162700);return}let u=0;for(;n.index1&&i&32&&n.getToken()&262144&&c(n,61,V[n.getToken()&255]),f}function Pn(n,e,u,t,o,i){let{tokenIndex:l,tokenLine:f,tokenColumn:d}=n,g=n.getToken(),m=null,y=ge(n,e,u,t,o,i,l,f,d);return n.getToken()===1077936155?(b(n,e|8192),m=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),(i&32||!(g&2097152))&&(n.getToken()===274548||n.getToken()===8673330&&(g&2097152||!(o&4)||e&256))&&$(l,f,d,n.index,n.line,n.column,60,n.getToken()===274548?"of":"in")):(o&16||(g&2097152)>0)&&(n.getToken()&262144)!==262144&&c(n,59,o&16?"const":"destructuring"),s(n,e,l,f,d,{type:"VariableDeclarator",id:y,init:m})}function Nu(n,e,u,t,o,i,l,f){b(n,e);let d=((e&524288)>0||(e&512)>0&&(e&2048)>0)&&P(n,e,209006);C(n,e|8192,67174411),u&&(u=j(u,1));let g=null,m=null,y=0,a=null,k=n.getToken()===86088||n.getToken()===241737||n.getToken()===86090,h,{tokenIndex:T,tokenLine:E,tokenColumn:w}=n,I=n.getToken();if(k?I===241737?(a=R(n,e),n.getToken()&2240512?(n.getToken()===8673330?e&256&&c(n,67):a=s(n,e,T,E,w,{type:"VariableDeclaration",kind:"let",declarations:s2(n,e|33554432,u,t,8,32)}),n.assignable=1):e&256?c(n,67):(k=!1,n.assignable=1,a=O(n,e,t,a,0,0,T,E,w),n.getToken()===274548&&c(n,115))):(b(n,e),a=s(n,e,T,E,w,I===86088?{type:"VariableDeclaration",kind:"var",declarations:s2(n,e|33554432,u,t,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:s2(n,e|33554432,u,t,16,32)}),n.assignable=1):I===1074790417?d&&c(n,82):(I&2097152)===2097152?(a=I===2162700?Z(n,e,void 0,t,1,0,0,2,32,T,E,w):Q(n,e,void 0,t,1,0,0,2,32,T,E,w),y=n.destructible,y&64&&c(n,63),n.assignable=y&16?2:1,a=O(n,e|33554432,t,a,0,0,n.tokenIndex,n.tokenLine,n.tokenColumn)):a=Y(n,e|33554432,t,1,0,1,T,E,w),(n.getToken()&262144)===262144){if(n.getToken()===274548){n.assignable&2&&c(n,80,d?"await":"of"),r(n,a),b(n,e|8192),h=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),C(n,e|8192,16);let q=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForOfStatement",left:a,right:h,body:q,await:d})}n.assignable&2&&c(n,80,"in"),r(n,a),b(n,e|8192),d&&c(n,82),h=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn),C(n,e|8192,16);let F=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForInStatement",body:F,left:a,right:h})}d&&c(n,82),k||(y&8&&n.getToken()!==1077936155&&c(n,80,"loop"),a=J(n,e|33554432,t,0,0,T,E,w,a)),n.getToken()===18&&(a=e2(n,e,t,0,n.tokenIndex,n.tokenLine,n.tokenColumn,a)),C(n,e|8192,1074790417),n.getToken()!==1074790417&&(g=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),C(n,e|8192,1074790417),n.getToken()!==16&&(m=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),C(n,e|8192,16);let v=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForStatement",init:a,test:g,update:m,body:v})}function xn(n,e,u){return B2(e,n.getToken())||c(n,118),(n.getToken()&537079808)===537079808&&c(n,119),u&&g2(n,e,u,n.tokenValue,8,0),R(n,e)}function Vu(n,e,u){let t=n.tokenIndex,o=n.tokenLine,i=n.tokenColumn;b(n,e);let l=null,{tokenIndex:f,tokenLine:d,tokenColumn:g}=n,m=[];if(n.getToken()===134283267)l=H(n,e);else{if(n.getToken()&143360){let a=xn(n,e,u);if(m=[s(n,e,f,d,g,{type:"ImportDefaultSpecifier",local:a})],P(n,e,18))switch(n.getToken()){case 8391476:m.push(vn(n,e,u));break;case 2162700:Nn(n,e,u,m);break;default:c(n,107)}}else switch(n.getToken()){case 8391476:m=[vn(n,e,u)];break;case 2162700:Nn(n,e,u,m);break;case 67174411:return pn(n,e,void 0,t,o,i);case 67108877:return rn(n,e,t,o,i);default:c(n,30,V[n.getToken()&255])}l=Ou(n,e)}let y={type:"ImportDeclaration",specifiers:m,source:l};return e&1&&(y.attributes=en(n,e,m)),K(n,e|8192),s(n,e,t,o,i,y)}function vn(n,e,u){let{tokenIndex:t,tokenLine:o,tokenColumn:i}=n;return b(n,e),C(n,e,77932),(n.getToken()&134217728)===134217728&&$(t,o,i,n.index,n.line,n.column,30,V[n.getToken()&255]),s(n,e,t,o,i,{type:"ImportNamespaceSpecifier",local:xn(n,e,u)})}function Ou(n,e){return C(n,e,12403),n.getToken()!==134283267&&c(n,105,"Import"),H(n,e)}function Nn(n,e,u,t){for(b(n,e);n.getToken()&143360||n.getToken()===134283267;){let{tokenValue:o,tokenIndex:i,tokenLine:l,tokenColumn:f}=n,d=n.getToken(),g=O2(n,e),m;P(n,e,77932)?((n.getToken()&134217728)===134217728||n.getToken()===18?c(n,106):J2(n,e,16,n.getToken(),0),o=n.tokenValue,m=R(n,e)):g.type==="Identifier"?(J2(n,e,16,d,0),m=g):c(n,25,V[108]),u&&g2(n,e,u,o,8,0),t.push(s(n,e,i,l,f,{type:"ImportSpecifier",local:m,imported:g})),n.getToken()!==1074790415&&C(n,e,18)}return C(n,e,1074790415),t}function rn(n,e,u,t,o){let i=ne(n,e,s(n,e,u,t,o,{type:"Identifier",name:"import"}),u,t,o);return i=O(n,e,void 0,i,0,0,u,t,o),i=J(n,e,void 0,0,0,u,t,o,i),n.getToken()===18&&(i=e2(n,e,void 0,0,u,t,o,i)),A2(n,e,i,u,t,o)}function pn(n,e,u,t,o,i){let l=ee(n,e,u,0,t,o,i);return l=O(n,e,u,l,0,0,t,o,i),n.getToken()===18&&(l=e2(n,e,u,0,t,o,i,l)),A2(n,e,l,t,o,i)}function Ru(n,e,u){let t=n.tokenIndex,o=n.tokenLine,i=n.tokenColumn;b(n,e|8192);let l=[],f=null,d=null,g=null,m;if(P(n,e|8192,20561)){switch(n.getToken()){case 86104:{f=d2(n,e,u,void 0,4,1,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);break}case 132:case 86094:f=un(n,e,u,void 0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 209005:{let{tokenIndex:a,tokenLine:k,tokenColumn:h}=n;f=R(n,e);let{flags:T}=n;T&1||(n.getToken()===86104?f=d2(n,e,u,void 0,4,1,1,1,a,k,h):n.getToken()===67174411?(f=hn(n,e,void 0,f,1,1,0,T,a,k,h),f=O(n,e,void 0,f,0,0,a,k,h),f=J(n,e,void 0,0,0,a,k,h,f)):n.getToken()&143360&&(u&&(u=K2(n,e,n.tokenValue)),f=R(n,e),f=F2(n,e,u,void 0,[f],1,a,k,h)));break}default:f=M(n,e,void 0,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),K(n,e|8192)}return u&&l2(n,"default"),s(n,e,t,o,i,{type:"ExportDefaultDeclaration",declaration:f})}switch(n.getToken()){case 8391476:{b(n,e);let a=null;P(n,e,77932)&&(u&&l2(n,n.tokenValue),a=O2(n,e)),C(n,e,12403),n.getToken()!==134283267&&c(n,105,"Export"),d=H(n,e);let h={type:"ExportAllDeclaration",source:d,exported:a};return e&1&&(h.attributes=en(n,e)),K(n,e|8192),s(n,e,t,o,i,h)}case 2162700:{b(n,e);let a=[],k=[],h=0;for(;n.getToken()&143360||n.getToken()===134283267;){let{tokenIndex:T,tokenValue:E,tokenLine:w,tokenColumn:I}=n,v=O2(n,e);v.type==="Literal"&&(h=1);let F;n.getToken()===77932?(b(n,e),!(n.getToken()&143360)&&n.getToken()!==134283267&&c(n,106),u&&(a.push(n.tokenValue),k.push(E)),F=O2(n,e)):(u&&(a.push(n.tokenValue),k.push(n.tokenValue)),F=v),l.push(s(n,e,T,w,I,{type:"ExportSpecifier",local:v,exported:F})),n.getToken()!==1074790415&&C(n,e,18)}C(n,e,1074790415),P(n,e,12403)?(n.getToken()!==134283267&&c(n,105,"Export"),d=H(n,e),e&1&&(g=en(n,e,l)),u&&a.forEach(T=>l2(n,T))):(h&&c(n,172),u&&(a.forEach(T=>l2(n,T)),k.forEach(T=>du(n,T)))),K(n,e|8192);break}case 86094:f=un(n,e,u,void 0,2,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86104:f=d2(n,e,u,void 0,4,1,2,0,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 241737:f=nn(n,e,u,void 0,8,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86090:f=nn(n,e,u,void 0,16,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86088:f=Gn(n,e,u,void 0,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 209005:{let{tokenIndex:a,tokenLine:k,tokenColumn:h}=n;if(b(n,e),!(n.flags&1)&&n.getToken()===86104){f=d2(n,e,u,void 0,4,1,2,1,a,k,h),u&&(m=f.id?f.id.name:"",l2(n,m));break}}default:c(n,30,V[n.getToken()&255])}let y={type:"ExportNamedDeclaration",declaration:f,specifiers:l,source:d};return g&&(y.attributes=g),s(n,e,t,o,i,y)}function M(n,e,u,t,o,i,l,f){let d=_(n,e,u,2,0,t,o,1,i,l,f);return d=O(n,e,u,d,o,0,i,l,f),J(n,e,u,o,0,i,l,f,d)}function e2(n,e,u,t,o,i,l,f){let d=[f];for(;P(n,e|8192,18);)d.push(M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn));return s(n,e,o,i,l,{type:"SequenceExpression",expressions:d})}function z(n,e,u,t,o,i,l,f){let d=M(n,e,u,o,t,i,l,f);return n.getToken()===18?e2(n,e,u,t,i,l,f,d):d}function J(n,e,u,t,o,i,l,f,d){let g=n.getToken();if((g&4194304)===4194304){n.assignable&2&&c(n,26),(!o&&g===1077936155&&d.type==="ArrayExpression"||d.type==="ObjectExpression")&&r(n,d),b(n,e|8192);let m=M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=2,s(n,e,i,l,f,o?{type:"AssignmentPattern",left:d,right:m}:{type:"AssignmentExpression",left:d,operator:V[g&255],right:m})}return(g&8388608)===8388608&&(d=f2(n,e,u,t,i,l,f,4,g,d)),P(n,e|8192,22)&&(d=c2(n,e,u,d,i,l,f)),d}function N2(n,e,u,t,o,i,l,f,d){let g=n.getToken();b(n,e|8192);let m=M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return d=s(n,e,i,l,f,o?{type:"AssignmentPattern",left:d,right:m}:{type:"AssignmentExpression",left:d,operator:V[g&255],right:m}),n.assignable=2,d}function c2(n,e,u,t,o,i,l){let f=M(n,(e|33554432)^33554432,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);C(n,e|8192,21),n.assignable=1;let d=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=2,s(n,e,o,i,l,{type:"ConditionalExpression",test:t,consequent:f,alternate:d})}function f2(n,e,u,t,o,i,l,f,d,g){let m=-((e&33554432)>0)&8673330,y,a;for(n.assignable=2;n.getToken()&8388608&&(y=n.getToken(),a=y&3840,(y&524288&&d&268435456||d&524288&&y&268435456)&&c(n,165),!(a+((y===8391735)<<8)-((m===y)<<12)<=f));)b(n,e|8192),g=s(n,e,o,i,l,{type:y&524288||y&268435456?"LogicalExpression":"BinaryExpression",left:g,right:f2(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn,a,y,Y(n,e,u,0,t,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),operator:V[y&255]});return n.getToken()===1077936155&&c(n,26),g}function Uu(n,e,u,t,o,i,l,f){t||c(n,0);let d=n.getToken();b(n,e|8192);let g=Y(n,e,u,0,f,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()===8391735&&c(n,33),e&256&&d===16863276&&(g.type==="Identifier"?c(n,121):uu(g)&&c(n,127)),n.assignable=2,s(n,e,o,i,l,{type:"UnaryExpression",operator:V[d&255],argument:g,prefix:!0})}function Mu(n,e,u,t,o,i,l,f,d,g){let m=n.getToken(),y=R(n,e),{flags:a}=n;if(!(a&1)){if(n.getToken()===86104)return te(n,e,u,1,t,f,d,g);if(B2(e,n.getToken()))return o||c(n,0),(n.getToken()&36864)===36864&&(n.flags|=256),le(n,e,u,i,f,d,g)}return!l&&n.getToken()===67174411?hn(n,e,u,y,i,1,0,a,f,d,g):n.getToken()===10?($2(n,e,m),l&&c(n,51),(m&36864)===36864&&(n.flags|=256),_2(n,e,u,n.tokenValue,y,l,i,0,f,d,g)):(n.assignable=1,y)}function Ju(n,e,u,t,o,i,l,f){if(t&&(n.destructible|=256),e&262144){b(n,e|8192),e&2097152&&c(n,32),o||c(n,26),n.getToken()===22&&c(n,124);let d=null,g=!1;return n.flags&1?n.getToken()===8391476&&c(n,30,V[n.getToken()&255]):(g=P(n,e|8192,8391476),(n.getToken()&77824||g)&&(d=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn))),n.assignable=2,s(n,e,i,l,f,{type:"YieldExpression",argument:d,delegate:g})}return e&256&&c(n,97,"yield"),sn(n,e,u,i,l,f)}function ju(n,e,u,t,o,i,l,f){o&&(n.destructible|=128),e&268435456&&c(n,177);let d=sn(n,e,u,i,l,f);if(d.type==="ArrowFunctionExpression"||(n.getToken()&65536)===0)return e&524288&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,176),e&512&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,110),e&2097152&&e&524288&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,110),d;if(e&2097152&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,31),e&524288||e&512&&e&2048){t&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,0);let m=Y(n,e,u,0,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()===8391735&&c(n,33),n.assignable=2,s(n,e,i,l,f,{type:"AwaitExpression",argument:m})}return e&512&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,98),d}function W2(n,e,u,t,o,i,l){let{tokenIndex:f,tokenLine:d,tokenColumn:g}=n;C(n,e|8192,2162700);let m=[];if(n.getToken()!==1074790415){for(;n.getToken()===134283267;){let{index:y,tokenIndex:a,tokenValue:k}=n,h=n.getToken(),T=H(n,e);Kn(n,y,a,k)&&(e|=256,n.flags&128&&$(a,d,g,n.index,n.line,n.column,66),n.flags&64&&$(a,d,g,n.index,n.line,n.column,9),n.flags&4096&&$(a,d,g,n.index,n.line,n.column,15),l&&z2(l)),m.push(cn(n,e,T,h,a,n.tokenLine,n.tokenColumn))}e&256&&(i&&((i&537079808)===537079808&&c(n,119),(i&36864)===36864&&c(n,40)),n.flags&512&&c(n,119),n.flags&256&&c(n,118))}for(n.flags=(n.flags|512|256|64|4096)^4928,n.destructible=(n.destructible|256)^256;n.getToken()!==1074790415;)m.push(I2(n,e,u,t,4,{}));return C(n,o&24?e|8192:e,1074790415),n.flags&=-4289,n.getToken()===1077936155&&c(n,26),s(n,e,f,d,g,{type:"BlockStatement",body:m})}function Xu(n,e,u,t,o){switch(b(n,e),n.getToken()){case 67108990:c(n,167);case 67174411:{e&131072||c(n,28),n.assignable=2;break}case 69271571:case 67108877:{e&65536||c(n,29),n.assignable=1;break}default:c(n,30,"super")}return s(n,e,u,t,o,{type:"Super"})}function Y(n,e,u,t,o,i,l,f,d){let g=_(n,e,u,2,0,t,o,i,l,f,d);return O(n,e,u,g,o,0,l,f,d)}function Hu(n,e,u,t,o,i){n.assignable&2&&c(n,55);let l=n.getToken();return b(n,e),n.assignable=2,s(n,e,t,o,i,{type:"UpdateExpression",argument:u,operator:V[l&255],prefix:!1})}function O(n,e,u,t,o,i,l,f,d){if((n.getToken()&33619968)===33619968&&!(n.flags&1))t=Hu(n,e,t,l,f,d);else if((n.getToken()&67108864)===67108864){switch(e=(e|33554432)^33554432,n.getToken()){case 67108877:{b(n,(e|67108864|2048)^2048),e&4096&&n.getToken()===130&&n.tokenValue==="super"&&c(n,173),n.assignable=1;let g=mn(n,e|16384,u);t=s(n,e,l,f,d,{type:"MemberExpression",object:t,computed:!1,property:g});break}case 69271571:{let g=!1;(n.flags&2048)===2048&&(g=!0,n.flags=(n.flags|2048)^2048),b(n,e|8192);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n,k=z(n,e,u,o,1,m,y,a);C(n,e,20),n.assignable=1,t=s(n,e,l,f,d,{type:"MemberExpression",object:t,computed:!0,property:k}),g&&(n.flags|=2048);break}case 67174411:{if((n.flags&1024)===1024)return n.flags=(n.flags|1024)^1024,t;let g=!1;(n.flags&2048)===2048&&(g=!0,n.flags=(n.flags|2048)^2048);let m=yn(n,e,u,o);n.assignable=2,t=s(n,e,l,f,d,{type:"CallExpression",callee:t,arguments:m}),g&&(n.flags|=2048);break}case 67108990:{b(n,(e|67108864|2048)^2048),n.flags|=2048,n.assignable=2,t=zu(n,e,u,t,l,f,d);break}default:(n.flags&2048)===2048&&c(n,166),n.assignable=2,t=s(n,e,l,f,d,{type:"TaggedTemplateExpression",tag:t,quasi:n.getToken()===67174408?an(n,e|16384,u):kn(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn)})}t=O(n,e,u,t,0,1,l,f,d)}return i===0&&(n.flags&2048)===2048&&(n.flags=(n.flags|2048)^2048,t=s(n,e,l,f,d,{type:"ChainExpression",expression:t})),t}function zu(n,e,u,t,o,i,l){let f=!1,d;if((n.getToken()===69271571||n.getToken()===67174411)&&(n.flags&2048)===2048&&(f=!0,n.flags=(n.flags|2048)^2048),n.getToken()===69271571){b(n,e|8192);let{tokenIndex:g,tokenLine:m,tokenColumn:y}=n,a=z(n,e,u,0,1,g,m,y);C(n,e,20),n.assignable=2,d=s(n,e,o,i,l,{type:"MemberExpression",object:t,computed:!0,optional:!0,property:a})}else if(n.getToken()===67174411){let g=yn(n,e,u,0);n.assignable=2,d=s(n,e,o,i,l,{type:"CallExpression",callee:t,arguments:g,optional:!0})}else{let g=mn(n,e,u);n.assignable=2,d=s(n,e,o,i,l,{type:"MemberExpression",object:t,computed:!1,optional:!0,property:g})}return f&&(n.flags|=2048),d}function mn(n,e,u){return!(n.getToken()&143360)&&n.getToken()!==-2147483528&&n.getToken()!==-2147483527&&n.getToken()!==130&&c(n,160),n.getToken()===130?H2(n,e,u,0,n.tokenIndex,n.tokenLine,n.tokenColumn):R(n,e)}function Ku(n,e,u,t,o,i,l,f){t&&c(n,56),o||c(n,0);let d=n.getToken();b(n,e|8192);let g=Y(n,e,u,0,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable&2&&c(n,55),n.assignable=2,s(n,e,i,l,f,{type:"UpdateExpression",argument:g,operator:V[d&255],prefix:!0})}function _(n,e,u,t,o,i,l,f,d,g,m){if((n.getToken()&143360)===143360){switch(n.getToken()){case 209006:return ju(n,e,u,o,l,d,g,m);case 241771:return Ju(n,e,u,l,i,d,g,m);case 209005:return Mu(n,e,u,l,f,i,o,d,g,m)}let{tokenValue:y}=n,a=n.getToken(),k=R(n,e|16384);return n.getToken()===10?(f||c(n,0),$2(n,e,a),(a&36864)===36864&&(n.flags|=256),_2(n,e,u,y,k,o,i,0,d,g,m)):(e&4096&&!(e&8388608)&&!(e&2097152)&&n.tokenValue==="arguments"&&c(n,130),(a&255)===73&&(e&256&&c(n,113),t&24&&c(n,100)),n.assignable=e&256&&(a&537079808)===537079808?2:1,k)}if((n.getToken()&134217728)===134217728)return H(n,e);switch(n.getToken()){case 33619993:case 33619994:return Ku(n,e,u,o,f,d,g,m);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return Uu(n,e,u,f,d,g,m,l);case 86104:return te(n,e,u,0,l,d,g,m);case 2162700:return ru(n,e,u,i?0:1,l,d,g,m);case 69271571:return xu(n,e,u,i?0:1,l,d,g,m);case 67174411:return n1(n,e|16384,u,i,1,0,d,g,m);case 86021:case 86022:case 86023:return Zu(n,e,d,g,m);case 86111:return Gu(n,e);case 65540:return t1(n,e,d,g,m);case 132:case 86094:return i1(n,e,u,l,d,g,m);case 86109:return Xu(n,e,d,g,m);case 67174409:return kn(n,e,d,g,m);case 67174408:return an(n,e,u);case 86107:return e1(n,e,u,l,d,g,m);case 134283388:return ue(n,e,d,g,m);case 130:return H2(n,e,u,0,d,g,m);case 86106:return $u(n,e,u,o,l,d,g,m);case 8456256:if(e&8)return Q2(n,e,u,0,d,g,m);default:if(B2(e,n.getToken()))return sn(n,e,u,d,g,m);c(n,30,V[n.getToken()&255])}}function $u(n,e,u,t,o,i,l,f){let d=R(n,e);return n.getToken()===67108877?ne(n,e,d,i,l,f):(t&&c(n,142),d=ee(n,e,u,o,i,l,f),n.assignable=2,O(n,e,u,d,o,0,i,l,f))}function ne(n,e,u,t,o,i){e&512||c(n,169),b(n,e);let l=n.getToken();return l!==209030&&n.tokenValue!=="meta"?c(n,174):l&-2147483648&&c(n,175),n.assignable=2,s(n,e,t,o,i,{type:"MetaProperty",meta:u,property:R(n,e)})}function ee(n,e,u,t,o,i,l){C(n,e|8192,67174411),n.getToken()===14&&c(n,143);let d={type:"ImportExpression",source:M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)};if(e&1){let g=null;if(n.getToken()===18&&(C(n,e,18),n.getToken()!==16)){let m=(e|33554432)^33554432;g=M(n,m,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)}d.options=g,P(n,e,18)}return C(n,e,16),s(n,e,o,i,l,d)}function en(n,e,u=null){if(!P(n,e,20579))return[];C(n,e,2162700);let t=[],o=new Set;for(;n.getToken()!==1074790415;){let i=n.tokenIndex,l=n.tokenLine,f=n.tokenColumn,d=_u(n,e);C(n,e,21);let g=Wu(n,e),m=d.type==="Literal"?d.value:d.name;m==="type"&&g.value==="json"&&(u===null||u.length===1&&(u[0].type==="ImportDefaultSpecifier"||u[0].type==="ImportNamespaceSpecifier"||u[0].type==="ImportSpecifier"&&u[0].imported.type==="Identifier"&&u[0].imported.name==="default"||u[0].type==="ExportSpecifier"&&u[0].local.type==="Identifier"&&u[0].local.name==="default")||c(n,140)),o.has(m)&&c(n,145,`${m}`),o.add(m),t.push(s(n,e,i,l,f,{type:"ImportAttribute",key:d,value:g})),n.getToken()!==1074790415&&C(n,e,18)}return C(n,e,1074790415),t}function Wu(n,e){if(n.getToken()===134283267)return H(n,e);c(n,30,V[n.getToken()&255])}function _u(n,e){if(n.getToken()===134283267)return H(n,e);if(n.getToken()&143360)return R(n,e);c(n,30,V[n.getToken()&255])}function Yu(n,e){let u=e.length;for(let t=0;t56319||++t>=u||(e.charCodeAt(t)&64512)!==56320)&&c(n,171,JSON.stringify(e.charAt(t--)))}}function O2(n,e){if(n.getToken()===134283267)return Yu(n,n.tokenValue),H(n,e);if(n.getToken()&143360)return R(n,e);c(n,30,V[n.getToken()&255])}function ue(n,e,u,t,o){let{tokenRaw:i,tokenValue:l}=n;return b(n,e),n.assignable=2,s(n,e,u,t,o,e&128?{type:"Literal",value:l,bigint:i.slice(0,-1),raw:i}:{type:"Literal",value:l,bigint:i.slice(0,-1)})}function kn(n,e,u,t,o){n.assignable=2;let{tokenValue:i,tokenRaw:l,tokenIndex:f,tokenLine:d,tokenColumn:g}=n;C(n,e,67174409);let m=[R2(n,e,i,l,f,d,g,!0)];return s(n,e,u,t,o,{type:"TemplateLiteral",expressions:[],quasis:m})}function an(n,e,u){e=(e|33554432)^33554432;let{tokenValue:t,tokenRaw:o,tokenIndex:i,tokenLine:l,tokenColumn:f}=n;C(n,e&-16385|8192,67174408);let d=[R2(n,e,t,o,i,l,f,!1)],g=[z(n,e&-16385,u,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)];for(n.getToken()!==1074790415&&c(n,83);n.setToken(Ze(n,e),!0)!==67174409;){let{tokenValue:m,tokenRaw:y,tokenIndex:a,tokenLine:k,tokenColumn:h}=n;C(n,e&-16385|8192,67174408),d.push(R2(n,e,m,y,a,k,h,!1)),g.push(z(n,e,u,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),n.getToken()!==1074790415&&c(n,83)}{let{tokenValue:m,tokenRaw:y,tokenIndex:a,tokenLine:k,tokenColumn:h}=n;C(n,e,67174409),d.push(R2(n,e,m,y,a,k,h,!0))}return s(n,e,i,l,f,{type:"TemplateLiteral",expressions:g,quasis:d})}function R2(n,e,u,t,o,i,l,f){let d=s(n,e,o,i,l,{type:"TemplateElement",value:{cooked:u,raw:t},tail:f}),g=f?1:2;return e&2&&(d.start+=1,d.range[0]+=1,d.end-=g,d.range[1]-=g),e&4&&(d.loc.start.column+=1,d.loc.end.column-=g),d}function Qu(n,e,u,t,o,i){e=(e|33554432)^33554432,C(n,e|8192,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=1,s(n,e,t,o,i,{type:"SpreadElement",argument:l})}function yn(n,e,u,t){b(n,e|8192);let o=[];if(n.getToken()===16)return b(n,e|16384),o;for(;n.getToken()!==16&&(n.getToken()===14?o.push(Qu(n,e,u,n.tokenIndex,n.tokenLine,n.tokenColumn)):o.push(M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)),!(n.getToken()!==18||(b(n,e|8192),n.getToken()===16))););return C(n,e|16384,16),o}function R(n,e){let{tokenValue:u,tokenIndex:t,tokenLine:o,tokenColumn:i}=n,l=u==="await"&&(n.getToken()&-2147483648)===0;return b(n,e|(l?8192:0)),s(n,e,t,o,i,{type:"Identifier",name:u})}function H(n,e){let{tokenValue:u,tokenRaw:t,tokenIndex:o,tokenLine:i,tokenColumn:l}=n;return n.getToken()===134283388?ue(n,e,o,i,l):(b(n,e),n.assignable=2,s(n,e,o,i,l,e&128?{type:"Literal",value:u,raw:t}:{type:"Literal",value:u}))}function Zu(n,e,u,t,o){let i=V[n.getToken()&255],l=n.getToken()===86023?null:i==="true";return b(n,e),n.assignable=2,s(n,e,u,t,o,e&128?{type:"Literal",value:l,raw:i}:{type:"Literal",value:l})}function Gu(n,e){let{tokenIndex:u,tokenLine:t,tokenColumn:o}=n;return b(n,e),n.assignable=2,s(n,e,u,t,o,{type:"ThisExpression"})}function d2(n,e,u,t,o,i,l,f,d,g,m){b(n,e|8192);let y=i?dn(n,e,8391476):0,a=null,k,h=u?a2():void 0;if(n.getToken()===67174411)l&1||c(n,39,"Function");else{let v=o&4&&(!(e&2048)||!(e&512))?4:64|(f?1024:0)|(y?1024:0);$n(n,e,n.getToken()),u&&(v&4?Yn(n,e,u,n.tokenValue,v):g2(n,e,u,n.tokenValue,v,o),h=j(h,256),l&&l&2&&l2(n,n.tokenValue)),k=n.getToken(),n.getToken()&143360?a=R(n,e):c(n,30,V[n.getToken()&255])}let T=7274496;e=(e|T)^T|16777216|(f?524288:0)|(y?262144:0)|(y?0:67108864),u&&(h=j(h,512));let E=oe(n,(e|2097152)&-268435457,h,t,0,1),w=268471296,I=W2(n,(e|w)^w|8388608|1048576,u?j(h,128):h,t,8,k,h==null?void 0:h.scopeError);return s(n,e,d,g,m,{type:"FunctionDeclaration",id:a,params:E,body:I,async:f===1,generator:y===1})}function te(n,e,u,t,o,i,l,f){b(n,e|8192);let d=dn(n,e,8391476),g=(t?524288:0)|(d?262144:0),m=null,y,a=e&16?a2():void 0,k=275709952;n.getToken()&143360&&($n(n,(e|k)^k|g,n.getToken()),a&&(a=j(a,256)),y=n.getToken(),m=R(n,e)),e=(e|k)^k|16777216|g|(d?0:67108864),a&&(a=j(a,512));let h=oe(n,(e|2097152)&-268435457,a,u,o,1),T=W2(n,e&-33594369|8388608|1048576,a&&j(a,128),u,0,y,a==null?void 0:a.scopeError);return n.assignable=2,s(n,e,i,l,f,{type:"FunctionExpression",id:m,params:h,body:T,async:t===1,generator:d===1})}function xu(n,e,u,t,o,i,l,f){let d=Q(n,e,void 0,u,t,o,0,2,0,i,l,f);return n.destructible&64&&c(n,63),n.destructible&8&&c(n,62),d}function Q(n,e,u,t,o,i,l,f,d,g,m,y){b(n,e|8192);let a=[],k=0;for(e=(e|33554432)^33554432;n.getToken()!==20;)if(P(n,e|8192,18))a.push(null);else{let T,{tokenIndex:E,tokenLine:w,tokenColumn:I,tokenValue:v}=n,F=n.getToken();if(F&143360)if(T=_(n,e,t,f,0,1,i,1,E,w,I),n.getToken()===1077936155){n.assignable&2&&c(n,26),b(n,e|8192),u&&n2(n,e,u,v,f,d);let q=M(n,e,t,1,i,n.tokenIndex,n.tokenLine,n.tokenColumn);T=s(n,e,E,w,I,l?{type:"AssignmentPattern",left:T,right:q}:{type:"AssignmentExpression",operator:"=",left:T,right:q}),k|=n.destructible&256?256:0|n.destructible&128?128:0}else n.getToken()===18||n.getToken()===20?(n.assignable&2?k|=16:u&&n2(n,e,u,v,f,d),k|=n.destructible&256?256:0|n.destructible&128?128:0):(k|=f&1?32:f&2?0:16,T=O(n,e,t,T,i,0,E,w,I),n.getToken()!==18&&n.getToken()!==20?(n.getToken()!==1077936155&&(k|=16),T=J(n,e,t,i,l,E,w,I,T)):n.getToken()!==1077936155&&(k|=n.assignable&2?16:32));else F&2097152?(T=n.getToken()===2162700?Z(n,e,u,t,0,i,l,f,d,E,w,I):Q(n,e,u,t,0,i,l,f,d,E,w,I),k|=n.destructible,n.assignable=n.destructible&16?2:1,n.getToken()===18||n.getToken()===20?n.assignable&2&&(k|=16):n.destructible&8?c(n,71):(T=O(n,e,t,T,i,0,E,w,I),k=n.assignable&2?16:0,n.getToken()!==18&&n.getToken()!==20?T=J(n,e,t,i,l,E,w,I,T):n.getToken()!==1077936155&&(k|=n.assignable&2?16:32))):F===14?(T=b2(n,e,u,t,20,f,d,0,i,l,E,w,I),k|=n.destructible,n.getToken()!==18&&n.getToken()!==20&&c(n,30,V[n.getToken()&255])):(T=Y(n,e,t,1,0,1,E,w,I),n.getToken()!==18&&n.getToken()!==20?(T=J(n,e,t,i,l,E,w,I,T),!(f&3)&&F===67174411&&(k|=16)):n.assignable&2?k|=16:F===67174411&&(k|=n.assignable&1&&f&3?32:16));if(a.push(T),P(n,e|8192,18)){if(n.getToken()===20)break}else break}C(n,e,20);let h=s(n,e,g,m,y,{type:l?"ArrayPattern":"ArrayExpression",elements:a});return!o&&n.getToken()&4194304?ie(n,e,t,k,i,l,g,m,y,h):(n.destructible=k,h)}function ie(n,e,u,t,o,i,l,f,d,g){n.getToken()!==1077936155&&c(n,26),b(n,e|8192),t&16&&c(n,26),i||r(n,g);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n,k=M(n,e,u,1,o,m,y,a);return n.destructible=(t|64|8)^72|(n.destructible&128?128:0)|(n.destructible&256?256:0),s(n,e,l,f,d,i?{type:"AssignmentPattern",left:g,right:k}:{type:"AssignmentExpression",left:g,operator:"=",right:k})}function b2(n,e,u,t,o,i,l,f,d,g,m,y,a){b(n,e|8192);let k=null,h=0,{tokenValue:T,tokenIndex:E,tokenLine:w,tokenColumn:I}=n,v=n.getToken();if(v&143360)n.assignable=1,k=_(n,e,t,i,0,1,d,1,E,w,I),v=n.getToken(),k=O(n,e,t,k,d,0,E,w,I),n.getToken()!==18&&n.getToken()!==o&&(n.assignable&2&&n.getToken()===1077936155&&c(n,71),h|=16,k=J(n,e,t,d,g,E,w,I,k)),n.assignable&2?h|=16:v===o||v===18?u&&n2(n,e,u,T,i,l):h|=32,h|=n.destructible&128?128:0;else if(v===o)c(n,41);else if(v&2097152)k=n.getToken()===2162700?Z(n,e,u,t,1,d,g,i,l,E,w,I):Q(n,e,u,t,1,d,g,i,l,E,w,I),v=n.getToken(),v!==1077936155&&v!==o&&v!==18?(n.destructible&8&&c(n,71),k=O(n,e,t,k,d,0,E,w,I),h|=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?(n.getToken()!==1077936155&&(h|=16),k=J(n,e,t,d,g,E,w,I,k)):((n.getToken()&8388608)===8388608&&(k=f2(n,e,t,1,E,w,I,4,v,k)),P(n,e|8192,22)&&(k=c2(n,e,t,k,E,w,I)),h|=n.assignable&2?16:32)):h|=o===1074790415&&v!==1077936155?16:n.destructible;else{h|=32,k=Y(n,e,t,1,d,1,n.tokenIndex,n.tokenLine,n.tokenColumn);let{tokenIndex:F,tokenLine:q,tokenColumn:U}=n,D=n.getToken();return D===1077936155?(n.assignable&2&&c(n,26),k=J(n,e,t,d,g,F,q,U,k),h|=16):(D===18?h|=16:D!==o&&(k=J(n,e,t,d,g,F,q,U,k)),h|=n.assignable&1?32:16),n.destructible=h,n.getToken()!==o&&n.getToken()!==18&&c(n,161),s(n,e,m,y,a,{type:g?"RestElement":"SpreadElement",argument:k})}if(n.getToken()!==o)if(i&1&&(h|=f?16:32),P(n,e|8192,1077936155)){h&16&&c(n,26),r(n,k);let F=M(n,e,t,1,d,n.tokenIndex,n.tokenLine,n.tokenColumn);k=s(n,e,E,w,I,g?{type:"AssignmentPattern",left:k,right:F}:{type:"AssignmentExpression",left:k,operator:"=",right:F}),h=16}else h|=16;return n.destructible=h,s(n,e,m,y,a,{type:g?"RestElement":"SpreadElement",argument:k})}function x(n,e,u,t,o,i,l,f){var a;let d=2883584|(t&64?0:4325376);e=(e|d)^d|(t&8?262144:0)|(t&16?524288:0)|(t&64?4194304:0)|65536|8388608|16777216;let g=e&16?j(a2(),512):void 0,m=pu(n,(e|2097152)&-268435457,g,u,t,1,o);g&&(g=j(g,128));let y=W2(n,e&-301992961|8388608|1048576,g,u,0,void 0,(a=g==null?void 0:g.parent)==null?void 0:a.scopeError);return s(n,e,i,l,f,{type:"FunctionExpression",params:m,body:y,async:(t&16)>0,generator:(t&8)>0,id:null})}function ru(n,e,u,t,o,i,l,f){let d=Z(n,e,void 0,u,t,o,0,2,0,i,l,f);return n.destructible&64&&c(n,63),n.destructible&8&&c(n,62),d}function Z(n,e,u,t,o,i,l,f,d,g,m,y){b(n,e);let a=[],k=0,h=0;for(e=(e|33554432)^33554432;n.getToken()!==1074790415;){let{tokenValue:E,tokenLine:w,tokenColumn:I,tokenIndex:v}=n,F=n.getToken();if(F===14)a.push(b2(n,e,u,t,1074790415,f,d,0,i,l,v,w,I));else{let q=0,U=null,D;if(n.getToken()&143360||n.getToken()===-2147483528||n.getToken()===-2147483527)if(n.getToken()===-2147483527&&(k|=16),U=R(n,e),n.getToken()===18||n.getToken()===1074790415||n.getToken()===1077936155)if(q|=4,e&256&&(F&537079808)===537079808?k|=16:J2(n,e,f,F,0),u&&n2(n,e,u,E,f,d),P(n,e|8192,1077936155)){k|=8;let B=M(n,e,t,1,i,n.tokenIndex,n.tokenLine,n.tokenColumn);k|=n.destructible&256?256:0|n.destructible&128?128:0,D=s(n,e,v,w,I,{type:"AssignmentPattern",left:e&134217728?Object.assign({},U):U,right:B})}else k|=(F===209006?128:0)|(F===-2147483528?16:0),D=e&134217728?Object.assign({},U):U;else if(P(n,e|8192,21)){let{tokenIndex:B,tokenLine:L,tokenColumn:S}=n;if(E==="__proto__"&&h++,n.getToken()&143360){let D2=n.getToken(),t2=n.tokenValue;D=_(n,e,t,f,0,1,i,1,B,L,S);let p=n.getToken();D=O(n,e,t,D,i,0,B,L,S),n.getToken()===18||n.getToken()===1074790415?p===1077936155||p===1074790415||p===18?(k|=n.destructible&128?128:0,n.assignable&2?k|=16:u&&(D2&143360)===143360&&n2(n,e,u,t2,f,d)):k|=n.assignable&1?32:16:(n.getToken()&4194304)===4194304?(n.assignable&2?k|=16:p!==1077936155?k|=32:u&&n2(n,e,u,t2,f,d),D=J(n,e,t,i,l,B,L,S,D)):(k|=16,(n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,p,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):n.destructible&8?c(n,71):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?D=N2(n,e,t,i,l,B,L,S,D):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,i,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,n.getToken()!==18&&F!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===69271571?(k|=16,F===209005&&(q|=16),q|=(F===12400?256:F===12401?512:1)|2,U=y2(n,e,t,i),k|=n.assignable,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()&143360?(k|=16,F===-2147483528&&c(n,95),F===209005?(n.flags&1&&c(n,132),q|=17):F===12400?q|=256:F===12401?q|=512:c(n,0),U=R(n,e),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()===67174411?(k|=16,q|=1,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()===8391476?(k|=16,F===12400?c(n,42):F===12401?c(n,43):F!==209005&&c(n,30,V[52]),b(n,e),q|=9|(F===209005?16:0),n.getToken()&143360?U=R(n,e):(n.getToken()&134217728)===134217728?U=H(n,e):n.getToken()===69271571?(q|=2,U=y2(n,e,t,i),k|=n.assignable):c(n,30,V[n.getToken()&255]),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):(n.getToken()&134217728)===134217728?(F===209005&&(q|=16),q|=F===12400?256:F===12401?512:1,k|=16,U=H(n,e),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):c(n,133);else if((n.getToken()&134217728)===134217728)if(U=H(n,e),n.getToken()===21){C(n,e|8192,21);let{tokenIndex:B,tokenLine:L,tokenColumn:S}=n;if(E==="__proto__"&&h++,n.getToken()&143360){D=_(n,e,t,f,0,1,i,1,B,L,S);let{tokenValue:D2}=n,t2=n.getToken();D=O(n,e,t,D,i,0,B,L,S),n.getToken()===18||n.getToken()===1074790415?t2===1077936155||t2===1074790415||t2===18?n.assignable&2?k|=16:u&&n2(n,e,u,D2,f,d):k|=n.assignable&1?32:16:n.getToken()===1077936155?(n.assignable&2&&(k|=16),D=J(n,e,t,i,l,B,L,S,D)):(k|=16,D=J(n,e,t,i,l,B,L,S,D))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(n.destructible&8)!==8&&(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?D=N2(n,e,t,i,l,B,L,S,D):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,0,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&1?0:16,n.getToken()!==18&&n.getToken()!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===67174411?(q|=1,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn),k=n.assignable|16):c(n,134);else if(n.getToken()===69271571)if(U=y2(n,e,t,i),k|=n.destructible&256?256:0,q|=2,n.getToken()===21){b(n,e|8192);let{tokenIndex:B,tokenLine:L,tokenColumn:S,tokenValue:D2}=n,t2=n.getToken();if(n.getToken()&143360){D=_(n,e,t,f,0,1,i,1,B,L,S);let p=n.getToken();D=O(n,e,t,D,i,0,B,L,S),(n.getToken()&4194304)===4194304?(k|=n.assignable&2?16:p===1077936155?0:32,D=N2(n,e,t,i,l,B,L,S,D)):n.getToken()===18||n.getToken()===1074790415?p===1077936155||p===1074790415||p===18?n.assignable&2?k|=16:u&&(t2&143360)===143360&&n2(n,e,u,D2,f,d):k|=n.assignable&1?32:16:(k|=16,D=J(n,e,t,i,l,B,L,S,D))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):k&8?c(n,62):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?k|16:0,(n.getToken()&4194304)===4194304?(n.getToken()!==1077936155&&(k|=16),D=N2(n,e,t,i,l,B,L,S,D)):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,0,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&1?0:16,n.getToken()!==18&&n.getToken()!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===67174411?(q|=1,D=x(n,e,t,q,i,n.tokenIndex,w,I),k=16):c(n,44);else if(F===8391476)if(C(n,e|8192,8391476),q|=8,n.getToken()&143360){let B=n.getToken();U=R(n,e),q|=1,n.getToken()===67174411?(k|=16,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):$(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,B===209005?46:B===12400||n.getToken()===12401?45:47,V[B&255])}else(n.getToken()&134217728)===134217728?(k|=16,U=H(n,e),q|=1,D=x(n,e,t,q,i,v,w,I)):n.getToken()===69271571?(k|=16,q|=3,U=y2(n,e,t,i),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):c(n,126);else c(n,30,V[F&255]);k|=n.destructible&128?128:0,n.destructible=k,a.push(s(n,e,v,w,I,{type:"Property",key:U,value:D,kind:q&768?q&512?"set":"get":"init",computed:(q&2)>0,method:(q&1)>0,shorthand:(q&4)>0}))}if(k|=n.destructible,n.getToken()!==18)break;b(n,e)}C(n,e,1074790415),h>1&&(k|=64);let T=s(n,e,g,m,y,{type:l?"ObjectPattern":"ObjectExpression",properties:a});return!o&&n.getToken()&4194304?ie(n,e,t,k,i,l,g,m,y,T):(n.destructible=k,T)}function pu(n,e,u,t,o,i,l){C(n,e,67174411);let f=[];if(n.flags=(n.flags|128)^128,n.getToken()===16)return o&512&&c(n,37,"Setter","one",""),b(n,e),f;o&256&&c(n,37,"Getter","no","s"),o&512&&n.getToken()===14&&c(n,38),e=(e|33554432)^33554432;let d=0,g=0;for(;n.getToken()!==18;){let m=null,{tokenIndex:y,tokenLine:a,tokenColumn:k}=n;if(n.getToken()&143360?(e&256||((n.getToken()&36864)===36864&&(n.flags|=256),(n.getToken()&537079808)===537079808&&(n.flags|=512)),m=An(n,e,u,o|1,0,y,a,k)):(n.getToken()===2162700?m=Z(n,e,u,t,1,l,1,i,0,y,a,k):n.getToken()===69271571?m=Q(n,e,u,t,1,l,1,i,0,y,a,k):n.getToken()===14&&(m=b2(n,e,u,t,16,i,0,0,l,1,y,a,k)),g=1,n.destructible&48&&c(n,50)),n.getToken()===1077936155){b(n,e|8192),g=1;let h=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);m=s(n,e,y,a,k,{type:"AssignmentPattern",left:m,right:h})}if(d++,f.push(m),!P(n,e,18)||n.getToken()===16)break}return o&512&&d!==1&&c(n,37,"Setter","one",""),u&&u.scopeError&&z2(u.scopeError),g&&(n.flags|=128),C(n,e,16),f}function y2(n,e,u,t){b(n,e|8192);let o=M(n,(e|33554432)^33554432,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,20),o}function n1(n,e,u,t,o,i,l,f,d){n.flags=(n.flags|128)^128;let{tokenIndex:g,tokenLine:m,tokenColumn:y}=n;b(n,e|8192|67108864);let a=e&16?j(a2(),1024):void 0;if(e=(e|33554432)^33554432,P(n,e,16))return X2(n,e,a,u,[],t,0,l,f,d);let k=0;n.destructible&=-385;let h,T=[],E=0,w=0,I=0,{tokenIndex:v,tokenLine:F,tokenColumn:q}=n;for(n.assignable=1;n.getToken()!==16;){let{tokenIndex:U,tokenLine:D,tokenColumn:B}=n,L=n.getToken();if(L&143360)a&&g2(n,e,a,n.tokenValue,1,0),(L&537079808)===537079808?w=1:(L&36864)===36864&&(I=1),h=_(n,e,u,o,0,1,1,1,U,D,B),n.getToken()===16||n.getToken()===18?n.assignable&2&&(k|=16,w=1):(n.getToken()===1077936155?w=1:k|=16,h=O(n,e,u,h,1,0,U,D,B),n.getToken()!==16&&n.getToken()!==18&&(h=J(n,e,u,1,0,U,D,B,h)));else if((L&2097152)===2097152)h=L===2162700?Z(n,e|67108864,a,u,0,1,0,o,i,U,D,B):Q(n,e|67108864,a,u,0,1,0,o,i,U,D,B),k|=n.destructible,w=1,n.assignable=2,n.getToken()!==16&&n.getToken()!==18&&(k&8&&c(n,122),h=O(n,e,u,h,0,0,U,D,B),k|=16,n.getToken()!==16&&n.getToken()!==18&&(h=J(n,e,u,0,0,U,D,B,h)));else if(L===14){h=b2(n,e,a,u,16,o,i,0,1,0,U,D,B),n.destructible&16&&c(n,74),w=1,E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),k|=8;break}else{if(k|=16,h=M(n,e,u,1,1,U,D,B),E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),n.getToken()===18&&(E||(E=1,T=[h])),E){for(;P(n,e|8192,18);)T.push(M(n,e,u,1,1,n.tokenIndex,n.tokenLine,n.tokenColumn));n.assignable=2,h=s(n,e,v,F,q,{type:"SequenceExpression",expressions:T})}return C(n,e,16),n.destructible=k,h}if(E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),!P(n,e|8192,18))break;if(E||(E=1,T=[h]),n.getToken()===16){k|=8;break}}return E&&(n.assignable=2,h=s(n,e,v,F,q,{type:"SequenceExpression",expressions:T})),C(n,e,16),k&16&&k&8&&c(n,151),k|=n.destructible&256?256:0|n.destructible&128?128:0,n.getToken()===10?(k&48&&c(n,49),e&524800&&k&128&&c(n,31),e&262400&&k&256&&c(n,32),w&&(n.flags|=128),I&&(n.flags|=256),X2(n,e,a,u,E?T:[h],t,0,l,f,d)):(k&64&&c(n,63),k&8&&c(n,144),n.destructible=(n.destructible|256)^256|k,e&32?s(n,e,g,m,y,{type:"ParenthesizedExpression",expression:h}):h)}function sn(n,e,u,t,o,i){let{tokenValue:l}=n,f=0,d=0;(n.getToken()&537079808)===537079808?f=1:(n.getToken()&36864)===36864&&(d=1);let g=R(n,e);if(n.assignable=1,n.getToken()===10){let m;return e&16&&(m=K2(n,e,l)),f&&(n.flags|=128),d&&(n.flags|=256),F2(n,e,m,u,[g],0,t,o,i)}return g}function _2(n,e,u,t,o,i,l,f,d,g,m){l||c(n,57),i&&c(n,51),n.flags&=-129;let y=e&16?K2(n,e,t):void 0;return F2(n,e,y,u,[o],f,d,g,m)}function X2(n,e,u,t,o,i,l,f,d,g){i||c(n,57);for(let m=0;m0&&n.tokenValue==="constructor"&&c(n,109),n.getToken()===1074790415&&c(n,108),P(n,e,1074790417)){E>0&&c(n,120);continue}h.push(de(n,e,t,y,u,i,T,0,f,n.tokenIndex,n.tokenLine,n.tokenColumn))}return C(n,l&8?e|8192:e,1074790415),y&&fu(y),n.flags=n.flags&-33|k,s(n,e,d,g,m,{type:"ClassBody",body:h})}function de(n,e,u,t,o,i,l,f,d,g,m,y){let a=f?32:0,k=null,{tokenIndex:h,tokenLine:T,tokenColumn:E}=n,w=n.getToken();if(w&176128||w===-2147483528)switch(k=R(n,e),w){case 36970:if(!f&&n.getToken()!==67174411&&(n.getToken()&1048576)!==1048576&&n.getToken()!==1077936155)return de(n,e,u,t,o,i,l,1,d,g,m,y);break;case 209005:if(n.getToken()!==67174411&&!(n.flags&1)){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=16|(dn(n,e,8391476)?8:0)}break;case 12400:if(n.getToken()!==67174411){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=256}break;case 12401:if(n.getToken()!==67174411){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=512}break;case 12402:if(n.getToken()!==67174411&&!(n.flags&1)){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);e&1&&(a|=1024)}break}else if(w===69271571)a|=2,k=y2(n,o,t,d);else if((w&134217728)===134217728)k=H(n,e);else if(w===8391476)a|=8,b(n,e);else if(n.getToken()===130)a|=8192,k=H2(n,e|4096,t,768,h,T,E);else if((n.getToken()&1073741824)===1073741824)a|=128;else{if(f&&w===2162700)return Su(n,e|4096,u,t,h,T,E);w===-2147483527?(k=R(n,e),n.getToken()!==67174411&&c(n,30,V[n.getToken()&255])):c(n,30,V[n.getToken()&255])}if(a&1816&&(n.getToken()&143360||n.getToken()===-2147483528||n.getToken()===-2147483527?k=R(n,e):(n.getToken()&134217728)===134217728?k=H(n,e):n.getToken()===69271571?(a|=2,k=y2(n,e,t,0)):n.getToken()===130?(a|=8192,k=H2(n,e,t,a,h,T,E)):c(n,135)),a&2||(n.tokenValue==="constructor"?((n.getToken()&1073741824)===1073741824?c(n,129):!(a&32)&&n.getToken()===67174411&&(a&920?c(n,53,"accessor"):e&131072||(n.flags&32?c(n,54):n.flags|=32)),a|=64):!(a&8192)&&a&32&&n.tokenValue==="prototype"&&c(n,52)),a&1024||n.getToken()!==67174411&&!(a&768))return T2(n,e,t,k,a,l,h,T,E);let I=x(n,e|4096,t,a,d,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,g,m,y,{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:k,value:I,...e&1?{decorators:l}:null})}function H2(n,e,u,t,o,i,l){b(n,e);let{tokenValue:f}=n;return f==="constructor"&&c(n,128),e&16&&(u||c(n,4,f),t?ou(n,u,f,t):lu(n,u,f)),b(n,e),s(n,e,o,i,l,{type:"PrivateIdentifier",name:f})}function T2(n,e,u,t,o,i,l,f,d){let g=null;if(o&8&&c(n,0),n.getToken()===1077936155){b(n,e|8192);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n;n.getToken()===537079927&&c(n,119);let k=2883584|(o&64?0:4325376);e=(e|k)^k|(o&8?262144:0)|(o&16?524288:0)|(o&64?4194304:0)|65536|16777216,g=_(n,e|4096,u,2,0,1,0,1,m,y,a),((n.getToken()&1073741824)!==1073741824||(n.getToken()&4194304)===4194304)&&(g=O(n,e|4096,u,g,0,0,m,y,a),g=J(n,e|4096,u,0,0,m,y,a,g))}return K(n,e),s(n,e,l,f,d,{type:o&1024?"AccessorProperty":"PropertyDefinition",key:t,value:g,static:(o&32)>0,computed:(o&2)>0,...e&1?{decorators:i}:null})}function ge(n,e,u,t,o,i,l,f,d){if(n.getToken()&143360||!(e&256)&&n.getToken()===-2147483527)return An(n,e,u,o,i,l,f,d);(n.getToken()&2097152)!==2097152&&c(n,30,V[n.getToken()&255]);let g=n.getToken()===69271571?Q(n,e,u,t,1,0,1,o,i,l,f,d):Z(n,e,u,t,1,0,1,o,i,l,f,d);return n.destructible&16&&c(n,50),n.destructible&32&&c(n,50),g}function An(n,e,u,t,o,i,l,f){let{tokenValue:d}=n,g=n.getToken();return e&256&&((g&537079808)===537079808?c(n,119):((g&36864)===36864||g===-2147483527)&&c(n,118)),(g&20480)===20480&&c(n,102),g===241771&&(e&262144&&c(n,32),e&512&&c(n,111)),(g&255)===73&&t&24&&c(n,100),g===209006&&(e&524288&&c(n,176),e&512&&c(n,110)),b(n,e),u&&n2(n,e,u,d,t,o),s(n,e,i,l,f,{type:"Identifier",name:d})}function Q2(n,e,u,t,o,i,l){if(t||C(n,e,8456256),n.getToken()===8390721){let m=l1(n,e,o,i,l),[y,a]=c1(n,e,u,t);return s(n,e,o,i,l,{type:"JSXFragment",openingFragment:m,children:y,closingFragment:a})}n.getToken()===8457014&&c(n,30,V[n.getToken()&255]);let f=null,d=[],g=a1(n,e,u,t,o,i,l);if(!g.selfClosing){[d,f]=g1(n,e,u,t);let m=j2(f.name);j2(g.name)!==m&&c(n,155,m)}return s(n,e,o,i,l,{type:"JSXElement",children:d,openingElement:g,closingElement:f})}function l1(n,e,u,t,o){return w2(n,e),s(n,e,u,t,o,{type:"JSXOpeningFragment"})}function f1(n,e,u,t,o,i){C(n,e,8457014);let l=me(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()!==8390721&&c(n,25,V[65]),u?w2(n,e):b(n,e),s(n,e,t,o,i,{type:"JSXClosingElement",name:l})}function d1(n,e,u,t,o,i){return C(n,e,8457014),n.getToken()!==8390721&&c(n,25,V[65]),u?w2(n,e):b(n,e),s(n,e,t,o,i,{type:"JSXClosingFragment"})}function g1(n,e,u,t){let o=[];for(;;){let i=m1(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function c1(n,e,u,t){let o=[];for(;;){let i=k1(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function m1(n,e,u,t,o,i,l){if(n.getToken()===137)return ce(n,e,o,i,l);if(n.getToken()===2162700)return bn(n,e,u,1,0,o,i,l);if(n.getToken()===8456256)return b(n,e),n.getToken()===8457014?f1(n,e,t,o,i,l):Q2(n,e,u,1,o,i,l);c(n,0)}function k1(n,e,u,t,o,i,l){if(n.getToken()===137)return ce(n,e,o,i,l);if(n.getToken()===2162700)return bn(n,e,u,1,0,o,i,l);if(n.getToken()===8456256)return b(n,e),n.getToken()===8457014?d1(n,e,t,o,i,l):Q2(n,e,u,1,o,i,l);c(n,0)}function ce(n,e,u,t,o){b(n,e);let i={type:"JSXText",value:n.tokenValue};return e&128&&(i.raw=n.tokenRaw),s(n,e,u,t,o,i)}function a1(n,e,u,t,o,i,l){(n.getToken()&143360)!==143360&&(n.getToken()&4096)!==4096&&c(n,0);let f=me(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn),d=s1(n,e,u),g=n.getToken()===8457014;return g&&C(n,e,8457014),n.getToken()!==8390721&&c(n,25,V[65]),t||!g?w2(n,e):b(n,e),s(n,e,o,i,l,{type:"JSXOpeningElement",name:f,attributes:d,selfClosing:g})}function me(n,e,u,t,o){r2(n);let i=Z2(n,e,u,t,o);if(n.getToken()===21)return ke(n,e,i,u,t,o);for(;P(n,e,67108877);)r2(n),i=y1(n,e,i,u,t,o);return i}function y1(n,e,u,t,o,i){let l=Z2(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,t,o,i,{type:"JSXMemberExpression",object:u,property:l})}function s1(n,e,u){let t=[];for(;n.getToken()!==8457014&&n.getToken()!==8390721&&n.getToken()!==1048576;)t.push(A1(n,e,u,n.tokenIndex,n.tokenLine,n.tokenColumn));return t}function h1(n,e,u,t,o,i){b(n,e),C(n,e,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,1074790415),s(n,e,t,o,i,{type:"JSXSpreadAttribute",argument:l})}function A1(n,e,u,t,o,i){if(n.getToken()===2162700)return h1(n,e,u,t,o,i);r2(n);let l=null,f=Z2(n,e,t,o,i);if(n.getToken()===21&&(f=ke(n,e,f,t,o,i)),n.getToken()===1077936155){let d=nu(n,e),{tokenIndex:g,tokenLine:m,tokenColumn:y}=n;switch(d){case 134283267:l=H(n,e);break;case 8456256:l=Q2(n,e,u,0,g,m,y);break;case 2162700:l=bn(n,e,u,0,1,g,m,y);break;default:c(n,154)}}return s(n,e,t,o,i,{type:"JSXAttribute",value:l,name:f})}function ke(n,e,u,t,o,i){C(n,e,21);let l=Z2(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,t,o,i,{type:"JSXNamespacedName",namespace:u,name:l})}function bn(n,e,u,t,o,i,l,f){b(n,e|8192);let{tokenIndex:d,tokenLine:g,tokenColumn:m}=n;if(n.getToken()===14)return b1(n,e,u,i,l,f);let y=null;return n.getToken()===1074790415?(o&&c(n,157),y=D1(n,e,n.startIndex,n.startLine,n.startColumn)):y=M(n,e,u,1,0,d,g,m),n.getToken()!==1074790415&&c(n,25,V[15]),t?w2(n,e):b(n,e),s(n,e,i,l,f,{type:"JSXExpressionContainer",expression:y})}function b1(n,e,u,t,o,i){C(n,e,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,1074790415),s(n,e,t,o,i,{type:"JSXSpreadChild",expression:l})}function D1(n,e,u,t,o){return n.startIndex=n.tokenIndex,n.startLine=n.tokenLine,n.startColumn=n.tokenColumn,s(n,e,u,t,o,{type:"JSXEmptyExpression"})}function Z2(n,e,u,t,o){let{tokenValue:i}=n;return b(n,e),s(n,e,u,t,o,{type:"JSXIdentifier",name:i})}function ae(n,e){return ku(n,e,0)}function T1(n,e){let u=new SyntaxError(n+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(u,e)}var ye=T1;function C1(n){let e=[];for(let u of n)try{return u()}catch(t){e.push(t)}throw Object.assign(new Error("All combinations failed"),{errors:e})}var se=C1;var E1=(n,e,u)=>{if(!(n&&e==null))return Array.isArray(e)||typeof e=="string"?e[u<0?e.length+u:u]:e.at(u)},Dn=E1;function w1(n){return Array.isArray(n)&&n.length>0}var he=w1;function G(n){var t,o,i;let e=((t=n.range)==null?void 0:t[0])??n.start,u=(i=((o=n.declaration)==null?void 0:o.decorators)??n.decorators)==null?void 0:i[0];return u?Math.min(G(u),e):e}function u2(n){var e;return((e=n.range)==null?void 0:e[1])??n.end}function B1(n){let e=new Set(n);return u=>e.has(u==null?void 0:u.type)}var Ae=B1;var I1=Ae(["Block","CommentBlock","MultiLine"]),q2=I1;function L1(n){let e=`*${n.value}*`.split(` +`);return e.length>1&&e.every(u=>u.trimStart()[0]==="*")}var Tn=L1;function F1(n){return q2(n)&&n.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(n.value)}var be=F1;var S2=null;function P2(n){if(S2!==null&&typeof S2.property){let e=S2;return S2=P2.prototype=null,e}return S2=P2.prototype=n??Object.create(null),new P2}var q1=10;for(let n=0;n<=q1;n++)P2();function Cn(n){return P2(n)}function S1(n,e="type"){Cn(n);function u(t){let o=t[e],i=n[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:t});return i}return u}var De=S1;var Te={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var P1=De(Te),Ce=P1;function En(n,e){if(!(n!==null&&typeof n=="object"))return n;if(Array.isArray(n)){for(let t=0;t{var l;(l=i.leadingComments)!=null&&l.some(be)&&o.add(G(i))}),n=G2(n,i=>{if(i.type==="ParenthesizedExpression"){let{expression:l}=i;if(l.type==="TypeCastExpression")return l.range=[...i.range],l;let f=G(i);if(!o.has(f))return l.extra={...l.extra,parenthesized:!0},l}})}if(n=G2(n,o=>{switch(o.type){case"LogicalExpression":if(Ee(o))return wn(o);break;case"VariableDeclaration":{let i=Dn(!1,o.declarations,-1);i!=null&&i.init&&t[u2(i)]!==";"&&(o.range=[G(o),u2(i)]);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let i=G(o);o.name={type:"Identifier",name:o.name,range:[i,i+o.name.length]}}break;case"TopicReference":n.extra={...n.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),he(n.comments)){let o=Dn(!1,n.comments,-1);for(let i=n.comments.length-2;i>=0;i--){let l=n.comments[i];u2(l)===G(o)&&q2(l)&&q2(o)&&Tn(l)&&Tn(o)&&(n.comments.splice(i+1,1),l.value+="*//*"+o.value,l.range=[G(l),u2(o)]),o=l}}return n.type==="Program"&&(n.range=[0,t.length]),n}function Ee(n){return n.type==="LogicalExpression"&&n.right.type==="LogicalExpression"&&n.operator===n.right.operator}function wn(n){return Ee(n)?wn({type:"LogicalExpression",operator:n.operator,left:wn({type:"LogicalExpression",operator:n.operator,left:n.left,right:n.right.left,range:[G(n.left),u2(n.right.left)]}),right:n.right.right,range:[G(n),u2(n)]}):n}var we=v1;var N1=/\*\/$/,V1=/^\/\*\*?/,O1=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,R1=/(^|\s+)\/\/([^\n\r]*)/g,Be=/^(\r?\n)+/,U1=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Ie=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,M1=/(\r?\n|^) *\* ?/g,J1=[];function Le(n){let e=n.match(O1);return e?e[0].trimStart():""}function Fe(n){let e=` +`;n=i2(!1,n.replace(V1,"").replace(N1,""),M1,"$1");let u="";for(;u!==n;)u=n,n=i2(!1,n,U1,`${e}$1 $2${e}`);n=n.replace(Be,"").trimEnd();let t=Object.create(null),o=i2(!1,n,Ie,"").replace(Be,"").trimEnd(),i;for(;i=Ie.exec(n);){let l=i2(!1,i[2],R1,"");if(typeof t[i[1]]=="string"||Array.isArray(t[i[1]])){let f=t[i[1]];t[i[1]]=[...J1,...Array.isArray(f)?f:[f],l]}else t[i[1]]=l}return{comments:o,pragmas:t}}function j1(n){if(!n.startsWith("#!"))return"";let e=n.indexOf(` +`);return e===-1?n:n.slice(0,e)}var qe=j1;function X1(n){let e=qe(n);e&&(n=n.slice(e.length+1));let u=Le(n),{pragmas:t,comments:o}=Fe(u);return{shebang:e,text:n,pragmas:t,comments:o}}function Se(n){let{pragmas:e}=X1(n);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function H1(n){return n=typeof n=="function"?{parse:n}:n,{astFormat:"estree",hasPragma:Se,locStart:G,locEnd:u2,...n}}var Pe=H1;function z1(n){let{filepath:e}=n;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs")||e.endsWith(".cts"))return"script";if(e.endsWith(".mjs")||e.endsWith(".mts"))return"module"}}var ve=z1;var K1={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function $1(n,e){let u=[],t=[],o=ae(n,{...K1,module:e==="module",onComment:u,onToken:t});return o.comments=u,o.tokens=t,o}function W1(n){let{message:e,loc:u}=n;if(!u)return n;let t=`[${[u.start,u.end].map(({line:o,column:i})=>[o,i].join(":")).join("-")}]: `;return e.startsWith(t)&&(e=e.slice(t.length)),ye(e,{loc:{start:{line:u.start.line,column:u.start.column+1},end:{line:u.end.line,column:u.end.column+1}},cause:n})}function _1(n,e={}){let u=ve(e),t=(u?[u]:["module","script"]).map(i=>()=>$1(n,i)),o;try{o=se(t)}catch({errors:[i]}){throw W1(i)}return we(o,{parser:"meriyah",text:n})}var Y1=Pe(_1);return Ue(Q1);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/meriyah.mjs b/node_modules/prettier/plugins/meriyah.mjs index 68d1970c..701397c5 100644 --- a/node_modules/prettier/plugins/meriyah.mjs +++ b/node_modules/prettier/plugins/meriyah.mjs @@ -1,4 +1,4 @@ -var v1=Object.defineProperty;var be=(e,u)=>{for(var n in u)v1(e,n,{get:u[n],enumerable:!0})};var De={};be(De,{parsers:()=>he});var he={};be(he,{meriyah:()=>T0});var T1={0:"Unexpected token",28:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"Unexpected token `#`",4:"Illegal Unicode escape sequence",5:"Invalid code point %0",6:"Invalid hexadecimal escape sequence",8:"Octal literals are not allowed in strict mode",7:"Decimal integer literals with a leading zero are forbidden in strict mode",9:"Expected number in radix %0",146:"Invalid left-hand side assignment to a destructible right-hand side",10:"Non-number found after exponent indicator",11:"Invalid BigIntLiteral",12:"No identifiers allowed directly after numeric literal",13:"Escapes \\8 or \\9 are not syntactically valid escapes",14:"Unterminated string literal",15:"Unterminated template literal",16:"Multiline comment was not closed properly",17:"The identifier contained dynamic unicode escape that was not closed",18:"Illegal character '%0'",19:"Missing hexadecimal digits",20:"Invalid implicit octal",21:"Invalid line break in string literal",22:"Only unicode escapes are legal in identifier names",23:"Expected '%0'",24:"Invalid left-hand side in assignment",25:"Invalid left-hand side in async arrow",26:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',27:"Member access on super must be in a method",29:"Await expression not allowed in formal parameter",30:"Yield expression not allowed in formal parameter",93:"Unexpected token: 'escaped keyword'",31:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",120:"Async functions can only be declared at the top level or inside a block",32:"Unterminated regular expression",33:"Unexpected regular expression flag",34:"Duplicate regular expression flag '%0'",35:"%0 functions must have exactly %1 argument%2",36:"Setter function argument must not be a rest parameter",37:"%0 declaration must have a name in this context",38:"Function name may not contain any reserved words or be eval or arguments in strict mode",39:"The rest operator is missing an argument",40:"A getter cannot be a generator",41:"A setter cannot be a generator",42:"A computed property name must be followed by a colon or paren",131:"Object literal keys that are strings or numbers must be a method or have a colon",44:"Found `* async x(){}` but this should be `async * x(){}`",43:"Getters and setters can not be generators",45:"'%0' can not be generator method",46:"No line break is allowed after '=>'",47:"The left-hand side of the arrow can only be destructed through assignment",48:"The binding declaration is not destructible",49:"Async arrow can not be followed by new expression",50:"Classes may not have a static property named 'prototype'",51:"Class constructor may not be a %0",52:"Duplicate constructor method in class",53:"Invalid increment/decrement operand",54:"Invalid use of `new` keyword on an increment/decrement expression",55:"`=>` is an invalid assignment target",56:"Rest element may not have a trailing comma",57:"Missing initializer in %0 declaration",58:"'for-%0' loop head declarations can not have an initializer",59:"Invalid left-hand side in for-%0 loop: Must have a single binding",60:"Invalid shorthand property initializer",61:"Property name __proto__ appears more than once in object literal",62:"Let is disallowed as a lexically bound name",63:"Invalid use of '%0' inside new expression",64:"Illegal 'use strict' directive in function with non-simple parameter list",65:'Identifier "let" disallowed as left-hand side expression in strict mode',66:"Illegal continue statement",67:"Illegal break statement",68:"Cannot have `let[...]` as a var name in strict mode",69:"Invalid destructuring assignment target",70:"Rest parameter may not have a default initializer",71:"The rest argument must the be last parameter",72:"Invalid rest argument",74:"In strict mode code, functions can only be declared at top level or inside a block",75:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",76:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",77:"Class declaration can't appear in single-statement context",78:"Invalid left-hand side in for-%0",79:"Invalid assignment in for-%0",80:"for await (... of ...) is only valid in async functions and async generators",81:"The first token after the template expression should be a continuation of the template",83:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",82:"`let \n [` is a restricted production at the start of a statement",84:"Catch clause requires exactly one parameter, not more (and no trailing comma)",85:"Catch clause parameter does not support default values",86:"Missing catch or finally after try",87:"More than one default clause in switch statement",88:"Illegal newline after throw",89:"Strict mode code may not include a with statement",90:"Illegal return statement",91:"The left hand side of the for-header binding declaration is not destructible",92:"new.target only allowed within functions",94:"'#' not followed by identifier",100:"Invalid keyword",99:"Can not use 'let' as a class name",98:"'A lexical declaration can't define a 'let' binding",97:"Can not use `let` as variable name in strict mode",95:"'%0' may not be used as an identifier in this context",96:"Await is only valid in async functions",101:"The %0 keyword can only be used with the module goal",102:"Unicode codepoint must not be greater than 0x10FFFF",103:"%0 source must be string",104:"Only a identifier can be used to indicate alias",105:"Only '*' or '{...}' can be imported after default",106:"Trailing decorator may be followed by method",107:"Decorators can't be used with a constructor",109:"HTML comments are only allowed with web compatibility (Annex B)",110:"The identifier 'let' must not be in expression position in strict mode",111:"Cannot assign to `eval` and `arguments` in strict mode",112:"The left-hand side of a for-of loop may not start with 'let'",113:"Block body arrows can not be immediately invoked without a group",114:"Block body arrows can not be immediately accessed without a group",115:"Unexpected strict mode reserved word",116:"Unexpected eval or arguments in strict mode",117:"Decorators must not be followed by a semicolon",118:"Calling delete on expression not allowed in strict mode",119:"Pattern can not have a tail",121:"Can not have a `yield` expression on the left side of a ternary",122:"An arrow function can not have a postfix update operator",123:"Invalid object literal key character after generator star",124:"Private fields can not be deleted",126:"Classes may not have a field called constructor",125:"Classes may not have a private element named constructor",127:"A class field initializer may not contain arguments",128:"Generators can only be declared at the top level or inside a block",129:"Async methods are a restricted production and cannot have a newline following it",130:"Unexpected character after object literal property name",132:"Invalid key token",133:"Label '%0' has already been declared",134:"continue statement must be nested within an iteration statement",135:"Undefined label '%0'",136:"Trailing comma is disallowed inside import(...) arguments",137:"import() requires exactly one argument",138:"Cannot use new with import(...)",139:"... is not allowed in import()",140:"Expected '=>'",141:"Duplicate binding '%0'",142:"Cannot export a duplicate name '%0'",145:"Duplicate %0 for-binding",143:"Exported binding '%0' needs to refer to a top-level declared variable",144:"Unexpected private field",148:"Numeric separators are not allowed at the end of numeric literals",147:"Only one underscore is allowed as numeric separator",149:"JSX value should be either an expression or a quoted JSX text",150:"Expected corresponding JSX closing tag for %0",151:"Adjacent JSX elements must be wrapped in an enclosing tag",152:"JSX attributes must only be assigned a non-empty 'expression'",153:"'%0' has already been declared",154:"'%0' shadowed a catch clause binding",155:"Dot property must be an identifier",156:"Encountered invalid input after spread/rest argument",157:"Catch without try",158:"Finally without try",159:"Expected corresponding closing tag for JSX fragment",160:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",161:"Invalid tagged template on optional chain",162:"Invalid optional chain from super property",163:"Invalid optional chain from new expression",164:'Cannot use "import.meta" outside a module',165:"Leading decorators must be attached to a class declaration"},y2=class extends SyntaxError{constructor(u,n,t,i,...o){let l="["+n+":"+t+"]: "+T1[i].replace(/%(\d+)/g,(f,c)=>o[c]);super(`${l}`),this.index=u,this.line=n,this.column=t,this.description=l,this.loc={line:n,column:t}}};function s(e,u,...n){throw new y2(e.index,e.line,e.column,u,...n)}function j2(e){throw new y2(e.index,e.line,e.column,e.type,e.params)}function k2(e,u,n,t,...i){throw new y2(e,u,n,t,...i)}function A2(e,u,n,t){throw new y2(e,u,n,t)}var P2=((e,u)=>{let n=new Uint32Array(104448),t=0,i=0;for(;t<3701;){let o=e[t++];if(o<0)i-=o;else{let l=e[t++];o&2&&(l=u[l]),o&1?n.fill(l,i,i+=e[t++]):n[i++]=l}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,57,2,58,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,59,3,0,4,0,4294966523,3,0,4,2,16,2,60,2,0,0,4294836735,0,3221225471,0,4294901942,2,61,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,54,2,7,2,6,0,4278222591,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,200,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,66,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,67,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,133,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,42,0,67090432,3,0,2,2,41,2,0,2,6,2,0,2,30,2,8,0,268374015,2,107,2,48,2,0,2,76,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,0,67051519,0,1046528,3,0,3,2,9,2,0,2,50,0,4294960127,2,10,2,39,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,79,2,10,2,0,2,80,2,81,2,82,2,206,2,129,0,1048577,2,83,2,14,-1,2,14,0,131042,2,84,2,85,2,86,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,87,2,2,0,-16,2,88,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,68,-1,2,18,2,10,3,0,8,2,90,2,128,2,0,0,3220242431,3,0,3,2,19,2,91,2,92,3,0,2,2,93,2,0,2,94,2,45,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,98,2,99,2,22,2,23,3,0,3,0,67057663,3,0,349,2,100,2,101,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,102,2,103,3,0,2,2,19,2,104,3,0,10,2,10,2,18,2,0,2,46,2,0,2,31,2,105,2,25,0,1638399,2,170,2,106,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,108,-1,2,109,2,110,2,111,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,159,-4,2,20,2,0,2,36,0,1,2,0,2,62,2,6,2,12,2,10,2,0,2,112,-1,3,0,4,2,10,2,23,2,113,2,7,2,0,2,114,2,0,2,115,2,116,2,117,-2,3,0,9,2,21,2,30,2,31,2,118,2,119,-2,2,120,2,121,2,30,2,21,2,8,-2,2,122,2,30,2,32,-2,2,0,2,38,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,37,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,-10,2,0,0,203775,-1,2,164,2,20,2,43,2,36,2,18,2,77,2,18,2,123,2,21,3,0,2,2,37,0,2151677888,2,0,2,12,0,4294901764,2,140,2,0,2,52,2,51,0,5242879,3,0,2,0,402644511,-1,2,125,2,38,0,3,-1,2,126,2,39,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,-4,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,41,2,42,-1,2,11,2,55,2,37,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,130,0,4190109695,2,49,-2,2,131,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,63,2,18,2,0,2,41,-8,2,53,2,44,0,67043329,2,45,2,46,0,8388351,-2,2,132,0,3028287487,2,47,2,134,0,33259519,2,42,-9,2,21,0,4294836223,0,3355443199,0,67043335,-2,2,64,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,78,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,-125,3,0,18,2,37,-269,3,0,17,2,41,2,8,2,23,2,0,2,8,2,23,2,48,2,0,2,21,2,49,2,135,2,25,-21,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,50,3,0,38,2,30,-1,2,34,-278,2,136,3,0,9,2,137,2,138,2,51,3,0,11,2,7,-72,3,0,3,2,139,0,1677656575,-147,2,0,2,24,2,37,-16,0,4161266656,0,4071,2,201,-4,0,28,-13,3,0,2,2,52,2,0,2,141,2,142,2,56,2,0,2,143,2,144,2,145,3,0,10,2,146,2,147,2,22,3,52,2,3,148,2,3,53,2,0,4294954999,2,0,-16,2,0,2,89,2,0,0,2105343,0,4160749584,2,174,-34,2,8,2,150,-6,0,4194303871,0,4294903771,2,0,2,54,2,97,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-23,2,151,3,0,6,0,8323103,-1,3,0,2,2,55,-37,2,56,2,152,2,153,2,154,2,155,2,156,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,157,3,0,233,2,158,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,57,2,58,-3,0,3168731136,0,4294956864,2,1,2,0,2,59,3,0,4,0,4294966275,3,0,4,2,16,2,60,2,0,2,34,-1,2,18,2,61,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,62,3,0,2,0,131135,2,95,0,70256639,0,71303167,0,272,2,41,2,6,0,32511,2,0,2,42,-1,2,96,2,63,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,65,2,64,0,33554435,2,127,2,65,2,160,0,131075,0,3594373096,0,67094296,2,64,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,167,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,66,2,37,-1,2,4,0,917503,2,37,-1,2,67,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,68,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,69,2,0,2,70,2,71,2,72,2,0,2,73,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,74,2,5,3,0,2,2,75,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,41,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,48,2,0,2,76,2,42,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,124,0,4227907585,2,0,2,77,2,0,2,78,2,180,2,10,2,39,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,79,2,10,2,0,2,80,2,81,2,82,-3,2,83,2,14,-3,2,84,2,85,2,86,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,87,2,-17,2,88,0,524157950,2,4,2,0,2,89,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,68,-1,2,18,2,10,3,0,8,2,90,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,91,2,92,3,0,2,2,93,2,0,2,94,2,45,0,4294965179,0,7,2,0,2,9,2,92,2,9,-1,0,1761345536,2,95,0,4294901823,2,37,2,20,2,96,2,35,2,97,0,2080440287,2,0,2,34,2,149,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,98,2,99,2,22,2,23,3,0,3,0,7,3,0,349,2,100,2,101,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,102,2,103,3,0,2,2,19,2,104,3,0,10,2,10,2,18,2,0,2,46,2,0,2,31,2,105,-3,2,106,3,0,3,2,20,-1,3,5,2,2,107,2,0,2,8,2,108,-1,2,109,2,110,2,111,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,62,2,6,2,30,2,10,2,0,2,112,-1,3,0,4,2,10,2,18,2,113,2,7,2,0,2,114,2,0,2,115,2,116,2,117,-2,3,0,9,2,21,2,30,2,31,2,118,2,119,-2,2,120,2,121,2,30,2,21,2,8,-2,2,122,2,30,2,32,-2,2,0,2,38,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,123,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,78,-10,2,0,0,197631,-2,2,20,2,43,2,77,2,18,0,3,2,18,2,123,2,21,2,124,2,50,-1,0,2490368,2,124,2,25,2,18,2,34,2,124,2,37,0,4294901904,0,4718591,2,124,2,35,0,335544350,-1,2,125,0,2147487743,0,1,-1,2,126,2,39,2,8,-1,2,127,2,65,0,3758161920,0,3,-4,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,188,-1,2,0,2,25,2,205,-1,2,0,0,16779263,-2,2,12,-1,2,37,-5,2,0,2,128,-3,3,0,2,2,129,2,130,0,2147549183,0,2,-2,2,131,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,41,-8,2,53,2,17,0,1,2,45,2,25,-3,2,132,2,36,2,133,2,134,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,64,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,78,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,-125,3,0,18,2,37,-269,3,0,17,2,41,2,8,2,18,2,0,2,8,2,18,2,54,2,0,2,25,2,78,2,135,2,25,-21,3,0,2,-4,3,0,2,0,67583,-1,2,104,-2,0,11,3,0,191,2,50,3,0,38,2,30,-1,2,34,-278,2,136,3,0,9,2,137,2,138,2,51,3,0,11,2,7,-72,3,0,3,2,139,2,140,-187,3,0,2,2,52,2,0,2,141,2,142,2,56,2,0,2,143,2,144,2,145,3,0,10,2,146,2,147,2,22,3,52,2,3,148,2,3,53,2,2,149,-57,2,8,2,150,-7,2,18,2,0,2,54,-4,2,0,0,1065361407,0,16384,-9,2,18,2,54,2,0,2,128,-14,2,18,2,128,-23,2,151,3,0,6,2,123,-1,3,0,2,0,2063,-37,2,56,2,152,2,153,2,154,2,155,2,156,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,157,3,0,233,2,158,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,129,2,0,0,8193,-21,2,198,0,10255,0,4,-11,2,64,2,179,-1,0,71680,-1,2,171,0,4292900864,0,268435519,-5,2,159,-1,2,169,-1,0,6144,-2,2,45,-1,2,163,-1,0,2147532800,2,160,2,166,0,16744448,-2,0,4,-4,2,194,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,161,0,4294886464,0,33292336,0,417809,2,161,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,162,0,201327104,0,3634348576,0,8323120,2,162,0,202375680,0,2678047264,0,4293984304,2,162,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,0,2013265920,2,182,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,159,0,4160757760,2,0,-6,2,176,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,163,2,164,2,183,-2,2,172,-20,0,3758096385,-2,2,165,2,191,2,91,2,177,0,4294057984,-2,2,173,2,168,0,4227874816,-2,2,165,-1,2,166,-1,2,178,2,129,0,4026593280,0,14,0,4292919296,-1,2,175,0,939588608,-1,0,805306368,-1,2,129,2,167,2,168,2,169,2,207,2,0,-2,2,170,2,129,-3,0,267386880,-1,0,117440512,0,7168,-1,2,210,2,163,2,171,2,184,-16,2,172,-1,0,1426112704,2,173,-1,2,192,0,271581216,0,2149777408,2,25,2,171,2,129,0,851967,2,185,-1,2,174,2,186,-4,2,175,-20,2,197,2,204,-56,0,3145728,2,187,-10,0,32505856,-1,2,176,-1,0,2147385088,2,91,1,2155905152,2,-3,2,173,2,0,0,67108864,-2,2,177,-6,2,178,2,25,0,1,-1,0,1,-1,2,179,-3,2,123,2,64,-2,2,97,-2,0,32752,2,129,-915,2,170,-1,2,203,-10,2,190,-5,2,181,-6,0,4229232640,2,19,-1,2,180,-1,2,181,-2,0,4227874752,-3,0,2146435072,2,164,-2,0,1006649344,2,129,-1,2,91,0,201375744,-3,0,134217720,2,91,0,4286677377,0,32896,-1,2,175,-3,0,4227907584,-349,0,65520,0,1920,2,182,3,0,264,-11,2,169,-2,2,183,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,189,-1,0,4294934272,2,25,2,183,-1,2,213,0,2158720,-3,2,164,0,1,-4,2,129,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,184,0,120,0,7340032,-2,2,185,2,4,2,25,2,173,3,0,4,2,164,-1,2,186,2,182,-1,0,8176,2,166,2,184,2,211,-1,0,4290773232,2,0,-4,2,173,2,193,0,15728640,2,182,-1,2,171,-1,0,134250480,0,4720640,0,3825467396,3,0,2,-9,2,91,2,178,0,4294967040,2,133,0,4160880640,3,0,2,0,704,0,1849688064,2,187,-1,2,129,0,4294901887,2,0,0,130547712,0,1879048192,2,208,3,0,2,-1,2,188,2,189,-1,0,17829776,0,2025848832,2,212,-2,2,0,-1,0,4286580608,-1,0,29360128,2,196,0,16252928,0,3791388672,2,39,3,0,2,-2,2,202,2,0,-1,2,104,-1,0,66584576,-1,2,195,3,0,9,2,129,-1,0,4294755328,2,0,2,20,-1,2,171,2,183,2,25,2,95,2,25,2,190,2,91,-2,0,245760,2,191,-1,2,159,2,199,0,4227923456,-1,2,192,2,171,2,91,-3,0,4292870145,0,262144,-1,2,92,2,0,0,1073758848,2,193,-1,0,4227921920,2,194,0,68289024,0,528402016,0,4292927536,3,0,4,-2,0,268435456,2,92,-2,2,195,3,0,5,-1,2,196,2,173,2,0,-2,0,4227923936,2,62,-1,2,183,2,95,2,0,2,163,2,175,2,197,3,0,5,-1,2,182,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,198,2,28,-2,2,171,-2,2,199,-1,2,165,2,95,3,0,7,0,512,0,8388608,2,200,2,170,2,189,0,4286578944,3,0,2,0,1152,0,1266679808,2,195,0,576,0,4261707776,2,95,3,0,9,2,165,0,131072,0,939524096,2,183,3,0,2,2,16,-1,0,2147221504,-28,2,183,3,0,3,-3,0,4292902912,-6,2,96,3,0,81,2,25,-2,2,104,-33,2,18,2,178,3,0,125,-18,2,197,3,0,269,-17,2,165,2,129,2,201,-1,2,129,2,193,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,21,-2,2,184,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,181,-38,2,178,2,0,2,202,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,182,3,0,72,-3,0,3758159872,0,201391616,3,0,147,-1,2,169,2,203,-3,2,96,2,0,-7,2,178,-1,0,384,-1,0,133693440,-3,2,204,-2,2,107,3,0,3,3,177,2,-2,2,91,2,165,3,0,4,-2,2,192,-1,2,159,0,335552923,2,205,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,206,-21,0,134213632,2,158,3,0,34,2,129,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,209,2,148,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,207,-1,2,208,3,0,14,2,25,2,183,3,0,23,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,173,3,0,6,2,205,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,46,3,0,8,-1,2,175,-2,2,177,0,98304,0,65537,2,178,-5,2,209,2,0,2,77,2,199,2,182,0,4294770176,2,107,3,0,4,-30,2,188,0,3758153728,-3,0,125829120,-2,2,183,0,4294897664,2,175,-1,2,195,-1,2,171,0,4294754304,3,0,2,-10,2,177,0,3758145536,2,210,2,211,0,4026548160,2,212,-4,2,213,-1,2,204,0,4227923967,3,0,32,-1335,2,0,-129,2,183,-6,2,173,-180,0,65532,-233,2,174,-18,2,173,3,0,77,-16,2,173,3,0,47,-154,2,166,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,127,3238002687,4294902271,4294549487,33554431,1023,4294901888,4286578687,4294705152,4294770687,67043583,2047999,67043343,16777215,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,4290772991,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,63,15,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,65734655,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294549472,4095,2147483648,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,402653184,3758096384,4261412864,63488,1610612736,4227922944,49152,57344,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,4227915776,4278190080,4026531840,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,4294967168,50331648,65528,65472,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,4294950912,65024,1073741824,4261477888,524288]);function A(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function F1(e,u){if((u&64512)!==55296)return 0;let n=e.source.charCodeAt(e.index+1);return(n&64512)!==56320?0:(u=e.currentChar=65536+((u&1023)<<10)+(n&1023),P2[(u>>>5)+0]>>>u&31&1||s(e,18,G(u)),e.index++,e.column++,1)}function G2(e,u){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,u&4||(e.column=0,e.line++)}function c2(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function q1(e){return e===160||e===65279||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===8201||e===65519}function G(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(e>>>10)+String.fromCharCode(e&1023)}function z(e){return e<65?e-48:e-65+10&15}function L1(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 132:return"TemplateLiteral";default:return(e&143360)===143360?"Identifier":(e&4096)===4096?"Keyword":"Punctuator"}}var L=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],I1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function _2(e){return e<=127?I1[e]:P2[(e>>>5)+34816]>>>e&31&1}function R2(e){return e<=127?Fe[e]:P2[(e>>>5)+0]>>>e&31&1||e===8204||e===8205}var qe=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function N1(e){let u=e.source;e.currentChar===35&&u.charCodeAt(e.index+1)===33&&(A(e),A(e),x2(e,u,0,4,e.tokenPos,e.linePos,e.colPos))}function Ce(e,u,n,t,i,o,l,f){return t&2048&&s(e,0),x2(e,u,n,i,o,l,f)}function x2(e,u,n,t,i,o,l){let{index:f}=e;for(e.tokenPos=e.index,e.linePos=e.line,e.colPos=e.column;e.index=e.source.length)return s(e,32)}let i=e.index-1,o=0,l=e.currentChar,{index:f}=e;for(;R2(l);){switch(l){case 103:o&2&&s(e,34,"g"),o|=2;break;case 105:o&1&&s(e,34,"i"),o|=1;break;case 109:o&4&&s(e,34,"m"),o|=4;break;case 117:o&16&&s(e,34,"u"),o|=16;break;case 121:o&8&&s(e,34,"y"),o|=8;break;case 115:o&32&&s(e,34,"s"),o|=32;break;case 100:o&64&&s(e,34,"d"),o|=64;break;default:s(e,33)}l=A(e)}let c=e.source.slice(f,e.index),m=e.source.slice(n,i);return e.tokenRegExp={pattern:m,flags:c},u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),e.tokenValue=O1(e,m,c),65540}function O1(e,u,n){try{return new RegExp(u,n)}catch{try{return new RegExp(u,n.replace("d","")),null}catch{s(e,32)}}}function U1(e,u,n){let{index:t}=e,i="",o=A(e),l=e.index;for(;!(L[o]&8);){if(o===n)return i+=e.source.slice(l,e.index),A(e),u&512&&(e.tokenRaw=e.source.slice(t,e.index)),e.tokenValue=i,134283267;if((o&8)===8&&o===92){if(i+=e.source.slice(l,e.index),o=A(e),o<127||o===8232||o===8233){let f=Le(e,u,o);f>=0?i+=G(f):Ie(e,f,0)}else i+=G(o);l=e.index+1}e.index>=e.end&&s(e,14),o=A(e)}s(e,14)}function Le(e,u,n){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index1114111)return-5;return e.currentChar<1||e.currentChar!==125?-4:i}else{if(!(L[t]&64))return-4;let i=e.source.charCodeAt(e.index+1);if(!(L[i]&64))return-4;let o=e.source.charCodeAt(e.index+2);if(!(L[o]&64))return-4;let l=e.source.charCodeAt(e.index+3);return L[l]&64?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),z(t)<<12|z(i)<<8|z(o)<<4|z(l)):-4}}case 56:case 57:if(!(u&256))return-3;default:return n}}function Ie(e,u,n){switch(u){case-1:return;case-2:s(e,n?2:1);case-3:s(e,13);case-4:s(e,6);case-5:s(e,102)}}function Ne(e,u){let{index:n}=e,t=67174409,i="",o=A(e);for(;o!==96;){if(o===36&&e.source.charCodeAt(e.index+1)===123){A(e),t=67174408;break}else if((o&8)===8&&o===92)if(o=A(e),o>126)i+=G(o);else{let l=Le(e,u|1024,o);if(l>=0)i+=G(l);else if(l!==-1&&u&65536){i=void 0,o=M1(e,o),o<0&&(t=67174408);break}else Ie(e,l,1)}else e.index=e.end&&s(e,15),o=A(e)}return A(e),e.tokenValue=i,e.tokenRaw=e.source.slice(n+1,e.index-(t===67174409?1:2)),t}function M1(e,u){for(;u!==96;){switch(u){case 36:{let n=e.index+1;if(n=e.end&&s(e,15),u=A(e)}return u}function J1(e,u){return e.index>=e.end&&s(e,0),e.index--,e.column--,Ne(e,u)}function Pe(e,u,n){let t=e.currentChar,i=0,o=9,l=n&64?0:1,f=0,c=0;if(n&64)i="."+q2(e,t),t=e.currentChar,t===110&&s(e,11);else{if(t===48)if(t=A(e),(t|32)===120){for(n=136,t=A(e);L[t]&4160;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*16+z(t),f++,t=A(e)}(f===0||!c)&&s(e,f===0?19:148)}else if((t|32)===111){for(n=132,t=A(e);L[t]&4128;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*8+(t-48),f++,t=A(e)}(f===0||!c)&&s(e,f===0?0:148)}else if((t|32)===98){for(n=130,t=A(e);L[t]&4224;){if(t===95){c||s(e,147),c=0,t=A(e);continue}c=1,i=i*2+(t-48),f++,t=A(e)}(f===0||!c)&&s(e,f===0?0:148)}else if(L[t]&32)for(u&1024&&s(e,1),n=1;L[t]&16;){if(L[t]&512){n=32,l=0;break}i=i*8+(t-48),t=A(e)}else L[t]&512?(u&1024&&s(e,1),e.flags|=64,n=32):t===95&&s(e,0);if(n&48){if(l){for(;o>=0&&L[t]&4112;){if(t===95){t=A(e),(t===95||n&32)&&A2(e.index,e.line,e.index+1,147),c=1;continue}c=0,i=10*i+(t-48),t=A(e),--o}if(c&&A2(e.index,e.line,e.index+1,148),o>=0&&!_2(t)&&t!==46)return e.tokenValue=i,u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283266}i+=q2(e,t),t=e.currentChar,t===46&&(A(e)===95&&s(e,0),n=64,i+="."+q2(e,e.currentChar),t=e.currentChar)}}let m=e.index,g=0;if(t===110&&n&128)g=1,t=A(e);else if((t|32)===101){t=A(e),L[t]&256&&(t=A(e));let{index:a}=e;L[t]&16||s(e,10),i+=e.source.substring(m,a)+q2(e,t),t=e.currentChar}return(e.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"","++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Ve=Object.create(null,{this:{value:86113},function:{value:86106},if:{value:20571},return:{value:20574},var:{value:86090},else:{value:20565},for:{value:20569},new:{value:86109},in:{value:8738868},typeof:{value:16863277},while:{value:20580},case:{value:20558},break:{value:20557},try:{value:20579},catch:{value:20559},delete:{value:16863278},throw:{value:86114},switch:{value:86112},continue:{value:20561},default:{value:20563},instanceof:{value:8476725},do:{value:20564},void:{value:16863279},finally:{value:20568},async:{value:209007},await:{value:209008},class:{value:86096},const:{value:86092},constructor:{value:12401},debugger:{value:20562},export:{value:20566},extends:{value:20567},false:{value:86021},from:{value:12404},get:{value:12402},implements:{value:36966},import:{value:86108},interface:{value:36967},let:{value:241739},null:{value:86023},of:{value:274549},package:{value:36968},private:{value:36969},protected:{value:36970},public:{value:36971},set:{value:12403},static:{value:36972},super:{value:86111},true:{value:86022},with:{value:20581},yield:{value:241773},enum:{value:86134},eval:{value:537079927},as:{value:77934},arguments:{value:537079928},target:{value:143494},meta:{value:143495}});function Ee(e,u,n){for(;Fe[A(e)];);return e.tokenValue=e.source.slice(e.tokenPos,e.index),e.currentChar!==92&&e.currentChar<=126?Ve[e.tokenValue]||208897:p2(e,u,0,n)}function j1(e,u){let n=Re(e);return R2(n)||s(e,4),e.tokenValue=G(n),p2(e,u,1,L[n]&4)}function p2(e,u,n,t){let i=e.index;for(;e.index=2&&o<=11){let l=Ve[e.tokenValue];return l===void 0?208897:n?l===209008?u&4196352?121:l:u&1024?l===36972||(l&36864)===36864?122:(l&20480)===20480?u&268435456&&!(u&8192)?l:121:143483:u&268435456&&!(u&8192)&&(l&20480)===20480?l:l===241773?u&268435456?143483:u&2097152?121:l:l===209007?143483:(l&36864)===36864?l:121:l}return 208897}function X1(e){return _2(A(e))||s(e,94),131}function Re(e){return e.source.charCodeAt(e.index+1)!==117&&s(e,4),e.currentChar=e.source.charCodeAt(e.index+=2),H1(e)}function H1(e){let u=0,n=e.currentChar;if(n===123){let l=e.index-2;for(;L[A(e)]&64;)u=u<<4|z(e.currentChar),u>1114111&&A2(l,e.line,e.index+1,102);return e.currentChar!==125&&A2(l,e.line,e.index-1,6),A(e),u}L[n]&64||s(e,6);let t=e.source.charCodeAt(e.index+1);L[t]&64||s(e,6);let i=e.source.charCodeAt(e.index+2);L[i]&64||s(e,6);let o=e.source.charCodeAt(e.index+3);return L[o]&64||s(e,6),u=z(n)<<12|z(t)<<8|z(i)<<4|z(o),e.currentChar=e.source.charCodeAt(e.index+=4),u}var Oe=[129,129,129,129,129,129,129,129,129,128,136,128,128,130,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,128,16842800,134283267,131,208897,8457015,8455751,134283267,67174411,16,8457014,25233970,18,25233971,67108877,8457016,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456258,1077936157,8456259,22,133,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,137,20,8455497,208897,132,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8455240,1074790415,16842801,129];function D(e,u){if(e.flags=(e.flags|1)^1,e.startPos=e.index,e.startColumn=e.column,e.startLine=e.line,e.token=Ue(e,u,0),e.onToken&&e.token!==1048576){let n={start:{line:e.linePos,column:e.colPos},end:{line:e.line,column:e.column}};e.onToken(L1(e.token),e.tokenPos,e.index,n)}}function Ue(e,u,n){let t=e.index===0,i=e.source,o=e.index,l=e.line,f=e.column;for(;e.index=e.end)return 8457014;let d=e.currentChar;return d===61?(A(e),4194340):d!==42?8457014:A(e)!==61?8457273:(A(e),4194337)}case 8455497:return A(e)!==61?8455497:(A(e),4194343);case 25233970:{A(e);let d=e.currentChar;return d===43?(A(e),33619995):d===61?(A(e),4194338):25233970}case 25233971:{A(e);let d=e.currentChar;if(d===45){if(A(e),(n&1||t)&&e.currentChar===62){u&256||s(e,109),A(e),n=Ce(e,i,n,u,3,o,l,f),o=e.tokenPos,l=e.linePos,f=e.colPos;continue}return 33619996}return d===61?(A(e),4194339):25233971}case 8457016:{if(A(e),e.index=48&&a<=57)return Pe(e,u,80);if(a===46){let d=e.index+1;if(d=48&&d<=57)))return A(e),67108991}return 22}}}else{if((c^8232)<=1){n=n&-5|1,c2(e);continue}if((c&64512)===55296||P2[(c>>>5)+34816]>>>c&31&1)return(c&64512)===56320&&(c=(c&1023)<<10|c&1023|65536,P2[(c>>>5)+0]>>>c&31&1||s(e,18,G(c)),e.index++,e.currentChar=c),e.column++,e.tokenValue="",p2(e,u,0,0);if(q1(c)){A(e);continue}s(e,18,G(c))}}return 1048576}function z1(e,u){return e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.token=L[e.currentChar]&8192?K1(e,u):Ue(e,u,0),e.token}function K1(e,u){let n=e.currentChar,t=A(e),i=e.index;for(;t!==n;)e.index>=e.end&&s(e,14),t=A(e);return t!==n&&s(e,14),e.tokenValue=e.source.slice(i,e.index),A(e),u&512&&(e.tokenRaw=e.source.slice(e.tokenPos,e.index)),134283267}function d2(e,u){if(e.startPos=e.tokenPos=e.index,e.startColumn=e.colPos=e.column,e.startLine=e.linePos=e.line,e.index>=e.end)return e.token=1048576;switch(Oe[e.source.charCodeAt(e.index)]){case 8456258:{A(e),e.currentChar===47?(A(e),e.token=25):e.token=8456258;break}case 2162700:{A(e),e.token=2162700;break}default:{let t=0;for(;e.index1&&i&32&&e.token&262144&&s(e,59,O[e.token&255]),l}function Se(e,u,n,t,i){let{token:o,tokenPos:l,linePos:f,colPos:c}=e,m=null,g=i1(e,u,n,t,i,l,f,c);return e.token===1077936157?(D(e,u|32768),m=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),(i&32||!(o&2097152))&&(e.token===274549||e.token===8738868&&(o&2097152||!(t&4)||u&1024))&&k2(l,e.line,e.index-3,58,e.token===274549?"of":"in")):(t&16||(o&2097152)>0)&&(e.token&262144)!==262144&&s(e,57,t&16?"const":"destructuring"),y(e,u,l,f,c,{type:"VariableDeclarator",id:g,init:m})}function Au(e,u,n,t,i,o,l){D(e,u);let f=((u&4194304)>0||(u&2048)>0&&(u&8192)>0)&&q(e,u,209008);P(e,u|32768,67174411),n&&(n=J(n,1));let c=null,m=null,g=0,a=null,d=e.token===86090||e.token===241739||e.token===86092,k,{token:C,tokenPos:b,linePos:E,colPos:w}=e;if(d?C===241739?(a=I(e,u),e.token&2240512?(e.token===8738868?u&1024&&s(e,65):a=y(e,u,b,E,w,{type:"VariableDeclaration",kind:"let",declarations:g2(e,u|134217728,n,8,32)}),e.assignable=1):u&1024?s(e,65):(d=!1,e.assignable=1,a=N(e,u,a,0,0,b,E,w),e.token===274549&&s(e,112))):(D(e,u),a=y(e,u,b,E,w,C===86090?{type:"VariableDeclaration",kind:"var",declarations:g2(e,u|134217728,n,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:g2(e,u|134217728,n,16,32)}),e.assignable=1):C===1074790417?f&&s(e,80):(C&2097152)===2097152?(a=C===2162700?Y(e,u,void 0,1,0,0,2,32,b,E,w):_(e,u,void 0,1,0,0,2,32,b,E,w),g=e.destructible,u&256&&g&64&&s(e,61),e.assignable=g&16?2:1,a=N(e,u|134217728,a,0,0,e.tokenPos,e.linePos,e.colPos)):a=W(e,u|134217728,1,0,1,b,E,w),(e.token&262144)===262144){if(e.token===274549){e.assignable&2&&s(e,78,f?"await":"of"),r(e,a),D(e,u|32768),k=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let S=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForOfStatement",left:a,right:k,body:S,await:f})}e.assignable&2&&s(e,78,"in"),r(e,a),D(e,u|32768),f&&s(e,80),k=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos),P(e,u|32768,16);let M=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForInStatement",body:M,left:a,right:k})}f&&s(e,80),d||(g&8&&e.token!==1077936157&&s(e,78,"loop"),a=U(e,u|134217728,0,0,b,E,w,a)),e.token===18&&(a=p(e,u,0,e.tokenPos,e.linePos,e.colPos,a)),P(e,u|32768,1074790417),e.token!==1074790417&&(c=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,1074790417),e.token!==16&&(m=j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),P(e,u|32768,16);let v=C2(e,u,n,t);return y(e,u,i,o,l,{type:"ForStatement",init:a,test:c,update:m,body:v})}function $e(e,u,n){return ue(u,e.token)||s(e,115),(e.token&537079808)===537079808&&s(e,116),n&&t2(e,u,n,e.tokenValue,8,0),I(e,u)}function hu(e,u,n){let t=e.tokenPos,i=e.linePos,o=e.colPos;D(e,u);let l=null,{tokenPos:f,linePos:c,colPos:m}=e,g=[];if(e.token===134283267)l=X(e,u);else{if(e.token&143360){let a=$e(e,u,n);if(g=[y(e,u,f,c,m,{type:"ImportDefaultSpecifier",local:a})],q(e,u,18))switch(e.token){case 8457014:g.push(Be(e,u,n));break;case 2162700:ve(e,u,n,g);break;default:s(e,105)}}else switch(e.token){case 8457014:g=[Be(e,u,n)];break;case 2162700:ve(e,u,n,g);break;case 67174411:return _e(e,u,t,i,o);case 67108877:return We(e,u,t,i,o);default:s(e,28,O[e.token&255])}l=Du(e,u)}return H(e,u|32768),y(e,u,t,i,o,{type:"ImportDeclaration",specifiers:g,source:l})}function Be(e,u,n){let{tokenPos:t,linePos:i,colPos:o}=e;return D(e,u),P(e,u,77934),(e.token&134217728)===134217728&&k2(t,e.line,e.index,28,O[e.token&255]),y(e,u,t,i,o,{type:"ImportNamespaceSpecifier",local:$e(e,u,n)})}function Du(e,u){return q(e,u,12404)||s(e,28,O[e.token&255]),e.token!==134283267&&s(e,103,"Import"),X(e,u)}function ve(e,u,n,t){for(D(e,u);e.token&143360;){let{token:i,tokenValue:o,tokenPos:l,linePos:f,colPos:c}=e,m=I(e,u),g;q(e,u,77934)?((e.token&134217728)===134217728||e.token===18?s(e,104):O2(e,u,16,e.token,0),o=e.tokenValue,g=I(e,u)):(O2(e,u,16,i,0),g=m),n&&t2(e,u,n,o,8,0),t.push(y(e,u,l,f,c,{type:"ImportSpecifier",local:g,imported:m})),e.token!==1074790415&&P(e,u,18)}return P(e,u,1074790415),t}function We(e,u,n,t,i){let o=Qe(e,u,y(e,u,n,t,i,{type:"Identifier",name:"import"}),n,t,i);return o=N(e,u,o,0,0,n,t,i),o=U(e,u,0,0,n,t,i,o),e.token===18&&(o=p(e,u,0,n,t,i,o)),h2(e,u,o,n,t,i)}function _e(e,u,n,t,i){let o=Ze(e,u,0,n,t,i);return o=N(e,u,o,0,0,n,t,i),e.token===18&&(o=p(e,u,0,n,t,i,o)),h2(e,u,o,n,t,i)}function bu(e,u,n){let t=e.tokenPos,i=e.linePos,o=e.colPos;D(e,u|32768);let l=[],f=null,c=null,m;if(q(e,u|32768,20563)){switch(e.token){case 86106:{f=i2(e,u,n,4,1,1,0,e.tokenPos,e.linePos,e.colPos);break}case 133:case 86096:f=r2(e,u,n,1,e.tokenPos,e.linePos,e.colPos);break;case 209007:let{tokenPos:g,linePos:a,colPos:d}=e;f=I(e,u);let{flags:k}=e;k&1||(e.token===86106?f=i2(e,u,n,4,1,1,1,g,a,d):e.token===67174411?(f=de(e,u,f,1,1,0,k,g,a,d),f=N(e,u,f,0,0,g,a,d),f=U(e,u,0,0,g,a,d,f)):e.token&143360&&(n&&(n=X2(e,u,e.tokenValue)),f=I(e,u),f=B2(e,u,n,[f],1,g,a,d)));break;default:f=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos),H(e,u|32768)}return n&&l2(e,"default"),y(e,u,t,i,o,{type:"ExportDefaultDeclaration",declaration:f})}switch(e.token){case 8457014:{D(e,u);let k=null;return q(e,u,77934)&&(n&&l2(e,e.tokenValue),k=I(e,u)),P(e,u,12404),e.token!==134283267&&s(e,103,"Export"),c=X(e,u),H(e,u|32768),y(e,u,t,i,o,{type:"ExportAllDeclaration",source:c,exported:k})}case 2162700:{D(e,u);let k=[],C=[];for(;e.token&143360;){let{tokenPos:b,tokenValue:E,linePos:w,colPos:v}=e,M=I(e,u),S;e.token===77934?(D(e,u),(e.token&134217728)===134217728&&s(e,104),n&&(k.push(e.tokenValue),C.push(E)),S=I(e,u)):(n&&(k.push(e.tokenValue),C.push(e.tokenValue)),S=M),l.push(y(e,u,b,w,v,{type:"ExportSpecifier",local:M,exported:S})),e.token!==1074790415&&P(e,u,18)}if(P(e,u,1074790415),q(e,u,12404))e.token!==134283267&&s(e,103,"Export"),c=X(e,u);else if(n){let b=0,E=k.length;for(;b0)&8738868,g,a;for(e.assignable=2;e.token&8454144&&(g=e.token,a=g&3840,(g&524288&&f&268435456||f&524288&&g&268435456)&&s(e,160),!(a+((g===8457273)<<8)-((m===g)<<12)<=l));)D(e,u|32768),c=y(e,u,t,i,o,{type:g&524288||g&268435456?"LogicalExpression":"BinaryExpression",left:c,right:n2(e,u,n,e.tokenPos,e.linePos,e.colPos,a,g,W(e,u,0,n,1,e.tokenPos,e.linePos,e.colPos)),operator:O[g&255]});return e.token===1077936157&&s(e,24),c}function Cu(e,u,n,t,i,o,l){n||s(e,0);let f=e.token;D(e,u|32768);let c=W(e,u,0,l,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&s(e,31),u&1024&&f===16863278&&(c.type==="Identifier"?s(e,118):$1(c)&&s(e,124)),e.assignable=2,y(e,u,t,i,o,{type:"UnaryExpression",operator:O[f&255],argument:c,prefix:!0})}function Pu(e,u,n,t,i,o,l,f,c){let{token:m}=e,g=I(e,u),{flags:a}=e;if(!(a&1)){if(e.token===86106)return Ge(e,u,1,n,l,f,c);if((e.token&143360)===143360)return t||s(e,0),e1(e,u,i,l,f,c)}return!o&&e.token===67174411?de(e,u,g,i,1,0,a,l,f,c):e.token===10?(ne(e,u,m),o&&s(e,49),z2(e,u,e.tokenValue,g,o,i,0,l,f,c)):(e.assignable=1,g)}function Eu(e,u,n,t,i,o,l){if(n&&(e.destructible|=256),u&2097152){D(e,u|32768),u&8388608&&s(e,30),t||s(e,24),e.token===22&&s(e,121);let f=null,c=!1;return e.flags&1||(c=q(e,u|32768,8457014),(e.token&77824||c)&&(f=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos))),e.assignable=2,y(e,u,i,o,l,{type:"YieldExpression",argument:f,delegate:c})}return u&1024&&s(e,95,"yield"),ce(e,u,i,o,l)}function wu(e,u,n,t,i,o,l){if(t&&(e.destructible|=128),u&4194304||u&2048&&u&8192){n&&s(e,0),u&8388608&&k2(e.index,e.line,e.index,29),D(e,u|32768);let f=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.token===8457273&&s(e,31),e.assignable=2,y(e,u,i,o,l,{type:"AwaitExpression",argument:f})}return u&2048&&s(e,96),ce(e,u,i,o,l)}function H2(e,u,n,t,i,o){let{tokenPos:l,linePos:f,colPos:c}=e;P(e,u|32768,2162700);let m=[],g=u;if(e.token!==1074790415){for(;e.token===134283267;){let{index:a,tokenPos:d,tokenValue:k,token:C}=e,b=X(e,u);Me(e,a,d,k)&&(u|=1024,e.flags&128&&k2(e.index,e.line,e.tokenPos,64),e.flags&64&&k2(e.index,e.line,e.tokenPos,8)),m.push(te(e,u,b,C,d,e.linePos,e.colPos))}u&1024&&(i&&((i&537079808)===537079808&&s(e,116),(i&36864)===36864&&s(e,38)),e.flags&512&&s(e,116),e.flags&256&&s(e,115)),u&64&&n&&o!==void 0&&!(g&1024)&&!(u&8192)&&j2(o)}for(e.flags=(e.flags|512|256|64)^832,e.destructible=(e.destructible|256)^256;e.token!==1074790415;)m.push(w2(e,u,n,4,{}));return P(e,t&24?u|32768:u,1074790415),e.flags&=-193,e.token===1077936157&&s(e,24),y(e,u,l,f,c,{type:"BlockStatement",body:m})}function Su(e,u,n,t,i){switch(D(e,u),e.token){case 67108991:s(e,162);case 67174411:{u&524288||s(e,26),u&16384&&!(u&33554432)&&s(e,27),e.assignable=2;break}case 69271571:case 67108877:{u&262144||s(e,27),u&16384&&!(u&33554432)&&s(e,27),e.assignable=1;break}default:s(e,28,"super")}return y(e,u,n,t,i,{type:"Super"})}function W(e,u,n,t,i,o,l,f){let c=K(e,u,2,0,n,t,i,o,l,f);return N(e,u,c,t,0,o,l,f)}function Bu(e,u,n,t,i,o){e.assignable&2&&s(e,53);let{token:l}=e;return D(e,u),e.assignable=2,y(e,u,t,i,o,{type:"UpdateExpression",argument:n,operator:O[l&255],prefix:!1})}function N(e,u,n,t,i,o,l,f){if((e.token&33619968)===33619968&&!(e.flags&1))n=Bu(e,u,n,o,l,f);else if((e.token&67108864)===67108864){switch(u=(u|134217728)^134217728,e.token){case 67108877:{D(e,(u|268435456|8192)^8192),u&16384&&e.token===131&&e.tokenValue==="super"&&s(e,27),e.assignable=1;let c=Ye(e,u|65536);n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!1,property:c});break}case 69271571:{let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048),D(e,u|32768);let{tokenPos:m,linePos:g,colPos:a}=e,d=j(e,u,t,1,m,g,a);P(e,u,20),e.assignable=1,n=y(e,u,o,l,f,{type:"MemberExpression",object:n,computed:!0,property:d}),c&&(e.flags|=2048);break}case 67174411:{if((e.flags&1024)===1024)return e.flags=(e.flags|1024)^1024,n;let c=!1;(e.flags&2048)===2048&&(c=!0,e.flags=(e.flags|2048)^2048);let m=fe(e,u,t);e.assignable=2,n=y(e,u,o,l,f,{type:"CallExpression",callee:n,arguments:m}),c&&(e.flags|=2048);break}case 67108991:{D(e,(u|268435456|8192)^8192),e.flags|=2048,e.assignable=2,n=vu(e,u,n,o,l,f);break}default:(e.flags&2048)===2048&&s(e,161),e.assignable=2,n=y(e,u,o,l,f,{type:"TaggedTemplateExpression",tag:n,quasi:e.token===67174408?le(e,u|65536):oe(e,u,e.tokenPos,e.linePos,e.colPos)})}n=N(e,u,n,0,1,o,l,f)}return i===0&&(e.flags&2048)===2048&&(e.flags=(e.flags|2048)^2048,n=y(e,u,o,l,f,{type:"ChainExpression",expression:n})),n}function vu(e,u,n,t,i,o){let l=!1,f;if((e.token===69271571||e.token===67174411)&&(e.flags&2048)===2048&&(l=!0,e.flags=(e.flags|2048)^2048),e.token===69271571){D(e,u|32768);let{tokenPos:c,linePos:m,colPos:g}=e,a=j(e,u,0,1,c,m,g);P(e,u,20),e.assignable=2,f=y(e,u,t,i,o,{type:"MemberExpression",object:n,computed:!0,optional:!0,property:a})}else if(e.token===67174411){let c=fe(e,u,0);e.assignable=2,f=y(e,u,t,i,o,{type:"CallExpression",callee:n,arguments:c,optional:!0})}else{e.token&143360||s(e,155);let c=I(e,u);e.assignable=2,f=y(e,u,t,i,o,{type:"MemberExpression",object:n,computed:!1,optional:!0,property:c})}return l&&(e.flags|=2048),f}function Ye(e,u){return!(e.token&143360)&&e.token!==131&&s(e,155),u&1&&e.token===131?J2(e,u,e.tokenPos,e.linePos,e.colPos):I(e,u)}function Tu(e,u,n,t,i,o,l){n&&s(e,54),t||s(e,0);let{token:f}=e;D(e,u|32768);let c=W(e,u,0,0,1,e.tokenPos,e.linePos,e.colPos);return e.assignable&2&&s(e,53),e.assignable=2,y(e,u,i,o,l,{type:"UpdateExpression",argument:c,operator:O[f&255],prefix:!0})}function K(e,u,n,t,i,o,l,f,c,m){if((e.token&143360)===143360){switch(e.token){case 209008:return wu(e,u,t,o,f,c,m);case 241773:return Eu(e,u,o,i,f,c,m);case 209007:return Pu(e,u,o,l,i,t,f,c,m)}let{token:g,tokenValue:a}=e,d=I(e,u|65536);return e.token===10?(l||s(e,0),ne(e,u,g),z2(e,u,a,d,t,i,0,f,c,m)):(u&16384&&g===537079928&&s(e,127),g===241739&&(u&1024&&s(e,110),n&24&&s(e,98)),e.assignable=u&1024&&(g&537079808)===537079808?2:1,d)}if((e.token&134217728)===134217728)return X(e,u);switch(e.token){case 33619995:case 33619996:return Tu(e,u,t,l,f,c,m);case 16863278:case 16842800:case 16842801:case 25233970:case 25233971:case 16863277:case 16863279:return Cu(e,u,l,f,c,m,o);case 86106:return Ge(e,u,0,o,f,c,m);case 2162700:return Vu(e,u,i?0:1,o,f,c,m);case 69271571:return Nu(e,u,i?0:1,o,f,c,m);case 67174411:return Ou(e,u|65536,i,1,0,f,c,m);case 86021:case 86022:case 86023:return Lu(e,u,f,c,m);case 86113:return Iu(e,u);case 65540:return Ju(e,u,f,c,m);case 133:case 86096:return ju(e,u,o,f,c,m);case 86111:return Su(e,u,f,c,m);case 67174409:return oe(e,u,f,c,m);case 67174408:return le(e,u);case 86109:return Uu(e,u,o,f,c,m);case 134283389:return re(e,u,f,c,m);case 131:return J2(e,u,f,c,m);case 86108:return Fu(e,u,t,o,f,c,m);case 8456258:if(u&16)return ae(e,u,1,f,c,m);default:if(ue(u,e.token))return ce(e,u,f,c,m);s(e,28,O[e.token&255])}}function Fu(e,u,n,t,i,o,l){let f=I(e,u);return e.token===67108877?Qe(e,u,f,i,o,l):(n&&s(e,138),f=Ze(e,u,t,i,o,l),e.assignable=2,N(e,u,f,t,0,i,o,l))}function Qe(e,u,n,t,i,o){return u&2048||s(e,164),D(e,u),e.token!==143495&&e.tokenValue!=="meta"&&s(e,28,O[e.token&255]),e.assignable=2,y(e,u,t,i,o,{type:"MetaProperty",meta:n,property:I(e,u)})}function Ze(e,u,n,t,i,o){P(e,u|32768,67174411),e.token===14&&s(e,139);let l=R(e,u,1,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,16),y(e,u,t,i,o,{type:"ImportExpression",source:l})}function re(e,u,n,t,i){let{tokenRaw:o,tokenValue:l}=e;return D(e,u),e.assignable=2,y(e,u,n,t,i,u&512?{type:"Literal",value:l,bigint:o.slice(0,-1),raw:o}:{type:"Literal",value:l,bigint:o.slice(0,-1)})}function oe(e,u,n,t,i){e.assignable=2;let{tokenValue:o,tokenRaw:l,tokenPos:f,linePos:c,colPos:m}=e;P(e,u,67174409);let g=[N2(e,u,o,l,f,c,m,!0)];return y(e,u,n,t,i,{type:"TemplateLiteral",expressions:[],quasis:g})}function le(e,u){u=(u|134217728)^134217728;let{tokenValue:n,tokenRaw:t,tokenPos:i,linePos:o,colPos:l}=e;P(e,u|32768,67174408);let f=[N2(e,u,n,t,i,o,l,!1)],c=[j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)];for(e.token!==1074790415&&s(e,81);(e.token=J1(e,u))!==67174409;){let{tokenValue:m,tokenRaw:g,tokenPos:a,linePos:d,colPos:k}=e;P(e,u|32768,67174408),f.push(N2(e,u,m,g,a,d,k,!1)),c.push(j(e,u,0,1,e.tokenPos,e.linePos,e.colPos)),e.token!==1074790415&&s(e,81)}{let{tokenValue:m,tokenRaw:g,tokenPos:a,linePos:d,colPos:k}=e;P(e,u,67174409),f.push(N2(e,u,m,g,a,d,k,!0))}return y(e,u,i,o,l,{type:"TemplateLiteral",expressions:c,quasis:f})}function N2(e,u,n,t,i,o,l,f){let c=y(e,u,i,o,l,{type:"TemplateElement",value:{cooked:n,raw:t},tail:f}),m=f?1:2;return u&2&&(c.start+=1,c.range[0]+=1,c.end-=m,c.range[1]-=m),u&4&&(c.loc.start.column+=1,c.loc.end.column-=m),c}function qu(e,u,n,t,i){u=(u|134217728)^134217728,P(e,u|32768,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return e.assignable=1,y(e,u,n,t,i,{type:"SpreadElement",argument:o})}function fe(e,u,n){D(e,u|32768);let t=[];if(e.token===16)return D(e,u|65536),t;for(;e.token!==16&&(e.token===14?t.push(qu(e,u,e.tokenPos,e.linePos,e.colPos)):t.push(R(e,u,1,n,e.tokenPos,e.linePos,e.colPos)),!(e.token!==18||(D(e,u|32768),e.token===16))););return P(e,u,16),t}function I(e,u){let{tokenValue:n,tokenPos:t,linePos:i,colPos:o}=e;return D(e,u),y(e,u,t,i,o,{type:"Identifier",name:n})}function X(e,u){let{tokenValue:n,tokenRaw:t,tokenPos:i,linePos:o,colPos:l}=e;return e.token===134283389?re(e,u,i,o,l):(D(e,u),e.assignable=2,y(e,u,i,o,l,u&512?{type:"Literal",value:n,raw:t}:{type:"Literal",value:n}))}function Lu(e,u,n,t,i){let o=O[e.token&255],l=e.token===86023?null:o==="true";return D(e,u),e.assignable=2,y(e,u,n,t,i,u&512?{type:"Literal",value:l,raw:o}:{type:"Literal",value:l})}function Iu(e,u){let{tokenPos:n,linePos:t,colPos:i}=e;return D(e,u),e.assignable=2,y(e,u,n,t,i,{type:"ThisExpression"})}function i2(e,u,n,t,i,o,l,f,c,m){D(e,u|32768);let g=i?ee(e,u,8457014):0,a=null,d,k=n?s2():void 0;if(e.token===67174411)o&1||s(e,37,"Function");else{let E=t&4&&(!(u&8192)||!(u&2048))?4:64;Je(e,u|(u&3072)<<11,e.token),n&&(E&4?He(e,u,n,e.tokenValue,E):t2(e,u,n,e.tokenValue,E,t),k=J(k,256),o&&o&2&&l2(e,e.tokenValue)),d=e.token,e.token&143360?a=I(e,u):s(e,28,O[e.token&255])}u=(u|32243712)^32243712|67108864|l*2+g<<21|(g?0:268435456),n&&(k=J(k,512));let C=pe(e,u|8388608,k,0,1),b=H2(e,(u|8192|4096|131072)^143360,n?J(k,128):k,8,d,n?k.scopeError:void 0);return y(e,u,f,c,m,{type:"FunctionDeclaration",id:a,params:C,body:b,async:l===1,generator:g===1})}function Ge(e,u,n,t,i,o,l){D(e,u|32768);let f=ee(e,u,8457014),c=n*2+f<<21,m=null,g,a=u&64?s2():void 0;(e.token&176128)>0&&(Je(e,(u|32243712)^32243712|c,e.token),a&&(a=J(a,256)),g=e.token,m=I(e,u)),u=(u|32243712)^32243712|67108864|c|(f?0:268435456),a&&(a=J(a,512));let d=pe(e,u|8388608,a,t,1),k=H2(e,u&-134377473,a&&J(a,128),0,g,void 0);return e.assignable=2,y(e,u,i,o,l,{type:"FunctionExpression",id:m,params:d,body:k,async:n===1,generator:f===1})}function Nu(e,u,n,t,i,o,l){let f=_(e,u,void 0,n,t,0,2,0,i,o,l);return u&256&&e.destructible&64&&s(e,61),e.destructible&8&&s(e,60),f}function _(e,u,n,t,i,o,l,f,c,m,g){D(e,u|32768);let a=[],d=0;for(u=(u|134217728)^134217728;e.token!==20;)if(q(e,u|32768,18))a.push(null);else{let C,{token:b,tokenPos:E,linePos:w,colPos:v,tokenValue:M}=e;if(b&143360)if(C=K(e,u,l,0,1,i,1,E,w,v),e.token===1077936157){e.assignable&2&&s(e,24),D(e,u|32768),n&&u2(e,u,n,M,l,f);let S=R(e,u,1,i,e.tokenPos,e.linePos,e.colPos);C=y(e,u,E,w,v,o?{type:"AssignmentPattern",left:C,right:S}:{type:"AssignmentExpression",operator:"=",left:C,right:S}),d|=e.destructible&256?256:0|e.destructible&128?128:0}else e.token===18||e.token===20?(e.assignable&2?d|=16:n&&u2(e,u,n,M,l,f),d|=e.destructible&256?256:0|e.destructible&128?128:0):(d|=l&1?32:l&2?0:16,C=N(e,u,C,i,0,E,w,v),e.token!==18&&e.token!==20?(e.token!==1077936157&&(d|=16),C=U(e,u,i,o,E,w,v,C)):e.token!==1077936157&&(d|=e.assignable&2?16:32));else b&2097152?(C=e.token===2162700?Y(e,u,n,0,i,o,l,f,E,w,v):_(e,u,n,0,i,o,l,f,E,w,v),d|=e.destructible,e.assignable=e.destructible&16?2:1,e.token===18||e.token===20?e.assignable&2&&(d|=16):e.destructible&8?s(e,69):(C=N(e,u,C,i,0,E,w,v),d=e.assignable&2?16:0,e.token!==18&&e.token!==20?C=U(e,u,i,o,E,w,v,C):e.token!==1077936157&&(d|=e.assignable&2?16:32))):b===14?(C=D2(e,u,n,20,l,f,0,i,o,E,w,v),d|=e.destructible,e.token!==18&&e.token!==20&&s(e,28,O[e.token&255])):(C=W(e,u,1,0,1,E,w,v),e.token!==18&&e.token!==20?(C=U(e,u,i,o,E,w,v,C),!(l&3)&&b===67174411&&(d|=16)):e.assignable&2?d|=16:b===67174411&&(d|=e.assignable&1&&l&3?32:16));if(a.push(C),q(e,u|32768,18)){if(e.token===20)break}else break}P(e,u,20);let k=y(e,u,c,m,g,{type:o?"ArrayPattern":"ArrayExpression",elements:a});return!t&&e.token&4194304?xe(e,u,d,i,o,c,m,g,k):(e.destructible=d,k)}function xe(e,u,n,t,i,o,l,f,c){e.token!==1077936157&&s(e,24),D(e,u|32768),n&16&&s(e,24),i||r(e,c);let{tokenPos:m,linePos:g,colPos:a}=e,d=R(e,u,1,t,m,g,a);return e.destructible=(n|64|8)^72|(e.destructible&128?128:0)|(e.destructible&256?256:0),y(e,u,o,l,f,i?{type:"AssignmentPattern",left:c,right:d}:{type:"AssignmentExpression",left:c,operator:"=",right:d})}function D2(e,u,n,t,i,o,l,f,c,m,g,a){D(e,u|32768);let d=null,k=0,{token:C,tokenValue:b,tokenPos:E,linePos:w,colPos:v}=e;if(C&143360)e.assignable=1,d=K(e,u,i,0,1,f,1,E,w,v),C=e.token,d=N(e,u,d,f,0,E,w,v),e.token!==18&&e.token!==t&&(e.assignable&2&&e.token===1077936157&&s(e,69),k|=16,d=U(e,u,f,c,E,w,v,d)),e.assignable&2?k|=16:C===t||C===18?n&&u2(e,u,n,b,i,o):k|=32,k|=e.destructible&128?128:0;else if(C===t)s(e,39);else if(C&2097152)d=e.token===2162700?Y(e,u,n,1,f,c,i,o,E,w,v):_(e,u,n,1,f,c,i,o,E,w,v),C=e.token,C!==1077936157&&C!==t&&C!==18?(e.destructible&8&&s(e,69),d=N(e,u,d,f,0,E,w,v),k|=e.assignable&2?16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(k|=16),d=U(e,u,f,c,E,w,v,d)):((e.token&8454144)===8454144&&(d=n2(e,u,1,E,w,v,4,C,d)),q(e,u|32768,22)&&(d=f2(e,u,d,E,w,v)),k|=e.assignable&2?16:32)):k|=t===1074790415&&C!==1077936157?16:e.destructible;else{k|=32,d=W(e,u,1,f,1,e.tokenPos,e.linePos,e.colPos);let{token:M,tokenPos:S,linePos:V,colPos:h}=e;return M===1077936157&&M!==t&&M!==18?(e.assignable&2&&s(e,24),d=U(e,u,f,c,S,V,h,d),k|=16):(M===18?k|=16:M!==t&&(d=U(e,u,f,c,S,V,h,d)),k|=e.assignable&1?32:16),e.destructible=k,e.token!==t&&e.token!==18&&s(e,156),y(e,u,m,g,a,{type:c?"RestElement":"SpreadElement",argument:d})}if(e.token!==t)if(i&1&&(k|=l?16:32),q(e,u|32768,1077936157)){k&16&&s(e,24),r(e,d);let M=R(e,u,1,f,e.tokenPos,e.linePos,e.colPos);d=y(e,u,E,w,v,c?{type:"AssignmentPattern",left:d,right:M}:{type:"AssignmentExpression",left:d,operator:"=",right:M}),k=16}else k|=16;return e.destructible=k,y(e,u,m,g,a,{type:c?"RestElement":"SpreadElement",argument:d})}function Z(e,u,n,t,i,o,l){let f=n&64?14680064:31981568;u=(u|f)^f|(n&88)<<18|100925440;let c=u&64?J(s2(),512):void 0,m=Ru(e,u|8388608,c,n,1,t);c&&(c=J(c,128));let g=H2(e,u&-134230017,c,0,void 0,void 0);return y(e,u,i,o,l,{type:"FunctionExpression",params:m,body:g,async:(n&16)>0,generator:(n&8)>0,id:null})}function Vu(e,u,n,t,i,o,l){let f=Y(e,u,void 0,n,t,0,2,0,i,o,l);return u&256&&e.destructible&64&&s(e,61),e.destructible&8&&s(e,60),f}function Y(e,u,n,t,i,o,l,f,c,m,g){D(e,u);let a=[],d=0,k=0;for(u=(u|134217728)^134217728;e.token!==1074790415;){let{token:b,tokenValue:E,linePos:w,colPos:v,tokenPos:M}=e;if(b===14)a.push(D2(e,u,n,1074790415,l,f,0,i,o,M,w,v));else{let S=0,V=null,h,Q=e.token;if(e.token&143360||e.token===121)if(V=I(e,u),e.token===18||e.token===1074790415||e.token===1077936157)if(S|=4,u&1024&&(b&537079808)===537079808?d|=16:O2(e,u,l,b,0),n&&u2(e,u,n,E,l,f),q(e,u|32768,1077936157)){d|=8;let B=R(e,u,1,i,e.tokenPos,e.linePos,e.colPos);d|=e.destructible&256?256:0|e.destructible&128?128:0,h=y(e,u,M,w,v,{type:"AssignmentPattern",left:u&536870912?Object.assign({},V):V,right:B})}else d|=(b===209008?128:0)|(b===121?16:0),h=u&536870912?Object.assign({},V):V;else if(q(e,u|32768,21)){let{tokenPos:B,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){let o2=e.token,a2=e.tokenValue;d|=Q===121?16:0,h=K(e,u,l,0,1,i,1,B,F,T);let{token:x}=e;h=N(e,u,h,i,0,B,F,T),e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?(d|=e.destructible&128?128:0,e.assignable&2?d|=16:n&&(o2&143360)===143360&&u2(e,u,n,a2,l,f)):d|=e.assignable&1?32:16:(e.token&4194304)===4194304?(e.assignable&2?d|=16:x!==1077936157?d|=32:n&&u2(e,u,n,a2,l,f),h=U(e,u,i,o,B,F,T,h)):(d|=16,(e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,x,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):e.destructible&8?s(e,69):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,(e.token&4194304)===4194304?h=L2(e,u,i,o,B,F,T,h):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,i,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,e.token!==18&&b!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===69271571?(d|=16,b===209007&&(S|=16),S|=(b===12402?256:b===12403?512:1)|2,V=m2(e,u,i),d|=e.assignable,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token&143360?(d|=16,b===121&&s(e,93),b===209007&&(e.flags&1&&s(e,129),S|=16),V=I(e,u),S|=b===12402?256:b===12403?512:1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token===67174411?(d|=16,S|=1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):e.token===8457014?(d|=16,b===12402?s(e,40):b===12403?s(e,41):b===143483&&s(e,93),D(e,u),S|=9|(b===209007?16:0),e.token&143360?V=I(e,u):(e.token&134217728)===134217728?V=X(e,u):e.token===69271571?(S|=2,V=m2(e,u,i),d|=e.assignable):s(e,28,O[e.token&255]),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):(e.token&134217728)===134217728?(b===209007&&(S|=16),S|=b===12402?256:b===12403?512:1,d|=16,V=X(e,u),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):s(e,130);else if((e.token&134217728)===134217728)if(V=X(e,u),e.token===21){P(e,u|32768,21);let{tokenPos:B,linePos:F,colPos:T}=e;if(E==="__proto__"&&k++,e.token&143360){h=K(e,u,l,0,1,i,1,B,F,T);let{token:o2,tokenValue:a2}=e;h=N(e,u,h,i,0,B,F,T),e.token===18||e.token===1074790415?o2===1077936157||o2===1074790415||o2===18?e.assignable&2?d|=16:n&&u2(e,u,n,a2,l,f):d|=e.assignable&1?32:16:e.token===1077936157?(e.assignable&2&&(d|=16),h=U(e,u,i,o,B,F,T,h)):(d|=16,h=U(e,u,i,o,B,F,T,h))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(e.destructible&8)!==8&&(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?16:0,(e.token&4194304)===4194304?h=L2(e,u,i,o,B,F,T,h):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,0,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===67174411?(S|=1,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos),d=e.assignable|16):s(e,131);else if(e.token===69271571)if(V=m2(e,u,i),d|=e.destructible&256?256:0,S|=2,e.token===21){D(e,u|32768);let{tokenPos:B,linePos:F,colPos:T,tokenValue:o2,token:a2}=e;if(e.token&143360){h=K(e,u,l,0,1,i,1,B,F,T);let{token:x}=e;h=N(e,u,h,i,0,B,F,T),(e.token&4194304)===4194304?(d|=e.assignable&2?16:x===1077936157?0:32,h=L2(e,u,i,o,B,F,T,h)):e.token===18||e.token===1074790415?x===1077936157||x===1074790415||x===18?e.assignable&2?d|=16:n&&(a2&143360)===143360&&u2(e,u,n,o2,l,f):d|=e.assignable&1?32:16:(d|=16,h=U(e,u,i,o,B,F,T,h))}else(e.token&2097152)===2097152?(h=e.token===69271571?_(e,u,n,0,i,o,l,f,B,F,T):Y(e,u,n,0,i,o,l,f,B,F,T),d=e.destructible,e.assignable=d&16?2:1,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):d&8?s(e,60):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&2?d|16:0,(e.token&4194304)===4194304?(e.token!==1077936157&&(d|=16),h=L2(e,u,i,o,B,F,T,h)):((e.token&8454144)===8454144&&(h=n2(e,u,1,B,F,T,4,b,h)),q(e,u|32768,22)&&(h=f2(e,u,h,B,F,T)),d|=e.assignable&2?16:32))):(h=W(e,u,1,0,1,B,F,T),d|=e.assignable&1?32:16,e.token===18||e.token===1074790415?e.assignable&2&&(d|=16):(h=N(e,u,h,i,0,B,F,T),d=e.assignable&1?0:16,e.token!==18&&e.token!==1074790415&&(e.token!==1077936157&&(d|=16),h=U(e,u,i,o,B,F,T,h))))}else e.token===67174411?(S|=1,h=Z(e,u,S,i,e.tokenPos,w,v),d=16):s(e,42);else if(b===8457014)if(P(e,u|32768,8457014),S|=8,e.token&143360){let{token:B,line:F,index:T}=e;V=I(e,u),S|=1,e.token===67174411?(d|=16,h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):k2(T,F,T,B===209007?44:B===12402||e.token===12403?43:45,O[B&255])}else(e.token&134217728)===134217728?(d|=16,V=X(e,u),S|=1,h=Z(e,u,S,i,M,w,v)):e.token===69271571?(d|=16,S|=3,V=m2(e,u,i),h=Z(e,u,S,i,e.tokenPos,e.linePos,e.colPos)):s(e,123);else s(e,28,O[b&255]);d|=e.destructible&128?128:0,e.destructible=d,a.push(y(e,u,M,w,v,{type:"Property",key:V,value:h,kind:S&768?S&512?"set":"get":"init",computed:(S&2)>0,method:(S&1)>0,shorthand:(S&4)>0}))}if(d|=e.destructible,e.token!==18)break;D(e,u)}P(e,u,1074790415),k>1&&(d|=64);let C=y(e,u,c,m,g,{type:o?"ObjectPattern":"ObjectExpression",properties:a});return!t&&e.token&4194304?xe(e,u,d,i,o,c,m,g,C):(e.destructible=d,C)}function Ru(e,u,n,t,i,o){P(e,u,67174411);let l=[];if(e.flags=(e.flags|128)^128,e.token===16)return t&512&&s(e,35,"Setter","one",""),D(e,u),l;t&256&&s(e,35,"Getter","no","s"),t&512&&e.token===14&&s(e,36),u=(u|134217728)^134217728;let f=0,c=0;for(;e.token!==18;){let m=null,{tokenPos:g,linePos:a,colPos:d}=e;if(e.token&143360?(u&1024||((e.token&36864)===36864&&(e.flags|=256),(e.token&537079808)===537079808&&(e.flags|=512)),m=se(e,u,n,t|1,0,g,a,d)):(e.token===2162700?m=Y(e,u,n,1,o,1,i,0,g,a,d):e.token===69271571?m=_(e,u,n,1,o,1,i,0,g,a,d):e.token===14&&(m=D2(e,u,n,16,i,0,0,o,1,g,a,d)),c=1,e.destructible&48&&s(e,48)),e.token===1077936157){D(e,u|32768),c=1;let k=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);m=y(e,u,g,a,d,{type:"AssignmentPattern",left:m,right:k})}if(f++,l.push(m),!q(e,u,18)||e.token===16)break}return t&512&&f!==1&&s(e,35,"Setter","one",""),n&&n.scopeError!==void 0&&j2(n.scopeError),c&&(e.flags|=128),P(e,u,16),l}function m2(e,u,n){D(e,u|32768);let t=R(e,(u|134217728)^134217728,1,n,e.tokenPos,e.linePos,e.colPos);return P(e,u,20),t}function Ou(e,u,n,t,i,o,l,f){e.flags=(e.flags|128)^128;let{tokenPos:c,linePos:m,colPos:g}=e;D(e,u|32768|268435456);let a=u&64?J(s2(),1024):void 0;if(u=(u|134217728)^134217728,q(e,u,16))return M2(e,u,a,[],n,0,o,l,f);let d=0;e.destructible&=-385;let k,C=[],b=0,E=0,{tokenPos:w,linePos:v,colPos:M}=e;for(e.assignable=1;e.token!==16;){let{token:S,tokenPos:V,linePos:h,colPos:Q}=e;if(S&143360)a&&t2(e,u,a,e.tokenValue,1,0),k=K(e,u,t,0,1,1,1,V,h,Q),e.token===16||e.token===18?e.assignable&2?(d|=16,E=1):((S&537079808)===537079808||(S&36864)===36864)&&(E=1):(e.token===1077936157?E=1:d|=16,k=N(e,u,k,1,0,V,h,Q),e.token!==16&&e.token!==18&&(k=U(e,u,1,0,V,h,Q,k)));else if((S&2097152)===2097152)k=S===2162700?Y(e,u|268435456,a,0,1,0,t,i,V,h,Q):_(e,u|268435456,a,0,1,0,t,i,V,h,Q),d|=e.destructible,E=1,e.assignable=2,e.token!==16&&e.token!==18&&(d&8&&s(e,119),k=N(e,u,k,0,0,V,h,Q),d|=16,e.token!==16&&e.token!==18&&(k=U(e,u,0,0,V,h,Q,k)));else if(S===14){k=D2(e,u,a,16,t,i,0,1,0,V,h,Q),e.destructible&16&&s(e,72),E=1,b&&(e.token===16||e.token===18)&&C.push(k),d|=8;break}else{if(d|=16,k=R(e,u,1,1,V,h,Q),b&&(e.token===16||e.token===18)&&C.push(k),e.token===18&&(b||(b=1,C=[k])),b){for(;q(e,u|32768,18);)C.push(R(e,u,1,1,e.tokenPos,e.linePos,e.colPos));e.assignable=2,k=y(e,u,w,v,M,{type:"SequenceExpression",expressions:C})}return P(e,u,16),e.destructible=d,k}if(b&&(e.token===16||e.token===18)&&C.push(k),!q(e,u|32768,18))break;if(b||(b=1,C=[k]),e.token===16){d|=8;break}}return b&&(e.assignable=2,k=y(e,u,w,v,M,{type:"SequenceExpression",expressions:C})),P(e,u,16),d&16&&d&8&&s(e,146),d|=e.destructible&256?256:0|e.destructible&128?128:0,e.token===10?(d&48&&s(e,47),u&4196352&&d&128&&s(e,29),u&2098176&&d&256&&s(e,30),E&&(e.flags|=128),M2(e,u,a,b?C:[k],n,0,o,l,f)):(d&8&&s(e,140),e.destructible=(e.destructible|256)^256|d,u&128?y(e,u,c,m,g,{type:"ParenthesizedExpression",expression:k}):k)}function ce(e,u,n,t,i){let{tokenValue:o}=e,l=I(e,u);if(e.assignable=1,e.token===10){let f;return u&64&&(f=X2(e,u,o)),e.flags=(e.flags|128)^128,B2(e,u,f,[l],0,n,t,i)}return l}function z2(e,u,n,t,i,o,l,f,c,m){o||s(e,55),i&&s(e,49),e.flags&=-129;let g=u&64?X2(e,u,n):void 0;return B2(e,u,g,[t],l,f,c,m)}function M2(e,u,n,t,i,o,l,f,c){i||s(e,55);for(let m=0;m0&&e.tokenValue==="constructor"&&s(e,107),e.token===1074790415&&s(e,106),q(e,u,1074790417)){k>0&&s(e,117);continue}a.push(n1(e,u,t,n,i,d,0,l,e.tokenPos,e.linePos,e.colPos))}return P(e,o&8?u|32768:u,1074790415),e.flags=e.flags&-33|g,y(e,u,f,c,m,{type:"ClassBody",body:a})}function n1(e,u,n,t,i,o,l,f,c,m,g){let a=l?32:0,d=null,{token:k,tokenPos:C,linePos:b,colPos:E}=e;if(k&176128)switch(d=I(e,u),k){case 36972:if(!l&&e.token!==67174411&&(e.token&1048576)!==1048576&&e.token!==1077936157)return n1(e,u,n,t,i,o,1,f,c,m,g);break;case 209007:if(e.token!==67174411&&!(e.flags&1)){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=16|(ee(e,u,8457014)?8:0)}break;case 12402:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=256}break;case 12403:if(e.token!==67174411){if(u&1&&(e.token&1073741824)===1073741824)return I2(e,u,d,a,o,C,b,E);a|=512}break}else if(k===69271571)a|=2,d=m2(e,t,f);else if((k&134217728)===134217728)d=X(e,u);else if(k===8457014)a|=8,D(e,u);else if(u&1&&e.token===131)a|=4096,d=J2(e,u|16384,C,b,E);else if(u&1&&(e.token&1073741824)===1073741824)a|=128;else{if(l&&k===2162700)return gu(e,u,n,C,b,E);k===122?(d=I(e,u),e.token!==67174411&&s(e,28,O[e.token&255])):s(e,28,O[e.token&255])}if(a&792&&(e.token&143360?d=I(e,u):(e.token&134217728)===134217728?d=X(e,u):e.token===69271571?(a|=2,d=m2(e,u,0)):e.token===122?d=I(e,u):u&1&&e.token===131?(a|=4096,d=J2(e,u,C,b,E)):s(e,132)),a&2||(e.tokenValue==="constructor"?((e.token&1073741824)===1073741824?s(e,126):!(a&32)&&e.token===67174411&&(a&920?s(e,51,"accessor"):u&524288||(e.flags&32?s(e,52):e.flags|=32)),a|=64):!(a&4096)&&a&824&&e.tokenValue==="prototype"&&s(e,50)),u&1&&e.token!==67174411)return I2(e,u,d,a,o,C,b,E);let w=Z(e,u,a,f,e.tokenPos,e.linePos,e.colPos);return y(e,u,c,m,g,u&1?{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:d,decorators:o,value:w}:{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:d,value:w})}function J2(e,u,n,t,i){D(e,u);let{tokenValue:o}=e;return o==="constructor"&&s(e,125),D(e,u),y(e,u,n,t,i,{type:"PrivateIdentifier",name:o})}function I2(e,u,n,t,i,o,l,f){let c=null;if(t&8&&s(e,0),e.token===1077936157){D(e,u|32768);let{tokenPos:m,linePos:g,colPos:a}=e;e.token===537079928&&s(e,116);let d=t&64?14680064:31981568;u=(u|d)^d|(t&88)<<18|100925440,c=K(e,u|16384,2,0,1,0,1,m,g,a),((e.token&1073741824)!==1073741824||(e.token&4194304)===4194304)&&(c=N(e,u|16384,c,0,0,m,g,a),c=U(e,u|16384,0,0,m,g,a,c),e.token===18&&(c=p(e,u,0,o,l,f,c)))}return y(e,u,o,l,f,{type:"PropertyDefinition",key:n,value:c,static:(t&32)>0,computed:(t&2)>0,decorators:i})}function i1(e,u,n,t,i,o,l,f){if(e.token&143360)return se(e,u,n,t,i,o,l,f);(e.token&2097152)!==2097152&&s(e,28,O[e.token&255]);let c=e.token===69271571?_(e,u,n,1,0,1,t,i,o,l,f):Y(e,u,n,1,0,1,t,i,o,l,f);return e.destructible&16&&s(e,48),e.destructible&32&&s(e,48),c}function se(e,u,n,t,i,o,l,f){let{tokenValue:c,token:m}=e;return u&1024&&((m&537079808)===537079808?s(e,116):(m&36864)===36864&&s(e,115)),(m&20480)===20480&&s(e,100),u&2099200&&m===241773&&s(e,30),m===241739&&t&24&&s(e,98),u&4196352&&m===209008&&s(e,96),D(e,u),n&&u2(e,u,n,c,t,i),y(e,u,o,l,f,{type:"Identifier",name:c})}function ae(e,u,n,t,i,o){if(D(e,u),e.token===8456259)return y(e,u,t,i,o,{type:"JSXFragment",openingFragment:Hu(e,u,t,i,o),children:Te(e,u),closingFragment:Ku(e,u,n,e.tokenPos,e.linePos,e.colPos)});let l=null,f=[],c=_u(e,u,n,t,i,o);if(!c.selfClosing){f=Te(e,u),l=zu(e,u,n,e.tokenPos,e.linePos,e.colPos);let m=U2(l.name);U2(c.name)!==m&&s(e,150,m)}return y(e,u,t,i,o,{type:"JSXElement",children:f,openingElement:c,closingElement:l})}function Hu(e,u,n,t,i){return d2(e,u),y(e,u,n,t,i,{type:"JSXOpeningFragment"})}function zu(e,u,n,t,i,o){P(e,u,25);let l=t1(e,u,e.tokenPos,e.linePos,e.colPos);return n?P(e,u,8456259):e.token=d2(e,u),y(e,u,t,i,o,{type:"JSXClosingElement",name:l})}function Ku(e,u,n,t,i,o){return P(e,u,25),P(e,u,8456259),y(e,u,t,i,o,{type:"JSXClosingFragment"})}function Te(e,u){let n=[];for(;e.token!==25;)e.index=e.tokenPos=e.startPos,e.column=e.colPos=e.startColumn,e.line=e.linePos=e.startLine,d2(e,u),n.push($u(e,u,e.tokenPos,e.linePos,e.colPos));return n}function $u(e,u,n,t,i){if(e.token===138)return Wu(e,u,n,t,i);if(e.token===2162700)return l1(e,u,0,0,n,t,i);if(e.token===8456258)return ae(e,u,0,n,t,i);s(e,0)}function Wu(e,u,n,t,i){d2(e,u);let o={type:"JSXText",value:e.tokenValue};return u&512&&(o.raw=e.tokenRaw),y(e,u,n,t,i,o)}function _u(e,u,n,t,i,o){(e.token&143360)!==143360&&(e.token&4096)!==4096&&s(e,0);let l=t1(e,u,e.tokenPos,e.linePos,e.colPos),f=Qu(e,u),c=e.token===8457016;return e.token===8456259?d2(e,u):(P(e,u,8457016),n?P(e,u,8456259):d2(e,u)),y(e,u,t,i,o,{type:"JSXOpeningElement",name:l,attributes:f,selfClosing:c})}function t1(e,u,n,t,i){Y2(e);let o=$2(e,u,n,t,i);if(e.token===21)return o1(e,u,o,n,t,i);for(;q(e,u,67108877);)Y2(e),o=Yu(e,u,o,n,t,i);return o}function Yu(e,u,n,t,i,o){let l=$2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,t,i,o,{type:"JSXMemberExpression",object:n,property:l})}function Qu(e,u){let n=[];for(;e.token!==8457016&&e.token!==8456259&&e.token!==1048576;)n.push(ru(e,u,e.tokenPos,e.linePos,e.colPos));return n}function Zu(e,u,n,t,i){D(e,u),P(e,u,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,t,i,{type:"JSXSpreadAttribute",argument:o})}function ru(e,u,n,t,i){if(e.token===2162700)return Zu(e,u,n,t,i);Y2(e);let o=null,l=$2(e,u,n,t,i);if(e.token===21&&(l=o1(e,u,l,n,t,i)),e.token===1077936157){let f=z1(e,u),{tokenPos:c,linePos:m,colPos:g}=e;switch(f){case 134283267:o=X(e,u);break;case 8456258:o=ae(e,u,1,c,m,g);break;case 2162700:o=l1(e,u,1,1,c,m,g);break;default:s(e,149)}}return y(e,u,n,t,i,{type:"JSXAttribute",value:o,name:l})}function o1(e,u,n,t,i,o){P(e,u,21);let l=$2(e,u,e.tokenPos,e.linePos,e.colPos);return y(e,u,t,i,o,{type:"JSXNamespacedName",namespace:n,name:l})}function l1(e,u,n,t,i,o,l){D(e,u|32768);let{tokenPos:f,linePos:c,colPos:m}=e;if(e.token===14)return Gu(e,u,i,o,l);let g=null;return e.token===1074790415?(t&&s(e,152),g=xu(e,u,e.startPos,e.startLine,e.startColumn)):g=R(e,u,1,0,f,c,m),n?P(e,u,1074790415):d2(e,u),y(e,u,i,o,l,{type:"JSXExpressionContainer",expression:g})}function Gu(e,u,n,t,i){P(e,u,14);let o=R(e,u,1,0,e.tokenPos,e.linePos,e.colPos);return P(e,u,1074790415),y(e,u,n,t,i,{type:"JSXSpreadChild",expression:o})}function xu(e,u,n,t,i){return e.startPos=e.tokenPos,e.startLine=e.linePos,e.startColumn=e.colPos,y(e,u,n,t,i,{type:"JSXEmptyExpression"})}function $2(e,u,n,t,i){let{tokenValue:o}=e;return D(e,u),y(e,u,n,t,i,{type:"JSXIdentifier",name:o})}function f1(e,u){return r1(e,u,0)}function pu(e,u){let n=new SyntaxError(e+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(n,u)}var c1=pu;function e0(e){let u=[];for(let n of e)try{return n()}catch(t){u.push(t)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var d1=e0;var u0=(e,u,n)=>{if(!(e&&u==null))return Array.isArray(u)||typeof u=="string"?u[n<0?u.length+n:n]:u.at(n)},me=u0;function n0(e){return Array.isArray(e)&&e.length>0}var s1=n0;function $(e){var t,i,o;let u=((t=e.range)==null?void 0:t[0])??e.start,n=(o=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:o[0];return n?Math.min($(n),u):u}function e2(e){var u;return((u=e.range)==null?void 0:u[1])??e.end}function i0(e){let u=new Set(e);return n=>u.has(n==null?void 0:n.type)}var a1=i0;var t0=a1(["Block","CommentBlock","MultiLine"]),v2=t0;function o0(e){let u=`*${e.value}*`.split(` -`);return u.length>1&&u.every(n=>n.trimStart()[0]==="*")}var ge=o0;function l0(e){return v2(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var m1=l0;var T2=null;function F2(e){if(T2!==null&&typeof T2.property){let u=T2;return T2=F2.prototype=null,u}return T2=F2.prototype=e??Object.create(null),new F2}var f0=10;for(let e=0;e<=f0;e++)F2();function ye(e){return F2(e)}function c0(e,u="type"){ye(e);function n(t){let i=t[u],o=e[i];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:t});return o}return n}var g1=c0;var y1={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var d0=g1(y1),k1=d0;function ke(e,u){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let t=0;t{var l;(l=o.leadingComments)!=null&&l.some(m1)&&i.add($(o))}),e=W2(e,o=>{if(o.type==="ParenthesizedExpression"){let{expression:l}=o;if(l.type==="TypeCastExpression")return l.range=[...o.range],l;let f=$(o);if(!i.has(f))return l.extra={...l.extra,parenthesized:!0},l}})}if(e=W2(e,i=>{var o;switch(i.type){case"LogicalExpression":if(A1(i))return Ae(i);break;case"VariableDeclaration":{let l=me(!1,i.declarations,-1);l!=null&&l.init&&t[e2(l)]!==";"&&(i.range=[$(i),e2(l)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let l=$(i);i.name={type:"Identifier",name:i.name,range:[l,l+i.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(n==="meriyah"&&((o=i.exported)==null?void 0:o.type)==="Identifier"){let{exported:l}=i,f=t.slice($(l),e2(l));(f.startsWith('"')||f.startsWith("'"))&&(i.exported={...i.exported,type:"Literal",value:i.exported.name,raw:f})}break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),s1(e.comments)){let i=me(!1,e.comments,-1);for(let o=e.comments.length-2;o>=0;o--){let l=e.comments[o];e2(l)===$(i)&&v2(l)&&v2(i)&&ge(l)&&ge(i)&&(e.comments.splice(o+1,1),l.value+="*//*"+i.value,l.range=[$(l),e2(i)]),i=l}}return e.type==="Program"&&(e.range=[0,t.length]),e}function A1(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Ae(e){return A1(e)?Ae({type:"LogicalExpression",operator:e.operator,left:Ae({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[$(e.left),e2(e.right.left)]}),right:e.right.right,range:[$(e),e2(e)]}):e}var h1=s0;var a0=(e,u,n,t)=>{if(!(e&&u==null))return u.replaceAll?u.replaceAll(n,t):n.global?u.replace(n,t):u.split(n).join(t)},b2=a0;var m0=/\*\/$/,g0=/^\/\*\*?/,y0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,k0=/(^|\s+)\/\/([^\n\r]*)/g,D1=/^(\r?\n)+/,A0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,b1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,h0=/(\r?\n|^) *\* ?/g,D0=[];function C1(e){let u=e.match(y0);return u?u[0].trimStart():""}function P1(e){let u=` -`;e=b2(!1,e.replace(g0,"").replace(m0,""),h0,"$1");let n="";for(;n!==e;)n=e,e=b2(!1,e,A0,`${u}$1 $2${u}`);e=e.replace(D1,"").trimEnd();let t=Object.create(null),i=b2(!1,e,b1,"").replace(D1,"").trimEnd(),o;for(;o=b1.exec(e);){let l=b2(!1,o[2],k0,"");if(typeof t[o[1]]=="string"||Array.isArray(t[o[1]])){let f=t[o[1]];t[o[1]]=[...D0,...Array.isArray(f)?f:[f],l]}else t[o[1]]=l}return{comments:i,pragmas:t}}function b0(e){if(!e.startsWith("#!"))return"";let u=e.indexOf(` -`);return u===-1?e:e.slice(0,u)}var E1=b0;function C0(e){let u=E1(e);u&&(e=e.slice(u.length+1));let n=C1(e),{pragmas:t,comments:i}=P1(n);return{shebang:u,text:e,pragmas:t,comments:i}}function w1(e){let{pragmas:u}=C0(e);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function P0(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:w1,locStart:$,locEnd:e2,...e}}var S1=P0;function E0(e){let{filepath:u}=e;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var B1=E0;var w0={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function S0(e,u){let n=[],t=[],i=f1(e,{...w0,module:u==="module",onComment:n,onToken:t});return i.comments=n,i.tokens=t,i}function B0(e){var o;let{message:u,line:n,column:t}=e,i=(o=u.match(/^\[(?\d+):(?\d+)\]: (?.*)$/u))==null?void 0:o.groups;return i&&(u=i.message,typeof n!="number"&&(n=Number(i.line),t=Number(i.column))),typeof n!="number"?e:c1(u,{loc:{start:{line:n,column:t}},cause:e})}function v0(e,u={}){let n=B1(u),t=(n?[n]:["module","script"]).map(o=>()=>S0(e,o)),i;try{i=d1(t)}catch({errors:[o]}){throw B0(o)}return h1(i,{parser:"meriyah",text:e})}var T0=S1(v0);var Fn=De;export{Fn as default,he as parsers}; +var Ne=Object.defineProperty;var In=(n,e)=>{for(var u in e)Ne(n,u,{get:e[u],enumerable:!0})};var Bn={};In(Bn,{parsers:()=>wn});var wn={};In(wn,{meriyah:()=>K1});var Ve=(n,e,u,t)=>{if(!(n&&e==null))return e.replaceAll?e.replaceAll(u,t):u.global?e.replace(u,t):e.split(u).join(t)},i2=Ve;var Oe={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate, found %0",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'},m2=class extends SyntaxError{constructor(e,u,t,o,i,l,f,...d){let g="["+u+":"+t+"-"+i+":"+l+"]: "+Oe[f].replace(/%(\d+)/g,(m,y)=>d[y]);super(`${g}`),this.start=e,this.end=o,this.range=[e,o],this.loc={start:{line:u,column:t},end:{line:i,column:l}},this.description=g}};function c(n,e,...u){throw new m2(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,e,...u)}function z2(n){throw new m2(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,n.type,...n.params)}function $(n,e,u,t,o,i,l,...f){throw new m2(n,e,u,t,o,i,l,...f)}function h2(n,e,u,t,o,i,l){throw new m2(n,e,u,t,o,i,l)}function Re(n){return(On[(n>>>5)+0]>>>n&31&1)!==0}function Vn(n){return(On[(n>>>5)+34816]>>>n&31&1)!==0}var On=((n,e)=>{let u=new Uint32Array(104448),t=0,o=0;for(;t<3822;){let i=n[t++];if(i<0)o-=i;else{let l=n[t++];i&2&&(l=e[l]),i&1?u.fill(l,o,o+=n[t++]):u[o++]=l}}return u})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,63,2,64,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,65,2,0,0,4294836735,0,3221225471,0,4294901942,2,66,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,18,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,60,2,7,2,6,0,4286611199,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,2,203,2,3,0,4093640191,0,660618719,0,65487,0,4294828015,0,4092591615,0,1616920031,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,71,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,72,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,10,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2151677951,2,29,2,9,0,909311,3,0,2,0,814743551,2,49,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,110,2,51,2,0,2,81,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,17,-1,3,0,2,2,53,0,1046528,3,0,3,2,9,2,0,2,54,0,4294960127,2,10,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,2,210,2,55,0,1048577,2,86,2,14,-1,2,14,0,131042,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,90,2,2,0,-16,2,91,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,2,133,2,0,0,3220242431,3,0,3,2,19,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,2,0,0,4351,2,0,2,9,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,9,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,101,2,102,2,22,2,23,3,0,3,0,67057663,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,2,25,0,1638399,2,183,2,109,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-3,2,163,-4,2,20,2,0,2,36,0,1,2,0,2,67,2,6,2,12,2,10,2,0,2,115,-1,3,0,4,2,10,2,23,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,48,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,57,2,167,2,20,2,43,2,36,2,18,2,37,2,18,2,126,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,144,2,0,2,58,2,56,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,61,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,134,0,4190109695,2,52,-2,2,135,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,68,2,18,2,0,2,42,-6,2,0,2,45,2,59,2,44,2,45,2,46,2,47,0,8388351,-2,2,136,0,3028287487,2,48,2,138,0,33259519,2,49,-9,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-4,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,196635,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,2,205,-4,2,57,-13,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,0,4294954999,2,0,-16,2,0,2,92,2,0,0,2105343,0,4160749584,2,177,-34,2,8,2,154,-6,0,4194303871,0,4294903771,2,0,2,60,2,100,-3,2,0,0,1073684479,0,17407,-9,2,18,2,17,2,0,2,32,-14,2,18,2,32,-6,2,18,2,12,-15,2,155,3,0,6,0,8323103,-1,3,0,2,2,61,-37,2,62,2,156,2,157,2,158,2,159,2,160,-105,2,26,-32,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-22250,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,63,2,64,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,65,2,0,2,34,-1,2,18,2,66,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,67,3,0,2,0,131135,2,98,0,70256639,0,71303167,0,272,2,42,2,6,0,32511,2,0,2,49,-1,2,99,2,68,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,70,2,69,0,33554435,2,131,2,70,2,164,0,131075,0,3594373096,0,67094296,2,69,-1,0,4294828e3,0,603979263,0,654311424,0,3,0,4294828001,0,602930687,2,171,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,71,2,38,-1,2,4,0,917503,2,38,-1,2,72,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,73,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,74,2,0,2,75,2,76,2,77,2,0,2,78,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,79,2,5,3,0,2,2,80,0,2147745791,3,19,2,0,122879,2,0,2,9,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,18,2,51,2,0,2,81,2,49,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,9,0,8160,-1,2,127,0,4227907585,2,0,2,37,2,0,2,50,2,184,2,10,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,82,2,10,2,0,2,83,2,84,2,85,-3,2,86,2,14,-3,2,87,2,88,2,89,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,90,2,-17,2,91,0,524157950,2,4,2,0,2,92,2,4,2,0,2,22,2,28,2,16,3,0,2,2,17,2,0,-1,2,18,-16,3,0,206,-2,3,0,692,2,73,-1,2,18,2,10,3,0,8,2,93,0,3072,2,0,0,2147516415,2,10,3,0,2,2,25,2,94,2,95,3,0,2,2,96,2,0,2,97,2,46,0,4294965179,0,7,2,0,2,9,2,95,2,9,-1,0,1761345536,2,98,0,4294901823,2,38,2,20,2,99,2,35,2,100,0,2080440287,2,0,2,34,2,153,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,101,2,102,2,22,2,23,3,0,3,0,7,3,0,349,2,103,2,104,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,105,2,106,3,0,2,2,19,2,107,3,0,10,2,10,2,18,2,0,2,47,2,0,2,31,2,108,-3,2,109,3,0,3,2,20,-1,3,5,2,2,110,2,0,2,8,2,111,-1,2,112,2,113,2,114,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,67,2,6,2,30,2,10,2,0,2,115,-1,3,0,4,2,10,2,18,2,116,2,7,2,0,2,117,2,0,2,118,2,119,2,120,2,0,2,9,3,0,9,2,21,2,30,2,31,2,121,2,122,-2,2,123,2,124,2,30,2,21,2,8,-2,2,125,2,30,2,32,-2,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,126,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,98,0,4294934591,2,37,-7,2,0,0,197631,2,57,-1,2,20,2,43,2,37,2,18,0,3,2,18,2,126,2,21,2,127,2,54,-1,0,2490368,2,127,2,25,2,18,2,34,2,127,2,38,0,4294901904,0,4718591,2,127,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,70,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,17,2,192,-1,2,0,2,25,2,209,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,133,-3,3,0,2,2,55,2,134,0,2147549183,0,2,-2,2,135,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,18,2,0,2,42,-6,2,0,0,1,2,59,2,17,0,1,2,46,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,-10,2,35,0,4294836212,2,9,-3,2,69,-2,3,0,28,2,32,-3,3,0,3,2,17,3,0,6,2,50,-81,2,18,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,10,-55,3,0,17,2,42,2,8,2,18,2,0,2,8,2,18,2,60,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,73,-6,3,0,2,-4,3,0,2,0,67583,-1,2,107,-2,0,11,3,0,191,2,54,3,0,38,2,30,2,55,2,34,-278,2,140,3,0,9,2,141,2,142,2,56,3,0,11,2,7,-72,3,0,3,2,143,2,144,-187,3,0,2,2,58,2,0,2,145,2,146,2,62,2,0,2,147,2,148,2,149,3,0,10,2,150,2,151,2,22,3,58,2,3,152,2,3,59,2,2,153,-57,2,8,2,154,-7,2,18,2,0,2,60,-4,2,0,0,1065361407,0,16384,-9,2,18,2,60,2,0,2,133,-14,2,18,2,133,-6,2,18,0,81919,-15,2,155,3,0,6,2,126,-1,3,0,2,0,2063,-37,2,62,2,156,2,157,2,158,2,159,2,160,-138,3,0,1335,-1,3,0,129,2,32,3,0,6,2,10,3,0,180,2,161,3,0,233,2,162,3,0,18,2,10,-77,3,0,16,2,10,-47,3,0,154,2,6,3,0,130,2,25,-28386,2,0,0,1,-1,2,55,2,0,0,8193,-21,2,201,0,10255,0,4,-11,2,69,2,182,-1,0,71680,-1,2,174,0,4292900864,0,268435519,-5,2,163,-1,2,173,-1,0,6144,-2,2,46,-1,2,168,-1,0,2147532800,2,164,2,170,0,8355840,-2,0,4,-4,2,198,0,205128192,0,1333757536,0,2147483696,0,423953,0,747766272,0,2717763192,0,4286578751,0,278545,2,165,0,4294886464,0,33292336,0,417809,2,165,0,1327482464,0,4278190128,0,700594195,0,1006647527,0,4286497336,0,4160749631,2,166,0,201327104,0,3634348576,0,8323120,2,166,0,202375680,0,2678047264,0,4293984304,2,166,-1,0,983584,0,48,0,58720273,0,3489923072,0,10517376,0,4293066815,0,1,2,213,2,167,2,0,0,2089,0,3221225552,0,201359520,2,0,-2,0,256,0,122880,0,16777216,2,163,0,4160757760,2,0,-6,2,179,-11,0,3263218176,-1,0,49664,0,2160197632,0,8388802,-1,0,12713984,-1,2,168,2,186,2,187,-2,2,175,-20,0,3758096385,-2,2,169,2,195,2,94,2,180,0,4294057984,-2,2,176,2,172,0,4227874816,-2,2,169,-1,2,170,-1,2,181,2,55,0,4026593280,0,14,0,4292919296,-1,2,178,0,939588608,-1,0,805306368,-1,2,55,2,171,2,172,2,173,2,211,2,0,-2,0,8192,-4,0,267386880,-1,0,117440512,0,7168,-1,2,170,2,168,2,174,2,188,-16,2,175,-1,0,1426112704,2,176,-1,2,196,0,271581216,0,2149777408,2,25,2,174,2,55,0,851967,2,189,-1,2,177,2,190,-4,2,178,-20,2,98,2,208,-56,0,3145728,2,191,-10,0,32505856,-1,2,179,-1,0,2147385088,2,94,1,2155905152,2,-3,2,176,2,0,0,67108864,-2,2,180,-6,2,181,2,25,0,1,-1,0,1,-1,2,182,-3,2,126,2,69,-2,2,100,-2,0,32704,2,55,-915,2,183,-1,2,207,-10,2,194,-5,2,185,-6,0,3759456256,2,19,-1,2,184,-1,2,185,-2,0,4227874752,-3,0,2146435072,2,186,-2,0,1006649344,2,55,-1,2,94,0,201375744,-3,0,134217720,2,94,0,4286677377,0,32896,-1,2,178,-3,0,4227907584,-349,0,65520,0,1920,2,167,3,0,264,-11,2,173,-2,2,187,2,0,0,520617856,0,2692743168,0,36,-3,0,524280,-13,2,193,-1,0,4294934272,2,25,2,187,-1,2,215,0,2158720,-3,2,186,0,1,-4,2,55,0,3808625411,0,3489628288,0,4096,0,1207959680,0,3221274624,2,0,-3,2,188,0,120,0,7340032,-2,2,189,2,4,2,25,2,176,3,0,4,2,186,-1,2,190,2,167,-1,0,8176,2,170,2,188,0,1073741824,-1,0,4290773232,2,0,-4,2,176,2,197,0,15728640,2,167,-1,2,174,-1,0,134250480,0,4720640,0,3825467396,-1,2,180,-9,2,94,2,181,0,4294967040,2,137,0,4160880640,3,0,2,0,704,0,1849688064,2,191,-1,2,55,0,4294901887,2,0,0,130547712,0,1879048192,2,212,3,0,2,-1,2,192,2,193,-1,0,17829776,0,2025848832,0,4261477888,-2,2,0,-1,0,4286580608,-1,0,29360128,2,200,0,16252928,0,3791388672,2,130,3,0,2,-2,2,206,2,0,-1,2,107,-1,0,66584576,-1,2,199,-1,0,448,0,4294918080,3,0,6,2,55,-1,0,4294755328,0,4294967267,2,7,-1,2,174,2,187,2,25,2,98,2,25,2,194,2,94,-2,0,245760,2,195,-1,2,163,2,202,0,4227923456,-1,2,196,2,174,2,94,-3,0,4292870145,0,262144,-1,2,95,2,0,0,1073758848,2,197,-1,0,4227921920,2,198,0,68289024,0,528402016,0,4292927536,0,46080,2,191,0,4265609306,0,4294967289,-2,0,268435456,2,95,-2,2,199,3,0,5,-1,2,200,2,176,2,0,-2,0,4227923936,2,67,-1,2,187,2,197,2,99,2,168,2,178,2,204,3,0,5,-1,2,167,3,0,3,-2,0,2146959360,0,9440640,0,104857600,0,4227923840,3,0,2,0,768,2,201,2,28,-2,2,174,-2,2,202,-1,2,169,2,98,3,0,5,-1,0,4227923964,0,512,0,8388608,2,203,2,183,2,193,0,4286578944,3,0,2,0,1152,0,1266679808,2,199,0,576,0,4261707776,2,98,3,0,9,2,169,0,131072,0,939524096,2,188,3,0,2,2,16,-1,0,2147221504,-28,2,187,3,0,3,-3,0,4292902912,-6,2,99,3,0,81,2,25,-2,2,107,-33,2,18,2,181,-124,2,188,-18,2,204,3,0,213,-1,2,187,3,0,54,-17,2,169,2,55,2,205,-1,2,55,2,197,0,4290822144,-2,0,67174336,0,520093700,2,18,3,0,13,-1,2,187,3,0,6,-2,2,188,3,0,3,-2,0,30720,-1,0,32512,3,0,2,0,4294770656,-191,2,185,-38,2,181,2,8,2,206,3,0,278,0,2417033215,-9,0,4294705144,0,4292411391,0,65295,-11,2,167,3,0,72,-3,0,3758159872,0,201391616,3,0,123,-7,2,187,-13,2,180,3,0,2,-1,2,173,2,207,-3,2,99,2,0,-7,2,181,-1,0,384,-1,0,133693440,-3,2,208,-2,2,110,3,0,3,3,180,2,-2,2,94,2,169,3,0,4,-2,2,196,-1,2,163,0,335552923,2,209,-1,0,538974272,0,2214592512,0,132e3,-10,0,192,-8,2,210,-21,0,134213632,2,162,3,0,34,2,55,0,4294965279,3,0,6,0,100663424,0,63524,-1,2,214,2,152,3,0,3,-1,0,3221282816,0,4294917120,3,0,9,2,25,2,211,-1,2,212,3,0,14,2,25,2,187,3,0,6,2,25,2,213,3,0,15,0,2147520640,-6,0,4286578784,2,0,-2,0,1006694400,3,0,24,2,36,-1,0,4292870144,3,0,2,0,1,2,176,3,0,6,2,209,0,4110942569,0,1432950139,0,2701658217,0,4026532864,0,4026532881,2,0,2,47,3,0,8,-1,2,178,-2,2,180,0,98304,0,65537,2,181,-5,2,214,2,0,2,37,2,202,2,167,0,4294770176,2,110,3,0,4,-30,2,192,0,3758153728,-3,0,125829120,-2,2,187,0,4294897664,2,178,-1,2,199,-1,2,174,0,4026580992,2,95,2,0,-10,2,180,0,3758145536,0,31744,-1,0,1610628992,0,4261477376,-4,2,215,-2,2,187,3,0,32,-1335,2,0,-129,2,187,-6,2,176,-180,0,65532,-233,2,177,-18,2,176,3,0,77,-16,2,176,3,0,47,-154,2,170,-130,2,18,3,0,22250,-7,2,18,3,0,6128],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1048575,1073741823,3892314111,134217727,1061158911,536805376,4294910143,4294901759,32767,4294901760,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294705152,4294770687,67043583,1023,15,2047999,67043343,67051519,16777215,2147483648,4294902e3,28,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,535511039,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,4294967288,4294705151,3221208447,4294902271,4294549472,4294921215,4095,4285526655,4294966527,4294966143,64,4294966719,3774873592,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901763,4294901761,536870912,2952790016,202506752,139264,4026531840,402653184,4261412864,63488,1610612736,4227922944,49152,65280,3233808384,3221225472,65534,61440,57152,4293918720,4290772992,25165824,57344,4227915776,4278190080,3758096384,4227858432,4160749568,3758129152,4294836224,4194304,251658240,196608,4294963200,2143289344,2097152,64512,417808,4227923712,12582912,50331648,65528,65472,4294967168,15360,4294966784,65408,4294965248,16,12288,4294934528,2080374784,2013265920,4294950912,524288]);function A(n){return n.column++,n.currentChar=n.source.charCodeAt(++n.index)}function un(n){let e=n.currentChar;if((e&64512)!==55296)return 0;let u=n.source.charCodeAt(n.index+1);return(u&64512)!==56320?0:65536+((e&1023)<<10)+(u&1023)}function tn(n,e){n.currentChar=n.source.charCodeAt(++n.index),n.flags|=1,e&4||(n.column=0,n.line++)}function k2(n){n.flags|=1,n.currentChar=n.source.charCodeAt(++n.index),n.column=0,n.line++}function Ue(n){return n===160||n===65279||n===133||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===8201||n===65519}function W(n){return n<65?n-48:n-65+10&15}function Me(n){switch(n){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return(n&143360)===143360?"Identifier":(n&4096)===4096?"Keyword":"Punctuator"}}var N=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Rn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function M2(n){return n<=127?Je[n]>0:Vn(n)}function V2(n){return n<=127?Rn[n]>0:Re(n)||n===8204||n===8205}var Un=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function je(n){let{source:e}=n;n.currentChar===35&&e.charCodeAt(n.index+1)===33&&(A(n),A(n),on(n,e,0,4,n.tokenIndex,n.tokenLine,n.tokenColumn))}function Ln(n,e,u,t,o,i,l,f){return t&512&&c(n,0),on(n,e,u,o,i,l,f)}function on(n,e,u,t,o,i,l){let{index:f}=n;for(n.tokenIndex=n.index,n.tokenLine=n.line,n.tokenColumn=n.column;n.index=n.source.length)return c(n,34)}let o=n.index-1,i=X.Empty,l=n.currentChar,{index:f}=n;for(;V2(l);){switch(l){case 103:i&X.Global&&c(n,36,"g"),i|=X.Global;break;case 105:i&X.IgnoreCase&&c(n,36,"i"),i|=X.IgnoreCase;break;case 109:i&X.Multiline&&c(n,36,"m"),i|=X.Multiline;break;case 117:i&X.Unicode&&c(n,36,"u"),i&X.UnicodeSets&&c(n,36,"vu"),i|=X.Unicode;break;case 118:i&X.Unicode&&c(n,36,"uv"),i&X.UnicodeSets&&c(n,36,"v"),i|=X.UnicodeSets;break;case 121:i&X.Sticky&&c(n,36,"y"),i|=X.Sticky;break;case 115:i&X.DotAll&&c(n,36,"s"),i|=X.DotAll;break;case 100:i&X.Indices&&c(n,36,"d"),i|=X.Indices;break;default:c(n,35)}l=A(n)}let d=n.source.slice(f,n.index),g=n.source.slice(u,o);return n.tokenRegExp={pattern:g,flags:d},e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),n.tokenValue=ze(n,g,d),65540}function ze(n,e,u){try{return new RegExp(e,u)}catch{try{return new RegExp(e,u),null}catch{c(n,34)}}}function Ke(n,e,u){let{index:t}=n,o="",i=A(n),l=n.index;for(;!(N[i]&8);){if(i===u)return o+=n.source.slice(l,n.index),A(n),e&128&&(n.tokenRaw=n.source.slice(t,n.index)),n.tokenValue=o,134283267;if((i&8)===8&&i===92){if(o+=n.source.slice(l,n.index),i=A(n),i<127||i===8232||i===8233){let f=Mn(n,e,i);f>=0?o+=String.fromCodePoint(f):Jn(n,f,0)}else o+=String.fromCodePoint(i);l=n.index+1}n.index>=n.end&&c(n,16),i=A(n)}c(n,16)}function Mn(n,e,u,t=0){switch(u){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(n.index1114111)return-5;return n.currentChar<1||n.currentChar!==125?-4:i}else{if(!(N[o]&64))return-4;let i=n.source.charCodeAt(n.index+1);if(!(N[i]&64))return-4;let l=n.source.charCodeAt(n.index+2);if(!(N[l]&64))return-4;let f=n.source.charCodeAt(n.index+3);return N[f]&64?(n.index+=3,n.column+=3,n.currentChar=n.source.charCodeAt(n.index),W(o)<<12|W(i)<<8|W(l)<<4|W(f)):-4}}case 56:case 57:if(t||!(e&64)||e&256)return-3;n.flags|=4096;default:return u}}function Jn(n,e,u){switch(e){case-1:return;case-2:c(n,u?2:1);case-3:c(n,u?3:14);case-4:c(n,7);case-5:c(n,104)}}function jn(n,e){let{index:u}=n,t=67174409,o="",i=A(n);for(;i!==96;){if(i===36&&n.source.charCodeAt(n.index+1)===123){A(n),t=67174408;break}else if(i===92)if(i=A(n),i>126)o+=String.fromCodePoint(i);else{let{index:l,line:f,column:d}=n,g=Mn(n,e|256,i,1);if(g>=0)o+=String.fromCodePoint(g);else if(g!==-1&&e&16384){n.index=l,n.line=f,n.column=d,o=null,i=$e(n,i),i<0&&(t=67174408);break}else Jn(n,g,1)}else n.index=n.end&&c(n,17),i=A(n)}return A(n),n.tokenValue=o,n.tokenRaw=n.source.slice(u+1,n.index-(t===67174409?1:2)),t}function $e(n,e){for(;e!==96;){switch(e){case 36:{let u=n.index+1;if(u=n.end&&c(n,17),e=A(n)}return e}function We(n,e){return n.index>=n.end&&c(n,0),n.index--,n.column--,jn(n,e)}function Fn(n,e,u){let t=n.currentChar,o=0,i=9,l=u&64?0:1,f=0,d=0;if(u&64)o="."+v2(n,t),t=n.currentChar,t===110&&c(n,12);else{if(t===48)if(t=A(n),(t|32)===120){for(u=136,t=A(n);N[t]&4160;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*16+W(t),f++,t=A(n)}(f===0||!d)&&c(n,f===0?21:153)}else if((t|32)===111){for(u=132,t=A(n);N[t]&4128;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*8+(t-48),f++,t=A(n)}(f===0||!d)&&c(n,f===0?0:153)}else if((t|32)===98){for(u=130,t=A(n);N[t]&4224;){if(t===95){d||c(n,152),d=0,t=A(n);continue}d=1,o=o*2+(t-48),f++,t=A(n)}(f===0||!d)&&c(n,f===0?0:153)}else if(N[t]&32)for(e&256&&c(n,1),u=1;N[t]&16;){if(N[t]&512){u=32,l=0;break}o=o*8+(t-48),t=A(n)}else N[t]&512?(e&256&&c(n,1),n.flags|=64,u=32):t===95&&c(n,0);if(u&48){if(l){for(;i>=0&&N[t]&4112;){if(t===95){t=A(n),(t===95||u&32)&&h2(n.index,n.line,n.column,n.index+1,n.line,n.column,152),d=1;continue}d=0,o=10*o+(t-48),t=A(n),--i}if(d&&h2(n.index,n.line,n.column,n.index+1,n.line,n.column,153),i>=0&&!M2(t)&&t!==46)return n.tokenValue=o,e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),134283266}o+=v2(n,t),t=n.currentChar,t===46&&(A(n)===95&&c(n,0),u=64,o+="."+v2(n,n.currentChar),t=n.currentChar)}}let g=n.index,m=0;if(t===110&&u&128)m=1,t=A(n);else if((t|32)===101){t=A(n),N[t]&256&&(t=A(n));let{index:y}=n;N[t]&16||c(n,11),o+=n.source.substring(g,y)+v2(n,t),t=n.currentChar}return(n.index","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],Xn=Object.create(null,{this:{value:86111},function:{value:86104},if:{value:20569},return:{value:20572},var:{value:86088},else:{value:20563},for:{value:20567},new:{value:86107},in:{value:8673330},typeof:{value:16863275},while:{value:20578},case:{value:20556},break:{value:20555},try:{value:20577},catch:{value:20557},delete:{value:16863276},throw:{value:86112},switch:{value:86110},continue:{value:20559},default:{value:20561},instanceof:{value:8411187},do:{value:20562},void:{value:16863277},finally:{value:20566},async:{value:209005},await:{value:209006},class:{value:86094},const:{value:86090},constructor:{value:12399},debugger:{value:20560},export:{value:20564},extends:{value:20565},false:{value:86021},from:{value:12403},get:{value:12400},implements:{value:36964},import:{value:86106},interface:{value:36965},let:{value:241737},null:{value:86023},of:{value:274548},package:{value:36966},private:{value:36967},protected:{value:36968},public:{value:36969},set:{value:12401},static:{value:36970},super:{value:86109},true:{value:86022},with:{value:20579},yield:{value:241771},enum:{value:86133},eval:{value:537079926},as:{value:77932},arguments:{value:537079927},target:{value:209029},meta:{value:209030},accessor:{value:12402}});function qn(n,e,u){for(;Rn[A(n)];);return n.tokenValue=n.source.slice(n.tokenIndex,n.index),n.currentChar!==92&&n.currentChar<=126?Xn[n.tokenValue]||208897:ln(n,e,0,u)}function _e(n,e){let u=Hn(n);return M2(u)||c(n,5),n.tokenValue=String.fromCodePoint(u),ln(n,e,1,N[u]&4)}function ln(n,e,u,t){let o=n.index;for(;n.index0)V2(l)||c(n,20,String.fromCodePoint(l)),n.currentChar=l,n.index++,n.column++;else if(!V2(n.currentChar))break;A(n)}n.index<=n.end&&(n.tokenValue+=n.source.slice(o,n.index));let{length:i}=n.tokenValue;if(t&&i>=2&&i<=11){let l=Xn[n.tokenValue];return l===void 0?208897|(u?-2147483648:0):u?l===209006?e&524800?-2147483528:l|-2147483648:e&256?l===36970||(l&36864)===36864?-2147483527:(l&20480)===20480?e&67108864&&!(e&2048)?l|-2147483648:-2147483528:-2147274630:e&67108864&&!(e&2048)&&(l&20480)===20480?l|-2147483648:l===241771?e&67108864?-2147274630:e&262144?-2147483528:l|-2147483648:l===209005?-2147274630:(l&36864)===36864?l|12288|-2147483648:-2147483528:l}return 208897|(u?-2147483648:0)}function Ye(n){let e=A(n);if(e===92)return 130;let u=un(n);return u&&(e=u),M2(e)||c(n,96),130}function Hn(n){return n.source.charCodeAt(n.index+1)!==117&&c(n,5),n.currentChar=n.source.charCodeAt(n.index+=2),Qe(n)}function Qe(n){let e=0,u=n.currentChar;if(u===123){let l=n.index-2;for(;N[A(n)]&64;)e=e<<4|W(n.currentChar),e>1114111&&h2(l,n.line,n.column,n.index,n.line,n.column,104);return n.currentChar!==125&&h2(l,n.line,n.column,n.index,n.line,n.column,7),A(n),e}N[u]&64||c(n,7);let t=n.source.charCodeAt(n.index+1);N[t]&64||c(n,7);let o=n.source.charCodeAt(n.index+2);N[o]&64||c(n,7);let i=n.source.charCodeAt(n.index+3);return N[i]&64||c(n,7),e=W(u)<<12|W(t)<<8|W(o)<<4|W(i),n.currentChar=n.source.charCodeAt(n.index+=4),e}var Ze=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function b(n,e){n.flags=(n.flags|1)^1,n.startIndex=n.index,n.startColumn=n.column,n.startLine=n.line,n.setToken(zn(n,e,0))}function zn(n,e,u){let t=n.index===0,{source:o}=n,i=n.index,l=n.line,f=n.column;for(;n.index=n.end)return 8391476;let m=n.currentChar;return m===61?(A(n),4194338):m!==42?8391476:A(n)!==61?8391735:(A(n),4194335)}case 8389959:return A(n)!==61?8389959:(A(n),4194341);case 25233968:{A(n);let m=n.currentChar;return m===43?(A(n),33619993):m===61?(A(n),4194336):25233968}case 25233969:{A(n);let m=n.currentChar;if(m===45){if(A(n),(u&1||t)&&n.currentChar===62){e&64||c(n,112),A(n),u=Ln(n,o,u,e,3,i,l,f),i=n.tokenIndex,l=n.tokenLine,f=n.tokenColumn;continue}return 33619994}return m===61?(A(n),4194337):25233969}case 8457014:{if(A(n),n.index=48&&m<=57)return Fn(n,e,80);if(m===46){let y=n.index+1;if(y=48&&m<=57)))return A(n),67108990}return 22}}}else{if((d^8232)<=1){u=u&-5|1,k2(n);continue}let g=un(n);if(g>0&&(d=g),Vn(d))return n.tokenValue="",ln(n,e,0,0);if(Ue(d)){A(n);continue}c(n,20,String.fromCodePoint(d))}}return 1048576}function Ge(n,e){return n.startIndex=n.tokenIndex=n.index,n.startColumn=n.tokenColumn=n.column,n.startLine=n.tokenLine=n.line,n.setToken(N[n.currentChar]&8192?xe(n,e):zn(n,e,0)),n.getToken()}function xe(n,e){let u=n.currentChar,t=A(n),o=n.index;for(;t!==u;)n.index>=n.end&&c(n,16),t=A(n);return t!==u&&c(n,16),n.tokenValue=n.source.slice(o,n.index),A(n),e&128&&(n.tokenRaw=n.source.slice(n.tokenIndex,n.index)),134283267}function w2(n,e){if(n.startIndex=n.tokenIndex=n.index,n.startColumn=n.tokenColumn=n.column,n.startLine=n.tokenLine=n.line,n.index>=n.end){n.setToken(1048576);return}if(n.currentChar===60){A(n),n.setToken(8456256);return}if(n.currentChar===123){A(n),n.setToken(2162700);return}let u=0;for(;n.index1&&i&32&&n.getToken()&262144&&c(n,61,V[n.getToken()&255]),f}function Pn(n,e,u,t,o,i){let{tokenIndex:l,tokenLine:f,tokenColumn:d}=n,g=n.getToken(),m=null,y=ge(n,e,u,t,o,i,l,f,d);return n.getToken()===1077936155?(b(n,e|8192),m=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),(i&32||!(g&2097152))&&(n.getToken()===274548||n.getToken()===8673330&&(g&2097152||!(o&4)||e&256))&&$(l,f,d,n.index,n.line,n.column,60,n.getToken()===274548?"of":"in")):(o&16||(g&2097152)>0)&&(n.getToken()&262144)!==262144&&c(n,59,o&16?"const":"destructuring"),s(n,e,l,f,d,{type:"VariableDeclarator",id:y,init:m})}function qu(n,e,u,t,o,i,l,f){b(n,e);let d=((e&524288)>0||(e&512)>0&&(e&2048)>0)&&P(n,e,209006);C(n,e|8192,67174411),u&&(u=j(u,1));let g=null,m=null,y=0,a=null,k=n.getToken()===86088||n.getToken()===241737||n.getToken()===86090,h,{tokenIndex:T,tokenLine:E,tokenColumn:w}=n,I=n.getToken();if(k?I===241737?(a=R(n,e),n.getToken()&2240512?(n.getToken()===8673330?e&256&&c(n,67):a=s(n,e,T,E,w,{type:"VariableDeclaration",kind:"let",declarations:s2(n,e|33554432,u,t,8,32)}),n.assignable=1):e&256?c(n,67):(k=!1,n.assignable=1,a=O(n,e,t,a,0,0,T,E,w),n.getToken()===274548&&c(n,115))):(b(n,e),a=s(n,e,T,E,w,I===86088?{type:"VariableDeclaration",kind:"var",declarations:s2(n,e|33554432,u,t,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:s2(n,e|33554432,u,t,16,32)}),n.assignable=1):I===1074790417?d&&c(n,82):(I&2097152)===2097152?(a=I===2162700?Z(n,e,void 0,t,1,0,0,2,32,T,E,w):Q(n,e,void 0,t,1,0,0,2,32,T,E,w),y=n.destructible,y&64&&c(n,63),n.assignable=y&16?2:1,a=O(n,e|33554432,t,a,0,0,n.tokenIndex,n.tokenLine,n.tokenColumn)):a=Y(n,e|33554432,t,1,0,1,T,E,w),(n.getToken()&262144)===262144){if(n.getToken()===274548){n.assignable&2&&c(n,80,d?"await":"of"),r(n,a),b(n,e|8192),h=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),C(n,e|8192,16);let q=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForOfStatement",left:a,right:h,body:q,await:d})}n.assignable&2&&c(n,80,"in"),r(n,a),b(n,e|8192),d&&c(n,82),h=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn),C(n,e|8192,16);let F=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForInStatement",body:F,left:a,right:h})}d&&c(n,82),k||(y&8&&n.getToken()!==1077936155&&c(n,80,"loop"),a=J(n,e|33554432,t,0,0,T,E,w,a)),n.getToken()===18&&(a=e2(n,e,t,0,n.tokenIndex,n.tokenLine,n.tokenColumn,a)),C(n,e|8192,1074790417),n.getToken()!==1074790417&&(g=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),C(n,e|8192,1074790417),n.getToken()!==16&&(m=z(n,e,t,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),C(n,e|8192,16);let v=C2(n,e,u,t,o);return s(n,e,i,l,f,{type:"ForStatement",init:a,test:g,update:m,body:v})}function xn(n,e,u){return B2(e,n.getToken())||c(n,118),(n.getToken()&537079808)===537079808&&c(n,119),u&&g2(n,e,u,n.tokenValue,8,0),R(n,e)}function Su(n,e,u){let t=n.tokenIndex,o=n.tokenLine,i=n.tokenColumn;b(n,e);let l=null,{tokenIndex:f,tokenLine:d,tokenColumn:g}=n,m=[];if(n.getToken()===134283267)l=H(n,e);else{if(n.getToken()&143360){let a=xn(n,e,u);if(m=[s(n,e,f,d,g,{type:"ImportDefaultSpecifier",local:a})],P(n,e,18))switch(n.getToken()){case 8391476:m.push(vn(n,e,u));break;case 2162700:Nn(n,e,u,m);break;default:c(n,107)}}else switch(n.getToken()){case 8391476:m=[vn(n,e,u)];break;case 2162700:Nn(n,e,u,m);break;case 67174411:return pn(n,e,void 0,t,o,i);case 67108877:return rn(n,e,t,o,i);default:c(n,30,V[n.getToken()&255])}l=Pu(n,e)}let y={type:"ImportDeclaration",specifiers:m,source:l};return e&1&&(y.attributes=nn(n,e,m)),K(n,e|8192),s(n,e,t,o,i,y)}function vn(n,e,u){let{tokenIndex:t,tokenLine:o,tokenColumn:i}=n;return b(n,e),C(n,e,77932),(n.getToken()&134217728)===134217728&&$(t,o,i,n.index,n.line,n.column,30,V[n.getToken()&255]),s(n,e,t,o,i,{type:"ImportNamespaceSpecifier",local:xn(n,e,u)})}function Pu(n,e){return C(n,e,12403),n.getToken()!==134283267&&c(n,105,"Import"),H(n,e)}function Nn(n,e,u,t){for(b(n,e);n.getToken()&143360||n.getToken()===134283267;){let{tokenValue:o,tokenIndex:i,tokenLine:l,tokenColumn:f}=n,d=n.getToken(),g=O2(n,e),m;P(n,e,77932)?((n.getToken()&134217728)===134217728||n.getToken()===18?c(n,106):J2(n,e,16,n.getToken(),0),o=n.tokenValue,m=R(n,e)):g.type==="Identifier"?(J2(n,e,16,d,0),m=g):c(n,25,V[108]),u&&g2(n,e,u,o,8,0),t.push(s(n,e,i,l,f,{type:"ImportSpecifier",local:m,imported:g})),n.getToken()!==1074790415&&C(n,e,18)}return C(n,e,1074790415),t}function rn(n,e,u,t,o){let i=ne(n,e,s(n,e,u,t,o,{type:"Identifier",name:"import"}),u,t,o);return i=O(n,e,void 0,i,0,0,u,t,o),i=J(n,e,void 0,0,0,u,t,o,i),n.getToken()===18&&(i=e2(n,e,void 0,0,u,t,o,i)),A2(n,e,i,u,t,o)}function pn(n,e,u,t,o,i){let l=ee(n,e,u,0,t,o,i);return l=O(n,e,u,l,0,0,t,o,i),n.getToken()===18&&(l=e2(n,e,u,0,t,o,i,l)),A2(n,e,l,t,o,i)}function vu(n,e,u){let t=n.tokenIndex,o=n.tokenLine,i=n.tokenColumn;b(n,e|8192);let l=[],f=null,d=null,g=null,m;if(P(n,e|8192,20561)){switch(n.getToken()){case 86104:{f=d2(n,e,u,void 0,4,1,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);break}case 132:case 86094:f=en(n,e,u,void 0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 209005:{let{tokenIndex:a,tokenLine:k,tokenColumn:h}=n;f=R(n,e);let{flags:T}=n;T&1||(n.getToken()===86104?f=d2(n,e,u,void 0,4,1,1,1,a,k,h):n.getToken()===67174411?(f=sn(n,e,void 0,f,1,1,0,T,a,k,h),f=O(n,e,void 0,f,0,0,a,k,h),f=J(n,e,void 0,0,0,a,k,h,f)):n.getToken()&143360&&(u&&(u=K2(n,e,n.tokenValue)),f=R(n,e),f=F2(n,e,u,void 0,[f],1,a,k,h)));break}default:f=M(n,e,void 0,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn),K(n,e|8192)}return u&&l2(n,"default"),s(n,e,t,o,i,{type:"ExportDefaultDeclaration",declaration:f})}switch(n.getToken()){case 8391476:{b(n,e);let a=null;P(n,e,77932)&&(u&&l2(n,n.tokenValue),a=O2(n,e)),C(n,e,12403),n.getToken()!==134283267&&c(n,105,"Export"),d=H(n,e);let h={type:"ExportAllDeclaration",source:d,exported:a};return e&1&&(h.attributes=nn(n,e)),K(n,e|8192),s(n,e,t,o,i,h)}case 2162700:{b(n,e);let a=[],k=[],h=0;for(;n.getToken()&143360||n.getToken()===134283267;){let{tokenIndex:T,tokenValue:E,tokenLine:w,tokenColumn:I}=n,v=O2(n,e);v.type==="Literal"&&(h=1);let F;n.getToken()===77932?(b(n,e),!(n.getToken()&143360)&&n.getToken()!==134283267&&c(n,106),u&&(a.push(n.tokenValue),k.push(E)),F=O2(n,e)):(u&&(a.push(n.tokenValue),k.push(n.tokenValue)),F=v),l.push(s(n,e,T,w,I,{type:"ExportSpecifier",local:v,exported:F})),n.getToken()!==1074790415&&C(n,e,18)}C(n,e,1074790415),P(n,e,12403)?(n.getToken()!==134283267&&c(n,105,"Export"),d=H(n,e),e&1&&(g=nn(n,e,l)),u&&a.forEach(T=>l2(n,T))):(h&&c(n,172),u&&(a.forEach(T=>l2(n,T)),k.forEach(T=>iu(n,T)))),K(n,e|8192);break}case 86094:f=en(n,e,u,void 0,2,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86104:f=d2(n,e,u,void 0,4,1,2,0,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 241737:f=p2(n,e,u,void 0,8,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86090:f=p2(n,e,u,void 0,16,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 86088:f=Gn(n,e,u,void 0,64,n.tokenIndex,n.tokenLine,n.tokenColumn);break;case 209005:{let{tokenIndex:a,tokenLine:k,tokenColumn:h}=n;if(b(n,e),!(n.flags&1)&&n.getToken()===86104){f=d2(n,e,u,void 0,4,1,2,1,a,k,h),u&&(m=f.id?f.id.name:"",l2(n,m));break}}default:c(n,30,V[n.getToken()&255])}let y={type:"ExportNamedDeclaration",declaration:f,specifiers:l,source:d};return g&&(y.attributes=g),s(n,e,t,o,i,y)}function M(n,e,u,t,o,i,l,f){let d=_(n,e,u,2,0,t,o,1,i,l,f);return d=O(n,e,u,d,o,0,i,l,f),J(n,e,u,o,0,i,l,f,d)}function e2(n,e,u,t,o,i,l,f){let d=[f];for(;P(n,e|8192,18);)d.push(M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn));return s(n,e,o,i,l,{type:"SequenceExpression",expressions:d})}function z(n,e,u,t,o,i,l,f){let d=M(n,e,u,o,t,i,l,f);return n.getToken()===18?e2(n,e,u,t,i,l,f,d):d}function J(n,e,u,t,o,i,l,f,d){let g=n.getToken();if((g&4194304)===4194304){n.assignable&2&&c(n,26),(!o&&g===1077936155&&d.type==="ArrayExpression"||d.type==="ObjectExpression")&&r(n,d),b(n,e|8192);let m=M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=2,s(n,e,i,l,f,o?{type:"AssignmentPattern",left:d,right:m}:{type:"AssignmentExpression",left:d,operator:V[g&255],right:m})}return(g&8388608)===8388608&&(d=f2(n,e,u,t,i,l,f,4,g,d)),P(n,e|8192,22)&&(d=c2(n,e,u,d,i,l,f)),d}function N2(n,e,u,t,o,i,l,f,d){let g=n.getToken();b(n,e|8192);let m=M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return d=s(n,e,i,l,f,o?{type:"AssignmentPattern",left:d,right:m}:{type:"AssignmentExpression",left:d,operator:V[g&255],right:m}),n.assignable=2,d}function c2(n,e,u,t,o,i,l){let f=M(n,(e|33554432)^33554432,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);C(n,e|8192,21),n.assignable=1;let d=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=2,s(n,e,o,i,l,{type:"ConditionalExpression",test:t,consequent:f,alternate:d})}function f2(n,e,u,t,o,i,l,f,d,g){let m=-((e&33554432)>0)&8673330,y,a;for(n.assignable=2;n.getToken()&8388608&&(y=n.getToken(),a=y&3840,(y&524288&&d&268435456||d&524288&&y&268435456)&&c(n,165),!(a+((y===8391735)<<8)-((m===y)<<12)<=f));)b(n,e|8192),g=s(n,e,o,i,l,{type:y&524288||y&268435456?"LogicalExpression":"BinaryExpression",left:g,right:f2(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn,a,y,Y(n,e,u,0,t,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),operator:V[y&255]});return n.getToken()===1077936155&&c(n,26),g}function Nu(n,e,u,t,o,i,l,f){t||c(n,0);let d=n.getToken();b(n,e|8192);let g=Y(n,e,u,0,f,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()===8391735&&c(n,33),e&256&&d===16863276&&(g.type==="Identifier"?c(n,121):re(g)&&c(n,127)),n.assignable=2,s(n,e,o,i,l,{type:"UnaryExpression",operator:V[d&255],argument:g,prefix:!0})}function Vu(n,e,u,t,o,i,l,f,d,g){let m=n.getToken(),y=R(n,e),{flags:a}=n;if(!(a&1)){if(n.getToken()===86104)return te(n,e,u,1,t,f,d,g);if(B2(e,n.getToken()))return o||c(n,0),(n.getToken()&36864)===36864&&(n.flags|=256),le(n,e,u,i,f,d,g)}return!l&&n.getToken()===67174411?sn(n,e,u,y,i,1,0,a,f,d,g):n.getToken()===10?($2(n,e,m),l&&c(n,51),(m&36864)===36864&&(n.flags|=256),_2(n,e,u,n.tokenValue,y,l,i,0,f,d,g)):(n.assignable=1,y)}function Ou(n,e,u,t,o,i,l,f){if(t&&(n.destructible|=256),e&262144){b(n,e|8192),e&2097152&&c(n,32),o||c(n,26),n.getToken()===22&&c(n,124);let d=null,g=!1;return n.flags&1?n.getToken()===8391476&&c(n,30,V[n.getToken()&255]):(g=P(n,e|8192,8391476),(n.getToken()&77824||g)&&(d=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn))),n.assignable=2,s(n,e,i,l,f,{type:"YieldExpression",argument:d,delegate:g})}return e&256&&c(n,97,"yield"),yn(n,e,u,i,l,f)}function Ru(n,e,u,t,o,i,l,f){o&&(n.destructible|=128),e&268435456&&c(n,177);let d=yn(n,e,u,i,l,f);if(d.type==="ArrowFunctionExpression"||(n.getToken()&65536)===0)return e&524288&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,176),e&512&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,110),e&2097152&&e&524288&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,110),d;if(e&2097152&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,31),e&524288||e&512&&e&2048){t&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,0);let m=Y(n,e,u,0,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()===8391735&&c(n,33),n.assignable=2,s(n,e,i,l,f,{type:"AwaitExpression",argument:m})}return e&512&&$(i,l,f,n.startIndex,n.startLine,n.startColumn,98),d}function W2(n,e,u,t,o,i,l){let{tokenIndex:f,tokenLine:d,tokenColumn:g}=n;C(n,e|8192,2162700);let m=[];if(n.getToken()!==1074790415){for(;n.getToken()===134283267;){let{index:y,tokenIndex:a,tokenValue:k}=n,h=n.getToken(),T=H(n,e);Kn(n,y,a,k)&&(e|=256,n.flags&128&&$(a,d,g,n.index,n.line,n.column,66),n.flags&64&&$(a,d,g,n.index,n.line,n.column,9),n.flags&4096&&$(a,d,g,n.index,n.line,n.column,15),l&&z2(l)),m.push(gn(n,e,T,h,a,n.tokenLine,n.tokenColumn))}e&256&&(i&&((i&537079808)===537079808&&c(n,119),(i&36864)===36864&&c(n,40)),n.flags&512&&c(n,119),n.flags&256&&c(n,118))}for(n.flags=(n.flags|512|256|64|4096)^4928,n.destructible=(n.destructible|256)^256;n.getToken()!==1074790415;)m.push(I2(n,e,u,t,4,{}));return C(n,o&24?e|8192:e,1074790415),n.flags&=-4289,n.getToken()===1077936155&&c(n,26),s(n,e,f,d,g,{type:"BlockStatement",body:m})}function Uu(n,e,u,t,o){switch(b(n,e),n.getToken()){case 67108990:c(n,167);case 67174411:{e&131072||c(n,28),n.assignable=2;break}case 69271571:case 67108877:{e&65536||c(n,29),n.assignable=1;break}default:c(n,30,"super")}return s(n,e,u,t,o,{type:"Super"})}function Y(n,e,u,t,o,i,l,f,d){let g=_(n,e,u,2,0,t,o,i,l,f,d);return O(n,e,u,g,o,0,l,f,d)}function Mu(n,e,u,t,o,i){n.assignable&2&&c(n,55);let l=n.getToken();return b(n,e),n.assignable=2,s(n,e,t,o,i,{type:"UpdateExpression",argument:u,operator:V[l&255],prefix:!1})}function O(n,e,u,t,o,i,l,f,d){if((n.getToken()&33619968)===33619968&&!(n.flags&1))t=Mu(n,e,t,l,f,d);else if((n.getToken()&67108864)===67108864){switch(e=(e|33554432)^33554432,n.getToken()){case 67108877:{b(n,(e|67108864|2048)^2048),e&4096&&n.getToken()===130&&n.tokenValue==="super"&&c(n,173),n.assignable=1;let g=cn(n,e|16384,u);t=s(n,e,l,f,d,{type:"MemberExpression",object:t,computed:!1,property:g});break}case 69271571:{let g=!1;(n.flags&2048)===2048&&(g=!0,n.flags=(n.flags|2048)^2048),b(n,e|8192);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n,k=z(n,e,u,o,1,m,y,a);C(n,e,20),n.assignable=1,t=s(n,e,l,f,d,{type:"MemberExpression",object:t,computed:!0,property:k}),g&&(n.flags|=2048);break}case 67174411:{if((n.flags&1024)===1024)return n.flags=(n.flags|1024)^1024,t;let g=!1;(n.flags&2048)===2048&&(g=!0,n.flags=(n.flags|2048)^2048);let m=an(n,e,u,o);n.assignable=2,t=s(n,e,l,f,d,{type:"CallExpression",callee:t,arguments:m}),g&&(n.flags|=2048);break}case 67108990:{b(n,(e|67108864|2048)^2048),n.flags|=2048,n.assignable=2,t=Ju(n,e,u,t,l,f,d);break}default:(n.flags&2048)===2048&&c(n,166),n.assignable=2,t=s(n,e,l,f,d,{type:"TaggedTemplateExpression",tag:t,quasi:n.getToken()===67174408?kn(n,e|16384,u):mn(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn)})}t=O(n,e,u,t,0,1,l,f,d)}return i===0&&(n.flags&2048)===2048&&(n.flags=(n.flags|2048)^2048,t=s(n,e,l,f,d,{type:"ChainExpression",expression:t})),t}function Ju(n,e,u,t,o,i,l){let f=!1,d;if((n.getToken()===69271571||n.getToken()===67174411)&&(n.flags&2048)===2048&&(f=!0,n.flags=(n.flags|2048)^2048),n.getToken()===69271571){b(n,e|8192);let{tokenIndex:g,tokenLine:m,tokenColumn:y}=n,a=z(n,e,u,0,1,g,m,y);C(n,e,20),n.assignable=2,d=s(n,e,o,i,l,{type:"MemberExpression",object:t,computed:!0,optional:!0,property:a})}else if(n.getToken()===67174411){let g=an(n,e,u,0);n.assignable=2,d=s(n,e,o,i,l,{type:"CallExpression",callee:t,arguments:g,optional:!0})}else{let g=cn(n,e,u);n.assignable=2,d=s(n,e,o,i,l,{type:"MemberExpression",object:t,computed:!1,optional:!0,property:g})}return f&&(n.flags|=2048),d}function cn(n,e,u){return!(n.getToken()&143360)&&n.getToken()!==-2147483528&&n.getToken()!==-2147483527&&n.getToken()!==130&&c(n,160),n.getToken()===130?H2(n,e,u,0,n.tokenIndex,n.tokenLine,n.tokenColumn):R(n,e)}function ju(n,e,u,t,o,i,l,f){t&&c(n,56),o||c(n,0);let d=n.getToken();b(n,e|8192);let g=Y(n,e,u,0,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable&2&&c(n,55),n.assignable=2,s(n,e,i,l,f,{type:"UpdateExpression",argument:g,operator:V[d&255],prefix:!0})}function _(n,e,u,t,o,i,l,f,d,g,m){if((n.getToken()&143360)===143360){switch(n.getToken()){case 209006:return Ru(n,e,u,o,l,d,g,m);case 241771:return Ou(n,e,u,l,i,d,g,m);case 209005:return Vu(n,e,u,l,f,i,o,d,g,m)}let{tokenValue:y}=n,a=n.getToken(),k=R(n,e|16384);return n.getToken()===10?(f||c(n,0),$2(n,e,a),(a&36864)===36864&&(n.flags|=256),_2(n,e,u,y,k,o,i,0,d,g,m)):(e&4096&&!(e&8388608)&&!(e&2097152)&&n.tokenValue==="arguments"&&c(n,130),(a&255)===73&&(e&256&&c(n,113),t&24&&c(n,100)),n.assignable=e&256&&(a&537079808)===537079808?2:1,k)}if((n.getToken()&134217728)===134217728)return H(n,e);switch(n.getToken()){case 33619993:case 33619994:return ju(n,e,u,o,f,d,g,m);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return Nu(n,e,u,f,d,g,m,l);case 86104:return te(n,e,u,0,l,d,g,m);case 2162700:return Qu(n,e,u,i?0:1,l,d,g,m);case 69271571:return Yu(n,e,u,i?0:1,l,d,g,m);case 67174411:return Gu(n,e|16384,u,i,1,0,d,g,m);case 86021:case 86022:case 86023:return Wu(n,e,d,g,m);case 86111:return _u(n,e);case 65540:return pu(n,e,d,g,m);case 132:case 86094:return n1(n,e,u,l,d,g,m);case 86109:return Uu(n,e,d,g,m);case 67174409:return mn(n,e,d,g,m);case 67174408:return kn(n,e,u);case 86107:return xu(n,e,u,l,d,g,m);case 134283388:return ue(n,e,d,g,m);case 130:return H2(n,e,u,0,d,g,m);case 86106:return Xu(n,e,u,o,l,d,g,m);case 8456256:if(e&8)return Q2(n,e,u,0,d,g,m);default:if(B2(e,n.getToken()))return yn(n,e,u,d,g,m);c(n,30,V[n.getToken()&255])}}function Xu(n,e,u,t,o,i,l,f){let d=R(n,e);return n.getToken()===67108877?ne(n,e,d,i,l,f):(t&&c(n,142),d=ee(n,e,u,o,i,l,f),n.assignable=2,O(n,e,u,d,o,0,i,l,f))}function ne(n,e,u,t,o,i){e&512||c(n,169),b(n,e);let l=n.getToken();return l!==209030&&n.tokenValue!=="meta"?c(n,174):l&-2147483648&&c(n,175),n.assignable=2,s(n,e,t,o,i,{type:"MetaProperty",meta:u,property:R(n,e)})}function ee(n,e,u,t,o,i,l){C(n,e|8192,67174411),n.getToken()===14&&c(n,143);let d={type:"ImportExpression",source:M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)};if(e&1){let g=null;if(n.getToken()===18&&(C(n,e,18),n.getToken()!==16)){let m=(e|33554432)^33554432;g=M(n,m,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)}d.options=g,P(n,e,18)}return C(n,e,16),s(n,e,o,i,l,d)}function nn(n,e,u=null){if(!P(n,e,20579))return[];C(n,e,2162700);let t=[],o=new Set;for(;n.getToken()!==1074790415;){let i=n.tokenIndex,l=n.tokenLine,f=n.tokenColumn,d=zu(n,e);C(n,e,21);let g=Hu(n,e),m=d.type==="Literal"?d.value:d.name;m==="type"&&g.value==="json"&&(u===null||u.length===1&&(u[0].type==="ImportDefaultSpecifier"||u[0].type==="ImportNamespaceSpecifier"||u[0].type==="ImportSpecifier"&&u[0].imported.type==="Identifier"&&u[0].imported.name==="default"||u[0].type==="ExportSpecifier"&&u[0].local.type==="Identifier"&&u[0].local.name==="default")||c(n,140)),o.has(m)&&c(n,145,`${m}`),o.add(m),t.push(s(n,e,i,l,f,{type:"ImportAttribute",key:d,value:g})),n.getToken()!==1074790415&&C(n,e,18)}return C(n,e,1074790415),t}function Hu(n,e){if(n.getToken()===134283267)return H(n,e);c(n,30,V[n.getToken()&255])}function zu(n,e){if(n.getToken()===134283267)return H(n,e);if(n.getToken()&143360)return R(n,e);c(n,30,V[n.getToken()&255])}function Ku(n,e){let u=e.length;for(let t=0;t56319||++t>=u||(e.charCodeAt(t)&64512)!==56320)&&c(n,171,JSON.stringify(e.charAt(t--)))}}function O2(n,e){if(n.getToken()===134283267)return Ku(n,n.tokenValue),H(n,e);if(n.getToken()&143360)return R(n,e);c(n,30,V[n.getToken()&255])}function ue(n,e,u,t,o){let{tokenRaw:i,tokenValue:l}=n;return b(n,e),n.assignable=2,s(n,e,u,t,o,e&128?{type:"Literal",value:l,bigint:i.slice(0,-1),raw:i}:{type:"Literal",value:l,bigint:i.slice(0,-1)})}function mn(n,e,u,t,o){n.assignable=2;let{tokenValue:i,tokenRaw:l,tokenIndex:f,tokenLine:d,tokenColumn:g}=n;C(n,e,67174409);let m=[R2(n,e,i,l,f,d,g,!0)];return s(n,e,u,t,o,{type:"TemplateLiteral",expressions:[],quasis:m})}function kn(n,e,u){e=(e|33554432)^33554432;let{tokenValue:t,tokenRaw:o,tokenIndex:i,tokenLine:l,tokenColumn:f}=n;C(n,e&-16385|8192,67174408);let d=[R2(n,e,t,o,i,l,f,!1)],g=[z(n,e&-16385,u,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)];for(n.getToken()!==1074790415&&c(n,83);n.setToken(We(n,e),!0)!==67174409;){let{tokenValue:m,tokenRaw:y,tokenIndex:a,tokenLine:k,tokenColumn:h}=n;C(n,e&-16385|8192,67174408),d.push(R2(n,e,m,y,a,k,h,!1)),g.push(z(n,e,u,0,1,n.tokenIndex,n.tokenLine,n.tokenColumn)),n.getToken()!==1074790415&&c(n,83)}{let{tokenValue:m,tokenRaw:y,tokenIndex:a,tokenLine:k,tokenColumn:h}=n;C(n,e,67174409),d.push(R2(n,e,m,y,a,k,h,!0))}return s(n,e,i,l,f,{type:"TemplateLiteral",expressions:g,quasis:d})}function R2(n,e,u,t,o,i,l,f){let d=s(n,e,o,i,l,{type:"TemplateElement",value:{cooked:u,raw:t},tail:f}),g=f?1:2;return e&2&&(d.start+=1,d.range[0]+=1,d.end-=g,d.range[1]-=g),e&4&&(d.loc.start.column+=1,d.loc.end.column-=g),d}function $u(n,e,u,t,o,i){e=(e|33554432)^33554432,C(n,e|8192,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.assignable=1,s(n,e,t,o,i,{type:"SpreadElement",argument:l})}function an(n,e,u,t){b(n,e|8192);let o=[];if(n.getToken()===16)return b(n,e|16384),o;for(;n.getToken()!==16&&(n.getToken()===14?o.push($u(n,e,u,n.tokenIndex,n.tokenLine,n.tokenColumn)):o.push(M(n,e,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn)),!(n.getToken()!==18||(b(n,e|8192),n.getToken()===16))););return C(n,e|16384,16),o}function R(n,e){let{tokenValue:u,tokenIndex:t,tokenLine:o,tokenColumn:i}=n,l=u==="await"&&(n.getToken()&-2147483648)===0;return b(n,e|(l?8192:0)),s(n,e,t,o,i,{type:"Identifier",name:u})}function H(n,e){let{tokenValue:u,tokenRaw:t,tokenIndex:o,tokenLine:i,tokenColumn:l}=n;return n.getToken()===134283388?ue(n,e,o,i,l):(b(n,e),n.assignable=2,s(n,e,o,i,l,e&128?{type:"Literal",value:u,raw:t}:{type:"Literal",value:u}))}function Wu(n,e,u,t,o){let i=V[n.getToken()&255],l=n.getToken()===86023?null:i==="true";return b(n,e),n.assignable=2,s(n,e,u,t,o,e&128?{type:"Literal",value:l,raw:i}:{type:"Literal",value:l})}function _u(n,e){let{tokenIndex:u,tokenLine:t,tokenColumn:o}=n;return b(n,e),n.assignable=2,s(n,e,u,t,o,{type:"ThisExpression"})}function d2(n,e,u,t,o,i,l,f,d,g,m){b(n,e|8192);let y=i?fn(n,e,8391476):0,a=null,k,h=u?a2():void 0;if(n.getToken()===67174411)l&1||c(n,39,"Function");else{let v=o&4&&(!(e&2048)||!(e&512))?4:64|(f?1024:0)|(y?1024:0);$n(n,e,n.getToken()),u&&(v&4?Yn(n,e,u,n.tokenValue,v):g2(n,e,u,n.tokenValue,v,o),h=j(h,256),l&&l&2&&l2(n,n.tokenValue)),k=n.getToken(),n.getToken()&143360?a=R(n,e):c(n,30,V[n.getToken()&255])}let T=7274496;e=(e|T)^T|16777216|(f?524288:0)|(y?262144:0)|(y?0:67108864),u&&(h=j(h,512));let E=oe(n,(e|2097152)&-268435457,h,t,0,1),w=268471296,I=W2(n,(e|w)^w|8388608|1048576,u?j(h,128):h,t,8,k,h==null?void 0:h.scopeError);return s(n,e,d,g,m,{type:"FunctionDeclaration",id:a,params:E,body:I,async:f===1,generator:y===1})}function te(n,e,u,t,o,i,l,f){b(n,e|8192);let d=fn(n,e,8391476),g=(t?524288:0)|(d?262144:0),m=null,y,a=e&16?a2():void 0,k=275709952;n.getToken()&143360&&($n(n,(e|k)^k|g,n.getToken()),a&&(a=j(a,256)),y=n.getToken(),m=R(n,e)),e=(e|k)^k|16777216|g|(d?0:67108864),a&&(a=j(a,512));let h=oe(n,(e|2097152)&-268435457,a,u,o,1),T=W2(n,e&-33594369|8388608|1048576,a&&j(a,128),u,0,y,a==null?void 0:a.scopeError);return n.assignable=2,s(n,e,i,l,f,{type:"FunctionExpression",id:m,params:h,body:T,async:t===1,generator:d===1})}function Yu(n,e,u,t,o,i,l,f){let d=Q(n,e,void 0,u,t,o,0,2,0,i,l,f);return n.destructible&64&&c(n,63),n.destructible&8&&c(n,62),d}function Q(n,e,u,t,o,i,l,f,d,g,m,y){b(n,e|8192);let a=[],k=0;for(e=(e|33554432)^33554432;n.getToken()!==20;)if(P(n,e|8192,18))a.push(null);else{let T,{tokenIndex:E,tokenLine:w,tokenColumn:I,tokenValue:v}=n,F=n.getToken();if(F&143360)if(T=_(n,e,t,f,0,1,i,1,E,w,I),n.getToken()===1077936155){n.assignable&2&&c(n,26),b(n,e|8192),u&&n2(n,e,u,v,f,d);let q=M(n,e,t,1,i,n.tokenIndex,n.tokenLine,n.tokenColumn);T=s(n,e,E,w,I,l?{type:"AssignmentPattern",left:T,right:q}:{type:"AssignmentExpression",operator:"=",left:T,right:q}),k|=n.destructible&256?256:0|n.destructible&128?128:0}else n.getToken()===18||n.getToken()===20?(n.assignable&2?k|=16:u&&n2(n,e,u,v,f,d),k|=n.destructible&256?256:0|n.destructible&128?128:0):(k|=f&1?32:f&2?0:16,T=O(n,e,t,T,i,0,E,w,I),n.getToken()!==18&&n.getToken()!==20?(n.getToken()!==1077936155&&(k|=16),T=J(n,e,t,i,l,E,w,I,T)):n.getToken()!==1077936155&&(k|=n.assignable&2?16:32));else F&2097152?(T=n.getToken()===2162700?Z(n,e,u,t,0,i,l,f,d,E,w,I):Q(n,e,u,t,0,i,l,f,d,E,w,I),k|=n.destructible,n.assignable=n.destructible&16?2:1,n.getToken()===18||n.getToken()===20?n.assignable&2&&(k|=16):n.destructible&8?c(n,71):(T=O(n,e,t,T,i,0,E,w,I),k=n.assignable&2?16:0,n.getToken()!==18&&n.getToken()!==20?T=J(n,e,t,i,l,E,w,I,T):n.getToken()!==1077936155&&(k|=n.assignable&2?16:32))):F===14?(T=b2(n,e,u,t,20,f,d,0,i,l,E,w,I),k|=n.destructible,n.getToken()!==18&&n.getToken()!==20&&c(n,30,V[n.getToken()&255])):(T=Y(n,e,t,1,0,1,E,w,I),n.getToken()!==18&&n.getToken()!==20?(T=J(n,e,t,i,l,E,w,I,T),!(f&3)&&F===67174411&&(k|=16)):n.assignable&2?k|=16:F===67174411&&(k|=n.assignable&1&&f&3?32:16));if(a.push(T),P(n,e|8192,18)){if(n.getToken()===20)break}else break}C(n,e,20);let h=s(n,e,g,m,y,{type:l?"ArrayPattern":"ArrayExpression",elements:a});return!o&&n.getToken()&4194304?ie(n,e,t,k,i,l,g,m,y,h):(n.destructible=k,h)}function ie(n,e,u,t,o,i,l,f,d,g){n.getToken()!==1077936155&&c(n,26),b(n,e|8192),t&16&&c(n,26),i||r(n,g);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n,k=M(n,e,u,1,o,m,y,a);return n.destructible=(t|64|8)^72|(n.destructible&128?128:0)|(n.destructible&256?256:0),s(n,e,l,f,d,i?{type:"AssignmentPattern",left:g,right:k}:{type:"AssignmentExpression",left:g,operator:"=",right:k})}function b2(n,e,u,t,o,i,l,f,d,g,m,y,a){b(n,e|8192);let k=null,h=0,{tokenValue:T,tokenIndex:E,tokenLine:w,tokenColumn:I}=n,v=n.getToken();if(v&143360)n.assignable=1,k=_(n,e,t,i,0,1,d,1,E,w,I),v=n.getToken(),k=O(n,e,t,k,d,0,E,w,I),n.getToken()!==18&&n.getToken()!==o&&(n.assignable&2&&n.getToken()===1077936155&&c(n,71),h|=16,k=J(n,e,t,d,g,E,w,I,k)),n.assignable&2?h|=16:v===o||v===18?u&&n2(n,e,u,T,i,l):h|=32,h|=n.destructible&128?128:0;else if(v===o)c(n,41);else if(v&2097152)k=n.getToken()===2162700?Z(n,e,u,t,1,d,g,i,l,E,w,I):Q(n,e,u,t,1,d,g,i,l,E,w,I),v=n.getToken(),v!==1077936155&&v!==o&&v!==18?(n.destructible&8&&c(n,71),k=O(n,e,t,k,d,0,E,w,I),h|=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?(n.getToken()!==1077936155&&(h|=16),k=J(n,e,t,d,g,E,w,I,k)):((n.getToken()&8388608)===8388608&&(k=f2(n,e,t,1,E,w,I,4,v,k)),P(n,e|8192,22)&&(k=c2(n,e,t,k,E,w,I)),h|=n.assignable&2?16:32)):h|=o===1074790415&&v!==1077936155?16:n.destructible;else{h|=32,k=Y(n,e,t,1,d,1,n.tokenIndex,n.tokenLine,n.tokenColumn);let{tokenIndex:F,tokenLine:q,tokenColumn:U}=n,D=n.getToken();return D===1077936155?(n.assignable&2&&c(n,26),k=J(n,e,t,d,g,F,q,U,k),h|=16):(D===18?h|=16:D!==o&&(k=J(n,e,t,d,g,F,q,U,k)),h|=n.assignable&1?32:16),n.destructible=h,n.getToken()!==o&&n.getToken()!==18&&c(n,161),s(n,e,m,y,a,{type:g?"RestElement":"SpreadElement",argument:k})}if(n.getToken()!==o)if(i&1&&(h|=f?16:32),P(n,e|8192,1077936155)){h&16&&c(n,26),r(n,k);let F=M(n,e,t,1,d,n.tokenIndex,n.tokenLine,n.tokenColumn);k=s(n,e,E,w,I,g?{type:"AssignmentPattern",left:k,right:F}:{type:"AssignmentExpression",left:k,operator:"=",right:F}),h=16}else h|=16;return n.destructible=h,s(n,e,m,y,a,{type:g?"RestElement":"SpreadElement",argument:k})}function x(n,e,u,t,o,i,l,f){var a;let d=2883584|(t&64?0:4325376);e=(e|d)^d|(t&8?262144:0)|(t&16?524288:0)|(t&64?4194304:0)|65536|8388608|16777216;let g=e&16?j(a2(),512):void 0,m=Zu(n,(e|2097152)&-268435457,g,u,t,1,o);g&&(g=j(g,128));let y=W2(n,e&-301992961|8388608|1048576,g,u,0,void 0,(a=g==null?void 0:g.parent)==null?void 0:a.scopeError);return s(n,e,i,l,f,{type:"FunctionExpression",params:m,body:y,async:(t&16)>0,generator:(t&8)>0,id:null})}function Qu(n,e,u,t,o,i,l,f){let d=Z(n,e,void 0,u,t,o,0,2,0,i,l,f);return n.destructible&64&&c(n,63),n.destructible&8&&c(n,62),d}function Z(n,e,u,t,o,i,l,f,d,g,m,y){b(n,e);let a=[],k=0,h=0;for(e=(e|33554432)^33554432;n.getToken()!==1074790415;){let{tokenValue:E,tokenLine:w,tokenColumn:I,tokenIndex:v}=n,F=n.getToken();if(F===14)a.push(b2(n,e,u,t,1074790415,f,d,0,i,l,v,w,I));else{let q=0,U=null,D;if(n.getToken()&143360||n.getToken()===-2147483528||n.getToken()===-2147483527)if(n.getToken()===-2147483527&&(k|=16),U=R(n,e),n.getToken()===18||n.getToken()===1074790415||n.getToken()===1077936155)if(q|=4,e&256&&(F&537079808)===537079808?k|=16:J2(n,e,f,F,0),u&&n2(n,e,u,E,f,d),P(n,e|8192,1077936155)){k|=8;let B=M(n,e,t,1,i,n.tokenIndex,n.tokenLine,n.tokenColumn);k|=n.destructible&256?256:0|n.destructible&128?128:0,D=s(n,e,v,w,I,{type:"AssignmentPattern",left:e&134217728?Object.assign({},U):U,right:B})}else k|=(F===209006?128:0)|(F===-2147483528?16:0),D=e&134217728?Object.assign({},U):U;else if(P(n,e|8192,21)){let{tokenIndex:B,tokenLine:L,tokenColumn:S}=n;if(E==="__proto__"&&h++,n.getToken()&143360){let D2=n.getToken(),t2=n.tokenValue;D=_(n,e,t,f,0,1,i,1,B,L,S);let p=n.getToken();D=O(n,e,t,D,i,0,B,L,S),n.getToken()===18||n.getToken()===1074790415?p===1077936155||p===1074790415||p===18?(k|=n.destructible&128?128:0,n.assignable&2?k|=16:u&&(D2&143360)===143360&&n2(n,e,u,t2,f,d)):k|=n.assignable&1?32:16:(n.getToken()&4194304)===4194304?(n.assignable&2?k|=16:p!==1077936155?k|=32:u&&n2(n,e,u,t2,f,d),D=J(n,e,t,i,l,B,L,S,D)):(k|=16,(n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,p,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):n.destructible&8?c(n,71):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?D=N2(n,e,t,i,l,B,L,S,D):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,i,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,n.getToken()!==18&&F!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===69271571?(k|=16,F===209005&&(q|=16),q|=(F===12400?256:F===12401?512:1)|2,U=y2(n,e,t,i),k|=n.assignable,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()&143360?(k|=16,F===-2147483528&&c(n,95),F===209005?(n.flags&1&&c(n,132),q|=17):F===12400?q|=256:F===12401?q|=512:c(n,0),U=R(n,e),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()===67174411?(k|=16,q|=1,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):n.getToken()===8391476?(k|=16,F===12400?c(n,42):F===12401?c(n,43):F!==209005&&c(n,30,V[52]),b(n,e),q|=9|(F===209005?16:0),n.getToken()&143360?U=R(n,e):(n.getToken()&134217728)===134217728?U=H(n,e):n.getToken()===69271571?(q|=2,U=y2(n,e,t,i),k|=n.assignable):c(n,30,V[n.getToken()&255]),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):(n.getToken()&134217728)===134217728?(F===209005&&(q|=16),q|=F===12400?256:F===12401?512:1,k|=16,U=H(n,e),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):c(n,133);else if((n.getToken()&134217728)===134217728)if(U=H(n,e),n.getToken()===21){C(n,e|8192,21);let{tokenIndex:B,tokenLine:L,tokenColumn:S}=n;if(E==="__proto__"&&h++,n.getToken()&143360){D=_(n,e,t,f,0,1,i,1,B,L,S);let{tokenValue:D2}=n,t2=n.getToken();D=O(n,e,t,D,i,0,B,L,S),n.getToken()===18||n.getToken()===1074790415?t2===1077936155||t2===1074790415||t2===18?n.assignable&2?k|=16:u&&n2(n,e,u,D2,f,d):k|=n.assignable&1?32:16:n.getToken()===1077936155?(n.assignable&2&&(k|=16),D=J(n,e,t,i,l,B,L,S,D)):(k|=16,D=J(n,e,t,i,l,B,L,S,D))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(n.destructible&8)!==8&&(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?16:0,(n.getToken()&4194304)===4194304?D=N2(n,e,t,i,l,B,L,S,D):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,0,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&1?0:16,n.getToken()!==18&&n.getToken()!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===67174411?(q|=1,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn),k=n.assignable|16):c(n,134);else if(n.getToken()===69271571)if(U=y2(n,e,t,i),k|=n.destructible&256?256:0,q|=2,n.getToken()===21){b(n,e|8192);let{tokenIndex:B,tokenLine:L,tokenColumn:S,tokenValue:D2}=n,t2=n.getToken();if(n.getToken()&143360){D=_(n,e,t,f,0,1,i,1,B,L,S);let p=n.getToken();D=O(n,e,t,D,i,0,B,L,S),(n.getToken()&4194304)===4194304?(k|=n.assignable&2?16:p===1077936155?0:32,D=N2(n,e,t,i,l,B,L,S,D)):n.getToken()===18||n.getToken()===1074790415?p===1077936155||p===1074790415||p===18?n.assignable&2?k|=16:u&&(t2&143360)===143360&&n2(n,e,u,D2,f,d):k|=n.assignable&1?32:16:(k|=16,D=J(n,e,t,i,l,B,L,S,D))}else(n.getToken()&2097152)===2097152?(D=n.getToken()===69271571?Q(n,e,u,t,0,i,l,f,d,B,L,S):Z(n,e,u,t,0,i,l,f,d,B,L,S),k=n.destructible,n.assignable=k&16?2:1,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):k&8?c(n,62):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&2?k|16:0,(n.getToken()&4194304)===4194304?(n.getToken()!==1077936155&&(k|=16),D=N2(n,e,t,i,l,B,L,S,D)):((n.getToken()&8388608)===8388608&&(D=f2(n,e,t,1,B,L,S,4,F,D)),P(n,e|8192,22)&&(D=c2(n,e,t,D,B,L,S)),k|=n.assignable&2?16:32))):(D=Y(n,e,t,1,0,1,B,L,S),k|=n.assignable&1?32:16,n.getToken()===18||n.getToken()===1074790415?n.assignable&2&&(k|=16):(D=O(n,e,t,D,i,0,B,L,S),k=n.assignable&1?0:16,n.getToken()!==18&&n.getToken()!==1074790415&&(n.getToken()!==1077936155&&(k|=16),D=J(n,e,t,i,l,B,L,S,D))))}else n.getToken()===67174411?(q|=1,D=x(n,e,t,q,i,n.tokenIndex,w,I),k=16):c(n,44);else if(F===8391476)if(C(n,e|8192,8391476),q|=8,n.getToken()&143360){let B=n.getToken();U=R(n,e),q|=1,n.getToken()===67174411?(k|=16,D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):$(n.tokenIndex,n.tokenLine,n.tokenColumn,n.index,n.line,n.column,B===209005?46:B===12400||n.getToken()===12401?45:47,V[B&255])}else(n.getToken()&134217728)===134217728?(k|=16,U=H(n,e),q|=1,D=x(n,e,t,q,i,v,w,I)):n.getToken()===69271571?(k|=16,q|=3,U=y2(n,e,t,i),D=x(n,e,t,q,i,n.tokenIndex,n.tokenLine,n.tokenColumn)):c(n,126);else c(n,30,V[F&255]);k|=n.destructible&128?128:0,n.destructible=k,a.push(s(n,e,v,w,I,{type:"Property",key:U,value:D,kind:q&768?q&512?"set":"get":"init",computed:(q&2)>0,method:(q&1)>0,shorthand:(q&4)>0}))}if(k|=n.destructible,n.getToken()!==18)break;b(n,e)}C(n,e,1074790415),h>1&&(k|=64);let T=s(n,e,g,m,y,{type:l?"ObjectPattern":"ObjectExpression",properties:a});return!o&&n.getToken()&4194304?ie(n,e,t,k,i,l,g,m,y,T):(n.destructible=k,T)}function Zu(n,e,u,t,o,i,l){C(n,e,67174411);let f=[];if(n.flags=(n.flags|128)^128,n.getToken()===16)return o&512&&c(n,37,"Setter","one",""),b(n,e),f;o&256&&c(n,37,"Getter","no","s"),o&512&&n.getToken()===14&&c(n,38),e=(e|33554432)^33554432;let d=0,g=0;for(;n.getToken()!==18;){let m=null,{tokenIndex:y,tokenLine:a,tokenColumn:k}=n;if(n.getToken()&143360?(e&256||((n.getToken()&36864)===36864&&(n.flags|=256),(n.getToken()&537079808)===537079808&&(n.flags|=512)),m=hn(n,e,u,o|1,0,y,a,k)):(n.getToken()===2162700?m=Z(n,e,u,t,1,l,1,i,0,y,a,k):n.getToken()===69271571?m=Q(n,e,u,t,1,l,1,i,0,y,a,k):n.getToken()===14&&(m=b2(n,e,u,t,16,i,0,0,l,1,y,a,k)),g=1,n.destructible&48&&c(n,50)),n.getToken()===1077936155){b(n,e|8192),g=1;let h=M(n,e,t,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);m=s(n,e,y,a,k,{type:"AssignmentPattern",left:m,right:h})}if(d++,f.push(m),!P(n,e,18)||n.getToken()===16)break}return o&512&&d!==1&&c(n,37,"Setter","one",""),u&&u.scopeError&&z2(u.scopeError),g&&(n.flags|=128),C(n,e,16),f}function y2(n,e,u,t){b(n,e|8192);let o=M(n,(e|33554432)^33554432,u,1,t,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,20),o}function Gu(n,e,u,t,o,i,l,f,d){n.flags=(n.flags|128)^128;let{tokenIndex:g,tokenLine:m,tokenColumn:y}=n;b(n,e|8192|67108864);let a=e&16?j(a2(),1024):void 0;if(e=(e|33554432)^33554432,P(n,e,16))return X2(n,e,a,u,[],t,0,l,f,d);let k=0;n.destructible&=-385;let h,T=[],E=0,w=0,I=0,{tokenIndex:v,tokenLine:F,tokenColumn:q}=n;for(n.assignable=1;n.getToken()!==16;){let{tokenIndex:U,tokenLine:D,tokenColumn:B}=n,L=n.getToken();if(L&143360)a&&g2(n,e,a,n.tokenValue,1,0),(L&537079808)===537079808?w=1:(L&36864)===36864&&(I=1),h=_(n,e,u,o,0,1,1,1,U,D,B),n.getToken()===16||n.getToken()===18?n.assignable&2&&(k|=16,w=1):(n.getToken()===1077936155?w=1:k|=16,h=O(n,e,u,h,1,0,U,D,B),n.getToken()!==16&&n.getToken()!==18&&(h=J(n,e,u,1,0,U,D,B,h)));else if((L&2097152)===2097152)h=L===2162700?Z(n,e|67108864,a,u,0,1,0,o,i,U,D,B):Q(n,e|67108864,a,u,0,1,0,o,i,U,D,B),k|=n.destructible,w=1,n.assignable=2,n.getToken()!==16&&n.getToken()!==18&&(k&8&&c(n,122),h=O(n,e,u,h,0,0,U,D,B),k|=16,n.getToken()!==16&&n.getToken()!==18&&(h=J(n,e,u,0,0,U,D,B,h)));else if(L===14){h=b2(n,e,a,u,16,o,i,0,1,0,U,D,B),n.destructible&16&&c(n,74),w=1,E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),k|=8;break}else{if(k|=16,h=M(n,e,u,1,1,U,D,B),E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),n.getToken()===18&&(E||(E=1,T=[h])),E){for(;P(n,e|8192,18);)T.push(M(n,e,u,1,1,n.tokenIndex,n.tokenLine,n.tokenColumn));n.assignable=2,h=s(n,e,v,F,q,{type:"SequenceExpression",expressions:T})}return C(n,e,16),n.destructible=k,h}if(E&&(n.getToken()===16||n.getToken()===18)&&T.push(h),!P(n,e|8192,18))break;if(E||(E=1,T=[h]),n.getToken()===16){k|=8;break}}return E&&(n.assignable=2,h=s(n,e,v,F,q,{type:"SequenceExpression",expressions:T})),C(n,e,16),k&16&&k&8&&c(n,151),k|=n.destructible&256?256:0|n.destructible&128?128:0,n.getToken()===10?(k&48&&c(n,49),e&524800&&k&128&&c(n,31),e&262400&&k&256&&c(n,32),w&&(n.flags|=128),I&&(n.flags|=256),X2(n,e,a,u,E?T:[h],t,0,l,f,d)):(k&64&&c(n,63),k&8&&c(n,144),n.destructible=(n.destructible|256)^256|k,e&32?s(n,e,g,m,y,{type:"ParenthesizedExpression",expression:h}):h)}function yn(n,e,u,t,o,i){let{tokenValue:l}=n,f=0,d=0;(n.getToken()&537079808)===537079808?f=1:(n.getToken()&36864)===36864&&(d=1);let g=R(n,e);if(n.assignable=1,n.getToken()===10){let m;return e&16&&(m=K2(n,e,l)),f&&(n.flags|=128),d&&(n.flags|=256),F2(n,e,m,u,[g],0,t,o,i)}return g}function _2(n,e,u,t,o,i,l,f,d,g,m){l||c(n,57),i&&c(n,51),n.flags&=-129;let y=e&16?K2(n,e,t):void 0;return F2(n,e,y,u,[o],f,d,g,m)}function X2(n,e,u,t,o,i,l,f,d,g){i||c(n,57);for(let m=0;m0&&n.tokenValue==="constructor"&&c(n,109),n.getToken()===1074790415&&c(n,108),P(n,e,1074790417)){E>0&&c(n,120);continue}h.push(de(n,e,t,y,u,i,T,0,f,n.tokenIndex,n.tokenLine,n.tokenColumn))}return C(n,l&8?e|8192:e,1074790415),y&&tu(y),n.flags=n.flags&-33|k,s(n,e,d,g,m,{type:"ClassBody",body:h})}function de(n,e,u,t,o,i,l,f,d,g,m,y){let a=f?32:0,k=null,{tokenIndex:h,tokenLine:T,tokenColumn:E}=n,w=n.getToken();if(w&176128||w===-2147483528)switch(k=R(n,e),w){case 36970:if(!f&&n.getToken()!==67174411&&(n.getToken()&1048576)!==1048576&&n.getToken()!==1077936155)return de(n,e,u,t,o,i,l,1,d,g,m,y);break;case 209005:if(n.getToken()!==67174411&&!(n.flags&1)){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=16|(fn(n,e,8391476)?8:0)}break;case 12400:if(n.getToken()!==67174411){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=256}break;case 12401:if(n.getToken()!==67174411){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);a|=512}break;case 12402:if(n.getToken()!==67174411&&!(n.flags&1)){if((n.getToken()&1073741824)===1073741824)return T2(n,e,t,k,a,l,h,T,E);e&1&&(a|=1024)}break}else if(w===69271571)a|=2,k=y2(n,o,t,d);else if((w&134217728)===134217728)k=H(n,e);else if(w===8391476)a|=8,b(n,e);else if(n.getToken()===130)a|=8192,k=H2(n,e|4096,t,768,h,T,E);else if((n.getToken()&1073741824)===1073741824)a|=128;else{if(f&&w===2162700)return Iu(n,e|4096,u,t,h,T,E);w===-2147483527?(k=R(n,e),n.getToken()!==67174411&&c(n,30,V[n.getToken()&255])):c(n,30,V[n.getToken()&255])}if(a&1816&&(n.getToken()&143360||n.getToken()===-2147483528||n.getToken()===-2147483527?k=R(n,e):(n.getToken()&134217728)===134217728?k=H(n,e):n.getToken()===69271571?(a|=2,k=y2(n,e,t,0)):n.getToken()===130?(a|=8192,k=H2(n,e,t,a,h,T,E)):c(n,135)),a&2||(n.tokenValue==="constructor"?((n.getToken()&1073741824)===1073741824?c(n,129):!(a&32)&&n.getToken()===67174411&&(a&920?c(n,53,"accessor"):e&131072||(n.flags&32?c(n,54):n.flags|=32)),a|=64):!(a&8192)&&a&32&&n.tokenValue==="prototype"&&c(n,52)),a&1024||n.getToken()!==67174411&&!(a&768))return T2(n,e,t,k,a,l,h,T,E);let I=x(n,e|4096,t,a,d,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,g,m,y,{type:"MethodDefinition",kind:!(a&32)&&a&64?"constructor":a&256?"get":a&512?"set":"method",static:(a&32)>0,computed:(a&2)>0,key:k,value:I,...e&1?{decorators:l}:null})}function H2(n,e,u,t,o,i,l){b(n,e);let{tokenValue:f}=n;return f==="constructor"&&c(n,128),e&16&&(u||c(n,4,f),t?eu(n,u,f,t):uu(n,u,f)),b(n,e),s(n,e,o,i,l,{type:"PrivateIdentifier",name:f})}function T2(n,e,u,t,o,i,l,f,d){let g=null;if(o&8&&c(n,0),n.getToken()===1077936155){b(n,e|8192);let{tokenIndex:m,tokenLine:y,tokenColumn:a}=n;n.getToken()===537079927&&c(n,119);let k=2883584|(o&64?0:4325376);e=(e|k)^k|(o&8?262144:0)|(o&16?524288:0)|(o&64?4194304:0)|65536|16777216,g=_(n,e|4096,u,2,0,1,0,1,m,y,a),((n.getToken()&1073741824)!==1073741824||(n.getToken()&4194304)===4194304)&&(g=O(n,e|4096,u,g,0,0,m,y,a),g=J(n,e|4096,u,0,0,m,y,a,g))}return K(n,e),s(n,e,l,f,d,{type:o&1024?"AccessorProperty":"PropertyDefinition",key:t,value:g,static:(o&32)>0,computed:(o&2)>0,...e&1?{decorators:i}:null})}function ge(n,e,u,t,o,i,l,f,d){if(n.getToken()&143360||!(e&256)&&n.getToken()===-2147483527)return hn(n,e,u,o,i,l,f,d);(n.getToken()&2097152)!==2097152&&c(n,30,V[n.getToken()&255]);let g=n.getToken()===69271571?Q(n,e,u,t,1,0,1,o,i,l,f,d):Z(n,e,u,t,1,0,1,o,i,l,f,d);return n.destructible&16&&c(n,50),n.destructible&32&&c(n,50),g}function hn(n,e,u,t,o,i,l,f){let{tokenValue:d}=n,g=n.getToken();return e&256&&((g&537079808)===537079808?c(n,119):((g&36864)===36864||g===-2147483527)&&c(n,118)),(g&20480)===20480&&c(n,102),g===241771&&(e&262144&&c(n,32),e&512&&c(n,111)),(g&255)===73&&t&24&&c(n,100),g===209006&&(e&524288&&c(n,176),e&512&&c(n,110)),b(n,e),u&&n2(n,e,u,d,t,o),s(n,e,i,l,f,{type:"Identifier",name:d})}function Q2(n,e,u,t,o,i,l){if(t||C(n,e,8456256),n.getToken()===8390721){let m=u1(n,e,o,i,l),[y,a]=l1(n,e,u,t);return s(n,e,o,i,l,{type:"JSXFragment",openingFragment:m,children:y,closingFragment:a})}n.getToken()===8457014&&c(n,30,V[n.getToken()&255]);let f=null,d=[],g=g1(n,e,u,t,o,i,l);if(!g.selfClosing){[d,f]=o1(n,e,u,t);let m=j2(f.name);j2(g.name)!==m&&c(n,155,m)}return s(n,e,o,i,l,{type:"JSXElement",children:d,openingElement:g,closingElement:f})}function u1(n,e,u,t,o){return w2(n,e),s(n,e,u,t,o,{type:"JSXOpeningFragment"})}function t1(n,e,u,t,o,i){C(n,e,8457014);let l=me(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return n.getToken()!==8390721&&c(n,25,V[65]),u?w2(n,e):b(n,e),s(n,e,t,o,i,{type:"JSXClosingElement",name:l})}function i1(n,e,u,t,o,i){return C(n,e,8457014),n.getToken()!==8390721&&c(n,25,V[65]),u?w2(n,e):b(n,e),s(n,e,t,o,i,{type:"JSXClosingFragment"})}function o1(n,e,u,t){let o=[];for(;;){let i=f1(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn);if(i.type==="JSXClosingElement")return[o,i];o.push(i)}}function l1(n,e,u,t){let o=[];for(;;){let i=d1(n,e,u,t,n.tokenIndex,n.tokenLine,n.tokenColumn);if(i.type==="JSXClosingFragment")return[o,i];o.push(i)}}function f1(n,e,u,t,o,i,l){if(n.getToken()===137)return ce(n,e,o,i,l);if(n.getToken()===2162700)return An(n,e,u,1,0,o,i,l);if(n.getToken()===8456256)return b(n,e),n.getToken()===8457014?t1(n,e,t,o,i,l):Q2(n,e,u,1,o,i,l);c(n,0)}function d1(n,e,u,t,o,i,l){if(n.getToken()===137)return ce(n,e,o,i,l);if(n.getToken()===2162700)return An(n,e,u,1,0,o,i,l);if(n.getToken()===8456256)return b(n,e),n.getToken()===8457014?i1(n,e,t,o,i,l):Q2(n,e,u,1,o,i,l);c(n,0)}function ce(n,e,u,t,o){b(n,e);let i={type:"JSXText",value:n.tokenValue};return e&128&&(i.raw=n.tokenRaw),s(n,e,u,t,o,i)}function g1(n,e,u,t,o,i,l){(n.getToken()&143360)!==143360&&(n.getToken()&4096)!==4096&&c(n,0);let f=me(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn),d=m1(n,e,u),g=n.getToken()===8457014;return g&&C(n,e,8457014),n.getToken()!==8390721&&c(n,25,V[65]),t||!g?w2(n,e):b(n,e),s(n,e,o,i,l,{type:"JSXOpeningElement",name:f,attributes:d,selfClosing:g})}function me(n,e,u,t,o){x2(n);let i=Z2(n,e,u,t,o);if(n.getToken()===21)return ke(n,e,i,u,t,o);for(;P(n,e,67108877);)x2(n),i=c1(n,e,i,u,t,o);return i}function c1(n,e,u,t,o,i){let l=Z2(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,t,o,i,{type:"JSXMemberExpression",object:u,property:l})}function m1(n,e,u){let t=[];for(;n.getToken()!==8457014&&n.getToken()!==8390721&&n.getToken()!==1048576;)t.push(a1(n,e,u,n.tokenIndex,n.tokenLine,n.tokenColumn));return t}function k1(n,e,u,t,o,i){b(n,e),C(n,e,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,1074790415),s(n,e,t,o,i,{type:"JSXSpreadAttribute",argument:l})}function a1(n,e,u,t,o,i){if(n.getToken()===2162700)return k1(n,e,u,t,o,i);x2(n);let l=null,f=Z2(n,e,t,o,i);if(n.getToken()===21&&(f=ke(n,e,f,t,o,i)),n.getToken()===1077936155){let d=Ge(n,e),{tokenIndex:g,tokenLine:m,tokenColumn:y}=n;switch(d){case 134283267:l=H(n,e);break;case 8456256:l=Q2(n,e,u,0,g,m,y);break;case 2162700:l=An(n,e,u,0,1,g,m,y);break;default:c(n,154)}}return s(n,e,t,o,i,{type:"JSXAttribute",value:l,name:f})}function ke(n,e,u,t,o,i){C(n,e,21);let l=Z2(n,e,n.tokenIndex,n.tokenLine,n.tokenColumn);return s(n,e,t,o,i,{type:"JSXNamespacedName",namespace:u,name:l})}function An(n,e,u,t,o,i,l,f){b(n,e|8192);let{tokenIndex:d,tokenLine:g,tokenColumn:m}=n;if(n.getToken()===14)return y1(n,e,u,i,l,f);let y=null;return n.getToken()===1074790415?(o&&c(n,157),y=s1(n,e,n.startIndex,n.startLine,n.startColumn)):y=M(n,e,u,1,0,d,g,m),n.getToken()!==1074790415&&c(n,25,V[15]),t?w2(n,e):b(n,e),s(n,e,i,l,f,{type:"JSXExpressionContainer",expression:y})}function y1(n,e,u,t,o,i){C(n,e,14);let l=M(n,e,u,1,0,n.tokenIndex,n.tokenLine,n.tokenColumn);return C(n,e,1074790415),s(n,e,t,o,i,{type:"JSXSpreadChild",expression:l})}function s1(n,e,u,t,o){return n.startIndex=n.tokenIndex,n.startLine=n.tokenLine,n.startColumn=n.tokenColumn,s(n,e,u,t,o,{type:"JSXEmptyExpression"})}function Z2(n,e,u,t,o){let{tokenValue:i}=n;return b(n,e),s(n,e,u,t,o,{type:"JSXIdentifier",name:i})}function ae(n,e){return du(n,e,0)}function h1(n,e){let u=new SyntaxError(n+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(u,e)}var ye=h1;function A1(n){let e=[];for(let u of n)try{return u()}catch(t){e.push(t)}throw Object.assign(new Error("All combinations failed"),{errors:e})}var se=A1;var b1=(n,e,u)=>{if(!(n&&e==null))return Array.isArray(e)||typeof e=="string"?e[u<0?e.length+u:u]:e.at(u)},bn=b1;function D1(n){return Array.isArray(n)&&n.length>0}var he=D1;function G(n){var t,o,i;let e=((t=n.range)==null?void 0:t[0])??n.start,u=(i=((o=n.declaration)==null?void 0:o.decorators)??n.decorators)==null?void 0:i[0];return u?Math.min(G(u),e):e}function u2(n){var e;return((e=n.range)==null?void 0:e[1])??n.end}function T1(n){let e=new Set(n);return u=>e.has(u==null?void 0:u.type)}var Ae=T1;var C1=Ae(["Block","CommentBlock","MultiLine"]),q2=C1;function E1(n){let e=`*${n.value}*`.split(` +`);return e.length>1&&e.every(u=>u.trimStart()[0]==="*")}var Dn=E1;function w1(n){return q2(n)&&n.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(n.value)}var be=w1;var S2=null;function P2(n){if(S2!==null&&typeof S2.property){let e=S2;return S2=P2.prototype=null,e}return S2=P2.prototype=n??Object.create(null),new P2}var B1=10;for(let n=0;n<=B1;n++)P2();function Tn(n){return P2(n)}function I1(n,e="type"){Tn(n);function u(t){let o=t[e],i=n[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:t});return i}return u}var De=I1;var Te={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var L1=De(Te),Ce=L1;function Cn(n,e){if(!(n!==null&&typeof n=="object"))return n;if(Array.isArray(n)){for(let t=0;t{var l;(l=i.leadingComments)!=null&&l.some(be)&&o.add(G(i))}),n=G2(n,i=>{if(i.type==="ParenthesizedExpression"){let{expression:l}=i;if(l.type==="TypeCastExpression")return l.range=[...i.range],l;let f=G(i);if(!o.has(f))return l.extra={...l.extra,parenthesized:!0},l}})}if(n=G2(n,o=>{switch(o.type){case"LogicalExpression":if(Ee(o))return En(o);break;case"VariableDeclaration":{let i=bn(!1,o.declarations,-1);i!=null&&i.init&&t[u2(i)]!==";"&&(o.range=[G(o),u2(i)]);break}case"TSParenthesizedType":return o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let i=G(o);o.name={type:"Identifier",name:o.name,range:[i,i+o.name.length]}}break;case"TopicReference":n.extra={...n.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break}}),he(n.comments)){let o=bn(!1,n.comments,-1);for(let i=n.comments.length-2;i>=0;i--){let l=n.comments[i];u2(l)===G(o)&&q2(l)&&q2(o)&&Dn(l)&&Dn(o)&&(n.comments.splice(i+1,1),l.value+="*//*"+o.value,l.range=[G(l),u2(o)]),o=l}}return n.type==="Program"&&(n.range=[0,t.length]),n}function Ee(n){return n.type==="LogicalExpression"&&n.right.type==="LogicalExpression"&&n.operator===n.right.operator}function En(n){return Ee(n)?En({type:"LogicalExpression",operator:n.operator,left:En({type:"LogicalExpression",operator:n.operator,left:n.left,right:n.right.left,range:[G(n.left),u2(n.right.left)]}),right:n.right.right,range:[G(n),u2(n)]}):n}var we=F1;var q1=/\*\/$/,S1=/^\/\*\*?/,P1=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,v1=/(^|\s+)\/\/([^\n\r]*)/g,Be=/^(\r?\n)+/,N1=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Ie=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,V1=/(\r?\n|^) *\* ?/g,O1=[];function Le(n){let e=n.match(P1);return e?e[0].trimStart():""}function Fe(n){let e=` +`;n=i2(!1,n.replace(S1,"").replace(q1,""),V1,"$1");let u="";for(;u!==n;)u=n,n=i2(!1,n,N1,`${e}$1 $2${e}`);n=n.replace(Be,"").trimEnd();let t=Object.create(null),o=i2(!1,n,Ie,"").replace(Be,"").trimEnd(),i;for(;i=Ie.exec(n);){let l=i2(!1,i[2],v1,"");if(typeof t[i[1]]=="string"||Array.isArray(t[i[1]])){let f=t[i[1]];t[i[1]]=[...O1,...Array.isArray(f)?f:[f],l]}else t[i[1]]=l}return{comments:o,pragmas:t}}function R1(n){if(!n.startsWith("#!"))return"";let e=n.indexOf(` +`);return e===-1?n:n.slice(0,e)}var qe=R1;function U1(n){let e=qe(n);e&&(n=n.slice(e.length+1));let u=Le(n),{pragmas:t,comments:o}=Fe(u);return{shebang:e,text:n,pragmas:t,comments:o}}function Se(n){let{pragmas:e}=U1(n);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function M1(n){return n=typeof n=="function"?{parse:n}:n,{astFormat:"estree",hasPragma:Se,locStart:G,locEnd:u2,...n}}var Pe=M1;function J1(n){let{filepath:e}=n;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs")||e.endsWith(".cts"))return"script";if(e.endsWith(".mjs")||e.endsWith(".mts"))return"module"}}var ve=J1;var j1={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function X1(n,e){let u=[],t=[],o=ae(n,{...j1,module:e==="module",onComment:u,onToken:t});return o.comments=u,o.tokens=t,o}function H1(n){let{message:e,loc:u}=n;if(!u)return n;let t=`[${[u.start,u.end].map(({line:o,column:i})=>[o,i].join(":")).join("-")}]: `;return e.startsWith(t)&&(e=e.slice(t.length)),ye(e,{loc:{start:{line:u.start.line,column:u.start.column+1},end:{line:u.end.line,column:u.end.column+1}},cause:n})}function z1(n,e={}){let u=ve(e),t=(u?[u]:["module","script"]).map(i=>()=>X1(n,i)),o;try{o=se(t)}catch({errors:[i]}){throw H1(i)}return we(o,{parser:"meriyah",text:n})}var K1=Pe(z1);var $0=Bn;export{$0 as default,wn as parsers}; diff --git a/node_modules/prettier/plugins/postcss.js b/node_modules/prettier/plugins/postcss.js index edb120fb..09a74876 100644 --- a/node_modules/prettier/plugins/postcss.js +++ b/node_modules/prettier/plugins/postcss.js @@ -1,52 +1,54 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var al=Object.create;var bt=Object.defineProperty;var ul=Object.getOwnPropertyDescriptor;var ll=Object.getOwnPropertyNames;var cl=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Js=(t,e)=>{for(var s in e)bt(t,s,{get:e[s],enumerable:!0})},Xs=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ll(e))!fl.call(t,n)&&n!==s&&bt(t,n,{get:()=>e[n],enumerable:!(r=ul(e,n))||r.enumerable});return t};var ye=(t,e,s)=>(s=t!=null?al(cl(t)):{},Xs(e||!t||!t.__esModule?bt(s,"default",{value:t,enumerable:!0}):s,t)),pl=t=>Xs(bt({},"__esModule",{value:!0}),t);var Ft=y((rv,ts)=>{"use strict";ts.exports.isClean=Symbol("isClean");ts.exports.my=Symbol("my")});var yi=y((sv,rs)=>{var S=String,mi=function(){return{isColorSupported:!1,reset:S,bold:S,dim:S,italic:S,underline:S,inverse:S,hidden:S,strikethrough:S,black:S,red:S,green:S,yellow:S,blue:S,magenta:S,cyan:S,white:S,gray:S,bgBlack:S,bgRed:S,bgGreen:S,bgYellow:S,bgBlue:S,bgMagenta:S,bgCyan:S,bgWhite:S}};rs.exports=mi();rs.exports.createColors=mi});var ss=y(()=>{});var $t=y((ov,vi)=>{"use strict";var wi=yi(),gi=ss(),st=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=wi.isColorSupported),gi&&e&&(s=gi(s));let r=s.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,gray:f,red:p}=wi.createColors(!0);a=l=>c(p(l)),u=l=>f(l)}else a=u=c=>c;return r.slice(n,i).map((c,f)=>{let p=n+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let w=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` - `+w+a("^")}return" "+u(l)+c}).join(` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var pl=Object.create;var Tt=Object.defineProperty;var hl=Object.getOwnPropertyDescriptor;var dl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xs=(t,e)=>{for(var s in e)Tt(t,s,{get:e[s],enumerable:!0})},Zs=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dl(e))!yl.call(t,n)&&n!==s&&Tt(t,n,{get:()=>e[n],enumerable:!(r=hl(e,n))||r.enumerable});return t};var xe=(t,e,s)=>(s=t!=null?pl(ml(t)):{},Zs(e||!t||!t.__esModule?Tt(s,"default",{value:t,enumerable:!0}):s,t)),gl=t=>Zs(Tt({},"__esModule",{value:!0}),t);var xi=g((dv,rs)=>{var _=String,vi=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};rs.exports=vi();rs.exports.createColors=vi});var ss=g(()=>{});var Yt=g((gv,ki)=>{"use strict";var bi=xi(),_i=ss(),ot=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=bi.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=bi.createColors(!0);n=y=>f(l(y)),r=y=>p(y),_i&&(i=y=>_i(y))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,y=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,d=Math.max(0,this.column-h),m=Math.max(this.column+h,this.endColumn+h),b=f.slice(d,m),w=r(y.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(y)+i(b)+` + `+w+n("^")}let x=r(y.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(y)+i(f)+` + `+x+n("^")}return" "+r(y)+i(f)}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` -`),this.name+": "+this.message+e}};vi.exports=st;st.default=st});var Wt=y((av,bi)=>{"use strict";var xi={after:` +`),this.name+": "+this.message+e}};ki.exports=ot;ot.default=ot});var zt=g((wv,Si)=>{"use strict";var Ei={after:` `,beforeClose:` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function lc(t){return t[0].toUpperCase()+t.slice(1)}var nt=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=u.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=xi[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function mc(t){return t[0].toUpperCase()+t.slice(1)}var at=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ei[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};bi.exports=nt;nt.default=nt});var it=y((uv,_i)=>{"use strict";var cc=Wt();function ns(t,e){new cc(e).stringify(t)}_i.exports=ns;ns.default=ns});var at=y((lv,ki)=>{"use strict";var{isClean:Yt,my:fc}=Ft(),pc=$t(),hc=Wt(),dc=it();function is(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>is(o,s)):(i==="object"&&n!==null&&(n=is(n)),s[r]=n)}return s}var ot=class{constructor(e={}){this.raws={},this[Yt]=!1,this[fc]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let s in e)this[s]=e[s];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let s=is(this);for(let r in e)s[r]=e[r];return s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}error(e,s={}){if(this.source){let{end:r,start:n}=this.rangeBy(s);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},s)}return new pc(e)}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Yt]){this[Yt]=!1;let e=this;for(;e=e.parent;)e[Yt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,s){let r=this.source.start;if(e.index)r=this.positionInside(e.index,s);else if(e.word){s=this.toString();let n=s.indexOf(e.word);n!==-1&&(r=this.positionInside(n,s))}return r}positionInside(e,s){let r=s||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let o=0;otypeof u=="object"&&u.toJSON?u.toJSON(null,s):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,s);else if(o==="source"){let u=s.get(a.input);u==null&&(u=i,s.set(a.input,i),i++),r[o]={end:a.end,inputId:u,start:a.start}}else r[o]=a}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=dc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}get proxyOf(){return this}};ki.exports=ot;ot.default=ot});var lt=y((cv,Ei)=>{"use strict";var mc=at(),ut=class extends mc{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ei.exports=ut;ut.default=ut});var Oe=y((fv,Si)=>{"use strict";var yc=at(),ct=class extends yc{constructor(e){super(e),this.type="comment"}};Si.exports=ct;ct.default=ct});var re=y((pv,qi)=>{"use strict";var{isClean:Ti,my:Oi}=Ft(),Ci=lt(),Ai=Oe(),wc=at(),Ni,os,as,Pi;function Ri(t){return t.map(e=>(e.nodes&&(e.nodes=Ri(e.nodes)),delete e.source,e))}function Ii(t){if(t[Ti]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Ii(e)}var Y=class t extends wc{append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ci(e)]}else if(e.selector)e=[new os(e)];else if(e.name)e=[new as(e)];else if(e.text)e=[new Ai(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Oi]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ti]&&Ii(n),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Y.registerParse=t=>{Ni=t};Y.registerRule=t=>{os=t};Y.registerAtRule=t=>{as=t};Y.registerRoot=t=>{Pi=t};qi.exports=Y;Y.default=Y;Y.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,as.prototype):t.type==="rule"?Object.setPrototypeOf(t,os.prototype):t.type==="decl"?Object.setPrototypeOf(t,Ci.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ai.prototype):t.type==="root"&&Object.setPrototypeOf(t,Pi.prototype),t[Oi]=!0,t.nodes&&t.nodes.forEach(e=>{Y.rebuild(e)})}});var Gt=y((hv,Di)=>{"use strict";var zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Vt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gc=/.[\r\n"'(/\\]/,Li=/[\da-f]/i;Di.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,w,x,h=r.length,d=0,m=[],b=[];function g(){return d}function v($){throw e.error("Unclosed "+$,d)}function R(){return b.length===0&&d>=h}function F($){if(b.length)return b.pop();if(d>=h)return;let T=$?$.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{o=d;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);x=["space",r.slice(d,o)],d=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);x=[O,O,d];break}case 40:{if(l=m.length?m.pop()[1]:"",w=r.charCodeAt(d+1),l==="url"&&w!==39&&w!==34&&w!==32&&w!==10&&w!==9&&w!==12&&w!==13){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(n||T){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||gc.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case 39:case 34:{a=i===39?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(n||T){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case 64:{zt.lastIndex=d+1,zt.test(r),zt.lastIndex===0?o=r.length-1:o=zt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case 92:{for(o=d,c=!0;r.charCodeAt(o+1)===92;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,Li.test(r.charAt(o)))){for(;Li.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===47&&r.charCodeAt(d+1)===42?(o=r.indexOf("*/",d+2)+1,o===0&&(n||T?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(Vt.lastIndex=d+1,Vt.test(r),Vt.lastIndex===0?o=r.length-1:o=Vt.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H($){b.push($)}return{back:H,endOfFile:R,nextToken:F,position:g}}});var jt=y((dv,Bi)=>{"use strict";var Mi=re(),Ce=class extends Mi{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Bi.exports=Ce;Ce.default=Ce;Mi.registerAtRule(Ce)});var Ae=y((mv,Wi)=>{"use strict";var Ui=re(),Fi,$i,se=class extends Ui{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Fi(new $i,this,e).stringify()}};se.registerLazyResult=t=>{Fi=t};se.registerProcessor=t=>{$i=t};Wi.exports=se;se.default=se;Ui.registerRoot(se)});var us=y((yv,Yi)=>{"use strict";var ft={comma(t){return ft.split(t,[","],!0)},space(t){let e=[" ",` -`," "];return ft.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};Yi.exports=ft;ft.default=ft});var Ht=y((wv,Vi)=>{"use strict";var zi=re(),vc=us(),Ne=class extends zi{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Vi.exports=Ne;Ne.default=Ne;zi.registerRule(Ne)});var Kt=y((gv,Hi)=>{"use strict";var xc=lt(),bc=Gt(),_c=Oe(),kc=jt(),Ec=Ae(),Gi=Ht(),ji={empty:!0,space:!0};function Sc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ls=class{constructor(e){this.input=e,this.root=new Ec,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new kc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(s.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(s,"params",u),o&&(e=u[u.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(s+=1),n===")"&&(s-=1),s===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let s=new _c;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=bc(this.input)}decl(e,s){let r=new xc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Sc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let w=f[l][0];if(p.trim().indexOf("!")===0&&w!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new Gi;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lw+x[1],"");e.raws[s]={raw:l,value:u}}e[s]=u}rule(e){e.pop();let s=new Gi;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{});var Ji=y((bv,Qi)=>{var Tc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Oc=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Cc=(t=21)=>{let e="",s=t;for(;s--;)e+=Tc[Math.random()*64|0];return e};Qi.exports={nanoid:Cc,customAlphabet:Oc}});var cs=y((_v,Xi)=>{Xi.exports=class{}});var Re=y((Ev,ro)=>{"use strict";var{SourceMapConsumer:Ac,SourceMapGenerator:Nc}=Ki(),{fileURLToPath:Zi,pathToFileURL:Qt}={},{isAbsolute:hs,resolve:ds}={},{nanoid:Pc}=Ji(),fs=ss(),eo=$t(),Rc=cs(),ps=Symbol("fromOffsetCache"),Ic=!!(Ac&&Nc),to=!!(ds&&hs),Pe=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!to||/^\w+:\/\//.test(s.from)||hs(s.from)?this.file=s.from:this.file=ds(s.from)),to&&Ic){let r=new Rc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,a;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let u=this.origin(s,r,o,a);return u?i=new eo(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):i=new eo(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:a,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:a,endLine:o,line:s,source:this.css},this.file&&(Qt&&(i.input.url=Qt(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let s,r;if(this[ps])r=this[ps];else{let i=this.css.split(` -`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=s)n=r.length-1;else{let i=r.length-2,o;for(;n>1),e=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ds(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:n,line:r}));let u;hs(o.source)?u=Qt(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||Qt(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(Zi)c.file=Zi(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};ro.exports=Pe;Pe.default=Pe;fs&&fs.registerInput&&fs.registerInput(Pe)});var pt=y((Sv,so)=>{"use strict";var qc=re(),Lc=Kt(),Dc=Re();function Jt(t,e){let s=new Dc(t,e),r=new Lc(s);try{r.parse()}catch(n){throw n}return r.root}so.exports=Jt;Jt.default=Jt;qc.registerParse(Jt)});var no=y((Tv,ms)=>{var Mc=Gt(),Bc=Re();ms.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` +`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Si.exports=at;at.default=at});var ut=g((vv,Ti)=>{"use strict";var yc=zt();function ns(t,e){new yc(e).stringify(t)}Ti.exports=ns;ns.default=ns});var Vt=g((xv,is)=>{"use strict";is.exports.isClean=Symbol("isClean");is.exports.my=Symbol("my")});var pt=g((bv,Ci)=>{"use strict";var gc=Yt(),wc=zt(),vc=ut(),{isClean:lt,my:xc}=Vt();function os(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>os(o,s)):(i==="object"&&n!==null&&(n=os(n)),s[r]=n)}return s}function ct(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[lt]=!0}markDirty(){if(this[lt]){this[lt]=!1;let e=this;for(;e=e.parent;)e[lt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let n=this.source.input.css.slice(ct(this.source.input.css,this.source.start),ct(this.source.input.css,this.source.end)).indexOf(e.word);n!==-1&&(s=this.positionInside(n))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n=ct(this.source.input.css,this.source.start),i=n+e;for(let o=n;otypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=vc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}get proxyOf(){return this}};Ci.exports=ft;ft.default=ft});var Re=g((_v,Oi)=>{"use strict";var bc=pt(),ht=class extends bc{constructor(e){super(e),this.type="comment"}};Oi.exports=ht;ht.default=ht});var mt=g((kv,Ai)=>{"use strict";var _c=pt(),dt=class extends _c{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ai.exports=dt;dt.default=dt});var ue=g((Ev,Mi)=>{"use strict";var Ni=Re(),Pi=mt(),kc=pt(),{isClean:Ri,my:Ii}=Vt(),as,qi,Li,us;function Di(t){return t.map(e=>(e.nodes&&(e.nodes=Di(e.nodes)),delete e.source,e))}function Bi(t){if(t[Ri]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Bi(e)}var V=class t extends kc{append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Pi(e)]}else if(e.selector||e.selectors)e=[new us(e)];else if(e.name)e=[new as(e)];else if(e.text)e=[new Ni(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Ii]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ri]&&Bi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};V.registerParse=t=>{qi=t};V.registerRule=t=>{us=t};V.registerAtRule=t=>{as=t};V.registerRoot=t=>{Li=t};Mi.exports=V;V.default=V;V.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,as.prototype):t.type==="rule"?Object.setPrototypeOf(t,us.prototype):t.type==="decl"?Object.setPrototypeOf(t,Pi.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ni.prototype):t.type==="root"&&Object.setPrototypeOf(t,Li.prototype),t[Ii]=!0,t.nodes&&t.nodes.forEach(e=>{V.rebuild(e)})}});var Fi=g((Sv,Ui)=>{var Ec="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Sc=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Tc=(t=21)=>{let e="",s=t;for(;s--;)e+=Ec[Math.random()*64|0];return e};Ui.exports={nanoid:Tc,customAlphabet:Sc}});var $i=g(()=>{});var ls=g((Ov,Wi)=>{Wi.exports=class{}});var qe=g((Nv,Gi)=>{"use strict";var{nanoid:Cc}=Fi(),{isAbsolute:ps,resolve:hs}={},{SourceMapConsumer:Oc,SourceMapGenerator:Ac}=$i(),{fileURLToPath:Yi,pathToFileURL:Gt}={},zi=Yt(),Nc=ls(),cs=ss(),fs=Symbol("fromOffsetCache"),Pc=!!(Oc&&Ac),Vi=!!(hs&&ps),Ie=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!Vi||/^\w+:\/\//.test(s.from)||ps(s.from)?this.file=s.from:this.file=hs(s.from)),Vi&&Pc){let r=new Nc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,i=p.col}else o=f.line,i=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let a=this.origin(s,r,o,i);return a?u=new zi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):u=new zi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:o,line:s,source:this.css},this.file&&(Gt&&(u.input.url=Gt(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let s,r;if(this[fs])r=this[fs];else{let i=this.css.split(` +`);r=new Array(i.length);let o=0;for(let u=0,a=i.length;u=s)n=r.length-1;else{let i=r.length-2,o;for(;n>1),e=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:hs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ps(o.source)?a=Gt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Gt(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Yi)c.file=Yi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};Gi.exports=Ie;Ie.default=Ie;cs&&cs.registerInput&&cs.registerInput(Ie)});var jt=g((Pv,Hi)=>{"use strict";var ji=ue(),Le=class extends ji{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Hi.exports=Le;Le.default=Le;ji.registerAtRule(Le)});var De=g((Rv,Xi)=>{"use strict";var Ki=ue(),Qi,Ji,le=class extends Ki{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Qi(new Ji,this,e).stringify()}};le.registerLazyResult=t=>{Qi=t};le.registerProcessor=t=>{Ji=t};Xi.exports=le;le.default=le;Ki.registerRoot(le)});var ds=g((Iv,Zi)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};Zi.exports=yt;yt.default=yt});var Ht=g((qv,to)=>{"use strict";var eo=ue(),Rc=ds(),Be=class extends eo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Rc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};to.exports=Be;Be.default=Be;eo.registerRule(Be)});var Jt=g((Lv,so)=>{"use strict";var Kt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ic=/.[\r\n"'(/\\]/,ro=/[\da-f]/i;so.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(W){throw e.error("Unclosed "+W,d)}function N(){return b.length===0&&d>=h}function F(W){if(b.length)return b.pop();if(d>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{a=d;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(d,a)],d=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);f=[C,C,d];break}case 40:{if(x=m.length?m.pop()[1]:"",y=r.charCodeAt(d+1),x==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){a=d;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=d;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Ic.test(o)?f=["(","(",d]:(f=["brackets",o,d,a],d=a);break}case 39:case 34:{c=i===39?"'":'"',a=d;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=d+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(d,a+1),d,a],d=a;break}case 64:{Kt.lastIndex=d+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,f=["at-word",r.slice(d,a+1),d,a],d=a;break}case 92:{for(a=d,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,ro.test(r.charAt(a)))){for(;ro.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(d,a+1),d,a],d=a;break}default:{i===47&&r.charCodeAt(d+1)===42?(a=r.indexOf("*/",d+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(d,a+1),d,a],d=a):(Qt.lastIndex=d+1,Qt.test(r),Qt.lastIndex===0?a=r.length-1:a=Qt.lastIndex-2,f=["word",r.slice(d,a+1),d,a],m.push(f),d=a);break}}return d++,f}function H(W){b.push(W)}return{back:H,endOfFile:N,nextToken:F,position:w}}});var Xt=g((Dv,oo)=>{"use strict";var qc=jt(),Lc=Re(),Dc=mt(),Bc=De(),no=Ht(),Mc=Jt(),io={empty:!0,space:!0};function Uc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ms=class{constructor(e){this.input=e,this.root=new Bc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new qc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Lc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=Mc(this.input)}decl(e,s){let r=new Dc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Uc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let y=f[l][0];if(p.trim().startsWith("!")&&y!=="space")break;p=f.pop()[1]+p}p.trim().startsWith("!")&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new no;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",c=!0,f,p;for(let l=0;ly+x[1],"");e.raws[s]={raw:l,value:a}}e[s]=a}rule(e){e.pop();let s=new no;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var Fc=ue(),$c=qe(),Wc=Xt();function Zt(t,e){let s=new $c(t,e),r=new Wc(s);try{r.parse()}catch(n){throw n}return r.root}ao.exports=Zt;Zt.default=Zt;Fc.registerParse(Zt)});var uo=g((Mv,ys)=>{var Yc=Jt(),zc=qe();ys.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` `))),n=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new Bc(n),this.tokenizer=Mc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),ms.exports.isInlineComment.bind(this)(t)}return!1}}});var oo=y((Ov,io)=>{io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var uo=y((Cv,ao)=>{var Uc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Fc=/\.[0-9]/,$c=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Uc.test(e)===!1&&Fc.test(e)===!1};ao.exports={isMixinToken:$c}});var co=y((Av,lo)=>{var Wc=Gt(),Yc=/^url\((.+)\)/;lo.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Wc({css:s});for(t.filename=s.replace(Yc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var mo=y((Nv,ho)=>{var fo=/:$/,po=/^:(\s+)?/;ho.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(fo.test(e)){let[r]=e.match(fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(po.test(s)){let[r]=s.match(po);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var go=y((Rv,wo)=>{var zc=Oe(),Vc=Kt(),{isInlineComment:Gc}=no(),{interpolation:yo}=oo(),{isMixinToken:jc}=uo(),Hc=co(),Kc=mo(),Qc=/(!\s*important)$/i;wo.exports=class extends Vc{constructor(...e){super(...e),this.lastNode=null}atrule(e){yo.bind(this)(e)||(super.atrule(e),Hc(this.lastNode),Kc(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new zc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((g,v,R)=>v[0]===")"?R:g),p=e.slice(i,c+i).map(g=>g[1]).join(""),[l]=e.slice(i),w=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(w,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],w=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,w);e.splice(f,a.length,h)}let u=e.findIndex(c=>Qc.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){Gc.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),yo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(jc(s)){this.mixin(e);return}super.unknownWord(e)}}});var xo=y((qv,vo)=>{var Jc=Wt();vo.exports=class extends Jc{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var bo=y((Lv,ys)=>{var Xc=Re(),Zc=go(),ef=xo();ys.exports={parse(t,e){let s=new Xc(t,e),r=new Zc(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new ef(e).stringify(t)},nodeToString(t){let e="";return ys.exports.stringify(t,s=>{e+=s}),e}}});var ws=y((Dv,_o)=>{_o.exports=class{generate(){}}});var Xt=y((Bv,So)=>{"use strict";var tf=re(),ko,Eo,pe=class extends tf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ko(new Eo,this,e).stringify()}};pe.registerLazyResult=t=>{ko=t};pe.registerProcessor=t=>{Eo=t};So.exports=pe;pe.default=pe});var gs=y((Uv,Oo)=>{"use strict";var To={};Oo.exports=function(e){To[e]||(To[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var vs=y((Fv,Co)=>{"use strict";var ht=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Co.exports=ht;ht.default=ht});var Zt=y(($v,Ao)=>{"use strict";var rf=vs(),dt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new rf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Ao.exports=dt;dt.default=dt});var _s=y((Yv,Io)=>{"use strict";var{isClean:j,my:sf}=Ft(),nf=ws(),of=it(),af=re(),uf=Xt(),Wv=gs(),No=Zt(),lf=pt(),cf=Ae(),ff={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hf={Once:!0,postcssPlugin:!0,prepare:!0},Ie=0;function mt(t){return typeof t=="object"&&typeof t.then=="function"}function Ro(t){let e=!1,s=ff[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Ie,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Ie,s+"Exit"]:[s,s+"Exit"]}function Po(t){let e;return t.type==="document"?e=["Document",Ie,"DocumentExit"]:t.type==="root"?e=["Root",Ie,"RootExit"]:e=Ro(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function xs(t){return t[j]=!1,t.nodes&&t.nodes.forEach(e=>xs(e)),t}var bs={},ne=class t{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=xs(s);else if(s instanceof t||s instanceof No)n=xs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=lf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[sf]&&af.rebuild(n)}this.result=new No(e,n,r),this.helpers={...bs,postcss:bs,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!pf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(mt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return mt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=of;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new nf(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(mt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];)e[j]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(mt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[j]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ne.registerPostcss=t=>{bs=t};Io.exports=ne;ne.default=ne;cf.registerLazyResult(ne);uf.registerLazyResult(ne)});var Lo=y((Vv,qo)=>{"use strict";var df=ws(),mf=it(),zv=gs(),yf=pt(),wf=Zt(),yt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=mf;this.result=new wf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new df(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=yf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};qo.exports=yt;yt.default=yt});var Mo=y((Gv,Do)=>{"use strict";var gf=Lo(),vf=_s(),xf=Xt(),bf=Ae(),he=class{constructor(e=[]){this.version="8.4.39",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new gf(this,e,s):new vf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Do.exports=he;he.default=he;bf.registerProcessor(he);xf.registerProcessor(he)});var Uo=y((jv,Bo)=>{"use strict";var _f=lt(),kf=cs(),Ef=Oe(),Sf=jt(),Tf=Re(),Of=Ae(),Cf=Ht();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Tf.prototype};i.map&&(i.map={...i.map,__proto__:kf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Of(r);if(r.type==="decl")return new _f(r);if(r.type==="rule")return new Cf(r);if(r.type==="comment")return new Ef(r);if(r.type==="atrule")return new Sf(r);throw new Error("Unknown node type: "+t.type)}Bo.exports=wt;wt.default=wt});var er=y((Hv,Go)=>{"use strict";var Af=$t(),Fo=lt(),Nf=_s(),Pf=re(),ks=Mo(),Rf=it(),If=Uo(),$o=Xt(),qf=vs(),Wo=Oe(),Yo=jt(),Lf=Zt(),Df=Re(),Mf=pt(),Bf=us(),zo=Ht(),Vo=Ae(),Uf=at();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ks(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=s(...o);return a.postcssPlugin=e,a.postcssVersion=new ks().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return k([n(u)]).process(o,a)},n};k.stringify=Rf;k.parse=Mf;k.fromJSON=If;k.list=Bf;k.comment=t=>new Wo(t);k.atRule=t=>new Yo(t);k.decl=t=>new Fo(t);k.rule=t=>new zo(t);k.root=t=>new Vo(t);k.document=t=>new $o(t);k.CssSyntaxError=Af;k.Declaration=Fo;k.Container=Pf;k.Processor=ks;k.Document=$o;k.Comment=Wo;k.Warning=qf;k.AtRule=Yo;k.Result=Lf;k.Input=Df;k.Rule=zo;k.Root=Vo;k.Node=Uf;Nf.registerPostcss(k);Go.exports=k;k.default=k});var Ho=y((Kv,jo)=>{var{Container:Ff}=er(),Es=class extends Ff{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};jo.exports=Es});var Jo=y((Qv,Qo)=>{"use strict";var tr=/[\t\n\f\r "#'()/;[\\\]{}]/g,rr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$f=/.[\r\n"'(/\\]/,Ko=/[\da-f]/i,sr=/[\n\f\r]/g;Qo.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,w,x=r.length,h=0,d=[],m=[],b;function g(){return h}function v(T){throw e.error("Unclosed "+T,h)}function R(){return m.length===0&&h>=x}function F(){let T=1,O=!1,C=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!C&&i===O?(O=!1,C=!1):i===92?C=!C:C&&(C=!1):i===39||i===34?O=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function H(T){if(m.length)return m.pop();if(h>=x)return;let O=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);w=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);w=[C,C,h];break}case 44:{w=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),w=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||$f.test(u)?w=["(","(",h]:(w=["brackets",u,h,o],h=o);break}case 39:case 34:{for(a=i,o=h,f=!1;o{var{Comment:Wf}=er(),Yf=Kt(),zf=Ho(),Vf=Jo(),Ss=class extends Yf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Wf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Vf(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new zf;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={column:u.col,line:u.line,offset:o[3]+1}}else{let u=this.input.fromOffset(o[2]);i.source.end={column:u.col,line:u.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={column:u.col,line:u.line,offset:e[0][2]}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};Xo.exports=Ss});var ta=y((Xv,ea)=>{var{Input:Gf}=er(),jf=Zo();ea.exports=function(e,s){let r=new Gf(e,s),n=new jf(r);return n.parse(),n.root}});var Os=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});function Kf(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ts.default=Kf});var As=y(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var Qf=Os(),sa=Jf(Qf);function Jf(t){return t&&t.__esModule?t:{default:t}}function gt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}gt.prototype=Object.create(sa.default.prototype);gt.constructor=sa.default;gt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.parseMediaFeature=oa;vt.parseMediaQuery=Ps;vt.parseMediaList=ep;var Xf=Os(),na=ia(Xf),Zf=As(),Ns=ia(Zf);function ia(t){return t&&t.__esModule?t:{default:t}}function oa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function ep(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new na.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var u=s;u{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.default=ip;var tp=As(),rp=np(tp),sp=aa();function np(t){return t&&t.__esModule?t:{default:t}}function ip(t){return new rp.default({nodes:(0,sp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var qs=y((ax,fa)=>{fa.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,a){return Array.isArray(a)&&i{pa.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Ds=y((lx,ha)=>{"use strict";function up(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";nr.__esModule=!0;var da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function fp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pp=function t(e,s){if((typeof e>"u"?"undefined":da(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":da(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(a){return t(a,r)}):r[n]=t(i,r)}return r},hp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=pp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();nr.default=hp;ma.exports=nr.default});var D=y(B=>{"use strict";B.__esModule=!0;var cx=B.TAG="tag",fx=B.STRING="string",px=B.SELECTOR="selector",hx=B.ROOT="root",dx=B.PSEUDO="pseudo",mx=B.NESTING="nesting",yx=B.ID="id",wx=B.COMMENT="comment",gx=B.COMBINATOR="combinator",vx=B.CLASS="class",xx=B.ATTRIBUTE="attribute",bx=B.UNIVERSAL="universal"});var or=y((ir,ya)=>{"use strict";ir.__esModule=!0;var dp=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";ar.__esModule=!0;var Ep=or(),Sp=Op(Ep),Tp=D();function Op(t){return t&&t.__esModule?t:{default:t}}function Cp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ap(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Np(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Pp=function(t){Np(e,t);function e(s){Cp(this,e);var r=Ap(this,t.call(this,s));return r.type=Tp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Sp.default);ar.default=Pp;wa.exports=ar.default});var xa=y((ur,va)=>{"use strict";ur.__esModule=!0;var Rp=or(),Ip=Lp(Rp),qp=D();function Lp(t){return t&&t.__esModule?t:{default:t}}function Dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Bp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Up=function(t){Bp(e,t);function e(s){Dp(this,e);var r=Mp(this,t.call(this,s));return r.type=qp.SELECTOR,r}return e}(Ip.default);ur.default=Up;va.exports=ur.default});var qe=y((lr,ba)=>{"use strict";lr.__esModule=!0;var Fp=function(){function t(e,s){for(var r=0;r{"use strict";cr.__esModule=!0;var Hp=qe(),Kp=Jp(Hp),Qp=D();function Jp(t){return t&&t.__esModule?t:{default:t}}function Xp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=function(t){eh(e,t);function e(s){Xp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Kp.default);cr.default=th;_a.exports=cr.default});var Sa=y((fr,Ea)=>{"use strict";fr.__esModule=!0;var rh=de(),sh=ih(rh),nh=D();function ih(t){return t&&t.__esModule?t:{default:t}}function oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lh=function(t){uh(e,t);function e(s){oh(this,e);var r=ah(this,t.call(this,s));return r.type=nh.COMMENT,r}return e}(sh.default);fr.default=lh;Ea.exports=fr.default});var Oa=y((pr,Ta)=>{"use strict";pr.__esModule=!0;var ch=qe(),fh=hh(ch),ph=D();function hh(t){return t&&t.__esModule?t:{default:t}}function dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wh=function(t){yh(e,t);function e(s){dh(this,e);var r=mh(this,t.call(this,s));return r.type=ph.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(fh.default);pr.default=wh;Ta.exports=pr.default});var Aa=y((hr,Ca)=>{"use strict";hr.__esModule=!0;var gh=qe(),vh=bh(gh),xh=D();function bh(t){return t&&t.__esModule?t:{default:t}}function _h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sh=function(t){Eh(e,t);function e(s){_h(this,e);var r=kh(this,t.call(this,s));return r.type=xh.TAG,r}return e}(vh.default);hr.default=Sh;Ca.exports=hr.default});var Pa=y((dr,Na)=>{"use strict";dr.__esModule=!0;var Th=de(),Oh=Ah(Th),Ch=D();function Ah(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Ch.STRING,r}return e}(Oh.default);dr.default=Ih;Na.exports=dr.default});var Ia=y((mr,Ra)=>{"use strict";mr.__esModule=!0;var qh=or(),Lh=Mh(qh),Dh=D();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(Lh.default);mr.default=$h;Ra.exports=mr.default});var La=y((yr,qa)=>{"use strict";yr.__esModule=!0;var Wh=qe(),Yh=Vh(Wh),zh=D();function Vh(t){return t&&t.__esModule?t:{default:t}}function Gh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=function(t){Hh(e,t);function e(s){Gh(this,e);var r=jh(this,t.call(this,s));return r.type=zh.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Yh.default);yr.default=Kh;qa.exports=yr.default});var Ma=y((wr,Da)=>{"use strict";wr.__esModule=!0;var Qh=qe(),Jh=Zh(Qh),Xh=D();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Xh.UNIVERSAL,r.value="*",r}return e}(Jh.default);wr.default=sd;Da.exports=wr.default});var Ua=y((gr,Ba)=>{"use strict";gr.__esModule=!0;var nd=de(),id=ad(nd),od=D();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.COMBINATOR,r}return e}(id.default);gr.default=fd;Ba.exports=gr.default});var $a=y((vr,Fa)=>{"use strict";vr.__esModule=!0;var pd=de(),hd=md(pd),dd=D();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=function(t){gd(e,t);function e(s){yd(this,e);var r=wd(this,t.call(this,s));return r.type=dd.NESTING,r.value="&",r}return e}(hd.default);vr.default=vd;Fa.exports=vr.default});var Ya=y((xr,Wa)=>{"use strict";xr.__esModule=!0;xr.default=xd;function xd(t){return t.sort(function(e,s){return e-s})}Wa.exports=xr.default});var Xa=y((kr,Ja)=>{"use strict";kr.__esModule=!0;kr.default=Pd;var za=39,bd=34,Ms=92,Va=47,xt=10,Bs=32,Us=12,Fs=9,$s=13,Ga=43,ja=62,Ha=126,Ka=124,_d=44,kd=40,Ed=41,Sd=91,Td=93,Od=59,Qa=42,Cd=58,Ad=38,Nd=64,br=/[ \n\t\r\{\(\)'"\\;/]/g,_r=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Pd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,w=void 0,x=s.length,h=-1,d=1,m=0,b=function(v,R){if(t.safe)s+=R,n=s.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=n-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,n-p,m]),h=p,d=f,m=n):(_r.lastIndex=m+1,_r.test(s),_r.lastIndex===0?n=s.length-1:n=_r.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}Ja.exports=kr.default});var tu=y((Er,eu)=>{"use strict";Er.__esModule=!0;var Rd=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new em.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new nm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new Qd.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new rm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,Ws.default)(o,"."),f=(0,Ws.default)(o,"#"),p=(0,Ws.default)(o,"#{");p.length&&(f=f.filter(function(w){return!~p.indexOf(w)}));var l=(0,um.default)((0,Md.default)((0,qd.default)([[0],c,f])));l.forEach(function(w,x){var h=l[x+1]||o.length,d=o.slice(w,h);if(x===0&&r)return r.call(n,d,l.length);var m=void 0;~c.indexOf(w)?m=new Wd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(w)?m=new Gd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):m=new Hd.default({value:d,source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Sr.__esModule=!0;var mm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new wm.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},mm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Sr.default=xm;ru.exports=Sr.default});var z=y((Tx,iu)=>{"use strict";var zs=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>zs(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=zs(n)),s[r]=n)}return s};iu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=zs(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var _m=z(),Le=class extends _m{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(s){return this.walkType(t,s)})};ou.exports=Le});var uu=y((Ax,au)=>{"use strict";var km=U();au.exports=class extends km{constructor(e){super(e),this.type="root"}}});var cu=y((Px,lu)=>{"use strict";var Em=U();lu.exports=class extends Em{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var hu=y((Rx,pu)=>{"use strict";var fu=U(),Tr=class extends fu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};fu.registerWalker(Tr);pu.exports=Tr});var mu=y((Ix,du)=>{"use strict";var Sm=U(),Tm=z(),Or=class extends Tm{constructor(e){super(e),this.type="colon"}};Sm.registerWalker(Or);du.exports=Or});var wu=y((qx,yu)=>{"use strict";var Om=U(),Cm=z(),Cr=class extends Cm{constructor(e){super(e),this.type="comma"}};Om.registerWalker(Cr);yu.exports=Cr});var vu=y((Lx,gu)=>{"use strict";var Am=U(),Nm=z(),Ar=class extends Nm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Am.registerWalker(Ar);gu.exports=Ar});var _u=y((Dx,bu)=>{"use strict";var xu=U(),Nr=class extends xu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};xu.registerWalker(Nr);bu.exports=Nr});var Eu=y((Mx,ku)=>{"use strict";var Pm=U(),Rm=z(),Pr=class extends Rm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Pm.registerWalker(Pr);ku.exports=Pr});var Tu=y((Bx,Su)=>{"use strict";var Im=U(),qm=z(),Rr=class extends qm{constructor(e){super(e),this.type="operator"}};Im.registerWalker(Rr);Su.exports=Rr});var Cu=y((Ux,Ou)=>{"use strict";var Lm=U(),Dm=z(),Ir=class extends Dm{constructor(e){super(e),this.type="paren",this.parenType=""}};Lm.registerWalker(Ir);Ou.exports=Ir});var Nu=y((Fx,Au)=>{"use strict";var Mm=U(),Bm=z(),qr=class extends Bm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Mm.registerWalker(qr);Au.exports=qr});var Ru=y(($x,Pu)=>{"use strict";var Um=U(),Fm=z(),Lr=class extends Fm{constructor(e){super(e),this.type="word"}};Um.registerWalker(Lr);Pu.exports=Lr});var qu=y((Wx,Iu)=>{"use strict";var $m=U(),Wm=z(),Dr=class extends Wm{constructor(e){super(e),this.type="unicode-range"}};$m.registerWalker(Dr);Iu.exports=Dr});var Du=y((Yx,Lu)=>{"use strict";var Vs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Lu.exports=Vs});var Uu=y((zx,Bu)=>{"use strict";var Mr=/[ \n\t\r\{\(\)'"\\;,/]/g,Ym=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,De=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,zm=/^[a-z0-9]/i,Vm=/^[a-f0-9?\-]/i,Mu=Du();Bu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,a=1,u=0,c=0,f=null,p,l,w,x,h,d,m,b,g,v,R,F;function H(T){let O=`Unclosed ${T} at line: ${a}, column: ${u-o}, token: ${u}`;throw new Mu(O)}function $(){let T=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new Mu(T)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case 41:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case 39:case 34:w=p===39?"'":'"',l=u;do for(v=!1,l=n.indexOf(w,l+1),l===-1&&H("quote",w),R=l;n.charCodeAt(R-1)===92;)R-=1,v=!v;while(v);r.push(["string",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 64:Mr.lastIndex=u+1,Mr.test(n),Mr.lastIndex===0?l=n.length-1:l=Mr.lastIndex-2,r.push(["atword",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 92:l=u,p=n.charCodeAt(l+1),m&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 43:case 45:case 42:l=u+1,F=n.slice(u+1,l+1);let T=n.slice(u-1,u);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===47&&(n.charCodeAt(u+1)===42||s.loose&&!f&&n.charCodeAt(u+1)===47)){if(n.charCodeAt(u+1)===42)l=n.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let C=n.indexOf(` -`,u+2);l=C!==-1?C-1:i}d=n.slice(u,l+1),x=d.split(` -`),h=x.length-1,h>0?(b=a+h,g=l-x[h].length):(b=a,g=o),r.push(["comment",d,a,u-o,b,l-g,u]),o=g,a=b,u=l}else if(p===35&&!zm.test(n.slice(u+1,u+2)))l=u+1,r.push(["#",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===117||p===85)&&n.charCodeAt(u+1)===43){l=u+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(O=De),O.lastIndex=u+1,O.test(n),O.lastIndex===0?l=n.length-1:l=O.lastIndex-2,O===De||p===46){let C=n.charCodeAt(l),me=n.charCodeAt(l+1),Qs=n.charCodeAt(l+2);(C===101||C===69)&&(me===45||me===43)&&Qs>=48&&Qs<=57&&(De.lastIndex=l+2,De.test(n),De.lastIndex===0?l=n.length-1:l=De.lastIndex-2)}r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var $u=y((Vx,Fu)=>{"use strict";var Gs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Fu.exports=Gs});var Vu=y((jx,zu)=>{"use strict";var Gm=uu(),jm=cu(),Hm=hu(),Km=mu(),Qm=wu(),Jm=vu(),Xm=_u(),Zm=Eu(),ey=Tu(),Wu=Cu(),ty=Nu(),Yu=Ru(),ry=qu(),sy=Uu(),ny=qs(),iy=Ls(),oy=Ds(),ay=$u();function uy(t){return t.sort((e,s)=>e-s)}zu.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new Gm;let n=new jm;this.root.append(n),this.current=n,this.tokens=sy(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Km({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Qm({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new Jm({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new ay(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new ey({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new ry({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];s+=a,e=this.nextToken}i=iy(s,"@"),o=uy(oy(ny([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||s.length,f=s.slice(a,c),p;if(~i.indexOf(a))p=new Hm({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Zm({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Xm:Yu)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ty({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Sy={};Js(Sy,{languages:()=>pi,options:()=>di,parsers:()=>Ks,printers:()=>Ey});var hl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},_=hl;var Me="string",Be="array",Ue="cursor",we="indent",ge="align",Fe="trim",ve="group",xe="fill",oe="if-break",$e="indent-if-break",We="line-suffix",Ye="line-suffix-boundary",K="line",ze="label",be="break-parent",_t=new Set([Ue,we,ge,Fe,ve,xe,oe,$e,We,Ye,K,ze,be]);function dl(t){if(typeof t=="string")return Me;if(Array.isArray(t))return Be;if(!t)return;let{type:e}=t;if(_t.has(e))return e}var Ve=dl;var ml=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function yl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Ve(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=ml([..._t].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var Fr=class extends Error{name="InvalidDocError";constructor(e){super(yl(e)),this.doc=e}},$r=Fr;var Zs=()=>{},ae=Zs,kt=Zs;function q(t){return ae(t),{type:we,contents:t}}function en(t,e){return ae(e),{type:ge,contents:e,n:t}}function L(t,e={}){return ae(t),kt(e.expandedStates,!0),{type:ve,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function tn(t){return en({type:"root"},t)}function ue(t){return en(-1,t)}function Ge(t){return kt(t),{type:xe,parts:t}}function Et(t,e="",s={}){return ae(t),e!==""&&ae(e),{type:oe,breakContents:t,flatContents:e,groupId:s.groupId}}var je={type:be};var wl={type:K,hard:!0};var A={type:K},M={type:K,soft:!0},E=[wl,je];function V(t,e){ae(t),kt(e);let s=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},G=gl;function vl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(Ve(i)){case Be:return e(i.map(r));case xe:return e({...i,parts:i.parts.map(r)});case oe:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ve:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case ge:case we:case $e:case ze:case We:return e({...i,contents:r(i.contents)});case Me:case Ue:case Fe:case Ye:case K:case be:return e(i);default:throw new $r(i)}}}function xl(t){return t.type===K&&!t.hard?t.soft?"":" ":t.type===oe?t.flatContents:t}function rn(t){return vl(t,xl)}function bl(t){return Array.isArray(t)&&t.length>0}var ee=bl;var St="'",sn='"';function _l(t,e){let s=e===!0||e===St?St:sn,r=s===St?sn:St,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var nn=_l;function kl(t,e,s){let r=e==='"'?"'":'"',i=_(!1,t,/\\(.)|(["'])/gsu,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return e+i+e}var on=kl;function El(t,e){let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":nn(s,e.singleQuote);return on(s,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var Tt=El;var Wr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},an=Wr;function Sl(t){return(t==null?void 0:t.type)==="front-matter"}var _e=Sl;var Tl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un(t,e,s){if(_e(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||_e(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&G(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Ol(t.value)),t.type==="selector-combinator"&&(e.value=_(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=_(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=_(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=_(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=_(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}un.ignoredProperties=Tl;function Ol(t){return _(!1,_(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var ln=un;async function Cl(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return tn([t.startDelimiter,t.explicitLanguage,E,r,r?E:"",t.endDelimiter])}}var cn=Cl;function fn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await cn(e,s);return r?[r,E]:void 0}}fn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var pn=fn;var He=null;function Ke(t){if(He!==null&&typeof He.property){let e=He;return He=Ke.prototype=null,e}return He=Ke.prototype=t??Object.create(null),new Ke}var Al=10;for(let t=0;t<=Al;t++)Ke();function Yr(t){return Ke(t)}function Nl(t,e="type"){Yr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var hn=Nl;var Pl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},dn=Pl;var Rl=hn(dn),mn=Rl;function Il(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o_n(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${_n(o[0],c)[0]}${i}`}}let u=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?u:"")+(t&&o.length>0?n+s:"")+a+i}function _n(t,e){return[...En,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function Fl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` -`);return e===-1?t:t.slice(0,e)}var An=Fl;function Nn(t){let e=An(t);e&&(t=t.slice(e.length+1));let s=Sn(t),{pragmas:r,comments:n}=On(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Pn(t){let{pragmas:e}=Nn(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Rn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Nn(t),i=Tn(s),o=Cn({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e} +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new zc(n),this.tokenizer=Yc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),ys.exports.isInlineComment.bind(this)(t)}return!1}}});var co=g((Uv,lo)=>{lo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var po=g((Fv,fo)=>{var Vc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Gc=/\.[0-9]/,jc=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Vc.test(e)===!1&&Gc.test(e)===!1};fo.exports={isMixinToken:jc}});var mo=g(($v,ho)=>{var Hc=Jt(),Kc=/^url\((.+)\)/;ho.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Hc({css:s});for(t.filename=s.replace(Kc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var vo=g((Wv,wo)=>{var yo=/:$/,go=/^:(\s+)?/;wo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(yo.test(e)){let[r]=e.match(yo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(go.test(s)){let[r]=s.match(go);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var _o=g((zv,bo)=>{var Qc=Re(),Jc=Xt(),{isInlineComment:Xc}=uo(),{interpolation:xo}=co(),{isMixinToken:Zc}=po(),ef=mo(),tf=vo(),rf=/(!\s*important)$/i;bo.exports=class extends Jc{constructor(...e){super(...e),this.lastNode=null}atrule(e){xo.bind(this)(e)||(super.atrule(e),ef(this.lastNode),tf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new Qc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),y=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(y,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],y=[p[4],p[5]],h=["word",u.map(d=>d[1]).join("")].concat(l,y);e.splice(f,u.length,h)}let a=e.findIndex(c=>rf.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){Xc.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),xo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Zc(s)){this.mixin(e);return}super.unknownWord(e)}}});var Eo=g((Gv,ko)=>{var sf=zt();ko.exports=class extends sf{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var So=g((jv,gs)=>{var nf=qe(),of=_o(),af=Eo();gs.exports={parse(t,e){let s=new nf(t,e),r=new of(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:c.line,column:c.col}}}),r.root},stringify(t,e){new af(e).stringify(t)},nodeToString(t){let e="";return gs.exports.stringify(t,s=>{e+=s}),e}}});var er=g((Hv,Oo)=>{"use strict";var uf=ue(),To,Co,ye=class extends uf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new To(new Co,this,e).stringify()}};ye.registerLazyResult=t=>{To=t};ye.registerProcessor=t=>{Co=t};Oo.exports=ye;ye.default=ye});var No=g((Kv,Ao)=>{"use strict";var lf=jt(),cf=Re(),ff=mt(),pf=qe(),hf=ls(),df=De(),mf=Ht();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:pf.prototype};i.map&&(i.map={...i.map,__proto__:hf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new df(r);if(r.type==="decl")return new ff(r);if(r.type==="rule")return new mf(r);if(r.type==="comment")return new cf(r);if(r.type==="atrule")return new lf(r);throw new Error("Unknown node type: "+t.type)}Ao.exports=wt;wt.default=wt});var ws=g((Qv,Po)=>{Po.exports=class{generate(){}}});var vs=g((Xv,Ro)=>{"use strict";var vt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Ro.exports=vt;vt.default=vt});var tr=g((Zv,Io)=>{"use strict";var yf=vs(),xt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new yf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Io.exports=xt;xt.default=xt});var xs=g((ex,Lo)=>{"use strict";var qo={};Lo.exports=function(e){qo[e]||(qo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ks=g((rx,Uo)=>{"use strict";var gf=ue(),wf=er(),vf=ws(),xf=gt(),Do=tr(),bf=De(),_f=ut(),{isClean:j,my:kf}=Vt(),tx=xs(),Ef={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Tf={Once:!0,postcssPlugin:!0,prepare:!0},Me=0;function bt(t){return typeof t=="object"&&typeof t.then=="function"}function Mo(t){let e=!1,s=Ef[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Me,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Me,s+"Exit"]:[s,s+"Exit"]}function Bo(t){let e;return t.type==="document"?e=["Document",Me,"DocumentExit"]:t.type==="root"?e=["Root",Me,"RootExit"]:e=Mo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function bs(t){return t[j]=!1,t.nodes&&t.nodes.forEach(e=>bs(e)),t}var _s={},ce=class t{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=bs(s);else if(s instanceof t||s instanceof Do)n=bs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=xf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[kf]&&gf.rebuild(n)}this.result=new Do(e,n,r),this.helpers={..._s,postcss:_s,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Sf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Tf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(bt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return bt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=_f;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new vf(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(bt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];)e[j]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(bt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[j]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ce.registerPostcss=t=>{_s=t};Uo.exports=ce;ce.default=ce;bf.registerLazyResult(ce);wf.registerLazyResult(ce)});var $o=g((nx,Fo)=>{"use strict";var Cf=ws(),Of=gt(),Af=tr(),Nf=ut(),sx=xs(),_t=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Nf;this.result=new Af(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Cf(i,n,this._opts,s);if(u.isMap()){let[a,c]=u.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Of;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};Fo.exports=_t;_t.default=_t});var Yo=g((ix,Wo)=>{"use strict";var Pf=er(),Rf=ks(),If=$o(),qf=De(),ge=class{constructor(e=[]){this.version="8.4.49",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new If(this,e,s):new Rf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Wo.exports=ge;ge.default=ge;qf.registerProcessor(ge);Pf.registerProcessor(ge)});var rr=g((ox,Qo)=>{"use strict";var zo=jt(),Vo=Re(),Lf=ue(),Df=Yt(),Go=mt(),jo=er(),Bf=No(),Mf=qe(),Uf=ks(),Ff=ds(),$f=pt(),Wf=gt(),Es=Yo(),Yf=tr(),Ho=De(),Ko=Ht(),zf=ut(),Vf=vs();function E(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Es(t)}E.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Es().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return E([n(a)]).process(o,u)},n};E.stringify=zf;E.parse=Wf;E.fromJSON=Bf;E.list=Ff;E.comment=t=>new Vo(t);E.atRule=t=>new zo(t);E.decl=t=>new Go(t);E.rule=t=>new Ko(t);E.root=t=>new Ho(t);E.document=t=>new jo(t);E.CssSyntaxError=Df;E.Declaration=Go;E.Container=Lf;E.Processor=Es;E.Document=jo;E.Comment=Vo;E.Warning=Vf;E.AtRule=zo;E.Result=Yf;E.Input=Mf;E.Rule=Ko;E.Root=Ho;E.Node=$f;Uf.registerPostcss(E);Qo.exports=E;E.default=E});var Xo=g((ax,Jo)=>{var{Container:Gf}=rr(),Ss=class extends Gf{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Jo.exports=Ss});var ta=g((ux,ea)=>{"use strict";var sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jf=/.[\r\n"'(/\\]/,Zo=/[\da-f]/i,ir=/[\n\f\r]/g;ea.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function N(){return m.length===0&&h>=x}function F(){let T=1,C=!1,O=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===92?O=!O:O&&(O=!1):i===39||i===34?C=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function H(T){if(m.length)return m.pop();if(h>=x)return;let C=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);y=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);y=[O,O,h];break}case 44:{y=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),y=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||jf.test(a)?y=["(","(",h]:(y=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o{var{Comment:Hf}=rr(),Kf=Xt(),Qf=Xo(),Jf=ta(),Ts=class extends Kf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Hf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Jf(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new Qf;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};ra.exports=Ts});var ia=g((cx,na)=>{var{Input:Xf}=rr(),Zf=sa();na.exports=function(e,s){let r=new Xf(e,s),n=new Zf(r);return n.parse(),n.root}});var Os=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});function tp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Cs.default=tp});var Ns=g(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var rp=Os(),aa=sp(rp);function sp(t){return t&&t.__esModule?t:{default:t}}function kt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}kt.prototype=Object.create(aa.default.prototype);kt.constructor=aa.default;kt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.parseMediaFeature=ca;Et.parseMediaQuery=Rs;Et.parseMediaList=op;var np=Os(),ua=la(np),ip=Ns(),Ps=la(ip);function la(t){return t&&t.__esModule?t:{default:t}}function ca(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function op(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new ua.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.default=fp;var ap=Ns(),up=cp(ap),lp=fa();function cp(t){return t&&t.__esModule?t:{default:t}}function fp(t){return new up.default({nodes:(0,lp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Ls=g((vx,ma)=>{ma.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{ya.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Bs=g((bx,ga)=>{"use strict";function dp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";or.__esModule=!0;var wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function gp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var wp=function t(e,s){if((typeof e>"u"?"undefined":wa(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":wa(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},vp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=wp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();or.default=vp;va.exports=or.default});var D=g(M=>{"use strict";M.__esModule=!0;var _x=M.TAG="tag",kx=M.STRING="string",Ex=M.SELECTOR="selector",Sx=M.ROOT="root",Tx=M.PSEUDO="pseudo",Cx=M.NESTING="nesting",Ox=M.ID="id",Ax=M.COMMENT="comment",Nx=M.COMBINATOR="combinator",Px=M.CLASS="class",Rx=M.ATTRIBUTE="attribute",Ix=M.UNIVERSAL="universal"});var ur=g((ar,xa)=>{"use strict";ar.__esModule=!0;var xp=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";lr.__esModule=!0;var Np=ur(),Pp=Ip(Np),Rp=D();function Ip(t){return t&&t.__esModule?t:{default:t}}function qp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Dp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bp=function(t){Dp(e,t);function e(s){qp(this,e);var r=Lp(this,t.call(this,s));return r.type=Rp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Pp.default);lr.default=Bp;ba.exports=lr.default});var Ea=g((cr,ka)=>{"use strict";cr.__esModule=!0;var Mp=ur(),Up=$p(Mp),Fp=D();function $p(t){return t&&t.__esModule?t:{default:t}}function Wp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vp=function(t){zp(e,t);function e(s){Wp(this,e);var r=Yp(this,t.call(this,s));return r.type=Fp.SELECTOR,r}return e}(Up.default);cr.default=Vp;ka.exports=cr.default});var Ue=g((fr,Sa)=>{"use strict";fr.__esModule=!0;var Gp=function(){function t(e,s){for(var r=0;r{"use strict";pr.__esModule=!0;var eh=Ue(),th=sh(eh),rh=D();function sh(t){return t&&t.__esModule?t:{default:t}}function nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ih(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function oh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ah=function(t){oh(e,t);function e(s){nh(this,e);var r=ih(this,t.call(this,s));return r.type=rh.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(th.default);pr.default=ah;Ta.exports=pr.default});var Aa=g((hr,Oa)=>{"use strict";hr.__esModule=!0;var uh=we(),lh=fh(uh),ch=D();function fh(t){return t&&t.__esModule?t:{default:t}}function ph(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mh=function(t){dh(e,t);function e(s){ph(this,e);var r=hh(this,t.call(this,s));return r.type=ch.COMMENT,r}return e}(lh.default);hr.default=mh;Oa.exports=hr.default});var Pa=g((dr,Na)=>{"use strict";dr.__esModule=!0;var yh=Ue(),gh=vh(yh),wh=D();function vh(t){return t&&t.__esModule?t:{default:t}}function xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kh=function(t){_h(e,t);function e(s){xh(this,e);var r=bh(this,t.call(this,s));return r.type=wh.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(gh.default);dr.default=kh;Na.exports=dr.default});var Ia=g((mr,Ra)=>{"use strict";mr.__esModule=!0;var Eh=Ue(),Sh=Ch(Eh),Th=D();function Ch(t){return t&&t.__esModule?t:{default:t}}function Oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Nh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ph=function(t){Nh(e,t);function e(s){Oh(this,e);var r=Ah(this,t.call(this,s));return r.type=Th.TAG,r}return e}(Sh.default);mr.default=Ph;Ra.exports=mr.default});var La=g((yr,qa)=>{"use strict";yr.__esModule=!0;var Rh=we(),Ih=Lh(Rh),qh=D();function Lh(t){return t&&t.__esModule?t:{default:t}}function Dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Mh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Uh=function(t){Mh(e,t);function e(s){Dh(this,e);var r=Bh(this,t.call(this,s));return r.type=qh.STRING,r}return e}(Ih.default);yr.default=Uh;qa.exports=yr.default});var Ba=g((gr,Da)=>{"use strict";gr.__esModule=!0;var Fh=ur(),$h=Yh(Fh),Wh=D();function Yh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jh=function(t){Gh(e,t);function e(s){zh(this,e);var r=Vh(this,t.call(this,s));return r.type=Wh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}($h.default);gr.default=jh;Da.exports=gr.default});var Ua=g((wr,Ma)=>{"use strict";wr.__esModule=!0;var Hh=Ue(),Kh=Jh(Hh),Qh=D();function Jh(t){return t&&t.__esModule?t:{default:t}}function Xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ed(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var td=function(t){ed(e,t);function e(s){Xh(this,e);var r=Zh(this,t.call(this,s));return r.type=Qh.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Kh.default);wr.default=td;Ma.exports=wr.default});var $a=g((vr,Fa)=>{"use strict";vr.__esModule=!0;var rd=Ue(),sd=id(rd),nd=D();function id(t){return t&&t.__esModule?t:{default:t}}function od(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ud(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ld=function(t){ud(e,t);function e(s){od(this,e);var r=ad(this,t.call(this,s));return r.type=nd.UNIVERSAL,r.value="*",r}return e}(sd.default);vr.default=ld;Fa.exports=vr.default});var Ya=g((xr,Wa)=>{"use strict";xr.__esModule=!0;var cd=we(),fd=hd(cd),pd=D();function hd(t){return t&&t.__esModule?t:{default:t}}function dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gd=function(t){yd(e,t);function e(s){dd(this,e);var r=md(this,t.call(this,s));return r.type=pd.COMBINATOR,r}return e}(fd.default);xr.default=gd;Wa.exports=xr.default});var Va=g((br,za)=>{"use strict";br.__esModule=!0;var wd=we(),vd=bd(wd),xd=D();function bd(t){return t&&t.__esModule?t:{default:t}}function _d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ed(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sd=function(t){Ed(e,t);function e(s){_d(this,e);var r=kd(this,t.call(this,s));return r.type=xd.NESTING,r.value="&",r}return e}(vd.default);br.default=Sd;za.exports=br.default});var ja=g((_r,Ga)=>{"use strict";_r.__esModule=!0;_r.default=Td;function Td(t){return t.sort(function(e,s){return e-s})}Ga.exports=_r.default});var ru=g((Sr,tu)=>{"use strict";Sr.__esModule=!0;Sr.default=Bd;var Ha=39,Cd=34,Ms=92,Ka=47,St=10,Us=32,Fs=12,$s=9,Ws=13,Qa=43,Ja=62,Xa=126,Za=124,Od=44,Ad=40,Nd=41,Pd=91,Rd=93,Id=59,eu=42,qd=58,Ld=38,Dd=64,kr=/[ \n\t\r\{\(\)'"\\;/]/g,Er=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Bd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,c=void 0,f=void 0,p=void 0,l=void 0,y=void 0,x=s.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)s+=N,n=s.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+u,p=n-o[u].length):(f=d,p=h),e.push(["comment",a,d,m-h,f,n-p,m]),h=p,d=f,m=n):(Er.lastIndex=m+1,Er.test(s),Er.lastIndex===0?n=s.length-1:n=Er.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}tu.exports=Sr.default});var iu=g((Tr,nu)=>{"use strict";Tr.__esModule=!0;var Md=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new om.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new cm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new rm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new um.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var c=(0,Ys.default)(o,"."),f=(0,Ys.default)(o,"#"),p=(0,Ys.default)(o,"#{");p.length&&(f=f.filter(function(y){return!~p.indexOf(y)}));var l=(0,dm.default)((0,Yd.default)((0,Fd.default)([[0],c,f])));l.forEach(function(y,x){var h=l[x+1]||o.length,d=o.slice(y,h);if(x===0&&r)return r.call(n,d,l.length);var m=void 0;~c.indexOf(y)?m=new Hd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(y)?m=new Xd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):m=new em.default({value:d,source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Cr.__esModule=!0;var bm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new km.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},bm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Cr.default=Tm;ou.exports=Cr.default});var G=g((Mx,lu)=>{"use strict";var Vs=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>Vs(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=Vs(n)),s[r]=n)}return s};lu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=Vs(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var Om=G(),Fe=class extends Om{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Fe.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Fe.prototype[e]&&(Fe.prototype[e]=function(s){return this.walkType(t,s)})};cu.exports=Fe});var pu=g(($x,fu)=>{"use strict";var Am=U();fu.exports=class extends Am{constructor(e){super(e),this.type="root"}}});var du=g((Yx,hu)=>{"use strict";var Nm=U();hu.exports=class extends Nm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var gu=g((zx,yu)=>{"use strict";var mu=U(),Or=class extends mu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};mu.registerWalker(Or);yu.exports=Or});var vu=g((Vx,wu)=>{"use strict";var Pm=U(),Rm=G(),Ar=class extends Rm{constructor(e){super(e),this.type="colon"}};Pm.registerWalker(Ar);wu.exports=Ar});var bu=g((Gx,xu)=>{"use strict";var Im=U(),qm=G(),Nr=class extends qm{constructor(e){super(e),this.type="comma"}};Im.registerWalker(Nr);xu.exports=Nr});var ku=g((jx,_u)=>{"use strict";var Lm=U(),Dm=G(),Pr=class extends Dm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Lm.registerWalker(Pr);_u.exports=Pr});var Tu=g((Hx,Su)=>{"use strict";var Eu=U(),Rr=class extends Eu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Eu.registerWalker(Rr);Su.exports=Rr});var Ou=g((Kx,Cu)=>{"use strict";var Bm=U(),Mm=G(),Ir=class extends Mm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Bm.registerWalker(Ir);Cu.exports=Ir});var Nu=g((Qx,Au)=>{"use strict";var Um=U(),Fm=G(),qr=class extends Fm{constructor(e){super(e),this.type="operator"}};Um.registerWalker(qr);Au.exports=qr});var Ru=g((Jx,Pu)=>{"use strict";var $m=U(),Wm=G(),Lr=class extends Wm{constructor(e){super(e),this.type="paren",this.parenType=""}};$m.registerWalker(Lr);Pu.exports=Lr});var qu=g((Xx,Iu)=>{"use strict";var Ym=U(),zm=G(),Dr=class extends zm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Ym.registerWalker(Dr);Iu.exports=Dr});var Du=g((Zx,Lu)=>{"use strict";var Vm=U(),Gm=G(),Br=class extends Gm{constructor(e){super(e),this.type="word"}};Vm.registerWalker(Br);Lu.exports=Br});var Mu=g((eb,Bu)=>{"use strict";var jm=U(),Hm=G(),Mr=class extends Hm{constructor(e){super(e),this.type="unicode-range"}};jm.registerWalker(Mr);Bu.exports=Mr});var Fu=g((tb,Uu)=>{"use strict";var Gs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Uu.exports=Gs});var Yu=g((rb,Wu)=>{"use strict";var Ur=/[ \n\t\r\{\(\)'"\\;,/]/g,Km=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,$e=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Qm=/^[a-z0-9]/i,Jm=/^[a-f0-9?\-]/i,$u=Fu();Wu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,c=0,f=null,p,l,y,x,h,d,m,b,w,v,N,F;function H(T){let C=`Unclosed ${T} at line: ${u}, column: ${a-o}, token: ${a}`;throw new $u(C)}function W(){let T=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new $u(T)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,l-o,a]);break;case 41:c--,f=f&&c>0,r.push([")",")",u,a-o,u,l-o,a]);break;case 39:case 34:y=p===39?"'":'"',l=a;do for(v=!1,l=n.indexOf(y,l+1),l===-1&&H("quote",y),N=l;n.charCodeAt(N-1)===92;)N-=1,v=!v;while(v);r.push(["string",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 64:Ur.lastIndex=a+1,Ur.test(n),Ur.lastIndex===0?l=n.length-1:l=Ur.lastIndex-2,r.push(["atword",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 92:l=a,p=n.charCodeAt(l+1),m&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 43:case 45:case 42:l=a+1,F=n.slice(a+1,l+1);let T=n.slice(a-1,a);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break}r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break;default:if(p===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)l=n.indexOf("*/",a+2)+1,l===0&&H("comment","*/");else{let O=n.indexOf(` +`,a+2);l=O!==-1?O-1:i}d=n.slice(a,l+1),x=d.split(` +`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",d,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!Qm.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(C=$e),C.lastIndex=a+1,C.test(n),C.lastIndex===0?l=n.length-1:l=C.lastIndex-2,C===$e||p===46){let O=n.charCodeAt(l),ve=n.charCodeAt(l+1),Js=n.charCodeAt(l+2);(O===101||O===69)&&(ve===45||ve===43)&&Js>=48&&Js<=57&&($e.lastIndex=l+2,$e.test(n),$e.lastIndex===0?l=n.length-1:l=$e.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Vu=g((sb,zu)=>{"use strict";var js=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};zu.exports=js});var Ku=g((ib,Hu)=>{"use strict";var Xm=pu(),Zm=du(),ey=gu(),ty=vu(),ry=bu(),sy=ku(),ny=Tu(),iy=Ou(),oy=Nu(),Gu=Ru(),ay=qu(),ju=Du(),uy=Mu(),ly=Yu(),cy=Ls(),fy=Ds(),py=Bs(),hy=Vu();function dy(t){return t.sort((e,s)=>e-s)}Hu.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new Xm;let n=new Zm;this.root.append(n),this.current=n,this.tokens=ly(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new ty({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new ry({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new sy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new hy(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new oy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new uy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=fy(s,"@"),o=dy(py(cy([[0],i]))),o.forEach((u,a)=>{let c=o[a+1]||s.length,f=s.slice(u,c),p;if(~i.indexOf(u))p=new ey({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new iy({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a],unit:l})}else p=new(e&&e[0]==="("?ny:ju)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ay({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Py={};Xs(Py,{languages:()=>yi,options:()=>wi,parsers:()=>Qs,printers:()=>Ny});var wl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},k=wl;var We="string",Ye="array",ze="cursor",te="indent",be="align",Ve="trim",re="group",se="fill",pe="if-break",Ge="indent-if-break",_e="line-suffix",je="line-suffix-boundary",K="line",He="label",ke="break-parent",Ct=new Set([ze,te,be,Ve,re,se,pe,Ge,_e,je,K,He,ke]);function vl(t){if(typeof t=="string")return We;if(Array.isArray(t))return Ye;if(!t)return;let{type:e}=t;if(Ct.has(e))return e}var Q=vl;var xl=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function bl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Q(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=xl([...Ct].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var Wr=class extends Error{name="InvalidDocError";constructor(e){super(bl(e)),this.doc=e}},Yr=Wr;var en=()=>{},ne=en,Ee=en;function q(t){return ne(t),{type:te,contents:t}}function tn(t,e){return ne(e),{type:be,contents:e,n:t}}function L(t,e={}){return ne(t),Ee(e.expandedStates,!0),{type:re,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function rn(t){return tn({type:"root"},t)}function ie(t){return tn(-1,t)}function Se(t){return Ee(t),{type:se,parts:t}}function Ot(t,e="",s={}){return ne(t),e!==""&&ne(e),{type:pe,breakContents:t,flatContents:e,groupId:s.groupId}}function sn(t){return ne(t),{type:_e,contents:t}}var Ke={type:ke};var _l={type:K,hard:!0};var A={type:K},B={type:K,soft:!0},S=[_l,Ke];function Y(t,e){ne(t),Ee(e);let s=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},$=kl;function El(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(Q(i)){case Ye:return e(i.map(r));case se:return e({...i,parts:i.parts.map(r)});case pe:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case re:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case be:case te:case Ge:case He:case _e:return e({...i,contents:r(i.contents)});case We:case ze:case Ve:case je:case K:case ke:return e(i);default:throw new Yr(i)}}}function Sl(t){return t.type===K&&!t.hard?t.soft?"":" ":t.type===pe?t.flatContents:t}function nn(t){return El(t,Sl)}function Tl(t){return Array.isArray(t)&&t.length>0}var oe=Tl;var on=new Proxy(()=>{},{get:()=>on}),an=on;var At="'",un='"';function Cl(t,e){let s=e===!0||e===At?At:un,r=s===At?un:At,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var ln=Cl;function Ol(t,e,s){let r=e==='"'?"'":'"',i=k(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var cn=Ol;function Al(t,e){an(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":ln(s,e.singleQuote);return t.charAt(0)===r?t:cn(s,r,!1)}var Nt=Al;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},fn=zr;function Nl(t){return(t==null?void 0:t.type)==="front-matter"}var Te=Nl;var Pl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function pn(t,e,s){if(Te(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Te(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Rl(t.value)),t.type==="selector-combinator"&&(e.value=k(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=k(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=k(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=k(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=k(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}pn.ignoredProperties=Pl;function Rl(t){return k(!1,k(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var hn=pn;async function Il(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return rn([t.startDelimiter,t.explicitLanguage,S,r,r?S:"",t.endDelimiter])}}var dn=Il;function mn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await dn(e,s);return r?[r,S]:void 0}}mn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var yn=mn;var Qe=null;function Je(t){if(Qe!==null&&typeof Qe.property){let e=Qe;return Qe=Je.prototype=null,e}return Qe=Je.prototype=t??Object.create(null),new Je}var ql=10;for(let t=0;t<=ql;t++)Je();function Vr(t){return Je(t)}function Ll(t,e="type"){Vr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var gn=Ll;var Dl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},wn=Dl;var Bl=gn(wn),vn=Bl;function Ml(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&oTn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Tn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Tn(t,e){return[...On,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function Vl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +`);return e===-1?t:t.slice(0,e)}var In=Vl;function qn(t){let e=In(t);e&&(t=t.slice(e.length+1));let s=An(t),{pragmas:r,comments:n}=Pn(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Ln(t){let{pragmas:e}=qn(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Dn(t){let{shebang:e,text:s,pragmas:r,comments:n}=qn(t),i=Nn(s),o=Rn({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e} `:"")+o+(i.startsWith(` `)?` `:` -`)+i}var Qe=3;function $l(t){let e=t.slice(0,Qe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` -`,Qe);if(s===-1)return;let r=t.slice(Qe,s).trim(),n=t.indexOf(` +`)+i}var Xe=3;function Gl(t){let e=t.slice(0,Xe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` +`,Xe);if(s===-1)return;let r=t.slice(Xe,s).trim(),n=t.indexOf(` ${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` -...`,s)),n===-1)return;let o=n+1+Qe,a=t.charAt(o+1);if(!/\s?/u.test(a))return;let u=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:u.slice(-Qe),raw:u}}function Wl(t){let e=$l(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:_(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Je=Wl;function In(t){return Pn(Je(t).content)}function qn(t){let{frontMatter:e,content:s}=Je(t);return(e?e.raw+` +...`,s)),n===-1)return;let o=n+1+Xe,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Xe),raw:a}}function jl(t){let e=Gl(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:k(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ze=jl;function Bn(t){return Ln(Ze(t).content)}function Mn(t){let{frontMatter:e,content:s}=Ze(t);return(e?e.raw+` -`:"")+Rn(s)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var zl=new Set(["initial","inherit","unset","revert"]);function Dn(t){return zl.has(t.toLowerCase())}function Mn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function te(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function ke(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Bn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Ee(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Un(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function Fn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function $n(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Wn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function Yn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function zn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Vn(t){return t.type==="value-word"&&t.value==="in"}function Nt(t){return t.type==="value-operator"&&t.value==="*"}function Xe(t){return t.type==="value-operator"&&t.value==="/"}function Q(t){return t.type==="value-operator"&&t.value==="+"}function le(t){return t.type==="value-operator"&&t.value==="-"}function Vl(t){return t.type==="value-operator"&&t.value==="%"}function Pt(t){return Nt(t)||Xe(t)||Q(t)||le(t)||Vl(t)}function Gn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function jn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Ze(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Hr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Rt(t){return t.name.startsWith("prettier-placeholder")}function Hn(t){return t.prop.startsWith("@prettier-placeholder")}function Kn(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function Qn(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function Jn(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function ce(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function It(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function jr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&It(t.groups[0])}function Kr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!jr(s)&&!(r&&jr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||jr(r)||r.type==="value-func")}function Qr(t){return t.type==="value-comment"&&t.inline}function qt(t){return t.type==="value-word"&&t.value==="#"}function Jr(t){return t.type==="value-word"&&t.value==="{"}function Lt(t){return t.type==="value-word"&&t.value==="}"}function et(t){return["value-word","value-atword"].includes(t.type)}function Dt(t){return(t==null?void 0:t.type)==="value-colon"}function Xn(t,e){if(!It(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:Dt(s[r+1])}function Zn(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ei(t){return t.type!=="value-func"?!1:Yl.has(t.value.toLowerCase())}function Se(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function ti(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function rt(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function Gl(t,e,s){var d;let{node:r}=t,n=t.parent,i=t.grandparent,o=Ln(t),a=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&Ze(u,e),f=r.groups.some(m=>Qr(m)),p=t.map(s,"groups"),l=[],w=ke(t,"url"),x=!1,h=!1;for(let m=0;mme:C!==-1?x=!0:me!==-1&&(x=!1)}if(x||Dt(g)||Dt(v)||g.type==="value-atword"&&(g.value===""||g.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||g.value==="~"||g.type!=="value-string"&&g.value&&g.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&g.type==="value-operator"&&g.value==="/"||g.value==="\\"||Kn(g,v)||qt(g)||Jr(g)||Lt(v)||Jr(v)&&ce(v)||Lt(g)&&ce(v)||g.value==="--"&&qt(v))continue;let F=Pt(g),H=Pt(v);if((F&&qt(v)||H&&Lt(g))&&ce(v)||!b&&Xe(g)||ke(t,"calc")&&(Q(g)||Q(v)||le(g)||le(v))&&ce(v))continue;let $=(Q(g)||le(g))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&ei(i)&&!ce(v),T=(R==null?void 0:R.type)==="value-func"||R&&et(R)||g.type==="value-func"||et(g),O=v.type==="value-func"||et(v)||(b==null?void 0:b.type)==="value-func"||b&&et(b);if(e.parser==="scss"&&F&&g.value==="-"&&v.type==="value-func"&&P(g)!==N(v)){l.push(" ");continue}if(!(!(Nt(v)||Nt(g))&&!ke(t,"calc")&&!$&&(Xe(v)&&!T||Xe(g)&&!O||Q(v)&&!T||Q(g)&&!O||le(v)||le(g))&&(ce(v)||F&&(!b||b&&Pt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&g.value==="-"&&rt(v)&&P(g)===N(v.open)&&v.open.value==="(")){if(Qr(g)){if(n.type==="value-paren_group"){l.push(ue(E));continue}l.push(E);continue}if(c&&(Gn(v)||jn(v)||zn(v)||Vn(g)||Yn(g))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){g.source&&v.source&&g.source.start.line!==v.source.start.line?(l.push(E),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(tt(g)&&tt(v)&&P(g)===N(v))){if(tt(g)&&rt(v)&&P(g)===N(v.open)){l.push(M);continue}if(g.value==="with"&&rt(v)){l.push(" ");continue}(d=g.value)!=null&&d.endsWith("#")&&v.value==="{"&&rt(v.group)||l.push(A)}}}return f&&l.push(je),h&&l.unshift(E),c?L(q(l)):Un(t)?L(Ge(l)):L(q(Ge(l)))}var ri=Gl;function jl(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var si=jl;var Xr=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function ni(t){let e=t.toLowerCase();return Xr.has(e)?Xr.get(e):t}var ii=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Hl=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,Kl=/[a-z]+/giu,Ql=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,Jl=new RegExp(ii.source+`|(${Ql.source})?(${Hl.source})(${Kl.source})?`,"giu");function W(t,e){return _(!1,t,ii,s=>Tt(s,e))}function oi(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function fe(t){return _(!1,t,Jl,(e,s,r,n,i)=>!r&&n?Zr(n)+te(i||""):e)}function Zr(t){return si(t).replace(/\.0(?=$|e)/u,"")}function ai(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Xl(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` +`:"")+Dn(s)}var Hl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Un(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var Kl=new Set(["initial","inherit","unset","revert"]);function Fn(t){return Kl.has(t.toLowerCase())}function $n(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ae(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ce(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Wn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Oe(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Yn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Vn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Gn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function jn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Hn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Kn(t){return t.type==="value-word"&&t.value==="in"}function qt(t){return t.type==="value-operator"&&t.value==="*"}function et(t){return t.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Ql(t){return t.type==="value-operator"&&t.value==="%"}function Lt(t){return qt(t)||et(t)||J(t)||he(t)||Ql(t)}function Qn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Jn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function tt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Qr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Dt(t){return t.name.startsWith("prettier-placeholder")}function Xn(t){return t.prop.startsWith("@prettier-placeholder")}function Zn(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ei(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function ti(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Bt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Kr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Bt(t.groups[0])}function Jr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Kr(s)&&!(r&&Kr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Kr(r)||r.type==="value-func")}function Ae(t){return t.type==="value-comment"&&t.inline}function Mt(t){return t.type==="value-word"&&t.value==="#"}function Xr(t){return t.type==="value-word"&&t.value==="{"}function Ut(t){return t.type==="value-word"&&t.value==="}"}function rt(t){return["value-word","value-atword"].includes(t.type)}function st(t){return(t==null?void 0:t.type)==="value-colon"}function ri(t,e){if(!Bt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:st(s[r+1])}function si(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ni(t){return t.type!=="value-func"?!1:Hl.has(t.value.toLowerCase())}function Ne(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function nt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function ii(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function it(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function Jl(t,e,s){var d;let{node:r}=t,n=t.parent,i=t.grandparent,o=Un(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(m=>m.type==="css-atrule"),c=a&&tt(a,e),f=r.groups.some(m=>Ae(m)),p=t.map(s,"groups"),l=[""],y=Ce(t,"url"),x=!1,h=!1;for(let m=0;m2&&r.groups.slice(0,m).every(O=>O.type==="value-comment")&&!Ae(b)&&(l[l.length-2]=ie($(!1,l,-2))),Oe(t,"forward")&&w.type==="value-word"&&w.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||!v||w.type==="value-word"&&w.value.endsWith("-")&&nt(v))continue;if(w.type==="value-string"&&w.quoted){let O=w.value.lastIndexOf("#{"),ve=w.value.lastIndexOf("}");O!==-1&&ve!==-1?x=O>ve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||st(w)||st(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||Zn(w,v)||Mt(w)||Xr(w)||Ut(v)||Xr(v)&&de(v)||Ut(w)&&de(v)||w.value==="--"&&Mt(v))continue;let F=Lt(w),H=Lt(v);if((F&&Mt(v)||H&&Ut(w))&&de(v)||!b&&et(w)||Ce(t,"calc")&&(J(w)||J(v)||he(w)||he(v))&&de(v))continue;let W=(J(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&ni(i)&&!de(v),T=(N==null?void 0:N.type)==="value-func"||N&&rt(N)||w.type==="value-func"||rt(w),C=v.type==="value-func"||rt(v)||(b==null?void 0:b.type)==="value-func"||b&&rt(b);if(e.parser==="scss"&&F&&w.value==="-"&&v.type==="value-func"&&R(w)!==P(v)){l.push([l.pop()," "]);continue}if(!(!(qt(v)||qt(w))&&!Ce(t,"calc")&&!W&&(et(v)&&!T||et(w)&&!C||J(v)&&!T||J(w)&&!C||he(v)||he(w))&&(de(v)||F&&(!b||b&&Lt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&w.value==="-"&&it(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(Ae(w)){if(n.type==="value-paren_group"){l.push(ie(S),"");continue}l.push(S,"");continue}if(c&&(Qn(v)||Jn(v)||Hn(v)||Kn(w)||jn(w))){l.push([l.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){l.push([l.pop()," "]);continue}if(u){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(S,""),h=!0):l.push([l.pop()," "]);continue}if(H){l.push([l.pop()," "]);continue}if((v==null?void 0:v.value)!=="..."&&!(nt(w)&&nt(v)&&R(w)===P(v))){if(nt(w)&&it(v)&&R(w)===P(v.open)){l.push(B,"");continue}if(w.value==="with"&&it(v)){l=[[Se(l)," "]];continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&it(v.group)||Ae(v)&&!N||l.push(A,"")}}}return f&&l.push([l.pop(),Ke]),h&&l.unshift("",S),c?L(q(l)):Yn(t)?L(Se(l)):L(q(Se(l)))}var oi=Jl;function Xl(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ai=Xl;var Zr=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ui(t){let e=t.toLowerCase();return Zr.has(e)?Zr.get(e):t}var li=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Zl=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,ec=/[a-z]+/giu,tc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,rc=new RegExp(li.source+`|(${tc.source})?(${Zl.source})(${ec.source})?`,"giu");function z(t,e){return k(!1,t,li,s=>Nt(s,e))}function ci(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function me(t){return k(!1,t,rc,(e,s,r,n,i)=>!r&&n?es(n)+ae(i||""):e)}function es(t){return ai(t).replace(/\.0(?=$|e)/u,"")}function fi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function sc(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` `)return e-2;if(n===` `||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===` `)return e+2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Mt=Xl;function Zl(t,e,s={}){let r=Ct(t,s.backwards?e-1:e,s),n=Mt(t,r,s);return r!==n}var Bt=Zl;function ec(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&ai(e)&&t.callParent(()=>Kr(t,e))?Et(","):""}function ci(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:w})=>typeof w=="string"?w:s(),"groups");if(n&&Fn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",V(",",i),r.close?s("close"):""];if(!r.open){let w=es(t),x=V([",",w?E:A],i);return q(w?[E,x]:L(Ge(x)))}let o=t.map(({node:w,isLast:x,index:h})=>{var b;let d=i[h];if(It(w)&&w.type==="value-comma_group"&&w.groups&&w.groups[0].type!=="value-paren_group"&&((b=w.groups[2])==null?void 0:b.type)==="value-paren_group"){let{parts:g}=d.contents.contents;g[1]=L(g[1]),d=L(ue(d))}let m=[d,x?nc(t,e):","];if(!x&&w.type==="value-comma_group"&&ee(w.groups)){let g=G(!1,w.groups,-1);!g.source&&g.close&&(g=g.close),g.source&&Ut(e.originalText,P(g))&&m.push(E)}return m},"groups"),a=Xn(r,n),u=ti(r,n),c=Kr(t,e),f=u||c&&!a,p=u||a,l=L([r.open?s("open"):"",q([M,V(A,o)]),M,r.close?s("close"):""],{shouldBreak:f});return p?ue(l):l}function es(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function ic(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(N(n),P(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Bt(e.originalText,N(o),{backwards:!0})&&!_e(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:E),Ut(e.originalText,P(n))&&!_e(n)&&r.push(E))},"nodes"),r}var Te=ic;function oc(t,e,s){var n,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,E];case"css-root":{let f=Te(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),E]:"",f,p?` ${p}`:"",r.nodes.length>0?E:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(N(r),P(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Se(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([E,Te(t,e,s)]):"",E,"}",Wn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),w=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=Qn(r)?rn(h):h,!w&&Se(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>es(t),"value","group","group"))&&(h=q([E,ue(h)])),[_(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Bn(t)?r.prop:te(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Te(t,e,s)]),M,"}"]:Hn(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Et(";"):";"]}case"css-atrule":{let f=t.parent,p=Rt(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Te(t,e,s)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Hr(r)||r.name.endsWith(":")||Rt(r)?r.name:te(r.name),r.params?[Hr(r)?"":Rt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[E,E]:/^\s*\n/u.test(r.raws.afterName)?E:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),Ze(r,e)?Jn(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[Ze(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Se(r.selector.value)||!r.selector&&typeof r.params=="string"&&Se(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Te(t,e,s)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(V(A,f)))}case"media-query":return[V(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return fe(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return te(W(_(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return fe(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(_(!1,_(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([Ee(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",V([",",Ee(t,["extend","custom-selector","nest"])?A:E],t.map(s,"nodes"))]);case"selector-selector":return L(q(t.map(s,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:fe(Mn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",fe(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?oi(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=fe(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[te(r.value),ee(r.nodes)?L(["(",q([M,V([",",A],t.map(s,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(w=>w.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return fe(W(te(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let w=N(p),x=w+p.raws.selector.length;return e.originalText.slice(w,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let w=P(p.open)+1,x=N(p.close),h=e.originalText.slice(w,x).trim();return Se(h)?[je,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(N(r),P(r));case"value-comma_group":return ri(t,e,s);case"value-paren_group":return ci(t,e,s);case"value-func":return[r.value,Ee(t,"supports")&&Zn(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[Zr(r.value),ni(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Dn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||ke(t,"url")?"":A]}case"value-string":return Tt(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new an(r,"PostCSS")}}var ac={print:oc,embed:pn,insertPragma:qn,massageAstNode:ln,getVisitorKeys:mn},fi=ac;var pi=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var hi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var uc={singleQuote:hi.singleQuote},di=uc;var Ks={};Js(Ks,{css:()=>by,less:()=>_y,scss:()=>ky});var el=ye(pt(),1),tl=ye(bo(),1),rl=ye(ta(),1);function Hf(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ra=Hf;var la=ye(ua(),1);function J(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)J(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Is(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)Is(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var op=la.default.default;function ap(t){let e;try{e=op(t)}catch{return{type:"selector-unknown",value:t}}return J(Is(e),"media-")}var ca=ap;var nu=ye(su(),1);function bm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new nu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return J(e,"selector-")}var Z=bm;var Qu=ye(Vu(),1);var ly=t=>{for(;t.parent;)t=t.parent;return t},Br=ly;function cy(t){return Br(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Gu=cy;function fy(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var ju=fy;function py(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Hu=py;function hy(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ku=hy;function dy(t,e){var u;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),n.pop(),r=G(!1,n,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Ur(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Ur(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Ur)}:t}function Ju(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(Ju(t[s],e),s==="nodes"&&(t.group=Ur(dy(t,e)),delete t[s]));return t}function my(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new Qu.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=Ju(s,e);return J(r,"value-",/^selector-/u)}var ie=my;var yy=new Set(["import","use","forward"]);function wy(t){return yy.has(t)}var Xu=wy;function gy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Zu=gy;var vy=/(\s*)(!default).*$/u,xy=/(\s*)(!global).*$/u;function sl(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)sl(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=_(!1,u,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=ol:e.parser==="less"?p=il:p=nl;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=ie(n,e),t):(Zu(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(n),t);if(i.length>0){let a=i.match(vy);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(xy);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ie(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ie(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ie(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=ie(o,e):(t.selector=Z(o),delete t.params),t):Xu(u)?(t.import=!0,delete t.filename,t.params=ie(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=ie(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=ca(o),t):(t.params=o,t)}}return t}function js(t,e,s){let r=Je(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=sl(J(i,"css-"),s),Gr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function nl(t,e={}){return js(el.default.default,t,e)}function il(t,e={}){return js(s=>tl.default.parse(vn(s)),t,e)}function ol(t,e={}){return js(rl.default,t,e)}var Hs={astFormat:"postcss",hasPragma:In,locStart:N,locEnd:P},by={...Hs,parse:nl},_y={...Hs,parse:il},ky={...Hs,parse:ol};var Ey={postcss:fi};return pl(Sy);}); \ No newline at end of file +`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Ft=sc;function nc(t,e,s={}){let r=Rt(t,s.backwards?e-1:e,s),n=Ft(t,r,s);return r!==n}var $t=nc;function ic(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&fi(e)&&t.callParent(()=>Jr(t,e))?Ot(","):""}function di(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:y})=>typeof y=="string"?y:s(),"groups");if(n&&zn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let y=ts(t);Ee(i);let x=cc(Y(",",i),2),h=Y(y?S:A,x);return q(y?[S,h]:L(Se(h)))}let o=t.map(({node:y,isLast:x,index:h})=>{var b;let d=i[h];Bt(y)&&y.type==="value-comma_group"&&y.groups&&y.groups[0].type!=="value-paren_group"&&((b=y.groups[2])==null?void 0:b.type)==="value-paren_group"&&Q(d)===re&&Q(d.contents)===te&&Q(d.contents.contents)===se&&(d=L(ie(d)));let m=[d,x?lc(t,e):","];if(!x&&y.type==="value-comma_group"&&oe(y.groups)){let w=$(!1,y.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Wt(e.originalText,R(w))&&m.push(S)}return m},"groups"),u=ri(r,n),a=ii(r,n),c=Jr(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([B,Y(A,o)]),B,r.close?s("close"):""],{shouldBreak:f});return p?ie(l):l}function ts(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function cc(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!$t(e.originalText,P(o),{backwards:!0})&&!Te(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),Wt(e.originalText,R(n))&&!Te(n)&&r.push(S))},"nodes"),r}var Pe=fc;function pc(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Pe(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Ne(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Pe(t,e,s)]):"",S,"}",Gn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),y=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ei(r)?nn(h):h,!y&&Ne(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>ts(t),"value","group","group"))&&(h=q([S,ie(h)])),[k(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Wn(t)?r.prop:ae(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([B,Pe(t,e,s)]),B,"}"]:Xn(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ot(";"):";"]}case"css-atrule":{let f=t.parent,p=Dt(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?B:"",Pe(t,e,s)]),B,"}"]:"",p?"":";"]}let l=r.name==="import"&&((u=r.params)==null?void 0:u.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Qr(r)||r.name.endsWith(":")||Dt(r)?r.name:ae(r.name),r.params?[Qr(r)?"":Dt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[S,S]:/^\s*\n/u.test(r.raws.afterName)?S:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),tt(r,e)?ti(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[tt(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ne(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ne(r.params)?A:" ","{",q([r.nodes.length>0?B:"",Pe(t,e,s)]),B,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return me(z(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return ae(z(k(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return me(z(r.value,e));case"media-keyword":return z(r.value,e);case"media-url":return z(k(!1,k(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([Oe(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Oe(t,["extend","custom-selector","nest"])?A:S],t.map(s,"nodes"))]);case"selector-selector":{let f=r.nodes.length>1;return L((f?q:p=>p)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return z(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((a=t.previous)==null?void 0:a.type)==="selector-nesting"?r.value:me($n(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(z(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?ci(z(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(z(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ae(r.value),oe(r.nodes)?L(["(",q([B,Y([",",A],t.map(s,"nodes"))]),B,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(y=>y.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(z(ae(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let y=P(p),x=y+p.raws.selector.length;return e.originalText.slice(y,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let y=R(p.open)+1,x=P(p.close),h=e.originalText.slice(y,x).trim();return Ne(h)?[Ke,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return oi(t,e,s);case"value-paren_group":return di(t,e,s);case"value-func":return[r.value,Oe(t,"supports")&&si(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[es(r.value),ui(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Fn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return L([r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ce(t,"url")?"":A])}case"value-string":return Nt(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new fn(r,"PostCSS")}}var hc={print:pc,embed:yn,insertPragma:Mn,massageAstNode:hn,getVisitorKeys:vn},mi=hc;var yi=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var gi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var dc={singleQuote:gi.singleQuote},wi=dc;var Qs={};Xs(Qs,{css:()=>Cy,less:()=>Oy,scss:()=>Ay});var il=xe(gt(),1),ol=xe(So(),1),al=xe(ia(),1);function ep(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var oa=ep;var ha=xe(pa(),1);function X(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function qs(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)qs(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var pp=ha.default.default;function hp(t){let e;try{e=pp(t)}catch{return{type:"selector-unknown",value:t}}return X(qs(e),"media-")}var da=hp;var uu=xe(au(),1);function Cm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new uu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var ee=Cm;var tl=xe(Ku(),1);var my=t=>{for(;t.parent;)t=t.parent;return t},Fr=my;function yy(t){return Fr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Qu=yy;function gy(t){if(oe(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Ju=gy;function wy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Xu=wy;function vy(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Zu=vy;var el=t=>t.type==="paren"&&t.value===")";function xy(t,e){var a;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=$(!1,u,-1),o.groups.push(r),n.pop(),r=$(!1,n,-1)}else if(f.type==="comma"){if(c===s.length-3&&s[c+1].type==="comment"&&el(s[c+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function $r(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?$r(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map($r)}:t}function rl(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(rl(t[s],e),s==="nodes"&&(t.group=$r(xy(t,e)),delete t[s]));return t}function by(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=rl(s,e);return X(r,"value-",/^selector-/u)}var fe=by;var _y=new Set(["import","use","forward"]);function ky(t){return _y.has(t)}var sl=ky;function Ey(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var nl=Ey;var Sy=/(\s*)(!default).*$/u,Ty=/(\s*)(!global).*$/u;function ul(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let u in t)ul(t[u],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let u;if(t.value.trimEnd().endsWith("}")){let a=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=k(!1,a,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=fl:e.parser==="less"?p=cl:p=ll;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(u=l.nodes[0].nodes)}return u?t.value={type:"css-rule",nodes:u}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=i.trim());let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=fe(n,e),t):(nl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=ee(n),t);if(i.trim().length>0){let u=i.match(Sy);u&&(i=i.slice(0,u.index),t.scssDefault=!0,u[0].trim()!=="!default"&&(t.raws.scssDefault=u[0]));let a=i.match(Ty);if(a&&(i=i.slice(0,a.index),t.scssGlobal=!0,a[0].trim()!=="!global"&&(t.raws.scssGlobal=a[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=fe(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=ee(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let u=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=ee(u),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let u=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=u,t.selector=ee(t.params.slice(u.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let u=t.name.split(":");t.name=u[0],t.value=fe(u.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let u=t.params.slice(1);u&&(t.value=fe(u,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:u}=t,a=t.name.toLowerCase();return u==="warn"||u==="error"?(t.params={type:"media-unknown",value:o},t):u==="extend"||u==="nest"?(t.selector=ee(o),delete t.params,t):u==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=fe(o,e):(t.selector=ee(o),delete t.params),t):sl(a)?(t.import=!0,delete t.filename,t.params=fe(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(u)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=fe(o,e),delete t.params,t):["media","custom-media"].includes(a)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=da(o),t):(t.params=o,t)}}return t}function Hs(t,e,s){let r=Ze(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:u,reason:a,line:c,column:f}=o;throw typeof c!="number"?o:oa(`${u}: ${a}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=ul(X(i,"css-"),s),Hr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function ll(t,e={}){return Hs(il.default.default,t,e)}function cl(t,e={}){return Hs(s=>ol.default.parse(kn(s)),t,e)}function fl(t,e={}){return Hs(al.default,t,e)}var Ks={astFormat:"postcss",hasPragma:Bn,locStart:P,locEnd:R},Cy={...Ks,parse:ll},Oy={...Ks,parse:cl},Ay={...Ks,parse:fl};var Ny={postcss:mi};return gl(Py);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/postcss.mjs b/node_modules/prettier/plugins/postcss.mjs index f083365b..3ed6d6d3 100644 --- a/node_modules/prettier/plugins/postcss.mjs +++ b/node_modules/prettier/plugins/postcss.mjs @@ -1,52 +1,54 @@ -var al=Object.create;var Ur=Object.defineProperty;var ul=Object.getOwnPropertyDescriptor;var ll=Object.getOwnPropertyNames;var cl=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xs=(t,e)=>{for(var s in e)Ur(t,s,{get:e[s],enumerable:!0})},pl=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ll(e))!fl.call(t,n)&&n!==s&&Ur(t,n,{get:()=>e[n],enumerable:!(r=ul(e,n))||r.enumerable});return t};var ye=(t,e,s)=>(s=t!=null?al(cl(t)):{},pl(e||!t||!t.__esModule?Ur(s,"default",{value:t,enumerable:!0}):s,t));var Ut=y((tv,ts)=>{"use strict";ts.exports.isClean=Symbol("isClean");ts.exports.my=Symbol("my")});var yi=y((rv,rs)=>{var S=String,mi=function(){return{isColorSupported:!1,reset:S,bold:S,dim:S,italic:S,underline:S,inverse:S,hidden:S,strikethrough:S,black:S,red:S,green:S,yellow:S,blue:S,magenta:S,cyan:S,white:S,gray:S,bgBlack:S,bgRed:S,bgGreen:S,bgYellow:S,bgBlue:S,bgMagenta:S,bgCyan:S,bgWhite:S}};rs.exports=mi();rs.exports.createColors=mi});var ss=y(()=>{});var Ft=y((iv,vi)=>{"use strict";var wi=yi(),gi=ss(),st=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=wi.isColorSupported),gi&&e&&(s=gi(s));let r=s.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,gray:f,red:p}=wi.createColors(!0);a=l=>c(p(l)),u=l=>f(l)}else a=u=c=>c;return r.slice(n,i).map((c,f)=>{let p=n+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let w=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+` - `+w+a("^")}return" "+u(l)+c}).join(` +var pl=Object.create;var $r=Object.defineProperty;var hl=Object.getOwnPropertyDescriptor;var dl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zs=(t,e)=>{for(var s in e)$r(t,s,{get:e[s],enumerable:!0})},gl=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dl(e))!yl.call(t,n)&&n!==s&&$r(t,n,{get:()=>e[n],enumerable:!(r=hl(e,n))||r.enumerable});return t};var xe=(t,e,s)=>(s=t!=null?pl(ml(t)):{},gl(e||!t||!t.__esModule?$r(s,"default",{value:t,enumerable:!0}):s,t));var xi=g((hv,rs)=>{var _=String,vi=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};rs.exports=vi();rs.exports.createColors=vi});var ss=g(()=>{});var Wt=g((yv,ki)=>{"use strict";var bi=xi(),_i=ss(),ot=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=bi.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=bi.createColors(!0);n=y=>f(l(y)),r=y=>p(y),_i&&(i=y=>_i(y))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,y=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,d=Math.max(0,this.column-h),m=Math.max(this.column+h,this.endColumn+h),b=f.slice(d,m),w=r(y.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(y)+i(b)+` + `+w+n("^")}let x=r(y.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(y)+i(f)+` + `+x+n("^")}return" "+r(y)+i(f)}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` -`),this.name+": "+this.message+e}};vi.exports=st;st.default=st});var $t=y((ov,bi)=>{"use strict";var xi={after:` +`),this.name+": "+this.message+e}};ki.exports=ot;ot.default=ot});var Yt=g((gv,Si)=>{"use strict";var Ei={after:` `,beforeClose:` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function lc(t){return t[0].toUpperCase()+t.slice(1)}var nt=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` -`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=u.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=xi[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function mc(t){return t[0].toUpperCase()+t.slice(1)}var at=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(` +`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ei[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(` `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(` `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(` -`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};bi.exports=nt;nt.default=nt});var it=y((av,_i)=>{"use strict";var cc=$t();function ns(t,e){new cc(e).stringify(t)}_i.exports=ns;ns.default=ns});var at=y((uv,ki)=>{"use strict";var{isClean:Wt,my:fc}=Ut(),pc=Ft(),hc=$t(),dc=it();function is(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>is(o,s)):(i==="object"&&n!==null&&(n=is(n)),s[r]=n)}return s}var ot=class{constructor(e={}){this.raws={},this[Wt]=!1,this[fc]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let s in e)this[s]=e[s];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let s=is(this);for(let r in e)s[r]=e[r];return s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}error(e,s={}){if(this.source){let{end:r,start:n}=this.rangeBy(s);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},s)}return new pc(e)}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Wt]){this[Wt]=!1;let e=this;for(;e=e.parent;)e[Wt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,s){let r=this.source.start;if(e.index)r=this.positionInside(e.index,s);else if(e.word){s=this.toString();let n=s.indexOf(e.word);n!==-1&&(r=this.positionInside(n,s))}return r}positionInside(e,s){let r=s||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let o=0;otypeof u=="object"&&u.toJSON?u.toJSON(null,s):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,s);else if(o==="source"){let u=s.get(a.input);u==null&&(u=i,s.set(a.input,i),i++),r[o]={end:a.end,inputId:u,start:a.start}}else r[o]=a}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=dc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}get proxyOf(){return this}};ki.exports=ot;ot.default=ot});var lt=y((lv,Ei)=>{"use strict";var mc=at(),ut=class extends mc{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ei.exports=ut;ut.default=ut});var Oe=y((cv,Si)=>{"use strict";var yc=at(),ct=class extends yc{constructor(e){super(e),this.type="comment"}};Si.exports=ct;ct.default=ct});var re=y((fv,qi)=>{"use strict";var{isClean:Ti,my:Oi}=Ut(),Ci=lt(),Ai=Oe(),wc=at(),Ni,os,as,Pi;function Ri(t){return t.map(e=>(e.nodes&&(e.nodes=Ri(e.nodes)),delete e.source,e))}function Ii(t){if(t[Ti]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Ii(e)}var Y=class t extends wc{append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ci(e)]}else if(e.selector)e=[new os(e)];else if(e.name)e=[new as(e)];else if(e.text)e=[new Ai(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Oi]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ti]&&Ii(n),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Y.registerParse=t=>{Ni=t};Y.registerRule=t=>{os=t};Y.registerAtRule=t=>{as=t};Y.registerRoot=t=>{Pi=t};qi.exports=Y;Y.default=Y;Y.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,as.prototype):t.type==="rule"?Object.setPrototypeOf(t,os.prototype):t.type==="decl"?Object.setPrototypeOf(t,Ci.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ai.prototype):t.type==="root"&&Object.setPrototypeOf(t,Pi.prototype),t[Oi]=!0,t.nodes&&t.nodes.forEach(e=>{Y.rebuild(e)})}});var Vt=y((pv,Di)=>{"use strict";var Yt=/[\t\n\f\r "#'()/;[\\\]{}]/g,zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gc=/.[\r\n"'(/\\]/,Li=/[\da-f]/i;Di.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,w,x,h=r.length,d=0,m=[],b=[];function g(){return d}function v($){throw e.error("Unclosed "+$,d)}function R(){return b.length===0&&d>=h}function F($){if(b.length)return b.pop();if(d>=h)return;let T=$?$.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{o=d;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);x=["space",r.slice(d,o)],d=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);x=[O,O,d];break}case 40:{if(l=m.length?m.pop()[1]:"",w=r.charCodeAt(d+1),l==="url"&&w!==39&&w!==34&&w!==32&&w!==10&&w!==9&&w!==12&&w!==13){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(n||T){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||gc.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case 39:case 34:{a=i===39?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(n||T){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===92;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case 64:{Yt.lastIndex=d+1,Yt.test(r),Yt.lastIndex===0?o=r.length-1:o=Yt.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case 92:{for(o=d,c=!0;r.charCodeAt(o+1)===92;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,Li.test(r.charAt(o)))){for(;Li.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===47&&r.charCodeAt(d+1)===42?(o=r.indexOf("*/",d+2)+1,o===0&&(n||T?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(zt.lastIndex=d+1,zt.test(r),zt.lastIndex===0?o=r.length-1:o=zt.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function H($){b.push($)}return{back:H,endOfFile:R,nextToken:F,position:g}}});var Gt=y((hv,Bi)=>{"use strict";var Mi=re(),Ce=class extends Mi{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Bi.exports=Ce;Ce.default=Ce;Mi.registerAtRule(Ce)});var Ae=y((dv,Wi)=>{"use strict";var Ui=re(),Fi,$i,se=class extends Ui{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Fi(new $i,this,e).stringify()}};se.registerLazyResult=t=>{Fi=t};se.registerProcessor=t=>{$i=t};Wi.exports=se;se.default=se;Ui.registerRoot(se)});var us=y((mv,Yi)=>{"use strict";var ft={comma(t){return ft.split(t,[","],!0)},space(t){let e=[" ",` -`," "];return ft.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};Yi.exports=ft;ft.default=ft});var jt=y((yv,Vi)=>{"use strict";var zi=re(),vc=us(),Ne=class extends zi{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return vc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Vi.exports=Ne;Ne.default=Ne;zi.registerRule(Ne)});var Ht=y((wv,Hi)=>{"use strict";var xc=lt(),bc=Vt(),_c=Oe(),kc=Gt(),Ec=Ae(),Gi=jt(),ji={empty:!0,space:!0};function Sc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ls=class{constructor(e){this.input=e,this.root=new Ec,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new kc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(s.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(s,"params",u),o&&(e=u[u.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(s+=1),n===")"&&(s-=1),s===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let s=new _c;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=bc(this.input)}decl(e,s){let r=new xc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Sc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let w=f[l][0];if(p.trim().indexOf("!")===0&&w!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new Gi;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;lw+x[1],"");e.raws[s]={raw:l,value:u}}e[s]=u}rule(e){e.pop();let s=new Gi;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{});var Ji=y((xv,Qi)=>{var Tc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Oc=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Cc=(t=21)=>{let e="",s=t;for(;s--;)e+=Tc[Math.random()*64|0];return e};Qi.exports={nanoid:Cc,customAlphabet:Oc}});var cs=y((bv,Xi)=>{Xi.exports=class{}});var Re=y((kv,ro)=>{"use strict";var{SourceMapConsumer:Ac,SourceMapGenerator:Nc}=Ki(),{fileURLToPath:Zi,pathToFileURL:Kt}={},{isAbsolute:hs,resolve:ds}={},{nanoid:Pc}=Ji(),fs=ss(),eo=Ft(),Rc=cs(),ps=Symbol("fromOffsetCache"),Ic=!!(Ac&&Nc),to=!!(ds&&hs),Pe=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!to||/^\w+:\/\//.test(s.from)||hs(s.from)?this.file=s.from:this.file=ds(s.from)),to&&Ic){let r=new Rc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,a;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let u=this.origin(s,r,o,a);return u?i=new eo(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):i=new eo(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:a,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:a,endLine:o,line:s,source:this.css},this.file&&(Kt&&(i.input.url=Kt(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let s,r;if(this[ps])r=this[ps];else{let i=this.css.split(` -`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a=s)n=r.length-1;else{let i=r.length-2,o;for(;n>1),e=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ds(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({column:n,line:r}));let u;hs(o.source)?u=Kt(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||Kt(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:u.toString()};if(u.protocol==="file:")if(Zi)c.file=Zi(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};ro.exports=Pe;Pe.default=Pe;fs&&fs.registerInput&&fs.registerInput(Pe)});var pt=y((Ev,so)=>{"use strict";var qc=re(),Lc=Ht(),Dc=Re();function Qt(t,e){let s=new Dc(t,e),r=new Lc(s);try{r.parse()}catch(n){throw n}return r.root}so.exports=Qt;Qt.default=Qt;qc.registerParse(Qt)});var no=y((Sv,ms)=>{var Mc=Vt(),Bc=Re();ms.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` +`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Si.exports=at;at.default=at});var ut=g((wv,Ti)=>{"use strict";var yc=Yt();function ns(t,e){new yc(e).stringify(t)}Ti.exports=ns;ns.default=ns});var zt=g((vv,is)=>{"use strict";is.exports.isClean=Symbol("isClean");is.exports.my=Symbol("my")});var pt=g((xv,Ci)=>{"use strict";var gc=Wt(),wc=Yt(),vc=ut(),{isClean:lt,my:xc}=zt();function os(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>os(o,s)):(i==="object"&&n!==null&&(n=os(n)),s[r]=n)}return s}function ct(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;ie.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[lt]=!0}markDirty(){if(this[lt]){this[lt]=!1;let e=this;for(;e=e.parent;)e[lt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let n=this.source.input.css.slice(ct(this.source.input.css,this.source.start),ct(this.source.input.css,this.source.end)).indexOf(e.word);n!==-1&&(s=this.positionInside(n))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n=ct(this.source.input.css,this.source.start),i=n+e;for(let o=n;otypeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=vc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}get proxyOf(){return this}};Ci.exports=ft;ft.default=ft});var Re=g((bv,Oi)=>{"use strict";var bc=pt(),ht=class extends bc{constructor(e){super(e),this.type="comment"}};Oi.exports=ht;ht.default=ht});var mt=g((_v,Ai)=>{"use strict";var _c=pt(),dt=class extends _c{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ai.exports=dt;dt.default=dt});var ue=g((kv,Mi)=>{"use strict";var Ni=Re(),Pi=mt(),kc=pt(),{isClean:Ri,my:Ii}=zt(),as,qi,Li,us;function Di(t){return t.map(e=>(e.nodes&&(e.nodes=Di(e.nodes)),delete e.source,e))}function Bi(t){if(t[Ri]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Bi(e)}var V=class t extends kc{append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Pi(e)]}else if(e.selector||e.selectors)e=[new us(e)];else if(e.name)e=[new as(e)];else if(e.text)e=[new Ni(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Ii]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ri]&&Bi(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};V.registerParse=t=>{qi=t};V.registerRule=t=>{us=t};V.registerAtRule=t=>{as=t};V.registerRoot=t=>{Li=t};Mi.exports=V;V.default=V;V.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,as.prototype):t.type==="rule"?Object.setPrototypeOf(t,us.prototype):t.type==="decl"?Object.setPrototypeOf(t,Pi.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ni.prototype):t.type==="root"&&Object.setPrototypeOf(t,Li.prototype),t[Ii]=!0,t.nodes&&t.nodes.forEach(e=>{V.rebuild(e)})}});var Fi=g((Ev,Ui)=>{var Ec="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Sc=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Tc=(t=21)=>{let e="",s=t;for(;s--;)e+=Ec[Math.random()*64|0];return e};Ui.exports={nanoid:Tc,customAlphabet:Sc}});var $i=g(()=>{});var ls=g((Cv,Wi)=>{Wi.exports=class{}});var qe=g((Av,Gi)=>{"use strict";var{nanoid:Cc}=Fi(),{isAbsolute:ps,resolve:hs}={},{SourceMapConsumer:Oc,SourceMapGenerator:Ac}=$i(),{fileURLToPath:Yi,pathToFileURL:Vt}={},zi=Wt(),Nc=ls(),cs=ss(),fs=Symbol("fromOffsetCache"),Pc=!!(Oc&&Ac),Vi=!!(hs&&ps),Ie=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!Vi||/^\w+:\/\//.test(s.from)||ps(s.from)?this.file=s.from:this.file=hs(s.from)),Vi&&Pc){let r=new Nc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,i=p.col}else o=f.line,i=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let a=this.origin(s,r,o,i);return a?u=new zi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):u=new zi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),u.input={column:r,endColumn:i,endLine:o,line:s,source:this.css},this.file&&(Vt&&(u.input.url=Vt(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let s,r;if(this[fs])r=this[fs];else{let i=this.css.split(` +`);r=new Array(i.length);let o=0;for(let u=0,a=i.length;u=s)n=r.length-1;else{let i=r.length-2,o;for(;n>1),e=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:hs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ps(o.source)?a=Vt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Vt(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Yi)c.file=Yi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};Gi.exports=Ie;Ie.default=Ie;cs&&cs.registerInput&&cs.registerInput(Ie)});var Gt=g((Nv,Hi)=>{"use strict";var ji=ue(),Le=class extends ji{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Hi.exports=Le;Le.default=Le;ji.registerAtRule(Le)});var De=g((Pv,Xi)=>{"use strict";var Ki=ue(),Qi,Ji,le=class extends Ki{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Qi(new Ji,this,e).stringify()}};le.registerLazyResult=t=>{Qi=t};le.registerProcessor=t=>{Ji=t};Xi.exports=le;le.default=le;Ki.registerRoot(le)});var ds=g((Rv,Zi)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};Zi.exports=yt;yt.default=yt});var jt=g((Iv,to)=>{"use strict";var eo=ue(),Rc=ds(),Be=class extends eo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Rc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};to.exports=Be;Be.default=Be;eo.registerRule(Be)});var Qt=g((qv,so)=>{"use strict";var Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ic=/.[\r\n"'(/\\]/,ro=/[\da-f]/i;so.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(W){throw e.error("Unclosed "+W,d)}function N(){return b.length===0&&d>=h}function F(W){if(b.length)return b.pop();if(d>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{a=d;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(d,a)],d=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);f=[C,C,d];break}case 40:{if(x=m.length?m.pop()[1]:"",y=r.charCodeAt(d+1),x==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){a=d;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=d;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Ic.test(o)?f=["(","(",d]:(f=["brackets",o,d,a],d=a);break}case 39:case 34:{c=i===39?"'":'"',a=d;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=d+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(d,a+1),d,a],d=a;break}case 64:{Ht.lastIndex=d+1,Ht.test(r),Ht.lastIndex===0?a=r.length-1:a=Ht.lastIndex-2,f=["at-word",r.slice(d,a+1),d,a],d=a;break}case 92:{for(a=d,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,ro.test(r.charAt(a)))){for(;ro.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(d,a+1),d,a],d=a;break}default:{i===47&&r.charCodeAt(d+1)===42?(a=r.indexOf("*/",d+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(d,a+1),d,a],d=a):(Kt.lastIndex=d+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,f=["word",r.slice(d,a+1),d,a],m.push(f),d=a);break}}return d++,f}function H(W){b.push(W)}return{back:H,endOfFile:N,nextToken:F,position:w}}});var Jt=g((Lv,oo)=>{"use strict";var qc=Gt(),Lc=Re(),Dc=mt(),Bc=De(),no=jt(),Mc=Qt(),io={empty:!0,space:!0};function Uc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ms=class{constructor(e){this.input=e,this.root=new Bc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new qc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Lc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=Mc(this.input)}decl(e,s){let r=new Dc;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Uc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let y=f[l][0];if(p.trim().startsWith("!")&&y!=="space")break;p=f.pop()[1]+p}p.trim().startsWith("!")&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let s=new no;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{column:s.col,line:s.line,offset:e}}init(e,s){this.current.push(e),e.source={input:this.input,start:this.getPosition(s)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let s=!1,r=null,n=!1,i=null,o=[],u=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(u&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!u)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,s,r,n){let i,o,u=r.length,a="",c=!0,f,p;for(let l=0;ly+x[1],"");e.raws[s]={raw:l,value:a}}e[s]=a}rule(e){e.pop();let s=new no;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n{"use strict";var Fc=ue(),$c=qe(),Wc=Jt();function Xt(t,e){let s=new $c(t,e),r=new Wc(s);try{r.parse()}catch(n){throw n}return r.root}ao.exports=Xt;Xt.default=Xt;Fc.registerParse(Xt)});var uo=g((Bv,ys)=>{var Yc=Qt(),zc=qe();ys.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(` `))),n=t[1].substring(t[1].indexOf(` -`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new Bc(n),this.tokenizer=Mc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),ms.exports.isInlineComment.bind(this)(t)}return!1}}});var oo=y((Tv,io)=>{io.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var uo=y((Ov,ao)=>{var Uc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Fc=/\.[0-9]/,$c=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Uc.test(e)===!1&&Fc.test(e)===!1};ao.exports={isMixinToken:$c}});var co=y((Cv,lo)=>{var Wc=Vt(),Yc=/^url\((.+)\)/;lo.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Wc({css:s});for(t.filename=s.replace(Yc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var mo=y((Av,ho)=>{var fo=/:$/,po=/^:(\s+)?/;ho.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(fo.test(e)){let[r]=e.match(fo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(po.test(s)){let[r]=s.match(po);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var go=y((Pv,wo)=>{var zc=Oe(),Vc=Ht(),{isInlineComment:Gc}=no(),{interpolation:yo}=oo(),{isMixinToken:jc}=uo(),Hc=co(),Kc=mo(),Qc=/(!\s*important)$/i;wo.exports=class extends Vc{constructor(...e){super(...e),this.lastNode=null}atrule(e){yo.bind(this)(e)||(super.atrule(e),Hc(this.lastNode),Kc(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new zc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((g,v,R)=>v[0]===")"?R:g),p=e.slice(i,c+i).map(g=>g[1]).join(""),[l]=e.slice(i),w=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(w,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],w=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,w);e.splice(f,a.length,h)}let u=e.findIndex(c=>Qc.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){Gc.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),yo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(jc(s)){this.mixin(e);return}super.unknownWord(e)}}});var xo=y((Iv,vo)=>{var Jc=$t();vo.exports=class extends Jc{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var bo=y((qv,ys)=>{var Xc=Re(),Zc=go(),ef=xo();ys.exports={parse(t,e){let s=new Xc(t,e),r=new Zc(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new ef(e).stringify(t)},nodeToString(t){let e="";return ys.exports.stringify(t,s=>{e+=s}),e}}});var ws=y((Lv,_o)=>{_o.exports=class{generate(){}}});var Jt=y((Mv,So)=>{"use strict";var tf=re(),ko,Eo,pe=class extends tf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ko(new Eo,this,e).stringify()}};pe.registerLazyResult=t=>{ko=t};pe.registerProcessor=t=>{Eo=t};So.exports=pe;pe.default=pe});var gs=y((Bv,Oo)=>{"use strict";var To={};Oo.exports=function(e){To[e]||(To[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var vs=y((Uv,Co)=>{"use strict";var ht=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Co.exports=ht;ht.default=ht});var Xt=y((Fv,Ao)=>{"use strict";var rf=vs(),dt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new rf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Ao.exports=dt;dt.default=dt});var _s=y((Wv,Io)=>{"use strict";var{isClean:j,my:sf}=Ut(),nf=ws(),of=it(),af=re(),uf=Jt(),$v=gs(),No=Xt(),lf=pt(),cf=Ae(),ff={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hf={Once:!0,postcssPlugin:!0,prepare:!0},Ie=0;function mt(t){return typeof t=="object"&&typeof t.then=="function"}function Ro(t){let e=!1,s=ff[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Ie,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Ie,s+"Exit"]:[s,s+"Exit"]}function Po(t){let e;return t.type==="document"?e=["Document",Ie,"DocumentExit"]:t.type==="root"?e=["Root",Ie,"RootExit"]:e=Ro(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function xs(t){return t[j]=!1,t.nodes&&t.nodes.forEach(e=>xs(e)),t}var bs={},ne=class t{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=xs(s);else if(s instanceof t||s instanceof No)n=xs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=lf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[sf]&&af.rebuild(n)}this.result=new No(e,n,r),this.helpers={...bs,postcss:bs,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!pf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(mt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return mt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=of;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new nf(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(mt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];)e[j]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(mt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[j]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ne.registerPostcss=t=>{bs=t};Io.exports=ne;ne.default=ne;cf.registerLazyResult(ne);uf.registerLazyResult(ne)});var Lo=y((zv,qo)=>{"use strict";var df=ws(),mf=it(),Yv=gs(),yf=pt(),wf=Xt(),yt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=mf;this.result=new wf(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new df(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=yf;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};qo.exports=yt;yt.default=yt});var Mo=y((Vv,Do)=>{"use strict";var gf=Lo(),vf=_s(),xf=Jt(),bf=Ae(),he=class{constructor(e=[]){this.version="8.4.39",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new gf(this,e,s):new vf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Do.exports=he;he.default=he;bf.registerProcessor(he);xf.registerProcessor(he)});var Uo=y((Gv,Bo)=>{"use strict";var _f=lt(),kf=cs(),Ef=Oe(),Sf=Gt(),Tf=Re(),Of=Ae(),Cf=jt();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:Tf.prototype};i.map&&(i.map={...i.map,__proto__:kf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Of(r);if(r.type==="decl")return new _f(r);if(r.type==="rule")return new Cf(r);if(r.type==="comment")return new Ef(r);if(r.type==="atrule")return new Sf(r);throw new Error("Unknown node type: "+t.type)}Bo.exports=wt;wt.default=wt});var Zt=y((jv,Go)=>{"use strict";var Af=Ft(),Fo=lt(),Nf=_s(),Pf=re(),ks=Mo(),Rf=it(),If=Uo(),$o=Jt(),qf=vs(),Wo=Oe(),Yo=Gt(),Lf=Xt(),Df=Re(),Mf=pt(),Bf=us(),zo=jt(),Vo=Ae(),Uf=at();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ks(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: -https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=s(...o);return a.postcssPlugin=e,a.postcssVersion=new ks().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return k([n(u)]).process(o,a)},n};k.stringify=Rf;k.parse=Mf;k.fromJSON=If;k.list=Bf;k.comment=t=>new Wo(t);k.atRule=t=>new Yo(t);k.decl=t=>new Fo(t);k.rule=t=>new zo(t);k.root=t=>new Vo(t);k.document=t=>new $o(t);k.CssSyntaxError=Af;k.Declaration=Fo;k.Container=Pf;k.Processor=ks;k.Document=$o;k.Comment=Wo;k.Warning=qf;k.AtRule=Yo;k.Result=Lf;k.Input=Df;k.Rule=zo;k.Root=Vo;k.Node=Uf;Nf.registerPostcss(k);Go.exports=k;k.default=k});var Ho=y((Hv,jo)=>{var{Container:Ff}=Zt(),Es=class extends Ff{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};jo.exports=Es});var Jo=y((Kv,Qo)=>{"use strict";var er=/[\t\n\f\r "#'()/;[\\\]{}]/g,tr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$f=/.[\r\n"'(/\\]/,Ko=/[\da-f]/i,rr=/[\n\f\r]/g;Qo.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,w,x=r.length,h=0,d=[],m=[],b;function g(){return h}function v(T){throw e.error("Unclosed "+T,h)}function R(){return m.length===0&&h>=x}function F(){let T=1,O=!1,C=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!C&&i===O?(O=!1,C=!1):i===92?C=!C:C&&(C=!1):i===39||i===34?O=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function H(T){if(m.length)return m.pop();if(h>=x)return;let O=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);w=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);w=[C,C,h];break}case 44:{w=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),w=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||$f.test(u)?w=["(","(",h]:(w=["brackets",u,h,o],h=o);break}case 39:case 34:{for(a=i,o=h,f=!1;o{var{Comment:Wf}=Zt(),Yf=Ht(),zf=Ho(),Vf=Jo(),Ss=class extends Yf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Wf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Vf(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` -`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new zf;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={column:u.col,line:u.line,offset:o[3]+1}}else{let u=this.input.fromOffset(o[2]);i.source.end={column:u.col,line:u.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={column:u.col,line:u.line,offset:e[0][2]}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};Xo.exports=Ss});var ta=y((Jv,ea)=>{var{Input:Gf}=Zt(),jf=Zo();ea.exports=function(e,s){let r=new Gf(e,s),n=new jf(r);return n.parse(),n.root}});var Os=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});function Kf(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ts.default=Kf});var As=y(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var Qf=Os(),sa=Jf(Qf);function Jf(t){return t&&t.__esModule?t:{default:t}}function gt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}gt.prototype=Object.create(sa.default.prototype);gt.constructor=sa.default;gt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.parseMediaFeature=oa;vt.parseMediaQuery=Ps;vt.parseMediaList=ep;var Xf=Os(),na=ia(Xf),Zf=As(),Ns=ia(Zf);function ia(t){return t&&t.__esModule?t:{default:t}}function oa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function ep(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new na.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var u=s;u{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.default=ip;var tp=As(),rp=np(tp),sp=aa();function np(t){return t&&t.__esModule?t:{default:t}}function ip(t){return new rp.default({nodes:(0,sp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var qs=y((ox,fa)=>{fa.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,a){return Array.isArray(a)&&i{pa.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Ds=y((ux,ha)=>{"use strict";function up(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";sr.__esModule=!0;var da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function fp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pp=function t(e,s){if((typeof e>"u"?"undefined":da(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":da(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(a){return t(a,r)}):r[n]=t(i,r)}return r},hp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=pp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();sr.default=hp;ma.exports=sr.default});var D=y(B=>{"use strict";B.__esModule=!0;var lx=B.TAG="tag",cx=B.STRING="string",fx=B.SELECTOR="selector",px=B.ROOT="root",hx=B.PSEUDO="pseudo",dx=B.NESTING="nesting",mx=B.ID="id",yx=B.COMMENT="comment",wx=B.COMBINATOR="combinator",gx=B.CLASS="class",vx=B.ATTRIBUTE="attribute",xx=B.UNIVERSAL="universal"});var ir=y((nr,ya)=>{"use strict";nr.__esModule=!0;var dp=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";or.__esModule=!0;var Ep=ir(),Sp=Op(Ep),Tp=D();function Op(t){return t&&t.__esModule?t:{default:t}}function Cp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ap(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Np(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Pp=function(t){Np(e,t);function e(s){Cp(this,e);var r=Ap(this,t.call(this,s));return r.type=Tp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Sp.default);or.default=Pp;wa.exports=or.default});var xa=y((ar,va)=>{"use strict";ar.__esModule=!0;var Rp=ir(),Ip=Lp(Rp),qp=D();function Lp(t){return t&&t.__esModule?t:{default:t}}function Dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Bp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Up=function(t){Bp(e,t);function e(s){Dp(this,e);var r=Mp(this,t.call(this,s));return r.type=qp.SELECTOR,r}return e}(Ip.default);ar.default=Up;va.exports=ar.default});var qe=y((ur,ba)=>{"use strict";ur.__esModule=!0;var Fp=function(){function t(e,s){for(var r=0;r{"use strict";lr.__esModule=!0;var Hp=qe(),Kp=Jp(Hp),Qp=D();function Jp(t){return t&&t.__esModule?t:{default:t}}function Xp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var th=function(t){eh(e,t);function e(s){Xp(this,e);var r=Zp(this,t.call(this,s));return r.type=Qp.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(Kp.default);lr.default=th;_a.exports=lr.default});var Sa=y((cr,Ea)=>{"use strict";cr.__esModule=!0;var rh=de(),sh=ih(rh),nh=D();function ih(t){return t&&t.__esModule?t:{default:t}}function oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function uh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lh=function(t){uh(e,t);function e(s){oh(this,e);var r=ah(this,t.call(this,s));return r.type=nh.COMMENT,r}return e}(sh.default);cr.default=lh;Ea.exports=cr.default});var Oa=y((fr,Ta)=>{"use strict";fr.__esModule=!0;var ch=qe(),fh=hh(ch),ph=D();function hh(t){return t&&t.__esModule?t:{default:t}}function dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wh=function(t){yh(e,t);function e(s){dh(this,e);var r=mh(this,t.call(this,s));return r.type=ph.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(fh.default);fr.default=wh;Ta.exports=fr.default});var Aa=y((pr,Ca)=>{"use strict";pr.__esModule=!0;var gh=qe(),vh=bh(gh),xh=D();function bh(t){return t&&t.__esModule?t:{default:t}}function _h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sh=function(t){Eh(e,t);function e(s){_h(this,e);var r=kh(this,t.call(this,s));return r.type=xh.TAG,r}return e}(vh.default);pr.default=Sh;Ca.exports=pr.default});var Pa=y((hr,Na)=>{"use strict";hr.__esModule=!0;var Th=de(),Oh=Ah(Th),Ch=D();function Ah(t){return t&&t.__esModule?t:{default:t}}function Nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ih=function(t){Rh(e,t);function e(s){Nh(this,e);var r=Ph(this,t.call(this,s));return r.type=Ch.STRING,r}return e}(Oh.default);hr.default=Ih;Na.exports=hr.default});var Ia=y((dr,Ra)=>{"use strict";dr.__esModule=!0;var qh=ir(),Lh=Mh(qh),Dh=D();function Mh(t){return t&&t.__esModule?t:{default:t}}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $h=function(t){Fh(e,t);function e(s){Bh(this,e);var r=Uh(this,t.call(this,s));return r.type=Dh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(Lh.default);dr.default=$h;Ra.exports=dr.default});var La=y((mr,qa)=>{"use strict";mr.__esModule=!0;var Wh=qe(),Yh=Vh(Wh),zh=D();function Vh(t){return t&&t.__esModule?t:{default:t}}function Gh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kh=function(t){Hh(e,t);function e(s){Gh(this,e);var r=jh(this,t.call(this,s));return r.type=zh.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Yh.default);mr.default=Kh;qa.exports=mr.default});var Ma=y((yr,Da)=>{"use strict";yr.__esModule=!0;var Qh=qe(),Jh=Zh(Qh),Xh=D();function Zh(t){return t&&t.__esModule?t:{default:t}}function ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var sd=function(t){rd(e,t);function e(s){ed(this,e);var r=td(this,t.call(this,s));return r.type=Xh.UNIVERSAL,r.value="*",r}return e}(Jh.default);yr.default=sd;Da.exports=yr.default});var Ua=y((wr,Ba)=>{"use strict";wr.__esModule=!0;var nd=de(),id=ad(nd),od=D();function ad(t){return t&&t.__esModule?t:{default:t}}function ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fd=function(t){cd(e,t);function e(s){ud(this,e);var r=ld(this,t.call(this,s));return r.type=od.COMBINATOR,r}return e}(id.default);wr.default=fd;Ba.exports=wr.default});var $a=y((gr,Fa)=>{"use strict";gr.__esModule=!0;var pd=de(),hd=md(pd),dd=D();function md(t){return t&&t.__esModule?t:{default:t}}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var vd=function(t){gd(e,t);function e(s){yd(this,e);var r=wd(this,t.call(this,s));return r.type=dd.NESTING,r.value="&",r}return e}(hd.default);gr.default=vd;Fa.exports=gr.default});var Ya=y((vr,Wa)=>{"use strict";vr.__esModule=!0;vr.default=xd;function xd(t){return t.sort(function(e,s){return e-s})}Wa.exports=vr.default});var Xa=y((_r,Ja)=>{"use strict";_r.__esModule=!0;_r.default=Pd;var za=39,bd=34,Ms=92,Va=47,xt=10,Bs=32,Us=12,Fs=9,$s=13,Ga=43,ja=62,Ha=126,Ka=124,_d=44,kd=40,Ed=41,Sd=91,Td=93,Od=59,Qa=42,Cd=58,Ad=38,Nd=64,xr=/[ \n\t\r\{\(\)'"\\;/]/g,br=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Pd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,w=void 0,x=s.length,h=-1,d=1,m=0,b=function(v,R){if(t.safe)s+=R,n=s.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+a,p=n-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,n-p,m]),h=p,d=f,m=n):(br.lastIndex=m+1,br.test(s),br.lastIndex===0?n=s.length-1:n=br.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}Ja.exports=_r.default});var tu=y((kr,eu)=>{"use strict";kr.__esModule=!0;var Rd=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new em.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new nm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new Qd.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new rm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,Ws.default)(o,"."),f=(0,Ws.default)(o,"#"),p=(0,Ws.default)(o,"#{");p.length&&(f=f.filter(function(w){return!~p.indexOf(w)}));var l=(0,um.default)((0,Md.default)((0,qd.default)([[0],c,f])));l.forEach(function(w,x){var h=l[x+1]||o.length,d=o.slice(w,h);if(x===0&&r)return r.call(n,d,l.length);var m=void 0;~c.indexOf(w)?m=new Wd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(w)?m=new Gd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):m=new Hd.default({value:d,source:{start:{line:n.currToken[2],column:n.currToken[3]+w},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Er.__esModule=!0;var mm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new wm.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},mm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Er.default=xm;ru.exports=Er.default});var z=y((Sx,iu)=>{"use strict";var zs=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>zs(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=zs(n)),s[r]=n)}return s};iu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=zs(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var _m=z(),Le=class extends _m{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Le.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Le.prototype[e]&&(Le.prototype[e]=function(s){return this.walkType(t,s)})};ou.exports=Le});var uu=y((Cx,au)=>{"use strict";var km=U();au.exports=class extends km{constructor(e){super(e),this.type="root"}}});var cu=y((Nx,lu)=>{"use strict";var Em=U();lu.exports=class extends Em{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var hu=y((Px,pu)=>{"use strict";var fu=U(),Sr=class extends fu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};fu.registerWalker(Sr);pu.exports=Sr});var mu=y((Rx,du)=>{"use strict";var Sm=U(),Tm=z(),Tr=class extends Tm{constructor(e){super(e),this.type="colon"}};Sm.registerWalker(Tr);du.exports=Tr});var wu=y((Ix,yu)=>{"use strict";var Om=U(),Cm=z(),Or=class extends Cm{constructor(e){super(e),this.type="comma"}};Om.registerWalker(Or);yu.exports=Or});var vu=y((qx,gu)=>{"use strict";var Am=U(),Nm=z(),Cr=class extends Nm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Am.registerWalker(Cr);gu.exports=Cr});var _u=y((Lx,bu)=>{"use strict";var xu=U(),Ar=class extends xu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};xu.registerWalker(Ar);bu.exports=Ar});var Eu=y((Dx,ku)=>{"use strict";var Pm=U(),Rm=z(),Nr=class extends Rm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Pm.registerWalker(Nr);ku.exports=Nr});var Tu=y((Mx,Su)=>{"use strict";var Im=U(),qm=z(),Pr=class extends qm{constructor(e){super(e),this.type="operator"}};Im.registerWalker(Pr);Su.exports=Pr});var Cu=y((Bx,Ou)=>{"use strict";var Lm=U(),Dm=z(),Rr=class extends Dm{constructor(e){super(e),this.type="paren",this.parenType=""}};Lm.registerWalker(Rr);Ou.exports=Rr});var Nu=y((Ux,Au)=>{"use strict";var Mm=U(),Bm=z(),Ir=class extends Bm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Mm.registerWalker(Ir);Au.exports=Ir});var Ru=y((Fx,Pu)=>{"use strict";var Um=U(),Fm=z(),qr=class extends Fm{constructor(e){super(e),this.type="word"}};Um.registerWalker(qr);Pu.exports=qr});var qu=y(($x,Iu)=>{"use strict";var $m=U(),Wm=z(),Lr=class extends Wm{constructor(e){super(e),this.type="unicode-range"}};$m.registerWalker(Lr);Iu.exports=Lr});var Du=y((Wx,Lu)=>{"use strict";var Vs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Lu.exports=Vs});var Uu=y((Yx,Bu)=>{"use strict";var Dr=/[ \n\t\r\{\(\)'"\\;,/]/g,Ym=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,De=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,zm=/^[a-z0-9]/i,Vm=/^[a-f0-9?\-]/i,Mu=Du();Bu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,a=1,u=0,c=0,f=null,p,l,w,x,h,d,m,b,g,v,R,F;function H(T){let O=`Unclosed ${T} at line: ${a}, column: ${u-o}, token: ${u}`;throw new Mu(O)}function $(){let T=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new Mu(T)}for(;u0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case 41:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case 39:case 34:w=p===39?"'":'"',l=u;do for(v=!1,l=n.indexOf(w,l+1),l===-1&&H("quote",w),R=l;n.charCodeAt(R-1)===92;)R-=1,v=!v;while(v);r.push(["string",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 64:Dr.lastIndex=u+1,Dr.test(n),Dr.lastIndex===0?l=n.length-1:l=Dr.lastIndex-2,r.push(["atword",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 92:l=u,p=n.charCodeAt(l+1),m&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case 43:case 45:case 42:l=u+1,F=n.slice(u+1,l+1);let T=n.slice(u-1,u);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===47&&(n.charCodeAt(u+1)===42||s.loose&&!f&&n.charCodeAt(u+1)===47)){if(n.charCodeAt(u+1)===42)l=n.indexOf("*/",u+2)+1,l===0&&H("comment","*/");else{let C=n.indexOf(` -`,u+2);l=C!==-1?C-1:i}d=n.slice(u,l+1),x=d.split(` -`),h=x.length-1,h>0?(b=a+h,g=l-x[h].length):(b=a,g=o),r.push(["comment",d,a,u-o,b,l-g,u]),o=g,a=b,u=l}else if(p===35&&!zm.test(n.slice(u+1,u+2)))l=u+1,r.push(["#",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===117||p===85)&&n.charCodeAt(u+1)===43){l=u+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(O=De),O.lastIndex=u+1,O.test(n),O.lastIndex===0?l=n.length-1:l=O.lastIndex-2,O===De||p===46){let C=n.charCodeAt(l),me=n.charCodeAt(l+1),Js=n.charCodeAt(l+2);(C===101||C===69)&&(me===45||me===43)&&Js>=48&&Js<=57&&(De.lastIndex=l+2,De.test(n),De.lastIndex===0?l=n.length-1:l=De.lastIndex-2)}r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var $u=y((zx,Fu)=>{"use strict";var Gs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Fu.exports=Gs});var Vu=y((Gx,zu)=>{"use strict";var Gm=uu(),jm=cu(),Hm=hu(),Km=mu(),Qm=wu(),Jm=vu(),Xm=_u(),Zm=Eu(),ey=Tu(),Wu=Cu(),ty=Nu(),Yu=Ru(),ry=qu(),sy=Uu(),ny=qs(),iy=Ls(),oy=Ds(),ay=$u();function uy(t){return t.sort((e,s)=>e-s)}zu.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new Gm;let n=new jm;this.root.append(n),this.current=n,this.tokens=sy(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Km({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Qm({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new Jm({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new ay(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new ey({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new ry({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];s+=a,e=this.nextToken}i=iy(s,"@"),o=uy(oy(ny([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||s.length,f=s.slice(a,c),p;if(~i.indexOf(a))p=new Hm({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new Zm({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?Xm:Yu)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ty({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Qs={};Xs(Qs,{languages:()=>pi,options:()=>di,parsers:()=>Ks,printers:()=>Ey});var hl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},_=hl;var Me="string",Be="array",Ue="cursor",we="indent",ge="align",Fe="trim",ve="group",xe="fill",oe="if-break",$e="indent-if-break",We="line-suffix",Ye="line-suffix-boundary",K="line",ze="label",be="break-parent",bt=new Set([Ue,we,ge,Fe,ve,xe,oe,$e,We,Ye,K,ze,be]);function dl(t){if(typeof t=="string")return Me;if(Array.isArray(t))return Be;if(!t)return;let{type:e}=t;if(bt.has(e))return e}var Ve=dl;var ml=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function yl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', -Expected it to be 'string' or 'object'.`;if(Ve(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=ml([...bt].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. -Expected it to be ${r}.`}var Fr=class extends Error{name="InvalidDocError";constructor(e){super(yl(e)),this.doc=e}},$r=Fr;var Zs=()=>{},ae=Zs,_t=Zs;function q(t){return ae(t),{type:we,contents:t}}function en(t,e){return ae(e),{type:ge,contents:e,n:t}}function L(t,e={}){return ae(t),_t(e.expandedStates,!0),{type:ve,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function tn(t){return en({type:"root"},t)}function ue(t){return en(-1,t)}function Ge(t){return _t(t),{type:xe,parts:t}}function kt(t,e="",s={}){return ae(t),e!==""&&ae(e),{type:oe,breakContents:t,flatContents:e,groupId:s.groupId}}var je={type:be};var wl={type:K,hard:!0};var A={type:K},M={type:K,soft:!0},E=[wl,je];function V(t,e){ae(t),_t(e);let s=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},G=gl;function vl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(Ve(i)){case Be:return e(i.map(r));case xe:return e({...i,parts:i.parts.map(r)});case oe:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case ve:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case ge:case we:case $e:case ze:case We:return e({...i,contents:r(i.contents)});case Me:case Ue:case Fe:case Ye:case K:case be:return e(i);default:throw new $r(i)}}}function xl(t){return t.type===K&&!t.hard?t.soft?"":" ":t.type===oe?t.flatContents:t}function rn(t){return vl(t,xl)}function bl(t){return Array.isArray(t)&&t.length>0}var ee=bl;var Et="'",sn='"';function _l(t,e){let s=e===!0||e===Et?Et:sn,r=s===Et?sn:Et,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var nn=_l;function kl(t,e,s){let r=e==='"'?"'":'"',i=_(!1,t,/\\(.)|(["'])/gsu,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return e+i+e}var on=kl;function El(t,e){let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":nn(s,e.singleQuote);return on(s,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var St=El;var Wr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},an=Wr;function Sl(t){return(t==null?void 0:t.type)==="front-matter"}var _e=Sl;var Tl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un(t,e,s){if(_e(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||_e(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&G(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Ol(t.value)),t.type==="selector-combinator"&&(e.value=_(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=_(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=_(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=_(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=_(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}un.ignoredProperties=Tl;function Ol(t){return _(!1,_(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var ln=un;async function Cl(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return tn([t.startDelimiter,t.explicitLanguage,E,r,r?E:"",t.endDelimiter])}}var cn=Cl;function fn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await cn(e,s);return r?[r,E]:void 0}}fn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var pn=fn;var He=null;function Ke(t){if(He!==null&&typeof He.property){let e=He;return He=Ke.prototype=null,e}return He=Ke.prototype=t??Object.create(null),new Ke}var Al=10;for(let t=0;t<=Al;t++)Ke();function Yr(t){return Ke(t)}function Nl(t,e="type"){Yr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var hn=Nl;var Pl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},dn=Pl;var Rl=hn(dn),mn=Rl;function Il(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o_n(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${_n(o[0],c)[0]}${i}`}}let u=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?u:"")+(t&&o.length>0?n+s:"")+a+i}function _n(t,e){return[...En,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function Fl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` -`);return e===-1?t:t.slice(0,e)}var An=Fl;function Nn(t){let e=An(t);e&&(t=t.slice(e.length+1));let s=Sn(t),{pragmas:r,comments:n}=On(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Pn(t){let{pragmas:e}=Nn(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Rn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Nn(t),i=Tn(s),o=Cn({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e} +`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new zc(n),this.tokenizer=Yc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),ys.exports.isInlineComment.bind(this)(t)}return!1}}});var co=g((Mv,lo)=>{lo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var po=g((Uv,fo)=>{var Vc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Gc=/\.[0-9]/,jc=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Vc.test(e)===!1&&Gc.test(e)===!1};fo.exports={isMixinToken:jc}});var mo=g((Fv,ho)=>{var Hc=Qt(),Kc=/^url\((.+)\)/;ho.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Hc({css:s});for(t.filename=s.replace(Kc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var vo=g(($v,wo)=>{var yo=/:$/,go=/^:(\s+)?/;wo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(yo.test(e)){let[r]=e.match(yo);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(go.test(s)){let[r]=s.match(go);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var _o=g((Yv,bo)=>{var Qc=Re(),Jc=Jt(),{isInlineComment:Xc}=uo(),{interpolation:xo}=co(),{isMixinToken:Zc}=po(),ef=mo(),tf=vo(),rf=/(!\s*important)$/i;bo.exports=class extends Jc{constructor(...e){super(...e),this.lastNode=null}atrule(e){xo.bind(this)(e)||(super.atrule(e),ef(this.lastNode),tf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new Qc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),y=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(y,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],y=[p[4],p[5]],h=["word",u.map(d=>d[1]).join("")].concat(l,y);e.splice(f,u.length,h)}let a=e.findIndex(c=>rf.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){Xc.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),xo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Zc(s)){this.mixin(e);return}super.unknownWord(e)}}});var Eo=g((Vv,ko)=>{var sf=Yt();ko.exports=class extends sf{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var So=g((Gv,gs)=>{var nf=qe(),of=_o(),af=Eo();gs.exports={parse(t,e){let s=new nf(t,e),r=new of(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,u=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:u.line,column:u.col},n.source.end){let a=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:a,line:c.line,column:c.col}}}),r.root},stringify(t,e){new af(e).stringify(t)},nodeToString(t){let e="";return gs.exports.stringify(t,s=>{e+=s}),e}}});var Zt=g((jv,Oo)=>{"use strict";var uf=ue(),To,Co,ye=class extends uf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new To(new Co,this,e).stringify()}};ye.registerLazyResult=t=>{To=t};ye.registerProcessor=t=>{Co=t};Oo.exports=ye;ye.default=ye});var No=g((Hv,Ao)=>{"use strict";var lf=Gt(),cf=Re(),ff=mt(),pf=qe(),hf=ls(),df=De(),mf=jt();function wt(t,e){if(Array.isArray(t))return t.map(n=>wt(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:pf.prototype};i.map&&(i.map={...i.map,__proto__:hf.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>wt(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new df(r);if(r.type==="decl")return new ff(r);if(r.type==="rule")return new mf(r);if(r.type==="comment")return new cf(r);if(r.type==="atrule")return new lf(r);throw new Error("Unknown node type: "+t.type)}Ao.exports=wt;wt.default=wt});var ws=g((Kv,Po)=>{Po.exports=class{generate(){}}});var vs=g((Jv,Ro)=>{"use strict";var vt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Ro.exports=vt;vt.default=vt});var er=g((Xv,Io)=>{"use strict";var yf=vs(),xt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new yf(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Io.exports=xt;xt.default=xt});var xs=g((Zv,Lo)=>{"use strict";var qo={};Lo.exports=function(e){qo[e]||(qo[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ks=g((tx,Uo)=>{"use strict";var gf=ue(),wf=Zt(),vf=ws(),xf=gt(),Do=er(),bf=De(),_f=ut(),{isClean:j,my:kf}=zt(),ex=xs(),Ef={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Tf={Once:!0,postcssPlugin:!0,prepare:!0},Me=0;function bt(t){return typeof t=="object"&&typeof t.then=="function"}function Mo(t){let e=!1,s=Ef[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,Me,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,Me,s+"Exit"]:[s,s+"Exit"]}function Bo(t){let e;return t.type==="document"?e=["Document",Me,"DocumentExit"]:t.type==="root"?e=["Root",Me,"RootExit"]:e=Mo(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function bs(t){return t[j]=!1,t.nodes&&t.nodes.forEach(e=>bs(e)),t}var _s={},ce=class t{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=bs(s);else if(s instanceof t||s instanceof Do)n=bs(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=xf;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[kf]&&gf.rebuild(n)}this.result=new Do(e,n,r),this.helpers={..._s,postcss:_s,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Sf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Tf[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let r=this.visitTick(s);if(bt(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return bt(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=_f;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new vf(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(bt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[j];)e[j]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,s){return this.async().then(e,s)}toString(){return this.css}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(bt(i))throw this.getAsyncError()}}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex{n[j]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ce.registerPostcss=t=>{_s=t};Uo.exports=ce;ce.default=ce;bf.registerLazyResult(ce);wf.registerLazyResult(ce)});var $o=g((sx,Fo)=>{"use strict";var Cf=ws(),Of=gt(),Af=er(),Nf=ut(),rx=xs(),_t=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Nf;this.result=new Af(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new Cf(i,n,this._opts,s);if(u.isMap()){let[a,c]=u.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,s){return this.async().then(e,s)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=Of;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};Fo.exports=_t;_t.default=_t});var Yo=g((nx,Wo)=>{"use strict";var Pf=Zt(),Rf=ks(),If=$o(),qf=De(),ge=class{constructor(e=[]){this.version="8.4.49",this.plugins=this.normalize(e)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}process(e,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new If(this,e,s):new Rf(this,e,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Wo.exports=ge;ge.default=ge;qf.registerProcessor(ge);Pf.registerProcessor(ge)});var tr=g((ix,Qo)=>{"use strict";var zo=Gt(),Vo=Re(),Lf=ue(),Df=Wt(),Go=mt(),jo=Zt(),Bf=No(),Mf=qe(),Uf=ks(),Ff=ds(),$f=pt(),Wf=gt(),Es=Yo(),Yf=er(),Ho=De(),Ko=jt(),zf=ut(),Vf=vs();function E(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Es(t)}E.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Es().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return E([n(a)]).process(o,u)},n};E.stringify=zf;E.parse=Wf;E.fromJSON=Bf;E.list=Ff;E.comment=t=>new Vo(t);E.atRule=t=>new zo(t);E.decl=t=>new Go(t);E.rule=t=>new Ko(t);E.root=t=>new Ho(t);E.document=t=>new jo(t);E.CssSyntaxError=Df;E.Declaration=Go;E.Container=Lf;E.Processor=Es;E.Document=jo;E.Comment=Vo;E.Warning=Vf;E.AtRule=zo;E.Result=Yf;E.Input=Mf;E.Rule=Ko;E.Root=Ho;E.Node=$f;Uf.registerPostcss(E);Qo.exports=E;E.default=E});var Xo=g((ox,Jo)=>{var{Container:Gf}=tr(),Ss=class extends Gf{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Jo.exports=Ss});var ta=g((ax,ea)=>{"use strict";var rr=/[\t\n\f\r "#'()/;[\\\]{}]/g,sr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jf=/.[\r\n"'(/\\]/,Zo=/[\da-f]/i,nr=/[\n\f\r]/g;ea.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function N(){return m.length===0&&h>=x}function F(){let T=1,C=!1,O=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===92?O=!O:O&&(O=!1):i===39||i===34?C=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function H(T){if(m.length)return m.pop();if(h>=x)return;let C=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);y=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);y=[O,O,h];break}case 44:{y=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),y=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||jf.test(a)?y=["(","(",h]:(y=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o{var{Comment:Hf}=tr(),Kf=Jt(),Qf=Xo(),Jf=ta(),Ts=class extends Kf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Hf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=Jf(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(` +`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new Qf;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};ra.exports=Ts});var ia=g((lx,na)=>{var{Input:Xf}=tr(),Zf=sa();na.exports=function(e,s){let r=new Xf(e,s),n=new Zf(r);return n.parse(),n.root}});var Os=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});function tp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Cs.default=tp});var Ns=g(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var rp=Os(),aa=sp(rp);function sp(t){return t&&t.__esModule?t:{default:t}}function kt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}kt.prototype=Object.create(aa.default.prototype);kt.constructor=aa.default;kt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.parseMediaFeature=ca;Et.parseMediaQuery=Rs;Et.parseMediaList=op;var np=Os(),ua=la(np),ip=Ns(),Ps=la(ip);function la(t){return t&&t.__esModule?t:{default:t}}function ca(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function op(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var u=t[i];u==="("&&o++,u===")"&&o--,i++}e.unshift(new ua.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var a=s;a{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.default=fp;var ap=Ns(),up=cp(ap),lp=fa();function cp(t){return t&&t.__esModule?t:{default:t}}function fp(t){return new up.default({nodes:(0,lp.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var Ls=g((wx,ma)=>{ma.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,u){return Array.isArray(u)&&i{ya.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var Bs=g((xx,ga)=>{"use strict";function dp(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o{"use strict";ir.__esModule=!0;var wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function gp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var wp=function t(e,s){if((typeof e>"u"?"undefined":wa(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":wa(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(u){return t(u,r)}):r[n]=t(i,r)}return r},vp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gp(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,u=o===void 0?"":o;this.spaces={before:i,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=wp(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();ir.default=vp;va.exports=ir.default});var D=g(M=>{"use strict";M.__esModule=!0;var bx=M.TAG="tag",_x=M.STRING="string",kx=M.SELECTOR="selector",Ex=M.ROOT="root",Sx=M.PSEUDO="pseudo",Tx=M.NESTING="nesting",Cx=M.ID="id",Ox=M.COMMENT="comment",Ax=M.COMBINATOR="combinator",Nx=M.CLASS="class",Px=M.ATTRIBUTE="attribute",Rx=M.UNIVERSAL="universal"});var ar=g((or,xa)=>{"use strict";or.__esModule=!0;var xp=function(){function t(e,s){for(var r=0;r=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var u=o;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]{"use strict";ur.__esModule=!0;var Np=ar(),Pp=Ip(Np),Rp=D();function Ip(t){return t&&t.__esModule?t:{default:t}}function qp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Dp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bp=function(t){Dp(e,t);function e(s){qp(this,e);var r=Lp(this,t.call(this,s));return r.type=Rp.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Pp.default);ur.default=Bp;ba.exports=ur.default});var Ea=g((lr,ka)=>{"use strict";lr.__esModule=!0;var Mp=ar(),Up=$p(Mp),Fp=D();function $p(t){return t&&t.__esModule?t:{default:t}}function Wp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vp=function(t){zp(e,t);function e(s){Wp(this,e);var r=Yp(this,t.call(this,s));return r.type=Fp.SELECTOR,r}return e}(Up.default);lr.default=Vp;ka.exports=lr.default});var Ue=g((cr,Sa)=>{"use strict";cr.__esModule=!0;var Gp=function(){function t(e,s){for(var r=0;r{"use strict";fr.__esModule=!0;var eh=Ue(),th=sh(eh),rh=D();function sh(t){return t&&t.__esModule?t:{default:t}}function nh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ih(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function oh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ah=function(t){oh(e,t);function e(s){nh(this,e);var r=ih(this,t.call(this,s));return r.type=rh.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(th.default);fr.default=ah;Ta.exports=fr.default});var Aa=g((pr,Oa)=>{"use strict";pr.__esModule=!0;var uh=we(),lh=fh(uh),ch=D();function fh(t){return t&&t.__esModule?t:{default:t}}function ph(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mh=function(t){dh(e,t);function e(s){ph(this,e);var r=hh(this,t.call(this,s));return r.type=ch.COMMENT,r}return e}(lh.default);pr.default=mh;Oa.exports=pr.default});var Pa=g((hr,Na)=>{"use strict";hr.__esModule=!0;var yh=Ue(),gh=vh(yh),wh=D();function vh(t){return t&&t.__esModule?t:{default:t}}function xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function _h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kh=function(t){_h(e,t);function e(s){xh(this,e);var r=bh(this,t.call(this,s));return r.type=wh.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(gh.default);hr.default=kh;Na.exports=hr.default});var Ia=g((dr,Ra)=>{"use strict";dr.__esModule=!0;var Eh=Ue(),Sh=Ch(Eh),Th=D();function Ch(t){return t&&t.__esModule?t:{default:t}}function Oh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ah(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Nh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ph=function(t){Nh(e,t);function e(s){Oh(this,e);var r=Ah(this,t.call(this,s));return r.type=Th.TAG,r}return e}(Sh.default);dr.default=Ph;Ra.exports=dr.default});var La=g((mr,qa)=>{"use strict";mr.__esModule=!0;var Rh=we(),Ih=Lh(Rh),qh=D();function Lh(t){return t&&t.__esModule?t:{default:t}}function Dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Mh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Uh=function(t){Mh(e,t);function e(s){Dh(this,e);var r=Bh(this,t.call(this,s));return r.type=qh.STRING,r}return e}(Ih.default);mr.default=Uh;qa.exports=mr.default});var Ba=g((yr,Da)=>{"use strict";yr.__esModule=!0;var Fh=ar(),$h=Yh(Fh),Wh=D();function Yh(t){return t&&t.__esModule?t:{default:t}}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Gh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jh=function(t){Gh(e,t);function e(s){zh(this,e);var r=Vh(this,t.call(this,s));return r.type=Wh.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}($h.default);yr.default=jh;Da.exports=yr.default});var Ua=g((gr,Ma)=>{"use strict";gr.__esModule=!0;var Hh=Ue(),Kh=Jh(Hh),Qh=D();function Jh(t){return t&&t.__esModule?t:{default:t}}function Xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ed(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var td=function(t){ed(e,t);function e(s){Xh(this,e);var r=Zh(this,t.call(this,s));return r.type=Qh.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(Kh.default);gr.default=td;Ma.exports=gr.default});var $a=g((wr,Fa)=>{"use strict";wr.__esModule=!0;var rd=Ue(),sd=id(rd),nd=D();function id(t){return t&&t.__esModule?t:{default:t}}function od(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ud(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ld=function(t){ud(e,t);function e(s){od(this,e);var r=ad(this,t.call(this,s));return r.type=nd.UNIVERSAL,r.value="*",r}return e}(sd.default);wr.default=ld;Fa.exports=wr.default});var Ya=g((vr,Wa)=>{"use strict";vr.__esModule=!0;var cd=we(),fd=hd(cd),pd=D();function hd(t){return t&&t.__esModule?t:{default:t}}function dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gd=function(t){yd(e,t);function e(s){dd(this,e);var r=md(this,t.call(this,s));return r.type=pd.COMBINATOR,r}return e}(fd.default);vr.default=gd;Wa.exports=vr.default});var Va=g((xr,za)=>{"use strict";xr.__esModule=!0;var wd=we(),vd=bd(wd),xd=D();function bd(t){return t&&t.__esModule?t:{default:t}}function _d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ed(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sd=function(t){Ed(e,t);function e(s){_d(this,e);var r=kd(this,t.call(this,s));return r.type=xd.NESTING,r.value="&",r}return e}(vd.default);xr.default=Sd;za.exports=xr.default});var ja=g((br,Ga)=>{"use strict";br.__esModule=!0;br.default=Td;function Td(t){return t.sort(function(e,s){return e-s})}Ga.exports=br.default});var ru=g((Er,tu)=>{"use strict";Er.__esModule=!0;Er.default=Bd;var Ha=39,Cd=34,Ms=92,Ka=47,St=10,Us=32,Fs=12,$s=9,Ws=13,Qa=43,Ja=62,Xa=126,Za=124,Od=44,Ad=40,Nd=41,Pd=91,Rd=93,Id=59,eu=42,qd=58,Ld=38,Dd=64,_r=/[ \n\t\r\{\(\)'"\\;/]/g,kr=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Bd(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,u=void 0,a=void 0,c=void 0,f=void 0,p=void 0,l=void 0,y=void 0,x=s.length,h=-1,d=1,m=0,b=function(v,N){if(t.safe)s+=N,n=s.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m0?(f=d+u,p=n-o[u].length):(f=d,p=h),e.push(["comment",a,d,m-h,f,n-p,m]),h=p,d=f,m=n):(kr.lastIndex=m+1,kr.test(s),kr.lastIndex===0?n=s.length-1:n=kr.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}tu.exports=Er.default});var iu=g((Sr,nu)=>{"use strict";Sr.__esModule=!0;var Md=function(){function t(e,s){for(var r=0;r1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new om.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new cm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new rm.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new um.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var u=this.currToken[1];if(o+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(o+=this.parseSpace(a[1]," "),this.position++)}i=this.nextToken}var c=(0,Ys.default)(o,"."),f=(0,Ys.default)(o,"#"),p=(0,Ys.default)(o,"#{");p.length&&(f=f.filter(function(y){return!~p.indexOf(y)}));var l=(0,dm.default)((0,Yd.default)((0,Fd.default)([[0],c,f])));l.forEach(function(y,x){var h=l[x+1]||o.length,d=o.slice(y,h);if(x===0&&r)return r.call(n,d,l.length);var m=void 0;~c.indexOf(y)?m=new Hd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(y)?m=new Xd.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):m=new em.default({value:d,source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position{"use strict";Tr.__esModule=!0;var bm=function(){function t(e,s){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=new km.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},bm(t,[{key:"result",get:function(){return String(this.res)}}]),t}();Tr.default=Tm;ou.exports=Tr.default});var G=g((Bx,lu)=>{"use strict";var Vs=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>Vs(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=Vs(n)),s[r]=n)}return s};lu.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=Vs(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i{"use strict";var Om=G(),Fe=class extends Om{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Fe.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Fe.prototype[e]&&(Fe.prototype[e]=function(s){return this.walkType(t,s)})};cu.exports=Fe});var pu=g((Fx,fu)=>{"use strict";var Am=U();fu.exports=class extends Am{constructor(e){super(e),this.type="root"}}});var du=g((Wx,hu)=>{"use strict";var Nm=U();hu.exports=class extends Nm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var gu=g((Yx,yu)=>{"use strict";var mu=U(),Cr=class extends mu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};mu.registerWalker(Cr);yu.exports=Cr});var vu=g((zx,wu)=>{"use strict";var Pm=U(),Rm=G(),Or=class extends Rm{constructor(e){super(e),this.type="colon"}};Pm.registerWalker(Or);wu.exports=Or});var bu=g((Vx,xu)=>{"use strict";var Im=U(),qm=G(),Ar=class extends qm{constructor(e){super(e),this.type="comma"}};Im.registerWalker(Ar);xu.exports=Ar});var ku=g((Gx,_u)=>{"use strict";var Lm=U(),Dm=G(),Nr=class extends Dm{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Lm.registerWalker(Nr);_u.exports=Nr});var Tu=g((jx,Su)=>{"use strict";var Eu=U(),Pr=class extends Eu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Eu.registerWalker(Pr);Su.exports=Pr});var Ou=g((Hx,Cu)=>{"use strict";var Bm=U(),Mm=G(),Rr=class extends Mm{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Bm.registerWalker(Rr);Cu.exports=Rr});var Nu=g((Kx,Au)=>{"use strict";var Um=U(),Fm=G(),Ir=class extends Fm{constructor(e){super(e),this.type="operator"}};Um.registerWalker(Ir);Au.exports=Ir});var Ru=g((Qx,Pu)=>{"use strict";var $m=U(),Wm=G(),qr=class extends Wm{constructor(e){super(e),this.type="paren",this.parenType=""}};$m.registerWalker(qr);Pu.exports=qr});var qu=g((Jx,Iu)=>{"use strict";var Ym=U(),zm=G(),Lr=class extends zm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Ym.registerWalker(Lr);Iu.exports=Lr});var Du=g((Xx,Lu)=>{"use strict";var Vm=U(),Gm=G(),Dr=class extends Gm{constructor(e){super(e),this.type="word"}};Vm.registerWalker(Dr);Lu.exports=Dr});var Mu=g((Zx,Bu)=>{"use strict";var jm=U(),Hm=G(),Br=class extends Hm{constructor(e){super(e),this.type="unicode-range"}};jm.registerWalker(Br);Bu.exports=Br});var Fu=g((eb,Uu)=>{"use strict";var Gs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Uu.exports=Gs});var Yu=g((tb,Wu)=>{"use strict";var Mr=/[ \n\t\r\{\(\)'"\\;,/]/g,Km=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,$e=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Qm=/^[a-z0-9]/i,Jm=/^[a-f0-9?\-]/i,$u=Fu();Wu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,u=1,a=0,c=0,f=null,p,l,y,x,h,d,m,b,w,v,N,F;function H(T){let C=`Unclosed ${T} at line: ${u}, column: ${a-o}, token: ${a}`;throw new $u(C)}function W(){let T=`Syntax error at line: ${u}, column: ${a-o}, token: ${a}`;throw new $u(T)}for(;a0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",u,a-o,u,l-o,a]);break;case 41:c--,f=f&&c>0,r.push([")",")",u,a-o,u,l-o,a]);break;case 39:case 34:y=p===39?"'":'"',l=a;do for(v=!1,l=n.indexOf(y,l+1),l===-1&&H("quote",y),N=l;n.charCodeAt(N-1)===92;)N-=1,v=!v;while(v);r.push(["string",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 64:Mr.lastIndex=a+1,Mr.test(n),Mr.lastIndex===0?l=n.length-1:l=Mr.lastIndex-2,r.push(["atword",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 92:l=a,p=n.charCodeAt(l+1),m&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(l+=1),r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l;break;case 43:case 45:case 42:l=a+1,F=n.slice(a+1,l+1);let T=n.slice(a-1,a);if(p===45&&F.charCodeAt(0)===45){l++,r.push(["word",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break}r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;break;default:if(p===47&&(n.charCodeAt(a+1)===42||s.loose&&!f&&n.charCodeAt(a+1)===47)){if(n.charCodeAt(a+1)===42)l=n.indexOf("*/",a+2)+1,l===0&&H("comment","*/");else{let O=n.indexOf(` +`,a+2);l=O!==-1?O-1:i}d=n.slice(a,l+1),x=d.split(` +`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",d,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!Qm.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l=48&&p<=57&&(C=$e),C.lastIndex=a+1,C.test(n),C.lastIndex===0?l=n.length-1:l=C.lastIndex-2,C===$e||p===46){let O=n.charCodeAt(l),ve=n.charCodeAt(l+1),Xs=n.charCodeAt(l+2);(O===101||O===69)&&(ve===45||ve===43)&&Xs>=48&&Xs<=57&&($e.lastIndex=l+2,$e.test(n),$e.lastIndex===0?l=n.length-1:l=$e.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Vu=g((rb,zu)=>{"use strict";var js=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};zu.exports=js});var Ku=g((nb,Hu)=>{"use strict";var Xm=pu(),Zm=du(),ey=gu(),ty=vu(),ry=bu(),sy=ku(),ny=Tu(),iy=Ou(),oy=Nu(),Gu=Ru(),ay=qu(),ju=Du(),uy=Mu(),ly=Yu(),cy=Ls(),fy=Ds(),py=Bs(),hy=Vu();function dy(t){return t.sort((e,s)=>e-s)}Hu.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new Xm;let n=new Zm;this.root.append(n),this.current=n,this.tokens=ly(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new ty({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new ry({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new sy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new hy(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new oy({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new uy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let u=this.currToken[1];s+=u,e=this.nextToken}i=fy(s,"@"),o=dy(py(cy([[0],i]))),o.forEach((u,a)=>{let c=o[a+1]||s.length,f=s.slice(u,c),p;if(~i.indexOf(u))p=new ey({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new iy({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a],unit:l})}else p=new(e&&e[0]==="("?ny:ju)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[a]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new ay({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Js={};Zs(Js,{languages:()=>yi,options:()=>wi,parsers:()=>Qs,printers:()=>Ny});var wl=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},k=wl;var We="string",Ye="array",ze="cursor",te="indent",be="align",Ve="trim",re="group",se="fill",pe="if-break",Ge="indent-if-break",_e="line-suffix",je="line-suffix-boundary",K="line",He="label",ke="break-parent",Tt=new Set([ze,te,be,Ve,re,se,pe,Ge,_e,je,K,He,ke]);function vl(t){if(typeof t=="string")return We;if(Array.isArray(t))return Ye;if(!t)return;let{type:e}=t;if(Tt.has(e))return e}var Q=vl;var xl=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function bl(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +Expected it to be 'string' or 'object'.`;if(Q(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=xl([...Tt].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'. +Expected it to be ${r}.`}var Wr=class extends Error{name="InvalidDocError";constructor(e){super(bl(e)),this.doc=e}},Yr=Wr;var en=()=>{},ne=en,Ee=en;function q(t){return ne(t),{type:te,contents:t}}function tn(t,e){return ne(e),{type:be,contents:e,n:t}}function L(t,e={}){return ne(t),Ee(e.expandedStates,!0),{type:re,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function rn(t){return tn({type:"root"},t)}function ie(t){return tn(-1,t)}function Se(t){return Ee(t),{type:se,parts:t}}function Ct(t,e="",s={}){return ne(t),e!==""&&ne(e),{type:pe,breakContents:t,flatContents:e,groupId:s.groupId}}function sn(t){return ne(t),{type:_e,contents:t}}var Ke={type:ke};var _l={type:K,hard:!0};var A={type:K},B={type:K,soft:!0},S=[_l,Ke];function Y(t,e){ne(t),Ee(e);let s=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},$=kl;function El(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(Q(i)){case Ye:return e(i.map(r));case se:return e({...i,parts:i.parts.map(r)});case pe:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case re:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case be:case te:case Ge:case He:case _e:return e({...i,contents:r(i.contents)});case We:case ze:case Ve:case je:case K:case ke:return e(i);default:throw new Yr(i)}}}function Sl(t){return t.type===K&&!t.hard?t.soft?"":" ":t.type===pe?t.flatContents:t}function nn(t){return El(t,Sl)}function Tl(t){return Array.isArray(t)&&t.length>0}var oe=Tl;var on=new Proxy(()=>{},{get:()=>on}),an=on;var Ot="'",un='"';function Cl(t,e){let s=e===!0||e===Ot?Ot:un,r=s===Ot?un:Ot,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var ln=Cl;function Ol(t,e,s){let r=e==='"'?"'":'"',i=k(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var cn=Ol;function Al(t,e){an(/^(?["']).*\k$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":ln(s,e.singleQuote);return t.charAt(0)===r?t:cn(s,r,!1)}var At=Al;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},fn=zr;function Nl(t){return(t==null?void 0:t.type)==="front-matter"}var Te=Nl;var Pl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function pn(t,e,s){if(Te(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Te(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Rl(t.value)),t.type==="selector-combinator"&&(e.value=k(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=k(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=k(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=k(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=k(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}pn.ignoredProperties=Pl;function Rl(t){return k(!1,k(!1,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var hn=pn;async function Il(t,e){if(t.language==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return rn([t.startDelimiter,t.explicitLanguage,S,r,r?S:"",t.endDelimiter])}}var dn=Il;function mn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await dn(e,s);return r?[r,S]:void 0}}mn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var yn=mn;var Qe=null;function Je(t){if(Qe!==null&&typeof Qe.property){let e=Qe;return Qe=Je.prototype=null,e}return Qe=Je.prototype=t??Object.create(null),new Je}var ql=10;for(let t=0;t<=ql;t++)Je();function Vr(t){return Je(t)}function Ll(t,e="type"){Vr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var gn=Ll;var Dl={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},wn=Dl;var Bl=gn(wn),vn=Bl;function Ml(t,e){let s=0;for(let r=0;r{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&oTn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Tn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Tn(t,e){return[...On,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function Vl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` +`);return e===-1?t:t.slice(0,e)}var In=Vl;function qn(t){let e=In(t);e&&(t=t.slice(e.length+1));let s=An(t),{pragmas:r,comments:n}=Pn(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Ln(t){let{pragmas:e}=qn(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Dn(t){let{shebang:e,text:s,pragmas:r,comments:n}=qn(t),i=Nn(s),o=Rn({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e} `:"")+o+(i.startsWith(` `)?` `:` -`)+i}var Qe=3;function $l(t){let e=t.slice(0,Qe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` -`,Qe);if(s===-1)return;let r=t.slice(Qe,s).trim(),n=t.indexOf(` +`)+i}var Xe=3;function Gl(t){let e=t.slice(0,Xe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(` +`,Xe);if(s===-1)return;let r=t.slice(Xe,s).trim(),n=t.indexOf(` ${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(` -...`,s)),n===-1)return;let o=n+1+Qe,a=t.charAt(o+1);if(!/\s?/u.test(a))return;let u=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:u.slice(-Qe),raw:u}}function Wl(t){let e=$l(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:_(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Je=Wl;function In(t){return Pn(Je(t).content)}function qn(t){let{frontMatter:e,content:s}=Je(t);return(e?e.raw+` +...`,s)),n===-1)return;let o=n+1+Xe,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Xe),raw:a}}function jl(t){let e=Gl(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:k(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ze=jl;function Bn(t){return Ln(Ze(t).content)}function Mn(t){let{frontMatter:e,content:s}=Ze(t);return(e?e.raw+` -`:"")+Rn(s)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var zl=new Set(["initial","inherit","unset","revert"]);function Dn(t){return zl.has(t.toLowerCase())}function Mn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function te(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function ke(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Bn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Ee(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Un(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function Fn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function $n(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Wn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function Yn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function zn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Vn(t){return t.type==="value-word"&&t.value==="in"}function At(t){return t.type==="value-operator"&&t.value==="*"}function Xe(t){return t.type==="value-operator"&&t.value==="/"}function Q(t){return t.type==="value-operator"&&t.value==="+"}function le(t){return t.type==="value-operator"&&t.value==="-"}function Vl(t){return t.type==="value-operator"&&t.value==="%"}function Nt(t){return At(t)||Xe(t)||Q(t)||le(t)||Vl(t)}function Gn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function jn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Ze(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Hr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Pt(t){return t.name.startsWith("prettier-placeholder")}function Hn(t){return t.prop.startsWith("@prettier-placeholder")}function Kn(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function Qn(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function Jn(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function ce(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Rt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function jr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Rt(t.groups[0])}function Kr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!jr(s)&&!(r&&jr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||jr(r)||r.type==="value-func")}function Qr(t){return t.type==="value-comment"&&t.inline}function It(t){return t.type==="value-word"&&t.value==="#"}function Jr(t){return t.type==="value-word"&&t.value==="{"}function qt(t){return t.type==="value-word"&&t.value==="}"}function et(t){return["value-word","value-atword"].includes(t.type)}function Lt(t){return(t==null?void 0:t.type)==="value-colon"}function Xn(t,e){if(!Rt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:Lt(s[r+1])}function Zn(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ei(t){return t.type!=="value-func"?!1:Yl.has(t.value.toLowerCase())}function Se(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function ti(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function rt(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function Gl(t,e,s){var d;let{node:r}=t,n=t.parent,i=t.grandparent,o=Ln(t),a=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&Ze(u,e),f=r.groups.some(m=>Qr(m)),p=t.map(s,"groups"),l=[],w=ke(t,"url"),x=!1,h=!1;for(let m=0;mme:C!==-1?x=!0:me!==-1&&(x=!1)}if(x||Lt(g)||Lt(v)||g.type==="value-atword"&&(g.value===""||g.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||g.value==="~"||g.type!=="value-string"&&g.value&&g.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&g.type==="value-operator"&&g.value==="/"||g.value==="\\"||Kn(g,v)||It(g)||Jr(g)||qt(v)||Jr(v)&&ce(v)||qt(g)&&ce(v)||g.value==="--"&&It(v))continue;let F=Nt(g),H=Nt(v);if((F&&It(v)||H&&qt(g))&&ce(v)||!b&&Xe(g)||ke(t,"calc")&&(Q(g)||Q(v)||le(g)||le(v))&&ce(v))continue;let $=(Q(g)||le(g))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&ei(i)&&!ce(v),T=(R==null?void 0:R.type)==="value-func"||R&&et(R)||g.type==="value-func"||et(g),O=v.type==="value-func"||et(v)||(b==null?void 0:b.type)==="value-func"||b&&et(b);if(e.parser==="scss"&&F&&g.value==="-"&&v.type==="value-func"&&P(g)!==N(v)){l.push(" ");continue}if(!(!(At(v)||At(g))&&!ke(t,"calc")&&!$&&(Xe(v)&&!T||Xe(g)&&!O||Q(v)&&!T||Q(g)&&!O||le(v)||le(g))&&(ce(v)||F&&(!b||b&&Nt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&g.value==="-"&&rt(v)&&P(g)===N(v.open)&&v.open.value==="(")){if(Qr(g)){if(n.type==="value-paren_group"){l.push(ue(E));continue}l.push(E);continue}if(c&&(Gn(v)||jn(v)||zn(v)||Vn(g)||Yn(g))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){g.source&&v.source&&g.source.start.line!==v.source.start.line?(l.push(E),h=!0):l.push(" ");continue}if(H){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(tt(g)&&tt(v)&&P(g)===N(v))){if(tt(g)&&rt(v)&&P(g)===N(v.open)){l.push(M);continue}if(g.value==="with"&&rt(v)){l.push(" ");continue}(d=g.value)!=null&&d.endsWith("#")&&v.value==="{"&&rt(v.group)||l.push(A)}}}return f&&l.push(je),h&&l.unshift(E),c?L(q(l)):Un(t)?L(Ge(l)):L(q(Ge(l)))}var ri=Gl;function jl(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var si=jl;var Xr=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function ni(t){let e=t.toLowerCase();return Xr.has(e)?Xr.get(e):t}var ii=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Hl=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,Kl=/[a-z]+/giu,Ql=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,Jl=new RegExp(ii.source+`|(${Ql.source})?(${Hl.source})(${Kl.source})?`,"giu");function W(t,e){return _(!1,t,ii,s=>St(s,e))}function oi(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function fe(t){return _(!1,t,Jl,(e,s,r,n,i)=>!r&&n?Zr(n)+te(i||""):e)}function Zr(t){return si(t).replace(/\.0(?=$|e)/u,"")}function ai(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function Xl(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` +`:"")+Dn(s)}var Hl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Un(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var Kl=new Set(["initial","inherit","unset","revert"]);function Fn(t){return Kl.has(t.toLowerCase())}function $n(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ae(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ce(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Wn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Oe(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Yn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Vn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Gn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function jn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Hn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Kn(t){return t.type==="value-word"&&t.value==="in"}function It(t){return t.type==="value-operator"&&t.value==="*"}function et(t){return t.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Ql(t){return t.type==="value-operator"&&t.value==="%"}function qt(t){return It(t)||et(t)||J(t)||he(t)||Ql(t)}function Qn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Jn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function tt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Qr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Lt(t){return t.name.startsWith("prettier-placeholder")}function Xn(t){return t.prop.startsWith("@prettier-placeholder")}function Zn(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ei(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function ti(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Dt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Kr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Dt(t.groups[0])}function Jr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Kr(s)&&!(r&&Kr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Kr(r)||r.type==="value-func")}function Ae(t){return t.type==="value-comment"&&t.inline}function Bt(t){return t.type==="value-word"&&t.value==="#"}function Xr(t){return t.type==="value-word"&&t.value==="{"}function Mt(t){return t.type==="value-word"&&t.value==="}"}function rt(t){return["value-word","value-atword"].includes(t.type)}function st(t){return(t==null?void 0:t.type)==="value-colon"}function ri(t,e){if(!Dt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:st(s[r+1])}function si(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ni(t){return t.type!=="value-func"?!1:Hl.has(t.value.toLowerCase())}function Ne(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function nt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function ii(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function it(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}function Jl(t,e,s){var d;let{node:r}=t,n=t.parent,i=t.grandparent,o=Un(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(m=>m.type==="css-atrule"),c=a&&tt(a,e),f=r.groups.some(m=>Ae(m)),p=t.map(s,"groups"),l=[""],y=Ce(t,"url"),x=!1,h=!1;for(let m=0;m2&&r.groups.slice(0,m).every(O=>O.type==="value-comment")&&!Ae(b)&&(l[l.length-2]=ie($(!1,l,-2))),Oe(t,"forward")&&w.type==="value-word"&&w.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||!v||w.type==="value-word"&&w.value.endsWith("-")&&nt(v))continue;if(w.type==="value-string"&&w.quoted){let O=w.value.lastIndexOf("#{"),ve=w.value.lastIndexOf("}");O!==-1&&ve!==-1?x=O>ve:O!==-1?x=!0:ve!==-1&&(x=!1)}if(x||st(w)||st(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||Zn(w,v)||Bt(w)||Xr(w)||Mt(v)||Xr(v)&&de(v)||Mt(w)&&de(v)||w.value==="--"&&Bt(v))continue;let F=qt(w),H=qt(v);if((F&&Bt(v)||H&&Mt(w))&&de(v)||!b&&et(w)||Ce(t,"calc")&&(J(w)||J(v)||he(w)||he(v))&&de(v))continue;let W=(J(w)||he(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&ni(i)&&!de(v),T=(N==null?void 0:N.type)==="value-func"||N&&rt(N)||w.type==="value-func"||rt(w),C=v.type==="value-func"||rt(v)||(b==null?void 0:b.type)==="value-func"||b&&rt(b);if(e.parser==="scss"&&F&&w.value==="-"&&v.type==="value-func"&&R(w)!==P(v)){l.push([l.pop()," "]);continue}if(!(!(It(v)||It(w))&&!Ce(t,"calc")&&!W&&(et(v)&&!T||et(w)&&!C||J(v)&&!T||J(w)&&!C||he(v)||he(w))&&(de(v)||F&&(!b||b&&qt(b))))&&!((e.parser==="scss"||e.parser==="less")&&F&&w.value==="-"&&it(v)&&R(w)===P(v.open)&&v.open.value==="(")){if(Ae(w)){if(n.type==="value-paren_group"){l.push(ie(S),"");continue}l.push(S,"");continue}if(c&&(Qn(v)||Jn(v)||Hn(v)||Kn(w)||jn(w))){l.push([l.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){l.push([l.pop()," "]);continue}if(u){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(S,""),h=!0):l.push([l.pop()," "]);continue}if(H){l.push([l.pop()," "]);continue}if((v==null?void 0:v.value)!=="..."&&!(nt(w)&&nt(v)&&R(w)===P(v))){if(nt(w)&&it(v)&&R(w)===P(v.open)){l.push(B,"");continue}if(w.value==="with"&&it(v)){l=[[Se(l)," "]];continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&&it(v.group)||Ae(v)&&!N||l.push(A,"")}}}return f&&l.push([l.pop(),Ke]),h&&l.unshift("",S),c?L(q(l)):Yn(t)?L(Se(l)):L(q(Se(l)))}var oi=Jl;function Xl(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ai=Xl;var Zr=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ui(t){let e=t.toLowerCase();return Zr.has(e)?Zr.get(e):t}var li=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Zl=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,ec=/[a-z]+/giu,tc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,rc=new RegExp(li.source+`|(${tc.source})?(${Zl.source})(${ec.source})?`,"giu");function z(t,e){return k(!1,t,li,s=>At(s,e))}function ci(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function me(t){return k(!1,t,rc,(e,s,r,n,i)=>!r&&n?es(n)+ae(i||""):e)}function es(t){return ai(t).replace(/\.0(?=$|e)/u,"")}function fi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}function sc(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===` `)return e-2;if(n===` `||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===` `)return e+2;if(n===` -`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Dt=Xl;function Zl(t,e,s={}){let r=Ot(t,s.backwards?e-1:e,s),n=Dt(t,r,s);return r!==n}var Mt=Zl;function ec(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&ai(e)&&t.callParent(()=>Kr(t,e))?kt(","):""}function ci(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:w})=>typeof w=="string"?w:s(),"groups");if(n&&Fn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",V(",",i),r.close?s("close"):""];if(!r.open){let w=es(t),x=V([",",w?E:A],i);return q(w?[E,x]:L(Ge(x)))}let o=t.map(({node:w,isLast:x,index:h})=>{var b;let d=i[h];if(Rt(w)&&w.type==="value-comma_group"&&w.groups&&w.groups[0].type!=="value-paren_group"&&((b=w.groups[2])==null?void 0:b.type)==="value-paren_group"){let{parts:g}=d.contents.contents;g[1]=L(g[1]),d=L(ue(d))}let m=[d,x?nc(t,e):","];if(!x&&w.type==="value-comma_group"&&ee(w.groups)){let g=G(!1,w.groups,-1);!g.source&&g.close&&(g=g.close),g.source&&Bt(e.originalText,P(g))&&m.push(E)}return m},"groups"),a=Xn(r,n),u=ti(r,n),c=Kr(t,e),f=u||c&&!a,p=u||a,l=L([r.open?s("open"):"",q([M,V(A,o)]),M,r.close?s("close"):""],{shouldBreak:f});return p?ue(l):l}function es(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function ic(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(N(n),P(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Mt(e.originalText,N(o),{backwards:!0})&&!_e(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:E),Bt(e.originalText,P(n))&&!_e(n)&&r.push(E))},"nodes"),r}var Te=ic;function oc(t,e,s){var n,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,E];case"css-root":{let f=Te(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),E]:"",f,p?` ${p}`:"",r.nodes.length>0?E:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(N(r),P(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Se(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([E,Te(t,e,s)]):"",E,"}",Wn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),w=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=Qn(r)?rn(h):h,!w&&Se(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>es(t),"value","group","group"))&&(h=q([E,ue(h)])),[_(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Bn(t)?r.prop:te(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([M,Te(t,e,s)]),M,"}"]:Hn(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?kt(";"):";"]}case"css-atrule":{let f=t.parent,p=Pt(r)&&!f.raws.semicolon&&e.originalText[P(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?M:"",Te(t,e,s)]),M,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Hr(r)||r.name.endsWith(":")||Pt(r)?r.name:te(r.name),r.params?[Hr(r)?"":Pt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[E,E]:/^\s*\n/u.test(r.raws.afterName)?E:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),Ze(r,e)?Jn(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[Ze(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Se(r.selector.value)||!r.selector&&typeof r.params=="string"&&Se(r.params)?A:" ","{",q([r.nodes.length>0?M:"",Te(t,e,s)]),M,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(V(A,f)))}case"media-query":return[V(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return fe(W(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return te(W(_(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return fe(W(r.value,e));case"media-keyword":return W(r.value,e);case"media-url":return W(_(!1,_(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([Ee(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",V([",",Ee(t,["extend","custom-selector","nest"])?A:E],t.map(s,"nodes"))]);case"selector-selector":return L(q(t.map(s,"nodes")));case"selector-comment":return r.value;case"selector-string":return W(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:fe(Mn(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",fe(W(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?oi(W(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=fe(W(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[te(r.value),ee(r.nodes)?L(["(",q([M,V([",",A],t.map(s,"nodes"))]),M,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(w=>w.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return fe(W(te(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let w=N(p),x=w+p.raws.selector.length;return e.originalText.slice(w,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let w=P(p.open)+1,x=N(p.close),h=e.originalText.slice(w,x).trim();return Se(h)?[je,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(N(r),P(r));case"value-comma_group":return ri(t,e,s);case"value-paren_group":return ci(t,e,s);case"value-func":return[r.value,Ee(t,"supports")&&Zn(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[Zr(r.value),ni(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Dn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||ke(t,"url")?"":A]}case"value-string":return St(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new an(r,"PostCSS")}}var ac={print:oc,embed:pn,insertPragma:qn,massageAstNode:ln,getVisitorKeys:mn},fi=ac;var pi=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var hi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var uc={singleQuote:hi.singleQuote},di=uc;var Ks={};Xs(Ks,{css:()=>by,less:()=>_y,scss:()=>ky});var el=ye(pt(),1),tl=ye(bo(),1),rl=ye(ta(),1);function Hf(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ra=Hf;var la=ye(ua(),1);function J(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)J(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function Is(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)Is(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var op=la.default.default;function ap(t){let e;try{e=op(t)}catch{return{type:"selector-unknown",value:t}}return J(Is(e),"media-")}var ca=ap;var nu=ye(su(),1);function bm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new nu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return J(e,"selector-")}var Z=bm;var Qu=ye(Vu(),1);var ly=t=>{for(;t.parent;)t=t.parent;return t},Mr=ly;function cy(t){return Mr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Gu=cy;function fy(t){if(ee(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var ju=fy;function py(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Hu=py;function hy(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Ku=hy;function dy(t,e){var u;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=G(!1,a,-1),o.groups.push(r),n.pop(),r=G(!1,n,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Br(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Br(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Br)}:t}function Ju(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(Ju(t[s],e),s==="nodes"&&(t.group=Br(dy(t,e)),delete t[s]));return t}function my(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new Qu.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=Ju(s,e);return J(r,"value-",/^selector-/u)}var ie=my;var yy=new Set(["import","use","forward"]);function wy(t){return yy.has(t)}var Xu=wy;function gy(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Zu=gy;var vy=/(\s*)(!default).*$/u,xy=/(\s*)(!global).*$/u;function sl(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)sl(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=_(!1,u,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=ol:e.parser==="less"?p=il:p=nl;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=ie(n,e),t):(Zu(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=Z(n),t);if(i.length>0){let a=i.match(vy);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(xy);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=ie(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=Z(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=Z(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=a,t.selector=Z(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=ie(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=ie(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=Z(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=ie(o,e):(t.selector=Z(o),delete t.params),t):Xu(u)?(t.import=!0,delete t.filename,t.params=ie(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=ie(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=ca(o),t):(t.params=o,t)}}return t}function js(t,e,s){let r=Je(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:ra(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=sl(J(i,"css-"),s),Gr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function nl(t,e={}){return js(el.default.default,t,e)}function il(t,e={}){return js(s=>tl.default.parse(vn(s)),t,e)}function ol(t,e={}){return js(rl.default,t,e)}var Hs={astFormat:"postcss",hasPragma:In,locStart:N,locEnd:P},by={...Hs,parse:nl},_y={...Hs,parse:il},ky={...Hs,parse:ol};var Ey={postcss:fi};var Ob=Qs;export{Ob as default,pi as languages,di as options,Ks as parsers,Ey as printers}; +`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Ut=sc;function nc(t,e,s={}){let r=Pt(t,s.backwards?e-1:e,s),n=Ut(t,r,s);return r!==n}var Ft=nc;function ic(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;ss.type==="value-comment"))&&fi(e)&&t.callParent(()=>Jr(t,e))?Ct(","):""}function di(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:y})=>typeof y=="string"?y:s(),"groups");if(n&&zn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let y=ts(t);Ee(i);let x=cc(Y(",",i),2),h=Y(y?S:A,x);return q(y?[S,h]:L(Se(h)))}let o=t.map(({node:y,isLast:x,index:h})=>{var b;let d=i[h];Dt(y)&&y.type==="value-comma_group"&&y.groups&&y.groups[0].type!=="value-paren_group"&&((b=y.groups[2])==null?void 0:b.type)==="value-paren_group"&&Q(d)===re&&Q(d.contents)===te&&Q(d.contents.contents)===se&&(d=L(ie(d)));let m=[d,x?lc(t,e):","];if(!x&&y.type==="value-comma_group"&&oe(y.groups)){let w=$(!1,y.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&$t(e.originalText,R(w))&&m.push(S)}return m},"groups"),u=ri(r,n),a=ii(r,n),c=Jr(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([B,Y(A,o)]),B,r.close?s("close"):""],{shouldBreak:f});return p?ie(l):l}function ts(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function cc(t,e){let s=[];for(let r=0;r{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Ft(e.originalText,P(o),{backwards:!0})&&!Te(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),$t(e.originalText,R(n))&&!Te(n)&&r.push(S))},"nodes"),r}var Pe=fc;function pc(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Pe(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Ne(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Pe(t,e,s)]):"",S,"}",Gn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),y=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ei(r)?nn(h):h,!y&&Ne(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>ts(t),"value","group","group"))&&(h=q([S,ie(h)])),[k(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Wn(t)?r.prop:ae(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([B,Pe(t,e,s)]),B,"}"]:Xn(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ct(";"):";"]}case"css-atrule":{let f=t.parent,p=Lt(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",q([r.nodes.length>0?B:"",Pe(t,e,s)]),B,"}"]:"",p?"":";"]}let l=r.name==="import"&&((u=r.params)==null?void 0:u.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Qr(r)||r.name.endsWith(":")||Lt(r)?r.name:ae(r.name),r.params?[Qr(r)?"":Lt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[S,S]:/^\s*\n/u.test(r.raws.afterName)?S:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?q([" ",s("selector")]):"",r.value?L([" ",s("value"),tt(r,e)?ti(r)?" ":A:""]):r.name==="else"?" ":"",r.nodes?[tt(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ne(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ne(r.params)?A:" ","{",q([r.nodes.length>0?B:"",Pe(t,e,s)]),B,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(q(Y(A,f)))}case"media-query":return[Y(" ",t.map(s,"nodes")),t.isLast?"":","];case"media-type":return me(z(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return ae(z(k(!1,r.value,/ +/gu," "),e));case"media-colon":return[r.value," "];case"media-value":return me(z(r.value,e));case"media-keyword":return z(r.value,e);case"media-url":return z(k(!1,k(!1,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return r.value;case"selector-root":return L([Oe(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,A]:"",Y([",",Oe(t,["extend","custom-selector","nest"])?A:S],t.map(s,"nodes"))]);case"selector-selector":{let f=r.nodes.length>1;return L((f?q:p=>p)(t.map(s,"nodes")))}case"selector-comment":return r.value;case"selector-string":return z(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((a=t.previous)==null?void 0:a.type)==="selector-nesting"?r.value:me($n(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",me(z(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?ci(z(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":A,r.value,t.isLast?"":" "]}let f=r.value.trim().startsWith("(")?A:"",p=me(z(r.value.trim(),e))||A;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[ae(r.value),oe(r.nodes)?L(["(",q([B,Y([",",A],t.map(s,"nodes"))]),B,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(y=>y.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return me(z(ae(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let y=P(p),x=y+p.raws.selector.length;return e.originalText.slice(y,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let y=R(p.open)+1,x=P(p.close),h=e.originalText.slice(y,x).trim();return Ne(h)?[Ke,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(P(r),R(r));case"value-comma_group":return oi(t,e,s);case"value-paren_group":return di(t,e,s);case"value-func":return[r.value,Oe(t,"supports")&&si(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[es(r.value),ui(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Fn(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return L([r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ce(t,"url")?"":A])}case"value-string":return At(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new fn(r,"PostCSS")}}var hc={print:pc,embed:yn,insertPragma:Mn,massageAstNode:hn,getVisitorKeys:vn},mi=hc;var yi=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var gi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var dc={singleQuote:gi.singleQuote},wi=dc;var Qs={};Zs(Qs,{css:()=>Cy,less:()=>Oy,scss:()=>Ay});var il=xe(gt(),1),ol=xe(So(),1),al=xe(ia(),1);function ep(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var oa=ep;var ha=xe(pa(),1);function X(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)X(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function qs(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)qs(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var pp=ha.default.default;function hp(t){let e;try{e=pp(t)}catch{return{type:"selector-unknown",value:t}}return X(qs(e),"media-")}var da=hp;var uu=xe(au(),1);function Cm(t){if(/\/\/|\/\*/u.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new uu.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return X(e,"selector-")}var ee=Cm;var tl=xe(Ku(),1);var my=t=>{for(;t.parent;)t=t.parent;return t},Ur=my;function yy(t){return Ur(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var Qu=yy;function gy(t){if(oe(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Ju=gy;function wy(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var Xu=wy;function vy(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var Zu=vy;var el=t=>t.type==="paren"&&t.value===")";function xy(t,e){var a;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let c=0;c0&&r.groups.push(o),r.close=f,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=$(!1,u,-1),o.groups.push(r),n.pop(),r=$(!1,n,-1)}else if(f.type==="comma"){if(c===s.length-3&&s[c+1].type==="comment"&&el(s[c+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function Fr(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Fr(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Fr)}:t}function rl(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(rl(t[s],e),s==="nodes"&&(t.group=Fr(xy(t,e)),delete t[s]));return t}function by(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new tl.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=rl(s,e);return X(r,"value-",/^selector-/u)}var fe=by;var _y=new Set(["import","use","forward"]);function ky(t){return _y.has(t)}var sl=ky;function Ey(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var nl=Ey;var Sy=/(\s*)(!default).*$/u,Ty=/(\s*)(!global).*$/u;function ul(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let u in t)ul(t[u],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let u;if(t.value.trimEnd().endsWith("}")){let a=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),f=k(!1,a,/[^\n]/gu," ")+c,p;e.parser==="scss"?p=fl:e.parser==="less"?p=cl:p=ll;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(u=l.nodes[0].nodes)}return u?t.value={type:"css-rule",nodes:u}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=i.trim());let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=fe(n,e),t):(nl(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=ee(n),t);if(i.trim().length>0){let u=i.match(Sy);u&&(i=i.slice(0,u.index),t.scssDefault=!0,u[0].trim()!=="!default"&&(t.raws.scssDefault=u[0]));let a=i.match(Ty);if(a&&(i=i.slice(0,a.index),t.scssGlobal=!0,a[0].trim()!=="!global"&&(t.raws.scssGlobal=a[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=fe(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=ee(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let u=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=ee(u),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let u=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=u,t.selector=ee(t.params.slice(u.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let u=t.name.split(":");t.name=u[0],t.value=fe(u.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let u=t.params.slice(1);u&&(t.value=fe(u,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:u}=t,a=t.name.toLowerCase();return u==="warn"||u==="error"?(t.params={type:"media-unknown",value:o},t):u==="extend"||u==="nest"?(t.selector=ee(o),delete t.params,t):u==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?t.params=fe(o,e):(t.selector=ee(o),delete t.params),t):sl(a)?(t.import=!0,delete t.filename,t.params=fe(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(u)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),t.value=fe(o,e),delete t.params,t):["media","custom-media"].includes(a)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=da(o),t):(t.params=o,t)}}return t}function Hs(t,e,s){let r=Ze(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:u,reason:a,line:c,column:f}=o;throw typeof c!="number"?o:oa(`${u}: ${a}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=ul(X(i,"css-"),s),Hr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function ll(t,e={}){return Hs(il.default.default,t,e)}function cl(t,e={}){return Hs(s=>ol.default.parse(kn(s)),t,e)}function fl(t,e={}){return Hs(al.default,t,e)}var Ks={astFormat:"postcss",hasPragma:Bn,locStart:P,locEnd:R},Cy={...Ks,parse:ll},Oy={...Ks,parse:cl},Ay={...Ks,parse:fl};var Ny={postcss:mi};var Ub=Js;export{Ub as default,yi as languages,wi as options,Qs as parsers,Ny as printers}; diff --git a/node_modules/prettier/plugins/typescript.js b/node_modules/prettier/plugins/typescript.js index f70ac00b..a501c483 100644 --- a/node_modules/prettier/plugins/typescript.js +++ b/node_modules/prettier/plugins/typescript.js @@ -1,20 +1,20 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var Xc=Object.defineProperty;var hy=Object.getOwnPropertyDescriptor;var yy=Object.getOwnPropertyNames;var gy=Object.prototype.hasOwnProperty;var jd=e=>{throw TypeError(e)};var by=(e,t,a)=>t in e?Xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Ld=(e,t)=>{for(var a in t)Xc(e,a,{get:t[a],enumerable:!0})},vy=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of yy(t))!gy.call(e,h)&&h!==a&&Xc(e,h,{get:()=>t[h],enumerable:!(o=hy(t,h))||o.enumerable});return e};var xy=e=>vy(Xc({},"__esModule",{value:!0}),e);var Ma=(e,t,a)=>by(e,typeof t!="symbol"?t+"":t,a),Ty=(e,t,a)=>t.has(e)||jd("Cannot "+a);var Rd=(e,t,a)=>t.has(e)?jd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var we=(e,t,a)=>(Ty(e,t,"access private method"),a);var N3={};Ld(N3,{parsers:()=>Nd});var Nd={};Ld(Nd,{typescript:()=>P3});var Sy=()=>()=>{},Ja=Sy;var Bm="5.5";var Ot=[],wy=new Map;function ms(e){return e?e.length:0}function zn(e,t){if(e)for(let a=0;aa(o,t[h]))}function Kr(e,t){if(e){let a=e.length,o=0;for(;o0;return!1}function uf(e,t){return qt(t)?qt(e)?[...e,...t]:t:e}function Py(e,t){return t}function Ny(e){return e.map(Py)}function Cn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Hp(e,t){return t<0?e.length+t:t}function Pn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Hp(t,a),o=o===void 0?t.length:Hp(t,o);for(let h=a;ha(e[o],e[h])||mf(o,h))}function Jy(e,t){let a=Ny(e);return My(e,a,t),a.map(o=>e[o])}var M3=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Hp(e,t),t>1),l=a(e[C],C);switch(o(l,t)){case-1:g=C+1;break;case 0:return C;case 1:E=C-1;break}}return~g}function By(e,t,a,o,h){if(e&&e.length>0){let g=e.length;if(g>0){let E=o===void 0||o<0?0:o,C=h===void 0||E+h>g-1?g-1:E+h,l;for(arguments.length<=2?(l=e[E],E++):l=a;E<=C;)l=t(l,e[E],E),E++;return l}}return a}var Vm=Object.prototype.hasOwnProperty;function Mr(e,t){return Vm.call(e,t)}function qy(e){let t=[];for(let a in e)Vm.call(e,a)&&t.push(a);return t}function zy(){let e=new Map;return e.add=Fy,e.remove=Vy,e}function Fy(e,t){let a=this.get(e);return a?a.push(t):this.set(e,a=[t]),a}function Vy(e,t){let a=this.get(e);a&&(Ky(a,t),a.length||this.delete(e))}function Zr(e){return Array.isArray(e)}function jp(e){return Zr(e)?e:[e]}function Wy(e,t){return e!==void 0&&t(e)?e:void 0}function Ir(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function Gy(){return!0}function kt(e){return e}function Bd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function tr(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,h=t.get(o);return h===void 0&&!t.has(o)&&(h=e(a),t.set(o,h)),h}}function ff(e,t){return e===t}function df(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Yy(e,t){return ff(e,t)}function Hy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?C-a:1),f=Math.floor(t.length>a+C?a+C:t.length);h[0]=C;let k=C;for(let w=1;wa)return;let v=o;o=h,h=v}let E=o[t.length];return E>a?void 0:E}function $y(e,t,a){let o=e.length-t.length;return o>=0&&(a?df(e.slice(o),t):e.indexOf(t,o)===o)}function Qy(e,t){e[t]=e[e.length-1],e.pop()}function Ky(e,t){return Zy(e,a=>a===t)}function Zy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(j){return e.currentLogLevel<=j}e.shouldLog=a;function o(j,se){e.loggingHost&&a(j)&&e.loggingHost.log(j,se)}function h(j){o(3,j)}e.log=h,(j=>{function se(Ke){o(1,Ke)}j.error=se;function fe(Ke){o(2,Ke)}j.warn=fe;function xe(Ke){o(3,Ke)}j.log=xe;function Xe(Ke){o(4,Ke)}j.trace=Xe})(h=e.log||(e.log={}));let g={};function E(){return t}e.getAssertionLevel=E;function C(j){let se=t;if(t=j,j>se)for(let fe of qy(g)){let xe=g[fe];xe!==void 0&&e[fe]!==xe.assertion&&j>=xe.level&&(e[fe]=xe,g[fe]=void 0)}}e.setAssertionLevel=C;function l(j){return t>=j}e.shouldAssert=l;function Z(j,se){return l(j)?!0:(g[se]={level:j,assertion:e[se]},e[se]=Ga,!1)}function f(j,se){debugger;let fe=new Error(j?`Debug Failure. ${j}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||f),fe}e.fail=f;function k(j,se,fe){return f(`${se||"Unexpected node."}\r -Node ${Mt(j.kind)} was unexpected.`,fe||k)}e.failBadSyntaxKind=k;function v(j,se,fe,xe){j||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r -Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),f(se,xe||v))}e.assert=v;function w(j,se,fe,xe,Xe){if(j!==se){let Ke=fe?xe?`${fe} ${xe}`:fe:"";f(`Expected ${j} === ${se}. ${Ke}`,Xe||w)}}e.assertEqual=w;function J(j,se,fe,xe){j>=se&&f(`Expected ${j} < ${se}. ${fe||""}`,xe||J)}e.assertLessThan=J;function re(j,se,fe){j>se&&f(`Expected ${j} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function be(j,se,fe){j= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(j,se,fe){j==null&&f(se,fe||he)}e.assertIsDefined=he;function me(j,se,fe){return he(j,se,fe||me),j}e.checkDefined=me;function O(j,se,fe){for(let xe of j)he(xe,se,fe||O)}e.assertEachIsDefined=O;function ae(j,se,fe){return O(j,se,fe||ae),j}e.checkEachDefined=ae;function ve(j,se="Illegal value:",fe){let xe=typeof j=="object"&&Mr(j,"kind")&&Mr(j,"pos")?"SyntaxKind: "+Mt(j.kind):JSON.stringify(j);return f(`${se} ${xe}`,fe||ve)}e.assertNever=ve;function X(j,se,fe,xe){Z(1,"assertEachNode")&&v(se===void 0||lf(j,se),fe||"Unexpected node.",()=>`Node array did not pass test '${Tn(se)}'.`,xe||X)}e.assertEachNode=X;function oe(j,se,fe,xe){Z(1,"assertNode")&&v(j!==void 0&&(se===void 0||se(j)),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||oe)}e.assertNode=oe;function G(j,se,fe,xe){Z(1,"assertNotNode")&&v(j===void 0||se===void 0||!se(j),fe||"Unexpected node.",()=>`Node ${Mt(j.kind)} should not have passed test '${Tn(se)}'.`,xe||G)}e.assertNotNode=G;function ht(j,se,fe,xe){Z(1,"assertOptionalNode")&&v(se===void 0||j===void 0||se(j),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||ht)}e.assertOptionalNode=ht;function ir(j,se,fe,xe){Z(1,"assertOptionalToken")&&v(se===void 0||j===void 0||j.kind===se,fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} was not a '${Mt(se)}' token.`,xe||ir)}e.assertOptionalToken=ir;function xn(j,se,fe){Z(1,"assertMissingNode")&&v(j===void 0,se||"Unexpected node.",()=>`Node ${Mt(j.kind)} was unexpected'.`,fe||xn)}e.assertMissingNode=xn;function ar(j){}e.type=ar;function Tn(j){if(typeof j!="function")return"";if(Mr(j,"name"))return j.name;{let se=Function.prototype.toString.call(j),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=Tn;function On(j){return`{ name: ${Ts(j.escapedName)}; flags: ${ut(j.flags)}; declarations: ${Yp(j.declarations,se=>Mt(se.kind))} }`}e.formatSymbol=On;function Ve(j=0,se,fe){let xe=Rr(se);if(j===0)return xe.length>0&&xe[0][0]===0?xe[0][1]:"0";if(fe){let Xe=[],Ke=j;for(let[ot,Pt]of xe){if(ot>j)break;ot!==0&&ot&j&&(Xe.push(Pt),Ke&=~ot)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of xe)if(Xe===j)return Ke;return j.toString()}e.formatEnum=Ve;let _r=new Map;function Rr(j){let se=_r.get(j);if(se)return se;let fe=[];for(let Xe in j){let Ke=j[Xe];typeof Ke=="number"&&fe.push([Ke,Xe])}let xe=Jy(fe,(Xe,Ke)=>mf(Xe[0],Ke[0]));return _r.set(j,xe),xe}function Mt(j){return Ve(j,ce,!1)}e.formatSyntaxKind=Mt;function Vn(j){return Ve(j,Xm,!1)}e.formatSnippetKind=Vn;function Mn(j){return Ve(j,Jr,!1)}e.formatScriptKind=Mn;function Jt(j){return Ve(j,Xt,!0)}e.formatNodeFlags=Jt;function xt(j){return Ve(j,Gm,!0)}e.formatNodeCheckFlags=xt;function Qe(j){return Ve(j,hf,!0)}e.formatModifierFlags=Qe;function Wn(j){return Ve(j,Hm,!0)}e.formatTransformFlags=Wn;function nn(j){return Ve(j,$m,!0)}e.formatEmitFlags=nn;function ut(j){return Ve(j,yf,!0)}e.formatSymbolFlags=ut;function st(j){return Ve(j,zt,!0)}e.formatTypeFlags=st;function Vt(j){return Ve(j,Ym,!0)}e.formatSignatureFlags=Vt;function jt(j){return Ve(j,bl,!0)}e.formatObjectFlags=jt;function pt(j){return Ve(j,Qp,!0)}e.formatFlowFlags=pt;function sr(j){return Ve(j,Wm,!0)}e.formatRelationComparisonResult=sr;function yt(j){return Ve(j,CheckMode,!0)}e.formatCheckMode=yt;function Sn(j){return Ve(j,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Sn;function vt(j){return Ve(j,TypeFacts,!0)}e.formatTypeFacts=vt;let dn=!1,rt;function Wt(j){"__debugFlowFlags"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${pt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ve(this.flags,Qp,!0)}},__debugToString:{value(){return Tr(this)}}})}function on(j){return dn&&(typeof Object.setPrototypeOf=="function"?(rt||(rt=Object.create(Object.prototype),Wt(rt)),Object.setPrototypeOf(j,rt)):Wt(j)),j}e.attachFlowNodeDebugInfo=on;let or;function vr(j){"__tsDebuggerDisplay"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function xr(j){dn&&(typeof Object.setPrototypeOf=="function"?(or||(or=Object.create(Array.prototype),vr(or)),Object.setPrototypeOf(j,or)):vr(j))}e.attachNodeArrayDebugInfo=xr;function Gn(){if(dn)return;let j=new WeakMap,se=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${xe} '${ef(this)}'${Xe?` (${ut(Xe)})`:""}`}},__debugFlags:{get(){return ut(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${xe}${this.symbol?` '${ef(this.symbol)}'`:""}${Xe?` (${jt(Xe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?jt(this.objectFlags):""}},__debugTypeToString:{value(){let xe=j.get(this);return xe===void 0&&(xe=this.checker.typeToString(this),j.set(this,xe)),xe}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Vt(this.flags)}},__debugSignatureToString:{value(){var xe;return(xe=this.checker)==null?void 0:xe.signatureToString(this)}}});let fe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let xe of fe)Mr(xe.prototype,"__debugKind")||Object.defineProperties(xe.prototype,{__tsDebuggerDisplay:{value(){return`${za(this)?"GeneratedIdentifier":et(this)?`Identifier '${Nn(this)}'`:wi(this)?`PrivateIdentifier '${Nn(this)}'`:Qa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ai(this)?`NumericLiteral ${this.text}`:qf(this)?`BigIntLiteral ${this.text}n`:zf(this)?"TypeParameterDeclaration":As(this)?"ParameterDeclaration":Ff(this)?"ConstructorDeclaration":hl(this)?"GetAccessorDeclaration":Ds(this)?"SetAccessorDeclaration":Y1(this)?"CallSignatureDeclaration":H1(this)?"ConstructSignatureDeclaration":Vf(this)?"IndexSignatureDeclaration":X1(this)?"TypePredicateNode":Al(this)?"TypeReferenceNode":Wf(this)?"FunctionTypeNode":Gf(this)?"ConstructorTypeNode":u6(this)?"TypeQueryNode":$1(this)?"TypeLiteralNode":p6(this)?"ArrayTypeNode":f6(this)?"TupleTypeNode":d6(this)?"OptionalTypeNode":m6(this)?"RestTypeNode":K1(this)?"UnionTypeNode":Z1(this)?"IntersectionTypeNode":h6(this)?"ConditionalTypeNode":y6(this)?"InferTypeNode":eh(this)?"ParenthesizedTypeNode":g6(this)?"ThisTypeNode":th(this)?"TypeOperatorNode":b6(this)?"IndexedAccessTypeNode":nh(this)?"MappedTypeNode":v6(this)?"LiteralTypeNode":Q1(this)?"NamedTupleMember":x6(this)?"ImportTypeNode":Mt(this.kind)}${this.flags?` (${Jt(this.flags)})`:""}`}},__debugKind:{get(){return Mt(this.kind)}},__debugNodeFlags:{get(){return Jt(this.flags)}},__debugModifierFlags:{get(){return Qe(bb(this))}},__debugTransformFlags:{get(){return Wn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return fl(this)}},__debugEmitFlags:{get(){return nn(Wa(this))}},__debugGetText:{value(Xe){if(Ua(this))return"";let Ke=se.get(this);if(Ke===void 0){let ot=Ug(this),Pt=ot&&Ya(ot);Ke=Pt?tm(Pt,ot,Xe):"",se.set(this,Ke)}return Ke}}});dn=!0}e.enableDebugInfo=Gn;function Yn(j){let se=j&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return j&8?fe+=" (unmeasurable)":j&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Yn;class Ur{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ud(this.sources,this.targets||Yp(this.sources,()=>"any"),(fe,xe)=>`${fe.__debugTypeToString()} -> ${typeof xe=="string"?xe:xe.__debugTypeToString()}`).join(", ");case 2:return Ud(this.sources,this.targets,(fe,xe)=>`${fe.__debugTypeToString()} -> ${xe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var Zc=Object.defineProperty;var $0=Object.getOwnPropertyDescriptor;var Q0=Object.getOwnPropertyNames;var K0=Object.prototype.hasOwnProperty;var vd=e=>{throw TypeError(e)};var Z0=(e,t,a)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Td=(e,t)=>{for(var a in t)Zc(e,a,{get:t[a],enumerable:!0})},ey=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of Q0(t))!K0.call(e,m)&&m!==a&&Zc(e,m,{get:()=>t[m],enumerable:!(o=$0(t,m))||o.enumerable});return e};var ty=e=>ey(Zc({},"__esModule",{value:!0}),e);var Na=(e,t,a)=>Z0(e,typeof t!="symbol"?t+"":t,a),ny=(e,t,a)=>t.has(e)||vd("Cannot "+a);var gp=(e,t,a)=>t.has(e)?vd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(ny(e,t,"access private method"),a);var q4={};Td(q4,{parsers:()=>dd});var dd={};Td(dd,{typescript:()=>B4});var ry=()=>()=>{},Ia=ry;var iy=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Sr=iy;var Sm="5.7";var bt=[],ay=new Map;function ts(e){return e!==void 0?e.length:0}function Un(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Hp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function ly(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;oe==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t>1),l=a(e[P],P);switch(o(l,t)){case-1:v=P+1;break;case 0:return P;case 1:A=P-1;break}}return~v}function gy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let A=o===void 0||o<0?0:o,P=m===void 0||A+m>v-1?v-1:A+m,l;for(arguments.length<=2?(l=e[A],A++):l=a;A<=P;)l=t(l,e[A],A),A++;return l}}return a}var Am=Object.prototype.hasOwnProperty;function Cr(e,t){return Am.call(e,t)}function by(e){let t=[];for(let a in e)Am.call(e,a)&&t.push(a);return t}function vy(){let e=new Map;return e.add=Ty,e.remove=xy,e}function Ty(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function xy(e,t){let a=this.get(e);a!==void 0&&(Ny(a,t),a.length||this.delete(e))}function Yr(e){return Array.isArray(e)}function vp(e){return Yr(e)?e:[e]}function Sy(e,t){return e!==void 0&&t(e)?e:void 0}function kr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Fa(e){}function wy(){return!0}function gt(e){return e}function Sd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function $p(e,t){return e===t}function Qp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function ky(e,t){return $p(e,t)}function Ey(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?P-a:1),h=Math.floor(t.length>a+P?a+P:t.length);m[0]=P;let y=P;for(let x=1;xa)return;let g=o;o=m,m=g}let A=o[t.length];return A>a?void 0:A}function Dy(e,t,a){let o=e.length-t.length;return o>=0&&(a?Qp(e.slice(o),t):e.indexOf(t,o)===o)}function Py(e,t){e[t]=e[e.length-1],e.pop()}function Ny(e,t){return Iy(e,a=>a===t)}function Iy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(L){return e.currentLogLevel<=L}e.shouldLog=a;function o(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function m(L){o(3,L)}e.log=m,(L=>{function se(Ke){o(1,Ke)}L.error=se;function fe(Ke){o(2,Ke)}L.warn=fe;function Te(Ke){o(3,Ke)}L.log=Te;function Xe(Ke){o(4,Ke)}L.trace=Xe})(m=e.log||(e.log={}));let v={};function A(){return t}e.getAssertionLevel=A;function P(L){let se=t;if(t=L,L>se)for(let fe of by(v)){let Te=v[fe];Te!==void 0&&e[fe]!==Te.assertion&&L>=Te.level&&(e[fe]=Te,v[fe]=void 0)}}e.setAssertionLevel=P;function l(L){return t>=L}e.shouldAssert=l;function Q(L,se){return l(L)?!0:(v[se]={level:L,assertion:e[se]},e[se]=Fa,!1)}function h(L,se){debugger;let fe=new Error(L?`Debug Failure. ${L}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||h),fe}e.fail=h;function y(L,se,fe){return h(`${se||"Unexpected node."}\r +Node ${Ot(L.kind)} was unexpected.`,fe||y)}e.failBadSyntaxKind=y;function g(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r +Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),h(se,Te||g))}e.assert=g;function x(L,se,fe,Te,Xe){if(L!==se){let Ke=fe?Te?`${fe} ${Te}`:fe:"";h(`Expected ${L} === ${se}. ${Ke}`,Xe||x)}}e.assertEqual=x;function I(L,se,fe,Te){L>=se&&h(`Expected ${L} < ${se}. ${fe||""}`,Te||I)}e.assertLessThan=I;function re(L,se,fe){L>se&&h(`Expected ${L} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function he(L,se,fe){L= ${se}`,fe||he)}e.assertGreaterThanOrEqual=he;function ye(L,se,fe){L==null&&h(se,fe||ye)}e.assertIsDefined=ye;function de(L,se,fe){return ye(L,se,fe||de),L}e.checkDefined=de;function M(L,se,fe){for(let Te of L)ye(Te,se,fe||M)}e.assertEachIsDefined=M;function ae(L,se,fe){return M(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Cr(L,"kind")&&Cr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return h(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){Q(1,"assertEachNode")&&g(se===void 0||Yp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${bn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){Q(1,"assertNode")&&g(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||oe)}e.assertNode=oe;function W(L,se,fe,Te){Q(1,"assertNotNode")&&g(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${bn(se)}'.`,Te||W)}e.assertNotNode=W;function dt(L,se,fe,Te){Q(1,"assertOptionalNode")&&g(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||dt)}e.assertOptionalNode=dt;function nr(L,se,fe,Te){Q(1,"assertOptionalToken")&&g(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function gn(L,se,fe){Q(1,"assertMissingNode")&&g(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||gn)}e.assertMissingNode=gn;function rr(L){}e.type=rr;function bn(L){if(typeof L!="function")return"";if(Cr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=bn;function In(L){return`{ name: ${cs(L.escapedName)}; flags: ${ct(L.flags)}; declarations: ${Np(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=In;function Ge(L=0,se,fe){let Te=Pr(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let Xe=[],Ke=L;for(let[st,Dt]of Te){if(st>L)break;st!==0&&st&L&&(Xe.push(Dt),Ke&=~st)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of Te)if(Xe===L)return Ke;return L.toString()}e.formatEnum=Ge;let ir=new Map;function Pr(L){let se=ir.get(L);if(se)return se;let fe=[];for(let Xe in L){let Ke=L[Xe];typeof Ke=="number"&&fe.push([Ke,Xe])}let Te=fy(fe,(Xe,Ke)=>Cm(Xe[0],Ke[0]));return ir.set(L,Te),Te}function Ot(L){return Ge(L,Ne,!1)}e.formatSyntaxKind=Ot;function Bn(L){return Ge(L,Om,!1)}e.formatSnippetKind=Bn;function On(L){return Ge(L,Dr,!1)}e.formatScriptKind=On;function Mt(L){return Ge(L,on,!0)}e.formatNodeFlags=Mt;function vt(L){return Ge(L,Pm,!0)}e.formatNodeCheckFlags=vt;function Qe(L){return Ge(L,Kp,!0)}e.formatModifierFlags=Qe;function qn(L){return Ge(L,Im,!0)}e.formatTransformFlags=qn;function $t(L){return Ge(L,Mm,!0)}e.formatEmitFlags=$t;function ct(L){return Ge(L,Zp,!0)}e.formatSymbolFlags=ct;function _t(L){return Ge(L,nn,!0)}e.formatTypeFlags=_t;function Ut(L){return Ge(L,Nm,!0)}e.formatSignatureFlags=Ut;function Jt(L){return Ge(L,ef,!0)}e.formatObjectFlags=Jt;function lt(L){return Ge(L,Mp,!0)}e.formatFlowFlags=lt;function ar(L){return Ge(L,Dm,!0)}e.formatRelationComparisonResult=ar;function mt(L){return Ge(L,CheckMode,!0)}e.formatCheckMode=mt;function vn(L){return Ge(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=vn;function yt(L){return Ge(L,TypeFacts,!0)}e.formatTypeFacts=yt;let cn=!1,nt;function Bt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${lt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Mp,!0)}},__debugToString:{value(){return mr(this)}}})}function rn(L){return cn&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(L,nt)):Bt(L)),L}e.attachFlowNodeDebugInfo=rn;let _r;function fr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function dr(L){cn&&(typeof Object.setPrototypeOf=="function"?(_r||(_r=Object.create(Array.prototype),fr(_r)),Object.setPrototypeOf(L,_r)):fr(L))}e.attachNodeArrayDebugInfo=dr;function zn(){if(cn)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(At.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${Te} '${jp(this)}'${Xe?` (${ct(Xe)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(At.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${jp(this.symbol)}'`:""}${Xe?` (${Jt(Xe)})`:""}`}},__debugFlags:{get(){return _t(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=L.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),L.set(this,Te)),Te}}}),Object.defineProperties(At.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ut(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let fe=[At.getNodeConstructor(),At.getIdentifierConstructor(),At.getTokenConstructor(),At.getSourceFileConstructor()];for(let Te of fe)Cr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${Ua(this)?"GeneratedIdentifier":tt(this)?`Identifier '${Pn(this)}'`:gi(this)?`PrivateIdentifier '${Pn(this)}'`:Ya(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ea(this)?`NumericLiteral ${this.text}`:C1(this)?`BigIntLiteral ${this.text}n`:Af(this)?"TypeParameterDeclaration":ds(this)?"ParameterDeclaration":Cf(this)?"ConstructorDeclaration":bl(this)?"GetAccessorDeclaration":hs(this)?"SetAccessorDeclaration":O1(this)?"CallSignatureDeclaration":M1(this)?"ConstructSignatureDeclaration":Df(this)?"IndexSignatureDeclaration":J1(this)?"TypePredicateNode":Pf(this)?"TypeReferenceNode":Nf(this)?"FunctionTypeNode":If(this)?"ConstructorTypeNode":Vb(this)?"TypeQueryNode":L1(this)?"TypeLiteralNode":Wb(this)?"ArrayTypeNode":Gb(this)?"TupleTypeNode":Yb(this)?"OptionalTypeNode":Hb(this)?"RestTypeNode":R1(this)?"UnionTypeNode":U1(this)?"IntersectionTypeNode":Xb(this)?"ConditionalTypeNode":$b(this)?"InferTypeNode":B1(this)?"ParenthesizedTypeNode":Qb(this)?"ThisTypeNode":q1(this)?"TypeOperatorNode":Kb(this)?"IndexedAccessTypeNode":z1(this)?"MappedTypeNode":Zb(this)?"LiteralTypeNode":j1(this)?"NamedTupleMember":e6(this)?"ImportTypeNode":Ot(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return Ot(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return Qe(Q2(this))}},__debugTransformFlags:{get(){return qn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return hl(this)}},__debugEmitFlags:{get(){return $t(za(this))}},__debugGetText:{value(Xe){if(La(this))return"";let Ke=se.get(this);if(Ke===void 0){let st=gg(this),Dt=st&&hi(st);Ke=Dt?Rd(Dt,st,Xe):"",se.set(this,Ke)}return Ke}}});cn=!0}e.enableDebugInfo=zn;function Fn(L){let se=L&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return L&8?fe+=" (unmeasurable)":L&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Fn;class Nr{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||Np(this.sources,()=>"any"),(fe,Te)=>`${fe.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(fe,Te)=>`${fe.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return ve(this)}}}e.DebugTypeMapper=Ur;function Hn(j){return e.isDebugging?Object.setPrototypeOf(j,Ur.prototype):j}e.attachDebugPrototypeIfDebug=Hn;function Ne(j){return console.log(Tr(j))}e.printControlFlowGraph=Ne;function Tr(j){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let xe;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(xe||(xe={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,ot=882,Pt=Object.create(null),Tt=[],ft=[],Br=Se(j,new Set);for(let u of Tt)u.text=at(u.flowNode,u.circular),ye(u);let Sr=Ye(Br),Jn=$e(Sr);return Ze(Br,0),mn();function Xn(u){return!!(u.flags&128)}function Pi(u){return!!(u.flags&12)&&!!u.antecedent}function z(u){return!!(u.flags&Ke)}function V(u){return!!(u.flags&ot)}function Q(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function Te(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=fe(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Pi(u))for(let qe of u.antecedent)Ce(U,qe,Oe);else z(u)&&Ce(U,u.antecedent,Oe);return Oe.delete(u),U}function Ce(u,Oe,Me){let U=Se(Oe,Me),qe={source:u,target:U};ft.push(qe),u.edges.push(qe),U.edges.push(qe)}function ye(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of Te(u))Oe=Math.max(Oe,ye(Me)+1);return u.level=Oe}function Ye(u){let Oe=0;for(let Me of Q(u))Oe=Math.max(Oe,Ye(Me));return Oe+1}function $e(u){let Oe=M(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ze(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=Q(u);for(let U=0;U0&&Oe++;let qe=Me[U];Ze(qe,Oe),qe.endLane>u.endLane&&(Oe=qe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function wn(u){let Oe=Ya(u);return tm(Oe,u,!1)}function at(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${fe(u)}`),Xn(u)){let U=[],{switchStatement:qe,clauseStart:cn,clauseEnd:Fe}=u.node;for(let He=cn;HeMath.max(Fe,He.lane),0)+1,Me=M(Array(Oe),""),U=Jn.map(()=>Array(Oe)),qe=Jn.map(()=>M(Array(Oe),0));for(let Fe of Tt){U[Fe.level][Fe.lane]=Fe;let He=Q(Fe);for(let Et=0;Et0&&(Gt|=1),Et0&&(Gt|=1),Et0?qe[Fe-1][He]:0,Et=He>0?qe[Fe][He-1]:0,It=qe[Fe][He];It||(Nt&8&&(It|=12),Et&2&&(It|=3),qe[Fe][He]=It)}for(let Fe=0;Fe{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,st=882,Dt=Object.create(null),Tt=[],ut=[],Ir=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let hr=We(Ir),Mn=Ze(hr);return Ye(Ir,0),ln();function Wn(u){return!!(u.flags&128)}function Si(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function $(u){return!!(u.flags&st)}function K(u){let Ie=[];for(let Me of u.edges)Me.source===u&&Ie.push(Me.target);return Ie}function xe(u){let Ie=[];for(let Me of u.edges)Me.target===u&&Ie.push(Me.source);return Ie}function Se(u,Ie){let Me=fe(u),U=Dt[Me];if(U&&Ie.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Ie.add(u),!U)if(Dt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Si(u))for(let ze of u.antecedent)we(U,ze,Ie);else R(u)&&we(U,u.antecedent,Ie);return Ie.delete(u),U}function we(u,Ie,Me){let U=Se(Ie,Me),ze={source:u,target:U};ut.push(ze),u.edges.push(ze),U.edges.push(ze)}function be(u){if(u.level!==-1)return u.level;let Ie=0;for(let Me of xe(u))Ie=Math.max(Ie,be(Me)+1);return u.level=Ie}function We(u){let Ie=0;for(let Me of K(u))Ie=Math.max(Ie,We(Me));return Ie+1}function Ze(u){let Ie=J(Array(u),0);for(let Me of Tt)Ie[Me.level]=Math.max(Ie[Me.level],Me.text.length);return Ie}function Ye(u,Ie){if(u.lane===-1){u.lane=Ie,u.endLane=Ie;let Me=K(u);for(let U=0;U0&&Ie++;let ze=Me[U];Ye(ze,Ie),ze.endLane>u.endLane&&(Ie=ze.endLane)}u.endLane=Ie}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Tn(u){let Ie=hi(u);return Rd(Ie,u,!1)}function rt(u,Ie){let Me=Ee(u.flags);if(Ie&&(Me=`${Me}#${fe(u)}`),Wn(u)){let U=[],{switchStatement:ze,clauseStart:an,clauseEnd:Ve}=u.node;for(let $e=an;$eVe.lane)+1,Me=J(Array(Ie),""),U=Mn.map(()=>Array(Ie)),ze=Mn.map(()=>J(Array(Ie),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let Nt=$e[kt],qt=8;Nt.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),ze[Ve.level][Nt.lane]|=qt}$e.length===0&&(ze[Ve.level][Ve.lane]|=16);let Pt=xe(Ve);for(let kt=0;kt0&&(qt|=1),kt0?ze[Ve-1][$e]:0,kt=$e>0?ze[Ve][$e-1]:0,Nt=ze[Ve][$e];Nt||(Pt&8&&(Nt|=12),kt&2&&(Nt|=3),ze[Ve][$e]=Nt)}for(let Ve=0;Ve0?u.repeat(Oe):"";let Me="";for(;Me.length{},{get:()=>$p}),qd=()=>{},eg=()=>{},il,ce=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(ce||{}),Xt=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Xt||{}),hf=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(hf||{});var Wm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Wm||{});var Qp=(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.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Qp||{});var yf=(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=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="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.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(yf||{});var Gm=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.LazyFlags=539358128]="LazyFlags",e))(Gm||{}),zt=(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.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",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.StringLike=402653316]="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.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(zt||{}),bl=(e=>(e[e.None=0]="None",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.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(bl||{});var Ym=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Ym||{});var Jr=(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))(Jr||{}),Ps=(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.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Ps||{}),vl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(vl||{});var gr=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(gr||{}),Hm=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Hm||{}),Xm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Xm||{}),$m=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))($m||{});var Qm={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},{name:"resolution-mode",optional:!0},{name:"preserve",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},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$a=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($a||{});var ra="/",tg="\\",zd="://",ng=/\\/g;function rg(e){return e===47||e===92}function ig(e,t){return e.length>t.length&&$y(e,t)}function gf(e){return e.length>0&&rg(e.charCodeAt(e.length-1))}function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function ag(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function _g(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?ra:tg,2);return o<0?e.length:o+1}if(Fd(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(zd);if(a!==-1){let o=a+zd.length,h=e.indexOf(ra,o);if(h!==-1){let g=e.slice(0,a),E=e.slice(o,h);if(g==="file"&&(E===""||E==="localhost")&&Fd(e.charCodeAt(h+1))){let C=ag(e,h+2);if(C!==-1){if(e.charCodeAt(C)===47)return~(C+1);if(C===e.length)return~C}}return~(h+1)}return~e.length}return 0}function ll(e){let t=_g(e);return t<0?~t:t}function Km(e,t,a){if(e=ul(e),ll(e)===e.length)return"";e=e1(e);let h=e.slice(Math.max(ll(e),e.lastIndexOf(ra)+1)),g=t!==void 0&&a!==void 0?Zm(h,t,a):void 0;return g?h.slice(0,h.length-g.length):h}function Vd(e,t,a){if(cl(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function sg(e,t,a){if(typeof t=="string")return Vd(e,t,a)||"";for(let o of t){let h=Vd(e,o,a);if(h)return h}return""}function Zm(e,t,a){if(t)return sg(e1(e),t,a?df:Yy);let o=Km(e),h=o.lastIndexOf(".");return h>=0?o.substring(h):""}function og(e,t){let a=e.substring(0,t),o=e.substring(t).split(ra);return o.length&&!Ki(o)&&o.pop(),[a,...o]}function cg(e,t=""){return e=pg(t,e),og(e,ll(e))}function lg(e,t){return e.length===0?"":(e[0]&&bf(e[0]))+e.slice(1,t).join(ra)}function ul(e){return e.includes("\\")?e.replace(ng,ra):e}function ug(e){if(!qt(e))return[];let t=[e[0]];for(let a=1;a1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(o)}}return t}function pg(e,...t){e&&(e=ul(e));for(let a of t)a&&(a=ul(a),!e||ll(a)!==0?e=a:e=bf(e)+a);return e}function fg(e){if(e=ul(e),!Wd.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Wd.test(e)))return e;let a=lg(ug(cg(e)));return a&&gf(e)?bf(a):a}function e1(e){return gf(e)?e.substr(0,e.length-1):e}function bf(e){return gf(e)?e:e+ra}var Wd=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,h,g,E){return{code:e,category:t,key:a,message:o,reportsUnnecessary:h,elidedInCompatabilityPyramid:g,reportsDeprecated:E}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"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:r(1068,1,"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:r(1069,1,"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:r(1070,1,"_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:r(1071,1,"_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:r(1079,1,"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:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_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:r(1091,1,"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:r(1092,1,"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:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"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:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"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:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"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:r(1105,1,"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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"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:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"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:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"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:r(1116,1,"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:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"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:r(1119,1,"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:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"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:r(1148,1,"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:r(1149,1,"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."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"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:r(1163,1,"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:r(1164,1,"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:r(1165,1,"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_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple 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:r(1168,1,"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:r(1169,1,"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:r(1170,1,"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:r(1171,1,"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:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"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:r(1187,1,"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:r(1188,1,"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:r(1189,1,"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:r(1190,1,"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:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"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:r(1198,1,"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:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"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:r(1202,1,"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:r(1203,1,"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."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"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:r(1212,1,"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:r(1213,1,"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:r(1214,1,"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:r(1215,1,"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:r(1216,1,"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:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"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:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"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:r(1227,1,"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:r(1228,1,"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:r(1229,1,"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:r(1230,1,"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_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"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_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"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:r(1237,1,"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:r(1238,1,"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:r(1239,1,"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:r(1240,1,"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:r(1241,1,"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:r(1242,1,"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:r(1243,1,"_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:r(1244,1,"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:r(1245,1,"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:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"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:r(1248,1,"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:r(1249,1,"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_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"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:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"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:r(1314,1,"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:r(1315,1,"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:r(1316,1,"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:r(1317,1,"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:r(1318,1,"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:r(1319,1,"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:r(1320,1,"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:r(1321,1,"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:r(1322,1,"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_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"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:r(1328,1,"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:r(1329,1,"_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:r(1330,1,"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:r(1331,1,"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:r(1332,1,"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:r(1333,1,"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:r(1334,1,"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:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"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:r(1339,1,"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:r(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"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:r(1346,1,"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:r(1347,1,"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:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"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:r(1351,1,"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:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"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:r(1354,1,"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_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"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:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"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:r(2309,1,"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:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"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:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"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:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"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:r(2320,1,"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:r(2321,1,"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:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"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:r(2325,1,"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:r(2326,1,"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:r(2327,1,"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:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"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:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"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:r(2335,1,"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:r(2336,1,"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:r(2337,1,"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:r(2338,1,"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:r(2339,1,"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:r(2340,1,"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:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"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:r(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"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:r(2348,1,"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'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),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:r(2352,1,"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:r(2353,1,"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:r(2354,1,"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_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"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:r(2357,1,"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:r(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"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:r(2363,1,"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:r(2364,1,"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:r(2365,1,"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:r(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"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:r(2370,1,"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:r(2371,1,"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_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"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:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"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:r(2384,1,"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:r(2385,1,"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:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"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:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"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:r(2395,1,"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:r(2396,1,"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:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"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:r(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"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:r(2403,1,"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:r(2404,1,"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:r(2405,1,"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:r(2406,1,"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:r(2407,1,"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:r(2408,1,"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:r(2409,1,"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:r(2410,1,"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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"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:r(2416,1,"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:r(2417,1,"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:r(2418,1,"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}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"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:r(2422,1,"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:r(2423,1,"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_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"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:r(2426,1,"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:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"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:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"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:r(2432,1,"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:r(2433,1,"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:r(2434,1,"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:r(2435,1,"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:r(2436,1,"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:r(2437,1,"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:r(2438,1,"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:r(2439,1,"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:r(2440,1,"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:r(2441,1,"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:r(2442,1,"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:r(2443,1,"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:r(2444,1,"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:r(2445,1,"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_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"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:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"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:r(2462,1,"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:r(2463,1,"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:r(2464,1,"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:r(2465,1,"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:r(2466,1,"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:r(2467,1,"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:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"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:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"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:r(2476,1,"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:r(2477,1,"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:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"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:r(2481,1,"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:r(2483,1,"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:r(2484,1,"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:r(2487,1,"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:r(2488,1,"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:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"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:r(2492,1,"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:r(2493,1,"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:r(2494,1,"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:r(2495,1,"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_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:r(2497,1,"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:r(2498,1,"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:r(2499,1,"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:r(2500,1,"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:r(2501,1,"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:r(2502,1,"_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:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"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:r(2505,1,"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:r(2506,1,"_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:r(2507,1,"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:r(2508,1,"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:r(2509,1,"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:r(2510,1,"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:r(2511,1,"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:r(2512,1,"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:r(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"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:r(2516,1,"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:r(2517,1,"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:r(2518,1,"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:r(2519,1,"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:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"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:r(2524,1,"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:r(2525,1,"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:r(2526,1,"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:r(2527,1,"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:r(2528,1,"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:r(2529,1,"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:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"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:r(2537,1,"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:r(2538,1,"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:r(2539,1,"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:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"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:r(2543,1,"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:r(2544,1,"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:r(2545,1,"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[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' 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:r(2548,1,"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:r(2549,1,"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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"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:r(2552,1,"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:r(2553,1,"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:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"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:r(2559,1,"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:r(2560,1,"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:r(2561,1,"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:r(2562,1,"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:r(2563,1,"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:r(2564,1,"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:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"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:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"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:r(2575,1,"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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"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 '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"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:r(2585,1,"_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."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"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:r(2589,1,"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:r(2590,1,"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_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @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_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @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_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"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:r(2603,1,"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:r(2604,1,"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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"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:r(2607,1,"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:r(2608,1,"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:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"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:r(2652,1,"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:r(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"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:r(2659,1,"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:r(2660,1,"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:r(2661,1,"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:r(2662,1,"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:r(2663,1,"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:r(2664,1,"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:r(2665,1,"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:r(2666,1,"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:r(2667,1,"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:r(2668,1,"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:r(2669,1,"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:r(2670,1,"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:r(2671,1,"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:r(2672,1,"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:r(2673,1,"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:r(2674,1,"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:r(2675,1,"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:r(2676,1,"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:r(2677,1,"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:r(2678,1,"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:r(2679,1,"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:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"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:r(2684,1,"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:r(2685,1,"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:r(2686,1,"_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:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_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:r(2693,1,"_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:r(2694,1,"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:r(2695,1,"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:r(2696,1,"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:r(2697,1,"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:r(2698,1,"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:r(2699,1,"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:r(2700,1,"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:r(2701,1,"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:r(2702,1,"_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:r(2703,1,"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:r(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:r(2706,1,"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:r(2707,1,"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:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"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:r(2710,1,"_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:r(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:r(2713,1,"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:r(2714,1,"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:r(2715,1,"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:r(2716,1,"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:r(2717,1,"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:r(2718,1,"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:r(2719,1,"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:r(2720,1,"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:r(2721,1,"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:r(2722,1,"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:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"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:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"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:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"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:r(2731,1,"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:r(2732,1,"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:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"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:r(2736,1,"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_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"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:r(2739,1,"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:r(2740,1,"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:r(2741,1,"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:r(2742,1,"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:r(2743,1,"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:r(2744,1,"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:r(2745,1,"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:r(2746,1,"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:r(2747,1,"_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_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"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:r(4002,1,"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:r(4004,1,"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:r(4006,1,"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:r(4008,1,"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:r(4010,1,"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:r(4012,1,"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:r(4014,1,"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:r(4016,1,"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:r(4019,1,"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:r(4020,1,"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_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"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:r(4023,1,"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:r(4024,1,"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:r(4025,1,"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:r(4026,1,"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:r(4027,1,"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:r(4028,1,"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:r(4029,1,"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:r(4030,1,"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:r(4031,1,"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:r(4032,1,"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:r(4033,1,"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:r(4034,1,"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:r(4035,1,"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:r(4036,1,"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:r(4037,1,"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:r(4038,1,"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:r(4039,1,"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:r(4040,1,"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:r(4041,1,"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:r(4042,1,"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:r(4043,1,"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:r(4044,1,"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:r(4045,1,"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:r(4046,1,"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:r(4047,1,"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:r(4048,1,"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:r(4049,1,"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:r(4050,1,"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:r(4051,1,"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:r(4052,1,"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:r(4053,1,"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:r(4054,1,"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:r(4055,1,"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:r(4056,1,"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:r(4057,1,"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:r(4058,1,"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:r(4059,1,"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:r(4060,1,"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:r(4061,1,"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:r(4062,1,"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:r(4063,1,"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:r(4064,1,"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:r(4065,1,"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:r(4066,1,"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:r(4067,1,"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:r(4068,1,"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:r(4069,1,"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:r(4070,1,"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:r(4071,1,"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:r(4072,1,"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:r(4073,1,"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:r(4074,1,"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:r(4075,1,"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:r(4076,1,"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:r(4077,1,"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:r(4078,1,"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:r(4081,1,"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:r(4082,1,"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:r(4083,1,"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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"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:r(4092,1,"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:r(4094,1,"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:r(4095,1,"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:r(4096,1,"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:r(4097,1,"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:r(4098,1,"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:r(4099,1,"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:r(4100,1,"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:r(4101,1,"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:r(4102,1,"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:r(4103,1,"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_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:r(5001,1,"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:r(5009,1,"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:r(5010,1,"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:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:r(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"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:r(5042,1,"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:r(5047,1,"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:r(5051,1,"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:r(5052,1,"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:r(5053,1,"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:r(5054,1,"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:r(5055,1,"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:r(5056,1,"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:r(5057,1,"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:r(5058,1,"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:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"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:r(5064,1,"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:r(5065,1,"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:r(5066,1,"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:r(5067,1,"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:r(5068,1,"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:r(5069,1,"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_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"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:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"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:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"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:r(6008,3,"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:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"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:r(6011,3,"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:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"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:r(6020,3,"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:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"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:r(6048,1,"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}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"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:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"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:r(6056,3,"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:r(6058,3,"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:r(6059,1,"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:r(6060,3,"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:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"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:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"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:r(6074,3,"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:r(6075,3,"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:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"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:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"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:r(6083,3,"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:r(6084,3,"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:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"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:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"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:r(6091,3,"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:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"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:r(6094,3,"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_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"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:r(6101,3,"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:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"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:r(6105,3,"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:r(6106,3,"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:r(6107,3,"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:r(6108,3,"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:r(6109,3,"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:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"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:r(6115,3,"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:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"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:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"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:r(6123,3,"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:r(6124,3,"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:r(6125,3,"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:r(6126,3,"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:r(6127,3,"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:r(6128,3,"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:r(6130,3,"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:r(6131,1,"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:r(6132,3,"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:r(6133,1,"_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:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"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:r(6137,1,"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:r(6138,1,"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:r(6139,3,"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:r(6140,1,"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:r(6141,3,"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:r(6142,1,"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:r(6144,3,"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:r(6145,3,"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:r(6146,3,"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:r(6147,3,"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:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"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:r(6152,3,"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:r(6153,3,"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:r(6154,3,"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:r(6155,3,"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:r(6156,3,"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:r(6157,3,"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:r(6158,3,"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:r(6159,3,"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:r(6160,3,"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:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"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:r(6167,3,"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:r(6168,3,"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:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"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:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"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:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"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:r(6195,3,"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:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"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:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"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:r(6207,3,"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:r(6208,3,"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:r(6209,3,"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:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"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:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"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:r(6214,3,"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:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"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:r(6305,1,"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:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"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:r(6353,3,"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:r(6354,3,"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:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"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:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"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:r(6363,3,"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:r(6364,3,"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:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"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:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"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:r(6381,3,"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}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"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:r(6501,3,"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:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"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:r(7009,1,"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:r(7010,1,"_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:r(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"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:r(7014,1,"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:r(7015,1,"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:r(7016,1,"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:r(7017,1,"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:r(7018,1,"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:r(7019,1,"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:r(7020,1,"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:r(7022,1,"_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:r(7023,1,"_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:r(7024,1,"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_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"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:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"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:r(7032,1,"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:r(7033,1,"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:r(7034,1,"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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @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:r(7036,1,"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:r(7037,3,"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:r(7038,3,"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:r(7039,1,"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:r(7040,1,"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:r(7041,1,"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:r(7042,1,"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:r(7043,2,"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:r(7044,2,"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:r(7045,2,"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:r(7046,2,"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:r(7047,2,"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:r(7048,2,"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:r(7049,2,"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:r(7050,2,"_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:r(7051,1,"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}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"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_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"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:r(8021,1,"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:r(8022,1,"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:r(8023,1,"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:r(8024,1,"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:r(8025,1,"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:r(8026,1,"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:r(8027,1,"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:r(8028,1,"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:r(8029,1,"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:r(8030,1,"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:r(8031,1,"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:r(8032,1,"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}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"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:r(17001,1,"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:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"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:r(17005,1,"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:r(17006,1,"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:r(17007,1,"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:r(17008,1,"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:r(17009,1,"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:r(17010,1,"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:r(17011,1,"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:r(17012,1,"_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:r(17013,1,"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:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"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:r(18003,1,"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_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"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:r(80003,2,"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:r(80004,2,"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:r(80005,2,"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:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"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:r(95031,3,"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:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"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:r(95037,3,"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:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"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:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")};function bt(e){return e>=80}function dg(e){return e===32||bt(e)}var vf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},mg=new Map(Object.entries(vf)),t1=new Map(Object.entries({...vf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),n1=new Map(Object.entries({d:1,g:2,i:4,m:8,s:16,u:32,v:64,y:128})),hg=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),yg=[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],gg=[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],bg=[65,90,97,122,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,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,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,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,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,2809,2809,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,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,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,43824,43866,43868,43881,43888,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],vg=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,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,2556,2556,2558,2558,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,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,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,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,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,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],xg=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Tg=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Sg=/@(?:see|link)/i;function pl(e,t){if(e=2?pl(e,bg):pl(e,yg)}function kg(e,t){return t>=2?pl(e,vg):pl(e,gg)}function r1(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var Eg=r1(t1);function _t(e){return Eg[e]}function i1(e){return t1.get(e)}var j3=r1(n1);function Gd(e){return n1.get(e)}function a1(e){let t=[],a=0,o=0;for(;a127&&Dn(h)&&(t.push(o),o=a);break}}return t.push(o),t}function Ag(e,t,a,o,h){(t<0||t>=e.length)&&(h?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?Ay(e,a1(o)):"unknown"}`));let g=e[t]+a;return h?g>e[t+1]?e[t+1]:typeof o=="string"&&g>o.length?o.length:g:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Dn(e){return e===10||e===13||e===8232||e===8233}function xi(e){return e>=48&&e<=57}function Lp(e){return xi(e)||e>=65&&e<=70||e>=97&&e<=102}function xf(e){return e>=65&&e<=90||e>=97&&e<=122}function s1(e){return xf(e)||xi(e)||e===95}function Rp(e){return e>=48&&e<=55}function Qr(e,t,a,o,h){if(Es(t))return t;let g=!1;for(;;){let E=e.charCodeAt(t);switch(E){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;g=!!h;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Fa(E)){t++;continue}break}return t}}var al=7;function $i(e,t){if(B.assert(t>=0),t===0||Dn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+al=0&&a127&&Fa(J)){k&&Dn(J)&&(f=!0),a++;continue}break e}}return k&&(w=h(C,l,Z,f,g,w)),w}function l1(e,t,a,o){return xl(!1,e,t,!1,a,o)}function u1(e,t,a,o){return xl(!1,e,t,!0,a,o)}function Pg(e,t,a,o,h){return xl(!0,e,t,!1,a,o,h)}function Ng(e,t,a,o,h){return xl(!0,e,t,!0,a,o,h)}function p1(e,t,a,o,h,g=[]){return g.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),g}function Zp(e,t){return Pg(e,t,p1,void 0,void 0)}function Ig(e,t){return Ng(e,t,p1,void 0,void 0)}function Sf(e){let t=Tf.exec(e);if(t)return t[0]}function nr(e,t){return xf(e)||e===36||e===95||e>127&&wg(e,t)}function Or(e,t,a){return s1(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&kg(e,t)}function Og(e,t,a){let o=Qi(e,0);if(!nr(o,t))return!1;for(let h=sn(o);hf,getStartPos:()=>f,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>v,getTokenStart:()=>k,getTokenPos:()=>k,getTokenText:()=>C.substring(k,l),getTokenValue:()=>w,hasUnicodeEscape:()=>(J&1024)!==0,hasExtendedUnicodeEscape:()=>(J&8)!==0,hasPrecedingLineBreak:()=>(J&1)!==0,hasPrecedingJSDocComment:()=>(J&2)!==0,isIdentifier:()=>v===80||v>118,isReservedWord:()=>v>=83&&v<=118,isUnterminated:()=>(J&4)!==0,getCommentDirectives:()=>re,getNumericLiteralFlags:()=>J&25584,getTokenFlags:()=>J,reScanGreaterToken:pt,reScanAsteriskEqualsToken:sr,reScanSlashToken:yt,reScanTemplateToken:Wt,reScanTemplateHeadOrNoSubstitutionTemplate:on,scanJsxIdentifier:Ur,scanJsxAttributeValue:Hn,reScanJsxAttributeValue:Ne,reScanJsxToken:or,reScanLessThanToken:vr,reScanHashToken:xr,reScanQuestionToken:Gn,reScanInvalidIdentifier:Vt,scanJsxToken:Yn,scanJsDocToken:j,scanJSDocCommentTextToken:Tr,scan:ut,getText:Ke,clearCommentDirectives:ot,setText:Pt,setScriptTarget:ft,setLanguageVariant:Br,setScriptKind:Sr,setJSDocParsingMode:Jn,setOnError:Tt,resetTokenState:Xn,setTextPos:Xn,setSkipJsDocLeadingAsterisks:Pi,tryScan:Xe,lookAhead:xe,scanRange:fe};return B.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let z=O.getText();return z.slice(0,O.getTokenFullStart())+"\u2551"+z.slice(O.getTokenFullStart())}}),O;function ae(z){return Qi(C,z)}function ve(z){return z>=0&&z=0&&z=65&&ye<=70)ye+=32;else if(!(ye>=48&&ye<=57||ye>=97&&ye<=102))break;Te.push(ye),l++,Ce=!1}return Te.length=Z){Q+=C.substring(Te,l),J|=4,G(A.Unterminated_string_literal);break}let Se=X(l);if(Se===V){Q+=C.substring(Te,l),l++;break}if(Se===92&&!z){Q+=C.substring(Te,l),Q+=Mt(3),Te=l;continue}if((Se===10||Se===13)&&!z){Q+=C.substring(Te,l),J|=4,G(A.Unterminated_string_literal);break}l++}return Q}function Rr(z){let V=X(l)===96;l++;let Q=l,Te="",Se;for(;;){if(l>=Z){Te+=C.substring(Q,l),J|=4,G(A.Unterminated_template_literal),Se=V?15:18;break}let Ce=X(l);if(Ce===96){Te+=C.substring(Q,l),l++,Se=V?15:18;break}if(Ce===36&&l+1=Z)return G(A.Unexpected_end_of_text),"";let Q=X(l);switch(l++,Q){case 48:if(l>=Z||!xi(X(l)))return"\0";case 49:case 50:case 51:l=55296&&Te<=56319&&l+6=56320&&Ye<=57343)return l=ye,Se+String.fromCharCode(Ye)}return Se;case 120:for(;l1114111&&(z&&G(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Q,l-Q),Ce=!0),l>=Z?(z&&G(A.Unexpected_end_of_text),Ce=!0):X(l)===125?l++:(z&&G(A.Unterminated_Unicode_escape_sequence),Ce=!0),Ce?(J|=2048,C.substring(V,l)):(J|=8,Yd(Se))}function Mn(){if(l+5=0&&Or(Q,e)){z+=Vn(!0),V=l;continue}if(Q=Mn(),!(Q>=0&&Or(Q,e)))break;J|=1024,z+=C.substring(V,l),z+=Yd(Q),l+=6,V=l}else break}return z+=C.substring(V,l),z}function Qe(){let z=w.length;if(z>=2&&z<=12){let V=w.charCodeAt(0);if(V>=97&&V<=122){let Q=mg.get(w);if(Q!==void 0)return v=Q}}return v=80}function Wn(z){let V="",Q=!1,Te=!1;for(;;){let Se=X(l);if(Se===95){J|=512,Q?(Q=!1,Te=!0):G(Te?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(Q=!0,!xi(Se)||Se-48>=z)break;V+=C[l],l++,Te=!1}return X(l-1)===95&&G(A.Numeric_separators_are_not_allowed_here,l-1,1),V}function nn(){return X(l)===110?(w+="n",J&384&&(w=Wb(w)+"n"),l++,10):(w=""+(J&128?parseInt(w.slice(2),2):J&256?parseInt(w.slice(2),8):+w),9)}function ut(){f=l,J=0;let z=!1;for(;;){if(k=l,l>=Z)return v=1;let V=ae(l);if(l===0&&V===35&&o1(C,l)){if(l=c1(C,l),t)continue;return v=6}switch(V){case 10:case 13:if(J|=1,t){l++;continue}else return V===13&&l+1=0&&nr(Q,e))return w=Vn(!0)+xt(),v=Qe();let Te=Mn();return Te>=0&&nr(Te,e)?(l+=6,J|=1024,w=String.fromCharCode(Te)+xt(),v=Qe()):(G(A.Invalid_character),l++,v=0);case 35:if(l!==0&&C[l+1]==="!")return G(A.can_only_be_used_at_the_start_of_a_file,l,2),l++,v=0;let Se=ae(l+1);if(Se===92){l++;let Ye=Jt();if(Ye>=0&&nr(Ye,e))return w="#"+Vn(!0)+xt(),v=81;let $e=Mn();if($e>=0&&nr($e,e))return l+=6,J|=1024,w="#"+String.fromCharCode($e)+xt(),v=81;l--}return nr(Se,e)?(l++,jt(Se,e)):(w="#",G(A.Invalid_character,l++,sn(V))),v=81;case 65533:return G(A.File_appears_to_be_binary,0,0),l=Z,v=8;default:let Ce=jt(V,e);if(Ce)return v=Ce;if(hs(V)){l+=sn(V);continue}else if(Dn(V)){J|=1,l+=sn(V);continue}let ye=sn(V);return G(A.Invalid_character,l,ye),l+=ye,v=0}}}function st(){switch(me){case 0:return!0;case 1:return!1}return he!==3&&he!==4?!0:me===3?!1:Sg.test(C.slice(f,l))}function Vt(){B.assert(v===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=k=f,J=0;let z=ae(l),V=jt(z,99);return V?v=V:(l+=sn(z),v)}function jt(z,V){let Q=z;if(nr(Q,V)){for(l+=sn(Q);l=Z)return v=1;let V=X(l);if(V===60)return X(l+1)===47?(l+=2,v=31):(l++,v=30);if(V===123)return l++,v=19;let Q=0;for(;l0)break;Fa(V)||(Q=l)}l++}return w=C.substring(f,l),Q===-1?13:12}function Ur(){if(bt(v)){for(;l=Z)return v=1;for(let V=X(l);l=0&&hs(X(l-1))&&!(l+1=Z)return v=1;let z=ae(l);switch(l+=sn(z),z){case 9:case 11:case 12:case 32:for(;l=0&&nr(V,e))return w=Vn(!0)+xt(),v=Qe();let Q=Mn();return Q>=0&&nr(Q,e)?(l+=6,J|=1024,w=String.fromCharCode(Q)+xt(),v=Qe()):(l++,v=0)}if(nr(z,e)){let V=z;for(;l=0),l=z,f=z,k=z,v=0,w=void 0,J=0}function Pi(z){be+=z?1:-1}}function Qi(e,t){return e.codePointAt(t)}function sn(e){return e>=65536?2:e===-1?0:1}function Mg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var Jg=String.fromCodePoint?e=>String.fromCodePoint(e):Mg;function Yd(e){return Jg(e)}var Hd=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Xd=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),$d=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),qa={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};qa.Script_Extensions=qa.Script;function Nr(e){return e.start+e.length}function jg(e){return e.length===0}function kf(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Lg(e,t){return kf(e,t-e)}function ps(e){return kf(e.span.start,e.newLength)}function Rg(e){return jg(e.span)&&e.newLength===0}function f1(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var L3=f1(kf(0,0),0);function Ef(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function fl(e){return(e.flags&16)===0}function Ug(e,t){if(e===void 0||fl(e))return e;for(e=e.original;e;){if(fl(e))return!t||t(e)?e:void 0;e=e.original}}function Ra(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ts(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Nn(e){return Ts(e.escapedText)}function Ns(e){let t=i1(e.escapedText);return t?Wy(t,Ti):void 0}function ef(e){return e.valueDeclaration&&s2(e.valueDeclaration)?Nn(e.valueDeclaration.name):Ts(e.escapedName)}function d1(e){let t=e.parent.parent;if(t){if(Zd(t))return $c(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return $c(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(et(o))return o}break;case 217:return $c(t.expression);case 256:{if(Zd(t.statement)||b2(t.statement))return $c(t.statement);break}}}}function $c(e){let t=m1(e);return t&&et(t)?t:void 0}function Bg(e){return e.name||d1(e)}function qg(e){return!!e.name}function Af(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(Of(a)){case 1:case 4:case 5:case 3:return Mf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return Bg(e);case 340:return d1(e);case 277:{let{expression:a}=e;return et(a)?a:void 0}case 212:let t=e;if(I1(t))return t.argumentExpression}return e.name}function m1(e){if(e!==void 0)return Af(e)||(Hf(e)||Xf(e)||yl(e)?zg(e):void 0)}function zg(e){if(e.parent){if(nd(e.parent)||rh(e.parent))return e.parent.name;if(ia(e.parent)&&e===e.parent.right){if(et(e.parent.left))return e.parent.left;if(R1(e.parent.left))return Mf(e.parent.left)}else if(Nl(e.parent)&&et(e.parent.name))return e.parent.name}else return}function Tl(e){if(fb(e))return Kr(e.modifiers,El)}function h1(e){if(Os(e,98303))return Kr(e.modifiers,l2)}function y1(e,t){if(e.name)if(et(e.name)){let a=e.name.escapedText;return Ss(e.parent,t).filter(o=>sf(o)&&et(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=Ss(e.parent,t).filter(sf);if(avh(o)&&o.typeParameters.some(h=>h.name.escapedText===a))}function Wg(e){return g1(e,!1)}function Gg(e){return g1(e,!0)}function Yg(e){return ki(e,D6)}function Hg(e){return n2(e,R6)}function Xg(e){return ki(e,P6,!0)}function $g(e){return ki(e,N6,!0)}function Qg(e){return ki(e,I6,!0)}function Kg(e){return ki(e,O6,!0)}function Zg(e){return ki(e,M6,!0)}function e2(e){return ki(e,j6,!0)}function t2(e){let t=ki(e,rd);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Ss(e,t){var a;if(!Jf(e))return Ot;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let h=Q2(e,t);B.assert(h.length<2||h[0]!==h[1]),o=Fm(h,g=>bh(g)?g.tags:g),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function b1(e){return Ss(e,!1)}function ki(e,t,a){return qm(Ss(e,a),t)}function n2(e,t){return b1(e).filter(t)}function tf(e){return e.kind===80||e.kind===81}function r2(e){return br(e)&&!!(e.flags&64)}function i2(e){return _a(e)&&!!(e.flags&64)}function Qd(e){return Cl(e)&&!!(e.flags&64)}function Cf(e){return _d(e,8)}function a2(e){return sl(e)&&!!(e.flags&64)}function Df(e){return e>=166}function Pf(e){return e>=0&&e<=165}function v1(e){return Pf(e.kind)}function Si(e){return Mr(e,"pos")&&Mr(e,"end")}function _2(e){return 9<=e&&e<=15}function Kd(e){return 15<=e&&e<=18}function za(e){var t;return et(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function x1(e){var t;return wi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function s2(e){return(Ha(e)||f2(e))&&wi(e.name)}function $r(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function o2(e){return!!(j1(e)&31)}function c2(e){return o2(e)||e===126||e===164||e===129}function l2(e){return $r(e.kind)}function T1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Nf(e){return!!e&&p2(e.kind)}function u2(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function p2(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return u2(e)}}function Ei(e){return e&&(e.kind===263||e.kind===231)}function f2(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function d2(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function S1(e){return wb(e.kind)}function m2(e){if(e){let t=e.kind;return t===207||t===206}return!1}function h2(e){let t=e.kind;return t===209||t===210}function y2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Va(e){return w1(Cf(e).kind)}function w1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function g2(e){return k1(Cf(e).kind)}function k1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return w1(e)}}function b2(e){return v2(Cf(e).kind)}function v2(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return k1(e)}}function x2(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function E1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function A1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Zd(e){return e.kind===168?e.parent&&e.parent.kind!==345||aa(e):x2(e.kind)}function T2(e){let t=e.kind;return A1(t)||E1(t)||S2(e)}function S2(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!R2(e)}function w2(e){let t=e.kind;return A1(t)||E1(t)||t===241}function C1(e){return e.kind>=309&&e.kind<=351}function k2(e){return e.kind===320||e.kind===319||e.kind===321||C2(e)||E2(e)||C6(e)||Ol(e)}function E2(e){return e.kind>=327&&e.kind<=351}function Qc(e){return e.kind===178}function Kc(e){return e.kind===177}function Zi(e){if(!Jf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function A2(e){return!!e.initializer}function Sl(e){return e.kind===11||e.kind===15}function C2(e){return e.kind===324||e.kind===325||e.kind===326}function em(e){return(e.flags&33554432)!==0}var R3=D2();function D2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Fa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ga,decreaseIndent:Ga,clear:()=>e=""}}function P2(e,t){let a=e.entries();for(let[o,h]of a){let g=t(h,o);if(g)return g}}function N2(e){return e.end-e.pos}function D1(e){return I2(e),(e.flags&1048576)!==0}function I2(e){e.flags&2097152||((e.flags&262144||tn(e,D1))&&(e.flags|=1048576),e.flags|=2097152)}function Ya(e){for(;e&&e.kind!==307;)e=e.parent;return e}function ea(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function nf(e){return!ea(e)}function dl(e,t,a){if(ea(e))return e.pos;if(C1(e)||e.kind===12)return Qr((t||Ya(e)).text,e.pos,!1,!0);if(a&&Zi(e))return dl(e.jsDoc[0],t);if(e.kind===352){let o=pf(xh(e));if(o)return dl(o,t,a)}return Qr((t||Ya(e)).text,e.pos,!1,!1,U2(e))}function tm(e,t,a=!1){return ys(e.text,t,a)}function O2(e){return!!Ef(e,hh)}function ys(e,t,a=!1){if(ea(t))return"";let o=e.substring(a?t.pos:Qr(e,t.pos),t.end);return O2(t)&&(o=o.split(/\r\n|\n|\r/).map(h=>h.replace(/^\s*\*/,"").trimStart()).join(` -`)),o}function Wa(e){let t=e.emitNode;return t&&t.flags||0}function M2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function _l(e){return e.kind===244&&e.expression.kind===11}function If(e){return!!(Wa(e)&2097152)}function nm(e){return If(e)&&$f(e)}function J2(e){return et(e.name)&&!e.initializer}function rm(e){return If(e)&&Ka(e)&&lf(e.declarationList.declarations,J2)}function j2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?uf(Ig(t,e.pos),Zp(t,e.pos)):Zp(t,e.pos);return Kr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function L2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function R2(e){return e&&e.kind===241&&Nf(e.parent)}function im(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function aa(e){return!!e&&!!(e.flags&524288)}function U2(e){return!!e&&!!(e.flags&16777216)}function B2(e){for(;ml(e,!0);)e=e.right;return e}function q2(e){return et(e)&&e.escapedText==="exports"}function z2(e){return et(e)&&e.escapedText==="module"}function P1(e){return(br(e)||N1(e))&&z2(e.expression)&&ks(e)==="exports"}function Of(e){let t=V2(e);return t===5||aa(e)?t:0}function F2(e){return ms(e.arguments)===3&&br(e.expression)&&et(e.expression.expression)&&Nn(e.expression.expression)==="Object"&&Nn(e.expression.name)==="defineProperty"&&wl(e.arguments[1])&&ws(e.arguments[0],!0)}function N1(e){return _a(e)&&wl(e.argumentExpression)}function Is(e,t){return br(e)&&(!t&&e.expression.kind===110||et(e.name)&&ws(e.expression,!0))||I1(e,t)}function I1(e,t){return N1(e)&&(!t&&e.expression.kind===110||Rf(e.expression)||Is(e.expression,!0))}function ws(e,t){return Rf(e)||Is(e,t)}function V2(e){if(Cl(e)){if(!F2(e))return 0;let t=e.arguments[0];return q2(t)||P1(t)?8:Is(t)&&ks(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!R1(e.left)||W2(B2(e))?0:ws(e.left.expression,!0)&&ks(e.left)==="prototype"&&Yf(Y2(e))?6:G2(e.left)}function W2(e){return T6(e)&&Ai(e.expression)&&e.expression.text==="0"}function Mf(e){if(br(e))return e.name;let t=jf(e.argumentExpression);return Ai(t)||Sl(t)?t:e}function ks(e){let t=Mf(e);if(t){if(et(t))return t.escapedText;if(Sl(t)||Ai(t))return Ra(t.text)}}function G2(e){if(e.expression.kind===110)return 4;if(P1(e))return 2;if(ws(e.expression,!0)){if(Tb(e.expression))return 3;let t=e;for(;!et(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ks(t)==="exports")&&Is(e))return 1;if(ws(e,!0)||_a(e)&&sb(e))return 5}return 0}function Y2(e){for(;ia(e.right);)e=e.right;return e.right}function H2(e){return Pl(e)&&ia(e.expression)&&Of(e.expression)!==0&&ia(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function X2(e){switch(e.kind){case 243:let t=rf(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function rf(e){return Ka(e)?pf(e.declarationList.declarations):void 0}function $2(e){return ei(e)&&e.body&&e.body.kind===267?e.body:void 0}function Jf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Q2(e,t){let a;L2(e)&&A2(e)&&Zi(e.initializer)&&(a=Pn(a,am(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Zi(o)&&(a=Pn(a,am(e,o.jsDoc))),o.kind===169){a=Pn(a,(t?Vg:Fg)(o));break}if(o.kind===168){a=Pn(a,(t?Gg:Wg)(o));break}o=Z2(o)}return a||Ot}function am(e,t){let a=jy(t);return Fm(t,o=>{if(o===a){let h=Kr(o.tags,g=>K2(e,g));return o.tags===h?[o]:h}else return Kr(o.tags,J6)})}function K2(e,t){return!(rd(t)||U6(t))||!t.parent||!bh(t.parent)||!Dl(t.parent.parent)||t.parent.parent===e}function Z2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||$2(t)||ml(e))return t;if(t.parent&&(rf(t.parent)===e||ml(t)))return t.parent;if(t.parent&&t.parent.parent&&(rf(t.parent.parent)||X2(t.parent.parent)===e||H2(t.parent.parent)))return t.parent.parent}function jf(e,t){return _d(e,t?17:1)}function eb(e){let t=tb(e);if(t&&aa(e)){let a=Yg(e);if(a)return a.class}return t}function tb(e){let t=Lf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function nb(e){if(aa(e))return Hg(e).map(t=>t.class);{let t=Lf(e.heritageClauses,119);return t==null?void 0:t.types}}function rb(e){return Ms(e)?ib(e)||Ot:Ei(e)&&uf(Xp(eb(e)),nb(e))||Ot}function ib(e){let t=Lf(e.heritageClauses,96);return t?t.types:void 0}function Lf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function Ti(e){return 83<=e&&e<=165}function ab(e){return 19<=e&&e<=79}function Up(e){return Ti(e)||ab(e)}function wl(e){return Sl(e)||Ai(e)}function _b(e){return _h(e)&&(e.operator===40||e.operator===41)&&Ai(e.operand)}function sb(e){if(!(e.kind===167||e.kind===212))return!1;let t=_a(e)?jf(e.argumentExpression):e.expression;return!wl(t)&&!_b(t)}function ob(e){return tf(e)?Nn(e):dh(e)?Qb(e):e.text}function Ua(e){return Es(e.pos)||Es(e.end)}function Bp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function qp(e){return!!((e.templateFlags||0)&2048)}function cb(e){return e&&!!(F1(e)?qp(e):qp(e.head)||qt(e.templateSpans,t=>qp(t.literal)))}var U3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var B3=new Map(Object.entries({'"':""","'":"'"}));function lb(e){return!!e&&e.kind===80&&ub(e)}function ub(e){return e.escapedText==="this"}function Os(e,t){return!!db(e,t)}function pb(e){return Os(e,256)}function fb(e){return Os(e,32768)}function db(e,t){return hb(e)&t}function mb(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=J1(e)|536870912),a||t&&aa(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=O1(e)|268435456),M1(e.modifierFlagsCache)):yb(e.modifierFlagsCache))}function hb(e){return mb(e,!1)}function O1(e){let t=0;return e.parent&&!As(e)&&(aa(e)&&(Xg(e)&&(t|=8388608),$g(e)&&(t|=16777216),Qg(e)&&(t|=33554432),Kg(e)&&(t|=67108864),Zg(e)&&(t|=134217728)),e2(e)&&(t|=65536)),t}function yb(e){return e&65535}function M1(e){return e&131071|(e&260046848)>>>23}function gb(e){return M1(O1(e))}function bb(e){return J1(e)|gb(e)}function J1(e){let t=Ml(e)?qn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function qn(e){let t=0;if(e)for(let a of e)t|=j1(a.kind);return t}function j1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function vb(e){return e===76||e===77||e===78}function L1(e){return e>=64&&e<=79}function ml(e,t){return ia(e)&&(t?e.operatorToken.kind===64:L1(e.operatorToken.kind))&&Va(e.left)}function Rf(e){return e.kind===80||xb(e)}function xb(e){return br(e)&&et(e.name)&&Rf(e.expression)}function Tb(e){return Is(e)&&ks(e)==="prototype"}function zp(e){return e.flags&3899393?e.objectFlags:0}function Sb(e){let t;return tn(e,a=>{nf(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(nf(a[o])){t=a[o];break}}),t}function wb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function R1(e){return e.kind===211||e.kind===212}function kb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Eb(e,t){this.flags=t,(B.isDebugging||il)&&(this.checker=e)}function Ab(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Fp(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Cb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Db(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Pb(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var Ct={getNodeConstructor:()=>Fp,getTokenConstructor:()=>Cb,getIdentifierConstructor:()=>Db,getPrivateIdentifierConstructor:()=>Fp,getSourceFileConstructor:()=>Fp,getSymbolConstructor:()=>kb,getTypeConstructor:()=>Eb,getSignatureConstructor:()=>Ab,getSourceMapSourceConstructor:()=>Pb},Nb=[];function Ib(e){Object.assign(Ct,e),zn(Nb,t=>t(Ct))}function Ob(e,t){return e.replace(/{(\d+)}/g,(a,o)=>""+B.checkDefined(t[+o]))}var _m;function Mb(e){return _m&&_m[e.key]||e.message}function ja(e,t,a,o,h,...g){a+o>t.length&&(o=t.length-a),M2(t,a,o);let E=Mb(h);return qt(g)&&(E=Ob(E,g)),{file:void 0,start:a,length:o,messageText:E,category:h.category,code:h.code,reportsUnnecessary:h.reportsUnnecessary,fileName:e}}function Jb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function U1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let h={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){h.relatedInformation=[];for(let g of e.relatedInformation)Jb(g)&&g.fileName===a?(B.assertLessThanOrEqual(g.start,o),B.assertLessThanOrEqual(g.start+g.length,o),h.relatedInformation.push(U1(g,t))):h.relatedInformation.push(g)}return h}function Yi(e,t){let a=[];for(let o of e)a.push(U1(o,t));return a}function sm(e){return e===4||e===2||e===1||e===6?1:0}var lt={target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:lt.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(lt.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(lt.module.computeValue(e)===100||lt.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(lt.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:lt.esModuleInterop.computeValue(e)||lt.module.computeValue(e)===4||lt.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=lt.moduleResolution.computeValue(e);if(!om(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=lt.moduleResolution.computeValue(e);if(!om(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:lt.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||lt.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&<.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?lt.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>gi(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>gi(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>gi(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>gi(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>gi(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>gi(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>gi(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>gi(e,"useUnknownInCatchVariables")}},q3=lt.target.computeValue,z3=lt.module.computeValue,F3=lt.moduleResolution.computeValue,V3=lt.moduleDetection.computeValue,W3=lt.isolatedModules.computeValue,G3=lt.esModuleInterop.computeValue,Y3=lt.allowSyntheticDefaultImports.computeValue,H3=lt.resolvePackageJsonExports.computeValue,X3=lt.resolvePackageJsonImports.computeValue,$3=lt.resolveJsonModule.computeValue,Q3=lt.declaration.computeValue,K3=lt.preserveConstEnums.computeValue,Z3=lt.incremental.computeValue,ex=lt.declarationMap.computeValue,tx=lt.allowJs.computeValue,nx=lt.useDefineForClassFields.computeValue;function om(e){return e>=3&&e<=99||e===100}function gi(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function jb(e){return P2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var Lb=["node_modules","bower_components","jspm_packages"],B1=`(?!(${Lb.join("|")})(/|$))`,Rb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${B1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>q1(e,Rb.singleAsteriskRegexFragment)},Ub={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${B1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>q1(e,Ub.singleAsteriskRegexFragment)};function q1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Bb(e,t){return t||qb(e)||3}function qb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var z1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],rx=zm(z1),ix=[...z1,[".json"]];var zb=[[".js",".jsx"],[".mjs"],[".cjs"]],ax=zm(zb),Fb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],_x=[...Fb,[".json"]],Vb=[".d.ts",".d.cts",".d.mts"];function Es(e){return!(e>=0)}function Zc(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==Ot,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Wb(e){let 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:let Z=e.length-1,f=0;for(;e.charCodeAt(f)===48;)f++;return e.slice(f,Z)||"0"}let a=2,o=e.length-1,h=(o-a)*t,g=new Uint16Array((h>>>4)+(h&15?1:0));for(let Z=o-1,f=0;Z>=a;Z--,f+=t){let k=f>>>4,v=e.charCodeAt(Z),J=(v<=57?v-48:10+v-(v<=70?65:97))<<(f&15);g[k]|=J;let re=J>>>16;re&&(g[k+1]|=re)}let E="",C=g.length-1,l=!0;for(;l;){let Z=0;l=!1;for(let f=C;f>=0;f--){let k=Z<<16|g[f],v=k/10|0;g[f]=v,Z=k-v*10,v&&!l&&(C=f,l=!0)}E=Z+E}return E}function Gb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function af(e,t){return e.pos=t,e}function Yb(e,t){return e.end=t,e}function ta(e,t,a){return Yb(af(e,t),a)}function cm(e,t,a){return ta(e,t,t+a)}function Uf(e,t){return e&&t&&(e.parent=t),e}function Hb(e,t){if(!e)return e;return jm(e,C1(e)?a:h),e;function a(g,E){if(t&&g.parent===E)return"skip";Uf(g,E)}function o(g){if(Zi(g))for(let E of g.jsDoc)a(E,g),jm(E,a)}function h(g,E){return a(g,E)||o(g)}}function Xb(e){return!!(e.flags&262144&&e.isThisType)}function $b(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Qb(e){return`${Nn(e.namespace)}:${Nn(e.name)}`}var sx=String.prototype.replace;function Kb(){let e,t,a,o,h;return{createBaseSourceFileNode:g,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:C,createBaseTokenNode:l,createBaseNode:Z};function g(f){return new(h||(h=Ct.getSourceFileConstructor()))(f,-1,-1)}function E(f){return new(a||(a=Ct.getIdentifierConstructor()))(f,-1,-1)}function C(f){return new(o||(o=Ct.getPrivateIdentifierConstructor()))(f,-1,-1)}function l(f){return new(t||(t=Ct.getTokenConstructor()))(f,-1,-1)}function Z(f){return new(e||(e=Ct.getNodeConstructor()))(f,-1,-1)}}var Zb={getParenthesizeLeftSideOfBinaryForOperator:e=>kt,getParenthesizeRightSideOfBinaryForOperator:e=>kt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:kt,parenthesizeConditionOfConditionalExpression:kt,parenthesizeBranchOfConditionalExpression:kt,parenthesizeExpressionOfExportDefault:kt,parenthesizeExpressionOfNew:e=>Ir(e,Va),parenthesizeLeftSideOfAccess:e=>Ir(e,Va),parenthesizeOperandOfPostfixUnary:e=>Ir(e,Va),parenthesizeOperandOfPrefixUnary:e=>Ir(e,g2),parenthesizeExpressionsOfCommaDelimitedList:e=>Ir(e,Si),parenthesizeExpressionForDisallowedComma:kt,parenthesizeExpressionOfExpressionStatement:kt,parenthesizeConciseBodyOfArrowFunction:kt,parenthesizeCheckTypeOfConditionalType:kt,parenthesizeExtendsTypeOfConditionalType:kt,parenthesizeConstituentTypesOfUnionType:e=>Ir(e,Si),parenthesizeConstituentTypeOfUnionType:kt,parenthesizeConstituentTypesOfIntersectionType:e=>Ir(e,Si),parenthesizeConstituentTypeOfIntersectionType:kt,parenthesizeOperandOfTypeOperator:kt,parenthesizeOperandOfReadonlyTypeOperator:kt,parenthesizeNonArrayTypeOfPostfixType:kt,parenthesizeElementTypesOfTupleType:e=>Ir(e,Si),parenthesizeElementTypeOfTupleType:kt,parenthesizeTypeOfOptionalType:kt,parenthesizeTypeArguments:e=>e&&Ir(e,Si),parenthesizeLeadingTypeArgument:kt},el=0;var e6=[];function Bf(e,t){let a=e&8?kt:a6,o=Bd(()=>e&1?Zb:createParenthesizerRules(he)),h=Bd(()=>e&2?nullNodeConverters:createNodeConverters(he)),g=tr(n=>(i,_)=>h_(i,n,_)),E=tr(n=>i=>d_(n,i)),C=tr(n=>i=>m_(i,n)),l=tr(n=>()=>Nu(n)),Z=tr(n=>i=>F_(n,i)),f=tr(n=>(i,_)=>Ou(n,i,_)),k=tr(n=>(i,_)=>tc(n,i,_)),v=tr(n=>(i,_)=>Iu(n,i,_)),w=tr(n=>(i,_)=>fc(n,i,_)),J=tr(n=>(i,_,c)=>Hu(n,i,_,c)),re=tr(n=>(i,_,c)=>dc(n,i,_,c)),be=tr(n=>(i,_,c,d)=>Xu(n,i,_,c,d)),he={get parenthesizer(){return o()},get converters(){return h()},baseFactory:t,flags:e,createNodeArray:me,createNumericLiteral:X,createBigIntLiteral:oe,createStringLiteral:ht,createStringLiteralFromNode:ir,createRegularExpressionLiteral:xn,createLiteralLikeNode:ar,createIdentifier:Ve,createTempVariable:_r,createLoopVariable:Rr,createUniqueName:Mt,getGeneratedNameForNode:Vn,createPrivateIdentifier:Jt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:Wn,createToken:ut,createSuper:st,createThis:Vt,createNull:jt,createTrue:pt,createFalse:sr,createModifier:yt,createModifiersFromModifierFlags:Sn,createQualifiedName:vt,updateQualifiedName:dn,createComputedPropertyName:rt,updateComputedPropertyName:Wt,createTypeParameterDeclaration:on,updateTypeParameterDeclaration:or,createParameterDeclaration:vr,updateParameterDeclaration:xr,createDecorator:Gn,updateDecorator:Yn,createPropertySignature:Ur,updatePropertySignature:Hn,createPropertyDeclaration:Tr,updatePropertyDeclaration:j,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:xe,updateMethodDeclaration:Xe,createConstructorDeclaration:ft,updateConstructorDeclaration:Br,createGetAccessorDeclaration:Jn,updateGetAccessorDeclaration:Xn,createSetAccessorDeclaration:z,updateSetAccessorDeclaration:V,createCallSignature:Te,updateCallSignature:Se,createConstructSignature:Ce,updateConstructSignature:ye,createIndexSignature:Ye,updateIndexSignature:$e,createClassStaticBlockDeclaration:ot,updateClassStaticBlockDeclaration:Pt,createTemplateLiteralTypeSpan:Ze,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:wn,createTypePredicateNode:at,updateTypePredicateNode:mn,createTypeReferenceNode:ii,updateTypeReferenceNode:M,createFunctionTypeNode:Be,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:cn,createTypeQueryNode:Nt,updateTypeQueryNode:Et,createTypeLiteralNode:It,updateTypeLiteralNode:Gt,createArrayTypeNode:$n,updateArrayTypeNode:Ni,createTupleTypeNode:hn,updateTupleTypeNode:Y,createNamedTupleMember:de,updateNamedTupleMember:ze,createOptionalTypeNode:ke,updateOptionalTypeNode:L,createRestTypeNode:gt,updateRestTypeNode:St,createUnionTypeNode:Vl,updateUnionTypeNode:zs,createIntersectionTypeNode:qr,updateIntersectionTypeNode:Je,createConditionalTypeNode:mt,updateConditionalTypeNode:Wl,createInferTypeNode:Qn,updateInferTypeNode:Gl,createImportTypeNode:cr,updateImportTypeNode:fa,createParenthesizedType:rn,updateParenthesizedType:Dt,createThisTypeNode:D,createTypeOperatorNode:an,updateTypeOperatorNode:zr,createIndexedAccessTypeNode:lr,updateIndexedAccessTypeNode:r_,createMappedTypeNode:wt,updateMappedTypeNode:Rt,createLiteralTypeNode:ai,updateLiteralTypeNode:Fr,createTemplateLiteralType:Qt,updateTemplateLiteralType:Yl,createObjectBindingPattern:Fs,updateObjectBindingPattern:Hl,createArrayBindingPattern:Vr,updateArrayBindingPattern:Xl,createBindingElement:da,updateBindingElement:_i,createArrayLiteralExpression:i_,updateArrayLiteralExpression:Vs,createObjectLiteralExpression:Ii,updateObjectLiteralExpression:$l,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(ur(n,i),262144):ur,updatePropertyAccessExpression:Gs,createPropertyAccessChain:e&4?(n,i,_)=>setEmitFlags(si(n,i,_),262144):si,updatePropertyAccessChain:Ys,createElementAccessExpression:a_,updateElementAccessExpression:Ql,createElementAccessChain:__,updateElementAccessChain:Hs,createCallExpression:wr,updateCallExpression:Kl,createCallChain:s_,updateCallChain:kn,createNewExpression:ha,updateNewExpression:o_,createTaggedTemplateExpression:c_,updateTaggedTemplateExpression:Zl,createTypeAssertion:$s,updateTypeAssertion:Qs,createParenthesizedExpression:l_,updateParenthesizedExpression:Ks,createFunctionExpression:u_,updateFunctionExpression:Zs,createArrowFunction:p_,updateArrowFunction:eo,createDeleteExpression:f_,updateDeleteExpression:eu,createTypeOfExpression:Kt,updateTypeOfExpression:tu,createVoidExpression:jn,updateVoidExpression:nu,createAwaitExpression:kr,updateAwaitExpression:Oi,createPrefixUnaryExpression:d_,updatePrefixUnaryExpression:ya,createPostfixUnaryExpression:m_,updatePostfixUnaryExpression:to,createBinaryExpression:h_,updateBinaryExpression:ru,createConditionalExpression:y_,updateConditionalExpression:iu,createTemplateExpression:Kn,updateTemplateExpression:ro,createTemplateHead:ba,createTemplateMiddle:b_,createTemplateTail:au,createNoSubstitutionTemplateLiteral:ao,createTemplateLiteralLikeNode:oi,createYieldExpression:_o,updateYieldExpression:_u,createSpreadElement:so,updateSpreadElement:su,createClassExpression:oo,updateClassExpression:Ji,createOmittedExpression:ou,createExpressionWithTypeArguments:co,updateExpressionWithTypeArguments:En,createAsExpression:va,updateAsExpression:lo,createNonNullExpression:uo,updateNonNullExpression:v_,createSatisfiesExpression:po,updateSatisfiesExpression:x_,createNonNullChain:Ln,updateNonNullChain:fo,createMetaProperty:xa,updateMetaProperty:pr,createTemplateSpan:ji,updateTemplateSpan:mo,createSemicolonClassElement:ho,createBlock:ci,updateBlock:yo,createVariableStatement:go,updateVariableStatement:bo,createEmptyStatement:T_,createExpressionStatement:Li,updateExpressionStatement:cu,createIfStatement:S_,updateIfStatement:lu,createDoStatement:w_,updateDoStatement:uu,createWhileStatement:vo,updateWhileStatement:pu,createForStatement:k_,updateForStatement:xo,createForInStatement:To,updateForInStatement:fu,createForOfStatement:So,updateForOfStatement:du,createContinueStatement:wo,updateContinueStatement:ko,createBreakStatement:E_,updateBreakStatement:Eo,createReturnStatement:Ao,updateReturnStatement:Co,createWithStatement:A_,updateWithStatement:Do,createSwitchStatement:Wr,updateSwitchStatement:mu,createLabeledStatement:Po,updateLabeledStatement:No,createThrowStatement:Io,updateThrowStatement:hu,createTryStatement:Oo,updateTryStatement:Mo,createDebuggerStatement:Jo,createVariableDeclaration:Ta,updateVariableDeclaration:yu,createVariableDeclarationList:C_,updateVariableDeclarationList:gu,createFunctionDeclaration:D_,updateFunctionDeclaration:jo,createClassDeclaration:P_,updateClassDeclaration:N_,createInterfaceDeclaration:Lo,updateInterfaceDeclaration:ct,createTypeAliasDeclaration:Er,updateTypeAliasDeclaration:I_,createEnumDeclaration:Ar,updateEnumDeclaration:Ro,createModuleDeclaration:At,updateModuleDeclaration:Cr,createModuleBlock:Ut,updateModuleBlock:vu,createCaseBlock:Uo,updateCaseBlock:xu,createNamespaceExportDeclaration:O_,updateNamespaceExportDeclaration:Tu,createImportEqualsDeclaration:Bo,updateImportEqualsDeclaration:qo,createImportDeclaration:zo,updateImportDeclaration:Fo,createImportClause:M_,updateImportClause:Vo,createAssertClause:Wo,updateAssertClause:Sa,createAssertEntry:J_,updateAssertEntry:Go,createImportTypeAssertionContainer:j_,updateImportTypeAssertionContainer:wu,createImportAttributes:wa,updateImportAttributes:ku,createImportAttribute:L_,updateImportAttribute:Eu,createNamespaceImport:Yo,updateNamespaceImport:Au,createNamespaceExport:Ho,updateNamespaceExport:Cu,createNamedImports:R_,updateNamedImports:Gr,createImportSpecifier:Xo,updateImportSpecifier:$o,createExportAssignment:li,updateExportAssignment:U_,createExportDeclaration:B_,updateExportDeclaration:ui,createNamedExports:q_,updateNamedExports:Qo,createExportSpecifier:z_,updateExportSpecifier:Pu,createMissingDeclaration:Ko,createExternalModuleReference:Zo,updateExternalModuleReference:ec,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return k(315)},get updateJSDocNonNullableType(){return v(315)},get createJSDocNullableType(){return k(314)},get updateJSDocNullableType(){return v(314)},get createJSDocOptionalType(){return Z(316)},get updateJSDocOptionalType(){return f(316)},get createJSDocVariadicType(){return Z(318)},get updateJSDocVariadicType(){return f(318)},get createJSDocNamepathType(){return Z(319)},get updateJSDocNamepathType(){return f(319)},createJSDocFunctionType:nc,updateJSDocFunctionType:Mu,createJSDocTypeLiteral:rc,updateJSDocTypeLiteral:Ju,createJSDocTypeExpression:ka,updateJSDocTypeExpression:ju,createJSDocSignature:ic,updateJSDocSignature:Ea,createJSDocTemplateTag:V_,updateJSDocTemplateTag:W_,createJSDocTypedefTag:ac,updateJSDocTypedefTag:_c,createJSDocParameterTag:sc,updateJSDocParameterTag:Lu,createJSDocPropertyTag:G_,updateJSDocPropertyTag:Ru,createJSDocCallbackTag:Y_,updateJSDocCallbackTag:Uu,createJSDocOverloadTag:Aa,updateJSDocOverloadTag:oc,createJSDocAugmentsTag:fi,updateJSDocAugmentsTag:Bu,createJSDocImplementsTag:Yr,updateJSDocImplementsTag:Yu,createJSDocSeeTag:Ri,updateJSDocSeeTag:qu,createJSDocImportTag:X_,updateJSDocImportTag:hc,createJSDocNameReference:cc,updateJSDocNameReference:zu,createJSDocMemberName:lc,updateJSDocMemberName:Fu,createJSDocLink:H_,updateJSDocLink:Vu,createJSDocLinkCode:uc,updateJSDocLinkCode:Wu,createJSDocLinkPlain:pc,updateJSDocLinkPlain:Gu,get createJSDocTypeTag(){return re(344)},get updateJSDocTypeTag(){return be(344)},get createJSDocReturnTag(){return re(342)},get updateJSDocReturnTag(){return be(342)},get createJSDocThisTag(){return re(343)},get updateJSDocThisTag(){return be(343)},get createJSDocAuthorTag(){return w(330)},get updateJSDocAuthorTag(){return J(330)},get createJSDocClassTag(){return w(332)},get updateJSDocClassTag(){return J(332)},get createJSDocPublicTag(){return w(333)},get updateJSDocPublicTag(){return J(333)},get createJSDocPrivateTag(){return w(334)},get updateJSDocPrivateTag(){return J(334)},get createJSDocProtectedTag(){return w(335)},get updateJSDocProtectedTag(){return J(335)},get createJSDocReadonlyTag(){return w(336)},get updateJSDocReadonlyTag(){return J(336)},get createJSDocOverrideTag(){return w(337)},get updateJSDocOverrideTag(){return J(337)},get createJSDocDeprecatedTag(){return w(331)},get updateJSDocDeprecatedTag(){return J(331)},get createJSDocThrowsTag(){return re(349)},get updateJSDocThrowsTag(){return be(349)},get createJSDocSatisfiesTag(){return re(350)},get updateJSDocSatisfiesTag(){return be(350)},createJSDocEnumTag:Ca,updateJSDocEnumTag:Qu,createJSDocUnknownTag:mc,updateJSDocUnknownTag:$u,createJSDocText:yc,updateJSDocText:Da,createJSDocComment:$_,updateJSDocComment:Ku,createJsxElement:gc,updateJsxElement:Zu,createJsxSelfClosingElement:Pa,updateJsxSelfClosingElement:bc,createJsxOpeningElement:Q_,updateJsxOpeningElement:K_,createJsxClosingElement:Zt,updateJsxClosingElement:vc,createJsxFragment:Z_,createJsxText:Ui,updateJsxText:tp,createJsxOpeningFragment:np,createJsxJsxClosingFragment:rp,updateJsxFragment:ep,createJsxAttribute:Bi,updateJsxAttribute:ip,createJsxAttributes:xc,updateJsxAttributes:ap,createJsxSpreadAttribute:Tc,updateJsxSpreadAttribute:es,createJsxExpression:di,updateJsxExpression:_p,createJsxNamespacedName:Na,updateJsxNamespacedName:Sc,createCaseClause:wc,updateCaseClause:qi,createDefaultClause:ts,updateDefaultClause:sp,createHeritageClause:kc,updateHeritageClause:Ec,createCatchClause:ns,updateCatchClause:Ac,createPropertyAssignment:Dr,updatePropertyAssignment:Cc,createShorthandPropertyAssignment:Dc,updateShorthandPropertyAssignment:cp,createSpreadAssignment:rs,updateSpreadAssignment:Un,createEnumMember:is,updateEnumMember:lp,createSourceFile:up,updateSourceFile:Mc,createRedirectedSourceFile:Nc,createBundle:Jc,updateBundle:fp,createSyntheticExpression:Ia,createSyntaxList:jc,createNotEmittedStatement:dp,createPartiallyEmittedExpression:Lc,updatePartiallyEmittedExpression:Rc,createCommaListExpression:_s,updateCommaListExpression:Uc,createSyntheticReferenceExpression:ss,updateSyntheticReferenceExpression:Bc,cloneNode:os,get createComma(){return g(28)},get createAssignment(){return g(64)},get createLogicalOr(){return g(57)},get createLogicalAnd(){return g(56)},get createBitwiseOr(){return g(52)},get createBitwiseXor(){return g(53)},get createBitwiseAnd(){return g(51)},get createStrictEquality(){return g(37)},get createStrictInequality(){return g(38)},get createEquality(){return g(35)},get createInequality(){return g(36)},get createLessThan(){return g(30)},get createLessThanEquals(){return g(33)},get createGreaterThan(){return g(32)},get createGreaterThanEquals(){return g(34)},get createLeftShift(){return g(48)},get createRightShift(){return g(49)},get createUnsignedRightShift(){return g(50)},get createAdd(){return g(40)},get createSubtract(){return g(41)},get createMultiply(){return g(42)},get createDivide(){return g(44)},get createModulo(){return g(45)},get createExponent(){return g(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return C(46)},get createPostfixDecrement(){return C(47)},createImmediatelyInvokedFunctionExpression:gp,createImmediatelyInvokedArrowFunction:bp,createVoidZero:mi,createExportDefault:Fc,createExternalModuleExport:vp,createTypeCheck:cs,createIsNotTypeCheck:xp,createMethodCall:Hr,createGlobalMethodCall:zi,createFunctionBindCall:Tp,createFunctionCallCall:Sp,createFunctionApplyCall:wp,createArraySliceCall:Fi,createArrayConcatCall:kp,createObjectDefinePropertyCall:Vc,createObjectGetOwnPropertyDescriptorCall:Ep,createReflectGetCall:Ap,createReflectSetCall:Wc,createPropertyDescriptor:Cp,createCallBinding:p,createAssignmentTargetWrapper:m,inlineExpressions:y,getInternalName:N,getLocalName:$,getExportName:_e,getDeclarationName:ee,getNamespaceMemberName:K,getExternalModuleOrNamespaceExportName:le,restoreOuterExpressions:ls,restoreEnclosingLabel:us,createUseStrictPrologue:De,copyPrologue:Ue,copyStandardPrologue:Yt,copyCustomPrologue:un,ensureUseStrict:fr,liftToBlock:dr,mergeLexicalEnvironment:Xr,replaceModifiers:Pp,replaceDecoratorsAndModifiers:Np,replacePropertyName:Ip};return zn(e6,n=>n(he)),he;function me(n,i){if(n===void 0||n===Ot)n=[];else if(Si(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&um(n),B.attachNodeArrayDebugInfo(n),n;let d=n.slice();return d.pos=n.pos,d.end=n.end,d.hasTrailingComma=i,d.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(d),d}let _=n.length,c=_>=1&&_<=4?n.slice():n;return c.pos=-1,c.end=-1,c.hasTrailingComma=!!i,c.transformFlags=0,um(c),B.attachNodeArrayDebugInfo(c),c}function O(n){return t.createBaseNode(n)}function ae(n){let i=O(n);return i.symbol=void 0,i.localSymbol=void 0,i}function ve(n,i){return n!==i&&(n.typeArguments=i.typeArguments),R(n,i)}function X(n,i=0){let _=typeof n=="number"?n+"":n;B.assert(_.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let c=ae(9);return c.text=_,c.numericLiteralFlags=i,i&384&&(c.transformFlags|=1024),c}function oe(n){let i=nn(10);return i.text=typeof n=="string"?n:Gb(n)+"n",i.transformFlags|=32,i}function G(n,i){let _=ae(11);return _.text=n,_.singleQuote=i,_}function ht(n,i,_){let c=G(n,i);return c.hasExtendedUnicodeEscape=_,_&&(c.transformFlags|=1024),c}function ir(n){let i=G(ob(n),void 0);return i.textSourceNode=n,i}function xn(n){let i=nn(14);return i.text=n,i}function ar(n,i){switch(n){case 9:return X(i,0);case 10:return oe(i);case 11:return ht(i,void 0);case 12:return Ui(i,!1);case 13:return Ui(i,!0);case 14:return xn(i);case 15:return oi(n,i,void 0,0)}}function Tn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function On(n,i,_,c){let d=Tn(Ra(n));return setIdentifierAutoGenerate(d,{flags:i,id:el,prefix:_,suffix:c}),el++,d}function Ve(n,i,_){i===void 0&&n&&(i=i1(n)),i===80&&(i=void 0);let c=Tn(Ra(n));return _&&(c.flags|=256),c.escapedText==="await"&&(c.transformFlags|=67108864),c.flags&256&&(c.transformFlags|=1024),c}function _r(n,i,_,c){let d=1;i&&(d|=8);let T=On("",d,_,c);return n&&n(T),T}function Rr(n){let i=2;return n&&(i|=8),On("",i,void 0,void 0)}function Mt(n,i=0,_,c){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),On(n,3|i,_,c)}function Vn(n,i=0,_,c){B.assert(!(i&7),"Argument out of range: flags");let d=n?tf(n)?of(!1,_,n,c,Nn):`generated@${getNodeId(n)}`:"";(_||c)&&(i|=16);let T=On(d,4|i,_,c);return T.original=n,T}function Mn(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Jt(n){return cl(n,"#")||B.fail("First character of private identifier must be #: "+n),Mn(Ra(n))}function xt(n,i,_,c){let d=Mn(Ra(n));return setIdentifierAutoGenerate(d,{flags:i,id:el,prefix:_,suffix:c}),el++,d}function Qe(n,i,_){n&&!cl(n,"#")&&B.fail("First character of private identifier must be #: "+n);let c=8|(n?3:1);return xt(n??"",c,i,_)}function Wn(n,i,_){let c=tf(n)?of(!0,i,n,_,Nn):`#generated@${getNodeId(n)}`,T=xt(c,4|(i||_?16:0),i,_);return T.original=n,T}function nn(n){return t.createBaseTokenNode(n)}function ut(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=nn(n),_=0;switch(n){case 134:_=384;break;case 160:_=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,i.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,i.flowNode=void 0;break}return _&&(i.transformFlags|=_),i}function st(){return ut(108)}function Vt(){return ut(110)}function jt(){return ut(106)}function pt(){return ut(112)}function sr(){return ut(97)}function yt(n){return ut(n)}function Sn(n){let i=[];return n&32&&i.push(yt(95)),n&128&&i.push(yt(138)),n&2048&&i.push(yt(90)),n&4096&&i.push(yt(87)),n&1&&i.push(yt(125)),n&2&&i.push(yt(123)),n&4&&i.push(yt(124)),n&64&&i.push(yt(128)),n&256&&i.push(yt(126)),n&16&&i.push(yt(164)),n&8&&i.push(yt(148)),n&512&&i.push(yt(129)),n&1024&&i.push(yt(134)),n&8192&&i.push(yt(103)),n&16384&&i.push(yt(147)),i.length?i:void 0}function vt(n,i){let _=O(166);return _.left=n,_.right=nt(i),_.transformFlags|=F(_.left)|Ba(_.right),_.flowNode=void 0,_}function dn(n,i,_){return n.left!==i||n.right!==_?R(vt(i,_),n):n}function rt(n){let i=O(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=F(i.expression)|1024|131072,i}function Wt(n,i){return n.expression!==i?R(rt(i),n):n}function on(n,i,_,c){let d=ae(168);return d.modifiers=Pe(n),d.name=nt(i),d.constraint=_,d.default=c,d.transformFlags=1,d.expression=void 0,d.jsDoc=void 0,d}function or(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.constraint!==c||n.default!==d?R(on(i,_,c,d),n):n}function vr(n,i,_,c,d,T){let q=ae(169);return q.modifiers=Pe(n),q.dotDotDotToken=i,q.name=nt(_),q.questionToken=c,q.type=d,q.initializer=pn(T),lb(q.name)?q.transformFlags=1:q.transformFlags=Ae(q.modifiers)|F(q.dotDotDotToken)|Bn(q.name)|F(q.questionToken)|F(q.initializer)|(q.questionToken??q.type?1:0)|(q.dotDotDotToken??q.initializer?1024:0)|(qn(q.modifiers)&31?8192:0),q.jsDoc=void 0,q}function xr(n,i,_,c,d,T,q){return n.modifiers!==i||n.dotDotDotToken!==_||n.name!==c||n.questionToken!==d||n.type!==T||n.initializer!==q?R(vr(i,_,c,d,T,q),n):n}function Gn(n){let i=O(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1|8192|33554432,i}function Yn(n,i){return n.expression!==i?R(Gn(i),n):n}function Ur(n,i,_,c){let d=ae(171);return d.modifiers=Pe(n),d.name=nt(i),d.type=c,d.questionToken=_,d.transformFlags=1,d.initializer=void 0,d.jsDoc=void 0,d}function Hn(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.type!==d?Ne(Ur(i,_,c,d),n):n}function Ne(n,i){return n!==i&&(n.initializer=i.initializer),R(n,i)}function Tr(n,i,_,c,d){let T=ae(172);T.modifiers=Pe(n),T.name=nt(i),T.questionToken=_&&fm(_)?_:void 0,T.exclamationToken=_&&pm(_)?_:void 0,T.type=c,T.initializer=pn(d);let q=T.flags&33554432||qn(T.modifiers)&128;return T.transformFlags=Ae(T.modifiers)|Bn(T.name)|F(T.initializer)|(q||T.questionToken||T.exclamationToken||T.type?1:0)|(kl(T.name)||qn(T.modifiers)&256&&T.initializer?8192:0)|16777216,T.jsDoc=void 0,T}function j(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.questionToken!==(c!==void 0&&fm(c)?c:void 0)||n.exclamationToken!==(c!==void 0&&pm(c)?c:void 0)||n.type!==d||n.initializer!==T?R(Tr(i,_,c,d,T),n):n}function se(n,i,_,c,d,T){let q=ae(173);return q.modifiers=Pe(n),q.name=nt(i),q.questionToken=_,q.typeParameters=Pe(c),q.parameters=Pe(d),q.type=T,q.transformFlags=1,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.typeArguments=void 0,q}function fe(n,i,_,c,d,T,q){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.typeParameters!==d||n.parameters!==T||n.type!==q?ve(se(i,_,c,d,T,q),n):n}function xe(n,i,_,c,d,T,q,pe){let Le=ae(174);if(Le.modifiers=Pe(n),Le.asteriskToken=i,Le.name=nt(_),Le.questionToken=c,Le.exclamationToken=void 0,Le.typeParameters=Pe(d),Le.parameters=me(T),Le.type=q,Le.body=pe,!Le.body)Le.transformFlags=1;else{let en=qn(Le.modifiers)&1024,hr=!!Le.asteriskToken,yr=en&&hr;Le.transformFlags=Ae(Le.modifiers)|F(Le.asteriskToken)|Bn(Le.name)|F(Le.questionToken)|Ae(Le.typeParameters)|Ae(Le.parameters)|F(Le.type)|F(Le.body)&-67108865|(yr?128:en?256:hr?2048:0)|(Le.questionToken||Le.typeParameters||Le.type?1:0)|1024}return Le.typeArguments=void 0,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.flowNode=void 0,Le.endFlowNode=void 0,Le.returnFlowNode=void 0,Le}function Xe(n,i,_,c,d,T,q,pe,Le){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.questionToken!==d||n.typeParameters!==T||n.parameters!==q||n.type!==pe||n.body!==Le?Ke(xe(i,_,c,d,T,q,pe,Le),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),R(n,i)}function ot(n){let i=ae(175);return i.body=n,i.transformFlags=F(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Pt(n,i){return n.body!==i?Tt(ot(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),R(n,i)}function ft(n,i,_){let c=ae(176);return c.modifiers=Pe(n),c.parameters=me(i),c.body=_,c.transformFlags=Ae(c.modifiers)|Ae(c.parameters)|F(c.body)&-67108865|1024,c.typeParameters=void 0,c.type=void 0,c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Br(n,i,_,c){return n.modifiers!==i||n.parameters!==_||n.body!==c?Sr(ft(i,_,c),n):n}function Sr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),ve(n,i)}function Jn(n,i,_,c,d){let T=ae(177);return T.modifiers=Pe(n),T.name=nt(i),T.parameters=me(_),T.type=c,T.body=d,T.body?T.transformFlags=Ae(T.modifiers)|Bn(T.name)|Ae(T.parameters)|F(T.type)|F(T.body)&-67108865|(T.type?1:0):T.transformFlags=1,T.typeArguments=void 0,T.typeParameters=void 0,T.jsDoc=void 0,T.locals=void 0,T.nextContainer=void 0,T.flowNode=void 0,T.endFlowNode=void 0,T.returnFlowNode=void 0,T}function Xn(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.type!==d||n.body!==T?Pi(Jn(i,_,c,d,T),n):n}function Pi(n,i){return n!==i&&(n.typeParameters=i.typeParameters),ve(n,i)}function z(n,i,_,c){let d=ae(178);return d.modifiers=Pe(n),d.name=nt(i),d.parameters=me(_),d.body=c,d.body?d.transformFlags=Ae(d.modifiers)|Bn(d.name)|Ae(d.parameters)|F(d.body)&-67108865|(d.type?1:0):d.transformFlags=1,d.typeArguments=void 0,d.typeParameters=void 0,d.type=void 0,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d.endFlowNode=void 0,d.returnFlowNode=void 0,d}function V(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.body!==d?Q(z(i,_,c,d),n):n}function Q(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),ve(n,i)}function Te(n,i,_){let c=ae(179);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Se(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?ve(Te(i,_,c),n):n}function Ce(n,i,_){let c=ae(180);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function ye(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?ve(Ce(i,_,c),n):n}function Ye(n,i,_){let c=ae(181);return c.modifiers=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function $e(n,i,_,c){return n.parameters!==_||n.type!==c||n.modifiers!==i?ve(Ye(i,_,c),n):n}function Ze(n,i){let _=O(204);return _.type=n,_.literal=i,_.transformFlags=1,_}function Ee(n,i,_){return n.type!==i||n.literal!==_?R(Ze(i,_),n):n}function wn(n){return ut(n)}function at(n,i,_){let c=O(182);return c.assertsModifier=n,c.parameterName=nt(i),c.type=_,c.transformFlags=1,c}function mn(n,i,_,c){return n.assertsModifier!==i||n.parameterName!==_||n.type!==c?R(at(i,_,c),n):n}function ii(n,i){let _=O(183);return _.typeName=nt(n),_.typeArguments=i&&o().parenthesizeTypeArguments(me(i)),_.transformFlags=1,_}function M(n,i,_){return n.typeName!==i||n.typeArguments!==_?R(ii(i,_),n):n}function Be(n,i,_){let c=ae(184);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function u(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(Be(i,_,c),n):n}function Oe(n,i){return n!==i&&(n.modifiers=i.modifiers),ve(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?qe(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,_,c){let d=ae(185);return d.modifiers=Pe(n),d.typeParameters=Pe(i),d.parameters=Pe(_),d.type=c,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.typeArguments=void 0,d}function qe(n,i,_){return U(void 0,n,i,_)}function cn(...n){return n.length===5?Fe(...n):n.length===4?He(...n):B.fail("Incorrect number of arguments specified.")}function Fe(n,i,_,c,d){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==d?ve(Me(i,_,c,d),n):n}function He(n,i,_,c){return Fe(n,n.modifiers,i,_,c)}function Nt(n,i){let _=O(186);return _.exprName=n,_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags=1,_}function Et(n,i,_){return n.exprName!==i||n.typeArguments!==_?R(Nt(i,_),n):n}function It(n){let i=ae(187);return i.members=me(n),i.transformFlags=1,i}function Gt(n,i){return n.members!==i?R(It(i),n):n}function $n(n){let i=O(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function Ni(n,i){return n.elementType!==i?R($n(i),n):n}function hn(n){let i=O(189);return i.elements=me(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function Y(n,i){return n.elements!==i?R(hn(i),n):n}function de(n,i,_,c){let d=ae(202);return d.dotDotDotToken=n,d.name=i,d.questionToken=_,d.type=c,d.transformFlags=1,d.jsDoc=void 0,d}function ze(n,i,_,c,d){return n.dotDotDotToken!==i||n.name!==_||n.questionToken!==c||n.type!==d?R(de(i,_,c,d),n):n}function ke(n){let i=O(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function L(n,i){return n.type!==i?R(ke(i),n):n}function gt(n){let i=O(191);return i.type=n,i.transformFlags=1,i}function St(n,i){return n.type!==i?R(gt(i),n):n}function Lt(n,i,_){let c=O(n);return c.types=he.createNodeArray(_(i)),c.transformFlags=1,c}function yn(n,i,_){return n.types!==i?R(Lt(n.kind,i,_),n):n}function Vl(n){return Lt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function zs(n,i){return yn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function qr(n){return Lt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Je(n,i){return yn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function mt(n,i,_,c){let d=O(194);return d.checkType=o().parenthesizeCheckTypeOfConditionalType(n),d.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),d.trueType=_,d.falseType=c,d.transformFlags=1,d.locals=void 0,d.nextContainer=void 0,d}function Wl(n,i,_,c,d){return n.checkType!==i||n.extendsType!==_||n.trueType!==c||n.falseType!==d?R(mt(i,_,c,d),n):n}function Qn(n){let i=O(195);return i.typeParameter=n,i.transformFlags=1,i}function Gl(n,i){return n.typeParameter!==i?R(Qn(i),n):n}function Qt(n,i){let _=O(203);return _.head=n,_.templateSpans=me(i),_.transformFlags=1,_}function Yl(n,i,_){return n.head!==i||n.templateSpans!==_?R(Qt(i,_),n):n}function cr(n,i,_,c,d=!1){let T=O(205);return T.argument=n,T.attributes=i,T.assertions&&T.assertions.assertClause&&T.attributes&&(T.assertions.assertClause=T.attributes),T.qualifier=_,T.typeArguments=c&&o().parenthesizeTypeArguments(c),T.isTypeOf=d,T.transformFlags=1,T}function fa(n,i,_,c,d,T=n.isTypeOf){return n.argument!==i||n.attributes!==_||n.qualifier!==c||n.typeArguments!==d||n.isTypeOf!==T?R(cr(i,_,c,d,T),n):n}function rn(n){let i=O(196);return i.type=n,i.transformFlags=1,i}function Dt(n,i){return n.type!==i?R(rn(i),n):n}function D(){let n=O(197);return n.transformFlags=1,n}function an(n,i){let _=O(198);return _.operator=n,_.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),_.transformFlags=1,_}function zr(n,i){return n.type!==i?R(an(n.operator,i),n):n}function lr(n,i){let _=O(199);return _.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),_.indexType=i,_.transformFlags=1,_}function r_(n,i,_){return n.objectType!==i||n.indexType!==_?R(lr(i,_),n):n}function wt(n,i,_,c,d,T){let q=ae(200);return q.readonlyToken=n,q.typeParameter=i,q.nameType=_,q.questionToken=c,q.type=d,q.members=T&&me(T),q.transformFlags=1,q.locals=void 0,q.nextContainer=void 0,q}function Rt(n,i,_,c,d,T,q){return n.readonlyToken!==i||n.typeParameter!==_||n.nameType!==c||n.questionToken!==d||n.type!==T||n.members!==q?R(wt(i,_,c,d,T,q),n):n}function ai(n){let i=O(201);return i.literal=n,i.transformFlags=1,i}function Fr(n,i){return n.literal!==i?R(ai(i),n):n}function Fs(n){let i=O(206);return i.elements=me(n),i.transformFlags|=Ae(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Hl(n,i){return n.elements!==i?R(Fs(i),n):n}function Vr(n){let i=O(207);return i.elements=me(n),i.transformFlags|=Ae(i.elements)|1024|524288,i}function Xl(n,i){return n.elements!==i?R(Vr(i),n):n}function da(n,i,_,c){let d=ae(208);return d.dotDotDotToken=n,d.propertyName=nt(i),d.name=nt(_),d.initializer=pn(c),d.transformFlags|=F(d.dotDotDotToken)|Bn(d.propertyName)|Bn(d.name)|F(d.initializer)|(d.dotDotDotToken?32768:0)|1024,d.flowNode=void 0,d}function _i(n,i,_,c,d){return n.propertyName!==_||n.dotDotDotToken!==i||n.name!==c||n.initializer!==d?R(da(i,_,c,d),n):n}function i_(n,i){let _=O(209),c=n&&Ki(n),d=me(n,c&&oh(c)?!0:void 0);return _.elements=o().parenthesizeExpressionsOfCommaDelimitedList(d),_.multiLine=i,_.transformFlags|=Ae(_.elements),_}function Vs(n,i){return n.elements!==i?R(i_(i,n.multiLine),n):n}function Ii(n,i){let _=ae(210);return _.properties=me(n),_.multiLine=i,_.transformFlags|=Ae(_.properties),_.jsDoc=void 0,_}function $l(n,i){return n.properties!==i?R(Ii(i,n.multiLine),n):n}function Ws(n,i,_){let c=ae(211);return c.expression=n,c.questionDotToken=i,c.name=_,c.transformFlags=F(c.expression)|F(c.questionDotToken)|(et(c.name)?Ba(c.name):F(c.name)|536870912),c.jsDoc=void 0,c.flowNode=void 0,c}function ur(n,i){let _=Ws(o().parenthesizeLeftSideOfAccess(n,!1),void 0,nt(i));return Vp(n)&&(_.transformFlags|=384),_}function Gs(n,i,_){return r2(n)?Ys(n,i,n.questionDotToken,Ir(_,et)):n.expression!==i||n.name!==_?R(ur(i,_),n):n}function si(n,i,_){let c=Ws(o().parenthesizeLeftSideOfAccess(n,!0),i,nt(_));return c.flags|=64,c.transformFlags|=32,c}function Ys(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==_||n.name!==c?R(si(i,_,c),n):n}function ma(n,i,_){let c=ae(212);return c.expression=n,c.questionDotToken=i,c.argumentExpression=_,c.transformFlags|=F(c.expression)|F(c.questionDotToken)|F(c.argumentExpression),c.jsDoc=void 0,c.flowNode=void 0,c}function a_(n,i){let _=ma(o().parenthesizeLeftSideOfAccess(n,!1),void 0,mr(i));return Vp(n)&&(_.transformFlags|=384),_}function Ql(n,i,_){return i2(n)?Hs(n,i,n.questionDotToken,_):n.expression!==i||n.argumentExpression!==_?R(a_(i,_),n):n}function __(n,i,_){let c=ma(o().parenthesizeLeftSideOfAccess(n,!0),i,mr(_));return c.flags|=64,c.transformFlags|=32,c}function Hs(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==_||n.argumentExpression!==c?R(__(i,_,c),n):n}function Xs(n,i,_,c){let d=ae(213);return d.expression=n,d.questionDotToken=i,d.typeArguments=_,d.arguments=c,d.transformFlags|=F(d.expression)|F(d.questionDotToken)|Ae(d.typeArguments)|Ae(d.arguments),d.typeArguments&&(d.transformFlags|=1),im(d.expression)&&(d.transformFlags|=16384),d}function wr(n,i,_){let c=Xs(o().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),o().parenthesizeExpressionsOfCommaDelimitedList(me(_)));return l6(c.expression)&&(c.transformFlags|=8388608),c}function Kl(n,i,_,c){return Qd(n)?kn(n,i,n.questionDotToken,_,c):n.expression!==i||n.typeArguments!==_||n.arguments!==c?R(wr(i,_,c),n):n}function s_(n,i,_,c){let d=Xs(o().parenthesizeLeftSideOfAccess(n,!0),i,Pe(_),o().parenthesizeExpressionsOfCommaDelimitedList(me(c)));return d.flags|=64,d.transformFlags|=32,d}function kn(n,i,_,c,d){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==_||n.typeArguments!==c||n.arguments!==d?R(s_(i,_,c,d),n):n}function ha(n,i,_){let c=ae(214);return c.expression=o().parenthesizeExpressionOfNew(n),c.typeArguments=Pe(i),c.arguments=_?o().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,c.transformFlags|=F(c.expression)|Ae(c.typeArguments)|Ae(c.arguments)|32,c.typeArguments&&(c.transformFlags|=1),c}function o_(n,i,_,c){return n.expression!==i||n.typeArguments!==_||n.arguments!==c?R(ha(i,_,c),n):n}function c_(n,i,_){let c=O(215);return c.tag=o().parenthesizeLeftSideOfAccess(n,!1),c.typeArguments=Pe(i),c.template=_,c.transformFlags|=F(c.tag)|Ae(c.typeArguments)|F(c.template)|1024,c.typeArguments&&(c.transformFlags|=1),cb(c.template)&&(c.transformFlags|=128),c}function Zl(n,i,_,c){return n.tag!==i||n.typeArguments!==_||n.template!==c?R(c_(i,_,c),n):n}function $s(n,i){let _=O(216);return _.expression=o().parenthesizeOperandOfPrefixUnary(i),_.type=n,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function Qs(n,i,_){return n.type!==i||n.expression!==_?R($s(i,_),n):n}function l_(n){let i=O(217);return i.expression=n,i.transformFlags=F(i.expression),i.jsDoc=void 0,i}function Ks(n,i){return n.expression!==i?R(l_(i),n):n}function u_(n,i,_,c,d,T,q){let pe=ae(218);pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=nt(_),pe.typeParameters=Pe(c),pe.parameters=me(d),pe.type=T,pe.body=q;let Le=qn(pe.modifiers)&1024,en=!!pe.asteriskToken,hr=Le&&en;return pe.transformFlags=Ae(pe.modifiers)|F(pe.asteriskToken)|Bn(pe.name)|Ae(pe.typeParameters)|Ae(pe.parameters)|F(pe.type)|F(pe.body)&-67108865|(hr?128:Le?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Zs(n,i,_,c,d,T,q,pe){return n.name!==c||n.modifiers!==i||n.asteriskToken!==_||n.typeParameters!==d||n.parameters!==T||n.type!==q||n.body!==pe?ve(u_(i,_,c,d,T,q,pe),n):n}function p_(n,i,_,c,d,T){let q=ae(219);q.modifiers=Pe(n),q.typeParameters=Pe(i),q.parameters=me(_),q.type=c,q.equalsGreaterThanToken=d??ut(39),q.body=o().parenthesizeConciseBodyOfArrowFunction(T);let pe=qn(q.modifiers)&1024;return q.transformFlags=Ae(q.modifiers)|Ae(q.typeParameters)|Ae(q.parameters)|F(q.type)|F(q.equalsGreaterThanToken)|F(q.body)&-67108865|(q.typeParameters||q.type?1:0)|(pe?16640:0)|1024,q.typeArguments=void 0,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.flowNode=void 0,q.endFlowNode=void 0,q.returnFlowNode=void 0,q}function eo(n,i,_,c,d,T,q){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==d||n.equalsGreaterThanToken!==T||n.body!==q?ve(p_(i,_,c,d,T,q),n):n}function f_(n){let i=O(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function eu(n,i){return n.expression!==i?R(f_(i),n):n}function Kt(n){let i=O(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function tu(n,i){return n.expression!==i?R(Kt(i),n):n}function jn(n){let i=O(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function nu(n,i){return n.expression!==i?R(jn(i),n):n}function kr(n){let i=O(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression)|256|128|2097152,i}function Oi(n,i){return n.expression!==i?R(kr(i),n):n}function d_(n,i){let _=O(224);return _.operator=n,_.operand=o().parenthesizeOperandOfPrefixUnary(i),_.transformFlags|=F(_.operand),(n===46||n===47)&&et(_.operand)&&!za(_.operand)&&!mm(_.operand)&&(_.transformFlags|=268435456),_}function ya(n,i){return n.operand!==i?R(d_(n.operator,i),n):n}function m_(n,i){let _=O(225);return _.operator=i,_.operand=o().parenthesizeOperandOfPostfixUnary(n),_.transformFlags|=F(_.operand),et(_.operand)&&!za(_.operand)&&!mm(_.operand)&&(_.transformFlags|=268435456),_}function to(n,i){return n.operand!==i?R(m_(i,n.operator),n):n}function h_(n,i,_){let c=ae(226),d=Pr(i),T=d.kind;return c.left=o().parenthesizeLeftSideOfBinary(T,n),c.operatorToken=d,c.right=o().parenthesizeRightSideOfBinary(T,c.left,_),c.transformFlags|=F(c.left)|F(c.operatorToken)|F(c.right),T===61?c.transformFlags|=32:T===64?Yf(c.left)?c.transformFlags|=5248|no(c.left):ih(c.left)&&(c.transformFlags|=5120|no(c.left)):T===43||T===68?c.transformFlags|=512:vb(T)&&(c.transformFlags|=16),T===103&&wi(c.left)&&(c.transformFlags|=536870912),c.jsDoc=void 0,c}function no(n){return Sh(n)?65536:0}function ru(n,i,_,c){return n.left!==i||n.operatorToken!==_||n.right!==c?R(h_(i,_,c),n):n}function y_(n,i,_,c,d){let T=O(227);return T.condition=o().parenthesizeConditionOfConditionalExpression(n),T.questionToken=i??ut(58),T.whenTrue=o().parenthesizeBranchOfConditionalExpression(_),T.colonToken=c??ut(59),T.whenFalse=o().parenthesizeBranchOfConditionalExpression(d),T.transformFlags|=F(T.condition)|F(T.questionToken)|F(T.whenTrue)|F(T.colonToken)|F(T.whenFalse),T}function iu(n,i,_,c,d,T){return n.condition!==i||n.questionToken!==_||n.whenTrue!==c||n.colonToken!==d||n.whenFalse!==T?R(y_(i,_,c,d,T),n):n}function Kn(n,i){let _=O(228);return _.head=n,_.templateSpans=me(i),_.transformFlags|=F(_.head)|Ae(_.templateSpans)|1024,_}function ro(n,i,_){return n.head!==i||n.templateSpans!==_?R(Kn(i,_),n):n}function ga(n,i,_,c=0){B.assert(!(c&-7177),"Unsupported template flags.");let d;if(_!==void 0&&_!==i&&(d=t6(n,_),typeof d=="object"))return B.fail("Invalid raw text");if(i===void 0){if(d===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=d}else d!==void 0&&B.assert(i===d,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function io(n){let i=1024;return n&&(i|=128),i}function Mi(n,i,_,c){let d=nn(n);return d.text=i,d.rawText=_,d.templateFlags=c&7176,d.transformFlags=io(d.templateFlags),d}function g_(n,i,_,c){let d=ae(n);return d.text=i,d.rawText=_,d.templateFlags=c&7176,d.transformFlags=io(d.templateFlags),d}function oi(n,i,_,c){return n===15?g_(n,i,_,c):Mi(n,i,_,c)}function ba(n,i,_){return n=ga(16,n,i,_),oi(16,n,i,_)}function b_(n,i,_){return n=ga(16,n,i,_),oi(17,n,i,_)}function au(n,i,_){return n=ga(16,n,i,_),oi(18,n,i,_)}function ao(n,i,_){return n=ga(16,n,i,_),g_(15,n,i,_)}function _o(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let _=O(229);return _.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),_.asteriskToken=n,_.transformFlags|=F(_.expression)|F(_.asteriskToken)|1024|128|1048576,_}function _u(n,i,_){return n.expression!==_||n.asteriskToken!==i?R(_o(i,_),n):n}function so(n){let i=O(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|1024|32768,i}function su(n,i){return n.expression!==i?R(so(i),n):n}function oo(n,i,_,c,d){let T=ae(231);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),T.transformFlags|=Ae(T.modifiers)|Bn(T.name)|Ae(T.typeParameters)|Ae(T.heritageClauses)|Ae(T.members)|(T.typeParameters?1:0)|1024,T.jsDoc=void 0,T}function Ji(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(oo(i,_,c,d,T),n):n}function ou(){return O(232)}function co(n,i){let _=O(233);return _.expression=o().parenthesizeLeftSideOfAccess(n,!1),_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags|=F(_.expression)|Ae(_.typeArguments)|1024,_}function En(n,i,_){return n.expression!==i||n.typeArguments!==_?R(co(i,_),n):n}function va(n,i){let _=O(234);return _.expression=n,_.type=i,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function lo(n,i,_){return n.expression!==i||n.type!==_?R(va(i,_),n):n}function uo(n){let i=O(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1,i}function v_(n,i){return a2(n)?fo(n,i):n.expression!==i?R(uo(i),n):n}function po(n,i){let _=O(238);return _.expression=n,_.type=i,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function x_(n,i,_){return n.expression!==i||n.type!==_?R(po(i,_),n):n}function Ln(n){let i=O(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=F(i.expression)|1,i}function fo(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?R(Ln(i),n):n}function xa(n,i){let _=O(236);switch(_.keywordToken=n,_.name=i,_.transformFlags|=F(_.name),n){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return B.assertNever(n)}return _.flowNode=void 0,_}function pr(n,i){return n.name!==i?R(xa(n.keywordToken,i),n):n}function ji(n,i){let _=O(239);return _.expression=n,_.literal=i,_.transformFlags|=F(_.expression)|F(_.literal)|1024,_}function mo(n,i,_){return n.expression!==i||n.literal!==_?R(ji(i,_),n):n}function ho(){let n=O(240);return n.transformFlags|=1024,n}function ci(n,i){let _=O(241);return _.statements=me(n),_.multiLine=i,_.transformFlags|=Ae(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function yo(n,i){return n.statements!==i?R(ci(i,n.multiLine),n):n}function go(n,i){let _=O(243);return _.modifiers=Pe(n),_.declarationList=Zr(i)?C_(i):i,_.transformFlags|=Ae(_.modifiers)|F(_.declarationList),qn(_.modifiers)&128&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function bo(n,i,_){return n.modifiers!==i||n.declarationList!==_?R(go(i,_),n):n}function T_(){let n=O(242);return n.jsDoc=void 0,n}function Li(n){let i=O(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function cu(n,i){return n.expression!==i?R(Li(i),n):n}function S_(n,i,_){let c=O(245);return c.expression=n,c.thenStatement=Zn(i),c.elseStatement=Zn(_),c.transformFlags|=F(c.expression)|F(c.thenStatement)|F(c.elseStatement),c.jsDoc=void 0,c.flowNode=void 0,c}function lu(n,i,_,c){return n.expression!==i||n.thenStatement!==_||n.elseStatement!==c?R(S_(i,_,c),n):n}function w_(n,i){let _=O(246);return _.statement=Zn(n),_.expression=i,_.transformFlags|=F(_.statement)|F(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function uu(n,i,_){return n.statement!==i||n.expression!==_?R(w_(i,_),n):n}function vo(n,i){let _=O(247);return _.expression=n,_.statement=Zn(i),_.transformFlags|=F(_.expression)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function pu(n,i,_){return n.expression!==i||n.statement!==_?R(vo(i,_),n):n}function k_(n,i,_,c){let d=O(248);return d.initializer=n,d.condition=i,d.incrementor=_,d.statement=Zn(c),d.transformFlags|=F(d.initializer)|F(d.condition)|F(d.incrementor)|F(d.statement),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function xo(n,i,_,c,d){return n.initializer!==i||n.condition!==_||n.incrementor!==c||n.statement!==d?R(k_(i,_,c,d),n):n}function To(n,i,_){let c=O(249);return c.initializer=n,c.expression=i,c.statement=Zn(_),c.transformFlags|=F(c.initializer)|F(c.expression)|F(c.statement),c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c}function fu(n,i,_,c){return n.initializer!==i||n.expression!==_||n.statement!==c?R(To(i,_,c),n):n}function So(n,i,_,c){let d=O(250);return d.awaitModifier=n,d.initializer=i,d.expression=o().parenthesizeExpressionForDisallowedComma(_),d.statement=Zn(c),d.transformFlags|=F(d.awaitModifier)|F(d.initializer)|F(d.expression)|F(d.statement)|1024,n&&(d.transformFlags|=128),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function du(n,i,_,c,d){return n.awaitModifier!==i||n.initializer!==_||n.expression!==c||n.statement!==d?R(So(i,_,c,d),n):n}function wo(n){let i=O(251);return i.label=nt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function ko(n,i){return n.label!==i?R(wo(i),n):n}function E_(n){let i=O(252);return i.label=nt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function Eo(n,i){return n.label!==i?R(E_(i),n):n}function Ao(n){let i=O(253);return i.expression=n,i.transformFlags|=F(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function Co(n,i){return n.expression!==i?R(Ao(i),n):n}function A_(n,i){let _=O(254);return _.expression=n,_.statement=Zn(i),_.transformFlags|=F(_.expression)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function Do(n,i,_){return n.expression!==i||n.statement!==_?R(A_(i,_),n):n}function Wr(n,i){let _=O(255);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.caseBlock=i,_.transformFlags|=F(_.expression)|F(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function mu(n,i,_){return n.expression!==i||n.caseBlock!==_?R(Wr(i,_),n):n}function Po(n,i){let _=O(256);return _.label=nt(n),_.statement=Zn(i),_.transformFlags|=F(_.label)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function No(n,i,_){return n.label!==i||n.statement!==_?R(Po(i,_),n):n}function Io(n){let i=O(257);return i.expression=n,i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function hu(n,i){return n.expression!==i?R(Io(i),n):n}function Oo(n,i,_){let c=O(258);return c.tryBlock=n,c.catchClause=i,c.finallyBlock=_,c.transformFlags|=F(c.tryBlock)|F(c.catchClause)|F(c.finallyBlock),c.jsDoc=void 0,c.flowNode=void 0,c}function Mo(n,i,_,c){return n.tryBlock!==i||n.catchClause!==_||n.finallyBlock!==c?R(Oo(i,_,c),n):n}function Jo(){let n=O(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function Ta(n,i,_,c){let d=ae(260);return d.name=nt(n),d.exclamationToken=i,d.type=_,d.initializer=pn(c),d.transformFlags|=Bn(d.name)|F(d.initializer)|(d.exclamationToken??d.type?1:0),d.jsDoc=void 0,d}function yu(n,i,_,c,d){return n.name!==i||n.type!==c||n.exclamationToken!==_||n.initializer!==d?R(Ta(i,_,c,d),n):n}function C_(n,i=0){let _=O(261);return _.flags|=i&7,_.declarations=me(n),_.transformFlags|=Ae(_.declarations)|4194304,i&7&&(_.transformFlags|=263168),i&4&&(_.transformFlags|=4),_}function gu(n,i){return n.declarations!==i?R(C_(i,n.flags),n):n}function D_(n,i,_,c,d,T,q){let pe=ae(262);if(pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=nt(_),pe.typeParameters=Pe(c),pe.parameters=me(d),pe.type=T,pe.body=q,!pe.body||qn(pe.modifiers)&128)pe.transformFlags=1;else{let Le=qn(pe.modifiers)&1024,en=!!pe.asteriskToken,hr=Le&&en;pe.transformFlags=Ae(pe.modifiers)|F(pe.asteriskToken)|Bn(pe.name)|Ae(pe.typeParameters)|Ae(pe.parameters)|F(pe.type)|F(pe.body)&-67108865|(hr?128:Le?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function jo(n,i,_,c,d,T,q,pe){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.typeParameters!==d||n.parameters!==T||n.type!==q||n.body!==pe?bu(D_(i,_,c,d,T,q,pe),n):n}function bu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),ve(n,i)}function P_(n,i,_,c,d){let T=ae(263);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),qn(T.modifiers)&128?T.transformFlags=1:(T.transformFlags|=Ae(T.modifiers)|Bn(T.name)|Ae(T.typeParameters)|Ae(T.heritageClauses)|Ae(T.members)|(T.typeParameters?1:0)|1024,T.transformFlags&8192&&(T.transformFlags|=1)),T.jsDoc=void 0,T}function N_(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(P_(i,_,c,d,T),n):n}function Lo(n,i,_,c,d){let T=ae(264);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),T.transformFlags=1,T.jsDoc=void 0,T}function ct(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(Lo(i,_,c,d,T),n):n}function Er(n,i,_,c){let d=ae(265);return d.modifiers=Pe(n),d.name=nt(i),d.typeParameters=Pe(_),d.type=c,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function I_(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.type!==d?R(Er(i,_,c,d),n):n}function Ar(n,i,_){let c=ae(266);return c.modifiers=Pe(n),c.name=nt(i),c.members=me(_),c.transformFlags|=Ae(c.modifiers)|F(c.name)|Ae(c.members)|1,c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Ro(n,i,_,c){return n.modifiers!==i||n.name!==_||n.members!==c?R(Ar(i,_,c),n):n}function At(n,i,_,c=0){let d=ae(267);return d.modifiers=Pe(n),d.flags|=c&2088,d.name=i,d.body=_,qn(d.modifiers)&128?d.transformFlags=1:d.transformFlags|=Ae(d.modifiers)|F(d.name)|F(d.body)|1,d.transformFlags&=-67108865,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function Cr(n,i,_,c){return n.modifiers!==i||n.name!==_||n.body!==c?R(At(i,_,c,n.flags),n):n}function Ut(n){let i=O(268);return i.statements=me(n),i.transformFlags|=Ae(i.statements),i.jsDoc=void 0,i}function vu(n,i){return n.statements!==i?R(Ut(i),n):n}function Uo(n){let i=O(269);return i.clauses=me(n),i.transformFlags|=Ae(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function xu(n,i){return n.clauses!==i?R(Uo(i),n):n}function O_(n){let i=ae(270);return i.name=nt(n),i.transformFlags|=Ba(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Tu(n,i){return n.name!==i?Su(O_(i),n):n}function Su(n,i){return n!==i&&(n.modifiers=i.modifiers),R(n,i)}function Bo(n,i,_,c){let d=ae(271);return d.modifiers=Pe(n),d.name=nt(_),d.isTypeOnly=i,d.moduleReference=c,d.transformFlags|=Ae(d.modifiers)|Ba(d.name)|F(d.moduleReference),td(d.moduleReference)||(d.transformFlags|=1),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function qo(n,i,_,c,d){return n.modifiers!==i||n.isTypeOnly!==_||n.name!==c||n.moduleReference!==d?R(Bo(i,_,c,d),n):n}function zo(n,i,_,c){let d=O(272);return d.modifiers=Pe(n),d.importClause=i,d.moduleSpecifier=_,d.attributes=d.assertClause=c,d.transformFlags|=F(d.importClause)|F(d.moduleSpecifier),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Fo(n,i,_,c,d){return n.modifiers!==i||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==d?R(zo(i,_,c,d),n):n}function M_(n,i,_){let c=ae(273);return c.isTypeOnly=n,c.name=i,c.namedBindings=_,c.transformFlags|=F(c.name)|F(c.namedBindings),n&&(c.transformFlags|=1),c.transformFlags&=-67108865,c}function Vo(n,i,_,c){return n.isTypeOnly!==i||n.name!==_||n.namedBindings!==c?R(M_(i,_,c),n):n}function Wo(n,i){let _=O(300);return _.elements=me(n),_.multiLine=i,_.token=132,_.transformFlags|=4,_}function Sa(n,i,_){return n.elements!==i||n.multiLine!==_?R(Wo(i,_),n):n}function J_(n,i){let _=O(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Go(n,i,_){return n.name!==i||n.value!==_?R(J_(i,_),n):n}function j_(n,i){let _=O(302);return _.assertClause=n,_.multiLine=i,_}function wu(n,i,_){return n.assertClause!==i||n.multiLine!==_?R(j_(i,_),n):n}function wa(n,i,_){let c=O(300);return c.token=_??118,c.elements=me(n),c.multiLine=i,c.transformFlags|=4,c}function ku(n,i,_){return n.elements!==i||n.multiLine!==_?R(wa(i,_,n.token),n):n}function L_(n,i){let _=O(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Eu(n,i,_){return n.name!==i||n.value!==_?R(L_(i,_),n):n}function Yo(n){let i=ae(274);return i.name=n,i.transformFlags|=F(i.name),i.transformFlags&=-67108865,i}function Au(n,i){return n.name!==i?R(Yo(i),n):n}function Ho(n){let i=ae(280);return i.name=n,i.transformFlags|=F(i.name)|32,i.transformFlags&=-67108865,i}function Cu(n,i){return n.name!==i?R(Ho(i),n):n}function R_(n){let i=O(275);return i.elements=me(n),i.transformFlags|=Ae(i.elements),i.transformFlags&=-67108865,i}function Gr(n,i){return n.elements!==i?R(R_(i),n):n}function Xo(n,i,_){let c=ae(276);return c.isTypeOnly=n,c.propertyName=i,c.name=_,c.transformFlags|=F(c.propertyName)|F(c.name),c.transformFlags&=-67108865,c}function $o(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?R(Xo(i,_,c),n):n}function li(n,i,_){let c=ae(277);return c.modifiers=Pe(n),c.isExportEquals=i,c.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,_):o().parenthesizeExpressionOfExportDefault(_),c.transformFlags|=Ae(c.modifiers)|F(c.expression),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function U_(n,i,_){return n.modifiers!==i||n.expression!==_?R(li(i,n.isExportEquals,_),n):n}function B_(n,i,_,c,d){let T=ae(278);return T.modifiers=Pe(n),T.isTypeOnly=i,T.exportClause=_,T.moduleSpecifier=c,T.attributes=T.assertClause=d,T.transformFlags|=Ae(T.modifiers)|F(T.exportClause)|F(T.moduleSpecifier),T.transformFlags&=-67108865,T.jsDoc=void 0,T}function ui(n,i,_,c,d,T){return n.modifiers!==i||n.isTypeOnly!==_||n.exportClause!==c||n.moduleSpecifier!==d||n.attributes!==T?Du(B_(i,_,c,d,T),n):n}function Du(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),R(n,i)}function q_(n){let i=O(279);return i.elements=me(n),i.transformFlags|=Ae(i.elements),i.transformFlags&=-67108865,i}function Qo(n,i){return n.elements!==i?R(q_(i),n):n}function z_(n,i,_){let c=O(281);return c.isTypeOnly=n,c.propertyName=nt(i),c.name=nt(_),c.transformFlags|=F(c.propertyName)|F(c.name),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Pu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?R(z_(i,_,c),n):n}function Ko(){let n=ae(282);return n.jsDoc=void 0,n}function Zo(n){let i=O(283);return i.expression=n,i.transformFlags|=F(i.expression),i.transformFlags&=-67108865,i}function ec(n,i){return n.expression!==i?R(Zo(i),n):n}function Nu(n){return O(n)}function tc(n,i,_=!1){let c=F_(n,_?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return c.postfix=_,c}function F_(n,i){let _=O(n);return _.type=i,_}function Iu(n,i,_){return i.type!==_?R(tc(n,_,i.postfix),i):i}function Ou(n,i,_){return i.type!==_?R(F_(n,_),i):i}function nc(n,i){let _=ae(317);return _.parameters=Pe(n),_.type=i,_.transformFlags=Ae(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function Mu(n,i,_){return n.parameters!==i||n.type!==_?R(nc(i,_),n):n}function rc(n,i=!1){let _=ae(322);return _.jsDocPropertyTags=Pe(n),_.isArrayType=i,_}function Ju(n,i,_){return n.jsDocPropertyTags!==i||n.isArrayType!==_?R(rc(i,_),n):n}function ka(n){let i=O(309);return i.type=n,i}function ju(n,i){return n.type!==i?R(ka(i),n):n}function ic(n,i,_){let c=ae(323);return c.typeParameters=Pe(n),c.parameters=me(i),c.type=_,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c}function Ea(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?R(ic(i,_,c),n):n}function ln(n){let i=tl(n.kind);return n.tagName.escapedText===Ra(i)?n.tagName:Ve(i)}function Rn(n,i,_){let c=O(n);return c.tagName=i,c.comment=_,c}function pi(n,i,_){let c=ae(n);return c.tagName=i,c.comment=_,c}function V_(n,i,_,c){let d=Rn(345,n??Ve("template"),c);return d.constraint=i,d.typeParameters=me(_),d}function W_(n,i=ln(n),_,c,d){return n.tagName!==i||n.constraint!==_||n.typeParameters!==c||n.comment!==d?R(V_(i,_,c,d),n):n}function ac(n,i,_,c){let d=pi(346,n??Ve("typedef"),c);return d.typeExpression=i,d.fullName=_,d.name=hm(_),d.locals=void 0,d.nextContainer=void 0,d}function _c(n,i=ln(n),_,c,d){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==d?R(ac(i,_,c,d),n):n}function sc(n,i,_,c,d,T){let q=pi(341,n??Ve("param"),T);return q.typeExpression=c,q.name=i,q.isNameFirst=!!d,q.isBracketed=_,q}function Lu(n,i=ln(n),_,c,d,T,q){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==d||n.isNameFirst!==T||n.comment!==q?R(sc(i,_,c,d,T,q),n):n}function G_(n,i,_,c,d,T){let q=pi(348,n??Ve("prop"),T);return q.typeExpression=c,q.name=i,q.isNameFirst=!!d,q.isBracketed=_,q}function Ru(n,i=ln(n),_,c,d,T,q){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==d||n.isNameFirst!==T||n.comment!==q?R(G_(i,_,c,d,T,q),n):n}function Y_(n,i,_,c){let d=pi(338,n??Ve("callback"),c);return d.typeExpression=i,d.fullName=_,d.name=hm(_),d.locals=void 0,d.nextContainer=void 0,d}function Uu(n,i=ln(n),_,c,d){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==d?R(Y_(i,_,c,d),n):n}function Aa(n,i,_){let c=Rn(339,n??Ve("overload"),_);return c.typeExpression=i,c}function oc(n,i=ln(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?R(Aa(i,_,c),n):n}function fi(n,i,_){let c=Rn(328,n??Ve("augments"),_);return c.class=i,c}function Bu(n,i=ln(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?R(fi(i,_,c),n):n}function Yr(n,i,_){let c=Rn(329,n??Ve("implements"),_);return c.class=i,c}function Ri(n,i,_){let c=Rn(347,n??Ve("see"),_);return c.name=i,c}function qu(n,i,_,c){return n.tagName!==i||n.name!==_||n.comment!==c?R(Ri(i,_,c),n):n}function cc(n){let i=O(310);return i.name=n,i}function zu(n,i){return n.name!==i?R(cc(i),n):n}function lc(n,i){let _=O(311);return _.left=n,_.right=i,_.transformFlags|=F(_.left)|F(_.right),_}function Fu(n,i,_){return n.left!==i||n.right!==_?R(lc(i,_),n):n}function H_(n,i){let _=O(324);return _.name=n,_.text=i,_}function Vu(n,i,_){return n.name!==i?R(H_(i,_),n):n}function uc(n,i){let _=O(325);return _.name=n,_.text=i,_}function Wu(n,i,_){return n.name!==i?R(uc(i,_),n):n}function pc(n,i){let _=O(326);return _.name=n,_.text=i,_}function Gu(n,i,_){return n.name!==i?R(pc(i,_),n):n}function Yu(n,i=ln(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?R(Yr(i,_,c),n):n}function fc(n,i,_){return Rn(n,i??Ve(tl(n)),_)}function Hu(n,i,_=ln(i),c){return i.tagName!==_||i.comment!==c?R(fc(n,_,c),i):i}function dc(n,i,_,c){let d=Rn(n,i??Ve(tl(n)),c);return d.typeExpression=_,d}function Xu(n,i,_=ln(i),c,d){return i.tagName!==_||i.typeExpression!==c||i.comment!==d?R(dc(n,_,c,d),i):i}function mc(n,i){return Rn(327,n,i)}function $u(n,i,_){return n.tagName!==i||n.comment!==_?R(mc(i,_),n):n}function Ca(n,i,_){let c=pi(340,n??Ve(tl(340)),_);return c.typeExpression=i,c.locals=void 0,c.nextContainer=void 0,c}function Qu(n,i=ln(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?R(Ca(i,_,c),n):n}function X_(n,i,_,c,d){let T=Rn(351,n??Ve("import"),d);return T.importClause=i,T.moduleSpecifier=_,T.attributes=c,T.comment=d,T}function hc(n,i,_,c,d,T){return n.tagName!==i||n.comment!==T||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==d?R(X_(i,_,c,d,T),n):n}function yc(n){let i=O(321);return i.text=n,i}function Da(n,i){return n.text!==i?R(yc(i),n):n}function $_(n,i){let _=O(320);return _.comment=n,_.tags=Pe(i),_}function Ku(n,i,_){return n.comment!==i||n.tags!==_?R($_(i,_),n):n}function gc(n,i,_){let c=O(284);return c.openingElement=n,c.children=me(i),c.closingElement=_,c.transformFlags|=F(c.openingElement)|Ae(c.children)|F(c.closingElement)|2,c}function Zu(n,i,_,c){return n.openingElement!==i||n.children!==_||n.closingElement!==c?R(gc(i,_,c),n):n}function Pa(n,i,_){let c=O(285);return c.tagName=n,c.typeArguments=Pe(i),c.attributes=_,c.transformFlags|=F(c.tagName)|Ae(c.typeArguments)|F(c.attributes)|2,c.typeArguments&&(c.transformFlags|=1),c}function bc(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?R(Pa(i,_,c),n):n}function Q_(n,i,_){let c=O(286);return c.tagName=n,c.typeArguments=Pe(i),c.attributes=_,c.transformFlags|=F(c.tagName)|Ae(c.typeArguments)|F(c.attributes)|2,i&&(c.transformFlags|=1),c}function K_(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?R(Q_(i,_,c),n):n}function Zt(n){let i=O(287);return i.tagName=n,i.transformFlags|=F(i.tagName)|2,i}function vc(n,i){return n.tagName!==i?R(Zt(i),n):n}function Z_(n,i,_){let c=O(288);return c.openingFragment=n,c.children=me(i),c.closingFragment=_,c.transformFlags|=F(c.openingFragment)|Ae(c.children)|F(c.closingFragment)|2,c}function ep(n,i,_,c){return n.openingFragment!==i||n.children!==_||n.closingFragment!==c?R(Z_(i,_,c),n):n}function Ui(n,i){let _=O(12);return _.text=n,_.containsOnlyTriviaWhiteSpaces=!!i,_.transformFlags|=2,_}function tp(n,i,_){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==_?R(Ui(i,_),n):n}function np(){let n=O(289);return n.transformFlags|=2,n}function rp(){let n=O(290);return n.transformFlags|=2,n}function Bi(n,i){let _=ae(291);return _.name=n,_.initializer=i,_.transformFlags|=F(_.name)|F(_.initializer)|2,_}function ip(n,i,_){return n.name!==i||n.initializer!==_?R(Bi(i,_),n):n}function xc(n){let i=ae(292);return i.properties=me(n),i.transformFlags|=Ae(i.properties)|2,i}function ap(n,i){return n.properties!==i?R(xc(i),n):n}function Tc(n){let i=O(293);return i.expression=n,i.transformFlags|=F(i.expression)|2,i}function es(n,i){return n.expression!==i?R(Tc(i),n):n}function di(n,i){let _=O(294);return _.dotDotDotToken=n,_.expression=i,_.transformFlags|=F(_.dotDotDotToken)|F(_.expression)|2,_}function _p(n,i){return n.expression!==i?R(di(n.dotDotDotToken,i),n):n}function Na(n,i){let _=O(295);return _.namespace=n,_.name=i,_.transformFlags|=F(_.namespace)|F(_.name)|2,_}function Sc(n,i,_){return n.namespace!==i||n.name!==_?R(Na(i,_),n):n}function wc(n,i){let _=O(296);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.statements=me(i),_.transformFlags|=F(_.expression)|Ae(_.statements),_.jsDoc=void 0,_}function qi(n,i,_){return n.expression!==i||n.statements!==_?R(wc(i,_),n):n}function ts(n){let i=O(297);return i.statements=me(n),i.transformFlags=Ae(i.statements),i}function sp(n,i){return n.statements!==i?R(ts(i),n):n}function kc(n,i){let _=O(298);switch(_.token=n,_.types=me(i),_.transformFlags|=Ae(_.types),n){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return B.assertNever(n)}return _}function Ec(n,i){return n.types!==i?R(kc(n.token,i),n):n}function ns(n,i){let _=O(299);return _.variableDeclaration=Bt(n),_.block=i,_.transformFlags|=F(_.variableDeclaration)|F(_.block)|(n?0:64),_.locals=void 0,_.nextContainer=void 0,_}function Ac(n,i,_){return n.variableDeclaration!==i||n.block!==_?R(ns(i,_),n):n}function Dr(n,i){let _=ae(303);return _.name=nt(n),_.initializer=o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=Bn(_.name)|F(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function Cc(n,i,_){return n.name!==i||n.initializer!==_?op(Dr(i,_),n):n}function op(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),R(n,i)}function Dc(n,i){let _=ae(304);return _.name=nt(n),_.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=Ba(_.name)|F(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function cp(n,i,_){return n.name!==i||n.objectAssignmentInitializer!==_?Pc(Dc(i,_),n):n}function Pc(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),R(n,i)}function rs(n){let i=ae(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|128|65536,i.jsDoc=void 0,i}function Un(n,i){return n.expression!==i?R(rs(i),n):n}function is(n,i){let _=ae(306);return _.name=nt(n),_.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=F(_.name)|F(_.initializer)|1,_.jsDoc=void 0,_}function lp(n,i,_){return n.name!==i||n.initializer!==_?R(is(i,_),n):n}function up(n,i,_){let c=t.createBaseSourceFileNode(307);return c.statements=me(n),c.endOfFileToken=i,c.flags|=_,c.text="",c.fileName="",c.path="",c.resolvedPath="",c.originalFileName="",c.languageVersion=1,c.languageVariant=0,c.scriptKind=0,c.isDeclarationFile=!1,c.hasNoDefaultLib=!1,c.transformFlags|=Ae(c.statements)|F(c.endOfFileToken),c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.nodeCount=0,c.identifierCount=0,c.symbolCount=0,c.parseDiagnostics=void 0,c.bindDiagnostics=void 0,c.bindSuggestionDiagnostics=void 0,c.lineMap=void 0,c.externalModuleIndicator=void 0,c.setExternalModuleIndicator=void 0,c.pragmas=void 0,c.checkJsDirective=void 0,c.referencedFiles=void 0,c.typeReferenceDirectives=void 0,c.libReferenceDirectives=void 0,c.amdDependencies=void 0,c.commentDirectives=void 0,c.identifiers=void 0,c.packageJsonLocations=void 0,c.packageJsonScope=void 0,c.imports=void 0,c.moduleAugmentations=void 0,c.ambientModuleNames=void 0,c.classifiableNames=void 0,c.impliedNodeFormat=void 0,c}function Nc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),i.redirectInfo=n,i}function Ic(n){let i=Nc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function as(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let _ in n)if(!(Mr(i,_)||!Mr(n,_))){if(_==="emitNode"){i.emitNode=void 0;continue}i[_]=n[_]}return i}function Oc(n){let i=n.redirectInfo?Ic(n):as(n);return a(i,n),i}function pp(n,i,_,c,d,T,q){let pe=Oc(n);return pe.statements=me(i),pe.isDeclarationFile=_,pe.referencedFiles=c,pe.typeReferenceDirectives=d,pe.hasNoDefaultLib=T,pe.libReferenceDirectives=q,pe.transformFlags=Ae(pe.statements)|F(pe.endOfFileToken),pe}function Mc(n,i,_=n.isDeclarationFile,c=n.referencedFiles,d=n.typeReferenceDirectives,T=n.hasNoDefaultLib,q=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==_||n.referencedFiles!==c||n.typeReferenceDirectives!==d||n.hasNoDefaultLib!==T||n.libReferenceDirectives!==q?R(pp(n,i,_,c,d,T,q),n):n}function Jc(n){let i=O(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function fp(n,i){return n.sourceFiles!==i?R(Jc(i),n):n}function Ia(n,i=!1,_){let c=O(237);return c.type=n,c.isSpread=i,c.tupleNameSource=_,c}function jc(n){let i=O(352);return ad(i,n),i}function dp(n){let i=O(353);return i.original=n,bn(i,n),i}function Lc(n,i){let _=O(354);return _.expression=n,_.original=i,_.transformFlags|=F(_.expression)|1,bn(_,i),_}function Rc(n,i){return n.expression!==i?R(Lc(i,n.original),n):n}function mp(n){if(Ua(n)&&!fl(n)&&!n.original&&!n.emitNode&&!n.id){if(w6(n))return n.elements;if(ia(n)&&o6(n.operatorToken))return[n.left,n.right]}return n}function _s(n){let i=O(355);return i.elements=me(Cy(n,mp)),i.transformFlags|=Ae(i.elements),i}function Uc(n,i){return n.elements!==i?R(_s(i),n):n}function ss(n,i){let _=O(356);return _.expression=n,_.thisArg=i,_.transformFlags|=F(_.expression)|F(_.thisArg),_}function Bc(n,i,_){return n.expression!==i||n.thisArg!==_?R(ss(i,_),n):n}function hp(n){let i=Tn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function yp(n){let i=Tn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let _=getIdentifierTypeArguments(n);return _&&setIdentifierTypeArguments(i,_),i}function qc(n){let i=Mn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function zc(n){let i=Mn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function os(n){if(n===void 0)return n;if(mh(n))return Oc(n);if(za(n))return hp(n);if(et(n))return yp(n);if(x1(n))return qc(n);if(wi(n))return zc(n);let i=Df(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let _ in n)Mr(i,_)||!Mr(n,_)||(i[_]=n[_]);return i}function gp(n,i,_){return wr(u_(void 0,void 0,void 0,void 0,i?[i]:[],void 0,ci(n,!0)),void 0,_?[_]:[])}function bp(n,i,_){return wr(p_(void 0,void 0,i?[i]:[],void 0,void 0,ci(n,!0)),void 0,_?[_]:[])}function mi(){return jn(X("0"))}function Fc(n){return li(void 0,!1,n)}function vp(n){return B_(void 0,!1,q_([z_(!1,void 0,n)]))}function cs(n,i){return i==="null"?he.createStrictEquality(n,jt()):i==="undefined"?he.createStrictEquality(n,mi()):he.createStrictEquality(Kt(n),ht(i))}function xp(n,i){return i==="null"?he.createStrictInequality(n,jt()):i==="undefined"?he.createStrictInequality(n,mi()):he.createStrictInequality(Kt(n),ht(i))}function Hr(n,i,_){return Qd(n)?s_(si(n,void 0,i),void 0,void 0,_):wr(ur(n,i),void 0,_)}function Tp(n,i,_){return Hr(n,"bind",[i,..._])}function Sp(n,i,_){return Hr(n,"call",[i,..._])}function wp(n,i,_){return Hr(n,"apply",[i,_])}function zi(n,i,_){return Hr(Ve(n),i,_)}function Fi(n,i){return Hr(n,"slice",i===void 0?[]:[mr(i)])}function kp(n,i){return Hr(n,"concat",i)}function Vc(n,i,_){return zi("Object","defineProperty",[n,mr(i),_])}function Ep(n,i){return zi("Object","getOwnPropertyDescriptor",[n,mr(i)])}function Ap(n,i,_){return zi("Reflect","get",_?[n,i,_]:[n,i])}function Wc(n,i,_,c){return zi("Reflect","set",c?[n,i,_,c]:[n,i,_])}function hi(n,i,_){return _?(n.push(Dr(i,_)),!0):!1}function Cp(n,i){let _=[];hi(_,"enumerable",mr(n.enumerable)),hi(_,"configurable",mr(n.configurable));let c=hi(_,"writable",mr(n.writable));c=hi(_,"value",n.value)||c;let d=hi(_,"get",n.get);return d=hi(_,"set",n.set)||d,B.assert(!(c&&d),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ii(_,!i)}function Dp(n,i){switch(n.kind){case 217:return Ks(n,i);case 216:return Qs(n,n.type,i);case 234:return lo(n,i,n.type);case 238:return x_(n,i,n.type);case 235:return v_(n,i);case 354:return Rc(n,i)}}function Gc(n){return Dl(n)&&Ua(n)&&Ua(getSourceMapRange(n))&&Ua(getCommentRange(n))&&!qt(getSyntheticLeadingComments(n))&&!qt(getSyntheticTrailingComments(n))}function ls(n,i,_=15){return n&&Th(n,_)&&!Gc(n)?Dp(n,ls(n.expression,i)):i}function us(n,i,_){if(!i)return n;let c=No(i,i.label,lh(i.statement)?us(n,i.statement):n);return _&&_(i),c}function s(n,i){let _=jf(n);switch(_.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return _.elements.length!==0;case 210:return _.properties.length>0;default:return!0}}function p(n,i,_,c=!1){let d=_d(n,15),T,q;return im(d)?(T=Vt(),q=d):Vp(d)?(T=Vt(),q=_!==void 0&&_<2?bn(Ve("_super"),d):d):Wa(d)&8192?(T=mi(),q=o().parenthesizeLeftSideOfAccess(d,!1)):br(d)?s(d.expression,c)?(T=_r(i),q=ur(bn(he.createAssignment(T,d.expression),d.expression),d.name),bn(q,d)):(T=d.expression,q=d):_a(d)?s(d.expression,c)?(T=_r(i),q=a_(bn(he.createAssignment(T,d.expression),d.expression),d.argumentExpression),bn(q,d)):(T=d.expression,q=d):(T=mi(),q=o().parenthesizeLeftSideOfAccess(n,!1)),{target:q,thisArg:T}}function m(n,i){return ur(l_(Ii([z(void 0,"value",[vr(void 0,void 0,n,void 0,void 0,void 0)],ci([Li(i)]))])),"value")}function y(n){return n.length>10?_s(n):By(n,he.createComma)}function x(n,i,_,c=0,d){let T=d?n&&Af(n):m1(n);if(T&&et(T)&&!za(T)){let q=Uf(bn(os(T),T),T.parent);return c|=Wa(T),_||(c|=96),i||(c|=3072),c&&setEmitFlags(q,c),q}return Vn(n)}function N(n,i,_){return x(n,i,_,98304)}function $(n,i,_,c){return x(n,i,_,32768,c)}function _e(n,i,_){return x(n,i,_,16384)}function ee(n,i,_){return x(n,i,_)}function K(n,i,_,c){let d=ur(n,Ua(i)?i:os(i));bn(d,i);let T=0;return c||(T|=96),_||(T|=3072),T&&setEmitFlags(d,T),d}function le(n,i,_,c){return n&&Os(i,32)?K(n,x(i),_,c):_e(i,_,c)}function Ue(n,i,_,c){let d=Yt(n,i,0,_);return un(n,i,d,c)}function je(n){return Qa(n.expression)&&n.expression.text==="use strict"}function De(){return F6(Li(ht("use strict")))}function Yt(n,i,_=0,c){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let d=!1,T=n.length;for(;_pe&&en.splice(d,0,...i.slice(pe,Le)),pe>q&&en.splice(c,0,...i.slice(q,pe)),q>T&&en.splice(_,0,...i.slice(T,q)),T>0)if(_===0)en.splice(0,0,...i.slice(0,T));else{let hr=new Map;for(let yr=0;yr<_;yr++){let Vi=n[yr];hr.set(Vi.expression.text,!0)}for(let yr=T-1;yr>=0;yr--){let Vi=i[yr];hr.has(Vi.expression.text)||en.unshift(Vi)}}return Si(n)?bn(me(en,n.hasTrailingComma),n):n}function Pp(n,i){let _;return typeof i=="number"?_=Sn(i):_=i,zf(n)?or(n,_,n.name,n.constraint,n.default):As(n)?xr(n,_,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Gf(n)?Fe(n,_,n.typeParameters,n.parameters,n.type):W1(n)?Hn(n,_,n.name,n.questionToken,n.type):Ha(n)?j(n,_,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):G1(n)?fe(n,_,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):Cs(n)?Xe(n,_,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Ff(n)?Br(n,_,n.parameters,n.body):hl(n)?Xn(n,_,n.name,n.parameters,n.type,n.body):Ds(n)?V(n,_,n.name,n.parameters,n.body):Vf(n)?$e(n,_,n.parameters,n.type):Hf(n)?Zs(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Xf(n)?eo(n,_,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):yl(n)?Ji(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Ka(n)?bo(n,_,n.declarationList):$f(n)?jo(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Xa(n)?N_(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Ms(n)?ct(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Il(n)?I_(n,_,n.name,n.typeParameters,n.type):ph(n)?Ro(n,_,n.name,n.members):ei(n)?Cr(n,_,n.name,n.body):Qf(n)?qo(n,_,n.isTypeOnly,n.name,n.moduleReference):Kf(n)?Fo(n,_,n.importClause,n.moduleSpecifier,n.attributes):Zf(n)?U_(n,_,n.expression):ed(n)?ui(n,_,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Np(n,i){return As(n)?xr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Ha(n)?j(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):Cs(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):hl(n)?Xn(n,i,n.name,n.parameters,n.type,n.body):Ds(n)?V(n,i,n.name,n.parameters,n.body):yl(n)?Ji(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?N_(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function Ip(n,i){switch(n.kind){case 177:return Xn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return V(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return j(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Hn(n,n.modifiers,i,n.questionToken,n.type);case 303:return Cc(n,i,n.initializer)}}function Pe(n){return n?me(n):void 0}function nt(n){return typeof n=="string"?Ve(n):n}function mr(n){return typeof n=="string"?ht(n):typeof n=="number"?X(n):typeof n=="boolean"?n?pt():sr():n}function pn(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function Pr(n){return typeof n=="number"?ut(n):n}function Zn(n){return n&&k6(n)?bn(a(T_(),n),n):n}function Bt(n){return typeof n=="string"||n&&!Nl(n)?Ta(n,void 0,void 0,void 0):n}function R(n,i){return n!==i&&(a(n,i),bn(n,i)),n}}function tl(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var An,lm={};function t6(e,t){switch(An||(An=wf(99,!1,0)),e){case 15:An.setText("`"+t+"`");break;case 16:An.setText("`"+t+"${");break;case 17:An.setText("}"+t+"${");break;case 18:An.setText("}"+t+"`");break}let a=An.scan();if(a===20&&(a=An.reScanTemplateToken(!1)),An.isUnterminated())return An.setText(void 0),lm;let o;switch(a){case 15:case 16:case 17:case 18:o=An.getTokenValue();break}return o===void 0||An.scan()!==1?(An.setText(void 0),lm):(An.setText(void 0),o)}function Bn(e){return e&&et(e)?Ba(e):F(e)}function Ba(e){return F(e)&-67108865}function n6(e,t){return t|e.transformFlags&134234112}function F(e){if(!e)return 0;let t=e.transformFlags&~r6(e.kind);return qg(e)&&T1(e.name)?n6(e.name,t):t}function Ae(e){return e?e.transformFlags:0}function um(e){let t=0;for(let a of e)t|=F(a);e.transformFlags=t}function r6(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 354:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var fs=Kb();function ds(e){return e.flags|=16,e}var i6={createBaseSourceFileNode:e=>ds(fs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>ds(fs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>ds(fs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>ds(fs.createBaseTokenNode(e)),createBaseNode:e=>ds(fs.createBaseNode(e))},ox=Bf(4,i6);function a6(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=_6(a,e.emitNode))}return e}function _6(e,t){let{flags:a,internalFlags:o,leadingComments:h,trailingComments:g,commentRange:E,sourceMapRange:C,tokenSourceMapRanges:l,constantValue:Z,helpers:f,startsOnNewLine:k,snippetElement:v,classThis:w,assignedName:J}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),h&&(t.leadingComments=Pn(h.slice(),t.leadingComments)),g&&(t.trailingComments=Pn(g.slice(),t.trailingComments)),E&&(t.commentRange=E),C&&(t.sourceMapRange=C),l&&(t.tokenSourceMapRanges=s6(l,t.tokenSourceMapRanges)),Z!==void 0&&(t.constantValue=Z),f)for(let re of f)t.helpers=Oy(t.helpers,re);return k!==void 0&&(t.startsOnNewLine=k),v!==void 0&&(t.snippetElement=v),w&&(t.classThis=w),J&&(t.assignedName=J),t}function s6(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function Ai(e){return e.kind===9}function qf(e){return e.kind===10}function Qa(e){return e.kind===11}function F1(e){return e.kind===15}function o6(e){return e.kind===28}function pm(e){return e.kind===54}function fm(e){return e.kind===58}function et(e){return e.kind===80}function wi(e){return e.kind===81}function c6(e){return e.kind===95}function nl(e){return e.kind===134}function Vp(e){return e.kind===108}function l6(e){return e.kind===102}function V1(e){return e.kind===166}function kl(e){return e.kind===167}function zf(e){return e.kind===168}function As(e){return e.kind===169}function El(e){return e.kind===170}function W1(e){return e.kind===171}function Ha(e){return e.kind===172}function G1(e){return e.kind===173}function Cs(e){return e.kind===174}function Ff(e){return e.kind===176}function hl(e){return e.kind===177}function Ds(e){return e.kind===178}function Y1(e){return e.kind===179}function H1(e){return e.kind===180}function Vf(e){return e.kind===181}function X1(e){return e.kind===182}function Al(e){return e.kind===183}function Wf(e){return e.kind===184}function Gf(e){return e.kind===185}function u6(e){return e.kind===186}function $1(e){return e.kind===187}function p6(e){return e.kind===188}function f6(e){return e.kind===189}function Q1(e){return e.kind===202}function d6(e){return e.kind===190}function m6(e){return e.kind===191}function K1(e){return e.kind===192}function Z1(e){return e.kind===193}function h6(e){return e.kind===194}function y6(e){return e.kind===195}function eh(e){return e.kind===196}function g6(e){return e.kind===197}function th(e){return e.kind===198}function b6(e){return e.kind===199}function nh(e){return e.kind===200}function v6(e){return e.kind===201}function x6(e){return e.kind===205}function rh(e){return e.kind===208}function ih(e){return e.kind===209}function Yf(e){return e.kind===210}function br(e){return e.kind===211}function _a(e){return e.kind===212}function Cl(e){return e.kind===213}function ah(e){return e.kind===215}function Dl(e){return e.kind===217}function Hf(e){return e.kind===218}function Xf(e){return e.kind===219}function T6(e){return e.kind===222}function _h(e){return e.kind===224}function ia(e){return e.kind===226}function sh(e){return e.kind===230}function yl(e){return e.kind===231}function oh(e){return e.kind===232}function ch(e){return e.kind===233}function sl(e){return e.kind===235}function S6(e){return e.kind===236}function w6(e){return e.kind===355}function Ka(e){return e.kind===243}function Pl(e){return e.kind===244}function lh(e){return e.kind===256}function Nl(e){return e.kind===260}function uh(e){return e.kind===261}function $f(e){return e.kind===262}function Xa(e){return e.kind===263}function Ms(e){return e.kind===264}function Il(e){return e.kind===265}function ph(e){return e.kind===266}function ei(e){return e.kind===267}function Qf(e){return e.kind===271}function Kf(e){return e.kind===272}function Zf(e){return e.kind===277}function ed(e){return e.kind===278}function fh(e){return e.kind===279}function k6(e){return e.kind===353}function td(e){return e.kind===283}function _f(e){return e.kind===286}function E6(e){return e.kind===289}function dh(e){return e.kind===295}function A6(e){return e.kind===297}function nd(e){return e.kind===303}function mh(e){return e.kind===307}function hh(e){return e.kind===309}function yh(e){return e.kind===314}function gh(e){return e.kind===317}function bh(e){return e.kind===320}function C6(e){return e.kind===322}function Ol(e){return e.kind===323}function D6(e){return e.kind===328}function P6(e){return e.kind===333}function N6(e){return e.kind===334}function I6(e){return e.kind===335}function O6(e){return e.kind===336}function M6(e){return e.kind===337}function J6(e){return e.kind===339}function j6(e){return e.kind===331}function sf(e){return e.kind===341}function L6(e){return e.kind===342}function rd(e){return e.kind===344}function vh(e){return e.kind===345}function R6(e){return e.kind===329}function U6(e){return e.kind===350}var id=new WeakMap;function xh(e){return Df(e.kind)?id.get(e):Ot}function ad(e,t){return id.set(e,t),t}function dm(e){id.delete(e)}function mm(e){return(Wa(e)&32768)!==0}function B6(e){return Qa(e.expression)&&e.expression.text==="use strict"}function q6(e){for(let t of e)if(_l(t)){if(B6(t))return t}else break}function z6(e){return Dl(e)&&aa(e)&&!!t2(e)}function Th(e,t=15){switch(e.kind){case 217:return t&16&&z6(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 354:return(t&8)!==0}return!1}function _d(e,t=15){for(;Th(e,t);)e=e.expression;return e}function F6(e){return setStartsOnNewLine(e,!0)}function gs(e){if(y2(e))return e.name;if(d2(e)){switch(e.kind){case 303:return gs(e.initializer);case 304:return e.name;case 305:return gs(e.expression)}return}return ml(e,!0)?gs(e.left):sh(e)?gs(e.expression):e}function V6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function hm(e){if(e){let t=e;for(;;){if(et(t)||!t.body)return et(t)?t:t.name;t=t.body}}}var ym;(e=>{function t(f,k,v,w,J,re,be){let he=k>0?J[k-1]:void 0;return B.assertEqual(v[k],t),J[k]=f.onEnter(w[k],he,be),v[k]=C(f,t),k}e.enter=t;function a(f,k,v,w,J,re,be){B.assertEqual(v[k],a),B.assertIsDefined(f.onLeft),v[k]=C(f,a);let he=f.onLeft(w[k].left,J[k],w[k]);return he?(Z(k,w,he),l(k,v,w,J,he)):k}e.left=a;function o(f,k,v,w,J,re,be){return B.assertEqual(v[k],o),B.assertIsDefined(f.onOperator),v[k]=C(f,o),f.onOperator(w[k].operatorToken,J[k],w[k]),k}e.operator=o;function h(f,k,v,w,J,re,be){B.assertEqual(v[k],h),B.assertIsDefined(f.onRight),v[k]=C(f,h);let he=f.onRight(w[k].right,J[k],w[k]);return he?(Z(k,w,he),l(k,v,w,J,he)):k}e.right=h;function g(f,k,v,w,J,re,be){B.assertEqual(v[k],g),v[k]=C(f,g);let he=f.onExit(w[k],J[k]);if(k>0){if(k--,f.foldState){let me=v[k]===g?"right":"left";J[k]=f.foldState(J[k],he,me)}}else re.value=he;return k}e.exit=g;function E(f,k,v,w,J,re,be){return B.assertEqual(v[k],E),k}e.done=E;function C(f,k){switch(k){case t:if(f.onLeft)return a;case a:if(f.onOperator)return o;case o:if(f.onRight)return h;case h:return g;case g:return E;case E:return E;default:B.fail("Invalid state")}}e.nextState=C;function l(f,k,v,w,J){return f++,k[f]=t,v[f]=J,w[f]=void 0,f}function Z(f,k,v){if(B.shouldAssert(2))for(;f>=0;)B.assert(k[f]!==v,"Circular traversal detected."),f--}})(ym||(ym={}));function gm(e,t){return typeof e=="object"?of(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function W6(e,t){return typeof e=="string"?e:G6(e,B.checkDefined(t))}function G6(e,t){return x1(e)?t(e).slice(1):za(e)?t(e):wi(e)?e.escapedText.slice(1):Nn(e)}function of(e,t,a,o,h){return t=gm(t,h),o=gm(o,h),a=W6(a,h),`${e?"#":""}${t}${a}${o}`}function Sh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of V6(e)){let a=gs(t);if(a&&h2(a)&&(a.transformFlags&65536||a.transformFlags&128&&Sh(a)))return!0}return!1}function bn(e,t){return t?ta(e,t.pos,t.end):e}function Ml(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Jl(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var bm,vm,xm,Tm,Sm,Y6={createBaseSourceFileNode:e=>new(Sm||(Sm=Ct.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(xm||(xm=Ct.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Tm||(Tm=Ct.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(vm||(vm=Ct.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(bm||(bm=Ct.getNodeConstructor()))(e,-1,-1)},cx=Bf(1,Y6);function S(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let o of a){let h=e(o);if(h)return h}}}function H6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function X6(e){return zn(e.statements,$6)||Q6(e)}function $6(e){return Ml(e)&&K6(e,95)||Qf(e)&&td(e.moduleReference)||Kf(e)||Zf(e)||ed(e)?e:void 0}function Q6(e){return e.flags&8388608?wh(e):void 0}function wh(e){return Z6(e)?e:tn(e,wh)}function K6(e,t){return qt(e.modifiers,a=>a.kind===t)}function Z6(e){return S6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var ev={166:function(t,a,o){return S(a,t.left)||S(a,t.right)},168:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.constraint)||S(a,t.default)||S(a,t.expression)},304:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.equalsToken)||S(a,t.objectAssignmentInitializer)},305:function(t,a,o){return S(a,t.expression)},169:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},172:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},171:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},303:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.initializer)},260:function(t,a,o){return S(a,t.name)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},208:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.propertyName)||S(a,t.name)||S(a,t.initializer)},181:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},185:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},184:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},179:wm,180:wm,174:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},173:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},176:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},177:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},178:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},262:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},218:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},219:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.equalsGreaterThanToken)||S(a,t.body)},175:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.body)},183:function(t,a,o){return S(a,t.typeName)||ie(a,o,t.typeArguments)},182:function(t,a,o){return S(a,t.assertsModifier)||S(a,t.parameterName)||S(a,t.type)},186:function(t,a,o){return S(a,t.exprName)||ie(a,o,t.typeArguments)},187:function(t,a,o){return ie(a,o,t.members)},188:function(t,a,o){return S(a,t.elementType)},189:function(t,a,o){return ie(a,o,t.elements)},192:km,193:km,194:function(t,a,o){return S(a,t.checkType)||S(a,t.extendsType)||S(a,t.trueType)||S(a,t.falseType)},195:function(t,a,o){return S(a,t.typeParameter)},205:function(t,a,o){return S(a,t.argument)||S(a,t.attributes)||S(a,t.qualifier)||ie(a,o,t.typeArguments)},302:function(t,a,o){return S(a,t.assertClause)},196:Em,198:Em,199:function(t,a,o){return S(a,t.objectType)||S(a,t.indexType)},200:function(t,a,o){return S(a,t.readonlyToken)||S(a,t.typeParameter)||S(a,t.nameType)||S(a,t.questionToken)||S(a,t.type)||ie(a,o,t.members)},201:function(t,a,o){return S(a,t.literal)},202:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)},206:Am,207:Am,209:function(t,a,o){return ie(a,o,t.elements)},210:function(t,a,o){return ie(a,o,t.properties)},211:function(t,a,o){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.name)},212:function(t,a,o){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.argumentExpression)},213:Cm,214:Cm,215:function(t,a,o){return S(a,t.tag)||S(a,t.questionDotToken)||ie(a,o,t.typeArguments)||S(a,t.template)},216:function(t,a,o){return S(a,t.type)||S(a,t.expression)},217:function(t,a,o){return S(a,t.expression)},220:function(t,a,o){return S(a,t.expression)},221:function(t,a,o){return S(a,t.expression)},222:function(t,a,o){return S(a,t.expression)},224:function(t,a,o){return S(a,t.operand)},229:function(t,a,o){return S(a,t.asteriskToken)||S(a,t.expression)},223:function(t,a,o){return S(a,t.expression)},225:function(t,a,o){return S(a,t.operand)},226:function(t,a,o){return S(a,t.left)||S(a,t.operatorToken)||S(a,t.right)},234:function(t,a,o){return S(a,t.expression)||S(a,t.type)},235:function(t,a,o){return S(a,t.expression)},238:function(t,a,o){return S(a,t.expression)||S(a,t.type)},236:function(t,a,o){return S(a,t.name)},227:function(t,a,o){return S(a,t.condition)||S(a,t.questionToken)||S(a,t.whenTrue)||S(a,t.colonToken)||S(a,t.whenFalse)},230:function(t,a,o){return S(a,t.expression)},241:Dm,268:Dm,307:function(t,a,o){return ie(a,o,t.statements)||S(a,t.endOfFileToken)},243:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.declarationList)},261:function(t,a,o){return ie(a,o,t.declarations)},244:function(t,a,o){return S(a,t.expression)},245:function(t,a,o){return S(a,t.expression)||S(a,t.thenStatement)||S(a,t.elseStatement)},246:function(t,a,o){return S(a,t.statement)||S(a,t.expression)},247:function(t,a,o){return S(a,t.expression)||S(a,t.statement)},248:function(t,a,o){return S(a,t.initializer)||S(a,t.condition)||S(a,t.incrementor)||S(a,t.statement)},249:function(t,a,o){return S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},250:function(t,a,o){return S(a,t.awaitModifier)||S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},251:Pm,252:Pm,253:function(t,a,o){return S(a,t.expression)},254:function(t,a,o){return S(a,t.expression)||S(a,t.statement)},255:function(t,a,o){return S(a,t.expression)||S(a,t.caseBlock)},269:function(t,a,o){return ie(a,o,t.clauses)},296:function(t,a,o){return S(a,t.expression)||ie(a,o,t.statements)},297:function(t,a,o){return ie(a,o,t.statements)},256:function(t,a,o){return S(a,t.label)||S(a,t.statement)},257:function(t,a,o){return S(a,t.expression)},258:function(t,a,o){return S(a,t.tryBlock)||S(a,t.catchClause)||S(a,t.finallyBlock)},299:function(t,a,o){return S(a,t.variableDeclaration)||S(a,t.block)},170:function(t,a,o){return S(a,t.expression)},263:Nm,231:Nm,264:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.heritageClauses)||ie(a,o,t.members)},265:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||S(a,t.type)},266:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.members)},306:function(t,a,o){return S(a,t.name)||S(a,t.initializer)},267:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.body)},271:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.moduleReference)},272:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.importClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},273:function(t,a,o){return S(a,t.name)||S(a,t.namedBindings)},300:function(t,a,o){return ie(a,o,t.elements)},301:function(t,a,o){return S(a,t.name)||S(a,t.value)},270:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)},274:function(t,a,o){return S(a,t.name)},280:function(t,a,o){return S(a,t.name)},275:Im,279:Im,278:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.exportClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},276:Om,281:Om,277:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.expression)},228:function(t,a,o){return S(a,t.head)||ie(a,o,t.templateSpans)},239:function(t,a,o){return S(a,t.expression)||S(a,t.literal)},203:function(t,a,o){return S(a,t.head)||ie(a,o,t.templateSpans)},204:function(t,a,o){return S(a,t.type)||S(a,t.literal)},167:function(t,a,o){return S(a,t.expression)},298:function(t,a,o){return ie(a,o,t.types)},233:function(t,a,o){return S(a,t.expression)||ie(a,o,t.typeArguments)},283:function(t,a,o){return S(a,t.expression)},282:function(t,a,o){return ie(a,o,t.modifiers)},355:function(t,a,o){return ie(a,o,t.elements)},284:function(t,a,o){return S(a,t.openingElement)||ie(a,o,t.children)||S(a,t.closingElement)},288:function(t,a,o){return S(a,t.openingFragment)||ie(a,o,t.children)||S(a,t.closingFragment)},285:Mm,286:Mm,292:function(t,a,o){return ie(a,o,t.properties)},291:function(t,a,o){return S(a,t.name)||S(a,t.initializer)},293:function(t,a,o){return S(a,t.expression)},294:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.expression)},287:function(t,a,o){return S(a,t.tagName)},295:function(t,a,o){return S(a,t.namespace)||S(a,t.name)},190:Hi,191:Hi,309:Hi,315:Hi,314:Hi,316:Hi,318:Hi,317:function(t,a,o){return ie(a,o,t.parameters)||S(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ie(a,o,t.comment))||ie(a,o,t.tags)},347:function(t,a,o){return S(a,t.tagName)||S(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},310:function(t,a,o){return S(a,t.name)},311:function(t,a,o){return S(a,t.left)||S(a,t.right)},341:Jm,348:Jm,330:function(t,a,o){return S(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},329:function(t,a,o){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},328:function(t,a,o){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},345:function(t,a,o){return S(a,t.tagName)||S(a,t.constraint)||ie(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},346:function(t,a,o){return S(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?S(a,t.typeExpression)||S(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)):S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)))},338:function(t,a,o){return S(a,t.tagName)||S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},342:Xi,344:Xi,343:Xi,340:Xi,350:Xi,349:Xi,339:Xi,323:function(t,a,o){return zn(t.typeParameters,a)||zn(t.parameters,a)||S(a,t.type)},324:Wp,325:Wp,326:Wp,322:function(t,a,o){return zn(t.jsDocPropertyTags,a)},327:bi,332:bi,333:bi,334:bi,335:bi,336:bi,331:bi,337:bi,351:tv,354:nv};function wm(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||S(t,e.type)}function km(e,t,a){return ie(t,a,e.types)}function Em(e,t,a){return S(t,e.type)}function Am(e,t,a){return ie(t,a,e.elements)}function Cm(e,t,a){return S(t,e.expression)||S(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function Dm(e,t,a){return ie(t,a,e.statements)}function Pm(e,t,a){return S(t,e.label)}function Nm(e,t,a){return ie(t,a,e.modifiers)||S(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function Im(e,t,a){return ie(t,a,e.elements)}function Om(e,t,a){return S(t,e.propertyName)||S(t,e.name)}function Mm(e,t,a){return S(t,e.tagName)||ie(t,a,e.typeArguments)||S(t,e.attributes)}function Hi(e,t,a){return S(t,e.type)}function Jm(e,t,a){return S(t,e.tagName)||(e.isNameFirst?S(t,e.name)||S(t,e.typeExpression):S(t,e.typeExpression)||S(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Xi(e,t,a){return S(t,e.tagName)||S(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Wp(e,t,a){return S(t,e.name)}function bi(e,t,a){return S(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function tv(e,t,a){return S(t,e.tagName)||S(t,e.importClause)||S(t,e.moduleSpecifier)||S(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function nv(e,t,a){return S(t,e.expression)}function tn(e,t,a){if(e===void 0||e.kind<=165)return;let o=ev[e.kind];return o===void 0?void 0:o(e,t,a)}function jm(e,t,a){let o=Lm(e),h=[];for(;h.length=0;--C)o.push(g[C]),h.push(E)}else{let C=t(g,E);if(C){if(C==="skip")continue;return C}if(g.kind>=166)for(let l of Lm(g))o.push(l),h.push(g)}}}function Lm(e){let t=[];return tn(e,a,a),t;function a(o){t.unshift(o)}}function kh(e){e.externalModuleIndicator=X6(e)}function Eh(e,t,a,o=!1,h){var g,E,C,l;(g=il)==null||g.push(il.Phase.Parse,"createSourceFile",{path:e},!0),qd("beforeParse");let Z;(E=$p)==null||E.logStartParseSourceFile(e);let{languageVersion:f,setExternalModuleIndicator:k,impliedNodeFormat:v,jsDocParsingMode:w}=typeof a=="object"?a:{languageVersion:a};if(f===100)Z=na.parseSourceFile(e,t,f,void 0,o,6,Ga,w);else{let J=v===void 0?k:re=>(re.impliedNodeFormat=v,(k||kh)(re));Z=na.parseSourceFile(e,t,f,void 0,o,h,J,w)}return(C=$p)==null||C.logStopParseSourceFile(),qd("afterParse"),eg("Parse","beforeParse","afterParse"),(l=il)==null||l.pop(),Z}function sd(e){return e.externalModuleIndicator!==void 0}function rv(e,t,a,o=!1){let h=gl.updateSourceFile(e,t,a,o);return h.flags|=e.flags&12582912,h}var na;(e=>{var t=wf(99,!0),a=40960,o,h,g,E,C;function l(s){return sr++,s}var Z={createBaseSourceFileNode:s=>l(new C(s,0,0)),createBaseIdentifierNode:s=>l(new g(s,0,0)),createBasePrivateIdentifierNode:s=>l(new E(s,0,0)),createBaseTokenNode:s=>l(new h(s,0,0)),createBaseNode:s=>l(new o(s,0,0))},f=Bf(11,Z),{createNodeArray:k,createNumericLiteral:v,createStringLiteral:w,createLiteralLikeNode:J,createIdentifier:re,createPrivateIdentifier:be,createToken:he,createArrayLiteralExpression:me,createObjectLiteralExpression:O,createPropertyAccessExpression:ae,createPropertyAccessChain:ve,createElementAccessExpression:X,createElementAccessChain:oe,createCallExpression:G,createCallChain:ht,createNewExpression:ir,createParenthesizedExpression:xn,createBlock:ar,createVariableStatement:Tn,createExpressionStatement:On,createIfStatement:Ve,createWhileStatement:_r,createForStatement:Rr,createForOfStatement:Mt,createVariableDeclaration:Vn,createVariableDeclarationList:Mn}=f,Jt,xt,Qe,Wn,nn,ut,st,Vt,jt,pt,sr,yt,Sn,vt,dn,rt,Wt=!0,on=!1;function or(s,p,m,y,x=!1,N,$,_e=0){var ee;if(N=Bb(s,N),N===6){let le=xr(s,p,m,y,x);return convertToJson(le,(ee=le.statements[0])==null?void 0:ee.expression,le.parseDiagnostics,!1,void 0),le.referencedFiles=Ot,le.typeReferenceDirectives=Ot,le.libReferenceDirectives=Ot,le.amdDependencies=Ot,le.hasNoDefaultLib=!1,le.pragmas=wy,le}Gn(s,p,m,y,N,_e);let K=Ur(m,x,N,$||kh,_e);return Yn(),K}e.parseSourceFile=or;function vr(s,p){Gn("",s,p,void 0,1,0),U();let m=Oi(!0),y=u()===1&&!st.length;return Yn(),y?m:void 0}e.parseIsolatedEntityName=vr;function xr(s,p,m=2,y,x=!1){Gn(s,p,m,y,6,0),xt=rt,U();let N=M(),$,_e;if(u()===1)$=Dt([],N,N),_e=Qt();else{let le;for(;u()!==1;){let De;switch(u()){case 23:De=Y_();break;case 112:case 97:case 106:De=Qt();break;case 41:Y(()=>U()===9&&U()!==59)?De=L_():De=Aa();break;case 9:case 11:if(Y(()=>U()!==59)){De=Kn();break}default:De=Aa();break}le&&Zr(le)?le.push(De):le?le=[le,De]:(le=De,u()!==1&&Ee(A.Unexpected_token))}let Ue=Zr(le)?D(me(le),N):B.checkDefined(le),je=On(Ue);D(je,N),$=Dt([je],N),_e=Qn(1,A.Unexpected_token)}let ee=se(s,2,6,!1,$,_e,xt,Ga);x&&j(ee),ee.nodeCount=sr,ee.identifierCount=Sn,ee.identifiers=yt,ee.parseDiagnostics=Yi(st,ee),Vt&&(ee.jsDocDiagnostics=Yi(Vt,ee));let K=ee;return Yn(),K}e.parseJsonText=xr;function Gn(s,p,m,y,x,N){switch(o=Ct.getNodeConstructor(),h=Ct.getTokenConstructor(),g=Ct.getIdentifierConstructor(),E=Ct.getPrivateIdentifierConstructor(),C=Ct.getSourceFileConstructor(),Jt=fg(s),Qe=p,Wn=m,jt=y,nn=x,ut=sm(x),st=[],vt=0,yt=new Map,Sn=0,sr=0,xt=0,Wt=!0,nn){case 1:case 2:rt=524288;break;case 6:rt=134742016;break;default:rt=0;break}on=!1,t.setText(Qe),t.setOnError(ii),t.setScriptTarget(Wn),t.setLanguageVariant(ut),t.setScriptKind(nn),t.setJSDocParsingMode(N)}function Yn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,Wn=void 0,jt=void 0,nn=void 0,ut=void 0,xt=0,st=void 0,Vt=void 0,vt=0,yt=void 0,dn=void 0,Wt=!0}function Ur(s,p,m,y,x){let N=_v(Jt);N&&(rt|=33554432),xt=rt,U();let $=kn(0,Zt);B.assert(u()===1);let _e=Be(),ee=Ne(Qt(),_e),K=se(Jt,s,m,N,$,ee,xt,y);return cv(K,Qe),lv(K,le),K.commentDirectives=t.getCommentDirectives(),K.nodeCount=sr,K.identifierCount=Sn,K.identifiers=yt,K.parseDiagnostics=Yi(st,K),K.jsDocParsingMode=x,Vt&&(K.jsDocDiagnostics=Yi(Vt,K)),p&&j(K),K;function le(Ue,je,De){st.push(ja(Jt,Qe,Ue,je,De))}}let Hn=!1;function Ne(s,p){if(!p)return s;B.assert(!s.jsDoc);let m=Dy(j2(s,Qe),y=>us.parseJSDocComment(s,y.pos,y.end-y.pos));return m.length&&(s.jsDoc=m),Hn&&(Hn=!1,s.flags|=536870912),s}function Tr(s){let p=jt,m=gl.createSyntaxCursor(s);jt={currentNode:le};let y=[],x=st;st=[];let N=0,$=ee(s.statements,0);for(;$!==-1;){let Ue=s.statements[N],je=s.statements[$];Pn(y,s.statements,N,$),N=K(s.statements,$);let De=Jp(x,un=>un.start>=Ue.pos),Yt=De>=0?Jp(x,un=>un.start>=je.pos,De):-1;De>=0&&Pn(st,x,De,Yt>=0?Yt:void 0),hn(()=>{let un=rt;for(rt|=65536,t.resetTokenState(je.pos),U();u()!==1;){let fr=t.getTokenFullStart(),dr=ha(0,Zt);if(y.push(dr),fr===t.getTokenFullStart()&&U(),N>=0){let Ht=s.statements[N];if(dr.end===Ht.pos)break;dr.end>Ht.pos&&(N=K(s.statements,N+1))}}rt=un},2),$=N>=0?ee(s.statements,N):-1}if(N>=0){let Ue=s.statements[N];Pn(y,s.statements,N);let je=Jp(x,De=>De.start>=Ue.pos);je>=0&&Pn(st,x,je)}return jt=p,f.updateSourceFile(s,bn(k(y),s.statements));function _e(Ue){return!(Ue.flags&65536)&&!!(Ue.transformFlags&67108864)}function ee(Ue,je){for(let De=je;De118}function ke(){return u()===80?!0:u()===127&&Ce()||u()===135&&Ze()?!1:u()>118}function L(s,p,m=!0){return u()===s?(m&&U(),!0):(p?Ee(p):Ee(A._0_expected,_t(s)),!1)}let gt=Object.keys(vf).filter(s=>s.length>2);function St(s){if(ah(s)){at(Qr(Qe,s.template.pos),s.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=et(s)?Nn(s):void 0;if(!p||!Og(p,Wn)){Ee(A._0_expected,_t(27));return}let m=Qr(Qe,s.pos);switch(p){case"const":case"let":case"var":at(m,s.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":at(m,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":Lt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let y=rl(p,gt,kt)??yn(p);if(y){at(m,s.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,y);return}u()!==0&&at(m,s.end,A.Unexpected_keyword_or_identifier)}function Lt(s,p,m){u()===m?Ee(p):Ee(s,t.getTokenValue())}function yn(s){for(let p of gt)if(s.length>p.length+2&&cl(s,p))return`${p} ${s.slice(p.length)}`}function Vl(s,p,m){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!cr()){m?Ee(A._0_expected,_t(27)):Ee(A.Expected_for_property_initializer);return}if(!fa()){if(m){Ee(A._0_expected,_t(27));return}St(s)}}function zs(s){return u()===s?(qe(),!0):(B.assert(Up(s)),Ee(A._0_expected,_t(s)),!1)}function qr(s,p,m,y){if(u()===p){U();return}let x=Ee(A._0_expected,_t(p));m&&x&&Zc(x,ja(Jt,Qe,y,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_t(s),_t(p)))}function Je(s){return u()===s?(U(),!0):!1}function mt(s){if(u()===s)return Qt()}function Wl(s){if(u()===s)return Yl()}function Qn(s,p,m){return mt(s)||an(s,!1,p||A._0_expected,m||_t(s))}function Gl(s){let p=Wl(s);return p||(B.assert(Up(s)),an(s,!1,A._0_expected,_t(s)))}function Qt(){let s=M(),p=u();return U(),D(he(p),s)}function Yl(){let s=M(),p=u();return qe(),D(he(p),s)}function cr(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function fa(){return cr()?(u()===27&&U(),!0):!1}function rn(){return fa()||L(27)}function Dt(s,p,m,y){let x=k(s,y);return ta(x,p,m??t.getTokenFullStart()),x}function D(s,p,m){return ta(s,p,m??t.getTokenFullStart()),rt&&(s.flags|=rt),on&&(on=!1,s.flags|=262144),s}function an(s,p,m,...y){p?wn(t.getTokenFullStart(),0,m,...y):m&&Ee(m,...y);let x=M(),N=s===80?re("",void 0):Kd(s)?f.createTemplateLiteralLikeNode(s,"","",void 0):s===9?v("",void 0):s===11?w("",void 0):s===282?f.createMissingDeclaration():he(s);return D(N,x)}function zr(s){let p=yt.get(s);return p===void 0&&yt.set(s,p=s),p}function lr(s,p,m){if(s){Sn++;let _e=M(),ee=u(),K=zr(t.getTokenValue()),le=t.hasExtendedUnicodeEscape();return Oe(),D(re(K,ee,le),_e)}if(u()===81)return Ee(m||A.Private_identifiers_are_not_allowed_outside_class_bodies),lr(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return lr(!0);Sn++;let y=u()===1,x=t.isReservedWord(),N=t.getTokenText(),$=x?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return an(80,y,p||$,N)}function r_(s){return lr(ze(),void 0,s)}function wt(s,p){return lr(ke(),s,p)}function Rt(s){return lr(bt(u()),s)}function ai(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),lr(bt(u()))}function Fr(){return bt(u())||u()===11||u()===9}function Fs(){return bt(u())||u()===11}function Hl(s){if(u()===11||u()===9){let p=Kn();return p.text=zr(p.text),p}return s&&u()===23?Xl():u()===81?da():Rt()}function Vr(){return Hl(!0)}function Xl(){let s=M();L(23);let p=ft(At);return L(24),D(f.createComputedPropertyName(p),s)}function da(){let s=M(),p=be(zr(t.getTokenValue()));return U(),D(p,s)}function _i(s){return u()===s&&de(Vs)}function i_(){return U(),t.hasPrecedingLineBreak()?!1:ur()}function Vs(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?Y(Gs):u()===156?Y($l):Ii();case 90:return Gs();case 126:case 139:case 153:return U(),ur();default:return i_()}}function Ii(){return u()===60||u()!==42&&u()!==130&&u()!==19&&ur()}function $l(){return U(),Ii()}function Ws(){return $r(u())&&de(Vs)}function ur(){return u()===23||u()===19||u()===42||u()===26||Fr()}function Gs(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&Y(Qu)||u()===134&&Y(X_)}function si(s,p){if(o_(s))return!0;switch(s){case 0:case 1:case 3:return!(u()===27&&p)&&$_();case 2:return u()===84||u()===90;case 4:return Y(bo);case 5:return Y(Cc)||u()===27&&!p;case 6:return u()===23||Fr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return Fr()}case 18:return Fr();case 9:return u()===23||u()===26||Fr();case 24:return Fs();case 7:return u()===19?Y(Ys):p?ke()&&!__():I_()&&!__();case 8:return es();case 10:return u()===28||u()===26||es();case 19:return u()===103||u()===87||ke();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||Ar();case 16:return va(!1);case 17:return va(!0);case 20:case 21:return u()===28||Wr();case 22:return jc();case 23:return u()===161&&Y(tp)?!1:bt(u());case 13:return bt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s,"Non-exhaustive case in 'isListElement'.")}}function Ys(){if(B.assert(u()===19),U()===20){let s=U();return s===28||s===19||s===96||s===119}return!0}function ma(){return U(),ke()}function a_(){return U(),bt(u())}function Ql(){return U(),dg(u())}function __(){return u()===119||u()===96?Y(Hs):!1}function Hs(){return U(),Ar()}function Xs(){return U(),Wr()}function wr(s){if(u()===1)return!0;switch(s){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return Kl();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&Y(os);default:return!1}}function Kl(){return!!(cr()||J_(u())||u()===39)}function s_(){B.assert(vt,"Missing parsing context");for(let s=0;s<26;s++)if(vt&1<=0)}function tu(s){return s===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function jn(){let s=Dt([],M());return s.isMissingList=!0,s}function nu(s){return!!s.isMissingList}function kr(s,p,m,y){if(L(m)){let x=Kt(s,p);return L(y),x}return jn()}function Oi(s,p){let m=M(),y=s?Rt(p):wt(p);for(;Je(25)&&u()!==30;)y=D(f.createQualifiedName(y,ya(s,!1,!0)),m);return y}function d_(s,p){return D(f.createQualifiedName(s,p),s.pos)}function ya(s,p,m){if(t.hasPrecedingLineBreak()&&bt(u())&&Y(Ca))return an(80,!0,A.Identifier_expected);if(u()===81){let y=da();return p?y:an(80,!0,A.Identifier_expected)}return s?m?Rt():ai():wt()}function m_(s){let p=M(),m=[],y;do y=iu(s),m.push(y);while(y.literal.kind===17);return Dt(m,p)}function to(s){let p=M();return D(f.createTemplateExpression(ro(s),m_(s)),p)}function h_(){let s=M();return D(f.createTemplateLiteralType(ro(!1),no()),s)}function no(){let s=M(),p=[],m;do m=ru(),p.push(m);while(m.literal.kind===17);return Dt(p,s)}function ru(){let s=M();return D(f.createTemplateLiteralTypeSpan(ct(),y_(!1)),s)}function y_(s){return u()===20?(Nt(s),ga()):Qn(18,A._0_expected,_t(20))}function iu(s){let p=M();return D(f.createTemplateSpan(ft(At),y_(s)),p)}function Kn(){return Mi(u())}function ro(s){!s&&t.getTokenFlags()&26656&&Nt(!1);let p=Mi(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function ga(){let s=Mi(u());return B.assert(s.kind===17||s.kind===18,"Template fragment has wrong token kind"),s}function io(s){let p=s===15||s===18,m=t.getTokenText();return m.substring(1,m.length-(t.isUnterminated()?0:p?1:2))}function Mi(s){let p=M(),m=Kd(s)?f.createTemplateLiteralLikeNode(s,t.getTokenValue(),io(s),t.getTokenFlags()&7176):s===9?v(t.getTokenValue(),t.getNumericLiteralFlags()):s===11?w(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):_2(s)?J(s,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(m.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(m.isUnterminated=!0),U(),D(m,p)}function g_(){return Oi(!0,A.Type_expected)}function oi(){if(!t.hasPrecedingLineBreak()&&Et()===30)return kr(20,ct,30,32)}function ba(){let s=M();return D(f.createTypeReferenceNode(g_(),oi()),s)}function b_(s){switch(s.kind){case 183:return ea(s.typeName);case 184:case 185:{let{parameters:p,type:m}=s;return nu(p)||b_(m)}case 196:return b_(s.type);default:return!1}}function au(s){return U(),D(f.createTypePredicateNode(void 0,s,ct()),s.pos)}function ao(){let s=M();return U(),D(f.createThisTypeNode(),s)}function _o(){let s=M();return U(),D(f.createJSDocAllType(),s)}function _u(){let s=M();return U(),D(f.createJSDocNonNullableType(Do(),!1),s)}function so(){let s=M();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?D(f.createJSDocUnknownType(),s):D(f.createJSDocNullableType(ct(),!1),s)}function su(){let s=M(),p=Be();if(de(qc)){let m=pr(36),y=Ln(59,!1);return Ne(D(f.createJSDocFunctionType(m,y),s),p)}return D(f.createTypeReferenceNode(Rt(),void 0),s)}function oo(){let s=M(),p;return(u()===110||u()===105)&&(p=Rt(),L(59)),D(f.createParameterDeclaration(void 0,void 0,p,void 0,Ji(),void 0),s)}function Ji(){t.setSkipJsDocLeadingAsterisks(!0);let s=M();if(Je(144)){let y=f.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:qe()}return t.setSkipJsDocLeadingAsterisks(!1),D(y,s)}let p=Je(26),m=P_();return t.setSkipJsDocLeadingAsterisks(!1),p&&(m=D(f.createJSDocVariadicType(m),s)),u()===64?(U(),D(f.createJSDocOptionalType(m),s)):m}function ou(){let s=M();L(114);let p=Oi(!0),m=t.hasPrecedingLineBreak()?void 0:Ia();return D(f.createTypeQueryNode(p,m),s)}function co(){let s=M(),p=Un(!1,!0),m=wt(),y,x;Je(96)&&(Wr()||!Ar()?y=ct():x=R_());let N=Je(64)?ct():void 0,$=f.createTypeParameterDeclaration(p,m,y,N);return $.expression=x,D($,s)}function En(){if(u()===30)return kr(19,co,30,32)}function va(s){return u()===26||es()||$r(u())||u()===60||Wr(!s)}function lo(s){let p=di(A.Private_identifiers_cannot_be_used_as_parameters);return N2(p)===0&&!qt(s)&&$r(u())&&U(),p}function uo(){return ze()||u()===23||u()===19}function v_(s){return x_(s)}function po(s){return x_(s,!1)}function x_(s,p=!0){let m=M(),y=Be(),x=s?z(()=>Un(!0)):V(()=>Un(!0));if(u()===110){let ee=f.createParameterDeclaration(x,void 0,lr(!0),void 0,Er(),void 0),K=pf(x);return K&&mn(K,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ne(D(ee,m),y)}let N=Wt;Wt=!1;let $=mt(26);if(!p&&!uo())return;let _e=Ne(D(f.createParameterDeclaration(x,$,lo(x),mt(58),Er(),Cr()),m),y);return Wt=N,_e}function Ln(s,p){if(fo(s,p))return Sr(P_)}function fo(s,p){return s===39?(L(s),!0):Je(59)?!0:p&&u()===39?(Ee(A._0_expected,_t(59)),U(),!0):!1}function xa(s,p){let m=Ce(),y=Ze();Xe(!!(s&1)),ot(!!(s&2));let x=s&32?Kt(17,oo):Kt(16,()=>p?v_(y):po(y));return Xe(m),ot(y),x}function pr(s){if(!L(21))return jn();let p=xa(s,!0);return L(22),p}function ji(){Je(28)||rn()}function mo(s){let p=M(),m=Be();s===180&&L(105);let y=En(),x=pr(4),N=Ln(59,!0);ji();let $=s===179?f.createCallSignature(y,x,N):f.createConstructSignature(y,x,N);return Ne(D($,p),m)}function ho(){return u()===23&&Y(ci)}function ci(){if(U(),u()===26||u()===24)return!0;if($r(u())){if(U(),ke())return!0}else if(ke())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function yo(s,p,m){let y=kr(16,()=>v_(!1),23,24),x=Er();ji();let N=f.createIndexSignature(m,y,x);return Ne(D(N,s),p)}function go(s,p,m){let y=Vr(),x=mt(58),N;if(u()===21||u()===30){let $=En(),_e=pr(4),ee=Ln(59,!0);N=f.createMethodSignature(m,y,x,$,_e,ee)}else{let $=Er();N=f.createPropertySignature(m,y,x,$),u()===64&&(N.initializer=Cr())}return ji(),Ne(D(N,s),p)}function bo(){if(u()===21||u()===30||u()===139||u()===153)return!0;let s=!1;for(;$r(u());)s=!0,U();return u()===23?!0:(Fr()&&(s=!0,U()),s?u()===21||u()===30||u()===58||u()===59||u()===28||cr():!1)}function T_(){if(u()===21||u()===30)return mo(179);if(u()===105&&Y(Li))return mo(180);let s=M(),p=Be(),m=Un(!1);return _i(139)?Dr(s,p,m,177,4):_i(153)?Dr(s,p,m,178,4):ho()?yo(s,p,m):go(s,p,m)}function Li(){return U(),u()===21||u()===30}function cu(){return U()===25}function S_(){switch(U()){case 21:case 30:case 25:return!0}return!1}function lu(){let s=M();return D(f.createTypeLiteralNode(w_()),s)}function w_(){let s;return L(19)?(s=kn(4,T_),L(20)):s=jn(),s}function uu(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&ma()&&U()===103)}function vo(){let s=M(),p=Rt();L(103);let m=ct();return D(f.createTypeParameterDeclaration(void 0,p,m,void 0),s)}function pu(){let s=M();L(19);let p;(u()===148||u()===40||u()===41)&&(p=Qt(),p.kind!==148&&L(148)),L(23);let m=vo(),y=Je(130)?ct():void 0;L(24);let x;(u()===58||u()===40||u()===41)&&(x=Qt(),x.kind!==58&&L(58));let N=Er();rn();let $=kn(4,T_);return L(20),D(f.createMappedTypeNode(p,m,y,x,N,$),s)}function k_(){let s=M();if(Je(26))return D(f.createRestTypeNode(ct()),s);let p=ct();if(yh(p)&&p.pos===p.type.pos){let m=f.createOptionalTypeNode(p.type);return bn(m,p),m.flags=p.flags,m}return p}function xo(){return U()===59||u()===58&&U()===59}function To(){return u()===26?bt(U())&&xo():bt(u())&&xo()}function fu(){if(Y(To)){let s=M(),p=Be(),m=mt(26),y=Rt(),x=mt(58);L(59);let N=k_(),$=f.createNamedTupleMember(m,y,x,N);return Ne(D($,s),p)}return k_()}function So(){let s=M();return D(f.createTupleTypeNode(kr(21,fu,23,24)),s)}function du(){let s=M();L(21);let p=ct();return L(22),D(f.createParenthesizedType(p),s)}function wo(){let s;if(u()===128){let p=M();U();let m=D(he(128),p);s=Dt([m],p)}return s}function ko(){let s=M(),p=Be(),m=wo(),y=Je(105);B.assert(!m||y,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let x=En(),N=pr(4),$=Ln(39,!1),_e=y?f.createConstructorTypeNode(m,x,N,$):f.createFunctionTypeNode(x,N,$);return Ne(D(_e,s),p)}function E_(){let s=Qt();return u()===25?void 0:s}function Eo(s){let p=M();s&&U();let m=u()===112||u()===97||u()===106?Qt():Mi(u());return s&&(m=D(f.createPrefixUnaryExpression(41,m),p)),D(f.createLiteralTypeNode(m),p)}function Ao(){return U(),u()===102}function Co(){xt|=4194304;let s=M(),p=Je(114);L(102),L(21);let m=ct(),y;if(Je(28)){let $=t.getTokenStart();L(19);let _e=u();if(_e===118||_e===132?U():Ee(A._0_expected,_t(118)),L(59),y=cs(_e,!0),!L(20)){let ee=Ki(st);ee&&ee.code===A._0_expected.code&&Zc(ee,ja(Jt,Qe,$,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}L(22);let x=Je(25)?g_():void 0,N=oi();return D(f.createImportTypeNode(m,y,x,N,p),s)}function A_(){return U(),u()===9||u()===10}function Do(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return de(E_)||ba();case 67:t.reScanAsteriskEqualsToken();case 42:return _o();case 61:t.reScanQuestionToken();case 58:return so();case 100:return su();case 54:return _u();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Eo();case 41:return Y(A_)?Eo(!0):ba();case 116:return Qt();case 110:{let s=ao();return u()===142&&!t.hasPrecedingLineBreak()?au(s):s}case 114:return Y(Ao)?Co():ou();case 19:return Y(uu)?pu():lu();case 23:return So();case 21:return du();case 102:return Co();case 131:return Y(Ca)?Lo():ba();case 16:return h_();default:return ba()}}function Wr(s){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!s;case 41:return!s&&Y(A_);case 21:return!s&&Y(mu);default:return ke()}}function mu(){return U(),u()===22||va(!1)||Wr()}function Po(){let s=M(),p=Do();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=D(f.createJSDocNonNullableType(p,!0),s);break;case 58:if(Y(Xs))return p;U(),p=D(f.createJSDocNullableType(p,!0),s);break;case 23:if(L(23),Wr()){let m=ct();L(24),p=D(f.createIndexedAccessTypeNode(p,m),s)}else L(24),p=D(f.createArrayTypeNode(p),s);break;default:return p}return p}function No(s){let p=M();return L(s),D(f.createTypeOperatorNode(s,Mo()),p)}function Io(){if(Je(96)){let s=Jn(ct);if(Ye()||u()!==58)return s}}function hu(){let s=M(),p=wt(),m=de(Io),y=f.createTypeParameterDeclaration(void 0,p,m);return D(y,s)}function Oo(){let s=M();return L(140),D(f.createInferTypeNode(hu()),s)}function Mo(){let s=u();switch(s){case 143:case 158:case 148:return No(s);case 140:return Oo()}return Sr(Po)}function Jo(s){if(D_()){let p=ko(),m;return Wf(p)?m=s?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:m=s?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,mn(p,m),p}}function Ta(s,p,m){let y=M(),x=s===52,N=Je(s),$=N&&Jo(x)||p();if(u()===s||N){let _e=[$];for(;Je(s);)_e.push(Jo(x)||p());$=D(m(Dt(_e,y)),y)}return $}function yu(){return Ta(51,Mo,f.createIntersectionTypeNode)}function C_(){return Ta(52,yu,f.createUnionTypeNode)}function gu(){return U(),u()===105}function D_(){return u()===30||u()===21&&Y(bu)?!0:u()===105||u()===128&&Y(gu)}function jo(){if($r(u())&&Un(!1),ke()||u()===110)return U(),!0;if(u()===23||u()===19){let s=st.length;return di(),s===st.length}return!1}function bu(){return U(),!!(u()===22||u()===26||jo()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function P_(){let s=M(),p=ke()&&de(N_),m=ct();return p?D(f.createTypePredicateNode(void 0,p,m),s):m}function N_(){let s=wt();if(u()===142&&!t.hasPrecedingLineBreak())return U(),s}function Lo(){let s=M(),p=Qn(131),m=u()===110?ao():wt(),y=Je(142)?ct():void 0;return D(f.createTypePredicateNode(p,m,y),s)}function ct(){if(rt&81920)return Pt(81920,ct);if(D_())return ko();let s=M(),p=C_();if(!Ye()&&!t.hasPrecedingLineBreak()&&Je(96)){let m=Jn(ct);L(58);let y=Sr(ct);L(59);let x=Sr(ct);return D(f.createConditionalTypeNode(p,m,y,x),s)}return p}function Er(){return Je(59)?ct():void 0}function I_(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Y(S_);default:return ke()}}function Ar(){if(I_())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return j_()?!0:ke()}}function Ro(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&Ar()}function At(){let s=$e();s&&Ke(!1);let p=M(),m=Ut(!0),y;for(;y=mt(28);)m=wa(m,y,Ut(!0),p);return s&&Ke(!0),m}function Cr(){return Je(64)?Ut(!0):void 0}function Ut(s){if(vu())return xu();let p=Tu(s)||zo(s);if(p)return p;let m=M(),y=Be(),x=Sa(0);return x.kind===80&&u()===39?O_(m,x,s,y,void 0):Va(x)&&L1(Fe())?wa(x,Qt(),Ut(s),m):Wo(x,m,s)}function vu(){return u()===127?Ce()?!0:Y(hc):!1}function Uo(){return U(),!t.hasPrecedingLineBreak()&&ke()}function xu(){let s=M();return U(),!t.hasPrecedingLineBreak()&&(u()===42||Ar())?D(f.createYieldExpression(mt(42),Ut(!0)),s):D(f.createYieldExpression(void 0,void 0),s)}function O_(s,p,m,y,x){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=f.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);D(N,p.pos);let $=Dt([N],N.pos,N.end),_e=Qn(39),ee=Vo(!!x,m),K=f.createArrowFunction(x,void 0,$,void 0,_e,ee);return Ne(D(K,s),y)}function Tu(s){let p=Su();if(p!==0)return p===1?M_(!0,!0):de(()=>qo(s))}function Su(){return u()===21||u()===30||u()===134?Y(Bo):u()===39?1:0}function Bo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let s=u(),p=U();if(s===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if($r(p)&&p!==134&&Y(ma))return U()===130?0:1;if(!ke()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(s===30),!ke()&&u()!==87?0:ut===1?Y(()=>{Je(87);let y=U();if(y===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(y===28||y===64)return!0;return!1})?1:0:2}function qo(s){let p=t.getTokenStart();if(dn!=null&&dn.has(p))return;let m=M_(!1,s);return m||(dn||(dn=new Set)).add(p),m}function zo(s){if(u()===134&&Y(Fo)===1){let p=M(),m=Be(),y=is(),x=Sa(0);return O_(p,x,s,m,y)}}function Fo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let s=Sa(0);if(!t.hasPrecedingLineBreak()&&s.kind===80&&u()===39)return 1}return 0}function M_(s,p){let m=M(),y=Be(),x=is(),N=qt(x,nl)?2:0,$=En(),_e;if(L(21)){if(s)_e=xa(N,s);else{let fr=xa(N,s);if(!fr)return;_e=fr}if(!L(22)&&!s)return}else{if(!s)return;_e=jn()}let ee=u()===59,K=Ln(59,!1);if(K&&!s&&b_(K))return;let le=K;for(;(le==null?void 0:le.kind)===196;)le=le.type;let Ue=le&&gh(le);if(!s&&u()!==39&&(Ue||u()!==19))return;let je=u(),De=Qn(39),Yt=je===39||je===19?Vo(qt(x,nl),p):wt();if(!p&&ee&&u()!==59)return;let un=f.createArrowFunction(x,$,_e,K,De,Yt);return Ne(D(un,m),y)}function Vo(s,p){if(u()===19)return Ri(s?2:0);if(u()!==27&&u()!==100&&u()!==86&&$_()&&!Ro())return Ri(16|(s?2:0));let m=Wt;Wt=!1;let y=s?z(()=>Ut(p)):V(()=>Ut(p));return Wt=m,y}function Wo(s,p,m){let y=mt(58);if(!y)return s;let x;return D(f.createConditionalExpression(s,y,Pt(a,()=>Ut(!1)),x=Qn(59),nf(x)?Ut(m):an(80,!1,A._0_expected,_t(59))),p)}function Sa(s){let p=M(),m=R_();return Go(s,m,p)}function J_(s){return s===103||s===165}function Go(s,p,m){for(;;){Fe();let y=Bp(u());if(!(u()===43?y>=s:y>s)||u()===103&&ye())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();U(),p=N===152?wu(p,ct()):ku(p,ct())}}else p=wa(p,Qt(),Sa(y),m)}return p}function j_(){return ye()&&u()===103?!1:Bp(u())>0}function wu(s,p){return D(f.createSatisfiesExpression(s,p),s.pos)}function wa(s,p,m,y){return D(f.createBinaryExpression(s,p,m),y)}function ku(s,p){return D(f.createAsExpression(s,p),s.pos)}function L_(){let s=M();return D(f.createPrefixUnaryExpression(u(),Me(Gr)),s)}function Eu(){let s=M();return D(f.createDeleteExpression(Me(Gr)),s)}function Yo(){let s=M();return D(f.createTypeOfExpression(Me(Gr)),s)}function Au(){let s=M();return D(f.createVoidExpression(Me(Gr)),s)}function Ho(){return u()===135?Ze()?!0:Y(hc):!1}function Cu(){let s=M();return D(f.createAwaitExpression(Me(Gr)),s)}function R_(){if(Xo()){let m=M(),y=$o();return u()===43?Go(Bp(u()),y,m):y}let s=u(),p=Gr();if(u()===43){let m=Qr(Qe,p.pos),{end:y}=p;p.kind===216?at(m,y,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(Up(s)),at(m,y,A.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(s)))}return p}function Gr(){switch(u()){case 40:case 41:case 55:case 54:return L_();case 91:return Eu();case 114:return Yo();case 116:return Au();case 30:return ut===1?ui(!0,void 0,void 0,!0):Mu();case 135:if(Ho())return Cu();default:return $o()}}function Xo(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ut!==1)return!1;default:return!0}}function $o(){if(u()===46||u()===47){let p=M();return D(f.createPrefixUnaryExpression(u(),Me(li)),p)}else if(ut===1&&u()===30&&Y(Ql))return ui(!0);let s=li();if(B.assert(Va(s)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),D(f.createPostfixUnaryExpression(s,p),s.pos)}return s}function li(){let s=M(),p;return u()===102?Y(Li)?(xt|=4194304,p=Qt()):Y(cu)?(U(),U(),p=D(f.createMetaProperty(102,Rt()),s),xt|=8388608):p=U_():p=u()===108?B_():U_(),pi(s,p)}function U_(){let s=M(),p=_c();return Ea(s,p,!0)}function B_(){let s=M(),p=Qt();if(u()===30){let m=M(),y=de(W_);y!==void 0&&(at(m,M(),A.super_may_not_use_type_arguments),ln()||(p=f.createExpressionWithTypeArguments(p,y)))}return u()===21||u()===25||u()===23?p:(Qn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),D(ae(p,ya(!0,!0,!0)),s))}function ui(s,p,m,y=!1){let x=M(),N=Pu(s),$;if(N.kind===286){let _e=Qo(N),ee,K=_e[_e.length-1];if((K==null?void 0:K.kind)===284&&!vi(K.openingElement.tagName,K.closingElement.tagName)&&vi(N.tagName,K.closingElement.tagName)){let le=K.children.end,Ue=D(f.createJsxElement(K.openingElement,K.children,D(f.createJsxClosingElement(D(re(""),le,le)),le,le)),K.openingElement.pos,le);_e=Dt([..._e.slice(0,_e.length-1),Ue],_e.pos,le),ee=K.closingElement}else ee=Ou(N,s),vi(N.tagName,ee.tagName)||(m&&_f(m)&&vi(ee.tagName,m.tagName)?mn(N.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,ys(Qe,N.tagName)):mn(ee.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,ys(Qe,N.tagName)));$=D(f.createJsxElement(N,_e,ee),x)}else N.kind===289?$=D(f.createJsxFragment(N,Qo(N),nc(s)),x):(B.assert(N.kind===285),$=N);if(!y&&s&&u()===30){let _e=typeof p>"u"?$.pos:p,ee=de(()=>ui(!0,_e));if(ee){let K=an(28,!1);return cm(K,ee.pos,0),at(Qr(Qe,_e),ee.end,A.JSX_expressions_must_have_one_parent_element),D(f.createBinaryExpression($,K,ee),x)}}return $}function Du(){let s=M(),p=f.createJsxText(t.getTokenValue(),pt===13);return pt=t.scanJsxToken(),D(p,s)}function q_(s,p){switch(p){case 1:if(E6(s))mn(s,A.JSX_fragment_has_no_corresponding_closing_tag);else{let m=s.tagName,y=Math.min(Qr(Qe,m.pos),m.end);at(y,m.end,A.JSX_element_0_has_no_corresponding_closing_tag,ys(Qe,s.tagName))}return;case 31:case 7:return;case 12:case 13:return Du();case 19:return ec(!1);case 30:return ui(!1,void 0,s);default:return B.assertNever(p)}}function Qo(s){let p=[],m=M(),y=vt;for(vt|=16384;;){let x=q_(s,pt=t.reScanJsxToken());if(!x||(p.push(x),_f(s)&&(x==null?void 0:x.kind)===284&&!vi(x.openingElement.tagName,x.closingElement.tagName)&&vi(s.tagName,x.closingElement.tagName)))break}return vt=y,Dt(p,m)}function z_(){let s=M();return D(f.createJsxAttributes(kn(13,Nu)),s)}function Pu(s){let p=M();if(L(30),u()===32)return $n(),D(f.createJsxOpeningFragment(),p);let m=Ko(),y=rt&524288?void 0:Ia(),x=z_(),N;return u()===32?($n(),N=f.createJsxOpeningElement(m,y,x)):(L(44),L(32,void 0,!1)&&(s?U():$n()),N=f.createJsxSelfClosingElement(m,y,x)),D(N,p)}function Ko(){let s=M(),p=Zo();if(dh(p))return p;let m=p;for(;Je(25);)m=D(ae(m,ya(!0,!1,!1)),s);return m}function Zo(){let s=M();Gt();let p=u()===110,m=ai();return Je(59)?(Gt(),D(f.createJsxNamespacedName(m,ai()),s)):p?D(f.createToken(110),s):m}function ec(s){let p=M();if(!L(19))return;let m,y;return u()!==20&&(s||(m=mt(26)),y=At()),s?L(20):L(20,void 0,!1)&&$n(),D(f.createJsxExpression(m,y),p)}function Nu(){if(u()===19)return Iu();let s=M();return D(f.createJsxAttribute(F_(),tc()),s)}function tc(){if(u()===64){if(Ni()===11)return Kn();if(u()===19)return ec(!0);if(u()===30)return ui(!0);Ee(A.or_JSX_element_expected)}}function F_(){let s=M();Gt();let p=ai();return Je(59)?(Gt(),D(f.createJsxNamespacedName(p,ai()),s)):p}function Iu(){let s=M();L(19),L(26);let p=At();return L(20),D(f.createJsxSpreadAttribute(p),s)}function Ou(s,p){let m=M();L(31);let y=Ko();return L(32,void 0,!1)&&(p||!vi(s.tagName,y)?U():$n()),D(f.createJsxClosingElement(y),m)}function nc(s){let p=M();return L(31),L(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(s?U():$n()),D(f.createJsxJsxClosingFragment(),p)}function Mu(){B.assert(ut!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let s=M();L(30);let p=ct();L(32);let m=Gr();return D(f.createTypeAssertion(p,m),s)}function rc(){return U(),bt(u())||u()===23||ln()}function Ju(){return u()===29&&Y(rc)}function ka(s){if(s.flags&64)return!0;if(sl(s)){let p=s.expression;for(;sl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;sl(s);)s.flags|=64,s=s.expression;return!0}}return!1}function ju(s,p,m){let y=ya(!0,!0,!0),x=m||ka(p),N=x?ve(p,m,y):ae(p,y);if(x&&wi(N.name)&&mn(N.name,A.An_optional_chain_cannot_contain_private_identifiers),ch(p)&&p.typeArguments){let $=p.typeArguments.pos-1,_e=Qr(Qe,p.typeArguments.end)+1;at($,_e,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return D(N,s)}function ic(s,p,m){let y;if(u()===24)y=an(80,!0,A.An_element_access_expression_should_take_an_argument);else{let N=ft(At);wl(N)&&(N.text=zr(N.text)),y=N}L(24);let x=m||ka(p)?oe(p,m,y):X(p,y);return D(x,s)}function Ea(s,p,m){for(;;){let y,x=!1;if(m&&Ju()?(y=Qn(29),x=bt(u())):x=Je(25),x){p=ju(s,p,y);continue}if((y||!$e())&&Je(23)){p=ic(s,p,y);continue}if(ln()){p=!y&&p.kind===233?Rn(s,p.expression,y,p.typeArguments):Rn(s,p,y,void 0);continue}if(!y){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=D(f.createNonNullExpression(p),s);continue}let N=de(W_);if(N){p=D(f.createExpressionWithTypeArguments(p,N),s);continue}}return p}}function ln(){return u()===15||u()===16}function Rn(s,p,m,y){let x=f.createTaggedTemplateExpression(p,y,u()===15?(Nt(!0),Kn()):to(!0));return(m||p.flags&64)&&(x.flags|=64),x.questionDotToken=m,D(x,s)}function pi(s,p){for(;;){p=Ea(s,p,!0);let m,y=mt(29);if(y&&(m=de(W_),ln())){p=Rn(s,p,y,m);continue}if(m||u()===21){!y&&p.kind===233&&(m=p.typeArguments,p=p.expression);let x=V_(),N=y||ka(p)?ht(p,y,m,x):G(p,m,x);p=D(N,s);continue}if(y){let x=an(80,!1,A.Identifier_expected);p=D(ve(p,y,x),s)}break}return p}function V_(){L(21);let s=Kt(11,Ru);return L(22),s}function W_(){if(rt&524288||Et()!==30)return;U();let s=Kt(20,ct);if(Fe()===32)return U(),s&&ac()?s:void 0}function ac(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||j_()||!Ar()}function _c(){switch(u()){case 15:t.getTokenFlags()&26656&&Nt(!1);case 9:case 10:case 11:return Kn();case 110:case 108:case 106:case 112:case 97:return Qt();case 21:return sc();case 23:return Y_();case 19:return Aa();case 134:if(!Y(X_))break;return oc();case 60:return up();case 86:return Nc();case 100:return oc();case 105:return Bu();case 44:case 69:if(He()===14)return Kn();break;case 16:return to(!1);case 81:return da()}return wt(A.Expression_expected)}function sc(){let s=M(),p=Be();L(21);let m=ft(At);return L(22),Ne(D(xn(m),s),p)}function Lu(){let s=M();L(26);let p=Ut(!0);return D(f.createSpreadElement(p),s)}function G_(){return u()===26?Lu():u()===28?D(f.createOmittedExpression(),M()):Ut(!0)}function Ru(){return Pt(a,G_)}function Y_(){let s=M(),p=t.getTokenStart(),m=L(23),y=t.hasPrecedingLineBreak(),x=Kt(15,G_);return qr(23,24,m,p),D(me(x,y),s)}function Uu(){let s=M(),p=Be();if(mt(26)){let le=Ut(!0);return Ne(D(f.createSpreadAssignment(le),s),p)}let m=Un(!0);if(_i(139))return Dr(s,p,m,177,0);if(_i(153))return Dr(s,p,m,178,0);let y=mt(42),x=ke(),N=Vr(),$=mt(58),_e=mt(54);if(y||u()===21||u()===30)return Ec(s,p,m,y,N,$,_e);let ee;if(x&&u()!==59){let le=mt(64),Ue=le?ft(()=>Ut(!0)):void 0;ee=f.createShorthandPropertyAssignment(N,Ue),ee.equalsToken=le}else{L(59);let le=ft(()=>Ut(!0));ee=f.createPropertyAssignment(N,le)}return ee.modifiers=m,ee.questionToken=$,ee.exclamationToken=_e,Ne(D(ee,s),p)}function Aa(){let s=M(),p=t.getTokenStart(),m=L(19),y=t.hasPrecedingLineBreak(),x=Kt(12,Uu,!0);return qr(19,20,m,p),D(O(x,y),s)}function oc(){let s=$e();Ke(!1);let p=M(),m=Be(),y=Un(!1);L(100);let x=mt(42),N=x?1:0,$=qt(y,nl)?2:0,_e=N&&$?Q(fi):N?Xn(fi):$?z(fi):fi(),ee=En(),K=pr(N|$),le=Ln(59,!1),Ue=Ri(N|$);Ke(s);let je=f.createFunctionExpression(y,x,_e,ee,K,le,Ue);return Ne(D(je,p),m)}function fi(){return ze()?r_():void 0}function Bu(){let s=M();if(L(105),Je(25)){let N=Rt();return D(f.createMetaProperty(105,N),s)}let p=M(),m=Ea(p,_c(),!1),y;m.kind===233&&(y=m.typeArguments,m=m.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ys(Qe,m));let x=u()===21?V_():void 0;return D(ir(m,y,x),s)}function Yr(s,p){let m=M(),y=Be(),x=t.getTokenStart(),N=L(19,p);if(N||s){let $=t.hasPrecedingLineBreak(),_e=kn(1,Zt);qr(19,20,N,x);let ee=Ne(D(ar(_e,$),m),y);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),ee}else{let $=jn();return Ne(D(ar($,void 0),m),y)}}function Ri(s,p){let m=Ce();Xe(!!(s&1));let y=Ze();ot(!!(s&2));let x=Wt;Wt=!1;let N=$e();N&&Ke(!1);let $=Yr(!!(s&16),p);return N&&Ke(!0),Wt=x,Xe(m),ot(y),$}function qu(){let s=M(),p=Be();return L(27),Ne(D(f.createEmptyStatement(),s),p)}function cc(){let s=M(),p=Be();L(101);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Zt(),$=Je(93)?Zt():void 0;return Ne(D(Ve(x,N,$),s),p)}function zu(){let s=M(),p=Be();L(92);let m=Zt();L(117);let y=t.getTokenStart(),x=L(21),N=ft(At);return qr(21,22,x,y),Je(27),Ne(D(f.createDoStatement(m,N),s),p)}function lc(){let s=M(),p=Be();L(117);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Zt();return Ne(D(_r(x,N),s),p)}function Fu(){let s=M(),p=Be();L(99);let m=mt(135);L(21);let y;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&Y(Zu)||u()===135&&Y(Q_)?y=Sc(!0):y=Br(At));let x;if(m?L(165):Je(165)){let N=ft(()=>Ut(!0));L(22),x=Mt(m,y,N,Zt())}else if(Je(103)){let N=ft(At);L(22),x=f.createForInStatement(y,N,Zt())}else{L(27);let N=u()!==27&&u()!==22?ft(At):void 0;L(27);let $=u()!==22?ft(At):void 0;L(22),x=Rr(y,N,$,Zt())}return Ne(D(x,s),p)}function H_(s){let p=M(),m=Be();L(s===252?83:88);let y=cr()?void 0:wt();rn();let x=s===252?f.createBreakStatement(y):f.createContinueStatement(y);return Ne(D(x,p),m)}function Vu(){let s=M(),p=Be();L(107);let m=cr()?void 0:ft(At);return rn(),Ne(D(f.createReturnStatement(m),s),p)}function uc(){let s=M(),p=Be();L(118);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Tt(67108864,Zt);return Ne(D(f.createWithStatement(x,N),s),p)}function Wu(){let s=M(),p=Be();L(84);let m=ft(At);L(59);let y=kn(3,Zt);return Ne(D(f.createCaseClause(m,y),s),p)}function pc(){let s=M();L(90),L(59);let p=kn(3,Zt);return D(f.createDefaultClause(p),s)}function Gu(){return u()===84?Wu():pc()}function Yu(){let s=M();L(19);let p=kn(2,Gu);return L(20),D(f.createCaseBlock(p),s)}function fc(){let s=M(),p=Be();L(109),L(21);let m=ft(At);L(22);let y=Yu();return Ne(D(f.createSwitchStatement(m,y),s),p)}function Hu(){let s=M(),p=Be();L(111);let m=t.hasPrecedingLineBreak()?void 0:ft(At);return m===void 0&&(Sn++,m=D(re(""),M())),fa()||St(m),Ne(D(f.createThrowStatement(m),s),p)}function dc(){let s=M(),p=Be();L(113);let m=Yr(!1),y=u()===85?Xu():void 0,x;return(!y||u()===98)&&(L(98,A.catch_or_finally_expected),x=Yr(!1)),Ne(D(f.createTryStatement(m,y,x),s),p)}function Xu(){let s=M();L(85);let p;Je(21)?(p=Na(),L(22)):p=void 0;let m=Yr(!1);return D(f.createCatchClause(p,m),s)}function mc(){let s=M(),p=Be();return L(89),rn(),Ne(D(f.createDebuggerStatement(),s),p)}function $u(){let s=M(),p=Be(),m,y=u()===21,x=ft(At);return et(x)&&Je(59)?m=f.createLabeledStatement(x,Zt()):(fa()||St(x),m=On(x),y&&(p=!1)),Ne(D(m,s),p)}function Ca(){return U(),bt(u())&&!t.hasPrecedingLineBreak()}function Qu(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function X_(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function hc(){return U(),(bt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function yc(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return bc();case 135:return K_();case 120:case 156:return Uo();case 144:case 145:return rp();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let s=u();if(U(),t.hasPrecedingLineBreak())return!1;if(s===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||bt(u());case 95:let p=U();if(p===156&&(p=Y(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Da(){return Y(yc)}function $_(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Da()||Y(S_);case 87:case 95:return Da();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Da()||!Y(Ca);default:return Ar()}}function Ku(){return U(),ze()||u()===19||u()===23}function gc(){return Y(Ku)}function Zu(){return Pa(!0)}function Pa(s){return U(),s&&u()===165?!1:(ze()||u()===19)&&!t.hasPrecedingLineBreak()}function bc(){return Y(Pa)}function Q_(s){return U()===160?Pa(s):!1}function K_(){return Y(Q_)}function Zt(){switch(u()){case 27:return qu();case 19:return Yr(!1);case 115:return qi(M(),Be(),void 0);case 121:if(gc())return qi(M(),Be(),void 0);break;case 135:if(K_())return qi(M(),Be(),void 0);break;case 160:if(bc())return qi(M(),Be(),void 0);break;case 100:return ts(M(),Be(),void 0);case 86:return Ic(M(),Be(),void 0);case 101:return cc();case 92:return zu();case 117:return lc();case 99:return Fu();case 88:return H_(251);case 83:return H_(252);case 107:return Vu();case 118:return uc();case 109:return fc();case 111:return Hu();case 113:case 85:case 98:return dc();case 89:return mc();case 60:return Z_();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Da())return Z_();break}return $u()}function vc(s){return s.kind===138}function Z_(){let s=M(),p=Be(),m=Un(!0);if(qt(m,vc)){let x=ep(s);if(x)return x;for(let N of m)N.flags|=33554432;return Tt(33554432,()=>Ui(s,p,m))}else return Ui(s,p,m)}function ep(s){return Tt(33554432,()=>{let p=o_(vt,s);if(p)return c_(p)})}function Ui(s,p,m){switch(u()){case 115:case 121:case 87:case 160:case 135:return qi(s,p,m);case 100:return ts(s,p,m);case 86:return Ic(s,p,m);case 120:return Lc(s,p,m);case 156:return Rc(s,p,m);case 94:return _s(s,p,m);case 162:case 144:case 145:return hp(s,p,m);case 102:return bp(s,p,m);case 95:switch(U(),u()){case 90:case 64:return Dp(s,p,m);case 130:return gp(s,p,m);default:return Cp(s,p,m)}default:if(m){let y=an(282,!0,A.Declaration_expected);return af(y,s),y.modifiers=m,y}return}}function tp(){return U()===11}function np(){return U(),u()===161||u()===64}function rp(){return U(),!t.hasPrecedingLineBreak()&&(ke()||u()===11)}function Bi(s,p){if(u()!==19){if(s&4){ji();return}if(cr()){rn();return}}return Ri(s,p)}function ip(){let s=M();if(u()===28)return D(f.createOmittedExpression(),s);let p=mt(26),m=di(),y=Cr();return D(f.createBindingElement(p,void 0,m,y),s)}function xc(){let s=M(),p=mt(26),m=ze(),y=Vr(),x;m&&u()!==59?(x=y,y=void 0):(L(59),x=di());let N=Cr();return D(f.createBindingElement(p,y,x,N),s)}function ap(){let s=M();L(19);let p=ft(()=>Kt(9,xc));return L(20),D(f.createObjectBindingPattern(p),s)}function Tc(){let s=M();L(23);let p=ft(()=>Kt(10,ip));return L(24),D(f.createArrayBindingPattern(p),s)}function es(){return u()===19||u()===23||u()===81||ze()}function di(s){return u()===23?Tc():u()===19?ap():r_(s)}function _p(){return Na(!0)}function Na(s){let p=M(),m=Be(),y=di(A.Private_identifiers_are_not_allowed_in_variable_declarations),x;s&&y.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(x=Qt());let N=Er(),$=J_(u())?void 0:Cr(),_e=Vn(y,x,N,$);return Ne(D(_e,p),m)}function Sc(s){let p=M(),m=0;switch(u()){case 115:break;case 121:m|=1;break;case 87:m|=2;break;case 160:m|=4;break;case 135:B.assert(K_()),m|=6,U();break;default:B.fail()}U();let y;if(u()===165&&Y(wc))y=jn();else{let x=ye();xe(s),y=Kt(8,s?Na:_p),xe(x)}return D(Mn(y,m),p)}function wc(){return ma()&&U()===22}function qi(s,p,m){let y=Sc(!1);rn();let x=Tn(m,y);return Ne(D(x,s),p)}function ts(s,p,m){let y=Ze(),x=qn(m);L(100);let N=mt(42),$=x&2048?fi():r_(),_e=N?1:0,ee=x&1024?2:0,K=En();x&32&&ot(!0);let le=pr(_e|ee),Ue=Ln(59,!1),je=Bi(_e|ee,A.or_expected);ot(y);let De=f.createFunctionDeclaration(m,N,$,K,le,Ue,je);return Ne(D(De,s),p)}function sp(){if(u()===137)return L(137);if(u()===11&&Y(U)===21)return de(()=>{let s=Kn();return s.text==="constructor"?s:void 0})}function kc(s,p,m){return de(()=>{if(sp()){let y=En(),x=pr(0),N=Ln(59,!1),$=Bi(0,A.or_expected),_e=f.createConstructorDeclaration(m,x,$);return _e.typeParameters=y,_e.type=N,Ne(D(_e,s),p)}})}function Ec(s,p,m,y,x,N,$,_e){let ee=y?1:0,K=qt(m,nl)?2:0,le=En(),Ue=pr(ee|K),je=Ln(59,!1),De=Bi(ee|K,_e),Yt=f.createMethodDeclaration(m,y,x,N,le,Ue,je,De);return Yt.exclamationToken=$,Ne(D(Yt,s),p)}function ns(s,p,m,y,x){let N=!x&&!t.hasPrecedingLineBreak()?mt(54):void 0,$=Er(),_e=Pt(90112,Cr);Vl(y,$,_e);let ee=f.createPropertyDeclaration(m,y,x||N,$,_e);return Ne(D(ee,s),p)}function Ac(s,p,m){let y=mt(42),x=Vr(),N=mt(58);return y||u()===21||u()===30?Ec(s,p,m,y,x,N,void 0,A.or_expected):ns(s,p,m,x,N)}function Dr(s,p,m,y,x){let N=Vr(),$=En(),_e=pr(0),ee=Ln(59,!1),K=Bi(x),le=y===177?f.createGetAccessorDeclaration(m,N,_e,ee,K):f.createSetAccessorDeclaration(m,N,_e,K);return le.typeParameters=$,Ds(le)&&(le.type=ee),Ne(D(le,s),p)}function Cc(){let s;if(u()===60)return!0;for(;$r(u());){if(s=u(),c2(s))return!0;U()}if(u()===42||(Fr()&&(s=u(),U()),u()===23))return!0;if(s!==void 0){if(!Ti(s)||s===153||s===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return cr()}}return!1}function op(s,p,m){Qn(126);let y=Dc(),x=Ne(D(f.createClassStaticBlockDeclaration(y),s),p);return x.modifiers=m,x}function Dc(){let s=Ce(),p=Ze();Xe(!1),ot(!0);let m=Yr(!1);return Xe(s),ot(p),m}function cp(){if(Ze()&&u()===135){let s=M(),p=wt(A.Expression_expected);U();let m=Ea(s,p,!0);return pi(s,m)}return li()}function Pc(){let s=M();if(!Je(60))return;let p=Pi(cp);return D(f.createDecorator(p),s)}function rs(s,p,m){let y=M(),x=u();if(u()===87&&p){if(!de(i_))return}else{if(m&&u()===126&&Y(zc))return;if(s&&u()===126)return;if(!Ws())return}return D(he(x),y)}function Un(s,p,m){let y=M(),x,N,$,_e=!1,ee=!1,K=!1;if(s&&u()===60)for(;N=Pc();)x=Cn(x,N);for(;$=rs(_e,p,m);)$.kind===126&&(_e=!0),x=Cn(x,$),ee=!0;if(ee&&s&&u()===60)for(;N=Pc();)x=Cn(x,N),K=!0;if(K)for(;$=rs(_e,p,m);)$.kind===126&&(_e=!0),x=Cn(x,$);return x&&Dt(x,y)}function is(){let s;if(u()===134){let p=M();U();let m=D(he(134),p);s=Dt([m],p)}return s}function lp(){let s=M(),p=Be();if(u()===27)return U(),Ne(D(f.createSemicolonClassElement(),s),p);let m=Un(!0,!0,!0);if(u()===126&&Y(zc))return op(s,p,m);if(_i(139))return Dr(s,p,m,177,0);if(_i(153))return Dr(s,p,m,178,0);if(u()===137||u()===11){let y=kc(s,p,m);if(y)return y}if(ho())return yo(s,p,m);if(bt(u())||u()===11||u()===9||u()===42||u()===23)if(qt(m,vc)){for(let x of m)x.flags|=33554432;return Tt(33554432,()=>Ac(s,p,m))}else return Ac(s,p,m);if(m){let y=an(80,!0,A.Declaration_expected);return ns(s,p,m,y,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function up(){let s=M(),p=Be(),m=Un(!0);if(u()===86)return as(s,p,m,231);let y=an(282,!0,A.Expression_expected);return af(y,s),y.modifiers=m,y}function Nc(){return as(M(),Be(),void 0,231)}function Ic(s,p,m){return as(s,p,m,263)}function as(s,p,m,y){let x=Ze();L(86);let N=Oc(),$=En();qt(m,c6)&&ot(!0);let _e=Mc(),ee;L(19)?(ee=dp(),L(20)):ee=jn(),ot(x);let K=y===263?f.createClassDeclaration(m,N,$,_e,ee):f.createClassExpression(m,N,$,_e,ee);return Ne(D(K,s),p)}function Oc(){return ze()&&!pp()?lr(ze()):void 0}function pp(){return u()===119&&Y(a_)}function Mc(){if(jc())return kn(22,Jc)}function Jc(){let s=M(),p=u();B.assert(p===96||p===119),U();let m=Kt(7,fp);return D(f.createHeritageClause(p,m),s)}function fp(){let s=M(),p=li();if(p.kind===233)return p;let m=Ia();return D(f.createExpressionWithTypeArguments(p,m),s)}function Ia(){return u()===30?kr(20,ct,30,32):void 0}function jc(){return u()===96||u()===119}function dp(){return kn(5,lp)}function Lc(s,p,m){L(120);let y=wt(),x=En(),N=Mc(),$=w_(),_e=f.createInterfaceDeclaration(m,y,x,N,$);return Ne(D(_e,s),p)}function Rc(s,p,m){L(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let y=wt(),x=En();L(64);let N=u()===141&&de(E_)||ct();rn();let $=f.createTypeAliasDeclaration(m,y,x,N);return Ne(D($,s),p)}function mp(){let s=M(),p=Be(),m=Vr(),y=ft(Cr);return Ne(D(f.createEnumMember(m,y),s),p)}function _s(s,p,m){L(94);let y=wt(),x;L(19)?(x=Te(()=>Kt(6,mp)),L(20)):x=jn();let N=f.createEnumDeclaration(m,y,x);return Ne(D(N,s),p)}function Uc(){let s=M(),p;return L(19)?(p=kn(1,Zt),L(20)):p=jn(),D(f.createModuleBlock(p),s)}function ss(s,p,m,y){let x=y&32,N=y&8?Rt():wt(),$=Je(25)?ss(M(),!1,void 0,8|x):Uc(),_e=f.createModuleDeclaration(m,N,$,y);return Ne(D(_e,s),p)}function Bc(s,p,m){let y=0,x;u()===162?(x=wt(),y|=2048):(x=Kn(),x.text=zr(x.text));let N;u()===19?N=Uc():rn();let $=f.createModuleDeclaration(m,x,N,y);return Ne(D($,s),p)}function hp(s,p,m){let y=0;if(u()===162)return Bc(s,p,m);if(Je(145))y|=32;else if(L(144),u()===11)return Bc(s,p,m);return ss(s,p,m,y)}function yp(){return u()===149&&Y(qc)}function qc(){return U()===21}function zc(){return U()===19}function os(){return U()===44}function gp(s,p,m){L(130),L(145);let y=wt();rn();let x=f.createNamespaceExportDeclaration(y);return x.modifiers=m,Ne(D(x,s),p)}function bp(s,p,m){L(102);let y=t.getTokenFullStart(),x;ke()&&(x=wt());let N=!1;if((x==null?void 0:x.escapedText)==="type"&&(u()!==161||ke()&&Y(np))&&(ke()||xp())&&(N=!0,x=ke()?wt():void 0),x&&!Hr())return Tp(s,p,m,x,N);let $=mi(x,y,N),_e=Fi(),ee=Fc();rn();let K=f.createImportDeclaration(m,$,_e,ee);return Ne(D(K,s),p)}function mi(s,p,m,y=!1){let x;return(s||u()===42||u()===19)&&(x=Sp(s,p,m,y),L(161)),x}function Fc(){let s=u();if((s===118||s===132)&&!t.hasPrecedingLineBreak())return cs(s)}function vp(){let s=M(),p=bt(u())?Rt():Mi(11);L(59);let m=Ut(!0);return D(f.createImportAttribute(p,m),s)}function cs(s,p){let m=M();p||L(s);let y=t.getTokenStart();if(L(19)){let x=t.hasPrecedingLineBreak(),N=Kt(24,vp,!0);if(!L(20)){let $=Ki(st);$&&$.code===A._0_expected.code&&Zc($,ja(Jt,Qe,y,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return D(f.createImportAttributes(N,x,s),m)}else{let x=Dt([],M(),void 0,!1);return D(f.createImportAttributes(x,!1,s),m)}}function xp(){return u()===42||u()===19}function Hr(){return u()===28||u()===161}function Tp(s,p,m,y,x){L(64);let N=wp();rn();let $=f.createImportEqualsDeclaration(m,x,y,N);return Ne(D($,s),p)}function Sp(s,p,m,y){let x;return(!s||Je(28))&&(y&&t.setSkipJsDocLeadingAsterisks(!0),x=u()===42?kp():Vc(275),y&&t.setSkipJsDocLeadingAsterisks(!1)),D(f.createImportClause(m,s,x),p)}function wp(){return yp()?zi():Oi(!1)}function zi(){let s=M();L(149),L(21);let p=Fi();return L(22),D(f.createExternalModuleReference(p),s)}function Fi(){if(u()===11){let s=Kn();return s.text=zr(s.text),s}else return At()}function kp(){let s=M();L(42),L(130);let p=wt();return D(f.createNamespaceImport(p),s)}function Vc(s){let p=M(),m=s===275?f.createNamedImports(kr(23,Ap,19,20)):f.createNamedExports(kr(23,Ep,19,20));return D(m,p)}function Ep(){let s=Be();return Ne(Wc(281),s)}function Ap(){return Wc(276)}function Wc(s){let p=M(),m=Ti(u())&&!ke(),y=t.getTokenStart(),x=t.getTokenEnd(),N=!1,$,_e=!0,ee=Rt();if(ee.escapedText==="type")if(u()===130){let Ue=Rt();if(u()===130){let je=Rt();bt(u())?(N=!0,$=Ue,ee=le(),_e=!1):($=ee,ee=je,_e=!1)}else bt(u())?($=ee,_e=!1,ee=le()):(N=!0,ee=Ue)}else bt(u())&&(N=!0,ee=le());_e&&u()===130&&($=ee,L(130),ee=le()),s===276&&m&&at(y,x,A.Identifier_expected);let K=s===276?f.createImportSpecifier(N,$,ee):f.createExportSpecifier(N,$,ee);return D(K,p);function le(){return m=Ti(u())&&!ke(),y=t.getTokenStart(),x=t.getTokenEnd(),Rt()}}function hi(s){return D(f.createNamespaceExport(Rt()),s)}function Cp(s,p,m){let y=Ze();ot(!0);let x,N,$,_e=Je(156),ee=M();Je(42)?(Je(130)&&(x=hi(ee)),L(161),N=Fi()):(x=Vc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(L(161),N=Fi()));let K=u();N&&(K===118||K===132)&&!t.hasPrecedingLineBreak()&&($=cs(K)),rn(),ot(y);let le=f.createExportDeclaration(m,_e,x,N,$);return Ne(D(le,s),p)}function Dp(s,p,m){let y=Ze();ot(!0);let x;Je(64)?x=!0:L(90);let N=Ut(!0);rn(),ot(y);let $=f.createExportAssignment(m,x,N);return Ne(D($,s),p)}let Gc;(s=>{s[s.SourceElements=0]="SourceElements",s[s.BlockStatements=1]="BlockStatements",s[s.SwitchClauses=2]="SwitchClauses",s[s.SwitchClauseStatements=3]="SwitchClauseStatements",s[s.TypeMembers=4]="TypeMembers",s[s.ClassMembers=5]="ClassMembers",s[s.EnumMembers=6]="EnumMembers",s[s.HeritageClauseElement=7]="HeritageClauseElement",s[s.VariableDeclarations=8]="VariableDeclarations",s[s.ObjectBindingElements=9]="ObjectBindingElements",s[s.ArrayBindingElements=10]="ArrayBindingElements",s[s.ArgumentExpressions=11]="ArgumentExpressions",s[s.ObjectLiteralMembers=12]="ObjectLiteralMembers",s[s.JsxAttributes=13]="JsxAttributes",s[s.JsxChildren=14]="JsxChildren",s[s.ArrayLiteralMembers=15]="ArrayLiteralMembers",s[s.Parameters=16]="Parameters",s[s.JSDocParameters=17]="JSDocParameters",s[s.RestProperties=18]="RestProperties",s[s.TypeParameters=19]="TypeParameters",s[s.TypeArguments=20]="TypeArguments",s[s.TupleElementTypes=21]="TupleElementTypes",s[s.HeritageClauses=22]="HeritageClauses",s[s.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",s[s.ImportAttributes=24]="ImportAttributes",s[s.JSDocComment=25]="JSDocComment",s[s.Count=26]="Count"})(Gc||(Gc={}));let ls;(s=>{s[s.False=0]="False",s[s.True=1]="True",s[s.Unknown=2]="Unknown"})(ls||(ls={}));let us;(s=>{function p(K,le,Ue){Gn("file.js",K,99,void 0,1,0),t.setText(K,le,Ue),pt=t.scan();let je=m(),De=se("file.js",99,1,!1,[],he(1),0,Ga),Yt=Yi(st,De);return Vt&&(De.jsDocDiagnostics=Yi(Vt,De)),Yn(),je?{jsDocTypeExpression:je,diagnostics:Yt}:void 0}s.parseJSDocTypeExpressionForTests=p;function m(K){let le=M(),Ue=(K?Je:L)(19),je=Tt(16777216,Ji);(!K||Ue)&&zs(20);let De=f.createJSDocTypeExpression(je);return j(De),D(De,le)}s.parseJSDocTypeExpression=m;function y(){let K=M(),le=Je(19),Ue=M(),je=Oi(!1);for(;u()===81;)It(),qe(),je=D(f.createJSDocMemberName(je,wt()),Ue);le&&zs(20);let De=f.createJSDocNameReference(je);return j(De),D(De,K)}s.parseJSDocNameReference=y;function x(K,le,Ue){Gn("",K,99,void 0,1,0);let je=Tt(16777216,()=>ee(le,Ue)),Yt=Yi(st,{languageVariant:0,text:K});return Yn(),je?{jsDoc:je,diagnostics:Yt}:void 0}s.parseIsolatedJSDocComment=x;function N(K,le,Ue){let je=pt,De=st.length,Yt=on,un=Tt(16777216,()=>ee(le,Ue));return Uf(un,K),rt&524288&&(Vt||(Vt=[]),Pn(Vt,st,De)),pt=je,st.length=De,on=Yt,un}s.parseJSDocComment=N;let $;(K=>{K[K.BeginningOfLine=0]="BeginningOfLine",K[K.SawAsterisk=1]="SawAsterisk",K[K.SavingComments=2]="SavingComments",K[K.SavingBackticks=3]="SavingBackticks"})($||($={}));let _e;(K=>{K[K.Property=1]="Property",K[K.Parameter=2]="Parameter",K[K.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function ee(K=0,le){let Ue=Qe,je=le===void 0?Ue.length:K+le;if(le=je-K,B.assert(K>=0),B.assert(K<=je),B.assert(je<=Ue.length),!H6(Ue,K))return;let De,Yt,un,fr,dr,Ht=[],Xr=[],Pp=vt;vt|=1<<25;let Np=t.scanRange(K+3,le-5,Ip);return vt=Pp,Np;function Ip(){let I=1,W,H=K-(Ue.lastIndexOf(` -`,K)+1)+4;function te(Re){W||(W=H),Ht.push(Re),H+=Re.length}for(qe();Gi(5););Gi(4)&&(I=0,H=0);e:for(;;){switch(u()){case 60:nt(Ht),dr||(dr=M()),T(Zn(H)),I=0,W=void 0;break;case 4:Ht.push(t.getTokenText()),I=0,H=0;break;case 42:let Re=t.getTokenText();I===1?(I=2,te(Re)):(B.assert(I===0),I=1,H+=Re.length);break;case 5:B.assert(I!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let dt=t.getTokenText();W!==void 0&&H+dt.length>W&&Ht.push(dt.slice(W-H)),H+=dt.length;break;case 1:break e;case 82:I=2,te(t.getTokenValue());break;case 19:I=2;let gn=t.getTokenFullStart(),fn=t.getTokenEnd()-1,_n=n(fn);if(_n){fr||Pe(Ht),Xr.push(D(f.createJSDocText(Ht.join("")),fr??K,gn)),Xr.push(_n),Ht=[],fr=t.getTokenEnd();break}default:I=2,te(t.getTokenText());break}I===2?cn(!1):qe()}let ne=Ht.join("").trimEnd();Xr.length&&ne.length&&Xr.push(D(f.createJSDocText(ne),fr??K,dr)),Xr.length&&De&&B.assertIsDefined(dr,"having parsed tags implies that the end of the comment span should be set");let Ie=De&&Dt(De,Yt,un);return D(f.createJSDocComment(Xr.length?Dt(Xr,K,dr):ne.length?ne:void 0,Ie),K,je)}function Pe(I){for(;I.length&&(I[0]===` -`||I[0]==="\r");)I.shift()}function nt(I){for(;I.length;){let W=I[I.length-1].trimEnd();if(W==="")I.pop();else if(W.lengthdt&&(te.push(er.slice(dt-I)),Re=2),I+=er.length;break;case 19:Re=2;let Yc=t.getTokenFullStart(),Oa=t.getTokenEnd()-1,Hc=n(Oa);Hc?(ne.push(D(f.createJSDocText(te.join("")),Ie??H,Yc)),ne.push(Hc),te=[],Ie=t.getTokenEnd()):gn(t.getTokenText());break;case 62:Re===3?Re=2:Re=3,gn(t.getTokenText());break;case 82:Re!==3&&(Re=2),gn(t.getTokenValue());break;case 42:if(Re===0){Re=1,I+=1;break}default:Re!==3&&(Re=2),gn(t.getTokenText());break}Re===2||Re===3?fn=cn(Re===3):fn=qe()}Pe(te);let _n=te.join("").trimEnd();if(ne.length)return _n.length&&ne.push(D(f.createJSDocText(_n),Ie??H)),Dt(ne,H,t.getTokenEnd());if(_n.length)return _n}function n(I){let W=de(_);if(!W)return;qe(),pn();let H=i(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),qe();let ne=W==="link"?f.createJSDocLink:W==="linkcode"?f.createJSDocLinkCode:f.createJSDocLinkPlain;return D(ne(H,te.join("")),I,t.getTokenEnd())}function i(){if(bt(u())){let I=M(),W=Rt();for(;Je(25);)W=D(f.createQualifiedName(W,u()===81?an(80,!1):Rt()),I);for(;u()===81;)It(),qe(),W=D(f.createJSDocMemberName(W,wt()),I);return W}}function _(){if(Pr(),u()===19&&qe()===60&&bt(qe())){let I=t.getTokenValue();if(c(I))return I}}function c(I){return I==="link"||I==="linkcode"||I==="linkplain"}function d(I,W,H,te){return D(f.createJSDocUnknownTag(W,Bt(I,M(),H,te)),I)}function T(I){I&&(De?De.push(I):(De=[I],Yt=I.pos),un=I.end)}function q(){return Pr(),u()===19?m():void 0}function pe(){let I=Gi(23);I&&pn();let W=Gi(62),H=my();return W&&Gl(62),I&&(pn(),mt(64)&&At(),L(24)),{name:H,isBracketed:I}}function Le(I){switch(I.kind){case 151:return!0;case 188:return Le(I.elementType);default:return Al(I)&&et(I.typeName)&&I.typeName.escapedText==="Object"&&!I.typeArguments}}function en(I,W,H,te){let ne=q(),Ie=!ne;Pr();let{name:Re,isBracketed:dt}=pe(),gn=Pr();Ie&&!Y(_)&&(ne=q());let fn=Bt(I,M(),te,gn),_n=hr(ne,Re,H,te);_n&&(ne=_n,Ie=!0);let er=H===1?f.createJSDocPropertyTag(W,Re,dt,ne,Ie,fn):f.createJSDocParameterTag(W,Re,dt,ne,Ie,fn);return D(er,I)}function hr(I,W,H,te){if(I&&Le(I.type)){let ne=M(),Ie,Re;for(;Ie=de(()=>Mp(H,te,W));)Ie.kind===341||Ie.kind===348?Re=Cn(Re,Ie):Ie.kind===345&&mn(Ie.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Re){let dt=D(f.createJSDocTypeLiteral(Re,I.type.kind===188),ne);return D(f.createJSDocTypeExpression(dt),ne)}}}function yr(I,W,H,te){qt(De,L6)&&at(W.pos,t.getTokenStart(),A._0_tag_already_specified,Ts(W.escapedText));let ne=q();return D(f.createJSDocReturnTag(W,ne,Bt(I,M(),H,te)),I)}function Vi(I,W,H,te){qt(De,rd)&&at(W.pos,t.getTokenStart(),A._0_tag_already_specified,Ts(W.escapedText));let ne=m(!0),Ie=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocTypeTag(W,ne,Ie),I)}function $0(I,W,H,te){let Ie=u()===23||Y(()=>qe()===60&&bt(qe())&&c(t.getTokenValue()))?void 0:y(),Re=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocSeeTag(W,Ie,Re),I)}function Q0(I,W,H,te){let ne=q(),Ie=Bt(I,M(),H,te);return D(f.createJSDocThrowsTag(W,ne,Ie),I)}function K0(I,W,H,te){let ne=M(),Ie=Z0(),Re=t.getTokenFullStart(),dt=Bt(I,Re,H,te);dt||(Re=t.getTokenFullStart());let gn=typeof dt!="string"?Dt(uf([D(Ie,ne,Re)],dt),ne):Ie.text+dt;return D(f.createJSDocAuthorTag(W,gn),I)}function Z0(){let I=[],W=!1,H=t.getToken();for(;H!==1&&H!==4;){if(H===30)W=!0;else{if(H===60&&!W)break;if(H===32&&W){I.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}I.push(t.getTokenText()),H=qe()}return f.createJSDocText(I.join(""))}function ey(I,W,H,te){let ne=Id();return D(f.createJSDocImplementsTag(W,ne,Bt(I,M(),H,te)),I)}function ty(I,W,H,te){let ne=Id();return D(f.createJSDocAugmentsTag(W,ne,Bt(I,M(),H,te)),I)}function ny(I,W,H,te){let ne=m(!1),Ie=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocSatisfiesTag(W,ne,Ie),I)}function ry(I,W,H,te){let ne=t.getTokenFullStart(),Ie;ke()&&(Ie=wt());let Re=mi(Ie,ne,!0,!0),dt=Fi(),gn=Fc(),fn=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocImportTag(W,Re,dt,gn,fn),I)}function Id(){let I=Je(19),W=M(),H=iy();t.setSkipJsDocLeadingAsterisks(!0);let te=Ia();t.setSkipJsDocLeadingAsterisks(!1);let ne=f.createExpressionWithTypeArguments(H,te),Ie=D(ne,W);return I&&L(20),Ie}function iy(){let I=M(),W=yi();for(;Je(25);){let H=yi();W=D(ae(W,H),I)}return W}function Wi(I,W,H,te,ne){return D(W(H,Bt(I,M(),te,ne)),I)}function Od(I,W,H,te){let ne=m(!0);return pn(),D(f.createJSDocThisTag(W,ne,Bt(I,M(),H,te)),I)}function ay(I,W,H,te){let ne=m(!0);return pn(),D(f.createJSDocEnumTag(W,ne,Bt(I,M(),H,te)),I)}function _y(I,W,H,te){let ne=q();Pr();let Ie=Op();pn();let Re=R(H),dt;if(!ne||Le(ne.type)){let fn,_n,er,Yc=!1;for(;(fn=de(()=>uy(H)))&&fn.kind!==345;)if(Yc=!0,fn.kind===344)if(_n){let Oa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Oa&&Zc(Oa,ja(Jt,Qe,0,0,A.The_tag_was_first_specified_here));break}else _n=fn;else er=Cn(er,fn);if(Yc){let Oa=ne&&ne.type.kind===188,Hc=f.createJSDocTypeLiteral(er,Oa);ne=_n&&_n.typeExpression&&!Le(_n.typeExpression.type)?_n.typeExpression:D(Hc,I),dt=ne.end}}dt=dt||Re!==void 0?M():(Ie??ne??W).end,Re||(Re=Bt(I,dt,H,te));let gn=f.createJSDocTypedefTag(W,ne,Ie,Re);return D(gn,I,dt)}function Op(I){let W=t.getTokenStart();if(!bt(u()))return;let H=yi();if(Je(25)){let te=Op(!0),ne=f.createModuleDeclaration(void 0,H,te,I?8:void 0);return D(ne,W)}return I&&(H.flags|=4096),H}function sy(I){let W=M(),H,te;for(;H=de(()=>Mp(4,I));){if(H.kind===345){mn(H.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}te=Cn(te,H)}return Dt(te||[],W)}function Md(I,W){let H=sy(W),te=de(()=>{if(Gi(60)){let ne=Zn(W);if(ne&&ne.kind===342)return ne}});return D(f.createJSDocSignature(void 0,H,te),I)}function oy(I,W,H,te){let ne=Op();pn();let Ie=R(H),Re=Md(I,H);Ie||(Ie=Bt(I,M(),H,te));let dt=Ie!==void 0?M():Re.end;return D(f.createJSDocCallbackTag(W,Re,ne,Ie),I,dt)}function cy(I,W,H,te){pn();let ne=R(H),Ie=Md(I,H);ne||(ne=Bt(I,M(),H,te));let Re=ne!==void 0?M():Ie.end;return D(f.createJSDocOverloadTag(W,Ie,ne),I,Re)}function ly(I,W){for(;!et(I)||!et(W);)if(!et(I)&&!et(W)&&I.right.escapedText===W.right.escapedText)I=I.left,W=W.left;else return!1;return I.escapedText===W.escapedText}function uy(I){return Mp(1,I)}function Mp(I,W,H){let te=!0,ne=!1;for(;;)switch(qe()){case 60:if(te){let Ie=py(I,W);return Ie&&(Ie.kind===341||Ie.kind===348)&&H&&(et(Ie.name)||!ly(H,Ie.name.left))?!1:Ie}ne=!1;break;case 4:te=!0,ne=!1;break;case 42:ne&&(te=!1),ne=!0;break;case 80:te=!1;break;case 1:return!1}}function py(I,W){B.assert(u()===60);let H=t.getTokenFullStart();qe();let te=yi(),ne=Pr(),Ie;switch(te.escapedText){case"type":return I===1&&Vi(H,te);case"prop":case"property":Ie=1;break;case"arg":case"argument":case"param":Ie=6;break;case"template":return Jd(H,te,W,ne);case"this":return Od(H,te,W,ne);default:return!1}return I&Ie?en(H,te,I,W):!1}function fy(){let I=M(),W=Gi(23);W&&pn();let H=Un(!1,!0),te=yi(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ne;if(W&&(pn(),L(64),ne=Tt(16777216,Ji),L(24)),!ea(te))return D(f.createTypeParameterDeclaration(H,te,void 0,ne),I)}function dy(){let I=M(),W=[];do{pn();let H=fy();H!==void 0&&W.push(H),Pr()}while(Gi(28));return Dt(W,I)}function Jd(I,W,H,te){let ne=u()===19?m():void 0,Ie=dy();return D(f.createJSDocTemplateTag(W,ne,Ie,Bt(I,M(),H,te)),I)}function Gi(I){return u()===I?(qe(),!0):!1}function my(){let I=yi();for(Je(23)&&L(24);Je(25);){let W=yi();Je(23)&&L(24),I=d_(I,W)}return I}function yi(I){if(!bt(u()))return an(80,!I,I||A.Identifier_expected);Sn++;let W=t.getTokenStart(),H=t.getTokenEnd(),te=u(),ne=zr(t.getTokenValue()),Ie=D(re(ne,te),W,H);return qe(),Ie}}})(us=e.JSDocParser||(e.JSDocParser={}))})(na||(na={}));var Rm=new WeakSet;function iv(e){Rm.has(e)&&B.fail("Source file has already been incrementally parsed"),Rm.add(e)}var Ah=new WeakSet;function av(e){return Ah.has(e)}function cf(e){Ah.add(e)}var gl;(e=>{function t(w,J,re,be){if(be=be||B.shouldAssert(2),f(w,J,re,be),Rg(re))return w;if(w.statements.length===0)return na.parseSourceFile(w.fileName,J,w.languageVersion,void 0,!0,w.scriptKind,w.setExternalModuleIndicator,w.jsDocParsingMode);iv(w),na.fixupParentReferences(w);let he=w.text,me=k(w),O=l(w,re);f(w,J,O,be),B.assert(O.span.start<=re.span.start),B.assert(Nr(O.span)===Nr(re.span)),B.assert(Nr(ps(O))===Nr(ps(re)));let ae=ps(O).length-O.span.length;C(w,O.span.start,Nr(O.span),Nr(ps(O)),ae,he,J,be);let ve=na.parseSourceFile(w.fileName,J,w.languageVersion,me,!0,w.scriptKind,w.setExternalModuleIndicator,w.jsDocParsingMode);return ve.commentDirectives=a(w.commentDirectives,ve.commentDirectives,O.span.start,Nr(O.span),ae,he,J,be),ve.impliedNodeFormat=w.impliedNodeFormat,ve}e.updateSourceFile=t;function a(w,J,re,be,he,me,O,ae){if(!w)return J;let ve,X=!1;for(let G of w){let{range:ht,type:ir}=G;if(ht.endbe){oe();let xn={range:{pos:ht.pos+he,end:ht.end+he},type:ir};ve=Cn(ve,xn),ae&&B.assert(me.substring(ht.pos,ht.end)===O.substring(xn.range.pos,xn.range.end))}}return oe(),ve;function oe(){X||(X=!0,ve?J&&ve.push(...J):ve=J)}}function o(w,J,re,be,he,me){J?ae(w):O(w);return;function O(ve){let X="";if(me&&h(ve)&&(X=be.substring(ve.pos,ve.end)),dm(ve),ta(ve,ve.pos+re,ve.end+re),me&&h(ve)&&B.assert(X===he.substring(ve.pos,ve.end)),tn(ve,O,ae),Zi(ve))for(let oe of ve.jsDoc)O(oe);E(ve,me)}function ae(ve){ta(ve,ve.pos+re,ve.end+re);for(let X of ve)O(X)}}function h(w){switch(w.kind){case 11:case 9:case 80:return!0}return!1}function g(w,J,re,be,he){B.assert(w.end>=J,"Adjusting an element that was entirely before the change range"),B.assert(w.pos<=re,"Adjusting an element that was entirely after the change range"),B.assert(w.pos<=w.end);let me=Math.min(w.pos,be),O=w.end>=re?w.end+he:Math.min(w.end,be);if(B.assert(me<=O),w.parent){let ae=w.parent;B.assertGreaterThanOrEqual(me,ae.pos),B.assertLessThanOrEqual(O,ae.end)}ta(w,me,O)}function E(w,J){if(J){let re=w.pos,be=he=>{B.assert(he.pos>=re),re=he.end};if(Zi(w))for(let he of w.jsDoc)be(he);tn(w,be),B.assert(re<=w.end)}}function C(w,J,re,be,he,me,O,ae){ve(w);return;function ve(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,!1,he,me,O,ae);return}let G=oe.end;if(G>=J){if(cf(oe),dm(oe),g(oe,J,re,be,he),tn(oe,ve,X),Zi(oe))for(let ht of oe.jsDoc)ve(ht);E(oe,ae);return}B.assert(Gre){o(oe,!0,he,me,O,ae);return}let G=oe.end;if(G>=J){cf(oe),g(oe,J,re,be,he);for(let ht of oe)ve(ht);return}B.assert(G0&&O<=1;O++){let ae=Z(w,be);B.assert(ae.pos<=be);let ve=ae.pos;be=Math.max(0,ve-1)}let he=Lg(be,Nr(J.span)),me=J.newLength+(J.span.start-be);return f1(he,me)}function Z(w,J){let re=w,be;if(tn(w,me),be){let O=he(be);O.pos>re.pos&&(re=O)}return re;function he(O){for(;;){let ae=Sb(O);if(ae)O=ae;else return O}}function me(O){if(!ea(O))if(O.pos<=J){if(O.pos>=re.pos&&(re=O),JJ),!0}}function f(w,J,re,be){let he=w.text;if(re&&(B.assert(he.length-re.span.length+re.newLength===J.length),be||B.shouldAssert(3))){let me=he.substr(0,re.span.start),O=J.substr(0,re.span.start);B.assert(me===O);let ae=he.substring(Nr(re.span),he.length),ve=J.substring(Nr(ps(re)),J.length);B.assert(ae===ve)}}function k(w){let J=w.statements,re=0;B.assert(re=X.pos&&O=X.pos&&O{w[w.Value=-1]="Value"})(v||(v={}))})(gl||(gl={}));function _v(e){return sv(e)!==void 0}function sv(e){let t=Zm(e,Vb,!1);if(t)return t;if(ig(e,".ts")){let a=Km(e).lastIndexOf(".d.");if(a>=0)return e.substring(a)}}function ov(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function cv(e,t){let a=[];for(let o of Zp(t,0)||Ot){let h=t.substring(o.pos,o.end);dv(a,o,h)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let h=e.pragmas.get(o.name);h instanceof Array?h.push(o.args):e.pragmas.set(o.name,[h,o.args]);continue}e.pragmas.set(o.name,o.args)}}function lv(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let h=e.referencedFiles,g=e.typeReferenceDirectives,E=e.libReferenceDirectives;zn(jp(a),C=>{let{types:l,lib:Z,path:f,["resolution-mode"]:k,preserve:v}=C.arguments,w=v==="true"?!0:void 0;if(C.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let J=ov(k,l.pos,l.end,t);g.push({pos:l.pos,end:l.end,fileName:l.value,...J?{resolutionMode:J}:{},...w?{preserve:w}:{}})}else Z?E.push({pos:Z.pos,end:Z.end,fileName:Z.value,...w?{preserve:w}:{}}):f?h.push({pos:f.pos,end:f.end,fileName:f.value,...w?{preserve:w}:{}}):t(C.range.pos,C.range.end-C.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Yp(jp(a),h=>({name:h.arguments.name,path:h.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let h of a)e.moduleName&&t(h.range.pos,h.range.end-h.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=h.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{zn(jp(a),h=>{(!e.checkJsDirective||h.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:h.range.end,pos:h.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Gp=new Map;function uv(e){if(Gp.has(e))return Gp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Gp.set(e,t),t}var pv=/^\/\/\/\s*<(\S+)\s.*?\/>/im,fv=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;function dv(e,t,a){let o=t.kind===2&&pv.exec(a);if(o){let g=o[1].toLowerCase(),E=Qm[g];if(!E||!(E.kind&1))return;if(E.args){let C={};for(let l of E.args){let f=uv(l.name).exec(a);if(!f&&!l.optional)return;if(f){let k=f[2]||f[3];if(l.captureSpan){let v=t.pos+f.index+f[1].length+1;C[l.name]={value:k,pos:v,end:v+k.length}}else C[l.name]=k}}e.push({name:g,args:{arguments:C,range:t}})}else e.push({name:g,args:{arguments:{},range:t}});return}let h=t.kind===2&&fv.exec(a);if(h)return Um(e,t,2,h);if(t.kind===3){let g=/@(\S+)(\s+.*)?$/gim,E;for(;E=g.exec(a);)Um(e,t,4,E)}}function Um(e,t,a,o){if(!o)return;let h=o[1].toLowerCase(),g=Qm[h];if(!g||!(g.kind&a))return;let E=o[2],C=mv(g,E);C!=="fail"&&e.push({name:h,args:{arguments:C,range:t}})}function mv(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let h=0;ho.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Ki(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return tn(this,e,t)}};function hv(e,t){let a=[];if(k2(e))return e.forEachChild(E=>{a.push(E)}),a;vs.setText((t||e.getSourceFile()).text);let o=e.pos,h=E=>{xs(a,o,E.pos,e),a.push(E),o=E.end},g=E=>{xs(a,o,E.pos,e),a.push(yv(E,e)),o=E.end};return zn(e.jsDoc,h),o=e.pos,e.forEachChild(h,g),xs(a,o,e.end,e),vs.setText(void 0),a}function xs(e,t,a,o){for(vs.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function ol(e,t){if(!e)return Ot;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Ih))){let o=new Set;for(let h of e){let g=Oh(t,h,E=>{var C;if(!o.has(E))return o.add(E),h.kind===177||h.kind===178?E.getContextualJsDocTags(h,t):((C=E.declarations)==null?void 0:C.length)===1?E.getJsDocTags(t):void 0});g&&(a=[...g,...a])}}return a}function bs(e,t){if(!e)return Ot;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Ih))){let o=new Set;for(let h of e){let g=Oh(t,h,E=>{if(!o.has(E))return o.add(E),h.kind===177||h.kind===178?E.getContextualDocumentationComment(h,t):E.getDocumentationComment(t)});g&&(a=a.length===0?g.slice():g.concat(lineBreakPart(),a))}}return a}function Oh(e,t,a){var o;let h=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!h)return;let g=pb(t);return ky(rb(h),E=>{let C=e.getTypeAtLocation(E),l=g&&C.symbol?e.getTypeOfSymbol(C.symbol):C,Z=e.getPropertyOfType(l,t.symbol.name);return Z?a(Z):void 0})}var xv=class extends od{constructor(e,t,a){super(e,t,a)}update(e,t){return rv(this,e,t)}getLineAndCharacterOfPosition(e){return _1(this,e)}getLineStarts(){return Kp(this)}getPositionOfLineAndCharacter(e,t,a){return Ag(Kp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let h=this.getFullText();return h[o]===` -`&&h[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=zy();return this.forEachChild(h),e;function t(g){let E=o(g);E&&e.add(E,g)}function a(g){let E=e.get(g);return E||e.set(g,E=[]),E}function o(g){let E=Af(g);return E&&(kl(E)&&br(E.expression)?E.expression.name.text:T1(E)?getNameFromPropertyName(E):void 0)}function h(g){switch(g.kind){case 262:case 218:case 174:case 173:let E=g,C=o(E);if(C){let f=a(C),k=Ki(f);k&&E.parent===k.parent&&E.symbol===k.symbol?E.body&&!k.body&&(f[f.length-1]=E):f.push(E)}tn(g,h);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(g),tn(g,h);break;case 169:if(!Os(g,31))break;case 260:case 208:{let f=g;if(m2(f.name)){tn(f.name,h);break}f.initializer&&h(f.initializer)}case 306:case 172:case 171:t(g);break;case 278:let l=g;l.exportClause&&(fh(l.exportClause)?zn(l.exportClause.elements,h):h(l.exportClause.name));break;case 272:let Z=g.importClause;Z&&(Z.name&&t(Z.name),Z.namedBindings&&(Z.namedBindings.kind===274?t(Z.namedBindings):zn(Z.namedBindings.elements,h)));break;case 226:Of(g)!==0&&t(g);default:tn(g,h)}}}},Tv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return _1(this,e)}};function Sv(){return{getNodeConstructor:()=>od,getTokenConstructor:()=>Dh,getIdentifierConstructor:()=>Ph,getPrivateIdentifierConstructor:()=>Nh,getSourceFileConstructor:()=>xv,getSymbolConstructor:()=>gv,getTypeConstructor:()=>bv,getSignatureConstructor:()=>vv,getSourceMapSourceConstructor:()=>Tv}}var wv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],lx=[...wv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];Ib(Sv());var jl=new Proxy({},{get:()=>!0});var Jh=jl["4.8"];function rr(e,t=!1){var a;if(e!=null){if(Jh){if(t||Ml(e)){let o=h1(e);return o?Array.from(o):void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!El(o))}}function sa(e,t=!1){var a;if(e!=null){if(Jh){if(t||Jl(e)){let o=Tl(e);return o?Array.from(o):void 0}return}return(a=e.decorators)==null?void 0:a.filter(El)}}var Lh={};var Ll=new Proxy({},{get:(e,t)=>t});var Rh=Ll,Uh=Ll;var P=Rh,Ft=Uh;var Bh=jl["5.0"],ue=ce,Av=new Set([ue.BarBarToken,ue.AmpersandAmpersandToken,ue.QuestionQuestionToken]),Cv=new Set([ce.EqualsToken,ce.PlusEqualsToken,ce.MinusEqualsToken,ce.AsteriskEqualsToken,ce.AsteriskAsteriskEqualsToken,ce.SlashEqualsToken,ce.PercentEqualsToken,ce.LessThanLessThanEqualsToken,ce.GreaterThanGreaterThanEqualsToken,ce.GreaterThanGreaterThanGreaterThanEqualsToken,ce.AmpersandEqualsToken,ce.BarEqualsToken,ce.BarBarEqualsToken,ce.AmpersandAmpersandEqualsToken,ce.QuestionQuestionEqualsToken,ce.CaretEqualsToken]),Dv=new Set([ue.InstanceOfKeyword,ue.InKeyword,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.SlashToken,ue.PercentToken,ue.PlusToken,ue.MinusToken,ue.AmpersandToken,ue.BarToken,ue.CaretToken,ue.LessThanLessThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.AmpersandAmpersandToken,ue.BarBarToken,ue.LessThanToken,ue.LessThanEqualsToken,ue.GreaterThanToken,ue.GreaterThanEqualsToken,ue.EqualsEqualsToken,ue.EqualsEqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken]);function Pv(e){return Cv.has(e.kind)}function Nv(e){return Av.has(e.kind)}function Iv(e){return Dv.has(e.kind)}function ti(e){return _t(e)}function qh(e){return e.kind!==ue.SemicolonClassElement}function We(e,t){let a=rr(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function zh(e){let t=rr(e);return t==null?null:t[t.length-1]??null}function Fh(e){return e.kind===ue.CommaToken}function Ov(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function Mv(e){return e.kind===ue.JSDocComment}function Vh(e){if(Pv(e))return{type:P.AssignmentExpression,operator:ti(e.kind)};if(Nv(e))return{type:P.LogicalExpression,operator:ti(e.kind)};if(Iv(e))return{type:P.BinaryExpression,operator:ti(e.kind)};throw new Error(`Unexpected binary operator ${_t(e.kind)}`)}function Js(e,t){let a=t.getLineAndCharacterOfPosition(e);return{line:a.line+1,column:a.character}}function ni(e,t){let[a,o]=e.map(h=>Js(h,t));return{start:a,end:o}}function Wh(e){if(e.kind===ce.Block)switch(e.parent.kind){case ce.Constructor:case ce.GetAccessor:case ce.SetAccessor:case ce.ArrowFunction:case ce.FunctionExpression:case ce.FunctionDeclaration:case ce.MethodDeclaration:return!0;default:return!1}return!0}function Za(e,t){return[e.getStart(t),e.getEnd()]}function Jv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Gh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Rl(e){return e.flags&Xt.Let?"let":(e.flags&Xt.AwaitUsing)===Xt.AwaitUsing?"await using":e.flags&Xt.Const?"const":e.flags&Xt.Using?"using":"var"}function Ci(e){let t=rr(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function oa(e,t,a){return o(t);function o(h){return v1(h)&&h.pos===e.end?h:qv(h.getChildren(a),g=>(g.pos<=e.pos&&g.end>e.end||g.pos===e.end)&&Bv(g,a)?o(g):void 0)}}function jv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function Lv(e){return!!jv(e,Gh)}function fd(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return Lh[a]||t})}function ca(e){return e.kind===ue.ComputedPropertyName}function dd(e){return!!e.questionToken}function md(e){return e.type===P.ChainExpression}function Yh(e,t){return md(t)&&e.expression.kind!==ce.ParenthesizedExpression}function Rv(e){let t;if(Bh&&e.kind===ue.Identifier?t=Ns(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Ft.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Ft.Identifier:Ft.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Ft.Boolean:Ft.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Ft.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Ft.Template;switch(e.kind){case ue.NumericLiteral:return Ft.Numeric;case ue.JsxText:return Ft.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Ft.JSXText:Ft.String;case ue.RegularExpressionLiteral:return Ft.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Gh(e.parent))return Ft.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&Lv(e))return Ft.JSXIdentifier}return Ft.Identifier}function Uv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),h=t.text.slice(a,o),g=Rv(e),E=[a,o],C=ni(E,t);return g===Ft.RegularExpression?{type:g,value:h,range:E,loc:C,regex:{pattern:h.slice(1,h.lastIndexOf("/")),flags:h.slice(h.lastIndexOf("/")+1)}}:{type:g,value:h,range:E,loc:C}}function Hh(e){let t=[];function a(o){Ov(o)||Mv(o)||(Jv(o)&&o.kind!==ue.EndOfFileToken?t.push(Uv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var pd=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function hd(e,t,a,o=a){let[h,g]=[a,o].map(E=>{let{line:C,character:l}=t.getLineAndCharacterOfPosition(E);return{line:C+1,column:l,offset:E}});return new pd(e,t.fileName,{start:h,end:g})}function Xh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Bv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function qv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ue.EndOfFileToken}function yd(e){return!Fv(e)}function Kh(e){return Ef(e.parent,Nf)}function Vv(e){return We(ue.AbstractKeyword,e)}function Wv(e){if(e.parameters.length&&!Ol(e)){let t=e.parameters[0];if(Gv(t))return t}return null}function Gv(e){return $h(e.name)}function Zh(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Xa(t)||Ei(t)&&!Vv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Xa(t)||Ei(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&Wv(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function gd(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&Xt.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.NonNullExpression:return gd(e.expression);default:return!1}}function e0(e){let t=rr(e),a=e;for(;(!t||t.length===0)&&ei(a.parent);){let o=rr(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var b=ce;function xd(e){return hd("message"in e&&e.message||e.messageText,e.file,e.start)}var ge,t0,$t,js,vd,Ge,n0,Ul=class{constructor(t,a){Rd(this,ge);Ma(this,"ast");Ma(this,"options");Ma(this,"esTreeNodeToTSNodeMap",new WeakMap);Ma(this,"tsNodeToESTreeNodeMap",new WeakMap);Ma(this,"allowPattern",!1);this.ast=t,this.options={...a}}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,a,o){if(!t)return null;we(this,ge,t0).call(this,t);let h=this.allowPattern;o!==void 0&&(this.allowPattern=o);let g=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,g),this.allowPattern=h,g}fixExports(t,a){let h=ei(t)&&!!(t.flags&Xt.Namespace)?e0(t):rr(t);if((h==null?void 0:h[0].kind)===b.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let g=h[0],E=h[1],C=(E==null?void 0:E.kind)===b.DefaultKeyword,l=C?oa(E,this.ast,this.ast):oa(g,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=ni(a.range,this.ast),C)return this.createNode(t,{type:P.ExportDefaultDeclaration,declaration:a,range:[g.getStart(this.ast),a.range[1]],exportKind:"value"});let Z=a.type===P.TSInterfaceDeclaration||a.type===P.TSTypeAliasDeclaration,f="declare"in a&&a.declare;return this.createNode(t,we(this,ge,js).call(this,{type:P.ExportNamedDeclaration,declaration:a,specifiers:[],source:null,exportKind:Z||f?"type":"value",range:[g.getStart(this.ast),a.range[1]],attributes:[]},"assertions","attributes",!0))}return a}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,a))}convertPattern(t,a){return this.converter(t,a,!0)}convertChild(t,a){return this.converter(t,a,!1)}createNode(t,a){let o=a;return o.range??(o.range=Za(t,this.ast)),o.loc??(o.loc=ni(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertBindingNameWithTypeAnnotation(t,a,o){let h=this.convertPattern(t);return a&&(h.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(h,h.typeAnnotation.range)),h}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===b.FunctionType||(a==null?void 0:a.kind)===b.ConstructorType?2:1,g=[t.getFullStart()-o,t.end],E=ni(g,this.ast);return{type:P.TSTypeAnnotation,loc:E,range:g,typeAnnotation:this.convertChild(t)}}convertBodyExpressions(t,a){let o=Wh(a);return t.map(h=>{let g=this.convertChild(h);if(o){if(g!=null&&g.expression&&Pl(h)&&Qa(h.expression)){let E=g.expression.raw;return g.directive=E.slice(1,-1),g}o=!1}return g}).filter(h=>h)}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=oa(t,this.ast,this.ast);return this.createNode(a,{type:P.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(h=>this.convertChild(h))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=oa(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:P.TSTypeParameterDeclaration,range:o,loc:ni(o,this.ast),params:t.map(h=>this.convertChild(h))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var h;let o=this.convertChild(a);return o.decorators=((h=sa(a))==null?void 0:h.map(g=>this.convertChild(g)))??[],o}):[]}convertChainExpression(t,a){let{child:o,isOptional:h}=t.type===P.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===P.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},g=Yh(a,o);if(!g&&!h)return t;if(g&&md(o)){let E=o.expression;t.type===P.MemberExpression?t.object=E:t.type===P.CallExpression?t.callee=E:t.expression=E}return this.createNode(a,{type:P.ChainExpression,expression:t})}deeplyCopy(t){t.kind===ce.JSDocFunctionType&&we(this,ge,Ge).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${b[t.kind]}`;if(this.options.errorOnUnknownASTType&&!P[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&S1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let h=sa(t);h!=null&&h.length&&(o.decorators=h.map(E=>this.convertChild(E)));let g=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([E])=>!g.has(E)).forEach(([E,C])=>{Array.isArray(C)?o[E]=C.map(l=>this.convertChild(l)):C&&typeof C=="object"&&C.kind?o[E]=this.convertChild(C):o[E]=C}),o}convertJSXIdentifier(t){let a=this.createNode(t,{type:P.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===ce.JsxNamespacedName){let h=this.createNode(t,{type:P.JSXNamespacedName,namespace:this.createNode(t.namespace,{type:P.JSXIdentifier,name:t.namespace.text}),name:this.createNode(t.name,{type:P.JSXIdentifier,name:t.name.text})});return this.registerTSNodeInNodeMap(t,h),h}let a=t.getText(),o=a.indexOf(":");if(o>0){let h=Za(t,this.ast),g=this.createNode(t,{type:P.JSXNamespacedName,namespace:this.createNode(t,{type:P.JSXIdentifier,name:a.slice(0,o),range:[h[0],h[0]+o]}),name:this.createNode(t,{type:P.JSXIdentifier,name:a.slice(o+1),range:[h[0]+o+1,h[1]]}),range:h});return this.registerTSNodeInNodeMap(t,g),g}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case b.PropertyAccessExpression:t.name.kind===b.PrivateIdentifier&&we(this,ge,Ge).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:P.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case b.ThisKeyword:case b.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:P.TSMethodSignature,accessibility:Ci(t),computed:ca(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case b.GetAccessor:return"get";case b.SetAccessor:return"set";case b.MethodSignature:return"method"}})(),optional:dd(t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}convertImportAttributes(t){return t===void 0?[]:t.elements.map(a=>this.convertChild(a))}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=Js(t.range[1],this.ast))}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&we(this,ge,$t).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==b.StringLiteral&&we(this,ge,$t).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertNode(t,a){var o,h,g,E,C,l,Z;switch(t.kind){case b.SourceFile:return this.createNode(t,{type:P.Program,body:this.convertBodyExpressions(t.statements,t),comments:void 0,range:[t.getStart(this.ast),t.endOfFileToken.end],sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case b.Block:return this.createNode(t,{type:P.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case b.Identifier:return Qh(t)?this.createNode(t,{type:P.ThisExpression}):this.createNode(t,{type:P.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case b.PrivateIdentifier:return this.createNode(t,{type:P.PrivateIdentifier,name:t.text.slice(1)});case b.WithStatement:return this.createNode(t,{type:P.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ReturnStatement:return this.createNode(t,{type:P.ReturnStatement,argument:this.convertChild(t.expression)});case b.LabeledStatement:return this.createNode(t,{type:P.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case b.ContinueStatement:return this.createNode(t,{type:P.ContinueStatement,label:this.convertChild(t.label)});case b.BreakStatement:return this.createNode(t,{type:P.BreakStatement,label:this.convertChild(t.label)});case b.IfStatement:return this.createNode(t,{type:P.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case b.SwitchStatement:return t.caseBlock.clauses.filter(f=>f.kind===b.DefaultClause).length>1&&we(this,ge,Ge).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:P.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(f=>this.convertChild(f))});case b.CaseClause:case b.DefaultClause:return this.createNode(t,{type:P.SwitchCase,test:t.kind===b.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(f=>this.convertChild(f))});case b.ThrowStatement:return t.expression.end===t.expression.pos&&we(this,ge,$t).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:P.ThrowStatement,argument:this.convertChild(t.expression)});case b.TryStatement:return this.createNode(t,{type:P.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case b.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&we(this,ge,Ge).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:P.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case b.WhileStatement:return this.createNode(t,{type:P.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.DoStatement:return this.createNode(t,{type:P.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ForStatement:return this.createNode(t,{type:P.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case b.ForInStatement:return we(this,ge,n0).call(this,t.initializer),this.createNode(t,{type:P.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ForOfStatement:return this.createNode(t,{type:P.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===b.AwaitKeyword)});case b.FunctionDeclaration:{let f=We(b.DeclareKeyword,t),k=We(b.AsyncKeyword,t),v=!!t.asteriskToken;f?t.body?we(this,ge,Ge).call(this,t,"An implementation cannot be declared in ambient contexts."):k?we(this,ge,Ge).call(this,t,"'async' modifier cannot be used in an ambient context."):v&&we(this,ge,Ge).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&v&&we(this,ge,Ge).call(this,t,"A function signature cannot be declared as a generator.");let w=this.createNode(t,{type:t.body?P.FunctionDeclaration:P.TSDeclareFunction,async:k,body:this.convertChild(t.body)||void 0,declare:f,expression:!1,generator:v,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,w)}case b.VariableDeclaration:return this.createNode(t,{type:P.VariableDeclarator,definite:!!t.exclamationToken,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});case b.VariableStatement:{let f=this.createNode(t,{type:P.VariableDeclaration,declarations:t.declarationList.declarations.map(k=>this.convertChild(k)),declare:We(b.DeclareKeyword,t),kind:Rl(t.declarationList)});return f.declarations.length||we(this,ge,$t).call(this,t,"A variable declaration list must have at least one variable declarator."),(f.kind==="using"||f.kind==="await using")&&t.declarationList.declarations.forEach((k,v)=>{f.declarations[v].init==null&&we(this,ge,Ge).call(this,k,`'${f.kind}' declarations must be initialized.`),f.declarations[v].id.type!==P.Identifier&&we(this,ge,Ge).call(this,k.name,`'${f.kind}' declarations may not have binding patterns.`)}),this.fixExports(t,f)}case b.VariableDeclarationList:{let f=this.createNode(t,{type:P.VariableDeclaration,declarations:t.declarations.map(k=>this.convertChild(k)),declare:!1,kind:Rl(t)});return(f.kind==="using"||f.kind==="await using")&&t.declarations.forEach((k,v)=>{f.declarations[v].init!=null&&we(this,ge,Ge).call(this,k,`'${f.kind}' declarations may not be initialized in for statement.`),f.declarations[v].id.type!==P.Identifier&&we(this,ge,Ge).call(this,k.name,`'${f.kind}' declarations may not have binding patterns.`)}),f}case b.ExpressionStatement:return this.createNode(t,{type:P.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case b.ThisKeyword:return this.createNode(t,{type:P.ThisExpression});case b.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:P.ArrayPattern,decorators:[],elements:t.elements.map(f=>this.convertPattern(f)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:P.ArrayExpression,elements:t.elements.map(f=>this.convertChild(f))});case b.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:P.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(k=>this.convertPattern(k)),typeAnnotation:void 0});let f=[];for(let k of t.properties)(k.kind===b.GetAccessor||k.kind===b.SetAccessor||k.kind===b.MethodDeclaration)&&!k.body&&we(this,ge,$t).call(this,k.end-1,"'{' expected."),f.push(this.convertChild(k));return this.createNode(t,{type:P.ObjectExpression,properties:f})}case b.PropertyAssignment:{let{questionToken:f,exclamationToken:k}=t;return f&&we(this,ge,Ge).call(this,f,"A property assignment cannot have a question token."),k&&we(this,ge,Ge).call(this,k,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.allowPattern),computed:ca(t.name),method:!1,optional:!1,shorthand:!1,kind:"init"})}case b.ShorthandPropertyAssignment:{let{modifiers:f,questionToken:k,exclamationToken:v}=t;return f&&we(this,ge,Ge).call(this,f[0],"A shorthand property assignment cannot have modifiers."),k&&we(this,ge,Ge).call(this,k,"A shorthand property assignment cannot have a question token."),v&&we(this,ge,Ge).call(this,v,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0}),computed:!1,method:!1,optional:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:P.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case b.ComputedPropertyName:return this.convertChild(t.expression);case b.PropertyDeclaration:{let f=We(b.AbstractKeyword,t);f&&t.initializer&&we(this,ge,Ge).call(this,t.initializer,"Abstract property cannot have an initializer.");let k=We(b.AccessorKeyword,t),v=k?f?P.TSAbstractAccessorProperty:P.AccessorProperty:f?P.TSAbstractPropertyDefinition:P.PropertyDefinition,w=this.convertChild(t.name);return this.createNode(t,{type:v,key:w,accessibility:Ci(t),value:f?null:this.convertChild(t.initializer),computed:ca(t.name),static:We(b.StaticKeyword,t),readonly:We(b.ReadonlyKeyword,t),decorators:((h=sa(t))==null?void 0:h.map(J=>this.convertChild(J)))??[],declare:We(b.DeclareKeyword,t),override:We(b.OverrideKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),optional:(w.type===P.Literal||t.name.kind===b.Identifier||t.name.kind===b.ComputedPropertyName||t.name.kind===b.PrivateIdentifier)&&!!t.questionToken,definite:!!t.exclamationToken})}case b.GetAccessor:case b.SetAccessor:if(t.parent.kind===b.InterfaceDeclaration||t.parent.kind===b.TypeLiteral)return this.convertMethodSignature(t);case b.MethodDeclaration:{let f=this.createNode(t,{type:t.body?P.FunctionExpression:P.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:We(b.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,range:[t.parameters.pos-1,t.end],params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});f.typeParameters&&this.fixParentLocation(f,f.typeParameters.range);let k;if(a.kind===b.ObjectLiteralExpression)f.params=t.parameters.map(v=>this.convertChild(v)),k=this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:f,computed:ca(t.name),optional:!!t.questionToken,method:t.kind===b.MethodDeclaration,shorthand:!1,kind:"init"});else{f.params=this.convertParameters(t.parameters);let v=We(b.AbstractKeyword,t)?P.TSAbstractMethodDefinition:P.MethodDefinition;k=this.createNode(t,{type:v,accessibility:Ci(t),computed:ca(t.name),decorators:((g=sa(t))==null?void 0:g.map(w=>this.convertChild(w)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:We(b.OverrideKeyword,t),static:We(b.StaticKeyword,t),value:f})}return t.kind===b.GetAccessor?k.kind="get":t.kind===b.SetAccessor?k.kind="set":!k.static&&t.name.kind===b.StringLiteral&&t.name.text==="constructor"&&k.type!==P.Property&&(k.kind="constructor"),k}case b.Constructor:{let f=zh(t),k=(f&&oa(f,t,this.ast))??t.getFirstToken(),v=this.createNode(t,{type:t.body?P.FunctionExpression:P.TSEmptyBodyFunctionExpression,async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),range:[t.parameters.pos-1,t.end],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});v.typeParameters&&this.fixParentLocation(v,v.typeParameters.range);let w=this.createNode(t,{type:P.Identifier,decorators:[],name:"constructor",optional:!1,range:[k.getStart(this.ast),k.end],typeAnnotation:void 0}),J=We(b.StaticKeyword,t);return this.createNode(t,{type:We(b.AbstractKeyword,t)?P.TSAbstractMethodDefinition:P.MethodDefinition,accessibility:Ci(t),computed:!1,decorators:[],optional:!1,key:w,kind:J?"method":"constructor",override:!1,static:J,value:v})}case b.FunctionExpression:return this.createNode(t,{type:P.FunctionExpression,async:We(b.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.SuperKeyword:return this.createNode(t,{type:P.Super});case b.ArrayBindingPattern:return this.createNode(t,{type:P.ArrayPattern,decorators:[],elements:t.elements.map(f=>this.convertPattern(f)),optional:!1,typeAnnotation:void 0});case b.OmittedExpression:return null;case b.ObjectBindingPattern:return this.createNode(t,{type:P.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(f=>this.convertPattern(f)),typeAnnotation:void 0});case b.BindingElement:{if(a.kind===b.ArrayBindingPattern){let k=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:k,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:P.RestElement,argument:k,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):k}let f;return t.dotDotDotToken?f=this.createNode(t,{type:P.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):f=this.createNode(t,{type:P.Property,key:this.convertChild(t.propertyName??t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===b.ComputedPropertyName),method:!1,optional:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(f.value=this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertChild(t.name),optional:!1,range:[t.name.getStart(this.ast),t.initializer.end],right:this.convertChild(t.initializer),typeAnnotation:void 0})),f}case b.ArrowFunction:return this.createNode(t,{type:P.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:We(b.AsyncKeyword,t),expression:t.body.kind!==b.Block,returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.YieldExpression:return this.createNode(t,{type:P.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case b.AwaitExpression:return this.createNode(t,{type:P.AwaitExpression,argument:this.convertChild(t.expression)});case b.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:P.TemplateLiteral,quasis:[this.createNode(t,{type:P.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case b.TemplateExpression:{let f=this.createNode(t,{type:P.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(k=>{f.expressions.push(this.convertChild(k.expression)),f.quasis.push(this.convertChild(k.literal))}),f}case b.TaggedTemplateExpression:return this.createNode(t,{type:P.TaggedTemplateExpression,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)});case b.TemplateHead:case b.TemplateMiddle:case b.TemplateTail:{let f=t.kind===b.TemplateTail;return this.createNode(t,{type:P.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(f?1:2)),cooked:t.text},tail:f})}case b.SpreadAssignment:case b.SpreadElement:return this.allowPattern?this.createNode(t,{type:P.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:P.SpreadElement,argument:this.convertChild(t.expression)});case b.Parameter:{let f,k;return t.dotDotDotToken?f=k=this.createNode(t,{type:P.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(f=this.convertChild(t.name),k=this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:f,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),rr(t)&&(k.range[0]=f.range[0],k.loc=ni(k.range,this.ast))):f=k=this.convertChild(t.name,a),t.type&&(f.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(f,f.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>f.range[1]&&(f.range[1]=t.questionToken.end,f.loc.end=Js(f.range[1],this.ast)),f.optional=!0),rr(t)?this.createNode(t,{type:P.TSParameterProperty,accessibility:Ci(t),decorators:[],override:We(b.OverrideKeyword,t),parameter:k,readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t)}):k}case b.ClassDeclaration:!t.name&&(!We(ce.ExportKeyword,t)||!We(ce.DefaultKeyword,t))&&we(this,ge,$t).call(this,t,"A class declaration without the 'default' modifier must have a name.");case b.ClassExpression:{let f=t.heritageClauses??[],k=t.kind===b.ClassDeclaration?P.ClassDeclaration:P.ClassExpression,v,w;for(let re of f){let{token:be,types:he}=re;he.length===0&&we(this,ge,$t).call(this,re,`'${_t(be)}' list cannot be empty.`),be===b.ExtendsKeyword?(v&&we(this,ge,$t).call(this,re,"'extends' clause already seen."),w&&we(this,ge,$t).call(this,re,"'extends' clause must precede 'implements' clause."),he.length>1&&we(this,ge,$t).call(this,he[1],"Classes can only extend a single class."),v??(v=re)):be===b.ImplementsKeyword&&(w&&we(this,ge,$t).call(this,re,"'implements' clause already seen."),w??(w=re))}let J=this.createNode(t,{type:k,abstract:We(b.AbstractKeyword,t),body:this.createNode(t,{type:P.ClassBody,body:t.members.filter(qh).map(re=>this.convertChild(re)),range:[t.members.pos-1,t.end]}),declare:We(b.DeclareKeyword,t),decorators:((E=sa(t))==null?void 0:E.map(re=>this.convertChild(re)))??[],id:this.convertChild(t.name),implements:(w==null?void 0:w.types.map(re=>this.convertChild(re)))??[],superClass:v!=null&&v.types[0]?this.convertChild(v.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(C=v==null?void 0:v.types[0])!=null&&C.typeArguments&&(J.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(v.types[0].typeArguments,v.types[0])),this.fixExports(t,J)}case b.ModuleBlock:return this.createNode(t,{type:P.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case b.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let f=this.createNode(t,we(this,ge,js).call(this,{type:P.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(f.importKind="type"),t.importClause.name&&f.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case b.NamespaceImport:f.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case b.NamedImports:f.specifiers=f.specifiers.concat(t.importClause.namedBindings.elements.map(k=>this.convertChild(k)));break}return f}case b.NamespaceImport:return this.createNode(t,{type:P.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case b.ImportSpecifier:return this.createNode(t,{type:P.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value"});case b.ImportClause:{let f=this.convertChild(t.name);return this.createNode(t,{type:P.ImportDefaultSpecifier,local:f,range:f.range})}case b.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===b.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,we(this,ge,js).call(this,{type:P.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(f=>this.convertChild(f)),exportKind:t.isTypeOnly?"type":"value",declaration:null,attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,we(this,ge,js).call(this,{type:P.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:((Z=t.exportClause)==null?void 0:Z.kind)===b.NamespaceExport?this.convertChild(t.exportClause.name):null,attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0)));case b.ExportSpecifier:return this.createNode(t,{type:P.ExportSpecifier,local:this.convertChild(t.propertyName??t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case b.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:P.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:P.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case b.PrefixUnaryExpression:case b.PostfixUnaryExpression:{let f=ti(t.operator);return f==="++"||f==="--"?(gd(t.operand)||we(this,ge,$t).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:P.UpdateExpression,operator:f,prefix:t.kind===b.PrefixUnaryExpression,argument:this.convertChild(t.operand)})):this.createNode(t,{type:P.UnaryExpression,operator:f,prefix:t.kind===b.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case b.DeleteExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case b.VoidExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case b.TypeOfExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case b.TypeOperator:return this.createNode(t,{type:P.TSTypeOperator,operator:ti(t.operator),typeAnnotation:this.convertChild(t.type)});case b.BinaryExpression:{if(Fh(t.operatorToken)){let k=this.createNode(t,{type:P.SequenceExpression,expressions:[]}),v=this.convertChild(t.left);return v.type===P.SequenceExpression&&t.left.kind!==b.ParenthesizedExpression?k.expressions=k.expressions.concat(v.expressions):k.expressions.push(v),k.expressions.push(this.convertChild(t.right)),k}let f=Vh(t.operatorToken);return this.allowPattern&&f.type===P.AssignmentExpression?this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...f,left:this.converter(t.left,t,f.type===P.AssignmentExpression),right:this.convertChild(t.right)})}case b.PropertyAccessExpression:{let f=this.convertChild(t.expression),k=this.convertChild(t.name),w=this.createNode(t,{type:P.MemberExpression,object:f,property:k,computed:!1,optional:t.questionDotToken!==void 0});return this.convertChainExpression(w,t)}case b.ElementAccessExpression:{let f=this.convertChild(t.expression),k=this.convertChild(t.argumentExpression),w=this.createNode(t,{type:P.MemberExpression,object:f,property:k,computed:!0,optional:t.questionDotToken!==void 0});return this.convertChainExpression(w,t)}case b.CallExpression:{if(t.expression.kind===b.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&we(this,ge,$t).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,{type:P.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null});let f=this.convertChild(t.expression),k=t.arguments.map(J=>this.convertChild(J)),v=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),w=this.createNode(t,{type:P.CallExpression,callee:f,arguments:k,optional:t.questionDotToken!==void 0,typeArguments:v});return this.convertChainExpression(w,t)}case b.NewExpression:{let f=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:P.NewExpression,arguments:t.arguments?t.arguments.map(k=>this.convertChild(k)):[],callee:this.convertChild(t.expression),typeArguments:f})}case b.ConditionalExpression:return this.createNode(t,{type:P.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case b.MetaProperty:return this.createNode(t,{type:P.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:P.Identifier,decorators:[],name:ti(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case b.Decorator:return this.createNode(t,{type:P.Decorator,expression:this.convertChild(t.expression)});case b.StringLiteral:return this.createNode(t,{type:P.Literal,value:a.kind===b.JsxAttribute?fd(t.text):t.text,raw:t.getText()});case b.NumericLiteral:return this.createNode(t,{type:P.Literal,value:Number(t.text),raw:t.getText()});case b.BigIntLiteral:{let f=Za(t,this.ast),k=this.ast.text.slice(f[0],f[1]),v=k.slice(0,-1).replace(/_/g,""),w=typeof BigInt<"u"?BigInt(v):null;return this.createNode(t,{type:P.Literal,raw:k,value:w,bigint:w==null?v:String(w),range:f})}case b.RegularExpressionLiteral:{let f=t.text.slice(1,t.text.lastIndexOf("/")),k=t.text.slice(t.text.lastIndexOf("/")+1),v=null;try{v=new RegExp(f,k)}catch{}return this.createNode(t,{type:P.Literal,value:v,raw:t.text,regex:{pattern:f,flags:k}})}case b.TrueKeyword:return this.createNode(t,{type:P.Literal,value:!0,raw:"true"});case b.FalseKeyword:return this.createNode(t,{type:P.Literal,value:!1,raw:"false"});case b.NullKeyword:return this.createNode(t,{type:P.Literal,value:null,raw:"null"});case b.EmptyStatement:return this.createNode(t,{type:P.EmptyStatement});case b.DebuggerStatement:return this.createNode(t,{type:P.DebuggerStatement});case b.JsxElement:return this.createNode(t,{type:P.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(f=>this.convertChild(f))});case b.JsxFragment:return this.createNode(t,{type:P.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(f=>this.convertChild(f))});case b.JsxSelfClosingElement:return this.createNode(t,{type:P.JSXElement,openingElement:this.createNode(t,{type:P.JSXOpeningElement,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(f=>this.convertChild(f)),range:Za(t,this.ast)}),closingElement:null,children:[]});case b.JsxOpeningElement:return this.createNode(t,{type:P.JSXOpeningElement,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(f=>this.convertChild(f))});case b.JsxClosingElement:return this.createNode(t,{type:P.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case b.JsxOpeningFragment:return this.createNode(t,{type:P.JSXOpeningFragment});case b.JsxClosingFragment:return this.createNode(t,{type:P.JSXClosingFragment});case b.JsxExpression:{let f=t.expression?this.convertChild(t.expression):this.createNode(t,{type:P.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:P.JSXSpreadChild,expression:f}):this.createNode(t,{type:P.JSXExpressionContainer,expression:f})}case b.JsxAttribute:return this.createNode(t,{type:P.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case b.JsxText:{let f=t.getFullStart(),k=t.getEnd(),v=this.ast.text.slice(f,k);return this.createNode(t,{type:P.JSXText,value:fd(v),raw:v,range:[f,k]})}case b.JsxSpreadAttribute:return this.createNode(t,{type:P.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case b.QualifiedName:return this.createNode(t,{type:P.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case b.TypeReference:return this.createNode(t,{type:P.TSTypeReference,typeName:this.convertChild(t.typeName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case b.TypeParameter:return this.createNode(t,{type:P.TSTypeParameter,name:this.convertChild(t.name),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:We(b.InKeyword,t),out:We(b.OutKeyword,t),const:We(b.ConstKeyword,t)});case b.ThisType:return this.createNode(t,{type:P.TSThisType});case b.AnyKeyword:case b.BigIntKeyword:case b.BooleanKeyword:case b.NeverKeyword:case b.NumberKeyword:case b.ObjectKeyword:case b.StringKeyword:case b.SymbolKeyword:case b.UnknownKeyword:case b.VoidKeyword:case b.UndefinedKeyword:case b.IntrinsicKeyword:return this.createNode(t,{type:P[`TS${b[t.kind]}`]});case b.NonNullExpression:{let f=this.createNode(t,{type:P.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(f,t)}case b.TypeLiteral:return this.createNode(t,{type:P.TSTypeLiteral,members:t.members.map(f=>this.convertChild(f))});case b.ArrayType:return this.createNode(t,{type:P.TSArrayType,elementType:this.convertChild(t.elementType)});case b.IndexedAccessType:return this.createNode(t,{type:P.TSIndexedAccessType,objectType:this.convertChild(t.objectType),indexType:this.convertChild(t.indexType)});case b.ConditionalType:return this.createNode(t,{type:P.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),trueType:this.convertChild(t.trueType),falseType:this.convertChild(t.falseType)});case b.TypeQuery:return this.createNode(t,{type:P.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case b.MappedType:return t.members&&t.members.length>0&&we(this,ge,$t).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,we(this,ge,vd).call(this,{type:P.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===b.QuestionToken||ti(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===b.ReadonlyKeyword||ti(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case b.ParenthesizedExpression:return this.convertChild(t.expression,a);case b.TypeAliasDeclaration:{let f=this.createNode(t,{type:P.TSTypeAliasDeclaration,declare:We(b.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,f)}case b.MethodSignature:return this.convertMethodSignature(t);case b.PropertySignature:{let{initializer:f}=t;return f&&we(this,ge,Ge).call(this,f,"A property signature cannot have an initializer."),this.createNode(t,{type:P.TSPropertySignature,accessibility:Ci(t),computed:ca(t.name),key:this.convertChild(t.name),optional:dd(t),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case b.IndexSignature:return this.createNode(t,{type:P.TSIndexSignature,accessibility:Ci(t),parameters:t.parameters.map(f=>this.convertChild(f)),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case b.ConstructorType:return this.createNode(t,{type:P.TSConstructorType,abstract:We(b.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.FunctionType:{let{modifiers:f}=t;f&&we(this,ge,Ge).call(this,f[0],"A function type cannot have modifiers.")}case b.ConstructSignature:case b.CallSignature:{let f=t.kind===b.ConstructSignature?P.TSConstructSignatureDeclaration:t.kind===b.CallSignature?P.TSCallSignatureDeclaration:P.TSFunctionType;return this.createNode(t,{type:f,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case b.ExpressionWithTypeArguments:{let f=a.kind,k=f===b.InterfaceDeclaration?P.TSInterfaceHeritage:f===b.HeritageClause?P.TSClassImplements:P.TSInstantiationExpression;return this.createNode(t,{type:k,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case b.InterfaceDeclaration:{let f=t.heritageClauses??[],k=[];for(let w of f){w.token!==b.ExtendsKeyword&&we(this,ge,Ge).call(this,w,w.token===b.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let J of w.types)k.push(this.convertChild(J,t))}let v=this.createNode(t,{type:P.TSInterfaceDeclaration,body:this.createNode(t,{type:P.TSInterfaceBody,body:t.members.map(w=>this.convertChild(w)),range:[t.members.pos-1,t.end]}),declare:We(b.DeclareKeyword,t),extends:k,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,v)}case b.TypePredicate:{let f=this.createNode(t,{type:P.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(f.typeAnnotation=this.convertTypeAnnotation(t.type,t),f.typeAnnotation.loc=f.typeAnnotation.typeAnnotation.loc,f.typeAnnotation.range=f.typeAnnotation.typeAnnotation.range),f}case b.ImportType:{let f=Za(t,this.ast);if(t.isTypeOf){let v=oa(t.getFirstToken(),t,this.ast);f[0]=v.getStart(this.ast)}let k=this.createNode(t,{type:P.TSImportType,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,range:f});return t.isTypeOf?this.createNode(t,{type:P.TSTypeQuery,exprName:k,typeArguments:void 0}):k}case b.EnumDeclaration:{let f=t.members.map(v=>this.convertChild(v)),k=this.createNode(t,we(this,ge,vd).call(this,{type:P.TSEnumDeclaration,body:this.createNode(t,{type:P.TSEnumBody,members:f,range:[t.members.pos-1,t.end]}),const:We(b.ConstKeyword,t),declare:We(b.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(v=>this.convertChild(v))));return this.fixExports(t,k)}case b.EnumMember:return this.createNode(t,{type:P.TSEnumMember,computed:t.name.kind===ce.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case b.ModuleDeclaration:{let f=We(b.DeclareKeyword,t),k=this.createNode(t,{type:P.TSModuleDeclaration,...(()=>{if(t.flags&Xt.GlobalAugmentation){let w=this.convertChild(t.name),J=this.convertChild(t.body);return(J==null||J.type===P.TSModuleDeclaration)&&we(this,ge,$t).call(this,t.body??t,"Expected a valid module body"),w.type!==P.Identifier&&we(this,ge,$t).call(this,t.name,"global module augmentation must have an Identifier id"),{kind:"global",body:J,declare:!1,global:!1,id:w}}if(!(t.flags&Xt.Namespace)){let w=this.convertChild(t.body);return{kind:"module",...w!=null?{body:w}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&we(this,ge,$t).call(this,t,"Expected a module body"),t.name.kind!==ce.Identifier&&we(this,ge,$t).call(this,t.name,"`namespace`s must have an Identifier id");let v=this.createNode(t.name,{decorators:[],name:t.name.text,optional:!1,range:[t.name.getStart(this.ast),t.name.getEnd()],type:P.Identifier,typeAnnotation:void 0});for(;t.body&&ei(t.body)&&t.body.name;){t=t.body,f||(f=We(b.DeclareKeyword,t));let w=t.name,J=this.createNode(w,{decorators:[],name:w.text,optional:!1,range:[w.getStart(this.ast),w.getEnd()],type:P.Identifier,typeAnnotation:void 0});v=this.createNode(w,{left:v,right:J,range:[v.range[0],J.range[1]],type:P.TSQualifiedName})}return{kind:"namespace",body:this.convertChild(t.body),declare:!1,global:!1,id:v}})()});return k.declare=f,t.flags&Xt.GlobalAugmentation&&(k.global=!0),this.fixExports(t,k)}case b.ParenthesizedType:return this.convertChild(t.type);case b.UnionType:return this.createNode(t,{type:P.TSUnionType,types:t.types.map(f=>this.convertChild(f))});case b.IntersectionType:return this.createNode(t,{type:P.TSIntersectionType,types:t.types.map(f=>this.convertChild(f))});case b.AsExpression:return this.createNode(t,{type:P.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case b.InferType:return this.createNode(t,{type:P.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case b.LiteralType:return t.literal.kind===b.NullKeyword?this.createNode(t.literal,{type:P.TSNullKeyword}):this.createNode(t,{type:P.TSLiteralType,literal:this.convertChild(t.literal)});case b.TypeAssertionExpression:return this.createNode(t,{type:P.TSTypeAssertion,typeAnnotation:this.convertChild(t.type),expression:this.convertChild(t.expression)});case b.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:P.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case b.ExternalModuleReference:return t.expression.kind!==b.StringLiteral&&we(this,ge,Ge).call(this,t.expression,"String literal expected."),this.createNode(t,{type:P.TSExternalModuleReference,expression:this.convertChild(t.expression)});case b.NamespaceExportDeclaration:return this.createNode(t,{type:P.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case b.AbstractKeyword:return this.createNode(t,{type:P.TSAbstractKeyword});case b.TupleType:{let f=t.elements.map(k=>this.convertChild(k));return this.createNode(t,{type:P.TSTupleType,elementTypes:f})}case b.NamedTupleMember:{let f=this.createNode(t,{type:P.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(f.range[0]=f.label.range[0],f.loc.start=f.label.loc.start,this.createNode(t,{type:P.TSRestType,typeAnnotation:f})):f}case b.OptionalType:return this.createNode(t,{type:P.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case b.RestType:return this.createNode(t,{type:P.TSRestType,typeAnnotation:this.convertChild(t.type)});case b.TemplateLiteralType:{let f=this.createNode(t,{type:P.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(k=>{f.types.push(this.convertChild(k.type)),f.quasis.push(this.convertChild(k.literal))}),f}case b.ClassStaticBlockDeclaration:return this.createNode(t,{type:P.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case b.AssertEntry:case b.ImportAttribute:return this.createNode(t,{type:P.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case b.SatisfiesExpression:return this.createNode(t,{type:P.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};ge=new WeakSet,t0=function(t){if(!this.options.allowInvalidAST){Xh(t)&&we(this,ge,Ge).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of sa(t,!0)??[])Zh(t)||(Cs(t)&&!yd(t.body)?we(this,ge,Ge).call(this,a,"A decorator can only decorate a method implementation, not an overload."):we(this,ge,Ge).call(this,a,"Decorators are not valid here."));for(let a of rr(t,!0)??[]){if(a.kind!==b.ReadonlyKeyword&&((t.kind===b.PropertySignature||t.kind===b.MethodSignature)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a type member`),t.kind===b.IndexSignature&&(a.kind!==b.StaticKeyword||!Ei(t.parent))&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==b.InKeyword&&a.kind!==b.OutKeyword&&a.kind!==b.ConstKeyword&&t.kind===b.TypeParameter&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===b.InKeyword||a.kind===b.OutKeyword)&&(t.kind!==b.TypeParameter||!(Ms(t.parent)||Ei(t.parent)||Il(t.parent)))&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===b.ReadonlyKeyword&&t.kind!==b.PropertyDeclaration&&t.kind!==b.PropertySignature&&t.kind!==b.IndexSignature&&t.kind!==b.Parameter&&we(this,ge,Ge).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===b.DeclareKeyword&&Ei(t.parent)&&!Ha(t)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===b.DeclareKeyword&&Ka(t)){let o=Rl(t.declarationList);(o==="using"||o==="await using")&&we(this,ge,Ge).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===b.AbstractKeyword&&t.kind!==b.ClassDeclaration&&t.kind!==b.ConstructorType&&t.kind!==b.MethodDeclaration&&t.kind!==b.PropertyDeclaration&&t.kind!==b.GetAccessor&&t.kind!==b.SetAccessor&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===b.StaticKeyword||a.kind===b.PublicKeyword||a.kind===b.ProtectedKeyword||a.kind===b.PrivateKeyword)&&(t.parent.kind===b.ModuleBlock||t.parent.kind===b.SourceFile)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===b.AccessorKeyword&&t.kind!==b.PropertyDeclaration&&we(this,ge,Ge).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===b.AsyncKeyword&&t.kind!==b.MethodDeclaration&&t.kind!==b.FunctionDeclaration&&t.kind!==b.FunctionExpression&&t.kind!==b.ArrowFunction&&we(this,ge,Ge).call(this,a,"'async' modifier cannot be used here."),t.kind===b.Parameter&&(a.kind===b.StaticKeyword||a.kind===b.ExportKeyword||a.kind===b.DeclareKeyword||a.kind===b.AsyncKeyword)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a parameter.`),a.kind===b.PublicKeyword||a.kind===b.ProtectedKeyword||a.kind===b.PrivateKeyword)for(let o of rr(t)??[])o!==a&&(o.kind===b.PublicKeyword||o.kind===b.ProtectedKeyword||o.kind===b.PrivateKeyword)&&we(this,ge,Ge).call(this,o,"Accessibility modifier already seen.");if(t.kind===b.Parameter&&(a.kind===b.PublicKeyword||a.kind===b.PrivateKeyword||a.kind===b.ProtectedKeyword||a.kind===b.ReadonlyKeyword||a.kind===b.OverrideKeyword)){let o=Kh(t);o.kind===b.Constructor&&yd(o.body)||we(this,ge,Ge).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},$t=function(t,a){this.options.allowInvalidAST||we(this,ge,Ge).call(this,t,a)},js=function(t,a,o,h=!1){let g=h;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(g||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),g=!0),t[o]),set(E){Object.defineProperty(t,a,{enumerable:!0,writable:!0,value:E})}}),t},vd=function(t,a,o,h){let g=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>h:()=>(g||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),g=!0),h),set(E){Object.defineProperty(t,a,{enumerable:!0,writable:!0,value:E})}}),t},Ge=function(t,a){let o,h;throw typeof t=="number"?o=h=t:(o=t.getStart(this.ast),h=t.getEnd()),hd(a,this.ast,o,h)},n0=function(t){uh(t)&&t.flags&Xt.Using&&we(this,ge,Ge).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")};var Sd=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},tt=(e,t,a)=>(Sd(e,t,"read from private field"),a?a.call(e):t.get(e)),Di=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},vn=(e,t,a,o)=>(Sd(e,t,"write to private field"),o?o.call(e,a):t.set(e,a),a),_0=(e,t,a)=>(Sd(e,t,"access private method"),a);function Xv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(Pf(e.kind))t(e);else if(e.kind!==ce.JSDocComment){let h=e.getChildren(a);if(h.length===1){e=h[0];continue}for(let g=h.length-1;g>=0;--g)o.push(h[g])}if(o.length===0)break;e=o.pop()}}function $v(e){switch(e.kind){case ce.CloseBraceToken:return e.parent.kind!==ce.JsxExpression||!Td(e.parent.parent);case ce.GreaterThanToken:switch(e.parent.kind){case ce.JsxOpeningElement:return e.end!==e.parent.end;case ce.JsxOpeningFragment:return!1;case ce.JsxSelfClosingElement:return e.end!==e.parent.end||!Td(e.parent.parent);case ce.JsxClosingElement:case ce.JsxClosingFragment:return!Td(e.parent.parent.parent)}}return!0}function Td(e){return e.kind===ce.JsxElement||e.kind===ce.JsxFragment}function s0(e,t,a=e.getSourceFile()){let o=a.text,h=a.languageVariant!==vl.JSX;return Xv(e,E=>{if(E.pos!==E.end&&(E.kind!==ce.JsxText&&l1(o,E.pos===0?(Sf(o)??"").length:E.pos,g),h||$v(E)))return u1(o,E.end,g)},a);function g(E,C,l){t(o,{end:C,kind:l,pos:E})}}function ql(e,...t){if(e===void 0)return!1;for(let a of e)if(t.includes(a.kind))return!0;return!1}var[OT,MT]=Bm.split(".").map(e=>Number.parseInt(e,10));var JT=zt.Intrinsic??zt.Any|zt.Unknown|zt.String|zt.Number|zt.BigInt|zt.Boolean|zt.BooleanLiteral|zt.ESSymbol|zt.Void|zt.Undefined|zt.Null|zt.Never|zt.NonPrimitive;function Qv(e){return Ns(e)}function Kv(e){return Jl(e)}function Zv(e){return Tl(e)}function e4(e){switch(e.parent.kind){case ce.TypeParameter:case ce.InterfaceDeclaration:case ce.TypeAliasDeclaration:return 2;case ce.ClassDeclaration:case ce.ClassExpression:return 6;case ce.EnumDeclaration:return 7;case ce.NamespaceImport:case ce.ImportClause:return 15;case ce.ImportEqualsDeclaration:case ce.ImportSpecifier:return e.parent.name===e?15:void 0;case ce.ModuleDeclaration:return 1;case ce.Parameter:if(e.parent.parent.kind===ce.IndexSignature||Qv(e)===ce.ThisKeyword)return;case ce.BindingElement:case ce.VariableDeclaration:return e.parent.name===e?4:void 0;case ce.FunctionDeclaration:case ce.FunctionExpression:return 4}}var la,t4=class{constructor(e){this.global=e,Di(this,la,void 0),this.namespaceScopes=void 0,this.uses=[],this.variables=new Map}addUse(e){this.uses.push(e)}addUseToParent(e){}addVariable(e,t,a,o,h){let g=this.getDestinationScope(a).getVariables(),E={declaration:t,domain:h,exported:o},C=g.get(e);C===void 0?g.set(e,{declarations:[E],domain:h,uses:[]}):(C.domain|=h,C.declarations.push(E))}applyUse(e,t=this.variables){let a=t.get(e.location.text);return a===void 0||!(a.domain&e.domain)?!1:(a.uses.push(e),!0)}applyUses(){for(let e of this.uses)this.applyUse(e)||this.addUseToParent(e);this.uses=[]}createOrReuseEnumScope(e,t){let a;return tt(this,la)===void 0?vn(this,la,new Map):a=tt(this,la).get(e),a===void 0&&(a=new n4(this),tt(this,la).set(e,a)),a}createOrReuseNamespaceScope(e,t,a,o){let h;return this.namespaceScopes===void 0?this.namespaceScopes=new Map:h=this.namespaceScopes.get(e),h===void 0?(h=new _4(a,o,this),this.namespaceScopes.set(e,h)):h.refresh(a,o),h}end(e){this.namespaceScopes!==void 0&&this.namespaceScopes.forEach(t=>t.finish(e)),this.namespaceScopes=vn(this,la,void 0),this.applyUses(),this.variables.forEach(t=>{for(let a of t.declarations){let o={declarations:[],domain:a.domain,exported:a.exported,inGlobalScope:this.global,uses:[]};for(let h of t.declarations)h.domain&a.domain&&o.declarations.push(h.declaration);for(let h of t.uses)h.domain&a.domain&&o.uses.push(h);e(o,a.declaration,this)}})}getFunctionScope(){return this}getVariables(){return this.variables}markExported(e){}};la=new WeakMap;var pa=class extends t4{constructor(e,t){super(!1),this.parent=e,this.boundary=t}addUseToParent(e){return this.parent.addUse(e,this)}getDestinationScope(e){return this.boundary&e?this:this.parent.getDestinationScope(e)}},n4=class extends pa{constructor(e){super(e,1)}end(){this.applyUses()}},r4,i4,a4;r4=new WeakMap;i4=new WeakMap;a4=new WeakMap;var ri,ua,e_,jr,_4=class extends pa{constructor(e,t,a){super(a,1),Di(this,ri,void 0),Di(this,ua,void 0),Di(this,e_,void 0),Di(this,jr,new pa(this,1)),vn(this,ri,e),vn(this,e_,t)}addUse(e,t){if(t!==tt(this,jr))return tt(this,jr).addUse(e);this.uses.push(e)}createOrReuseEnumScope(e,t){return!t&&(!tt(this,ri)||tt(this,e_))?tt(this,jr).createOrReuseEnumScope(e,t):super.createOrReuseEnumScope(e,t)}createOrReuseNamespaceScope(e,t,a,o){return!t&&(!tt(this,ri)||tt(this,e_))?tt(this,jr).createOrReuseNamespaceScope(e,t,a||tt(this,ri),o):super.createOrReuseNamespaceScope(e,t,a||tt(this,ri),o)}end(e){tt(this,jr).end((t,a,o)=>{if(o!==tt(this,jr)||!t.exported&&(!tt(this,ri)||tt(this,ua)!==void 0&&!tt(this,ua).has(a.text)))return e(t,a,o);let h=this.variables.get(a.text);if(h===void 0)this.variables.set(a.text,{declarations:t.declarations.map(i0),domain:t.domain,uses:[...t.uses]});else{e:for(let g of t.declarations)for(let E of h.declarations){if(E.declaration===g)continue e;h.declarations.push(i0(g))}h.domain|=t.domain;for(let g of t.uses)h.uses.includes(g)||h.uses.push(g)}}),this.applyUses(),vn(this,jr,new pa(this,1))}finish(e){return super.end(e)}getDestinationScope(){return tt(this,jr)}markExported(e){tt(this,ua)===void 0&&vn(this,ua,new Set),tt(this,ua).add(e.text)}refresh(e,t){vn(this,ri,e),vn(this,e_,t)}};ri=new WeakMap;ua=new WeakMap;e_=new WeakMap;jr=new WeakMap;function i0(e){return{declaration:e,domain:e4(e),exported:!0}}var o0=class extends pa{constructor(e){super(e,1)}beginBody(){this.applyUses()}},Ls,t_,s4=class extends pa{constructor(e,t,a){super(a,1),Di(this,Ls,void 0),Di(this,t_,void 0),vn(this,t_,e),vn(this,Ls,t)}addUse(e,t){if(t!==this.innerScope)return this.innerScope.addUse(e);if(e.domain&tt(this,Ls)&&e.location.text===tt(this,t_).text)this.uses.push(e);else return this.parent.addUse(e,this)}end(e){return this.innerScope.end(e),e({declarations:[tt(this,t_)],domain:tt(this,Ls),exported:!1,inGlobalScope:!1,uses:this.uses},tt(this,t_),this)}getDestinationScope(){return this.innerScope}getFunctionScope(){return this.innerScope}};Ls=new WeakMap;t_=new WeakMap;var o4=class extends s4{constructor(e,t){super(e,4,t),this.innerScope=new o0(this)}beginBody(){return this.innerScope.beginBody()}},c4;c4=new WeakMap;var Bl,l4=class extends pa{constructor(e){super(e,8),Di(this,Bl,0)}addUse(e){return tt(this,Bl)===2?void this.uses.push(e):this.parent.addUse(e,this)}updateState(e){vn(this,Bl,e)}};Bl=new WeakMap;var u4,In,c0,l0,p4,f4,u0,p0,d4,m4,h4,y4,g4,b4;u4=new WeakMap;In=new WeakMap;c0=new WeakSet;l0=function(e,t,a){if(e.kind===ce.Identifier)return tt(this,In).addVariable(e.text,e,t?3:1,a,4);f0(e,o=>{tt(this,In).addVariable(o.name.text,o.name,t?3:1,a,4)})};p4=new WeakSet;f4=function(e,t,a){let o=tt(this,In),h=vn(this,In,new l4(o));t(e.checkType),h.updateState(1),t(e.extendsType),h.updateState(2),t(e.trueType),h.updateState(3),t(e.falseType),h.end(a),vn(this,In,o)};u0=new WeakSet;p0=function(e,t,a){e.name!==void 0&&tt(this,In).addVariable(e.name.text,e.name,t?3:1,ql(e.modifiers,ce.ExportKeyword),a)};d4=new WeakSet;m4=function(e,t,a){var g;Kv(e)&&((g=Zv(e))==null||g.forEach(t));let o=tt(this,In);e.kind===ce.FunctionDeclaration&&_0(this,u0,p0).call(this,e,!1,4);let h=vn(this,In,e.kind===ce.FunctionExpression&&e.name!==void 0?new o4(e.name,o):new o0(o));e.name!==void 0&&t(e.name),e.typeParameters!==void 0&&e.typeParameters.forEach(t),e.parameters.forEach(t),e.type!==void 0&&t(e.type),e.body!==void 0&&(h.beginBody(),t(e.body)),h.end(a),vn(this,In,o)};h4=new WeakSet;y4=function(e,t){if(e.flags&Xt.GlobalAugmentation)return t(e,tt(this,In).createOrReuseNamespaceScope("-global",!1,!0,!1));if(e.name.kind===ce.Identifier){let a=v4(e);tt(this,In).addVariable(e.name.text,e.name,1,a,5);let o=ql(e.modifiers,ce.DeclareKeyword);return t(e,tt(this,In).createOrReuseNamespaceScope(e.name.text,a,o,o&&a0(e)))}return t(e,tt(this,In).createOrReuseNamespaceScope(`"${e.name.text}"`,!1,!0,a0(e)))};g4=new WeakSet;b4=function(e){let t=T4(e),a=e.parent.kind===ce.VariableStatement&&ql(e.parent.modifiers,ce.ExportKeyword);for(let o of e.declarations)_0(this,c0,l0).call(this,o.name,t,a)};function v4(e){return e.parent.kind===ce.ModuleDeclaration||ql(e.modifiers,ce.ExportKeyword)}function a0(e){return e.body===void 0||e.body.kind!==ce.ModuleBlock?!1:x4(e.body)}function x4(e){for(let t of e.statements)if(t.kind===ce.ExportDeclaration||t.kind===ce.ExportAssignment)return!0;return!1}function T4(e){return(e.flags&Xt.BlockScoped)!==0}function f0(e,t){for(let a of e.elements){if(a.kind!==ce.BindingElement)continue;let o;if(a.name.kind===ce.Identifier?o=t(a):o=f0(a.name,t),o)return o}}function d0(e,t){let a=[];return s0(e,(o,h)=>{let g=h.kind===ce.SingleLineCommentTrivia?Ft.Line:Ft.Block,E=[h.pos,h.end],C=ni(E,e),l=E[0]+2,Z=h.kind===ce.SingleLineCommentTrivia?E[1]-l:E[1]-l-2;a.push({type:g,value:t.slice(l,l+Z),range:E,loc:C})},e),a}var m0=()=>{};function h0(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw xd(o[0]);let h=new Ul(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),g=h.convertProgram();(!t.range||!t.loc)&&m0(g,{enter:C=>{t.range||delete C.range,t.loc||delete C.loc}}),t.tokens&&(g.tokens=Hh(e)),t.comment&&(g.comments=d0(e,t.codeFullText));let E=h.getASTMaps();return{estree:g,astMaps:E}}function zl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===ce.SourceFile&&typeof t.getFullText=="function"}var D4=function(e){return e&&e.__esModule?e:{default:e}};var P4=D4({extname:e=>"."+e.split(".").pop()});function g0(e,t){switch(P4.default.extname(e).toLowerCase()){case gr.Js:case gr.Cjs:case gr.Mjs:return Jr.JS;case gr.Jsx:return Jr.JSX;case gr.Ts:case gr.Cts:case gr.Mts:return Jr.TS;case gr.Tsx:return Jr.TSX;case gr.Json:return Jr.JSON;default:return t?Jr.TSX:Jr.TS}}var I4={default:Ja},O4=(0,I4.default)("typescript-eslint:typescript-estree:createSourceFile");function b0(e){return O4("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),zl(e.code)?e.code:Eh(e.filePath,e.codeFullText,{languageVersion:Ps.Latest,jsDocParsingMode:e.jsDocParsingMode},!0,g0(e.filePath,e.jsx))}var v0=()=>{};var x0=e=>e;var T0=class{};var w0=()=>!1;var k0=()=>{};var wd={default:Ja},W4=(0,wd.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),G4,Y4=null,E0,A0,C0,D0,Rs={ParseAll:(E0=$a)==null?void 0:E0.ParseAll,ParseNone:(A0=$a)==null?void 0:A0.ParseNone,ParseForTypeErrors:(C0=$a)==null?void 0:C0.ParseForTypeErrors,ParseForTypeInfo:(D0=$a)==null?void 0:D0.ParseForTypeInfo};function P0(e,t={}){var l;let a=H4(e),o=w0(t),h=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",g=typeof t.loggerFn=="function",E=(()=>{switch(t.jsDocParsingMode){case"all":return Rs.ParseAll;case"none":return Rs.ParseNone;case"type-info":return Rs.ParseForTypeInfo;default:return Rs.ParseAll}})(),C={allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(Z=>typeof Z=="string")?t.extraFileExtensions:[],filePath:x0(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:X4(t.jsx),h),jsDocParsingMode:E,jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?Y4??(Y4=v0(t.projectService,E)):void 0,range:t.range===!0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:G4??(G4=new T0(o?"Infinity":((l=t.cacheLifetime)==null?void 0:l.glob)??void 0)),tsconfigRootDir:h};if(C.debugLevel.size>0){let Z=[];C.debugLevel.has("typescript-eslint")&&Z.push("typescript-eslint:*"),(C.debugLevel.has("eslint")||wd.default.enabled("eslint:*,-eslint:code-path"))&&Z.push("eslint:*,-eslint:code-path"),wd.default.enable(Z.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");W4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!C.programs&&!C.projectService&&(C.projects=new Map),t.jsDocParsingMode==null&&C.projects.size===0&&C.programs==null&&C.projectService==null&&(C.jsDocParsingMode=Rs.ParseNone),k0(C,g),C}function H4(e){return zl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function X4(e){return e?"estree.tsx":"estree.ts"}var Z4={default:Ja},iS=(0,Z4.default)("typescript-eslint:typescript-estree:parser");function N0(e,t){let{ast:a}=e3(e,t,!1);return a}function e3(e,t,a){let o=P0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let h=b0(o),{estree:g,astMaps:E}=h0(h,o,a);return{ast:g,esTreeNodeToTSNodeMap:E.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:E.tsNodeToESTreeNodeMap}}function t3(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var I0=t3;function n3(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var O0=n3;var r3=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},kd=r3;function i3(e){return Array.isArray(e)&&e.length>0}var M0=i3;function Fn(e){var o,h,g;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(g=((h=e.declaration)==null?void 0:h.decorators)??e.decorators)==null?void 0:g[0];return a?Math.min(Fn(a),t):t}function Lr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function a3(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var J0=a3;var _3=J0(["Block","CommentBlock","MultiLine"]),Us=_3;function s3(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var Ed=s3;function o3(e){return Us(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var j0=o3;var Bs=null;function qs(e){if(Bs!==null&&typeof Bs.property){let t=Bs;return Bs=qs.prototype=null,t}return Bs=qs.prototype=e??Object.create(null),new qs}var c3=10;for(let e=0;e<=c3;e++)qs();function Ad(e){return qs(e)}function l3(e,t="type"){Ad(e);function a(o){let h=o[t],g=e[h];if(!Array.isArray(g))throw Object.assign(new Error(`Missing visitor keys for '${h}'.`),{node:o});return g}return a}var L0=l3;var R0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var u3=L0(R0),U0=u3;function Cd(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{var E;(E=g.leadingComments)!=null&&E.some(j0)&&h.add(Fn(g))}),e=Fl(e,g=>{if(g.type==="ParenthesizedExpression"){let{expression:E}=g;if(E.type==="TypeCastExpression")return E.range=[...g.range],E;let C=Fn(g);if(!h.has(C))return E.extra={...E.extra,parenthesized:!0},E}})}if(e=Fl(e,h=>{var g;switch(h.type){case"LogicalExpression":if(B0(h))return Dd(h);break;case"VariableDeclaration":{let E=kd(!1,h.declarations,-1);E!=null&&E.init&&o[Lr(E)]!==";"&&(h.range=[Fn(h),Lr(E)]);break}case"TSParenthesizedType":return h.typeAnnotation;case"TSTypeParameter":if(typeof h.name=="string"){let E=Fn(h);h.name={type:"Identifier",name:h.name,range:[E,E+h.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(a==="meriyah"&&((g=h.exported)==null?void 0:g.type)==="Identifier"){let{exported:E}=h,C=o.slice(Fn(E),Lr(E));(C.startsWith('"')||C.startsWith("'"))&&(h.exported={...h.exported,type:"Literal",value:h.exported.name,raw:C})}break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break}}),M0(e.comments)){let h=kd(!1,e.comments,-1);for(let g=e.comments.length-2;g>=0;g--){let E=e.comments[g];Lr(E)===Fn(h)&&Us(E)&&Us(h)&&Ed(E)&&Ed(h)&&(e.comments.splice(g+1,1),E.value+="*//*"+h.value,E.range=[Fn(E),Lr(h)]),h=E}}return e.type==="Program"&&(e.range=[0,o.length]),e}function B0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Dd(e){return B0(e)?Dd({type:"LogicalExpression",operator:e.operator,left:Dd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Fn(e.left),Lr(e.right.left)]}),right:e.right.right,range:[Fn(e),Lr(e)]}):e}var q0=p3;var f3=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},n_=f3;var d3=/\*\/$/,m3=/^\/\*\*?/,h3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,y3=/(^|\s+)\/\/([^\n\r]*)/g,z0=/^(\r?\n)+/,g3=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,F0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,b3=/(\r?\n|^) *\* ?/g,v3=[];function V0(e){let t=e.match(h3);return t?t[0].trimStart():""}function W0(e){let t=` -`;e=n_(!1,e.replace(m3,"").replace(d3,""),b3,"$1");let a="";for(;a!==e;)a=e,e=n_(!1,e,g3,`${t}$1 $2${t}`);e=e.replace(z0,"").trimEnd();let o=Object.create(null),h=n_(!1,e,F0,"").replace(z0,"").trimEnd(),g;for(;g=F0.exec(e);){let E=n_(!1,g[2],y3,"");if(typeof o[g[1]]=="string"||Array.isArray(o[g[1]])){let C=o[g[1]];o[g[1]]=[...v3,...Array.isArray(C)?C:[C],E]}else o[g[1]]=E}return{comments:h,pragmas:o}}function x3(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var G0=x3;function T3(e){let t=G0(e);t&&(e=e.slice(t.length+1));let a=V0(e),{pragmas:o,comments:h}=W0(a);return{shebang:t,text:e,pragmas:o,comments:h}}function Y0(e){let{pragmas:t}=T3(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function S3(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:Y0,locStart:Fn,locEnd:Lr,...e}}var H0=S3;function w3(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var X0=w3;var Pd={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function k3(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return I0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var E3=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function A3(e,t){let a=t==null?void 0:t.filepath;if(a&&E3(a))return[{...Pd,filePath:a}];let o=D3(e);return[{...Pd,jsx:o},{...Pd,jsx:!o}]}function C3(e,t){let a=X0(e),o=A3(e,t),h;try{h=O0(o.map(g=>()=>N0(a,g)))}catch({errors:[g]}){throw k3(g)}return q0(h,{text:e})}function D3(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"mu").test(e)}var P3=H0(C3);return xy(N3);}); \ No newline at end of file +`;function an(Ve,$e){Me[Ve]+=$e}}function Zr(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function J(u,Ie){if(u.fill)u.fill(Ie);else for(let Me=0;Me0?u.repeat(Ie):"";let Me="";for(;Me.length{},Oy=()=>{},sl,Ne=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Ne||{}),on=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(on||{}),Kp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Kp||{});var Dm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Dm||{});var Mp=(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.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Mp||{});var Zp=(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=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="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.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Zp||{});var Pm=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Pm||{}),nn=(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.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",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.StringLike=402653316]="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.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(nn||{}),ef=(e=>(e[e.None=0]="None",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.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(ef||{});var Nm=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Nm||{});var Dr=(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))(Dr||{}),ys=(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.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(ys||{}),xl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(xl||{});var Nn=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Nn||{}),Im=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Im||{}),Om=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Om||{}),Mm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Mm||{});var Q_={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var Jm={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},{name:"resolution-mode",optional:!0},{name:"preserve",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},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ga=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ga||{});var Qi="/",My="\\",kd="://",Jy=/\\/g;function Ly(e){return e===47||e===92}function jy(e,t){return e.length>t.length&&Dy(e,t)}function tf(e){return e.length>0&&Ly(e.charCodeAt(e.length-1))}function Ed(e){return e>=97&&e<=122||e>=65&&e<=90}function Ry(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function Uy(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?Qi:My,2);return o<0?e.length:o+1}if(Ed(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(kd);if(a!==-1){let o=a+kd.length,m=e.indexOf(Qi,o);if(m!==-1){let v=e.slice(0,a),A=e.slice(o,m);if(v==="file"&&(A===""||A==="localhost")&&Ed(e.charCodeAt(m+1))){let P=Ry(e,m+2);if(P!==-1){if(e.charCodeAt(P)===47)return~(P+1);if(P===e.length)return~P}}return~(m+1)}return~e.length}return 0}function fl(e){let t=Uy(e);return t<0?~t:t}function Lm(e,t,a){if(e=dl(e),fl(e)===e.length)return"";e=Rm(e);let m=e.slice(Math.max(fl(e),e.lastIndexOf(Qi)+1)),v=t!==void 0&&a!==void 0?jm(m,t,a):void 0;return v?m.slice(0,m.length-v.length):m}function Ad(e,t,a){if(pl(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function By(e,t,a){if(typeof t=="string")return Ad(e,t,a)||"";for(let o of t){let m=Ad(e,o,a);if(m)return m}return""}function jm(e,t,a){if(t)return By(Rm(e),t,a?Qp:ky);let o=Lm(e),m=o.lastIndexOf(".");return m>=0?o.substring(m):""}function qy(e,t){let a=e.substring(0,t),o=e.substring(t).split(Qi);return o.length&&!Gi(o)&&o.pop(),[a,...o]}function zy(e,t=""){return e=Wy(t,e),qy(e,fl(e))}function Fy(e,t){return e.length===0?"":(e[0]&&nf(e[0]))+e.slice(1,t).join(Qi)}function dl(e){return e.includes("\\")?e.replace(Jy,Qi):e}function Vy(e){if(!Ht(e))return[];let t=[e[0]];for(let a=1;a1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(o)}}return t}function Wy(e,...t){e&&(e=dl(e));for(let a of t)a&&(a=dl(a),!e||fl(a)!==0?e=a:e=nf(e)+a);return e}function Gy(e){if(e=dl(e),!Cd.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Cd.test(e)))return e;let a=Fy(Vy(zy(e)));return a&&tf(e)?nf(a):a}function Rm(e){return tf(e)?e.substr(0,e.length-1):e}function nf(e){return tf(e)?e:e+Qi}var Cd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,m,v,A){return{code:e,category:t,key:a,message:o,reportsUnnecessary:m,elidedInCompatabilityPyramid:v,reportsDeprecated:A}}var E={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"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:r(1068,1,"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:r(1069,1,"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:r(1070,1,"_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:r(1071,1,"_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:r(1079,1,"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:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_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:r(1091,1,"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:r(1092,1,"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:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"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:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"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:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"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:r(1105,1,"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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"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:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"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:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"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:r(1116,1,"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:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"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:r(1119,1,"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:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"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:r(1148,1,"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:r(1149,1,"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."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"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:r(1163,1,"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:r(1164,1,"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:r(1165,1,"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_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple 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:r(1168,1,"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:r(1169,1,"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:r(1170,1,"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:r(1171,1,"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:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"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:r(1187,1,"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:r(1188,1,"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:r(1189,1,"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:r(1190,1,"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:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"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:r(1198,1,"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:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"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:r(1202,1,"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:r(1203,1,"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."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"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:r(1212,1,"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:r(1213,1,"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:r(1214,1,"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:r(1215,1,"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:r(1216,1,"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:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"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:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"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:r(1227,1,"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:r(1228,1,"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:r(1229,1,"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:r(1230,1,"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_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"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_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"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:r(1237,1,"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:r(1238,1,"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:r(1239,1,"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:r(1240,1,"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:r(1241,1,"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:r(1242,1,"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:r(1243,1,"_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:r(1244,1,"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:r(1245,1,"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:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"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:r(1248,1,"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:r(1249,1,"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_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"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:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"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:r(1314,1,"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:r(1315,1,"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:r(1316,1,"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:r(1317,1,"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:r(1318,1,"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:r(1319,1,"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:r(1320,1,"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:r(1321,1,"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:r(1322,1,"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_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"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:r(1328,1,"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:r(1329,1,"_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:r(1330,1,"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:r(1331,1,"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:r(1332,1,"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:r(1333,1,"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:r(1334,1,"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:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"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:r(1339,1,"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:r(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"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:r(1346,1,"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:r(1347,1,"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:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"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:r(1351,1,"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:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"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:r(1354,1,"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_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"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:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"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:r(2309,1,"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:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"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:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"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:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"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:r(2320,1,"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:r(2321,1,"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:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"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:r(2325,1,"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:r(2326,1,"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:r(2327,1,"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:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"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:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"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:r(2335,1,"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:r(2336,1,"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:r(2337,1,"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:r(2338,1,"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:r(2339,1,"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:r(2340,1,"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:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"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:r(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"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:r(2348,1,"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'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),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:r(2352,1,"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:r(2353,1,"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:r(2354,1,"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_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"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:r(2357,1,"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:r(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"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:r(2363,1,"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:r(2364,1,"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:r(2365,1,"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:r(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"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:r(2370,1,"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:r(2371,1,"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_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"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:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"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:r(2384,1,"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:r(2385,1,"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:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"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:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"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:r(2395,1,"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:r(2396,1,"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:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"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:r(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"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:r(2403,1,"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:r(2404,1,"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:r(2405,1,"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:r(2406,1,"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:r(2407,1,"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:r(2408,1,"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:r(2409,1,"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:r(2410,1,"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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"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:r(2416,1,"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:r(2417,1,"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:r(2418,1,"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}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"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:r(2422,1,"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:r(2423,1,"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_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"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:r(2426,1,"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:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"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:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"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:r(2432,1,"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:r(2433,1,"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:r(2434,1,"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:r(2435,1,"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:r(2436,1,"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:r(2437,1,"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:r(2438,1,"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:r(2439,1,"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:r(2440,1,"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:r(2441,1,"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:r(2442,1,"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:r(2443,1,"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:r(2444,1,"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:r(2445,1,"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_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"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:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"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:r(2462,1,"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:r(2463,1,"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:r(2464,1,"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:r(2465,1,"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:r(2466,1,"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:r(2467,1,"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:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"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:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"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:r(2476,1,"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:r(2477,1,"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:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"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:r(2481,1,"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:r(2483,1,"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:r(2484,1,"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:r(2487,1,"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:r(2488,1,"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:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"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:r(2492,1,"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:r(2493,1,"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:r(2494,1,"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:r(2495,1,"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_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:r(2497,1,"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:r(2498,1,"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:r(2499,1,"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:r(2500,1,"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:r(2501,1,"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:r(2502,1,"_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:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"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:r(2505,1,"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:r(2506,1,"_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:r(2507,1,"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:r(2508,1,"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:r(2509,1,"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:r(2510,1,"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:r(2511,1,"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:r(2512,1,"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:r(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"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:r(2516,1,"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:r(2517,1,"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:r(2518,1,"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:r(2519,1,"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:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"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:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"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:r(2527,1,"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:r(2528,1,"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:r(2529,1,"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:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"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:r(2537,1,"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:r(2538,1,"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:r(2539,1,"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:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"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:r(2543,1,"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:r(2544,1,"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:r(2545,1,"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[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' 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:r(2548,1,"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:r(2549,1,"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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"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:r(2552,1,"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:r(2553,1,"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:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"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:r(2559,1,"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:r(2560,1,"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:r(2561,1,"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:r(2562,1,"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:r(2563,1,"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:r(2564,1,"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:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"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:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"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:r(2575,1,"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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"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 '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"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:r(2585,1,"_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."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"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:r(2589,1,"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:r(2590,1,"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_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @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_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @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_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"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:r(2603,1,"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:r(2604,1,"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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"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:r(2607,1,"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:r(2608,1,"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:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"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:r(2652,1,"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:r(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"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:r(2659,1,"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:r(2660,1,"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:r(2661,1,"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:r(2662,1,"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:r(2663,1,"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:r(2664,1,"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:r(2665,1,"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:r(2666,1,"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:r(2667,1,"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:r(2668,1,"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:r(2669,1,"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:r(2670,1,"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:r(2671,1,"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:r(2672,1,"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:r(2673,1,"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:r(2674,1,"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:r(2675,1,"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:r(2676,1,"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:r(2677,1,"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:r(2678,1,"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:r(2679,1,"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:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"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:r(2684,1,"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:r(2685,1,"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:r(2686,1,"_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:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_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:r(2693,1,"_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:r(2694,1,"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:r(2695,1,"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:r(2696,1,"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:r(2697,1,"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:r(2698,1,"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:r(2699,1,"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:r(2700,1,"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:r(2701,1,"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:r(2702,1,"_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:r(2703,1,"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:r(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:r(2706,1,"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:r(2707,1,"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:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"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:r(2710,1,"_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:r(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:r(2713,1,"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:r(2714,1,"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:r(2715,1,"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:r(2716,1,"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:r(2717,1,"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:r(2718,1,"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:r(2719,1,"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:r(2720,1,"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:r(2721,1,"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:r(2722,1,"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:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"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:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"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:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"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:r(2731,1,"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:r(2732,1,"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:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"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:r(2736,1,"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_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"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:r(2739,1,"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:r(2740,1,"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:r(2741,1,"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:r(2742,1,"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:r(2743,1,"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:r(2744,1,"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:r(2745,1,"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:r(2746,1,"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:r(2747,1,"_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_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"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:r(4002,1,"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:r(4004,1,"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:r(4006,1,"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:r(4008,1,"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:r(4010,1,"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:r(4012,1,"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:r(4014,1,"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:r(4016,1,"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:r(4019,1,"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:r(4020,1,"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_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"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:r(4023,1,"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:r(4024,1,"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:r(4025,1,"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:r(4026,1,"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:r(4027,1,"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:r(4028,1,"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:r(4029,1,"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:r(4030,1,"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:r(4031,1,"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:r(4032,1,"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:r(4033,1,"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:r(4034,1,"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:r(4035,1,"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:r(4036,1,"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:r(4037,1,"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:r(4038,1,"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:r(4039,1,"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:r(4040,1,"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:r(4041,1,"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:r(4042,1,"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:r(4043,1,"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:r(4044,1,"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:r(4045,1,"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:r(4046,1,"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:r(4047,1,"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:r(4048,1,"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:r(4049,1,"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:r(4050,1,"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:r(4051,1,"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:r(4052,1,"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:r(4053,1,"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:r(4054,1,"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:r(4055,1,"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:r(4056,1,"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:r(4057,1,"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:r(4058,1,"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:r(4059,1,"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:r(4060,1,"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:r(4061,1,"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:r(4062,1,"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:r(4063,1,"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:r(4064,1,"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:r(4065,1,"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:r(4066,1,"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:r(4067,1,"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:r(4068,1,"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:r(4069,1,"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:r(4070,1,"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:r(4071,1,"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:r(4072,1,"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:r(4073,1,"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:r(4074,1,"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:r(4075,1,"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:r(4076,1,"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:r(4077,1,"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:r(4078,1,"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:r(4081,1,"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:r(4082,1,"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:r(4083,1,"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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"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:r(4092,1,"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_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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:r(4095,1,"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:r(4096,1,"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:r(4097,1,"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:r(4098,1,"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:r(4099,1,"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:r(4100,1,"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:r(4101,1,"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:r(4102,1,"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:r(4103,1,"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_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:r(5001,1,"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:r(5009,1,"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:r(5010,1,"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:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"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:r(5042,1,"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:r(5047,1,"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:r(5051,1,"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:r(5052,1,"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:r(5053,1,"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:r(5054,1,"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:r(5055,1,"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:r(5056,1,"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:r(5057,1,"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:r(5058,1,"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:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"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:r(5064,1,"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:r(5065,1,"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:r(5066,1,"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:r(5067,1,"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:r(5068,1,"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:r(5069,1,"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_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"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:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"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:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"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:r(6008,3,"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:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"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:r(6011,3,"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:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"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:r(6020,3,"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:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"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:r(6048,1,"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}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"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:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"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:r(6056,3,"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:r(6058,3,"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:r(6059,1,"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:r(6060,3,"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:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"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:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"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:r(6074,3,"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:r(6075,3,"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:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"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:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"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:r(6083,3,"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:r(6084,3,"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:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"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:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"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:r(6091,3,"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:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"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:r(6094,3,"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_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"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:r(6101,3,"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:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"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:r(6105,3,"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:r(6106,3,"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:r(6107,3,"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:r(6108,3,"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:r(6109,3,"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:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"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:r(6115,3,"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:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"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:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"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:r(6123,3,"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:r(6124,3,"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:r(6125,3,"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:r(6126,3,"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:r(6127,3,"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:r(6128,3,"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:r(6130,3,"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:r(6131,1,"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:r(6132,3,"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:r(6133,1,"_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:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"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:r(6137,1,"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:r(6138,1,"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:r(6139,3,"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:r(6140,1,"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:r(6141,3,"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:r(6142,1,"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:r(6144,3,"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}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"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:r(6147,3,"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:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"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:r(6152,3,"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:r(6153,3,"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:r(6154,3,"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:r(6155,3,"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:r(6156,3,"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:r(6157,3,"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:r(6158,3,"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:r(6159,3,"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:r(6160,3,"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:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"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:r(6167,3,"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:r(6168,3,"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:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"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:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"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:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"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:r(6195,3,"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:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"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:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"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:r(6207,3,"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:r(6208,3,"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:r(6209,3,"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:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"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:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"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:r(6214,3,"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:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"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:r(6305,1,"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:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"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:r(6353,3,"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:r(6354,3,"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:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"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:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"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:r(6363,3,"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:r(6364,3,"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:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"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:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"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:r(6381,3,"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}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"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:r(6501,3,"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:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"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:r(7009,1,"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:r(7010,1,"_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:r(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"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:r(7014,1,"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:r(7015,1,"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:r(7016,1,"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:r(7017,1,"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:r(7018,1,"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:r(7019,1,"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:r(7020,1,"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:r(7022,1,"_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:r(7023,1,"_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:r(7024,1,"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_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"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:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"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:r(7032,1,"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:r(7033,1,"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:r(7034,1,"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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @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:r(7036,1,"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:r(7037,3,"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:r(7038,3,"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:r(7039,1,"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:r(7040,1,"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:r(7041,1,"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:r(7042,1,"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:r(7043,2,"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:r(7044,2,"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:r(7045,2,"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:r(7046,2,"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:r(7047,2,"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:r(7048,2,"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:r(7049,2,"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:r(7050,2,"_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:r(7051,1,"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}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"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_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"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:r(8021,1,"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:r(8022,1,"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:r(8023,1,"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:r(8024,1,"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:r(8025,1,"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:r(8026,1,"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:r(8027,1,"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:r(8028,1,"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:r(8029,1,"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:r(8030,1,"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:r(8031,1,"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:r(8032,1,"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}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"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:r(17001,1,"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:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"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:r(17005,1,"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:r(17006,1,"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:r(17007,1,"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:r(17008,1,"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:r(17009,1,"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:r(17010,1,"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:r(17011,1,"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:r(17012,1,"_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:r(17013,1,"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:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"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:r(18003,1,"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_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"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:r(80003,2,"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:r(80004,2,"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:r(80005,2,"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:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"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:r(95031,3,"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:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"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:r(95037,3,"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:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"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:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function wt(e){return e>=80}function Yy(e){return e===32||wt(e)}var rf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Hy=new Map(Object.entries(rf)),Um=new Map(Object.entries({...rf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Bm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Xy=new Map([[1,Q_.RegularExpressionFlagsHasIndices],[16,Q_.RegularExpressionFlagsDotAll],[32,Q_.RegularExpressionFlagsUnicode],[64,Q_.RegularExpressionFlagsUnicodeSets],[128,Q_.RegularExpressionFlagsSticky]]),$y=[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],Qy=[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],Ky=[65,90,97,122,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,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,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,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,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,2809,2809,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,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,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,43824,43866,43868,43881,43888,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Zy=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,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,2556,2556,2558,2558,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,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,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,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,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,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],eg=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,tg=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,ng=/@(?:see|link)/i;function ml(e,t){if(e=2?ml(e,Ky):ml(e,$y)}function ig(e,t){return t>=2?ml(e,Zy):ml(e,Qy)}function qm(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var ag=qm(Um);function it(e){return ag[e]}function zm(e){return Um.get(e)}var Y4=qm(Bm);function Dd(e){return Bm.get(e)}function Fm(e){let t=[],a=0,o=0;for(;a127&&Cn(m)&&(t.push(o),o=a);break}}return t.push(o),t}function _g(e,t,a,o,m){(t<0||t>=e.length)&&(m?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?ly(e,Fm(o)):"unknown"}`));let v=e[t]+a;return m?v>e[t+1]?e[t+1]:typeof o=="string"&&v>o.length?o.length:v:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Cn(e){return e===10||e===13||e===8232||e===8233}function fi(e){return e>=48&&e<=57}function Tp(e){return fi(e)||e>=65&&e<=70||e>=97&&e<=102}function af(e){return e>=65&&e<=90||e>=97&&e<=122}function Wm(e){return af(e)||fi(e)||e===95}function xp(e){return e>=48&&e<=55}function Ar(e,t,a,o,m){if(fs(t))return t;let v=!1;for(;;){let A=e.charCodeAt(t);switch(A){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;v=!!m;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Ba(A)){t++;continue}break}return t}}var ol=7;function Vi(e,t){if(B.assert(t>=0),t===0||Cn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+ol=0&&a127&&Ba(I)){y&&Cn(I)&&(h=!0),a++;continue}break e}}return y&&(x=m(P,l,Q,h,v,x)),x}function Hm(e,t,a,o){return Sl(!1,e,t,!1,a,o)}function Xm(e,t,a,o){return Sl(!1,e,t,!0,a,o)}function cg(e,t,a,o,m){return Sl(!0,e,t,!1,a,o,m)}function lg(e,t,a,o,m){return Sl(!0,e,t,!0,a,o,m)}function $m(e,t,a,o,m,v=[]){return v.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),v}function Lp(e,t){return cg(e,t,$m,void 0,void 0)}function ug(e,t){return lg(e,t,$m,void 0,void 0)}function sf(e){let t=_f.exec(e);if(t)return t[0]}function Zn(e,t){return af(e)||e===36||e===95||e>127&&rg(e,t)}function Er(e,t,a){return Wm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&ig(e,t)}function pg(e,t,a){let o=Wi(e,0);if(!Zn(o,t))return!1;for(let m=Ft(o);mh,getStartPos:()=>h,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>g,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>P.substring(y,l),getTokenValue:()=>x,hasUnicodeEscape:()=>(I&1024)!==0,hasExtendedUnicodeEscape:()=>(I&8)!==0,hasPrecedingLineBreak:()=>(I&1)!==0,hasPrecedingJSDocComment:()=>(I&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(I&32768)!==0,isIdentifier:()=>g===80||g>118,isReservedWord:()=>g>=83&&g<=118,isUnterminated:()=>(I&4)!==0,getCommentDirectives:()=>re,getNumericLiteralFlags:()=>I&25584,getTokenFlags:()=>I,reScanGreaterToken:lt,reScanAsteriskEqualsToken:ar,reScanSlashToken:mt,reScanTemplateToken:Bt,reScanTemplateHeadOrNoSubstitutionTemplate:rn,scanJsxIdentifier:Nr,scanJsxAttributeValue:Vn,reScanJsxAttributeValue:Ce,reScanJsxToken:_r,reScanLessThanToken:fr,reScanHashToken:dr,reScanQuestionToken:zn,reScanInvalidIdentifier:Ut,scanJsxToken:Fn,scanJsDocToken:L,scanJSDocCommentTextToken:mr,scan:ct,getText:Ke,clearCommentDirectives:st,setText:Dt,setScriptTarget:ut,setLanguageVariant:Ir,setScriptKind:hr,setJSDocParsingMode:Mn,setOnError:Tt,resetTokenState:Wn,setTextPos:Wn,setSkipJsDocLeadingAsterisks:Si,tryScan:Xe,lookAhead:Te,scanRange:fe};return B.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{let R=M.getText();return R.slice(0,M.getTokenFullStart())+"\u2551"+R.slice(M.getTokenFullStart())}}),M;function ae(R){return Wi(P,R)}function Oe(R){return R>=0&&R=0&&R=65&&be<=70)be+=32;else if(!(be>=48&&be<=57||be>=97&&be<=102))break;xe.push(be),l++,we=!1}return xe.length=Q){K+=P.substring(xe,l),I|=4,W(E.Unterminated_string_literal);break}let Se=V(l);if(Se===$){K+=P.substring(xe,l),l++;break}if(Se===92&&!R){K+=P.substring(xe,l),K+=Ot(3),xe=l;continue}if((Se===10||Se===13)&&!R){K+=P.substring(xe,l),I|=4,W(E.Unterminated_string_literal);break}l++}return K}function Pr(R){let $=V(l)===96;l++;let K=l,xe="",Se;for(;;){if(l>=Q){xe+=P.substring(K,l),I|=4,W(E.Unterminated_template_literal),Se=$?15:18;break}let we=V(l);if(we===96){xe+=P.substring(K,l),l++,Se=$?15:18;break}if(we===36&&l+1=Q)return W(E.Unexpected_end_of_text),"";let K=V(l);switch(l++,K){case 48:if(l>=Q||!fi(V(l)))return"\0";case 49:case 50:case 51:l=55296&&xe<=56319&&l+6=56320&&We<=57343)return l=be,Se+String.fromCharCode(We)}return Se;case 120:for(;l<$+4;l++)if(!(l1114111&&(R&&W(E.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,l-K),we=!0),l>=Q?(R&&W(E.Unexpected_end_of_text),we=!0):V(l)===125?l++:(R&&W(E.Unterminated_Unicode_escape_sequence),we=!0),we?(I|=2048,P.substring($,l)):(I|=8,Pd(Se))}function On(){if(l+5=0&&Er(K,e)){R+=Bn(!0),$=l;continue}if(K=On(),!(K>=0&&Er(K,e)))break;I|=1024,R+=P.substring($,l),R+=Pd(K),l+=6,$=l}else break}return R+=P.substring($,l),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let $=x.charCodeAt(0);if($>=97&&$<=122){let K=Hy.get(x);if(K!==void 0)return g=K}}return g=80}function qn(R){let $="",K=!1,xe=!1;for(;;){let Se=V(l);if(Se===95){I|=512,K?(K=!1,xe=!0):W(xe?E.Multiple_consecutive_numeric_separators_are_not_permitted:E.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(K=!0,!fi(Se)||Se-48>=R)break;$+=P[l],l++,xe=!1}return V(l-1)===95&&W(E.Numeric_separators_are_not_allowed_here,l-1,1),$}function $t(){return V(l)===110?(x+="n",I&384&&(x=Sb(x)+"n"),l++,10):(x=""+(I&128?parseInt(x.slice(2),2):I&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=l,I=0;;){if(y=l,l>=Q)return g=1;let R=ae(l);if(l===0&&R===35&&Gm(P,l)){if(l=Ym(P,l),t)continue;return g=6}switch(R){case 10:case 13:if(I|=1,t){l++;continue}else return R===13&&l+1=0&&Zn($,e))return x=Bn(!0)+vt(),g=Qe();let K=On();return K>=0&&Zn(K,e)?(l+=6,I|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(W(E.Invalid_character),l++,g=0);case 35:if(l!==0&&P[l+1]==="!")return W(E.can_only_be_used_at_the_start_of_a_file,l,2),l++,g=0;let xe=ae(l+1);if(xe===92){l++;let be=Mt();if(be>=0&&Zn(be,e))return x="#"+Bn(!0)+vt(),g=81;let We=On();if(We>=0&&Zn(We,e))return l+=6,I|=1024,x="#"+String.fromCharCode(We)+vt(),g=81;l--}return Zn(xe,e)?(l++,Jt(xe,e)):(x="#",W(E.Invalid_character,l++,Ft(R))),g=81;case 65533:return W(E.File_appears_to_be_binary,0,0),l=Q,g=8;default:let Se=Jt(R,e);if(Se)return g=Se;if(rs(R)){l+=Ft(R);continue}else if(Cn(R)){I|=1,l+=Ft(R);continue}let we=Ft(R);return W(E.Invalid_character,l,we),l+=we,g=0}}}function _t(){switch(de){case 0:return!0;case 1:return!1}return ye!==3&&ye!==4?!0:de===3?!1:ng.test(P.slice(h,l))}function Ut(){B.assert(g===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=y=h,I=0;let R=ae(l),$=Jt(R,99);return $?g=$:(l+=Ft(R),g)}function Jt(R,$){let K=R;if(Zn(K,$)){for(l+=Ft(K);l=Q)return g=1;let $=V(l);if($===60)return V(l+1)===47?(l+=2,g=31):(l++,g=30);if($===123)return l++,g=19;let K=0;for(;l0)break;Ba($)||(K=l)}l++}return x=P.substring(h,l),K===-1?13:12}function Nr(){if(wt(g)){for(;l=Q)return g=1;for(let $=V(l);l=0&&rs(V(l-1))&&!(l+1=Q)return g=1;let R=ae(l);switch(l+=Ft(R),R){case 9:case 11:case 12:case 32:for(;l=0&&Zn($,e))return x=Bn(!0)+vt(),g=Qe();let K=On();return K>=0&&Zn(K,e)?(l+=6,I|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(l++,g=0)}if(Zn(R,e)){let $=R;for(;l=0),l=R,h=R,y=R,g=0,x=void 0,I=0}function Si(R){he+=R?1:-1}}function Wi(e,t){return e.codePointAt(t)}function Ft(e){return e>=65536?2:e===-1?0:1}function fg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var dg=String.fromCodePoint?e=>String.fromCodePoint(e):fg;function Pd(e){return dg(e)}var Nd=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Id=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Od=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ra={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ra.Script_Extensions=Ra.Script;function wr(e){return e.start+e.length}function mg(e){return e.length===0}function cf(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function hg(e,t){return cf(e,t-e)}function K_(e){return cf(e.span.start,e.newLength)}function yg(e){return mg(e.span)&&e.newLength===0}function Qm(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var H4=Qm(cf(0,0),0);function lf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function hl(e){return(e.flags&16)===0}function gg(e,t){if(e===void 0||hl(e))return e;for(e=e.original;e;){if(hl(e))return!t||t(e)?e:void 0;e=e.original}}function Ja(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function cs(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Pn(e){return cs(e.escapedText)}function wl(e){let t=zm(e.escapedText);return t?Sy(t,di):void 0}function jp(e){return e.valueDeclaration&&Bg(e.valueDeclaration)?Pn(e.valueDeclaration.name):cs(e.escapedName)}function Km(e){let t=e.parent.parent;if(t){if(Ld(t))return el(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return el(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(tt(o))return o}break;case 217:return el(t.expression);case 256:{if(Ld(t.statement)||l1(t.statement))return el(t.statement);break}}}}function el(e){let t=Zm(e);return t&&tt(t)?t:void 0}function bg(e){return e.name||Km(e)}function vg(e){return!!e.name}function uf(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(gf(a)){case 1:case 4:case 5:case 3:return bf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return bg(e);case 340:return Km(e);case 277:{let{expression:a}=e;return tt(a)?a:void 0}case 212:let t=e;if(y1(t))return t.argumentExpression}return e.name}function Zm(e){if(e!==void 0)return uf(e)||(Jf(e)||Lf(e)||vl(e)?Tg(e):void 0)}function Tg(e){if(e.parent){if(th(e.parent)||F1(e.parent))return e.parent.name;if(Ki(e.parent)&&e===e.parent.right){if(tt(e.parent.left))return e.parent.left;if(S1(e.parent.left))return bf(e.parent.left)}else if(jf(e.parent)&&tt(e.parent.name))return e.parent.name}else return}function pf(e){if(W2(e))return Gr(e.modifiers,Al)}function e1(e){if(bs(e,98303))return Gr(e.modifiers,Fg)}function t1(e,t){if(e.name)if(tt(e.name)){let a=e.name.escapedText;return ls(e.parent,t).filter(o=>Vp(o)&&tt(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=ls(e.parent,t).filter(Vp);if(ash(o)&&o.typeParameters.some(m=>m.name.escapedText===a))}function wg(e){return n1(e,!1)}function kg(e){return n1(e,!0)}function Eg(e){return bi(e,o6)}function Ag(e){return Jg(e,y6)}function Cg(e){return bi(e,c6,!0)}function Dg(e){return bi(e,l6,!0)}function Pg(e){return bi(e,u6,!0)}function Ng(e){return bi(e,p6,!0)}function Ig(e){return bi(e,f6,!0)}function Og(e){return bi(e,m6,!0)}function Mg(e){let t=bi(e,Vf);if(t&&t.typeExpression&&t.typeExpression.type)return t}function ls(e,t){var a;if(!vf(e))return bt;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let m=D2(e,t);B.assert(m.length<2||m[0]!==m[1]),o=Em(m,v=>_h(v)?v.tags:v),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function r1(e){return ls(e,!1)}function bi(e,t,a){return wm(ls(e,a),t)}function Jg(e,t){return r1(e).filter(t)}function Rp(e){return e.kind===80||e.kind===81}function Lg(e){return Hr(e)&&!!(e.flags&64)}function jg(e){return Ha(e)&&!!(e.flags&64)}function Md(e){return Mf(e)&&!!(e.flags&64)}function ff(e){return Wf(e,8)}function Rg(e){return ll(e)&&!!(e.flags&64)}function df(e){return e>=166}function mf(e){return e>=0&&e<=165}function i1(e){return mf(e.kind)}function mi(e){return Cr(e,"pos")&&Cr(e,"end")}function Ug(e){return 9<=e&&e<=15}function Jd(e){return 15<=e&&e<=18}function Ua(e){var t;return tt(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function a1(e){var t;return gi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Bg(e){return(Va(e)||Gg(e))&&gi(e.name)}function Wr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function qg(e){return!!(T1(e)&31)}function zg(e){return qg(e)||e===126||e===164||e===129}function Fg(e){return Wr(e.kind)}function _1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function hf(e){return!!e&&Wg(e.kind)}function Vg(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Wg(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return Vg(e)}}function vi(e){return e&&(e.kind===263||e.kind===231)}function Gg(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Yg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function s1(e){return nb(e.kind)}function Hg(e){if(e){let t=e.kind;return t===207||t===206}return!1}function Xg(e){let t=e.kind;return t===209||t===210}function $g(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qa(e){return o1(ff(e).kind)}function o1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Qg(e){return c1(ff(e).kind)}function c1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return o1(e)}}function l1(e){return Kg(ff(e).kind)}function Kg(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return c1(e)}}function Zg(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function u1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function p1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Ld(e){return e.kind===168?e.parent&&e.parent.kind!==345||Zi(e):Zg(e.kind)}function e2(e){let t=e.kind;return p1(t)||u1(t)||t2(e)}function t2(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!h2(e)}function n2(e){let t=e.kind;return p1(t)||u1(t)||t===241}function f1(e){return e.kind>=309&&e.kind<=351}function r2(e){return e.kind===320||e.kind===319||e.kind===321||_2(e)||i2(e)||s6(e)||Nl(e)}function i2(e){return e.kind>=327&&e.kind<=351}function tl(e){return e.kind===178}function nl(e){return e.kind===177}function Yi(e){if(!vf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function a2(e){return!!e.initializer}function kl(e){return e.kind===11||e.kind===15}function _2(e){return e.kind===324||e.kind===325||e.kind===326}function jd(e){return(e.flags&33554432)!==0}var X4=s2();function s2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ba(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Fa,decreaseIndent:Fa,clear:()=>e=""}}function o2(e,t){let a=e.entries();for(let[o,m]of a){let v=t(m,o);if(v)return v}}function c2(e){return e.end-e.pos}function d1(e){return l2(e),(e.flags&1048576)!==0}function l2(e){e.flags&2097152||((e.flags&262144||Xt(e,d1))&&(e.flags|=1048576),e.flags|=2097152)}function hi(e){for(;e&&e.kind!==307;)e=e.parent;return e}function Hi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Up(e){return!Hi(e)}function yl(e,t,a){if(Hi(e))return e.pos;if(f1(e)||e.kind===12)return Ar((t??hi(e)).text,e.pos,!1,!0);if(a&&Yi(e))return yl(e.jsDoc[0],t);if(e.kind===352){t??(t=hi(e));let o=Xp(oh(e,t));if(o)return yl(o,t,a)}return Ar((t??hi(e)).text,e.pos,!1,!1,y2(e))}function Rd(e,t,a=!1){return is(e.text,t,a)}function u2(e){return!!lf(e,rh)}function is(e,t,a=!1){if(Hi(t))return"";let o=e.substring(a?t.pos:Ar(e,t.pos),t.end);return u2(t)&&(o=o.split(/\r\n|\n|\r/).map(m=>m.replace(/^\s*\*/,"").trimStart()).join(` +`)),o}function za(e){let t=e.emitNode;return t&&t.flags||0}function p2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function cl(e){return e.kind===244&&e.expression.kind===11}function yf(e){return!!(za(e)&2097152)}function Ud(e){return yf(e)&&Rf(e)}function f2(e){return tt(e.name)&&!e.initializer}function Bd(e){return yf(e)&&Xa(e)&&Yp(e.declarationList.declarations,f2)}function d2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Hp(ug(t,e.pos),Lp(t,e.pos)):Lp(t,e.pos);return Gr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function m2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function h2(e){return e&&e.kind===241&&hf(e.parent)}function qd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function Zi(e){return!!e&&!!(e.flags&524288)}function y2(e){return!!e&&!!(e.flags&16777216)}function g2(e){for(;gl(e,!0);)e=e.right;return e}function b2(e){return tt(e)&&e.escapedText==="exports"}function v2(e){return tt(e)&&e.escapedText==="module"}function m1(e){return(Hr(e)||h1(e))&&v2(e.expression)&&ps(e)==="exports"}function gf(e){let t=x2(e);return t===5||Zi(e)?t:0}function T2(e){return ts(e.arguments)===3&&Hr(e.expression)&&tt(e.expression.expression)&&Pn(e.expression.expression)==="Object"&&Pn(e.expression.name)==="defineProperty"&&El(e.arguments[1])&&us(e.arguments[0],!0)}function h1(e){return Ha(e)&&El(e.argumentExpression)}function gs(e,t){return Hr(e)&&(!t&&e.expression.kind===110||tt(e.name)&&us(e.expression,!0))||y1(e,t)}function y1(e,t){return h1(e)&&(!t&&e.expression.kind===110||Sf(e.expression)||gs(e.expression,!0))}function us(e,t){return Sf(e)||gs(e,t)}function x2(e){if(Mf(e)){if(!T2(e))return 0;let t=e.arguments[0];return b2(t)||m1(t)?8:gs(t)&&ps(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!S1(e.left)||S2(g2(e))?0:us(e.left.expression,!0)&&ps(e.left)==="prototype"&&Of(k2(e))?6:w2(e.left)}function S2(e){return t6(e)&&ea(e.expression)&&e.expression.text==="0"}function bf(e){if(Hr(e))return e.name;let t=Tf(e.argumentExpression);return ea(t)||kl(t)?t:e}function ps(e){let t=bf(e);if(t){if(tt(t))return t.escapedText;if(kl(t)||ea(t))return Ja(t.text)}}function w2(e){if(e.expression.kind===110)return 4;if(m1(e))return 2;if(us(e.expression,!0)){if(eb(e.expression))return 3;let t=e;for(;!tt(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ps(t)==="exports")&&gs(e))return 1;if(us(e,!0)||Ha(e)&&U2(e))return 5}return 0}function k2(e){for(;Ki(e.right);)e=e.right;return e.right}function E2(e){return Dl(e)&&Ki(e.expression)&&gf(e.expression)!==0&&Ki(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function A2(e){switch(e.kind){case 243:let t=Bp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Bp(e){return Xa(e)?Xp(e.declarationList.declarations):void 0}function C2(e){return Ti(e)&&e.body&&e.body.kind===267?e.body:void 0}function vf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function D2(e,t){let a;m2(e)&&a2(e)&&Yi(e.initializer)&&(a=Dn(a,zd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Yi(o)&&(a=Dn(a,zd(e,o.jsDoc))),o.kind===169){a=Dn(a,(t?Sg:xg)(o));break}if(o.kind===168){a=Dn(a,(t?kg:wg)(o));break}o=N2(o)}return a||bt}function zd(e,t){let a=dy(t);return Em(t,o=>{if(o===a){let m=Gr(o.tags,v=>P2(e,v));return o.tags===m?[o]:m}else return Gr(o.tags,d6)})}function P2(e,t){return!(Vf(t)||g6(t))||!t.parent||!_h(t.parent)||!Cl(t.parent.parent)||t.parent.parent===e}function N2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||C2(t)||gl(e))return t;if(t.parent&&(Bp(t.parent)===e||gl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||A2(t.parent.parent)===e||E2(t.parent.parent)))return t.parent.parent}function Tf(e,t){return Wf(e,t?-2147483647:1)}function I2(e){let t=O2(e);if(t&&Zi(e)){let a=Eg(e);if(a)return a.class}return t}function O2(e){let t=xf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function M2(e){if(Zi(e))return Ag(e).map(t=>t.class);{let t=xf(e.heritageClauses,119);return t==null?void 0:t.types}}function J2(e){return vs(e)?L2(e)||bt:vi(e)&&Hp(Op(I2(e)),M2(e))||bt}function L2(e){let t=xf(e.heritageClauses,96);return t?t.types:void 0}function xf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function di(e){return 83<=e&&e<=165}function j2(e){return 19<=e&&e<=79}function Sp(e){return di(e)||j2(e)}function El(e){return kl(e)||ea(e)}function R2(e){return G1(e)&&(e.operator===40||e.operator===41)&&ea(e.operand)}function U2(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ha(e)?Tf(e.argumentExpression):e.expression;return!El(t)&&!R2(t)}function B2(e){return Rp(e)?Pn(e):eh(e)?Db(e):e.text}function La(e){return fs(e.pos)||fs(e.end)}function wp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function kp(e){return!!((e.templateFlags||0)&2048)}function q2(e){return e&&!!(D1(e)?kp(e):kp(e.head)||Ht(e.templateSpans,t=>kp(t.literal)))}var $4=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var Q4=new Map(Object.entries({'"':""","'":"'"}));function z2(e){return!!e&&e.kind===80&&F2(e)}function F2(e){return e.escapedText==="this"}function bs(e,t){return!!G2(e,t)}function V2(e){return bs(e,256)}function W2(e){return bs(e,32768)}function G2(e,t){return H2(e)&t}function Y2(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=v1(e)|536870912),a||t&&Zi(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=g1(e)|268435456),b1(e.modifierFlagsCache)):X2(e.modifierFlagsCache))}function H2(e){return Y2(e,!1)}function g1(e){let t=0;return e.parent&&!ds(e)&&(Zi(e)&&(Cg(e)&&(t|=8388608),Dg(e)&&(t|=16777216),Pg(e)&&(t|=33554432),Ng(e)&&(t|=67108864),Ig(e)&&(t|=134217728)),Og(e)&&(t|=65536)),t}function X2(e){return e&65535}function b1(e){return e&131071|(e&260046848)>>>23}function $2(e){return b1(g1(e))}function Q2(e){return v1(e)|$2(e)}function v1(e){let t=Il(e)?Rn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Rn(e){let t=0;if(e)for(let a of e)t|=T1(a.kind);return t}function T1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function K2(e){return e===76||e===77||e===78}function x1(e){return e>=64&&e<=79}function gl(e,t){return Ki(e)&&(t?e.operatorToken.kind===64:x1(e.operatorToken.kind))&&qa(e.left)}function Sf(e){return e.kind===80||Z2(e)}function Z2(e){return Hr(e)&&tt(e.name)&&Sf(e.expression)}function eb(e){return gs(e)&&ps(e)==="prototype"}function Ep(e){return e.flags&3899393?e.objectFlags:0}function tb(e){let t;return Xt(e,a=>{Up(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(Up(a[o])){t=a[o];break}}),t}function nb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function S1(e){return e.kind===211||e.kind===212}function rb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function ib(e,t){this.flags=t,(B.isDebugging||sl)&&(this.checker=e)}function ab(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Ap(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function _b(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function sb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function ob(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var At={getNodeConstructor:()=>Ap,getTokenConstructor:()=>_b,getIdentifierConstructor:()=>sb,getPrivateIdentifierConstructor:()=>Ap,getSourceFileConstructor:()=>Ap,getSymbolConstructor:()=>rb,getTypeConstructor:()=>ib,getSignatureConstructor:()=>ab,getSourceMapSourceConstructor:()=>ob},cb=[];function lb(e){Object.assign(At,e),Un(cb,t=>t(At))}function ub(e,t){return e.replace(/\{(\d+)\}/g,(a,o)=>""+B.checkDefined(t[+o]))}var Fd;function pb(e){return Fd&&Fd[e.key]||e.message}function Oa(e,t,a,o,m,...v){a+o>t.length&&(o=t.length-a),p2(t,a,o);let A=pb(m);return Ht(v)&&(A=ub(A,v)),{file:void 0,start:a,length:o,messageText:A,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:e}}function fb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function w1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let m={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){m.relatedInformation=[];for(let v of e.relatedInformation)fb(v)&&v.fileName===a?(B.assertLessThanOrEqual(v.start,o),B.assertLessThanOrEqual(v.start+v.length,o),m.relatedInformation.push(w1(v,t))):m.relatedInformation.push(v)}return m}function qi(e,t){let a=[];for(let o of e)a.push(w1(o,t));return a}function Vd(e){return e===4||e===2||e===1||e===6?1:0}var at={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:at.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(at.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(at.module.computeValue(e)===100||at.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(at.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:at.esModuleInterop.computeValue(e)||at.module.computeValue(e)===4||at.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Wd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Wd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:at.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||at.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&at.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?at.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vr(e,"useUnknownInCatchVariables")}};var K4=at.allowImportingTsExtensions.computeValue,Z4=at.target.computeValue,e3=at.module.computeValue,t3=at.moduleResolution.computeValue,n3=at.moduleDetection.computeValue,r3=at.isolatedModules.computeValue,i3=at.esModuleInterop.computeValue,a3=at.allowSyntheticDefaultImports.computeValue,_3=at.resolvePackageJsonExports.computeValue,s3=at.resolvePackageJsonImports.computeValue,o3=at.resolveJsonModule.computeValue,c3=at.declaration.computeValue,l3=at.preserveConstEnums.computeValue,u3=at.incremental.computeValue,p3=at.declarationMap.computeValue,f3=at.allowJs.computeValue,d3=at.useDefineForClassFields.computeValue;function Wd(e){return e>=3&&e<=99||e===100}function Vr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function db(e){return o2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var mb=["node_modules","bower_components","jspm_packages"],k1=`(?!(${mb.join("|")})(/|$))`,hb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${k1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>E1(e,hb.singleAsteriskRegexFragment)},yb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${k1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>E1(e,yb.singleAsteriskRegexFragment)};function E1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function gb(e,t){return t||bb(e)||3}function bb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var A1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],m3=km(A1),h3=[...A1,[".json"]];var vb=[[".js",".jsx"],[".mjs"],[".cjs"]],y3=km(vb),Tb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],g3=[...Tb,[".json"]],xb=[".d.ts",".d.cts",".d.mts"];function fs(e){return!(e>=0)}function rl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==bt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Sb(e){let 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:let Q=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,Q)||"0"}let a=2,o=e.length-1,m=(o-a)*t,v=new Uint16Array((m>>>4)+(m&15?1:0));for(let Q=o-1,h=0;Q>=a;Q--,h+=t){let y=h>>>4,g=e.charCodeAt(Q),I=(g<=57?g-48:10+g-(g<=70?65:97))<<(h&15);v[y]|=I;let re=I>>>16;re&&(v[y+1]|=re)}let A="",P=v.length-1,l=!0;for(;l;){let Q=0;l=!1;for(let h=P;h>=0;h--){let y=Q<<16|v[h],g=y/10|0;v[h]=g,Q=y-g*10,g&&!l&&(P=h,l=!0)}A=Q+A}return A}function wb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function qp(e,t){return e.pos=t,e}function kb(e,t){return e.end=t,e}function yi(e,t,a){return kb(qp(e,t),a)}function Gd(e,t,a){return yi(e,t,t+a)}function wf(e,t){return e&&t&&(e.parent=t),e}function Eb(e,t){if(!e)return e;return bm(e,f1(e)?a:m),e;function a(v,A){if(t&&v.parent===A)return"skip";wf(v,A)}function o(v){if(Yi(v))for(let A of v.jsDoc)a(A,v),bm(A,a)}function m(v,A){return a(v,A)||o(v)}}function Ab(e){return!!(e.flags&262144&&e.isThisType)}function Cb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Db(e){return`${Pn(e.namespace)}:${Pn(e.name)}`}var b3=String.prototype.replace;var zp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],v3=new Set(zp),Pb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),T3=new Set([...zp,...zp.map(e=>`node:${e}`),...Pb]);function Nb(){let e,t,a,o,m;return{createBaseSourceFileNode:v,createBaseIdentifierNode:A,createBasePrivateIdentifierNode:P,createBaseTokenNode:l,createBaseNode:Q};function v(h){return new(m||(m=At.getSourceFileConstructor()))(h,-1,-1)}function A(h){return new(a||(a=At.getIdentifierConstructor()))(h,-1,-1)}function P(h){return new(o||(o=At.getPrivateIdentifierConstructor()))(h,-1,-1)}function l(h){return new(t||(t=At.getTokenConstructor()))(h,-1,-1)}function Q(h){return new(e||(e=At.getNodeConstructor()))(h,-1,-1)}}var Ib={getParenthesizeLeftSideOfBinaryForOperator:e=>gt,getParenthesizeRightSideOfBinaryForOperator:e=>gt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:gt,parenthesizeConditionOfConditionalExpression:gt,parenthesizeBranchOfConditionalExpression:gt,parenthesizeExpressionOfExportDefault:gt,parenthesizeExpressionOfNew:e=>kr(e,qa),parenthesizeLeftSideOfAccess:e=>kr(e,qa),parenthesizeOperandOfPostfixUnary:e=>kr(e,qa),parenthesizeOperandOfPrefixUnary:e=>kr(e,Qg),parenthesizeExpressionsOfCommaDelimitedList:e=>kr(e,mi),parenthesizeExpressionForDisallowedComma:gt,parenthesizeExpressionOfExpressionStatement:gt,parenthesizeConciseBodyOfArrowFunction:gt,parenthesizeCheckTypeOfConditionalType:gt,parenthesizeExtendsTypeOfConditionalType:gt,parenthesizeConstituentTypesOfUnionType:e=>kr(e,mi),parenthesizeConstituentTypeOfUnionType:gt,parenthesizeConstituentTypesOfIntersectionType:e=>kr(e,mi),parenthesizeConstituentTypeOfIntersectionType:gt,parenthesizeOperandOfTypeOperator:gt,parenthesizeOperandOfReadonlyTypeOperator:gt,parenthesizeNonArrayTypeOfPostfixType:gt,parenthesizeElementTypesOfTupleType:e=>kr(e,mi),parenthesizeElementTypeOfTupleType:gt,parenthesizeTypeOfOptionalType:gt,parenthesizeTypeArguments:e=>e&&kr(e,mi),parenthesizeLeadingTypeArgument:gt},il=0;var Ob=[];function kf(e,t){let a=e&8?gt:Rb,o=Sd(()=>e&1?Ib:createParenthesizerRules(ye)),m=Sd(()=>e&2?nullNodeConverters:createNodeConverters(ye)),v=Kn(n=>(i,_)=>la(i,n,_)),A=Kn(n=>i=>jr(n,i)),P=Kn(n=>i=>ni(i,n)),l=Kn(n=>()=>Xo(n)),Q=Kn(n=>i=>C_(n,i)),h=Kn(n=>(i,_)=>Su(n,i,_)),y=Kn(n=>(i,_)=>$o(n,i,_)),g=Kn(n=>(i,_)=>xu(n,i,_)),x=Kn(n=>(i,_)=>dc(n,i,_)),I=Kn(n=>(i,_,c)=>Mu(n,i,_,c)),re=Kn(n=>(i,_,c)=>mc(n,i,_,c)),he=Kn(n=>(i,_,c,f)=>Ju(n,i,_,c,f)),ye={get parenthesizer(){return o()},get converters(){return m()},baseFactory:t,flags:e,createNodeArray:de,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:dt,createStringLiteralFromNode:nr,createRegularExpressionLiteral:gn,createLiteralLikeNode:rr,createIdentifier:Ge,createTempVariable:ir,createLoopVariable:Pr,createUniqueName:Ot,getGeneratedNameForNode:Bn,createPrivateIdentifier:Mt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:qn,createToken:ct,createSuper:_t,createThis:Ut,createNull:Jt,createTrue:lt,createFalse:ar,createModifier:mt,createModifiersFromModifierFlags:vn,createQualifiedName:yt,updateQualifiedName:cn,createComputedPropertyName:nt,updateComputedPropertyName:Bt,createTypeParameterDeclaration:rn,updateTypeParameterDeclaration:_r,createParameterDeclaration:fr,updateParameterDeclaration:dr,createDecorator:zn,updateDecorator:Fn,createPropertySignature:Nr,updatePropertySignature:Vn,createPropertyDeclaration:mr,updatePropertyDeclaration:L,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:Te,updateMethodDeclaration:Xe,createConstructorDeclaration:ut,updateConstructorDeclaration:Ir,createGetAccessorDeclaration:Mn,updateGetAccessorDeclaration:Wn,createSetAccessorDeclaration:R,updateSetAccessorDeclaration:$,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:be,createIndexSignature:We,updateIndexSignature:Ze,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Dt,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:Tn,createTypePredicateNode:rt,updateTypePredicateNode:ln,createTypeReferenceNode:Zr,updateTypeReferenceNode:J,createFunctionTypeNode:qe,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:an,createTypeQueryNode:Pt,updateTypeQueryNode:kt,createTypeLiteralNode:Nt,updateTypeLiteralNode:qt,createArrayTypeNode:Gn,updateArrayTypeNode:wi,createTupleTypeNode:un,updateTupleTypeNode:G,createNamedTupleMember:le,updateNamedTupleMember:Fe,createOptionalTypeNode:ve,updateOptionalTypeNode:j,createRestTypeNode:ht,updateRestTypeNode:xt,createUnionTypeNode:Bl,updateUnionTypeNode:Es,createIntersectionTypeNode:Or,updateIntersectionTypeNode:Je,createConditionalTypeNode:ft,updateConditionalTypeNode:ql,createInferTypeNode:Yn,updateInferTypeNode:zl,createImportTypeNode:sr,updateImportTypeNode:ia,createParenthesizedType:Qt,updateParenthesizedType:Ct,createThisTypeNode:D,createTypeOperatorNode:Gt,updateTypeOperatorNode:Mr,createIndexedAccessTypeNode:or,updateIndexedAccessTypeNode:Ka,createMappedTypeNode:St,updateMappedTypeNode:jt,createLiteralTypeNode:ei,updateLiteralTypeNode:yr,createTemplateLiteralType:Wt,updateTemplateLiteralType:Fl,createObjectBindingPattern:As,updateObjectBindingPattern:Vl,createArrayBindingPattern:Jr,updateArrayBindingPattern:Wl,createBindingElement:aa,updateBindingElement:ti,createArrayLiteralExpression:Za,updateArrayLiteralExpression:Cs,createObjectLiteralExpression:ki,updateObjectLiteralExpression:Gl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(cr(n,i),262144):cr,updatePropertyAccessExpression:Yl,createPropertyAccessChain:e&4?(n,i,_)=>setEmitFlags(Ei(n,i,_),262144):Ei,updatePropertyAccessChain:_a,createElementAccessExpression:Ai,updateElementAccessExpression:Hl,createElementAccessChain:Ns,updateElementAccessChain:e_,createCallExpression:Ci,updateCallExpression:sa,createCallChain:t_,updateCallChain:Os,createNewExpression:xn,updateNewExpression:n_,createTaggedTemplateExpression:oa,updateTaggedTemplateExpression:Ms,createTypeAssertion:Js,updateTypeAssertion:Ls,createParenthesizedExpression:r_,updateParenthesizedExpression:js,createFunctionExpression:i_,updateFunctionExpression:Rs,createArrowFunction:a_,updateArrowFunction:Us,createDeleteExpression:Bs,updateDeleteExpression:qs,createTypeOfExpression:ca,updateTypeOfExpression:fn,createVoidExpression:__,updateVoidExpression:lr,createAwaitExpression:zs,updateAwaitExpression:Lr,createPrefixUnaryExpression:jr,updatePrefixUnaryExpression:Xl,createPostfixUnaryExpression:ni,updatePostfixUnaryExpression:$l,createBinaryExpression:la,updateBinaryExpression:Ql,createConditionalExpression:Vs,updateConditionalExpression:Ws,createTemplateExpression:Gs,updateTemplateExpression:Hn,createTemplateHead:Hs,createTemplateMiddle:ua,createTemplateTail:s_,createNoSubstitutionTemplateLiteral:Zl,createTemplateLiteralLikeNode:ii,createYieldExpression:o_,updateYieldExpression:eu,createSpreadElement:Xs,updateSpreadElement:tu,createClassExpression:$s,updateClassExpression:c_,createOmittedExpression:l_,createExpressionWithTypeArguments:Qs,updateExpressionWithTypeArguments:Ks,createAsExpression:dn,updateAsExpression:pa,createNonNullExpression:Zs,updateNonNullExpression:eo,createSatisfiesExpression:u_,updateSatisfiesExpression:to,createNonNullChain:p_,updateNonNullChain:Jn,createMetaProperty:no,updateMetaProperty:f_,createTemplateSpan:Xn,updateTemplateSpan:fa,createSemicolonClassElement:ro,createBlock:Rr,updateBlock:nu,createVariableStatement:d_,updateVariableStatement:io,createEmptyStatement:ao,createExpressionStatement:Pi,updateExpressionStatement:_o,createIfStatement:so,updateIfStatement:oo,createDoStatement:co,updateDoStatement:lo,createWhileStatement:uo,updateWhileStatement:ru,createForStatement:po,updateForStatement:fo,createForInStatement:m_,updateForInStatement:iu,createForOfStatement:mo,updateForOfStatement:au,createContinueStatement:ho,updateContinueStatement:_u,createBreakStatement:h_,updateBreakStatement:yo,createReturnStatement:y_,updateReturnStatement:su,createWithStatement:g_,updateWithStatement:go,createSwitchStatement:b_,updateSwitchStatement:ai,createLabeledStatement:bo,updateLabeledStatement:vo,createThrowStatement:To,updateThrowStatement:ou,createTryStatement:xo,updateTryStatement:cu,createDebuggerStatement:So,createVariableDeclaration:da,updateVariableDeclaration:wo,createVariableDeclarationList:v_,updateVariableDeclarationList:lu,createFunctionDeclaration:ko,updateFunctionDeclaration:T_,createClassDeclaration:Eo,updateClassDeclaration:ma,createInterfaceDeclaration:Ao,updateInterfaceDeclaration:Co,createTypeAliasDeclaration:ot,updateTypeAliasDeclaration:gr,createEnumDeclaration:x_,updateEnumDeclaration:br,createModuleDeclaration:Do,updateModuleDeclaration:Et,createModuleBlock:vr,updateModuleBlock:zt,createCaseBlock:Po,updateCaseBlock:pu,createNamespaceExportDeclaration:No,updateNamespaceExportDeclaration:Io,createImportEqualsDeclaration:Oo,updateImportEqualsDeclaration:Mo,createImportDeclaration:Jo,updateImportDeclaration:Lo,createImportClause:jo,updateImportClause:Ro,createAssertClause:S_,updateAssertClause:du,createAssertEntry:Ni,updateAssertEntry:Uo,createImportTypeAssertionContainer:w_,updateImportTypeAssertionContainer:Bo,createImportAttributes:qo,updateImportAttributes:k_,createImportAttribute:zo,updateImportAttribute:Fo,createNamespaceImport:Vo,updateNamespaceImport:mu,createNamespaceExport:Wo,updateNamespaceExport:hu,createNamedImports:Go,updateNamedImports:Yo,createImportSpecifier:Tr,updateImportSpecifier:yu,createExportAssignment:ha,updateExportAssignment:Ii,createExportDeclaration:ya,updateExportDeclaration:Ho,createNamedExports:E_,updateNamedExports:gu,createExportSpecifier:ga,updateExportSpecifier:bu,createMissingDeclaration:vu,createExternalModuleReference:A_,updateExternalModuleReference:Tu,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return y(315)},get updateJSDocNonNullableType(){return g(315)},get createJSDocNullableType(){return y(314)},get updateJSDocNullableType(){return g(314)},get createJSDocOptionalType(){return Q(316)},get updateJSDocOptionalType(){return h(316)},get createJSDocVariadicType(){return Q(318)},get updateJSDocVariadicType(){return h(318)},get createJSDocNamepathType(){return Q(319)},get updateJSDocNamepathType(){return h(319)},createJSDocFunctionType:Qo,updateJSDocFunctionType:wu,createJSDocTypeLiteral:Ko,updateJSDocTypeLiteral:ku,createJSDocTypeExpression:Zo,updateJSDocTypeExpression:D_,createJSDocSignature:ec,updateJSDocSignature:Eu,createJSDocTemplateTag:P_,updateJSDocTemplateTag:tc,createJSDocTypedefTag:ba,updateJSDocTypedefTag:Au,createJSDocParameterTag:N_,updateJSDocParameterTag:Cu,createJSDocPropertyTag:nc,updateJSDocPropertyTag:rc,createJSDocCallbackTag:ic,updateJSDocCallbackTag:ac,createJSDocOverloadTag:_c,updateJSDocOverloadTag:I_,createJSDocAugmentsTag:O_,updateJSDocAugmentsTag:Mi,createJSDocImplementsTag:sc,updateJSDocImplementsTag:Ou,createJSDocSeeTag:Br,updateJSDocSeeTag:va,createJSDocImportTag:gc,updateJSDocImportTag:bc,createJSDocNameReference:oc,updateJSDocNameReference:Du,createJSDocMemberName:cc,updateJSDocMemberName:Pu,createJSDocLink:lc,updateJSDocLink:uc,createJSDocLinkCode:pc,updateJSDocLinkCode:Nu,createJSDocLinkPlain:fc,updateJSDocLinkPlain:Iu,get createJSDocTypeTag(){return re(344)},get updateJSDocTypeTag(){return he(344)},get createJSDocReturnTag(){return re(342)},get updateJSDocReturnTag(){return he(342)},get createJSDocThisTag(){return re(343)},get updateJSDocThisTag(){return he(343)},get createJSDocAuthorTag(){return x(330)},get updateJSDocAuthorTag(){return I(330)},get createJSDocClassTag(){return x(332)},get updateJSDocClassTag(){return I(332)},get createJSDocPublicTag(){return x(333)},get updateJSDocPublicTag(){return I(333)},get createJSDocPrivateTag(){return x(334)},get updateJSDocPrivateTag(){return I(334)},get createJSDocProtectedTag(){return x(335)},get updateJSDocProtectedTag(){return I(335)},get createJSDocReadonlyTag(){return x(336)},get updateJSDocReadonlyTag(){return I(336)},get createJSDocOverrideTag(){return x(337)},get updateJSDocOverrideTag(){return I(337)},get createJSDocDeprecatedTag(){return x(331)},get updateJSDocDeprecatedTag(){return I(331)},get createJSDocThrowsTag(){return re(349)},get updateJSDocThrowsTag(){return he(349)},get createJSDocSatisfiesTag(){return re(350)},get updateJSDocSatisfiesTag(){return he(350)},createJSDocEnumTag:yc,updateJSDocEnumTag:M_,createJSDocUnknownTag:hc,updateJSDocUnknownTag:Lu,createJSDocText:J_,updateJSDocText:ju,createJSDocComment:Ji,updateJSDocComment:vc,createJsxElement:Tc,updateJsxElement:Ru,createJsxSelfClosingElement:xc,updateJsxSelfClosingElement:L_,createJsxOpeningElement:j_,updateJsxOpeningElement:Sc,createJsxClosingElement:Ta,updateJsxClosingElement:Kt,createJsxFragment:R_,createJsxText:xa,updateJsxText:kc,createJsxOpeningFragment:Uu,createJsxJsxClosingFragment:Bu,updateJsxFragment:wc,createJsxAttribute:Ec,updateJsxAttribute:Sa,createJsxAttributes:Ac,updateJsxAttributes:qu,createJsxSpreadAttribute:Cc,updateJsxSpreadAttribute:zu,createJsxExpression:wa,updateJsxExpression:Li,createJsxNamespacedName:Dc,updateJsxNamespacedName:U_,createCaseClause:B_,updateCaseClause:Fu,createDefaultClause:_i,updateDefaultClause:Pc,createHeritageClause:Nc,updateHeritageClause:Vu,createCatchClause:q_,updateCatchClause:Ic,createPropertyAssignment:ka,updatePropertyAssignment:qr,createShorthandPropertyAssignment:Oc,updateShorthandPropertyAssignment:Gu,createSpreadAssignment:z_,updateSpreadAssignment:Mc,createEnumMember:wn,updateEnumMember:Jc,createSourceFile:Hu,updateSourceFile:Qu,createRedirectedSourceFile:Lc,createBundle:F_,updateBundle:Ku,createSyntheticExpression:Zu,createSyntaxList:Aa,createNotEmittedStatement:Rc,createNotEmittedTypeElement:ep,createPartiallyEmittedExpression:Uc,updatePartiallyEmittedExpression:Bc,createCommaListExpression:V_,updateCommaListExpression:qc,createSyntheticReferenceExpression:W_,updateSyntheticReferenceExpression:zc,cloneNode:G_,get createComma(){return v(28)},get createAssignment(){return v(64)},get createLogicalOr(){return v(57)},get createLogicalAnd(){return v(56)},get createBitwiseOr(){return v(52)},get createBitwiseXor(){return v(53)},get createBitwiseAnd(){return v(51)},get createStrictEquality(){return v(37)},get createStrictInequality(){return v(38)},get createEquality(){return v(35)},get createInequality(){return v(36)},get createLessThan(){return v(30)},get createLessThanEquals(){return v(33)},get createGreaterThan(){return v(32)},get createGreaterThanEquals(){return v(34)},get createLeftShift(){return v(48)},get createRightShift(){return v(49)},get createUnsignedRightShift(){return v(50)},get createAdd(){return v(40)},get createSubtract(){return v(41)},get createMultiply(){return v(42)},get createDivide(){return v(44)},get createModulo(){return v(45)},get createExponent(){return v(43)},get createPrefixPlus(){return A(40)},get createPrefixMinus(){return A(41)},get createPrefixIncrement(){return A(46)},get createPrefixDecrement(){return A(47)},get createBitwiseNot(){return A(55)},get createLogicalNot(){return A(54)},get createPostfixIncrement(){return P(46)},get createPostfixDecrement(){return P(47)},createImmediatelyInvokedFunctionExpression:ip,createImmediatelyInvokedArrowFunction:ap,createVoidZero:si,createExportDefault:Wc,createExternalModuleExport:_p,createTypeCheck:Y_,createIsNotTypeCheck:sp,createMethodCall:zr,createGlobalMethodCall:ji,createFunctionBindCall:op,createFunctionCallCall:cp,createFunctionApplyCall:lp,createArraySliceCall:Ri,createArrayConcatCall:up,createObjectDefinePropertyCall:H_,createObjectGetOwnPropertyDescriptorCall:oi,createReflectGetCall:Gc,createReflectSetCall:pp,createPropertyDescriptor:Yc,createCallBinding:Xc,createAssignmentTargetWrapper:s,inlineExpressions:p,getInternalName:b,getLocalName:S,getExportName:N,getDeclarationName:X,getNamespaceMemberName:_e,getExternalModuleOrNamespaceExportName:Z,restoreOuterExpressions:Hc,restoreEnclosingLabel:X_,createUseStrictPrologue:Le,copyPrologue:ee,copyStandardPrologue:je,copyCustomPrologue:Ae,ensureUseStrict:Yt,liftToBlock:mn,mergeLexicalEnvironment:ur,replaceModifiers:Ln,replaceDecoratorsAndModifiers:Fr,replacePropertyName:mp};return Un(Ob,n=>n(ye)),ye;function de(n,i){if(n===void 0||n===bt)n=[];else if(mi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&Hd(n),B.attachNodeArrayDebugInfo(n),n;let f=n.slice();return f.pos=n.pos,f.end=n.end,f.hasTrailingComma=i,f.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(f),f}let _=n.length,c=_>=1&&_<=4?n.slice():n;return c.pos=-1,c.end=-1,c.hasTrailingComma=!!i,c.transformFlags=0,Hd(c),B.attachNodeArrayDebugInfo(c),c}function M(n){return t.createBaseNode(n)}function ae(n){let i=M(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Oe(n,i){return n!==i&&(n.typeArguments=i.typeArguments),q(n,i)}function V(n,i=0){let _=typeof n=="number"?n+"":n;B.assert(_.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let c=ae(9);return c.text=_,c.numericLiteralFlags=i,i&384&&(c.transformFlags|=1024),c}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:wb(n)+"n",i.transformFlags|=32,i}function W(n,i){let _=ae(11);return _.text=n,_.singleQuote=i,_}function dt(n,i,_){let c=W(n,i);return c.hasExtendedUnicodeEscape=_,_&&(c.transformFlags|=1024),c}function nr(n){let i=W(B2(n),void 0);return i.textSourceNode=n,i}function gn(n){let i=$t(14);return i.text=n,i}function rr(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return dt(i,void 0);case 12:return xa(i,!1);case 13:return xa(i,!0);case 14:return gn(i);case 15:return ii(n,i,void 0,0)}}function bn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function In(n,i,_,c){let f=bn(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:il,prefix:_,suffix:c}),il++,f}function Ge(n,i,_){i===void 0&&n&&(i=zm(n)),i===80&&(i=void 0);let c=bn(Ja(n));return _&&(c.flags|=256),c.escapedText==="await"&&(c.transformFlags|=67108864),c.flags&256&&(c.transformFlags|=1024),c}function ir(n,i,_,c){let f=1;i&&(f|=8);let w=In("",f,_,c);return n&&n(w),w}function Pr(n){let i=2;return n&&(i|=8),In("",i,void 0,void 0)}function Ot(n,i=0,_,c){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),In(n,3|i,_,c)}function Bn(n,i=0,_,c){B.assert(!(i&7),"Argument out of range: flags");let f=n?Rp(n)?Wp(!1,_,n,c,Pn):`generated@${getNodeId(n)}`:"";(_||c)&&(i|=16);let w=In(f,4|i,_,c);return w.original=n,w}function On(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Mt(n){return pl(n,"#")||B.fail("First character of private identifier must be #: "+n),On(Ja(n))}function vt(n,i,_,c){let f=On(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:il,prefix:_,suffix:c}),il++,f}function Qe(n,i,_){n&&!pl(n,"#")&&B.fail("First character of private identifier must be #: "+n);let c=8|(n?3:1);return vt(n??"",c,i,_)}function qn(n,i,_){let c=Rp(n)?Wp(!0,i,n,_,Pn):`#generated@${getNodeId(n)}`,w=vt(c,4|(i||_?16:0),i,_);return w.original=n,w}function $t(n){return t.createBaseTokenNode(n)}function ct(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),_=0;switch(n){case 134:_=384;break;case 160:_=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,i.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,i.flowNode=void 0;break}return _&&(i.transformFlags|=_),i}function _t(){return ct(108)}function Ut(){return ct(110)}function Jt(){return ct(106)}function lt(){return ct(112)}function ar(){return ct(97)}function mt(n){return ct(n)}function vn(n){let i=[];return n&32&&i.push(mt(95)),n&128&&i.push(mt(138)),n&2048&&i.push(mt(90)),n&4096&&i.push(mt(87)),n&1&&i.push(mt(125)),n&2&&i.push(mt(123)),n&4&&i.push(mt(124)),n&64&&i.push(mt(128)),n&256&&i.push(mt(126)),n&16&&i.push(mt(164)),n&8&&i.push(mt(148)),n&512&&i.push(mt(129)),n&1024&&i.push(mt(134)),n&8192&&i.push(mt(103)),n&16384&&i.push(mt(147)),i.length?i:void 0}function yt(n,i){let _=M(166);return _.left=n,_.right=et(i),_.transformFlags|=z(_.left)|ja(_.right),_.flowNode=void 0,_}function cn(n,i,_){return n.left!==i||n.right!==_?q(yt(i,_),n):n}function nt(n){let i=M(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=z(i.expression)|1024|131072,i}function Bt(n,i){return n.expression!==i?q(nt(i),n):n}function rn(n,i,_,c){let f=ae(168);return f.modifiers=De(n),f.name=et(i),f.constraint=_,f.default=c,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function _r(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.constraint!==c||n.default!==f?q(rn(i,_,c,f),n):n}function fr(n,i,_,c,f,w){let F=ae(169);return F.modifiers=De(n),F.dotDotDotToken=i,F.name=et(_),F.questionToken=c,F.type=f,F.initializer=Ca(w),z2(F.name)?F.transformFlags=1:F.transformFlags=ke(F.modifiers)|z(F.dotDotDotToken)|jn(F.name)|z(F.questionToken)|z(F.initializer)|(F.questionToken??F.type?1:0)|(F.dotDotDotToken??F.initializer?1024:0)|(Rn(F.modifiers)&31?8192:0),F.jsDoc=void 0,F}function dr(n,i,_,c,f,w,F){return n.modifiers!==i||n.dotDotDotToken!==_||n.name!==c||n.questionToken!==f||n.type!==w||n.initializer!==F?q(fr(i,_,c,f,w,F),n):n}function zn(n){let i=M(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1|8192|33554432,i}function Fn(n,i){return n.expression!==i?q(zn(i),n):n}function Nr(n,i,_,c){let f=ae(171);return f.modifiers=De(n),f.name=et(i),f.type=c,f.questionToken=_,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Vn(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.type!==f?Ce(Nr(i,_,c,f),n):n}function Ce(n,i){return n!==i&&(n.initializer=i.initializer),q(n,i)}function mr(n,i,_,c,f){let w=ae(172);w.modifiers=De(n),w.name=et(i),w.questionToken=_&&$d(_)?_:void 0,w.exclamationToken=_&&Xd(_)?_:void 0,w.type=c,w.initializer=Ca(f);let F=w.flags&33554432||Rn(w.modifiers)&128;return w.transformFlags=ke(w.modifiers)|jn(w.name)|z(w.initializer)|(F||w.questionToken||w.exclamationToken||w.type?1:0)|(Ef(w.name)||Rn(w.modifiers)&256&&w.initializer?8192:0)|16777216,w.jsDoc=void 0,w}function L(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.questionToken!==(c!==void 0&&$d(c)?c:void 0)||n.exclamationToken!==(c!==void 0&&Xd(c)?c:void 0)||n.type!==f||n.initializer!==w?q(mr(i,_,c,f,w),n):n}function se(n,i,_,c,f,w){let F=ae(173);return F.modifiers=De(n),F.name=et(i),F.questionToken=_,F.typeParameters=De(c),F.parameters=De(f),F.type=w,F.transformFlags=1,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function fe(n,i,_,c,f,w,F){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F?Oe(se(i,_,c,f,w,F),n):n}function Te(n,i,_,c,f,w,F,pe){let Re=ae(174);if(Re.modifiers=De(n),Re.asteriskToken=i,Re.name=et(_),Re.questionToken=c,Re.exclamationToken=void 0,Re.typeParameters=De(f),Re.parameters=de(w),Re.type=F,Re.body=pe,!Re.body)Re.transformFlags=1;else{let en=Rn(Re.modifiers)&1024,kn=!!Re.asteriskToken,$n=en&&kn;Re.transformFlags=ke(Re.modifiers)|z(Re.asteriskToken)|jn(Re.name)|z(Re.questionToken)|ke(Re.typeParameters)|ke(Re.parameters)|z(Re.type)|z(Re.body)&-67108865|($n?128:en?256:kn?2048:0)|(Re.questionToken||Re.typeParameters||Re.type?1:0)|1024}return Re.typeArguments=void 0,Re.jsDoc=void 0,Re.locals=void 0,Re.nextContainer=void 0,Re.flowNode=void 0,Re.endFlowNode=void 0,Re.returnFlowNode=void 0,Re}function Xe(n,i,_,c,f,w,F,pe,Re){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.questionToken!==f||n.typeParameters!==w||n.parameters!==F||n.type!==pe||n.body!==Re?Ke(Te(i,_,c,f,w,F,pe,Re),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),q(n,i)}function st(n){let i=ae(175);return i.body=n,i.transformFlags=z(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Dt(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function ut(n,i,_){let c=ae(176);return c.modifiers=De(n),c.parameters=de(i),c.body=_,c.body?c.transformFlags=ke(c.modifiers)|ke(c.parameters)|z(c.body)&-67108865|1024:c.transformFlags=1,c.typeParameters=void 0,c.type=void 0,c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Ir(n,i,_,c){return n.modifiers!==i||n.parameters!==_||n.body!==c?hr(ut(i,_,c),n):n}function hr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function Mn(n,i,_,c,f){let w=ae(177);return w.modifiers=De(n),w.name=et(i),w.parameters=de(_),w.type=c,w.body=f,w.body?w.transformFlags=ke(w.modifiers)|jn(w.name)|ke(w.parameters)|z(w.type)|z(w.body)&-67108865|(w.type?1:0):w.transformFlags=1,w.typeArguments=void 0,w.typeParameters=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.flowNode=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Wn(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.type!==f||n.body!==w?Si(Mn(i,_,c,f,w),n):n}function Si(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Oe(n,i)}function R(n,i,_,c){let f=ae(178);return f.modifiers=De(n),f.name=et(i),f.parameters=de(_),f.body=c,f.body?f.transformFlags=ke(f.modifiers)|jn(f.name)|ke(f.parameters)|z(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function $(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.body!==f?K(R(i,_,c,f),n):n}function K(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function xe(n,i,_){let c=ae(179);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Se(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(xe(i,_,c),n):n}function we(n,i,_){let c=ae(180);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function be(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(we(i,_,c),n):n}function We(n,i,_){let c=ae(181);return c.modifiers=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Ze(n,i,_,c){return n.parameters!==_||n.type!==c||n.modifiers!==i?Oe(We(i,_,c),n):n}function Ye(n,i){let _=M(204);return _.type=n,_.literal=i,_.transformFlags=1,_}function Ee(n,i,_){return n.type!==i||n.literal!==_?q(Ye(i,_),n):n}function Tn(n){return ct(n)}function rt(n,i,_){let c=M(182);return c.assertsModifier=n,c.parameterName=et(i),c.type=_,c.transformFlags=1,c}function ln(n,i,_,c){return n.assertsModifier!==i||n.parameterName!==_||n.type!==c?q(rt(i,_,c),n):n}function Zr(n,i){let _=M(183);return _.typeName=et(n),_.typeArguments=i&&o().parenthesizeTypeArguments(de(i)),_.transformFlags=1,_}function J(n,i,_){return n.typeName!==i||n.typeArguments!==_?q(Zr(i,_),n):n}function qe(n,i,_){let c=ae(184);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function u(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Ie(qe(i,_,c),n):n}function Ie(n,i){return n!==i&&(n.modifiers=i.modifiers),Oe(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?ze(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,_,c){let f=ae(185);return f.modifiers=De(n),f.typeParameters=De(i),f.parameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function ze(n,i,_){return U(void 0,n,i,_)}function an(...n){return n.length===5?Ve(...n):n.length===4?$e(...n):B.fail("Incorrect number of arguments specified.")}function Ve(n,i,_,c,f){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f?Oe(Me(i,_,c,f),n):n}function $e(n,i,_,c){return Ve(n,n.modifiers,i,_,c)}function Pt(n,i){let _=M(186);return _.exprName=n,_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags=1,_}function kt(n,i,_){return n.exprName!==i||n.typeArguments!==_?q(Pt(i,_),n):n}function Nt(n){let i=ae(187);return i.members=de(n),i.transformFlags=1,i}function qt(n,i){return n.members!==i?q(Nt(i),n):n}function Gn(n){let i=M(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function wi(n,i){return n.elementType!==i?q(Gn(i),n):n}function un(n){let i=M(189);return i.elements=de(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function G(n,i){return n.elements!==i?q(un(i),n):n}function le(n,i,_,c){let f=ae(202);return f.dotDotDotToken=n,f.name=i,f.questionToken=_,f.type=c,f.transformFlags=1,f.jsDoc=void 0,f}function Fe(n,i,_,c,f){return n.dotDotDotToken!==i||n.name!==_||n.questionToken!==c||n.type!==f?q(le(i,_,c,f),n):n}function ve(n){let i=M(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function j(n,i){return n.type!==i?q(ve(i),n):n}function ht(n){let i=M(191);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?q(ht(i),n):n}function Lt(n,i,_){let c=M(n);return c.types=ye.createNodeArray(_(i)),c.transformFlags=1,c}function pn(n,i,_){return n.types!==i?q(Lt(n.kind,i,_),n):n}function Bl(n){return Lt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function Es(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function Or(n){return Lt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Je(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function ft(n,i,_,c){let f=M(194);return f.checkType=o().parenthesizeCheckTypeOfConditionalType(n),f.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),f.trueType=_,f.falseType=c,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function ql(n,i,_,c,f){return n.checkType!==i||n.extendsType!==_||n.trueType!==c||n.falseType!==f?q(ft(i,_,c,f),n):n}function Yn(n){let i=M(195);return i.typeParameter=n,i.transformFlags=1,i}function zl(n,i){return n.typeParameter!==i?q(Yn(i),n):n}function Wt(n,i){let _=M(203);return _.head=n,_.templateSpans=de(i),_.transformFlags=1,_}function Fl(n,i,_){return n.head!==i||n.templateSpans!==_?q(Wt(i,_),n):n}function sr(n,i,_,c,f=!1){let w=M(205);return w.argument=n,w.attributes=i,w.assertions&&w.assertions.assertClause&&w.attributes&&(w.assertions.assertClause=w.attributes),w.qualifier=_,w.typeArguments=c&&o().parenthesizeTypeArguments(c),w.isTypeOf=f,w.transformFlags=1,w}function ia(n,i,_,c,f,w=n.isTypeOf){return n.argument!==i||n.attributes!==_||n.qualifier!==c||n.typeArguments!==f||n.isTypeOf!==w?q(sr(i,_,c,f,w),n):n}function Qt(n){let i=M(196);return i.type=n,i.transformFlags=1,i}function Ct(n,i){return n.type!==i?q(Qt(i),n):n}function D(){let n=M(197);return n.transformFlags=1,n}function Gt(n,i){let _=M(198);return _.operator=n,_.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),_.transformFlags=1,_}function Mr(n,i){return n.type!==i?q(Gt(n.operator,i),n):n}function or(n,i){let _=M(199);return _.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),_.indexType=i,_.transformFlags=1,_}function Ka(n,i,_){return n.objectType!==i||n.indexType!==_?q(or(i,_),n):n}function St(n,i,_,c,f,w){let F=ae(200);return F.readonlyToken=n,F.typeParameter=i,F.nameType=_,F.questionToken=c,F.type=f,F.members=w&&de(w),F.transformFlags=1,F.locals=void 0,F.nextContainer=void 0,F}function jt(n,i,_,c,f,w,F){return n.readonlyToken!==i||n.typeParameter!==_||n.nameType!==c||n.questionToken!==f||n.type!==w||n.members!==F?q(St(i,_,c,f,w,F),n):n}function ei(n){let i=M(201);return i.literal=n,i.transformFlags=1,i}function yr(n,i){return n.literal!==i?q(ei(i),n):n}function As(n){let i=M(206);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Vl(n,i){return n.elements!==i?q(As(i),n):n}function Jr(n){let i=M(207);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Wl(n,i){return n.elements!==i?q(Jr(i),n):n}function aa(n,i,_,c){let f=ae(208);return f.dotDotDotToken=n,f.propertyName=et(i),f.name=et(_),f.initializer=Ca(c),f.transformFlags|=z(f.dotDotDotToken)|jn(f.propertyName)|jn(f.name)|z(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ti(n,i,_,c,f){return n.propertyName!==_||n.dotDotDotToken!==i||n.name!==c||n.initializer!==f?q(aa(i,_,c,f),n):n}function Za(n,i){let _=M(209),c=n&&Gi(n),f=de(n,c&&H1(c)?!0:void 0);return _.elements=o().parenthesizeExpressionsOfCommaDelimitedList(f),_.multiLine=i,_.transformFlags|=ke(_.elements),_}function Cs(n,i){return n.elements!==i?q(Za(i,n.multiLine),n):n}function ki(n,i){let _=ae(210);return _.properties=de(n),_.multiLine=i,_.transformFlags|=ke(_.properties),_.jsDoc=void 0,_}function Gl(n,i){return n.properties!==i?q(ki(i,n.multiLine),n):n}function Ds(n,i,_){let c=ae(211);return c.expression=n,c.questionDotToken=i,c.name=_,c.transformFlags=z(c.expression)|z(c.questionDotToken)|(tt(c.name)?ja(c.name):z(c.name)|536870912),c.jsDoc=void 0,c.flowNode=void 0,c}function cr(n,i){let _=Ds(o().parenthesizeLeftSideOfAccess(n,!1),void 0,et(i));return Cp(n)&&(_.transformFlags|=384),_}function Yl(n,i,_){return Lg(n)?_a(n,i,n.questionDotToken,kr(_,tt)):n.expression!==i||n.name!==_?q(cr(i,_),n):n}function Ei(n,i,_){let c=Ds(o().parenthesizeLeftSideOfAccess(n,!0),i,et(_));return c.flags|=64,c.transformFlags|=32,c}function _a(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==_||n.name!==c?q(Ei(i,_,c),n):n}function Ps(n,i,_){let c=ae(212);return c.expression=n,c.questionDotToken=i,c.argumentExpression=_,c.transformFlags|=z(c.expression)|z(c.questionDotToken)|z(c.argumentExpression),c.jsDoc=void 0,c.flowNode=void 0,c}function Ai(n,i){let _=Ps(o().parenthesizeLeftSideOfAccess(n,!1),void 0,pr(i));return Cp(n)&&(_.transformFlags|=384),_}function Hl(n,i,_){return jg(n)?e_(n,i,n.questionDotToken,_):n.expression!==i||n.argumentExpression!==_?q(Ai(i,_),n):n}function Ns(n,i,_){let c=Ps(o().parenthesizeLeftSideOfAccess(n,!0),i,pr(_));return c.flags|=64,c.transformFlags|=32,c}function e_(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==_||n.argumentExpression!==c?q(Ns(i,_,c),n):n}function Is(n,i,_,c){let f=ae(213);return f.expression=n,f.questionDotToken=i,f.typeArguments=_,f.arguments=c,f.transformFlags|=z(f.expression)|z(f.questionDotToken)|ke(f.typeArguments)|ke(f.arguments),f.typeArguments&&(f.transformFlags|=1),qd(f.expression)&&(f.transformFlags|=16384),f}function Ci(n,i,_){let c=Is(o().parenthesizeLeftSideOfAccess(n,!1),void 0,De(i),o().parenthesizeExpressionsOfCommaDelimitedList(de(_)));return Fb(c.expression)&&(c.transformFlags|=8388608),c}function sa(n,i,_,c){return Md(n)?Os(n,i,n.questionDotToken,_,c):n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(Ci(i,_,c),n):n}function t_(n,i,_,c){let f=Is(o().parenthesizeLeftSideOfAccess(n,!0),i,De(_),o().parenthesizeExpressionsOfCommaDelimitedList(de(c)));return f.flags|=64,f.transformFlags|=32,f}function Os(n,i,_,c,f){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==_||n.typeArguments!==c||n.arguments!==f?q(t_(i,_,c,f),n):n}function xn(n,i,_){let c=ae(214);return c.expression=o().parenthesizeExpressionOfNew(n),c.typeArguments=De(i),c.arguments=_?o().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,c.transformFlags|=z(c.expression)|ke(c.typeArguments)|ke(c.arguments)|32,c.typeArguments&&(c.transformFlags|=1),c}function n_(n,i,_,c){return n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(xn(i,_,c),n):n}function oa(n,i,_){let c=M(215);return c.tag=o().parenthesizeLeftSideOfAccess(n,!1),c.typeArguments=De(i),c.template=_,c.transformFlags|=z(c.tag)|ke(c.typeArguments)|z(c.template)|1024,c.typeArguments&&(c.transformFlags|=1),q2(c.template)&&(c.transformFlags|=128),c}function Ms(n,i,_,c){return n.tag!==i||n.typeArguments!==_||n.template!==c?q(oa(i,_,c),n):n}function Js(n,i){let _=M(216);return _.expression=o().parenthesizeOperandOfPrefixUnary(i),_.type=n,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function Ls(n,i,_){return n.type!==i||n.expression!==_?q(Js(i,_),n):n}function r_(n){let i=M(217);return i.expression=n,i.transformFlags=z(i.expression),i.jsDoc=void 0,i}function js(n,i){return n.expression!==i?q(r_(i),n):n}function i_(n,i,_,c,f,w,F){let pe=ae(218);pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F;let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;return pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Rs(n,i,_,c,f,w,F,pe){return n.name!==c||n.modifiers!==i||n.asteriskToken!==_||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?Oe(i_(i,_,c,f,w,F,pe),n):n}function a_(n,i,_,c,f,w){let F=ae(219);F.modifiers=De(n),F.typeParameters=De(i),F.parameters=de(_),F.type=c,F.equalsGreaterThanToken=f??ct(39),F.body=o().parenthesizeConciseBodyOfArrowFunction(w);let pe=Rn(F.modifiers)&1024;return F.transformFlags=ke(F.modifiers)|ke(F.typeParameters)|ke(F.parameters)|z(F.type)|z(F.equalsGreaterThanToken)|z(F.body)&-67108865|(F.typeParameters||F.type?1:0)|(pe?16640:0)|1024,F.typeArguments=void 0,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.flowNode=void 0,F.endFlowNode=void 0,F.returnFlowNode=void 0,F}function Us(n,i,_,c,f,w,F){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f||n.equalsGreaterThanToken!==w||n.body!==F?Oe(a_(i,_,c,f,w,F),n):n}function Bs(n){let i=M(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function qs(n,i){return n.expression!==i?q(Bs(i),n):n}function ca(n){let i=M(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function fn(n,i){return n.expression!==i?q(ca(i),n):n}function __(n){let i=M(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function lr(n,i){return n.expression!==i?q(__(i),n):n}function zs(n){let i=M(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression)|256|128|2097152,i}function Lr(n,i){return n.expression!==i?q(zs(i),n):n}function jr(n,i){let _=M(224);return _.operator=n,_.operand=o().parenthesizeOperandOfPrefixUnary(i),_.transformFlags|=z(_.operand),(n===46||n===47)&&tt(_.operand)&&!Ua(_.operand)&&!Kd(_.operand)&&(_.transformFlags|=268435456),_}function Xl(n,i){return n.operand!==i?q(jr(n.operator,i),n):n}function ni(n,i){let _=M(225);return _.operator=i,_.operand=o().parenthesizeOperandOfPostfixUnary(n),_.transformFlags|=z(_.operand),tt(_.operand)&&!Ua(_.operand)&&!Kd(_.operand)&&(_.transformFlags|=268435456),_}function $l(n,i){return n.operand!==i?q(ni(i,n.operator),n):n}function la(n,i,_){let c=ae(226),f=$c(i),w=f.kind;return c.left=o().parenthesizeLeftSideOfBinary(w,n),c.operatorToken=f,c.right=o().parenthesizeRightSideOfBinary(w,c.left,_),c.transformFlags|=z(c.left)|z(c.operatorToken)|z(c.right),w===61?c.transformFlags|=32:w===64?Of(c.left)?c.transformFlags|=5248|Fs(c.left):V1(c.left)&&(c.transformFlags|=5120|Fs(c.left)):w===43||w===68?c.transformFlags|=512:K2(w)&&(c.transformFlags|=16),w===103&&gi(c.left)&&(c.transformFlags|=536870912),c.jsDoc=void 0,c}function Fs(n){return lh(n)?65536:0}function Ql(n,i,_,c){return n.left!==i||n.operatorToken!==_||n.right!==c?q(la(i,_,c),n):n}function Vs(n,i,_,c,f){let w=M(227);return w.condition=o().parenthesizeConditionOfConditionalExpression(n),w.questionToken=i??ct(58),w.whenTrue=o().parenthesizeBranchOfConditionalExpression(_),w.colonToken=c??ct(59),w.whenFalse=o().parenthesizeBranchOfConditionalExpression(f),w.transformFlags|=z(w.condition)|z(w.questionToken)|z(w.whenTrue)|z(w.colonToken)|z(w.whenFalse),w}function Ws(n,i,_,c,f,w){return n.condition!==i||n.questionToken!==_||n.whenTrue!==c||n.colonToken!==f||n.whenFalse!==w?q(Vs(i,_,c,f,w),n):n}function Gs(n,i){let _=M(228);return _.head=n,_.templateSpans=de(i),_.transformFlags|=z(_.head)|ke(_.templateSpans)|1024,_}function Hn(n,i,_){return n.head!==i||n.templateSpans!==_?q(Gs(i,_),n):n}function Di(n,i,_,c=0){B.assert(!(c&-7177),"Unsupported template flags.");let f;if(_!==void 0&&_!==i&&(f=Mb(n,_),typeof f=="object"))return B.fail("Invalid raw text");if(i===void 0){if(f===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=f}else f!==void 0&&B.assert(i===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function Ys(n){let i=1024;return n&&(i|=128),i}function Kl(n,i,_,c){let f=$t(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ri(n,i,_,c){let f=ae(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ii(n,i,_,c){return n===15?ri(n,i,_,c):Kl(n,i,_,c)}function Hs(n,i,_){return n=Di(16,n,i,_),ii(16,n,i,_)}function ua(n,i,_){return n=Di(16,n,i,_),ii(17,n,i,_)}function s_(n,i,_){return n=Di(16,n,i,_),ii(18,n,i,_)}function Zl(n,i,_){return n=Di(16,n,i,_),ri(15,n,i,_)}function o_(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let _=M(229);return _.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),_.asteriskToken=n,_.transformFlags|=z(_.expression)|z(_.asteriskToken)|1024|128|1048576,_}function eu(n,i,_){return n.expression!==_||n.asteriskToken!==i?q(o_(i,_),n):n}function Xs(n){let i=M(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|1024|32768,i}function tu(n,i){return n.expression!==i?q(Xs(i),n):n}function $s(n,i,_,c,f){let w=ae(231);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.jsDoc=void 0,w}function c_(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q($s(i,_,c,f,w),n):n}function l_(){return M(232)}function Qs(n,i){let _=M(233);return _.expression=o().parenthesizeLeftSideOfAccess(n,!1),_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags|=z(_.expression)|ke(_.typeArguments)|1024,_}function Ks(n,i,_){return n.expression!==i||n.typeArguments!==_?q(Qs(i,_),n):n}function dn(n,i){let _=M(234);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function pa(n,i,_){return n.expression!==i||n.type!==_?q(dn(i,_),n):n}function Zs(n){let i=M(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1,i}function eo(n,i){return Rg(n)?Jn(n,i):n.expression!==i?q(Zs(i),n):n}function u_(n,i){let _=M(238);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function to(n,i,_){return n.expression!==i||n.type!==_?q(u_(i,_),n):n}function p_(n){let i=M(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=z(i.expression)|1,i}function Jn(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?q(p_(i),n):n}function no(n,i){let _=M(236);switch(_.keywordToken=n,_.name=i,_.transformFlags|=z(_.name),n){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return B.assertNever(n)}return _.flowNode=void 0,_}function f_(n,i){return n.name!==i?q(no(n.keywordToken,i),n):n}function Xn(n,i){let _=M(239);return _.expression=n,_.literal=i,_.transformFlags|=z(_.expression)|z(_.literal)|1024,_}function fa(n,i,_){return n.expression!==i||n.literal!==_?q(Xn(i,_),n):n}function ro(){let n=M(240);return n.transformFlags|=1024,n}function Rr(n,i){let _=M(241);return _.statements=de(n),_.multiLine=i,_.transformFlags|=ke(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function nu(n,i){return n.statements!==i?q(Rr(i,n.multiLine),n):n}function d_(n,i){let _=M(243);return _.modifiers=De(n),_.declarationList=Yr(i)?v_(i):i,_.transformFlags|=ke(_.modifiers)|z(_.declarationList),Rn(_.modifiers)&128&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function io(n,i,_){return n.modifiers!==i||n.declarationList!==_?q(d_(i,_),n):n}function ao(){let n=M(242);return n.jsDoc=void 0,n}function Pi(n){let i=M(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function _o(n,i){return n.expression!==i?q(Pi(i),n):n}function so(n,i,_){let c=M(245);return c.expression=n,c.thenStatement=It(i),c.elseStatement=It(_),c.transformFlags|=z(c.expression)|z(c.thenStatement)|z(c.elseStatement),c.jsDoc=void 0,c.flowNode=void 0,c}function oo(n,i,_,c){return n.expression!==i||n.thenStatement!==_||n.elseStatement!==c?q(so(i,_,c),n):n}function co(n,i){let _=M(246);return _.statement=It(n),_.expression=i,_.transformFlags|=z(_.statement)|z(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function lo(n,i,_){return n.statement!==i||n.expression!==_?q(co(i,_),n):n}function uo(n,i){let _=M(247);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function ru(n,i,_){return n.expression!==i||n.statement!==_?q(uo(i,_),n):n}function po(n,i,_,c){let f=M(248);return f.initializer=n,f.condition=i,f.incrementor=_,f.statement=It(c),f.transformFlags|=z(f.initializer)|z(f.condition)|z(f.incrementor)|z(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function fo(n,i,_,c,f){return n.initializer!==i||n.condition!==_||n.incrementor!==c||n.statement!==f?q(po(i,_,c,f),n):n}function m_(n,i,_){let c=M(249);return c.initializer=n,c.expression=i,c.statement=It(_),c.transformFlags|=z(c.initializer)|z(c.expression)|z(c.statement),c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c}function iu(n,i,_,c){return n.initializer!==i||n.expression!==_||n.statement!==c?q(m_(i,_,c),n):n}function mo(n,i,_,c){let f=M(250);return f.awaitModifier=n,f.initializer=i,f.expression=o().parenthesizeExpressionForDisallowedComma(_),f.statement=It(c),f.transformFlags|=z(f.awaitModifier)|z(f.initializer)|z(f.expression)|z(f.statement)|1024,n&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function au(n,i,_,c,f){return n.awaitModifier!==i||n.initializer!==_||n.expression!==c||n.statement!==f?q(mo(i,_,c,f),n):n}function ho(n){let i=M(251);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.label!==i?q(ho(i),n):n}function h_(n){let i=M(252);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function yo(n,i){return n.label!==i?q(h_(i),n):n}function y_(n){let i=M(253);return i.expression=n,i.transformFlags|=z(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function su(n,i){return n.expression!==i?q(y_(i),n):n}function g_(n,i){let _=M(254);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function go(n,i,_){return n.expression!==i||n.statement!==_?q(g_(i,_),n):n}function b_(n,i){let _=M(255);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.caseBlock=i,_.transformFlags|=z(_.expression)|z(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function ai(n,i,_){return n.expression!==i||n.caseBlock!==_?q(b_(i,_),n):n}function bo(n,i){let _=M(256);return _.label=et(n),_.statement=It(i),_.transformFlags|=z(_.label)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function vo(n,i,_){return n.label!==i||n.statement!==_?q(bo(i,_),n):n}function To(n){let i=M(257);return i.expression=n,i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?q(To(i),n):n}function xo(n,i,_){let c=M(258);return c.tryBlock=n,c.catchClause=i,c.finallyBlock=_,c.transformFlags|=z(c.tryBlock)|z(c.catchClause)|z(c.finallyBlock),c.jsDoc=void 0,c.flowNode=void 0,c}function cu(n,i,_,c){return n.tryBlock!==i||n.catchClause!==_||n.finallyBlock!==c?q(xo(i,_,c),n):n}function So(){let n=M(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function da(n,i,_,c){let f=ae(260);return f.name=et(n),f.exclamationToken=i,f.type=_,f.initializer=Ca(c),f.transformFlags|=jn(f.name)|z(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function wo(n,i,_,c,f){return n.name!==i||n.type!==c||n.exclamationToken!==_||n.initializer!==f?q(da(i,_,c,f),n):n}function v_(n,i=0){let _=M(261);return _.flags|=i&7,_.declarations=de(n),_.transformFlags|=ke(_.declarations)|4194304,i&7&&(_.transformFlags|=263168),i&4&&(_.transformFlags|=4),_}function lu(n,i){return n.declarations!==i?q(v_(i,n.flags),n):n}function ko(n,i,_,c,f,w,F){let pe=ae(262);if(pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F,!pe.body||Rn(pe.modifiers)&128)pe.transformFlags=1;else{let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function T_(n,i,_,c,f,w,F,pe){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?uu(ko(i,_,c,f,w,F,pe),n):n}function uu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Oe(n,i)}function Eo(n,i,_,c,f){let w=ae(263);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),Rn(w.modifiers)&128?w.transformFlags=1:(w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.transformFlags&8192&&(w.transformFlags|=1)),w.jsDoc=void 0,w}function ma(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Eo(i,_,c,f,w),n):n}function Ao(n,i,_,c,f){let w=ae(264);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags=1,w.jsDoc=void 0,w}function Co(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Ao(i,_,c,f,w),n):n}function ot(n,i,_,c){let f=ae(265);return f.modifiers=De(n),f.name=et(i),f.typeParameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function gr(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.type!==f?q(ot(i,_,c,f),n):n}function x_(n,i,_){let c=ae(266);return c.modifiers=De(n),c.name=et(i),c.members=de(_),c.transformFlags|=ke(c.modifiers)|z(c.name)|ke(c.members)|1,c.transformFlags&=-67108865,c.jsDoc=void 0,c}function br(n,i,_,c){return n.modifiers!==i||n.name!==_||n.members!==c?q(x_(i,_,c),n):n}function Do(n,i,_,c=0){let f=ae(267);return f.modifiers=De(n),f.flags|=c&2088,f.name=i,f.body=_,Rn(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=ke(f.modifiers)|z(f.name)|z(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(n,i,_,c){return n.modifiers!==i||n.name!==_||n.body!==c?q(Do(i,_,c,n.flags),n):n}function vr(n){let i=M(268);return i.statements=de(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function zt(n,i){return n.statements!==i?q(vr(i),n):n}function Po(n){let i=M(269);return i.clauses=de(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function pu(n,i){return n.clauses!==i?q(Po(i),n):n}function No(n){let i=ae(270);return i.name=et(n),i.transformFlags|=ja(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Io(n,i){return n.name!==i?fu(No(i),n):n}function fu(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function Oo(n,i,_,c){let f=ae(271);return f.modifiers=De(n),f.name=et(_),f.isTypeOnly=i,f.moduleReference=c,f.transformFlags|=ke(f.modifiers)|ja(f.name)|z(f.moduleReference),Ff(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Mo(n,i,_,c,f){return n.modifiers!==i||n.isTypeOnly!==_||n.name!==c||n.moduleReference!==f?q(Oo(i,_,c,f),n):n}function Jo(n,i,_,c){let f=M(272);return f.modifiers=De(n),f.importClause=i,f.moduleSpecifier=_,f.attributes=f.assertClause=c,f.transformFlags|=z(f.importClause)|z(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Lo(n,i,_,c,f){return n.modifiers!==i||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(Jo(i,_,c,f),n):n}function jo(n,i,_){let c=ae(273);return c.isTypeOnly=n,c.name=i,c.namedBindings=_,c.transformFlags|=z(c.name)|z(c.namedBindings),n&&(c.transformFlags|=1),c.transformFlags&=-67108865,c}function Ro(n,i,_,c){return n.isTypeOnly!==i||n.name!==_||n.namedBindings!==c?q(jo(i,_,c),n):n}function S_(n,i){let _=M(300);return _.elements=de(n),_.multiLine=i,_.token=132,_.transformFlags|=4,_}function du(n,i,_){return n.elements!==i||n.multiLine!==_?q(S_(i,_),n):n}function Ni(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Uo(n,i,_){return n.name!==i||n.value!==_?q(Ni(i,_),n):n}function w_(n,i){let _=M(302);return _.assertClause=n,_.multiLine=i,_}function Bo(n,i,_){return n.assertClause!==i||n.multiLine!==_?q(w_(i,_),n):n}function qo(n,i,_){let c=M(300);return c.token=_??118,c.elements=de(n),c.multiLine=i,c.transformFlags|=4,c}function k_(n,i,_){return n.elements!==i||n.multiLine!==_?q(qo(i,_,n.token),n):n}function zo(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Fo(n,i,_){return n.name!==i||n.value!==_?q(zo(i,_),n):n}function Vo(n){let i=ae(274);return i.name=n,i.transformFlags|=z(i.name),i.transformFlags&=-67108865,i}function mu(n,i){return n.name!==i?q(Vo(i),n):n}function Wo(n){let i=ae(280);return i.name=n,i.transformFlags|=z(i.name)|32,i.transformFlags&=-67108865,i}function hu(n,i){return n.name!==i?q(Wo(i),n):n}function Go(n){let i=M(275);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function Yo(n,i){return n.elements!==i?q(Go(i),n):n}function Tr(n,i,_){let c=ae(276);return c.isTypeOnly=n,c.propertyName=i,c.name=_,c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c}function yu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(Tr(i,_,c),n):n}function ha(n,i,_){let c=ae(277);return c.modifiers=De(n),c.isExportEquals=i,c.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,_):o().parenthesizeExpressionOfExportDefault(_),c.transformFlags|=ke(c.modifiers)|z(c.expression),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Ii(n,i,_){return n.modifiers!==i||n.expression!==_?q(ha(i,n.isExportEquals,_),n):n}function ya(n,i,_,c,f){let w=ae(278);return w.modifiers=De(n),w.isTypeOnly=i,w.exportClause=_,w.moduleSpecifier=c,w.attributes=w.assertClause=f,w.transformFlags|=ke(w.modifiers)|z(w.exportClause)|z(w.moduleSpecifier),w.transformFlags&=-67108865,w.jsDoc=void 0,w}function Ho(n,i,_,c,f,w){return n.modifiers!==i||n.isTypeOnly!==_||n.exportClause!==c||n.moduleSpecifier!==f||n.attributes!==w?Oi(ya(i,_,c,f,w),n):n}function Oi(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),q(n,i)}function E_(n){let i=M(279);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function gu(n,i){return n.elements!==i?q(E_(i),n):n}function ga(n,i,_){let c=M(281);return c.isTypeOnly=n,c.propertyName=et(i),c.name=et(_),c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function bu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(ga(i,_,c),n):n}function vu(){let n=ae(282);return n.jsDoc=void 0,n}function A_(n){let i=M(283);return i.expression=n,i.transformFlags|=z(i.expression),i.transformFlags&=-67108865,i}function Tu(n,i){return n.expression!==i?q(A_(i),n):n}function Xo(n){return M(n)}function $o(n,i,_=!1){let c=C_(n,_?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return c.postfix=_,c}function C_(n,i){let _=M(n);return _.type=i,_}function xu(n,i,_){return i.type!==_?q($o(n,_,i.postfix),i):i}function Su(n,i,_){return i.type!==_?q(C_(n,_),i):i}function Qo(n,i){let _=ae(317);return _.parameters=De(n),_.type=i,_.transformFlags=ke(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function wu(n,i,_){return n.parameters!==i||n.type!==_?q(Qo(i,_),n):n}function Ko(n,i=!1){let _=ae(322);return _.jsDocPropertyTags=De(n),_.isArrayType=i,_}function ku(n,i,_){return n.jsDocPropertyTags!==i||n.isArrayType!==_?q(Ko(i,_),n):n}function Zo(n){let i=M(309);return i.type=n,i}function D_(n,i){return n.type!==i?q(Zo(i),n):n}function ec(n,i,_){let c=ae(323);return c.typeParameters=De(n),c.parameters=de(i),c.type=_,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c}function Eu(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?q(ec(i,_,c),n):n}function _n(n){let i=al(n.kind);return n.tagName.escapedText===Ja(i)?n.tagName:Ge(i)}function Sn(n,i,_){let c=M(n);return c.tagName=i,c.comment=_,c}function Ur(n,i,_){let c=ae(n);return c.tagName=i,c.comment=_,c}function P_(n,i,_,c){let f=Sn(345,n??Ge("template"),c);return f.constraint=i,f.typeParameters=de(_),f}function tc(n,i=_n(n),_,c,f){return n.tagName!==i||n.constraint!==_||n.typeParameters!==c||n.comment!==f?q(P_(i,_,c,f),n):n}function ba(n,i,_,c){let f=Ur(346,n??Ge("typedef"),c);return f.typeExpression=i,f.fullName=_,f.name=Zd(_),f.locals=void 0,f.nextContainer=void 0,f}function Au(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(ba(i,_,c,f),n):n}function N_(n,i,_,c,f,w){let F=Ur(341,n??Ge("param"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function Cu(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(N_(i,_,c,f,w,F),n):n}function nc(n,i,_,c,f,w){let F=Ur(348,n??Ge("prop"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function rc(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(nc(i,_,c,f,w,F),n):n}function ic(n,i,_,c){let f=Ur(338,n??Ge("callback"),c);return f.typeExpression=i,f.fullName=_,f.name=Zd(_),f.locals=void 0,f.nextContainer=void 0,f}function ac(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(ic(i,_,c,f),n):n}function _c(n,i,_){let c=Sn(339,n??Ge("overload"),_);return c.typeExpression=i,c}function I_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(_c(i,_,c),n):n}function O_(n,i,_){let c=Sn(328,n??Ge("augments"),_);return c.class=i,c}function Mi(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(O_(i,_,c),n):n}function sc(n,i,_){let c=Sn(329,n??Ge("implements"),_);return c.class=i,c}function Br(n,i,_){let c=Sn(347,n??Ge("see"),_);return c.name=i,c}function va(n,i,_,c){return n.tagName!==i||n.name!==_||n.comment!==c?q(Br(i,_,c),n):n}function oc(n){let i=M(310);return i.name=n,i}function Du(n,i){return n.name!==i?q(oc(i),n):n}function cc(n,i){let _=M(311);return _.left=n,_.right=i,_.transformFlags|=z(_.left)|z(_.right),_}function Pu(n,i,_){return n.left!==i||n.right!==_?q(cc(i,_),n):n}function lc(n,i){let _=M(324);return _.name=n,_.text=i,_}function uc(n,i,_){return n.name!==i?q(lc(i,_),n):n}function pc(n,i){let _=M(325);return _.name=n,_.text=i,_}function Nu(n,i,_){return n.name!==i?q(pc(i,_),n):n}function fc(n,i){let _=M(326);return _.name=n,_.text=i,_}function Iu(n,i,_){return n.name!==i?q(fc(i,_),n):n}function Ou(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(sc(i,_,c),n):n}function dc(n,i,_){return Sn(n,i??Ge(al(n)),_)}function Mu(n,i,_=_n(i),c){return i.tagName!==_||i.comment!==c?q(dc(n,_,c),i):i}function mc(n,i,_,c){let f=Sn(n,i??Ge(al(n)),c);return f.typeExpression=_,f}function Ju(n,i,_=_n(i),c,f){return i.tagName!==_||i.typeExpression!==c||i.comment!==f?q(mc(n,_,c,f),i):i}function hc(n,i){return Sn(327,n,i)}function Lu(n,i,_){return n.tagName!==i||n.comment!==_?q(hc(i,_),n):n}function yc(n,i,_){let c=Ur(340,n??Ge(al(340)),_);return c.typeExpression=i,c.locals=void 0,c.nextContainer=void 0,c}function M_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(yc(i,_,c),n):n}function gc(n,i,_,c,f){let w=Sn(351,n??Ge("import"),f);return w.importClause=i,w.moduleSpecifier=_,w.attributes=c,w.comment=f,w}function bc(n,i,_,c,f,w){return n.tagName!==i||n.comment!==w||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(gc(i,_,c,f,w),n):n}function J_(n){let i=M(321);return i.text=n,i}function ju(n,i){return n.text!==i?q(J_(i),n):n}function Ji(n,i){let _=M(320);return _.comment=n,_.tags=De(i),_}function vc(n,i,_){return n.comment!==i||n.tags!==_?q(Ji(i,_),n):n}function Tc(n,i,_){let c=M(284);return c.openingElement=n,c.children=de(i),c.closingElement=_,c.transformFlags|=z(c.openingElement)|ke(c.children)|z(c.closingElement)|2,c}function Ru(n,i,_,c){return n.openingElement!==i||n.children!==_||n.closingElement!==c?q(Tc(i,_,c),n):n}function xc(n,i,_){let c=M(285);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,c.typeArguments&&(c.transformFlags|=1),c}function L_(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(xc(i,_,c),n):n}function j_(n,i,_){let c=M(286);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,i&&(c.transformFlags|=1),c}function Sc(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(j_(i,_,c),n):n}function Ta(n){let i=M(287);return i.tagName=n,i.transformFlags|=z(i.tagName)|2,i}function Kt(n,i){return n.tagName!==i?q(Ta(i),n):n}function R_(n,i,_){let c=M(288);return c.openingFragment=n,c.children=de(i),c.closingFragment=_,c.transformFlags|=z(c.openingFragment)|ke(c.children)|z(c.closingFragment)|2,c}function wc(n,i,_,c){return n.openingFragment!==i||n.children!==_||n.closingFragment!==c?q(R_(i,_,c),n):n}function xa(n,i){let _=M(12);return _.text=n,_.containsOnlyTriviaWhiteSpaces=!!i,_.transformFlags|=2,_}function kc(n,i,_){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==_?q(xa(i,_),n):n}function Uu(){let n=M(289);return n.transformFlags|=2,n}function Bu(){let n=M(290);return n.transformFlags|=2,n}function Ec(n,i){let _=ae(291);return _.name=n,_.initializer=i,_.transformFlags|=z(_.name)|z(_.initializer)|2,_}function Sa(n,i,_){return n.name!==i||n.initializer!==_?q(Ec(i,_),n):n}function Ac(n){let i=ae(292);return i.properties=de(n),i.transformFlags|=ke(i.properties)|2,i}function qu(n,i){return n.properties!==i?q(Ac(i),n):n}function Cc(n){let i=M(293);return i.expression=n,i.transformFlags|=z(i.expression)|2,i}function zu(n,i){return n.expression!==i?q(Cc(i),n):n}function wa(n,i){let _=M(294);return _.dotDotDotToken=n,_.expression=i,_.transformFlags|=z(_.dotDotDotToken)|z(_.expression)|2,_}function Li(n,i){return n.expression!==i?q(wa(n.dotDotDotToken,i),n):n}function Dc(n,i){let _=M(295);return _.namespace=n,_.name=i,_.transformFlags|=z(_.namespace)|z(_.name)|2,_}function U_(n,i,_){return n.namespace!==i||n.name!==_?q(Dc(i,_),n):n}function B_(n,i){let _=M(296);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.statements=de(i),_.transformFlags|=z(_.expression)|ke(_.statements),_.jsDoc=void 0,_}function Fu(n,i,_){return n.expression!==i||n.statements!==_?q(B_(i,_),n):n}function _i(n){let i=M(297);return i.statements=de(n),i.transformFlags=ke(i.statements),i}function Pc(n,i){return n.statements!==i?q(_i(i),n):n}function Nc(n,i){let _=M(298);switch(_.token=n,_.types=de(i),_.transformFlags|=ke(_.types),n){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return B.assertNever(n)}return _}function Vu(n,i){return n.types!==i?q(Nc(n.token,i),n):n}function q_(n,i){let _=M(299);return _.variableDeclaration=xr(n),_.block=i,_.transformFlags|=z(_.variableDeclaration)|z(_.block)|(n?0:64),_.locals=void 0,_.nextContainer=void 0,_}function Ic(n,i,_){return n.variableDeclaration!==i||n.block!==_?q(q_(i,_),n):n}function ka(n,i){let _=ae(303);return _.name=et(n),_.initializer=o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=jn(_.name)|z(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function qr(n,i,_){return n.name!==i||n.initializer!==_?Wu(ka(i,_),n):n}function Wu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),q(n,i)}function Oc(n,i){let _=ae(304);return _.name=et(n),_.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=ja(_.name)|z(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function Gu(n,i,_){return n.name!==i||n.objectAssignmentInitializer!==_?Yu(Oc(i,_),n):n}function Yu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),q(n,i)}function z_(n){let i=ae(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|128|65536,i.jsDoc=void 0,i}function Mc(n,i){return n.expression!==i?q(z_(i),n):n}function wn(n,i){let _=ae(306);return _.name=et(n),_.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=z(_.name)|z(_.initializer)|1,_.jsDoc=void 0,_}function Jc(n,i,_){return n.name!==i||n.initializer!==_?q(wn(i,_),n):n}function Hu(n,i,_){let c=t.createBaseSourceFileNode(307);return c.statements=de(n),c.endOfFileToken=i,c.flags|=_,c.text="",c.fileName="",c.path="",c.resolvedPath="",c.originalFileName="",c.languageVersion=1,c.languageVariant=0,c.scriptKind=0,c.isDeclarationFile=!1,c.hasNoDefaultLib=!1,c.transformFlags|=ke(c.statements)|z(c.endOfFileToken),c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.nodeCount=0,c.identifierCount=0,c.symbolCount=0,c.parseDiagnostics=void 0,c.bindDiagnostics=void 0,c.bindSuggestionDiagnostics=void 0,c.lineMap=void 0,c.externalModuleIndicator=void 0,c.setExternalModuleIndicator=void 0,c.pragmas=void 0,c.checkJsDirective=void 0,c.referencedFiles=void 0,c.typeReferenceDirectives=void 0,c.libReferenceDirectives=void 0,c.amdDependencies=void 0,c.commentDirectives=void 0,c.identifiers=void 0,c.packageJsonLocations=void 0,c.packageJsonScope=void 0,c.imports=void 0,c.moduleAugmentations=void 0,c.ambientModuleNames=void 0,c.classifiableNames=void 0,c.impliedNodeFormat=void 0,c}function Lc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),i.redirectInfo=n,i}function Xu(n){let i=Lc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function jc(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let _ in n)if(!(Cr(i,_)||!Cr(n,_))){if(_==="emitNode"){i.emitNode=void 0;continue}i[_]=n[_]}return i}function Ea(n){let i=n.redirectInfo?Xu(n):jc(n);return a(i,n),i}function $u(n,i,_,c,f,w,F){let pe=Ea(n);return pe.statements=de(i),pe.isDeclarationFile=_,pe.referencedFiles=c,pe.typeReferenceDirectives=f,pe.hasNoDefaultLib=w,pe.libReferenceDirectives=F,pe.transformFlags=ke(pe.statements)|z(pe.endOfFileToken),pe}function Qu(n,i,_=n.isDeclarationFile,c=n.referencedFiles,f=n.typeReferenceDirectives,w=n.hasNoDefaultLib,F=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==_||n.referencedFiles!==c||n.typeReferenceDirectives!==f||n.hasNoDefaultLib!==w||n.libReferenceDirectives!==F?q($u(n,i,_,c,f,w,F),n):n}function F_(n){let i=M(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Ku(n,i){return n.sourceFiles!==i?q(F_(i),n):n}function Zu(n,i=!1,_){let c=M(237);return c.type=n,c.isSpread=i,c.tupleNameSource=_,c}function Aa(n){let i=M(352);return i._children=n,i}function Rc(n){let i=M(353);return i.original=n,yn(i,n),i}function Uc(n,i){let _=M(355);return _.expression=n,_.original=i,_.transformFlags|=z(_.expression)|1,yn(_,i),_}function Bc(n,i){return n.expression!==i?q(Uc(i,n.original),n):n}function ep(){return M(354)}function tp(n){if(La(n)&&!hl(n)&&!n.original&&!n.emitNode&&!n.id){if(r6(n))return n.elements;if(Ki(n)&&qb(n.operatorToken))return[n.left,n.right]}return n}function V_(n){let i=M(356);return i.elements=de(oy(n,tp)),i.transformFlags|=ke(i.elements),i}function qc(n,i){return n.elements!==i?q(V_(i),n):n}function W_(n,i){let _=M(357);return _.expression=n,_.thisArg=i,_.transformFlags|=z(_.expression)|z(_.thisArg),_}function zc(n,i,_){return n.expression!==i||n.thisArg!==_?q(W_(i,_),n):n}function np(n){let i=bn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function rp(n){let i=bn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let _=getIdentifierTypeArguments(n);return _&&setIdentifierTypeArguments(i,_),i}function Fc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Vc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function G_(n){if(n===void 0)return n;if(nh(n))return Ea(n);if(Ua(n))return np(n);if(tt(n))return rp(n);if(a1(n))return Fc(n);if(gi(n))return Vc(n);let i=df(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let _ in n)Cr(i,_)||!Cr(n,_)||(i[_]=n[_]);return i}function ip(n,i,_){return Ci(i_(void 0,void 0,void 0,void 0,i?[i]:[],void 0,Rr(n,!0)),void 0,_?[_]:[])}function ap(n,i,_){return Ci(a_(void 0,void 0,i?[i]:[],void 0,void 0,Rr(n,!0)),void 0,_?[_]:[])}function si(){return __(V("0"))}function Wc(n){return ha(void 0,!1,n)}function _p(n){return ya(void 0,!1,E_([ga(!1,void 0,n)]))}function Y_(n,i){return i==="null"?ye.createStrictEquality(n,Jt()):i==="undefined"?ye.createStrictEquality(n,si()):ye.createStrictEquality(ca(n),dt(i))}function sp(n,i){return i==="null"?ye.createStrictInequality(n,Jt()):i==="undefined"?ye.createStrictInequality(n,si()):ye.createStrictInequality(ca(n),dt(i))}function zr(n,i,_){return Md(n)?t_(Ei(n,void 0,i),void 0,void 0,_):Ci(cr(n,i),void 0,_)}function op(n,i,_){return zr(n,"bind",[i,..._])}function cp(n,i,_){return zr(n,"call",[i,..._])}function lp(n,i,_){return zr(n,"apply",[i,_])}function ji(n,i,_){return zr(Ge(n),i,_)}function Ri(n,i){return zr(n,"slice",i===void 0?[]:[pr(i)])}function up(n,i){return zr(n,"concat",i)}function H_(n,i,_){return ji("Object","defineProperty",[n,pr(i),_])}function oi(n,i){return ji("Object","getOwnPropertyDescriptor",[n,pr(i)])}function Gc(n,i,_){return ji("Reflect","get",_?[n,i,_]:[n,i])}function pp(n,i,_,c){return ji("Reflect","set",c?[n,i,_,c]:[n,i,_])}function ci(n,i,_){return _?(n.push(ka(i,_)),!0):!1}function Yc(n,i){let _=[];ci(_,"enumerable",pr(n.enumerable)),ci(_,"configurable",pr(n.configurable));let c=ci(_,"writable",pr(n.writable));c=ci(_,"value",n.value)||c;let f=ci(_,"get",n.get);return f=ci(_,"set",n.set)||f,B.assert(!(c&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ki(_,!i)}function fp(n,i){switch(n.kind){case 217:return js(n,i);case 216:return Ls(n,n.type,i);case 234:return pa(n,i,n.type);case 238:return to(n,i,n.type);case 235:return eo(n,i);case 233:return Ks(n,i,n.typeArguments);case 355:return Bc(n,i)}}function dp(n){return Cl(n)&&La(n)&&La(getSourceMapRange(n))&&La(getCommentRange(n))&&!Ht(getSyntheticLeadingComments(n))&&!Ht(getSyntheticTrailingComments(n))}function Hc(n,i,_=31){return n&&ch(n,_)&&!dp(n)?fp(n,Hc(n.expression,i)):i}function X_(n,i,_){if(!i)return n;let c=vo(i,i.label,$1(i.statement)?X_(n,i.statement):n);return _&&_(i),c}function $_(n,i){let _=Tf(n);switch(_.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return _.elements.length!==0;case 210:return _.properties.length>0;default:return!0}}function Xc(n,i,_,c=!1){let f=Wf(n,31),w,F;return qd(f)?(w=Ut(),F=f):Cp(f)?(w=Ut(),F=_!==void 0&&_<2?yn(Ge("_super"),f):f):za(f)&8192?(w=si(),F=o().parenthesizeLeftSideOfAccess(f,!1)):Hr(f)?$_(f.expression,c)?(w=ir(i),F=cr(yn(ye.createAssignment(w,f.expression),f.expression),f.name),yn(F,f)):(w=f.expression,F=f):Ha(f)?$_(f.expression,c)?(w=ir(i),F=Ai(yn(ye.createAssignment(w,f.expression),f.expression),f.argumentExpression),yn(F,f)):(w=f.expression,F=f):(w=si(),F=o().parenthesizeLeftSideOfAccess(n,!1)),{target:F,thisArg:w}}function s(n,i){return cr(r_(ki([R(void 0,"value",[fr(void 0,void 0,n,void 0,void 0,void 0)],Rr([Pi(i)]))])),"value")}function p(n){return n.length>10?V_(n):gy(n,ye.createComma)}function d(n,i,_,c=0,f){let w=f?n&&uf(n):Zm(n);if(w&&tt(w)&&!Ua(w)){let F=wf(yn(G_(w),w),w.parent);return c|=za(w),_||(c|=96),i||(c|=3072),c&&setEmitFlags(F,c),F}return Bn(n)}function b(n,i,_){return d(n,i,_,98304)}function S(n,i,_,c){return d(n,i,_,32768,c)}function N(n,i,_){return d(n,i,_,16384)}function X(n,i,_){return d(n,i,_)}function _e(n,i,_,c){let f=cr(n,La(i)?i:G_(i));yn(f,i);let w=0;return c||(w|=96),_||(w|=3072),w&&setEmitFlags(f,w),f}function Z(n,i,_,c){return n&&bs(i,32)?_e(n,d(i),_,c):N(i,_,c)}function ee(n,i,_,c){let f=je(n,i,0,_);return Ae(n,i,f,c)}function ce(n){return Ya(n.expression)&&n.expression.text==="use strict"}function Le(){return w6(Pi(dt("use strict")))}function je(n,i,_=0,c){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let f=!1,w=n.length;for(;_pe&&en.splice(f,0,...i.slice(pe,Re)),pe>F&&en.splice(c,0,...i.slice(F,pe)),F>w&&en.splice(_,0,...i.slice(w,F)),w>0)if(_===0)en.splice(0,0,...i.slice(0,w));else{let kn=new Map;for(let $n=0;$n<_;$n++){let Da=n[$n];kn.set(Da.expression.text,!0)}for(let $n=w-1;$n>=0;$n--){let Da=i[$n];kn.has(Da.expression.text)||en.unshift(Da)}}return mi(n)?yn(de(en,n.hasTrailingComma),n):n}function Ln(n,i){let _;return typeof i=="number"?_=vn(i):_=i,Af(n)?_r(n,_,n.name,n.constraint,n.default):ds(n)?dr(n,_,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):If(n)?Ve(n,_,n.typeParameters,n.parameters,n.type):N1(n)?Vn(n,_,n.name,n.questionToken,n.type):Va(n)?L(n,_,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):I1(n)?fe(n,_,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):ms(n)?Xe(n,_,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Cf(n)?Ir(n,_,n.parameters,n.body):bl(n)?Wn(n,_,n.name,n.parameters,n.type,n.body):hs(n)?$(n,_,n.name,n.parameters,n.body):Df(n)?Ze(n,_,n.parameters,n.type):Jf(n)?Rs(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Lf(n)?Us(n,_,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):vl(n)?c_(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?io(n,_,n.declarationList):Rf(n)?T_(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Wa(n)?ma(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):vs(n)?Co(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Pl(n)?gr(n,_,n.name,n.typeParameters,n.type):K1(n)?br(n,_,n.name,n.members):Ti(n)?Et(n,_,n.name,n.body):Uf(n)?Mo(n,_,n.isTypeOnly,n.name,n.moduleReference):Bf(n)?Lo(n,_,n.importClause,n.moduleSpecifier,n.attributes):qf(n)?Ii(n,_,n.expression):zf(n)?Ho(n,_,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Fr(n,i){return ds(n)?dr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Va(n)?L(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):ms(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):bl(n)?Wn(n,i,n.name,n.parameters,n.type,n.body):hs(n)?$(n,i,n.name,n.parameters,n.body):vl(n)?c_(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Wa(n)?ma(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function mp(n,i){switch(n.kind){case 177:return Wn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return $(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return L(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Vn(n,n.modifiers,i,n.questionToken,n.type);case 303:return qr(n,i,n.initializer)}}function De(n){return n?de(n):void 0}function et(n){return typeof n=="string"?Ge(n):n}function pr(n){return typeof n=="string"?dt(n):typeof n=="number"?V(n):typeof n=="boolean"?n?lt():ar():n}function Ca(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function $c(n){return typeof n=="number"?ct(n):n}function It(n){return n&&i6(n)?yn(a(ao(),n),n):n}function xr(n){return typeof n=="string"||n&&!jf(n)?da(n,void 0,void 0,void 0):n}function q(n,i){return n!==i&&(a(n,i),yn(n,i)),n}}function al(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var En,Yd={};function Mb(e,t){switch(En||(En=of(99,!1,0)),e){case 15:En.setText("`"+t+"`");break;case 16:En.setText("`"+t+"${");break;case 17:En.setText("}"+t+"${");break;case 18:En.setText("}"+t+"`");break}let a=En.scan();if(a===20&&(a=En.reScanTemplateToken(!1)),En.isUnterminated())return En.setText(void 0),Yd;let o;switch(a){case 15:case 16:case 17:case 18:o=En.getTokenValue();break}return o===void 0||En.scan()!==1?(En.setText(void 0),Yd):(En.setText(void 0),o)}function jn(e){return e&&tt(e)?ja(e):z(e)}function ja(e){return z(e)&-67108865}function Jb(e,t){return t|e.transformFlags&134234112}function z(e){if(!e)return 0;let t=e.transformFlags&~Lb(e.kind);return vg(e)&&_1(e.name)?Jb(e.name,t):t}function ke(e){return e?e.transformFlags:0}function Hd(e){let t=0;for(let a of e)t|=z(a);e.transformFlags=t}function Lb(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var Z_=Nb();function es(e){return e.flags|=16,e}var jb={createBaseSourceFileNode:e=>es(Z_.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>es(Z_.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>es(Z_.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>es(Z_.createBaseTokenNode(e)),createBaseNode:e=>es(Z_.createBaseNode(e))},x3=kf(4,jb);function Rb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=Ub(a,e.emitNode))}return e}function Ub(e,t){let{flags:a,internalFlags:o,leadingComments:m,trailingComments:v,commentRange:A,sourceMapRange:P,tokenSourceMapRanges:l,constantValue:Q,helpers:h,startsOnNewLine:y,snippetElement:g,classThis:x,assignedName:I}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),m&&(t.leadingComments=Dn(m.slice(),t.leadingComments)),v&&(t.trailingComments=Dn(v.slice(),t.trailingComments)),A&&(t.commentRange=A),P&&(t.sourceMapRange=P),l&&(t.tokenSourceMapRanges=Bb(l,t.tokenSourceMapRanges)),Q!==void 0&&(t.constantValue=Q),h)for(let re of h)t.helpers=py(t.helpers,re);return y!==void 0&&(t.startsOnNewLine=y),g!==void 0&&(t.snippetElement=g),x&&(t.classThis=x),I&&(t.assignedName=I),t}function Bb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function ea(e){return e.kind===9}function C1(e){return e.kind===10}function Ya(e){return e.kind===11}function D1(e){return e.kind===15}function qb(e){return e.kind===28}function Xd(e){return e.kind===54}function $d(e){return e.kind===58}function tt(e){return e.kind===80}function gi(e){return e.kind===81}function zb(e){return e.kind===95}function _l(e){return e.kind===134}function Cp(e){return e.kind===108}function Fb(e){return e.kind===102}function P1(e){return e.kind===166}function Ef(e){return e.kind===167}function Af(e){return e.kind===168}function ds(e){return e.kind===169}function Al(e){return e.kind===170}function N1(e){return e.kind===171}function Va(e){return e.kind===172}function I1(e){return e.kind===173}function ms(e){return e.kind===174}function Cf(e){return e.kind===176}function bl(e){return e.kind===177}function hs(e){return e.kind===178}function O1(e){return e.kind===179}function M1(e){return e.kind===180}function Df(e){return e.kind===181}function J1(e){return e.kind===182}function Pf(e){return e.kind===183}function Nf(e){return e.kind===184}function If(e){return e.kind===185}function Vb(e){return e.kind===186}function L1(e){return e.kind===187}function Wb(e){return e.kind===188}function Gb(e){return e.kind===189}function j1(e){return e.kind===202}function Yb(e){return e.kind===190}function Hb(e){return e.kind===191}function R1(e){return e.kind===192}function U1(e){return e.kind===193}function Xb(e){return e.kind===194}function $b(e){return e.kind===195}function B1(e){return e.kind===196}function Qb(e){return e.kind===197}function q1(e){return e.kind===198}function Kb(e){return e.kind===199}function z1(e){return e.kind===200}function Zb(e){return e.kind===201}function e6(e){return e.kind===205}function F1(e){return e.kind===208}function V1(e){return e.kind===209}function Of(e){return e.kind===210}function Hr(e){return e.kind===211}function Ha(e){return e.kind===212}function Mf(e){return e.kind===213}function W1(e){return e.kind===215}function Cl(e){return e.kind===217}function Jf(e){return e.kind===218}function Lf(e){return e.kind===219}function t6(e){return e.kind===222}function G1(e){return e.kind===224}function Ki(e){return e.kind===226}function Y1(e){return e.kind===230}function vl(e){return e.kind===231}function H1(e){return e.kind===232}function X1(e){return e.kind===233}function ll(e){return e.kind===235}function n6(e){return e.kind===236}function r6(e){return e.kind===356}function Xa(e){return e.kind===243}function Dl(e){return e.kind===244}function $1(e){return e.kind===256}function jf(e){return e.kind===260}function Q1(e){return e.kind===261}function Rf(e){return e.kind===262}function Wa(e){return e.kind===263}function vs(e){return e.kind===264}function Pl(e){return e.kind===265}function K1(e){return e.kind===266}function Ti(e){return e.kind===267}function Uf(e){return e.kind===271}function Bf(e){return e.kind===272}function qf(e){return e.kind===277}function zf(e){return e.kind===278}function Z1(e){return e.kind===279}function i6(e){return e.kind===353}function Ff(e){return e.kind===283}function Fp(e){return e.kind===286}function a6(e){return e.kind===289}function eh(e){return e.kind===295}function _6(e){return e.kind===297}function th(e){return e.kind===303}function nh(e){return e.kind===307}function rh(e){return e.kind===309}function ih(e){return e.kind===314}function ah(e){return e.kind===317}function _h(e){return e.kind===320}function s6(e){return e.kind===322}function Nl(e){return e.kind===323}function o6(e){return e.kind===328}function c6(e){return e.kind===333}function l6(e){return e.kind===334}function u6(e){return e.kind===335}function p6(e){return e.kind===336}function f6(e){return e.kind===337}function d6(e){return e.kind===339}function m6(e){return e.kind===331}function Vp(e){return e.kind===341}function h6(e){return e.kind===342}function Vf(e){return e.kind===344}function sh(e){return e.kind===345}function y6(e){return e.kind===329}function g6(e){return e.kind===350}var Xi=new WeakMap;function oh(e,t){var a;let o=e.kind;return df(o)?o===352?e._children:(a=Xi.get(t))==null?void 0:a.get(e):bt}function b6(e,t,a){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let o=Xi.get(t);return o===void 0&&(o=new WeakMap,Xi.set(t,o)),o.set(e,a),a}function Qd(e,t){var a;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(a=Xi.get(t))==null||a.delete(e)}function v6(e,t){let a=Xi.get(e);a!==void 0&&(Xi.delete(e),Xi.set(t,a))}function Kd(e){return(za(e)&32768)!==0}function T6(e){return Ya(e.expression)&&e.expression.text==="use strict"}function x6(e){for(let t of e)if(cl(t)){if(T6(t))return t}else break}function S6(e){return Cl(e)&&Zi(e)&&!!Mg(e)}function ch(e,t=31){switch(e.kind){case 217:return t&-2147483648&&S6(e)?!1:(t&1)!==0;case 216:case 234:case 238:return(t&2)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Wf(e,t=31){for(;ch(e,t);)e=e.expression;return e}function w6(e){return setStartsOnNewLine(e,!0)}function as(e){if($g(e))return e.name;if(Yg(e)){switch(e.kind){case 303:return as(e.initializer);case 304:return e.name;case 305:return as(e.expression)}return}return gl(e,!0)?as(e.left):Y1(e)?as(e.expression):e}function k6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Zd(e){if(e){let t=e;for(;;){if(tt(t)||!t.body)return tt(t)?t:t.name;t=t.body}}}var em;(e=>{function t(h,y,g,x,I,re,he){let ye=y>0?I[y-1]:void 0;return B.assertEqual(g[y],t),I[y]=h.onEnter(x[y],ye,he),g[y]=P(h,t),y}e.enter=t;function a(h,y,g,x,I,re,he){B.assertEqual(g[y],a),B.assertIsDefined(h.onLeft),g[y]=P(h,a);let ye=h.onLeft(x[y].left,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.left=a;function o(h,y,g,x,I,re,he){return B.assertEqual(g[y],o),B.assertIsDefined(h.onOperator),g[y]=P(h,o),h.onOperator(x[y].operatorToken,I[y],x[y]),y}e.operator=o;function m(h,y,g,x,I,re,he){B.assertEqual(g[y],m),B.assertIsDefined(h.onRight),g[y]=P(h,m);let ye=h.onRight(x[y].right,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.right=m;function v(h,y,g,x,I,re,he){B.assertEqual(g[y],v),g[y]=P(h,v);let ye=h.onExit(x[y],I[y]);if(y>0){if(y--,h.foldState){let de=g[y]===v?"right":"left";I[y]=h.foldState(I[y],ye,de)}}else re.value=ye;return y}e.exit=v;function A(h,y,g,x,I,re,he){return B.assertEqual(g[y],A),y}e.done=A;function P(h,y){switch(y){case t:if(h.onLeft)return a;case a:if(h.onOperator)return o;case o:if(h.onRight)return m;case m:return v;case v:return A;case A:return A;default:B.fail("Invalid state")}}e.nextState=P;function l(h,y,g,x,I){return h++,y[h]=t,g[h]=I,x[h]=void 0,h}function Q(h,y,g){if(B.shouldAssert(2))for(;h>=0;)B.assert(y[h]!==g,"Circular traversal detected."),h--}})(em||(em={}));function tm(e,t){return typeof e=="object"?Wp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function E6(e,t){return typeof e=="string"?e:A6(e,B.checkDefined(t))}function A6(e,t){return a1(e)?t(e).slice(1):Ua(e)?t(e):gi(e)?e.escapedText.slice(1):Pn(e)}function Wp(e,t,a,o,m){return t=tm(t,m),o=tm(o,m),a=E6(a,m),`${e?"#":""}${t}${a}${o}`}function lh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of k6(e)){let a=as(t);if(a&&Xg(a)&&(a.transformFlags&65536||a.transformFlags&128&&lh(a)))return!0}return!1}function yn(e,t){return t?yi(e,t.pos,t.end):e}function Il(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Gf(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var nm,rm,im,am,_m,C6={createBaseSourceFileNode:e=>new(_m||(_m=At.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(im||(im=At.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(am||(am=At.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rm||(rm=At.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nm||(nm=At.getNodeConstructor()))(e,-1,-1)},S3=kf(1,C6);function k(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let o of a){let m=e(o);if(m)return m}}}function D6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function P6(e){return Un(e.statements,N6)||I6(e)}function N6(e){return Il(e)&&O6(e,95)||Uf(e)&&Ff(e.moduleReference)||Bf(e)||qf(e)||zf(e)?e:void 0}function I6(e){return e.flags&8388608?uh(e):void 0}function uh(e){return M6(e)?e:Xt(e,uh)}function O6(e,t){return Ht(e.modifiers,a=>a.kind===t)}function M6(e){return n6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var J6={166:function(t,a,o){return k(a,t.left)||k(a,t.right)},168:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.constraint)||k(a,t.default)||k(a,t.expression)},304:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.equalsToken)||k(a,t.objectAssignmentInitializer)},305:function(t,a,o){return k(a,t.expression)},169:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},172:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},171:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},303:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.initializer)},260:function(t,a,o){return k(a,t.name)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},208:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.propertyName)||k(a,t.name)||k(a,t.initializer)},181:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},185:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},184:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},179:sm,180:sm,174:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},173:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},176:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},177:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},178:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},262:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},218:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},219:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.equalsGreaterThanToken)||k(a,t.body)},175:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.body)},183:function(t,a,o){return k(a,t.typeName)||ie(a,o,t.typeArguments)},182:function(t,a,o){return k(a,t.assertsModifier)||k(a,t.parameterName)||k(a,t.type)},186:function(t,a,o){return k(a,t.exprName)||ie(a,o,t.typeArguments)},187:function(t,a,o){return ie(a,o,t.members)},188:function(t,a,o){return k(a,t.elementType)},189:function(t,a,o){return ie(a,o,t.elements)},192:om,193:om,194:function(t,a,o){return k(a,t.checkType)||k(a,t.extendsType)||k(a,t.trueType)||k(a,t.falseType)},195:function(t,a,o){return k(a,t.typeParameter)},205:function(t,a,o){return k(a,t.argument)||k(a,t.attributes)||k(a,t.qualifier)||ie(a,o,t.typeArguments)},302:function(t,a,o){return k(a,t.assertClause)},196:cm,198:cm,199:function(t,a,o){return k(a,t.objectType)||k(a,t.indexType)},200:function(t,a,o){return k(a,t.readonlyToken)||k(a,t.typeParameter)||k(a,t.nameType)||k(a,t.questionToken)||k(a,t.type)||ie(a,o,t.members)},201:function(t,a,o){return k(a,t.literal)},202:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)},206:lm,207:lm,209:function(t,a,o){return ie(a,o,t.elements)},210:function(t,a,o){return ie(a,o,t.properties)},211:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.name)},212:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.argumentExpression)},213:um,214:um,215:function(t,a,o){return k(a,t.tag)||k(a,t.questionDotToken)||ie(a,o,t.typeArguments)||k(a,t.template)},216:function(t,a,o){return k(a,t.type)||k(a,t.expression)},217:function(t,a,o){return k(a,t.expression)},220:function(t,a,o){return k(a,t.expression)},221:function(t,a,o){return k(a,t.expression)},222:function(t,a,o){return k(a,t.expression)},224:function(t,a,o){return k(a,t.operand)},229:function(t,a,o){return k(a,t.asteriskToken)||k(a,t.expression)},223:function(t,a,o){return k(a,t.expression)},225:function(t,a,o){return k(a,t.operand)},226:function(t,a,o){return k(a,t.left)||k(a,t.operatorToken)||k(a,t.right)},234:function(t,a,o){return k(a,t.expression)||k(a,t.type)},235:function(t,a,o){return k(a,t.expression)},238:function(t,a,o){return k(a,t.expression)||k(a,t.type)},236:function(t,a,o){return k(a,t.name)},227:function(t,a,o){return k(a,t.condition)||k(a,t.questionToken)||k(a,t.whenTrue)||k(a,t.colonToken)||k(a,t.whenFalse)},230:function(t,a,o){return k(a,t.expression)},241:pm,268:pm,307:function(t,a,o){return ie(a,o,t.statements)||k(a,t.endOfFileToken)},243:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.declarationList)},261:function(t,a,o){return ie(a,o,t.declarations)},244:function(t,a,o){return k(a,t.expression)},245:function(t,a,o){return k(a,t.expression)||k(a,t.thenStatement)||k(a,t.elseStatement)},246:function(t,a,o){return k(a,t.statement)||k(a,t.expression)},247:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},248:function(t,a,o){return k(a,t.initializer)||k(a,t.condition)||k(a,t.incrementor)||k(a,t.statement)},249:function(t,a,o){return k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},250:function(t,a,o){return k(a,t.awaitModifier)||k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},251:fm,252:fm,253:function(t,a,o){return k(a,t.expression)},254:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},255:function(t,a,o){return k(a,t.expression)||k(a,t.caseBlock)},269:function(t,a,o){return ie(a,o,t.clauses)},296:function(t,a,o){return k(a,t.expression)||ie(a,o,t.statements)},297:function(t,a,o){return ie(a,o,t.statements)},256:function(t,a,o){return k(a,t.label)||k(a,t.statement)},257:function(t,a,o){return k(a,t.expression)},258:function(t,a,o){return k(a,t.tryBlock)||k(a,t.catchClause)||k(a,t.finallyBlock)},299:function(t,a,o){return k(a,t.variableDeclaration)||k(a,t.block)},170:function(t,a,o){return k(a,t.expression)},263:dm,231:dm,264:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.heritageClauses)||ie(a,o,t.members)},265:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||k(a,t.type)},266:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.members)},306:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},267:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.body)},271:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.moduleReference)},272:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.importClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},273:function(t,a,o){return k(a,t.name)||k(a,t.namedBindings)},300:function(t,a,o){return ie(a,o,t.elements)},301:function(t,a,o){return k(a,t.name)||k(a,t.value)},270:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)},274:function(t,a,o){return k(a,t.name)},280:function(t,a,o){return k(a,t.name)},275:mm,279:mm,278:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.exportClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},276:hm,281:hm,277:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.expression)},228:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},239:function(t,a,o){return k(a,t.expression)||k(a,t.literal)},203:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},204:function(t,a,o){return k(a,t.type)||k(a,t.literal)},167:function(t,a,o){return k(a,t.expression)},298:function(t,a,o){return ie(a,o,t.types)},233:function(t,a,o){return k(a,t.expression)||ie(a,o,t.typeArguments)},283:function(t,a,o){return k(a,t.expression)},282:function(t,a,o){return ie(a,o,t.modifiers)},356:function(t,a,o){return ie(a,o,t.elements)},284:function(t,a,o){return k(a,t.openingElement)||ie(a,o,t.children)||k(a,t.closingElement)},288:function(t,a,o){return k(a,t.openingFragment)||ie(a,o,t.children)||k(a,t.closingFragment)},285:ym,286:ym,292:function(t,a,o){return ie(a,o,t.properties)},291:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},293:function(t,a,o){return k(a,t.expression)},294:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.expression)},287:function(t,a,o){return k(a,t.tagName)},295:function(t,a,o){return k(a,t.namespace)||k(a,t.name)},190:zi,191:zi,309:zi,315:zi,314:zi,316:zi,318:zi,317:function(t,a,o){return ie(a,o,t.parameters)||k(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ie(a,o,t.comment))||ie(a,o,t.tags)},347:function(t,a,o){return k(a,t.tagName)||k(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},310:function(t,a,o){return k(a,t.name)},311:function(t,a,o){return k(a,t.left)||k(a,t.right)},341:gm,348:gm,330:function(t,a,o){return k(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},329:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},328:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},345:function(t,a,o){return k(a,t.tagName)||k(a,t.constraint)||ie(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},346:function(t,a,o){return k(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?k(a,t.typeExpression)||k(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)):k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)))},338:function(t,a,o){return k(a,t.tagName)||k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},342:Fi,344:Fi,343:Fi,340:Fi,350:Fi,349:Fi,339:Fi,323:function(t,a,o){return Un(t.typeParameters,a)||Un(t.parameters,a)||k(a,t.type)},324:Dp,325:Dp,326:Dp,322:function(t,a,o){return Un(t.jsDocPropertyTags,a)},327:ui,332:ui,333:ui,334:ui,335:ui,336:ui,331:ui,337:ui,351:L6,355:j6};function sm(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||k(t,e.type)}function om(e,t,a){return ie(t,a,e.types)}function cm(e,t,a){return k(t,e.type)}function lm(e,t,a){return ie(t,a,e.elements)}function um(e,t,a){return k(t,e.expression)||k(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function pm(e,t,a){return ie(t,a,e.statements)}function fm(e,t,a){return k(t,e.label)}function dm(e,t,a){return ie(t,a,e.modifiers)||k(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function mm(e,t,a){return ie(t,a,e.elements)}function hm(e,t,a){return k(t,e.propertyName)||k(t,e.name)}function ym(e,t,a){return k(t,e.tagName)||ie(t,a,e.typeArguments)||k(t,e.attributes)}function zi(e,t,a){return k(t,e.type)}function gm(e,t,a){return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Fi(e,t,a){return k(t,e.tagName)||k(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Dp(e,t,a){return k(t,e.name)}function ui(e,t,a){return k(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function L6(e,t,a){return k(t,e.tagName)||k(t,e.importClause)||k(t,e.moduleSpecifier)||k(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function j6(e,t,a){return k(t,e.expression)}function Xt(e,t,a){if(e===void 0||e.kind<=165)return;let o=J6[e.kind];return o===void 0?void 0:o(e,t,a)}function bm(e,t,a){let o=vm(e),m=[];for(;m.length=0;--P)o.push(v[P]),m.push(A)}else{let P=t(v,A);if(P){if(P==="skip")continue;return P}if(v.kind>=166)for(let l of vm(v))o.push(l),m.push(v)}}}function vm(e){let t=[];return Xt(e,a,a),t;function a(o){t.unshift(o)}}function ph(e){e.externalModuleIndicator=P6(e)}function fh(e,t,a,o=!1,m){var v,A;(v=sl)==null||v.push(sl.Phase.Parse,"createSourceFile",{path:e},!0),wd("beforeParse");let P,{languageVersion:l,setExternalModuleIndicator:Q,impliedNodeFormat:h,jsDocParsingMode:y}=typeof a=="object"?a:{languageVersion:a};if(l===100)P=$i.parseSourceFile(e,t,l,void 0,o,6,Fa,y);else{let g=h===void 0?Q:x=>(x.impliedNodeFormat=h,(Q||ph)(x));P=$i.parseSourceFile(e,t,l,void 0,o,m,g,y)}return wd("afterParse"),Oy("Parse","beforeParse","afterParse"),(A=sl)==null||A.pop(),P}function dh(e){return e.externalModuleIndicator!==void 0}function R6(e,t,a,o=!1){let m=Tl.updateSourceFile(e,t,a,o);return m.flags|=e.flags&12582912,m}var $i;(e=>{var t=of(99,!0),a=40960,o,m,v,A,P;function l(s){return ar++,s}var Q={createBaseSourceFileNode:s=>l(new P(s,0,0)),createBaseIdentifierNode:s=>l(new v(s,0,0)),createBasePrivateIdentifierNode:s=>l(new A(s,0,0)),createBaseTokenNode:s=>l(new m(s,0,0)),createBaseNode:s=>l(new o(s,0,0))},h=kf(11,Q),{createNodeArray:y,createNumericLiteral:g,createStringLiteral:x,createLiteralLikeNode:I,createIdentifier:re,createPrivateIdentifier:he,createToken:ye,createArrayLiteralExpression:de,createObjectLiteralExpression:M,createPropertyAccessExpression:ae,createPropertyAccessChain:Oe,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:W,createCallChain:dt,createNewExpression:nr,createParenthesizedExpression:gn,createBlock:rr,createVariableStatement:bn,createExpressionStatement:In,createIfStatement:Ge,createWhileStatement:ir,createForStatement:Pr,createForOfStatement:Ot,createVariableDeclaration:Bn,createVariableDeclarationList:On}=h,Mt,vt,Qe,qn,$t,ct,_t,Ut,Jt,lt,ar,mt,vn,yt,cn,nt,Bt=!0,rn=!1;function _r(s,p,d,b,S=!1,N,X,_e=0){var Z;if(N=gb(s,N),N===6){let ce=dr(s,p,d,b,S);return convertToJson(ce,(Z=ce.statements[0])==null?void 0:Z.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=bt,ce.typeReferenceDirectives=bt,ce.libReferenceDirectives=bt,ce.amdDependencies=bt,ce.hasNoDefaultLib=!1,ce.pragmas=ay,ce}zn(s,p,d,b,N,_e);let ee=Nr(d,S,N,X||ph,_e);return Fn(),ee}e.parseSourceFile=_r;function fr(s,p){zn("",s,p,void 0,1,0),U();let d=jr(!0),b=u()===1&&!_t.length;return Fn(),b?d:void 0}e.parseIsolatedEntityName=fr;function dr(s,p,d=2,b,S=!1){zn(s,p,d,b,6,0),vt=nt,U();let N=J(),X,_e;if(u()===1)X=Ct([],N,N),_e=Wt();else{let ce;for(;u()!==1;){let Ae;switch(u()){case 23:Ae=ac();break;case 112:case 97:case 106:Ae=Wt();break;case 41:G(()=>U()===9&&U()!==59)?Ae=Fo():Ae=I_();break;case 9:case 11:if(G(()=>U()!==59)){Ae=Hn();break}default:Ae=I_();break}ce&&Yr(ce)?ce.push(Ae):ce?ce=[ce,Ae]:(ce=Ae,u()!==1&&Ee(E.Unexpected_token))}let Le=Yr(ce)?D(de(ce),N):B.checkDefined(ce),je=In(Le);D(je,N),X=Ct([je],N),_e=Yn(1,E.Unexpected_token)}let Z=se(s,2,6,!1,X,_e,vt,Fa);S&&L(Z),Z.nodeCount=ar,Z.identifierCount=vn,Z.identifiers=mt,Z.parseDiagnostics=qi(_t,Z),Ut&&(Z.jsDocDiagnostics=qi(Ut,Z));let ee=Z;return Fn(),ee}e.parseJsonText=dr;function zn(s,p,d,b,S,N){switch(o=At.getNodeConstructor(),m=At.getTokenConstructor(),v=At.getIdentifierConstructor(),A=At.getPrivateIdentifierConstructor(),P=At.getSourceFileConstructor(),Mt=Gy(s),Qe=p,qn=d,Jt=b,$t=S,ct=Vd(S),_t=[],yt=0,mt=new Map,vn=0,ar=0,vt=0,Bt=!0,$t){case 1:case 2:nt=524288;break;case 6:nt=134742016;break;default:nt=0;break}rn=!1,t.setText(Qe),t.setOnError(Zr),t.setScriptTarget(qn),t.setLanguageVariant(ct),t.setScriptKind($t),t.setJSDocParsingMode(N)}function Fn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,qn=void 0,Jt=void 0,$t=void 0,ct=void 0,vt=0,_t=void 0,Ut=void 0,yt=0,mt=void 0,cn=void 0,Bt=!0}function Nr(s,p,d,b,S){let N=q6(Mt);N&&(nt|=33554432),vt=nt,U();let X=xn(0,Kt);B.assert(u()===1);let _e=qe(),Z=Ce(Wt(),_e),ee=se(Mt,s,d,N,X,Z,vt,b);return V6(ee,Qe),W6(ee,ce),ee.commentDirectives=t.getCommentDirectives(),ee.nodeCount=ar,ee.identifierCount=vn,ee.identifiers=mt,ee.parseDiagnostics=qi(_t,ee),ee.jsDocParsingMode=S,Ut&&(ee.jsDocDiagnostics=qi(Ut,ee)),p&&L(ee),ee;function ce(Le,je,Ae){_t.push(Oa(Mt,Qe,Le,je,Ae))}}let Vn=!1;function Ce(s,p){if(!p)return s;B.assert(!s.jsDoc);let d=cy(d2(s,Qe),b=>Xc.parseJSDocComment(s,b.pos,b.end-b.pos));return d.length&&(s.jsDoc=d),Vn&&(Vn=!1,s.flags|=536870912),s}function mr(s){let p=Jt,d=Tl.createSyntaxCursor(s);Jt={currentNode:ce};let b=[],S=_t;_t=[];let N=0,X=Z(s.statements,0);for(;X!==-1;){let Le=s.statements[N],je=s.statements[X];Dn(b,s.statements,N,X),N=ee(s.statements,X);let Ae=bp(S,mn=>mn.start>=Le.pos),Yt=Ae>=0?bp(S,mn=>mn.start>=je.pos,Ae):-1;Ae>=0&&Dn(_t,S,Ae,Yt>=0?Yt:void 0),un(()=>{let mn=nt;for(nt|=65536,t.resetTokenState(je.pos),U();u()!==1;){let Zt=t.getTokenFullStart(),ur=n_(0,Kt);if(b.push(ur),Zt===t.getTokenFullStart()&&U(),N>=0){let Ln=s.statements[N];if(ur.end===Ln.pos)break;ur.end>Ln.pos&&(N=ee(s.statements,N+1))}}nt=mn},2),X=N>=0?Z(s.statements,N):-1}if(N>=0){let Le=s.statements[N];Dn(b,s.statements,N);let je=bp(S,Ae=>Ae.start>=Le.pos);je>=0&&Dn(_t,S,je)}return Jt=p,h.updateSourceFile(s,yn(y(b),s.statements));function _e(Le){return!(Le.flags&65536)&&!!(Le.transformFlags&67108864)}function Z(Le,je){for(let Ae=je;Ae118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function j(s,p,d=!0){return u()===s?(d&&U(),!0):(p?Ee(p):Ee(E._0_expected,it(s)),!1)}let ht=Object.keys(rf).filter(s=>s.length>2);function xt(s){if(W1(s)){rt(Ar(Qe,s.template.pos),s.template.end,E.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=tt(s)?Pn(s):void 0;if(!p||!pg(p,qn)){Ee(E._0_expected,it(27));return}let d=Ar(Qe,s.pos);switch(p){case"const":case"let":case"var":rt(d,s.end,E.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lt(E.Interface_name_cannot_be_0,E.Interface_must_be_given_a_name,19);return;case"is":rt(d,t.getTokenStart(),E.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lt(E.Namespace_name_cannot_be_0,E.Namespace_must_be_given_a_name,19);return;case"type":Lt(E.Type_alias_name_cannot_be_0,E.Type_alias_must_be_given_a_name,64);return}let b=ns(p,ht,gt)??pn(p);if(b){rt(d,s.end,E.Unknown_keyword_or_identifier_Did_you_mean_0,b);return}u()!==0&&rt(d,s.end,E.Unexpected_keyword_or_identifier)}function Lt(s,p,d){u()===d?Ee(p):Ee(s,t.getTokenValue())}function pn(s){for(let p of ht)if(s.length>p.length+2&&pl(s,p))return`${p} ${s.slice(p.length)}`}function Bl(s,p,d){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(E.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(E.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!sr()){d?Ee(E._0_expected,it(27)):Ee(E.Expected_for_property_initializer);return}if(!ia()){if(d){Ee(E._0_expected,it(27));return}xt(s)}}function Es(s){return u()===s?(ze(),!0):(B.assert(Sp(s)),Ee(E._0_expected,it(s)),!1)}function Or(s,p,d,b){if(u()===p){U();return}let S=Ee(E._0_expected,it(p));d&&S&&rl(S,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,it(s),it(p)))}function Je(s){return u()===s?(U(),!0):!1}function ft(s){if(u()===s)return Wt()}function ql(s){if(u()===s)return Fl()}function Yn(s,p,d){return ft(s)||Gt(s,!1,p||E._0_expected,d||it(s))}function zl(s){let p=ql(s);return p||(B.assert(Sp(s)),Gt(s,!1,E._0_expected,it(s)))}function Wt(){let s=J(),p=u();return U(),D(ye(p),s)}function Fl(){let s=J(),p=u();return ze(),D(ye(p),s)}function sr(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function ia(){return sr()?(u()===27&&U(),!0):!1}function Qt(){return ia()||j(27)}function Ct(s,p,d,b){let S=y(s,b);return yi(S,p,d??t.getTokenFullStart()),S}function D(s,p,d){return yi(s,p,d??t.getTokenFullStart()),nt&&(s.flags|=nt),rn&&(rn=!1,s.flags|=262144),s}function Gt(s,p,d,...b){p?Tn(t.getTokenFullStart(),0,d,...b):d&&Ee(d,...b);let S=J(),N=s===80?re("",void 0):Jd(s)?h.createTemplateLiteralLikeNode(s,"","",void 0):s===9?g("",void 0):s===11?x("",void 0):s===282?h.createMissingDeclaration():ye(s);return D(N,S)}function Mr(s){let p=mt.get(s);return p===void 0&&mt.set(s,p=s),p}function or(s,p,d){if(s){vn++;let _e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():J(),Z=u(),ee=Mr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Ie(),D(re(ee,Z,ce),_e)}if(u()===81)return Ee(d||E.Private_identifiers_are_not_allowed_outside_class_bodies),or(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return or(!0);vn++;let b=u()===1,S=t.isReservedWord(),N=t.getTokenText(),X=S?E.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:E.Identifier_expected;return Gt(80,b,p||X,N)}function Ka(s){return or(Fe(),void 0,s)}function St(s,p){return or(ve(),s,p)}function jt(s){return or(wt(u()),s)}function ei(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(E.Unicode_escape_sequence_cannot_appear_here),or(wt(u()))}function yr(){return wt(u())||u()===11||u()===9||u()===10}function As(){return wt(u())||u()===11}function Vl(s){if(u()===11||u()===9||u()===10){let p=Hn();return p.text=Mr(p.text),p}return s&&u()===23?Wl():u()===81?aa():jt()}function Jr(){return Vl(!0)}function Wl(){let s=J();j(23);let p=ut(Et);return j(24),D(h.createComputedPropertyName(p),s)}function aa(){let s=J(),p=he(Mr(t.getTokenValue()));return U(),D(p,s)}function ti(s){return u()===s&&le(Cs)}function Za(){return U(),t.hasPrecedingLineBreak()?!1:cr()}function Cs(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?G(Ei):u()===156?G(Gl):ki();case 90:return Ei();case 126:return U(),cr();case 139:case 153:return U(),Yl();default:return Za()}}function ki(){return u()===60||u()!==42&&u()!==130&&u()!==19&&cr()}function Gl(){return U(),ki()}function Ds(){return Wr(u())&&le(Cs)}function cr(){return u()===23||u()===19||u()===42||u()===26||yr()}function Yl(){return u()===23||yr()}function Ei(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&G(gc)||u()===134&&G(bc)}function _a(s,p){if(oa(s))return!0;switch(s){case 0:case 1:case 3:return!(u()===27&&p)&&vc();case 2:return u()===84||u()===90;case 4:return G(ao);case 5:return G(Wu)||u()===27&&!p;case 6:return u()===23||yr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return yr()}case 18:return yr();case 9:return u()===23||u()===26||yr();case 24:return As();case 7:return u()===19?G(Ps):p?ve()&&!e_():x_()&&!e_();case 8:return wa();case 10:return u()===28||u()===26||wa();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||br();case 16:return pa(!1);case 17:return pa(!0);case 20:case 21:return u()===28||ai();case 22:return Rc();case 23:return u()===161&&G(Uu)?!1:u()===11?!0:wt(u());case 13:return wt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s,"Non-exhaustive case in 'isListElement'.")}}function Ps(){if(B.assert(u()===19),U()===20){let s=U();return s===28||s===19||s===96||s===119}return!0}function Ai(){return U(),ve()}function Hl(){return U(),wt(u())}function Ns(){return U(),Yy(u())}function e_(){return u()===119||u()===96?G(Is):!1}function Is(){return U(),br()}function Ci(){return U(),ai()}function sa(s){if(u()===1)return!0;switch(s){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return t_();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&G(G_);default:return!1}}function t_(){return!!(sr()||Uo(u())||u()===39)}function Os(){B.assert(yt,"Missing parsing context");for(let s=0;s<26;s++)if(yt&1<=0)}function __(s){return s===6?E.An_enum_member_name_must_be_followed_by_a_or:void 0}function lr(){let s=Ct([],J());return s.isMissingList=!0,s}function zs(s){return!!s.isMissingList}function Lr(s,p,d,b){if(j(d)){let S=fn(s,p);return j(b),S}return lr()}function jr(s,p){let d=J(),b=s?jt(p):St(p);for(;Je(25)&&u()!==30;)b=D(h.createQualifiedName(b,ni(s,!1,!0)),d);return b}function Xl(s,p){return D(h.createQualifiedName(s,p),s.pos)}function ni(s,p,d){if(t.hasPrecedingLineBreak()&&wt(u())&&G(M_))return Gt(80,!0,E.Identifier_expected);if(u()===81){let b=aa();return p?b:Gt(80,!0,E.Identifier_expected)}return s?d?jt():ei():St()}function $l(s){let p=J(),d=[],b;do b=Gs(s),d.push(b);while(b.literal.kind===17);return Ct(d,p)}function la(s){let p=J();return D(h.createTemplateExpression(Di(s),$l(s)),p)}function Fs(){let s=J();return D(h.createTemplateLiteralType(Di(!1),Ql()),s)}function Ql(){let s=J(),p=[],d;do d=Vs(),p.push(d);while(d.literal.kind===17);return Ct(p,s)}function Vs(){let s=J();return D(h.createTemplateLiteralTypeSpan(ot(),Ws(!1)),s)}function Ws(s){return u()===20?(Pt(s),Ys()):Yn(18,E._0_expected,it(20))}function Gs(s){let p=J();return D(h.createTemplateSpan(ut(Et),Ws(s)),p)}function Hn(){return ri(u())}function Di(s){!s&&t.getTokenFlags()&26656&&Pt(!1);let p=ri(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function Ys(){let s=ri(u());return B.assert(s.kind===17||s.kind===18,"Template fragment has wrong token kind"),s}function Kl(s){let p=s===15||s===18,d=t.getTokenText();return d.substring(1,d.length-(t.isUnterminated()?0:p?1:2))}function ri(s){let p=J(),d=Jd(s)?h.createTemplateLiteralLikeNode(s,t.getTokenValue(),Kl(s),t.getTokenFlags()&7176):s===9?g(t.getTokenValue(),t.getNumericLiteralFlags()):s===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Ug(s)?I(s,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(d.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(d.isUnterminated=!0),U(),D(d,p)}function ii(){return jr(!0,E.Type_expected)}function Hs(){if(!t.hasPrecedingLineBreak()&&kt()===30)return Lr(20,ot,30,32)}function ua(){let s=J();return D(h.createTypeReferenceNode(ii(),Hs()),s)}function s_(s){switch(s.kind){case 183:return Hi(s.typeName);case 184:case 185:{let{parameters:p,type:d}=s;return zs(p)||s_(d)}case 196:return s_(s.type);default:return!1}}function Zl(s){return U(),D(h.createTypePredicateNode(void 0,s,ot()),s.pos)}function o_(){let s=J();return U(),D(h.createThisTypeNode(),s)}function eu(){let s=J();return U(),D(h.createJSDocAllType(),s)}function Xs(){let s=J();return U(),D(h.createJSDocNonNullableType(b_(),!1),s)}function tu(){let s=J();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?D(h.createJSDocUnknownType(),s):D(h.createJSDocNullableType(ot(),!1),s)}function $s(){let s=J(),p=qe();if(le(Fc)){let d=Xn(36),b=Jn(59,!1);return Ce(D(h.createJSDocFunctionType(d,b),s),p)}return D(h.createTypeReferenceNode(jt(),void 0),s)}function c_(){let s=J(),p;return(u()===110||u()===105)&&(p=jt(),j(59)),D(h.createParameterDeclaration(void 0,void 0,p,void 0,l_(),void 0),s)}function l_(){t.setSkipJsDocLeadingAsterisks(!0);let s=J();if(Je(144)){let b=h.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:ze()}return t.setSkipJsDocLeadingAsterisks(!1),D(b,s)}let p=Je(26),d=ma();return t.setSkipJsDocLeadingAsterisks(!1),p&&(d=D(h.createJSDocVariadicType(d),s)),u()===64?(U(),D(h.createJSDocOptionalType(d),s)):d}function Qs(){let s=J();j(114);let p=jr(!0),d=t.hasPrecedingLineBreak()?void 0:Aa();return D(h.createTypeQueryNode(p,d),s)}function Ks(){let s=J(),p=wn(!1,!0),d=St(),b,S;Je(96)&&(ai()||!br()?b=ot():S=Yo());let N=Je(64)?ot():void 0,X=h.createTypeParameterDeclaration(p,d,b,N);return X.expression=S,D(X,s)}function dn(){if(u()===30)return Lr(19,Ks,30,32)}function pa(s){return u()===26||wa()||Wr(u())||u()===60||ai(!s)}function Zs(s){let p=Li(E.Private_identifiers_cannot_be_used_as_parameters);return c2(p)===0&&!Ht(s)&&Wr(u())&&U(),p}function eo(){return Fe()||u()===23||u()===19}function u_(s){return p_(s)}function to(s){return p_(s,!1)}function p_(s,p=!0){let d=J(),b=qe(),S=s?R(()=>wn(!0)):$(()=>wn(!0));if(u()===110){let Z=h.createParameterDeclaration(S,void 0,or(!0),void 0,gr(),void 0),ee=Xp(S);return ee&&ln(ee,E.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ce(D(Z,d),b)}let N=Bt;Bt=!1;let X=ft(26);if(!p&&!eo())return;let _e=Ce(D(h.createParameterDeclaration(S,X,Zs(S),ft(58),gr(),vr()),d),b);return Bt=N,_e}function Jn(s,p){if(no(s,p))return hr(ma)}function no(s,p){return s===39?(j(s),!0):Je(59)?!0:p&&u()===39?(Ee(E._0_expected,it(59)),U(),!0):!1}function f_(s,p){let d=we(),b=Ye();Xe(!!(s&1)),st(!!(s&2));let S=s&32?fn(17,c_):fn(16,()=>p?u_(b):to(b));return Xe(d),st(b),S}function Xn(s){if(!j(21))return lr();let p=f_(s,!0);return j(22),p}function fa(){Je(28)||Qt()}function ro(s){let p=J(),d=qe();s===180&&j(105);let b=dn(),S=Xn(4),N=Jn(59,!0);fa();let X=s===179?h.createCallSignature(b,S,N):h.createConstructSignature(b,S,N);return Ce(D(X,p),d)}function Rr(){return u()===23&&G(nu)}function nu(){if(U(),u()===26||u()===24)return!0;if(Wr(u())){if(U(),ve())return!0}else if(ve())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function d_(s,p,d){let b=Lr(16,()=>u_(!1),23,24),S=gr();fa();let N=h.createIndexSignature(d,b,S);return Ce(D(N,s),p)}function io(s,p,d){let b=Jr(),S=ft(58),N;if(u()===21||u()===30){let X=dn(),_e=Xn(4),Z=Jn(59,!0);N=h.createMethodSignature(d,b,S,X,_e,Z)}else{let X=gr();N=h.createPropertySignature(d,b,S,X),u()===64&&(N.initializer=vr())}return fa(),Ce(D(N,s),p)}function ao(){if(u()===21||u()===30||u()===139||u()===153)return!0;let s=!1;for(;Wr(u());)s=!0,U();return u()===23?!0:(yr()&&(s=!0,U()),s?u()===21||u()===30||u()===58||u()===59||u()===28||sr():!1)}function Pi(){if(u()===21||u()===30)return ro(179);if(u()===105&&G(_o))return ro(180);let s=J(),p=qe(),d=wn(!1);return ti(139)?qr(s,p,d,177,4):ti(153)?qr(s,p,d,178,4):Rr()?d_(s,p,d):io(s,p,d)}function _o(){return U(),u()===21||u()===30}function so(){return U()===25}function oo(){switch(U()){case 21:case 30:case 25:return!0}return!1}function co(){let s=J();return D(h.createTypeLiteralNode(lo()),s)}function lo(){let s;return j(19)?(s=xn(4,Pi),j(20)):s=lr(),s}function uo(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&Ai()&&U()===103)}function ru(){let s=J(),p=jt();j(103);let d=ot();return D(h.createTypeParameterDeclaration(void 0,p,d,void 0),s)}function po(){let s=J();j(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&j(148)),j(23);let d=ru(),b=Je(130)?ot():void 0;j(24);let S;(u()===58||u()===40||u()===41)&&(S=Wt(),S.kind!==58&&j(58));let N=gr();Qt();let X=xn(4,Pi);return j(20),D(h.createMappedTypeNode(p,d,b,S,N,X),s)}function fo(){let s=J();if(Je(26))return D(h.createRestTypeNode(ot()),s);let p=ot();if(ih(p)&&p.pos===p.type.pos){let d=h.createOptionalTypeNode(p.type);return yn(d,p),d.flags=p.flags,d}return p}function m_(){return U()===59||u()===58&&U()===59}function iu(){return u()===26?wt(U())&&m_():wt(u())&&m_()}function mo(){if(G(iu)){let s=J(),p=qe(),d=ft(26),b=jt(),S=ft(58);j(59);let N=fo(),X=h.createNamedTupleMember(d,b,S,N);return Ce(D(X,s),p)}return fo()}function au(){let s=J();return D(h.createTupleTypeNode(Lr(21,mo,23,24)),s)}function ho(){let s=J();j(21);let p=ot();return j(22),D(h.createParenthesizedType(p),s)}function _u(){let s;if(u()===128){let p=J();U();let d=D(ye(128),p);s=Ct([d],p)}return s}function h_(){let s=J(),p=qe(),d=_u(),b=Je(105);B.assert(!d||b,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let S=dn(),N=Xn(4),X=Jn(39,!1),_e=b?h.createConstructorTypeNode(d,S,N,X):h.createFunctionTypeNode(S,N,X);return Ce(D(_e,s),p)}function yo(){let s=Wt();return u()===25?void 0:s}function y_(s){let p=J();s&&U();let d=u()===112||u()===97||u()===106?Wt():ri(u());return s&&(d=D(h.createPrefixUnaryExpression(41,d),p)),D(h.createLiteralTypeNode(d),p)}function su(){return U(),u()===102}function g_(){vt|=4194304;let s=J(),p=Je(114);j(102),j(21);let d=ot(),b;if(Je(28)){let X=t.getTokenStart();j(19);let _e=u();if(_e===118||_e===132?U():Ee(E._0_expected,it(118)),j(59),b=Y_(_e,!0),!j(20)){let Z=Gi(_t);Z&&Z.code===E._0_expected.code&&rl(Z,Oa(Mt,Qe,X,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}j(22);let S=Je(25)?ii():void 0,N=Hs();return D(h.createImportTypeNode(d,b,S,N,p),s)}function go(){return U(),u()===9||u()===10}function b_(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return le(yo)||ua();case 67:t.reScanAsteriskEqualsToken();case 42:return eu();case 61:t.reScanQuestionToken();case 58:return tu();case 100:return $s();case 54:return Xs();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return y_();case 41:return G(go)?y_(!0):ua();case 116:return Wt();case 110:{let s=o_();return u()===142&&!t.hasPrecedingLineBreak()?Zl(s):s}case 114:return G(su)?g_():Qs();case 19:return G(uo)?po():co();case 23:return au();case 21:return ho();case 102:return g_();case 131:return G(M_)?Co():ua();case 16:return Fs();default:return ua()}}function ai(s){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!s;case 41:return!s&&G(go);case 21:return!s&&G(bo);default:return ve()}}function bo(){return U(),u()===22||pa(!1)||ai()}function vo(){let s=J(),p=b_();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=D(h.createJSDocNonNullableType(p,!0),s);break;case 58:if(G(Ci))return p;U(),p=D(h.createJSDocNullableType(p,!0),s);break;case 23:if(j(23),ai()){let d=ot();j(24),p=D(h.createIndexedAccessTypeNode(p,d),s)}else j(24),p=D(h.createArrayTypeNode(p),s);break;default:return p}return p}function To(s){let p=J();return j(s),D(h.createTypeOperatorNode(s,So()),p)}function ou(){if(Je(96)){let s=Mn(ot);if(We()||u()!==58)return s}}function xo(){let s=J(),p=St(),d=le(ou),b=h.createTypeParameterDeclaration(void 0,p,d);return D(b,s)}function cu(){let s=J();return j(140),D(h.createInferTypeNode(xo()),s)}function So(){let s=u();switch(s){case 143:case 158:case 148:return To(s);case 140:return cu()}return hr(vo)}function da(s){if(T_()){let p=h_(),d;return Nf(p)?d=s?E.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:d=s?E.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,ln(p,d),p}}function wo(s,p,d){let b=J(),S=s===52,N=Je(s),X=N&&da(S)||p();if(u()===s||N){let _e=[X];for(;Je(s);)_e.push(da(S)||p());X=D(d(Ct(_e,b)),b)}return X}function v_(){return wo(51,So,h.createIntersectionTypeNode)}function lu(){return wo(52,v_,h.createUnionTypeNode)}function ko(){return U(),u()===105}function T_(){return u()===30||u()===21&&G(Eo)?!0:u()===105||u()===128&&G(ko)}function uu(){if(Wr(u())&&wn(!1),ve()||u()===110)return U(),!0;if(u()===23||u()===19){let s=_t.length;return Li(),s===_t.length}return!1}function Eo(){return U(),!!(u()===22||u()===26||uu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function ma(){let s=J(),p=ve()&&le(Ao),d=ot();return p?D(h.createTypePredicateNode(void 0,p,d),s):d}function Ao(){let s=St();if(u()===142&&!t.hasPrecedingLineBreak())return U(),s}function Co(){let s=J(),p=Yn(131),d=u()===110?o_():St(),b=Je(142)?ot():void 0;return D(h.createTypePredicateNode(p,d,b),s)}function ot(){if(nt&81920)return Dt(81920,ot);if(T_())return h_();let s=J(),p=lu();if(!We()&&!t.hasPrecedingLineBreak()&&Je(96)){let d=Mn(ot);j(58);let b=hr(ot);j(59);let S=hr(ot);return D(h.createConditionalTypeNode(p,d,b,S),s)}return p}function gr(){return Je(59)?ot():void 0}function x_(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return G(oo);default:return ve()}}function br(){if(x_())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Bo()?!0:ve()}}function Do(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&br()}function Et(){let s=Ze();s&&Ke(!1);let p=J(),d=zt(!0),b;for(;b=ft(28);)d=k_(d,b,zt(!0),p);return s&&Ke(!0),d}function vr(){return Je(64)?zt(!0):void 0}function zt(s){if(Po())return No();let p=fu(s)||Lo(s);if(p)return p;let d=J(),b=qe(),S=Ni(0);return S.kind===80&&u()===39?Io(d,S,s,b,void 0):qa(S)&&x1(Ve())?k_(S,Wt(),zt(s),d):du(S,d,s)}function Po(){return u()===127?we()?!0:G(J_):!1}function pu(){return U(),!t.hasPrecedingLineBreak()&&ve()}function No(){let s=J();return U(),!t.hasPrecedingLineBreak()&&(u()===42||br())?D(h.createYieldExpression(ft(42),zt(!0)),s):D(h.createYieldExpression(void 0,void 0),s)}function Io(s,p,d,b,S){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=h.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);D(N,p.pos);let X=Ct([N],N.pos,N.end),_e=Yn(39),Z=S_(!!S,d),ee=h.createArrowFunction(S,void 0,X,void 0,_e,Z);return Ce(D(ee,s),b)}function fu(s){let p=Oo();if(p!==0)return p===1?Ro(!0,!0):le(()=>Jo(s))}function Oo(){return u()===21||u()===30||u()===134?G(Mo):u()===39?1:0}function Mo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let s=u(),p=U();if(s===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Wr(p)&&p!==134&&G(Ai))return U()===130?0:1;if(!ve()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(s===30),!ve()&&u()!==87?0:ct===1?G(()=>{Je(87);let b=U();if(b===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(b===28||b===64)return!0;return!1})?1:0:2}function Jo(s){let p=t.getTokenStart();if(cn!=null&&cn.has(p))return;let d=Ro(!1,s);return d||(cn||(cn=new Set)).add(p),d}function Lo(s){if(u()===134&&G(jo)===1){let p=J(),d=qe(),b=Jc(),S=Ni(0);return Io(p,S,s,d,b)}}function jo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let s=Ni(0);if(!t.hasPrecedingLineBreak()&&s.kind===80&&u()===39)return 1}return 0}function Ro(s,p){let d=J(),b=qe(),S=Jc(),N=Ht(S,_l)?2:0,X=dn(),_e;if(j(21)){if(s)_e=f_(N,s);else{let Zt=f_(N,s);if(!Zt)return;_e=Zt}if(!j(22)&&!s)return}else{if(!s)return;_e=lr()}let Z=u()===59,ee=Jn(59,!1);if(ee&&!s&&s_(ee))return;let ce=ee;for(;(ce==null?void 0:ce.kind)===196;)ce=ce.type;let Le=ce&&ah(ce);if(!s&&u()!==39&&(Le||u()!==19))return;let je=u(),Ae=Yn(39),Yt=je===39||je===19?S_(Ht(S,_l),p):St();if(!p&&Z&&u()!==59)return;let mn=h.createArrowFunction(S,X,_e,ee,Ae,Yt);return Ce(D(mn,d),b)}function S_(s,p){if(u()===19)return va(s?2:0);if(u()!==27&&u()!==100&&u()!==86&&vc()&&!Do())return va(16|(s?2:0));let d=Bt;Bt=!1;let b=s?R(()=>zt(p)):$(()=>zt(p));return Bt=d,b}function du(s,p,d){let b=ft(58);if(!b)return s;let S;return D(h.createConditionalExpression(s,b,Dt(a,()=>zt(!1)),S=Yn(59),Up(S)?zt(d):Gt(80,!1,E._0_expected,it(59))),p)}function Ni(s){let p=J(),d=Yo();return w_(s,d,p)}function Uo(s){return s===103||s===165}function w_(s,p,d){for(;;){Ve();let b=wp(u());if(!(u()===43?b>=s:b>s)||u()===103&&be())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();U(),p=N===152?qo(p,ot()):zo(p,ot())}}else p=k_(p,Wt(),Ni(b),d)}return p}function Bo(){return be()&&u()===103?!1:wp(u())>0}function qo(s,p){return D(h.createSatisfiesExpression(s,p),s.pos)}function k_(s,p,d,b){return D(h.createBinaryExpression(s,p,d),b)}function zo(s,p){return D(h.createAsExpression(s,p),s.pos)}function Fo(){let s=J();return D(h.createPrefixUnaryExpression(u(),Me(Tr)),s)}function Vo(){let s=J();return D(h.createDeleteExpression(Me(Tr)),s)}function mu(){let s=J();return D(h.createTypeOfExpression(Me(Tr)),s)}function Wo(){let s=J();return D(h.createVoidExpression(Me(Tr)),s)}function hu(){return u()===135?Ye()?!0:G(J_):!1}function Go(){let s=J();return D(h.createAwaitExpression(Me(Tr)),s)}function Yo(){if(yu()){let d=J(),b=ha();return u()===43?w_(wp(u()),b,d):b}let s=u(),p=Tr();if(u()===43){let d=Ar(Qe,p.pos),{end:b}=p;p.kind===216?rt(d,b,E.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(Sp(s)),rt(d,b,E.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,it(s)))}return p}function Tr(){switch(u()){case 40:case 41:case 55:case 54:return Fo();case 91:return Vo();case 114:return mu();case 116:return Wo();case 30:return ct===1?Oi(!0,void 0,void 0,!0):Ko();case 135:if(hu())return Go();default:return ha()}}function yu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ct!==1)return!1;default:return!0}}function ha(){if(u()===46||u()===47){let p=J();return D(h.createPrefixUnaryExpression(u(),Me(Ii)),p)}else if(ct===1&&u()===30&&G(Ns))return Oi(!0);let s=Ii();if(B.assert(qa(s)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),D(h.createPostfixUnaryExpression(s,p),s.pos)}return s}function Ii(){let s=J(),p;return u()===102?G(_o)?(vt|=4194304,p=Wt()):G(so)?(U(),U(),p=D(h.createMetaProperty(102,jt()),s),vt|=8388608):p=ya():p=u()===108?Ho():ya(),P_(s,p)}function ya(){let s=J(),p=N_();return _n(s,p,!0)}function Ho(){let s=J(),p=Wt();if(u()===30){let d=J(),b=le(ba);b!==void 0&&(rt(d,J(),E.super_may_not_use_type_arguments),Sn()||(p=h.createExpressionWithTypeArguments(p,b)))}return u()===21||u()===25||u()===23?p:(Yn(25,E.super_must_be_followed_by_an_argument_list_or_member_access),D(ae(p,ni(!0,!0,!0)),s))}function Oi(s,p,d,b=!1){let S=J(),N=vu(s),X;if(N.kind===286){let _e=ga(N),Z,ee=_e[_e.length-1];if((ee==null?void 0:ee.kind)===284&&!pi(ee.openingElement.tagName,ee.closingElement.tagName)&&pi(N.tagName,ee.closingElement.tagName)){let ce=ee.children.end,Le=D(h.createJsxElement(ee.openingElement,ee.children,D(h.createJsxClosingElement(D(re(""),ce,ce)),ce,ce)),ee.openingElement.pos,ce);_e=Ct([..._e.slice(0,_e.length-1),Le],_e.pos,ce),Z=ee.closingElement}else Z=Qo(N,s),pi(N.tagName,Z.tagName)||(d&&Fp(d)&&pi(Z.tagName,d.tagName)?ln(N.tagName,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,N.tagName)):ln(Z.tagName,E.Expected_corresponding_JSX_closing_tag_for_0,is(Qe,N.tagName)));X=D(h.createJsxElement(N,_e,Z),S)}else N.kind===289?X=D(h.createJsxFragment(N,ga(N),wu(s)),S):(B.assert(N.kind===285),X=N);if(!b&&s&&u()===30){let _e=typeof p>"u"?X.pos:p,Z=le(()=>Oi(!0,_e));if(Z){let ee=Gt(28,!1);return Gd(ee,Z.pos,0),rt(Ar(Qe,_e),Z.end,E.JSX_expressions_must_have_one_parent_element),D(h.createBinaryExpression(X,ee,Z),S)}}return X}function E_(){let s=J(),p=h.createJsxText(t.getTokenValue(),lt===13);return lt=t.scanJsxToken(),D(p,s)}function gu(s,p){switch(p){case 1:if(a6(s))ln(s,E.JSX_fragment_has_no_corresponding_closing_tag);else{let d=s.tagName,b=Math.min(Ar(Qe,d.pos),d.end);rt(b,d.end,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,s.tagName))}return;case 31:case 7:return;case 12:case 13:return E_();case 19:return Xo(!1);case 30:return Oi(!1,void 0,s);default:return B.assertNever(p)}}function ga(s){let p=[],d=J(),b=yt;for(yt|=16384;;){let S=gu(s,lt=t.reScanJsxToken());if(!S||(p.push(S),Fp(s)&&(S==null?void 0:S.kind)===284&&!pi(S.openingElement.tagName,S.closingElement.tagName)&&pi(s.tagName,S.closingElement.tagName)))break}return yt=b,Ct(p,d)}function bu(){let s=J();return D(h.createJsxAttributes(xn(13,$o)),s)}function vu(s){let p=J();if(j(30),u()===32)return Gn(),D(h.createJsxOpeningFragment(),p);let d=A_(),b=nt&524288?void 0:Aa(),S=bu(),N;return u()===32?(Gn(),N=h.createJsxOpeningElement(d,b,S)):(j(44),j(32,void 0,!1)&&(s?U():Gn()),N=h.createJsxSelfClosingElement(d,b,S)),D(N,p)}function A_(){let s=J(),p=Tu();if(eh(p))return p;let d=p;for(;Je(25);)d=D(ae(d,ni(!0,!1,!1)),s);return d}function Tu(){let s=J();qt();let p=u()===110,d=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(d,ei()),s)):p?D(h.createToken(110),s):d}function Xo(s){let p=J();if(!j(19))return;let d,b;return u()!==20&&(s||(d=ft(26)),b=Et()),s?j(20):j(20,void 0,!1)&&Gn(),D(h.createJsxExpression(d,b),p)}function $o(){if(u()===19)return Su();let s=J();return D(h.createJsxAttribute(xu(),C_()),s)}function C_(){if(u()===64){if(wi()===11)return Hn();if(u()===19)return Xo(!0);if(u()===30)return Oi(!0);Ee(E.or_JSX_element_expected)}}function xu(){let s=J();qt();let p=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(p,ei()),s)):p}function Su(){let s=J();j(19),j(26);let p=Et();return j(20),D(h.createJsxSpreadAttribute(p),s)}function Qo(s,p){let d=J();j(31);let b=A_();return j(32,void 0,!1)&&(p||!pi(s.tagName,b)?U():Gn()),D(h.createJsxClosingElement(b),d)}function wu(s){let p=J();return j(31),j(32,E.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(s?U():Gn()),D(h.createJsxJsxClosingFragment(),p)}function Ko(){B.assert(ct!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let s=J();j(30);let p=ot();j(32);let d=Tr();return D(h.createTypeAssertion(p,d),s)}function ku(){return U(),wt(u())||u()===23||Sn()}function Zo(){return u()===29&&G(ku)}function D_(s){if(s.flags&64)return!0;if(ll(s)){let p=s.expression;for(;ll(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;ll(s);)s.flags|=64,s=s.expression;return!0}}return!1}function ec(s,p,d){let b=ni(!0,!0,!0),S=d||D_(p),N=S?Oe(p,d,b):ae(p,b);if(S&&gi(N.name)&&ln(N.name,E.An_optional_chain_cannot_contain_private_identifiers),X1(p)&&p.typeArguments){let X=p.typeArguments.pos-1,_e=Ar(Qe,p.typeArguments.end)+1;rt(X,_e,E.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return D(N,s)}function Eu(s,p,d){let b;if(u()===24)b=Gt(80,!0,E.An_element_access_expression_should_take_an_argument);else{let N=ut(Et);El(N)&&(N.text=Mr(N.text)),b=N}j(24);let S=d||D_(p)?oe(p,d,b):V(p,b);return D(S,s)}function _n(s,p,d){for(;;){let b,S=!1;if(d&&Zo()?(b=Yn(29),S=wt(u())):S=Je(25),S){p=ec(s,p,b);continue}if((b||!Ze())&&Je(23)){p=Eu(s,p,b);continue}if(Sn()){p=!b&&p.kind===233?Ur(s,p.expression,b,p.typeArguments):Ur(s,p,b,void 0);continue}if(!b){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=D(h.createNonNullExpression(p),s);continue}let N=le(ba);if(N){p=D(h.createExpressionWithTypeArguments(p,N),s);continue}}return p}}function Sn(){return u()===15||u()===16}function Ur(s,p,d,b){let S=h.createTaggedTemplateExpression(p,b,u()===15?(Pt(!0),Hn()):la(!0));return(d||p.flags&64)&&(S.flags|=64),S.questionDotToken=d,D(S,s)}function P_(s,p){for(;;){p=_n(s,p,!0);let d,b=ft(29);if(b&&(d=le(ba),Sn())){p=Ur(s,p,b,d);continue}if(d||u()===21){!b&&p.kind===233&&(d=p.typeArguments,p=p.expression);let S=tc(),N=b||D_(p)?dt(p,b,d,S):W(p,d,S);p=D(N,s);continue}if(b){let S=Gt(80,!1,E.Identifier_expected);p=D(Oe(p,b,S),s)}break}return p}function tc(){j(21);let s=fn(11,ic);return j(22),s}function ba(){if(nt&524288||kt()!==30)return;U();let s=fn(20,ot);if(Ve()===32)return U(),s&&Au()?s:void 0}function Au(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Bo()||!br()}function N_(){switch(u()){case 15:t.getTokenFlags()&26656&&Pt(!1);case 9:case 10:case 11:return Hn();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Cu();case 23:return ac();case 19:return I_();case 134:if(!G(bc))break;return O_();case 60:return Lc();case 86:return Xu();case 100:return O_();case 105:return sc();case 44:case 69:if($e()===14)return Hn();break;case 16:return la(!1);case 81:return aa()}return St(E.Expression_expected)}function Cu(){let s=J(),p=qe();j(21);let d=ut(Et);return j(22),Ce(D(gn(d),s),p)}function nc(){let s=J();j(26);let p=zt(!0);return D(h.createSpreadElement(p),s)}function rc(){return u()===26?nc():u()===28?D(h.createOmittedExpression(),J()):zt(!0)}function ic(){return Dt(a,rc)}function ac(){let s=J(),p=t.getTokenStart(),d=j(23),b=t.hasPrecedingLineBreak(),S=fn(15,rc);return Or(23,24,d,p),D(de(S,b),s)}function _c(){let s=J(),p=qe();if(ft(26)){let ce=zt(!0);return Ce(D(h.createSpreadAssignment(ce),s),p)}let d=wn(!0);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);let b=ft(42),S=ve(),N=Jr(),X=ft(58),_e=ft(54);if(b||u()===21||u()===30)return q_(s,p,d,b,N,X,_e);let Z;if(S&&u()!==59){let ce=ft(64),Le=ce?ut(()=>zt(!0)):void 0;Z=h.createShorthandPropertyAssignment(N,Le),Z.equalsToken=ce}else{j(59);let ce=ut(()=>zt(!0));Z=h.createPropertyAssignment(N,ce)}return Z.modifiers=d,Z.questionToken=X,Z.exclamationToken=_e,Ce(D(Z,s),p)}function I_(){let s=J(),p=t.getTokenStart(),d=j(19),b=t.hasPrecedingLineBreak(),S=fn(12,_c,!0);return Or(19,20,d,p),D(M(S,b),s)}function O_(){let s=Ze();Ke(!1);let p=J(),d=qe(),b=wn(!1);j(100);let S=ft(42),N=S?1:0,X=Ht(b,_l)?2:0,_e=N&&X?K(Mi):N?Wn(Mi):X?R(Mi):Mi(),Z=dn(),ee=Xn(N|X),ce=Jn(59,!1),Le=va(N|X);Ke(s);let je=h.createFunctionExpression(b,S,_e,Z,ee,ce,Le);return Ce(D(je,p),d)}function Mi(){return Fe()?Ka():void 0}function sc(){let s=J();if(j(105),Je(25)){let N=jt();return D(h.createMetaProperty(105,N),s)}let p=J(),d=_n(p,N_(),!1),b;d.kind===233&&(b=d.typeArguments,d=d.expression),u()===29&&Ee(E.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,is(Qe,d));let S=u()===21?tc():void 0;return D(nr(d,b,S),s)}function Br(s,p){let d=J(),b=qe(),S=t.getTokenStart(),N=j(19,p);if(N||s){let X=t.hasPrecedingLineBreak(),_e=xn(1,Kt);Or(19,20,N,S);let Z=Ce(D(rr(_e,X),d),b);return u()===64&&(Ee(E.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),Z}else{let X=lr();return Ce(D(rr(X,void 0),d),b)}}function va(s,p){let d=we();Xe(!!(s&1));let b=Ye();st(!!(s&2));let S=Bt;Bt=!1;let N=Ze();N&&Ke(!1);let X=Br(!!(s&16),p);return N&&Ke(!0),Bt=S,Xe(d),st(b),X}function oc(){let s=J(),p=qe();return j(27),Ce(D(h.createEmptyStatement(),s),p)}function Du(){let s=J(),p=qe();j(101);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt(),X=Je(93)?Kt():void 0;return Ce(D(Ge(S,N,X),s),p)}function cc(){let s=J(),p=qe();j(92);let d=Kt();j(117);let b=t.getTokenStart(),S=j(21),N=ut(Et);return Or(21,22,S,b),Je(27),Ce(D(h.createDoStatement(d,N),s),p)}function Pu(){let s=J(),p=qe();j(117);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt();return Ce(D(ir(S,N),s),p)}function lc(){let s=J(),p=qe();j(99);let d=ft(135);j(21);let b;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&G(xc)||u()===135&&G(Sc)?b=B_(!0):b=Ir(Et));let S;if(d?j(165):Je(165)){let N=ut(()=>zt(!0));j(22),S=Ot(d,b,N,Kt())}else if(Je(103)){let N=ut(Et);j(22),S=h.createForInStatement(b,N,Kt())}else{j(27);let N=u()!==27&&u()!==22?ut(Et):void 0;j(27);let X=u()!==22?ut(Et):void 0;j(22),S=Pr(b,N,X,Kt())}return Ce(D(S,s),p)}function uc(s){let p=J(),d=qe();j(s===252?83:88);let b=sr()?void 0:St();Qt();let S=s===252?h.createBreakStatement(b):h.createContinueStatement(b);return Ce(D(S,p),d)}function pc(){let s=J(),p=qe();j(107);let d=sr()?void 0:ut(Et);return Qt(),Ce(D(h.createReturnStatement(d),s),p)}function Nu(){let s=J(),p=qe();j(118);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Tt(67108864,Kt);return Ce(D(h.createWithStatement(S,N),s),p)}function fc(){let s=J(),p=qe();j(84);let d=ut(Et);j(59);let b=xn(3,Kt);return Ce(D(h.createCaseClause(d,b),s),p)}function Iu(){let s=J();j(90),j(59);let p=xn(3,Kt);return D(h.createDefaultClause(p),s)}function Ou(){return u()===84?fc():Iu()}function dc(){let s=J();j(19);let p=xn(2,Ou);return j(20),D(h.createCaseBlock(p),s)}function Mu(){let s=J(),p=qe();j(109),j(21);let d=ut(Et);j(22);let b=dc();return Ce(D(h.createSwitchStatement(d,b),s),p)}function mc(){let s=J(),p=qe();j(111);let d=t.hasPrecedingLineBreak()?void 0:ut(Et);return d===void 0&&(vn++,d=D(re(""),J())),ia()||xt(d),Ce(D(h.createThrowStatement(d),s),p)}function Ju(){let s=J(),p=qe();j(113);let d=Br(!1),b=u()===85?hc():void 0,S;return(!b||u()===98)&&(j(98,E.catch_or_finally_expected),S=Br(!1)),Ce(D(h.createTryStatement(d,b,S),s),p)}function hc(){let s=J();j(85);let p;Je(21)?(p=U_(),j(22)):p=void 0;let d=Br(!1);return D(h.createCatchClause(p,d),s)}function Lu(){let s=J(),p=qe();return j(89),Qt(),Ce(D(h.createDebuggerStatement(),s),p)}function yc(){let s=J(),p=qe(),d,b=u()===21,S=ut(Et);return tt(S)&&Je(59)?d=h.createLabeledStatement(S,Kt()):(ia()||xt(S),d=In(S),b&&(p=!1)),Ce(D(d,s),p)}function M_(){return U(),wt(u())&&!t.hasPrecedingLineBreak()}function gc(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function bc(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function J_(){return U(),(wt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function ju(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return j_();case 135:return Ta();case 120:case 156:return pu();case 144:case 145:return Ec();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let s=u();if(U(),t.hasPrecedingLineBreak())return!1;if(s===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||wt(u());case 95:let p=U();if(p===156&&(p=G(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Ji(){return G(ju)}function vc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ji()||G(oo);case 87:case 95:return Ji();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ji()||!G(M_);default:return br()}}function Tc(){return U(),Fe()||u()===19||u()===23}function Ru(){return G(Tc)}function xc(){return L_(!0)}function L_(s){return U(),s&&u()===165?!1:(Fe()||u()===19)&&!t.hasPrecedingLineBreak()}function j_(){return G(L_)}function Sc(s){return U()===160?L_(s):!1}function Ta(){return G(Sc)}function Kt(){switch(u()){case 27:return oc();case 19:return Br(!1);case 115:return _i(J(),qe(),void 0);case 121:if(Ru())return _i(J(),qe(),void 0);break;case 135:if(Ta())return _i(J(),qe(),void 0);break;case 160:if(j_())return _i(J(),qe(),void 0);break;case 100:return Pc(J(),qe(),void 0);case 86:return jc(J(),qe(),void 0);case 101:return Du();case 92:return cc();case 117:return Pu();case 99:return lc();case 88:return uc(251);case 83:return uc(252);case 107:return pc();case 118:return Nu();case 109:return Mu();case 111:return mc();case 113:case 85:case 98:return Ju();case 89:return Lu();case 60:return wc();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ji())return wc();break}return yc()}function R_(s){return s.kind===138}function wc(){let s=J(),p=qe(),d=wn(!0);if(Ht(d,R_)){let S=xa(s);if(S)return S;for(let N of d)N.flags|=33554432;return Tt(33554432,()=>kc(s,p,d))}else return kc(s,p,d)}function xa(s){return Tt(33554432,()=>{let p=oa(yt,s);if(p)return Ms(p)})}function kc(s,p,d){switch(u()){case 115:case 121:case 87:case 160:case 135:return _i(s,p,d);case 100:return Pc(s,p,d);case 86:return jc(s,p,d);case 120:return Bc(s,p,d);case 156:return ep(s,p,d);case 94:return V_(s,p,d);case 162:case 144:case 145:return np(s,p,d);case 102:return ap(s,p,d);case 95:switch(U(),u()){case 90:case 64:return Hc(s,p,d);case 130:return ip(s,p,d);default:return dp(s,p,d)}default:if(d){let b=Gt(282,!0,E.Declaration_expected);return qp(b,s),b.modifiers=d,b}return}}function Uu(){return U()===11}function Bu(){return U(),u()===161||u()===64}function Ec(){return U(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Sa(s,p){if(u()!==19){if(s&4){fa();return}if(sr()){Qt();return}}return va(s,p)}function Ac(){let s=J();if(u()===28)return D(h.createOmittedExpression(),s);let p=ft(26),d=Li(),b=vr();return D(h.createBindingElement(p,void 0,d,b),s)}function qu(){let s=J(),p=ft(26),d=Fe(),b=Jr(),S;d&&u()!==59?(S=b,b=void 0):(j(59),S=Li());let N=vr();return D(h.createBindingElement(p,b,S,N),s)}function Cc(){let s=J();j(19);let p=ut(()=>fn(9,qu));return j(20),D(h.createObjectBindingPattern(p),s)}function zu(){let s=J();j(23);let p=ut(()=>fn(10,Ac));return j(24),D(h.createArrayBindingPattern(p),s)}function wa(){return u()===19||u()===23||u()===81||Fe()}function Li(s){return u()===23?zu():u()===19?Cc():Ka(s)}function Dc(){return U_(!0)}function U_(s){let p=J(),d=qe(),b=Li(E.Private_identifiers_are_not_allowed_in_variable_declarations),S;s&&b.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(S=Wt());let N=gr(),X=Uo(u())?void 0:vr(),_e=Bn(b,S,N,X);return Ce(D(_e,p),d)}function B_(s){let p=J(),d=0;switch(u()){case 115:break;case 121:d|=1;break;case 87:d|=2;break;case 160:d|=4;break;case 135:B.assert(Ta()),d|=6,U();break;default:B.fail()}U();let b;if(u()===165&&G(Fu))b=lr();else{let S=be();Te(s),b=fn(8,s?U_:Dc),Te(S)}return D(On(b,d),p)}function Fu(){return Ai()&&U()===22}function _i(s,p,d){let b=B_(!1);Qt();let S=bn(d,b);return Ce(D(S,s),p)}function Pc(s,p,d){let b=Ye(),S=Rn(d);j(100);let N=ft(42),X=S&2048?Mi():Ka(),_e=N?1:0,Z=S&1024?2:0,ee=dn();S&32&&st(!0);let ce=Xn(_e|Z),Le=Jn(59,!1),je=Sa(_e|Z,E.or_expected);st(b);let Ae=h.createFunctionDeclaration(d,N,X,ee,ce,Le,je);return Ce(D(Ae,s),p)}function Nc(){if(u()===137)return j(137);if(u()===11&&G(U)===21)return le(()=>{let s=Hn();return s.text==="constructor"?s:void 0})}function Vu(s,p,d){return le(()=>{if(Nc()){let b=dn(),S=Xn(0),N=Jn(59,!1),X=Sa(0,E.or_expected),_e=h.createConstructorDeclaration(d,S,X);return _e.typeParameters=b,_e.type=N,Ce(D(_e,s),p)}})}function q_(s,p,d,b,S,N,X,_e){let Z=b?1:0,ee=Ht(d,_l)?2:0,ce=dn(),Le=Xn(Z|ee),je=Jn(59,!1),Ae=Sa(Z|ee,_e),Yt=h.createMethodDeclaration(d,b,S,N,ce,Le,je,Ae);return Yt.exclamationToken=X,Ce(D(Yt,s),p)}function Ic(s,p,d,b,S){let N=!S&&!t.hasPrecedingLineBreak()?ft(54):void 0,X=gr(),_e=Dt(90112,vr);Bl(b,X,_e);let Z=h.createPropertyDeclaration(d,b,S||N,X,_e);return Ce(D(Z,s),p)}function ka(s,p,d){let b=ft(42),S=Jr(),N=ft(58);return b||u()===21||u()===30?q_(s,p,d,b,S,N,void 0,E.or_expected):Ic(s,p,d,S,N)}function qr(s,p,d,b,S){let N=Jr(),X=dn(),_e=Xn(0),Z=Jn(59,!1),ee=Sa(S),ce=b===177?h.createGetAccessorDeclaration(d,N,_e,Z,ee):h.createSetAccessorDeclaration(d,N,_e,ee);return ce.typeParameters=X,hs(ce)&&(ce.type=Z),Ce(D(ce,s),p)}function Wu(){let s;if(u()===60)return!0;for(;Wr(u());){if(s=u(),zg(s))return!0;U()}if(u()===42||(yr()&&(s=u(),U()),u()===23))return!0;if(s!==void 0){if(!di(s)||s===153||s===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sr()}}return!1}function Oc(s,p,d){Yn(126);let b=Gu(),S=Ce(D(h.createClassStaticBlockDeclaration(b),s),p);return S.modifiers=d,S}function Gu(){let s=we(),p=Ye();Xe(!1),st(!0);let d=Br(!1);return Xe(s),st(p),d}function Yu(){if(Ye()&&u()===135){let s=J(),p=St(E.Expression_expected);U();let d=_n(s,p,!0);return P_(s,d)}return Ii()}function z_(){let s=J();if(!Je(60))return;let p=Si(Yu);return D(h.createDecorator(p),s)}function Mc(s,p,d){let b=J(),S=u();if(u()===87&&p){if(!le(Za))return}else{if(d&&u()===126&&G(Vc))return;if(s&&u()===126)return;if(!Ds())return}return D(ye(S),b)}function wn(s,p,d){let b=J(),S,N,X,_e=!1,Z=!1,ee=!1;if(s&&u()===60)for(;N=z_();)S=An(S,N);for(;X=Mc(_e,p,d);)X.kind===126&&(_e=!0),S=An(S,X),Z=!0;if(Z&&s&&u()===60)for(;N=z_();)S=An(S,N),ee=!0;if(ee)for(;X=Mc(_e,p,d);)X.kind===126&&(_e=!0),S=An(S,X);return S&&Ct(S,b)}function Jc(){let s;if(u()===134){let p=J();U();let d=D(ye(134),p);s=Ct([d],p)}return s}function Hu(){let s=J(),p=qe();if(u()===27)return U(),Ce(D(h.createSemicolonClassElement(),s),p);let d=wn(!0,!0,!0);if(u()===126&&G(Vc))return Oc(s,p,d);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);if(u()===137||u()===11){let b=Vu(s,p,d);if(b)return b}if(Rr())return d_(s,p,d);if(wt(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(Ht(d,R_)){for(let S of d)S.flags|=33554432;return Tt(33554432,()=>ka(s,p,d))}else return ka(s,p,d);if(d){let b=Gt(80,!0,E.Declaration_expected);return Ic(s,p,d,b,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Lc(){let s=J(),p=qe(),d=wn(!0);if(u()===86)return Ea(s,p,d,231);let b=Gt(282,!0,E.Expression_expected);return qp(b,s),b.modifiers=d,b}function Xu(){return Ea(J(),qe(),void 0,231)}function jc(s,p,d){return Ea(s,p,d,263)}function Ea(s,p,d,b){let S=Ye();j(86);let N=$u(),X=dn();Ht(d,zb)&&st(!0);let _e=F_(),Z;j(19)?(Z=Uc(),j(20)):Z=lr(),st(S);let ee=b===263?h.createClassDeclaration(d,N,X,_e,Z):h.createClassExpression(d,N,X,_e,Z);return Ce(D(ee,s),p)}function $u(){return Fe()&&!Qu()?or(Fe()):void 0}function Qu(){return u()===119&&G(Hl)}function F_(){if(Rc())return xn(22,Ku)}function Ku(){let s=J(),p=u();B.assert(p===96||p===119),U();let d=fn(7,Zu);return D(h.createHeritageClause(p,d),s)}function Zu(){let s=J(),p=Ii();if(p.kind===233)return p;let d=Aa();return D(h.createExpressionWithTypeArguments(p,d),s)}function Aa(){return u()===30?Lr(20,ot,30,32):void 0}function Rc(){return u()===96||u()===119}function Uc(){return xn(5,Hu)}function Bc(s,p,d){j(120);let b=St(),S=dn(),N=F_(),X=lo(),_e=h.createInterfaceDeclaration(d,b,S,N,X);return Ce(D(_e,s),p)}function ep(s,p,d){j(156),t.hasPrecedingLineBreak()&&Ee(E.Line_break_not_permitted_here);let b=St(),S=dn();j(64);let N=u()===141&&le(yo)||ot();Qt();let X=h.createTypeAliasDeclaration(d,b,S,N);return Ce(D(X,s),p)}function tp(){let s=J(),p=qe(),d=Jr(),b=ut(vr);return Ce(D(h.createEnumMember(d,b),s),p)}function V_(s,p,d){j(94);let b=St(),S;j(19)?(S=xe(()=>fn(6,tp)),j(20)):S=lr();let N=h.createEnumDeclaration(d,b,S);return Ce(D(N,s),p)}function qc(){let s=J(),p;return j(19)?(p=xn(1,Kt),j(20)):p=lr(),D(h.createModuleBlock(p),s)}function W_(s,p,d,b){let S=b&32,N=b&8?jt():St(),X=Je(25)?W_(J(),!1,void 0,8|S):qc(),_e=h.createModuleDeclaration(d,N,X,b);return Ce(D(_e,s),p)}function zc(s,p,d){let b=0,S;u()===162?(S=St(),b|=2048):(S=Hn(),S.text=Mr(S.text));let N;u()===19?N=qc():Qt();let X=h.createModuleDeclaration(d,S,N,b);return Ce(D(X,s),p)}function np(s,p,d){let b=0;if(u()===162)return zc(s,p,d);if(Je(145))b|=32;else if(j(144),u()===11)return zc(s,p,d);return W_(s,p,d,b)}function rp(){return u()===149&&G(Fc)}function Fc(){return U()===21}function Vc(){return U()===19}function G_(){return U()===44}function ip(s,p,d){j(130),j(145);let b=St();Qt();let S=h.createNamespaceExportDeclaration(b);return S.modifiers=d,Ce(D(S,s),p)}function ap(s,p,d){j(102);let b=t.getTokenFullStart(),S;ve()&&(S=St());let N=!1;if((S==null?void 0:S.escapedText)==="type"&&(u()!==161||ve()&&G(Bu))&&(ve()||sp())&&(N=!0,S=ve()?St():void 0),S&&!zr())return op(s,p,d,S,N);let X=si(S,b,N),_e=Ri(),Z=Wc();Qt();let ee=h.createImportDeclaration(d,X,_e,Z);return Ce(D(ee,s),p)}function si(s,p,d,b=!1){let S;return(s||u()===42||u()===19)&&(S=cp(s,p,d,b),j(161)),S}function Wc(){let s=u();if((s===118||s===132)&&!t.hasPrecedingLineBreak())return Y_(s)}function _p(){let s=J(),p=wt(u())?jt():ri(11);j(59);let d=zt(!0);return D(h.createImportAttribute(p,d),s)}function Y_(s,p){let d=J();p||j(s);let b=t.getTokenStart();if(j(19)){let S=t.hasPrecedingLineBreak(),N=fn(24,_p,!0);if(!j(20)){let X=Gi(_t);X&&X.code===E._0_expected.code&&rl(X,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return D(h.createImportAttributes(N,S,s),d)}else{let S=Ct([],J(),void 0,!1);return D(h.createImportAttributes(S,!1,s),d)}}function sp(){return u()===42||u()===19}function zr(){return u()===28||u()===161}function op(s,p,d,b,S){j(64);let N=lp();Qt();let X=h.createImportEqualsDeclaration(d,S,b,N);return Ce(D(X,s),p)}function cp(s,p,d,b){let S;return(!s||Je(28))&&(b&&t.setSkipJsDocLeadingAsterisks(!0),S=u()===42?up():Gc(275),b&&t.setSkipJsDocLeadingAsterisks(!1)),D(h.createImportClause(d,s,S),p)}function lp(){return rp()?ji():jr(!1)}function ji(){let s=J();j(149),j(21);let p=Ri();return j(22),D(h.createExternalModuleReference(p),s)}function Ri(){if(u()===11){let s=Hn();return s.text=Mr(s.text),s}else return Et()}function up(){let s=J();j(42),j(130);let p=St();return D(h.createNamespaceImport(p),s)}function H_(){return wt(u())||u()===11}function oi(s){return u()===11?Hn():s()}function Gc(s){let p=J(),d=s===275?h.createNamedImports(Lr(23,ci,19,20)):h.createNamedExports(Lr(23,pp,19,20));return D(d,p)}function pp(){let s=qe();return Ce(Yc(281),s)}function ci(){return Yc(276)}function Yc(s){let p=J(),d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),N=!1,X,_e=!0,Z=oi(jt);if(Z.kind===80&&Z.escapedText==="type")if(u()===130){let Le=jt();if(u()===130){let je=jt();H_()?(N=!0,X=Le,Z=oi(ce),_e=!1):(X=Z,Z=je,_e=!1)}else H_()?(X=Z,_e=!1,Z=oi(ce)):(N=!0,Z=Le)}else H_()&&(N=!0,Z=oi(ce));_e&&u()===130&&(X=Z,j(130),Z=oi(ce)),s===276&&(Z.kind!==80?(rt(Ar(Qe,Z.pos),Z.end,E.Identifier_expected),Z=yi(Gt(80,!1),Z.pos,Z.pos)):d&&rt(b,S,E.Identifier_expected));let ee=s===276?h.createImportSpecifier(N,X,Z):h.createExportSpecifier(N,X,Z);return D(ee,p);function ce(){return d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),jt()}}function fp(s){return D(h.createNamespaceExport(oi(jt)),s)}function dp(s,p,d){let b=Ye();st(!0);let S,N,X,_e=Je(156),Z=J();Je(42)?(Je(130)&&(S=fp(Z)),j(161),N=Ri()):(S=Gc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(j(161),N=Ri()));let ee=u();N&&(ee===118||ee===132)&&!t.hasPrecedingLineBreak()&&(X=Y_(ee)),Qt(),st(b);let ce=h.createExportDeclaration(d,_e,S,N,X);return Ce(D(ce,s),p)}function Hc(s,p,d){let b=Ye();st(!0);let S;Je(64)?S=!0:j(90);let N=zt(!0);Qt(),st(b);let X=h.createExportAssignment(d,S,N);return Ce(D(X,s),p)}let X_;(s=>{s[s.SourceElements=0]="SourceElements",s[s.BlockStatements=1]="BlockStatements",s[s.SwitchClauses=2]="SwitchClauses",s[s.SwitchClauseStatements=3]="SwitchClauseStatements",s[s.TypeMembers=4]="TypeMembers",s[s.ClassMembers=5]="ClassMembers",s[s.EnumMembers=6]="EnumMembers",s[s.HeritageClauseElement=7]="HeritageClauseElement",s[s.VariableDeclarations=8]="VariableDeclarations",s[s.ObjectBindingElements=9]="ObjectBindingElements",s[s.ArrayBindingElements=10]="ArrayBindingElements",s[s.ArgumentExpressions=11]="ArgumentExpressions",s[s.ObjectLiteralMembers=12]="ObjectLiteralMembers",s[s.JsxAttributes=13]="JsxAttributes",s[s.JsxChildren=14]="JsxChildren",s[s.ArrayLiteralMembers=15]="ArrayLiteralMembers",s[s.Parameters=16]="Parameters",s[s.JSDocParameters=17]="JSDocParameters",s[s.RestProperties=18]="RestProperties",s[s.TypeParameters=19]="TypeParameters",s[s.TypeArguments=20]="TypeArguments",s[s.TupleElementTypes=21]="TupleElementTypes",s[s.HeritageClauses=22]="HeritageClauses",s[s.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",s[s.ImportAttributes=24]="ImportAttributes",s[s.JSDocComment=25]="JSDocComment",s[s.Count=26]="Count"})(X_||(X_={}));let $_;(s=>{s[s.False=0]="False",s[s.True=1]="True",s[s.Unknown=2]="Unknown"})($_||($_={}));let Xc;(s=>{function p(ee,ce,Le){zn("file.js",ee,99,void 0,1,0),t.setText(ee,ce,Le),lt=t.scan();let je=d(),Ae=se("file.js",99,1,!1,[],ye(1),0,Fa),Yt=qi(_t,Ae);return Ut&&(Ae.jsDocDiagnostics=qi(Ut,Ae)),Fn(),je?{jsDocTypeExpression:je,diagnostics:Yt}:void 0}s.parseJSDocTypeExpressionForTests=p;function d(ee){let ce=J(),Le=(ee?Je:j)(19),je=Tt(16777216,l_);(!ee||Le)&&Es(20);let Ae=h.createJSDocTypeExpression(je);return L(Ae),D(Ae,ce)}s.parseJSDocTypeExpression=d;function b(){let ee=J(),ce=Je(19),Le=J(),je=jr(!1);for(;u()===81;)Nt(),ze(),je=D(h.createJSDocMemberName(je,St()),Le);ce&&Es(20);let Ae=h.createJSDocNameReference(je);return L(Ae),D(Ae,ee)}s.parseJSDocNameReference=b;function S(ee,ce,Le){zn("",ee,99,void 0,1,0);let je=Tt(16777216,()=>Z(ce,Le)),Yt=qi(_t,{languageVariant:0,text:ee});return Fn(),je?{jsDoc:je,diagnostics:Yt}:void 0}s.parseIsolatedJSDocComment=S;function N(ee,ce,Le){let je=lt,Ae=_t.length,Yt=rn,mn=Tt(16777216,()=>Z(ce,Le));return wf(mn,ee),nt&524288&&(Ut||(Ut=[]),Dn(Ut,_t,Ae)),lt=je,_t.length=Ae,rn=Yt,mn}s.parseJSDocComment=N;let X;(ee=>{ee[ee.BeginningOfLine=0]="BeginningOfLine",ee[ee.SawAsterisk=1]="SawAsterisk",ee[ee.SavingComments=2]="SavingComments",ee[ee.SavingBackticks=3]="SavingBackticks"})(X||(X={}));let _e;(ee=>{ee[ee.Property=1]="Property",ee[ee.Parameter=2]="Parameter",ee[ee.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function Z(ee=0,ce){let Le=Qe,je=ce===void 0?Le.length:ee+ce;if(ce=je-ee,B.assert(ee>=0),B.assert(ee<=je),B.assert(je<=Le.length),!D6(Le,ee))return;let Ae,Yt,mn,Zt,ur,Ln=[],Fr=[],mp=yt;yt|=1<<25;let De=t.scanRange(ee+3,ce-5,et);return yt=mp,De;function et(){let O=1,Y,H=ee-(Le.lastIndexOf(` +`,ee)+1)+4;function te(Ue){Y||(Y=H),Ln.push(Ue),H+=Ue.length}for(ze();Bi(5););Bi(4)&&(O=0,H=0);e:for(;;){switch(u()){case 60:Ca(Ln),ur||(ur=J()),pe(q(H)),O=0,Y=void 0;break;case 4:Ln.push(t.getTokenText()),O=0,H=0;break;case 42:let Ue=t.getTokenText();O===1?(O=2,te(Ue)):(B.assert(O===0),O=1,H+=Ue.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();Y!==void 0&&H+pt.length>Y&&Ln.push(pt.slice(Y-H)),H+=pt.length;break;case 1:break e;case 82:O=2,te(t.getTokenValue());break;case 19:O=2;let hn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,tn=_(sn);if(tn){Zt||pr(Ln),Fr.push(D(h.createJSDocText(Ln.join("")),Zt??ee,hn)),Fr.push(tn),Ln=[],Zt=t.getTokenEnd();break}default:O=2,te(t.getTokenText());break}O===2?an(!1):ze()}let ne=Ln.join("").trimEnd();Fr.length&&ne.length&&Fr.push(D(h.createJSDocText(ne),Zt??ee,ur)),Fr.length&&Ae&&B.assertIsDefined(ur,"having parsed tags implies that the end of the comment span should be set");let Pe=Ae&&Ct(Ae,Yt,mn);return D(h.createJSDocComment(Fr.length?Ct(Fr,ee,ur):ne.length?ne:void 0,Pe),ee,je)}function pr(O){for(;O.length&&(O[0]===` +`||O[0]==="\r");)O.shift()}function Ca(O){for(;O.length;){let Y=O[O.length-1].trimEnd();if(Y==="")O.pop();else if(Y.lengthpt&&(te.push(Qn.slice(pt-O)),Ue=2),O+=Qn.length;break;case 19:Ue=2;let Qc=t.getTokenFullStart(),Pa=t.getTokenEnd()-1,Kc=_(Pa);Kc?(ne.push(D(h.createJSDocText(te.join("")),Pe??H,Qc)),ne.push(Kc),te=[],Pe=t.getTokenEnd()):hn(t.getTokenText());break;case 62:Ue===3?Ue=2:Ue=3,hn(t.getTokenText());break;case 82:Ue!==3&&(Ue=2),hn(t.getTokenValue());break;case 42:if(Ue===0){Ue=1,O+=1;break}default:Ue!==3&&(Ue=2),hn(t.getTokenText());break}Ue===2||Ue===3?sn=an(Ue===3):sn=ze()}pr(te);let tn=te.join("").trimEnd();if(ne.length)return tn.length&&ne.push(D(h.createJSDocText(tn),Pe??H)),Ct(ne,H,t.getTokenEnd());if(tn.length)return tn}function _(O){let Y=le(f);if(!Y)return;ze(),It();let H=c(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),ze();let ne=Y==="link"?h.createJSDocLink:Y==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return D(ne(H,te.join("")),O,t.getTokenEnd())}function c(){if(wt(u())){let O=J(),Y=jt();for(;Je(25);)Y=D(h.createQualifiedName(Y,u()===81?Gt(80,!1):jt()),O);for(;u()===81;)Nt(),ze(),Y=D(h.createJSDocMemberName(Y,St()),O);return Y}}function f(){if(xr(),u()===19&&ze()===60&&wt(ze())){let O=t.getTokenValue();if(w(O))return O}}function w(O){return O==="link"||O==="linkcode"||O==="linkplain"}function F(O,Y,H,te){return D(h.createJSDocUnknownTag(Y,n(O,J(),H,te)),O)}function pe(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),mn=O.end)}function Re(){return xr(),u()===19?d():void 0}function en(){let O=Bi(23);O&&It();let Y=Bi(62),H=X0();return Y&&zl(62),O&&(It(),ft(64)&&Et(),j(24)),{name:H,isBracketed:O}}function kn(O){switch(O.kind){case 151:return!0;case 188:return kn(O.elementType);default:return Pf(O)&&tt(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function $n(O,Y,H,te){let ne=Re(),Pe=!ne;xr();let{name:Ue,isBracketed:pt}=en(),hn=xr();Pe&&!G(f)&&(ne=Re());let sn=n(O,J(),te,hn),tn=Da(ne,Ue,H,te);tn&&(ne=tn,Pe=!0);let Qn=H===1?h.createJSDocPropertyTag(Y,Ue,pt,ne,Pe,sn):h.createJSDocParameterTag(Y,Ue,pt,ne,Pe,sn);return D(Qn,O)}function Da(O,Y,H,te){if(O&&kn(O.type)){let ne=J(),Pe,Ue;for(;Pe=le(()=>yp(H,te,Y));)Pe.kind===341||Pe.kind===348?Ue=An(Ue,Pe):Pe.kind===345&&ln(Pe.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ue){let pt=D(h.createJSDocTypeLiteral(Ue,O.type.kind===188),ne);return D(h.createJSDocTypeExpression(pt),ne)}}}function D0(O,Y,H,te){Ht(Ae,h6)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=Re();return D(h.createJSDocReturnTag(Y,ne,n(O,J(),H,te)),O)}function md(O,Y,H,te){Ht(Ae,Vf)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=d(!0),Pe=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocTypeTag(Y,ne,Pe),O)}function P0(O,Y,H,te){let Pe=u()===23||G(()=>ze()===60&&wt(ze())&&w(t.getTokenValue()))?void 0:b(),Ue=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocSeeTag(Y,Pe,Ue),O)}function N0(O,Y,H,te){let ne=Re(),Pe=n(O,J(),H,te);return D(h.createJSDocThrowsTag(Y,ne,Pe),O)}function I0(O,Y,H,te){let ne=J(),Pe=O0(),Ue=t.getTokenFullStart(),pt=n(O,Ue,H,te);pt||(Ue=t.getTokenFullStart());let hn=typeof pt!="string"?Ct(Hp([D(Pe,ne,Ue)],pt),ne):Pe.text+pt;return D(h.createJSDocAuthorTag(Y,hn),O)}function O0(){let O=[],Y=!1,H=t.getToken();for(;H!==1&&H!==4;){if(H===30)Y=!0;else{if(H===60&&!Y)break;if(H===32&&Y){O.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}O.push(t.getTokenText()),H=ze()}return h.createJSDocText(O.join(""))}function M0(O,Y,H,te){let ne=hd();return D(h.createJSDocImplementsTag(Y,ne,n(O,J(),H,te)),O)}function J0(O,Y,H,te){let ne=hd();return D(h.createJSDocAugmentsTag(Y,ne,n(O,J(),H,te)),O)}function L0(O,Y,H,te){let ne=d(!1),Pe=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocSatisfiesTag(Y,ne,Pe),O)}function j0(O,Y,H,te){let ne=t.getTokenFullStart(),Pe;ve()&&(Pe=St());let Ue=si(Pe,ne,!0,!0),pt=Ri(),hn=Wc(),sn=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocImportTag(Y,Ue,pt,hn,sn),O)}function hd(){let O=Je(19),Y=J(),H=R0();t.setSkipJsDocLeadingAsterisks(!0);let te=Aa();t.setSkipJsDocLeadingAsterisks(!1);let ne=h.createExpressionWithTypeArguments(H,te),Pe=D(ne,Y);return O&&j(20),Pe}function R0(){let O=J(),Y=li();for(;Je(25);){let H=li();Y=D(ae(Y,H),O)}return Y}function Ui(O,Y,H,te,ne){return D(Y(H,n(O,J(),te,ne)),O)}function yd(O,Y,H,te){let ne=d(!0);return It(),D(h.createJSDocThisTag(Y,ne,n(O,J(),H,te)),O)}function U0(O,Y,H,te){let ne=d(!0);return It(),D(h.createJSDocEnumTag(Y,ne,n(O,J(),H,te)),O)}function B0(O,Y,H,te){let ne=Re();xr();let Pe=hp();It();let Ue=i(H),pt;if(!ne||kn(ne.type)){let sn,tn,Qn,Qc=!1;for(;(sn=le(()=>W0(H)))&&sn.kind!==345;)if(Qc=!0,sn.kind===344)if(tn){let Pa=Ee(E.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Pa&&rl(Pa,Oa(Mt,Qe,0,0,E.The_tag_was_first_specified_here));break}else tn=sn;else Qn=An(Qn,sn);if(Qc){let Pa=ne&&ne.type.kind===188,Kc=h.createJSDocTypeLiteral(Qn,Pa);ne=tn&&tn.typeExpression&&!kn(tn.typeExpression.type)?tn.typeExpression:D(Kc,O),pt=ne.end}}pt=pt||Ue!==void 0?J():(Pe??ne??Y).end,Ue||(Ue=n(O,pt,H,te));let hn=h.createJSDocTypedefTag(Y,ne,Pe,Ue);return D(hn,O,pt)}function hp(O){let Y=t.getTokenStart();if(!wt(u()))return;let H=li();if(Je(25)){let te=hp(!0),ne=h.createModuleDeclaration(void 0,H,te,O?8:void 0);return D(ne,Y)}return O&&(H.flags|=4096),H}function q0(O){let Y=J(),H,te;for(;H=le(()=>yp(4,O));){if(H.kind===345){ln(H.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}te=An(te,H)}return Ct(te||[],Y)}function gd(O,Y){let H=q0(Y),te=le(()=>{if(Bi(60)){let ne=q(Y);if(ne&&ne.kind===342)return ne}});return D(h.createJSDocSignature(void 0,H,te),O)}function z0(O,Y,H,te){let ne=hp();It();let Pe=i(H),Ue=gd(O,H);Pe||(Pe=n(O,J(),H,te));let pt=Pe!==void 0?J():Ue.end;return D(h.createJSDocCallbackTag(Y,Ue,ne,Pe),O,pt)}function F0(O,Y,H,te){It();let ne=i(H),Pe=gd(O,H);ne||(ne=n(O,J(),H,te));let Ue=ne!==void 0?J():Pe.end;return D(h.createJSDocOverloadTag(Y,Pe,ne),O,Ue)}function V0(O,Y){for(;!tt(O)||!tt(Y);)if(!tt(O)&&!tt(Y)&&O.right.escapedText===Y.right.escapedText)O=O.left,Y=Y.left;else return!1;return O.escapedText===Y.escapedText}function W0(O){return yp(1,O)}function yp(O,Y,H){let te=!0,ne=!1;for(;;)switch(ze()){case 60:if(te){let Pe=G0(O,Y);return Pe&&(Pe.kind===341||Pe.kind===348)&&H&&(tt(Pe.name)||!V0(H,Pe.name.left))?!1:Pe}ne=!1;break;case 4:te=!0,ne=!1;break;case 42:ne&&(te=!1),ne=!0;break;case 80:te=!1;break;case 1:return!1}}function G0(O,Y){B.assert(u()===60);let H=t.getTokenFullStart();ze();let te=li(),ne=xr(),Pe;switch(te.escapedText){case"type":return O===1&&md(H,te);case"prop":case"property":Pe=1;break;case"arg":case"argument":case"param":Pe=6;break;case"template":return bd(H,te,Y,ne);case"this":return yd(H,te,Y,ne);default:return!1}return O&Pe?$n(H,te,O,Y):!1}function Y0(){let O=J(),Y=Bi(23);Y&&It();let H=wn(!1,!0),te=li(E.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ne;if(Y&&(It(),j(64),ne=Tt(16777216,l_),j(24)),!Hi(te))return D(h.createTypeParameterDeclaration(H,te,void 0,ne),O)}function H0(){let O=J(),Y=[];do{It();let H=Y0();H!==void 0&&Y.push(H),xr()}while(Bi(28));return Ct(Y,O)}function bd(O,Y,H,te){let ne=u()===19?d():void 0,Pe=H0();return D(h.createJSDocTemplateTag(Y,ne,Pe,n(O,J(),H,te)),O)}function Bi(O){return u()===O?(ze(),!0):!1}function X0(){let O=li();for(Je(23)&&j(24);Je(25);){let Y=li();Je(23)&&j(24),O=Xl(O,Y)}return O}function li(O){if(!wt(u()))return Gt(80,!O,O||E.Identifier_expected);vn++;let Y=t.getTokenStart(),H=t.getTokenEnd(),te=u(),ne=Mr(t.getTokenValue()),Pe=D(re(ne,te),Y,H);return ze(),Pe}}})(Xc=e.JSDocParser||(e.JSDocParser={}))})($i||($i={}));var Tm=new WeakSet;function U6(e){Tm.has(e)&&B.fail("Source file has already been incrementally parsed"),Tm.add(e)}var mh=new WeakSet;function B6(e){return mh.has(e)}function Gp(e){mh.add(e)}var Tl;(e=>{function t(x,I,re,he){if(he=he||B.shouldAssert(2),h(x,I,re,he),yg(re))return x;if(x.statements.length===0)return $i.parseSourceFile(x.fileName,I,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);U6(x),$i.fixupParentReferences(x);let ye=x.text,de=y(x),M=l(x,re);h(x,I,M,he),B.assert(M.span.start<=re.span.start),B.assert(wr(M.span)===wr(re.span)),B.assert(wr(K_(M))===wr(K_(re)));let ae=K_(M).length-M.span.length;P(x,M.span.start,wr(M.span),wr(K_(M)),ae,ye,I,he);let Oe=$i.parseSourceFile(x.fileName,I,x.languageVersion,de,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return Oe.commentDirectives=a(x.commentDirectives,Oe.commentDirectives,M.span.start,wr(M.span),ae,ye,I,he),Oe.impliedNodeFormat=x.impliedNodeFormat,v6(x,Oe),Oe}e.updateSourceFile=t;function a(x,I,re,he,ye,de,M,ae){if(!x)return I;let Oe,V=!1;for(let W of x){let{range:dt,type:nr}=W;if(dt.endhe){oe();let gn={range:{pos:dt.pos+ye,end:dt.end+ye},type:nr};Oe=An(Oe,gn),ae&&B.assert(de.substring(dt.pos,dt.end)===M.substring(gn.range.pos,gn.range.end))}}return oe(),Oe;function oe(){V||(V=!0,Oe?I&&Oe.push(...I):Oe=I)}}function o(x,I,re,he,ye,de,M){re?Oe(x):ae(x);return;function ae(V){let oe="";if(M&&m(V)&&(oe=ye.substring(V.pos,V.end)),Qd(V,I),yi(V,V.pos+he,V.end+he),M&&m(V)&&B.assert(oe===de.substring(V.pos,V.end)),Xt(V,ae,Oe),Yi(V))for(let W of V.jsDoc)ae(W);A(V,M)}function Oe(V){yi(V,V.pos+he,V.end+he);for(let oe of V)ae(oe)}}function m(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function v(x,I,re,he,ye){B.assert(x.end>=I,"Adjusting an element that was entirely before the change range"),B.assert(x.pos<=re,"Adjusting an element that was entirely after the change range"),B.assert(x.pos<=x.end);let de=Math.min(x.pos,he),M=x.end>=re?x.end+ye:Math.min(x.end,he);if(B.assert(de<=M),x.parent){let ae=x.parent;B.assertGreaterThanOrEqual(de,ae.pos),B.assertLessThanOrEqual(M,ae.end)}yi(x,de,M)}function A(x,I){if(I){let re=x.pos,he=ye=>{B.assert(ye.pos>=re),re=ye.end};if(Yi(x))for(let ye of x.jsDoc)he(ye);Xt(x,he),B.assert(re<=x.end)}}function P(x,I,re,he,ye,de,M,ae){Oe(x);return;function Oe(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,x,!1,ye,de,M,ae);return}let W=oe.end;if(W>=I){if(Gp(oe),Qd(oe,x),v(oe,I,re,he,ye),Xt(oe,Oe,V),Yi(oe))for(let dt of oe.jsDoc)Oe(dt);A(oe,ae);return}B.assert(Wre){o(oe,x,!0,ye,de,M,ae);return}let W=oe.end;if(W>=I){Gp(oe),v(oe,I,re,he,ye);for(let dt of oe)Oe(dt);return}B.assert(W0&&M<=1;M++){let ae=Q(x,he);B.assert(ae.pos<=he);let Oe=ae.pos;he=Math.max(0,Oe-1)}let ye=hg(he,wr(I.span)),de=I.newLength+(I.span.start-he);return Qm(ye,de)}function Q(x,I){let re=x,he;if(Xt(x,de),he){let M=ye(he);M.pos>re.pos&&(re=M)}return re;function ye(M){for(;;){let ae=tb(M);if(ae)M=ae;else return M}}function de(M){if(!Hi(M))if(M.pos<=I){if(M.pos>=re.pos&&(re=M),II),!0}}function h(x,I,re,he){let ye=x.text;if(re&&(B.assert(ye.length-re.span.length+re.newLength===I.length),he||B.shouldAssert(3))){let de=ye.substr(0,re.span.start),M=I.substr(0,re.span.start);B.assert(de===M);let ae=ye.substring(wr(re.span),ye.length),Oe=I.substring(wr(K_(re)),I.length);B.assert(ae===Oe)}}function y(x){let I=x.statements,re=0;B.assert(re=V.pos&&M=V.pos&&M{x[x.Value=-1]="Value"})(g||(g={}))})(Tl||(Tl={}));function q6(e){return z6(e)!==void 0}function z6(e){let t=jm(e,xb,!1);if(t)return t;if(jy(e,".ts")){let a=Lm(e),o=a.lastIndexOf(".d.");if(o>=0)return a.substring(o)}}function F6(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,E.resolution_mode_should_be_either_require_or_import)}}function V6(e,t){let a=[];for(let o of Lp(t,0)||bt){let m=t.substring(o.pos,o.end);X6(a,o,m)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let m=e.pragmas.get(o.name);m instanceof Array?m.push(o.args):e.pragmas.set(o.name,[m,o.args]);continue}e.pragmas.set(o.name,o.args)}}function W6(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let m=e.referencedFiles,v=e.typeReferenceDirectives,A=e.libReferenceDirectives;Un(vp(a),P=>{let{types:l,lib:Q,path:h,["resolution-mode"]:y,preserve:g}=P.arguments,x=g==="true"?!0:void 0;if(P.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let I=F6(y,l.pos,l.end,t);v.push({pos:l.pos,end:l.end,fileName:l.value,...I?{resolutionMode:I}:{},...x?{preserve:x}:{}})}else Q?A.push({pos:Q.pos,end:Q.end,fileName:Q.value,...x?{preserve:x}:{}}):h?m.push({pos:h.pos,end:h.end,fileName:h.value,...x?{preserve:x}:{}}):t(P.range.pos,P.range.end-P.range.pos,E.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Np(vp(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)e.moduleName&&t(m.range.pos,m.range.end-m.range.pos,E.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=m.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{Un(vp(a),m=>{(!e.checkJsDirective||m.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Pp=new Map;function G6(e){if(Pp.has(e))return Pp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Pp.set(e,t),t}var Y6=/^\/\/\/\s*<(\S+)\s.*?\/>/m,H6=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function X6(e,t,a){let o=t.kind===2&&Y6.exec(a);if(o){let v=o[1].toLowerCase(),A=Jm[v];if(!A||!(A.kind&1))return;if(A.args){let P={};for(let l of A.args){let h=G6(l.name).exec(a);if(!h&&!l.optional)return;if(h){let y=h[2]||h[3];if(l.captureSpan){let g=t.pos+h.index+h[1].length+1;P[l.name]={value:y,pos:g,end:g+y.length}}else P[l.name]=y}}e.push({name:v,args:{arguments:P,range:t}})}else e.push({name:v,args:{arguments:{},range:t}});return}let m=t.kind===2&&H6.exec(a);if(m)return xm(e,t,2,m);if(t.kind===3){let v=/@(\S+)(\s+(?:\S.*)?)?$/gm,A;for(;A=v.exec(a);)xm(e,t,4,A)}}function xm(e,t,a,o){if(!o)return;let m=o[1].toLowerCase(),v=Jm[m];if(!v||!(v.kind&a))return;let A=o[2],P=$6(v,A);P!=="fail"&&e.push({name:m,args:{arguments:P,range:t}})}function $6(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let m=0;mo.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Gi(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return Xt(this,e,t)}};function Q6(e,t){let a=[];if(r2(e))return e.forEachChild(A=>{a.push(A)}),a;ss.setText((t||e.getSourceFile()).text);let o=e.pos,m=A=>{os(a,o,A.pos,e),a.push(A),o=A.end},v=A=>{os(a,o,A.pos,e),a.push(K6(A,e)),o=A.end};return Un(e.jsDoc,m),o=e.pos,e.forEachChild(m,v),os(a,o,e.end,e),ss.setText(void 0),a}function os(e,t,a,o){for(ss.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function ul(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(vh))){let o=new Set;for(let m of e){let v=Th(t,m,A=>{var P;if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualJsDocTags(m,t):((P=A.declarations)==null?void 0:P.length)===1?A.getJsDocTags(t):void 0});v&&(a=[...v,...a])}}return a}function _s(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(vh))){let o=new Set;for(let m of e){let v=Th(t,m,A=>{if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualDocumentationComment(m,t):A.getDocumentationComment(t)});v&&(a=a.length===0?v.slice():v.concat(lineBreakPart(),a))}}return a}function Th(e,t,a){var o;let m=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!m)return;let v=V2(t);return _y(J2(m),A=>{let P=e.getTypeAtLocation(A),l=v&&P.symbol?e.getTypeOfSymbol(P.symbol):P,Q=e.getPropertyOfType(l,t.symbol.name);return Q?a(Q):void 0})}var nv=class extends Yf{constructor(e,t,a){super(e,t,a)}update(e,t){return R6(this,e,t)}getLineAndCharacterOfPosition(e){return Vm(this,e)}getLineStarts(){return Jp(this)}getPositionOfLineAndCharacter(e,t,a){return _g(Jp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let m=this.getFullText();return m[o]===` +`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=uf(v);return A&&(Ef(A)&&Hr(A.expression)?A.expression.name.text:_1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Gi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Xt(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Xt(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Hg(h.name)){Xt(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(Z1(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:gf(v)!==0&&t(v);default:Xt(v,m)}}}},rv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Vm(this,e)}};function iv(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>yh,getIdentifierConstructor:()=>gh,getPrivateIdentifierConstructor:()=>bh,getSourceFileConstructor:()=>nv,getSymbolConstructor:()=>Z6,getTypeConstructor:()=>ev,getSignatureConstructor:()=>tv,getSourceMapSourceConstructor:()=>rv}}var av=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],w3=[...av,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];lb(iv());var Ol=new Proxy({},{get:()=>!0});var Sh=Ol["4.8"];function er(e,t=!1){var a;if(e!=null){if(Sh){if(t||Il(e)){let o=e1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Al(o))}}function ta(e,t=!1){var a;if(e!=null){if(Sh){if(t||Gf(e)){let o=pf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Al)}}var kh={};var Ml=new Proxy({},{get:(e,t)=>t});var Eh=Ml,Ah=Ml;var C=Eh,Rt=Ah;var Ch=Ol["5.0"],ue=Ne,ov=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),cv=new Set([Ne.AmpersandAmpersandEqualsToken,Ne.AmpersandEqualsToken,Ne.AsteriskAsteriskEqualsToken,Ne.AsteriskEqualsToken,Ne.BarBarEqualsToken,Ne.BarEqualsToken,Ne.CaretEqualsToken,Ne.EqualsToken,Ne.GreaterThanGreaterThanEqualsToken,Ne.GreaterThanGreaterThanGreaterThanEqualsToken,Ne.LessThanLessThanEqualsToken,Ne.MinusEqualsToken,Ne.PercentEqualsToken,Ne.PlusEqualsToken,Ne.QuestionQuestionEqualsToken,Ne.SlashEqualsToken]),lv=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function uv(e){return cv.has(e.kind)}function pv(e){return ov.has(e.kind)}function fv(e){return lv.has(e.kind)}function $r(e){return it(e)}function Dh(e){return e.kind!==ue.SemicolonClassElement}function He(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Ph(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Nh(e){return e.kind===ue.CommaToken}function dv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function mv(e){return e.kind===ue.JSDocComment}function Ih(e){if(uv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(pv(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(fv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Qr(e,t){let[a,o]=e.map(m=>Ts(m,t));return{end:o,start:a}}function Oh(e){if(e.kind===Ne.Block)switch(e.parent.kind){case Ne.Constructor:case Ne.GetAccessor:case Ne.SetAccessor:case Ne.ArrowFunction:case Ne.FunctionExpression:case Ne.FunctionDeclaration:case Ne.MethodDeclaration:return!0;default:return!1}return!0}function $a(e,t){return[e.getStart(t),e.getEnd()]}function hv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Mh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Jl(e){return e.flags&on.Let?"let":(e.flags&on.AwaitUsing)===on.AwaitUsing?"await using":e.flags&on.Const?"const":e.flags&on.Using?"using":"var"}function xi(e){let t=er(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function na(e,t,a){return o(t);function o(m){return i1(m)&&m.pos===e.end?m:xv(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&Tv(v,a)?o(v):void 0)}}function yv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function gv(e){return!!yv(e,Mh)}function Kf(e){return Sr(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return kh[a]||t})}function ra(e){return e.kind===ue.ComputedPropertyName}function Zf(e){return!!e.questionToken}function ed(e){return e.type===C.ChainExpression}function Jh(e,t){return ed(t)&&e.expression.kind!==Ne.ParenthesizedExpression}function bv(e){let t;if(Ch&&e.kind===ue.Identifier?t=wl(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Rt.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Rt.Identifier:Rt.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Rt.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Rt.Template;switch(e.kind){case ue.NumericLiteral:return Rt.Numeric;case ue.JsxText:return Rt.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Rt.JSXText:Rt.String;case ue.RegularExpressionLiteral:return Rt.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Mh(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&gv(e))return Rt.JSXIdentifier}return Rt.Identifier}function vv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=bv(e),A=[a,o],P=Qr(A,t);return v===Rt.RegularExpression?{type:v,loc:P,range:A,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:{type:v,loc:P,range:A,value:m}}function Lh(e){let t=[];function a(o){dv(o)||mv(o)||(hv(o)&&o.kind!==ue.EndOfFileToken?t.push(vv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var Qf=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function td(e,t,a,o=a){let[m,v]=[a,o].map(A=>{let{character:P,line:l}=t.getLineAndCharacterOfPosition(A);return{column:P,line:l+1,offset:A}});return new Qf(e,t.fileName,{end:v,start:m})}function jh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function Tv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function xv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ue.EndOfFileToken}function nd(e){return!wv(e)}function Bh(e){return lf(e.parent,hf)}function kv(e){return He(ue.AbstractKeyword,e)}function Ev(e){if(e.parameters.length&&!Nl(e)){let t=e.parameters[0];if(Av(t))return t}return null}function Av(e){return Rh(e.name)}function qh(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Wa(t)||vi(t)&&!kv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Wa(t)||vi(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&Ev(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function Ll(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&on.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.ExpressionWithTypeArguments:case ue.NonNullExpression:return Ll(e.expression);default:return!1}}function zh(e){let t=er(e),a=e;for(;(!t||t.length===0)&&Ti(a.parent);){let o=er(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ne;function _d(e){return td("message"in e&&e.message||e.messageText,e.file,e.start)}var me,id,Fh,Be,Vt,Qa,ad,jl=class{constructor(t,a){gp(this,me);Na(this,"allowPattern",!1);Na(this,"ast");Na(this,"esTreeNodeToTSNodeMap",new WeakMap);Na(this,"options");Na(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,me,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,me,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=Oh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Dl(m)&&Ya(m.expression)){let A=v.expression.raw;return v.directive=A.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Jh(a,o);if(!v&&!m)return t;if(v&&ed(o)){let A=o.expression;t.type===C.MemberExpression?t.object=A:t.type===C.CallExpression?t.callee=A:t.expression=A}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],A=Qr(v,this.ast);return{type:C.TSTypeAnnotation,loc:A,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=na(t,this.ast,this.ast);return this.createNode(a,{type:C.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=na(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:C.TSTypeParameterDeclaration,loc:Qr(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=ta(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,me,Fh).call(this,t);let m=this.allowPattern;o!==void 0&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t===void 0?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ne.JsxNamespacedName){let m=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=$a(t,this.ast),v=this.createNode(t,{type:C.JSXNamespacedName,range:m,name:this.createNode(t,{type:C.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,me,Be).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:xi(t),computed:ra(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Zf(t),params:this.convertParameters(t.parameters),readonly:He(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:He(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=Ts(t.range[1],this.ast))}convertNode(t,a){var o,m,v,A,P,l,Q,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return Uh(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,me,Be).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,me,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,me,Be).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,me,id).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=He(T.DeclareKeyword,t),g=He(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,me,Be).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,me,Be).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,me,Be).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,me,Be).call(this,t,"A function signature cannot be declared as a generator.");let I=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,I)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,me,Be).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==C.Identifier||!x.typeAnnotation)&&ge(this,me,Be).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:He(T.DeclareKeyword,t),kind:Jl(t.declarationList)});return y.declarations.length||ge(this,me,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,me,Be).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,me,Be).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:Jl(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,me,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:C.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,me,Be).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:ra(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,me,Be).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,me,Be).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=He(T.AbstractKeyword,t);y&&t.initializer&&ge(this,me,Be).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=He(T.AccessorKeyword,t),x=g?y?C.TSAbstractAccessorProperty:C.AccessorProperty:y?C.TSAbstractPropertyDefinition:C.PropertyDefinition,I=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:xi(t),computed:ra(t.name),declare:He(T.DeclareKeyword,t),decorators:((m=ta(t))==null?void 0:m.map(re=>this.convertChild(re)))??[],definite:!!t.exclamationToken,key:I,optional:(I.type===C.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:He(T.OverrideKeyword,t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:C.Property,computed:ra(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=He(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition;g=this.createNode(t,{type:x,accessibility:xi(t),computed:ra(t.name),decorators:((v=ta(t))==null?void 0:v.map(I=>this.convertChild(I)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:He(T.OverrideKeyword,t),static:He(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==C.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Ph(t),g=(y&&na(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let I=this.createNode(t,{type:C.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),re=He(T.StaticKeyword,t);return this.createNode(t,{type:He(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:xi(t),computed:!1,decorators:[],key:I,kind:re?"method":"constructor",optional:!1,override:!1,static:re,value:x})}case T.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:C.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),er(t)&&(g.range[0]=y.range[0],g.loc=Qr(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=Ts(y.range[1],this.ast)),y.optional=!0),er(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:xi(t),decorators:[],override:He(T.OverrideKeyword,t),parameter:g,readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!He(Ne.ExportKeyword,t)||!He(Ne.DefaultKeyword,t))&&ge(this,me,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,x,I;for(let he of y){let{token:ye,types:de}=he;de.length===0&&ge(this,me,Vt).call(this,he,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,me,Vt).call(this,he,"'extends' clause already seen."),I&&ge(this,me,Vt).call(this,he,"'extends' clause must precede 'implements' clause."),de.length>1&&ge(this,me,Vt).call(this,de[1],"Classes can only extend a single class."),x??(x=he)):ye===T.ImplementsKeyword&&(I&&ge(this,me,Vt).call(this,he,"'implements' clause already seen."),I??(I=he))}let re=this.createNode(t,{type:g,abstract:He(T.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Dh).map(he=>this.convertChild(he))}),declare:He(T.DeclareKeyword,t),decorators:((A=ta(t))==null?void 0:A.map(he=>this.convertChild(he)))??[],id:this.convertChild(t.name),implements:(I==null?void 0:I.types.map(he=>this.convertChild(he)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(P=x==null?void 0:x.types[0])!=null&&P.typeArguments&&(re.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,re)}case T.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((Q=t.exportClause)==null?void 0:Q.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,me,Be).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=$r(t.operator);return y==="++"||y==="--"?(Ll(t.operand)||ge(this,me,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:$r(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Nh(t.operatorToken)){let g=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===C.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=Ih(t.operatorToken);return this.allowPattern&&y.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),I=this.createNode(t,{type:C.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!==void 0,property:g});return this.convertChainExpression(I,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),I=this.createNode(t,{type:C.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!==void 0,property:g});return this.convertChainExpression(I,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,me,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(re=>this.convertChild(re)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),I=this.createNode(t,{type:C.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!==void 0,typeArguments:x});return this.convertChainExpression(I,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:$r(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Kf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=$a(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Sr(!1,g.slice(0,-1),"_",""),I=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:C.Literal,range:y,bigint:I==null?x:String(I),raw:g,value:I})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:C.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:$a(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:y}):this.createNode(t,{type:C.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:C.JSXText,range:[y,g],raw:x,value:Kf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:He(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:He(T.InKeyword,t),name:this.convertChild(t.name),out:He(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:C.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,me,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,me,ad).call(this,{type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===T.QuestionToken||$r(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===T.ReadonlyKeyword||$r(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,me,Be).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:xi(t),computed:ra(t.name),key:this.convertChild(t.name),optional:Zf(t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:xi(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:He(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,me,Be).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===T.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?C.TSInterfaceHeritage:y===T.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[];for(let I of y){I.token!==T.ExtendsKeyword&&ge(this,me,Be).call(this,I,I.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let re of I.types)g.push(this.convertChild(re,t))}let x=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(I=>this.convertChild(I))}),declare:He(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,x)}case T.TypePredicate:{let y=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=$a(t,this.ast);if(t.isTypeOf){let x=na(t.getFirstToken(),t,this.ast);y[0]=x.getStart(this.ast)}let g=this.createNode(t,{type:C.TSImportType,range:y,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:g,typeArguments:void 0}):g}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,me,ad).call(this,{type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:He(T.ConstKeyword,t),declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:C.TSEnumMember,computed:t.name.kind===Ne.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=He(T.DeclareKeyword,t),g=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&on.GlobalAugmentation){let I=this.convertChild(t.name),re=this.convertChild(t.body);return(re==null||re.type===C.TSModuleDeclaration)&&ge(this,me,Vt).call(this,t.body??t,"Expected a valid module body"),I.type!==C.Identifier&&ge(this,me,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:re,declare:!1,global:!1,id:I,kind:"global"}}if(!(t.flags&on.Namespace)){let I=this.convertChild(t.body);return{kind:"module",...I!=null?{body:I}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,me,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ne.Identifier&&ge(this,me,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,y||(y=He(T.DeclareKeyword,t));let I=t.name,re=this.createNode(I,{type:C.Identifier,range:[I.getStart(this.ast),I.getEnd()],decorators:[],name:I.text,optional:!1,typeAnnotation:void 0});x=this.createNode(I,{type:C.TSQualifiedName,range:[x.range[0],re.range[1]],left:x,right:re})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:"namespace"}})()});return g.declare=y,t.flags&on.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:C.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,me,Be).call(this,t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:C.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=$a(t,this.ast)),o.loc??(o.loc=Qr(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ne.JSDocFunctionType&&ge(this,me,Be).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&s1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=ta(t);m!=null&&m.length&&(o.decorators=m.map(A=>this.convertChild(A)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([A])=>!v.has(A)).forEach(([A,P])=>{Array.isArray(P)?o[A]=P.map(l=>this.convertChild(l)):P&&typeof P=="object"&&P.kind?o[A]=this.convertChild(P):o[A]=P}),o}fixExports(t,a){let m=Ti(t)&&!!(t.flags&on.Namespace)?zh(t):er(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],A=m[1],P=(A==null?void 0:A.kind)===T.DefaultKeyword,l=P?na(A,this.ast,this.ast):na(v,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=Qr(a.range,this.ast),P)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let Q=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:Q||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};me=new WeakSet,id=function(t,a){let o=a===Ne.ForInStatement?"for...in":"for...of";if(Q1(t)){t.declarations.length!==1&&ge(this,me,Be).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ne.ForInStatement&&t.flags&on.Using&&ge(this,me,Be).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Ll(t)&&t.kind!==Ne.ObjectLiteralExpression&&t.kind!==Ne.ArrayLiteralExpression&&ge(this,me,Be).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Fh=function(t){if(!this.options.allowInvalidAST){jh(t)&&ge(this,me,Be).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of ta(t,!0)??[])qh(t)||(ms(t)&&!nd(t.body)?ge(this,me,Be).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,me,Be).call(this,a,"Decorators are not valid here."));for(let a of er(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!vi(t.parent))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(vs(t.parent)||vi(t.parent)||Pl(t.parent)))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,me,Be).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&vi(t.parent)&&!Va(t)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Xa(t)){let o=Jl(t.declarationList);(o==="using"||o==="await using")&&ge(this,me,Be).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,me,Be).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,me,Be).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of er(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,me,Be).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=Bh(t);o.kind===T.Constructor&&nd(o.body)||ge(this,me,Be).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Be=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),td(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,me,Be).call(this,t,a)},Qa=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t},ad=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t};function Cv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(mf(e.kind))t(e);else if(e.kind!==Ne.JSDocComment){let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function Dv(e){switch(e.kind){case Ne.CloseBraceToken:return e.parent.kind!==Ne.JsxExpression||!sd(e.parent.parent);case Ne.GreaterThanToken:switch(e.parent.kind){case Ne.JsxOpeningElement:return e.end!==e.parent.end;case Ne.JsxOpeningFragment:return!1;case Ne.JsxSelfClosingElement:return e.end!==e.parent.end||!sd(e.parent.parent);case Ne.JsxClosingElement:case Ne.JsxClosingFragment:return!sd(e.parent.parent.parent)}}return!0}function sd(e){return e.kind===Ne.JsxElement||e.kind===Ne.JsxFragment}function Wh(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==xl.JSX;return Cv(e,A=>{if(A.pos!==A.end&&(A.kind!==Ne.JsxText&&Hm(o,A.pos===0?(sf(o)??"").length:A.pos,v),m||Dv(A)))return Xm(o,A.end,v)},a);function v(A,P,l){t(o,{end:P,kind:l,pos:A})}}var[ex,tx]=Sm.split(".").map(e=>Number.parseInt(e,10));var nx=nn.Intrinsic??nn.Any|nn.Unknown|nn.String|nn.Number|nn.BigInt|nn.Boolean|nn.BooleanLiteral|nn.ESSymbol|nn.Void|nn.Undefined|nn.Null|nn.Never|nn.NonPrimitive;function Gh(e,t){let a=[];return Wh(e,(o,m)=>{let v=m.kind===Ne.SingleLineCommentTrivia?Rt.Line:Rt.Block,A=[m.pos,m.end],P=Qr(A,e),l=A[0]+2,Q=m.kind===Ne.SingleLineCommentTrivia?A[1]-l:A[1]-l-2;a.push({type:v,loc:P,range:A,value:t.slice(l,l+Q)})},e),a}var Yh=()=>{};function Hh(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw _d(o[0]);let m=new jl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Yh(v,{enter:P=>{t.range||delete P.range,t.loc||delete P.loc}}),t.tokens&&(v.tokens=Lh(e)),t.comment&&(v.comments=Gh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function Rl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ne.SourceFile&&typeof t.getFullText=="function"}var Lv=function(e){return e&&e.__esModule?e:{default:e}};var jv=Lv({extname:e=>"."+e.split(".").pop()});function $h(e,t){switch(jv.default.extname(e).toLowerCase()){case Nn.Cjs:case Nn.Js:case Nn.Mjs:return Dr.JS;case Nn.Cts:case Nn.Mts:case Nn.Ts:return Dr.TS;case Nn.Json:return Dr.JSON;case Nn.Jsx:return Dr.JSX;case Nn.Tsx:return Dr.TSX;default:return t?Dr.TSX:Dr.TS}}var Uv={default:Ia},Bv=(0,Uv.default)("typescript-eslint:typescript-estree:createSourceFile");function Qh(e){return Bv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),Rl(e.code)?e.code:fh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:ys.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,$h(e.filePath,e.jsx))}var Kh=()=>{};var Zh=e=>e;var e0=class{};var n0=()=>!1;var r0=()=>{};var Kv=function(e){return e&&e.__esModule?e:{default:e}};var od={default:Ia},Zv=Kv({extname:e=>"."+e.split(".").pop()}),e4=(0,od.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),t4,n4=null,i0,a0,_0,s0,xs={ParseAll:(i0=Ga)==null?void 0:i0.ParseAll,ParseForTypeErrors:(a0=Ga)==null?void 0:a0.ParseForTypeErrors,ParseForTypeInfo:(_0=Ga)==null?void 0:_0.ParseForTypeInfo,ParseNone:(s0=Ga)==null?void 0:s0.ParseNone};function o0(e,t={}){var h;let a=r4(e),o=n0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",A=Zh(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:i4(t.jsx),m),P=Zv.default.extname(A).toLowerCase(),l=(()=>{switch(t.jsDocParsingMode){case"all":return xs.ParseAll;case"none":return xs.ParseNone;case"type-info":return xs.ParseForTypeInfo;default:return xs.ParseAll}})(),Q={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:A,jsDocParsingMode:l,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?n4??(n4=Kh(t.projectService,l,m)):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType===void 0&&P===Nn.Mjs||t.sourceType===void 0&&P===Nn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:t4??(t4=new e0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(Q.debugLevel.size>0){let y=[];Q.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(Q.debugLevel.has("eslint")||od.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),od.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");e4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!Q.programs&&!Q.projectService&&(Q.projects=new Map),t.jsDocParsingMode==null&&Q.projects.size===0&&Q.programs==null&&Q.projectService==null&&(Q.jsDocParsingMode=xs.ParseNone),r0(Q,v),Q}function r4(e){return Rl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function i4(e){return e?"estree.tsx":"estree.ts"}var o4={default:Ia},gx=(0,o4.default)("typescript-eslint:typescript-estree:parser");function c0(e,t){let{ast:a}=c4(e,t,!1);return a}function c4(e,t,a){let o=o0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=Qh(o),{astMaps:v,estree:A}=Hh(m,o,a);return{ast:A,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function l4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var l0=l4;function u4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var u0=u4;var p4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},cd=p4;function f4(e){return Array.isArray(e)&&e.length>0}var p0=f4;function tr(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(tr(a),t):t}function Kr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function d4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var f0=d4;var m4=f0(["Block","CommentBlock","MultiLine"]),Ss=m4;function h4(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var ld=h4;function y4(e){return Ss(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var d0=y4;var ws=null;function ks(e){if(ws!==null&&typeof ws.property){let t=ws;return ws=ks.prototype=null,t}return ws=ks.prototype=e??Object.create(null),new ks}var g4=10;for(let e=0;e<=g4;e++)ks();function ud(e){return ks(e)}function b4(e,t="type"){ud(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var m0=b4;var h0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var v4=m0(h0),y0=v4;function pd(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{var A;(A=v.leadingComments)!=null&&A.some(d0)&&m.add(tr(v))}),e=Ul(e,v=>{if(v.type==="ParenthesizedExpression"){let{expression:A}=v;if(A.type==="TypeCastExpression")return A.range=[...v.range],A;let P=tr(v);if(!m.has(P))return A.extra={...A.extra,parenthesized:!0},A}})}if(e=Ul(e,m=>{switch(m.type){case"LogicalExpression":if(g0(m))return fd(m);break;case"VariableDeclaration":{let v=cd(!1,m.declarations,-1);v!=null&&v.init&&o[Kr(v)]!==";"&&(m.range=[tr(m),Kr(v)]);break}case"TSParenthesizedType":return m.typeAnnotation;case"TSTypeParameter":if(typeof m.name=="string"){let v=tr(m);m.name={type:"Identifier",name:m.name,range:[v,v+m.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(m.types.length===1)return m.types[0];break}}),p0(e.comments)){let m=cd(!1,e.comments,-1);for(let v=e.comments.length-2;v>=0;v--){let A=e.comments[v];Kr(A)===tr(m)&&Ss(A)&&Ss(m)&&ld(A)&&ld(m)&&(e.comments.splice(v+1,1),A.value+="*//*"+m.value,A.range=[tr(A),Kr(m)]),m=A}}return e.type==="Program"&&(e.range=[0,o.length]),e}function g0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function fd(e){return g0(e)?fd({type:"LogicalExpression",operator:e.operator,left:fd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tr(e.left),Kr(e.right.left)]}),right:e.right.right,range:[tr(e),Kr(e)]}):e}var b0=T4;var x4=/\*\/$/,S4=/^\/\*\*?/,w4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,k4=/(^|\s+)\/\/([^\n\r]*)/g,v0=/^(\r?\n)+/,E4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,T0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,A4=/(\r?\n|^) *\* ?/g,C4=[];function x0(e){let t=e.match(w4);return t?t[0].trimStart():""}function S0(e){let t=` +`;e=Sr(!1,e.replace(S4,"").replace(x4,""),A4,"$1");let a="";for(;a!==e;)a=e,e=Sr(!1,e,E4,`${t}$1 $2${t}`);e=e.replace(v0,"").trimEnd();let o=Object.create(null),m=Sr(!1,e,T0,"").replace(v0,"").trimEnd(),v;for(;v=T0.exec(e);){let A=Sr(!1,v[2],k4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let P=o[v[1]];o[v[1]]=[...C4,...Array.isArray(P)?P:[P],A]}else o[v[1]]=A}return{comments:m,pragmas:o}}function D4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var w0=D4;function P4(e){let t=w0(e);t&&(e=e.slice(t.length+1));let a=x0(e),{pragmas:o,comments:m}=S0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function k0(e){let{pragmas:t}=P4(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function N4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:k0,locStart:tr,locEnd:Kr,...e}}var E0=N4;function I4(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var A0=I4;function O4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var C0=O4;var M4={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function J4(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return l0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var L4=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function j4(e,t){let a=t==null?void 0:t.filepath,o=[{...M4,filePath:a}],m=A0(t);if(m?o=o.map(A=>({...A,sourceType:m})):o=["module","script"].flatMap(P=>o.map(l=>({...l,sourceType:P}))),a&&L4(a))return o;let v=U4(e);return[v,!v].flatMap(A=>o.map(P=>({...P,jsx:A})))}function R4(e,t={}){let a=C0(e),o=j4(e,t),m;try{m=u0(o.map(v=>()=>c0(a,v)))}catch({errors:[v]}){throw J4(v)}return b0(m,{text:e})}function U4(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"mu").test(e)}var B4=E0(R4);return ty(q4);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/typescript.mjs b/node_modules/prettier/plugins/typescript.mjs index 95b089a8..77df6386 100644 --- a/node_modules/prettier/plugins/typescript.mjs +++ b/node_modules/prettier/plugins/typescript.mjs @@ -1,20 +1,20 @@ -var jd=Object.defineProperty;var Ld=e=>{throw TypeError(e)};var yy=(e,t,a)=>t in e?jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Rd=(e,t)=>{for(var a in t)jd(e,a,{get:t[a],enumerable:!0})};var Ma=(e,t,a)=>yy(e,typeof t!="symbol"?t+"":t,a),gy=(e,t,a)=>t.has(e)||Ld("Cannot "+a);var Ud=(e,t,a)=>t.has(e)?Ld("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var we=(e,t,a)=>(gy(e,t,"access private method"),a);var Nd={};Rd(Nd,{parsers:()=>Pd});var Pd={};Rd(Pd,{typescript:()=>E3});var by=()=>()=>{},Ja=by;var qm="5.5";var Ot=[],vy=new Map;function ms(e){return e?e.length:0}function zn(e,t){if(e)for(let a=0;aa(o,t[h]))}function Kr(e,t){if(e){let a=e.length,o=0;for(;o0;return!1}function lf(e,t){return qt(t)?qt(e)?[...e,...t]:t:e}function Ey(e,t){return t}function Ay(e){return e.map(Ey)}function Cn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Yp(e,t){return t<0?e.length+t:t}function Pn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Yp(t,a),o=o===void 0?t.length:Yp(t,o);for(let h=a;ha(e[o],e[h])||df(o,h))}function Ny(e,t){let a=Ay(e);return Py(e,a,t),a.map(o=>e[o])}var D3=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Yp(e,t),t>1),l=a(e[C],C);switch(o(l,t)){case-1:g=C+1;break;case 0:return C;case 1:E=C-1;break}}return~g}function jy(e,t,a,o,h){if(e&&e.length>0){let g=e.length;if(g>0){let E=o===void 0||o<0?0:o,C=h===void 0||E+h>g-1?g-1:E+h,l;for(arguments.length<=2?(l=e[E],E++):l=a;E<=C;)l=t(l,e[E],E),E++;return l}}return a}var Wm=Object.prototype.hasOwnProperty;function Mr(e,t){return Wm.call(e,t)}function Ly(e){let t=[];for(let a in e)Wm.call(e,a)&&t.push(a);return t}function Ry(){let e=new Map;return e.add=Uy,e.remove=By,e}function Uy(e,t){let a=this.get(e);return a?a.push(t):this.set(e,a=[t]),a}function By(e,t){let a=this.get(e);a&&(Hy(a,t),a.length||this.delete(e))}function Zr(e){return Array.isArray(e)}function Jp(e){return Zr(e)?e:[e]}function qy(e,t){return e!==void 0&&t(e)?e:void 0}function Ir(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function zy(){return!0}function kt(e){return e}function qd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function tr(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,h=t.get(o);return h===void 0&&!t.has(o)&&(h=e(a),t.set(o,h)),h}}function pf(e,t){return e===t}function ff(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Fy(e,t){return pf(e,t)}function Vy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?C-a:1),f=Math.floor(t.length>a+C?a+C:t.length);h[0]=C;let k=C;for(let w=1;wa)return;let v=o;o=h,h=v}let E=o[t.length];return E>a?void 0:E}function Gy(e,t,a){let o=e.length-t.length;return o>=0&&(a?ff(e.slice(o),t):e.indexOf(t,o)===o)}function Yy(e,t){e[t]=e[e.length-1],e.pop()}function Hy(e,t){return Xy(e,a=>a===t)}function Xy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(j){return e.currentLogLevel<=j}e.shouldLog=a;function o(j,se){e.loggingHost&&a(j)&&e.loggingHost.log(j,se)}function h(j){o(3,j)}e.log=h,(j=>{function se(Ke){o(1,Ke)}j.error=se;function fe(Ke){o(2,Ke)}j.warn=fe;function xe(Ke){o(3,Ke)}j.log=xe;function Xe(Ke){o(4,Ke)}j.trace=Xe})(h=e.log||(e.log={}));let g={};function E(){return t}e.getAssertionLevel=E;function C(j){let se=t;if(t=j,j>se)for(let fe of Ly(g)){let xe=g[fe];xe!==void 0&&e[fe]!==xe.assertion&&j>=xe.level&&(e[fe]=xe,g[fe]=void 0)}}e.setAssertionLevel=C;function l(j){return t>=j}e.shouldAssert=l;function Z(j,se){return l(j)?!0:(g[se]={level:j,assertion:e[se]},e[se]=Ga,!1)}function f(j,se){debugger;let fe=new Error(j?`Debug Failure. ${j}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||f),fe}e.fail=f;function k(j,se,fe){return f(`${se||"Unexpected node."}\r -Node ${Mt(j.kind)} was unexpected.`,fe||k)}e.failBadSyntaxKind=k;function v(j,se,fe,xe){j||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r -Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),f(se,xe||v))}e.assert=v;function w(j,se,fe,xe,Xe){if(j!==se){let Ke=fe?xe?`${fe} ${xe}`:fe:"";f(`Expected ${j} === ${se}. ${Ke}`,Xe||w)}}e.assertEqual=w;function J(j,se,fe,xe){j>=se&&f(`Expected ${j} < ${se}. ${fe||""}`,xe||J)}e.assertLessThan=J;function re(j,se,fe){j>se&&f(`Expected ${j} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function be(j,se,fe){j= ${se}`,fe||be)}e.assertGreaterThanOrEqual=be;function he(j,se,fe){j==null&&f(se,fe||he)}e.assertIsDefined=he;function me(j,se,fe){return he(j,se,fe||me),j}e.checkDefined=me;function O(j,se,fe){for(let xe of j)he(xe,se,fe||O)}e.assertEachIsDefined=O;function ae(j,se,fe){return O(j,se,fe||ae),j}e.checkEachDefined=ae;function ve(j,se="Illegal value:",fe){let xe=typeof j=="object"&&Mr(j,"kind")&&Mr(j,"pos")?"SyntaxKind: "+Mt(j.kind):JSON.stringify(j);return f(`${se} ${xe}`,fe||ve)}e.assertNever=ve;function X(j,se,fe,xe){Z(1,"assertEachNode")&&v(se===void 0||cf(j,se),fe||"Unexpected node.",()=>`Node array did not pass test '${Tn(se)}'.`,xe||X)}e.assertEachNode=X;function oe(j,se,fe,xe){Z(1,"assertNode")&&v(j!==void 0&&(se===void 0||se(j)),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||oe)}e.assertNode=oe;function G(j,se,fe,xe){Z(1,"assertNotNode")&&v(j===void 0||se===void 0||!se(j),fe||"Unexpected node.",()=>`Node ${Mt(j.kind)} should not have passed test '${Tn(se)}'.`,xe||G)}e.assertNotNode=G;function ht(j,se,fe,xe){Z(1,"assertOptionalNode")&&v(se===void 0||j===void 0||se(j),fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} did not pass test '${Tn(se)}'.`,xe||ht)}e.assertOptionalNode=ht;function ir(j,se,fe,xe){Z(1,"assertOptionalToken")&&v(se===void 0||j===void 0||j.kind===se,fe||"Unexpected node.",()=>`Node ${Mt(j==null?void 0:j.kind)} was not a '${Mt(se)}' token.`,xe||ir)}e.assertOptionalToken=ir;function xn(j,se,fe){Z(1,"assertMissingNode")&&v(j===void 0,se||"Unexpected node.",()=>`Node ${Mt(j.kind)} was unexpected'.`,fe||xn)}e.assertMissingNode=xn;function ar(j){}e.type=ar;function Tn(j){if(typeof j!="function")return"";if(Mr(j,"name"))return j.name;{let se=Function.prototype.toString.call(j),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=Tn;function On(j){return`{ name: ${Ts(j.escapedName)}; flags: ${ut(j.flags)}; declarations: ${Gp(j.declarations,se=>Mt(se.kind))} }`}e.formatSymbol=On;function Ve(j=0,se,fe){let xe=Rr(se);if(j===0)return xe.length>0&&xe[0][0]===0?xe[0][1]:"0";if(fe){let Xe=[],Ke=j;for(let[ot,Pt]of xe){if(ot>j)break;ot!==0&&ot&j&&(Xe.push(Pt),Ke&=~ot)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of xe)if(Xe===j)return Ke;return j.toString()}e.formatEnum=Ve;let _r=new Map;function Rr(j){let se=_r.get(j);if(se)return se;let fe=[];for(let Xe in j){let Ke=j[Xe];typeof Ke=="number"&&fe.push([Ke,Xe])}let xe=Ny(fe,(Xe,Ke)=>df(Xe[0],Ke[0]));return _r.set(j,xe),xe}function Mt(j){return Ve(j,ce,!1)}e.formatSyntaxKind=Mt;function Vn(j){return Ve(j,$m,!1)}e.formatSnippetKind=Vn;function Mn(j){return Ve(j,Jr,!1)}e.formatScriptKind=Mn;function Jt(j){return Ve(j,Xt,!0)}e.formatNodeFlags=Jt;function xt(j){return Ve(j,Ym,!0)}e.formatNodeCheckFlags=xt;function Qe(j){return Ve(j,mf,!0)}e.formatModifierFlags=Qe;function Wn(j){return Ve(j,Xm,!0)}e.formatTransformFlags=Wn;function nn(j){return Ve(j,Qm,!0)}e.formatEmitFlags=nn;function ut(j){return Ve(j,hf,!0)}e.formatSymbolFlags=ut;function st(j){return Ve(j,zt,!0)}e.formatTypeFlags=st;function Vt(j){return Ve(j,Hm,!0)}e.formatSignatureFlags=Vt;function jt(j){return Ve(j,gl,!0)}e.formatObjectFlags=jt;function pt(j){return Ve(j,$p,!0)}e.formatFlowFlags=pt;function sr(j){return Ve(j,Gm,!0)}e.formatRelationComparisonResult=sr;function yt(j){return Ve(j,CheckMode,!0)}e.formatCheckMode=yt;function Sn(j){return Ve(j,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Sn;function vt(j){return Ve(j,TypeFacts,!0)}e.formatTypeFacts=vt;let dn=!1,rt;function Wt(j){"__debugFlowFlags"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${pt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ve(this.flags,$p,!0)}},__debugToString:{value(){return Tr(this)}}})}function on(j){return dn&&(typeof Object.setPrototypeOf=="function"?(rt||(rt=Object.create(Object.prototype),Wt(rt)),Object.setPrototypeOf(j,rt)):Wt(j)),j}e.attachFlowNodeDebugInfo=on;let or;function vr(j){"__tsDebuggerDisplay"in j||Object.defineProperties(j,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function xr(j){dn&&(typeof Object.setPrototypeOf=="function"?(or||(or=Object.create(Array.prototype),vr(or)),Object.setPrototypeOf(j,or)):vr(j))}e.attachNodeArrayDebugInfo=xr;function Gn(){if(dn)return;let j=new WeakMap,se=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${xe} '${Zp(this)}'${Xe?` (${ut(Xe)})`:""}`}},__debugFlags:{get(){return ut(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let xe=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${xe}${this.symbol?` '${Zp(this.symbol)}'`:""}${Xe?` (${jt(Xe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?jt(this.objectFlags):""}},__debugTypeToString:{value(){let xe=j.get(this);return xe===void 0&&(xe=this.checker.typeToString(this),j.set(this,xe)),xe}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Vt(this.flags)}},__debugSignatureToString:{value(){var xe;return(xe=this.checker)==null?void 0:xe.signatureToString(this)}}});let fe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let xe of fe)Mr(xe.prototype,"__debugKind")||Object.defineProperties(xe.prototype,{__tsDebuggerDisplay:{value(){return`${za(this)?"GeneratedIdentifier":et(this)?`Identifier '${Nn(this)}'`:wi(this)?`PrivateIdentifier '${Nn(this)}'`:Qa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ai(this)?`NumericLiteral ${this.text}`:Bf(this)?`BigIntLiteral ${this.text}n`:qf(this)?"TypeParameterDeclaration":As(this)?"ParameterDeclaration":zf(this)?"ConstructorDeclaration":ml(this)?"GetAccessorDeclaration":Ds(this)?"SetAccessorDeclaration":H1(this)?"CallSignatureDeclaration":X1(this)?"ConstructSignatureDeclaration":Ff(this)?"IndexSignatureDeclaration":$1(this)?"TypePredicateNode":El(this)?"TypeReferenceNode":Vf(this)?"FunctionTypeNode":Wf(this)?"ConstructorTypeNode":s6(this)?"TypeQueryNode":Q1(this)?"TypeLiteralNode":o6(this)?"ArrayTypeNode":c6(this)?"TupleTypeNode":l6(this)?"OptionalTypeNode":u6(this)?"RestTypeNode":Z1(this)?"UnionTypeNode":eh(this)?"IntersectionTypeNode":p6(this)?"ConditionalTypeNode":f6(this)?"InferTypeNode":th(this)?"ParenthesizedTypeNode":d6(this)?"ThisTypeNode":nh(this)?"TypeOperatorNode":m6(this)?"IndexedAccessTypeNode":rh(this)?"MappedTypeNode":h6(this)?"LiteralTypeNode":K1(this)?"NamedTupleMember":y6(this)?"ImportTypeNode":Mt(this.kind)}${this.flags?` (${Jt(this.flags)})`:""}`}},__debugKind:{get(){return Mt(this.kind)}},__debugNodeFlags:{get(){return Jt(this.flags)}},__debugModifierFlags:{get(){return Qe(mb(this))}},__debugTransformFlags:{get(){return Wn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return pl(this)}},__debugEmitFlags:{get(){return nn(Wa(this))}},__debugGetText:{value(Xe){if(Ua(this))return"";let Ke=se.get(this);if(Ke===void 0){let ot=Jg(this),Pt=ot&&Ya(ot);Ke=Pt?nm(Pt,ot,Xe):"",se.set(this,Ke)}return Ke}}});dn=!0}e.enableDebugInfo=Gn;function Yn(j){let se=j&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return j&8?fe+=" (unmeasurable)":j&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Yn;class Ur{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Bd(this.sources,this.targets||Gp(this.sources,()=>"any"),(fe,xe)=>`${fe.__debugTypeToString()} -> ${typeof xe=="string"?xe:xe.__debugTypeToString()}`).join(", ");case 2:return Bd(this.sources,this.targets,(fe,xe)=>`${fe.__debugTypeToString()} -> ${xe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +var vd=Object.defineProperty;var Td=e=>{throw TypeError(e)};var Q0=(e,t,a)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var xd=(e,t)=>{for(var a in t)vd(e,a,{get:t[a],enumerable:!0})};var Na=(e,t,a)=>Q0(e,typeof t!="symbol"?t+"":t,a),K0=(e,t,a)=>t.has(e)||Td("Cannot "+a);var yp=(e,t,a)=>t.has(e)?Td("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(K0(e,t,"access private method"),a);var dd={};xd(dd,{parsers:()=>fd});var fd={};xd(fd,{typescript:()=>L4});var Z0=()=>()=>{},Ia=Z0;var ey=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Sr=ey;var wm="5.7";var bt=[],ty=new Map;function ts(e){return e!==void 0?e.length:0}function Un(e,t){if(e!==void 0)for(let a=0;a0;return!1}function Yp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function _y(e,t,a=Xp){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;oe==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Np(e,t),t>1),l=a(e[P],P);switch(o(l,t)){case-1:v=P+1;break;case 0:return P;case 1:A=P-1;break}}return~v}function dy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let A=o===void 0||o<0?0:o,P=m===void 0||A+m>v-1?v-1:A+m,l;for(arguments.length<=2?(l=e[A],A++):l=a;A<=P;)l=t(l,e[A],A),A++;return l}}return a}var Cm=Object.prototype.hasOwnProperty;function Cr(e,t){return Cm.call(e,t)}function my(e){let t=[];for(let a in e)Cm.call(e,a)&&t.push(a);return t}function hy(){let e=new Map;return e.add=yy,e.remove=gy,e}function yy(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function gy(e,t){let a=this.get(e);a!==void 0&&(Ay(a,t),a.length||this.delete(e))}function Yr(e){return Array.isArray(e)}function bp(e){return Yr(e)?e:[e]}function by(e,t){return e!==void 0&&t(e)?e:void 0}function kr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Fa(e){}function vy(){return!0}function gt(e){return e}function wd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function Xp(e,t){return e===t}function $p(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ty(e,t){return Xp(e,t)}function xy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:ea?P-a:1),h=Math.floor(t.length>a+P?a+P:t.length);m[0]=P;let y=P;for(let x=1;xa)return;let g=o;o=m,m=g}let A=o[t.length];return A>a?void 0:A}function ky(e,t,a){let o=e.length-t.length;return o>=0&&(a?$p(e.slice(o),t):e.indexOf(t,o)===o)}function Ey(e,t){e[t]=e[e.length-1],e.pop()}function Ay(e,t){return Cy(e,a=>a===t)}function Cy(e,t){for(let a=0;a{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function a(L){return e.currentLogLevel<=L}e.shouldLog=a;function o(L,se){e.loggingHost&&a(L)&&e.loggingHost.log(L,se)}function m(L){o(3,L)}e.log=m,(L=>{function se(Ke){o(1,Ke)}L.error=se;function fe(Ke){o(2,Ke)}L.warn=fe;function Te(Ke){o(3,Ke)}L.log=Te;function Xe(Ke){o(4,Ke)}L.trace=Xe})(m=e.log||(e.log={}));let v={};function A(){return t}e.getAssertionLevel=A;function P(L){let se=t;if(t=L,L>se)for(let fe of my(v)){let Te=v[fe];Te!==void 0&&e[fe]!==Te.assertion&&L>=Te.level&&(e[fe]=Te,v[fe]=void 0)}}e.setAssertionLevel=P;function l(L){return t>=L}e.shouldAssert=l;function Q(L,se){return l(L)?!0:(v[se]={level:L,assertion:e[se]},e[se]=Fa,!1)}function h(L,se){debugger;let fe=new Error(L?`Debug Failure. ${L}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(fe,se||h),fe}e.fail=h;function y(L,se,fe){return h(`${se||"Unexpected node."}\r +Node ${Ot(L.kind)} was unexpected.`,fe||y)}e.failBadSyntaxKind=y;function g(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r +Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),h(se,Te||g))}e.assert=g;function x(L,se,fe,Te,Xe){if(L!==se){let Ke=fe?Te?`${fe} ${Te}`:fe:"";h(`Expected ${L} === ${se}. ${Ke}`,Xe||x)}}e.assertEqual=x;function I(L,se,fe,Te){L>=se&&h(`Expected ${L} < ${se}. ${fe||""}`,Te||I)}e.assertLessThan=I;function re(L,se,fe){L>se&&h(`Expected ${L} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function he(L,se,fe){L= ${se}`,fe||he)}e.assertGreaterThanOrEqual=he;function ye(L,se,fe){L==null&&h(se,fe||ye)}e.assertIsDefined=ye;function de(L,se,fe){return ye(L,se,fe||de),L}e.checkDefined=de;function M(L,se,fe){for(let Te of L)ye(Te,se,fe||M)}e.assertEachIsDefined=M;function ae(L,se,fe){return M(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Cr(L,"kind")&&Cr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return h(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){Q(1,"assertEachNode")&&g(se===void 0||Gp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${bn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){Q(1,"assertNode")&&g(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||oe)}e.assertNode=oe;function W(L,se,fe,Te){Q(1,"assertNotNode")&&g(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${bn(se)}'.`,Te||W)}e.assertNotNode=W;function dt(L,se,fe,Te){Q(1,"assertOptionalNode")&&g(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||dt)}e.assertOptionalNode=dt;function nr(L,se,fe,Te){Q(1,"assertOptionalToken")&&g(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function gn(L,se,fe){Q(1,"assertMissingNode")&&g(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||gn)}e.assertMissingNode=gn;function rr(L){}e.type=rr;function bn(L){if(typeof L!="function")return"";if(Cr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=bn;function In(L){return`{ name: ${cs(L.escapedName)}; flags: ${ct(L.flags)}; declarations: ${Pp(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=In;function Ge(L=0,se,fe){let Te=Pr(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let Xe=[],Ke=L;for(let[st,Dt]of Te){if(st>L)break;st!==0&&st&L&&(Xe.push(Dt),Ke&=~st)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of Te)if(Xe===L)return Ke;return L.toString()}e.formatEnum=Ge;let ir=new Map;function Pr(L){let se=ir.get(L);if(se)return se;let fe=[];for(let Xe in L){let Ke=L[Xe];typeof Ke=="number"&&fe.push([Ke,Xe])}let Te=cy(fe,(Xe,Ke)=>Dm(Xe[0],Ke[0]));return ir.set(L,Te),Te}function Ot(L){return Ge(L,Ne,!1)}e.formatSyntaxKind=Ot;function Bn(L){return Ge(L,Mm,!1)}e.formatSnippetKind=Bn;function On(L){return Ge(L,Dr,!1)}e.formatScriptKind=On;function Mt(L){return Ge(L,on,!0)}e.formatNodeFlags=Mt;function vt(L){return Ge(L,Nm,!0)}e.formatNodeCheckFlags=vt;function Qe(L){return Ge(L,Qp,!0)}e.formatModifierFlags=Qe;function qn(L){return Ge(L,Om,!0)}e.formatTransformFlags=qn;function $t(L){return Ge(L,Jm,!0)}e.formatEmitFlags=$t;function ct(L){return Ge(L,Kp,!0)}e.formatSymbolFlags=ct;function _t(L){return Ge(L,nn,!0)}e.formatTypeFlags=_t;function Ut(L){return Ge(L,Im,!0)}e.formatSignatureFlags=Ut;function Jt(L){return Ge(L,Zp,!0)}e.formatObjectFlags=Jt;function lt(L){return Ge(L,Op,!0)}e.formatFlowFlags=lt;function ar(L){return Ge(L,Pm,!0)}e.formatRelationComparisonResult=ar;function mt(L){return Ge(L,CheckMode,!0)}e.formatCheckMode=mt;function vn(L){return Ge(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=vn;function yt(L){return Ge(L,TypeFacts,!0)}e.formatTypeFacts=yt;let cn=!1,nt;function Bt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${lt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Op,!0)}},__debugToString:{value(){return mr(this)}}})}function rn(L){return cn&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(L,nt)):Bt(L)),L}e.attachFlowNodeDebugInfo=rn;let _r;function fr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function dr(L){cn&&(typeof Object.setPrototypeOf=="function"?(_r||(_r=Object.create(Array.prototype),fr(_r)),Object.setPrototypeOf(L,_r)):fr(L))}e.attachNodeArrayDebugInfo=dr;function zn(){if(cn)return;let L=new WeakMap,se=new WeakMap;Object.defineProperties(At.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return`${Te} '${Lp(this)}'${Xe?` (${ct(Xe)})`:""}`}},__debugFlags:{get(){return ct(this.flags)}}}),Object.defineProperties(At.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Te=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return`${Te}${this.symbol?` '${Lp(this.symbol)}'`:""}${Xe?` (${Jt(Xe)})`:""}`}},__debugFlags:{get(){return _t(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let Te=L.get(this);return Te===void 0&&(Te=this.checker.typeToString(this),L.set(this,Te)),Te}}}),Object.defineProperties(At.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ut(this.flags)}},__debugSignatureToString:{value(){var Te;return(Te=this.checker)==null?void 0:Te.signatureToString(this)}}});let fe=[At.getNodeConstructor(),At.getIdentifierConstructor(),At.getTokenConstructor(),At.getSourceFileConstructor()];for(let Te of fe)Cr(Te.prototype,"__debugKind")||Object.defineProperties(Te.prototype,{__tsDebuggerDisplay:{value(){return`${Ua(this)?"GeneratedIdentifier":tt(this)?`Identifier '${Pn(this)}'`:gi(this)?`PrivateIdentifier '${Pn(this)}'`:Ya(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ea(this)?`NumericLiteral ${this.text}`:D1(this)?`BigIntLiteral ${this.text}n`:Ef(this)?"TypeParameterDeclaration":ds(this)?"ParameterDeclaration":Af(this)?"ConstructorDeclaration":gl(this)?"GetAccessorDeclaration":hs(this)?"SetAccessorDeclaration":M1(this)?"CallSignatureDeclaration":J1(this)?"ConstructSignatureDeclaration":Cf(this)?"IndexSignatureDeclaration":L1(this)?"TypePredicateNode":Df(this)?"TypeReferenceNode":Pf(this)?"FunctionTypeNode":Nf(this)?"ConstructorTypeNode":Bb(this)?"TypeQueryNode":j1(this)?"TypeLiteralNode":qb(this)?"ArrayTypeNode":zb(this)?"TupleTypeNode":Fb(this)?"OptionalTypeNode":Vb(this)?"RestTypeNode":U1(this)?"UnionTypeNode":B1(this)?"IntersectionTypeNode":Wb(this)?"ConditionalTypeNode":Gb(this)?"InferTypeNode":q1(this)?"ParenthesizedTypeNode":Yb(this)?"ThisTypeNode":z1(this)?"TypeOperatorNode":Hb(this)?"IndexedAccessTypeNode":F1(this)?"MappedTypeNode":Xb(this)?"LiteralTypeNode":R1(this)?"NamedTupleMember":$b(this)?"ImportTypeNode":Ot(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return Ot(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return Qe(Y2(this))}},__debugTransformFlags:{get(){return qn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ml(this)}},__debugEmitFlags:{get(){return $t(za(this))}},__debugGetText:{value(Xe){if(La(this))return"";let Ke=se.get(this);if(Ke===void 0){let st=dg(this),Dt=st&&hi(st);Ke=Dt?Ud(Dt,st,Xe):"",se.set(this,Ke)}return Ke}}});cn=!0}e.enableDebugInfo=zn;function Fn(L){let se=L&7,fe=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return L&8?fe+=" (unmeasurable)":L&16&&(fe+=" (unreliable)"),fe}e.formatVariance=Fn;class Nr{__debugToString(){var se;switch(this.kind){case 3:return((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Sd(this.sources,this.targets||Pp(this.sources,()=>"any"),(fe,Te)=>`${fe.__debugTypeToString()} -> ${typeof Te=="string"?Te:Te.__debugTypeToString()}`).join(", ");case 2:return Sd(this.sources,this.targets,(fe,Te)=>`${fe.__debugTypeToString()} -> ${Te().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return ve(this)}}}e.DebugTypeMapper=Ur;function Hn(j){return e.isDebugging?Object.setPrototypeOf(j,Ur.prototype):j}e.attachDebugPrototypeIfDebug=Hn;function Ne(j){return console.log(Tr(j))}e.printControlFlowGraph=Ne;function Tr(j){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let xe;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(xe||(xe={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,ot=882,Pt=Object.create(null),Tt=[],ft=[],Br=Se(j,new Set);for(let u of Tt)u.text=at(u.flowNode,u.circular),ye(u);let Sr=Ye(Br),Jn=$e(Sr);return Ze(Br,0),mn();function Xn(u){return!!(u.flags&128)}function Pi(u){return!!(u.flags&12)&&!!u.antecedent}function z(u){return!!(u.flags&Ke)}function V(u){return!!(u.flags&ot)}function Q(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function Te(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=fe(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Pi(u))for(let qe of u.antecedent)Ce(U,qe,Oe);else z(u)&&Ce(U,u.antecedent,Oe);return Oe.delete(u),U}function Ce(u,Oe,Me){let U=Se(Oe,Me),qe={source:u,target:U};ft.push(qe),u.edges.push(qe),U.edges.push(qe)}function ye(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of Te(u))Oe=Math.max(Oe,ye(Me)+1);return u.level=Oe}function Ye(u){let Oe=0;for(let Me of Q(u))Oe=Math.max(Oe,Ye(Me));return Oe+1}function $e(u){let Oe=M(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ze(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=Q(u);for(let U=0;U0&&Oe++;let qe=Me[U];Ze(qe,Oe),qe.endLane>u.endLane&&(Oe=qe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function wn(u){let Oe=Ya(u);return nm(Oe,u,!1)}function at(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${fe(u)}`),Xn(u)){let U=[],{switchStatement:qe,clauseStart:cn,clauseEnd:Fe}=u.node;for(let He=cn;HeMath.max(Fe,He.lane),0)+1,Me=M(Array(Oe),""),U=Jn.map(()=>Array(Oe)),qe=Jn.map(()=>M(Array(Oe),0));for(let Fe of Tt){U[Fe.level][Fe.lane]=Fe;let He=Q(Fe);for(let Et=0;Et0&&(Gt|=1),Et0&&(Gt|=1),Et0?qe[Fe-1][He]:0,Et=He>0?qe[Fe][He-1]:0,It=qe[Fe][He];It||(Nt&8&&(It|=12),Et&2&&(It|=3),qe[Fe][He]=It)}for(let Fe=0;Fe{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,st=882,Dt=Object.create(null),Tt=[],ut=[],Ir=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let hr=We(Ir),Mn=Ze(hr);return Ye(Ir,0),ln();function Wn(u){return!!(u.flags&128)}function Si(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function $(u){return!!(u.flags&st)}function K(u){let Ie=[];for(let Me of u.edges)Me.source===u&&Ie.push(Me.target);return Ie}function xe(u){let Ie=[];for(let Me of u.edges)Me.target===u&&Ie.push(Me.source);return Ie}function Se(u,Ie){let Me=fe(u),U=Dt[Me];if(U&&Ie.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Ie.add(u),!U)if(Dt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Si(u))for(let ze of u.antecedent)we(U,ze,Ie);else R(u)&&we(U,u.antecedent,Ie);return Ie.delete(u),U}function we(u,Ie,Me){let U=Se(Ie,Me),ze={source:u,target:U};ut.push(ze),u.edges.push(ze),U.edges.push(ze)}function be(u){if(u.level!==-1)return u.level;let Ie=0;for(let Me of xe(u))Ie=Math.max(Ie,be(Me)+1);return u.level=Ie}function We(u){let Ie=0;for(let Me of K(u))Ie=Math.max(Ie,We(Me));return Ie+1}function Ze(u){let Ie=J(Array(u),0);for(let Me of Tt)Ie[Me.level]=Math.max(Ie[Me.level],Me.text.length);return Ie}function Ye(u,Ie){if(u.lane===-1){u.lane=Ie,u.endLane=Ie;let Me=K(u);for(let U=0;U0&&Ie++;let ze=Me[U];Ye(ze,Ie),ze.endLane>u.endLane&&(Ie=ze.endLane)}u.endLane=Ie}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Tn(u){let Ie=hi(u);return Ud(Ie,u,!1)}function rt(u,Ie){let Me=Ee(u.flags);if(Ie&&(Me=`${Me}#${fe(u)}`),Wn(u)){let U=[],{switchStatement:ze,clauseStart:an,clauseEnd:Ve}=u.node;for(let $e=an;$eVe.lane)+1,Me=J(Array(Ie),""),U=Mn.map(()=>Array(Ie)),ze=Mn.map(()=>J(Array(Ie),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let Nt=$e[kt],qt=8;Nt.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),ze[Ve.level][Nt.lane]|=qt}$e.length===0&&(ze[Ve.level][Ve.lane]|=16);let Pt=xe(Ve);for(let kt=0;kt0&&(qt|=1),kt0?ze[Ve-1][$e]:0,kt=$e>0?ze[Ve][$e-1]:0,Nt=ze[Ve][$e];Nt||(Pt&8&&(Nt|=12),kt&2&&(Nt|=3),ze[Ve][$e]=Nt)}for(let Ve=0;Ve0?u.repeat(Oe):"";let Me="";for(;Me.length{},{get:()=>Xp}),zd=()=>{},$y=()=>{},rl,ce=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(ce||{}),Xt=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Xt||{}),mf=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(mf||{});var Gm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Gm||{});var $p=(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.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))($p||{});var hf=(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=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="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.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(hf||{});var Ym=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.LazyFlags=539358128]="LazyFlags",e))(Ym||{}),zt=(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.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",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.StringLike=402653316]="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.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(zt||{}),gl=(e=>(e[e.None=0]="None",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.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(gl||{});var Hm=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Hm||{});var Jr=(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))(Jr||{}),Ps=(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.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Ps||{}),bl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bl||{});var gr=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(gr||{}),Xm=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Xm||{}),$m=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))($m||{}),Qm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Qm||{});var Km={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},{name:"resolution-mode",optional:!0},{name:"preserve",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},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$a=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($a||{});var ra="/",Qy="\\",Fd="://",Ky=/\\/g;function Zy(e){return e===47||e===92}function eg(e,t){return e.length>t.length&&Gy(e,t)}function yf(e){return e.length>0&&Zy(e.charCodeAt(e.length-1))}function Vd(e){return e>=97&&e<=122||e>=65&&e<=90}function tg(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function ng(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?ra:Qy,2);return o<0?e.length:o+1}if(Vd(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(Fd);if(a!==-1){let o=a+Fd.length,h=e.indexOf(ra,o);if(h!==-1){let g=e.slice(0,a),E=e.slice(o,h);if(g==="file"&&(E===""||E==="localhost")&&Vd(e.charCodeAt(h+1))){let C=tg(e,h+2);if(C!==-1){if(e.charCodeAt(C)===47)return~(C+1);if(C===e.length)return~C}}return~(h+1)}return~e.length}return 0}function cl(e){let t=ng(e);return t<0?~t:t}function Zm(e,t,a){if(e=ll(e),cl(e)===e.length)return"";e=t1(e);let h=e.slice(Math.max(cl(e),e.lastIndexOf(ra)+1)),g=t!==void 0&&a!==void 0?e1(h,t,a):void 0;return g?h.slice(0,h.length-g.length):h}function Wd(e,t,a){if(ol(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function rg(e,t,a){if(typeof t=="string")return Wd(e,t,a)||"";for(let o of t){let h=Wd(e,o,a);if(h)return h}return""}function e1(e,t,a){if(t)return rg(t1(e),t,a?ff:Fy);let o=Zm(e),h=o.lastIndexOf(".");return h>=0?o.substring(h):""}function ig(e,t){let a=e.substring(0,t),o=e.substring(t).split(ra);return o.length&&!Ki(o)&&o.pop(),[a,...o]}function ag(e,t=""){return e=og(t,e),ig(e,cl(e))}function _g(e,t){return e.length===0?"":(e[0]&&gf(e[0]))+e.slice(1,t).join(ra)}function ll(e){return e.includes("\\")?e.replace(Ky,ra):e}function sg(e){if(!qt(e))return[];let t=[e[0]];for(let a=1;a1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(o)}}return t}function og(e,...t){e&&(e=ll(e));for(let a of t)a&&(a=ll(a),!e||cl(a)!==0?e=a:e=gf(e)+a);return e}function cg(e){if(e=ll(e),!Gd.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Gd.test(e)))return e;let a=_g(sg(ag(e)));return a&&yf(e)?gf(a):a}function t1(e){return yf(e)?e.substr(0,e.length-1):e}function gf(e){return yf(e)?e:e+ra}var Gd=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,h,g,E){return{code:e,category:t,key:a,message:o,reportsUnnecessary:h,elidedInCompatabilityPyramid:g,reportsDeprecated:E}}var A={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"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:r(1068,1,"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:r(1069,1,"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:r(1070,1,"_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:r(1071,1,"_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:r(1079,1,"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:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_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:r(1091,1,"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:r(1092,1,"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:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"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:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"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:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"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:r(1105,1,"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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"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:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"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:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"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:r(1116,1,"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:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"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:r(1119,1,"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:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"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:r(1148,1,"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:r(1149,1,"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."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"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:r(1163,1,"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:r(1164,1,"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:r(1165,1,"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_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple 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:r(1168,1,"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:r(1169,1,"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:r(1170,1,"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:r(1171,1,"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:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"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:r(1187,1,"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:r(1188,1,"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:r(1189,1,"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:r(1190,1,"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:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"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:r(1198,1,"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:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"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:r(1202,1,"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:r(1203,1,"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."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"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:r(1212,1,"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:r(1213,1,"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:r(1214,1,"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:r(1215,1,"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:r(1216,1,"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:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"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:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"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:r(1227,1,"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:r(1228,1,"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:r(1229,1,"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:r(1230,1,"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_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"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_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"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:r(1237,1,"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:r(1238,1,"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:r(1239,1,"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:r(1240,1,"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:r(1241,1,"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:r(1242,1,"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:r(1243,1,"_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:r(1244,1,"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:r(1245,1,"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:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"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:r(1248,1,"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:r(1249,1,"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_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"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:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"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:r(1314,1,"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:r(1315,1,"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:r(1316,1,"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:r(1317,1,"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:r(1318,1,"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:r(1319,1,"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:r(1320,1,"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:r(1321,1,"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:r(1322,1,"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_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"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:r(1328,1,"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:r(1329,1,"_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:r(1330,1,"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:r(1331,1,"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:r(1332,1,"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:r(1333,1,"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:r(1334,1,"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:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"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:r(1339,1,"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:r(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"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:r(1346,1,"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:r(1347,1,"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:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"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:r(1351,1,"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:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"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:r(1354,1,"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_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"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:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"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:r(2309,1,"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:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"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:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"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:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"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:r(2320,1,"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:r(2321,1,"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:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"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:r(2325,1,"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:r(2326,1,"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:r(2327,1,"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:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"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:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"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:r(2335,1,"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:r(2336,1,"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:r(2337,1,"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:r(2338,1,"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:r(2339,1,"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:r(2340,1,"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:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"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:r(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"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:r(2348,1,"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'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),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:r(2352,1,"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:r(2353,1,"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:r(2354,1,"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_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"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:r(2357,1,"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:r(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"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:r(2363,1,"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:r(2364,1,"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:r(2365,1,"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:r(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"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:r(2370,1,"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:r(2371,1,"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_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"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:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"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:r(2384,1,"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:r(2385,1,"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:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"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:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"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:r(2395,1,"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:r(2396,1,"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:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"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:r(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"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:r(2403,1,"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:r(2404,1,"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:r(2405,1,"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:r(2406,1,"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:r(2407,1,"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:r(2408,1,"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:r(2409,1,"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:r(2410,1,"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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"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:r(2416,1,"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:r(2417,1,"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:r(2418,1,"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}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"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:r(2422,1,"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:r(2423,1,"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_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"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:r(2426,1,"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:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"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:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"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:r(2432,1,"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:r(2433,1,"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:r(2434,1,"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:r(2435,1,"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:r(2436,1,"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:r(2437,1,"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:r(2438,1,"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:r(2439,1,"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:r(2440,1,"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:r(2441,1,"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:r(2442,1,"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:r(2443,1,"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:r(2444,1,"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:r(2445,1,"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_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"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:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"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:r(2462,1,"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:r(2463,1,"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:r(2464,1,"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:r(2465,1,"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:r(2466,1,"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:r(2467,1,"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:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"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:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"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:r(2476,1,"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:r(2477,1,"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:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"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:r(2481,1,"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:r(2483,1,"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:r(2484,1,"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:r(2487,1,"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:r(2488,1,"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:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"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:r(2492,1,"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:r(2493,1,"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:r(2494,1,"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:r(2495,1,"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_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:r(2497,1,"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:r(2498,1,"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:r(2499,1,"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:r(2500,1,"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:r(2501,1,"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:r(2502,1,"_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:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"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:r(2505,1,"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:r(2506,1,"_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:r(2507,1,"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:r(2508,1,"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:r(2509,1,"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:r(2510,1,"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:r(2511,1,"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:r(2512,1,"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:r(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"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:r(2516,1,"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:r(2517,1,"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:r(2518,1,"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:r(2519,1,"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:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"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:r(2524,1,"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:r(2525,1,"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:r(2526,1,"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:r(2527,1,"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:r(2528,1,"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:r(2529,1,"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:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"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:r(2537,1,"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:r(2538,1,"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:r(2539,1,"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:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"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:r(2543,1,"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:r(2544,1,"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:r(2545,1,"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[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' 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:r(2548,1,"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:r(2549,1,"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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"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:r(2552,1,"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:r(2553,1,"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:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"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:r(2559,1,"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:r(2560,1,"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:r(2561,1,"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:r(2562,1,"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:r(2563,1,"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:r(2564,1,"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:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"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:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"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:r(2575,1,"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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"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 '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"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:r(2585,1,"_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."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"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:r(2589,1,"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:r(2590,1,"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_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @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_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @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_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"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:r(2603,1,"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:r(2604,1,"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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"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:r(2607,1,"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:r(2608,1,"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:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"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:r(2652,1,"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:r(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"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:r(2659,1,"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:r(2660,1,"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:r(2661,1,"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:r(2662,1,"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:r(2663,1,"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:r(2664,1,"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:r(2665,1,"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:r(2666,1,"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:r(2667,1,"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:r(2668,1,"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:r(2669,1,"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:r(2670,1,"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:r(2671,1,"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:r(2672,1,"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:r(2673,1,"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:r(2674,1,"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:r(2675,1,"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:r(2676,1,"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:r(2677,1,"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:r(2678,1,"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:r(2679,1,"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:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"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:r(2684,1,"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:r(2685,1,"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:r(2686,1,"_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:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_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:r(2693,1,"_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:r(2694,1,"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:r(2695,1,"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:r(2696,1,"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:r(2697,1,"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:r(2698,1,"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:r(2699,1,"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:r(2700,1,"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:r(2701,1,"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:r(2702,1,"_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:r(2703,1,"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:r(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:r(2706,1,"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:r(2707,1,"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:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"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:r(2710,1,"_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:r(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:r(2713,1,"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:r(2714,1,"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:r(2715,1,"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:r(2716,1,"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:r(2717,1,"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:r(2718,1,"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:r(2719,1,"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:r(2720,1,"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:r(2721,1,"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:r(2722,1,"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:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"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:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"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:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"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:r(2731,1,"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:r(2732,1,"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:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"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:r(2736,1,"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_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"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:r(2739,1,"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:r(2740,1,"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:r(2741,1,"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:r(2742,1,"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:r(2743,1,"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:r(2744,1,"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:r(2745,1,"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:r(2746,1,"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:r(2747,1,"_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_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"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:r(4002,1,"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:r(4004,1,"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:r(4006,1,"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:r(4008,1,"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:r(4010,1,"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:r(4012,1,"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:r(4014,1,"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:r(4016,1,"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:r(4019,1,"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:r(4020,1,"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_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"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:r(4023,1,"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:r(4024,1,"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:r(4025,1,"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:r(4026,1,"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:r(4027,1,"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:r(4028,1,"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:r(4029,1,"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:r(4030,1,"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:r(4031,1,"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:r(4032,1,"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:r(4033,1,"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:r(4034,1,"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:r(4035,1,"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:r(4036,1,"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:r(4037,1,"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:r(4038,1,"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:r(4039,1,"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:r(4040,1,"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:r(4041,1,"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:r(4042,1,"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:r(4043,1,"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:r(4044,1,"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:r(4045,1,"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:r(4046,1,"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:r(4047,1,"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:r(4048,1,"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:r(4049,1,"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:r(4050,1,"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:r(4051,1,"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:r(4052,1,"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:r(4053,1,"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:r(4054,1,"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:r(4055,1,"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:r(4056,1,"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:r(4057,1,"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:r(4058,1,"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:r(4059,1,"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:r(4060,1,"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:r(4061,1,"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:r(4062,1,"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:r(4063,1,"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:r(4064,1,"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:r(4065,1,"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:r(4066,1,"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:r(4067,1,"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:r(4068,1,"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:r(4069,1,"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:r(4070,1,"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:r(4071,1,"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:r(4072,1,"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:r(4073,1,"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:r(4074,1,"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:r(4075,1,"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:r(4076,1,"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:r(4077,1,"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:r(4078,1,"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:r(4081,1,"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:r(4082,1,"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:r(4083,1,"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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"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:r(4092,1,"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:r(4094,1,"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:r(4095,1,"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:r(4096,1,"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:r(4097,1,"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:r(4098,1,"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:r(4099,1,"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:r(4100,1,"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:r(4101,1,"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:r(4102,1,"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:r(4103,1,"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_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:r(5001,1,"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:r(5009,1,"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:r(5010,1,"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:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:r(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"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:r(5042,1,"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:r(5047,1,"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:r(5051,1,"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:r(5052,1,"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:r(5053,1,"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:r(5054,1,"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:r(5055,1,"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:r(5056,1,"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:r(5057,1,"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:r(5058,1,"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:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"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:r(5064,1,"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:r(5065,1,"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:r(5066,1,"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:r(5067,1,"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:r(5068,1,"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:r(5069,1,"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_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"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:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"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:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"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:r(6008,3,"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:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"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:r(6011,3,"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:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"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:r(6020,3,"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:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"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:r(6048,1,"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}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"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:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"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:r(6056,3,"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:r(6058,3,"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:r(6059,1,"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:r(6060,3,"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:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"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:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"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:r(6074,3,"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:r(6075,3,"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:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"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:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"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:r(6083,3,"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:r(6084,3,"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:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"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:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"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:r(6091,3,"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:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"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:r(6094,3,"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_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"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:r(6101,3,"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:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"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:r(6105,3,"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:r(6106,3,"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:r(6107,3,"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:r(6108,3,"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:r(6109,3,"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:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"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:r(6115,3,"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:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"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:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"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:r(6123,3,"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:r(6124,3,"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:r(6125,3,"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:r(6126,3,"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:r(6127,3,"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:r(6128,3,"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:r(6130,3,"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:r(6131,1,"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:r(6132,3,"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:r(6133,1,"_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:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"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:r(6137,1,"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:r(6138,1,"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:r(6139,3,"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:r(6140,1,"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:r(6141,3,"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:r(6142,1,"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:r(6144,3,"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:r(6145,3,"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:r(6146,3,"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:r(6147,3,"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:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"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:r(6152,3,"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:r(6153,3,"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:r(6154,3,"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:r(6155,3,"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:r(6156,3,"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:r(6157,3,"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:r(6158,3,"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:r(6159,3,"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:r(6160,3,"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:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"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:r(6167,3,"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:r(6168,3,"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:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"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:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"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:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"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:r(6195,3,"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:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"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:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"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:r(6207,3,"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:r(6208,3,"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:r(6209,3,"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:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"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:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"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:r(6214,3,"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:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"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:r(6305,1,"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:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"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:r(6353,3,"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:r(6354,3,"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:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"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:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"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:r(6363,3,"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:r(6364,3,"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:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"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:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"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:r(6381,3,"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}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"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:r(6501,3,"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:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"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:r(7009,1,"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:r(7010,1,"_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:r(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"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:r(7014,1,"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:r(7015,1,"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:r(7016,1,"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:r(7017,1,"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:r(7018,1,"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:r(7019,1,"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:r(7020,1,"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:r(7022,1,"_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:r(7023,1,"_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:r(7024,1,"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_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"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:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"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:r(7032,1,"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:r(7033,1,"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:r(7034,1,"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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @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:r(7036,1,"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:r(7037,3,"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:r(7038,3,"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:r(7039,1,"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:r(7040,1,"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:r(7041,1,"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:r(7042,1,"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:r(7043,2,"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:r(7044,2,"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:r(7045,2,"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:r(7046,2,"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:r(7047,2,"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:r(7048,2,"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:r(7049,2,"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:r(7050,2,"_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:r(7051,1,"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}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"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_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"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:r(8021,1,"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:r(8022,1,"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:r(8023,1,"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:r(8024,1,"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:r(8025,1,"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:r(8026,1,"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:r(8027,1,"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:r(8028,1,"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:r(8029,1,"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:r(8030,1,"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:r(8031,1,"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:r(8032,1,"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}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"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:r(17001,1,"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:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"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:r(17005,1,"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:r(17006,1,"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:r(17007,1,"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:r(17008,1,"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:r(17009,1,"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:r(17010,1,"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:r(17011,1,"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:r(17012,1,"_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:r(17013,1,"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:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"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:r(18003,1,"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_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"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:r(80003,2,"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:r(80004,2,"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:r(80005,2,"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:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"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:r(95031,3,"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:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"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:r(95037,3,"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:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"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:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")};function bt(e){return e>=80}function lg(e){return e===32||bt(e)}var bf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},ug=new Map(Object.entries(bf)),n1=new Map(Object.entries({...bf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),r1=new Map(Object.entries({d:1,g:2,i:4,m:8,s:16,u:32,v:64,y:128})),pg=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),fg=[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],dg=[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],mg=[65,90,97,122,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,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,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,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,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,2809,2809,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,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,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,43824,43866,43868,43881,43888,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],hg=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,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,2556,2556,2558,2558,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,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,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,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,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,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],yg=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,gg=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,bg=/@(?:see|link)/i;function ul(e,t){if(e=2?ul(e,mg):ul(e,fg)}function xg(e,t){return t>=2?ul(e,hg):ul(e,dg)}function i1(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var Tg=i1(n1);function _t(e){return Tg[e]}function a1(e){return n1.get(e)}var N3=i1(r1);function Yd(e){return r1.get(e)}function _1(e){let t=[],a=0,o=0;for(;a127&&Dn(h)&&(t.push(o),o=a);break}}return t.push(o),t}function Sg(e,t,a,o,h){(t<0||t>=e.length)&&(h?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?Sy(e,_1(o)):"unknown"}`));let g=e[t]+a;return h?g>e[t+1]?e[t+1]:typeof o=="string"&&g>o.length?o.length:g:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Dn(e){return e===10||e===13||e===8232||e===8233}function xi(e){return e>=48&&e<=57}function jp(e){return xi(e)||e>=65&&e<=70||e>=97&&e<=102}function vf(e){return e>=65&&e<=90||e>=97&&e<=122}function o1(e){return vf(e)||xi(e)||e===95}function Lp(e){return e>=48&&e<=55}function Qr(e,t,a,o,h){if(Es(t))return t;let g=!1;for(;;){let E=e.charCodeAt(t);switch(E){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;g=!!h;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Fa(E)){t++;continue}break}return t}}var il=7;function $i(e,t){if(B.assert(t>=0),t===0||Dn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+il=0&&a127&&Fa(J)){k&&Dn(J)&&(f=!0),a++;continue}break e}}return k&&(w=h(C,l,Z,f,g,w)),w}function u1(e,t,a,o){return vl(!1,e,t,!1,a,o)}function p1(e,t,a,o){return vl(!1,e,t,!0,a,o)}function Eg(e,t,a,o,h){return vl(!0,e,t,!1,a,o,h)}function Ag(e,t,a,o,h){return vl(!0,e,t,!0,a,o,h)}function f1(e,t,a,o,h,g=[]){return g.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),g}function Kp(e,t){return Eg(e,t,f1,void 0,void 0)}function Cg(e,t){return Ag(e,t,f1,void 0,void 0)}function Tf(e){let t=xf.exec(e);if(t)return t[0]}function nr(e,t){return vf(e)||e===36||e===95||e>127&&vg(e,t)}function Or(e,t,a){return o1(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&xg(e,t)}function Dg(e,t,a){let o=Qi(e,0);if(!nr(o,t))return!1;for(let h=sn(o);hf,getStartPos:()=>f,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>v,getTokenStart:()=>k,getTokenPos:()=>k,getTokenText:()=>C.substring(k,l),getTokenValue:()=>w,hasUnicodeEscape:()=>(J&1024)!==0,hasExtendedUnicodeEscape:()=>(J&8)!==0,hasPrecedingLineBreak:()=>(J&1)!==0,hasPrecedingJSDocComment:()=>(J&2)!==0,isIdentifier:()=>v===80||v>118,isReservedWord:()=>v>=83&&v<=118,isUnterminated:()=>(J&4)!==0,getCommentDirectives:()=>re,getNumericLiteralFlags:()=>J&25584,getTokenFlags:()=>J,reScanGreaterToken:pt,reScanAsteriskEqualsToken:sr,reScanSlashToken:yt,reScanTemplateToken:Wt,reScanTemplateHeadOrNoSubstitutionTemplate:on,scanJsxIdentifier:Ur,scanJsxAttributeValue:Hn,reScanJsxAttributeValue:Ne,reScanJsxToken:or,reScanLessThanToken:vr,reScanHashToken:xr,reScanQuestionToken:Gn,reScanInvalidIdentifier:Vt,scanJsxToken:Yn,scanJsDocToken:j,scanJSDocCommentTextToken:Tr,scan:ut,getText:Ke,clearCommentDirectives:ot,setText:Pt,setScriptTarget:ft,setLanguageVariant:Br,setScriptKind:Sr,setJSDocParsingMode:Jn,setOnError:Tt,resetTokenState:Xn,setTextPos:Xn,setSkipJsDocLeadingAsterisks:Pi,tryScan:Xe,lookAhead:xe,scanRange:fe};return B.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let z=O.getText();return z.slice(0,O.getTokenFullStart())+"\u2551"+z.slice(O.getTokenFullStart())}}),O;function ae(z){return Qi(C,z)}function ve(z){return z>=0&&z=0&&z=65&&ye<=70)ye+=32;else if(!(ye>=48&&ye<=57||ye>=97&&ye<=102))break;Te.push(ye),l++,Ce=!1}return Te.length=Z){Q+=C.substring(Te,l),J|=4,G(A.Unterminated_string_literal);break}let Se=X(l);if(Se===V){Q+=C.substring(Te,l),l++;break}if(Se===92&&!z){Q+=C.substring(Te,l),Q+=Mt(3),Te=l;continue}if((Se===10||Se===13)&&!z){Q+=C.substring(Te,l),J|=4,G(A.Unterminated_string_literal);break}l++}return Q}function Rr(z){let V=X(l)===96;l++;let Q=l,Te="",Se;for(;;){if(l>=Z){Te+=C.substring(Q,l),J|=4,G(A.Unterminated_template_literal),Se=V?15:18;break}let Ce=X(l);if(Ce===96){Te+=C.substring(Q,l),l++,Se=V?15:18;break}if(Ce===36&&l+1=Z)return G(A.Unexpected_end_of_text),"";let Q=X(l);switch(l++,Q){case 48:if(l>=Z||!xi(X(l)))return"\0";case 49:case 50:case 51:l=55296&&Te<=56319&&l+6=56320&&Ye<=57343)return l=ye,Se+String.fromCharCode(Ye)}return Se;case 120:for(;l1114111&&(z&&G(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Q,l-Q),Ce=!0),l>=Z?(z&&G(A.Unexpected_end_of_text),Ce=!0):X(l)===125?l++:(z&&G(A.Unterminated_Unicode_escape_sequence),Ce=!0),Ce?(J|=2048,C.substring(V,l)):(J|=8,Hd(Se))}function Mn(){if(l+5=0&&Or(Q,e)){z+=Vn(!0),V=l;continue}if(Q=Mn(),!(Q>=0&&Or(Q,e)))break;J|=1024,z+=C.substring(V,l),z+=Hd(Q),l+=6,V=l}else break}return z+=C.substring(V,l),z}function Qe(){let z=w.length;if(z>=2&&z<=12){let V=w.charCodeAt(0);if(V>=97&&V<=122){let Q=ug.get(w);if(Q!==void 0)return v=Q}}return v=80}function Wn(z){let V="",Q=!1,Te=!1;for(;;){let Se=X(l);if(Se===95){J|=512,Q?(Q=!1,Te=!0):G(Te?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(Q=!0,!xi(Se)||Se-48>=z)break;V+=C[l],l++,Te=!1}return X(l-1)===95&&G(A.Numeric_separators_are_not_allowed_here,l-1,1),V}function nn(){return X(l)===110?(w+="n",J&384&&(w=qb(w)+"n"),l++,10):(w=""+(J&128?parseInt(w.slice(2),2):J&256?parseInt(w.slice(2),8):+w),9)}function ut(){f=l,J=0;let z=!1;for(;;){if(k=l,l>=Z)return v=1;let V=ae(l);if(l===0&&V===35&&c1(C,l)){if(l=l1(C,l),t)continue;return v=6}switch(V){case 10:case 13:if(J|=1,t){l++;continue}else return V===13&&l+1=0&&nr(Q,e))return w=Vn(!0)+xt(),v=Qe();let Te=Mn();return Te>=0&&nr(Te,e)?(l+=6,J|=1024,w=String.fromCharCode(Te)+xt(),v=Qe()):(G(A.Invalid_character),l++,v=0);case 35:if(l!==0&&C[l+1]==="!")return G(A.can_only_be_used_at_the_start_of_a_file,l,2),l++,v=0;let Se=ae(l+1);if(Se===92){l++;let Ye=Jt();if(Ye>=0&&nr(Ye,e))return w="#"+Vn(!0)+xt(),v=81;let $e=Mn();if($e>=0&&nr($e,e))return l+=6,J|=1024,w="#"+String.fromCharCode($e)+xt(),v=81;l--}return nr(Se,e)?(l++,jt(Se,e)):(w="#",G(A.Invalid_character,l++,sn(V))),v=81;case 65533:return G(A.File_appears_to_be_binary,0,0),l=Z,v=8;default:let Ce=jt(V,e);if(Ce)return v=Ce;if(hs(V)){l+=sn(V);continue}else if(Dn(V)){J|=1,l+=sn(V);continue}let ye=sn(V);return G(A.Invalid_character,l,ye),l+=ye,v=0}}}function st(){switch(me){case 0:return!0;case 1:return!1}return he!==3&&he!==4?!0:me===3?!1:bg.test(C.slice(f,l))}function Vt(){B.assert(v===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=k=f,J=0;let z=ae(l),V=jt(z,99);return V?v=V:(l+=sn(z),v)}function jt(z,V){let Q=z;if(nr(Q,V)){for(l+=sn(Q);l=Z)return v=1;let V=X(l);if(V===60)return X(l+1)===47?(l+=2,v=31):(l++,v=30);if(V===123)return l++,v=19;let Q=0;for(;l0)break;Fa(V)||(Q=l)}l++}return w=C.substring(f,l),Q===-1?13:12}function Ur(){if(bt(v)){for(;l=Z)return v=1;for(let V=X(l);l=0&&hs(X(l-1))&&!(l+1=Z)return v=1;let z=ae(l);switch(l+=sn(z),z){case 9:case 11:case 12:case 32:for(;l=0&&nr(V,e))return w=Vn(!0)+xt(),v=Qe();let Q=Mn();return Q>=0&&nr(Q,e)?(l+=6,J|=1024,w=String.fromCharCode(Q)+xt(),v=Qe()):(l++,v=0)}if(nr(z,e)){let V=z;for(;l=0),l=z,f=z,k=z,v=0,w=void 0,J=0}function Pi(z){be+=z?1:-1}}function Qi(e,t){return e.codePointAt(t)}function sn(e){return e>=65536?2:e===-1?0:1}function Pg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var Ng=String.fromCodePoint?e=>String.fromCodePoint(e):Pg;function Hd(e){return Ng(e)}var Xd=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),$d=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Qd=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),qa={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};qa.Script_Extensions=qa.Script;function Nr(e){return e.start+e.length}function Ig(e){return e.length===0}function wf(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Og(e,t){return wf(e,t-e)}function ps(e){return wf(e.span.start,e.newLength)}function Mg(e){return Ig(e.span)&&e.newLength===0}function d1(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var I3=d1(wf(0,0),0);function kf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function pl(e){return(e.flags&16)===0}function Jg(e,t){if(e===void 0||pl(e))return e;for(e=e.original;e;){if(pl(e))return!t||t(e)?e:void 0;e=e.original}}function Ra(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ts(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Nn(e){return Ts(e.escapedText)}function Ns(e){let t=a1(e.escapedText);return t?qy(t,Ti):void 0}function Zp(e){return e.valueDeclaration&&r2(e.valueDeclaration)?Nn(e.valueDeclaration.name):Ts(e.escapedName)}function m1(e){let t=e.parent.parent;if(t){if(em(t))return Xc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Xc(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(et(o))return o}break;case 217:return Xc(t.expression);case 256:{if(em(t.statement)||m2(t.statement))return Xc(t.statement);break}}}}function Xc(e){let t=h1(e);return t&&et(t)?t:void 0}function jg(e){return e.name||m1(e)}function Lg(e){return!!e.name}function Ef(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(If(a)){case 1:case 4:case 5:case 3:return Of(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return jg(e);case 340:return m1(e);case 277:{let{expression:a}=e;return et(a)?a:void 0}case 212:let t=e;if(O1(t))return t.argumentExpression}return e.name}function h1(e){if(e!==void 0)return Ef(e)||(Yf(e)||Hf(e)||hl(e)?Rg(e):void 0)}function Rg(e){if(e.parent){if(td(e.parent)||ih(e.parent))return e.parent.name;if(ia(e.parent)&&e===e.parent.right){if(et(e.parent.left))return e.parent.left;if(U1(e.parent.left))return Of(e.parent.left)}else if(Pl(e.parent)&&et(e.parent.name))return e.parent.name}else return}function xl(e){if(cb(e))return Kr(e.modifiers,kl)}function y1(e){if(Os(e,98303))return Kr(e.modifiers,_2)}function g1(e,t){if(e.name)if(et(e.name)){let a=e.name.escapedText;return Ss(e.parent,t).filter(o=>_f(o)&&et(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=Ss(e.parent,t).filter(_f);if(axh(o)&&o.typeParameters.some(h=>h.name.escapedText===a))}function qg(e){return b1(e,!1)}function zg(e){return b1(e,!0)}function Fg(e){return ki(e,k6)}function Vg(e){return Kg(e,M6)}function Wg(e){return ki(e,E6,!0)}function Gg(e){return ki(e,A6,!0)}function Yg(e){return ki(e,C6,!0)}function Hg(e){return ki(e,D6,!0)}function Xg(e){return ki(e,P6,!0)}function $g(e){return ki(e,I6,!0)}function Qg(e){let t=ki(e,nd);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Ss(e,t){var a;if(!Mf(e))return Ot;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let h=Y2(e,t);B.assert(h.length<2||h[0]!==h[1]),o=Vm(h,g=>vh(g)?g.tags:g),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function v1(e){return Ss(e,!1)}function ki(e,t,a){return zm(Ss(e,a),t)}function Kg(e,t){return v1(e).filter(t)}function ef(e){return e.kind===80||e.kind===81}function Zg(e){return br(e)&&!!(e.flags&64)}function e2(e){return _a(e)&&!!(e.flags&64)}function Kd(e){return Al(e)&&!!(e.flags&64)}function Af(e){return ad(e,8)}function t2(e){return _l(e)&&!!(e.flags&64)}function Cf(e){return e>=166}function Df(e){return e>=0&&e<=165}function x1(e){return Df(e.kind)}function Si(e){return Mr(e,"pos")&&Mr(e,"end")}function n2(e){return 9<=e&&e<=15}function Zd(e){return 15<=e&&e<=18}function za(e){var t;return et(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function T1(e){var t;return wi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function r2(e){return(Ha(e)||c2(e))&&wi(e.name)}function $r(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function i2(e){return!!(L1(e)&31)}function a2(e){return i2(e)||e===126||e===164||e===129}function _2(e){return $r(e.kind)}function S1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Pf(e){return!!e&&o2(e.kind)}function s2(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function o2(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return s2(e)}}function Ei(e){return e&&(e.kind===263||e.kind===231)}function c2(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function l2(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function w1(e){return vb(e.kind)}function u2(e){if(e){let t=e.kind;return t===207||t===206}return!1}function p2(e){let t=e.kind;return t===209||t===210}function f2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Va(e){return k1(Af(e).kind)}function k1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function d2(e){return E1(Af(e).kind)}function E1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return k1(e)}}function m2(e){return h2(Af(e).kind)}function h2(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return E1(e)}}function y2(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function A1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function C1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function em(e){return e.kind===168?e.parent&&e.parent.kind!==345||aa(e):y2(e.kind)}function g2(e){let t=e.kind;return C1(t)||A1(t)||b2(e)}function b2(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!M2(e)}function v2(e){let t=e.kind;return C1(t)||A1(t)||t===241}function D1(e){return e.kind>=309&&e.kind<=351}function x2(e){return e.kind===320||e.kind===319||e.kind===321||w2(e)||T2(e)||w6(e)||Il(e)}function T2(e){return e.kind>=327&&e.kind<=351}function $c(e){return e.kind===178}function Qc(e){return e.kind===177}function Zi(e){if(!Mf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function S2(e){return!!e.initializer}function Tl(e){return e.kind===11||e.kind===15}function w2(e){return e.kind===324||e.kind===325||e.kind===326}function tm(e){return(e.flags&33554432)!==0}var O3=k2();function k2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Fa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ga,decreaseIndent:Ga,clear:()=>e=""}}function E2(e,t){let a=e.entries();for(let[o,h]of a){let g=t(h,o);if(g)return g}}function A2(e){return e.end-e.pos}function P1(e){return C2(e),(e.flags&1048576)!==0}function C2(e){e.flags&2097152||((e.flags&262144||tn(e,P1))&&(e.flags|=1048576),e.flags|=2097152)}function Ya(e){for(;e&&e.kind!==307;)e=e.parent;return e}function ea(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function tf(e){return!ea(e)}function fl(e,t,a){if(ea(e))return e.pos;if(D1(e)||e.kind===12)return Qr((t||Ya(e)).text,e.pos,!1,!0);if(a&&Zi(e))return fl(e.jsDoc[0],t);if(e.kind===352){let o=uf(Th(e));if(o)return fl(o,t,a)}return Qr((t||Ya(e)).text,e.pos,!1,!1,J2(e))}function nm(e,t,a=!1){return ys(e.text,t,a)}function D2(e){return!!kf(e,yh)}function ys(e,t,a=!1){if(ea(t))return"";let o=e.substring(a?t.pos:Qr(e,t.pos),t.end);return D2(t)&&(o=o.split(/\r\n|\n|\r/).map(h=>h.replace(/^\s*\*/,"").trimStart()).join(` -`)),o}function Wa(e){let t=e.emitNode;return t&&t.flags||0}function P2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function al(e){return e.kind===244&&e.expression.kind===11}function Nf(e){return!!(Wa(e)&2097152)}function rm(e){return Nf(e)&&Xf(e)}function N2(e){return et(e.name)&&!e.initializer}function im(e){return Nf(e)&&Ka(e)&&cf(e.declarationList.declarations,N2)}function I2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?lf(Cg(t,e.pos),Kp(t,e.pos)):Kp(t,e.pos);return Kr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function O2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function M2(e){return e&&e.kind===241&&Pf(e.parent)}function am(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function aa(e){return!!e&&!!(e.flags&524288)}function J2(e){return!!e&&!!(e.flags&16777216)}function j2(e){for(;dl(e,!0);)e=e.right;return e}function L2(e){return et(e)&&e.escapedText==="exports"}function R2(e){return et(e)&&e.escapedText==="module"}function N1(e){return(br(e)||I1(e))&&R2(e.expression)&&ks(e)==="exports"}function If(e){let t=B2(e);return t===5||aa(e)?t:0}function U2(e){return ms(e.arguments)===3&&br(e.expression)&&et(e.expression.expression)&&Nn(e.expression.expression)==="Object"&&Nn(e.expression.name)==="defineProperty"&&Sl(e.arguments[1])&&ws(e.arguments[0],!0)}function I1(e){return _a(e)&&Sl(e.argumentExpression)}function Is(e,t){return br(e)&&(!t&&e.expression.kind===110||et(e.name)&&ws(e.expression,!0))||O1(e,t)}function O1(e,t){return I1(e)&&(!t&&e.expression.kind===110||Lf(e.expression)||Is(e.expression,!0))}function ws(e,t){return Lf(e)||Is(e,t)}function B2(e){if(Al(e)){if(!U2(e))return 0;let t=e.arguments[0];return L2(t)||N1(t)?8:Is(t)&&ks(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!U1(e.left)||q2(j2(e))?0:ws(e.left.expression,!0)&&ks(e.left)==="prototype"&&Gf(F2(e))?6:z2(e.left)}function q2(e){return g6(e)&&Ai(e.expression)&&e.expression.text==="0"}function Of(e){if(br(e))return e.name;let t=Jf(e.argumentExpression);return Ai(t)||Tl(t)?t:e}function ks(e){let t=Of(e);if(t){if(et(t))return t.escapedText;if(Tl(t)||Ai(t))return Ra(t.text)}}function z2(e){if(e.expression.kind===110)return 4;if(N1(e))return 2;if(ws(e.expression,!0)){if(gb(e.expression))return 3;let t=e;for(;!et(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ks(t)==="exports")&&Is(e))return 1;if(ws(e,!0)||_a(e)&&rb(e))return 5}return 0}function F2(e){for(;ia(e.right);)e=e.right;return e.right}function V2(e){return Dl(e)&&ia(e.expression)&&If(e.expression)!==0&&ia(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function W2(e){switch(e.kind){case 243:let t=nf(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function nf(e){return Ka(e)?uf(e.declarationList.declarations):void 0}function G2(e){return ei(e)&&e.body&&e.body.kind===267?e.body:void 0}function Mf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Y2(e,t){let a;O2(e)&&S2(e)&&Zi(e.initializer)&&(a=Pn(a,_m(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Zi(o)&&(a=Pn(a,_m(e,o.jsDoc))),o.kind===169){a=Pn(a,(t?Bg:Ug)(o));break}if(o.kind===168){a=Pn(a,(t?zg:qg)(o));break}o=X2(o)}return a||Ot}function _m(e,t){let a=Iy(t);return Vm(t,o=>{if(o===a){let h=Kr(o.tags,g=>H2(e,g));return o.tags===h?[o]:h}else return Kr(o.tags,N6)})}function H2(e,t){return!(nd(t)||J6(t))||!t.parent||!vh(t.parent)||!Cl(t.parent.parent)||t.parent.parent===e}function X2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||G2(t)||dl(e))return t;if(t.parent&&(nf(t.parent)===e||dl(t)))return t.parent;if(t.parent&&t.parent.parent&&(nf(t.parent.parent)||W2(t.parent.parent)===e||V2(t.parent.parent)))return t.parent.parent}function Jf(e,t){return ad(e,t?17:1)}function $2(e){let t=Q2(e);if(t&&aa(e)){let a=Fg(e);if(a)return a.class}return t}function Q2(e){let t=jf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function K2(e){if(aa(e))return Vg(e).map(t=>t.class);{let t=jf(e.heritageClauses,119);return t==null?void 0:t.types}}function Z2(e){return Ms(e)?eb(e)||Ot:Ei(e)&&lf(Hp($2(e)),K2(e))||Ot}function eb(e){let t=jf(e.heritageClauses,96);return t?t.types:void 0}function jf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function Ti(e){return 83<=e&&e<=165}function tb(e){return 19<=e&&e<=79}function Rp(e){return Ti(e)||tb(e)}function Sl(e){return Tl(e)||Ai(e)}function nb(e){return sh(e)&&(e.operator===40||e.operator===41)&&Ai(e.operand)}function rb(e){if(!(e.kind===167||e.kind===212))return!1;let t=_a(e)?Jf(e.argumentExpression):e.expression;return!Sl(t)&&!nb(t)}function ib(e){return ef(e)?Nn(e):mh(e)?Yb(e):e.text}function Ua(e){return Es(e.pos)||Es(e.end)}function Up(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Bp(e){return!!((e.templateFlags||0)&2048)}function ab(e){return e&&!!(V1(e)?Bp(e):Bp(e.head)||qt(e.templateSpans,t=>Bp(t.literal)))}var M3=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var J3=new Map(Object.entries({'"':""","'":"'"}));function _b(e){return!!e&&e.kind===80&&sb(e)}function sb(e){return e.escapedText==="this"}function Os(e,t){return!!lb(e,t)}function ob(e){return Os(e,256)}function cb(e){return Os(e,32768)}function lb(e,t){return pb(e)&t}function ub(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=j1(e)|536870912),a||t&&aa(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=M1(e)|268435456),J1(e.modifierFlagsCache)):fb(e.modifierFlagsCache))}function pb(e){return ub(e,!1)}function M1(e){let t=0;return e.parent&&!As(e)&&(aa(e)&&(Wg(e)&&(t|=8388608),Gg(e)&&(t|=16777216),Yg(e)&&(t|=33554432),Hg(e)&&(t|=67108864),Xg(e)&&(t|=134217728)),$g(e)&&(t|=65536)),t}function fb(e){return e&65535}function J1(e){return e&131071|(e&260046848)>>>23}function db(e){return J1(M1(e))}function mb(e){return j1(e)|db(e)}function j1(e){let t=Ol(e)?qn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function qn(e){let t=0;if(e)for(let a of e)t|=L1(a.kind);return t}function L1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function hb(e){return e===76||e===77||e===78}function R1(e){return e>=64&&e<=79}function dl(e,t){return ia(e)&&(t?e.operatorToken.kind===64:R1(e.operatorToken.kind))&&Va(e.left)}function Lf(e){return e.kind===80||yb(e)}function yb(e){return br(e)&&et(e.name)&&Lf(e.expression)}function gb(e){return Is(e)&&ks(e)==="prototype"}function qp(e){return e.flags&3899393?e.objectFlags:0}function bb(e){let t;return tn(e,a=>{tf(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(tf(a[o])){t=a[o];break}}),t}function vb(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function U1(e){return e.kind===211||e.kind===212}function xb(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Tb(e,t){this.flags=t,(B.isDebugging||rl)&&(this.checker=e)}function Sb(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function zp(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function wb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function kb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Eb(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var Ct={getNodeConstructor:()=>zp,getTokenConstructor:()=>wb,getIdentifierConstructor:()=>kb,getPrivateIdentifierConstructor:()=>zp,getSourceFileConstructor:()=>zp,getSymbolConstructor:()=>xb,getTypeConstructor:()=>Tb,getSignatureConstructor:()=>Sb,getSourceMapSourceConstructor:()=>Eb},Ab=[];function Cb(e){Object.assign(Ct,e),zn(Ab,t=>t(Ct))}function Db(e,t){return e.replace(/{(\d+)}/g,(a,o)=>""+B.checkDefined(t[+o]))}var sm;function Pb(e){return sm&&sm[e.key]||e.message}function ja(e,t,a,o,h,...g){a+o>t.length&&(o=t.length-a),P2(t,a,o);let E=Pb(h);return qt(g)&&(E=Db(E,g)),{file:void 0,start:a,length:o,messageText:E,category:h.category,code:h.code,reportsUnnecessary:h.reportsUnnecessary,fileName:e}}function Nb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function B1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let h={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){h.relatedInformation=[];for(let g of e.relatedInformation)Nb(g)&&g.fileName===a?(B.assertLessThanOrEqual(g.start,o),B.assertLessThanOrEqual(g.start+g.length,o),h.relatedInformation.push(B1(g,t))):h.relatedInformation.push(g)}return h}function Yi(e,t){let a=[];for(let o of e)a.push(B1(o,t));return a}function om(e){return e===4||e===2||e===1||e===6?1:0}var lt={target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:lt.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(lt.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(lt.module.computeValue(e)===100||lt.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(lt.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:lt.esModuleInterop.computeValue(e)||lt.module.computeValue(e)===4||lt.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=lt.moduleResolution.computeValue(e);if(!cm(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=lt.moduleResolution.computeValue(e);if(!cm(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:lt.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||lt.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&<.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?lt.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>gi(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>gi(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>gi(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>gi(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>gi(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>gi(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>gi(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>gi(e,"useUnknownInCatchVariables")}},j3=lt.target.computeValue,L3=lt.module.computeValue,R3=lt.moduleResolution.computeValue,U3=lt.moduleDetection.computeValue,B3=lt.isolatedModules.computeValue,q3=lt.esModuleInterop.computeValue,z3=lt.allowSyntheticDefaultImports.computeValue,F3=lt.resolvePackageJsonExports.computeValue,V3=lt.resolvePackageJsonImports.computeValue,W3=lt.resolveJsonModule.computeValue,G3=lt.declaration.computeValue,Y3=lt.preserveConstEnums.computeValue,H3=lt.incremental.computeValue,X3=lt.declarationMap.computeValue,$3=lt.allowJs.computeValue,Q3=lt.useDefineForClassFields.computeValue;function cm(e){return e>=3&&e<=99||e===100}function gi(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Ib(e){return E2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var Ob=["node_modules","bower_components","jspm_packages"],q1=`(?!(${Ob.join("|")})(/|$))`,Mb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${q1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>z1(e,Mb.singleAsteriskRegexFragment)},Jb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${q1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>z1(e,Jb.singleAsteriskRegexFragment)};function z1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function jb(e,t){return t||Lb(e)||3}function Lb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var F1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],K3=Fm(F1),Z3=[...F1,[".json"]];var Rb=[[".js",".jsx"],[".mjs"],[".cjs"]],ex=Fm(Rb),Ub=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],tx=[...Ub,[".json"]],Bb=[".d.ts",".d.cts",".d.mts"];function Es(e){return!(e>=0)}function Kc(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==Ot,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function qb(e){let 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:let Z=e.length-1,f=0;for(;e.charCodeAt(f)===48;)f++;return e.slice(f,Z)||"0"}let a=2,o=e.length-1,h=(o-a)*t,g=new Uint16Array((h>>>4)+(h&15?1:0));for(let Z=o-1,f=0;Z>=a;Z--,f+=t){let k=f>>>4,v=e.charCodeAt(Z),J=(v<=57?v-48:10+v-(v<=70?65:97))<<(f&15);g[k]|=J;let re=J>>>16;re&&(g[k+1]|=re)}let E="",C=g.length-1,l=!0;for(;l;){let Z=0;l=!1;for(let f=C;f>=0;f--){let k=Z<<16|g[f],v=k/10|0;g[f]=v,Z=k-v*10,v&&!l&&(C=f,l=!0)}E=Z+E}return E}function zb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function rf(e,t){return e.pos=t,e}function Fb(e,t){return e.end=t,e}function ta(e,t,a){return Fb(rf(e,t),a)}function lm(e,t,a){return ta(e,t,t+a)}function Rf(e,t){return e&&t&&(e.parent=t),e}function Vb(e,t){if(!e)return e;return Lm(e,D1(e)?a:h),e;function a(g,E){if(t&&g.parent===E)return"skip";Rf(g,E)}function o(g){if(Zi(g))for(let E of g.jsDoc)a(E,g),Lm(E,a)}function h(g,E){return a(g,E)||o(g)}}function Wb(e){return!!(e.flags&262144&&e.isThisType)}function Gb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function Yb(e){return`${Nn(e.namespace)}:${Nn(e.name)}`}var nx=String.prototype.replace;function Hb(){let e,t,a,o,h;return{createBaseSourceFileNode:g,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:C,createBaseTokenNode:l,createBaseNode:Z};function g(f){return new(h||(h=Ct.getSourceFileConstructor()))(f,-1,-1)}function E(f){return new(a||(a=Ct.getIdentifierConstructor()))(f,-1,-1)}function C(f){return new(o||(o=Ct.getPrivateIdentifierConstructor()))(f,-1,-1)}function l(f){return new(t||(t=Ct.getTokenConstructor()))(f,-1,-1)}function Z(f){return new(e||(e=Ct.getNodeConstructor()))(f,-1,-1)}}var Xb={getParenthesizeLeftSideOfBinaryForOperator:e=>kt,getParenthesizeRightSideOfBinaryForOperator:e=>kt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:kt,parenthesizeConditionOfConditionalExpression:kt,parenthesizeBranchOfConditionalExpression:kt,parenthesizeExpressionOfExportDefault:kt,parenthesizeExpressionOfNew:e=>Ir(e,Va),parenthesizeLeftSideOfAccess:e=>Ir(e,Va),parenthesizeOperandOfPostfixUnary:e=>Ir(e,Va),parenthesizeOperandOfPrefixUnary:e=>Ir(e,d2),parenthesizeExpressionsOfCommaDelimitedList:e=>Ir(e,Si),parenthesizeExpressionForDisallowedComma:kt,parenthesizeExpressionOfExpressionStatement:kt,parenthesizeConciseBodyOfArrowFunction:kt,parenthesizeCheckTypeOfConditionalType:kt,parenthesizeExtendsTypeOfConditionalType:kt,parenthesizeConstituentTypesOfUnionType:e=>Ir(e,Si),parenthesizeConstituentTypeOfUnionType:kt,parenthesizeConstituentTypesOfIntersectionType:e=>Ir(e,Si),parenthesizeConstituentTypeOfIntersectionType:kt,parenthesizeOperandOfTypeOperator:kt,parenthesizeOperandOfReadonlyTypeOperator:kt,parenthesizeNonArrayTypeOfPostfixType:kt,parenthesizeElementTypesOfTupleType:e=>Ir(e,Si),parenthesizeElementTypeOfTupleType:kt,parenthesizeTypeOfOptionalType:kt,parenthesizeTypeArguments:e=>e&&Ir(e,Si),parenthesizeLeadingTypeArgument:kt},Zc=0;var $b=[];function Uf(e,t){let a=e&8?kt:t6,o=qd(()=>e&1?Xb:createParenthesizerRules(he)),h=qd(()=>e&2?nullNodeConverters:createNodeConverters(he)),g=tr(n=>(i,_)=>h_(i,n,_)),E=tr(n=>i=>d_(n,i)),C=tr(n=>i=>m_(i,n)),l=tr(n=>()=>Pu(n)),Z=tr(n=>i=>F_(n,i)),f=tr(n=>(i,_)=>Iu(n,i,_)),k=tr(n=>(i,_)=>tc(n,i,_)),v=tr(n=>(i,_)=>Nu(n,i,_)),w=tr(n=>(i,_)=>fc(n,i,_)),J=tr(n=>(i,_,c)=>Yu(n,i,_,c)),re=tr(n=>(i,_,c)=>dc(n,i,_,c)),be=tr(n=>(i,_,c,d)=>Hu(n,i,_,c,d)),he={get parenthesizer(){return o()},get converters(){return h()},baseFactory:t,flags:e,createNodeArray:me,createNumericLiteral:X,createBigIntLiteral:oe,createStringLiteral:ht,createStringLiteralFromNode:ir,createRegularExpressionLiteral:xn,createLiteralLikeNode:ar,createIdentifier:Ve,createTempVariable:_r,createLoopVariable:Rr,createUniqueName:Mt,getGeneratedNameForNode:Vn,createPrivateIdentifier:Jt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:Wn,createToken:ut,createSuper:st,createThis:Vt,createNull:jt,createTrue:pt,createFalse:sr,createModifier:yt,createModifiersFromModifierFlags:Sn,createQualifiedName:vt,updateQualifiedName:dn,createComputedPropertyName:rt,updateComputedPropertyName:Wt,createTypeParameterDeclaration:on,updateTypeParameterDeclaration:or,createParameterDeclaration:vr,updateParameterDeclaration:xr,createDecorator:Gn,updateDecorator:Yn,createPropertySignature:Ur,updatePropertySignature:Hn,createPropertyDeclaration:Tr,updatePropertyDeclaration:j,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:xe,updateMethodDeclaration:Xe,createConstructorDeclaration:ft,updateConstructorDeclaration:Br,createGetAccessorDeclaration:Jn,updateGetAccessorDeclaration:Xn,createSetAccessorDeclaration:z,updateSetAccessorDeclaration:V,createCallSignature:Te,updateCallSignature:Se,createConstructSignature:Ce,updateConstructSignature:ye,createIndexSignature:Ye,updateIndexSignature:$e,createClassStaticBlockDeclaration:ot,updateClassStaticBlockDeclaration:Pt,createTemplateLiteralTypeSpan:Ze,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:wn,createTypePredicateNode:at,updateTypePredicateNode:mn,createTypeReferenceNode:ii,updateTypeReferenceNode:M,createFunctionTypeNode:Be,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:cn,createTypeQueryNode:Nt,updateTypeQueryNode:Et,createTypeLiteralNode:It,updateTypeLiteralNode:Gt,createArrayTypeNode:$n,updateArrayTypeNode:Ni,createTupleTypeNode:hn,updateTupleTypeNode:Y,createNamedTupleMember:de,updateNamedTupleMember:ze,createOptionalTypeNode:ke,updateOptionalTypeNode:L,createRestTypeNode:gt,updateRestTypeNode:St,createUnionTypeNode:Fl,updateUnionTypeNode:zs,createIntersectionTypeNode:qr,updateIntersectionTypeNode:Je,createConditionalTypeNode:mt,updateConditionalTypeNode:Vl,createInferTypeNode:Qn,updateInferTypeNode:Wl,createImportTypeNode:cr,updateImportTypeNode:fa,createParenthesizedType:rn,updateParenthesizedType:Dt,createThisTypeNode:D,createTypeOperatorNode:an,updateTypeOperatorNode:zr,createIndexedAccessTypeNode:lr,updateIndexedAccessTypeNode:r_,createMappedTypeNode:wt,updateMappedTypeNode:Rt,createLiteralTypeNode:ai,updateLiteralTypeNode:Fr,createTemplateLiteralType:Qt,updateTemplateLiteralType:Gl,createObjectBindingPattern:Fs,updateObjectBindingPattern:Yl,createArrayBindingPattern:Vr,updateArrayBindingPattern:Hl,createBindingElement:da,updateBindingElement:_i,createArrayLiteralExpression:i_,updateArrayLiteralExpression:Vs,createObjectLiteralExpression:Ii,updateObjectLiteralExpression:Xl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(ur(n,i),262144):ur,updatePropertyAccessExpression:Gs,createPropertyAccessChain:e&4?(n,i,_)=>setEmitFlags(si(n,i,_),262144):si,updatePropertyAccessChain:Ys,createElementAccessExpression:a_,updateElementAccessExpression:$l,createElementAccessChain:__,updateElementAccessChain:Hs,createCallExpression:wr,updateCallExpression:Ql,createCallChain:s_,updateCallChain:kn,createNewExpression:ha,updateNewExpression:o_,createTaggedTemplateExpression:c_,updateTaggedTemplateExpression:Kl,createTypeAssertion:$s,updateTypeAssertion:Qs,createParenthesizedExpression:l_,updateParenthesizedExpression:Ks,createFunctionExpression:u_,updateFunctionExpression:Zs,createArrowFunction:p_,updateArrowFunction:eo,createDeleteExpression:f_,updateDeleteExpression:Zl,createTypeOfExpression:Kt,updateTypeOfExpression:eu,createVoidExpression:jn,updateVoidExpression:tu,createAwaitExpression:kr,updateAwaitExpression:Oi,createPrefixUnaryExpression:d_,updatePrefixUnaryExpression:ya,createPostfixUnaryExpression:m_,updatePostfixUnaryExpression:to,createBinaryExpression:h_,updateBinaryExpression:nu,createConditionalExpression:y_,updateConditionalExpression:ru,createTemplateExpression:Kn,updateTemplateExpression:ro,createTemplateHead:ba,createTemplateMiddle:b_,createTemplateTail:iu,createNoSubstitutionTemplateLiteral:ao,createTemplateLiteralLikeNode:oi,createYieldExpression:_o,updateYieldExpression:au,createSpreadElement:so,updateSpreadElement:_u,createClassExpression:oo,updateClassExpression:Ji,createOmittedExpression:su,createExpressionWithTypeArguments:co,updateExpressionWithTypeArguments:En,createAsExpression:va,updateAsExpression:lo,createNonNullExpression:uo,updateNonNullExpression:v_,createSatisfiesExpression:po,updateSatisfiesExpression:x_,createNonNullChain:Ln,updateNonNullChain:fo,createMetaProperty:xa,updateMetaProperty:pr,createTemplateSpan:ji,updateTemplateSpan:mo,createSemicolonClassElement:ho,createBlock:ci,updateBlock:yo,createVariableStatement:go,updateVariableStatement:bo,createEmptyStatement:T_,createExpressionStatement:Li,updateExpressionStatement:ou,createIfStatement:S_,updateIfStatement:cu,createDoStatement:w_,updateDoStatement:lu,createWhileStatement:vo,updateWhileStatement:uu,createForStatement:k_,updateForStatement:xo,createForInStatement:To,updateForInStatement:pu,createForOfStatement:So,updateForOfStatement:fu,createContinueStatement:wo,updateContinueStatement:ko,createBreakStatement:E_,updateBreakStatement:Eo,createReturnStatement:Ao,updateReturnStatement:Co,createWithStatement:A_,updateWithStatement:Do,createSwitchStatement:Wr,updateSwitchStatement:du,createLabeledStatement:Po,updateLabeledStatement:No,createThrowStatement:Io,updateThrowStatement:mu,createTryStatement:Oo,updateTryStatement:Mo,createDebuggerStatement:Jo,createVariableDeclaration:Ta,updateVariableDeclaration:hu,createVariableDeclarationList:C_,updateVariableDeclarationList:yu,createFunctionDeclaration:D_,updateFunctionDeclaration:jo,createClassDeclaration:P_,updateClassDeclaration:N_,createInterfaceDeclaration:Lo,updateInterfaceDeclaration:ct,createTypeAliasDeclaration:Er,updateTypeAliasDeclaration:I_,createEnumDeclaration:Ar,updateEnumDeclaration:Ro,createModuleDeclaration:At,updateModuleDeclaration:Cr,createModuleBlock:Ut,updateModuleBlock:bu,createCaseBlock:Uo,updateCaseBlock:vu,createNamespaceExportDeclaration:O_,updateNamespaceExportDeclaration:xu,createImportEqualsDeclaration:Bo,updateImportEqualsDeclaration:qo,createImportDeclaration:zo,updateImportDeclaration:Fo,createImportClause:M_,updateImportClause:Vo,createAssertClause:Wo,updateAssertClause:Sa,createAssertEntry:J_,updateAssertEntry:Go,createImportTypeAssertionContainer:j_,updateImportTypeAssertionContainer:Su,createImportAttributes:wa,updateImportAttributes:wu,createImportAttribute:L_,updateImportAttribute:ku,createNamespaceImport:Yo,updateNamespaceImport:Eu,createNamespaceExport:Ho,updateNamespaceExport:Au,createNamedImports:R_,updateNamedImports:Gr,createImportSpecifier:Xo,updateImportSpecifier:$o,createExportAssignment:li,updateExportAssignment:U_,createExportDeclaration:B_,updateExportDeclaration:ui,createNamedExports:q_,updateNamedExports:Qo,createExportSpecifier:z_,updateExportSpecifier:Du,createMissingDeclaration:Ko,createExternalModuleReference:Zo,updateExternalModuleReference:ec,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return k(315)},get updateJSDocNonNullableType(){return v(315)},get createJSDocNullableType(){return k(314)},get updateJSDocNullableType(){return v(314)},get createJSDocOptionalType(){return Z(316)},get updateJSDocOptionalType(){return f(316)},get createJSDocVariadicType(){return Z(318)},get updateJSDocVariadicType(){return f(318)},get createJSDocNamepathType(){return Z(319)},get updateJSDocNamepathType(){return f(319)},createJSDocFunctionType:nc,updateJSDocFunctionType:Ou,createJSDocTypeLiteral:rc,updateJSDocTypeLiteral:Mu,createJSDocTypeExpression:ka,updateJSDocTypeExpression:Ju,createJSDocSignature:ic,updateJSDocSignature:Ea,createJSDocTemplateTag:V_,updateJSDocTemplateTag:W_,createJSDocTypedefTag:ac,updateJSDocTypedefTag:_c,createJSDocParameterTag:sc,updateJSDocParameterTag:ju,createJSDocPropertyTag:G_,updateJSDocPropertyTag:Lu,createJSDocCallbackTag:Y_,updateJSDocCallbackTag:Ru,createJSDocOverloadTag:Aa,updateJSDocOverloadTag:oc,createJSDocAugmentsTag:fi,updateJSDocAugmentsTag:Uu,createJSDocImplementsTag:Yr,updateJSDocImplementsTag:Gu,createJSDocSeeTag:Ri,updateJSDocSeeTag:Bu,createJSDocImportTag:X_,updateJSDocImportTag:hc,createJSDocNameReference:cc,updateJSDocNameReference:qu,createJSDocMemberName:lc,updateJSDocMemberName:zu,createJSDocLink:H_,updateJSDocLink:Fu,createJSDocLinkCode:uc,updateJSDocLinkCode:Vu,createJSDocLinkPlain:pc,updateJSDocLinkPlain:Wu,get createJSDocTypeTag(){return re(344)},get updateJSDocTypeTag(){return be(344)},get createJSDocReturnTag(){return re(342)},get updateJSDocReturnTag(){return be(342)},get createJSDocThisTag(){return re(343)},get updateJSDocThisTag(){return be(343)},get createJSDocAuthorTag(){return w(330)},get updateJSDocAuthorTag(){return J(330)},get createJSDocClassTag(){return w(332)},get updateJSDocClassTag(){return J(332)},get createJSDocPublicTag(){return w(333)},get updateJSDocPublicTag(){return J(333)},get createJSDocPrivateTag(){return w(334)},get updateJSDocPrivateTag(){return J(334)},get createJSDocProtectedTag(){return w(335)},get updateJSDocProtectedTag(){return J(335)},get createJSDocReadonlyTag(){return w(336)},get updateJSDocReadonlyTag(){return J(336)},get createJSDocOverrideTag(){return w(337)},get updateJSDocOverrideTag(){return J(337)},get createJSDocDeprecatedTag(){return w(331)},get updateJSDocDeprecatedTag(){return J(331)},get createJSDocThrowsTag(){return re(349)},get updateJSDocThrowsTag(){return be(349)},get createJSDocSatisfiesTag(){return re(350)},get updateJSDocSatisfiesTag(){return be(350)},createJSDocEnumTag:Ca,updateJSDocEnumTag:$u,createJSDocUnknownTag:mc,updateJSDocUnknownTag:Xu,createJSDocText:yc,updateJSDocText:Da,createJSDocComment:$_,updateJSDocComment:Qu,createJsxElement:gc,updateJsxElement:Ku,createJsxSelfClosingElement:Pa,updateJsxSelfClosingElement:bc,createJsxOpeningElement:Q_,updateJsxOpeningElement:K_,createJsxClosingElement:Zt,updateJsxClosingElement:vc,createJsxFragment:Z_,createJsxText:Ui,updateJsxText:ep,createJsxOpeningFragment:tp,createJsxJsxClosingFragment:np,updateJsxFragment:Zu,createJsxAttribute:Bi,updateJsxAttribute:rp,createJsxAttributes:xc,updateJsxAttributes:ip,createJsxSpreadAttribute:Tc,updateJsxSpreadAttribute:es,createJsxExpression:di,updateJsxExpression:ap,createJsxNamespacedName:Na,updateJsxNamespacedName:Sc,createCaseClause:wc,updateCaseClause:qi,createDefaultClause:ts,updateDefaultClause:_p,createHeritageClause:kc,updateHeritageClause:Ec,createCatchClause:ns,updateCatchClause:Ac,createPropertyAssignment:Dr,updatePropertyAssignment:Cc,createShorthandPropertyAssignment:Dc,updateShorthandPropertyAssignment:op,createSpreadAssignment:rs,updateSpreadAssignment:Un,createEnumMember:is,updateEnumMember:cp,createSourceFile:lp,updateSourceFile:Mc,createRedirectedSourceFile:Nc,createBundle:Jc,updateBundle:pp,createSyntheticExpression:Ia,createSyntaxList:jc,createNotEmittedStatement:fp,createPartiallyEmittedExpression:Lc,updatePartiallyEmittedExpression:Rc,createCommaListExpression:_s,updateCommaListExpression:Uc,createSyntheticReferenceExpression:ss,updateSyntheticReferenceExpression:Bc,cloneNode:os,get createComma(){return g(28)},get createAssignment(){return g(64)},get createLogicalOr(){return g(57)},get createLogicalAnd(){return g(56)},get createBitwiseOr(){return g(52)},get createBitwiseXor(){return g(53)},get createBitwiseAnd(){return g(51)},get createStrictEquality(){return g(37)},get createStrictInequality(){return g(38)},get createEquality(){return g(35)},get createInequality(){return g(36)},get createLessThan(){return g(30)},get createLessThanEquals(){return g(33)},get createGreaterThan(){return g(32)},get createGreaterThanEquals(){return g(34)},get createLeftShift(){return g(48)},get createRightShift(){return g(49)},get createUnsignedRightShift(){return g(50)},get createAdd(){return g(40)},get createSubtract(){return g(41)},get createMultiply(){return g(42)},get createDivide(){return g(44)},get createModulo(){return g(45)},get createExponent(){return g(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return C(46)},get createPostfixDecrement(){return C(47)},createImmediatelyInvokedFunctionExpression:yp,createImmediatelyInvokedArrowFunction:gp,createVoidZero:mi,createExportDefault:Fc,createExternalModuleExport:bp,createTypeCheck:cs,createIsNotTypeCheck:vp,createMethodCall:Hr,createGlobalMethodCall:zi,createFunctionBindCall:xp,createFunctionCallCall:Tp,createFunctionApplyCall:Sp,createArraySliceCall:Fi,createArrayConcatCall:wp,createObjectDefinePropertyCall:Vc,createObjectGetOwnPropertyDescriptorCall:kp,createReflectGetCall:Ep,createReflectSetCall:Wc,createPropertyDescriptor:Ap,createCallBinding:p,createAssignmentTargetWrapper:m,inlineExpressions:y,getInternalName:N,getLocalName:$,getExportName:_e,getDeclarationName:ee,getNamespaceMemberName:K,getExternalModuleOrNamespaceExportName:le,restoreOuterExpressions:ls,restoreEnclosingLabel:us,createUseStrictPrologue:De,copyPrologue:Ue,copyStandardPrologue:Yt,copyCustomPrologue:un,ensureUseStrict:fr,liftToBlock:dr,mergeLexicalEnvironment:Xr,replaceModifiers:Dp,replaceDecoratorsAndModifiers:Pp,replacePropertyName:Np};return zn($b,n=>n(he)),he;function me(n,i){if(n===void 0||n===Ot)n=[];else if(Si(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&pm(n),B.attachNodeArrayDebugInfo(n),n;let d=n.slice();return d.pos=n.pos,d.end=n.end,d.hasTrailingComma=i,d.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(d),d}let _=n.length,c=_>=1&&_<=4?n.slice():n;return c.pos=-1,c.end=-1,c.hasTrailingComma=!!i,c.transformFlags=0,pm(c),B.attachNodeArrayDebugInfo(c),c}function O(n){return t.createBaseNode(n)}function ae(n){let i=O(n);return i.symbol=void 0,i.localSymbol=void 0,i}function ve(n,i){return n!==i&&(n.typeArguments=i.typeArguments),R(n,i)}function X(n,i=0){let _=typeof n=="number"?n+"":n;B.assert(_.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let c=ae(9);return c.text=_,c.numericLiteralFlags=i,i&384&&(c.transformFlags|=1024),c}function oe(n){let i=nn(10);return i.text=typeof n=="string"?n:zb(n)+"n",i.transformFlags|=32,i}function G(n,i){let _=ae(11);return _.text=n,_.singleQuote=i,_}function ht(n,i,_){let c=G(n,i);return c.hasExtendedUnicodeEscape=_,_&&(c.transformFlags|=1024),c}function ir(n){let i=G(ib(n),void 0);return i.textSourceNode=n,i}function xn(n){let i=nn(14);return i.text=n,i}function ar(n,i){switch(n){case 9:return X(i,0);case 10:return oe(i);case 11:return ht(i,void 0);case 12:return Ui(i,!1);case 13:return Ui(i,!0);case 14:return xn(i);case 15:return oi(n,i,void 0,0)}}function Tn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function On(n,i,_,c){let d=Tn(Ra(n));return setIdentifierAutoGenerate(d,{flags:i,id:Zc,prefix:_,suffix:c}),Zc++,d}function Ve(n,i,_){i===void 0&&n&&(i=a1(n)),i===80&&(i=void 0);let c=Tn(Ra(n));return _&&(c.flags|=256),c.escapedText==="await"&&(c.transformFlags|=67108864),c.flags&256&&(c.transformFlags|=1024),c}function _r(n,i,_,c){let d=1;i&&(d|=8);let T=On("",d,_,c);return n&&n(T),T}function Rr(n){let i=2;return n&&(i|=8),On("",i,void 0,void 0)}function Mt(n,i=0,_,c){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),On(n,3|i,_,c)}function Vn(n,i=0,_,c){B.assert(!(i&7),"Argument out of range: flags");let d=n?ef(n)?sf(!1,_,n,c,Nn):`generated@${getNodeId(n)}`:"";(_||c)&&(i|=16);let T=On(d,4|i,_,c);return T.original=n,T}function Mn(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Jt(n){return ol(n,"#")||B.fail("First character of private identifier must be #: "+n),Mn(Ra(n))}function xt(n,i,_,c){let d=Mn(Ra(n));return setIdentifierAutoGenerate(d,{flags:i,id:Zc,prefix:_,suffix:c}),Zc++,d}function Qe(n,i,_){n&&!ol(n,"#")&&B.fail("First character of private identifier must be #: "+n);let c=8|(n?3:1);return xt(n??"",c,i,_)}function Wn(n,i,_){let c=ef(n)?sf(!0,i,n,_,Nn):`#generated@${getNodeId(n)}`,T=xt(c,4|(i||_?16:0),i,_);return T.original=n,T}function nn(n){return t.createBaseTokenNode(n)}function ut(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=nn(n),_=0;switch(n){case 134:_=384;break;case 160:_=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,i.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,i.flowNode=void 0;break}return _&&(i.transformFlags|=_),i}function st(){return ut(108)}function Vt(){return ut(110)}function jt(){return ut(106)}function pt(){return ut(112)}function sr(){return ut(97)}function yt(n){return ut(n)}function Sn(n){let i=[];return n&32&&i.push(yt(95)),n&128&&i.push(yt(138)),n&2048&&i.push(yt(90)),n&4096&&i.push(yt(87)),n&1&&i.push(yt(125)),n&2&&i.push(yt(123)),n&4&&i.push(yt(124)),n&64&&i.push(yt(128)),n&256&&i.push(yt(126)),n&16&&i.push(yt(164)),n&8&&i.push(yt(148)),n&512&&i.push(yt(129)),n&1024&&i.push(yt(134)),n&8192&&i.push(yt(103)),n&16384&&i.push(yt(147)),i.length?i:void 0}function vt(n,i){let _=O(166);return _.left=n,_.right=nt(i),_.transformFlags|=F(_.left)|Ba(_.right),_.flowNode=void 0,_}function dn(n,i,_){return n.left!==i||n.right!==_?R(vt(i,_),n):n}function rt(n){let i=O(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=F(i.expression)|1024|131072,i}function Wt(n,i){return n.expression!==i?R(rt(i),n):n}function on(n,i,_,c){let d=ae(168);return d.modifiers=Pe(n),d.name=nt(i),d.constraint=_,d.default=c,d.transformFlags=1,d.expression=void 0,d.jsDoc=void 0,d}function or(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.constraint!==c||n.default!==d?R(on(i,_,c,d),n):n}function vr(n,i,_,c,d,T){let q=ae(169);return q.modifiers=Pe(n),q.dotDotDotToken=i,q.name=nt(_),q.questionToken=c,q.type=d,q.initializer=pn(T),_b(q.name)?q.transformFlags=1:q.transformFlags=Ae(q.modifiers)|F(q.dotDotDotToken)|Bn(q.name)|F(q.questionToken)|F(q.initializer)|(q.questionToken??q.type?1:0)|(q.dotDotDotToken??q.initializer?1024:0)|(qn(q.modifiers)&31?8192:0),q.jsDoc=void 0,q}function xr(n,i,_,c,d,T,q){return n.modifiers!==i||n.dotDotDotToken!==_||n.name!==c||n.questionToken!==d||n.type!==T||n.initializer!==q?R(vr(i,_,c,d,T,q),n):n}function Gn(n){let i=O(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1|8192|33554432,i}function Yn(n,i){return n.expression!==i?R(Gn(i),n):n}function Ur(n,i,_,c){let d=ae(171);return d.modifiers=Pe(n),d.name=nt(i),d.type=c,d.questionToken=_,d.transformFlags=1,d.initializer=void 0,d.jsDoc=void 0,d}function Hn(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.type!==d?Ne(Ur(i,_,c,d),n):n}function Ne(n,i){return n!==i&&(n.initializer=i.initializer),R(n,i)}function Tr(n,i,_,c,d){let T=ae(172);T.modifiers=Pe(n),T.name=nt(i),T.questionToken=_&&dm(_)?_:void 0,T.exclamationToken=_&&fm(_)?_:void 0,T.type=c,T.initializer=pn(d);let q=T.flags&33554432||qn(T.modifiers)&128;return T.transformFlags=Ae(T.modifiers)|Bn(T.name)|F(T.initializer)|(q||T.questionToken||T.exclamationToken||T.type?1:0)|(wl(T.name)||qn(T.modifiers)&256&&T.initializer?8192:0)|16777216,T.jsDoc=void 0,T}function j(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.questionToken!==(c!==void 0&&dm(c)?c:void 0)||n.exclamationToken!==(c!==void 0&&fm(c)?c:void 0)||n.type!==d||n.initializer!==T?R(Tr(i,_,c,d,T),n):n}function se(n,i,_,c,d,T){let q=ae(173);return q.modifiers=Pe(n),q.name=nt(i),q.questionToken=_,q.typeParameters=Pe(c),q.parameters=Pe(d),q.type=T,q.transformFlags=1,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.typeArguments=void 0,q}function fe(n,i,_,c,d,T,q){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.typeParameters!==d||n.parameters!==T||n.type!==q?ve(se(i,_,c,d,T,q),n):n}function xe(n,i,_,c,d,T,q,pe){let Le=ae(174);if(Le.modifiers=Pe(n),Le.asteriskToken=i,Le.name=nt(_),Le.questionToken=c,Le.exclamationToken=void 0,Le.typeParameters=Pe(d),Le.parameters=me(T),Le.type=q,Le.body=pe,!Le.body)Le.transformFlags=1;else{let en=qn(Le.modifiers)&1024,hr=!!Le.asteriskToken,yr=en&&hr;Le.transformFlags=Ae(Le.modifiers)|F(Le.asteriskToken)|Bn(Le.name)|F(Le.questionToken)|Ae(Le.typeParameters)|Ae(Le.parameters)|F(Le.type)|F(Le.body)&-67108865|(yr?128:en?256:hr?2048:0)|(Le.questionToken||Le.typeParameters||Le.type?1:0)|1024}return Le.typeArguments=void 0,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.flowNode=void 0,Le.endFlowNode=void 0,Le.returnFlowNode=void 0,Le}function Xe(n,i,_,c,d,T,q,pe,Le){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.questionToken!==d||n.typeParameters!==T||n.parameters!==q||n.type!==pe||n.body!==Le?Ke(xe(i,_,c,d,T,q,pe,Le),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),R(n,i)}function ot(n){let i=ae(175);return i.body=n,i.transformFlags=F(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Pt(n,i){return n.body!==i?Tt(ot(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),R(n,i)}function ft(n,i,_){let c=ae(176);return c.modifiers=Pe(n),c.parameters=me(i),c.body=_,c.transformFlags=Ae(c.modifiers)|Ae(c.parameters)|F(c.body)&-67108865|1024,c.typeParameters=void 0,c.type=void 0,c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Br(n,i,_,c){return n.modifiers!==i||n.parameters!==_||n.body!==c?Sr(ft(i,_,c),n):n}function Sr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),ve(n,i)}function Jn(n,i,_,c,d){let T=ae(177);return T.modifiers=Pe(n),T.name=nt(i),T.parameters=me(_),T.type=c,T.body=d,T.body?T.transformFlags=Ae(T.modifiers)|Bn(T.name)|Ae(T.parameters)|F(T.type)|F(T.body)&-67108865|(T.type?1:0):T.transformFlags=1,T.typeArguments=void 0,T.typeParameters=void 0,T.jsDoc=void 0,T.locals=void 0,T.nextContainer=void 0,T.flowNode=void 0,T.endFlowNode=void 0,T.returnFlowNode=void 0,T}function Xn(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.type!==d||n.body!==T?Pi(Jn(i,_,c,d,T),n):n}function Pi(n,i){return n!==i&&(n.typeParameters=i.typeParameters),ve(n,i)}function z(n,i,_,c){let d=ae(178);return d.modifiers=Pe(n),d.name=nt(i),d.parameters=me(_),d.body=c,d.body?d.transformFlags=Ae(d.modifiers)|Bn(d.name)|Ae(d.parameters)|F(d.body)&-67108865|(d.type?1:0):d.transformFlags=1,d.typeArguments=void 0,d.typeParameters=void 0,d.type=void 0,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d.endFlowNode=void 0,d.returnFlowNode=void 0,d}function V(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.body!==d?Q(z(i,_,c,d),n):n}function Q(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),ve(n,i)}function Te(n,i,_){let c=ae(179);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Se(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?ve(Te(i,_,c),n):n}function Ce(n,i,_){let c=ae(180);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function ye(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?ve(Ce(i,_,c),n):n}function Ye(n,i,_){let c=ae(181);return c.modifiers=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function $e(n,i,_,c){return n.parameters!==_||n.type!==c||n.modifiers!==i?ve(Ye(i,_,c),n):n}function Ze(n,i){let _=O(204);return _.type=n,_.literal=i,_.transformFlags=1,_}function Ee(n,i,_){return n.type!==i||n.literal!==_?R(Ze(i,_),n):n}function wn(n){return ut(n)}function at(n,i,_){let c=O(182);return c.assertsModifier=n,c.parameterName=nt(i),c.type=_,c.transformFlags=1,c}function mn(n,i,_,c){return n.assertsModifier!==i||n.parameterName!==_||n.type!==c?R(at(i,_,c),n):n}function ii(n,i){let _=O(183);return _.typeName=nt(n),_.typeArguments=i&&o().parenthesizeTypeArguments(me(i)),_.transformFlags=1,_}function M(n,i,_){return n.typeName!==i||n.typeArguments!==_?R(ii(i,_),n):n}function Be(n,i,_){let c=ae(184);return c.typeParameters=Pe(n),c.parameters=Pe(i),c.type=_,c.transformFlags=1,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function u(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(Be(i,_,c),n):n}function Oe(n,i){return n!==i&&(n.modifiers=i.modifiers),ve(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?qe(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,_,c){let d=ae(185);return d.modifiers=Pe(n),d.typeParameters=Pe(i),d.parameters=Pe(_),d.type=c,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.typeArguments=void 0,d}function qe(n,i,_){return U(void 0,n,i,_)}function cn(...n){return n.length===5?Fe(...n):n.length===4?He(...n):B.fail("Incorrect number of arguments specified.")}function Fe(n,i,_,c,d){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==d?ve(Me(i,_,c,d),n):n}function He(n,i,_,c){return Fe(n,n.modifiers,i,_,c)}function Nt(n,i){let _=O(186);return _.exprName=n,_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags=1,_}function Et(n,i,_){return n.exprName!==i||n.typeArguments!==_?R(Nt(i,_),n):n}function It(n){let i=ae(187);return i.members=me(n),i.transformFlags=1,i}function Gt(n,i){return n.members!==i?R(It(i),n):n}function $n(n){let i=O(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function Ni(n,i){return n.elementType!==i?R($n(i),n):n}function hn(n){let i=O(189);return i.elements=me(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function Y(n,i){return n.elements!==i?R(hn(i),n):n}function de(n,i,_,c){let d=ae(202);return d.dotDotDotToken=n,d.name=i,d.questionToken=_,d.type=c,d.transformFlags=1,d.jsDoc=void 0,d}function ze(n,i,_,c,d){return n.dotDotDotToken!==i||n.name!==_||n.questionToken!==c||n.type!==d?R(de(i,_,c,d),n):n}function ke(n){let i=O(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function L(n,i){return n.type!==i?R(ke(i),n):n}function gt(n){let i=O(191);return i.type=n,i.transformFlags=1,i}function St(n,i){return n.type!==i?R(gt(i),n):n}function Lt(n,i,_){let c=O(n);return c.types=he.createNodeArray(_(i)),c.transformFlags=1,c}function yn(n,i,_){return n.types!==i?R(Lt(n.kind,i,_),n):n}function Fl(n){return Lt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function zs(n,i){return yn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function qr(n){return Lt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Je(n,i){return yn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function mt(n,i,_,c){let d=O(194);return d.checkType=o().parenthesizeCheckTypeOfConditionalType(n),d.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),d.trueType=_,d.falseType=c,d.transformFlags=1,d.locals=void 0,d.nextContainer=void 0,d}function Vl(n,i,_,c,d){return n.checkType!==i||n.extendsType!==_||n.trueType!==c||n.falseType!==d?R(mt(i,_,c,d),n):n}function Qn(n){let i=O(195);return i.typeParameter=n,i.transformFlags=1,i}function Wl(n,i){return n.typeParameter!==i?R(Qn(i),n):n}function Qt(n,i){let _=O(203);return _.head=n,_.templateSpans=me(i),_.transformFlags=1,_}function Gl(n,i,_){return n.head!==i||n.templateSpans!==_?R(Qt(i,_),n):n}function cr(n,i,_,c,d=!1){let T=O(205);return T.argument=n,T.attributes=i,T.assertions&&T.assertions.assertClause&&T.attributes&&(T.assertions.assertClause=T.attributes),T.qualifier=_,T.typeArguments=c&&o().parenthesizeTypeArguments(c),T.isTypeOf=d,T.transformFlags=1,T}function fa(n,i,_,c,d,T=n.isTypeOf){return n.argument!==i||n.attributes!==_||n.qualifier!==c||n.typeArguments!==d||n.isTypeOf!==T?R(cr(i,_,c,d,T),n):n}function rn(n){let i=O(196);return i.type=n,i.transformFlags=1,i}function Dt(n,i){return n.type!==i?R(rn(i),n):n}function D(){let n=O(197);return n.transformFlags=1,n}function an(n,i){let _=O(198);return _.operator=n,_.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),_.transformFlags=1,_}function zr(n,i){return n.type!==i?R(an(n.operator,i),n):n}function lr(n,i){let _=O(199);return _.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),_.indexType=i,_.transformFlags=1,_}function r_(n,i,_){return n.objectType!==i||n.indexType!==_?R(lr(i,_),n):n}function wt(n,i,_,c,d,T){let q=ae(200);return q.readonlyToken=n,q.typeParameter=i,q.nameType=_,q.questionToken=c,q.type=d,q.members=T&&me(T),q.transformFlags=1,q.locals=void 0,q.nextContainer=void 0,q}function Rt(n,i,_,c,d,T,q){return n.readonlyToken!==i||n.typeParameter!==_||n.nameType!==c||n.questionToken!==d||n.type!==T||n.members!==q?R(wt(i,_,c,d,T,q),n):n}function ai(n){let i=O(201);return i.literal=n,i.transformFlags=1,i}function Fr(n,i){return n.literal!==i?R(ai(i),n):n}function Fs(n){let i=O(206);return i.elements=me(n),i.transformFlags|=Ae(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Yl(n,i){return n.elements!==i?R(Fs(i),n):n}function Vr(n){let i=O(207);return i.elements=me(n),i.transformFlags|=Ae(i.elements)|1024|524288,i}function Hl(n,i){return n.elements!==i?R(Vr(i),n):n}function da(n,i,_,c){let d=ae(208);return d.dotDotDotToken=n,d.propertyName=nt(i),d.name=nt(_),d.initializer=pn(c),d.transformFlags|=F(d.dotDotDotToken)|Bn(d.propertyName)|Bn(d.name)|F(d.initializer)|(d.dotDotDotToken?32768:0)|1024,d.flowNode=void 0,d}function _i(n,i,_,c,d){return n.propertyName!==_||n.dotDotDotToken!==i||n.name!==c||n.initializer!==d?R(da(i,_,c,d),n):n}function i_(n,i){let _=O(209),c=n&&Ki(n),d=me(n,c&&ch(c)?!0:void 0);return _.elements=o().parenthesizeExpressionsOfCommaDelimitedList(d),_.multiLine=i,_.transformFlags|=Ae(_.elements),_}function Vs(n,i){return n.elements!==i?R(i_(i,n.multiLine),n):n}function Ii(n,i){let _=ae(210);return _.properties=me(n),_.multiLine=i,_.transformFlags|=Ae(_.properties),_.jsDoc=void 0,_}function Xl(n,i){return n.properties!==i?R(Ii(i,n.multiLine),n):n}function Ws(n,i,_){let c=ae(211);return c.expression=n,c.questionDotToken=i,c.name=_,c.transformFlags=F(c.expression)|F(c.questionDotToken)|(et(c.name)?Ba(c.name):F(c.name)|536870912),c.jsDoc=void 0,c.flowNode=void 0,c}function ur(n,i){let _=Ws(o().parenthesizeLeftSideOfAccess(n,!1),void 0,nt(i));return Fp(n)&&(_.transformFlags|=384),_}function Gs(n,i,_){return Zg(n)?Ys(n,i,n.questionDotToken,Ir(_,et)):n.expression!==i||n.name!==_?R(ur(i,_),n):n}function si(n,i,_){let c=Ws(o().parenthesizeLeftSideOfAccess(n,!0),i,nt(_));return c.flags|=64,c.transformFlags|=32,c}function Ys(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==_||n.name!==c?R(si(i,_,c),n):n}function ma(n,i,_){let c=ae(212);return c.expression=n,c.questionDotToken=i,c.argumentExpression=_,c.transformFlags|=F(c.expression)|F(c.questionDotToken)|F(c.argumentExpression),c.jsDoc=void 0,c.flowNode=void 0,c}function a_(n,i){let _=ma(o().parenthesizeLeftSideOfAccess(n,!1),void 0,mr(i));return Fp(n)&&(_.transformFlags|=384),_}function $l(n,i,_){return e2(n)?Hs(n,i,n.questionDotToken,_):n.expression!==i||n.argumentExpression!==_?R(a_(i,_),n):n}function __(n,i,_){let c=ma(o().parenthesizeLeftSideOfAccess(n,!0),i,mr(_));return c.flags|=64,c.transformFlags|=32,c}function Hs(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==_||n.argumentExpression!==c?R(__(i,_,c),n):n}function Xs(n,i,_,c){let d=ae(213);return d.expression=n,d.questionDotToken=i,d.typeArguments=_,d.arguments=c,d.transformFlags|=F(d.expression)|F(d.questionDotToken)|Ae(d.typeArguments)|Ae(d.arguments),d.typeArguments&&(d.transformFlags|=1),am(d.expression)&&(d.transformFlags|=16384),d}function wr(n,i,_){let c=Xs(o().parenthesizeLeftSideOfAccess(n,!1),void 0,Pe(i),o().parenthesizeExpressionsOfCommaDelimitedList(me(_)));return _6(c.expression)&&(c.transformFlags|=8388608),c}function Ql(n,i,_,c){return Kd(n)?kn(n,i,n.questionDotToken,_,c):n.expression!==i||n.typeArguments!==_||n.arguments!==c?R(wr(i,_,c),n):n}function s_(n,i,_,c){let d=Xs(o().parenthesizeLeftSideOfAccess(n,!0),i,Pe(_),o().parenthesizeExpressionsOfCommaDelimitedList(me(c)));return d.flags|=64,d.transformFlags|=32,d}function kn(n,i,_,c,d){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==_||n.typeArguments!==c||n.arguments!==d?R(s_(i,_,c,d),n):n}function ha(n,i,_){let c=ae(214);return c.expression=o().parenthesizeExpressionOfNew(n),c.typeArguments=Pe(i),c.arguments=_?o().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,c.transformFlags|=F(c.expression)|Ae(c.typeArguments)|Ae(c.arguments)|32,c.typeArguments&&(c.transformFlags|=1),c}function o_(n,i,_,c){return n.expression!==i||n.typeArguments!==_||n.arguments!==c?R(ha(i,_,c),n):n}function c_(n,i,_){let c=O(215);return c.tag=o().parenthesizeLeftSideOfAccess(n,!1),c.typeArguments=Pe(i),c.template=_,c.transformFlags|=F(c.tag)|Ae(c.typeArguments)|F(c.template)|1024,c.typeArguments&&(c.transformFlags|=1),ab(c.template)&&(c.transformFlags|=128),c}function Kl(n,i,_,c){return n.tag!==i||n.typeArguments!==_||n.template!==c?R(c_(i,_,c),n):n}function $s(n,i){let _=O(216);return _.expression=o().parenthesizeOperandOfPrefixUnary(i),_.type=n,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function Qs(n,i,_){return n.type!==i||n.expression!==_?R($s(i,_),n):n}function l_(n){let i=O(217);return i.expression=n,i.transformFlags=F(i.expression),i.jsDoc=void 0,i}function Ks(n,i){return n.expression!==i?R(l_(i),n):n}function u_(n,i,_,c,d,T,q){let pe=ae(218);pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=nt(_),pe.typeParameters=Pe(c),pe.parameters=me(d),pe.type=T,pe.body=q;let Le=qn(pe.modifiers)&1024,en=!!pe.asteriskToken,hr=Le&&en;return pe.transformFlags=Ae(pe.modifiers)|F(pe.asteriskToken)|Bn(pe.name)|Ae(pe.typeParameters)|Ae(pe.parameters)|F(pe.type)|F(pe.body)&-67108865|(hr?128:Le?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Zs(n,i,_,c,d,T,q,pe){return n.name!==c||n.modifiers!==i||n.asteriskToken!==_||n.typeParameters!==d||n.parameters!==T||n.type!==q||n.body!==pe?ve(u_(i,_,c,d,T,q,pe),n):n}function p_(n,i,_,c,d,T){let q=ae(219);q.modifiers=Pe(n),q.typeParameters=Pe(i),q.parameters=me(_),q.type=c,q.equalsGreaterThanToken=d??ut(39),q.body=o().parenthesizeConciseBodyOfArrowFunction(T);let pe=qn(q.modifiers)&1024;return q.transformFlags=Ae(q.modifiers)|Ae(q.typeParameters)|Ae(q.parameters)|F(q.type)|F(q.equalsGreaterThanToken)|F(q.body)&-67108865|(q.typeParameters||q.type?1:0)|(pe?16640:0)|1024,q.typeArguments=void 0,q.jsDoc=void 0,q.locals=void 0,q.nextContainer=void 0,q.flowNode=void 0,q.endFlowNode=void 0,q.returnFlowNode=void 0,q}function eo(n,i,_,c,d,T,q){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==d||n.equalsGreaterThanToken!==T||n.body!==q?ve(p_(i,_,c,d,T,q),n):n}function f_(n){let i=O(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function Zl(n,i){return n.expression!==i?R(f_(i),n):n}function Kt(n){let i=O(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function eu(n,i){return n.expression!==i?R(Kt(i),n):n}function jn(n){let i=O(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression),i}function tu(n,i){return n.expression!==i?R(jn(i),n):n}function kr(n){let i=O(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=F(i.expression)|256|128|2097152,i}function Oi(n,i){return n.expression!==i?R(kr(i),n):n}function d_(n,i){let _=O(224);return _.operator=n,_.operand=o().parenthesizeOperandOfPrefixUnary(i),_.transformFlags|=F(_.operand),(n===46||n===47)&&et(_.operand)&&!za(_.operand)&&!hm(_.operand)&&(_.transformFlags|=268435456),_}function ya(n,i){return n.operand!==i?R(d_(n.operator,i),n):n}function m_(n,i){let _=O(225);return _.operator=i,_.operand=o().parenthesizeOperandOfPostfixUnary(n),_.transformFlags|=F(_.operand),et(_.operand)&&!za(_.operand)&&!hm(_.operand)&&(_.transformFlags|=268435456),_}function to(n,i){return n.operand!==i?R(m_(i,n.operator),n):n}function h_(n,i,_){let c=ae(226),d=Pr(i),T=d.kind;return c.left=o().parenthesizeLeftSideOfBinary(T,n),c.operatorToken=d,c.right=o().parenthesizeRightSideOfBinary(T,c.left,_),c.transformFlags|=F(c.left)|F(c.operatorToken)|F(c.right),T===61?c.transformFlags|=32:T===64?Gf(c.left)?c.transformFlags|=5248|no(c.left):ah(c.left)&&(c.transformFlags|=5120|no(c.left)):T===43||T===68?c.transformFlags|=512:hb(T)&&(c.transformFlags|=16),T===103&&wi(c.left)&&(c.transformFlags|=536870912),c.jsDoc=void 0,c}function no(n){return wh(n)?65536:0}function nu(n,i,_,c){return n.left!==i||n.operatorToken!==_||n.right!==c?R(h_(i,_,c),n):n}function y_(n,i,_,c,d){let T=O(227);return T.condition=o().parenthesizeConditionOfConditionalExpression(n),T.questionToken=i??ut(58),T.whenTrue=o().parenthesizeBranchOfConditionalExpression(_),T.colonToken=c??ut(59),T.whenFalse=o().parenthesizeBranchOfConditionalExpression(d),T.transformFlags|=F(T.condition)|F(T.questionToken)|F(T.whenTrue)|F(T.colonToken)|F(T.whenFalse),T}function ru(n,i,_,c,d,T){return n.condition!==i||n.questionToken!==_||n.whenTrue!==c||n.colonToken!==d||n.whenFalse!==T?R(y_(i,_,c,d,T),n):n}function Kn(n,i){let _=O(228);return _.head=n,_.templateSpans=me(i),_.transformFlags|=F(_.head)|Ae(_.templateSpans)|1024,_}function ro(n,i,_){return n.head!==i||n.templateSpans!==_?R(Kn(i,_),n):n}function ga(n,i,_,c=0){B.assert(!(c&-7177),"Unsupported template flags.");let d;if(_!==void 0&&_!==i&&(d=Qb(n,_),typeof d=="object"))return B.fail("Invalid raw text");if(i===void 0){if(d===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=d}else d!==void 0&&B.assert(i===d,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function io(n){let i=1024;return n&&(i|=128),i}function Mi(n,i,_,c){let d=nn(n);return d.text=i,d.rawText=_,d.templateFlags=c&7176,d.transformFlags=io(d.templateFlags),d}function g_(n,i,_,c){let d=ae(n);return d.text=i,d.rawText=_,d.templateFlags=c&7176,d.transformFlags=io(d.templateFlags),d}function oi(n,i,_,c){return n===15?g_(n,i,_,c):Mi(n,i,_,c)}function ba(n,i,_){return n=ga(16,n,i,_),oi(16,n,i,_)}function b_(n,i,_){return n=ga(16,n,i,_),oi(17,n,i,_)}function iu(n,i,_){return n=ga(16,n,i,_),oi(18,n,i,_)}function ao(n,i,_){return n=ga(16,n,i,_),g_(15,n,i,_)}function _o(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let _=O(229);return _.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),_.asteriskToken=n,_.transformFlags|=F(_.expression)|F(_.asteriskToken)|1024|128|1048576,_}function au(n,i,_){return n.expression!==_||n.asteriskToken!==i?R(_o(i,_),n):n}function so(n){let i=O(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|1024|32768,i}function _u(n,i){return n.expression!==i?R(so(i),n):n}function oo(n,i,_,c,d){let T=ae(231);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),T.transformFlags|=Ae(T.modifiers)|Bn(T.name)|Ae(T.typeParameters)|Ae(T.heritageClauses)|Ae(T.members)|(T.typeParameters?1:0)|1024,T.jsDoc=void 0,T}function Ji(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(oo(i,_,c,d,T),n):n}function su(){return O(232)}function co(n,i){let _=O(233);return _.expression=o().parenthesizeLeftSideOfAccess(n,!1),_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags|=F(_.expression)|Ae(_.typeArguments)|1024,_}function En(n,i,_){return n.expression!==i||n.typeArguments!==_?R(co(i,_),n):n}function va(n,i){let _=O(234);return _.expression=n,_.type=i,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function lo(n,i,_){return n.expression!==i||n.type!==_?R(va(i,_),n):n}function uo(n){let i=O(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=F(i.expression)|1,i}function v_(n,i){return t2(n)?fo(n,i):n.expression!==i?R(uo(i),n):n}function po(n,i){let _=O(238);return _.expression=n,_.type=i,_.transformFlags|=F(_.expression)|F(_.type)|1,_}function x_(n,i,_){return n.expression!==i||n.type!==_?R(po(i,_),n):n}function Ln(n){let i=O(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=F(i.expression)|1,i}function fo(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?R(Ln(i),n):n}function xa(n,i){let _=O(236);switch(_.keywordToken=n,_.name=i,_.transformFlags|=F(_.name),n){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return B.assertNever(n)}return _.flowNode=void 0,_}function pr(n,i){return n.name!==i?R(xa(n.keywordToken,i),n):n}function ji(n,i){let _=O(239);return _.expression=n,_.literal=i,_.transformFlags|=F(_.expression)|F(_.literal)|1024,_}function mo(n,i,_){return n.expression!==i||n.literal!==_?R(ji(i,_),n):n}function ho(){let n=O(240);return n.transformFlags|=1024,n}function ci(n,i){let _=O(241);return _.statements=me(n),_.multiLine=i,_.transformFlags|=Ae(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function yo(n,i){return n.statements!==i?R(ci(i,n.multiLine),n):n}function go(n,i){let _=O(243);return _.modifiers=Pe(n),_.declarationList=Zr(i)?C_(i):i,_.transformFlags|=Ae(_.modifiers)|F(_.declarationList),qn(_.modifiers)&128&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function bo(n,i,_){return n.modifiers!==i||n.declarationList!==_?R(go(i,_),n):n}function T_(){let n=O(242);return n.jsDoc=void 0,n}function Li(n){let i=O(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function ou(n,i){return n.expression!==i?R(Li(i),n):n}function S_(n,i,_){let c=O(245);return c.expression=n,c.thenStatement=Zn(i),c.elseStatement=Zn(_),c.transformFlags|=F(c.expression)|F(c.thenStatement)|F(c.elseStatement),c.jsDoc=void 0,c.flowNode=void 0,c}function cu(n,i,_,c){return n.expression!==i||n.thenStatement!==_||n.elseStatement!==c?R(S_(i,_,c),n):n}function w_(n,i){let _=O(246);return _.statement=Zn(n),_.expression=i,_.transformFlags|=F(_.statement)|F(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function lu(n,i,_){return n.statement!==i||n.expression!==_?R(w_(i,_),n):n}function vo(n,i){let _=O(247);return _.expression=n,_.statement=Zn(i),_.transformFlags|=F(_.expression)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function uu(n,i,_){return n.expression!==i||n.statement!==_?R(vo(i,_),n):n}function k_(n,i,_,c){let d=O(248);return d.initializer=n,d.condition=i,d.incrementor=_,d.statement=Zn(c),d.transformFlags|=F(d.initializer)|F(d.condition)|F(d.incrementor)|F(d.statement),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function xo(n,i,_,c,d){return n.initializer!==i||n.condition!==_||n.incrementor!==c||n.statement!==d?R(k_(i,_,c,d),n):n}function To(n,i,_){let c=O(249);return c.initializer=n,c.expression=i,c.statement=Zn(_),c.transformFlags|=F(c.initializer)|F(c.expression)|F(c.statement),c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c}function pu(n,i,_,c){return n.initializer!==i||n.expression!==_||n.statement!==c?R(To(i,_,c),n):n}function So(n,i,_,c){let d=O(250);return d.awaitModifier=n,d.initializer=i,d.expression=o().parenthesizeExpressionForDisallowedComma(_),d.statement=Zn(c),d.transformFlags|=F(d.awaitModifier)|F(d.initializer)|F(d.expression)|F(d.statement)|1024,n&&(d.transformFlags|=128),d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d.flowNode=void 0,d}function fu(n,i,_,c,d){return n.awaitModifier!==i||n.initializer!==_||n.expression!==c||n.statement!==d?R(So(i,_,c,d),n):n}function wo(n){let i=O(251);return i.label=nt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function ko(n,i){return n.label!==i?R(wo(i),n):n}function E_(n){let i=O(252);return i.label=nt(n),i.transformFlags|=F(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function Eo(n,i){return n.label!==i?R(E_(i),n):n}function Ao(n){let i=O(253);return i.expression=n,i.transformFlags|=F(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function Co(n,i){return n.expression!==i?R(Ao(i),n):n}function A_(n,i){let _=O(254);return _.expression=n,_.statement=Zn(i),_.transformFlags|=F(_.expression)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function Do(n,i,_){return n.expression!==i||n.statement!==_?R(A_(i,_),n):n}function Wr(n,i){let _=O(255);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.caseBlock=i,_.transformFlags|=F(_.expression)|F(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function du(n,i,_){return n.expression!==i||n.caseBlock!==_?R(Wr(i,_),n):n}function Po(n,i){let _=O(256);return _.label=nt(n),_.statement=Zn(i),_.transformFlags|=F(_.label)|F(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function No(n,i,_){return n.label!==i||n.statement!==_?R(Po(i,_),n):n}function Io(n){let i=O(257);return i.expression=n,i.transformFlags|=F(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function mu(n,i){return n.expression!==i?R(Io(i),n):n}function Oo(n,i,_){let c=O(258);return c.tryBlock=n,c.catchClause=i,c.finallyBlock=_,c.transformFlags|=F(c.tryBlock)|F(c.catchClause)|F(c.finallyBlock),c.jsDoc=void 0,c.flowNode=void 0,c}function Mo(n,i,_,c){return n.tryBlock!==i||n.catchClause!==_||n.finallyBlock!==c?R(Oo(i,_,c),n):n}function Jo(){let n=O(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function Ta(n,i,_,c){let d=ae(260);return d.name=nt(n),d.exclamationToken=i,d.type=_,d.initializer=pn(c),d.transformFlags|=Bn(d.name)|F(d.initializer)|(d.exclamationToken??d.type?1:0),d.jsDoc=void 0,d}function hu(n,i,_,c,d){return n.name!==i||n.type!==c||n.exclamationToken!==_||n.initializer!==d?R(Ta(i,_,c,d),n):n}function C_(n,i=0){let _=O(261);return _.flags|=i&7,_.declarations=me(n),_.transformFlags|=Ae(_.declarations)|4194304,i&7&&(_.transformFlags|=263168),i&4&&(_.transformFlags|=4),_}function yu(n,i){return n.declarations!==i?R(C_(i,n.flags),n):n}function D_(n,i,_,c,d,T,q){let pe=ae(262);if(pe.modifiers=Pe(n),pe.asteriskToken=i,pe.name=nt(_),pe.typeParameters=Pe(c),pe.parameters=me(d),pe.type=T,pe.body=q,!pe.body||qn(pe.modifiers)&128)pe.transformFlags=1;else{let Le=qn(pe.modifiers)&1024,en=!!pe.asteriskToken,hr=Le&&en;pe.transformFlags=Ae(pe.modifiers)|F(pe.asteriskToken)|Bn(pe.name)|Ae(pe.typeParameters)|Ae(pe.parameters)|F(pe.type)|F(pe.body)&-67108865|(hr?128:Le?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function jo(n,i,_,c,d,T,q,pe){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.typeParameters!==d||n.parameters!==T||n.type!==q||n.body!==pe?gu(D_(i,_,c,d,T,q,pe),n):n}function gu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),ve(n,i)}function P_(n,i,_,c,d){let T=ae(263);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),qn(T.modifiers)&128?T.transformFlags=1:(T.transformFlags|=Ae(T.modifiers)|Bn(T.name)|Ae(T.typeParameters)|Ae(T.heritageClauses)|Ae(T.members)|(T.typeParameters?1:0)|1024,T.transformFlags&8192&&(T.transformFlags|=1)),T.jsDoc=void 0,T}function N_(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(P_(i,_,c,d,T),n):n}function Lo(n,i,_,c,d){let T=ae(264);return T.modifiers=Pe(n),T.name=nt(i),T.typeParameters=Pe(_),T.heritageClauses=Pe(c),T.members=me(d),T.transformFlags=1,T.jsDoc=void 0,T}function ct(n,i,_,c,d,T){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==d||n.members!==T?R(Lo(i,_,c,d,T),n):n}function Er(n,i,_,c){let d=ae(265);return d.modifiers=Pe(n),d.name=nt(i),d.typeParameters=Pe(_),d.type=c,d.transformFlags=1,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function I_(n,i,_,c,d){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.type!==d?R(Er(i,_,c,d),n):n}function Ar(n,i,_){let c=ae(266);return c.modifiers=Pe(n),c.name=nt(i),c.members=me(_),c.transformFlags|=Ae(c.modifiers)|F(c.name)|Ae(c.members)|1,c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Ro(n,i,_,c){return n.modifiers!==i||n.name!==_||n.members!==c?R(Ar(i,_,c),n):n}function At(n,i,_,c=0){let d=ae(267);return d.modifiers=Pe(n),d.flags|=c&2088,d.name=i,d.body=_,qn(d.modifiers)&128?d.transformFlags=1:d.transformFlags|=Ae(d.modifiers)|F(d.name)|F(d.body)|1,d.transformFlags&=-67108865,d.jsDoc=void 0,d.locals=void 0,d.nextContainer=void 0,d}function Cr(n,i,_,c){return n.modifiers!==i||n.name!==_||n.body!==c?R(At(i,_,c,n.flags),n):n}function Ut(n){let i=O(268);return i.statements=me(n),i.transformFlags|=Ae(i.statements),i.jsDoc=void 0,i}function bu(n,i){return n.statements!==i?R(Ut(i),n):n}function Uo(n){let i=O(269);return i.clauses=me(n),i.transformFlags|=Ae(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function vu(n,i){return n.clauses!==i?R(Uo(i),n):n}function O_(n){let i=ae(270);return i.name=nt(n),i.transformFlags|=Ba(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function xu(n,i){return n.name!==i?Tu(O_(i),n):n}function Tu(n,i){return n!==i&&(n.modifiers=i.modifiers),R(n,i)}function Bo(n,i,_,c){let d=ae(271);return d.modifiers=Pe(n),d.name=nt(_),d.isTypeOnly=i,d.moduleReference=c,d.transformFlags|=Ae(d.modifiers)|Ba(d.name)|F(d.moduleReference),ed(d.moduleReference)||(d.transformFlags|=1),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function qo(n,i,_,c,d){return n.modifiers!==i||n.isTypeOnly!==_||n.name!==c||n.moduleReference!==d?R(Bo(i,_,c,d),n):n}function zo(n,i,_,c){let d=O(272);return d.modifiers=Pe(n),d.importClause=i,d.moduleSpecifier=_,d.attributes=d.assertClause=c,d.transformFlags|=F(d.importClause)|F(d.moduleSpecifier),d.transformFlags&=-67108865,d.jsDoc=void 0,d}function Fo(n,i,_,c,d){return n.modifiers!==i||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==d?R(zo(i,_,c,d),n):n}function M_(n,i,_){let c=ae(273);return c.isTypeOnly=n,c.name=i,c.namedBindings=_,c.transformFlags|=F(c.name)|F(c.namedBindings),n&&(c.transformFlags|=1),c.transformFlags&=-67108865,c}function Vo(n,i,_,c){return n.isTypeOnly!==i||n.name!==_||n.namedBindings!==c?R(M_(i,_,c),n):n}function Wo(n,i){let _=O(300);return _.elements=me(n),_.multiLine=i,_.token=132,_.transformFlags|=4,_}function Sa(n,i,_){return n.elements!==i||n.multiLine!==_?R(Wo(i,_),n):n}function J_(n,i){let _=O(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Go(n,i,_){return n.name!==i||n.value!==_?R(J_(i,_),n):n}function j_(n,i){let _=O(302);return _.assertClause=n,_.multiLine=i,_}function Su(n,i,_){return n.assertClause!==i||n.multiLine!==_?R(j_(i,_),n):n}function wa(n,i,_){let c=O(300);return c.token=_??118,c.elements=me(n),c.multiLine=i,c.transformFlags|=4,c}function wu(n,i,_){return n.elements!==i||n.multiLine!==_?R(wa(i,_,n.token),n):n}function L_(n,i){let _=O(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function ku(n,i,_){return n.name!==i||n.value!==_?R(L_(i,_),n):n}function Yo(n){let i=ae(274);return i.name=n,i.transformFlags|=F(i.name),i.transformFlags&=-67108865,i}function Eu(n,i){return n.name!==i?R(Yo(i),n):n}function Ho(n){let i=ae(280);return i.name=n,i.transformFlags|=F(i.name)|32,i.transformFlags&=-67108865,i}function Au(n,i){return n.name!==i?R(Ho(i),n):n}function R_(n){let i=O(275);return i.elements=me(n),i.transformFlags|=Ae(i.elements),i.transformFlags&=-67108865,i}function Gr(n,i){return n.elements!==i?R(R_(i),n):n}function Xo(n,i,_){let c=ae(276);return c.isTypeOnly=n,c.propertyName=i,c.name=_,c.transformFlags|=F(c.propertyName)|F(c.name),c.transformFlags&=-67108865,c}function $o(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?R(Xo(i,_,c),n):n}function li(n,i,_){let c=ae(277);return c.modifiers=Pe(n),c.isExportEquals=i,c.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,_):o().parenthesizeExpressionOfExportDefault(_),c.transformFlags|=Ae(c.modifiers)|F(c.expression),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function U_(n,i,_){return n.modifiers!==i||n.expression!==_?R(li(i,n.isExportEquals,_),n):n}function B_(n,i,_,c,d){let T=ae(278);return T.modifiers=Pe(n),T.isTypeOnly=i,T.exportClause=_,T.moduleSpecifier=c,T.attributes=T.assertClause=d,T.transformFlags|=Ae(T.modifiers)|F(T.exportClause)|F(T.moduleSpecifier),T.transformFlags&=-67108865,T.jsDoc=void 0,T}function ui(n,i,_,c,d,T){return n.modifiers!==i||n.isTypeOnly!==_||n.exportClause!==c||n.moduleSpecifier!==d||n.attributes!==T?Cu(B_(i,_,c,d,T),n):n}function Cu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),R(n,i)}function q_(n){let i=O(279);return i.elements=me(n),i.transformFlags|=Ae(i.elements),i.transformFlags&=-67108865,i}function Qo(n,i){return n.elements!==i?R(q_(i),n):n}function z_(n,i,_){let c=O(281);return c.isTypeOnly=n,c.propertyName=nt(i),c.name=nt(_),c.transformFlags|=F(c.propertyName)|F(c.name),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Du(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?R(z_(i,_,c),n):n}function Ko(){let n=ae(282);return n.jsDoc=void 0,n}function Zo(n){let i=O(283);return i.expression=n,i.transformFlags|=F(i.expression),i.transformFlags&=-67108865,i}function ec(n,i){return n.expression!==i?R(Zo(i),n):n}function Pu(n){return O(n)}function tc(n,i,_=!1){let c=F_(n,_?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return c.postfix=_,c}function F_(n,i){let _=O(n);return _.type=i,_}function Nu(n,i,_){return i.type!==_?R(tc(n,_,i.postfix),i):i}function Iu(n,i,_){return i.type!==_?R(F_(n,_),i):i}function nc(n,i){let _=ae(317);return _.parameters=Pe(n),_.type=i,_.transformFlags=Ae(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function Ou(n,i,_){return n.parameters!==i||n.type!==_?R(nc(i,_),n):n}function rc(n,i=!1){let _=ae(322);return _.jsDocPropertyTags=Pe(n),_.isArrayType=i,_}function Mu(n,i,_){return n.jsDocPropertyTags!==i||n.isArrayType!==_?R(rc(i,_),n):n}function ka(n){let i=O(309);return i.type=n,i}function Ju(n,i){return n.type!==i?R(ka(i),n):n}function ic(n,i,_){let c=ae(323);return c.typeParameters=Pe(n),c.parameters=me(i),c.type=_,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c}function Ea(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?R(ic(i,_,c),n):n}function ln(n){let i=el(n.kind);return n.tagName.escapedText===Ra(i)?n.tagName:Ve(i)}function Rn(n,i,_){let c=O(n);return c.tagName=i,c.comment=_,c}function pi(n,i,_){let c=ae(n);return c.tagName=i,c.comment=_,c}function V_(n,i,_,c){let d=Rn(345,n??Ve("template"),c);return d.constraint=i,d.typeParameters=me(_),d}function W_(n,i=ln(n),_,c,d){return n.tagName!==i||n.constraint!==_||n.typeParameters!==c||n.comment!==d?R(V_(i,_,c,d),n):n}function ac(n,i,_,c){let d=pi(346,n??Ve("typedef"),c);return d.typeExpression=i,d.fullName=_,d.name=ym(_),d.locals=void 0,d.nextContainer=void 0,d}function _c(n,i=ln(n),_,c,d){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==d?R(ac(i,_,c,d),n):n}function sc(n,i,_,c,d,T){let q=pi(341,n??Ve("param"),T);return q.typeExpression=c,q.name=i,q.isNameFirst=!!d,q.isBracketed=_,q}function ju(n,i=ln(n),_,c,d,T,q){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==d||n.isNameFirst!==T||n.comment!==q?R(sc(i,_,c,d,T,q),n):n}function G_(n,i,_,c,d,T){let q=pi(348,n??Ve("prop"),T);return q.typeExpression=c,q.name=i,q.isNameFirst=!!d,q.isBracketed=_,q}function Lu(n,i=ln(n),_,c,d,T,q){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==d||n.isNameFirst!==T||n.comment!==q?R(G_(i,_,c,d,T,q),n):n}function Y_(n,i,_,c){let d=pi(338,n??Ve("callback"),c);return d.typeExpression=i,d.fullName=_,d.name=ym(_),d.locals=void 0,d.nextContainer=void 0,d}function Ru(n,i=ln(n),_,c,d){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==d?R(Y_(i,_,c,d),n):n}function Aa(n,i,_){let c=Rn(339,n??Ve("overload"),_);return c.typeExpression=i,c}function oc(n,i=ln(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?R(Aa(i,_,c),n):n}function fi(n,i,_){let c=Rn(328,n??Ve("augments"),_);return c.class=i,c}function Uu(n,i=ln(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?R(fi(i,_,c),n):n}function Yr(n,i,_){let c=Rn(329,n??Ve("implements"),_);return c.class=i,c}function Ri(n,i,_){let c=Rn(347,n??Ve("see"),_);return c.name=i,c}function Bu(n,i,_,c){return n.tagName!==i||n.name!==_||n.comment!==c?R(Ri(i,_,c),n):n}function cc(n){let i=O(310);return i.name=n,i}function qu(n,i){return n.name!==i?R(cc(i),n):n}function lc(n,i){let _=O(311);return _.left=n,_.right=i,_.transformFlags|=F(_.left)|F(_.right),_}function zu(n,i,_){return n.left!==i||n.right!==_?R(lc(i,_),n):n}function H_(n,i){let _=O(324);return _.name=n,_.text=i,_}function Fu(n,i,_){return n.name!==i?R(H_(i,_),n):n}function uc(n,i){let _=O(325);return _.name=n,_.text=i,_}function Vu(n,i,_){return n.name!==i?R(uc(i,_),n):n}function pc(n,i){let _=O(326);return _.name=n,_.text=i,_}function Wu(n,i,_){return n.name!==i?R(pc(i,_),n):n}function Gu(n,i=ln(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?R(Yr(i,_,c),n):n}function fc(n,i,_){return Rn(n,i??Ve(el(n)),_)}function Yu(n,i,_=ln(i),c){return i.tagName!==_||i.comment!==c?R(fc(n,_,c),i):i}function dc(n,i,_,c){let d=Rn(n,i??Ve(el(n)),c);return d.typeExpression=_,d}function Hu(n,i,_=ln(i),c,d){return i.tagName!==_||i.typeExpression!==c||i.comment!==d?R(dc(n,_,c,d),i):i}function mc(n,i){return Rn(327,n,i)}function Xu(n,i,_){return n.tagName!==i||n.comment!==_?R(mc(i,_),n):n}function Ca(n,i,_){let c=pi(340,n??Ve(el(340)),_);return c.typeExpression=i,c.locals=void 0,c.nextContainer=void 0,c}function $u(n,i=ln(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?R(Ca(i,_,c),n):n}function X_(n,i,_,c,d){let T=Rn(351,n??Ve("import"),d);return T.importClause=i,T.moduleSpecifier=_,T.attributes=c,T.comment=d,T}function hc(n,i,_,c,d,T){return n.tagName!==i||n.comment!==T||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==d?R(X_(i,_,c,d,T),n):n}function yc(n){let i=O(321);return i.text=n,i}function Da(n,i){return n.text!==i?R(yc(i),n):n}function $_(n,i){let _=O(320);return _.comment=n,_.tags=Pe(i),_}function Qu(n,i,_){return n.comment!==i||n.tags!==_?R($_(i,_),n):n}function gc(n,i,_){let c=O(284);return c.openingElement=n,c.children=me(i),c.closingElement=_,c.transformFlags|=F(c.openingElement)|Ae(c.children)|F(c.closingElement)|2,c}function Ku(n,i,_,c){return n.openingElement!==i||n.children!==_||n.closingElement!==c?R(gc(i,_,c),n):n}function Pa(n,i,_){let c=O(285);return c.tagName=n,c.typeArguments=Pe(i),c.attributes=_,c.transformFlags|=F(c.tagName)|Ae(c.typeArguments)|F(c.attributes)|2,c.typeArguments&&(c.transformFlags|=1),c}function bc(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?R(Pa(i,_,c),n):n}function Q_(n,i,_){let c=O(286);return c.tagName=n,c.typeArguments=Pe(i),c.attributes=_,c.transformFlags|=F(c.tagName)|Ae(c.typeArguments)|F(c.attributes)|2,i&&(c.transformFlags|=1),c}function K_(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?R(Q_(i,_,c),n):n}function Zt(n){let i=O(287);return i.tagName=n,i.transformFlags|=F(i.tagName)|2,i}function vc(n,i){return n.tagName!==i?R(Zt(i),n):n}function Z_(n,i,_){let c=O(288);return c.openingFragment=n,c.children=me(i),c.closingFragment=_,c.transformFlags|=F(c.openingFragment)|Ae(c.children)|F(c.closingFragment)|2,c}function Zu(n,i,_,c){return n.openingFragment!==i||n.children!==_||n.closingFragment!==c?R(Z_(i,_,c),n):n}function Ui(n,i){let _=O(12);return _.text=n,_.containsOnlyTriviaWhiteSpaces=!!i,_.transformFlags|=2,_}function ep(n,i,_){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==_?R(Ui(i,_),n):n}function tp(){let n=O(289);return n.transformFlags|=2,n}function np(){let n=O(290);return n.transformFlags|=2,n}function Bi(n,i){let _=ae(291);return _.name=n,_.initializer=i,_.transformFlags|=F(_.name)|F(_.initializer)|2,_}function rp(n,i,_){return n.name!==i||n.initializer!==_?R(Bi(i,_),n):n}function xc(n){let i=ae(292);return i.properties=me(n),i.transformFlags|=Ae(i.properties)|2,i}function ip(n,i){return n.properties!==i?R(xc(i),n):n}function Tc(n){let i=O(293);return i.expression=n,i.transformFlags|=F(i.expression)|2,i}function es(n,i){return n.expression!==i?R(Tc(i),n):n}function di(n,i){let _=O(294);return _.dotDotDotToken=n,_.expression=i,_.transformFlags|=F(_.dotDotDotToken)|F(_.expression)|2,_}function ap(n,i){return n.expression!==i?R(di(n.dotDotDotToken,i),n):n}function Na(n,i){let _=O(295);return _.namespace=n,_.name=i,_.transformFlags|=F(_.namespace)|F(_.name)|2,_}function Sc(n,i,_){return n.namespace!==i||n.name!==_?R(Na(i,_),n):n}function wc(n,i){let _=O(296);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.statements=me(i),_.transformFlags|=F(_.expression)|Ae(_.statements),_.jsDoc=void 0,_}function qi(n,i,_){return n.expression!==i||n.statements!==_?R(wc(i,_),n):n}function ts(n){let i=O(297);return i.statements=me(n),i.transformFlags=Ae(i.statements),i}function _p(n,i){return n.statements!==i?R(ts(i),n):n}function kc(n,i){let _=O(298);switch(_.token=n,_.types=me(i),_.transformFlags|=Ae(_.types),n){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return B.assertNever(n)}return _}function Ec(n,i){return n.types!==i?R(kc(n.token,i),n):n}function ns(n,i){let _=O(299);return _.variableDeclaration=Bt(n),_.block=i,_.transformFlags|=F(_.variableDeclaration)|F(_.block)|(n?0:64),_.locals=void 0,_.nextContainer=void 0,_}function Ac(n,i,_){return n.variableDeclaration!==i||n.block!==_?R(ns(i,_),n):n}function Dr(n,i){let _=ae(303);return _.name=nt(n),_.initializer=o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=Bn(_.name)|F(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function Cc(n,i,_){return n.name!==i||n.initializer!==_?sp(Dr(i,_),n):n}function sp(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),R(n,i)}function Dc(n,i){let _=ae(304);return _.name=nt(n),_.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=Ba(_.name)|F(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function op(n,i,_){return n.name!==i||n.objectAssignmentInitializer!==_?Pc(Dc(i,_),n):n}function Pc(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),R(n,i)}function rs(n){let i=ae(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=F(i.expression)|128|65536,i.jsDoc=void 0,i}function Un(n,i){return n.expression!==i?R(rs(i),n):n}function is(n,i){let _=ae(306);return _.name=nt(n),_.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=F(_.name)|F(_.initializer)|1,_.jsDoc=void 0,_}function cp(n,i,_){return n.name!==i||n.initializer!==_?R(is(i,_),n):n}function lp(n,i,_){let c=t.createBaseSourceFileNode(307);return c.statements=me(n),c.endOfFileToken=i,c.flags|=_,c.text="",c.fileName="",c.path="",c.resolvedPath="",c.originalFileName="",c.languageVersion=1,c.languageVariant=0,c.scriptKind=0,c.isDeclarationFile=!1,c.hasNoDefaultLib=!1,c.transformFlags|=Ae(c.statements)|F(c.endOfFileToken),c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.nodeCount=0,c.identifierCount=0,c.symbolCount=0,c.parseDiagnostics=void 0,c.bindDiagnostics=void 0,c.bindSuggestionDiagnostics=void 0,c.lineMap=void 0,c.externalModuleIndicator=void 0,c.setExternalModuleIndicator=void 0,c.pragmas=void 0,c.checkJsDirective=void 0,c.referencedFiles=void 0,c.typeReferenceDirectives=void 0,c.libReferenceDirectives=void 0,c.amdDependencies=void 0,c.commentDirectives=void 0,c.identifiers=void 0,c.packageJsonLocations=void 0,c.packageJsonScope=void 0,c.imports=void 0,c.moduleAugmentations=void 0,c.ambientModuleNames=void 0,c.classifiableNames=void 0,c.impliedNodeFormat=void 0,c}function Nc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),i.redirectInfo=n,i}function Ic(n){let i=Nc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function as(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let _ in n)if(!(Mr(i,_)||!Mr(n,_))){if(_==="emitNode"){i.emitNode=void 0;continue}i[_]=n[_]}return i}function Oc(n){let i=n.redirectInfo?Ic(n):as(n);return a(i,n),i}function up(n,i,_,c,d,T,q){let pe=Oc(n);return pe.statements=me(i),pe.isDeclarationFile=_,pe.referencedFiles=c,pe.typeReferenceDirectives=d,pe.hasNoDefaultLib=T,pe.libReferenceDirectives=q,pe.transformFlags=Ae(pe.statements)|F(pe.endOfFileToken),pe}function Mc(n,i,_=n.isDeclarationFile,c=n.referencedFiles,d=n.typeReferenceDirectives,T=n.hasNoDefaultLib,q=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==_||n.referencedFiles!==c||n.typeReferenceDirectives!==d||n.hasNoDefaultLib!==T||n.libReferenceDirectives!==q?R(up(n,i,_,c,d,T,q),n):n}function Jc(n){let i=O(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function pp(n,i){return n.sourceFiles!==i?R(Jc(i),n):n}function Ia(n,i=!1,_){let c=O(237);return c.type=n,c.isSpread=i,c.tupleNameSource=_,c}function jc(n){let i=O(352);return id(i,n),i}function fp(n){let i=O(353);return i.original=n,bn(i,n),i}function Lc(n,i){let _=O(354);return _.expression=n,_.original=i,_.transformFlags|=F(_.expression)|1,bn(_,i),_}function Rc(n,i){return n.expression!==i?R(Lc(i,n.original),n):n}function dp(n){if(Ua(n)&&!pl(n)&&!n.original&&!n.emitNode&&!n.id){if(v6(n))return n.elements;if(ia(n)&&i6(n.operatorToken))return[n.left,n.right]}return n}function _s(n){let i=O(355);return i.elements=me(wy(n,dp)),i.transformFlags|=Ae(i.elements),i}function Uc(n,i){return n.elements!==i?R(_s(i),n):n}function ss(n,i){let _=O(356);return _.expression=n,_.thisArg=i,_.transformFlags|=F(_.expression)|F(_.thisArg),_}function Bc(n,i,_){return n.expression!==i||n.thisArg!==_?R(ss(i,_),n):n}function mp(n){let i=Tn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function hp(n){let i=Tn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let _=getIdentifierTypeArguments(n);return _&&setIdentifierTypeArguments(i,_),i}function qc(n){let i=Mn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function zc(n){let i=Mn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function os(n){if(n===void 0)return n;if(hh(n))return Oc(n);if(za(n))return mp(n);if(et(n))return hp(n);if(T1(n))return qc(n);if(wi(n))return zc(n);let i=Cf(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let _ in n)Mr(i,_)||!Mr(n,_)||(i[_]=n[_]);return i}function yp(n,i,_){return wr(u_(void 0,void 0,void 0,void 0,i?[i]:[],void 0,ci(n,!0)),void 0,_?[_]:[])}function gp(n,i,_){return wr(p_(void 0,void 0,i?[i]:[],void 0,void 0,ci(n,!0)),void 0,_?[_]:[])}function mi(){return jn(X("0"))}function Fc(n){return li(void 0,!1,n)}function bp(n){return B_(void 0,!1,q_([z_(!1,void 0,n)]))}function cs(n,i){return i==="null"?he.createStrictEquality(n,jt()):i==="undefined"?he.createStrictEquality(n,mi()):he.createStrictEquality(Kt(n),ht(i))}function vp(n,i){return i==="null"?he.createStrictInequality(n,jt()):i==="undefined"?he.createStrictInequality(n,mi()):he.createStrictInequality(Kt(n),ht(i))}function Hr(n,i,_){return Kd(n)?s_(si(n,void 0,i),void 0,void 0,_):wr(ur(n,i),void 0,_)}function xp(n,i,_){return Hr(n,"bind",[i,..._])}function Tp(n,i,_){return Hr(n,"call",[i,..._])}function Sp(n,i,_){return Hr(n,"apply",[i,_])}function zi(n,i,_){return Hr(Ve(n),i,_)}function Fi(n,i){return Hr(n,"slice",i===void 0?[]:[mr(i)])}function wp(n,i){return Hr(n,"concat",i)}function Vc(n,i,_){return zi("Object","defineProperty",[n,mr(i),_])}function kp(n,i){return zi("Object","getOwnPropertyDescriptor",[n,mr(i)])}function Ep(n,i,_){return zi("Reflect","get",_?[n,i,_]:[n,i])}function Wc(n,i,_,c){return zi("Reflect","set",c?[n,i,_,c]:[n,i,_])}function hi(n,i,_){return _?(n.push(Dr(i,_)),!0):!1}function Ap(n,i){let _=[];hi(_,"enumerable",mr(n.enumerable)),hi(_,"configurable",mr(n.configurable));let c=hi(_,"writable",mr(n.writable));c=hi(_,"value",n.value)||c;let d=hi(_,"get",n.get);return d=hi(_,"set",n.set)||d,B.assert(!(c&&d),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ii(_,!i)}function Cp(n,i){switch(n.kind){case 217:return Ks(n,i);case 216:return Qs(n,n.type,i);case 234:return lo(n,i,n.type);case 238:return x_(n,i,n.type);case 235:return v_(n,i);case 354:return Rc(n,i)}}function Gc(n){return Cl(n)&&Ua(n)&&Ua(getSourceMapRange(n))&&Ua(getCommentRange(n))&&!qt(getSyntheticLeadingComments(n))&&!qt(getSyntheticTrailingComments(n))}function ls(n,i,_=15){return n&&Sh(n,_)&&!Gc(n)?Cp(n,ls(n.expression,i)):i}function us(n,i,_){if(!i)return n;let c=No(i,i.label,uh(i.statement)?us(n,i.statement):n);return _&&_(i),c}function s(n,i){let _=Jf(n);switch(_.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return _.elements.length!==0;case 210:return _.properties.length>0;default:return!0}}function p(n,i,_,c=!1){let d=ad(n,15),T,q;return am(d)?(T=Vt(),q=d):Fp(d)?(T=Vt(),q=_!==void 0&&_<2?bn(Ve("_super"),d):d):Wa(d)&8192?(T=mi(),q=o().parenthesizeLeftSideOfAccess(d,!1)):br(d)?s(d.expression,c)?(T=_r(i),q=ur(bn(he.createAssignment(T,d.expression),d.expression),d.name),bn(q,d)):(T=d.expression,q=d):_a(d)?s(d.expression,c)?(T=_r(i),q=a_(bn(he.createAssignment(T,d.expression),d.expression),d.argumentExpression),bn(q,d)):(T=d.expression,q=d):(T=mi(),q=o().parenthesizeLeftSideOfAccess(n,!1)),{target:q,thisArg:T}}function m(n,i){return ur(l_(Ii([z(void 0,"value",[vr(void 0,void 0,n,void 0,void 0,void 0)],ci([Li(i)]))])),"value")}function y(n){return n.length>10?_s(n):jy(n,he.createComma)}function x(n,i,_,c=0,d){let T=d?n&&Ef(n):h1(n);if(T&&et(T)&&!za(T)){let q=Rf(bn(os(T),T),T.parent);return c|=Wa(T),_||(c|=96),i||(c|=3072),c&&setEmitFlags(q,c),q}return Vn(n)}function N(n,i,_){return x(n,i,_,98304)}function $(n,i,_,c){return x(n,i,_,32768,c)}function _e(n,i,_){return x(n,i,_,16384)}function ee(n,i,_){return x(n,i,_)}function K(n,i,_,c){let d=ur(n,Ua(i)?i:os(i));bn(d,i);let T=0;return c||(T|=96),_||(T|=3072),T&&setEmitFlags(d,T),d}function le(n,i,_,c){return n&&Os(i,32)?K(n,x(i),_,c):_e(i,_,c)}function Ue(n,i,_,c){let d=Yt(n,i,0,_);return un(n,i,d,c)}function je(n){return Qa(n.expression)&&n.expression.text==="use strict"}function De(){return U6(Li(ht("use strict")))}function Yt(n,i,_=0,c){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let d=!1,T=n.length;for(;_pe&&en.splice(d,0,...i.slice(pe,Le)),pe>q&&en.splice(c,0,...i.slice(q,pe)),q>T&&en.splice(_,0,...i.slice(T,q)),T>0)if(_===0)en.splice(0,0,...i.slice(0,T));else{let hr=new Map;for(let yr=0;yr<_;yr++){let Vi=n[yr];hr.set(Vi.expression.text,!0)}for(let yr=T-1;yr>=0;yr--){let Vi=i[yr];hr.has(Vi.expression.text)||en.unshift(Vi)}}return Si(n)?bn(me(en,n.hasTrailingComma),n):n}function Dp(n,i){let _;return typeof i=="number"?_=Sn(i):_=i,qf(n)?or(n,_,n.name,n.constraint,n.default):As(n)?xr(n,_,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Wf(n)?Fe(n,_,n.typeParameters,n.parameters,n.type):G1(n)?Hn(n,_,n.name,n.questionToken,n.type):Ha(n)?j(n,_,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):Y1(n)?fe(n,_,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):Cs(n)?Xe(n,_,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):zf(n)?Br(n,_,n.parameters,n.body):ml(n)?Xn(n,_,n.name,n.parameters,n.type,n.body):Ds(n)?V(n,_,n.name,n.parameters,n.body):Ff(n)?$e(n,_,n.parameters,n.type):Yf(n)?Zs(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Hf(n)?eo(n,_,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):hl(n)?Ji(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Ka(n)?bo(n,_,n.declarationList):Xf(n)?jo(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Xa(n)?N_(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Ms(n)?ct(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Nl(n)?I_(n,_,n.name,n.typeParameters,n.type):fh(n)?Ro(n,_,n.name,n.members):ei(n)?Cr(n,_,n.name,n.body):$f(n)?qo(n,_,n.isTypeOnly,n.name,n.moduleReference):Qf(n)?Fo(n,_,n.importClause,n.moduleSpecifier,n.attributes):Kf(n)?U_(n,_,n.expression):Zf(n)?ui(n,_,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Pp(n,i){return As(n)?xr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Ha(n)?j(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):Cs(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):ml(n)?Xn(n,i,n.name,n.parameters,n.type,n.body):Ds(n)?V(n,i,n.name,n.parameters,n.body):hl(n)?Ji(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?N_(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function Np(n,i){switch(n.kind){case 177:return Xn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return V(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return j(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Hn(n,n.modifiers,i,n.questionToken,n.type);case 303:return Cc(n,i,n.initializer)}}function Pe(n){return n?me(n):void 0}function nt(n){return typeof n=="string"?Ve(n):n}function mr(n){return typeof n=="string"?ht(n):typeof n=="number"?X(n):typeof n=="boolean"?n?pt():sr():n}function pn(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function Pr(n){return typeof n=="number"?ut(n):n}function Zn(n){return n&&x6(n)?bn(a(T_(),n),n):n}function Bt(n){return typeof n=="string"||n&&!Pl(n)?Ta(n,void 0,void 0,void 0):n}function R(n,i){return n!==i&&(a(n,i),bn(n,i)),n}}function el(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var An,um={};function Qb(e,t){switch(An||(An=Sf(99,!1,0)),e){case 15:An.setText("`"+t+"`");break;case 16:An.setText("`"+t+"${");break;case 17:An.setText("}"+t+"${");break;case 18:An.setText("}"+t+"`");break}let a=An.scan();if(a===20&&(a=An.reScanTemplateToken(!1)),An.isUnterminated())return An.setText(void 0),um;let o;switch(a){case 15:case 16:case 17:case 18:o=An.getTokenValue();break}return o===void 0||An.scan()!==1?(An.setText(void 0),um):(An.setText(void 0),o)}function Bn(e){return e&&et(e)?Ba(e):F(e)}function Ba(e){return F(e)&-67108865}function Kb(e,t){return t|e.transformFlags&134234112}function F(e){if(!e)return 0;let t=e.transformFlags&~Zb(e.kind);return Lg(e)&&S1(e.name)?Kb(e.name,t):t}function Ae(e){return e?e.transformFlags:0}function pm(e){let t=0;for(let a of e)t|=F(a);e.transformFlags=t}function Zb(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 354:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var fs=Hb();function ds(e){return e.flags|=16,e}var e6={createBaseSourceFileNode:e=>ds(fs.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>ds(fs.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>ds(fs.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>ds(fs.createBaseTokenNode(e)),createBaseNode:e=>ds(fs.createBaseNode(e))},rx=Uf(4,e6);function t6(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=n6(a,e.emitNode))}return e}function n6(e,t){let{flags:a,internalFlags:o,leadingComments:h,trailingComments:g,commentRange:E,sourceMapRange:C,tokenSourceMapRanges:l,constantValue:Z,helpers:f,startsOnNewLine:k,snippetElement:v,classThis:w,assignedName:J}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),h&&(t.leadingComments=Pn(h.slice(),t.leadingComments)),g&&(t.trailingComments=Pn(g.slice(),t.trailingComments)),E&&(t.commentRange=E),C&&(t.sourceMapRange=C),l&&(t.tokenSourceMapRanges=r6(l,t.tokenSourceMapRanges)),Z!==void 0&&(t.constantValue=Z),f)for(let re of f)t.helpers=Dy(t.helpers,re);return k!==void 0&&(t.startsOnNewLine=k),v!==void 0&&(t.snippetElement=v),w&&(t.classThis=w),J&&(t.assignedName=J),t}function r6(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function Ai(e){return e.kind===9}function Bf(e){return e.kind===10}function Qa(e){return e.kind===11}function V1(e){return e.kind===15}function i6(e){return e.kind===28}function fm(e){return e.kind===54}function dm(e){return e.kind===58}function et(e){return e.kind===80}function wi(e){return e.kind===81}function a6(e){return e.kind===95}function tl(e){return e.kind===134}function Fp(e){return e.kind===108}function _6(e){return e.kind===102}function W1(e){return e.kind===166}function wl(e){return e.kind===167}function qf(e){return e.kind===168}function As(e){return e.kind===169}function kl(e){return e.kind===170}function G1(e){return e.kind===171}function Ha(e){return e.kind===172}function Y1(e){return e.kind===173}function Cs(e){return e.kind===174}function zf(e){return e.kind===176}function ml(e){return e.kind===177}function Ds(e){return e.kind===178}function H1(e){return e.kind===179}function X1(e){return e.kind===180}function Ff(e){return e.kind===181}function $1(e){return e.kind===182}function El(e){return e.kind===183}function Vf(e){return e.kind===184}function Wf(e){return e.kind===185}function s6(e){return e.kind===186}function Q1(e){return e.kind===187}function o6(e){return e.kind===188}function c6(e){return e.kind===189}function K1(e){return e.kind===202}function l6(e){return e.kind===190}function u6(e){return e.kind===191}function Z1(e){return e.kind===192}function eh(e){return e.kind===193}function p6(e){return e.kind===194}function f6(e){return e.kind===195}function th(e){return e.kind===196}function d6(e){return e.kind===197}function nh(e){return e.kind===198}function m6(e){return e.kind===199}function rh(e){return e.kind===200}function h6(e){return e.kind===201}function y6(e){return e.kind===205}function ih(e){return e.kind===208}function ah(e){return e.kind===209}function Gf(e){return e.kind===210}function br(e){return e.kind===211}function _a(e){return e.kind===212}function Al(e){return e.kind===213}function _h(e){return e.kind===215}function Cl(e){return e.kind===217}function Yf(e){return e.kind===218}function Hf(e){return e.kind===219}function g6(e){return e.kind===222}function sh(e){return e.kind===224}function ia(e){return e.kind===226}function oh(e){return e.kind===230}function hl(e){return e.kind===231}function ch(e){return e.kind===232}function lh(e){return e.kind===233}function _l(e){return e.kind===235}function b6(e){return e.kind===236}function v6(e){return e.kind===355}function Ka(e){return e.kind===243}function Dl(e){return e.kind===244}function uh(e){return e.kind===256}function Pl(e){return e.kind===260}function ph(e){return e.kind===261}function Xf(e){return e.kind===262}function Xa(e){return e.kind===263}function Ms(e){return e.kind===264}function Nl(e){return e.kind===265}function fh(e){return e.kind===266}function ei(e){return e.kind===267}function $f(e){return e.kind===271}function Qf(e){return e.kind===272}function Kf(e){return e.kind===277}function Zf(e){return e.kind===278}function dh(e){return e.kind===279}function x6(e){return e.kind===353}function ed(e){return e.kind===283}function af(e){return e.kind===286}function T6(e){return e.kind===289}function mh(e){return e.kind===295}function S6(e){return e.kind===297}function td(e){return e.kind===303}function hh(e){return e.kind===307}function yh(e){return e.kind===309}function gh(e){return e.kind===314}function bh(e){return e.kind===317}function vh(e){return e.kind===320}function w6(e){return e.kind===322}function Il(e){return e.kind===323}function k6(e){return e.kind===328}function E6(e){return e.kind===333}function A6(e){return e.kind===334}function C6(e){return e.kind===335}function D6(e){return e.kind===336}function P6(e){return e.kind===337}function N6(e){return e.kind===339}function I6(e){return e.kind===331}function _f(e){return e.kind===341}function O6(e){return e.kind===342}function nd(e){return e.kind===344}function xh(e){return e.kind===345}function M6(e){return e.kind===329}function J6(e){return e.kind===350}var rd=new WeakMap;function Th(e){return Cf(e.kind)?rd.get(e):Ot}function id(e,t){return rd.set(e,t),t}function mm(e){rd.delete(e)}function hm(e){return(Wa(e)&32768)!==0}function j6(e){return Qa(e.expression)&&e.expression.text==="use strict"}function L6(e){for(let t of e)if(al(t)){if(j6(t))return t}else break}function R6(e){return Cl(e)&&aa(e)&&!!Qg(e)}function Sh(e,t=15){switch(e.kind){case 217:return t&16&&R6(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 354:return(t&8)!==0}return!1}function ad(e,t=15){for(;Sh(e,t);)e=e.expression;return e}function U6(e){return setStartsOnNewLine(e,!0)}function gs(e){if(f2(e))return e.name;if(l2(e)){switch(e.kind){case 303:return gs(e.initializer);case 304:return e.name;case 305:return gs(e.expression)}return}return dl(e,!0)?gs(e.left):oh(e)?gs(e.expression):e}function B6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function ym(e){if(e){let t=e;for(;;){if(et(t)||!t.body)return et(t)?t:t.name;t=t.body}}}var gm;(e=>{function t(f,k,v,w,J,re,be){let he=k>0?J[k-1]:void 0;return B.assertEqual(v[k],t),J[k]=f.onEnter(w[k],he,be),v[k]=C(f,t),k}e.enter=t;function a(f,k,v,w,J,re,be){B.assertEqual(v[k],a),B.assertIsDefined(f.onLeft),v[k]=C(f,a);let he=f.onLeft(w[k].left,J[k],w[k]);return he?(Z(k,w,he),l(k,v,w,J,he)):k}e.left=a;function o(f,k,v,w,J,re,be){return B.assertEqual(v[k],o),B.assertIsDefined(f.onOperator),v[k]=C(f,o),f.onOperator(w[k].operatorToken,J[k],w[k]),k}e.operator=o;function h(f,k,v,w,J,re,be){B.assertEqual(v[k],h),B.assertIsDefined(f.onRight),v[k]=C(f,h);let he=f.onRight(w[k].right,J[k],w[k]);return he?(Z(k,w,he),l(k,v,w,J,he)):k}e.right=h;function g(f,k,v,w,J,re,be){B.assertEqual(v[k],g),v[k]=C(f,g);let he=f.onExit(w[k],J[k]);if(k>0){if(k--,f.foldState){let me=v[k]===g?"right":"left";J[k]=f.foldState(J[k],he,me)}}else re.value=he;return k}e.exit=g;function E(f,k,v,w,J,re,be){return B.assertEqual(v[k],E),k}e.done=E;function C(f,k){switch(k){case t:if(f.onLeft)return a;case a:if(f.onOperator)return o;case o:if(f.onRight)return h;case h:return g;case g:return E;case E:return E;default:B.fail("Invalid state")}}e.nextState=C;function l(f,k,v,w,J){return f++,k[f]=t,v[f]=J,w[f]=void 0,f}function Z(f,k,v){if(B.shouldAssert(2))for(;f>=0;)B.assert(k[f]!==v,"Circular traversal detected."),f--}})(gm||(gm={}));function bm(e,t){return typeof e=="object"?sf(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function q6(e,t){return typeof e=="string"?e:z6(e,B.checkDefined(t))}function z6(e,t){return T1(e)?t(e).slice(1):za(e)?t(e):wi(e)?e.escapedText.slice(1):Nn(e)}function sf(e,t,a,o,h){return t=bm(t,h),o=bm(o,h),a=q6(a,h),`${e?"#":""}${t}${a}${o}`}function wh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of B6(e)){let a=gs(t);if(a&&p2(a)&&(a.transformFlags&65536||a.transformFlags&128&&wh(a)))return!0}return!1}function bn(e,t){return t?ta(e,t.pos,t.end):e}function Ol(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Ml(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var vm,xm,Tm,Sm,wm,F6={createBaseSourceFileNode:e=>new(wm||(wm=Ct.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Tm||(Tm=Ct.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Sm||(Sm=Ct.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(xm||(xm=Ct.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(vm||(vm=Ct.getNodeConstructor()))(e,-1,-1)},ix=Uf(1,F6);function S(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let o of a){let h=e(o);if(h)return h}}}function V6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function W6(e){return zn(e.statements,G6)||Y6(e)}function G6(e){return Ol(e)&&H6(e,95)||$f(e)&&ed(e.moduleReference)||Qf(e)||Kf(e)||Zf(e)?e:void 0}function Y6(e){return e.flags&8388608?kh(e):void 0}function kh(e){return X6(e)?e:tn(e,kh)}function H6(e,t){return qt(e.modifiers,a=>a.kind===t)}function X6(e){return b6(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var $6={166:function(t,a,o){return S(a,t.left)||S(a,t.right)},168:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.constraint)||S(a,t.default)||S(a,t.expression)},304:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.equalsToken)||S(a,t.objectAssignmentInitializer)},305:function(t,a,o){return S(a,t.expression)},169:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},172:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},171:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)||S(a,t.initializer)},303:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||S(a,t.initializer)},260:function(t,a,o){return S(a,t.name)||S(a,t.exclamationToken)||S(a,t.type)||S(a,t.initializer)},208:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.propertyName)||S(a,t.name)||S(a,t.initializer)},181:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},185:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},184:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},179:km,180:km,174:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.exclamationToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},173:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.questionToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)},176:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},177:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},178:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},262:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},218:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.asteriskToken)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.body)},219:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||S(a,t.type)||S(a,t.equalsGreaterThanToken)||S(a,t.body)},175:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.body)},183:function(t,a,o){return S(a,t.typeName)||ie(a,o,t.typeArguments)},182:function(t,a,o){return S(a,t.assertsModifier)||S(a,t.parameterName)||S(a,t.type)},186:function(t,a,o){return S(a,t.exprName)||ie(a,o,t.typeArguments)},187:function(t,a,o){return ie(a,o,t.members)},188:function(t,a,o){return S(a,t.elementType)},189:function(t,a,o){return ie(a,o,t.elements)},192:Em,193:Em,194:function(t,a,o){return S(a,t.checkType)||S(a,t.extendsType)||S(a,t.trueType)||S(a,t.falseType)},195:function(t,a,o){return S(a,t.typeParameter)},205:function(t,a,o){return S(a,t.argument)||S(a,t.attributes)||S(a,t.qualifier)||ie(a,o,t.typeArguments)},302:function(t,a,o){return S(a,t.assertClause)},196:Am,198:Am,199:function(t,a,o){return S(a,t.objectType)||S(a,t.indexType)},200:function(t,a,o){return S(a,t.readonlyToken)||S(a,t.typeParameter)||S(a,t.nameType)||S(a,t.questionToken)||S(a,t.type)||ie(a,o,t.members)},201:function(t,a,o){return S(a,t.literal)},202:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.name)||S(a,t.questionToken)||S(a,t.type)},206:Cm,207:Cm,209:function(t,a,o){return ie(a,o,t.elements)},210:function(t,a,o){return ie(a,o,t.properties)},211:function(t,a,o){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.name)},212:function(t,a,o){return S(a,t.expression)||S(a,t.questionDotToken)||S(a,t.argumentExpression)},213:Dm,214:Dm,215:function(t,a,o){return S(a,t.tag)||S(a,t.questionDotToken)||ie(a,o,t.typeArguments)||S(a,t.template)},216:function(t,a,o){return S(a,t.type)||S(a,t.expression)},217:function(t,a,o){return S(a,t.expression)},220:function(t,a,o){return S(a,t.expression)},221:function(t,a,o){return S(a,t.expression)},222:function(t,a,o){return S(a,t.expression)},224:function(t,a,o){return S(a,t.operand)},229:function(t,a,o){return S(a,t.asteriskToken)||S(a,t.expression)},223:function(t,a,o){return S(a,t.expression)},225:function(t,a,o){return S(a,t.operand)},226:function(t,a,o){return S(a,t.left)||S(a,t.operatorToken)||S(a,t.right)},234:function(t,a,o){return S(a,t.expression)||S(a,t.type)},235:function(t,a,o){return S(a,t.expression)},238:function(t,a,o){return S(a,t.expression)||S(a,t.type)},236:function(t,a,o){return S(a,t.name)},227:function(t,a,o){return S(a,t.condition)||S(a,t.questionToken)||S(a,t.whenTrue)||S(a,t.colonToken)||S(a,t.whenFalse)},230:function(t,a,o){return S(a,t.expression)},241:Pm,268:Pm,307:function(t,a,o){return ie(a,o,t.statements)||S(a,t.endOfFileToken)},243:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.declarationList)},261:function(t,a,o){return ie(a,o,t.declarations)},244:function(t,a,o){return S(a,t.expression)},245:function(t,a,o){return S(a,t.expression)||S(a,t.thenStatement)||S(a,t.elseStatement)},246:function(t,a,o){return S(a,t.statement)||S(a,t.expression)},247:function(t,a,o){return S(a,t.expression)||S(a,t.statement)},248:function(t,a,o){return S(a,t.initializer)||S(a,t.condition)||S(a,t.incrementor)||S(a,t.statement)},249:function(t,a,o){return S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},250:function(t,a,o){return S(a,t.awaitModifier)||S(a,t.initializer)||S(a,t.expression)||S(a,t.statement)},251:Nm,252:Nm,253:function(t,a,o){return S(a,t.expression)},254:function(t,a,o){return S(a,t.expression)||S(a,t.statement)},255:function(t,a,o){return S(a,t.expression)||S(a,t.caseBlock)},269:function(t,a,o){return ie(a,o,t.clauses)},296:function(t,a,o){return S(a,t.expression)||ie(a,o,t.statements)},297:function(t,a,o){return ie(a,o,t.statements)},256:function(t,a,o){return S(a,t.label)||S(a,t.statement)},257:function(t,a,o){return S(a,t.expression)},258:function(t,a,o){return S(a,t.tryBlock)||S(a,t.catchClause)||S(a,t.finallyBlock)},299:function(t,a,o){return S(a,t.variableDeclaration)||S(a,t.block)},170:function(t,a,o){return S(a,t.expression)},263:Im,231:Im,264:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.heritageClauses)||ie(a,o,t.members)},265:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.typeParameters)||S(a,t.type)},266:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||ie(a,o,t.members)},306:function(t,a,o){return S(a,t.name)||S(a,t.initializer)},267:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.body)},271:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)||S(a,t.moduleReference)},272:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.importClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},273:function(t,a,o){return S(a,t.name)||S(a,t.namedBindings)},300:function(t,a,o){return ie(a,o,t.elements)},301:function(t,a,o){return S(a,t.name)||S(a,t.value)},270:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.name)},274:function(t,a,o){return S(a,t.name)},280:function(t,a,o){return S(a,t.name)},275:Om,279:Om,278:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.exportClause)||S(a,t.moduleSpecifier)||S(a,t.attributes)},276:Mm,281:Mm,277:function(t,a,o){return ie(a,o,t.modifiers)||S(a,t.expression)},228:function(t,a,o){return S(a,t.head)||ie(a,o,t.templateSpans)},239:function(t,a,o){return S(a,t.expression)||S(a,t.literal)},203:function(t,a,o){return S(a,t.head)||ie(a,o,t.templateSpans)},204:function(t,a,o){return S(a,t.type)||S(a,t.literal)},167:function(t,a,o){return S(a,t.expression)},298:function(t,a,o){return ie(a,o,t.types)},233:function(t,a,o){return S(a,t.expression)||ie(a,o,t.typeArguments)},283:function(t,a,o){return S(a,t.expression)},282:function(t,a,o){return ie(a,o,t.modifiers)},355:function(t,a,o){return ie(a,o,t.elements)},284:function(t,a,o){return S(a,t.openingElement)||ie(a,o,t.children)||S(a,t.closingElement)},288:function(t,a,o){return S(a,t.openingFragment)||ie(a,o,t.children)||S(a,t.closingFragment)},285:Jm,286:Jm,292:function(t,a,o){return ie(a,o,t.properties)},291:function(t,a,o){return S(a,t.name)||S(a,t.initializer)},293:function(t,a,o){return S(a,t.expression)},294:function(t,a,o){return S(a,t.dotDotDotToken)||S(a,t.expression)},287:function(t,a,o){return S(a,t.tagName)},295:function(t,a,o){return S(a,t.namespace)||S(a,t.name)},190:Hi,191:Hi,309:Hi,315:Hi,314:Hi,316:Hi,318:Hi,317:function(t,a,o){return ie(a,o,t.parameters)||S(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ie(a,o,t.comment))||ie(a,o,t.tags)},347:function(t,a,o){return S(a,t.tagName)||S(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},310:function(t,a,o){return S(a,t.name)},311:function(t,a,o){return S(a,t.left)||S(a,t.right)},341:jm,348:jm,330:function(t,a,o){return S(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},329:function(t,a,o){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},328:function(t,a,o){return S(a,t.tagName)||S(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},345:function(t,a,o){return S(a,t.tagName)||S(a,t.constraint)||ie(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},346:function(t,a,o){return S(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?S(a,t.typeExpression)||S(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)):S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)))},338:function(t,a,o){return S(a,t.tagName)||S(a,t.fullName)||S(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},342:Xi,344:Xi,343:Xi,340:Xi,350:Xi,349:Xi,339:Xi,323:function(t,a,o){return zn(t.typeParameters,a)||zn(t.parameters,a)||S(a,t.type)},324:Vp,325:Vp,326:Vp,322:function(t,a,o){return zn(t.jsDocPropertyTags,a)},327:bi,332:bi,333:bi,334:bi,335:bi,336:bi,331:bi,337:bi,351:Q6,354:K6};function km(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||S(t,e.type)}function Em(e,t,a){return ie(t,a,e.types)}function Am(e,t,a){return S(t,e.type)}function Cm(e,t,a){return ie(t,a,e.elements)}function Dm(e,t,a){return S(t,e.expression)||S(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function Pm(e,t,a){return ie(t,a,e.statements)}function Nm(e,t,a){return S(t,e.label)}function Im(e,t,a){return ie(t,a,e.modifiers)||S(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function Om(e,t,a){return ie(t,a,e.elements)}function Mm(e,t,a){return S(t,e.propertyName)||S(t,e.name)}function Jm(e,t,a){return S(t,e.tagName)||ie(t,a,e.typeArguments)||S(t,e.attributes)}function Hi(e,t,a){return S(t,e.type)}function jm(e,t,a){return S(t,e.tagName)||(e.isNameFirst?S(t,e.name)||S(t,e.typeExpression):S(t,e.typeExpression)||S(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Xi(e,t,a){return S(t,e.tagName)||S(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Vp(e,t,a){return S(t,e.name)}function bi(e,t,a){return S(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Q6(e,t,a){return S(t,e.tagName)||S(t,e.importClause)||S(t,e.moduleSpecifier)||S(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function K6(e,t,a){return S(t,e.expression)}function tn(e,t,a){if(e===void 0||e.kind<=165)return;let o=$6[e.kind];return o===void 0?void 0:o(e,t,a)}function Lm(e,t,a){let o=Rm(e),h=[];for(;h.length=0;--C)o.push(g[C]),h.push(E)}else{let C=t(g,E);if(C){if(C==="skip")continue;return C}if(g.kind>=166)for(let l of Rm(g))o.push(l),h.push(g)}}}function Rm(e){let t=[];return tn(e,a,a),t;function a(o){t.unshift(o)}}function Eh(e){e.externalModuleIndicator=W6(e)}function Ah(e,t,a,o=!1,h){var g,E,C,l;(g=rl)==null||g.push(rl.Phase.Parse,"createSourceFile",{path:e},!0),zd("beforeParse");let Z;(E=Xp)==null||E.logStartParseSourceFile(e);let{languageVersion:f,setExternalModuleIndicator:k,impliedNodeFormat:v,jsDocParsingMode:w}=typeof a=="object"?a:{languageVersion:a};if(f===100)Z=na.parseSourceFile(e,t,f,void 0,o,6,Ga,w);else{let J=v===void 0?k:re=>(re.impliedNodeFormat=v,(k||Eh)(re));Z=na.parseSourceFile(e,t,f,void 0,o,h,J,w)}return(C=Xp)==null||C.logStopParseSourceFile(),zd("afterParse"),$y("Parse","beforeParse","afterParse"),(l=rl)==null||l.pop(),Z}function _d(e){return e.externalModuleIndicator!==void 0}function Z6(e,t,a,o=!1){let h=yl.updateSourceFile(e,t,a,o);return h.flags|=e.flags&12582912,h}var na;(e=>{var t=Sf(99,!0),a=40960,o,h,g,E,C;function l(s){return sr++,s}var Z={createBaseSourceFileNode:s=>l(new C(s,0,0)),createBaseIdentifierNode:s=>l(new g(s,0,0)),createBasePrivateIdentifierNode:s=>l(new E(s,0,0)),createBaseTokenNode:s=>l(new h(s,0,0)),createBaseNode:s=>l(new o(s,0,0))},f=Uf(11,Z),{createNodeArray:k,createNumericLiteral:v,createStringLiteral:w,createLiteralLikeNode:J,createIdentifier:re,createPrivateIdentifier:be,createToken:he,createArrayLiteralExpression:me,createObjectLiteralExpression:O,createPropertyAccessExpression:ae,createPropertyAccessChain:ve,createElementAccessExpression:X,createElementAccessChain:oe,createCallExpression:G,createCallChain:ht,createNewExpression:ir,createParenthesizedExpression:xn,createBlock:ar,createVariableStatement:Tn,createExpressionStatement:On,createIfStatement:Ve,createWhileStatement:_r,createForStatement:Rr,createForOfStatement:Mt,createVariableDeclaration:Vn,createVariableDeclarationList:Mn}=f,Jt,xt,Qe,Wn,nn,ut,st,Vt,jt,pt,sr,yt,Sn,vt,dn,rt,Wt=!0,on=!1;function or(s,p,m,y,x=!1,N,$,_e=0){var ee;if(N=jb(s,N),N===6){let le=xr(s,p,m,y,x);return convertToJson(le,(ee=le.statements[0])==null?void 0:ee.expression,le.parseDiagnostics,!1,void 0),le.referencedFiles=Ot,le.typeReferenceDirectives=Ot,le.libReferenceDirectives=Ot,le.amdDependencies=Ot,le.hasNoDefaultLib=!1,le.pragmas=vy,le}Gn(s,p,m,y,N,_e);let K=Ur(m,x,N,$||Eh,_e);return Yn(),K}e.parseSourceFile=or;function vr(s,p){Gn("",s,p,void 0,1,0),U();let m=Oi(!0),y=u()===1&&!st.length;return Yn(),y?m:void 0}e.parseIsolatedEntityName=vr;function xr(s,p,m=2,y,x=!1){Gn(s,p,m,y,6,0),xt=rt,U();let N=M(),$,_e;if(u()===1)$=Dt([],N,N),_e=Qt();else{let le;for(;u()!==1;){let De;switch(u()){case 23:De=Y_();break;case 112:case 97:case 106:De=Qt();break;case 41:Y(()=>U()===9&&U()!==59)?De=L_():De=Aa();break;case 9:case 11:if(Y(()=>U()!==59)){De=Kn();break}default:De=Aa();break}le&&Zr(le)?le.push(De):le?le=[le,De]:(le=De,u()!==1&&Ee(A.Unexpected_token))}let Ue=Zr(le)?D(me(le),N):B.checkDefined(le),je=On(Ue);D(je,N),$=Dt([je],N),_e=Qn(1,A.Unexpected_token)}let ee=se(s,2,6,!1,$,_e,xt,Ga);x&&j(ee),ee.nodeCount=sr,ee.identifierCount=Sn,ee.identifiers=yt,ee.parseDiagnostics=Yi(st,ee),Vt&&(ee.jsDocDiagnostics=Yi(Vt,ee));let K=ee;return Yn(),K}e.parseJsonText=xr;function Gn(s,p,m,y,x,N){switch(o=Ct.getNodeConstructor(),h=Ct.getTokenConstructor(),g=Ct.getIdentifierConstructor(),E=Ct.getPrivateIdentifierConstructor(),C=Ct.getSourceFileConstructor(),Jt=cg(s),Qe=p,Wn=m,jt=y,nn=x,ut=om(x),st=[],vt=0,yt=new Map,Sn=0,sr=0,xt=0,Wt=!0,nn){case 1:case 2:rt=524288;break;case 6:rt=134742016;break;default:rt=0;break}on=!1,t.setText(Qe),t.setOnError(ii),t.setScriptTarget(Wn),t.setLanguageVariant(ut),t.setScriptKind(nn),t.setJSDocParsingMode(N)}function Yn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,Wn=void 0,jt=void 0,nn=void 0,ut=void 0,xt=0,st=void 0,Vt=void 0,vt=0,yt=void 0,dn=void 0,Wt=!0}function Ur(s,p,m,y,x){let N=nv(Jt);N&&(rt|=33554432),xt=rt,U();let $=kn(0,Zt);B.assert(u()===1);let _e=Be(),ee=Ne(Qt(),_e),K=se(Jt,s,m,N,$,ee,xt,y);return av(K,Qe),_v(K,le),K.commentDirectives=t.getCommentDirectives(),K.nodeCount=sr,K.identifierCount=Sn,K.identifiers=yt,K.parseDiagnostics=Yi(st,K),K.jsDocParsingMode=x,Vt&&(K.jsDocDiagnostics=Yi(Vt,K)),p&&j(K),K;function le(Ue,je,De){st.push(ja(Jt,Qe,Ue,je,De))}}let Hn=!1;function Ne(s,p){if(!p)return s;B.assert(!s.jsDoc);let m=ky(I2(s,Qe),y=>us.parseJSDocComment(s,y.pos,y.end-y.pos));return m.length&&(s.jsDoc=m),Hn&&(Hn=!1,s.flags|=536870912),s}function Tr(s){let p=jt,m=yl.createSyntaxCursor(s);jt={currentNode:le};let y=[],x=st;st=[];let N=0,$=ee(s.statements,0);for(;$!==-1;){let Ue=s.statements[N],je=s.statements[$];Pn(y,s.statements,N,$),N=K(s.statements,$);let De=Mp(x,un=>un.start>=Ue.pos),Yt=De>=0?Mp(x,un=>un.start>=je.pos,De):-1;De>=0&&Pn(st,x,De,Yt>=0?Yt:void 0),hn(()=>{let un=rt;for(rt|=65536,t.resetTokenState(je.pos),U();u()!==1;){let fr=t.getTokenFullStart(),dr=ha(0,Zt);if(y.push(dr),fr===t.getTokenFullStart()&&U(),N>=0){let Ht=s.statements[N];if(dr.end===Ht.pos)break;dr.end>Ht.pos&&(N=K(s.statements,N+1))}}rt=un},2),$=N>=0?ee(s.statements,N):-1}if(N>=0){let Ue=s.statements[N];Pn(y,s.statements,N);let je=Mp(x,De=>De.start>=Ue.pos);je>=0&&Pn(st,x,je)}return jt=p,f.updateSourceFile(s,bn(k(y),s.statements));function _e(Ue){return!(Ue.flags&65536)&&!!(Ue.transformFlags&67108864)}function ee(Ue,je){for(let De=je;De118}function ke(){return u()===80?!0:u()===127&&Ce()||u()===135&&Ze()?!1:u()>118}function L(s,p,m=!0){return u()===s?(m&&U(),!0):(p?Ee(p):Ee(A._0_expected,_t(s)),!1)}let gt=Object.keys(bf).filter(s=>s.length>2);function St(s){if(_h(s)){at(Qr(Qe,s.template.pos),s.template.end,A.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=et(s)?Nn(s):void 0;if(!p||!Dg(p,Wn)){Ee(A._0_expected,_t(27));return}let m=Qr(Qe,s.pos);switch(p){case"const":case"let":case"var":at(m,s.end,A.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lt(A.Interface_name_cannot_be_0,A.Interface_must_be_given_a_name,19);return;case"is":at(m,t.getTokenStart(),A.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lt(A.Namespace_name_cannot_be_0,A.Namespace_must_be_given_a_name,19);return;case"type":Lt(A.Type_alias_name_cannot_be_0,A.Type_alias_must_be_given_a_name,64);return}let y=nl(p,gt,kt)??yn(p);if(y){at(m,s.end,A.Unknown_keyword_or_identifier_Did_you_mean_0,y);return}u()!==0&&at(m,s.end,A.Unexpected_keyword_or_identifier)}function Lt(s,p,m){u()===m?Ee(p):Ee(s,t.getTokenValue())}function yn(s){for(let p of gt)if(s.length>p.length+2&&ol(s,p))return`${p} ${s.slice(p.length)}`}function Fl(s,p,m){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(A.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(A.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!cr()){m?Ee(A._0_expected,_t(27)):Ee(A.Expected_for_property_initializer);return}if(!fa()){if(m){Ee(A._0_expected,_t(27));return}St(s)}}function zs(s){return u()===s?(qe(),!0):(B.assert(Rp(s)),Ee(A._0_expected,_t(s)),!1)}function qr(s,p,m,y){if(u()===p){U();return}let x=Ee(A._0_expected,_t(p));m&&x&&Kc(x,ja(Jt,Qe,y,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_t(s),_t(p)))}function Je(s){return u()===s?(U(),!0):!1}function mt(s){if(u()===s)return Qt()}function Vl(s){if(u()===s)return Gl()}function Qn(s,p,m){return mt(s)||an(s,!1,p||A._0_expected,m||_t(s))}function Wl(s){let p=Vl(s);return p||(B.assert(Rp(s)),an(s,!1,A._0_expected,_t(s)))}function Qt(){let s=M(),p=u();return U(),D(he(p),s)}function Gl(){let s=M(),p=u();return qe(),D(he(p),s)}function cr(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function fa(){return cr()?(u()===27&&U(),!0):!1}function rn(){return fa()||L(27)}function Dt(s,p,m,y){let x=k(s,y);return ta(x,p,m??t.getTokenFullStart()),x}function D(s,p,m){return ta(s,p,m??t.getTokenFullStart()),rt&&(s.flags|=rt),on&&(on=!1,s.flags|=262144),s}function an(s,p,m,...y){p?wn(t.getTokenFullStart(),0,m,...y):m&&Ee(m,...y);let x=M(),N=s===80?re("",void 0):Zd(s)?f.createTemplateLiteralLikeNode(s,"","",void 0):s===9?v("",void 0):s===11?w("",void 0):s===282?f.createMissingDeclaration():he(s);return D(N,x)}function zr(s){let p=yt.get(s);return p===void 0&&yt.set(s,p=s),p}function lr(s,p,m){if(s){Sn++;let _e=M(),ee=u(),K=zr(t.getTokenValue()),le=t.hasExtendedUnicodeEscape();return Oe(),D(re(K,ee,le),_e)}if(u()===81)return Ee(m||A.Private_identifiers_are_not_allowed_outside_class_bodies),lr(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return lr(!0);Sn++;let y=u()===1,x=t.isReservedWord(),N=t.getTokenText(),$=x?A.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:A.Identifier_expected;return an(80,y,p||$,N)}function r_(s){return lr(ze(),void 0,s)}function wt(s,p){return lr(ke(),s,p)}function Rt(s){return lr(bt(u()),s)}function ai(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(A.Unicode_escape_sequence_cannot_appear_here),lr(bt(u()))}function Fr(){return bt(u())||u()===11||u()===9}function Fs(){return bt(u())||u()===11}function Yl(s){if(u()===11||u()===9){let p=Kn();return p.text=zr(p.text),p}return s&&u()===23?Hl():u()===81?da():Rt()}function Vr(){return Yl(!0)}function Hl(){let s=M();L(23);let p=ft(At);return L(24),D(f.createComputedPropertyName(p),s)}function da(){let s=M(),p=be(zr(t.getTokenValue()));return U(),D(p,s)}function _i(s){return u()===s&&de(Vs)}function i_(){return U(),t.hasPrecedingLineBreak()?!1:ur()}function Vs(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?Y(Gs):u()===156?Y(Xl):Ii();case 90:return Gs();case 126:case 139:case 153:return U(),ur();default:return i_()}}function Ii(){return u()===60||u()!==42&&u()!==130&&u()!==19&&ur()}function Xl(){return U(),Ii()}function Ws(){return $r(u())&&de(Vs)}function ur(){return u()===23||u()===19||u()===42||u()===26||Fr()}function Gs(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&Y($u)||u()===134&&Y(X_)}function si(s,p){if(o_(s))return!0;switch(s){case 0:case 1:case 3:return!(u()===27&&p)&&$_();case 2:return u()===84||u()===90;case 4:return Y(bo);case 5:return Y(Cc)||u()===27&&!p;case 6:return u()===23||Fr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return Fr()}case 18:return Fr();case 9:return u()===23||u()===26||Fr();case 24:return Fs();case 7:return u()===19?Y(Ys):p?ke()&&!__():I_()&&!__();case 8:return es();case 10:return u()===28||u()===26||es();case 19:return u()===103||u()===87||ke();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||Ar();case 16:return va(!1);case 17:return va(!0);case 20:case 21:return u()===28||Wr();case 22:return jc();case 23:return u()===161&&Y(ep)?!1:bt(u());case 13:return bt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s,"Non-exhaustive case in 'isListElement'.")}}function Ys(){if(B.assert(u()===19),U()===20){let s=U();return s===28||s===19||s===96||s===119}return!0}function ma(){return U(),ke()}function a_(){return U(),bt(u())}function $l(){return U(),lg(u())}function __(){return u()===119||u()===96?Y(Hs):!1}function Hs(){return U(),Ar()}function Xs(){return U(),Wr()}function wr(s){if(u()===1)return!0;switch(s){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return Ql();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&Y(os);default:return!1}}function Ql(){return!!(cr()||J_(u())||u()===39)}function s_(){B.assert(vt,"Missing parsing context");for(let s=0;s<26;s++)if(vt&1<=0)}function eu(s){return s===6?A.An_enum_member_name_must_be_followed_by_a_or:void 0}function jn(){let s=Dt([],M());return s.isMissingList=!0,s}function tu(s){return!!s.isMissingList}function kr(s,p,m,y){if(L(m)){let x=Kt(s,p);return L(y),x}return jn()}function Oi(s,p){let m=M(),y=s?Rt(p):wt(p);for(;Je(25)&&u()!==30;)y=D(f.createQualifiedName(y,ya(s,!1,!0)),m);return y}function d_(s,p){return D(f.createQualifiedName(s,p),s.pos)}function ya(s,p,m){if(t.hasPrecedingLineBreak()&&bt(u())&&Y(Ca))return an(80,!0,A.Identifier_expected);if(u()===81){let y=da();return p?y:an(80,!0,A.Identifier_expected)}return s?m?Rt():ai():wt()}function m_(s){let p=M(),m=[],y;do y=ru(s),m.push(y);while(y.literal.kind===17);return Dt(m,p)}function to(s){let p=M();return D(f.createTemplateExpression(ro(s),m_(s)),p)}function h_(){let s=M();return D(f.createTemplateLiteralType(ro(!1),no()),s)}function no(){let s=M(),p=[],m;do m=nu(),p.push(m);while(m.literal.kind===17);return Dt(p,s)}function nu(){let s=M();return D(f.createTemplateLiteralTypeSpan(ct(),y_(!1)),s)}function y_(s){return u()===20?(Nt(s),ga()):Qn(18,A._0_expected,_t(20))}function ru(s){let p=M();return D(f.createTemplateSpan(ft(At),y_(s)),p)}function Kn(){return Mi(u())}function ro(s){!s&&t.getTokenFlags()&26656&&Nt(!1);let p=Mi(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function ga(){let s=Mi(u());return B.assert(s.kind===17||s.kind===18,"Template fragment has wrong token kind"),s}function io(s){let p=s===15||s===18,m=t.getTokenText();return m.substring(1,m.length-(t.isUnterminated()?0:p?1:2))}function Mi(s){let p=M(),m=Zd(s)?f.createTemplateLiteralLikeNode(s,t.getTokenValue(),io(s),t.getTokenFlags()&7176):s===9?v(t.getTokenValue(),t.getNumericLiteralFlags()):s===11?w(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):n2(s)?J(s,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(m.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(m.isUnterminated=!0),U(),D(m,p)}function g_(){return Oi(!0,A.Type_expected)}function oi(){if(!t.hasPrecedingLineBreak()&&Et()===30)return kr(20,ct,30,32)}function ba(){let s=M();return D(f.createTypeReferenceNode(g_(),oi()),s)}function b_(s){switch(s.kind){case 183:return ea(s.typeName);case 184:case 185:{let{parameters:p,type:m}=s;return tu(p)||b_(m)}case 196:return b_(s.type);default:return!1}}function iu(s){return U(),D(f.createTypePredicateNode(void 0,s,ct()),s.pos)}function ao(){let s=M();return U(),D(f.createThisTypeNode(),s)}function _o(){let s=M();return U(),D(f.createJSDocAllType(),s)}function au(){let s=M();return U(),D(f.createJSDocNonNullableType(Do(),!1),s)}function so(){let s=M();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?D(f.createJSDocUnknownType(),s):D(f.createJSDocNullableType(ct(),!1),s)}function _u(){let s=M(),p=Be();if(de(qc)){let m=pr(36),y=Ln(59,!1);return Ne(D(f.createJSDocFunctionType(m,y),s),p)}return D(f.createTypeReferenceNode(Rt(),void 0),s)}function oo(){let s=M(),p;return(u()===110||u()===105)&&(p=Rt(),L(59)),D(f.createParameterDeclaration(void 0,void 0,p,void 0,Ji(),void 0),s)}function Ji(){t.setSkipJsDocLeadingAsterisks(!0);let s=M();if(Je(144)){let y=f.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:qe()}return t.setSkipJsDocLeadingAsterisks(!1),D(y,s)}let p=Je(26),m=P_();return t.setSkipJsDocLeadingAsterisks(!1),p&&(m=D(f.createJSDocVariadicType(m),s)),u()===64?(U(),D(f.createJSDocOptionalType(m),s)):m}function su(){let s=M();L(114);let p=Oi(!0),m=t.hasPrecedingLineBreak()?void 0:Ia();return D(f.createTypeQueryNode(p,m),s)}function co(){let s=M(),p=Un(!1,!0),m=wt(),y,x;Je(96)&&(Wr()||!Ar()?y=ct():x=R_());let N=Je(64)?ct():void 0,$=f.createTypeParameterDeclaration(p,m,y,N);return $.expression=x,D($,s)}function En(){if(u()===30)return kr(19,co,30,32)}function va(s){return u()===26||es()||$r(u())||u()===60||Wr(!s)}function lo(s){let p=di(A.Private_identifiers_cannot_be_used_as_parameters);return A2(p)===0&&!qt(s)&&$r(u())&&U(),p}function uo(){return ze()||u()===23||u()===19}function v_(s){return x_(s)}function po(s){return x_(s,!1)}function x_(s,p=!0){let m=M(),y=Be(),x=s?z(()=>Un(!0)):V(()=>Un(!0));if(u()===110){let ee=f.createParameterDeclaration(x,void 0,lr(!0),void 0,Er(),void 0),K=uf(x);return K&&mn(K,A.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ne(D(ee,m),y)}let N=Wt;Wt=!1;let $=mt(26);if(!p&&!uo())return;let _e=Ne(D(f.createParameterDeclaration(x,$,lo(x),mt(58),Er(),Cr()),m),y);return Wt=N,_e}function Ln(s,p){if(fo(s,p))return Sr(P_)}function fo(s,p){return s===39?(L(s),!0):Je(59)?!0:p&&u()===39?(Ee(A._0_expected,_t(59)),U(),!0):!1}function xa(s,p){let m=Ce(),y=Ze();Xe(!!(s&1)),ot(!!(s&2));let x=s&32?Kt(17,oo):Kt(16,()=>p?v_(y):po(y));return Xe(m),ot(y),x}function pr(s){if(!L(21))return jn();let p=xa(s,!0);return L(22),p}function ji(){Je(28)||rn()}function mo(s){let p=M(),m=Be();s===180&&L(105);let y=En(),x=pr(4),N=Ln(59,!0);ji();let $=s===179?f.createCallSignature(y,x,N):f.createConstructSignature(y,x,N);return Ne(D($,p),m)}function ho(){return u()===23&&Y(ci)}function ci(){if(U(),u()===26||u()===24)return!0;if($r(u())){if(U(),ke())return!0}else if(ke())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function yo(s,p,m){let y=kr(16,()=>v_(!1),23,24),x=Er();ji();let N=f.createIndexSignature(m,y,x);return Ne(D(N,s),p)}function go(s,p,m){let y=Vr(),x=mt(58),N;if(u()===21||u()===30){let $=En(),_e=pr(4),ee=Ln(59,!0);N=f.createMethodSignature(m,y,x,$,_e,ee)}else{let $=Er();N=f.createPropertySignature(m,y,x,$),u()===64&&(N.initializer=Cr())}return ji(),Ne(D(N,s),p)}function bo(){if(u()===21||u()===30||u()===139||u()===153)return!0;let s=!1;for(;$r(u());)s=!0,U();return u()===23?!0:(Fr()&&(s=!0,U()),s?u()===21||u()===30||u()===58||u()===59||u()===28||cr():!1)}function T_(){if(u()===21||u()===30)return mo(179);if(u()===105&&Y(Li))return mo(180);let s=M(),p=Be(),m=Un(!1);return _i(139)?Dr(s,p,m,177,4):_i(153)?Dr(s,p,m,178,4):ho()?yo(s,p,m):go(s,p,m)}function Li(){return U(),u()===21||u()===30}function ou(){return U()===25}function S_(){switch(U()){case 21:case 30:case 25:return!0}return!1}function cu(){let s=M();return D(f.createTypeLiteralNode(w_()),s)}function w_(){let s;return L(19)?(s=kn(4,T_),L(20)):s=jn(),s}function lu(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&ma()&&U()===103)}function vo(){let s=M(),p=Rt();L(103);let m=ct();return D(f.createTypeParameterDeclaration(void 0,p,m,void 0),s)}function uu(){let s=M();L(19);let p;(u()===148||u()===40||u()===41)&&(p=Qt(),p.kind!==148&&L(148)),L(23);let m=vo(),y=Je(130)?ct():void 0;L(24);let x;(u()===58||u()===40||u()===41)&&(x=Qt(),x.kind!==58&&L(58));let N=Er();rn();let $=kn(4,T_);return L(20),D(f.createMappedTypeNode(p,m,y,x,N,$),s)}function k_(){let s=M();if(Je(26))return D(f.createRestTypeNode(ct()),s);let p=ct();if(gh(p)&&p.pos===p.type.pos){let m=f.createOptionalTypeNode(p.type);return bn(m,p),m.flags=p.flags,m}return p}function xo(){return U()===59||u()===58&&U()===59}function To(){return u()===26?bt(U())&&xo():bt(u())&&xo()}function pu(){if(Y(To)){let s=M(),p=Be(),m=mt(26),y=Rt(),x=mt(58);L(59);let N=k_(),$=f.createNamedTupleMember(m,y,x,N);return Ne(D($,s),p)}return k_()}function So(){let s=M();return D(f.createTupleTypeNode(kr(21,pu,23,24)),s)}function fu(){let s=M();L(21);let p=ct();return L(22),D(f.createParenthesizedType(p),s)}function wo(){let s;if(u()===128){let p=M();U();let m=D(he(128),p);s=Dt([m],p)}return s}function ko(){let s=M(),p=Be(),m=wo(),y=Je(105);B.assert(!m||y,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let x=En(),N=pr(4),$=Ln(39,!1),_e=y?f.createConstructorTypeNode(m,x,N,$):f.createFunctionTypeNode(x,N,$);return Ne(D(_e,s),p)}function E_(){let s=Qt();return u()===25?void 0:s}function Eo(s){let p=M();s&&U();let m=u()===112||u()===97||u()===106?Qt():Mi(u());return s&&(m=D(f.createPrefixUnaryExpression(41,m),p)),D(f.createLiteralTypeNode(m),p)}function Ao(){return U(),u()===102}function Co(){xt|=4194304;let s=M(),p=Je(114);L(102),L(21);let m=ct(),y;if(Je(28)){let $=t.getTokenStart();L(19);let _e=u();if(_e===118||_e===132?U():Ee(A._0_expected,_t(118)),L(59),y=cs(_e,!0),!L(20)){let ee=Ki(st);ee&&ee.code===A._0_expected.code&&Kc(ee,ja(Jt,Qe,$,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}L(22);let x=Je(25)?g_():void 0,N=oi();return D(f.createImportTypeNode(m,y,x,N,p),s)}function A_(){return U(),u()===9||u()===10}function Do(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return de(E_)||ba();case 67:t.reScanAsteriskEqualsToken();case 42:return _o();case 61:t.reScanQuestionToken();case 58:return so();case 100:return _u();case 54:return au();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Eo();case 41:return Y(A_)?Eo(!0):ba();case 116:return Qt();case 110:{let s=ao();return u()===142&&!t.hasPrecedingLineBreak()?iu(s):s}case 114:return Y(Ao)?Co():su();case 19:return Y(lu)?uu():cu();case 23:return So();case 21:return fu();case 102:return Co();case 131:return Y(Ca)?Lo():ba();case 16:return h_();default:return ba()}}function Wr(s){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!s;case 41:return!s&&Y(A_);case 21:return!s&&Y(du);default:return ke()}}function du(){return U(),u()===22||va(!1)||Wr()}function Po(){let s=M(),p=Do();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=D(f.createJSDocNonNullableType(p,!0),s);break;case 58:if(Y(Xs))return p;U(),p=D(f.createJSDocNullableType(p,!0),s);break;case 23:if(L(23),Wr()){let m=ct();L(24),p=D(f.createIndexedAccessTypeNode(p,m),s)}else L(24),p=D(f.createArrayTypeNode(p),s);break;default:return p}return p}function No(s){let p=M();return L(s),D(f.createTypeOperatorNode(s,Mo()),p)}function Io(){if(Je(96)){let s=Jn(ct);if(Ye()||u()!==58)return s}}function mu(){let s=M(),p=wt(),m=de(Io),y=f.createTypeParameterDeclaration(void 0,p,m);return D(y,s)}function Oo(){let s=M();return L(140),D(f.createInferTypeNode(mu()),s)}function Mo(){let s=u();switch(s){case 143:case 158:case 148:return No(s);case 140:return Oo()}return Sr(Po)}function Jo(s){if(D_()){let p=ko(),m;return Vf(p)?m=s?A.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:m=s?A.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:A.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,mn(p,m),p}}function Ta(s,p,m){let y=M(),x=s===52,N=Je(s),$=N&&Jo(x)||p();if(u()===s||N){let _e=[$];for(;Je(s);)_e.push(Jo(x)||p());$=D(m(Dt(_e,y)),y)}return $}function hu(){return Ta(51,Mo,f.createIntersectionTypeNode)}function C_(){return Ta(52,hu,f.createUnionTypeNode)}function yu(){return U(),u()===105}function D_(){return u()===30||u()===21&&Y(gu)?!0:u()===105||u()===128&&Y(yu)}function jo(){if($r(u())&&Un(!1),ke()||u()===110)return U(),!0;if(u()===23||u()===19){let s=st.length;return di(),s===st.length}return!1}function gu(){return U(),!!(u()===22||u()===26||jo()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function P_(){let s=M(),p=ke()&&de(N_),m=ct();return p?D(f.createTypePredicateNode(void 0,p,m),s):m}function N_(){let s=wt();if(u()===142&&!t.hasPrecedingLineBreak())return U(),s}function Lo(){let s=M(),p=Qn(131),m=u()===110?ao():wt(),y=Je(142)?ct():void 0;return D(f.createTypePredicateNode(p,m,y),s)}function ct(){if(rt&81920)return Pt(81920,ct);if(D_())return ko();let s=M(),p=C_();if(!Ye()&&!t.hasPrecedingLineBreak()&&Je(96)){let m=Jn(ct);L(58);let y=Sr(ct);L(59);let x=Sr(ct);return D(f.createConditionalTypeNode(p,m,y,x),s)}return p}function Er(){return Je(59)?ct():void 0}function I_(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Y(S_);default:return ke()}}function Ar(){if(I_())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return j_()?!0:ke()}}function Ro(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&Ar()}function At(){let s=$e();s&&Ke(!1);let p=M(),m=Ut(!0),y;for(;y=mt(28);)m=wa(m,y,Ut(!0),p);return s&&Ke(!0),m}function Cr(){return Je(64)?Ut(!0):void 0}function Ut(s){if(bu())return vu();let p=xu(s)||zo(s);if(p)return p;let m=M(),y=Be(),x=Sa(0);return x.kind===80&&u()===39?O_(m,x,s,y,void 0):Va(x)&&R1(Fe())?wa(x,Qt(),Ut(s),m):Wo(x,m,s)}function bu(){return u()===127?Ce()?!0:Y(hc):!1}function Uo(){return U(),!t.hasPrecedingLineBreak()&&ke()}function vu(){let s=M();return U(),!t.hasPrecedingLineBreak()&&(u()===42||Ar())?D(f.createYieldExpression(mt(42),Ut(!0)),s):D(f.createYieldExpression(void 0,void 0),s)}function O_(s,p,m,y,x){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=f.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);D(N,p.pos);let $=Dt([N],N.pos,N.end),_e=Qn(39),ee=Vo(!!x,m),K=f.createArrowFunction(x,void 0,$,void 0,_e,ee);return Ne(D(K,s),y)}function xu(s){let p=Tu();if(p!==0)return p===1?M_(!0,!0):de(()=>qo(s))}function Tu(){return u()===21||u()===30||u()===134?Y(Bo):u()===39?1:0}function Bo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let s=u(),p=U();if(s===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if($r(p)&&p!==134&&Y(ma))return U()===130?0:1;if(!ke()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(s===30),!ke()&&u()!==87?0:ut===1?Y(()=>{Je(87);let y=U();if(y===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(y===28||y===64)return!0;return!1})?1:0:2}function qo(s){let p=t.getTokenStart();if(dn!=null&&dn.has(p))return;let m=M_(!1,s);return m||(dn||(dn=new Set)).add(p),m}function zo(s){if(u()===134&&Y(Fo)===1){let p=M(),m=Be(),y=is(),x=Sa(0);return O_(p,x,s,m,y)}}function Fo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let s=Sa(0);if(!t.hasPrecedingLineBreak()&&s.kind===80&&u()===39)return 1}return 0}function M_(s,p){let m=M(),y=Be(),x=is(),N=qt(x,tl)?2:0,$=En(),_e;if(L(21)){if(s)_e=xa(N,s);else{let fr=xa(N,s);if(!fr)return;_e=fr}if(!L(22)&&!s)return}else{if(!s)return;_e=jn()}let ee=u()===59,K=Ln(59,!1);if(K&&!s&&b_(K))return;let le=K;for(;(le==null?void 0:le.kind)===196;)le=le.type;let Ue=le&&bh(le);if(!s&&u()!==39&&(Ue||u()!==19))return;let je=u(),De=Qn(39),Yt=je===39||je===19?Vo(qt(x,tl),p):wt();if(!p&&ee&&u()!==59)return;let un=f.createArrowFunction(x,$,_e,K,De,Yt);return Ne(D(un,m),y)}function Vo(s,p){if(u()===19)return Ri(s?2:0);if(u()!==27&&u()!==100&&u()!==86&&$_()&&!Ro())return Ri(16|(s?2:0));let m=Wt;Wt=!1;let y=s?z(()=>Ut(p)):V(()=>Ut(p));return Wt=m,y}function Wo(s,p,m){let y=mt(58);if(!y)return s;let x;return D(f.createConditionalExpression(s,y,Pt(a,()=>Ut(!1)),x=Qn(59),tf(x)?Ut(m):an(80,!1,A._0_expected,_t(59))),p)}function Sa(s){let p=M(),m=R_();return Go(s,m,p)}function J_(s){return s===103||s===165}function Go(s,p,m){for(;;){Fe();let y=Up(u());if(!(u()===43?y>=s:y>s)||u()===103&&ye())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();U(),p=N===152?Su(p,ct()):wu(p,ct())}}else p=wa(p,Qt(),Sa(y),m)}return p}function j_(){return ye()&&u()===103?!1:Up(u())>0}function Su(s,p){return D(f.createSatisfiesExpression(s,p),s.pos)}function wa(s,p,m,y){return D(f.createBinaryExpression(s,p,m),y)}function wu(s,p){return D(f.createAsExpression(s,p),s.pos)}function L_(){let s=M();return D(f.createPrefixUnaryExpression(u(),Me(Gr)),s)}function ku(){let s=M();return D(f.createDeleteExpression(Me(Gr)),s)}function Yo(){let s=M();return D(f.createTypeOfExpression(Me(Gr)),s)}function Eu(){let s=M();return D(f.createVoidExpression(Me(Gr)),s)}function Ho(){return u()===135?Ze()?!0:Y(hc):!1}function Au(){let s=M();return D(f.createAwaitExpression(Me(Gr)),s)}function R_(){if(Xo()){let m=M(),y=$o();return u()===43?Go(Up(u()),y,m):y}let s=u(),p=Gr();if(u()===43){let m=Qr(Qe,p.pos),{end:y}=p;p.kind===216?at(m,y,A.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(Rp(s)),at(m,y,A.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(s)))}return p}function Gr(){switch(u()){case 40:case 41:case 55:case 54:return L_();case 91:return ku();case 114:return Yo();case 116:return Eu();case 30:return ut===1?ui(!0,void 0,void 0,!0):Ou();case 135:if(Ho())return Au();default:return $o()}}function Xo(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ut!==1)return!1;default:return!0}}function $o(){if(u()===46||u()===47){let p=M();return D(f.createPrefixUnaryExpression(u(),Me(li)),p)}else if(ut===1&&u()===30&&Y($l))return ui(!0);let s=li();if(B.assert(Va(s)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),D(f.createPostfixUnaryExpression(s,p),s.pos)}return s}function li(){let s=M(),p;return u()===102?Y(Li)?(xt|=4194304,p=Qt()):Y(ou)?(U(),U(),p=D(f.createMetaProperty(102,Rt()),s),xt|=8388608):p=U_():p=u()===108?B_():U_(),pi(s,p)}function U_(){let s=M(),p=_c();return Ea(s,p,!0)}function B_(){let s=M(),p=Qt();if(u()===30){let m=M(),y=de(W_);y!==void 0&&(at(m,M(),A.super_may_not_use_type_arguments),ln()||(p=f.createExpressionWithTypeArguments(p,y)))}return u()===21||u()===25||u()===23?p:(Qn(25,A.super_must_be_followed_by_an_argument_list_or_member_access),D(ae(p,ya(!0,!0,!0)),s))}function ui(s,p,m,y=!1){let x=M(),N=Du(s),$;if(N.kind===286){let _e=Qo(N),ee,K=_e[_e.length-1];if((K==null?void 0:K.kind)===284&&!vi(K.openingElement.tagName,K.closingElement.tagName)&&vi(N.tagName,K.closingElement.tagName)){let le=K.children.end,Ue=D(f.createJsxElement(K.openingElement,K.children,D(f.createJsxClosingElement(D(re(""),le,le)),le,le)),K.openingElement.pos,le);_e=Dt([..._e.slice(0,_e.length-1),Ue],_e.pos,le),ee=K.closingElement}else ee=Iu(N,s),vi(N.tagName,ee.tagName)||(m&&af(m)&&vi(ee.tagName,m.tagName)?mn(N.tagName,A.JSX_element_0_has_no_corresponding_closing_tag,ys(Qe,N.tagName)):mn(ee.tagName,A.Expected_corresponding_JSX_closing_tag_for_0,ys(Qe,N.tagName)));$=D(f.createJsxElement(N,_e,ee),x)}else N.kind===289?$=D(f.createJsxFragment(N,Qo(N),nc(s)),x):(B.assert(N.kind===285),$=N);if(!y&&s&&u()===30){let _e=typeof p>"u"?$.pos:p,ee=de(()=>ui(!0,_e));if(ee){let K=an(28,!1);return lm(K,ee.pos,0),at(Qr(Qe,_e),ee.end,A.JSX_expressions_must_have_one_parent_element),D(f.createBinaryExpression($,K,ee),x)}}return $}function Cu(){let s=M(),p=f.createJsxText(t.getTokenValue(),pt===13);return pt=t.scanJsxToken(),D(p,s)}function q_(s,p){switch(p){case 1:if(T6(s))mn(s,A.JSX_fragment_has_no_corresponding_closing_tag);else{let m=s.tagName,y=Math.min(Qr(Qe,m.pos),m.end);at(y,m.end,A.JSX_element_0_has_no_corresponding_closing_tag,ys(Qe,s.tagName))}return;case 31:case 7:return;case 12:case 13:return Cu();case 19:return ec(!1);case 30:return ui(!1,void 0,s);default:return B.assertNever(p)}}function Qo(s){let p=[],m=M(),y=vt;for(vt|=16384;;){let x=q_(s,pt=t.reScanJsxToken());if(!x||(p.push(x),af(s)&&(x==null?void 0:x.kind)===284&&!vi(x.openingElement.tagName,x.closingElement.tagName)&&vi(s.tagName,x.closingElement.tagName)))break}return vt=y,Dt(p,m)}function z_(){let s=M();return D(f.createJsxAttributes(kn(13,Pu)),s)}function Du(s){let p=M();if(L(30),u()===32)return $n(),D(f.createJsxOpeningFragment(),p);let m=Ko(),y=rt&524288?void 0:Ia(),x=z_(),N;return u()===32?($n(),N=f.createJsxOpeningElement(m,y,x)):(L(44),L(32,void 0,!1)&&(s?U():$n()),N=f.createJsxSelfClosingElement(m,y,x)),D(N,p)}function Ko(){let s=M(),p=Zo();if(mh(p))return p;let m=p;for(;Je(25);)m=D(ae(m,ya(!0,!1,!1)),s);return m}function Zo(){let s=M();Gt();let p=u()===110,m=ai();return Je(59)?(Gt(),D(f.createJsxNamespacedName(m,ai()),s)):p?D(f.createToken(110),s):m}function ec(s){let p=M();if(!L(19))return;let m,y;return u()!==20&&(s||(m=mt(26)),y=At()),s?L(20):L(20,void 0,!1)&&$n(),D(f.createJsxExpression(m,y),p)}function Pu(){if(u()===19)return Nu();let s=M();return D(f.createJsxAttribute(F_(),tc()),s)}function tc(){if(u()===64){if(Ni()===11)return Kn();if(u()===19)return ec(!0);if(u()===30)return ui(!0);Ee(A.or_JSX_element_expected)}}function F_(){let s=M();Gt();let p=ai();return Je(59)?(Gt(),D(f.createJsxNamespacedName(p,ai()),s)):p}function Nu(){let s=M();L(19),L(26);let p=At();return L(20),D(f.createJsxSpreadAttribute(p),s)}function Iu(s,p){let m=M();L(31);let y=Ko();return L(32,void 0,!1)&&(p||!vi(s.tagName,y)?U():$n()),D(f.createJsxClosingElement(y),m)}function nc(s){let p=M();return L(31),L(32,A.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(s?U():$n()),D(f.createJsxJsxClosingFragment(),p)}function Ou(){B.assert(ut!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let s=M();L(30);let p=ct();L(32);let m=Gr();return D(f.createTypeAssertion(p,m),s)}function rc(){return U(),bt(u())||u()===23||ln()}function Mu(){return u()===29&&Y(rc)}function ka(s){if(s.flags&64)return!0;if(_l(s)){let p=s.expression;for(;_l(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;_l(s);)s.flags|=64,s=s.expression;return!0}}return!1}function Ju(s,p,m){let y=ya(!0,!0,!0),x=m||ka(p),N=x?ve(p,m,y):ae(p,y);if(x&&wi(N.name)&&mn(N.name,A.An_optional_chain_cannot_contain_private_identifiers),lh(p)&&p.typeArguments){let $=p.typeArguments.pos-1,_e=Qr(Qe,p.typeArguments.end)+1;at($,_e,A.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return D(N,s)}function ic(s,p,m){let y;if(u()===24)y=an(80,!0,A.An_element_access_expression_should_take_an_argument);else{let N=ft(At);Sl(N)&&(N.text=zr(N.text)),y=N}L(24);let x=m||ka(p)?oe(p,m,y):X(p,y);return D(x,s)}function Ea(s,p,m){for(;;){let y,x=!1;if(m&&Mu()?(y=Qn(29),x=bt(u())):x=Je(25),x){p=Ju(s,p,y);continue}if((y||!$e())&&Je(23)){p=ic(s,p,y);continue}if(ln()){p=!y&&p.kind===233?Rn(s,p.expression,y,p.typeArguments):Rn(s,p,y,void 0);continue}if(!y){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=D(f.createNonNullExpression(p),s);continue}let N=de(W_);if(N){p=D(f.createExpressionWithTypeArguments(p,N),s);continue}}return p}}function ln(){return u()===15||u()===16}function Rn(s,p,m,y){let x=f.createTaggedTemplateExpression(p,y,u()===15?(Nt(!0),Kn()):to(!0));return(m||p.flags&64)&&(x.flags|=64),x.questionDotToken=m,D(x,s)}function pi(s,p){for(;;){p=Ea(s,p,!0);let m,y=mt(29);if(y&&(m=de(W_),ln())){p=Rn(s,p,y,m);continue}if(m||u()===21){!y&&p.kind===233&&(m=p.typeArguments,p=p.expression);let x=V_(),N=y||ka(p)?ht(p,y,m,x):G(p,m,x);p=D(N,s);continue}if(y){let x=an(80,!1,A.Identifier_expected);p=D(ve(p,y,x),s)}break}return p}function V_(){L(21);let s=Kt(11,Lu);return L(22),s}function W_(){if(rt&524288||Et()!==30)return;U();let s=Kt(20,ct);if(Fe()===32)return U(),s&&ac()?s:void 0}function ac(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||j_()||!Ar()}function _c(){switch(u()){case 15:t.getTokenFlags()&26656&&Nt(!1);case 9:case 10:case 11:return Kn();case 110:case 108:case 106:case 112:case 97:return Qt();case 21:return sc();case 23:return Y_();case 19:return Aa();case 134:if(!Y(X_))break;return oc();case 60:return lp();case 86:return Nc();case 100:return oc();case 105:return Uu();case 44:case 69:if(He()===14)return Kn();break;case 16:return to(!1);case 81:return da()}return wt(A.Expression_expected)}function sc(){let s=M(),p=Be();L(21);let m=ft(At);return L(22),Ne(D(xn(m),s),p)}function ju(){let s=M();L(26);let p=Ut(!0);return D(f.createSpreadElement(p),s)}function G_(){return u()===26?ju():u()===28?D(f.createOmittedExpression(),M()):Ut(!0)}function Lu(){return Pt(a,G_)}function Y_(){let s=M(),p=t.getTokenStart(),m=L(23),y=t.hasPrecedingLineBreak(),x=Kt(15,G_);return qr(23,24,m,p),D(me(x,y),s)}function Ru(){let s=M(),p=Be();if(mt(26)){let le=Ut(!0);return Ne(D(f.createSpreadAssignment(le),s),p)}let m=Un(!0);if(_i(139))return Dr(s,p,m,177,0);if(_i(153))return Dr(s,p,m,178,0);let y=mt(42),x=ke(),N=Vr(),$=mt(58),_e=mt(54);if(y||u()===21||u()===30)return Ec(s,p,m,y,N,$,_e);let ee;if(x&&u()!==59){let le=mt(64),Ue=le?ft(()=>Ut(!0)):void 0;ee=f.createShorthandPropertyAssignment(N,Ue),ee.equalsToken=le}else{L(59);let le=ft(()=>Ut(!0));ee=f.createPropertyAssignment(N,le)}return ee.modifiers=m,ee.questionToken=$,ee.exclamationToken=_e,Ne(D(ee,s),p)}function Aa(){let s=M(),p=t.getTokenStart(),m=L(19),y=t.hasPrecedingLineBreak(),x=Kt(12,Ru,!0);return qr(19,20,m,p),D(O(x,y),s)}function oc(){let s=$e();Ke(!1);let p=M(),m=Be(),y=Un(!1);L(100);let x=mt(42),N=x?1:0,$=qt(y,tl)?2:0,_e=N&&$?Q(fi):N?Xn(fi):$?z(fi):fi(),ee=En(),K=pr(N|$),le=Ln(59,!1),Ue=Ri(N|$);Ke(s);let je=f.createFunctionExpression(y,x,_e,ee,K,le,Ue);return Ne(D(je,p),m)}function fi(){return ze()?r_():void 0}function Uu(){let s=M();if(L(105),Je(25)){let N=Rt();return D(f.createMetaProperty(105,N),s)}let p=M(),m=Ea(p,_c(),!1),y;m.kind===233&&(y=m.typeArguments,m=m.expression),u()===29&&Ee(A.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ys(Qe,m));let x=u()===21?V_():void 0;return D(ir(m,y,x),s)}function Yr(s,p){let m=M(),y=Be(),x=t.getTokenStart(),N=L(19,p);if(N||s){let $=t.hasPrecedingLineBreak(),_e=kn(1,Zt);qr(19,20,N,x);let ee=Ne(D(ar(_e,$),m),y);return u()===64&&(Ee(A.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),ee}else{let $=jn();return Ne(D(ar($,void 0),m),y)}}function Ri(s,p){let m=Ce();Xe(!!(s&1));let y=Ze();ot(!!(s&2));let x=Wt;Wt=!1;let N=$e();N&&Ke(!1);let $=Yr(!!(s&16),p);return N&&Ke(!0),Wt=x,Xe(m),ot(y),$}function Bu(){let s=M(),p=Be();return L(27),Ne(D(f.createEmptyStatement(),s),p)}function cc(){let s=M(),p=Be();L(101);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Zt(),$=Je(93)?Zt():void 0;return Ne(D(Ve(x,N,$),s),p)}function qu(){let s=M(),p=Be();L(92);let m=Zt();L(117);let y=t.getTokenStart(),x=L(21),N=ft(At);return qr(21,22,x,y),Je(27),Ne(D(f.createDoStatement(m,N),s),p)}function lc(){let s=M(),p=Be();L(117);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Zt();return Ne(D(_r(x,N),s),p)}function zu(){let s=M(),p=Be();L(99);let m=mt(135);L(21);let y;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&Y(Ku)||u()===135&&Y(Q_)?y=Sc(!0):y=Br(At));let x;if(m?L(165):Je(165)){let N=ft(()=>Ut(!0));L(22),x=Mt(m,y,N,Zt())}else if(Je(103)){let N=ft(At);L(22),x=f.createForInStatement(y,N,Zt())}else{L(27);let N=u()!==27&&u()!==22?ft(At):void 0;L(27);let $=u()!==22?ft(At):void 0;L(22),x=Rr(y,N,$,Zt())}return Ne(D(x,s),p)}function H_(s){let p=M(),m=Be();L(s===252?83:88);let y=cr()?void 0:wt();rn();let x=s===252?f.createBreakStatement(y):f.createContinueStatement(y);return Ne(D(x,p),m)}function Fu(){let s=M(),p=Be();L(107);let m=cr()?void 0:ft(At);return rn(),Ne(D(f.createReturnStatement(m),s),p)}function uc(){let s=M(),p=Be();L(118);let m=t.getTokenStart(),y=L(21),x=ft(At);qr(21,22,y,m);let N=Tt(67108864,Zt);return Ne(D(f.createWithStatement(x,N),s),p)}function Vu(){let s=M(),p=Be();L(84);let m=ft(At);L(59);let y=kn(3,Zt);return Ne(D(f.createCaseClause(m,y),s),p)}function pc(){let s=M();L(90),L(59);let p=kn(3,Zt);return D(f.createDefaultClause(p),s)}function Wu(){return u()===84?Vu():pc()}function Gu(){let s=M();L(19);let p=kn(2,Wu);return L(20),D(f.createCaseBlock(p),s)}function fc(){let s=M(),p=Be();L(109),L(21);let m=ft(At);L(22);let y=Gu();return Ne(D(f.createSwitchStatement(m,y),s),p)}function Yu(){let s=M(),p=Be();L(111);let m=t.hasPrecedingLineBreak()?void 0:ft(At);return m===void 0&&(Sn++,m=D(re(""),M())),fa()||St(m),Ne(D(f.createThrowStatement(m),s),p)}function dc(){let s=M(),p=Be();L(113);let m=Yr(!1),y=u()===85?Hu():void 0,x;return(!y||u()===98)&&(L(98,A.catch_or_finally_expected),x=Yr(!1)),Ne(D(f.createTryStatement(m,y,x),s),p)}function Hu(){let s=M();L(85);let p;Je(21)?(p=Na(),L(22)):p=void 0;let m=Yr(!1);return D(f.createCatchClause(p,m),s)}function mc(){let s=M(),p=Be();return L(89),rn(),Ne(D(f.createDebuggerStatement(),s),p)}function Xu(){let s=M(),p=Be(),m,y=u()===21,x=ft(At);return et(x)&&Je(59)?m=f.createLabeledStatement(x,Zt()):(fa()||St(x),m=On(x),y&&(p=!1)),Ne(D(m,s),p)}function Ca(){return U(),bt(u())&&!t.hasPrecedingLineBreak()}function $u(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function X_(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function hc(){return U(),(bt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function yc(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return bc();case 135:return K_();case 120:case 156:return Uo();case 144:case 145:return np();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let s=u();if(U(),t.hasPrecedingLineBreak())return!1;if(s===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||bt(u());case 95:let p=U();if(p===156&&(p=Y(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Da(){return Y(yc)}function $_(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Da()||Y(S_);case 87:case 95:return Da();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Da()||!Y(Ca);default:return Ar()}}function Qu(){return U(),ze()||u()===19||u()===23}function gc(){return Y(Qu)}function Ku(){return Pa(!0)}function Pa(s){return U(),s&&u()===165?!1:(ze()||u()===19)&&!t.hasPrecedingLineBreak()}function bc(){return Y(Pa)}function Q_(s){return U()===160?Pa(s):!1}function K_(){return Y(Q_)}function Zt(){switch(u()){case 27:return Bu();case 19:return Yr(!1);case 115:return qi(M(),Be(),void 0);case 121:if(gc())return qi(M(),Be(),void 0);break;case 135:if(K_())return qi(M(),Be(),void 0);break;case 160:if(bc())return qi(M(),Be(),void 0);break;case 100:return ts(M(),Be(),void 0);case 86:return Ic(M(),Be(),void 0);case 101:return cc();case 92:return qu();case 117:return lc();case 99:return zu();case 88:return H_(251);case 83:return H_(252);case 107:return Fu();case 118:return uc();case 109:return fc();case 111:return Yu();case 113:case 85:case 98:return dc();case 89:return mc();case 60:return Z_();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Da())return Z_();break}return Xu()}function vc(s){return s.kind===138}function Z_(){let s=M(),p=Be(),m=Un(!0);if(qt(m,vc)){let x=Zu(s);if(x)return x;for(let N of m)N.flags|=33554432;return Tt(33554432,()=>Ui(s,p,m))}else return Ui(s,p,m)}function Zu(s){return Tt(33554432,()=>{let p=o_(vt,s);if(p)return c_(p)})}function Ui(s,p,m){switch(u()){case 115:case 121:case 87:case 160:case 135:return qi(s,p,m);case 100:return ts(s,p,m);case 86:return Ic(s,p,m);case 120:return Lc(s,p,m);case 156:return Rc(s,p,m);case 94:return _s(s,p,m);case 162:case 144:case 145:return mp(s,p,m);case 102:return gp(s,p,m);case 95:switch(U(),u()){case 90:case 64:return Cp(s,p,m);case 130:return yp(s,p,m);default:return Ap(s,p,m)}default:if(m){let y=an(282,!0,A.Declaration_expected);return rf(y,s),y.modifiers=m,y}return}}function ep(){return U()===11}function tp(){return U(),u()===161||u()===64}function np(){return U(),!t.hasPrecedingLineBreak()&&(ke()||u()===11)}function Bi(s,p){if(u()!==19){if(s&4){ji();return}if(cr()){rn();return}}return Ri(s,p)}function rp(){let s=M();if(u()===28)return D(f.createOmittedExpression(),s);let p=mt(26),m=di(),y=Cr();return D(f.createBindingElement(p,void 0,m,y),s)}function xc(){let s=M(),p=mt(26),m=ze(),y=Vr(),x;m&&u()!==59?(x=y,y=void 0):(L(59),x=di());let N=Cr();return D(f.createBindingElement(p,y,x,N),s)}function ip(){let s=M();L(19);let p=ft(()=>Kt(9,xc));return L(20),D(f.createObjectBindingPattern(p),s)}function Tc(){let s=M();L(23);let p=ft(()=>Kt(10,rp));return L(24),D(f.createArrayBindingPattern(p),s)}function es(){return u()===19||u()===23||u()===81||ze()}function di(s){return u()===23?Tc():u()===19?ip():r_(s)}function ap(){return Na(!0)}function Na(s){let p=M(),m=Be(),y=di(A.Private_identifiers_are_not_allowed_in_variable_declarations),x;s&&y.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(x=Qt());let N=Er(),$=J_(u())?void 0:Cr(),_e=Vn(y,x,N,$);return Ne(D(_e,p),m)}function Sc(s){let p=M(),m=0;switch(u()){case 115:break;case 121:m|=1;break;case 87:m|=2;break;case 160:m|=4;break;case 135:B.assert(K_()),m|=6,U();break;default:B.fail()}U();let y;if(u()===165&&Y(wc))y=jn();else{let x=ye();xe(s),y=Kt(8,s?Na:ap),xe(x)}return D(Mn(y,m),p)}function wc(){return ma()&&U()===22}function qi(s,p,m){let y=Sc(!1);rn();let x=Tn(m,y);return Ne(D(x,s),p)}function ts(s,p,m){let y=Ze(),x=qn(m);L(100);let N=mt(42),$=x&2048?fi():r_(),_e=N?1:0,ee=x&1024?2:0,K=En();x&32&&ot(!0);let le=pr(_e|ee),Ue=Ln(59,!1),je=Bi(_e|ee,A.or_expected);ot(y);let De=f.createFunctionDeclaration(m,N,$,K,le,Ue,je);return Ne(D(De,s),p)}function _p(){if(u()===137)return L(137);if(u()===11&&Y(U)===21)return de(()=>{let s=Kn();return s.text==="constructor"?s:void 0})}function kc(s,p,m){return de(()=>{if(_p()){let y=En(),x=pr(0),N=Ln(59,!1),$=Bi(0,A.or_expected),_e=f.createConstructorDeclaration(m,x,$);return _e.typeParameters=y,_e.type=N,Ne(D(_e,s),p)}})}function Ec(s,p,m,y,x,N,$,_e){let ee=y?1:0,K=qt(m,tl)?2:0,le=En(),Ue=pr(ee|K),je=Ln(59,!1),De=Bi(ee|K,_e),Yt=f.createMethodDeclaration(m,y,x,N,le,Ue,je,De);return Yt.exclamationToken=$,Ne(D(Yt,s),p)}function ns(s,p,m,y,x){let N=!x&&!t.hasPrecedingLineBreak()?mt(54):void 0,$=Er(),_e=Pt(90112,Cr);Fl(y,$,_e);let ee=f.createPropertyDeclaration(m,y,x||N,$,_e);return Ne(D(ee,s),p)}function Ac(s,p,m){let y=mt(42),x=Vr(),N=mt(58);return y||u()===21||u()===30?Ec(s,p,m,y,x,N,void 0,A.or_expected):ns(s,p,m,x,N)}function Dr(s,p,m,y,x){let N=Vr(),$=En(),_e=pr(0),ee=Ln(59,!1),K=Bi(x),le=y===177?f.createGetAccessorDeclaration(m,N,_e,ee,K):f.createSetAccessorDeclaration(m,N,_e,K);return le.typeParameters=$,Ds(le)&&(le.type=ee),Ne(D(le,s),p)}function Cc(){let s;if(u()===60)return!0;for(;$r(u());){if(s=u(),a2(s))return!0;U()}if(u()===42||(Fr()&&(s=u(),U()),u()===23))return!0;if(s!==void 0){if(!Ti(s)||s===153||s===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return cr()}}return!1}function sp(s,p,m){Qn(126);let y=Dc(),x=Ne(D(f.createClassStaticBlockDeclaration(y),s),p);return x.modifiers=m,x}function Dc(){let s=Ce(),p=Ze();Xe(!1),ot(!0);let m=Yr(!1);return Xe(s),ot(p),m}function op(){if(Ze()&&u()===135){let s=M(),p=wt(A.Expression_expected);U();let m=Ea(s,p,!0);return pi(s,m)}return li()}function Pc(){let s=M();if(!Je(60))return;let p=Pi(op);return D(f.createDecorator(p),s)}function rs(s,p,m){let y=M(),x=u();if(u()===87&&p){if(!de(i_))return}else{if(m&&u()===126&&Y(zc))return;if(s&&u()===126)return;if(!Ws())return}return D(he(x),y)}function Un(s,p,m){let y=M(),x,N,$,_e=!1,ee=!1,K=!1;if(s&&u()===60)for(;N=Pc();)x=Cn(x,N);for(;$=rs(_e,p,m);)$.kind===126&&(_e=!0),x=Cn(x,$),ee=!0;if(ee&&s&&u()===60)for(;N=Pc();)x=Cn(x,N),K=!0;if(K)for(;$=rs(_e,p,m);)$.kind===126&&(_e=!0),x=Cn(x,$);return x&&Dt(x,y)}function is(){let s;if(u()===134){let p=M();U();let m=D(he(134),p);s=Dt([m],p)}return s}function cp(){let s=M(),p=Be();if(u()===27)return U(),Ne(D(f.createSemicolonClassElement(),s),p);let m=Un(!0,!0,!0);if(u()===126&&Y(zc))return sp(s,p,m);if(_i(139))return Dr(s,p,m,177,0);if(_i(153))return Dr(s,p,m,178,0);if(u()===137||u()===11){let y=kc(s,p,m);if(y)return y}if(ho())return yo(s,p,m);if(bt(u())||u()===11||u()===9||u()===42||u()===23)if(qt(m,vc)){for(let x of m)x.flags|=33554432;return Tt(33554432,()=>Ac(s,p,m))}else return Ac(s,p,m);if(m){let y=an(80,!0,A.Declaration_expected);return ns(s,p,m,y,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function lp(){let s=M(),p=Be(),m=Un(!0);if(u()===86)return as(s,p,m,231);let y=an(282,!0,A.Expression_expected);return rf(y,s),y.modifiers=m,y}function Nc(){return as(M(),Be(),void 0,231)}function Ic(s,p,m){return as(s,p,m,263)}function as(s,p,m,y){let x=Ze();L(86);let N=Oc(),$=En();qt(m,a6)&&ot(!0);let _e=Mc(),ee;L(19)?(ee=fp(),L(20)):ee=jn(),ot(x);let K=y===263?f.createClassDeclaration(m,N,$,_e,ee):f.createClassExpression(m,N,$,_e,ee);return Ne(D(K,s),p)}function Oc(){return ze()&&!up()?lr(ze()):void 0}function up(){return u()===119&&Y(a_)}function Mc(){if(jc())return kn(22,Jc)}function Jc(){let s=M(),p=u();B.assert(p===96||p===119),U();let m=Kt(7,pp);return D(f.createHeritageClause(p,m),s)}function pp(){let s=M(),p=li();if(p.kind===233)return p;let m=Ia();return D(f.createExpressionWithTypeArguments(p,m),s)}function Ia(){return u()===30?kr(20,ct,30,32):void 0}function jc(){return u()===96||u()===119}function fp(){return kn(5,cp)}function Lc(s,p,m){L(120);let y=wt(),x=En(),N=Mc(),$=w_(),_e=f.createInterfaceDeclaration(m,y,x,N,$);return Ne(D(_e,s),p)}function Rc(s,p,m){L(156),t.hasPrecedingLineBreak()&&Ee(A.Line_break_not_permitted_here);let y=wt(),x=En();L(64);let N=u()===141&&de(E_)||ct();rn();let $=f.createTypeAliasDeclaration(m,y,x,N);return Ne(D($,s),p)}function dp(){let s=M(),p=Be(),m=Vr(),y=ft(Cr);return Ne(D(f.createEnumMember(m,y),s),p)}function _s(s,p,m){L(94);let y=wt(),x;L(19)?(x=Te(()=>Kt(6,dp)),L(20)):x=jn();let N=f.createEnumDeclaration(m,y,x);return Ne(D(N,s),p)}function Uc(){let s=M(),p;return L(19)?(p=kn(1,Zt),L(20)):p=jn(),D(f.createModuleBlock(p),s)}function ss(s,p,m,y){let x=y&32,N=y&8?Rt():wt(),$=Je(25)?ss(M(),!1,void 0,8|x):Uc(),_e=f.createModuleDeclaration(m,N,$,y);return Ne(D(_e,s),p)}function Bc(s,p,m){let y=0,x;u()===162?(x=wt(),y|=2048):(x=Kn(),x.text=zr(x.text));let N;u()===19?N=Uc():rn();let $=f.createModuleDeclaration(m,x,N,y);return Ne(D($,s),p)}function mp(s,p,m){let y=0;if(u()===162)return Bc(s,p,m);if(Je(145))y|=32;else if(L(144),u()===11)return Bc(s,p,m);return ss(s,p,m,y)}function hp(){return u()===149&&Y(qc)}function qc(){return U()===21}function zc(){return U()===19}function os(){return U()===44}function yp(s,p,m){L(130),L(145);let y=wt();rn();let x=f.createNamespaceExportDeclaration(y);return x.modifiers=m,Ne(D(x,s),p)}function gp(s,p,m){L(102);let y=t.getTokenFullStart(),x;ke()&&(x=wt());let N=!1;if((x==null?void 0:x.escapedText)==="type"&&(u()!==161||ke()&&Y(tp))&&(ke()||vp())&&(N=!0,x=ke()?wt():void 0),x&&!Hr())return xp(s,p,m,x,N);let $=mi(x,y,N),_e=Fi(),ee=Fc();rn();let K=f.createImportDeclaration(m,$,_e,ee);return Ne(D(K,s),p)}function mi(s,p,m,y=!1){let x;return(s||u()===42||u()===19)&&(x=Tp(s,p,m,y),L(161)),x}function Fc(){let s=u();if((s===118||s===132)&&!t.hasPrecedingLineBreak())return cs(s)}function bp(){let s=M(),p=bt(u())?Rt():Mi(11);L(59);let m=Ut(!0);return D(f.createImportAttribute(p,m),s)}function cs(s,p){let m=M();p||L(s);let y=t.getTokenStart();if(L(19)){let x=t.hasPrecedingLineBreak(),N=Kt(24,bp,!0);if(!L(20)){let $=Ki(st);$&&$.code===A._0_expected.code&&Kc($,ja(Jt,Qe,y,1,A.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return D(f.createImportAttributes(N,x,s),m)}else{let x=Dt([],M(),void 0,!1);return D(f.createImportAttributes(x,!1,s),m)}}function vp(){return u()===42||u()===19}function Hr(){return u()===28||u()===161}function xp(s,p,m,y,x){L(64);let N=Sp();rn();let $=f.createImportEqualsDeclaration(m,x,y,N);return Ne(D($,s),p)}function Tp(s,p,m,y){let x;return(!s||Je(28))&&(y&&t.setSkipJsDocLeadingAsterisks(!0),x=u()===42?wp():Vc(275),y&&t.setSkipJsDocLeadingAsterisks(!1)),D(f.createImportClause(m,s,x),p)}function Sp(){return hp()?zi():Oi(!1)}function zi(){let s=M();L(149),L(21);let p=Fi();return L(22),D(f.createExternalModuleReference(p),s)}function Fi(){if(u()===11){let s=Kn();return s.text=zr(s.text),s}else return At()}function wp(){let s=M();L(42),L(130);let p=wt();return D(f.createNamespaceImport(p),s)}function Vc(s){let p=M(),m=s===275?f.createNamedImports(kr(23,Ep,19,20)):f.createNamedExports(kr(23,kp,19,20));return D(m,p)}function kp(){let s=Be();return Ne(Wc(281),s)}function Ep(){return Wc(276)}function Wc(s){let p=M(),m=Ti(u())&&!ke(),y=t.getTokenStart(),x=t.getTokenEnd(),N=!1,$,_e=!0,ee=Rt();if(ee.escapedText==="type")if(u()===130){let Ue=Rt();if(u()===130){let je=Rt();bt(u())?(N=!0,$=Ue,ee=le(),_e=!1):($=ee,ee=je,_e=!1)}else bt(u())?($=ee,_e=!1,ee=le()):(N=!0,ee=Ue)}else bt(u())&&(N=!0,ee=le());_e&&u()===130&&($=ee,L(130),ee=le()),s===276&&m&&at(y,x,A.Identifier_expected);let K=s===276?f.createImportSpecifier(N,$,ee):f.createExportSpecifier(N,$,ee);return D(K,p);function le(){return m=Ti(u())&&!ke(),y=t.getTokenStart(),x=t.getTokenEnd(),Rt()}}function hi(s){return D(f.createNamespaceExport(Rt()),s)}function Ap(s,p,m){let y=Ze();ot(!0);let x,N,$,_e=Je(156),ee=M();Je(42)?(Je(130)&&(x=hi(ee)),L(161),N=Fi()):(x=Vc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(L(161),N=Fi()));let K=u();N&&(K===118||K===132)&&!t.hasPrecedingLineBreak()&&($=cs(K)),rn(),ot(y);let le=f.createExportDeclaration(m,_e,x,N,$);return Ne(D(le,s),p)}function Cp(s,p,m){let y=Ze();ot(!0);let x;Je(64)?x=!0:L(90);let N=Ut(!0);rn(),ot(y);let $=f.createExportAssignment(m,x,N);return Ne(D($,s),p)}let Gc;(s=>{s[s.SourceElements=0]="SourceElements",s[s.BlockStatements=1]="BlockStatements",s[s.SwitchClauses=2]="SwitchClauses",s[s.SwitchClauseStatements=3]="SwitchClauseStatements",s[s.TypeMembers=4]="TypeMembers",s[s.ClassMembers=5]="ClassMembers",s[s.EnumMembers=6]="EnumMembers",s[s.HeritageClauseElement=7]="HeritageClauseElement",s[s.VariableDeclarations=8]="VariableDeclarations",s[s.ObjectBindingElements=9]="ObjectBindingElements",s[s.ArrayBindingElements=10]="ArrayBindingElements",s[s.ArgumentExpressions=11]="ArgumentExpressions",s[s.ObjectLiteralMembers=12]="ObjectLiteralMembers",s[s.JsxAttributes=13]="JsxAttributes",s[s.JsxChildren=14]="JsxChildren",s[s.ArrayLiteralMembers=15]="ArrayLiteralMembers",s[s.Parameters=16]="Parameters",s[s.JSDocParameters=17]="JSDocParameters",s[s.RestProperties=18]="RestProperties",s[s.TypeParameters=19]="TypeParameters",s[s.TypeArguments=20]="TypeArguments",s[s.TupleElementTypes=21]="TupleElementTypes",s[s.HeritageClauses=22]="HeritageClauses",s[s.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",s[s.ImportAttributes=24]="ImportAttributes",s[s.JSDocComment=25]="JSDocComment",s[s.Count=26]="Count"})(Gc||(Gc={}));let ls;(s=>{s[s.False=0]="False",s[s.True=1]="True",s[s.Unknown=2]="Unknown"})(ls||(ls={}));let us;(s=>{function p(K,le,Ue){Gn("file.js",K,99,void 0,1,0),t.setText(K,le,Ue),pt=t.scan();let je=m(),De=se("file.js",99,1,!1,[],he(1),0,Ga),Yt=Yi(st,De);return Vt&&(De.jsDocDiagnostics=Yi(Vt,De)),Yn(),je?{jsDocTypeExpression:je,diagnostics:Yt}:void 0}s.parseJSDocTypeExpressionForTests=p;function m(K){let le=M(),Ue=(K?Je:L)(19),je=Tt(16777216,Ji);(!K||Ue)&&zs(20);let De=f.createJSDocTypeExpression(je);return j(De),D(De,le)}s.parseJSDocTypeExpression=m;function y(){let K=M(),le=Je(19),Ue=M(),je=Oi(!1);for(;u()===81;)It(),qe(),je=D(f.createJSDocMemberName(je,wt()),Ue);le&&zs(20);let De=f.createJSDocNameReference(je);return j(De),D(De,K)}s.parseJSDocNameReference=y;function x(K,le,Ue){Gn("",K,99,void 0,1,0);let je=Tt(16777216,()=>ee(le,Ue)),Yt=Yi(st,{languageVariant:0,text:K});return Yn(),je?{jsDoc:je,diagnostics:Yt}:void 0}s.parseIsolatedJSDocComment=x;function N(K,le,Ue){let je=pt,De=st.length,Yt=on,un=Tt(16777216,()=>ee(le,Ue));return Rf(un,K),rt&524288&&(Vt||(Vt=[]),Pn(Vt,st,De)),pt=je,st.length=De,on=Yt,un}s.parseJSDocComment=N;let $;(K=>{K[K.BeginningOfLine=0]="BeginningOfLine",K[K.SawAsterisk=1]="SawAsterisk",K[K.SavingComments=2]="SavingComments",K[K.SavingBackticks=3]="SavingBackticks"})($||($={}));let _e;(K=>{K[K.Property=1]="Property",K[K.Parameter=2]="Parameter",K[K.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function ee(K=0,le){let Ue=Qe,je=le===void 0?Ue.length:K+le;if(le=je-K,B.assert(K>=0),B.assert(K<=je),B.assert(je<=Ue.length),!V6(Ue,K))return;let De,Yt,un,fr,dr,Ht=[],Xr=[],Dp=vt;vt|=1<<25;let Pp=t.scanRange(K+3,le-5,Np);return vt=Dp,Pp;function Np(){let I=1,W,H=K-(Ue.lastIndexOf(` -`,K)+1)+4;function te(Re){W||(W=H),Ht.push(Re),H+=Re.length}for(qe();Gi(5););Gi(4)&&(I=0,H=0);e:for(;;){switch(u()){case 60:nt(Ht),dr||(dr=M()),T(Zn(H)),I=0,W=void 0;break;case 4:Ht.push(t.getTokenText()),I=0,H=0;break;case 42:let Re=t.getTokenText();I===1?(I=2,te(Re)):(B.assert(I===0),I=1,H+=Re.length);break;case 5:B.assert(I!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let dt=t.getTokenText();W!==void 0&&H+dt.length>W&&Ht.push(dt.slice(W-H)),H+=dt.length;break;case 1:break e;case 82:I=2,te(t.getTokenValue());break;case 19:I=2;let gn=t.getTokenFullStart(),fn=t.getTokenEnd()-1,_n=n(fn);if(_n){fr||Pe(Ht),Xr.push(D(f.createJSDocText(Ht.join("")),fr??K,gn)),Xr.push(_n),Ht=[],fr=t.getTokenEnd();break}default:I=2,te(t.getTokenText());break}I===2?cn(!1):qe()}let ne=Ht.join("").trimEnd();Xr.length&&ne.length&&Xr.push(D(f.createJSDocText(ne),fr??K,dr)),Xr.length&&De&&B.assertIsDefined(dr,"having parsed tags implies that the end of the comment span should be set");let Ie=De&&Dt(De,Yt,un);return D(f.createJSDocComment(Xr.length?Dt(Xr,K,dr):ne.length?ne:void 0,Ie),K,je)}function Pe(I){for(;I.length&&(I[0]===` -`||I[0]==="\r");)I.shift()}function nt(I){for(;I.length;){let W=I[I.length-1].trimEnd();if(W==="")I.pop();else if(W.lengthdt&&(te.push(er.slice(dt-I)),Re=2),I+=er.length;break;case 19:Re=2;let Yc=t.getTokenFullStart(),Oa=t.getTokenEnd()-1,Hc=n(Oa);Hc?(ne.push(D(f.createJSDocText(te.join("")),Ie??H,Yc)),ne.push(Hc),te=[],Ie=t.getTokenEnd()):gn(t.getTokenText());break;case 62:Re===3?Re=2:Re=3,gn(t.getTokenText());break;case 82:Re!==3&&(Re=2),gn(t.getTokenValue());break;case 42:if(Re===0){Re=1,I+=1;break}default:Re!==3&&(Re=2),gn(t.getTokenText());break}Re===2||Re===3?fn=cn(Re===3):fn=qe()}Pe(te);let _n=te.join("").trimEnd();if(ne.length)return _n.length&&ne.push(D(f.createJSDocText(_n),Ie??H)),Dt(ne,H,t.getTokenEnd());if(_n.length)return _n}function n(I){let W=de(_);if(!W)return;qe(),pn();let H=i(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),qe();let ne=W==="link"?f.createJSDocLink:W==="linkcode"?f.createJSDocLinkCode:f.createJSDocLinkPlain;return D(ne(H,te.join("")),I,t.getTokenEnd())}function i(){if(bt(u())){let I=M(),W=Rt();for(;Je(25);)W=D(f.createQualifiedName(W,u()===81?an(80,!1):Rt()),I);for(;u()===81;)It(),qe(),W=D(f.createJSDocMemberName(W,wt()),I);return W}}function _(){if(Pr(),u()===19&&qe()===60&&bt(qe())){let I=t.getTokenValue();if(c(I))return I}}function c(I){return I==="link"||I==="linkcode"||I==="linkplain"}function d(I,W,H,te){return D(f.createJSDocUnknownTag(W,Bt(I,M(),H,te)),I)}function T(I){I&&(De?De.push(I):(De=[I],Yt=I.pos),un=I.end)}function q(){return Pr(),u()===19?m():void 0}function pe(){let I=Gi(23);I&&pn();let W=Gi(62),H=hy();return W&&Wl(62),I&&(pn(),mt(64)&&At(),L(24)),{name:H,isBracketed:I}}function Le(I){switch(I.kind){case 151:return!0;case 188:return Le(I.elementType);default:return El(I)&&et(I.typeName)&&I.typeName.escapedText==="Object"&&!I.typeArguments}}function en(I,W,H,te){let ne=q(),Ie=!ne;Pr();let{name:Re,isBracketed:dt}=pe(),gn=Pr();Ie&&!Y(_)&&(ne=q());let fn=Bt(I,M(),te,gn),_n=hr(ne,Re,H,te);_n&&(ne=_n,Ie=!0);let er=H===1?f.createJSDocPropertyTag(W,Re,dt,ne,Ie,fn):f.createJSDocParameterTag(W,Re,dt,ne,Ie,fn);return D(er,I)}function hr(I,W,H,te){if(I&&Le(I.type)){let ne=M(),Ie,Re;for(;Ie=de(()=>Op(H,te,W));)Ie.kind===341||Ie.kind===348?Re=Cn(Re,Ie):Ie.kind===345&&mn(Ie.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Re){let dt=D(f.createJSDocTypeLiteral(Re,I.type.kind===188),ne);return D(f.createJSDocTypeExpression(dt),ne)}}}function yr(I,W,H,te){qt(De,O6)&&at(W.pos,t.getTokenStart(),A._0_tag_already_specified,Ts(W.escapedText));let ne=q();return D(f.createJSDocReturnTag(W,ne,Bt(I,M(),H,te)),I)}function Vi(I,W,H,te){qt(De,nd)&&at(W.pos,t.getTokenStart(),A._0_tag_already_specified,Ts(W.escapedText));let ne=m(!0),Ie=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocTypeTag(W,ne,Ie),I)}function Q0(I,W,H,te){let Ie=u()===23||Y(()=>qe()===60&&bt(qe())&&c(t.getTokenValue()))?void 0:y(),Re=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocSeeTag(W,Ie,Re),I)}function K0(I,W,H,te){let ne=q(),Ie=Bt(I,M(),H,te);return D(f.createJSDocThrowsTag(W,ne,Ie),I)}function Z0(I,W,H,te){let ne=M(),Ie=ey(),Re=t.getTokenFullStart(),dt=Bt(I,Re,H,te);dt||(Re=t.getTokenFullStart());let gn=typeof dt!="string"?Dt(lf([D(Ie,ne,Re)],dt),ne):Ie.text+dt;return D(f.createJSDocAuthorTag(W,gn),I)}function ey(){let I=[],W=!1,H=t.getToken();for(;H!==1&&H!==4;){if(H===30)W=!0;else{if(H===60&&!W)break;if(H===32&&W){I.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}I.push(t.getTokenText()),H=qe()}return f.createJSDocText(I.join(""))}function ty(I,W,H,te){let ne=Id();return D(f.createJSDocImplementsTag(W,ne,Bt(I,M(),H,te)),I)}function ny(I,W,H,te){let ne=Id();return D(f.createJSDocAugmentsTag(W,ne,Bt(I,M(),H,te)),I)}function ry(I,W,H,te){let ne=m(!1),Ie=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocSatisfiesTag(W,ne,Ie),I)}function iy(I,W,H,te){let ne=t.getTokenFullStart(),Ie;ke()&&(Ie=wt());let Re=mi(Ie,ne,!0,!0),dt=Fi(),gn=Fc(),fn=H!==void 0&&te!==void 0?Bt(I,M(),H,te):void 0;return D(f.createJSDocImportTag(W,Re,dt,gn,fn),I)}function Id(){let I=Je(19),W=M(),H=ay();t.setSkipJsDocLeadingAsterisks(!0);let te=Ia();t.setSkipJsDocLeadingAsterisks(!1);let ne=f.createExpressionWithTypeArguments(H,te),Ie=D(ne,W);return I&&L(20),Ie}function ay(){let I=M(),W=yi();for(;Je(25);){let H=yi();W=D(ae(W,H),I)}return W}function Wi(I,W,H,te,ne){return D(W(H,Bt(I,M(),te,ne)),I)}function Od(I,W,H,te){let ne=m(!0);return pn(),D(f.createJSDocThisTag(W,ne,Bt(I,M(),H,te)),I)}function _y(I,W,H,te){let ne=m(!0);return pn(),D(f.createJSDocEnumTag(W,ne,Bt(I,M(),H,te)),I)}function sy(I,W,H,te){let ne=q();Pr();let Ie=Ip();pn();let Re=R(H),dt;if(!ne||Le(ne.type)){let fn,_n,er,Yc=!1;for(;(fn=de(()=>py(H)))&&fn.kind!==345;)if(Yc=!0,fn.kind===344)if(_n){let Oa=Ee(A.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Oa&&Kc(Oa,ja(Jt,Qe,0,0,A.The_tag_was_first_specified_here));break}else _n=fn;else er=Cn(er,fn);if(Yc){let Oa=ne&&ne.type.kind===188,Hc=f.createJSDocTypeLiteral(er,Oa);ne=_n&&_n.typeExpression&&!Le(_n.typeExpression.type)?_n.typeExpression:D(Hc,I),dt=ne.end}}dt=dt||Re!==void 0?M():(Ie??ne??W).end,Re||(Re=Bt(I,dt,H,te));let gn=f.createJSDocTypedefTag(W,ne,Ie,Re);return D(gn,I,dt)}function Ip(I){let W=t.getTokenStart();if(!bt(u()))return;let H=yi();if(Je(25)){let te=Ip(!0),ne=f.createModuleDeclaration(void 0,H,te,I?8:void 0);return D(ne,W)}return I&&(H.flags|=4096),H}function oy(I){let W=M(),H,te;for(;H=de(()=>Op(4,I));){if(H.kind===345){mn(H.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}te=Cn(te,H)}return Dt(te||[],W)}function Md(I,W){let H=oy(W),te=de(()=>{if(Gi(60)){let ne=Zn(W);if(ne&&ne.kind===342)return ne}});return D(f.createJSDocSignature(void 0,H,te),I)}function cy(I,W,H,te){let ne=Ip();pn();let Ie=R(H),Re=Md(I,H);Ie||(Ie=Bt(I,M(),H,te));let dt=Ie!==void 0?M():Re.end;return D(f.createJSDocCallbackTag(W,Re,ne,Ie),I,dt)}function ly(I,W,H,te){pn();let ne=R(H),Ie=Md(I,H);ne||(ne=Bt(I,M(),H,te));let Re=ne!==void 0?M():Ie.end;return D(f.createJSDocOverloadTag(W,Ie,ne),I,Re)}function uy(I,W){for(;!et(I)||!et(W);)if(!et(I)&&!et(W)&&I.right.escapedText===W.right.escapedText)I=I.left,W=W.left;else return!1;return I.escapedText===W.escapedText}function py(I){return Op(1,I)}function Op(I,W,H){let te=!0,ne=!1;for(;;)switch(qe()){case 60:if(te){let Ie=fy(I,W);return Ie&&(Ie.kind===341||Ie.kind===348)&&H&&(et(Ie.name)||!uy(H,Ie.name.left))?!1:Ie}ne=!1;break;case 4:te=!0,ne=!1;break;case 42:ne&&(te=!1),ne=!0;break;case 80:te=!1;break;case 1:return!1}}function fy(I,W){B.assert(u()===60);let H=t.getTokenFullStart();qe();let te=yi(),ne=Pr(),Ie;switch(te.escapedText){case"type":return I===1&&Vi(H,te);case"prop":case"property":Ie=1;break;case"arg":case"argument":case"param":Ie=6;break;case"template":return Jd(H,te,W,ne);case"this":return Od(H,te,W,ne);default:return!1}return I&Ie?en(H,te,I,W):!1}function dy(){let I=M(),W=Gi(23);W&&pn();let H=Un(!1,!0),te=yi(A.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ne;if(W&&(pn(),L(64),ne=Tt(16777216,Ji),L(24)),!ea(te))return D(f.createTypeParameterDeclaration(H,te,void 0,ne),I)}function my(){let I=M(),W=[];do{pn();let H=dy();H!==void 0&&W.push(H),Pr()}while(Gi(28));return Dt(W,I)}function Jd(I,W,H,te){let ne=u()===19?m():void 0,Ie=my();return D(f.createJSDocTemplateTag(W,ne,Ie,Bt(I,M(),H,te)),I)}function Gi(I){return u()===I?(qe(),!0):!1}function hy(){let I=yi();for(Je(23)&&L(24);Je(25);){let W=yi();Je(23)&&L(24),I=d_(I,W)}return I}function yi(I){if(!bt(u()))return an(80,!I,I||A.Identifier_expected);Sn++;let W=t.getTokenStart(),H=t.getTokenEnd(),te=u(),ne=zr(t.getTokenValue()),Ie=D(re(ne,te),W,H);return qe(),Ie}}})(us=e.JSDocParser||(e.JSDocParser={}))})(na||(na={}));var Um=new WeakSet;function ev(e){Um.has(e)&&B.fail("Source file has already been incrementally parsed"),Um.add(e)}var Ch=new WeakSet;function tv(e){return Ch.has(e)}function of(e){Ch.add(e)}var yl;(e=>{function t(w,J,re,be){if(be=be||B.shouldAssert(2),f(w,J,re,be),Mg(re))return w;if(w.statements.length===0)return na.parseSourceFile(w.fileName,J,w.languageVersion,void 0,!0,w.scriptKind,w.setExternalModuleIndicator,w.jsDocParsingMode);ev(w),na.fixupParentReferences(w);let he=w.text,me=k(w),O=l(w,re);f(w,J,O,be),B.assert(O.span.start<=re.span.start),B.assert(Nr(O.span)===Nr(re.span)),B.assert(Nr(ps(O))===Nr(ps(re)));let ae=ps(O).length-O.span.length;C(w,O.span.start,Nr(O.span),Nr(ps(O)),ae,he,J,be);let ve=na.parseSourceFile(w.fileName,J,w.languageVersion,me,!0,w.scriptKind,w.setExternalModuleIndicator,w.jsDocParsingMode);return ve.commentDirectives=a(w.commentDirectives,ve.commentDirectives,O.span.start,Nr(O.span),ae,he,J,be),ve.impliedNodeFormat=w.impliedNodeFormat,ve}e.updateSourceFile=t;function a(w,J,re,be,he,me,O,ae){if(!w)return J;let ve,X=!1;for(let G of w){let{range:ht,type:ir}=G;if(ht.endbe){oe();let xn={range:{pos:ht.pos+he,end:ht.end+he},type:ir};ve=Cn(ve,xn),ae&&B.assert(me.substring(ht.pos,ht.end)===O.substring(xn.range.pos,xn.range.end))}}return oe(),ve;function oe(){X||(X=!0,ve?J&&ve.push(...J):ve=J)}}function o(w,J,re,be,he,me){J?ae(w):O(w);return;function O(ve){let X="";if(me&&h(ve)&&(X=be.substring(ve.pos,ve.end)),mm(ve),ta(ve,ve.pos+re,ve.end+re),me&&h(ve)&&B.assert(X===he.substring(ve.pos,ve.end)),tn(ve,O,ae),Zi(ve))for(let oe of ve.jsDoc)O(oe);E(ve,me)}function ae(ve){ta(ve,ve.pos+re,ve.end+re);for(let X of ve)O(X)}}function h(w){switch(w.kind){case 11:case 9:case 80:return!0}return!1}function g(w,J,re,be,he){B.assert(w.end>=J,"Adjusting an element that was entirely before the change range"),B.assert(w.pos<=re,"Adjusting an element that was entirely after the change range"),B.assert(w.pos<=w.end);let me=Math.min(w.pos,be),O=w.end>=re?w.end+he:Math.min(w.end,be);if(B.assert(me<=O),w.parent){let ae=w.parent;B.assertGreaterThanOrEqual(me,ae.pos),B.assertLessThanOrEqual(O,ae.end)}ta(w,me,O)}function E(w,J){if(J){let re=w.pos,be=he=>{B.assert(he.pos>=re),re=he.end};if(Zi(w))for(let he of w.jsDoc)be(he);tn(w,be),B.assert(re<=w.end)}}function C(w,J,re,be,he,me,O,ae){ve(w);return;function ve(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,!1,he,me,O,ae);return}let G=oe.end;if(G>=J){if(of(oe),mm(oe),g(oe,J,re,be,he),tn(oe,ve,X),Zi(oe))for(let ht of oe.jsDoc)ve(ht);E(oe,ae);return}B.assert(Gre){o(oe,!0,he,me,O,ae);return}let G=oe.end;if(G>=J){of(oe),g(oe,J,re,be,he);for(let ht of oe)ve(ht);return}B.assert(G0&&O<=1;O++){let ae=Z(w,be);B.assert(ae.pos<=be);let ve=ae.pos;be=Math.max(0,ve-1)}let he=Og(be,Nr(J.span)),me=J.newLength+(J.span.start-be);return d1(he,me)}function Z(w,J){let re=w,be;if(tn(w,me),be){let O=he(be);O.pos>re.pos&&(re=O)}return re;function he(O){for(;;){let ae=bb(O);if(ae)O=ae;else return O}}function me(O){if(!ea(O))if(O.pos<=J){if(O.pos>=re.pos&&(re=O),JJ),!0}}function f(w,J,re,be){let he=w.text;if(re&&(B.assert(he.length-re.span.length+re.newLength===J.length),be||B.shouldAssert(3))){let me=he.substr(0,re.span.start),O=J.substr(0,re.span.start);B.assert(me===O);let ae=he.substring(Nr(re.span),he.length),ve=J.substring(Nr(ps(re)),J.length);B.assert(ae===ve)}}function k(w){let J=w.statements,re=0;B.assert(re=X.pos&&O=X.pos&&O{w[w.Value=-1]="Value"})(v||(v={}))})(yl||(yl={}));function nv(e){return rv(e)!==void 0}function rv(e){let t=e1(e,Bb,!1);if(t)return t;if(eg(e,".ts")){let a=Zm(e).lastIndexOf(".d.");if(a>=0)return e.substring(a)}}function iv(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,A.resolution_mode_should_be_either_require_or_import)}}function av(e,t){let a=[];for(let o of Kp(t,0)||Ot){let h=t.substring(o.pos,o.end);lv(a,o,h)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let h=e.pragmas.get(o.name);h instanceof Array?h.push(o.args):e.pragmas.set(o.name,[h,o.args]);continue}e.pragmas.set(o.name,o.args)}}function _v(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let h=e.referencedFiles,g=e.typeReferenceDirectives,E=e.libReferenceDirectives;zn(Jp(a),C=>{let{types:l,lib:Z,path:f,["resolution-mode"]:k,preserve:v}=C.arguments,w=v==="true"?!0:void 0;if(C.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let J=iv(k,l.pos,l.end,t);g.push({pos:l.pos,end:l.end,fileName:l.value,...J?{resolutionMode:J}:{},...w?{preserve:w}:{}})}else Z?E.push({pos:Z.pos,end:Z.end,fileName:Z.value,...w?{preserve:w}:{}}):f?h.push({pos:f.pos,end:f.end,fileName:f.value,...w?{preserve:w}:{}}):t(C.range.pos,C.range.end-C.range.pos,A.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Gp(Jp(a),h=>({name:h.arguments.name,path:h.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let h of a)e.moduleName&&t(h.range.pos,h.range.end-h.range.pos,A.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=h.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{zn(Jp(a),h=>{(!e.checkJsDirective||h.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:h.range.end,pos:h.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Wp=new Map;function sv(e){if(Wp.has(e))return Wp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Wp.set(e,t),t}var ov=/^\/\/\/\s*<(\S+)\s.*?\/>/im,cv=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;function lv(e,t,a){let o=t.kind===2&&ov.exec(a);if(o){let g=o[1].toLowerCase(),E=Km[g];if(!E||!(E.kind&1))return;if(E.args){let C={};for(let l of E.args){let f=sv(l.name).exec(a);if(!f&&!l.optional)return;if(f){let k=f[2]||f[3];if(l.captureSpan){let v=t.pos+f.index+f[1].length+1;C[l.name]={value:k,pos:v,end:v+k.length}}else C[l.name]=k}}e.push({name:g,args:{arguments:C,range:t}})}else e.push({name:g,args:{arguments:{},range:t}});return}let h=t.kind===2&&cv.exec(a);if(h)return Bm(e,t,2,h);if(t.kind===3){let g=/@(\S+)(\s+.*)?$/gim,E;for(;E=g.exec(a);)Bm(e,t,4,E)}}function Bm(e,t,a,o){if(!o)return;let h=o[1].toLowerCase(),g=Km[h];if(!g||!(g.kind&a))return;let E=o[2],C=uv(g,E);C!=="fail"&&e.push({name:h,args:{arguments:C,range:t}})}function uv(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let h=0;ho.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Ki(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return tn(this,e,t)}};function pv(e,t){let a=[];if(x2(e))return e.forEachChild(E=>{a.push(E)}),a;vs.setText((t||e.getSourceFile()).text);let o=e.pos,h=E=>{xs(a,o,E.pos,e),a.push(E),o=E.end},g=E=>{xs(a,o,E.pos,e),a.push(fv(E,e)),o=E.end};return zn(e.jsDoc,h),o=e.pos,e.forEachChild(h,g),xs(a,o,e.end,e),vs.setText(void 0),a}function xs(e,t,a,o){for(vs.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function sl(e,t){if(!e)return Ot;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Oh))){let o=new Set;for(let h of e){let g=Mh(t,h,E=>{var C;if(!o.has(E))return o.add(E),h.kind===177||h.kind===178?E.getContextualJsDocTags(h,t):((C=E.declarations)==null?void 0:C.length)===1?E.getJsDocTags(t):void 0});g&&(a=[...g,...a])}}return a}function bs(e,t){if(!e)return Ot;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Oh))){let o=new Set;for(let h of e){let g=Mh(t,h,E=>{if(!o.has(E))return o.add(E),h.kind===177||h.kind===178?E.getContextualDocumentationComment(h,t):E.getDocumentationComment(t)});g&&(a=a.length===0?g.slice():g.concat(lineBreakPart(),a))}}return a}function Mh(e,t,a){var o;let h=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!h)return;let g=ob(t);return xy(Z2(h),E=>{let C=e.getTypeAtLocation(E),l=g&&C.symbol?e.getTypeOfSymbol(C.symbol):C,Z=e.getPropertyOfType(l,t.symbol.name);return Z?a(Z):void 0})}var yv=class extends sd{constructor(e,t,a){super(e,t,a)}update(e,t){return Z6(this,e,t)}getLineAndCharacterOfPosition(e){return s1(this,e)}getLineStarts(){return Qp(this)}getPositionOfLineAndCharacter(e,t,a){return Sg(Qp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let h=this.getFullText();return h[o]===` -`&&h[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Ry();return this.forEachChild(h),e;function t(g){let E=o(g);E&&e.add(E,g)}function a(g){let E=e.get(g);return E||e.set(g,E=[]),E}function o(g){let E=Ef(g);return E&&(wl(E)&&br(E.expression)?E.expression.name.text:S1(E)?getNameFromPropertyName(E):void 0)}function h(g){switch(g.kind){case 262:case 218:case 174:case 173:let E=g,C=o(E);if(C){let f=a(C),k=Ki(f);k&&E.parent===k.parent&&E.symbol===k.symbol?E.body&&!k.body&&(f[f.length-1]=E):f.push(E)}tn(g,h);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(g),tn(g,h);break;case 169:if(!Os(g,31))break;case 260:case 208:{let f=g;if(u2(f.name)){tn(f.name,h);break}f.initializer&&h(f.initializer)}case 306:case 172:case 171:t(g);break;case 278:let l=g;l.exportClause&&(dh(l.exportClause)?zn(l.exportClause.elements,h):h(l.exportClause.name));break;case 272:let Z=g.importClause;Z&&(Z.name&&t(Z.name),Z.namedBindings&&(Z.namedBindings.kind===274?t(Z.namedBindings):zn(Z.namedBindings.elements,h)));break;case 226:If(g)!==0&&t(g);default:tn(g,h)}}}},gv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return s1(this,e)}};function bv(){return{getNodeConstructor:()=>sd,getTokenConstructor:()=>Ph,getIdentifierConstructor:()=>Nh,getPrivateIdentifierConstructor:()=>Ih,getSourceFileConstructor:()=>yv,getSymbolConstructor:()=>dv,getTypeConstructor:()=>mv,getSignatureConstructor:()=>hv,getSourceMapSourceConstructor:()=>gv}}var vv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],ax=[...vv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];Cb(bv());var Jl=new Proxy({},{get:()=>!0});var jh=Jl["4.8"];function rr(e,t=!1){var a;if(e!=null){if(jh){if(t||Ol(e)){let o=y1(e);return o?Array.from(o):void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!kl(o))}}function sa(e,t=!1){var a;if(e!=null){if(jh){if(t||Ml(e)){let o=xl(e);return o?Array.from(o):void 0}return}return(a=e.decorators)==null?void 0:a.filter(kl)}}var Rh={};var jl=new Proxy({},{get:(e,t)=>t});var Uh=jl,Bh=jl;var P=Uh,Ft=Bh;var qh=Jl["5.0"],ue=ce,Sv=new Set([ue.BarBarToken,ue.AmpersandAmpersandToken,ue.QuestionQuestionToken]),wv=new Set([ce.EqualsToken,ce.PlusEqualsToken,ce.MinusEqualsToken,ce.AsteriskEqualsToken,ce.AsteriskAsteriskEqualsToken,ce.SlashEqualsToken,ce.PercentEqualsToken,ce.LessThanLessThanEqualsToken,ce.GreaterThanGreaterThanEqualsToken,ce.GreaterThanGreaterThanGreaterThanEqualsToken,ce.AmpersandEqualsToken,ce.BarEqualsToken,ce.BarBarEqualsToken,ce.AmpersandAmpersandEqualsToken,ce.QuestionQuestionEqualsToken,ce.CaretEqualsToken]),kv=new Set([ue.InstanceOfKeyword,ue.InKeyword,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.SlashToken,ue.PercentToken,ue.PlusToken,ue.MinusToken,ue.AmpersandToken,ue.BarToken,ue.CaretToken,ue.LessThanLessThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.AmpersandAmpersandToken,ue.BarBarToken,ue.LessThanToken,ue.LessThanEqualsToken,ue.GreaterThanToken,ue.GreaterThanEqualsToken,ue.EqualsEqualsToken,ue.EqualsEqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken]);function Ev(e){return wv.has(e.kind)}function Av(e){return Sv.has(e.kind)}function Cv(e){return kv.has(e.kind)}function ti(e){return _t(e)}function zh(e){return e.kind!==ue.SemicolonClassElement}function We(e,t){let a=rr(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Fh(e){let t=rr(e);return t==null?null:t[t.length-1]??null}function Vh(e){return e.kind===ue.CommaToken}function Dv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function Pv(e){return e.kind===ue.JSDocComment}function Wh(e){if(Ev(e))return{type:P.AssignmentExpression,operator:ti(e.kind)};if(Av(e))return{type:P.LogicalExpression,operator:ti(e.kind)};if(Cv(e))return{type:P.BinaryExpression,operator:ti(e.kind)};throw new Error(`Unexpected binary operator ${_t(e.kind)}`)}function Js(e,t){let a=t.getLineAndCharacterOfPosition(e);return{line:a.line+1,column:a.character}}function ni(e,t){let[a,o]=e.map(h=>Js(h,t));return{start:a,end:o}}function Gh(e){if(e.kind===ce.Block)switch(e.parent.kind){case ce.Constructor:case ce.GetAccessor:case ce.SetAccessor:case ce.ArrowFunction:case ce.FunctionExpression:case ce.FunctionDeclaration:case ce.MethodDeclaration:return!0;default:return!1}return!0}function Za(e,t){return[e.getStart(t),e.getEnd()]}function Nv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Yh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Ll(e){return e.flags&Xt.Let?"let":(e.flags&Xt.AwaitUsing)===Xt.AwaitUsing?"await using":e.flags&Xt.Const?"const":e.flags&Xt.Using?"using":"var"}function Ci(e){let t=rr(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function oa(e,t,a){return o(t);function o(h){return x1(h)&&h.pos===e.end?h:Lv(h.getChildren(a),g=>(g.pos<=e.pos&&g.end>e.end||g.pos===e.end)&&jv(g,a)?o(g):void 0)}}function Iv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function Ov(e){return!!Iv(e,Yh)}function pd(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return Rh[a]||t})}function ca(e){return e.kind===ue.ComputedPropertyName}function fd(e){return!!e.questionToken}function dd(e){return e.type===P.ChainExpression}function Hh(e,t){return dd(t)&&e.expression.kind!==ce.ParenthesizedExpression}function Mv(e){let t;if(qh&&e.kind===ue.Identifier?t=Ns(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Ft.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Ft.Identifier:Ft.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Ft.Boolean:Ft.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Ft.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Ft.Template;switch(e.kind){case ue.NumericLiteral:return Ft.Numeric;case ue.JsxText:return Ft.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Ft.JSXText:Ft.String;case ue.RegularExpressionLiteral:return Ft.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Yh(e.parent))return Ft.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&Ov(e))return Ft.JSXIdentifier}return Ft.Identifier}function Jv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),h=t.text.slice(a,o),g=Mv(e),E=[a,o],C=ni(E,t);return g===Ft.RegularExpression?{type:g,value:h,range:E,loc:C,regex:{pattern:h.slice(1,h.lastIndexOf("/")),flags:h.slice(h.lastIndexOf("/")+1)}}:{type:g,value:h,range:E,loc:C}}function Xh(e){let t=[];function a(o){Dv(o)||Pv(o)||(Nv(o)&&o.kind!==ue.EndOfFileToken?t.push(Jv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var ud=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function md(e,t,a,o=a){let[h,g]=[a,o].map(E=>{let{line:C,character:l}=t.getLineAndCharacterOfPosition(E);return{line:C+1,column:l,offset:E}});return new ud(e,t.fileName,{start:h,end:g})}function $h(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function jv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function Lv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ue.EndOfFileToken}function hd(e){return!Uv(e)}function Zh(e){return kf(e.parent,Pf)}function Bv(e){return We(ue.AbstractKeyword,e)}function qv(e){if(e.parameters.length&&!Il(e)){let t=e.parameters[0];if(zv(t))return t}return null}function zv(e){return Qh(e.name)}function e0(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Xa(t)||Ei(t)&&!Bv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Xa(t)||Ei(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&qv(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function yd(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&Xt.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.NonNullExpression:return yd(e.expression);default:return!1}}function t0(e){let t=rr(e),a=e;for(;(!t||t.length===0)&&ei(a.parent);){let o=rr(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var b=ce;function vd(e){return md("message"in e&&e.message||e.messageText,e.file,e.start)}var ge,n0,$t,js,bd,Ge,r0,Rl=class{constructor(t,a){Ud(this,ge);Ma(this,"ast");Ma(this,"options");Ma(this,"esTreeNodeToTSNodeMap",new WeakMap);Ma(this,"tsNodeToESTreeNodeMap",new WeakMap);Ma(this,"allowPattern",!1);this.ast=t,this.options={...a}}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(t,a,o){if(!t)return null;we(this,ge,n0).call(this,t);let h=this.allowPattern;o!==void 0&&(this.allowPattern=o);let g=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,g),this.allowPattern=h,g}fixExports(t,a){let h=ei(t)&&!!(t.flags&Xt.Namespace)?t0(t):rr(t);if((h==null?void 0:h[0].kind)===b.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let g=h[0],E=h[1],C=(E==null?void 0:E.kind)===b.DefaultKeyword,l=C?oa(E,this.ast,this.ast):oa(g,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=ni(a.range,this.ast),C)return this.createNode(t,{type:P.ExportDefaultDeclaration,declaration:a,range:[g.getStart(this.ast),a.range[1]],exportKind:"value"});let Z=a.type===P.TSInterfaceDeclaration||a.type===P.TSTypeAliasDeclaration,f="declare"in a&&a.declare;return this.createNode(t,we(this,ge,js).call(this,{type:P.ExportNamedDeclaration,declaration:a,specifiers:[],source:null,exportKind:Z||f?"type":"value",range:[g.getStart(this.ast),a.range[1]],attributes:[]},"assertions","attributes",!0))}return a}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(t)||this.tsNodeToESTreeNodeMap.set(t,a))}convertPattern(t,a){return this.converter(t,a,!0)}convertChild(t,a){return this.converter(t,a,!1)}createNode(t,a){let o=a;return o.range??(o.range=Za(t,this.ast)),o.loc??(o.loc=ni(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertBindingNameWithTypeAnnotation(t,a,o){let h=this.convertPattern(t);return a&&(h.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(h,h.typeAnnotation.range)),h}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===b.FunctionType||(a==null?void 0:a.kind)===b.ConstructorType?2:1,g=[t.getFullStart()-o,t.end],E=ni(g,this.ast);return{type:P.TSTypeAnnotation,loc:E,range:g,typeAnnotation:this.convertChild(t)}}convertBodyExpressions(t,a){let o=Gh(a);return t.map(h=>{let g=this.convertChild(h);if(o){if(g!=null&&g.expression&&Dl(h)&&Qa(h.expression)){let E=g.expression.raw;return g.directive=E.slice(1,-1),g}o=!1}return g}).filter(h=>h)}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=oa(t,this.ast,this.ast);return this.createNode(a,{type:P.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(h=>this.convertChild(h))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=oa(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:P.TSTypeParameterDeclaration,range:o,loc:ni(o,this.ast),params:t.map(h=>this.convertChild(h))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var h;let o=this.convertChild(a);return o.decorators=((h=sa(a))==null?void 0:h.map(g=>this.convertChild(g)))??[],o}):[]}convertChainExpression(t,a){let{child:o,isOptional:h}=t.type===P.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===P.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},g=Hh(a,o);if(!g&&!h)return t;if(g&&dd(o)){let E=o.expression;t.type===P.MemberExpression?t.object=E:t.type===P.CallExpression?t.callee=E:t.expression=E}return this.createNode(a,{type:P.ChainExpression,expression:t})}deeplyCopy(t){t.kind===ce.JSDocFunctionType&&we(this,ge,Ge).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${b[t.kind]}`;if(this.options.errorOnUnknownASTType&&!P[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&w1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let h=sa(t);h!=null&&h.length&&(o.decorators=h.map(E=>this.convertChild(E)));let g=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([E])=>!g.has(E)).forEach(([E,C])=>{Array.isArray(C)?o[E]=C.map(l=>this.convertChild(l)):C&&typeof C=="object"&&C.kind?o[E]=this.convertChild(C):o[E]=C}),o}convertJSXIdentifier(t){let a=this.createNode(t,{type:P.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===ce.JsxNamespacedName){let h=this.createNode(t,{type:P.JSXNamespacedName,namespace:this.createNode(t.namespace,{type:P.JSXIdentifier,name:t.namespace.text}),name:this.createNode(t.name,{type:P.JSXIdentifier,name:t.name.text})});return this.registerTSNodeInNodeMap(t,h),h}let a=t.getText(),o=a.indexOf(":");if(o>0){let h=Za(t,this.ast),g=this.createNode(t,{type:P.JSXNamespacedName,namespace:this.createNode(t,{type:P.JSXIdentifier,name:a.slice(0,o),range:[h[0],h[0]+o]}),name:this.createNode(t,{type:P.JSXIdentifier,name:a.slice(o+1),range:[h[0]+o+1,h[1]]}),range:h});return this.registerTSNodeInNodeMap(t,g),g}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case b.PropertyAccessExpression:t.name.kind===b.PrivateIdentifier&&we(this,ge,Ge).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:P.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case b.ThisKeyword:case b.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:P.TSMethodSignature,accessibility:Ci(t),computed:ca(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case b.GetAccessor:return"get";case b.SetAccessor:return"set";case b.MethodSignature:return"method"}})(),optional:fd(t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}convertImportAttributes(t){return t===void 0?[]:t.elements.map(a=>this.convertChild(a))}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=Js(t.range[1],this.ast))}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&we(this,ge,$t).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==b.StringLiteral&&we(this,ge,$t).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertNode(t,a){var o,h,g,E,C,l,Z;switch(t.kind){case b.SourceFile:return this.createNode(t,{type:P.Program,body:this.convertBodyExpressions(t.statements,t),comments:void 0,range:[t.getStart(this.ast),t.endOfFileToken.end],sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case b.Block:return this.createNode(t,{type:P.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case b.Identifier:return Kh(t)?this.createNode(t,{type:P.ThisExpression}):this.createNode(t,{type:P.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case b.PrivateIdentifier:return this.createNode(t,{type:P.PrivateIdentifier,name:t.text.slice(1)});case b.WithStatement:return this.createNode(t,{type:P.WithStatement,object:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ReturnStatement:return this.createNode(t,{type:P.ReturnStatement,argument:this.convertChild(t.expression)});case b.LabeledStatement:return this.createNode(t,{type:P.LabeledStatement,label:this.convertChild(t.label),body:this.convertChild(t.statement)});case b.ContinueStatement:return this.createNode(t,{type:P.ContinueStatement,label:this.convertChild(t.label)});case b.BreakStatement:return this.createNode(t,{type:P.BreakStatement,label:this.convertChild(t.label)});case b.IfStatement:return this.createNode(t,{type:P.IfStatement,test:this.convertChild(t.expression),consequent:this.convertChild(t.thenStatement),alternate:this.convertChild(t.elseStatement)});case b.SwitchStatement:return t.caseBlock.clauses.filter(f=>f.kind===b.DefaultClause).length>1&&we(this,ge,Ge).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:P.SwitchStatement,discriminant:this.convertChild(t.expression),cases:t.caseBlock.clauses.map(f=>this.convertChild(f))});case b.CaseClause:case b.DefaultClause:return this.createNode(t,{type:P.SwitchCase,test:t.kind===b.CaseClause?this.convertChild(t.expression):null,consequent:t.statements.map(f=>this.convertChild(f))});case b.ThrowStatement:return t.expression.end===t.expression.pos&&we(this,ge,$t).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:P.ThrowStatement,argument:this.convertChild(t.expression)});case b.TryStatement:return this.createNode(t,{type:P.TryStatement,block:this.convertChild(t.tryBlock),handler:this.convertChild(t.catchClause),finalizer:this.convertChild(t.finallyBlock)});case b.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&we(this,ge,Ge).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:P.CatchClause,param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null,body:this.convertChild(t.block)});case b.WhileStatement:return this.createNode(t,{type:P.WhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.DoStatement:return this.createNode(t,{type:P.DoWhileStatement,test:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ForStatement:return this.createNode(t,{type:P.ForStatement,init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor),body:this.convertChild(t.statement)});case b.ForInStatement:return we(this,ge,r0).call(this,t.initializer),this.createNode(t,{type:P.ForInStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement)});case b.ForOfStatement:return this.createNode(t,{type:P.ForOfStatement,left:this.convertPattern(t.initializer),right:this.convertChild(t.expression),body:this.convertChild(t.statement),await:!!(t.awaitModifier&&t.awaitModifier.kind===b.AwaitKeyword)});case b.FunctionDeclaration:{let f=We(b.DeclareKeyword,t),k=We(b.AsyncKeyword,t),v=!!t.asteriskToken;f?t.body?we(this,ge,Ge).call(this,t,"An implementation cannot be declared in ambient contexts."):k?we(this,ge,Ge).call(this,t,"'async' modifier cannot be used in an ambient context."):v&&we(this,ge,Ge).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&v&&we(this,ge,Ge).call(this,t,"A function signature cannot be declared as a generator.");let w=this.createNode(t,{type:t.body?P.FunctionDeclaration:P.TSDeclareFunction,async:k,body:this.convertChild(t.body)||void 0,declare:f,expression:!1,generator:v,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,w)}case b.VariableDeclaration:return this.createNode(t,{type:P.VariableDeclarator,definite:!!t.exclamationToken,id:this.convertBindingNameWithTypeAnnotation(t.name,t.type,t),init:this.convertChild(t.initializer)});case b.VariableStatement:{let f=this.createNode(t,{type:P.VariableDeclaration,declarations:t.declarationList.declarations.map(k=>this.convertChild(k)),declare:We(b.DeclareKeyword,t),kind:Ll(t.declarationList)});return f.declarations.length||we(this,ge,$t).call(this,t,"A variable declaration list must have at least one variable declarator."),(f.kind==="using"||f.kind==="await using")&&t.declarationList.declarations.forEach((k,v)=>{f.declarations[v].init==null&&we(this,ge,Ge).call(this,k,`'${f.kind}' declarations must be initialized.`),f.declarations[v].id.type!==P.Identifier&&we(this,ge,Ge).call(this,k.name,`'${f.kind}' declarations may not have binding patterns.`)}),this.fixExports(t,f)}case b.VariableDeclarationList:{let f=this.createNode(t,{type:P.VariableDeclaration,declarations:t.declarations.map(k=>this.convertChild(k)),declare:!1,kind:Ll(t)});return(f.kind==="using"||f.kind==="await using")&&t.declarations.forEach((k,v)=>{f.declarations[v].init!=null&&we(this,ge,Ge).call(this,k,`'${f.kind}' declarations may not be initialized in for statement.`),f.declarations[v].id.type!==P.Identifier&&we(this,ge,Ge).call(this,k.name,`'${f.kind}' declarations may not have binding patterns.`)}),f}case b.ExpressionStatement:return this.createNode(t,{type:P.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case b.ThisKeyword:return this.createNode(t,{type:P.ThisExpression});case b.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:P.ArrayPattern,decorators:[],elements:t.elements.map(f=>this.convertPattern(f)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:P.ArrayExpression,elements:t.elements.map(f=>this.convertChild(f))});case b.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:P.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(k=>this.convertPattern(k)),typeAnnotation:void 0});let f=[];for(let k of t.properties)(k.kind===b.GetAccessor||k.kind===b.SetAccessor||k.kind===b.MethodDeclaration)&&!k.body&&we(this,ge,$t).call(this,k.end-1,"'{' expected."),f.push(this.convertChild(k));return this.createNode(t,{type:P.ObjectExpression,properties:f})}case b.PropertyAssignment:{let{questionToken:f,exclamationToken:k}=t;return f&&we(this,ge,Ge).call(this,f,"A property assignment cannot have a question token."),k&&we(this,ge,Ge).call(this,k,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:this.converter(t.initializer,t,this.allowPattern),computed:ca(t.name),method:!1,optional:!1,shorthand:!1,kind:"init"})}case b.ShorthandPropertyAssignment:{let{modifiers:f,questionToken:k,exclamationToken:v}=t;return f&&we(this,ge,Ge).call(this,f[0],"A shorthand property assignment cannot have modifiers."),k&&we(this,ge,Ge).call(this,k,"A shorthand property assignment cannot have a question token."),v&&we(this,ge,Ge).call(this,v,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0}),computed:!1,method:!1,optional:!1,shorthand:!0,kind:"init"}):this.createNode(t,{type:P.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case b.ComputedPropertyName:return this.convertChild(t.expression);case b.PropertyDeclaration:{let f=We(b.AbstractKeyword,t);f&&t.initializer&&we(this,ge,Ge).call(this,t.initializer,"Abstract property cannot have an initializer.");let k=We(b.AccessorKeyword,t),v=k?f?P.TSAbstractAccessorProperty:P.AccessorProperty:f?P.TSAbstractPropertyDefinition:P.PropertyDefinition,w=this.convertChild(t.name);return this.createNode(t,{type:v,key:w,accessibility:Ci(t),value:f?null:this.convertChild(t.initializer),computed:ca(t.name),static:We(b.StaticKeyword,t),readonly:We(b.ReadonlyKeyword,t),decorators:((h=sa(t))==null?void 0:h.map(J=>this.convertChild(J)))??[],declare:We(b.DeclareKeyword,t),override:We(b.OverrideKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),optional:(w.type===P.Literal||t.name.kind===b.Identifier||t.name.kind===b.ComputedPropertyName||t.name.kind===b.PrivateIdentifier)&&!!t.questionToken,definite:!!t.exclamationToken})}case b.GetAccessor:case b.SetAccessor:if(t.parent.kind===b.InterfaceDeclaration||t.parent.kind===b.TypeLiteral)return this.convertMethodSignature(t);case b.MethodDeclaration:{let f=this.createNode(t,{type:t.body?P.FunctionExpression:P.TSEmptyBodyFunctionExpression,id:null,generator:!!t.asteriskToken,expression:!1,async:We(b.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,range:[t.parameters.pos-1,t.end],params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});f.typeParameters&&this.fixParentLocation(f,f.typeParameters.range);let k;if(a.kind===b.ObjectLiteralExpression)f.params=t.parameters.map(v=>this.convertChild(v)),k=this.createNode(t,{type:P.Property,key:this.convertChild(t.name),value:f,computed:ca(t.name),optional:!!t.questionToken,method:t.kind===b.MethodDeclaration,shorthand:!1,kind:"init"});else{f.params=this.convertParameters(t.parameters);let v=We(b.AbstractKeyword,t)?P.TSAbstractMethodDefinition:P.MethodDefinition;k=this.createNode(t,{type:v,accessibility:Ci(t),computed:ca(t.name),decorators:((g=sa(t))==null?void 0:g.map(w=>this.convertChild(w)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:We(b.OverrideKeyword,t),static:We(b.StaticKeyword,t),value:f})}return t.kind===b.GetAccessor?k.kind="get":t.kind===b.SetAccessor?k.kind="set":!k.static&&t.name.kind===b.StringLiteral&&t.name.text==="constructor"&&k.type!==P.Property&&(k.kind="constructor"),k}case b.Constructor:{let f=Fh(t),k=(f&&oa(f,t,this.ast))??t.getFirstToken(),v=this.createNode(t,{type:t.body?P.FunctionExpression:P.TSEmptyBodyFunctionExpression,async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),range:[t.parameters.pos-1,t.end],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});v.typeParameters&&this.fixParentLocation(v,v.typeParameters.range);let w=this.createNode(t,{type:P.Identifier,decorators:[],name:"constructor",optional:!1,range:[k.getStart(this.ast),k.end],typeAnnotation:void 0}),J=We(b.StaticKeyword,t);return this.createNode(t,{type:We(b.AbstractKeyword,t)?P.TSAbstractMethodDefinition:P.MethodDefinition,accessibility:Ci(t),computed:!1,decorators:[],optional:!1,key:w,kind:J?"method":"constructor",override:!1,static:J,value:v})}case b.FunctionExpression:return this.createNode(t,{type:P.FunctionExpression,async:We(b.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.SuperKeyword:return this.createNode(t,{type:P.Super});case b.ArrayBindingPattern:return this.createNode(t,{type:P.ArrayPattern,decorators:[],elements:t.elements.map(f=>this.convertPattern(f)),optional:!1,typeAnnotation:void 0});case b.OmittedExpression:return null;case b.ObjectBindingPattern:return this.createNode(t,{type:P.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(f=>this.convertPattern(f)),typeAnnotation:void 0});case b.BindingElement:{if(a.kind===b.ArrayBindingPattern){let k=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:k,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:P.RestElement,argument:k,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):k}let f;return t.dotDotDotToken?f=this.createNode(t,{type:P.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):f=this.createNode(t,{type:P.Property,key:this.convertChild(t.propertyName??t.name),value:this.convertChild(t.name),computed:!!(t.propertyName&&t.propertyName.kind===b.ComputedPropertyName),method:!1,optional:!1,shorthand:!t.propertyName,kind:"init"}),t.initializer&&(f.value=this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertChild(t.name),optional:!1,range:[t.name.getStart(this.ast),t.initializer.end],right:this.convertChild(t.initializer),typeAnnotation:void 0})),f}case b.ArrowFunction:return this.createNode(t,{type:P.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(t.parameters),body:this.convertChild(t.body),async:We(b.AsyncKeyword,t),expression:t.body.kind!==b.Block,returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.YieldExpression:return this.createNode(t,{type:P.YieldExpression,delegate:!!t.asteriskToken,argument:this.convertChild(t.expression)});case b.AwaitExpression:return this.createNode(t,{type:P.AwaitExpression,argument:this.convertChild(t.expression)});case b.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:P.TemplateLiteral,quasis:[this.createNode(t,{type:P.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1),cooked:t.text},tail:!0})],expressions:[]});case b.TemplateExpression:{let f=this.createNode(t,{type:P.TemplateLiteral,quasis:[this.convertChild(t.head)],expressions:[]});return t.templateSpans.forEach(k=>{f.expressions.push(this.convertChild(k.expression)),f.quasis.push(this.convertChild(k.literal))}),f}case b.TaggedTemplateExpression:return this.createNode(t,{type:P.TaggedTemplateExpression,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),tag:this.convertChild(t.tag),quasi:this.convertChild(t.template)});case b.TemplateHead:case b.TemplateMiddle:case b.TemplateTail:{let f=t.kind===b.TemplateTail;return this.createNode(t,{type:P.TemplateElement,value:{raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(f?1:2)),cooked:t.text},tail:f})}case b.SpreadAssignment:case b.SpreadElement:return this.allowPattern?this.createNode(t,{type:P.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:P.SpreadElement,argument:this.convertChild(t.expression)});case b.Parameter:{let f,k;return t.dotDotDotToken?f=k=this.createNode(t,{type:P.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(f=this.convertChild(t.name),k=this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:f,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),rr(t)&&(k.range[0]=f.range[0],k.loc=ni(k.range,this.ast))):f=k=this.convertChild(t.name,a),t.type&&(f.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(f,f.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>f.range[1]&&(f.range[1]=t.questionToken.end,f.loc.end=Js(f.range[1],this.ast)),f.optional=!0),rr(t)?this.createNode(t,{type:P.TSParameterProperty,accessibility:Ci(t),decorators:[],override:We(b.OverrideKeyword,t),parameter:k,readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t)}):k}case b.ClassDeclaration:!t.name&&(!We(ce.ExportKeyword,t)||!We(ce.DefaultKeyword,t))&&we(this,ge,$t).call(this,t,"A class declaration without the 'default' modifier must have a name.");case b.ClassExpression:{let f=t.heritageClauses??[],k=t.kind===b.ClassDeclaration?P.ClassDeclaration:P.ClassExpression,v,w;for(let re of f){let{token:be,types:he}=re;he.length===0&&we(this,ge,$t).call(this,re,`'${_t(be)}' list cannot be empty.`),be===b.ExtendsKeyword?(v&&we(this,ge,$t).call(this,re,"'extends' clause already seen."),w&&we(this,ge,$t).call(this,re,"'extends' clause must precede 'implements' clause."),he.length>1&&we(this,ge,$t).call(this,he[1],"Classes can only extend a single class."),v??(v=re)):be===b.ImplementsKeyword&&(w&&we(this,ge,$t).call(this,re,"'implements' clause already seen."),w??(w=re))}let J=this.createNode(t,{type:k,abstract:We(b.AbstractKeyword,t),body:this.createNode(t,{type:P.ClassBody,body:t.members.filter(zh).map(re=>this.convertChild(re)),range:[t.members.pos-1,t.end]}),declare:We(b.DeclareKeyword,t),decorators:((E=sa(t))==null?void 0:E.map(re=>this.convertChild(re)))??[],id:this.convertChild(t.name),implements:(w==null?void 0:w.types.map(re=>this.convertChild(re)))??[],superClass:v!=null&&v.types[0]?this.convertChild(v.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(C=v==null?void 0:v.types[0])!=null&&C.typeArguments&&(J.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(v.types[0].typeArguments,v.types[0])),this.fixExports(t,J)}case b.ModuleBlock:return this.createNode(t,{type:P.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case b.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let f=this.createNode(t,we(this,ge,js).call(this,{type:P.ImportDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:[],importKind:"value",attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(f.importKind="type"),t.importClause.name&&f.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case b.NamespaceImport:f.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case b.NamedImports:f.specifiers=f.specifiers.concat(t.importClause.namedBindings.elements.map(k=>this.convertChild(k)));break}return f}case b.NamespaceImport:return this.createNode(t,{type:P.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case b.ImportSpecifier:return this.createNode(t,{type:P.ImportSpecifier,local:this.convertChild(t.name),imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value"});case b.ImportClause:{let f=this.convertChild(t.name);return this.createNode(t,{type:P.ImportDefaultSpecifier,local:f,range:f.range})}case b.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===b.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,we(this,ge,js).call(this,{type:P.ExportNamedDeclaration,source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(f=>this.convertChild(f)),exportKind:t.isTypeOnly?"type":"value",declaration:null,attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,we(this,ge,js).call(this,{type:P.ExportAllDeclaration,source:this.convertChild(t.moduleSpecifier),exportKind:t.isTypeOnly?"type":"value",exported:((Z=t.exportClause)==null?void 0:Z.kind)===b.NamespaceExport?this.convertChild(t.exportClause.name):null,attributes:this.convertImportAttributes(t.attributes??t.assertClause)},"assertions","attributes",!0)));case b.ExportSpecifier:return this.createNode(t,{type:P.ExportSpecifier,local:this.convertChild(t.propertyName??t.name),exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value"});case b.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:P.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:P.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case b.PrefixUnaryExpression:case b.PostfixUnaryExpression:{let f=ti(t.operator);return f==="++"||f==="--"?(yd(t.operand)||we(this,ge,$t).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:P.UpdateExpression,operator:f,prefix:t.kind===b.PrefixUnaryExpression,argument:this.convertChild(t.operand)})):this.createNode(t,{type:P.UnaryExpression,operator:f,prefix:t.kind===b.PrefixUnaryExpression,argument:this.convertChild(t.operand)})}case b.DeleteExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(t.expression)});case b.VoidExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(t.expression)});case b.TypeOfExpression:return this.createNode(t,{type:P.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(t.expression)});case b.TypeOperator:return this.createNode(t,{type:P.TSTypeOperator,operator:ti(t.operator),typeAnnotation:this.convertChild(t.type)});case b.BinaryExpression:{if(Vh(t.operatorToken)){let k=this.createNode(t,{type:P.SequenceExpression,expressions:[]}),v=this.convertChild(t.left);return v.type===P.SequenceExpression&&t.left.kind!==b.ParenthesizedExpression?k.expressions=k.expressions.concat(v.expressions):k.expressions.push(v),k.expressions.push(this.convertChild(t.right)),k}let f=Wh(t.operatorToken);return this.allowPattern&&f.type===P.AssignmentExpression?this.createNode(t,{type:P.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...f,left:this.converter(t.left,t,f.type===P.AssignmentExpression),right:this.convertChild(t.right)})}case b.PropertyAccessExpression:{let f=this.convertChild(t.expression),k=this.convertChild(t.name),w=this.createNode(t,{type:P.MemberExpression,object:f,property:k,computed:!1,optional:t.questionDotToken!==void 0});return this.convertChainExpression(w,t)}case b.ElementAccessExpression:{let f=this.convertChild(t.expression),k=this.convertChild(t.argumentExpression),w=this.createNode(t,{type:P.MemberExpression,object:f,property:k,computed:!0,optional:t.questionDotToken!==void 0});return this.convertChainExpression(w,t)}case b.CallExpression:{if(t.expression.kind===b.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&we(this,ge,$t).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,{type:P.ImportExpression,source:this.convertChild(t.arguments[0]),attributes:t.arguments[1]?this.convertChild(t.arguments[1]):null});let f=this.convertChild(t.expression),k=t.arguments.map(J=>this.convertChild(J)),v=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),w=this.createNode(t,{type:P.CallExpression,callee:f,arguments:k,optional:t.questionDotToken!==void 0,typeArguments:v});return this.convertChainExpression(w,t)}case b.NewExpression:{let f=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:P.NewExpression,arguments:t.arguments?t.arguments.map(k=>this.convertChild(k)):[],callee:this.convertChild(t.expression),typeArguments:f})}case b.ConditionalExpression:return this.createNode(t,{type:P.ConditionalExpression,test:this.convertChild(t.condition),consequent:this.convertChild(t.whenTrue),alternate:this.convertChild(t.whenFalse)});case b.MetaProperty:return this.createNode(t,{type:P.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:P.Identifier,decorators:[],name:ti(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case b.Decorator:return this.createNode(t,{type:P.Decorator,expression:this.convertChild(t.expression)});case b.StringLiteral:return this.createNode(t,{type:P.Literal,value:a.kind===b.JsxAttribute?pd(t.text):t.text,raw:t.getText()});case b.NumericLiteral:return this.createNode(t,{type:P.Literal,value:Number(t.text),raw:t.getText()});case b.BigIntLiteral:{let f=Za(t,this.ast),k=this.ast.text.slice(f[0],f[1]),v=k.slice(0,-1).replace(/_/g,""),w=typeof BigInt<"u"?BigInt(v):null;return this.createNode(t,{type:P.Literal,raw:k,value:w,bigint:w==null?v:String(w),range:f})}case b.RegularExpressionLiteral:{let f=t.text.slice(1,t.text.lastIndexOf("/")),k=t.text.slice(t.text.lastIndexOf("/")+1),v=null;try{v=new RegExp(f,k)}catch{}return this.createNode(t,{type:P.Literal,value:v,raw:t.text,regex:{pattern:f,flags:k}})}case b.TrueKeyword:return this.createNode(t,{type:P.Literal,value:!0,raw:"true"});case b.FalseKeyword:return this.createNode(t,{type:P.Literal,value:!1,raw:"false"});case b.NullKeyword:return this.createNode(t,{type:P.Literal,value:null,raw:"null"});case b.EmptyStatement:return this.createNode(t,{type:P.EmptyStatement});case b.DebuggerStatement:return this.createNode(t,{type:P.DebuggerStatement});case b.JsxElement:return this.createNode(t,{type:P.JSXElement,openingElement:this.convertChild(t.openingElement),closingElement:this.convertChild(t.closingElement),children:t.children.map(f=>this.convertChild(f))});case b.JsxFragment:return this.createNode(t,{type:P.JSXFragment,openingFragment:this.convertChild(t.openingFragment),closingFragment:this.convertChild(t.closingFragment),children:t.children.map(f=>this.convertChild(f))});case b.JsxSelfClosingElement:return this.createNode(t,{type:P.JSXElement,openingElement:this.createNode(t,{type:P.JSXOpeningElement,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0,selfClosing:!0,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(f=>this.convertChild(f)),range:Za(t,this.ast)}),closingElement:null,children:[]});case b.JsxOpeningElement:return this.createNode(t,{type:P.JSXOpeningElement,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),selfClosing:!1,name:this.convertJSXTagName(t.tagName,t),attributes:t.attributes.properties.map(f=>this.convertChild(f))});case b.JsxClosingElement:return this.createNode(t,{type:P.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case b.JsxOpeningFragment:return this.createNode(t,{type:P.JSXOpeningFragment});case b.JsxClosingFragment:return this.createNode(t,{type:P.JSXClosingFragment});case b.JsxExpression:{let f=t.expression?this.convertChild(t.expression):this.createNode(t,{type:P.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:P.JSXSpreadChild,expression:f}):this.createNode(t,{type:P.JSXExpressionContainer,expression:f})}case b.JsxAttribute:return this.createNode(t,{type:P.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case b.JsxText:{let f=t.getFullStart(),k=t.getEnd(),v=this.ast.text.slice(f,k);return this.createNode(t,{type:P.JSXText,value:pd(v),raw:v,range:[f,k]})}case b.JsxSpreadAttribute:return this.createNode(t,{type:P.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case b.QualifiedName:return this.createNode(t,{type:P.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case b.TypeReference:return this.createNode(t,{type:P.TSTypeReference,typeName:this.convertChild(t.typeName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case b.TypeParameter:return this.createNode(t,{type:P.TSTypeParameter,name:this.convertChild(t.name),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:We(b.InKeyword,t),out:We(b.OutKeyword,t),const:We(b.ConstKeyword,t)});case b.ThisType:return this.createNode(t,{type:P.TSThisType});case b.AnyKeyword:case b.BigIntKeyword:case b.BooleanKeyword:case b.NeverKeyword:case b.NumberKeyword:case b.ObjectKeyword:case b.StringKeyword:case b.SymbolKeyword:case b.UnknownKeyword:case b.VoidKeyword:case b.UndefinedKeyword:case b.IntrinsicKeyword:return this.createNode(t,{type:P[`TS${b[t.kind]}`]});case b.NonNullExpression:{let f=this.createNode(t,{type:P.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(f,t)}case b.TypeLiteral:return this.createNode(t,{type:P.TSTypeLiteral,members:t.members.map(f=>this.convertChild(f))});case b.ArrayType:return this.createNode(t,{type:P.TSArrayType,elementType:this.convertChild(t.elementType)});case b.IndexedAccessType:return this.createNode(t,{type:P.TSIndexedAccessType,objectType:this.convertChild(t.objectType),indexType:this.convertChild(t.indexType)});case b.ConditionalType:return this.createNode(t,{type:P.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),trueType:this.convertChild(t.trueType),falseType:this.convertChild(t.falseType)});case b.TypeQuery:return this.createNode(t,{type:P.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case b.MappedType:return t.members&&t.members.length>0&&we(this,ge,$t).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,we(this,ge,bd).call(this,{type:P.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===b.QuestionToken||ti(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===b.ReadonlyKeyword||ti(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case b.ParenthesizedExpression:return this.convertChild(t.expression,a);case b.TypeAliasDeclaration:{let f=this.createNode(t,{type:P.TSTypeAliasDeclaration,declare:We(b.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,f)}case b.MethodSignature:return this.convertMethodSignature(t);case b.PropertySignature:{let{initializer:f}=t;return f&&we(this,ge,Ge).call(this,f,"A property signature cannot have an initializer."),this.createNode(t,{type:P.TSPropertySignature,accessibility:Ci(t),computed:ca(t.name),key:this.convertChild(t.name),optional:fd(t),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case b.IndexSignature:return this.createNode(t,{type:P.TSIndexSignature,accessibility:Ci(t),parameters:t.parameters.map(f=>this.convertChild(f)),readonly:We(b.ReadonlyKeyword,t),static:We(b.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case b.ConstructorType:return this.createNode(t,{type:P.TSConstructorType,abstract:We(b.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case b.FunctionType:{let{modifiers:f}=t;f&&we(this,ge,Ge).call(this,f[0],"A function type cannot have modifiers.")}case b.ConstructSignature:case b.CallSignature:{let f=t.kind===b.ConstructSignature?P.TSConstructSignatureDeclaration:t.kind===b.CallSignature?P.TSCallSignatureDeclaration:P.TSFunctionType;return this.createNode(t,{type:f,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case b.ExpressionWithTypeArguments:{let f=a.kind,k=f===b.InterfaceDeclaration?P.TSInterfaceHeritage:f===b.HeritageClause?P.TSClassImplements:P.TSInstantiationExpression;return this.createNode(t,{type:k,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case b.InterfaceDeclaration:{let f=t.heritageClauses??[],k=[];for(let w of f){w.token!==b.ExtendsKeyword&&we(this,ge,Ge).call(this,w,w.token===b.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let J of w.types)k.push(this.convertChild(J,t))}let v=this.createNode(t,{type:P.TSInterfaceDeclaration,body:this.createNode(t,{type:P.TSInterfaceBody,body:t.members.map(w=>this.convertChild(w)),range:[t.members.pos-1,t.end]}),declare:We(b.DeclareKeyword,t),extends:k,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,v)}case b.TypePredicate:{let f=this.createNode(t,{type:P.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(f.typeAnnotation=this.convertTypeAnnotation(t.type,t),f.typeAnnotation.loc=f.typeAnnotation.typeAnnotation.loc,f.typeAnnotation.range=f.typeAnnotation.typeAnnotation.range),f}case b.ImportType:{let f=Za(t,this.ast);if(t.isTypeOf){let v=oa(t.getFirstToken(),t,this.ast);f[0]=v.getStart(this.ast)}let k=this.createNode(t,{type:P.TSImportType,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null,range:f});return t.isTypeOf?this.createNode(t,{type:P.TSTypeQuery,exprName:k,typeArguments:void 0}):k}case b.EnumDeclaration:{let f=t.members.map(v=>this.convertChild(v)),k=this.createNode(t,we(this,ge,bd).call(this,{type:P.TSEnumDeclaration,body:this.createNode(t,{type:P.TSEnumBody,members:f,range:[t.members.pos-1,t.end]}),const:We(b.ConstKeyword,t),declare:We(b.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(v=>this.convertChild(v))));return this.fixExports(t,k)}case b.EnumMember:return this.createNode(t,{type:P.TSEnumMember,computed:t.name.kind===ce.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case b.ModuleDeclaration:{let f=We(b.DeclareKeyword,t),k=this.createNode(t,{type:P.TSModuleDeclaration,...(()=>{if(t.flags&Xt.GlobalAugmentation){let w=this.convertChild(t.name),J=this.convertChild(t.body);return(J==null||J.type===P.TSModuleDeclaration)&&we(this,ge,$t).call(this,t.body??t,"Expected a valid module body"),w.type!==P.Identifier&&we(this,ge,$t).call(this,t.name,"global module augmentation must have an Identifier id"),{kind:"global",body:J,declare:!1,global:!1,id:w}}if(!(t.flags&Xt.Namespace)){let w=this.convertChild(t.body);return{kind:"module",...w!=null?{body:w}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&we(this,ge,$t).call(this,t,"Expected a module body"),t.name.kind!==ce.Identifier&&we(this,ge,$t).call(this,t.name,"`namespace`s must have an Identifier id");let v=this.createNode(t.name,{decorators:[],name:t.name.text,optional:!1,range:[t.name.getStart(this.ast),t.name.getEnd()],type:P.Identifier,typeAnnotation:void 0});for(;t.body&&ei(t.body)&&t.body.name;){t=t.body,f||(f=We(b.DeclareKeyword,t));let w=t.name,J=this.createNode(w,{decorators:[],name:w.text,optional:!1,range:[w.getStart(this.ast),w.getEnd()],type:P.Identifier,typeAnnotation:void 0});v=this.createNode(w,{left:v,right:J,range:[v.range[0],J.range[1]],type:P.TSQualifiedName})}return{kind:"namespace",body:this.convertChild(t.body),declare:!1,global:!1,id:v}})()});return k.declare=f,t.flags&Xt.GlobalAugmentation&&(k.global=!0),this.fixExports(t,k)}case b.ParenthesizedType:return this.convertChild(t.type);case b.UnionType:return this.createNode(t,{type:P.TSUnionType,types:t.types.map(f=>this.convertChild(f))});case b.IntersectionType:return this.createNode(t,{type:P.TSIntersectionType,types:t.types.map(f=>this.convertChild(f))});case b.AsExpression:return this.createNode(t,{type:P.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case b.InferType:return this.createNode(t,{type:P.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case b.LiteralType:return t.literal.kind===b.NullKeyword?this.createNode(t.literal,{type:P.TSNullKeyword}):this.createNode(t,{type:P.TSLiteralType,literal:this.convertChild(t.literal)});case b.TypeAssertionExpression:return this.createNode(t,{type:P.TSTypeAssertion,typeAnnotation:this.convertChild(t.type),expression:this.convertChild(t.expression)});case b.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:P.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case b.ExternalModuleReference:return t.expression.kind!==b.StringLiteral&&we(this,ge,Ge).call(this,t.expression,"String literal expected."),this.createNode(t,{type:P.TSExternalModuleReference,expression:this.convertChild(t.expression)});case b.NamespaceExportDeclaration:return this.createNode(t,{type:P.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case b.AbstractKeyword:return this.createNode(t,{type:P.TSAbstractKeyword});case b.TupleType:{let f=t.elements.map(k=>this.convertChild(k));return this.createNode(t,{type:P.TSTupleType,elementTypes:f})}case b.NamedTupleMember:{let f=this.createNode(t,{type:P.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(f.range[0]=f.label.range[0],f.loc.start=f.label.loc.start,this.createNode(t,{type:P.TSRestType,typeAnnotation:f})):f}case b.OptionalType:return this.createNode(t,{type:P.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case b.RestType:return this.createNode(t,{type:P.TSRestType,typeAnnotation:this.convertChild(t.type)});case b.TemplateLiteralType:{let f=this.createNode(t,{type:P.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(k=>{f.types.push(this.convertChild(k.type)),f.quasis.push(this.convertChild(k.literal))}),f}case b.ClassStaticBlockDeclaration:return this.createNode(t,{type:P.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case b.AssertEntry:case b.ImportAttribute:return this.createNode(t,{type:P.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case b.SatisfiesExpression:return this.createNode(t,{type:P.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}};ge=new WeakSet,n0=function(t){if(!this.options.allowInvalidAST){$h(t)&&we(this,ge,Ge).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of sa(t,!0)??[])e0(t)||(Cs(t)&&!hd(t.body)?we(this,ge,Ge).call(this,a,"A decorator can only decorate a method implementation, not an overload."):we(this,ge,Ge).call(this,a,"Decorators are not valid here."));for(let a of rr(t,!0)??[]){if(a.kind!==b.ReadonlyKeyword&&((t.kind===b.PropertySignature||t.kind===b.MethodSignature)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a type member`),t.kind===b.IndexSignature&&(a.kind!==b.StaticKeyword||!Ei(t.parent))&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==b.InKeyword&&a.kind!==b.OutKeyword&&a.kind!==b.ConstKeyword&&t.kind===b.TypeParameter&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===b.InKeyword||a.kind===b.OutKeyword)&&(t.kind!==b.TypeParameter||!(Ms(t.parent)||Ei(t.parent)||Nl(t.parent)))&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===b.ReadonlyKeyword&&t.kind!==b.PropertyDeclaration&&t.kind!==b.PropertySignature&&t.kind!==b.IndexSignature&&t.kind!==b.Parameter&&we(this,ge,Ge).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===b.DeclareKeyword&&Ei(t.parent)&&!Ha(t)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===b.DeclareKeyword&&Ka(t)){let o=Ll(t.declarationList);(o==="using"||o==="await using")&&we(this,ge,Ge).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===b.AbstractKeyword&&t.kind!==b.ClassDeclaration&&t.kind!==b.ConstructorType&&t.kind!==b.MethodDeclaration&&t.kind!==b.PropertyDeclaration&&t.kind!==b.GetAccessor&&t.kind!==b.SetAccessor&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===b.StaticKeyword||a.kind===b.PublicKeyword||a.kind===b.ProtectedKeyword||a.kind===b.PrivateKeyword)&&(t.parent.kind===b.ModuleBlock||t.parent.kind===b.SourceFile)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===b.AccessorKeyword&&t.kind!==b.PropertyDeclaration&&we(this,ge,Ge).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===b.AsyncKeyword&&t.kind!==b.MethodDeclaration&&t.kind!==b.FunctionDeclaration&&t.kind!==b.FunctionExpression&&t.kind!==b.ArrowFunction&&we(this,ge,Ge).call(this,a,"'async' modifier cannot be used here."),t.kind===b.Parameter&&(a.kind===b.StaticKeyword||a.kind===b.ExportKeyword||a.kind===b.DeclareKeyword||a.kind===b.AsyncKeyword)&&we(this,ge,Ge).call(this,a,`'${_t(a.kind)}' modifier cannot appear on a parameter.`),a.kind===b.PublicKeyword||a.kind===b.ProtectedKeyword||a.kind===b.PrivateKeyword)for(let o of rr(t)??[])o!==a&&(o.kind===b.PublicKeyword||o.kind===b.ProtectedKeyword||o.kind===b.PrivateKeyword)&&we(this,ge,Ge).call(this,o,"Accessibility modifier already seen.");if(t.kind===b.Parameter&&(a.kind===b.PublicKeyword||a.kind===b.PrivateKeyword||a.kind===b.ProtectedKeyword||a.kind===b.ReadonlyKeyword||a.kind===b.OverrideKeyword)){let o=Zh(t);o.kind===b.Constructor&&hd(o.body)||we(this,ge,Ge).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},$t=function(t,a){this.options.allowInvalidAST||we(this,ge,Ge).call(this,t,a)},js=function(t,a,o,h=!1){let g=h;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(g||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),g=!0),t[o]),set(E){Object.defineProperty(t,a,{enumerable:!0,writable:!0,value:E})}}),t},bd=function(t,a,o,h){let g=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>h:()=>(g||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),g=!0),h),set(E){Object.defineProperty(t,a,{enumerable:!0,writable:!0,value:E})}}),t},Ge=function(t,a){let o,h;throw typeof t=="number"?o=h=t:(o=t.getStart(this.ast),h=t.getEnd()),md(a,this.ast,o,h)},r0=function(t){ph(t)&&t.flags&Xt.Using&&we(this,ge,Ge).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")};var Td=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},tt=(e,t,a)=>(Td(e,t,"read from private field"),a?a.call(e):t.get(e)),Di=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},vn=(e,t,a,o)=>(Td(e,t,"write to private field"),o?o.call(e,a):t.set(e,a),a),s0=(e,t,a)=>(Td(e,t,"access private method"),a);function Wv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(Df(e.kind))t(e);else if(e.kind!==ce.JSDocComment){let h=e.getChildren(a);if(h.length===1){e=h[0];continue}for(let g=h.length-1;g>=0;--g)o.push(h[g])}if(o.length===0)break;e=o.pop()}}function Gv(e){switch(e.kind){case ce.CloseBraceToken:return e.parent.kind!==ce.JsxExpression||!xd(e.parent.parent);case ce.GreaterThanToken:switch(e.parent.kind){case ce.JsxOpeningElement:return e.end!==e.parent.end;case ce.JsxOpeningFragment:return!1;case ce.JsxSelfClosingElement:return e.end!==e.parent.end||!xd(e.parent.parent);case ce.JsxClosingElement:case ce.JsxClosingFragment:return!xd(e.parent.parent.parent)}}return!0}function xd(e){return e.kind===ce.JsxElement||e.kind===ce.JsxFragment}function o0(e,t,a=e.getSourceFile()){let o=a.text,h=a.languageVariant!==bl.JSX;return Wv(e,E=>{if(E.pos!==E.end&&(E.kind!==ce.JsxText&&u1(o,E.pos===0?(Tf(o)??"").length:E.pos,g),h||Gv(E)))return p1(o,E.end,g)},a);function g(E,C,l){t(o,{end:C,kind:l,pos:E})}}function Bl(e,...t){if(e===void 0)return!1;for(let a of e)if(t.includes(a.kind))return!0;return!1}var[CT,DT]=qm.split(".").map(e=>Number.parseInt(e,10));var PT=zt.Intrinsic??zt.Any|zt.Unknown|zt.String|zt.Number|zt.BigInt|zt.Boolean|zt.BooleanLiteral|zt.ESSymbol|zt.Void|zt.Undefined|zt.Null|zt.Never|zt.NonPrimitive;function Yv(e){return Ns(e)}function Hv(e){return Ml(e)}function Xv(e){return xl(e)}function $v(e){switch(e.parent.kind){case ce.TypeParameter:case ce.InterfaceDeclaration:case ce.TypeAliasDeclaration:return 2;case ce.ClassDeclaration:case ce.ClassExpression:return 6;case ce.EnumDeclaration:return 7;case ce.NamespaceImport:case ce.ImportClause:return 15;case ce.ImportEqualsDeclaration:case ce.ImportSpecifier:return e.parent.name===e?15:void 0;case ce.ModuleDeclaration:return 1;case ce.Parameter:if(e.parent.parent.kind===ce.IndexSignature||Yv(e)===ce.ThisKeyword)return;case ce.BindingElement:case ce.VariableDeclaration:return e.parent.name===e?4:void 0;case ce.FunctionDeclaration:case ce.FunctionExpression:return 4}}var la,Qv=class{constructor(e){this.global=e,Di(this,la,void 0),this.namespaceScopes=void 0,this.uses=[],this.variables=new Map}addUse(e){this.uses.push(e)}addUseToParent(e){}addVariable(e,t,a,o,h){let g=this.getDestinationScope(a).getVariables(),E={declaration:t,domain:h,exported:o},C=g.get(e);C===void 0?g.set(e,{declarations:[E],domain:h,uses:[]}):(C.domain|=h,C.declarations.push(E))}applyUse(e,t=this.variables){let a=t.get(e.location.text);return a===void 0||!(a.domain&e.domain)?!1:(a.uses.push(e),!0)}applyUses(){for(let e of this.uses)this.applyUse(e)||this.addUseToParent(e);this.uses=[]}createOrReuseEnumScope(e,t){let a;return tt(this,la)===void 0?vn(this,la,new Map):a=tt(this,la).get(e),a===void 0&&(a=new Kv(this),tt(this,la).set(e,a)),a}createOrReuseNamespaceScope(e,t,a,o){let h;return this.namespaceScopes===void 0?this.namespaceScopes=new Map:h=this.namespaceScopes.get(e),h===void 0?(h=new n4(a,o,this),this.namespaceScopes.set(e,h)):h.refresh(a,o),h}end(e){this.namespaceScopes!==void 0&&this.namespaceScopes.forEach(t=>t.finish(e)),this.namespaceScopes=vn(this,la,void 0),this.applyUses(),this.variables.forEach(t=>{for(let a of t.declarations){let o={declarations:[],domain:a.domain,exported:a.exported,inGlobalScope:this.global,uses:[]};for(let h of t.declarations)h.domain&a.domain&&o.declarations.push(h.declaration);for(let h of t.uses)h.domain&a.domain&&o.uses.push(h);e(o,a.declaration,this)}})}getFunctionScope(){return this}getVariables(){return this.variables}markExported(e){}};la=new WeakMap;var pa=class extends Qv{constructor(e,t){super(!1),this.parent=e,this.boundary=t}addUseToParent(e){return this.parent.addUse(e,this)}getDestinationScope(e){return this.boundary&e?this:this.parent.getDestinationScope(e)}},Kv=class extends pa{constructor(e){super(e,1)}end(){this.applyUses()}},Zv,e4,t4;Zv=new WeakMap;e4=new WeakMap;t4=new WeakMap;var ri,ua,e_,jr,n4=class extends pa{constructor(e,t,a){super(a,1),Di(this,ri,void 0),Di(this,ua,void 0),Di(this,e_,void 0),Di(this,jr,new pa(this,1)),vn(this,ri,e),vn(this,e_,t)}addUse(e,t){if(t!==tt(this,jr))return tt(this,jr).addUse(e);this.uses.push(e)}createOrReuseEnumScope(e,t){return!t&&(!tt(this,ri)||tt(this,e_))?tt(this,jr).createOrReuseEnumScope(e,t):super.createOrReuseEnumScope(e,t)}createOrReuseNamespaceScope(e,t,a,o){return!t&&(!tt(this,ri)||tt(this,e_))?tt(this,jr).createOrReuseNamespaceScope(e,t,a||tt(this,ri),o):super.createOrReuseNamespaceScope(e,t,a||tt(this,ri),o)}end(e){tt(this,jr).end((t,a,o)=>{if(o!==tt(this,jr)||!t.exported&&(!tt(this,ri)||tt(this,ua)!==void 0&&!tt(this,ua).has(a.text)))return e(t,a,o);let h=this.variables.get(a.text);if(h===void 0)this.variables.set(a.text,{declarations:t.declarations.map(a0),domain:t.domain,uses:[...t.uses]});else{e:for(let g of t.declarations)for(let E of h.declarations){if(E.declaration===g)continue e;h.declarations.push(a0(g))}h.domain|=t.domain;for(let g of t.uses)h.uses.includes(g)||h.uses.push(g)}}),this.applyUses(),vn(this,jr,new pa(this,1))}finish(e){return super.end(e)}getDestinationScope(){return tt(this,jr)}markExported(e){tt(this,ua)===void 0&&vn(this,ua,new Set),tt(this,ua).add(e.text)}refresh(e,t){vn(this,ri,e),vn(this,e_,t)}};ri=new WeakMap;ua=new WeakMap;e_=new WeakMap;jr=new WeakMap;function a0(e){return{declaration:e,domain:$v(e),exported:!0}}var c0=class extends pa{constructor(e){super(e,1)}beginBody(){this.applyUses()}},Ls,t_,r4=class extends pa{constructor(e,t,a){super(a,1),Di(this,Ls,void 0),Di(this,t_,void 0),vn(this,t_,e),vn(this,Ls,t)}addUse(e,t){if(t!==this.innerScope)return this.innerScope.addUse(e);if(e.domain&tt(this,Ls)&&e.location.text===tt(this,t_).text)this.uses.push(e);else return this.parent.addUse(e,this)}end(e){return this.innerScope.end(e),e({declarations:[tt(this,t_)],domain:tt(this,Ls),exported:!1,inGlobalScope:!1,uses:this.uses},tt(this,t_),this)}getDestinationScope(){return this.innerScope}getFunctionScope(){return this.innerScope}};Ls=new WeakMap;t_=new WeakMap;var i4=class extends r4{constructor(e,t){super(e,4,t),this.innerScope=new c0(this)}beginBody(){return this.innerScope.beginBody()}},a4;a4=new WeakMap;var Ul,_4=class extends pa{constructor(e){super(e,8),Di(this,Ul,0)}addUse(e){return tt(this,Ul)===2?void this.uses.push(e):this.parent.addUse(e,this)}updateState(e){vn(this,Ul,e)}};Ul=new WeakMap;var s4,In,l0,u0,o4,c4,p0,f0,l4,u4,p4,f4,d4,m4;s4=new WeakMap;In=new WeakMap;l0=new WeakSet;u0=function(e,t,a){if(e.kind===ce.Identifier)return tt(this,In).addVariable(e.text,e,t?3:1,a,4);d0(e,o=>{tt(this,In).addVariable(o.name.text,o.name,t?3:1,a,4)})};o4=new WeakSet;c4=function(e,t,a){let o=tt(this,In),h=vn(this,In,new _4(o));t(e.checkType),h.updateState(1),t(e.extendsType),h.updateState(2),t(e.trueType),h.updateState(3),t(e.falseType),h.end(a),vn(this,In,o)};p0=new WeakSet;f0=function(e,t,a){e.name!==void 0&&tt(this,In).addVariable(e.name.text,e.name,t?3:1,Bl(e.modifiers,ce.ExportKeyword),a)};l4=new WeakSet;u4=function(e,t,a){var g;Hv(e)&&((g=Xv(e))==null||g.forEach(t));let o=tt(this,In);e.kind===ce.FunctionDeclaration&&s0(this,p0,f0).call(this,e,!1,4);let h=vn(this,In,e.kind===ce.FunctionExpression&&e.name!==void 0?new i4(e.name,o):new c0(o));e.name!==void 0&&t(e.name),e.typeParameters!==void 0&&e.typeParameters.forEach(t),e.parameters.forEach(t),e.type!==void 0&&t(e.type),e.body!==void 0&&(h.beginBody(),t(e.body)),h.end(a),vn(this,In,o)};p4=new WeakSet;f4=function(e,t){if(e.flags&Xt.GlobalAugmentation)return t(e,tt(this,In).createOrReuseNamespaceScope("-global",!1,!0,!1));if(e.name.kind===ce.Identifier){let a=h4(e);tt(this,In).addVariable(e.name.text,e.name,1,a,5);let o=Bl(e.modifiers,ce.DeclareKeyword);return t(e,tt(this,In).createOrReuseNamespaceScope(e.name.text,a,o,o&&_0(e)))}return t(e,tt(this,In).createOrReuseNamespaceScope(`"${e.name.text}"`,!1,!0,_0(e)))};d4=new WeakSet;m4=function(e){let t=g4(e),a=e.parent.kind===ce.VariableStatement&&Bl(e.parent.modifiers,ce.ExportKeyword);for(let o of e.declarations)s0(this,l0,u0).call(this,o.name,t,a)};function h4(e){return e.parent.kind===ce.ModuleDeclaration||Bl(e.modifiers,ce.ExportKeyword)}function _0(e){return e.body===void 0||e.body.kind!==ce.ModuleBlock?!1:y4(e.body)}function y4(e){for(let t of e.statements)if(t.kind===ce.ExportDeclaration||t.kind===ce.ExportAssignment)return!0;return!1}function g4(e){return(e.flags&Xt.BlockScoped)!==0}function d0(e,t){for(let a of e.elements){if(a.kind!==ce.BindingElement)continue;let o;if(a.name.kind===ce.Identifier?o=t(a):o=d0(a.name,t),o)return o}}function m0(e,t){let a=[];return o0(e,(o,h)=>{let g=h.kind===ce.SingleLineCommentTrivia?Ft.Line:Ft.Block,E=[h.pos,h.end],C=ni(E,e),l=E[0]+2,Z=h.kind===ce.SingleLineCommentTrivia?E[1]-l:E[1]-l-2;a.push({type:g,value:t.slice(l,l+Z),range:E,loc:C})},e),a}var h0=()=>{};function y0(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw vd(o[0]);let h=new Rl(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),g=h.convertProgram();(!t.range||!t.loc)&&h0(g,{enter:C=>{t.range||delete C.range,t.loc||delete C.loc}}),t.tokens&&(g.tokens=Xh(e)),t.comment&&(g.comments=m0(e,t.codeFullText));let E=h.getASTMaps();return{estree:g,astMaps:E}}function ql(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===ce.SourceFile&&typeof t.getFullText=="function"}var k4=function(e){return e&&e.__esModule?e:{default:e}};var E4=k4({extname:e=>"."+e.split(".").pop()});function b0(e,t){switch(E4.default.extname(e).toLowerCase()){case gr.Js:case gr.Cjs:case gr.Mjs:return Jr.JS;case gr.Jsx:return Jr.JSX;case gr.Ts:case gr.Cts:case gr.Mts:return Jr.TS;case gr.Tsx:return Jr.TSX;case gr.Json:return Jr.JSON;default:return t?Jr.TSX:Jr.TS}}var C4={default:Ja},D4=(0,C4.default)("typescript-eslint:typescript-estree:createSourceFile");function v0(e){return D4("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),ql(e.code)?e.code:Ah(e.filePath,e.codeFullText,{languageVersion:Ps.Latest,jsDocParsingMode:e.jsDocParsingMode},!0,b0(e.filePath,e.jsx))}var x0=()=>{};var T0=e=>e;var S0=class{};var k0=()=>!1;var E0=()=>{};var Sd={default:Ja},q4=(0,Sd.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),z4,F4=null,A0,C0,D0,P0,Rs={ParseAll:(A0=$a)==null?void 0:A0.ParseAll,ParseNone:(C0=$a)==null?void 0:C0.ParseNone,ParseForTypeErrors:(D0=$a)==null?void 0:D0.ParseForTypeErrors,ParseForTypeInfo:(P0=$a)==null?void 0:P0.ParseForTypeInfo};function N0(e,t={}){var l;let a=V4(e),o=k0(t),h=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",g=typeof t.loggerFn=="function",E=(()=>{switch(t.jsDocParsingMode){case"all":return Rs.ParseAll;case"none":return Rs.ParseNone;case"type-info":return Rs.ParseForTypeInfo;default:return Rs.ParseAll}})(),C={allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(Z=>typeof Z=="string")?t.extraFileExtensions:[],filePath:T0(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:W4(t.jsx),h),jsDocParsingMode:E,jsx:t.jsx===!0,loc:t.loc===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?F4??(F4=x0(t.projectService,E)):void 0,range:t.range===!0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:z4??(z4=new S0(o?"Infinity":((l=t.cacheLifetime)==null?void 0:l.glob)??void 0)),tsconfigRootDir:h};if(C.debugLevel.size>0){let Z=[];C.debugLevel.has("typescript-eslint")&&Z.push("typescript-eslint:*"),(C.debugLevel.has("eslint")||Sd.default.enabled("eslint:*,-eslint:code-path"))&&Z.push("eslint:*,-eslint:code-path"),Sd.default.enable(Z.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");q4("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!C.programs&&!C.projectService&&(C.projects=new Map),t.jsDocParsingMode==null&&C.projects.size===0&&C.programs==null&&C.projectService==null&&(C.jsDocParsingMode=Rs.ParseNone),E0(C,g),C}function V4(e){return ql(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function W4(e){return e?"estree.tsx":"estree.ts"}var X4={default:Ja},ZT=(0,X4.default)("typescript-eslint:typescript-estree:parser");function I0(e,t){let{ast:a}=$4(e,t,!1);return a}function $4(e,t,a){let o=N0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let h=v0(o),{estree:g,astMaps:E}=y0(h,o,a);return{ast:g,esTreeNodeToTSNodeMap:E.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:E.tsNodeToESTreeNodeMap}}function Q4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var O0=Q4;function K4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var M0=K4;var Z4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},wd=Z4;function e3(e){return Array.isArray(e)&&e.length>0}var J0=e3;function Fn(e){var o,h,g;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(g=((h=e.declaration)==null?void 0:h.decorators)??e.decorators)==null?void 0:g[0];return a?Math.min(Fn(a),t):t}function Lr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function t3(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var j0=t3;var n3=j0(["Block","CommentBlock","MultiLine"]),Us=n3;function r3(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var kd=r3;function i3(e){return Us(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var L0=i3;var Bs=null;function qs(e){if(Bs!==null&&typeof Bs.property){let t=Bs;return Bs=qs.prototype=null,t}return Bs=qs.prototype=e??Object.create(null),new qs}var a3=10;for(let e=0;e<=a3;e++)qs();function Ed(e){return qs(e)}function _3(e,t="type"){Ed(e);function a(o){let h=o[t],g=e[h];if(!Array.isArray(g))throw Object.assign(new Error(`Missing visitor keys for '${h}'.`),{node:o});return g}return a}var R0=_3;var U0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var s3=R0(U0),B0=s3;function Ad(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{var E;(E=g.leadingComments)!=null&&E.some(L0)&&h.add(Fn(g))}),e=zl(e,g=>{if(g.type==="ParenthesizedExpression"){let{expression:E}=g;if(E.type==="TypeCastExpression")return E.range=[...g.range],E;let C=Fn(g);if(!h.has(C))return E.extra={...E.extra,parenthesized:!0},E}})}if(e=zl(e,h=>{var g;switch(h.type){case"LogicalExpression":if(q0(h))return Cd(h);break;case"VariableDeclaration":{let E=wd(!1,h.declarations,-1);E!=null&&E.init&&o[Lr(E)]!==";"&&(h.range=[Fn(h),Lr(E)]);break}case"TSParenthesizedType":return h.typeAnnotation;case"TSTypeParameter":if(typeof h.name=="string"){let E=Fn(h);h.name={type:"Identifier",name:h.name,range:[E,E+h.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(a==="meriyah"&&((g=h.exported)==null?void 0:g.type)==="Identifier"){let{exported:E}=h,C=o.slice(Fn(E),Lr(E));(C.startsWith('"')||C.startsWith("'"))&&(h.exported={...h.exported,type:"Literal",value:h.exported.name,raw:C})}break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break}}),J0(e.comments)){let h=wd(!1,e.comments,-1);for(let g=e.comments.length-2;g>=0;g--){let E=e.comments[g];Lr(E)===Fn(h)&&Us(E)&&Us(h)&&kd(E)&&kd(h)&&(e.comments.splice(g+1,1),E.value+="*//*"+h.value,E.range=[Fn(E),Lr(h)]),h=E}}return e.type==="Program"&&(e.range=[0,o.length]),e}function q0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Cd(e){return q0(e)?Cd({type:"LogicalExpression",operator:e.operator,left:Cd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Fn(e.left),Lr(e.right.left)]}),right:e.right.right,range:[Fn(e),Lr(e)]}):e}var z0=o3;var c3=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},n_=c3;var l3=/\*\/$/,u3=/^\/\*\*?/,p3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,f3=/(^|\s+)\/\/([^\n\r]*)/g,F0=/^(\r?\n)+/,d3=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,V0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,m3=/(\r?\n|^) *\* ?/g,h3=[];function W0(e){let t=e.match(p3);return t?t[0].trimStart():""}function G0(e){let t=` -`;e=n_(!1,e.replace(u3,"").replace(l3,""),m3,"$1");let a="";for(;a!==e;)a=e,e=n_(!1,e,d3,`${t}$1 $2${t}`);e=e.replace(F0,"").trimEnd();let o=Object.create(null),h=n_(!1,e,V0,"").replace(F0,"").trimEnd(),g;for(;g=V0.exec(e);){let E=n_(!1,g[2],f3,"");if(typeof o[g[1]]=="string"||Array.isArray(o[g[1]])){let C=o[g[1]];o[g[1]]=[...h3,...Array.isArray(C)?C:[C],E]}else o[g[1]]=E}return{comments:h,pragmas:o}}function y3(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var Y0=y3;function g3(e){let t=Y0(e);t&&(e=e.slice(t.length+1));let a=W0(e),{pragmas:o,comments:h}=G0(a);return{shebang:t,text:e,pragmas:o,comments:h}}function H0(e){let{pragmas:t}=g3(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function b3(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:H0,locStart:Fn,locEnd:Lr,...e}}var X0=b3;function v3(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var $0=v3;var Dd={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function x3(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return O0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var T3=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function S3(e,t){let a=t==null?void 0:t.filepath;if(a&&T3(a))return[{...Dd,filePath:a}];let o=k3(e);return[{...Dd,jsx:o},{...Dd,jsx:!o}]}function w3(e,t){let a=$0(e),o=S3(e,t),h;try{h=M0(o.map(g=>()=>I0(a,g)))}catch({errors:[g]}){throw x3(g)}return z0(h,{text:e})}function k3(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"mu").test(e)}var E3=X0(w3);var KS=Nd;export{KS as default,Pd as parsers}; +`;function an(Ve,$e){Me[Ve]+=$e}}function Zr(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function J(u,Ie){if(u.fill)u.fill(Ie);else for(let Me=0;Me0?u.repeat(Ie):"";let Me="";for(;Me.length{},Dy=()=>{},_l,Ne=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Ne||{}),on=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(on||{}),Qp=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Qp||{});var Pm=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Pm||{});var Op=(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.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Op||{});var Kp=(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=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="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.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Kp||{});var Nm=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Nm||{}),nn=(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.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",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.StringLike=402653316]="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.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(nn||{}),Zp=(e=>(e[e.None=0]="None",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.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Zp||{});var Im=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Im||{});var Dr=(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))(Dr||{}),ys=(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.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(ys||{}),Tl=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Tl||{});var Nn=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Nn||{}),Om=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Om||{}),Mm=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Mm||{}),Jm=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Jm||{});var Q_={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99};var Lm={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},{name:"resolution-mode",optional:!0},{name:"preserve",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},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Ga=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Ga||{});var Qi="/",Py="\\",Ed="://",Ny=/\\/g;function Iy(e){return e===47||e===92}function Oy(e,t){return e.length>t.length&&ky(e,t)}function ef(e){return e.length>0&&Iy(e.charCodeAt(e.length-1))}function Ad(e){return e>=97&&e<=122||e>=65&&e<=90}function My(e,t){let a=e.charCodeAt(t);if(a===58)return t+1;if(a===37&&e.charCodeAt(t+1)===51){let o=e.charCodeAt(t+2);if(o===97||o===65)return t+3}return-1}function Jy(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let o=e.indexOf(t===47?Qi:Py,2);return o<0?e.length:o+1}if(Ad(t)&&e.charCodeAt(1)===58){let o=e.charCodeAt(2);if(o===47||o===92)return 3;if(e.length===2)return 2}let a=e.indexOf(Ed);if(a!==-1){let o=a+Ed.length,m=e.indexOf(Qi,o);if(m!==-1){let v=e.slice(0,a),A=e.slice(o,m);if(v==="file"&&(A===""||A==="localhost")&&Ad(e.charCodeAt(m+1))){let P=My(e,m+2);if(P!==-1){if(e.charCodeAt(P)===47)return~(P+1);if(P===e.length)return~P}}return~(m+1)}return~e.length}return 0}function pl(e){let t=Jy(e);return t<0?~t:t}function jm(e,t,a){if(e=fl(e),pl(e)===e.length)return"";e=Um(e);let m=e.slice(Math.max(pl(e),e.lastIndexOf(Qi)+1)),v=t!==void 0&&a!==void 0?Rm(m,t,a):void 0;return v?m.slice(0,m.length-v.length):m}function Cd(e,t,a){if(ul(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let o=e.slice(e.length-t.length);if(a(o,t))return o}}function Ly(e,t,a){if(typeof t=="string")return Cd(e,t,a)||"";for(let o of t){let m=Cd(e,o,a);if(m)return m}return""}function Rm(e,t,a){if(t)return Ly(Um(e),t,a?$p:Ty);let o=jm(e),m=o.lastIndexOf(".");return m>=0?o.substring(m):""}function jy(e,t){let a=e.substring(0,t),o=e.substring(t).split(Qi);return o.length&&!Gi(o)&&o.pop(),[a,...o]}function Ry(e,t=""){return e=qy(t,e),jy(e,pl(e))}function Uy(e,t){return e.length===0?"":(e[0]&&tf(e[0]))+e.slice(1,t).join(Qi)}function fl(e){return e.includes("\\")?e.replace(Ny,Qi):e}function By(e){if(!Ht(e))return[];let t=[e[0]];for(let a=1;a1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(o)}}return t}function qy(e,...t){e&&(e=fl(e));for(let a of t)a&&(a=fl(a),!e||pl(a)!==0?e=a:e=tf(e)+a);return e}function zy(e){if(e=fl(e),!Dd.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Dd.test(e)))return e;let a=Uy(By(Ry(e)));return a&&ef(e)?tf(a):a}function Um(e){return ef(e)?e.substr(0,e.length-1):e}function tf(e){return ef(e)?e:e+Qi}var Dd=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function r(e,t,a,o,m,v,A){return{code:e,category:t,key:a,message:o,reportsUnnecessary:m,elidedInCompatabilityPyramid:v,reportsDeprecated:A}}var E={Unterminated_string_literal:r(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:r(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:r(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:r(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:r(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:r(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:r(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:r(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:r(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:r(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:r(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:r(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:r(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:r(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:r(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:r(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:r(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:r(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:r(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:r(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:r(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:r(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:r(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:r(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:r(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:r(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:r(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:r(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:r(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:r(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:r(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:r(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:r(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:r(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:r(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:r(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:r(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:r(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:r(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:r(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:r(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:r(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:r(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:r(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:r(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:r(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:r(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:r(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:r(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:r(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:r(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:r(1066,1,"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:r(1068,1,"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:r(1069,1,"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:r(1070,1,"_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:r(1071,1,"_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:r(1079,1,"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:r(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:r(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:r(1090,1,"_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:r(1091,1,"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:r(1092,1,"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:r(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:r(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:r(1095,1,"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:r(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:r(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:r(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:r(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:r(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:r(1101,1,"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:r(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:r(1104,1,"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:r(1105,1,"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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:r(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:r(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:r(1108,1,"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:r(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:r(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:r(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:r(1113,1,"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:r(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:r(1115,1,"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:r(1116,1,"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:r(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:r(1118,1,"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:r(1119,1,"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:r(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:r(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:r(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:r(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:r(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:r(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:r(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:r(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:r(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:r(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:r(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:r(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:r(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:r(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:r(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:r(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:r(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:r(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:r(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:r(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:r(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:r(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:r(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:r(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:r(1147,1,"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:r(1148,1,"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:r(1149,1,"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."),_0_declarations_must_be_initialized:r(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:r(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:r(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:r(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:r(1162,1,"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:r(1163,1,"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:r(1164,1,"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:r(1165,1,"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_have_a_simple_literal_type_or_a_unique_symbol_type:r(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple 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:r(1168,1,"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:r(1169,1,"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:r(1170,1,"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:r(1171,1,"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:r(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:r(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:r(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:r(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:r(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:r(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:r(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:r(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:r(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:r(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:r(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:r(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:r(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:r(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:r(1186,1,"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:r(1187,1,"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:r(1188,1,"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:r(1189,1,"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:r(1190,1,"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:r(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:r(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:r(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:r(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:r(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:r(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:r(1197,1,"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:r(1198,1,"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:r(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:r(1200,1,"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:r(1202,1,"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:r(1203,1,"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."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:r(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:r(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:r(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:r(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:r(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:r(1211,1,"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:r(1212,1,"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:r(1213,1,"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:r(1214,1,"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:r(1215,1,"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:r(1216,1,"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:r(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:r(1221,1,"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:r(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:r(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:r(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:r(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:r(1226,1,"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:r(1227,1,"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:r(1228,1,"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:r(1229,1,"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:r(1230,1,"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_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:r(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:r(1234,1,"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_at_the_top_level_of_a_namespace_or_module:r(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:r(1236,1,"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:r(1237,1,"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:r(1238,1,"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:r(1239,1,"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:r(1240,1,"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:r(1241,1,"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:r(1242,1,"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:r(1243,1,"_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:r(1244,1,"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:r(1245,1,"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:r(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:r(1247,1,"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:r(1248,1,"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:r(1249,1,"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_ES5:r(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:r(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:r(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:r(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:r(1254,1,"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:r(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:r(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:r(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:r(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:r(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:r(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:r(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:r(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:r(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:r(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:r(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:r(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:r(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:r(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:r(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:r(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:r(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:r(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:r(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:r(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:r(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:r(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:r(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:r(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:r(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:r(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:r(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:r(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:r(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:r(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:r(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:r(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:r(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:r(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:r(1313,1,"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:r(1314,1,"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:r(1315,1,"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:r(1316,1,"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:r(1317,1,"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:r(1318,1,"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:r(1319,1,"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:r(1320,1,"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:r(1321,1,"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:r(1322,1,"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_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:r(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:r(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:r(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:r(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:r(1327,1,"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:r(1328,1,"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:r(1329,1,"_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:r(1330,1,"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:r(1331,1,"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:r(1332,1,"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:r(1333,1,"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:r(1334,1,"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:r(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:r(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:r(1338,1,"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:r(1339,1,"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:r(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:r(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:r(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:r(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:r(1345,1,"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:r(1346,1,"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:r(1347,1,"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:r(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:r(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:r(1350,3,"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:r(1351,1,"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:r(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:r(1353,1,"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:r(1354,1,"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_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:r(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:r(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:r(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:r(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:r(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:r(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:r(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:r(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:r(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:r(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:r(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:r(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:r(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:r(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:r(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:r(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:r(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:r(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:r(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:r(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:r(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:r(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:r(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:r(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:r(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:r(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:r(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:r(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:r(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:r(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:r(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:r(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:r(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:r(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:r(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:r(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:r(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:r(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:r(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:r(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:r(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:r(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:r(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:r(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:r(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:r(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:r(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:r(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:r(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:r(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:r(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:r(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:r(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:r(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:r(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:r(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:r(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:r(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:r(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:r(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:r(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:r(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:r(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:r(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:r(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:r(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:r(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:r(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:r(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:r(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:r(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:r(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:r(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:r(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:r(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:r(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:r(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:r(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:r(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:r(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:r(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:r(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:r(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:r(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:r(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:r(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:r(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:r(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:r(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:r(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:r(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:r(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:r(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:r(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:r(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:r(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:r(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:r(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:r(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:r(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:r(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:r(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:r(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:r(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:r(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:r(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:r(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:r(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:r(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:r(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:r(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:r(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:r(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:r(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:r(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:r(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:r(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:r(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:r(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:r(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:r(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:r(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:r(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:r(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:r(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:r(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:r(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:r(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:r(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:r(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:r(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:r(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:r(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:r(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:r(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:r(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:r(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:r(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:r(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:r(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:r(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:r(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:r(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:r(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:r(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:r(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:r(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:r(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:r(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:r(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:r(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:r(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:r(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:r(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:r(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:r(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:r(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:r(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:r(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:r(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:r(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:r(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:r(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:r(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:r(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:r(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:r(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:r(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:r(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:r(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2301,1,"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:r(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:r(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:r(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:r(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:r(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:r(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:r(2308,1,"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:r(2309,1,"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:r(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:r(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:r(2312,1,"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:r(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:r(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:r(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:r(2316,1,"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:r(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:r(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:r(2319,1,"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:r(2320,1,"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:r(2321,1,"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:r(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:r(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:r(2324,1,"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:r(2325,1,"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:r(2326,1,"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:r(2327,1,"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:r(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:r(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:r(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:r(2331,1,"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:r(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:r(2334,1,"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:r(2335,1,"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:r(2336,1,"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:r(2337,1,"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:r(2338,1,"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:r(2339,1,"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:r(2340,1,"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:r(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:r(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:r(2344,1,"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:r(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:r(2347,1,"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:r(2348,1,"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'?"),This_expression_is_not_callable:r(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:r(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:r(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),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:r(2352,1,"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:r(2353,1,"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:r(2354,1,"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_undefined_void_nor_any_must_return_a_value:r(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:r(2356,1,"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:r(2357,1,"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:r(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:r(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:r(2362,1,"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:r(2363,1,"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:r(2364,1,"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:r(2365,1,"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:r(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:r(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:r(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:r(2369,1,"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:r(2370,1,"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:r(2371,1,"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_reference_itself:r(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:r(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:r(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:r(2377,1,"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:r(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:r(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:r(2383,1,"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:r(2384,1,"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:r(2385,1,"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:r(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:r(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:r(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:r(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:r(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:r(2391,1,"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:r(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:r(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:r(2394,1,"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:r(2395,1,"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:r(2396,1,"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:r(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:r(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:r(2399,1,"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:r(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:r(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:r(2402,1,"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:r(2403,1,"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:r(2404,1,"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:r(2405,1,"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:r(2406,1,"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:r(2407,1,"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:r(2408,1,"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:r(2409,1,"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:r(2410,1,"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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:r(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:r(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:r(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:r(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:r(2415,1,"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:r(2416,1,"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:r(2417,1,"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:r(2418,1,"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}'."),Types_of_construct_signatures_are_incompatible:r(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:r(2420,1,"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:r(2422,1,"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:r(2423,1,"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_property_1_but_extended_class_2_defines_it_as_instance_member_function:r(2425,1,"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:r(2426,1,"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:r(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:r(2428,1,"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:r(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:r(2431,1,"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:r(2432,1,"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:r(2433,1,"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:r(2434,1,"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:r(2435,1,"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:r(2436,1,"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:r(2437,1,"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:r(2438,1,"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:r(2439,1,"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:r(2440,1,"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:r(2441,1,"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:r(2442,1,"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:r(2443,1,"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:r(2444,1,"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:r(2445,1,"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_This_is_an_instance_of_class_2:r(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:r(2447,1,"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:r(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:r(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:r(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:r(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:r(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:r(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:r(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:r(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:r(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:r(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:r(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:r(2461,1,"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:r(2462,1,"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:r(2463,1,"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:r(2464,1,"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:r(2465,1,"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:r(2466,1,"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:r(2467,1,"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:r(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:r(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:r(2472,1,"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:r(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:r(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:r(2475,1,"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:r(2476,1,"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:r(2477,1,"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:r(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:r(2480,1,"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:r(2481,1,"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:r(2483,1,"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:r(2484,1,"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:r(2487,1,"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:r(2488,1,"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:r(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:r(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:r(2491,1,"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:r(2492,1,"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:r(2493,1,"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:r(2494,1,"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:r(2495,1,"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_ES5_Consider_using_a_standard_function_expression:r(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:r(2497,1,"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:r(2498,1,"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:r(2499,1,"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:r(2500,1,"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:r(2501,1,"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:r(2502,1,"_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:r(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:r(2504,1,"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:r(2505,1,"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:r(2506,1,"_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:r(2507,1,"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:r(2508,1,"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:r(2509,1,"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:r(2510,1,"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:r(2511,1,"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:r(2512,1,"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:r(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:r(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:r(2515,1,"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:r(2516,1,"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:r(2517,1,"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:r(2518,1,"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:r(2519,1,"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:r(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:r(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:r(2523,1,"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:r(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:r(2526,1,"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:r(2527,1,"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:r(2528,1,"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:r(2529,1,"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:r(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:r(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:r(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:r(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:r(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:r(2536,1,"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:r(2537,1,"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:r(2538,1,"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:r(2539,1,"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:r(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:r(2542,1,"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:r(2543,1,"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:r(2544,1,"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:r(2545,1,"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[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:r(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' 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:r(2548,1,"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:r(2549,1,"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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:r(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:r(2551,1,"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:r(2552,1,"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:r(2553,1,"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:r(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:r(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:r(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:r(2558,1,"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:r(2559,1,"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:r(2560,1,"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:r(2561,1,"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:r(2562,1,"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:r(2563,1,"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:r(2564,1,"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:r(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:r(2566,1,"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:r(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:r(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:r(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:r(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:r(2574,1,"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:r(2575,1,"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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:r(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:r(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:r(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:r(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:r(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:r(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:r(2583,1,"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 '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:r(2584,1,"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:r(2585,1,"_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."),Cannot_assign_to_0_because_it_is_a_constant:r(2588,1,"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:r(2589,1,"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:r(2590,1,"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_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:r(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @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_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:r(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @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_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:r(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:r(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:r(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:r(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:r(2602,1,"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:r(2603,1,"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:r(2604,1,"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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:r(2606,1,"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:r(2607,1,"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:r(2608,1,"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:r(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:r(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:r(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:r(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:r(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:r(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:r(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:r(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:r(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:r(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:r(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:r(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:r(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:r(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:r(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:r(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:r(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:r(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:r(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:r(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:r(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:r(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:r(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:r(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:r(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:r(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:r(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:r(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:r(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:r(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:r(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:r(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:r(2651,1,"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:r(2652,1,"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:r(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:r(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:r(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:r(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:r(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:r(2658,1,"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:r(2659,1,"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:r(2660,1,"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:r(2661,1,"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:r(2662,1,"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:r(2663,1,"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:r(2664,1,"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:r(2665,1,"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:r(2666,1,"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:r(2667,1,"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:r(2668,1,"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:r(2669,1,"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:r(2670,1,"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:r(2671,1,"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:r(2672,1,"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:r(2673,1,"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:r(2674,1,"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:r(2675,1,"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:r(2676,1,"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:r(2677,1,"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:r(2678,1,"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:r(2679,1,"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:r(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:r(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:r(2683,1,"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:r(2684,1,"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:r(2685,1,"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:r(2686,1,"_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:r(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:r(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:r(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:r(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:r(2692,1,"_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:r(2693,1,"_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:r(2694,1,"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:r(2695,1,"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:r(2696,1,"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:r(2697,1,"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:r(2698,1,"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:r(2699,1,"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:r(2700,1,"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:r(2701,1,"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:r(2702,1,"_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:r(2703,1,"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:r(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:r(2706,1,"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:r(2707,1,"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:r(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:r(2709,1,"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:r(2710,1,"_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:r(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:r(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:r(2713,1,"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:r(2714,1,"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:r(2715,1,"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:r(2716,1,"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:r(2717,1,"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:r(2718,1,"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:r(2719,1,"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:r(2720,1,"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:r(2721,1,"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:r(2722,1,"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:r(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:r(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:r(2725,1,"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:r(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:r(2727,1,"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:r(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:r(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:r(2730,1,"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:r(2731,1,"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:r(2732,1,"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:r(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:r(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:r(2735,1,"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:r(2736,1,"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_ES2020:r(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:r(2738,3,"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:r(2739,1,"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:r(2740,1,"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:r(2741,1,"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:r(2742,1,"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:r(2743,1,"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:r(2744,1,"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:r(2745,1,"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:r(2746,1,"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:r(2747,1,"_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_0_is_enabled:r(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:r(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:r(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:r(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:r(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:r(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:r(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:r(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:r(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:r(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:r(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:r(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:r(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:r(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:r(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:r(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:r(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:r(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:r(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:r(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:r(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:r(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:r(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:r(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:r(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:r(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:r(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:r(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:r(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:r(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:r(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:r(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:r(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:r(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:r(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:r(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:r(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:r(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:r(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:r(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:r(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:r(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:r(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:r(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:r(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:r(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:r(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:r(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:r(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:r(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:r(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:r(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:r(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:r(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:r(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:r(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:r(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:r(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:r(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:r(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:r(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:r(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:r(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:r(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:r(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:r(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:r(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:r(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:r(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:r(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:r(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:r(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:r(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:r(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:r(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:r(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:r(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:r(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:r(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:r(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:r(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:r(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:r(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:r(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:r(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:r(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:r(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:r(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:r(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:r(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:r(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:r(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:r(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:r(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:r(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:r(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:r(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:r(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:r(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:r(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:r(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:r(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:r(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:r(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:r(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:r(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:r(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:r(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:r(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:r(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:r(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:r(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:r(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:r(4e3,1,"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:r(4002,1,"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:r(4004,1,"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:r(4006,1,"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:r(4008,1,"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:r(4010,1,"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:r(4012,1,"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:r(4014,1,"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:r(4016,1,"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:r(4019,1,"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:r(4020,1,"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_class_has_or_is_using_private_name_0:r(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:r(4022,1,"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:r(4023,1,"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:r(4024,1,"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:r(4025,1,"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:r(4026,1,"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:r(4027,1,"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:r(4028,1,"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:r(4029,1,"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:r(4030,1,"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:r(4031,1,"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:r(4032,1,"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:r(4033,1,"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:r(4034,1,"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:r(4035,1,"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:r(4036,1,"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:r(4037,1,"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:r(4038,1,"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:r(4039,1,"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:r(4040,1,"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:r(4041,1,"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:r(4042,1,"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:r(4043,1,"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:r(4044,1,"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:r(4045,1,"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:r(4046,1,"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:r(4047,1,"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:r(4048,1,"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:r(4049,1,"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:r(4050,1,"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:r(4051,1,"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:r(4052,1,"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:r(4053,1,"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:r(4054,1,"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:r(4055,1,"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:r(4056,1,"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:r(4057,1,"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:r(4058,1,"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:r(4059,1,"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:r(4060,1,"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:r(4061,1,"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:r(4062,1,"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:r(4063,1,"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:r(4064,1,"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:r(4065,1,"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:r(4066,1,"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:r(4067,1,"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:r(4068,1,"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:r(4069,1,"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:r(4070,1,"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:r(4071,1,"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:r(4072,1,"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:r(4073,1,"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:r(4074,1,"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:r(4075,1,"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:r(4076,1,"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:r(4077,1,"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:r(4078,1,"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:r(4081,1,"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:r(4082,1,"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:r(4083,1,"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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:r(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:r(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:r(4091,1,"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:r(4092,1,"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_anonymous_class_type_may_not_be_private_or_protected:r(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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:r(4095,1,"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:r(4096,1,"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:r(4097,1,"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:r(4098,1,"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:r(4099,1,"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:r(4100,1,"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:r(4101,1,"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:r(4102,1,"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:r(4103,1,"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_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:r(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:r(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:r(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:r(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:r(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:r(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:r(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:r(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:r(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:r(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:r(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:r(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:r(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:r(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:r(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:r(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:r(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:r(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:r(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:r(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:r(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:r(5001,1,"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:r(5009,1,"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:r(5010,1,"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:r(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:r(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:r(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:r(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:r(5033,1,"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:r(5042,1,"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:r(5047,1,"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:r(5051,1,"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:r(5052,1,"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:r(5053,1,"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:r(5054,1,"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:r(5055,1,"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:r(5056,1,"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:r(5057,1,"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:r(5058,1,"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:r(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:r(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:r(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:r(5063,1,"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:r(5064,1,"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:r(5065,1,"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:r(5066,1,"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:r(5067,1,"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:r(5068,1,"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:r(5069,1,"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_when_moduleResolution_is_set_to_classic:r(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:r(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:r(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:r(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:r(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:r(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:r(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:r(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:r(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:r(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:r(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:r(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:r(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:r(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:r(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:r(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:r(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:r(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:r(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:r(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:r(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:r(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:r(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:r(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:r(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:r(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:r(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:r(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:r(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:r(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:r(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:r(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:r(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:r(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:r(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:r(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:r(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:r(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:r(6e3,3,"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:r(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:r(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:r(6004,3,"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:r(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:r(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:r(6007,3,"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:r(6008,3,"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:r(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:r(6010,3,"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:r(6011,3,"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:r(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:r(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:r(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:r(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:r(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:r(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:r(6019,3,"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:r(6020,3,"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:r(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:r(6024,3,"options_6024","options"),file:r(6025,3,"file_6025","file"),Examples_Colon_0:r(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:r(6027,3,"Options_Colon_6027","Options:"),Version_0:r(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:r(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:r(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:r(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:r(6034,3,"KIND_6034","KIND"),FILE:r(6035,3,"FILE_6035","FILE"),VERSION:r(6036,3,"VERSION_6036","VERSION"),LOCATION:r(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:r(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:r(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:r(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:r(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:r(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:r(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:r(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:r(6046,1,"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:r(6048,1,"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}'."),Unable_to_open_file_0:r(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:r(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:r(6052,3,"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:r(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:r(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:r(6055,3,"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:r(6056,3,"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:r(6058,3,"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:r(6059,1,"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:r(6060,3,"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:r(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:r(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:r(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:r(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:r(6070,3,"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:r(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:r(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:r(6073,3,"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:r(6074,3,"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:r(6075,3,"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:r(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:r(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:r(6078,3,"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:r(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:r(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:r(6082,1,"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:r(6083,3,"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:r(6084,3,"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:r(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:r(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:r(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:r(6088,3,"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:r(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:r(6090,3,"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:r(6091,3,"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:r(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:r(6093,3,"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:r(6094,3,"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_types_Colon_1:r(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:r(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:r(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:r(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:r(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:r(6100,3,"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:r(6101,3,"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:r(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:r(6104,3,"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:r(6105,3,"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:r(6106,3,"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:r(6107,3,"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:r(6108,3,"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:r(6109,3,"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:r(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:r(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:r(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:r(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:r(6114,1,"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:r(6115,3,"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:r(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:r(6119,3,"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:r(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:r(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:r(6122,3,"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:r(6123,3,"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:r(6124,3,"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:r(6125,3,"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:r(6126,3,"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:r(6127,3,"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:r(6128,3,"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:r(6130,3,"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:r(6131,1,"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:r(6132,3,"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:r(6133,1,"_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:r(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:r(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:r(6136,3,"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:r(6137,1,"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:r(6138,1,"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:r(6139,3,"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:r(6140,1,"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:r(6141,3,"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:r(6142,1,"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:r(6144,3,"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}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:r(6146,3,"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:r(6147,3,"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:r(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:r(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:r(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:r(6151,3,"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:r(6152,3,"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:r(6153,3,"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:r(6154,3,"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:r(6155,3,"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:r(6156,3,"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:r(6157,3,"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:r(6158,3,"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:r(6159,3,"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:r(6160,3,"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:r(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:r(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:r(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:r(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:r(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:r(6166,3,"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:r(6167,3,"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:r(6168,3,"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:r(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:r(6170,3,"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:r(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:r(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:r(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:r(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:r(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:r(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:r(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:r(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:r(6191,3,"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:r(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:r(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:r(6194,3,"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:r(6195,3,"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:r(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:r(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:r(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:r(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:r(6200,1,"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:r(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:r(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:r(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:r(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:r(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:r(6206,3,"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:r(6207,3,"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:r(6208,3,"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:r(6209,3,"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:r(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:r(6211,3,"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:r(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:r(6213,3,"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:r(6214,3,"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:r(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:r(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:r(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:r(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:r(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:r(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:r(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:r(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:r(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:r(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:r(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:r(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:r(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:r(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:r(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:r(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:r(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:r(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:r(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:r(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:r(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:r(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:r(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:r(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:r(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:r(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:r(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:r(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:r(6244,3,"Modules_6244","Modules"),File_Management:r(6245,3,"File_Management_6245","File Management"),Emit:r(6246,3,"Emit_6246","Emit"),JavaScript_Support:r(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:r(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:r(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:r(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:r(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:r(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:r(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:r(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:r(6255,3,"Projects_6255","Projects"),Output_Formatting:r(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:r(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:r(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:r(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:r(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:r(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:r(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:r(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:r(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:r(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:r(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:r(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:r(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:r(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:r(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:r(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:r(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:r(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:r(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:r(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:r(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:r(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:r(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:r(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:r(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:r(6304,1,"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:r(6305,1,"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:r(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:r(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:r(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:r(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:r(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:r(6352,3,"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:r(6353,3,"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:r(6354,3,"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:r(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:r(6356,3,"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:r(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:r(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:r(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:r(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:r(6362,3,"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:r(6363,3,"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:r(6364,3,"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:r(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:r(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:r(6369,1,"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:r(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:r(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:r(6374,3,"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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:r(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:r(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:r(6380,3,"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:r(6381,3,"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}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:r(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:r(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:r(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:r(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:r(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:r(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:r(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:r(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:r(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:r(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:r(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:r(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:r(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:r(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:r(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:r(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:r(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:r(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:r(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:r(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:r(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:r(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:r(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:r(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:r(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:r(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:r(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:r(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:r(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:r(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:r(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:r(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:r(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:r(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:r(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:r(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:r(6500,3,"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:r(6501,3,"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:r(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:r(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:r(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:r(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:r(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:r(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:r(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:r(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:r(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:r(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:r(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:r(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:r(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:r(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:r(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:r(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:r(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:r(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:r(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:r(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:r(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:r(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:r(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:r(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:r(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:r(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:r(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:r(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:r(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:r(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:r(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:r(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:r(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:r(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:r(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:r(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:r(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:r(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:r(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:r(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:r(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:r(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:r(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:r(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:r(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:r(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:r(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:r(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:r(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:r(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:r(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:r(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:r(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:r(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:r(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:r(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:r(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:r(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:r(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:r(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:r(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:r(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:r(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:r(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:r(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:r(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:r(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:r(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:r(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:r(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:r(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:r(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:r(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:r(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:r(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:r(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:r(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:r(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:r(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:r(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:r(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:r(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:r(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:r(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:r(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:r(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:r(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:r(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:r(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:r(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:r(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:r(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:r(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:r(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:r(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:r(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:r(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:r(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:r(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:r(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:r(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:r(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:r(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:r(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:r(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:r(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:r(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:r(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:r(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:r(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:r(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:r(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:r(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:r(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:r(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:r(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:r(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:r(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:r(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:r(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:r(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:r(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:r(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:r(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:r(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:r(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:r(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:r(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:r(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:r(6902,3,"type_Colon_6902","type:"),default_Colon:r(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:r(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:r(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:r(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:r(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:r(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:r(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:r(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:r(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:r(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:r(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:r(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:r(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:r(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:r(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:r(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:r(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:r(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:r(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:r(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:r(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:r(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:r(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:r(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:r(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:r(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:r(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:r(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:r(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:r(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:r(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:r(7008,1,"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:r(7009,1,"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:r(7010,1,"_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:r(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:r(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:r(7013,1,"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:r(7014,1,"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:r(7015,1,"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:r(7016,1,"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:r(7017,1,"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:r(7018,1,"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:r(7019,1,"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:r(7020,1,"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:r(7022,1,"_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:r(7023,1,"_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:r(7024,1,"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_yield_type_0_Consider_supplying_a_return_type_annotation:r(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:r(7026,1,"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:r(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:r(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:r(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:r(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:r(7031,1,"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:r(7032,1,"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:r(7033,1,"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:r(7034,1,"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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:r(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @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:r(7036,1,"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:r(7037,3,"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:r(7038,3,"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:r(7039,1,"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:r(7040,1,"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:r(7041,1,"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:r(7042,1,"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:r(7043,2,"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:r(7044,2,"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:r(7045,2,"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:r(7046,2,"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:r(7047,2,"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:r(7048,2,"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:r(7049,2,"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:r(7050,2,"_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:r(7051,1,"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}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:r(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:r(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:r(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:r(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:r(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:r(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:r(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:r(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:r(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:r(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:r(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:r(8001,1,"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_TypeScript_files:r(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:r(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:r(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:r(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:r(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:r(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:r(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:r(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:r(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:r(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:r(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:r(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:r(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:r(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:r(8020,1,"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:r(8021,1,"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:r(8022,1,"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:r(8023,1,"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:r(8024,1,"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:r(8025,1,"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:r(8026,1,"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:r(8027,1,"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:r(8028,1,"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:r(8029,1,"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:r(8030,1,"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:r(8031,1,"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:r(8032,1,"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}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:r(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:r(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:r(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:r(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:r(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:r(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:r(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:r(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:r(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:r(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:r(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:r(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:r(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:r(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:r(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:r(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:r(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:r(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:r(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:r(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:r(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:r(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:r(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:r(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:r(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:r(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:r(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:r(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:r(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:r(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:r(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:r(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:r(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:r(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:r(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:r(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:r(17e3,1,"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:r(17001,1,"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:r(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:r(17004,1,"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:r(17005,1,"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:r(17006,1,"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:r(17007,1,"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:r(17008,1,"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:r(17009,1,"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:r(17010,1,"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:r(17011,1,"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:r(17012,1,"_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:r(17013,1,"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:r(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:r(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:r(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:r(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:r(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:r(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:r(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:r(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:r(18002,1,"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:r(18003,1,"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_ES_module:r(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:r(80002,2,"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:r(80003,2,"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:r(80004,2,"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:r(80005,2,"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:r(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:r(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:r(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:r(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:r(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:r(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:r(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:r(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:r(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:r(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:r(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:r(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:r(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:r(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:r(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:r(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:r(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:r(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:r(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:r(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:r(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:r(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:r(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:r(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:r(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:r(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:r(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:r(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:r(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:r(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:r(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:r(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:r(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:r(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:r(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:r(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:r(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:r(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:r(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:r(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:r(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:r(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:r(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:r(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:r(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:r(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:r(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:r(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:r(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:r(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:r(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:r(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:r(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:r(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:r(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:r(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:r(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:r(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:r(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:r(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:r(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:r(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:r(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:r(95005,3,"Extract_function_95005","Extract function"),Extract_constant:r(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:r(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:r(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:r(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:r(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:r(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:r(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:r(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:r(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:r(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:r(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:r(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:r(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:r(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:r(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:r(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:r(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:r(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:r(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:r(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:r(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:r(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:r(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:r(95030,3,"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:r(95031,3,"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:r(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:r(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:r(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:r(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:r(95036,3,"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:r(95037,3,"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:r(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:r(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:r(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:r(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:r(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:r(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:r(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:r(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:r(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:r(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:r(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:r(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:r(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:r(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:r(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:r(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:r(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:r(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:r(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:r(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:r(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:r(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:r(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:r(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:r(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:r(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:r(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:r(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:r(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:r(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:r(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:r(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:r(95070,3,"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:r(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:r(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:r(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:r(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:r(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:r(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:r(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:r(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:r(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:r(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:r(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:r(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:r(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:r(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:r(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:r(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:r(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:r(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:r(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:r(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:r(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:r(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:r(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:r(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:r(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:r(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:r(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:r(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:r(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:r(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:r(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:r(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:r(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:r(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:r(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:r(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:r(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:r(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:r(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:r(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:r(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:r(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:r(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:r(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:r(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:r(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:r(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:r(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:r(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:r(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:r(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:r(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:r(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:r(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:r(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:r(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:r(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:r(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:r(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:r(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:r(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:r(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:r(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:r(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:r(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:r(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:r(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:r(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:r(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:r(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:r(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:r(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:r(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:r(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:r(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:r(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:r(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:r(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:r(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:r(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:r(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:r(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:r(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:r(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:r(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:r(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:r(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:r(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:r(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:r(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:r(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:r(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:r(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:r(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:r(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:r(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:r(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:r(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:r(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:r(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:r(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:r(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:r(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:r(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:r(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:r(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:r(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:r(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:r(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:r(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:r(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:r(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:r(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:r(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:r(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:r(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:r(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:r(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:r(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:r(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:r(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:r(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:r(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:r(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:r(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:r(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:r(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:r(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:r(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:r(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:r(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:r(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:r(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:r(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:r(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:r(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:r(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:r(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:r(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:r(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:r(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:r(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:r(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:r(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:r(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:r(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:r(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:r(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:r(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:r(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:r(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:r(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:r(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:r(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:r(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:r(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:r(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:r(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:r(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:r(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:r(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:r(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:r(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:r(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:r(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:r(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:r(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:r(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function wt(e){return e>=80}function Fy(e){return e===32||wt(e)}var nf={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Vy=new Map(Object.entries(nf)),Bm=new Map(Object.entries({...nf,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),qm=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Wy=new Map([[1,Q_.RegularExpressionFlagsHasIndices],[16,Q_.RegularExpressionFlagsDotAll],[32,Q_.RegularExpressionFlagsUnicode],[64,Q_.RegularExpressionFlagsUnicodeSets],[128,Q_.RegularExpressionFlagsSticky]]),Gy=[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],Yy=[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],Hy=[65,90,97,122,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,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,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,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,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,2809,2809,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,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,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,43824,43866,43868,43881,43888,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Xy=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,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,2556,2556,2558,2558,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,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,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,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,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,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],$y=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Qy=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ky=/@(?:see|link)/i;function dl(e,t){if(e=2?dl(e,Hy):dl(e,Gy)}function eg(e,t){return t>=2?dl(e,Xy):dl(e,Yy)}function zm(e){let t=[];return e.forEach((a,o)=>{t[a]=o}),t}var tg=zm(Bm);function it(e){return tg[e]}function Fm(e){return Bm.get(e)}var z4=zm(qm);function Pd(e){return qm.get(e)}function Vm(e){let t=[],a=0,o=0;for(;a127&&Cn(m)&&(t.push(o),o=a);break}}return t.push(o),t}function ng(e,t,a,o,m){(t<0||t>=e.length)&&(m?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${o!==void 0?_y(e,Vm(o)):"unknown"}`));let v=e[t]+a;return m?v>e[t+1]?e[t+1]:typeof o=="string"&&v>o.length?o.length:v:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Cn(e){return e===10||e===13||e===8232||e===8233}function fi(e){return e>=48&&e<=57}function vp(e){return fi(e)||e>=65&&e<=70||e>=97&&e<=102}function rf(e){return e>=65&&e<=90||e>=97&&e<=122}function Gm(e){return rf(e)||fi(e)||e===95}function Tp(e){return e>=48&&e<=55}function Ar(e,t,a,o,m){if(fs(t))return t;let v=!1;for(;;){let A=e.charCodeAt(t);switch(A){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,a)return t;v=!!m;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(o)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Ba(A)){t++;continue}break}return t}}var sl=7;function Vi(e,t){if(B.assert(t>=0),t===0||Cn(e.charCodeAt(t-1))){let a=e.charCodeAt(t);if(t+sl=0&&a127&&Ba(I)){y&&Cn(I)&&(h=!0),a++;continue}break e}}return y&&(x=m(P,l,Q,h,v,x)),x}function Xm(e,t,a,o){return xl(!1,e,t,!1,a,o)}function $m(e,t,a,o){return xl(!1,e,t,!0,a,o)}function ag(e,t,a,o,m){return xl(!0,e,t,!1,a,o,m)}function _g(e,t,a,o,m){return xl(!0,e,t,!0,a,o,m)}function Qm(e,t,a,o,m,v=[]){return v.push({kind:a,pos:e,end:t,hasTrailingNewLine:o}),v}function Jp(e,t){return ag(e,t,Qm,void 0,void 0)}function sg(e,t){return _g(e,t,Qm,void 0,void 0)}function _f(e){let t=af.exec(e);if(t)return t[0]}function Zn(e,t){return rf(e)||e===36||e===95||e>127&&Zy(e,t)}function Er(e,t,a){return Gm(e)||e===36||(a===1?e===45||e===58:!1)||e>127&&eg(e,t)}function og(e,t,a){let o=Wi(e,0);if(!Zn(o,t))return!1;for(let m=Ft(o);mh,getStartPos:()=>h,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>g,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>P.substring(y,l),getTokenValue:()=>x,hasUnicodeEscape:()=>(I&1024)!==0,hasExtendedUnicodeEscape:()=>(I&8)!==0,hasPrecedingLineBreak:()=>(I&1)!==0,hasPrecedingJSDocComment:()=>(I&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(I&32768)!==0,isIdentifier:()=>g===80||g>118,isReservedWord:()=>g>=83&&g<=118,isUnterminated:()=>(I&4)!==0,getCommentDirectives:()=>re,getNumericLiteralFlags:()=>I&25584,getTokenFlags:()=>I,reScanGreaterToken:lt,reScanAsteriskEqualsToken:ar,reScanSlashToken:mt,reScanTemplateToken:Bt,reScanTemplateHeadOrNoSubstitutionTemplate:rn,scanJsxIdentifier:Nr,scanJsxAttributeValue:Vn,reScanJsxAttributeValue:Ce,reScanJsxToken:_r,reScanLessThanToken:fr,reScanHashToken:dr,reScanQuestionToken:zn,reScanInvalidIdentifier:Ut,scanJsxToken:Fn,scanJsDocToken:L,scanJSDocCommentTextToken:mr,scan:ct,getText:Ke,clearCommentDirectives:st,setText:Dt,setScriptTarget:ut,setLanguageVariant:Ir,setScriptKind:hr,setJSDocParsingMode:Mn,setOnError:Tt,resetTokenState:Wn,setTextPos:Wn,setSkipJsDocLeadingAsterisks:Si,tryScan:Xe,lookAhead:Te,scanRange:fe};return B.isDebugging&&Object.defineProperty(M,"__debugShowCurrentPositionInText",{get:()=>{let R=M.getText();return R.slice(0,M.getTokenFullStart())+"\u2551"+R.slice(M.getTokenFullStart())}}),M;function ae(R){return Wi(P,R)}function Oe(R){return R>=0&&R=0&&R=65&&be<=70)be+=32;else if(!(be>=48&&be<=57||be>=97&&be<=102))break;xe.push(be),l++,we=!1}return xe.length=Q){K+=P.substring(xe,l),I|=4,W(E.Unterminated_string_literal);break}let Se=V(l);if(Se===$){K+=P.substring(xe,l),l++;break}if(Se===92&&!R){K+=P.substring(xe,l),K+=Ot(3),xe=l;continue}if((Se===10||Se===13)&&!R){K+=P.substring(xe,l),I|=4,W(E.Unterminated_string_literal);break}l++}return K}function Pr(R){let $=V(l)===96;l++;let K=l,xe="",Se;for(;;){if(l>=Q){xe+=P.substring(K,l),I|=4,W(E.Unterminated_template_literal),Se=$?15:18;break}let we=V(l);if(we===96){xe+=P.substring(K,l),l++,Se=$?15:18;break}if(we===36&&l+1=Q)return W(E.Unexpected_end_of_text),"";let K=V(l);switch(l++,K){case 48:if(l>=Q||!fi(V(l)))return"\0";case 49:case 50:case 51:l=55296&&xe<=56319&&l+6=56320&&We<=57343)return l=be,Se+String.fromCharCode(We)}return Se;case 120:for(;l<$+4;l++)if(!(l1114111&&(R&&W(E.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,l-K),we=!0),l>=Q?(R&&W(E.Unexpected_end_of_text),we=!0):V(l)===125?l++:(R&&W(E.Unterminated_Unicode_escape_sequence),we=!0),we?(I|=2048,P.substring($,l)):(I|=8,Nd(Se))}function On(){if(l+5=0&&Er(K,e)){R+=Bn(!0),$=l;continue}if(K=On(),!(K>=0&&Er(K,e)))break;I|=1024,R+=P.substring($,l),R+=Nd(K),l+=6,$=l}else break}return R+=P.substring($,l),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let $=x.charCodeAt(0);if($>=97&&$<=122){let K=Vy.get(x);if(K!==void 0)return g=K}}return g=80}function qn(R){let $="",K=!1,xe=!1;for(;;){let Se=V(l);if(Se===95){I|=512,K?(K=!1,xe=!0):W(xe?E.Multiple_consecutive_numeric_separators_are_not_permitted:E.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(K=!0,!fi(Se)||Se-48>=R)break;$+=P[l],l++,xe=!1}return V(l-1)===95&&W(E.Numeric_separators_are_not_allowed_here,l-1,1),$}function $t(){return V(l)===110?(x+="n",I&384&&(x=bb(x)+"n"),l++,10):(x=""+(I&128?parseInt(x.slice(2),2):I&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=l,I=0;;){if(y=l,l>=Q)return g=1;let R=ae(l);if(l===0&&R===35&&Ym(P,l)){if(l=Hm(P,l),t)continue;return g=6}switch(R){case 10:case 13:if(I|=1,t){l++;continue}else return R===13&&l+1=0&&Zn($,e))return x=Bn(!0)+vt(),g=Qe();let K=On();return K>=0&&Zn(K,e)?(l+=6,I|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(W(E.Invalid_character),l++,g=0);case 35:if(l!==0&&P[l+1]==="!")return W(E.can_only_be_used_at_the_start_of_a_file,l,2),l++,g=0;let xe=ae(l+1);if(xe===92){l++;let be=Mt();if(be>=0&&Zn(be,e))return x="#"+Bn(!0)+vt(),g=81;let We=On();if(We>=0&&Zn(We,e))return l+=6,I|=1024,x="#"+String.fromCharCode(We)+vt(),g=81;l--}return Zn(xe,e)?(l++,Jt(xe,e)):(x="#",W(E.Invalid_character,l++,Ft(R))),g=81;case 65533:return W(E.File_appears_to_be_binary,0,0),l=Q,g=8;default:let Se=Jt(R,e);if(Se)return g=Se;if(rs(R)){l+=Ft(R);continue}else if(Cn(R)){I|=1,l+=Ft(R);continue}let we=Ft(R);return W(E.Invalid_character,l,we),l+=we,g=0}}}function _t(){switch(de){case 0:return!0;case 1:return!1}return ye!==3&&ye!==4?!0:de===3?!1:Ky.test(P.slice(h,l))}function Ut(){B.assert(g===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=y=h,I=0;let R=ae(l),$=Jt(R,99);return $?g=$:(l+=Ft(R),g)}function Jt(R,$){let K=R;if(Zn(K,$)){for(l+=Ft(K);l=Q)return g=1;let $=V(l);if($===60)return V(l+1)===47?(l+=2,g=31):(l++,g=30);if($===123)return l++,g=19;let K=0;for(;l0)break;Ba($)||(K=l)}l++}return x=P.substring(h,l),K===-1?13:12}function Nr(){if(wt(g)){for(;l=Q)return g=1;for(let $=V(l);l=0&&rs(V(l-1))&&!(l+1=Q)return g=1;let R=ae(l);switch(l+=Ft(R),R){case 9:case 11:case 12:case 32:for(;l=0&&Zn($,e))return x=Bn(!0)+vt(),g=Qe();let K=On();return K>=0&&Zn(K,e)?(l+=6,I|=1024,x=String.fromCharCode(K)+vt(),g=Qe()):(l++,g=0)}if(Zn(R,e)){let $=R;for(;l=0),l=R,h=R,y=R,g=0,x=void 0,I=0}function Si(R){he+=R?1:-1}}function Wi(e,t){return e.codePointAt(t)}function Ft(e){return e>=65536?2:e===-1?0:1}function cg(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,a=(e-65536)%1024+56320;return String.fromCharCode(t,a)}var lg=String.fromCodePoint?e=>String.fromCodePoint(e):cg;function Nd(e){return lg(e)}var Id=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Od=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Md=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ra={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ra.Script_Extensions=Ra.Script;function wr(e){return e.start+e.length}function ug(e){return e.length===0}function of(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function pg(e,t){return of(e,t-e)}function K_(e){return of(e.span.start,e.newLength)}function fg(e){return ug(e.span)&&e.newLength===0}function Km(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var F4=Km(of(0,0),0);function cf(e,t){for(;e;){let a=t(e);if(a==="quit")return;if(a)return e;e=e.parent}}function ml(e){return(e.flags&16)===0}function dg(e,t){if(e===void 0||ml(e))return e;for(e=e.original;e;){if(ml(e))return!t||t(e)?e:void 0;e=e.original}}function Ja(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function cs(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Pn(e){return cs(e.escapedText)}function Sl(e){let t=Fm(e.escapedText);return t?by(t,di):void 0}function Lp(e){return e.valueDeclaration&&Lg(e.valueDeclaration)?Pn(e.valueDeclaration.name):cs(e.escapedName)}function Zm(e){let t=e.parent.parent;if(t){if(jd(t))return Zc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Zc(t.declarationList.declarations[0]);break;case 244:let a=t.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let o=a.argumentExpression;if(tt(o))return o}break;case 217:return Zc(t.expression);case 256:{if(jd(t.statement)||u1(t.statement))return Zc(t.statement);break}}}}function Zc(e){let t=e1(e);return t&&tt(t)?t:void 0}function mg(e){return e.name||Zm(e)}function hg(e){return!!e.name}function lf(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:a}=e;if(a.kind===166)return a.right;break}case 213:case 226:{let a=e;switch(yf(a)){case 1:case 4:case 5:case 3:return gf(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return mg(e);case 340:return Zm(e);case 277:{let{expression:a}=e;return tt(a)?a:void 0}case 212:let t=e;if(g1(t))return t.argumentExpression}return e.name}function e1(e){if(e!==void 0)return lf(e)||(Mf(e)||Jf(e)||bl(e)?yg(e):void 0)}function yg(e){if(e.parent){if(nh(e.parent)||V1(e.parent))return e.parent.name;if(Ki(e.parent)&&e===e.parent.right){if(tt(e.parent.left))return e.parent.left;if(w1(e.parent.left))return gf(e.parent.left)}else if(Lf(e.parent)&&tt(e.parent.name))return e.parent.name}else return}function uf(e){if(q2(e))return Gr(e.modifiers,El)}function t1(e){if(bs(e,98303))return Gr(e.modifiers,Ug)}function n1(e,t){if(e.name)if(tt(e.name)){let a=e.name.escapedText;return ls(e.parent,t).filter(o=>Fp(o)&&tt(o.name)&&o.name.escapedText===a)}else{let a=e.parent.parameters.indexOf(e);B.assert(a>-1,"Parameters should always be in their parents' parameter list");let o=ls(e.parent,t).filter(Fp);if(aoh(o)&&o.typeParameters.some(m=>m.name.escapedText===a))}function vg(e){return r1(e,!1)}function Tg(e){return r1(e,!0)}function xg(e){return bi(e,i6)}function Sg(e){return Ng(e,f6)}function wg(e){return bi(e,a6,!0)}function kg(e){return bi(e,_6,!0)}function Eg(e){return bi(e,s6,!0)}function Ag(e){return bi(e,o6,!0)}function Cg(e){return bi(e,c6,!0)}function Dg(e){return bi(e,u6,!0)}function Pg(e){let t=bi(e,Ff);if(t&&t.typeExpression&&t.typeExpression.type)return t}function ls(e,t){var a;if(!bf(e))return bt;let o=(a=e.jsDoc)==null?void 0:a.jsDocCache;if(o===void 0||t){let m=k2(e,t);B.assert(m.length<2||m[0]!==m[1]),o=Am(m,v=>sh(v)?v.tags:v),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function i1(e){return ls(e,!1)}function bi(e,t,a){return km(ls(e,a),t)}function Ng(e,t){return i1(e).filter(t)}function jp(e){return e.kind===80||e.kind===81}function Ig(e){return Hr(e)&&!!(e.flags&64)}function Og(e){return Ha(e)&&!!(e.flags&64)}function Jd(e){return Of(e)&&!!(e.flags&64)}function pf(e){return Vf(e,8)}function Mg(e){return cl(e)&&!!(e.flags&64)}function ff(e){return e>=166}function df(e){return e>=0&&e<=165}function a1(e){return df(e.kind)}function mi(e){return Cr(e,"pos")&&Cr(e,"end")}function Jg(e){return 9<=e&&e<=15}function Ld(e){return 15<=e&&e<=18}function Ua(e){var t;return tt(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function _1(e){var t;return gi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Lg(e){return(Va(e)||zg(e))&&gi(e.name)}function Wr(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function jg(e){return!!(x1(e)&31)}function Rg(e){return jg(e)||e===126||e===164||e===129}function Ug(e){return Wr(e.kind)}function s1(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function mf(e){return!!e&&qg(e.kind)}function Bg(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function qg(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return Bg(e)}}function vi(e){return e&&(e.kind===263||e.kind===231)}function zg(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Fg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function o1(e){return K2(e.kind)}function Vg(e){if(e){let t=e.kind;return t===207||t===206}return!1}function Wg(e){let t=e.kind;return t===209||t===210}function Gg(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qa(e){return c1(pf(e).kind)}function c1(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Yg(e){return l1(pf(e).kind)}function l1(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return c1(e)}}function u1(e){return Hg(pf(e).kind)}function Hg(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return l1(e)}}function Xg(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function p1(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function f1(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function jd(e){return e.kind===168?e.parent&&e.parent.kind!==345||Zi(e):Xg(e.kind)}function $g(e){let t=e.kind;return f1(t)||p1(t)||Qg(e)}function Qg(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!p2(e)}function Kg(e){let t=e.kind;return f1(t)||p1(t)||t===241}function d1(e){return e.kind>=309&&e.kind<=351}function Zg(e){return e.kind===320||e.kind===319||e.kind===321||n2(e)||e2(e)||r6(e)||Pl(e)}function e2(e){return e.kind>=327&&e.kind<=351}function el(e){return e.kind===178}function tl(e){return e.kind===177}function Yi(e){if(!bf(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function t2(e){return!!e.initializer}function wl(e){return e.kind===11||e.kind===15}function n2(e){return e.kind===324||e.kind===325||e.kind===326}function Rd(e){return(e.flags&33554432)!==0}var V4=r2();function r2(){var e="";let t=a=>e+=a;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(a,o)=>t(a),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ba(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Fa,decreaseIndent:Fa,clear:()=>e=""}}function i2(e,t){let a=e.entries();for(let[o,m]of a){let v=t(m,o);if(v)return v}}function a2(e){return e.end-e.pos}function m1(e){return _2(e),(e.flags&1048576)!==0}function _2(e){e.flags&2097152||((e.flags&262144||Xt(e,m1))&&(e.flags|=1048576),e.flags|=2097152)}function hi(e){for(;e&&e.kind!==307;)e=e.parent;return e}function Hi(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Rp(e){return!Hi(e)}function hl(e,t,a){if(Hi(e))return e.pos;if(d1(e)||e.kind===12)return Ar((t??hi(e)).text,e.pos,!1,!0);if(a&&Yi(e))return hl(e.jsDoc[0],t);if(e.kind===352){t??(t=hi(e));let o=Hp(ch(e,t));if(o)return hl(o,t,a)}return Ar((t??hi(e)).text,e.pos,!1,!1,f2(e))}function Ud(e,t,a=!1){return is(e.text,t,a)}function s2(e){return!!cf(e,ih)}function is(e,t,a=!1){if(Hi(t))return"";let o=e.substring(a?t.pos:Ar(e,t.pos),t.end);return s2(t)&&(o=o.split(/\r\n|\n|\r/).map(m=>m.replace(/^\s*\*/,"").trimStart()).join(` +`)),o}function za(e){let t=e.emitNode;return t&&t.flags||0}function o2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function ol(e){return e.kind===244&&e.expression.kind===11}function hf(e){return!!(za(e)&2097152)}function Bd(e){return hf(e)&&jf(e)}function c2(e){return tt(e.name)&&!e.initializer}function qd(e){return hf(e)&&Xa(e)&&Gp(e.declarationList.declarations,c2)}function l2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Yp(sg(t,e.pos),Jp(t,e.pos)):Jp(t,e.pos);return Gr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function u2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function p2(e){return e&&e.kind===241&&mf(e.parent)}function zd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function Zi(e){return!!e&&!!(e.flags&524288)}function f2(e){return!!e&&!!(e.flags&16777216)}function d2(e){for(;yl(e,!0);)e=e.right;return e}function m2(e){return tt(e)&&e.escapedText==="exports"}function h2(e){return tt(e)&&e.escapedText==="module"}function h1(e){return(Hr(e)||y1(e))&&h2(e.expression)&&ps(e)==="exports"}function yf(e){let t=g2(e);return t===5||Zi(e)?t:0}function y2(e){return ts(e.arguments)===3&&Hr(e.expression)&&tt(e.expression.expression)&&Pn(e.expression.expression)==="Object"&&Pn(e.expression.name)==="defineProperty"&&kl(e.arguments[1])&&us(e.arguments[0],!0)}function y1(e){return Ha(e)&&kl(e.argumentExpression)}function gs(e,t){return Hr(e)&&(!t&&e.expression.kind===110||tt(e.name)&&us(e.expression,!0))||g1(e,t)}function g1(e,t){return y1(e)&&(!t&&e.expression.kind===110||xf(e.expression)||gs(e.expression,!0))}function us(e,t){return xf(e)||gs(e,t)}function g2(e){if(Of(e)){if(!y2(e))return 0;let t=e.arguments[0];return m2(t)||h1(t)?8:gs(t)&&ps(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!w1(e.left)||b2(d2(e))?0:us(e.left.expression,!0)&&ps(e.left)==="prototype"&&If(T2(e))?6:v2(e.left)}function b2(e){return Qb(e)&&ea(e.expression)&&e.expression.text==="0"}function gf(e){if(Hr(e))return e.name;let t=vf(e.argumentExpression);return ea(t)||wl(t)?t:e}function ps(e){let t=gf(e);if(t){if(tt(t))return t.escapedText;if(wl(t)||ea(t))return Ja(t.text)}}function v2(e){if(e.expression.kind===110)return 4;if(h1(e))return 2;if(us(e.expression,!0)){if($2(e.expression))return 3;let t=e;for(;!tt(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ps(t)==="exports")&&gs(e))return 1;if(us(e,!0)||Ha(e)&&J2(e))return 5}return 0}function T2(e){for(;Ki(e.right);)e=e.right;return e.right}function x2(e){return Cl(e)&&Ki(e.expression)&&yf(e.expression)!==0&&Ki(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function S2(e){switch(e.kind){case 243:let t=Up(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Up(e){return Xa(e)?Hp(e.declarationList.declarations):void 0}function w2(e){return Ti(e)&&e.body&&e.body.kind===267?e.body:void 0}function bf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function k2(e,t){let a;u2(e)&&t2(e)&&Yi(e.initializer)&&(a=Dn(a,Fd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Yi(o)&&(a=Dn(a,Fd(e,o.jsDoc))),o.kind===169){a=Dn(a,(t?bg:gg)(o));break}if(o.kind===168){a=Dn(a,(t?Tg:vg)(o));break}o=A2(o)}return a||bt}function Fd(e,t){let a=ly(t);return Am(t,o=>{if(o===a){let m=Gr(o.tags,v=>E2(e,v));return o.tags===m?[o]:m}else return Gr(o.tags,l6)})}function E2(e,t){return!(Ff(t)||d6(t))||!t.parent||!sh(t.parent)||!Al(t.parent.parent)||t.parent.parent===e}function A2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||w2(t)||yl(e))return t;if(t.parent&&(Up(t.parent)===e||yl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Up(t.parent.parent)||S2(t.parent.parent)===e||x2(t.parent.parent)))return t.parent.parent}function vf(e,t){return Vf(e,t?-2147483647:1)}function C2(e){let t=D2(e);if(t&&Zi(e)){let a=xg(e);if(a)return a.class}return t}function D2(e){let t=Tf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function P2(e){if(Zi(e))return Sg(e).map(t=>t.class);{let t=Tf(e.heritageClauses,119);return t==null?void 0:t.types}}function N2(e){return vs(e)?I2(e)||bt:vi(e)&&Yp(Ip(C2(e)),P2(e))||bt}function I2(e){let t=Tf(e.heritageClauses,96);return t?t.types:void 0}function Tf(e,t){if(e){for(let a of e)if(a.token===t)return a}}function di(e){return 83<=e&&e<=165}function O2(e){return 19<=e&&e<=79}function xp(e){return di(e)||O2(e)}function kl(e){return wl(e)||ea(e)}function M2(e){return Y1(e)&&(e.operator===40||e.operator===41)&&ea(e.operand)}function J2(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ha(e)?vf(e.argumentExpression):e.expression;return!kl(t)&&!M2(t)}function L2(e){return jp(e)?Pn(e):th(e)?kb(e):e.text}function La(e){return fs(e.pos)||fs(e.end)}function Sp(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function wp(e){return!!((e.templateFlags||0)&2048)}function j2(e){return e&&!!(P1(e)?wp(e):wp(e.head)||Ht(e.templateSpans,t=>wp(t.literal)))}var W4=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));var G4=new Map(Object.entries({'"':""","'":"'"}));function R2(e){return!!e&&e.kind===80&&U2(e)}function U2(e){return e.escapedText==="this"}function bs(e,t){return!!z2(e,t)}function B2(e){return bs(e,256)}function q2(e){return bs(e,32768)}function z2(e,t){return V2(e)&t}function F2(e,t,a){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=T1(e)|536870912),a||t&&Zi(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=b1(e)|268435456),v1(e.modifierFlagsCache)):W2(e.modifierFlagsCache))}function V2(e){return F2(e,!1)}function b1(e){let t=0;return e.parent&&!ds(e)&&(Zi(e)&&(wg(e)&&(t|=8388608),kg(e)&&(t|=16777216),Eg(e)&&(t|=33554432),Ag(e)&&(t|=67108864),Cg(e)&&(t|=134217728)),Dg(e)&&(t|=65536)),t}function W2(e){return e&65535}function v1(e){return e&131071|(e&260046848)>>>23}function G2(e){return v1(b1(e))}function Y2(e){return T1(e)|G2(e)}function T1(e){let t=Nl(e)?Rn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Rn(e){let t=0;if(e)for(let a of e)t|=x1(a.kind);return t}function x1(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function H2(e){return e===76||e===77||e===78}function S1(e){return e>=64&&e<=79}function yl(e,t){return Ki(e)&&(t?e.operatorToken.kind===64:S1(e.operatorToken.kind))&&qa(e.left)}function xf(e){return e.kind===80||X2(e)}function X2(e){return Hr(e)&&tt(e.name)&&xf(e.expression)}function $2(e){return gs(e)&&ps(e)==="prototype"}function kp(e){return e.flags&3899393?e.objectFlags:0}function Q2(e){let t;return Xt(e,a=>{Rp(a)&&(t=a)},a=>{for(let o=a.length-1;o>=0;o--)if(Rp(a[o])){t=a[o];break}}),t}function K2(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function w1(e){return e.kind===211||e.kind===212}function Z2(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function eb(e,t){this.flags=t,(B.isDebugging||_l)&&(this.checker=e)}function tb(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function Ep(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function nb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function rb(e,t,a){this.pos=t,this.end=a,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function ib(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}var At={getNodeConstructor:()=>Ep,getTokenConstructor:()=>nb,getIdentifierConstructor:()=>rb,getPrivateIdentifierConstructor:()=>Ep,getSourceFileConstructor:()=>Ep,getSymbolConstructor:()=>Z2,getTypeConstructor:()=>eb,getSignatureConstructor:()=>tb,getSourceMapSourceConstructor:()=>ib},ab=[];function _b(e){Object.assign(At,e),Un(ab,t=>t(At))}function sb(e,t){return e.replace(/\{(\d+)\}/g,(a,o)=>""+B.checkDefined(t[+o]))}var Vd;function ob(e){return Vd&&Vd[e.key]||e.message}function Oa(e,t,a,o,m,...v){a+o>t.length&&(o=t.length-a),o2(t,a,o);let A=ob(m);return Ht(v)&&(A=sb(A,v)),{file:void 0,start:a,length:o,messageText:A,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:e}}function cb(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function k1(e,t){let a=t.fileName||"",o=t.text.length;B.assertEqual(e.fileName,a),B.assertLessThanOrEqual(e.start,o),B.assertLessThanOrEqual(e.start+e.length,o);let m={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){m.relatedInformation=[];for(let v of e.relatedInformation)cb(v)&&v.fileName===a?(B.assertLessThanOrEqual(v.start,o),B.assertLessThanOrEqual(v.start+v.length,o),m.relatedInformation.push(k1(v,t))):m.relatedInformation.push(v)}return m}function qi(e,t){let a=[];for(let o of e)a.push(k1(o,t));return a}function Wd(e){return e===4||e===2||e===1||e===6?1:0}var at={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:at.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(at.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(at.module.computeValue(e)===100||at.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(at.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:at.esModuleInterop.computeValue(e)||at.module.computeValue(e)===4||at.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Gd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=at.moduleResolution.computeValue(e);if(!Gd(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:at.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||at.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&at.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?at.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vr(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vr(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vr(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vr(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vr(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vr(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vr(e,"useUnknownInCatchVariables")}};var Y4=at.allowImportingTsExtensions.computeValue,H4=at.target.computeValue,X4=at.module.computeValue,$4=at.moduleResolution.computeValue,Q4=at.moduleDetection.computeValue,K4=at.isolatedModules.computeValue,Z4=at.esModuleInterop.computeValue,e3=at.allowSyntheticDefaultImports.computeValue,t3=at.resolvePackageJsonExports.computeValue,n3=at.resolvePackageJsonImports.computeValue,r3=at.resolveJsonModule.computeValue,i3=at.declaration.computeValue,a3=at.preserveConstEnums.computeValue,_3=at.incremental.computeValue,s3=at.declarationMap.computeValue,o3=at.allowJs.computeValue,c3=at.useDefineForClassFields.computeValue;function Gd(e){return e>=3&&e<=99||e===100}function Vr(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function lb(e){return i2(targetOptionDeclaration.type,(t,a)=>t===e?a:void 0)}var ub=["node_modules","bower_components","jspm_packages"],E1=`(?!(${ub.join("|")})(/|$))`,pb={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${E1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>A1(e,pb.singleAsteriskRegexFragment)},fb={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${E1}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>A1(e,fb.singleAsteriskRegexFragment)};function A1(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function db(e,t){return t||mb(e)||3}function mb(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var C1=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],l3=Em(C1),u3=[...C1,[".json"]];var hb=[[".js",".jsx"],[".mjs"],[".cjs"]],p3=Em(hb),yb=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],f3=[...yb,[".json"]],gb=[".d.ts",".d.cts",".d.mts"];function fs(e){return!(e>=0)}function nl(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==bt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function bb(e){let 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:let Q=e.length-1,h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,Q)||"0"}let a=2,o=e.length-1,m=(o-a)*t,v=new Uint16Array((m>>>4)+(m&15?1:0));for(let Q=o-1,h=0;Q>=a;Q--,h+=t){let y=h>>>4,g=e.charCodeAt(Q),I=(g<=57?g-48:10+g-(g<=70?65:97))<<(h&15);v[y]|=I;let re=I>>>16;re&&(v[y+1]|=re)}let A="",P=v.length-1,l=!0;for(;l;){let Q=0;l=!1;for(let h=P;h>=0;h--){let y=Q<<16|v[h],g=y/10|0;v[h]=g,Q=y-g*10,g&&!l&&(P=h,l=!0)}A=Q+A}return A}function vb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Bp(e,t){return e.pos=t,e}function Tb(e,t){return e.end=t,e}function yi(e,t,a){return Tb(Bp(e,t),a)}function Yd(e,t,a){return yi(e,t,t+a)}function Sf(e,t){return e&&t&&(e.parent=t),e}function xb(e,t){if(!e)return e;return vm(e,d1(e)?a:m),e;function a(v,A){if(t&&v.parent===A)return"skip";Sf(v,A)}function o(v){if(Yi(v))for(let A of v.jsDoc)a(A,v),vm(A,a)}function m(v,A){return a(v,A)||o(v)}}function Sb(e){return!!(e.flags&262144&&e.isThisType)}function wb(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function kb(e){return`${Pn(e.namespace)}:${Pn(e.name)}`}var d3=String.prototype.replace;var qp=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],m3=new Set(qp),Eb=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),h3=new Set([...qp,...qp.map(e=>`node:${e}`),...Eb]);function Ab(){let e,t,a,o,m;return{createBaseSourceFileNode:v,createBaseIdentifierNode:A,createBasePrivateIdentifierNode:P,createBaseTokenNode:l,createBaseNode:Q};function v(h){return new(m||(m=At.getSourceFileConstructor()))(h,-1,-1)}function A(h){return new(a||(a=At.getIdentifierConstructor()))(h,-1,-1)}function P(h){return new(o||(o=At.getPrivateIdentifierConstructor()))(h,-1,-1)}function l(h){return new(t||(t=At.getTokenConstructor()))(h,-1,-1)}function Q(h){return new(e||(e=At.getNodeConstructor()))(h,-1,-1)}}var Cb={getParenthesizeLeftSideOfBinaryForOperator:e=>gt,getParenthesizeRightSideOfBinaryForOperator:e=>gt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,a)=>a,parenthesizeExpressionOfComputedPropertyName:gt,parenthesizeConditionOfConditionalExpression:gt,parenthesizeBranchOfConditionalExpression:gt,parenthesizeExpressionOfExportDefault:gt,parenthesizeExpressionOfNew:e=>kr(e,qa),parenthesizeLeftSideOfAccess:e=>kr(e,qa),parenthesizeOperandOfPostfixUnary:e=>kr(e,qa),parenthesizeOperandOfPrefixUnary:e=>kr(e,Yg),parenthesizeExpressionsOfCommaDelimitedList:e=>kr(e,mi),parenthesizeExpressionForDisallowedComma:gt,parenthesizeExpressionOfExpressionStatement:gt,parenthesizeConciseBodyOfArrowFunction:gt,parenthesizeCheckTypeOfConditionalType:gt,parenthesizeExtendsTypeOfConditionalType:gt,parenthesizeConstituentTypesOfUnionType:e=>kr(e,mi),parenthesizeConstituentTypeOfUnionType:gt,parenthesizeConstituentTypesOfIntersectionType:e=>kr(e,mi),parenthesizeConstituentTypeOfIntersectionType:gt,parenthesizeOperandOfTypeOperator:gt,parenthesizeOperandOfReadonlyTypeOperator:gt,parenthesizeNonArrayTypeOfPostfixType:gt,parenthesizeElementTypesOfTupleType:e=>kr(e,mi),parenthesizeElementTypeOfTupleType:gt,parenthesizeTypeOfOptionalType:gt,parenthesizeTypeArguments:e=>e&&kr(e,mi),parenthesizeLeadingTypeArgument:gt},rl=0;var Db=[];function wf(e,t){let a=e&8?gt:Mb,o=wd(()=>e&1?Cb:createParenthesizerRules(ye)),m=wd(()=>e&2?nullNodeConverters:createNodeConverters(ye)),v=Kn(n=>(i,_)=>la(i,n,_)),A=Kn(n=>i=>jr(n,i)),P=Kn(n=>i=>ni(i,n)),l=Kn(n=>()=>Xo(n)),Q=Kn(n=>i=>C_(n,i)),h=Kn(n=>(i,_)=>xu(n,i,_)),y=Kn(n=>(i,_)=>$o(n,i,_)),g=Kn(n=>(i,_)=>Tu(n,i,_)),x=Kn(n=>(i,_)=>dc(n,i,_)),I=Kn(n=>(i,_,c)=>Ou(n,i,_,c)),re=Kn(n=>(i,_,c)=>mc(n,i,_,c)),he=Kn(n=>(i,_,c,f)=>Mu(n,i,_,c,f)),ye={get parenthesizer(){return o()},get converters(){return m()},baseFactory:t,flags:e,createNodeArray:de,createNumericLiteral:V,createBigIntLiteral:oe,createStringLiteral:dt,createStringLiteralFromNode:nr,createRegularExpressionLiteral:gn,createLiteralLikeNode:rr,createIdentifier:Ge,createTempVariable:ir,createLoopVariable:Pr,createUniqueName:Ot,getGeneratedNameForNode:Bn,createPrivateIdentifier:Mt,createUniquePrivateName:Qe,getGeneratedPrivateNameForNode:qn,createToken:ct,createSuper:_t,createThis:Ut,createNull:Jt,createTrue:lt,createFalse:ar,createModifier:mt,createModifiersFromModifierFlags:vn,createQualifiedName:yt,updateQualifiedName:cn,createComputedPropertyName:nt,updateComputedPropertyName:Bt,createTypeParameterDeclaration:rn,updateTypeParameterDeclaration:_r,createParameterDeclaration:fr,updateParameterDeclaration:dr,createDecorator:zn,updateDecorator:Fn,createPropertySignature:Nr,updatePropertySignature:Vn,createPropertyDeclaration:mr,updatePropertyDeclaration:L,createMethodSignature:se,updateMethodSignature:fe,createMethodDeclaration:Te,updateMethodDeclaration:Xe,createConstructorDeclaration:ut,updateConstructorDeclaration:Ir,createGetAccessorDeclaration:Mn,updateGetAccessorDeclaration:Wn,createSetAccessorDeclaration:R,updateSetAccessorDeclaration:$,createCallSignature:xe,updateCallSignature:Se,createConstructSignature:we,updateConstructSignature:be,createIndexSignature:We,updateIndexSignature:Ze,createClassStaticBlockDeclaration:st,updateClassStaticBlockDeclaration:Dt,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Ee,createKeywordTypeNode:Tn,createTypePredicateNode:rt,updateTypePredicateNode:ln,createTypeReferenceNode:Zr,updateTypeReferenceNode:J,createFunctionTypeNode:qe,updateFunctionTypeNode:u,createConstructorTypeNode:Me,updateConstructorTypeNode:an,createTypeQueryNode:Pt,updateTypeQueryNode:kt,createTypeLiteralNode:Nt,updateTypeLiteralNode:qt,createArrayTypeNode:Gn,updateArrayTypeNode:wi,createTupleTypeNode:un,updateTupleTypeNode:G,createNamedTupleMember:le,updateNamedTupleMember:Fe,createOptionalTypeNode:ve,updateOptionalTypeNode:j,createRestTypeNode:ht,updateRestTypeNode:xt,createUnionTypeNode:Ul,updateUnionTypeNode:Es,createIntersectionTypeNode:Or,updateIntersectionTypeNode:Je,createConditionalTypeNode:ft,updateConditionalTypeNode:Bl,createInferTypeNode:Yn,updateInferTypeNode:ql,createImportTypeNode:sr,updateImportTypeNode:ia,createParenthesizedType:Qt,updateParenthesizedType:Ct,createThisTypeNode:D,createTypeOperatorNode:Gt,updateTypeOperatorNode:Mr,createIndexedAccessTypeNode:or,updateIndexedAccessTypeNode:Ka,createMappedTypeNode:St,updateMappedTypeNode:jt,createLiteralTypeNode:ei,updateLiteralTypeNode:yr,createTemplateLiteralType:Wt,updateTemplateLiteralType:zl,createObjectBindingPattern:As,updateObjectBindingPattern:Fl,createArrayBindingPattern:Jr,updateArrayBindingPattern:Vl,createBindingElement:aa,updateBindingElement:ti,createArrayLiteralExpression:Za,updateArrayLiteralExpression:Cs,createObjectLiteralExpression:ki,updateObjectLiteralExpression:Wl,createPropertyAccessExpression:e&4?(n,i)=>setEmitFlags(cr(n,i),262144):cr,updatePropertyAccessExpression:Gl,createPropertyAccessChain:e&4?(n,i,_)=>setEmitFlags(Ei(n,i,_),262144):Ei,updatePropertyAccessChain:_a,createElementAccessExpression:Ai,updateElementAccessExpression:Yl,createElementAccessChain:Ns,updateElementAccessChain:e_,createCallExpression:Ci,updateCallExpression:sa,createCallChain:t_,updateCallChain:Os,createNewExpression:xn,updateNewExpression:n_,createTaggedTemplateExpression:oa,updateTaggedTemplateExpression:Ms,createTypeAssertion:Js,updateTypeAssertion:Ls,createParenthesizedExpression:r_,updateParenthesizedExpression:js,createFunctionExpression:i_,updateFunctionExpression:Rs,createArrowFunction:a_,updateArrowFunction:Us,createDeleteExpression:Bs,updateDeleteExpression:qs,createTypeOfExpression:ca,updateTypeOfExpression:fn,createVoidExpression:__,updateVoidExpression:lr,createAwaitExpression:zs,updateAwaitExpression:Lr,createPrefixUnaryExpression:jr,updatePrefixUnaryExpression:Hl,createPostfixUnaryExpression:ni,updatePostfixUnaryExpression:Xl,createBinaryExpression:la,updateBinaryExpression:$l,createConditionalExpression:Vs,updateConditionalExpression:Ws,createTemplateExpression:Gs,updateTemplateExpression:Hn,createTemplateHead:Hs,createTemplateMiddle:ua,createTemplateTail:s_,createNoSubstitutionTemplateLiteral:Kl,createTemplateLiteralLikeNode:ii,createYieldExpression:o_,updateYieldExpression:Zl,createSpreadElement:Xs,updateSpreadElement:eu,createClassExpression:$s,updateClassExpression:c_,createOmittedExpression:l_,createExpressionWithTypeArguments:Qs,updateExpressionWithTypeArguments:Ks,createAsExpression:dn,updateAsExpression:pa,createNonNullExpression:Zs,updateNonNullExpression:eo,createSatisfiesExpression:u_,updateSatisfiesExpression:to,createNonNullChain:p_,updateNonNullChain:Jn,createMetaProperty:no,updateMetaProperty:f_,createTemplateSpan:Xn,updateTemplateSpan:fa,createSemicolonClassElement:ro,createBlock:Rr,updateBlock:tu,createVariableStatement:d_,updateVariableStatement:io,createEmptyStatement:ao,createExpressionStatement:Pi,updateExpressionStatement:_o,createIfStatement:so,updateIfStatement:oo,createDoStatement:co,updateDoStatement:lo,createWhileStatement:uo,updateWhileStatement:nu,createForStatement:po,updateForStatement:fo,createForInStatement:m_,updateForInStatement:ru,createForOfStatement:mo,updateForOfStatement:iu,createContinueStatement:ho,updateContinueStatement:au,createBreakStatement:h_,updateBreakStatement:yo,createReturnStatement:y_,updateReturnStatement:_u,createWithStatement:g_,updateWithStatement:go,createSwitchStatement:b_,updateSwitchStatement:ai,createLabeledStatement:bo,updateLabeledStatement:vo,createThrowStatement:To,updateThrowStatement:su,createTryStatement:xo,updateTryStatement:ou,createDebuggerStatement:So,createVariableDeclaration:da,updateVariableDeclaration:wo,createVariableDeclarationList:v_,updateVariableDeclarationList:cu,createFunctionDeclaration:ko,updateFunctionDeclaration:T_,createClassDeclaration:Eo,updateClassDeclaration:ma,createInterfaceDeclaration:Ao,updateInterfaceDeclaration:Co,createTypeAliasDeclaration:ot,updateTypeAliasDeclaration:gr,createEnumDeclaration:x_,updateEnumDeclaration:br,createModuleDeclaration:Do,updateModuleDeclaration:Et,createModuleBlock:vr,updateModuleBlock:zt,createCaseBlock:Po,updateCaseBlock:uu,createNamespaceExportDeclaration:No,updateNamespaceExportDeclaration:Io,createImportEqualsDeclaration:Oo,updateImportEqualsDeclaration:Mo,createImportDeclaration:Jo,updateImportDeclaration:Lo,createImportClause:jo,updateImportClause:Ro,createAssertClause:S_,updateAssertClause:fu,createAssertEntry:Ni,updateAssertEntry:Uo,createImportTypeAssertionContainer:w_,updateImportTypeAssertionContainer:Bo,createImportAttributes:qo,updateImportAttributes:k_,createImportAttribute:zo,updateImportAttribute:Fo,createNamespaceImport:Vo,updateNamespaceImport:du,createNamespaceExport:Wo,updateNamespaceExport:mu,createNamedImports:Go,updateNamedImports:Yo,createImportSpecifier:Tr,updateImportSpecifier:hu,createExportAssignment:ha,updateExportAssignment:Ii,createExportDeclaration:ya,updateExportDeclaration:Ho,createNamedExports:E_,updateNamedExports:yu,createExportSpecifier:ga,updateExportSpecifier:gu,createMissingDeclaration:bu,createExternalModuleReference:A_,updateExternalModuleReference:vu,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return y(315)},get updateJSDocNonNullableType(){return g(315)},get createJSDocNullableType(){return y(314)},get updateJSDocNullableType(){return g(314)},get createJSDocOptionalType(){return Q(316)},get updateJSDocOptionalType(){return h(316)},get createJSDocVariadicType(){return Q(318)},get updateJSDocVariadicType(){return h(318)},get createJSDocNamepathType(){return Q(319)},get updateJSDocNamepathType(){return h(319)},createJSDocFunctionType:Qo,updateJSDocFunctionType:Su,createJSDocTypeLiteral:Ko,updateJSDocTypeLiteral:wu,createJSDocTypeExpression:Zo,updateJSDocTypeExpression:D_,createJSDocSignature:ec,updateJSDocSignature:ku,createJSDocTemplateTag:P_,updateJSDocTemplateTag:tc,createJSDocTypedefTag:ba,updateJSDocTypedefTag:Eu,createJSDocParameterTag:N_,updateJSDocParameterTag:Au,createJSDocPropertyTag:nc,updateJSDocPropertyTag:rc,createJSDocCallbackTag:ic,updateJSDocCallbackTag:ac,createJSDocOverloadTag:_c,updateJSDocOverloadTag:I_,createJSDocAugmentsTag:O_,updateJSDocAugmentsTag:Mi,createJSDocImplementsTag:sc,updateJSDocImplementsTag:Iu,createJSDocSeeTag:Br,updateJSDocSeeTag:va,createJSDocImportTag:gc,updateJSDocImportTag:bc,createJSDocNameReference:oc,updateJSDocNameReference:Cu,createJSDocMemberName:cc,updateJSDocMemberName:Du,createJSDocLink:lc,updateJSDocLink:uc,createJSDocLinkCode:pc,updateJSDocLinkCode:Pu,createJSDocLinkPlain:fc,updateJSDocLinkPlain:Nu,get createJSDocTypeTag(){return re(344)},get updateJSDocTypeTag(){return he(344)},get createJSDocReturnTag(){return re(342)},get updateJSDocReturnTag(){return he(342)},get createJSDocThisTag(){return re(343)},get updateJSDocThisTag(){return he(343)},get createJSDocAuthorTag(){return x(330)},get updateJSDocAuthorTag(){return I(330)},get createJSDocClassTag(){return x(332)},get updateJSDocClassTag(){return I(332)},get createJSDocPublicTag(){return x(333)},get updateJSDocPublicTag(){return I(333)},get createJSDocPrivateTag(){return x(334)},get updateJSDocPrivateTag(){return I(334)},get createJSDocProtectedTag(){return x(335)},get updateJSDocProtectedTag(){return I(335)},get createJSDocReadonlyTag(){return x(336)},get updateJSDocReadonlyTag(){return I(336)},get createJSDocOverrideTag(){return x(337)},get updateJSDocOverrideTag(){return I(337)},get createJSDocDeprecatedTag(){return x(331)},get updateJSDocDeprecatedTag(){return I(331)},get createJSDocThrowsTag(){return re(349)},get updateJSDocThrowsTag(){return he(349)},get createJSDocSatisfiesTag(){return re(350)},get updateJSDocSatisfiesTag(){return he(350)},createJSDocEnumTag:yc,updateJSDocEnumTag:M_,createJSDocUnknownTag:hc,updateJSDocUnknownTag:Ju,createJSDocText:J_,updateJSDocText:Lu,createJSDocComment:Ji,updateJSDocComment:vc,createJsxElement:Tc,updateJsxElement:ju,createJsxSelfClosingElement:xc,updateJsxSelfClosingElement:L_,createJsxOpeningElement:j_,updateJsxOpeningElement:Sc,createJsxClosingElement:Ta,updateJsxClosingElement:Kt,createJsxFragment:R_,createJsxText:xa,updateJsxText:kc,createJsxOpeningFragment:Ru,createJsxJsxClosingFragment:Uu,updateJsxFragment:wc,createJsxAttribute:Ec,updateJsxAttribute:Sa,createJsxAttributes:Ac,updateJsxAttributes:Bu,createJsxSpreadAttribute:Cc,updateJsxSpreadAttribute:qu,createJsxExpression:wa,updateJsxExpression:Li,createJsxNamespacedName:Dc,updateJsxNamespacedName:U_,createCaseClause:B_,updateCaseClause:zu,createDefaultClause:_i,updateDefaultClause:Pc,createHeritageClause:Nc,updateHeritageClause:Fu,createCatchClause:q_,updateCatchClause:Ic,createPropertyAssignment:ka,updatePropertyAssignment:qr,createShorthandPropertyAssignment:Oc,updateShorthandPropertyAssignment:Wu,createSpreadAssignment:z_,updateSpreadAssignment:Mc,createEnumMember:wn,updateEnumMember:Jc,createSourceFile:Yu,updateSourceFile:$u,createRedirectedSourceFile:Lc,createBundle:F_,updateBundle:Qu,createSyntheticExpression:Ku,createSyntaxList:Aa,createNotEmittedStatement:Rc,createNotEmittedTypeElement:Zu,createPartiallyEmittedExpression:Uc,updatePartiallyEmittedExpression:Bc,createCommaListExpression:V_,updateCommaListExpression:qc,createSyntheticReferenceExpression:W_,updateSyntheticReferenceExpression:zc,cloneNode:G_,get createComma(){return v(28)},get createAssignment(){return v(64)},get createLogicalOr(){return v(57)},get createLogicalAnd(){return v(56)},get createBitwiseOr(){return v(52)},get createBitwiseXor(){return v(53)},get createBitwiseAnd(){return v(51)},get createStrictEquality(){return v(37)},get createStrictInequality(){return v(38)},get createEquality(){return v(35)},get createInequality(){return v(36)},get createLessThan(){return v(30)},get createLessThanEquals(){return v(33)},get createGreaterThan(){return v(32)},get createGreaterThanEquals(){return v(34)},get createLeftShift(){return v(48)},get createRightShift(){return v(49)},get createUnsignedRightShift(){return v(50)},get createAdd(){return v(40)},get createSubtract(){return v(41)},get createMultiply(){return v(42)},get createDivide(){return v(44)},get createModulo(){return v(45)},get createExponent(){return v(43)},get createPrefixPlus(){return A(40)},get createPrefixMinus(){return A(41)},get createPrefixIncrement(){return A(46)},get createPrefixDecrement(){return A(47)},get createBitwiseNot(){return A(55)},get createLogicalNot(){return A(54)},get createPostfixIncrement(){return P(46)},get createPostfixDecrement(){return P(47)},createImmediatelyInvokedFunctionExpression:rp,createImmediatelyInvokedArrowFunction:ip,createVoidZero:si,createExportDefault:Wc,createExternalModuleExport:ap,createTypeCheck:Y_,createIsNotTypeCheck:_p,createMethodCall:zr,createGlobalMethodCall:ji,createFunctionBindCall:sp,createFunctionCallCall:op,createFunctionApplyCall:cp,createArraySliceCall:Ri,createArrayConcatCall:lp,createObjectDefinePropertyCall:H_,createObjectGetOwnPropertyDescriptorCall:oi,createReflectGetCall:Gc,createReflectSetCall:up,createPropertyDescriptor:Yc,createCallBinding:Xc,createAssignmentTargetWrapper:s,inlineExpressions:p,getInternalName:b,getLocalName:S,getExportName:N,getDeclarationName:X,getNamespaceMemberName:_e,getExternalModuleOrNamespaceExportName:Z,restoreOuterExpressions:Hc,restoreEnclosingLabel:X_,createUseStrictPrologue:Le,copyPrologue:ee,copyStandardPrologue:je,copyCustomPrologue:Ae,ensureUseStrict:Yt,liftToBlock:mn,mergeLexicalEnvironment:ur,replaceModifiers:Ln,replaceDecoratorsAndModifiers:Fr,replacePropertyName:dp};return Un(Db,n=>n(ye)),ye;function de(n,i){if(n===void 0||n===bt)n=[];else if(mi(n)){if(i===void 0||n.hasTrailingComma===i)return n.transformFlags===void 0&&Xd(n),B.attachNodeArrayDebugInfo(n),n;let f=n.slice();return f.pos=n.pos,f.end=n.end,f.hasTrailingComma=i,f.transformFlags=n.transformFlags,B.attachNodeArrayDebugInfo(f),f}let _=n.length,c=_>=1&&_<=4?n.slice():n;return c.pos=-1,c.end=-1,c.hasTrailingComma=!!i,c.transformFlags=0,Xd(c),B.attachNodeArrayDebugInfo(c),c}function M(n){return t.createBaseNode(n)}function ae(n){let i=M(n);return i.symbol=void 0,i.localSymbol=void 0,i}function Oe(n,i){return n!==i&&(n.typeArguments=i.typeArguments),q(n,i)}function V(n,i=0){let _=typeof n=="number"?n+"":n;B.assert(_.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let c=ae(9);return c.text=_,c.numericLiteralFlags=i,i&384&&(c.transformFlags|=1024),c}function oe(n){let i=$t(10);return i.text=typeof n=="string"?n:vb(n)+"n",i.transformFlags|=32,i}function W(n,i){let _=ae(11);return _.text=n,_.singleQuote=i,_}function dt(n,i,_){let c=W(n,i);return c.hasExtendedUnicodeEscape=_,_&&(c.transformFlags|=1024),c}function nr(n){let i=W(L2(n),void 0);return i.textSourceNode=n,i}function gn(n){let i=$t(14);return i.text=n,i}function rr(n,i){switch(n){case 9:return V(i,0);case 10:return oe(i);case 11:return dt(i,void 0);case 12:return xa(i,!1);case 13:return xa(i,!0);case 14:return gn(i);case 15:return ii(n,i,void 0,0)}}function bn(n){let i=t.createBaseIdentifierNode(80);return i.escapedText=n,i.jsDoc=void 0,i.flowNode=void 0,i.symbol=void 0,i}function In(n,i,_,c){let f=bn(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:rl,prefix:_,suffix:c}),rl++,f}function Ge(n,i,_){i===void 0&&n&&(i=Fm(n)),i===80&&(i=void 0);let c=bn(Ja(n));return _&&(c.flags|=256),c.escapedText==="await"&&(c.transformFlags|=67108864),c.flags&256&&(c.transformFlags|=1024),c}function ir(n,i,_,c){let f=1;i&&(f|=8);let w=In("",f,_,c);return n&&n(w),w}function Pr(n){let i=2;return n&&(i|=8),In("",i,void 0,void 0)}function Ot(n,i=0,_,c){return B.assert(!(i&7),"Argument out of range: flags"),B.assert((i&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),In(n,3|i,_,c)}function Bn(n,i=0,_,c){B.assert(!(i&7),"Argument out of range: flags");let f=n?jp(n)?Vp(!1,_,n,c,Pn):`generated@${getNodeId(n)}`:"";(_||c)&&(i|=16);let w=In(f,4|i,_,c);return w.original=n,w}function On(n){let i=t.createBasePrivateIdentifierNode(81);return i.escapedText=n,i.transformFlags|=16777216,i}function Mt(n){return ul(n,"#")||B.fail("First character of private identifier must be #: "+n),On(Ja(n))}function vt(n,i,_,c){let f=On(Ja(n));return setIdentifierAutoGenerate(f,{flags:i,id:rl,prefix:_,suffix:c}),rl++,f}function Qe(n,i,_){n&&!ul(n,"#")&&B.fail("First character of private identifier must be #: "+n);let c=8|(n?3:1);return vt(n??"",c,i,_)}function qn(n,i,_){let c=jp(n)?Vp(!0,i,n,_,Pn):`#generated@${getNodeId(n)}`,w=vt(c,4|(i||_?16:0),i,_);return w.original=n,w}function $t(n){return t.createBaseTokenNode(n)}function ct(n){B.assert(n>=0&&n<=165,"Invalid token"),B.assert(n<=15||n>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(n<=9||n>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(n!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let i=$t(n),_=0;switch(n){case 134:_=384;break;case 160:_=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:_=1;break;case 108:_=134218752,i.flowNode=void 0;break;case 126:_=1024;break;case 129:_=16777216;break;case 110:_=16384,i.flowNode=void 0;break}return _&&(i.transformFlags|=_),i}function _t(){return ct(108)}function Ut(){return ct(110)}function Jt(){return ct(106)}function lt(){return ct(112)}function ar(){return ct(97)}function mt(n){return ct(n)}function vn(n){let i=[];return n&32&&i.push(mt(95)),n&128&&i.push(mt(138)),n&2048&&i.push(mt(90)),n&4096&&i.push(mt(87)),n&1&&i.push(mt(125)),n&2&&i.push(mt(123)),n&4&&i.push(mt(124)),n&64&&i.push(mt(128)),n&256&&i.push(mt(126)),n&16&&i.push(mt(164)),n&8&&i.push(mt(148)),n&512&&i.push(mt(129)),n&1024&&i.push(mt(134)),n&8192&&i.push(mt(103)),n&16384&&i.push(mt(147)),i.length?i:void 0}function yt(n,i){let _=M(166);return _.left=n,_.right=et(i),_.transformFlags|=z(_.left)|ja(_.right),_.flowNode=void 0,_}function cn(n,i,_){return n.left!==i||n.right!==_?q(yt(i,_),n):n}function nt(n){let i=M(167);return i.expression=o().parenthesizeExpressionOfComputedPropertyName(n),i.transformFlags|=z(i.expression)|1024|131072,i}function Bt(n,i){return n.expression!==i?q(nt(i),n):n}function rn(n,i,_,c){let f=ae(168);return f.modifiers=De(n),f.name=et(i),f.constraint=_,f.default=c,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function _r(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.constraint!==c||n.default!==f?q(rn(i,_,c,f),n):n}function fr(n,i,_,c,f,w){let F=ae(169);return F.modifiers=De(n),F.dotDotDotToken=i,F.name=et(_),F.questionToken=c,F.type=f,F.initializer=Ca(w),R2(F.name)?F.transformFlags=1:F.transformFlags=ke(F.modifiers)|z(F.dotDotDotToken)|jn(F.name)|z(F.questionToken)|z(F.initializer)|(F.questionToken??F.type?1:0)|(F.dotDotDotToken??F.initializer?1024:0)|(Rn(F.modifiers)&31?8192:0),F.jsDoc=void 0,F}function dr(n,i,_,c,f,w,F){return n.modifiers!==i||n.dotDotDotToken!==_||n.name!==c||n.questionToken!==f||n.type!==w||n.initializer!==F?q(fr(i,_,c,f,w,F),n):n}function zn(n){let i=M(170);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1|8192|33554432,i}function Fn(n,i){return n.expression!==i?q(zn(i),n):n}function Nr(n,i,_,c){let f=ae(171);return f.modifiers=De(n),f.name=et(i),f.type=c,f.questionToken=_,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Vn(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.type!==f?Ce(Nr(i,_,c,f),n):n}function Ce(n,i){return n!==i&&(n.initializer=i.initializer),q(n,i)}function mr(n,i,_,c,f){let w=ae(172);w.modifiers=De(n),w.name=et(i),w.questionToken=_&&Qd(_)?_:void 0,w.exclamationToken=_&&$d(_)?_:void 0,w.type=c,w.initializer=Ca(f);let F=w.flags&33554432||Rn(w.modifiers)&128;return w.transformFlags=ke(w.modifiers)|jn(w.name)|z(w.initializer)|(F||w.questionToken||w.exclamationToken||w.type?1:0)|(kf(w.name)||Rn(w.modifiers)&256&&w.initializer?8192:0)|16777216,w.jsDoc=void 0,w}function L(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.questionToken!==(c!==void 0&&Qd(c)?c:void 0)||n.exclamationToken!==(c!==void 0&&$d(c)?c:void 0)||n.type!==f||n.initializer!==w?q(mr(i,_,c,f,w),n):n}function se(n,i,_,c,f,w){let F=ae(173);return F.modifiers=De(n),F.name=et(i),F.questionToken=_,F.typeParameters=De(c),F.parameters=De(f),F.type=w,F.transformFlags=1,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function fe(n,i,_,c,f,w,F){return n.modifiers!==i||n.name!==_||n.questionToken!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F?Oe(se(i,_,c,f,w,F),n):n}function Te(n,i,_,c,f,w,F,pe){let Re=ae(174);if(Re.modifiers=De(n),Re.asteriskToken=i,Re.name=et(_),Re.questionToken=c,Re.exclamationToken=void 0,Re.typeParameters=De(f),Re.parameters=de(w),Re.type=F,Re.body=pe,!Re.body)Re.transformFlags=1;else{let en=Rn(Re.modifiers)&1024,kn=!!Re.asteriskToken,$n=en&&kn;Re.transformFlags=ke(Re.modifiers)|z(Re.asteriskToken)|jn(Re.name)|z(Re.questionToken)|ke(Re.typeParameters)|ke(Re.parameters)|z(Re.type)|z(Re.body)&-67108865|($n?128:en?256:kn?2048:0)|(Re.questionToken||Re.typeParameters||Re.type?1:0)|1024}return Re.typeArguments=void 0,Re.jsDoc=void 0,Re.locals=void 0,Re.nextContainer=void 0,Re.flowNode=void 0,Re.endFlowNode=void 0,Re.returnFlowNode=void 0,Re}function Xe(n,i,_,c,f,w,F,pe,Re){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.questionToken!==f||n.typeParameters!==w||n.parameters!==F||n.type!==pe||n.body!==Re?Ke(Te(i,_,c,f,w,F,pe,Re),n):n}function Ke(n,i){return n!==i&&(n.exclamationToken=i.exclamationToken),q(n,i)}function st(n){let i=ae(175);return i.body=n,i.transformFlags=z(n)|16777216,i.modifiers=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Dt(n,i){return n.body!==i?Tt(st(i),n):n}function Tt(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function ut(n,i,_){let c=ae(176);return c.modifiers=De(n),c.parameters=de(i),c.body=_,c.body?c.transformFlags=ke(c.modifiers)|ke(c.parameters)|z(c.body)&-67108865|1024:c.transformFlags=1,c.typeParameters=void 0,c.type=void 0,c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Ir(n,i,_,c){return n.modifiers!==i||n.parameters!==_||n.body!==c?hr(ut(i,_,c),n):n}function hr(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function Mn(n,i,_,c,f){let w=ae(177);return w.modifiers=De(n),w.name=et(i),w.parameters=de(_),w.type=c,w.body=f,w.body?w.transformFlags=ke(w.modifiers)|jn(w.name)|ke(w.parameters)|z(w.type)|z(w.body)&-67108865|(w.type?1:0):w.transformFlags=1,w.typeArguments=void 0,w.typeParameters=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.flowNode=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Wn(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.type!==f||n.body!==w?Si(Mn(i,_,c,f,w),n):n}function Si(n,i){return n!==i&&(n.typeParameters=i.typeParameters),Oe(n,i)}function R(n,i,_,c){let f=ae(178);return f.modifiers=De(n),f.name=et(i),f.parameters=de(_),f.body=c,f.body?f.transformFlags=ke(f.modifiers)|jn(f.name)|ke(f.parameters)|z(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function $(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.parameters!==c||n.body!==f?K(R(i,_,c,f),n):n}function K(n,i){return n!==i&&(n.typeParameters=i.typeParameters,n.type=i.type),Oe(n,i)}function xe(n,i,_){let c=ae(179);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Se(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(xe(i,_,c),n):n}function we(n,i,_){let c=ae(180);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function be(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Oe(we(i,_,c),n):n}function We(n,i,_){let c=ae(181);return c.modifiers=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function Ze(n,i,_,c){return n.parameters!==_||n.type!==c||n.modifiers!==i?Oe(We(i,_,c),n):n}function Ye(n,i){let _=M(204);return _.type=n,_.literal=i,_.transformFlags=1,_}function Ee(n,i,_){return n.type!==i||n.literal!==_?q(Ye(i,_),n):n}function Tn(n){return ct(n)}function rt(n,i,_){let c=M(182);return c.assertsModifier=n,c.parameterName=et(i),c.type=_,c.transformFlags=1,c}function ln(n,i,_,c){return n.assertsModifier!==i||n.parameterName!==_||n.type!==c?q(rt(i,_,c),n):n}function Zr(n,i){let _=M(183);return _.typeName=et(n),_.typeArguments=i&&o().parenthesizeTypeArguments(de(i)),_.transformFlags=1,_}function J(n,i,_){return n.typeName!==i||n.typeArguments!==_?q(Zr(i,_),n):n}function qe(n,i,_){let c=ae(184);return c.typeParameters=De(n),c.parameters=De(i),c.type=_,c.transformFlags=1,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.typeArguments=void 0,c}function u(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?Ie(qe(i,_,c),n):n}function Ie(n,i){return n!==i&&(n.modifiers=i.modifiers),Oe(n,i)}function Me(...n){return n.length===4?U(...n):n.length===3?ze(...n):B.fail("Incorrect number of arguments specified.")}function U(n,i,_,c){let f=ae(185);return f.modifiers=De(n),f.typeParameters=De(i),f.parameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function ze(n,i,_){return U(void 0,n,i,_)}function an(...n){return n.length===5?Ve(...n):n.length===4?$e(...n):B.fail("Incorrect number of arguments specified.")}function Ve(n,i,_,c,f){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f?Oe(Me(i,_,c,f),n):n}function $e(n,i,_,c){return Ve(n,n.modifiers,i,_,c)}function Pt(n,i){let _=M(186);return _.exprName=n,_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags=1,_}function kt(n,i,_){return n.exprName!==i||n.typeArguments!==_?q(Pt(i,_),n):n}function Nt(n){let i=ae(187);return i.members=de(n),i.transformFlags=1,i}function qt(n,i){return n.members!==i?q(Nt(i),n):n}function Gn(n){let i=M(188);return i.elementType=o().parenthesizeNonArrayTypeOfPostfixType(n),i.transformFlags=1,i}function wi(n,i){return n.elementType!==i?q(Gn(i),n):n}function un(n){let i=M(189);return i.elements=de(o().parenthesizeElementTypesOfTupleType(n)),i.transformFlags=1,i}function G(n,i){return n.elements!==i?q(un(i),n):n}function le(n,i,_,c){let f=ae(202);return f.dotDotDotToken=n,f.name=i,f.questionToken=_,f.type=c,f.transformFlags=1,f.jsDoc=void 0,f}function Fe(n,i,_,c,f){return n.dotDotDotToken!==i||n.name!==_||n.questionToken!==c||n.type!==f?q(le(i,_,c,f),n):n}function ve(n){let i=M(190);return i.type=o().parenthesizeTypeOfOptionalType(n),i.transformFlags=1,i}function j(n,i){return n.type!==i?q(ve(i),n):n}function ht(n){let i=M(191);return i.type=n,i.transformFlags=1,i}function xt(n,i){return n.type!==i?q(ht(i),n):n}function Lt(n,i,_){let c=M(n);return c.types=ye.createNodeArray(_(i)),c.transformFlags=1,c}function pn(n,i,_){return n.types!==i?q(Lt(n.kind,i,_),n):n}function Ul(n){return Lt(192,n,o().parenthesizeConstituentTypesOfUnionType)}function Es(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfUnionType)}function Or(n){return Lt(193,n,o().parenthesizeConstituentTypesOfIntersectionType)}function Je(n,i){return pn(n,i,o().parenthesizeConstituentTypesOfIntersectionType)}function ft(n,i,_,c){let f=M(194);return f.checkType=o().parenthesizeCheckTypeOfConditionalType(n),f.extendsType=o().parenthesizeExtendsTypeOfConditionalType(i),f.trueType=_,f.falseType=c,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function Bl(n,i,_,c,f){return n.checkType!==i||n.extendsType!==_||n.trueType!==c||n.falseType!==f?q(ft(i,_,c,f),n):n}function Yn(n){let i=M(195);return i.typeParameter=n,i.transformFlags=1,i}function ql(n,i){return n.typeParameter!==i?q(Yn(i),n):n}function Wt(n,i){let _=M(203);return _.head=n,_.templateSpans=de(i),_.transformFlags=1,_}function zl(n,i,_){return n.head!==i||n.templateSpans!==_?q(Wt(i,_),n):n}function sr(n,i,_,c,f=!1){let w=M(205);return w.argument=n,w.attributes=i,w.assertions&&w.assertions.assertClause&&w.attributes&&(w.assertions.assertClause=w.attributes),w.qualifier=_,w.typeArguments=c&&o().parenthesizeTypeArguments(c),w.isTypeOf=f,w.transformFlags=1,w}function ia(n,i,_,c,f,w=n.isTypeOf){return n.argument!==i||n.attributes!==_||n.qualifier!==c||n.typeArguments!==f||n.isTypeOf!==w?q(sr(i,_,c,f,w),n):n}function Qt(n){let i=M(196);return i.type=n,i.transformFlags=1,i}function Ct(n,i){return n.type!==i?q(Qt(i),n):n}function D(){let n=M(197);return n.transformFlags=1,n}function Gt(n,i){let _=M(198);return _.operator=n,_.type=n===148?o().parenthesizeOperandOfReadonlyTypeOperator(i):o().parenthesizeOperandOfTypeOperator(i),_.transformFlags=1,_}function Mr(n,i){return n.type!==i?q(Gt(n.operator,i),n):n}function or(n,i){let _=M(199);return _.objectType=o().parenthesizeNonArrayTypeOfPostfixType(n),_.indexType=i,_.transformFlags=1,_}function Ka(n,i,_){return n.objectType!==i||n.indexType!==_?q(or(i,_),n):n}function St(n,i,_,c,f,w){let F=ae(200);return F.readonlyToken=n,F.typeParameter=i,F.nameType=_,F.questionToken=c,F.type=f,F.members=w&&de(w),F.transformFlags=1,F.locals=void 0,F.nextContainer=void 0,F}function jt(n,i,_,c,f,w,F){return n.readonlyToken!==i||n.typeParameter!==_||n.nameType!==c||n.questionToken!==f||n.type!==w||n.members!==F?q(St(i,_,c,f,w,F),n):n}function ei(n){let i=M(201);return i.literal=n,i.transformFlags=1,i}function yr(n,i){return n.literal!==i?q(ei(i),n):n}function As(n){let i=M(206);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i.transformFlags&32768&&(i.transformFlags|=65664),i}function Fl(n,i){return n.elements!==i?q(As(i),n):n}function Jr(n){let i=M(207);return i.elements=de(n),i.transformFlags|=ke(i.elements)|1024|524288,i}function Vl(n,i){return n.elements!==i?q(Jr(i),n):n}function aa(n,i,_,c){let f=ae(208);return f.dotDotDotToken=n,f.propertyName=et(i),f.name=et(_),f.initializer=Ca(c),f.transformFlags|=z(f.dotDotDotToken)|jn(f.propertyName)|jn(f.name)|z(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ti(n,i,_,c,f){return n.propertyName!==_||n.dotDotDotToken!==i||n.name!==c||n.initializer!==f?q(aa(i,_,c,f),n):n}function Za(n,i){let _=M(209),c=n&&Gi(n),f=de(n,c&&X1(c)?!0:void 0);return _.elements=o().parenthesizeExpressionsOfCommaDelimitedList(f),_.multiLine=i,_.transformFlags|=ke(_.elements),_}function Cs(n,i){return n.elements!==i?q(Za(i,n.multiLine),n):n}function ki(n,i){let _=ae(210);return _.properties=de(n),_.multiLine=i,_.transformFlags|=ke(_.properties),_.jsDoc=void 0,_}function Wl(n,i){return n.properties!==i?q(ki(i,n.multiLine),n):n}function Ds(n,i,_){let c=ae(211);return c.expression=n,c.questionDotToken=i,c.name=_,c.transformFlags=z(c.expression)|z(c.questionDotToken)|(tt(c.name)?ja(c.name):z(c.name)|536870912),c.jsDoc=void 0,c.flowNode=void 0,c}function cr(n,i){let _=Ds(o().parenthesizeLeftSideOfAccess(n,!1),void 0,et(i));return Ap(n)&&(_.transformFlags|=384),_}function Gl(n,i,_){return Ig(n)?_a(n,i,n.questionDotToken,kr(_,tt)):n.expression!==i||n.name!==_?q(cr(i,_),n):n}function Ei(n,i,_){let c=Ds(o().parenthesizeLeftSideOfAccess(n,!0),i,et(_));return c.flags|=64,c.transformFlags|=32,c}function _a(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==i||n.questionDotToken!==_||n.name!==c?q(Ei(i,_,c),n):n}function Ps(n,i,_){let c=ae(212);return c.expression=n,c.questionDotToken=i,c.argumentExpression=_,c.transformFlags|=z(c.expression)|z(c.questionDotToken)|z(c.argumentExpression),c.jsDoc=void 0,c.flowNode=void 0,c}function Ai(n,i){let _=Ps(o().parenthesizeLeftSideOfAccess(n,!1),void 0,pr(i));return Ap(n)&&(_.transformFlags|=384),_}function Yl(n,i,_){return Og(n)?e_(n,i,n.questionDotToken,_):n.expression!==i||n.argumentExpression!==_?q(Ai(i,_),n):n}function Ns(n,i,_){let c=Ps(o().parenthesizeLeftSideOfAccess(n,!0),i,pr(_));return c.flags|=64,c.transformFlags|=32,c}function e_(n,i,_,c){return B.assert(!!(n.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==i||n.questionDotToken!==_||n.argumentExpression!==c?q(Ns(i,_,c),n):n}function Is(n,i,_,c){let f=ae(213);return f.expression=n,f.questionDotToken=i,f.typeArguments=_,f.arguments=c,f.transformFlags|=z(f.expression)|z(f.questionDotToken)|ke(f.typeArguments)|ke(f.arguments),f.typeArguments&&(f.transformFlags|=1),zd(f.expression)&&(f.transformFlags|=16384),f}function Ci(n,i,_){let c=Is(o().parenthesizeLeftSideOfAccess(n,!1),void 0,De(i),o().parenthesizeExpressionsOfCommaDelimitedList(de(_)));return Ub(c.expression)&&(c.transformFlags|=8388608),c}function sa(n,i,_,c){return Jd(n)?Os(n,i,n.questionDotToken,_,c):n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(Ci(i,_,c),n):n}function t_(n,i,_,c){let f=Is(o().parenthesizeLeftSideOfAccess(n,!0),i,De(_),o().parenthesizeExpressionsOfCommaDelimitedList(de(c)));return f.flags|=64,f.transformFlags|=32,f}function Os(n,i,_,c,f){return B.assert(!!(n.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==i||n.questionDotToken!==_||n.typeArguments!==c||n.arguments!==f?q(t_(i,_,c,f),n):n}function xn(n,i,_){let c=ae(214);return c.expression=o().parenthesizeExpressionOfNew(n),c.typeArguments=De(i),c.arguments=_?o().parenthesizeExpressionsOfCommaDelimitedList(_):void 0,c.transformFlags|=z(c.expression)|ke(c.typeArguments)|ke(c.arguments)|32,c.typeArguments&&(c.transformFlags|=1),c}function n_(n,i,_,c){return n.expression!==i||n.typeArguments!==_||n.arguments!==c?q(xn(i,_,c),n):n}function oa(n,i,_){let c=M(215);return c.tag=o().parenthesizeLeftSideOfAccess(n,!1),c.typeArguments=De(i),c.template=_,c.transformFlags|=z(c.tag)|ke(c.typeArguments)|z(c.template)|1024,c.typeArguments&&(c.transformFlags|=1),j2(c.template)&&(c.transformFlags|=128),c}function Ms(n,i,_,c){return n.tag!==i||n.typeArguments!==_||n.template!==c?q(oa(i,_,c),n):n}function Js(n,i){let _=M(216);return _.expression=o().parenthesizeOperandOfPrefixUnary(i),_.type=n,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function Ls(n,i,_){return n.type!==i||n.expression!==_?q(Js(i,_),n):n}function r_(n){let i=M(217);return i.expression=n,i.transformFlags=z(i.expression),i.jsDoc=void 0,i}function js(n,i){return n.expression!==i?q(r_(i),n):n}function i_(n,i,_,c,f,w,F){let pe=ae(218);pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F;let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;return pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Rs(n,i,_,c,f,w,F,pe){return n.name!==c||n.modifiers!==i||n.asteriskToken!==_||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?Oe(i_(i,_,c,f,w,F,pe),n):n}function a_(n,i,_,c,f,w){let F=ae(219);F.modifiers=De(n),F.typeParameters=De(i),F.parameters=de(_),F.type=c,F.equalsGreaterThanToken=f??ct(39),F.body=o().parenthesizeConciseBodyOfArrowFunction(w);let pe=Rn(F.modifiers)&1024;return F.transformFlags=ke(F.modifiers)|ke(F.typeParameters)|ke(F.parameters)|z(F.type)|z(F.equalsGreaterThanToken)|z(F.body)&-67108865|(F.typeParameters||F.type?1:0)|(pe?16640:0)|1024,F.typeArguments=void 0,F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.flowNode=void 0,F.endFlowNode=void 0,F.returnFlowNode=void 0,F}function Us(n,i,_,c,f,w,F){return n.modifiers!==i||n.typeParameters!==_||n.parameters!==c||n.type!==f||n.equalsGreaterThanToken!==w||n.body!==F?Oe(a_(i,_,c,f,w,F),n):n}function Bs(n){let i=M(220);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function qs(n,i){return n.expression!==i?q(Bs(i),n):n}function ca(n){let i=M(221);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function fn(n,i){return n.expression!==i?q(ca(i),n):n}function __(n){let i=M(222);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression),i}function lr(n,i){return n.expression!==i?q(__(i),n):n}function zs(n){let i=M(223);return i.expression=o().parenthesizeOperandOfPrefixUnary(n),i.transformFlags|=z(i.expression)|256|128|2097152,i}function Lr(n,i){return n.expression!==i?q(zs(i),n):n}function jr(n,i){let _=M(224);return _.operator=n,_.operand=o().parenthesizeOperandOfPrefixUnary(i),_.transformFlags|=z(_.operand),(n===46||n===47)&&tt(_.operand)&&!Ua(_.operand)&&!Zd(_.operand)&&(_.transformFlags|=268435456),_}function Hl(n,i){return n.operand!==i?q(jr(n.operator,i),n):n}function ni(n,i){let _=M(225);return _.operator=i,_.operand=o().parenthesizeOperandOfPostfixUnary(n),_.transformFlags|=z(_.operand),tt(_.operand)&&!Ua(_.operand)&&!Zd(_.operand)&&(_.transformFlags|=268435456),_}function Xl(n,i){return n.operand!==i?q(ni(i,n.operator),n):n}function la(n,i,_){let c=ae(226),f=$c(i),w=f.kind;return c.left=o().parenthesizeLeftSideOfBinary(w,n),c.operatorToken=f,c.right=o().parenthesizeRightSideOfBinary(w,c.left,_),c.transformFlags|=z(c.left)|z(c.operatorToken)|z(c.right),w===61?c.transformFlags|=32:w===64?If(c.left)?c.transformFlags|=5248|Fs(c.left):W1(c.left)&&(c.transformFlags|=5120|Fs(c.left)):w===43||w===68?c.transformFlags|=512:H2(w)&&(c.transformFlags|=16),w===103&&gi(c.left)&&(c.transformFlags|=536870912),c.jsDoc=void 0,c}function Fs(n){return uh(n)?65536:0}function $l(n,i,_,c){return n.left!==i||n.operatorToken!==_||n.right!==c?q(la(i,_,c),n):n}function Vs(n,i,_,c,f){let w=M(227);return w.condition=o().parenthesizeConditionOfConditionalExpression(n),w.questionToken=i??ct(58),w.whenTrue=o().parenthesizeBranchOfConditionalExpression(_),w.colonToken=c??ct(59),w.whenFalse=o().parenthesizeBranchOfConditionalExpression(f),w.transformFlags|=z(w.condition)|z(w.questionToken)|z(w.whenTrue)|z(w.colonToken)|z(w.whenFalse),w}function Ws(n,i,_,c,f,w){return n.condition!==i||n.questionToken!==_||n.whenTrue!==c||n.colonToken!==f||n.whenFalse!==w?q(Vs(i,_,c,f,w),n):n}function Gs(n,i){let _=M(228);return _.head=n,_.templateSpans=de(i),_.transformFlags|=z(_.head)|ke(_.templateSpans)|1024,_}function Hn(n,i,_){return n.head!==i||n.templateSpans!==_?q(Gs(i,_),n):n}function Di(n,i,_,c=0){B.assert(!(c&-7177),"Unsupported template flags.");let f;if(_!==void 0&&_!==i&&(f=Pb(n,_),typeof f=="object"))return B.fail("Invalid raw text");if(i===void 0){if(f===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");i=f}else f!==void 0&&B.assert(i===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return i}function Ys(n){let i=1024;return n&&(i|=128),i}function Ql(n,i,_,c){let f=$t(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ri(n,i,_,c){let f=ae(n);return f.text=i,f.rawText=_,f.templateFlags=c&7176,f.transformFlags=Ys(f.templateFlags),f}function ii(n,i,_,c){return n===15?ri(n,i,_,c):Ql(n,i,_,c)}function Hs(n,i,_){return n=Di(16,n,i,_),ii(16,n,i,_)}function ua(n,i,_){return n=Di(16,n,i,_),ii(17,n,i,_)}function s_(n,i,_){return n=Di(16,n,i,_),ii(18,n,i,_)}function Kl(n,i,_){return n=Di(16,n,i,_),ri(15,n,i,_)}function o_(n,i){B.assert(!n||!!i,"A `YieldExpression` with an asteriskToken must have an expression.");let _=M(229);return _.expression=i&&o().parenthesizeExpressionForDisallowedComma(i),_.asteriskToken=n,_.transformFlags|=z(_.expression)|z(_.asteriskToken)|1024|128|1048576,_}function Zl(n,i,_){return n.expression!==_||n.asteriskToken!==i?q(o_(i,_),n):n}function Xs(n){let i=M(230);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|1024|32768,i}function eu(n,i){return n.expression!==i?q(Xs(i),n):n}function $s(n,i,_,c,f){let w=ae(231);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.jsDoc=void 0,w}function c_(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q($s(i,_,c,f,w),n):n}function l_(){return M(232)}function Qs(n,i){let _=M(233);return _.expression=o().parenthesizeLeftSideOfAccess(n,!1),_.typeArguments=i&&o().parenthesizeTypeArguments(i),_.transformFlags|=z(_.expression)|ke(_.typeArguments)|1024,_}function Ks(n,i,_){return n.expression!==i||n.typeArguments!==_?q(Qs(i,_),n):n}function dn(n,i){let _=M(234);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function pa(n,i,_){return n.expression!==i||n.type!==_?q(dn(i,_),n):n}function Zs(n){let i=M(235);return i.expression=o().parenthesizeLeftSideOfAccess(n,!1),i.transformFlags|=z(i.expression)|1,i}function eo(n,i){return Mg(n)?Jn(n,i):n.expression!==i?q(Zs(i),n):n}function u_(n,i){let _=M(238);return _.expression=n,_.type=i,_.transformFlags|=z(_.expression)|z(_.type)|1,_}function to(n,i,_){return n.expression!==i||n.type!==_?q(u_(i,_),n):n}function p_(n){let i=M(235);return i.flags|=64,i.expression=o().parenthesizeLeftSideOfAccess(n,!0),i.transformFlags|=z(i.expression)|1,i}function Jn(n,i){return B.assert(!!(n.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==i?q(p_(i),n):n}function no(n,i){let _=M(236);switch(_.keywordToken=n,_.name=i,_.transformFlags|=z(_.name),n){case 105:_.transformFlags|=1024;break;case 102:_.transformFlags|=32;break;default:return B.assertNever(n)}return _.flowNode=void 0,_}function f_(n,i){return n.name!==i?q(no(n.keywordToken,i),n):n}function Xn(n,i){let _=M(239);return _.expression=n,_.literal=i,_.transformFlags|=z(_.expression)|z(_.literal)|1024,_}function fa(n,i,_){return n.expression!==i||n.literal!==_?q(Xn(i,_),n):n}function ro(){let n=M(240);return n.transformFlags|=1024,n}function Rr(n,i){let _=M(241);return _.statements=de(n),_.multiLine=i,_.transformFlags|=ke(_.statements),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function tu(n,i){return n.statements!==i?q(Rr(i,n.multiLine),n):n}function d_(n,i){let _=M(243);return _.modifiers=De(n),_.declarationList=Yr(i)?v_(i):i,_.transformFlags|=ke(_.modifiers)|z(_.declarationList),Rn(_.modifiers)&128&&(_.transformFlags=1),_.jsDoc=void 0,_.flowNode=void 0,_}function io(n,i,_){return n.modifiers!==i||n.declarationList!==_?q(d_(i,_),n):n}function ao(){let n=M(242);return n.jsDoc=void 0,n}function Pi(n){let i=M(244);return i.expression=o().parenthesizeExpressionOfExpressionStatement(n),i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function _o(n,i){return n.expression!==i?q(Pi(i),n):n}function so(n,i,_){let c=M(245);return c.expression=n,c.thenStatement=It(i),c.elseStatement=It(_),c.transformFlags|=z(c.expression)|z(c.thenStatement)|z(c.elseStatement),c.jsDoc=void 0,c.flowNode=void 0,c}function oo(n,i,_,c){return n.expression!==i||n.thenStatement!==_||n.elseStatement!==c?q(so(i,_,c),n):n}function co(n,i){let _=M(246);return _.statement=It(n),_.expression=i,_.transformFlags|=z(_.statement)|z(_.expression),_.jsDoc=void 0,_.flowNode=void 0,_}function lo(n,i,_){return n.statement!==i||n.expression!==_?q(co(i,_),n):n}function uo(n,i){let _=M(247);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function nu(n,i,_){return n.expression!==i||n.statement!==_?q(uo(i,_),n):n}function po(n,i,_,c){let f=M(248);return f.initializer=n,f.condition=i,f.incrementor=_,f.statement=It(c),f.transformFlags|=z(f.initializer)|z(f.condition)|z(f.incrementor)|z(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function fo(n,i,_,c,f){return n.initializer!==i||n.condition!==_||n.incrementor!==c||n.statement!==f?q(po(i,_,c,f),n):n}function m_(n,i,_){let c=M(249);return c.initializer=n,c.expression=i,c.statement=It(_),c.transformFlags|=z(c.initializer)|z(c.expression)|z(c.statement),c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c}function ru(n,i,_,c){return n.initializer!==i||n.expression!==_||n.statement!==c?q(m_(i,_,c),n):n}function mo(n,i,_,c){let f=M(250);return f.awaitModifier=n,f.initializer=i,f.expression=o().parenthesizeExpressionForDisallowedComma(_),f.statement=It(c),f.transformFlags|=z(f.awaitModifier)|z(f.initializer)|z(f.expression)|z(f.statement)|1024,n&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function iu(n,i,_,c,f){return n.awaitModifier!==i||n.initializer!==_||n.expression!==c||n.statement!==f?q(mo(i,_,c,f),n):n}function ho(n){let i=M(251);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function au(n,i){return n.label!==i?q(ho(i),n):n}function h_(n){let i=M(252);return i.label=et(n),i.transformFlags|=z(i.label)|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function yo(n,i){return n.label!==i?q(h_(i),n):n}function y_(n){let i=M(253);return i.expression=n,i.transformFlags|=z(i.expression)|128|4194304,i.jsDoc=void 0,i.flowNode=void 0,i}function _u(n,i){return n.expression!==i?q(y_(i),n):n}function g_(n,i){let _=M(254);return _.expression=n,_.statement=It(i),_.transformFlags|=z(_.expression)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function go(n,i,_){return n.expression!==i||n.statement!==_?q(g_(i,_),n):n}function b_(n,i){let _=M(255);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.caseBlock=i,_.transformFlags|=z(_.expression)|z(_.caseBlock),_.jsDoc=void 0,_.flowNode=void 0,_.possiblyExhaustive=!1,_}function ai(n,i,_){return n.expression!==i||n.caseBlock!==_?q(b_(i,_),n):n}function bo(n,i){let _=M(256);return _.label=et(n),_.statement=It(i),_.transformFlags|=z(_.label)|z(_.statement),_.jsDoc=void 0,_.flowNode=void 0,_}function vo(n,i,_){return n.label!==i||n.statement!==_?q(bo(i,_),n):n}function To(n){let i=M(257);return i.expression=n,i.transformFlags|=z(i.expression),i.jsDoc=void 0,i.flowNode=void 0,i}function su(n,i){return n.expression!==i?q(To(i),n):n}function xo(n,i,_){let c=M(258);return c.tryBlock=n,c.catchClause=i,c.finallyBlock=_,c.transformFlags|=z(c.tryBlock)|z(c.catchClause)|z(c.finallyBlock),c.jsDoc=void 0,c.flowNode=void 0,c}function ou(n,i,_,c){return n.tryBlock!==i||n.catchClause!==_||n.finallyBlock!==c?q(xo(i,_,c),n):n}function So(){let n=M(259);return n.jsDoc=void 0,n.flowNode=void 0,n}function da(n,i,_,c){let f=ae(260);return f.name=et(n),f.exclamationToken=i,f.type=_,f.initializer=Ca(c),f.transformFlags|=jn(f.name)|z(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function wo(n,i,_,c,f){return n.name!==i||n.type!==c||n.exclamationToken!==_||n.initializer!==f?q(da(i,_,c,f),n):n}function v_(n,i=0){let _=M(261);return _.flags|=i&7,_.declarations=de(n),_.transformFlags|=ke(_.declarations)|4194304,i&7&&(_.transformFlags|=263168),i&4&&(_.transformFlags|=4),_}function cu(n,i){return n.declarations!==i?q(v_(i,n.flags),n):n}function ko(n,i,_,c,f,w,F){let pe=ae(262);if(pe.modifiers=De(n),pe.asteriskToken=i,pe.name=et(_),pe.typeParameters=De(c),pe.parameters=de(f),pe.type=w,pe.body=F,!pe.body||Rn(pe.modifiers)&128)pe.transformFlags=1;else{let Re=Rn(pe.modifiers)&1024,en=!!pe.asteriskToken,kn=Re&&en;pe.transformFlags=ke(pe.modifiers)|z(pe.asteriskToken)|jn(pe.name)|ke(pe.typeParameters)|ke(pe.parameters)|z(pe.type)|z(pe.body)&-67108865|(kn?128:Re?256:en?2048:0)|(pe.typeParameters||pe.type?1:0)|4194304}return pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function T_(n,i,_,c,f,w,F,pe){return n.modifiers!==i||n.asteriskToken!==_||n.name!==c||n.typeParameters!==f||n.parameters!==w||n.type!==F||n.body!==pe?lu(ko(i,_,c,f,w,F,pe),n):n}function lu(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),Oe(n,i)}function Eo(n,i,_,c,f){let w=ae(263);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),Rn(w.modifiers)&128?w.transformFlags=1:(w.transformFlags|=ke(w.modifiers)|jn(w.name)|ke(w.typeParameters)|ke(w.heritageClauses)|ke(w.members)|(w.typeParameters?1:0)|1024,w.transformFlags&8192&&(w.transformFlags|=1)),w.jsDoc=void 0,w}function ma(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Eo(i,_,c,f,w),n):n}function Ao(n,i,_,c,f){let w=ae(264);return w.modifiers=De(n),w.name=et(i),w.typeParameters=De(_),w.heritageClauses=De(c),w.members=de(f),w.transformFlags=1,w.jsDoc=void 0,w}function Co(n,i,_,c,f,w){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.heritageClauses!==f||n.members!==w?q(Ao(i,_,c,f,w),n):n}function ot(n,i,_,c){let f=ae(265);return f.modifiers=De(n),f.name=et(i),f.typeParameters=De(_),f.type=c,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function gr(n,i,_,c,f){return n.modifiers!==i||n.name!==_||n.typeParameters!==c||n.type!==f?q(ot(i,_,c,f),n):n}function x_(n,i,_){let c=ae(266);return c.modifiers=De(n),c.name=et(i),c.members=de(_),c.transformFlags|=ke(c.modifiers)|z(c.name)|ke(c.members)|1,c.transformFlags&=-67108865,c.jsDoc=void 0,c}function br(n,i,_,c){return n.modifiers!==i||n.name!==_||n.members!==c?q(x_(i,_,c),n):n}function Do(n,i,_,c=0){let f=ae(267);return f.modifiers=De(n),f.flags|=c&2088,f.name=i,f.body=_,Rn(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=ke(f.modifiers)|z(f.name)|z(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(n,i,_,c){return n.modifiers!==i||n.name!==_||n.body!==c?q(Do(i,_,c,n.flags),n):n}function vr(n){let i=M(268);return i.statements=de(n),i.transformFlags|=ke(i.statements),i.jsDoc=void 0,i}function zt(n,i){return n.statements!==i?q(vr(i),n):n}function Po(n){let i=M(269);return i.clauses=de(n),i.transformFlags|=ke(i.clauses),i.locals=void 0,i.nextContainer=void 0,i}function uu(n,i){return n.clauses!==i?q(Po(i),n):n}function No(n){let i=ae(270);return i.name=et(n),i.transformFlags|=ja(i.name)|1,i.modifiers=void 0,i.jsDoc=void 0,i}function Io(n,i){return n.name!==i?pu(No(i),n):n}function pu(n,i){return n!==i&&(n.modifiers=i.modifiers),q(n,i)}function Oo(n,i,_,c){let f=ae(271);return f.modifiers=De(n),f.name=et(_),f.isTypeOnly=i,f.moduleReference=c,f.transformFlags|=ke(f.modifiers)|ja(f.name)|z(f.moduleReference),zf(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Mo(n,i,_,c,f){return n.modifiers!==i||n.isTypeOnly!==_||n.name!==c||n.moduleReference!==f?q(Oo(i,_,c,f),n):n}function Jo(n,i,_,c){let f=M(272);return f.modifiers=De(n),f.importClause=i,f.moduleSpecifier=_,f.attributes=f.assertClause=c,f.transformFlags|=z(f.importClause)|z(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function Lo(n,i,_,c,f){return n.modifiers!==i||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(Jo(i,_,c,f),n):n}function jo(n,i,_){let c=ae(273);return c.isTypeOnly=n,c.name=i,c.namedBindings=_,c.transformFlags|=z(c.name)|z(c.namedBindings),n&&(c.transformFlags|=1),c.transformFlags&=-67108865,c}function Ro(n,i,_,c){return n.isTypeOnly!==i||n.name!==_||n.namedBindings!==c?q(jo(i,_,c),n):n}function S_(n,i){let _=M(300);return _.elements=de(n),_.multiLine=i,_.token=132,_.transformFlags|=4,_}function fu(n,i,_){return n.elements!==i||n.multiLine!==_?q(S_(i,_),n):n}function Ni(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Uo(n,i,_){return n.name!==i||n.value!==_?q(Ni(i,_),n):n}function w_(n,i){let _=M(302);return _.assertClause=n,_.multiLine=i,_}function Bo(n,i,_){return n.assertClause!==i||n.multiLine!==_?q(w_(i,_),n):n}function qo(n,i,_){let c=M(300);return c.token=_??118,c.elements=de(n),c.multiLine=i,c.transformFlags|=4,c}function k_(n,i,_){return n.elements!==i||n.multiLine!==_?q(qo(i,_,n.token),n):n}function zo(n,i){let _=M(301);return _.name=n,_.value=i,_.transformFlags|=4,_}function Fo(n,i,_){return n.name!==i||n.value!==_?q(zo(i,_),n):n}function Vo(n){let i=ae(274);return i.name=n,i.transformFlags|=z(i.name),i.transformFlags&=-67108865,i}function du(n,i){return n.name!==i?q(Vo(i),n):n}function Wo(n){let i=ae(280);return i.name=n,i.transformFlags|=z(i.name)|32,i.transformFlags&=-67108865,i}function mu(n,i){return n.name!==i?q(Wo(i),n):n}function Go(n){let i=M(275);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function Yo(n,i){return n.elements!==i?q(Go(i),n):n}function Tr(n,i,_){let c=ae(276);return c.isTypeOnly=n,c.propertyName=i,c.name=_,c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c}function hu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(Tr(i,_,c),n):n}function ha(n,i,_){let c=ae(277);return c.modifiers=De(n),c.isExportEquals=i,c.expression=i?o().parenthesizeRightSideOfBinary(64,void 0,_):o().parenthesizeExpressionOfExportDefault(_),c.transformFlags|=ke(c.modifiers)|z(c.expression),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function Ii(n,i,_){return n.modifiers!==i||n.expression!==_?q(ha(i,n.isExportEquals,_),n):n}function ya(n,i,_,c,f){let w=ae(278);return w.modifiers=De(n),w.isTypeOnly=i,w.exportClause=_,w.moduleSpecifier=c,w.attributes=w.assertClause=f,w.transformFlags|=ke(w.modifiers)|z(w.exportClause)|z(w.moduleSpecifier),w.transformFlags&=-67108865,w.jsDoc=void 0,w}function Ho(n,i,_,c,f,w){return n.modifiers!==i||n.isTypeOnly!==_||n.exportClause!==c||n.moduleSpecifier!==f||n.attributes!==w?Oi(ya(i,_,c,f,w),n):n}function Oi(n,i){return n!==i&&n.modifiers===i.modifiers&&(n.modifiers=i.modifiers),q(n,i)}function E_(n){let i=M(279);return i.elements=de(n),i.transformFlags|=ke(i.elements),i.transformFlags&=-67108865,i}function yu(n,i){return n.elements!==i?q(E_(i),n):n}function ga(n,i,_){let c=M(281);return c.isTypeOnly=n,c.propertyName=et(i),c.name=et(_),c.transformFlags|=z(c.propertyName)|z(c.name),c.transformFlags&=-67108865,c.jsDoc=void 0,c}function gu(n,i,_,c){return n.isTypeOnly!==i||n.propertyName!==_||n.name!==c?q(ga(i,_,c),n):n}function bu(){let n=ae(282);return n.jsDoc=void 0,n}function A_(n){let i=M(283);return i.expression=n,i.transformFlags|=z(i.expression),i.transformFlags&=-67108865,i}function vu(n,i){return n.expression!==i?q(A_(i),n):n}function Xo(n){return M(n)}function $o(n,i,_=!1){let c=C_(n,_?i&&o().parenthesizeNonArrayTypeOfPostfixType(i):i);return c.postfix=_,c}function C_(n,i){let _=M(n);return _.type=i,_}function Tu(n,i,_){return i.type!==_?q($o(n,_,i.postfix),i):i}function xu(n,i,_){return i.type!==_?q(C_(n,_),i):i}function Qo(n,i){let _=ae(317);return _.parameters=De(n),_.type=i,_.transformFlags=ke(_.parameters)|(_.type?1:0),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function Su(n,i,_){return n.parameters!==i||n.type!==_?q(Qo(i,_),n):n}function Ko(n,i=!1){let _=ae(322);return _.jsDocPropertyTags=De(n),_.isArrayType=i,_}function wu(n,i,_){return n.jsDocPropertyTags!==i||n.isArrayType!==_?q(Ko(i,_),n):n}function Zo(n){let i=M(309);return i.type=n,i}function D_(n,i){return n.type!==i?q(Zo(i),n):n}function ec(n,i,_){let c=ae(323);return c.typeParameters=De(n),c.parameters=de(i),c.type=_,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c}function ku(n,i,_,c){return n.typeParameters!==i||n.parameters!==_||n.type!==c?q(ec(i,_,c),n):n}function _n(n){let i=il(n.kind);return n.tagName.escapedText===Ja(i)?n.tagName:Ge(i)}function Sn(n,i,_){let c=M(n);return c.tagName=i,c.comment=_,c}function Ur(n,i,_){let c=ae(n);return c.tagName=i,c.comment=_,c}function P_(n,i,_,c){let f=Sn(345,n??Ge("template"),c);return f.constraint=i,f.typeParameters=de(_),f}function tc(n,i=_n(n),_,c,f){return n.tagName!==i||n.constraint!==_||n.typeParameters!==c||n.comment!==f?q(P_(i,_,c,f),n):n}function ba(n,i,_,c){let f=Ur(346,n??Ge("typedef"),c);return f.typeExpression=i,f.fullName=_,f.name=em(_),f.locals=void 0,f.nextContainer=void 0,f}function Eu(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(ba(i,_,c,f),n):n}function N_(n,i,_,c,f,w){let F=Ur(341,n??Ge("param"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function Au(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(N_(i,_,c,f,w,F),n):n}function nc(n,i,_,c,f,w){let F=Ur(348,n??Ge("prop"),w);return F.typeExpression=c,F.name=i,F.isNameFirst=!!f,F.isBracketed=_,F}function rc(n,i=_n(n),_,c,f,w,F){return n.tagName!==i||n.name!==_||n.isBracketed!==c||n.typeExpression!==f||n.isNameFirst!==w||n.comment!==F?q(nc(i,_,c,f,w,F),n):n}function ic(n,i,_,c){let f=Ur(338,n??Ge("callback"),c);return f.typeExpression=i,f.fullName=_,f.name=em(_),f.locals=void 0,f.nextContainer=void 0,f}function ac(n,i=_n(n),_,c,f){return n.tagName!==i||n.typeExpression!==_||n.fullName!==c||n.comment!==f?q(ic(i,_,c,f),n):n}function _c(n,i,_){let c=Sn(339,n??Ge("overload"),_);return c.typeExpression=i,c}function I_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(_c(i,_,c),n):n}function O_(n,i,_){let c=Sn(328,n??Ge("augments"),_);return c.class=i,c}function Mi(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(O_(i,_,c),n):n}function sc(n,i,_){let c=Sn(329,n??Ge("implements"),_);return c.class=i,c}function Br(n,i,_){let c=Sn(347,n??Ge("see"),_);return c.name=i,c}function va(n,i,_,c){return n.tagName!==i||n.name!==_||n.comment!==c?q(Br(i,_,c),n):n}function oc(n){let i=M(310);return i.name=n,i}function Cu(n,i){return n.name!==i?q(oc(i),n):n}function cc(n,i){let _=M(311);return _.left=n,_.right=i,_.transformFlags|=z(_.left)|z(_.right),_}function Du(n,i,_){return n.left!==i||n.right!==_?q(cc(i,_),n):n}function lc(n,i){let _=M(324);return _.name=n,_.text=i,_}function uc(n,i,_){return n.name!==i?q(lc(i,_),n):n}function pc(n,i){let _=M(325);return _.name=n,_.text=i,_}function Pu(n,i,_){return n.name!==i?q(pc(i,_),n):n}function fc(n,i){let _=M(326);return _.name=n,_.text=i,_}function Nu(n,i,_){return n.name!==i?q(fc(i,_),n):n}function Iu(n,i=_n(n),_,c){return n.tagName!==i||n.class!==_||n.comment!==c?q(sc(i,_,c),n):n}function dc(n,i,_){return Sn(n,i??Ge(il(n)),_)}function Ou(n,i,_=_n(i),c){return i.tagName!==_||i.comment!==c?q(dc(n,_,c),i):i}function mc(n,i,_,c){let f=Sn(n,i??Ge(il(n)),c);return f.typeExpression=_,f}function Mu(n,i,_=_n(i),c,f){return i.tagName!==_||i.typeExpression!==c||i.comment!==f?q(mc(n,_,c,f),i):i}function hc(n,i){return Sn(327,n,i)}function Ju(n,i,_){return n.tagName!==i||n.comment!==_?q(hc(i,_),n):n}function yc(n,i,_){let c=Ur(340,n??Ge(il(340)),_);return c.typeExpression=i,c.locals=void 0,c.nextContainer=void 0,c}function M_(n,i=_n(n),_,c){return n.tagName!==i||n.typeExpression!==_||n.comment!==c?q(yc(i,_,c),n):n}function gc(n,i,_,c,f){let w=Sn(351,n??Ge("import"),f);return w.importClause=i,w.moduleSpecifier=_,w.attributes=c,w.comment=f,w}function bc(n,i,_,c,f,w){return n.tagName!==i||n.comment!==w||n.importClause!==_||n.moduleSpecifier!==c||n.attributes!==f?q(gc(i,_,c,f,w),n):n}function J_(n){let i=M(321);return i.text=n,i}function Lu(n,i){return n.text!==i?q(J_(i),n):n}function Ji(n,i){let _=M(320);return _.comment=n,_.tags=De(i),_}function vc(n,i,_){return n.comment!==i||n.tags!==_?q(Ji(i,_),n):n}function Tc(n,i,_){let c=M(284);return c.openingElement=n,c.children=de(i),c.closingElement=_,c.transformFlags|=z(c.openingElement)|ke(c.children)|z(c.closingElement)|2,c}function ju(n,i,_,c){return n.openingElement!==i||n.children!==_||n.closingElement!==c?q(Tc(i,_,c),n):n}function xc(n,i,_){let c=M(285);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,c.typeArguments&&(c.transformFlags|=1),c}function L_(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(xc(i,_,c),n):n}function j_(n,i,_){let c=M(286);return c.tagName=n,c.typeArguments=De(i),c.attributes=_,c.transformFlags|=z(c.tagName)|ke(c.typeArguments)|z(c.attributes)|2,i&&(c.transformFlags|=1),c}function Sc(n,i,_,c){return n.tagName!==i||n.typeArguments!==_||n.attributes!==c?q(j_(i,_,c),n):n}function Ta(n){let i=M(287);return i.tagName=n,i.transformFlags|=z(i.tagName)|2,i}function Kt(n,i){return n.tagName!==i?q(Ta(i),n):n}function R_(n,i,_){let c=M(288);return c.openingFragment=n,c.children=de(i),c.closingFragment=_,c.transformFlags|=z(c.openingFragment)|ke(c.children)|z(c.closingFragment)|2,c}function wc(n,i,_,c){return n.openingFragment!==i||n.children!==_||n.closingFragment!==c?q(R_(i,_,c),n):n}function xa(n,i){let _=M(12);return _.text=n,_.containsOnlyTriviaWhiteSpaces=!!i,_.transformFlags|=2,_}function kc(n,i,_){return n.text!==i||n.containsOnlyTriviaWhiteSpaces!==_?q(xa(i,_),n):n}function Ru(){let n=M(289);return n.transformFlags|=2,n}function Uu(){let n=M(290);return n.transformFlags|=2,n}function Ec(n,i){let _=ae(291);return _.name=n,_.initializer=i,_.transformFlags|=z(_.name)|z(_.initializer)|2,_}function Sa(n,i,_){return n.name!==i||n.initializer!==_?q(Ec(i,_),n):n}function Ac(n){let i=ae(292);return i.properties=de(n),i.transformFlags|=ke(i.properties)|2,i}function Bu(n,i){return n.properties!==i?q(Ac(i),n):n}function Cc(n){let i=M(293);return i.expression=n,i.transformFlags|=z(i.expression)|2,i}function qu(n,i){return n.expression!==i?q(Cc(i),n):n}function wa(n,i){let _=M(294);return _.dotDotDotToken=n,_.expression=i,_.transformFlags|=z(_.dotDotDotToken)|z(_.expression)|2,_}function Li(n,i){return n.expression!==i?q(wa(n.dotDotDotToken,i),n):n}function Dc(n,i){let _=M(295);return _.namespace=n,_.name=i,_.transformFlags|=z(_.namespace)|z(_.name)|2,_}function U_(n,i,_){return n.namespace!==i||n.name!==_?q(Dc(i,_),n):n}function B_(n,i){let _=M(296);return _.expression=o().parenthesizeExpressionForDisallowedComma(n),_.statements=de(i),_.transformFlags|=z(_.expression)|ke(_.statements),_.jsDoc=void 0,_}function zu(n,i,_){return n.expression!==i||n.statements!==_?q(B_(i,_),n):n}function _i(n){let i=M(297);return i.statements=de(n),i.transformFlags=ke(i.statements),i}function Pc(n,i){return n.statements!==i?q(_i(i),n):n}function Nc(n,i){let _=M(298);switch(_.token=n,_.types=de(i),_.transformFlags|=ke(_.types),n){case 96:_.transformFlags|=1024;break;case 119:_.transformFlags|=1;break;default:return B.assertNever(n)}return _}function Fu(n,i){return n.types!==i?q(Nc(n.token,i),n):n}function q_(n,i){let _=M(299);return _.variableDeclaration=xr(n),_.block=i,_.transformFlags|=z(_.variableDeclaration)|z(_.block)|(n?0:64),_.locals=void 0,_.nextContainer=void 0,_}function Ic(n,i,_){return n.variableDeclaration!==i||n.block!==_?q(q_(i,_),n):n}function ka(n,i){let _=ae(303);return _.name=et(n),_.initializer=o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=jn(_.name)|z(_.initializer),_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function qr(n,i,_){return n.name!==i||n.initializer!==_?Vu(ka(i,_),n):n}function Vu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken),q(n,i)}function Oc(n,i){let _=ae(304);return _.name=et(n),_.objectAssignmentInitializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=ja(_.name)|z(_.objectAssignmentInitializer)|1024,_.equalsToken=void 0,_.modifiers=void 0,_.questionToken=void 0,_.exclamationToken=void 0,_.jsDoc=void 0,_}function Wu(n,i,_){return n.name!==i||n.objectAssignmentInitializer!==_?Gu(Oc(i,_),n):n}function Gu(n,i){return n!==i&&(n.modifiers=i.modifiers,n.questionToken=i.questionToken,n.exclamationToken=i.exclamationToken,n.equalsToken=i.equalsToken),q(n,i)}function z_(n){let i=ae(305);return i.expression=o().parenthesizeExpressionForDisallowedComma(n),i.transformFlags|=z(i.expression)|128|65536,i.jsDoc=void 0,i}function Mc(n,i){return n.expression!==i?q(z_(i),n):n}function wn(n,i){let _=ae(306);return _.name=et(n),_.initializer=i&&o().parenthesizeExpressionForDisallowedComma(i),_.transformFlags|=z(_.name)|z(_.initializer)|1,_.jsDoc=void 0,_}function Jc(n,i,_){return n.name!==i||n.initializer!==_?q(wn(i,_),n):n}function Yu(n,i,_){let c=t.createBaseSourceFileNode(307);return c.statements=de(n),c.endOfFileToken=i,c.flags|=_,c.text="",c.fileName="",c.path="",c.resolvedPath="",c.originalFileName="",c.languageVersion=1,c.languageVariant=0,c.scriptKind=0,c.isDeclarationFile=!1,c.hasNoDefaultLib=!1,c.transformFlags|=ke(c.statements)|z(c.endOfFileToken),c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.nodeCount=0,c.identifierCount=0,c.symbolCount=0,c.parseDiagnostics=void 0,c.bindDiagnostics=void 0,c.bindSuggestionDiagnostics=void 0,c.lineMap=void 0,c.externalModuleIndicator=void 0,c.setExternalModuleIndicator=void 0,c.pragmas=void 0,c.checkJsDirective=void 0,c.referencedFiles=void 0,c.typeReferenceDirectives=void 0,c.libReferenceDirectives=void 0,c.amdDependencies=void 0,c.commentDirectives=void 0,c.identifiers=void 0,c.packageJsonLocations=void 0,c.packageJsonScope=void 0,c.imports=void 0,c.moduleAugmentations=void 0,c.ambientModuleNames=void 0,c.classifiableNames=void 0,c.impliedNodeFormat=void 0,c}function Lc(n){let i=Object.create(n.redirectTarget);return Object.defineProperties(i,{id:{get(){return this.redirectInfo.redirectTarget.id},set(_){this.redirectInfo.redirectTarget.id=_}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(_){this.redirectInfo.redirectTarget.symbol=_}}}),i.redirectInfo=n,i}function Hu(n){let i=Lc(n.redirectInfo);return i.flags|=n.flags&-17,i.fileName=n.fileName,i.path=n.path,i.resolvedPath=n.resolvedPath,i.originalFileName=n.originalFileName,i.packageJsonLocations=n.packageJsonLocations,i.packageJsonScope=n.packageJsonScope,i.emitNode=void 0,i}function jc(n){let i=t.createBaseSourceFileNode(307);i.flags|=n.flags&-17;for(let _ in n)if(!(Cr(i,_)||!Cr(n,_))){if(_==="emitNode"){i.emitNode=void 0;continue}i[_]=n[_]}return i}function Ea(n){let i=n.redirectInfo?Hu(n):jc(n);return a(i,n),i}function Xu(n,i,_,c,f,w,F){let pe=Ea(n);return pe.statements=de(i),pe.isDeclarationFile=_,pe.referencedFiles=c,pe.typeReferenceDirectives=f,pe.hasNoDefaultLib=w,pe.libReferenceDirectives=F,pe.transformFlags=ke(pe.statements)|z(pe.endOfFileToken),pe}function $u(n,i,_=n.isDeclarationFile,c=n.referencedFiles,f=n.typeReferenceDirectives,w=n.hasNoDefaultLib,F=n.libReferenceDirectives){return n.statements!==i||n.isDeclarationFile!==_||n.referencedFiles!==c||n.typeReferenceDirectives!==f||n.hasNoDefaultLib!==w||n.libReferenceDirectives!==F?q(Xu(n,i,_,c,f,w,F),n):n}function F_(n){let i=M(308);return i.sourceFiles=n,i.syntheticFileReferences=void 0,i.syntheticTypeReferences=void 0,i.syntheticLibReferences=void 0,i.hasNoDefaultLib=void 0,i}function Qu(n,i){return n.sourceFiles!==i?q(F_(i),n):n}function Ku(n,i=!1,_){let c=M(237);return c.type=n,c.isSpread=i,c.tupleNameSource=_,c}function Aa(n){let i=M(352);return i._children=n,i}function Rc(n){let i=M(353);return i.original=n,yn(i,n),i}function Uc(n,i){let _=M(355);return _.expression=n,_.original=i,_.transformFlags|=z(_.expression)|1,yn(_,i),_}function Bc(n,i){return n.expression!==i?q(Uc(i,n.original),n):n}function Zu(){return M(354)}function ep(n){if(La(n)&&!ml(n)&&!n.original&&!n.emitNode&&!n.id){if(Zb(n))return n.elements;if(Ki(n)&&jb(n.operatorToken))return[n.left,n.right]}return n}function V_(n){let i=M(356);return i.elements=de(iy(n,ep)),i.transformFlags|=ke(i.elements),i}function qc(n,i){return n.elements!==i?q(V_(i),n):n}function W_(n,i){let _=M(357);return _.expression=n,_.thisArg=i,_.transformFlags|=z(_.expression)|z(_.thisArg),_}function zc(n,i,_){return n.expression!==i||n.thisArg!==_?q(W_(i,_),n):n}function tp(n){let i=bn(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function np(n){let i=bn(n.escapedText);i.flags|=n.flags&-17,i.jsDoc=n.jsDoc,i.flowNode=n.flowNode,i.symbol=n.symbol,i.transformFlags=n.transformFlags,a(i,n);let _=getIdentifierTypeArguments(n);return _&&setIdentifierTypeArguments(i,_),i}function Fc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),setIdentifierAutoGenerate(i,{...n.emitNode.autoGenerate}),i}function Vc(n){let i=On(n.escapedText);return i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n),i}function G_(n){if(n===void 0)return n;if(rh(n))return Ea(n);if(Ua(n))return tp(n);if(tt(n))return np(n);if(_1(n))return Fc(n);if(gi(n))return Vc(n);let i=ff(n.kind)?t.createBaseNode(n.kind):t.createBaseTokenNode(n.kind);i.flags|=n.flags&-17,i.transformFlags=n.transformFlags,a(i,n);for(let _ in n)Cr(i,_)||!Cr(n,_)||(i[_]=n[_]);return i}function rp(n,i,_){return Ci(i_(void 0,void 0,void 0,void 0,i?[i]:[],void 0,Rr(n,!0)),void 0,_?[_]:[])}function ip(n,i,_){return Ci(a_(void 0,void 0,i?[i]:[],void 0,void 0,Rr(n,!0)),void 0,_?[_]:[])}function si(){return __(V("0"))}function Wc(n){return ha(void 0,!1,n)}function ap(n){return ya(void 0,!1,E_([ga(!1,void 0,n)]))}function Y_(n,i){return i==="null"?ye.createStrictEquality(n,Jt()):i==="undefined"?ye.createStrictEquality(n,si()):ye.createStrictEquality(ca(n),dt(i))}function _p(n,i){return i==="null"?ye.createStrictInequality(n,Jt()):i==="undefined"?ye.createStrictInequality(n,si()):ye.createStrictInequality(ca(n),dt(i))}function zr(n,i,_){return Jd(n)?t_(Ei(n,void 0,i),void 0,void 0,_):Ci(cr(n,i),void 0,_)}function sp(n,i,_){return zr(n,"bind",[i,..._])}function op(n,i,_){return zr(n,"call",[i,..._])}function cp(n,i,_){return zr(n,"apply",[i,_])}function ji(n,i,_){return zr(Ge(n),i,_)}function Ri(n,i){return zr(n,"slice",i===void 0?[]:[pr(i)])}function lp(n,i){return zr(n,"concat",i)}function H_(n,i,_){return ji("Object","defineProperty",[n,pr(i),_])}function oi(n,i){return ji("Object","getOwnPropertyDescriptor",[n,pr(i)])}function Gc(n,i,_){return ji("Reflect","get",_?[n,i,_]:[n,i])}function up(n,i,_,c){return ji("Reflect","set",c?[n,i,_,c]:[n,i,_])}function ci(n,i,_){return _?(n.push(ka(i,_)),!0):!1}function Yc(n,i){let _=[];ci(_,"enumerable",pr(n.enumerable)),ci(_,"configurable",pr(n.configurable));let c=ci(_,"writable",pr(n.writable));c=ci(_,"value",n.value)||c;let f=ci(_,"get",n.get);return f=ci(_,"set",n.set)||f,B.assert(!(c&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ki(_,!i)}function pp(n,i){switch(n.kind){case 217:return js(n,i);case 216:return Ls(n,n.type,i);case 234:return pa(n,i,n.type);case 238:return to(n,i,n.type);case 235:return eo(n,i);case 233:return Ks(n,i,n.typeArguments);case 355:return Bc(n,i)}}function fp(n){return Al(n)&&La(n)&&La(getSourceMapRange(n))&&La(getCommentRange(n))&&!Ht(getSyntheticLeadingComments(n))&&!Ht(getSyntheticTrailingComments(n))}function Hc(n,i,_=31){return n&&lh(n,_)&&!fp(n)?pp(n,Hc(n.expression,i)):i}function X_(n,i,_){if(!i)return n;let c=vo(i,i.label,Q1(i.statement)?X_(n,i.statement):n);return _&&_(i),c}function $_(n,i){let _=vf(n);switch(_.kind){case 80:return i;case 110:case 9:case 10:case 11:return!1;case 209:return _.elements.length!==0;case 210:return _.properties.length>0;default:return!0}}function Xc(n,i,_,c=!1){let f=Vf(n,31),w,F;return zd(f)?(w=Ut(),F=f):Ap(f)?(w=Ut(),F=_!==void 0&&_<2?yn(Ge("_super"),f):f):za(f)&8192?(w=si(),F=o().parenthesizeLeftSideOfAccess(f,!1)):Hr(f)?$_(f.expression,c)?(w=ir(i),F=cr(yn(ye.createAssignment(w,f.expression),f.expression),f.name),yn(F,f)):(w=f.expression,F=f):Ha(f)?$_(f.expression,c)?(w=ir(i),F=Ai(yn(ye.createAssignment(w,f.expression),f.expression),f.argumentExpression),yn(F,f)):(w=f.expression,F=f):(w=si(),F=o().parenthesizeLeftSideOfAccess(n,!1)),{target:F,thisArg:w}}function s(n,i){return cr(r_(ki([R(void 0,"value",[fr(void 0,void 0,n,void 0,void 0,void 0)],Rr([Pi(i)]))])),"value")}function p(n){return n.length>10?V_(n):dy(n,ye.createComma)}function d(n,i,_,c=0,f){let w=f?n&&lf(n):e1(n);if(w&&tt(w)&&!Ua(w)){let F=Sf(yn(G_(w),w),w.parent);return c|=za(w),_||(c|=96),i||(c|=3072),c&&setEmitFlags(F,c),F}return Bn(n)}function b(n,i,_){return d(n,i,_,98304)}function S(n,i,_,c){return d(n,i,_,32768,c)}function N(n,i,_){return d(n,i,_,16384)}function X(n,i,_){return d(n,i,_)}function _e(n,i,_,c){let f=cr(n,La(i)?i:G_(i));yn(f,i);let w=0;return c||(w|=96),_||(w|=3072),w&&setEmitFlags(f,w),f}function Z(n,i,_,c){return n&&bs(i,32)?_e(n,d(i),_,c):N(i,_,c)}function ee(n,i,_,c){let f=je(n,i,0,_);return Ae(n,i,f,c)}function ce(n){return Ya(n.expression)&&n.expression.text==="use strict"}function Le(){return v6(Pi(dt("use strict")))}function je(n,i,_=0,c){B.assert(i.length===0,"Prologue directives should be at the first statement in the target statements array");let f=!1,w=n.length;for(;_pe&&en.splice(f,0,...i.slice(pe,Re)),pe>F&&en.splice(c,0,...i.slice(F,pe)),F>w&&en.splice(_,0,...i.slice(w,F)),w>0)if(_===0)en.splice(0,0,...i.slice(0,w));else{let kn=new Map;for(let $n=0;$n<_;$n++){let Da=n[$n];kn.set(Da.expression.text,!0)}for(let $n=w-1;$n>=0;$n--){let Da=i[$n];kn.has(Da.expression.text)||en.unshift(Da)}}return mi(n)?yn(de(en,n.hasTrailingComma),n):n}function Ln(n,i){let _;return typeof i=="number"?_=vn(i):_=i,Ef(n)?_r(n,_,n.name,n.constraint,n.default):ds(n)?dr(n,_,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Nf(n)?Ve(n,_,n.typeParameters,n.parameters,n.type):I1(n)?Vn(n,_,n.name,n.questionToken,n.type):Va(n)?L(n,_,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):O1(n)?fe(n,_,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):ms(n)?Xe(n,_,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):Af(n)?Ir(n,_,n.parameters,n.body):gl(n)?Wn(n,_,n.name,n.parameters,n.type,n.body):hs(n)?$(n,_,n.name,n.parameters,n.body):Cf(n)?Ze(n,_,n.parameters,n.type):Mf(n)?Rs(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Jf(n)?Us(n,_,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):bl(n)?c_(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Xa(n)?io(n,_,n.declarationList):jf(n)?T_(n,_,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):Wa(n)?ma(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):vs(n)?Co(n,_,n.name,n.typeParameters,n.heritageClauses,n.members):Dl(n)?gr(n,_,n.name,n.typeParameters,n.type):Z1(n)?br(n,_,n.name,n.members):Ti(n)?Et(n,_,n.name,n.body):Rf(n)?Mo(n,_,n.isTypeOnly,n.name,n.moduleReference):Uf(n)?Lo(n,_,n.importClause,n.moduleSpecifier,n.attributes):Bf(n)?Ii(n,_,n.expression):qf(n)?Ho(n,_,n.isTypeOnly,n.exportClause,n.moduleSpecifier,n.attributes):B.assertNever(n)}function Fr(n,i){return ds(n)?dr(n,i,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):Va(n)?L(n,i,n.name,n.questionToken??n.exclamationToken,n.type,n.initializer):ms(n)?Xe(n,i,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):gl(n)?Wn(n,i,n.name,n.parameters,n.type,n.body):hs(n)?$(n,i,n.name,n.parameters,n.body):bl(n)?c_(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):Wa(n)?ma(n,i,n.name,n.typeParameters,n.heritageClauses,n.members):B.assertNever(n)}function dp(n,i){switch(n.kind){case 177:return Wn(n,n.modifiers,i,n.parameters,n.type,n.body);case 178:return $(n,n.modifiers,i,n.parameters,n.body);case 174:return Xe(n,n.modifiers,n.asteriskToken,i,n.questionToken,n.typeParameters,n.parameters,n.type,n.body);case 173:return fe(n,n.modifiers,i,n.questionToken,n.typeParameters,n.parameters,n.type);case 172:return L(n,n.modifiers,i,n.questionToken??n.exclamationToken,n.type,n.initializer);case 171:return Vn(n,n.modifiers,i,n.questionToken,n.type);case 303:return qr(n,i,n.initializer)}}function De(n){return n?de(n):void 0}function et(n){return typeof n=="string"?Ge(n):n}function pr(n){return typeof n=="string"?dt(n):typeof n=="number"?V(n):typeof n=="boolean"?n?lt():ar():n}function Ca(n){return n&&o().parenthesizeExpressionForDisallowedComma(n)}function $c(n){return typeof n=="number"?ct(n):n}function It(n){return n&&e6(n)?yn(a(ao(),n),n):n}function xr(n){return typeof n=="string"||n&&!Lf(n)?da(n,void 0,void 0,void 0):n}function q(n,i){return n!==i&&(a(n,i),yn(n,i)),n}}function il(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var En,Hd={};function Pb(e,t){switch(En||(En=sf(99,!1,0)),e){case 15:En.setText("`"+t+"`");break;case 16:En.setText("`"+t+"${");break;case 17:En.setText("}"+t+"${");break;case 18:En.setText("}"+t+"`");break}let a=En.scan();if(a===20&&(a=En.reScanTemplateToken(!1)),En.isUnterminated())return En.setText(void 0),Hd;let o;switch(a){case 15:case 16:case 17:case 18:o=En.getTokenValue();break}return o===void 0||En.scan()!==1?(En.setText(void 0),Hd):(En.setText(void 0),o)}function jn(e){return e&&tt(e)?ja(e):z(e)}function ja(e){return z(e)&-67108865}function Nb(e,t){return t|e.transformFlags&134234112}function z(e){if(!e)return 0;let t=e.transformFlags&~Ib(e.kind);return hg(e)&&s1(e.name)?Nb(e.name,t):t}function ke(e){return e?e.transformFlags:0}function Xd(e){let t=0;for(let a of e)t|=z(a);e.transformFlags=t}function Ib(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var Z_=Ab();function es(e){return e.flags|=16,e}var Ob={createBaseSourceFileNode:e=>es(Z_.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>es(Z_.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>es(Z_.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>es(Z_.createBaseTokenNode(e)),createBaseNode:e=>es(Z_.createBaseNode(e))},y3=wf(4,Ob);function Mb(e,t){if(e.original!==t&&(e.original=t,t)){let a=t.emitNode;a&&(e.emitNode=Jb(a,e.emitNode))}return e}function Jb(e,t){let{flags:a,internalFlags:o,leadingComments:m,trailingComments:v,commentRange:A,sourceMapRange:P,tokenSourceMapRanges:l,constantValue:Q,helpers:h,startsOnNewLine:y,snippetElement:g,classThis:x,assignedName:I}=e;if(t||(t={}),a&&(t.flags=a),o&&(t.internalFlags=o&-9),m&&(t.leadingComments=Dn(m.slice(),t.leadingComments)),v&&(t.trailingComments=Dn(v.slice(),t.trailingComments)),A&&(t.commentRange=A),P&&(t.sourceMapRange=P),l&&(t.tokenSourceMapRanges=Lb(l,t.tokenSourceMapRanges)),Q!==void 0&&(t.constantValue=Q),h)for(let re of h)t.helpers=oy(t.helpers,re);return y!==void 0&&(t.startsOnNewLine=y),g!==void 0&&(t.snippetElement=g),x&&(t.classThis=x),I&&(t.assignedName=I),t}function Lb(e,t){t||(t=[]);for(let a in e)t[a]=e[a];return t}function ea(e){return e.kind===9}function D1(e){return e.kind===10}function Ya(e){return e.kind===11}function P1(e){return e.kind===15}function jb(e){return e.kind===28}function $d(e){return e.kind===54}function Qd(e){return e.kind===58}function tt(e){return e.kind===80}function gi(e){return e.kind===81}function Rb(e){return e.kind===95}function al(e){return e.kind===134}function Ap(e){return e.kind===108}function Ub(e){return e.kind===102}function N1(e){return e.kind===166}function kf(e){return e.kind===167}function Ef(e){return e.kind===168}function ds(e){return e.kind===169}function El(e){return e.kind===170}function I1(e){return e.kind===171}function Va(e){return e.kind===172}function O1(e){return e.kind===173}function ms(e){return e.kind===174}function Af(e){return e.kind===176}function gl(e){return e.kind===177}function hs(e){return e.kind===178}function M1(e){return e.kind===179}function J1(e){return e.kind===180}function Cf(e){return e.kind===181}function L1(e){return e.kind===182}function Df(e){return e.kind===183}function Pf(e){return e.kind===184}function Nf(e){return e.kind===185}function Bb(e){return e.kind===186}function j1(e){return e.kind===187}function qb(e){return e.kind===188}function zb(e){return e.kind===189}function R1(e){return e.kind===202}function Fb(e){return e.kind===190}function Vb(e){return e.kind===191}function U1(e){return e.kind===192}function B1(e){return e.kind===193}function Wb(e){return e.kind===194}function Gb(e){return e.kind===195}function q1(e){return e.kind===196}function Yb(e){return e.kind===197}function z1(e){return e.kind===198}function Hb(e){return e.kind===199}function F1(e){return e.kind===200}function Xb(e){return e.kind===201}function $b(e){return e.kind===205}function V1(e){return e.kind===208}function W1(e){return e.kind===209}function If(e){return e.kind===210}function Hr(e){return e.kind===211}function Ha(e){return e.kind===212}function Of(e){return e.kind===213}function G1(e){return e.kind===215}function Al(e){return e.kind===217}function Mf(e){return e.kind===218}function Jf(e){return e.kind===219}function Qb(e){return e.kind===222}function Y1(e){return e.kind===224}function Ki(e){return e.kind===226}function H1(e){return e.kind===230}function bl(e){return e.kind===231}function X1(e){return e.kind===232}function $1(e){return e.kind===233}function cl(e){return e.kind===235}function Kb(e){return e.kind===236}function Zb(e){return e.kind===356}function Xa(e){return e.kind===243}function Cl(e){return e.kind===244}function Q1(e){return e.kind===256}function Lf(e){return e.kind===260}function K1(e){return e.kind===261}function jf(e){return e.kind===262}function Wa(e){return e.kind===263}function vs(e){return e.kind===264}function Dl(e){return e.kind===265}function Z1(e){return e.kind===266}function Ti(e){return e.kind===267}function Rf(e){return e.kind===271}function Uf(e){return e.kind===272}function Bf(e){return e.kind===277}function qf(e){return e.kind===278}function eh(e){return e.kind===279}function e6(e){return e.kind===353}function zf(e){return e.kind===283}function zp(e){return e.kind===286}function t6(e){return e.kind===289}function th(e){return e.kind===295}function n6(e){return e.kind===297}function nh(e){return e.kind===303}function rh(e){return e.kind===307}function ih(e){return e.kind===309}function ah(e){return e.kind===314}function _h(e){return e.kind===317}function sh(e){return e.kind===320}function r6(e){return e.kind===322}function Pl(e){return e.kind===323}function i6(e){return e.kind===328}function a6(e){return e.kind===333}function _6(e){return e.kind===334}function s6(e){return e.kind===335}function o6(e){return e.kind===336}function c6(e){return e.kind===337}function l6(e){return e.kind===339}function u6(e){return e.kind===331}function Fp(e){return e.kind===341}function p6(e){return e.kind===342}function Ff(e){return e.kind===344}function oh(e){return e.kind===345}function f6(e){return e.kind===329}function d6(e){return e.kind===350}var Xi=new WeakMap;function ch(e,t){var a;let o=e.kind;return ff(o)?o===352?e._children:(a=Xi.get(t))==null?void 0:a.get(e):bt}function m6(e,t,a){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let o=Xi.get(t);return o===void 0&&(o=new WeakMap,Xi.set(t,o)),o.set(e,a),a}function Kd(e,t){var a;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(a=Xi.get(t))==null||a.delete(e)}function h6(e,t){let a=Xi.get(e);a!==void 0&&(Xi.delete(e),Xi.set(t,a))}function Zd(e){return(za(e)&32768)!==0}function y6(e){return Ya(e.expression)&&e.expression.text==="use strict"}function g6(e){for(let t of e)if(ol(t)){if(y6(t))return t}else break}function b6(e){return Al(e)&&Zi(e)&&!!Pg(e)}function lh(e,t=31){switch(e.kind){case 217:return t&-2147483648&&b6(e)?!1:(t&1)!==0;case 216:case 234:case 238:return(t&2)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Vf(e,t=31){for(;lh(e,t);)e=e.expression;return e}function v6(e){return setStartsOnNewLine(e,!0)}function as(e){if(Gg(e))return e.name;if(Fg(e)){switch(e.kind){case 303:return as(e.initializer);case 304:return e.name;case 305:return as(e.expression)}return}return yl(e,!0)?as(e.left):H1(e)?as(e.expression):e}function T6(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function em(e){if(e){let t=e;for(;;){if(tt(t)||!t.body)return tt(t)?t:t.name;t=t.body}}}var tm;(e=>{function t(h,y,g,x,I,re,he){let ye=y>0?I[y-1]:void 0;return B.assertEqual(g[y],t),I[y]=h.onEnter(x[y],ye,he),g[y]=P(h,t),y}e.enter=t;function a(h,y,g,x,I,re,he){B.assertEqual(g[y],a),B.assertIsDefined(h.onLeft),g[y]=P(h,a);let ye=h.onLeft(x[y].left,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.left=a;function o(h,y,g,x,I,re,he){return B.assertEqual(g[y],o),B.assertIsDefined(h.onOperator),g[y]=P(h,o),h.onOperator(x[y].operatorToken,I[y],x[y]),y}e.operator=o;function m(h,y,g,x,I,re,he){B.assertEqual(g[y],m),B.assertIsDefined(h.onRight),g[y]=P(h,m);let ye=h.onRight(x[y].right,I[y],x[y]);return ye?(Q(y,x,ye),l(y,g,x,I,ye)):y}e.right=m;function v(h,y,g,x,I,re,he){B.assertEqual(g[y],v),g[y]=P(h,v);let ye=h.onExit(x[y],I[y]);if(y>0){if(y--,h.foldState){let de=g[y]===v?"right":"left";I[y]=h.foldState(I[y],ye,de)}}else re.value=ye;return y}e.exit=v;function A(h,y,g,x,I,re,he){return B.assertEqual(g[y],A),y}e.done=A;function P(h,y){switch(y){case t:if(h.onLeft)return a;case a:if(h.onOperator)return o;case o:if(h.onRight)return m;case m:return v;case v:return A;case A:return A;default:B.fail("Invalid state")}}e.nextState=P;function l(h,y,g,x,I){return h++,y[h]=t,g[h]=I,x[h]=void 0,h}function Q(h,y,g){if(B.shouldAssert(2))for(;h>=0;)B.assert(y[h]!==g,"Circular traversal detected."),h--}})(tm||(tm={}));function nm(e,t){return typeof e=="object"?Vp(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function x6(e,t){return typeof e=="string"?e:S6(e,B.checkDefined(t))}function S6(e,t){return _1(e)?t(e).slice(1):Ua(e)?t(e):gi(e)?e.escapedText.slice(1):Pn(e)}function Vp(e,t,a,o,m){return t=nm(t,m),o=nm(o,m),a=x6(a,m),`${e?"#":""}${t}${a}${o}`}function uh(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of T6(e)){let a=as(t);if(a&&Wg(a)&&(a.transformFlags&65536||a.transformFlags&128&&uh(a)))return!0}return!1}function yn(e,t){return t?yi(e,t.pos,t.end):e}function Nl(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Wf(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var rm,im,am,_m,sm,w6={createBaseSourceFileNode:e=>new(sm||(sm=At.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(am||(am=At.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(_m||(_m=At.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(im||(im=At.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(rm||(rm=At.getNodeConstructor()))(e,-1,-1)},g3=wf(1,w6);function k(e,t){return t&&e(t)}function ie(e,t,a){if(a){if(t)return t(a);for(let o of a){let m=e(o);if(m)return m}}}function k6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function E6(e){return Un(e.statements,A6)||C6(e)}function A6(e){return Nl(e)&&D6(e,95)||Rf(e)&&zf(e.moduleReference)||Uf(e)||Bf(e)||qf(e)?e:void 0}function C6(e){return e.flags&8388608?ph(e):void 0}function ph(e){return P6(e)?e:Xt(e,ph)}function D6(e,t){return Ht(e.modifiers,a=>a.kind===t)}function P6(e){return Kb(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var N6={166:function(t,a,o){return k(a,t.left)||k(a,t.right)},168:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.constraint)||k(a,t.default)||k(a,t.expression)},304:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.equalsToken)||k(a,t.objectAssignmentInitializer)},305:function(t,a,o){return k(a,t.expression)},169:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},172:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},171:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)||k(a,t.initializer)},303:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||k(a,t.initializer)},260:function(t,a,o){return k(a,t.name)||k(a,t.exclamationToken)||k(a,t.type)||k(a,t.initializer)},208:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.propertyName)||k(a,t.name)||k(a,t.initializer)},181:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},185:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},184:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},179:om,180:om,174:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.exclamationToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},173:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.questionToken)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)},176:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},177:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},178:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},262:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},218:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.asteriskToken)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.body)},219:function(t,a,o){return ie(a,o,t.modifiers)||ie(a,o,t.typeParameters)||ie(a,o,t.parameters)||k(a,t.type)||k(a,t.equalsGreaterThanToken)||k(a,t.body)},175:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.body)},183:function(t,a,o){return k(a,t.typeName)||ie(a,o,t.typeArguments)},182:function(t,a,o){return k(a,t.assertsModifier)||k(a,t.parameterName)||k(a,t.type)},186:function(t,a,o){return k(a,t.exprName)||ie(a,o,t.typeArguments)},187:function(t,a,o){return ie(a,o,t.members)},188:function(t,a,o){return k(a,t.elementType)},189:function(t,a,o){return ie(a,o,t.elements)},192:cm,193:cm,194:function(t,a,o){return k(a,t.checkType)||k(a,t.extendsType)||k(a,t.trueType)||k(a,t.falseType)},195:function(t,a,o){return k(a,t.typeParameter)},205:function(t,a,o){return k(a,t.argument)||k(a,t.attributes)||k(a,t.qualifier)||ie(a,o,t.typeArguments)},302:function(t,a,o){return k(a,t.assertClause)},196:lm,198:lm,199:function(t,a,o){return k(a,t.objectType)||k(a,t.indexType)},200:function(t,a,o){return k(a,t.readonlyToken)||k(a,t.typeParameter)||k(a,t.nameType)||k(a,t.questionToken)||k(a,t.type)||ie(a,o,t.members)},201:function(t,a,o){return k(a,t.literal)},202:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.name)||k(a,t.questionToken)||k(a,t.type)},206:um,207:um,209:function(t,a,o){return ie(a,o,t.elements)},210:function(t,a,o){return ie(a,o,t.properties)},211:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.name)},212:function(t,a,o){return k(a,t.expression)||k(a,t.questionDotToken)||k(a,t.argumentExpression)},213:pm,214:pm,215:function(t,a,o){return k(a,t.tag)||k(a,t.questionDotToken)||ie(a,o,t.typeArguments)||k(a,t.template)},216:function(t,a,o){return k(a,t.type)||k(a,t.expression)},217:function(t,a,o){return k(a,t.expression)},220:function(t,a,o){return k(a,t.expression)},221:function(t,a,o){return k(a,t.expression)},222:function(t,a,o){return k(a,t.expression)},224:function(t,a,o){return k(a,t.operand)},229:function(t,a,o){return k(a,t.asteriskToken)||k(a,t.expression)},223:function(t,a,o){return k(a,t.expression)},225:function(t,a,o){return k(a,t.operand)},226:function(t,a,o){return k(a,t.left)||k(a,t.operatorToken)||k(a,t.right)},234:function(t,a,o){return k(a,t.expression)||k(a,t.type)},235:function(t,a,o){return k(a,t.expression)},238:function(t,a,o){return k(a,t.expression)||k(a,t.type)},236:function(t,a,o){return k(a,t.name)},227:function(t,a,o){return k(a,t.condition)||k(a,t.questionToken)||k(a,t.whenTrue)||k(a,t.colonToken)||k(a,t.whenFalse)},230:function(t,a,o){return k(a,t.expression)},241:fm,268:fm,307:function(t,a,o){return ie(a,o,t.statements)||k(a,t.endOfFileToken)},243:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.declarationList)},261:function(t,a,o){return ie(a,o,t.declarations)},244:function(t,a,o){return k(a,t.expression)},245:function(t,a,o){return k(a,t.expression)||k(a,t.thenStatement)||k(a,t.elseStatement)},246:function(t,a,o){return k(a,t.statement)||k(a,t.expression)},247:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},248:function(t,a,o){return k(a,t.initializer)||k(a,t.condition)||k(a,t.incrementor)||k(a,t.statement)},249:function(t,a,o){return k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},250:function(t,a,o){return k(a,t.awaitModifier)||k(a,t.initializer)||k(a,t.expression)||k(a,t.statement)},251:dm,252:dm,253:function(t,a,o){return k(a,t.expression)},254:function(t,a,o){return k(a,t.expression)||k(a,t.statement)},255:function(t,a,o){return k(a,t.expression)||k(a,t.caseBlock)},269:function(t,a,o){return ie(a,o,t.clauses)},296:function(t,a,o){return k(a,t.expression)||ie(a,o,t.statements)},297:function(t,a,o){return ie(a,o,t.statements)},256:function(t,a,o){return k(a,t.label)||k(a,t.statement)},257:function(t,a,o){return k(a,t.expression)},258:function(t,a,o){return k(a,t.tryBlock)||k(a,t.catchClause)||k(a,t.finallyBlock)},299:function(t,a,o){return k(a,t.variableDeclaration)||k(a,t.block)},170:function(t,a,o){return k(a,t.expression)},263:mm,231:mm,264:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||ie(a,o,t.heritageClauses)||ie(a,o,t.members)},265:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.typeParameters)||k(a,t.type)},266:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||ie(a,o,t.members)},306:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},267:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.body)},271:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)||k(a,t.moduleReference)},272:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.importClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},273:function(t,a,o){return k(a,t.name)||k(a,t.namedBindings)},300:function(t,a,o){return ie(a,o,t.elements)},301:function(t,a,o){return k(a,t.name)||k(a,t.value)},270:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.name)},274:function(t,a,o){return k(a,t.name)},280:function(t,a,o){return k(a,t.name)},275:hm,279:hm,278:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.exportClause)||k(a,t.moduleSpecifier)||k(a,t.attributes)},276:ym,281:ym,277:function(t,a,o){return ie(a,o,t.modifiers)||k(a,t.expression)},228:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},239:function(t,a,o){return k(a,t.expression)||k(a,t.literal)},203:function(t,a,o){return k(a,t.head)||ie(a,o,t.templateSpans)},204:function(t,a,o){return k(a,t.type)||k(a,t.literal)},167:function(t,a,o){return k(a,t.expression)},298:function(t,a,o){return ie(a,o,t.types)},233:function(t,a,o){return k(a,t.expression)||ie(a,o,t.typeArguments)},283:function(t,a,o){return k(a,t.expression)},282:function(t,a,o){return ie(a,o,t.modifiers)},356:function(t,a,o){return ie(a,o,t.elements)},284:function(t,a,o){return k(a,t.openingElement)||ie(a,o,t.children)||k(a,t.closingElement)},288:function(t,a,o){return k(a,t.openingFragment)||ie(a,o,t.children)||k(a,t.closingFragment)},285:gm,286:gm,292:function(t,a,o){return ie(a,o,t.properties)},291:function(t,a,o){return k(a,t.name)||k(a,t.initializer)},293:function(t,a,o){return k(a,t.expression)},294:function(t,a,o){return k(a,t.dotDotDotToken)||k(a,t.expression)},287:function(t,a,o){return k(a,t.tagName)},295:function(t,a,o){return k(a,t.namespace)||k(a,t.name)},190:zi,191:zi,309:zi,315:zi,314:zi,316:zi,318:zi,317:function(t,a,o){return ie(a,o,t.parameters)||k(a,t.type)},320:function(t,a,o){return(typeof t.comment=="string"?void 0:ie(a,o,t.comment))||ie(a,o,t.tags)},347:function(t,a,o){return k(a,t.tagName)||k(a,t.name)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},310:function(t,a,o){return k(a,t.name)},311:function(t,a,o){return k(a,t.left)||k(a,t.right)},341:bm,348:bm,330:function(t,a,o){return k(a,t.tagName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},329:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},328:function(t,a,o){return k(a,t.tagName)||k(a,t.class)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},345:function(t,a,o){return k(a,t.tagName)||k(a,t.constraint)||ie(a,o,t.typeParameters)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},346:function(t,a,o){return k(a,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?k(a,t.typeExpression)||k(a,t.fullName)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)):k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment)))},338:function(t,a,o){return k(a,t.tagName)||k(a,t.fullName)||k(a,t.typeExpression)||(typeof t.comment=="string"?void 0:ie(a,o,t.comment))},342:Fi,344:Fi,343:Fi,340:Fi,350:Fi,349:Fi,339:Fi,323:function(t,a,o){return Un(t.typeParameters,a)||Un(t.parameters,a)||k(a,t.type)},324:Cp,325:Cp,326:Cp,322:function(t,a,o){return Un(t.jsDocPropertyTags,a)},327:ui,332:ui,333:ui,334:ui,335:ui,336:ui,331:ui,337:ui,351:I6,355:O6};function om(e,t,a){return ie(t,a,e.typeParameters)||ie(t,a,e.parameters)||k(t,e.type)}function cm(e,t,a){return ie(t,a,e.types)}function lm(e,t,a){return k(t,e.type)}function um(e,t,a){return ie(t,a,e.elements)}function pm(e,t,a){return k(t,e.expression)||k(t,e.questionDotToken)||ie(t,a,e.typeArguments)||ie(t,a,e.arguments)}function fm(e,t,a){return ie(t,a,e.statements)}function dm(e,t,a){return k(t,e.label)}function mm(e,t,a){return ie(t,a,e.modifiers)||k(t,e.name)||ie(t,a,e.typeParameters)||ie(t,a,e.heritageClauses)||ie(t,a,e.members)}function hm(e,t,a){return ie(t,a,e.elements)}function ym(e,t,a){return k(t,e.propertyName)||k(t,e.name)}function gm(e,t,a){return k(t,e.tagName)||ie(t,a,e.typeArguments)||k(t,e.attributes)}function zi(e,t,a){return k(t,e.type)}function bm(e,t,a){return k(t,e.tagName)||(e.isNameFirst?k(t,e.name)||k(t,e.typeExpression):k(t,e.typeExpression)||k(t,e.name))||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Fi(e,t,a){return k(t,e.tagName)||k(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function Cp(e,t,a){return k(t,e.name)}function ui(e,t,a){return k(t,e.tagName)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function I6(e,t,a){return k(t,e.tagName)||k(t,e.importClause)||k(t,e.moduleSpecifier)||k(t,e.attributes)||(typeof e.comment=="string"?void 0:ie(t,a,e.comment))}function O6(e,t,a){return k(t,e.expression)}function Xt(e,t,a){if(e===void 0||e.kind<=165)return;let o=N6[e.kind];return o===void 0?void 0:o(e,t,a)}function vm(e,t,a){let o=Tm(e),m=[];for(;m.length=0;--P)o.push(v[P]),m.push(A)}else{let P=t(v,A);if(P){if(P==="skip")continue;return P}if(v.kind>=166)for(let l of Tm(v))o.push(l),m.push(v)}}}function Tm(e){let t=[];return Xt(e,a,a),t;function a(o){t.unshift(o)}}function fh(e){e.externalModuleIndicator=E6(e)}function dh(e,t,a,o=!1,m){var v,A;(v=_l)==null||v.push(_l.Phase.Parse,"createSourceFile",{path:e},!0),kd("beforeParse");let P,{languageVersion:l,setExternalModuleIndicator:Q,impliedNodeFormat:h,jsDocParsingMode:y}=typeof a=="object"?a:{languageVersion:a};if(l===100)P=$i.parseSourceFile(e,t,l,void 0,o,6,Fa,y);else{let g=h===void 0?Q:x=>(x.impliedNodeFormat=h,(Q||fh)(x));P=$i.parseSourceFile(e,t,l,void 0,o,m,g,y)}return kd("afterParse"),Dy("Parse","beforeParse","afterParse"),(A=_l)==null||A.pop(),P}function mh(e){return e.externalModuleIndicator!==void 0}function M6(e,t,a,o=!1){let m=vl.updateSourceFile(e,t,a,o);return m.flags|=e.flags&12582912,m}var $i;(e=>{var t=sf(99,!0),a=40960,o,m,v,A,P;function l(s){return ar++,s}var Q={createBaseSourceFileNode:s=>l(new P(s,0,0)),createBaseIdentifierNode:s=>l(new v(s,0,0)),createBasePrivateIdentifierNode:s=>l(new A(s,0,0)),createBaseTokenNode:s=>l(new m(s,0,0)),createBaseNode:s=>l(new o(s,0,0))},h=wf(11,Q),{createNodeArray:y,createNumericLiteral:g,createStringLiteral:x,createLiteralLikeNode:I,createIdentifier:re,createPrivateIdentifier:he,createToken:ye,createArrayLiteralExpression:de,createObjectLiteralExpression:M,createPropertyAccessExpression:ae,createPropertyAccessChain:Oe,createElementAccessExpression:V,createElementAccessChain:oe,createCallExpression:W,createCallChain:dt,createNewExpression:nr,createParenthesizedExpression:gn,createBlock:rr,createVariableStatement:bn,createExpressionStatement:In,createIfStatement:Ge,createWhileStatement:ir,createForStatement:Pr,createForOfStatement:Ot,createVariableDeclaration:Bn,createVariableDeclarationList:On}=h,Mt,vt,Qe,qn,$t,ct,_t,Ut,Jt,lt,ar,mt,vn,yt,cn,nt,Bt=!0,rn=!1;function _r(s,p,d,b,S=!1,N,X,_e=0){var Z;if(N=db(s,N),N===6){let ce=dr(s,p,d,b,S);return convertToJson(ce,(Z=ce.statements[0])==null?void 0:Z.expression,ce.parseDiagnostics,!1,void 0),ce.referencedFiles=bt,ce.typeReferenceDirectives=bt,ce.libReferenceDirectives=bt,ce.amdDependencies=bt,ce.hasNoDefaultLib=!1,ce.pragmas=ty,ce}zn(s,p,d,b,N,_e);let ee=Nr(d,S,N,X||fh,_e);return Fn(),ee}e.parseSourceFile=_r;function fr(s,p){zn("",s,p,void 0,1,0),U();let d=jr(!0),b=u()===1&&!_t.length;return Fn(),b?d:void 0}e.parseIsolatedEntityName=fr;function dr(s,p,d=2,b,S=!1){zn(s,p,d,b,6,0),vt=nt,U();let N=J(),X,_e;if(u()===1)X=Ct([],N,N),_e=Wt();else{let ce;for(;u()!==1;){let Ae;switch(u()){case 23:Ae=ac();break;case 112:case 97:case 106:Ae=Wt();break;case 41:G(()=>U()===9&&U()!==59)?Ae=Fo():Ae=I_();break;case 9:case 11:if(G(()=>U()!==59)){Ae=Hn();break}default:Ae=I_();break}ce&&Yr(ce)?ce.push(Ae):ce?ce=[ce,Ae]:(ce=Ae,u()!==1&&Ee(E.Unexpected_token))}let Le=Yr(ce)?D(de(ce),N):B.checkDefined(ce),je=In(Le);D(je,N),X=Ct([je],N),_e=Yn(1,E.Unexpected_token)}let Z=se(s,2,6,!1,X,_e,vt,Fa);S&&L(Z),Z.nodeCount=ar,Z.identifierCount=vn,Z.identifiers=mt,Z.parseDiagnostics=qi(_t,Z),Ut&&(Z.jsDocDiagnostics=qi(Ut,Z));let ee=Z;return Fn(),ee}e.parseJsonText=dr;function zn(s,p,d,b,S,N){switch(o=At.getNodeConstructor(),m=At.getTokenConstructor(),v=At.getIdentifierConstructor(),A=At.getPrivateIdentifierConstructor(),P=At.getSourceFileConstructor(),Mt=zy(s),Qe=p,qn=d,Jt=b,$t=S,ct=Wd(S),_t=[],yt=0,mt=new Map,vn=0,ar=0,vt=0,Bt=!0,$t){case 1:case 2:nt=524288;break;case 6:nt=134742016;break;default:nt=0;break}rn=!1,t.setText(Qe),t.setOnError(Zr),t.setScriptTarget(qn),t.setLanguageVariant(ct),t.setScriptKind($t),t.setJSDocParsingMode(N)}function Fn(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Qe=void 0,qn=void 0,Jt=void 0,$t=void 0,ct=void 0,vt=0,_t=void 0,Ut=void 0,yt=0,mt=void 0,cn=void 0,Bt=!0}function Nr(s,p,d,b,S){let N=j6(Mt);N&&(nt|=33554432),vt=nt,U();let X=xn(0,Kt);B.assert(u()===1);let _e=qe(),Z=Ce(Wt(),_e),ee=se(Mt,s,d,N,X,Z,vt,b);return B6(ee,Qe),q6(ee,ce),ee.commentDirectives=t.getCommentDirectives(),ee.nodeCount=ar,ee.identifierCount=vn,ee.identifiers=mt,ee.parseDiagnostics=qi(_t,ee),ee.jsDocParsingMode=S,Ut&&(ee.jsDocDiagnostics=qi(Ut,ee)),p&&L(ee),ee;function ce(Le,je,Ae){_t.push(Oa(Mt,Qe,Le,je,Ae))}}let Vn=!1;function Ce(s,p){if(!p)return s;B.assert(!s.jsDoc);let d=ay(l2(s,Qe),b=>Xc.parseJSDocComment(s,b.pos,b.end-b.pos));return d.length&&(s.jsDoc=d),Vn&&(Vn=!1,s.flags|=536870912),s}function mr(s){let p=Jt,d=vl.createSyntaxCursor(s);Jt={currentNode:ce};let b=[],S=_t;_t=[];let N=0,X=Z(s.statements,0);for(;X!==-1;){let Le=s.statements[N],je=s.statements[X];Dn(b,s.statements,N,X),N=ee(s.statements,X);let Ae=gp(S,mn=>mn.start>=Le.pos),Yt=Ae>=0?gp(S,mn=>mn.start>=je.pos,Ae):-1;Ae>=0&&Dn(_t,S,Ae,Yt>=0?Yt:void 0),un(()=>{let mn=nt;for(nt|=65536,t.resetTokenState(je.pos),U();u()!==1;){let Zt=t.getTokenFullStart(),ur=n_(0,Kt);if(b.push(ur),Zt===t.getTokenFullStart()&&U(),N>=0){let Ln=s.statements[N];if(ur.end===Ln.pos)break;ur.end>Ln.pos&&(N=ee(s.statements,N+1))}}nt=mn},2),X=N>=0?Z(s.statements,N):-1}if(N>=0){let Le=s.statements[N];Dn(b,s.statements,N);let je=gp(S,Ae=>Ae.start>=Le.pos);je>=0&&Dn(_t,S,je)}return Jt=p,h.updateSourceFile(s,yn(y(b),s.statements));function _e(Le){return!(Le.flags&65536)&&!!(Le.transformFlags&67108864)}function Z(Le,je){for(let Ae=je;Ae118}function ve(){return u()===80?!0:u()===127&&we()||u()===135&&Ye()?!1:u()>118}function j(s,p,d=!0){return u()===s?(d&&U(),!0):(p?Ee(p):Ee(E._0_expected,it(s)),!1)}let ht=Object.keys(nf).filter(s=>s.length>2);function xt(s){if(G1(s)){rt(Ar(Qe,s.template.pos),s.template.end,E.Module_declaration_names_may_only_use_or_quoted_strings);return}let p=tt(s)?Pn(s):void 0;if(!p||!og(p,qn)){Ee(E._0_expected,it(27));return}let d=Ar(Qe,s.pos);switch(p){case"const":case"let":case"var":rt(d,s.end,E.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lt(E.Interface_name_cannot_be_0,E.Interface_must_be_given_a_name,19);return;case"is":rt(d,t.getTokenStart(),E.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lt(E.Namespace_name_cannot_be_0,E.Namespace_must_be_given_a_name,19);return;case"type":Lt(E.Type_alias_name_cannot_be_0,E.Type_alias_must_be_given_a_name,64);return}let b=ns(p,ht,gt)??pn(p);if(b){rt(d,s.end,E.Unknown_keyword_or_identifier_Did_you_mean_0,b);return}u()!==0&&rt(d,s.end,E.Unexpected_keyword_or_identifier)}function Lt(s,p,d){u()===d?Ee(p):Ee(s,t.getTokenValue())}function pn(s){for(let p of ht)if(s.length>p.length+2&&ul(s,p))return`${p} ${s.slice(p.length)}`}function Ul(s,p,d){if(u()===60&&!t.hasPrecedingLineBreak()){Ee(E.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(u()===21){Ee(E.Cannot_start_a_function_call_in_a_type_annotation),U();return}if(p&&!sr()){d?Ee(E._0_expected,it(27)):Ee(E.Expected_for_property_initializer);return}if(!ia()){if(d){Ee(E._0_expected,it(27));return}xt(s)}}function Es(s){return u()===s?(ze(),!0):(B.assert(xp(s)),Ee(E._0_expected,it(s)),!1)}function Or(s,p,d,b){if(u()===p){U();return}let S=Ee(E._0_expected,it(p));d&&S&&nl(S,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,it(s),it(p)))}function Je(s){return u()===s?(U(),!0):!1}function ft(s){if(u()===s)return Wt()}function Bl(s){if(u()===s)return zl()}function Yn(s,p,d){return ft(s)||Gt(s,!1,p||E._0_expected,d||it(s))}function ql(s){let p=Bl(s);return p||(B.assert(xp(s)),Gt(s,!1,E._0_expected,it(s)))}function Wt(){let s=J(),p=u();return U(),D(ye(p),s)}function zl(){let s=J(),p=u();return ze(),D(ye(p),s)}function sr(){return u()===27?!0:u()===20||u()===1||t.hasPrecedingLineBreak()}function ia(){return sr()?(u()===27&&U(),!0):!1}function Qt(){return ia()||j(27)}function Ct(s,p,d,b){let S=y(s,b);return yi(S,p,d??t.getTokenFullStart()),S}function D(s,p,d){return yi(s,p,d??t.getTokenFullStart()),nt&&(s.flags|=nt),rn&&(rn=!1,s.flags|=262144),s}function Gt(s,p,d,...b){p?Tn(t.getTokenFullStart(),0,d,...b):d&&Ee(d,...b);let S=J(),N=s===80?re("",void 0):Ld(s)?h.createTemplateLiteralLikeNode(s,"","",void 0):s===9?g("",void 0):s===11?x("",void 0):s===282?h.createMissingDeclaration():ye(s);return D(N,S)}function Mr(s){let p=mt.get(s);return p===void 0&&mt.set(s,p=s),p}function or(s,p,d){if(s){vn++;let _e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():J(),Z=u(),ee=Mr(t.getTokenValue()),ce=t.hasExtendedUnicodeEscape();return Ie(),D(re(ee,Z,ce),_e)}if(u()===81)return Ee(d||E.Private_identifiers_are_not_allowed_outside_class_bodies),or(!0);if(u()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return or(!0);vn++;let b=u()===1,S=t.isReservedWord(),N=t.getTokenText(),X=S?E.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:E.Identifier_expected;return Gt(80,b,p||X,N)}function Ka(s){return or(Fe(),void 0,s)}function St(s,p){return or(ve(),s,p)}function jt(s){return or(wt(u()),s)}function ei(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ee(E.Unicode_escape_sequence_cannot_appear_here),or(wt(u()))}function yr(){return wt(u())||u()===11||u()===9||u()===10}function As(){return wt(u())||u()===11}function Fl(s){if(u()===11||u()===9||u()===10){let p=Hn();return p.text=Mr(p.text),p}return s&&u()===23?Vl():u()===81?aa():jt()}function Jr(){return Fl(!0)}function Vl(){let s=J();j(23);let p=ut(Et);return j(24),D(h.createComputedPropertyName(p),s)}function aa(){let s=J(),p=he(Mr(t.getTokenValue()));return U(),D(p,s)}function ti(s){return u()===s&&le(Cs)}function Za(){return U(),t.hasPrecedingLineBreak()?!1:cr()}function Cs(){switch(u()){case 87:return U()===94;case 95:return U(),u()===90?G(Ei):u()===156?G(Wl):ki();case 90:return Ei();case 126:return U(),cr();case 139:case 153:return U(),Gl();default:return Za()}}function ki(){return u()===60||u()!==42&&u()!==130&&u()!==19&&cr()}function Wl(){return U(),ki()}function Ds(){return Wr(u())&&le(Cs)}function cr(){return u()===23||u()===19||u()===42||u()===26||yr()}function Gl(){return u()===23||yr()}function Ei(){return U(),u()===86||u()===100||u()===120||u()===60||u()===128&&G(gc)||u()===134&&G(bc)}function _a(s,p){if(oa(s))return!0;switch(s){case 0:case 1:case 3:return!(u()===27&&p)&&vc();case 2:return u()===84||u()===90;case 4:return G(ao);case 5:return G(Vu)||u()===27&&!p;case 6:return u()===23||yr();case 12:switch(u()){case 23:case 42:case 26:case 25:return!0;default:return yr()}case 18:return yr();case 9:return u()===23||u()===26||yr();case 24:return As();case 7:return u()===19?G(Ps):p?ve()&&!e_():x_()&&!e_();case 8:return wa();case 10:return u()===28||u()===26||wa();case 19:return u()===103||u()===87||ve();case 15:switch(u()){case 28:case 25:return!0}case 11:return u()===26||br();case 16:return pa(!1);case 17:return pa(!0);case 20:case 21:return u()===28||ai();case 22:return Rc();case 23:return u()===161&&G(Ru)?!1:u()===11?!0:wt(u());case 13:return wt(u())||u()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(s,"Non-exhaustive case in 'isListElement'.")}}function Ps(){if(B.assert(u()===19),U()===20){let s=U();return s===28||s===19||s===96||s===119}return!0}function Ai(){return U(),ve()}function Yl(){return U(),wt(u())}function Ns(){return U(),Fy(u())}function e_(){return u()===119||u()===96?G(Is):!1}function Is(){return U(),br()}function Ci(){return U(),ai()}function sa(s){if(u()===1)return!0;switch(s){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return u()===20;case 3:return u()===20||u()===84||u()===90;case 7:return u()===19||u()===96||u()===119;case 8:return t_();case 19:return u()===32||u()===21||u()===19||u()===96||u()===119;case 11:return u()===22||u()===27;case 15:case 21:case 10:return u()===24;case 17:case 16:case 18:return u()===22||u()===24;case 20:return u()!==28;case 22:return u()===19||u()===20;case 13:return u()===32||u()===44;case 14:return u()===30&&G(G_);default:return!1}}function t_(){return!!(sr()||Uo(u())||u()===39)}function Os(){B.assert(yt,"Missing parsing context");for(let s=0;s<26;s++)if(yt&1<=0)}function __(s){return s===6?E.An_enum_member_name_must_be_followed_by_a_or:void 0}function lr(){let s=Ct([],J());return s.isMissingList=!0,s}function zs(s){return!!s.isMissingList}function Lr(s,p,d,b){if(j(d)){let S=fn(s,p);return j(b),S}return lr()}function jr(s,p){let d=J(),b=s?jt(p):St(p);for(;Je(25)&&u()!==30;)b=D(h.createQualifiedName(b,ni(s,!1,!0)),d);return b}function Hl(s,p){return D(h.createQualifiedName(s,p),s.pos)}function ni(s,p,d){if(t.hasPrecedingLineBreak()&&wt(u())&&G(M_))return Gt(80,!0,E.Identifier_expected);if(u()===81){let b=aa();return p?b:Gt(80,!0,E.Identifier_expected)}return s?d?jt():ei():St()}function Xl(s){let p=J(),d=[],b;do b=Gs(s),d.push(b);while(b.literal.kind===17);return Ct(d,p)}function la(s){let p=J();return D(h.createTemplateExpression(Di(s),Xl(s)),p)}function Fs(){let s=J();return D(h.createTemplateLiteralType(Di(!1),$l()),s)}function $l(){let s=J(),p=[],d;do d=Vs(),p.push(d);while(d.literal.kind===17);return Ct(p,s)}function Vs(){let s=J();return D(h.createTemplateLiteralTypeSpan(ot(),Ws(!1)),s)}function Ws(s){return u()===20?(Pt(s),Ys()):Yn(18,E._0_expected,it(20))}function Gs(s){let p=J();return D(h.createTemplateSpan(ut(Et),Ws(s)),p)}function Hn(){return ri(u())}function Di(s){!s&&t.getTokenFlags()&26656&&Pt(!1);let p=ri(u());return B.assert(p.kind===16,"Template head has wrong token kind"),p}function Ys(){let s=ri(u());return B.assert(s.kind===17||s.kind===18,"Template fragment has wrong token kind"),s}function Ql(s){let p=s===15||s===18,d=t.getTokenText();return d.substring(1,d.length-(t.isUnterminated()?0:p?1:2))}function ri(s){let p=J(),d=Ld(s)?h.createTemplateLiteralLikeNode(s,t.getTokenValue(),Ql(s),t.getTokenFlags()&7176):s===9?g(t.getTokenValue(),t.getNumericLiteralFlags()):s===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):Jg(s)?I(s,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(d.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(d.isUnterminated=!0),U(),D(d,p)}function ii(){return jr(!0,E.Type_expected)}function Hs(){if(!t.hasPrecedingLineBreak()&&kt()===30)return Lr(20,ot,30,32)}function ua(){let s=J();return D(h.createTypeReferenceNode(ii(),Hs()),s)}function s_(s){switch(s.kind){case 183:return Hi(s.typeName);case 184:case 185:{let{parameters:p,type:d}=s;return zs(p)||s_(d)}case 196:return s_(s.type);default:return!1}}function Kl(s){return U(),D(h.createTypePredicateNode(void 0,s,ot()),s.pos)}function o_(){let s=J();return U(),D(h.createThisTypeNode(),s)}function Zl(){let s=J();return U(),D(h.createJSDocAllType(),s)}function Xs(){let s=J();return U(),D(h.createJSDocNonNullableType(b_(),!1),s)}function eu(){let s=J();return U(),u()===28||u()===20||u()===22||u()===32||u()===64||u()===52?D(h.createJSDocUnknownType(),s):D(h.createJSDocNullableType(ot(),!1),s)}function $s(){let s=J(),p=qe();if(le(Fc)){let d=Xn(36),b=Jn(59,!1);return Ce(D(h.createJSDocFunctionType(d,b),s),p)}return D(h.createTypeReferenceNode(jt(),void 0),s)}function c_(){let s=J(),p;return(u()===110||u()===105)&&(p=jt(),j(59)),D(h.createParameterDeclaration(void 0,void 0,p,void 0,l_(),void 0),s)}function l_(){t.setSkipJsDocLeadingAsterisks(!0);let s=J();if(Je(144)){let b=h.createJSDocNamepathType(void 0);e:for(;;)switch(u()){case 20:case 1:case 28:case 5:break e;default:ze()}return t.setSkipJsDocLeadingAsterisks(!1),D(b,s)}let p=Je(26),d=ma();return t.setSkipJsDocLeadingAsterisks(!1),p&&(d=D(h.createJSDocVariadicType(d),s)),u()===64?(U(),D(h.createJSDocOptionalType(d),s)):d}function Qs(){let s=J();j(114);let p=jr(!0),d=t.hasPrecedingLineBreak()?void 0:Aa();return D(h.createTypeQueryNode(p,d),s)}function Ks(){let s=J(),p=wn(!1,!0),d=St(),b,S;Je(96)&&(ai()||!br()?b=ot():S=Yo());let N=Je(64)?ot():void 0,X=h.createTypeParameterDeclaration(p,d,b,N);return X.expression=S,D(X,s)}function dn(){if(u()===30)return Lr(19,Ks,30,32)}function pa(s){return u()===26||wa()||Wr(u())||u()===60||ai(!s)}function Zs(s){let p=Li(E.Private_identifiers_cannot_be_used_as_parameters);return a2(p)===0&&!Ht(s)&&Wr(u())&&U(),p}function eo(){return Fe()||u()===23||u()===19}function u_(s){return p_(s)}function to(s){return p_(s,!1)}function p_(s,p=!0){let d=J(),b=qe(),S=s?R(()=>wn(!0)):$(()=>wn(!0));if(u()===110){let Z=h.createParameterDeclaration(S,void 0,or(!0),void 0,gr(),void 0),ee=Hp(S);return ee&&ln(ee,E.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ce(D(Z,d),b)}let N=Bt;Bt=!1;let X=ft(26);if(!p&&!eo())return;let _e=Ce(D(h.createParameterDeclaration(S,X,Zs(S),ft(58),gr(),vr()),d),b);return Bt=N,_e}function Jn(s,p){if(no(s,p))return hr(ma)}function no(s,p){return s===39?(j(s),!0):Je(59)?!0:p&&u()===39?(Ee(E._0_expected,it(59)),U(),!0):!1}function f_(s,p){let d=we(),b=Ye();Xe(!!(s&1)),st(!!(s&2));let S=s&32?fn(17,c_):fn(16,()=>p?u_(b):to(b));return Xe(d),st(b),S}function Xn(s){if(!j(21))return lr();let p=f_(s,!0);return j(22),p}function fa(){Je(28)||Qt()}function ro(s){let p=J(),d=qe();s===180&&j(105);let b=dn(),S=Xn(4),N=Jn(59,!0);fa();let X=s===179?h.createCallSignature(b,S,N):h.createConstructSignature(b,S,N);return Ce(D(X,p),d)}function Rr(){return u()===23&&G(tu)}function tu(){if(U(),u()===26||u()===24)return!0;if(Wr(u())){if(U(),ve())return!0}else if(ve())U();else return!1;return u()===59||u()===28?!0:u()!==58?!1:(U(),u()===59||u()===28||u()===24)}function d_(s,p,d){let b=Lr(16,()=>u_(!1),23,24),S=gr();fa();let N=h.createIndexSignature(d,b,S);return Ce(D(N,s),p)}function io(s,p,d){let b=Jr(),S=ft(58),N;if(u()===21||u()===30){let X=dn(),_e=Xn(4),Z=Jn(59,!0);N=h.createMethodSignature(d,b,S,X,_e,Z)}else{let X=gr();N=h.createPropertySignature(d,b,S,X),u()===64&&(N.initializer=vr())}return fa(),Ce(D(N,s),p)}function ao(){if(u()===21||u()===30||u()===139||u()===153)return!0;let s=!1;for(;Wr(u());)s=!0,U();return u()===23?!0:(yr()&&(s=!0,U()),s?u()===21||u()===30||u()===58||u()===59||u()===28||sr():!1)}function Pi(){if(u()===21||u()===30)return ro(179);if(u()===105&&G(_o))return ro(180);let s=J(),p=qe(),d=wn(!1);return ti(139)?qr(s,p,d,177,4):ti(153)?qr(s,p,d,178,4):Rr()?d_(s,p,d):io(s,p,d)}function _o(){return U(),u()===21||u()===30}function so(){return U()===25}function oo(){switch(U()){case 21:case 30:case 25:return!0}return!1}function co(){let s=J();return D(h.createTypeLiteralNode(lo()),s)}function lo(){let s;return j(19)?(s=xn(4,Pi),j(20)):s=lr(),s}function uo(){return U(),u()===40||u()===41?U()===148:(u()===148&&U(),u()===23&&Ai()&&U()===103)}function nu(){let s=J(),p=jt();j(103);let d=ot();return D(h.createTypeParameterDeclaration(void 0,p,d,void 0),s)}function po(){let s=J();j(19);let p;(u()===148||u()===40||u()===41)&&(p=Wt(),p.kind!==148&&j(148)),j(23);let d=nu(),b=Je(130)?ot():void 0;j(24);let S;(u()===58||u()===40||u()===41)&&(S=Wt(),S.kind!==58&&j(58));let N=gr();Qt();let X=xn(4,Pi);return j(20),D(h.createMappedTypeNode(p,d,b,S,N,X),s)}function fo(){let s=J();if(Je(26))return D(h.createRestTypeNode(ot()),s);let p=ot();if(ah(p)&&p.pos===p.type.pos){let d=h.createOptionalTypeNode(p.type);return yn(d,p),d.flags=p.flags,d}return p}function m_(){return U()===59||u()===58&&U()===59}function ru(){return u()===26?wt(U())&&m_():wt(u())&&m_()}function mo(){if(G(ru)){let s=J(),p=qe(),d=ft(26),b=jt(),S=ft(58);j(59);let N=fo(),X=h.createNamedTupleMember(d,b,S,N);return Ce(D(X,s),p)}return fo()}function iu(){let s=J();return D(h.createTupleTypeNode(Lr(21,mo,23,24)),s)}function ho(){let s=J();j(21);let p=ot();return j(22),D(h.createParenthesizedType(p),s)}function au(){let s;if(u()===128){let p=J();U();let d=D(ye(128),p);s=Ct([d],p)}return s}function h_(){let s=J(),p=qe(),d=au(),b=Je(105);B.assert(!d||b,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let S=dn(),N=Xn(4),X=Jn(39,!1),_e=b?h.createConstructorTypeNode(d,S,N,X):h.createFunctionTypeNode(S,N,X);return Ce(D(_e,s),p)}function yo(){let s=Wt();return u()===25?void 0:s}function y_(s){let p=J();s&&U();let d=u()===112||u()===97||u()===106?Wt():ri(u());return s&&(d=D(h.createPrefixUnaryExpression(41,d),p)),D(h.createLiteralTypeNode(d),p)}function _u(){return U(),u()===102}function g_(){vt|=4194304;let s=J(),p=Je(114);j(102),j(21);let d=ot(),b;if(Je(28)){let X=t.getTokenStart();j(19);let _e=u();if(_e===118||_e===132?U():Ee(E._0_expected,it(118)),j(59),b=Y_(_e,!0),!j(20)){let Z=Gi(_t);Z&&Z.code===E._0_expected.code&&nl(Z,Oa(Mt,Qe,X,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}j(22);let S=Je(25)?ii():void 0,N=Hs();return D(h.createImportTypeNode(d,b,S,N,p),s)}function go(){return U(),u()===9||u()===10}function b_(){switch(u()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return le(yo)||ua();case 67:t.reScanAsteriskEqualsToken();case 42:return Zl();case 61:t.reScanQuestionToken();case 58:return eu();case 100:return $s();case 54:return Xs();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return y_();case 41:return G(go)?y_(!0):ua();case 116:return Wt();case 110:{let s=o_();return u()===142&&!t.hasPrecedingLineBreak()?Kl(s):s}case 114:return G(_u)?g_():Qs();case 19:return G(uo)?po():co();case 23:return iu();case 21:return ho();case 102:return g_();case 131:return G(M_)?Co():ua();case 16:return Fs();default:return ua()}}function ai(s){switch(u()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!s;case 41:return!s&&G(go);case 21:return!s&&G(bo);default:return ve()}}function bo(){return U(),u()===22||pa(!1)||ai()}function vo(){let s=J(),p=b_();for(;!t.hasPrecedingLineBreak();)switch(u()){case 54:U(),p=D(h.createJSDocNonNullableType(p,!0),s);break;case 58:if(G(Ci))return p;U(),p=D(h.createJSDocNullableType(p,!0),s);break;case 23:if(j(23),ai()){let d=ot();j(24),p=D(h.createIndexedAccessTypeNode(p,d),s)}else j(24),p=D(h.createArrayTypeNode(p),s);break;default:return p}return p}function To(s){let p=J();return j(s),D(h.createTypeOperatorNode(s,So()),p)}function su(){if(Je(96)){let s=Mn(ot);if(We()||u()!==58)return s}}function xo(){let s=J(),p=St(),d=le(su),b=h.createTypeParameterDeclaration(void 0,p,d);return D(b,s)}function ou(){let s=J();return j(140),D(h.createInferTypeNode(xo()),s)}function So(){let s=u();switch(s){case 143:case 158:case 148:return To(s);case 140:return ou()}return hr(vo)}function da(s){if(T_()){let p=h_(),d;return Pf(p)?d=s?E.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:d=s?E.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:E.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,ln(p,d),p}}function wo(s,p,d){let b=J(),S=s===52,N=Je(s),X=N&&da(S)||p();if(u()===s||N){let _e=[X];for(;Je(s);)_e.push(da(S)||p());X=D(d(Ct(_e,b)),b)}return X}function v_(){return wo(51,So,h.createIntersectionTypeNode)}function cu(){return wo(52,v_,h.createUnionTypeNode)}function ko(){return U(),u()===105}function T_(){return u()===30||u()===21&&G(Eo)?!0:u()===105||u()===128&&G(ko)}function lu(){if(Wr(u())&&wn(!1),ve()||u()===110)return U(),!0;if(u()===23||u()===19){let s=_t.length;return Li(),s===_t.length}return!1}function Eo(){return U(),!!(u()===22||u()===26||lu()&&(u()===59||u()===28||u()===58||u()===64||u()===22&&(U(),u()===39)))}function ma(){let s=J(),p=ve()&&le(Ao),d=ot();return p?D(h.createTypePredicateNode(void 0,p,d),s):d}function Ao(){let s=St();if(u()===142&&!t.hasPrecedingLineBreak())return U(),s}function Co(){let s=J(),p=Yn(131),d=u()===110?o_():St(),b=Je(142)?ot():void 0;return D(h.createTypePredicateNode(p,d,b),s)}function ot(){if(nt&81920)return Dt(81920,ot);if(T_())return h_();let s=J(),p=cu();if(!We()&&!t.hasPrecedingLineBreak()&&Je(96)){let d=Mn(ot);j(58);let b=hr(ot);j(59);let S=hr(ot);return D(h.createConditionalTypeNode(p,d,b,S),s)}return p}function gr(){return Je(59)?ot():void 0}function x_(){switch(u()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return G(oo);default:return ve()}}function br(){if(x_())return!0;switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Bo()?!0:ve()}}function Do(){return u()!==19&&u()!==100&&u()!==86&&u()!==60&&br()}function Et(){let s=Ze();s&&Ke(!1);let p=J(),d=zt(!0),b;for(;b=ft(28);)d=k_(d,b,zt(!0),p);return s&&Ke(!0),d}function vr(){return Je(64)?zt(!0):void 0}function zt(s){if(Po())return No();let p=pu(s)||Lo(s);if(p)return p;let d=J(),b=qe(),S=Ni(0);return S.kind===80&&u()===39?Io(d,S,s,b,void 0):qa(S)&&S1(Ve())?k_(S,Wt(),zt(s),d):fu(S,d,s)}function Po(){return u()===127?we()?!0:G(J_):!1}function uu(){return U(),!t.hasPrecedingLineBreak()&&ve()}function No(){let s=J();return U(),!t.hasPrecedingLineBreak()&&(u()===42||br())?D(h.createYieldExpression(ft(42),zt(!0)),s):D(h.createYieldExpression(void 0,void 0),s)}function Io(s,p,d,b,S){B.assert(u()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let N=h.createParameterDeclaration(void 0,void 0,p,void 0,void 0,void 0);D(N,p.pos);let X=Ct([N],N.pos,N.end),_e=Yn(39),Z=S_(!!S,d),ee=h.createArrowFunction(S,void 0,X,void 0,_e,Z);return Ce(D(ee,s),b)}function pu(s){let p=Oo();if(p!==0)return p===1?Ro(!0,!0):le(()=>Jo(s))}function Oo(){return u()===21||u()===30||u()===134?G(Mo):u()===39?1:0}function Mo(){if(u()===134&&(U(),t.hasPrecedingLineBreak()||u()!==21&&u()!==30))return 0;let s=u(),p=U();if(s===21){if(p===22)switch(U()){case 39:case 59:case 19:return 1;default:return 0}if(p===23||p===19)return 2;if(p===26)return 1;if(Wr(p)&&p!==134&&G(Ai))return U()===130?0:1;if(!ve()&&p!==110)return 0;switch(U()){case 59:return 1;case 58:return U(),u()===59||u()===28||u()===64||u()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(s===30),!ve()&&u()!==87?0:ct===1?G(()=>{Je(87);let b=U();if(b===96)switch(U()){case 64:case 32:case 44:return!1;default:return!0}else if(b===28||b===64)return!0;return!1})?1:0:2}function Jo(s){let p=t.getTokenStart();if(cn!=null&&cn.has(p))return;let d=Ro(!1,s);return d||(cn||(cn=new Set)).add(p),d}function Lo(s){if(u()===134&&G(jo)===1){let p=J(),d=qe(),b=Jc(),S=Ni(0);return Io(p,S,s,d,b)}}function jo(){if(u()===134){if(U(),t.hasPrecedingLineBreak()||u()===39)return 0;let s=Ni(0);if(!t.hasPrecedingLineBreak()&&s.kind===80&&u()===39)return 1}return 0}function Ro(s,p){let d=J(),b=qe(),S=Jc(),N=Ht(S,al)?2:0,X=dn(),_e;if(j(21)){if(s)_e=f_(N,s);else{let Zt=f_(N,s);if(!Zt)return;_e=Zt}if(!j(22)&&!s)return}else{if(!s)return;_e=lr()}let Z=u()===59,ee=Jn(59,!1);if(ee&&!s&&s_(ee))return;let ce=ee;for(;(ce==null?void 0:ce.kind)===196;)ce=ce.type;let Le=ce&&_h(ce);if(!s&&u()!==39&&(Le||u()!==19))return;let je=u(),Ae=Yn(39),Yt=je===39||je===19?S_(Ht(S,al),p):St();if(!p&&Z&&u()!==59)return;let mn=h.createArrowFunction(S,X,_e,ee,Ae,Yt);return Ce(D(mn,d),b)}function S_(s,p){if(u()===19)return va(s?2:0);if(u()!==27&&u()!==100&&u()!==86&&vc()&&!Do())return va(16|(s?2:0));let d=Bt;Bt=!1;let b=s?R(()=>zt(p)):$(()=>zt(p));return Bt=d,b}function fu(s,p,d){let b=ft(58);if(!b)return s;let S;return D(h.createConditionalExpression(s,b,Dt(a,()=>zt(!1)),S=Yn(59),Rp(S)?zt(d):Gt(80,!1,E._0_expected,it(59))),p)}function Ni(s){let p=J(),d=Yo();return w_(s,d,p)}function Uo(s){return s===103||s===165}function w_(s,p,d){for(;;){Ve();let b=Sp(u());if(!(u()===43?b>=s:b>s)||u()===103&&be())break;if(u()===130||u()===152){if(t.hasPrecedingLineBreak())break;{let N=u();U(),p=N===152?qo(p,ot()):zo(p,ot())}}else p=k_(p,Wt(),Ni(b),d)}return p}function Bo(){return be()&&u()===103?!1:Sp(u())>0}function qo(s,p){return D(h.createSatisfiesExpression(s,p),s.pos)}function k_(s,p,d,b){return D(h.createBinaryExpression(s,p,d),b)}function zo(s,p){return D(h.createAsExpression(s,p),s.pos)}function Fo(){let s=J();return D(h.createPrefixUnaryExpression(u(),Me(Tr)),s)}function Vo(){let s=J();return D(h.createDeleteExpression(Me(Tr)),s)}function du(){let s=J();return D(h.createTypeOfExpression(Me(Tr)),s)}function Wo(){let s=J();return D(h.createVoidExpression(Me(Tr)),s)}function mu(){return u()===135?Ye()?!0:G(J_):!1}function Go(){let s=J();return D(h.createAwaitExpression(Me(Tr)),s)}function Yo(){if(hu()){let d=J(),b=ha();return u()===43?w_(Sp(u()),b,d):b}let s=u(),p=Tr();if(u()===43){let d=Ar(Qe,p.pos),{end:b}=p;p.kind===216?rt(d,b,E.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(xp(s)),rt(d,b,E.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,it(s)))}return p}function Tr(){switch(u()){case 40:case 41:case 55:case 54:return Fo();case 91:return Vo();case 114:return du();case 116:return Wo();case 30:return ct===1?Oi(!0,void 0,void 0,!0):Ko();case 135:if(mu())return Go();default:return ha()}}function hu(){switch(u()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ct!==1)return!1;default:return!0}}function ha(){if(u()===46||u()===47){let p=J();return D(h.createPrefixUnaryExpression(u(),Me(Ii)),p)}else if(ct===1&&u()===30&&G(Ns))return Oi(!0);let s=Ii();if(B.assert(qa(s)),(u()===46||u()===47)&&!t.hasPrecedingLineBreak()){let p=u();return U(),D(h.createPostfixUnaryExpression(s,p),s.pos)}return s}function Ii(){let s=J(),p;return u()===102?G(_o)?(vt|=4194304,p=Wt()):G(so)?(U(),U(),p=D(h.createMetaProperty(102,jt()),s),vt|=8388608):p=ya():p=u()===108?Ho():ya(),P_(s,p)}function ya(){let s=J(),p=N_();return _n(s,p,!0)}function Ho(){let s=J(),p=Wt();if(u()===30){let d=J(),b=le(ba);b!==void 0&&(rt(d,J(),E.super_may_not_use_type_arguments),Sn()||(p=h.createExpressionWithTypeArguments(p,b)))}return u()===21||u()===25||u()===23?p:(Yn(25,E.super_must_be_followed_by_an_argument_list_or_member_access),D(ae(p,ni(!0,!0,!0)),s))}function Oi(s,p,d,b=!1){let S=J(),N=bu(s),X;if(N.kind===286){let _e=ga(N),Z,ee=_e[_e.length-1];if((ee==null?void 0:ee.kind)===284&&!pi(ee.openingElement.tagName,ee.closingElement.tagName)&&pi(N.tagName,ee.closingElement.tagName)){let ce=ee.children.end,Le=D(h.createJsxElement(ee.openingElement,ee.children,D(h.createJsxClosingElement(D(re(""),ce,ce)),ce,ce)),ee.openingElement.pos,ce);_e=Ct([..._e.slice(0,_e.length-1),Le],_e.pos,ce),Z=ee.closingElement}else Z=Qo(N,s),pi(N.tagName,Z.tagName)||(d&&zp(d)&&pi(Z.tagName,d.tagName)?ln(N.tagName,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,N.tagName)):ln(Z.tagName,E.Expected_corresponding_JSX_closing_tag_for_0,is(Qe,N.tagName)));X=D(h.createJsxElement(N,_e,Z),S)}else N.kind===289?X=D(h.createJsxFragment(N,ga(N),Su(s)),S):(B.assert(N.kind===285),X=N);if(!b&&s&&u()===30){let _e=typeof p>"u"?X.pos:p,Z=le(()=>Oi(!0,_e));if(Z){let ee=Gt(28,!1);return Yd(ee,Z.pos,0),rt(Ar(Qe,_e),Z.end,E.JSX_expressions_must_have_one_parent_element),D(h.createBinaryExpression(X,ee,Z),S)}}return X}function E_(){let s=J(),p=h.createJsxText(t.getTokenValue(),lt===13);return lt=t.scanJsxToken(),D(p,s)}function yu(s,p){switch(p){case 1:if(t6(s))ln(s,E.JSX_fragment_has_no_corresponding_closing_tag);else{let d=s.tagName,b=Math.min(Ar(Qe,d.pos),d.end);rt(b,d.end,E.JSX_element_0_has_no_corresponding_closing_tag,is(Qe,s.tagName))}return;case 31:case 7:return;case 12:case 13:return E_();case 19:return Xo(!1);case 30:return Oi(!1,void 0,s);default:return B.assertNever(p)}}function ga(s){let p=[],d=J(),b=yt;for(yt|=16384;;){let S=yu(s,lt=t.reScanJsxToken());if(!S||(p.push(S),zp(s)&&(S==null?void 0:S.kind)===284&&!pi(S.openingElement.tagName,S.closingElement.tagName)&&pi(s.tagName,S.closingElement.tagName)))break}return yt=b,Ct(p,d)}function gu(){let s=J();return D(h.createJsxAttributes(xn(13,$o)),s)}function bu(s){let p=J();if(j(30),u()===32)return Gn(),D(h.createJsxOpeningFragment(),p);let d=A_(),b=nt&524288?void 0:Aa(),S=gu(),N;return u()===32?(Gn(),N=h.createJsxOpeningElement(d,b,S)):(j(44),j(32,void 0,!1)&&(s?U():Gn()),N=h.createJsxSelfClosingElement(d,b,S)),D(N,p)}function A_(){let s=J(),p=vu();if(th(p))return p;let d=p;for(;Je(25);)d=D(ae(d,ni(!0,!1,!1)),s);return d}function vu(){let s=J();qt();let p=u()===110,d=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(d,ei()),s)):p?D(h.createToken(110),s):d}function Xo(s){let p=J();if(!j(19))return;let d,b;return u()!==20&&(s||(d=ft(26)),b=Et()),s?j(20):j(20,void 0,!1)&&Gn(),D(h.createJsxExpression(d,b),p)}function $o(){if(u()===19)return xu();let s=J();return D(h.createJsxAttribute(Tu(),C_()),s)}function C_(){if(u()===64){if(wi()===11)return Hn();if(u()===19)return Xo(!0);if(u()===30)return Oi(!0);Ee(E.or_JSX_element_expected)}}function Tu(){let s=J();qt();let p=ei();return Je(59)?(qt(),D(h.createJsxNamespacedName(p,ei()),s)):p}function xu(){let s=J();j(19),j(26);let p=Et();return j(20),D(h.createJsxSpreadAttribute(p),s)}function Qo(s,p){let d=J();j(31);let b=A_();return j(32,void 0,!1)&&(p||!pi(s.tagName,b)?U():Gn()),D(h.createJsxClosingElement(b),d)}function Su(s){let p=J();return j(31),j(32,E.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(s?U():Gn()),D(h.createJsxJsxClosingFragment(),p)}function Ko(){B.assert(ct!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let s=J();j(30);let p=ot();j(32);let d=Tr();return D(h.createTypeAssertion(p,d),s)}function wu(){return U(),wt(u())||u()===23||Sn()}function Zo(){return u()===29&&G(wu)}function D_(s){if(s.flags&64)return!0;if(cl(s)){let p=s.expression;for(;cl(p)&&!(p.flags&64);)p=p.expression;if(p.flags&64){for(;cl(s);)s.flags|=64,s=s.expression;return!0}}return!1}function ec(s,p,d){let b=ni(!0,!0,!0),S=d||D_(p),N=S?Oe(p,d,b):ae(p,b);if(S&&gi(N.name)&&ln(N.name,E.An_optional_chain_cannot_contain_private_identifiers),$1(p)&&p.typeArguments){let X=p.typeArguments.pos-1,_e=Ar(Qe,p.typeArguments.end)+1;rt(X,_e,E.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return D(N,s)}function ku(s,p,d){let b;if(u()===24)b=Gt(80,!0,E.An_element_access_expression_should_take_an_argument);else{let N=ut(Et);kl(N)&&(N.text=Mr(N.text)),b=N}j(24);let S=d||D_(p)?oe(p,d,b):V(p,b);return D(S,s)}function _n(s,p,d){for(;;){let b,S=!1;if(d&&Zo()?(b=Yn(29),S=wt(u())):S=Je(25),S){p=ec(s,p,b);continue}if((b||!Ze())&&Je(23)){p=ku(s,p,b);continue}if(Sn()){p=!b&&p.kind===233?Ur(s,p.expression,b,p.typeArguments):Ur(s,p,b,void 0);continue}if(!b){if(u()===54&&!t.hasPrecedingLineBreak()){U(),p=D(h.createNonNullExpression(p),s);continue}let N=le(ba);if(N){p=D(h.createExpressionWithTypeArguments(p,N),s);continue}}return p}}function Sn(){return u()===15||u()===16}function Ur(s,p,d,b){let S=h.createTaggedTemplateExpression(p,b,u()===15?(Pt(!0),Hn()):la(!0));return(d||p.flags&64)&&(S.flags|=64),S.questionDotToken=d,D(S,s)}function P_(s,p){for(;;){p=_n(s,p,!0);let d,b=ft(29);if(b&&(d=le(ba),Sn())){p=Ur(s,p,b,d);continue}if(d||u()===21){!b&&p.kind===233&&(d=p.typeArguments,p=p.expression);let S=tc(),N=b||D_(p)?dt(p,b,d,S):W(p,d,S);p=D(N,s);continue}if(b){let S=Gt(80,!1,E.Identifier_expected);p=D(Oe(p,b,S),s)}break}return p}function tc(){j(21);let s=fn(11,ic);return j(22),s}function ba(){if(nt&524288||kt()!==30)return;U();let s=fn(20,ot);if(Ve()===32)return U(),s&&Eu()?s:void 0}function Eu(){switch(u()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Bo()||!br()}function N_(){switch(u()){case 15:t.getTokenFlags()&26656&&Pt(!1);case 9:case 10:case 11:return Hn();case 110:case 108:case 106:case 112:case 97:return Wt();case 21:return Au();case 23:return ac();case 19:return I_();case 134:if(!G(bc))break;return O_();case 60:return Lc();case 86:return Hu();case 100:return O_();case 105:return sc();case 44:case 69:if($e()===14)return Hn();break;case 16:return la(!1);case 81:return aa()}return St(E.Expression_expected)}function Au(){let s=J(),p=qe();j(21);let d=ut(Et);return j(22),Ce(D(gn(d),s),p)}function nc(){let s=J();j(26);let p=zt(!0);return D(h.createSpreadElement(p),s)}function rc(){return u()===26?nc():u()===28?D(h.createOmittedExpression(),J()):zt(!0)}function ic(){return Dt(a,rc)}function ac(){let s=J(),p=t.getTokenStart(),d=j(23),b=t.hasPrecedingLineBreak(),S=fn(15,rc);return Or(23,24,d,p),D(de(S,b),s)}function _c(){let s=J(),p=qe();if(ft(26)){let ce=zt(!0);return Ce(D(h.createSpreadAssignment(ce),s),p)}let d=wn(!0);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);let b=ft(42),S=ve(),N=Jr(),X=ft(58),_e=ft(54);if(b||u()===21||u()===30)return q_(s,p,d,b,N,X,_e);let Z;if(S&&u()!==59){let ce=ft(64),Le=ce?ut(()=>zt(!0)):void 0;Z=h.createShorthandPropertyAssignment(N,Le),Z.equalsToken=ce}else{j(59);let ce=ut(()=>zt(!0));Z=h.createPropertyAssignment(N,ce)}return Z.modifiers=d,Z.questionToken=X,Z.exclamationToken=_e,Ce(D(Z,s),p)}function I_(){let s=J(),p=t.getTokenStart(),d=j(19),b=t.hasPrecedingLineBreak(),S=fn(12,_c,!0);return Or(19,20,d,p),D(M(S,b),s)}function O_(){let s=Ze();Ke(!1);let p=J(),d=qe(),b=wn(!1);j(100);let S=ft(42),N=S?1:0,X=Ht(b,al)?2:0,_e=N&&X?K(Mi):N?Wn(Mi):X?R(Mi):Mi(),Z=dn(),ee=Xn(N|X),ce=Jn(59,!1),Le=va(N|X);Ke(s);let je=h.createFunctionExpression(b,S,_e,Z,ee,ce,Le);return Ce(D(je,p),d)}function Mi(){return Fe()?Ka():void 0}function sc(){let s=J();if(j(105),Je(25)){let N=jt();return D(h.createMetaProperty(105,N),s)}let p=J(),d=_n(p,N_(),!1),b;d.kind===233&&(b=d.typeArguments,d=d.expression),u()===29&&Ee(E.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,is(Qe,d));let S=u()===21?tc():void 0;return D(nr(d,b,S),s)}function Br(s,p){let d=J(),b=qe(),S=t.getTokenStart(),N=j(19,p);if(N||s){let X=t.hasPrecedingLineBreak(),_e=xn(1,Kt);Or(19,20,N,S);let Z=Ce(D(rr(_e,X),d),b);return u()===64&&(Ee(E.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),U()),Z}else{let X=lr();return Ce(D(rr(X,void 0),d),b)}}function va(s,p){let d=we();Xe(!!(s&1));let b=Ye();st(!!(s&2));let S=Bt;Bt=!1;let N=Ze();N&&Ke(!1);let X=Br(!!(s&16),p);return N&&Ke(!0),Bt=S,Xe(d),st(b),X}function oc(){let s=J(),p=qe();return j(27),Ce(D(h.createEmptyStatement(),s),p)}function Cu(){let s=J(),p=qe();j(101);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt(),X=Je(93)?Kt():void 0;return Ce(D(Ge(S,N,X),s),p)}function cc(){let s=J(),p=qe();j(92);let d=Kt();j(117);let b=t.getTokenStart(),S=j(21),N=ut(Et);return Or(21,22,S,b),Je(27),Ce(D(h.createDoStatement(d,N),s),p)}function Du(){let s=J(),p=qe();j(117);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Kt();return Ce(D(ir(S,N),s),p)}function lc(){let s=J(),p=qe();j(99);let d=ft(135);j(21);let b;u()!==27&&(u()===115||u()===121||u()===87||u()===160&&G(xc)||u()===135&&G(Sc)?b=B_(!0):b=Ir(Et));let S;if(d?j(165):Je(165)){let N=ut(()=>zt(!0));j(22),S=Ot(d,b,N,Kt())}else if(Je(103)){let N=ut(Et);j(22),S=h.createForInStatement(b,N,Kt())}else{j(27);let N=u()!==27&&u()!==22?ut(Et):void 0;j(27);let X=u()!==22?ut(Et):void 0;j(22),S=Pr(b,N,X,Kt())}return Ce(D(S,s),p)}function uc(s){let p=J(),d=qe();j(s===252?83:88);let b=sr()?void 0:St();Qt();let S=s===252?h.createBreakStatement(b):h.createContinueStatement(b);return Ce(D(S,p),d)}function pc(){let s=J(),p=qe();j(107);let d=sr()?void 0:ut(Et);return Qt(),Ce(D(h.createReturnStatement(d),s),p)}function Pu(){let s=J(),p=qe();j(118);let d=t.getTokenStart(),b=j(21),S=ut(Et);Or(21,22,b,d);let N=Tt(67108864,Kt);return Ce(D(h.createWithStatement(S,N),s),p)}function fc(){let s=J(),p=qe();j(84);let d=ut(Et);j(59);let b=xn(3,Kt);return Ce(D(h.createCaseClause(d,b),s),p)}function Nu(){let s=J();j(90),j(59);let p=xn(3,Kt);return D(h.createDefaultClause(p),s)}function Iu(){return u()===84?fc():Nu()}function dc(){let s=J();j(19);let p=xn(2,Iu);return j(20),D(h.createCaseBlock(p),s)}function Ou(){let s=J(),p=qe();j(109),j(21);let d=ut(Et);j(22);let b=dc();return Ce(D(h.createSwitchStatement(d,b),s),p)}function mc(){let s=J(),p=qe();j(111);let d=t.hasPrecedingLineBreak()?void 0:ut(Et);return d===void 0&&(vn++,d=D(re(""),J())),ia()||xt(d),Ce(D(h.createThrowStatement(d),s),p)}function Mu(){let s=J(),p=qe();j(113);let d=Br(!1),b=u()===85?hc():void 0,S;return(!b||u()===98)&&(j(98,E.catch_or_finally_expected),S=Br(!1)),Ce(D(h.createTryStatement(d,b,S),s),p)}function hc(){let s=J();j(85);let p;Je(21)?(p=U_(),j(22)):p=void 0;let d=Br(!1);return D(h.createCatchClause(p,d),s)}function Ju(){let s=J(),p=qe();return j(89),Qt(),Ce(D(h.createDebuggerStatement(),s),p)}function yc(){let s=J(),p=qe(),d,b=u()===21,S=ut(Et);return tt(S)&&Je(59)?d=h.createLabeledStatement(S,Kt()):(ia()||xt(S),d=In(S),b&&(p=!1)),Ce(D(d,s),p)}function M_(){return U(),wt(u())&&!t.hasPrecedingLineBreak()}function gc(){return U(),u()===86&&!t.hasPrecedingLineBreak()}function bc(){return U(),u()===100&&!t.hasPrecedingLineBreak()}function J_(){return U(),(wt(u())||u()===9||u()===10||u()===11)&&!t.hasPrecedingLineBreak()}function Lu(){for(;;)switch(u()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return j_();case 135:return Ta();case 120:case 156:return uu();case 144:case 145:return Ec();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let s=u();if(U(),t.hasPrecedingLineBreak())return!1;if(s===138&&u()===156)return!0;continue;case 162:return U(),u()===19||u()===80||u()===95;case 102:return U(),u()===11||u()===42||u()===19||wt(u());case 95:let p=U();if(p===156&&(p=G(U)),p===64||p===42||p===19||p===90||p===130||p===60)return!0;continue;case 126:U();continue;default:return!1}}function Ji(){return G(Lu)}function vc(){switch(u()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Ji()||G(oo);case 87:case 95:return Ji();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Ji()||!G(M_);default:return br()}}function Tc(){return U(),Fe()||u()===19||u()===23}function ju(){return G(Tc)}function xc(){return L_(!0)}function L_(s){return U(),s&&u()===165?!1:(Fe()||u()===19)&&!t.hasPrecedingLineBreak()}function j_(){return G(L_)}function Sc(s){return U()===160?L_(s):!1}function Ta(){return G(Sc)}function Kt(){switch(u()){case 27:return oc();case 19:return Br(!1);case 115:return _i(J(),qe(),void 0);case 121:if(ju())return _i(J(),qe(),void 0);break;case 135:if(Ta())return _i(J(),qe(),void 0);break;case 160:if(j_())return _i(J(),qe(),void 0);break;case 100:return Pc(J(),qe(),void 0);case 86:return jc(J(),qe(),void 0);case 101:return Cu();case 92:return cc();case 117:return Du();case 99:return lc();case 88:return uc(251);case 83:return uc(252);case 107:return pc();case 118:return Pu();case 109:return Ou();case 111:return mc();case 113:case 85:case 98:return Mu();case 89:return Ju();case 60:return wc();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Ji())return wc();break}return yc()}function R_(s){return s.kind===138}function wc(){let s=J(),p=qe(),d=wn(!0);if(Ht(d,R_)){let S=xa(s);if(S)return S;for(let N of d)N.flags|=33554432;return Tt(33554432,()=>kc(s,p,d))}else return kc(s,p,d)}function xa(s){return Tt(33554432,()=>{let p=oa(yt,s);if(p)return Ms(p)})}function kc(s,p,d){switch(u()){case 115:case 121:case 87:case 160:case 135:return _i(s,p,d);case 100:return Pc(s,p,d);case 86:return jc(s,p,d);case 120:return Bc(s,p,d);case 156:return Zu(s,p,d);case 94:return V_(s,p,d);case 162:case 144:case 145:return tp(s,p,d);case 102:return ip(s,p,d);case 95:switch(U(),u()){case 90:case 64:return Hc(s,p,d);case 130:return rp(s,p,d);default:return fp(s,p,d)}default:if(d){let b=Gt(282,!0,E.Declaration_expected);return Bp(b,s),b.modifiers=d,b}return}}function Ru(){return U()===11}function Uu(){return U(),u()===161||u()===64}function Ec(){return U(),!t.hasPrecedingLineBreak()&&(ve()||u()===11)}function Sa(s,p){if(u()!==19){if(s&4){fa();return}if(sr()){Qt();return}}return va(s,p)}function Ac(){let s=J();if(u()===28)return D(h.createOmittedExpression(),s);let p=ft(26),d=Li(),b=vr();return D(h.createBindingElement(p,void 0,d,b),s)}function Bu(){let s=J(),p=ft(26),d=Fe(),b=Jr(),S;d&&u()!==59?(S=b,b=void 0):(j(59),S=Li());let N=vr();return D(h.createBindingElement(p,b,S,N),s)}function Cc(){let s=J();j(19);let p=ut(()=>fn(9,Bu));return j(20),D(h.createObjectBindingPattern(p),s)}function qu(){let s=J();j(23);let p=ut(()=>fn(10,Ac));return j(24),D(h.createArrayBindingPattern(p),s)}function wa(){return u()===19||u()===23||u()===81||Fe()}function Li(s){return u()===23?qu():u()===19?Cc():Ka(s)}function Dc(){return U_(!0)}function U_(s){let p=J(),d=qe(),b=Li(E.Private_identifiers_are_not_allowed_in_variable_declarations),S;s&&b.kind===80&&u()===54&&!t.hasPrecedingLineBreak()&&(S=Wt());let N=gr(),X=Uo(u())?void 0:vr(),_e=Bn(b,S,N,X);return Ce(D(_e,p),d)}function B_(s){let p=J(),d=0;switch(u()){case 115:break;case 121:d|=1;break;case 87:d|=2;break;case 160:d|=4;break;case 135:B.assert(Ta()),d|=6,U();break;default:B.fail()}U();let b;if(u()===165&&G(zu))b=lr();else{let S=be();Te(s),b=fn(8,s?U_:Dc),Te(S)}return D(On(b,d),p)}function zu(){return Ai()&&U()===22}function _i(s,p,d){let b=B_(!1);Qt();let S=bn(d,b);return Ce(D(S,s),p)}function Pc(s,p,d){let b=Ye(),S=Rn(d);j(100);let N=ft(42),X=S&2048?Mi():Ka(),_e=N?1:0,Z=S&1024?2:0,ee=dn();S&32&&st(!0);let ce=Xn(_e|Z),Le=Jn(59,!1),je=Sa(_e|Z,E.or_expected);st(b);let Ae=h.createFunctionDeclaration(d,N,X,ee,ce,Le,je);return Ce(D(Ae,s),p)}function Nc(){if(u()===137)return j(137);if(u()===11&&G(U)===21)return le(()=>{let s=Hn();return s.text==="constructor"?s:void 0})}function Fu(s,p,d){return le(()=>{if(Nc()){let b=dn(),S=Xn(0),N=Jn(59,!1),X=Sa(0,E.or_expected),_e=h.createConstructorDeclaration(d,S,X);return _e.typeParameters=b,_e.type=N,Ce(D(_e,s),p)}})}function q_(s,p,d,b,S,N,X,_e){let Z=b?1:0,ee=Ht(d,al)?2:0,ce=dn(),Le=Xn(Z|ee),je=Jn(59,!1),Ae=Sa(Z|ee,_e),Yt=h.createMethodDeclaration(d,b,S,N,ce,Le,je,Ae);return Yt.exclamationToken=X,Ce(D(Yt,s),p)}function Ic(s,p,d,b,S){let N=!S&&!t.hasPrecedingLineBreak()?ft(54):void 0,X=gr(),_e=Dt(90112,vr);Ul(b,X,_e);let Z=h.createPropertyDeclaration(d,b,S||N,X,_e);return Ce(D(Z,s),p)}function ka(s,p,d){let b=ft(42),S=Jr(),N=ft(58);return b||u()===21||u()===30?q_(s,p,d,b,S,N,void 0,E.or_expected):Ic(s,p,d,S,N)}function qr(s,p,d,b,S){let N=Jr(),X=dn(),_e=Xn(0),Z=Jn(59,!1),ee=Sa(S),ce=b===177?h.createGetAccessorDeclaration(d,N,_e,Z,ee):h.createSetAccessorDeclaration(d,N,_e,ee);return ce.typeParameters=X,hs(ce)&&(ce.type=Z),Ce(D(ce,s),p)}function Vu(){let s;if(u()===60)return!0;for(;Wr(u());){if(s=u(),Rg(s))return!0;U()}if(u()===42||(yr()&&(s=u(),U()),u()===23))return!0;if(s!==void 0){if(!di(s)||s===153||s===139)return!0;switch(u()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sr()}}return!1}function Oc(s,p,d){Yn(126);let b=Wu(),S=Ce(D(h.createClassStaticBlockDeclaration(b),s),p);return S.modifiers=d,S}function Wu(){let s=we(),p=Ye();Xe(!1),st(!0);let d=Br(!1);return Xe(s),st(p),d}function Gu(){if(Ye()&&u()===135){let s=J(),p=St(E.Expression_expected);U();let d=_n(s,p,!0);return P_(s,d)}return Ii()}function z_(){let s=J();if(!Je(60))return;let p=Si(Gu);return D(h.createDecorator(p),s)}function Mc(s,p,d){let b=J(),S=u();if(u()===87&&p){if(!le(Za))return}else{if(d&&u()===126&&G(Vc))return;if(s&&u()===126)return;if(!Ds())return}return D(ye(S),b)}function wn(s,p,d){let b=J(),S,N,X,_e=!1,Z=!1,ee=!1;if(s&&u()===60)for(;N=z_();)S=An(S,N);for(;X=Mc(_e,p,d);)X.kind===126&&(_e=!0),S=An(S,X),Z=!0;if(Z&&s&&u()===60)for(;N=z_();)S=An(S,N),ee=!0;if(ee)for(;X=Mc(_e,p,d);)X.kind===126&&(_e=!0),S=An(S,X);return S&&Ct(S,b)}function Jc(){let s;if(u()===134){let p=J();U();let d=D(ye(134),p);s=Ct([d],p)}return s}function Yu(){let s=J(),p=qe();if(u()===27)return U(),Ce(D(h.createSemicolonClassElement(),s),p);let d=wn(!0,!0,!0);if(u()===126&&G(Vc))return Oc(s,p,d);if(ti(139))return qr(s,p,d,177,0);if(ti(153))return qr(s,p,d,178,0);if(u()===137||u()===11){let b=Fu(s,p,d);if(b)return b}if(Rr())return d_(s,p,d);if(wt(u())||u()===11||u()===9||u()===10||u()===42||u()===23)if(Ht(d,R_)){for(let S of d)S.flags|=33554432;return Tt(33554432,()=>ka(s,p,d))}else return ka(s,p,d);if(d){let b=Gt(80,!0,E.Declaration_expected);return Ic(s,p,d,b,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Lc(){let s=J(),p=qe(),d=wn(!0);if(u()===86)return Ea(s,p,d,231);let b=Gt(282,!0,E.Expression_expected);return Bp(b,s),b.modifiers=d,b}function Hu(){return Ea(J(),qe(),void 0,231)}function jc(s,p,d){return Ea(s,p,d,263)}function Ea(s,p,d,b){let S=Ye();j(86);let N=Xu(),X=dn();Ht(d,Rb)&&st(!0);let _e=F_(),Z;j(19)?(Z=Uc(),j(20)):Z=lr(),st(S);let ee=b===263?h.createClassDeclaration(d,N,X,_e,Z):h.createClassExpression(d,N,X,_e,Z);return Ce(D(ee,s),p)}function Xu(){return Fe()&&!$u()?or(Fe()):void 0}function $u(){return u()===119&&G(Yl)}function F_(){if(Rc())return xn(22,Qu)}function Qu(){let s=J(),p=u();B.assert(p===96||p===119),U();let d=fn(7,Ku);return D(h.createHeritageClause(p,d),s)}function Ku(){let s=J(),p=Ii();if(p.kind===233)return p;let d=Aa();return D(h.createExpressionWithTypeArguments(p,d),s)}function Aa(){return u()===30?Lr(20,ot,30,32):void 0}function Rc(){return u()===96||u()===119}function Uc(){return xn(5,Yu)}function Bc(s,p,d){j(120);let b=St(),S=dn(),N=F_(),X=lo(),_e=h.createInterfaceDeclaration(d,b,S,N,X);return Ce(D(_e,s),p)}function Zu(s,p,d){j(156),t.hasPrecedingLineBreak()&&Ee(E.Line_break_not_permitted_here);let b=St(),S=dn();j(64);let N=u()===141&&le(yo)||ot();Qt();let X=h.createTypeAliasDeclaration(d,b,S,N);return Ce(D(X,s),p)}function ep(){let s=J(),p=qe(),d=Jr(),b=ut(vr);return Ce(D(h.createEnumMember(d,b),s),p)}function V_(s,p,d){j(94);let b=St(),S;j(19)?(S=xe(()=>fn(6,ep)),j(20)):S=lr();let N=h.createEnumDeclaration(d,b,S);return Ce(D(N,s),p)}function qc(){let s=J(),p;return j(19)?(p=xn(1,Kt),j(20)):p=lr(),D(h.createModuleBlock(p),s)}function W_(s,p,d,b){let S=b&32,N=b&8?jt():St(),X=Je(25)?W_(J(),!1,void 0,8|S):qc(),_e=h.createModuleDeclaration(d,N,X,b);return Ce(D(_e,s),p)}function zc(s,p,d){let b=0,S;u()===162?(S=St(),b|=2048):(S=Hn(),S.text=Mr(S.text));let N;u()===19?N=qc():Qt();let X=h.createModuleDeclaration(d,S,N,b);return Ce(D(X,s),p)}function tp(s,p,d){let b=0;if(u()===162)return zc(s,p,d);if(Je(145))b|=32;else if(j(144),u()===11)return zc(s,p,d);return W_(s,p,d,b)}function np(){return u()===149&&G(Fc)}function Fc(){return U()===21}function Vc(){return U()===19}function G_(){return U()===44}function rp(s,p,d){j(130),j(145);let b=St();Qt();let S=h.createNamespaceExportDeclaration(b);return S.modifiers=d,Ce(D(S,s),p)}function ip(s,p,d){j(102);let b=t.getTokenFullStart(),S;ve()&&(S=St());let N=!1;if((S==null?void 0:S.escapedText)==="type"&&(u()!==161||ve()&&G(Uu))&&(ve()||_p())&&(N=!0,S=ve()?St():void 0),S&&!zr())return sp(s,p,d,S,N);let X=si(S,b,N),_e=Ri(),Z=Wc();Qt();let ee=h.createImportDeclaration(d,X,_e,Z);return Ce(D(ee,s),p)}function si(s,p,d,b=!1){let S;return(s||u()===42||u()===19)&&(S=op(s,p,d,b),j(161)),S}function Wc(){let s=u();if((s===118||s===132)&&!t.hasPrecedingLineBreak())return Y_(s)}function ap(){let s=J(),p=wt(u())?jt():ri(11);j(59);let d=zt(!0);return D(h.createImportAttribute(p,d),s)}function Y_(s,p){let d=J();p||j(s);let b=t.getTokenStart();if(j(19)){let S=t.hasPrecedingLineBreak(),N=fn(24,ap,!0);if(!j(20)){let X=Gi(_t);X&&X.code===E._0_expected.code&&nl(X,Oa(Mt,Qe,b,1,E.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return D(h.createImportAttributes(N,S,s),d)}else{let S=Ct([],J(),void 0,!1);return D(h.createImportAttributes(S,!1,s),d)}}function _p(){return u()===42||u()===19}function zr(){return u()===28||u()===161}function sp(s,p,d,b,S){j(64);let N=cp();Qt();let X=h.createImportEqualsDeclaration(d,S,b,N);return Ce(D(X,s),p)}function op(s,p,d,b){let S;return(!s||Je(28))&&(b&&t.setSkipJsDocLeadingAsterisks(!0),S=u()===42?lp():Gc(275),b&&t.setSkipJsDocLeadingAsterisks(!1)),D(h.createImportClause(d,s,S),p)}function cp(){return np()?ji():jr(!1)}function ji(){let s=J();j(149),j(21);let p=Ri();return j(22),D(h.createExternalModuleReference(p),s)}function Ri(){if(u()===11){let s=Hn();return s.text=Mr(s.text),s}else return Et()}function lp(){let s=J();j(42),j(130);let p=St();return D(h.createNamespaceImport(p),s)}function H_(){return wt(u())||u()===11}function oi(s){return u()===11?Hn():s()}function Gc(s){let p=J(),d=s===275?h.createNamedImports(Lr(23,ci,19,20)):h.createNamedExports(Lr(23,up,19,20));return D(d,p)}function up(){let s=qe();return Ce(Yc(281),s)}function ci(){return Yc(276)}function Yc(s){let p=J(),d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),N=!1,X,_e=!0,Z=oi(jt);if(Z.kind===80&&Z.escapedText==="type")if(u()===130){let Le=jt();if(u()===130){let je=jt();H_()?(N=!0,X=Le,Z=oi(ce),_e=!1):(X=Z,Z=je,_e=!1)}else H_()?(X=Z,_e=!1,Z=oi(ce)):(N=!0,Z=Le)}else H_()&&(N=!0,Z=oi(ce));_e&&u()===130&&(X=Z,j(130),Z=oi(ce)),s===276&&(Z.kind!==80?(rt(Ar(Qe,Z.pos),Z.end,E.Identifier_expected),Z=yi(Gt(80,!1),Z.pos,Z.pos)):d&&rt(b,S,E.Identifier_expected));let ee=s===276?h.createImportSpecifier(N,X,Z):h.createExportSpecifier(N,X,Z);return D(ee,p);function ce(){return d=di(u())&&!ve(),b=t.getTokenStart(),S=t.getTokenEnd(),jt()}}function pp(s){return D(h.createNamespaceExport(oi(jt)),s)}function fp(s,p,d){let b=Ye();st(!0);let S,N,X,_e=Je(156),Z=J();Je(42)?(Je(130)&&(S=pp(Z)),j(161),N=Ri()):(S=Gc(279),(u()===161||u()===11&&!t.hasPrecedingLineBreak())&&(j(161),N=Ri()));let ee=u();N&&(ee===118||ee===132)&&!t.hasPrecedingLineBreak()&&(X=Y_(ee)),Qt(),st(b);let ce=h.createExportDeclaration(d,_e,S,N,X);return Ce(D(ce,s),p)}function Hc(s,p,d){let b=Ye();st(!0);let S;Je(64)?S=!0:j(90);let N=zt(!0);Qt(),st(b);let X=h.createExportAssignment(d,S,N);return Ce(D(X,s),p)}let X_;(s=>{s[s.SourceElements=0]="SourceElements",s[s.BlockStatements=1]="BlockStatements",s[s.SwitchClauses=2]="SwitchClauses",s[s.SwitchClauseStatements=3]="SwitchClauseStatements",s[s.TypeMembers=4]="TypeMembers",s[s.ClassMembers=5]="ClassMembers",s[s.EnumMembers=6]="EnumMembers",s[s.HeritageClauseElement=7]="HeritageClauseElement",s[s.VariableDeclarations=8]="VariableDeclarations",s[s.ObjectBindingElements=9]="ObjectBindingElements",s[s.ArrayBindingElements=10]="ArrayBindingElements",s[s.ArgumentExpressions=11]="ArgumentExpressions",s[s.ObjectLiteralMembers=12]="ObjectLiteralMembers",s[s.JsxAttributes=13]="JsxAttributes",s[s.JsxChildren=14]="JsxChildren",s[s.ArrayLiteralMembers=15]="ArrayLiteralMembers",s[s.Parameters=16]="Parameters",s[s.JSDocParameters=17]="JSDocParameters",s[s.RestProperties=18]="RestProperties",s[s.TypeParameters=19]="TypeParameters",s[s.TypeArguments=20]="TypeArguments",s[s.TupleElementTypes=21]="TupleElementTypes",s[s.HeritageClauses=22]="HeritageClauses",s[s.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",s[s.ImportAttributes=24]="ImportAttributes",s[s.JSDocComment=25]="JSDocComment",s[s.Count=26]="Count"})(X_||(X_={}));let $_;(s=>{s[s.False=0]="False",s[s.True=1]="True",s[s.Unknown=2]="Unknown"})($_||($_={}));let Xc;(s=>{function p(ee,ce,Le){zn("file.js",ee,99,void 0,1,0),t.setText(ee,ce,Le),lt=t.scan();let je=d(),Ae=se("file.js",99,1,!1,[],ye(1),0,Fa),Yt=qi(_t,Ae);return Ut&&(Ae.jsDocDiagnostics=qi(Ut,Ae)),Fn(),je?{jsDocTypeExpression:je,diagnostics:Yt}:void 0}s.parseJSDocTypeExpressionForTests=p;function d(ee){let ce=J(),Le=(ee?Je:j)(19),je=Tt(16777216,l_);(!ee||Le)&&Es(20);let Ae=h.createJSDocTypeExpression(je);return L(Ae),D(Ae,ce)}s.parseJSDocTypeExpression=d;function b(){let ee=J(),ce=Je(19),Le=J(),je=jr(!1);for(;u()===81;)Nt(),ze(),je=D(h.createJSDocMemberName(je,St()),Le);ce&&Es(20);let Ae=h.createJSDocNameReference(je);return L(Ae),D(Ae,ee)}s.parseJSDocNameReference=b;function S(ee,ce,Le){zn("",ee,99,void 0,1,0);let je=Tt(16777216,()=>Z(ce,Le)),Yt=qi(_t,{languageVariant:0,text:ee});return Fn(),je?{jsDoc:je,diagnostics:Yt}:void 0}s.parseIsolatedJSDocComment=S;function N(ee,ce,Le){let je=lt,Ae=_t.length,Yt=rn,mn=Tt(16777216,()=>Z(ce,Le));return Sf(mn,ee),nt&524288&&(Ut||(Ut=[]),Dn(Ut,_t,Ae)),lt=je,_t.length=Ae,rn=Yt,mn}s.parseJSDocComment=N;let X;(ee=>{ee[ee.BeginningOfLine=0]="BeginningOfLine",ee[ee.SawAsterisk=1]="SawAsterisk",ee[ee.SavingComments=2]="SavingComments",ee[ee.SavingBackticks=3]="SavingBackticks"})(X||(X={}));let _e;(ee=>{ee[ee.Property=1]="Property",ee[ee.Parameter=2]="Parameter",ee[ee.CallbackParameter=4]="CallbackParameter"})(_e||(_e={}));function Z(ee=0,ce){let Le=Qe,je=ce===void 0?Le.length:ee+ce;if(ce=je-ee,B.assert(ee>=0),B.assert(ee<=je),B.assert(je<=Le.length),!k6(Le,ee))return;let Ae,Yt,mn,Zt,ur,Ln=[],Fr=[],dp=yt;yt|=1<<25;let De=t.scanRange(ee+3,ce-5,et);return yt=dp,De;function et(){let O=1,Y,H=ee-(Le.lastIndexOf(` +`,ee)+1)+4;function te(Ue){Y||(Y=H),Ln.push(Ue),H+=Ue.length}for(ze();Bi(5););Bi(4)&&(O=0,H=0);e:for(;;){switch(u()){case 60:Ca(Ln),ur||(ur=J()),pe(q(H)),O=0,Y=void 0;break;case 4:Ln.push(t.getTokenText()),O=0,H=0;break;case 42:let Ue=t.getTokenText();O===1?(O=2,te(Ue)):(B.assert(O===0),O=1,H+=Ue.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();Y!==void 0&&H+pt.length>Y&&Ln.push(pt.slice(Y-H)),H+=pt.length;break;case 1:break e;case 82:O=2,te(t.getTokenValue());break;case 19:O=2;let hn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,tn=_(sn);if(tn){Zt||pr(Ln),Fr.push(D(h.createJSDocText(Ln.join("")),Zt??ee,hn)),Fr.push(tn),Ln=[],Zt=t.getTokenEnd();break}default:O=2,te(t.getTokenText());break}O===2?an(!1):ze()}let ne=Ln.join("").trimEnd();Fr.length&&ne.length&&Fr.push(D(h.createJSDocText(ne),Zt??ee,ur)),Fr.length&&Ae&&B.assertIsDefined(ur,"having parsed tags implies that the end of the comment span should be set");let Pe=Ae&&Ct(Ae,Yt,mn);return D(h.createJSDocComment(Fr.length?Ct(Fr,ee,ur):ne.length?ne:void 0,Pe),ee,je)}function pr(O){for(;O.length&&(O[0]===` +`||O[0]==="\r");)O.shift()}function Ca(O){for(;O.length;){let Y=O[O.length-1].trimEnd();if(Y==="")O.pop();else if(Y.lengthpt&&(te.push(Qn.slice(pt-O)),Ue=2),O+=Qn.length;break;case 19:Ue=2;let Qc=t.getTokenFullStart(),Pa=t.getTokenEnd()-1,Kc=_(Pa);Kc?(ne.push(D(h.createJSDocText(te.join("")),Pe??H,Qc)),ne.push(Kc),te=[],Pe=t.getTokenEnd()):hn(t.getTokenText());break;case 62:Ue===3?Ue=2:Ue=3,hn(t.getTokenText());break;case 82:Ue!==3&&(Ue=2),hn(t.getTokenValue());break;case 42:if(Ue===0){Ue=1,O+=1;break}default:Ue!==3&&(Ue=2),hn(t.getTokenText());break}Ue===2||Ue===3?sn=an(Ue===3):sn=ze()}pr(te);let tn=te.join("").trimEnd();if(ne.length)return tn.length&&ne.push(D(h.createJSDocText(tn),Pe??H)),Ct(ne,H,t.getTokenEnd());if(tn.length)return tn}function _(O){let Y=le(f);if(!Y)return;ze(),It();let H=c(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),ze();let ne=Y==="link"?h.createJSDocLink:Y==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return D(ne(H,te.join("")),O,t.getTokenEnd())}function c(){if(wt(u())){let O=J(),Y=jt();for(;Je(25);)Y=D(h.createQualifiedName(Y,u()===81?Gt(80,!1):jt()),O);for(;u()===81;)Nt(),ze(),Y=D(h.createJSDocMemberName(Y,St()),O);return Y}}function f(){if(xr(),u()===19&&ze()===60&&wt(ze())){let O=t.getTokenValue();if(w(O))return O}}function w(O){return O==="link"||O==="linkcode"||O==="linkplain"}function F(O,Y,H,te){return D(h.createJSDocUnknownTag(Y,n(O,J(),H,te)),O)}function pe(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),mn=O.end)}function Re(){return xr(),u()===19?d():void 0}function en(){let O=Bi(23);O&&It();let Y=Bi(62),H=$0();return Y&&ql(62),O&&(It(),ft(64)&&Et(),j(24)),{name:H,isBracketed:O}}function kn(O){switch(O.kind){case 151:return!0;case 188:return kn(O.elementType);default:return Df(O)&&tt(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function $n(O,Y,H,te){let ne=Re(),Pe=!ne;xr();let{name:Ue,isBracketed:pt}=en(),hn=xr();Pe&&!G(f)&&(ne=Re());let sn=n(O,J(),te,hn),tn=Da(ne,Ue,H,te);tn&&(ne=tn,Pe=!0);let Qn=H===1?h.createJSDocPropertyTag(Y,Ue,pt,ne,Pe,sn):h.createJSDocParameterTag(Y,Ue,pt,ne,Pe,sn);return D(Qn,O)}function Da(O,Y,H,te){if(O&&kn(O.type)){let ne=J(),Pe,Ue;for(;Pe=le(()=>hp(H,te,Y));)Pe.kind===341||Pe.kind===348?Ue=An(Ue,Pe):Pe.kind===345&&ln(Pe.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ue){let pt=D(h.createJSDocTypeLiteral(Ue,O.type.kind===188),ne);return D(h.createJSDocTypeExpression(pt),ne)}}}function P0(O,Y,H,te){Ht(Ae,p6)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=Re();return D(h.createJSDocReturnTag(Y,ne,n(O,J(),H,te)),O)}function md(O,Y,H,te){Ht(Ae,Ff)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=d(!0),Pe=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocTypeTag(Y,ne,Pe),O)}function N0(O,Y,H,te){let Pe=u()===23||G(()=>ze()===60&&wt(ze())&&w(t.getTokenValue()))?void 0:b(),Ue=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocSeeTag(Y,Pe,Ue),O)}function I0(O,Y,H,te){let ne=Re(),Pe=n(O,J(),H,te);return D(h.createJSDocThrowsTag(Y,ne,Pe),O)}function O0(O,Y,H,te){let ne=J(),Pe=M0(),Ue=t.getTokenFullStart(),pt=n(O,Ue,H,te);pt||(Ue=t.getTokenFullStart());let hn=typeof pt!="string"?Ct(Yp([D(Pe,ne,Ue)],pt),ne):Pe.text+pt;return D(h.createJSDocAuthorTag(Y,hn),O)}function M0(){let O=[],Y=!1,H=t.getToken();for(;H!==1&&H!==4;){if(H===30)Y=!0;else{if(H===60&&!Y)break;if(H===32&&Y){O.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}O.push(t.getTokenText()),H=ze()}return h.createJSDocText(O.join(""))}function J0(O,Y,H,te){let ne=hd();return D(h.createJSDocImplementsTag(Y,ne,n(O,J(),H,te)),O)}function L0(O,Y,H,te){let ne=hd();return D(h.createJSDocAugmentsTag(Y,ne,n(O,J(),H,te)),O)}function j0(O,Y,H,te){let ne=d(!1),Pe=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocSatisfiesTag(Y,ne,Pe),O)}function R0(O,Y,H,te){let ne=t.getTokenFullStart(),Pe;ve()&&(Pe=St());let Ue=si(Pe,ne,!0,!0),pt=Ri(),hn=Wc(),sn=H!==void 0&&te!==void 0?n(O,J(),H,te):void 0;return D(h.createJSDocImportTag(Y,Ue,pt,hn,sn),O)}function hd(){let O=Je(19),Y=J(),H=U0();t.setSkipJsDocLeadingAsterisks(!0);let te=Aa();t.setSkipJsDocLeadingAsterisks(!1);let ne=h.createExpressionWithTypeArguments(H,te),Pe=D(ne,Y);return O&&j(20),Pe}function U0(){let O=J(),Y=li();for(;Je(25);){let H=li();Y=D(ae(Y,H),O)}return Y}function Ui(O,Y,H,te,ne){return D(Y(H,n(O,J(),te,ne)),O)}function yd(O,Y,H,te){let ne=d(!0);return It(),D(h.createJSDocThisTag(Y,ne,n(O,J(),H,te)),O)}function B0(O,Y,H,te){let ne=d(!0);return It(),D(h.createJSDocEnumTag(Y,ne,n(O,J(),H,te)),O)}function q0(O,Y,H,te){let ne=Re();xr();let Pe=mp();It();let Ue=i(H),pt;if(!ne||kn(ne.type)){let sn,tn,Qn,Qc=!1;for(;(sn=le(()=>G0(H)))&&sn.kind!==345;)if(Qc=!0,sn.kind===344)if(tn){let Pa=Ee(E.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Pa&&nl(Pa,Oa(Mt,Qe,0,0,E.The_tag_was_first_specified_here));break}else tn=sn;else Qn=An(Qn,sn);if(Qc){let Pa=ne&&ne.type.kind===188,Kc=h.createJSDocTypeLiteral(Qn,Pa);ne=tn&&tn.typeExpression&&!kn(tn.typeExpression.type)?tn.typeExpression:D(Kc,O),pt=ne.end}}pt=pt||Ue!==void 0?J():(Pe??ne??Y).end,Ue||(Ue=n(O,pt,H,te));let hn=h.createJSDocTypedefTag(Y,ne,Pe,Ue);return D(hn,O,pt)}function mp(O){let Y=t.getTokenStart();if(!wt(u()))return;let H=li();if(Je(25)){let te=mp(!0),ne=h.createModuleDeclaration(void 0,H,te,O?8:void 0);return D(ne,Y)}return O&&(H.flags|=4096),H}function z0(O){let Y=J(),H,te;for(;H=le(()=>hp(4,O));){if(H.kind===345){ln(H.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}te=An(te,H)}return Ct(te||[],Y)}function gd(O,Y){let H=z0(Y),te=le(()=>{if(Bi(60)){let ne=q(Y);if(ne&&ne.kind===342)return ne}});return D(h.createJSDocSignature(void 0,H,te),O)}function F0(O,Y,H,te){let ne=mp();It();let Pe=i(H),Ue=gd(O,H);Pe||(Pe=n(O,J(),H,te));let pt=Pe!==void 0?J():Ue.end;return D(h.createJSDocCallbackTag(Y,Ue,ne,Pe),O,pt)}function V0(O,Y,H,te){It();let ne=i(H),Pe=gd(O,H);ne||(ne=n(O,J(),H,te));let Ue=ne!==void 0?J():Pe.end;return D(h.createJSDocOverloadTag(Y,Pe,ne),O,Ue)}function W0(O,Y){for(;!tt(O)||!tt(Y);)if(!tt(O)&&!tt(Y)&&O.right.escapedText===Y.right.escapedText)O=O.left,Y=Y.left;else return!1;return O.escapedText===Y.escapedText}function G0(O){return hp(1,O)}function hp(O,Y,H){let te=!0,ne=!1;for(;;)switch(ze()){case 60:if(te){let Pe=Y0(O,Y);return Pe&&(Pe.kind===341||Pe.kind===348)&&H&&(tt(Pe.name)||!W0(H,Pe.name.left))?!1:Pe}ne=!1;break;case 4:te=!0,ne=!1;break;case 42:ne&&(te=!1),ne=!0;break;case 80:te=!1;break;case 1:return!1}}function Y0(O,Y){B.assert(u()===60);let H=t.getTokenFullStart();ze();let te=li(),ne=xr(),Pe;switch(te.escapedText){case"type":return O===1&&md(H,te);case"prop":case"property":Pe=1;break;case"arg":case"argument":case"param":Pe=6;break;case"template":return bd(H,te,Y,ne);case"this":return yd(H,te,Y,ne);default:return!1}return O&Pe?$n(H,te,O,Y):!1}function H0(){let O=J(),Y=Bi(23);Y&&It();let H=wn(!1,!0),te=li(E.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ne;if(Y&&(It(),j(64),ne=Tt(16777216,l_),j(24)),!Hi(te))return D(h.createTypeParameterDeclaration(H,te,void 0,ne),O)}function X0(){let O=J(),Y=[];do{It();let H=H0();H!==void 0&&Y.push(H),xr()}while(Bi(28));return Ct(Y,O)}function bd(O,Y,H,te){let ne=u()===19?d():void 0,Pe=X0();return D(h.createJSDocTemplateTag(Y,ne,Pe,n(O,J(),H,te)),O)}function Bi(O){return u()===O?(ze(),!0):!1}function $0(){let O=li();for(Je(23)&&j(24);Je(25);){let Y=li();Je(23)&&j(24),O=Hl(O,Y)}return O}function li(O){if(!wt(u()))return Gt(80,!O,O||E.Identifier_expected);vn++;let Y=t.getTokenStart(),H=t.getTokenEnd(),te=u(),ne=Mr(t.getTokenValue()),Pe=D(re(ne,te),Y,H);return ze(),Pe}}})(Xc=e.JSDocParser||(e.JSDocParser={}))})($i||($i={}));var xm=new WeakSet;function J6(e){xm.has(e)&&B.fail("Source file has already been incrementally parsed"),xm.add(e)}var hh=new WeakSet;function L6(e){return hh.has(e)}function Wp(e){hh.add(e)}var vl;(e=>{function t(x,I,re,he){if(he=he||B.shouldAssert(2),h(x,I,re,he),fg(re))return x;if(x.statements.length===0)return $i.parseSourceFile(x.fileName,I,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);J6(x),$i.fixupParentReferences(x);let ye=x.text,de=y(x),M=l(x,re);h(x,I,M,he),B.assert(M.span.start<=re.span.start),B.assert(wr(M.span)===wr(re.span)),B.assert(wr(K_(M))===wr(K_(re)));let ae=K_(M).length-M.span.length;P(x,M.span.start,wr(M.span),wr(K_(M)),ae,ye,I,he);let Oe=$i.parseSourceFile(x.fileName,I,x.languageVersion,de,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return Oe.commentDirectives=a(x.commentDirectives,Oe.commentDirectives,M.span.start,wr(M.span),ae,ye,I,he),Oe.impliedNodeFormat=x.impliedNodeFormat,h6(x,Oe),Oe}e.updateSourceFile=t;function a(x,I,re,he,ye,de,M,ae){if(!x)return I;let Oe,V=!1;for(let W of x){let{range:dt,type:nr}=W;if(dt.endhe){oe();let gn={range:{pos:dt.pos+ye,end:dt.end+ye},type:nr};Oe=An(Oe,gn),ae&&B.assert(de.substring(dt.pos,dt.end)===M.substring(gn.range.pos,gn.range.end))}}return oe(),Oe;function oe(){V||(V=!0,Oe?I&&Oe.push(...I):Oe=I)}}function o(x,I,re,he,ye,de,M){re?Oe(x):ae(x);return;function ae(V){let oe="";if(M&&m(V)&&(oe=ye.substring(V.pos,V.end)),Kd(V,I),yi(V,V.pos+he,V.end+he),M&&m(V)&&B.assert(oe===de.substring(V.pos,V.end)),Xt(V,ae,Oe),Yi(V))for(let W of V.jsDoc)ae(W);A(V,M)}function Oe(V){yi(V,V.pos+he,V.end+he);for(let oe of V)ae(oe)}}function m(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function v(x,I,re,he,ye){B.assert(x.end>=I,"Adjusting an element that was entirely before the change range"),B.assert(x.pos<=re,"Adjusting an element that was entirely after the change range"),B.assert(x.pos<=x.end);let de=Math.min(x.pos,he),M=x.end>=re?x.end+ye:Math.min(x.end,he);if(B.assert(de<=M),x.parent){let ae=x.parent;B.assertGreaterThanOrEqual(de,ae.pos),B.assertLessThanOrEqual(M,ae.end)}yi(x,de,M)}function A(x,I){if(I){let re=x.pos,he=ye=>{B.assert(ye.pos>=re),re=ye.end};if(Yi(x))for(let ye of x.jsDoc)he(ye);Xt(x,he),B.assert(re<=x.end)}}function P(x,I,re,he,ye,de,M,ae){Oe(x);return;function Oe(oe){if(B.assert(oe.pos<=oe.end),oe.pos>re){o(oe,x,!1,ye,de,M,ae);return}let W=oe.end;if(W>=I){if(Wp(oe),Kd(oe,x),v(oe,I,re,he,ye),Xt(oe,Oe,V),Yi(oe))for(let dt of oe.jsDoc)Oe(dt);A(oe,ae);return}B.assert(Wre){o(oe,x,!0,ye,de,M,ae);return}let W=oe.end;if(W>=I){Wp(oe),v(oe,I,re,he,ye);for(let dt of oe)Oe(dt);return}B.assert(W0&&M<=1;M++){let ae=Q(x,he);B.assert(ae.pos<=he);let Oe=ae.pos;he=Math.max(0,Oe-1)}let ye=pg(he,wr(I.span)),de=I.newLength+(I.span.start-he);return Km(ye,de)}function Q(x,I){let re=x,he;if(Xt(x,de),he){let M=ye(he);M.pos>re.pos&&(re=M)}return re;function ye(M){for(;;){let ae=Q2(M);if(ae)M=ae;else return M}}function de(M){if(!Hi(M))if(M.pos<=I){if(M.pos>=re.pos&&(re=M),II),!0}}function h(x,I,re,he){let ye=x.text;if(re&&(B.assert(ye.length-re.span.length+re.newLength===I.length),he||B.shouldAssert(3))){let de=ye.substr(0,re.span.start),M=I.substr(0,re.span.start);B.assert(de===M);let ae=ye.substring(wr(re.span),ye.length),Oe=I.substring(wr(K_(re)),I.length);B.assert(ae===Oe)}}function y(x){let I=x.statements,re=0;B.assert(re=V.pos&&M=V.pos&&M{x[x.Value=-1]="Value"})(g||(g={}))})(vl||(vl={}));function j6(e){return R6(e)!==void 0}function R6(e){let t=Rm(e,gb,!1);if(t)return t;if(Oy(e,".ts")){let a=jm(e),o=a.lastIndexOf(".d.");if(o>=0)return a.substring(o)}}function U6(e,t,a,o){if(e){if(e==="import")return 99;if(e==="require")return 1;o(t,a-t,E.resolution_mode_should_be_either_require_or_import)}}function B6(e,t){let a=[];for(let o of Jp(t,0)||bt){let m=t.substring(o.pos,o.end);W6(a,o,m)}e.pragmas=new Map;for(let o of a){if(e.pragmas.has(o.name)){let m=e.pragmas.get(o.name);m instanceof Array?m.push(o.args):e.pragmas.set(o.name,[m,o.args]);continue}e.pragmas.set(o.name,o.args)}}function q6(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((a,o)=>{switch(o){case"reference":{let m=e.referencedFiles,v=e.typeReferenceDirectives,A=e.libReferenceDirectives;Un(bp(a),P=>{let{types:l,lib:Q,path:h,["resolution-mode"]:y,preserve:g}=P.arguments,x=g==="true"?!0:void 0;if(P.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let I=U6(y,l.pos,l.end,t);v.push({pos:l.pos,end:l.end,fileName:l.value,...I?{resolutionMode:I}:{},...x?{preserve:x}:{}})}else Q?A.push({pos:Q.pos,end:Q.end,fileName:Q.value,...x?{preserve:x}:{}}):h?m.push({pos:h.pos,end:h.end,fileName:h.value,...x?{preserve:x}:{}}):t(P.range.pos,P.range.end-P.range.pos,E.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Pp(bp(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)e.moduleName&&t(m.range.pos,m.range.end-m.range.pos,E.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=m.arguments.name;else e.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{Un(bp(a),m=>{(!e.checkJsDirective||m.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:o==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Dp=new Map;function z6(e){if(Dp.has(e))return Dp.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Dp.set(e,t),t}var F6=/^\/\/\/\s*<(\S+)\s.*?\/>/m,V6=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function W6(e,t,a){let o=t.kind===2&&F6.exec(a);if(o){let v=o[1].toLowerCase(),A=Lm[v];if(!A||!(A.kind&1))return;if(A.args){let P={};for(let l of A.args){let h=z6(l.name).exec(a);if(!h&&!l.optional)return;if(h){let y=h[2]||h[3];if(l.captureSpan){let g=t.pos+h.index+h[1].length+1;P[l.name]={value:y,pos:g,end:g+y.length}}else P[l.name]=y}}e.push({name:v,args:{arguments:P,range:t}})}else e.push({name:v,args:{arguments:{},range:t}});return}let m=t.kind===2&&V6.exec(a);if(m)return Sm(e,t,2,m);if(t.kind===3){let v=/@(\S+)(\s+(?:\S.*)?)?$/gm,A;for(;A=v.exec(a);)Sm(e,t,4,A)}}function Sm(e,t,a,o){if(!o)return;let m=o[1].toLowerCase(),v=Lm[m];if(!v||!(v.kind&a))return;let A=o[2],P=G6(v,A);P!=="fail"&&e.push({name:m,args:{arguments:P,range:t}})}function G6(e,t){if(!t)return{};if(!e.args)return{};let a=t.trim().split(/\s+/),o={};for(let m=0;mo.kind<309||o.kind>351);return a.kind<166?a:a.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),a=Gi(t);if(a)return a.kind<166?a:a.getLastToken(e)}forEachChild(e,t){return Xt(this,e,t)}};function Y6(e,t){let a=[];if(Zg(e))return e.forEachChild(A=>{a.push(A)}),a;ss.setText((t||e.getSourceFile()).text);let o=e.pos,m=A=>{os(a,o,A.pos,e),a.push(A),o=A.end},v=A=>{os(a,o,A.pos,e),a.push(H6(A,e)),o=A.end};return Un(e.jsDoc,m),o=e.pos,e.forEachChild(m,v),os(a,o,e.end,e),ss.setText(void 0),a}function os(e,t,a,o){for(ss.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function ll(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Th))){let o=new Set;for(let m of e){let v=xh(t,m,A=>{var P;if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualJsDocTags(m,t):((P=A.declarations)==null?void 0:P.length)===1?A.getJsDocTags(t):void 0});v&&(a=[...v,...a])}}return a}function _s(e,t){if(!e)return bt;let a=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(a.length===0||e.some(Th))){let o=new Set;for(let m of e){let v=xh(t,m,A=>{if(!o.has(A))return o.add(A),m.kind===177||m.kind===178?A.getContextualDocumentationComment(m,t):A.getDocumentationComment(t)});v&&(a=a.length===0?v.slice():v.concat(lineBreakPart(),a))}}return a}function xh(e,t,a){var o;let m=((o=t.parent)==null?void 0:o.kind)===176?t.parent.parent:t.parent;if(!m)return;let v=B2(t);return ny(N2(m),A=>{let P=e.getTypeAtLocation(A),l=v&&P.symbol?e.getTypeOfSymbol(P.symbol):P,Q=e.getPropertyOfType(l,t.symbol.name);return Q?a(Q):void 0})}var K6=class extends Gf{constructor(e,t,a){super(e,t,a)}update(e,t){return M6(this,e,t)}getLineAndCharacterOfPosition(e){return Wm(this,e)}getLineStarts(){return Mp(this)}getPositionOfLineAndCharacter(e,t,a){return ng(Mp(this),e,t,this.text,a)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),a=this.getLineStarts(),o;t+1>=a.length&&(o=this.getEnd()),o||(o=a[t+1]-1);let m=this.getFullText();return m[o]===` +`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=hy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=lf(v);return A&&(kf(A)&&Hr(A.expression)?A.expression.name.text:s1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Gi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Xt(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Xt(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Vg(h.name)){Xt(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(eh(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:yf(v)!==0&&t(v);default:Xt(v,m)}}}},Z6=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Wm(this,e)}};function ev(){return{getNodeConstructor:()=>Gf,getTokenConstructor:()=>gh,getIdentifierConstructor:()=>bh,getPrivateIdentifierConstructor:()=>vh,getSourceFileConstructor:()=>K6,getSymbolConstructor:()=>X6,getTypeConstructor:()=>$6,getSignatureConstructor:()=>Q6,getSourceMapSourceConstructor:()=>Z6}}var tv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],b3=[...tv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];_b(ev());var Il=new Proxy({},{get:()=>!0});var wh=Il["4.8"];function er(e,t=!1){var a;if(e!=null){if(wh){if(t||Nl(e)){let o=t1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!El(o))}}function ta(e,t=!1){var a;if(e!=null){if(wh){if(t||Wf(e)){let o=uf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(El)}}var Eh={};var Ol=new Proxy({},{get:(e,t)=>t});var Ah=Ol,Ch=Ol;var C=Ah,Rt=Ch;var Dh=Il["5.0"],ue=Ne,iv=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),av=new Set([Ne.AmpersandAmpersandEqualsToken,Ne.AmpersandEqualsToken,Ne.AsteriskAsteriskEqualsToken,Ne.AsteriskEqualsToken,Ne.BarBarEqualsToken,Ne.BarEqualsToken,Ne.CaretEqualsToken,Ne.EqualsToken,Ne.GreaterThanGreaterThanEqualsToken,Ne.GreaterThanGreaterThanGreaterThanEqualsToken,Ne.LessThanLessThanEqualsToken,Ne.MinusEqualsToken,Ne.PercentEqualsToken,Ne.PlusEqualsToken,Ne.QuestionQuestionEqualsToken,Ne.SlashEqualsToken]),_v=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function sv(e){return av.has(e.kind)}function ov(e){return iv.has(e.kind)}function cv(e){return _v.has(e.kind)}function $r(e){return it(e)}function Ph(e){return e.kind!==ue.SemicolonClassElement}function He(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Nh(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Ih(e){return e.kind===ue.CommaToken}function lv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function uv(e){return e.kind===ue.JSDocComment}function Oh(e){if(sv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(ov(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(cv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,line:a.line+1}}function Qr(e,t){let[a,o]=e.map(m=>Ts(m,t));return{end:o,start:a}}function Mh(e){if(e.kind===Ne.Block)switch(e.parent.kind){case Ne.Constructor:case Ne.GetAccessor:case Ne.SetAccessor:case Ne.ArrowFunction:case Ne.FunctionExpression:case Ne.FunctionDeclaration:case Ne.MethodDeclaration:return!0;default:return!1}return!0}function $a(e,t){return[e.getStart(t),e.getEnd()]}function pv(e){return e.kind>=ue.FirstToken&&e.kind<=ue.LastToken}function Jh(e){return e.kind>=ue.JsxElement&&e.kind<=ue.JsxAttribute}function Ml(e){return e.flags&on.Let?"let":(e.flags&on.AwaitUsing)===on.AwaitUsing?"await using":e.flags&on.Const?"const":e.flags&on.Using?"using":"var"}function xi(e){let t=er(e);if(t!=null)for(let a of t)switch(a.kind){case ue.PublicKeyword:return"public";case ue.ProtectedKeyword:return"protected";case ue.PrivateKeyword:return"private";default:break}}function na(e,t,a){return o(t);function o(m){return a1(m)&&m.pos===e.end?m:gv(m.getChildren(a),v=>(v.pos<=e.pos&&v.end>e.end||v.pos===e.end)&&yv(v,a)?o(v):void 0)}}function fv(e,t){let a=e;for(;a;){if(t(a))return a;a=a.parent}}function dv(e){return!!fv(e,Jh)}function Qf(e){return Sr(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let a=t.slice(1,-1);if(a[0]==="#"){let o=a[1]==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return o>1114111?t:String.fromCodePoint(o)}return Eh[a]||t})}function ra(e){return e.kind===ue.ComputedPropertyName}function Kf(e){return!!e.questionToken}function Zf(e){return e.type===C.ChainExpression}function Lh(e,t){return Zf(t)&&e.expression.kind!==Ne.ParenthesizedExpression}function mv(e){let t;if(Dh&&e.kind===ue.Identifier?t=Sl(e):"originalKeywordKind"in e&&(t=e.originalKeywordKind),t)return t===ue.NullKeyword?Rt.Null:t>=ue.FirstFutureReservedWord&&t<=ue.LastKeyword?Rt.Identifier:Rt.Keyword;if(e.kind>=ue.FirstKeyword&&e.kind<=ue.LastFutureReservedWord)return e.kind===ue.FalseKeyword||e.kind===ue.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=ue.FirstPunctuation&&e.kind<=ue.LastPunctuation)return Rt.Punctuator;if(e.kind>=ue.NoSubstitutionTemplateLiteral&&e.kind<=ue.TemplateTail)return Rt.Template;switch(e.kind){case ue.NumericLiteral:return Rt.Numeric;case ue.JsxText:return Rt.JSXText;case ue.StringLiteral:return e.parent.kind===ue.JsxAttribute||e.parent.kind===ue.JsxElement?Rt.JSXText:Rt.String;case ue.RegularExpressionLiteral:return Rt.RegularExpression;case ue.Identifier:case ue.ConstructorKeyword:case ue.GetKeyword:case ue.SetKeyword:default:}if(e.kind===ue.Identifier){if(Jh(e.parent))return Rt.JSXIdentifier;if(e.parent.kind===ue.PropertyAccessExpression&&dv(e))return Rt.JSXIdentifier}return Rt.Identifier}function hv(e,t){let a=e.kind===ue.JsxText?e.getFullStart():e.getStart(t),o=e.getEnd(),m=t.text.slice(a,o),v=mv(e),A=[a,o],P=Qr(A,t);return v===Rt.RegularExpression?{type:v,loc:P,range:A,regex:{flags:m.slice(m.lastIndexOf("/")+1),pattern:m.slice(1,m.lastIndexOf("/"))},value:m}:{type:v,loc:P,range:A,value:m}}function jh(e){let t=[];function a(o){lv(o)||uv(o)||(pv(o)&&o.kind!==ue.EndOfFileToken?t.push(hv(o,e)):o.getChildren(e).forEach(a))}return a(e),t}var $f=class extends Error{fileName;location;constructor(t,a,o){super(t),this.fileName=a,this.location=o,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function ed(e,t,a,o=a){let[m,v]=[a,o].map(A=>{let{character:P,line:l}=t.getLineAndCharacterOfPosition(A);return{column:P,line:l+1,offset:A}});return new $f(e,t.fileName,{end:v,start:m})}function Rh(e){var t;return!!("illegalDecorators"in e&&((t=e.illegalDecorators)!=null&&t.length))}function yv(e,t){return e.kind===ue.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function gv(e,t){if(e!==void 0)for(let a=0;a=0&&e.kind!==ue.EndOfFileToken}function td(e){return!vv(e)}function qh(e){return cf(e.parent,mf)}function Tv(e){return He(ue.AbstractKeyword,e)}function xv(e){if(e.parameters.length&&!Pl(e)){let t=e.parameters[0];if(Sv(t))return t}return null}function Sv(e){return Uh(e.name)}function zh(e){switch(e.kind){case ue.ClassDeclaration:return!0;case ue.ClassExpression:return!0;case ue.PropertyDeclaration:{let{parent:t}=e;return!!(Wa(t)||vi(t)&&!Tv(e))}case ue.GetAccessor:case ue.SetAccessor:case ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(Wa(t)||vi(t))}case ue.Parameter:{let{parent:t}=e,a=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===ue.Constructor||t.kind===ue.MethodDeclaration||t.kind===ue.SetAccessor)&&xv(t)!==e&&!!a&&a.kind===ue.ClassDeclaration}}return!1}function Jl(e){switch(e.kind){case ue.Identifier:return!0;case ue.PropertyAccessExpression:case ue.ElementAccessExpression:return!(e.flags&on.OptionalChain);case ue.ParenthesizedExpression:case ue.TypeAssertionExpression:case ue.AsExpression:case ue.SatisfiesExpression:case ue.ExpressionWithTypeArguments:case ue.NonNullExpression:return Jl(e.expression);default:return!1}}function Fh(e){let t=er(e),a=e;for(;(!t||t.length===0)&&Ti(a.parent);){let o=er(a.parent);o!=null&&o.length&&(t=o),a=a.parent}return t}var T=Ne;function ad(e){return ed("message"in e&&e.message||e.messageText,e.file,e.start)}var me,rd,Vh,Be,Vt,Qa,id,Ll=class{constructor(t,a){yp(this,me);Na(this,"allowPattern",!1);Na(this,"ast");Na(this,"esTreeNodeToTSNodeMap",new WeakMap);Na(this,"options");Na(this,"tsNodeToESTreeNodeMap",new WeakMap);this.ast=t,this.options={...a}}assertModuleSpecifier(t,a){var o;!a&&t.moduleSpecifier==null&&ge(this,me,Vt).call(this,t,"Module specifier must be a string literal."),t.moduleSpecifier&&((o=t.moduleSpecifier)==null?void 0:o.kind)!==T.StringLiteral&&ge(this,me,Vt).call(this,t.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(t,a,o){let m=this.convertPattern(t);return a&&(m.typeAnnotation=this.convertTypeAnnotation(a,o),this.fixParentLocation(m,m.typeAnnotation.range)),m}convertBodyExpressions(t,a){let o=Mh(a);return t.map(m=>{let v=this.convertChild(m);if(o){if(v!=null&&v.expression&&Cl(m)&&Ya(m.expression)){let A=v.expression.raw;return v.directive=A.slice(1,-1),v}o=!1}return v}).filter(m=>m)}convertChainExpression(t,a){let{child:o,isOptional:m}=t.type===C.MemberExpression?{child:t.object,isOptional:t.optional}:t.type===C.CallExpression?{child:t.callee,isOptional:t.optional}:{child:t.expression,isOptional:!1},v=Lh(a,o);if(!v&&!m)return t;if(v&&Zf(o)){let A=o.expression;t.type===C.MemberExpression?t.object=A:t.type===C.CallExpression?t.callee=A:t.expression=A}return this.createNode(a,{type:C.ChainExpression,expression:t})}convertChild(t,a){return this.converter(t,a,!1)}convertPattern(t,a){return this.converter(t,a,!0)}convertTypeAnnotation(t,a){let o=(a==null?void 0:a.kind)===T.FunctionType||(a==null?void 0:a.kind)===T.ConstructorType?2:1,v=[t.getFullStart()-o,t.end],A=Qr(v,this.ast);return{type:C.TSTypeAnnotation,loc:A,range:v,typeAnnotation:this.convertChild(t)}}convertTypeArgumentsToTypeParameterInstantiation(t,a){let o=na(t,this.ast,this.ast);return this.createNode(a,{type:C.TSTypeParameterInstantiation,range:[t.pos-1,o.end],params:t.map(m=>this.convertChild(m))})}convertTSTypeParametersToTypeParametersDeclaration(t){let a=na(t,this.ast,this.ast),o=[t.pos-1,a.end];return{type:C.TSTypeParameterDeclaration,loc:Qr(o,this.ast),range:o,params:t.map(m=>this.convertChild(m))}}convertParameters(t){return t!=null&&t.length?t.map(a=>{var m;let o=this.convertChild(a);return o.decorators=((m=ta(a))==null?void 0:m.map(v=>this.convertChild(v)))??[],o}):[]}converter(t,a,o){if(!t)return null;ge(this,me,Vh).call(this,t);let m=this.allowPattern;o!==void 0&&(this.allowPattern=o);let v=this.convertNode(t,a??t.parent);return this.registerTSNodeInNodeMap(t,v),this.allowPattern=m,v}convertImportAttributes(t){return t===void 0?[]:t.elements.map(a=>this.convertChild(a))}convertJSXIdentifier(t){let a=this.createNode(t,{type:C.JSXIdentifier,name:t.getText()});return this.registerTSNodeInNodeMap(t,a),a}convertJSXNamespaceOrIdentifier(t){if(t.kind===Ne.JsxNamespacedName){let m=this.createNode(t,{type:C.JSXNamespacedName,name:this.createNode(t.name,{type:C.JSXIdentifier,name:t.name.text}),namespace:this.createNode(t.namespace,{type:C.JSXIdentifier,name:t.namespace.text})});return this.registerTSNodeInNodeMap(t,m),m}let a=t.getText(),o=a.indexOf(":");if(o>0){let m=$a(t,this.ast),v=this.createNode(t,{type:C.JSXNamespacedName,range:m,name:this.createNode(t,{type:C.JSXIdentifier,range:[m[0]+o+1,m[1]],name:a.slice(o+1)}),namespace:this.createNode(t,{type:C.JSXIdentifier,range:[m[0],m[0]+o],name:a.slice(0,o)})});return this.registerTSNodeInNodeMap(t,v),v}return this.convertJSXIdentifier(t)}convertJSXTagName(t,a){let o;switch(t.kind){case T.PropertyAccessExpression:t.name.kind===T.PrivateIdentifier&&ge(this,me,Be).call(this,t.name,"Non-private identifier expected."),o=this.createNode(t,{type:C.JSXMemberExpression,object:this.convertJSXTagName(t.expression,a),property:this.convertJSXIdentifier(t.name)});break;case T.ThisKeyword:case T.Identifier:default:return this.convertJSXNamespaceOrIdentifier(t)}return this.registerTSNodeInNodeMap(t,o),o}convertMethodSignature(t){return this.createNode(t,{type:C.TSMethodSignature,accessibility:xi(t),computed:ra(t.name),key:this.convertChild(t.name),kind:(()=>{switch(t.kind){case T.GetAccessor:return"get";case T.SetAccessor:return"set";case T.MethodSignature:return"method"}})(),optional:Kf(t),params:this.convertParameters(t.parameters),readonly:He(T.ReadonlyKeyword,t),returnType:t.type&&this.convertTypeAnnotation(t.type,t),static:He(T.StaticKeyword,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}fixParentLocation(t,a){a[0]t.range[1]&&(t.range[1]=a[1],t.loc.end=Ts(t.range[1],this.ast))}convertNode(t,a){var o,m,v,A,P,l,Q,h;switch(t.kind){case T.SourceFile:return this.createNode(t,{type:C.Program,range:[t.getStart(this.ast),t.endOfFileToken.end],body:this.convertBodyExpressions(t.statements,t),comments:void 0,sourceType:t.externalModuleIndicator?"module":"script",tokens:void 0});case T.Block:return this.createNode(t,{type:C.BlockStatement,body:this.convertBodyExpressions(t.statements,t)});case T.Identifier:return Bh(t)?this.createNode(t,{type:C.ThisExpression}):this.createNode(t,{type:C.Identifier,decorators:[],name:t.text,optional:!1,typeAnnotation:void 0});case T.PrivateIdentifier:return this.createNode(t,{type:C.PrivateIdentifier,name:t.text.slice(1)});case T.WithStatement:return this.createNode(t,{type:C.WithStatement,body:this.convertChild(t.statement),object:this.convertChild(t.expression)});case T.ReturnStatement:return this.createNode(t,{type:C.ReturnStatement,argument:this.convertChild(t.expression)});case T.LabeledStatement:return this.createNode(t,{type:C.LabeledStatement,body:this.convertChild(t.statement),label:this.convertChild(t.label)});case T.ContinueStatement:return this.createNode(t,{type:C.ContinueStatement,label:this.convertChild(t.label)});case T.BreakStatement:return this.createNode(t,{type:C.BreakStatement,label:this.convertChild(t.label)});case T.IfStatement:return this.createNode(t,{type:C.IfStatement,alternate:this.convertChild(t.elseStatement),consequent:this.convertChild(t.thenStatement),test:this.convertChild(t.expression)});case T.SwitchStatement:return t.caseBlock.clauses.filter(y=>y.kind===T.DefaultClause).length>1&&ge(this,me,Be).call(this,t,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(t,{type:C.SwitchStatement,cases:t.caseBlock.clauses.map(y=>this.convertChild(y)),discriminant:this.convertChild(t.expression)});case T.CaseClause:case T.DefaultClause:return this.createNode(t,{type:C.SwitchCase,consequent:t.statements.map(y=>this.convertChild(y)),test:t.kind===T.CaseClause?this.convertChild(t.expression):null});case T.ThrowStatement:return t.expression.end===t.expression.pos&&ge(this,me,Vt).call(this,t,"A throw statement must throw an expression."),this.createNode(t,{type:C.ThrowStatement,argument:this.convertChild(t.expression)});case T.TryStatement:return this.createNode(t,{type:C.TryStatement,block:this.convertChild(t.tryBlock),finalizer:this.convertChild(t.finallyBlock),handler:this.convertChild(t.catchClause)});case T.CatchClause:return(o=t.variableDeclaration)!=null&&o.initializer&&ge(this,me,Be).call(this,t.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(t,{type:C.CatchClause,body:this.convertChild(t.block),param:t.variableDeclaration?this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name,t.variableDeclaration.type):null});case T.WhileStatement:return this.createNode(t,{type:C.WhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.DoStatement:return this.createNode(t,{type:C.DoWhileStatement,body:this.convertChild(t.statement),test:this.convertChild(t.expression)});case T.ForStatement:return this.createNode(t,{type:C.ForStatement,body:this.convertChild(t.statement),init:this.convertChild(t.initializer),test:this.convertChild(t.condition),update:this.convertChild(t.incrementor)});case T.ForInStatement:return ge(this,me,rd).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForInStatement,body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.ForOfStatement:return ge(this,me,rd).call(this,t.initializer,t.kind),this.createNode(t,{type:C.ForOfStatement,await:!!(t.awaitModifier&&t.awaitModifier.kind===T.AwaitKeyword),body:this.convertChild(t.statement),left:this.convertPattern(t.initializer),right:this.convertChild(t.expression)});case T.FunctionDeclaration:{let y=He(T.DeclareKeyword,t),g=He(T.AsyncKeyword,t),x=!!t.asteriskToken;y?t.body?ge(this,me,Be).call(this,t,"An implementation cannot be declared in ambient contexts."):g?ge(this,me,Be).call(this,t,"'async' modifier cannot be used in an ambient context."):x&&ge(this,me,Be).call(this,t,"Generators are not allowed in an ambient context."):!t.body&&x&&ge(this,me,Be).call(this,t,"A function signature cannot be declared as a generator.");let I=this.createNode(t,{type:t.body?C.FunctionDeclaration:C.TSDeclareFunction,async:g,body:this.convertChild(t.body)||void 0,declare:y,expression:!1,generator:x,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,I)}case T.VariableDeclaration:{let y=!!t.exclamationToken,g=this.convertChild(t.initializer),x=this.convertBindingNameWithTypeAnnotation(t.name,t.type,t);return y&&(g?ge(this,me,Be).call(this,t,"Declarations with initializers cannot also have definite assignment assertions."):(x.type!==C.Identifier||!x.typeAnnotation)&&ge(this,me,Be).call(this,t,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(t,{type:C.VariableDeclarator,definite:y,id:x,init:g})}case T.VariableStatement:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarationList.declarations.map(g=>this.convertChild(g)),declare:He(T.DeclareKeyword,t),kind:Ml(t.declarationList)});return y.declarations.length||ge(this,me,Vt).call(this,t,"A variable declaration list must have at least one variable declarator."),(y.kind==="using"||y.kind==="await using")&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init==null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations must be initialized.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),(y.declare||["await using","const","using"].includes(y.kind))&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].definite&&ge(this,me,Be).call(this,g,"A definite assignment assertion '!' is not permitted in this context.")}),y.declare&&t.declarationList.declarations.forEach((g,x)=>{y.declarations[x].init&&(["let","var"].includes(y.kind)||y.declarations[x].id.typeAnnotation)&&ge(this,me,Be).call(this,g,"Initializers are not permitted in ambient contexts.")}),this.fixExports(t,y)}case T.VariableDeclarationList:{let y=this.createNode(t,{type:C.VariableDeclaration,declarations:t.declarations.map(g=>this.convertChild(g)),declare:!1,kind:Ml(t)});return(y.kind==="using"||y.kind==="await using")&&t.declarations.forEach((g,x)=>{y.declarations[x].init!=null&&ge(this,me,Be).call(this,g,`'${y.kind}' declarations may not be initialized in for statement.`),y.declarations[x].id.type!==C.Identifier&&ge(this,me,Be).call(this,g.name,`'${y.kind}' declarations may not have binding patterns.`)}),y}case T.ExpressionStatement:return this.createNode(t,{type:C.ExpressionStatement,directive:void 0,expression:this.convertChild(t.expression)});case T.ThisKeyword:return this.createNode(t,{type:C.ThisExpression});case T.ArrayLiteralExpression:return this.allowPattern?this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0}):this.createNode(t,{type:C.ArrayExpression,elements:t.elements.map(y=>this.convertChild(y))});case T.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.properties.map(g=>this.convertPattern(g)),typeAnnotation:void 0});let y=[];for(let g of t.properties)(g.kind===T.GetAccessor||g.kind===T.SetAccessor||g.kind===T.MethodDeclaration)&&!g.body&&ge(this,me,Vt).call(this,g.end-1,"'{' expected."),y.push(this.convertChild(g));return this.createNode(t,{type:C.ObjectExpression,properties:y})}case T.PropertyAssignment:{let{exclamationToken:y,questionToken:g}=t;return g&&ge(this,me,Be).call(this,g,"A property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A property assignment cannot have an exclamation token."),this.createNode(t,{type:C.Property,computed:ra(t.name),key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(t.initializer,t,this.allowPattern)})}case T.ShorthandPropertyAssignment:{let{exclamationToken:y,modifiers:g,questionToken:x}=t;return g&&ge(this,me,Be).call(this,g[0],"A shorthand property assignment cannot have modifiers."),x&&ge(this,me,Be).call(this,x,"A shorthand property assignment cannot have a question token."),y&&ge(this,me,Be).call(this,y,"A shorthand property assignment cannot have an exclamation token."),t.objectAssignmentInitializer?this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.name),optional:!1,right:this.convertChild(t.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(t,{type:C.Property,computed:!1,key:this.convertChild(t.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(t.name)})}case T.ComputedPropertyName:return this.convertChild(t.expression);case T.PropertyDeclaration:{let y=He(T.AbstractKeyword,t);y&&t.initializer&&ge(this,me,Be).call(this,t.initializer,"Abstract property cannot have an initializer.");let g=He(T.AccessorKeyword,t),x=g?y?C.TSAbstractAccessorProperty:C.AccessorProperty:y?C.TSAbstractPropertyDefinition:C.PropertyDefinition,I=this.convertChild(t.name);return this.createNode(t,{type:x,accessibility:xi(t),computed:ra(t.name),declare:He(T.DeclareKeyword,t),decorators:((m=ta(t))==null?void 0:m.map(re=>this.convertChild(re)))??[],definite:!!t.exclamationToken,key:I,optional:(I.type===C.Literal||t.name.kind===T.Identifier||t.name.kind===T.ComputedPropertyName||t.name.kind===T.PrivateIdentifier)&&!!t.questionToken,override:He(T.OverrideKeyword,t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t),value:y?null:this.convertChild(t.initializer)})}case T.GetAccessor:case T.SetAccessor:if(t.parent.kind===T.InterfaceDeclaration||t.parent.kind===T.TypeLiteral)return this.convertMethodSignature(t);case T.MethodDeclaration:{let y=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:null,params:[],returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});y.typeParameters&&this.fixParentLocation(y,y.typeParameters.range);let g;if(a.kind===T.ObjectLiteralExpression)y.params=t.parameters.map(x=>this.convertChild(x)),g=this.createNode(t,{type:C.Property,computed:ra(t.name),key:this.convertChild(t.name),kind:"init",method:t.kind===T.MethodDeclaration,optional:!!t.questionToken,shorthand:!1,value:y});else{y.params=this.convertParameters(t.parameters);let x=He(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition;g=this.createNode(t,{type:x,accessibility:xi(t),computed:ra(t.name),decorators:((v=ta(t))==null?void 0:v.map(I=>this.convertChild(I)))??[],key:this.convertChild(t.name),kind:"method",optional:!!t.questionToken,override:He(T.OverrideKeyword,t),static:He(T.StaticKeyword,t),value:y})}return t.kind===T.GetAccessor?g.kind="get":t.kind===T.SetAccessor?g.kind="set":!g.static&&t.name.kind===T.StringLiteral&&t.name.text==="constructor"&&g.type!==C.Property&&(g.kind="constructor"),g}case T.Constructor:{let y=Nh(t),g=(y&&na(y,t,this.ast))??t.getFirstToken(),x=this.createNode(t,{type:t.body?C.FunctionExpression:C.TSEmptyBodyFunctionExpression,range:[t.parameters.pos-1,t.end],async:!1,body:this.convertChild(t.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});x.typeParameters&&this.fixParentLocation(x,x.typeParameters.range);let I=this.createNode(t,{type:C.Identifier,range:[g.getStart(this.ast),g.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),re=He(T.StaticKeyword,t);return this.createNode(t,{type:He(T.AbstractKeyword,t)?C.TSAbstractMethodDefinition:C.MethodDefinition,accessibility:xi(t),computed:!1,decorators:[],key:I,kind:re?"method":"constructor",optional:!1,override:!1,static:re,value:x})}case T.FunctionExpression:return this.createNode(t,{type:C.FunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),declare:!1,expression:!1,generator:!!t.asteriskToken,id:this.convertChild(t.name),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.SuperKeyword:return this.createNode(t,{type:C.Super});case T.ArrayBindingPattern:return this.createNode(t,{type:C.ArrayPattern,decorators:[],elements:t.elements.map(y=>this.convertPattern(y)),optional:!1,typeAnnotation:void 0});case T.OmittedExpression:return null;case T.ObjectBindingPattern:return this.createNode(t,{type:C.ObjectPattern,decorators:[],optional:!1,properties:t.elements.map(y=>this.convertPattern(y)),typeAnnotation:void 0});case T.BindingElement:{if(a.kind===T.ArrayBindingPattern){let g=this.convertChild(t.name,a);return t.initializer?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:g,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}):t.dotDotDotToken?this.createNode(t,{type:C.RestElement,argument:g,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):g}let y;return t.dotDotDotToken?y=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.propertyName??t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):y=this.createNode(t,{type:C.Property,computed:!!(t.propertyName&&t.propertyName.kind===T.ComputedPropertyName),key:this.convertChild(t.propertyName??t.name),kind:"init",method:!1,optional:!1,shorthand:!t.propertyName,value:this.convertChild(t.name)}),t.initializer&&(y.value=this.createNode(t,{type:C.AssignmentPattern,range:[t.name.getStart(this.ast),t.initializer.end],decorators:[],left:this.convertChild(t.name),optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0})),y}case T.ArrowFunction:return this.createNode(t,{type:C.ArrowFunctionExpression,async:He(T.AsyncKeyword,t),body:this.convertChild(t.body),expression:t.body.kind!==T.Block,generator:!1,id:null,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.YieldExpression:return this.createNode(t,{type:C.YieldExpression,argument:this.convertChild(t.expression),delegate:!!t.asteriskToken});case T.AwaitExpression:return this.createNode(t,{type:C.AwaitExpression,argument:this.convertChild(t.expression)});case T.NoSubstitutionTemplateLiteral:return this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.createNode(t,{type:C.TemplateElement,tail:!0,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-1)}})]});case T.TemplateExpression:{let y=this.createNode(t,{type:C.TemplateLiteral,expressions:[],quasis:[this.convertChild(t.head)]});return t.templateSpans.forEach(g=>{y.expressions.push(this.convertChild(g.expression)),y.quasis.push(this.convertChild(g.literal))}),y}case T.TaggedTemplateExpression:return this.createNode(t,{type:C.TaggedTemplateExpression,quasi:this.convertChild(t.template),tag:this.convertChild(t.tag),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.TemplateHead:case T.TemplateMiddle:case T.TemplateTail:{let y=t.kind===T.TemplateTail;return this.createNode(t,{type:C.TemplateElement,tail:y,value:{cooked:t.text,raw:this.ast.text.slice(t.getStart(this.ast)+1,t.end-(y?1:2))}})}case T.SpreadAssignment:case T.SpreadElement:return this.allowPattern?this.createNode(t,{type:C.RestElement,argument:this.convertPattern(t.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(t,{type:C.SpreadElement,argument:this.convertChild(t.expression)});case T.Parameter:{let y,g;return t.dotDotDotToken?y=g=this.createNode(t,{type:C.RestElement,argument:this.convertChild(t.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):t.initializer?(y=this.convertChild(t.name),g=this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:y,optional:!1,right:this.convertChild(t.initializer),typeAnnotation:void 0}),er(t)&&(g.range[0]=y.range[0],g.loc=Qr(g.range,this.ast))):y=g=this.convertChild(t.name,a),t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),this.fixParentLocation(y,y.typeAnnotation.range)),t.questionToken&&(t.questionToken.end>y.range[1]&&(y.range[1]=t.questionToken.end,y.loc.end=Ts(y.range[1],this.ast)),y.optional=!0),er(t)?this.createNode(t,{type:C.TSParameterProperty,accessibility:xi(t),decorators:[],override:He(T.OverrideKeyword,t),parameter:g,readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t)}):g}case T.ClassDeclaration:!t.name&&(!He(Ne.ExportKeyword,t)||!He(Ne.DefaultKeyword,t))&&ge(this,me,Vt).call(this,t,"A class declaration without the 'default' modifier must have a name.");case T.ClassExpression:{let y=t.heritageClauses??[],g=t.kind===T.ClassDeclaration?C.ClassDeclaration:C.ClassExpression,x,I;for(let he of y){let{token:ye,types:de}=he;de.length===0&&ge(this,me,Vt).call(this,he,`'${it(ye)}' list cannot be empty.`),ye===T.ExtendsKeyword?(x&&ge(this,me,Vt).call(this,he,"'extends' clause already seen."),I&&ge(this,me,Vt).call(this,he,"'extends' clause must precede 'implements' clause."),de.length>1&&ge(this,me,Vt).call(this,de[1],"Classes can only extend a single class."),x??(x=he)):ye===T.ImplementsKeyword&&(I&&ge(this,me,Vt).call(this,he,"'implements' clause already seen."),I??(I=he))}let re=this.createNode(t,{type:g,abstract:He(T.AbstractKeyword,t),body:this.createNode(t,{type:C.ClassBody,range:[t.members.pos-1,t.end],body:t.members.filter(Ph).map(he=>this.convertChild(he))}),declare:He(T.DeclareKeyword,t),decorators:((A=ta(t))==null?void 0:A.map(he=>this.convertChild(he)))??[],id:this.convertChild(t.name),implements:(I==null?void 0:I.types.map(he=>this.convertChild(he)))??[],superClass:x!=null&&x.types[0]?this.convertChild(x.types[0].expression):null,superTypeArguments:void 0,typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return(P=x==null?void 0:x.types[0])!=null&&P.typeArguments&&(re.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(x.types[0].typeArguments,x.types[0])),this.fixExports(t,re)}case T.ModuleBlock:return this.createNode(t,{type:C.TSModuleBlock,body:this.convertBodyExpressions(t.statements,t)});case T.ImportDeclaration:{this.assertModuleSpecifier(t,!1);let y=this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),importKind:"value",source:this.convertChild(t.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(t.importClause&&(t.importClause.isTypeOnly&&(y.importKind="type"),t.importClause.name&&y.specifiers.push(this.convertChild(t.importClause)),t.importClause.namedBindings))switch(t.importClause.namedBindings.kind){case T.NamespaceImport:y.specifiers.push(this.convertChild(t.importClause.namedBindings));break;case T.NamedImports:y.specifiers.push(...t.importClause.namedBindings.elements.map(g=>this.convertChild(g)));break}return y}case T.NamespaceImport:return this.createNode(t,{type:C.ImportNamespaceSpecifier,local:this.convertChild(t.name)});case T.ImportSpecifier:return this.createNode(t,{type:C.ImportSpecifier,imported:this.convertChild(t.propertyName??t.name),importKind:t.isTypeOnly?"type":"value",local:this.convertChild(t.name)});case T.ImportClause:{let y=this.convertChild(t.name);return this.createNode(t,{type:C.ImportDefaultSpecifier,range:y.range,local:y})}case T.ExportDeclaration:return((l=t.exportClause)==null?void 0:l.kind)===T.NamedExports?(this.assertModuleSpecifier(t,!0),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),declaration:null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier),specifiers:t.exportClause.elements.map(y=>this.convertChild(y,t))},"assertions","attributes",!0))):(this.assertModuleSpecifier(t,!1),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportAllDeclaration,attributes:this.convertImportAttributes(t.attributes??t.assertClause),exported:((Q=t.exportClause)==null?void 0:Q.kind)===T.NamespaceExport?this.convertChild(t.exportClause.name):null,exportKind:t.isTypeOnly?"type":"value",source:this.convertChild(t.moduleSpecifier)},"assertions","attributes",!0)));case T.ExportSpecifier:{let y=t.propertyName??t.name;return y.kind===T.StringLiteral&&a.kind===T.ExportDeclaration&&((h=a.moduleSpecifier)==null?void 0:h.kind)!==T.StringLiteral&&ge(this,me,Be).call(this,y,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(t,{type:C.ExportSpecifier,exported:this.convertChild(t.name),exportKind:t.isTypeOnly?"type":"value",local:this.convertChild(y)})}case T.ExportAssignment:return t.isExportEquals?this.createNode(t,{type:C.TSExportAssignment,expression:this.convertChild(t.expression)}):this.createNode(t,{type:C.ExportDefaultDeclaration,declaration:this.convertChild(t.expression),exportKind:"value"});case T.PrefixUnaryExpression:case T.PostfixUnaryExpression:{let y=$r(t.operator);return y==="++"||y==="--"?(Jl(t.operand)||ge(this,me,Vt).call(this,t.operand,"Invalid left-hand side expression in unary operation"),this.createNode(t,{type:C.UpdateExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})):this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.operand),operator:y,prefix:t.kind===T.PrefixUnaryExpression})}case T.DeleteExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"delete",prefix:!0});case T.VoidExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"void",prefix:!0});case T.TypeOfExpression:return this.createNode(t,{type:C.UnaryExpression,argument:this.convertChild(t.expression),operator:"typeof",prefix:!0});case T.TypeOperator:return this.createNode(t,{type:C.TSTypeOperator,operator:$r(t.operator),typeAnnotation:this.convertChild(t.type)});case T.BinaryExpression:{if(Ih(t.operatorToken)){let g=this.createNode(t,{type:C.SequenceExpression,expressions:[]}),x=this.convertChild(t.left);return x.type===C.SequenceExpression&&t.left.kind!==T.ParenthesizedExpression?g.expressions.push(...x.expressions):g.expressions.push(x),g.expressions.push(this.convertChild(t.right)),g}let y=Oh(t.operatorToken);return this.allowPattern&&y.type===C.AssignmentExpression?this.createNode(t,{type:C.AssignmentPattern,decorators:[],left:this.convertPattern(t.left,t),optional:!1,right:this.convertChild(t.right),typeAnnotation:void 0}):this.createNode(t,{...y,left:this.converter(t.left,t,y.type===C.AssignmentExpression),right:this.convertChild(t.right)})}case T.PropertyAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.name),I=this.createNode(t,{type:C.MemberExpression,computed:!1,object:y,optional:t.questionDotToken!==void 0,property:g});return this.convertChainExpression(I,t)}case T.ElementAccessExpression:{let y=this.convertChild(t.expression),g=this.convertChild(t.argumentExpression),I=this.createNode(t,{type:C.MemberExpression,computed:!0,object:y,optional:t.questionDotToken!==void 0,property:g});return this.convertChainExpression(I,t)}case T.CallExpression:{if(t.expression.kind===T.ImportKeyword)return t.arguments.length!==1&&t.arguments.length!==2&&ge(this,me,Vt).call(this,t.arguments[2]??t,"Dynamic import requires exactly one or two arguments."),this.createNode(t,ge(this,me,Qa).call(this,{type:C.ImportExpression,options:t.arguments[1]?this.convertChild(t.arguments[1]):null,source:this.convertChild(t.arguments[0])},"attributes","options",!0));let y=this.convertChild(t.expression),g=t.arguments.map(re=>this.convertChild(re)),x=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),I=this.createNode(t,{type:C.CallExpression,arguments:g,callee:y,optional:t.questionDotToken!==void 0,typeArguments:x});return this.convertChainExpression(I,t)}case T.NewExpression:{let y=t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t);return this.createNode(t,{type:C.NewExpression,arguments:t.arguments?t.arguments.map(g=>this.convertChild(g)):[],callee:this.convertChild(t.expression),typeArguments:y})}case T.ConditionalExpression:return this.createNode(t,{type:C.ConditionalExpression,alternate:this.convertChild(t.whenFalse),consequent:this.convertChild(t.whenTrue),test:this.convertChild(t.condition)});case T.MetaProperty:return this.createNode(t,{type:C.MetaProperty,meta:this.createNode(t.getFirstToken(),{type:C.Identifier,decorators:[],name:$r(t.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(t.name)});case T.Decorator:return this.createNode(t,{type:C.Decorator,expression:this.convertChild(t.expression)});case T.StringLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:a.kind===T.JsxAttribute?Qf(t.text):t.text});case T.NumericLiteral:return this.createNode(t,{type:C.Literal,raw:t.getText(),value:Number(t.text)});case T.BigIntLiteral:{let y=$a(t,this.ast),g=this.ast.text.slice(y[0],y[1]),x=Sr(!1,g.slice(0,-1),"_",""),I=typeof BigInt<"u"?BigInt(x):null;return this.createNode(t,{type:C.Literal,range:y,bigint:I==null?x:String(I),raw:g,value:I})}case T.RegularExpressionLiteral:{let y=t.text.slice(1,t.text.lastIndexOf("/")),g=t.text.slice(t.text.lastIndexOf("/")+1),x=null;try{x=new RegExp(y,g)}catch{}return this.createNode(t,{type:C.Literal,raw:t.text,regex:{flags:g,pattern:y},value:x})}case T.TrueKeyword:return this.createNode(t,{type:C.Literal,raw:"true",value:!0});case T.FalseKeyword:return this.createNode(t,{type:C.Literal,raw:"false",value:!1});case T.NullKeyword:return this.createNode(t,{type:C.Literal,raw:"null",value:null});case T.EmptyStatement:return this.createNode(t,{type:C.EmptyStatement});case T.DebuggerStatement:return this.createNode(t,{type:C.DebuggerStatement});case T.JsxElement:return this.createNode(t,{type:C.JSXElement,children:t.children.map(y=>this.convertChild(y)),closingElement:this.convertChild(t.closingElement),openingElement:this.convertChild(t.openingElement)});case T.JsxFragment:return this.createNode(t,{type:C.JSXFragment,children:t.children.map(y=>this.convertChild(y)),closingFragment:this.convertChild(t.closingFragment),openingFragment:this.convertChild(t.openingFragment)});case T.JsxSelfClosingElement:return this.createNode(t,{type:C.JSXElement,children:[],closingElement:null,openingElement:this.createNode(t,{type:C.JSXOpeningElement,range:$a(t,this.ast),attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!0,typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):void 0})});case T.JsxOpeningElement:return this.createNode(t,{type:C.JSXOpeningElement,attributes:t.attributes.properties.map(y=>this.convertChild(y)),name:this.convertJSXTagName(t.tagName,t),selfClosing:!1,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.JsxClosingElement:return this.createNode(t,{type:C.JSXClosingElement,name:this.convertJSXTagName(t.tagName,t)});case T.JsxOpeningFragment:return this.createNode(t,{type:C.JSXOpeningFragment});case T.JsxClosingFragment:return this.createNode(t,{type:C.JSXClosingFragment});case T.JsxExpression:{let y=t.expression?this.convertChild(t.expression):this.createNode(t,{type:C.JSXEmptyExpression,range:[t.getStart(this.ast)+1,t.getEnd()-1]});return t.dotDotDotToken?this.createNode(t,{type:C.JSXSpreadChild,expression:y}):this.createNode(t,{type:C.JSXExpressionContainer,expression:y})}case T.JsxAttribute:return this.createNode(t,{type:C.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(t.name),value:this.convertChild(t.initializer)});case T.JsxText:{let y=t.getFullStart(),g=t.getEnd(),x=this.ast.text.slice(y,g);return this.createNode(t,{type:C.JSXText,range:[y,g],raw:x,value:Qf(x)})}case T.JsxSpreadAttribute:return this.createNode(t,{type:C.JSXSpreadAttribute,argument:this.convertChild(t.expression)});case T.QualifiedName:return this.createNode(t,{type:C.TSQualifiedName,left:this.convertChild(t.left),right:this.convertChild(t.right)});case T.TypeReference:return this.createNode(t,{type:C.TSTypeReference,typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t),typeName:this.convertChild(t.typeName)});case T.TypeParameter:return this.createNode(t,{type:C.TSTypeParameter,const:He(T.ConstKeyword,t),constraint:t.constraint&&this.convertChild(t.constraint),default:t.default?this.convertChild(t.default):void 0,in:He(T.InKeyword,t),name:this.convertChild(t.name),out:He(T.OutKeyword,t)});case T.ThisType:return this.createNode(t,{type:C.TSThisType});case T.AnyKeyword:case T.BigIntKeyword:case T.BooleanKeyword:case T.NeverKeyword:case T.NumberKeyword:case T.ObjectKeyword:case T.StringKeyword:case T.SymbolKeyword:case T.UnknownKeyword:case T.VoidKeyword:case T.UndefinedKeyword:case T.IntrinsicKeyword:return this.createNode(t,{type:C[`TS${T[t.kind]}`]});case T.NonNullExpression:{let y=this.createNode(t,{type:C.TSNonNullExpression,expression:this.convertChild(t.expression)});return this.convertChainExpression(y,t)}case T.TypeLiteral:return this.createNode(t,{type:C.TSTypeLiteral,members:t.members.map(y=>this.convertChild(y))});case T.ArrayType:return this.createNode(t,{type:C.TSArrayType,elementType:this.convertChild(t.elementType)});case T.IndexedAccessType:return this.createNode(t,{type:C.TSIndexedAccessType,indexType:this.convertChild(t.indexType),objectType:this.convertChild(t.objectType)});case T.ConditionalType:return this.createNode(t,{type:C.TSConditionalType,checkType:this.convertChild(t.checkType),extendsType:this.convertChild(t.extendsType),falseType:this.convertChild(t.falseType),trueType:this.convertChild(t.trueType)});case T.TypeQuery:return this.createNode(t,{type:C.TSTypeQuery,exprName:this.convertChild(t.exprName),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)});case T.MappedType:return t.members&&t.members.length>0&&ge(this,me,Vt).call(this,t.members[0],"A mapped type may not declare properties or methods."),this.createNode(t,ge(this,me,id).call(this,{type:C.TSMappedType,constraint:this.convertChild(t.typeParameter.constraint),key:this.convertChild(t.typeParameter.name),nameType:this.convertChild(t.nameType)??null,optional:t.questionToken&&(t.questionToken.kind===T.QuestionToken||$r(t.questionToken.kind)),readonly:t.readonlyToken&&(t.readonlyToken.kind===T.ReadonlyKeyword||$r(t.readonlyToken.kind)),typeAnnotation:t.type&&this.convertChild(t.type)},"typeParameter","'constraint' and 'key'",this.convertChild(t.typeParameter)));case T.ParenthesizedExpression:return this.convertChild(t.expression,a);case T.TypeAliasDeclaration:{let y=this.createNode(t,{type:C.TSTypeAliasDeclaration,declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name),typeAnnotation:this.convertChild(t.type),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,y)}case T.MethodSignature:return this.convertMethodSignature(t);case T.PropertySignature:{let{initializer:y}=t;return y&&ge(this,me,Be).call(this,y,"A property signature cannot have an initializer."),this.createNode(t,{type:C.TSPropertySignature,accessibility:xi(t),computed:ra(t.name),key:this.convertChild(t.name),optional:Kf(t),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)})}case T.IndexSignature:return this.createNode(t,{type:C.TSIndexSignature,accessibility:xi(t),parameters:t.parameters.map(y=>this.convertChild(y)),readonly:He(T.ReadonlyKeyword,t),static:He(T.StaticKeyword,t),typeAnnotation:t.type&&this.convertTypeAnnotation(t.type,t)});case T.ConstructorType:return this.createNode(t,{type:C.TSConstructorType,abstract:He(T.AbstractKeyword,t),params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});case T.FunctionType:{let{modifiers:y}=t;y&&ge(this,me,Be).call(this,y[0],"A function type cannot have modifiers.")}case T.ConstructSignature:case T.CallSignature:{let y=t.kind===T.ConstructSignature?C.TSConstructSignatureDeclaration:t.kind===T.CallSignature?C.TSCallSignatureDeclaration:C.TSFunctionType;return this.createNode(t,{type:y,params:this.convertParameters(t.parameters),returnType:t.type&&this.convertTypeAnnotation(t.type,t),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)})}case T.ExpressionWithTypeArguments:{let y=a.kind,g=y===T.InterfaceDeclaration?C.TSInterfaceHeritage:y===T.HeritageClause?C.TSClassImplements:C.TSInstantiationExpression;return this.createNode(t,{type:g,expression:this.convertChild(t.expression),typeArguments:t.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t)})}case T.InterfaceDeclaration:{let y=t.heritageClauses??[],g=[];for(let I of y){I.token!==T.ExtendsKeyword&&ge(this,me,Be).call(this,I,I.token===T.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let re of I.types)g.push(this.convertChild(re,t))}let x=this.createNode(t,{type:C.TSInterfaceDeclaration,body:this.createNode(t,{type:C.TSInterfaceBody,range:[t.members.pos-1,t.end],body:t.members.map(I=>this.convertChild(I))}),declare:He(T.DeclareKeyword,t),extends:g,id:this.convertChild(t.name),typeParameters:t.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters)});return this.fixExports(t,x)}case T.TypePredicate:{let y=this.createNode(t,{type:C.TSTypePredicate,asserts:t.assertsModifier!==void 0,parameterName:this.convertChild(t.parameterName),typeAnnotation:null});return t.type&&(y.typeAnnotation=this.convertTypeAnnotation(t.type,t),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range),y}case T.ImportType:{let y=$a(t,this.ast);if(t.isTypeOf){let x=na(t.getFirstToken(),t,this.ast);y[0]=x.getStart(this.ast)}let g=this.createNode(t,{type:C.TSImportType,range:y,argument:this.convertChild(t.argument),qualifier:this.convertChild(t.qualifier),typeArguments:t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null});return t.isTypeOf?this.createNode(t,{type:C.TSTypeQuery,exprName:g,typeArguments:void 0}):g}case T.EnumDeclaration:{let y=t.members.map(x=>this.convertChild(x)),g=this.createNode(t,ge(this,me,id).call(this,{type:C.TSEnumDeclaration,body:this.createNode(t,{type:C.TSEnumBody,range:[t.members.pos-1,t.end],members:y}),const:He(T.ConstKeyword,t),declare:He(T.DeclareKeyword,t),id:this.convertChild(t.name)},"members","'body.members'",t.members.map(x=>this.convertChild(x))));return this.fixExports(t,g)}case T.EnumMember:return this.createNode(t,{type:C.TSEnumMember,computed:t.name.kind===Ne.ComputedPropertyName,id:this.convertChild(t.name),initializer:t.initializer&&this.convertChild(t.initializer)});case T.ModuleDeclaration:{let y=He(T.DeclareKeyword,t),g=this.createNode(t,{type:C.TSModuleDeclaration,...(()=>{if(t.flags&on.GlobalAugmentation){let I=this.convertChild(t.name),re=this.convertChild(t.body);return(re==null||re.type===C.TSModuleDeclaration)&&ge(this,me,Vt).call(this,t.body??t,"Expected a valid module body"),I.type!==C.Identifier&&ge(this,me,Vt).call(this,t.name,"global module augmentation must have an Identifier id"),{body:re,declare:!1,global:!1,id:I,kind:"global"}}if(!(t.flags&on.Namespace)){let I=this.convertChild(t.body);return{kind:"module",...I!=null?{body:I}:{},declare:!1,global:!1,id:this.convertChild(t.name)}}t.body==null&&ge(this,me,Vt).call(this,t,"Expected a module body"),t.name.kind!==Ne.Identifier&&ge(this,me,Vt).call(this,t.name,"`namespace`s must have an Identifier id");let x=this.createNode(t.name,{type:C.Identifier,range:[t.name.getStart(this.ast),t.name.getEnd()],decorators:[],name:t.name.text,optional:!1,typeAnnotation:void 0});for(;t.body&&Ti(t.body)&&t.body.name;){t=t.body,y||(y=He(T.DeclareKeyword,t));let I=t.name,re=this.createNode(I,{type:C.Identifier,range:[I.getStart(this.ast),I.getEnd()],decorators:[],name:I.text,optional:!1,typeAnnotation:void 0});x=this.createNode(I,{type:C.TSQualifiedName,range:[x.range[0],re.range[1]],left:x,right:re})}return{body:this.convertChild(t.body),declare:!1,global:!1,id:x,kind:"namespace"}})()});return g.declare=y,t.flags&on.GlobalAugmentation&&(g.global=!0),this.fixExports(t,g)}case T.ParenthesizedType:return this.convertChild(t.type);case T.UnionType:return this.createNode(t,{type:C.TSUnionType,types:t.types.map(y=>this.convertChild(y))});case T.IntersectionType:return this.createNode(t,{type:C.TSIntersectionType,types:t.types.map(y=>this.convertChild(y))});case T.AsExpression:return this.createNode(t,{type:C.TSAsExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.InferType:return this.createNode(t,{type:C.TSInferType,typeParameter:this.convertChild(t.typeParameter)});case T.LiteralType:return t.literal.kind===T.NullKeyword?this.createNode(t.literal,{type:C.TSNullKeyword}):this.createNode(t,{type:C.TSLiteralType,literal:this.convertChild(t.literal)});case T.TypeAssertionExpression:return this.createNode(t,{type:C.TSTypeAssertion,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});case T.ImportEqualsDeclaration:return this.fixExports(t,this.createNode(t,{type:C.TSImportEqualsDeclaration,id:this.convertChild(t.name),importKind:t.isTypeOnly?"type":"value",moduleReference:this.convertChild(t.moduleReference)}));case T.ExternalModuleReference:return t.expression.kind!==T.StringLiteral&&ge(this,me,Be).call(this,t.expression,"String literal expected."),this.createNode(t,{type:C.TSExternalModuleReference,expression:this.convertChild(t.expression)});case T.NamespaceExportDeclaration:return this.createNode(t,{type:C.TSNamespaceExportDeclaration,id:this.convertChild(t.name)});case T.AbstractKeyword:return this.createNode(t,{type:C.TSAbstractKeyword});case T.TupleType:{let y=t.elements.map(g=>this.convertChild(g));return this.createNode(t,{type:C.TSTupleType,elementTypes:y})}case T.NamedTupleMember:{let y=this.createNode(t,{type:C.TSNamedTupleMember,elementType:this.convertChild(t.type,t),label:this.convertChild(t.name,t),optional:t.questionToken!=null});return t.dotDotDotToken?(y.range[0]=y.label.range[0],y.loc.start=y.label.loc.start,this.createNode(t,{type:C.TSRestType,typeAnnotation:y})):y}case T.OptionalType:return this.createNode(t,{type:C.TSOptionalType,typeAnnotation:this.convertChild(t.type)});case T.RestType:return this.createNode(t,{type:C.TSRestType,typeAnnotation:this.convertChild(t.type)});case T.TemplateLiteralType:{let y=this.createNode(t,{type:C.TSTemplateLiteralType,quasis:[this.convertChild(t.head)],types:[]});return t.templateSpans.forEach(g=>{y.types.push(this.convertChild(g.type)),y.quasis.push(this.convertChild(g.literal))}),y}case T.ClassStaticBlockDeclaration:return this.createNode(t,{type:C.StaticBlock,body:this.convertBodyExpressions(t.body.statements,t)});case T.AssertEntry:case T.ImportAttribute:return this.createNode(t,{type:C.ImportAttribute,key:this.convertChild(t.name),value:this.convertChild(t.value)});case T.SatisfiesExpression:return this.createNode(t,{type:C.TSSatisfiesExpression,expression:this.convertChild(t.expression),typeAnnotation:this.convertChild(t.type)});default:return this.deeplyCopy(t)}}createNode(t,a){let o=a;return o.range??(o.range=$a(t,this.ast)),o.loc??(o.loc=Qr(o.range,this.ast)),o&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(o,t),o}convertProgram(){return this.converter(this.ast)}deeplyCopy(t){t.kind===Ne.JSDocFunctionType&&ge(this,me,Be).call(this,t,"JSDoc types can only be used inside documentation comments.");let a=`TS${T[t.kind]}`;if(this.options.errorOnUnknownASTType&&!C[a])throw new Error(`Unknown AST_NODE_TYPE: "${a}"`);let o=this.createNode(t,{type:a});"type"in t&&(o.typeAnnotation=t.type&&"kind"in t.type&&o1(t.type)?this.convertTypeAnnotation(t.type,t):null),"typeArguments"in t&&(o.typeArguments=t.typeArguments&&"pos"in t.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments,t):null),"typeParameters"in t&&(o.typeParameters=t.typeParameters&&"pos"in t.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters):null);let m=ta(t);m!=null&&m.length&&(o.decorators=m.map(A=>this.convertChild(A)));let v=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(t).filter(([A])=>!v.has(A)).forEach(([A,P])=>{Array.isArray(P)?o[A]=P.map(l=>this.convertChild(l)):P&&typeof P=="object"&&P.kind?o[A]=this.convertChild(P):o[A]=P}),o}fixExports(t,a){let m=Ti(t)&&!!(t.flags&on.Namespace)?Fh(t):er(t);if((m==null?void 0:m[0].kind)===T.ExportKeyword){this.registerTSNodeInNodeMap(t,a);let v=m[0],A=m[1],P=(A==null?void 0:A.kind)===T.DefaultKeyword,l=P?na(A,this.ast,this.ast):na(v,this.ast,this.ast);if(a.range[0]=l.getStart(this.ast),a.loc=Qr(a.range,this.ast),P)return this.createNode(t,{type:C.ExportDefaultDeclaration,range:[v.getStart(this.ast),a.range[1]],declaration:a,exportKind:"value"});let Q=a.type===C.TSInterfaceDeclaration||a.type===C.TSTypeAliasDeclaration,h="declare"in a&&a.declare;return this.createNode(t,ge(this,me,Qa).call(this,{type:C.ExportNamedDeclaration,range:[v.getStart(this.ast),a.range[1]],attributes:[],declaration:a,exportKind:Q||h?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return a}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(t,a){a&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(t)&&this.tsNodeToESTreeNodeMap.set(t,a)}};me=new WeakSet,rd=function(t,a){let o=a===Ne.ForInStatement?"for...in":"for...of";if(K1(t)){t.declarations.length!==1&&ge(this,me,Be).call(this,t,`Only a single variable declaration is allowed in a '${o}' statement.`);let m=t.declarations[0];m.initializer?ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have an initializer.`):m.type&&ge(this,me,Be).call(this,m,`The variable declaration of a '${o}' statement cannot have a type annotation.`),a===Ne.ForInStatement&&t.flags&on.Using&&ge(this,me,Be).call(this,t,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!Jl(t)&&t.kind!==Ne.ObjectLiteralExpression&&t.kind!==Ne.ArrayLiteralExpression&&ge(this,me,Be).call(this,t,`The left-hand side of a '${o}' statement must be a variable or a property access.`)},Vh=function(t){if(!this.options.allowInvalidAST){Rh(t)&&ge(this,me,Be).call(this,t.illegalDecorators[0],"Decorators are not valid here.");for(let a of ta(t,!0)??[])zh(t)||(ms(t)&&!td(t.body)?ge(this,me,Be).call(this,a,"A decorator can only decorate a method implementation, not an overload."):ge(this,me,Be).call(this,a,"Decorators are not valid here."));for(let a of er(t,!0)??[]){if(a.kind!==T.ReadonlyKeyword&&((t.kind===T.PropertySignature||t.kind===T.MethodSignature)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type member`),t.kind===T.IndexSignature&&(a.kind!==T.StaticKeyword||!vi(t.parent))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on an index signature`)),a.kind!==T.InKeyword&&a.kind!==T.OutKeyword&&a.kind!==T.ConstKeyword&&t.kind===T.TypeParameter&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a type parameter`),(a.kind===T.InKeyword||a.kind===T.OutKeyword)&&(t.kind!==T.TypeParameter||!(vs(t.parent)||vi(t.parent)||Dl(t.parent)))&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),a.kind===T.ReadonlyKeyword&&t.kind!==T.PropertyDeclaration&&t.kind!==T.PropertySignature&&t.kind!==T.IndexSignature&&t.kind!==T.Parameter&&ge(this,me,Be).call(this,a,"'readonly' modifier can only appear on a property declaration or index signature."),a.kind===T.DeclareKeyword&&vi(t.parent)&&!Va(t)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on class elements of this kind.`),a.kind===T.DeclareKeyword&&Xa(t)){let o=Ml(t.declarationList);(o==="using"||o==="await using")&&ge(this,me,Be).call(this,a,`'declare' modifier cannot appear on a '${o}' declaration.`)}if(a.kind===T.AbstractKeyword&&t.kind!==T.ClassDeclaration&&t.kind!==T.ConstructorType&&t.kind!==T.MethodDeclaration&&t.kind!==T.PropertyDeclaration&&t.kind!==T.GetAccessor&&t.kind!==T.SetAccessor&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier can only appear on a class, method, or property declaration.`),(a.kind===T.StaticKeyword||a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)&&(t.parent.kind===T.ModuleBlock||t.parent.kind===T.SourceFile)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a module or namespace element.`),a.kind===T.AccessorKeyword&&t.kind!==T.PropertyDeclaration&&ge(this,me,Be).call(this,a,"'accessor' modifier can only appear on a property declaration."),a.kind===T.AsyncKeyword&&t.kind!==T.MethodDeclaration&&t.kind!==T.FunctionDeclaration&&t.kind!==T.FunctionExpression&&t.kind!==T.ArrowFunction&&ge(this,me,Be).call(this,a,"'async' modifier cannot be used here."),t.kind===T.Parameter&&(a.kind===T.StaticKeyword||a.kind===T.ExportKeyword||a.kind===T.DeclareKeyword||a.kind===T.AsyncKeyword)&&ge(this,me,Be).call(this,a,`'${it(a.kind)}' modifier cannot appear on a parameter.`),a.kind===T.PublicKeyword||a.kind===T.ProtectedKeyword||a.kind===T.PrivateKeyword)for(let o of er(t)??[])o!==a&&(o.kind===T.PublicKeyword||o.kind===T.ProtectedKeyword||o.kind===T.PrivateKeyword)&&ge(this,me,Be).call(this,o,"Accessibility modifier already seen.");if(t.kind===T.Parameter&&(a.kind===T.PublicKeyword||a.kind===T.PrivateKeyword||a.kind===T.ProtectedKeyword||a.kind===T.ReadonlyKeyword||a.kind===T.OverrideKeyword)){let o=qh(t);o.kind===T.Constructor&&td(o.body)||ge(this,me,Be).call(this,a,"A parameter property is only allowed in a constructor implementation.")}}}},Be=function(t,a){let o,m;throw typeof t=="number"?o=m=t:(o=t.getStart(this.ast),m=t.getEnd()),ed(a,this.ast,o,m)},Vt=function(t,a){this.options.allowInvalidAST||ge(this,me,Be).call(this,t,a)},Qa=function(t,a,o,m=!1){let v=m;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>t[o]:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use '${o}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),t[o]),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t},id=function(t,a,o,m){let v=!1;return Object.defineProperty(t,a,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>m:()=>(v||((void 0)(`The '${a}' property is deprecated on ${t.type} nodes. Use ${o} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),v=!0),m),set(A){Object.defineProperty(t,a,{enumerable:!0,value:A,writable:!0})}}),t};function wv(e,t,a=e.getSourceFile()){let o=[];for(;;){if(df(e.kind))t(e);else if(e.kind!==Ne.JSDocComment){let m=e.getChildren(a);if(m.length===1){e=m[0];continue}for(let v=m.length-1;v>=0;--v)o.push(m[v])}if(o.length===0)break;e=o.pop()}}function kv(e){switch(e.kind){case Ne.CloseBraceToken:return e.parent.kind!==Ne.JsxExpression||!_d(e.parent.parent);case Ne.GreaterThanToken:switch(e.parent.kind){case Ne.JsxOpeningElement:return e.end!==e.parent.end;case Ne.JsxOpeningFragment:return!1;case Ne.JsxSelfClosingElement:return e.end!==e.parent.end||!_d(e.parent.parent);case Ne.JsxClosingElement:case Ne.JsxClosingFragment:return!_d(e.parent.parent.parent)}}return!0}function _d(e){return e.kind===Ne.JsxElement||e.kind===Ne.JsxFragment}function Gh(e,t,a=e.getSourceFile()){let o=a.text,m=a.languageVariant!==Tl.JSX;return wv(e,A=>{if(A.pos!==A.end&&(A.kind!==Ne.JsxText&&Xm(o,A.pos===0?(_f(o)??"").length:A.pos,v),m||kv(A)))return $m(o,A.end,v)},a);function v(A,P,l){t(o,{end:P,kind:l,pos:A})}}var[XT,$T]=wm.split(".").map(e=>Number.parseInt(e,10));var QT=nn.Intrinsic??nn.Any|nn.Unknown|nn.String|nn.Number|nn.BigInt|nn.Boolean|nn.BooleanLiteral|nn.ESSymbol|nn.Void|nn.Undefined|nn.Null|nn.Never|nn.NonPrimitive;function Yh(e,t){let a=[];return Gh(e,(o,m)=>{let v=m.kind===Ne.SingleLineCommentTrivia?Rt.Line:Rt.Block,A=[m.pos,m.end],P=Qr(A,e),l=A[0]+2,Q=m.kind===Ne.SingleLineCommentTrivia?A[1]-l:A[1]-l-2;a.push({type:v,loc:P,range:A,value:t.slice(l,l+Q)})},e),a}var Hh=()=>{};function Xh(e,t,a){let{parseDiagnostics:o}=e;if(o.length)throw ad(o[0]);let m=new Ll(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:a,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),v=m.convertProgram();return(!t.range||!t.loc)&&Hh(v,{enter:P=>{t.range||delete P.range,t.loc||delete P.loc}}),t.tokens&&(v.tokens=jh(e)),t.comment&&(v.comments=Yh(e,t.codeFullText)),{astMaps:m.getASTMaps(),estree:v}}function jl(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===Ne.SourceFile&&typeof t.getFullText=="function"}var Iv=function(e){return e&&e.__esModule?e:{default:e}};var Ov=Iv({extname:e=>"."+e.split(".").pop()});function Qh(e,t){switch(Ov.default.extname(e).toLowerCase()){case Nn.Cjs:case Nn.Js:case Nn.Mjs:return Dr.JS;case Nn.Cts:case Nn.Mts:case Nn.Ts:return Dr.TS;case Nn.Json:return Dr.JSON;case Nn.Jsx:return Dr.JSX;case Nn.Tsx:return Dr.TSX;default:return t?Dr.TSX:Dr.TS}}var Jv={default:Ia},Lv=(0,Jv.default)("typescript-eslint:typescript-estree:createSourceFile");function Kh(e){return Lv("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),jl(e.code)?e.code:dh(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:ys.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,Qh(e.filePath,e.jsx))}var Zh=()=>{};var e0=e=>e;var t0=class{};var r0=()=>!1;var i0=()=>{};var Hv=function(e){return e&&e.__esModule?e:{default:e}};var sd={default:Ia},Xv=Hv({extname:e=>"."+e.split(".").pop()}),$v=(0,sd.default)("typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings"),Qv,Kv=null,a0,_0,s0,o0,xs={ParseAll:(a0=Ga)==null?void 0:a0.ParseAll,ParseForTypeErrors:(_0=Ga)==null?void 0:_0.ParseForTypeErrors,ParseForTypeInfo:(s0=Ga)==null?void 0:s0.ParseForTypeInfo,ParseNone:(o0=Ga)==null?void 0:o0.ParseNone};function c0(e,t={}){var h;let a=Zv(e),o=r0(t),m=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",v=typeof t.loggerFn=="function",A=e0(typeof t.filePath=="string"&&t.filePath!==""?t.filePath:e4(t.jsx),m),P=Xv.default.extname(A).toLowerCase(),l=(()=>{switch(t.jsDocParsingMode){case"all":return xs.ParseAll;case"none":return xs.ParseNone;case"type-info":return xs.ParseForTypeInfo;default:return xs.ParseAll}})(),Q={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:a,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(y=>typeof y=="string")?t.extraFileExtensions:[],filePath:A,jsDocParsingMode:l,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?Kv??(Kv=Zh(t.projectService,l,m)):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType===void 0&&P===Nn.Mjs||t.sourceType===void 0&&P===Nn.Mts?y=>{y.externalModuleIndicator=!0}:void 0,singleRun:o,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:Qv??(Qv=new t0(o?"Infinity":((h=t.cacheLifetime)==null?void 0:h.glob)??void 0)),tsconfigRootDir:m};if(Q.debugLevel.size>0){let y=[];Q.debugLevel.has("typescript-eslint")&&y.push("typescript-eslint:*"),(Q.debugLevel.has("eslint")||sd.default.enabled("eslint:*,-eslint:code-path"))&&y.push("eslint:*,-eslint:code-path"),sd.default.enable(y.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");$v("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!Q.programs&&!Q.projectService&&(Q.projects=new Map),t.jsDocParsingMode==null&&Q.projects.size===0&&Q.programs==null&&Q.projectService==null&&(Q.jsDocParsingMode=xs.ParseNone),i0(Q,v),Q}function Zv(e){return jl(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function e4(e){return e?"estree.tsx":"estree.ts"}var i4={default:Ia},fx=(0,i4.default)("typescript-eslint:typescript-estree:parser");function l0(e,t){let{ast:a}=a4(e,t,!1);return a}function a4(e,t,a){let o=c0(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let m=Kh(o),{astMaps:v,estree:A}=Xh(m,o,a);return{ast:A,esTreeNodeToTSNodeMap:v.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:v.tsNodeToESTreeNodeMap}}function _4(e,t){let a=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(a,t)}var u0=_4;function s4(e){let t=[];for(let a of e)try{return a()}catch(o){t.push(o)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var p0=s4;var o4=(e,t,a)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[a<0?t.length+a:a]:t.at(a)},od=o4;function c4(e){return Array.isArray(e)&&e.length>0}var f0=c4;function tr(e){var o,m,v;let t=((o=e.range)==null?void 0:o[0])??e.start,a=(v=((m=e.declaration)==null?void 0:m.decorators)??e.decorators)==null?void 0:v[0];return a?Math.min(tr(a),t):t}function Kr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function l4(e){let t=new Set(e);return a=>t.has(a==null?void 0:a.type)}var d0=l4;var u4=d0(["Block","CommentBlock","MultiLine"]),Ss=u4;function p4(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var cd=p4;function f4(e){return Ss(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var m0=f4;var ws=null;function ks(e){if(ws!==null&&typeof ws.property){let t=ws;return ws=ks.prototype=null,t}return ws=ks.prototype=e??Object.create(null),new ks}var d4=10;for(let e=0;e<=d4;e++)ks();function ld(e){return ks(e)}function m4(e,t="type"){ld(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var h0=m4;var y0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var h4=h0(y0),g0=h4;function ud(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let o=0;o{var A;(A=v.leadingComments)!=null&&A.some(m0)&&m.add(tr(v))}),e=Rl(e,v=>{if(v.type==="ParenthesizedExpression"){let{expression:A}=v;if(A.type==="TypeCastExpression")return A.range=[...v.range],A;let P=tr(v);if(!m.has(P))return A.extra={...A.extra,parenthesized:!0},A}})}if(e=Rl(e,m=>{switch(m.type){case"LogicalExpression":if(b0(m))return pd(m);break;case"VariableDeclaration":{let v=od(!1,m.declarations,-1);v!=null&&v.init&&o[Kr(v)]!==";"&&(m.range=[tr(m),Kr(v)]);break}case"TSParenthesizedType":return m.typeAnnotation;case"TSTypeParameter":if(typeof m.name=="string"){let v=tr(m);m.name={type:"Identifier",name:m.name,range:[v,v+m.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(m.types.length===1)return m.types[0];break}}),f0(e.comments)){let m=od(!1,e.comments,-1);for(let v=e.comments.length-2;v>=0;v--){let A=e.comments[v];Kr(A)===tr(m)&&Ss(A)&&Ss(m)&&cd(A)&&cd(m)&&(e.comments.splice(v+1,1),A.value+="*//*"+m.value,A.range=[tr(A),Kr(m)]),m=A}}return e.type==="Program"&&(e.range=[0,o.length]),e}function b0(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function pd(e){return b0(e)?pd({type:"LogicalExpression",operator:e.operator,left:pd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[tr(e.left),Kr(e.right.left)]}),right:e.right.right,range:[tr(e),Kr(e)]}):e}var v0=y4;var g4=/\*\/$/,b4=/^\/\*\*?/,v4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,T4=/(^|\s+)\/\/([^\n\r]*)/g,T0=/^(\r?\n)+/,x4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,x0=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,S4=/(\r?\n|^) *\* ?/g,w4=[];function S0(e){let t=e.match(v4);return t?t[0].trimStart():""}function w0(e){let t=` +`;e=Sr(!1,e.replace(b4,"").replace(g4,""),S4,"$1");let a="";for(;a!==e;)a=e,e=Sr(!1,e,x4,`${t}$1 $2${t}`);e=e.replace(T0,"").trimEnd();let o=Object.create(null),m=Sr(!1,e,x0,"").replace(T0,"").trimEnd(),v;for(;v=x0.exec(e);){let A=Sr(!1,v[2],T4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let P=o[v[1]];o[v[1]]=[...w4,...Array.isArray(P)?P:[P],A]}else o[v[1]]=A}return{comments:m,pragmas:o}}function k4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var k0=k4;function E4(e){let t=k0(e);t&&(e=e.slice(t.length+1));let a=S0(e),{pragmas:o,comments:m}=w0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function E0(e){let{pragmas:t}=E4(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function A4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:E0,locStart:tr,locEnd:Kr,...e}}var A0=A4;function C4(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var C0=C4;function D4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var D0=D4;var P4={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function N4(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return u0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var I4=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function O4(e,t){let a=t==null?void 0:t.filepath,o=[{...P4,filePath:a}],m=C0(t);if(m?o=o.map(A=>({...A,sourceType:m})):o=["module","script"].flatMap(P=>o.map(l=>({...l,sourceType:P}))),a&&I4(a))return o;let v=J4(e);return[v,!v].flatMap(A=>o.map(P=>({...P,jsx:A})))}function M4(e,t={}){let a=D0(e),o=O4(e,t),m;try{m=p0(o.map(v=>()=>l0(a,v)))}catch({errors:[v]}){throw N4(v)}return v0(m,{text:e})}function J4(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"mu").test(e)}var L4=A0(M4);var fS=dd;export{fS as default,fd as parsers}; diff --git a/node_modules/prettier/plugins/yaml.js b/node_modules/prettier/plugins/yaml.js index 90517871..6d7c6f0e 100644 --- a/node_modules/prettier/plugins/yaml.js +++ b/node_modules/prettier/plugins/yaml.js @@ -87,21 +87,21 @@ ${s} `),n}_s.parse=ko});var $e=ee(k=>{"use strict";var p=le();function vo(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} ${e}${t}`:t}function Be(t,e,n){return n?n.indexOf(` `)===-1?`${t} #${n}`:`${t} -`+n.replace(/^/gm,`${e||""}#`):t}var V=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends V{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Rs(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,W=class t extends V{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Rs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Rs(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Li=>{C.push({type:"comment",str:`#${Li}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(` +`+n.replace(/^/gm,`${e||""}#`):t}var W=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends W{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Rs(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,j=class t extends W{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Rs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Rs(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Li=>{C.push({type:"comment",str:`#${Li}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(` `)&&(h=!0),m&&MA.str);if(h||M.reduce((A,_)=>A+_.length+2,2)>t.maxFlowStringSingleLineLength){w=C;for(let A of M)w+=A?` ${l}${c}${A}`:` `;w+=` ${c}${L}`}else w=`${C} ${M.join(" ")} ${L}`}else{let C=g.map(n);w=C.shift();for(let L of C)w+=L?` ${c}${L}`:` `}return this.comment?(w+=` -`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(W,"maxFlowStringSingleLineLength",60);function qt(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends W{add(e){this.items.push(e)}delete(e){let n=qt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=qt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=qt(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},Io=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof V&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends V{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof V?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof V)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=Io(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof V&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof W){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof V?a instanceof W||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Be(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Be(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} -${d}:`:`${w}:`,this.comment&&(w=Be(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof V){if(c.spaceBefore&&(C=` +`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(j,"maxFlowStringSingleLineLength",60);function qt(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends j{add(e){this.items.push(e)}delete(e){let n=qt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=qt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=qt(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},Io=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof W&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends W{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof W?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof W)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=Io(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof W&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof j){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof W?a instanceof j||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Be(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Be(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} +${d}:`:`${w}:`,this.comment&&(w=Be(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof W){if(c.spaceBefore&&(C=` `),c.commentBefore){let _=c.commentBefore.replace(/^/gm,`${e.indent}#`);C+=` ${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof P&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof pe&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let M=h(c,e,()=>L=null,()=>g=!0),A=" ";return C||this.comment?A=`${C} -${e.indent}`:!f&&c instanceof W?(!(M[0]==="["||M[0]==="{")||M.includes(` +${e.indent}`:!f&&c instanceof j?(!(M[0]==="["||M[0]==="{")||M.includes(` `))&&(A=` ${e.indent}`):M[0]===` -`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ut=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=Ut(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Ut(t.key,e),r=Ut(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Ut(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},$s="<<",Wt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P($s),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Po={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},_o={trueStr:"true",falseStr:"false"},xo={asBigInt:!1},Ro={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Fs="flow",$n="block",Kt="quoted",Ds=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ut=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof j){let n=0;for(let r of t.items){let s=Ut(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Ut(t.key,e),r=Ut(t.value,e);return Math.max(n,r)}return 1},we=class t extends W{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Ut(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends j{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},$s="<<",Wt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P($s),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Po={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},_o={trueStr:"true",falseStr:"false"},xo={asBigInt:!1},Ro={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Fs="flow",$n="block",Kt="quoted",Ds=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` `);n=t[e+1]}return e};function jt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===$n&&(g=Ds(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===Kt&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` `)n===$n&&(g=Ds(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` `&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==` @@ -126,16 +126,16 @@ ${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Fn(m,y,y.scalarFallback).value!= `)!==-1)?(n&&n(),vo(d,l,s)):d}function Bo(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Vt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return qs(c,e);case p.Type.PLAIN:return Yo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function $o({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function Us(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Ks(t,e){let n=e.context.src[e.range.start-1];if(n!==` `&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function Vs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function Ws(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` `+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Fo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function qo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Fo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Ys(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function Uo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Ko(t,e,n){try{let r=Ys(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Uo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Ys(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Vo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Wo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Vo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=qo(t,e);if(i)return Ko(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Wo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Fo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function qo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Fo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Ys(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof j?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function Uo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Ko(t,e,n){try{let r=Ys(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Uo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Ys(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Vo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Wo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Vo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=qo(t,e);if(i)return Ko(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Wo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` `);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} ${o}`:o);let a=n.after.join(` `);a&&(i.comment=i.comment?`${i.comment} -${a}`:a)}return e.resolved=i}function Qo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Xo(t,e):Ho(t,e),s=new mt;s.items=r,Ws(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Go(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Vs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Xo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(Vs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var j=le(),O=$e(),ta={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new j.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} +${a}`:a)}return e.resolved=i}function Qo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Xo(t,e):Ho(t,e),s=new mt;s.items=r,Ws(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Go(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Vs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Xo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof j)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(Vs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var Q=le(),O=$e(),ta={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} ${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Js(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var na={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qs,createNode:Js},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function ra(t,e){let n=Qs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function sa(t,e,n){let r=Js(t,e,n),s=new Fe;return s.items=r.items,s}var ia={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ra,createNode:sa},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function oa(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function aa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var ca={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:oa,createNode:aa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Gs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},fa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},ua={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function pa(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var js={};function ma(t,e){if(!js[t]&&Vn(!0)){js[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ta;z.floatTime=fa;z.intTime=la;z.omap=ia;z.pairs=na;z.set=ca;z.timestamp=ua;z.warn=Wn;z.warnFileDeprecation=pa;z.warnOptionDeprecation=ma});var Hn=ee(ci=>{"use strict";var Ht=le(),E=$e(),D=jn();function ha(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ha,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ga(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Xt={createNode:ga,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},da={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Xt,da],zt=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function zs(t,e,n){let{value:r}=t;return zt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Zs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ei={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},ti={identify:t=>zt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>zs(t,8,"0o")},ni={identify:zt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ri={identify:t=>zt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>zs(t,16,"0x")},si={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ii={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},oi={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ya=Jn.concat([Zs,ei,ti,ni,ri,si,ii,oi]),Hs=t=>typeof t=="bigint"||Number.isInteger(t),Jt=({value:t})=>JSON.stringify(t),ai=[gt,Xt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Jt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Jt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Jt},{identify:Hs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Hs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Jt}];ai.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Xs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Gt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var Ea=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Xs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Xs},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Gt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Gt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Gt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Gt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Sa={core:ya,failsafe:Jn,json:ai,yaml11:Ea},wa={binary:D.binary,bool:ei,float:oi,floatExp:ii,floatNaN:si,floatTime:D.floatTime,int:ni,intHex:ri,intOct:ti,intTime:D.intTime,map:gt,null:Zs,omap:D.omap,pairs:D.pairs,seq:Xt,set:D.set,timestamp:D.timestamp};function ba(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function Na(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=ba(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Xt:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Oa(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var La=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?La:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Oa(Sa,wa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return Na(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Ht._defineProperty(dt,"defaultPrefix",Ht.defaultTagPrefix);Ht._defineProperty(dt,"defaultTags",Ht.defaultTags);ci.Schema=dt});var pi=ee(nn=>{"use strict";var Y=le(),S=$e(),li=Hn(),Aa={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ta={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ui={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function fi(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ca(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ma(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(fi(r,t.tag)):e.default||s.push(fi(r,e.tag)),s.join(" ")}function Zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ca(i.tags,t));let a=Ma(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Js(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var na={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qs,createNode:Js},Fe=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function ra(t,e){let n=Qs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function sa(t,e,n){let r=Js(t,e,n),s=new Fe;return s.items=r.items,s}var ia={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ra,createNode:sa},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(qe,"tag","tag:yaml.org,2002:set");function oa(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function aa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var ca={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:oa,createNode:aa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Gs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},fa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},ua={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function pa(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var js={};function ma(t,e){if(!js[t]&&Vn(!0)){js[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ta;z.floatTime=fa;z.intTime=la;z.omap=ia;z.pairs=na;z.set=ca;z.timestamp=ua;z.warn=Wn;z.warnFileDeprecation=pa;z.warnOptionDeprecation=ma});var Hn=ee(ci=>{"use strict";var Ht=le(),E=$e(),D=jn();function ha(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ha,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ga(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Xt={createNode:ga,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},da={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Xt,da],zt=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function zs(t,e,n){let{value:r}=t;return zt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Zs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ei={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},ti={identify:t=>zt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>zs(t,8,"0o")},ni={identify:zt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ri={identify:t=>zt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>zs(t,16,"0x")},si={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ii={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},oi={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ya=Jn.concat([Zs,ei,ti,ni,ri,si,ii,oi]),Hs=t=>typeof t=="bigint"||Number.isInteger(t),Jt=({value:t})=>JSON.stringify(t),ai=[gt,Xt,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Jt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Jt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Jt},{identify:Hs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Hs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Jt}];ai.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Xs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Gt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var Ea=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Xs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Xs},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Gt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Gt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Gt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Gt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Sa={core:ya,failsafe:Jn,json:ai,yaml11:Ea},wa={binary:D.binary,bool:ei,float:oi,floatExp:ii,floatNaN:si,floatTime:D.floatTime,int:ni,intHex:ri,intOct:ti,intTime:D.intTime,map:gt,null:Zs,omap:D.omap,pairs:D.pairs,seq:Xt,set:D.set,timestamp:D.timestamp};function ba(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function Na(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=ba(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Xt:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Oa(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var La=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?La:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Oa(Sa,wa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return Na(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Ht._defineProperty(dt,"defaultPrefix",Ht.defaultTagPrefix);Ht._defineProperty(dt,"defaultTags",Ht.defaultTags);ci.Schema=dt});var pi=ee(nn=>{"use strict";var Y=le(),S=$e(),li=Hn(),Aa={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ta={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ui={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function fi(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ca(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ma(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(fi(r,t.tag)):e.default||s.push(fi(r,e.tag)),s.join(" ")}function Zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ca(i.tags,t));let a=Ma(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} ${e.indent}${c}`:c}var Xn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},en=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>en(r,e))):t instanceof S.Pair?(en(t.key,e),en(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},ka=t=>Object.keys(en(t,{}));function va(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` `),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` `)||null;else{let i=n.before.join(` @@ -144,7 +144,7 @@ ${o.commentBefore}`:i}t.comment=n.after.join(` `)||null}}function Ia({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Pa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!ui[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function _a(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(Ia(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Pa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` `)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var tn=class t{constructor(e){this.anchors=new Xn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new li.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),_a(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],va(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return ka(this.contents).filter(e=>e.indexOf(li.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Zt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Zt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Zt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Zt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` `)+` -`}};Y._defineProperty(tn,"defaults",ui);nn.Document=tn;nn.defaultOptions=Aa;nn.scalarOptions=Ta});var gi=ee(hi=>{"use strict";var zn=xs(),Ne=pi(),xa=Hn(),Ra=le(),Da=jn();$e();function Ya(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new xa.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ba(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function mi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ra.YAMLSemanticError(n[1],s))}return r}function $a(t,e){let n=mi(t,e);if(n.warnings.forEach(r=>Da.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Fa(t,e){let n=new Ke(e);return n.contents=t,String(n)}var qa={createNode:Ya,defaultOptions:Ne.defaultOptions,Document:Ke,parse:$a,parseAllDocuments:Ba,parseCST:zn.parse,parseDocument:mi,scalarOptions:Ne.scalarOptions,stringify:Fa};hi.YAML=qa});var yi=ee((Dm,di)=>{di.exports=gi().YAML});var Ei=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var Ga={};tr(Ga,{languages:()=>Pr,options:()=>_r,parsers:()=>er,printers:()=>Ja});var Ii=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Et=Ii;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",St=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Pi(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(St.has(e))return e}var et=Pi;var _i=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function xi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`}};Y._defineProperty(tn,"defaults",ui);nn.Document=tn;nn.defaultOptions=Aa;nn.scalarOptions=Ta});var gi=ee(hi=>{"use strict";var zn=xs(),Ne=pi(),xa=Hn(),Ra=le(),Da=jn();$e();function Ya(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new xa.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ba(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function mi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ra.YAMLSemanticError(n[1],s))}return r}function $a(t,e){let n=mi(t,e);if(n.warnings.forEach(r=>Da.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Fa(t,e){let n=new Ke(e);return n.contents=t,String(n)}var qa={createNode:Ya,defaultOptions:Ne.defaultOptions,Document:Ke,parse:$a,parseAllDocuments:Ba,parseCST:zn.parse,parseDocument:mi,scalarOptions:Ne.scalarOptions,stringify:Fa};hi.YAML=qa});var yi=ee((Dm,di)=>{di.exports=gi().YAML});var Ei=ee(J=>{"use strict";var Ve=$e(),We=le();J.findPair=Ve.findPair;J.parseMap=Ve.resolveMap;J.parseSeq=Ve.resolveSeq;J.stringifyNumber=Ve.stringifyNumber;J.stringifyString=Ve.stringifyString;J.toJSON=Ve.toJSON;J.Type=We.Type;J.YAMLError=We.YAMLError;J.YAMLReferenceError=We.YAMLReferenceError;J.YAMLSemanticError=We.YAMLSemanticError;J.YAMLSyntaxError=We.YAMLSyntaxError;J.YAMLWarning=We.YAMLWarning});var Ga={};tr(Ga,{languages:()=>Pr,options:()=>_r,parsers:()=>er,printers:()=>Ja});var Ii=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Et=Ii;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",St=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Pi(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(St.has(e))return e}var et=Pi;var _i=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function xi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(et(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=_i([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. Expected it to be ${r}.`}var rn=class extends Error{name="InvalidDocError";constructor(e){super(xi(e)),this.doc=e}},sn=rn;var sr=()=>{},he=sr,wt=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),wt(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function on(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function an(t,e){return ke(t[0],{...e,expandedStates:t})}function bt(t){return wt(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var Nt={type:Me};var Ri={type:te,hard:!0},Di={type:te,hard:!0,literal:!0},ne={type:te},Ot={type:te,soft:!0},N=[Ri,Nt],rt=[Di,Nt];function v(t,e){he(t),wt(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Yi;function Bi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new sn(i)}}}function cr(t,e=rt){return Bi(t,n=>typeof n=="string"?v(e,n.split(` `)):n)}function Lt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}ur.getVisitorKeys=()=>[];var pr=ur;var st=null;function it(t){if(st!==null&&typeof st.property){let e=st;return st=it.prototype=null,e}return st=it.prototype=t??Object.create(null),new it}var qi=10;for(let t=0;t<=qi;t++)it();function un(t){return it(t)}function Ui(t,e="type"){un(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var mr=Ui;var Ki=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),hr=Ki;var Vi=mr(hr),gr=Vi;function ve(t){return t.position.start.offset}function dr(t){return t.position.end.offset}function yr(t){return/^\s*@(?:prettier|format)\s*$/u.test(t)}function Er(t){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t)}function Sr(t){return`# @format -${t}`}function Wi(t){return Array.isArray(t)&&t.length>0}var Ie=Wi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function br(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s0}var Ie=Wi;function H(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function br(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:Or(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Ar(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Or(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var hn=new WeakMap;function Ct(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),br(n,e)&&!gn(t.parent))?Ot:""}function gn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Qi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=At(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Ar(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(bt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Tr=Qi;function Mt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ot;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Ct(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&ot(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t){return pn(t,Zi)}function Zi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Mr=zi;function eo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!At(t)&&(a=Ct(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Nr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(to(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":Nt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function to(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=Tt(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return ro(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),no(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Tt(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?Et(!1,Et(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?Et(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Tr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Mt(t,n,e);case"flowSequence":return Mt(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function no(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function ro(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Lr(t,e,n);return v(N,r.map(s=>bt(v(ne,s))))}function vr(t,e){if(G(t))switch(t.type){case"comment":if(yr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}vr.ignoredProperties=new Set(["position"]);var so={preprocess:Mr,embed:pr,print:eo,massageAstNode:vr,insertPragma:Sr,getVisitorKeys:gr},Ir=so;var Pr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var kt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var io={bracketSpacing:kt.bracketSpacing,singleQuote:kt.singleQuote,proseWrap:kt.proseWrap},_r=io;var er={};tr(er,{yaml:()=>Qa});var vt=` -`,xr="\r",Rr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function Dr(t){B(t);let e=oo(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();ao(r,e,n[0])})}function oo(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Yr(e,t),e}function Yr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Yr(t,n)})}}function ao(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(co(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function co(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function $r(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Fr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function qr(t,e){let n=t.cstNode;return Fr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Ur(t){return{...t,type:"blockFolded"}}function Kr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function Vr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Wr(t,e,n){return{anchor:e,tag:t,middleComments:n}}function jr(t,e){return{...b("tag",t),value:e}}function It(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=jr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=Vr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Wr(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function Pt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=It(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function fo(t,e,n){let r=_t(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ns(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function rs(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=uo(n,e),{position:o,endMarkerPoint:a}=po(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ns(o,r,i,l)),documentHeadEndMarkerPoint:a}}function uo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function po(t,e,n){let r=_t(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ss(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=rs(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=ts(t,e,r),c=n(a);return o&&e.comments.push(o),Zr(K(c.position.start,i),c,s,o)}function xt(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function is(t,e,n){return{...xt(t,e,n),type:"flowMapping"}}function Rt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Dt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Yt(t,e){let n=e;return r=>t.slice(n,n=r)}function Bt(t){let e=[],n=Yt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Dt(l);return De(a,e,Rt,f,m)}),i=n[0],o=q(n);return is(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...xt(t,e,n),type:"flowSequence"}}function cs(t,e){return{...b("flowSequenceItem",t),children:[e]}}function ls(t,e){let n=ce(t.cstNode.items,e),r=Bt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return cs(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Dt(l);return De(a,e,Rt,f,m)}}),i=n[0],o=q(n);return as(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function fs(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function us(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ps(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=mo(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,us,l,f)});return fs(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function mo(t){let e=[],n=Yt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function gs(t,e){let n=t.cstNode;return ms(e.transformRange({origStart:n.valueRange.origStart,origEnd:hs(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ds(t){return{...t,type:"quoteDouble"}}function ys(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function $t(t,e){let n=t.cstNode;return ys(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Es(t,e){return ds($t(t,e))}function Ss(t){return{...t,type:"quoteSingle"}}function ws(t,e){return Ss($t(t,e))}function bs(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ns(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function Os(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ns(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return bs(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function Ls(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return qr(t,e);case"BLOCK_FOLDED":return Qr(t,e);case"BLOCK_LITERAL":return Gr(t,e);case"COMMENT":return Hr(t,e);case"DIRECTIVE":return zr(t,e);case"DOCUMENT":return ss(t,e);case"FLOW_MAP":return os(t,e);case"FLOW_SEQ":return ls(t,e);case"MAP":return ps(t,e);case"PLAIN":return gs(t,e);case"QUOTE_DOUBLE":return Es(t,e);case"QUOTE_SINGLE":return ws(t,e);case"SEQ":return Os(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function As(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Ts(t,e){let n=t.source.range||t.source.valueRange;return As(t.message,e.text,e.transformRange(n))}function Cs(t,e,n){return{offset:t,line:e,column:n}}function Ms(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Cs(t,n.line+1,n.column+1)}function ks(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function vs(t){if(!t.setOrigRanges()){let e=n=>{if(ho(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(go(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function ho(t){return typeof t.start=="number"}function go(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,yo,Eo,bo),r=On(t.position,So,wo,No);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function yo(t){return t.start}function Eo(t,e){t.start=e}function So(t){return t.end}function wo(t,e){t.end=e}function bo(t,e){return e.offsett.offset}var Si=rr(yi(),1);var J=rr(Ei(),1),Bm=J.default.findPair,$m=J.default.toJSON,Fm=J.default.parseMap,qm=J.default.parseSeq,Um=J.default.stringifyNumber,Km=J.default.stringifyString,Vm=J.default.Type,Ua=J.default.YAMLError,Wm=J.default.YAMLReferenceError,Zn=J.default.YAMLSemanticError,Ka=J.default.YAMLSyntaxError,jm=J.default.YAMLWarning;var{Document:wi,parseCST:bi}=Si.default;function Ni(t){let e=bi(t);vs(e);let n=e.map(a=>new wi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Rr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>Ms(a,i),transformRange:a=>ks(a,i),transformNode:a=>Ls(a,i),transformContent:a=>It(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Ts(c,i);n.forEach(a=>ct(a.cstNode));let o=$r(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return Dr(o),Ln(o),Nn(o),o}function Wa(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Oi=Wa;function ja(t){try{let e=Ni(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Oi(e.message,{loc:e.position,cause:e}):e}}var Qa={astFormat:"yaml",parse:ja,hasPragma:Er,locStart:ve,locEnd:dr};var Ja={yaml:Ir};return vi(Ga);}); \ No newline at end of file +`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Or(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var hn=new WeakMap;function Ct(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),br(n,e)&&!gn(t.parent))?Ot:""}function gn(t){return R(t)&&!H(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Qi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=At(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Ar(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(bt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Tr=Qi;function Mt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Ot;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Ct(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!K(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!K(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!H(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&ot(o.content)||H(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):K(o)&&g.push(" "),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t){return pn(t,Zi)}function Zi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Mr=zi;function eo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return H(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!At(t)&&(a=Ct(t,e.originalText)),(i||o)&&(H(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Nr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(to(t,e,n))),K(r)&&!H(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":Nt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function to(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),K(o)&&s.push(" ",n("trailingComment"))):a&&!K(a.head)&&s.push(N,"---")},"children");let i=Tt(r);return(!H(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return ro(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),no(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Tt(r);H(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?Et(!1,Et(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?Et(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Tr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Mt(t,n,e);case"flowSequence":return Mt(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function no(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return K(t)||e&&(e.head.children.length>0||R(e.head))}function ro(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||K(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Lr(t,e,n);return v(N,r.map(s=>bt(v(ne,s))))}function vr(t,e){if(H(t))switch(t.type){case"comment":if(yr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}vr.ignoredProperties=new Set(["position"]);var so={preprocess:Mr,embed:pr,print:eo,massageAstNode:vr,insertPragma:Sr,getVisitorKeys:gr},Ir=so;var Pr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var kt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var io={bracketSpacing:kt.bracketSpacing,singleQuote:kt.singleQuote,proseWrap:kt.proseWrap},_r=io;var er={};tr(er,{yaml:()=>Qa});var vt=` +`,xr="\r",Rr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function Dr(t){B(t);let e=oo(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();ao(r,e,n[0])})}function oo(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Yr(e,t),e}function Yr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Yr(t,n)})}}function ao(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(co(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function co(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function $r(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Fr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function qr(t,e){let n=t.cstNode;return Fr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Ur(t){return{...t,type:"blockFolded"}}function Kr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function Vr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Wr(t,e,n){return{anchor:e,tag:t,middleComments:n}}function jr(t,e){return{...b("tag",t),value:e}}function It(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=jr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=Vr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Wr(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function Pt(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=It(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function fo(t,e,n){let r=_t(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ns(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function rs(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=uo(n,e),{position:o,endMarkerPoint:a}=po(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ns(o,r,i,l)),documentHeadEndMarkerPoint:a}}function uo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function po(t,e,n){let r=_t(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ss(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=rs(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=ts(t,e,r),c=n(a);return o&&e.comments.push(o),Zr(V(c.position.start,i),c,s,o)}function xt(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function is(t,e,n){return{...xt(t,e,n),type:"flowMapping"}}function Rt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Dt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Yt(t,e){let n=e;return r=>t.slice(n,n=r)}function Bt(t){let e=[],n=Yt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Dt(l);return De(a,e,Rt,f,m)}),i=n[0],o=q(n);return is(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{...xt(t,e,n),type:"flowSequence"}}function cs(t,e){return{...b("flowSequenceItem",t),children:[e]}}function ls(t,e){let n=ce(t.cstNode.items,e),r=Bt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return cs(V(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Dt(l);return De(a,e,Rt,f,m)}}),i=n[0],o=q(n);return as(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function fs(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function us(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ps(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=mo(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,us,l,f)});return fs(V(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function mo(t){let e=[],n=Yt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function gs(t,e){let n=t.cstNode;return ms(e.transformRange({origStart:n.valueRange.origStart,origEnd:hs(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ds(t){return{...t,type:"quoteDouble"}}function ys(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function $t(t,e){let n=t.cstNode;return ys(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Es(t,e){return ds($t(t,e))}function Ss(t){return{...t,type:"quoteSingle"}}function ws(t,e){return Ss($t(t,e))}function bs(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ns(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function Os(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ns(V(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return bs(V(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function Ls(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return qr(t,e);case"BLOCK_FOLDED":return Qr(t,e);case"BLOCK_LITERAL":return Gr(t,e);case"COMMENT":return Hr(t,e);case"DIRECTIVE":return zr(t,e);case"DOCUMENT":return ss(t,e);case"FLOW_MAP":return os(t,e);case"FLOW_SEQ":return ls(t,e);case"MAP":return ps(t,e);case"PLAIN":return gs(t,e);case"QUOTE_DOUBLE":return Es(t,e);case"QUOTE_SINGLE":return ws(t,e);case"SEQ":return Os(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function As(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Ts(t,e){let n=t.source.range||t.source.valueRange;return As(t.message,e.text,e.transformRange(n))}function Cs(t,e,n){return{offset:t,line:e,column:n}}function Ms(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Cs(t,n.line+1,n.column+1)}function ks(t,e){return V(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function vs(t){if(!t.setOrigRanges()){let e=n=>{if(ho(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(go(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function ho(t){return typeof t.start=="number"}function go(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,yo,Eo,bo),r=On(t.position,So,wo,No);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function yo(t){return t.start}function Eo(t,e){t.start=e}function So(t){return t.end}function wo(t,e){t.end=e}function bo(t,e){return e.offsett.offset}var Si=rr(yi(),1);var G=rr(Ei(),1),Bm=G.default.findPair,$m=G.default.toJSON,Fm=G.default.parseMap,qm=G.default.parseSeq,Um=G.default.stringifyNumber,Km=G.default.stringifyString,Vm=G.default.Type,Ua=G.default.YAMLError,Wm=G.default.YAMLReferenceError,Zn=G.default.YAMLSemanticError,Ka=G.default.YAMLSyntaxError,jm=G.default.YAMLWarning;var{Document:wi,parseCST:bi}=Si.default;function Ni(t){let e=bi(t);vs(e);let n=e.map(a=>new wi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Rr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>Ms(a,i),transformRange:a=>ks(a,i),transformNode:a=>Ls(a,i),transformContent:a=>It(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Ts(c,i);n.forEach(a=>ct(a.cstNode));let o=$r(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return Dr(o),Ln(o),Nn(o),o}function Wa(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Oi=Wa;function ja(t){try{let e=Ni(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Oi(e.message,{loc:e.position,cause:e}):e}}var Qa={astFormat:"yaml",parse:ja,hasPragma:Er,locStart:ve,locEnd:dr};var Ja={yaml:Ir};return vi(Ga);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/yaml.mjs b/node_modules/prettier/plugins/yaml.mjs index a1abcfdc..504f8a70 100644 --- a/node_modules/prettier/plugins/yaml.mjs +++ b/node_modules/prettier/plugins/yaml.mjs @@ -87,21 +87,21 @@ ${s} `),n}_s.parse=ko});var $e=ee(k=>{"use strict";var p=le();function vo(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)} ${e}${t}`:t}function Be(t,e,n){return n?n.indexOf(` `)===-1?`${t} #${n}`:`${t} -`+n.replace(/^/gm,`${e||""}#`):t}var V=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends V{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Rs(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,W=class t extends V{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Rs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Rs(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Li=>{C.push({type:"comment",str:`#${Li}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(` +`+n.replace(/^/gm,`${e||""}#`):t}var W=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends W{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Rs(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,j=class t extends W{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Rs(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Rs(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Li=>{C.push({type:"comment",str:`#${Li}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(` `)&&(h=!0),m&&MA.str);if(h||M.reduce((A,_)=>A+_.length+2,2)>t.maxFlowStringSingleLineLength){w=C;for(let A of M)w+=A?` ${l}${c}${A}`:` `;w+=` ${c}${L}`}else w=`${C} ${M.join(" ")} ${L}`}else{let C=g.map(n);w=C.shift();for(let L of C)w+=L?` ${c}${L}`:` `}return this.comment?(w+=` -`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(W,"maxFlowStringSingleLineLength",60);function Ft(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends W{add(e){this.items.push(e)}delete(e){let n=Ft(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Ft(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=Ft(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},Io=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof V&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends V{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof V?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof V)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=Io(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof V&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof W){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof V?a instanceof W||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Be(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Be(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} -${d}:`:`${w}:`,this.comment&&(w=Be(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof V){if(c.spaceBefore&&(C=` +`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(j,"maxFlowStringSingleLineLength",60);function Ft(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends j{add(e){this.items.push(e)}delete(e){let n=Ft(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Ft(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=Ft(e);return typeof n=="number"&&ns.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},Io=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof W&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends W{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof W?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof W)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=Io(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof W&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof j){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof W?a instanceof j||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Be(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Be(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w} +${d}:`:`${w}:`,this.comment&&(w=Be(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof W){if(c.spaceBefore&&(C=` `),c.commentBefore){let _=c.commentBefore.replace(/^/gm,`${e.indent}#`);C+=` ${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof P&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof pe&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let M=h(c,e,()=>L=null,()=>g=!0),A=" ";return C||this.comment?A=`${C} -${e.indent}`:!f&&c instanceof W?(!(M[0]==="["||M[0]==="{")||M.includes(` +${e.indent}`:!f&&c instanceof j?(!(M[0]==="["||M[0]==="{")||M.includes(` `))&&(A=` ${e.indent}`):M[0]===` -`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var qt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof W){let n=0;for(let r of t.items){let s=qt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=qt(t.key,e),r=qt(t.value,e);return Math.max(n,r)}return 1},we=class t extends V{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=qt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends W{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},$s="<<",Vt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P($s),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Po={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},_o={trueStr:"true",falseStr:"false"},xo={asBigInt:!1},Ro={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Fs="flow",$n="block",Ut="quoted",Ds=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` +`&&(A=""),g&&!L&&r&&r(),Be(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var qt=(t,e)=>{if(t instanceof we){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof j){let n=0;for(let r of t.items){let s=qt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=qt(t.key,e),r=qt(t.value,e);return Math.max(n,r)}return 1},we=class t extends W{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=qt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(we,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends j{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},$s="<<",Vt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P($s),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},Po={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},_o={trueStr:"true",falseStr:"false"},xo={asBigInt:!1},Ro={nullStr:"null"},be={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Fn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var Fs="flow",$n="block",Ut="quoted",Ds=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==` `);n=t[e+1]}return e};function Wt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===$n&&(g=Ds(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===Ut&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===` `)n===$n&&(g=Ds(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==` `&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==` @@ -126,16 +126,16 @@ ${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof Fn(m,y,y.scalarFallback).value!= `)!==-1)?(n&&n(),vo(d,l,s)):d}function Bo(t,e,n,r){let{defaultType:s}=be,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Kt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return Se(c,e);case p.Type.QUOTE_SINGLE:return qs(c,e);case p.Type.PLAIN:return Yo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function $o({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function Us(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Ks(t,e){let n=e.context.src[e.range.start-1];if(n!==` `&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function Vs(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function Ws(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=` `+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=` -`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Fo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function qo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Fo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Ys(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof W?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function Uo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Ko(t,e,n){try{let r=Ys(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Uo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Ys(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Vo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Wo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Vo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=qo(t,e);if(i)return Ko(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Wo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` +`+s:t.comment=s)}}function Un(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Fo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function qo(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Fo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function Ys(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof j?a:new P(a)}let i=Un(t,e);return typeof i=="string"&&s.length>0?Fn(i,s,r.scalarFallback):null}function Uo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Ko(t,e,n){try{let r=Ys(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Uo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=Ys(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var Vo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Wo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=Vo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new we(a);return n._cstAliases.push(c),c}let i=qo(t,e);if(i)return Ko(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Un(t,e);return Fn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Wo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(` `);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore} ${o}`:o);let a=n.after.join(` `);a&&(i.comment=i.comment?`${i.comment} -${a}`:a)}return e.resolved=i}function Qo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Xo(t,e):Ho(t,e),s=new mt;s.items=r,Ws(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Go(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Vs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Xo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof W)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(Vs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var j=le(),O=$e(),ta={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new j.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} +${a}`:a)}return e.resolved=i}function Qo(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Xo(t,e):Ho(t,e),s=new mt;s.items=r,Ws(s,n);let i=!1;for(let o=0;o{if(f instanceof we){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Go(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Vs(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Xo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;ai instanceof T&&i.key instanceof j)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function Zo(t,e){let n=[],r=[];for(let s=0;so+1024&&t.errors.push(Vs(e,i));let{src:h}=c.context;for(let g=o;g{"use strict";var Q=le(),O=$e(),ta={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore} ${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment} -${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Js(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var na={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qs,createNode:Js},Fe=class t extends O.YAMLSeq{constructor(){super(),j._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),j._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),j._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),j._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),j._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};j._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function ra(t,e){let n=Qs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new j.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function sa(t,e,n){let r=Js(t,e,n),s=new Fe;return s.items=r.items,s}var ia={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ra,createNode:sa},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};j._defineProperty(qe,"tag","tag:yaml.org,2002:set");function oa(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new j.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function aa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var ca={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:oa,createNode:aa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Gs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},fa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},ua={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function pa(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var js={};function ma(t,e){if(!js[t]&&Vn(!0)){js[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ta;z.floatTime=fa;z.intTime=la;z.omap=ia;z.pairs=na;z.set=ca;z.timestamp=ua;z.warn=Wn;z.warnFileDeprecation=pa;z.warnOptionDeprecation=ma});var Hn=ee(ci=>{"use strict";var Gt=le(),E=$e(),D=jn();function ha(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ha,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ga(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Ht={createNode:ga,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},da={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Ht,da],Xt=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function zs(t,e,n){let{value:r}=t;return Xt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Zs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ei={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},ti={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>zs(t,8,"0o")},ni={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ri={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>zs(t,16,"0x")},si={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ii={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},oi={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ya=Jn.concat([Zs,ei,ti,ni,ri,si,ii,oi]),Hs=t=>typeof t=="bigint"||Number.isInteger(t),Qt=({value:t})=>JSON.stringify(t),ai=[gt,Ht,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Qt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Qt},{identify:Hs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Hs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Qt}];ai.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Xs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Jt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var Ea=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Xs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Xs},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Jt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Jt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Jt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Jt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Sa={core:ya,failsafe:Jn,json:ai,yaml11:Ea},wa={binary:D.binary,bool:ei,float:oi,floatExp:ii,floatNaN:si,floatTime:D.floatTime,int:ni,intHex:ri,intOct:ti,intTime:D.intTime,map:gt,null:Zs,omap:D.omap,pairs:D.pairs,seq:Ht,set:D.set,timestamp:D.timestamp};function ba(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function Na(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=ba(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Ht:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Oa(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var La=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?La:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Oa(Sa,wa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return Na(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Gt._defineProperty(dt,"defaultPrefix",Gt.defaultTagPrefix);Gt._defineProperty(dt,"defaultTags",Gt.defaultTags);ci.Schema=dt});var pi=ee(tn=>{"use strict";var Y=le(),S=$e(),li=Hn(),Aa={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ta={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ui={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function fi(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ca(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ma(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(fi(r,t.tag)):e.default||s.push(fi(r,e.tag)),s.join(" ")}function zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ca(i.tags,t));let a=Ma(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} +${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Js(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var na={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qs,createNode:Js},Fe=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Fe,"tag","tag:yaml.org,2002:omap");function ra(t,e){let n=Qs(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Fe,n)}function sa(t,e,n){let r=Js(t,e,n),s=new Fe;return s.items=r.items,s}var ia={identify:t=>t instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ra,createNode:sa},qe=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(qe,"tag","tag:yaml.org,2002:set");function oa(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new qe,n)}function aa(t,e,n){let r=new qe;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var ca={identify:t=>t instanceof Set,nodeClass:qe,default:!1,tag:"tag:yaml.org,2002:set",resolve:oa,createNode:aa},Kn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Gs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},la={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},fa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Kn(e,n.replace(/_/g,"")),stringify:Gs},ua={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Kn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Vn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function Wn(t,e){Vn(!1)&&console.warn(e?`${e}: ${t}`:t)}function pa(t){if(Vn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var js={};function ma(t,e){if(!js[t]&&Vn(!0)){js[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",Wn(n,"DeprecationWarning")}}z.binary=ta;z.floatTime=fa;z.intTime=la;z.omap=ia;z.pairs=na;z.set=ca;z.timestamp=ua;z.warn=Wn;z.warnFileDeprecation=pa;z.warnOptionDeprecation=ma});var Hn=ee(ci=>{"use strict";var Gt=le(),E=$e(),D=jn();function ha(t,e,n){let r=new E.YAMLMap(t);if(e instanceof Map)for(let[s,i]of e)r.items.push(t.createPair(s,i,n));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(t.createPair(s,e[s],n));return typeof t.sortMapEntries=="function"&&r.items.sort(t.sortMapEntries),r}var gt={createNode:ha,default:!0,nodeClass:E.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:E.resolveMap};function ga(t,e,n){let r=new E.YAMLSeq(t);if(e&&e[Symbol.iterator])for(let s of e){let i=t.createNode(s,n.wrapScalars,null,n);r.items.push(i)}return r}var Ht={createNode:ga,default:!0,nodeClass:E.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:E.resolveSeq},da={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),E.stringifyString(t,e,n,r)},options:E.strOptions},Jn=[gt,Ht,da],Xt=t=>typeof t=="bigint"||Number.isInteger(t),Gn=(t,e,n)=>E.intOptions.asBigInt?BigInt(t):parseInt(e,n);function zs(t,e,n){let{value:r}=t;return Xt(r)&&r>=0?n+r.toString(e):E.stringifyNumber(t)}var Zs={identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},ei={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>t[0]==="t"||t[0]==="T",options:E.boolOptions,stringify:({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr},ti={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(t,e)=>Gn(t,e,8),options:E.intOptions,stringify:t=>zs(t,8,"0o")},ni={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:t=>Gn(t,t,10),options:E.intOptions,stringify:E.stringifyNumber},ri={identify:t=>Xt(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(t,e)=>Gn(t,e,16),options:E.intOptions,stringify:t=>zs(t,16,"0x")},si={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},ii={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify:({value:t})=>Number(t).toExponential()},oi={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(t,e,n){let r=e||n,s=new E.Scalar(parseFloat(t));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:E.stringifyNumber},ya=Jn.concat([Zs,ei,ti,ni,ri,si,ii,oi]),Hs=t=>typeof t=="bigint"||Number.isInteger(t),Qt=({value:t})=>JSON.stringify(t),ai=[gt,Ht,{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:E.resolveString,stringify:Qt},{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qt},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Qt},{identify:Hs,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:t=>E.intOptions.asBigInt?BigInt(t):parseInt(t,10),stringify:({value:t})=>Hs(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Qt}];ai.scalarFallback=t=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`)};var Xs=({value:t})=>t?E.boolOptions.trueStr:E.boolOptions.falseStr,ht=t=>typeof t=="bigint"||Number.isInteger(t);function Jt(t,e,n){let r=e.replace(/_/g,"");if(E.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return t==="-"?BigInt(-1)*i:i}let s=parseInt(r,n);return t==="-"?-1*s:s}function Qn(t,e,n){let{value:r}=t;if(ht(r)){let s=r.toString(e);return r<0?"-"+n+s.substr(1):n+s}return E.stringifyNumber(t)}var Ea=Jn.concat([{identify:t=>t==null,createNode:(t,e,n)=>n.wrapScalars?new E.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:E.nullOptions,stringify:()=>E.nullOptions.nullStr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:E.boolOptions,stringify:Xs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:E.boolOptions,stringify:Xs},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(t,e,n)=>Jt(e,n,2),stringify:t=>Qn(t,2,"0b")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(t,e,n)=>Jt(e,n,8),stringify:t=>Qn(t,8,"0")},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(t,e,n)=>Jt(e,n,10),stringify:E.stringifyNumber},{identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(t,e,n)=>Jt(e,n,16),stringify:t=>Qn(t,16,"0x")},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(t,e)=>e?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:E.stringifyNumber},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify:({value:t})=>Number(t).toExponential()},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(t,e){let n=new E.Scalar(parseFloat(t.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(n.minFractionDigits=r.length)}return n},stringify:E.stringifyNumber}],D.binary,D.omap,D.pairs,D.set,D.intTime,D.floatTime,D.timestamp),Sa={core:ya,failsafe:Jn,json:ai,yaml11:Ea},wa={binary:D.binary,bool:ei,float:oi,floatExp:ii,floatNaN:si,floatTime:D.floatTime,int:ni,intHex:ri,intOct:ti,intTime:D.intTime,map:gt,null:Zs,omap:D.omap,pairs:D.pairs,seq:Ht,set:D.set,timestamp:D.timestamp};function ba(t,e,n){if(e){let r=n.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(r=>(r.identify&&r.identify(t)||r.class&&t instanceof r.class)&&!r.format)}function Na(t,e,n){if(t instanceof E.Node)return t;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=n;e&&e.startsWith("!!")&&(e=r+e.slice(2));let c=ba(t,e,o.tags);if(!c){if(typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object")return a?new E.Scalar(t):t;c=t instanceof Map?gt:t[Symbol.iterator]?Ht:gt}s&&(s(c),delete n.onTagObj);let l={value:void 0,node:void 0};if(t&&typeof t=="object"&&i){let f=i.get(t);if(f){let m=new E.Alias(f);return n.aliasNodes.push(m),m}l.value=t,i.set(t,l)}return l.node=c.createNode?c.createNode(n.schema,t,n):a?new E.Scalar(t):t,e&&l.node instanceof E.Node&&(l.node.tag=e),l.node}function Oa(t,e,n,r){let s=t[r.replace(/\W/g,"")];if(!s){let i=Object.keys(t).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(n))for(let i of n)s=s.concat(i);else typeof n=="function"&&(s=n(s.slice()));for(let i=0;iJSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${c}`)}s[i]=a}}return s}var La=(t,e)=>t.keye.key?1:0,dt=class t{constructor({customTags:e,merge:n,schema:r,sortMapEntries:s,tags:i}){this.merge=!!n,this.name=r,this.sortMapEntries=s===!0?La:s||null,!e&&i&&D.warnOptionDeprecation("tags","customTags"),this.tags=Oa(Sa,wa,e||i,r)}createNode(e,n,r,s){let i={defaultPrefix:t.defaultPrefix,schema:this,wrapScalars:n},o=s?Object.assign(s,i):i;return Na(e,r,o)}createPair(e,n,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(n,r.wrapScalars,null,r);return new E.Pair(s,i)}};Gt._defineProperty(dt,"defaultPrefix",Gt.defaultTagPrefix);Gt._defineProperty(dt,"defaultTags",Gt.defaultTags);ci.Schema=dt});var pi=ee(tn=>{"use strict";var Y=le(),S=$e(),li=Hn(),Aa={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ta={get binary(){return S.binaryOptions},set binary(t){Object.assign(S.binaryOptions,t)},get bool(){return S.boolOptions},set bool(t){Object.assign(S.boolOptions,t)},get int(){return S.intOptions},set int(t){Object.assign(S.intOptions,t)},get null(){return S.nullOptions},set null(t){Object.assign(S.nullOptions,t)},get str(){return S.strOptions},set str(t){Object.assign(S.strOptions,t)}},ui={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Y.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Y.defaultTagPrefix}]}};function fi(t,e){if((t.version||t.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return"!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let n=t.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!n){let s=t.getDefaults().tagPrefixes;n=s&&s.find(i=>e.indexOf(i.prefix)===0)}if(!n)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(n.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return n.handle+r}function Ca(t,e){if(e instanceof S.Alias)return S.Alias;if(e.tag){let s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let n,r;if(e instanceof S.Scalar){r=e.value;let s=t.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);n=s.find(i=>i.format===e.format)||s.find(i=>!i.format)}else r=e,n=t.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Ma(t,e,{anchors:n,doc:r}){let s=[],i=r.anchors.getName(t);return i&&(n[i]=t,s.push(`&${i}`)),t.tag?s.push(fi(r,t.tag)):e.default||s.push(fi(r,e.tag)),s.join(" ")}function zt(t,e,n,r){let{anchors:s,schema:i}=e.doc,o;if(!(t instanceof S.Node)){let l={aliasNodes:[],onTagObj:f=>o=f,prevObjects:new Map};t=i.createNode(t,!0,null,l);for(let f of l.aliasNodes){f.source=f.source.node;let m=s.getName(f.source);m||(m=s.newName(),s.map[m]=f.source)}}if(t instanceof S.Pair)return t.toString(e,n,r);o||(o=Ca(i.tags,t));let a=Ma(t,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let c=typeof o.stringify=="function"?o.stringify(t,e,n,r):t instanceof S.Scalar?S.stringifyString(t,e,n,r):t.toString(e,n,r);return a?t instanceof S.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a} ${e.indent}${c}`:c}var Xn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Zt(r,e))):t instanceof S.Pair?(Zt(t.key,e),Zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},ka=t=>Object.keys(Zt(t,{}));function va(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(` `),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(` `)||null;else{let i=n.before.join(` @@ -144,7 +144,7 @@ ${o.commentBefore}`:i}t.comment=n.after.join(` `)||null}}function Ia({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function Pa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!ui[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function _a(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(Ia(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=Pa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(` `)||null}function Ue(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var en=class t{constructor(e){this.anchors=new Xn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ue(this.contents),this.contents.add(e)}addIn(e,n){Ue(this.contents),this.contents.addIn(e,n)}delete(e){return Ue(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ue(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ue(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ue(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new li.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),_a(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],va(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return ka(this.contents).filter(e=>e.indexOf(li.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:zt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:zt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=zt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(zt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(` `)+` -`}};Y._defineProperty(en,"defaults",ui);tn.Document=en;tn.defaultOptions=Aa;tn.scalarOptions=Ta});var gi=ee(hi=>{"use strict";var zn=xs(),Ne=pi(),xa=Hn(),Ra=le(),Da=jn();$e();function Ya(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new xa.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ba(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function mi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ra.YAMLSemanticError(n[1],s))}return r}function $a(t,e){let n=mi(t,e);if(n.warnings.forEach(r=>Da.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Fa(t,e){let n=new Ke(e);return n.contents=t,String(n)}var qa={createNode:Ya,defaultOptions:Ne.defaultOptions,Document:Ke,parse:$a,parseAllDocuments:Ba,parseCST:zn.parse,parseDocument:mi,scalarOptions:Ne.scalarOptions,stringify:Fa};hi.YAML=qa});var yi=ee((Rm,di)=>{di.exports=gi().YAML});var Ei=ee(Q=>{"use strict";var Ve=$e(),We=le();Q.findPair=Ve.findPair;Q.parseMap=Ve.resolveMap;Q.parseSeq=Ve.resolveSeq;Q.stringifyNumber=Ve.stringifyNumber;Q.stringifyString=Ve.stringifyString;Q.toJSON=Ve.toJSON;Q.Type=We.Type;Q.YAMLError=We.YAMLError;Q.YAMLReferenceError=We.YAMLReferenceError;Q.YAMLSemanticError=We.YAMLSemanticError;Q.YAMLSyntaxError=We.YAMLSyntaxError;Q.YAMLWarning=We.YAMLWarning});var tr={};nr(tr,{languages:()=>Pr,options:()=>_r,parsers:()=>er,printers:()=>Ja});var Ii=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},yt=Ii;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",Et=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Pi(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(Et.has(e))return e}var et=Pi;var _i=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function xi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', +`}};Y._defineProperty(en,"defaults",ui);tn.Document=en;tn.defaultOptions=Aa;tn.scalarOptions=Ta});var gi=ee(hi=>{"use strict";var zn=xs(),Ne=pi(),xa=Hn(),Ra=le(),Da=jn();$e();function Ya(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Ne.Document.defaults[Ne.defaultOptions.version],Ne.defaultOptions);return new xa.Schema(r).createNode(t,e,n)}var Ke=class extends Ne.Document{constructor(e){super(Object.assign({},Ne.defaultOptions,e))}};function Ba(t,e){let n=[],r;for(let s of zn.parse(t)){let i=new Ke(e);i.parse(s,r),n.push(i),r=i}return n}function mi(t,e){let n=zn.parse(t),r=new Ke(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ra.YAMLSemanticError(n[1],s))}return r}function $a(t,e){let n=mi(t,e);if(n.warnings.forEach(r=>Da.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Fa(t,e){let n=new Ke(e);return n.contents=t,String(n)}var qa={createNode:Ya,defaultOptions:Ne.defaultOptions,Document:Ke,parse:$a,parseAllDocuments:Ba,parseCST:zn.parse,parseDocument:mi,scalarOptions:Ne.scalarOptions,stringify:Fa};hi.YAML=qa});var yi=ee((Rm,di)=>{di.exports=gi().YAML});var Ei=ee(J=>{"use strict";var Ve=$e(),We=le();J.findPair=Ve.findPair;J.parseMap=Ve.resolveMap;J.parseSeq=Ve.resolveSeq;J.stringifyNumber=Ve.stringifyNumber;J.stringifyString=Ve.stringifyString;J.toJSON=Ve.toJSON;J.Type=We.Type;J.YAMLError=We.YAMLError;J.YAMLReferenceError=We.YAMLReferenceError;J.YAMLSemanticError=We.YAMLSemanticError;J.YAMLSyntaxError=We.YAMLSyntaxError;J.YAMLWarning=We.YAMLWarning});var tr={};nr(tr,{languages:()=>Pr,options:()=>_r,parsers:()=>er,printers:()=>Ja});var Ii=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},yt=Ii;var je="string",Qe="array",Je="cursor",Ge="indent",Oe="align",He="trim",Le="group",Ae="fill",Te="if-break",Xe="indent-if-break",Ce="line-suffix",ze="line-suffix-boundary",te="line",Ze="label",Me="break-parent",Et=new Set([Je,Ge,Oe,He,Le,Ae,Te,Xe,Ce,ze,te,Ze,Me]);function Pi(t){if(typeof t=="string")return je;if(Array.isArray(t))return Qe;if(!t)return;let{type:e}=t;if(Et.has(e))return e}var et=Pi;var _i=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function xi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(et(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=_i([...Et].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'. Expected it to be ${r}.`}var rn=class extends Error{name="InvalidDocError";constructor(e){super(xi(e)),this.doc=e}},sn=rn;var sr=()=>{},he=sr,St=sr;function tt(t,e){return he(e),{type:Oe,contents:e,n:t}}function ke(t,e={}){return he(t),St(e.expandedStates,!0),{type:Le,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function on(t){return tt(Number.NEGATIVE_INFINITY,t)}function ir(t){return tt({type:"root"},t)}function or(t){return tt(-1,t)}function an(t,e){return ke(t[0],{...e,expandedStates:t})}function wt(t){return St(t),{type:Ae,parts:t}}function nt(t,e="",n={}){return he(t),e!==""&&he(e),{type:Te,breakContents:t,flatContents:e,groupId:n.groupId}}function ar(t){return he(t),{type:Ce,contents:t}}var bt={type:Me};var Ri={type:te,hard:!0},Di={type:te,hard:!0,literal:!0},ne={type:te},Nt={type:te,soft:!0},N=[Ri,bt],rt=[Di,bt];function v(t,e){he(t),St(e);let n=[];for(let r=0;r{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=Yi;function Bi(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(et(i)){case Qe:return e(i.map(r));case Ae:return e({...i,parts:i.parts.map(r)});case Te:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Le:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Oe:case Ge:case Xe:case Ze:case Ce:return e({...i,contents:r(i.contents)});case je:case Je:case He:case ze:case te:case Me:return e(i);default:throw new sn(i)}}}function cr(t,e=rt){return Bi(t,n=>typeof n=="string"?v(e,n.split(` `)):n)}function Ot(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}ur.getVisitorKeys=()=>[];var pr=ur;var st=null;function it(t){if(st!==null&&typeof st.property){let e=st;return st=it.prototype=null,e}return st=it.prototype=t??Object.create(null),new it}var qi=10;for(let t=0;t<=qi;t++)it();function un(t){return it(t)}function Ui(t,e="type"){un(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var mr=Ui;var Ki=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),hr=Ki;var Vi=mr(hr),gr=Vi;function ve(t){return t.position.start.offset}function dr(t){return t.position.end.offset}function yr(t){return/^\s*@(?:prettier|format)\s*$/u.test(t)}function Er(t){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t)}function Sr(t){return`# @format -${t}`}function Wi(t){return Array.isArray(t)&&t.length>0}var Ie=Wi;function G(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function br(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s0}var Ie=Wi;function H(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function pn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>pn(r,e,t))}:t,n)}function Pe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function br(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;si===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:Or(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Ar(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(? *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(` -`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Or(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var hn=new WeakMap;function Tt(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),br(n,e)&&!gn(t.parent))?Nt:""}function gn(t){return R(t)&&!G(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Qi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Lt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Ar(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(wt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Tr=Qi;function Ct(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Nt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Tt(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!H(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!H(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!G(o.content,["mapping","sequence"])||s.type==="mapping"&&H(i.content)&&ot(o.content)||G(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content&&g.push(ne),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t){return pn(t,Zi)}function Zi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Mr=zi;function eo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return G(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lt(t)&&(a=Tt(t,e.originalText)),(i||o)&&(G(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Nr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(to(t,e,n))),H(r)&&!G(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":bt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function to(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),H(o)&&s.push(" ",n("trailingComment"))):a&&!H(a.head)&&s.push(N,"---")},"children");let i=At(r);return(!G(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return ro(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),H(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),no(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=At(r);G(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?yt(!1,yt(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?yt(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Tr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Ct(t,n,e);case"flowSequence":return Ct(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function no(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return H(t)||e&&(e.head.children.length>0||R(e.head))}function ro(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||H(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Lr(t,e,n);return v(N,r.map(s=>wt(v(ne,s))))}function vr(t,e){if(G(t))switch(t.type){case"comment":if(yr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}vr.ignoredProperties=new Set(["position"]);var so={preprocess:Mr,embed:pr,print:eo,massageAstNode:vr,insertPragma:Sr,getVisitorKeys:gr},Ir=so;var Pr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var Mt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var io={bracketSpacing:Mt.bracketSpacing,singleQuote:Mt.singleQuote,proseWrap:Mt.proseWrap},_r=io;var er={};nr(er,{yaml:()=>Qa});var kt=` -`,xr="\r",Rr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function Dr(t){B(t);let e=oo(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();ao(r,e,n[0])})}function oo(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Yr(e,t),e}function Yr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Yr(t,n)})}}function ao(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(co(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function co(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function $r(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Fr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function qr(t,e){let n=t.cstNode;return Fr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Ur(t){return{...t,type:"blockFolded"}}function Kr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function Vr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Wr(t,e,n){return{anchor:e,tag:t,middleComments:n}}function jr(t,e){return{...b("tag",t),value:e}}function vt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=jr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=Vr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Wr(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function It(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=vt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function fo(t,e,n){let r=Pt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ns(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function rs(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=uo(n,e),{position:o,endMarkerPoint:a}=po(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ns(o,r,i,l)),documentHeadEndMarkerPoint:a}}function uo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function po(t,e,n){let r=Pt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ss(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=rs(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=ts(t,e,r),c=n(a);return o&&e.comments.push(o),Zr(K(c.position.start,i),c,s,o)}function _t(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function is(t,e,n){return{..._t(t,e,n),type:"flowMapping"}}function xt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Rt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Dt(t,e){let n=e;return r=>t.slice(n,n=r)}function Yt(t){let e=[],n=Dt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}),i=n[0],o=q(n);return is(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{..._t(t,e,n),type:"flowSequence"}}function cs(t,e){return{...b("flowSequenceItem",t),children:[e]}}function ls(t,e){let n=ce(t.cstNode.items,e),r=Yt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return cs(K(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}}),i=n[0],o=q(n);return as(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function fs(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function us(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ps(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=mo(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,us,l,f)});return fs(K(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function mo(t){let e=[],n=Dt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function gs(t,e){let n=t.cstNode;return ms(e.transformRange({origStart:n.valueRange.origStart,origEnd:hs(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ds(t){return{...t,type:"quoteDouble"}}function ys(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Bt(t,e){let n=t.cstNode;return ys(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Es(t,e){return ds(Bt(t,e))}function Ss(t){return{...t,type:"quoteSingle"}}function ws(t,e){return Ss(Bt(t,e))}function bs(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ns(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function Os(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ns(K(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return bs(K(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function Ls(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return qr(t,e);case"BLOCK_FOLDED":return Qr(t,e);case"BLOCK_LITERAL":return Gr(t,e);case"COMMENT":return Hr(t,e);case"DIRECTIVE":return zr(t,e);case"DOCUMENT":return ss(t,e);case"FLOW_MAP":return os(t,e);case"FLOW_SEQ":return ls(t,e);case"MAP":return ps(t,e);case"PLAIN":return gs(t,e);case"QUOTE_DOUBLE":return Es(t,e);case"QUOTE_SINGLE":return ws(t,e);case"SEQ":return Os(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function As(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Ts(t,e){let n=t.source.range||t.source.valueRange;return As(t.message,e.text,e.transformRange(n))}function Cs(t,e,n){return{offset:t,line:e,column:n}}function Ms(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Cs(t,n.line+1,n.column+1)}function ks(t,e){return K(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function vs(t){if(!t.setOrigRanges()){let e=n=>{if(ho(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(go(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function ho(t){return typeof t.start=="number"}function go(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,yo,Eo,bo),r=On(t.position,So,wo,No);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function yo(t){return t.start}function Eo(t,e){t.start=e}function So(t){return t.end}function wo(t,e){t.end=e}function bo(t,e){return e.offsett.offset}var Si=rr(yi(),1);var J=rr(Ei(),1),Ym=J.default.findPair,Bm=J.default.toJSON,$m=J.default.parseMap,Fm=J.default.parseSeq,qm=J.default.stringifyNumber,Um=J.default.stringifyString,Km=J.default.Type,Ua=J.default.YAMLError,Vm=J.default.YAMLReferenceError,Zn=J.default.YAMLSemanticError,Ka=J.default.YAMLSyntaxError,Wm=J.default.YAMLWarning;var{Document:wi,parseCST:bi}=Si.default;function Ni(t){let e=bi(t);vs(e);let n=e.map(a=>new wi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Rr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>Ms(a,i),transformRange:a=>ks(a,i),transformNode:a=>Ls(a,i),transformContent:a=>vt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Ts(c,i);n.forEach(a=>ct(a.cstNode));let o=$r(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return Dr(o),Ln(o),Nn(o),o}function Wa(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Oi=Wa;function ja(t){try{let e=Ni(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Oi(e.message,{loc:e.position,cause:e}):e}}var Qa={astFormat:"yaml",parse:ja,hasPragma:Er,locStart:ve,locEnd:dr};var Ja={yaml:Ir};var yh=tr;export{yh as default,Pr as languages,_r as options,er as parsers,Ja as printers}; +`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Or(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var hn=new WeakMap;function Tt(t,e){let{node:n,root:r}=t,s;return hn.has(r)?s=hn.get(r):(s=new Set,hn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),br(n,e)&&!gn(t.parent))?Nt:""}function gn(t){return R(t)&&!H(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return tt(" ".repeat(t),e)}function Qi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Lt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),mn(r)&&o.push(" ",e("indicatorComment"));let a=Ar(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(wt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ir(rt)):r.chomping==="keep"&&i&&c.push(on(f.length===0?N:rt));return r.indent===null?o.push(or(I(n.tabWidth,c))):o.push(on(I(r.indent-1+s,c))),o}var Tr=Qi;function Ct(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Nt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&_e(c.key)&&_e(c.value);return[i,I(n.tabWidth,[a,Ji(t,e,n),n.trailingComma==="none"?"":nt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Ji(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Tt(t,n.originalText):""]],"children")}function Gi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=_e(i),c=_e(o);if(a&&c)return": ";let l=e("key"),f=Hi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&dn(i.content,n)&&!K(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(Z(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Xi(i.content)&&!Z(i.content)&&!ie(i.content)&&!K(i.content)&&!R(i)&&!Z(o.content)&&!ie(o.content)&&!R(o)&&dn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=ke([nt("? "),ke(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];Z(o.content)||R(o)&&o.content&&!H(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&ot(o.content)||H(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):K(o)&&g.push(" "),g.push(m);let w=I(n.tabWidth,g);return dn(i.content,n)&&!Z(i.content)&&!ie(i.content)&&!R(i)?an([[l,w]]):an([[y,nt(h,w,{groupId:d})]])}function dn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function Hi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Xi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Cr=Gi;function zi(t){return pn(t,Zi)}function Zi(t){switch(t.type){case"document":Pe(t,"head",()=>t.children[0]),Pe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Pe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":Pe(t,"key",()=>t.children[0]),Pe(t,"value",()=>t.children[1]);break}return t}var Mr=zi;function eo(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&Z(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return H(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lt(t)&&(a=Tt(t,e.originalText)),(i||o)&&(H(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Nr(t)?s.push(cr(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(ke(to(t,e,n))),K(r)&&!H(r,["document","documentHead"])&&s.push(ar([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":bt,n("trailingComment")])),gn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[lr(e.originalText,ve(c))?N:"",n()],"endComments"))])),s.push(a),s}function to(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),kr(o,a)?(s.push(N,"..."),K(o)&&s.push(" ",n("trailingComment"))):a&&!K(a.head)&&s.push(N,"---")},"children");let i=At(r);return(!H(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return ro(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),no(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=At(r);H(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?yt(!1,yt(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?yt(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Tr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Cr(t,n,e);case"flowMapping":return Ct(t,n,e);case"flowSequence":return Ct(t,n,e);case"flowSequenceItem":return n("content");default:throw new fr(r,"YAML")}}function no(t){return t.body.children.length>0||R(t.body)}function kr(t,e){return K(t)||e&&(e.head.children.length>0||R(e.head))}function ro(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(ve(n),ve(n)+4))||n.head.children.length>0||R(n.head)||K(n.head))return"head";let r=t.next;return kr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Lr(t,e,n);return v(N,r.map(s=>wt(v(ne,s))))}function vr(t,e){if(H(t))switch(t.type){case"comment":if(yr(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}vr.ignoredProperties=new Set(["position"]);var so={preprocess:Mr,embed:pr,print:eo,massageAstNode:vr,insertPragma:Sr,getVisitorKeys:gr},Ir=so;var Pr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}];var Mt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var io={bracketSpacing:Mt.bracketSpacing,singleQuote:Mt.singleQuote,proseWrap:Mt.proseWrap},_r=io;var er={};nr(er,{yaml:()=>Qa});var kt=` +`,xr="\r",Rr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;rthis.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function B(t,e=null){"children"in t&&t.children.forEach(n=>B(n,t)),"anchor"in t&&t.anchor&&B(t.anchor,t),"tag"in t&&t.tag&&B(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>B(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>B(n,t)),"indicatorComment"in t&&t.indicatorComment&&B(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&B(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>B(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function ge(t){return`${t.line}:${t.column}`}function Dr(t){B(t);let e=oo(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();ao(r,e,n[0])})}function oo(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return Yr(e,t),e}function Yr(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{Yr(t,n)})}}function ao(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);B(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(co(c,t)){B(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){B(t,a),a.leadingComments.push(t);return}}let i=n.children[1];B(t,i),i.endComments.push(t)}function co(t,e){if(t.position.start.offsete.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offsett.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function $r(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function $(){return{...X(),...oe()}}function Fr(t,e,n){return{...b("alias",t),...$(),...e,value:n}}function qr(t,e){let n=t.cstNode;return Fr(e.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),e.transformContent(t),n.rawValue)}function Ur(t){return{...t,type:"blockFolded"}}function Kr(t,e,n,r,s,i){return{...b("blockValue",t),...X(),...e,chomping:n,indent:r,value:s,indicatorComment:i}}var ae;(function(t){t.Tag="!",t.Anchor="&",t.Comment="#"})(ae||(ae={}));function Vr(t,e){return{...b("anchor",t),value:e}}function xe(t,e){return{...b("comment",t),value:e}}function Wr(t,e,n){return{anchor:e,tag:t,middleComments:n}}function jr(t,e){return{...b("tag",t),value:e}}function vt(t,e,n=()=>!1){let r=t.cstNode,s=[],i=null,o=null,a=null;for(let c of r.props){let l=e.text[c.origStart];switch(l){case ae.Tag:i=i||c,o=jr(e.transformRange(c),t.tag);break;case ae.Anchor:i=i||c,a=Vr(e.transformRange(c),r.anchor);break;case ae.Comment:{let f=xe(e.transformRange(c),e.text.slice(c.origStart+1,c.origEnd));e.comments.push(f),!n(f)&&i&&i.origEnd<=c.origStart&&c.origEnd<=r.valueRange.origStart&&s.push(f);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(l)}`)}}return Wr(o,a,s)}var yn;(function(t){t.CLIP="clip",t.STRIP="strip",t.KEEP="keep"})(yn||(yn={}));function It(t,e){let n=t.cstNode,r=1,s=n.chomping==="CLIP"?0:1,o=n.header.origEnd-n.header.origStart-r-s!==0,a=e.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),c=null,l=vt(t,e,f=>{if(!(a.start.offset=0;c--){let l=t.contents[c];if(l.type==="COMMENT"){let f=e.transformNode(l);n&&n.line===f.position.start.line?o.unshift(f):a?r.unshift(f):f.position.start.offset>=t.valueRange.origEnd?i.unshift(f):r.unshift(f)}else a=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);if(o.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);return{comments:r,endComments:s,documentTrailingComment:q(i)||null,documentHeadTrailingComment:q(o)||null}}function fo(t,e,n){let r=Pt(n.text.slice(t.valueRange.origEnd),/^\.\.\./),s=r===-1?t.valueRange.origEnd:Math.max(0,t.valueRange.origEnd-1);n.text[s-1]==="\r"&&s--;let i=n.transformRange({origStart:e!==null?e.position.start.offset:s,origEnd:s}),o=r===-1?i.end:n.transformOffset(t.valueRange.origEnd+3);return{position:i,documentEndPoint:o}}function ns(t,e,n,r){return{...b("documentHead",t),...F(n),...oe(r),children:e}}function rs(t,e){let n=t.cstNode,{directives:r,comments:s,endComments:i}=uo(n,e),{position:o,endMarkerPoint:a}=po(n,r,e);return e.comments.push(...s,...i),{createDocumentHeadWithTrailingComment:l=>(l&&e.comments.push(l),ns(o,r,i,l)),documentHeadEndMarkerPoint:a}}function uo(t,e){let n=[],r=[],s=[],i=!1;for(let o=t.directives.length-1;o>=0;o--){let a=e.transformNode(t.directives[o]);a.type==="comment"?i?r.unshift(a):s.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:s}}function po(t,e,n){let r=Pt(n.text.slice(0,t.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let s=r===-1?{origStart:t.valueRange.origStart,origEnd:t.valueRange.origStart}:{origStart:r,origEnd:r+3};return e.length!==0&&(s.origStart=e[0].position.start.offset),{position:n.transformRange(s),endMarkerPoint:r===-1?null:n.transformOffset(r)}}function ss(t,e){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=rs(t,e),{documentBody:s,documentEndPoint:i,documentTrailingComment:o,documentHeadTrailingComment:a}=ts(t,e,r),c=n(a);return o&&e.comments.push(o),Zr(V(c.position.start,i),c,s,o)}function _t(t,e,n){return{...b("flowCollection",t),...$(),...F(),...e,children:n}}function is(t,e,n){return{..._t(t,e,n),type:"flowMapping"}}function xt(t,e,n){return{...b("flowMappingItem",t),...X(),children:[e,n]}}function ce(t,e){let n=[];for(let r of t)r&&"type"in r&&r.type==="COMMENT"?e.comments.push(e.transformNode(r)):n.push(r);return n}function Rt(t){let[e,n]=["?",":"].map(r=>{let s=t.find(i=>"char"in i&&i.char===r);return s?{origStart:s.origOffset,origEnd:s.origOffset+1}:null});return{additionalKeyRange:e,additionalValueRange:n}}function Dt(t,e){let n=e;return r=>t.slice(n,n=r)}function Yt(t){let e=[],n=Dt(t,1),r=!1;for(let s=1;s{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}),i=n[0],o=q(n);return is(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function as(t,e,n){return{..._t(t,e,n),type:"flowSequence"}}function cs(t,e){return{...b("flowSequenceItem",t),children:[e]}}function ls(t,e){let n=ce(t.cstNode.items,e),r=Yt(n),s=t.items.map((a,c)=>{if(a.type!=="PAIR"){let l=e.transformNode(a);return cs(V(l.position.start,l.position.end),l)}else{let l=r[c],{additionalKeyRange:f,additionalValueRange:m}=Rt(l);return De(a,e,xt,f,m)}}),i=n[0],o=q(n);return as(e.transformRange({origStart:i.origOffset,origEnd:o.origOffset+1}),e.transformContent(t),s)}function fs(t,e,n){return{...b("mapping",t),...X(),...e,children:n}}function us(t,e,n){return{...b("mappingItem",t),...X(),children:[e,n]}}function ps(t,e){let n=t.cstNode;n.items.filter(o=>o.type==="MAP_KEY"||o.type==="MAP_VALUE").forEach(o=>Re(o,e));let r=ce(n.items,e),s=mo(r),i=t.items.map((o,a)=>{let c=s[a],[l,f]=c[0].type==="MAP_VALUE"?[null,c[0].range]:[c[0].range,c.length===1?null:c[1].range];return De(o,e,us,l,f)});return fs(V(i[0].position.start,q(i).position.end),e.transformContent(t),i)}function mo(t){let e=[],n=Dt(t,0),r=!1;for(let s=0;s=0;r--)if(n.test(t[r]))return r;return-1}function gs(t,e){let n=t.cstNode;return ms(e.transformRange({origStart:n.valueRange.origStart,origEnd:hs(e.text,n.valueRange.origEnd-1,/\S/)+1}),e.transformContent(t),n.strValue)}function ds(t){return{...t,type:"quoteDouble"}}function ys(t,e,n){return{...b("quoteValue",t),...e,...$(),value:n}}function Bt(t,e){let n=t.cstNode;return ys(e.transformRange(n.valueRange),e.transformContent(t),n.strValue)}function Es(t,e){return ds(Bt(t,e))}function Ss(t){return{...t,type:"quoteSingle"}}function ws(t,e){return Ss(Bt(t,e))}function bs(t,e,n){return{...b("sequence",t),...X(),...F(),...e,children:n}}function Ns(t,e){return{...b("sequenceItem",t),...$(),...F(),children:e?[e]:[]}}function Os(t,e){let r=ce(t.cstNode.items,e).map((s,i)=>{Re(s,e);let o=e.transformNode(t.items[i]);return Ns(V(e.transformOffset(s.valueRange.origStart),o===null?e.transformOffset(s.valueRange.origStart+1):o.position.end),o)});return bs(V(r[0].position.start,q(r).position.end),e.transformContent(t),r)}function Ls(t,e){if(t===null||t.type===void 0&&t.value===null)return null;switch(t.type){case"ALIAS":return qr(t,e);case"BLOCK_FOLDED":return Qr(t,e);case"BLOCK_LITERAL":return Gr(t,e);case"COMMENT":return Hr(t,e);case"DIRECTIVE":return zr(t,e);case"DOCUMENT":return ss(t,e);case"FLOW_MAP":return os(t,e);case"FLOW_SEQ":return ls(t,e);case"MAP":return ps(t,e);case"PLAIN":return gs(t,e);case"QUOTE_DOUBLE":return Es(t,e);case"QUOTE_SINGLE":return ws(t,e);case"SEQ":return Os(t,e);default:throw new Error(`Unexpected node type ${t.type}`)}}function As(t,e,n){let r=new SyntaxError(t);return r.name="YAMLSyntaxError",r.source=e,r.position=n,r}function Ts(t,e){let n=t.source.range||t.source.valueRange;return As(t.message,e.text,e.transformRange(n))}function Cs(t,e,n){return{offset:t,line:e,column:n}}function Ms(t,e){t<0?t=0:t>e.text.length&&(t=e.text.length);let n=e.locator.locationForIndex(t);return Cs(t,n.line+1,n.column+1)}function ks(t,e){return V(e.transformOffset(t.origStart),e.transformOffset(t.origEnd))}function vs(t){if(!t.setOrigRanges()){let e=n=>{if(ho(n))return n.origStart=n.start,n.origEnd=n.end,!0;if(go(n))return n.origOffset=n.offset,!0};t.forEach(n=>bn(n,e))}}function bn(t,e){if(!(!t||typeof t!="object")&&e(t)!==!0)for(let n of Object.keys(t)){if(n==="context"||n==="error")continue;let r=t[n];Array.isArray(r)?r.forEach(s=>bn(s,e)):bn(r,e)}}function ho(t){return typeof t.start=="number"}function go(t){return typeof t.offset=="number"}function Nn(t){if("children"in t){if(t.children.length===1){let e=t.children[0];if(e.type==="plain"&&e.tag===null&&e.anchor===null&&e.value==="")return t.children.splice(0,1),t}t.children.forEach(Nn)}return t}function On(t,e,n,r){let s=e(t);return i=>{r(s,i)&&n(t,s=i)}}function Ln(t){if(t===null||!("children"in t))return;let e=t.children;if(e.forEach(Ln),t.type==="document"){let[i,o]=t.children;i.position.start.offset===i.position.end.offset?i.position.start=i.position.end=o.position.start:o.position.start.offset===o.position.end.offset&&(o.position.start=o.position.end=i.position.end)}let n=On(t.position,yo,Eo,bo),r=On(t.position,So,wo,No);"endComments"in t&&t.endComments.length!==0&&(n(t.endComments[0].position.start),r(q(t.endComments).position.end));let s=e.filter(i=>i!==null);if(s.length!==0){let i=s[0],o=q(s);n(i.position.start),r(o.position.end),"leadingComments"in i&&i.leadingComments.length!==0&&n(i.leadingComments[0].position.start),"tag"in i&&i.tag&&n(i.tag.position.start),"anchor"in i&&i.anchor&&n(i.anchor.position.start),"trailingComment"in o&&o.trailingComment&&r(o.trailingComment.position.end)}}function yo(t){return t.start}function Eo(t,e){t.start=e}function So(t){return t.end}function wo(t,e){t.end=e}function bo(t,e){return e.offsett.offset}var Si=rr(yi(),1);var G=rr(Ei(),1),Ym=G.default.findPair,Bm=G.default.toJSON,$m=G.default.parseMap,Fm=G.default.parseSeq,qm=G.default.stringifyNumber,Um=G.default.stringifyString,Km=G.default.Type,Ua=G.default.YAMLError,Vm=G.default.YAMLReferenceError,Zn=G.default.YAMLSemanticError,Ka=G.default.YAMLSyntaxError,Wm=G.default.YAMLWarning;var{Document:wi,parseCST:bi}=Si.default;function Ni(t){let e=bi(t);vs(e);let n=e.map(a=>new wi({merge:!1,keepCstNodes:!0}).parse(a)),r=new Rr(t),s=[],i={text:t,locator:r,comments:s,transformOffset:a=>Ms(a,i),transformRange:a=>ks(a,i),transformNode:a=>Ls(a,i),transformContent:a=>vt(a,i)};for(let a of n)for(let c of a.errors)if(!(c instanceof Zn&&c.message==='Map keys must be unique; "<<" is repeated'))throw Ts(c,i);n.forEach(a=>ct(a.cstNode));let o=$r(i.transformRange({origStart:0,origEnd:i.text.length}),n.map(i.transformNode),s);return Dr(o),Ln(o),Nn(o),o}function Wa(t,e){let n=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(n,e)}var Oi=Wa;function ja(t){try{let e=Ni(t);return delete e.comments,e}catch(e){throw e!=null&&e.position?Oi(e.message,{loc:e.position,cause:e}):e}}var Qa={astFormat:"yaml",parse:ja,hasPragma:Er,locStart:ve,locEnd:dr};var Ja={yaml:Ir};var yh=tr;export{yh as default,Pr as languages,_r as options,er as parsers,Ja as printers}; diff --git a/node_modules/prettier/standalone.js b/node_modules/prettier/standalone.js index b9b6eb2d..0cfcba0e 100644 --- a/node_modules/prettier/standalone.js +++ b/node_modules/prettier/standalone.js @@ -1,35 +1,39 @@ -(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var yu=Object.create;var He=Object.defineProperty;var Au=Object.getOwnPropertyDescriptor;var Bu=Object.getOwnPropertyNames;var wu=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty;var or=e=>{throw TypeError(e)};var xu=(e,t)=>()=>(e&&(t=e(e=0)),t);var At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),We=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bu(t))!_u.call(e,i)&&i!==r&&He(e,i,{get:()=>t[i],enumerable:!(n=Au(t,i))||n.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?yu(wu(e)):{},sr(t||!e||!e.__esModule?He(r,"default",{value:e,enumerable:!0}):r,e)),ar=e=>sr(He({},"__esModule",{value:!0}),e);var vu=(e,t,r)=>t.has(e)||or("Cannot "+r);var Dr=(e,t,r)=>t.has(e)?or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var pe=(e,t,r)=>(vu(e,t,"access private method"),r);var ot=At((oa,sn)=>{"use strict";var on=new Proxy(String,{get:()=>on});sn.exports=on});var Tn={};We(Tn,{default:()=>wi,shouldHighlight:()=>Bi});var Bi,wi,kn=xu(()=>{Bi=()=>!1,wi=String});var Pn=At((bD,Xt)=>{var g=String,Ln=function(){return{isColorSupported:!1,reset:g,bold:g,dim:g,italic:g,underline:g,inverse:g,hidden:g,strikethrough:g,black:g,red:g,green:g,yellow:g,blue:g,magenta:g,cyan:g,white:g,gray:g,bgBlack:g,bgRed:g,bgGreen:g,bgYellow:g,bgBlue:g,bgMagenta:g,bgCyan:g,bgWhite:g}};Xt.exports=Ln();Xt.exports.createColors=Ln});var $n=At(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.codeFrameColumns=Mn;Ct.default=Si;var In=(kn(),ar(Tn)),Hn=_i(Pn(),!0);function Wn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Wn=function(n){return n?r:t})(e)}function _i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Wn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var o=i?Object.getOwnPropertyDescriptor(e,u):null;o&&(o.get||o.set)?Object.defineProperty(n,u,o):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}var xi=Hn.default,Rn=(e,t)=>r=>e(t(r)),Zt;function vi(e){if(e){var t;return(t=Zt)!=null||(Zt=(0,Hn.createColors)(!0)),Zt}return xi}var Yn=!1;function bi(e){return{gutter:e.gray,marker:Rn(e.red,e.bold),message:Rn(e.red,e.bold)}}var jn=/\r\n|[\n\r\u2028\u2029]/;function Oi(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=i.line,l=i.column,d=Math.max(s-(u+1),0),f=Math.min(t.length,D+o);s===-1&&(d=0),D===-1&&(f=t.length);let p=D-s,c={};if(p)for(let F=0;F<=p;F++){let m=F+s;if(!a)c[m]=!0;else if(F===0){let E=t[m-1].length;c[m]=[a,E-a+1]}else if(F===p)c[m]=[0,l];else{let E=t[m-F].length;c[m]=[0,E]}}else a===l?a?c[s]=[a,0]:c[s]=!0:c[s]=[a,l-a];return{start:d,end:f,markerLines:c}}function Mn(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,In.shouldHighlight)(r),i=vi(r.forceColor),u=bi(i),o=(F,m)=>n?F(m):m,s=e.split(jn),{start:a,end:D,markerLines:l}=Oi(t,s,r),d=t.start&&typeof t.start.column=="number",f=String(D).length,c=(n?(0,In.default)(e,r):e).split(jn,D).slice(a,D).map((F,m)=>{let E=a+1+m,w=` ${` ${E}`.slice(-f)} |`,h=l[E],C=!l[E+1];if(h){let k="";if(Array.isArray(h)){let v=F.slice(0,Math.max(h[0]-1,0)).replace(/[^\t]/g," "),$=h[1]||1;k=[` - `,o(u.gutter,w.replace(/\d/g," "))," ",v,o(u.marker,"^").repeat($)].join(""),C&&r.message&&(k+=" "+o(u.message,r.message))}return[o(u.marker,">"),o(u.gutter,w),F.length>0?` ${F}`:"",k].join("")}else return` ${o(u.gutter,w)}${F.length>0?` ${F}`:""}`}).join(` -`);return r.message&&!d&&(c=`${" ".repeat(f+1)}${r.message} -${c}`),n?i.reset(c):c}function Si(e,t,r,n={}){if(!Yn){Yn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let o=new Error(u);o.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),Mn(e,{start:{column:r,line:t}},n)}});var po={};We(po,{__debug:()=>fo,check:()=>lo,doc:()=>nr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>co,util:()=>ir,version:()=>fu});var bu=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ne=bu;function Z(){}Z.prototype={diff:function(t,r){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=i.callback;typeof i=="function"&&(u=i,i={}),this.options=i;var o=this;function s(h){return u?(setTimeout(function(){u(void 0,h)},0),!0):h}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var a=r.length,D=t.length,l=1,d=a+D;i.maxEditLength&&(d=Math.min(d,i.maxEditLength));var f=(n=i.timeout)!==null&&n!==void 0?n:1/0,p=Date.now()+f,c=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(c[0],r,t,0);if(c[0].oldPos+1>=D&&F+1>=a)return s([{value:this.join(r),count:r.length}]);var m=-1/0,E=1/0;function A(){for(var h=Math.max(m,-l);h<=Math.min(E,l);h+=2){var C=void 0,k=c[h-1],v=c[h+1];k&&(c[h-1]=void 0);var $=!1;if(v){var ye=v.oldPos-h;$=v&&0<=ye&&ye=D&&F+1>=a)return s(Ou(o,C.lastComponent,r,t,o.useLongestToken));c[h]=C,C.oldPos+1>=D&&(E=Math.min(E,h-1)),F+1>=a&&(m=Math.max(m,h+1))}l++}if(u)(function h(){setTimeout(function(){if(l>d||Date.now()>p)return u();A()||h()},0)})();else for(;l<=d&&Date.now()<=p;){var w=A();if(w)return w}},addToPath:function(t,r,n,i){var u=t.lastComponent;return u&&u.added===r&&u.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:u.count+1,added:r,removed:n,previousComponent:u.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:u}}},extractCommon:function(t,r,n,i){for(var u=r.length,o=n.length,s=t.oldPos,a=s-i,D=0;a+1F.length?E:F}),d.value=e.join(f)}else d.value=e.join(r.slice(D,D+d.count));D+=d.count,d.added||(l+=d.count)}}var c=u[a-1];return a>1&&typeof c.value=="string"&&(c.added||c.removed)&&e.equals("",c.value)&&(u[a-2].value+=c.value,u.pop()),u}var ho=new Z;var lr=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr=/\S/,fr=new Z;fr.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!cr.test(e)&&!cr.test(t)};fr.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(Bt(e,null,null,i),i," ")};Ae.equals=function(e,t){return Z.prototype.equals.call(Ae,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Bt(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var u;for(u=0;u=0?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function Be(e){switch(e){case"cr":return"\r";case"crlf":return`\r +(function(t){function e(){var o=t();return o.default||o}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var f=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};f.prettier=e()}})(function(){"use strict";var yu=Object.create;var Me=Object.defineProperty;var Au=Object.getOwnPropertyDescriptor;var vu=Object.getOwnPropertyNames;var Bu=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty;var lr=e=>{throw TypeError(e)};var cr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bt=(e,t)=>{for(var r in t)Me(e,r,{get:t[r],enumerable:!0})},fr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of vu(t))!wu.call(e,u)&&u!==r&&Me(e,u,{get:()=>t[u],enumerable:!(n=Au(t,u))||n.enumerable});return e};var Ue=(e,t,r)=>(r=e!=null?yu(Bu(e)):{},fr(t||!e||!e.__esModule?Me(r,"default",{value:e,enumerable:!0}):r,e)),_u=e=>fr(Me({},"__esModule",{value:!0}),e);var xu=(e,t,r)=>t.has(e)||lr("Cannot "+r);var dr=(e,t,r)=>t.has(e)?lr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var pe=(e,t,r)=>(xu(e,t,"access private method"),r);var at=cr((ua,Fn)=>{"use strict";var pn=new Proxy(String,{get:()=>pn});Fn.exports=pn});var Wn=cr(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});function Bi(){return new Proxy({},{get:()=>e=>e})}var Hn=/\r\n|[\n\r\u2028\u2029]/;function wi(e,t,r){let n=Object.assign({column:0,line:-1},e.start),u=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=u.line,l=u.column,p=Math.max(s-(i+1),0),f=Math.min(t.length,D+o);s===-1&&(p=0),D===-1&&(f=t.length);let d=D-s,c={};if(d)for(let F=0;F<=d;F++){let m=F+s;if(!a)c[m]=!0;else if(F===0){let h=t[m-1].length;c[m]=[a,h-a+1]}else if(F===d)c[m]=[0,l];else{let h=t[m-F].length;c[m]=[0,h]}}else a===l?a?c[s]=[a,0]:c[s]=!0:c[s]=[a,l-a];return{start:p,end:f,markerLines:c}}function _i(e,t,r={}){let u=Bi(!1),i=e.split(Hn),{start:o,end:s,markerLines:a}=wi(t,i,r),D=t.start&&typeof t.start.column=="number",l=String(s).length,f=e.split(Hn,s).slice(o,s).map((d,c)=>{let F=o+1+c,h=` ${` ${F}`.slice(-l)} |`,C=a[F],v=!a[F+1];if(C){let E="";if(Array.isArray(C)){let g=d.slice(0,Math.max(C[0]-1,0)).replace(/[^\t]/g," "),j=C[1]||1;E=[` + `,u.gutter(h.replace(/\d/g," "))," ",g,u.marker("^").repeat(j)].join(""),v&&r.message&&(E+=" "+u.message(r.message))}return[u.marker(">"),u.gutter(h),d.length>0?` ${d}`:"",E].join("")}else return` ${u.gutter(h)}${d.length>0?` ${d}`:""}`}).join(` +`);return r.message&&!D&&(f=`${" ".repeat(l+1)}${r.message} +${f}`),f}rr.codeFrameColumns=_i});var lo={};Bt(lo,{__debug:()=>Do,check:()=>so,doc:()=>sr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>ao,util:()=>Dr,version:()=>lu});var bu=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ne=bu;function M(){}M.prototype={diff:function(t,r){var n,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=u.callback;typeof u=="function"&&(i=u,u={});var o=this;function s(E){return E=o.postProcess(E,u),i?(setTimeout(function(){i(E)},0),!0):E}t=this.castInput(t,u),r=this.castInput(r,u),t=this.removeEmpty(this.tokenize(t,u)),r=this.removeEmpty(this.tokenize(r,u));var a=r.length,D=t.length,l=1,p=a+D;u.maxEditLength!=null&&(p=Math.min(p,u.maxEditLength));var f=(n=u.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+f,c=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(c[0],r,t,0,u);if(c[0].oldPos+1>=D&&F+1>=a)return s(pr(o,c[0].lastComponent,r,t,o.useLongestToken));var m=-1/0,h=1/0;function C(){for(var E=Math.max(m,-l);E<=Math.min(h,l);E+=2){var g=void 0,j=c[E-1],b=c[E+1];j&&(c[E-1]=void 0);var X=!1;if(b){var ae=b.oldPos-E;X=b&&0<=ae&&ae=D&&F+1>=a)return s(pr(o,g.lastComponent,r,t,o.useLongestToken));c[E]=g,g.oldPos+1>=D&&(h=Math.min(h,E-1)),F+1>=a&&(m=Math.max(m,E+1))}l++}if(i)(function E(){setTimeout(function(){if(l>p||Date.now()>d)return i();C()||E()},0)})();else for(;l<=p&&Date.now()<=d;){var v=C();if(v)return v}},addToPath:function(t,r,n,u,i){var o=t.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===n?{oldPos:t.oldPos+u,lastComponent:{count:o.count+1,added:r,removed:n,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+u,lastComponent:{count:1,added:r,removed:n,previousComponent:o}}},extractCommon:function(t,r,n,u,i){for(var o=r.length,s=n.length,a=t.oldPos,D=a-u,l=0;D+1d.length?F:d}),p.value=e.join(f)}else p.value=e.join(r.slice(D,D+p.count));D+=p.count,p.added||(l+=p.count)}}return i}var mo=new M;function Fr(e,t){var r;for(r=0;rt.length&&(r=e.length-t.length);var n=t.length;e.length0&&t[o]!=t[i];)i=u[i];t[o]==t[i]&&i++}i=0;for(var s=r;s0&&e[s]!=t[i];)i=u[i];e[s]==t[i]&&i++}return i}var ze="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Ou=new RegExp("[".concat(ze,"]+|\\s+|[^").concat(ze,"]"),"ug"),Ke=new M;Ke.equals=function(e,t,r){return r.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()};Ke.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(t.intlSegmenter.segment(e),function(i){return i.segment})}else r=e.match(Ou)||[];var n=[],u=null;return r.forEach(function(i){/\s/.test(i)?u==null?n.push(i):n.push(n.pop()+i):/\s/.test(u)?n[n.length-1]==u?n.push(n.pop()+i):n.push(u+i):n.push(i),u=i}),n};Ke.join=function(e){return e.map(function(t,r){return r==0?t:t.replace(/^\s+/,"")}).join("")};Ke.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var r=null,n=null,u=null;return e.forEach(function(i){i.added?n=i:i.removed?u=i:((n||u)&&Er(r,u,n,i),r=i,n=null,u=null)}),(n||u)&&Er(r,u,n,null),e};function Er(e,t,r,n){if(t&&r){var u=t.value.match(/^\s*/)[0],i=t.value.match(/\s*$/)[0],o=r.value.match(/^\s*/)[0],s=r.value.match(/\s*$/)[0];if(e){var a=Fr(u,o);e.value=_t(e.value,o,a),t.value=we(t.value,a),r.value=we(r.value,a)}if(n){var D=mr(i,s);n.value=wt(n.value,s,D),t.value=Ve(t.value,D),r.value=Ve(r.value,D)}}else if(r)e&&(r.value=r.value.replace(/^\s*/,"")),n&&(n.value=n.value.replace(/^\s*/,""));else if(e&&n){var l=n.value.match(/^\s*/)[0],p=t.value.match(/^\s*/)[0],f=t.value.match(/\s*$/)[0],d=Fr(l,p);t.value=we(t.value,d);var c=mr(we(l,d),f);t.value=Ve(t.value,c),n.value=wt(n.value,l,c),e.value=_t(e.value,l,l.slice(0,l.length-c.length))}else if(n){var F=n.value.match(/^\s*/)[0],m=t.value.match(/\s*$/)[0],h=hr(m,F);t.value=Ve(t.value,h)}else if(e){var C=e.value.match(/\s*$/)[0],v=t.value.match(/^\s*/)[0],E=hr(C,v);t.value=we(t.value,E)}}var Su=new M;Su.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(ze,"]+|[^\\S\\n\\r]+|[^").concat(ze,"]"),"ug");return e.match(t)||[]};var Nt=new M;Nt.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` +`));var r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var u=0;u"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(bt(e,null,null,u),u," ")};_e.equals=function(e,t,r){return M.prototype.equals.call(_e,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),r)};function bt(e,t,r,n,u){t=t||[],r=r||[],n&&(e=n(u,e));var i;for(i=0;inew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Pu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(G(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Lu([...Ue].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var _t=class extends Error{name="InvalidDocError";constructor(t){super(Pu(t)),this.doc=t}},Q=_t;var Er={};function Iu(e,t,r,n){let i=[e];for(;i.length>0;){let u=i.pop();if(u===Er){r(i.pop());continue}r&&i.push(u,Er);let o=G(u);if(!o)throw new Q(u);if((t==null?void 0:t(u))!==!1)switch(o){case W:case S:{let s=o===W?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)i.push(s[D]);break}case x:i.push(u.flatContents,u.breakContents);break;case _:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)i.push(u.expandedStates[a]);else i.push(u.contents);break;case P:case L:case R:case N:case Y:i.push(u.contents);break;case U:case z:case I:case j:case B:case b:break;default:throw new Q(u)}}}var we=Iu;var hr=()=>{},K=hr,ze=hr;function De(e){return K(e),{type:L,contents:e}}function ae(e,t){return K(t),{type:P,contents:t,n:e}}function xt(e,t={}){return K(e),ze(t.expandedStates,!0),{type:_,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Cr(e){return ae(Number.NEGATIVE_INFINITY,e)}function gr(e){return ae({type:"root"},e)}function yr(e){return ae(-1,e)}function Ar(e,t){return xt(e[0],{...t,expandedStates:e})}function Ge(e){return ze(e),{type:S,parts:e}}function Br(e,t="",r={}){return K(e),t!==""&&K(t),{type:x,breakContents:e,flatContents:t,groupId:r.groupId}}function wr(e,t){return K(e),{type:R,contents:e,groupId:t.groupId,negate:t.negate}}function _e(e){return K(e),{type:Y,contents:e}}var _r={type:j},de={type:b},xr={type:I},xe={type:B,hard:!0},vt={type:B,hard:!0,literal:!0},Ke={type:B},vr={type:B,soft:!0},q=[xe,de],qe=[vt,de],ve={type:z};function be(e,t){K(e),ze(t);let r=[];for(let n=0;n0){for(let i=0;i0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===_){let l=[];u.break&&u.break!=="propagated"&&l.push("shouldBreak: true"),u.id&&l.push(`id: ${i(u.id)}`);let d=l.length>0?`, { ${l.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(f=>n(f)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===S)return`fill([${u.parts.map(l=>n(l)).join(", ")}])`;if(u.type===Y)return"lineSuffix("+n(u.contents)+")";if(u.type===j)return"lineSuffixBoundary";if(u.type===N)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function i(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let o=u.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}var Ru=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Ru;var Sr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\u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200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Nr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Tr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var kr=e=>!(Nr(e)||Tr(e));var Yu=/[^\x20-\x7F]/u;function ju(e){if(!e)return 0;if(!Yu.test(e))return e.length;e=e.replace(Sr()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=kr(n)?1:2)}return t}var Oe=ju;function Ne(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let o=i(u);return r.set(u,o),o}function i(u){switch(G(u)){case W:return t(u.map(n));case S:return t({...u,parts:u.parts.map(n)});case x:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case _:{let{expandedStates:o,contents:s}=u;return o?(o=o.map(n),s=o[0]):s=n(s),t({...u,contents:s,expandedStates:o})}case P:case L:case R:case N:case Y:return t({...u,contents:n(u.contents)});case U:case z:case I:case j:case B:case b:return t(u);default:throw new Q(u)}}}function Xe(e,t,r){let n=r,i=!1;function u(o){if(i)return!1;let s=t(o);s!==void 0&&(i=!0,n=s)}return we(e,u),n}function Hu(e){if(e.type===_&&e.break||e.type===B&&e.hard||e.type===b)return!0}function Ir(e){return Xe(e,Hu,!1)}function Lr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Rr(e){let t=new Set,r=[];function n(u){if(u.type===b&&Lr(r),u.type===_){if(r.push(u),t.has(u))return!1;t.add(u)}}function i(u){u.type===_&&r.pop().break&&Lr(r)}we(e,n,i,!0)}function Wu(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===x?e.flatContents:e}function Yr(e){return Ne(e,Wu)}function Pr(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===B&&y(!1,e,-1).type===b;)e.length-=2;if(e.length>0){let t=Se(y(!1,e,-1));e[e.length-1]=t}return e}function Se(e){switch(G(e)){case L:case R:case _:case Y:case N:{let t=Se(e.contents);return{...e,contents:t}}case x:return{...e,breakContents:Se(e.breakContents),flatContents:Se(e.flatContents)};case S:return{...e,parts:Pr(e.parts)};case W:return Pr(e);case U:return e.replace(/[\n\r]*$/u,"");case P:case z:case I:case j:case B:case b:break;default:throw new Q(e)}return e}function Ze(e){return Se($u(e))}function Mu(e){switch(G(e)){case S:if(e.parts.every(t=>t===""))return"";break;case _:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===_&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case P:case L:case R:case Y:if(!e.contents)return"";break;case x:if(!e.flatContents&&!e.breakContents)return"";break;case W:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case U:case z:case I:case j:case B:case N:case b:break;default:throw new Q(e)}return e}function $u(e){return Ne(e,t=>Mu(t))}function jr(e,t=qe){return Ne(e,r=>typeof r=="string"?be(t,r.split(` -`)):r)}function Vu(e){if(e.type===B)return!0}function Hr(e){return Xe(e,Vu,!1)}function Qe(e,t){return e.type===N?{...e,contents:t(e.contents)}:t(e)}var H=Symbol("MODE_BREAK"),J=Symbol("MODE_FLAT"),Te=Symbol("cursor");function Wr(){return{value:"",length:0,queue:[]}}function Uu(e,t){return bt(e,{type:"indent"},t)}function zu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Wr():t<0?bt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:bt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function bt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",u=0,o=0,s=0;for(let c of n)switch(c.type){case"indent":l(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":l(),i+=c.n,u+=c.n.length;break;case"numberAlign":o+=1,s+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return f(),{...e,value:i,length:u,queue:n};function a(c){i+=" ".repeat(c),u+=r.tabWidth*c}function D(c){i+=" ".repeat(c),u+=c}function l(){r.useTabs?d():f()}function d(){o>0&&a(o),p()}function f(){s>0&&D(s),p()}function p(){o=0,s=0}}function Ot(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===Te){r++;continue}for(let u=i.length-1;u>=0;u--){let o=i[u];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Te);return t}function et(e,t,r,n,i,u){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:l}=s.pop(),d=G(l);switch(d){case U:a.push(l),r-=Oe(l);break;case W:case S:{let f=d===W?l:l.parts;for(let p=f.length-1;p>=0;p--)s.push({mode:D,doc:f[p]});break}case L:case P:case R:case N:s.push({mode:D,doc:l.contents});break;case I:r+=Ot(a);break;case _:{if(u&&l.break)return!1;let f=l.break?H:D,p=l.expandedStates&&f===H?y(!1,l.expandedStates,-1):l.contents;s.push({mode:f,doc:p});break}case x:{let p=(l.groupId?i[l.groupId]||J:D)===H?l.breakContents:l.flatContents;p&&s.push({mode:D,doc:p});break}case B:if(D===H||l.hard)return!0;l.soft||(a.push(" "),r--);break;case Y:n=!0;break;case j:if(n)return!1;break}}return!1}function Fe(e,t){let r={},n=t.printWidth,i=Be(t.endOfLine),u=0,o=[{ind:Wr(),mode:H,doc:e}],s=[],a=!1,D=[],l=0;for(Rr(e);o.length>0;){let{ind:f,mode:p,doc:c}=o.pop();switch(G(c)){case U:{let F=i!==` +`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function yr(e){return ne(!1,e,/\r\n?/gu,` +`)}var U="string",H="array",V="cursor",T="indent",k="align",L="trim",B="group",N="fill",w="if-break",P="indent-if-break",I="line-suffix",R="line-suffix-boundary",A="line",O="label",_="break-parent",Je=new Set([V,T,k,L,B,N,w,P,I,R,A,O,_]);function Lu(e){if(typeof e=="string")return U;if(Array.isArray(e))return H;if(!e)return;let{type:t}=e;if(Je.has(t))return t}var z=Lu;var Pu=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Iu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(z(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Pu([...Je].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var St=class extends Error{name="InvalidDocError";constructor(t){super(Iu(t)),this.doc=t}},Q=St;var Ar={};function Ru(e,t,r,n){let u=[e];for(;u.length>0;){let i=u.pop();if(i===Ar){r(u.pop());continue}r&&u.push(i,Ar);let o=z(i);if(!o)throw new Q(i);if((t==null?void 0:t(i))!==!1)switch(o){case H:case N:{let s=o===H?i:i.parts;for(let a=s.length,D=a-1;D>=0;--D)u.push(s[D]);break}case w:u.push(i.flatContents,i.breakContents);break;case B:if(n&&i.expandedStates)for(let s=i.expandedStates.length,a=s-1;a>=0;--a)u.push(i.expandedStates[a]);else u.push(i.contents);break;case k:case T:case P:case O:case I:u.push(i.contents);break;case U:case V:case L:case R:case A:case _:break;default:throw new Q(i)}}}var be=Ru;var vr=()=>{},G=vr,qe=vr;function le(e){return G(e),{type:T,contents:e}}function De(e,t){return G(t),{type:k,contents:t,n:e}}function Tt(e,t={}){return G(e),qe(t.expandedStates,!0),{type:B,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Br(e){return De(Number.NEGATIVE_INFINITY,e)}function wr(e){return De({type:"root"},e)}function _r(e){return De(-1,e)}function xr(e,t){return Tt(e[0],{...t,expandedStates:e})}function br(e){return qe(e),{type:N,parts:e}}function Nr(e,t="",r={}){return G(e),t!==""&&G(t),{type:w,breakContents:e,flatContents:t,groupId:r.groupId}}function Or(e,t){return G(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return G(e),{type:I,contents:e}}var Sr={type:R},Fe={type:_},Tr={type:L},Oe={type:A,hard:!0},kt={type:A,hard:!0,literal:!0},Xe={type:A},kr={type:A,soft:!0},K=[Oe,Fe],Qe=[kt,Fe],Z={type:V};function Se(e,t){G(e),qe(t);let r=[];for(let n=0;n0){for(let u=0;u0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${p})`}if(i.type===B){let l=[];i.break&&i.break!=="propagated"&&l.push("shouldBreak: true"),i.id&&l.push(`id: ${u(i.id)}`);let p=l.length>0?`, { ${l.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(f=>n(f)).join(",")}]${p})`:`group(${n(i.contents)}${p})`}if(i.type===N)return`fill([${i.parts.map(l=>n(l)).join(", ")}])`;if(i.type===I)return"lineSuffix("+n(i.contents)+")";if(i.type===R)return"lineSuffixBoundary";if(i.type===O)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}function u(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let o=i.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[i]=`Symbol.for(${JSON.stringify(a)})`}}}var Yu=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Yu;var Ir=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uD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\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Rr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Yr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var jr=e=>!(Rr(e)||Yr(e));var ju=/[^\x20-\x7F]/u;function Hu(e){if(!e)return 0;if(!ju.test(e))return e.length;e=e.replace(Ir()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=jr(n)?1:2)}return t}var Te=Hu;function Le(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=u(i);return r.set(i,o),o}function u(i){switch(z(i)){case H:return t(i.map(n));case N:return t({...i,parts:i.parts.map(n)});case w:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case B:{let{expandedStates:o,contents:s}=i;return o?(o=o.map(n),s=o[0]):s=n(s),t({...i,contents:s,expandedStates:o})}case k:case T:case P:case O:case I:return t({...i,contents:n(i.contents)});case U:case V:case L:case R:case A:case _:return t(i);default:throw new Q(i)}}}function et(e,t,r){let n=r,u=!1;function i(o){if(u)return!1;let s=t(o);s!==void 0&&(u=!0,n=s)}return be(e,i),n}function Wu(e){if(e.type===B&&e.break||e.type===A&&e.hard||e.type===_)return!0}function $r(e){return et(e,Wu,!1)}function Hr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Mr(e){let t=new Set,r=[];function n(i){if(i.type===_&&Hr(r),i.type===B){if(r.push(i),t.has(i))return!1;t.add(i)}}function u(i){i.type===B&&r.pop().break&&Hr(r)}be(e,n,u,!0)}function $u(e){return e.type===A&&!e.hard?e.soft?"":" ":e.type===w?e.flatContents:e}function Ur(e){return Le(e,$u)}function Wr(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===A&&y(!1,e,-1).type===_;)e.length-=2;if(e.length>0){let t=ke(y(!1,e,-1));e[e.length-1]=t}return e}function ke(e){switch(z(e)){case T:case P:case B:case I:case O:{let t=ke(e.contents);return{...e,contents:t}}case w:return{...e,breakContents:ke(e.breakContents),flatContents:ke(e.flatContents)};case N:return{...e,parts:Wr(e.parts)};case H:return Wr(e);case U:return e.replace(/[\n\r]*$/u,"");case k:case V:case L:case R:case A:case _:break;default:throw new Q(e)}return e}function tt(e){return ke(Uu(e))}function Mu(e){switch(z(e)){case N:if(e.parts.every(t=>t===""))return"";break;case B:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===B&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case k:case T:case P:case I:if(!e.contents)return"";break;case w:if(!e.flatContents&&!e.breakContents)return"";break;case H:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case U:case V:case L:case R:case A:case O:case _:break;default:throw new Q(e)}return e}function Uu(e){return Le(e,t=>Mu(t))}function Vr(e,t=Qe){return Le(e,r=>typeof r=="string"?Se(t,r.split(` +`)):r)}function Vu(e){if(e.type===A)return!0}function zr(e){return et(e,Vu,!1)}function me(e,t){return e.type===O?{...e,contents:t(e.contents)}:t(e)}var Y=Symbol("MODE_BREAK"),J=Symbol("MODE_FLAT"),he=Symbol("cursor"),Gr=Symbol("DOC_FILL_PRINTED_LENGTH");function Kr(){return{value:"",length:0,queue:[]}}function zu(e,t){return Lt(e,{type:"indent"},t)}function Gu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Kr():t<0?Lt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Lt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Lt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,o=0,s=0;for(let c of n)switch(c.type){case"indent":l(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":l(),u+=c.n,i+=c.n.length;break;case"numberAlign":o+=1,s+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return f(),{...e,value:u,length:i,queue:n};function a(c){u+=" ".repeat(c),i+=r.tabWidth*c}function D(c){u+=" ".repeat(c),i+=c}function l(){r.useTabs?p():f()}function p(){o>0&&a(o),d()}function f(){s>0&&D(s),d()}function d(){o=0,s=0}}function Pt(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===he){r++;continue}for(let i=u.length-1;i>=0;i--){let o=u[i];if(o===" "||o===" ")t++;else{e[n]=u.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(he);return t}function rt(e,t,r,n,u,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:l}=s.pop(),p=z(l);switch(p){case U:a.push(l),r-=Te(l);break;case H:case N:{let f=p===H?l:l.parts;for(let d=f.length-1;d>=0;d--)s.push({mode:D,doc:f[d]});break}case T:case k:case P:case O:s.push({mode:D,doc:l.contents});break;case L:r+=Pt(a);break;case B:{if(i&&l.break)return!1;let f=l.break?Y:D,d=l.expandedStates&&f===Y?y(!1,l.expandedStates,-1):l.contents;s.push({mode:f,doc:d});break}case w:{let d=(l.groupId?u[l.groupId]||J:D)===Y?l.breakContents:l.flatContents;d&&s.push({mode:D,doc:d});break}case A:if(D===Y||l.hard)return!0;l.soft||(a.push(" "),r--);break;case I:n=!0;break;case R:if(n)return!1;break}}return!1}function Ee(e,t){let r={},n=t.printWidth,u=xe(t.endOfLine),i=0,o=[{ind:Kr(),mode:Y,doc:e}],s=[],a=!1,D=[],l=0;for(Mr(e);o.length>0;){let{ind:f,mode:d,doc:c}=o.pop();switch(z(c)){case U:{let F=u!==` `?ne(!1,c,` -`,i):c;s.push(F),o.length>0&&(u+=Oe(F));break}case W:for(let F=c.length-1;F>=0;F--)o.push({ind:f,mode:p,doc:c[F]});break;case z:if(l>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Te),l++;break;case L:o.push({ind:Uu(f,t),mode:p,doc:c.contents});break;case P:o.push({ind:zu(f,c.n,t),mode:p,doc:c.contents});break;case I:u-=Ot(s);break;case _:switch(p){case J:if(!a){o.push({ind:f,mode:c.break?H:J,doc:c.contents});break}case H:{a=!1;let F={ind:f,mode:J,doc:c.contents},m=n-u,E=D.length>0;if(!c.break&&et(F,o,m,E,r))o.push(F);else if(c.expandedStates){let A=y(!1,c.expandedStates,-1);if(c.break){o.push({ind:f,mode:H,doc:A});break}else for(let w=1;w=c.expandedStates.length){o.push({ind:f,mode:H,doc:A});break}else{let h=c.expandedStates[w],C={ind:f,mode:J,doc:h};if(et(C,o,m,E,r)){o.push(C);break}}}else o.push({ind:f,mode:H,doc:c.contents});break}}c.id&&(r[c.id]=y(!1,o,-1).mode);break;case S:{let F=n-u,{parts:m}=c;if(m.length===0)break;let[E,A]=m,w={ind:f,mode:J,doc:E},h={ind:f,mode:H,doc:E},C=et(w,[],F,D.length>0,r,!0);if(m.length===1){C?o.push(w):o.push(h);break}let k={ind:f,mode:J,doc:A},v={ind:f,mode:H,doc:A};if(m.length===2){C?o.push(k,w):o.push(v,h);break}m.splice(0,2);let $={ind:f,mode:p,doc:Ge(m)},ye=m[0];et({ind:f,mode:J,doc:[E,A,ye]},[],F,D.length>0,r,!0)?o.push($,k,w):C?o.push($,v,w):o.push($,v,h);break}case x:case R:{let F=c.groupId?r[c.groupId]:p;if(F===H){let m=c.type===x?c.breakContents:c.negate?c.contents:De(c.contents);m&&o.push({ind:f,mode:p,doc:m})}if(F===J){let m=c.type===x?c.flatContents:c.negate?De(c.contents):c.contents;m&&o.push({ind:f,mode:p,doc:m})}break}case Y:D.push({ind:f,mode:p,doc:c.contents});break;case j:D.length>0&&o.push({ind:f,mode:p,doc:xe});break;case B:switch(p){case J:if(c.hard)a=!0;else{c.soft||(s.push(" "),u+=1);break}case H:if(D.length>0){o.push({ind:f,mode:p,doc:c},...D.reverse()),D.length=0;break}c.literal?f.root?(s.push(i,f.root.value),u=f.root.length):(s.push(i),u=0):(u-=Ot(s),s.push(i+f.value),u=f.length);break}break;case N:o.push({ind:f,mode:p,doc:c.contents});break;case b:break;default:throw new Q(c)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let d=s.indexOf(Te);if(d!==-1){let f=s.indexOf(Te,d+1),p=s.slice(0,d).join(""),c=s.slice(d+1,f).join(""),F=s.slice(f+1).join("");return{formatted:p+c+F,cursorNodeStart:p.length,cursorNodeText:c}}return{formatted:s.join("")}}function Gu(e,t,r=0){let n=0;for(let i=r;i1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=pe(this,te,Nt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,u=y(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=pe(this,te,Nt).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,u=y(!1,n,-1);for(let o of r)u=u[o],n.push(o,u);try{for(let o=0;o{n[u]=t(i,u,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let u of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),u&&!u(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of pe(this,te,tt).call(this))if(t(r))return r}hasAncestor(t){for(let r of pe(this,te,tt).call(this))if(t(r))return!0;return!1}};te=new WeakSet,Nt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},tt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Mr=St;var $r=new Proxy(()=>{},{get:()=>$r}),ke=$r;function Ku(e){return e!==null&&typeof e=="object"}var Vr=Ku;function*Tt(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=u=>Vr(u)&&n(u);for(let u of r(e)){let o=e[u];if(Array.isArray(o))for(let s of o)i(s)&&(yield s);else i(o)&&(yield o)}}function*Ur(e,t){let r=[e];for(let n=0;n{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,o=r;for(;o>=0&&o0}var kt=Xu;var Gr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Zu=e=>Object.keys(e).filter(t=>!Gr.has(t));function Qu(e){return e?t=>e(t,Gr):Zu}var X=Qu;function ei(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Lt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=ei(e)}function ue(e,t){t.leading=!0,t.trailing=!1,Lt(e,t)}function re(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Lt(e,t)}function ie(e,t){t.leading=!1,t.trailing=!0,Lt(e,t)}var Pt=new WeakMap;function ut(e,t){if(Pt.has(e))return Pt.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:u,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Tt(e,{getVisitorKeys:X(i)})]).flatMap(a=>n(a)?[a]:ut(a,t));return s.sort((a,D)=>u(a)-u(D)||o(a)-o(D)),Pt.set(e,s),s}function qr(e,t,r,n){let{locStart:i,locEnd:u}=r,o=i(t),s=u(t),a=ut(e,r),D,l,d=0,f=a.length;for(;d>1,c=a[p],F=i(c),m=u(c);if(F<=o&&s<=m)return qr(c,t,r,c);if(m<=o){D=c,d=p+1;continue}if(s<=F){l=c,f=p;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:p}=n,c=Rt(p,t,r);D&&Rt(p,D,r)!==c&&(D=null),l&&Rt(p,l,r)!==c&&(l=null)}return{enclosingNode:n,precedingNode:D,followingNode:l}}var It=()=>!1;function Jr(e,t){let{comments:r}=e;if(delete e.comments,!kt(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=It,endOfLine:l=It,remaining:d=It}=s,f=r.map((p,c)=>({...qr(e,p,t),comment:p,text:a,options:t,ast:e,isLastComment:r.length-1===c}));for(let[p,c]of f.entries()){let{comment:F,precedingNode:m,enclosingNode:E,followingNode:A,text:w,options:h,ast:C,isLastComment:k}=c;if(h.parser==="json"||h.parser==="json5"||h.parser==="jsonc"||h.parser==="__js_expression"||h.parser==="__ts_expression"||h.parser==="__vue_expression"||h.parser==="__vue_ts_expression"){if(i(F)-i(C)<=0){ue(C,F);continue}if(u(F)-u(C)>=0){ie(C,F);continue}}let v;if(o?v=[c]:(F.enclosingNode=E,F.precedingNode=m,F.followingNode=A,v=[F,w,h,C,k]),ti(w,h,f,p))F.placement="ownLine",D(...v)||(A?ue(A,F):m?ie(m,F):E?re(E,F):re(C,F));else if(ri(w,h,f,p))F.placement="endOfLine",l(...v)||(m?ie(m,F):A?ue(A,F):E?re(E,F):re(C,F));else if(F.placement="remaining",!d(...v))if(m&&A){let $=n.length;$>0&&n[$-1].followingNode!==A&&Kr(n,h),n.push(c)}else m?ie(m,F):A?ue(A,F):E?re(E,F):re(C,F)}if(Kr(n,t),!o)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var Xr=e=>!/[\S\n\u2028\u2029]/u.test(e);function ti(e,t,r,n){let{comment:i,precedingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=o(i);if(u)for(let D=n-1;D>=0;D--){let{comment:l,precedingNode:d}=r[D];if(d!==u||!Xr(e.slice(s(l),a)))break;a=o(l)}return V(e,a,{backwards:!0})}function ri(e,t,r,n){let{comment:i,followingNode:u}=r[n],{locStart:o,locEnd:s}=t,a=s(i);if(u)for(let D=n+1;D0;--o){let{comment:D,precedingNode:l,followingNode:d}=e[o-1];ke.strictEqual(l,n),ke.strictEqual(d,i);let f=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,f,t))??/^[\s(]*$/u.test(f))u=t.locStart(D);else break}for(let[D,{comment:l}]of e.entries())D1&&D.comments.sort((l,d)=>t.locStart(l)-t.locStart(d));e.length=0}function Rt(e,t,r){let n=r.locStart(t)-1;for(let i=1;i!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:l}=a;D?u.push(ui(e,t)):l&&(s=ii(e,t,s),o.push(s.doc))},"comments"),{leading:u,trailing:o}}function Qr(e,t,r){let{leading:n,trailing:i}=oi(e,r);return!n&&!i?t:Qe(t,u=>[n,u,i])}function en(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function si(e){return()=>{}}var tn=si;var Pe=class extends Error{name="ConfigError"},Ie=class extends Error{name="UndefinedParserError"};var rn={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +`,u):c;s.push(F),o.length>0&&(i+=Te(F));break}case H:for(let F=c.length-1;F>=0;F--)o.push({ind:f,mode:d,doc:c[F]});break;case V:if(l>=2)throw new Error("There are too many 'cursor' in doc.");s.push(he),l++;break;case T:o.push({ind:zu(f,t),mode:d,doc:c.contents});break;case k:o.push({ind:Gu(f,c.n,t),mode:d,doc:c.contents});break;case L:i-=Pt(s);break;case B:switch(d){case J:if(!a){o.push({ind:f,mode:c.break?Y:J,doc:c.contents});break}case Y:{a=!1;let F={ind:f,mode:J,doc:c.contents},m=n-i,h=D.length>0;if(!c.break&&rt(F,o,m,h,r))o.push(F);else if(c.expandedStates){let C=y(!1,c.expandedStates,-1);if(c.break){o.push({ind:f,mode:Y,doc:C});break}else for(let v=1;v=c.expandedStates.length){o.push({ind:f,mode:Y,doc:C});break}else{let E=c.expandedStates[v],g={ind:f,mode:J,doc:E};if(rt(g,o,m,h,r)){o.push(g);break}}}else o.push({ind:f,mode:Y,doc:c.contents});break}}c.id&&(r[c.id]=y(!1,o,-1).mode);break;case N:{let F=n-i,m=c[Gr]??0,{parts:h}=c,C=h.length-m;if(C===0)break;let v=h[m+0],E=h[m+1],g={ind:f,mode:J,doc:v},j={ind:f,mode:Y,doc:v},b=rt(g,[],F,D.length>0,r,!0);if(C===1){b?o.push(g):o.push(j);break}let X={ind:f,mode:J,doc:E},ae={ind:f,mode:Y,doc:E};if(C===2){b?o.push(X,g):o.push(ae,j);break}let $e=h[m+2],vt={ind:f,mode:d,doc:{...c,[Gr]:m+2}};rt({ind:f,mode:J,doc:[v,E,$e]},[],F,D.length>0,r,!0)?o.push(vt,X,g):b?o.push(vt,ae,g):o.push(vt,ae,j);break}case w:case P:{let F=c.groupId?r[c.groupId]:d;if(F===Y){let m=c.type===w?c.breakContents:c.negate?c.contents:le(c.contents);m&&o.push({ind:f,mode:d,doc:m})}if(F===J){let m=c.type===w?c.flatContents:c.negate?le(c.contents):c.contents;m&&o.push({ind:f,mode:d,doc:m})}break}case I:D.push({ind:f,mode:d,doc:c.contents});break;case R:D.length>0&&o.push({ind:f,mode:d,doc:Oe});break;case A:switch(d){case J:if(c.hard)a=!0;else{c.soft||(s.push(" "),i+=1);break}case Y:if(D.length>0){o.push({ind:f,mode:d,doc:c},...D.reverse()),D.length=0;break}c.literal?f.root?(s.push(u,f.root.value),i=f.root.length):(s.push(u),i=0):(i-=Pt(s),s.push(u+f.value),i=f.length);break}break;case O:o.push({ind:f,mode:d,doc:c.contents});break;case _:break;default:throw new Q(c)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let p=s.indexOf(he);if(p!==-1){let f=s.indexOf(he,p+1);if(f===-1)return{formatted:s.filter(m=>m!==he).join("")};let d=s.slice(0,p).join(""),c=s.slice(p+1,f).join(""),F=s.slice(f+1).join("");return{formatted:d+c+F,cursorNodeStart:d.length,cursorNodeText:c}}return{formatted:s.join("")}}function Ku(e,t,r=0){let n=0;for(let u=r;u1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=pe(this,te,Rt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:u}=n,i=y(!1,n,-1);for(let o of r)i=i[o],n.push(o,i);try{return t(this)}finally{n.length=u}}callParent(t,r=0){let n=pe(this,te,Rt).call(this,r+1),u=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...u)}}each(t,...r){let{stack:n}=this,{length:u}=n,i=y(!1,n,-1);for(let o of r)i=i[o],n.push(o,i);try{for(let o=0;o{n[i]=t(u,i,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(let i of t){if(u===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],u=this.stack[r--]),i&&!i(u,n,o))return!1;n=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(t){for(let r of pe(this,te,nt).call(this))if(t(r))return r}hasAncestor(t){for(let r of pe(this,te,nt).call(this))if(t(r))return!0;return!1}};te=new WeakSet,Rt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},nt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Jr=It;var qr=new Proxy(()=>{},{get:()=>qr}),Pe=qr;function Ju(e){return e!==null&&typeof e=="object"}var Xr=Ju;function*ge(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=i=>Xr(i)&&n(i);for(let i of r(e)){let o=e[i];if(Array.isArray(o))for(let s of o)u(s)&&(yield s);else u(o)&&(yield o)}}function*Qr(e,t){let r=[e];for(let n=0;n{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o0}var Yt=Qu;var tn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Zu=e=>Object.keys(e).filter(t=>!tn.has(t));function ei(e){return e?t=>e(t,tn):Zu}var q=ei;function ti(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function jt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=ti(e)}function ue(e,t){t.leading=!0,t.trailing=!1,jt(e,t)}function re(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),jt(e,t)}function ie(e,t){t.leading=!1,t.trailing=!0,jt(e,t)}var Ht=new WeakMap;function ot(e,t){if(Ht.has(e))return Ht.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:i,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...ge(e,{getVisitorKeys:q(u)})]).flatMap(a=>n(a)?[a]:ot(a,t));return s.sort((a,D)=>i(a)-i(D)||o(a)-o(D)),Ht.set(e,s),s}function nn(e,t,r,n){let{locStart:u,locEnd:i}=r,o=u(t),s=i(t),a=ot(e,r),D,l,p=0,f=a.length;for(;p>1,c=a[d],F=u(c),m=i(c);if(F<=o&&s<=m)return nn(c,t,r,c);if(m<=o){D=c,p=d+1;continue}if(s<=F){l=c,f=d;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:d}=n,c=$t(d,t,r);D&&$t(d,D,r)!==c&&(D=null),l&&$t(d,l,r)!==c&&(l=null)}return{enclosingNode:n,precedingNode:D,followingNode:l}}var Wt=()=>!1;function un(e,t){let{comments:r}=e;if(delete e.comments,!Yt(r)||!t.printer.canAttachComment)return;let n=[],{locStart:u,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Wt,endOfLine:l=Wt,remaining:p=Wt}=s,f=r.map((d,c)=>({...nn(e,d,t),comment:d,text:a,options:t,ast:e,isLastComment:r.length-1===c}));for(let[d,c]of f.entries()){let{comment:F,precedingNode:m,enclosingNode:h,followingNode:C,text:v,options:E,ast:g,isLastComment:j}=c;if(E.parser==="json"||E.parser==="json5"||E.parser==="jsonc"||E.parser==="__js_expression"||E.parser==="__ts_expression"||E.parser==="__vue_expression"||E.parser==="__vue_ts_expression"){if(u(F)-u(g)<=0){ue(g,F);continue}if(i(F)-i(g)>=0){ie(g,F);continue}}let b;if(o?b=[c]:(F.enclosingNode=h,F.precedingNode=m,F.followingNode=C,b=[F,v,E,g,j]),ri(v,E,f,d))F.placement="ownLine",D(...b)||(C?ue(C,F):m?ie(m,F):h?re(h,F):re(g,F));else if(ni(v,E,f,d))F.placement="endOfLine",l(...b)||(m?ie(m,F):C?ue(C,F):h?re(h,F):re(g,F));else if(F.placement="remaining",!p(...b))if(m&&C){let X=n.length;X>0&&n[X-1].followingNode!==C&&rn(n,E),n.push(c)}else m?ie(m,F):C?ue(C,F):h?re(h,F):re(g,F)}if(rn(n,t),!o)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var on=e=>!/[\S\n\u2028\u2029]/u.test(e);function ri(e,t,r,n){let{comment:u,precedingNode:i}=r[n],{locStart:o,locEnd:s}=t,a=o(u);if(i)for(let D=n-1;D>=0;D--){let{comment:l,precedingNode:p}=r[D];if(p!==i||!on(e.slice(s(l),a)))break;a=o(l)}return $(e,a,{backwards:!0})}function ni(e,t,r,n){let{comment:u,followingNode:i}=r[n],{locStart:o,locEnd:s}=t,a=s(u);if(i)for(let D=n+1;D0;--o){let{comment:D,precedingNode:l,followingNode:p}=e[o-1];Pe.strictEqual(l,n),Pe.strictEqual(p,u);let f=t.originalText.slice(t.locEnd(D),i);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,f,t))??/^[\s(]*$/u.test(f))i=t.locStart(D);else break}for(let[D,{comment:l}]of e.entries())D1&&D.comments.sort((l,p)=>t.locStart(l)-t.locStart(p));e.length=0}function $t(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(a)).length===0)return{leading:"",trailing:""};let i=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:l}=a;D?i.push(ii(e,t)):l&&(s=oi(e,t,s),o.push(s.doc))},"comments"),{leading:i,trailing:o}}function an(e,t,r){let{leading:n,trailing:u}=si(e,r);return!n&&!u?t:me(t,i=>[n,i,u])}function Dn(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function ai(e){return()=>{}}var ln=ai;var Re=class extends Error{name="ConfigError"},Ye=class extends Error{name="UndefinedParserError"};var cn={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function it({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of Di(Object.assign({},...e.map(({options:u})=>u),rn)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(u=>!u.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...ai(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(u=>{var o;return((o=u.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(u=>[u.name,u.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*ai(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let u of i.parsers)if(!n.has(u)){n.add(u);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=i.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:u,description:s}}}}function Di(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=y(!1,i.default,-1).value),t.push(i)}return t}var li=e=>String(e).split(/[/\\]/u).pop();function nn(e,t){if(!t)return;let r=li(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function ci(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function fi(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=ci(r,t.language)??nn(r,t.physicalFile)??nn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var un=fi;var oe={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>oe.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${oe.key(r)}: ${oe.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>oe.value({[e]:t})};var Yt=Me(ot(),1),an=(e,t,{descriptor:r})=>{let n=[`${Yt.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Yt.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var le=Me(ot(),1);var st=Symbol.for("vnopts.VALUE_NOT_EXIST"),he=Symbol.for("vnopts.VALUE_UNCHANGED");var Dn=" ".repeat(2),cn=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),u=[];return n&&u.push(ln(e,t,n,r.descriptor)),i&&u.push([ln(e,t,i.title,r.descriptor)].concat(i.values.map(o=>fn(o,r.loggerPrintWidth))).join(` -`)),pn(u,r.loggerPrintWidth)};function ln(e,t,r,n){return[`Invalid ${le.default.red(n.key(e))} value.`,`Expected ${le.default.blue(r)},`,`but received ${t===st?le.default.gray("nothing"):le.default.red(n.value(t))}.`].join(" ")}function fn({text:e,list:t},r){let n=[];return e&&n.push(`- ${le.default.blue(e)}`),t&&n.push([`- ${le.default.blue(t.title)}:`].concat(t.values.map(i=>fn(i,r-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(` -`)),pn(n,r)}function pn(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,u]=e.map(o=>o.split(` -`,1)[0].length);return i>t&&i>u?n:r}var Wt=Me(ot(),1);var jt=[],dn=[];function Ht(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let u=0;for(;us?D>s?s+1:D:D>a?a+1:D;return s}var at=(e,t,{descriptor:r,logger:n,schemas:i})=>{let u=[`Ignored unknown option ${Wt.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(s=>Ht(e,s)<3);o&&u.push(`Did you mean ${Wt.default.blue(r.key(o))}?`),n.warn(u.join(" "))};var pi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function di(e,t){let r=new e(t),n=Object.create(r);for(let i of pi)i in t&&(n[i]=Fi(t[i],r,O.prototype[i].length));return n}var O=class{static create(t){return di(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return he}};function Fi(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Dt=class extends O{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var lt=class extends O{expected(){return"anything"}validate(){return!0}};var ct=class extends O{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let u=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);u!==!1&&n.push(...u.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let i of t){let u=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...u.map(Fn))}return n}redirect(t,r){let n=[],i=[];for(let u of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in o&&n.push(o.remain),i.push(...o.redirect.map(Fn))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};function Fn({from:e,to:t}){return{from:[e],to:t}}var ft=class extends O{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function En(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function hn(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function Cn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function gn(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function yn(e){return e===Math.floor(e)}function An(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Bn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Mt(e){return e===void 0?{}:e}function $t(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return mi((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map($t)}}:{text:t}}function Vt(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ut(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function mn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function pt(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>mn(r,t)):[mn(e,t)]}function zt(e,t){let r=pt(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function mi(e,t){if(!e)throw new Error(t)}var dt=class extends O{constructor(t){super(t),this._choices=hn(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(An).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var Ft=class extends O{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var mt=class extends Ft{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&yn(t)}};var Re=class extends O{expected(){return"a string"}validate(t){return typeof t=="string"}};var wn=oe,_n=at,xn=cn,vn=an;var Et=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:u=wn,unknown:o=_n,invalid:s=xn,deprecated:a=vn,missing:D=()=>!1,required:l=()=>!1,preprocess:d=p=>p,postprocess:f=()=>he}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:En(t,"name"),normalizeDefaultResult:Mt,normalizeExpectedResult:$t,normalizeDeprecatedResult:Ut,normalizeForwardResult:pt,normalizeRedirectResult:zt,normalizeValidateResult:Vt},this._unknownHandler=o,this._invalidHandler=Bn(s),this._deprecatedHandler=a,this._identifyMissing=(p,c)=>!(p in c)||D(p,c),this._identifyRequired=l,this._preprocess=d,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Cn()}normalize(t){let r={},i=[this._preprocess(t,this._utils)],u=()=>{for(;i.length!==0;){let o=i.shift(),s=this._applyNormalization(o,r);i.push(...s)}};u();for(let o of Object.keys(this._utils.schemas)){let s=this._utils.schemas[o];if(!(o in r)){let a=Mt(s.default(this._utils));"value"in a&&i.push({[o]:a.value})}}u();for(let o of Object.keys(this._utils.schemas)){if(!(o in r))continue;let s=this._utils.schemas[o],a=r[o],D=s.postprocess(a,this._utils);D!==he&&(this._applyValidation(D,o,s),r[o]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:i,unknownKeys:u}=this._partitionOptionKeys(t);for(let o of i){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils);this._applyValidation(a,o,s);let D=({from:p,to:c})=>{n.push(typeof c=="string"?{[c]:p}:{[c.key]:c.value})},l=({value:p,redirectTo:c})=>{let F=Ut(s.deprecated(p,this._utils),a,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,c,this._utils));else for(let{value:m}of F){let E={key:o,value:m};if(!this._hasDeprecationWarned(E)){let A=typeof c=="string"?{key:c,value:m}:c;this._utils.logger.warn(this._deprecatedHandler(E,A,this._utils))}}};pt(s.forward(a,this._utils),a).forEach(D);let f=zt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let p=f.remain;r[o]=o in r?s.overlap(r[o],p,this._utils):p,l({value:p})}for(let{from:p,to:c}of f.redirect)l({value:p,redirectTo:c})}for(let o of u){let s=t[o];this._applyUnknownHandler(o,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,st,this._utils)}_partitionOptionKeys(t){let[r,n]=gn(Object.keys(t).filter(i=>!this._identifyMissing(i,t)),i=>i in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let i=Vt(n.validate(t,this._utils),t);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(t,r,n,i){let u=this._unknownHandler(t,r,this._utils);if(u)for(let o of Object.keys(u)){if(this._identifyMissing(o,u))continue;let s=u[o];o in this._utils.schemas?i(o,s):n[o]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==he){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(r.override);for(let u of n){let o=r.override[u];this._applyValidation(o,u,this._utils.schemas[u]),t[u]=o}for(let u of i){let o=r.override[u];this._applyUnknownHandler(u,o,t,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),t[s]=a})}}}}};var Gt;function hi(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:u,descriptor:o}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=oe;let s=i?Array.isArray(i)?(f,p)=>i.includes(f)?{[f]:p}:void 0:(f,p)=>({[f]:p}):(f,p,c)=>{let{_:F,...m}=c.schemas;return at(f,p,{...c,schemas:m})},a=Ci(t,{isCLI:n,FlagSchema:u}),D=new Et(a,{logger:r,unknown:s,descriptor:o}),l=r!==!1;l&&Gt&&(D._hasDeprecationWarned=Gt);let d=D.normalize(e);return l&&(Gt=D._hasDeprecationWarned),d}function Ci(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(lt.create({name:"_"}));for(let i of e)n.push(gi(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(Dt.create({name:i.alias,sourceName:i.name}));return n}function gi(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,u={name:i},o,s={};switch(e.type){case"int":o=mt,t&&(u.preprocess=Number);break;case"string":o=Re;break;case"choice":o=dt,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=ft;break;case"flag":o=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=Re;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,l)=>e.exception(a)||D.validate(a,l):u.validate=(a,D,l)=>a===void 0||D.validate(a,l),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,l,d)=>l.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),d)}return e.array?ct.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(u)}):o.create({...u,...s})}var bn=hi;var yi=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},Kt=yi;function qt(e,t){if(!t)throw new Error("parserName is required.");let r=Kt(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Pe(n)}function On(e,t){if(!t)throw new Error("astFormat is required.");let r=Kt(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Pe(n)}function ht({plugins:e,parser:t}){let r=qt(e,t);return Jt(r,t)}function Jt(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Sn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Ai(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=un(r,{physicalFile:r.filepath}),!r.parser)throw new Ie(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ie("No parser and no file path given, couldn't infer a parser.");let n=it({plugins:e.plugins,showDeprecated:!0}).options,i={...Nn,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},u=qt(r.plugins,r.parser),o=await Jt(u,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(d=u.printers)!=null&&d[o.astFormat]?u:On(r.plugins,o.astFormat),a=await Sn(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},l={...i,...D};for(let[f,p]of Object.entries(l))(r[f]===null||r[f]===void 0)&&(r[f]=p);return r.parser==="json"&&(r.trailingComma="none"),bn(r,n,{passThrough:Object.keys(Nn),...t})}var se=Ai;var Vn=Me($n(),1);async function Ni(e,t){let r=await ht(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(u){Ti(u,e)}return{text:n,ast:i}}function Ti(e,t){let{loc:r}=e;if(r){let n=(0,Vn.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var ce=Ni;async function Un(e,t,r,n,i){let{embeddedLanguageFormatting:u,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||u!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=X(o.getVisitorKeys??a),l=[];p();let d=e.stack;for(let{print:c,node:F,pathStack:m}of l)try{e.stack=m;let E=await c(f,t,e,r);E&&i.set(F,E)}catch(E){if(globalThis.PRETTIER_DEBUG)throw E}e.stack=d;function f(c,F){return ki(c,F,r,n)}function p(){let{node:c}=e;if(c===null||typeof c!="object"||s(e))return;for(let m of D(c))Array.isArray(c[m])?e.each(p,m):e.call(p,m);let F=o(e,r);if(F){if(typeof F=="function"){l.push({print:F,node:c,pathStack:[...e.stack]});return}i.set(c,F)}}}async function ki(e,t,r,n){let i=await se({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await ce(e,i),o=await n(u,i);return Ze(o)}function Li(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:u,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=i(s),D=u(s);for(let l of n)i(l)>=a&&u(l)<=D&&o.add(l);return r.slice(a,D)}var zn=Li;async function Ye(e,t){({ast:e}=await Qt(e,t));let r=new Map,n=new Mr(e),i=tn(t),u=new Map;await Un(n,s,t,Ye,u);let o=await Gn(n,t,s,void 0,u);return en(t),o;function s(D,l){return D===void 0||D===n?a(l):Array.isArray(D)?n.call(()=>a(l),...D):n.call(()=>a(l),D)}function a(D){i(n);let l=n.node;if(l==null)return"";let d=l&&typeof l=="object"&&D===void 0;if(d&&r.has(l))return r.get(l);let f=Gn(n,t,s,D,u);return d&&r.set(l,f),f}}function Gn(e,t,r,n,i){var a;let{node:u}=e,{printer:o}=t,s;return(a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=zn(e,t):i.has(u)?s=i.get(u):s=o.print(e,t,r,n),u===t.cursorNode&&(s=Qe(s,D=>[ve,D,ve])),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=Qr(e,s,t)),s}async function Qt(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,Jr(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function Pi(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,u=X(t.printer.getVisitorKeys),o=a=>n(a)<=r&&i(a)>=r,s=e;for(let a of Ur(e,{getVisitorKeys:u,filter:o}))s=a;return s}var Kn=Pi;function Ii(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=X(n),u=r.ignoredProperties??new Set;return o(e);function o(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(f=>o(f,a)).filter(Boolean);let D={},l=new Set(i(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||u.has(f)||(l.has(f)?D[f]=o(s[f],s):D[f]=s[f]);let d=r(s,D,a);if(d!==null)return d??D}}var qn=Ii;var Ri=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return n}return-1}},Jn=Ri;var Yi=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function ji(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>Qn.has(i.type)&&n.has(i))}function Xn(e){let t=Jn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function Hi(e,t,{locStart:r,locEnd:n}){let i=e.node,u=t.node;if(i===u)return{startNode:i,endNode:u};let o=r(e.node);for(let a of Xn(t.parentNodes))if(r(a)>=o)u=a;else break;let s=n(t.node);for(let a of Xn(e.parentNodes)){if(n(a)<=s)i=a;else break;if(i===u)break}return{startNode:i,endNode:u}}function er(e,t,r,n,i=[],u){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,i).search(/\S/u),a=s===-1;if(!a)for(n+=s;i>n&&!/\S/u.test(e[i-1]);--i);let D=er(r,n,t,(p,c)=>Zn(t,p,c),[],"rangeStart"),l=a?D:er(r,i,t,p=>Zn(t,p),[],"rangeEnd");if(!D||!l)return{rangeStart:0,rangeEnd:0};let d,f;if(Yi(t)){let p=ji(D,l);d=p,f=p}else({startNode:d,endNode:f}=Hi(D,l,t));return{rangeStart:Math.min(u(d),u(f)),rangeEnd:Math.max(o(d),o(f))}}var uu="\uFEFF",tu=Symbol("cursor");async function iu(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await ce(e,t);t.cursorOffset>=0&&(t.cursorNode=Kn(n,t));let u=await Ye(n,t,r);r>0&&(u=Je([q,u],r,t.tabWidth));let o=Fe(u,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a)),o.formatted=a+Be(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,l,d,f;if(t.cursorNode&&o.cursorNodeText?(a=t.locStart(t.cursorNode),D=i.slice(a,t.locEnd(t.cursorNode)),l=t.cursorOffset-a,d=o.cursorNodeStart,f=o.cursorNodeText):(a=0,D=i,l=t.cursorOffset,d=0,f=o.formatted),D===f)return{formatted:o.formatted,cursorOffset:d+l,comments:s};let p=D.split("");p.splice(l,0,tu);let c=f.split(""),F=dr(p,c),m=d;for(let E of F)if(E.removed){if(E.value.includes(tu))break}else m+=E.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function $i(e,t){let{ast:r,text:n}=await ce(e,t),{rangeStart:i,rangeEnd:u}=eu(n,t,r),o=n.slice(i,u),s=Math.min(i,n.lastIndexOf(` -`,i)+1),a=n.slice(s,i).match(/^\s*/u)[0],D=me(a,t.tabWidth),l=await iu(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=u?t.cursorOffset-i:-1,endOfLine:"lf"},D),d=l.formatted.trimEnd(),{cursorOffset:f}=t;f>u?f+=d.length-o.length:l.cursorOffset>=0&&(f=l.cursorOffset+i);let p=n.slice(0,i)+d+n.slice(u);if(t.endOfLine!=="lf"){let c=Be(t.endOfLine);f>=0&&c===`\r -`&&(f+=wt(p.slice(0,f),` -`)),p=ne(!1,p,` -`,c)}return{formatted:p,cursorOffset:f,comments:l.comments}}function tr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function ru(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=tr(e,r,-1),n=tr(e,n,0),i=tr(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function ou(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u}=ru(e,t),o=e.charAt(0)===uu;if(o&&(e=e.slice(1),r--,n--,i--),u==="auto"&&(u=Fr(e)),e.includes("\r")){let s=a=>wt(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),i-=s(i),e=mr(e)}return{hasBOM:o,text:e,options:ru(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:u})}}async function nu(e,t){let r=await ht(t);return!r.hasPragma||r.hasPragma(e)}async function rr(e,t){let{hasBOM:r,text:n,options:i}=ou(e,await se(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await nu(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return i.rangeStart>0||i.rangeEnd=0&&u.cursorOffset++),u}async function su(e,t,r){let{text:n,options:i}=ou(e,await se(t)),u=await ce(n,i);return r&&(r.preprocessForPrint&&(u.ast=await Qt(u.ast,i)),r.massage&&(u.ast=qn(u.ast,i))),u}async function au(e,t){t=await se(t);let r=await Ye(e,t);return Fe(r,t)}async function Du(e,t){let r=Or(e),{formatted:n}=await rr(r,{...t,parser:"__js_expression"});return n}async function lu(e,t){t=await se(t);let{ast:r}=await ce(e,t);return Ye(r,t)}async function cu(e,t){return Fe(e,await se(t))}var nr={};We(nr,{builders:()=>Ui,printer:()=>zi,utils:()=>Gi});var Ui={join:be,line:Ke,softline:vr,hardline:q,literalline:qe,group:xt,conditionalGroup:Ar,fill:Ge,lineSuffix:_e,lineSuffixBoundary:_r,cursor:ve,breakParent:de,ifBreak:Br,trim:xr,indent:De,indentIfBreak:wr,align:ae,addAlignmentToDoc:Je,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:xe,literallineWithoutBreakParent:vt,label:br,concat:e=>e},zi={printDocToString:Fe},Gi={willBreak:Ir,traverseDoc:we,findInDoc:Xe,mapDoc:Ne,removeLines:Yr,stripTrailingHardline:Ze,replaceEndOfLine:jr,canBreak:Hr};var fu="3.3.3";var ir={};We(ir,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>ie,getAlignmentSize:()=>me,getIndentSize:()=>pu,getMaxContinuousCount:()=>du,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>io,getStringWidth:()=>Oe,hasNewline:()=>V,hasNewlineInRange:()=>mu,hasSpaces:()=>Eu,isNextLineEmpty:()=>Do,isNextLineEmptyAfterIndex:()=>gt,isPreviousLineEmpty:()=>so,makeString:()=>hu,skip:()=>Ee,skipEverythingButNewLine:()=>nt,skipInlineComment:()=>Ce,skipNewline:()=>M,skipSpaces:()=>T,skipToLineEnd:()=>rt,skipTrailingComment:()=>ge,skipWhitespace:()=>zr});function Ki(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,i.length/t.length),0)}var du=Qi;function eo(e,t){let r=je(e,t);return r===!1?"":e.charAt(r)}var Fu=eo;function to(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+u+t}var hu=no;function uo(e,t,r){return je(e,r(t))}function io(e,t){return arguments.length===2||typeof t=="number"?je(e,t):uo(...arguments)}function oo(e,t,r){return Le(e,r(t))}function so(e,t){return arguments.length===2||typeof t=="number"?Le(e,t):oo(...arguments)}function ao(e,t,r){return gt(e,r(t))}function Do(e,t){return arguments.length===2||typeof t=="number"?gt(e,t):ao(...arguments)}function fe(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var Cu=fe(rr);async function gu(e,t){let{formatted:r}=await Cu(e,{...t,cursorOffset:-1});return r}async function lo(e,t){return await gu(e,t)===e}var co=fe(it,0),fo={parse:fe(su),formatAST:fe(au),formatDoc:fe(Du),printToDoc:fe(lu),printDocToString:fe(cu)};return ar(po);}); \ No newline at end of file +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function st({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of li(Object.assign({},...e.map(({options:i})=>i),cn)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(i=>!i.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Di(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(i=>{var o;return((o=i.defaultOptions)==null?void 0:o[u.name])!==void 0}).map(i=>[i.name,i.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Di(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let i of u.parsers)if(!n.has(i)){n.add(i);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,i)),s=u.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:i,description:s}}}}function li(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=y(!1,u.default,-1).value),t.push(u)}return t}var ci=e=>String(e).split(/[/\\]/u).pop();function fn(e,t){if(!t)return;let r=ci(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(u=>u.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(u=>r.endsWith(u)))}function fi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function di(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=fi(r,t.language)??fn(r,t.physicalFile)??fn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var dn=di;var oe={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>oe.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${oe.key(r)}: ${oe.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>oe.value({[e]:t})};var Mt=Ue(at(),1),mn=(e,t,{descriptor:r})=>{let n=[`${Mt.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Mt.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var ce=Ue(at(),1);var Dt=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ae=Symbol.for("vnopts.VALUE_UNCHANGED");var hn=" ".repeat(2),Cn=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(En(e,t,n,r.descriptor)),u&&i.push([En(e,t,u.title,r.descriptor)].concat(u.values.map(o=>gn(o,r.loggerPrintWidth))).join(` +`)),yn(i,r.loggerPrintWidth)};function En(e,t,r,n){return[`Invalid ${ce.default.red(n.key(e))} value.`,`Expected ${ce.default.blue(r)},`,`but received ${t===Dt?ce.default.gray("nothing"):ce.default.red(n.value(t))}.`].join(" ")}function gn({text:e,list:t},r){let n=[];return e&&n.push(`- ${ce.default.blue(e)}`),t&&n.push([`- ${ce.default.blue(t.title)}:`].concat(t.values.map(u=>gn(u,r-hn.length).replace(/^|\n/g,`$&${hn}`))).join(` +`)),yn(n,r)}function yn(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,i]=e.map(o=>o.split(` +`,1)[0].length);return u>t&&u>i?n:r}var zt=Ue(at(),1);var Ut=[],An=[];function Vt(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let i=0;for(;is?D>s?s+1:D:D>a?a+1:D;return s}var lt=(e,t,{descriptor:r,logger:n,schemas:u})=>{let i=[`Ignored unknown option ${zt.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(u).sort().find(s=>Vt(e,s)<3);o&&i.push(`Did you mean ${zt.default.blue(r.key(o))}?`),n.warn(i.join(" "))};var pi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Fi(e,t){let r=new e(t),n=Object.create(r);for(let u of pi)u in t&&(n[u]=mi(t[u],r,x.prototype[u].length));return n}var x=class{static create(t){return Fi(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return Ae}};function mi(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var ct=class extends x{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var ft=class extends x{expected(){return"anything"}validate(){return!0}};var dt=class extends x{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let u of t){let i=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let u of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let u of t){let i=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);n.push(...i.map(vn))}return n}redirect(t,r){let n=[],u=[];for(let i of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in o&&n.push(o.remain),u.push(...o.redirect.map(vn))}return n.length===0?{redirect:u}:{redirect:u,remain:n}}overlap(t,r){return t.concat(r)}};function vn({from:e,to:t}){return{from:[e],to:t}}var pt=class extends x{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function wn(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function _n(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function xn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function bn(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function Nn(e){return e===Math.floor(e)}function On(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Sn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Gt(e){return e===void 0?{}:e}function Kt(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return hi((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Kt)}}:{text:t}}function Jt(e,t){return e===!0?!0:e===!1?{value:t}:e}function qt(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Bn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ft(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Bn(r,t)):[Bn(e,t)]}function Xt(e,t){let r=Ft(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function hi(e,t){if(!e)throw new Error(t)}var mt=class extends x{constructor(t){super(t),this._choices=_n(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(On).map(t.value),n=r.slice(0,-2),u=r.slice(-2);return{text:n.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var ht=class extends x{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var Et=class extends ht{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&Nn(t)}};var je=class extends x{expected(){return"a string"}validate(t){return typeof t=="string"}};var Tn=oe,kn=lt,Ln=Cn,Pn=mn;var Ct=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:u=80,descriptor:i=Tn,unknown:o=kn,invalid:s=Ln,deprecated:a=Pn,missing:D=()=>!1,required:l=()=>!1,preprocess:p=d=>d,postprocess:f=()=>Ae}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:u,schemas:wn(t,"name"),normalizeDefaultResult:Gt,normalizeExpectedResult:Kt,normalizeDeprecatedResult:qt,normalizeForwardResult:Ft,normalizeRedirectResult:Xt,normalizeValidateResult:Jt},this._unknownHandler=o,this._invalidHandler=Sn(s),this._deprecatedHandler=a,this._identifyMissing=(d,c)=>!(d in c)||D(d,c),this._identifyRequired=l,this._preprocess=p,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=xn()}normalize(t){let r={},u=[this._preprocess(t,this._utils)],i=()=>{for(;u.length!==0;){let o=u.shift(),s=this._applyNormalization(o,r);u.push(...s)}};i();for(let o of Object.keys(this._utils.schemas)){let s=this._utils.schemas[o];if(!(o in r)){let a=Gt(s.default(this._utils));"value"in a&&u.push({[o]:a.value})}}i();for(let o of Object.keys(this._utils.schemas)){if(!(o in r))continue;let s=this._utils.schemas[o],a=r[o],D=s.postprocess(a,this._utils);D!==Ae&&(this._applyValidation(D,o,s),r[o]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:u,unknownKeys:i}=this._partitionOptionKeys(t);for(let o of u){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils);this._applyValidation(a,o,s);let D=({from:d,to:c})=>{n.push(typeof c=="string"?{[c]:d}:{[c.key]:c.value})},l=({value:d,redirectTo:c})=>{let F=qt(s.deprecated(d,this._utils),a,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,c,this._utils));else for(let{value:m}of F){let h={key:o,value:m};if(!this._hasDeprecationWarned(h)){let C=typeof c=="string"?{key:c,value:m}:c;this._utils.logger.warn(this._deprecatedHandler(h,C,this._utils))}}};Ft(s.forward(a,this._utils),a).forEach(D);let f=Xt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let d=f.remain;r[o]=o in r?s.overlap(r[o],d,this._utils):d,l({value:d})}for(let{from:d,to:c}of f.redirect)l({value:d,redirectTo:c})}for(let o of i){let s=t[o];this._applyUnknownHandler(o,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,Dt,this._utils)}_partitionOptionKeys(t){let[r,n]=bn(Object.keys(t).filter(u=>!this._identifyMissing(u,t)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let u=Jt(n.validate(t,this._utils),t);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(t,r,n,u){let i=this._unknownHandler(t,r,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let s=i[o];o in this._utils.schemas?u(o,s):n[o]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==Ae){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let i of n){let o=r.override[i];this._applyValidation(o,i,this._utils.schemas[i]),t[i]=o}for(let i of u){let o=r.override[i];this._applyUnknownHandler(i,o,t,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),t[s]=a})}}}}};var Qt;function Ci(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:i,descriptor:o}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=oe;let s=u?Array.isArray(u)?(f,d)=>u.includes(f)?{[f]:d}:void 0:(f,d)=>({[f]:d}):(f,d,c)=>{let{_:F,...m}=c.schemas;return lt(f,d,{...c,schemas:m})},a=gi(t,{isCLI:n,FlagSchema:i}),D=new Ct(a,{logger:r,unknown:s,descriptor:o}),l=r!==!1;l&&Qt&&(D._hasDeprecationWarned=Qt);let p=D.normalize(e);return l&&(Qt=D._hasDeprecationWarned),p}function gi(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(ft.create({name:"_"}));for(let u of e)n.push(yi(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(ct.create({name:u.alias,sourceName:u.name}));return n}function yi(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,i={name:u},o,s={};switch(e.type){case"int":o=Et,t&&(i.preprocess=Number);break;case"string":o=je;break;case"choice":o=mt,i.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=pt;break;case"flag":o=n,i.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=je;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(a,D,l)=>e.exception(a)||D.validate(a,l):i.validate=(a,D,l)=>a===void 0||D.validate(a,l),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=i.preprocess||(D=>D);i.preprocess=(D,l,p)=>l.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),p)}return e.array?dt.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(i)}):o.create({...i,...s})}var In=Ci;var Ai=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return u}}},Zt=Ai;function er(e,t){if(!t)throw new Error("parserName is required.");let r=Zt(!1,e,u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Re(n)}function Rn(e,t){if(!t)throw new Error("astFormat is required.");let r=Zt(!1,e,u=>u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Re(n)}function gt({plugins:e,parser:t}){let r=er(e,t);return tr(r,t)}function tr(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Yn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var jn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function vi(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=dn(r,{physicalFile:r.filepath}),!r.parser)throw new Ye(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ye("No parser and no file path given, couldn't infer a parser.");let n=st({plugins:e.plugins,showDeprecated:!0}).options,u={...jn,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=er(r.plugins,r.parser),o=await tr(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(p=i.printers)!=null&&p[o.astFormat]?i:Rn(r.plugins,o.astFormat),a=await Yn(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},l={...u,...D};for(let[f,d]of Object.entries(l))(r[f]===null||r[f]===void 0)&&(r[f]=d);return r.parser==="json"&&(r.trailingComma="none"),In(r,n,{passThrough:Object.keys(jn),...t})}var se=vi;var $n=Ue(Wn(),1);async function xi(e,t){let r=await gt(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(i){bi(i,e)}return{text:n,ast:u}}function bi(e,t){let{loc:r}=e;if(r){let n=(0,$n.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var fe=xi;async function Mn(e,t,r,n,u){let{embeddedLanguageFormatting:i,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||i!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=q(o.getVisitorKeys??a),l=[];d();let p=e.stack;for(let{print:c,node:F,pathStack:m}of l)try{e.stack=m;let h=await c(f,t,e,r);h&&u.set(F,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=p;function f(c,F){return Ni(c,F,r,n)}function d(){let{node:c}=e;if(c===null||typeof c!="object"||s(e))return;for(let m of D(c))Array.isArray(c[m])?e.each(d,m):e.call(d,m);let F=o(e,r);if(F){if(typeof F=="function"){l.push({print:F,node:c,pathStack:[...e.stack]});return}u.set(c,F)}}}async function Ni(e,t,r,n){let u=await se({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await fe(e,u),o=await n(i,u);return tt(o)}function Oi(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:i,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=u(s),D=i(s);for(let l of n)u(l)>=a&&i(l)<=D&&o.add(l);return r.slice(a,D)}var Un=Oi;async function He(e,t){({ast:e}=await nr(e,t));let r=new Map,n=new Jr(e),u=ln(t),i=new Map;await Mn(n,s,t,He,i);let o=await Vn(n,t,s,void 0,i);if(Dn(t),t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Z,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Z];return o;function s(D,l){return D===void 0||D===n?a(l):Array.isArray(D)?n.call(()=>a(l),...D):n.call(()=>a(l),D)}function a(D){u(n);let l=n.node;if(l==null)return"";let p=l&&typeof l=="object"&&D===void 0;if(p&&r.has(l))return r.get(l);let f=Vn(n,t,s,D,i);return p&&r.set(l,f),f}}function Vn(e,t,r,n,u){var a;let{node:i}=e,{printer:o}=t,s;switch((a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=Un(e,t):u.has(i)?s=u.get(i):s=o.print(e,t,r,n),i){case t.cursorNode:s=me(s,D=>[Z,D,Z]);break;case t.nodeBeforeCursor:s=me(s,D=>[D,Z]);break;case t.nodeAfterCursor:s=me(s,D=>[Z,D]);break}return o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=an(e,s,t)),s}async function nr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,un(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function Si(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,i=q(t.printer.getVisitorKeys),o=d=>n(d)<=r&&u(d)>=r,s=e,a=[e];for(let d of Qr(e,{getVisitorKeys:i,filter:o}))a.push(d),s=d;if(Zr(s,{getVisitorKeys:i}))return{cursorNode:s};let D,l,p=-1,f=Number.POSITIVE_INFINITY;for(;a.length>0&&(D===void 0||l===void 0);){s=a.pop();let d=D!==void 0,c=l!==void 0;for(let F of ge(s,{getVisitorKeys:i})){if(!d){let m=u(F);m<=r&&m>p&&(D=F,p=m)}if(!c){let m=n(F);m>=r&&mo(f,a)).filter(Boolean);let D={},l=new Set(u(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||i.has(f)||(l.has(f)?D[f]=o(s[f],s):D[f]=s[f]);let p=r(s,D,a);if(p!==null)return p??D}}var Gn=Ti;var ki=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return n}return-1}},Kn=ki;var Li=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function Pi(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>Xn.has(u.type)&&n.has(u))}function Jn(e){let t=Kn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function Ii(e,t,{locStart:r,locEnd:n}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let o=r(e.node);for(let a of Jn(t.parentNodes))if(r(a)>=o)i=a;else break;let s=n(t.node);for(let a of Jn(e.parentNodes)){if(n(a)<=s)u=a;else break;if(u===i)break}return{startNode:u,endNode:i}}function ur(e,t,r,n,u=[],i){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,u).search(/\S/u),a=s===-1;if(!a)for(n+=s;u>n&&!/\S/u.test(e[u-1]);--u);let D=ur(r,n,t,(d,c)=>qn(t,d,c),[],"rangeStart"),l=a?D:ur(r,u,t,d=>qn(t,d),[],"rangeEnd");if(!D||!l)return{rangeStart:0,rangeEnd:0};let p,f;if(Li(t)){let d=Pi(D,l);p=d,f=d}else({startNode:p,endNode:f}=Ii(D,l,t));return{rangeStart:Math.min(i(p),i(f)),rangeEnd:Math.max(o(p),o(f))}}var ru="\uFEFF",Zn=Symbol("cursor");async function nu(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await fe(e,t);t.cursorOffset>=0&&(t={...t,...zn(n,t)});let i=await He(n,t,r);r>0&&(i=Ze([K,i],r,t.tabWidth));let o=Ee(i,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>a.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=a+xe(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,l,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(l=o.cursorNodeStart,p=o.cursorNodeText,t.cursorNode)a=t.locStart(t.cursorNode),D=u.slice(a,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let h=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):u.length;D=u.slice(a,h)}else a=0,D=u,l=0,p=o.formatted;let f=t.cursorOffset-a;if(D===p)return{formatted:o.formatted,cursorOffset:l+f,comments:s};let d=D.split("");d.splice(f,0,Zn);let c=p.split(""),F=Cr(d,c),m=l;for(let h of F)if(h.removed){if(h.value.includes(Zn))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function ji(e,t){let{ast:r,text:n}=await fe(e,t),{rangeStart:u,rangeEnd:i}=Qn(n,t,r),o=n.slice(u,i),s=Math.min(u,n.lastIndexOf(` +`,u)+1),a=n.slice(s,u).match(/^\s*/u)[0],D=Ce(a,t.tabWidth),l=await nu(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},D),p=l.formatted.trimEnd(),{cursorOffset:f}=t;f>i?f+=p.length-o.length:l.cursorOffset>=0&&(f=l.cursorOffset+u);let d=n.slice(0,u)+p+n.slice(i);if(t.endOfLine!=="lf"){let c=xe(t.endOfLine);f>=0&&c===`\r +`&&(f+=Ot(d.slice(0,f),` +`)),d=ne(!1,d,` +`,c)}return{formatted:d,cursorOffset:f,comments:l.comments}}function ir(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function eu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=ir(e,r,-1),n=ir(e,n,0),u=ir(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function uu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i}=eu(e,t),o=e.charAt(0)===ru;if(o&&(e=e.slice(1),r--,n--,u--),i==="auto"&&(i=gr(e)),e.includes("\r")){let s=a=>Ot(e.slice(0,Math.max(a,0)),`\r +`);r-=s(r),n-=s(n),u-=s(u),e=yr(e)}return{hasBOM:o,text:e,options:eu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i})}}async function tu(e,t){let r=await gt(t);return!r.hasPragma||r.hasPragma(e)}async function or(e,t){let{hasBOM:r,text:n,options:u}=uu(e,await se(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await tu(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return u.rangeStart>0||u.rangeEnd=0&&i.cursorOffset++),i}async function iu(e,t,r){let{text:n,options:u}=uu(e,await se(t)),i=await fe(n,u);return r&&(r.preprocessForPrint&&(i.ast=await nr(i.ast,u)),r.massage&&(i.ast=Gn(i.ast,u))),i}async function ou(e,t){t=await se(t);let r=await He(e,t);return Ee(r,t)}async function su(e,t){let r=Pr(e),{formatted:n}=await or(r,{...t,parser:"__js_expression"});return n}async function au(e,t){t=await se(t);let{ast:r}=await fe(e,t);return He(r,t)}async function Du(e,t){return Ee(e,await se(t))}var sr={};Bt(sr,{builders:()=>Wi,printer:()=>$i,utils:()=>Mi});var Wi={join:Se,line:Xe,softline:kr,hardline:K,literalline:Qe,group:Tt,conditionalGroup:xr,fill:br,lineSuffix:Ne,lineSuffixBoundary:Sr,cursor:Z,breakParent:Fe,ifBreak:Nr,trim:Tr,indent:le,indentIfBreak:Or,align:De,addAlignmentToDoc:Ze,markAsRoot:wr,dedentToRoot:Br,dedent:_r,hardlineWithoutBreakParent:Oe,literallineWithoutBreakParent:kt,label:Lr,concat:e=>e},$i={printDocToString:Ee},Mi={willBreak:$r,traverseDoc:be,findInDoc:et,mapDoc:Le,removeLines:Ur,stripTrailingHardline:tt,replaceEndOfLine:Vr,canBreak:zr};var lu="3.4.1";var Dr={};Bt(Dr,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>ie,getAlignmentSize:()=>Ce,getIndentSize:()=>cu,getMaxContinuousCount:()=>fu,getNextNonSpaceNonCommentCharacter:()=>du,getNextNonSpaceNonCommentCharacterIndex:()=>ro,getPreferredQuote:()=>Fu,getStringWidth:()=>Te,hasNewline:()=>$,hasNewlineInRange:()=>mu,hasSpaces:()=>hu,isNextLineEmpty:()=>oo,isNextLineEmptyAfterIndex:()=>yt,isPreviousLineEmpty:()=>uo,makeString:()=>Eu,skip:()=>ye,skipEverythingButNewLine:()=>it,skipInlineComment:()=>ve,skipNewline:()=>W,skipSpaces:()=>S,skipToLineEnd:()=>ut,skipTrailingComment:()=>Be,skipWhitespace:()=>en});function Ui(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var fu=Ji;function qi(e,t){let r=We(e,t);return r===!1?"":e.charAt(r)}var du=qi;var At="'",pu='"';function Xi(e,t){let r=t===!0||t===At?At:pu,n=r===At?pu:At,u=0,i=0;for(let o of e)o===r?u++:o===n&&i++;return u>i?n:r}var Fu=Xi;function Qi(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+i+t}var Eu=eo;function to(e,t,r){return We(e,r(t))}function ro(e,t){return arguments.length===2||typeof t=="number"?We(e,t):to(...arguments)}function no(e,t,r){return Ie(e,r(t))}function uo(e,t){return arguments.length===2||typeof t=="number"?Ie(e,t):no(...arguments)}function io(e,t,r){return yt(e,r(t))}function oo(e,t){return arguments.length===2||typeof t=="number"?yt(e,t):io(...arguments)}function de(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var Cu=de(or);async function gu(e,t){let{formatted:r}=await Cu(e,{...t,cursorOffset:-1});return r}async function so(e,t){return await gu(e,t)===e}var ao=de(st,0),Do={parse:de(iu),formatAST:de(ou),formatDoc:de(su),printToDoc:de(au),printDocToString:de(Du)};return _u(lo);}); \ No newline at end of file diff --git a/node_modules/prettier/standalone.mjs b/node_modules/prettier/standalone.mjs index 0541cb67..417805c9 100644 --- a/node_modules/prettier/standalone.mjs +++ b/node_modules/prettier/standalone.mjs @@ -1,35 +1,39 @@ -var yu=Object.create;var He=Object.defineProperty;var Au=Object.getOwnPropertyDescriptor;var Bu=Object.getOwnPropertyNames;var wu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var sr=e=>{throw TypeError(e)};var _u=(e,t)=>()=>(e&&(t=e(e=0)),t);var At=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),We=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},ar=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bu(t))!xu.call(e,o)&&o!==r&&He(e,o,{get:()=>t[o],enumerable:!(n=Au(t,o))||n.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?yu(wu(e)):{},ar(t||!e||!e.__esModule?He(r,"default",{value:e,enumerable:!0}):r,e)),vu=e=>ar(He({},"__esModule",{value:!0}),e);var bu=(e,t,r)=>t.has(e)||sr("Cannot "+r);var Dr=(e,t,r)=>t.has(e)?sr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var pe=(e,t,r)=>(bu(e,t,"access private method"),r);var it=At((ia,sn)=>{"use strict";var on=new Proxy(String,{get:()=>on});sn.exports=on});var Tn={};We(Tn,{default:()=>_o,shouldHighlight:()=>xo});var xo,_o,kn=_u(()=>{xo=()=>!1,_o=String});var Pn=At((bD,Xt)=>{var g=String,Ln=function(){return{isColorSupported:!1,reset:g,bold:g,dim:g,italic:g,underline:g,inverse:g,hidden:g,strikethrough:g,black:g,red:g,green:g,yellow:g,blue:g,magenta:g,cyan:g,white:g,gray:g,bgBlack:g,bgRed:g,bgGreen:g,bgYellow:g,bgBlue:g,bgMagenta:g,bgCyan:g,bgWhite:g}};Xt.exports=Ln();Xt.exports.createColors=Ln});var $n=At(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.codeFrameColumns=Mn;Ct.default=To;var In=(kn(),vu(Tn)),Hn=vo(Pn(),!0);function Wn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Wn=function(n){return n?r:t})(e)}function vo(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Wn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}var bo=Hn.default,Rn=(e,t)=>r=>e(t(r)),Zt;function Oo(e){if(e){var t;return(t=Zt)!=null||(Zt=(0,Hn.createColors)(!0)),Zt}return bo}var Yn=!1;function So(e){return{gutter:e.gray,marker:Rn(e.red,e.bold),message:Rn(e.red,e.bold)}}var jn=/\r\n|[\n\r\u2028\u2029]/;function No(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:u=2,linesBelow:i=3}=r||{},s=n.line,a=n.column,D=o.line,l=o.column,d=Math.max(s-(u+1),0),f=Math.min(t.length,D+i);s===-1&&(d=0),D===-1&&(f=t.length);let p=D-s,c={};if(p)for(let F=0;F<=p;F++){let m=F+s;if(!a)c[m]=!0;else if(F===0){let E=t[m-1].length;c[m]=[a,E-a+1]}else if(F===p)c[m]=[0,l];else{let E=t[m-F].length;c[m]=[0,E]}}else a===l?a?c[s]=[a,0]:c[s]=!0:c[s]=[a,l-a];return{start:d,end:f,markerLines:c}}function Mn(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,In.shouldHighlight)(r),o=Oo(r.forceColor),u=So(o),i=(F,m)=>n?F(m):m,s=e.split(jn),{start:a,end:D,markerLines:l}=No(t,s,r),d=t.start&&typeof t.start.column=="number",f=String(D).length,c=(n?(0,In.default)(e,r):e).split(jn,D).slice(a,D).map((F,m)=>{let E=a+1+m,w=` ${` ${E}`.slice(-f)} |`,h=l[E],C=!l[E+1];if(h){let k="";if(Array.isArray(h)){let v=F.slice(0,Math.max(h[0]-1,0)).replace(/[^\t]/g," "),$=h[1]||1;k=[` - `,i(u.gutter,w.replace(/\d/g," "))," ",v,i(u.marker,"^").repeat($)].join(""),C&&r.message&&(k+=" "+i(u.message,r.message))}return[i(u.marker,">"),i(u.gutter,w),F.length>0?` ${F}`:"",k].join("")}else return` ${i(u.gutter,w)}${F.length>0?` ${F}`:""}`}).join(` -`);return r.message&&!d&&(c=`${" ".repeat(f+1)}${r.message} -${c}`),n?o.reset(c):c}function To(e,t,r,n={}){if(!Yn){Yn=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let i=new Error(u);i.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),Mn(e,{start:{column:r,line:t}},n)}});var ir={};We(ir,{__debug:()=>di,check:()=>fi,doc:()=>nr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>pi,util:()=>or,version:()=>fu});var Ou=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ne=Ou;function Z(){}Z.prototype={diff:function(t,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=o.callback;typeof o=="function"&&(u=o,o={}),this.options=o;var i=this;function s(h){return u?(setTimeout(function(){u(void 0,h)},0),!0):h}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var a=r.length,D=t.length,l=1,d=a+D;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var f=(n=o.timeout)!==null&&n!==void 0?n:1/0,p=Date.now()+f,c=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(c[0],r,t,0);if(c[0].oldPos+1>=D&&F+1>=a)return s([{value:this.join(r),count:r.length}]);var m=-1/0,E=1/0;function A(){for(var h=Math.max(m,-l);h<=Math.min(E,l);h+=2){var C=void 0,k=c[h-1],v=c[h+1];k&&(c[h-1]=void 0);var $=!1;if(v){var ye=v.oldPos-h;$=v&&0<=ye&&ye=D&&F+1>=a)return s(Su(i,C.lastComponent,r,t,i.useLongestToken));c[h]=C,C.oldPos+1>=D&&(E=Math.min(E,h-1)),F+1>=a&&(m=Math.max(m,h+1))}l++}if(u)(function h(){setTimeout(function(){if(l>d||Date.now()>p)return u();A()||h()},0)})();else for(;l<=d&&Date.now()<=p;){var w=A();if(w)return w}},addToPath:function(t,r,n,o){var u=t.lastComponent;return u&&u.added===r&&u.removed===n?{oldPos:t.oldPos+o,lastComponent:{count:u.count+1,added:r,removed:n,previousComponent:u.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:u}}},extractCommon:function(t,r,n,o){for(var u=r.length,i=n.length,s=t.oldPos,a=s-o,D=0;a+1F.length?E:F}),d.value=e.join(f)}else d.value=e.join(r.slice(D,D+d.count));D+=d.count,d.added||(l+=d.count)}}var c=u[a-1];return a>1&&typeof c.value=="string"&&(c.added||c.removed)&&e.equals("",c.value)&&(u[a-2].value+=c.value,u.pop()),u}var hi=new Z;var lr=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr=/\S/,fr=new Z;fr.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!cr.test(e)&&!cr.test(t)};fr.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r"u"?r:i}:n;return typeof e=="string"?e:JSON.stringify(Bt(e,null,null,o),o," ")};Ae.equals=function(e,t){return Z.prototype.equals.call(Ae,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Bt(e,t,r,n,o){t=t||[],r=r||[],n&&(e=n(o,e));var u;for(u=0;u=0?e.charAt(t+1)===` -`?"crlf":"cr":"lf"}function Be(e){switch(e){case"cr":return"\r";case"crlf":return`\r +var yu=Object.create;var vt=Object.defineProperty;var Au=Object.getOwnPropertyDescriptor;var vu=Object.getOwnPropertyNames;var Bu=Object.getPrototypeOf,wu=Object.prototype.hasOwnProperty;var cr=e=>{throw TypeError(e)};var fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bt=(e,t)=>{for(var r in t)vt(e,r,{get:t[r],enumerable:!0})},_u=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of vu(t))!wu.call(e,u)&&u!==r&&vt(e,u,{get:()=>t[u],enumerable:!(n=Au(t,u))||n.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?yu(Bu(e)):{},_u(t||!e||!e.__esModule?vt(r,"default",{value:e,enumerable:!0}):r,e));var xu=(e,t,r)=>t.has(e)||cr("Cannot "+r);var dr=(e,t,r)=>t.has(e)?cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var pe=(e,t,r)=>(xu(e,t,"access private method"),r);var st=fr((na,Fn)=>{"use strict";var pn=new Proxy(String,{get:()=>pn});Fn.exports=pn});var Wn=fr(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});function Bi(){return new Proxy({},{get:()=>e=>e})}var Hn=/\r\n|[\n\r\u2028\u2029]/;function wi(e,t,r){let n=Object.assign({column:0,line:-1},e.start),u=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},s=n.line,a=n.column,D=u.line,l=u.column,p=Math.max(s-(i+1),0),f=Math.min(t.length,D+o);s===-1&&(p=0),D===-1&&(f=t.length);let d=D-s,c={};if(d)for(let F=0;F<=d;F++){let m=F+s;if(!a)c[m]=!0;else if(F===0){let h=t[m-1].length;c[m]=[a,h-a+1]}else if(F===d)c[m]=[0,l];else{let h=t[m-F].length;c[m]=[0,h]}}else a===l?a?c[s]=[a,0]:c[s]=!0:c[s]=[a,l-a];return{start:p,end:f,markerLines:c}}function _i(e,t,r={}){let u=Bi(!1),i=e.split(Hn),{start:o,end:s,markerLines:a}=wi(t,i,r),D=t.start&&typeof t.start.column=="number",l=String(s).length,f=e.split(Hn,s).slice(o,s).map((d,c)=>{let F=o+1+c,h=` ${` ${F}`.slice(-l)} |`,C=a[F],v=!a[F+1];if(C){let E="";if(Array.isArray(C)){let g=d.slice(0,Math.max(C[0]-1,0)).replace(/[^\t]/g," "),j=C[1]||1;E=[` + `,u.gutter(h.replace(/\d/g," "))," ",g,u.marker("^").repeat(j)].join(""),v&&r.message&&(E+=" "+u.message(r.message))}return[u.marker(">"),u.gutter(h),d.length>0?` ${d}`:"",E].join("")}else return` ${u.gutter(h)}${d.length>0?` ${d}`:""}`}).join(` +`);return r.message&&!D&&(f=`${" ".repeat(l+1)}${r.message} +${f}`),f}rr.codeFrameColumns=_i});var lr={};Bt(lr,{__debug:()=>Do,check:()=>so,doc:()=>sr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>ao,util:()=>Dr,version:()=>lu});var bu=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ne=bu;function M(){}M.prototype={diff:function(t,r){var n,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=u.callback;typeof u=="function"&&(i=u,u={});var o=this;function s(E){return E=o.postProcess(E,u),i?(setTimeout(function(){i(E)},0),!0):E}t=this.castInput(t,u),r=this.castInput(r,u),t=this.removeEmpty(this.tokenize(t,u)),r=this.removeEmpty(this.tokenize(r,u));var a=r.length,D=t.length,l=1,p=a+D;u.maxEditLength!=null&&(p=Math.min(p,u.maxEditLength));var f=(n=u.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+f,c=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(c[0],r,t,0,u);if(c[0].oldPos+1>=D&&F+1>=a)return s(pr(o,c[0].lastComponent,r,t,o.useLongestToken));var m=-1/0,h=1/0;function C(){for(var E=Math.max(m,-l);E<=Math.min(h,l);E+=2){var g=void 0,j=c[E-1],b=c[E+1];j&&(c[E-1]=void 0);var X=!1;if(b){var ae=b.oldPos-E;X=b&&0<=ae&&ae=D&&F+1>=a)return s(pr(o,g.lastComponent,r,t,o.useLongestToken));c[E]=g,g.oldPos+1>=D&&(h=Math.min(h,E-1)),F+1>=a&&(m=Math.max(m,E+1))}l++}if(i)(function E(){setTimeout(function(){if(l>p||Date.now()>d)return i();C()||E()},0)})();else for(;l<=p&&Date.now()<=d;){var v=C();if(v)return v}},addToPath:function(t,r,n,u,i){var o=t.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===n?{oldPos:t.oldPos+u,lastComponent:{count:o.count+1,added:r,removed:n,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+u,lastComponent:{count:1,added:r,removed:n,previousComponent:o}}},extractCommon:function(t,r,n,u,i){for(var o=r.length,s=n.length,a=t.oldPos,D=a-u,l=0;D+1d.length?F:d}),p.value=e.join(f)}else p.value=e.join(r.slice(D,D+p.count));D+=p.count,p.added||(l+=p.count)}}return i}var Fo=new M;function Fr(e,t){var r;for(r=0;rt.length&&(r=e.length-t.length);var n=t.length;e.length0&&t[o]!=t[i];)i=u[i];t[o]==t[i]&&i++}i=0;for(var s=r;s0&&e[s]!=t[i];)i=u[i];e[s]==t[i]&&i++}return i}var Ve="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Ou=new RegExp("[".concat(Ve,"]+|\\s+|[^").concat(Ve,"]"),"ug"),Ge=new M;Ge.equals=function(e,t,r){return r.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()};Ge.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(t.intlSegmenter.segment(e),function(i){return i.segment})}else r=e.match(Ou)||[];var n=[],u=null;return r.forEach(function(i){/\s/.test(i)?u==null?n.push(i):n.push(n.pop()+i):/\s/.test(u)?n[n.length-1]==u?n.push(n.pop()+i):n.push(u+i):n.push(i),u=i}),n};Ge.join=function(e){return e.map(function(t,r){return r==0?t:t.replace(/^\s+/,"")}).join("")};Ge.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var r=null,n=null,u=null;return e.forEach(function(i){i.added?n=i:i.removed?u=i:((n||u)&&Er(r,u,n,i),r=i,n=null,u=null)}),(n||u)&&Er(r,u,n,null),e};function Er(e,t,r,n){if(t&&r){var u=t.value.match(/^\s*/)[0],i=t.value.match(/\s*$/)[0],o=r.value.match(/^\s*/)[0],s=r.value.match(/\s*$/)[0];if(e){var a=Fr(u,o);e.value=_t(e.value,o,a),t.value=we(t.value,a),r.value=we(r.value,a)}if(n){var D=mr(i,s);n.value=wt(n.value,s,D),t.value=Ue(t.value,D),r.value=Ue(r.value,D)}}else if(r)e&&(r.value=r.value.replace(/^\s*/,"")),n&&(n.value=n.value.replace(/^\s*/,""));else if(e&&n){var l=n.value.match(/^\s*/)[0],p=t.value.match(/^\s*/)[0],f=t.value.match(/\s*$/)[0],d=Fr(l,p);t.value=we(t.value,d);var c=mr(we(l,d),f);t.value=Ue(t.value,c),n.value=wt(n.value,l,c),e.value=_t(e.value,l,l.slice(0,l.length-c.length))}else if(n){var F=n.value.match(/^\s*/)[0],m=t.value.match(/\s*$/)[0],h=hr(m,F);t.value=Ue(t.value,h)}else if(e){var C=e.value.match(/\s*$/)[0],v=t.value.match(/^\s*/)[0],E=hr(C,v);t.value=we(t.value,E)}}var Su=new M;Su.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(Ve,"]+|[^\\S\\n\\r]+|[^").concat(Ve,"]"),"ug");return e.match(t)||[]};var Nt=new M;Nt.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` +`));var r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var u=0;u"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(bt(e,null,null,u),u," ")};_e.equals=function(e,t,r){return M.prototype.equals.call(_e,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),r)};function bt(e,t,r,n,u){t=t||[],r=r||[],n&&(e=n(u,e));var i;for(i=0;inew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Iu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(G(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Pu([...Ue].map(o=>`'${o}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var xt=class extends Error{name="InvalidDocError";constructor(t){super(Iu(t)),this.doc=t}},Q=xt;var Er={};function Ru(e,t,r,n){let o=[e];for(;o.length>0;){let u=o.pop();if(u===Er){r(o.pop());continue}r&&o.push(u,Er);let i=G(u);if(!i)throw new Q(u);if((t==null?void 0:t(u))!==!1)switch(i){case W:case S:{let s=i===W?u:u.parts;for(let a=s.length,D=a-1;D>=0;--D)o.push(s[D]);break}case _:o.push(u.flatContents,u.breakContents);break;case x:if(n&&u.expandedStates)for(let s=u.expandedStates.length,a=s-1;a>=0;--a)o.push(u.expandedStates[a]);else o.push(u.contents);break;case P:case L:case R:case N:case Y:o.push(u.contents);break;case U:case z:case I:case j:case B:case b:break;default:throw new Q(u)}}}var we=Ru;var hr=()=>{},K=hr,ze=hr;function De(e){return K(e),{type:L,contents:e}}function ae(e,t){return K(t),{type:P,contents:t,n:e}}function _t(e,t={}){return K(e),ze(t.expandedStates,!0),{type:x,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Cr(e){return ae(Number.NEGATIVE_INFINITY,e)}function gr(e){return ae({type:"root"},e)}function yr(e){return ae(-1,e)}function Ar(e,t){return _t(e[0],{...t,expandedStates:e})}function Ge(e){return ze(e),{type:S,parts:e}}function Br(e,t="",r={}){return K(e),t!==""&&K(t),{type:_,breakContents:e,flatContents:t,groupId:r.groupId}}function wr(e,t){return K(e),{type:R,contents:e,groupId:t.groupId,negate:t.negate}}function xe(e){return K(e),{type:Y,contents:e}}var xr={type:j},de={type:b},_r={type:I},_e={type:B,hard:!0},vt={type:B,hard:!0,literal:!0},Ke={type:B},vr={type:B,soft:!0},q=[_e,de],qe=[vt,de],ve={type:z};function be(e,t){K(e),ze(t);let r=[];for(let n=0;n0){for(let o=0;o0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${d})`}if(u.type===x){let l=[];u.break&&u.break!=="propagated"&&l.push("shouldBreak: true"),u.id&&l.push(`id: ${o(u.id)}`);let d=l.length>0?`, { ${l.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(f=>n(f)).join(",")}]${d})`:`group(${n(u.contents)}${d})`}if(u.type===S)return`fill([${u.parts.map(l=>n(l)).join(", ")}])`;if(u.type===Y)return"lineSuffix("+n(u.contents)+")";if(u.type===j)return"lineSuffixBoundary";if(u.type===N)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;throw new Error("Unknown doc type "+u.type)}function o(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in t)return t[u];let i=u.description||"symbol";for(let s=0;;s++){let a=i+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[u]=`Symbol.for(${JSON.stringify(a)})`}}}var Yu=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Yu;var Sr=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u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A]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Nr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Tr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var kr=e=>!(Nr(e)||Tr(e));var ju=/[^\x20-\x7F]/u;function Hu(e){if(!e)return 0;if(!ju.test(e))return e.length;e=e.replace(Sr()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=kr(n)?1:2)}return t}var Oe=Hu;function Ne(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=o(u);return r.set(u,i),i}function o(u){switch(G(u)){case W:return t(u.map(n));case S:return t({...u,parts:u.parts.map(n)});case _:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case x:{let{expandedStates:i,contents:s}=u;return i?(i=i.map(n),s=i[0]):s=n(s),t({...u,contents:s,expandedStates:i})}case P:case L:case R:case N:case Y:return t({...u,contents:n(u.contents)});case U:case z:case I:case j:case B:case b:return t(u);default:throw new Q(u)}}}function Xe(e,t,r){let n=r,o=!1;function u(i){if(o)return!1;let s=t(i);s!==void 0&&(o=!0,n=s)}return we(e,u),n}function Wu(e){if(e.type===x&&e.break||e.type===B&&e.hard||e.type===b)return!0}function Ir(e){return Xe(e,Wu,!1)}function Lr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Rr(e){let t=new Set,r=[];function n(u){if(u.type===b&&Lr(r),u.type===x){if(r.push(u),t.has(u))return!1;t.add(u)}}function o(u){u.type===x&&r.pop().break&&Lr(r)}we(e,n,o,!0)}function Mu(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===_?e.flatContents:e}function Yr(e){return Ne(e,Mu)}function Pr(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===B&&y(!1,e,-1).type===b;)e.length-=2;if(e.length>0){let t=Se(y(!1,e,-1));e[e.length-1]=t}return e}function Se(e){switch(G(e)){case L:case R:case x:case Y:case N:{let t=Se(e.contents);return{...e,contents:t}}case _:return{...e,breakContents:Se(e.breakContents),flatContents:Se(e.flatContents)};case S:return{...e,parts:Pr(e.parts)};case W:return Pr(e);case U:return e.replace(/[\n\r]*$/u,"");case P:case z:case I:case j:case B:case b:break;default:throw new Q(e)}return e}function Ze(e){return Se(Vu(e))}function $u(e){switch(G(e)){case S:if(e.parts.every(t=>t===""))return"";break;case x:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case P:case L:case R:case Y:if(!e.contents)return"";break;case _:if(!e.flatContents&&!e.breakContents)return"";break;case W:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...o)}return t.length===0?"":t.length===1?t[0]:t}case U:case z:case I:case j:case B:case N:case b:break;default:throw new Q(e)}return e}function Vu(e){return Ne(e,t=>$u(t))}function jr(e,t=qe){return Ne(e,r=>typeof r=="string"?be(t,r.split(` -`)):r)}function Uu(e){if(e.type===B)return!0}function Hr(e){return Xe(e,Uu,!1)}function Qe(e,t){return e.type===N?{...e,contents:t(e.contents)}:t(e)}var H=Symbol("MODE_BREAK"),J=Symbol("MODE_FLAT"),Te=Symbol("cursor");function Wr(){return{value:"",length:0,queue:[]}}function zu(e,t){return bt(e,{type:"indent"},t)}function Gu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Wr():t<0?bt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:bt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function bt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],o="",u=0,i=0,s=0;for(let c of n)switch(c.type){case"indent":l(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":l(),o+=c.n,u+=c.n.length;break;case"numberAlign":i+=1,s+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return f(),{...e,value:o,length:u,queue:n};function a(c){o+=" ".repeat(c),u+=r.tabWidth*c}function D(c){o+=" ".repeat(c),u+=c}function l(){r.useTabs?d():f()}function d(){i>0&&a(i),p()}function f(){s>0&&D(s),p()}function p(){i=0,s=0}}function Ot(e){let t=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o===Te){r++;continue}for(let u=o.length-1;u>=0;u--){let i=o[u];if(i===" "||i===" ")t++;else{e[n]=o.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Te);return t}function et(e,t,r,n,o,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:D,doc:l}=s.pop(),d=G(l);switch(d){case U:a.push(l),r-=Oe(l);break;case W:case S:{let f=d===W?l:l.parts;for(let p=f.length-1;p>=0;p--)s.push({mode:D,doc:f[p]});break}case L:case P:case R:case N:s.push({mode:D,doc:l.contents});break;case I:r+=Ot(a);break;case x:{if(u&&l.break)return!1;let f=l.break?H:D,p=l.expandedStates&&f===H?y(!1,l.expandedStates,-1):l.contents;s.push({mode:f,doc:p});break}case _:{let p=(l.groupId?o[l.groupId]||J:D)===H?l.breakContents:l.flatContents;p&&s.push({mode:D,doc:p});break}case B:if(D===H||l.hard)return!0;l.soft||(a.push(" "),r--);break;case Y:n=!0;break;case j:if(n)return!1;break}}return!1}function Fe(e,t){let r={},n=t.printWidth,o=Be(t.endOfLine),u=0,i=[{ind:Wr(),mode:H,doc:e}],s=[],a=!1,D=[],l=0;for(Rr(e);i.length>0;){let{ind:f,mode:p,doc:c}=i.pop();switch(G(c)){case U:{let F=o!==` +`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function yr(e){return ne(!1,e,/\r\n?/gu,` +`)}var U="string",H="array",V="cursor",T="indent",k="align",L="trim",B="group",N="fill",w="if-break",P="indent-if-break",I="line-suffix",R="line-suffix-boundary",A="line",O="label",_="break-parent",Ke=new Set([V,T,k,L,B,N,w,P,I,R,A,O,_]);function Lu(e){if(typeof e=="string")return U;if(Array.isArray(e))return H;if(!e)return;let{type:t}=e;if(Ke.has(t))return t}var z=Lu;var Pu=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Iu(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(z(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Pu([...Ke].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var St=class extends Error{name="InvalidDocError";constructor(t){super(Iu(t)),this.doc=t}},Q=St;var Ar={};function Ru(e,t,r,n){let u=[e];for(;u.length>0;){let i=u.pop();if(i===Ar){r(u.pop());continue}r&&u.push(i,Ar);let o=z(i);if(!o)throw new Q(i);if((t==null?void 0:t(i))!==!1)switch(o){case H:case N:{let s=o===H?i:i.parts;for(let a=s.length,D=a-1;D>=0;--D)u.push(s[D]);break}case w:u.push(i.flatContents,i.breakContents);break;case B:if(n&&i.expandedStates)for(let s=i.expandedStates.length,a=s-1;a>=0;--a)u.push(i.expandedStates[a]);else u.push(i.contents);break;case k:case T:case P:case O:case I:u.push(i.contents);break;case U:case V:case L:case R:case A:case _:break;default:throw new Q(i)}}}var be=Ru;var vr=()=>{},G=vr,Je=vr;function le(e){return G(e),{type:T,contents:e}}function De(e,t){return G(t),{type:k,contents:t,n:e}}function Tt(e,t={}){return G(e),Je(t.expandedStates,!0),{type:B,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Br(e){return De(Number.NEGATIVE_INFINITY,e)}function wr(e){return De({type:"root"},e)}function _r(e){return De(-1,e)}function xr(e,t){return Tt(e[0],{...t,expandedStates:e})}function br(e){return Je(e),{type:N,parts:e}}function Nr(e,t="",r={}){return G(e),t!==""&&G(t),{type:w,breakContents:e,flatContents:t,groupId:r.groupId}}function Or(e,t){return G(e),{type:P,contents:e,groupId:t.groupId,negate:t.negate}}function Ne(e){return G(e),{type:I,contents:e}}var Sr={type:R},Fe={type:_},Tr={type:L},Oe={type:A,hard:!0},kt={type:A,hard:!0,literal:!0},qe={type:A},kr={type:A,soft:!0},K=[Oe,Fe],Xe=[kt,Fe],Z={type:V};function Se(e,t){G(e),Je(t);let r=[];for(let n=0;n0){for(let u=0;u0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${p})`}if(i.type===B){let l=[];i.break&&i.break!=="propagated"&&l.push("shouldBreak: true"),i.id&&l.push(`id: ${u(i.id)}`);let p=l.length>0?`, { ${l.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(f=>n(f)).join(",")}]${p})`:`group(${n(i.contents)}${p})`}if(i.type===N)return`fill([${i.parts.map(l=>n(l)).join(", ")}])`;if(i.type===I)return"lineSuffix("+n(i.contents)+")";if(i.type===R)return"lineSuffixBoundary";if(i.type===O)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}function u(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let o=i.description||"symbol";for(let s=0;;s++){let a=o+(s>0?` #${s}`:"");if(!r.has(a))return r.add(a),t[i]=`Symbol.for(${JSON.stringify(a)})`}}}var Yu=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},y=Yu;var Ir=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDD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95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Rr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Yr(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var jr=e=>!(Rr(e)||Yr(e));var ju=/[^\x20-\x7F]/u;function Hu(e){if(!e)return 0;if(!ju.test(e))return e.length;e=e.replace(Ir()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=jr(n)?1:2)}return t}var Te=Hu;function Le(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=u(i);return r.set(i,o),o}function u(i){switch(z(i)){case H:return t(i.map(n));case N:return t({...i,parts:i.parts.map(n)});case w:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case B:{let{expandedStates:o,contents:s}=i;return o?(o=o.map(n),s=o[0]):s=n(s),t({...i,contents:s,expandedStates:o})}case k:case T:case P:case O:case I:return t({...i,contents:n(i.contents)});case U:case V:case L:case R:case A:case _:return t(i);default:throw new Q(i)}}}function Ze(e,t,r){let n=r,u=!1;function i(o){if(u)return!1;let s=t(o);s!==void 0&&(u=!0,n=s)}return be(e,i),n}function Wu(e){if(e.type===B&&e.break||e.type===A&&e.hard||e.type===_)return!0}function $r(e){return Ze(e,Wu,!1)}function Hr(e){if(e.length>0){let t=y(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Mr(e){let t=new Set,r=[];function n(i){if(i.type===_&&Hr(r),i.type===B){if(r.push(i),t.has(i))return!1;t.add(i)}}function u(i){i.type===B&&r.pop().break&&Hr(r)}be(e,n,u,!0)}function $u(e){return e.type===A&&!e.hard?e.soft?"":" ":e.type===w?e.flatContents:e}function Ur(e){return Le(e,$u)}function Wr(e){for(e=[...e];e.length>=2&&y(!1,e,-2).type===A&&y(!1,e,-1).type===_;)e.length-=2;if(e.length>0){let t=ke(y(!1,e,-1));e[e.length-1]=t}return e}function ke(e){switch(z(e)){case T:case P:case B:case I:case O:{let t=ke(e.contents);return{...e,contents:t}}case w:return{...e,breakContents:ke(e.breakContents),flatContents:ke(e.flatContents)};case N:return{...e,parts:Wr(e.parts)};case H:return Wr(e);case U:return e.replace(/[\n\r]*$/u,"");case k:case V:case L:case R:case A:case _:break;default:throw new Q(e)}return e}function et(e){return ke(Uu(e))}function Mu(e){switch(z(e)){case N:if(e.parts.every(t=>t===""))return"";break;case B:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===B&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case k:case T:case P:case I:if(!e.contents)return"";break;case w:if(!e.flatContents&&!e.breakContents)return"";break;case H:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof y(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case U:case V:case L:case R:case A:case O:case _:break;default:throw new Q(e)}return e}function Uu(e){return Le(e,t=>Mu(t))}function Vr(e,t=Xe){return Le(e,r=>typeof r=="string"?Se(t,r.split(` +`)):r)}function Vu(e){if(e.type===A)return!0}function zr(e){return Ze(e,Vu,!1)}function me(e,t){return e.type===O?{...e,contents:t(e.contents)}:t(e)}var Y=Symbol("MODE_BREAK"),J=Symbol("MODE_FLAT"),he=Symbol("cursor"),Gr=Symbol("DOC_FILL_PRINTED_LENGTH");function Kr(){return{value:"",length:0,queue:[]}}function zu(e,t){return Lt(e,{type:"indent"},t)}function Gu(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Kr():t<0?Lt(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Lt(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Lt(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,o=0,s=0;for(let c of n)switch(c.type){case"indent":l(),r.useTabs?a(1):D(r.tabWidth);break;case"stringAlign":l(),u+=c.n,i+=c.n.length;break;case"numberAlign":o+=1,s+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return f(),{...e,value:u,length:i,queue:n};function a(c){u+=" ".repeat(c),i+=r.tabWidth*c}function D(c){u+=" ".repeat(c),i+=c}function l(){r.useTabs?p():f()}function p(){o>0&&a(o),d()}function f(){s>0&&D(s),d()}function d(){o=0,s=0}}function Pt(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===he){r++;continue}for(let i=u.length-1;i>=0;i--){let o=u[i];if(o===" "||o===" ")t++;else{e[n]=u.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(he);return t}function tt(e,t,r,n,u,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,s=[e],a=[];for(;r>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:D,doc:l}=s.pop(),p=z(l);switch(p){case U:a.push(l),r-=Te(l);break;case H:case N:{let f=p===H?l:l.parts;for(let d=f.length-1;d>=0;d--)s.push({mode:D,doc:f[d]});break}case T:case k:case P:case O:s.push({mode:D,doc:l.contents});break;case L:r+=Pt(a);break;case B:{if(i&&l.break)return!1;let f=l.break?Y:D,d=l.expandedStates&&f===Y?y(!1,l.expandedStates,-1):l.contents;s.push({mode:f,doc:d});break}case w:{let d=(l.groupId?u[l.groupId]||J:D)===Y?l.breakContents:l.flatContents;d&&s.push({mode:D,doc:d});break}case A:if(D===Y||l.hard)return!0;l.soft||(a.push(" "),r--);break;case I:n=!0;break;case R:if(n)return!1;break}}return!1}function Ee(e,t){let r={},n=t.printWidth,u=xe(t.endOfLine),i=0,o=[{ind:Kr(),mode:Y,doc:e}],s=[],a=!1,D=[],l=0;for(Mr(e);o.length>0;){let{ind:f,mode:d,doc:c}=o.pop();switch(z(c)){case U:{let F=u!==` `?ne(!1,c,` -`,o):c;s.push(F),i.length>0&&(u+=Oe(F));break}case W:for(let F=c.length-1;F>=0;F--)i.push({ind:f,mode:p,doc:c[F]});break;case z:if(l>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Te),l++;break;case L:i.push({ind:zu(f,t),mode:p,doc:c.contents});break;case P:i.push({ind:Gu(f,c.n,t),mode:p,doc:c.contents});break;case I:u-=Ot(s);break;case x:switch(p){case J:if(!a){i.push({ind:f,mode:c.break?H:J,doc:c.contents});break}case H:{a=!1;let F={ind:f,mode:J,doc:c.contents},m=n-u,E=D.length>0;if(!c.break&&et(F,i,m,E,r))i.push(F);else if(c.expandedStates){let A=y(!1,c.expandedStates,-1);if(c.break){i.push({ind:f,mode:H,doc:A});break}else for(let w=1;w=c.expandedStates.length){i.push({ind:f,mode:H,doc:A});break}else{let h=c.expandedStates[w],C={ind:f,mode:J,doc:h};if(et(C,i,m,E,r)){i.push(C);break}}}else i.push({ind:f,mode:H,doc:c.contents});break}}c.id&&(r[c.id]=y(!1,i,-1).mode);break;case S:{let F=n-u,{parts:m}=c;if(m.length===0)break;let[E,A]=m,w={ind:f,mode:J,doc:E},h={ind:f,mode:H,doc:E},C=et(w,[],F,D.length>0,r,!0);if(m.length===1){C?i.push(w):i.push(h);break}let k={ind:f,mode:J,doc:A},v={ind:f,mode:H,doc:A};if(m.length===2){C?i.push(k,w):i.push(v,h);break}m.splice(0,2);let $={ind:f,mode:p,doc:Ge(m)},ye=m[0];et({ind:f,mode:J,doc:[E,A,ye]},[],F,D.length>0,r,!0)?i.push($,k,w):C?i.push($,v,w):i.push($,v,h);break}case _:case R:{let F=c.groupId?r[c.groupId]:p;if(F===H){let m=c.type===_?c.breakContents:c.negate?c.contents:De(c.contents);m&&i.push({ind:f,mode:p,doc:m})}if(F===J){let m=c.type===_?c.flatContents:c.negate?De(c.contents):c.contents;m&&i.push({ind:f,mode:p,doc:m})}break}case Y:D.push({ind:f,mode:p,doc:c.contents});break;case j:D.length>0&&i.push({ind:f,mode:p,doc:_e});break;case B:switch(p){case J:if(c.hard)a=!0;else{c.soft||(s.push(" "),u+=1);break}case H:if(D.length>0){i.push({ind:f,mode:p,doc:c},...D.reverse()),D.length=0;break}c.literal?f.root?(s.push(o,f.root.value),u=f.root.length):(s.push(o),u=0):(u-=Ot(s),s.push(o+f.value),u=f.length);break}break;case N:i.push({ind:f,mode:p,doc:c.contents});break;case b:break;default:throw new Q(c)}i.length===0&&D.length>0&&(i.push(...D.reverse()),D.length=0)}let d=s.indexOf(Te);if(d!==-1){let f=s.indexOf(Te,d+1),p=s.slice(0,d).join(""),c=s.slice(d+1,f).join(""),F=s.slice(f+1).join("");return{formatted:p+c+F,cursorNodeStart:p.length,cursorNodeText:c}}return{formatted:s.join("")}}function Ku(e,t,r=0){let n=0;for(let o=r;o1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=pe(this,te,Nt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{return t(this)}finally{n.length=o}}callParent(t,r=0){let n=pe(this,te,Nt).call(this,r+1),o=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...o)}}each(t,...r){let{stack:n}=this,{length:o}=n,u=y(!1,n,-1);for(let i of r)u=u[i],n.push(i,u);try{for(let i=0;i{n[u]=t(o,u,i)},...r),n}match(...t){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let u of t){if(o===void 0)return!1;let i=null;if(typeof n=="number"&&(i=n,n=this.stack[r--],o=this.stack[r--]),u&&!u(o,n,i))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(t){for(let r of pe(this,te,tt).call(this))if(t(r))return r}hasAncestor(t){for(let r of pe(this,te,tt).call(this))if(t(r))return!0;return!1}};te=new WeakSet,Nt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},tt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Mr=St;var $r=new Proxy(()=>{},{get:()=>$r}),ke=$r;function qu(e){return e!==null&&typeof e=="object"}var Vr=qu;function*Tt(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=u=>Vr(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let s of i)o(s)&&(yield s);else o(i)&&(yield i)}}function*Ur(e,t){let r=[e];for(let n=0;n{let o=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i0}var kt=Zu;var Gr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu=e=>Object.keys(e).filter(t=>!Gr.has(t));function eo(e){return e?t=>e(t,Gr):Qu}var X=eo;function to(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Lt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=to(e)}function ue(e,t){t.leading=!0,t.trailing=!1,Lt(e,t)}function re(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Lt(e,t)}function oe(e,t){t.leading=!1,t.trailing=!0,Lt(e,t)}var Pt=new WeakMap;function ut(e,t){if(Pt.has(e))return Pt.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:u,locEnd:i}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Tt(e,{getVisitorKeys:X(o)})]).flatMap(a=>n(a)?[a]:ut(a,t));return s.sort((a,D)=>u(a)-u(D)||i(a)-i(D)),Pt.set(e,s),s}function qr(e,t,r,n){let{locStart:o,locEnd:u}=r,i=o(t),s=u(t),a=ut(e,r),D,l,d=0,f=a.length;for(;d>1,c=a[p],F=o(c),m=u(c);if(F<=i&&s<=m)return qr(c,t,r,c);if(m<=i){D=c,d=p+1;continue}if(s<=F){l=c,f=p;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:p}=n,c=Rt(p,t,r);D&&Rt(p,D,r)!==c&&(D=null),l&&Rt(p,l,r)!==c&&(l=null)}return{enclosingNode:n,precedingNode:D,followingNode:l}}var It=()=>!1;function Jr(e,t){let{comments:r}=e;if(delete e.comments,!kt(r)||!t.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:u,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=It,endOfLine:l=It,remaining:d=It}=s,f=r.map((p,c)=>({...qr(e,p,t),comment:p,text:a,options:t,ast:e,isLastComment:r.length-1===c}));for(let[p,c]of f.entries()){let{comment:F,precedingNode:m,enclosingNode:E,followingNode:A,text:w,options:h,ast:C,isLastComment:k}=c;if(h.parser==="json"||h.parser==="json5"||h.parser==="jsonc"||h.parser==="__js_expression"||h.parser==="__ts_expression"||h.parser==="__vue_expression"||h.parser==="__vue_ts_expression"){if(o(F)-o(C)<=0){ue(C,F);continue}if(u(F)-u(C)>=0){oe(C,F);continue}}let v;if(i?v=[c]:(F.enclosingNode=E,F.precedingNode=m,F.followingNode=A,v=[F,w,h,C,k]),ro(w,h,f,p))F.placement="ownLine",D(...v)||(A?ue(A,F):m?oe(m,F):E?re(E,F):re(C,F));else if(no(w,h,f,p))F.placement="endOfLine",l(...v)||(m?oe(m,F):A?ue(A,F):E?re(E,F):re(C,F));else if(F.placement="remaining",!d(...v))if(m&&A){let $=n.length;$>0&&n[$-1].followingNode!==A&&Kr(n,h),n.push(c)}else m?oe(m,F):A?ue(A,F):E?re(E,F):re(C,F)}if(Kr(n,t),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var Xr=e=>!/[\S\n\u2028\u2029]/u.test(e);function ro(e,t,r,n){let{comment:o,precedingNode:u}=r[n],{locStart:i,locEnd:s}=t,a=i(o);if(u)for(let D=n-1;D>=0;D--){let{comment:l,precedingNode:d}=r[D];if(d!==u||!Xr(e.slice(s(l),a)))break;a=i(l)}return V(e,a,{backwards:!0})}function no(e,t,r,n){let{comment:o,followingNode:u}=r[n],{locStart:i,locEnd:s}=t,a=s(o);if(u)for(let D=n+1;D0;--i){let{comment:D,precedingNode:l,followingNode:d}=e[i-1];ke.strictEqual(l,n),ke.strictEqual(d,o);let f=t.originalText.slice(t.locEnd(D),u);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,f,t))??/^[\s(]*$/u.test(f))u=t.locStart(D);else break}for(let[D,{comment:l}]of e.entries())D1&&D.comments.sort((l,d)=>t.locStart(l)-t.locStart(d));e.length=0}function Rt(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(a)).length===0)return{leading:"",trailing:""};let u=[],i=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:l}=a;D?u.push(oo(e,t)):l&&(s=io(e,t,s),i.push(s.doc))},"comments"),{leading:u,trailing:i}}function Qr(e,t,r){let{leading:n,trailing:o}=so(e,r);return!n&&!o?t:Qe(t,u=>[n,u,o])}function en(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function ao(e){return()=>{}}var tn=ao;var Pe=class extends Error{name="ConfigError"},Ie=class extends Error{name="UndefinedParserError"};var rn={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +`,u):c;s.push(F),o.length>0&&(i+=Te(F));break}case H:for(let F=c.length-1;F>=0;F--)o.push({ind:f,mode:d,doc:c[F]});break;case V:if(l>=2)throw new Error("There are too many 'cursor' in doc.");s.push(he),l++;break;case T:o.push({ind:zu(f,t),mode:d,doc:c.contents});break;case k:o.push({ind:Gu(f,c.n,t),mode:d,doc:c.contents});break;case L:i-=Pt(s);break;case B:switch(d){case J:if(!a){o.push({ind:f,mode:c.break?Y:J,doc:c.contents});break}case Y:{a=!1;let F={ind:f,mode:J,doc:c.contents},m=n-i,h=D.length>0;if(!c.break&&tt(F,o,m,h,r))o.push(F);else if(c.expandedStates){let C=y(!1,c.expandedStates,-1);if(c.break){o.push({ind:f,mode:Y,doc:C});break}else for(let v=1;v=c.expandedStates.length){o.push({ind:f,mode:Y,doc:C});break}else{let E=c.expandedStates[v],g={ind:f,mode:J,doc:E};if(tt(g,o,m,h,r)){o.push(g);break}}}else o.push({ind:f,mode:Y,doc:c.contents});break}}c.id&&(r[c.id]=y(!1,o,-1).mode);break;case N:{let F=n-i,m=c[Gr]??0,{parts:h}=c,C=h.length-m;if(C===0)break;let v=h[m+0],E=h[m+1],g={ind:f,mode:J,doc:v},j={ind:f,mode:Y,doc:v},b=tt(g,[],F,D.length>0,r,!0);if(C===1){b?o.push(g):o.push(j);break}let X={ind:f,mode:J,doc:E},ae={ind:f,mode:Y,doc:E};if(C===2){b?o.push(X,g):o.push(ae,j);break}let $e=h[m+2],At={ind:f,mode:d,doc:{...c,[Gr]:m+2}};tt({ind:f,mode:J,doc:[v,E,$e]},[],F,D.length>0,r,!0)?o.push(At,X,g):b?o.push(At,ae,g):o.push(At,ae,j);break}case w:case P:{let F=c.groupId?r[c.groupId]:d;if(F===Y){let m=c.type===w?c.breakContents:c.negate?c.contents:le(c.contents);m&&o.push({ind:f,mode:d,doc:m})}if(F===J){let m=c.type===w?c.flatContents:c.negate?le(c.contents):c.contents;m&&o.push({ind:f,mode:d,doc:m})}break}case I:D.push({ind:f,mode:d,doc:c.contents});break;case R:D.length>0&&o.push({ind:f,mode:d,doc:Oe});break;case A:switch(d){case J:if(c.hard)a=!0;else{c.soft||(s.push(" "),i+=1);break}case Y:if(D.length>0){o.push({ind:f,mode:d,doc:c},...D.reverse()),D.length=0;break}c.literal?f.root?(s.push(u,f.root.value),i=f.root.length):(s.push(u),i=0):(i-=Pt(s),s.push(u+f.value),i=f.length);break}break;case O:o.push({ind:f,mode:d,doc:c.contents});break;case _:break;default:throw new Q(c)}o.length===0&&D.length>0&&(o.push(...D.reverse()),D.length=0)}let p=s.indexOf(he);if(p!==-1){let f=s.indexOf(he,p+1);if(f===-1)return{formatted:s.filter(m=>m!==he).join("")};let d=s.slice(0,p).join(""),c=s.slice(p+1,f).join(""),F=s.slice(f+1).join("");return{formatted:d+c+F,cursorNodeStart:d.length,cursorNodeText:c}}return{formatted:s.join("")}}function Ku(e,t,r=0){let n=0;for(let u=r;u1?y(!1,t,-2):null}getValue(){return y(!1,this.stack,-1)}getNode(t=0){let r=pe(this,te,Rt).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:u}=n,i=y(!1,n,-1);for(let o of r)i=i[o],n.push(o,i);try{return t(this)}finally{n.length=u}}callParent(t,r=0){let n=pe(this,te,Rt).call(this,r+1),u=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...u)}}each(t,...r){let{stack:n}=this,{length:u}=n,i=y(!1,n,-1);for(let o of r)i=i[o],n.push(o,i);try{for(let o=0;o{n[i]=t(u,i,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,u=this.stack[r--];for(let i of t){if(u===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],u=this.stack[r--]),i&&!i(u,n,o))return!1;n=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(t){for(let r of pe(this,te,rt).call(this))if(t(r))return r}hasAncestor(t){for(let r of pe(this,te,rt).call(this))if(t(r))return!0;return!1}};te=new WeakSet,Rt=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},rt=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}};var Jr=It;var qr=new Proxy(()=>{},{get:()=>qr}),Pe=qr;function Ju(e){return e!==null&&typeof e=="object"}var Xr=Ju;function*ge(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=i=>Xr(i)&&n(i);for(let i of r(e)){let o=e[i];if(Array.isArray(o))for(let s of o)u(s)&&(yield s);else u(o)&&(yield o)}}function*Qr(e,t){let r=[e];for(let n=0;n{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o0}var Yt=Qu;var tn=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Zu=e=>Object.keys(e).filter(t=>!tn.has(t));function ei(e){return e?t=>e(t,tn):Zu}var q=ei;function ti(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function jt(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=ti(e)}function ue(e,t){t.leading=!0,t.trailing=!1,jt(e,t)}function re(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),jt(e,t)}function ie(e,t){t.leading=!1,t.trailing=!0,jt(e,t)}var Ht=new WeakMap;function it(e,t){if(Ht.has(e))return Ht.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:i,locEnd:o}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...ge(e,{getVisitorKeys:q(u)})]).flatMap(a=>n(a)?[a]:it(a,t));return s.sort((a,D)=>i(a)-i(D)||o(a)-o(D)),Ht.set(e,s),s}function nn(e,t,r,n){let{locStart:u,locEnd:i}=r,o=u(t),s=i(t),a=it(e,r),D,l,p=0,f=a.length;for(;p>1,c=a[d],F=u(c),m=i(c);if(F<=o&&s<=m)return nn(c,t,r,c);if(m<=o){D=c,p=d+1;continue}if(s<=F){l=c,f=d;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:d}=n,c=$t(d,t,r);D&&$t(d,D,r)!==c&&(D=null),l&&$t(d,l,r)!==c&&(l=null)}return{enclosingNode:n,precedingNode:D,followingNode:l}}var Wt=()=>!1;function un(e,t){let{comments:r}=e;if(delete e.comments,!Yt(r)||!t.printer.canAttachComment)return;let n=[],{locStart:u,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:a}=t,{ownLine:D=Wt,endOfLine:l=Wt,remaining:p=Wt}=s,f=r.map((d,c)=>({...nn(e,d,t),comment:d,text:a,options:t,ast:e,isLastComment:r.length-1===c}));for(let[d,c]of f.entries()){let{comment:F,precedingNode:m,enclosingNode:h,followingNode:C,text:v,options:E,ast:g,isLastComment:j}=c;if(E.parser==="json"||E.parser==="json5"||E.parser==="jsonc"||E.parser==="__js_expression"||E.parser==="__ts_expression"||E.parser==="__vue_expression"||E.parser==="__vue_ts_expression"){if(u(F)-u(g)<=0){ue(g,F);continue}if(i(F)-i(g)>=0){ie(g,F);continue}}let b;if(o?b=[c]:(F.enclosingNode=h,F.precedingNode=m,F.followingNode=C,b=[F,v,E,g,j]),ri(v,E,f,d))F.placement="ownLine",D(...b)||(C?ue(C,F):m?ie(m,F):h?re(h,F):re(g,F));else if(ni(v,E,f,d))F.placement="endOfLine",l(...b)||(m?ie(m,F):C?ue(C,F):h?re(h,F):re(g,F));else if(F.placement="remaining",!p(...b))if(m&&C){let X=n.length;X>0&&n[X-1].followingNode!==C&&rn(n,E),n.push(c)}else m?ie(m,F):C?ue(C,F):h?re(h,F):re(g,F)}if(rn(n,t),!o)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var on=e=>!/[\S\n\u2028\u2029]/u.test(e);function ri(e,t,r,n){let{comment:u,precedingNode:i}=r[n],{locStart:o,locEnd:s}=t,a=o(u);if(i)for(let D=n-1;D>=0;D--){let{comment:l,precedingNode:p}=r[D];if(p!==i||!on(e.slice(s(l),a)))break;a=o(l)}return $(e,a,{backwards:!0})}function ni(e,t,r,n){let{comment:u,followingNode:i}=r[n],{locStart:o,locEnd:s}=t,a=s(u);if(i)for(let D=n+1;D0;--o){let{comment:D,precedingNode:l,followingNode:p}=e[o-1];Pe.strictEqual(l,n),Pe.strictEqual(p,u);let f=t.originalText.slice(t.locEnd(D),i);if(((a=(s=t.printer).isGap)==null?void 0:a.call(s,f,t))??/^[\s(]*$/u.test(f))i=t.locStart(D);else break}for(let[D,{comment:l}]of e.entries())D1&&D.comments.sort((l,p)=>t.locStart(l)-t.locStart(p));e.length=0}function $t(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(a)).length===0)return{leading:"",trailing:""};let i=[],o=[],s;return e.each(()=>{let a=e.node;if(n!=null&&n.has(a))return;let{leading:D,trailing:l}=a;D?i.push(ii(e,t)):l&&(s=oi(e,t,s),o.push(s.doc))},"comments"),{leading:i,trailing:o}}function an(e,t,r){let{leading:n,trailing:u}=si(e,r);return!n&&!u?t:me(t,i=>[n,i,u])}function Dn(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function ai(e){return()=>{}}var ln=ai;var Re=class extends Error{name="ConfigError"},Ye=class extends Error{name="UndefinedParserError"};var cn={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(o=>o.languages??[]),n=[];for(let o of lo(Object.assign({},...e.map(({options:u})=>u),rn)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(u=>!u.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...Do(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(u=>{var i;return((i=u.defaultOptions)==null?void 0:i[o.name])!==void 0}).map(u=>[u.name,u.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}function*Do(e,t,r){let n=new Set(e.map(o=>o.value));for(let o of t)if(o.parsers){for(let u of o.parsers)if(!n.has(u)){n.add(u);let i=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,u)),s=o.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:u,description:s}}}}function lo(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=y(!1,o.default,-1).value),t.push(o)}return t}var co=e=>String(e).split(/[/\\]/u).pop();function nn(e,t){if(!t)return;let r=co(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(o=>o.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(o=>r.endsWith(o)))}function fo(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function po(e,t){let r=e.plugins.flatMap(o=>o.languages??[]),n=fo(r,t.language)??nn(r,t.physicalFile)??nn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var un=po;var ie={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>ie.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${ie.key(r)}: ${ie.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>ie.value({[e]:t})};var Yt=Me(it(),1),an=(e,t,{descriptor:r})=>{let n=[`${Yt.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Yt.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var le=Me(it(),1);var st=Symbol.for("vnopts.VALUE_NOT_EXIST"),he=Symbol.for("vnopts.VALUE_UNCHANGED");var Dn=" ".repeat(2),cn=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),u=[];return n&&u.push(ln(e,t,n,r.descriptor)),o&&u.push([ln(e,t,o.title,r.descriptor)].concat(o.values.map(i=>fn(i,r.loggerPrintWidth))).join(` -`)),pn(u,r.loggerPrintWidth)};function ln(e,t,r,n){return[`Invalid ${le.default.red(n.key(e))} value.`,`Expected ${le.default.blue(r)},`,`but received ${t===st?le.default.gray("nothing"):le.default.red(n.value(t))}.`].join(" ")}function fn({text:e,list:t},r){let n=[];return e&&n.push(`- ${le.default.blue(e)}`),t&&n.push([`- ${le.default.blue(t.title)}:`].concat(t.values.map(o=>fn(o,r-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(` -`)),pn(n,r)}function pn(e,t){if(e.length===1)return e[0];let[r,n]=e,[o,u]=e.map(i=>i.split(` -`,1)[0].length);return o>t&&o>u?n:r}var Wt=Me(it(),1);var jt=[],dn=[];function Ht(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,o=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-o);)n--,o--;let u=0;for(;us?D>s?s+1:D:D>a?a+1:D;return s}var at=(e,t,{descriptor:r,logger:n,schemas:o})=>{let u=[`Ignored unknown option ${Wt.default.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(o).sort().find(s=>Ht(e,s)<3);i&&u.push(`Did you mean ${Wt.default.blue(r.key(i))}?`),n.warn(u.join(" "))};var Fo=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo(e,t){let r=new e(t),n=Object.create(r);for(let o of Fo)o in t&&(n[o]=Eo(t[o],r,O.prototype[o].length));return n}var O=class{static create(t){return mo(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return he}};function Eo(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Dt=class extends O{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var lt=class extends O{expected(){return"anything"}validate(){return!0}};var ct=class extends O{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let o of t){let u=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);u!==!0&&n.push(u.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let o of t){let u=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);u!==!1&&n.push(...u.map(({value:i})=>({value:[i]})))}return n}forward(t,r){let n=[];for(let o of t){let u=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...u.map(Fn))}return n}redirect(t,r){let n=[],o=[];for(let u of t){let i=r.normalizeRedirectResult(this._valueSchema.redirect(u,r),u);"remain"in i&&n.push(i.remain),o.push(...i.redirect.map(Fn))}return n.length===0?{redirect:o}:{redirect:o,remain:n}}overlap(t,r){return t.concat(r)}};function Fn({from:e,to:t}){return{from:[e],to:t}}var ft=class extends O{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function En(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function hn(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function Cn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function gn(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function yn(e){return e===Math.floor(e)}function An(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Bn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Mt(e){return e===void 0?{}:e}function $t(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return ho((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map($t)}}:{text:t}}function Vt(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ut(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function mn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function pt(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>mn(r,t)):[mn(e,t)]}function zt(e,t){let r=pt(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function ho(e,t){if(!e)throw new Error(t)}var dt=class extends O{constructor(t){super(t),this._choices=hn(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(An).map(t.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var Ft=class extends O{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var mt=class extends Ft{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&yn(t)}};var Re=class extends O{expected(){return"a string"}validate(t){return typeof t=="string"}};var wn=ie,xn=at,_n=cn,vn=an;var Et=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:u=wn,unknown:i=xn,invalid:s=_n,deprecated:a=vn,missing:D=()=>!1,required:l=()=>!1,preprocess:d=p=>p,postprocess:f=()=>he}=r||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:o,schemas:En(t,"name"),normalizeDefaultResult:Mt,normalizeExpectedResult:$t,normalizeDeprecatedResult:Ut,normalizeForwardResult:pt,normalizeRedirectResult:zt,normalizeValidateResult:Vt},this._unknownHandler=i,this._invalidHandler=Bn(s),this._deprecatedHandler=a,this._identifyMissing=(p,c)=>!(p in c)||D(p,c),this._identifyRequired=l,this._preprocess=d,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Cn()}normalize(t){let r={},o=[this._preprocess(t,this._utils)],u=()=>{for(;o.length!==0;){let i=o.shift(),s=this._applyNormalization(i,r);o.push(...s)}};u();for(let i of Object.keys(this._utils.schemas)){let s=this._utils.schemas[i];if(!(i in r)){let a=Mt(s.default(this._utils));"value"in a&&o.push({[i]:a.value})}}u();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let s=this._utils.schemas[i],a=r[i],D=s.postprocess(a,this._utils);D!==he&&(this._applyValidation(D,i,s),r[i]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(t);for(let i of o){let s=this._utils.schemas[i],a=s.preprocess(t[i],this._utils);this._applyValidation(a,i,s);let D=({from:p,to:c})=>{n.push(typeof c=="string"?{[c]:p}:{[c.key]:c.value})},l=({value:p,redirectTo:c})=>{let F=Ut(s.deprecated(p,this._utils),a,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,c,this._utils));else for(let{value:m}of F){let E={key:i,value:m};if(!this._hasDeprecationWarned(E)){let A=typeof c=="string"?{key:c,value:m}:c;this._utils.logger.warn(this._deprecatedHandler(E,A,this._utils))}}};pt(s.forward(a,this._utils),a).forEach(D);let f=zt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let p=f.remain;r[i]=i in r?s.overlap(r[i],p,this._utils):p,l({value:p})}for(let{from:p,to:c}of f.redirect)l({value:p,redirectTo:c})}for(let i of u){let s=t[i];this._applyUnknownHandler(i,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,st,this._utils)}_partitionOptionKeys(t){let[r,n]=gn(Object.keys(t).filter(o=>!this._identifyMissing(o,t)),o=>o in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let o=Vt(n.validate(t,this._utils),t);if(o!==!0)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(t,r,n,o){let u=this._unknownHandler(t,r,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let s=u[i];i in this._utils.schemas?o(i,s):n[i]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==he){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let u of n){let i=r.override[u];this._applyValidation(i,u,this._utils.schemas[u]),t[u]=i}for(let u of o){let i=r.override[u];this._applyUnknownHandler(u,i,t,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),t[s]=a})}}}}};var Gt;function go(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:u,descriptor:i}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=ie;let s=o?Array.isArray(o)?(f,p)=>o.includes(f)?{[f]:p}:void 0:(f,p)=>({[f]:p}):(f,p,c)=>{let{_:F,...m}=c.schemas;return at(f,p,{...c,schemas:m})},a=yo(t,{isCLI:n,FlagSchema:u}),D=new Et(a,{logger:r,unknown:s,descriptor:i}),l=r!==!1;l&&Gt&&(D._hasDeprecationWarned=Gt);let d=D.normalize(e);return l&&(Gt=D._hasDeprecationWarned),d}function yo(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(lt.create({name:"_"}));for(let o of e)n.push(Ao(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(Dt.create({name:o.alias,sourceName:o.name}));return n}function Ao(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,u={name:o},i,s={};switch(e.type){case"int":i=mt,t&&(u.preprocess=Number);break;case"string":i=Re;break;case"choice":i=dt,u.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=ft;break;case"flag":i=n,u.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Re;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?u.validate=(a,D,l)=>e.exception(a)||D.validate(a,l):u.validate=(a,D,l)=>a===void 0||D.validate(a,l),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=u.preprocess||(D=>D);u.preprocess=(D,l,d)=>l.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),d)}return e.array?ct.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:i.create(u)}):i.create({...u,...s})}var bn=go;var Bo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let o=t[n];if(r(o,n,t))return o}}},Kt=Bo;function qt(e,t){if(!t)throw new Error("parserName is required.");let r=Kt(!1,e,o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Pe(n)}function On(e,t){if(!t)throw new Error("astFormat is required.");let r=Kt(!1,e,o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Pe(n)}function ht({plugins:e,parser:t}){let r=qt(e,t);return Jt(r,t)}function Jt(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Sn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function wo(e,t={}){var d;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=un(r,{physicalFile:r.filepath}),!r.parser)throw new Ie(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ie("No parser and no file path given, couldn't infer a parser.");let n=ot({plugins:e.plugins,showDeprecated:!0}).options,o={...Nn,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},u=qt(r.plugins,r.parser),i=await Jt(u,r.parser);r.astFormat=i.astFormat,r.locEnd=i.locEnd,r.locStart=i.locStart;let s=(d=u.printers)!=null&&d[i.astFormat]?u:On(r.plugins,i.astFormat),a=await Sn(s,i.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},l={...o,...D};for(let[f,p]of Object.entries(l))(r[f]===null||r[f]===void 0)&&(r[f]=p);return r.parser==="json"&&(r.trailingComma="none"),bn(r,n,{passThrough:Object.keys(Nn),...t})}var se=wo;var Vn=Me($n(),1);async function ko(e,t){let r=await ht(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let o;try{o=await r.parse(n,t,t)}catch(u){Lo(u,e)}return{text:n,ast:o}}function Lo(e,t){let{loc:r}=e;if(r){let n=(0,Vn.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var ce=ko;async function Un(e,t,r,n,o){let{embeddedLanguageFormatting:u,printer:{embed:i,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!i||u!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=X(i.getVisitorKeys??a),l=[];p();let d=e.stack;for(let{print:c,node:F,pathStack:m}of l)try{e.stack=m;let E=await c(f,t,e,r);E&&o.set(F,E)}catch(E){if(globalThis.PRETTIER_DEBUG)throw E}e.stack=d;function f(c,F){return Po(c,F,r,n)}function p(){let{node:c}=e;if(c===null||typeof c!="object"||s(e))return;for(let m of D(c))Array.isArray(c[m])?e.each(p,m):e.call(p,m);let F=i(e,r);if(F){if(typeof F=="function"){l.push({print:F,node:c,pathStack:[...e.stack]});return}o.set(c,F)}}}async function Po(e,t,r,n){let o=await se({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:u}=await ce(e,o),i=await n(u,o);return Ze(i)}function Io(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:s}=e,a=o(s),D=u(s);for(let l of n)o(l)>=a&&u(l)<=D&&i.add(l);return r.slice(a,D)}var zn=Io;async function Ye(e,t){({ast:e}=await Qt(e,t));let r=new Map,n=new Mr(e),o=tn(t),u=new Map;await Un(n,s,t,Ye,u);let i=await Gn(n,t,s,void 0,u);return en(t),i;function s(D,l){return D===void 0||D===n?a(l):Array.isArray(D)?n.call(()=>a(l),...D):n.call(()=>a(l),D)}function a(D){o(n);let l=n.node;if(l==null)return"";let d=l&&typeof l=="object"&&D===void 0;if(d&&r.has(l))return r.get(l);let f=Gn(n,t,s,D,u);return d&&r.set(l,f),f}}function Gn(e,t,r,n,o){var a;let{node:u}=e,{printer:i}=t,s;return(a=i.hasPrettierIgnore)!=null&&a.call(i,e)?s=zn(e,t):o.has(u)?s=o.get(u):s=i.print(e,t,r,n),u===t.cursorNode&&(s=Qe(s,D=>[ve,D,ve])),i.printComment&&(!i.willPrintOwnComments||!i.willPrintOwnComments(e,t))&&(s=Qr(e,s,t)),s}async function Qt(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,Jr(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function Ro(e,t){let{cursorOffset:r,locStart:n,locEnd:o}=t,u=X(t.printer.getVisitorKeys),i=a=>n(a)<=r&&o(a)>=r,s=e;for(let a of Ur(e,{getVisitorKeys:u,filter:i}))s=a;return s}var Kn=Ro;function Yo(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let o=X(n),u=r.ignoredProperties??new Set;return i(e);function i(s,a){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(f=>i(f,a)).filter(Boolean);let D={},l=new Set(o(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||u.has(f)||(l.has(f)?D[f]=i(s[f],s):D[f]=s[f]);let d=r(s,D,a);if(d!==null)return d??D}}var qn=Yo;var jo=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let o=t[n];if(r(o,n,t))return n}return-1}},Jn=jo;var Ho=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function Wo(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(o=>Qn.has(o.type)&&n.has(o))}function Xn(e){let t=Jn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function Mo(e,t,{locStart:r,locEnd:n}){let o=e.node,u=t.node;if(o===u)return{startNode:o,endNode:u};let i=r(e.node);for(let a of Xn(t.parentNodes))if(r(a)>=i)u=a;else break;let s=n(t.node);for(let a of Xn(e.parentNodes)){if(n(a)<=s)o=a;else break;if(o===u)break}return{startNode:o,endNode:u}}function er(e,t,r,n,o=[],u){let{locStart:i,locEnd:s}=r,a=i(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,o).search(/\S/u),a=s===-1;if(!a)for(n+=s;o>n&&!/\S/u.test(e[o-1]);--o);let D=er(r,n,t,(p,c)=>Zn(t,p,c),[],"rangeStart"),l=a?D:er(r,o,t,p=>Zn(t,p),[],"rangeEnd");if(!D||!l)return{rangeStart:0,rangeEnd:0};let d,f;if(Ho(t)){let p=Wo(D,l);d=p,f=p}else({startNode:d,endNode:f}=Mo(D,l,t));return{rangeStart:Math.min(u(d),u(f)),rangeEnd:Math.max(i(d),i(f))}}var uu="\uFEFF",tu=Symbol("cursor");async function ou(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await ce(e,t);t.cursorOffset>=0&&(t.cursorNode=Kn(n,t));let u=await Ye(n,t,r);r>0&&(u=Je([q,u],r,t.tabWidth));let i=Fe(u,t);if(r>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a)),i.formatted=a+Be(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,l,d,f;if(t.cursorNode&&i.cursorNodeText?(a=t.locStart(t.cursorNode),D=o.slice(a,t.locEnd(t.cursorNode)),l=t.cursorOffset-a,d=i.cursorNodeStart,f=i.cursorNodeText):(a=0,D=o,l=t.cursorOffset,d=0,f=i.formatted),D===f)return{formatted:i.formatted,cursorOffset:d+l,comments:s};let p=D.split("");p.splice(l,0,tu);let c=f.split(""),F=dr(p,c),m=d;for(let E of F)if(E.removed){if(E.value.includes(tu))break}else m+=E.count;return{formatted:i.formatted,cursorOffset:m,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function Uo(e,t){let{ast:r,text:n}=await ce(e,t),{rangeStart:o,rangeEnd:u}=eu(n,t,r),i=n.slice(o,u),s=Math.min(o,n.lastIndexOf(` -`,o)+1),a=n.slice(s,o).match(/^\s*/u)[0],D=me(a,t.tabWidth),l=await ou(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=u?t.cursorOffset-o:-1,endOfLine:"lf"},D),d=l.formatted.trimEnd(),{cursorOffset:f}=t;f>u?f+=d.length-i.length:l.cursorOffset>=0&&(f=l.cursorOffset+o);let p=n.slice(0,o)+d+n.slice(u);if(t.endOfLine!=="lf"){let c=Be(t.endOfLine);f>=0&&c===`\r -`&&(f+=wt(p.slice(0,f),` -`)),p=ne(!1,p,` -`,c)}return{formatted:p,cursorOffset:f,comments:l.comments}}function tr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function ru(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=tr(e,r,-1),n=tr(e,n,0),o=tr(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function iu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u}=ru(e,t),i=e.charAt(0)===uu;if(i&&(e=e.slice(1),r--,n--,o--),u==="auto"&&(u=Fr(e)),e.includes("\r")){let s=a=>wt(e.slice(0,Math.max(a,0)),`\r -`);r-=s(r),n-=s(n),o-=s(o),e=mr(e)}return{hasBOM:i,text:e,options:ru(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:u})}}async function nu(e,t){let r=await ht(t);return!r.hasPragma||r.hasPragma(e)}async function rr(e,t){let{hasBOM:r,text:n,options:o}=iu(e,await se(t));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await nu(n,o))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let u;return o.rangeStart>0||o.rangeEnd=0&&u.cursorOffset++),u}async function su(e,t,r){let{text:n,options:o}=iu(e,await se(t)),u=await ce(n,o);return r&&(r.preprocessForPrint&&(u.ast=await Qt(u.ast,o)),r.massage&&(u.ast=qn(u.ast,o))),u}async function au(e,t){t=await se(t);let r=await Ye(e,t);return Fe(r,t)}async function Du(e,t){let r=Or(e),{formatted:n}=await rr(r,{...t,parser:"__js_expression"});return n}async function lu(e,t){t=await se(t);let{ast:r}=await ce(e,t);return Ye(r,t)}async function cu(e,t){return Fe(e,await se(t))}var nr={};We(nr,{builders:()=>Go,printer:()=>Ko,utils:()=>qo});var Go={join:be,line:Ke,softline:vr,hardline:q,literalline:qe,group:_t,conditionalGroup:Ar,fill:Ge,lineSuffix:xe,lineSuffixBoundary:xr,cursor:ve,breakParent:de,ifBreak:Br,trim:_r,indent:De,indentIfBreak:wr,align:ae,addAlignmentToDoc:Je,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:_e,literallineWithoutBreakParent:vt,label:br,concat:e=>e},Ko={printDocToString:Fe},qo={willBreak:Ir,traverseDoc:we,findInDoc:Xe,mapDoc:Ne,removeLines:Yr,stripTrailingHardline:Ze,replaceEndOfLine:jr,canBreak:Hr};var fu="3.3.3";var or={};We(or,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>oe,getAlignmentSize:()=>me,getIndentSize:()=>pu,getMaxContinuousCount:()=>du,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>si,getStringWidth:()=>Oe,hasNewline:()=>V,hasNewlineInRange:()=>mu,hasSpaces:()=>Eu,isNextLineEmpty:()=>ci,isNextLineEmptyAfterIndex:()=>gt,isPreviousLineEmpty:()=>Di,makeString:()=>hu,skip:()=>Ee,skipEverythingButNewLine:()=>nt,skipInlineComment:()=>Ce,skipNewline:()=>M,skipSpaces:()=>T,skipToLineEnd:()=>rt,skipTrailingComment:()=>ge,skipWhitespace:()=>zr});function Jo(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,o.length/t.length),0)}var du=ti;function ri(e,t){let r=je(e,t);return r===!1?"":e.charAt(r)}var Fu=ri;function ni(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+u+t}var hu=oi;function ii(e,t,r){return je(e,r(t))}function si(e,t){return arguments.length===2||typeof t=="number"?je(e,t):ii(...arguments)}function ai(e,t,r){return Le(e,r(t))}function Di(e,t){return arguments.length===2||typeof t=="number"?Le(e,t):ai(...arguments)}function li(e,t,r){return gt(e,r(t))}function ci(e,t){return arguments.length===2||typeof t=="number"?gt(e,t):li(...arguments)}function fe(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var Cu=fe(rr);async function gu(e,t){let{formatted:r}=await Cu(e,{...t,cursorOffset:-1});return r}async function fi(e,t){return await gu(e,t)===e}var pi=fe(ot,0),di={parse:fe(su),formatAST:fe(au),formatDoc:fe(Du),printToDoc:fe(lu),printDocToString:fe(cu)};var fc=ir;export{di as __debug,fi as check,fc as default,nr as doc,gu as format,Cu as formatWithCursor,pi as getSupportInfo,or as util,fu as version}; +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of li(Object.assign({},...e.map(({options:i})=>i),cn)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(i=>!i.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Di(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(i=>{var o;return((o=i.defaultOptions)==null?void 0:o[u.name])!==void 0}).map(i=>[i.name,i.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Di(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let i of u.parsers)if(!n.has(i)){n.add(i);let o=r.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,i)),s=u.name;o!=null&&o.name&&(s+=` (plugin: ${o.name})`),yield{value:i,description:s}}}}function li(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=y(!1,u.default,-1).value),t.push(u)}return t}var ci=e=>String(e).split(/[/\\]/u).pop();function fn(e,t){if(!t)return;let r=ci(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(u=>u.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(u=>r.endsWith(u)))}function fi(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function di(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=fi(r,t.language)??fn(r,t.physicalFile)??fn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var dn=di;var oe={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>oe.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${oe.key(r)}: ${oe.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>oe.value({[e]:t})};var Mt=Me(st(),1),mn=(e,t,{descriptor:r})=>{let n=[`${Mt.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Mt.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};var ce=Me(st(),1);var at=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ae=Symbol.for("vnopts.VALUE_UNCHANGED");var hn=" ".repeat(2),Cn=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(En(e,t,n,r.descriptor)),u&&i.push([En(e,t,u.title,r.descriptor)].concat(u.values.map(o=>gn(o,r.loggerPrintWidth))).join(` +`)),yn(i,r.loggerPrintWidth)};function En(e,t,r,n){return[`Invalid ${ce.default.red(n.key(e))} value.`,`Expected ${ce.default.blue(r)},`,`but received ${t===at?ce.default.gray("nothing"):ce.default.red(n.value(t))}.`].join(" ")}function gn({text:e,list:t},r){let n=[];return e&&n.push(`- ${ce.default.blue(e)}`),t&&n.push([`- ${ce.default.blue(t.title)}:`].concat(t.values.map(u=>gn(u,r-hn.length).replace(/^|\n/g,`$&${hn}`))).join(` +`)),yn(n,r)}function yn(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,i]=e.map(o=>o.split(` +`,1)[0].length);return u>t&&u>i?n:r}var zt=Me(st(),1);var Ut=[],An=[];function Vt(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let i=0;for(;is?D>s?s+1:D:D>a?a+1:D;return s}var Dt=(e,t,{descriptor:r,logger:n,schemas:u})=>{let i=[`Ignored unknown option ${zt.default.yellow(r.pair({key:e,value:t}))}.`],o=Object.keys(u).sort().find(s=>Vt(e,s)<3);o&&i.push(`Did you mean ${zt.default.blue(r.key(o))}?`),n.warn(i.join(" "))};var pi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Fi(e,t){let r=new e(t),n=Object.create(r);for(let u of pi)u in t&&(n[u]=mi(t[u],r,x.prototype[u].length));return n}var x=class{static create(t){return Fi(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return Ae}};function mi(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var lt=class extends x{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}};var ct=class extends x{expected(){return"anything"}validate(){return!0}};var ft=class extends x{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let u of t){let i=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let u of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let u of t){let i=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);n.push(...i.map(vn))}return n}redirect(t,r){let n=[],u=[];for(let i of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in o&&n.push(o.remain),u.push(...o.redirect.map(vn))}return n.length===0?{redirect:u}:{redirect:u,remain:n}}overlap(t,r){return t.concat(r)}};function vn({from:e,to:t}){return{from:[e],to:t}}var dt=class extends x{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function wn(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function _n(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function xn(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function bn(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function Nn(e){return e===Math.floor(e)}function On(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Sn(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Gt(e){return e===void 0?{}:e}function Kt(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return hi((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Kt)}}:{text:t}}function Jt(e,t){return e===!0?!0:e===!1?{value:t}:e}function qt(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Bn(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function pt(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Bn(r,t)):[Bn(e,t)]}function Xt(e,t){let r=pt(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function hi(e,t){if(!e)throw new Error(t)}var Ft=class extends x{constructor(t){super(t),this._choices=_n(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(On).map(t.value),n=r.slice(0,-2),u=r.slice(-2);return{text:n.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}};var mt=class extends x{expected(){return"a number"}validate(t,r){return typeof t=="number"}};var ht=class extends mt{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&Nn(t)}};var je=class extends x{expected(){return"a string"}validate(t){return typeof t=="string"}};var Tn=oe,kn=Dt,Ln=Cn,Pn=mn;var Et=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:u=80,descriptor:i=Tn,unknown:o=kn,invalid:s=Ln,deprecated:a=Pn,missing:D=()=>!1,required:l=()=>!1,preprocess:p=d=>d,postprocess:f=()=>Ae}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:u,schemas:wn(t,"name"),normalizeDefaultResult:Gt,normalizeExpectedResult:Kt,normalizeDeprecatedResult:qt,normalizeForwardResult:pt,normalizeRedirectResult:Xt,normalizeValidateResult:Jt},this._unknownHandler=o,this._invalidHandler=Sn(s),this._deprecatedHandler=a,this._identifyMissing=(d,c)=>!(d in c)||D(d,c),this._identifyRequired=l,this._preprocess=p,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=xn()}normalize(t){let r={},u=[this._preprocess(t,this._utils)],i=()=>{for(;u.length!==0;){let o=u.shift(),s=this._applyNormalization(o,r);u.push(...s)}};i();for(let o of Object.keys(this._utils.schemas)){let s=this._utils.schemas[o];if(!(o in r)){let a=Gt(s.default(this._utils));"value"in a&&u.push({[o]:a.value})}}i();for(let o of Object.keys(this._utils.schemas)){if(!(o in r))continue;let s=this._utils.schemas[o],a=r[o],D=s.postprocess(a,this._utils);D!==Ae&&(this._applyValidation(D,o,s),r[o]=D)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:u,unknownKeys:i}=this._partitionOptionKeys(t);for(let o of u){let s=this._utils.schemas[o],a=s.preprocess(t[o],this._utils);this._applyValidation(a,o,s);let D=({from:d,to:c})=>{n.push(typeof c=="string"?{[c]:d}:{[c.key]:c.value})},l=({value:d,redirectTo:c})=>{let F=qt(s.deprecated(d,this._utils),a,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,c,this._utils));else for(let{value:m}of F){let h={key:o,value:m};if(!this._hasDeprecationWarned(h)){let C=typeof c=="string"?{key:c,value:m}:c;this._utils.logger.warn(this._deprecatedHandler(h,C,this._utils))}}};pt(s.forward(a,this._utils),a).forEach(D);let f=Xt(s.redirect(a,this._utils),a);if(f.redirect.forEach(D),"remain"in f){let d=f.remain;r[o]=o in r?s.overlap(r[o],d,this._utils):d,l({value:d})}for(let{from:d,to:c}of f.redirect)l({value:d,redirectTo:c})}for(let o of i){let s=t[o];this._applyUnknownHandler(o,s,r,(a,D)=>{n.push({[a]:D})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,at,this._utils)}_partitionOptionKeys(t){let[r,n]=bn(Object.keys(t).filter(u=>!this._identifyMissing(u,t)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let u=Jt(n.validate(t,this._utils),t);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(t,r,n,u){let i=this._unknownHandler(t,r,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let s=i[o];o in this._utils.schemas?u(o,s):n[o]=s}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==Ae){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let i of n){let o=r.override[i];this._applyValidation(o,i,this._utils.schemas[i]),t[i]=o}for(let i of u){let o=r.override[i];this._applyUnknownHandler(i,o,t,(s,a)=>{let D=this._utils.schemas[s];this._applyValidation(a,s,D),t[s]=a})}}}}};var Qt;function Ci(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:i,descriptor:o}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=oe;let s=u?Array.isArray(u)?(f,d)=>u.includes(f)?{[f]:d}:void 0:(f,d)=>({[f]:d}):(f,d,c)=>{let{_:F,...m}=c.schemas;return Dt(f,d,{...c,schemas:m})},a=gi(t,{isCLI:n,FlagSchema:i}),D=new Et(a,{logger:r,unknown:s,descriptor:o}),l=r!==!1;l&&Qt&&(D._hasDeprecationWarned=Qt);let p=D.normalize(e);return l&&(Qt=D._hasDeprecationWarned),p}function gi(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(ct.create({name:"_"}));for(let u of e)n.push(yi(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(lt.create({name:u.alias,sourceName:u.name}));return n}function yi(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,i={name:u},o,s={};switch(e.type){case"int":o=ht,t&&(i.preprocess=Number);break;case"string":o=je;break;case"choice":o=Ft,i.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":o=dt;break;case"flag":o=n,i.flags=r.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":o=je;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(a,D,l)=>e.exception(a)||D.validate(a,l):i.validate=(a,D,l)=>a===void 0||D.validate(a,l),e.redirect&&(s.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let a=i.preprocess||(D=>D);i.preprocess=(D,l,p)=>l.preprocess(a(Array.isArray(D)?y(!1,D,-1):D),p)}return e.array?ft.create({...t?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...s,valueSchema:o.create(i)}):o.create({...i,...s})}var In=Ci;var Ai=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return u}}},Zt=Ai;function er(e,t){if(!t)throw new Error("parserName is required.");let r=Zt(!1,e,u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Re(n)}function Rn(e,t){if(!t)throw new Error("astFormat is required.");let r=Zt(!1,e,u=>u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Re(n)}function Ct({plugins:e,parser:t}){let r=er(e,t);return tr(r,t)}function tr(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Yn(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var jn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function vi(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=dn(r,{physicalFile:r.filepath}),!r.parser)throw new Ye(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ye("No parser and no file path given, couldn't infer a parser.");let n=ot({plugins:e.plugins,showDeprecated:!0}).options,u={...jn,...Object.fromEntries(n.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=er(r.plugins,r.parser),o=await tr(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let s=(p=i.printers)!=null&&p[o.astFormat]?i:Rn(r.plugins,o.astFormat),a=await Yn(s,o.astFormat);r.printer=a;let D=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,f])=>f!==void 0)):{},l={...u,...D};for(let[f,d]of Object.entries(l))(r[f]===null||r[f]===void 0)&&(r[f]=d);return r.parser==="json"&&(r.trailingComma="none"),In(r,n,{passThrough:Object.keys(jn),...t})}var se=vi;var $n=Me(Wn(),1);async function xi(e,t){let r=await Ct(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(i){bi(i,e)}return{text:n,ast:u}}function bi(e,t){let{loc:r}=e;if(r){let n=(0,$n.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var fe=xi;async function Mn(e,t,r,n,u){let{embeddedLanguageFormatting:i,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:a}}=r;if(!o||i!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=q(o.getVisitorKeys??a),l=[];d();let p=e.stack;for(let{print:c,node:F,pathStack:m}of l)try{e.stack=m;let h=await c(f,t,e,r);h&&u.set(F,h)}catch(h){if(globalThis.PRETTIER_DEBUG)throw h}e.stack=p;function f(c,F){return Ni(c,F,r,n)}function d(){let{node:c}=e;if(c===null||typeof c!="object"||s(e))return;for(let m of D(c))Array.isArray(c[m])?e.each(d,m):e.call(d,m);let F=o(e,r);if(F){if(typeof F=="function"){l.push({print:F,node:c,pathStack:[...e.stack]});return}u.set(c,F)}}}async function Ni(e,t,r,n){let u=await se({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await fe(e,u),o=await n(i,u);return et(o)}function Oi(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:i,[Symbol.for("printedComments")]:o}=t,{node:s}=e,a=u(s),D=i(s);for(let l of n)u(l)>=a&&i(l)<=D&&o.add(l);return r.slice(a,D)}var Un=Oi;async function He(e,t){({ast:e}=await nr(e,t));let r=new Map,n=new Jr(e),u=ln(t),i=new Map;await Mn(n,s,t,He,i);let o=await Vn(n,t,s,void 0,i);if(Dn(t),t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Z,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Z];return o;function s(D,l){return D===void 0||D===n?a(l):Array.isArray(D)?n.call(()=>a(l),...D):n.call(()=>a(l),D)}function a(D){u(n);let l=n.node;if(l==null)return"";let p=l&&typeof l=="object"&&D===void 0;if(p&&r.has(l))return r.get(l);let f=Vn(n,t,s,D,i);return p&&r.set(l,f),f}}function Vn(e,t,r,n,u){var a;let{node:i}=e,{printer:o}=t,s;switch((a=o.hasPrettierIgnore)!=null&&a.call(o,e)?s=Un(e,t):u.has(i)?s=u.get(i):s=o.print(e,t,r,n),i){case t.cursorNode:s=me(s,D=>[Z,D,Z]);break;case t.nodeBeforeCursor:s=me(s,D=>[D,Z]);break;case t.nodeAfterCursor:s=me(s,D=>[Z,D]);break}return o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(s=an(e,s,t)),s}async function nr(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,un(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function Si(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,i=q(t.printer.getVisitorKeys),o=d=>n(d)<=r&&u(d)>=r,s=e,a=[e];for(let d of Qr(e,{getVisitorKeys:i,filter:o}))a.push(d),s=d;if(Zr(s,{getVisitorKeys:i}))return{cursorNode:s};let D,l,p=-1,f=Number.POSITIVE_INFINITY;for(;a.length>0&&(D===void 0||l===void 0);){s=a.pop();let d=D!==void 0,c=l!==void 0;for(let F of ge(s,{getVisitorKeys:i})){if(!d){let m=u(F);m<=r&&m>p&&(D=F,p=m)}if(!c){let m=n(F);m>=r&&mo(f,a)).filter(Boolean);let D={},l=new Set(u(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||i.has(f)||(l.has(f)?D[f]=o(s[f],s):D[f]=s[f]);let p=r(s,D,a);if(p!==null)return p??D}}var Gn=Ti;var ki=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let u=t[n];if(r(u,n,t))return n}return-1}},Kn=ki;var Li=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function Pi(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>Xn.has(u.type)&&n.has(u))}function Jn(e){let t=Kn(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function Ii(e,t,{locStart:r,locEnd:n}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let o=r(e.node);for(let a of Jn(t.parentNodes))if(r(a)>=o)i=a;else break;let s=n(t.node);for(let a of Jn(e.parentNodes)){if(n(a)<=s)u=a;else break;if(u===i)break}return{startNode:u,endNode:i}}function ur(e,t,r,n,u=[],i){let{locStart:o,locEnd:s}=r,a=o(e),D=s(e);if(!(t>D||tn);let s=e.slice(n,u).search(/\S/u),a=s===-1;if(!a)for(n+=s;u>n&&!/\S/u.test(e[u-1]);--u);let D=ur(r,n,t,(d,c)=>qn(t,d,c),[],"rangeStart"),l=a?D:ur(r,u,t,d=>qn(t,d),[],"rangeEnd");if(!D||!l)return{rangeStart:0,rangeEnd:0};let p,f;if(Li(t)){let d=Pi(D,l);p=d,f=d}else({startNode:p,endNode:f}=Ii(D,l,t));return{rangeStart:Math.min(i(p),i(f)),rangeEnd:Math.max(o(p),o(f))}}var ru="\uFEFF",Zn=Symbol("cursor");async function nu(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await fe(e,t);t.cursorOffset>=0&&(t={...t,...zn(n,t)});let i=await He(n,t,r);r>0&&(i=Qe([K,i],r,t.tabWidth));let o=Ee(i,t);if(r>0){let a=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(a),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>a.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=a+xe(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let a,D,l,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(l=o.cursorNodeStart,p=o.cursorNodeText,t.cursorNode)a=t.locStart(t.cursorNode),D=u.slice(a,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let h=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):u.length;D=u.slice(a,h)}else a=0,D=u,l=0,p=o.formatted;let f=t.cursorOffset-a;if(D===p)return{formatted:o.formatted,cursorOffset:l+f,comments:s};let d=D.split("");d.splice(f,0,Zn);let c=p.split(""),F=Cr(d,c),m=l;for(let h of F)if(h.removed){if(h.value.includes(Zn))break}else m+=h.count;return{formatted:o.formatted,cursorOffset:m,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function ji(e,t){let{ast:r,text:n}=await fe(e,t),{rangeStart:u,rangeEnd:i}=Qn(n,t,r),o=n.slice(u,i),s=Math.min(u,n.lastIndexOf(` +`,u)+1),a=n.slice(s,u).match(/^\s*/u)[0],D=Ce(a,t.tabWidth),l=await nu(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},D),p=l.formatted.trimEnd(),{cursorOffset:f}=t;f>i?f+=p.length-o.length:l.cursorOffset>=0&&(f=l.cursorOffset+u);let d=n.slice(0,u)+p+n.slice(i);if(t.endOfLine!=="lf"){let c=xe(t.endOfLine);f>=0&&c===`\r +`&&(f+=Ot(d.slice(0,f),` +`)),d=ne(!1,d,` +`,c)}return{formatted:d,cursorOffset:f,comments:l.comments}}function ir(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function eu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=ir(e,r,-1),n=ir(e,n,0),u=ir(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function uu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i}=eu(e,t),o=e.charAt(0)===ru;if(o&&(e=e.slice(1),r--,n--,u--),i==="auto"&&(i=gr(e)),e.includes("\r")){let s=a=>Ot(e.slice(0,Math.max(a,0)),`\r +`);r-=s(r),n-=s(n),u-=s(u),e=yr(e)}return{hasBOM:o,text:e,options:eu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i})}}async function tu(e,t){let r=await Ct(t);return!r.hasPragma||r.hasPragma(e)}async function or(e,t){let{hasBOM:r,text:n,options:u}=uu(e,await se(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await tu(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return u.rangeStart>0||u.rangeEnd=0&&i.cursorOffset++),i}async function iu(e,t,r){let{text:n,options:u}=uu(e,await se(t)),i=await fe(n,u);return r&&(r.preprocessForPrint&&(i.ast=await nr(i.ast,u)),r.massage&&(i.ast=Gn(i.ast,u))),i}async function ou(e,t){t=await se(t);let r=await He(e,t);return Ee(r,t)}async function su(e,t){let r=Pr(e),{formatted:n}=await or(r,{...t,parser:"__js_expression"});return n}async function au(e,t){t=await se(t);let{ast:r}=await fe(e,t);return He(r,t)}async function Du(e,t){return Ee(e,await se(t))}var sr={};Bt(sr,{builders:()=>Wi,printer:()=>$i,utils:()=>Mi});var Wi={join:Se,line:qe,softline:kr,hardline:K,literalline:Xe,group:Tt,conditionalGroup:xr,fill:br,lineSuffix:Ne,lineSuffixBoundary:Sr,cursor:Z,breakParent:Fe,ifBreak:Nr,trim:Tr,indent:le,indentIfBreak:Or,align:De,addAlignmentToDoc:Qe,markAsRoot:wr,dedentToRoot:Br,dedent:_r,hardlineWithoutBreakParent:Oe,literallineWithoutBreakParent:kt,label:Lr,concat:e=>e},$i={printDocToString:Ee},Mi={willBreak:$r,traverseDoc:be,findInDoc:Ze,mapDoc:Le,removeLines:Ur,stripTrailingHardline:et,replaceEndOfLine:Vr,canBreak:zr};var lu="3.4.1";var Dr={};Bt(Dr,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>ie,getAlignmentSize:()=>Ce,getIndentSize:()=>cu,getMaxContinuousCount:()=>fu,getNextNonSpaceNonCommentCharacter:()=>du,getNextNonSpaceNonCommentCharacterIndex:()=>ro,getPreferredQuote:()=>Fu,getStringWidth:()=>Te,hasNewline:()=>$,hasNewlineInRange:()=>mu,hasSpaces:()=>hu,isNextLineEmpty:()=>oo,isNextLineEmptyAfterIndex:()=>gt,isPreviousLineEmpty:()=>uo,makeString:()=>Eu,skip:()=>ye,skipEverythingButNewLine:()=>ut,skipInlineComment:()=>ve,skipNewline:()=>W,skipSpaces:()=>S,skipToLineEnd:()=>nt,skipTrailingComment:()=>Be,skipWhitespace:()=>en});function Ui(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var fu=Ji;function qi(e,t){let r=We(e,t);return r===!1?"":e.charAt(r)}var du=qi;var yt="'",pu='"';function Xi(e,t){let r=t===!0||t===yt?yt:pu,n=r===yt?pu:yt,u=0,i=0;for(let o of e)o===r?u++:o===n&&i++;return u>i?n:r}var Fu=Xi;function Qi(e,t,r){for(let n=t;ns===n?s:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+i+t}var Eu=eo;function to(e,t,r){return We(e,r(t))}function ro(e,t){return arguments.length===2||typeof t=="number"?We(e,t):to(...arguments)}function no(e,t,r){return Ie(e,r(t))}function uo(e,t){return arguments.length===2||typeof t=="number"?Ie(e,t):no(...arguments)}function io(e,t,r){return gt(e,r(t))}function oo(e,t){return arguments.length===2||typeof t=="number"?gt(e,t):io(...arguments)}function de(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var Cu=de(or);async function gu(e,t){let{formatted:r}=await Cu(e,{...t,cursorOffset:-1});return r}async function so(e,t){return await gu(e,t)===e}var ao=de(ot,0),Do={parse:de(iu),formatAST:de(ou),formatDoc:de(su),printToDoc:de(au),printDocToString:de(Du)};var lc=lr;export{Do as __debug,so as check,lc as default,sr as doc,gu as format,Cu as formatWithCursor,ao as getSupportInfo,Dr as util,lu as version}; diff --git a/node_modules/requireindex/.npmignore b/node_modules/requireindex/.npmignore new file mode 100644 index 00000000..b512c09d --- /dev/null +++ b/node_modules/requireindex/.npmignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/node_modules/requireindex/.travis.yml b/node_modules/requireindex/.travis.yml new file mode 100644 index 00000000..20fd86b6 --- /dev/null +++ b/node_modules/requireindex/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.10 diff --git a/node_modules/requireindex/README.md b/node_modules/requireindex/README.md new file mode 100644 index 00000000..f0dd71c8 --- /dev/null +++ b/node_modules/requireindex/README.md @@ -0,0 +1,90 @@ +# Description + +Write minimal node index.js files that require and export siblings by file basename + +# Latest Version + +1.1.0 + +# Installation +``` +npm install requireindex +``` + +or in package.json + +```json +{ + ... + "dependencies": { + "requireindex": "1.1.x" + } +} +``` + +# Usage +Check the [test directory](https://github.com/stephenhandley/requireindex/tree/master/test) for example usage. The [test/lib](https://github.com/stephenhandley/requireindex/tree/master/test/lib) looks like: + +``` +lib/ + index.js + Foo.js + bar/ + index.js + f.js + fing.js + fed/ + again.js + ignored.js + index.js + somemore.js + bam.js + _private.js + +``` + +The index.js files in [test/lib/](https://github.com/stephenhandley/requireindex/tree/master/test/lib/index.js) and [test/lib/bar/](https://github.com/stephenhandley/requireindex/tree/master/test/lib/bar/index.js) contain: + +```js +module.exports = require('requireindex')(__dirname); +``` + +and the index.js file in [test/lib/bar/fed/](https://github.com/stephenhandley/requireindex/tree/master/test/lib/bar/fed/index.js) contains: + +```js +module.exports = require('requireindex')(__dirname, ['again', 'somemore']); +``` + +The optional second argument allows you to explicitly specify the required files using their basename. In this example [test/lib/bar/fed/ignored.js](https://github.com/stephenhandley/requireindex/tree/master/test/lib/bar/fed/ignored.js) is not included as a public module. The other way to make a module/file private without the need for explicitly naming all the other included files is to prefix the filename with an underscore, as demonstrated by [test/lib/_private.js](https://github.com/stephenhandley/requireindex/tree/master/test/lib/_private.js) which is not exported. + +So, with these index.js files, the result of + +```js +require('lib'); +``` + +is: + +```js +{ + bam: { + m: [Function], + n: [Function] + }, + bar: { + f: [Function], + fed: { + again: [Function], + somemore: [Function] + }, + fing: [Function] + }, + Foo: { + l: [Function], + ls: [Function] + } +} +``` + +#Build status +[![build status](https://secure.travis-ci.org/stephenhandley/requireindex.png)](http://travis-ci.org/stephenhandley/requireindex) \ No newline at end of file diff --git a/node_modules/requireindex/index.js b/node_modules/requireindex/index.js new file mode 100644 index 00000000..4e547505 --- /dev/null +++ b/node_modules/requireindex/index.js @@ -0,0 +1,59 @@ +var FS = require('fs'); +var Path = require('path'); + +module.exports = function (dir, basenames) { + var requires = {}; + + if (arguments.length === 2) { + // if basenames argument is passed, explicitly include those files + basenames.forEach(function (basename) { + var filepath = Path.resolve(Path.join(dir, basename)); + requires[basename] = require(filepath); + }); + + } else if (arguments.length === 1) { + // if basenames arguments isn't passed, require all javascript + // files (except for those prefixed with _) and all directories + + var files = FS.readdirSync(dir); + + // sort files in lowercase alpha for linux + files.sort(function (a,b) { + a = a.toLowerCase(); + b = b.toLowerCase(); + + if (a < b) { + return -1; + } else if (b < a) { + return 1; + } else { + return 0; + } + }); + + files.forEach(function (filename) { + // ignore index.js and files prefixed with underscore and + if ((filename === 'index.js') || (filename[0] === '_') || (filename[0] === '.')) { + return; + } + + var filepath = Path.resolve(Path.join(dir, filename)); + var ext = Path.extname(filename); + var stats = FS.statSync(filepath); + + // don't require non-javascript files (.txt .md etc.) + if (stats.isFile() && !(ext in require.extensions)) { + return; + } + + var basename = Path.basename(filename, ext); + + requires[basename] = require(filepath); + }); + + } else { + throw new Error("Must pass directory as first argument"); + } + + return requires; +}; diff --git a/node_modules/requireindex/package.json b/node_modules/requireindex/package.json new file mode 100644 index 00000000..5022c124 --- /dev/null +++ b/node_modules/requireindex/package.json @@ -0,0 +1,45 @@ +{ + "name": "requireindex", + "description": "Write minimal node index.js files that require and export siblings by file basename", + "version": "1.1.0", + "license" : "MIT", + "main": "index.js", + + "repository": { + "type": "git", + "url": "git://github.com/stephenhandley/requireindex.git" + }, + + "scripts": { + "test": "node test/test.js" + }, + + "keywords": [ + "require", + "index", + "index.js" + ], + + "directories" : { + "lib" : ".", + "test" : "test" + }, + + "bugs": { + "url" : "http://github.com/stephenhandley/requireindex/issues" + }, + + "engines" : { + "node" : ">=0.10.5" + }, + + "devDependencies": { + "asserts": "4.0.x" + }, + + "author": { + "name": "Stephen Handley", + "email": "stephen.handley@gmail.com", + "url": "http://person.sh" + } +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/.also_private/private.txt b/node_modules/requireindex/test/lib/.also_private/private.txt new file mode 100644 index 00000000..9309ea88 --- /dev/null +++ b/node_modules/requireindex/test/lib/.also_private/private.txt @@ -0,0 +1 @@ +barf \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/Foo.js b/node_modules/requireindex/test/lib/Foo.js new file mode 100644 index 00000000..e4f95db2 --- /dev/null +++ b/node_modules/requireindex/test/lib/Foo.js @@ -0,0 +1,4 @@ +module.exports = { + l: function() { return "yes"; }, + ls: function() { return "yep"; } +}; \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/_private.js b/node_modules/requireindex/test/lib/_private.js new file mode 100644 index 00000000..e0ec6f04 --- /dev/null +++ b/node_modules/requireindex/test/lib/_private.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "ack"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bam.js b/node_modules/requireindex/test/lib/bam.js new file mode 100644 index 00000000..a2120bfc --- /dev/null +++ b/node_modules/requireindex/test/lib/bam.js @@ -0,0 +1,4 @@ +module.exports = { + m: function() { return "ok"; }, + n: require('./_private') +}; \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/f.js b/node_modules/requireindex/test/lib/bar/f.js new file mode 100644 index 00000000..4d87faef --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/f.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "yea"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/fed/again.js b/node_modules/requireindex/test/lib/bar/fed/again.js new file mode 100644 index 00000000..d348495b --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/fed/again.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "again"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/fed/ignored.js b/node_modules/requireindex/test/lib/bar/fed/ignored.js new file mode 100644 index 00000000..b9f725f0 --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/fed/ignored.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "ignored"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/fed/index.js b/node_modules/requireindex/test/lib/bar/fed/index.js new file mode 100644 index 00000000..1664a191 --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/fed/index.js @@ -0,0 +1 @@ +module.exports = require('../../../../')(__dirname, ['again', 'somemore']) \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/fed/somemore.js b/node_modules/requireindex/test/lib/bar/fed/somemore.js new file mode 100644 index 00000000..b5e7a2c6 --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/fed/somemore.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "somemore"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/fing.js b/node_modules/requireindex/test/lib/bar/fing.js new file mode 100644 index 00000000..e953f285 --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/fing.js @@ -0,0 +1,3 @@ +module.exports = function() { + return "definitely"; +} \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/bar/index.js b/node_modules/requireindex/test/lib/bar/index.js new file mode 100644 index 00000000..e7b4f977 --- /dev/null +++ b/node_modules/requireindex/test/lib/bar/index.js @@ -0,0 +1 @@ +module.exports = require('../../../')(__dirname) \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/index.js b/node_modules/requireindex/test/lib/index.js new file mode 100644 index 00000000..f76e34d3 --- /dev/null +++ b/node_modules/requireindex/test/lib/index.js @@ -0,0 +1 @@ +module.exports = require('../../')(__dirname) \ No newline at end of file diff --git a/node_modules/requireindex/test/lib/not_javascript.txt b/node_modules/requireindex/test/lib/not_javascript.txt new file mode 100644 index 00000000..a3726632 --- /dev/null +++ b/node_modules/requireindex/test/lib/not_javascript.txt @@ -0,0 +1 @@ +asdf 1 2 / @ 123 \ No newline at end of file diff --git a/node_modules/requireindex/test/test.js b/node_modules/requireindex/test/test.js new file mode 100644 index 00000000..91386fb7 --- /dev/null +++ b/node_modules/requireindex/test/test.js @@ -0,0 +1,43 @@ +var Assert = require('assert'); +var Asserts = require('asserts'); + +Asserts(function () { + var lib = require('./lib'); + + return { + "requireindex should": { + "properly include files parallel to index.js and maintain structure": function () { + Asserts.all.equal([ + [lib.bam.m, [], "ok"], + [lib.bar.f, [], "yea"], + [lib.bar.fing, [], 'definitely'], + [lib.Foo.l, [], 'yes'], + [lib.Foo.ls, [], 'yep'], + [lib.bam.n, [], 'ack'], + [lib.bar.fed.again, [], 'again'], + [lib.bar.fed.somemore, [], 'somemore'] + ]); + }, + + "ignore _ prefixed files": function () { + Assert.equal(('_private' in lib), false); + }, + + "not include files not mentioned when second array argument is used": function () { + Assert.equal(('ignored' in lib.bar.fed), false); + }, + + "ignore non javascript files": function () { + Assert.equal(('not_javascript' in lib), false); + }, + + "sort files by lowercase alpha of the filename": function () { + Assert.equal(Object.keys(lib)[0], 'bam'); + }, + + "ignore dot files": function () { + Assert.equal(('.also_private' in lib), false); + }, + } + }; +}); \ No newline at end of file diff --git a/node_modules/rimraf/CHANGELOG.md b/node_modules/rimraf/CHANGELOG.md deleted file mode 100644 index f116f141..00000000 --- a/node_modules/rimraf/CHANGELOG.md +++ /dev/null @@ -1,65 +0,0 @@ -# v3.0 - -- Add `--preserve-root` option to executable (default true) -- Drop support for Node.js below version 6 - -# v2.7 - -- Make `glob` an optional dependency - -# 2.6 - -- Retry on EBUSY on non-windows platforms as well -- Make `rimraf.sync` 10000% more reliable on Windows - -# 2.5 - -- Handle Windows EPERM when lstat-ing read-only dirs -- Add glob option to pass options to glob - -# 2.4 - -- Add EPERM to delay/retry loop -- Add `disableGlob` option - -# 2.3 - -- Make maxBusyTries and emfileWait configurable -- Handle weird SunOS unlink-dir issue -- Glob the CLI arg for better Windows support - -# 2.2 - -- Handle ENOENT properly on Windows -- Allow overriding fs methods -- Treat EPERM as indicative of non-empty dir -- Remove optional graceful-fs dep -- Consistently return null error instead of undefined on success -- win32: Treat ENOTEMPTY the same as EBUSY -- Add `rimraf` binary - -# 2.1 - -- Fix SunOS error code for a non-empty directory -- Try rmdir before readdir -- Treat EISDIR like EPERM -- Remove chmod -- Remove lstat polyfill, node 0.7 is not supported - -# 2.0 - -- Fix myGid call to check process.getgid -- Simplify the EBUSY backoff logic. -- Use fs.lstat in node >= 0.7.9 -- Remove gently option -- remove fiber implementation -- Delete files that are marked read-only - -# 1.0 - -- Allow ENOENT in sync method -- Throw when no callback is provided -- Make opts.gently an absolute path -- use 'stat' if 'lstat' is not available -- Consistent error naming, and rethrow non-ENOENT stat errors -- add fiber implementation diff --git a/node_modules/rimraf/LICENSE b/node_modules/rimraf/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/rimraf/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/rimraf/README.md b/node_modules/rimraf/README.md deleted file mode 100644 index 423b8cf8..00000000 --- a/node_modules/rimraf/README.md +++ /dev/null @@ -1,101 +0,0 @@ -[![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies) - -The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node. - -Install with `npm install rimraf`, or just drop rimraf.js somewhere. - -## API - -`rimraf(f, [opts], callback)` - -The first parameter will be interpreted as a globbing pattern for files. If you -want to disable globbing you can do so with `opts.disableGlob` (defaults to -`false`). This might be handy, for instance, if you have filenames that contain -globbing wildcard characters. - -The callback will be called with an error if there is one. Certain -errors are handled for you: - -* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of - `opts.maxBusyTries` times before giving up, adding 100ms of wait - between each attempt. The default `maxBusyTries` is 3. -* `ENOENT` - If the file doesn't exist, rimraf will return - successfully, since your desired outcome is already the case. -* `EMFILE` - Since `readdir` requires opening a file descriptor, it's - possible to hit `EMFILE` if too many file descriptors are in use. - In the sync case, there's nothing to be done for this. But in the - async case, rimraf will gradually back off with timeouts up to - `opts.emfileWait` ms, which defaults to 1000. - -## options - -* unlink, chmod, stat, lstat, rmdir, readdir, - unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync - - In order to use a custom file system library, you can override - specific fs functions on the options object. - - If any of these functions are present on the options object, then - the supplied function will be used instead of the default fs - method. - - Sync methods are only relevant for `rimraf.sync()`, of course. - - For example: - - ```javascript - var myCustomFS = require('some-custom-fs') - - rimraf('some-thing', myCustomFS, callback) - ``` - -* maxBusyTries - - If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered - on Windows systems, then rimraf will retry with a linear backoff - wait of 100ms longer on each try. The default maxBusyTries is 3. - - Only relevant for async usage. - -* emfileWait - - If an `EMFILE` error is encountered, then rimraf will retry - repeatedly with a linear backoff of 1ms longer on each try, until - the timeout counter hits this max. The default limit is 1000. - - If you repeatedly encounter `EMFILE` errors, then consider using - [graceful-fs](http://npm.im/graceful-fs) in your program. - - Only relevant for async usage. - -* glob - - Set to `false` to disable [glob](http://npm.im/glob) pattern - matching. - - Set to an object to pass options to the glob module. The default - glob options are `{ nosort: true, silent: true }`. - - Glob version 6 is used in this module. - - Relevant for both sync and async usage. - -* disableGlob - - Set to any non-falsey value to disable globbing entirely. - (Equivalent to setting `glob: false`.) - -## rimraf.sync - -It can remove stuff synchronously, too. But that's not so good. Use -the async API. It's better. - -## CLI - -If installed with `npm install rimraf -g` it can be used as a global -command `rimraf [ ...]` which is useful for cross platform support. - -## mkdirp - -If you need to create a directory recursively, check out -[mkdirp](https://github.com/substack/node-mkdirp). diff --git a/node_modules/rimraf/bin.js b/node_modules/rimraf/bin.js deleted file mode 100755 index 023814cc..00000000 --- a/node_modules/rimraf/bin.js +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env node - -const rimraf = require('./') - -const path = require('path') - -const isRoot = arg => /^(\/|[a-zA-Z]:\\)$/.test(path.resolve(arg)) -const filterOutRoot = arg => { - const ok = preserveRoot === false || !isRoot(arg) - if (!ok) { - console.error(`refusing to remove ${arg}`) - console.error('Set --no-preserve-root to allow this') - } - return ok -} - -let help = false -let dashdash = false -let noglob = false -let preserveRoot = true -const args = process.argv.slice(2).filter(arg => { - if (dashdash) - return !!arg - else if (arg === '--') - dashdash = true - else if (arg === '--no-glob' || arg === '-G') - noglob = true - else if (arg === '--glob' || arg === '-g') - noglob = false - else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/)) - help = true - else if (arg === '--preserve-root') - preserveRoot = true - else if (arg === '--no-preserve-root') - preserveRoot = false - else - return !!arg -}).filter(arg => !preserveRoot || filterOutRoot(arg)) - -const go = n => { - if (n >= args.length) - return - const options = noglob ? { glob: false } : {} - rimraf(args[n], options, er => { - if (er) - throw er - go(n+1) - }) -} - -if (help || args.length === 0) { - // If they didn't ask for help, then this is not a "success" - const log = help ? console.log : console.error - log('Usage: rimraf [ ...]') - log('') - log(' Deletes all files and folders at "path" recursively.') - log('') - log('Options:') - log('') - log(' -h, --help Display this usage info') - log(' -G, --no-glob Do not expand glob patterns in arguments') - log(' -g, --glob Expand glob patterns in arguments (default)') - log(' --preserve-root Do not remove \'/\' (default)') - log(' --no-preserve-root Do not treat \'/\' specially') - log(' -- Stop parsing flags') - process.exit(help ? 0 : 1) -} else - go(0) diff --git a/node_modules/rimraf/node_modules/brace-expansion/LICENSE b/node_modules/rimraf/node_modules/brace-expansion/LICENSE deleted file mode 100644 index de322667..00000000 --- a/node_modules/rimraf/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/node_modules/rimraf/node_modules/brace-expansion/README.md b/node_modules/rimraf/node_modules/brace-expansion/README.md deleted file mode 100644 index 6b4e0e16..00000000 --- a/node_modules/rimraf/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/node_modules/rimraf/node_modules/brace-expansion/index.js b/node_modules/rimraf/node_modules/brace-expansion/index.js deleted file mode 100644 index 0478be81..00000000 --- a/node_modules/rimraf/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,201 +0,0 @@ -var concatMap = require('concat-map'); -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function identity(e) { - return e; -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m || /\$$/.test(m.pre)) return [str]; - - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length - ? expand(m.post, false) - : ['']; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { return expand(el, false) }); - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - - return expansions; -} - diff --git a/node_modules/rimraf/node_modules/brace-expansion/package.json b/node_modules/rimraf/node_modules/brace-expansion/package.json deleted file mode 100644 index a18faa8f..00000000 --- a/node_modules/rimraf/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "1.1.11", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/node_modules/rimraf/node_modules/glob/LICENSE b/node_modules/rimraf/node_modules/glob/LICENSE deleted file mode 100644 index 42ca266d..00000000 --- a/node_modules/rimraf/node_modules/glob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -## Glob Logo - -Glob's logo created by Tanya Brassie , licensed -under a Creative Commons Attribution-ShareAlike 4.0 International License -https://creativecommons.org/licenses/by-sa/4.0/ diff --git a/node_modules/rimraf/node_modules/glob/README.md b/node_modules/rimraf/node_modules/glob/README.md deleted file mode 100644 index 83f0c83a..00000000 --- a/node_modules/rimraf/node_modules/glob/README.md +++ /dev/null @@ -1,378 +0,0 @@ -# Glob - -Match files using the patterns the shell uses, like stars and stuff. - -[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master) - -This is a glob implementation in JavaScript. It uses the `minimatch` -library to do its matching. - -![a fun cartoon logo made of glob characters](logo/glob.png) - -## Usage - -Install with npm - -``` -npm i glob -``` - -```javascript -var glob = require("glob") - -// options is optional -glob("**/*.js", options, function (er, files) { - // files is an array of filenames. - // If the `nonull` option is set, and nothing - // was found, then files is ["**/*.js"] - // er is an error object or null. -}) -``` - -## Glob Primer - -"Globs" are the patterns you type when you do stuff like `ls *.js` on -the command line, or put `build/*` in a `.gitignore` file. - -Before parsing the path part patterns, braced sections are expanded -into a set. Braced sections start with `{` and end with `}`, with any -number of comma-delimited sections within. Braced sections may contain -slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`. - -The following characters have special magic meaning when used in a -path portion: - -* `*` Matches 0 or more characters in a single path portion -* `?` Matches 1 character -* `[...]` Matches a range of characters, similar to a RegExp range. - If the first character of the range is `!` or `^` then it matches - any character not in the range. -* `!(pattern|pattern|pattern)` Matches anything that does not match - any of the patterns provided. -* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the - patterns provided. -* `+(pattern|pattern|pattern)` Matches one or more occurrences of the - patterns provided. -* `*(a|b|c)` Matches zero or more occurrences of the patterns provided -* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns - provided -* `**` If a "globstar" is alone in a path portion, then it matches - zero or more directories and subdirectories searching for matches. - It does not crawl symlinked directories. - -### Dots - -If a file or directory path portion has a `.` as the first character, -then it will not match any glob pattern unless that pattern's -corresponding path part also has a `.` as its first character. - -For example, the pattern `a/.*/c` would match the file at `a/.b/c`. -However the pattern `a/*/c` would not, because `*` does not start with -a dot character. - -You can make glob treat dots as normal characters by setting -`dot:true` in the options. - -### Basename Matching - -If you set `matchBase:true` in the options, and the pattern has no -slashes in it, then it will seek for any file anywhere in the tree -with a matching basename. For example, `*.js` would match -`test/simple/basic.js`. - -### Empty Sets - -If no matching files are found, then an empty array is returned. This -differs from the shell, where the pattern itself is returned. For -example: - - $ echo a*s*d*f - a*s*d*f - -To get the bash-style behavior, set the `nonull:true` in the options. - -### See Also: - -* `man sh` -* `man bash` (Search for "Pattern Matching") -* `man 3 fnmatch` -* `man 5 gitignore` -* [minimatch documentation](https://github.com/isaacs/minimatch) - -## glob.hasMagic(pattern, [options]) - -Returns `true` if there are any special characters in the pattern, and -`false` otherwise. - -Note that the options affect the results. If `noext:true` is set in -the options object, then `+(a|b)` will not be considered a magic -pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}` -then that is considered magical, unless `nobrace:true` is set in the -options. - -## glob(pattern, [options], cb) - -* `pattern` `{String}` Pattern to be matched -* `options` `{Object}` -* `cb` `{Function}` - * `err` `{Error | null}` - * `matches` `{Array}` filenames found matching the pattern - -Perform an asynchronous glob search. - -## glob.sync(pattern, [options]) - -* `pattern` `{String}` Pattern to be matched -* `options` `{Object}` -* return: `{Array}` filenames found matching the pattern - -Perform a synchronous glob search. - -## Class: glob.Glob - -Create a Glob object by instantiating the `glob.Glob` class. - -```javascript -var Glob = require("glob").Glob -var mg = new Glob(pattern, options, cb) -``` - -It's an EventEmitter, and starts walking the filesystem to find matches -immediately. - -### new glob.Glob(pattern, [options], [cb]) - -* `pattern` `{String}` pattern to search for -* `options` `{Object}` -* `cb` `{Function}` Called when an error occurs, or matches are found - * `err` `{Error | null}` - * `matches` `{Array}` filenames found matching the pattern - -Note that if the `sync` flag is set in the options, then matches will -be immediately available on the `g.found` member. - -### Properties - -* `minimatch` The minimatch object that the glob uses. -* `options` The options object passed in. -* `aborted` Boolean which is set to true when calling `abort()`. There - is no way at this time to continue a glob search after aborting, but - you can re-use the statCache to avoid having to duplicate syscalls. -* `cache` Convenience object. Each field has the following possible - values: - * `false` - Path does not exist - * `true` - Path exists - * `'FILE'` - Path exists, and is not a directory - * `'DIR'` - Path exists, and is a directory - * `[file, entries, ...]` - Path exists, is a directory, and the - array value is the results of `fs.readdir` -* `statCache` Cache of `fs.stat` results, to prevent statting the same - path multiple times. -* `symlinks` A record of which paths are symbolic links, which is - relevant in resolving `**` patterns. -* `realpathCache` An optional object which is passed to `fs.realpath` - to minimize unnecessary syscalls. It is stored on the instantiated - Glob object, and may be re-used. - -### Events - -* `end` When the matching is finished, this is emitted with all the - matches found. If the `nonull` option is set, and no match was found, - then the `matches` list contains the original pattern. The matches - are sorted, unless the `nosort` flag is set. -* `match` Every time a match is found, this is emitted with the specific - thing that matched. It is not deduplicated or resolved to a realpath. -* `error` Emitted when an unexpected error is encountered, or whenever - any fs error occurs if `options.strict` is set. -* `abort` When `abort()` is called, this event is raised. - -### Methods - -* `pause` Temporarily stop the search -* `resume` Resume the search -* `abort` Stop the search forever - -### Options - -All the options that can be passed to Minimatch can also be passed to -Glob to change pattern matching behavior. Also, some have been added, -or have glob-specific ramifications. - -All options are false by default, unless otherwise noted. - -All options are added to the Glob object, as well. - -If you are running many `glob` operations, you can pass a Glob object -as the `options` argument to a subsequent operation to shortcut some -`stat` and `readdir` calls. At the very least, you may pass in shared -`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that -parallel glob operations will be sped up by sharing information about -the filesystem. - -* `cwd` The current working directory in which to search. Defaults - to `process.cwd()`. -* `root` The place where patterns starting with `/` will be mounted - onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix - systems, and `C:\` or some such on Windows.) -* `dot` Include `.dot` files in normal matches and `globstar` matches. - Note that an explicit dot in a portion of the pattern will always - match dot files. -* `nomount` By default, a pattern starting with a forward-slash will be - "mounted" onto the root setting, so that a valid filesystem path is - returned. Set this flag to disable that behavior. -* `mark` Add a `/` character to directory matches. Note that this - requires additional stat calls. -* `nosort` Don't sort the results. -* `stat` Set to true to stat *all* results. This reduces performance - somewhat, and is completely unnecessary, unless `readdir` is presumed - to be an untrustworthy indicator of file existence. -* `silent` When an unusual error is encountered when attempting to - read a directory, a warning will be printed to stderr. Set the - `silent` option to true to suppress these warnings. -* `strict` When an unusual error is encountered when attempting to - read a directory, the process will just continue on in search of - other matches. Set the `strict` option to raise an error in these - cases. -* `cache` See `cache` property above. Pass in a previously generated - cache object to save some fs calls. -* `statCache` A cache of results of filesystem information, to prevent - unnecessary stat calls. While it should not normally be necessary - to set this, you may pass the statCache from one glob() call to the - options object of another, if you know that the filesystem will not - change between calls. (See "Race Conditions" below.) -* `symlinks` A cache of known symbolic links. You may pass in a - previously generated `symlinks` object to save `lstat` calls when - resolving `**` matches. -* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead. -* `nounique` In some cases, brace-expanded patterns can result in the - same file showing up multiple times in the result set. By default, - this implementation prevents duplicates in the result set. Set this - flag to disable that behavior. -* `nonull` Set to never return an empty set, instead returning a set - containing the pattern itself. This is the default in glob(3). -* `debug` Set to enable debug logging in minimatch and glob. -* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets. -* `noglobstar` Do not match `**` against multiple filenames. (Ie, - treat it as a normal `*` instead.) -* `noext` Do not match `+(a|b)` "extglob" patterns. -* `nocase` Perform a case-insensitive match. Note: on - case-insensitive filesystems, non-magic patterns will match by - default, since `stat` and `readdir` will not raise errors. -* `matchBase` Perform a basename-only match if the pattern does not - contain any slash characters. That is, `*.js` would be treated as - equivalent to `**/*.js`, matching all js files in all directories. -* `nodir` Do not match directories, only files. (Note: to match - *only* directories, simply put a `/` at the end of the pattern.) -* `ignore` Add a pattern or an array of glob patterns to exclude matches. - Note: `ignore` patterns are *always* in `dot:true` mode, regardless - of any other settings. -* `follow` Follow symlinked directories when expanding `**` patterns. - Note that this can result in a lot of duplicate references in the - presence of cyclic links. -* `realpath` Set to true to call `fs.realpath` on all of the results. - In the case of a symlink that cannot be resolved, the full absolute - path to the matched entry is returned (though it will usually be a - broken symlink) -* `absolute` Set to true to always receive absolute paths for matched - files. Unlike `realpath`, this also affects the values returned in - the `match` event. -* `fs` File-system object with Node's `fs` API. By default, the built-in - `fs` module will be used. Set to a volume provided by a library like - `memfs` to avoid using the "real" file-system. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between node-glob and other -implementations, and are intentional. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.3, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -Note that symlinked directories are not crawled as part of a `**`, -though their contents may match against subsequent portions of the -pattern. This prevents infinite loops and duplicates and the like. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then glob returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. - -### Comments and Negation - -Previously, this module let you mark a pattern as a "comment" if it -started with a `#` character, or a "negated" pattern if it started -with a `!` character. - -These options were deprecated in version 5, and removed in version 6. - -To specify things that should not match, use the `ignore` option. - -## Windows - -**Please only use forward-slashes in glob expressions.** - -Though windows uses either `/` or `\` as its path separator, only `/` -characters are used by this glob implementation. You must use -forward-slashes **only** in glob expressions. Back-slashes will always -be interpreted as escape characters, not path separators. - -Results from absolute patterns such as `/foo/*` are mounted onto the -root setting using `path.join`. On windows, this will by default result -in `/foo/*` matching `C:\foo\bar.txt`. - -## Race Conditions - -Glob searching, by its very nature, is susceptible to race conditions, -since it relies on directory walking and such. - -As a result, it is possible that a file that exists when glob looks for -it may have been deleted or modified by the time it returns the result. - -As part of its internal implementation, this program caches all stat -and readdir calls that it makes, in order to cut down on system -overhead. However, this also makes it even more susceptible to races, -especially if the cache or statCache objects are reused between glob -calls. - -Users are thus advised not to use a glob result as a guarantee of -filesystem state in the face of rapid changes. For the vast majority -of operations, this is never a problem. - -## Glob Logo -Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo). - -The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/). - -## Contributing - -Any change to behavior (including bugfixes) must come with a test. - -Patches that fail tests or reduce performance will be rejected. - -``` -# to run tests -npm test - -# to re-generate test fixtures -npm run test-regen - -# to benchmark against bash/zsh -npm run bench - -# to profile javascript -npm run prof -``` - -![](oh-my-glob.gif) diff --git a/node_modules/rimraf/node_modules/glob/common.js b/node_modules/rimraf/node_modules/glob/common.js deleted file mode 100644 index 424c46e1..00000000 --- a/node_modules/rimraf/node_modules/glob/common.js +++ /dev/null @@ -1,238 +0,0 @@ -exports.setopts = setopts -exports.ownProp = ownProp -exports.makeAbs = makeAbs -exports.finish = finish -exports.mark = mark -exports.isIgnored = isIgnored -exports.childrenIgnored = childrenIgnored - -function ownProp (obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field) -} - -var fs = require("fs") -var path = require("path") -var minimatch = require("minimatch") -var isAbsolute = require("path-is-absolute") -var Minimatch = minimatch.Minimatch - -function alphasort (a, b) { - return a.localeCompare(b, 'en') -} - -function setupIgnores (self, options) { - self.ignore = options.ignore || [] - - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore] - - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap) - } -} - -// ignore patterns are always in dot:true mode. -function ignoreMap (pattern) { - var gmatcher = null - if (pattern.slice(-3) === '/**') { - var gpattern = pattern.replace(/(\/\*\*)+$/, '') - gmatcher = new Minimatch(gpattern, { dot: true }) - } - - return { - matcher: new Minimatch(pattern, { dot: true }), - gmatcher: gmatcher - } -} - -function setopts (self, pattern, options) { - if (!options) - options = {} - - // base-matching: just use globstar for that. - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar") - } - pattern = "**/" + pattern - } - - self.silent = !!options.silent - self.pattern = pattern - self.strict = options.strict !== false - self.realpath = !!options.realpath - self.realpathCache = options.realpathCache || Object.create(null) - self.follow = !!options.follow - self.dot = !!options.dot - self.mark = !!options.mark - self.nodir = !!options.nodir - if (self.nodir) - self.mark = true - self.sync = !!options.sync - self.nounique = !!options.nounique - self.nonull = !!options.nonull - self.nosort = !!options.nosort - self.nocase = !!options.nocase - self.stat = !!options.stat - self.noprocess = !!options.noprocess - self.absolute = !!options.absolute - self.fs = options.fs || fs - - self.maxLength = options.maxLength || Infinity - self.cache = options.cache || Object.create(null) - self.statCache = options.statCache || Object.create(null) - self.symlinks = options.symlinks || Object.create(null) - - setupIgnores(self, options) - - self.changedCwd = false - var cwd = process.cwd() - if (!ownProp(options, "cwd")) - self.cwd = cwd - else { - self.cwd = path.resolve(options.cwd) - self.changedCwd = self.cwd !== cwd - } - - self.root = options.root || path.resolve(self.cwd, "/") - self.root = path.resolve(self.root) - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/") - - // TODO: is an absolute `cwd` supposed to be resolved against `root`? - // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test') - self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) - if (process.platform === "win32") - self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") - self.nomount = !!options.nomount - - // disable comments and negation in Minimatch. - // Note that they are not supported in Glob itself anyway. - options.nonegate = true - options.nocomment = true - // always treat \ in patterns as escapes, not path separators - options.allowWindowsEscape = false - - self.minimatch = new Minimatch(pattern, options) - self.options = self.minimatch.options -} - -function finish (self) { - var nou = self.nounique - var all = nou ? [] : Object.create(null) - - for (var i = 0, l = self.matches.length; i < l; i ++) { - var matches = self.matches[i] - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - // do like the shell, and spit out the literal glob - var literal = self.minimatch.globSet[i] - if (nou) - all.push(literal) - else - all[literal] = true - } - } else { - // had matches - var m = Object.keys(matches) - if (nou) - all.push.apply(all, m) - else - m.forEach(function (m) { - all[m] = true - }) - } - } - - if (!nou) - all = Object.keys(all) - - if (!self.nosort) - all = all.sort(alphasort) - - // at *some* point we statted all of these - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]) - } - if (self.nodir) { - all = all.filter(function (e) { - var notDir = !(/\/$/.test(e)) - var c = self.cache[e] || self.cache[makeAbs(self, e)] - if (notDir && c) - notDir = c !== 'DIR' && !Array.isArray(c) - return notDir - }) - } - } - - if (self.ignore.length) - all = all.filter(function(m) { - return !isIgnored(self, m) - }) - - self.found = all -} - -function mark (self, p) { - var abs = makeAbs(self, p) - var c = self.cache[abs] - var m = p - if (c) { - var isDir = c === 'DIR' || Array.isArray(c) - var slash = p.slice(-1) === '/' - - if (isDir && !slash) - m += '/' - else if (!isDir && slash) - m = m.slice(0, -1) - - if (m !== p) { - var mabs = makeAbs(self, m) - self.statCache[mabs] = self.statCache[abs] - self.cache[mabs] = self.cache[abs] - } - } - - return m -} - -// lotta situps... -function makeAbs (self, f) { - var abs = f - if (f.charAt(0) === '/') { - abs = path.join(self.root, f) - } else if (isAbsolute(f) || f === '') { - abs = f - } else if (self.changedCwd) { - abs = path.resolve(self.cwd, f) - } else { - abs = path.resolve(f) - } - - if (process.platform === 'win32') - abs = abs.replace(/\\/g, '/') - - return abs -} - - -// Return true, if pattern ends with globstar '**', for the accompanying parent directory. -// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents -function isIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) - }) -} - -function childrenIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path)) - }) -} diff --git a/node_modules/rimraf/node_modules/glob/glob.js b/node_modules/rimraf/node_modules/glob/glob.js deleted file mode 100644 index 37a4d7e6..00000000 --- a/node_modules/rimraf/node_modules/glob/glob.js +++ /dev/null @@ -1,790 +0,0 @@ -// Approach: -// -// 1. Get the minimatch set -// 2. For each pattern in the set, PROCESS(pattern, false) -// 3. Store matches per-set, then uniq them -// -// PROCESS(pattern, inGlobStar) -// Get the first [n] items from pattern that are all strings -// Join these together. This is PREFIX. -// If there is no more remaining, then stat(PREFIX) and -// add to matches if it succeeds. END. -// -// If inGlobStar and PREFIX is symlink and points to dir -// set ENTRIES = [] -// else readdir(PREFIX) as ENTRIES -// If fail, END -// -// with ENTRIES -// If pattern[n] is GLOBSTAR -// // handle the case where the globstar match is empty -// // by pruning it out, and testing the resulting pattern -// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) -// // handle other cases. -// for ENTRY in ENTRIES (not dotfiles) -// // attach globstar + tail onto the entry -// // Mark that this entry is a globstar match -// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) -// -// else // not globstar -// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) -// Test ENTRY against pattern[n] -// If fails, continue -// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) -// -// Caveat: -// Cache all stats and readdirs results to minimize syscall. Since all -// we ever care about is existence and directory-ness, we can just keep -// `true` for files, and [children,...] for directories, or `false` for -// things that don't exist. - -module.exports = glob - -var rp = require('fs.realpath') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var inherits = require('inherits') -var EE = require('events').EventEmitter -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var globSync = require('./sync.js') -var common = require('./common.js') -var setopts = common.setopts -var ownProp = common.ownProp -var inflight = require('inflight') -var util = require('util') -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -var once = require('once') - -function glob (pattern, options, cb) { - if (typeof options === 'function') cb = options, options = {} - if (!options) options = {} - - if (options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return globSync(pattern, options) - } - - return new Glob(pattern, options, cb) -} - -glob.sync = globSync -var GlobSync = glob.GlobSync = globSync.GlobSync - -// old api surface -glob.glob = glob - -function extend (origin, add) { - if (add === null || typeof add !== 'object') { - return origin - } - - var keys = Object.keys(add) - var i = keys.length - while (i--) { - origin[keys[i]] = add[keys[i]] - } - return origin -} - -glob.hasMagic = function (pattern, options_) { - var options = extend({}, options_) - options.noprocess = true - - var g = new Glob(pattern, options) - var set = g.minimatch.set - - if (!pattern) - return false - - if (set.length > 1) - return true - - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== 'string') - return true - } - - return false -} - -glob.Glob = Glob -inherits(Glob, EE) -function Glob (pattern, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - - if (options && options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return new GlobSync(pattern, options) - } - - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb) - - setopts(this, pattern, options) - this._didRealPath = false - - // process each pattern in the minimatch set - var n = this.minimatch.set.length - - // The matches are stored as {: true,...} so that - // duplicates are automagically pruned. - // Later, we do an Object.keys() on these. - // Keep them as a list so we can fill in when nonull is set. - this.matches = new Array(n) - - if (typeof cb === 'function') { - cb = once(cb) - this.on('error', cb) - this.on('end', function (matches) { - cb(null, matches) - }) - } - - var self = this - this._processing = 0 - - this._emitQueue = [] - this._processQueue = [] - this.paused = false - - if (this.noprocess) - return this - - if (n === 0) - return done() - - var sync = true - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false, done) - } - sync = false - - function done () { - --self._processing - if (self._processing <= 0) { - if (sync) { - process.nextTick(function () { - self._finish() - }) - } else { - self._finish() - } - } - } -} - -Glob.prototype._finish = function () { - assert(this instanceof Glob) - if (this.aborted) - return - - if (this.realpath && !this._didRealpath) - return this._realpath() - - common.finish(this) - this.emit('end', this.found) -} - -Glob.prototype._realpath = function () { - if (this._didRealpath) - return - - this._didRealpath = true - - var n = this.matches.length - if (n === 0) - return this._finish() - - var self = this - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next) - - function next () { - if (--n === 0) - self._finish() - } -} - -Glob.prototype._realpathSet = function (index, cb) { - var matchset = this.matches[index] - if (!matchset) - return cb() - - var found = Object.keys(matchset) - var self = this - var n = found.length - - if (n === 0) - return cb() - - var set = this.matches[index] = Object.create(null) - found.forEach(function (p, i) { - // If there's a problem with the stat, then it means that - // one or more of the links in the realpath couldn't be - // resolved. just return the abs value in that case. - p = self._makeAbs(p) - rp.realpath(p, self.realpathCache, function (er, real) { - if (!er) - set[real] = true - else if (er.syscall === 'stat') - set[p] = true - else - self.emit('error', er) // srsly wtf right here - - if (--n === 0) { - self.matches[index] = set - cb() - } - }) - }) -} - -Glob.prototype._mark = function (p) { - return common.mark(this, p) -} - -Glob.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} - -Glob.prototype.abort = function () { - this.aborted = true - this.emit('abort') -} - -Glob.prototype.pause = function () { - if (!this.paused) { - this.paused = true - this.emit('pause') - } -} - -Glob.prototype.resume = function () { - if (this.paused) { - this.emit('resume') - this.paused = false - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0) - this._emitQueue.length = 0 - for (var i = 0; i < eq.length; i ++) { - var e = eq[i] - this._emitMatch(e[0], e[1]) - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0) - this._processQueue.length = 0 - for (var i = 0; i < pq.length; i ++) { - var p = pq[i] - this._processing-- - this._process(p[0], p[1], p[2], p[3]) - } - } - } -} - -Glob.prototype._process = function (pattern, index, inGlobStar, cb) { - assert(this instanceof Glob) - assert(typeof cb === 'function') - - if (this.aborted) - return - - this._processing++ - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]) - return - } - - //console.error('PROCESS %d', this._processing, pattern) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // see if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index, cb) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || - isAbsolute(pattern.map(function (p) { - return typeof p === 'string' ? p : '[*]' - }).join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip _processing - if (childrenIgnored(this, read)) - return cb() - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) -} - -Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - -Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return cb() - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return cb() - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return cb() - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - this._process([e].concat(remain), index, inGlobStar, cb) - } - cb() -} - -Glob.prototype._emitMatch = function (index, e) { - if (this.aborted) - return - - if (isIgnored(this, e)) - return - - if (this.paused) { - this._emitQueue.push([index, e]) - return - } - - var abs = isAbsolute(e) ? e : this._makeAbs(e) - - if (this.mark) - e = this._mark(e) - - if (this.absolute) - e = abs - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - - var st = this.statCache[abs] - if (st) - this.emit('stat', e, st) - - this.emit('match', e) -} - -Glob.prototype._readdirInGlobStar = function (abs, cb) { - if (this.aborted) - return - - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false, cb) - - var lstatkey = 'lstat\0' + abs - var self = this - var lstatcb = inflight(lstatkey, lstatcb_) - - if (lstatcb) - self.fs.lstat(abs, lstatcb) - - function lstatcb_ (er, lstat) { - if (er && er.code === 'ENOENT') - return cb() - - var isSym = lstat && lstat.isSymbolicLink() - self.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && lstat && !lstat.isDirectory()) { - self.cache[abs] = 'FILE' - cb() - } else - self._readdir(abs, false, cb) - } -} - -Glob.prototype._readdir = function (abs, inGlobStar, cb) { - if (this.aborted) - return - - cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) - if (!cb) - return - - //console.error('RD %j %j', +inGlobStar, abs) - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return cb() - - if (Array.isArray(c)) - return cb(null, c) - } - - var self = this - self.fs.readdir(abs, readdirCb(this, abs, cb)) -} - -function readdirCb (self, abs, cb) { - return function (er, entries) { - if (er) - self._readdirError(abs, er, cb) - else - self._readdirEntries(abs, entries, cb) - } -} - -Glob.prototype._readdirEntries = function (abs, entries, cb) { - if (this.aborted) - return - - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - return cb(null, entries) -} - -Glob.prototype._readdirError = function (f, er, cb) { - if (this.aborted) - return - - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - var abs = this._makeAbs(f) - this.cache[abs] = 'FILE' - if (abs === this.cwdAbs) { - var error = new Error(er.code + ' invalid cwd ' + this.cwd) - error.path = this.cwd - error.code = er.code - this.emit('error', error) - this.abort() - } - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) { - this.emit('error', er) - // If the error is handled, then we abort - // if not, we threw out of here - this.abort() - } - if (!this.silent) - console.error('glob error', er) - break - } - - return cb() -} - -Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - - -Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - //console.error('pgs2', prefix, remain[0], entries) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return cb() - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false, cb) - - var isSym = this.symlinks[abs] - var len = entries.length - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return cb() - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true, cb) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true, cb) - } - - cb() -} - -Glob.prototype._processSimple = function (prefix, index, cb) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var self = this - this._stat(prefix, function (er, exists) { - self._processSimple2(prefix, index, er, exists, cb) - }) -} -Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { - - //console.error('ps2', prefix, exists) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return cb() - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) - cb() -} - -// Returns either 'DIR', 'FILE', or false -Glob.prototype._stat = function (f, cb) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return cb() - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return cb(null, c) - - if (needDir && c === 'FILE') - return cb() - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (stat !== undefined) { - if (stat === false) - return cb(null, stat) - else { - var type = stat.isDirectory() ? 'DIR' : 'FILE' - if (needDir && type === 'FILE') - return cb() - else - return cb(null, type, stat) - } - } - - var self = this - var statcb = inflight('stat\0' + abs, lstatcb_) - if (statcb) - self.fs.lstat(abs, statcb) - - function lstatcb_ (er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - // If it's a symlink, then treat it as the target, unless - // the target does not exist, then treat it as a file. - return self.fs.stat(abs, function (er, stat) { - if (er) - self._stat2(f, abs, null, lstat, cb) - else - self._stat2(f, abs, er, stat, cb) - }) - } else { - self._stat2(f, abs, er, lstat, cb) - } - } -} - -Glob.prototype._stat2 = function (f, abs, er, stat, cb) { - if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { - this.statCache[abs] = false - return cb() - } - - var needDir = f.slice(-1) === '/' - this.statCache[abs] = stat - - if (abs.slice(-1) === '/' && stat && !stat.isDirectory()) - return cb(null, false, stat) - - var c = true - if (stat) - c = stat.isDirectory() ? 'DIR' : 'FILE' - this.cache[abs] = this.cache[abs] || c - - if (needDir && c === 'FILE') - return cb() - - return cb(null, c, stat) -} diff --git a/node_modules/rimraf/node_modules/glob/package.json b/node_modules/rimraf/node_modules/glob/package.json deleted file mode 100644 index 5940b649..00000000 --- a/node_modules/rimraf/node_modules/glob/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "name": "glob", - "description": "a little globber", - "version": "7.2.3", - "publishConfig": { - "tag": "v7-legacy" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/node-glob.git" - }, - "main": "glob.js", - "files": [ - "glob.js", - "sync.js", - "common.js" - ], - "engines": { - "node": "*" - }, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "devDependencies": { - "memfs": "^3.2.0", - "mkdirp": "0", - "rimraf": "^2.2.8", - "tap": "^15.0.6", - "tick": "0.0.6" - }, - "tap": { - "before": "test/00-setup.js", - "after": "test/zz-cleanup.js", - "jobs": 1 - }, - "scripts": { - "prepublish": "npm run benchclean", - "profclean": "rm -f v8.log profile.txt", - "test": "tap", - "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js", - "bench": "bash benchmark.sh", - "prof": "bash prof.sh && cat profile.txt", - "benchclean": "node benchclean.js" - }, - "license": "ISC", - "funding": { - "url": "https://github.com/sponsors/isaacs" - } -} diff --git a/node_modules/rimraf/node_modules/glob/sync.js b/node_modules/rimraf/node_modules/glob/sync.js deleted file mode 100644 index 2c4f4801..00000000 --- a/node_modules/rimraf/node_modules/glob/sync.js +++ /dev/null @@ -1,486 +0,0 @@ -module.exports = globSync -globSync.GlobSync = GlobSync - -var rp = require('fs.realpath') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var Glob = require('./glob.js').Glob -var util = require('util') -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var common = require('./common.js') -var setopts = common.setopts -var ownProp = common.ownProp -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -function globSync (pattern, options) { - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - return new GlobSync(pattern, options).found -} - -function GlobSync (pattern, options) { - if (!pattern) - throw new Error('must provide pattern') - - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options) - - setopts(this, pattern, options) - - if (this.noprocess) - return this - - var n = this.minimatch.set.length - this.matches = new Array(n) - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false) - } - this._finish() -} - -GlobSync.prototype._finish = function () { - assert.ok(this instanceof GlobSync) - if (this.realpath) { - var self = this - this.matches.forEach(function (matchset, index) { - var set = self.matches[index] = Object.create(null) - for (var p in matchset) { - try { - p = self._makeAbs(p) - var real = rp.realpathSync(p, self.realpathCache) - set[real] = true - } catch (er) { - if (er.syscall === 'stat') - set[self._makeAbs(p)] = true - else - throw er - } - } - }) - } - common.finish(this) -} - - -GlobSync.prototype._process = function (pattern, index, inGlobStar) { - assert.ok(this instanceof GlobSync) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // See if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || - isAbsolute(pattern.map(function (p) { - return typeof p === 'string' ? p : '[*]' - }).join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip processing - if (childrenIgnored(this, read)) - return - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar) -} - - -GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar) - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix.slice(-1) !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) - newPattern = [prefix, e] - else - newPattern = [e] - this._process(newPattern.concat(remain), index, inGlobStar) - } -} - - -GlobSync.prototype._emitMatch = function (index, e) { - if (isIgnored(this, e)) - return - - var abs = this._makeAbs(e) - - if (this.mark) - e = this._mark(e) - - if (this.absolute) { - e = abs - } - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - - if (this.stat) - this._stat(e) -} - - -GlobSync.prototype._readdirInGlobStar = function (abs) { - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false) - - var entries - var lstat - var stat - try { - lstat = this.fs.lstatSync(abs) - } catch (er) { - if (er.code === 'ENOENT') { - // lstat failed, doesn't exist - return null - } - } - - var isSym = lstat && lstat.isSymbolicLink() - this.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && lstat && !lstat.isDirectory()) - this.cache[abs] = 'FILE' - else - entries = this._readdir(abs, false) - - return entries -} - -GlobSync.prototype._readdir = function (abs, inGlobStar) { - var entries - - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return null - - if (Array.isArray(c)) - return c - } - - try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)) - } catch (er) { - this._readdirError(abs, er) - return null - } -} - -GlobSync.prototype._readdirEntries = function (abs, entries) { - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - - // mark and cache dir-ness - return entries -} - -GlobSync.prototype._readdirError = function (f, er) { - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - var abs = this._makeAbs(f) - this.cache[abs] = 'FILE' - if (abs === this.cwdAbs) { - var error = new Error(er.code + ' invalid cwd ' + this.cwd) - error.path = this.cwd - error.code = er.code - throw error - } - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) - throw er - if (!this.silent) - console.error('glob error', er) - break - } -} - -GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) { - - var entries = this._readdir(abs, inGlobStar) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false) - - var len = entries.length - var isSym = this.symlinks[abs] - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true) - } -} - -GlobSync.prototype._processSimple = function (prefix, index) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var exists = this._stat(prefix) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) -} - -// Returns either 'DIR', 'FILE', or false -GlobSync.prototype._stat = function (f) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return false - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return c - - if (needDir && c === 'FILE') - return false - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (!stat) { - var lstat - try { - lstat = this.fs.lstatSync(abs) - } catch (er) { - if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { - this.statCache[abs] = false - return false - } - } - - if (lstat && lstat.isSymbolicLink()) { - try { - stat = this.fs.statSync(abs) - } catch (er) { - stat = lstat - } - } else { - stat = lstat - } - } - - this.statCache[abs] = stat - - var c = true - if (stat) - c = stat.isDirectory() ? 'DIR' : 'FILE' - - this.cache[abs] = this.cache[abs] || c - - if (needDir && c === 'FILE') - return false - - return c -} - -GlobSync.prototype._mark = function (p) { - return common.mark(this, p) -} - -GlobSync.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} diff --git a/node_modules/rimraf/node_modules/minimatch/LICENSE b/node_modules/rimraf/node_modules/minimatch/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/rimraf/node_modules/minimatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/rimraf/node_modules/minimatch/README.md b/node_modules/rimraf/node_modules/minimatch/README.md deleted file mode 100644 index 33ede1d6..00000000 --- a/node_modules/rimraf/node_modules/minimatch/README.md +++ /dev/null @@ -1,230 +0,0 @@ -# minimatch - -A minimal matching utility. - -[![Build Status](https://travis-ci.org/isaacs/minimatch.svg?branch=master)](http://travis-ci.org/isaacs/minimatch) - - -This is the matching library used internally by npm. - -It works by converting glob expressions into JavaScript `RegExp` -objects. - -## Usage - -```javascript -var minimatch = require("minimatch") - -minimatch("bar.foo", "*.foo") // true! -minimatch("bar.foo", "*.bar") // false! -minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy! -``` - -## Features - -Supports these glob features: - -* Brace Expansion -* Extended glob matching -* "Globstar" `**` matching - -See: - -* `man sh` -* `man bash` -* `man 3 fnmatch` -* `man 5 gitignore` - -## Minimatch Class - -Create a minimatch object by instantiating the `minimatch.Minimatch` class. - -```javascript -var Minimatch = require("minimatch").Minimatch -var mm = new Minimatch(pattern, options) -``` - -### Properties - -* `pattern` The original pattern the minimatch object represents. -* `options` The options supplied to the constructor. -* `set` A 2-dimensional array of regexp or string expressions. - Each row in the - array corresponds to a brace-expanded pattern. Each item in the row - corresponds to a single path-part. For example, the pattern - `{a,b/c}/d` would expand to a set of patterns like: - - [ [ a, d ] - , [ b, c, d ] ] - - If a portion of the pattern doesn't have any "magic" in it - (that is, it's something like `"foo"` rather than `fo*o?`), then it - will be left as a string rather than converted to a regular - expression. - -* `regexp` Created by the `makeRe` method. A single regular expression - expressing the entire pattern. This is useful in cases where you wish - to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled. -* `negate` True if the pattern is negated. -* `comment` True if the pattern is a comment. -* `empty` True if the pattern is `""`. - -### Methods - -* `makeRe` Generate the `regexp` member if necessary, and return it. - Will return `false` if the pattern is invalid. -* `match(fname)` Return true if the filename matches the pattern, or - false otherwise. -* `matchOne(fileArray, patternArray, partial)` Take a `/`-split - filename, and match it against a single row in the `regExpSet`. This - method is mainly for internal use, but is exposed so that it can be - used by a glob-walker that needs to avoid excessive filesystem calls. - -All other methods are internal, and will be called as necessary. - -### minimatch(path, pattern, options) - -Main export. Tests a path against the pattern using the options. - -```javascript -var isJS = minimatch(file, "*.js", { matchBase: true }) -``` - -### minimatch.filter(pattern, options) - -Returns a function that tests its -supplied argument, suitable for use with `Array.filter`. Example: - -```javascript -var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true})) -``` - -### minimatch.match(list, pattern, options) - -Match against the list of -files, in the style of fnmatch or glob. If nothing is matched, and -options.nonull is set, then return a list containing the pattern itself. - -```javascript -var javascripts = minimatch.match(fileList, "*.js", {matchBase: true})) -``` - -### minimatch.makeRe(pattern, options) - -Make a regular expression object from the pattern. - -## Options - -All options are `false` by default. - -### debug - -Dump a ton of stuff to stderr. - -### nobrace - -Do not expand `{a,b}` and `{1..3}` brace sets. - -### noglobstar - -Disable `**` matching against multiple folder names. - -### dot - -Allow patterns to match filenames starting with a period, even if -the pattern does not explicitly have a period in that spot. - -Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot` -is set. - -### noext - -Disable "extglob" style patterns like `+(a|b)`. - -### nocase - -Perform a case-insensitive match. - -### nonull - -When a match is not found by `minimatch.match`, return a list containing -the pattern itself if this option is set. When not set, an empty list -is returned if there are no matches. - -### matchBase - -If set, then patterns without slashes will be matched -against the basename of the path if it contains slashes. For example, -`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. - -### nocomment - -Suppress the behavior of treating `#` at the start of a pattern as a -comment. - -### nonegate - -Suppress the behavior of treating a leading `!` character as negation. - -### flipNegate - -Returns from negate expressions the same as if they were not negated. -(Ie, true on a hit, false on a miss.) - -### partial - -Compare a partial path to a pattern. As long as the parts of the path that -are present are not contradicted by the pattern, it will be treated as a -match. This is useful in applications where you're walking through a -folder structure, and don't yet have the full path, but want to ensure that -you do not walk down paths that can never be a match. - -For example, - -```js -minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d -minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d -minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a -``` - -### allowWindowsEscape - -Windows path separator `\` is by default converted to `/`, which -prohibits the usage of `\` as a escape character. This flag skips that -behavior and allows using the escape character. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between minimatch and other -implementations, and are intentional. - -If the pattern starts with a `!` character, then it is negated. Set the -`nonegate` flag to suppress this behavior, and treat leading `!` -characters normally. This is perhaps relevant if you wish to start the -pattern with a negative extglob pattern like `!(a|B)`. Multiple `!` -characters at the start of a pattern will negate the pattern multiple -times. - -If a pattern starts with `#`, then it is treated as a comment, and -will not match anything. Use `\#` to match a literal `#` at the -start of a line, or set the `nocomment` flag to suppress this behavior. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.1, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then minimatch.match returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. diff --git a/node_modules/rimraf/node_modules/minimatch/minimatch.js b/node_modules/rimraf/node_modules/minimatch/minimatch.js deleted file mode 100644 index fda45ade..00000000 --- a/node_modules/rimraf/node_modules/minimatch/minimatch.js +++ /dev/null @@ -1,947 +0,0 @@ -module.exports = minimatch -minimatch.Minimatch = Minimatch - -var path = (function () { try { return require('path') } catch (e) {}}()) || { - sep: '/' -} -minimatch.sep = path.sep - -var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = require('brace-expansion') - -var plTypes = { - '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, - '?': { open: '(?:', close: ')?' }, - '+': { open: '(?:', close: ')+' }, - '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } -} - -// any single thing other than / -// don't need to escape / when using new RegExp() -var qmark = '[^/]' - -// * => any number of characters -var star = qmark + '*?' - -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' - -// characters that need to be escaped in RegExp. -var reSpecials = charSet('().*{}+?[]^$\\!') - -// "abc" -> { a:true, b:true, c:true } -function charSet (s) { - return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) -} - -// normalizes slashes. -var slashSplit = /\/+/ - -minimatch.filter = filter -function filter (pattern, options) { - options = options || {} - return function (p, i, list) { - return minimatch(p, pattern, options) - } -} - -function ext (a, b) { - b = b || {} - var t = {} - Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) - return t -} - -minimatch.defaults = function (def) { - if (!def || typeof def !== 'object' || !Object.keys(def).length) { - return minimatch - } - - var orig = minimatch - - var m = function minimatch (p, pattern, options) { - return orig(p, pattern, ext(def, options)) - } - - m.Minimatch = function Minimatch (pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } - m.Minimatch.defaults = function defaults (options) { - return orig.defaults(ext(def, options)).Minimatch - } - - m.filter = function filter (pattern, options) { - return orig.filter(pattern, ext(def, options)) - } - - m.defaults = function defaults (options) { - return orig.defaults(ext(def, options)) - } - - m.makeRe = function makeRe (pattern, options) { - return orig.makeRe(pattern, ext(def, options)) - } - - m.braceExpand = function braceExpand (pattern, options) { - return orig.braceExpand(pattern, ext(def, options)) - } - - m.match = function (list, pattern, options) { - return orig.match(list, pattern, ext(def, options)) - } - - return m -} - -Minimatch.defaults = function (def) { - return minimatch.defaults(def).Minimatch -} - -function minimatch (p, pattern, options) { - assertValidPattern(pattern) - - if (!options) options = {} - - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false - } - - return new Minimatch(pattern, options).match(p) -} - -function Minimatch (pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) - } - - assertValidPattern(pattern) - - if (!options) options = {} - - pattern = pattern.trim() - - // windows support: need to use /, not \ - if (!options.allowWindowsEscape && path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') - } - - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false - this.partial = !!options.partial - - // make the set of regexps etc. - this.make() -} - -Minimatch.prototype.debug = function () {} - -Minimatch.prototype.make = make -function make () { - var pattern = this.pattern - var options = this.options - - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return - } - if (!pattern) { - this.empty = true - return - } - - // step 1: figure out negation, etc. - this.parseNegate() - - // step 2: expand braces - var set = this.globSet = this.braceExpand() - - if (options.debug) this.debug = function debug() { console.error.apply(console, arguments) } - - this.debug(this.pattern, set) - - // step 3: now we have a set, so turn each one into a series of path-portion - // matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) - - this.debug(this.pattern, set) - - // glob --> regexps - set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) - - this.debug(this.pattern, set) - - // filter out everything that didn't compile properly. - set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) - - this.debug(this.pattern, set) - - this.set = set -} - -Minimatch.prototype.parseNegate = parseNegate -function parseNegate () { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 - - if (options.nonegate) return - - for (var i = 0, l = pattern.length - ; i < l && pattern.charAt(i) === '!' - ; i++) { - negate = !negate - negateOffset++ - } - - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate -} - -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) -} - -Minimatch.prototype.braceExpand = braceExpand - -function braceExpand (pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options - } else { - options = {} - } - } - - pattern = typeof pattern === 'undefined' - ? this.pattern : pattern - - assertValidPattern(pattern) - - // Thanks to Yeting Li for - // improving this regexp to avoid a ReDOS vulnerability. - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - // shortcut. no need to expand. - return [pattern] - } - - return expand(pattern) -} - -var MAX_PATTERN_LENGTH = 1024 * 64 -var assertValidPattern = function (pattern) { - if (typeof pattern !== 'string') { - throw new TypeError('invalid pattern') - } - - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError('pattern is too long') - } -} - -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse = parse -var SUBPARSE = {} -function parse (pattern, isSub) { - assertValidPattern(pattern) - - var options = this.options - - // shortcuts - if (pattern === '**') { - if (!options.noglobstar) - return GLOBSTAR - else - pattern = '*' - } - if (pattern === '') return '' - - var re = '' - var hasMagic = !!options.nocase - var escaping = false - // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 - // . and .. never match anything that doesn't start with ., - // even when options.dot is set. - var patternStart = pattern.charAt(0) === '.' ? '' // anything - // not (start or / followed by . or .. followed by / or end) - : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' - : '(?!\\.)' - var self = this - - function clearStateChar () { - if (stateChar) { - // we had some state-tracking character - // that wasn't consumed by this pass. - switch (stateChar) { - case '*': - re += star - hasMagic = true - break - case '?': - re += qmark - hasMagic = true - break - default: - re += '\\' + stateChar - break - } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false - } - } - - for (var i = 0, len = pattern.length, c - ; (i < len) && (c = pattern.charAt(i)) - ; i++) { - this.debug('%s\t%s %s %j', pattern, i, re, c) - - // skip over any that are escaped. - if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue - } - - switch (c) { - /* istanbul ignore next */ - case '/': { - // completely not allowed, even escaped. - // Should already be path-split by now. - return false - } - - case '\\': - clearStateChar() - escaping = true - continue - - // the various stateChar values - // for the "extglob" stuff. - case '?': - case '*': - case '+': - case '@': - case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - - // all of those are literals inside a class, except that - // the glob [!a] means [^a] in regexp - if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue - } - - // if we already have a stateChar, then it means - // that there was something like ** or +? in there. - // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c - // if extglob is disabled, then +(asdf|foo) isn't a thing. - // just clear the statechar *now*, rather than even diving into - // the patternList stuff. - if (options.noext) clearStateChar() - continue - - case '(': - if (inClass) { - re += '(' - continue - } - - if (!stateChar) { - re += '\\(' - continue - } - - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) - // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue - - case ')': - if (inClass || !patternListStack.length) { - re += '\\)' - continue - } - - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() - // negation is (?:(?!js)[^/]*) - // The others are (?:) - re += pl.close - if (pl.type === '!') { - negativeLists.push(pl) - } - pl.reEnd = re.length - continue - - case '|': - if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue - } - - clearStateChar() - re += '|' - continue - - // these are mostly the same in regexp and glob - case '[': - // swallow any state-tracking char before the [ - clearStateChar() - - if (inClass) { - re += '\\' + c - continue - } - - inClass = true - classStart = i - reClassStart = re.length - re += c - continue - - case ']': - // a right bracket shall lose its special - // meaning and represent itself in - // a bracket expression if it occurs - // first in the list. -- POSIX.2 2.8.3.2 - if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue - } - - // handle the case where we left a class open. - // "[z-a]" is valid, equivalent to "\[z-a\]" - // split where the last [ was, make sure we don't have - // an invalid re. if so, re-walk the contents of the - // would-be class to re-translate any characters that - // were passed through as-is - // TODO: It would probably be faster to determine this - // without a try/catch and a new RegExp, but it's tricky - // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) - try { - RegExp('[' + cs + ']') - } catch (er) { - // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue - } - - // finish up the class. - hasMagic = true - inClass = false - re += c - continue - - default: - // swallow any state char that wasn't consumed - clearStateChar() - - if (escaping) { - // no need - escaping = false - } else if (reSpecials[c] - && !(c === '^' && inClass)) { - re += '\\' - } - - re += c - - } // switch - } // for - - // handle the case where we left a class open. - // "[abc" is valid, equivalent to "\[abc" - if (inClass) { - // split where the last [ was, and escape it - // this is a huge pita. We now have to re-walk - // the contents of the would-be class to re-translate - // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] - } - - // handle the case where we had a +( thing at the *end* - // of the pattern. - // each pattern list stack adds 3 chars, and we need to go through - // and escape any | chars that were passed through as-is for the regexp. - // Go through and escape them, taking care not to double-escape any - // | chars that were already escaped. - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) - // maybe some even number of \, then maybe 1 \, followed by a | - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { - if (!$2) { - // the | isn't already escaped, so escape it. - $2 = '\\' - } - - // need to escape all those slashes *again*, without escaping the - // one that we need for escaping the | character. As it works out, - // escaping an even number of slashes can be done by simply repeating - // it exactly after itself. That's why this trick works. - // - // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) - - this.debug('tail=%j\n %s', tail, tail, pl, re) - var t = pl.type === '*' ? star - : pl.type === '?' ? qmark - : '\\' + pl.type - - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail - } - - // handle trailing things that only matter at the very end. - clearStateChar() - if (escaping) { - // trailing \\ - re += '\\\\' - } - - // only need to apply the nodot start if the re starts with - // something that could conceivably capture a dot - var addPatternStart = false - switch (re.charAt(0)) { - case '[': case '.': case '(': addPatternStart = true - } - - // Hack to work around lack of negative lookbehind in JS - // A pattern like: *.!(x).!(y|z) needs to ensure that a name - // like 'a.xyz.yz' doesn't match. So, the first negative - // lookahead, has to look ALL the way ahead, to the end of - // the pattern. - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] - - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) - - nlLast += nlAfter - - // Handle nested stuff like *(*.js|!(*.json)), where open parens - // mean that we should *not* include the ) in the bit that is considered - // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') - } - nlAfter = cleanAfter - - var dollar = '' - if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe - } - - // if the re is not "" at this point, then we need to make sure - // it doesn't match against an empty path part. - // Otherwise a/* will match a/, which it should not. - if (re !== '' && hasMagic) { - re = '(?=.)' + re - } - - if (addPatternStart) { - re = patternStart + re - } - - // parsing just a piece of a larger pattern. - if (isSub === SUBPARSE) { - return [re, hasMagic] - } - - // skip the regexp for non-magical patterns - // unescape anything in it, though, so that it'll be - // an exact match against a file etc. - if (!hasMagic) { - return globUnescape(pattern) - } - - var flags = options.nocase ? 'i' : '' - try { - var regExp = new RegExp('^' + re + '$', flags) - } catch (er) /* istanbul ignore next - should be impossible */ { - // If it was an invalid regular expression, then it can't match - // anything. This trick looks for a character after the end of - // the string, which is of course impossible, except in multi-line - // mode, but it's not a /m regex. - return new RegExp('$.') - } - - regExp._glob = pattern - regExp._src = re - - return regExp -} - -minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() -} - -Minimatch.prototype.makeRe = makeRe -function makeRe () { - if (this.regexp || this.regexp === false) return this.regexp - - // at this point, this.set is a 2d array of partial - // pattern strings, or "**". - // - // It's better to use .match(). This function shouldn't - // be used, really, but it's pretty convenient sometimes, - // when you just want to work with a regex. - var set = this.set - - if (!set.length) { - this.regexp = false - return this.regexp - } - var options = this.options - - var twoStar = options.noglobstar ? star - : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' - - var re = set.map(function (pattern) { - return pattern.map(function (p) { - return (p === GLOBSTAR) ? twoStar - : (typeof p === 'string') ? regExpEscape(p) - : p._src - }).join('\\\/') - }).join('|') - - // must match entire pattern - // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' - - // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' - - try { - this.regexp = new RegExp(re, flags) - } catch (ex) /* istanbul ignore next - should be impossible */ { - this.regexp = false - } - return this.regexp -} - -minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) - list = list.filter(function (f) { - return mm.match(f) - }) - if (mm.options.nonull && !list.length) { - list.push(pattern) - } - return list -} - -Minimatch.prototype.match = function match (f, partial) { - if (typeof partial === 'undefined') partial = this.partial - this.debug('match', f, this.pattern) - // short-circuit in the case of busted things. - // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' - - if (f === '/' && partial) return true - - var options = this.options - - // windows: need to use /, not \ - if (path.sep !== '/') { - f = f.split(path.sep).join('/') - } - - // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) - - // just ONE of the pattern sets in this.set needs to match - // in order for it to be valid. If negating, then just one - // match means that we have failed. - // Either way, return on the first hit. - - var set = this.set - this.debug(this.pattern, 'set', set) - - // Find the basename of the path by looking for the last non-empty segment - var filename - var i - for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break - } - - for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f - if (options.matchBase && pattern.length === 1) { - file = [filename] - } - var hit = this.matchOne(file, pattern, partial) - if (hit) { - if (options.flipNegate) return true - return !this.negate - } - } - - // didn't get any hits. this is success if it's a negative - // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate -} - -// set partial to true to test if, for example, -// "/a/b" matches the start of "/*/b/*/d" -// Partial means, if you run out of file before you run -// out of pattern, then that's fine, as long as all -// the parts match. -Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options - - this.debug('matchOne', - { 'this': this, file: file, pattern: pattern }) - - this.debug('matchOne', file.length, pattern.length) - - for (var fi = 0, - pi = 0, - fl = file.length, - pl = pattern.length - ; (fi < fl) && (pi < pl) - ; fi++, pi++) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] - - this.debug(pattern, p, f) - - // should be impossible. - // some invalid regexp stuff in the set. - /* istanbul ignore if */ - if (p === false) return false - - if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) - - // "**" - // a/**/b/**/c would match the following: - // a/b/x/y/z/c - // a/x/y/z/b/c - // a/b/x/b/x/c - // a/b/c - // To do this, take the rest of the pattern after - // the **, and see if it would match the file remainder. - // If so, return success. - // If not, the ** "swallows" a segment, and try again. - // This is recursively awful. - // - // a/**/b/**/c matching a/b/x/y/z/c - // - a matches a - // - doublestar - // - matchOne(b/x/y/z/c, b/**/c) - // - b matches b - // - doublestar - // - matchOne(x/y/z/c, c) -> no - // - matchOne(y/z/c, c) -> no - // - matchOne(z/c, c) -> no - // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 - if (pr === pl) { - this.debug('** at the end') - // a ** at the end will just swallow the rest. - // We have found a match. - // however, it will not swallow /.x, unless - // options.dot is set. - // . and .. are *never* matched by **, for explosively - // exponential reasons. - for (; fi < fl; fi++) { - if (file[fi] === '.' || file[fi] === '..' || - (!options.dot && file[fi].charAt(0) === '.')) return false - } - return true - } - - // ok, let's see if we can swallow whatever we can. - while (fr < fl) { - var swallowee = file[fr] - - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) - - // XXX remove this slice. Just pass the start index. - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) - // found a match. - return true - } else { - // can't swallow "." or ".." ever. - // can only swallow ".foo" when explicitly asked. - if (swallowee === '.' || swallowee === '..' || - (!options.dot && swallowee.charAt(0) === '.')) { - this.debug('dot detected!', file, fr, pattern, pr) - break - } - - // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ - } - } - - // no match was found. - // However, in partial mode, we can't say this is necessarily over. - // If there's more *pattern* left, then - /* istanbul ignore if */ - if (partial) { - // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true - } - return false - } - - // something other than ** - // non-magic patterns just have to match exactly - // patterns with magic have been turned into regexps. - var hit - if (typeof p === 'string') { - hit = f === p - this.debug('string match', p, f, hit) - } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) - } - - if (!hit) return false - } - - // Note: ending in / means that we'll get a final "" - // at the end of the pattern. This can only match a - // corresponding "" at the end of the file. - // If the file ends in /, then it can only match a - // a pattern that ends in /, unless the pattern just - // doesn't have any more for it. But, a/b/ should *not* - // match "a/b/*", even though "" matches against the - // [^/]*? pattern, except in partial mode, where it might - // simply not be reached yet. - // However, a/b/ should still satisfy a/* - - // now either we fell off the end of the pattern, or we're done. - if (fi === fl && pi === pl) { - // ran out of pattern and filename at the same time. - // an exact hit! - return true - } else if (fi === fl) { - // ran out of file, but still had pattern left. - // this is ok if we're doing the match as part of - // a glob fs traversal. - return partial - } else /* istanbul ignore else */ if (pi === pl) { - // ran out of pattern, still have file left. - // this is only acceptable if we're on the very last - // empty segment of a file with a trailing slash. - // a/* should match a/b/ - return (fi === fl - 1) && (file[fi] === '') - } - - // should be unreachable. - /* istanbul ignore next */ - throw new Error('wtf?') -} - -// replace stuff like \* with * -function globUnescape (s) { - return s.replace(/\\(.)/g, '$1') -} - -function regExpEscape (s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') -} diff --git a/node_modules/rimraf/node_modules/minimatch/package.json b/node_modules/rimraf/node_modules/minimatch/package.json deleted file mode 100644 index 566efdfe..00000000 --- a/node_modules/rimraf/node_modules/minimatch/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "author": "Isaac Z. Schlueter (http://blog.izs.me)", - "name": "minimatch", - "description": "a glob matcher in javascript", - "version": "3.1.2", - "publishConfig": { - "tag": "v3-legacy" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/minimatch.git" - }, - "main": "minimatch.js", - "scripts": { - "test": "tap", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "engines": { - "node": "*" - }, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "devDependencies": { - "tap": "^15.1.6" - }, - "license": "ISC", - "files": [ - "minimatch.js" - ] -} diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json deleted file mode 100644 index 1bf8d5e3..00000000 --- a/node_modules/rimraf/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "rimraf", - "version": "3.0.2", - "main": "rimraf.js", - "description": "A deep deletion module for node (like `rm -rf`)", - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "repository": "git://github.com/isaacs/rimraf.git", - "scripts": { - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --follow-tags", - "test": "tap test/*.js" - }, - "bin": "./bin.js", - "dependencies": { - "glob": "^7.1.3" - }, - "files": [ - "LICENSE", - "README.md", - "bin.js", - "rimraf.js" - ], - "devDependencies": { - "mkdirp": "^0.5.1", - "tap": "^12.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } -} diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js deleted file mode 100644 index 34da4171..00000000 --- a/node_modules/rimraf/rimraf.js +++ /dev/null @@ -1,360 +0,0 @@ -const assert = require("assert") -const path = require("path") -const fs = require("fs") -let glob = undefined -try { - glob = require("glob") -} catch (_err) { - // treat glob as optional. -} - -const defaultGlobOpts = { - nosort: true, - silent: true -} - -// for EMFILE handling -let timeout = 0 - -const isWindows = (process.platform === "win32") - -const defaults = options => { - const methods = [ - 'unlink', - 'chmod', - 'stat', - 'lstat', - 'rmdir', - 'readdir' - ] - methods.forEach(m => { - options[m] = options[m] || fs[m] - m = m + 'Sync' - options[m] = options[m] || fs[m] - }) - - options.maxBusyTries = options.maxBusyTries || 3 - options.emfileWait = options.emfileWait || 1000 - if (options.glob === false) { - options.disableGlob = true - } - if (options.disableGlob !== true && glob === undefined) { - throw Error('glob dependency not found, set `options.disableGlob = true` if intentional') - } - options.disableGlob = options.disableGlob || false - options.glob = options.glob || defaultGlobOpts -} - -const rimraf = (p, options, cb) => { - if (typeof options === 'function') { - cb = options - options = {} - } - - assert(p, 'rimraf: missing path') - assert.equal(typeof p, 'string', 'rimraf: path should be a string') - assert.equal(typeof cb, 'function', 'rimraf: callback function required') - assert(options, 'rimraf: invalid options argument provided') - assert.equal(typeof options, 'object', 'rimraf: options should be object') - - defaults(options) - - let busyTries = 0 - let errState = null - let n = 0 - - const next = (er) => { - errState = errState || er - if (--n === 0) - cb(errState) - } - - const afterGlob = (er, results) => { - if (er) - return cb(er) - - n = results.length - if (n === 0) - return cb() - - results.forEach(p => { - const CB = (er) => { - if (er) { - if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && - busyTries < options.maxBusyTries) { - busyTries ++ - // try again, with the same exact callback as this one. - return setTimeout(() => rimraf_(p, options, CB), busyTries * 100) - } - - // this one won't happen if graceful-fs is used. - if (er.code === "EMFILE" && timeout < options.emfileWait) { - return setTimeout(() => rimraf_(p, options, CB), timeout ++) - } - - // already gone - if (er.code === "ENOENT") er = null - } - - timeout = 0 - next(er) - } - rimraf_(p, options, CB) - }) - } - - if (options.disableGlob || !glob.hasMagic(p)) - return afterGlob(null, [p]) - - options.lstat(p, (er, stat) => { - if (!er) - return afterGlob(null, [p]) - - glob(p, options.glob, afterGlob) - }) - -} - -// Two possible strategies. -// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR -// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR -// -// Both result in an extra syscall when you guess wrong. However, there -// are likely far more normal files in the world than directories. This -// is based on the assumption that a the average number of files per -// directory is >= 1. -// -// If anyone ever complains about this, then I guess the strategy could -// be made configurable somehow. But until then, YAGNI. -const rimraf_ = (p, options, cb) => { - assert(p) - assert(options) - assert(typeof cb === 'function') - - // sunos lets the root user unlink directories, which is... weird. - // so we have to lstat here and make sure it's not a dir. - options.lstat(p, (er, st) => { - if (er && er.code === "ENOENT") - return cb(null) - - // Windows can EPERM on stat. Life is suffering. - if (er && er.code === "EPERM" && isWindows) - fixWinEPERM(p, options, er, cb) - - if (st && st.isDirectory()) - return rmdir(p, options, er, cb) - - options.unlink(p, er => { - if (er) { - if (er.code === "ENOENT") - return cb(null) - if (er.code === "EPERM") - return (isWindows) - ? fixWinEPERM(p, options, er, cb) - : rmdir(p, options, er, cb) - if (er.code === "EISDIR") - return rmdir(p, options, er, cb) - } - return cb(er) - }) - }) -} - -const fixWinEPERM = (p, options, er, cb) => { - assert(p) - assert(options) - assert(typeof cb === 'function') - - options.chmod(p, 0o666, er2 => { - if (er2) - cb(er2.code === "ENOENT" ? null : er) - else - options.stat(p, (er3, stats) => { - if (er3) - cb(er3.code === "ENOENT" ? null : er) - else if (stats.isDirectory()) - rmdir(p, options, er, cb) - else - options.unlink(p, cb) - }) - }) -} - -const fixWinEPERMSync = (p, options, er) => { - assert(p) - assert(options) - - try { - options.chmodSync(p, 0o666) - } catch (er2) { - if (er2.code === "ENOENT") - return - else - throw er - } - - let stats - try { - stats = options.statSync(p) - } catch (er3) { - if (er3.code === "ENOENT") - return - else - throw er - } - - if (stats.isDirectory()) - rmdirSync(p, options, er) - else - options.unlinkSync(p) -} - -const rmdir = (p, options, originalEr, cb) => { - assert(p) - assert(options) - assert(typeof cb === 'function') - - // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS) - // if we guessed wrong, and it's not a directory, then - // raise the original error. - options.rmdir(p, er => { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) - rmkids(p, options, cb) - else if (er && er.code === "ENOTDIR") - cb(originalEr) - else - cb(er) - }) -} - -const rmkids = (p, options, cb) => { - assert(p) - assert(options) - assert(typeof cb === 'function') - - options.readdir(p, (er, files) => { - if (er) - return cb(er) - let n = files.length - if (n === 0) - return options.rmdir(p, cb) - let errState - files.forEach(f => { - rimraf(path.join(p, f), options, er => { - if (errState) - return - if (er) - return cb(errState = er) - if (--n === 0) - options.rmdir(p, cb) - }) - }) - }) -} - -// this looks simpler, and is strictly *faster*, but will -// tie up the JavaScript thread and fail on excessively -// deep directory trees. -const rimrafSync = (p, options) => { - options = options || {} - defaults(options) - - assert(p, 'rimraf: missing path') - assert.equal(typeof p, 'string', 'rimraf: path should be a string') - assert(options, 'rimraf: missing options') - assert.equal(typeof options, 'object', 'rimraf: options should be object') - - let results - - if (options.disableGlob || !glob.hasMagic(p)) { - results = [p] - } else { - try { - options.lstatSync(p) - results = [p] - } catch (er) { - results = glob.sync(p, options.glob) - } - } - - if (!results.length) - return - - for (let i = 0; i < results.length; i++) { - const p = results[i] - - let st - try { - st = options.lstatSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - - // Windows can EPERM on stat. Life is suffering. - if (er.code === "EPERM" && isWindows) - fixWinEPERMSync(p, options, er) - } - - try { - // sunos lets the root user unlink directories, which is... weird. - if (st && st.isDirectory()) - rmdirSync(p, options, null) - else - options.unlinkSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - if (er.code === "EPERM") - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er) - if (er.code !== "EISDIR") - throw er - - rmdirSync(p, options, er) - } - } -} - -const rmdirSync = (p, options, originalEr) => { - assert(p) - assert(options) - - try { - options.rmdirSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - if (er.code === "ENOTDIR") - throw originalEr - if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") - rmkidsSync(p, options) - } -} - -const rmkidsSync = (p, options) => { - assert(p) - assert(options) - options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options)) - - // We only end up here once we got ENOTEMPTY at least once, and - // at this point, we are guaranteed to have removed all the kids. - // So, we know that it won't be ENOENT or ENOTDIR or anything else. - // try really hard to delete stuff on windows, because it has a - // PROFOUNDLY annoying habit of not closing handles promptly when - // files are deleted, resulting in spurious ENOTEMPTY errors. - const retries = isWindows ? 100 : 1 - let i = 0 - do { - let threw = true - try { - const ret = options.rmdirSync(p, options) - threw = false - return ret - } finally { - if (++i < retries && threw) - continue - } - } while (true) -} - -module.exports = rimraf -rimraf.sync = rimrafSync diff --git a/node_modules/text-table/.travis.yml b/node_modules/text-table/.travis.yml deleted file mode 100644 index cc4dba29..00000000 --- a/node_modules/text-table/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/text-table/LICENSE b/node_modules/text-table/LICENSE deleted file mode 100644 index ee27ba4b..00000000 --- a/node_modules/text-table/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/node_modules/text-table/example/align.js b/node_modules/text-table/example/align.js deleted file mode 100644 index 9be43098..00000000 --- a/node_modules/text-table/example/align.js +++ /dev/null @@ -1,8 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] -], { align: [ 'l', 'r' ] }); -console.log(t); diff --git a/node_modules/text-table/example/center.js b/node_modules/text-table/example/center.js deleted file mode 100644 index 52b1c69e..00000000 --- a/node_modules/text-table/example/center.js +++ /dev/null @@ -1,8 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] -], { align: [ 'l', 'c', 'l' ] }); -console.log(t); diff --git a/node_modules/text-table/example/dotalign.js b/node_modules/text-table/example/dotalign.js deleted file mode 100644 index 2cea6299..00000000 --- a/node_modules/text-table/example/dotalign.js +++ /dev/null @@ -1,9 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] -], { align: [ 'l', '.' ] }); -console.log(t); diff --git a/node_modules/text-table/example/doubledot.js b/node_modules/text-table/example/doubledot.js deleted file mode 100644 index bab983b6..00000000 --- a/node_modules/text-table/example/doubledot.js +++ /dev/null @@ -1,11 +0,0 @@ -var table = require('../'); -var t = table([ - [ '0.1.2' ], - [ '11.22.33' ], - [ '5.6.7' ], - [ '1.22222' ], - [ '12345.' ], - [ '5555.' ], - [ '123' ] -], { align: [ '.' ] }); -console.log(t); diff --git a/node_modules/text-table/example/table.js b/node_modules/text-table/example/table.js deleted file mode 100644 index 903ea4c4..00000000 --- a/node_modules/text-table/example/table.js +++ /dev/null @@ -1,6 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] -]); -console.log(t); diff --git a/node_modules/text-table/index.js b/node_modules/text-table/index.js deleted file mode 100644 index 5c0ba987..00000000 --- a/node_modules/text-table/index.js +++ /dev/null @@ -1,86 +0,0 @@ -module.exports = function (rows_, opts) { - if (!opts) opts = {}; - var hsep = opts.hsep === undefined ? ' ' : opts.hsep; - var align = opts.align || []; - var stringLength = opts.stringLength - || function (s) { return String(s).length; } - ; - - var dotsizes = reduce(rows_, function (acc, row) { - forEach(row, function (c, ix) { - var n = dotindex(c); - if (!acc[ix] || n > acc[ix]) acc[ix] = n; - }); - return acc; - }, []); - - var rows = map(rows_, function (row) { - return map(row, function (c_, ix) { - var c = String(c_); - if (align[ix] === '.') { - var index = dotindex(c); - var size = dotsizes[ix] + (/\./.test(c) ? 1 : 2) - - (stringLength(c) - index) - ; - return c + Array(size).join(' '); - } - else return c; - }); - }); - - var sizes = reduce(rows, function (acc, row) { - forEach(row, function (c, ix) { - var n = stringLength(c); - if (!acc[ix] || n > acc[ix]) acc[ix] = n; - }); - return acc; - }, []); - - return map(rows, function (row) { - return map(row, function (c, ix) { - var n = (sizes[ix] - stringLength(c)) || 0; - var s = Array(Math.max(n + 1, 1)).join(' '); - if (align[ix] === 'r' || align[ix] === '.') { - return s + c; - } - if (align[ix] === 'c') { - return Array(Math.ceil(n / 2 + 1)).join(' ') - + c + Array(Math.floor(n / 2 + 1)).join(' ') - ; - } - - return c + s; - }).join(hsep).replace(/\s+$/, ''); - }).join('\n'); -}; - -function dotindex (c) { - var m = /\.[^.]*$/.exec(c); - return m ? m.index + 1 : c.length; -} - -function reduce (xs, f, init) { - if (xs.reduce) return xs.reduce(f, init); - var i = 0; - var acc = arguments.length >= 3 ? init : xs[i++]; - for (; i < xs.length; i++) { - f(acc, xs[i], i); - } - return acc; -} - -function forEach (xs, f) { - if (xs.forEach) return xs.forEach(f); - for (var i = 0; i < xs.length; i++) { - f.call(xs, xs[i], i); - } -} - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f.call(xs, xs[i], i)); - } - return res; -} diff --git a/node_modules/text-table/package.json b/node_modules/text-table/package.json deleted file mode 100644 index b4d17a4f..00000000 --- a/node_modules/text-table/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "text-table", - "version": "0.2.0", - "description": "borderless text tables with alignment", - "main": "index.js", - "devDependencies": { - "tap": "~0.4.0", - "tape": "~1.0.2", - "cli-color": "~0.2.3" - }, - "scripts": { - "test": "tap test/*.js" - }, - "testling" : { - "files" : "test/*.js", - "browsers" : [ - "ie/6..latest", - "chrome/20..latest", - "firefox/10..latest", - "safari/latest", - "opera/11.0..latest", - "iphone/6", "ipad/6" - ] - }, - "repository": { - "type": "git", - "url": "git://github.com/substack/text-table.git" - }, - "homepage": "https://github.com/substack/text-table", - "keywords": [ - "text", - "table", - "align", - "ascii", - "rows", - "tabular" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT" -} diff --git a/node_modules/text-table/readme.markdown b/node_modules/text-table/readme.markdown deleted file mode 100644 index 18806acd..00000000 --- a/node_modules/text-table/readme.markdown +++ /dev/null @@ -1,134 +0,0 @@ -# text-table - -generate borderless text table strings suitable for printing to stdout - -[![build status](https://secure.travis-ci.org/substack/text-table.png)](http://travis-ci.org/substack/text-table) - -[![browser support](https://ci.testling.com/substack/text-table.png)](http://ci.testling.com/substack/text-table) - -# example - -## default align - -``` js -var table = require('text-table'); -var t = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] -]); -console.log(t); -``` - -``` -master 0123456789abcdef -staging fedcba9876543210 -``` - -## left-right align - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] -], { align: [ 'l', 'r' ] }); -console.log(t); -``` - -``` -beep 1024 -boop 33450 -foo 1006 -bar 45 -``` - -## dotted align - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] -], { align: [ 'l', '.' ] }); -console.log(t); -``` - -``` -beep 1024 -boop 334.212 -foo 1006 -bar 45.6 -baz 123. -``` - -## centered - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] -], { align: [ 'l', 'c', 'l' ] }); -console.log(t); -``` - -``` -beep 1024 xyz -boop 3388450 tuv -foo 10106 qrstuv -bar 45 lmno -``` - -# methods - -``` js -var table = require('text-table') -``` - -## var s = table(rows, opts={}) - -Return a formatted table string `s` from an array of `rows` and some options -`opts`. - -`rows` should be an array of arrays containing strings, numbers, or other -printable values. - -options can be: - -* `opts.hsep` - separator to use between columns, default `' '` -* `opts.align` - array of alignment types for each column, default `['l','l',...]` -* `opts.stringLength` - callback function to use when calculating the string length - -alignment types are: - -* `'l'` - left -* `'r'` - right -* `'c'` - center -* `'.'` - decimal - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install text-table -``` - -# Use with ANSI-colors - -Since the string length of ANSI color schemes does not equal the length -JavaScript sees internally it is necessary to pass the a custom string length -calculator during the main function call. - -See the `test/ansi-colors.js` file for an example. - -# license - -MIT diff --git a/node_modules/text-table/test/align.js b/node_modules/text-table/test/align.js deleted file mode 100644 index 245357f2..00000000 --- a/node_modules/text-table/test/align.js +++ /dev/null @@ -1,18 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('align', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] - ], { align: [ 'l', 'r' ] }); - t.equal(s, [ - 'beep 1024', - 'boop 33450', - 'foo 1006', - 'bar 45' - ].join('\n')); -}); diff --git a/node_modules/text-table/test/ansi-colors.js b/node_modules/text-table/test/ansi-colors.js deleted file mode 100644 index fbc5bb10..00000000 --- a/node_modules/text-table/test/ansi-colors.js +++ /dev/null @@ -1,32 +0,0 @@ -var test = require('tape'); -var table = require('../'); -var color = require('cli-color'); -var ansiTrim = require('cli-color/lib/trim'); - -test('center', function (t) { - t.plan(1); - var opts = { - align: [ 'l', 'c', 'l' ], - stringLength: function(s) { return ansiTrim(s).length } - }; - var s = table([ - [ - color.red('Red'), color.green('Green'), color.blue('Blue') - ], - [ - color.bold('Bold'), color.underline('Underline'), - color.italic('Italic') - ], - [ - color.inverse('Inverse'), color.strike('Strike'), - color.blink('Blink') - ], - [ 'bar', '45', 'lmno' ] - ], opts); - t.equal(ansiTrim(s), [ - 'Red Green Blue', - 'Bold Underline Italic', - 'Inverse Strike Blink', - 'bar 45 lmno' - ].join('\n')); -}); diff --git a/node_modules/text-table/test/center.js b/node_modules/text-table/test/center.js deleted file mode 100644 index c2c7a62a..00000000 --- a/node_modules/text-table/test/center.js +++ /dev/null @@ -1,18 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('center', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] - ], { align: [ 'l', 'c', 'l' ] }); - t.equal(s, [ - 'beep 1024 xyz', - 'boop 3388450 tuv', - 'foo 10106 qrstuv', - 'bar 45 lmno' - ].join('\n')); -}); diff --git a/node_modules/text-table/test/dotalign.js b/node_modules/text-table/test/dotalign.js deleted file mode 100644 index f804f928..00000000 --- a/node_modules/text-table/test/dotalign.js +++ /dev/null @@ -1,20 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('dot align', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] - ], { align: [ 'l', '.' ] }); - t.equal(s, [ - 'beep 1024', - 'boop 334.212', - 'foo 1006', - 'bar 45.6', - 'baz 123.' - ].join('\n')); -}); diff --git a/node_modules/text-table/test/doubledot.js b/node_modules/text-table/test/doubledot.js deleted file mode 100644 index 659b57c9..00000000 --- a/node_modules/text-table/test/doubledot.js +++ /dev/null @@ -1,24 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('dot align', function (t) { - t.plan(1); - var s = table([ - [ '0.1.2' ], - [ '11.22.33' ], - [ '5.6.7' ], - [ '1.22222' ], - [ '12345.' ], - [ '5555.' ], - [ '123' ] - ], { align: [ '.' ] }); - t.equal(s, [ - ' 0.1.2', - '11.22.33', - ' 5.6.7', - ' 1.22222', - '12345.', - ' 5555.', - ' 123' - ].join('\n')); -}); diff --git a/node_modules/text-table/test/table.js b/node_modules/text-table/test/table.js deleted file mode 100644 index 9c670146..00000000 --- a/node_modules/text-table/test/table.js +++ /dev/null @@ -1,14 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('table', function (t) { - t.plan(1); - var s = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] - ]); - t.equal(s, [ - 'master 0123456789abcdef', - 'staging fedcba9876543210' - ].join('\n')); -}); diff --git a/node_modules/type-fest/base.d.ts b/node_modules/type-fest/base.d.ts deleted file mode 100644 index 9005ef9f..00000000 --- a/node_modules/type-fest/base.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Types that are compatible with all supported TypeScript versions. -// It's shared between all TypeScript version-specific definitions. - -// Basic -export * from './source/basic'; - -// Utilities -export {Except} from './source/except'; -export {Mutable} from './source/mutable'; -export {Merge} from './source/merge'; -export {MergeExclusive} from './source/merge-exclusive'; -export {RequireAtLeastOne} from './source/require-at-least-one'; -export {RequireExactlyOne} from './source/require-exactly-one'; -export {PartialDeep} from './source/partial-deep'; -export {ReadonlyDeep} from './source/readonly-deep'; -export {LiteralUnion} from './source/literal-union'; -export {Promisable} from './source/promisable'; -export {Opaque} from './source/opaque'; -export {SetOptional} from './source/set-optional'; -export {SetRequired} from './source/set-required'; -export {ValueOf} from './source/value-of'; -export {PromiseValue} from './source/promise-value'; -export {AsyncReturnType} from './source/async-return-type'; -export {ConditionalExcept} from './source/conditional-except'; -export {ConditionalKeys} from './source/conditional-keys'; -export {ConditionalPick} from './source/conditional-pick'; -export {UnionToIntersection} from './source/union-to-intersection'; -export {Stringified} from './source/stringified'; -export {FixedLengthArray} from './source/fixed-length-array'; -export {IterableElement} from './source/iterable-element'; -export {Entry} from './source/entry'; -export {Entries} from './source/entries'; -export {SetReturnType} from './source/set-return-type'; -export {Asyncify} from './source/asyncify'; - -// Miscellaneous -export {PackageJson} from './source/package-json'; -export {TsConfigJson} from './source/tsconfig-json'; diff --git a/node_modules/type-fest/index.d.ts b/node_modules/type-fest/index.d.ts deleted file mode 100644 index 206261c2..00000000 --- a/node_modules/type-fest/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -// These are all the basic types that's compatible with all supported TypeScript versions. -export * from './base'; diff --git a/node_modules/type-fest/license b/node_modules/type-fest/license deleted file mode 100644 index 3e4c85ab..00000000 --- a/node_modules/type-fest/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https:/sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -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. diff --git a/node_modules/type-fest/package.json b/node_modules/type-fest/package.json deleted file mode 100644 index 3ab9e4d9..00000000 --- a/node_modules/type-fest/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "type-fest", - "version": "0.20.2", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "//test": "xo && tsd && tsc", - "test": "xo && tsc" - }, - "files": [ - "index.d.ts", - "base.d.ts", - "source", - "ts41" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "~0.7.0", - "tsd": "^0.13.1", - "typescript": "^4.1.2", - "xo": "^0.35.0" - }, - "types": "./index.d.ts", - "typesVersions": { - ">=4.1": { - "*": [ - "ts41/*" - ] - } - }, - "xo": { - "rules": { - "@typescript-eslint/ban-types": "off", - "@typescript-eslint/indent": "off", - "node/no-unsupported-features/es-builtins": "off" - } - } -} diff --git a/node_modules/type-fest/readme.md b/node_modules/type-fest/readme.md deleted file mode 100644 index 714df786..00000000 --- a/node_modules/type-fest/readme.md +++ /dev/null @@ -1,658 +0,0 @@ -
-
-
- type-fest -
-
- A collection of essential TypeScript types -
-
-
-
-
- -[![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://giphy.com/gifs/illustration-rainbow-unicorn-26AHG5KGFxSkUWw1i) - - -Many of the types here should have been built-in. You can help by suggesting some of them to the [TypeScript project](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -Either add this package as a dependency or copy-paste the needed types. No credit required. 👌 - -PR welcome for additional commonly needed types and docs improvements. Read the [contributing guidelines](.github/contributing.md) first. - -## Install - -``` -$ npm install type-fest -``` - -*Requires TypeScript >=3.4* - -## Usage - -```ts -import {Except} from 'type-fest'; - -type Foo = { - unicorn: string; - rainbow: boolean; -}; - -type FooWithoutRainbow = Except; -//=> {unicorn: string} -``` - -## API - -Click the type names for complete docs. - -### Basic - -- [`Primitive`](source/basic.d.ts) - Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive). -- [`Class`](source/basic.d.ts) - Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). -- [`TypedArray`](source/basic.d.ts) - Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`. -- [`JsonObject`](source/basic.d.ts) - Matches a JSON object. -- [`JsonArray`](source/basic.d.ts) - Matches a JSON array. -- [`JsonValue`](source/basic.d.ts) - Matches any valid JSON value. -- [`ObservableLike`](source/basic.d.ts) - Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable). - -### Utilities - -- [`Except`](source/except.d.ts) - Create a type from an object type without certain keys. This is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). -- [`Mutable`](source/mutable.d.ts) - Convert an object with `readonly` keys into a mutable object. The inverse of `Readonly`. -- [`Merge`](source/merge.d.ts) - Merge two types into a new type. Keys of the second type overrides keys of the first type. -- [`MergeExclusive`](source/merge-exclusive.d.ts) - Create a type that has mutually exclusive keys. -- [`RequireAtLeastOne`](source/require-at-least-one.d.ts) - Create a type that requires at least one of the given keys. -- [`RequireExactlyOne`](source/require-exactly-one.d.ts) - Create a type that requires exactly a single key of the given keys and disallows more. -- [`PartialDeep`](source/partial-deep.d.ts) - Create a deeply optional version of another type. Use [`Partial`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1401-L1406) if you only need one level deep. -- [`ReadonlyDeep`](source/readonly-deep.d.ts) - Create a deeply immutable version of an `object`/`Map`/`Set`/`Array` type. Use [`Readonly`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1415-L1420) if you only need one level deep. -- [`LiteralUnion`](source/literal-union.d.ts) - Create a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. Workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). -- [`Promisable`](source/promisable.d.ts) - Create a type that represents either the value or the value wrapped in `PromiseLike`. -- [`Opaque`](source/opaque.d.ts) - Create an [opaque type](https://codemix.com/opaque-types-in-javascript/). -- [`SetOptional`](source/set-optional.d.ts) - Create a type that makes the given keys optional. -- [`SetRequired`](source/set-required.d.ts) - Create a type that makes the given keys required. -- [`ValueOf`](source/value-of.d.ts) - Create a union of the given object's values, and optionally specify which keys to get the values from. -- [`PromiseValue`](source/promise-value.d.ts) - Returns the type that is wrapped inside a `Promise`. -- [`AsyncReturnType`](source/async-return-type.d.ts) - Unwrap the return type of a function that returns a `Promise`. -- [`ConditionalKeys`](source/conditional-keys.d.ts) - Extract keys from a shape where values extend the given `Condition` type. -- [`ConditionalPick`](source/conditional-pick.d.ts) - Like `Pick` except it selects properties from a shape where the values extend the given `Condition` type. -- [`ConditionalExcept`](source/conditional-except.d.ts) - Like `Omit` except it removes properties from a shape where the values extend the given `Condition` type. -- [`UnionToIntersection`](source/union-to-intersection.d.ts) - Convert a union type to an intersection type. -- [`Stringified`](source/stringified.d.ts) - Create a type with the keys of the given type changed to `string` type. -- [`FixedLengthArray`](source/fixed-length-array.d.ts) - Create a type that represents an array of the given type and length. -- [`IterableElement`](source/iterable-element.d.ts) - Get the element type of an `Iterable`/`AsyncIterable`. For example, an array or a generator. -- [`Entry`](source/entry.d.ts) - Create a type that represents the type of an entry of a collection. -- [`Entries`](source/entries.d.ts) - Create a type that represents the type of the entries of a collection. -- [`SetReturnType`](source/set-return-type.d.ts) - Create a function type with a return type of your choice and the same parameters as the given function type. -- [`Asyncify`](source/asyncify.d.ts) - Create an async version of the given function type. - -### Template literal types - -*Note:* These require [TypeScript 4.1 or newer](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#template-literal-types). - -- [`CamelCase`](ts41/camel-case.d.ts) – Convert a string literal to camel-case (`fooBar`). -- [`KebabCase`](ts41/kebab-case.d.ts) – Convert a string literal to kebab-case (`foo-bar`). -- [`PascalCase`](ts41/pascal-case.d.ts) – Converts a string literal to pascal-case (`FooBar`) -- [`SnakeCase`](ts41/snake-case.d.ts) – Convert a string literal to snake-case (`foo_bar`). -- [`DelimiterCase`](ts41/delimiter-case.d.ts) – Convert a string literal to a custom string delimiter casing. - -### Miscellaneous - -- [`PackageJson`](source/package-json.d.ts) - Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). -- [`TsConfigJson`](source/tsconfig-json.d.ts) - Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) (TypeScript 3.7). - -## Declined types - -*If we decline a type addition, we will make sure to document the better solution here.* - -- [`Diff` and `Spread`](https://github.com/sindresorhus/type-fest/pull/7) - The PR author didn't provide any real-world use-cases and the PR went stale. If you think this type is useful, provide some real-world use-cases and we might reconsider. -- [`Dictionary`](https://github.com/sindresorhus/type-fest/issues/33) - You only save a few characters (`Dictionary` vs `Record`) from [`Record`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1429-L1434), which is more flexible and well-known. Also, you shouldn't use an object as a dictionary. We have `Map` in JavaScript now. -- [`SubType`](https://github.com/sindresorhus/type-fest/issues/22) - The type is powerful, but lacks good use-cases and is prone to misuse. -- [`ExtractProperties` and `ExtractMethods`](https://github.com/sindresorhus/type-fest/pull/4) - The types violate the single responsibility principle. Instead, refine your types into more granular type hierarchies. - -## Tips - -### Built-in types - -There are many advanced types most users don't know about. - -- [`Partial`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1401-L1406) - Make all properties in `T` optional. -
- - Example - - - [Playground](https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgHIHsAmEDC6QzADmyA3gLABQyycADnanALYQBcyAzmFKEQNxUaddFDAcQAV2YAjaIMoBfKlQQAbOJ05osEAIIMAQpOBrsUMkOR1eANziRkCfISKSoD4Pg4ZseAsTIALyW1DS0DEysHADkvvoMMQA0VsKi4sgAzAAMuVaKClY2wPaOknSYDrguADwA0sgQAB6QIJjaANYQAJ7oMDp+LsQAfAAUXd0cdUnI9mo+uv6uANp1ALoAlKHhyGAAFsCcAHTOAW4eYF4gyxNrwbNwago0ypRWp66jH8QcAApwYmAjxq8SWIy2FDCNDA3ToKFBQyIdR69wmfQG1TOhShyBgomQX3w3GQE2Q6IA8jIAFYQBBgI4TTiEs5bTQYsFInrLTbbHZOIlgZDlSqQABqj0kKBC3yINx6a2xfOQwH6o2FVXFaklwSCIUkbQghBAEEwENSfNOlykEGefNe5uhB2O6sgS3GPRmLogmslG1tLxUOKgEDA7hAuydtteryAA) - - ```ts - interface NodeConfig { - appName: string; - port: number; - } - - class NodeAppBuilder { - private configuration: NodeConfig = { - appName: 'NodeApp', - port: 3000 - }; - - private updateConfig(key: Key, value: NodeConfig[Key]) { - this.configuration[key] = value; - } - - config(config: Partial) { - type NodeConfigKey = keyof NodeConfig; - - for (const key of Object.keys(config) as NodeConfigKey[]) { - const updateValue = config[key]; - - if (updateValue === undefined) { - continue; - } - - this.updateConfig(key, updateValue); - } - - return this; - } - } - - // `Partial`` allows us to provide only a part of the - // NodeConfig interface. - new NodeAppBuilder().config({appName: 'ToDoApp'}); - ``` -
- -- [`Required`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1408-L1413) - Make all properties in `T` required. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgGED21VQGJZwC2wA3gFCjXAzFJgA2A-AFzADOUckA5gNxUaIYjA4ckvGG07c+g6gF8KQkAgCuEFFDA5O6gEbEwUbLm2ESwABQIixACJIoSdgCUYAR3Vg4MACYAPGYuFvYAfACU5Ko0APRxwADKMBD+wFAAFuh2Vv7OSBlYGdmc8ABu8LHKsRyGxqY4oQT21pTCIHQMjOwA5DAAHgACxAAOjDAAdChYxL0ANLHUouKSMH0AEmAAhJhY6ozpAJ77GTCMjMCiV0ToSAb7UJPPC9WRgrEJwAAqR6MwSRQPFGUFocDgRHYxnEfGAowh-zgUCOwF6KwkUl6tXqJhCeEsxDaS1AXSYfUGI3GUxmc0WSneQA) - - ```ts - interface ContactForm { - email?: string; - message?: string; - } - - function submitContactForm(formData: Required) { - // Send the form data to the server. - } - - submitContactForm({ - email: 'ex@mple.com', - message: 'Hi! Could you tell me more about…', - }); - - // TypeScript error: missing property 'message' - submitContactForm({ - email: 'ex@mple.com', - }); - ``` -
- -- [`Readonly`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1415-L1420) - Make all properties in `T` readonly. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4UwOwVwW2AZA9gc3mAbmANsA3gKFCOAHkAzMgGkOJABEwAjKZa2kAUQCcvEu32AMQCGAF2FYBIAL4BufDRABLCKLBcywgMZgEKZOoDCiCGSXI8i4hGEwwALmABnUVxXJ57YFgzZHSVF8sT1BpBSItLGEnJz1kAy5LLy0TM2RHACUwYQATEywATwAeAITjU3MAPnkrCJMXLigtUT4AClxgGztKbyDgaX99I1TzAEokr1BRAAslJwA6FIqLAF48TtswHp9MHDla9hJGACswZvmyLjAwAC8wVpm5xZHkUZDaMKIwqyWXYCW0oN4sNlsA1h0ug5gAByACyBQAggAHJHQ7ZBIFoXbzBjMCz7OoQP5YIaJNYQMAAdziCVaALGNSIAHomcAACoFJFgADKWjcSNEwG4vC4ji0wggEEQguiTnMEGALWAV1yAFp8gVgEjeFyuKICvMrCTgVxnst5jtsGC4ljsPNhXxGaAWcAAOq6YRXYDCRg+RWIcA5JSC+kWdCepQ+v3RYCU3RInzRMCGwlpC19NYBW1Ye08R1AA) - - ```ts - enum LogLevel { - Off, - Debug, - Error, - Fatal - }; - - interface LoggerConfig { - name: string; - level: LogLevel; - } - - class Logger { - config: Readonly; - - constructor({name, level}: LoggerConfig) { - this.config = {name, level}; - Object.freeze(this.config); - } - } - - const config: LoggerConfig = { - name: 'MyApp', - level: LogLevel.Debug - }; - - const logger = new Logger(config); - - // TypeScript Error: cannot assign to read-only property. - logger.config.level = LogLevel.Error; - - // We are able to edit config variable as we please. - config.level = LogLevel.Error; - ``` -
- -- [`Pick`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1422-L1427) - From `T`, pick a set of properties whose keys are in the union `K`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgEE5TCgNugN4BQoZwOUBAXMAM5RyQDmA3KeSFABYCuAtgCMISMHloMmENh04oA9tBjQJjFuzIBfYrOAB6PcADCcGElh1gEGAHcKATwAO6ebyjB5CTNlwFwSxFR0BX5HeToYABNgBDh5fm8cfBg6AHIKG3ldA2BHOOcfFNpUygJ0pAhokr4hETFUgDpswywkggAFUwA3MFtgAF5gQgowKhhVKTYKGuFRcXo1aVZgbTIoJ3RW3xhOmB6+wfbcAGsAHi3kgBpgEtGy4AAfG54BWfqAPnZm4AAlZUj4MAkMA8GAGB4vEgfMlLLw6CwPBA8PYRmMgZVgAC6CgmI4cIommQELwICh8RBgKZKvALh1ur0bHQABR5PYMui0Wk7em2ADaAF0AJS0AASABUALIAGQAogR+Mp3CROCAFBBwVC2ikBpj5CgBIqGjizLA5TAFdAmalImAuqlBRoVQh5HBgEy1eDWfs7J5cjzGYKhroVfpDEhHM4MV6GRR5NN0JrtnRg6BVirTFBeHAKYmYY6QNpdB73LmCJZBlSAXAubtvczeSmQMNSuMbmKNgBlHFgPEUNwusBIPAAQlS1xetTmxT0SDoESgdD0C4aACtHMwxytLrohawgA) - - ```ts - interface Article { - title: string; - thumbnail: string; - content: string; - } - - // Creates new type out of the `Article` interface composed - // from the Articles' two properties: `title` and `thumbnail`. - // `ArticlePreview = {title: string; thumbnail: string}` - type ArticlePreview = Pick; - - // Render a list of articles using only title and description. - function renderArticlePreviews(previews: ArticlePreview[]): HTMLElement { - const articles = document.createElement('div'); - - for (const preview of previews) { - // Append preview to the articles. - } - - return articles; - } - - const articles = renderArticlePreviews([ - { - title: 'TypeScript tutorial!', - thumbnail: '/assets/ts.jpg' - } - ]); - ``` -
- -- [`Record`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1429-L1434) - Construct a type with a set of properties `K` of type `T`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4ejYAUHsGcCWAXBMB2dgwGbAKYC2ADgDYwCeeemCaWArgE7ADGMxAhmuQHQBQoYEnJE8wALKEARnkaxEKdMAC8wAOS0kstGuAAfdQBM8ANzxlRjXQbVaWACwC0JPB0NqA3HwGgIwAJJoWozYHCxixnAsjAhStADmwESMMJYo1Fi4HMCIaPEu+MRklHj8gpqyoeHAAKJFFFTAAN4+giDYCIxwSAByHAR4AFw5SDF5Xm2gJBzdfQPD3WPxE5PAlBxdAPLYNQAelgh4aOHDaPQEMowrIAC+3oJ+AMKMrlrAXFhSAFZ4LEhC9g4-0BmA4JBISXgiCkBQABpILrJ5MhUGhYcATGD6Bk4Hh-jNgABrPDkOBlXyQAAq9ngYmJpOAAHcEOCRjAXqwYODfoo6DhakUSph+Uh7GI4P0xER4Cj0OSQGwMP8tP1hgAlX7swwAHgRl2RvIANALSA08ABtAC6AD4VM1Wm0Kow0MMrYaHYJjGYLLJXZb3at1HYnC43Go-QHQDcvA6-JsmEJXARgCDgMYWAhjIYhDAU+YiMAAFIwex0ZmilMITCGF79TLAGRsAgJYAAZRwSEZGzEABFTOZUrJ5Yn+jwnWgeER6HB7AAKJrADpdXqS4ZqYultTG6azVfqHswPBbtauLY7fayQ7HIbAAAMwBuAEoYw9IBq2Ixs9h2eFMOQYPQObALQKJgggABeYhghCIpikkKRpOQRIknAsZUiIeCttECBEP8NSMCkjDDAARMGziuIYxHwYOjDCMBmDNnAuTxA6irdCOBB1Lh5Dqpqn66tISIykawBnOCtqqC0gbjqc9DgpGkxegOliyfJDrRkAA) - - ```ts - // Positions of employees in our company. - type MemberPosition = 'intern' | 'developer' | 'tech-lead'; - - // Interface describing properties of a single employee. - interface Employee { - firstName: string; - lastName: string; - yearsOfExperience: number; - } - - // Create an object that has all possible `MemberPosition` values set as keys. - // Those keys will store a collection of Employees of the same position. - const team: Record = { - intern: [], - developer: [], - 'tech-lead': [], - }; - - // Our team has decided to help John with his dream of becoming Software Developer. - team.intern.push({ - firstName: 'John', - lastName: 'Doe', - yearsOfExperience: 0 - }); - - // `Record` forces you to initialize all of the property keys. - // TypeScript Error: "tech-lead" property is missing - const teamEmpty: Record = { - intern: null, - developer: null, - }; - ``` -
- -- [`Exclude`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1436-L1439) - Exclude from `T` those types that are assignable to `U`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgMrQG7QMIHsQzADmyA3gFDLIAOuUYAXMiAK4A2byAPsgM5hRQJHqwC2AI2gBucgF9y5MAE9qKAEoQAjiwj8AEnBAATNtGQBeZAAooWphu26wAGmS3e93bRC8IASgsAPmRDJRlyAHoI5ABRAA8ENhYjFFYOZGVVZBgoXFFkAAM0zh5+QRBhZhYJaAKAOkjogEkQZAQ4X2QAdwALCFbaemRgXmQtFjhOMFwq9K6ULuB0lk6U+HYwZAxJnQaYFhAEMGB8ZCIIMAAFOjAANR2IK0HGWISklIAedCgsKDwCYgAbQA5M9gQBdVzFQJ+JhiSRQMiUYYwayZCC4VHPCzmSzAspCYEBWxgFhQAZwKC+FpgJ43VwARgADH4ZFQSWSBjcZPJyPtDsdTvxKWBvr8rD1DCZoJ5HPopaYoK4EPhCEQmGKcKriLCtrhgEYkVQVT5Nr4fmZLLZtMBbFZgT0wGBqES6ghbHBIJqoBKFdBWQpjfh+DQbhY2tqiHVsbjLMVkAB+ZAAZiZaeQTHOVxu9ySjxNaujNwDVHNvzqbBGkBAdPoAfkQA) - - ```ts - interface ServerConfig { - port: null | string | number; - } - - type RequestHandler = (request: Request, response: Response) => void; - - // Exclude `null` type from `null | string | number`. - // In case the port is equal to `null`, we will use default value. - function getPortValue(port: Exclude): number { - if (typeof port === 'string') { - return parseInt(port, 10); - } - - return port; - } - - function startServer(handler: RequestHandler, config: ServerConfig): void { - const server = require('http').createServer(handler); - - const port = config.port === null ? 3000 : getPortValue(config.port); - server.listen(port); - } - ``` -
- -- [`Extract`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1441-L1444) - Extract from `T` those types that are assignable to `U`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXzSwEdkQBJYACgEoAueVZAWwCMQYBuAKDDwGcM8MgBF4AXngBlAJ6scESgHIRi6ty5ZUGdoihgEABXZ888AN5d48ANoiAuvUat23K6ihMQ9ATE0BzV3goPy8GZjZOLgBfLi4Aejj4AEEICBwAdz54MAALKFQQ+BxEeAAHY1NgKAwoIKy0grr4DByEUpgccpgMaXgAaxBerCzi+B9-ZulygDouFHRsU1z8kKMYE1RhaqgAHkt4AHkWACt4EAAPbVRgLLWNgBp9gGlBs8uQa6yAUUuYPQwdgNpKM7nh7mMML4CgA+R5WABqUAgpDeVxuhxO1he0jsXGh8EoOBO9COx3BQPo2PBADckaR6IjkSA6PBqTgsMBzPsicdrEC7OJWXSQNwYvFEgAVTS9JLXODpeDpKBZFg4GCoWa8VACIJykAKiQWKy2YQOAioYikCg0OEMDyhRSy4DyxS24KhAAMjyi6gS8AAwjh5OD0iBFHAkJoEOksC1mnkMJq8gUQKDNttKPlnfrwYp3J5XfBHXqoKpfYkAOI4ansTxaeDADmoRSCCBYAbxhC6TDx6rwYHIRX5bScjA4bLJwoDmDwDkfbA9JMrVMVdM1TN69LgkTgwgkchUahqIA) - - ```ts - declare function uniqueId(): number; - - const ID = Symbol('ID'); - - interface Person { - [ID]: number; - name: string; - age: number; - } - - // Allows changing the person data as long as the property key is of string type. - function changePersonData< - Obj extends Person, - Key extends Extract, - Value extends Obj[Key] - > (obj: Obj, key: Key, value: Value): void { - obj[key] = value; - } - - // Tiny Andrew was born. - const andrew = { - [ID]: uniqueId(), - name: 'Andrew', - age: 0, - }; - - // Cool, we're fine with that. - changePersonData(andrew, 'name', 'Pony'); - - // Goverment didn't like the fact that you wanted to change your identity. - changePersonData(andrew, ID, uniqueId()); - ``` -
- -- [`NonNullable`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1446-L1449) - Exclude `null` and `undefined` from `T`. -
- - Example - - Works with strictNullChecks set to true. (Read more here) - - [Playground](https://typescript-play.js.org/?target=6#code/C4TwDgpgBACg9gJ2AOQK4FsBGEFQLxQDOwCAlgHYDmUAPlORtrnQwDasDcAUFwPQBU-WAEMkUOADMowqAGNWwwoSgATCBIqlgpOOSjAAFsOBRSy1IQgr9cKJlSlW1mZYQA3HFH68u8xcoBlHA8EACEHJ08Aby4oKDBUTFZSWXjEFEYcAEIALihkXTR2YSSIAB54JDQsHAA+blj4xOTUsHSACkMzPKD3HHDHNQQAGjSkPMqMmoQASh7g-oihqBi4uNIpdraxPAI2VhmVxrX9AzMAOm2ppnwoAA4ABifuE4BfKAhWSyOTuK7CS7pao3AhXF5rV48E4ICDAVAIPT-cGQyG+XTEIgLMJLTx7CAAdygvRCA0iCHaMwarhJOIQjUBSHaACJHk8mYdeLwxtdcVAAOSsh58+lXdr7Dlcq7A3n3J4PEUdADMcspUE53OluAIUGVTx46oAKuAIAFZGQwCYAKIIBCILjUxaDHAMnla+iodjcIA) - - ```ts - type PortNumber = string | number | null; - - /** Part of a class definition that is used to build a server */ - class ServerBuilder { - portNumber!: NonNullable; - - port(this: ServerBuilder, port: PortNumber): ServerBuilder { - if (port == null) { - this.portNumber = 8000; - } else { - this.portNumber = port; - } - - return this; - } - } - - const serverBuilder = new ServerBuilder(); - - serverBuilder - .port('8000') // portNumber = '8000' - .port(null) // portNumber = 8000 - .port(3000); // portNumber = 3000 - - // TypeScript error - serverBuilder.portNumber = null; - ``` -
- -- [`Parameters`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1451-L1454) - Obtain the parameters of a function type in a tuple. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/GYVwdgxgLglg9mABAZwBYmMANgUwBQxgAOIUAXIgIZgCeA2gLoCUFAbnDACaIDeAUIkQB6IYgCypSlBxUATrMo1ECsJzgBbLEoipqAc0J7EMKMgDkiHLnU4wp46pwAPHMgB0fAL58+oSLARECEosLAA5ABUYG2QAHgAxJGdpVWREPDdMylk9ZApqemZEAF4APipacrw-CApEgBogkKwAYThwckQwEHUAIxxZJl4BYVEImiIZKF0oZRwiWVdbeygJmThgOYgcGFYcbhqApCJsyhtpWXcR1cnEePBoeDAABVPzgbTixFeFd8uEsClADcIxGiygIFkSEOT3SmTc2VydQeRx+ZxwF2QQ34gkEwDgsnSuFmMBKiAADEDjIhYk1Qm0OlSYABqZnYka4xA1DJZHJYkGc7yCbyeRA+CAIZCzNAYbA4CIAdxg2zJwVCkWirjwMswuEaACYmCCgA) - - ```ts - function shuffle(input: any[]): void { - // Mutate array randomly changing its' elements indexes. - } - - function callNTimes any> (func: Fn, callCount: number) { - // Type that represents the type of the received function parameters. - type FunctionParameters = Parameters; - - return function (...args: FunctionParameters) { - for (let i = 0; i < callCount; i++) { - func(...args); - } - } - } - - const shuffleTwice = callNTimes(shuffle, 2); - ``` -
- -- [`ConstructorParameters`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1456-L1459) - Obtain the parameters of a constructor function type in a tuple. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECCBOAXAlqApgWQPYBM0mgG8AoaaFRENALmgkXmQDsBzAblOmCycTV4D8teo1YdO3JiICuwRFngAKClWENmLAJRFOZRAAtkEAHQq00ALzlklNBzIBfYk+KhIMAJJTEYJsDQAwmDA+mgAPAAq0GgAHnxMODCKTGgA7tCKxllg8CwQtL4AngDaALraFgB80EWa1SRkAA6MAG5gfNAB4FABPDJyCrQR9tDNyG0dwMGhtBhgjWEiGgA00F70vv4RhY3hEZXVVinpc42KmuJkkv3y8Bly8EPaDWTkhiZd7r3e8LK3llwGCMXGQWGhEOsfH5zJlsrl8p0+gw-goAAo5MAAW3BaHgEEilU0tEhmzQ212BJ0ry4SOg+kg+gBBiMximIGA0nAfAQLGk2N4EAAEgzYcYcnkLsRdDTvNEYkYUKwSdCme9WdM0MYwYhFPSIPpJdTkAAzDKxBUaZX+aAAQgsVmkCTQxuYaBw2ng4Ok8CYcotSu8pMur09iG9vuObxZnx6SN+AyUWTF8MN0CcZE4Ywm5jZHK5aB5fP4iCFIqT4oRRTKRLo6lYVNeAHpG50wOzOe1zHr9NLQ+HoABybsD4HOKXXRA1JCoKhBELmI5pNaB6Fz0KKBAodDYPAgSUTmqYsAALx4m5nC6nW9nGq14KtaEUA9gR9PvuNCjQ9BgACNvcwNBtAcLiAA) - - ```ts - class ArticleModel { - title: string; - content?: string; - - constructor(title: string) { - this.title = title; - } - } - - class InstanceCache any)> { - private ClassConstructor: T; - private cache: Map> = new Map(); - - constructor (ctr: T) { - this.ClassConstructor = ctr; - } - - getInstance (...args: ConstructorParameters): InstanceType { - const hash = this.calculateArgumentsHash(...args); - - const existingInstance = this.cache.get(hash); - if (existingInstance !== undefined) { - return existingInstance; - } - - return new this.ClassConstructor(...args); - } - - private calculateArgumentsHash(...args: any[]): string { - // Calculate hash. - return 'hash'; - } - } - - const articleCache = new InstanceCache(ArticleModel); - const amazonArticle = articleCache.getInstance('Amazon forests burining!'); - ``` -
- -- [`ReturnType`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1461-L1464) – Obtain the return type of a function type. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA) - - ```ts - /** Provides every element of the iterable `iter` into the `callback` function and stores the results in an array. */ - function mapIter< - Elem, - Func extends (elem: Elem) => any, - Ret extends ReturnType - >(iter: Iterable, callback: Func): Ret[] { - const mapped: Ret[] = []; - - for (const elem of iter) { - mapped.push(callback(elem)); - } - - return mapped; - } - - const setObject: Set = new Set(); - const mapObject: Map = new Map(); - - mapIter(setObject, (value: string) => value.indexOf('Foo')); // number[] - - mapIter(mapObject, ([key, value]: [number, string]) => { - return key % 2 === 0 ? value : 'Odd'; - }); // string[] - ``` -
- -- [`InstanceType`](https://github.com/Microsoft/TypeScript/blob/2961bc3fc0ea1117d4e53bc8e97fa76119bc33e3/src/lib/es5.d.ts#L1466-L1469) – Obtain the instance type of a constructor function type. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA) - - ```ts - class IdleService { - doNothing (): void {} - } - - class News { - title: string; - content: string; - - constructor(title: string, content: string) { - this.title = title; - this.content = content; - } - } - - const instanceCounter: Map = new Map(); - - interface Constructor { - new(...args: any[]): any; - } - - // Keep track how many instances of `Constr` constructor have been created. - function getInstance< - Constr extends Constructor, - Args extends ConstructorParameters - >(constructor: Constr, ...args: Args): InstanceType { - let count = instanceCounter.get(constructor) || 0; - - const instance = new constructor(...args); - - instanceCounter.set(constructor, count + 1); - - console.log(`Created ${count + 1} instances of ${Constr.name} class`); - - return instance; - } - - - const idleService = getInstance(IdleService); - // Will log: `Created 1 instances of IdleService class` - const newsEntry = getInstance(News, 'New ECMAScript proposals!', 'Last month...'); - // Will log: `Created 1 instances of News class` - ``` -
- -- [`Omit`](https://github.com/microsoft/TypeScript/blob/71af02f7459dc812e85ac31365bfe23daf14b4e4/src/lib/es5.d.ts#L1446) – Constructs a type by picking all properties from T and then removing K. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgIImAWzgG2QbwChlks4BzCAVShwC5kBnMKUcgbmKYAcIFgIjBs1YgOXMpSFMWbANoBdTiW5woFddwAW0kfKWEAvoUIB6U8gDCUCHEiNkICAHdkYAJ69kz4GC3JcPG4oAHteKDABBxCYNAxsPFBIWEQUCAAPJG4wZABySUFcgJAAEzMLXNV1ck0dIuCw6EjBADpy5AB1FAQ4EGQAV0YUP2AHDy8wEOQbUugmBLwtEIA3OcmQnEjuZBgQqE7gAGtgZAhwKHdkHFGwNvGUdDIcAGUliIBJEF3kAF5kAHlML4ADyPBIAGjyBUYRQAPnkqho4NoYQA+TiEGD9EAISIhPozErQMG4AASK2gn2+AApek9pCSXm8wFSQooAJQMUkAFQAsgAZACiOAgmDOOSIJAQ+OYyGl4DgoDmf2QJRCCH6YvALQQNjsEGFovF1NyJWAy1y7OUyHMyE+yRAuFImG4Iq1YDswHxbRINjA-SgfXlHqVUE4xiAA) - - ```ts - interface Animal { - imageUrl: string; - species: string; - images: string[]; - paragraphs: string[]; - } - - // Creates new type with all properties of the `Animal` interface - // except 'images' and 'paragraphs' properties. We can use this - // type to render small hover tooltip for a wiki entry list. - type AnimalShortInfo = Omit; - - function renderAnimalHoverInfo (animals: AnimalShortInfo[]): HTMLElement { - const container = document.createElement('div'); - // Internal implementation. - return container; - } - ``` -
- -You can find some examples in the [TypeScript docs](https://www.typescriptlang.org/docs/handbook/advanced-types.html#predefined-conditional-types). - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Jarek Radosz](https://github.com/CvX) -- [Dimitri Benin](https://github.com/BendingBender) -- [Pelle Wessman](https://github.com/voxpelli) - -## License - -(MIT OR CC0-1.0) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/type-fest/source/async-return-type.d.ts b/node_modules/type-fest/source/async-return-type.d.ts deleted file mode 100644 index 79ec1e96..00000000 --- a/node_modules/type-fest/source/async-return-type.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import {PromiseValue} from './promise-value'; - -type AsyncFunction = (...args: any[]) => Promise; - -/** -Unwrap the return type of a function that returns a `Promise`. - -There has been [discussion](https://github.com/microsoft/TypeScript/pull/35998) about implementing this type in TypeScript. - -@example -```ts -import {AsyncReturnType} from 'type-fest'; -import {asyncFunction} from 'api'; - -// This type resolves to the unwrapped return type of `asyncFunction`. -type Value = AsyncReturnType; - -async function doSomething(value: Value) {} - -asyncFunction().then(value => doSomething(value)); -``` -*/ -export type AsyncReturnType = PromiseValue>; diff --git a/node_modules/type-fest/source/asyncify.d.ts b/node_modules/type-fest/source/asyncify.d.ts deleted file mode 100644 index 455f2ebd..00000000 --- a/node_modules/type-fest/source/asyncify.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {PromiseValue} from './promise-value'; -import {SetReturnType} from './set-return-type'; - -/** -Create an async version of the given function type, by boxing the return type in `Promise` while keeping the same parameter types. - -Use-case: You have two functions, one synchronous and one asynchronous that do the same thing. Instead of having to duplicate the type definition, you can use `Asyncify` to reuse the synchronous type. - -@example -``` -import {Asyncify} from 'type-fest'; - -// Synchronous function. -function getFooSync(someArg: SomeType): Foo { - // … -} - -type AsyncifiedFooGetter = Asyncify; -//=> type AsyncifiedFooGetter = (someArg: SomeType) => Promise; - -// Same as `getFooSync` but asynchronous. -const getFooAsync: AsyncifiedFooGetter = (someArg) => { - // TypeScript now knows that `someArg` is `SomeType` automatically. - // It also knows that this function must return `Promise`. - // If you have `@typescript-eslint/promise-function-async` linter rule enabled, it will even report that "Functions that return promises must be async.". - - // … -} -``` -*/ -export type Asyncify any> = SetReturnType>>>; diff --git a/node_modules/type-fest/source/basic.d.ts b/node_modules/type-fest/source/basic.d.ts deleted file mode 100644 index d380c8b9..00000000 --- a/node_modules/type-fest/source/basic.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/// - -// TODO: This can just be `export type Primitive = not object` when the `not` keyword is out. -/** -Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive). -*/ -export type Primitive = - | null - | undefined - | string - | number - | boolean - | symbol - | bigint; - -// TODO: Remove the `= unknown` sometime in the future when most users are on TS 3.5 as it's now the default -/** -Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). -*/ -export type Class = new(...arguments_: Arguments) => T; - -/** -Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`. -*/ -export type TypedArray = - | Int8Array - | Uint8Array - | Uint8ClampedArray - | Int16Array - | Uint16Array - | Int32Array - | Uint32Array - | Float32Array - | Float64Array - | BigInt64Array - | BigUint64Array; - -/** -Matches a JSON object. - -This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: `jsonObject as unknown as CustomResponse`. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: `interface CustomResponse extends JsonObject { … }`. -*/ -export type JsonObject = {[Key in string]?: JsonValue}; - -/** -Matches a JSON array. -*/ -export interface JsonArray extends Array {} - -/** -Matches any valid JSON value. -*/ -export type JsonValue = string | number | boolean | null | JsonObject | JsonArray; - -declare global { - interface SymbolConstructor { - readonly observable: symbol; - } -} - -/** -Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable). -*/ -export interface ObservableLike { - subscribe(observer: (value: unknown) => void): void; - [Symbol.observable](): ObservableLike; -} diff --git a/node_modules/type-fest/source/conditional-except.d.ts b/node_modules/type-fest/source/conditional-except.d.ts deleted file mode 100644 index ac506ccf..00000000 --- a/node_modules/type-fest/source/conditional-except.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import {Except} from './except'; -import {ConditionalKeys} from './conditional-keys'; - -/** -Exclude keys from a shape that matches the given `Condition`. - -This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties. - -@example -``` -import {Primitive, ConditionalExcept} from 'type-fest'; - -class Awesome { - name: string; - successes: number; - failures: bigint; - - run() {} -} - -type ExceptPrimitivesFromAwesome = ConditionalExcept; -//=> {run: () => void} -``` - -@example -``` -import {ConditionalExcept} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c: () => void; - d: {}; -} - -type NonStringKeysOnly = ConditionalExcept; -//=> {b: string | number; c: () => void; d: {}} -``` -*/ -export type ConditionalExcept = Except< - Base, - ConditionalKeys ->; diff --git a/node_modules/type-fest/source/conditional-keys.d.ts b/node_modules/type-fest/source/conditional-keys.d.ts deleted file mode 100644 index eb074dc5..00000000 --- a/node_modules/type-fest/source/conditional-keys.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** -Extract the keys from a type where the value type of the key extends the given `Condition`. - -Internally this is used for the `ConditionalPick` and `ConditionalExcept` types. - -@example -``` -import {ConditionalKeys} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c?: string; - d: {}; -} - -type StringKeysOnly = ConditionalKeys; -//=> 'a' -``` - -To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below. - -@example -``` -type StringKeysAndUndefined = ConditionalKeys; -//=> 'a' | 'c' -``` -*/ -export type ConditionalKeys = NonNullable< - // Wrap in `NonNullable` to strip away the `undefined` type from the produced union. - { - // Map through all the keys of the given base type. - [Key in keyof Base]: - // Pick only keys with types extending the given `Condition` type. - Base[Key] extends Condition - // Retain this key since the condition passes. - ? Key - // Discard this key since the condition fails. - : never; - - // Convert the produced object into a union type of the keys which passed the conditional test. - }[keyof Base] ->; diff --git a/node_modules/type-fest/source/conditional-pick.d.ts b/node_modules/type-fest/source/conditional-pick.d.ts deleted file mode 100644 index cecc3df1..00000000 --- a/node_modules/type-fest/source/conditional-pick.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import {ConditionalKeys} from './conditional-keys'; - -/** -Pick keys from the shape that matches the given `Condition`. - -This is useful when you want to create a new type from a specific subset of an existing type. For example, you might want to pick all the primitive properties from a class and form a new automatically derived type. - -@example -``` -import {Primitive, ConditionalPick} from 'type-fest'; - -class Awesome { - name: string; - successes: number; - failures: bigint; - - run() {} -} - -type PickPrimitivesFromAwesome = ConditionalPick; -//=> {name: string; successes: number; failures: bigint} -``` - -@example -``` -import {ConditionalPick} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c: () => void; - d: {}; -} - -type StringKeysOnly = ConditionalPick; -//=> {a: string} -``` -*/ -export type ConditionalPick = Pick< - Base, - ConditionalKeys ->; diff --git a/node_modules/type-fest/source/entries.d.ts b/node_modules/type-fest/source/entries.d.ts deleted file mode 100644 index e02237a9..00000000 --- a/node_modules/type-fest/source/entries.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import {ArrayEntry, MapEntry, ObjectEntry, SetEntry} from './entry'; - -type ArrayEntries = Array>; -type MapEntries = Array>; -type ObjectEntries = Array>; -type SetEntries> = Array>; - -/** -Many collections have an `entries` method which returns an array of a given object's own enumerable string-keyed property [key, value] pairs. The `Entries` type will return the type of that collection's entries. - -For example the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries|`Object`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries|`Map`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries|`Array`}, and {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries|`Set`} collections all have this method. Note that `WeakMap` and `WeakSet` do not have this method since their entries are not enumerable. - -@see `Entry` if you want to just access the type of a single entry. - -@example -``` -import {Entries} from 'type-fest'; - -interface Example { - someKey: number; -} - -const manipulatesEntries = (examples: Entries) => examples.map(example => [ - // Does some arbitrary processing on the key (with type information available) - example[0].toUpperCase(), - - // Does some arbitrary processing on the value (with type information available) - example[1].toFixed() -]); - -const example: Example = {someKey: 1}; -const entries = Object.entries(example) as Entries; -const output = manipulatesEntries(entries); - -// Objects -const objectExample = {a: 1}; -const objectEntries: Entries = [['a', 1]]; - -// Arrays -const arrayExample = ['a', 1]; -const arrayEntries: Entries = [[0, 'a'], [1, 1]]; - -// Maps -const mapExample = new Map([['a', 1]]); -const mapEntries: Entries = [['a', 1]]; - -// Sets -const setExample = new Set(['a', 1]); -const setEntries: Entries = [['a', 'a'], [1, 1]]; -``` -*/ -export type Entries = - BaseType extends Map ? MapEntries - : BaseType extends Set ? SetEntries - : BaseType extends unknown[] ? ArrayEntries - : BaseType extends object ? ObjectEntries - : never; diff --git a/node_modules/type-fest/source/entry.d.ts b/node_modules/type-fest/source/entry.d.ts deleted file mode 100644 index 41a13a97..00000000 --- a/node_modules/type-fest/source/entry.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -type MapKey = BaseType extends Map ? KeyType : never; -type MapValue = BaseType extends Map ? ValueType : never; - -export type ArrayEntry = [number, BaseType[number]]; -export type MapEntry = [MapKey, MapValue]; -export type ObjectEntry = [keyof BaseType, BaseType[keyof BaseType]]; -export type SetEntry = BaseType extends Set ? [ItemType, ItemType] : never; - -/** -Many collections have an `entries` method which returns an array of a given object's own enumerable string-keyed property [key, value] pairs. The `Entry` type will return the type of that collection's entry. - -For example the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries|`Object`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries|`Map`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries|`Array`}, and {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries|`Set`} collections all have this method. Note that `WeakMap` and `WeakSet` do not have this method since their entries are not enumerable. - -@see `Entries` if you want to just access the type of the array of entries (which is the return of the `.entries()` method). - -@example -``` -import {Entry} from 'type-fest'; - -interface Example { - someKey: number; -} - -const manipulatesEntry = (example: Entry) => [ - // Does some arbitrary processing on the key (with type information available) - example[0].toUpperCase(), - - // Does some arbitrary processing on the value (with type information available) - example[1].toFixed(), -]; - -const example: Example = {someKey: 1}; -const entry = Object.entries(example)[0] as Entry; -const output = manipulatesEntry(entry); - -// Objects -const objectExample = {a: 1}; -const objectEntry: Entry = ['a', 1]; - -// Arrays -const arrayExample = ['a', 1]; -const arrayEntryString: Entry = [0, 'a']; -const arrayEntryNumber: Entry = [1, 1]; - -// Maps -const mapExample = new Map([['a', 1]]); -const mapEntry: Entry = ['a', 1]; - -// Sets -const setExample = new Set(['a', 1]); -const setEntryString: Entry = ['a', 'a']; -const setEntryNumber: Entry = [1, 1]; -``` -*/ -export type Entry = - BaseType extends Map ? MapEntry - : BaseType extends Set ? SetEntry - : BaseType extends unknown[] ? ArrayEntry - : BaseType extends object ? ObjectEntry - : never; diff --git a/node_modules/type-fest/source/except.d.ts b/node_modules/type-fest/source/except.d.ts deleted file mode 100644 index 7dedbaa4..00000000 --- a/node_modules/type-fest/source/except.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** -Create a type from an object type without certain keys. - -This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically. - -Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/30825) if you want to have the stricter version as a built-in in TypeScript. - -@example -``` -import {Except} from 'type-fest'; - -type Foo = { - a: number; - b: string; - c: boolean; -}; - -type FooWithoutA = Except; -//=> {b: string}; -``` -*/ -export type Except = Pick>; diff --git a/node_modules/type-fest/source/fixed-length-array.d.ts b/node_modules/type-fest/source/fixed-length-array.d.ts deleted file mode 100644 index e3bc0f47..00000000 --- a/node_modules/type-fest/source/fixed-length-array.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** -Methods to exclude. -*/ -type ArrayLengthMutationKeys = 'splice' | 'push' | 'pop' | 'shift' | 'unshift'; - -/** -Create a type that represents an array of the given type and length. The array's length and the `Array` prototype methods that manipulate its length are excluded in the resulting type. - -Please participate in [this issue](https://github.com/microsoft/TypeScript/issues/26223) if you want to have a similiar type built into TypeScript. - -Use-cases: -- Declaring fixed-length tuples or arrays with a large number of items. -- Creating a range union (for example, `0 | 1 | 2 | 3 | 4` from the keys of such a type) without having to resort to recursive types. -- Creating an array of coordinates with a static length, for example, length of 3 for a 3D vector. - -@example -``` -import {FixedLengthArray} from 'type-fest'; - -type FencingTeam = FixedLengthArray; - -const guestFencingTeam: FencingTeam = ['Josh', 'Michael', 'Robert']; - -const homeFencingTeam: FencingTeam = ['George', 'John']; -//=> error TS2322: Type string[] is not assignable to type 'FencingTeam' - -guestFencingTeam.push('Sam'); -//=> error TS2339: Property 'push' does not exist on type 'FencingTeam' -``` -*/ -export type FixedLengthArray = Pick< - ArrayPrototype, - Exclude -> & { - [index: number]: Element; - [Symbol.iterator]: () => IterableIterator; - readonly length: Length; -}; diff --git a/node_modules/type-fest/source/iterable-element.d.ts b/node_modules/type-fest/source/iterable-element.d.ts deleted file mode 100644 index 174cfbf4..00000000 --- a/node_modules/type-fest/source/iterable-element.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** -Get the element type of an `Iterable`/`AsyncIterable`. For example, an array or a generator. - -This can be useful, for example, if you want to get the type that is yielded in a generator function. Often the return type of those functions are not specified. - -This type works with both `Iterable`s and `AsyncIterable`s, so it can be use with synchronous and asynchronous generators. - -Here is an example of `IterableElement` in action with a generator function: - -@example -``` -function * iAmGenerator() { - yield 1; - yield 2; -} - -type MeNumber = IterableElement> -``` - -And here is an example with an async generator: - -@example -``` -async function * iAmGeneratorAsync() { - yield 'hi'; - yield true; -} - -type MeStringOrBoolean = IterableElement> -``` - -Many types in JavaScript/TypeScript are iterables. This type works on all types that implement those interfaces. For example, `Array`, `Set`, `Map`, `stream.Readable`, etc. - -An example with an array of strings: - -@example -``` -type MeString = IterableElement -``` -*/ -export type IterableElement = - TargetIterable extends Iterable ? - ElementType : - TargetIterable extends AsyncIterable ? - ElementType : - never; diff --git a/node_modules/type-fest/source/literal-union.d.ts b/node_modules/type-fest/source/literal-union.d.ts deleted file mode 100644 index 8debd93d..00000000 --- a/node_modules/type-fest/source/literal-union.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {Primitive} from './basic'; - -/** -Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. - -Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals. - -This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore. - -@example -``` -import {LiteralUnion} from 'type-fest'; - -// Before - -type Pet = 'dog' | 'cat' | string; - -const pet: Pet = ''; -// Start typing in your TypeScript-enabled IDE. -// You **will not** get auto-completion for `dog` and `cat` literals. - -// After - -type Pet2 = LiteralUnion<'dog' | 'cat', string>; - -const pet: Pet2 = ''; -// You **will** get auto-completion for `dog` and `cat` literals. -``` - */ -export type LiteralUnion< - LiteralType, - BaseType extends Primitive -> = LiteralType | (BaseType & {_?: never}); diff --git a/node_modules/type-fest/source/merge-exclusive.d.ts b/node_modules/type-fest/source/merge-exclusive.d.ts deleted file mode 100644 index 059bd2cb..00000000 --- a/node_modules/type-fest/source/merge-exclusive.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// Helper type. Not useful on its own. -type Without = {[KeyType in Exclude]?: never}; - -/** -Create a type that has mutually exclusive keys. - -This type was inspired by [this comment](https://github.com/Microsoft/TypeScript/issues/14094#issuecomment-373782604). - -This type works with a helper type, called `Without`. `Without` produces a type that has only keys from `FirstType` which are not present on `SecondType` and sets the value type for these keys to `never`. This helper type is then used in `MergeExclusive` to remove keys from either `FirstType` or `SecondType`. - -@example -``` -import {MergeExclusive} from 'type-fest'; - -interface ExclusiveVariation1 { - exclusive1: boolean; -} - -interface ExclusiveVariation2 { - exclusive2: string; -} - -type ExclusiveOptions = MergeExclusive; - -let exclusiveOptions: ExclusiveOptions; - -exclusiveOptions = {exclusive1: true}; -//=> Works -exclusiveOptions = {exclusive2: 'hi'}; -//=> Works -exclusiveOptions = {exclusive1: true, exclusive2: 'hi'}; -//=> Error -``` -*/ -export type MergeExclusive = - (FirstType | SecondType) extends object ? - (Without & SecondType) | (Without & FirstType) : - FirstType | SecondType; - diff --git a/node_modules/type-fest/source/merge.d.ts b/node_modules/type-fest/source/merge.d.ts deleted file mode 100644 index 4b3920b7..00000000 --- a/node_modules/type-fest/source/merge.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {Except} from './except'; - -/** -Merge two types into a new type. Keys of the second type overrides keys of the first type. - -@example -``` -import {Merge} from 'type-fest'; - -type Foo = { - a: number; - b: string; -}; - -type Bar = { - b: number; -}; - -const ab: Merge = {a: 1, b: 2}; -``` -*/ -export type Merge = Except> & SecondType; diff --git a/node_modules/type-fest/source/mutable.d.ts b/node_modules/type-fest/source/mutable.d.ts deleted file mode 100644 index 03d0dda7..00000000 --- a/node_modules/type-fest/source/mutable.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** -Convert an object with `readonly` keys into a mutable object. Inverse of `Readonly`. - -This can be used to [store and mutate options within a class](https://github.com/sindresorhus/pageres/blob/4a5d05fca19a5fbd2f53842cbf3eb7b1b63bddd2/source/index.ts#L72), [edit `readonly` objects within tests](https://stackoverflow.com/questions/50703834), and [construct a `readonly` object within a function](https://github.com/Microsoft/TypeScript/issues/24509). - -@example -``` -import {Mutable} from 'type-fest'; - -type Foo = { - readonly a: number; - readonly b: string; -}; - -const mutableFoo: Mutable = {a: 1, b: '2'}; -mutableFoo.a = 3; -``` -*/ -export type Mutable = { - // For each `Key` in the keys of `ObjectType`, make a mapped type by removing the `readonly` modifier from the key. - -readonly [KeyType in keyof ObjectType]: ObjectType[KeyType]; -}; diff --git a/node_modules/type-fest/source/opaque.d.ts b/node_modules/type-fest/source/opaque.d.ts deleted file mode 100644 index 20ab964e..00000000 --- a/node_modules/type-fest/source/opaque.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** -Create an opaque type, which hides its internal details from the public, and can only be created by being used explicitly. - -The generic type parameter can be anything. It doesn't have to be an object. - -[Read more about opaque types.](https://codemix.com/opaque-types-in-javascript/) - -There have been several discussions about adding this feature to TypeScript via the `opaque type` operator, similar to how Flow does it. Unfortunately, nothing has (yet) moved forward: - - [Microsoft/TypeScript#15408](https://github.com/Microsoft/TypeScript/issues/15408) - - [Microsoft/TypeScript#15807](https://github.com/Microsoft/TypeScript/issues/15807) - -@example -``` -import {Opaque} from 'type-fest'; - -type AccountNumber = Opaque; -type AccountBalance = Opaque; - -// The Token parameter allows the compiler to differentiate between types, whereas "unknown" will not. For example, consider the following structures: -type ThingOne = Opaque; -type ThingTwo = Opaque; - -// To the compiler, these types are allowed to be cast to each other as they have the same underlying type. They are both `string & { __opaque__: unknown }`. -// To avoid this behaviour, you would instead pass the "Token" parameter, like so. -type NewThingOne = Opaque; -type NewThingTwo = Opaque; - -// Now they're completely separate types, so the following will fail to compile. -function createNewThingOne (): NewThingOne { - // As you can see, casting from a string is still allowed. However, you may not cast NewThingOne to NewThingTwo, and vice versa. - return 'new thing one' as NewThingOne; -} - -// This will fail to compile, as they are fundamentally different types. -const thingTwo = createNewThingOne() as NewThingTwo; - -// Here's another example of opaque typing. -function createAccountNumber(): AccountNumber { - return 2 as AccountNumber; -} - -function getMoneyForAccount(accountNumber: AccountNumber): AccountBalance { - return 4 as AccountBalance; -} - -// This will compile successfully. -getMoneyForAccount(createAccountNumber()); - -// But this won't, because it has to be explicitly passed as an `AccountNumber` type. -getMoneyForAccount(2); - -// You can use opaque values like they aren't opaque too. -const accountNumber = createAccountNumber(); - -// This will not compile successfully. -const newAccountNumber = accountNumber + 2; - -// As a side note, you can (and should) use recursive types for your opaque types to make them stronger and hopefully easier to type. -type Person = { - id: Opaque; - name: string; -}; -``` -*/ -export type Opaque = Type & {readonly __opaque__: Token}; diff --git a/node_modules/type-fest/source/package-json.d.ts b/node_modules/type-fest/source/package-json.d.ts deleted file mode 100644 index cf355d03..00000000 --- a/node_modules/type-fest/source/package-json.d.ts +++ /dev/null @@ -1,611 +0,0 @@ -import {LiteralUnion} from './literal-union'; - -declare namespace PackageJson { - /** - A person who has been involved in creating or maintaining the package. - */ - export type Person = - | string - | { - name: string; - url?: string; - email?: string; - }; - - export type BugsLocation = - | string - | { - /** - The URL to the package's issue tracker. - */ - url?: string; - - /** - The email address to which issues should be reported. - */ - email?: string; - }; - - export interface DirectoryLocations { - [directoryType: string]: unknown; - - /** - Location for executable scripts. Sugar to generate entries in the `bin` property by walking the folder. - */ - bin?: string; - - /** - Location for Markdown files. - */ - doc?: string; - - /** - Location for example scripts. - */ - example?: string; - - /** - Location for the bulk of the library. - */ - lib?: string; - - /** - Location for man pages. Sugar to generate a `man` array by walking the folder. - */ - man?: string; - - /** - Location for test files. - */ - test?: string; - } - - export type Scripts = { - /** - Run **before** the package is published (Also run on local `npm install` without any arguments). - */ - prepublish?: string; - - /** - Run both **before** the package is packed and published, and on local `npm install` without any arguments. This is run **after** `prepublish`, but **before** `prepublishOnly`. - */ - prepare?: string; - - /** - Run **before** the package is prepared and packed, **only** on `npm publish`. - */ - prepublishOnly?: string; - - /** - Run **before** a tarball is packed (on `npm pack`, `npm publish`, and when installing git dependencies). - */ - prepack?: string; - - /** - Run **after** the tarball has been generated and moved to its final destination. - */ - postpack?: string; - - /** - Run **after** the package is published. - */ - publish?: string; - - /** - Run **after** the package is published. - */ - postpublish?: string; - - /** - Run **before** the package is installed. - */ - preinstall?: string; - - /** - Run **after** the package is installed. - */ - install?: string; - - /** - Run **after** the package is installed and after `install`. - */ - postinstall?: string; - - /** - Run **before** the package is uninstalled and before `uninstall`. - */ - preuninstall?: string; - - /** - Run **before** the package is uninstalled. - */ - uninstall?: string; - - /** - Run **after** the package is uninstalled. - */ - postuninstall?: string; - - /** - Run **before** bump the package version and before `version`. - */ - preversion?: string; - - /** - Run **before** bump the package version. - */ - version?: string; - - /** - Run **after** bump the package version. - */ - postversion?: string; - - /** - Run with the `npm test` command, before `test`. - */ - pretest?: string; - - /** - Run with the `npm test` command. - */ - test?: string; - - /** - Run with the `npm test` command, after `test`. - */ - posttest?: string; - - /** - Run with the `npm stop` command, before `stop`. - */ - prestop?: string; - - /** - Run with the `npm stop` command. - */ - stop?: string; - - /** - Run with the `npm stop` command, after `stop`. - */ - poststop?: string; - - /** - Run with the `npm start` command, before `start`. - */ - prestart?: string; - - /** - Run with the `npm start` command. - */ - start?: string; - - /** - Run with the `npm start` command, after `start`. - */ - poststart?: string; - - /** - Run with the `npm restart` command, before `restart`. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided. - */ - prerestart?: string; - - /** - Run with the `npm restart` command. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided. - */ - restart?: string; - - /** - Run with the `npm restart` command, after `restart`. Note: `npm restart` will run the `stop` and `start` scripts if no `restart` script is provided. - */ - postrestart?: string; - } & Record; - - /** - Dependencies of the package. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or Git URL. - */ - export type Dependency = Record; - - /** - Conditions which provide a way to resolve a package entry point based on the environment. - */ - export type ExportCondition = LiteralUnion< - | 'import' - | 'require' - | 'node' - | 'deno' - | 'browser' - | 'electron' - | 'react-native' - | 'default', - string - >; - - /** - Entry points of a module, optionally with conditions and subpath exports. - */ - export type Exports = - | string - | {[key in ExportCondition]: Exports} - | {[key: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style - - export interface NonStandardEntryPoints { - /** - An ECMAScript module ID that is the primary entry point to the program. - */ - module?: string; - - /** - A module ID with untranspiled code that is the primary entry point to the program. - */ - esnext?: - | string - | { - [moduleName: string]: string | undefined; - main?: string; - browser?: string; - }; - - /** - A hint to JavaScript bundlers or component tools when packaging modules for client side use. - */ - browser?: - | string - | Record; - - /** - Denote which files in your project are "pure" and therefore safe for Webpack to prune if unused. - - [Read more.](https://webpack.js.org/guides/tree-shaking/) - */ - sideEffects?: boolean | string[]; - } - - export interface TypeScriptConfiguration { - /** - Location of the bundled TypeScript declaration file. - */ - types?: string; - - /** - Location of the bundled TypeScript declaration file. Alias of `types`. - */ - typings?: string; - } - - /** - An alternative configuration for Yarn workspaces. - */ - export interface WorkspaceConfig { - /** - An array of workspace pattern strings which contain the workspace packages. - */ - packages?: WorkspacePattern[]; - - /** - Designed to solve the problem of packages which break when their `node_modules` are moved to the root workspace directory - a process known as hoisting. For these packages, both within your workspace, and also some that have been installed via `node_modules`, it is important to have a mechanism for preventing the default Yarn workspace behavior. By adding workspace pattern strings here, Yarn will resume non-workspace behavior for any package which matches the defined patterns. - - [Read more](https://classic.yarnpkg.com/blog/2018/02/15/nohoist/) - */ - nohoist?: WorkspacePattern[]; - } - - /** - A workspace pattern points to a directory or group of directories which contain packages that should be included in the workspace installation process. - - The patterns are handled with [minimatch](https://github.com/isaacs/minimatch). - - @example - `docs` → Include the docs directory and install its dependencies. - `packages/*` → Include all nested directories within the packages directory, like `packages/cli` and `packages/core`. - */ - type WorkspacePattern = string; - - export interface YarnConfiguration { - /** - Used to configure [Yarn workspaces](https://classic.yarnpkg.com/docs/workspaces/). - - Workspaces allow you to manage multiple packages within the same repository in such a way that you only need to run `yarn install` once to install all of them in a single pass. - - Please note that the top-level `private` property of `package.json` **must** be set to `true` in order to use workspaces. - */ - workspaces?: WorkspacePattern[] | WorkspaceConfig; - - /** - If your package only allows one version of a given dependency, and you’d like to enforce the same behavior as `yarn install --flat` on the command-line, set this to `true`. - - Note that if your `package.json` contains `"flat": true` and other packages depend on yours (e.g. you are building a library rather than an app), those other packages will also need `"flat": true` in their `package.json` or be installed with `yarn install --flat` on the command-line. - */ - flat?: boolean; - - /** - Selective version resolutions. Allows the definition of custom package versions inside dependencies without manual edits in the `yarn.lock` file. - */ - resolutions?: Dependency; - } - - export interface JSPMConfiguration { - /** - JSPM configuration. - */ - jspm?: PackageJson; - } - - /** - Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Containing standard npm properties. - */ - export interface PackageJsonStandard { - /** - The name of the package. - */ - name?: string; - - /** - Package version, parseable by [`node-semver`](https://github.com/npm/node-semver). - */ - version?: string; - - /** - Package description, listed in `npm search`. - */ - description?: string; - - /** - Keywords associated with package, listed in `npm search`. - */ - keywords?: string[]; - - /** - The URL to the package's homepage. - */ - homepage?: LiteralUnion<'.', string>; - - /** - The URL to the package's issue tracker and/or the email address to which issues should be reported. - */ - bugs?: BugsLocation; - - /** - The license for the package. - */ - license?: string; - - /** - The licenses for the package. - */ - licenses?: Array<{ - type?: string; - url?: string; - }>; - - author?: Person; - - /** - A list of people who contributed to the package. - */ - contributors?: Person[]; - - /** - A list of people who maintain the package. - */ - maintainers?: Person[]; - - /** - The files included in the package. - */ - files?: string[]; - - /** - Resolution algorithm for importing ".js" files from the package's scope. - - [Read more.](https://nodejs.org/api/esm.html#esm_package_json_type_field) - */ - type?: 'module' | 'commonjs'; - - /** - The module ID that is the primary entry point to the program. - */ - main?: string; - - /** - Standard entry points of the package, with enhanced support for ECMAScript Modules. - - [Read more.](https://nodejs.org/api/esm.html#esm_package_entry_points) - */ - exports?: Exports; - - /** - The executable files that should be installed into the `PATH`. - */ - bin?: - | string - | Record; - - /** - Filenames to put in place for the `man` program to find. - */ - man?: string | string[]; - - /** - Indicates the structure of the package. - */ - directories?: DirectoryLocations; - - /** - Location for the code repository. - */ - repository?: - | string - | { - type: string; - url: string; - - /** - Relative path to package.json if it is placed in non-root directory (for example if it is part of a monorepo). - - [Read more.](https://github.com/npm/rfcs/blob/latest/implemented/0010-monorepo-subdirectory-declaration.md) - */ - directory?: string; - }; - - /** - Script commands that are run at various times in the lifecycle of the package. The key is the lifecycle event, and the value is the command to run at that point. - */ - scripts?: Scripts; - - /** - Is used to set configuration parameters used in package scripts that persist across upgrades. - */ - config?: Record; - - /** - The dependencies of the package. - */ - dependencies?: Dependency; - - /** - Additional tooling dependencies that are not required for the package to work. Usually test, build, or documentation tooling. - */ - devDependencies?: Dependency; - - /** - Dependencies that are skipped if they fail to install. - */ - optionalDependencies?: Dependency; - - /** - Dependencies that will usually be required by the package user directly or via another dependency. - */ - peerDependencies?: Dependency; - - /** - Indicate peer dependencies that are optional. - */ - peerDependenciesMeta?: Record; - - /** - Package names that are bundled when the package is published. - */ - bundledDependencies?: string[]; - - /** - Alias of `bundledDependencies`. - */ - bundleDependencies?: string[]; - - /** - Engines that this package runs on. - */ - engines?: { - [EngineName in 'npm' | 'node' | string]: string; - }; - - /** - @deprecated - */ - engineStrict?: boolean; - - /** - Operating systems the module runs on. - */ - os?: Array>; - - /** - CPU architectures the module runs on. - */ - cpu?: Array>; - - /** - If set to `true`, a warning will be shown if package is installed locally. Useful if the package is primarily a command-line application that should be installed globally. - - @deprecated - */ - preferGlobal?: boolean; - - /** - If set to `true`, then npm will refuse to publish it. - */ - private?: boolean; - - /** - A set of config values that will be used at publish-time. It's especially handy to set the tag, registry or access, to ensure that a given package is not tagged with 'latest', published to the global public registry or that a scoped module is private by default. - */ - publishConfig?: Record; - - /** - Describes and notifies consumers of a package's monetary support information. - - [Read more.](https://github.com/npm/rfcs/blob/latest/accepted/0017-add-funding-support.md) - */ - funding?: string | { - /** - The type of funding. - */ - type?: LiteralUnion< - | 'github' - | 'opencollective' - | 'patreon' - | 'individual' - | 'foundation' - | 'corporation', - string - >; - - /** - The URL to the funding page. - */ - url: string; - }; - } -} - -/** -Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Also includes types for fields used by other popular projects, like TypeScript and Yarn. -*/ -export type PackageJson = -PackageJson.PackageJsonStandard & -PackageJson.NonStandardEntryPoints & -PackageJson.TypeScriptConfiguration & -PackageJson.YarnConfiguration & -PackageJson.JSPMConfiguration; diff --git a/node_modules/type-fest/source/partial-deep.d.ts b/node_modules/type-fest/source/partial-deep.d.ts deleted file mode 100644 index b962b84e..00000000 --- a/node_modules/type-fest/source/partial-deep.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import {Primitive} from './basic'; - -/** -Create a type from another type with all keys and nested keys set to optional. - -Use-cases: -- Merging a default settings/config object with another object, the second object would be a deep partial of the default object. -- Mocking and testing complex entities, where populating an entire object with its keys would be redundant in terms of the mock or test. - -@example -``` -import {PartialDeep} from 'type-fest'; - -const settings: Settings = { - textEditor: { - fontSize: 14; - fontColor: '#000000'; - fontWeight: 400; - } - autocomplete: false; - autosave: true; -}; - -const applySavedSettings = (savedSettings: PartialDeep) => { - return {...settings, ...savedSettings}; -} - -settings = applySavedSettings({textEditor: {fontWeight: 500}}); -``` -*/ -export type PartialDeep = T extends Primitive - ? Partial - : T extends Map - ? PartialMapDeep - : T extends Set - ? PartialSetDeep - : T extends ReadonlyMap - ? PartialReadonlyMapDeep - : T extends ReadonlySet - ? PartialReadonlySetDeep - : T extends ((...arguments: any[]) => unknown) - ? T | undefined - : T extends object - ? PartialObjectDeep - : unknown; - -/** -Same as `PartialDeep`, but accepts only `Map`s and as inputs. Internal helper for `PartialDeep`. -*/ -interface PartialMapDeep extends Map, PartialDeep> {} - -/** -Same as `PartialDeep`, but accepts only `Set`s as inputs. Internal helper for `PartialDeep`. -*/ -interface PartialSetDeep extends Set> {} - -/** -Same as `PartialDeep`, but accepts only `ReadonlyMap`s as inputs. Internal helper for `PartialDeep`. -*/ -interface PartialReadonlyMapDeep extends ReadonlyMap, PartialDeep> {} - -/** -Same as `PartialDeep`, but accepts only `ReadonlySet`s as inputs. Internal helper for `PartialDeep`. -*/ -interface PartialReadonlySetDeep extends ReadonlySet> {} - -/** -Same as `PartialDeep`, but accepts only `object`s as inputs. Internal helper for `PartialDeep`. -*/ -type PartialObjectDeep = { - [KeyType in keyof ObjectType]?: PartialDeep -}; diff --git a/node_modules/type-fest/source/promisable.d.ts b/node_modules/type-fest/source/promisable.d.ts deleted file mode 100644 index 71242a5d..00000000 --- a/node_modules/type-fest/source/promisable.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** -Create a type that represents either the value or the value wrapped in `PromiseLike`. - -Use-cases: -- A function accepts a callback that may either return a value synchronously or may return a promised value. -- This type could be the return type of `Promise#then()`, `Promise#catch()`, and `Promise#finally()` callbacks. - -Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/31394) if you want to have this type as a built-in in TypeScript. - -@example -``` -import {Promisable} from 'type-fest'; - -async function logger(getLogEntry: () => Promisable): Promise { - const entry = await getLogEntry(); - console.log(entry); -} - -logger(() => 'foo'); -logger(() => Promise.resolve('bar')); -``` -*/ -export type Promisable = T | PromiseLike; diff --git a/node_modules/type-fest/source/promise-value.d.ts b/node_modules/type-fest/source/promise-value.d.ts deleted file mode 100644 index 642ddebc..00000000 --- a/node_modules/type-fest/source/promise-value.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** -Returns the type that is wrapped inside a `Promise` type. -If the type is a nested Promise, it is unwrapped recursively until a non-Promise type is obtained. -If the type is not a `Promise`, the type itself is returned. - -@example -``` -import {PromiseValue} from 'type-fest'; - -type AsyncData = Promise; -let asyncData: PromiseValue = Promise.resolve('ABC'); - -type Data = PromiseValue; -let data: Data = await asyncData; - -// Here's an example that shows how this type reacts to non-Promise types. -type SyncData = PromiseValue; -let syncData: SyncData = getSyncData(); - -// Here's an example that shows how this type reacts to recursive Promise types. -type RecursiveAsyncData = Promise >; -let recursiveAsyncData: PromiseValue = Promise.resolve(Promise.resolve('ABC')); -``` -*/ -export type PromiseValue = PromiseType extends Promise - ? { 0: PromiseValue; 1: Value }[PromiseType extends Promise ? 0 : 1] - : Otherwise; diff --git a/node_modules/type-fest/source/readonly-deep.d.ts b/node_modules/type-fest/source/readonly-deep.d.ts deleted file mode 100644 index b8c04de2..00000000 --- a/node_modules/type-fest/source/readonly-deep.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import {Primitive} from './basic'; - -/** -Convert `object`s, `Map`s, `Set`s, and `Array`s and all of their keys/elements into immutable structures recursively. - -This is useful when a deeply nested structure needs to be exposed as completely immutable, for example, an imported JSON module or when receiving an API response that is passed around. - -Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/13923) if you want to have this type as a built-in in TypeScript. - -@example -``` -// data.json -{ - "foo": ["bar"] -} - -// main.ts -import {ReadonlyDeep} from 'type-fest'; -import dataJson = require('./data.json'); - -const data: ReadonlyDeep = dataJson; - -export default data; - -// test.ts -import data from './main'; - -data.foo.push('bar'); -//=> error TS2339: Property 'push' does not exist on type 'readonly string[]' -``` -*/ -export type ReadonlyDeep = T extends Primitive | ((...arguments: any[]) => unknown) - ? T - : T extends ReadonlyMap - ? ReadonlyMapDeep - : T extends ReadonlySet - ? ReadonlySetDeep - : T extends object - ? ReadonlyObjectDeep - : unknown; - -/** -Same as `ReadonlyDeep`, but accepts only `ReadonlyMap`s as inputs. Internal helper for `ReadonlyDeep`. -*/ -interface ReadonlyMapDeep - extends ReadonlyMap, ReadonlyDeep> {} - -/** -Same as `ReadonlyDeep`, but accepts only `ReadonlySet`s as inputs. Internal helper for `ReadonlyDeep`. -*/ -interface ReadonlySetDeep - extends ReadonlySet> {} - -/** -Same as `ReadonlyDeep`, but accepts only `object`s as inputs. Internal helper for `ReadonlyDeep`. -*/ -type ReadonlyObjectDeep = { - readonly [KeyType in keyof ObjectType]: ReadonlyDeep -}; diff --git a/node_modules/type-fest/source/require-at-least-one.d.ts b/node_modules/type-fest/source/require-at-least-one.d.ts deleted file mode 100644 index b3b87191..00000000 --- a/node_modules/type-fest/source/require-at-least-one.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {Except} from './except'; - -/** -Create a type that requires at least one of the given keys. The remaining keys are kept as is. - -@example -``` -import {RequireAtLeastOne} from 'type-fest'; - -type Responder = { - text?: () => string; - json?: () => string; - - secure?: boolean; -}; - -const responder: RequireAtLeastOne = { - json: () => '{"message": "ok"}', - secure: true -}; -``` -*/ -export type RequireAtLeastOne< - ObjectType, - KeysType extends keyof ObjectType = keyof ObjectType -> = { - // For each `Key` in `KeysType` make a mapped type: - [Key in KeysType]-?: Required> & // 1. Make `Key`'s type required - // 2. Make all other keys in `KeysType` optional - Partial>>; -}[KeysType] & - // 3. Add the remaining keys not in `KeysType` - Except; diff --git a/node_modules/type-fest/source/require-exactly-one.d.ts b/node_modules/type-fest/source/require-exactly-one.d.ts deleted file mode 100644 index c3e7e7ea..00000000 --- a/node_modules/type-fest/source/require-exactly-one.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -// TODO: Remove this when we target TypeScript >=3.5. -type _Omit = Pick>; - -/** -Create a type that requires exactly one of the given keys and disallows more. The remaining keys are kept as is. - -Use-cases: -- Creating interfaces for components that only need one of the keys to display properly. -- Declaring generic keys in a single place for a single use-case that gets narrowed down via `RequireExactlyOne`. - -The caveat with `RequireExactlyOne` is that TypeScript doesn't always know at compile time every key that will exist at runtime. Therefore `RequireExactlyOne` can't do anything to prevent extra keys it doesn't know about. - -@example -``` -import {RequireExactlyOne} from 'type-fest'; - -type Responder = { - text: () => string; - json: () => string; - secure: boolean; -}; - -const responder: RequireExactlyOne = { - // Adding a `text` key here would cause a compile error. - - json: () => '{"message": "ok"}', - secure: true -}; -``` -*/ -export type RequireExactlyOne = - {[Key in KeysType]: ( - Required> & - Partial, never>> - )}[KeysType] & _Omit; diff --git a/node_modules/type-fest/source/set-optional.d.ts b/node_modules/type-fest/source/set-optional.d.ts deleted file mode 100644 index 35398992..00000000 --- a/node_modules/type-fest/source/set-optional.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import {Except} from './except'; - -/** -Create a type that makes the given keys optional. The remaining keys are kept as is. The sister of the `SetRequired` type. - -Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are optional. - -@example -``` -import {SetOptional} from 'type-fest'; - -type Foo = { - a: number; - b?: string; - c: boolean; -} - -type SomeOptional = SetOptional; -// type SomeOptional = { -// a: number; -// b?: string; // Was already optional and still is. -// c?: boolean; // Is now optional. -// } -``` -*/ -export type SetOptional = - // Pick just the keys that are not optional from the base type. - Except & - // Pick the keys that should be optional from the base type and make them optional. - Partial> extends - // If `InferredType` extends the previous, then for each key, use the inferred type key. - infer InferredType - ? {[KeyType in keyof InferredType]: InferredType[KeyType]} - : never; diff --git a/node_modules/type-fest/source/set-required.d.ts b/node_modules/type-fest/source/set-required.d.ts deleted file mode 100644 index 0a723307..00000000 --- a/node_modules/type-fest/source/set-required.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import {Except} from './except'; - -/** -Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the `SetOptional` type. - -Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are required. - -@example -``` -import {SetRequired} from 'type-fest'; - -type Foo = { - a?: number; - b: string; - c?: boolean; -} - -type SomeRequired = SetRequired; -// type SomeRequired = { -// a?: number; -// b: string; // Was already required and still is. -// c: boolean; // Is now required. -// } -``` -*/ -export type SetRequired = - // Pick just the keys that are not required from the base type. - Except & - // Pick the keys that should be required from the base type and make them required. - Required> extends - // If `InferredType` extends the previous, then for each key, use the inferred type key. - infer InferredType - ? {[KeyType in keyof InferredType]: InferredType[KeyType]} - : never; diff --git a/node_modules/type-fest/source/set-return-type.d.ts b/node_modules/type-fest/source/set-return-type.d.ts deleted file mode 100644 index 98766b10..00000000 --- a/node_modules/type-fest/source/set-return-type.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -type IsAny = 0 extends (1 & T) ? true : false; // https://stackoverflow.com/a/49928360/3406963 -type IsNever = [T] extends [never] ? true : false; -type IsUnknown = IsNever extends false ? T extends unknown ? unknown extends T ? IsAny extends false ? true : false : false : false : false; - -/** -Create a function type with a return type of your choice and the same parameters as the given function type. - -Use-case: You want to define a wrapped function that returns something different while receiving the same parameters. For example, you might want to wrap a function that can throw an error into one that will return `undefined` instead. - -@example -``` -import {SetReturnType} from 'type-fest'; - -type MyFunctionThatCanThrow = (foo: SomeType, bar: unknown) => SomeOtherType; - -type MyWrappedFunction = SetReturnType; -//=> type MyWrappedFunction = (foo: SomeType, bar: unknown) => SomeOtherType | undefined; -``` -*/ -export type SetReturnType any, TypeToReturn> = - // Just using `Parameters` isn't ideal because it doesn't handle the `this` fake parameter. - Fn extends (this: infer ThisArg, ...args: infer Arguments) => any ? ( - // If a function did not specify the `this` fake parameter, it will be inferred to `unknown`. - // We want to detect this situation just to display a friendlier type upon hovering on an IntelliSense-powered IDE. - IsUnknown extends true ? (...args: Arguments) => TypeToReturn : (this: ThisArg, ...args: Arguments) => TypeToReturn - ) : ( - // This part should be unreachable, but we make it meaningful just in case… - (...args: Parameters) => TypeToReturn - ); diff --git a/node_modules/type-fest/source/stringified.d.ts b/node_modules/type-fest/source/stringified.d.ts deleted file mode 100644 index 9688b674..00000000 --- a/node_modules/type-fest/source/stringified.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** -Create a type with the keys of the given type changed to `string` type. - -Use-case: Changing interface values to strings in order to use them in a form model. - -@example -``` -import {Stringified} from 'type-fest'; - -type Car { - model: string; - speed: number; -} - -const carForm: Stringified = { - model: 'Foo', - speed: '101' -}; -``` -*/ -export type Stringified = {[KeyType in keyof ObjectType]: string}; diff --git a/node_modules/type-fest/source/tsconfig-json.d.ts b/node_modules/type-fest/source/tsconfig-json.d.ts deleted file mode 100644 index 89f6e9dd..00000000 --- a/node_modules/type-fest/source/tsconfig-json.d.ts +++ /dev/null @@ -1,870 +0,0 @@ -declare namespace TsConfigJson { - namespace CompilerOptions { - export type JSX = - | 'preserve' - | 'react' - | 'react-native'; - - export type Module = - | 'CommonJS' - | 'AMD' - | 'System' - | 'UMD' - | 'ES6' - | 'ES2015' - | 'ESNext' - | 'None' - // Lowercase alternatives - | 'commonjs' - | 'amd' - | 'system' - | 'umd' - | 'es6' - | 'es2015' - | 'esnext' - | 'none'; - - export type NewLine = - | 'CRLF' - | 'LF' - // Lowercase alternatives - | 'crlf' - | 'lf'; - - export type Target = - | 'ES3' - | 'ES5' - | 'ES6' - | 'ES2015' - | 'ES2016' - | 'ES2017' - | 'ES2018' - | 'ES2019' - | 'ES2020' - | 'ESNext' - // Lowercase alternatives - | 'es3' - | 'es5' - | 'es6' - | 'es2015' - | 'es2016' - | 'es2017' - | 'es2018' - | 'es2019' - | 'es2020' - | 'esnext'; - - export type Lib = - | 'ES5' - | 'ES6' - | 'ES7' - | 'ES2015' - | 'ES2015.Collection' - | 'ES2015.Core' - | 'ES2015.Generator' - | 'ES2015.Iterable' - | 'ES2015.Promise' - | 'ES2015.Proxy' - | 'ES2015.Reflect' - | 'ES2015.Symbol.WellKnown' - | 'ES2015.Symbol' - | 'ES2016' - | 'ES2016.Array.Include' - | 'ES2017' - | 'ES2017.Intl' - | 'ES2017.Object' - | 'ES2017.SharedMemory' - | 'ES2017.String' - | 'ES2017.TypedArrays' - | 'ES2018' - | 'ES2018.AsyncIterable' - | 'ES2018.Intl' - | 'ES2018.Promise' - | 'ES2018.Regexp' - | 'ES2019' - | 'ES2019.Array' - | 'ES2019.Object' - | 'ES2019.String' - | 'ES2019.Symbol' - | 'ES2020' - | 'ES2020.String' - | 'ES2020.Symbol.WellKnown' - | 'ESNext' - | 'ESNext.Array' - | 'ESNext.AsyncIterable' - | 'ESNext.BigInt' - | 'ESNext.Intl' - | 'ESNext.Symbol' - | 'DOM' - | 'DOM.Iterable' - | 'ScriptHost' - | 'WebWorker' - | 'WebWorker.ImportScripts' - // Lowercase alternatives - | 'es5' - | 'es6' - | 'es7' - | 'es2015' - | 'es2015.collection' - | 'es2015.core' - | 'es2015.generator' - | 'es2015.iterable' - | 'es2015.promise' - | 'es2015.proxy' - | 'es2015.reflect' - | 'es2015.symbol.wellknown' - | 'es2015.symbol' - | 'es2016' - | 'es2016.array.include' - | 'es2017' - | 'es2017.intl' - | 'es2017.object' - | 'es2017.sharedmemory' - | 'es2017.string' - | 'es2017.typedarrays' - | 'es2018' - | 'es2018.asynciterable' - | 'es2018.intl' - | 'es2018.promise' - | 'es2018.regexp' - | 'es2019' - | 'es2019.array' - | 'es2019.object' - | 'es2019.string' - | 'es2019.symbol' - | 'es2020' - | 'es2020.string' - | 'es2020.symbol.wellknown' - | 'esnext' - | 'esnext.array' - | 'esnext.asynciterable' - | 'esnext.bigint' - | 'esnext.intl' - | 'esnext.symbol' - | 'dom' - | 'dom.iterable' - | 'scripthost' - | 'webworker' - | 'webworker.importscripts'; - - export interface Plugin { - [key: string]: unknown; - /** - Plugin name. - */ - name?: string; - } - } - - export interface CompilerOptions { - /** - The character set of the input files. - - @default 'utf8' - */ - charset?: string; - - /** - Enables building for project references. - - @default true - */ - composite?: boolean; - - /** - Generates corresponding d.ts files. - - @default false - */ - declaration?: boolean; - - /** - Specify output directory for generated declaration files. - - Requires TypeScript version 2.0 or later. - */ - declarationDir?: string; - - /** - Show diagnostic information. - - @default false - */ - diagnostics?: boolean; - - /** - Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. - - @default false - */ - emitBOM?: boolean; - - /** - Only emit `.d.ts` declaration files. - - @default false - */ - emitDeclarationOnly?: boolean; - - /** - Enable incremental compilation. - - @default `composite` - */ - incremental?: boolean; - - /** - Specify file to store incremental compilation information. - - @default '.tsbuildinfo' - */ - tsBuildInfoFile?: string; - - /** - Emit a single file with source maps instead of having a separate file. - - @default false - */ - inlineSourceMap?: boolean; - - /** - Emit the source alongside the sourcemaps within a single file. - - Requires `--inlineSourceMap` to be set. - - @default false - */ - inlineSources?: boolean; - - /** - Specify JSX code generation: `'preserve'`, `'react'`, or `'react-native'`. - - @default 'preserve' - */ - jsx?: CompilerOptions.JSX; - - /** - Specifies the object invoked for `createElement` and `__spread` when targeting `'react'` JSX emit. - - @default 'React' - */ - reactNamespace?: string; - - /** - Print names of files part of the compilation. - - @default false - */ - listFiles?: boolean; - - /** - Specifies the location where debugger should locate map files instead of generated locations. - */ - mapRoot?: string; - - /** - Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with `--outFile`. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower. - - @default ['ES3', 'ES5'].includes(target) ? 'CommonJS' : 'ES6' - */ - module?: CompilerOptions.Module; - - /** - Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix). - - Default: Platform specific - */ - newLine?: CompilerOptions.NewLine; - - /** - Do not emit output. - - @default false - */ - noEmit?: boolean; - - /** - Do not generate custom helper functions like `__extends` in compiled output. - - @default false - */ - noEmitHelpers?: boolean; - - /** - Do not emit outputs if any type checking errors were reported. - - @default false - */ - noEmitOnError?: boolean; - - /** - Warn on expressions and declarations with an implied 'any' type. - - @default false - */ - noImplicitAny?: boolean; - - /** - Raise error on 'this' expressions with an implied any type. - - @default false - */ - noImplicitThis?: boolean; - - /** - Report errors on unused locals. - - Requires TypeScript version 2.0 or later. - - @default false - */ - noUnusedLocals?: boolean; - - /** - Report errors on unused parameters. - - Requires TypeScript version 2.0 or later. - - @default false - */ - noUnusedParameters?: boolean; - - /** - Do not include the default library file (lib.d.ts). - - @default false - */ - noLib?: boolean; - - /** - Do not add triple-slash references or module import targets to the list of compiled files. - - @default false - */ - noResolve?: boolean; - - /** - Disable strict checking of generic signatures in function types. - - @default false - */ - noStrictGenericChecks?: boolean; - - /** - @deprecated use `skipLibCheck` instead. - */ - skipDefaultLibCheck?: boolean; - - /** - Skip type checking of declaration files. - - Requires TypeScript version 2.0 or later. - - @default false - */ - skipLibCheck?: boolean; - - /** - Concatenate and emit output to single file. - */ - outFile?: string; - - /** - Redirect output structure to the directory. - */ - outDir?: string; - - /** - Do not erase const enum declarations in generated code. - - @default false - */ - preserveConstEnums?: boolean; - - /** - Do not resolve symlinks to their real path; treat a symlinked file like a real one. - - @default false - */ - preserveSymlinks?: boolean; - - /** - Keep outdated console output in watch mode instead of clearing the screen. - - @default false - */ - preserveWatchOutput?: boolean; - - /** - Stylize errors and messages using color and context (experimental). - - @default true // Unless piping to another program or redirecting output to a file. - */ - pretty?: boolean; - - /** - Do not emit comments to output. - - @default false - */ - removeComments?: boolean; - - /** - Specifies the root directory of input files. - - Use to control the output directory structure with `--outDir`. - */ - rootDir?: string; - - /** - Unconditionally emit imports for unresolved files. - - @default false - */ - isolatedModules?: boolean; - - /** - Generates corresponding '.map' file. - - @default false - */ - sourceMap?: boolean; - - /** - Specifies the location where debugger should locate TypeScript files instead of source locations. - */ - sourceRoot?: string; - - /** - Suppress excess property checks for object literals. - - @default false - */ - suppressExcessPropertyErrors?: boolean; - - /** - Suppress noImplicitAny errors for indexing objects lacking index signatures. - - @default false - */ - suppressImplicitAnyIndexErrors?: boolean; - - /** - Do not emit declarations for code that has an `@internal` annotation. - */ - stripInternal?: boolean; - - /** - Specify ECMAScript target version. - - @default 'es3' - */ - target?: CompilerOptions.Target; - - /** - Watch input files. - - @default false - */ - watch?: boolean; - - /** - Enables experimental support for ES7 decorators. - - @default false - */ - experimentalDecorators?: boolean; - - /** - Emit design-type metadata for decorated declarations in source. - - @default false - */ - emitDecoratorMetadata?: boolean; - - /** - Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6). - - @default ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node' - */ - moduleResolution?: 'classic' | 'node'; - - /** - Do not report errors on unused labels. - - @default false - */ - allowUnusedLabels?: boolean; - - /** - Report error when not all code paths in function return a value. - - @default false - */ - noImplicitReturns?: boolean; - - /** - Report errors for fallthrough cases in switch statement. - - @default false - */ - noFallthroughCasesInSwitch?: boolean; - - /** - Do not report errors on unreachable code. - - @default false - */ - allowUnreachableCode?: boolean; - - /** - Disallow inconsistently-cased references to the same file. - - @default false - */ - forceConsistentCasingInFileNames?: boolean; - - /** - Base directory to resolve non-relative module names. - */ - baseUrl?: string; - - /** - Specify path mapping to be computed relative to baseUrl option. - */ - paths?: Record; - - /** - List of TypeScript language server plugins to load. - - Requires TypeScript version 2.3 or later. - */ - plugins?: CompilerOptions.Plugin[]; - - /** - Specify list of root directories to be used when resolving modules. - */ - rootDirs?: string[]; - - /** - Specify list of directories for type definition files to be included. - - Requires TypeScript version 2.0 or later. - */ - typeRoots?: string[]; - - /** - Type declaration files to be included in compilation. - - Requires TypeScript version 2.0 or later. - */ - types?: string[]; - - /** - Enable tracing of the name resolution process. - - @default false - */ - traceResolution?: boolean; - - /** - Allow javascript files to be compiled. - - @default false - */ - allowJs?: boolean; - - /** - Do not truncate error messages. - - @default false - */ - noErrorTruncation?: boolean; - - /** - Allow default imports from modules with no default export. This does not affect code emit, just typechecking. - - @default module === 'system' || esModuleInterop - */ - allowSyntheticDefaultImports?: boolean; - - /** - Do not emit `'use strict'` directives in module output. - - @default false - */ - noImplicitUseStrict?: boolean; - - /** - Enable to list all emitted files. - - Requires TypeScript version 2.0 or later. - - @default false - */ - listEmittedFiles?: boolean; - - /** - Disable size limit for JavaScript project. - - Requires TypeScript version 2.0 or later. - - @default false - */ - disableSizeLimit?: boolean; - - /** - List of library files to be included in the compilation. - - Requires TypeScript version 2.0 or later. - */ - lib?: CompilerOptions.Lib[]; - - /** - Enable strict null checks. - - Requires TypeScript version 2.0 or later. - - @default false - */ - strictNullChecks?: boolean; - - /** - The maximum dependency depth to search under `node_modules` and load JavaScript files. Only applicable with `--allowJs`. - - @default 0 - */ - maxNodeModuleJsDepth?: number; - - /** - Import emit helpers (e.g. `__extends`, `__rest`, etc..) from tslib. - - Requires TypeScript version 2.1 or later. - - @default false - */ - importHelpers?: boolean; - - /** - Specify the JSX factory function to use when targeting React JSX emit, e.g. `React.createElement` or `h`. - - Requires TypeScript version 2.1 or later. - - @default 'React.createElement' - */ - jsxFactory?: string; - - /** - Parse in strict mode and emit `'use strict'` for each source file. - - Requires TypeScript version 2.1 or later. - - @default false - */ - alwaysStrict?: boolean; - - /** - Enable all strict type checking options. - - Requires TypeScript version 2.3 or later. - - @default false - */ - strict?: boolean; - - /** - Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions. - - @default false - */ - strictBindCallApply?: boolean; - - /** - Provide full support for iterables in `for-of`, spread, and destructuring when targeting `ES5` or `ES3`. - - Requires TypeScript version 2.3 or later. - - @default false - */ - downlevelIteration?: boolean; - - /** - Report errors in `.js` files. - - Requires TypeScript version 2.3 or later. - - @default false - */ - checkJs?: boolean; - - /** - Disable bivariant parameter checking for function types. - - Requires TypeScript version 2.6 or later. - - @default false - */ - strictFunctionTypes?: boolean; - - /** - Ensure non-undefined class properties are initialized in the constructor. - - Requires TypeScript version 2.7 or later. - - @default false - */ - strictPropertyInitialization?: boolean; - - /** - Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility. - - Requires TypeScript version 2.7 or later. - - @default false - */ - esModuleInterop?: boolean; - - /** - Allow accessing UMD globals from modules. - - @default false - */ - allowUmdGlobalAccess?: boolean; - - /** - Resolve `keyof` to string valued property names only (no numbers or symbols). - - Requires TypeScript version 2.9 or later. - - @default false - */ - keyofStringsOnly?: boolean; - - /** - Emit ECMAScript standard class fields. - - Requires TypeScript version 3.7 or later. - - @default false - */ - useDefineForClassFields?: boolean; - - /** - Generates a sourcemap for each corresponding `.d.ts` file. - - Requires TypeScript version 2.9 or later. - - @default false - */ - declarationMap?: boolean; - - /** - Include modules imported with `.json` extension. - - Requires TypeScript version 2.9 or later. - - @default false - */ - resolveJsonModule?: boolean; - } - - /** - Auto type (.d.ts) acquisition options for this project. - - Requires TypeScript version 2.1 or later. - */ - export interface TypeAcquisition { - /** - Enable auto type acquisition. - */ - enable?: boolean; - - /** - Specifies a list of type declarations to be included in auto type acquisition. For example, `['jquery', 'lodash']`. - */ - include?: string[]; - - /** - Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`. - */ - exclude?: string[]; - } - - export interface References { - /** - A normalized path on disk. - */ - path: string; - - /** - The path as the user originally wrote it. - */ - originalPath?: string; - - /** - True if the output of this reference should be prepended to the output of this project. - - Only valid for `--outFile` compilations. - */ - prepend?: boolean; - - /** - True if it is intended that this reference form a circularity. - */ - circular?: boolean; - } -} - -export interface TsConfigJson { - /** - Instructs the TypeScript compiler how to compile `.ts` files. - */ - compilerOptions?: TsConfigJson.CompilerOptions; - - /** - Auto type (.d.ts) acquisition options for this project. - - Requires TypeScript version 2.1 or later. - */ - typeAcquisition?: TsConfigJson.TypeAcquisition; - - /** - Enable Compile-on-Save for this project. - */ - compileOnSave?: boolean; - - /** - Path to base configuration file to inherit from. - - Requires TypeScript version 2.1 or later. - */ - extends?: string; - - /** - If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`. When a `files` property is specified, only those files and those specified by `include` are included. - */ - files?: string[]; - - /** - Specifies a list of files to be excluded from compilation. The `exclude` property only affects the files included via the `include` property and not the `files` property. - - Glob patterns require TypeScript version 2.0 or later. - */ - exclude?: string[]; - - /** - Specifies a list of glob patterns that match files to be included in compilation. - - If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`. - - Requires TypeScript version 2.0 or later. - */ - include?: string[]; - - /** - Referenced projects. - - Requires TypeScript version 3.0 or later. - */ - references?: TsConfigJson.References[]; -} diff --git a/node_modules/type-fest/source/union-to-intersection.d.ts b/node_modules/type-fest/source/union-to-intersection.d.ts deleted file mode 100644 index 5f9837f3..00000000 --- a/node_modules/type-fest/source/union-to-intersection.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** -Convert a union type to an intersection type using [distributive conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types). - -Inspired by [this Stack Overflow answer](https://stackoverflow.com/a/50375286/2172153). - -@example -``` -import {UnionToIntersection} from 'type-fest'; - -type Union = {the(): void} | {great(arg: string): void} | {escape: boolean}; - -type Intersection = UnionToIntersection; -//=> {the(): void; great(arg: string): void; escape: boolean}; -``` - -A more applicable example which could make its way into your library code follows. - -@example -``` -import {UnionToIntersection} from 'type-fest'; - -class CommandOne { - commands: { - a1: () => undefined, - b1: () => undefined, - } -} - -class CommandTwo { - commands: { - a2: (argA: string) => undefined, - b2: (argB: string) => undefined, - } -} - -const union = [new CommandOne(), new CommandTwo()].map(instance => instance.commands); -type Union = typeof union; -//=> {a1(): void; b1(): void} | {a2(argA: string): void; b2(argB: string): void} - -type Intersection = UnionToIntersection; -//=> {a1(): void; b1(): void; a2(argA: string): void; b2(argB: string): void} -``` -*/ -export type UnionToIntersection = ( - // `extends unknown` is always going to be the case and is used to convert the - // `Union` into a [distributive conditional - // type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types). - Union extends unknown - // The union type is used as the only argument to a function since the union - // of function arguments is an intersection. - ? (distributedUnion: Union) => void - // This won't happen. - : never - // Infer the `Intersection` type since TypeScript represents the positional - // arguments of unions of functions as an intersection of the union. - ) extends ((mergedIntersection: infer Intersection) => void) - ? Intersection - : never; diff --git a/node_modules/type-fest/source/utilities.d.ts b/node_modules/type-fest/source/utilities.d.ts deleted file mode 100644 index 0bd75e66..00000000 --- a/node_modules/type-fest/source/utilities.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type UpperCaseCharacters = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'; - -export type WordSeparators = '-' | '_' | ' '; diff --git a/node_modules/type-fest/source/value-of.d.ts b/node_modules/type-fest/source/value-of.d.ts deleted file mode 100644 index 12793733..00000000 --- a/node_modules/type-fest/source/value-of.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** -Create a union of the given object's values, and optionally specify which keys to get the values from. - -Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/31438) if you want to have this type as a built-in in TypeScript. - -@example -``` -// data.json -{ - 'foo': 1, - 'bar': 2, - 'biz': 3 -} - -// main.ts -import {ValueOf} from 'type-fest'; -import data = require('./data.json'); - -export function getData(name: string): ValueOf { - return data[name]; -} - -export function onlyBar(name: string): ValueOf { - return data[name]; -} - -// file.ts -import {getData, onlyBar} from './main'; - -getData('foo'); -//=> 1 - -onlyBar('foo'); -//=> TypeError ... - -onlyBar('bar'); -//=> 2 -``` -*/ -export type ValueOf = ObjectType[ValueType]; diff --git a/node_modules/type-fest/ts41/camel-case.d.ts b/node_modules/type-fest/ts41/camel-case.d.ts deleted file mode 100644 index 4476fd30..00000000 --- a/node_modules/type-fest/ts41/camel-case.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import {WordSeparators} from '../source/utilities'; - -/** -Recursively split a string literal into two parts on the first occurence of the given string, returning an array literal of all the separate parts. -*/ -export type Split = - string extends S ? string[] : - S extends '' ? [] : - S extends `${infer T}${D}${infer U}` ? [T, ...Split] : - [S]; - -/** -Step by step takes the first item in an array literal, formats it and adds it to a string literal, and then recursively appends the remainder. - -Only to be used by `CamelCaseStringArray<>`. - -@see CamelCaseStringArray -*/ -type InnerCamelCaseStringArray = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? FirstPart extends undefined - ? '' - : FirstPart extends '' - ? InnerCamelCaseStringArray - : `${PreviousPart extends '' ? FirstPart : Capitalize}${InnerCamelCaseStringArray}` - : ''; - -/** -Starts fusing the output of `Split<>`, an array literal of strings, into a camel-cased string literal. - -It's separate from `InnerCamelCaseStringArray<>` to keep a clean API outwards to the rest of the code. - -@see Split -*/ -type CamelCaseStringArray = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? Uncapitalize<`${FirstPart}${InnerCamelCaseStringArray}`> - : never; - -/** -Convert a string literal to camel-case. - -This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result. - -@example -``` -import {CamelCase} from 'type-fest'; - -// Simple - -const someVariable: CamelCase<'foo-bar'> = 'fooBar'; - -// Advanced - -type CamelCasedProps = { - [K in keyof T as CamelCase]: T[K] -}; - -interface RawOptions { - 'dry-run': boolean; - 'full_family_name': string; - foo: number; -} - -const dbResult: CamelCasedProps = { - dryRun: true, - fullFamilyName: 'bar.js', - foo: 123 -}; -``` -*/ -export type CamelCase = K extends string ? CamelCaseStringArray> : K; diff --git a/node_modules/type-fest/ts41/delimiter-case.d.ts b/node_modules/type-fest/ts41/delimiter-case.d.ts deleted file mode 100644 index 52f4eb99..00000000 --- a/node_modules/type-fest/ts41/delimiter-case.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import {UpperCaseCharacters, WordSeparators} from '../source/utilities'; - -/** -Unlike a simpler split, this one includes the delimiter splitted on in the resulting array literal. This is to enable splitting on, for example, upper-case characters. -*/ -export type SplitIncludingDelimiters = - Source extends '' ? [] : - Source extends `${infer FirstPart}${Delimiter}${infer SecondPart}` ? - ( - Source extends `${FirstPart}${infer UsedDelimiter}${SecondPart}` - ? UsedDelimiter extends Delimiter - ? Source extends `${infer FirstPart}${UsedDelimiter}${infer SecondPart}` - ? [...SplitIncludingDelimiters, UsedDelimiter, ...SplitIncludingDelimiters] - : never - : never - : never - ) : - [Source]; - -/** -Format a specific part of the splitted string literal that `StringArrayToDelimiterCase<>` fuses together, ensuring desired casing. - -@see StringArrayToDelimiterCase -*/ -type StringPartToDelimiterCase = - StringPart extends UsedWordSeparators ? Delimiter : - StringPart extends UsedUpperCaseCharacters ? `${Delimiter}${Lowercase}` : - StringPart; - -/** -Takes the result of a splitted string literal and recursively concatenates it together into the desired casing. - -It receives `UsedWordSeparators` and `UsedUpperCaseCharacters` as input to ensure it's fully encapsulated. - -@see SplitIncludingDelimiters -*/ -type StringArrayToDelimiterCase = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? `${StringPartToDelimiterCase}${StringArrayToDelimiterCase}` - : ''; - -/** -Convert a string literal to a custom string delimiter casing. - -This can be useful when, for example, converting a camel-cased object property to an oddly cased one. - -@see KebabCase -@see SnakeCase - -@example -``` -import {DelimiterCase} from 'type-fest'; - -// Simple - -const someVariable: DelimiterCase<'fooBar', '#'> = 'foo#bar'; - -// Advanced - -type OddlyCasedProps = { - [K in keyof T as DelimiterCase]: T[K] -}; - -interface SomeOptions { - dryRun: boolean; - includeFile: string; - foo: number; -} - -const rawCliOptions: OddlyCasedProps = { - 'dry#run': true, - 'include#file': 'bar.js', - foo: 123 -}; -``` -*/ - -export type DelimiterCase = Value extends string - ? StringArrayToDelimiterCase< - SplitIncludingDelimiters, - WordSeparators, - UpperCaseCharacters, - Delimiter - > - : Value; diff --git a/node_modules/type-fest/ts41/index.d.ts b/node_modules/type-fest/ts41/index.d.ts deleted file mode 100644 index fbaec82e..00000000 --- a/node_modules/type-fest/ts41/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// These are all the basic types that's compatible with all supported TypeScript versions. -export * from '../base'; - -// These are special types that require at least TypeScript 4.1. -export {CamelCase} from './camel-case'; -export {KebabCase} from './kebab-case'; -export {PascalCase} from './pascal-case'; -export {SnakeCase} from './snake-case'; -export {DelimiterCase} from './delimiter-case'; diff --git a/node_modules/type-fest/ts41/kebab-case.d.ts b/node_modules/type-fest/ts41/kebab-case.d.ts deleted file mode 100644 index ba6a99d1..00000000 --- a/node_modules/type-fest/ts41/kebab-case.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import {DelimiterCase} from './delimiter-case'; - -/** -Convert a string literal to kebab-case. - -This can be useful when, for example, converting a camel-cased object property to a kebab-cased CSS class name or a command-line flag. - -@example -``` -import {KebabCase} from 'type-fest'; - -// Simple - -const someVariable: KebabCase<'fooBar'> = 'foo-bar'; - -// Advanced - -type KebabCasedProps = { - [K in keyof T as KebabCase]: T[K] -}; - -interface CliOptions { - dryRun: boolean; - includeFile: string; - foo: number; -} - -const rawCliOptions: KebabCasedProps = { - 'dry-run': true, - 'include-file': 'bar.js', - foo: 123 -}; -``` -*/ - -export type KebabCase = DelimiterCase; diff --git a/node_modules/type-fest/ts41/pascal-case.d.ts b/node_modules/type-fest/ts41/pascal-case.d.ts deleted file mode 100644 index bfb2a362..00000000 --- a/node_modules/type-fest/ts41/pascal-case.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import {CamelCase} from './camel-case'; - -/** -Converts a string literal to pascal-case. - -@example -``` -import {PascalCase} from 'type-fest'; - -// Simple - -const someVariable: PascalCase<'foo-bar'> = 'FooBar'; - -// Advanced - -type PascalCaseProps = { - [K in keyof T as PascalCase]: T[K] -}; - -interface RawOptions { - 'dry-run': boolean; - 'full_family_name': string; - foo: number; -} - -const dbResult: CamelCasedProps = { - DryRun: true, - FullFamilyName: 'bar.js', - Foo: 123 -}; -``` -*/ - -export type PascalCase = CamelCase extends string - ? Capitalize> - : CamelCase; diff --git a/node_modules/type-fest/ts41/snake-case.d.ts b/node_modules/type-fest/ts41/snake-case.d.ts deleted file mode 100644 index 272b3d35..00000000 --- a/node_modules/type-fest/ts41/snake-case.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import {DelimiterCase} from './delimiter-case'; - -/** -Convert a string literal to snake-case. - -This can be useful when, for example, converting a camel-cased object property to a snake-cased SQL column name. - -@example -``` -import {SnakeCase} from 'type-fest'; - -// Simple - -const someVariable: SnakeCase<'fooBar'> = 'foo_bar'; - -// Advanced - -type SnakeCasedProps = { - [K in keyof T as SnakeCase]: T[K] -}; - -interface ModelProps { - isHappy: boolean; - fullFamilyName: string; - foo: number; -} - -const dbResult: SnakeCasedProps = { - 'is_happy': true, - 'full_family_name': 'Carla Smith', - foo: 123 -}; -``` -*/ -export type SnakeCase = DelimiterCase; diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/LICENSE b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/LICENSE new file mode 100644 index 00000000..a1164108 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/README.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/README.md new file mode 100644 index 00000000..3f894c88 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/eslint-plugin` + +An ESLint plugin which provides lint rules for TypeScript codebases. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) + +👉 See **https://typescript-eslint.io/getting-started** for our Getting Started docs. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js new file mode 100644 index 00000000..d197fbc4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js @@ -0,0 +1,161 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/adjacent-overload-signatures': 'error', + '@typescript-eslint/array-type': 'error', + '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/ban-ts-comment': 'error', + '@typescript-eslint/ban-tslint-comment': 'error', + '@typescript-eslint/class-literal-property-style': 'error', + 'class-methods-use-this': 'off', + '@typescript-eslint/class-methods-use-this': 'error', + '@typescript-eslint/consistent-generic-constructors': 'error', + '@typescript-eslint/consistent-indexed-object-style': 'error', + 'consistent-return': 'off', + '@typescript-eslint/consistent-return': 'error', + '@typescript-eslint/consistent-type-assertions': 'error', + '@typescript-eslint/consistent-type-definitions': 'error', + '@typescript-eslint/consistent-type-exports': 'error', + '@typescript-eslint/consistent-type-imports': 'error', + 'default-param-last': 'off', + '@typescript-eslint/default-param-last': 'error', + 'dot-notation': 'off', + '@typescript-eslint/dot-notation': 'error', + '@typescript-eslint/explicit-function-return-type': 'error', + '@typescript-eslint/explicit-member-accessibility': 'error', + '@typescript-eslint/explicit-module-boundary-types': 'error', + 'init-declarations': 'off', + '@typescript-eslint/init-declarations': 'error', + 'max-params': 'off', + '@typescript-eslint/max-params': 'error', + '@typescript-eslint/member-ordering': 'error', + '@typescript-eslint/method-signature-style': 'error', + '@typescript-eslint/naming-convention': 'error', + 'no-array-constructor': 'off', + '@typescript-eslint/no-array-constructor': 'error', + '@typescript-eslint/no-array-delete': 'error', + '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-confusing-non-null-assertion': 'error', + '@typescript-eslint/no-confusing-void-expression': 'error', + '@typescript-eslint/no-deprecated': 'error', + 'no-dupe-class-members': 'off', + '@typescript-eslint/no-dupe-class-members': 'error', + '@typescript-eslint/no-duplicate-enum-values': 'error', + '@typescript-eslint/no-duplicate-type-constituents': 'error', + '@typescript-eslint/no-dynamic-delete': 'error', + 'no-empty-function': 'off', + '@typescript-eslint/no-empty-function': 'error', + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', + '@typescript-eslint/no-extraneous-class': 'error', + '@typescript-eslint/no-floating-promises': 'error', + '@typescript-eslint/no-for-in-array': 'error', + 'no-implied-eval': 'off', + '@typescript-eslint/no-implied-eval': 'error', + '@typescript-eslint/no-import-type-side-effects': 'error', + '@typescript-eslint/no-inferrable-types': 'error', + 'no-invalid-this': 'off', + '@typescript-eslint/no-invalid-this': 'error', + '@typescript-eslint/no-invalid-void-type': 'error', + 'no-loop-func': 'off', + '@typescript-eslint/no-loop-func': 'error', + 'no-magic-numbers': 'off', + '@typescript-eslint/no-magic-numbers': 'error', + '@typescript-eslint/no-meaningless-void-operator': 'error', + '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-misused-promises': 'error', + '@typescript-eslint/no-mixed-enums': 'error', + '@typescript-eslint/no-namespace': 'error', + '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', + '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', + '@typescript-eslint/no-non-null-assertion': 'error', + 'no-redeclare': 'off', + '@typescript-eslint/no-redeclare': 'error', + '@typescript-eslint/no-redundant-type-constituents': 'error', + '@typescript-eslint/no-require-imports': 'error', + 'no-restricted-imports': 'off', + '@typescript-eslint/no-restricted-imports': 'error', + '@typescript-eslint/no-restricted-types': 'error', + 'no-shadow': 'off', + '@typescript-eslint/no-shadow': 'error', + '@typescript-eslint/no-this-alias': 'error', + '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', + '@typescript-eslint/no-unnecessary-condition': 'error', + '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error', + '@typescript-eslint/no-unnecessary-qualifier': 'error', + '@typescript-eslint/no-unnecessary-template-expression': 'error', + '@typescript-eslint/no-unnecessary-type-arguments': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-unnecessary-type-constraint': 'error', + '@typescript-eslint/no-unnecessary-type-parameters': 'error', + '@typescript-eslint/no-unsafe-argument': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-unsafe-call': 'error', + '@typescript-eslint/no-unsafe-declaration-merging': 'error', + '@typescript-eslint/no-unsafe-enum-comparison': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error', + '@typescript-eslint/no-unsafe-member-access': 'error', + '@typescript-eslint/no-unsafe-return': 'error', + '@typescript-eslint/no-unsafe-type-assertion': 'error', + '@typescript-eslint/no-unsafe-unary-minus': 'error', + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + 'no-use-before-define': 'off', + '@typescript-eslint/no-use-before-define': 'error', + 'no-useless-constructor': 'off', + '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/no-useless-empty-export': 'error', + '@typescript-eslint/no-wrapper-object-types': 'error', + '@typescript-eslint/non-nullable-type-assertion-style': 'error', + 'no-throw-literal': 'off', + '@typescript-eslint/only-throw-error': 'error', + '@typescript-eslint/parameter-properties': 'error', + '@typescript-eslint/prefer-as-const': 'error', + 'prefer-destructuring': 'off', + '@typescript-eslint/prefer-destructuring': 'error', + '@typescript-eslint/prefer-enum-initializers': 'error', + '@typescript-eslint/prefer-find': 'error', + '@typescript-eslint/prefer-for-of': 'error', + '@typescript-eslint/prefer-function-type': 'error', + '@typescript-eslint/prefer-includes': 'error', + '@typescript-eslint/prefer-literal-enum-member': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + '@typescript-eslint/prefer-nullish-coalescing': 'error', + '@typescript-eslint/prefer-optional-chain': 'error', + 'prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'error', + '@typescript-eslint/prefer-readonly': 'error', + '@typescript-eslint/prefer-readonly-parameter-types': 'error', + '@typescript-eslint/prefer-reduce-type-parameter': 'error', + '@typescript-eslint/prefer-regexp-exec': 'error', + '@typescript-eslint/prefer-return-this-type': 'error', + '@typescript-eslint/prefer-string-starts-ends-with': 'error', + '@typescript-eslint/promise-function-async': 'error', + '@typescript-eslint/related-getter-setter-pairs': 'error', + '@typescript-eslint/require-array-sort-compare': 'error', + 'require-await': 'off', + '@typescript-eslint/require-await': 'error', + '@typescript-eslint/restrict-plus-operands': 'error', + '@typescript-eslint/restrict-template-expressions': 'error', + 'no-return-await': 'off', + '@typescript-eslint/return-await': 'error', + '@typescript-eslint/strict-boolean-expressions': 'error', + '@typescript-eslint/switch-exhaustiveness-check': 'error', + '@typescript-eslint/triple-slash-reference': 'error', + '@typescript-eslint/typedef': 'error', + '@typescript-eslint/unbound-method': 'error', + '@typescript-eslint/unified-signatures': 'error', + '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', + }, +}; +//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map new file mode 100644 index 00000000..862345a6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map @@ -0,0 +1 @@ +{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC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AE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE,OAAO;QAC1C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,2CAA2C,EAAE,OAAO;QACpD,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js new file mode 100644 index 00000000..cb61c298 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js @@ -0,0 +1,7 @@ +"use strict"; +module.exports = { + parser: '@typescript-eslint/parser', + parserOptions: { sourceType: 'module' }, + plugins: ['@typescript-eslint'], +}; +//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map new file mode 100644 index 00000000..21dfaacb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAEA,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,oBAAoB,CAAC;CACD,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js new file mode 100644 index 00000000..892d8013 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js @@ -0,0 +1,70 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + parserOptions: { project: false, program: null, projectService: false }, + rules: { + '@typescript-eslint/await-thenable': 'off', + '@typescript-eslint/consistent-return': 'off', + '@typescript-eslint/consistent-type-exports': 'off', + '@typescript-eslint/dot-notation': 'off', + '@typescript-eslint/naming-convention': 'off', + '@typescript-eslint/no-array-delete': 'off', + '@typescript-eslint/no-base-to-string': 'off', + '@typescript-eslint/no-confusing-void-expression': 'off', + '@typescript-eslint/no-deprecated': 'off', + '@typescript-eslint/no-duplicate-type-constituents': 'off', + '@typescript-eslint/no-floating-promises': 'off', + '@typescript-eslint/no-for-in-array': 'off', + '@typescript-eslint/no-implied-eval': 'off', + '@typescript-eslint/no-meaningless-void-operator': 'off', + '@typescript-eslint/no-misused-promises': 'off', + '@typescript-eslint/no-mixed-enums': 'off', + '@typescript-eslint/no-redundant-type-constituents': 'off', + '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', + '@typescript-eslint/no-unnecessary-condition': 'off', + '@typescript-eslint/no-unnecessary-qualifier': 'off', + '@typescript-eslint/no-unnecessary-template-expression': 'off', + '@typescript-eslint/no-unnecessary-type-arguments': 'off', + '@typescript-eslint/no-unnecessary-type-assertion': 'off', + '@typescript-eslint/no-unnecessary-type-parameters': 'off', + '@typescript-eslint/no-unsafe-argument': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', + '@typescript-eslint/no-unsafe-call': 'off', + '@typescript-eslint/no-unsafe-enum-comparison': 'off', + '@typescript-eslint/no-unsafe-member-access': 'off', + '@typescript-eslint/no-unsafe-return': 'off', + '@typescript-eslint/no-unsafe-type-assertion': 'off', + '@typescript-eslint/no-unsafe-unary-minus': 'off', + '@typescript-eslint/non-nullable-type-assertion-style': 'off', + '@typescript-eslint/only-throw-error': 'off', + '@typescript-eslint/prefer-destructuring': 'off', + '@typescript-eslint/prefer-find': 'off', + '@typescript-eslint/prefer-includes': 'off', + '@typescript-eslint/prefer-nullish-coalescing': 'off', + '@typescript-eslint/prefer-optional-chain': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-readonly': 'off', + '@typescript-eslint/prefer-readonly-parameter-types': 'off', + '@typescript-eslint/prefer-reduce-type-parameter': 'off', + '@typescript-eslint/prefer-regexp-exec': 'off', + '@typescript-eslint/prefer-return-this-type': 'off', + '@typescript-eslint/prefer-string-starts-ends-with': 'off', + '@typescript-eslint/promise-function-async': 'off', + '@typescript-eslint/related-getter-setter-pairs': 'off', + '@typescript-eslint/require-array-sort-compare': 'off', + '@typescript-eslint/require-await': 'off', + '@typescript-eslint/restrict-plus-operands': 'off', + '@typescript-eslint/restrict-template-expressions': 'off', + '@typescript-eslint/return-await': 'off', + '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/switch-exhaustiveness-check': 'off', + '@typescript-eslint/unbound-method': 'off', + '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', + }, +}; +//# sourceMappingURL=disable-type-checked.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map new file mode 100644 index 00000000..dd0bbd24 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map @@ -0,0 +1 @@ +{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC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ACjD,iDAAiD,EAAE,KAAK;QACxD,oCAAoC,EAAE,KAAK;QAC3C,oDAAoD,EAAE,KAAK;QAC3D,iDAAiD,EAAE,KAAK;QACxD,uCAAuC,EAAE,KAAK;QAC9C,4CAA4C,EAAE,KAAK;QACnD,mDAAmD,EAAE,KAAK;QAC1D,2CAA2C,EAAE,KAAK;QAClD,gDAAgD,EAAE,KAAK;QACvD,+CAA+C,EAAE,KAAK;QACtD,kCAAkC,EAAE,KAAK;QACzC,2CAA2C,EAAE,KAAK;QAClD,kDAAkD,EAAE,KAAK;QACzD,iCAAiC,EAAE,KAAK;QACxC,+CAA+C,EAAE,KAAK;QACtD,gDAAgD,EAAE,KAAK;QACvD,mCAAmC,EAAE,KAAK;QAC1C,2DAA2D,EAAE,KAAK;KACnE;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js new file mode 100644 index 00000000..a2108339 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js @@ -0,0 +1,43 @@ +"use strict"; +// NOTE: this file is isolated to be shared across legacy and flat configs +// it is exported via `./use-at-your-own-risk/eslint-recommended-raw` +// and it has types manually defined in `./eslint-recommended-raw.d.ts` +/** + * This is a compatibility ruleset that: + * - disables rules from eslint:recommended which are already handled by TypeScript. + * - enables rules that make sense due to TS's typechecking / transpilation. + */ +const config = (style) => ({ + files: style === 'glob' + ? // classic configs use glob syntax + ['*.ts', '*.tsx', '*.mts', '*.cts'] + : // flat configs use minimatch syntax + ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], + rules: { + 'constructor-super': 'off', // ts(2335) & ts(2377) + 'getter-return': 'off', // ts(2378) + 'no-class-assign': 'off', // ts(2629) + 'no-const-assign': 'off', // ts(2588) + 'no-dupe-args': 'off', // ts(2300) + 'no-dupe-class-members': 'off', // ts(2393) & ts(2300) + 'no-dupe-keys': 'off', // ts(1117) + 'no-func-assign': 'off', // ts(2630) + 'no-import-assign': 'off', // ts(2632) & ts(2540) + // TODO - remove this once we no longer support ESLint v8 + 'no-new-symbol': 'off', // ts(7009) + 'no-new-native-nonconstructor': 'off', // ts(7009) + 'no-obj-calls': 'off', // ts(2349) + 'no-redeclare': 'off', // ts(2451) + 'no-setter-return': 'off', // ts(2408) + 'no-this-before-super': 'off', // ts(2376) & ts(17009) + 'no-undef': 'off', // ts(2304) & ts(2552) + 'no-unreachable': 'off', // ts(7027) + 'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358) + 'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more + 'prefer-const': 'error', // ts provides better types with const + 'prefer-rest-params': 'error', // ts provides better types with rest args over arguments + 'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply + }, +}); +module.exports = config; +//# sourceMappingURL=eslint-recommended-raw.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map new file mode 100644 index 00000000..ef3fa187 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eslint-recommended-raw.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended-raw.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,uEAAuE;AAEvE;;;;GAIG;AACH,MAAM,MAAM,GAAG,CACb,KAA2B,EAI3B,EAAE,CAAC,CAAC;IACJ,KAAK,EACH,KAAK,KAAK,MAAM;QACd,CAAC,CAAC,kCAAkC;YAClC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QACrC,CAAC,CAAC,oCAAoC;YACpC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;IACrD,KAAK,EAAE;QACL,mBAAmB,EAAE,KAAK,EAAE,sBAAsB;QAClD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,iBAAiB,EAAE,KAAK,EAAE,WAAW;QACrC,iBAAiB,EAAE,KAAK,EAAE,WAAW;QACrC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,uBAAuB,EAAE,KAAK,EAAE,sBAAsB;QACtD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,kBAAkB,EAAE,KAAK,EAAE,sBAAsB;QACjD,yDAAyD;QACzD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,8BAA8B,EAAE,KAAK,EAAE,WAAW;QAClD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,kBAAkB,EAAE,KAAK,EAAE,WAAW;QACtC,sBAAsB,EAAE,KAAK,EAAE,uBAAuB;QACtD,UAAU,EAAE,KAAK,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,oBAAoB,EAAE,KAAK,EAAE,iCAAiC;QAC9D,QAAQ,EAAE,OAAO,EAAE,+DAA+D;QAClF,cAAc,EAAE,OAAO,EAAE,sCAAsC;QAC/D,oBAAoB,EAAE,OAAO,EAAE,yDAAyD;QACxF,eAAe,EAAE,OAAO,EAAE,6DAA6D;KACxF;CACF,CAAC,CAAC;AAEH,iBAAS,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js new file mode 100644 index 00000000..87c38628 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js @@ -0,0 +1,14 @@ +"use strict"; +/** + * This is a compatibility ruleset that: + * - disables rules from eslint:recommended which are already handled by TypeScript. + * - enables rules that make sense due to TS's typechecking / transpilation. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const eslint_recommended_raw_1 = __importDefault(require("./eslint-recommended-raw")); +module.exports = { + overrides: [(0, eslint_recommended_raw_1.default)('glob')], +}; +//# sourceMappingURL=eslint-recommended.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map new file mode 100644 index 00000000..50a38481 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAIH,sFAA6D;AAE7D,iBAAS;IACP,SAAS,EAAE,CAAC,IAAA,gCAAqB,EAAC,MAAM,CAAC,CAAC;CACZ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js new file mode 100644 index 00000000..c9627df3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js @@ -0,0 +1,40 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/no-array-delete': 'error', + '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-duplicate-type-constituents': 'error', + '@typescript-eslint/no-floating-promises': 'error', + '@typescript-eslint/no-for-in-array': 'error', + 'no-implied-eval': 'off', + '@typescript-eslint/no-implied-eval': 'error', + '@typescript-eslint/no-misused-promises': 'error', + '@typescript-eslint/no-redundant-type-constituents': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-unsafe-argument': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-unsafe-call': 'error', + '@typescript-eslint/no-unsafe-enum-comparison': 'error', + '@typescript-eslint/no-unsafe-member-access': 'error', + '@typescript-eslint/no-unsafe-return': 'error', + '@typescript-eslint/no-unsafe-unary-minus': 'error', + 'no-throw-literal': 'off', + '@typescript-eslint/only-throw-error': 'error', + 'prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'error', + 'require-await': 'off', + '@typescript-eslint/require-await': 'error', + '@typescript-eslint/restrict-plus-operands': 'error', + '@typescript-eslint/restrict-template-expressions': 'error', + '@typescript-eslint/unbound-method': 'error', + }, +}; +//# sourceMappingURL=recommended-type-checked-only.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map new file mode 100644 index 00000000..7ca5f56a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recommended-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,wCAAwC,EAAE,OAAO;QACjD,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,mCAAmC,EAAE,OAAO;KAC7C;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js new file mode 100644 index 00000000..1d3496f6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js @@ -0,0 +1,63 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/ban-ts-comment': 'error', + 'no-array-constructor': 'off', + '@typescript-eslint/no-array-constructor': 'error', + '@typescript-eslint/no-array-delete': 'error', + '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-duplicate-enum-values': 'error', + '@typescript-eslint/no-duplicate-type-constituents': 'error', + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', + '@typescript-eslint/no-floating-promises': 'error', + '@typescript-eslint/no-for-in-array': 'error', + 'no-implied-eval': 'off', + '@typescript-eslint/no-implied-eval': 'error', + '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-misused-promises': 'error', + '@typescript-eslint/no-namespace': 'error', + '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', + '@typescript-eslint/no-redundant-type-constituents': 'error', + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-this-alias': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-unnecessary-type-constraint': 'error', + '@typescript-eslint/no-unsafe-argument': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-unsafe-call': 'error', + '@typescript-eslint/no-unsafe-declaration-merging': 'error', + '@typescript-eslint/no-unsafe-enum-comparison': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error', + '@typescript-eslint/no-unsafe-member-access': 'error', + '@typescript-eslint/no-unsafe-return': 'error', + '@typescript-eslint/no-unsafe-unary-minus': 'error', + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/no-wrapper-object-types': 'error', + 'no-throw-literal': 'off', + '@typescript-eslint/only-throw-error': 'error', + '@typescript-eslint/prefer-as-const': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + 'prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'error', + 'require-await': 'off', + '@typescript-eslint/require-await': 'error', + '@typescript-eslint/restrict-plus-operands': 'error', + '@typescript-eslint/restrict-template-expressions': 'error', + '@typescript-eslint/triple-slash-reference': 'error', + '@typescript-eslint/unbound-method': 'error', + }, +}; +//# sourceMappingURL=recommended-type-checked.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map new file mode 100644 index 00000000..a6dbb4d0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recommended-type-checked.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO;QACjD,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,kDAAkD,EAAE,OAAO;QAC3D,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,2CAA2C,EAAE,OAAO;QACpD,mCAAmC,EAAE,OAAO;KAC7C;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js new file mode 100644 index 00000000..51d08969 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js @@ -0,0 +1,36 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/ban-ts-comment': 'error', + 'no-array-constructor': 'off', + '@typescript-eslint/no-array-constructor': 'error', + '@typescript-eslint/no-duplicate-enum-values': 'error', + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', + '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-namespace': 'error', + '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-this-alias': 'error', + '@typescript-eslint/no-unnecessary-type-constraint': 'error', + '@typescript-eslint/no-unsafe-declaration-merging': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error', + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/no-wrapper-object-types': 'error', + '@typescript-eslint/prefer-as-const': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + '@typescript-eslint/triple-slash-reference': 'error', + }, +}; +//# sourceMappingURL=recommended.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map new file mode 100644 index 00000000..c7e70ec1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map @@ -0,0 +1 @@ +{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;KACrD;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js new file mode 100644 index 00000000..1c9e99d0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js @@ -0,0 +1,77 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/no-array-delete': 'error', + '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-confusing-void-expression': 'error', + '@typescript-eslint/no-deprecated': 'error', + '@typescript-eslint/no-duplicate-type-constituents': 'error', + '@typescript-eslint/no-floating-promises': 'error', + '@typescript-eslint/no-for-in-array': 'error', + 'no-implied-eval': 'off', + '@typescript-eslint/no-implied-eval': 'error', + '@typescript-eslint/no-meaningless-void-operator': 'error', + '@typescript-eslint/no-misused-promises': 'error', + '@typescript-eslint/no-mixed-enums': 'error', + '@typescript-eslint/no-redundant-type-constituents': 'error', + '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', + '@typescript-eslint/no-unnecessary-condition': 'error', + '@typescript-eslint/no-unnecessary-template-expression': 'error', + '@typescript-eslint/no-unnecessary-type-arguments': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-unnecessary-type-parameters': 'error', + '@typescript-eslint/no-unsafe-argument': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-unsafe-call': 'error', + '@typescript-eslint/no-unsafe-enum-comparison': 'error', + '@typescript-eslint/no-unsafe-member-access': 'error', + '@typescript-eslint/no-unsafe-return': 'error', + '@typescript-eslint/no-unsafe-unary-minus': 'error', + 'no-throw-literal': 'off', + '@typescript-eslint/only-throw-error': 'error', + 'prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'error', + '@typescript-eslint/prefer-reduce-type-parameter': 'error', + '@typescript-eslint/prefer-return-this-type': 'error', + '@typescript-eslint/related-getter-setter-pairs': 'error', + 'require-await': 'off', + '@typescript-eslint/require-await': 'error', + '@typescript-eslint/restrict-plus-operands': [ + 'error', + { + allowAny: false, + allowBoolean: false, + allowNullish: false, + allowNumberAndString: false, + allowRegExp: false, + }, + ], + '@typescript-eslint/restrict-template-expressions': [ + 'error', + { + allowAny: false, + allowBoolean: false, + allowNullish: false, + allowNumber: false, + allowRegExp: false, + allowNever: false, + }, + ], + 'no-return-await': 'off', + '@typescript-eslint/return-await': [ + 'error', + 'error-handling-correctness-only', + ], + '@typescript-eslint/unbound-method': 'error', + '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', + }, +}; +//# sourceMappingURL=strict-type-checked-only.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map new file mode 100644 index 00000000..f4cf439d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map @@ -0,0 +1 @@ +{"version":3,"file":"strict-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,iDAAiD,EAAE,OAAO;QAC1D,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,mDAAmD,EAAE,OAAO;QAC5D,2DAA2D,EAAE,OAAO;QACpE,6CAA6C,EAAE,OAAO;QACtD,uDAAuD,EAAE,OAAO;QAChE,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,iDAAiD,EAAE,OAAO;QAC1D,4CAA4C,EAAE,OAAO;QACrD,gDAAgD,EAAE,OAAO;QACzD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE;YAC3C,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,KAAK;aAClB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,mCAAmC,EAAE,OAAO;QAC5C,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js new file mode 100644 index 00000000..8897b452 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js @@ -0,0 +1,112 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/ban-ts-comment': [ + 'error', + { minimumDescriptionLength: 10 }, + ], + 'no-array-constructor': 'off', + '@typescript-eslint/no-array-constructor': 'error', + '@typescript-eslint/no-array-delete': 'error', + '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-confusing-void-expression': 'error', + '@typescript-eslint/no-deprecated': 'error', + '@typescript-eslint/no-duplicate-enum-values': 'error', + '@typescript-eslint/no-duplicate-type-constituents': 'error', + '@typescript-eslint/no-dynamic-delete': 'error', + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', + '@typescript-eslint/no-extraneous-class': 'error', + '@typescript-eslint/no-floating-promises': 'error', + '@typescript-eslint/no-for-in-array': 'error', + 'no-implied-eval': 'off', + '@typescript-eslint/no-implied-eval': 'error', + '@typescript-eslint/no-invalid-void-type': 'error', + '@typescript-eslint/no-meaningless-void-operator': 'error', + '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-misused-promises': 'error', + '@typescript-eslint/no-mixed-enums': 'error', + '@typescript-eslint/no-namespace': 'error', + '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', + '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', + '@typescript-eslint/no-non-null-assertion': 'error', + '@typescript-eslint/no-redundant-type-constituents': 'error', + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-this-alias': 'error', + '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', + '@typescript-eslint/no-unnecessary-condition': 'error', + '@typescript-eslint/no-unnecessary-template-expression': 'error', + '@typescript-eslint/no-unnecessary-type-arguments': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-unnecessary-type-constraint': 'error', + '@typescript-eslint/no-unnecessary-type-parameters': 'error', + '@typescript-eslint/no-unsafe-argument': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-unsafe-call': 'error', + '@typescript-eslint/no-unsafe-declaration-merging': 'error', + '@typescript-eslint/no-unsafe-enum-comparison': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error', + '@typescript-eslint/no-unsafe-member-access': 'error', + '@typescript-eslint/no-unsafe-return': 'error', + '@typescript-eslint/no-unsafe-unary-minus': 'error', + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + 'no-useless-constructor': 'off', + '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/no-wrapper-object-types': 'error', + 'no-throw-literal': 'off', + '@typescript-eslint/only-throw-error': 'error', + '@typescript-eslint/prefer-as-const': 'error', + '@typescript-eslint/prefer-literal-enum-member': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + 'prefer-promise-reject-errors': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'error', + '@typescript-eslint/prefer-reduce-type-parameter': 'error', + '@typescript-eslint/prefer-return-this-type': 'error', + '@typescript-eslint/related-getter-setter-pairs': 'error', + 'require-await': 'off', + '@typescript-eslint/require-await': 'error', + '@typescript-eslint/restrict-plus-operands': [ + 'error', + { + allowAny: false, + allowBoolean: false, + allowNullish: false, + allowNumberAndString: false, + allowRegExp: false, + }, + ], + '@typescript-eslint/restrict-template-expressions': [ + 'error', + { + allowAny: false, + allowBoolean: false, + allowNever: false, + allowNullish: false, + allowNumber: false, + allowRegExp: false, + }, + ], + 'no-return-await': 'off', + '@typescript-eslint/return-await': [ + 'error', + 'error-handling-correctness-only', + ], + '@typescript-eslint/triple-slash-reference': 'error', + '@typescript-eslint/unbound-method': 'error', + '@typescript-eslint/unified-signatures': 'error', + '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', + }, +}; +//# sourceMappingURL=strict-type-checked.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map new file mode 100644 index 00000000..88ab3565 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map @@ -0,0 +1 @@ +{"version":3,"file":"strict-type-checked.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,kCAAkC,EAAE,OAAO;QAC3C,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,yCAAyC,EAAE,OAAO;QAClD,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO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AY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;aACnB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,2CAA2C,EAAE,OAAO;QACpD,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js new file mode 100644 index 00000000..655c7789 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js @@ -0,0 +1,48 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/ban-ts-comment': [ + 'error', + { minimumDescriptionLength: 10 }, + ], + 'no-array-constructor': 'off', + '@typescript-eslint/no-array-constructor': 'error', + '@typescript-eslint/no-duplicate-enum-values': 'error', + '@typescript-eslint/no-dynamic-delete': 'error', + '@typescript-eslint/no-empty-object-type': 'error', + '@typescript-eslint/no-explicit-any': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', + '@typescript-eslint/no-extraneous-class': 'error', + '@typescript-eslint/no-invalid-void-type': 'error', + '@typescript-eslint/no-misused-new': 'error', + '@typescript-eslint/no-namespace': 'error', + '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', + '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', + '@typescript-eslint/no-non-null-assertion': 'error', + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-this-alias': 'error', + '@typescript-eslint/no-unnecessary-type-constraint': 'error', + '@typescript-eslint/no-unsafe-declaration-merging': 'error', + '@typescript-eslint/no-unsafe-function-type': 'error', + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + 'no-useless-constructor': 'off', + '@typescript-eslint/no-useless-constructor': 'error', + '@typescript-eslint/no-wrapper-object-types': 'error', + '@typescript-eslint/prefer-as-const': 'error', + '@typescript-eslint/prefer-literal-enum-member': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + '@typescript-eslint/triple-slash-reference': 'error', + '@typescript-eslint/unified-signatures': 'error', + }, +}; +//# sourceMappingURL=strict.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map new file mode 100644 index 00000000..eb35e57d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map @@ -0,0 +1 @@ +{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;QACpD,uCAAuC,EAAE,OAAO;KACjD;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js new file mode 100644 index 00000000..c9af0687 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js @@ -0,0 +1,22 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + 'dot-notation': 'off', + '@typescript-eslint/dot-notation': 'error', + '@typescript-eslint/non-nullable-type-assertion-style': 'error', + '@typescript-eslint/prefer-find': 'error', + '@typescript-eslint/prefer-includes': 'error', + '@typescript-eslint/prefer-nullish-coalescing': 'error', + '@typescript-eslint/prefer-optional-chain': 'error', + '@typescript-eslint/prefer-regexp-exec': 'error', + '@typescript-eslint/prefer-string-starts-ends-with': 'error', + }, +}; +//# sourceMappingURL=stylistic-type-checked-only.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map new file mode 100644 index 00000000..1cf52610 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stylistic-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js new file mode 100644 index 00000000..acb18c63 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js @@ -0,0 +1,36 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/adjacent-overload-signatures': 'error', + '@typescript-eslint/array-type': 'error', + '@typescript-eslint/ban-tslint-comment': 'error', + '@typescript-eslint/class-literal-property-style': 'error', + '@typescript-eslint/consistent-generic-constructors': 'error', + '@typescript-eslint/consistent-indexed-object-style': 'error', + '@typescript-eslint/consistent-type-assertions': 'error', + '@typescript-eslint/consistent-type-definitions': 'error', + 'dot-notation': 'off', + '@typescript-eslint/dot-notation': 'error', + '@typescript-eslint/no-confusing-non-null-assertion': 'error', + 'no-empty-function': 'off', + '@typescript-eslint/no-empty-function': 'error', + '@typescript-eslint/no-inferrable-types': 'error', + '@typescript-eslint/non-nullable-type-assertion-style': 'error', + '@typescript-eslint/prefer-find': 'error', + '@typescript-eslint/prefer-for-of': 'error', + '@typescript-eslint/prefer-function-type': 'error', + '@typescript-eslint/prefer-includes': 'error', + '@typescript-eslint/prefer-nullish-coalescing': 'error', + '@typescript-eslint/prefer-optional-chain': 'error', + '@typescript-eslint/prefer-regexp-exec': 'error', + '@typescript-eslint/prefer-string-starts-ends-with': 'error', + }, +}; +//# sourceMappingURL=stylistic-type-checked.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map new file mode 100644 index 00000000..2444de1f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stylistic-type-checked.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js new file mode 100644 index 00000000..f3c61bd9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js @@ -0,0 +1,27 @@ +"use strict"; +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// SEE https://typescript-eslint.io/users/configs +// +// For developers working in the typescript-eslint monorepo: +// You can regenerate it using `yarn generate:configs` +module.exports = { + extends: ['./configs/base', './configs/eslint-recommended'], + rules: { + '@typescript-eslint/adjacent-overload-signatures': 'error', + '@typescript-eslint/array-type': 'error', + '@typescript-eslint/ban-tslint-comment': 'error', + '@typescript-eslint/class-literal-property-style': 'error', + '@typescript-eslint/consistent-generic-constructors': 'error', + '@typescript-eslint/consistent-indexed-object-style': 'error', + '@typescript-eslint/consistent-type-assertions': 'error', + '@typescript-eslint/consistent-type-definitions': 'error', + '@typescript-eslint/no-confusing-non-null-assertion': 'error', + 'no-empty-function': 'off', + '@typescript-eslint/no-empty-function': 'error', + '@typescript-eslint/no-inferrable-types': 'error', + '@typescript-eslint/prefer-for-of': 'error', + '@typescript-eslint/prefer-function-type': 'error', + }, +}; +//# sourceMappingURL=stylistic.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map new file mode 100644 index 00000000..ab3f7ac5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/configs/stylistic.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;KACnD;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js new file mode 100644 index 00000000..368c349f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js @@ -0,0 +1,47 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const all_1 = __importDefault(require("./configs/all")); +const base_1 = __importDefault(require("./configs/base")); +const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked")); +const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended")); +const recommended_1 = __importDefault(require("./configs/recommended")); +const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked")); +const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only")); +const strict_1 = __importDefault(require("./configs/strict")); +const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked")); +const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only")); +const stylistic_1 = __importDefault(require("./configs/stylistic")); +const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked")); +const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only")); +const rules_1 = __importDefault(require("./rules")); +// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder +const { name, version } = require('../package.json'); +const configs = { + all: all_1.default, + base: base_1.default, + 'disable-type-checked': disable_type_checked_1.default, + 'eslint-recommended': eslint_recommended_1.default, + recommended: recommended_1.default, + /** @deprecated - please use "recommended-type-checked" instead. */ + 'recommended-requiring-type-checking': recommended_type_checked_1.default, + 'recommended-type-checked': recommended_type_checked_1.default, + 'recommended-type-checked-only': recommended_type_checked_only_1.default, + strict: strict_1.default, + 'strict-type-checked': strict_type_checked_1.default, + 'strict-type-checked-only': strict_type_checked_only_1.default, + stylistic: stylistic_1.default, + 'stylistic-type-checked': stylistic_type_checked_1.default, + 'stylistic-type-checked-only': stylistic_type_checked_only_1.default, +}; +const meta = { + name, + version, +}; +module.exports = { + configs, + meta, + rules: rules_1.default, +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map new file mode 100644 index 00000000..db9c051f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAEA,wDAAgC;AAChC,0DAAkC;AAClC,0FAAgE;AAChE,sFAA6D;AAC7D,wEAAgD;AAChD,kGAAwE;AACxE,4GAAiF;AACjF,8DAAsC;AACtC,wFAA8D;AAC9D,kGAAuE;AACvE,oEAA4C;AAC5C,8FAAoE;AACpE,wGAA6E;AAC7E,oDAA4B;AAE5B,sHAAsH;AACtH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAGlD,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,GAAG,EAAH,aAAG;IACH,IAAI,EAAJ,cAAI;IACJ,sBAAsB,EAAE,8BAAkB;IAC1C,oBAAoB,EAAE,4BAAiB;IACvC,WAAW,EAAX,qBAAW;IACX,mEAAmE;IACnE,qCAAqC,EAAE,kCAAsB;IAC7D,0BAA0B,EAAE,kCAAsB;IAClD,+BAA+B,EAAE,uCAA0B;IAC3D,MAAM,EAAN,gBAAM;IACN,qBAAqB,EAAE,6BAAiB;IACxC,0BAA0B,EAAE,kCAAqB;IACjD,SAAS,EAAT,mBAAS;IACT,wBAAwB,EAAE,gCAAoB;IAC9C,6BAA6B,EAAE,qCAAwB;CACxD,CAAC;AAEF,MAAM,IAAI,GAAG;IACX,IAAI;IACJ,OAAO;CACR,CAAC;AAEF,iBAAS;IACP,OAAO;IACP,IAAI;IACJ,KAAK,EAAL,eAAK;CACkB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js new file mode 100644 index 00000000..83c60a5f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js @@ -0,0 +1,125 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'adjacent-overload-signatures', + meta: { + type: 'suggestion', + docs: { + description: 'Require that function overload signatures be consecutive', + recommended: 'stylistic', + }, + messages: { + adjacentSignature: 'All {{name}} signatures should be adjacent.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + /** + * Gets the name and attribute of the member being processed. + * @param member the member being processed. + * @returns the name and attribute of the member or null if it's a member not relevant to the rule. + */ + function getMemberMethod(member) { + switch (member.type) { + case utils_1.AST_NODE_TYPES.ExportDefaultDeclaration: + case utils_1.AST_NODE_TYPES.ExportNamedDeclaration: { + // export statements (e.g. export { a };) + // have no declarations, so ignore them + if (!member.declaration) { + return null; + } + return getMemberMethod(member.declaration); + } + case utils_1.AST_NODE_TYPES.TSDeclareFunction: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: { + const name = member.id?.name ?? null; + if (name == null) { + return null; + } + return { + name, + type: util_1.MemberNameType.Normal, + callSignature: false, + }; + } + case utils_1.AST_NODE_TYPES.TSMethodSignature: + case utils_1.AST_NODE_TYPES.MethodDefinition: + return { + ...(0, util_1.getNameFromMember)(member, context.sourceCode), + callSignature: false, + static: !!member.static, + }; + case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: + return { + name: 'call', + type: util_1.MemberNameType.Normal, + callSignature: true, + }; + case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: + return { + name: 'new', + type: util_1.MemberNameType.Normal, + callSignature: false, + }; + } + return null; + } + function isSameMethod(method1, method2) { + return (!!method2 && + method1.name === method2.name && + method1.static === method2.static && + method1.callSignature === method2.callSignature && + method1.type === method2.type); + } + function getMembers(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.ClassBody: + case utils_1.AST_NODE_TYPES.Program: + case utils_1.AST_NODE_TYPES.TSModuleBlock: + case utils_1.AST_NODE_TYPES.TSInterfaceBody: + case utils_1.AST_NODE_TYPES.BlockStatement: + return node.body; + case utils_1.AST_NODE_TYPES.TSTypeLiteral: + return node.members; + } + } + function checkBodyForOverloadMethods(node) { + const members = getMembers(node); + let lastMethod = null; + const seenMethods = []; + members.forEach(member => { + const method = getMemberMethod(member); + if (method == null) { + lastMethod = null; + return; + } + const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod)); + if (index > -1 && !isSameMethod(method, lastMethod)) { + context.report({ + node: member, + messageId: 'adjacentSignature', + data: { + name: `${method.static ? 'static ' : ''}${method.name}`, + }, + }); + } + else if (index === -1) { + seenMethods.push(method); + } + lastMethod = method; + }); + } + return { + BlockStatement: checkBodyForOverloadMethods, + ClassBody: checkBodyForOverloadMethods, + Program: checkBodyForOverloadMethods, + TSInterfaceBody: checkBodyForOverloadMethods, + TSModuleBlock: checkBodyForOverloadMethods, + TSTypeLiteral: checkBodyForOverloadMethods, + }; + }, +}); +//# sourceMappingURL=adjacent-overload-signatures.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map new file mode 100644 index 00000000..9bf8ba18 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map @@ -0,0 +1 @@ +{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAwE;AAmBxE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,6CAA6C;SACjE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QAQZ;;;;WAIG;QACH,SAAS,eAAe,CACtB,MAAkC;YAElC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,sBAAc,CAAC,wBAAwB,CAAC;gBAC7C,KAAK,sBAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;oBAC3C,yCAAyC;oBACzC,uCAAuC;oBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;wBACxB,OAAO,IAAI,CAAC;oBACd,CAAC;oBAED,OAAO,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAC7C,CAAC;gBACD,KAAK,sBAAc,CAAC,iBAAiB,CAAC;gBACtC,KAAK,sBAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACxC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,EAAE,I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AED,UAAU,GAAG,MAAM,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,cAAc,EAAE,2BAA2B;YAC3C,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE,2BAA2B;YACpC,eAAe,EAAE,2BAA2B;YAC5C,aAAa,EAAE,2BAA2B;YAC1C,aAAa,EAAE,2BAA2B;SAC3C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js new file mode 100644 index 00000000..cb4ad9fb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js @@ -0,0 +1,232 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +/** + * Check whatever node can be considered as simple + * @param node the node to be evaluated. + */ +function isSimpleType(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.Identifier: + case utils_1.AST_NODE_TYPES.TSAnyKeyword: + case utils_1.AST_NODE_TYPES.TSBooleanKeyword: + case utils_1.AST_NODE_TYPES.TSNeverKeyword: + case utils_1.AST_NODE_TYPES.TSNumberKeyword: + case utils_1.AST_NODE_TYPES.TSBigIntKeyword: + case utils_1.AST_NODE_TYPES.TSObjectKeyword: + case utils_1.AST_NODE_TYPES.TSStringKeyword: + case utils_1.AST_NODE_TYPES.TSSymbolKeyword: + case utils_1.AST_NODE_TYPES.TSUnknownKeyword: + case utils_1.AST_NODE_TYPES.TSVoidKeyword: + case utils_1.AST_NODE_TYPES.TSNullKeyword: + case utils_1.AST_NODE_TYPES.TSArrayType: + case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: + case utils_1.AST_NODE_TYPES.TSThisType: + case utils_1.AST_NODE_TYPES.TSQualifiedName: + return true; + case utils_1.AST_NODE_TYPES.TSTypeReference: + if (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + node.typeName.name === 'Array') { + if (!node.typeArguments) { + return true; + } + if (node.typeArguments.params.length === 1) { + return isSimpleType(node.typeArguments.params[0]); + } + } + else { + if (node.typeArguments) { + return false; + } + return isSimpleType(node.typeName); + } + return false; + default: + return false; + } +} +/** + * Check if node needs parentheses + * @param node the node to be evaluated. + */ +function typeNeedsParentheses(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSTypeReference: + return typeNeedsParentheses(node.typeName); + case utils_1.AST_NODE_TYPES.TSUnionType: + case utils_1.AST_NODE_TYPES.TSFunctionType: + case utils_1.AST_NODE_TYPES.TSIntersectionType: + case utils_1.AST_NODE_TYPES.TSTypeOperator: + case utils_1.AST_NODE_TYPES.TSInferType: + case utils_1.AST_NODE_TYPES.TSConstructorType: + return true; + case utils_1.AST_NODE_TYPES.Identifier: + return node.name === 'ReadonlyArray'; + default: + return false; + } +} +exports.default = (0, util_1.createRule)({ + name: 'array-type', + meta: { + type: 'suggestion', + docs: { + description: 'Require consistently using either `T[]` or `Array` for arrays', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + errorStringArray: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}[]' instead.", + errorStringArrayReadonly: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}' instead.", + errorStringArraySimple: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}[]' instead.", + errorStringArraySimpleReadonly: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}' instead.", + errorStringGeneric: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden. Use '{{className}}<{{type}}>' instead.", + errorStringGenericSimple: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden for non-simple types. Use '{{className}}<{{type}}>' instead.", + }, + schema: [ + { + type: 'object', + $defs: { + arrayOption: { + type: 'string', + enum: ['array', 'generic', 'array-simple'], + }, + }, + additionalProperties: false, + properties: { + default: { + $ref: '#/items/0/$defs/arrayOption', + description: 'The array type expected for mutable cases.', + }, + readonly: { + $ref: '#/items/0/$defs/arrayOption', + description: 'The array type expected for readonly cases. If omitted, the value for `default` will be used.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + default: 'array', + }, + ], + create(context, [options]) { + const defaultOption = options.default; + const readonlyOption = options.readonly ?? defaultOption; + /** + * @param node the node to be evaluated. + */ + function getMessageType(node) { + if (isSimpleType(node)) { + return context.sourceCode.getText(node); + } + return 'T'; + } + return { + TSArrayType(node) { + const isReadonly = node.parent.type === utils_1.AST_NODE_TYPES.TSTypeOperator && + node.parent.operator === 'readonly'; + const currentOption = isReadonly ? readonlyOption : defaultOption; + if (currentOption === 'array' || + (currentOption === 'array-simple' && isSimpleType(node.elementType))) { + return; + } + const messageId = currentOption === 'generic' + ? 'errorStringGeneric' + : 'errorStringGenericSimple'; + const errorNode = isReadonly ? node.parent : node; + context.report({ + node: errorNode, + messageId, + data: { + type: getMessageType(node.elementType), + className: isReadonly ? 'ReadonlyArray' : 'Array', + readonlyPrefix: isReadonly ? 'readonly ' : '', + }, + fix(fixer) { + const typeNode = node.elementType; + const arrayType = isReadonly ? 'ReadonlyArray' : 'Array'; + return [ + fixer.replaceTextRange([errorNode.range[0], typeNode.range[0]], `${arrayType}<`), + fixer.replaceTextRange([typeNode.range[1], errorNode.range[1]], '>'), + ]; + }, + }); + }, + TSTypeReference(node) { + if (node.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || + !(node.typeName.name === 'Array' || + node.typeName.name === 'ReadonlyArray' || + node.typeName.name === 'Readonly') || + (node.typeName.name === 'Readonly' && + node.typeArguments?.params[0].type !== utils_1.AST_NODE_TYPES.TSArrayType)) { + return; + } + const isReadonlyWithGenericArrayType = node.typeName.name === 'Readonly' && + node.typeArguments?.params[0].type === utils_1.AST_NODE_TYPES.TSArrayType; + const isReadonlyArrayType = node.typeName.name === 'ReadonlyArray' || + isReadonlyWithGenericArrayType; + const currentOption = isReadonlyArrayType + ? readonlyOption + : defaultOption; + if (currentOption === 'generic') { + return; + } + const readonlyPrefix = isReadonlyArrayType ? 'readonly ' : ''; + const typeParams = node.typeArguments?.params; + const messageId = currentOption === 'array' + ? isReadonlyWithGenericArrayType + ? 'errorStringArrayReadonly' + : 'errorStringArray' + : isReadonlyArrayType && node.typeName.name !== 'ReadonlyArray' + ? 'errorStringArraySimpleReadonly' + : 'errorStringArraySimple'; + if (!typeParams || typeParams.length === 0) { + // Create an 'any' array + context.report({ + node, + messageId, + data: { + type: 'any', + className: isReadonlyArrayType ? 'ReadonlyArray' : 'Array', + readonlyPrefix, + }, + fix(fixer) { + return fixer.replaceText(node, `${readonlyPrefix}any[]`); + }, + }); + return; + } + if (typeParams.length !== 1 || + (currentOption === 'array-simple' && !isSimpleType(typeParams[0]))) { + return; + } + const type = typeParams[0]; + const typeParens = typeNeedsParentheses(type); + const parentParens = readonlyPrefix && + node.parent.type === utils_1.AST_NODE_TYPES.TSArrayType && + !(0, util_1.isParenthesized)(node.parent.elementType, context.sourceCode); + const start = `${parentParens ? '(' : ''}${readonlyPrefix}${typeParens ? '(' : ''}`; + const end = `${typeParens ? ')' : ''}${isReadonlyWithGenericArrayType ? '' : `[]`}${parentParens ? ')' : ''}`; + context.report({ + node, + messageId, + data: { + type: getMessageType(type), + className: isReadonlyArrayType ? node.typeName.name : 'Array', + readonlyPrefix, + }, + fix(fixer) { + return [ + fixer.replaceTextRange([node.range[0], type.range[0]], start), + fixer.replaceTextRange([type.range[1], node.range[1]], end), + ]; + }, + }); + }, + }; + }, +}); +//# sourceMappingURL=array-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map new file mode 100644 index 00000000..7890773f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"array-type.js","sourceRoot":"","sources":["../../src/rules/array-type.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAsD;AAEtD;;;GAGG;AACH,SAAS,YAAY,CAAC,IAAmB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,YAAY,CAAC;QACjC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,aAAa,CAAC;QAClC,KAAK,sBAAc,CAAC,aAAa,CAAC;QAClC,KAAK,sBAAc,CAAC,WAAW,CAAC;QAChC,KAAK,sBAAc,CAAC,kBAAkB,CAAC;QACvC,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,IAAI,CAAC;QACd,KAAK,sBAAc,CAAC,eAAe;YACjC,IACE,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBAChD,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,EAC9B,CAAC;gBACD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;oBACxB,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC3C,OAAO,Y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AAC;oBACb,IAAI;oBACJ,SAAS;oBACT,IAAI,EAAE;wBACJ,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;wBAC1B,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;wBAC7D,cAAc;qBACf;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO;4BACL,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;4BAC7D,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;yBAC5D,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js new file mode 100644 index 00000000..17236924 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js @@ -0,0 +1,136 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +const getForStatementHeadLoc_1 = require("../util/getForStatementHeadLoc"); +exports.default = (0, util_1.createRule)({ + name: 'await-thenable', + meta: { + type: 'problem', + docs: { + description: 'Disallow awaiting a value that is not a Thenable', + recommended: 'recommended', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + await: 'Unexpected `await` of a non-Promise (non-"Thenable") value.', + awaitUsingOfNonAsyncDisposable: 'Unexpected `await using` of a value that is not async disposable.', + convertToOrdinaryFor: 'Convert to an ordinary `for...of` loop.', + forAwaitOfNonAsyncIterable: 'Unexpected `for await...of` of a value that is not async iterable.', + removeAwait: 'Remove unnecessary `await`.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + return { + AwaitExpression(node) { + const type = services.getTypeAtLocation(node.argument); + const originalNode = services.esTreeNodeToTSNodeMap.get(node); + const certainty = (0, util_1.needsToBeAwaited)(checker, originalNode, type); + if (certainty === util_1.Awaitable.Never) { + context.report({ + node, + messageId: 'await', + suggest: [ + { + messageId: 'removeAwait', + fix(fixer) { + const awaitKeyword = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'await expression')); + return fixer.remove(awaitKeyword); + }, + }, + ], + }); + } + }, + 'ForOfStatement[await=true]'(node) { + const type = services.getTypeAtLocation(node.right); + if ((0, util_1.isTypeAnyType)(type)) { + return; + } + const hasAsyncIteratorSymbol = tsutils + .unionTypeParts(type) + .some(typePart => tsutils.getWellKnownSymbolPropertyOfType(typePart, 'asyncIterator', checker) != null); + if (!hasAsyncIteratorSymbol) { + context.report({ + loc: (0, getForStatementHeadLoc_1.getForStatementHeadLoc)(context.sourceCode, node), + messageId: 'forAwaitOfNonAsyncIterable', + suggest: [ + // Note that this suggestion causes broken code for sync iterables + // of promises, since the loop variable is not awaited. + { + messageId: 'convertToOrdinaryFor', + fix(fixer) { + const awaitToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'for await loop')); + return fixer.remove(awaitToken); + }, + }, + ], + }); + } + }, + 'VariableDeclaration[kind="await using"]'(node) { + for (const declarator of node.declarations) { + const init = declarator.init; + if (init == null) { + continue; + } + const type = services.getTypeAtLocation(init); + if ((0, util_1.isTypeAnyType)(type)) { + continue; + } + const hasAsyncDisposeSymbol = tsutils + .unionTypeParts(type) + .some(typePart => tsutils.getWellKnownSymbolPropertyOfType(typePart, 'asyncDispose', checker) != null); + if (!hasAsyncDisposeSymbol) { + context.report({ + node: init, + messageId: 'awaitUsingOfNonAsyncDisposable', + // let the user figure out what to do if there's + // await using a = b, c = d, e = f; + // it's rare and not worth the complexity to handle. + ...(0, util_1.getFixOrSuggest)({ + fixOrSuggest: node.declarations.length === 1 ? 'suggest' : 'none', + suggestion: { + messageId: 'removeAwait', + fix(fixer) { + const awaitToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'await using')); + return fixer.remove(awaitToken); + }, + }, + }), + }); + } + } + }, + }; + }, +}); +//# sourceMappingURL=await-thenable.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map new file mode 100644 index 00000000..123efe08 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules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AClC,CAAC;iCACF;6BACF,CAAC;yBACH,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js new file mode 100644 index 00000000..99a6e417 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js @@ -0,0 +1,185 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const defaultMinimumDescriptionLength = 3; +exports.default = (0, util_1.createRule)({ + name: 'ban-ts-comment', + meta: { + type: 'problem', + docs: { + description: 'Disallow `@ts-` comments or require descriptions after directives', + recommended: { + recommended: true, + strict: [{ minimumDescriptionLength: 10 }], + }, + }, + hasSuggestions: true, + messages: { + replaceTsIgnoreWithTsExpectError: 'Replace "@ts-ignore" with "@ts-expect-error".', + tsDirectiveComment: 'Do not use "@ts-{{directive}}" because it alters compilation errors.', + tsDirectiveCommentDescriptionNotMatchPattern: 'The description for the "@ts-{{directive}}" directive must match the {{format}} format.', + tsDirectiveCommentRequiresDescription: 'Include a description after the "@ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.', + tsIgnoreInsteadOfExpectError: 'Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free.', + }, + schema: [ + { + type: 'object', + $defs: { + directiveConfigSchema: { + oneOf: [ + { + type: 'boolean', + default: true, + }, + { + type: 'string', + enum: ['allow-with-description'], + }, + { + type: 'object', + additionalProperties: false, + properties: { + descriptionFormat: { type: 'string' }, + }, + }, + ], + }, + }, + additionalProperties: false, + properties: { + minimumDescriptionLength: { + type: 'number', + default: defaultMinimumDescriptionLength, + description: 'A minimum character length for descriptions when `allow-with-description` is enabled.', + }, + 'ts-check': { $ref: '#/items/0/$defs/directiveConfigSchema' }, + 'ts-expect-error': { $ref: '#/items/0/$defs/directiveConfigSchema' }, + 'ts-ignore': { $ref: '#/items/0/$defs/directiveConfigSchema' }, + 'ts-nocheck': { $ref: '#/items/0/$defs/directiveConfigSchema' }, + }, + }, + ], + }, + defaultOptions: [ + { + minimumDescriptionLength: defaultMinimumDescriptionLength, + 'ts-check': false, + 'ts-expect-error': 'allow-with-description', + 'ts-ignore': true, + 'ts-nocheck': true, + }, + ], + create(context, [options]) { + // https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/parser.ts#L10591 + const singleLinePragmaRegEx = /^\/\/\/?\s*@ts-(?check|nocheck)(?.*)$/; + /* + The regex used are taken from the ones used in the official TypeScript repo - + https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/scanner.ts#L340-L348 + */ + const commentDirectiveRegExSingleLine = /^\/*\s*@ts-(?expect-error|ignore)(?.*)/; + const commentDirectiveRegExMultiLine = /^\s*(?:\/|\*)*\s*@ts-(?expect-error|ignore)(?.*)/; + const descriptionFormats = new Map(); + for (const directive of [ + 'ts-expect-error', + 'ts-ignore', + 'ts-nocheck', + 'ts-check', + ]) { + const option = options[directive]; + if (typeof option === 'object' && option.descriptionFormat) { + descriptionFormats.set(directive, new RegExp(option.descriptionFormat)); + } + } + function execDirectiveRegEx(regex, str) { + const match = regex.exec(str); + if (!match) { + return null; + } + const { description, directive } = (0, util_1.nullThrows)(match.groups, 'RegExp should contain groups'); + return { + description: (0, util_1.nullThrows)(description, 'RegExp should contain "description" group'), + directive: (0, util_1.nullThrows)(directive, 'RegExp should contain "directive" group'), + }; + } + function findDirectiveInComment(comment) { + if (comment.type === utils_1.AST_TOKEN_TYPES.Line) { + const matchedPragma = execDirectiveRegEx(singleLinePragmaRegEx, `//${comment.value}`); + if (matchedPragma) { + return matchedPragma; + } + return execDirectiveRegEx(commentDirectiveRegExSingleLine, comment.value); + } + const commentLines = comment.value.split('\n'); + return execDirectiveRegEx(commentDirectiveRegExMultiLine, commentLines[commentLines.length - 1]); + } + return { + Program(node) { + const firstStatement = node.body.at(0); + const comments = context.sourceCode.getAllComments(); + comments.forEach(comment => { + const match = findDirectiveInComment(comment); + if (!match) { + return; + } + const { description, directive } = match; + if (directive === 'nocheck' && + firstStatement && + firstStatement.loc.start.line <= comment.loc.start.line) { + return; + } + const fullDirective = `ts-${directive}`; + const option = options[fullDirective]; + if (option === true) { + if (directive === 'ignore') { + // Special case to suggest @ts-expect-error instead of @ts-ignore + context.report({ + node: comment, + messageId: 'tsIgnoreInsteadOfExpectError', + suggest: [ + { + messageId: 'replaceTsIgnoreWithTsExpectError', + fix(fixer) { + const commentText = comment.value.replace(/@ts-ignore/, '@ts-expect-error'); + return fixer.replaceText(comment, comment.type === utils_1.AST_TOKEN_TYPES.Line + ? `//${commentText}` + : `/*${commentText}*/`); + }, + }, + ], + }); + } + else { + context.report({ + node: comment, + messageId: 'tsDirectiveComment', + data: { directive }, + }); + } + } + if (option === 'allow-with-description' || + (typeof option === 'object' && option.descriptionFormat)) { + const { minimumDescriptionLength } = options; + const format = descriptionFormats.get(fullDirective); + if ((0, util_1.getStringLength)(description.trim()) < + (0, util_1.nullThrows)(minimumDescriptionLength, 'Expected minimumDescriptionLength to be set')) { + context.report({ + node: comment, + messageId: 'tsDirectiveCommentRequiresDescription', + data: { directive, minimumDescriptionLength }, + }); + } + else if (format && !format.test(description)) { + context.report({ + node: comment, + messageId: 'tsDirectiveCommentDescriptionNotMatchPattern', + data: { directive, format: format.source }, + }); + } + } + }); + }, + }; + }, +}); +//# sourceMappingURL=ban-ts-comment.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map new file mode 100644 index 00000000..875e5c3b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ban-ts-comment.js","sourceRoot":"","sources":["../../src/rules/ban-ts-comment.ts"],"names":[],"mappings":";;AAEA,oDAA2D;AAE3D,kCAAkE;AAelE,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAc1C,kBAAe,IAAA,iBAAU,EAAwB;IAC/C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,CAAC,EAAE,wBAAwB,EAAE,EAAE,EAAE,CAAC;aAC3C;SACF;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,gCAAgC,EAC9B,+CAA+C;YACjD,kBAAkB,EAChB,sEAAsE;YACxE,4CAA4C,EAC1C,yFAAyF;YAC3F,qCAAqC,EACnC,6LAA6L;YAC/L,4BAA4B,EAC1B,sHAAsH;SACzH;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE;oBACL,qBAAqB,EAAE;wBACrB,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE,IAAI;6BACd;4BACD;gCACE,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,wBAAwB,CAAC;6BACjC;4BACD;gCACE,IAAI,EAAE,QAAQ;gCACd,oBAAoB,EAAE,KAAK;gCAC3B,UAAU,EAAE;oCACV,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iCACtC;6BACF;yBACF;qBACF;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,wBAA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AAE,GAAG,OAAO,CAAC;wBAC7C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBACrD,IACE,IAAA,sBAAe,EAAC,WAAW,CAAC,IAAI,EAAE,CAAC;4BACnC,IAAA,iBAAU,EACR,wBAAwB,EACxB,6CAA6C,CAC9C,EACD,CAAC;4BACD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,uCAAuC;gCAClD,IAAI,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE;6BAC9C,CAAC,CAAC;wBACL,CAAC;6BAAM,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC/C,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,8CAA8C;gCACzD,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;6BAC3C,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js new file mode 100644 index 00000000..f34d601f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +// tslint regex +// https://github.com/palantir/tslint/blob/95d9d958833fd9dc0002d18cbe34db20d0fbf437/src/enableDisableRules.ts#L32 +const ENABLE_DISABLE_REGEX = /^\s*tslint:(enable|disable)(?:-(line|next-line))?(:|\s|$)/; +const toText = (text, type) => type === utils_1.AST_TOKEN_TYPES.Line + ? ['//', text.trim()].join(' ') + : ['/*', text.trim(), '*/'].join(' '); +exports.default = (0, util_1.createRule)({ + name: 'ban-tslint-comment', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow `// tslint:` comments', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + commentDetected: 'tslint comment detected: "{{ text }}"', + }, + schema: [], + }, + defaultOptions: [], + create: context => { + return { + Program() { + const comments = context.sourceCode.getAllComments(); + comments.forEach(c => { + if (ENABLE_DISABLE_REGEX.test(c.value)) { + context.report({ + node: c, + messageId: 'commentDetected', + data: { text: toText(c.value, c.type) }, + fix(fixer) { + const rangeStart = context.sourceCode.getIndexFromLoc({ + column: c.loc.start.column > 0 ? c.loc.start.column - 1 : 0, + line: c.loc.start.line, + }); + const rangeEnd = context.sourceCode.getIndexFromLoc({ + column: c.loc.end.column, + line: c.loc.end.line, + }); + return fixer.removeRange([rangeStart, rangeEnd + 1]); + }, + }); + } + }); + }, + }; + }, +}); +//# sourceMappingURL=ban-tslint-comment.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map new file mode 100644 index 00000000..93a6360e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ban-tslint-comment.js","sourceRoot":"","sources":["../../src/rules/ban-tslint-comment.ts"],"names":[],"mappings":";;AAAA,oDAA2D;AAE3D,kCAAqC;AAErC,eAAe;AACf,iHAAiH;AACjH,MAAM,oBAAoB,GACxB,2DAA2D,CAAC;AAE9D,MAAM,MAAM,GAAG,CACb,IAAY,EACZ,IAAkD,EAC1C,EAAE,CACV,IAAI,KAAK,uBAAe,CAAC,IAAI;IAC3B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C,GAAG,CAAC,KAAK,CAAC,IAAI;iCACvB,CAAC,CAAC;gCACH,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;oCAClD,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM;oCACxB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;iCACrB,CAAC,CAAC;gCACH,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;4BACvD,CAAC;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js new file mode 100644 index 00000000..56d03461 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js @@ -0,0 +1,161 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const printNodeModifiers = (node, final) => `${node.accessibility ?? ''}${node.static ? ' static' : ''} ${final} `.trimStart(); +const isSupportedLiteral = (node) => { + switch (node.type) { + case utils_1.AST_NODE_TYPES.Literal: + return true; + case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: + return node.quasi.quasis.length === 1; + case utils_1.AST_NODE_TYPES.TemplateLiteral: + return node.quasis.length === 1; + default: + return false; + } +}; +exports.default = (0, util_1.createRule)({ + name: 'class-literal-property-style', + meta: { + type: 'problem', + docs: { + description: 'Enforce that literals on classes are exposed in a consistent style', + recommended: 'stylistic', + }, + hasSuggestions: true, + messages: { + preferFieldStyle: 'Literals should be exposed using readonly fields.', + preferFieldStyleSuggestion: 'Replace the literals with readonly fields.', + preferGetterStyle: 'Literals should be exposed using getters.', + preferGetterStyleSuggestion: 'Replace the literals with getters.', + }, + schema: [ + { + type: 'string', + description: 'Which literal class member syntax to prefer.', + enum: ['fields', 'getters'], + }, + ], + }, + defaultOptions: ['fields'], + create(context, [style]) { + const propertiesInfoStack = []; + function enterClassBody() { + propertiesInfoStack.push({ + excludeSet: new Set(), + properties: [], + }); + } + function exitClassBody() { + const { excludeSet, properties } = (0, util_1.nullThrows)(propertiesInfoStack.pop(), 'Stack should exist on class exit'); + properties.forEach(node => { + const { value } = node; + if (!value || !isSupportedLiteral(value)) { + return; + } + const name = (0, util_1.getStaticMemberAccessValue)(node, context); + if (name && excludeSet.has(name)) { + return; + } + context.report({ + node: node.key, + messageId: 'preferGetterStyle', + suggest: [ + { + messageId: 'preferGetterStyleSuggestion', + fix(fixer) { + const name = context.sourceCode.getText(node.key); + let text = ''; + text += printNodeModifiers(node, 'get'); + text += node.computed ? `[${name}]` : name; + text += `() { return ${context.sourceCode.getText(value)}; }`; + return fixer.replaceText(node, text); + }, + }, + ], + }); + }); + } + function excludeAssignedProperty(node) { + if ((0, util_1.isAssignee)(node)) { + const { excludeSet } = propertiesInfoStack[propertiesInfoStack.length - 1]; + const name = (0, util_1.getStaticMemberAccessValue)(node, context); + if (name) { + excludeSet.add(name); + } + } + } + return { + ...(style === 'fields' && { + MethodDefinition(node) { + if (node.kind !== 'get' || + node.override || + !node.value.body || + node.value.body.body.length === 0) { + return; + } + const [statement] = node.value.body.body; + if (statement.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { + return; + } + const { argument } = statement; + if (!argument || !isSupportedLiteral(argument)) { + return; + } + const name = (0, util_1.getStaticMemberAccessValue)(node, context); + const hasDuplicateKeySetter = name && + node.parent.body.some(element => { + return (element.type === utils_1.AST_NODE_TYPES.MethodDefinition && + element.kind === 'set' && + (0, util_1.isStaticMemberAccessOfValue)(element, context, name)); + }); + if (hasDuplicateKeySetter) { + return; + } + context.report({ + node: node.key, + messageId: 'preferFieldStyle', + suggest: [ + { + messageId: 'preferFieldStyleSuggestion', + fix(fixer) { + const name = context.sourceCode.getText(node.key); + let text = ''; + text += printNodeModifiers(node, 'readonly'); + text += node.computed ? `[${name}]` : name; + text += ` = ${context.sourceCode.getText(argument)};`; + return fixer.replaceText(node, text); + }, + }, + ], + }); + }, + }), + ...(style === 'getters' && { + ClassBody: enterClassBody, + 'ClassBody:exit': exitClassBody, + 'MethodDefinition[kind="constructor"] ThisExpression'(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.MemberExpression) { + let parent = node.parent; + while (!(0, util_1.isFunction)(parent)) { + parent = parent.parent; + } + if (parent.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + parent.parent.kind === 'constructor') { + excludeAssignedProperty(node.parent); + } + } + }, + PropertyDefinition(node) { + if (!node.readonly || node.declare || node.override) { + return; + } + const { properties } = propertiesInfoStack[propertiesInfoStack.length - 1]; + properties.push(node); + }, + }), + }; + }, +}); +//# sourceMappingURL=class-literal-property-style.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map new file mode 100644 index 00000000..b351c138 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map @@ -0,0 +1 @@ +{"version":3,"file":"class-literal-property-style.js","sourceRoot":"","sources":["../../src/rules/class-literal-property-style.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAOiB;AAmBjB,MAAM,kBAAkB,GAAG,CACzB,IAAuB,EACvB,KAAyB,EACjB,EAAE,CACV,GAAG,IAAI,CAAC,aAAa,IAAI,EAAE,GACzB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,IAAI,KAAK,GAA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E,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BACtD,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,aAAa,EACpC,CAAC;4BACD,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBACvC,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,kBAAkB,CAAC,IAAI;oBACrB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACpD,OAAO;oBACT,CAAC;oBACD,MAAM,EAAE,UAAU,EAAE,GAClB,mBAAmB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;oBACtD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js new file mode 100644 index 00000000..74fec111 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js @@ -0,0 +1,207 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'class-methods-use-this', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce that class methods utilize `this`', + extendsBaseRule: true, + requiresTypeChecking: false, + }, + messages: { + missingThis: "Expected 'this' to be used by class {{name}}.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + enforceForClassFields: { + type: 'boolean', + default: true, + description: 'Enforces that functions used as instance field initializers utilize `this`.', + }, + exceptMethods: { + type: 'array', + description: 'Allows specified method names to be ignored with this rule.', + items: { + type: 'string', + }, + }, + ignoreClassesThatImplementAnInterface: { + description: 'Makes the rule ignore class members that are defined within a class that `implements` a type', + oneOf: [ + { + type: 'boolean', + description: 'Ignore all classes that implement an interface', + }, + { + type: 'string', + description: 'Ignore only the public fields of classes that implement an interface', + enum: ['public-fields'], + }, + ], + }, + ignoreOverrideMethods: { + type: 'boolean', + description: 'Ignore members marked with the `override` modifier', + }, + }, + }, + ], + }, + defaultOptions: [ + { + enforceForClassFields: true, + exceptMethods: [], + ignoreClassesThatImplementAnInterface: false, + ignoreOverrideMethods: false, + }, + ], + create(context, [{ enforceForClassFields, exceptMethods: exceptMethodsRaw, ignoreClassesThatImplementAnInterface, ignoreOverrideMethods, },]) { + const exceptMethods = new Set(exceptMethodsRaw); + let stack; + function pushContext(member) { + if (member?.parent.type === utils_1.AST_NODE_TYPES.ClassBody) { + stack = { + class: member.parent.parent, + member, + parent: stack, + usesThis: false, + }; + } + else { + stack = { + class: null, + member: null, + parent: stack, + usesThis: false, + }; + } + } + function enterFunction(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || + node.parent.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { + pushContext(node.parent); + } + else { + pushContext(); + } + } + /** + * Pop `this` used flag from the stack. + */ + function popContext() { + const oldStack = stack; + stack = stack?.parent; + return oldStack; + } + function isPublicField(accessibility) { + if (!accessibility || accessibility === 'public') { + return true; + } + return false; + } + /** + * Check if the node is an instance method not excluded by config + */ + function isIncludedInstanceMethod(node) { + if (node.static || + (node.type === utils_1.AST_NODE_TYPES.MethodDefinition && + node.kind === 'constructor') || + (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && + !enforceForClassFields)) { + return false; + } + if (node.computed || exceptMethods.size === 0) { + return true; + } + const hashIfNeeded = node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier ? '#' : ''; + const name = (0, util_1.getStaticMemberAccessValue)(node, context); + return (typeof name !== 'string' || !exceptMethods.has(hashIfNeeded + name)); + } + /** + * Checks if we are leaving a function that is a method, and reports if 'this' has not been used. + * Static methods and the constructor are exempt. + * Then pops the context off the stack. + */ + function exitFunction(node) { + const stackContext = popContext(); + if (stackContext?.member == null || + stackContext.usesThis || + (ignoreOverrideMethods && stackContext.member.override) || + (ignoreClassesThatImplementAnInterface === true && + stackContext.class.implements.length > 0) || + (ignoreClassesThatImplementAnInterface === 'public-fields' && + stackContext.class.implements.length > 0 && + isPublicField(stackContext.member.accessibility))) { + return; + } + if (isIncludedInstanceMethod(stackContext.member)) { + context.report({ + loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), + node, + messageId: 'missingThis', + data: { + name: (0, util_1.getFunctionNameWithKind)(node), + }, + }); + } + } + return { + // function declarations have their own `this` context + FunctionDeclaration() { + pushContext(); + }, + 'FunctionDeclaration:exit'() { + popContext(); + }, + FunctionExpression(node) { + enterFunction(node); + }, + 'FunctionExpression:exit'(node) { + exitFunction(node); + }, + ...(enforceForClassFields + ? { + 'PropertyDefinition > ArrowFunctionExpression.value'(node) { + enterFunction(node); + }, + 'PropertyDefinition > ArrowFunctionExpression.value:exit'(node) { + exitFunction(node); + }, + } + : {}), + /* + * Class field value are implicit functions. + */ + 'PropertyDefinition:exit'() { + popContext(); + }, + 'PropertyDefinition > *.key:exit'() { + pushContext(); + }, + /* + * Class static blocks are implicit functions. They aren't required to use `this`, + * but we have to push context so that it captures any use of `this` in the static block + * separately from enclosing contexts, because static blocks have their own `this` and it + * shouldn't count as used `this` in enclosing contexts. + */ + StaticBlock() { + pushContext(); + }, + 'StaticBlock:exit'() { + popContext(); + }, + 'ThisExpression, Super'() { + if (stack) { + stack.usesThis = true; + } + }, + }; + }, +}); +//# sourceMappingURL=class-methods-use-this.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map new file mode 100644 index 00000000..a3d35695 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map @@ -0,0 +1 @@ +{"version":3,"file":"class-methods-use-this.js","sourceRoot":"","sources":["../../src/rules/class-methods-use-this.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAKiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,+CAA+C;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;wBACb,WAAW,EACT,6EAA6E;qBAChF;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,6DAA6D;wBAC/D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,qCAAqC,EAAE;wBACrC,WAAW,EACT,8FAA8F;wBAChG,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,SAAS;gCACf,WAAW,EAAE,gDAAgD;6BAC9D;4BACD;gCACE,IAAI,EAAE,QAAQ;gCACd,WAAW,EACT,sEAAsE;gCACxE,IAAI,EAAE,CAAC,eAAe,CAAC;6BACxB;yBACF;qBACF;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,oDAAoD;qBAClE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,qBAAqB,EAAE,IAAI;YAC3B,aAAa,EAAE,EAAE;YACjB,qCAAqC,EAAE,KAAK;YAC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AG,IAAI,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js new file mode 100644 index 00000000..9b55e45e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js @@ -0,0 +1,109 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-generic-constructors', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce specifying generic type arguments on type annotation or constructor name of a constructor call', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + preferConstructor: 'The generic type arguments should be specified as part of the constructor type arguments.', + preferTypeAnnotation: 'The generic type arguments should be specified as part of the type annotation.', + }, + schema: [ + { + type: 'string', + description: 'Which constructor call syntax to prefer.', + enum: ['type-annotation', 'constructor'], + }, + ], + }, + defaultOptions: ['constructor'], + create(context, [mode]) { + return { + 'VariableDeclarator,PropertyDefinition,:matches(FunctionDeclaration,FunctionExpression) > AssignmentPattern'(node) { + function getLHSRHS() { + switch (node.type) { + case utils_1.AST_NODE_TYPES.VariableDeclarator: + return [node.id, node.init]; + case utils_1.AST_NODE_TYPES.PropertyDefinition: + return [node, node.value]; + case utils_1.AST_NODE_TYPES.AssignmentPattern: + return [node.left, node.right]; + default: + throw new Error(`Unhandled node type: ${node.type}`); + } + } + const [lhsName, rhs] = getLHSRHS(); + const lhs = lhsName.typeAnnotation?.typeAnnotation; + if (!rhs || + rhs.type !== utils_1.AST_NODE_TYPES.NewExpression || + rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) { + return; + } + if (lhs && + (lhs.type !== utils_1.AST_NODE_TYPES.TSTypeReference || + lhs.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || + lhs.typeName.name !== rhs.callee.name)) { + return; + } + if (mode === 'type-annotation') { + if (!lhs && rhs.typeArguments) { + const { callee, typeArguments } = rhs; + const typeAnnotation = context.sourceCode.getText(callee) + + context.sourceCode.getText(typeArguments); + context.report({ + node, + messageId: 'preferTypeAnnotation', + fix(fixer) { + function getIDToAttachAnnotation() { + if (node.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { + return lhsName; + } + if (!node.computed) { + return node.key; + } + // If the property's computed, we have to attach the + // annotation after the square bracket, not the enclosed expression + return (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.key), util_1.NullThrowsReasons.MissingToken(']', 'key')); + } + return [ + fixer.remove(typeArguments), + fixer.insertTextAfter(getIDToAttachAnnotation(), `: ${typeAnnotation}`), + ]; + }, + }); + } + return; + } + if (lhs?.typeArguments && !rhs.typeArguments) { + const hasParens = context.sourceCode.getTokenAfter(rhs.callee)?.value === '('; + const extraComments = new Set(context.sourceCode.getCommentsInside(lhs.parent)); + context.sourceCode + .getCommentsInside(lhs.typeArguments) + .forEach(c => extraComments.delete(c)); + context.report({ + node, + messageId: 'preferConstructor', + *fix(fixer) { + yield fixer.remove(lhs.parent); + for (const comment of extraComments) { + yield fixer.insertTextAfter(rhs.callee, context.sourceCode.getText(comment)); + } + yield fixer.insertTextAfter(rhs.callee, context.sourceCode.getText(lhs.typeArguments)); + if (!hasParens) { + yield fixer.insertTextAfter(rhs.callee, '()'); + } + }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=consistent-generic-constructors.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map new file mode 100644 index 00000000..779c0b14 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-generic-constructors.js","sourceRoot":"","sources":["../../src/rules/consistent-generic-constructors.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAoE;AAKpE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,wGAAwG;YAC1G,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,iBAAiB,EACf,2FAA2F;YAC7F,oBAAoB,EAClB,gFAAgF;SACnF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;gBACvD,IAAI,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;aACzC;SACF;KACF;IACD,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,OAAO;YACL,4GAA4G,CAC1G,IAG+B;gBAE/B,SAAS,SAAS;oBAIhB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;wBAClB,KAAK,sBAAc,CAAC,kBAAkB;4BACpC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;wBAC9B,KAAK,sBAAc,CAAC,kBAAkB;4BACpC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;wBAC5B,KAAK,sBAAc,CAAC,iBAAiB;4BACnC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;wBACjC;4BACE,MAAM,IAAI,KAAK,CACb,wBAAyB,IAAyB,CAAC,IAAI,EAAE,CAC1D,CAAC;oBACN,CAAC;gBACH,CAAC;gBACD,MAAM,CAAC,OAAO,EAAE,GAAG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,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAC9C,CAAC;4BACF,IAAI,CAAC,SAAS,EAAE,CAAC;gCACf,MAAM,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;4BAChD,CAAC;wBACH,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js new file mode 100644 index 00000000..02e93402 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-indexed-object-style', + meta: { + type: 'suggestion', + docs: { + description: 'Require or disallow the `Record` type', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + preferIndexSignature: 'An index signature is preferred over a record.', + preferRecord: 'A record is preferred over an index signature.', + }, + schema: [ + { + type: 'string', + description: 'Which indexed object syntax to prefer.', + enum: ['record', 'index-signature'], + }, + ], + }, + defaultOptions: ['record'], + create(context, [mode]) { + function checkMembers(members, node, parentId, prefix, postfix, safeFix = true) { + if (members.length !== 1) { + return; + } + const [member] = members; + if (member.type !== utils_1.AST_NODE_TYPES.TSIndexSignature) { + return; + } + const parameter = member.parameters.at(0); + if (parameter?.type !== utils_1.AST_NODE_TYPES.Identifier) { + return; + } + const keyType = parameter.typeAnnotation; + if (!keyType) { + return; + } + const valueType = member.typeAnnotation; + if (!valueType) { + return; + } + if (parentId) { + const scope = context.sourceCode.getScope(parentId); + const superVar = utils_1.ASTUtils.findVariable(scope, parentId.name); + if (superVar) { + const isCircular = superVar.references.some(item => item.isTypeReference && + node.range[0] <= item.identifier.range[0] && + node.range[1] >= item.identifier.range[1]); + if (isCircular) { + return; + } + } + } + context.report({ + node, + messageId: 'preferRecord', + fix: safeFix + ? (fixer) => { + const key = context.sourceCode.getText(keyType.typeAnnotation); + const value = context.sourceCode.getText(valueType.typeAnnotation); + const record = member.readonly + ? `Readonly>` + : `Record<${key}, ${value}>`; + return fixer.replaceText(node, `${prefix}${record}${postfix}`); + } + : null, + }); + } + return { + ...(mode === 'index-signature' && { + TSTypeReference(node) { + const typeName = node.typeName; + if (typeName.type !== utils_1.AST_NODE_TYPES.Identifier) { + return; + } + if (typeName.name !== 'Record') { + return; + } + const params = node.typeArguments?.params; + if (params?.length !== 2) { + return; + } + context.report({ + node, + messageId: 'preferIndexSignature', + fix(fixer) { + const key = context.sourceCode.getText(params[0]); + const type = context.sourceCode.getText(params[1]); + return fixer.replaceText(node, `{ [key: ${key}]: ${type} }`); + }, + }); + }, + }), + ...(mode === 'record' && { + TSInterfaceDeclaration(node) { + let genericTypes = ''; + if (node.typeParameters?.params.length) { + genericTypes = `<${node.typeParameters.params + .map(p => context.sourceCode.getText(p)) + .join(', ')}>`; + } + checkMembers(node.body.body, node, node.id, `type ${node.id.name}${genericTypes} = `, ';', !node.extends.length); + }, + TSMappedType(node) { + const key = node.key; + const scope = context.sourceCode.getScope(key); + const scopeManagerKey = (0, util_1.nullThrows)(scope.variables.find(value => value.name === key.name && value.isTypeVariable), 'key type parameter must be a defined type variable in its scope'); + // If the key is used to compute the value, we can't convert to a Record. + if (scopeManagerKey.references.some(reference => reference.isTypeReference)) { + return; + } + const constraint = node.constraint; + if (constraint.type === utils_1.AST_NODE_TYPES.TSTypeOperator && + constraint.operator === 'keyof' && + !(0, util_1.isParenthesized)(constraint, context.sourceCode)) { + // This is a weird special case, since modifiers are preserved by + // the mapped type, but not by the Record type. So this type is not, + // in general, equivalent to a Record type. + return; + } + // If the mapped type is circular, we can't convert it to a Record. + const parentId = findParentDeclaration(node)?.id; + if (parentId) { + const scope = context.sourceCode.getScope(key); + const superVar = utils_1.ASTUtils.findVariable(scope, parentId.name); + if (superVar) { + const isCircular = superVar.references.some(item => item.isTypeReference && + node.range[0] <= item.identifier.range[0] && + node.range[1] >= item.identifier.range[1]); + if (isCircular) { + return; + } + } + } + // There's no builtin Mutable type, so we can't autofix it really. + const canFix = node.readonly !== '-'; + context.report({ + node, + messageId: 'preferRecord', + ...(canFix && { + fix: (fixer) => { + const keyType = context.sourceCode.getText(constraint); + const valueType = context.sourceCode.getText(node.typeAnnotation); + let recordText = `Record<${keyType}, ${valueType}>`; + if (node.optional === '+' || node.optional === true) { + recordText = `Partial<${recordText}>`; + } + else if (node.optional === '-') { + recordText = `Required<${recordText}>`; + } + if (node.readonly === '+' || node.readonly === true) { + recordText = `Readonly<${recordText}>`; + } + return fixer.replaceText(node, recordText); + }, + }), + }); + }, + TSTypeLiteral(node) { + const parent = findParentDeclaration(node); + checkMembers(node.members, node, parent?.id, '', ''); + }, + }), + }; + }, +}); +function findParentDeclaration(node) { + if (node.parent && node.parent.type !== utils_1.AST_NODE_TYPES.TSTypeAnnotation) { + if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { + return node.parent; + } + return findParentDeclaration(node.parent); + } + return undefined; +} +//# sourceMappingURL=consistent-indexed-object-style.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map new file mode 100644 index 00000000..d5c90bb0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-indexed-object-style.js","sourceRoot":"","sources":["../../src/rules/consistent-indexed-object-style.ts"],"names":[],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AI,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC;oCACjC,UAAU,GAAG,YAAY,UAAU,GAAG,CAAC;gCACzC,CAAC;gCAED,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;oCACpD,UAAU,GAAG,YAAY,UAAU,GAAG,CAAC;gCACzC,CAAC;gCAED,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;4BAC7C,CAAC;yBACF,CAAC;qBACH,CAAC,CAAC;gBACL,CAAC;gBACD,aAAa,CAAC,IAAI;oBAChB,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;oBAC3C,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBACvD,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAC5B,IAAmB;IAEnB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACxE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB,EAAE,CAAC;YAC/D,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QACD,OAAO,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js new file mode 100644 index 00000000..abb7e5fe --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js @@ -0,0 +1,126 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('consistent-return'); +const defaultOptions = [{ treatUndefinedAsUnspecified: false }]; +exports.default = (0, util_1.createRule)({ + name: 'consistent-return', + meta: { + type: 'suggestion', + defaultOptions, + docs: { + description: 'Require `return` statements to either always or never specify values', + extendsBaseRule: true, + requiresTypeChecking: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions, + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const rules = baseRule.create(context); + const functions = []; + const treatUndefinedAsUnspecified = options?.treatUndefinedAsUnspecified === true; + function enterFunction(node) { + functions.push(node); + } + function exitFunction() { + functions.pop(); + } + function getCurrentFunction() { + return functions[functions.length - 1] ?? null; + } + function isPromiseVoid(node, type) { + if (tsutils.isThenableType(checker, node, type) && + tsutils.isTypeReference(type)) { + const awaitedType = type.typeArguments?.[0]; + if (awaitedType) { + if ((0, util_1.isTypeFlagSet)(awaitedType, ts.TypeFlags.Void)) { + return true; + } + return isPromiseVoid(node, awaitedType); + } + } + return false; + } + function isReturnVoidOrThenableVoid(node) { + const functionType = services.getTypeAtLocation(node); + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const callSignatures = functionType.getCallSignatures(); + return callSignatures.some(signature => { + const returnType = signature.getReturnType(); + if (node.async) { + return isPromiseVoid(tsNode, returnType); + } + return (0, util_1.isTypeFlagSet)(returnType, ts.TypeFlags.Void); + }); + } + return { + ...rules, + ArrowFunctionExpression: enterFunction, + 'ArrowFunctionExpression:exit'(node) { + exitFunction(); + rules['ArrowFunctionExpression:exit'](node); + }, + FunctionDeclaration: enterFunction, + 'FunctionDeclaration:exit'(node) { + exitFunction(); + rules['FunctionDeclaration:exit'](node); + }, + FunctionExpression: enterFunction, + 'FunctionExpression:exit'(node) { + exitFunction(); + rules['FunctionExpression:exit'](node); + }, + ReturnStatement(node) { + const functionNode = getCurrentFunction(); + if (!node.argument && + functionNode && + isReturnVoidOrThenableVoid(functionNode)) { + return; + } + if (treatUndefinedAsUnspecified && node.argument) { + const returnValueType = services.getTypeAtLocation(node.argument); + if (returnValueType.flags === ts.TypeFlags.Undefined) { + rules.ReturnStatement({ + ...node, + argument: null, + }); + return; + } + } + rules.ReturnStatement(node); + }, + }; + }, +}); +//# sourceMappingURL=consistent-return.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map new file mode 100644 index 00000000..80501fe4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-return.js","sourceRoot":"","sources":["../../src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AC;gBACf,KAAK,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC;YACD,mBAAmB,EAAE,aAAa;YAClC,0BAA0B,CAAC,IAAI;gBAC7B,YAAY,EAAE,CAAC;gBACf,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC;YACD,kBAAkB,EAAE,aAAa;YACjC,yBAAyB,CAAC,IAAI;gBAC5B,YAAY,EAAE,CAAC;gBACf,KAAK,CAAC,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC;YACzC,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;gBAC1C,IACE,CAAC,IAAI,CAAC,QAAQ;oBACd,YAAY;oBACZ,0BAA0B,CAAC,YAAY,CAAC,EACxC,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,2BAA2B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAClE,IAAI,eAAe,CAAC,KAAK,KAAK,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;wBACrD,KAAK,CAAC,eAAe,CAAC;4BACpB,GAAG,IAAI;4BACP,QAAQ,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;gBAED,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js new file mode 100644 index 00000000..a24ec128 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js @@ -0,0 +1,212 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getWrappedCode_1 = require("../util/getWrappedCode"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-type-assertions', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce consistent usage of type assertions', + recommended: 'stylistic', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + 'angle-bracket': "Use '<{{cast}}>' instead of 'as {{cast}}'.", + as: "Use 'as {{cast}}' instead of '<{{cast}}>'.", + never: 'Do not use any type assertions.', + replaceObjectTypeAssertionWithAnnotation: 'Use const x: {{cast}} = { ... } instead.', + replaceObjectTypeAssertionWithSatisfies: 'Use const x = { ... } satisfies {{cast}} instead.', + unexpectedObjectTypeAssertion: 'Always prefer const x: T = { ... }.', + }, + schema: [ + { + oneOf: [ + { + type: 'object', + additionalProperties: false, + properties: { + assertionStyle: { + type: 'string', + description: 'The expected assertion style to enforce.', + enum: ['never'], + }, + }, + required: ['assertionStyle'], + }, + { + type: 'object', + additionalProperties: false, + properties: { + assertionStyle: { + type: 'string', + description: 'The expected assertion style to enforce.', + enum: ['as', 'angle-bracket'], + }, + objectLiteralTypeAssertions: { + type: 'string', + description: 'Whether to always prefer type declarations for object literals used as variable initializers, rather than type assertions.', + enum: ['allow', 'allow-as-parameter', 'never'], + }, + }, + required: ['assertionStyle'], + }, + ], + }, + ], + }, + defaultOptions: [ + { + assertionStyle: 'as', + objectLiteralTypeAssertions: 'allow', + }, + ], + create(context, [options]) { + function isConst(node) { + if (node.type !== utils_1.AST_NODE_TYPES.TSTypeReference) { + return false; + } + return (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + node.typeName.name === 'const'); + } + function reportIncorrectAssertionType(node) { + const messageId = options.assertionStyle; + // If this node is `as const`, then don't report an error. + if (isConst(node.typeAnnotation) && messageId === 'never') { + return; + } + context.report({ + node, + messageId, + data: messageId !== 'never' + ? { cast: context.sourceCode.getText(node.typeAnnotation) } + : {}, + fix: messageId === 'as' + ? (fixer) => { + // lazily access parserServices to avoid crashing on non TS files (#9860) + const tsNode = (0, util_1.getParserServices)(context, true).esTreeNodeToTSNodeMap.get(node); + const expressionCode = context.sourceCode.getText(node.expression); + const typeAnnotationCode = context.sourceCode.getText(node.typeAnnotation); + const asPrecedence = (0, util_1.getOperatorPrecedence)(ts.SyntaxKind.AsExpression, ts.SyntaxKind.Unknown); + const parentPrecedence = (0, util_1.getOperatorPrecedence)(tsNode.parent.kind, ts.isBinaryExpression(tsNode.parent) + ? tsNode.parent.operatorToken.kind + : ts.SyntaxKind.Unknown, ts.isNewExpression(tsNode.parent) + ? tsNode.parent.arguments != null && + tsNode.parent.arguments.length > 0 + : undefined); + const expressionPrecedence = (0, util_1.getOperatorPrecedenceForNode)(node.expression); + const expressionCodeWrapped = (0, getWrappedCode_1.getWrappedCode)(expressionCode, expressionPrecedence, asPrecedence); + const text = `${expressionCodeWrapped} as ${typeAnnotationCode}`; + return fixer.replaceText(node, (0, util_1.isParenthesized)(node, context.sourceCode) + ? text + : (0, getWrappedCode_1.getWrappedCode)(text, asPrecedence, parentPrecedence)); + } + : undefined, + }); + } + function checkType(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSAnyKeyword: + case utils_1.AST_NODE_TYPES.TSUnknownKeyword: + return false; + case utils_1.AST_NODE_TYPES.TSTypeReference: + return ( + // Ignore `as const` and `` + !isConst(node) || + // Allow qualified names which have dots between identifiers, `Foo.Bar` + node.typeName.type === utils_1.AST_NODE_TYPES.TSQualifiedName); + default: + return true; + } + } + function checkExpression(node) { + if (options.assertionStyle === 'never' || + options.objectLiteralTypeAssertions === 'allow' || + node.expression.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { + return; + } + if (options.objectLiteralTypeAssertions === 'allow-as-parameter' && + (node.parent.type === utils_1.AST_NODE_TYPES.NewExpression || + node.parent.type === utils_1.AST_NODE_TYPES.CallExpression || + node.parent.type === utils_1.AST_NODE_TYPES.ThrowStatement || + node.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern || + node.parent.type === utils_1.AST_NODE_TYPES.JSXExpressionContainer || + (node.parent.type === utils_1.AST_NODE_TYPES.TemplateLiteral && + node.parent.parent.type === + utils_1.AST_NODE_TYPES.TaggedTemplateExpression))) { + return; + } + if (checkType(node.typeAnnotation)) { + const suggest = []; + if (node.parent.type === utils_1.AST_NODE_TYPES.VariableDeclarator && + !node.parent.id.typeAnnotation) { + const { parent } = node; + suggest.push({ + messageId: 'replaceObjectTypeAssertionWithAnnotation', + data: { cast: context.sourceCode.getText(node.typeAnnotation) }, + fix: fixer => [ + fixer.insertTextAfter(parent.id, `: ${context.sourceCode.getText(node.typeAnnotation)}`), + fixer.replaceText(node, (0, util_1.getTextWithParentheses)(context.sourceCode, node.expression)), + ], + }); + } + suggest.push({ + messageId: 'replaceObjectTypeAssertionWithSatisfies', + data: { cast: context.sourceCode.getText(node.typeAnnotation) }, + fix: fixer => [ + fixer.replaceText(node, (0, util_1.getTextWithParentheses)(context.sourceCode, node.expression)), + fixer.insertTextAfter(node, ` satisfies ${context.sourceCode.getText(node.typeAnnotation)}`), + ], + }); + context.report({ + node, + messageId: 'unexpectedObjectTypeAssertion', + suggest, + }); + } + } + return { + TSAsExpression(node) { + if (options.assertionStyle !== 'as') { + reportIncorrectAssertionType(node); + return; + } + checkExpression(node); + }, + TSTypeAssertion(node) { + if (options.assertionStyle !== 'angle-bracket') { + reportIncorrectAssertionType(node); + return; + } + checkExpression(node); + }, + }; + }, +}); +//# sourceMappingURL=consistent-type-assertions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map new file mode 100644 index 00000000..2fd9390c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,2DAAwD;AAoBxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EAAE,4CAA4C;YAC7D,EAAE,EAAE,4CAA4C;YAChD,KAAK,EAAE,iCAAiC;YACxC,wCAAwC,EACtC,0CAA0C;YAC5C,uCAAuC,EACrC,mDAAmD;YACrD,6BAA6B,EAAE,qCAAqC;SACrE;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;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C,UAAU,CAAC,CAC5D;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;gBACD,OAAO,CAAC,IAAI,CAAC;oBACX,SAAS,EAAE,yCAAyC;oBACpD,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;oBAC/D,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;wBACZ,KAAK,CAAC,WAAW,CACf,IAAI,EACJ,IAAA,6BAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAC5D;wBACD,KAAK,CAAC,eAAe,CACnB,IAAI,EACJ,cAAc,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAChE;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,+BAA+B;oBAC1C,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;oBACpC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,IAAI,OAAO,CAAC,cAAc,KAAK,eAAe,EAAE,CAAC;oBAC/C,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js new file mode 100644 index 00000000..7e70451f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js @@ -0,0 +1,101 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-type-definitions', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce type definitions to consistently use either `interface` or `type`', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + interfaceOverType: 'Use an `interface` instead of a `type`.', + typeOverInterface: 'Use a `type` instead of an `interface`.', + }, + schema: [ + { + type: 'string', + description: 'Which type definition syntax to prefer.', + enum: ['interface', 'type'], + }, + ], + }, + defaultOptions: ['interface'], + create(context, [option]) { + /** + * Iterates from the highest parent to the currently traversed node + * to determine whether any node in tree is globally declared module declaration + */ + function isCurrentlyTraversedNodeWithinModuleDeclaration(node) { + return context.sourceCode + .getAncestors(node) + .some(node => node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && + node.declare && + node.kind === 'global'); + } + return { + ...(option === 'interface' && { + "TSTypeAliasDeclaration[typeAnnotation.type='TSTypeLiteral']"(node) { + context.report({ + node: node.id, + messageId: 'interfaceOverType', + fix(fixer) { + const typeToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.id, token => token.value === 'type'), util_1.NullThrowsReasons.MissingToken('type keyword', 'type alias')); + const equalsToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.typeAnnotation, token => token.value === '='), util_1.NullThrowsReasons.MissingToken('=', 'type alias')); + const beforeEqualsToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(equalsToken, { + includeComments: true, + }), util_1.NullThrowsReasons.MissingToken('before =', 'type alias')); + return [ + // replace 'type' with 'interface'. + fixer.replaceText(typeToken, 'interface'), + // delete from the = to the { of the type, and put a space to be pretty. + fixer.replaceTextRange([beforeEqualsToken.range[1], node.typeAnnotation.range[0]], ' '), + // remove from the closing } through the end of the statement. + fixer.removeRange([ + node.typeAnnotation.range[1], + node.range[1], + ]), + ]; + }, + }); + }, + }), + ...(option === 'type' && { + TSInterfaceDeclaration(node) { + const fix = isCurrentlyTraversedNodeWithinModuleDeclaration(node) + ? null + : (fixer) => { + const typeNode = node.typeParameters ?? node.id; + const fixes = []; + const firstToken = context.sourceCode.getTokenBefore(node.id); + if (firstToken) { + fixes.push(fixer.replaceText(firstToken, 'type')); + fixes.push(fixer.replaceTextRange([typeNode.range[1], node.body.range[0]], ' = ')); + } + node.extends.forEach(heritage => { + const typeIdentifier = context.sourceCode.getText(heritage); + fixes.push(fixer.insertTextAfter(node.body, ` & ${typeIdentifier}`)); + }); + if (node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { + fixes.push(fixer.removeRange([node.parent.range[0], node.range[0]]), fixer.insertTextAfter(node.body, `\nexport default ${node.id.name}`)); + } + return fixes; + }; + context.report({ + node: node.id, + messageId: 'typeOverInterface', + /** + * remove automatically fix when the interface is within a declare global + * @see {@link https://github.com/typescript-eslint/typescript-eslint/issues/2707} + */ + fix, + }); + }, + }), + }; + }, +}); +//# sourceMappingURL=consistent-type-definitions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map new file mode 100644 index 00000000..8c946b33 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-type-definitions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-definitions.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAoE;AAEpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,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/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js new file mode 100644 index 00000000..c62ba207 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js @@ -0,0 +1,326 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-type-exports', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce consistent usage of type exports', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + multipleExportsAreTypes: 'Type exports {{exportNames}} are not values and should be exported using `export type`.', + singleExportIsType: 'Type export {{exportNames}} is not a value and should be exported using `export type`.', + typeOverValue: 'All exports in the declaration are only used as types. Use `export type`.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + fixMixedExportsWithInlineTypeSpecifier: { + type: 'boolean', + description: 'Whether the rule will autofix "mixed" export cases using TS inline type specifiers.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + fixMixedExportsWithInlineTypeSpecifier: false, + }, + ], + create(context, [{ fixMixedExportsWithInlineTypeSpecifier }]) { + const sourceExportsMap = {}; + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + /** + * Helper for identifying if a symbol resolves to a + * JavaScript value or a TypeScript type. + * + * @returns True/false if is a type or not, or undefined if the specifier + * can't be resolved. + */ + function isSymbolTypeBased(symbol) { + if (!symbol) { + return undefined; + } + const aliasedSymbol = tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) + ? checker.getAliasedSymbol(symbol) + : symbol; + if (checker.isUnknownSymbol(aliasedSymbol)) { + return undefined; + } + return !(aliasedSymbol.flags & ts.SymbolFlags.Value); + } + return { + ExportAllDeclaration(node) { + if (node.exportKind === 'type') { + return; + } + const sourceModule = ts.resolveModuleName(node.source.value, context.filename, services.program.getCompilerOptions(), ts.sys); + if (sourceModule.resolvedModule == null) { + return; + } + const sourceFile = services.program.getSourceFile(sourceModule.resolvedModule.resolvedFileName); + if (sourceFile == null) { + return; + } + const sourceFileSymbol = checker.getSymbolAtLocation(sourceFile); + if (sourceFileSymbol == null) { + return; + } + const sourceFileType = checker.getTypeOfSymbol(sourceFileSymbol); + // Module can explicitly export types or values, and it's not difficult + // to distinguish one from the other, since we can get the flags of + // the exported symbols or check if symbol export declaration has + // the "type" keyword in it. + // + // Things get a lot more complicated when we're dealing with + // export * from './module-with-type-only-exports' + // export type * from './module-with-type-and-value-exports' + // + // TS checker has an internal function getExportsOfModuleWorker that + // recursively visits all module exports, including "export *". It then + // puts type-only-star-exported symbols into the typeOnlyExportStarMap + // property of sourceFile's SymbolLinks. Since symbol links aren't + // exposed outside the checker, we cannot access it directly. + // + // Therefore, to filter out value properties, we use the following hack: + // checker.getPropertiesOfType returns all exports that were originally + // values, but checker.getPropertyOfType returns undefined for + // properties that are mentioned in the typeOnlyExportStarMap. + const isThereAnyExportedValue = checker + .getPropertiesOfType(sourceFileType) + .some(propertyTypeSymbol => checker.getPropertyOfType(sourceFileType, propertyTypeSymbol.escapedName.toString()) != null); + if (isThereAnyExportedValue) { + return; + } + context.report({ + node, + messageId: 'typeOverValue', + fix(fixer) { + const asteriskToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === '*'), util_1.NullThrowsReasons.MissingToken('asterisk', 'export all declaration')); + return fixer.insertTextBefore(asteriskToken, 'type '); + }, + }); + }, + ExportNamedDeclaration(node) { + // Coerce the source into a string for use as a lookup entry. + const source = getSourceFromExport(node) ?? 'undefined'; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + const sourceExports = (sourceExportsMap[source] ||= { + reportValueExports: [], + source, + typeOnlyNamedExport: null, + valueOnlyNamedExport: null, + }); + // Cache the first encountered exports for the package. We will need to come + // back to these later when fixing the problems. + if (node.exportKind === 'type') { + if (sourceExports.typeOnlyNamedExport == null) { + // The export is a type export + sourceExports.typeOnlyNamedExport = node; + } + } + else if (sourceExports.valueOnlyNamedExport == null) { + // The export is a value export + sourceExports.valueOnlyNamedExport = node; + } + // Next for the current export, we will separate type/value specifiers. + const typeBasedSpecifiers = []; + const inlineTypeSpecifiers = []; + const valueSpecifiers = []; + // Note: it is valid to export values as types. We will avoid reporting errors + // when this is encountered. + if (node.exportKind !== 'type') { + for (const specifier of node.specifiers) { + if (specifier.exportKind === 'type') { + inlineTypeSpecifiers.push(specifier); + continue; + } + const isTypeBased = isSymbolTypeBased(services.getSymbolAtLocation(specifier.exported)); + if (isTypeBased === true) { + typeBasedSpecifiers.push(specifier); + } + else if (isTypeBased === false) { + // When isTypeBased is undefined, we should avoid reporting them. + valueSpecifiers.push(specifier); + } + } + } + if ((node.exportKind === 'value' && typeBasedSpecifiers.length) || + (node.exportKind === 'type' && valueSpecifiers.length)) { + sourceExports.reportValueExports.push({ + node, + inlineTypeSpecifiers, + typeBasedSpecifiers, + valueSpecifiers, + }); + } + }, + 'Program:exit'() { + for (const sourceExports of Object.values(sourceExportsMap)) { + // If this export has no issues, move on. + if (sourceExports.reportValueExports.length === 0) { + continue; + } + for (const report of sourceExports.reportValueExports) { + if (report.valueSpecifiers.length === 0) { + // Export is all type-only with no type specifiers; convert the entire export to `export type`. + context.report({ + node: report.node, + messageId: 'typeOverValue', + *fix(fixer) { + yield* fixExportInsertType(fixer, context.sourceCode, report.node); + }, + }); + continue; + } + // We have both type and value violations. + const allExportNames = report.typeBasedSpecifiers.map(specifier => specifier.local.type === utils_1.AST_NODE_TYPES.Identifier + ? specifier.local.name + : specifier.local.value); + if (allExportNames.length === 1) { + const exportNames = allExportNames[0]; + context.report({ + node: report.node, + messageId: 'singleExportIsType', + data: { exportNames }, + *fix(fixer) { + if (fixMixedExportsWithInlineTypeSpecifier) { + yield* fixAddTypeSpecifierToNamedExports(fixer, report); + } + else { + yield* fixSeparateNamedExports(fixer, context.sourceCode, report); + } + }, + }); + } + else { + const exportNames = (0, util_1.formatWordList)(allExportNames); + context.report({ + node: report.node, + messageId: 'multipleExportsAreTypes', + data: { exportNames }, + *fix(fixer) { + if (fixMixedExportsWithInlineTypeSpecifier) { + yield* fixAddTypeSpecifierToNamedExports(fixer, report); + } + else { + yield* fixSeparateNamedExports(fixer, context.sourceCode, report); + } + }, + }); + } + } + } + }, + }; + }, +}); +/** + * Inserts "type" into an export. + * + * Example: + * + * export type { Foo } from 'foo'; + * ^^^^ + */ +function* fixExportInsertType(fixer, sourceCode, node) { + const exportToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('export', node.type)); + yield fixer.insertTextAfter(exportToken, ' type'); + for (const specifier of node.specifiers) { + if (specifier.exportKind === 'type') { + const kindToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(specifier), util_1.NullThrowsReasons.MissingToken('export', specifier.type)); + const firstTokenAfter = (0, util_1.nullThrows)(sourceCode.getTokenAfter(kindToken, { + includeComments: true, + }), 'Missing token following the export kind.'); + yield fixer.removeRange([kindToken.range[0], firstTokenAfter.range[0]]); + } + } +} +/** + * Separates the exports which mismatch the kind of export the given + * node represents. For example, a type export's named specifiers which + * represent values will be inserted in a separate `export` statement. + */ +function* fixSeparateNamedExports(fixer, sourceCode, report) { + const { node, inlineTypeSpecifiers, typeBasedSpecifiers, valueSpecifiers } = report; + const typeSpecifiers = [...typeBasedSpecifiers, ...inlineTypeSpecifiers]; + const source = getSourceFromExport(node); + const specifierNames = typeSpecifiers.map(getSpecifierText).join(', '); + const exportToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('export', node.type)); + // Filter the bad exports from the current line. + const filteredSpecifierNames = valueSpecifiers + .map(getSpecifierText) + .join(', '); + const openToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node, util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', node.type)); + const closeToken = (0, util_1.nullThrows)(sourceCode.getLastToken(node, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); + // Remove exports from the current line which we're going to re-insert. + yield fixer.replaceTextRange([openToken.range[1], closeToken.range[0]], ` ${filteredSpecifierNames} `); + // Insert the bad exports into a new export line above. + yield fixer.insertTextBefore(exportToken, `export type { ${specifierNames} }${source ? ` from '${source}'` : ''};\n`); +} +function* fixAddTypeSpecifierToNamedExports(fixer, report) { + if (report.node.exportKind === 'type') { + return; + } + for (const specifier of report.typeBasedSpecifiers) { + yield fixer.insertTextBefore(specifier, 'type '); + } +} +/** + * Returns the source of the export, or undefined if the named export has no source. + */ +function getSourceFromExport(node) { + if (node.source?.type === utils_1.AST_NODE_TYPES.Literal && + typeof node.source.value === 'string') { + return node.source.value; + } + return undefined; +} +/** + * Returns the specifier text for the export. If it is aliased, we take care to return + * the proper formatting. + */ +function getSpecifierText(specifier) { + const exportedName = specifier.exported.type === utils_1.AST_NODE_TYPES.Literal + ? specifier.exported.raw + : specifier.exported.name; + const localName = specifier.local.type === utils_1.AST_NODE_TYPES.Literal + ? specifier.local.raw + : specifier.local.name; + return `${localName}${exportedName !== localName ? ` as ${exportedName}` : ''}`; +} +//# sourceMappingURL=consistent-type-exports.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map new file mode 100644 index 00000000..c25f1434 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-type-exports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AA2BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EACrB,yFAAyF;YAC3F,kBAAkB,EAChB,wFAAwF;YAC1F,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,sCAAsC,EAAE;wBACtC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qFAAqF;qBACxF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,sCAAsC,EAAE,KAAK;SAC9C;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,sCAAsC,EAAE,CAAC;QA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CAC3E,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,CAAC,iCAAiC,CACzC,KAAyB,EACzB,MAAyB;IAEzB,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;QACtC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACnD,MAAM,KAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAC1B,IAAqC;IAErC,IACE,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,EACrC,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CAAC,SAAmC;IAC3D,MAAM,YAAY,GAChB,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAChD,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG;QACxB,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC9B,MAAM,SAAS,GACb,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC7C,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG;QACrB,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;IAE3B,OAAO,GAAG,SAAS,GACjB,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC,EACvD,EAAE,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js new file mode 100644 index 00000000..358a590d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js @@ -0,0 +1,609 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'consistent-type-imports', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce consistent usage of type imports', + }, + fixable: 'code', + messages: { + avoidImportType: 'Use an `import` instead of an `import type`.', + noImportTypeAnnotations: '`import()` type annotations are forbidden.', + someImportsAreOnlyTypes: 'Imports {{typeImports}} are only used as type.', + typeOverValue: 'All imports in the declaration are only used as types. Use `import type`.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + disallowTypeAnnotations: { + type: 'boolean', + description: 'Whether to disallow type imports in type annotations (`import()`).', + }, + fixStyle: { + type: 'string', + description: 'The expected type modifier to be added when an import is detected as used only in the type position.', + enum: ['separate-type-imports', 'inline-type-imports'], + }, + prefer: { + type: 'string', + description: 'The expected import kind for type-only imports.', + enum: ['type-imports', 'no-type-imports'], + }, + }, + }, + ], + }, + defaultOptions: [ + { + disallowTypeAnnotations: true, + fixStyle: 'separate-type-imports', + prefer: 'type-imports', + }, + ], + create(context, [option]) { + const prefer = option.prefer ?? 'type-imports'; + const disallowTypeAnnotations = option.disallowTypeAnnotations !== false; + const selectors = {}; + if (disallowTypeAnnotations) { + selectors.TSImportType = (node) => { + context.report({ + node, + messageId: 'noImportTypeAnnotations', + }); + }; + } + if (prefer === 'no-type-imports') { + return { + ...selectors, + 'ImportDeclaration[importKind = "type"]'(node) { + context.report({ + node, + messageId: 'avoidImportType', + fix(fixer) { + return fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); + }, + }); + }, + 'ImportSpecifier[importKind = "type"]'(node) { + context.report({ + node, + messageId: 'avoidImportType', + fix(fixer) { + return fixRemoveTypeSpecifierFromImportSpecifier(fixer, node); + }, + }); + }, + }; + } + // prefer type imports + const fixStyle = option.fixStyle ?? 'separate-type-imports'; + let hasDecoratorMetadata = false; + const sourceImportsMap = {}; + const emitDecoratorMetadata = (0, util_1.getParserServices)(context, true).emitDecoratorMetadata ?? false; + const experimentalDecorators = (0, util_1.getParserServices)(context, true).experimentalDecorators ?? false; + if (experimentalDecorators && emitDecoratorMetadata) { + selectors.Decorator = () => { + hasDecoratorMetadata = true; + }; + } + return { + ...selectors, + ImportDeclaration(node) { + const source = node.source.value; + // sourceImports is the object containing all the specifics for a particular import source, type or value + sourceImportsMap[source] ??= { + reportValueImports: [], // if there is a mismatch where type importKind but value specifiers + source, + typeOnlyNamedImport: null, // if only type imports + valueImport: null, // if only value imports + valueOnlyNamedImport: null, // if only value imports with named specifiers + }; + const sourceImports = sourceImportsMap[source]; + if (node.importKind === 'type') { + if (!sourceImports.typeOnlyNamedImport && + node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { + // definitely import type { TypeX } + sourceImports.typeOnlyNamedImport = node; + } + } + else if (!sourceImports.valueOnlyNamedImport && + node.specifiers.length && + node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { + sourceImports.valueOnlyNamedImport = node; + sourceImports.valueImport = node; + } + else if (!sourceImports.valueImport && + node.specifiers.some(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier)) { + sourceImports.valueImport = node; + } + const typeSpecifiers = []; + const inlineTypeSpecifiers = []; + const valueSpecifiers = []; + const unusedSpecifiers = []; + for (const specifier of node.specifiers) { + if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && + specifier.importKind === 'type') { + inlineTypeSpecifiers.push(specifier); + continue; + } + const [variable] = context.sourceCode.getDeclaredVariables(specifier); + if (variable.references.length === 0) { + unusedSpecifiers.push(specifier); + } + else { + const onlyHasTypeReferences = variable.references.every(ref => { + /** + * keep origin import kind when export + * export { Type } + * export default Type; + * export = Type; + */ + if ((ref.identifier.parent.type === + utils_1.AST_NODE_TYPES.ExportSpecifier || + ref.identifier.parent.type === + utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || + ref.identifier.parent.type === + utils_1.AST_NODE_TYPES.TSExportAssignment) && + ref.isValueReference && + ref.isTypeReference) { + return node.importKind === 'type'; + } + if (ref.isValueReference) { + let parent = ref.identifier.parent; + let child = ref.identifier; + while (parent) { + switch (parent.type) { + // CASE 1: + // `type T = typeof foo` will create a value reference because "foo" must be a value type + // however this value reference is safe to use with type-only imports + case utils_1.AST_NODE_TYPES.TSTypeQuery: + return true; + case utils_1.AST_NODE_TYPES.TSQualifiedName: + // TSTypeQuery must have a TSESTree.EntityName as its child, so we can filter here and break early + if (parent.left !== child) { + return false; + } + child = parent; + parent = parent.parent; + continue; + // END CASE 1 + ////////////// + // CASE 2: + // `type T = { [foo]: string }` will create a value reference because "foo" must be a value type + // however this value reference is safe to use with type-only imports. + // Also this is represented as a non-type AST - hence it uses MemberExpression + case utils_1.AST_NODE_TYPES.TSPropertySignature: + return parent.key === child; + case utils_1.AST_NODE_TYPES.MemberExpression: + if (parent.object !== child) { + return false; + } + child = parent; + parent = parent.parent; + continue; + // END CASE 2 + default: + return false; + } + } + } + return ref.isTypeReference; + }); + if (onlyHasTypeReferences) { + typeSpecifiers.push(specifier); + } + else { + valueSpecifiers.push(specifier); + } + } + } + if (node.importKind === 'value' && typeSpecifiers.length) { + sourceImports.reportValueImports.push({ + node, + inlineTypeSpecifiers, + typeSpecifiers, + unusedSpecifiers, + valueSpecifiers, + }); + } + }, + 'Program:exit'() { + if (hasDecoratorMetadata) { + // Experimental decorator metadata is bowl of poop that cannot be + // supported based on pure syntactic analysis. + // + // So we can do one of two things: + // 1) add type-information to the rule in a breaking change and + // prevent users from using it so that we can fully support this + // case. + // 2) make the rule ignore all imports that are used in a file that + // might have decorator metadata. + // + // (1) is has huge impact and prevents the rule from being used by 99% + // of users Frankly - it's a straight-up bad option. So instead we + // choose with option (2) and just avoid reporting on any imports in a + // file with both emitDecoratorMetadata AND decorators + // + // For more context see the discussion in this issue and its linked + // issues: + // https://github.com/typescript-eslint/typescript-eslint/issues/5468 + // + // + // NOTE - in TS 5.0 `experimentalDecorators` became the legacy option, + // replaced with un-flagged, stable decorators and thus the type-aware + // emitDecoratorMetadata implementation also became legacy. in TS 5.2 + // support for the new, stable decorator metadata proposal was added - + // however this proposal does not include type information + // + // + // PHEW. So TL;DR what does all this mean? + // - if you use experimentalDecorators:true, + // emitDecoratorMetadata:true, and have a decorator in the file - + // the rule will do nothing in the file out of an abundance of + // caution. + // - else the rule will work as normal. + return; + } + for (const sourceImports of Object.values(sourceImportsMap)) { + if (sourceImports.reportValueImports.length === 0) { + // nothing to fix. value specifiers and type specifiers are correctly written + continue; + } + for (const report of sourceImports.reportValueImports) { + if (report.valueSpecifiers.length === 0 && + report.unusedSpecifiers.length === 0 && + report.node.importKind !== 'type') { + /** + * checks if import has type assertions + * @example + * ```ts + * import * as type from 'mod' assert \{ type: 'json' \}; + * ``` + * https://github.com/typescript-eslint/typescript-eslint/issues/7527 + */ + if (report.node.attributes.length === 0) { + context.report({ + node: report.node, + messageId: 'typeOverValue', + *fix(fixer) { + yield* fixToTypeImportDeclaration(fixer, report, sourceImports); + }, + }); + } + } + else { + // we have a mixed type/value import or just value imports, so we need to split them out into multiple imports if separate-type-imports is configured + const importNames = report.typeSpecifiers.map(specifier => `"${specifier.local.name}"`); + const message = (() => { + const typeImports = (0, util_1.formatWordList)(importNames); + if (importNames.length === 1) { + return { + messageId: 'someImportsAreOnlyTypes', + data: { + typeImports, + }, + }; + } + return { + messageId: 'someImportsAreOnlyTypes', + data: { + typeImports, + }, + }; + })(); + context.report({ + node: report.node, + ...message, + *fix(fixer) { + // take all the typeSpecifiers and put them on a new line + yield* fixToTypeImportDeclaration(fixer, report, sourceImports); + }, + }); + } + } + } + }, + }; + function classifySpecifier(node) { + const defaultSpecifier = node.specifiers[0].type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier + ? node.specifiers[0] + : null; + const namespaceSpecifier = node.specifiers.find((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier) ?? null; + const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier); + return { + defaultSpecifier, + namedSpecifiers, + namespaceSpecifier, + }; + } + /** + * Returns information for fixing named specifiers, type or value + */ + function getFixesNamedSpecifiers(fixer, node, subsetNamedSpecifiers, allNamedSpecifiers) { + if (allNamedSpecifiers.length === 0) { + return { + removeTypeNamedSpecifiers: [], + typeNamedSpecifiersText: '', + }; + } + const typeNamedSpecifiersTexts = []; + const removeTypeNamedSpecifiers = []; + if (subsetNamedSpecifiers.length === allNamedSpecifiers.length) { + // import Foo, {Type1, Type2} from 'foo' + // import DefType, {Type1, Type2} from 'foo' + const openingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(subsetNamedSpecifiers[0], util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', node.type)); + const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(openingBraceToken, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); + const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); + // import DefType, {...} from 'foo' + // ^^^^^^^ remove + removeTypeNamedSpecifiers.push(fixer.removeRange([commaToken.range[0], closingBraceToken.range[1]])); + typeNamedSpecifiersTexts.push(context.sourceCode.text.slice(openingBraceToken.range[1], closingBraceToken.range[0])); + } + else { + const namedSpecifierGroups = []; + let group = []; + for (const namedSpecifier of allNamedSpecifiers) { + if (subsetNamedSpecifiers.includes(namedSpecifier)) { + group.push(namedSpecifier); + } + else if (group.length) { + namedSpecifierGroups.push(group); + group = []; + } + } + if (group.length) { + namedSpecifierGroups.push(group); + } + for (const namedSpecifiers of namedSpecifierGroups) { + const { removeRange, textRange } = getNamedSpecifierRanges(namedSpecifiers, allNamedSpecifiers); + removeTypeNamedSpecifiers.push(fixer.removeRange(removeRange)); + typeNamedSpecifiersTexts.push(context.sourceCode.text.slice(...textRange)); + } + } + return { + removeTypeNamedSpecifiers, + typeNamedSpecifiersText: typeNamedSpecifiersTexts.join(','), + }; + } + /** + * Returns ranges for fixing named specifier. + */ + function getNamedSpecifierRanges(namedSpecifierGroup, allNamedSpecifiers) { + const first = namedSpecifierGroup[0]; + const last = namedSpecifierGroup[namedSpecifierGroup.length - 1]; + const removeRange = [first.range[0], last.range[1]]; + const textRange = [...removeRange]; + const before = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(first), util_1.NullThrowsReasons.MissingToken('token', 'first specifier')); + textRange[0] = before.range[1]; + if ((0, util_1.isCommaToken)(before)) { + removeRange[0] = before.range[0]; + } + else { + removeRange[0] = before.range[1]; + } + const isFirst = allNamedSpecifiers[0] === first; + const isLast = allNamedSpecifiers[allNamedSpecifiers.length - 1] === last; + const after = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(last), util_1.NullThrowsReasons.MissingToken('token', 'last specifier')); + textRange[1] = after.range[0]; + if ((isFirst || isLast) && (0, util_1.isCommaToken)(after)) { + removeRange[1] = after.range[1]; + } + return { + removeRange, + textRange, + }; + } + /** + * insert specifiers to named import node. + * e.g. + * import type { Already, Type1, Type2 } from 'foo' + * ^^^^^^^^^^^^^ insert + */ + function fixInsertNamedSpecifiersInNamedSpecifierList(fixer, target, insertText) { + const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween((0, util_1.nullThrows)(context.sourceCode.getFirstToken(target), util_1.NullThrowsReasons.MissingToken('token before', 'import')), target.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', target.type)); + const before = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(closingBraceToken), util_1.NullThrowsReasons.MissingToken('token before', 'closing brace')); + if (!(0, util_1.isCommaToken)(before) && !(0, util_1.isOpeningBraceToken)(before)) { + insertText = `,${insertText}`; + } + return fixer.insertTextBefore(closingBraceToken, insertText); + } + /** + * insert type keyword to named import node. + * e.g. + * import ADefault, { Already, type Type1, type Type2 } from 'foo' + * ^^^^ insert + */ + function* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeSpecifiers) { + for (const spec of typeSpecifiers) { + const insertText = context.sourceCode.text.slice(...spec.range); + yield fixer.replaceTextRange(spec.range, `type ${insertText}`); + } + } + function* fixInlineTypeImportDeclaration(fixer, report, sourceImports) { + const { node } = report; + // For a value import, will only add an inline type to named specifiers + const { namedSpecifiers } = classifySpecifier(node); + const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); + if (sourceImports.valueImport) { + // add import named type specifiers to its value import + // import ValueA, { type A } + // ^^^^ insert + const { namedSpecifiers: valueImportNamedSpecifiers } = classifySpecifier(sourceImports.valueImport); + if (sourceImports.valueOnlyNamedImport || + valueImportNamedSpecifiers.length) { + yield* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeNamedSpecifiers); + } + } + } + function* fixToTypeImportDeclaration(fixer, report, sourceImports) { + const { node } = report; + const { defaultSpecifier, namedSpecifiers, namespaceSpecifier } = classifySpecifier(node); + if (namespaceSpecifier && !defaultSpecifier) { + // import * as types from 'foo' + // checks for presence of import assertions + if (node.attributes.length === 0) { + yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); + } + return; + } + else if (defaultSpecifier) { + if (report.typeSpecifiers.includes(defaultSpecifier) && + namedSpecifiers.length === 0 && + !namespaceSpecifier) { + // import Type from 'foo' + yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, true); + return; + } + else if (fixStyle === 'inline-type-imports' && + !report.typeSpecifiers.includes(defaultSpecifier) && + namedSpecifiers.length > 0 && + !namespaceSpecifier) { + // if there is a default specifier but it isn't a type specifier, then just add the inline type modifier to the named specifiers + // import AValue, {BValue, Type1, Type2} from 'foo' + yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); + return; + } + } + else if (!namespaceSpecifier) { + if (fixStyle === 'inline-type-imports' && + namedSpecifiers.some(specifier => report.typeSpecifiers.includes(specifier))) { + // import {AValue, Type1, Type2} from 'foo' + yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); + return; + } + else if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) { + // import {Type1, Type2} from 'foo' + yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); + return; + } + } + const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); + const fixesNamedSpecifiers = getFixesNamedSpecifiers(fixer, node, typeNamedSpecifiers, namedSpecifiers); + const afterFixes = []; + if (typeNamedSpecifiers.length) { + if (sourceImports.typeOnlyNamedImport) { + const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.typeOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText); + if (sourceImports.typeOnlyNamedImport.range[1] <= node.range[0]) { + yield insertTypeNamedSpecifiers; + } + else { + afterFixes.push(insertTypeNamedSpecifiers); + } + } + else { + // The import is both default and named. Insert named on new line because can't mix default type import and named type imports + // eslint-disable-next-line no-lonely-if + if (fixStyle === 'inline-type-imports') { + yield fixer.insertTextBefore(node, `import {${typeNamedSpecifiers + .map(spec => { + const insertText = context.sourceCode.text.slice(...spec.range); + return `type ${insertText}`; + }) + .join(', ')}} from ${context.sourceCode.getText(node.source)};\n`); + } + else { + yield fixer.insertTextBefore(node, `import type {${fixesNamedSpecifiers.typeNamedSpecifiersText}} from ${context.sourceCode.getText(node.source)};\n`); + } + } + } + const fixesRemoveTypeNamespaceSpecifier = []; + if (namespaceSpecifier && + report.typeSpecifiers.includes(namespaceSpecifier)) { + // import Foo, * as Type from 'foo' + // import DefType, * as Type from 'foo' + // import DefType, * as Type from 'foo' + const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(namespaceSpecifier, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); + // import Def, * as Ns from 'foo' + // ^^^^^^^^^ remove + fixesRemoveTypeNamespaceSpecifier.push(fixer.removeRange([commaToken.range[0], namespaceSpecifier.range[1]])); + // import type * as Ns from 'foo' + // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ insert + yield fixer.insertTextBefore(node, `import type ${context.sourceCode.getText(namespaceSpecifier)} from ${context.sourceCode.getText(node.source)};\n`); + } + if (defaultSpecifier && + report.typeSpecifiers.includes(defaultSpecifier)) { + if (report.typeSpecifiers.length === node.specifiers.length) { + const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); + // import type Type from 'foo' + // ^^^^ insert + yield fixer.insertTextAfter(importToken, ' type'); + } + else { + const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(defaultSpecifier, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', defaultSpecifier.type)); + // import Type , {...} from 'foo' + // ^^^^^ pick + const defaultText = context.sourceCode.text + .slice(defaultSpecifier.range[0], commaToken.range[0]) + .trim(); + yield fixer.insertTextBefore(node, `import type ${defaultText} from ${context.sourceCode.getText(node.source)};\n`); + const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(commaToken, { + includeComments: true, + }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); + // import Type , {...} from 'foo' + // ^^^^^^^ remove + yield fixer.removeRange([ + defaultSpecifier.range[0], + afterToken.range[0], + ]); + } + } + yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers; + yield* fixesRemoveTypeNamespaceSpecifier; + yield* afterFixes; + } + function* fixInsertTypeSpecifierForImportDeclaration(fixer, node, isDefaultImport) { + // import type Foo from 'foo' + // ^^^^^ insert + const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); + yield fixer.insertTextAfter(importToken, ' type'); + if (isDefaultImport) { + // Has default import + const openingBraceToken = context.sourceCode.getFirstTokenBetween(importToken, node.source, util_1.isOpeningBraceToken); + if (openingBraceToken) { + // Only braces. e.g. import Foo, {} from 'foo' + const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(openingBraceToken, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); + const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); + // import type Foo, {} from 'foo' + // ^^ remove + yield fixer.removeRange([ + commaToken.range[0], + closingBraceToken.range[1], + ]); + const specifiersText = context.sourceCode.text.slice(commaToken.range[1], closingBraceToken.range[1]); + if (node.specifiers.length > 1) { + yield fixer.insertTextAfter(node, `\nimport type${specifiersText} from ${context.sourceCode.getText(node.source)};`); + } + } + } + // make sure we don't do anything like `import type {type T} from 'foo';` + for (const specifier of node.specifiers) { + if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && + specifier.importKind === 'type') { + yield* fixRemoveTypeSpecifierFromImportSpecifier(fixer, specifier); + } + } + } + function* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node) { + // import type Foo from 'foo' + // ^^^^ remove + const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); + const typeToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(importToken, node.specifiers[0]?.local ?? node.source, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type', node.type)); + const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(typeToken, { includeComments: true }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); + yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); + } + function* fixRemoveTypeSpecifierFromImportSpecifier(fixer, node) { + // import { type Foo } from 'foo' + // ^^^^ remove + const typeToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type', node.type)); + const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(typeToken, { includeComments: true }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); + yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); + } + }, +}); +//# sourceMappingURL=consistent-type-imports.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map new file mode 100644 index 00000000..568bdcce --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAE1D,kCAWiB;AAoCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,eAAe,EAAE,8CAA8C;YAC/D,uBAAuB,EAAE,4CAA4C;YACrE,uBAAuB,EAAE,gDAAgD;YACzE,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,oEAAoE;qBACvE;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT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CAAC,EAAE,KAAK,IAAI,IAAI,CAAC,MAAM,EACxC,oBAAa,CACd,EACD,wBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;YACF,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EACtE,wBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,QAAQ,CAAC,CAAC,yCAAyC,CACjD,KAAyB,EACzB,IAA8B;YAE9B,iCAAiC;YACjC,uBAAuB;YACvB,MAAM,SAAS,GAAG,IAAA,iBAAU,EAC1B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,oBAAa,CAAC,EACrD,wBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;YACF,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EACtE,wBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js new file mode 100644 index 00000000..fedfd99a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'default-param-last', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce default parameters to be last', + extendsBaseRule: true, + }, + messages: { + shouldBeLast: 'Default parameters should be last.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + /** + * checks if node is optional parameter + * @param node the node to be evaluated + * @private + */ + function isOptionalParam(node) { + return ((node.type === utils_1.AST_NODE_TYPES.ArrayPattern || + node.type === utils_1.AST_NODE_TYPES.AssignmentPattern || + node.type === utils_1.AST_NODE_TYPES.Identifier || + node.type === utils_1.AST_NODE_TYPES.ObjectPattern || + node.type === utils_1.AST_NODE_TYPES.RestElement) && + node.optional); + } + /** + * checks if node is plain parameter + * @param node the node to be evaluated + * @private + */ + function isPlainParam(node) { + return !(node.type === utils_1.AST_NODE_TYPES.AssignmentPattern || + node.type === utils_1.AST_NODE_TYPES.RestElement || + isOptionalParam(node)); + } + function checkDefaultParamLast(node) { + let hasSeenPlainParam = false; + for (let i = node.params.length - 1; i >= 0; i--) { + const current = node.params[i]; + const param = current.type === utils_1.AST_NODE_TYPES.TSParameterProperty + ? current.parameter + : current; + if (isPlainParam(param)) { + hasSeenPlainParam = true; + continue; + } + if (hasSeenPlainParam && + (isOptionalParam(param) || + param.type === utils_1.AST_NODE_TYPES.AssignmentPattern)) { + context.report({ node: current, messageId: 'shouldBeLast' }); + } + } + } + return { + ArrowFunctionExpression: checkDefaultParamLast, + FunctionDeclaration: checkDefaultParamLast, + FunctionExpression: checkDefaultParamLast, + }; + }, +}); +//# sourceMappingURL=default-param-last.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map new file mode 100644 index 00000000..66e1ab8a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map @@ -0,0 +1 @@ +{"version":3,"file":"default-param-last.js","sourceRoot":"","sources":["../../src/rules/default-param-last.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,oCAAoC;SACnD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;;WAIG;QACH,SAAS,eAAe,CAAC,IAAwB;YAC/C,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY;gBACxC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACvC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa;gBAC1C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,CAAC;gBAC3C,IAAI,CAAC,QAAQ,CACd,CAAC;QACJ,CAAC;QAED;;;;WAIG;QACH,SAAS,YAAY,CAAC,IAAwB;YAC5C,OAAO,CAAC,CACN,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW;gBACxC,eAAe,CAAC,IAAI,CAAC,CACtB,CAAC;QACJ,CAAC;QAED,SAAS,qBAAqB,CAC5B,IAG+B;YAE/B,IAAI,iBAAiB,GAAG,KAAK,CAAC;YAC9B,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBACjD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBAC/B,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACjD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,OAAO,CAAC;gBAEd,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;oBACxB,iBAAiB,GAAG,IAAI,CAAC;oBACzB,SAAS;gBACX,CAAC;gBAED,IACE,iBAAiB;oBACjB,CAAC,eAAe,CAAC,KAAK,CAAC;wBACrB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAClD,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;gBAC/D,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,qBAAqB;YAC9C,mBAAmB,EAAE,qBAAqB;YAC1C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js new file mode 100644 index 00000000..57361dbd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js @@ -0,0 +1,134 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('dot-notation'); +const defaultOptions = [ + { + allowIndexSignaturePropertyAccess: false, + allowKeywords: true, + allowPattern: '', + allowPrivateClassPropertyAccess: false, + allowProtectedClassPropertyAccess: false, + }, +]; +exports.default = (0, util_1.createRule)({ + name: 'dot-notation', + meta: { + type: 'suggestion', + defaultOptions, + docs: { + description: 'Enforce dot notation whenever possible', + extendsBaseRule: true, + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: baseRule.meta.fixable, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowIndexSignaturePropertyAccess: { + type: 'boolean', + default: false, + description: 'Whether to allow accessing properties matching an index signature with array notation.', + }, + allowKeywords: { + type: 'boolean', + default: true, + description: 'Whether to allow keywords such as ["class"]`.', + }, + allowPattern: { + type: 'string', + default: '', + description: 'Regular expression of names to allow.', + }, + allowPrivateClassPropertyAccess: { + type: 'boolean', + default: false, + description: 'Whether to allow accessing class members marked as `private` with array notation.', + }, + allowProtectedClassPropertyAccess: { + type: 'boolean', + default: false, + description: 'Whether to allow accessing class members marked as `protected` with array notation.', + }, + }, + }, + ], + }, + defaultOptions, + create(context, [options]) { + const rules = baseRule.create(context); + const services = (0, util_1.getParserServices)(context); + const allowPrivateClassPropertyAccess = options.allowPrivateClassPropertyAccess; + const allowProtectedClassPropertyAccess = options.allowProtectedClassPropertyAccess; + const allowIndexSignaturePropertyAccess = (options.allowIndexSignaturePropertyAccess ?? false) || + tsutils.isCompilerOptionEnabled(services.program.getCompilerOptions(), 'noPropertyAccessFromIndexSignature'); + return { + MemberExpression(node) { + if ((allowPrivateClassPropertyAccess || + allowProtectedClassPropertyAccess || + allowIndexSignaturePropertyAccess) && + node.computed) { + // for perf reasons - only fetch symbols if we have to + const propertySymbol = services.getSymbolAtLocation(node.property) ?? + services + .getTypeAtLocation(node.object) + .getNonNullableType() + .getProperties() + .find(propertySymbol => node.property.type === utils_1.AST_NODE_TYPES.Literal && + propertySymbol.escapedName === node.property.value); + const modifierKind = (0, util_1.getModifiers)(propertySymbol?.getDeclarations()?.[0])?.[0].kind; + if ((allowPrivateClassPropertyAccess && + modifierKind === ts.SyntaxKind.PrivateKeyword) || + (allowProtectedClassPropertyAccess && + modifierKind === ts.SyntaxKind.ProtectedKeyword)) { + return; + } + if (propertySymbol === undefined && + allowIndexSignaturePropertyAccess) { + const objectType = services.getTypeAtLocation(node.object); + const indexType = objectType + .getNonNullableType() + .getStringIndexType(); + if (indexType !== undefined) { + return; + } + } + } + rules.MemberExpression(node); + }, + }; + }, +}); +//# sourceMappingURL=dot-notation.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map new file mode 100644 index 00000000..34b066e3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAOjC,kCAAsE;AACtE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,MAAM,cAAc,GAAY;IAC9B;QACE,iCAAiC,EAAE,KAAK;QACxC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,EAAE;QAChB,+BAA+B,EAAE,KAAK;QACtC,iCAAiC,EAAE,KAAK;KACzC;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,wCAAwC;YACrD,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO;QAC9B,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,iCAAiC,EAAE;wBACjC,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACT,wFAAwF;qBAC3F;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;wBACb,WAAW,EAAE,+CAA+C;qBAC7D;oBACD,YAAY,EAAE;wBACZ,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,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CACrD,CAAC;oBACN,MAAM,YAAY,GAAG,IAAA,mBAAY,EAC/B,cAAc,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CACvC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBACZ,IACE,CAAC,+BAA+B;wBAC9B,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;wBAChD,CAAC,iCAAiC;4BAChC,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAClD,CAAC;wBACD,OAAO;oBACT,CAAC;oBACD,IACE,cAAc,KAAK,SAAS;wBAC5B,iCAAiC,EACjC,CAAC;wBACD,MAAM,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBAC3D,MAAM,SAAS,GAAG,UAAU;6BACzB,kBAAkB,EAAE;6BACpB,kBAAkB,EAAE,CAAC;wBACxB,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;4BAC5B,OAAO;wBACT,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js new file mode 100644 index 00000000..632b09de --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js @@ -0,0 +1,112 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getEnumLiterals = getEnumLiterals; +exports.getEnumTypes = getEnumTypes; +exports.getEnumKeyForLiteral = getEnumKeyForLiteral; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../../util"); +/* + * If passed an enum member, returns the type of the parent. Otherwise, + * returns itself. + * + * For example: + * - `Fruit` --> `Fruit` + * - `Fruit.Apple` --> `Fruit` + */ +function getBaseEnumType(typeChecker, type) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const symbol = type.getSymbol(); + if (!tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.EnumMember)) { + return type; + } + return typeChecker.getTypeAtLocation(symbol.valueDeclaration.parent); +} +/** + * Retrieve only the Enum literals from a type. for example: + * - 123 --> [] + * - {} --> [] + * - Fruit.Apple --> [Fruit.Apple] + * - Fruit.Apple | Vegetable.Lettuce --> [Fruit.Apple, Vegetable.Lettuce] + * - Fruit.Apple | Vegetable.Lettuce | 123 --> [Fruit.Apple, Vegetable.Lettuce] + * - T extends Fruit --> [Fruit] + */ +function getEnumLiterals(type) { + return tsutils + .unionTypeParts(type) + .filter((subType) => (0, util_1.isTypeFlagSet)(subType, ts.TypeFlags.EnumLiteral)); +} +/** + * A type can have 0 or more enum types. For example: + * - 123 --> [] + * - {} --> [] + * - Fruit.Apple --> [Fruit] + * - Fruit.Apple | Vegetable.Lettuce --> [Fruit, Vegetable] + * - Fruit.Apple | Vegetable.Lettuce | 123 --> [Fruit, Vegetable] + * - T extends Fruit --> [Fruit] + */ +function getEnumTypes(typeChecker, type) { + return getEnumLiterals(type).map(type => getBaseEnumType(typeChecker, type)); +} +/** + * Returns the enum key that matches the given literal node, or null if none + * match. For example: + * ```ts + * enum Fruit { + * Apple = 'apple', + * Banana = 'banana', + * } + * + * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'apple') --> 'Fruit.Apple' + * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'banana') --> 'Fruit.Banana' + * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'cherry') --> null + * ``` + */ +function getEnumKeyForLiteral(enumLiterals, literal) { + for (const enumLiteral of enumLiterals) { + if (enumLiteral.value === literal) { + const { symbol } = enumLiteral; + const memberDeclaration = symbol.valueDeclaration; + const enumDeclaration = memberDeclaration.parent; + const memberNameIdentifier = memberDeclaration.name; + const enumName = enumDeclaration.name.text; + switch (memberNameIdentifier.kind) { + case ts.SyntaxKind.Identifier: + return `${enumName}.${memberNameIdentifier.text}`; + case ts.SyntaxKind.StringLiteral: { + const memberName = memberNameIdentifier.text.replaceAll("'", "\\'"); + return `${enumName}['${memberName}']`; + } + case ts.SyntaxKind.ComputedPropertyName: + return `${enumName}[${memberNameIdentifier.expression.getText()}]`; + default: + break; + } + } + } + return null; +} +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map new file mode 100644 index 00000000..726984cc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/enum-utils/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AM,eAAe,GAAG,iBAAiB,CAAC,MAAM,CAAC;YAEjD,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,IAAI,CAAC;YACpD,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;YAE3C,QAAQ,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBAClC,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;oBAC3B,OAAO,GAAG,QAAQ,IAAI,oBAAoB,CAAC,IAAI,EAAE,CAAC;gBAEpD,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;oBACjC,MAAM,UAAU,GAAG,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;oBAEpE,OAAO,GAAG,QAAQ,KAAK,UAAU,IAAI,CAAC;gBACxC,CAAC;gBAED,KAAK,EAAE,CAAC,UAAU,CAAC,oBAAoB;oBACrC,OAAO,GAAG,QAAQ,IAAI,oBAAoB,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;gBAErE;oBACE,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js new file mode 100644 index 00000000..43e6ac28 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js @@ -0,0 +1,180 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); +exports.default = (0, util_1.createRule)({ + name: 'explicit-function-return-type', + meta: { + type: 'problem', + docs: { + description: 'Require explicit return types on functions and class methods', + }, + messages: { + missingReturnType: 'Missing return type on function.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowConciseArrowFunctionExpressionsStartingWithVoid: { + type: 'boolean', + description: 'Whether to allow arrow functions that start with the `void` keyword.', + }, + allowDirectConstAssertionInArrowFunctions: { + type: 'boolean', + description: 'Whether to ignore arrow functions immediately returning a `as const` value.', + }, + allowedNames: { + type: 'array', + description: 'An array of function/method names that will not have their arguments or return values checked.', + items: { + type: 'string', + }, + }, + allowExpressions: { + type: 'boolean', + description: 'Whether to ignore function expressions (functions which are not part of a declaration).', + }, + allowFunctionsWithoutTypeParameters: { + type: 'boolean', + description: "Whether to ignore functions that don't have generic type parameters.", + }, + allowHigherOrderFunctions: { + type: 'boolean', + description: 'Whether to ignore functions immediately returning another function expression.', + }, + allowIIFEs: { + type: 'boolean', + description: 'Whether to ignore immediately invoked function expressions (IIFEs).', + }, + allowTypedFunctionExpressions: { + type: 'boolean', + description: 'Whether to ignore type annotations on the variable of function expressions.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowConciseArrowFunctionExpressionsStartingWithVoid: false, + allowDirectConstAssertionInArrowFunctions: true, + allowedNames: [], + allowExpressions: false, + allowFunctionsWithoutTypeParameters: false, + allowHigherOrderFunctions: true, + allowIIFEs: false, + allowTypedFunctionExpressions: true, + }, + ], + create(context, [options]) { + const functionInfoStack = []; + function enterFunction(node) { + functionInfoStack.push({ + node, + returns: [], + }); + } + function popFunctionInfo(exitNodeType) { + return (0, util_1.nullThrows)(functionInfoStack.pop(), `Stack should exist on ${exitNodeType} exit`); + } + function isAllowedFunction(node) { + if (options.allowFunctionsWithoutTypeParameters && !node.typeParameters) { + return true; + } + if (options.allowIIFEs && isIIFE(node)) { + return true; + } + if (!options.allowedNames?.length) { + return false; + } + if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + node.type === utils_1.AST_NODE_TYPES.FunctionExpression) { + const parent = node.parent; + let funcName; + if (node.id?.name) { + funcName = node.id.name; + } + else { + switch (parent.type) { + case utils_1.AST_NODE_TYPES.VariableDeclarator: { + if (parent.id.type === utils_1.AST_NODE_TYPES.Identifier) { + funcName = parent.id.name; + } + break; + } + case utils_1.AST_NODE_TYPES.MethodDefinition: + case utils_1.AST_NODE_TYPES.PropertyDefinition: + case utils_1.AST_NODE_TYPES.Property: { + if (parent.key.type === utils_1.AST_NODE_TYPES.Identifier && + !parent.computed) { + funcName = parent.key.name; + } + break; + } + } + } + if (!!funcName && !!options.allowedNames.includes(funcName)) { + return true; + } + } + if (node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration && + node.id && + !!options.allowedNames.includes(node.id.name)) { + return true; + } + return false; + } + function isIIFE(node) { + return node.parent.type === utils_1.AST_NODE_TYPES.CallExpression; + } + function exitFunctionExpression(node) { + const info = popFunctionInfo('function expression'); + if (options.allowConciseArrowFunctionExpressionsStartingWithVoid && + node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + node.expression && + node.body.type === utils_1.AST_NODE_TYPES.UnaryExpression && + node.body.operator === 'void') { + return; + } + if (isAllowedFunction(node)) { + return; + } + if (options.allowTypedFunctionExpressions && + ((0, explicitReturnTypeUtils_1.isValidFunctionExpressionReturnType)(node, options) || + (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node))) { + return; + } + (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(info, options, context.sourceCode, loc => context.report({ + loc, + node, + messageId: 'missingReturnType', + })); + } + return { + 'ArrowFunctionExpression, FunctionExpression, FunctionDeclaration': enterFunction, + 'ArrowFunctionExpression:exit': exitFunctionExpression, + 'FunctionDeclaration:exit'(node) { + const info = popFunctionInfo('function declaration'); + if (isAllowedFunction(node)) { + return; + } + if (options.allowTypedFunctionExpressions && node.returnType) { + return; + } + (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(info, options, context.sourceCode, loc => context.report({ + loc, + node, + messageId: 'missingReturnType', + })); + }, + 'FunctionExpression:exit': exitFunctionExpression, + ReturnStatement(node) { + functionInfoStack.at(-1)?.returns.push(node); + }, + }; + }, +}); +//# sourceMappingURL=explicit-function-return-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map new file mode 100644 index 00000000..c5be9db8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAI1D,kCAAiD;AACjD,6EAIyC;AAqBzC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;SACjE;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oDAAoD,EAAE;wBACpD,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sEAAsE;qBACzE;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,6EAA6E;qBAChF;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,gGAAgG;wBAClG,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yFAAyF;qBAC5F;oBACD,mCAAmC,EAAE;wBACnC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sEAAsE;qBACzE;oBACD,yBAAyB,EAAE;wBACzB,IAA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BACT,CAAC;gBACD,IAAI,OAAO,CAAC,6BAA6B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBAC7D,OAAO;gBACT,CAAC;gBAED,IAAA,iDAAuB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,CAC/D,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG;oBACH,IAAI;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;YACD,yBAAyB,EAAE,sBAAsB;YACjD,eAAe,CAAC,IAAI;gBAClB,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js new file mode 100644 index 00000000..7fbbf163 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js @@ -0,0 +1,293 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getMemberHeadLoc_1 = require("../util/getMemberHeadLoc"); +const rangeToLoc_1 = require("../util/rangeToLoc"); +exports.default = (0, util_1.createRule)({ + name: 'explicit-member-accessibility', + meta: { + type: 'problem', + docs: { + description: 'Require explicit accessibility modifiers on class properties and methods', + // too opinionated to be recommended + }, + fixable: 'code', + hasSuggestions: true, + messages: { + addExplicitAccessibility: "Add '{{ type }}' accessibility modifier", + missingAccessibility: 'Missing accessibility modifier on {{type}} {{name}}.', + unwantedPublicAccessibility: 'Public accessibility modifier on {{type}} {{name}}.', + }, + schema: [ + { + type: 'object', + $defs: { + accessibilityLevel: { + oneOf: [ + { + type: 'string', + description: 'Always require an accessor.', + enum: ['explicit'], + }, + { + type: 'string', + description: 'Require an accessor except when public.', + enum: ['no-public'], + }, + { + type: 'string', + description: 'Never check whether there is an accessor.', + enum: ['off'], + }, + ], + }, + }, + additionalProperties: false, + properties: { + accessibility: { + $ref: '#/items/0/$defs/accessibilityLevel', + description: 'Which accessibility modifier is required to exist or not exist.', + }, + ignoredMethodNames: { + type: 'array', + description: 'Specific method names that may be ignored.', + items: { + type: 'string', + }, + }, + overrides: { + type: 'object', + additionalProperties: false, + description: 'Changes to required accessibility modifiers for specific kinds of class members.', + properties: { + accessors: { $ref: '#/items/0/$defs/accessibilityLevel' }, + constructors: { $ref: '#/items/0/$defs/accessibilityLevel' }, + methods: { $ref: '#/items/0/$defs/accessibilityLevel' }, + parameterProperties: { + $ref: '#/items/0/$defs/accessibilityLevel', + }, + properties: { $ref: '#/items/0/$defs/accessibilityLevel' }, + }, + }, + }, + }, + ], + }, + defaultOptions: [{ accessibility: 'explicit' }], + create(context, [option]) { + const baseCheck = option.accessibility ?? 'explicit'; + const overrides = option.overrides ?? {}; + const ctorCheck = overrides.constructors ?? baseCheck; + const accessorCheck = overrides.accessors ?? baseCheck; + const methodCheck = overrides.methods ?? baseCheck; + const propCheck = overrides.properties ?? baseCheck; + const paramPropCheck = overrides.parameterProperties ?? baseCheck; + const ignoredMethodNames = new Set(option.ignoredMethodNames ?? []); + /** + * Checks if a method declaration has an accessibility modifier. + * @param methodDefinition The node representing a MethodDefinition. + */ + function checkMethodAccessibilityModifier(methodDefinition) { + if (methodDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + return; + } + let nodeType = 'method definition'; + let check = baseCheck; + switch (methodDefinition.kind) { + case 'method': + check = methodCheck; + break; + case 'constructor': + check = ctorCheck; + break; + case 'get': + case 'set': + check = accessorCheck; + nodeType = `${methodDefinition.kind} property accessor`; + break; + } + const { name: methodName } = (0, util_1.getNameFromMember)(methodDefinition, context.sourceCode); + if (check === 'off' || ignoredMethodNames.has(methodName)) { + return; + } + if (check === 'no-public' && + methodDefinition.accessibility === 'public') { + const publicKeyword = findPublicKeyword(methodDefinition); + context.report({ + loc: (0, rangeToLoc_1.rangeToLoc)(context.sourceCode, publicKeyword.range), + messageId: 'unwantedPublicAccessibility', + data: { + name: methodName, + type: nodeType, + }, + fix: fixer => fixer.removeRange(publicKeyword.rangeToRemove), + }); + } + else if (check === 'explicit' && !methodDefinition.accessibility) { + context.report({ + loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, methodDefinition), + messageId: 'missingAccessibility', + data: { + name: methodName, + type: nodeType, + }, + suggest: getMissingAccessibilitySuggestions(methodDefinition), + }); + } + } + /** + * Returns an object containing a range that corresponds to the "public" + * keyword for a node, and the range that would need to be removed to + * remove the "public" keyword (including associated whitespace). + */ + function findPublicKeyword(node) { + const tokens = context.sourceCode.getTokens(node); + let rangeToRemove; + let keywordRange; + for (let i = 0; i < tokens.length; i++) { + const token = tokens[i]; + if (token.type === utils_1.AST_TOKEN_TYPES.Keyword && + token.value === 'public') { + keywordRange = structuredClone(token.range); + const commensAfterPublicKeyword = context.sourceCode.getCommentsAfter(token); + if (commensAfterPublicKeyword.length) { + // public /* Hi there! */ static foo() + // ^^^^^^^ + rangeToRemove = [ + token.range[0], + commensAfterPublicKeyword[0].range[0], + ]; + break; + } + else { + // public static foo() + // ^^^^^^^ + rangeToRemove = [token.range[0], tokens[i + 1].range[0]]; + break; + } + } + } + return { range: keywordRange, rangeToRemove }; + } + /** + * Creates a fixer that adds an accessibility modifier keyword + */ + function getMissingAccessibilitySuggestions(node) { + function fix(accessibility, fixer) { + if (node.decorators.length) { + const lastDecorator = node.decorators[node.decorators.length - 1]; + const nextToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(lastDecorator), util_1.NullThrowsReasons.MissingToken('token', 'last decorator')); + return fixer.insertTextBefore(nextToken, `${accessibility} `); + } + return fixer.insertTextBefore(node, `${accessibility} `); + } + return [ + { + messageId: 'addExplicitAccessibility', + data: { type: 'public' }, + fix: fixer => fix('public', fixer), + }, + { + messageId: 'addExplicitAccessibility', + data: { type: 'private' }, + fix: fixer => fix('private', fixer), + }, + { + messageId: 'addExplicitAccessibility', + data: { type: 'protected' }, + fix: fixer => fix('protected', fixer), + }, + ]; + } + /** + * Checks if property has an accessibility modifier. + * @param propertyDefinition The node representing a PropertyDefinition. + */ + function checkPropertyAccessibilityModifier(propertyDefinition) { + if (propertyDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + return; + } + const nodeType = 'class property'; + const { name: propertyName } = (0, util_1.getNameFromMember)(propertyDefinition, context.sourceCode); + if (propCheck === 'no-public' && + propertyDefinition.accessibility === 'public') { + const publicKeywordRange = findPublicKeyword(propertyDefinition); + context.report({ + loc: (0, rangeToLoc_1.rangeToLoc)(context.sourceCode, publicKeywordRange.range), + messageId: 'unwantedPublicAccessibility', + data: { + name: propertyName, + type: nodeType, + }, + fix: fixer => fixer.removeRange(publicKeywordRange.rangeToRemove), + }); + } + else if (propCheck === 'explicit' && + !propertyDefinition.accessibility) { + context.report({ + loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, propertyDefinition), + messageId: 'missingAccessibility', + data: { + name: propertyName, + type: nodeType, + }, + suggest: getMissingAccessibilitySuggestions(propertyDefinition), + }); + } + } + /** + * Checks that the parameter property has the desired accessibility modifiers set. + * @param node The node representing a Parameter Property + */ + function checkParameterPropertyAccessibilityModifier(node) { + const nodeType = 'parameter property'; + // HAS to be an identifier or assignment or TSC will throw + if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && + node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { + return; + } + const nodeName = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier + ? node.parameter.name + : // has to be an Identifier or TSC will throw an error + node.parameter.left.name; + switch (paramPropCheck) { + case 'explicit': { + if (!node.accessibility) { + context.report({ + loc: (0, getMemberHeadLoc_1.getParameterPropertyHeadLoc)(context.sourceCode, node, nodeName), + messageId: 'missingAccessibility', + data: { + name: nodeName, + type: nodeType, + }, + suggest: getMissingAccessibilitySuggestions(node), + }); + } + break; + } + case 'no-public': { + if (node.accessibility === 'public' && node.readonly) { + const publicKeyword = findPublicKeyword(node); + context.report({ + loc: (0, rangeToLoc_1.rangeToLoc)(context.sourceCode, publicKeyword.range), + messageId: 'unwantedPublicAccessibility', + data: { + name: nodeName, + type: nodeType, + }, + fix: fixer => fixer.removeRange(publicKeyword.rangeToRemove), + }); + } + break; + } + } + } + return { + 'MethodDefinition, TSAbstractMethodDefinition': checkMethodAccessibilityModifier, + 'PropertyDefinition, TSAbstractPropertyDefinition': checkPropertyAccessibilityModifier, + TSParameterProperty: checkParameterPropertyAccessibilityModifier, + }; + }, +}); +//# sourceMappingURL=explicit-member-accessibility.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map new file mode 100644 index 00000000..86ae8365 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map @@ -0,0 +1 @@ +{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;AAEA,oDAA2E;AAE3E,kCAKiB;AACjB,+DAGkC;AAClC,mDAAgD;AA0BhD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,oCAAoC;SACrC;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,wBAAwB,EAAE,yCAAyC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EAAE,CAAC;gBACvB,KAAK,UAAU,CAAC,CAAC,CAAC;oBAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;wBACxB,OAAO,CAAC,MAAM,CAAC;4BACb,GAAG,EAAE,IAAA,8CAA2B,EAC9B,OAAO,CAAC,UAAU,EAClB,IAAI,EACJ,QAAQ,CACT;4BACD,SAAS,EAAE,sBAAsB;4BACjC,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,QAAQ;6BACf;4BACD,OAAO,EAAE,kCAAkC,CAAC,IAAI,CAAC;yBAClD,CAAC,CAAC;oBACL,CAAC;oBACD,MAAM;gBACR,CAAC;gBACD,KAAK,WAAW,CAAC,CAAC,CAAC;oBACjB,IAAI,IAAI,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACrD,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;wBAC9C,OAAO,CAAC,MAAM,CAAC;4BACb,GAAG,EAAE,IAAA,uBAAU,EAAC,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC;4BACxD,SAAS,EAAE,6BAA6B;4BACxC,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,QAAQ;6BACf;4BACD,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC;yBAC7D,CAAC,CAAC;oBACL,CAAC;oBACD,MAAM;gBACR,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,8CAA8C,EAC5C,gCAAgC;YAClC,kDAAkD,EAChD,kCAAkC;YACpC,mBAAmB,EAAE,2CAA2C;SACjE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js new file mode 100644 index 00000000..97c56979 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js @@ -0,0 +1,371 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); +exports.default = (0, util_1.createRule)({ + name: 'explicit-module-boundary-types', + meta: { + type: 'problem', + docs: { + description: "Require explicit return and argument types on exported functions' and classes' public class methods", + }, + messages: { + anyTypedArg: "Argument '{{name}}' should be typed with a non-any type.", + anyTypedArgUnnamed: '{{type}} argument should be typed with a non-any type.', + missingArgType: "Argument '{{name}}' should be typed.", + missingArgTypeUnnamed: '{{type}} argument should be typed.', + missingReturnType: 'Missing return type on function.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowArgumentsExplicitlyTypedAsAny: { + type: 'boolean', + description: 'Whether to ignore arguments that are explicitly typed as `any`.', + }, + allowDirectConstAssertionInArrowFunctions: { + type: 'boolean', + description: [ + 'Whether to ignore return type annotations on body-less arrow functions that return an `as const` type assertion.', + 'You must still type the parameters of the function.', + ].join('\n'), + }, + allowedNames: { + type: 'array', + description: 'An array of function/method names that will not have their arguments or return values checked.', + items: { + type: 'string', + }, + }, + allowHigherOrderFunctions: { + type: 'boolean', + description: [ + 'Whether to ignore return type annotations on functions immediately returning another function expression.', + 'You must still type the parameters of the function.', + ].join('\n'), + }, + allowTypedFunctionExpressions: { + type: 'boolean', + description: 'Whether to ignore type annotations on the variable of a function expression.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowArgumentsExplicitlyTypedAsAny: false, + allowDirectConstAssertionInArrowFunctions: true, + allowedNames: [], + allowHigherOrderFunctions: true, + allowTypedFunctionExpressions: true, + }, + ], + create(context, [options]) { + // tracks all of the functions we've already checked + const checkedFunctions = new Set(); + const functionStack = []; + const functionReturnsMap = new Map(); + // all nodes visited, avoids infinite recursion for cyclic references + // (such as class member referring to itself) + const alreadyVisited = new Set(); + function getReturnsInFunction(node) { + return functionReturnsMap.get(node) ?? []; + } + function enterFunction(node) { + functionStack.push(node); + functionReturnsMap.set(node, []); + } + function exitFunction() { + functionStack.pop(); + } + /* + # How the rule works: + + As the rule traverses the AST, it immediately checks every single function that it finds is exported. + "exported" means that it is either directly exported, or that its name is exported. + + It also collects a list of every single function it finds on the way, but does not check them. + After it's finished traversing the AST, it then iterates through the list of found functions, and checks to see if + any of them are part of a higher-order function + */ + return { + 'ArrowFunctionExpression, FunctionDeclaration, FunctionExpression': enterFunction, + 'ArrowFunctionExpression:exit': exitFunction, + 'ExportDefaultDeclaration:exit'(node) { + checkNode(node.declaration); + }, + 'ExportNamedDeclaration:not([source]):exit'(node) { + if (node.declaration) { + checkNode(node.declaration); + } + else { + for (const specifier of node.specifiers) { + followReference(specifier.local); + } + } + }, + 'FunctionDeclaration:exit': exitFunction, + 'FunctionExpression:exit': exitFunction, + 'Program:exit'() { + for (const [node, returns] of functionReturnsMap) { + if (isExportedHigherOrderFunction({ node, returns })) { + checkNode(node); + } + } + }, + ReturnStatement(node) { + const current = functionStack[functionStack.length - 1]; + functionReturnsMap.get(current)?.push(node); + }, + 'TSExportAssignment:exit'(node) { + checkNode(node.expression); + }, + }; + function checkParameters(node) { + function checkParameter(param) { + function report(namedMessageId, unnamedMessageId) { + if (param.type === utils_1.AST_NODE_TYPES.Identifier) { + context.report({ + node: param, + messageId: namedMessageId, + data: { name: param.name }, + }); + } + else if (param.type === utils_1.AST_NODE_TYPES.ArrayPattern) { + context.report({ + node: param, + messageId: unnamedMessageId, + data: { type: 'Array pattern' }, + }); + } + else if (param.type === utils_1.AST_NODE_TYPES.ObjectPattern) { + context.report({ + node: param, + messageId: unnamedMessageId, + data: { type: 'Object pattern' }, + }); + } + else if (param.type === utils_1.AST_NODE_TYPES.RestElement) { + if (param.argument.type === utils_1.AST_NODE_TYPES.Identifier) { + context.report({ + node: param, + messageId: namedMessageId, + data: { name: param.argument.name }, + }); + } + else { + context.report({ + node: param, + messageId: unnamedMessageId, + data: { type: 'Rest' }, + }); + } + } + } + switch (param.type) { + case utils_1.AST_NODE_TYPES.ArrayPattern: + case utils_1.AST_NODE_TYPES.Identifier: + case utils_1.AST_NODE_TYPES.ObjectPattern: + case utils_1.AST_NODE_TYPES.RestElement: + if (!param.typeAnnotation) { + report('missingArgType', 'missingArgTypeUnnamed'); + } + else if (options.allowArgumentsExplicitlyTypedAsAny !== true && + param.typeAnnotation.typeAnnotation.type === + utils_1.AST_NODE_TYPES.TSAnyKeyword) { + report('anyTypedArg', 'anyTypedArgUnnamed'); + } + return; + case utils_1.AST_NODE_TYPES.TSParameterProperty: + return checkParameter(param.parameter); + case utils_1.AST_NODE_TYPES.AssignmentPattern: // ignored as it has a type via its assignment + return; + } + } + for (const arg of node.params) { + checkParameter(arg); + } + } + /** + * Checks if a function name is allowed and should not be checked. + */ + function isAllowedName(node) { + if (!node || !options.allowedNames || options.allowedNames.length === 0) { + return false; + } + if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator || + node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration) { + return (node.id?.type === utils_1.AST_NODE_TYPES.Identifier && + options.allowedNames.includes(node.id.name)); + } + else if (node.type === utils_1.AST_NODE_TYPES.MethodDefinition || + node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || + (node.type === utils_1.AST_NODE_TYPES.Property && node.method) || + node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { + return (0, util_1.isStaticMemberAccessOfValue)(node, context, ...options.allowedNames); + } + return false; + } + function isExportedHigherOrderFunction({ node, }) { + let current = node.parent; + while (current) { + if (current.type === utils_1.AST_NODE_TYPES.ReturnStatement) { + // the parent of a return will always be a block statement, so we can skip over it + current = current.parent.parent; + continue; + } + if (!(0, util_1.isFunction)(current)) { + return false; + } + const returns = getReturnsInFunction(current); + if (!(0, explicitReturnTypeUtils_1.doesImmediatelyReturnFunctionExpression)({ node: current, returns })) { + return false; + } + if (checkedFunctions.has(current)) { + return true; + } + current = current.parent; + } + return false; + } + function followReference(node) { + const scope = context.sourceCode.getScope(node); + const variable = scope.set.get(node.name); + /* istanbul ignore if */ if (!variable) { + return; + } + // check all of the definitions + for (const definition of variable.defs) { + // cases we don't care about in this rule + if ([ + scope_manager_1.DefinitionType.CatchClause, + scope_manager_1.DefinitionType.ImplicitGlobalVariable, + scope_manager_1.DefinitionType.ImportBinding, + scope_manager_1.DefinitionType.Parameter, + ].includes(definition.type)) { + continue; + } + checkNode(definition.node); + } + // follow references to find writes to the variable + for (const reference of variable.references) { + if ( + // we don't want to check the initialization ref, as this is handled by the declaration check + !reference.init && + reference.writeExpr) { + checkNode(reference.writeExpr); + } + } + } + function checkNode(node) { + if (node == null || alreadyVisited.has(node)) { + return; + } + alreadyVisited.add(node); + switch (node.type) { + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionExpression: { + const returns = getReturnsInFunction(node); + return checkFunctionExpression({ node, returns }); + } + case utils_1.AST_NODE_TYPES.ArrayExpression: + for (const element of node.elements) { + checkNode(element); + } + return; + case utils_1.AST_NODE_TYPES.PropertyDefinition: + case utils_1.AST_NODE_TYPES.MethodDefinition: + case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: + if (node.accessibility === 'private' || + node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + return; + } + return checkNode(node.value); + case utils_1.AST_NODE_TYPES.ClassDeclaration: + case utils_1.AST_NODE_TYPES.ClassExpression: + for (const element of node.body.body) { + checkNode(element); + } + return; + case utils_1.AST_NODE_TYPES.FunctionDeclaration: { + const returns = getReturnsInFunction(node); + return checkFunction({ node, returns }); + } + case utils_1.AST_NODE_TYPES.Identifier: + return followReference(node); + case utils_1.AST_NODE_TYPES.ObjectExpression: + for (const property of node.properties) { + checkNode(property); + } + return; + case utils_1.AST_NODE_TYPES.Property: + return checkNode(node.value); + case utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression: + return checkEmptyBodyFunctionExpression(node); + case utils_1.AST_NODE_TYPES.VariableDeclaration: + for (const declaration of node.declarations) { + checkNode(declaration); + } + return; + case utils_1.AST_NODE_TYPES.VariableDeclarator: + return checkNode(node.init); + } + } + function checkEmptyBodyFunctionExpression(node) { + const isConstructor = node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + node.parent.kind === 'constructor'; + const isSetAccessor = (node.parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || + node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) && + node.parent.kind === 'set'; + if (!isConstructor && !isSetAccessor && !node.returnType) { + context.report({ + node, + messageId: 'missingReturnType', + }); + } + checkParameters(node); + } + function checkFunctionExpression({ node, returns, }) { + if (checkedFunctions.has(node)) { + return; + } + checkedFunctions.add(node); + if (isAllowedName(node.parent) || + (0, explicitReturnTypeUtils_1.isTypedFunctionExpression)(node, options) || + (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { + return; + } + (0, explicitReturnTypeUtils_1.checkFunctionExpressionReturnType)({ node, returns }, options, context.sourceCode, loc => { + context.report({ + loc, + node, + messageId: 'missingReturnType', + }); + }); + checkParameters(node); + } + function checkFunction({ node, returns, }) { + if (checkedFunctions.has(node)) { + return; + } + checkedFunctions.add(node); + if (isAllowedName(node) || (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { + return; + } + (0, explicitReturnTypeUtils_1.checkFunctionReturnType)({ node, returns }, options, context.sourceCode, loc => { + context.report({ + loc, + node, + messageId: 'missingReturnType', + }); + }); + checkParameters(node); + } + }, +}); +//# sourceMappingURL=explicit-module-boundary-types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map new file mode 100644 index 00000000..c12cb724 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;AAEA,oEAAkE;AAClE,oDAA0D;AAQ1D,kCAA8E;AAC9E,6EAMyC;AAkBzC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qGAAqG;SACxG;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,0DAA0D;YACvE,kBAAkB,EAChB,wDAAwD;YAC1D,cAAc,EAAE,sCAAsC;YACtD,qBAAqB,EAAE,oCAAoC;YAC3D,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kCAAkC,EAAE;wBAClC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,iEAAiE;qBACpE;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACX,kHAAkH;4BAClH,qDAAqD;yBACtD,CAAC,IAAI,CAAC,IAAI,CAAC;qBACb;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,gGAAgG;wBAClG,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACX,2GAA2G;4BAC3G,qDAAqD;yBACtD,CAAC,IAAI,CAAC,IAAI,CAAC;qBACb;oBACD,6BAA6B,EA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BAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QAED,SAAS,aAAa,CAAC,EACrB,IAAI,EACJ,OAAO,GACoC;YAC3C,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,OAAO;YACT,CAAC;YACD,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YAED,IAAA,iDAAuB,EACrB,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG;oBACH,IAAI;oBACJ,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js new file mode 100644 index 00000000..05fb277b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js @@ -0,0 +1,266 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const adjacent_overload_signatures_1 = __importDefault(require("./adjacent-overload-signatures")); +const array_type_1 = __importDefault(require("./array-type")); +const await_thenable_1 = __importDefault(require("./await-thenable")); +const ban_ts_comment_1 = __importDefault(require("./ban-ts-comment")); +const ban_tslint_comment_1 = __importDefault(require("./ban-tslint-comment")); +const class_literal_property_style_1 = __importDefault(require("./class-literal-property-style")); +const class_methods_use_this_1 = __importDefault(require("./class-methods-use-this")); +const consistent_generic_constructors_1 = __importDefault(require("./consistent-generic-constructors")); +const consistent_indexed_object_style_1 = __importDefault(require("./consistent-indexed-object-style")); +const consistent_return_1 = __importDefault(require("./consistent-return")); +const consistent_type_assertions_1 = __importDefault(require("./consistent-type-assertions")); +const consistent_type_definitions_1 = __importDefault(require("./consistent-type-definitions")); +const consistent_type_exports_1 = __importDefault(require("./consistent-type-exports")); +const consistent_type_imports_1 = __importDefault(require("./consistent-type-imports")); +const default_param_last_1 = __importDefault(require("./default-param-last")); +const dot_notation_1 = __importDefault(require("./dot-notation")); +const explicit_function_return_type_1 = __importDefault(require("./explicit-function-return-type")); +const explicit_member_accessibility_1 = __importDefault(require("./explicit-member-accessibility")); +const explicit_module_boundary_types_1 = __importDefault(require("./explicit-module-boundary-types")); +const init_declarations_1 = __importDefault(require("./init-declarations")); +const max_params_1 = __importDefault(require("./max-params")); +const member_ordering_1 = __importDefault(require("./member-ordering")); +const method_signature_style_1 = __importDefault(require("./method-signature-style")); +const naming_convention_1 = __importDefault(require("./naming-convention")); +const no_array_constructor_1 = __importDefault(require("./no-array-constructor")); +const no_array_delete_1 = __importDefault(require("./no-array-delete")); +const no_base_to_string_1 = __importDefault(require("./no-base-to-string")); +const no_confusing_non_null_assertion_1 = __importDefault(require("./no-confusing-non-null-assertion")); +const no_confusing_void_expression_1 = __importDefault(require("./no-confusing-void-expression")); +const no_deprecated_1 = __importDefault(require("./no-deprecated")); +const no_dupe_class_members_1 = __importDefault(require("./no-dupe-class-members")); +const no_duplicate_enum_values_1 = __importDefault(require("./no-duplicate-enum-values")); +const no_duplicate_type_constituents_1 = __importDefault(require("./no-duplicate-type-constituents")); +const no_dynamic_delete_1 = __importDefault(require("./no-dynamic-delete")); +const no_empty_function_1 = __importDefault(require("./no-empty-function")); +const no_empty_interface_1 = __importDefault(require("./no-empty-interface")); +const no_empty_object_type_1 = __importDefault(require("./no-empty-object-type")); +const no_explicit_any_1 = __importDefault(require("./no-explicit-any")); +const no_extra_non_null_assertion_1 = __importDefault(require("./no-extra-non-null-assertion")); +const no_extraneous_class_1 = __importDefault(require("./no-extraneous-class")); +const no_floating_promises_1 = __importDefault(require("./no-floating-promises")); +const no_for_in_array_1 = __importDefault(require("./no-for-in-array")); +const no_implied_eval_1 = __importDefault(require("./no-implied-eval")); +const no_import_type_side_effects_1 = __importDefault(require("./no-import-type-side-effects")); +const no_inferrable_types_1 = __importDefault(require("./no-inferrable-types")); +const no_invalid_this_1 = __importDefault(require("./no-invalid-this")); +const no_invalid_void_type_1 = __importDefault(require("./no-invalid-void-type")); +const no_loop_func_1 = __importDefault(require("./no-loop-func")); +const no_loss_of_precision_1 = __importDefault(require("./no-loss-of-precision")); +const no_magic_numbers_1 = __importDefault(require("./no-magic-numbers")); +const no_meaningless_void_operator_1 = __importDefault(require("./no-meaningless-void-operator")); +const no_misused_new_1 = __importDefault(require("./no-misused-new")); +const no_misused_promises_1 = __importDefault(require("./no-misused-promises")); +const no_mixed_enums_1 = __importDefault(require("./no-mixed-enums")); +const no_namespace_1 = __importDefault(require("./no-namespace")); +const no_non_null_asserted_nullish_coalescing_1 = __importDefault(require("./no-non-null-asserted-nullish-coalescing")); +const no_non_null_asserted_optional_chain_1 = __importDefault(require("./no-non-null-asserted-optional-chain")); +const no_non_null_assertion_1 = __importDefault(require("./no-non-null-assertion")); +const no_redeclare_1 = __importDefault(require("./no-redeclare")); +const no_redundant_type_constituents_1 = __importDefault(require("./no-redundant-type-constituents")); +const no_require_imports_1 = __importDefault(require("./no-require-imports")); +const no_restricted_imports_1 = __importDefault(require("./no-restricted-imports")); +const no_restricted_types_1 = __importDefault(require("./no-restricted-types")); +const no_shadow_1 = __importDefault(require("./no-shadow")); +const no_this_alias_1 = __importDefault(require("./no-this-alias")); +const no_type_alias_1 = __importDefault(require("./no-type-alias")); +const no_unnecessary_boolean_literal_compare_1 = __importDefault(require("./no-unnecessary-boolean-literal-compare")); +const no_unnecessary_condition_1 = __importDefault(require("./no-unnecessary-condition")); +const no_unnecessary_parameter_property_assignment_1 = __importDefault(require("./no-unnecessary-parameter-property-assignment")); +const no_unnecessary_qualifier_1 = __importDefault(require("./no-unnecessary-qualifier")); +const no_unnecessary_template_expression_1 = __importDefault(require("./no-unnecessary-template-expression")); +const no_unnecessary_type_arguments_1 = __importDefault(require("./no-unnecessary-type-arguments")); +const no_unnecessary_type_assertion_1 = __importDefault(require("./no-unnecessary-type-assertion")); +const no_unnecessary_type_constraint_1 = __importDefault(require("./no-unnecessary-type-constraint")); +const no_unnecessary_type_parameters_1 = __importDefault(require("./no-unnecessary-type-parameters")); +const no_unsafe_argument_1 = __importDefault(require("./no-unsafe-argument")); +const no_unsafe_assignment_1 = __importDefault(require("./no-unsafe-assignment")); +const no_unsafe_call_1 = __importDefault(require("./no-unsafe-call")); +const no_unsafe_declaration_merging_1 = __importDefault(require("./no-unsafe-declaration-merging")); +const no_unsafe_enum_comparison_1 = __importDefault(require("./no-unsafe-enum-comparison")); +const no_unsafe_function_type_1 = __importDefault(require("./no-unsafe-function-type")); +const no_unsafe_member_access_1 = __importDefault(require("./no-unsafe-member-access")); +const no_unsafe_return_1 = __importDefault(require("./no-unsafe-return")); +const no_unsafe_type_assertion_1 = __importDefault(require("./no-unsafe-type-assertion")); +const no_unsafe_unary_minus_1 = __importDefault(require("./no-unsafe-unary-minus")); +const no_unused_expressions_1 = __importDefault(require("./no-unused-expressions")); +const no_unused_vars_1 = __importDefault(require("./no-unused-vars")); +const no_use_before_define_1 = __importDefault(require("./no-use-before-define")); +const no_useless_constructor_1 = __importDefault(require("./no-useless-constructor")); +const no_useless_empty_export_1 = __importDefault(require("./no-useless-empty-export")); +const no_var_requires_1 = __importDefault(require("./no-var-requires")); +const no_wrapper_object_types_1 = __importDefault(require("./no-wrapper-object-types")); +const non_nullable_type_assertion_style_1 = __importDefault(require("./non-nullable-type-assertion-style")); +const only_throw_error_1 = __importDefault(require("./only-throw-error")); +const parameter_properties_1 = __importDefault(require("./parameter-properties")); +const prefer_as_const_1 = __importDefault(require("./prefer-as-const")); +const prefer_destructuring_1 = __importDefault(require("./prefer-destructuring")); +const prefer_enum_initializers_1 = __importDefault(require("./prefer-enum-initializers")); +const prefer_find_1 = __importDefault(require("./prefer-find")); +const prefer_for_of_1 = __importDefault(require("./prefer-for-of")); +const prefer_function_type_1 = __importDefault(require("./prefer-function-type")); +const prefer_includes_1 = __importDefault(require("./prefer-includes")); +const prefer_literal_enum_member_1 = __importDefault(require("./prefer-literal-enum-member")); +const prefer_namespace_keyword_1 = __importDefault(require("./prefer-namespace-keyword")); +const prefer_nullish_coalescing_1 = __importDefault(require("./prefer-nullish-coalescing")); +const prefer_optional_chain_1 = __importDefault(require("./prefer-optional-chain")); +const prefer_promise_reject_errors_1 = __importDefault(require("./prefer-promise-reject-errors")); +const prefer_readonly_1 = __importDefault(require("./prefer-readonly")); +const prefer_readonly_parameter_types_1 = __importDefault(require("./prefer-readonly-parameter-types")); +const prefer_reduce_type_parameter_1 = __importDefault(require("./prefer-reduce-type-parameter")); +const prefer_regexp_exec_1 = __importDefault(require("./prefer-regexp-exec")); +const prefer_return_this_type_1 = __importDefault(require("./prefer-return-this-type")); +const prefer_string_starts_ends_with_1 = __importDefault(require("./prefer-string-starts-ends-with")); +const prefer_ts_expect_error_1 = __importDefault(require("./prefer-ts-expect-error")); +const promise_function_async_1 = __importDefault(require("./promise-function-async")); +const related_getter_setter_pairs_1 = __importDefault(require("./related-getter-setter-pairs")); +const require_array_sort_compare_1 = __importDefault(require("./require-array-sort-compare")); +const require_await_1 = __importDefault(require("./require-await")); +const restrict_plus_operands_1 = __importDefault(require("./restrict-plus-operands")); +const restrict_template_expressions_1 = __importDefault(require("./restrict-template-expressions")); +const return_await_1 = __importDefault(require("./return-await")); +const sort_type_constituents_1 = __importDefault(require("./sort-type-constituents")); +const strict_boolean_expressions_1 = __importDefault(require("./strict-boolean-expressions")); +const switch_exhaustiveness_check_1 = __importDefault(require("./switch-exhaustiveness-check")); +const triple_slash_reference_1 = __importDefault(require("./triple-slash-reference")); +const typedef_1 = __importDefault(require("./typedef")); +const unbound_method_1 = __importDefault(require("./unbound-method")); +const unified_signatures_1 = __importDefault(require("./unified-signatures")); +const use_unknown_in_catch_callback_variable_1 = __importDefault(require("./use-unknown-in-catch-callback-variable")); +const rules = { + 'adjacent-overload-signatures': adjacent_overload_signatures_1.default, + 'array-type': array_type_1.default, + 'await-thenable': await_thenable_1.default, + 'ban-ts-comment': ban_ts_comment_1.default, + 'ban-tslint-comment': ban_tslint_comment_1.default, + 'class-literal-property-style': class_literal_property_style_1.default, + 'class-methods-use-this': class_methods_use_this_1.default, + 'consistent-generic-constructors': consistent_generic_constructors_1.default, + 'consistent-indexed-object-style': consistent_indexed_object_style_1.default, + 'consistent-return': consistent_return_1.default, + 'consistent-type-assertions': consistent_type_assertions_1.default, + 'consistent-type-definitions': consistent_type_definitions_1.default, + 'consistent-type-exports': consistent_type_exports_1.default, + 'consistent-type-imports': consistent_type_imports_1.default, + 'default-param-last': default_param_last_1.default, + 'dot-notation': dot_notation_1.default, + 'explicit-function-return-type': explicit_function_return_type_1.default, + 'explicit-member-accessibility': explicit_member_accessibility_1.default, + 'explicit-module-boundary-types': explicit_module_boundary_types_1.default, + 'init-declarations': init_declarations_1.default, + 'max-params': max_params_1.default, + 'member-ordering': member_ordering_1.default, + 'method-signature-style': method_signature_style_1.default, + 'naming-convention': naming_convention_1.default, + 'no-array-constructor': no_array_constructor_1.default, + 'no-array-delete': no_array_delete_1.default, + 'no-base-to-string': no_base_to_string_1.default, + 'no-confusing-non-null-assertion': no_confusing_non_null_assertion_1.default, + 'no-confusing-void-expression': no_confusing_void_expression_1.default, + 'no-deprecated': no_deprecated_1.default, + 'no-dupe-class-members': no_dupe_class_members_1.default, + 'no-duplicate-enum-values': no_duplicate_enum_values_1.default, + 'no-duplicate-type-constituents': no_duplicate_type_constituents_1.default, + 'no-dynamic-delete': no_dynamic_delete_1.default, + 'no-empty-function': no_empty_function_1.default, + 'no-empty-interface': no_empty_interface_1.default, + 'no-empty-object-type': no_empty_object_type_1.default, + 'no-explicit-any': no_explicit_any_1.default, + 'no-extra-non-null-assertion': no_extra_non_null_assertion_1.default, + 'no-extraneous-class': no_extraneous_class_1.default, + 'no-floating-promises': no_floating_promises_1.default, + 'no-for-in-array': no_for_in_array_1.default, + 'no-implied-eval': no_implied_eval_1.default, + 'no-import-type-side-effects': no_import_type_side_effects_1.default, + 'no-inferrable-types': no_inferrable_types_1.default, + 'no-invalid-this': no_invalid_this_1.default, + 'no-invalid-void-type': no_invalid_void_type_1.default, + 'no-loop-func': no_loop_func_1.default, + 'no-loss-of-precision': no_loss_of_precision_1.default, + 'no-magic-numbers': no_magic_numbers_1.default, + 'no-meaningless-void-operator': no_meaningless_void_operator_1.default, + 'no-misused-new': no_misused_new_1.default, + 'no-misused-promises': no_misused_promises_1.default, + 'no-mixed-enums': no_mixed_enums_1.default, + 'no-namespace': no_namespace_1.default, + 'no-non-null-asserted-nullish-coalescing': no_non_null_asserted_nullish_coalescing_1.default, + 'no-non-null-asserted-optional-chain': no_non_null_asserted_optional_chain_1.default, + 'no-non-null-assertion': no_non_null_assertion_1.default, + 'no-redeclare': no_redeclare_1.default, + 'no-redundant-type-constituents': no_redundant_type_constituents_1.default, + 'no-require-imports': no_require_imports_1.default, + 'no-restricted-imports': no_restricted_imports_1.default, + 'no-restricted-types': no_restricted_types_1.default, + 'no-shadow': no_shadow_1.default, + 'no-this-alias': no_this_alias_1.default, + 'no-type-alias': no_type_alias_1.default, + 'no-unnecessary-boolean-literal-compare': no_unnecessary_boolean_literal_compare_1.default, + 'no-unnecessary-condition': no_unnecessary_condition_1.default, + 'no-unnecessary-parameter-property-assignment': no_unnecessary_parameter_property_assignment_1.default, + 'no-unnecessary-qualifier': no_unnecessary_qualifier_1.default, + 'no-unnecessary-template-expression': no_unnecessary_template_expression_1.default, + 'no-unnecessary-type-arguments': no_unnecessary_type_arguments_1.default, + 'no-unnecessary-type-assertion': no_unnecessary_type_assertion_1.default, + 'no-unnecessary-type-constraint': no_unnecessary_type_constraint_1.default, + 'no-unnecessary-type-parameters': no_unnecessary_type_parameters_1.default, + 'no-unsafe-argument': no_unsafe_argument_1.default, + 'no-unsafe-assignment': no_unsafe_assignment_1.default, + 'no-unsafe-call': no_unsafe_call_1.default, + 'no-unsafe-declaration-merging': no_unsafe_declaration_merging_1.default, + 'no-unsafe-enum-comparison': no_unsafe_enum_comparison_1.default, + 'no-unsafe-function-type': no_unsafe_function_type_1.default, + 'no-unsafe-member-access': no_unsafe_member_access_1.default, + 'no-unsafe-return': no_unsafe_return_1.default, + 'no-unsafe-type-assertion': no_unsafe_type_assertion_1.default, + 'no-unsafe-unary-minus': no_unsafe_unary_minus_1.default, + 'no-unused-expressions': no_unused_expressions_1.default, + 'no-unused-vars': no_unused_vars_1.default, + 'no-use-before-define': no_use_before_define_1.default, + 'no-useless-constructor': no_useless_constructor_1.default, + 'no-useless-empty-export': no_useless_empty_export_1.default, + 'no-var-requires': no_var_requires_1.default, + 'no-wrapper-object-types': no_wrapper_object_types_1.default, + 'non-nullable-type-assertion-style': non_nullable_type_assertion_style_1.default, + 'only-throw-error': only_throw_error_1.default, + 'parameter-properties': parameter_properties_1.default, + 'prefer-as-const': prefer_as_const_1.default, + 'prefer-destructuring': prefer_destructuring_1.default, + 'prefer-enum-initializers': prefer_enum_initializers_1.default, + 'prefer-find': prefer_find_1.default, + 'prefer-for-of': prefer_for_of_1.default, + 'prefer-function-type': prefer_function_type_1.default, + 'prefer-includes': prefer_includes_1.default, + 'prefer-literal-enum-member': prefer_literal_enum_member_1.default, + 'prefer-namespace-keyword': prefer_namespace_keyword_1.default, + 'prefer-nullish-coalescing': prefer_nullish_coalescing_1.default, + 'prefer-optional-chain': prefer_optional_chain_1.default, + 'prefer-promise-reject-errors': prefer_promise_reject_errors_1.default, + 'prefer-readonly': prefer_readonly_1.default, + 'prefer-readonly-parameter-types': prefer_readonly_parameter_types_1.default, + 'prefer-reduce-type-parameter': prefer_reduce_type_parameter_1.default, + 'prefer-regexp-exec': prefer_regexp_exec_1.default, + 'prefer-return-this-type': prefer_return_this_type_1.default, + 'prefer-string-starts-ends-with': prefer_string_starts_ends_with_1.default, + 'prefer-ts-expect-error': prefer_ts_expect_error_1.default, + 'promise-function-async': promise_function_async_1.default, + 'related-getter-setter-pairs': related_getter_setter_pairs_1.default, + 'require-array-sort-compare': require_array_sort_compare_1.default, + 'require-await': require_await_1.default, + 'restrict-plus-operands': restrict_plus_operands_1.default, + 'restrict-template-expressions': restrict_template_expressions_1.default, + 'return-await': return_await_1.default, + 'sort-type-constituents': sort_type_constituents_1.default, + 'strict-boolean-expressions': strict_boolean_expressions_1.default, + 'switch-exhaustiveness-check': switch_exhaustiveness_check_1.default, + 'triple-slash-reference': triple_slash_reference_1.default, + typedef: typedef_1.default, + 'unbound-method': unbound_method_1.default, + 'unified-signatures': unified_signatures_1.default, + 'use-unknown-in-catch-callback-variable': use_unknown_in_catch_callback_variable_1.default, +}; +module.exports = rules; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map new file mode 100644 index 00000000..40a54519 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;AAEA,kGAAwE;AACxE,8DAAqC;AACrC,sEAA6C;AAC7C,sEAA4C;AAC5C,8EAAoD;AACpD,kGAAuE;AACvE,sFAA2D;AAC3D,wGAA8E;AAC9E,wGAA6E;AAC7E,4EAAmD;AACnD,8FAAoE;AACpE,gGAAsE;AACtE,wFAA8D;AAC9D,wFAA8D;AAC9D,8EAAoD;AACpD,kEAAyC;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AAE,iCAAoB;IAC/C,gCAAgC,EAAE,wCAA0B;IAC5D,wBAAwB,EAAE,gCAAmB;IAC7C,wBAAwB,EAAE,gCAAoB;IAC9C,6BAA6B,EAAE,qCAAwB;IACvD,4BAA4B,EAAE,oCAAuB;IACrD,eAAe,EAAE,uBAAY;IAC7B,wBAAwB,EAAE,gCAAoB;IAC9C,+BAA+B,EAAE,uCAA2B;IAC5D,cAAc,EAAE,sBAAW;IAC3B,wBAAwB,EAAE,gCAAoB;IAC9C,4BAA4B,EAAE,oCAAwB;IACtD,6BAA6B,EAAE,qCAAyB;IACxD,wBAAwB,EAAE,gCAAoB;IAC9C,OAAO,EAAP,iBAAO;IACP,gBAAgB,EAAE,wBAAa;IAC/B,oBAAoB,EAAE,4BAAiB;IACvC,wCAAwC,EAAE,gDAAiC;CAC/C,CAAC;AAE/B,iBAAS,KAAK,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js new file mode 100644 index 00000000..59756602 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js @@ -0,0 +1,105 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('init-declarations'); +exports.default = (0, util_1.createRule)({ + name: 'init-declarations', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Require or disallow initialization in variable declarations', + extendsBaseRule: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions: ['always'], + create(context, [mode]) { + // Make a custom context to adjust the loc of reports where the base + // rule's behavior is a bit too aggressive with TS-specific syntax (namely, + // type annotations). + function getBaseContextOverride() { + const reportOverride = descriptor => { + if ('node' in descriptor && descriptor.loc == null) { + const { node, ...rest } = descriptor; + // We only want to special case the report loc when reporting on + // variables declarations that are not initialized. Declarations that + // _are_ initialized get reported by the base rule due to a setting to + // prohibit initializing variables entirely, in which case underlining + // the whole node including the type annotation and initializer is + // appropriate. + if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator && + node.init == null) { + context.report({ + ...rest, + loc: getReportLoc(node), + }); + return; + } + } + context.report(descriptor); + }; + // `return { ...context, report: reportOverride }` isn't safe because the + // `context` object has some getters that need to be preserved. + // + // `return new Proxy(context, ...)` doesn't work because `context` has + // non-configurable properties that throw when constructing a Proxy. + // + // So, we'll just use Proxy on a dummy object and use the `get` trap to + // proxy `context`'s properties. + return new Proxy({}, { + get: (target, prop, receiver) => prop === 'report' + ? reportOverride + : Reflect.get(context, prop, receiver), + }); + } + const rules = baseRule.create(getBaseContextOverride()); + return { + 'VariableDeclaration:exit'(node) { + if (mode === 'always') { + if (node.declare) { + return; + } + if (isAncestorNamespaceDeclared(node)) { + return; + } + } + rules['VariableDeclaration:exit'](node); + }, + }; + function isAncestorNamespaceDeclared(node) { + let ancestor = node.parent; + while (ancestor) { + if (ancestor.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && + ancestor.declare) { + return true; + } + ancestor = ancestor.parent; + } + return false; + } + }, +}); +/** + * When reporting an uninitialized variable declarator, get the loc excluding + * the type annotation. + */ +function getReportLoc(node) { + const start = structuredClone(node.loc.start); + const end = { + line: node.loc.start.line, + // `if (id.type === AST_NODE_TYPES.Identifier)` is a condition for + // reporting in the base rule (as opposed to things like destructuring + // assignment), so the type assertion should always be valid. + column: node.loc.start.column + node.id.name.length, + }; + return { + start, + end, + }; +} +//# sourceMappingURL=init-declarations.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map new file mode 100644 index 00000000..3d059600 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"init-declarations.js","sourceRoot":"","sources":["../../src/rules/init-declarations.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAKxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAC1B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,oEAAoE;QACpE,2EAA2E;QAC3E,qBAAqB;QACrB,SAAS,sBAAsB;YAC7B,MAAM,cAAc,GAA0B,UAAU,CAAC,EAAE;gBACzD,IAAI,MAAM,IAAI,UAAU,IAAI,UAAU,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;oBACnD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC;oBACrC,gEAAgE;oBAChE,qEAAqE;oBACrE,sEAAsE;oBACtE,sEAAsE;oBACtE,kEAAkE;oBAClE,eAAe;oBACf,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;wBAC/C,IAAI,CAAC,IAAI,IAAI,IAAI,EACjB,C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;gBACd,CAAC;gBAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC7B,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,SAAS,YAAY,CACnB,IAAiC;IAEjC,MAAM,KAAK,GAAsB,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACjE,MAAM,GAAG,GAAsB;QAC7B,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI;QACzB,kEAAkE;QAClE,sEAAsE;QACtE,6DAA6D;QAC7D,MAAM,EACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAI,IAAI,CAAC,EAA0B,CAAC,IAAI,CAAC,MAAM;KACvE,CAAC;IAEF,OAAO;QACL,KAAK;QACL,GAAG;KACJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js new file mode 100644 index 00000000..be16a801 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js @@ -0,0 +1,71 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('max-params'); +exports.default = (0, util_1.createRule)({ + name: 'max-params', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Enforce a maximum number of parameters in function definitions', + extendsBaseRule: true, + }, + messages: baseRule.meta.messages, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + countVoidThis: { + type: 'boolean', + description: 'Whether to count a `this` declaration when the type is `void`.', + }, + max: { + type: 'integer', + description: 'A maximum number of parameters in function definitions.', + minimum: 0, + }, + maximum: { + type: 'integer', + description: '(deprecated) A maximum number of parameters in function definitions.', + minimum: 0, + }, + }, + }, + ], + }, + defaultOptions: [{ countVoidThis: false, max: 3 }], + create(context, [{ countVoidThis }]) { + const baseRules = baseRule.create(context); + if (countVoidThis === true) { + return baseRules; + } + const removeVoidThisParam = (node) => { + if (node.params.length === 0 || + node.params[0].type !== utils_1.AST_NODE_TYPES.Identifier || + node.params[0].name !== 'this' || + node.params[0].typeAnnotation?.typeAnnotation.type !== + utils_1.AST_NODE_TYPES.TSVoidKeyword) { + return node; + } + return { + ...node, + params: node.params.slice(1), + }; + }; + const wrapListener = (listener) => { + return (node) => { + listener(removeVoidThisParam(node)); + }; + }; + return { + ArrowFunctionExpression: wrapListener(baseRules.ArrowFunctionExpression), + FunctionDeclaration: wrapListener(baseRules.FunctionDeclaration), + FunctionExpression: wrapListener(baseRules.FunctionExpression), + }; + }, +}); +//# sourceMappingURL=max-params.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map new file mode 100644 index 00000000..397141b5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map @@ -0,0 +1 @@ +{"version":3,"file":"max-params.js","sourceRoot":"","sources":["../../src/rules/max-params.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAS9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,YAAY,CAAC,CAAC;AAKjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,eAAe,EAAE,IAAI;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CAAC;aAC7B,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,YAAY,GAAG,CACnB,QAAiC,EACR,EAAE;YAC3B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;YACtC,CAAC,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,uBAAuB,EAAE,YAAY,CAAC,SAAS,CAAC,uBAAuB,CAAC;YACxE,mBAAmB,EAAE,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC;YAChE,kBAAkB,EAAE,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC;SAC/D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js new file mode 100644 index 00000000..1c4b9115 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js @@ -0,0 +1,824 @@ +"use strict"; +// This rule was feature-frozen before we enabled no-property-in-node. +/* eslint-disable eslint-plugin/no-property-in-node */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultOrder = void 0; +const utils_1 = require("@typescript-eslint/utils"); +const natural_compare_1 = __importDefault(require("natural-compare")); +const util_1 = require("../util"); +const neverConfig = { + type: 'string', + enum: ['never'], +}; +const arrayConfig = (memberTypes) => ({ + type: 'array', + items: { + oneOf: [ + { + $ref: memberTypes, + }, + { + type: 'array', + items: { + $ref: memberTypes, + }, + }, + ], + }, +}); +const objectConfig = (memberTypes) => ({ + type: 'object', + additionalProperties: false, + properties: { + memberTypes: { + oneOf: [arrayConfig(memberTypes), neverConfig], + }, + optionalityOrder: { + $ref: '#/items/0/$defs/optionalityOrderOptions', + }, + order: { + $ref: '#/items/0/$defs/orderOptions', + }, + }, +}); +exports.defaultOrder = [ + // Index signature + 'signature', + 'call-signature', + // Fields + 'public-static-field', + 'protected-static-field', + 'private-static-field', + '#private-static-field', + 'public-decorated-field', + 'protected-decorated-field', + 'private-decorated-field', + 'public-instance-field', + 'protected-instance-field', + 'private-instance-field', + '#private-instance-field', + 'public-abstract-field', + 'protected-abstract-field', + 'public-field', + 'protected-field', + 'private-field', + '#private-field', + 'static-field', + 'instance-field', + 'abstract-field', + 'decorated-field', + 'field', + // Static initialization + 'static-initialization', + // Constructors + 'public-constructor', + 'protected-constructor', + 'private-constructor', + 'constructor', + // Accessors + 'public-static-accessor', + 'protected-static-accessor', + 'private-static-accessor', + '#private-static-accessor', + 'public-decorated-accessor', + 'protected-decorated-accessor', + 'private-decorated-accessor', + 'public-instance-accessor', + 'protected-instance-accessor', + 'private-instance-accessor', + '#private-instance-accessor', + 'public-abstract-accessor', + 'protected-abstract-accessor', + 'public-accessor', + 'protected-accessor', + 'private-accessor', + '#private-accessor', + 'static-accessor', + 'instance-accessor', + 'abstract-accessor', + 'decorated-accessor', + 'accessor', + // Getters + 'public-static-get', + 'protected-static-get', + 'private-static-get', + '#private-static-get', + 'public-decorated-get', + 'protected-decorated-get', + 'private-decorated-get', + 'public-instance-get', + 'protected-instance-get', + 'private-instance-get', + '#private-instance-get', + 'public-abstract-get', + 'protected-abstract-get', + 'public-get', + 'protected-get', + 'private-get', + '#private-get', + 'static-get', + 'instance-get', + 'abstract-get', + 'decorated-get', + 'get', + // Setters + 'public-static-set', + 'protected-static-set', + 'private-static-set', + '#private-static-set', + 'public-decorated-set', + 'protected-decorated-set', + 'private-decorated-set', + 'public-instance-set', + 'protected-instance-set', + 'private-instance-set', + '#private-instance-set', + 'public-abstract-set', + 'protected-abstract-set', + 'public-set', + 'protected-set', + 'private-set', + '#private-set', + 'static-set', + 'instance-set', + 'abstract-set', + 'decorated-set', + 'set', + // Methods + 'public-static-method', + 'protected-static-method', + 'private-static-method', + '#private-static-method', + 'public-decorated-method', + 'protected-decorated-method', + 'private-decorated-method', + 'public-instance-method', + 'protected-instance-method', + 'private-instance-method', + '#private-instance-method', + 'public-abstract-method', + 'protected-abstract-method', + 'public-method', + 'protected-method', + 'private-method', + '#private-method', + 'static-method', + 'instance-method', + 'abstract-method', + 'decorated-method', + 'method', +]; +const allMemberTypes = [ + ...new Set([ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'call-signature', + 'constructor', + 'accessor', + 'get', + 'set', + 'static-initialization', + ].flatMap(type => [ + type, + ...['public', 'protected', 'private', '#private'] + .flatMap(accessibility => [ + type !== 'readonly-signature' && + type !== 'signature' && + type !== 'static-initialization' && + type !== 'call-signature' && + !(type === 'constructor' && accessibility === '#private') + ? `${accessibility}-${type}` // e.g. `public-field` + : [], + // Only class instance fields, methods, accessors, get and set can have decorators attached to them + accessibility !== '#private' && + (type === 'readonly-field' || + type === 'field' || + type === 'method' || + type === 'accessor' || + type === 'get' || + type === 'set') + ? [`${accessibility}-decorated-${type}`, `decorated-${type}`] + : [], + type !== 'constructor' && + type !== 'readonly-signature' && + type !== 'signature' && + type !== 'call-signature' + ? [ + 'static', + 'instance', + // There is no `static-constructor` or `instance-constructor` or `abstract-constructor` + ...(accessibility === '#private' || + accessibility === 'private' + ? [] + : ['abstract']), + ].flatMap(scope => [ + `${scope}-${type}`, + `${accessibility}-${scope}-${type}`, + ]) + : [], + ]) + .flat(), + ])), +]; +const functionExpressions = [ + utils_1.AST_NODE_TYPES.FunctionExpression, + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, +]; +/** + * Gets the node type. + * + * @param node the node to be evaluated. + */ +function getNodeType(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: + case utils_1.AST_NODE_TYPES.MethodDefinition: + case utils_1.AST_NODE_TYPES.TSMethodSignature: + return node.kind; + case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: + return 'call-signature'; + case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: + return 'constructor'; + case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: + case utils_1.AST_NODE_TYPES.TSPropertySignature: + return node.readonly ? 'readonly-field' : 'field'; + case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: + case utils_1.AST_NODE_TYPES.AccessorProperty: + return 'accessor'; + case utils_1.AST_NODE_TYPES.PropertyDefinition: + return node.value && functionExpressions.includes(node.value.type) + ? 'method' + : node.readonly + ? 'readonly-field' + : 'field'; + case utils_1.AST_NODE_TYPES.TSIndexSignature: + return node.readonly ? 'readonly-signature' : 'signature'; + case utils_1.AST_NODE_TYPES.StaticBlock: + return 'static-initialization'; + default: + return null; + } +} +/** + * Gets the raw string value of a member's name + */ +function getMemberRawName(member, sourceCode) { + const { name, type } = (0, util_1.getNameFromMember)(member, sourceCode); + if (type === util_1.MemberNameType.Quoted) { + return name.slice(1, -1); + } + if (type === util_1.MemberNameType.Private) { + return name.slice(1); + } + return name; +} +/** + * Gets the member name based on the member type. + * + * @param node the node to be evaluated. + */ +function getMemberName(node, sourceCode) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSPropertySignature: + case utils_1.AST_NODE_TYPES.TSMethodSignature: + case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: + case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: + case utils_1.AST_NODE_TYPES.AccessorProperty: + case utils_1.AST_NODE_TYPES.PropertyDefinition: + return getMemberRawName(node, sourceCode); + case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: + case utils_1.AST_NODE_TYPES.MethodDefinition: + return node.kind === 'constructor' + ? 'constructor' + : getMemberRawName(node, sourceCode); + case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: + return 'new'; + case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: + return 'call'; + case utils_1.AST_NODE_TYPES.TSIndexSignature: + return (0, util_1.getNameFromIndexSignature)(node); + case utils_1.AST_NODE_TYPES.StaticBlock: + return 'static block'; + default: + return null; + } +} +/** + * Returns true if the member is optional based on the member type. + * + * @param node the node to be evaluated. + * + * @returns Whether the member is optional, or false if it cannot be optional at all. + */ +function isMemberOptional(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSPropertySignature: + case utils_1.AST_NODE_TYPES.TSMethodSignature: + case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: + case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: + case utils_1.AST_NODE_TYPES.AccessorProperty: + case utils_1.AST_NODE_TYPES.PropertyDefinition: + case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: + case utils_1.AST_NODE_TYPES.MethodDefinition: + return !!node.optional; + } + return false; +} +/** + * Gets the calculated rank using the provided method definition. + * The algorithm is as follows: + * - Get the rank based on the accessibility-scope-type name, e.g. public-instance-field + * - If there is no order for accessibility-scope-type, then strip out the accessibility. + * - If there is no order for scope-type, then strip out the scope. + * - If there is no order for type, then return -1 + * @param memberGroups the valid names to be validated. + * @param orderConfig the current order to be validated. + * + * @return Index of the matching member type in the order configuration. + */ +function getRankOrder(memberGroups, orderConfig) { + let rank = -1; + const stack = [...memberGroups]; // Get a copy of the member groups + while (stack.length > 0 && rank === -1) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const memberGroup = stack.shift(); + rank = orderConfig.findIndex(memberType => Array.isArray(memberType) + ? memberType.includes(memberGroup) + : memberType === memberGroup); + } + return rank; +} +function getAccessibility(node) { + if ('accessibility' in node && node.accessibility) { + return node.accessibility; + } + if ('key' in node && node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + return '#private'; + } + return 'public'; +} +/** + * Gets the rank of the node given the order. + * @param node the node to be evaluated. + * @param orderConfig the current order to be validated. + * @param supportsModifiers a flag indicating whether the type supports modifiers (scope or accessibility) or not. + */ +function getRank(node, orderConfig, supportsModifiers) { + const type = getNodeType(node); + if (type == null) { + // shouldn't happen but just in case, put it on the end + return orderConfig.length - 1; + } + const abstract = node.type === utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty || + node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || + node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition; + const scope = 'static' in node && node.static + ? 'static' + : abstract + ? 'abstract' + : 'instance'; + const accessibility = getAccessibility(node); + // Collect all existing member groups that apply to this node... + // (e.g. 'public-instance-field', 'instance-field', 'public-field', 'constructor' etc.) + const memberGroups = []; + if (supportsModifiers) { + const decorated = 'decorators' in node && node.decorators.length > 0; + if (decorated && + (type === 'readonly-field' || + type === 'field' || + type === 'method' || + type === 'accessor' || + type === 'get' || + type === 'set')) { + memberGroups.push(`${accessibility}-decorated-${type}`); + memberGroups.push(`decorated-${type}`); + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-decorated-field`); + memberGroups.push(`decorated-field`); + } + } + if (type !== 'readonly-signature' && + type !== 'signature' && + type !== 'static-initialization') { + if (type !== 'constructor') { + // Constructors have no scope + memberGroups.push(`${accessibility}-${scope}-${type}`); + memberGroups.push(`${scope}-${type}`); + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-${scope}-field`); + memberGroups.push(`${scope}-field`); + } + } + memberGroups.push(`${accessibility}-${type}`); + if (type === 'readonly-field') { + memberGroups.push(`${accessibility}-field`); + } + } + } + memberGroups.push(type); + if (type === 'readonly-signature') { + memberGroups.push('signature'); + } + else if (type === 'readonly-field') { + memberGroups.push('field'); + } + // ...then get the rank order for those member groups based on the node + return getRankOrder(memberGroups, orderConfig); +} +/** + * Groups members into arrays of consecutive members with the same rank. + * If, for example, the memberSet parameter looks like the following... + * @example + * ``` + * interface Foo { + * [a: string]: number; + * + * a: x; + * B: x; + * c: x; + * + * c(): void; + * B(): void; + * a(): void; + * + * (): Baz; + * + * new (): Bar; + * } + * ``` + * ...the resulting array will look like: [[a, B, c], [c, B, a]]. + * @param memberSet The members to be grouped. + * @param memberType The configured order of member types. + * @param supportsModifiers It'll get passed to getRank(). + * @returns The array of groups of members. + */ +function groupMembersByType(members, memberTypes, supportsModifiers) { + const groupedMembers = []; + const memberRanks = members.map(member => getRank(member, memberTypes, supportsModifiers)); + let previousRank = undefined; + members.forEach((member, index) => { + if (index === members.length - 1) { + return; + } + const rankOfCurrentMember = memberRanks[index]; + const rankOfNextMember = memberRanks[index + 1]; + if (rankOfCurrentMember === previousRank) { + groupedMembers.at(-1)?.push(member); + } + else if (rankOfCurrentMember === rankOfNextMember) { + groupedMembers.push([member]); + previousRank = rankOfCurrentMember; + } + }); + return groupedMembers; +} +/** + * Gets the lowest possible rank(s) higher than target. + * e.g. given the following order: + * ... + * public-static-method + * protected-static-method + * private-static-method + * public-instance-method + * protected-instance-method + * private-instance-method + * ... + * and considering that a public-instance-method has already been declared, so ranks contains + * public-instance-method, then the lowest possible rank for public-static-method is + * public-instance-method. + * If a lowest possible rank is a member group, a comma separated list of ranks is returned. + * @param ranks the existing ranks in the object. + * @param target the minimum target rank to filter on. + * @param order the current order to be validated. + * @returns the name(s) of the lowest possible rank without dashes (-). + */ +function getLowestRank(ranks, target, order) { + let lowest = ranks[ranks.length - 1]; + ranks.forEach(rank => { + if (rank > target) { + lowest = Math.min(lowest, rank); + } + }); + const lowestRank = order[lowest]; + const lowestRanks = Array.isArray(lowestRank) ? lowestRank : [lowestRank]; + return lowestRanks.map(rank => rank.replaceAll('-', ' ')).join(', '); +} +exports.default = (0, util_1.createRule)({ + name: 'member-ordering', + meta: { + type: 'suggestion', + docs: { + description: 'Require a consistent member declaration order', + }, + messages: { + incorrectGroupOrder: 'Member {{name}} should be declared before all {{rank}} definitions.', + incorrectOrder: 'Member {{member}} should be declared before member {{beforeMember}}.', + incorrectRequiredMembersOrder: `Member {{member}} should be declared after all {{optionalOrRequired}} members.`, + }, + schema: [ + { + type: 'object', + $defs: { + allItems: { + type: 'string', + enum: allMemberTypes, + }, + optionalityOrderOptions: { + type: 'string', + enum: ['optional-first', 'required-first'], + }, + orderOptions: { + type: 'string', + enum: [ + 'alphabetically', + 'alphabetically-case-insensitive', + 'as-written', + 'natural', + 'natural-case-insensitive', + ], + }, + typeItems: { + type: 'string', + enum: [ + 'readonly-signature', + 'signature', + 'readonly-field', + 'field', + 'method', + 'constructor', + ], + }, + // ajv is order-dependent; these configs must come last + baseConfig: { + oneOf: [ + neverConfig, + arrayConfig('#/items/0/$defs/allItems'), + objectConfig('#/items/0/$defs/allItems'), + ], + }, + typesConfig: { + oneOf: [ + neverConfig, + arrayConfig('#/items/0/$defs/typeItems'), + objectConfig('#/items/0/$defs/typeItems'), + ], + }, + }, + additionalProperties: false, + properties: { + classes: { + $ref: '#/items/0/$defs/baseConfig', + }, + classExpressions: { + $ref: '#/items/0/$defs/baseConfig', + }, + default: { + $ref: '#/items/0/$defs/baseConfig', + }, + interfaces: { + $ref: '#/items/0/$defs/typesConfig', + }, + typeLiterals: { + $ref: '#/items/0/$defs/typesConfig', + }, + }, + }, + ], + }, + defaultOptions: [ + { + default: { + memberTypes: exports.defaultOrder, + }, + }, + ], + create(context, [options]) { + /** + * Checks if the member groups are correctly sorted. + * + * @param members Members to be validated. + * @param groupOrder Group order to be validated. + * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. + * + * @return Array of member groups or null if one of the groups is not correctly sorted. + */ + function checkGroupSort(members, groupOrder, supportsModifiers) { + const previousRanks = []; + const memberGroups = []; + let isCorrectlySorted = true; + // Find first member which isn't correctly sorted + for (const member of members) { + const rank = getRank(member, groupOrder, supportsModifiers); + const name = getMemberName(member, context.sourceCode); + const rankLastMember = previousRanks[previousRanks.length - 1]; + if (rank === -1) { + continue; + } + // Works for 1st item because x < undefined === false for any x (typeof string) + if (rank < rankLastMember) { + context.report({ + node: member, + messageId: 'incorrectGroupOrder', + data: { + name, + rank: getLowestRank(previousRanks, rank, groupOrder), + }, + }); + isCorrectlySorted = false; + } + else if (rank === rankLastMember) { + // Same member group --> Push to existing member group array + memberGroups[memberGroups.length - 1].push(member); + } + else { + // New member group --> Create new member group array + previousRanks.push(rank); + memberGroups.push([member]); + } + } + return isCorrectlySorted ? memberGroups : null; + } + /** + * Checks if the members are alphabetically sorted. + * + * @param members Members to be validated. + * @param order What order the members should be sorted in. + * + * @return True if all members are correctly sorted. + */ + function checkAlphaSort(members, order) { + let previousName = ''; + let isCorrectlySorted = true; + // Find first member which isn't correctly sorted + members.forEach(member => { + const name = getMemberName(member, context.sourceCode); + // Note: Not all members have names + if (name) { + if (naturalOutOfOrder(name, previousName, order)) { + context.report({ + node: member, + messageId: 'incorrectOrder', + data: { + beforeMember: previousName, + member: name, + }, + }); + isCorrectlySorted = false; + } + previousName = name; + } + }); + return isCorrectlySorted; + } + function naturalOutOfOrder(name, previousName, order) { + if (name === previousName) { + return false; + } + switch (order) { + case 'alphabetically': + return name < previousName; + case 'alphabetically-case-insensitive': + return name.toLowerCase() < previousName.toLowerCase(); + case 'natural': + return (0, natural_compare_1.default)(name, previousName) !== 1; + case 'natural-case-insensitive': + return ((0, natural_compare_1.default)(name.toLowerCase(), previousName.toLowerCase()) !== 1); + } + } + /** + * Checks if the order of optional and required members is correct based + * on the given 'required' parameter. + * + * @param members Members to be validated. + * @param optionalityOrder Where to place optional members, if not intermixed. + * + * @return True if all required and optional members are correctly sorted. + */ + function checkRequiredOrder(members, optionalityOrder) { + const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); + const report = (member) => context.report({ + loc: member.loc, + messageId: 'incorrectRequiredMembersOrder', + data: { + member: getMemberName(member, context.sourceCode), + optionalOrRequired: optionalityOrder === 'required-first' ? 'required' : 'optional', + }, + }); + // if the optionality of the first item is correct (based on optionalityOrder) + // then the first 0 inclusive to switchIndex exclusive members all + // have the correct optionality + if (isMemberOptional(members[0]) !== + (optionalityOrder === 'optional-first')) { + report(members[0]); + return false; + } + for (let i = switchIndex + 1; i < members.length; i++) { + if (isMemberOptional(members[i]) !== + isMemberOptional(members[switchIndex])) { + report(members[switchIndex]); + return false; + } + } + return true; + } + /** + * Validates if all members are correctly sorted. + * + * @param members Members to be validated. + * @param orderConfig Order config to be validated. + * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. + */ + function validateMembersOrder(members, orderConfig, supportsModifiers) { + if (orderConfig === 'never') { + return; + } + // Standardize config + let order; + let memberTypes; + let optionalityOrder; + /** + * It runs an alphabetic sort on the groups of the members of the class in the source code. + * @param memberSet The members in the class of the source code on which the grouping operation will be performed. + */ + const checkAlphaSortForAllMembers = (memberSet) => { + const hasAlphaSort = !!(order && order !== 'as-written'); + if (hasAlphaSort && Array.isArray(memberTypes)) { + groupMembersByType(memberSet, memberTypes, supportsModifiers).forEach(members => { + checkAlphaSort(members, order); + }); + } + }; + // returns true if everything is good and false if an error was reported + const checkOrder = (memberSet) => { + const hasAlphaSort = !!(order && order !== 'as-written'); + // Check order + if (Array.isArray(memberTypes)) { + const grouped = checkGroupSort(memberSet, memberTypes, supportsModifiers); + if (grouped == null) { + checkAlphaSortForAllMembers(members); + return false; + } + if (hasAlphaSort) { + grouped.map(groupMember => checkAlphaSort(groupMember, order)); + } + } + else if (hasAlphaSort) { + return checkAlphaSort(memberSet, order); + } + return false; + }; + if (Array.isArray(orderConfig)) { + memberTypes = orderConfig; + } + else { + order = orderConfig.order; + memberTypes = orderConfig.memberTypes; + optionalityOrder = orderConfig.optionalityOrder; + } + if (!optionalityOrder) { + checkOrder(members); + return; + } + const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); + if (switchIndex !== -1) { + if (!checkRequiredOrder(members, optionalityOrder)) { + return; + } + checkOrder(members.slice(0, switchIndex)); + checkOrder(members.slice(switchIndex)); + } + else { + checkOrder(members); + } + } + // https://github.com/typescript-eslint/typescript-eslint/issues/5439 + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + return { + ClassDeclaration(node) { + validateMembersOrder(node.body.body, options.classes ?? options.default, true); + }, + 'ClassDeclaration, FunctionDeclaration'(node) { + if ('superClass' in node) { + // ... + } + }, + ClassExpression(node) { + validateMembersOrder(node.body.body, options.classExpressions ?? options.default, true); + }, + TSInterfaceDeclaration(node) { + validateMembersOrder(node.body.body, options.interfaces ?? options.default, false); + }, + TSTypeLiteral(node) { + validateMembersOrder(node.members, options.typeLiterals ?? options.default, false); + }, + }; + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + }, +}); +//# sourceMappingURL=member-ordering.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map new file mode 100644 index 00000000..442ee739 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map @@ -0,0 +1 @@ +{"version":3,"file":"member-ordering.js","sourceRoot":"","sources":["../../src/rules/member-ordering.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sDAAsD;;;;;;AAItD,oDAA0D;AAC1D,sEAA6C;AAE7C,kCAKiB;AAgFjB,MAAM,WAAW,GAA2B;IAC1C,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,WAAmB,EAA0B,EAAE,CAAC,CAAC;IACpE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,WAAW;aAClB;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,WAAW;iBAClB;aACF;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,WAAmB,EAA0B,EAAE,CAAC,CAAC;IACrE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,WAAW,EAAE;YACX,KAAK,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,E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I,CAAC,IAAI,EACd,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,OAAQ,EACtC,KAAK,CACN,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,oBAAoB,CAClB,IAAI,CAAC,OAAO,EACZ,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,OAAQ,EACxC,KAAK,CACN,CAAC;YACJ,CAAC;SACF,CAAC;QACF,4DAA4D;IAC9D,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js new file mode 100644 index 00000000..e5b57ce7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js @@ -0,0 +1,177 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'method-signature-style', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce using a particular method signature syntax', + }, + fixable: 'code', + messages: { + errorMethod: 'Shorthand method signature is forbidden. Use a function property instead.', + errorProperty: 'Function property signature is forbidden. Use a method shorthand instead.', + }, + schema: [ + { + type: 'string', + enum: ['property', 'method'], + }, + ], + }, + defaultOptions: ['property'], + create(context, [mode]) { + function getMethodKey(node) { + let key = context.sourceCode.getText(node.key); + if (node.computed) { + key = `[${key}]`; + } + if (node.optional) { + key = `${key}?`; + } + if (node.readonly) { + key = `readonly ${key}`; + } + return key; + } + function getMethodParams(node) { + let params = '()'; + if (node.params.length > 0) { + const openingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.params[0], util_1.isOpeningParenToken), 'Missing opening paren before first parameter'); + const closingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.params[node.params.length - 1], util_1.isClosingParenToken), 'Missing closing paren after last parameter'); + params = context.sourceCode.text.substring(openingParen.range[0], closingParen.range[1]); + } + if (node.typeParameters != null) { + const typeParams = context.sourceCode.getText(node.typeParameters); + params = `${typeParams}${params}`; + } + return params; + } + function getMethodReturnType(node) { + return node.returnType == null + ? // if the method has no return type, it implicitly has an `any` return type + // we just make it explicit here so we can do the fix + 'any' + : context.sourceCode.getText(node.returnType.typeAnnotation); + } + function getDelimiter(node) { + const lastToken = context.sourceCode.getLastToken(node); + if (lastToken && + ((0, util_1.isSemicolonToken)(lastToken) || (0, util_1.isCommaToken)(lastToken))) { + return lastToken.value; + } + return ''; + } + function isNodeParentModuleDeclaration(node) { + if (!node.parent) { + return false; + } + if (node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { + return true; + } + if (node.parent.type === utils_1.AST_NODE_TYPES.Program) { + return false; + } + return isNodeParentModuleDeclaration(node.parent); + } + return { + ...(mode === 'property' && { + TSMethodSignature(methodNode) { + if (methodNode.kind !== 'method') { + return; + } + const parent = methodNode.parent; + const members = parent.type === utils_1.AST_NODE_TYPES.TSInterfaceBody + ? parent.body + : parent.members; + const duplicatedKeyMethodNodes = members.filter((element) => element.type === utils_1.AST_NODE_TYPES.TSMethodSignature && + element !== methodNode && + getMethodKey(element) === getMethodKey(methodNode)); + const isParentModule = isNodeParentModuleDeclaration(methodNode); + if (duplicatedKeyMethodNodes.length > 0) { + if (isParentModule) { + context.report({ + node: methodNode, + messageId: 'errorMethod', + }); + } + else { + context.report({ + node: methodNode, + messageId: 'errorMethod', + *fix(fixer) { + const methodNodes = [ + methodNode, + ...duplicatedKeyMethodNodes, + ].sort((a, b) => (a.range[0] < b.range[0] ? -1 : 1)); + const typeString = methodNodes + .map(node => { + const params = getMethodParams(node); + const returnType = getMethodReturnType(node); + return `(${params} => ${returnType})`; + }) + .join(' & '); + const key = getMethodKey(methodNode); + const delimiter = getDelimiter(methodNode); + yield fixer.replaceText(methodNode, `${key}: ${typeString}${delimiter}`); + for (const node of duplicatedKeyMethodNodes) { + const lastToken = context.sourceCode.getLastToken(node); + if (lastToken) { + const nextToken = context.sourceCode.getTokenAfter(lastToken); + if (nextToken) { + yield fixer.remove(node); + yield fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], ''); + } + } + } + }, + }); + } + return; + } + if (isParentModule) { + context.report({ + node: methodNode, + messageId: 'errorMethod', + }); + } + else { + context.report({ + node: methodNode, + messageId: 'errorMethod', + fix: fixer => { + const key = getMethodKey(methodNode); + const params = getMethodParams(methodNode); + const returnType = getMethodReturnType(methodNode); + const delimiter = getDelimiter(methodNode); + return fixer.replaceText(methodNode, `${key}: ${params} => ${returnType}${delimiter}`); + }, + }); + } + }, + }), + ...(mode === 'method' && { + TSPropertySignature(propertyNode) { + const typeNode = propertyNode.typeAnnotation?.typeAnnotation; + if (typeNode?.type !== utils_1.AST_NODE_TYPES.TSFunctionType) { + return; + } + context.report({ + node: propertyNode, + messageId: 'errorProperty', + fix: fixer => { + const key = getMethodKey(propertyNode); + const params = getMethodParams(typeNode); + const returnType = getMethodReturnType(typeNode); + const delimiter = getDelimiter(propertyNode); + return fixer.replaceText(propertyNode, `${key}${params}: ${returnType}${delimiter}`); + }, + }); + }, + }), + }; + }, +}); +//# sourceMappingURL=method-signature-style.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map new file mode 100644 index 00000000..5a4870c5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map @@ -0,0 +1 @@ +{"version":3,"file":"method-signature-style.js","sourceRoot":"","sources":["../../src/rules/method-signature-style.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAOiB;AAKjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;Q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,QAAQ,CAAC,CAAC;4BACzC,MAAM,UAAU,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;4BACjD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;4BAC7C,OAAO,KAAK,CAAC,WAAW,CACtB,YAAY,EACZ,GAAG,GAAG,GAAG,MAAM,KAAK,UAAU,GAAG,SAAS,EAAE,CAC7C,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js new file mode 100644 index 00000000..244fcdc1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js @@ -0,0 +1,103 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnderscoreOptions = exports.TypeModifiers = exports.Selectors = exports.PredefinedFormats = exports.Modifiers = exports.MetaSelectors = void 0; +var PredefinedFormats; +(function (PredefinedFormats) { + PredefinedFormats[PredefinedFormats["camelCase"] = 1] = "camelCase"; + PredefinedFormats[PredefinedFormats["strictCamelCase"] = 2] = "strictCamelCase"; + PredefinedFormats[PredefinedFormats["PascalCase"] = 3] = "PascalCase"; + PredefinedFormats[PredefinedFormats["StrictPascalCase"] = 4] = "StrictPascalCase"; + PredefinedFormats[PredefinedFormats["snake_case"] = 5] = "snake_case"; + PredefinedFormats[PredefinedFormats["UPPER_CASE"] = 6] = "UPPER_CASE"; +})(PredefinedFormats || (exports.PredefinedFormats = PredefinedFormats = {})); +var UnderscoreOptions; +(function (UnderscoreOptions) { + UnderscoreOptions[UnderscoreOptions["forbid"] = 1] = "forbid"; + UnderscoreOptions[UnderscoreOptions["allow"] = 2] = "allow"; + UnderscoreOptions[UnderscoreOptions["require"] = 3] = "require"; + // special cases as it's common practice to use double underscore + UnderscoreOptions[UnderscoreOptions["requireDouble"] = 4] = "requireDouble"; + UnderscoreOptions[UnderscoreOptions["allowDouble"] = 5] = "allowDouble"; + UnderscoreOptions[UnderscoreOptions["allowSingleOrDouble"] = 6] = "allowSingleOrDouble"; +})(UnderscoreOptions || (exports.UnderscoreOptions = UnderscoreOptions = {})); +var Selectors; +(function (Selectors) { + // variableLike + Selectors[Selectors["variable"] = 1] = "variable"; + Selectors[Selectors["function"] = 2] = "function"; + Selectors[Selectors["parameter"] = 4] = "parameter"; + // memberLike + Selectors[Selectors["parameterProperty"] = 8] = "parameterProperty"; + Selectors[Selectors["classicAccessor"] = 16] = "classicAccessor"; + Selectors[Selectors["enumMember"] = 32] = "enumMember"; + Selectors[Selectors["classMethod"] = 64] = "classMethod"; + Selectors[Selectors["objectLiteralMethod"] = 128] = "objectLiteralMethod"; + Selectors[Selectors["typeMethod"] = 256] = "typeMethod"; + Selectors[Selectors["classProperty"] = 512] = "classProperty"; + Selectors[Selectors["objectLiteralProperty"] = 1024] = "objectLiteralProperty"; + Selectors[Selectors["typeProperty"] = 2048] = "typeProperty"; + Selectors[Selectors["autoAccessor"] = 4096] = "autoAccessor"; + // typeLike + Selectors[Selectors["class"] = 8192] = "class"; + Selectors[Selectors["interface"] = 16384] = "interface"; + Selectors[Selectors["typeAlias"] = 32768] = "typeAlias"; + Selectors[Selectors["enum"] = 65536] = "enum"; + Selectors[Selectors["typeParameter"] = 131072] = "typeParameter"; + // other + Selectors[Selectors["import"] = 262144] = "import"; +})(Selectors || (exports.Selectors = Selectors = {})); +var MetaSelectors; +(function (MetaSelectors) { + /* eslint-disable @typescript-eslint/prefer-literal-enum-member */ + MetaSelectors[MetaSelectors["default"] = -1] = "default"; + MetaSelectors[MetaSelectors["variableLike"] = 7] = "variableLike"; + MetaSelectors[MetaSelectors["memberLike"] = 8184] = "memberLike"; + MetaSelectors[MetaSelectors["typeLike"] = 253952] = "typeLike"; + MetaSelectors[MetaSelectors["method"] = 448] = "method"; + MetaSelectors[MetaSelectors["property"] = 3584] = "property"; + MetaSelectors[MetaSelectors["accessor"] = 4112] = "accessor"; + /* eslint-enable @typescript-eslint/prefer-literal-enum-member */ +})(MetaSelectors || (exports.MetaSelectors = MetaSelectors = {})); +var Modifiers; +(function (Modifiers) { + // const variable + Modifiers[Modifiers["const"] = 1] = "const"; + // readonly members + Modifiers[Modifiers["readonly"] = 2] = "readonly"; + // static members + Modifiers[Modifiers["static"] = 4] = "static"; + // member accessibility + Modifiers[Modifiers["public"] = 8] = "public"; + Modifiers[Modifiers["protected"] = 16] = "protected"; + Modifiers[Modifiers["private"] = 32] = "private"; + Modifiers[Modifiers["#private"] = 64] = "#private"; + Modifiers[Modifiers["abstract"] = 128] = "abstract"; + // destructured variable + Modifiers[Modifiers["destructured"] = 256] = "destructured"; + // variables declared in the top-level scope + Modifiers[Modifiers["global"] = 512] = "global"; + // things that are exported + Modifiers[Modifiers["exported"] = 1024] = "exported"; + // things that are unused + Modifiers[Modifiers["unused"] = 2048] = "unused"; + // properties that require quoting + Modifiers[Modifiers["requiresQuotes"] = 4096] = "requiresQuotes"; + // class members that are overridden + Modifiers[Modifiers["override"] = 8192] = "override"; + // class methods, object function properties, or functions that are async via the `async` keyword + Modifiers[Modifiers["async"] = 16384] = "async"; + // default imports + Modifiers[Modifiers["default"] = 32768] = "default"; + // namespace imports + Modifiers[Modifiers["namespace"] = 65536] = "namespace"; + // make sure TypeModifiers starts at Modifiers + 1 or else sorting won't work +})(Modifiers || (exports.Modifiers = Modifiers = {})); +var TypeModifiers; +(function (TypeModifiers) { + TypeModifiers[TypeModifiers["boolean"] = 131072] = "boolean"; + TypeModifiers[TypeModifiers["string"] = 262144] = "string"; + TypeModifiers[TypeModifiers["number"] = 524288] = "number"; + TypeModifiers[TypeModifiers["function"] = 1048576] = "function"; + TypeModifiers[TypeModifiers["array"] = 2097152] = "array"; +})(TypeModifiers || (exports.TypeModifiers = TypeModifiers = {})); +//# sourceMappingURL=enums.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map new file mode 100644 index 00000000..d2fd9843 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map @@ -0,0 +1 @@ +{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,iBAOJ;AAPD,WAAK,iBAAiB;IACpB,mEAAa,CAAA;IACb,+EAAe,CAAA;IACf,qEAAU,CAAA;IACV,iFAAgB,CAAA;IAChB,qEAAU,CAAA;IACV,qEAAU,CAAA;AACZ,CAAC,EAPI,iBAAiB,iCAAjB,iBAAiB,QAOrB;AAGD,IAAK,iBASJ;AATD,WAAK,iBAAiB;IACpB,6DAAU,CAAA;IACV,2DAAK,CAAA;IACL,+DAAO,CAAA;IAEP,iEAAiE;IACjE,2EAAa,CAAA;IACb,uEAAW,CAAA;IACX,uFAAmB,CAAA;AACrB,CAAC,EATI,iBAAiB,iCAAjB,iBAAiB,QASrB;AAGD,IAAK,SA2BJ;AA3BD,WAAK,SAAS;IACZ,eAAe;IACf,iDAAiB,CAAA;IACjB,iDAAiB,CAAA;IACjB,mDAAkB,CAAA;IAElB,aAAa;IACb,mEAA0B,CAAA;IAC1B,gEAAwB,CAAA;IACxB,sDAAmB,CAAA;IACnB,wDAAoB,CAAA;IACpB,yEAA4B,CAAA;IAC5B,uDAAmB,CAAA;IACnB,6DAAsB,CAAA;IACtB,8EAA+B,CAAA;IAC/B,4DAAsB,CAAA;IACtB,4DAAsB,CAAA;IAEtB,WAAW;IACX,8CAAe,CAAA;IACf,uDAAmB,CAAA;IACnB,uDAAmB,CAAA;IACnB,6CAAc,CAAA;IACd,gEAAuB,CAAA;IAEvB,QAAQ;IACR,kDAAgB,CAAA;AAClB,CAAC,EA3BI,SAAS,yBAAT,SAAS,QA2Bb;AAGD,IAAK,aAkCJ;AAlCD,WAAK,aAAa;IAChB,kEAAkE;IAClE,wDAAY,CAAA;IACZ,iEAGqB,CAAA;IACrB,gEAUwB,CAAA;IACxB,8DAKyB,CAAA;IACzB,uDAGsB,CAAA;IACtB,4DAGwB,CAAA;IACxB,4DAAiE,CAAA;IACjE,iEAAiE;AACnE,CAAC,EAlCI,aAAa,6BAAb,aAAa,QAkCjB;AAID,IAAK,SAiCJ;AAjCD,WAAK,SAAS;IACZ,iBAAiB;IACjB,2CAAc,CAAA;IACd,mBAAmB;IACnB,iDAAiB,CAAA;IACjB,iBAAiB;IACjB,6CAAe,CAAA;IACf,uBAAuB;IACvB,6CAAe,CAAA;IACf,oDAAkB,CAAA;IAClB,gDAAgB,CAAA;IAChB,kDAAmB,CAAA;IACnB,mDAAiB,CAAA;IACjB,wBAAwB;IACxB,2DAAqB,CAAA;IACrB,4CAA4C;IAC5C,+CAAe,CAAA;IACf,2BAA2B;IAC3B,oDAAkB,CAAA;IAClB,yBAAyB;IACzB,gDAAgB,CAAA;IAChB,kCAAkC;IAClC,gEAAwB,CAAA;IACxB,oCAAoC;IACpC,oDAAkB,CAAA;IAClB,iGAAiG;IACjG,+CAAe,CAAA;IACf,kBAAkB;IAClB,mDAAiB,CAAA;IACjB,oBAAoB;IACpB,uDAAmB,CAAA;IAEnB,6EAA6E;AAC/E,CAAC,EAjCI,SAAS,yBAAT,SAAS,QAiCb;AAGD,IAAK,aAMJ;AAND,WAAK,aAAa;IAChB,4DAAiB,CAAA;IACjB,0DAAgB,CAAA;IAChB,0DAAgB,CAAA;IAChB,+DAAkB,CAAA;IAClB,yDAAe,CAAA;AACjB,CAAC,EANI,aAAa,6BAAb,aAAa,QAMjB"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js new file mode 100644 index 00000000..9eda0c5f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PredefinedFormatToCheckFunction = void 0; +const enums_1 = require("./enums"); +/* +These format functions are taken from `tslint-consistent-codestyle/naming-convention`: +https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/rules/namingConventionRule.ts#L603-L645 + +The license for the code can be viewed here: +https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/LICENSE +*/ +/* +Why not regex here? Because it's actually really, really difficult to create a regex to handle +all of the unicode cases, and we have many non-english users that use non-english characters. +https://gist.github.com/mathiasbynens/6334847 +*/ +function isPascalCase(name) { + return (name.length === 0 || + (name[0] === name[0].toUpperCase() && !name.includes('_'))); +} +function isStrictPascalCase(name) { + return (name.length === 0 || + (name[0] === name[0].toUpperCase() && hasStrictCamelHumps(name, true))); +} +function isCamelCase(name) { + return (name.length === 0 || + (name[0] === name[0].toLowerCase() && !name.includes('_'))); +} +function isStrictCamelCase(name) { + return (name.length === 0 || + (name[0] === name[0].toLowerCase() && hasStrictCamelHumps(name, false))); +} +function hasStrictCamelHumps(name, isUpper) { + function isUppercaseChar(char) { + return char === char.toUpperCase() && char !== char.toLowerCase(); + } + if (name.startsWith('_')) { + return false; + } + for (let i = 1; i < name.length; ++i) { + if (name[i] === '_') { + return false; + } + if (isUpper === isUppercaseChar(name[i])) { + if (isUpper) { + return false; + } + } + else { + isUpper = !isUpper; + } + } + return true; +} +function isSnakeCase(name) { + return (name.length === 0 || + (name === name.toLowerCase() && validateUnderscores(name))); +} +function isUpperCase(name) { + return (name.length === 0 || + (name === name.toUpperCase() && validateUnderscores(name))); +} +/** Check for leading trailing and adjacent underscores */ +function validateUnderscores(name) { + if (name.startsWith('_')) { + return false; + } + let wasUnderscore = false; + for (let i = 1; i < name.length; ++i) { + if (name[i] === '_') { + if (wasUnderscore) { + return false; + } + wasUnderscore = true; + } + else { + wasUnderscore = false; + } + } + return !wasUnderscore; +} +const PredefinedFormatToCheckFunction = { + [enums_1.PredefinedFormats.camelCase]: isCamelCase, + [enums_1.PredefinedFormats.PascalCase]: isPascalCase, + [enums_1.PredefinedFormats.snake_case]: isSnakeCase, + [enums_1.PredefinedFormats.strictCamelCase]: isStrictCamelCase, + [enums_1.PredefinedFormats.StrictPascalCase]: isStrictPascalCase, + [enums_1.PredefinedFormats.UPPER_CASE]: isUpperCase, +}; +exports.PredefinedFormatToCheckFunction = PredefinedFormatToCheckFunction; +//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map new file mode 100644 index 00000000..b050d34a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map @@ -0,0 +1 @@ +{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/format.ts"],"names":[],"mappings":";;;AAAA,mCAA4C;AAE5C;;;;;;EAME;AAEF;;;;EAIE;AAEF,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC;AACD,SAAS,kBAAkB,CAAC,IAAY;IACtC,OAAO,CACL,IAA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,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;IAC3C,CAAC,yBAAiB,CAAC,eAAe,CAAC,EAAE,iBAAiB;IACtD,CAAC,yBAAiB,CAAC,gBAAgB,CAAC,EAAE,kBAAkB;IACxD,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEO,0EAA+B"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js new file mode 100644 index 00000000..c6f1fe36 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.selectorTypeToMessageString = exports.SCHEMA = exports.parseOptions = exports.Modifiers = void 0; +var enums_1 = require("./enums"); +Object.defineProperty(exports, "Modifiers", { enumerable: true, get: function () { return enums_1.Modifiers; } }); +var parse_options_1 = require("./parse-options"); +Object.defineProperty(exports, "parseOptions", { enumerable: true, get: function () { return parse_options_1.parseOptions; } }); +var schema_1 = require("./schema"); +Object.defineProperty(exports, "SCHEMA", { enumerable: true, get: function () { return schema_1.SCHEMA; } }); +var shared_1 = require("./shared"); +Object.defineProperty(exports, "selectorTypeToMessageString", { enumerable: true, get: function () { return shared_1.selectorTypeToMessageString; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map new file mode 100644 index 00000000..4f8f3ebd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AAA3B,kGAAA,SAAS,OAAA;AAElB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAuD;AAA9C,qHAAA,2BAA2B,OAAA"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js new file mode 100644 index 00000000..adf30bd7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js @@ -0,0 +1,70 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseOptions = parseOptions; +const util_1 = require("../../util"); +const enums_1 = require("./enums"); +const shared_1 = require("./shared"); +const validator_1 = require("./validator"); +function normalizeOption(option) { + let weight = 0; + option.modifiers?.forEach(mod => { + weight |= enums_1.Modifiers[mod]; + }); + option.types?.forEach(mod => { + weight |= enums_1.TypeModifiers[mod]; + }); + // give selectors with a filter the _highest_ priority + if (option.filter) { + weight |= 1 << 30; + } + const normalizedOption = { + // format options + custom: option.custom + ? { + match: option.custom.match, + regex: new RegExp(option.custom.regex, 'u'), + } + : null, + filter: option.filter !== undefined + ? typeof option.filter === 'string' + ? { + match: true, + regex: new RegExp(option.filter, 'u'), + } + : { + match: option.filter.match, + regex: new RegExp(option.filter.regex, 'u'), + } + : null, + format: option.format ? option.format.map(f => enums_1.PredefinedFormats[f]) : null, + leadingUnderscore: option.leadingUnderscore !== undefined + ? enums_1.UnderscoreOptions[option.leadingUnderscore] + : null, + modifiers: option.modifiers?.map(m => enums_1.Modifiers[m]) ?? null, + prefix: option.prefix && option.prefix.length > 0 ? option.prefix : null, + suffix: option.suffix && option.suffix.length > 0 ? option.suffix : null, + trailingUnderscore: option.trailingUnderscore !== undefined + ? enums_1.UnderscoreOptions[option.trailingUnderscore] + : null, + types: option.types?.map(m => enums_1.TypeModifiers[m]) ?? null, + // calculated ordering weight based on modifiers + modifierWeight: weight, + }; + const selectors = Array.isArray(option.selector) + ? option.selector + : [option.selector]; + return selectors.map(selector => ({ + selector: (0, shared_1.isMetaSelector)(selector) + ? enums_1.MetaSelectors[selector] + : enums_1.Selectors[selector], + ...normalizedOption, + })); +} +function parseOptions(context) { + const normalizedOptions = context.options.flatMap(normalizeOption); + return Object.fromEntries((0, util_1.getEnumNames)(enums_1.Selectors).map(k => [ + k, + (0, validator_1.createValidator)(k, context, normalizedOptions), + ])); +} +//# sourceMappingURL=parse-options.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map new file mode 100644 index 00000000..c7ebc407 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-options.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/parse-options.ts"],"names":[],"mappings":";;AA6FS,oCAAY;AAtFrB,qCAA0C;AAC1C,mCAOiB;AACjB,qCAA0C;AAC1C,2CAA8C;AAE9C,SAAS,eAAe,CAAC,MAAgB;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,iBAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,qBAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,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EAAE,CAAC;QAC/B,CAAC;QACD,IAAA,2BAAe,EAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC;KAC/C,CAAC,CACc,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js new file mode 100644 index 00000000..04002301 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js @@ -0,0 +1,307 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SCHEMA = void 0; +const util_1 = require("../../util"); +const enums_1 = require("./enums"); +const $DEFS = { + // enums + predefinedFormats: { + enum: (0, util_1.getEnumNames)(enums_1.PredefinedFormats), + type: 'string', + }, + typeModifiers: { + enum: (0, util_1.getEnumNames)(enums_1.TypeModifiers), + type: 'string', + }, + underscoreOptions: { + enum: (0, util_1.getEnumNames)(enums_1.UnderscoreOptions), + type: 'string', + }, + // repeated types + formatOptionsConfig: { + oneOf: [ + { + additionalItems: false, + items: { + $ref: '#/$defs/predefinedFormats', + }, + type: 'array', + }, + { + type: 'null', + }, + ], + }, + matchRegexConfig: { + additionalProperties: false, + properties: { + match: { type: 'boolean' }, + regex: { type: 'string' }, + }, + required: ['match', 'regex'], + type: 'object', + }, + prefixSuffixConfig: { + additionalItems: false, + items: { + minLength: 1, + type: 'string', + }, + type: 'array', + }, +}; +const UNDERSCORE_SCHEMA = { + $ref: '#/$defs/underscoreOptions', +}; +const PREFIX_SUFFIX_SCHEMA = { + $ref: '#/$defs/prefixSuffixConfig', +}; +const MATCH_REGEX_SCHEMA = { + $ref: '#/$defs/matchRegexConfig', +}; +const FORMAT_OPTIONS_PROPERTIES = { + custom: MATCH_REGEX_SCHEMA, + failureMessage: { + type: 'string', + }, + format: { + $ref: '#/$defs/formatOptionsConfig', + }, + leadingUnderscore: UNDERSCORE_SCHEMA, + prefix: PREFIX_SUFFIX_SCHEMA, + suffix: PREFIX_SUFFIX_SCHEMA, + trailingUnderscore: UNDERSCORE_SCHEMA, +}; +function selectorSchema(selectorString, allowType, modifiers) { + const selector = { + filter: { + oneOf: [ + { + minLength: 1, + type: 'string', + }, + MATCH_REGEX_SCHEMA, + ], + }, + selector: { + enum: [selectorString], + type: 'string', + }, + }; + if (modifiers && modifiers.length > 0) { + selector.modifiers = { + additionalItems: false, + items: { + enum: modifiers, + type: 'string', + }, + type: 'array', + }; + } + if (allowType) { + selector.types = { + additionalItems: false, + items: { + $ref: '#/$defs/typeModifiers', + }, + type: 'array', + }; + } + return [ + { + additionalProperties: false, + description: `Selector '${selectorString}'`, + properties: { + ...FORMAT_OPTIONS_PROPERTIES, + ...selector, + }, + required: ['selector', 'format'], + type: 'object', + }, + ]; +} +function selectorsSchema() { + return { + additionalProperties: false, + description: 'Multiple selectors in one config', + properties: { + ...FORMAT_OPTIONS_PROPERTIES, + filter: { + oneOf: [ + { + minLength: 1, + type: 'string', + }, + MATCH_REGEX_SCHEMA, + ], + }, + modifiers: { + additionalItems: false, + items: { + enum: (0, util_1.getEnumNames)(enums_1.Modifiers), + type: 'string', + }, + type: 'array', + }, + selector: { + additionalItems: false, + items: { + enum: [...(0, util_1.getEnumNames)(enums_1.MetaSelectors), ...(0, util_1.getEnumNames)(enums_1.Selectors)], + type: 'string', + }, + type: 'array', + }, + types: { + additionalItems: false, + items: { + $ref: '#/$defs/typeModifiers', + }, + type: 'array', + }, + }, + required: ['selector', 'format'], + type: 'object', + }; +} +const SCHEMA = { + $defs: $DEFS, + additionalItems: false, + items: { + oneOf: [ + selectorsSchema(), + ...selectorSchema('default', false, (0, util_1.getEnumNames)(enums_1.Modifiers)), + ...selectorSchema('variableLike', false, ['unused', 'async']), + ...selectorSchema('variable', true, [ + 'const', + 'destructured', + 'exported', + 'global', + 'unused', + 'async', + ]), + ...selectorSchema('function', false, [ + 'exported', + 'global', + 'unused', + 'async', + ]), + ...selectorSchema('parameter', true, ['destructured', 'unused']), + ...selectorSchema('memberLike', false, [ + 'abstract', + 'private', + '#private', + 'protected', + 'public', + 'readonly', + 'requiresQuotes', + 'static', + 'override', + 'async', + ]), + ...selectorSchema('classProperty', true, [ + 'abstract', + 'private', + '#private', + 'protected', + 'public', + 'readonly', + 'requiresQuotes', + 'static', + 'override', + ]), + ...selectorSchema('objectLiteralProperty', true, [ + 'public', + 'requiresQuotes', + ]), + ...selectorSchema('typeProperty', true, [ + 'public', + 'readonly', + 'requiresQuotes', + ]), + ...selectorSchema('parameterProperty', true, [ + 'private', + 'protected', + 'public', + 'readonly', + ]), + ...selectorSchema('property', true, [ + 'abstract', + 'private', + '#private', + 'protected', + 'public', + 'readonly', + 'requiresQuotes', + 'static', + 'override', + 'async', + ]), + ...selectorSchema('classMethod', false, [ + 'abstract', + 'private', + '#private', + 'protected', + 'public', + 'requiresQuotes', + 'static', + 'override', + 'async', + ]), + ...selectorSchema('objectLiteralMethod', false, [ + 'public', + 'requiresQuotes', + 'async', + ]), + ...selectorSchema('typeMethod', false, ['public', 'requiresQuotes']), + ...selectorSchema('method', false, [ + 'abstract', + 'private', + '#private', + 'protected', + 'public', + 'requiresQuotes', + 'static', + 'override', + 'async', + ]), + ...selectorSchema('classicAccessor', true, [ + 'abstract', + 'private', + 'protected', + 'public', + 'requiresQuotes', + 'static', + 'override', + ]), + ...selectorSchema('autoAccessor', true, [ + 'abstract', + 'private', + 'protected', + 'public', + 'requiresQuotes', + 'static', + 'override', + ]), + ...selectorSchema('accessor', true, [ + 'abstract', + 'private', + 'protected', + 'public', + 'requiresQuotes', + 'static', + 'override', + ]), + ...selectorSchema('enumMember', false, ['requiresQuotes']), + ...selectorSchema('typeLike', false, ['abstract', 'exported', 'unused']), + ...selectorSchema('class', false, ['abstract', 'exported', 'unused']), + ...selectorSchema('interface', false, ['exported', 'unused']), + ...selectorSchema('typeAlias', false, ['exported', 'unused']), + ...selectorSchema('enum', false, ['exported', 'unused']), + ...selectorSchema('typeParameter', false, ['unused']), + ...selectorSchema('import', false, ['default', 'namespace']), + ], + }, + type: 'array', +}; +exports.SCHEMA = SCHEMA; +//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map new file mode 100644 index 00000000..7273a646 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map @@ -0,0 +1 @@ +{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/schema.ts"],"names":[],"mappings":";;;AAOA,qCAA0C;AAC1C,mCAOiB;AAEjB,MAAM,KAAK,GAA2C;IACpD,QAAQ;IACR,iBAAiB,EAAE;QACjB,IAAI,EAAE,IAAA,mBAAY,EAAC,yBAAiB,CAAC;QACrC,IAAI,EAAE,QAAQ;KACf;IACD,aAAa,EAAE;QACb,IAAI,EAAE,IAAA,mBAAY,EAAC,qBAAa,CAAC;QACjC,IAAI,EAAE,QAAQ;KACf;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,IAAA,mBAAY,EAAC,yBAAiB,CAAC;QACrC,IAAI,EAAE,QAAQ;KACf;IAED,iBAAiB;IACjB,mBAAmB,EAAE;QACnB,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,KAAK;gBACtB,KAAK,EAAE;oBACL,IAAI,EAAE,2BAA2B;iBAClC;gBACD,IAAI,EAAE,OAAO;aACd;YACD;gBACE,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,gBAAgB,EAAE;QAChB,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,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,EAAE;gBAClC,UAAU;gBACV,SAAS;gBACT,WAAW;gBACX,QAAQ;gBACR,gBAAgB;gBAChB,QAAQ;gBACR,UAAU;aACX,CAAC;YACF,GAAG,cAAc,CAAC,YAAY,EAAE,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC;YAE1D,GAAG,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YACxE,GAAG,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YACrE,GAAG,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAC7D,GAAG,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAC7D,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACxD,GAAG,cAAc,CAAC,eAAe,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YACrD,GAAG,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;SAC7D;KACF;IACD,IAAI,EAAE,OAAO;CACd,CAAC;AAEO,wBAAM"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js new file mode 100644 index 00000000..63367175 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isMetaSelector = isMetaSelector; +exports.isMethodOrPropertySelector = isMethodOrPropertySelector; +exports.selectorTypeToMessageString = selectorTypeToMessageString; +const enums_1 = require("./enums"); +function selectorTypeToMessageString(selectorType) { + const notCamelCase = selectorType.replaceAll(/([A-Z])/g, ' $1'); + return notCamelCase.charAt(0).toUpperCase() + notCamelCase.slice(1); +} +function isMetaSelector(selector) { + return selector in enums_1.MetaSelectors; +} +function isMethodOrPropertySelector(selector) { + return (selector === enums_1.MetaSelectors.method || selector === enums_1.MetaSelectors.property); +} +//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map new file mode 100644 index 00000000..ac186b6a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/shared.ts"],"names":[],"mappings":";;AA6BE,wCAAc;AACd,gEAA0B;AAC1B,kEAA2B;AAxB7B,mCAAwC;AAExC,SAAS,2BAA2B,CAAC,YAA6B;IAChE,MAAM,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAChE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,cAAc,CACrB,QAAsE;IAEtE,OAAO,QAAQ,IAAI,qBAAa,CAAC;AACnC,CAAC;AAED,SAAS,0BAA0B,CACjC,QAAsE;IAEtE,OAAO,CACL,QAAQ,KAAK,qBAAa,CAAC,MAAM,IAAI,QAAQ,KAAK,qBAAa,CAAC,QAAQ,CACzE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map new file mode 100644 index 00000000..60c24d81 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js new file mode 100644 index 00000000..abaa1070 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js @@ -0,0 +1,350 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createValidator = createValidator; +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../../util"); +const enums_1 = require("./enums"); +const format_1 = require("./format"); +const shared_1 = require("./shared"); +function createValidator(type, context, allConfigs) { + // make sure the "highest priority" configs are checked first + const selectorType = enums_1.Selectors[type]; + const configs = allConfigs + // gather all of the applicable selectors + .filter(c => (c.selector & selectorType) !== 0 || + c.selector === enums_1.MetaSelectors.default) + .sort((a, b) => { + if (a.selector === b.selector) { + // in the event of the same selector, order by modifier weight + // sort descending - the type modifiers are "more important" + return b.modifierWeight - a.modifierWeight; + } + const aIsMeta = (0, shared_1.isMetaSelector)(a.selector); + const bIsMeta = (0, shared_1.isMetaSelector)(b.selector); + // non-meta selectors should go ahead of meta selectors + if (aIsMeta && !bIsMeta) { + return 1; + } + if (!aIsMeta && bIsMeta) { + return -1; + } + const aIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(a.selector); + const bIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(b.selector); + // for backward compatibility, method and property have higher precedence than other meta selectors + if (aIsMethodOrProperty && !bIsMethodOrProperty) { + return -1; + } + if (!aIsMethodOrProperty && bIsMethodOrProperty) { + return 1; + } + // both aren't meta selectors + // sort descending - the meta selectors are "least important" + return b.selector - a.selector; + }); + return (node, modifiers = new Set()) => { + const originalName = node.type === utils_1.AST_NODE_TYPES.Identifier || + node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier + ? node.name + : `${node.value}`; + // return will break the loop and stop checking configs + // it is only used when the name is known to have failed or succeeded a config. + for (const config of configs) { + if (config.filter?.regex.test(originalName) !== config.filter?.match) { + // name does not match the filter + continue; + } + if (config.modifiers?.some(modifier => !modifiers.has(modifier))) { + // does not have the required modifiers + continue; + } + if (!isCorrectType(node, config, context, selectorType)) { + // is not the correct type + continue; + } + let name = originalName; + name = validateUnderscore('leading', config, name, node, originalName); + if (name == null) { + // fail + return; + } + name = validateUnderscore('trailing', config, name, node, originalName); + if (name == null) { + // fail + return; + } + name = validateAffix('prefix', config, name, node, originalName); + if (name == null) { + // fail + return; + } + name = validateAffix('suffix', config, name, node, originalName); + if (name == null) { + // fail + return; + } + if (!validateCustom(config, name, node, originalName)) { + // fail + return; + } + if (!validatePredefinedFormat(config, name, node, originalName, modifiers)) { + // fail + return; + } + // it's valid for this config, so we don't need to check any more configs + return; + } + }; + // centralizes the logic for formatting the report data + function formatReportData({ affixes, count, custom, formats, originalName, position, processedName, }) { + return { + affixes: affixes?.join(', '), + count, + formats: formats?.map(f => enums_1.PredefinedFormats[f]).join(', '), + name: originalName, + position, + processedName, + regex: custom?.regex.toString(), + regexMatch: custom?.match === true + ? 'match' + : custom?.match === false + ? 'not match' + : null, + type: (0, shared_1.selectorTypeToMessageString)(type), + }; + } + /** + * @returns the name with the underscore removed, if it is valid according to the specified underscore option, null otherwise + */ + function validateUnderscore(position, config, name, node, originalName) { + const option = position === 'leading' + ? config.leadingUnderscore + : config.trailingUnderscore; + if (!option) { + return name; + } + const hasSingleUnderscore = position === 'leading' + ? () => name.startsWith('_') + : () => name.endsWith('_'); + const trimSingleUnderscore = position === 'leading' + ? () => name.slice(1) + : () => name.slice(0, -1); + const hasDoubleUnderscore = position === 'leading' + ? () => name.startsWith('__') + : () => name.endsWith('__'); + const trimDoubleUnderscore = position === 'leading' + ? () => name.slice(2) + : () => name.slice(0, -2); + switch (option) { + // ALLOW - no conditions as the user doesn't care if it's there or not + case enums_1.UnderscoreOptions.allow: { + if (hasSingleUnderscore()) { + return trimSingleUnderscore(); + } + return name; + } + case enums_1.UnderscoreOptions.allowDouble: { + if (hasDoubleUnderscore()) { + return trimDoubleUnderscore(); + } + return name; + } + case enums_1.UnderscoreOptions.allowSingleOrDouble: { + if (hasDoubleUnderscore()) { + return trimDoubleUnderscore(); + } + if (hasSingleUnderscore()) { + return trimSingleUnderscore(); + } + return name; + } + // FORBID + case enums_1.UnderscoreOptions.forbid: { + if (hasSingleUnderscore()) { + context.report({ + data: formatReportData({ + count: 'one', + originalName, + position, + }), + messageId: 'unexpectedUnderscore', + node, + }); + return null; + } + return name; + } + // REQUIRE + case enums_1.UnderscoreOptions.require: { + if (!hasSingleUnderscore()) { + context.report({ + data: formatReportData({ + count: 'one', + originalName, + position, + }), + messageId: 'missingUnderscore', + node, + }); + return null; + } + return trimSingleUnderscore(); + } + case enums_1.UnderscoreOptions.requireDouble: { + if (!hasDoubleUnderscore()) { + context.report({ + data: formatReportData({ + count: 'two', + originalName, + position, + }), + messageId: 'missingUnderscore', + node, + }); + return null; + } + return trimDoubleUnderscore(); + } + } + } + /** + * @returns the name with the affix removed, if it is valid according to the specified affix option, null otherwise + */ + function validateAffix(position, config, name, node, originalName) { + const affixes = config[position]; + if (!affixes || affixes.length === 0) { + return name; + } + for (const affix of affixes) { + const hasAffix = position === 'prefix' ? name.startsWith(affix) : name.endsWith(affix); + const trimAffix = position === 'prefix' + ? () => name.slice(affix.length) + : () => name.slice(0, -affix.length); + if (hasAffix) { + // matches, so trim it and return + return trimAffix(); + } + } + context.report({ + data: formatReportData({ + affixes, + originalName, + position, + }), + messageId: 'missingAffix', + node, + }); + return null; + } + /** + * @returns true if the name is valid according to the `regex` option, false otherwise + */ + function validateCustom(config, name, node, originalName) { + const custom = config.custom; + if (!custom) { + return true; + } + const result = custom.regex.test(name); + if (custom.match && result) { + return true; + } + if (!custom.match && !result) { + return true; + } + context.report({ + data: formatReportData({ + custom, + originalName, + }), + messageId: 'satisfyCustom', + node, + }); + return false; + } + /** + * @returns true if the name is valid according to the `format` option, false otherwise + */ + function validatePredefinedFormat(config, name, node, originalName, modifiers) { + const formats = config.format; + if (!formats?.length) { + return true; + } + if (!modifiers.has(enums_1.Modifiers.requiresQuotes)) { + for (const format of formats) { + const checker = format_1.PredefinedFormatToCheckFunction[format]; + if (checker(name)) { + return true; + } + } + } + context.report({ + data: formatReportData({ + formats, + originalName, + processedName: name, + }), + messageId: originalName === name + ? 'doesNotMatchFormat' + : 'doesNotMatchFormatTrimmed', + node, + }); + return false; + } +} +const SelectorsAllowedToHaveTypes = enums_1.Selectors.variable | + enums_1.Selectors.parameter | + enums_1.Selectors.classProperty | + enums_1.Selectors.objectLiteralProperty | + enums_1.Selectors.typeProperty | + enums_1.Selectors.parameterProperty | + enums_1.Selectors.classicAccessor; +function isCorrectType(node, config, context, selector) { + if (config.types == null) { + return true; + } + if ((SelectorsAllowedToHaveTypes & selector) === 0) { + return true; + } + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const type = services + .getTypeAtLocation(node) + // remove null and undefined from the type, as we don't care about it here + .getNonNullableType(); + for (const allowedType of config.types) { + switch (allowedType) { + case enums_1.TypeModifiers.array: + if (isAllTypesMatch(type, t => checker.isArrayType(t) || checker.isTupleType(t))) { + return true; + } + break; + case enums_1.TypeModifiers.function: + if (isAllTypesMatch(type, t => t.getCallSignatures().length > 0)) { + return true; + } + break; + case enums_1.TypeModifiers.boolean: + case enums_1.TypeModifiers.number: + case enums_1.TypeModifiers.string: { + const typeString = checker.typeToString( + // this will resolve things like true => boolean, 'a' => string and 1 => number + checker.getWidenedType(checker.getBaseTypeOfLiteralType(type))); + const allowedTypeString = enums_1.TypeModifiers[allowedType]; + if (typeString === allowedTypeString) { + return true; + } + break; + } + } + } + return false; +} +/** + * @returns `true` if the type (or all union types) in the given type return true for the callback + */ +function isAllTypesMatch(type, cb) { + if (type.isUnion()) { + return type.types.every(t => cb(t)); + } + return cb(type); +} +//# sourceMappingURL=validator.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map new file mode 100644 index 00000000..ff2c4919 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/validator.ts"],"names":[],"mappings":";;AAkfS,0CAAe;AA/exB,oDAA0D;AAK1D,qCAA+C;AAC/C,mCAOiB;AACjB,qCAA2D;AAC3D,qCAIkB;AAElB,SAAS,eAAe,CACtB,IAAqB,EACrB,OAAgB,EAChB,UAAgC;IAIhC,6DAA6D;IAC7D,MAAM,YAAY,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,UAAU;QACxB,yCAAyC;SACxC,M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,IAAI,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js new file mode 100644 index 00000000..744296b7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js @@ -0,0 +1,505 @@ +"use strict"; +// This rule was feature-frozen before we enabled no-property-in-node. +/* eslint-disable eslint-plugin/no-property-in-node */ +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const naming_convention_utils_1 = require("./naming-convention-utils"); +// This essentially mirrors ESLint's `camelcase` rule +// note that that rule ignores leading and trailing underscores and only checks those in the middle of a variable name +const defaultCamelCaseAllTheThingsConfig = [ + { + format: ['camelCase'], + leadingUnderscore: 'allow', + selector: 'default', + trailingUnderscore: 'allow', + }, + { + format: ['camelCase', 'PascalCase'], + selector: 'import', + }, + { + format: ['camelCase', 'UPPER_CASE'], + leadingUnderscore: 'allow', + selector: 'variable', + trailingUnderscore: 'allow', + }, + { + format: ['PascalCase'], + selector: 'typeLike', + }, +]; +exports.default = (0, util_1.createRule)({ + name: 'naming-convention', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce naming conventions for everything across a codebase', + // technically only requires type checking if the user uses "type" modifiers + requiresTypeChecking: true, + }, + messages: { + doesNotMatchFormat: '{{type}} name `{{name}}` must match one of the following formats: {{formats}}', + doesNotMatchFormatTrimmed: '{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}', + missingAffix: '{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}', + missingUnderscore: '{{type}} name `{{name}}` must have {{count}} {{position}} underscore(s).', + satisfyCustom: '{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}', + unexpectedUnderscore: '{{type}} name `{{name}}` must not have a {{position}} underscore.', + }, + schema: naming_convention_utils_1.SCHEMA, + }, + defaultOptions: defaultCamelCaseAllTheThingsConfig, + create(contextWithoutDefaults) { + const context = contextWithoutDefaults.options.length > 0 + ? contextWithoutDefaults + : // only apply the defaults when the user provides no config + Object.setPrototypeOf({ + options: defaultCamelCaseAllTheThingsConfig, + }, contextWithoutDefaults); + const validators = (0, naming_convention_utils_1.parseOptions)(context); + const compilerOptions = (0, util_1.getParserServices)(context, true).program?.getCompilerOptions() ?? {}; + function handleMember(validator, node, modifiers) { + const key = node.key; + if (requiresQuoting(key, compilerOptions.target)) { + modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); + } + validator(key, modifiers); + } + function getMemberModifiers(node) { + const modifiers = new Set(); + if ('key' in node && node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + modifiers.add(naming_convention_utils_1.Modifiers['#private']); + } + else if (node.accessibility) { + modifiers.add(naming_convention_utils_1.Modifiers[node.accessibility]); + } + else { + modifiers.add(naming_convention_utils_1.Modifiers.public); + } + if (node.static) { + modifiers.add(naming_convention_utils_1.Modifiers.static); + } + if ('readonly' in node && node.readonly) { + modifiers.add(naming_convention_utils_1.Modifiers.readonly); + } + if ('override' in node && node.override) { + modifiers.add(naming_convention_utils_1.Modifiers.override); + } + if (node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || + node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || + node.type === utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty) { + modifiers.add(naming_convention_utils_1.Modifiers.abstract); + } + return modifiers; + } + const { unusedVariables } = (0, util_1.collectVariables)(context); + function isUnused(name, initialScope) { + let variable = null; + let scope = initialScope; + while (scope) { + variable = scope.set.get(name) ?? null; + if (variable) { + break; + } + scope = scope.upper; + } + if (!variable) { + return false; + } + return unusedVariables.has(variable); + } + function isDestructured(id) { + return ( + // `const { x }` + // does not match `const { x: y }` + (id.parent.type === utils_1.AST_NODE_TYPES.Property && id.parent.shorthand) || + // `const { x = 2 }` + // does not match const `{ x: y = 2 }` + (id.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern && + id.parent.parent.type === utils_1.AST_NODE_TYPES.Property && + id.parent.parent.shorthand)); + } + function isAsyncMemberOrProperty(propertyOrMemberNode) { + return Boolean('value' in propertyOrMemberNode && + propertyOrMemberNode.value && + 'async' in propertyOrMemberNode.value && + propertyOrMemberNode.value.async); + } + function isAsyncVariableIdentifier(id) { + return Boolean(('async' in id.parent && id.parent.async) || + ('init' in id.parent && + id.parent.init && + 'async' in id.parent.init && + id.parent.init.async)); + } + const selectors = { + // #region import + 'FunctionDeclaration, TSDeclareFunction, FunctionExpression': { + handler: (node, validator) => { + if (node.id == null) { + return; + } + const modifiers = new Set(); + // functions create their own nested scope + const scope = context.sourceCode.getScope(node).upper; + if (isGlobal(scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.global); + } + if (isExported(node, node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + if (node.async) { + modifiers.add(naming_convention_utils_1.Modifiers.async); + } + validator(node.id, modifiers); + }, + validator: validators.function, + }, + // #endregion + // #region variable + 'ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier': { + handler: (node, validator) => { + const modifiers = new Set(); + switch (node.type) { + case utils_1.AST_NODE_TYPES.ImportDefaultSpecifier: + modifiers.add(naming_convention_utils_1.Modifiers.default); + break; + case utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier: + modifiers.add(naming_convention_utils_1.Modifiers.namespace); + break; + case utils_1.AST_NODE_TYPES.ImportSpecifier: + // Handle `import { default as Foo }` + if (node.imported.type === utils_1.AST_NODE_TYPES.Identifier && + node.imported.name !== 'default') { + return; + } + modifiers.add(naming_convention_utils_1.Modifiers.default); + break; + } + validator(node.local, modifiers); + }, + validator: validators.import, + }, + // #endregion + // #region function + VariableDeclarator: { + handler: (node, validator) => { + const identifiers = getIdentifiersFromPattern(node.id); + const baseModifiers = new Set(); + const parent = node.parent; + if (parent.kind === 'const') { + baseModifiers.add(naming_convention_utils_1.Modifiers.const); + } + if (isGlobal(context.sourceCode.getScope(node))) { + baseModifiers.add(naming_convention_utils_1.Modifiers.global); + } + identifiers.forEach(id => { + const modifiers = new Set(baseModifiers); + if (isDestructured(id)) { + modifiers.add(naming_convention_utils_1.Modifiers.destructured); + } + const scope = context.sourceCode.getScope(id); + if (isExported(parent, id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + if (isAsyncVariableIdentifier(id)) { + modifiers.add(naming_convention_utils_1.Modifiers.async); + } + validator(id, modifiers); + }); + }, + validator: validators.variable, + }, + // #endregion function + // #region parameter + ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { + handler: (node, validator) => { + const modifiers = getMemberModifiers(node); + handleMember(validator, node, modifiers); + }, + validator: validators.classProperty, + }, + // #endregion parameter + // #region parameterProperty + ':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { + handler: (node, validator) => { + const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); + handleMember(validator, node, modifiers); + }, + validator: validators.objectLiteralProperty, + }, + // #endregion parameterProperty + // #region property + [[ + ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "ArrowFunctionExpression"]', + ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "FunctionExpression"]', + ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "TSEmptyBodyFunctionExpression"]', + ':matches(MethodDefinition, TSAbstractMethodDefinition)[computed = false][kind = "method"]', + ].join(', ')]: { + handler: (node, validator) => { + const modifiers = getMemberModifiers(node); + if (isAsyncMemberOrProperty(node)) { + modifiers.add(naming_convention_utils_1.Modifiers.async); + } + handleMember(validator, node, modifiers); + }, + validator: validators.classMethod, + }, + [[ + 'MethodDefinition[computed = false]:matches([kind = "get"], [kind = "set"])', + 'TSAbstractMethodDefinition[computed = false]:matches([kind="get"], [kind="set"])', + ].join(', ')]: { + handler: (node, validator) => { + const modifiers = getMemberModifiers(node); + handleMember(validator, node, modifiers); + }, + validator: validators.classicAccessor, + }, + [[ + 'Property[computed = false][kind = "init"][value.type = "ArrowFunctionExpression"]', + 'Property[computed = false][kind = "init"][value.type = "FunctionExpression"]', + 'Property[computed = false][kind = "init"][value.type = "TSEmptyBodyFunctionExpression"]', + ].join(', ')]: { + handler: (node, validator) => { + const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); + if (isAsyncMemberOrProperty(node)) { + modifiers.add(naming_convention_utils_1.Modifiers.async); + } + handleMember(validator, node, modifiers); + }, + validator: validators.objectLiteralMethod, + }, + // #endregion property + // #region method + [[ + 'TSMethodSignature[computed = false]', + 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type = "TSFunctionType"]', + ].join(', ')]: { + handler: (node, validator) => { + const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); + handleMember(validator, node, modifiers); + }, + validator: validators.typeMethod, + }, + [[ + utils_1.AST_NODE_TYPES.AccessorProperty, + utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty, + ].join(', ')]: { + handler: (node, validator) => { + const modifiers = getMemberModifiers(node); + handleMember(validator, node, modifiers); + }, + validator: validators.autoAccessor, + }, + 'FunctionDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, FunctionExpression, ArrowFunctionExpression': { + handler: (node, validator) => { + node.params.forEach(param => { + if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { + return; + } + const identifiers = getIdentifiersFromPattern(param); + identifiers.forEach(i => { + const modifiers = new Set(); + if (isDestructured(i)) { + modifiers.add(naming_convention_utils_1.Modifiers.destructured); + } + if (isUnused(i.name, context.sourceCode.getScope(i))) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(i, modifiers); + }); + }); + }, + validator: validators.parameter, + }, + // #endregion method + // #region accessor + 'Property[computed = false]:matches([kind = "get"], [kind = "set"])': { + handler: (node, validator) => { + const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); + handleMember(validator, node, modifiers); + }, + validator: validators.classicAccessor, + }, + TSParameterProperty: { + handler: (node, validator) => { + const modifiers = getMemberModifiers(node); + const identifiers = getIdentifiersFromPattern(node.parameter); + identifiers.forEach(i => { + validator(i, modifiers); + }); + }, + validator: validators.parameterProperty, + }, + // #endregion accessor + // #region autoAccessor + 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type != "TSFunctionType"]': { + handler: (node, validator) => { + const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); + if (node.readonly) { + modifiers.add(naming_convention_utils_1.Modifiers.readonly); + } + handleMember(validator, node, modifiers); + }, + validator: validators.typeProperty, + }, + // #endregion autoAccessor + // #region enumMember + // computed is optional, so can't do [computed = false] + 'ClassDeclaration, ClassExpression': { + handler: (node, validator) => { + const id = node.id; + if (id == null) { + return; + } + const modifiers = new Set(); + // classes create their own nested scope + const scope = context.sourceCode.getScope(node).upper; + if (node.abstract) { + modifiers.add(naming_convention_utils_1.Modifiers.abstract); + } + if (isExported(node, id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(id, modifiers); + }, + validator: validators.class, + }, + // #endregion enumMember + // #region class + TSEnumDeclaration: { + handler: (node, validator) => { + const modifiers = new Set(); + // enums create their own nested scope + const scope = context.sourceCode.getScope(node).upper; + if (isExported(node, node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(node.id, modifiers); + }, + validator: validators.enum, + }, + // #endregion class + // #region interface + 'TSEnumMember[computed != true]': { + handler: (node, validator) => { + const id = node.id; + const modifiers = new Set(); + if (requiresQuoting(id, compilerOptions.target)) { + modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); + } + validator(id, modifiers); + }, + validator: validators.enumMember, + }, + // #endregion interface + // #region typeAlias + TSInterfaceDeclaration: { + handler: (node, validator) => { + const modifiers = new Set(); + const scope = context.sourceCode.getScope(node); + if (isExported(node, node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(node.id, modifiers); + }, + validator: validators.interface, + }, + // #endregion typeAlias + // #region enum + TSTypeAliasDeclaration: { + handler: (node, validator) => { + const modifiers = new Set(); + const scope = context.sourceCode.getScope(node); + if (isExported(node, node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.exported); + } + if (isUnused(node.id.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(node.id, modifiers); + }, + validator: validators.typeAlias, + }, + // #endregion enum + // #region typeParameter + 'TSTypeParameterDeclaration > TSTypeParameter': { + handler: (node, validator) => { + const modifiers = new Set(); + const scope = context.sourceCode.getScope(node); + if (isUnused(node.name.name, scope)) { + modifiers.add(naming_convention_utils_1.Modifiers.unused); + } + validator(node.name, modifiers); + }, + validator: validators.typeParameter, + }, + // #endregion typeParameter + }; + return Object.fromEntries(Object.entries(selectors).map(([selector, { handler, validator }]) => { + return [ + selector, + (node) => { + handler(node, validator); + }, + ]; + })); + }, +}); +function getIdentifiersFromPattern(pattern) { + const identifiers = []; + const visitor = new scope_manager_1.PatternVisitor({}, pattern, id => identifiers.push(id)); + visitor.visit(pattern); + return identifiers; +} +function isExported(node, name, scope) { + if (node?.parent?.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || + node?.parent?.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) { + return true; + } + if (scope == null) { + return false; + } + const variable = scope.set.get(name); + if (variable) { + for (const ref of variable.references) { + const refParent = ref.identifier.parent; + if (refParent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || + refParent.type === utils_1.AST_NODE_TYPES.ExportSpecifier) { + return true; + } + } + } + return false; +} +function isGlobal(scope) { + if (scope == null) { + return false; + } + return (scope.type === utils_1.TSESLint.Scope.ScopeType.global || + scope.type === utils_1.TSESLint.Scope.ScopeType.module); +} +function requiresQuoting(node, target) { + const name = node.type === utils_1.AST_NODE_TYPES.Identifier || + node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier + ? node.name + : `${node.value}`; + return (0, util_1.requiresQuoting)(name, target); +} +//# sourceMappingURL=naming-convention.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map new file mode 100644 index 00000000..10944306 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map @@ -0,0 +1 @@ +{"version":3,"file":"naming-convention.js","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sDAAsD;;AAKtD,oEAAkE;AAClE,oDAAoE;AAQpE,kCAKiB;AACjB,uEAA4E;AAe5E,qDAAqD;AACrD,sHAAsH;AACtH,MAAM,kCAAkC,GAAY;IAClD;QACE,MAAM,EAAE,CAAC,WAAW,CAAC;QACrB,iBAAiB,EAAE,OAAO;QAC1B,QAAQ,EAAE,SAAS;QACnB,kBAAkB,EAAE,OAAO;KAC5B;IAED;QACE,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACnC,QAAQ,EAAE,QAAQ;KACnB;IAED;QACE,MAAM,EAAE,CAAC,WAAW,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,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;YACxC,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB;gBAC1D,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EACjD,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,KAAkC;IAClD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,KAAK,CAAC,IAAI,KAAK,gBAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM;QAC9C,KAAK,CAAC,IAAI,KAAK,gBAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAC/C,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CACtB,IAAyE,EACzE,MAAgC;IAEhC,MAAM,IAAI,GACR,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACvC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC5C,CAAC,CAAC,IAAI,CAAC,IAAI;QACX,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,OAAO,IAAA,sBAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js new file mode 100644 index 00000000..c3476757 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js @@ -0,0 +1,52 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-array-constructor', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow generic `Array` constructors', + extendsBaseRule: true, + recommended: 'recommended', + }, + fixable: 'code', + messages: { + useLiteral: 'The array literal notation [] is preferable.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + /** + * Disallow construction of dense arrays using the Array constructor + * @param node node to evaluate + */ + function check(node) { + if (node.arguments.length !== 1 && + node.callee.type === utils_1.AST_NODE_TYPES.Identifier && + node.callee.name === 'Array' && + !node.typeArguments && + !(0, util_1.isOptionalCallExpression)(node)) { + context.report({ + node, + messageId: 'useLiteral', + fix(fixer) { + if (node.arguments.length === 0) { + return fixer.replaceText(node, '[]'); + } + const fullText = context.sourceCode.getText(node); + const preambleLength = node.callee.range[1] - node.range[0]; + return fixer.replaceText(node, `[${fullText.slice(preambleLength + 1, -1)}]`); + }, + }); + } + } + return { + CallExpression: check, + NewExpression: check, + }; + }, +}); +//# sourceMappingURL=no-array-constructor.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map new file mode 100644 index 00000000..33b67c3b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-array-constructor.js","sourceRoot":"","sources":["../../src/rules/no-array-constructor.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAA+D;AAE/D,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,UAAU,EAAE,8CAA8C;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,KAAK,CACZ,IAAsD;YAEtD,IACE,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;gBAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;gBAC5B,CAAC,IAAI,CAAC,aAAa;gBACnB,CAAC,IAAA,+BAAwB,EAAC,IAAI,CAAC,EAC/B,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,YAAY;oBACvB,GAAG,CAAC,KAAK;wBACP,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;4BAChC,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;wBACvC,CAAC;wBACD,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBAClD,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBAE5D,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAC9C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js new file mode 100644 index 00000000..03bad920 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js @@ -0,0 +1,81 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-array-delete', + meta: { + type: 'problem', + docs: { + description: 'Disallow using the `delete` operator on array values', + recommended: 'recommended', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + noArrayDelete: 'Using the `delete` operator with an array expression is unsafe.', + useSplice: 'Use `array.splice()` instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function isUnderlyingTypeArray(type) { + const predicate = (t) => checker.isArrayType(t) || checker.isTupleType(t); + if (type.isUnion()) { + return type.types.every(predicate); + } + if (type.isIntersection()) { + return type.types.some(predicate); + } + return predicate(type); + } + return { + 'UnaryExpression[operator="delete"]'(node) { + const { argument } = node; + if (argument.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return; + } + const type = (0, util_1.getConstrainedTypeAtLocation)(services, argument.object); + if (!isUnderlyingTypeArray(type)) { + return; + } + context.report({ + node, + messageId: 'noArrayDelete', + suggest: [ + { + messageId: 'useSplice', + fix(fixer) { + const { object, property } = argument; + const shouldHaveParentheses = property.type === utils_1.AST_NODE_TYPES.SequenceExpression; + const nodeMap = services.esTreeNodeToTSNodeMap; + const target = nodeMap.get(object).getText(); + const rawKey = nodeMap.get(property).getText(); + const key = shouldHaveParentheses ? `(${rawKey})` : rawKey; + let suggestion = `${target}.splice(${key}, 1)`; + const comments = context.sourceCode.getCommentsInside(node); + if (comments.length > 0) { + const indentationCount = node.loc.start.column; + const indentation = ' '.repeat(indentationCount); + const commentsText = comments + .map(comment => { + return comment.type === utils_1.AST_TOKEN_TYPES.Line + ? `//${comment.value}` + : `/*${comment.value}*/`; + }) + .join(`\n${indentation}`); + suggestion = `${commentsText}\n${indentation}${suggestion}`; + } + return fixer.replaceText(node, suggestion); + }, + }, + ], + }); + }, + }; + }, +}); +//# sourceMappingURL=no-array-delete.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map new file mode 100644 index 00000000..ce99bed6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-array-delete.js","sourceRoot":"","sources":["../../src/rules/no-array-delete.ts"],"names":[],"mappings":";;AAGA,oDAA2E;AAE3E,kCAIiB;AAIjB,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,aAAa,EACX,iEAAiE;YACnE,SAAS,EAAE,+BAA+B;SAC3C;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,qBAAqB,CAAC,IAAa;YAC1C,MAAM,SAAS,GAAG,CAAC,CAAU,EAAW,EAAE,CACxC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAEnD,IAAI,IAAI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GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;gCAE3D,IAAI,UAAU,GAAG,GAAG,MAAM,WAAW,GAAG,MAAM,CAAC;gCAE/C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;gCAE5D,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oCACxB,MAAM,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;oCAC/C,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;oCAEjD,MAAM,YAAY,GAAG,QAAQ;yCAC1B,GAAG,CAAC,OAAO,CAAC,EAAE;wCACb,OAAO,OAAO,CAAC,IAAI,KAAK,uBAAe,CAAC,IAAI;4CAC1C,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,EAAE;4CACtB,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;oCAC7B,CAAC,CAAC;yCACD,IAAI,CAAC,KAAK,WAAW,EAAE,CAAC,CAAC;oCAE5B,UAAU,GAAG,GAAG,YAAY,KAAK,WAAW,GAAG,UAAU,EAAE,CAAC;gCAC9D,CAAC;gCAED,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;4BAC7C,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js new file mode 100644 index 00000000..9435878e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js @@ -0,0 +1,180 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +var Usefulness; +(function (Usefulness) { + Usefulness["Always"] = "always"; + Usefulness["Never"] = "will"; + Usefulness["Sometimes"] = "may"; +})(Usefulness || (Usefulness = {})); +exports.default = (0, util_1.createRule)({ + name: 'no-base-to-string', + meta: { + type: 'suggestion', + docs: { + description: 'Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + baseToString: "'{{name}}' {{certainty}} use Object's default stringification format ('[object Object]') when stringified.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoredTypeNames: { + type: 'array', + description: 'Stringified regular expressions of type names to ignore.', + items: { + type: 'string', + }, + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoredTypeNames: ['Error', 'RegExp', 'URL', 'URLSearchParams'], + }, + ], + create(context, [option]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const ignoredTypeNames = option.ignoredTypeNames ?? []; + function checkExpression(node, type) { + if (node.type === utils_1.AST_NODE_TYPES.Literal) { + return; + } + const certainty = collectToStringCertainty(type ?? services.getTypeAtLocation(node)); + if (certainty === Usefulness.Always) { + return; + } + context.report({ + node, + messageId: 'baseToString', + data: { + name: context.sourceCode.getText(node), + certainty, + }, + }); + } + function collectToStringCertainty(type) { + const toString = checker.getPropertyOfType(type, 'toString') ?? + checker.getPropertyOfType(type, 'toLocaleString'); + const declarations = toString?.getDeclarations(); + if (!toString || !declarations || declarations.length === 0) { + return Usefulness.Always; + } + // Patch for old version TypeScript, the Boolean type definition missing toString() + if (type.flags & ts.TypeFlags.Boolean || + type.flags & ts.TypeFlags.BooleanLiteral) { + return Usefulness.Always; + } + if (ignoredTypeNames.includes((0, util_1.getTypeName)(checker, type))) { + return Usefulness.Always; + } + if (declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) { + return Usefulness.Always; + } + if (type.isIntersection()) { + for (const subType of type.types) { + const subtypeUsefulness = collectToStringCertainty(subType); + if (subtypeUsefulness === Usefulness.Always) { + return Usefulness.Always; + } + } + return Usefulness.Never; + } + if (!type.isUnion()) { + return Usefulness.Never; + } + let allSubtypesUseful = true; + let someSubtypeUseful = false; + for (const subType of type.types) { + const subtypeUsefulness = collectToStringCertainty(subType); + if (subtypeUsefulness !== Usefulness.Always && allSubtypesUseful) { + allSubtypesUseful = false; + } + if (subtypeUsefulness !== Usefulness.Never && !someSubtypeUseful) { + someSubtypeUseful = true; + } + } + if (allSubtypesUseful && someSubtypeUseful) { + return Usefulness.Always; + } + if (someSubtypeUseful) { + return Usefulness.Sometimes; + } + return Usefulness.Never; + } + function isBuiltInStringCall(node) { + if (node.callee.type === utils_1.AST_NODE_TYPES.Identifier && + node.callee.name === 'String' && + node.arguments[0]) { + const scope = context.sourceCode.getScope(node); + const variable = scope.set.get('String'); + return !variable?.defs.length; + } + return false; + } + return { + 'AssignmentExpression[operator = "+="], BinaryExpression[operator = "+"]'(node) { + const leftType = services.getTypeAtLocation(node.left); + const rightType = services.getTypeAtLocation(node.right); + if ((0, util_1.getTypeName)(checker, leftType) === 'string') { + checkExpression(node.right, rightType); + } + else if ((0, util_1.getTypeName)(checker, rightType) === 'string' && + node.left.type !== utils_1.AST_NODE_TYPES.PrivateIdentifier) { + checkExpression(node.left, leftType); + } + }, + CallExpression(node) { + if (isBuiltInStringCall(node)) { + checkExpression(node.arguments[0]); + } + }, + 'CallExpression > MemberExpression.callee > Identifier[name = /^(toLocaleString|toString)$/].property'(node) { + const memberExpr = node.parent; + checkExpression(memberExpr.object); + }, + TemplateLiteral(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { + return; + } + for (const expression of node.expressions) { + checkExpression(expression); + } + }, + }; + }, +}); +//# sourceMappingURL=no-base-to-string.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map new file mode 100644 index 00000000..e5697c72 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAqE;AAErE,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+BAAiB,CAAA;IACjB,4BAAc,CAAA;IACd,+BAAiB,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AASD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8HAA8H;YAChI,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ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diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js new file mode 100644 index 00000000..30f37149 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js @@ -0,0 +1,143 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const confusingOperators = new Set([ + '=', + '==', + '===', + 'in', + 'instanceof', +]); +function isConfusingOperator(operator) { + return confusingOperators.has(operator); +} +exports.default = (0, util_1.createRule)({ + name: 'no-confusing-non-null-assertion', + meta: { + type: 'problem', + docs: { + description: 'Disallow non-null assertion in locations that may be confusing', + recommended: 'stylistic', + }, + hasSuggestions: true, + messages: { + confusingAssign: 'Confusing combination of non-null assertion and assignment like `a! = b`, which looks very similar to `a != b`.', + confusingEqual: 'Confusing combination of non-null assertion and equality test like `a! == b`, which looks very similar to `a !== b`.', + confusingOperator: 'Confusing combination of non-null assertion and `{{operator}}` operator like `a! {{operator}} b`, which might be misinterpreted as `!(a {{operator}} b)`.', + notNeedInAssign: 'Remove unnecessary non-null assertion (!) in assignment left-hand side.', + notNeedInEqualTest: 'Remove unnecessary non-null assertion (!) in equality test.', + notNeedInOperator: 'Remove possibly unnecessary non-null assertion (!) in the left operand of the `{{operator}}` operator.', + wrapUpLeft: 'Wrap the left-hand side in parentheses to avoid confusion with "{{operator}}" operator.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function confusingOperatorToMessageData(operator) { + switch (operator) { + case '=': + return { + messageId: 'confusingAssign', + }; + case '==': + case '===': + return { + messageId: 'confusingEqual', + }; + case 'in': + case 'instanceof': + return { + messageId: 'confusingOperator', + data: { operator }, + }; + // istanbul ignore next + default: + operator; + throw new Error(`Unexpected operator ${operator}`); + } + } + return { + 'BinaryExpression, AssignmentExpression'(node) { + const operator = node.operator; + if (isConfusingOperator(operator)) { + // Look for a non-null assertion as the last token on the left hand side. + // That way, we catch things like `1 + two! === 3`, even though the left + // hand side isn't a non-null assertion AST node. + const leftHandFinalToken = context.sourceCode.getLastToken(node.left); + const tokenAfterLeft = context.sourceCode.getTokenAfter(node.left); + if (leftHandFinalToken?.type === utils_1.AST_TOKEN_TYPES.Punctuator && + leftHandFinalToken.value === '!' && + tokenAfterLeft?.value !== ')') { + if (node.left.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { + let suggestions; + switch (operator) { + case '=': + suggestions = [ + { + messageId: 'notNeedInAssign', + fix: (fixer) => fixer.remove(leftHandFinalToken), + }, + ]; + break; + case '==': + case '===': + suggestions = [ + { + messageId: 'notNeedInEqualTest', + fix: (fixer) => fixer.remove(leftHandFinalToken), + }, + ]; + break; + case 'in': + case 'instanceof': + suggestions = [ + { + messageId: 'notNeedInOperator', + data: { operator }, + fix: (fixer) => fixer.remove(leftHandFinalToken), + }, + { + messageId: 'wrapUpLeft', + data: { operator }, + fix: wrapUpLeftFixer(node), + }, + ]; + break; + // istanbul ignore next + default: + operator; + return; + } + context.report({ + node, + ...confusingOperatorToMessageData(operator), + suggest: suggestions, + }); + } + else { + context.report({ + node, + ...confusingOperatorToMessageData(operator), + suggest: [ + { + messageId: 'wrapUpLeft', + data: { operator }, + fix: wrapUpLeftFixer(node), + }, + ], + }); + } + } + } + }, + }; + }, +}); +function wrapUpLeftFixer(node) { + return (fixer) => [ + fixer.insertTextBefore(node.left, '('), + fixer.insertTextAfter(node.left, ')'), + ]; +} +//# sourceMappingURL=no-confusing-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map new file mode 100644 index 00000000..10c21089 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-confusing-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-confusing-non-null-assertion.ts"],"names":[],"mappings":";;AAMA,oDAA2E;AAE3E,kCAAqC;AAWrC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,GAAG;IACH,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,YAAY;CACJ,CAAC,CAAC;AAIZ,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,OAAO,kBAAkB,CAAC,GAAG,CAAC,QAA6B,CAAC,CAAC;AAC/D,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,WAAW,EAAE,WAAW;SACzB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EACb,iHAAiH;YACnH,cAAc,EACZ,sHAAsH;YACxH,iBAAiB,EACf,2JAA2J;YAE7J,eAAe,EACb,yEAAyE;YAC3E,kBAAkB,EAChB,6DAA6D;YAE/D,iBAAiB,EACf,wGAAwG;YAE1G,UAAU,EACR,yFAAyF;SAC5F;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,8BAA8B,CACrC,QAA2B;YAE3B,QAAQ,QAAQ,EAAE,CAAC;gBACjB,KAAK,GAAG;oBACN,OAAO;wBACL,SAAS,EAAE,iBAAiB;qBAC7B,CAAC;gBACJ,KAAK,IAAI,CAAC;gBACV,KAAK,KAAK;oBACR,OAAO;wBACL,SAAS,EAAE,gBAAgB;qBAC5B,CAAC;gBACJ,KAAK,IAAI,CAAC;gBACV,KAAK,YAAY;oBACf,OAAO;wBACL,SAAS,EAAE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int/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js new file mode 100644 index 00000000..b7fefbd7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js @@ -0,0 +1,350 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getParentFunctionNode_1 = require("../util/getParentFunctionNode"); +exports.default = (0, util_1.createRule)({ + name: 'no-confusing-void-expression', + meta: { + type: 'problem', + docs: { + description: 'Require expressions of type void to appear in statement position', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + hasSuggestions: true, + messages: { + invalidVoidExpr: 'Placing a void expression inside another expression is forbidden. ' + + 'Move it to its own statement instead.', + invalidVoidExprArrow: 'Returning a void expression from an arrow function shorthand is forbidden. ' + + 'Please add braces to the arrow function.', + invalidVoidExprArrowWrapVoid: 'Void expressions returned from an arrow function shorthand ' + + 'must be marked explicitly with the `void` operator.', + invalidVoidExprReturn: 'Returning a void expression from a function is forbidden. ' + + 'Please move it before the `return` statement.', + invalidVoidExprReturnLast: 'Returning a void expression from a function is forbidden. ' + + 'Please remove the `return` statement.', + invalidVoidExprReturnWrapVoid: 'Void expressions returned from a function ' + + 'must be marked explicitly with the `void` operator.', + invalidVoidExprWrapVoid: 'Void expressions used inside another expression ' + + 'must be moved to its own statement ' + + 'or marked explicitly with the `void` operator.', + voidExprWrapVoid: 'Mark with an explicit `void` operator.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreArrowShorthand: { + type: 'boolean', + description: 'Whether to ignore "shorthand" `() =>` arrow functions: those without `{ ... }` braces.', + }, + ignoreVoidOperator: { + type: 'boolean', + description: 'Whether to ignore returns that start with the `void` operator.', + }, + ignoreVoidReturningFunctions: { + type: 'boolean', + description: 'Whether to ignore returns from functions with explicit `void` return types and functions with contextual `void` return types.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreArrowShorthand: false, + ignoreVoidOperator: false, + ignoreVoidReturningFunctions: false, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + return { + 'AwaitExpression, CallExpression, TaggedTemplateExpression'(node) { + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + if (!tsutils.isTypeFlagSet(type, ts.TypeFlags.VoidLike)) { + // not a void expression + return; + } + const invalidAncestor = findInvalidAncestor(node); + if (invalidAncestor == null) { + // void expression is in valid position + return; + } + const wrapVoidFix = (fixer) => { + const nodeText = context.sourceCode.getText(node); + const newNodeText = `void ${nodeText}`; + return fixer.replaceText(node, newNodeText); + }; + if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { + // handle arrow function shorthand + if (options.ignoreVoidReturningFunctions) { + const returnsVoid = isVoidReturningFunctionNode(invalidAncestor); + if (returnsVoid) { + return; + } + } + if (options.ignoreVoidOperator) { + // handle wrapping with `void` + return context.report({ + node, + messageId: 'invalidVoidExprArrowWrapVoid', + fix: wrapVoidFix, + }); + } + // handle wrapping with braces + const arrowFunction = invalidAncestor; + return context.report({ + node, + messageId: 'invalidVoidExprArrow', + fix(fixer) { + if (!canFix(arrowFunction)) { + return null; + } + const arrowBody = arrowFunction.body; + const arrowBodyText = context.sourceCode.getText(arrowBody); + const newArrowBodyText = `{ ${arrowBodyText}; }`; + if ((0, util_1.isParenthesized)(arrowBody, context.sourceCode)) { + const bodyOpeningParen = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(arrowBody, util_1.isOpeningParenToken), util_1.NullThrowsReasons.MissingToken('opening parenthesis', 'arrow body')); + const bodyClosingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(arrowBody, util_1.isClosingParenToken), util_1.NullThrowsReasons.MissingToken('closing parenthesis', 'arrow body')); + return fixer.replaceTextRange([bodyOpeningParen.range[0], bodyClosingParen.range[1]], newArrowBodyText); + } + return fixer.replaceText(arrowBody, newArrowBodyText); + }, + }); + } + if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ReturnStatement) { + // handle return statement + if (options.ignoreVoidReturningFunctions) { + const functionNode = (0, getParentFunctionNode_1.getParentFunctionNode)(invalidAncestor); + if (functionNode) { + const returnsVoid = isVoidReturningFunctionNode(functionNode); + if (returnsVoid) { + return; + } + } + } + if (options.ignoreVoidOperator) { + // handle wrapping with `void` + return context.report({ + node, + messageId: 'invalidVoidExprReturnWrapVoid', + fix: wrapVoidFix, + }); + } + if (isFinalReturn(invalidAncestor)) { + // remove the `return` keyword + return context.report({ + node, + messageId: 'invalidVoidExprReturnLast', + fix(fixer) { + if (!canFix(invalidAncestor)) { + return null; + } + const returnValue = invalidAncestor.argument; + const returnValueText = context.sourceCode.getText(returnValue); + let newReturnStmtText = `${returnValueText};`; + if (isPreventingASI(returnValue)) { + // put a semicolon at the beginning of the line + newReturnStmtText = `;${newReturnStmtText}`; + } + return fixer.replaceText(invalidAncestor, newReturnStmtText); + }, + }); + } + // move before the `return` keyword + return context.report({ + node, + messageId: 'invalidVoidExprReturn', + fix(fixer) { + const returnValue = invalidAncestor.argument; + const returnValueText = context.sourceCode.getText(returnValue); + let newReturnStmtText = `${returnValueText}; return;`; + if (isPreventingASI(returnValue)) { + // put a semicolon at the beginning of the line + newReturnStmtText = `;${newReturnStmtText}`; + } + if (invalidAncestor.parent.type !== utils_1.AST_NODE_TYPES.BlockStatement) { + // e.g. `if (cond) return console.error();` + // add braces if not inside a block + newReturnStmtText = `{ ${newReturnStmtText} }`; + } + return fixer.replaceText(invalidAncestor, newReturnStmtText); + }, + }); + } + // handle generic case + if (options.ignoreVoidOperator) { + // this would be reported by this rule btw. such irony + return context.report({ + node, + messageId: 'invalidVoidExprWrapVoid', + suggest: [{ messageId: 'voidExprWrapVoid', fix: wrapVoidFix }], + }); + } + context.report({ + node, + messageId: 'invalidVoidExpr', + }); + }, + }; + /** + * Inspects the void expression's ancestors and finds closest invalid one. + * By default anything other than an ExpressionStatement is invalid. + * Parent expressions which can be used for their short-circuiting behavior + * are ignored and their parents are checked instead. + * @param node The void expression node to check. + * @returns Invalid ancestor node if it was found. `null` otherwise. + */ + function findInvalidAncestor(node) { + const parent = (0, util_1.nullThrows)(node.parent, util_1.NullThrowsReasons.MissingParent); + if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression && + node !== parent.expressions[parent.expressions.length - 1]) { + return null; + } + if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { + // e.g. `{ console.log("foo"); }` + // this is always valid + return null; + } + if (parent.type === utils_1.AST_NODE_TYPES.LogicalExpression && + parent.right === node) { + // e.g. `x && console.log(x)` + // this is valid only if the next ancestor is valid + return findInvalidAncestor(parent); + } + if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && + (parent.consequent === node || parent.alternate === node)) { + // e.g. `cond ? console.log(true) : console.log(false)` + // this is valid only if the next ancestor is valid + return findInvalidAncestor(parent); + } + if (parent.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + // e.g. `() => console.log("foo")` + // this is valid with an appropriate option + options.ignoreArrowShorthand) { + return null; + } + if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + parent.operator === 'void' && + // e.g. `void console.log("foo")` + // this is valid with an appropriate option + options.ignoreVoidOperator) { + return null; + } + if (parent.type === utils_1.AST_NODE_TYPES.ChainExpression) { + // e.g. `console?.log('foo')` + return findInvalidAncestor(parent); + } + // Any other parent is invalid. + // We can assume a return statement will have an argument. + return parent; + } + /** Checks whether the return statement is the last statement in a function body. */ + function isFinalReturn(node) { + // the parent must be a block + const block = (0, util_1.nullThrows)(node.parent, util_1.NullThrowsReasons.MissingParent); + if (block.type !== utils_1.AST_NODE_TYPES.BlockStatement) { + // e.g. `if (cond) return;` (not in a block) + return false; + } + // the block's parent must be a function + const blockParent = (0, util_1.nullThrows)(block.parent, util_1.NullThrowsReasons.MissingParent); + if (![ + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.FunctionExpression, + ].includes(blockParent.type)) { + // e.g. `if (cond) { return; }` + // not in a top-level function block + return false; + } + // must be the last child of the block + if (block.body.indexOf(node) < block.body.length - 1) { + // not the last statement in the block + return false; + } + return true; + } + /** + * Checks whether the given node, if placed on its own line, + * would prevent automatic semicolon insertion on the line before. + * + * This happens if the line begins with `(`, `[` or `` ` `` + */ + function isPreventingASI(node) { + const startToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('first token', node.type)); + return ['(', '[', '`'].includes(startToken.value); + } + function canFix(node) { + const targetNode = node.type === utils_1.AST_NODE_TYPES.ReturnStatement + ? node.argument + : node.body; + const type = (0, util_1.getConstrainedTypeAtLocation)(services, targetNode); + return tsutils.isTypeFlagSet(type, ts.TypeFlags.VoidLike); + } + function isFunctionReturnTypeIncludesVoid(functionType) { + const callSignatures = tsutils.getCallSignaturesOfType(functionType); + return callSignatures.some(signature => { + const returnType = signature.getReturnType(); + return tsutils + .unionTypeParts(returnType) + .some(tsutils.isIntrinsicVoidType); + }); + } + function isVoidReturningFunctionNode(functionNode) { + // Game plan: + // - If the function node has a type annotation, check if it includes `void`. + // - If it does then the function is safe to return `void` expressions in. + // - Otherwise, check if the function is a function-expression or an arrow-function. + // - If it is, get its contextual type and bail if we cannot. + // - Return based on whether the contextual type includes `void` or not + const functionTSNode = services.esTreeNodeToTSNodeMap.get(functionNode); + if (functionTSNode.type) { + const returnType = checker.getTypeFromTypeNode(functionTSNode.type); + return tsutils + .unionTypeParts(returnType) + .some(tsutils.isIntrinsicVoidType); + } + if (ts.isExpression(functionTSNode)) { + const functionType = checker.getContextualType(functionTSNode); + if (functionType) { + return tsutils + .unionTypeParts(functionType) + .some(isFunctionReturnTypeIncludesVoid); + } + } + return false; + } + }, +}); +//# sourceMappingURL=no-confusing-void-expression.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map new file mode 100644 index 00000000..791936a2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-confusing-void-expression.js","sourceRoot":"","sources":["../../src/rules/no-confusing-void-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCASiB;AACjB,yEAAsE;AAoBtE,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBA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C;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js new file mode 100644 index 00000000..f03ea02b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js @@ -0,0 +1,276 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-deprecated', + meta: { + type: 'problem', + docs: { + description: 'Disallow using code marked as `@deprecated`', + recommended: 'strict', + requiresTypeChecking: true, + }, + messages: { + deprecated: `\`{{name}}\` is deprecated.`, + deprecatedWithReason: `\`{{name}}\` is deprecated. {{reason}}`, + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const { jsDocParsingMode } = context.parserOptions; + if (jsDocParsingMode === 'none' || jsDocParsingMode === 'type-info') { + throw new Error(`Cannot be used with jsDocParsingMode: '${jsDocParsingMode}'.`); + } + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + // Deprecated jsdoc tags can be added on some symbol alias, e.g. + // + // export { /** @deprecated */ foo } + // + // When we import foo, its symbol is an alias of the exported foo (the one + // with the deprecated tag), which is itself an alias of the original foo. + // Therefore, we carefully go through the chain of aliases and check each + // immediate alias for deprecated tags + function searchForDeprecationInAliasesChain(symbol, checkDeprecationsOfAliasedSymbol) { + if (!symbol || !tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) { + return checkDeprecationsOfAliasedSymbol + ? getJsDocDeprecation(symbol) + : undefined; + } + const targetSymbol = checker.getAliasedSymbol(symbol); + while (tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) { + const reason = getJsDocDeprecation(symbol); + if (reason !== undefined) { + return reason; + } + const immediateAliasedSymbol = symbol.getDeclarations() && checker.getImmediateAliasedSymbol(symbol); + if (!immediateAliasedSymbol) { + break; + } + symbol = immediateAliasedSymbol; + if (checkDeprecationsOfAliasedSymbol && symbol === targetSymbol) { + return getJsDocDeprecation(symbol); + } + } + return undefined; + } + function isDeclaration(node) { + const { parent } = node; + switch (parent.type) { + case utils_1.AST_NODE_TYPES.ArrayPattern: + return parent.elements.includes(node); + case utils_1.AST_NODE_TYPES.ClassExpression: + case utils_1.AST_NODE_TYPES.ClassDeclaration: + case utils_1.AST_NODE_TYPES.VariableDeclarator: + case utils_1.AST_NODE_TYPES.TSEnumMember: + return parent.id === node; + case utils_1.AST_NODE_TYPES.MethodDefinition: + case utils_1.AST_NODE_TYPES.PropertyDefinition: + return parent.key === node; + case utils_1.AST_NODE_TYPES.Property: + // foo in "const { foo } = bar" will be processed twice, as parent.key + // and parent.value. The second is treated as a declaration. + return ((parent.shorthand && parent.value === node) || + parent.parent.type === utils_1.AST_NODE_TYPES.ObjectExpression); + case utils_1.AST_NODE_TYPES.AssignmentPattern: + // foo in "const { foo = "" } = bar" will be processed twice, as parent.parent.key + // and parent.left. The second is treated as a declaration. + return parent.left === node; + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.TSDeclareFunction: + case utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression: + case utils_1.AST_NODE_TYPES.TSEnumDeclaration: + case utils_1.AST_NODE_TYPES.TSInterfaceDeclaration: + case utils_1.AST_NODE_TYPES.TSMethodSignature: + case utils_1.AST_NODE_TYPES.TSModuleDeclaration: + case utils_1.AST_NODE_TYPES.TSParameterProperty: + case utils_1.AST_NODE_TYPES.TSPropertySignature: + case utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration: + case utils_1.AST_NODE_TYPES.TSTypeParameter: + return true; + default: + return false; + } + } + function isInsideExportOrImport(node) { + let current = node; + while (true) { + switch (current.type) { + case utils_1.AST_NODE_TYPES.ExportAllDeclaration: + case utils_1.AST_NODE_TYPES.ExportNamedDeclaration: + case utils_1.AST_NODE_TYPES.ImportDeclaration: + return true; + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.BlockStatement: + case utils_1.AST_NODE_TYPES.ClassDeclaration: + case utils_1.AST_NODE_TYPES.TSInterfaceDeclaration: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.Program: + case utils_1.AST_NODE_TYPES.TSUnionType: + case utils_1.AST_NODE_TYPES.VariableDeclarator: + return false; + default: + current = current.parent; + } + } + } + function getJsDocDeprecation(symbol) { + let jsDocTags; + try { + jsDocTags = symbol?.getJsDocTags(checker); + } + catch { + // workaround for https://github.com/microsoft/TypeScript/issues/60024 + return; + } + const tag = jsDocTags?.find(tag => tag.name === 'deprecated'); + if (!tag) { + return undefined; + } + const displayParts = tag.text; + return displayParts ? ts.displayPartsToString(displayParts) : ''; + } + function isNodeCalleeOfParent(node) { + switch (node.parent?.type) { + case utils_1.AST_NODE_TYPES.NewExpression: + case utils_1.AST_NODE_TYPES.CallExpression: + return node.parent.callee === node; + case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: + return node.parent.tag === node; + case utils_1.AST_NODE_TYPES.JSXOpeningElement: + return node.parent.name === node; + default: + return false; + } + } + function getCallLikeNode(node) { + let callee = node; + while (callee.parent?.type === utils_1.AST_NODE_TYPES.MemberExpression && + callee.parent.property === callee) { + callee = callee.parent; + } + return isNodeCalleeOfParent(callee) ? callee : undefined; + } + function getCallLikeDeprecation(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node.parent); + // If the node is a direct function call, we look for its signature. + const signature = (0, util_1.nullThrows)(checker.getResolvedSignature(tsNode), 'Expected call like node to have signature'); + const symbol = services.getSymbolAtLocation(node); + const aliasedSymbol = symbol !== undefined && + tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) + ? checker.getAliasedSymbol(symbol) + : symbol; + const symbolDeclarationKind = aliasedSymbol?.declarations?.[0].kind; + // Properties with function-like types have "deprecated" jsdoc + // on their symbols, not on their signatures: + // + // interface Props { + // /** @deprecated */ + // property: () => 'foo' + // ^symbol^ ^signature^ + // } + if (symbolDeclarationKind !== ts.SyntaxKind.MethodDeclaration && + symbolDeclarationKind !== ts.SyntaxKind.FunctionDeclaration && + symbolDeclarationKind !== ts.SyntaxKind.MethodSignature) { + return (searchForDeprecationInAliasesChain(symbol, true) ?? + getJsDocDeprecation(signature) ?? + getJsDocDeprecation(aliasedSymbol)); + } + return (searchForDeprecationInAliasesChain(symbol, + // Here we're working with a function declaration or method. + // Both can have 1 or more overloads, each overload creates one + // ts.Declaration which is placed in symbol.declarations. + // + // Imagine the following code: + // + // function foo(): void + // /** @deprecated Some Reason */ + // function foo(arg: string): void + // function foo(arg?: string): void {} + // + // foo() // <- foo is our symbol + // + // If we call getJsDocDeprecation(checker.getAliasedSymbol(symbol)), + // we get 'Some Reason', but after all, we are calling foo with + // a signature that is not deprecated! + // It works this way because symbol.getJsDocTags returns tags from + // all symbol declarations combined into one array. And AFAIK there is + // no publicly exported TS function that can tell us if a particular + // declaration is deprecated or not. + // + // So, in case of function and method declarations, we don't check original + // aliased symbol, but rely on the getJsDocDeprecation(signature) call below. + false) ?? getJsDocDeprecation(signature)); + } + function getDeprecationReason(node) { + const callLikeNode = getCallLikeNode(node); + if (callLikeNode) { + return getCallLikeDeprecation(callLikeNode); + } + if (node.parent.type === utils_1.AST_NODE_TYPES.Property) { + return getJsDocDeprecation(services.getTypeAtLocation(node.parent.parent).getProperty(node.name)); + } + return searchForDeprecationInAliasesChain(services.getSymbolAtLocation(node), true); + } + function checkIdentifier(node) { + if (isDeclaration(node) || isInsideExportOrImport(node)) { + return; + } + const reason = getDeprecationReason(node); + if (reason === undefined) { + return; + } + context.report({ + ...(reason + ? { + messageId: 'deprecatedWithReason', + data: { name: node.name, reason }, + } + : { + messageId: 'deprecated', + data: { name: node.name }, + }), + node, + }); + } + return { + Identifier: checkIdentifier, + JSXIdentifier(node) { + if (node.parent.type !== utils_1.AST_NODE_TYPES.JSXClosingElement) { + checkIdentifier(node); + } + }, + }; + }, +}); +//# sourceMappingURL=no-deprecated.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map new file mode 100644 index 00000000..630806b4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-deprecated.js","sourceRoot":"","sources":["../../src/rules/no-deprecated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAoE;AAIpE,kBAAe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L,CAAC;QACJ,CAAC;QAED,SAAS,eAAe,CAAC,IAAoB;YAC3C,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxD,OAAO;YACT,CAAC;YAED,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;YAC1C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACzB,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC;gBACb,GAAG,CAAC,MAAM;oBACR,CAAC,CAAC;wBACE,SAAS,EAAE,sBAAsB;wBACjC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;qBAClC;oBACH,CAAC,CAAC;wBACE,SAAS,EAAE,YAAY;wBACvB,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;qBAC1B,CAAC;gBACN,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,UAAU,EAAE,eAAe;YAC3B,aAAa,CAAC,IAAI;gBAChB,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE,CAAC;oBAC1D,eAAe,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js new file mode 100644 index 00000000..c7e0b3ab --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-dupe-class-members'); +exports.default = (0, util_1.createRule)({ + name: 'no-dupe-class-members', + meta: { + type: 'problem', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Disallow duplicate class members', + extendsBaseRule: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions: [], + create(context) { + const rules = baseRule.create(context); + function wrapMemberDefinitionListener(coreListener) { + return (node) => { + if (node.computed) { + return; + } + if (node.value && + node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { + return; + } + return coreListener(node); + }; + } + return { + ...rules, + 'MethodDefinition, PropertyDefinition': wrapMemberDefinitionListener(rules['MethodDefinition, PropertyDefinition']), + }; + }, +}); +//# sourceMappingURL=no-dupe-class-members.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map new file mode 100644 index 00000000..dc7806e4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-dupe-class-members.js","sourceRoot":"","sources":["../../src/rules/no-dupe-class-members.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,4BAA4B,CAEnC,YAA+B;YAC/B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAClB,OAAO;gBACT,CAAC;gBAED,IACE,IAAI,CAAC,KAAK;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,6BAA6B,EAChE,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,GAAG,KAAK;YACR,sCAAsC,EAAE,4BAA4B,CAClE,KAAK,CAAC,sCAAsC,CAAC,CAC9C;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js new file mode 100644 index 00000000..026bd4db --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js @@ -0,0 +1,62 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-duplicate-enum-values', + meta: { + type: 'problem', + docs: { + description: 'Disallow duplicate enum member values', + recommended: 'recommended', + }, + hasSuggestions: false, + messages: { + duplicateValue: 'Duplicate enum member value {{value}}.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function isStringLiteral(node) { + return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'string'); + } + function isNumberLiteral(node) { + return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'number'); + } + return { + TSEnumDeclaration(node) { + const enumMembers = node.body.members; + const seenValues = new Set(); + enumMembers.forEach(member => { + if (member.initializer === undefined) { + return; + } + let value; + if (isStringLiteral(member.initializer)) { + value = String(member.initializer.value); + } + else if (isNumberLiteral(member.initializer)) { + value = Number(member.initializer.value); + } + if (value === undefined) { + return; + } + if (seenValues.has(value)) { + context.report({ + node: member, + messageId: 'duplicateValue', + data: { + value, + }, + }); + } + else { + seenValues.add(value); + } + }); + }, + }; + }, +}); +//# sourceMappingURL=no-duplicate-enum-values.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map new file mode 100644 index 00000000..945ea281 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-duplicate-enum-values.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-enum-values.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE;YACR,cAAc,EAAE,wCAAwC;SACzD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAA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U,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACxB,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js new file mode 100644 index 00000000..8f24171d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js @@ -0,0 +1,184 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const astIgnoreKeys = new Set(['loc', 'parent', 'range']); +const isSameAstNode = (actualNode, expectedNode) => { + if (actualNode === expectedNode) { + return true; + } + if (actualNode && + expectedNode && + typeof actualNode === 'object' && + typeof expectedNode === 'object') { + if (Array.isArray(actualNode) && Array.isArray(expectedNode)) { + if (actualNode.length !== expectedNode.length) { + return false; + } + return !actualNode.some((nodeEle, index) => !isSameAstNode(nodeEle, expectedNode[index])); + } + const actualNodeKeys = Object.keys(actualNode).filter(key => !astIgnoreKeys.has(key)); + const expectedNodeKeys = Object.keys(expectedNode).filter(key => !astIgnoreKeys.has(key)); + if (actualNodeKeys.length !== expectedNodeKeys.length) { + return false; + } + if (actualNodeKeys.some(actualNodeKey => !Object.hasOwn(expectedNode, actualNodeKey))) { + return false; + } + if (actualNodeKeys.some(actualNodeKey => !isSameAstNode(actualNode[actualNodeKey], expectedNode[actualNodeKey]))) { + return false; + } + return true; + } + return false; +}; +exports.default = (0, util_1.createRule)({ + name: 'no-duplicate-type-constituents', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow duplicate constituents of union or intersection types', + recommended: 'recommended', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + duplicate: '{{type}} type constituent is duplicated with {{previous}}.', + unnecessary: 'Explicit undefined is unnecessary on an optional parameter.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreIntersections: { + type: 'boolean', + description: 'Whether to ignore `&` intersections.', + }, + ignoreUnions: { + type: 'boolean', + description: 'Whether to ignore `|` unions.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreIntersections: false, + ignoreUnions: false, + }, + ], + create(context, [{ ignoreIntersections, ignoreUnions }]) { + const parserServices = (0, util_1.getParserServices)(context); + const { sourceCode } = context; + function checkDuplicate(node, forEachNodeType) { + const cachedTypeMap = new Map(); + node.types.reduce((uniqueConstituents, constituentNode) => { + const constituentNodeType = parserServices.getTypeAtLocation(constituentNode); + if (tsutils.isIntrinsicErrorType(constituentNodeType)) { + return uniqueConstituents; + } + const report = (messageId, data) => { + const getUnionOrIntersectionToken = (where, at) => sourceCode[`getTokens${where}`](constituentNode, { + filter: token => ['&', '|'].includes(token.value), + }).at(at); + const beforeUnionOrIntersectionToken = getUnionOrIntersectionToken('Before', -1); + let afterUnionOrIntersectionToken; + let bracketBeforeTokens; + let bracketAfterTokens; + if (beforeUnionOrIntersectionToken) { + bracketBeforeTokens = sourceCode.getTokensBetween(beforeUnionOrIntersectionToken, constituentNode); + bracketAfterTokens = sourceCode.getTokensAfter(constituentNode, { + count: bracketBeforeTokens.length, + }); + } + else { + afterUnionOrIntersectionToken = (0, util_1.nullThrows)(getUnionOrIntersectionToken('After', 0), util_1.NullThrowsReasons.MissingToken('union or intersection token', 'duplicate type constituent')); + bracketAfterTokens = sourceCode.getTokensBetween(constituentNode, afterUnionOrIntersectionToken); + bracketBeforeTokens = sourceCode.getTokensBefore(constituentNode, { + count: bracketAfterTokens.length, + }); + } + context.report({ + loc: { + start: constituentNode.loc.start, + end: (bracketAfterTokens.at(-1) ?? constituentNode).loc.end, + }, + node: constituentNode, + messageId, + data, + fix: fixer => [ + beforeUnionOrIntersectionToken, + ...bracketBeforeTokens, + constituentNode, + ...bracketAfterTokens, + afterUnionOrIntersectionToken, + ].flatMap(token => (token ? fixer.remove(token) : [])), + }); + }; + const duplicatePrevious = uniqueConstituents.find(ele => isSameAstNode(ele, constituentNode)) ?? cachedTypeMap.get(constituentNodeType); + if (duplicatePrevious) { + report('duplicate', { + type: node.type === utils_1.AST_NODE_TYPES.TSIntersectionType + ? 'Intersection' + : 'Union', + previous: sourceCode.getText(duplicatePrevious), + }); + return uniqueConstituents; + } + forEachNodeType?.(constituentNodeType, report); + cachedTypeMap.set(constituentNodeType, constituentNode); + return [...uniqueConstituents, constituentNode]; + }, []); + } + return { + ...(!ignoreIntersections && { + TSIntersectionType: checkDuplicate, + }), + ...(!ignoreUnions && { + TSUnionType: (node) => checkDuplicate(node, (constituentNodeType, report) => { + const maybeTypeAnnotation = node.parent; + if (maybeTypeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation) { + const maybeIdentifier = maybeTypeAnnotation.parent; + if (maybeIdentifier.type === utils_1.AST_NODE_TYPES.Identifier && + maybeIdentifier.optional) { + const maybeFunction = maybeIdentifier.parent; + if ((0, util_1.isFunctionOrFunctionType)(maybeFunction) && + maybeFunction.params.includes(maybeIdentifier) && + tsutils.isTypeFlagSet(constituentNodeType, ts.TypeFlags.Undefined)) { + report('unnecessary'); + } + } + } + }), + }), + }; + }, +}); +//# sourceMappingURL=no-duplicate-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map new file mode 100644 index 00000000..31d032fd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-duplicate-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AAWjB,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,UAAmB,EAAE,YAAqB,EAAW,EAAE;IAC5E,IAAI,UAAU,KAAK,YAAY,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IACE,UAAU;QACV,YAAY;QACZ,OAAO,UAAU,KAAK,QAAQ;QAC9B,OAAO,YAAY,KAAK,QAAQ,EAChC,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAC7D,IAAI,UAAU,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,CAAC,UAAU,CAAC,IA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C,gBAAgB,EAAE,CAAC;wBACjE,MAAM,eAAe,GAAG,mBAAmB,CAAC,MAAM,CAAC;wBACnD,IACE,eAAe,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;4BAClD,eAAe,CAAC,QAAQ,EACxB,CAAC;4BACD,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC;4BAC7C,IACE,IAAA,+BAAwB,EAAC,aAAa,CAAC;gCACvC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;gCAC9C,OAAO,CAAC,aAAa,CACnB,mBAAmB,EACnB,EAAE,CAAC,SAAS,CAAC,SAAS,CACvB,EACD,CAAC;gCACD,MAAM,CAAC,aAAa,CAAC,CAAC;4BACxB,CAAC;wBACH,CAAC;oBACH,CAAC;gBACH,CAAC,CAAC;aACL,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js new file mode 100644 index 00000000..65d12f27 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-dynamic-delete', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow using the `delete` operator on computed key expressions', + recommended: 'strict', + }, + fixable: 'code', + messages: { + dynamicDelete: 'Do not delete dynamically computed property keys.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function createFixer(member) { + if (member.property.type === utils_1.AST_NODE_TYPES.Literal && + typeof member.property.value === 'string') { + return createPropertyReplacement(member.property, `.${member.property.value}`); + } + return undefined; + } + return { + 'UnaryExpression[operator=delete]'(node) { + if (node.argument.type !== utils_1.AST_NODE_TYPES.MemberExpression || + !node.argument.computed || + isAcceptableIndexExpression(node.argument.property)) { + return; + } + context.report({ + node: node.argument.property, + messageId: 'dynamicDelete', + fix: createFixer(node.argument), + }); + }, + }; + function createPropertyReplacement(property, replacement) { + return (fixer) => fixer.replaceTextRange(getTokenRange(property), replacement); + } + function getTokenRange(property) { + return [ + (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(property), util_1.NullThrowsReasons.MissingToken('token before', 'property')).range[0], + (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(property), util_1.NullThrowsReasons.MissingToken('token after', 'property')).range[1], + ]; + } + }, +}); +function isAcceptableIndexExpression(property) { + return ((property.type === utils_1.AST_NODE_TYPES.Literal && + ['number', 'string'].includes(typeof property.value)) || + (property.type === utils_1.AST_NODE_TYPES.UnaryExpression && + property.operator === '-' && + property.argument.type === utils_1.AST_NODE_TYPES.Literal && + typeof property.argument.value === 'number')); +} +//# sourceMappingURL=no-dynamic-delete.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map new file mode 100644 index 00000000..c7ecc6c0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-dynamic-delete.js","sourceRoot":"","sources":["../../src/rules/no-dynamic-delete.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAoE;AAEpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,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EAAE,UAAU,CAAC,CAC3D,CAAC,KAAK,CAAC,CAAC,CAAC;gBACV,IAAA,iBAAU,EACR,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,EAC1C,wBAAiB,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAC1D,CAAC,KAAK,CAAC,CAAC,CAAC;aACX,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,2BAA2B,CAAC,QAA6B;IAChE,OAAO,CACL,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QACvC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;YAC/C,QAAQ,CAAC,QAAQ,KAAK,GAAG;YACzB,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;YACjD,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,CAC/C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js new file mode 100644 index 00000000..0a4a21d6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js @@ -0,0 +1,135 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-empty-function'); +const defaultOptions = [ + { + allow: [], + }, +]; +const schema = (0, util_1.deepMerge)( +// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 +Array.isArray(baseRule.meta.schema) + ? baseRule.meta.schema[0] + : baseRule.meta.schema, { + properties: { + allow: { + description: 'Locations and kinds of functions that are allowed to be empty.', + items: { + type: 'string', + enum: [ + 'functions', + 'arrowFunctions', + 'generatorFunctions', + 'methods', + 'generatorMethods', + 'getters', + 'setters', + 'constructors', + 'private-constructors', + 'protected-constructors', + 'asyncFunctions', + 'asyncMethods', + 'decoratedFunctions', + 'overrideMethods', + ], + }, + }, + }, +}); +exports.default = (0, util_1.createRule)({ + name: 'no-empty-function', + meta: { + type: 'suggestion', + defaultOptions, + docs: { + description: 'Disallow empty functions', + extendsBaseRule: true, + recommended: 'stylistic', + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: [schema], + }, + defaultOptions, + create(context, [{ allow = [] }]) { + const rules = baseRule.create(context); + const isAllowedProtectedConstructors = allow.includes('protected-constructors'); + const isAllowedPrivateConstructors = allow.includes('private-constructors'); + const isAllowedDecoratedFunctions = allow.includes('decoratedFunctions'); + const isAllowedOverrideMethods = allow.includes('overrideMethods'); + /** + * Check if the method body is empty + * @param node the node to be validated + * @returns true if the body is empty + * @private + */ + function isBodyEmpty(node) { + return node.body.body.length === 0; + } + /** + * Check if method has parameter properties + * @param node the node to be validated + * @returns true if the body has parameter properties + * @private + */ + function hasParameterProperties(node) { + return node.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty); + } + /** + * @param node the node to be validated + * @returns true if the constructor is allowed to be empty + * @private + */ + function isAllowedEmptyConstructor(node) { + const parent = node.parent; + if (isBodyEmpty(node) && + parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + parent.kind === 'constructor') { + const { accessibility } = parent; + return ( + // allow protected constructors + (accessibility === 'protected' && isAllowedProtectedConstructors) || + // allow private constructors + (accessibility === 'private' && isAllowedPrivateConstructors) || + // allow constructors which have parameter properties + hasParameterProperties(node)); + } + return false; + } + /** + * @param node the node to be validated + * @returns true if a function has decorators + * @private + */ + function isAllowedEmptyDecoratedFunctions(node) { + if (isAllowedDecoratedFunctions && isBodyEmpty(node)) { + const decorators = node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition + ? node.parent.decorators + : undefined; + return !!decorators && !!decorators.length; + } + return false; + } + function isAllowedEmptyOverrideMethod(node) { + return (isAllowedOverrideMethods && + isBodyEmpty(node) && + node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + node.parent.override); + } + return { + ...rules, + FunctionExpression(node) { + if (isAllowedEmptyConstructor(node) || + isAllowedEmptyDecoratedFunctions(node) || + isAllowedEmptyOverrideMethod(node)) { + return; + } + rules.FunctionExpression(node); + }, + }; + }, +}); +//# sourceMappingURL=no-empty-function.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map new file mode 100644 index 00000000..3ea15104 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-empty-function.js","sourceRoot":"","sources":["../../src/rules/no-empty-function.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAO1D,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAKxD,MAAM,cAAc,GAAY;IAC9B;QACE,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,MAAM,GAAG,IAAA,gBAAS;AACtB,yHAAyH;AACzH,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EACxB;IACE,UA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AAwB;gBACxB,WAAW,CAAC,IAAI,CAAC;gBACjB,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;gBACpD,IAAI,CAAC,MAAM,CAAC,QAAQ,CACrB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,GAAG,KAAK;YACR,kBAAkB,CAAC,IAAI;gBACrB,IACE,yBAAyB,CAAC,IAAI,CAAC;oBAC/B,gCAAgC,CAAC,IAAI,CAAC;oBACtC,4BAA4B,CAAC,IAAI,CAAC,EAClC,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js new file mode 100644 index 00000000..0f324f12 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js @@ -0,0 +1,92 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-empty-interface', + meta: { + type: 'suggestion', + deprecated: true, + docs: { + description: 'Disallow the declaration of empty interfaces', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + noEmpty: 'An empty interface is equivalent to `{}`.', + noEmptyWithSuper: 'An interface declaring no members is equivalent to its supertype.', + }, + replacedBy: ['@typescript-eslint/no-empty-object-type'], + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowSingleExtends: { + type: 'boolean', + description: 'Whether to allow empty interfaces that extend a single other interface.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowSingleExtends: false, + }, + ], + create(context, [{ allowSingleExtends }]) { + return { + TSInterfaceDeclaration(node) { + if (node.body.body.length !== 0) { + // interface contains members --> Nothing to report + return; + } + const extend = node.extends; + if (extend.length === 0) { + context.report({ + node: node.id, + messageId: 'noEmpty', + }); + } + else if (extend.length === 1 && + // interface extends exactly 1 interface --> Report depending on rule setting + !allowSingleExtends) { + const fix = (fixer) => { + let typeParam = ''; + if (node.typeParameters) { + typeParam = context.sourceCode.getText(node.typeParameters); + } + return fixer.replaceText(node, `type ${context.sourceCode.getText(node.id)}${typeParam} = ${context.sourceCode.getText(extend[0])}`); + }; + const scope = context.sourceCode.getScope(node); + const mergedWithClassDeclaration = scope.set + .get(node.id.name) + ?.defs.some(def => def.node.type === utils_1.AST_NODE_TYPES.ClassDeclaration); + const isInAmbientDeclaration = !!((0, util_1.isDefinitionFile)(context.filename) && + scope.type === scope_manager_1.ScopeType.tsModule && + scope.block.declare); + const useAutoFix = !(isInAmbientDeclaration || mergedWithClassDeclaration); + context.report({ + node: node.id, + messageId: 'noEmptyWithSuper', + ...(useAutoFix + ? { fix } + : !mergedWithClassDeclaration + ? { + suggest: [ + { + messageId: 'noEmptyWithSuper', + fix, + }, + ], + } + : null), + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-empty-interface.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map new file mode 100644 index 00000000..857d6be9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-empty-interface.js","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":";;AAEA,oEAA6D;AAC7D,oDAA0D;AAE1D,kCAAuD;AASvD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,oBAAoB;I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gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js new file mode 100644 index 00000000..55cd3cc8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js @@ -0,0 +1,144 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const noEmptyMessage = (emptyType) => [ + `${emptyType} allows any non-nullish value, including literals like \`0\` and \`""\`.`, + "- If that's what you want, disable this lint rule with an inline comment or configure the '{{ option }}' rule option.", + '- If you want a type meaning "any object", you probably want `object` instead.', + '- If you want a type meaning "any value", you probably want `unknown` instead.', +].join('\n'); +exports.default = (0, util_1.createRule)({ + name: 'no-empty-object-type', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow accidentally using the "empty object" type', + recommended: 'recommended', + }, + hasSuggestions: true, + messages: { + noEmptyInterface: noEmptyMessage('An empty interface declaration'), + noEmptyInterfaceWithSuper: 'An interface declaring no members is equivalent to its supertype.', + noEmptyObject: noEmptyMessage('The `{}` ("empty object") type'), + replaceEmptyInterface: 'Replace empty interface with `{{replacement}}`.', + replaceEmptyInterfaceWithSuper: 'Replace empty interface with a type alias.', + replaceEmptyObjectType: 'Replace `{}` with `{{replacement}}`.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowInterfaces: { + type: 'string', + description: 'Whether to allow empty interfaces.', + enum: ['always', 'never', 'with-single-extends'], + }, + allowObjectTypes: { + type: 'string', + description: 'Whether to allow empty object type literals.', + enum: ['always', 'never'], + }, + allowWithName: { + type: 'string', + description: 'A stringified regular expression to allow interfaces and object type aliases with the configured name.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowInterfaces: 'never', + allowObjectTypes: 'never', + }, + ], + create(context, [{ allowInterfaces, allowObjectTypes, allowWithName }]) { + const allowWithNameTester = allowWithName + ? new RegExp(allowWithName, 'u') + : undefined; + return { + ...(allowInterfaces !== 'always' && { + TSInterfaceDeclaration(node) { + if (allowWithNameTester?.test(node.id.name)) { + return; + } + const extend = node.extends; + if (node.body.body.length !== 0 || + (extend.length === 1 && + allowInterfaces === 'with-single-extends') || + extend.length > 1) { + return; + } + const scope = context.sourceCode.getScope(node); + const mergedWithClassDeclaration = scope.set + .get(node.id.name) + ?.defs.some(def => def.node.type === utils_1.AST_NODE_TYPES.ClassDeclaration); + if (extend.length === 0) { + context.report({ + node: node.id, + messageId: 'noEmptyInterface', + data: { option: 'allowInterfaces' }, + ...(!mergedWithClassDeclaration && { + suggest: ['object', 'unknown'].map(replacement => ({ + messageId: 'replaceEmptyInterface', + data: { replacement }, + fix(fixer) { + const id = context.sourceCode.getText(node.id); + const typeParam = node.typeParameters + ? context.sourceCode.getText(node.typeParameters) + : ''; + return fixer.replaceText(node, `type ${id}${typeParam} = ${replacement}`); + }, + })), + }), + }); + return; + } + context.report({ + node: node.id, + messageId: 'noEmptyInterfaceWithSuper', + ...(!mergedWithClassDeclaration && { + suggest: [ + { + messageId: 'replaceEmptyInterfaceWithSuper', + fix(fixer) { + const extended = context.sourceCode.getText(extend[0]); + const id = context.sourceCode.getText(node.id); + const typeParam = node.typeParameters + ? context.sourceCode.getText(node.typeParameters) + : ''; + return fixer.replaceText(node, `type ${id}${typeParam} = ${extended}`); + }, + }, + ], + }), + }); + }, + }), + ...(allowObjectTypes !== 'always' && { + TSTypeLiteral(node) { + if (node.members.length || + node.parent.type === utils_1.AST_NODE_TYPES.TSIntersectionType || + (allowWithNameTester && + node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration && + allowWithNameTester.test(node.parent.id.name))) { + return; + } + context.report({ + node, + messageId: 'noEmptyObject', + data: { option: 'allowObjectTypes' }, + suggest: ['object', 'unknown'].map(replacement => ({ + messageId: 'replaceEmptyObjectType', + data: { replacement }, + fix: (fixer) => fixer.replaceText(node, replacement), + })), + }); + }, + }), + }; + }, +}); +//# sourceMappingURL=no-empty-object-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map new file mode 100644 index 00000000..4ceb1be6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-empty-object-type.js","sourceRoot":"","sources":["../../src/rules/no-empty-object-type.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAsBrC,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAU,EAAE,CACnD;IACE,GAAG,SAAS,0EAA0E;IACtF,uHAAuH;IACvH,gFAAgF;IAChF,gFAAgF;CACjF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEf,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,gBAAgB,EAAE,cAAc,CAAC,gCAAgC,CAAC;YAClE,yBAAyB,EACvB,mEAAmE;YACrE,aAAa,EAAE,cAAc,CAAC,gCAAgC,CAAC;YAC/D,qBAAqB,EAAE,iDAAiD;YACxE,8BAA8B,EAC5B,4CAA4C;YAC9C,sBAAsB,EAAE,sCAAsC;SAC/D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBAC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AE,EAAE,WAAW,EAAE;4BACrB,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE,CAC/B,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC;yBACvC,CAAC,CAAC;qBACJ,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js new file mode 100644 index 00000000..2365b897 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js @@ -0,0 +1,170 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-explicit-any', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow the `any` type', + recommended: 'recommended', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + suggestNever: "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.", + suggestUnknown: 'Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.', + unexpectedAny: 'Unexpected any. Specify a different type.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + fixToUnknown: { + type: 'boolean', + description: 'Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type.', + }, + ignoreRestArgs: { + type: 'boolean', + description: 'Whether to ignore rest parameter arrays.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + fixToUnknown: false, + ignoreRestArgs: false, + }, + ], + create(context, [{ fixToUnknown, ignoreRestArgs }]) { + /** + * Checks if the node is an arrow function, function/constructor declaration or function expression + * @param node the node to be validated. + * @returns true if the node is any kind of function declaration or expression + * @private + */ + function isNodeValidFunction(node) { + return [ + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, // const x = (...args: any[]) => {}; + utils_1.AST_NODE_TYPES.FunctionDeclaration, // function f(...args: any[]) {} + utils_1.AST_NODE_TYPES.FunctionExpression, // const x = function(...args: any[]) {}; + utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, // type T = {(...args: any[]): unknown}; + utils_1.AST_NODE_TYPES.TSConstructorType, // type T = new (...args: any[]) => unknown + utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, // type T = {new (...args: any[]): unknown}; + utils_1.AST_NODE_TYPES.TSDeclareFunction, // declare function _8(...args: any[]): unknown; + utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, // declare class A { f(...args: any[]): unknown; } + utils_1.AST_NODE_TYPES.TSFunctionType, // type T = (...args: any[]) => unknown; + utils_1.AST_NODE_TYPES.TSMethodSignature, // type T = {f(...args: any[]): unknown}; + ].includes(node.type); + } + /** + * Checks if the node is a rest element child node of a function + * @param node the node to be validated. + * @returns true if the node is a rest element child node of a function + * @private + */ + function isNodeRestElementInFunction(node) { + return (node.type === utils_1.AST_NODE_TYPES.RestElement && + isNodeValidFunction(node.parent)); + } + /** + * Checks if the node is a TSTypeOperator node with a readonly operator + * @param node the node to be validated. + * @returns true if the node is a TSTypeOperator node with a readonly operator + * @private + */ + function isNodeReadonlyTSTypeOperator(node) { + return (node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && + node.operator === 'readonly'); + } + /** + * Checks if the node is a TSTypeReference node with an Array identifier + * @param node the node to be validated. + * @returns true if the node is a TSTypeReference node with an Array identifier + * @private + */ + function isNodeValidArrayTSTypeReference(node) { + return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && + node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + ['Array', 'ReadonlyArray'].includes(node.typeName.name)); + } + /** + * Checks if the node is a valid TSTypeOperator or TSTypeReference node + * @param node the node to be validated. + * @returns true if the node is a valid TSTypeOperator or TSTypeReference node + * @private + */ + function isNodeValidTSType(node) { + return (isNodeReadonlyTSTypeOperator(node) || + isNodeValidArrayTSTypeReference(node)); + } + /** + * Checks if the great grand-parent node is a RestElement node in a function + * @param node the node to be validated. + * @returns true if the great grand-parent node is a RestElement node in a function + * @private + */ + function isGreatGrandparentRestElement(node) { + return (node.parent?.parent?.parent != null && + isNodeRestElementInFunction(node.parent.parent.parent)); + } + /** + * Checks if the great great grand-parent node is a valid RestElement node in a function + * @param node the node to be validated. + * @returns true if the great great grand-parent node is a valid RestElement node in a function + * @private + */ + function isGreatGreatGrandparentRestElement(node) { + return (node.parent?.parent?.parent?.parent != null && + isNodeValidTSType(node.parent.parent) && + isNodeRestElementInFunction(node.parent.parent.parent.parent)); + } + /** + * Checks if the great grand-parent or the great great grand-parent node is a RestElement node + * @param node the node to be validated. + * @returns true if the great grand-parent or the great great grand-parent node is a RestElement node + * @private + */ + function isNodeDescendantOfRestElementInFunction(node) { + return (isGreatGrandparentRestElement(node) || + isGreatGreatGrandparentRestElement(node)); + } + return { + TSAnyKeyword(node) { + if (ignoreRestArgs && isNodeDescendantOfRestElementInFunction(node)) { + return; + } + const fixOrSuggest = { + fix: null, + suggest: [ + { + messageId: 'suggestUnknown', + fix(fixer) { + return fixer.replaceText(node, 'unknown'); + }, + }, + { + messageId: 'suggestNever', + fix(fixer) { + return fixer.replaceText(node, 'never'); + }, + }, + ], + }; + if (fixToUnknown) { + fixOrSuggest.fix = (fixer) => fixer.replaceText(node, 'unknown'); + } + context.report({ + node, + messageId: 'unexpectedAny', + ...fixOrSuggest, + }); + }, + }; + }, +}); +//# sourceMappingURL=no-explicit-any.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map new file mode 100644 index 00000000..4257b790 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map @@ -0,0 +1 @@ +{"version":3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file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js new file mode 100644 index 00000000..e5281460 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-extra-non-null-assertion', + meta: { + type: 'problem', + docs: { + description: 'Disallow extra non-null assertions', + recommended: 'recommended', + }, + fixable: 'code', + messages: { + noExtraNonNullAssertion: 'Forbidden extra non-null assertion.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function checkExtraNonNullAssertion(node) { + context.report({ + node, + messageId: 'noExtraNonNullAssertion', + fix(fixer) { + return fixer.removeRange([node.range[1] - 1, node.range[1]]); + }, + }); + } + return { + 'CallExpression[optional = true] > TSNonNullExpression.callee': checkExtraNonNullAssertion, + 'MemberExpression[optional = true] > TSNonNullExpression.object': checkExtraNonNullAssertion, + 'TSNonNullExpression > TSNonNullExpression': checkExtraNonNullAssertion, + }; + }, +}); +//# sourceMappingURL=no-extra-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map new file mode 100644 index 00000000..e09cd67e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-extra-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-extra-non-null-assertion.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,uBAAuB,EAAE,qCAAqC;SAC/D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,0BAA0B,CACjC,IAAkC;YAElC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,yBAAyB;gBACpC,GAAG,CAAC,KAAK;oBACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/D,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,8DAA8D,EAC5D,0BAA0B;YAC5B,gEAAgE,EAC9D,0BAA0B;YAC5B,2CAA2C,EAAE,0BAA0B;SACxE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js new file mode 100644 index 00000000..e300fd3e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js @@ -0,0 +1,120 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-extraneous-class', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow classes used as namespaces', + recommended: 'strict', + }, + messages: { + empty: 'Unexpected empty class.', + onlyConstructor: 'Unexpected class with only a constructor.', + onlyStatic: 'Unexpected class with only static properties.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowConstructorOnly: { + type: 'boolean', + description: 'Whether to allow extraneous classes that contain only a constructor.', + }, + allowEmpty: { + type: 'boolean', + description: 'Whether to allow extraneous classes that have no body (i.e. are empty).', + }, + allowStaticOnly: { + type: 'boolean', + description: 'Whether to allow extraneous classes that only contain static members.', + }, + allowWithDecorator: { + type: 'boolean', + description: 'Whether to allow extraneous classes that include a decorator.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowConstructorOnly: false, + allowEmpty: false, + allowStaticOnly: false, + allowWithDecorator: false, + }, + ], + create(context, [{ allowConstructorOnly, allowEmpty, allowStaticOnly, allowWithDecorator }]) { + const isAllowWithDecorator = (node) => { + return !!(allowWithDecorator && + node?.decorators && + node.decorators.length !== 0); + }; + return { + ClassBody(node) { + const parent = node.parent; + if (parent.superClass || isAllowWithDecorator(parent)) { + return; + } + const reportNode = parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration && parent.id + ? parent.id + : parent; + if (node.body.length === 0) { + if (allowEmpty) { + return; + } + context.report({ + node: reportNode, + messageId: 'empty', + }); + return; + } + let onlyStatic = true; + let onlyConstructor = true; + for (const prop of node.body) { + if (prop.type === utils_1.AST_NODE_TYPES.MethodDefinition && + prop.kind === 'constructor') { + if (prop.value.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty)) { + onlyConstructor = false; + onlyStatic = false; + } + } + else { + onlyConstructor = false; + if (((prop.type === utils_1.AST_NODE_TYPES.PropertyDefinition || + prop.type === utils_1.AST_NODE_TYPES.MethodDefinition) && + !prop.static) || + prop.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || + prop.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition // `static abstract` methods and properties are currently not supported. See: https://github.com/microsoft/TypeScript/issues/34516 + ) { + onlyStatic = false; + } + } + if (!(onlyStatic || onlyConstructor)) { + break; + } + } + if (onlyConstructor) { + if (!allowConstructorOnly) { + context.report({ + node: reportNode, + messageId: 'onlyConstructor', + }); + } + return; + } + if (onlyStatic && !allowStaticOnly) { + context.report({ + node: reportNode, + messageId: 'onlyStatic', + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-extraneous-class.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map new file mode 100644 index 00000000..0c7adb74 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-extraneous-class.js","sourceRoot":"","sources":["../../src/rules/no-extraneous-class.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAYrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,yBAAyB;YAChC,eAAe,EAAE,2CAA2C;YAC5D,UAAU,EAAE,+CAA+C;SAC5D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sEAAsE;qBACzE;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yEAAyE;qBAC5E;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,uEAAuE;qBAC1E;oBACD,kBAAkB,EAAE;wBAClB,IAAI,EAAE,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C;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js new file mode 100644 index 00000000..e9110b2a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js @@ -0,0 +1,375 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const messageBase = 'Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler.'; +const messageBaseVoid = 'Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler' + + ' or be explicitly marked as ignored with the `void` operator.'; +const messageRejectionHandler = 'A rejection handler that is not a function will be ignored.'; +const messagePromiseArray = "An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar."; +const messagePromiseArrayVoid = "An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar," + + ' or explicitly marking the expression as ignored with the `void` operator.'; +exports.default = (0, util_1.createRule)({ + name: 'no-floating-promises', + meta: { + type: 'problem', + docs: { + description: 'Require Promise-like statements to be handled appropriately', + recommended: 'recommended', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + floating: messageBase, + floatingFixAwait: 'Add await operator.', + floatingFixVoid: 'Add void operator to ignore.', + floatingPromiseArray: messagePromiseArray, + floatingPromiseArrayVoid: messagePromiseArrayVoid, + floatingUselessRejectionHandler: `${messageBase} ${messageRejectionHandler}`, + floatingUselessRejectionHandlerVoid: `${messageBaseVoid} ${messageRejectionHandler}`, + floatingVoid: messageBaseVoid, + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowForKnownSafeCalls: { + ...util_1.readonlynessOptionsSchema.properties.allow, + description: 'Type specifiers of functions whose calls are safe to float.', + }, + allowForKnownSafePromises: { + ...util_1.readonlynessOptionsSchema.properties.allow, + description: 'Type specifiers that are known to be safe to float.', + }, + checkThenables: { + type: 'boolean', + description: 'Whether to check all "Thenable"s, not just the built-in Promise type.', + }, + ignoreIIFE: { + type: 'boolean', + description: 'Whether to ignore async IIFEs (Immediately Invoked Function Expressions).', + }, + ignoreVoid: { + type: 'boolean', + description: 'Whether to ignore `void` expressions.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowForKnownSafeCalls: util_1.readonlynessOptionsDefaults.allow, + allowForKnownSafePromises: util_1.readonlynessOptionsDefaults.allow, + checkThenables: false, + ignoreIIFE: false, + ignoreVoid: true, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const { checkThenables } = options; + // TODO: #5439 + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + const allowForKnownSafePromises = options.allowForKnownSafePromises; + const allowForKnownSafeCalls = options.allowForKnownSafeCalls; + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + return { + ExpressionStatement(node) { + if (options.ignoreIIFE && isAsyncIife(node)) { + return; + } + let expression = node.expression; + if (expression.type === utils_1.AST_NODE_TYPES.ChainExpression) { + expression = expression.expression; + } + if (isKnownSafePromiseReturn(expression)) { + return; + } + const { isUnhandled, nonFunctionHandler, promiseArray } = isUnhandledPromise(checker, expression); + if (isUnhandled) { + if (promiseArray) { + context.report({ + node, + messageId: options.ignoreVoid + ? 'floatingPromiseArrayVoid' + : 'floatingPromiseArray', + }); + } + else if (options.ignoreVoid) { + context.report({ + node, + messageId: nonFunctionHandler + ? 'floatingUselessRejectionHandlerVoid' + : 'floatingVoid', + suggest: [ + { + messageId: 'floatingFixVoid', + fix(fixer) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node.expression); + if (isHigherPrecedenceThanUnary(tsNode)) { + return fixer.insertTextBefore(node, 'void '); + } + return [ + fixer.insertTextBefore(node, 'void ('), + fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), + ]; + }, + }, + { + messageId: 'floatingFixAwait', + fix: (fixer) => addAwait(fixer, expression, node), + }, + ], + }); + } + else { + context.report({ + node, + messageId: nonFunctionHandler + ? 'floatingUselessRejectionHandler' + : 'floating', + suggest: [ + { + messageId: 'floatingFixAwait', + fix: (fixer) => addAwait(fixer, expression, node), + }, + ], + }); + } + } + }, + }; + function addAwait(fixer, expression, node) { + if (expression.type === utils_1.AST_NODE_TYPES.UnaryExpression && + expression.operator === 'void') { + return fixer.replaceTextRange([expression.range[0], expression.range[0] + 4], 'await'); + } + const tsNode = services.esTreeNodeToTSNodeMap.get(node.expression); + if (isHigherPrecedenceThanUnary(tsNode)) { + return fixer.insertTextBefore(node, 'await '); + } + return [ + fixer.insertTextBefore(node, 'await ('), + fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), + ]; + } + function isKnownSafePromiseReturn(node) { + if (node.type !== utils_1.AST_NODE_TYPES.CallExpression) { + return false; + } + const type = services.getTypeAtLocation(node.callee); + return (0, util_1.typeMatchesSomeSpecifier)(type, allowForKnownSafeCalls, services.program); + } + function isHigherPrecedenceThanUnary(node) { + const operator = ts.isBinaryExpression(node) + ? node.operatorToken.kind + : ts.SyntaxKind.Unknown; + const nodePrecedence = (0, util_1.getOperatorPrecedence)(node.kind, operator); + return nodePrecedence > util_1.OperatorPrecedence.Unary; + } + function isAsyncIife(node) { + if (node.expression.type !== utils_1.AST_NODE_TYPES.CallExpression) { + return false; + } + return (node.expression.callee.type === + utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + node.expression.callee.type === utils_1.AST_NODE_TYPES.FunctionExpression); + } + function isValidRejectionHandler(rejectionHandler) { + return (services.program + .getTypeChecker() + .getTypeAtLocation(services.esTreeNodeToTSNodeMap.get(rejectionHandler)) + .getCallSignatures().length > 0); + } + function isUnhandledPromise(checker, node) { + if (node.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { + return { isUnhandled: false }; + } + // First, check expressions whose resulting types may not be promise-like + if (node.type === utils_1.AST_NODE_TYPES.SequenceExpression) { + // Any child in a comma expression could return a potentially unhandled + // promise, so we check them all regardless of whether the final returned + // value is promise-like. + return (node.expressions + .map(item => isUnhandledPromise(checker, item)) + .find(result => result.isUnhandled) ?? { isUnhandled: false }); + } + if (!options.ignoreVoid && + node.type === utils_1.AST_NODE_TYPES.UnaryExpression && + node.operator === 'void') { + // Similarly, a `void` expression always returns undefined, so we need to + // see what's inside it without checking the type of the overall expression. + return isUnhandledPromise(checker, node.argument); + } + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + // Check the type. At this point it can't be unhandled if it isn't a promise + // or array thereof. + if (isPromiseArray(tsNode)) { + return { isUnhandled: true, promiseArray: true }; + } + // await expression addresses promises, but not promise arrays. + if (node.type === utils_1.AST_NODE_TYPES.AwaitExpression) { + // you would think this wouldn't be strictly necessary, since we're + // anyway checking the type of the expression, but, unfortunately TS + // reports the result of `await (promise as Promise & number)` + // as `Promise & number` instead of `number`. + return { isUnhandled: false }; + } + if (!isPromiseLike(tsNode)) { + return { isUnhandled: false }; + } + if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { + // If the outer expression is a call, a `.catch()` or `.then()` with + // rejection handler handles the promise. + const { callee } = node; + if (callee.type === utils_1.AST_NODE_TYPES.MemberExpression) { + const methodName = (0, util_1.getStaticMemberAccessValue)(callee, context); + const catchRejectionHandler = methodName === 'catch' && node.arguments.length >= 1 + ? node.arguments[0] + : undefined; + if (catchRejectionHandler) { + if (isValidRejectionHandler(catchRejectionHandler)) { + return { isUnhandled: false }; + } + return { isUnhandled: true, nonFunctionHandler: true }; + } + const thenRejectionHandler = methodName === 'then' && node.arguments.length >= 2 + ? node.arguments[1] + : undefined; + if (thenRejectionHandler) { + if (isValidRejectionHandler(thenRejectionHandler)) { + return { isUnhandled: false }; + } + return { isUnhandled: true, nonFunctionHandler: true }; + } + // `x.finally()` is transparent to resolution of the promise, so check `x`. + // ("object" in this context is the `x` in `x.finally()`) + const promiseFinallyObject = methodName === 'finally' ? callee.object : undefined; + if (promiseFinallyObject) { + return isUnhandledPromise(checker, promiseFinallyObject); + } + } + // All other cases are unhandled. + return { isUnhandled: true }; + } + else if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { + // We must be getting the promise-like value from one of the branches of the + // ternary. Check them directly. + const alternateResult = isUnhandledPromise(checker, node.alternate); + if (alternateResult.isUnhandled) { + return alternateResult; + } + return isUnhandledPromise(checker, node.consequent); + } + else if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + const leftResult = isUnhandledPromise(checker, node.left); + if (leftResult.isUnhandled) { + return leftResult; + } + return isUnhandledPromise(checker, node.right); + } + // Anything else is unhandled. + return { isUnhandled: true }; + } + function isPromiseArray(node) { + const type = checker.getTypeAtLocation(node); + for (const ty of tsutils + .unionTypeParts(type) + .map(t => checker.getApparentType(t))) { + if (checker.isArrayType(ty)) { + const arrayType = checker.getTypeArguments(ty)[0]; + if (isPromiseLike(node, arrayType)) { + return true; + } + } + if (checker.isTupleType(ty)) { + for (const tupleElementType of checker.getTypeArguments(ty)) { + if (isPromiseLike(node, tupleElementType)) { + return true; + } + } + } + } + return false; + } + function isPromiseLike(node, type) { + type ??= checker.getTypeAtLocation(node); + // The highest priority is to allow anything allowlisted + if ((0, util_1.typeMatchesSomeSpecifier)(type, allowForKnownSafePromises, services.program)) { + return false; + } + // Otherwise, we always consider the built-in Promise to be Promise-like... + const typeParts = tsutils.unionTypeParts(checker.getApparentType(type)); + if (typeParts.some(typePart => (0, util_1.isBuiltinSymbolLike)(services.program, typePart, 'Promise'))) { + return true; + } + // ...and only check all Thenables if explicitly told to + if (!checkThenables) { + return false; + } + // Modified from tsutils.isThenable() to only consider thenables which can be + // rejected/caught via a second parameter. Original source (MIT licensed): + // + // https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125 + for (const ty of typeParts) { + const then = ty.getProperty('then'); + if (then === undefined) { + continue; + } + const thenType = checker.getTypeOfSymbolAtLocation(then, node); + if (hasMatchingSignature(thenType, signature => signature.parameters.length >= 2 && + isFunctionParam(checker, signature.parameters[0], node) && + isFunctionParam(checker, signature.parameters[1], node))) { + return true; + } + } + return false; + } + }, +}); +function hasMatchingSignature(type, matcher) { + for (const t of tsutils.unionTypeParts(type)) { + if (t.getCallSignatures().some(matcher)) { + return true; + } + } + return false; +} +function isFunctionParam(checker, param, node) { + const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); + for (const t of tsutils.unionTypeParts(type)) { + if (t.getCallSignatures().length !== 0) { + return true; + } + } + return false; +} +//# sourceMappingURL=no-floating-promises.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map new file mode 100644 index 00000000..c5a71989 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-floating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AM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js new file mode 100644 index 00000000..e4d5fd27 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js @@ -0,0 +1,61 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getForStatementHeadLoc_1 = require("../util/getForStatementHeadLoc"); +exports.default = (0, util_1.createRule)({ + name: 'no-for-in-array', + meta: { + type: 'problem', + docs: { + description: 'Disallow iterating over an array with a for-in loop', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + forInViolation: 'For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + ForInStatement(node) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node.right); + if ((0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(type, checker) || + (type.flags & ts.TypeFlags.StringLike) !== 0) { + context.report({ + loc: (0, getForStatementHeadLoc_1.getForStatementHeadLoc)(context.sourceCode, node), + messageId: 'forInViolation', + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-for-in-array.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map new file mode 100644 index 00000000..5f9bf7fa --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,kCAKiB;AACjB,2EAAwE;AAExE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,iNAAiN;SACpN;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;gBAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAElD,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEhE,IACE,IAAA,yCAAkC,EAAC,IAAI,EAAE,OAAO,CAAC;oBACjD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;wBACrD,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js new file mode 100644 index 00000000..48e6b4c7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js @@ -0,0 +1,143 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const FUNCTION_CONSTRUCTOR = 'Function'; +const GLOBAL_CANDIDATES = new Set(['global', 'globalThis', 'window']); +const EVAL_LIKE_METHODS = new Set([ + 'execScript', + 'setImmediate', + 'setInterval', + 'setTimeout', +]); +exports.default = (0, util_1.createRule)({ + name: 'no-implied-eval', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow the use of `eval()`-like methods', + extendsBaseRule: true, + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + noFunctionConstructor: 'Implied eval. Do not use the Function constructor to create functions.', + noImpliedEvalError: 'Implied eval. Consider passing a function.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function getCalleeName(node) { + if (node.type === utils_1.AST_NODE_TYPES.Identifier) { + return node.name; + } + if (node.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.object.type === utils_1.AST_NODE_TYPES.Identifier && + GLOBAL_CANDIDATES.has(node.object.name)) { + if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { + return node.property.name; + } + if (node.property.type === utils_1.AST_NODE_TYPES.Literal && + typeof node.property.value === 'string') { + return node.property.value; + } + } + return null; + } + function isFunctionType(node) { + const type = services.getTypeAtLocation(node); + const symbol = type.getSymbol(); + if (symbol && + tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Function | ts.SymbolFlags.Method)) { + return true; + } + if ((0, util_1.isBuiltinSymbolLike)(services.program, type, FUNCTION_CONSTRUCTOR)) { + return true; + } + const signatures = checker.getSignaturesOfType(type, ts.SignatureKind.Call); + return signatures.length > 0; + } + function isBind(node) { + return node.type === utils_1.AST_NODE_TYPES.MemberExpression + ? isBind(node.property) + : node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === 'bind'; + } + function isFunction(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + case utils_1.AST_NODE_TYPES.FunctionExpression: + return true; + case utils_1.AST_NODE_TYPES.Literal: + case utils_1.AST_NODE_TYPES.TemplateLiteral: + return false; + case utils_1.AST_NODE_TYPES.CallExpression: + return isBind(node.callee) || isFunctionType(node); + default: + return isFunctionType(node); + } + } + function checkImpliedEval(node) { + const calleeName = getCalleeName(node.callee); + if (calleeName == null) { + return; + } + if (calleeName === FUNCTION_CONSTRUCTOR) { + const type = services.getTypeAtLocation(node.callee); + const symbol = type.getSymbol(); + if (symbol) { + if ((0, util_1.isBuiltinSymbolLike)(services.program, type, 'FunctionConstructor')) { + context.report({ node, messageId: 'noFunctionConstructor' }); + return; + } + } + else { + context.report({ node, messageId: 'noFunctionConstructor' }); + return; + } + } + if (node.arguments.length === 0) { + return; + } + const [handler] = node.arguments; + if (EVAL_LIKE_METHODS.has(calleeName) && + !isFunction(handler) && + (0, util_1.isReferenceToGlobalFunction)(calleeName, node, context.sourceCode)) { + context.report({ node: handler, messageId: 'noImpliedEvalError' }); + } + } + return { + CallExpression: checkImpliedEval, + NewExpression: checkImpliedEval, + }; + }, +}); +//# sourceMappingURL=no-implied-eval.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map new file mode 100644 index 00000000..afe4d6b1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map @@ -0,0 +1 @@ +{"version":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,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;oBAC7D,OAAO;gBACT,CAAC;YACH,CAAC;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChC,OAAO;YACT,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IACE,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACpB,IAAA,kCAA2B,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACjE,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,aAAa,EAAE,gBAAgB;SAChC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js new file mode 100644 index 00000000..b6d6724a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-import-type-side-effects', + meta: { + type: 'problem', + docs: { + description: 'Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers', + }, + fixable: 'code', + messages: { + useTopLevelQualifier: 'TypeScript will only remove the inline type specifiers which will leave behind a side effect import at runtime. Convert this to a top-level type qualifier to properly remove the entire import.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + 'ImportDeclaration[importKind!="type"]'(node) { + if (node.specifiers.length === 0) { + return; + } + const specifiers = []; + for (const specifier of node.specifiers) { + if (specifier.type !== utils_1.AST_NODE_TYPES.ImportSpecifier || + specifier.importKind !== 'type') { + return; + } + specifiers.push(specifier); + } + context.report({ + node, + messageId: 'useTopLevelQualifier', + fix(fixer) { + const fixes = []; + for (const specifier of specifiers) { + const qualifier = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(specifier, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type keyword', 'import specifier')); + fixes.push(fixer.removeRange([ + qualifier.range[0], + specifier.imported.range[0], + ])); + } + const importKeyword = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import keyword', 'import')); + fixes.push(fixer.insertTextAfter(importKeyword, ' type')); + return fixes; + }, + }); + }, + }; + }, +}); +//# sourceMappingURL=no-import-type-side-effects.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map new file mode 100644 index 00000000..eabd4d26 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-import-type-side-effects.js","sourceRoot":"","sources":["../../src/rules/no-import-type-side-effects.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAMiB;AAKjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mHAAmH;SACtH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,kMAAk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AAC;wBACF,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;wBAE1D,OAAO,KAAK,CAAC;oBACf,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js new file mode 100644 index 00000000..5574a071 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js @@ -0,0 +1,184 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-inferrable-types', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + noInferrableType: 'Type {{type}} trivially inferred from a {{type}} literal, remove type annotation.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreParameters: { + type: 'boolean', + description: 'Whether to ignore function parameters.', + }, + ignoreProperties: { + type: 'boolean', + description: 'Whether to ignore class properties.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreParameters: false, + ignoreProperties: false, + }, + ], + create(context, [{ ignoreParameters, ignoreProperties }]) { + function isFunctionCall(init, callName) { + if (init.type === utils_1.AST_NODE_TYPES.ChainExpression) { + return isFunctionCall(init.expression, callName); + } + return (init.type === utils_1.AST_NODE_TYPES.CallExpression && + init.callee.type === utils_1.AST_NODE_TYPES.Identifier && + init.callee.name === callName); + } + function isLiteral(init, typeName) { + return (init.type === utils_1.AST_NODE_TYPES.Literal && typeof init.value === typeName); + } + function isIdentifier(init, ...names) { + return (init.type === utils_1.AST_NODE_TYPES.Identifier && names.includes(init.name)); + } + function hasUnaryPrefix(init, ...operators) { + return (init.type === utils_1.AST_NODE_TYPES.UnaryExpression && + operators.includes(init.operator)); + } + const keywordMap = { + [utils_1.AST_NODE_TYPES.TSBigIntKeyword]: 'bigint', + [utils_1.AST_NODE_TYPES.TSBooleanKeyword]: 'boolean', + [utils_1.AST_NODE_TYPES.TSNullKeyword]: 'null', + [utils_1.AST_NODE_TYPES.TSNumberKeyword]: 'number', + [utils_1.AST_NODE_TYPES.TSStringKeyword]: 'string', + [utils_1.AST_NODE_TYPES.TSSymbolKeyword]: 'symbol', + [utils_1.AST_NODE_TYPES.TSUndefinedKeyword]: 'undefined', + }; + /** + * Returns whether a node has an inferrable value or not + */ + function isInferrable(annotation, init) { + switch (annotation.type) { + case utils_1.AST_NODE_TYPES.TSBigIntKeyword: { + // note that bigint cannot have + prefixed to it + const unwrappedInit = hasUnaryPrefix(init, '-') + ? init.argument + : init; + return (isFunctionCall(unwrappedInit, 'BigInt') || + unwrappedInit.type === utils_1.AST_NODE_TYPES.Literal); + } + case utils_1.AST_NODE_TYPES.TSBooleanKeyword: + return (hasUnaryPrefix(init, '!') || + isFunctionCall(init, 'Boolean') || + isLiteral(init, 'boolean')); + case utils_1.AST_NODE_TYPES.TSNumberKeyword: { + const unwrappedInit = hasUnaryPrefix(init, '+', '-') + ? init.argument + : init; + return (isIdentifier(unwrappedInit, 'Infinity', 'NaN') || + isFunctionCall(unwrappedInit, 'Number') || + isLiteral(unwrappedInit, 'number')); + } + case utils_1.AST_NODE_TYPES.TSNullKeyword: + return init.type === utils_1.AST_NODE_TYPES.Literal && init.value == null; + case utils_1.AST_NODE_TYPES.TSStringKeyword: + return (isFunctionCall(init, 'String') || + isLiteral(init, 'string') || + init.type === utils_1.AST_NODE_TYPES.TemplateLiteral); + case utils_1.AST_NODE_TYPES.TSSymbolKeyword: + return isFunctionCall(init, 'Symbol'); + case utils_1.AST_NODE_TYPES.TSTypeReference: { + if (annotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + annotation.typeName.name === 'RegExp') { + const isRegExpLiteral = init.type === utils_1.AST_NODE_TYPES.Literal && + init.value instanceof RegExp; + const isRegExpNewCall = init.type === utils_1.AST_NODE_TYPES.NewExpression && + init.callee.type === utils_1.AST_NODE_TYPES.Identifier && + init.callee.name === 'RegExp'; + const isRegExpCall = isFunctionCall(init, 'RegExp'); + return isRegExpLiteral || isRegExpCall || isRegExpNewCall; + } + return false; + } + case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: + return (hasUnaryPrefix(init, 'void') || isIdentifier(init, 'undefined')); + } + return false; + } + /** + * Reports an inferrable type declaration, if any + */ + function reportInferrableType(node, typeNode, initNode) { + if (!typeNode || !initNode) { + return; + } + if (!isInferrable(typeNode.typeAnnotation, initNode)) { + return; + } + const type = typeNode.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference + ? // TODO - if we add more references + 'RegExp' + : keywordMap[typeNode.typeAnnotation.type]; + context.report({ + node, + messageId: 'noInferrableType', + data: { + type, + }, + *fix(fixer) { + if ((node.type === utils_1.AST_NODE_TYPES.AssignmentPattern && + node.left.optional) || + (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && node.definite)) { + yield fixer.remove((0, util_1.nullThrows)(context.sourceCode.getTokenBefore(typeNode), util_1.NullThrowsReasons.MissingToken('token before', 'type node'))); + } + yield fixer.remove(typeNode); + }, + }); + } + function inferrableVariableVisitor(node) { + reportInferrableType(node, node.id.typeAnnotation, node.init); + } + function inferrableParameterVisitor(node) { + if (ignoreParameters) { + return; + } + node.params.forEach(param => { + if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { + param = param.parameter; + } + if (param.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { + reportInferrableType(param, param.left.typeAnnotation, param.right); + } + }); + } + function inferrablePropertyVisitor(node) { + // We ignore `readonly` because of Microsoft/TypeScript#14416 + // Essentially a readonly property without a type + // will result in its value being the type, leading to + // compile errors if the type is stripped. + if (ignoreProperties || node.readonly || node.optional) { + return; + } + reportInferrableType(node, node.typeAnnotation, node.value); + } + return { + ArrowFunctionExpression: inferrableParameterVisitor, + FunctionDeclaration: inferrableParameterVisitor, + FunctionExpression: inferrableParameterVisitor, + PropertyDefinition: inferrablePropertyVisitor, + VariableDeclarator: inferrableVariableVisitor, + }; + }, +}); +//# sourceMappingURL=no-inferrable-types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map new file mode 100644 index 00000000..a0e51091 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAE1D,kCAAoE;AAUpE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6GAA6G;YAC/G,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,gBAAgB,EACd,mFAAmF;SACtF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,wCAAwC;qBACtD;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,qCAAqC;qBACnD;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,KAAK;YACvB,gBAAgB,EAAE,K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AC;QAED,SAAS,0BAA0B,CACjC,IAG+B;YAE/B,IAAI,gBAAgB,EAAE,CAAC;gBACrB,OAAO;YACT,CAAC;YAED,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBAC1B,IAAI,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,EAAE,CAAC;oBACtD,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC;gBAC1B,CAAC;gBAED,IAAI,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE,CAAC;oBACpD,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtE,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,yBAAyB,CAChC,IAAiC;YAEjC,6DAA6D;YAC7D,iDAAiD;YACjD,sDAAsD;YACtD,0CAA0C;YAC1C,IAAI,gBAAgB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,0BAA0B;YACnD,mBAAmB,EAAE,0BAA0B;YAC/C,kBAAkB,EAAE,0BAA0B;YAC9C,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,yBAAyB;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js new file mode 100644 index 00000000..63938771 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js @@ -0,0 +1,76 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-invalid-this'); +const defaultOptions = [{ capIsConstructor: true }]; +exports.default = (0, util_1.createRule)({ + name: 'no-invalid-this', + meta: { + type: 'suggestion', + defaultOptions, + docs: { + description: 'Disallow `this` keywords outside of classes or class-like objects', + extendsBaseRule: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions, + create(context) { + const rules = baseRule.create(context); + /** + * Since function definitions can be nested we use a stack storing if "this" is valid in the current context. + * + * Example: + * + * function a(this: number) { // valid "this" + * function b() { + * console.log(this); // invalid "this" + * } + * } + * + * When parsing the function declaration of "a" the stack will be: [true] + * When parsing the function declaration of "b" the stack will be: [true, false] + */ + const thisIsValidStack = []; + return { + ...rules, + AccessorProperty() { + thisIsValidStack.push(true); + }, + 'AccessorProperty:exit'() { + thisIsValidStack.pop(); + }, + FunctionDeclaration(node) { + thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); + }, + 'FunctionDeclaration:exit'() { + thisIsValidStack.pop(); + }, + FunctionExpression(node) { + thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); + }, + 'FunctionExpression:exit'() { + thisIsValidStack.pop(); + }, + PropertyDefinition() { + thisIsValidStack.push(true); + }, + 'PropertyDefinition:exit'() { + thisIsValidStack.pop(); + }, + ThisExpression(node) { + const thisIsValidHere = thisIsValidStack[thisIsValidStack.length - 1]; + if (thisIsValidHere) { + return; + } + // baseRule's work + rules.ThisExpression(node); + }, + }; + }, +}); +//# sourceMappingURL=no-invalid-this.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map new file mode 100644 index 00000000..16291f29 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-invalid-this.js","sourceRoot":"","sources":["../../src/rules/no-invalid-this.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,iBAAiB,CAAC,CAAC;AAKtD,MAAM,cAAc,GAAY,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;AAE7D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc;IACd,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC;;;;;;;;;;;;;WAaG;QACH,MAAM,gBAAgB,GAAc,EAAE,CAAC;QAEvC,OAAO;YACL,GAAG,KAAK;YACR,gBAAgB;gBACd,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,uBAAuB;gBACrB,gBAAgB,CAAC,GAAG,EAAE,CAAC;YACzB,CAAC;YACD,mBAAmB,CAAC,IAAkC;gBACpD,gBAAgB,CAAC,IAAI,CACnB,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CACpE,CACF,CAAC;YACJ,CAAC;YACD,0BAA0B;gBACxB,gBAAgB,CAAC,GAAG,EAAE,CAAC;YACzB,CAAC;YACD,kBAAkB,CAAC,IAAiC;gBAClD,gBAAgB,CAAC,IAAI,CACnB,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CACpE,CACF,CAAC;YACJ,CAAC;YACD,yBAAyB;gBACvB,gBAAgB,CAAC,GAAG,EAAE,CAAC;YACzB,CAAC;YACD,kBAAkB;gBAChB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,yBAAyB;gBACvB,gBAAgB,CAAC,GAAG,EAAE,CAAC;YACzB,CAAC;YACD,cAAc,CAAC,IAA6B;gBAC1C,MAAM,eAAe,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAEtE,IAAI,eAAe,EAAE,CAAC;oBACpB,OAAO;gBACT,CAAC;gBAED,kBAAkB;gBAClB,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js new file mode 100644 index 00000000..e5cb5cc3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js @@ -0,0 +1,188 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-invalid-void-type', + meta: { + type: 'problem', + docs: { + description: 'Disallow `void` type outside of generic or return types', + recommended: 'strict', + }, + messages: { + invalidVoidForGeneric: '{{ generic }} may not have void as a type argument.', + invalidVoidNotReturn: 'void is only valid as a return type.', + invalidVoidNotReturnOrGeneric: 'void is only valid as a return type or generic type argument.', + invalidVoidNotReturnOrThisParam: 'void is only valid as return type or type of `this` parameter.', + invalidVoidNotReturnOrThisParamOrGeneric: 'void is only valid as a return type or generic type argument or the type of a `this` parameter.', + invalidVoidUnionConstituent: 'void is not valid as a constituent in a union type', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowAsThisParameter: { + type: 'boolean', + description: 'Whether a `this` parameter of a function may be `void`.', + }, + allowInGenericTypeArguments: { + description: 'Whether `void` can be used as a valid value for generic type parameters.', + oneOf: [ + { + type: 'boolean', + description: 'Whether `void` can be used as a valid value for all generic type parameters.', + }, + { + type: 'array', + description: 'Allowlist of types that may accept `void` as a generic type parameter.', + items: { type: 'string' }, + minItems: 1, + }, + ], + }, + }, + }, + ], + }, + defaultOptions: [ + { allowAsThisParameter: false, allowInGenericTypeArguments: true }, + ], + create(context, [{ allowAsThisParameter, allowInGenericTypeArguments }]) { + const validParents = [ + utils_1.AST_NODE_TYPES.TSTypeAnnotation, // + ]; + const invalidGrandParents = [ + utils_1.AST_NODE_TYPES.TSPropertySignature, + utils_1.AST_NODE_TYPES.CallExpression, + utils_1.AST_NODE_TYPES.PropertyDefinition, + utils_1.AST_NODE_TYPES.Identifier, + ]; + const validUnionMembers = [ + utils_1.AST_NODE_TYPES.TSVoidKeyword, + utils_1.AST_NODE_TYPES.TSNeverKeyword, + ]; + if (allowInGenericTypeArguments === true) { + validParents.push(utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation); + } + /** + * @brief check if the given void keyword is used as a valid generic type + * + * reports if the type parametrized by void is not in the allowlist, or + * allowInGenericTypeArguments is false. + * no-op if the given void keyword is not used as generic type + */ + function checkGenericTypeArgument(node) { + // only matches T<..., void, ...> + // extra check for precaution + /* istanbul ignore next */ + if (node.parent.type !== utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation || + node.parent.parent.type !== utils_1.AST_NODE_TYPES.TSTypeReference) { + return; + } + // check allowlist + if (Array.isArray(allowInGenericTypeArguments)) { + const fullyQualifiedName = context.sourceCode + .getText(node.parent.parent.typeName) + .replaceAll(' ', ''); + if (!allowInGenericTypeArguments + .map(s => s.replaceAll(' ', '')) + .includes(fullyQualifiedName)) { + context.report({ + node, + messageId: 'invalidVoidForGeneric', + data: { generic: fullyQualifiedName }, + }); + } + return; + } + if (!allowInGenericTypeArguments) { + context.report({ + node, + messageId: allowAsThisParameter + ? 'invalidVoidNotReturnOrThisParam' + : 'invalidVoidNotReturn', + }); + } + } + /** + * @brief checks if the generic type parameter defaults to void + */ + function checkDefaultVoid(node, parentNode) { + if (parentNode.default !== node) { + context.report({ + node, + messageId: getNotReturnOrGenericMessageId(node), + }); + } + } + /** + * @brief checks that a union containing void is valid + * @return true if every member of the union is specified as a valid type in + * validUnionMembers, or is a valid generic type parametrized by void + */ + function isValidUnionType(node) { + return node.types.every(member => validUnionMembers.includes(member.type) || + // allows any T<..., void, ...> here, checked by checkGenericTypeArgument + (member.type === utils_1.AST_NODE_TYPES.TSTypeReference && + member.typeArguments?.type === + utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && + member.typeArguments.params + .map(param => param.type) + .includes(utils_1.AST_NODE_TYPES.TSVoidKeyword))); + } + return { + TSVoidKeyword(node) { + // checks T<..., void, ...> against specification of allowInGenericArguments option + if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && + node.parent.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) { + checkGenericTypeArgument(node); + return; + } + // allow if allowInGenericTypeArguments is specified, and report if the generic type parameter extends void + if (allowInGenericTypeArguments && + node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameter && + node.parent.default?.type === utils_1.AST_NODE_TYPES.TSVoidKeyword) { + checkDefaultVoid(node, node.parent); + return; + } + // union w/ void must contain types from validUnionMembers, or a valid generic void type + if (node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType && + isValidUnionType(node.parent)) { + return; + } + // this parameter is ok to be void. + if (allowAsThisParameter && + node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation && + node.parent.parent.type === utils_1.AST_NODE_TYPES.Identifier && + node.parent.parent.name === 'this') { + return; + } + // default cases + if (validParents.includes(node.parent.type) && + // https://github.com/typescript-eslint/typescript-eslint/issues/6225 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + !invalidGrandParents.includes(node.parent.parent.type)) { + return; + } + context.report({ + node, + messageId: allowInGenericTypeArguments && allowAsThisParameter + ? 'invalidVoidNotReturnOrThisParamOrGeneric' + : allowInGenericTypeArguments + ? getNotReturnOrGenericMessageId(node) + : allowAsThisParameter + ? 'invalidVoidNotReturnOrThisParam' + : 'invalidVoidNotReturn', + }); + }, + }; + }, +}); +function getNotReturnOrGenericMessageId(node) { + return node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType + ? 'invalidVoidUnionConstituent' + : 'invalidVoidNotReturnOrGeneric'; +} +//# sourceMappingURL=no-invalid-void-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map new file mode 100644 index 00000000..ef0d58cd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-invalid-void-type.js","sourceRoot":"","sources":["../../src/rules/no-invalid-void-type.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;A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AC,WAAW;QACpD,CAAC,CAAC,6BAA6B;QAC/B,CAAC,CAAC,+BAA+B,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js new file mode 100644 index 00000000..6587e432 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js @@ -0,0 +1,188 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loop-func'); +exports.default = (0, util_1.createRule)({ + name: 'no-loop-func', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Disallow function declarations that contain unsafe references inside loop statements', + extendsBaseRule: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: [], + }, + defaultOptions: [], + create(context) { + const SKIPPED_IIFE_NODES = new Set(); + /** + * Gets the containing loop node of a specified node. + * + * We don't need to check nested functions, so this ignores those. + * `Scope.through` contains references of nested functions. + * + * @param node An AST node to get. + * @returns The containing loop node of the specified node, or `null`. + */ + function getContainingLoopNode(node) { + for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { + const parent = currentNode.parent; + switch (parent.type) { + case utils_1.AST_NODE_TYPES.WhileStatement: + case utils_1.AST_NODE_TYPES.DoWhileStatement: + return parent; + case utils_1.AST_NODE_TYPES.ForStatement: + // `init` is outside of the loop. + if (parent.init !== currentNode) { + return parent; + } + break; + case utils_1.AST_NODE_TYPES.ForInStatement: + case utils_1.AST_NODE_TYPES.ForOfStatement: + // `right` is outside of the loop. + if (parent.right !== currentNode) { + return parent; + } + break; + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + // We don't need to check nested functions. + // We need to check nested functions only in case of IIFE. + if (SKIPPED_IIFE_NODES.has(parent)) { + break; + } + return null; + default: + break; + } + } + return null; + } + /** + * Gets the containing loop node of a given node. + * If the loop was nested, this returns the most outer loop. + * @param node A node to get. This is a loop node. + * @param excludedNode A node that the result node should not include. + * @returns The most outer loop node. + */ + function getTopLoopNode(node, excludedNode) { + const border = excludedNode ? excludedNode.range[1] : 0; + let retv = node; + let containingLoopNode = node; + while (containingLoopNode && containingLoopNode.range[0] >= border) { + retv = containingLoopNode; + containingLoopNode = getContainingLoopNode(containingLoopNode); + } + return retv; + } + /** + * Checks whether a given reference which refers to an upper scope's variable is + * safe or not. + * @param loopNode A containing loop node. + * @param reference A reference to check. + * @returns `true` if the reference is safe or not. + */ + function isSafe(loopNode, reference) { + const variable = reference.resolved; + const definition = variable?.defs[0]; + const declaration = definition?.parent; + const kind = declaration?.type === utils_1.AST_NODE_TYPES.VariableDeclaration + ? declaration.kind + : ''; + // type references are all safe + // this only really matters for global types that haven't been configured + if (reference.isTypeReference) { + return true; + } + // Variables which are declared by `const` is safe. + if (kind === 'const') { + return true; + } + /* + * Variables which are declared by `let` in the loop is safe. + * It's a different instance from the next loop step's. + */ + if (kind === 'let' && + declaration && + declaration.range[0] > loopNode.range[0] && + declaration.range[1] < loopNode.range[1]) { + return true; + } + /* + * WriteReferences which exist after this border are unsafe because those + * can modify the variable. + */ + const border = getTopLoopNode(loopNode, kind === 'let' ? declaration : null).range[0]; + /** + * Checks whether a given reference is safe or not. + * The reference is every reference of the upper scope's variable we are + * looking now. + * + * It's safe if the reference matches one of the following condition. + * - is readonly. + * - doesn't exist inside a local function and after the border. + * + * @param upperRef A reference to check. + * @returns `true` if the reference is safe. + */ + function isSafeReference(upperRef) { + const id = upperRef.identifier; + return (!upperRef.isWrite() || + (variable?.scope.variableScope === upperRef.from.variableScope && + id.range[0] < border)); + } + return variable?.references.every(isSafeReference) ?? false; + } + /** + * Reports functions which match the following condition: + * - has a loop node in ancestors. + * - has any references which refers to an unsafe variable. + * + * @param node The AST node to check. + */ + function checkForLoops(node) { + const loopNode = getContainingLoopNode(node); + if (!loopNode) { + return; + } + const references = context.sourceCode.getScope(node).through; + if (!(node.async || node.generator) && isIIFE(node)) { + const isFunctionExpression = node.type === utils_1.AST_NODE_TYPES.FunctionExpression; + // Check if the function is referenced elsewhere in the code + const isFunctionReferenced = isFunctionExpression && node.id + ? references.some(r => r.identifier.name === node.id?.name) + : false; + if (!isFunctionReferenced) { + SKIPPED_IIFE_NODES.add(node); + return; + } + } + const unsafeRefs = references + .filter(r => r.resolved && !isSafe(loopNode, r)) + .map(r => r.identifier.name); + if (unsafeRefs.length > 0) { + context.report({ + node, + messageId: 'unsafeRefs', + data: { varNames: `'${unsafeRefs.join("', '")}'` }, + }); + } + } + return { + ArrowFunctionExpression: checkForLoops, + FunctionDeclaration: checkForLoops, + FunctionExpression: checkForLoops, + }; + }, +}); +function isIIFE(node) { + return (node.parent.type === utils_1.AST_NODE_TYPES.CallExpression && + node.parent.callee === node); +} +//# sourceMappingURL=no-loop-func.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map new file mode 100644 index 00000000..7fdea988 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-loop-func.js","sourceRoot":"","sources":["../../src/rules/no-loop-func.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,kBAAe,IAAA,iBAAU,EA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K,IAAI,CAC5B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js new file mode 100644 index 00000000..c66e9675 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loss-of-precision'); +exports.default = (0, util_1.createRule)({ + name: 'no-loss-of-precision', + meta: { + type: 'problem', + // defaultOptions, -- base rule does not use defaultOptions + deprecated: true, + docs: { + description: 'Disallow literal numbers that lose precision', + extendsBaseRule: true, + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: [], + }, + defaultOptions: [], + create(context) { + return baseRule.create(context); + }, +}); +//# sourceMappingURL=no-loss-of-precision.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map new file mode 100644 index 00000000..7966fc5c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-loss-of-precision.js","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":";;AAKA,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAK3D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,2DAA2D;QAC3D,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js new file mode 100644 index 00000000..2e2c3b0d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js @@ -0,0 +1,248 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-magic-numbers'); +// Extend base schema with additional property to ignore TS numeric literal types +const schema = (0, util_1.deepMerge)( +// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 +Array.isArray(baseRule.meta.schema) + ? baseRule.meta.schema[0] + : baseRule.meta.schema, { + properties: { + ignoreEnums: { + type: 'boolean', + description: 'Whether enums used in TypeScript are considered okay.', + }, + ignoreNumericLiteralTypes: { + type: 'boolean', + description: 'Whether numbers used in TypeScript numeric literal types are considered okay.', + }, + ignoreReadonlyClassProperties: { + type: 'boolean', + description: 'Whether `readonly` class properties are considered okay.', + }, + ignoreTypeIndexes: { + type: 'boolean', + description: 'Whether numbers used to index types are okay.', + }, + }, +}); +exports.default = (0, util_1.createRule)({ + name: 'no-magic-numbers', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Disallow magic numbers', + extendsBaseRule: true, + }, + messages: baseRule.meta.messages, + schema: [schema], + }, + defaultOptions: [ + { + detectObjects: false, + enforceConst: false, + ignore: [], + ignoreArrayIndexes: false, + ignoreEnums: false, + ignoreNumericLiteralTypes: false, + ignoreReadonlyClassProperties: false, + ignoreTypeIndexes: false, + }, + ], + create(context, [options]) { + const rules = baseRule.create(context); + const ignored = new Set((options.ignore ?? []).map(normalizeIgnoreValue)); + return { + Literal(node) { + // If it’s not a numeric literal we’re not interested + if (typeof node.value !== 'number' && typeof node.value !== 'bigint') { + return; + } + // This will be `true` if we’re configured to ignore this case (eg. it’s + // an enum and `ignoreEnums` is `true`). It will be `false` if we’re not + // configured to ignore this case. It will remain `undefined` if this is + // not one of our exception cases, and we’ll fall back to the base rule. + let isAllowed; + // Check if the node is ignored + if (ignored.has(normalizeLiteralValue(node, node.value))) { + isAllowed = true; + } + // Check if the node is a TypeScript enum declaration + else if (isParentTSEnumDeclaration(node)) { + isAllowed = options.ignoreEnums === true; + } + // Check TypeScript specific nodes for Numeric Literal + else if (isTSNumericLiteralType(node)) { + isAllowed = options.ignoreNumericLiteralTypes === true; + } + // Check if the node is a type index + else if (isAncestorTSIndexedAccessType(node)) { + isAllowed = options.ignoreTypeIndexes === true; + } + // Check if the node is a readonly class property + else if (isParentTSReadonlyPropertyDefinition(node)) { + isAllowed = options.ignoreReadonlyClassProperties === true; + } + // If we’ve hit a case where the ignore option is true we can return now + if (isAllowed === true) { + return; + } + // If the ignore option is *not* set we can report it now + else if (isAllowed === false) { + let fullNumberNode = node; + let raw = node.raw; + if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + // the base rule only shows the operator for negative numbers + // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/lib/rules/no-magic-numbers.js#L126 + node.parent.operator === '-') { + fullNumberNode = node.parent; + raw = `${node.parent.operator}${node.raw}`; + } + context.report({ + node: fullNumberNode, + messageId: 'noMagic', + data: { raw }, + }); + return; + } + // Let the base rule deal with the rest + rules.Literal(node); + }, + }; + }, +}); +/** + * Convert the value to bigint if it's a string. Otherwise, return the value as-is. + * @param value The value to normalize. + * @returns The normalized value. + */ +function normalizeIgnoreValue(value) { + if (typeof value === 'string') { + return BigInt(value.slice(0, -1)); + } + return value; +} +/** + * Converts the node to its numeric value, handling prefixed numbers (-1 / +1) + * @param node the node to normalize. + * @param value the node's value. + */ +function normalizeLiteralValue(node, value) { + if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + ['-', '+'].includes(node.parent.operator) && + node.parent.operator === '-') { + return -value; + } + return value; +} +/** + * Gets the true parent of the literal, handling prefixed numbers (-1 / +1) + */ +function getLiteralParent(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + ['-', '+'].includes(node.parent.operator)) { + return node.parent.parent; + } + return node.parent; +} +/** + * Checks if the node grandparent is a Typescript type alias declaration + * @param node the node to be validated. + * @returns true if the node grandparent is a Typescript type alias declaration + * @private + */ +function isGrandparentTSTypeAliasDeclaration(node) { + return node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration; +} +/** + * Checks if the node grandparent is a Typescript union type and its parent is a type alias declaration + * @param node the node to be validated. + * @returns true if the node grandparent is a Typescript union type and its parent is a type alias declaration + * @private + */ +function isGrandparentTSUnionType(node) { + if (node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType) { + return isGrandparentTSTypeAliasDeclaration(node.parent); + } + return false; +} +/** + * Checks if the node parent is a Typescript enum member + * @param node the node to be validated. + * @returns true if the node parent is a Typescript enum member + * @private + */ +function isParentTSEnumDeclaration(node) { + const parent = getLiteralParent(node); + return parent?.type === utils_1.AST_NODE_TYPES.TSEnumMember; +} +/** + * Checks if the node parent is a Typescript literal type + * @param node the node to be validated. + * @returns true if the node parent is a Typescript literal type + * @private + */ +function isParentTSLiteralType(node) { + return node.parent?.type === utils_1.AST_NODE_TYPES.TSLiteralType; +} +/** + * Checks if the node is a valid TypeScript numeric literal type. + * @param node the node to be validated. + * @returns true if the node is a TypeScript numeric literal type. + * @private + */ +function isTSNumericLiteralType(node) { + // For negative numbers, use the parent node + if (node.parent?.type === utils_1.AST_NODE_TYPES.UnaryExpression && + node.parent.operator === '-') { + node = node.parent; + } + // If the parent node is not a TSLiteralType, early return + if (!isParentTSLiteralType(node)) { + return false; + } + // If the grandparent is a TSTypeAliasDeclaration, ignore + if (isGrandparentTSTypeAliasDeclaration(node)) { + return true; + } + // If the grandparent is a TSUnionType and it's parent is a TSTypeAliasDeclaration, ignore + if (isGrandparentTSUnionType(node)) { + return true; + } + return false; +} +/** + * Checks if the node parent is a readonly class property + * @param node the node to be validated. + * @returns true if the node parent is a readonly class property + * @private + */ +function isParentTSReadonlyPropertyDefinition(node) { + const parent = getLiteralParent(node); + if (parent?.type === utils_1.AST_NODE_TYPES.PropertyDefinition && parent.readonly) { + return true; + } + return false; +} +/** + * Checks if the node is part of a type indexed access (eg. Foo[4]) + * @param node the node to be validated. + * @returns true if the node is part of an indexed access + * @private + */ +function isAncestorTSIndexedAccessType(node) { + // Handle unary expressions (eg. -4) + let ancestor = getLiteralParent(node); + // Go up another level while we’re part of a type union (eg. 1 | 2) or + // intersection (eg. 1 & 2) + while (ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType || + ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIntersectionType) { + ancestor = ancestor.parent; + } + return ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIndexedAccessType; +} +//# sourceMappingURL=no-magic-numbers.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map new file mode 100644 index 00000000..ae454ab7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAO1D,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,kBAAkB,CAAC,CAAC;AAKvD,iFAAiF;AACjF,MAAM,MAAM,GAAG,IAAA,gBAAS;AACtB,yHAAyH;AACzH,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EACxB;IACE,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;SACrE;QACD,yBAAyB,EAAE;YACzB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,+EAA+E;SAClF;QACD,6BAA6B,EAAE;YAC7B,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0DAA0D;SACxE;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+CAA+C;SAC7D;KACF;CACF,CACwB,CAAC;AAE5B,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EAAE,wBAAwB;YACrC,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,CAAC,MAAM,CAAC;KACjB;IAC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QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,WAAW;QACrD,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC5D,CAAC;QACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAAC;AACvE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js new file mode 100644 index 00000000..240fe340 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js @@ -0,0 +1,95 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-meaningless-void-operator', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow the `void` operator except when used to discard a value', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + hasSuggestions: true, + messages: { + meaninglessVoidOperator: "void operator shouldn't be used on {{type}}; it should convey that a return value is being ignored", + removeVoid: "Remove 'void'", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + checkNever: { + type: 'boolean', + default: false, + description: 'Whether to suggest removing `void` when the argument has type `never`.', + }, + }, + }, + ], + }, + defaultOptions: [{ checkNever: false }], + create(context, [{ checkNever }]) { + const services = utils_1.ESLintUtils.getParserServices(context); + const checker = services.program.getTypeChecker(); + return { + 'UnaryExpression[operator="void"]'(node) { + const fix = (fixer) => { + return fixer.removeRange([ + context.sourceCode.getTokens(node)[0].range[0], + context.sourceCode.getTokens(node)[1].range[0], + ]); + }; + const argType = services.getTypeAtLocation(node.argument); + const unionParts = tsutils.unionTypeParts(argType); + if (unionParts.every(part => part.flags & (ts.TypeFlags.Void | ts.TypeFlags.Undefined))) { + context.report({ + node, + messageId: 'meaninglessVoidOperator', + data: { type: checker.typeToString(argType) }, + fix, + }); + } + else if (checkNever && + unionParts.every(part => part.flags & + (ts.TypeFlags.Void | ts.TypeFlags.Undefined | ts.TypeFlags.Never))) { + context.report({ + node, + messageId: 'meaninglessVoidOperator', + data: { type: checker.typeToString(argType) }, + suggest: [{ messageId: 'removeVoid', fix }], + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-meaningless-void-operator.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map new file mode 100644 index 00000000..9346419f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-meaningless-void-operator.js","sourceRoot":"","sources":["../../src/rules/no-meaningless-void-operator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAqC;AAQrC,kBAAe,IAAA,iBAAU,EAAoD;IAC3E,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,uBAAuB,EACrB,oGAAoG;YACtG,UAAU,EAAE,eAAe;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACT,wEAAwE;qBAC3E;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAEvC,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;QAC9B,MAAM,QAAQ,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,OAAO;YACL,kCAAkC,CAAC,IAA8B;gBAC/D,MAAM,GAAG,GAAG,CAAC,KAAyB,EAAoB,EAAE;oBAC1D,OAAO,KAAK,CAAC,WAAW,CAAC;wBACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC9C,OAAO,CAAC,UAAU,CA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/dist/rules/no-misused-new.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js new file mode 100644 index 00000000..2249331c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js @@ -0,0 +1,82 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-misused-new', + meta: { + type: 'problem', + docs: { + description: 'Enforce valid definition of `new` and `constructor`', + recommended: 'recommended', + }, + messages: { + errorMessageClass: 'Class cannot have method named `new`.', + errorMessageInterface: 'Interfaces cannot be constructed, only classes.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + /** + * @param node type to be inspected. + * @returns name of simple type or null + */ + function getTypeReferenceName(node) { + if (node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSTypeAnnotation: + return getTypeReferenceName(node.typeAnnotation); + case utils_1.AST_NODE_TYPES.TSTypeReference: + return getTypeReferenceName(node.typeName); + case utils_1.AST_NODE_TYPES.Identifier: + return node.name; + default: + break; + } + } + return null; + } + /** + * @param parent parent node. + * @param returnType type to be compared + */ + function isMatchingParentType(parent, returnType) { + if (parent && + (parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration || + parent.type === utils_1.AST_NODE_TYPES.ClassExpression || + parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) && + parent.id) { + return getTypeReferenceName(returnType) === parent.id.name; + } + return false; + } + return { + "ClassBody > MethodDefinition[key.name='new']"(node) { + if (node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression && + isMatchingParentType(node.parent.parent, node.value.returnType)) { + context.report({ + node, + messageId: 'errorMessageClass', + }); + } + }, + 'TSInterfaceBody > TSConstructSignatureDeclaration'(node) { + if (isMatchingParentType(node.parent.parent, node.returnType)) { + // constructor + context.report({ + node, + messageId: 'errorMessageInterface', + }); + } + }, + "TSMethodSignature[key.name='constructor']"(node) { + context.report({ + node, + messageId: 'errorMessageInterface', + }); + }, + }; + }, +}); +//# sourceMappingURL=no-misused-new.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map new file mode 100644 index 00000000..e4a03696 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-misused-new.js","sourceRoot":"","sources":["../../src/rules/no-misused-new.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,uCAAuC;YAC1D,qBAAqB,EAAE,iDAAiD;SACzE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,oBAAoB,CAC3B,IAIa;YAEb,IAAI,IAAI,EAAE,CAAC;gBACT,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;oBAClB,KAAK,sBAAc,CAAC,gBAAgB;wBAClC,OAAO,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBACnD,KAAK,sBAAc,CAAC,eAAe;wBACjC,OAAO,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAC7C,KAAK,sBAAc,CAAC,UAAU;wBAC5B,OAAO,IAAI,CAAC,IAAI,CAAC;oBACnB;wBACE,MAAM;gBACV,CAAC;YACH,CAAC;YACD,O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eslint/eslint-plugin/dist/rules/no-misused-promises.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js new file mode 100644 index 00000000..038f1a05 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js @@ -0,0 +1,743 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +function parseChecksVoidReturn(checksVoidReturn) { + switch (checksVoidReturn) { + case false: + return false; + case true: + case undefined: + return { + arguments: true, + attributes: true, + inheritedMethods: true, + properties: true, + returns: true, + variables: true, + }; + default: + return { + arguments: checksVoidReturn.arguments ?? true, + attributes: checksVoidReturn.attributes ?? true, + inheritedMethods: checksVoidReturn.inheritedMethods ?? true, + properties: checksVoidReturn.properties ?? true, + returns: checksVoidReturn.returns ?? true, + variables: checksVoidReturn.variables ?? true, + }; + } +} +exports.default = (0, util_1.createRule)({ + name: 'no-misused-promises', + meta: { + type: 'problem', + docs: { + description: 'Disallow Promises in places not designed to handle them', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + conditional: 'Expected non-Promise value in a boolean conditional.', + predicate: 'Expected a non-Promise value to be returned.', + spread: 'Expected a non-Promise value to be spreaded in an object.', + voidReturnArgument: 'Promise returned in function argument where a void return was expected.', + voidReturnAttribute: 'Promise-returning function provided to attribute where a void return was expected.', + voidReturnInheritedMethod: "Promise-returning method provided where a void return was expected by extended/implemented type '{{ heritageTypeName }}'.", + voidReturnProperty: 'Promise-returning function provided to property where a void return was expected.', + voidReturnReturnValue: 'Promise-returning function provided to return value where a void return was expected.', + voidReturnVariable: 'Promise-returning function provided to variable where a void return was expected.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + checksConditionals: { + type: 'boolean', + description: 'Whether to warn when a Promise is provided to conditional statements.', + }, + checksSpreads: { + type: 'boolean', + description: 'Whether to warn when `...` spreading a `Promise`.', + }, + checksVoidReturn: { + description: 'Whether to warn when a Promise is returned from a function typed as returning `void`.', + oneOf: [ + { + type: 'boolean', + description: 'Whether to disable checking all asynchronous functions.', + }, + { + type: 'object', + additionalProperties: false, + description: 'Which forms of functions may have checking disabled.', + properties: { + arguments: { + type: 'boolean', + description: 'Disables checking an asynchronous function passed as argument where the parameter type expects a function that returns `void`.', + }, + attributes: { + type: 'boolean', + description: 'Disables checking an asynchronous function passed as a JSX attribute expected to be a function that returns `void`.', + }, + inheritedMethods: { + type: 'boolean', + description: 'Disables checking an asynchronous method in a type that extends or implements another type expecting that method to return `void`.', + }, + properties: { + type: 'boolean', + description: 'Disables checking an asynchronous function passed as an object property expected to be a function that returns `void`.', + }, + returns: { + type: 'boolean', + description: 'Disables checking an asynchronous function returned in a function whose return type is a function that returns `void`.', + }, + variables: { + type: 'boolean', + description: 'Disables checking an asynchronous function used as a variable whose return type is a function that returns `void`.', + }, + }, + }, + ], + }, + }, + }, + ], + }, + defaultOptions: [ + { + checksConditionals: true, + checksSpreads: true, + checksVoidReturn: true, + }, + ], + create(context, [{ checksConditionals, checksSpreads, checksVoidReturn }]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const checkedNodes = new Set(); + const conditionalChecks = { + 'CallExpression > MemberExpression': checkArrayPredicates, + ConditionalExpression: checkTestConditional, + DoWhileStatement: checkTestConditional, + ForStatement: checkTestConditional, + IfStatement: checkTestConditional, + LogicalExpression: checkConditional, + 'UnaryExpression[operator="!"]'(node) { + checkConditional(node.argument, true); + }, + WhileStatement: checkTestConditional, + }; + checksVoidReturn = parseChecksVoidReturn(checksVoidReturn); + const voidReturnChecks = checksVoidReturn + ? { + ...(checksVoidReturn.arguments && { + CallExpression: checkArguments, + NewExpression: checkArguments, + }), + ...(checksVoidReturn.attributes && { + JSXAttribute: checkJSXAttribute, + }), + ...(checksVoidReturn.inheritedMethods && { + ClassDeclaration: checkClassLikeOrInterfaceNode, + ClassExpression: checkClassLikeOrInterfaceNode, + TSInterfaceDeclaration: checkClassLikeOrInterfaceNode, + }), + ...(checksVoidReturn.properties && { + Property: checkProperty, + }), + ...(checksVoidReturn.returns && { + ReturnStatement: checkReturnStatement, + }), + ...(checksVoidReturn.variables && { + AssignmentExpression: checkAssignment, + VariableDeclarator: checkVariableDeclaration, + }), + } + : {}; + const spreadChecks = { + SpreadElement: checkSpread, + }; + /** + * A syntactic check to see if an annotated type is maybe a function type. + * This is a perf optimization to help avoid requesting types where possible + */ + function isPossiblyFunctionType(node) { + switch (node.typeAnnotation.type) { + case utils_1.AST_NODE_TYPES.TSConditionalType: + case utils_1.AST_NODE_TYPES.TSConstructorType: + case utils_1.AST_NODE_TYPES.TSFunctionType: + case utils_1.AST_NODE_TYPES.TSImportType: + case utils_1.AST_NODE_TYPES.TSIndexedAccessType: + case utils_1.AST_NODE_TYPES.TSInferType: + case utils_1.AST_NODE_TYPES.TSIntersectionType: + case utils_1.AST_NODE_TYPES.TSQualifiedName: + case utils_1.AST_NODE_TYPES.TSThisType: + case utils_1.AST_NODE_TYPES.TSTypeOperator: + case utils_1.AST_NODE_TYPES.TSTypeQuery: + case utils_1.AST_NODE_TYPES.TSTypeReference: + case utils_1.AST_NODE_TYPES.TSUnionType: + return true; + case utils_1.AST_NODE_TYPES.TSTypeLiteral: + return node.typeAnnotation.members.some(member => member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration || + member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration); + case utils_1.AST_NODE_TYPES.TSAbstractKeyword: + case utils_1.AST_NODE_TYPES.TSAnyKeyword: + case utils_1.AST_NODE_TYPES.TSArrayType: + case utils_1.AST_NODE_TYPES.TSAsyncKeyword: + case utils_1.AST_NODE_TYPES.TSBigIntKeyword: + case utils_1.AST_NODE_TYPES.TSBooleanKeyword: + case utils_1.AST_NODE_TYPES.TSDeclareKeyword: + case utils_1.AST_NODE_TYPES.TSExportKeyword: + case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: + case utils_1.AST_NODE_TYPES.TSLiteralType: + case utils_1.AST_NODE_TYPES.TSMappedType: + case utils_1.AST_NODE_TYPES.TSNamedTupleMember: + case utils_1.AST_NODE_TYPES.TSNeverKeyword: + case utils_1.AST_NODE_TYPES.TSNullKeyword: + case utils_1.AST_NODE_TYPES.TSNumberKeyword: + case utils_1.AST_NODE_TYPES.TSObjectKeyword: + case utils_1.AST_NODE_TYPES.TSOptionalType: + case utils_1.AST_NODE_TYPES.TSPrivateKeyword: + case utils_1.AST_NODE_TYPES.TSProtectedKeyword: + case utils_1.AST_NODE_TYPES.TSPublicKeyword: + case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: + case utils_1.AST_NODE_TYPES.TSRestType: + case utils_1.AST_NODE_TYPES.TSStaticKeyword: + case utils_1.AST_NODE_TYPES.TSStringKeyword: + case utils_1.AST_NODE_TYPES.TSSymbolKeyword: + case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: + case utils_1.AST_NODE_TYPES.TSTupleType: + case utils_1.AST_NODE_TYPES.TSTypePredicate: + case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: + case utils_1.AST_NODE_TYPES.TSUnknownKeyword: + case utils_1.AST_NODE_TYPES.TSVoidKeyword: + return false; + } + } + function checkTestConditional(node) { + if (node.test) { + checkConditional(node.test, true); + } + } + /** + * This function analyzes the type of a node and checks if it is a Promise in a boolean conditional. + * It uses recursion when checking nested logical operators. + * @param node The AST node to check. + * @param isTestExpr Whether the node is a descendant of a test expression. + */ + function checkConditional(node, isTestExpr = false) { + // prevent checking the same node multiple times + if (checkedNodes.has(node)) { + return; + } + checkedNodes.add(node); + if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + // ignore the left operand for nullish coalescing expressions not in a context of a test expression + if (node.operator !== '??' || isTestExpr) { + checkConditional(node.left, isTestExpr); + } + // we ignore the right operand when not in a context of a test expression + if (isTestExpr) { + checkConditional(node.right, isTestExpr); + } + return; + } + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (isAlwaysThenable(checker, tsNode)) { + context.report({ + node, + messageId: 'conditional', + }); + } + } + function checkArrayPredicates(node) { + const parent = node.parent; + if (parent.type === utils_1.AST_NODE_TYPES.CallExpression) { + const callback = parent.arguments.at(0); + if (callback && + (0, util_1.isArrayMethodCallWithPredicate)(context, services, parent)) { + const type = services.esTreeNodeToTSNodeMap.get(callback); + if (returnsThenable(checker, type)) { + context.report({ + node: callback, + messageId: 'predicate', + }); + } + } + } + } + function checkArguments(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const voidArgs = voidFunctionArguments(checker, tsNode); + if (voidArgs.size === 0) { + return; + } + for (const [index, argument] of node.arguments.entries()) { + if (!voidArgs.has(index)) { + continue; + } + const tsNode = services.esTreeNodeToTSNodeMap.get(argument); + if (returnsThenable(checker, tsNode)) { + context.report({ + node: argument, + messageId: 'voidReturnArgument', + }); + } + } + } + function checkAssignment(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const varType = services.getTypeAtLocation(node.left); + if (!isVoidReturningFunctionType(checker, tsNode.left, varType)) { + return; + } + if (returnsThenable(checker, tsNode.right)) { + context.report({ + node: node.right, + messageId: 'voidReturnVariable', + }); + } + } + function checkVariableDeclaration(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (tsNode.initializer === undefined || + node.init == null || + node.id.typeAnnotation == null) { + return; + } + // syntactically ignore some known-good cases to avoid touching type info + if (!isPossiblyFunctionType(node.id.typeAnnotation)) { + return; + } + const varType = services.getTypeAtLocation(node.id); + if (!isVoidReturningFunctionType(checker, tsNode.initializer, varType)) { + return; + } + if (returnsThenable(checker, tsNode.initializer)) { + context.report({ + node: node.init, + messageId: 'voidReturnVariable', + }); + } + } + function checkProperty(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (ts.isPropertyAssignment(tsNode)) { + const contextualType = checker.getContextualType(tsNode.initializer); + if (contextualType !== undefined && + isVoidReturningFunctionType(checker, tsNode.initializer, contextualType) && + returnsThenable(checker, tsNode.initializer)) { + if ((0, util_1.isFunction)(node.value)) { + const functionNode = node.value; + if (functionNode.returnType) { + context.report({ + node: functionNode.returnType.typeAnnotation, + messageId: 'voidReturnProperty', + }); + } + else { + context.report({ + loc: (0, util_1.getFunctionHeadLoc)(functionNode, context.sourceCode), + messageId: 'voidReturnProperty', + }); + } + } + else { + context.report({ + node: node.value, + messageId: 'voidReturnProperty', + }); + } + } + } + else if (ts.isShorthandPropertyAssignment(tsNode)) { + const contextualType = checker.getContextualType(tsNode.name); + if (contextualType !== undefined && + isVoidReturningFunctionType(checker, tsNode.name, contextualType) && + returnsThenable(checker, tsNode.name)) { + context.report({ + node: node.value, + messageId: 'voidReturnProperty', + }); + } + } + else if (ts.isMethodDeclaration(tsNode)) { + if (ts.isComputedPropertyName(tsNode.name)) { + return; + } + const obj = tsNode.parent; + // Below condition isn't satisfied unless something goes wrong, + // but is needed for type checking. + // 'node' does not include class method declaration so 'obj' is + // always an object literal expression, but after converting 'node' + // to TypeScript AST, its type includes MethodDeclaration which + // does include the case of class method declaration. + if (!ts.isObjectLiteralExpression(obj)) { + return; + } + if (!returnsThenable(checker, tsNode)) { + return; + } + const objType = checker.getContextualType(obj); + if (objType === undefined) { + return; + } + const propertySymbol = checker.getPropertyOfType(objType, tsNode.name.text); + if (propertySymbol === undefined) { + return; + } + const contextualType = checker.getTypeOfSymbolAtLocation(propertySymbol, tsNode.name); + if (isVoidReturningFunctionType(checker, tsNode.name, contextualType)) { + const functionNode = node.value; + if (functionNode.returnType) { + context.report({ + node: functionNode.returnType.typeAnnotation, + messageId: 'voidReturnProperty', + }); + } + else { + context.report({ + loc: (0, util_1.getFunctionHeadLoc)(functionNode, context.sourceCode), + messageId: 'voidReturnProperty', + }); + } + } + return; + } + } + function checkReturnStatement(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (tsNode.expression === undefined || node.argument == null) { + return; + } + // syntactically ignore some known-good cases to avoid touching type info + const functionNode = (() => { + let current = node.parent; + while (current && !(0, util_1.isFunction)(current)) { + current = current.parent; + } + return (0, util_1.nullThrows)(current, util_1.NullThrowsReasons.MissingParent); + })(); + if (functionNode.returnType && + !isPossiblyFunctionType(functionNode.returnType)) { + return; + } + const contextualType = checker.getContextualType(tsNode.expression); + if (contextualType !== undefined && + isVoidReturningFunctionType(checker, tsNode.expression, contextualType) && + returnsThenable(checker, tsNode.expression)) { + context.report({ + node: node.argument, + messageId: 'voidReturnReturnValue', + }); + } + } + function checkClassLikeOrInterfaceNode(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const heritageTypes = getHeritageTypes(checker, tsNode); + if (!heritageTypes?.length) { + return; + } + for (const nodeMember of tsNode.members) { + const memberName = nodeMember.name?.getText(); + if (memberName === undefined) { + // Call/construct/index signatures don't have names. TS allows call signatures to mismatch, + // and construct signatures can't be async. + // TODO - Once we're able to use `checker.isTypeAssignableTo` (v8), we can check an index + // signature here against its compatible index signatures in `heritageTypes` + continue; + } + if (!returnsThenable(checker, nodeMember)) { + continue; + } + const node = services.tsNodeToESTreeNodeMap.get(nodeMember); + if (isStaticMember(node)) { + continue; + } + for (const heritageType of heritageTypes) { + checkHeritageTypeForMemberReturningVoid(nodeMember, heritageType, memberName); + } + } + } + /** + * Checks `heritageType` for a member named `memberName` that returns void; reports the + * 'voidReturnInheritedMethod' message if found. + * @param nodeMember Node member that returns a Promise + * @param heritageType Heritage type to check against + * @param memberName Name of the member to check for + */ + function checkHeritageTypeForMemberReturningVoid(nodeMember, heritageType, memberName) { + const heritageMember = getMemberIfExists(heritageType, memberName); + if (heritageMember === undefined) { + return; + } + const memberType = checker.getTypeOfSymbolAtLocation(heritageMember, nodeMember); + if (!isVoidReturningFunctionType(checker, nodeMember, memberType)) { + return; + } + context.report({ + node: services.tsNodeToESTreeNodeMap.get(nodeMember), + messageId: 'voidReturnInheritedMethod', + data: { heritageTypeName: checker.typeToString(heritageType) }, + }); + } + function checkJSXAttribute(node) { + if (node.value == null || + node.value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) { + return; + } + const expressionContainer = services.esTreeNodeToTSNodeMap.get(node.value); + const expression = services.esTreeNodeToTSNodeMap.get(node.value.expression); + const contextualType = checker.getContextualType(expressionContainer); + if (contextualType !== undefined && + isVoidReturningFunctionType(checker, expressionContainer, contextualType) && + returnsThenable(checker, expression)) { + context.report({ + node: node.value, + messageId: 'voidReturnAttribute', + }); + } + } + function checkSpread(node) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (isSometimesThenable(checker, tsNode.expression)) { + context.report({ + node: node.argument, + messageId: 'spread', + }); + } + } + return { + ...(checksConditionals ? conditionalChecks : {}), + ...(checksVoidReturn ? voidReturnChecks : {}), + ...(checksSpreads ? spreadChecks : {}), + }; + }, +}); +function isSometimesThenable(checker, node) { + const type = checker.getTypeAtLocation(node); + for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { + if (tsutils.isThenableType(checker, node, subType)) { + return true; + } + } + return false; +} +// Variation on the thenable check which requires all forms of the type (read: +// alternates in a union) to be thenable. Otherwise, you might be trying to +// check if something is defined or undefined and get caught because one of the +// branches is thenable. +function isAlwaysThenable(checker, node) { + const type = checker.getTypeAtLocation(node); + for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { + const thenProp = subType.getProperty('then'); + // If one of the alternates has no then property, it is not thenable in all + // cases. + if (thenProp === undefined) { + return false; + } + // We walk through each variation of the then property. Since we know it + // exists at this point, we just need at least one of the alternates to + // be of the right form to consider it thenable. + const thenType = checker.getTypeOfSymbolAtLocation(thenProp, node); + let hasThenableSignature = false; + for (const subType of tsutils.unionTypeParts(thenType)) { + for (const signature of subType.getCallSignatures()) { + if (signature.parameters.length !== 0 && + isFunctionParam(checker, signature.parameters[0], node)) { + hasThenableSignature = true; + break; + } + } + // We only need to find one variant of the then property that has a + // function signature for it to be thenable. + if (hasThenableSignature) { + break; + } + } + // If no flavors of the then property are thenable, we don't consider the + // overall type to be thenable + if (!hasThenableSignature) { + return false; + } + } + // If all variants are considered thenable (i.e. haven't returned false), we + // consider the overall type thenable + return true; +} +function isFunctionParam(checker, param, node) { + const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); + for (const subType of tsutils.unionTypeParts(type)) { + if (subType.getCallSignatures().length !== 0) { + return true; + } + } + return false; +} +function checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices) { + if (isThenableReturningFunctionType(checker, node.expression, type)) { + thenableReturnIndices.add(index); + } + else if (isVoidReturningFunctionType(checker, node.expression, type) && + // If a certain argument accepts both thenable and void returns, + // a promise-returning function is valid + !thenableReturnIndices.has(index)) { + voidReturnIndices.add(index); + } + const contextualType = checker.getContextualTypeForArgumentAtIndex(node, index); + if (contextualType !== type) { + checkThenableOrVoidArgument(checker, node, contextualType, index, thenableReturnIndices, voidReturnIndices); + } +} +// Get the positions of arguments which are void functions (and not also +// thenable functions). These are the candidates for the void-return check at +// the current call site. +// If the function parameters end with a 'rest' parameter, then we consider +// the array type parameter (e.g. '...args:Array') when determining +// if trailing arguments are candidates. +function voidFunctionArguments(checker, node) { + // 'new' can be used without any arguments, as in 'let b = new Object;' + // In this case, there are no argument positions to check, so return early. + if (!node.arguments) { + return new Set(); + } + const thenableReturnIndices = new Set(); + const voidReturnIndices = new Set(); + const type = checker.getTypeAtLocation(node.expression); + // We can't use checker.getResolvedSignature because it prefers an early '() => void' over a later '() => Promise' + // See https://github.com/microsoft/TypeScript/issues/48077 + for (const subType of tsutils.unionTypeParts(type)) { + // Standard function calls and `new` have two different types of signatures + const signatures = ts.isCallExpression(node) + ? subType.getCallSignatures() + : subType.getConstructSignatures(); + for (const signature of signatures) { + for (const [index, parameter] of signature.parameters.entries()) { + const decl = parameter.valueDeclaration; + let type = checker.getTypeOfSymbolAtLocation(parameter, node.expression); + // If this is a array 'rest' parameter, check all of the argument indices + // from the current argument to the end. + if (decl && (0, util_1.isRestParameterDeclaration)(decl)) { + if (checker.isArrayType(type)) { + // Unwrap 'Array' to 'MaybeVoidFunction', + // so that we'll handle it in the same way as a non-rest + // 'param: MaybeVoidFunction' + type = checker.getTypeArguments(type)[0]; + for (let i = index; i < node.arguments.length; i++) { + checkThenableOrVoidArgument(checker, node, type, i, thenableReturnIndices, voidReturnIndices); + } + } + else if (checker.isTupleType(type)) { + // Check each type in the tuple - for example, [boolean, () => void] would + // add the index of the second tuple parameter to 'voidReturnIndices' + const typeArgs = checker.getTypeArguments(type); + for (let i = index; i < node.arguments.length && i - index < typeArgs.length; i++) { + checkThenableOrVoidArgument(checker, node, typeArgs[i - index], i, thenableReturnIndices, voidReturnIndices); + } + } + } + else { + checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices); + } + } + } + } + for (const index of thenableReturnIndices) { + voidReturnIndices.delete(index); + } + return voidReturnIndices; +} +/** + * @returns Whether any call signature of the type has a thenable return type. + */ +function anySignatureIsThenableType(checker, node, type) { + for (const signature of type.getCallSignatures()) { + const returnType = signature.getReturnType(); + if (tsutils.isThenableType(checker, node, returnType)) { + return true; + } + } + return false; +} +/** + * @returns Whether type is a thenable-returning function. + */ +function isThenableReturningFunctionType(checker, node, type) { + for (const subType of tsutils.unionTypeParts(type)) { + if (anySignatureIsThenableType(checker, node, subType)) { + return true; + } + } + return false; +} +/** + * @returns Whether type is a void-returning function. + */ +function isVoidReturningFunctionType(checker, node, type) { + let hadVoidReturn = false; + for (const subType of tsutils.unionTypeParts(type)) { + for (const signature of subType.getCallSignatures()) { + const returnType = signature.getReturnType(); + // If a certain positional argument accepts both thenable and void returns, + // a promise-returning function is valid + if (tsutils.isThenableType(checker, node, returnType)) { + return false; + } + hadVoidReturn ||= tsutils.isTypeFlagSet(returnType, ts.TypeFlags.Void); + } + } + return hadVoidReturn; +} +/** + * @returns Whether expression is a function that returns a thenable. + */ +function returnsThenable(checker, node) { + const type = checker.getApparentType(checker.getTypeAtLocation(node)); + return tsutils + .unionTypeParts(type) + .some(t => anySignatureIsThenableType(checker, node, t)); +} +function getHeritageTypes(checker, tsNode) { + return tsNode.heritageClauses + ?.flatMap(clause => clause.types) + .map(typeExpression => checker.getTypeAtLocation(typeExpression)); +} +/** + * @returns The member with the given name in `type`, if it exists. + */ +function getMemberIfExists(type, memberName) { + const escapedMemberName = ts.escapeLeadingUnderscores(memberName); + const symbolMemberMatch = type.getSymbol()?.members?.get(escapedMemberName); + return (symbolMemberMatch ?? tsutils.getPropertyOfType(type, escapedMemberName)); +} +function isStaticMember(node) { + return ((node.type === utils_1.AST_NODE_TYPES.MethodDefinition || + node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) && + node.static); +} +//# sourceMappingURL=no-misused-promises.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map new file mode 100644 index 00000000..72b14de4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map @@ -0,0 +1 @@ +{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OAAuB,EACvB,MAA0E;IAE1E,OAAO,MAAM,CAAC,eAAe;QAC3B,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;SAChC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;AACtE,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAa,EACb,UAAkB;IAElB,MAAM,iBAAiB,GAAG,EAAE,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5E,OAAO,CACL,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,IAAmB;IACzC,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC5C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,MAAM,CACZ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js new file mode 100644 index 00000000..6763d33d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js @@ -0,0 +1,191 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +var AllowedType; +(function (AllowedType) { + AllowedType[AllowedType["Number"] = 0] = "Number"; + AllowedType[AllowedType["String"] = 1] = "String"; + AllowedType[AllowedType["Unknown"] = 2] = "Unknown"; +})(AllowedType || (AllowedType = {})); +exports.default = (0, util_1.createRule)({ + name: 'no-mixed-enums', + meta: { + type: 'problem', + docs: { + description: 'Disallow enums from having both number and string members', + recommended: 'strict', + requiresTypeChecking: true, + }, + messages: { + mixed: `Mixing number and string enums can be confusing.`, + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const parserServices = (0, util_1.getParserServices)(context); + const typeChecker = parserServices.program.getTypeChecker(); + function collectNodeDefinitions(node) { + const { name } = node.id; + const found = { + imports: [], + previousSibling: undefined, + }; + let scope = context.sourceCode.getScope(node); + for (const definition of scope.upper?.set.get(name)?.defs ?? []) { + if (definition.node.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && + definition.node.range[0] < node.range[0] && + definition.node.body.members.length > 0) { + found.previousSibling = definition.node; + break; + } + } + while (scope) { + scope.set.get(name)?.defs.forEach(definition => { + if (definition.type === scope_manager_1.DefinitionType.ImportBinding) { + found.imports.push(definition.node); + } + }); + scope = scope.upper; + } + return found; + } + function getAllowedTypeForNode(node) { + return tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(node), ts.TypeFlags.StringLike) + ? AllowedType.String + : AllowedType.Number; + } + function getTypeFromImported(imported) { + const type = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(imported)); + const valueDeclaration = type.getSymbol()?.valueDeclaration; + if (!valueDeclaration || + !ts.isEnumDeclaration(valueDeclaration) || + valueDeclaration.members.length === 0) { + return undefined; + } + return getAllowedTypeForNode(valueDeclaration.members[0]); + } + function getMemberType(member) { + if (!member.initializer) { + return AllowedType.Number; + } + switch (member.initializer.type) { + case utils_1.AST_NODE_TYPES.Literal: + switch (typeof member.initializer.value) { + case 'number': + return AllowedType.Number; + case 'string': + return AllowedType.String; + default: + return AllowedType.Unknown; + } + case utils_1.AST_NODE_TYPES.TemplateLiteral: + return AllowedType.String; + default: + return getAllowedTypeForNode(parserServices.esTreeNodeToTSNodeMap.get(member.initializer)); + } + } + function getDesiredTypeForDefinition(node) { + const { imports, previousSibling } = collectNodeDefinitions(node); + // Case: Merged ambiently via module augmentation + // import { MyEnum } from 'other-module'; + // declare module 'other-module' { + // enum MyEnum { A } + // } + for (const imported of imports) { + const typeFromImported = getTypeFromImported(imported); + if (typeFromImported !== undefined) { + return typeFromImported; + } + } + // Case: Multiple enum declarations in the same file + // enum MyEnum { A } + // enum MyEnum { B } + if (previousSibling) { + return getMemberType(previousSibling.body.members[0]); + } + // Case: Namespace declaration merging + // namespace MyNamespace { + // export enum MyEnum { A } + // } + // namespace MyNamespace { + // export enum MyEnum { B } + // } + if (node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && + node.parent.parent.type === utils_1.AST_NODE_TYPES.TSModuleBlock) { + // https://github.com/typescript-eslint/typescript-eslint/issues/8352 + // TODO: We don't need to dip into the TypeScript type checker here! + // Merged namespaces must all exist in the same file. + // We could instead compare this file's nodes to find the merges. + const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.id); + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const declarations = typeChecker + .getSymbolAtLocation(tsNode) + .getDeclarations(); + const [{ initializer }] = declarations[0] + .members; + return initializer && + tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(initializer), ts.TypeFlags.StringLike) + ? AllowedType.String + : AllowedType.Number; + } + // Finally, we default to the type of the first enum member + return getMemberType(node.body.members[0]); + } + return { + TSEnumDeclaration(node) { + if (!node.body.members.length) { + return; + } + let desiredType = getDesiredTypeForDefinition(node); + if (desiredType === ts.TypeFlags.Unknown) { + return; + } + for (const member of node.body.members) { + const currentType = getMemberType(member); + if (currentType === AllowedType.Unknown) { + return; + } + if (currentType === AllowedType.Number) { + desiredType ??= currentType; + } + if (currentType !== desiredType) { + context.report({ + node: member.initializer ?? member, + messageId: 'mixed', + }); + return; + } + } + }, + }; + }, +}); +//# sourceMappingURL=no-mixed-enums.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map new file mode 100644 index 00000000..9f2b4833 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oEAAkE;AAClE,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,iDAAM,CAAA;IACN,iDAAM,CAAA;IACN,mDAAO,CAAA;AACT,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAA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AM,EAAE,CAAC;wBACvC,WAAW,KAAK,WAAW,CAAC;oBAC9B,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;wBAChC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;4BAClC,SAAS,EAAE,OAAO;yBACnB,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js new file mode 100644 index 00000000..8fe10290 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-namespace', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow TypeScript namespaces', + recommended: 'recommended', + }, + messages: { + moduleSyntaxIsPreferred: 'ES2015 module syntax is preferred over namespaces.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowDeclarations: { + type: 'boolean', + description: 'Whether to allow `declare` with custom TypeScript namespaces.', + }, + allowDefinitionFiles: { + type: 'boolean', + description: 'Whether to allow `declare` with custom TypeScript namespaces inside definition files.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowDeclarations: false, + allowDefinitionFiles: true, + }, + ], + create(context, [{ allowDeclarations, allowDefinitionFiles }]) { + function isDeclaration(node) { + if (node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && node.declare) { + return true; + } + return node.parent != null && isDeclaration(node.parent); + } + return { + "TSModuleDeclaration[global!=true][id.type!='Literal']"(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration || + (allowDefinitionFiles && (0, util_1.isDefinitionFile)(context.filename)) || + (allowDeclarations && isDeclaration(node))) { + return; + } + context.report({ + node, + messageId: 'moduleSyntaxIsPreferred', + }); + }, + }; + }, +}); +//# sourceMappingURL=no-namespace.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map new file mode 100644 index 00000000..71488d31 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-namespace.js","sourceRoot":"","sources":["../../src/rules/no-namespace.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAuD;AAUvD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,uBAAuB,EACrB,oDAAoD;SACvD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,+DAA+D;qBAClE;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,uFAAuF;qBAC1F;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB,EAAE,KAAK;YACxB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;QAC3D,SAAS,aAAa,CAAC,IAAmB;YACxC,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO;YACL,uDAAuD,CACrD,IAAkC;gBAElC,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACvD,CAAC,oBAAoB,IAAI,IAAA,uBAAgB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC5D,CAAC,iBAAiB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,EAC1C,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,yBAAyB;iBACrC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js new file mode 100644 index 00000000..d09a327e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js @@ -0,0 +1,74 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +function hasAssignmentBeforeNode(variable, node) { + return (variable.references.some(ref => ref.isWrite() && ref.identifier.range[1] < node.range[1]) || + variable.defs.some(def => isDefinitionWithAssignment(def) && def.node.range[1] < node.range[1])); +} +function isDefinitionWithAssignment(definition) { + if (definition.type !== scope_manager_1.DefinitionType.Variable) { + return false; + } + const variableDeclarator = definition.node; + return variableDeclarator.definite || variableDeclarator.init != null; +} +exports.default = (0, util_1.createRule)({ + name: 'no-non-null-asserted-nullish-coalescing', + meta: { + type: 'problem', + docs: { + description: 'Disallow non-null assertions in the left operand of a nullish coalescing operator', + recommended: 'strict', + }, + hasSuggestions: true, + messages: { + noNonNullAssertedNullishCoalescing: 'The nullish coalescing operator is designed to handle undefined and null - using a non-null assertion is not needed.', + suggestRemovingNonNull: 'Remove the non-null assertion.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + 'LogicalExpression[operator = "??"] > TSNonNullExpression.left'(node) { + if (node.expression.type === utils_1.TSESTree.AST_NODE_TYPES.Identifier) { + const scope = context.sourceCode.getScope(node); + const identifier = node.expression; + const variable = utils_1.ASTUtils.findVariable(scope, identifier.name); + if (variable && !hasAssignmentBeforeNode(variable, node)) { + return; + } + } + context.report({ + node, + messageId: 'noNonNullAssertedNullishCoalescing', + /* + Use a suggestion instead of a fixer, because this can break type checks. + The resulting type of the nullish coalesce is only influenced by the right operand if the left operand can be `null` or `undefined`. + After removing the non-null assertion the type of the left operand might contain `null` or `undefined` and then the type of the right operand + might change the resulting type of the nullish coalesce. + See the following example: + + function test(x?: string): string { + const bar = x! ?? false; // type analysis reports `bar` has type `string` + // x ?? false; // type analysis reports `bar` has type `string | false` + return bar; + } + */ + suggest: [ + { + messageId: 'suggestRemovingNonNull', + fix(fixer) { + const exclamationMark = (0, util_1.nullThrows)(context.sourceCode.getLastToken(node, utils_1.ASTUtils.isNonNullAssertionPunctuator), util_1.NullThrowsReasons.MissingToken('!', 'Non-null Assertion')); + return fixer.remove(exclamationMark); + }, + }, + ], + }); + }, + }; + }, +}); +//# sourceMappingURL=no-non-null-asserted-nullish-coalescing.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map new file mode 100644 index 00000000..d48890c1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-non-null-asserted-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-nullish-coalescing.ts"],"names":[],"mappings":";;AAGA,oEAAkE;AAClE,oDAA8D;AAE9D,kCAAoE;AAEpE,SAAS,uBAAuB,CAC9B,QAAiC,EACjC,IAAmB;IAEnB,OAAO,CACL,QAAQ,CAAC,UAAU,CAAC,IAAI,CACtB,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAChE;QACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAChB,GAAG,CAAC,EAAE,CACJ,0BAA0B,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACvE,CACF,CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B,CAAC,UAAsB;IACxD,IAAI,UAAU,CAAC,IAAI,KAAK,8BAAc,CAAC,QAAQ,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC;IAC3C,OAAO,kBAAkB,CAAC,QAAQ,IAAI,kBAAkB,CAAC,IAAI,IAAI,IAAI,CAAC;AACxE,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yCAAyC;IAC/C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,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a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js new file mode 100644 index 00000000..36975d71 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js @@ -0,0 +1,66 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-non-null-asserted-optional-chain', + meta: { + type: 'problem', + docs: { + description: 'Disallow non-null assertions after an optional chain expression', + recommended: 'recommended', + }, + hasSuggestions: true, + messages: { + noNonNullOptionalChain: 'Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.', + suggestRemovingNonNull: 'You should remove the non-null assertion.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + // non-nulling a wrapped chain will scrub all nulls introduced by the chain + // (x?.y)! + // (x?.())! + 'TSNonNullExpression > ChainExpression'(node) { + // selector guarantees this assertion + const parent = node.parent; + context.report({ + node, + messageId: 'noNonNullOptionalChain', + // use a suggestion instead of a fixer, because this can obviously break type checks + suggest: [ + { + messageId: 'suggestRemovingNonNull', + fix(fixer) { + return fixer.removeRange([ + parent.range[1] - 1, + parent.range[1], + ]); + }, + }, + ], + }); + }, + // non-nulling at the end of a chain will scrub all nulls introduced by the chain + // x?.y! + // x?.()! + 'ChainExpression > TSNonNullExpression'(node) { + context.report({ + node, + messageId: 'noNonNullOptionalChain', + // use a suggestion instead of a fixer, because this can obviously break type checks + suggest: [ + { + messageId: 'suggestRemovingNonNull', + fix(fixer) { + return fixer.removeRange([node.range[1] - 1, node.range[1]]); + }, + }, + ], + }); + }, + }; + }, +}); +//# sourceMappingURL=no-non-null-asserted-optional-chain.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map new file mode 100644 index 00000000..526f40ee --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-non-null-asserted-optional-chain.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-optional-chain.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,sBAAsB,EACpB,6GAA6G;YAC/G,sBAAsB,EAAE,2CAA2C;SACpE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,2EAA2E;YAC3E,UAAU;YACV,WAAW;YACX,uCAAuC,CACrC,IAA8B;gBAE9B,qCAAqC;gBACrC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAsC,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC;oCACvB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;oCACnB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;iCAChB,CAAC,CAAC;4BACL,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;YAED,iFAAiF;YACjF,QAAQ;YACR,SAAS;YACT,uCAAuC,CACrC,IAAkC;gBAElC,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC/D,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js new file mode 100644 index 00000000..7aa4e4dd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js @@ -0,0 +1,93 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-non-null-assertion', + meta: { + type: 'problem', + docs: { + description: 'Disallow non-null assertions using the `!` postfix operator', + recommended: 'strict', + }, + hasSuggestions: true, + messages: { + noNonNull: 'Forbidden non-null assertion.', + suggestOptionalChain: 'Consider using the optional chain operator `?.` instead. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + TSNonNullExpression(node) { + const suggest = []; + // it always exists in non-null assertion + const nonNullOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.expression, util_1.isNonNullAssertionPunctuator), util_1.NullThrowsReasons.MissingToken('!', 'expression')); + function replaceTokenWithOptional() { + return fixer => fixer.replaceText(nonNullOperator, '?.'); + } + function removeToken() { + return fixer => fixer.remove(nonNullOperator); + } + if (node.parent.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.parent.object === node) { + if (!node.parent.optional) { + if (node.parent.computed) { + // it is x![y]?.z + suggest.push({ + messageId: 'suggestOptionalChain', + fix: replaceTokenWithOptional(), + }); + } + else { + // it is x!.y?.z + suggest.push({ + messageId: 'suggestOptionalChain', + fix(fixer) { + // x!.y?.z + // ^ punctuator + const punctuator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(nonNullOperator), util_1.NullThrowsReasons.MissingToken('.', '!')); + return [ + fixer.remove(nonNullOperator), + fixer.insertTextBefore(punctuator, '?'), + ]; + }, + }); + } + } + else { + // it is x!?.[y].z or x!?.y.z + suggest.push({ + messageId: 'suggestOptionalChain', + fix: removeToken(), + }); + } + } + else if (node.parent.type === utils_1.AST_NODE_TYPES.CallExpression && + node.parent.callee === node) { + if (!node.parent.optional) { + // it is x.y?.z!() + suggest.push({ + messageId: 'suggestOptionalChain', + fix: replaceTokenWithOptional(), + }); + } + else { + // it is x.y.z!?.() + suggest.push({ + messageId: 'suggestOptionalChain', + fix: removeToken(), + }); + } + } + context.report({ + node, + messageId: 'noNonNull', + suggest, + }); + }, + }; + }, +}); +//# sourceMappingURL=no-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map new file mode 100644 index 00000000..0c9ef722 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-non-null-assertion.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAKiB;AAIjB,kBAA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AO;iBACR,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js new file mode 100644 index 00000000..9ef40249 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js @@ -0,0 +1,201 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-redeclare', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow variable redeclaration', + extendsBaseRule: true, + }, + messages: { + redeclared: "'{{id}}' is already defined.", + redeclaredAsBuiltin: "'{{id}}' is already defined as a built-in global variable.", + redeclaredBySyntax: "'{{id}}' is already defined by a variable declaration.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + builtinGlobals: { + type: 'boolean', + description: 'Whether to report shadowing of built-in global variables.', + }, + ignoreDeclarationMerge: { + type: 'boolean', + description: 'Whether to ignore declaration merges between certain TypeScript declaration types.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + builtinGlobals: true, + ignoreDeclarationMerge: true, + }, + ], + create(context, [options]) { + const CLASS_DECLARATION_MERGE_NODES = new Set([ + utils_1.AST_NODE_TYPES.ClassDeclaration, + utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + ]); + const FUNCTION_DECLARATION_MERGE_NODES = new Set([ + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + ]); + const ENUM_DECLARATION_MERGE_NODES = new Set([ + utils_1.AST_NODE_TYPES.TSEnumDeclaration, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + ]); + function* iterateDeclarations(variable) { + if (options.builtinGlobals && + 'eslintImplicitGlobalSetting' in variable && + (variable.eslintImplicitGlobalSetting === 'readonly' || + variable.eslintImplicitGlobalSetting === 'writable')) { + yield { type: 'builtin' }; + } + if ('eslintExplicitGlobalComments' in variable && + variable.eslintExplicitGlobalComments) { + for (const comment of variable.eslintExplicitGlobalComments) { + yield { + loc: (0, util_1.getNameLocationInGlobalDirectiveComment)(context.sourceCode, comment, variable.name), + node: comment, + type: 'comment', + }; + } + } + const identifiers = variable.identifiers + .map(id => ({ + identifier: id, + parent: id.parent, + })) + // ignore function declarations because TS will treat them as an overload + .filter(({ parent }) => parent.type !== utils_1.AST_NODE_TYPES.TSDeclareFunction); + if (options.ignoreDeclarationMerge && identifiers.length > 1) { + if ( + // interfaces merging + identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration)) { + return; + } + if ( + // namespace/module merging + identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration)) { + return; + } + if ( + // class + interface/namespace merging + identifiers.every(({ parent }) => CLASS_DECLARATION_MERGE_NODES.has(parent.type))) { + const classDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration); + if (classDecls.length === 1) { + // safe declaration merging + return; + } + // there's more than one class declaration, which needs to be reported + for (const { identifier } of classDecls) { + yield { loc: identifier.loc, node: identifier, type: 'syntax' }; + } + return; + } + if ( + // class + interface/namespace merging + identifiers.every(({ parent }) => FUNCTION_DECLARATION_MERGE_NODES.has(parent.type))) { + const functionDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.FunctionDeclaration); + if (functionDecls.length === 1) { + // safe declaration merging + return; + } + // there's more than one function declaration, which needs to be reported + for (const { identifier } of functionDecls) { + yield { loc: identifier.loc, node: identifier, type: 'syntax' }; + } + return; + } + if ( + // enum + namespace merging + identifiers.every(({ parent }) => ENUM_DECLARATION_MERGE_NODES.has(parent.type))) { + const enumDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration); + if (enumDecls.length === 1) { + // safe declaration merging + return; + } + // there's more than one enum declaration, which needs to be reported + for (const { identifier } of enumDecls) { + yield { loc: identifier.loc, node: identifier, type: 'syntax' }; + } + return; + } + } + for (const { identifier } of identifiers) { + yield { loc: identifier.loc, node: identifier, type: 'syntax' }; + } + } + function findVariablesInScope(scope) { + for (const variable of scope.variables) { + const [declaration, ...extraDeclarations] = iterateDeclarations(variable); + if (extraDeclarations.length === 0) { + continue; + } + /* + * If the type of a declaration is different from the type of + * the first declaration, it shows the location of the first + * declaration. + */ + const detailMessageId = declaration.type === 'builtin' + ? 'redeclaredAsBuiltin' + : 'redeclaredBySyntax'; + const data = { id: variable.name }; + // Report extra declarations. + for (const { loc, node, type } of extraDeclarations) { + const messageId = type === declaration.type ? 'redeclared' : detailMessageId; + if (node) { + context.report({ loc, node, messageId, data }); + } + else if (loc) { + context.report({ loc, messageId, data }); + } + } + } + } + /** + * Find variables in the current scope. + */ + function checkForBlock(node) { + const scope = context.sourceCode.getScope(node); + /* + * In ES5, some node type such as `BlockStatement` doesn't have that scope. + * `scope.block` is a different node in such a case. + */ + if (scope.block === node) { + findVariablesInScope(scope); + } + } + return { + ArrowFunctionExpression: checkForBlock, + BlockStatement: checkForBlock, + ForInStatement: checkForBlock, + ForOfStatement: checkForBlock, + ForStatement: checkForBlock, + FunctionDeclaration: checkForBlock, + FunctionExpression: checkForBlock, + Program(node) { + const scope = context.sourceCode.getScope(node); + findVariablesInScope(scope); + // Node.js or ES modules has a special scope. + if (scope.type === scope_manager_1.ScopeType.global && + scope.childScopes[0] && + // The special scope's block is the Program node. + scope.block === scope.childScopes[0].block) { + findVariablesInScope(scope.childScopes[0]); + } + }, + SwitchStatement: checkForBlock, + }; + }, +}); +//# sourceMappingURL=no-redeclare.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map new file mode 100644 index 00000000..b38344f8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-redeclare.js","sourceRoot":"","sources":["../../src/rules/no-redeclare.ts"],"names":[],"mappings":";;AAEA,oEAA6D;AAC7D,oDAA0D;AAE1D,kCAA8E;AAU9E,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,8BAA8B;YAC1C,mBAAmB,EACjB,4DAA4D;YAC9D,kBAAkB,EAChB,wDAAwD;SAC3D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,2DAA2D;qBAC9D;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,oFAAoF;qBACvF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,cAAc,EAAE,IAAI;YACpB,sBAAsB,EAAE,IAAI;SAC7B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAiB;YAC5D,sBAAc,CAAC,gBAAgB;YAC/B,sBAAc,CAAC,sBAAsB;YACrC,sBAAc,CAAC,mBAAmB;SACnC,CAAC,CAAC;QACH,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAiB;YAC/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E,aAAa;YAEtC,cAAc,EAAE,aAAa;YAC7B,cAAc,EAAE,aAAa;YAC7B,cAAc,EAAE,aAAa;YAE7B,YAAY,EAAE,aAAa;YAC3B,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,OAAO,CAAC,IAAI;gBACV,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAEhD,oBAAoB,CAAC,KAAK,CAAC,CAAC;gBAE5B,6CAA6C;gBAC7C,IACE,KAAK,CAAC,IAAI,KAAK,yBAAS,CAAC,MAAM;oBAC/B,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;oBACpB,iDAAiD;oBACjD,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,EAC1C,CAAC;oBACD,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC;YACD,eAAe,EAAE,aAAa;SAC/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js new file mode 100644 index 00000000..cbfd2353 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js @@ -0,0 +1,422 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const literalToPrimitiveTypeFlags = { + [ts.TypeFlags.BigIntLiteral]: ts.TypeFlags.BigInt, + [ts.TypeFlags.BooleanLiteral]: ts.TypeFlags.Boolean, + [ts.TypeFlags.NumberLiteral]: ts.TypeFlags.Number, + [ts.TypeFlags.StringLiteral]: ts.TypeFlags.String, + [ts.TypeFlags.TemplateLiteral]: ts.TypeFlags.String, +}; +const literalTypeFlags = [ + ts.TypeFlags.BigIntLiteral, + ts.TypeFlags.BooleanLiteral, + ts.TypeFlags.NumberLiteral, + ts.TypeFlags.StringLiteral, + ts.TypeFlags.TemplateLiteral, +]; +const primitiveTypeFlags = [ + ts.TypeFlags.BigInt, + ts.TypeFlags.Boolean, + ts.TypeFlags.Number, + ts.TypeFlags.String, +]; +const primitiveTypeFlagNames = { + [ts.TypeFlags.BigInt]: 'bigint', + [ts.TypeFlags.Boolean]: 'boolean', + [ts.TypeFlags.Number]: 'number', + [ts.TypeFlags.String]: 'string', +}; +const primitiveTypeFlagTypes = { + bigint: ts.TypeFlags.BigIntLiteral, + boolean: ts.TypeFlags.BooleanLiteral, + number: ts.TypeFlags.NumberLiteral, + string: ts.TypeFlags.StringLiteral, +}; +const keywordNodeTypesToTsTypes = new Map([ + [utils_1.TSESTree.AST_NODE_TYPES.TSAnyKeyword, ts.TypeFlags.Any], + [utils_1.TSESTree.AST_NODE_TYPES.TSBigIntKeyword, ts.TypeFlags.BigInt], + [utils_1.TSESTree.AST_NODE_TYPES.TSBooleanKeyword, ts.TypeFlags.Boolean], + [utils_1.TSESTree.AST_NODE_TYPES.TSNeverKeyword, ts.TypeFlags.Never], + [utils_1.TSESTree.AST_NODE_TYPES.TSNumberKeyword, ts.TypeFlags.Number], + [utils_1.TSESTree.AST_NODE_TYPES.TSStringKeyword, ts.TypeFlags.String], + [utils_1.TSESTree.AST_NODE_TYPES.TSUnknownKeyword, ts.TypeFlags.Unknown], +]); +function addToMapGroup(map, key, value) { + const existing = map.get(key); + if (existing) { + existing.push(value); + } + else { + map.set(key, [value]); + } +} +function describeLiteralType(type) { + if (type.isStringLiteral()) { + return JSON.stringify(type.value); + } + if ((0, util_1.isTypeBigIntLiteralType)(type)) { + return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; + } + if (type.isLiteral()) { + // eslint-disable-next-line @typescript-eslint/no-base-to-string + return type.value.toString(); + } + if (tsutils.isIntrinsicErrorType(type) && type.aliasSymbol) { + return type.aliasSymbol.escapedName.toString(); + } + if ((0, util_1.isTypeAnyType)(type)) { + return 'any'; + } + if ((0, util_1.isTypeNeverType)(type)) { + return 'never'; + } + if ((0, util_1.isTypeUnknownType)(type)) { + return 'unknown'; + } + if ((0, util_1.isTypeTemplateLiteralType)(type)) { + return 'template literal type'; + } + if ((0, util_1.isTypeBigIntLiteralType)(type)) { + return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; + } + if (tsutils.isTrueLiteralType(type)) { + return 'true'; + } + if (tsutils.isFalseLiteralType(type)) { + return 'false'; + } + return 'literal type'; +} +function describeLiteralTypeNode(typeNode) { + switch (typeNode.type) { + case utils_1.AST_NODE_TYPES.TSAnyKeyword: + return 'any'; + case utils_1.AST_NODE_TYPES.TSBooleanKeyword: + return 'boolean'; + case utils_1.AST_NODE_TYPES.TSNeverKeyword: + return 'never'; + case utils_1.AST_NODE_TYPES.TSNumberKeyword: + return 'number'; + case utils_1.AST_NODE_TYPES.TSStringKeyword: + return 'string'; + case utils_1.AST_NODE_TYPES.TSUnknownKeyword: + return 'unknown'; + case utils_1.AST_NODE_TYPES.TSLiteralType: + switch (typeNode.literal.type) { + case utils_1.TSESTree.AST_NODE_TYPES.Literal: + switch (typeof typeNode.literal.value) { + case 'bigint': + return `${typeNode.literal.value < 0 ? '-' : ''}${typeNode.literal.value}n`; + case 'string': + return JSON.stringify(typeNode.literal.value); + default: + return `${typeNode.literal.value}`; + } + case utils_1.TSESTree.AST_NODE_TYPES.TemplateLiteral: + return 'template literal type'; + } + } + return 'literal type'; +} +function isNodeInsideReturnType(node) { + return !!(node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation && + (0, util_1.isFunctionOrFunctionType)(node.parent.parent)); +} +/** + * @remarks TypeScript stores boolean types as the union false | true, always. + */ +function unionTypePartsUnlessBoolean(type) { + return type.isUnion() && + type.types.length === 2 && + tsutils.isFalseLiteralType(type.types[0]) && + tsutils.isTrueLiteralType(type.types[1]) + ? [type] + : tsutils.unionTypeParts(type); +} +exports.default = (0, util_1.createRule)({ + name: 'no-redundant-type-constituents', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow members of unions and intersections that do nothing or override type information', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + errorTypeOverrides: `'{{typeName}}' is an 'error' type that acts as 'any' and overrides all other types in this {{container}} type.`, + literalOverridden: `{{literal}} is overridden by {{primitive}} in this union type.`, + overridden: `'{{typeName}}' is overridden by other types in this {{container}} type.`, + overrides: `'{{typeName}}' overrides all other types in this {{container}} type.`, + primitiveOverridden: `{{primitive}} is overridden by the {{literal}} in this intersection type.`, + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const typesCache = new Map(); + function getTypeNodeTypePartFlags(typeNode) { + const keywordTypeFlags = keywordNodeTypesToTsTypes.get(typeNode.type); + if (keywordTypeFlags) { + return [ + { + typeFlags: keywordTypeFlags, + typeName: describeLiteralTypeNode(typeNode), + }, + ]; + } + if (typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && + typeNode.literal.type === utils_1.AST_NODE_TYPES.Literal) { + return [ + { + typeFlags: primitiveTypeFlagTypes[typeof typeNode.literal + .value], + typeName: describeLiteralTypeNode(typeNode), + }, + ]; + } + if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { + return typeNode.types.flatMap(getTypeNodeTypePartFlags); + } + const nodeType = services.getTypeAtLocation(typeNode); + const typeParts = unionTypePartsUnlessBoolean(nodeType); + return typeParts.map(typePart => ({ + typeFlags: typePart.flags, + typeName: describeLiteralType(typePart), + })); + } + function getTypeNodeTypePartFlagsCached(typeNode) { + const existing = typesCache.get(typeNode); + if (existing) { + return existing; + } + const created = getTypeNodeTypePartFlags(typeNode); + typesCache.set(typeNode, created); + return created; + } + return { + 'TSIntersectionType:exit'(node) { + const seenLiteralTypes = new Map(); + const seenPrimitiveTypes = new Map(); + const seenUnionTypes = new Map(); + function checkIntersectionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { + for (const [messageId, checkFlag] of [ + ['overrides', ts.TypeFlags.Any], + ['overrides', ts.TypeFlags.Never], + ['overridden', ts.TypeFlags.Unknown], + ]) { + if (typeFlags === checkFlag) { + context.report({ + node: typeNode, + messageId: typeFlags === ts.TypeFlags.Any && typeName !== 'any' + ? 'errorTypeOverrides' + : messageId, + data: { + container: 'intersection', + typeName, + }, + }); + return true; + } + } + return false; + } + for (const typeNode of node.types) { + const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); + for (const typePart of typePartFlags) { + if (checkIntersectionBottomAndTopTypes(typePart, typeNode)) { + continue; + } + for (const literalTypeFlag of literalTypeFlags) { + if (typePart.typeFlags === literalTypeFlag) { + addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], typePart.typeName); + break; + } + } + for (const primitiveTypeFlag of primitiveTypeFlags) { + if (typePart.typeFlags === primitiveTypeFlag) { + addToMapGroup(seenPrimitiveTypes, primitiveTypeFlag, typeNode); + } + } + } + // if any typeNode is TSTypeReference and typePartFlags have more than 1 element, than the referenced type is definitely a union. + if (typePartFlags.length >= 2) { + seenUnionTypes.set(typeNode, typePartFlags); + } + } + /** + * @example + * ```ts + * type F = "a"|2|"b"; + * type I = F & string; + * ``` + * This function checks if all the union members of `F` are assignable to the other member of `I`. If every member is assignable, then its reported else not. + */ + const checkIfUnionsAreAssignable = () => { + for (const [typeRef, typeValues] of seenUnionTypes) { + let primitive = undefined; + for (const { typeFlags } of typeValues) { + if (seenPrimitiveTypes.has(literalToPrimitiveTypeFlags[typeFlags])) { + primitive = + literalToPrimitiveTypeFlags[typeFlags]; + } + else { + primitive = undefined; + break; + } + } + if (Number.isInteger(primitive)) { + context.report({ + node: typeRef, + messageId: 'primitiveOverridden', + data: { + literal: typeValues.map(name => name.typeName).join(' | '), + primitive: primitiveTypeFlagNames[primitive], + }, + }); + } + } + }; + if (seenUnionTypes.size > 0) { + checkIfUnionsAreAssignable(); + return; + } + // For each primitive type of all the seen primitive types, + // if there was a literal type seen that overrides it, + // report each of the primitive type's type nodes + for (const [primitiveTypeFlag, typeNodes] of seenPrimitiveTypes) { + const matchedLiteralTypes = seenLiteralTypes.get(primitiveTypeFlag); + if (matchedLiteralTypes) { + for (const typeNode of typeNodes) { + context.report({ + node: typeNode, + messageId: 'primitiveOverridden', + data: { + literal: matchedLiteralTypes.join(' | '), + primitive: primitiveTypeFlagNames[primitiveTypeFlag], + }, + }); + } + } + } + }, + 'TSUnionType:exit'(node) { + const seenLiteralTypes = new Map(); + const seenPrimitiveTypes = new Set(); + function checkUnionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { + for (const checkFlag of [ + ts.TypeFlags.Any, + ts.TypeFlags.Unknown, + ]) { + if (typeFlags === checkFlag) { + context.report({ + node: typeNode, + messageId: typeFlags === ts.TypeFlags.Any && typeName !== 'any' + ? 'errorTypeOverrides' + : 'overrides', + data: { + container: 'union', + typeName, + }, + }); + return true; + } + } + if (typeFlags === ts.TypeFlags.Never && + !isNodeInsideReturnType(node)) { + context.report({ + node: typeNode, + messageId: 'overridden', + data: { + container: 'union', + typeName: 'never', + }, + }); + return true; + } + return false; + } + for (const typeNode of node.types) { + const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); + for (const typePart of typePartFlags) { + if (checkUnionBottomAndTopTypes(typePart, typeNode)) { + continue; + } + for (const literalTypeFlag of literalTypeFlags) { + if (typePart.typeFlags === literalTypeFlag) { + addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], { + literalValue: typePart.typeName, + typeNode, + }); + break; + } + } + for (const primitiveTypeFlag of primitiveTypeFlags) { + if ((typePart.typeFlags & primitiveTypeFlag) !== 0) { + seenPrimitiveTypes.add(primitiveTypeFlag); + } + } + } + } + const overriddenTypeNodes = new Map(); + // For each primitive type of all the seen literal types, + // if there was a primitive type seen that overrides it, + // upsert the literal text and primitive type under the backing type node + for (const [primitiveTypeFlag, typeNodesWithText] of seenLiteralTypes) { + if (seenPrimitiveTypes.has(primitiveTypeFlag)) { + for (const { literalValue, typeNode } of typeNodesWithText) { + addToMapGroup(overriddenTypeNodes, typeNode, { + literalValue, + primitiveTypeFlag, + }); + } + } + } + // For each type node that had at least one overridden literal, + // group those literals by their primitive type, + // then report each primitive type with all its literals + for (const [typeNode, typeFlagsWithText] of overriddenTypeNodes) { + const grouped = (0, util_1.arrayGroupByToMap)(typeFlagsWithText, pair => pair.primitiveTypeFlag); + for (const [primitiveTypeFlag, pairs] of grouped) { + context.report({ + node: typeNode, + messageId: 'literalOverridden', + data: { + literal: pairs.map(pair => pair.literalValue).join(' | '), + primitive: primitiveTypeFlagNames[primitiveTypeFlag], + }, + }); + } + } + }, + }; + }, +}); +//# sourceMappingURL=no-redundant-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map new file mode 100644 index 00000000..6821bb5d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-redundant-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-redundant-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAUiB;AAEjB,MAAM,2BAA2B,GAAG;IAClC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO;IACnD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;CAC3C,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,cAAc;IAC3B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,eAAe;CACpB,CAAC;AAEX,MAAM,kBAAkB,GAAG;IACzB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,OAAO;IACpB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,MAAM;CACX,CAAC;AAEX,MAAM,sBAAsB,GAAG;IAC7B,CAA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AAC,QAAQ,EAAE,iBAAiB,CAAC,IAAI,mBAAmB,EAAE,CAAC;oBAChE,MAAM,OAAO,GAAG,IAAA,wBAAiB,EAC/B,iBAAiB,EACjB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/B,CAAC;oBAEF,KAAK,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE,CAAC;wBACjD,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,QAAQ;4BACd,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE;gCACJ,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gCACzD,SAAS,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;6BACrD;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js new file mode 100644 index 00000000..aafbde04 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js @@ -0,0 +1,106 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util = __importStar(require("../util")); +exports.default = util.createRule({ + name: 'no-require-imports', + meta: { + type: 'problem', + docs: { + description: 'Disallow invocation of `require()`', + recommended: 'recommended', + }, + messages: { + noRequireImports: 'A `require()` style import is forbidden.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allow: { + type: 'array', + description: 'Patterns of import paths to allow requiring from.', + items: { type: 'string' }, + }, + allowAsImport: { + type: 'boolean', + description: 'Allows `require` statements in import declarations.', + }, + }, + }, + ], + }, + defaultOptions: [{ allow: [], allowAsImport: false }], + create(context, options) { + const allowAsImport = options[0].allowAsImport; + const allowPatterns = options[0].allow?.map(pattern => new RegExp(pattern, 'u')); + function isImportPathAllowed(importPath) { + return allowPatterns?.some(pattern => importPath.match(pattern)); + } + function isStringOrTemplateLiteral(node) { + return ((node.type === utils_1.AST_NODE_TYPES.Literal && + typeof node.value === 'string') || + node.type === utils_1.AST_NODE_TYPES.TemplateLiteral); + } + return { + 'CallExpression[callee.name="require"]'(node) { + if (node.arguments[0] && isStringOrTemplateLiteral(node.arguments[0])) { + const argValue = util.getStaticStringValue(node.arguments[0]); + if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { + return; + } + } + const variable = utils_1.ASTUtils.findVariable(context.sourceCode.getScope(node), 'require'); + // ignore non-global require usage as it's something user-land custom instead + // of the commonjs standard + if (!variable?.identifiers.length) { + context.report({ + node, + messageId: 'noRequireImports', + }); + } + }, + TSExternalModuleReference(node) { + if (isStringOrTemplateLiteral(node.expression)) { + const argValue = util.getStaticStringValue(node.expression); + if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { + return; + } + } + if (allowAsImport && + node.parent.type === utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration) { + return; + } + context.report({ + node, + messageId: 'noRequireImports', + }); + }, + }; + }, +}); +//# sourceMappingURL=no-require-imports.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map new file mode 100644 index 00000000..2c0c677b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAoE;AAEpE,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,0CAA0C;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC1B;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,qDAAqD;qBACnE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IACrD,MAAM,CAAC,OAAO,EAAE,OAAO;QACrB,MAAM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ACb,IAAI;wBACJ,SAAS,EAAE,kBAAkB;qBAC9B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,yBAAyB,CAAC,IAAI;gBAC5B,IAAI,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;oBAC5D,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAClE,OAAO;oBACT,CAAC;gBACH,CAAC;gBACD,IACE,aAAa;oBACb,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,yBAAyB,EAC7D,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js new file mode 100644 index 00000000..ed76b457 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js @@ -0,0 +1,237 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ignore_1 = __importDefault(require("ignore")); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-restricted-imports'); +// In some versions of eslint, the base rule has a completely incompatible schema +// This helper function is to safely try to get parts of the schema. If it's not +// possible, we'll fallback to less strict checks. +const tryAccess = (getter, fallback) => { + try { + return getter(); + } + catch { + return fallback; + } +}; +const baseSchema = baseRule.meta.schema; +const allowTypeImportsOptionSchema = { + allowTypeImports: { + type: 'boolean', + description: 'Whether to allow type-only imports for a path.', + }, +}; +const arrayOfStringsOrObjects = { + type: 'array', + items: { + anyOf: [ + { type: 'string' }, + { + type: 'object', + additionalProperties: false, + properties: { + ...tryAccess(() => baseSchema.anyOf[1].items[0].properties.paths.items.anyOf[1] + .properties, undefined), + ...allowTypeImportsOptionSchema, + }, + required: tryAccess(() => baseSchema.anyOf[1].items[0].properties.paths.items.anyOf[1] + .required, undefined), + }, + ], + }, + uniqueItems: true, +}; +const arrayOfStringsOrObjectPatterns = { + anyOf: [ + { + type: 'array', + items: { + type: 'string', + }, + uniqueItems: true, + }, + { + type: 'array', + items: { + type: 'object', + additionalProperties: false, + properties: { + ...tryAccess(() => baseSchema.anyOf[1].items[0].properties.patterns.anyOf[1].items + .properties, undefined), + ...allowTypeImportsOptionSchema, + }, + required: tryAccess(() => baseSchema.anyOf[1].items[0].properties.patterns.anyOf[1].items + .required, []), + }, + uniqueItems: true, + }, + ], +}; +const schema = { + anyOf: [ + arrayOfStringsOrObjects, + { + type: 'array', + additionalItems: false, + items: [ + { + type: 'object', + additionalProperties: false, + properties: { + paths: arrayOfStringsOrObjects, + patterns: arrayOfStringsOrObjectPatterns, + }, + }, + ], + }, + ], +}; +function isObjectOfPaths(obj) { + return !!obj && Object.hasOwn(obj, 'paths'); +} +function isObjectOfPatterns(obj) { + return !!obj && Object.hasOwn(obj, 'patterns'); +} +function isOptionsArrayOfStringOrObject(options) { + if (isObjectOfPaths(options[0])) { + return false; + } + if (isObjectOfPatterns(options[0])) { + return false; + } + return true; +} +function getRestrictedPaths(options) { + if (isOptionsArrayOfStringOrObject(options)) { + return options; + } + if (isObjectOfPaths(options[0])) { + return options[0].paths; + } + return []; +} +function getRestrictedPatterns(options) { + if (isObjectOfPatterns(options[0])) { + return options[0].patterns; + } + return []; +} +function shouldCreateRule(baseRules, options) { + if (Object.keys(baseRules).length === 0 || options.length === 0) { + return false; + } + if (!isOptionsArrayOfStringOrObject(options)) { + return !!(options[0].paths?.length || options[0].patterns?.length); + } + return true; +} +exports.default = (0, util_1.createRule)({ + name: 'no-restricted-imports', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Disallow specified modules when loaded by `import`', + extendsBaseRule: true, + }, + fixable: baseRule.meta.fixable, + messages: baseRule.meta.messages, + schema, + }, + defaultOptions: [], + create(context) { + const rules = baseRule.create(context); + const { options } = context; + if (!shouldCreateRule(rules, options)) { + return {}; + } + const restrictedPaths = getRestrictedPaths(options); + const allowedTypeImportPathNameSet = new Set(); + for (const restrictedPath of restrictedPaths) { + if (typeof restrictedPath === 'object' && + restrictedPath.allowTypeImports) { + allowedTypeImportPathNameSet.add(restrictedPath.name); + } + } + function isAllowedTypeImportPath(importSource) { + return allowedTypeImportPathNameSet.has(importSource); + } + const restrictedPatterns = getRestrictedPatterns(options); + const allowedImportTypeMatchers = []; + for (const restrictedPattern of restrictedPatterns) { + if (typeof restrictedPattern === 'object' && + restrictedPattern.allowTypeImports) { + // Following how ignore is configured in the base rule + allowedImportTypeMatchers.push((0, ignore_1.default)({ + allowRelativePaths: true, + ignoreCase: !restrictedPattern.caseSensitive, + }).add(restrictedPattern.group)); + } + } + function isAllowedTypeImportPattern(importSource) { + return ( + // As long as there's one matching pattern that allows type import + allowedImportTypeMatchers.some(matcher => matcher.ignores(importSource))); + } + function checkImportNode(node) { + if (node.importKind === 'type' || + (node.specifiers.length > 0 && + node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && + specifier.importKind === 'type'))) { + const importSource = node.source.value.trim(); + if (!isAllowedTypeImportPath(importSource) && + !isAllowedTypeImportPattern(importSource)) { + return rules.ImportDeclaration(node); + } + } + else { + return rules.ImportDeclaration(node); + } + } + return { + ExportAllDeclaration: rules.ExportAllDeclaration, + 'ExportNamedDeclaration[source]'(node) { + if (node.exportKind === 'type' || + (node.specifiers.length > 0 && + node.specifiers.every(specifier => specifier.exportKind === 'type'))) { + const importSource = node.source.value.trim(); + if (!isAllowedTypeImportPath(importSource) && + !isAllowedTypeImportPattern(importSource)) { + return rules.ExportNamedDeclaration(node); + } + } + else { + return rules.ExportNamedDeclaration(node); + } + }, + ImportDeclaration: checkImportNode, + TSImportEqualsDeclaration(node) { + if (node.moduleReference.type === utils_1.AST_NODE_TYPES.TSExternalModuleReference) { + const synthesizedImport = { + ...node, + type: utils_1.AST_NODE_TYPES.ImportDeclaration, + assertions: [], + attributes: [], + source: node.moduleReference.expression, + specifiers: [ + { + ...node.id, + type: utils_1.AST_NODE_TYPES.ImportDefaultSpecifier, + local: node.id, + // @ts-expect-error -- parent types are incompatible but it's fine for the purposes of this extension + parent: node.id.parent, + }, + ], + }; + return checkImportNode(synthesizedImport); + } + }, + }; + }, +}); +//# sourceMappingURL=no-restricted-imports.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map new file mode 100644 index 00000000..c8a9b736 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-restricted-imports.js","sourceRoot":"","sources":["../../src/rules/no-restricted-imports.ts"],"names":[],"mappings":";;;;;AAaA,oDAA0D;AAC1D,oDAA4B;AAO5B,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,iFAAiF;AACjF,gFAAgF;AAChF,kDAAkD;AAClD,MAAM,SAAS,GAAG,CAAI,MAAe,EAAE,QAAW,EAAK,EAAE;IACvD,IAAI,CAAC;QACH,OAAO,M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,CAAC,IAAI,EAAE,CAAC;oBAC9C,IACE,CAAC,uBAAuB,CAAC,YAAY,CAAC;wBACtC,CAAC,0BAA0B,CAAC,YAAY,CAAC,EACzC,CAAC;wBACD,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC5C,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;YACD,iBAAiB,EAAE,eAAe;YAClC,yBAAyB,CACvB,IAAwC;gBAExC,IACE,IAAI,CAAC,eAAe,CAAC,IAAI,KAAK,sBAAc,CAAC,yBAAyB,EACtE,CAAC;oBACD,MAAM,iBAAiB,GAA+B;wBACpD,GAAG,IAAI;wBACP,IAAI,EAAE,sBAAc,CAAC,iBAAiB;wBACtC,UAAU,EAAE,EAAE;wBACd,UAAU,EAAE,EAAE;wBACd,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU;wBACvC,UAAU,EAAE;4BACV;gCACE,GAAG,IAAI,CAAC,EAAE;gCACV,IAAI,EAAE,sBAAc,CAAC,sBAAsB;gCAC3C,KAAK,EAAE,IAAI,CAAC,EAAE;gCACd,qGAAqG;gCACrG,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM;6BACvB;yBACF;qBACF,CAAC;oBACF,OAAO,eAAe,CAAC,iBAAiB,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js new file mode 100644 index 00000000..8882dfda --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js @@ -0,0 +1,166 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +function removeSpaces(str) { + return str.replaceAll(/\s/g, ''); +} +function stringifyNode(node, sourceCode) { + return removeSpaces(sourceCode.getText(node)); +} +function getCustomMessage(bannedType) { + if (!bannedType || bannedType === true) { + return ''; + } + if (typeof bannedType === 'string') { + return ` ${bannedType}`; + } + if (bannedType.message) { + return ` ${bannedType.message}`; + } + return ''; +} +const TYPE_KEYWORDS = { + bigint: utils_1.AST_NODE_TYPES.TSBigIntKeyword, + boolean: utils_1.AST_NODE_TYPES.TSBooleanKeyword, + never: utils_1.AST_NODE_TYPES.TSNeverKeyword, + null: utils_1.AST_NODE_TYPES.TSNullKeyword, + number: utils_1.AST_NODE_TYPES.TSNumberKeyword, + object: utils_1.AST_NODE_TYPES.TSObjectKeyword, + string: utils_1.AST_NODE_TYPES.TSStringKeyword, + symbol: utils_1.AST_NODE_TYPES.TSSymbolKeyword, + undefined: utils_1.AST_NODE_TYPES.TSUndefinedKeyword, + unknown: utils_1.AST_NODE_TYPES.TSUnknownKeyword, + void: utils_1.AST_NODE_TYPES.TSVoidKeyword, +}; +exports.default = (0, util_1.createRule)({ + name: 'no-restricted-types', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow certain types', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + bannedTypeMessage: "Don't use `{{name}}` as a type.{{customMessage}}", + bannedTypeReplacement: 'Replace `{{name}}` with `{{replacement}}`.', + }, + schema: [ + { + type: 'object', + $defs: { + banConfig: { + oneOf: [ + { + type: 'boolean', + description: 'Bans the type with the default message.', + enum: [true], + }, + { + type: 'string', + description: 'Bans the type with a custom message.', + }, + { + type: 'object', + additionalProperties: false, + description: 'Bans a type.', + properties: { + fixWith: { + type: 'string', + description: 'Type to autofix replace with. Note that autofixers can be applied automatically - so you need to be careful with this option.', + }, + message: { + type: 'string', + description: 'Custom error message.', + }, + suggest: { + type: 'array', + description: 'Types to suggest replacing with.', + items: { type: 'string' }, + }, + }, + }, + ], + }, + }, + additionalProperties: false, + properties: { + types: { + type: 'object', + additionalProperties: { + $ref: '#/items/0/$defs/banConfig', + }, + description: 'An object whose keys are the types you want to ban, and the values are error messages.', + }, + }, + }, + ], + }, + defaultOptions: [{}], + create(context, [{ types = {} }]) { + const bannedTypes = new Map(Object.entries(types).map(([type, data]) => [removeSpaces(type), data])); + function checkBannedTypes(typeNode, name = stringifyNode(typeNode, context.sourceCode)) { + const bannedType = bannedTypes.get(name); + if (bannedType === undefined || bannedType === false) { + return; + } + const customMessage = getCustomMessage(bannedType); + const fixWith = bannedType && typeof bannedType === 'object' && bannedType.fixWith; + const suggest = bannedType && typeof bannedType === 'object' + ? bannedType.suggest + : undefined; + context.report({ + node: typeNode, + messageId: 'bannedTypeMessage', + data: { + name, + customMessage, + }, + fix: fixWith + ? (fixer) => fixer.replaceText(typeNode, fixWith) + : null, + suggest: suggest?.map(replacement => ({ + messageId: 'bannedTypeReplacement', + data: { + name, + replacement, + }, + fix: (fixer) => fixer.replaceText(typeNode, replacement), + })), + }); + } + const keywordSelectors = (0, util_1.objectReduceKey)(TYPE_KEYWORDS, (acc, keyword) => { + if (bannedTypes.has(keyword)) { + acc[TYPE_KEYWORDS[keyword]] = (node) => checkBannedTypes(node, keyword); + } + return acc; + }, {}); + return { + ...keywordSelectors, + TSClassImplements(node) { + checkBannedTypes(node); + }, + TSInterfaceHeritage(node) { + checkBannedTypes(node); + }, + TSTupleType(node) { + if (!node.elementTypes.length) { + checkBannedTypes(node); + } + }, + TSTypeLiteral(node) { + if (!node.members.length) { + checkBannedTypes(node); + } + }, + TSTypeReference(node) { + checkBannedTypes(node.typeName); + if (node.typeArguments) { + checkBannedTypes(node); + } + }, + }; + }, +}); +//# sourceMappingURL=no-restricted-types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map new file mode 100644 index 00000000..4620bca2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-restricted-types.js","sourceRoot":"","sources":["../../src/rules/no-restricted-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAsD;AAuBtD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,aAAa,CACpB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAyE;IAEzE,IAAI,CAAC,UAAU,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,UAAU,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,OAAO,EAAE,sBAAc,CAAC,gBAAgB;IACxC,KAAK,EAAE,sBAAc,CAAC,cAAc;IACpC,IAAI,EAAE,sBAAc,CAAC,aAAa;IAClC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,SAAS,EAAE,sBAAc,CAAC,kBAAkB;IAC5C,OAAO,EAAE,sBAA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C;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js new file mode 100644 index 00000000..8153d094 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js @@ -0,0 +1,484 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const isTypeImport_1 = require("../util/isTypeImport"); +const allowedFunctionVariableDefTypes = new Set([ + utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + utils_1.AST_NODE_TYPES.TSFunctionType, + utils_1.AST_NODE_TYPES.TSMethodSignature, +]); +exports.default = (0, util_1.createRule)({ + name: 'no-shadow', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow variable declarations from shadowing variables declared in the outer scope', + extendsBaseRule: true, + }, + messages: { + noShadow: "'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.", + noShadowGlobal: "'{{name}}' is already a global variable.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allow: { + type: 'array', + description: 'Identifier names for which shadowing is allowed.', + items: { + type: 'string', + }, + }, + builtinGlobals: { + type: 'boolean', + description: 'Whether to report shadowing of built-in global variables.', + }, + hoist: { + type: 'string', + description: 'Whether to report shadowing before outer functions or variables are defined.', + enum: ['all', 'functions', 'never'], + }, + ignoreFunctionTypeParameterNameValueShadow: { + type: 'boolean', + description: 'Whether to ignore function parameters named the same as a variable.', + }, + ignoreOnInitialization: { + type: 'boolean', + description: 'Whether to ignore the variable initializers when the shadowed variable is presumably still unitialized.', + }, + ignoreTypeValueShadow: { + type: 'boolean', + description: 'Whether to ignore types named the same as a variable.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allow: [], + builtinGlobals: false, + hoist: 'functions', + ignoreFunctionTypeParameterNameValueShadow: true, + ignoreOnInitialization: false, + ignoreTypeValueShadow: true, + }, + ], + create(context, [options]) { + /** + * Check if a scope is a TypeScript module augmenting the global namespace. + */ + function isGlobalAugmentation(scope) { + return ((scope.type === scope_manager_1.ScopeType.tsModule && scope.block.kind === 'global') || + (!!scope.upper && isGlobalAugmentation(scope.upper))); + } + /** + * Check if variable is a `this` parameter. + */ + function isThisParam(variable) { + return (variable.defs[0].type === scope_manager_1.DefinitionType.Parameter && + variable.name === 'this'); + } + function isTypeValueShadow(variable, shadowed) { + if (options.ignoreTypeValueShadow !== true) { + return false; + } + if (!('isValueVariable' in variable)) { + // this shouldn't happen... + return false; + } + const firstDefinition = shadowed.defs.at(0); + const isShadowedValue = !('isValueVariable' in shadowed) || + !firstDefinition || + (!(0, isTypeImport_1.isTypeImport)(firstDefinition) && shadowed.isValueVariable); + return variable.isValueVariable !== isShadowedValue; + } + function isFunctionTypeParameterNameValueShadow(variable, shadowed) { + if (options.ignoreFunctionTypeParameterNameValueShadow !== true) { + return false; + } + if (!('isValueVariable' in variable)) { + // this shouldn't happen... + return false; + } + const isShadowedValue = 'isValueVariable' in shadowed ? shadowed.isValueVariable : true; + if (!isShadowedValue) { + return false; + } + return variable.defs.every(def => allowedFunctionVariableDefTypes.has(def.node.type)); + } + function isGenericOfStaticMethod(variable) { + if (!('isTypeVariable' in variable)) { + // this shouldn't happen... + return false; + } + if (!variable.isTypeVariable) { + return false; + } + if (variable.identifiers.length === 0) { + return false; + } + const typeParameter = variable.identifiers[0].parent; + if (typeParameter.type !== utils_1.AST_NODE_TYPES.TSTypeParameter) { + return false; + } + const typeParameterDecl = typeParameter.parent; + if (typeParameterDecl.type !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { + return false; + } + const functionExpr = typeParameterDecl.parent; + if (functionExpr.type !== utils_1.AST_NODE_TYPES.FunctionExpression && + functionExpr.type !== utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { + return false; + } + const methodDefinition = functionExpr.parent; + if (methodDefinition.type !== utils_1.AST_NODE_TYPES.MethodDefinition) { + return false; + } + return methodDefinition.static; + } + function isGenericOfClass(variable) { + if (!('isTypeVariable' in variable)) { + // this shouldn't happen... + return false; + } + if (!variable.isTypeVariable) { + return false; + } + if (variable.identifiers.length === 0) { + return false; + } + const typeParameter = variable.identifiers[0].parent; + if (typeParameter.type !== utils_1.AST_NODE_TYPES.TSTypeParameter) { + return false; + } + const typeParameterDecl = typeParameter.parent; + if (typeParameterDecl.type !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { + return false; + } + const classDecl = typeParameterDecl.parent; + return (classDecl.type === utils_1.AST_NODE_TYPES.ClassDeclaration || + classDecl.type === utils_1.AST_NODE_TYPES.ClassExpression); + } + function isGenericOfAStaticMethodShadow(variable, shadowed) { + return isGenericOfStaticMethod(variable) && isGenericOfClass(shadowed); + } + function isImportDeclaration(definition) { + return definition.type === utils_1.AST_NODE_TYPES.ImportDeclaration; + } + function isExternalModuleDeclarationWithName(scope, name) { + return (scope.type === scope_manager_1.ScopeType.tsModule && + scope.block.id.type === utils_1.AST_NODE_TYPES.Literal && + scope.block.id.value === name); + } + function isExternalDeclarationMerging(scope, variable, shadowed) { + const [firstDefinition] = shadowed.defs; + const [secondDefinition] = variable.defs; + return ((0, isTypeImport_1.isTypeImport)(firstDefinition) && + isImportDeclaration(firstDefinition.parent) && + isExternalModuleDeclarationWithName(scope, firstDefinition.parent.source.value) && + secondDefinition.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && + secondDefinition.node.parent.type === + utils_1.AST_NODE_TYPES.ExportNamedDeclaration); + } + /** + * Check if variable name is allowed. + * @param variable The variable to check. + * @returns Whether or not the variable name is allowed. + */ + function isAllowed(variable) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return options.allow.includes(variable.name); + } + /** + * Checks if a variable of the class name in the class scope of ClassDeclaration. + * + * ClassDeclaration creates two variables of its name into its outer scope and its class scope. + * So we should ignore the variable in the class scope. + * @param variable The variable to check. + * @returns Whether or not the variable of the class name in the class scope of ClassDeclaration. + */ + function isDuplicatedClassNameVariable(variable) { + const block = variable.scope.block; + return (block.type === utils_1.AST_NODE_TYPES.ClassDeclaration && + block.id === variable.identifiers[0]); + } + /** + * Checks if a variable of the class name in the class scope of TSEnumDeclaration. + * + * TSEnumDeclaration creates two variables of its name into its outer scope and its class scope. + * So we should ignore the variable in the class scope. + * @param variable The variable to check. + * @returns Whether or not the variable of the class name in the class scope of TSEnumDeclaration. + */ + function isDuplicatedEnumNameVariable(variable) { + const block = variable.scope.block; + return (block.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && + block.id === variable.identifiers[0]); + } + /** + * Checks whether or not a given location is inside of the range of a given node. + * @param node An node to check. + * @param location A location to check. + * @returns `true` if the location is inside of the range of the node. + */ + function isInRange(node, location) { + return node && node.range[0] <= location && location <= node.range[1]; + } + /** + * Searches from the current node through its ancestry to find a matching node. + * @param node a node to get. + * @param match a callback that checks whether or not the node verifies its condition or not. + * @returns the matching node. + */ + function findSelfOrAncestor(node, match) { + let currentNode = node; + while (currentNode && !match(currentNode)) { + currentNode = currentNode.parent; + } + return currentNode; + } + /** + * Finds function's outer scope. + * @param scope Function's own scope. + * @returns Function's outer scope. + */ + function getOuterScope(scope) { + const upper = scope.upper; + if (upper?.type === scope_manager_1.ScopeType.functionExpressionName) { + return upper.upper; + } + return upper; + } + /** + * Checks if a variable and a shadowedVariable have the same init pattern ancestor. + * @param variable a variable to check. + * @param shadowedVariable a shadowedVariable to check. + * @returns Whether or not the variable and the shadowedVariable have the same init pattern ancestor. + */ + function isInitPatternNode(variable, shadowedVariable) { + const outerDef = shadowedVariable.defs.at(0); + if (!outerDef) { + return false; + } + const { variableScope } = variable.scope; + if (!((variableScope.block.type === + utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + variableScope.block.type === utils_1.AST_NODE_TYPES.FunctionExpression) && + getOuterScope(variableScope) === shadowedVariable.scope)) { + return false; + } + const fun = variableScope.block; + const { parent } = fun; + const callExpression = findSelfOrAncestor(parent, node => node.type === utils_1.AST_NODE_TYPES.CallExpression); + if (!callExpression) { + return false; + } + let node = outerDef.name; + const location = callExpression.range[1]; + while (node) { + if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { + if (isInRange(node.init, location)) { + return true; + } + if ((node.parent.parent.type === utils_1.AST_NODE_TYPES.ForInStatement || + node.parent.parent.type === utils_1.AST_NODE_TYPES.ForOfStatement) && + isInRange(node.parent.parent.right, location)) { + return true; + } + break; + } + else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { + if (isInRange(node.right, location)) { + return true; + } + } + else if ([ + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, + utils_1.AST_NODE_TYPES.CatchClause, + utils_1.AST_NODE_TYPES.ClassDeclaration, + utils_1.AST_NODE_TYPES.ClassExpression, + utils_1.AST_NODE_TYPES.ExportNamedDeclaration, + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.FunctionExpression, + utils_1.AST_NODE_TYPES.ImportDeclaration, + ].includes(node.type)) { + break; + } + node = node.parent; + } + return false; + } + /** + * Checks if a variable is inside the initializer of scopeVar. + * + * To avoid reporting at declarations such as `var a = function a() {};`. + * But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`. + * @param variable The variable to check. + * @param scopeVar The scope variable to look for. + * @returns Whether or not the variable is inside initializer of scopeVar. + */ + function isOnInitializer(variable, scopeVar) { + const outerScope = scopeVar.scope; + const outerDef = scopeVar.defs.at(0); + const outer = outerDef?.parent?.range; + const innerScope = variable.scope; + const innerDef = variable.defs.at(0); + const inner = innerDef?.name.range; + return !!(outer && + inner && + outer[0] < inner[0] && + inner[1] < outer[1] && + ((innerDef.type === scope_manager_1.DefinitionType.FunctionName && + innerDef.node.type === utils_1.AST_NODE_TYPES.FunctionExpression) || + innerDef.node.type === utils_1.AST_NODE_TYPES.ClassExpression) && + outerScope === innerScope.upper); + } + /** + * Get a range of a variable's identifier node. + * @param variable The variable to get. + * @returns The range of the variable's identifier node. + */ + function getNameRange(variable) { + const def = variable.defs.at(0); + return def?.name.range; + } + /** + * Checks if a variable is in TDZ of scopeVar. + * @param variable The variable to check. + * @param scopeVar The variable of TDZ. + * @returns Whether or not the variable is in TDZ of scopeVar. + */ + function isInTdz(variable, scopeVar) { + const outerDef = scopeVar.defs.at(0); + const inner = getNameRange(variable); + const outer = getNameRange(scopeVar); + return !!(inner && + outer && + inner[1] < outer[0] && + // Excepts FunctionDeclaration if is {"hoist":"function"}. + (options.hoist !== 'functions' || + !outerDef || + outerDef.node.type !== utils_1.AST_NODE_TYPES.FunctionDeclaration)); + } + /** + * Get declared line and column of a variable. + * @param variable The variable to get. + * @returns The declared line and column of the variable. + */ + function getDeclaredLocation(variable) { + const identifier = variable.identifiers.at(0); + if (identifier) { + return { + column: identifier.loc.start.column + 1, + global: false, + line: identifier.loc.start.line, + }; + } + return { + global: true, + }; + } + /** + * Checks the current context for shadowed variables. + * @param scope Fixme + */ + function checkForShadows(scope) { + // ignore global augmentation + if (isGlobalAugmentation(scope)) { + return; + } + const variables = scope.variables; + for (const variable of variables) { + // ignore "arguments" + if (variable.identifiers.length === 0) { + continue; + } + // this params are pseudo-params that cannot be shadowed + if (isThisParam(variable)) { + continue; + } + // ignore variables of a class name in the class scope of ClassDeclaration + if (isDuplicatedClassNameVariable(variable)) { + continue; + } + // ignore variables of a class name in the class scope of ClassDeclaration + if (isDuplicatedEnumNameVariable(variable)) { + continue; + } + // ignore configured allowed names + if (isAllowed(variable)) { + continue; + } + // Gets shadowed variable. + const shadowed = scope.upper + ? utils_1.ASTUtils.findVariable(scope.upper, variable.name) + : null; + if (!shadowed) { + continue; + } + // ignore type value variable shadowing if configured + if (isTypeValueShadow(variable, shadowed)) { + continue; + } + // ignore function type parameter name shadowing if configured + if (isFunctionTypeParameterNameValueShadow(variable, shadowed)) { + continue; + } + // ignore static class method generic shadowing class generic + // this is impossible for the scope analyser to understand + // so we have to handle this manually in this rule + if (isGenericOfAStaticMethodShadow(variable, shadowed)) { + continue; + } + if (isExternalDeclarationMerging(scope, variable, shadowed)) { + continue; + } + const isESLintGlobal = 'writeable' in shadowed; + if ((shadowed.identifiers.length > 0 || + (options.builtinGlobals && isESLintGlobal)) && + !isOnInitializer(variable, shadowed) && + !(options.ignoreOnInitialization && + isInitPatternNode(variable, shadowed)) && + !(options.hoist !== 'all' && isInTdz(variable, shadowed))) { + const location = getDeclaredLocation(shadowed); + context.report({ + node: variable.identifiers[0], + ...(location.global + ? { + messageId: 'noShadowGlobal', + data: { + name: variable.name, + }, + } + : { + messageId: 'noShadow', + data: { + name: variable.name, + shadowedColumn: location.column, + shadowedLine: location.line, + }, + }), + }); + } + } + } + return { + 'Program:exit'(node) { + const globalScope = context.sourceCode.getScope(node); + const stack = [...globalScope.childScopes]; + while (stack.length) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const scope = stack.pop(); + stack.push(...scope.childScopes); + checkForShadows(scope); + } + }, + }; + }, +}); +//# sourceMappingURL=no-shadow.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map new file mode 100644 index 00000000..57b080b9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-shadow.js","sourceRoot":"","sources":["../../src/rules/no-shadow.ts"],"names":[],"mappings":";;AAEA,oEAA6E;AAC7E,oDAAoE;AAEpE,kCAAqC;AACrC,uDAAoD;AAcpD,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC;IAC9C,sBAAc,CAAC,0BAA0B;IACzC,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,iBAAiB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AC,CAAC;gCACE,SAAS,EAAE,UAAU;gCACrB,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;oCACnB,cAAc,EAAE,QAAQ,CAAC,MAAM;oCAC/B,YAAY,EAAE,QAAQ,CAAC,IAAI;iCAC5B;6BACF,CAAC;qBACP,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACtD,MAAM,KAAK,GAAG,CAAC,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;gBAE3C,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;oBACpB,oEAAoE;oBACpE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;oBAE3B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js new file mode 100644 index 00000000..5ab5dc89 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-this-alias', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow aliasing `this`', + recommended: 'recommended', + }, + messages: { + thisAssignment: "Unexpected aliasing of 'this' to local variable.", + thisDestructure: "Unexpected aliasing of members of 'this' to local variables.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowDestructuring: { + type: 'boolean', + description: 'Whether to ignore destructurings, such as `const { props, state } = this`.', + }, + allowedNames: { + type: 'array', + description: 'Names to ignore, such as ["self"] for `const self = this;`.', + items: { + type: 'string', + }, + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowDestructuring: true, + allowedNames: [], + }, + ], + create(context, [{ allowDestructuring, allowedNames }]) { + return { + "VariableDeclarator[init.type='ThisExpression'], AssignmentExpression[right.type='ThisExpression']"(node) { + const id = node.type === utils_1.AST_NODE_TYPES.VariableDeclarator ? node.id : node.left; + if (allowDestructuring && id.type !== utils_1.AST_NODE_TYPES.Identifier) { + return; + } + const hasAllowedName = id.type === utils_1.AST_NODE_TYPES.Identifier + ? // https://github.com/typescript-eslint/typescript-eslint/issues/5439 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + allowedNames.includes(id.name) + : false; + if (!hasAllowedName) { + context.report({ + node: id, + messageId: id.type === utils_1.AST_NODE_TYPES.Identifier + ? 'thisAssignment' + : 'thisDestructure', + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-this-alias.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map new file mode 100644 index 00000000..d6250211 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-this-alias.js","sourceRoot":"","sources":["../../src/rules/no-this-alias.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAUrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0BAA0B;YACvC,WAAW,EAA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gBAAgB;4BAClB,CAAC,CAAC,iBAAiB;qBACxB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js new file mode 100644 index 00000000..905dcb49 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js @@ -0,0 +1,259 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-type-alias', + meta: { + type: 'suggestion', + deprecated: true, + docs: { + description: 'Disallow type aliases', + // too opinionated to be recommended + }, + messages: { + noCompositionAlias: '{{typeName}} in {{compositionType}} types are not allowed.', + noTypeAlias: 'Type {{alias}} are not allowed.', + }, + schema: [ + { + type: 'object', + $defs: { + expandedOptions: { + type: 'string', + enum: [ + 'always', + 'never', + 'in-unions', + 'in-intersections', + 'in-unions-and-intersections', + ], + }, + simpleOptions: { + type: 'string', + enum: ['always', 'never'], + }, + }, + additionalProperties: false, + properties: { + allowAliases: { + $ref: '#/items/0/$defs/expandedOptions', + description: 'Whether to allow direct one-to-one type aliases.', + }, + allowCallbacks: { + $ref: '#/items/0/$defs/simpleOptions', + description: 'Whether to allow type aliases for callbacks.', + }, + allowConditionalTypes: { + $ref: '#/items/0/$defs/simpleOptions', + description: 'Whether to allow type aliases for conditional types.', + }, + allowConstructors: { + $ref: '#/items/0/$defs/simpleOptions', + description: 'Whether to allow type aliases with constructors.', + }, + allowGenerics: { + $ref: '#/items/0/$defs/simpleOptions', + description: 'Whether to allow type aliases with generic types.', + }, + allowLiterals: { + $ref: '#/items/0/$defs/expandedOptions', + description: 'Whether to allow type aliases with object literal types.', + }, + allowMappedTypes: { + $ref: '#/items/0/$defs/expandedOptions', + description: 'Whether to allow type aliases with mapped types.', + }, + allowTupleTypes: { + $ref: '#/items/0/$defs/expandedOptions', + description: 'Whether to allow type aliases with tuple types.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowAliases: 'never', + allowCallbacks: 'never', + allowConditionalTypes: 'never', + allowConstructors: 'never', + allowGenerics: 'never', + allowLiterals: 'never', + allowMappedTypes: 'never', + allowTupleTypes: 'never', + }, + ], + create(context, [{ allowAliases, allowCallbacks, allowConditionalTypes, allowConstructors, allowGenerics, allowLiterals, allowMappedTypes, allowTupleTypes, },]) { + const unions = ['always', 'in-unions', 'in-unions-and-intersections']; + const intersections = [ + 'always', + 'in-intersections', + 'in-unions-and-intersections', + ]; + const compositions = [ + 'in-unions', + 'in-intersections', + 'in-unions-and-intersections', + ]; + const aliasTypes = new Set([ + utils_1.AST_NODE_TYPES.TSArrayType, + utils_1.AST_NODE_TYPES.TSImportType, + utils_1.AST_NODE_TYPES.TSIndexedAccessType, + utils_1.AST_NODE_TYPES.TSLiteralType, + utils_1.AST_NODE_TYPES.TSTemplateLiteralType, + utils_1.AST_NODE_TYPES.TSTypeQuery, + utils_1.AST_NODE_TYPES.TSTypeReference, + ]); + /** + * Determines if the composition type is supported by the allowed flags. + * @param isTopLevel a flag indicating this is the top level node. + * @param compositionType the composition type (either TSUnionType or TSIntersectionType) + * @param allowed the currently allowed flags. + */ + function isSupportedComposition(isTopLevel, compositionType, allowed) { + return (!compositions.includes(allowed) || + (!isTopLevel && + ((compositionType === utils_1.AST_NODE_TYPES.TSUnionType && + unions.includes(allowed)) || + (compositionType === utils_1.AST_NODE_TYPES.TSIntersectionType && + intersections.includes(allowed))))); + } + /** + * Gets the message to be displayed based on the node type and whether the node is a top level declaration. + * @param node the location + * @param compositionType the type of composition this alias is part of (undefined if not + * part of a composition) + * @param isRoot a flag indicating we are dealing with the top level declaration. + * @param type the kind of type alias being validated. + */ + function reportError(node, compositionType, isRoot, type) { + if (isRoot) { + return context.report({ + node, + messageId: 'noTypeAlias', + data: { + alias: type.toLowerCase(), + }, + }); + } + return context.report({ + node, + messageId: 'noCompositionAlias', + data: { + compositionType: compositionType === utils_1.AST_NODE_TYPES.TSUnionType + ? 'union' + : 'intersection', + typeName: type, + }, + }); + } + const isValidTupleType = (type) => { + if (type.node.type === utils_1.AST_NODE_TYPES.TSTupleType) { + return true; + } + if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && + ['keyof', 'readonly'].includes(type.node.operator) && + type.node.typeAnnotation && + type.node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTupleType) { + return true; + } + return false; + }; + const isValidGeneric = (type) => { + return (type.node.type === utils_1.AST_NODE_TYPES.TSTypeReference && + type.node.typeArguments !== undefined); + }; + const checkAndReport = (optionValue, isTopLevel, type, label) => { + if (optionValue === 'never' || + !isSupportedComposition(isTopLevel, type.compositionType, optionValue)) { + reportError(type.node, type.compositionType, isTopLevel, label); + } + }; + /** + * Validates the node looking for aliases, callbacks and literals. + * @param type the type of composition this alias is part of (null if not + * part of a composition) + * @param isTopLevel a flag indicating this is the top level node. + */ + function validateTypeAliases(type, isTopLevel = false) { + // https://github.com/typescript-eslint/typescript-eslint/issues/5439 + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + if (type.node.type === utils_1.AST_NODE_TYPES.TSFunctionType) { + // callback + if (allowCallbacks === 'never') { + reportError(type.node, type.compositionType, isTopLevel, 'Callbacks'); + } + } + else if (type.node.type === utils_1.AST_NODE_TYPES.TSConditionalType) { + // conditional type + if (allowConditionalTypes === 'never') { + reportError(type.node, type.compositionType, isTopLevel, 'Conditional types'); + } + } + else if (type.node.type === utils_1.AST_NODE_TYPES.TSConstructorType) { + if (allowConstructors === 'never') { + reportError(type.node, type.compositionType, isTopLevel, 'Constructors'); + } + } + else if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeLiteral) { + // literal object type + checkAndReport(allowLiterals, isTopLevel, type, 'Literals'); + } + else if (type.node.type === utils_1.AST_NODE_TYPES.TSMappedType) { + // mapped type + checkAndReport(allowMappedTypes, isTopLevel, type, 'Mapped types'); + } + else if (isValidTupleType(type)) { + // tuple types + checkAndReport(allowTupleTypes, isTopLevel, type, 'Tuple Types'); + } + else if (isValidGeneric(type)) { + if (allowGenerics === 'never') { + reportError(type.node, type.compositionType, isTopLevel, 'Generics'); + } + } + else if (type.node.type.endsWith(utils_1.AST_TOKEN_TYPES.Keyword) || + aliasTypes.has(type.node.type) || + (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && + (type.node.operator === 'keyof' || + (type.node.operator === 'readonly' && + type.node.typeAnnotation && + aliasTypes.has(type.node.typeAnnotation.type))))) { + // alias / keyword + checkAndReport(allowAliases, isTopLevel, type, 'Aliases'); + } + else { + // unhandled type - shouldn't happen + reportError(type.node, type.compositionType, isTopLevel, 'Unhandled'); + } + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + } + /** + * Flatten the given type into an array of its dependencies + */ + function getTypes(node, compositionType = null) { + if (node.type === utils_1.AST_NODE_TYPES.TSUnionType || + node.type === utils_1.AST_NODE_TYPES.TSIntersectionType) { + return node.types.flatMap(type => getTypes(type, node.type)); + } + return [{ node, compositionType }]; + } + return { + TSTypeAliasDeclaration(node) { + const types = getTypes(node.typeAnnotation); + if (types.length === 1) { + // is a top level type annotation + validateTypeAliases(types[0], true); + } + else { + // is a composition type + types.forEach(type => { + validateTypeAliases(type); + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-type-alias.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map new file mode 100644 index 00000000..a9da6ce0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-type-alias.js","sourceRo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ACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js new file mode 100644 index 00000000..28f040ec --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js @@ -0,0 +1,232 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-boolean-literal-compare', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow unnecessary equality comparisons against boolean literals', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + comparingNullableToFalse: 'This expression unnecessarily compares a nullable boolean value to false instead of using the ?? operator to provide a default.', + comparingNullableToTrueDirect: 'This expression unnecessarily compares a nullable boolean value to true instead of using it directly.', + comparingNullableToTrueNegated: 'This expression unnecessarily compares a nullable boolean value to true instead of negating it.', + direct: 'This expression unnecessarily compares a boolean value to a boolean instead of using it directly.', + negated: 'This expression unnecessarily compares a boolean value to a boolean instead of negating it.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowComparingNullableBooleansToFalse: { + type: 'boolean', + description: 'Whether to allow comparisons between nullable boolean variables and `false`.', + }, + allowComparingNullableBooleansToTrue: { + type: 'boolean', + description: 'Whether to allow comparisons between nullable boolean variables and `true`.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowComparingNullableBooleansToFalse: true, + allowComparingNullableBooleansToTrue: true, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + function getBooleanComparison(node) { + const comparison = deconstructComparison(node); + if (!comparison) { + return undefined; + } + const expressionType = services.getTypeAtLocation(comparison.expression); + if (isBooleanType(expressionType)) { + return { + ...comparison, + expressionIsNullableBoolean: false, + }; + } + if (isNullableBoolean(expressionType)) { + return { + ...comparison, + expressionIsNullableBoolean: true, + }; + } + return undefined; + } + function isBooleanType(expressionType) { + return tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral); + } + /** + * checks if the expressionType is a union that + * 1) contains at least one nullish type (null or undefined) + * 2) contains at least once boolean type (true or false or boolean) + * 3) does not contain any types besides nullish and boolean types + */ + function isNullableBoolean(expressionType) { + if (!expressionType.isUnion()) { + return false; + } + const { types } = expressionType; + const nonNullishTypes = types.filter(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Undefined | ts.TypeFlags.Null)); + const hasNonNullishType = nonNullishTypes.length > 0; + if (!hasNonNullishType) { + return false; + } + const hasNullableType = nonNullishTypes.length < types.length; + if (!hasNullableType) { + return false; + } + const allNonNullishTypesAreBoolean = nonNullishTypes.every(isBooleanType); + if (!allNonNullishTypesAreBoolean) { + return false; + } + return true; + } + function deconstructComparison(node) { + const comparisonType = getEqualsKind(node.operator); + if (!comparisonType) { + return undefined; + } + for (const [against, expression] of [ + [node.right, node.left], + [node.left, node.right], + ]) { + if (against.type !== utils_1.AST_NODE_TYPES.Literal || + typeof against.value !== 'boolean') { + continue; + } + const { value: literalBooleanInComparison } = against; + const negated = !comparisonType.isPositive; + return { + expression, + literalBooleanInComparison, + negated, + }; + } + return undefined; + } + function nodeIsUnaryNegation(node) { + return (node.type === utils_1.AST_NODE_TYPES.UnaryExpression && + node.prefix && + node.operator === '!'); + } + return { + BinaryExpression(node) { + const comparison = getBooleanComparison(node); + if (comparison === undefined) { + return; + } + if (comparison.expressionIsNullableBoolean) { + if (comparison.literalBooleanInComparison && + options.allowComparingNullableBooleansToTrue) { + return; + } + if (!comparison.literalBooleanInComparison && + options.allowComparingNullableBooleansToFalse) { + return; + } + } + context.report({ + node, + messageId: comparison.expressionIsNullableBoolean + ? comparison.literalBooleanInComparison + ? comparison.negated + ? 'comparingNullableToTrueNegated' + : 'comparingNullableToTrueDirect' + : 'comparingNullableToFalse' + : comparison.negated + ? 'negated' + : 'direct', + *fix(fixer) { + // 1. isUnaryNegation - parent negation + // 2. literalBooleanInComparison - is compared to literal boolean + // 3. negated - is expression negated + const isUnaryNegation = nodeIsUnaryNegation(node.parent); + const shouldNegate = comparison.negated !== comparison.literalBooleanInComparison; + const mutatedNode = isUnaryNegation ? node.parent : node; + yield fixer.replaceText(mutatedNode, context.sourceCode.getText(comparison.expression)); + // if `isUnaryNegation === literalBooleanInComparison === !negated` is true - negate the expression + if (shouldNegate === isUnaryNegation) { + yield fixer.insertTextBefore(mutatedNode, '!'); + // if the expression `exp` is not a strong precedence node, wrap it in parentheses + if (!(0, util_1.isStrongPrecedenceNode)(comparison.expression)) { + yield fixer.insertTextBefore(mutatedNode, '('); + yield fixer.insertTextAfter(mutatedNode, ')'); + } + } + // if the expression `exp` is nullable, and we're not comparing to `true`, insert `?? true` + if (comparison.expressionIsNullableBoolean && + !comparison.literalBooleanInComparison) { + // provide the default `true` + yield fixer.insertTextBefore(mutatedNode, '('); + yield fixer.insertTextAfter(mutatedNode, ' ?? true)'); + } + }, + }); + }, + }; + }, +}); +function getEqualsKind(operator) { + switch (operator) { + case '!=': + return { + isPositive: false, + isStrict: false, + }; + case '!==': + return { + isPositive: false, + isStrict: true, + }; + case '==': + return { + isPositive: true, + isStrict: false, + }; + case '===': + return { + isPositive: true, + isStrict: true, + }; + default: + return undefined; + } +} +//# sourceMappingURL=no-unnecessary-boolean-literal-compare.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map new file mode 100644 index 00000000..add839e5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAgF;AA0BhF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;YACtE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,iIAAiI;YACnI,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;SAChG;QACD,MAA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ACjB,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js new file mode 100644 index 00000000..62053e36 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js @@ -0,0 +1,634 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const assertionFunctionUtils_1 = require("../util/assertionFunctionUtils"); +// Truthiness utilities +// #region +const valueIsPseudoBigInt = (value) => { + return typeof value === 'object'; +}; +const getValueOfLiteralType = (type) => { + if (valueIsPseudoBigInt(type.value)) { + return pseudoBigIntToBigInt(type.value); + } + return type.value; +}; +const isFalsyBigInt = (type) => { + return (tsutils.isLiteralType(type) && + valueIsPseudoBigInt(type.value) && + !getValueOfLiteralType(type)); +}; +const isTruthyLiteral = (type) => tsutils.isTrueLiteralType(type) || + (type.isLiteral() && !!getValueOfLiteralType(type)); +const isPossiblyFalsy = (type) => tsutils + .unionTypeParts(type) + // Intersections like `string & {}` can also be possibly falsy, + // requiring us to look into the intersection. + .flatMap(type => tsutils.intersectionTypeParts(type)) + // PossiblyFalsy flag includes literal values, so exclude ones that + // are definitely truthy + .filter(t => !isTruthyLiteral(t)) + .some(type => (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.PossiblyFalsy)); +const isPossiblyTruthy = (type) => tsutils + .unionTypeParts(type) + .map(type => tsutils.intersectionTypeParts(type)) + .some(intersectionParts => +// It is possible to define intersections that are always falsy, +// like `"" & { __brand: string }`. +intersectionParts.every(type => !tsutils.isFalsyType(type) && + // below is a workaround for ts-api-utils bug + // see https://github.com/JoshuaKGoldberg/ts-api-utils/issues/544 + !isFalsyBigInt(type))); +// Nullish utilities +const nullishFlag = ts.TypeFlags.Undefined | ts.TypeFlags.Null; +const isNullishType = (type) => (0, util_1.isTypeFlagSet)(type, nullishFlag); +const isPossiblyNullish = (type) => tsutils.unionTypeParts(type).some(isNullishType); +const isAlwaysNullish = (type) => tsutils.unionTypeParts(type).every(isNullishType); +function toStaticValue(type) { + // type.isLiteral() only covers numbers/bigints and strings, hence the rest of the branches. + if (tsutils.isBooleanLiteralType(type)) { + // Using `type.intrinsicName` instead of `type.value` because `type.value` + // is `undefined`, contrary to what the type guard tells us. + // See https://github.com/JoshuaKGoldberg/ts-api-utils/issues/528 + return { value: type.intrinsicName === 'true' }; + } + if (type.flags === ts.TypeFlags.Undefined) { + return { value: undefined }; + } + if (type.flags === ts.TypeFlags.Null) { + return { value: null }; + } + if (type.isLiteral()) { + return { value: getValueOfLiteralType(type) }; + } + return undefined; +} +function pseudoBigIntToBigInt(value) { + return BigInt((value.negative ? '-' : '') + value.base10Value); +} +const BOOL_OPERATORS = new Set([ + '<', + '>', + '<=', + '>=', + '==', + '===', + '!=', + '!==', +]); +function isBoolOperator(operator) { + return BOOL_OPERATORS.has(operator); +} +function booleanComparison(left, operator, right) { + switch (operator) { + case '!=': + // eslint-disable-next-line eqeqeq -- intentionally comparing with loose equality + return left != right; + case '!==': + return left !== right; + case '<': + // @ts-expect-error: we don't care if the comparison seems unintentional. + return left < right; + case '<=': + // @ts-expect-error: we don't care if the comparison seems unintentional. + return left <= right; + case '==': + // eslint-disable-next-line eqeqeq -- intentionally comparing with loose equality + return left == right; + case '===': + return left === right; + case '>': + // @ts-expect-error: we don't care if the comparison seems unintentional. + return left > right; + case '>=': + // @ts-expect-error: we don't care if the comparison seems unintentional. + return left >= right; + } +} +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-condition', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow conditionals where the type is always truthy or always falsy', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + alwaysFalsy: 'Unnecessary conditional, value is always falsy.', + alwaysFalsyFunc: 'This callback should return a conditional, but return is always falsy.', + alwaysNullish: 'Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`.', + alwaysTruthy: 'Unnecessary conditional, value is always truthy.', + alwaysTruthyFunc: 'This callback should return a conditional, but return is always truthy.', + literalBooleanExpression: 'Unnecessary conditional, comparison is always {{trueOrFalse}}. Both sides of the comparison always have a literal type.', + never: 'Unnecessary conditional, value is `never`.', + neverNullish: 'Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined.', + neverOptionalChain: 'Unnecessary optional chain on a non-nullish value.', + noOverlapBooleanExpression: 'Unnecessary conditional, the types have no overlap.', + noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', + typeGuardAlreadyIsType: 'Unnecessary conditional, expression already has the type being checked by the {{typeGuardOrAssertionFunction}}.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowConstantLoopConditions: { + type: 'boolean', + description: 'Whether to ignore constant loop conditions, such as `while (true)`.', + }, + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { + type: 'boolean', + description: 'Whether to not error when running with a tsconfig that has strictNullChecks turned.', + }, + checkTypePredicates: { + type: 'boolean', + description: 'Whether to check the asserted argument of a type predicate function for unnecessary conditions', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowConstantLoopConditions: false, + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, + checkTypePredicates: false, + }, + ], + create(context, [{ allowConstantLoopConditions, allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, checkTypePredicates, },]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); + if (!isStrictNullChecks && + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { + context.report({ + loc: { + start: { column: 0, line: 0 }, + end: { column: 0, line: 0 }, + }, + messageId: 'noStrictNullCheck', + }); + } + function nodeIsArrayType(node) { + const nodeType = (0, util_1.getConstrainedTypeAtLocation)(services, node); + return tsutils + .unionTypeParts(nodeType) + .some(part => checker.isArrayType(part)); + } + function nodeIsTupleType(node) { + const nodeType = (0, util_1.getConstrainedTypeAtLocation)(services, node); + return tsutils + .unionTypeParts(nodeType) + .some(part => checker.isTupleType(part)); + } + function isArrayIndexExpression(node) { + return ( + // Is an index signature + node.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.computed && + // ...into an array type + (nodeIsArrayType(node.object) || + // ... or a tuple type + (nodeIsTupleType(node.object) && + // Exception: literal index into a tuple - will have a sound type + node.property.type !== utils_1.AST_NODE_TYPES.Literal))); + } + function isNullableMemberExpression(node) { + const objectType = services.getTypeAtLocation(node.object); + if (node.computed) { + const propertyType = services.getTypeAtLocation(node.property); + return isNullablePropertyType(objectType, propertyType); + } + const property = node.property; + // Get the actual property name, to account for private properties (this.#prop). + const propertyName = context.sourceCode.getText(property); + const propertyType = objectType + .getProperties() + .find(prop => prop.name === propertyName); + if (propertyType && + tsutils.isSymbolFlagSet(propertyType, ts.SymbolFlags.Optional)) { + return true; + } + return false; + } + /** + * Checks if a conditional node is necessary: + * if the type of the node is always true or always false, it's not necessary. + */ + function checkNode(expression, isUnaryNotArgument = false, node = expression) { + // Check if the node is Unary Negation expression and handle it + if (expression.type === utils_1.AST_NODE_TYPES.UnaryExpression && + expression.operator === '!') { + return checkNode(expression.argument, !isUnaryNotArgument, node); + } + // Since typescript array index signature types don't represent the + // possibility of out-of-bounds access, if we're indexing into an array + // just skip the check, to avoid false positives + if (isArrayIndexExpression(expression)) { + return; + } + // When checking logical expressions, only check the right side + // as the left side has been checked by checkLogicalExpressionForUnnecessaryConditionals + // + // Unless the node is nullish coalescing, as it's common to use patterns like `nullBool ?? true` to to strict + // boolean checks if we inspect the right here, it'll usually be a constant condition on purpose. + // In this case it's better to inspect the type of the expression as a whole. + if (expression.type === utils_1.AST_NODE_TYPES.LogicalExpression && + expression.operator !== '??') { + return checkNode(expression.right); + } + const type = (0, util_1.getConstrainedTypeAtLocation)(services, expression); + // Conditional is always necessary if it involves: + // `any` or `unknown` or a naked type variable + if (tsutils + .unionTypeParts(type) + .some(part => (0, util_1.isTypeAnyType)(part) || + (0, util_1.isTypeUnknownType)(part) || + (0, util_1.isTypeFlagSet)(part, ts.TypeFlags.TypeVariable))) { + return; + } + let messageId = null; + if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { + messageId = 'never'; + } + else if (!isPossiblyTruthy(type)) { + messageId = !isUnaryNotArgument ? 'alwaysFalsy' : 'alwaysTruthy'; + } + else if (!isPossiblyFalsy(type)) { + messageId = !isUnaryNotArgument ? 'alwaysTruthy' : 'alwaysFalsy'; + } + if (messageId) { + context.report({ node, messageId }); + } + } + function checkNodeForNullish(node) { + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + // Conditional is always necessary if it involves `any`, `unknown` or a naked type parameter + if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | + ts.TypeFlags.Unknown | + ts.TypeFlags.TypeParameter | + ts.TypeFlags.TypeVariable)) { + return; + } + let messageId = null; + if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { + messageId = 'never'; + } + else if (!isPossiblyNullish(type) && + !(node.type === utils_1.AST_NODE_TYPES.MemberExpression && + isNullableMemberExpression(node))) { + // Since typescript array index signature types don't represent the + // possibility of out-of-bounds access, if we're indexing into an array + // just skip the check, to avoid false positives + if (!isArrayIndexExpression(node) && + !(node.type === utils_1.AST_NODE_TYPES.ChainExpression && + node.expression.type !== utils_1.AST_NODE_TYPES.TSNonNullExpression && + optionChainContainsOptionArrayIndex(node.expression))) { + messageId = 'neverNullish'; + } + } + else if (isAlwaysNullish(type)) { + messageId = 'alwaysNullish'; + } + if (messageId) { + context.report({ node, messageId }); + } + } + /** + * Checks that a binary expression is necessarily conditional, reports otherwise. + * If both sides of the binary expression are literal values, it's not a necessary condition. + * + * NOTE: It's also unnecessary if the types that don't overlap at all + * but that case is handled by the Typescript compiler itself. + * Known exceptions: + * - https://github.com/microsoft/TypeScript/issues/32627 + * - https://github.com/microsoft/TypeScript/issues/37160 (handled) + */ + function checkIfBoolExpressionIsNecessaryConditional(node, left, right, operator) { + const leftType = (0, util_1.getConstrainedTypeAtLocation)(services, left); + const rightType = (0, util_1.getConstrainedTypeAtLocation)(services, right); + const leftStaticValue = toStaticValue(leftType); + const rightStaticValue = toStaticValue(rightType); + if (leftStaticValue != null && rightStaticValue != null) { + const conditionIsTrue = booleanComparison(leftStaticValue.value, operator, rightStaticValue.value); + context.report({ + node, + messageId: 'literalBooleanExpression', + data: { + trueOrFalse: conditionIsTrue ? 'true' : 'false', + }, + }); + return; + } + // Workaround for https://github.com/microsoft/TypeScript/issues/37160 + if (isStrictNullChecks) { + const UNDEFINED = ts.TypeFlags.Undefined; + const NULL = ts.TypeFlags.Null; + const VOID = ts.TypeFlags.Void; + const isComparable = (type, flag) => { + // Allow comparison to `any`, `unknown` or a naked type parameter. + flag |= + ts.TypeFlags.Any | + ts.TypeFlags.Unknown | + ts.TypeFlags.TypeParameter | + ts.TypeFlags.TypeVariable; + // Allow loose comparison to nullish values. + if (operator === '==' || operator === '!=') { + flag |= NULL | UNDEFINED | VOID; + } + return (0, util_1.isTypeFlagSet)(type, flag); + }; + if ((leftType.flags === UNDEFINED && + !isComparable(rightType, UNDEFINED | VOID)) || + (rightType.flags === UNDEFINED && + !isComparable(leftType, UNDEFINED | VOID)) || + (leftType.flags === NULL && !isComparable(rightType, NULL)) || + (rightType.flags === NULL && !isComparable(leftType, NULL))) { + context.report({ node, messageId: 'noOverlapBooleanExpression' }); + return; + } + } + } + /** + * Checks that a logical expression contains a boolean, reports otherwise. + */ + function checkLogicalExpressionForUnnecessaryConditionals(node) { + if (node.operator === '??') { + checkNodeForNullish(node.left); + return; + } + // Only checks the left side, since the right side might not be "conditional" at all. + // The right side will be checked if the LogicalExpression is used in a conditional context + checkNode(node.left); + } + /** + * Checks that a testable expression of a loop is necessarily conditional, reports otherwise. + */ + function checkIfLoopIsNecessaryConditional(node) { + if (node.test == null) { + // e.g. `for(;;)` + return; + } + /** + * Allow: + * while (true) {} + * for (;true;) {} + * do {} while (true) + */ + if (allowConstantLoopConditions && + tsutils.isTrueLiteralType((0, util_1.getConstrainedTypeAtLocation)(services, node.test))) { + return; + } + checkNode(node.test); + } + function checkCallExpression(node) { + if (checkTypePredicates) { + const truthinessAssertedArgument = (0, assertionFunctionUtils_1.findTruthinessAssertedArgument)(services, node); + if (truthinessAssertedArgument != null) { + checkNode(truthinessAssertedArgument); + } + const typeGuardAssertedArgument = (0, assertionFunctionUtils_1.findTypeGuardAssertedArgument)(services, node); + if (typeGuardAssertedArgument != null) { + const typeOfArgument = (0, util_1.getConstrainedTypeAtLocation)(services, typeGuardAssertedArgument.argument); + if (typeOfArgument === typeGuardAssertedArgument.type) { + context.report({ + node: typeGuardAssertedArgument.argument, + messageId: 'typeGuardAlreadyIsType', + data: { + typeGuardOrAssertionFunction: typeGuardAssertedArgument.asserts + ? 'assertion function' + : 'type guard', + }, + }); + } + } + } + // If this is something like arr.filter(x => /*condition*/), check `condition` + if ((0, util_1.isArrayMethodCallWithPredicate)(context, services, node) && + node.arguments.length) { + const callback = node.arguments[0]; + // Inline defined functions + if (callback.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + callback.type === utils_1.AST_NODE_TYPES.FunctionExpression) { + // Two special cases, where we can directly check the node that's returned: + // () => something + if (callback.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { + return checkNode(callback.body); + } + // () => { return something; } + const callbackBody = callback.body.body; + if (callbackBody.length === 1 && + callbackBody[0].type === utils_1.AST_NODE_TYPES.ReturnStatement && + callbackBody[0].argument) { + return checkNode(callbackBody[0].argument); + } + // Potential enhancement: could use code-path analysis to check + // any function with a single return statement + // (Value to complexity ratio is dubious however) + } + // Otherwise just do type analysis on the function as a whole. + const returnTypes = tsutils + .getCallSignaturesOfType((0, util_1.getConstrainedTypeAtLocation)(services, callback)) + .map(sig => sig.getReturnType()); + /* istanbul ignore if */ if (returnTypes.length === 0) { + // Not a callable function + return; + } + // Predicate is always necessary if it involves `any` or `unknown` + if (returnTypes.some(t => (0, util_1.isTypeAnyType)(t) || (0, util_1.isTypeUnknownType)(t))) { + return; + } + if (!returnTypes.some(isPossiblyFalsy)) { + return context.report({ + node: callback, + messageId: 'alwaysTruthyFunc', + }); + } + if (!returnTypes.some(isPossiblyTruthy)) { + return context.report({ + node: callback, + messageId: 'alwaysFalsyFunc', + }); + } + } + } + // Recursively searches an optional chain for an array index expression + // Has to search the entire chain, because an array index will "infect" the rest of the types + // Example: + // ``` + // [{x: {y: "z"} }][n] // type is {x: {y: "z"}} + // ?.x // type is {y: "z"} + // ?.y // This access is considered "unnecessary" according to the types + // ``` + function optionChainContainsOptionArrayIndex(node) { + const lhsNode = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; + if (node.optional && isArrayIndexExpression(lhsNode)) { + return true; + } + if (lhsNode.type === utils_1.AST_NODE_TYPES.MemberExpression || + lhsNode.type === utils_1.AST_NODE_TYPES.CallExpression) { + return optionChainContainsOptionArrayIndex(lhsNode); + } + return false; + } + function isNullablePropertyType(objType, propertyType) { + if (propertyType.isUnion()) { + return propertyType.types.some(type => isNullablePropertyType(objType, type)); + } + if (propertyType.isNumberLiteral() || propertyType.isStringLiteral()) { + const propType = (0, util_1.getTypeOfPropertyOfName)(checker, objType, propertyType.value.toString()); + if (propType) { + return (0, util_1.isNullableType)(propType); + } + } + const typeName = (0, util_1.getTypeName)(checker, propertyType); + return checker + .getIndexInfosOfType(objType) + .some(info => (0, util_1.getTypeName)(checker, info.keyType) === typeName); + } + // Checks whether a member expression is nullable or not regardless of it's previous node. + // Example: + // ``` + // // 'bar' is nullable if 'foo' is null. + // // but this function checks regardless of 'foo' type, so returns 'true'. + // declare const foo: { bar : { baz: string } } | null + // foo?.bar; + // ``` + function isMemberExpressionNullableOriginFromObject(node) { + const prevType = (0, util_1.getConstrainedTypeAtLocation)(services, node.object); + const property = node.property; + if (prevType.isUnion() && (0, util_1.isIdentifier)(property)) { + const isOwnNullable = prevType.types.some(type => { + if (node.computed) { + const propertyType = (0, util_1.getConstrainedTypeAtLocation)(services, node.property); + return isNullablePropertyType(type, propertyType); + } + const propType = (0, util_1.getTypeOfPropertyOfName)(checker, type, property.name); + if (propType) { + return (0, util_1.isNullableType)(propType); + } + return !!checker.getIndexInfoOfType(type, ts.IndexKind.String); + }); + return !isOwnNullable && (0, util_1.isNullableType)(prevType); + } + return false; + } + function isCallExpressionNullableOriginFromCallee(node) { + const prevType = (0, util_1.getConstrainedTypeAtLocation)(services, node.callee); + if (prevType.isUnion()) { + const isOwnNullable = prevType.types.some(type => { + const signatures = type.getCallSignatures(); + return signatures.some(sig => (0, util_1.isNullableType)(sig.getReturnType())); + }); + return !isOwnNullable && (0, util_1.isNullableType)(prevType); + } + return false; + } + function isOptionableExpression(node) { + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + const isOwnNullable = node.type === utils_1.AST_NODE_TYPES.MemberExpression + ? !isMemberExpressionNullableOriginFromObject(node) + : node.type === utils_1.AST_NODE_TYPES.CallExpression + ? !isCallExpressionNullableOriginFromCallee(node) + : true; + return ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown) || + (isOwnNullable && (0, util_1.isNullableType)(type))); + } + function checkOptionalChain(node, beforeOperator, fix) { + // We only care if this step in the chain is optional. If just descend + // from an optional chain, then that's fine. + if (!node.optional) { + return; + } + // Since typescript array index signature types don't represent the + // possibility of out-of-bounds access, if we're indexing into an array + // just skip the check, to avoid false positives + if (optionChainContainsOptionArrayIndex(node)) { + return; + } + const nodeToCheck = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; + if (isOptionableExpression(nodeToCheck)) { + return; + } + const questionDotOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(beforeOperator, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.'), util_1.NullThrowsReasons.MissingToken('operator', node.type)); + context.report({ + loc: questionDotOperator.loc, + node, + messageId: 'neverOptionalChain', + fix(fixer) { + return fixer.replaceText(questionDotOperator, fix); + }, + }); + } + function checkOptionalMemberExpression(node) { + checkOptionalChain(node, node.object, node.computed ? '' : '.'); + } + function checkOptionalCallExpression(node) { + checkOptionalChain(node, node.callee, ''); + } + function checkAssignmentExpression(node) { + // Similar to checkLogicalExpressionForUnnecessaryConditionals, since + // a ||= b is equivalent to a || (a = b) + if (['&&=', '||='].includes(node.operator)) { + checkNode(node.left); + } + else if (node.operator === '??=') { + checkNodeForNullish(node.left); + } + } + return { + AssignmentExpression: checkAssignmentExpression, + BinaryExpression(node) { + const { operator } = node; + if (isBoolOperator(operator)) { + checkIfBoolExpressionIsNecessaryConditional(node, node.left, node.right, operator); + } + }, + CallExpression: checkCallExpression, + 'CallExpression[optional = true]': checkOptionalCallExpression, + ConditionalExpression: (node) => checkNode(node.test), + DoWhileStatement: checkIfLoopIsNecessaryConditional, + ForStatement: checkIfLoopIsNecessaryConditional, + IfStatement: (node) => checkNode(node.test), + LogicalExpression: checkLogicalExpressionForUnnecessaryConditionals, + 'MemberExpression[optional = true]': checkOptionalMemberExpression, + SwitchCase({ parent, test }) { + // only check `case ...:`, not `default:` + if (test) { + checkIfBoolExpressionIsNecessaryConditional(test, parent.discriminant, test, '==='); + } + }, + WhileStatement: checkIfLoopIsNecessaryConditional, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-condition.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map new file mode 100644 index 00000000..e669993d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAciB;AACjB,2EAGwC;AAExC,uBAAuB;AACvB,UAAU;AACV,MAAM,mBAAmB,GAAG,CAC1B,KAAwC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oBAC7B,2CAA2C,CACzC,IAAI,EACJ,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,EACV,QAAQ,CACT,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,cAAc,EAAE,mBAAmB;YACnC,iCAAiC,EAAE,2BAA2B;YAC9D,qBAAqB,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3D,gBAAgB,EAAE,iCAAiC;YACnD,YAAY,EAAE,iCAAiC;YAC/C,WAAW,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YACjD,iBAAiB,EAAE,gDAAgD;YACnE,mCAAmC,EAAE,6BAA6B;YAClE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;gBACzB,yCAAyC;gBACzC,IAAI,IAAI,EAAE,CAAC;oBACT,2CAA2C,CACzC,IAAI,EACJ,MAAM,CAAC,YAAY,EACnB,IAAI,EACJ,KAAK,CACN,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,cAAc,EAAE,iCAAiC;SAClD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js new file mode 100644 index 00000000..89ca69b2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js @@ -0,0 +1,150 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const UNNECESSARY_OPERATORS = new Set(['??=', '&&=', '=', '||=']); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-parameter-property-assignment', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow unnecessary assignment of constructor property parameter', + }, + messages: { + unnecessaryAssign: 'This assignment is unnecessary since it is already assigned by a parameter property.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const reportInfoStack = []; + function isThisMemberExpression(node) { + return (node.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.object.type === utils_1.AST_NODE_TYPES.ThisExpression); + } + function getPropertyName(node) { + if (!isThisMemberExpression(node)) { + return null; + } + if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { + return node.property.name; + } + if (node.computed) { + return (0, util_1.getStaticStringValue)(node.property); + } + return null; + } + function findParentFunction(node) { + if (!node || + node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration || + node.type === utils_1.AST_NODE_TYPES.FunctionExpression || + node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { + return node; + } + return findParentFunction(node.parent); + } + function findParentPropertyDefinition(node) { + if (!node || node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { + return node; + } + return findParentPropertyDefinition(node.parent); + } + function isConstructorFunctionExpression(node) { + return (node?.type === utils_1.AST_NODE_TYPES.FunctionExpression && + utils_1.ASTUtils.isConstructor(node.parent)); + } + function isReferenceFromParameter(node) { + const scope = context.sourceCode.getScope(node); + const rightRef = scope.references.find(ref => ref.identifier.name === node.name); + return rightRef?.resolved?.defs.at(0)?.type === scope_manager_1.DefinitionType.Parameter; + } + function isParameterPropertyWithName(node, name) { + return (node.type === utils_1.AST_NODE_TYPES.TSParameterProperty && + ((node.parameter.type === utils_1.AST_NODE_TYPES.Identifier && // constructor (public foo) {} + node.parameter.name === name) || + (node.parameter.type === utils_1.AST_NODE_TYPES.AssignmentPattern && // constructor (public foo = 1) {} + node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier && + node.parameter.left.name === name))); + } + function getIdentifier(node) { + if (node.type === utils_1.AST_NODE_TYPES.Identifier) { + return node; + } + if (node.type === utils_1.AST_NODE_TYPES.TSAsExpression || + node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { + return getIdentifier(node.expression); + } + return null; + } + function isArrowIIFE(node) { + return (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + node.parent.type === utils_1.AST_NODE_TYPES.CallExpression); + } + return { + ClassBody() { + reportInfoStack.push({ + assignedBeforeConstructor: new Set(), + assignedBeforeUnnecessary: new Set(), + unnecessaryAssignments: [], + }); + }, + 'ClassBody:exit'() { + const { assignedBeforeConstructor, unnecessaryAssignments } = (0, util_1.nullThrows)(reportInfoStack.pop(), 'The top stack should exist'); + unnecessaryAssignments.forEach(({ name, node }) => { + if (assignedBeforeConstructor.has(name)) { + return; + } + context.report({ + node, + messageId: 'unnecessaryAssign', + }); + }); + }, + "MethodDefinition[kind='constructor'] > FunctionExpression AssignmentExpression"(node) { + const leftName = getPropertyName(node.left); + if (!leftName) { + return; + } + let functionNode = findParentFunction(node); + if (functionNode && isArrowIIFE(functionNode)) { + functionNode = findParentFunction(functionNode.parent); + } + if (!isConstructorFunctionExpression(functionNode)) { + return; + } + const { assignedBeforeUnnecessary, unnecessaryAssignments } = (0, util_1.nullThrows)(reportInfoStack.at(reportInfoStack.length - 1), 'The top of stack should exist'); + if (!UNNECESSARY_OPERATORS.has(node.operator)) { + assignedBeforeUnnecessary.add(leftName); + return; + } + const rightId = getIdentifier(node.right); + if (leftName !== rightId?.name || !isReferenceFromParameter(rightId)) { + return; + } + const hasParameterProperty = functionNode.params.some(param => isParameterPropertyWithName(param, rightId.name)); + if (hasParameterProperty && !assignedBeforeUnnecessary.has(leftName)) { + unnecessaryAssignments.push({ + name: leftName, + node, + }); + } + }, + 'PropertyDefinition AssignmentExpression'(node) { + const name = getPropertyName(node.left); + if (!name) { + return; + } + const functionNode = findParentFunction(node); + if (functionNode && + !(isArrowIIFE(functionNode) && + findParentPropertyDefinition(node)?.value === functionNode.parent)) { + return; + } + const { assignedBeforeConstructor } = (0, util_1.nullThrows)(reportInfoStack.at(-1), 'The top stack should exist'); + assignedBeforeConstructor.add(name); + }, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-parameter-property-assignment.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map new file mode 100644 index 00000000..04f4747c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-parameter-property-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-parameter-property-assignment.ts"],"names":[],"mappings":";;AAEA,oEAAkE;AAClE,oDAAoE;AAEpE,kCAAuE;AAEvE,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAElE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8CAA8C;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;SACtE;QACD,QAAQ,EAAE;YACR,iBAAiB,EACf,sFAAsF;SACzF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,eAAe,GAOf,EAAE,CAAC;QAET,SAAS,sBAAsB,CAC7B,IAAmB;YAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;gBAC7C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CACnD,CAAC;QACJ,CAAC;QAED,SAAS,eAAe,CAAC,IAAmB;YAC1C,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC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4B,CAC7B,CAAC;gBACF,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js new file mode 100644 index 00000000..c0310078 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js @@ -0,0 +1,147 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-qualifier', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow unnecessary namespace qualifiers', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + unnecessaryQualifier: "Qualifier is unnecessary since '{{ name }}' is in scope.", + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const namespacesInScope = []; + let currentFailedNamespaceExpression = null; + const services = (0, util_1.getParserServices)(context); + const esTreeNodeToTSNodeMap = services.esTreeNodeToTSNodeMap; + const checker = services.program.getTypeChecker(); + function tryGetAliasedSymbol(symbol, checker) { + return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) + ? checker.getAliasedSymbol(symbol) + : null; + } + function symbolIsNamespaceInScope(symbol) { + const symbolDeclarations = symbol.getDeclarations() ?? []; + if (symbolDeclarations.some(decl => namespacesInScope.some(ns => ns === decl))) { + return true; + } + const alias = tryGetAliasedSymbol(symbol, checker); + return alias != null && symbolIsNamespaceInScope(alias); + } + function getSymbolInScope(node, flags, name) { + const scope = checker.getSymbolsInScope(node, flags); + return scope.find(scopeSymbol => scopeSymbol.name === name); + } + function symbolsAreEqual(accessed, inScope) { + return accessed === checker.getExportSymbolOfSymbol(inScope); + } + function qualifierIsUnnecessary(qualifier, name) { + const namespaceSymbol = services.getSymbolAtLocation(qualifier); + if (namespaceSymbol === undefined || + !symbolIsNamespaceInScope(namespaceSymbol)) { + return false; + } + const accessedSymbol = services.getSymbolAtLocation(name); + if (accessedSymbol === undefined) { + return false; + } + // If the symbol in scope is different, the qualifier is necessary. + const tsQualifier = esTreeNodeToTSNodeMap.get(qualifier); + const fromScope = getSymbolInScope(tsQualifier, accessedSymbol.flags, context.sourceCode.getText(name)); + return !!fromScope && symbolsAreEqual(accessedSymbol, fromScope); + } + function visitNamespaceAccess(node, qualifier, name) { + // Only look for nested qualifier errors if we didn't already fail on the outer qualifier. + if (!currentFailedNamespaceExpression && + qualifierIsUnnecessary(qualifier, name)) { + currentFailedNamespaceExpression = node; + context.report({ + node: qualifier, + messageId: 'unnecessaryQualifier', + data: { + name: context.sourceCode.getText(name), + }, + fix(fixer) { + return fixer.removeRange([qualifier.range[0], name.range[0]]); + }, + }); + } + } + function enterDeclaration(node) { + namespacesInScope.push(esTreeNodeToTSNodeMap.get(node)); + } + function exitDeclaration() { + namespacesInScope.pop(); + } + function resetCurrentNamespaceExpression(node) { + if (node === currentFailedNamespaceExpression) { + currentFailedNamespaceExpression = null; + } + } + function isPropertyAccessExpression(node) { + return node.type === utils_1.AST_NODE_TYPES.MemberExpression && !node.computed; + } + function isEntityNameExpression(node) { + return (node.type === utils_1.AST_NODE_TYPES.Identifier || + (isPropertyAccessExpression(node) && + isEntityNameExpression(node.object))); + } + return { + 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]': enterDeclaration, + 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]:exit': exitDeclaration, + 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]': enterDeclaration, + 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]:exit': exitDeclaration, + 'MemberExpression:exit': resetCurrentNamespaceExpression, + 'MemberExpression[computed=false]'(node) { + const property = node.property; + if (isEntityNameExpression(node.object)) { + visitNamespaceAccess(node, node.object, property); + } + }, + TSEnumDeclaration: enterDeclaration, + 'TSEnumDeclaration:exit': exitDeclaration, + 'TSModuleDeclaration:exit': exitDeclaration, + 'TSModuleDeclaration > TSModuleBlock'(node) { + enterDeclaration(node.parent); + }, + TSQualifiedName(node) { + visitNamespaceAccess(node, node.left, node.right); + }, + 'TSQualifiedName:exit': resetCurrentNamespaceExpression, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-qualifier.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map new file mode 100644 index 00000000..1ca3bcc1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"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,CACvC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,8DAA8D,EAC5D,gBAAgB;YAClB,mEAAmE,EACjE,eAAe;YACjB,gEAAgE,EAC9D,gBAAgB;YAClB,qEAAqE,EACnE,eAAe;YACjB,uBAAuB,EAAE,+BAA+B;YACxD,kCAAkC,CAChC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;YACD,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,eAAe;YACzC,0BAA0B,EAAE,eAAe;YAC3C,qCAAqC,CACnC,IAA4B;gBAE5B,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,sBAAsB,EAAE,+BAA+B;SACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js new file mode 100644 index 00000000..9945de4a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js @@ -0,0 +1,217 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const rangeToLoc_1 = require("../util/rangeToLoc"); +const evenNumOfBackslashesRegExp = /(? { + return (0, util_1.isTypeFlagSet)(t, ts.TypeFlags.StringLike); + }; + if (type.isUnion()) { + return type.types.every(isString); + } + if (type.isIntersection()) { + return type.types.some(isString); + } + return isString(type); + } + function isLiteral(expression) { + return expression.type === utils_1.AST_NODE_TYPES.Literal; + } + function isTemplateLiteral(expression) { + return expression.type === utils_1.AST_NODE_TYPES.TemplateLiteral; + } + function isInfinityIdentifier(expression) { + return (expression.type === utils_1.AST_NODE_TYPES.Identifier && + expression.name === 'Infinity'); + } + function isNaNIdentifier(expression) { + return (expression.type === utils_1.AST_NODE_TYPES.Identifier && + expression.name === 'NaN'); + } + return { + TemplateLiteral(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { + return; + } + const hasSingleStringVariable = node.quasis.length === 2 && + node.quasis[0].value.raw === '' && + node.quasis[1].value.raw === '' && + node.expressions.length === 1 && + isUnderlyingTypeString(node.expressions[0]); + if (hasSingleStringVariable) { + context.report({ + loc: (0, rangeToLoc_1.rangeToLoc)(context.sourceCode, [ + node.expressions[0].range[0] - 2, + node.expressions[0].range[1] + 1, + ]), + messageId: 'noUnnecessaryTemplateExpression', + fix(fixer) { + const wrappingCode = (0, util_1.getMovedNodeCode)({ + destinationNode: node, + nodeToMove: node.expressions[0], + sourceCode: context.sourceCode, + }); + return fixer.replaceText(node, wrappingCode); + }, + }); + return; + } + const fixableExpressions = node.expressions + .filter(expression => isLiteral(expression) || + isTemplateLiteral(expression) || + (0, util_1.isUndefinedIdentifier)(expression) || + isInfinityIdentifier(expression) || + isNaNIdentifier(expression)) + .reverse(); + let nextCharacterIsOpeningCurlyBrace = false; + for (const expression of fixableExpressions) { + const fixers = []; + const index = node.expressions.indexOf(expression); + const prevQuasi = node.quasis[index]; + const nextQuasi = node.quasis[index + 1]; + if (nextQuasi.value.raw.length !== 0) { + nextCharacterIsOpeningCurlyBrace = + nextQuasi.value.raw.startsWith('{'); + } + if (isLiteral(expression)) { + let escapedValue = (typeof expression.value === 'string' + ? // The value is already a string, so we're removing quotes: + // "'va`lue'" -> "va`lue" + expression.raw.slice(1, -1) + : // The value may be one of number | bigint | boolean | RegExp | null. + // In regular expressions, we escape every backslash + String(expression.value).replaceAll('\\', '\\\\')) + // The string or RegExp may contain ` or ${. + // We want both of these to be escaped in the final template expression. + // + // A pair of backslashes means "escaped backslash", so backslashes + // from this pair won't escape ` or ${. Therefore, to escape these + // sequences in the resulting template expression, we need to escape + // all sequences that are preceded by an even number of backslashes. + // + // This RegExp does the following transformations: + // \` -> \` + // \\` -> \\\` + // \${ -> \${ + // \\${ -> \\\${ + .replaceAll(new RegExp(`${String(evenNumOfBackslashesRegExp.source)}(\`|\\\${)`, 'g'), '\\$1'); + // `...${'...$'}{...` + // ^^^^ + if (nextCharacterIsOpeningCurlyBrace && + endsWithUnescapedDollarSign(escapedValue)) { + escapedValue = escapedValue.replaceAll(/\$$/g, '\\$'); + } + if (escapedValue.length !== 0) { + nextCharacterIsOpeningCurlyBrace = escapedValue.startsWith('{'); + } + fixers.push(fixer => [fixer.replaceText(expression, escapedValue)]); + } + else if (isTemplateLiteral(expression)) { + // Since we iterate from the last expression to the first, + // a subsequent expression can tell the current expression + // that it starts with {. + // + // `... ${`... $`}${'{...'} ...` + // ^ ^ subsequent expression starts with { + // current expression ends with a dollar sign, + // so '$' + '{' === '${' (bad news for us). + // Let's escape the dollar sign at the end. + if (nextCharacterIsOpeningCurlyBrace && + endsWithUnescapedDollarSign(expression.quasis[expression.quasis.length - 1].value.raw)) { + fixers.push(fixer => [ + fixer.replaceTextRange([expression.range[1] - 2, expression.range[1] - 2], '\\'), + ]); + } + if (expression.quasis.length === 1 && + expression.quasis[0].value.raw.length !== 0) { + nextCharacterIsOpeningCurlyBrace = + expression.quasis[0].value.raw.startsWith('{'); + } + // Remove the beginning and trailing backtick characters. + fixers.push(fixer => [ + fixer.removeRange([expression.range[0], expression.range[0] + 1]), + fixer.removeRange([expression.range[1] - 1, expression.range[1]]), + ]); + } + else { + nextCharacterIsOpeningCurlyBrace = false; + } + // `... $${'{...'} ...` + // ^^^^^ + if (nextCharacterIsOpeningCurlyBrace && + endsWithUnescapedDollarSign(prevQuasi.value.raw)) { + fixers.push(fixer => [ + fixer.replaceTextRange([prevQuasi.range[1] - 3, prevQuasi.range[1] - 2], '\\$'), + ]); + } + const warnLocStart = prevQuasi.range[1] - 2; + const warnLocEnd = nextQuasi.range[0] + 1; + context.report({ + loc: (0, rangeToLoc_1.rangeToLoc)(context.sourceCode, [warnLocStart, warnLocEnd]), + messageId: 'noUnnecessaryTemplateExpression', + fix(fixer) { + return [ + // Remove the quasis' parts that are related to the current expression. + fixer.removeRange([warnLocStart, expression.range[0]]), + fixer.removeRange([expression.range[1], warnLocEnd]), + ...fixers.flatMap(cb => cb(fixer)), + ]; + }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-template-expression.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map new file mode 100644 index 00000000..eb7a515d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-template-expression.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-template-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,mDAAgD;AAIhD,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAEjE,iBAAiB;AACjB,kBAAkB;AAClB,qBAAqB;AACrB,SAAS,2BAA2B,CAAC,GAAW;IAC9C,OAAO,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CACxE,GAAG,CACJ,CAAC;AACJ,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,+BAA+B,EAC7B,mEAAmE;SACtE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C,SAAS,sBAAsB,CAC7B,UAA+B;YAE/B,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAEhE,MAAM,QAAQ,GAAG,CAAC,CAAU,EAAW,EAAE;gBACvC,OAAO,IAAA,oBAAa,EAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YACnD,CAAC,CAA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,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;gCAEpD,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;6BACnC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js new file mode 100644 index 00000000..d77b7921 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js @@ -0,0 +1,152 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-type-arguments', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow type arguments that are equal to the default', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + unnecessaryTypeParameter: 'This is the default value for this type parameter, so it can be omitted.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function getTypeForComparison(type) { + if ((0, util_1.isTypeReferenceType)(type)) { + return { + type: type.target, + typeArguments: checker.getTypeArguments(type), + }; + } + return { + type, + typeArguments: [], + }; + } + function checkTSArgsAndParameters(esParameters, typeParameters) { + // Just check the last one. Must specify previous type parameters if the last one is specified. + const i = esParameters.params.length - 1; + const arg = esParameters.params[i]; + const param = typeParameters.at(i); + if (!param?.default) { + return; + } + // TODO: would like checker.areTypesEquivalent. https://github.com/Microsoft/TypeScript/issues/13502 + const defaultType = checker.getTypeAtLocation(param.default); + const argType = services.getTypeAtLocation(arg); + // this check should handle some of the most simple cases of like strings, numbers, etc + if (defaultType !== argType) { + // For more complex types (like aliases to generic object types) - TS won't always create a + // global shared type object for the type - so we need to resort to manually comparing the + // reference type and the passed type arguments. + // Also - in case there are aliases - we need to resolve them before we do checks + const defaultTypeResolved = getTypeForComparison(defaultType); + const argTypeResolved = getTypeForComparison(argType); + if ( + // ensure the resolved type AND all the parameters are the same + defaultTypeResolved.type !== argTypeResolved.type || + defaultTypeResolved.typeArguments.length !== + argTypeResolved.typeArguments.length || + defaultTypeResolved.typeArguments.some((t, i) => t !== argTypeResolved.typeArguments[i])) { + return; + } + } + context.report({ + node: arg, + messageId: 'unnecessaryTypeParameter', + fix: fixer => fixer.removeRange(i === 0 + ? esParameters.range + : [esParameters.params[i - 1].range[1], arg.range[1]]), + }); + } + return { + TSTypeParameterInstantiation(node) { + const expression = services.esTreeNodeToTSNodeMap.get(node); + const typeParameters = getTypeParametersFromNode(expression, checker); + if (typeParameters) { + checkTSArgsAndParameters(node, typeParameters); + } + }, + }; + }, +}); +function getTypeParametersFromNode(node, checker) { + if (ts.isExpressionWithTypeArguments(node)) { + return getTypeParametersFromType(node.expression, checker); + } + if (ts.isTypeReferenceNode(node)) { + return getTypeParametersFromType(node.typeName, checker); + } + if (ts.isCallExpression(node) || + ts.isNewExpression(node) || + ts.isTaggedTemplateExpression(node)) { + return getTypeParametersFromCall(node, checker); + } + return undefined; +} +function getTypeParametersFromType(type, checker) { + const symAtLocation = checker.getSymbolAtLocation(type); + if (!symAtLocation) { + return undefined; + } + const sym = getAliasedSymbol(symAtLocation, checker); + const declarations = sym.getDeclarations(); + if (!declarations) { + return undefined; + } + return (0, util_1.findFirstResult)(declarations, decl => ts.isClassLike(decl) || + ts.isTypeAliasDeclaration(decl) || + ts.isInterfaceDeclaration(decl) + ? decl.typeParameters + : undefined); +} +function getTypeParametersFromCall(node, checker) { + const sig = checker.getResolvedSignature(node); + const sigDecl = sig?.getDeclaration(); + if (!sigDecl) { + return ts.isNewExpression(node) + ? getTypeParametersFromType(node.expression, checker) + : undefined; + } + return sigDecl.typeParameters; +} +function getAliasedSymbol(symbol, checker) { + return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) + ? checker.getAliasedSymbol(symbol) + : symbol; +} +//# sourceMappingURL=no-unnecessary-type-arguments.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map new file mode 100644 index 00000000..da71764e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAejB,kBAAe,IAA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;QAC/B,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,cAAc;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAAwE,EACxE,OAAuB;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js new file mode 100644 index 00000000..1b48482a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js @@ -0,0 +1,280 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-type-assertion', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow type assertions that do not change the type of an expression', + recommended: 'recommended', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + contextuallyUnnecessary: 'This assertion is unnecessary since the receiver accepts the original type of the expression.', + unnecessaryAssertion: 'This assertion is unnecessary since it does not change the type of the expression.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + typesToIgnore: { + type: 'array', + description: 'A list of type names to ignore.', + items: { + type: 'string', + }, + }, + }, + }, + ], + }, + defaultOptions: [{}], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + /** + * Returns true if there's a chance the variable has been used before a value has been assigned to it + */ + function isPossiblyUsedBeforeAssigned(node) { + const declaration = (0, util_1.getDeclaration)(services, node); + if (!declaration) { + // don't know what the declaration is for some reason, so just assume the worst + return true; + } + if ( + // non-strict mode doesn't care about used before assigned errors + tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks') && + // ignore class properties as they are compile time guarded + // also ignore function arguments as they can't be used before defined + ts.isVariableDeclaration(declaration)) { + // For var declarations, we need to check whether the node + // is actually in a descendant of its declaration or not. If not, + // it may be used before defined. + // eg + // if (Math.random() < 0.5) { + // var x: number = 2; + // } else { + // x!.toFixed(); + // } + if (ts.isVariableDeclarationList(declaration.parent) && + // var + declaration.parent.flags === ts.NodeFlags.None && + // If they are not in the same file it will not exist. + // This situation must not occur using before defined. + services.tsNodeToESTreeNodeMap.has(declaration)) { + const declaratorNode = services.tsNodeToESTreeNodeMap.get(declaration); + const scope = context.sourceCode.getScope(node); + const declaratorScope = context.sourceCode.getScope(declaratorNode); + let parentScope = declaratorScope; + while ((parentScope = parentScope.upper)) { + if (parentScope === scope) { + return true; + } + } + } + if ( + // is it `const x!: number` + declaration.initializer === undefined && + declaration.exclamationToken === undefined && + declaration.type !== undefined) { + // check if the defined variable type has changed since assignment + const declarationType = checker.getTypeFromTypeNode(declaration.type); + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + if (declarationType === type && + // `declare`s are never narrowed, so never skip them + !(ts.isVariableDeclarationList(declaration.parent) && + ts.isVariableStatement(declaration.parent.parent) && + tsutils.includesModifier((0, util_1.getModifiers)(declaration.parent.parent), ts.SyntaxKind.DeclareKeyword))) { + // possibly used before assigned, so just skip it + // better to false negative and skip it, than false positive and fix to compile erroring code + // + // no better way to figure this out right now + // https://github.com/Microsoft/TypeScript/issues/31124 + return true; + } + } + } + return false; + } + function isConstAssertion(node) { + return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && + node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + node.typeName.name === 'const'); + } + function isImplicitlyNarrowedConstDeclaration({ expression, parent, }) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const maybeDeclarationNode = parent.parent; + const isTemplateLiteralWithExpressions = expression.type === utils_1.AST_NODE_TYPES.TemplateLiteral && + expression.expressions.length !== 0; + return (maybeDeclarationNode.type === utils_1.AST_NODE_TYPES.VariableDeclaration && + maybeDeclarationNode.kind === 'const' && + /** + * Even on `const` variable declarations, template literals with expressions can sometimes be widened without a type assertion. + * @see https://github.com/typescript-eslint/typescript-eslint/issues/8737 + */ + !isTemplateLiteralWithExpressions); + } + function isTypeUnchanged(uncast, cast) { + if (uncast === cast) { + return true; + } + if ((0, util_1.isTypeFlagSet)(uncast, ts.TypeFlags.Undefined) && + (0, util_1.isTypeFlagSet)(cast, ts.TypeFlags.Undefined) && + tsutils.isCompilerOptionEnabled(compilerOptions, 'exactOptionalPropertyTypes')) { + const uncastParts = tsutils + .unionTypeParts(uncast) + .filter(part => !(0, util_1.isTypeFlagSet)(part, ts.TypeFlags.Undefined)); + const castParts = tsutils + .unionTypeParts(cast) + .filter(part => !(0, util_1.isTypeFlagSet)(part, ts.TypeFlags.Undefined)); + if (uncastParts.length !== castParts.length) { + return false; + } + const uncastPartsSet = new Set(uncastParts); + return castParts.every(part => uncastPartsSet.has(part)); + } + return false; + } + return { + 'TSAsExpression, TSTypeAssertion'(node) { + if (options.typesToIgnore?.includes(context.sourceCode.getText(node.typeAnnotation))) { + return; + } + const castType = services.getTypeAtLocation(node); + const uncastType = services.getTypeAtLocation(node.expression); + const typeIsUnchanged = isTypeUnchanged(uncastType, castType); + const wouldSameTypeBeInferred = castType.isLiteral() + ? isImplicitlyNarrowedConstDeclaration(node) + : !isConstAssertion(node.typeAnnotation); + if (typeIsUnchanged && wouldSameTypeBeInferred) { + context.report({ + node, + messageId: 'unnecessaryAssertion', + fix(fixer) { + if (node.type === utils_1.AST_NODE_TYPES.TSTypeAssertion) { + const openingAngleBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === '<'), util_1.NullThrowsReasons.MissingToken('<', 'type annotation')); + const closingAngleBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === '>'), util_1.NullThrowsReasons.MissingToken('>', 'type annotation')); + // < ( number ) > ( 3 + 5 ) + // ^---remove---^ + return fixer.removeRange([ + openingAngleBracket.range[0], + closingAngleBracket.range[1], + ]); + } + // `as` is always present in TSAsExpression + const asToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.expression, token => token.type === utils_1.AST_TOKEN_TYPES.Identifier && + token.value === 'as'), util_1.NullThrowsReasons.MissingToken('>', 'type annotation')); + const tokenBeforeAs = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(asToken, { + includeComments: true, + }), util_1.NullThrowsReasons.MissingToken('comment', 'as')); + // ( 3 + 5 ) as number + // ^--remove--^ + return fixer.removeRange([tokenBeforeAs.range[1], node.range[1]]); + }, + }); + } + // TODO - add contextually unnecessary check for this + }, + TSNonNullExpression(node) { + const removeExclamationFix = fixer => { + const exclamationToken = (0, util_1.nullThrows)(context.sourceCode.getLastToken(node, token => token.value === '!'), util_1.NullThrowsReasons.MissingToken('exclamation mark', 'non-null assertion')); + return fixer.removeRange(exclamationToken.range); + }; + if (node.parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && + node.parent.operator === '=') { + if (node.parent.left === node) { + context.report({ + node, + messageId: 'contextuallyUnnecessary', + fix: removeExclamationFix, + }); + } + // for all other = assignments we ignore non-null checks + // this is because non-null assertions can change the type-flow of the code + // so whilst they might be unnecessary for the assignment - they are necessary + // for following code + return; + } + const originalNode = services.esTreeNodeToTSNodeMap.get(node); + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node.expression); + if (!(0, util_1.isNullableType)(type)) { + if (node.expression.type === utils_1.AST_NODE_TYPES.Identifier && + isPossiblyUsedBeforeAssigned(node.expression)) { + return; + } + context.report({ + node, + messageId: 'unnecessaryAssertion', + fix: removeExclamationFix, + }); + } + else { + // we know it's a nullable type + // so figure out if the variable is used in a place that accepts nullable types + const contextualType = (0, util_1.getContextualType)(checker, originalNode); + if (contextualType) { + // in strict mode you can't assign null to undefined, so we have to make sure that + // the two types share a nullable type + const typeIncludesUndefined = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Undefined); + const typeIncludesNull = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Null); + const typeIncludesVoid = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Void); + const contextualTypeIncludesUndefined = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Undefined); + const contextualTypeIncludesNull = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Null); + const contextualTypeIncludesVoid = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Void); + // make sure that the parent accepts the same types + // i.e. assigning `string | null | undefined` to `string | undefined` is invalid + const isValidUndefined = typeIncludesUndefined + ? contextualTypeIncludesUndefined + : true; + const isValidNull = typeIncludesNull + ? contextualTypeIncludesNull + : true; + const isValidVoid = typeIncludesVoid + ? contextualTypeIncludesVoid + : true; + if (isValidUndefined && isValidNull && isValidVoid) { + context.report({ + node, + messageId: 'contextuallyUnnecessary', + fix: removeExclamationFix, + }); + } + } + } + }, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-type-assertion.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map new file mode 100644 index 00000000..9204d828 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAWiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW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,EAAE,CAAC,SAAS,CAAC,SAAS,CACvB,CAAC;wBACF,MAAM,0BAA0B,GAAG,IAAA,oBAAa,EAC9C,cAAc,EACd,EAAE,CAAC,SAAS,CAAC,IAAI,CAClB,CAAC;wBACF,MAAM,0BAA0B,GAAG,IAAA,oBAAa,EAC9C,cAAc,EACd,EAAE,CAAC,SAAS,CAAC,IAAI,CAClB,CAAC;wBAEF,mDAAmD;wBACnD,gFAAgF;wBAChF,MAAM,gBAAgB,GAAG,qBAAqB;4BAC5C,CAAC,CAAC,+BAA+B;4BACjC,CAAC,CAAC,IAAI,CAAC;wBACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBACT,MAAM,WAAW,GAAG,gBAAgB;4BAClC,CAAC,CAAC,0BAA0B;4BAC5B,CAAC,CAAC,IAAI,CAAC;wBAET,IAAI,gBAAgB,IAAI,WAAW,IAAI,WAAW,EAAE,CAAC;4BACnD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,yBAAyB;gCACpC,GAAG,EAAE,oBAAoB;6BAC1B,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js new file mode 100644 index 00000000..11e534e3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js @@ -0,0 +1,110 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const node_path_1 = require("node:path"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-type-constraint', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow unnecessary constraints on generic types', + recommended: 'recommended', + }, + hasSuggestions: true, + messages: { + removeUnnecessaryConstraint: 'Remove the unnecessary `{{constraint}}` constraint.', + unnecessaryConstraint: 'Constraining the generic type `{{name}}` to `{{constraint}}` does nothing and is unnecessary.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + // In theory, we could use the type checker for more advanced constraint types... + // ...but in practice, these types are rare, and likely not worth requiring type info. + // https://github.com/typescript-eslint/typescript-eslint/pull/2516#discussion_r495731858 + const unnecessaryConstraints = new Map([ + [utils_1.AST_NODE_TYPES.TSAnyKeyword, 'any'], + [utils_1.AST_NODE_TYPES.TSUnknownKeyword, 'unknown'], + ]); + function checkRequiresGenericDeclarationDisambiguation(filename) { + const pathExt = (0, node_path_1.extname)(filename).toLocaleLowerCase(); + switch (pathExt) { + case ts.Extension.Cts: + case ts.Extension.Mts: + case ts.Extension.Tsx: + return true; + default: + return false; + } + } + const requiresGenericDeclarationDisambiguation = checkRequiresGenericDeclarationDisambiguation(context.filename); + const checkNode = (node, inArrowFunction) => { + const constraint = unnecessaryConstraints.get(node.constraint.type); + function shouldAddTrailingComma() { + if (!inArrowFunction || !requiresGenericDeclarationDisambiguation) { + return false; + } + // Only () => {} would need trailing comma + return (node.parent.params.length === + 1 && + context.sourceCode.getTokensAfter(node)[0].value !== ',' && + !node.default); + } + if (constraint) { + context.report({ + node, + messageId: 'unnecessaryConstraint', + data: { + name: node.name.name, + constraint, + }, + suggest: [ + { + messageId: 'removeUnnecessaryConstraint', + data: { + constraint, + }, + fix(fixer) { + return fixer.replaceTextRange([node.name.range[1], node.constraint.range[1]], shouldAddTrailingComma() ? ',' : ''); + }, + }, + ], + }); + } + }; + return { + ':not(ArrowFunctionExpression) > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { + checkNode(node, false); + }, + 'ArrowFunctionExpression > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { + checkNode(node, true); + }, + }; + }, +}); +//# sourceMappingURL=no-unnecessary-type-constraint.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map new file mode 100644 index 00000000..520247ac --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-type-constraint.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-constraint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,yCAAoC;AACpC,+CAAiC;AAIjC,kCAAqC;AAOrC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EA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U,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,GAAG;oBACxD,CAAC,IAAI,CAAC,OAAO,CACd,CAAC;YACJ,CAAC;YAED,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,uBAAuB;oBAClC,IAAI,EAAE;wBACJ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;wBACpB,UAAU;qBACX;oBACD,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,6BAA6B;4BACxC,IAAI,EAAE;gCACJ,UAAU;6BACX;4BACD,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,gBAAgB,CAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACpC,CAAC;4BACJ,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;QAEF,OAAO;YACL,0FAA0F,CACxF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACzB,CAAC;YACD,oFAAoF,CAClF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js new file mode 100644 index 00000000..1d74d9e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js @@ -0,0 +1,376 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unnecessary-type-parameters', + meta: { + type: 'problem', + docs: { + description: "Disallow type parameters that aren't used multiple times", + recommended: 'strict', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + replaceUsagesWithConstraint: 'Replace all usages of type parameter with its constraint.', + sole: 'Type parameter {{name}} is {{uses}} in the {{descriptor}} signature.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const parserServices = (0, util_1.getParserServices)(context); + function checkNode(node, descriptor) { + const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); + const checker = parserServices.program.getTypeChecker(); + let counts; + // Get the scope in which the type parameters are declared. + const scope = context.sourceCode.getScope(node); + for (const typeParameter of tsNode.typeParameters) { + const esTypeParameter = parserServices.tsNodeToESTreeNodeMap.get(typeParameter); + const smTypeParameterVariable = (0, util_1.nullThrows)((() => { + const variable = scope.set.get(esTypeParameter.name.name); + return variable?.isTypeVariable ? variable : undefined; + })(), "Type parameter should be present in scope's variables."); + // Quick path: if the type parameter is used multiple times in the AST, + // we don't need to dip into types to know it's repeated. + if (isTypeParameterRepeatedInAST(esTypeParameter, smTypeParameterVariable.references, node.body?.range[0] ?? node.returnType?.range[1])) { + continue; + } + // For any inferred types, we have to dip into type checking. + counts ??= countTypeParameterUsage(checker, tsNode); + const identifierCounts = counts.get(typeParameter.name); + if (!identifierCounts || identifierCounts > 2) { + continue; + } + context.report({ + node: esTypeParameter, + messageId: 'sole', + data: { + name: typeParameter.name.text, + descriptor, + uses: identifierCounts === 1 ? 'never used' : 'used only once', + }, + suggest: [ + { + messageId: 'replaceUsagesWithConstraint', + *fix(fixer) { + // Replace all the usages of the type parameter with the constraint... + const constraint = esTypeParameter.constraint; + // special case - a constraint of 'any' actually acts like 'unknown' + const constraintText = constraint != null && + constraint.type !== utils_1.AST_NODE_TYPES.TSAnyKeyword + ? context.sourceCode.getText(constraint) + : 'unknown'; + for (const reference of smTypeParameterVariable.references) { + if (reference.isTypeReference) { + const referenceNode = reference.identifier; + yield fixer.replaceText(referenceNode, constraintText); + } + } + // ...and remove the type parameter itself from the declaration. + const typeParamsNode = (0, util_1.nullThrows)(node.typeParameters, 'node should have type parameters'); + // We are assuming at this point that the reported type parameter + // is present in the inspected node's type parameters. + if (typeParamsNode.params.length === 1) { + // Remove the whole generic syntax if we're removing the only type parameter in the list. + yield fixer.remove(typeParamsNode); + } + else { + const index = typeParamsNode.params.indexOf(esTypeParameter); + if (index === 0) { + const commaAfter = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(esTypeParameter, token => token.value === ','), util_1.NullThrowsReasons.MissingToken('comma', 'type parameter list')); + const tokenAfterComma = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(commaAfter, { + includeComments: true, + }), util_1.NullThrowsReasons.MissingToken('token', 'type parameter list')); + yield fixer.removeRange([ + esTypeParameter.range[0], + tokenAfterComma.range[0], + ]); + } + else { + const commaBefore = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(esTypeParameter, token => token.value === ','), util_1.NullThrowsReasons.MissingToken('comma', 'type parameter list')); + yield fixer.removeRange([ + commaBefore.range[0], + esTypeParameter.range[1], + ]); + } + } + }, + }, + ], + }); + } + } + return { + [[ + 'ArrowFunctionExpression[typeParameters]', + 'FunctionDeclaration[typeParameters]', + 'FunctionExpression[typeParameters]', + 'TSCallSignatureDeclaration[typeParameters]', + 'TSConstructorType[typeParameters]', + 'TSDeclareFunction[typeParameters]', + 'TSEmptyBodyFunctionExpression[typeParameters]', + 'TSFunctionType[typeParameters]', + 'TSMethodSignature[typeParameters]', + ].join(', ')](node) { + checkNode(node, 'function'); + }, + [[ + 'ClassDeclaration[typeParameters]', + 'ClassExpression[typeParameters]', + ].join(', ')](node) { + checkNode(node, 'class'); + }, + }; + }, +}); +function isTypeParameterRepeatedInAST(node, references, startOfBody = Infinity) { + let total = 0; + for (const reference of references) { + // References inside the type parameter's definition don't count... + if (reference.identifier.range[0] < node.range[1] && + reference.identifier.range[1] > node.range[0]) { + continue; + } + // ...nor references that are outside the declaring signature. + if (reference.identifier.range[0] > startOfBody) { + continue; + } + // Neither do references that aren't to the same type parameter, + // namely value-land (non-type) identifiers of the type parameter's type, + // and references to different type parameters or values. + if (!reference.isTypeReference || + reference.identifier.name !== node.name.name) { + continue; + } + // If the type parameter is being used as a type argument, then we + // know the type parameter is being reused and can't be reported. + if (reference.identifier.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) { + const grandparent = skipConstituentsUpward(reference.identifier.parent.parent); + if (grandparent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && + grandparent.params.includes(reference.identifier.parent)) { + return true; + } + } + total += 1; + if (total >= 2) { + return true; + } + } + return false; +} +function skipConstituentsUpward(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSIntersectionType: + case utils_1.AST_NODE_TYPES.TSUnionType: + return skipConstituentsUpward(node.parent); + default: + return node; + } +} +/** + * Count uses of type parameters in inferred return types. + * We need to resolve and analyze the inferred return type of a function + * to see whether it contains additional references to the type parameters. + * For classes, we need to do this for all their methods. + */ +function countTypeParameterUsage(checker, node) { + const counts = new Map(); + if (ts.isClassLike(node)) { + for (const typeParameter of node.typeParameters) { + collectTypeParameterUsageCounts(checker, typeParameter, counts); + } + for (const member of node.members) { + collectTypeParameterUsageCounts(checker, member, counts); + } + } + else { + collectTypeParameterUsageCounts(checker, node, counts); + } + return counts; +} +/** + * Populates {@link foundIdentifierUsages} by the number of times each type parameter + * appears in the given type by checking its uses through its type references. + * This is essentially a limited subset of the scope manager, but for types. + */ +function collectTypeParameterUsageCounts(checker, node, foundIdentifierUsages) { + const visitedSymbolLists = new Set(); + const type = checker.getTypeAtLocation(node); + const typeUsages = new Map(); + const visitedConstraints = new Set(); + let functionLikeType = false; + let visitedDefault = false; + if (ts.isCallSignatureDeclaration(node) || + ts.isConstructorDeclaration(node)) { + functionLikeType = true; + visitSignature(checker.getSignatureFromDeclaration(node)); + } + if (!functionLikeType) { + visitType(type, false); + } + function visitType(type, assumeMultipleUses) { + // Seeing the same type > (threshold=3 ** 2) times indicates a likely + // recursive type, like `type T = { [P in keyof T]: T }`. + // If it's not recursive, then heck, we've seen it enough times that any + // referenced types have been counted enough to qualify as used. + if (!type || incrementTypeUsages(type) > 9) { + return; + } + // https://github.com/JoshuaKGoldberg/ts-api-utils/issues/382 + if (tsutils.isTypeParameter(type)) { + const declaration = type.getSymbol()?.getDeclarations()?.[0]; + if (declaration) { + incrementIdentifierCount(declaration.name, assumeMultipleUses); + // Visiting the type of a constrained type parameter will recurse into + // the constraint. We avoid infinite loops by visiting each only once. + if (declaration.constraint && + !visitedConstraints.has(declaration.constraint)) { + visitedConstraints.add(declaration.constraint); + visitType(checker.getTypeAtLocation(declaration.constraint), false); + } + if (declaration.default && !visitedDefault) { + visitedDefault = true; + visitType(checker.getTypeAtLocation(declaration.default), false); + } + } + } + // Catch-all: generic type references like `Exclude` + else if (type.aliasTypeArguments) { + // We don't descend into the definition of the type alias, so we don't + // know whether it's used multiple times. It's safest to assume it is. + visitTypesList(type.aliasTypeArguments, true); + } + // Intersections and unions like `0 | 1` + else if (tsutils.isUnionOrIntersectionType(type)) { + visitTypesList(type.types, assumeMultipleUses); + } + // Index access types like `T[K]` + else if (tsutils.isIndexedAccessType(type)) { + visitType(type.objectType, assumeMultipleUses); + visitType(type.indexType, assumeMultipleUses); + } + // Tuple types like `[K, V]` + // Generic type references like `Map` + else if (tsutils.isTupleType(type) || tsutils.isTypeReference(type)) { + for (const typeArgument of type.typeArguments ?? []) { + visitType(typeArgument, true); + } + } + // Template literals like `a${T}b` + else if (tsutils.isTemplateLiteralType(type)) { + for (const subType of type.types) { + visitType(subType, assumeMultipleUses); + } + } + // Conditional types like `T extends string ? T : never` + else if (tsutils.isConditionalType(type)) { + visitType(type.checkType, assumeMultipleUses); + visitType(type.extendsType, assumeMultipleUses); + } + // Catch-all: inferred object types like `{ K: V }`. + // These catch-alls should be _after_ more specific checks like + // `isTypeReference` to avoid descending into all the properties of a + // generic interface/class, e.g. `Map`. + else if (tsutils.isObjectType(type)) { + const properties = type.getProperties(); + visitSymbolsListOnce(properties, false); + if (isMappedType(type)) { + visitType(type.typeParameter, false); + if (properties.length === 0) { + // TS treats mapped types like `{[k in "a"]: T}` like `{a: T}`. + // They have properties, so we need to avoid double-counting. + visitType(type.templateType ?? type.constraintType, false); + } + } + visitType(type.getNumberIndexType(), true); + visitType(type.getStringIndexType(), true); + type.getCallSignatures().forEach(signature => { + functionLikeType = true; + visitSignature(signature); + }); + type.getConstructSignatures().forEach(signature => { + functionLikeType = true; + visitSignature(signature); + }); + } + // Catch-all: operator types like `keyof T` + else if (isOperatorType(type)) { + visitType(type.type, assumeMultipleUses); + } + } + function incrementIdentifierCount(id, assumeMultipleUses) { + const identifierCount = foundIdentifierUsages.get(id) ?? 0; + const value = assumeMultipleUses ? 2 : 1; + foundIdentifierUsages.set(id, identifierCount + value); + } + function incrementTypeUsages(type) { + const count = (typeUsages.get(type) ?? 0) + 1; + typeUsages.set(type, count); + return count; + } + function visitSignature(signature) { + if (!signature) { + return; + } + if (signature.thisParameter) { + visitType(checker.getTypeOfSymbol(signature.thisParameter), false); + } + for (const parameter of signature.parameters) { + visitType(checker.getTypeOfSymbol(parameter), false); + } + for (const typeParameter of signature.getTypeParameters() ?? []) { + visitType(typeParameter, false); + } + visitType(checker.getTypePredicateOfSignature(signature)?.type ?? + signature.getReturnType(), false); + } + function visitSymbolsListOnce(symbols, assumeMultipleUses) { + if (visitedSymbolLists.has(symbols)) { + return; + } + visitedSymbolLists.add(symbols); + for (const symbol of symbols) { + visitType(checker.getTypeOfSymbol(symbol), assumeMultipleUses); + } + } + function visitTypesList(types, assumeMultipleUses) { + for (const type of types) { + visitType(type, assumeMultipleUses); + } + } +} +function isMappedType(type) { + return 'typeParameter' in type; +} +function isOperatorType(type) { + return 'type' in type && !!type.type; +} +//# sourceMappingURL=no-unnecessary-type-parameters.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map new file mode 100644 index 00000000..a20655dc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unnecessary-type-parameters.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAIjC,kCAKiB;AAOjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACv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eAAe,IAAI,IAAI,CAAC;AACjC,CAAC;AAMD,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js new file mode 100644 index 00000000..3a8a3301 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js @@ -0,0 +1,257 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +class FunctionSignature { + paramTypes; + restType; + hasConsumedArguments = false; + parameterTypeIndex = 0; + constructor(paramTypes, restType) { + this.paramTypes = paramTypes; + this.restType = restType; + } + static create(checker, tsNode) { + const signature = checker.getResolvedSignature(tsNode); + if (!signature) { + return null; + } + const paramTypes = []; + let restType = null; + const parameters = signature.getParameters(); + for (let i = 0; i < parameters.length; i += 1) { + const param = parameters[i]; + const type = checker.getTypeOfSymbolAtLocation(param, tsNode); + const decl = param.getDeclarations()?.[0]; + if (decl && (0, util_1.isRestParameterDeclaration)(decl)) { + // is a rest param + if (checker.isArrayType(type)) { + restType = { + type: checker.getTypeArguments(type)[0], + index: i, + kind: 0 /* RestTypeKind.Array */, + }; + } + else if (checker.isTupleType(type)) { + restType = { + index: i, + kind: 1 /* RestTypeKind.Tuple */, + typeArguments: checker.getTypeArguments(type), + }; + } + else { + restType = { + type, + index: i, + kind: 2 /* RestTypeKind.Other */, + }; + } + break; + } + paramTypes.push(type); + } + return new this(paramTypes, restType); + } + consumeRemainingArguments() { + this.hasConsumedArguments = true; + } + getNextParameterType() { + const index = this.parameterTypeIndex; + this.parameterTypeIndex += 1; + if (index >= this.paramTypes.length || this.hasConsumedArguments) { + if (this.restType == null) { + return null; + } + switch (this.restType.kind) { + case 1 /* RestTypeKind.Tuple */: { + const typeArguments = this.restType.typeArguments; + if (this.hasConsumedArguments) { + // all types consumed by a rest - just assume it's the last type + // there is one edge case where this is wrong, but we ignore it because + // it's rare and really complicated to handle + // eg: function foo(...a: [number, ...string[], number]) + return typeArguments[typeArguments.length - 1]; + } + const typeIndex = index - this.restType.index; + if (typeIndex >= typeArguments.length) { + return typeArguments[typeArguments.length - 1]; + } + return typeArguments[typeIndex]; + } + case 0 /* RestTypeKind.Array */: + case 2 /* RestTypeKind.Other */: + return this.restType.type; + } + } + return this.paramTypes[index]; + } +} +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-argument', + meta: { + type: 'problem', + docs: { + description: 'Disallow calling a function with a value with type `any`', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unsafeArgument: 'Unsafe argument of type {{sender}} assigned to a parameter of type {{receiver}}.', + unsafeArraySpread: 'Unsafe spread of an {{sender}} array type.', + unsafeSpread: 'Unsafe spread of an {{sender}} type.', + unsafeTupleSpread: 'Unsafe spread of a tuple type. The argument is {{sender}} and is assigned to a parameter of type {{receiver}}.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function describeType(type) { + if (tsutils.isIntrinsicErrorType(type)) { + return 'error typed'; + } + return `\`${checker.typeToString(type)}\``; + } + function describeTypeForSpread(type) { + if (checker.isArrayType(type) && + tsutils.isIntrinsicErrorType(checker.getTypeArguments(type)[0])) { + return 'error'; + } + return describeType(type); + } + function describeTypeForTuple(type) { + if (tsutils.isIntrinsicErrorType(type)) { + return 'error typed'; + } + return `of type \`${checker.typeToString(type)}\``; + } + function checkUnsafeArguments(args, callee, node) { + if (args.length === 0) { + return; + } + // ignore any-typed calls as these are caught by no-unsafe-call + if ((0, util_1.isTypeAnyType)(services.getTypeAtLocation(callee))) { + return; + } + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const signature = (0, util_1.nullThrows)(FunctionSignature.create(checker, tsNode), 'Expected to a signature resolved'); + if (node.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { + // Consumes the first parameter (TemplateStringsArray) of the function called with TaggedTemplateExpression. + signature.getNextParameterType(); + } + for (const argument of args) { + switch (argument.type) { + // spreads consume + case utils_1.AST_NODE_TYPES.SpreadElement: { + const spreadArgType = services.getTypeAtLocation(argument.argument); + if ((0, util_1.isTypeAnyType)(spreadArgType)) { + // foo(...any) + context.report({ + node: argument, + messageId: 'unsafeSpread', + data: { sender: describeType(spreadArgType) }, + }); + } + else if ((0, util_1.isTypeAnyArrayType)(spreadArgType, checker)) { + // foo(...any[]) + // TODO - we could break down the spread and compare the array type against each argument + context.report({ + node: argument, + messageId: 'unsafeArraySpread', + data: { sender: describeTypeForSpread(spreadArgType) }, + }); + } + else if (checker.isTupleType(spreadArgType)) { + // foo(...[tuple1, tuple2]) + const spreadTypeArguments = checker.getTypeArguments(spreadArgType); + for (const tupleType of spreadTypeArguments) { + const parameterType = signature.getNextParameterType(); + if (parameterType == null) { + continue; + } + const result = (0, util_1.isUnsafeAssignment)(tupleType, parameterType, checker, + // we can't pass the individual tuple members in here as this will most likely be a spread variable + // not a spread array + null); + if (result) { + context.report({ + node: argument, + messageId: 'unsafeTupleSpread', + data: { + receiver: describeType(parameterType), + sender: describeTypeForTuple(tupleType), + }, + }); + } + } + if (spreadArgType.target.combinedFlags & ts.ElementFlags.Variable) { + // the last element was a rest - so all remaining defined arguments can be considered "consumed" + // all remaining arguments should be compared against the rest type (if one exists) + signature.consumeRemainingArguments(); + } + } + else { + // something that's iterable + // handling this will be pretty complex - so we ignore it for now + // TODO - handle generic iterable case + } + break; + } + default: { + const parameterType = signature.getNextParameterType(); + if (parameterType == null) { + continue; + } + const argumentType = services.getTypeAtLocation(argument); + const result = (0, util_1.isUnsafeAssignment)(argumentType, parameterType, checker, argument); + if (result) { + context.report({ + node: argument, + messageId: 'unsafeArgument', + data: { + receiver: describeType(parameterType), + sender: describeType(argumentType), + }, + }); + } + } + } + } + } + return { + 'CallExpression, NewExpression'(node) { + checkUnsafeArguments(node.arguments, node.callee, node); + }, + TaggedTemplateExpression(node) { + checkUnsafeArguments(node.quasi.expressions, node.tag, node); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-argument.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map new file mode 100644 index 00000000..74a583a6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-argument.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-argument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,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CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js new file mode 100644 index 00000000..2298e072 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js @@ -0,0 +1,297 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-assignment', + meta: { + type: 'problem', + docs: { + description: 'Disallow assigning a value with type `any` to variables and properties', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + anyAssignment: 'Unsafe assignment of an {{sender}} value.', + anyAssignmentThis: [ + 'Unsafe assignment of an {{sender}} value. `this` is typed as `any`.', + 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', + ].join('\n'), + unsafeArrayPattern: 'Unsafe array destructuring of an {{sender}} array value.', + unsafeArrayPatternFromTuple: 'Unsafe array destructuring of a tuple element with an {{sender}} value.', + unsafeArraySpread: 'Unsafe spread of an {{sender}} value in an array.', + unsafeAssignment: 'Unsafe assignment of type {{sender}} to a variable of type {{receiver}}.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); + // returns true if the assignment reported + function checkArrayDestructureHelper(receiverNode, senderNode) { + if (receiverNode.type !== utils_1.AST_NODE_TYPES.ArrayPattern) { + return false; + } + const senderTsNode = services.esTreeNodeToTSNodeMap.get(senderNode); + const senderType = services.getTypeAtLocation(senderNode); + return checkArrayDestructure(receiverNode, senderType, senderTsNode); + } + // returns true if the assignment reported + function checkArrayDestructure(receiverNode, senderType, senderNode) { + // any array + // const [x] = ([] as any[]); + if ((0, util_1.isTypeAnyArrayType)(senderType, checker)) { + context.report({ + node: receiverNode, + messageId: 'unsafeArrayPattern', + data: createData(senderType), + }); + return false; + } + if (!checker.isTupleType(senderType)) { + return true; + } + const tupleElements = checker.getTypeArguments(senderType); + // tuple with any + // const [x] = [1 as any]; + let didReport = false; + for (let receiverIndex = 0; receiverIndex < receiverNode.elements.length; receiverIndex += 1) { + const receiverElement = receiverNode.elements[receiverIndex]; + if (!receiverElement) { + continue; + } + if (receiverElement.type === utils_1.AST_NODE_TYPES.RestElement) { + // don't handle rests as they're not a 1:1 assignment + continue; + } + const senderType = tupleElements[receiverIndex]; + if (!senderType) { + continue; + } + // check for the any type first so we can handle [[[x]]] = [any] + if ((0, util_1.isTypeAnyType)(senderType)) { + context.report({ + node: receiverElement, + messageId: 'unsafeArrayPatternFromTuple', + data: createData(senderType), + }); + // we want to report on every invalid element in the tuple + didReport = true; + } + else if (receiverElement.type === utils_1.AST_NODE_TYPES.ArrayPattern) { + didReport = checkArrayDestructure(receiverElement, senderType, senderNode); + } + else if (receiverElement.type === utils_1.AST_NODE_TYPES.ObjectPattern) { + didReport = checkObjectDestructure(receiverElement, senderType, senderNode); + } + } + return didReport; + } + // returns true if the assignment reported + function checkObjectDestructureHelper(receiverNode, senderNode) { + if (receiverNode.type !== utils_1.AST_NODE_TYPES.ObjectPattern) { + return false; + } + const senderTsNode = services.esTreeNodeToTSNodeMap.get(senderNode); + const senderType = services.getTypeAtLocation(senderNode); + return checkObjectDestructure(receiverNode, senderType, senderTsNode); + } + // returns true if the assignment reported + function checkObjectDestructure(receiverNode, senderType, senderNode) { + const properties = new Map(senderType + .getProperties() + .map(property => [ + property.getName(), + checker.getTypeOfSymbolAtLocation(property, senderNode), + ])); + let didReport = false; + for (const receiverProperty of receiverNode.properties) { + if (receiverProperty.type === utils_1.AST_NODE_TYPES.RestElement) { + // don't bother checking rest + continue; + } + let key; + if (!receiverProperty.computed) { + key = + receiverProperty.key.type === utils_1.AST_NODE_TYPES.Identifier + ? receiverProperty.key.name + : String(receiverProperty.key.value); + } + else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.Literal) { + key = String(receiverProperty.key.value); + } + else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.TemplateLiteral && + receiverProperty.key.quasis.length === 1) { + key = String(receiverProperty.key.quasis[0].value.cooked); + } + else { + // can't figure out the name, so skip it + continue; + } + const senderType = properties.get(key); + if (!senderType) { + continue; + } + // check for the any type first so we can handle {x: {y: z}} = {x: any} + if ((0, util_1.isTypeAnyType)(senderType)) { + context.report({ + node: receiverProperty.value, + messageId: 'unsafeArrayPatternFromTuple', + data: createData(senderType), + }); + didReport = true; + } + else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ArrayPattern) { + didReport = checkArrayDestructure(receiverProperty.value, senderType, senderNode); + } + else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ObjectPattern) { + didReport = checkObjectDestructure(receiverProperty.value, senderType, senderNode); + } + } + return didReport; + } + // returns true if the assignment reported + function checkAssignment(receiverNode, senderNode, reportingNode, comparisonType) { + const receiverTsNode = services.esTreeNodeToTSNodeMap.get(receiverNode); + const receiverType = comparisonType === 2 /* ComparisonType.Contextual */ + ? (0, util_1.getContextualType)(checker, receiverTsNode) ?? + services.getTypeAtLocation(receiverNode) + : services.getTypeAtLocation(receiverNode); + const senderType = services.getTypeAtLocation(senderNode); + if ((0, util_1.isTypeAnyType)(senderType)) { + // handle cases when we assign any ==> unknown. + if ((0, util_1.isTypeUnknownType)(receiverType)) { + return false; + } + let messageId = 'anyAssignment'; + if (!isNoImplicitThis) { + // `var foo = this` + const thisExpression = (0, util_1.getThisExpression)(senderNode); + if (thisExpression && + (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { + messageId = 'anyAssignmentThis'; + } + } + context.report({ + node: reportingNode, + messageId, + data: createData(senderType), + }); + return true; + } + if (comparisonType === 0 /* ComparisonType.None */) { + return false; + } + const result = (0, util_1.isUnsafeAssignment)(senderType, receiverType, checker, senderNode); + if (!result) { + return false; + } + const { receiver, sender } = result; + context.report({ + node: reportingNode, + messageId: 'unsafeAssignment', + data: createData(sender, receiver), + }); + return true; + } + function getComparisonType(typeAnnotation) { + return typeAnnotation + ? // if there's a type annotation, we can do a comparison + 1 /* ComparisonType.Basic */ + : // no type annotation means the variable's type will just be inferred, thus equal + 0 /* ComparisonType.None */; + } + function createData(senderType, receiverType) { + if (receiverType) { + return { + receiver: `\`${checker.typeToString(receiverType)}\``, + sender: `\`${checker.typeToString(senderType)}\``, + }; + } + return { + sender: tsutils.isIntrinsicErrorType(senderType) + ? 'error typed' + : '`any`', + }; + } + return { + 'AssignmentExpression[operator = "="], AssignmentPattern'(node) { + let didReport = checkAssignment(node.left, node.right, node, 1 /* ComparisonType.Basic */); + if (!didReport) { + didReport = checkArrayDestructureHelper(node.left, node.right); + } + if (!didReport) { + checkObjectDestructureHelper(node.left, node.right); + } + }, + 'PropertyDefinition[value != null]'(node) { + checkAssignment(node.key, node.value, node, getComparisonType(node.typeAnnotation)); + }, + 'VariableDeclarator[init != null]'(node) { + const init = (0, util_1.nullThrows)(node.init, util_1.NullThrowsReasons.MissingToken(node.type, 'init')); + let didReport = checkAssignment(node.id, init, node, getComparisonType(node.id.typeAnnotation)); + if (!didReport) { + didReport = checkArrayDestructureHelper(node.id, init); + } + if (!didReport) { + checkObjectDestructureHelper(node.id, init); + } + }, + // object pattern props are checked via assignments + ':not(ObjectPattern) > Property'(node) { + if (node.value.type === utils_1.AST_NODE_TYPES.AssignmentPattern || + node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { + // handled by other selector + return; + } + checkAssignment(node.key, node.value, node, 2 /* ComparisonType.Contextual */); + }, + 'ArrayExpression > SpreadElement'(node) { + const restType = services.getTypeAtLocation(node.argument); + if ((0, util_1.isTypeAnyType)(restType) || (0, util_1.isTypeAnyArrayType)(restType, checker)) { + context.report({ + node, + messageId: 'unsafeArraySpread', + data: createData(restType), + }); + } + }, + 'JSXAttribute[value != null]'(node) { + const value = (0, util_1.nullThrows)(node.value, util_1.NullThrowsReasons.MissingToken(node.type, 'value')); + if (value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer || + value.expression.type === utils_1.AST_NODE_TYPES.JSXEmptyExpression) { + return; + } + checkAssignment(node.name, value.expression, value.expression, 2 /* ComparisonType.Contextual */); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-assignment.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map new file mode 100644 index 00000000..14a0be90 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/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C3D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,eAAe,CACb,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,oCAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js new file mode 100644 index 00000000..39e0bd9a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js @@ -0,0 +1,122 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-call', + meta: { + type: 'problem', + docs: { + description: 'Disallow calling a value with type `any`', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unsafeCall: 'Unsafe call of a(n) {{type}} typed value.', + unsafeCallThis: [ + 'Unsafe call of a(n) {{type}} typed value. `this` is typed as {{type}}.', + 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', + ].join('\n'), + unsafeNew: 'Unsafe construction of a(n) {{type}} typed value.', + unsafeTemplateTag: 'Unsafe use of a(n) {{type}} typed template tag.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const compilerOptions = services.program.getCompilerOptions(); + const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); + function checkCall(node, reportingNode, messageId) { + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + if ((0, util_1.isTypeAnyType)(type)) { + if (!isNoImplicitThis) { + // `this()` or `this.foo()` or `this.foo[bar]()` + const thisExpression = (0, util_1.getThisExpression)(node); + if (thisExpression && + (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { + messageId = 'unsafeCallThis'; + } + } + const isErrorType = tsutils.isIntrinsicErrorType(type); + context.report({ + node: reportingNode, + messageId, + data: { + type: isErrorType ? '`error` type' : '`any`', + }, + }); + return; + } + if ((0, util_1.isBuiltinSymbolLike)(services.program, type, 'Function')) { + // this also matches subtypes of `Function`, like `interface Foo extends Function {}`. + // + // For weird TS reasons that I don't understand, these are + // + // safe to construct if: + // - they have at least one call signature _that is not void-returning_, + // - OR they have at least one construct signature. + // + // safe to call (including as template) if: + // - they have at least one call signature + // - OR they have at least one construct signature. + const constructSignatures = type.getConstructSignatures(); + if (constructSignatures.length > 0) { + return; + } + const callSignatures = type.getCallSignatures(); + if (messageId === 'unsafeNew') { + if (callSignatures.some(signature => !tsutils.isIntrinsicVoidType(signature.getReturnType()))) { + return; + } + } + else if (callSignatures.length > 0) { + return; + } + context.report({ + node: reportingNode, + messageId, + data: { + type: '`Function`', + }, + }); + return; + } + } + return { + 'CallExpression > *.callee'(node) { + checkCall(node, node, 'unsafeCall'); + }, + NewExpression(node) { + checkCall(node.callee, node, 'unsafeNew'); + }, + 'TaggedTemplateExpression > *.tag'(node) { + checkCall(node, node, 'unsafeTemplateTag'); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-call.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map new file mode 100644 index 00000000..370993f3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AAExC,kCAOiB;AAQjB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,2CAA2C;YACvD,cAAc,EAAE;gBACd,wEAAwE;gBACxE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,mDAAmD;YAC9D,iBAAiB,EAAE,iDAAiD;SACrE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,gBAAgB,GAAG,OAAO,CAAC,6BAA6B,CAC5D,eAAe,EACf,gBAAgB,CACjB,CAAC;QAEF,SAAS,S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,EAAE,CAAC;oBAC9B,IACE,cAAc,CAAC,IAAI,CACjB,SAAS,CAAC,EAAE,CACV,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,CAC1D,EACD,CAAC;wBACD,OAAO;oBACT,CAAC;gBACH,CAAC;qBAAM,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrC,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,aAAa;oBACnB,SAAS;oBACT,IAAI,EAAE;wBACJ,IAAI,EAAE,YAAY;qBACnB;iBACF,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;QACH,CAAC;QAED,OAAO;YACL,2BAA2B,CACzB,IAAuC;gBAEvC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;YACtC,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;YAC5C,CAAC;YACD,kCAAkC,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js new file mode 100644 index 00000000..8781f538 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-declaration-merging', + meta: { + type: 'problem', + docs: { + description: 'Disallow unsafe declaration merging', + recommended: 'recommended', + requiresTypeChecking: false, + }, + messages: { + unsafeMerging: 'Unsafe declaration merging between classes and interfaces.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function checkUnsafeDeclaration(scope, node, unsafeKind) { + const variable = scope.set.get(node.name); + if (!variable) { + return; + } + const defs = variable.defs; + if (defs.length <= 1) { + return; + } + if (defs.some(def => def.node.type === unsafeKind)) { + context.report({ + node, + messageId: 'unsafeMerging', + }); + } + } + return { + ClassDeclaration(node) { + if (node.id) { + // by default eslint returns the inner class scope for the ClassDeclaration node + // but we want the outer scope within which merged variables will sit + const currentScope = context.sourceCode.getScope(node).upper; + if (currentScope == null) { + return; + } + checkUnsafeDeclaration(currentScope, node.id, utils_1.AST_NODE_TYPES.TSInterfaceDeclaration); + } + }, + TSInterfaceDeclaration(node) { + checkUnsafeDeclaration(context.sourceCode.getScope(node), node.id, utils_1.AST_NODE_TYPES.ClassDeclaration); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-declaration-merging.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map new file mode 100644 index 00000000..bdb81977 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-declaration-merging.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-declaration-merging.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE,aAAa;YAC1B,oB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sBAAc,CAAC,gBAAgB,CAChC,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js new file mode 100644 index 00000000..ded996f4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js @@ -0,0 +1,181 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const shared_1 = require("./enum-utils/shared"); +/** + * @returns Whether the right type is an unsafe comparison against any left type. + */ +function typeViolates(leftTypeParts, rightType) { + const leftEnumValueTypes = new Set(leftTypeParts.map(getEnumValueType)); + return ((leftEnumValueTypes.has(ts.TypeFlags.Number) && isNumberLike(rightType)) || + (leftEnumValueTypes.has(ts.TypeFlags.String) && isStringLike(rightType))); +} +function isNumberLike(type) { + const typeParts = tsutils.intersectionTypeParts(type); + return typeParts.some(typePart => { + return tsutils.isTypeFlagSet(typePart, ts.TypeFlags.Number | ts.TypeFlags.NumberLike); + }); +} +function isStringLike(type) { + const typeParts = tsutils.intersectionTypeParts(type); + return typeParts.some(typePart => { + return tsutils.isTypeFlagSet(typePart, ts.TypeFlags.String | ts.TypeFlags.StringLike); + }); +} +/** + * @returns What type a type's enum value is (number or string), if either. + */ +function getEnumValueType(type) { + return tsutils.isTypeFlagSet(type, ts.TypeFlags.EnumLike) + ? tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLiteral) + ? ts.TypeFlags.Number + : ts.TypeFlags.String + : undefined; +} +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-enum-comparison', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow comparing an enum value with a non-enum value', + recommended: 'recommended', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + mismatchedCase: 'The case statement does not have a shared enum type with the switch predicate.', + mismatchedCondition: 'The two values in this comparison do not have a shared enum type.', + replaceValueWithEnum: 'Replace with an enum value comparison.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const parserServices = (0, util_1.getParserServices)(context); + const typeChecker = parserServices.program.getTypeChecker(); + function isMismatchedComparison(leftType, rightType) { + // Allow comparisons that don't have anything to do with enums: + // + // ```ts + // 1 === 2; + // ``` + const leftEnumTypes = (0, shared_1.getEnumTypes)(typeChecker, leftType); + const rightEnumTypes = new Set((0, shared_1.getEnumTypes)(typeChecker, rightType)); + if (leftEnumTypes.length === 0 && rightEnumTypes.size === 0) { + return false; + } + // Allow comparisons that share an enum type: + // + // ```ts + // Fruit.Apple === Fruit.Banana; + // ``` + for (const leftEnumType of leftEnumTypes) { + if (rightEnumTypes.has(leftEnumType)) { + return false; + } + } + // We need to split the type into the union type parts in order to find + // valid enum comparisons like: + // + // ```ts + // declare const something: Fruit | Vegetable; + // something === Fruit.Apple; + // ``` + const leftTypeParts = tsutils.unionTypeParts(leftType); + const rightTypeParts = tsutils.unionTypeParts(rightType); + // If a type exists in both sides, we consider this comparison safe: + // + // ```ts + // declare const fruit: Fruit.Apple | 0; + // fruit === 0; + // ``` + for (const leftTypePart of leftTypeParts) { + if (rightTypeParts.includes(leftTypePart)) { + return false; + } + } + return (typeViolates(leftTypeParts, rightType) || + typeViolates(rightTypeParts, leftType)); + } + return { + 'BinaryExpression[operator=/^[<>!=]?={0,2}$/]'(node) { + const leftType = parserServices.getTypeAtLocation(node.left); + const rightType = parserServices.getTypeAtLocation(node.right); + if (isMismatchedComparison(leftType, rightType)) { + context.report({ + node, + messageId: 'mismatchedCondition', + suggest: [ + { + messageId: 'replaceValueWithEnum', + fix(fixer) { + // Replace the right side with an enum key if possible: + // + // ```ts + // Fruit.Apple === 'apple'; // Fruit.Apple === Fruit.Apple + // ``` + const leftEnumKey = (0, shared_1.getEnumKeyForLiteral)((0, shared_1.getEnumLiterals)(leftType), (0, util_1.getStaticValue)(node.right)?.value); + if (leftEnumKey) { + return fixer.replaceText(node.right, leftEnumKey); + } + // Replace the left side with an enum key if possible: + // + // ```ts + // declare const fruit: Fruit; + // 'apple' === Fruit.Apple; // Fruit.Apple === Fruit.Apple + // ``` + const rightEnumKey = (0, shared_1.getEnumKeyForLiteral)((0, shared_1.getEnumLiterals)(rightType), (0, util_1.getStaticValue)(node.left)?.value); + if (rightEnumKey) { + return fixer.replaceText(node.left, rightEnumKey); + } + return null; + }, + }, + ], + }); + } + }, + SwitchCase(node) { + // Ignore `default` cases. + if (node.test == null) { + return; + } + const { parent } = node; + const leftType = parserServices.getTypeAtLocation(parent.discriminant); + const rightType = parserServices.getTypeAtLocation(node.test); + if (isMismatchedComparison(leftType, rightType)) { + context.report({ + node, + messageId: 'mismatchedCase', + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-enum-comparison.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map new file mode 100644 index 00000000..75274b89 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-enum-comparison.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-enum-comparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwE;AACxE,gDAI6B;AAE7B;;GAEG;AACH,SAAS,YAAY,CAAC,aAAwB,EAAE,SAAkB;IAChE,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAExE,OAAO,CACL,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC;QACxE,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC,CACzE,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAEtD,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;QAC/B,OAAO,OAAO,CAAC,aAAa,CAC1B,QAAQ,EACR,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAEtD,OAAO,SAAS,CAAC,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AM,QAAQ,GAAG,cAAc,CAAC,iBAAiB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBACvE,MAAM,SAAS,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAE9D,IAAI,sBAAsB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;oBAChD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js new file mode 100644 index 00000000..84c60c03 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-function-type', + meta: { + type: 'problem', + docs: { + description: 'Disallow using the unsafe built-in Function type', + recommended: 'recommended', + }, + fixable: 'code', + messages: { + bannedFunctionType: [ + 'The `Function` type accepts any function-like value.', + 'Prefer explicitly defining any function parameters and return type.', + ].join('\n'), + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function checkBannedTypes(node) { + if (node.type === utils_1.AST_NODE_TYPES.Identifier && + node.name === 'Function' && + (0, util_1.isReferenceToGlobalFunction)('Function', node, context.sourceCode)) { + context.report({ + node, + messageId: 'bannedFunctionType', + }); + } + } + return { + TSClassImplements(node) { + checkBannedTypes(node.expression); + }, + TSInterfaceHeritage(node) { + checkBannedTypes(node.expression); + }, + TSTypeReference(node) { + checkBannedTypes(node.typeName); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-function-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map new file mode 100644 index 00000000..e2c0cea5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-function-type.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-function-type.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAkE;AAElE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,kBAAkB,EAAE;gBAClB,sDAAsD;gBACtD,qEAAqE;aACtE,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,gBAAgB,CAAC,IAAmB;YAC3C,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACvC,IAAI,CAAC,IAAI,KAAK,UAAU;gBACxB,IAAA,kCAA2B,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACjE,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,oBAAoB;iBAChC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js new file mode 100644 index 00000000..7e71fbcc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js @@ -0,0 +1,127 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +function createDataType(type) { + const isErrorType = tsutils.isIntrinsicErrorType(type); + return isErrorType ? '`error` typed' : '`any`'; +} +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-member-access', + meta: { + type: 'problem', + docs: { + description: 'Disallow member access on a value with type `any`', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unsafeComputedMemberAccess: 'Computed name {{property}} resolves to an {{type}} value.', + unsafeMemberExpression: 'Unsafe member access {{property}} on an {{type}} value.', + unsafeThisMemberExpression: [ + 'Unsafe member access {{property}} on an `any` value. `this` is typed as `any`.', + 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', + ].join('\n'), + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const compilerOptions = services.program.getCompilerOptions(); + const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); + const stateCache = new Map(); + function checkMemberExpression(node) { + const cachedState = stateCache.get(node); + if (cachedState) { + return cachedState; + } + if (node.object.type === utils_1.AST_NODE_TYPES.MemberExpression) { + const objectState = checkMemberExpression(node.object); + if (objectState === 1 /* State.Unsafe */) { + // if the object is unsafe, we know this will be unsafe as well + // we don't need to report, as we have already reported on the inner member expr + stateCache.set(node, objectState); + return objectState; + } + } + const type = services.getTypeAtLocation(node.object); + const state = (0, util_1.isTypeAnyType)(type) ? 1 /* State.Unsafe */ : 2 /* State.Safe */; + stateCache.set(node, state); + if (state === 1 /* State.Unsafe */) { + const propertyName = context.sourceCode.getText(node.property); + let messageId = 'unsafeMemberExpression'; + if (!isNoImplicitThis) { + // `this.foo` or `this.foo[bar]` + const thisExpression = (0, util_1.getThisExpression)(node); + if (thisExpression && + (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { + messageId = 'unsafeThisMemberExpression'; + } + } + context.report({ + node: node.property, + messageId, + data: { + type: createDataType(type), + property: node.computed ? `[${propertyName}]` : `.${propertyName}`, + }, + }); + } + return state; + } + return { + // ignore MemberExpressions with ancestors of type `TSClassImplements` or `TSInterfaceHeritage` + 'MemberExpression:not(TSClassImplements MemberExpression, TSInterfaceHeritage MemberExpression)': checkMemberExpression, + 'MemberExpression[computed = true] > *.property'(node) { + if ( + // x[1] + node.type === utils_1.AST_NODE_TYPES.Literal || + // x[1++] x[++x] etc + // FUN FACT - **all** update expressions return type number, regardless of the argument's type, + // because JS engines return NaN if there the argument is not a number. + node.type === utils_1.AST_NODE_TYPES.UpdateExpression) { + // perf optimizations - literals can obviously never be `any` + return; + } + const type = services.getTypeAtLocation(node); + if ((0, util_1.isTypeAnyType)(type)) { + const propertyName = context.sourceCode.getText(node); + context.report({ + node, + messageId: 'unsafeComputedMemberAccess', + data: { + type: createDataType(type), + property: `[${propertyName}]`, + }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-member-access.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map new file mode 100644 index 00000000..b9e698e5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAMiB;AAOjB,SAAS,cAAc,CAAC,IAAa;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EA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BAE9C,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACtD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;4BAC1B,QAAQ,EAAE,IAAI,YAAY,GAAG;yBAC9B;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js new file mode 100644 index 00000000..aa2ad369 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js @@ -0,0 +1,176 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getParentFunctionNode_1 = require("../util/getParentFunctionNode"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-return', + meta: { + type: 'problem', + docs: { + description: 'Disallow returning a value with type `any` from a function', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unsafeReturn: 'Unsafe return of a value of type {{type}}.', + unsafeReturnAssignment: 'Unsafe return of type `{{sender}}` from function with return type `{{receiver}}`.', + unsafeReturnThis: [ + 'Unsafe return of a value of type `{{type}}`. `this` is typed as `any`.', + 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', + ].join('\n'), + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); + function checkReturn(returnNode, reportingNode = returnNode) { + const tsNode = services.esTreeNodeToTSNodeMap.get(returnNode); + const type = checker.getTypeAtLocation(tsNode); + const anyType = (0, util_1.discriminateAnyType)(type, checker, services.program, tsNode); + const functionNode = (0, getParentFunctionNode_1.getParentFunctionNode)(returnNode); + /* istanbul ignore if */ if (!functionNode) { + return; + } + // function has an explicit return type, so ensure it's a safe return + const returnNodeType = (0, util_1.getConstrainedTypeAtLocation)(services, returnNode); + const functionTSNode = services.esTreeNodeToTSNodeMap.get(functionNode); + // function expressions will not have their return type modified based on receiver typing + // so we have to use the contextual typing in these cases, i.e. + // const foo1: () => Set = () => new Set(); + // the return type of the arrow function is Set even though the variable is typed as Set + let functionType = ts.isFunctionExpression(functionTSNode) || + ts.isArrowFunction(functionTSNode) + ? (0, util_1.getContextualType)(checker, functionTSNode) + : services.getTypeAtLocation(functionNode); + if (!functionType) { + functionType = services.getTypeAtLocation(functionNode); + } + const callSignatures = tsutils.getCallSignaturesOfType(functionType); + // If there is an explicit type annotation *and* that type matches the actual + // function return type, we shouldn't complain (it's intentional, even if unsafe) + if (functionTSNode.type) { + for (const signature of callSignatures) { + const signatureReturnType = signature.getReturnType(); + if (returnNodeType === signatureReturnType || + (0, util_1.isTypeFlagSet)(signatureReturnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { + return; + } + if (functionNode.async) { + const awaitedSignatureReturnType = checker.getAwaitedType(signatureReturnType); + const awaitedReturnNodeType = checker.getAwaitedType(returnNodeType); + if (awaitedReturnNodeType === awaitedSignatureReturnType || + (awaitedSignatureReturnType && + (0, util_1.isTypeFlagSet)(awaitedSignatureReturnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown))) { + return; + } + } + } + } + if (anyType !== util_1.AnyType.Safe) { + // Allow cases when the declared return type of the function is either unknown or unknown[] + // and the function is returning any or any[]. + for (const signature of callSignatures) { + const functionReturnType = signature.getReturnType(); + if (anyType === util_1.AnyType.Any && + (0, util_1.isTypeUnknownType)(functionReturnType)) { + return; + } + if (anyType === util_1.AnyType.AnyArray && + (0, util_1.isTypeUnknownArrayType)(functionReturnType, checker)) { + return; + } + const awaitedType = checker.getAwaitedType(functionReturnType); + if (awaitedType && + anyType === util_1.AnyType.PromiseAny && + (0, util_1.isTypeUnknownType)(awaitedType)) { + return; + } + } + if (anyType === util_1.AnyType.PromiseAny && !functionNode.async) { + return; + } + let messageId = 'unsafeReturn'; + const isErrorType = tsutils.isIntrinsicErrorType(returnNodeType); + if (!isNoImplicitThis) { + // `return this` + const thisExpression = (0, util_1.getThisExpression)(returnNode); + if (thisExpression && + (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { + messageId = 'unsafeReturnThis'; + } + } + // If the function return type was not unknown/unknown[], mark usage as unsafeReturn. + return context.report({ + node: reportingNode, + messageId, + data: { + type: isErrorType + ? 'error' + : anyType === util_1.AnyType.Any + ? '`any`' + : anyType === util_1.AnyType.PromiseAny + ? '`Promise`' + : '`any[]`', + }, + }); + } + const signature = functionType.getCallSignatures().at(0); + if (signature) { + const functionReturnType = signature.getReturnType(); + const result = (0, util_1.isUnsafeAssignment)(returnNodeType, functionReturnType, checker, returnNode); + if (!result) { + return; + } + const { receiver, sender } = result; + return context.report({ + node: reportingNode, + messageId: 'unsafeReturnAssignment', + data: { + receiver: checker.typeToString(receiver), + sender: checker.typeToString(sender), + }, + }); + } + } + return { + 'ArrowFunctionExpression > :not(BlockStatement).body': checkReturn, + ReturnStatement(node) { + const argument = node.argument; + if (!argument) { + return; + } + checkReturn(argument, node); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-return.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map new file mode 100644 index 00000000..1ccece73 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAaiB;AACjB,yEAAsE;AAEtE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,4CAA4C;YAC1D,sBAAsB,EACpB,mFAAmF;YACrF,gBAAgB,EAAE;gBAChB,wEAAwE;gBACxE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EA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AAC,CAAC,SAAS;qBAClB;iBACF,CAAC,CAAC;YACL,CAAC;YAED,MAAM,SAAS,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACzD,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,kBAAkB,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;gBACrD,MAAM,MAAM,GAAG,IAAA,yBAAkB,EAC/B,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,UAAU,CACX,CAAC;gBACF,IAAI,CAAC,MAAM,EAAE,CAAC;oBACZ,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;gBACpC,OAAO,OAAO,CAAC,MAAM,CAAC;oBACpB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE;wBACJ,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;wBACxC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC;qBACrC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,qDAAqD,EAAE,WAAW;YAClE,eAAe,CAAC,IAAI;gBAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;gBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,OAAO;gBACT,CAAC;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js new file mode 100644 index 00000000..b5454f9d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js @@ -0,0 +1,117 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-unsafe-type-assertion', + meta: { + type: 'problem', + docs: { + description: 'Disallow type assertions that narrow a type', + requiresTypeChecking: true, + }, + messages: { + unsafeOfAnyTypeAssertion: 'Unsafe cast from {{type}} detected: consider using type guards or a safer cast.', + unsafeToAnyTypeAssertion: 'Unsafe cast to {{type}} detected: consider using a more specific type to ensure safety.', + unsafeTypeAssertion: "Unsafe type assertion: type '{{type}}' is more narrow than the original type.", + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function getAnyTypeName(type) { + return tsutils.isIntrinsicErrorType(type) ? 'error typed' : '`any`'; + } + function isObjectLiteralType(type) { + return (tsutils.isObjectType(type) && + tsutils.isObjectFlagSet(type, ts.ObjectFlags.ObjectLiteral)); + } + function checkExpression(node) { + const expressionType = (0, util_1.getConstrainedTypeAtLocation)(services, node.expression); + const assertedType = (0, util_1.getConstrainedTypeAtLocation)(services, node.typeAnnotation); + if (expressionType === assertedType) { + return; + } + // handle cases when casting unknown ==> any. + if ((0, util_1.isTypeAnyType)(assertedType) && (0, util_1.isTypeUnknownType)(expressionType)) { + context.report({ + node, + messageId: 'unsafeToAnyTypeAssertion', + data: { + type: '`any`', + }, + }); + return; + } + const unsafeExpressionAny = (0, util_1.isUnsafeAssignment)(expressionType, assertedType, checker, node.expression); + if (unsafeExpressionAny) { + context.report({ + node, + messageId: 'unsafeOfAnyTypeAssertion', + data: { + type: getAnyTypeName(unsafeExpressionAny.sender), + }, + }); + return; + } + const unsafeAssertedAny = (0, util_1.isUnsafeAssignment)(assertedType, expressionType, checker, node.typeAnnotation); + if (unsafeAssertedAny) { + context.report({ + node, + messageId: 'unsafeToAnyTypeAssertion', + data: { + type: getAnyTypeName(unsafeAssertedAny.sender), + }, + }); + return; + } + // Use the widened type in case of an object literal so `isTypeAssignableTo()` + // won't fail on excess property check. + const nodeWidenedType = isObjectLiteralType(expressionType) + ? checker.getWidenedType(expressionType) + : expressionType; + const isAssertionSafe = checker.isTypeAssignableTo(nodeWidenedType, assertedType); + if (!isAssertionSafe) { + context.report({ + node, + messageId: 'unsafeTypeAssertion', + data: { + type: checker.typeToString(assertedType), + }, + }); + } + } + return { + 'TSAsExpression, TSTypeAssertion'(node) { + checkExpression(node); + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-type-assertion.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map new file mode 100644 index 00000000..b2ecfe51 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-type-assertion.js","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,CAAC;gBACrB,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,qBAAqB;oBAChC,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;qBACzC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,iCAAiC,CAC/B,IAAwD;gBAExD,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js new file mode 100644 index 00000000..c94807f8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js @@ -0,0 +1,69 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util = __importStar(require("../util")); +exports.default = util.createRule({ + name: 'no-unsafe-unary-minus', + meta: { + type: 'problem', + docs: { + description: 'Require unary negation to take a number', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unaryMinus: 'Argument of unary negation should be assignable to number | bigint but is {{type}} instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + UnaryExpression(node) { + if (node.operator !== '-') { + return; + } + const services = util.getParserServices(context); + const argType = util.getConstrainedTypeAtLocation(services, node.argument); + const checker = services.program.getTypeChecker(); + if (tsutils + .unionTypeParts(argType) + .some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | + ts.TypeFlags.Never | + ts.TypeFlags.BigIntLike | + ts.TypeFlags.NumberLike))) { + context.report({ + node, + messageId: 'unaryMinus', + data: { type: checker.typeToString(argType) }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=no-unsafe-unary-minus.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map new file mode 100644 index 00000000..e5aae17d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unsafe-unary-minus.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-unary-minus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yCAAyC;YACtD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EACR,6FAA6F;SAChG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC;oBAC1B,OAAO;gBACT,CAAC;gBACD,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAM,OAAO,GAAG,IAAI,CAAC,4BAA4B,CAC/C,QAAQ,EACR,IAAI,CAAC,QAAQ,CACd,CAAC;gBACF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAClD,IACE,OAAO;qBACJ,cAAc,CAAC,OAAO,CAAC;qBACvB,IAAI,CACH,IAAI,CAAC,EAAE,CACL,CAAC,OAAO,CAAC,aAAa,CACpB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;oBACd,EAAE,CAAC,SAAS,CAAC,KAAK;oBAClB,EAAE,CAAC,SAAS,CAAC,UAAU;oBACvB,EAAE,CAAC,SAAS,CAAC,UAAU,CAC1B,CACJ,EACH,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;wBACvB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;qBAC9C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js new file mode 100644 index 00000000..64875d11 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js @@ -0,0 +1,65 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-unused-expressions'); +const defaultOptions = [ + { + allowShortCircuit: false, + allowTaggedTemplates: false, + allowTernary: false, + }, +]; +exports.default = (0, util_1.createRule)({ + name: 'no-unused-expressions', + meta: { + type: 'suggestion', + defaultOptions, + docs: { + description: 'Disallow unused expressions', + extendsBaseRule: true, + recommended: 'recommended', + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions, + create(context, [{ allowShortCircuit = false, allowTernary = false }]) { + const rules = baseRule.create(context); + function isValidExpression(node) { + if (allowShortCircuit && node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + return isValidExpression(node.right); + } + if (allowTernary && node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { + return (isValidExpression(node.alternate) && + isValidExpression(node.consequent)); + } + return ((node.type === utils_1.AST_NODE_TYPES.ChainExpression && + node.expression.type === utils_1.AST_NODE_TYPES.CallExpression) || + node.type === utils_1.AST_NODE_TYPES.ImportExpression); + } + return { + ExpressionStatement(node) { + if (node.directive || isValidExpression(node.expression)) { + return; + } + const expressionType = node.expression.type; + if (expressionType === + utils_1.TSESTree.AST_NODE_TYPES.TSInstantiationExpression || + expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSAsExpression || + expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSNonNullExpression || + expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSTypeAssertion) { + rules.ExpressionStatement({ + ...node, + expression: node.expression.expression, + }); + return; + } + rules.ExpressionStatement(node); + }, + }; + }, +}); +//# sourceMappingURL=no-unused-expressions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map new file mode 100644 index 00000000..e642f432 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unused-expressions.js","sourceRoot":"","sources":["../../src/rules/no-unused-expressions.ts"],"names":[],"mappings":";;AAAA,oDAAoE;AAOpE,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,MAAM,cAAc,GAAY;IAC9B;QACE,iBAAiB,EAAE,KAAK;QACxB,oBAAoB,EAAE,KAAK;QAC3B,YAAY,EAAE,KAAK;KACpB;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,6BAA6B;YAC1C,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc;IACd,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,GAAG,KAAK,EAAE,YAAY,GAAG,KAAK,EAAE,CAAC;QACnE,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,iBAAiB,CAAC,IAAmB;YAC5C,IAAI,iBAAiB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE,CAAC;gBACxE,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvC,CAAC;YACD,IAAI,YAAY,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,qBAAqB,EAAE,CAAC;gBACvE,OAAO,CACL,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC;oBACjC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CACnC,CAAC;YACJ,CAAC;YACD,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC3C,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;gBACzD,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAC9C,CAAC;QACJ,CAAC;QAED,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,IAAI,IAAI,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBACzD,OAAO;gBACT,CAAC;gBAED,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;gBAE5C,IACE,cAAc;oBACZ,gBAAQ,CAAC,cAAc,CAAC,yBAAyB;oBACnD,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,cAAc;oBACzD,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,mBAAmB;oBAC9D,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,eAAe,EAC1D,CAAC;oBACD,KAAK,CAAC,mBAAmB,CAAC;wBACxB,GAAG,IAAI;wBACP,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;qBACvC,CAAC,CAAC;oBACH,OAAO;gBACT,CAAC;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js new file mode 100644 index 00000000..1ba60282 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js @@ -0,0 +1,635 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const referenceContainsTypeQuery_1 = require("../util/referenceContainsTypeQuery"); +exports.default = (0, util_1.createRule)({ + name: 'no-unused-vars', + meta: { + type: 'problem', + docs: { + description: 'Disallow unused variables', + extendsBaseRule: true, + recommended: 'recommended', + }, + messages: { + unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.", + usedIgnoredVar: "'{{varName}}' is marked as ignored but is used{{additional}}.", + usedOnlyAsType: "'{{varName}}' is {{action}} but only used as a type{{additional}}.", + }, + schema: [ + { + oneOf: [ + { + type: 'string', + enum: ['all', 'local'], + }, + { + type: 'object', + additionalProperties: false, + properties: { + args: { + type: 'string', + description: 'Whether to check all, some, or no arguments.', + enum: ['all', 'after-used', 'none'], + }, + argsIgnorePattern: { + type: 'string', + description: 'Regular expressions of argument names to not check for usage.', + }, + caughtErrors: { + type: 'string', + description: 'Whether to check catch block arguments.', + enum: ['all', 'none'], + }, + caughtErrorsIgnorePattern: { + type: 'string', + description: 'Regular expressions of catch block argument names to not check for usage.', + }, + destructuredArrayIgnorePattern: { + type: 'string', + description: 'Regular expressions of destructured array variable names to not check for usage.', + }, + ignoreClassWithStaticInitBlock: { + type: 'boolean', + description: 'Whether to ignore classes with at least one static initialization block.', + }, + ignoreRestSiblings: { + type: 'boolean', + description: 'Whether to ignore sibling properties in `...` destructurings.', + }, + reportUsedIgnorePattern: { + type: 'boolean', + description: 'Whether to report variables that match any of the valid ignore pattern options if they have been used.', + }, + vars: { + type: 'string', + description: 'Whether to check all variables or only locally-declared variables.', + enum: ['all', 'local'], + }, + varsIgnorePattern: { + type: 'string', + description: 'Regular expressions of variable names to not check for usage.', + }, + }, + }, + ], + }, + ], + }, + defaultOptions: [{}], + create(context, [firstOption]) { + const MODULE_DECL_CACHE = new Map(); + const options = (() => { + const options = { + args: 'after-used', + caughtErrors: 'all', + ignoreClassWithStaticInitBlock: false, + ignoreRestSiblings: false, + reportUsedIgnorePattern: false, + vars: 'all', + }; + if (typeof firstOption === 'string') { + options.vars = firstOption; + } + else { + options.vars = firstOption.vars ?? options.vars; + options.args = firstOption.args ?? options.args; + options.ignoreRestSiblings = + firstOption.ignoreRestSiblings ?? options.ignoreRestSiblings; + options.caughtErrors = firstOption.caughtErrors ?? options.caughtErrors; + options.ignoreClassWithStaticInitBlock = + firstOption.ignoreClassWithStaticInitBlock ?? + options.ignoreClassWithStaticInitBlock; + options.reportUsedIgnorePattern = + firstOption.reportUsedIgnorePattern ?? + options.reportUsedIgnorePattern; + if (firstOption.varsIgnorePattern) { + options.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern, 'u'); + } + if (firstOption.argsIgnorePattern) { + options.argsIgnorePattern = new RegExp(firstOption.argsIgnorePattern, 'u'); + } + if (firstOption.caughtErrorsIgnorePattern) { + options.caughtErrorsIgnorePattern = new RegExp(firstOption.caughtErrorsIgnorePattern, 'u'); + } + if (firstOption.destructuredArrayIgnorePattern) { + options.destructuredArrayIgnorePattern = new RegExp(firstOption.destructuredArrayIgnorePattern, 'u'); + } + } + return options; + })(); + /** + * Determines what variable type a def is. + * @param def the declaration to check + * @returns a simple name for the types of variables that this rule supports + */ + function defToVariableType(def) { + /* + * This `destructuredArrayIgnorePattern` error report works differently from the catch + * clause and parameter error reports. _Both_ the `varsIgnorePattern` and the + * `destructuredArrayIgnorePattern` will be checked for array destructuring. However, + * for the purposes of the report, the currently defined behavior is to only inform the + * user of the `destructuredArrayIgnorePattern` if it's present (regardless of the fact + * that the `varsIgnorePattern` would also apply). If it's not present, the user will be + * informed of the `varsIgnorePattern`, assuming that's present. + */ + if (options.destructuredArrayIgnorePattern && + def.name.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) { + return 'array-destructure'; + } + switch (def.type) { + case scope_manager_1.DefinitionType.CatchClause: + return 'catch-clause'; + case scope_manager_1.DefinitionType.Parameter: + return 'parameter'; + default: + return 'variable'; + } + } + /** + * Gets a given variable's description and configured ignore pattern + * based on the provided variableType + * @param variableType a simple name for the types of variables that this rule supports + * @returns the given variable's description and + * ignore pattern + */ + function getVariableDescription(variableType) { + switch (variableType) { + case 'array-destructure': + return { + pattern: options.destructuredArrayIgnorePattern?.toString(), + variableDescription: 'elements of array destructuring', + }; + case 'catch-clause': + return { + pattern: options.caughtErrorsIgnorePattern?.toString(), + variableDescription: 'caught errors', + }; + case 'parameter': + return { + pattern: options.argsIgnorePattern?.toString(), + variableDescription: 'args', + }; + case 'variable': + return { + pattern: options.varsIgnorePattern?.toString(), + variableDescription: 'vars', + }; + } + } + /** + * Generates the message data about the variable being defined and unused, + * including the ignore pattern if configured. + * @param unusedVar eslint-scope variable object. + * @returns The message data to be used with this unused variable. + */ + function getDefinedMessageData(unusedVar) { + const def = unusedVar.defs.at(0); + let additionalMessageData = ''; + if (def) { + const { pattern, variableDescription } = getVariableDescription(defToVariableType(def)); + if (pattern && variableDescription) { + additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; + } + } + return { + action: 'defined', + additional: additionalMessageData, + varName: unusedVar.name, + }; + } + /** + * Generate the warning message about the variable being + * assigned and unused, including the ignore pattern if configured. + * @param unusedVar eslint-scope variable object. + * @returns The message data to be used with this unused variable. + */ + function getAssignedMessageData(unusedVar) { + const def = unusedVar.defs.at(0); + let additionalMessageData = ''; + if (def) { + const { pattern, variableDescription } = getVariableDescription(defToVariableType(def)); + if (pattern && variableDescription) { + additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; + } + } + return { + action: 'assigned a value', + additional: additionalMessageData, + varName: unusedVar.name, + }; + } + /** + * Generate the warning message about a variable being used even though + * it is marked as being ignored. + * @param variable eslint-scope variable object + * @param variableType a simple name for the types of variables that this rule supports + * @returns The message data to be used with this used ignored variable. + */ + function getUsedIgnoredMessageData(variable, variableType) { + const { pattern, variableDescription } = getVariableDescription(variableType); + let additionalMessageData = ''; + if (pattern && variableDescription) { + additionalMessageData = `. Used ${variableDescription} must not match ${pattern}`; + } + return { + additional: additionalMessageData, + varName: variable.name, + }; + } + function collectUnusedVariables() { + /** + * Checks whether a node is a sibling of the rest property or not. + * @param node a node to check + * @returns True if the node is a sibling of the rest property, otherwise false. + */ + function hasRestSibling(node) { + return (node.type === utils_1.AST_NODE_TYPES.Property && + node.parent.type === utils_1.AST_NODE_TYPES.ObjectPattern && + node.parent.properties[node.parent.properties.length - 1].type === + utils_1.AST_NODE_TYPES.RestElement); + } + /** + * Determines if a variable has a sibling rest property + * @param variable eslint-scope variable object. + * @returns True if the variable is exported, false if not. + */ + function hasRestSpreadSibling(variable) { + if (options.ignoreRestSiblings) { + const hasRestSiblingDefinition = variable.defs.some(def => hasRestSibling(def.name.parent)); + const hasRestSiblingReference = variable.references.some(ref => hasRestSibling(ref.identifier.parent)); + return hasRestSiblingDefinition || hasRestSiblingReference; + } + return false; + } + /** + * Checks whether the given variable is after the last used parameter. + * @param variable The variable to check. + * @returns `true` if the variable is defined after the last used parameter. + */ + function isAfterLastUsedArg(variable) { + const def = variable.defs[0]; + const params = context.sourceCode.getDeclaredVariables(def.node); + const posteriorParams = params.slice(params.indexOf(variable) + 1); + // If any used parameters occur after this parameter, do not report. + return !posteriorParams.some(v => v.references.length > 0 || v.eslintUsed); + } + const analysisResults = (0, util_1.collectVariables)(context); + const variables = [ + ...Array.from(analysisResults.unusedVariables, variable => ({ + used: false, + variable, + })), + ...Array.from(analysisResults.usedVariables, variable => ({ + used: true, + variable, + })), + ]; + const unusedVariablesReturn = []; + for (const { used, variable } of variables) { + // explicit global variables don't have definitions. + if (variable.defs.length === 0) { + if (!used) { + unusedVariablesReturn.push(variable); + } + continue; + } + const def = variable.defs[0]; + if (variable.scope.type === utils_1.TSESLint.Scope.ScopeType.global && + options.vars === 'local') { + // skip variables in the global scope if configured to + continue; + } + const refUsedInArrayPatterns = variable.references.some(ref => ref.identifier.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern); + // skip elements of array destructuring patterns + if ((def.name.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern || + refUsedInArrayPatterns) && + def.name.type === utils_1.AST_NODE_TYPES.Identifier && + options.destructuredArrayIgnorePattern?.test(def.name.name)) { + if (options.reportUsedIgnorePattern && used) { + context.report({ + node: def.name, + messageId: 'usedIgnoredVar', + data: getUsedIgnoredMessageData(variable, 'array-destructure'), + }); + } + continue; + } + if (def.type === utils_1.TSESLint.Scope.DefinitionType.ClassName) { + const hasStaticBlock = def.node.body.body.some(node => node.type === utils_1.AST_NODE_TYPES.StaticBlock); + if (options.ignoreClassWithStaticInitBlock && hasStaticBlock) { + continue; + } + } + // skip catch variables + if (def.type === utils_1.TSESLint.Scope.DefinitionType.CatchClause) { + if (options.caughtErrors === 'none') { + continue; + } + // skip ignored parameters + if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && + options.caughtErrorsIgnorePattern?.test(def.name.name)) { + if (options.reportUsedIgnorePattern && used) { + context.report({ + node: def.name, + messageId: 'usedIgnoredVar', + data: getUsedIgnoredMessageData(variable, 'catch-clause'), + }); + } + continue; + } + } + else if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { + // if "args" option is "none", skip any parameter + if (options.args === 'none') { + continue; + } + // skip ignored parameters + if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && + options.argsIgnorePattern?.test(def.name.name)) { + if (options.reportUsedIgnorePattern && used) { + context.report({ + node: def.name, + messageId: 'usedIgnoredVar', + data: getUsedIgnoredMessageData(variable, 'parameter'), + }); + } + continue; + } + // if "args" option is "after-used", skip used variables + if (options.args === 'after-used' && + (0, util_1.isFunction)(def.name.parent) && + !isAfterLastUsedArg(variable)) { + continue; + } + } + // skip ignored variables + else if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && + options.varsIgnorePattern?.test(def.name.name)) { + if (options.reportUsedIgnorePattern && + used && + /* enum members are always marked as 'used' by `collectVariables`, but in reality they may be used or + unused. either way, don't complain about their naming. */ + def.type !== utils_1.TSESLint.Scope.DefinitionType.TSEnumMember) { + context.report({ + node: def.name, + messageId: 'usedIgnoredVar', + data: getUsedIgnoredMessageData(variable, 'variable'), + }); + } + continue; + } + if (hasRestSpreadSibling(variable)) { + continue; + } + // in case another rule has run and used the collectUnusedVariables, + // we want to ensure our selectors that marked variables as used are respected + if (variable.eslintUsed) { + continue; + } + if (!used) { + unusedVariablesReturn.push(variable); + } + } + return unusedVariablesReturn; + } + return { + // declaration file handling + [ambientDeclarationSelector(utils_1.AST_NODE_TYPES.Program, true)](node) { + if (!(0, util_1.isDefinitionFile)(context.filename)) { + return; + } + markDeclarationChildAsUsed(node); + }, + // children of a namespace that is a child of a declared namespace are auto-exported + [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock', false)](node) { + markDeclarationChildAsUsed(node); + }, + // declared namespace handling + [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock', false)](node) { + const moduleDecl = (0, util_1.nullThrows)(node.parent.parent, util_1.NullThrowsReasons.MissingParent); + // declared ambient modules with an `export =` statement will only export that one thing + // all other statements are not automatically exported in this case + if (moduleDecl.id.type === utils_1.AST_NODE_TYPES.Literal && + checkModuleDeclForExportEquals(moduleDecl)) { + return; + } + markDeclarationChildAsUsed(node); + }, + // collect + 'Program:exit'(programNode) { + const unusedVars = collectUnusedVariables(); + for (const unusedVar of unusedVars) { + // Report the first declaration. + if (unusedVar.defs.length > 0) { + const usedOnlyAsType = unusedVar.references.some(ref => (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(ref.identifier)); + const isImportUsedOnlyAsType = usedOnlyAsType && + unusedVar.defs.some(def => def.type === scope_manager_1.DefinitionType.ImportBinding); + if (isImportUsedOnlyAsType) { + continue; + } + const writeReferences = unusedVar.references.filter(ref => ref.isWrite() && + ref.from.variableScope === unusedVar.scope.variableScope); + const id = writeReferences.length + ? writeReferences[writeReferences.length - 1].identifier + : unusedVar.identifiers[0]; + const messageId = usedOnlyAsType ? 'usedOnlyAsType' : 'unusedVar'; + const { start } = id.loc; + const idLength = id.name.length; + const loc = { + start, + end: { + column: start.column + idLength, + line: start.line, + }, + }; + context.report({ + loc, + messageId, + data: unusedVar.references.some(ref => ref.isWrite()) + ? getAssignedMessageData(unusedVar) + : getDefinedMessageData(unusedVar), + }); + // If there are no regular declaration, report the first `/*globals*/` comment directive. + } + else if ('eslintExplicitGlobalComments' in unusedVar && + unusedVar.eslintExplicitGlobalComments) { + const directiveComment = unusedVar.eslintExplicitGlobalComments[0]; + context.report({ + loc: (0, util_1.getNameLocationInGlobalDirectiveComment)(context.sourceCode, directiveComment, unusedVar.name), + node: programNode, + messageId: 'unusedVar', + data: getDefinedMessageData(unusedVar), + }); + } + } + }, + }; + function checkModuleDeclForExportEquals(node) { + const cached = MODULE_DECL_CACHE.get(node); + if (cached != null) { + return cached; + } + if (node.body) { + for (const statement of node.body.body) { + if (statement.type === utils_1.AST_NODE_TYPES.TSExportAssignment) { + MODULE_DECL_CACHE.set(node, true); + return true; + } + } + } + MODULE_DECL_CACHE.set(node, false); + return false; + } + function ambientDeclarationSelector(parent, childDeclare) { + return [ + // Types are ambiently exported + `${parent} > :matches(${[ + utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, + utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, + ].join(', ')})`, + // Value things are ambiently exported if they are "declare"d + `${parent} > :matches(${[ + utils_1.AST_NODE_TYPES.ClassDeclaration, + utils_1.AST_NODE_TYPES.TSDeclareFunction, + utils_1.AST_NODE_TYPES.TSEnumDeclaration, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + utils_1.AST_NODE_TYPES.VariableDeclaration, + ].join(', ')})${childDeclare ? '[declare = true]' : ''}`, + ].join(', '); + } + function markDeclarationChildAsUsed(node) { + const identifiers = []; + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSInterfaceDeclaration: + case utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration: + case utils_1.AST_NODE_TYPES.ClassDeclaration: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + case utils_1.AST_NODE_TYPES.TSDeclareFunction: + case utils_1.AST_NODE_TYPES.TSEnumDeclaration: + case utils_1.AST_NODE_TYPES.TSModuleDeclaration: + if (node.id?.type === utils_1.AST_NODE_TYPES.Identifier) { + identifiers.push(node.id); + } + break; + case utils_1.AST_NODE_TYPES.VariableDeclaration: + for (const declaration of node.declarations) { + visitPattern(declaration, pattern => { + identifiers.push(pattern); + }); + } + break; + } + let scope = context.sourceCode.getScope(node); + const shouldUseUpperScope = [ + utils_1.AST_NODE_TYPES.TSDeclareFunction, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + ].includes(node.type); + if (scope.variableScope !== scope) { + scope = scope.variableScope; + } + else if (shouldUseUpperScope && scope.upper) { + scope = scope.upper; + } + for (const id of identifiers) { + const superVar = scope.set.get(id.name); + if (superVar) { + superVar.eslintUsed = true; + } + } + } + function visitPattern(node, cb) { + const visitor = new scope_manager_1.PatternVisitor({}, node, cb); + visitor.visit(node); + } + }, +}); +/* + +###### TODO ###### + +Edge cases that aren't currently handled due to laziness and them being super edgy edge cases + + +--- function params referenced in typeof type refs in the function declaration --- +--- NOTE - TS gets these cases wrong + +function _foo( + arg: number // arg should be unused +): typeof arg { + return 1 as any; +} + +function _bar( + arg: number, // arg should be unused + _arg2: typeof arg, +) {} + + +--- function names referenced in typeof type refs in the function declaration --- +--- NOTE - TS gets these cases right + +function foo( // foo should be unused +): typeof foo { + return 1 as any; +} + +function bar( // bar should be unused + _arg: typeof bar +) {} + + +--- if an interface is merged into a namespace --- +--- NOTE - TS gets these cases wrong + +namespace Test { + interface Foo { // Foo should be unused here + a: string; + } + export namespace Foo { + export type T = 'b'; + } +} +type T = Test.Foo; // Error: Namespace 'Test' has no exported member 'Foo'. + + +namespace Test { + export interface Foo { + a: string; + } + namespace Foo { // Foo should be unused here + export type T = 'b'; + } +} +type T = Test.Foo.T; // Error: Namespace 'Test' has no exported member 'Foo'. + +--- + +These cases are mishandled because the base rule assumes that each variable has one def, but type-value shadowing +creates a variable with two defs + +--- type-only or value-only references to type/value shadowed variables --- +--- NOTE - TS gets these cases wrong + +type T = 1; +const T = 2; // this T should be unused + +type U = T; // this U should be unused +const U = 3; + +const _V = U; + + +--- partially exported type/value shadowed variables --- +--- NOTE - TS gets these cases wrong + +export interface Foo {} +const Foo = 1; // this Foo should be unused + +interface Bar {} // this Bar should be unused +export const Bar = 1; + +*/ +//# sourceMappingURL=no-unused-vars.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map new file mode 100644 index 00000000..d0d1ac0e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-unused-vars.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars.ts"],"names":[],"mappings":";;AAMA,oEAG0C;AAC1C,oDAAoE;AAEpE,kCAQiB;AACjB,mFAAgF;AAuChF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2BAA2B;YACxC,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,2DAA2D;YACtE,cAAc,EACZ,+DAA+D;YACjE,cAAc,EACZ,oEAAoE;SACvE;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EA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ACV,CAAC;YAED,IAAI,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,mBAAmB,GAAG;gBAC1B,sBAAc,CAAC,iBAAiB;gBAChC,sBAAc,CAAC,mBAAmB;aACnC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEtB,IAAI,KAAK,CAAC,aAAa,KAAK,KAAK,EAAE,CAAC;gBAClC,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC;YAC9B,CAAC;iBAAM,IAAI,mBAAmB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;gBAC9C,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACtB,CAAC;YAED,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE,CAAC;gBAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,QAAQ,EAAE,CAAC;oBACb,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;gBAC7B,CAAC;YACH,CAAC;QACH,CAAC;QAED,SAAS,YAAY,CACnB,IAAmB,EACnB,EAAuC;YAEvC,MAAM,OAAO,GAAG,IAAI,8BAAc,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFE"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js new file mode 100644 index 00000000..da69e7fa --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js @@ -0,0 +1,303 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const referenceContainsTypeQuery_1 = require("../util/referenceContainsTypeQuery"); +const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/; +/** + * Parses a given value as options. + */ +function parseOptions(options) { + let functions = true; + let classes = true; + let enums = true; + let variables = true; + let typedefs = true; + let ignoreTypeReferences = true; + let allowNamedExports = false; + if (typeof options === 'string') { + functions = options !== 'nofunc'; + } + else if (typeof options === 'object' && options != null) { + functions = options.functions !== false; + classes = options.classes !== false; + enums = options.enums !== false; + variables = options.variables !== false; + typedefs = options.typedefs !== false; + ignoreTypeReferences = options.ignoreTypeReferences !== false; + allowNamedExports = options.allowNamedExports !== false; + } + return { + allowNamedExports, + classes, + enums, + functions, + ignoreTypeReferences, + typedefs, + variables, + }; +} +/** + * Checks whether or not a given variable is a function declaration. + */ +function isFunction(variable) { + return variable.defs[0].type === scope_manager_1.DefinitionType.FunctionName; +} +/** + * Checks whether or not a given variable is a type declaration. + */ +function isTypedef(variable) { + return variable.defs[0].type === scope_manager_1.DefinitionType.Type; +} +/** + * Checks whether or not a given variable is a enum declaration. + */ +function isOuterEnum(variable, reference) { + return (variable.defs[0].type === scope_manager_1.DefinitionType.TSEnumName && + variable.scope.variableScope !== reference.from.variableScope); +} +/** + * Checks whether or not a given variable is a class declaration in an upper function scope. + */ +function isOuterClass(variable, reference) { + return (variable.defs[0].type === scope_manager_1.DefinitionType.ClassName && + variable.scope.variableScope !== reference.from.variableScope); +} +/** + * Checks whether or not a given variable is a variable declaration in an upper function scope. + */ +function isOuterVariable(variable, reference) { + return (variable.defs[0].type === scope_manager_1.DefinitionType.Variable && + variable.scope.variableScope !== reference.from.variableScope); +} +/** + * Checks whether or not a given reference is a export reference. + */ +function isNamedExports(reference) { + const { identifier } = reference; + return (identifier.parent.type === utils_1.AST_NODE_TYPES.ExportSpecifier && + identifier.parent.local === identifier); +} +/** + * Checks whether or not a given reference is a type reference. + */ +function isTypeReference(reference) { + return (reference.isTypeReference || + (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(reference.identifier)); +} +/** + * Checks whether or not a given location is inside of the range of a given node. + */ +function isInRange(node, location) { + return !!node && node.range[0] <= location && location <= node.range[1]; +} +/** + * Decorators are transpiled such that the decorator is placed after the class declaration + * So it is considered safe + */ +function isClassRefInClassDecorator(variable, reference) { + if (variable.defs[0].type !== scope_manager_1.DefinitionType.ClassName || + variable.defs[0].node.decorators.length === 0) { + return false; + } + for (const deco of variable.defs[0].node.decorators) { + if (reference.identifier.range[0] >= deco.range[0] && + reference.identifier.range[1] <= deco.range[1]) { + return true; + } + } + return false; +} +/** + * Checks whether or not a given reference is inside of the initializers of a given variable. + * + * @returns `true` in the following cases: + * - var a = a + * - var [a = a] = list + * - var {a = a} = obj + * - for (var a in a) {} + * - for (var a of a) {} + */ +function isInInitializer(variable, reference) { + if (variable.scope !== reference.from) { + return false; + } + let node = variable.identifiers[0].parent; + const location = reference.identifier.range[1]; + while (node) { + if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { + if (isInRange(node.init, location)) { + return true; + } + if ((node.parent.parent.type === utils_1.AST_NODE_TYPES.ForInStatement || + node.parent.parent.type === utils_1.AST_NODE_TYPES.ForOfStatement) && + isInRange(node.parent.parent.right, location)) { + return true; + } + break; + } + else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { + if (isInRange(node.right, location)) { + return true; + } + } + else if (SENTINEL_TYPE.test(node.type)) { + break; + } + node = node.parent; + } + return false; +} +exports.default = (0, util_1.createRule)({ + name: 'no-use-before-define', + meta: { + type: 'problem', + docs: { + description: 'Disallow the use of variables before they are defined', + extendsBaseRule: true, + }, + messages: { + noUseBeforeDefine: "'{{name}}' was used before it was defined.", + }, + schema: [ + { + oneOf: [ + { + type: 'string', + enum: ['nofunc'], + }, + { + type: 'object', + additionalProperties: false, + properties: { + allowNamedExports: { + type: 'boolean', + description: 'Whether to ignore named exports.', + }, + classes: { + type: 'boolean', + description: 'Whether to ignore references to class declarations.', + }, + enums: { + type: 'boolean', + description: 'Whether to check references to enums.', + }, + functions: { + type: 'boolean', + description: 'Whether to ignore references to function declarations.', + }, + ignoreTypeReferences: { + type: 'boolean', + description: 'Whether to ignore type references, such as in type annotations and assertions.', + }, + typedefs: { + type: 'boolean', + description: 'Whether to check references to types.', + }, + variables: { + type: 'boolean', + description: 'Whether to ignore references to variables.', + }, + }, + }, + ], + }, + ], + }, + defaultOptions: [ + { + allowNamedExports: false, + classes: true, + enums: true, + functions: true, + ignoreTypeReferences: true, + typedefs: true, + variables: true, + }, + ], + create(context, optionsWithDefault) { + const options = parseOptions(optionsWithDefault[0]); + /** + * Determines whether a given use-before-define case should be reported according to the options. + * @param variable The variable that gets used before being defined + * @param reference The reference to the variable + */ + function isForbidden(variable, reference) { + if (options.ignoreTypeReferences && isTypeReference(reference)) { + return false; + } + if (isFunction(variable)) { + return options.functions; + } + if (isOuterClass(variable, reference)) { + return options.classes; + } + if (isOuterVariable(variable, reference)) { + return options.variables; + } + if (isOuterEnum(variable, reference)) { + return options.enums; + } + if (isTypedef(variable)) { + return options.typedefs; + } + return true; + } + function isDefinedBeforeUse(variable, reference) { + return (variable.identifiers[0].range[1] <= reference.identifier.range[1] && + !(reference.isValueReference && isInInitializer(variable, reference))); + } + /** + * Finds and validates all variables in a given scope. + */ + function findVariablesInScope(scope) { + scope.references.forEach(reference => { + const variable = reference.resolved; + function report() { + context.report({ + node: reference.identifier, + messageId: 'noUseBeforeDefine', + data: { + name: reference.identifier.name, + }, + }); + } + // Skips when the reference is: + // - initializations. + // - referring to an undefined variable. + // - referring to a global environment variable (there're no identifiers). + // - located preceded by the variable (except in initializers). + // - allowed by options. + if (reference.init) { + return; + } + if (!options.allowNamedExports && isNamedExports(reference)) { + if (!variable || !isDefinedBeforeUse(variable, reference)) { + report(); + } + return; + } + if (!variable) { + return; + } + if (variable.identifiers.length === 0 || + isDefinedBeforeUse(variable, reference) || + !isForbidden(variable, reference) || + isClassRefInClassDecorator(variable, reference) || + reference.from.type === utils_1.TSESLint.Scope.ScopeType.functionType) { + return; + } + // Reports. + report(); + }); + scope.childScopes.forEach(findVariablesInScope); + } + return { + Program(node) { + findVariablesInScope(context.sourceCode.getScope(node)); + }, + }; + }, +}); +//# sourceMappingURL=no-use-before-define.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map new file mode 100644 index 00000000..ab49bada --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-use-before-define.js","sourceRoot":"","sources":["../../src/rules/no-use-before-define.ts"],"names":[],"mappings":";;AAEA,oEAAkE;AAClE,oDAAoE;AAEpE,kCAAqC;AACrC,mFAAgF;AAEhF,MAAM,aAAa,GACjB,iIAAiI,CAAC;AAEpI;;GAEG;AACH,SAAS,YAAY,CAAC,OAA+B;IACnD,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,IAAI,oBAAoB,GAAG,IAAI,CAAC;IAChC,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAE9B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,SAAS,GAAG,OAAO,KAAK,QAAQ,CAAC;IACnC,CAAC;SAA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QAAQ,EAAE,SAAS,CAAC;oBACvC,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACjC,0BAA0B,CAAC,QAAQ,EAAE,SAAS,CAAC;oBAC/C,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,EAC7D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,WAAW;gBACX,MAAM,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClD,CAAC;QAED,OAAO;YACL,OAAO,CAAC,IAAI;gBACV,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js new file mode 100644 index 00000000..4166f5e8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js @@ -0,0 +1,58 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-useless-constructor'); +/** + * Check if method with accessibility is not useless + */ +function checkAccessibility(node) { + switch (node.accessibility) { + case 'protected': + case 'private': + return false; + case 'public': + if (node.parent.parent.superClass) { + return false; + } + break; + } + return true; +} +/** + * Check if method is not useless due to typescript parameter properties and decorators + */ +function checkParams(node) { + return !node.value.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty || + param.decorators.length); +} +exports.default = (0, util_1.createRule)({ + name: 'no-useless-constructor', + meta: { + type: 'problem', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Disallow unnecessary constructors', + extendsBaseRule: true, + recommended: 'strict', + }, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema: baseRule.meta.schema, + }, + defaultOptions: [], + create(context) { + const rules = baseRule.create(context); + return { + MethodDefinition(node) { + if (node.value.type === utils_1.AST_NODE_TYPES.FunctionExpression && + checkAccessibility(node) && + checkParams(node)) { + rules.MethodDefinition(node); + } + }, + }; + }, +}); +//# sourceMappingURL=no-useless-constructor.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map new file mode 100644 index 00000000..a5dce1f4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-useless-constructor.js","sourceRoot":"","sources":["../../src/rules/no-useless-constructor.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAO1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,wBAAwB,CAAC,CAAC;AAK7D;;GAEG;AACH,SAAS,kBAAkB,CAAC,IAA+B;IACzD,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC;QAC3B,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ;YACX,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;gBAClC,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM;IACV,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAA+B;IAClD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAC5B,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;QACjD,KAAK,CAAC,UAAU,CAAC,MAAM,CAC1B,CAAC;AACJ,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,QAAQ;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO;YACL,gBAAgB,CAAC,IAAI;gBACnB,IACE,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;oBACrD,kBAAkB,CAAC,IAAI,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,EACjB,CAAC;oBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js new file mode 100644 index 00000000..c369fe5a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js @@ -0,0 +1,71 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +function isEmptyExport(node) { + return (node.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && + node.specifiers.length === 0 && + !node.declaration); +} +const exportOrImportNodeTypes = new Set([ + utils_1.AST_NODE_TYPES.ExportAllDeclaration, + utils_1.AST_NODE_TYPES.ExportDefaultDeclaration, + utils_1.AST_NODE_TYPES.ExportNamedDeclaration, + utils_1.AST_NODE_TYPES.ExportSpecifier, + utils_1.AST_NODE_TYPES.ImportDeclaration, + utils_1.AST_NODE_TYPES.TSExportAssignment, + utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration, +]); +exports.default = (0, util_1.createRule)({ + name: 'no-useless-empty-export', + meta: { + type: 'suggestion', + docs: { + description: "Disallow empty exports that don't change anything in a module file", + }, + fixable: 'code', + hasSuggestions: false, + messages: { + uselessExport: 'Empty export does nothing and can be removed.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + // In a definition file, export {} is necessary to make the module properly + // encapsulated, even when there are other exports + // https://github.com/typescript-eslint/typescript-eslint/issues/4975 + if ((0, util_1.isDefinitionFile)(context.filename)) { + return {}; + } + function checkNode(node) { + if (!Array.isArray(node.body)) { + return; + } + const emptyExports = []; + let foundOtherExport = false; + for (const statement of node.body) { + if (isEmptyExport(statement)) { + emptyExports.push(statement); + } + else if (exportOrImportNodeTypes.has(statement.type)) { + foundOtherExport = true; + } + } + if (foundOtherExport) { + for (const emptyExport of emptyExports) { + context.report({ + node: emptyExport, + messageId: 'uselessExport', + fix: fixer => fixer.remove(emptyExport), + }); + } + } + } + return { + Program: checkNode, + TSModuleDeclaration: checkNode, + }; + }, +}); +//# sourceMappingURL=no-useless-empty-export.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map new file mode 100644 index 00000000..b0e59781 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-useless-empty-export.js","sourceRoot":"","sources":["../../src/rules/no-useless-empty-export.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAuD;AAEvD,SAAS,aAAa,CACpB,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;QACnD,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,IAAI,CAAC,WAAW,CAClB,CAAC;AACJ,CAAC;AAED,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,sBAAc,CAAC,oBAAoB;IACnC,sBAAc,CAAC,wBAAwB;IACvC,sBAAc,CAAC,sBAAsB;IACrC,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,iBAAiB;IAChC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,yBAAyB;CACzC,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;SACvE;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE;YACR,aAAa,EAAE,+CAA+C;SAC/D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,2EAA2E;QAC3E,kDAAkD;QAClD,qEAAqE;QACrE,IAAI,IAAA,uBAAgB,EAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,SAAS,SAAS,CAChB,IAAqD;YAErD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC9B,OAAO;YACT,CAAC;YAED,MAAM,YAAY,GAAsC,EAAE,CAAC;YAC3D,IAAI,gBAAgB,GAAG,KAAK,CAAC;YAE7B,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;gBAClC,IAAI,aAAa,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC7B,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC/B,CAAC;qBAAM,IAAI,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;oBACvD,gBAAgB,GAAG,IAAI,CAAC;gBAC1B,CAAC;YACH,CAAC;YAED,IAAI,gBAAgB,EAAE,CAAC;gBACrB,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;oBACvC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,WAAW;wBACjB,SAAS,EAAE,eAAe;wBAC1B,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;qBACxC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,mBAAmB,EAAE,SAAS;SAC/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js new file mode 100644 index 00000000..7c600701 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'no-var-requires', + meta: { + type: 'problem', + deprecated: true, + docs: { + description: 'Disallow `require` statements except in import statements', + }, + messages: { + noVarReqs: 'Require statement not part of import statement.', + }, + replacedBy: ['@typescript-eslint/no-require-imports'], + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allow: { + type: 'array', + description: 'Patterns of import paths to allow requiring from.', + items: { type: 'string' }, + }, + }, + }, + ], + }, + defaultOptions: [{ allow: [] }], + create(context, options) { + const allowPatterns = options[0].allow.map(pattern => new RegExp(pattern, 'u')); + function isImportPathAllowed(importPath) { + return allowPatterns.some(pattern => importPath.match(pattern)); + } + function isStringOrTemplateLiteral(node) { + return ((node.type === utils_1.AST_NODE_TYPES.Literal && + typeof node.value === 'string') || + node.type === utils_1.AST_NODE_TYPES.TemplateLiteral); + } + return { + 'CallExpression[callee.name="require"]'(node) { + if (node.arguments[0] && isStringOrTemplateLiteral(node.arguments[0])) { + const argValue = (0, util_1.getStaticStringValue)(node.arguments[0]); + if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { + return; + } + } + const parent = node.parent.type === utils_1.AST_NODE_TYPES.ChainExpression + ? node.parent.parent + : node.parent; + if ([ + utils_1.AST_NODE_TYPES.CallExpression, + utils_1.AST_NODE_TYPES.MemberExpression, + utils_1.AST_NODE_TYPES.NewExpression, + utils_1.AST_NODE_TYPES.TSAsExpression, + utils_1.AST_NODE_TYPES.TSTypeAssertion, + utils_1.AST_NODE_TYPES.VariableDeclarator, + ].includes(parent.type)) { + const variable = utils_1.ASTUtils.findVariable(context.sourceCode.getScope(node), 'require'); + if (!variable?.identifiers.length) { + context.report({ + node, + messageId: 'noVarReqs', + }); + } + } + }, + }; + }, +}); +//# sourceMappingURL=no-var-requires.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map new file mode 100644 index 00000000..922d31d3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-var-requires.js","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":";;AAEA,oDAAoE;AAEpE,kCAA2D;AAS3D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;SACzE;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,iDAAiD;SAC7D;QACD,UAAU,EAAE,CAAC,uCAAuC,CAAC;QACrD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC1B;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO;QACrB,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CACxC,OAAO,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CACpC,CAAC;QACF,SAAS,mBAAmB,CAAC,UAAkB;YAC7C,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAClE,CAAC;QAED,SAAS,yBAAyB,CAAC,IAAmB;YACpD,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBACnC,OAAO,IAAI,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;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js new file mode 100644 index 00000000..9a450bfc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const classNames = new Set([ + 'BigInt', + // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum + 'Boolean', + 'Number', + 'Object', + // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum + 'String', + 'Symbol', +]); +exports.default = (0, util_1.createRule)({ + name: 'no-wrapper-object-types', + meta: { + type: 'problem', + docs: { + description: 'Disallow using confusing built-in primitive class wrappers', + recommended: 'recommended', + }, + fixable: 'code', + messages: { + bannedClassType: 'Prefer using the primitive `{{preferred}}` as a type name, rather than the upper-cased `{{typeName}}`.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function checkBannedTypes(node, includeFix) { + const typeName = node.type === utils_1.AST_NODE_TYPES.Identifier && node.name; + if (!typeName || + !classNames.has(typeName) || + !(0, util_1.isReferenceToGlobalFunction)(typeName, node, context.sourceCode)) { + return; + } + const preferred = typeName.toLowerCase(); + context.report({ + node, + messageId: 'bannedClassType', + data: { preferred, typeName }, + fix: includeFix + ? (fixer) => fixer.replaceText(node, preferred) + : undefined, + }); + } + return { + TSClassImplements(node) { + checkBannedTypes(node.expression, false); + }, + TSInterfaceHeritage(node) { + checkBannedTypes(node.expression, false); + }, + TSTypeReference(node) { + checkBannedTypes(node.typeName, true); + }, + }; + }, +}); +//# sourceMappingURL=no-wrapper-object-types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map new file mode 100644 index 00000000..7611c857 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"no-wrapper-object-types.js","sourceRoot":"","sources":["../../src/rules/no-wrapper-object-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAkE;AAElE,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,QAAQ;IACR,6EAA6E;IAC7E,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,6EAA6E;IAC7E,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,eAAe,EACb,wGAAwG;SAC3G;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,gBAAgB,CACvB,IAA+C,EAC/C,UAAmB;YAEnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC;YACtE,IACE,CAAC,QAAQ;gBACT,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC;gBACzB,CAAC,IAAA,kCAA2B,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EAChE,CAAC;gBACD,OAAO;YACT,CAAC;YAED,MAAM,SAAS,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;YAEzC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,iBAAiB;gBAC5B,IAAI,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;gBAC7B,GAAG,EAAE,UAAU;oBACb,CAAC,CAAC,CAAC,KAAK,EAAoB,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC;oBACjE,CAAC,CAAC,SAAS;aACd,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC3C,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC3C,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACxC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js new file mode 100644 index 00000000..5ca0f598 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js @@ -0,0 +1,123 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'non-nullable-type-assertion-style', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce non-null assertions over explicit type casts', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + preferNonNullAssertion: 'Use a ! assertion to more succinctly remove null and undefined from the type.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const getTypesIfNotLoose = (node) => { + const type = services.getTypeAtLocation(node); + if (tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { + return undefined; + } + return tsutils.unionTypeParts(type); + }; + const couldBeNullish = (type) => { + if (type.flags & ts.TypeFlags.TypeParameter) { + const constraint = type.getConstraint(); + return constraint == null || couldBeNullish(constraint); + } + else if (tsutils.isUnionType(type)) { + for (const part of type.types) { + if (couldBeNullish(part)) { + return true; + } + } + return false; + } + return (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0; + }; + const sameTypeWithoutNullish = (assertedTypes, originalTypes) => { + const nonNullishOriginalTypes = originalTypes.filter(type => (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) === 0); + if (nonNullishOriginalTypes.length === originalTypes.length) { + return false; + } + for (const assertedType of assertedTypes) { + if (couldBeNullish(assertedType) || + !nonNullishOriginalTypes.includes(assertedType)) { + return false; + } + } + for (const originalType of nonNullishOriginalTypes) { + if (!assertedTypes.includes(originalType)) { + return false; + } + } + return true; + }; + const isConstAssertion = (node) => { + return (node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference && + node.typeAnnotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + node.typeAnnotation.typeName.name === 'const'); + }; + return { + 'TSAsExpression, TSTypeAssertion'(node) { + if (isConstAssertion(node)) { + return; + } + const originalTypes = getTypesIfNotLoose(node.expression); + if (!originalTypes) { + return; + } + const assertedTypes = getTypesIfNotLoose(node.typeAnnotation); + if (!assertedTypes) { + return; + } + if (sameTypeWithoutNullish(assertedTypes, originalTypes)) { + const expressionSourceCode = context.sourceCode.getText(node.expression); + const higherPrecedenceThanUnary = (0, util_1.getOperatorPrecedence)(services.esTreeNodeToTSNodeMap.get(node.expression).kind, ts.SyntaxKind.Unknown) > util_1.OperatorPrecedence.Unary; + context.report({ + node, + messageId: 'preferNonNullAssertion', + fix(fixer) { + return fixer.replaceText(node, higherPrecedenceThanUnary + ? `${expressionSourceCode}!` + : `(${expressionSourceCode})!`); + }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=non-nullable-type-assertion-style.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map new file mode 100644 index 00000000..bc8d70a2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map @@ -0,0 +1 @@ +{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,mCAAmC;IAC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;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,iCAAiC,CAC/B,IAAwD;gBAExD,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC3B,OAAO;gBACT,CAAC;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACnB,OAAO;gBACT,CAAC;gBAED,MAAM,aAAa,GAAG,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC9D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACnB,OAAO;gBACT,CAAC;gBAED,IAAI,sBAAsB,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC;oBACzD,MAAM,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CACrD,IAAI,CAAC,UAAU,CAChB,CAAC;oBAEF,MAAM,yBAAyB,GAC7B,IAAA,4BAAqB,EACnB,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,EACxD,EAAE,CAAC,UAAU,CAAC,OAAO,CACtB,GAAG,yBAAkB,CAAC,KAAK,CAAC;oBAE/B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,wBAAwB;wBACnC,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,yBAAyB;gCACvB,CAAC,CAAC,GAAG,oBAAoB,GAAG;gCAC5B,CAAC,CAAC,IAAI,oBAAoB,IAAI,CACjC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js new file mode 100644 index 00000000..80bd4d2b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js @@ -0,0 +1,105 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'only-throw-error', + meta: { + type: 'problem', + docs: { + description: 'Disallow throwing non-`Error` values as exceptions', + extendsBaseRule: 'no-throw-literal', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + object: 'Expected an error object to be thrown.', + undef: 'Do not throw undefined.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allow: { + ...util_1.typeOrValueSpecifiersSchema, + description: 'Type specifiers that can be thrown.', + }, + allowThrowingAny: { + type: 'boolean', + description: 'Whether to always allow throwing values typed as `any`.', + }, + allowThrowingUnknown: { + type: 'boolean', + description: 'Whether to always allow throwing values typed as `unknown`.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allow: [], + allowThrowingAny: true, + allowThrowingUnknown: true, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const allow = options.allow; + function checkThrowArgument(node) { + if (node.type === utils_1.AST_NODE_TYPES.AwaitExpression || + node.type === utils_1.AST_NODE_TYPES.YieldExpression) { + return; + } + const type = services.getTypeAtLocation(node); + if ((0, util_1.typeMatchesSomeSpecifier)(type, allow, services.program)) { + return; + } + if (type.flags & ts.TypeFlags.Undefined) { + context.report({ node, messageId: 'undef' }); + return; + } + if (options.allowThrowingAny && (0, util_1.isTypeAnyType)(type)) { + return; + } + if (options.allowThrowingUnknown && (0, util_1.isTypeUnknownType)(type)) { + return; + } + if ((0, util_1.isErrorLike)(services.program, type)) { + return; + } + context.report({ node, messageId: 'object' }); + } + return { + ThrowStatement(node) { + checkThrowArgument(node.argument); + }, + }; + }, +}); +//# sourceMappingURL=only-throw-error.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map new file mode 100644 index 00000000..92a291a2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"only-throw-error.js","sourceRoot":"","sources":["../../src/rules/only-throw-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAIjC,kCAQiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,eAAe,EAAE,kBAAkB;YACnC,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,wCAAwC;YAChD,KAAK,EAAE,yBA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AAC,IAAI,CAAC,EAAE,CAAC;gBACpD,OAAO;YACT,CAAC;YAED,IAAI,OAAO,CAAC,oBAAoB,IAAI,IAAA,wBAAiB,EAAC,IAAI,CAAC,EAAE,CAAC;gBAC5D,OAAO;YACT,CAAC;YAED,IAAI,IAAA,kBAAW,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;gBACxC,OAAO;YACT,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js new file mode 100644 index 00000000..24282cbc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js @@ -0,0 +1,171 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'parameter-properties', + meta: { + type: 'problem', + docs: { + description: 'Require or disallow parameter properties in class constructors', + }, + messages: { + preferClassProperty: 'Property {{parameter}} should be declared as a class property.', + preferParameterProperty: 'Property {{parameter}} should be declared as a parameter property.', + }, + schema: [ + { + type: 'object', + $defs: { + modifier: { + type: 'string', + enum: [ + 'readonly', + 'private', + 'protected', + 'public', + 'private readonly', + 'protected readonly', + 'public readonly', + ], + }, + }, + additionalProperties: false, + properties: { + allow: { + type: 'array', + description: 'Whether to allow certain kinds of properties to be ignored.', + items: { + $ref: '#/items/0/$defs/modifier', + }, + }, + prefer: { + type: 'string', + description: 'Whether to prefer class properties or parameter properties.', + enum: ['class-property', 'parameter-property'], + }, + }, + }, + ], + }, + defaultOptions: [ + { + allow: [], + prefer: 'class-property', + }, + ], + create(context, [{ allow = [], prefer = 'class-property' }]) { + /** + * Gets the modifiers of `node`. + * @param node the node to be inspected. + */ + function getModifiers(node) { + const modifiers = []; + if (node.accessibility) { + modifiers.push(node.accessibility); + } + if (node.readonly) { + modifiers.push('readonly'); + } + return modifiers.filter(Boolean).join(' '); + } + if (prefer === 'class-property') { + return { + TSParameterProperty(node) { + const modifiers = getModifiers(node); + if (!allow.includes(modifiers)) { + // HAS to be an identifier or assignment or TSC will throw + if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && + node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { + return; + } + const name = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier + ? node.parameter.name + : // has to be an Identifier or TSC will throw an error + node.parameter.left.name; + context.report({ + node, + messageId: 'preferClassProperty', + data: { + parameter: name, + }, + }); + } + }, + }; + } + const propertyNodesByNameStack = []; + function getNodesByName(name) { + const propertyNodesByName = propertyNodesByNameStack[propertyNodesByNameStack.length - 1]; + const existing = propertyNodesByName.get(name); + if (existing) { + return existing; + } + const created = {}; + propertyNodesByName.set(name, created); + return created; + } + function typeAnnotationsMatch(classProperty, constructorParameter) { + if (!classProperty.typeAnnotation || + !constructorParameter.typeAnnotation) { + return (classProperty.typeAnnotation === constructorParameter.typeAnnotation); + } + return (context.sourceCode.getText(classProperty.typeAnnotation) === + context.sourceCode.getText(constructorParameter.typeAnnotation)); + } + return { + ':matches(ClassDeclaration, ClassExpression):exit'() { + const propertyNodesByName = (0, util_1.nullThrows)(propertyNodesByNameStack.pop(), 'Stack should exist on class exit'); + for (const [name, nodes] of propertyNodesByName) { + if (nodes.classProperty && + nodes.constructorAssignment && + nodes.constructorParameter && + typeAnnotationsMatch(nodes.classProperty, nodes.constructorParameter)) { + context.report({ + node: nodes.classProperty, + messageId: 'preferParameterProperty', + data: { + parameter: name, + }, + }); + } + } + }, + ClassBody(node) { + for (const element of node.body) { + if (element.type === utils_1.AST_NODE_TYPES.PropertyDefinition && + element.key.type === utils_1.AST_NODE_TYPES.Identifier && + !element.value && + !allow.includes(getModifiers(element))) { + getNodesByName(element.key.name).classProperty = element; + } + } + }, + 'ClassDeclaration, ClassExpression'() { + propertyNodesByNameStack.push(new Map()); + }, + 'MethodDefinition[kind="constructor"]'(node) { + for (const parameter of node.value.params) { + if (parameter.type === utils_1.AST_NODE_TYPES.Identifier) { + getNodesByName(parameter.name).constructorParameter = parameter; + } + } + for (const statement of node.value.body?.body ?? []) { + if (statement.type !== utils_1.AST_NODE_TYPES.ExpressionStatement || + statement.expression.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || + statement.expression.left.type !== + utils_1.AST_NODE_TYPES.MemberExpression || + statement.expression.left.object.type !== + utils_1.AST_NODE_TYPES.ThisExpression || + statement.expression.left.property.type !== + utils_1.AST_NODE_TYPES.Identifier || + statement.expression.right.type !== utils_1.AST_NODE_TYPES.Identifier) { + break; + } + getNodesByName(statement.expression.right.name).constructorAssignment = statement.expression; + } + }, + }; + }, +}); +//# sourceMappingURL=parameter-properties.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map new file mode 100644 index 00000000..cb63387d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parameter-properties.js","sourceRoot":"","sources":["../../src/rules/parameter-properties.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAiD;AAsBjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf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,SAAS,CAAC,UAAU,CAAC;gBACjD,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js new file mode 100644 index 00000000..3702fd25 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js @@ -0,0 +1,73 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-as-const', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce the use of `as const` over literal type', + recommended: 'recommended', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + preferConstAssertion: 'Expected a `const` instead of a literal type assertion.', + variableConstAssertion: 'Expected a `const` assertion instead of a literal type annotation.', + variableSuggest: 'You should use `as const` instead of type annotation.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function compareTypes(valueNode, typeNode, canFix) { + if (valueNode.type === utils_1.AST_NODE_TYPES.Literal && + typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && + typeNode.literal.type === utils_1.AST_NODE_TYPES.Literal && + valueNode.raw === typeNode.literal.raw) { + if (canFix) { + context.report({ + node: typeNode, + messageId: 'preferConstAssertion', + fix: fixer => fixer.replaceText(typeNode, 'const'), + }); + } + else { + context.report({ + node: typeNode, + messageId: 'variableConstAssertion', + suggest: [ + { + messageId: 'variableSuggest', + fix: (fixer) => [ + fixer.remove(typeNode.parent), + fixer.insertTextAfter(valueNode, ' as const'), + ], + }, + ], + }); + } + } + } + return { + PropertyDefinition(node) { + if (node.value && node.typeAnnotation) { + compareTypes(node.value, node.typeAnnotation.typeAnnotation, false); + } + }, + TSAsExpression(node) { + compareTypes(node.expression, node.typeAnnotation, true); + }, + TSTypeAssertion(node) { + compareTypes(node.expression, node.typeAnnotation, true); + }, + VariableDeclarator(node) { + if (node.init && node.id.typeAnnotation) { + compareTypes(node.init, node.id.typeAnnotation.typeAnnotation, false); + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-as-const.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map new file mode 100644 index 00000000..ccbe588e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-as-const.js","sourceRoot":"","sources":["../../src/rules/prefer-as-const.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,oBAAoB,EAClB,yDAAyD;YAC3D,sBAAsB,EACpB,oEAAoE;YACtE,eAAe,EAAE,uDAAuD;SACzE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,YAAY,CACnB,SAA8B,EAC9B,QAA2B,EAC3B,MAAe;YAEf,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBACzC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa;gBAC9C,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBAChD,SAAS,CAAC,GAAG,KAAK,QAAQ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ACxC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js new file mode 100644 index 00000000..7cc5defc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js @@ -0,0 +1,205 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); +const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('prefer-destructuring'); +const destructuringTypeConfig = { + type: 'object', + additionalProperties: false, + properties: { + array: { + type: 'boolean', + }, + object: { + type: 'boolean', + }, + }, +}; +const schema = [ + { + oneOf: [ + { + type: 'object', + additionalProperties: false, + properties: { + AssignmentExpression: destructuringTypeConfig, + VariableDeclarator: destructuringTypeConfig, + }, + }, + destructuringTypeConfig, + ], + }, + { + type: 'object', + properties: { + enforceForDeclarationWithTypeAnnotation: { + type: 'boolean', + description: 'Whether to enforce destructuring on variable declarations with type annotations.', + }, + enforceForRenamedProperties: { + type: 'boolean', + description: 'Whether to enforce destructuring that use a different variable name than the property name.', + }, + }, + }, +]; +exports.default = (0, util_1.createRule)({ + name: 'prefer-destructuring', + meta: { + type: 'suggestion', + // defaultOptions, -- base rule does not use defaultOptions + docs: { + description: 'Require destructuring from arrays and/or objects', + extendsBaseRule: true, + requiresTypeChecking: true, + }, + fixable: baseRule.meta.fixable, + hasSuggestions: baseRule.meta.hasSuggestions, + messages: baseRule.meta.messages, + schema, + }, + defaultOptions: [ + { + AssignmentExpression: { + array: true, + object: true, + }, + VariableDeclarator: { + array: true, + object: true, + }, + }, + {}, + ], + create(context, [enabledTypes, options]) { + const { enforceForDeclarationWithTypeAnnotation = false, enforceForRenamedProperties = false, } = options; + const { esTreeNodeToTSNodeMap, program } = (0, util_1.getParserServices)(context); + const typeChecker = program.getTypeChecker(); + const baseRules = baseRule.create(context); + let baseRulesWithoutFixCache = null; + return { + AssignmentExpression(node) { + if (node.operator !== '=') { + return; + } + performCheck(node.left, node.right, node); + }, + VariableDeclarator(node) { + performCheck(node.id, node.init, node); + }, + }; + function performCheck(leftNode, rightNode, reportNode) { + const rules = leftNode.type === utils_1.AST_NODE_TYPES.Identifier && + leftNode.typeAnnotation === undefined + ? baseRules + : baseRulesWithoutFix(); + if ((leftNode.type === utils_1.AST_NODE_TYPES.ArrayPattern || + leftNode.type === utils_1.AST_NODE_TYPES.Identifier || + leftNode.type === utils_1.AST_NODE_TYPES.ObjectPattern) && + leftNode.typeAnnotation !== undefined && + !enforceForDeclarationWithTypeAnnotation) { + return; + } + if (rightNode != null && + isArrayLiteralIntegerIndexAccess(rightNode) && + rightNode.object.type !== utils_1.AST_NODE_TYPES.Super) { + const tsObj = esTreeNodeToTSNodeMap.get(rightNode.object); + const objType = typeChecker.getTypeAtLocation(tsObj); + if (!isTypeAnyOrIterableType(objType, typeChecker)) { + if (!enforceForRenamedProperties || + !getNormalizedEnabledType(reportNode.type, 'object')) { + return; + } + context.report({ + node: reportNode, + messageId: 'preferDestructuring', + data: { type: 'object' }, + }); + return; + } + } + if (reportNode.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { + rules.AssignmentExpression(reportNode); + } + else { + rules.VariableDeclarator(reportNode); + } + } + function getNormalizedEnabledType(nodeType, destructuringType) { + if ('object' in enabledTypes || 'array' in enabledTypes) { + return enabledTypes[destructuringType]; + } + return enabledTypes[nodeType][destructuringType]; + } + function baseRulesWithoutFix() { + baseRulesWithoutFixCache ??= baseRule.create(noFixContext(context)); + return baseRulesWithoutFixCache; + } + }, +}); +function noFixContext(context) { + const customContext = { + report: (descriptor) => { + context.report({ + ...descriptor, + fix: undefined, + }); + }, + }; + // we can't directly proxy `context` because its `report` property is non-configurable + // and non-writable. So we proxy `customContext` and redirect all + // property access to the original context except for `report` + return new Proxy(customContext, { + get(target, path, receiver) { + if (path !== 'report') { + return Reflect.get(context, path, receiver); + } + return Reflect.get(target, path, receiver); + }, + }); +} +function isTypeAnyOrIterableType(type, typeChecker) { + if ((0, util_1.isTypeAnyType)(type)) { + return true; + } + if (!type.isUnion()) { + const iterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'iterator', typeChecker); + return iterator !== undefined; + } + return type.types.every(t => isTypeAnyOrIterableType(t, typeChecker)); +} +function isArrayLiteralIntegerIndexAccess(node) { + if (node.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return false; + } + if (node.property.type !== utils_1.AST_NODE_TYPES.Literal) { + return false; + } + return Number.isInteger(node.property.value); +} +//# sourceMappingURL=prefer-destructuring.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map new file mode 100644 index 00000000..26c378ea --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,MAAM,GAA2B;IACrC;QACE,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE,uBAAuB;oBAC7C,kBAAkB,EAAE,uBAAuB;iBAC5C;aACF;YACD,uBAAuB;SACxB;KACF;IACD;QACE,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,uCAAuC,EAAE;gBACvC,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,kFAAkF;aACrF;YACD,2BAA2B,EAAE;gBAC3B,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,6FAA6F;aAChG;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D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EAAC,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,OAAO,CAAC,gCAAgC,CACvD,IAAI,EACJ,UAAU,EACV,WAAW,CACZ,CAAC;QACF,OAAO,QAAQ,KAAK,SAAS,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,gCAAgC,CACvC,IAAyB;IAEzB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js new file mode 100644 index 00000000..39f8b7e2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js @@ -0,0 +1,63 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-enum-initializers', + meta: { + type: 'suggestion', + docs: { + description: 'Require each enum member value to be explicitly initialized', + }, + hasSuggestions: true, + messages: { + defineInitializer: "The value of the member '{{ name }}' should be explicitly defined.", + defineInitializerSuggestion: 'Can be fixed to {{ name }} = {{ suggested }}', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function TSEnumDeclaration(node) { + const { members } = node.body; + members.forEach((member, index) => { + if (member.initializer == null) { + const name = context.sourceCode.getText(member); + context.report({ + node: member, + messageId: 'defineInitializer', + data: { + name, + }, + suggest: [ + { + messageId: 'defineInitializerSuggestion', + data: { name, suggested: index }, + fix: (fixer) => { + return fixer.replaceText(member, `${name} = ${index}`); + }, + }, + { + messageId: 'defineInitializerSuggestion', + data: { name, suggested: index + 1 }, + fix: (fixer) => { + return fixer.replaceText(member, `${name} = ${index + 1}`); + }, + }, + { + messageId: 'defineInitializerSuggestion', + data: { name, suggested: `'${name}'` }, + fix: (fixer) => { + return fixer.replaceText(member, `${name} = '${name}'`); + }, + }, + ], + }); + } + }); + } + return { + TSEnumDeclaration, + }; + }, +}); +//# sourceMappingURL=prefer-enum-initializers.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map new file mode 100644 index 00000000..010631a0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-enum-initializers.js","sourceRoot":"","sources":["../../src/rules/prefer-enum-initializers.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAIrC,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;SAChE;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,oEAAoE;YACtE,2BAA2B,EACzB,8CAA8C;SACjD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAA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,CAAC;gCAC1D,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB;SAClB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js new file mode 100644 index 00000000..f61d2997 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js @@ -0,0 +1,241 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-find', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + preferFind: 'Prefer .find(...) instead of .filter(...)[0].', + preferFindSuggestion: 'Use .find(...) instead of .filter(...)[0].', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const globalScope = context.sourceCode.getScope(context.sourceCode.ast); + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function parseArrayFilterExpressions(expression) { + if (expression.type === utils_1.AST_NODE_TYPES.SequenceExpression) { + // Only the last expression in (a, b, [1, 2, 3].filter(condition))[0] matters + const lastExpression = (0, util_1.nullThrows)(expression.expressions.at(-1), 'Expected to have more than zero expressions in a sequence expression'); + return parseArrayFilterExpressions(lastExpression); + } + if (expression.type === utils_1.AST_NODE_TYPES.ChainExpression) { + return parseArrayFilterExpressions(expression.expression); + } + // This is the only reason we're returning a list rather than a single value. + if (expression.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { + // Both branches of the ternary _must_ return results. + const consequentResult = parseArrayFilterExpressions(expression.consequent); + if (consequentResult.length === 0) { + return []; + } + const alternateResult = parseArrayFilterExpressions(expression.alternate); + if (alternateResult.length === 0) { + return []; + } + // Accumulate the results from both sides and pass up the chain. + return [...consequentResult, ...alternateResult]; + } + // Check if it looks like <>(...), but not <>?.(...) + if (expression.type === utils_1.AST_NODE_TYPES.CallExpression && + !expression.optional) { + const callee = expression.callee; + // Check if it looks like <>.filter(...) or <>['filter'](...), + // or the optional chaining variants. + if (callee.type === utils_1.AST_NODE_TYPES.MemberExpression) { + const isBracketSyntaxForFilter = callee.computed; + if ((0, util_1.isStaticMemberAccessOfValue)(callee, context, 'filter')) { + const filterNode = callee.property; + const filteredObjectType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); + // As long as the object is a (possibly nullable) array, + // this is an Array.prototype.filter expression. + if (isArrayish(filteredObjectType)) { + return [ + { + filterNode, + isBracketSyntaxForFilter, + }, + ]; + } + } + } + } + // not a filter expression. + return []; + } + /** + * Tells whether the type is a possibly nullable array/tuple or union thereof. + */ + function isArrayish(type) { + let isAtLeastOneArrayishComponent = false; + for (const unionPart of tsutils.unionTypeParts(type)) { + if (tsutils.isIntrinsicNullType(unionPart) || + tsutils.isIntrinsicUndefinedType(unionPart)) { + continue; + } + // apparently checker.isArrayType(T[] & S[]) => false. + // so we need to check the intersection parts individually. + const isArrayOrIntersectionThereof = tsutils + .intersectionTypeParts(unionPart) + .every(intersectionPart => checker.isArrayType(intersectionPart) || + checker.isTupleType(intersectionPart)); + if (!isArrayOrIntersectionThereof) { + // There is a non-array, non-nullish type component, + // so it's not an array. + return false; + } + isAtLeastOneArrayishComponent = true; + } + return isAtLeastOneArrayishComponent; + } + function getObjectIfArrayAtZeroExpression(node) { + // .at() should take exactly one argument. + if (node.arguments.length !== 1) { + return undefined; + } + const callee = node.callee; + if (callee.type === utils_1.AST_NODE_TYPES.MemberExpression && + !callee.optional && + (0, util_1.isStaticMemberAccessOfValue)(callee, context, 'at')) { + const atArgument = (0, util_1.getStaticValue)(node.arguments[0], globalScope); + if (atArgument != null && isTreatedAsZeroByArrayAt(atArgument.value)) { + return callee.object; + } + } + return undefined; + } + /** + * Implements the algorithm for array indexing by `.at()` method. + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#parameters + */ + function isTreatedAsZeroByArrayAt(value) { + // This would cause the number constructor coercion to throw. Other static + // values are safe. + if (typeof value === 'symbol') { + return false; + } + const asNumber = Number(value); + if (isNaN(asNumber)) { + return true; + } + return Math.trunc(asNumber) === 0; + } + function isMemberAccessOfZero(node) { + const property = (0, util_1.getStaticValue)(node.property, globalScope); + // Check if it looks like <>[0] or <>['0'], but not <>?.[0] + return (!node.optional && + property != null && + isTreatedAsZeroByMemberAccess(property.value)); + } + /** + * Implements the algorithm for array indexing by member operator. + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#array_indices + */ + function isTreatedAsZeroByMemberAccess(value) { + return String(value) === '0'; + } + function generateFixToRemoveArrayElementAccess(fixer, arrayNode, wholeExpressionBeingFlagged) { + const tokenToStartDeletingFrom = (0, util_1.nullThrows)( + // The next `.` or `[` is what we're looking for. + // think of (...).at(0) or (...)[0] or even (...)["at"](0). + context.sourceCode.getTokenAfter(arrayNode, token => token.value === '.' || token.value === '['), 'Expected to find a member access token!'); + return fixer.removeRange([ + tokenToStartDeletingFrom.range[0], + wholeExpressionBeingFlagged.range[1], + ]); + } + function generateFixToReplaceFilterWithFind(fixer, filterExpression) { + return fixer.replaceText(filterExpression.filterNode, filterExpression.isBracketSyntaxForFilter ? '"find"' : 'find'); + } + return { + // This query will be used to find things like `filteredResults.at(0)`. + CallExpression(node) { + const object = getObjectIfArrayAtZeroExpression(node); + if (object) { + const filterExpressions = parseArrayFilterExpressions(object); + if (filterExpressions.length !== 0) { + context.report({ + node, + messageId: 'preferFind', + suggest: [ + { + messageId: 'preferFindSuggestion', + fix: (fixer) => { + return [ + ...filterExpressions.map(filterExpression => generateFixToReplaceFilterWithFind(fixer, filterExpression)), + // Get rid of the .at(0) or ['at'](0). + generateFixToRemoveArrayElementAccess(fixer, object, node), + ]; + }, + }, + ], + }); + } + } + }, + // This query will be used to find things like `filteredResults[0]`. + // + // Note: we're always looking for array member access to be "computed", + // i.e. `filteredResults[0]`, since `filteredResults.0` isn't a thing. + 'MemberExpression[computed=true]'(node) { + if (isMemberAccessOfZero(node)) { + const object = node.object; + const filterExpressions = parseArrayFilterExpressions(object); + if (filterExpressions.length !== 0) { + context.report({ + node, + messageId: 'preferFind', + suggest: [ + { + messageId: 'preferFindSuggestion', + fix: (fixer) => { + return [ + ...filterExpressions.map(filterExpression => generateFixToReplaceFilterWithFind(fixer, filterExpression)), + // Get rid of the [0]. + generateFixToRemoveArrayElementAccess(fixer, object, node), + ]; + }, + }, + ], + }); + } + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-find.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map new file mode 100644 index 00000000..717fe788 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-find.js","sourceRoot":"","sources":["../../src/rules/prefer-find.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0HAA0H;YAC5H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,UAAU,EAAE,+CAA+C;YAC3D,oBAAoB,EAAE,4CAA4C;SACnE;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAOlD,SAAS,2BAA2B,CAClC,UAA+B;YAE/B,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAAE,CAAC;gBAC1D,6EAA6E;gBAC7E,MAAM,cAAc,GAAG,IAAA,iBAAU,EAC/B,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAC7B,sEAAsE,CACvE,CAAC;gBACF,OAAO,2BAA2B,CAAC,cAAc,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,UAAU,CAAC,IAAI,KAA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C;YACH,CAAC;YAED,oEAAoE;YACpE,EAAE;YACF,uEAAuE;YACvE,sEAAsE;YACtE,iCAAiC,CAC/B,IAA2C;gBAE3C,IAAI,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAC3B,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC;oBAC9D,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACnC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,YAAY;4BACvB,OAAO,EAAE;gCACP;oCACE,SAAS,EAAE,sBAAsB;oCACjC,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE;wCACjC,OAAO;4CACL,GAAG,iBAAiB,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAC1C,kCAAkC,CAChC,KAAK,EACL,gBAAgB,CACjB,CACF;4CACD,sBAAsB;4CACtB,qCAAqC,CACnC,KAAK,EACL,MAAM,EACN,IAAI,CACL;yCACF,CAAC;oCACJ,CAAC;iCACF;6BACF;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js new file mode 100644 index 00000000..00b92a04 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js @@ -0,0 +1,116 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-for-of', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce the use of `for-of` loop over the standard `for` loop where possible', + recommended: 'stylistic', + }, + messages: { + preferForOf: 'Expected a `for-of` loop instead of a `for` loop with this simple iteration.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + function isSingleVariableDeclaration(node) { + return (node?.type === utils_1.AST_NODE_TYPES.VariableDeclaration && + node.kind !== 'const' && + node.declarations.length === 1); + } + function isLiteral(node, value) { + return node.type === utils_1.AST_NODE_TYPES.Literal && node.value === value; + } + function isZeroInitialized(node) { + return node.init != null && isLiteral(node.init, 0); + } + function isMatchingIdentifier(node, name) { + return node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === name; + } + function isLessThanLengthExpression(node, name) { + if (node?.type === utils_1.AST_NODE_TYPES.BinaryExpression && + node.operator === '<' && + isMatchingIdentifier(node.left, name) && + node.right.type === utils_1.AST_NODE_TYPES.MemberExpression && + isMatchingIdentifier(node.right.property, 'length')) { + return node.right.object; + } + return null; + } + function isIncrement(node, name) { + if (!node) { + return false; + } + switch (node.type) { + case utils_1.AST_NODE_TYPES.UpdateExpression: + // x++ or ++x + return (node.operator === '++' && isMatchingIdentifier(node.argument, name)); + case utils_1.AST_NODE_TYPES.AssignmentExpression: + if (isMatchingIdentifier(node.left, name)) { + if (node.operator === '+=') { + // x += 1 + return isLiteral(node.right, 1); + } + else if (node.operator === '=') { + // x = x + 1 or x = 1 + x + const expr = node.right; + return (expr.type === utils_1.AST_NODE_TYPES.BinaryExpression && + expr.operator === '+' && + ((isMatchingIdentifier(expr.left, name) && + isLiteral(expr.right, 1)) || + (isLiteral(expr.left, 1) && + isMatchingIdentifier(expr.right, name)))); + } + } + } + return false; + } + function contains(outer, inner) { + return (outer.range[0] <= inner.range[0] && outer.range[1] >= inner.range[1]); + } + function isIndexOnlyUsedWithArray(body, indexVar, arrayExpression) { + const arrayText = context.sourceCode.getText(arrayExpression); + return indexVar.references.every(reference => { + const id = reference.identifier; + const node = id.parent; + return (!contains(body, id) || + (node.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.object.type !== utils_1.AST_NODE_TYPES.ThisExpression && + node.property === id && + context.sourceCode.getText(node.object) === arrayText && + !(0, util_1.isAssignee)(node))); + }); + } + return { + 'ForStatement:exit'(node) { + if (!isSingleVariableDeclaration(node.init)) { + return; + } + const declarator = node.init.declarations[0]; + if (!declarator || + !isZeroInitialized(declarator) || + declarator.id.type !== utils_1.AST_NODE_TYPES.Identifier) { + return; + } + const indexName = declarator.id.name; + const arrayExpression = isLessThanLengthExpression(node.test, indexName); + if (!arrayExpression) { + return; + } + const [indexVar] = context.sourceCode.getDeclaredVariables(node.init); + if (isIncrement(node.update, indexName) && + isIndexOnlyUsedWithArray(node.body, indexVar, arrayExpression)) { + context.report({ + node, + messageId: 'preferForOf', + }); + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-for-of.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map new file mode 100644 index 00000000..cd02187d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAiD;AAEjD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,2BAA2B,CAClC,IAA0B;YAE1B,OAAO,CACL,IAAI,EAAE,IAAI,KAA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AC;oBACrB,OAAO;gBACT,CAAC;gBAED,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtE,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js new file mode 100644 index 00000000..401e9c0f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js @@ -0,0 +1,187 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.phrases = void 0; +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.phrases = { + [utils_1.AST_NODE_TYPES.TSInterfaceDeclaration]: 'Interface', + [utils_1.AST_NODE_TYPES.TSTypeLiteral]: 'Type literal', +}; +exports.default = (0, util_1.createRule)({ + name: 'prefer-function-type', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce using function types instead of interfaces with call signatures', + recommended: 'stylistic', + }, + fixable: 'code', + messages: { + functionTypeOverCallableType: '{{ literalOrInterface }} only has a call signature, you should use a function type instead.', + unexpectedThisOnFunctionOnlyInterface: "`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `(this: Self, ...) => Self` instead?", + }, + schema: [], + }, + defaultOptions: [], + create(context) { + /** + * Checks if there the interface has exactly one supertype that isn't named 'Function' + * @param node The node being checked + */ + function hasOneSupertype(node) { + if (node.extends.length === 0) { + return false; + } + if (node.extends.length !== 1) { + return true; + } + const expr = node.extends[0].expression; + return (expr.type !== utils_1.AST_NODE_TYPES.Identifier || expr.name !== 'Function'); + } + /** + * @param parent The parent of the call signature causing the diagnostic + */ + function shouldWrapSuggestion(parent) { + if (!parent) { + return false; + } + switch (parent.type) { + case utils_1.AST_NODE_TYPES.TSUnionType: + case utils_1.AST_NODE_TYPES.TSIntersectionType: + case utils_1.AST_NODE_TYPES.TSArrayType: + return true; + default: + return false; + } + } + /** + * @param member The TypeElement being checked + * @param node The parent of member being checked + */ + function checkMember(member, node, tsThisTypes = null) { + if ((member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration || + member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration) && + member.returnType !== undefined) { + if (tsThisTypes?.length && + node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { + // the message can be confusing if we don't point directly to the `this` node instead of the whole member + // and in favour of generating at most one error we'll only report the first occurrence of `this` if there are multiple + context.report({ + node: tsThisTypes[0], + messageId: 'unexpectedThisOnFunctionOnlyInterface', + data: { + interfaceName: node.id.name, + }, + }); + return; + } + const fixable = node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration; + const fix = fixable + ? null + : (fixer) => { + const fixes = []; + const start = member.range[0]; + // https://github.com/microsoft/TypeScript/pull/56908 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const colonPos = member.returnType.range[0] - start; + const text = context.sourceCode + .getText() + .slice(start, member.range[1]); + const comments = [ + ...context.sourceCode.getCommentsBefore(member), + ...context.sourceCode.getCommentsAfter(member), + ]; + let suggestion = `${text.slice(0, colonPos)} =>${text.slice(colonPos + 1)}`; + const lastChar = suggestion.endsWith(';') ? ';' : ''; + if (lastChar) { + suggestion = suggestion.slice(0, -1); + } + if (shouldWrapSuggestion(node.parent)) { + suggestion = `(${suggestion})`; + } + if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { + if (node.typeParameters !== undefined) { + suggestion = `type ${context.sourceCode + .getText() + .slice(node.id.range[0], node.typeParameters.range[1])} = ${suggestion}${lastChar}`; + } + else { + suggestion = `type ${node.id.name} = ${suggestion}${lastChar}`; + } + } + const isParentExported = node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration; + if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && + isParentExported) { + const commentsText = comments + .map(({ type, value }) => type === utils_1.AST_TOKEN_TYPES.Line + ? `//${value}\n` + : `/*${value}*/\n`) + .join(''); + // comments should move before export and not between export and interface declaration + fixes.push(fixer.insertTextBefore(node.parent, commentsText)); + } + else { + comments.forEach(comment => { + let commentText = comment.type === utils_1.AST_TOKEN_TYPES.Line + ? `//${comment.value}` + : `/*${comment.value}*/`; + const isCommentOnTheSameLine = comment.loc.start.line === member.loc.start.line; + if (!isCommentOnTheSameLine) { + commentText += '\n'; + } + else { + commentText += ' '; + } + suggestion = commentText + suggestion; + }); + } + const fixStart = node.range[0]; + fixes.push(fixer.replaceTextRange([fixStart, node.range[1]], suggestion)); + return fixes; + }; + context.report({ + node: member, + messageId: 'functionTypeOverCallableType', + data: { + literalOrInterface: exports.phrases[node.type], + }, + fix, + }); + } + } + let tsThisTypes = null; + let literalNesting = 0; + return { + TSInterfaceDeclaration() { + // when entering an interface reset the count of `this`s to empty. + tsThisTypes = []; + }, + 'TSInterfaceDeclaration:exit'(node) { + if (!hasOneSupertype(node) && node.body.body.length === 1) { + checkMember(node.body.body[0], node, tsThisTypes); + } + // on exit check member and reset the array to nothing. + tsThisTypes = null; + }, + 'TSInterfaceDeclaration TSThisType'(node) { + // inside an interface keep track of all ThisType references. + // unless it's inside a nested type literal in which case it's invalid code anyway + // we don't want to incorrectly say "it refers to name" while typescript says it's completely invalid. + if (literalNesting === 0 && tsThisTypes != null) { + tsThisTypes.push(node); + } + }, + // keep track of nested literals to avoid complaining about invalid `this` uses + 'TSInterfaceDeclaration TSTypeLiteral'() { + literalNesting += 1; + }, + 'TSInterfaceDeclaration TSTypeLiteral:exit'() { + literalNesting -= 1; + }, + 'TSTypeLiteral[members.length = 1]'(node) { + checkMember(node.members[0], node); + }, + }; + }, +}); +//# sourceMappingURL=prefer-function-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map new file mode 100644 index 00000000..4c4e54a0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-function-type.js","sourceRoot":"","sources":["../../src/rules/prefer-function-type.ts"],"names":[],"mappings":";;;AAEA,oDAA2E;AAE3E,kCAAqC;AAExB,QAAA,OAAO,GAAG;IACrB,CAAC,sBAAc,CAAC,sBAAsB,CAAC,EAAE,WAAW;IACpD,CAAC,sBAAc,CAAC,aAAa,CAAC,EAAE,cAAc;CACtC,CAAC;AAEX,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yEAAyE;YAC3E,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,4BAA4B,EAC1B,6FAA6F;YAC/F,qCAAqC,EACnC,4JAA4J;SAC/J;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,eAAe,CAAC,IAAqC;YAC5D,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IAAI,IAAI,CAAC,OAAO,CAAC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AAC,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;gBACpD,CAAC;gBACD,uDAAuD;gBACvD,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;YACD,mCAAmC,CAAC,IAAyB;gBAC3D,6DAA6D;gBAC7D,kFAAkF;gBAClF,sGAAsG;gBACtG,IAAI,cAAc,KAAK,CAAC,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;oBAChD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;YACD,+EAA+E;YAC/E,sCAAsC;gBACpC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,2CAA2C;gBACzC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,mCAAmC,CAAC,IAA4B;gBAC9D,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js new file mode 100644 index 00000000..4a05933a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js @@ -0,0 +1,233 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const regexpp_1 = require("@eslint-community/regexpp"); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-includes', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce `includes` method over `indexOf` method', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + preferIncludes: "Use 'includes()' method instead.", + preferStringIncludes: 'Use `String#includes()` method with a string instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const globalScope = context.sourceCode.getScope(context.sourceCode.ast); + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function isNumber(node, value) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + return evaluated != null && evaluated.value === value; + } + function isPositiveCheck(node) { + switch (node.operator) { + case '!==': + case '!=': + case '>': + return isNumber(node.right, -1); + case '>=': + return isNumber(node.right, 0); + default: + return false; + } + } + function isNegativeCheck(node) { + switch (node.operator) { + case '===': + case '==': + case '<=': + return isNumber(node.right, -1); + case '<': + return isNumber(node.right, 0); + default: + return false; + } + } + function hasSameParameters(nodeA, nodeB) { + if (!ts.isFunctionLike(nodeA) || !ts.isFunctionLike(nodeB)) { + return false; + } + const paramsA = nodeA.parameters; + const paramsB = nodeB.parameters; + if (paramsA.length !== paramsB.length) { + return false; + } + for (let i = 0; i < paramsA.length; ++i) { + const paramA = paramsA[i]; + const paramB = paramsB[i]; + // Check name, type, and question token once. + if (paramA.getText() !== paramB.getText()) { + return false; + } + } + return true; + } + /** + * Parse a given node if it's a `RegExp` instance. + * @param node The node to parse. + */ + function parseRegExp(node) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + if (evaluated == null || !(evaluated.value instanceof RegExp)) { + return null; + } + const { flags, pattern } = (0, regexpp_1.parseRegExpLiteral)(evaluated.value); + if (pattern.alternatives.length !== 1 || + flags.ignoreCase || + flags.global) { + return null; + } + // Check if it can determine a unique string. + const chars = pattern.alternatives[0].elements; + if (!chars.every(c => c.type === 'Character')) { + return null; + } + // To string. + return String.fromCodePoint(...chars.map(c => c.value)); + } + function escapeString(str) { + const EscapeMap = { + '\0': '\\0', + '\t': '\\t', + '\n': '\\n', + '\v': '\\v', + '\f': '\\f', + '\r': '\\r', + "'": "\\'", + '\\': '\\\\', + // "\b" cause unexpected replacements + // '\b': '\\b', + }; + const replaceRegex = new RegExp(Object.values(EscapeMap).join('|'), 'g'); + return str.replaceAll(replaceRegex, char => EscapeMap[char]); + } + function checkArrayIndexOf(node, allowFixing) { + if (!(0, util_1.isStaticMemberAccessOfValue)(node, context, 'indexOf')) { + return; + } + // Check if the comparison is equivalent to `includes()`. + const callNode = node.parent; + const compareNode = (callNode.parent.type === utils_1.AST_NODE_TYPES.ChainExpression + ? callNode.parent.parent + : callNode.parent); + const negative = isNegativeCheck(compareNode); + if (!negative && !isPositiveCheck(compareNode)) { + return; + } + // Get the symbol of `indexOf` method. + const indexofMethodDeclarations = services + .getSymbolAtLocation(node.property) + ?.getDeclarations(); + if (indexofMethodDeclarations == null || + indexofMethodDeclarations.length === 0) { + return; + } + // Check if every declaration of `indexOf` method has `includes` method + // and the two methods have the same parameters. + for (const instanceofMethodDecl of indexofMethodDeclarations) { + const typeDecl = instanceofMethodDecl.parent; + const type = checker.getTypeAtLocation(typeDecl); + const includesMethodDecl = type + .getProperty('includes') + ?.getDeclarations(); + if (!includesMethodDecl?.some(includesMethodDecl => hasSameParameters(includesMethodDecl, instanceofMethodDecl))) { + return; + } + } + // Report it. + context.report({ + node: compareNode, + messageId: 'preferIncludes', + ...(allowFixing && { + *fix(fixer) { + if (negative) { + yield fixer.insertTextBefore(callNode, '!'); + } + yield fixer.replaceText(node.property, 'includes'); + yield fixer.removeRange([callNode.range[1], compareNode.range[1]]); + }, + }), + }); + } + return { + // a.indexOf(b) !== 1 + 'BinaryExpression > CallExpression.left > MemberExpression'(node) { + checkArrayIndexOf(node, /* allowFixing */ true); + }, + // a?.indexOf(b) !== 1 + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression'(node) { + checkArrayIndexOf(node, /* allowFixing */ false); + }, + // /bar/.test(foo) + 'CallExpression[arguments.length=1] > MemberExpression.callee[property.name="test"][computed=false]'(node) { + const callNode = node.parent; + const text = parseRegExp(node.object); + if (text == null) { + return; + } + //check the argument type of test methods + const argument = callNode.arguments[0]; + const type = (0, util_1.getConstrainedTypeAtLocation)(services, argument); + const includesMethodDecl = type + .getProperty('includes') + ?.getDeclarations(); + if (includesMethodDecl == null) { + return; + } + context.report({ + node: callNode, + messageId: 'preferStringIncludes', + *fix(fixer) { + const argNode = callNode.arguments[0]; + const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && + argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && + argNode.type !== utils_1.AST_NODE_TYPES.Identifier && + argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && + argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; + yield fixer.removeRange([callNode.range[0], argNode.range[0]]); + yield fixer.removeRange([argNode.range[1], callNode.range[1]]); + if (needsParen) { + yield fixer.insertTextBefore(argNode, '('); + yield fixer.insertTextAfter(argNode, ')'); + } + yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}includes('${escapeString(text)}')`); + }, + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-includes.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map new file mode 100644 index 00000000..5fd6f43b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAA+D;AAC/D,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAMiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,kCAAkC;YAClD,oBAAoB,EAClB,uDAAuD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IAED,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,QAAQ,CAAC,IAAmB,EAAE,KAAa;YAClD,MAAM,SAAS,GAAG,IAAA,qBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACpD,OAAO,SAAS,IAAI,IAAI,IAAI,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC;QACxD,CAAC;QAED,SAAS,eAAe,CAAC,IAA+B;YACtD,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACtB,KAAK,KAAK,CAAC;gBACX,KAAK,IAAI,CAAC;gBACV,KAAK,GAAG;oBACN,OAAO,QAAQ,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AAI,UAAU,EAAE,CAAC;4BACf,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;wBAC5C,CAAC;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,YAAY,CAAC,IAAI,CAAC,IAAI,CACjE,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js new file mode 100644 index 00000000..d73390ea --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js @@ -0,0 +1,117 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-literal-enum-member', + meta: { + type: 'suggestion', + docs: { + description: 'Require all enum members to be literal values', + recommended: 'strict', + requiresTypeChecking: false, + }, + messages: { + notLiteral: `Explicit enum value must only be a literal value (string or number).`, + notLiteralOrBitwiseExpression: `Explicit enum value must only be a literal value (string or number) or a bitwise expression.`, + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowBitwiseExpressions: { + type: 'boolean', + description: 'Whether to allow using bitwise expressions in enum initializers.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowBitwiseExpressions: false, + }, + ], + create(context, [{ allowBitwiseExpressions }]) { + function isIdentifierWithName(node, name) { + return node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === name; + } + function hasEnumMember(decl, name) { + return decl.body.members.some(member => isIdentifierWithName(member.id, name) || + (member.id.type === utils_1.AST_NODE_TYPES.Literal && + (0, util_1.getStaticStringValue)(member.id) === name)); + } + function isSelfEnumMember(decl, node) { + if (node.type === utils_1.AST_NODE_TYPES.Identifier) { + return hasEnumMember(decl, node.name); + } + if (node.type === utils_1.AST_NODE_TYPES.MemberExpression && + isIdentifierWithName(node.object, decl.id.name)) { + if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { + return hasEnumMember(decl, node.property.name); + } + if (node.computed) { + const propertyName = (0, util_1.getStaticStringValue)(node.property); + if (propertyName) { + return hasEnumMember(decl, propertyName); + } + } + } + return false; + } + return { + TSEnumMember(node) { + // If there is no initializer, then this node is just the name of the member, so ignore. + if (node.initializer == null) { + return; + } + const declaration = node.parent.parent; + function isAllowedInitializerExpressionRecursive(node, partOfBitwiseComputation) { + // You can only refer to an enum member if it's part of a bitwise computation. + // so C = B isn't allowed (special case), but C = A | B is. + if (partOfBitwiseComputation && isSelfEnumMember(declaration, node)) { + return true; + } + switch (node.type) { + // any old literal + case utils_1.AST_NODE_TYPES.Literal: + return true; + // TemplateLiteral without expressions + case utils_1.AST_NODE_TYPES.TemplateLiteral: + return node.expressions.length === 0; + case utils_1.AST_NODE_TYPES.UnaryExpression: + // +123, -123, etc. + if (['-', '+'].includes(node.operator)) { + return isAllowedInitializerExpressionRecursive(node.argument, partOfBitwiseComputation); + } + if (allowBitwiseExpressions) { + return (node.operator === '~' && + isAllowedInitializerExpressionRecursive(node.argument, true)); + } + return false; + case utils_1.AST_NODE_TYPES.BinaryExpression: + if (allowBitwiseExpressions) { + return (['&', '^', '<<', '>>', '>>>', '|'].includes(node.operator) && + isAllowedInitializerExpressionRecursive(node.left, true) && + isAllowedInitializerExpressionRecursive(node.right, true)); + } + return false; + default: + return false; + } + } + if (isAllowedInitializerExpressionRecursive(node.initializer, false)) { + return; + } + context.report({ + node: node.id, + messageId: allowBitwiseExpressions + ? 'notLiteralOrBitwiseExpression' + : 'notLiteral', + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-literal-enum-member.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map new file mode 100644 index 00000000..4742df14 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-literal-enum-member.js","sourceRoot":"","sources":["../../src/rules/prefer-literal-enum-member.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAA2D;AAE3D,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,sEAAsE;YAClF,6BAA6B,EAAE,8FAA8F;SAC9H;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,kEAAkE;qBACrE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,uBAAuB,EAAE,KAAK;SAC/B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAE,CAAC;QAC3C,SAAS,oBAAoB,CAAC,IAAmB,EAAE,IAAY;YAC7D,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;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AAC;oCACxD,uCAAuC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAC1D,CAAC;4BACJ,CAAC;4BACD,OAAO,KAAK,CAAC;wBAEf;4BACE,OAAO,KAAK,CAAC;oBACjB,CAAC;gBACH,CAAC;gBAED,IAAI,uCAAuC,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;oBACrE,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,SAAS,EAAE,uBAAuB;wBAChC,CAAC,CAAC,+BAA+B;wBACjC,CAAC,CAAC,YAAY;iBACjB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js new file mode 100644 index 00000000..c127c60e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-namespace-keyword', + meta: { + type: 'suggestion', + docs: { + description: 'Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules', + recommended: 'recommended', + }, + fixable: 'code', + messages: { + useNamespace: "Use 'namespace' instead of 'module' to declare custom TypeScript modules.", + }, + schema: [], + }, + defaultOptions: [], + create(context) { + return { + TSModuleDeclaration(node) { + // Do nothing if the name is a string. + if (node.id.type === utils_1.AST_NODE_TYPES.Literal) { + return; + } + // Get tokens of the declaration header. + const moduleType = context.sourceCode.getTokenBefore(node.id); + if (moduleType && + moduleType.type === utils_1.AST_TOKEN_TYPES.Identifier && + moduleType.value === 'module') { + context.report({ + node, + messageId: 'useNamespace', + fix(fixer) { + return fixer.replaceText(moduleType, 'namespace'); + }, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-namespace-keyword.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map new file mode 100644 index 00000000..d2f134c5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-namespace-keyword.js","sourceRoot":"","sources":["../../src/rules/prefer-namespace-keyword.ts"],"names":[],"mappings":";;AAAA,oDAA2E;AAE3E,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EACV,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;oBAC5C,OAAO;gBACT,CAAC;gBACD,wCAAwC;gBACxC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAE9D,IACE,UAAU;oBACV,UAAU,CAAC,IAAI,KAAK,uBAAe,CAAC,UAAU;oBAC9C,UAAU,CAAC,KAAK,KAAK,QAAQ,EAC7B,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,cAAc;wBACzB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;wBACpD,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js new file mode 100644 index 00000000..422e08d7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js @@ -0,0 +1,423 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-nullish-coalescing', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce using the nullish coalescing operator instead of logical assignments or chaining', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', + preferNullishOverOr: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a logical {{ description }} (`||{{ equals }}`), as it is a safer operator.', + preferNullishOverTernary: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a ternary expression, as it is simpler to read.', + suggestNullish: 'Fix to nullish coalescing operator (`??{{ equals }}`).', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { + type: 'boolean', + description: 'Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.', + }, + ignoreBooleanCoercion: { + type: 'boolean', + description: 'Whether to ignore arguments to the `Boolean` constructor', + }, + ignoreConditionalTests: { + type: 'boolean', + description: 'Whether to ignore cases that are located within a conditional test.', + }, + ignoreMixedLogicalExpressions: { + type: 'boolean', + description: 'Whether to ignore any logical or expressions that are part of a mixed logical expression (with `&&`).', + }, + ignorePrimitives: { + description: 'Whether to ignore all (`true`) or some (an object with properties) primitive types.', + oneOf: [ + { + type: 'object', + description: 'Which primitives types may be ignored.', + properties: { + bigint: { + type: 'boolean', + description: 'Ignore bigint primitive types.', + }, + boolean: { + type: 'boolean', + description: 'Ignore boolean primitive types.', + }, + number: { + type: 'boolean', + description: 'Ignore number primitive types.', + }, + string: { + type: 'boolean', + description: 'Ignore string primitive types.', + }, + }, + }, + { + type: 'boolean', + description: 'Ignore all primitive types.', + enum: [true], + }, + ], + }, + ignoreTernaryTests: { + type: 'boolean', + description: 'Whether to ignore any ternary expressions that could be simplified by using the nullish coalescing operator.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, + ignoreBooleanCoercion: false, + ignoreConditionalTests: true, + ignoreMixedLogicalExpressions: false, + ignorePrimitives: { + bigint: false, + boolean: false, + number: false, + string: false, + }, + ignoreTernaryTests: false, + }, + ], + create(context, [{ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, ignoreBooleanCoercion, ignoreConditionalTests, ignoreMixedLogicalExpressions, ignorePrimitives, ignoreTernaryTests, },]) { + const parserServices = (0, util_1.getParserServices)(context); + const compilerOptions = parserServices.program.getCompilerOptions(); + const checker = parserServices.program.getTypeChecker(); + const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); + if (!isStrictNullChecks && + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { + context.report({ + loc: { + start: { column: 0, line: 0 }, + end: { column: 0, line: 0 }, + }, + messageId: 'noStrictNullCheck', + }); + } + // todo: rename to something more specific? + function checkAssignmentOrLogicalExpression(node, description, equals) { + const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); + const type = checker.getTypeAtLocation(tsNode.left); + if (!(0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined)) { + return; + } + if (ignoreConditionalTests === true && isConditionalTest(node)) { + return; + } + if (ignoreMixedLogicalExpressions === true && + isMixedLogicalExpression(node)) { + return; + } + // https://github.com/typescript-eslint/typescript-eslint/issues/5439 + /* eslint-disable @typescript-eslint/no-non-null-assertion */ + const ignorableFlags = [ + (ignorePrimitives === true || ignorePrimitives.bigint) && + ts.TypeFlags.BigIntLike, + (ignorePrimitives === true || ignorePrimitives.boolean) && + ts.TypeFlags.BooleanLike, + (ignorePrimitives === true || ignorePrimitives.number) && + ts.TypeFlags.NumberLike, + (ignorePrimitives === true || ignorePrimitives.string) && + ts.TypeFlags.StringLike, + ] + .filter((flag) => typeof flag === 'number') + .reduce((previous, flag) => previous | flag, 0); + if (type.flags !== ts.TypeFlags.Null && + type.flags !== ts.TypeFlags.Undefined && + type.types.some(t => tsutils + .intersectionTypeParts(t) + .some(t => tsutils.isTypeFlagSet(t, ignorableFlags)))) { + return; + } + /* eslint-enable @typescript-eslint/no-non-null-assertion */ + const barBarOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.left, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === node.operator), util_1.NullThrowsReasons.MissingToken('operator', node.type)); + function* fix(fixer) { + if ((0, util_1.isLogicalOrOperator)(node.parent)) { + // '&&' and '??' operations cannot be mixed without parentheses (e.g. a && b ?? c) + if (node.left.type === utils_1.AST_NODE_TYPES.LogicalExpression && + !(0, util_1.isLogicalOrOperator)(node.left.left)) { + yield fixer.insertTextBefore(node.left.right, '('); + } + else { + yield fixer.insertTextBefore(node.left, '('); + } + yield fixer.insertTextAfter(node.right, ')'); + } + yield fixer.replaceText(barBarOperator, node.operator.replace('||', '??')); + } + context.report({ + node: barBarOperator, + messageId: 'preferNullishOverOr', + data: { description, equals }, + suggest: [ + { + messageId: 'suggestNullish', + data: { equals }, + fix, + }, + ], + }); + } + return { + 'AssignmentExpression[operator = "||="]'(node) { + checkAssignmentOrLogicalExpression(node, 'assignment', '='); + }, + ConditionalExpression(node) { + if (ignoreTernaryTests) { + return; + } + let operator; + let nodesInsideTestExpression = []; + if (node.test.type === utils_1.AST_NODE_TYPES.BinaryExpression) { + nodesInsideTestExpression = [node.test.left, node.test.right]; + if (node.test.operator === '==' || + node.test.operator === '!=' || + node.test.operator === '===' || + node.test.operator === '!==') { + operator = node.test.operator; + } + } + else if (node.test.type === utils_1.AST_NODE_TYPES.LogicalExpression && + node.test.left.type === utils_1.AST_NODE_TYPES.BinaryExpression && + node.test.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) { + nodesInsideTestExpression = [ + node.test.left.left, + node.test.left.right, + node.test.right.left, + node.test.right.right, + ]; + if (['||', '||='].includes(node.test.operator)) { + if (node.test.left.operator === '===' && + node.test.right.operator === '===') { + operator = '==='; + } + else if (((node.test.left.operator === '===' || + node.test.right.operator === '===') && + (node.test.left.operator === '==' || + node.test.right.operator === '==')) || + (node.test.left.operator === '==' && + node.test.right.operator === '==')) { + operator = '=='; + } + } + else if (node.test.operator === '&&') { + if (node.test.left.operator === '!==' && + node.test.right.operator === '!==') { + operator = '!=='; + } + else if (((node.test.left.operator === '!==' || + node.test.right.operator === '!==') && + (node.test.left.operator === '!=' || + node.test.right.operator === '!=')) || + (node.test.left.operator === '!=' && + node.test.right.operator === '!=')) { + operator = '!='; + } + } + } + if (!operator) { + return; + } + let identifier; + let hasUndefinedCheck = false; + let hasNullCheck = false; + // we check that the test only contains null, undefined and the identifier + for (const testNode of nodesInsideTestExpression) { + if ((0, util_1.isNullLiteral)(testNode)) { + hasNullCheck = true; + } + else if ((0, util_1.isUndefinedIdentifier)(testNode)) { + hasUndefinedCheck = true; + } + else if ((operator === '!==' || operator === '!=') && + (0, util_1.isNodeEqual)(testNode, node.consequent)) { + identifier = testNode; + } + else if ((operator === '===' || operator === '==') && + (0, util_1.isNodeEqual)(testNode, node.alternate)) { + identifier = testNode; + } + else { + return; + } + } + if (!identifier) { + return; + } + const isFixable = (() => { + // it is fixable if we check for both null and undefined, or not if neither + if (hasUndefinedCheck === hasNullCheck) { + return hasUndefinedCheck; + } + // it is fixable if we loosely check for either null or undefined + if (operator === '==' || operator === '!=') { + return true; + } + const tsNode = parserServices.esTreeNodeToTSNodeMap.get(identifier); + const type = checker.getTypeAtLocation(tsNode); + const flags = (0, util_1.getTypeFlags)(type); + if (flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { + return false; + } + const hasNullType = (flags & ts.TypeFlags.Null) !== 0; + // it is fixable if we check for undefined and the type is not nullable + if (hasUndefinedCheck && !hasNullType) { + return true; + } + const hasUndefinedType = (flags & ts.TypeFlags.Undefined) !== 0; + // it is fixable if we check for null and the type can't be undefined + return hasNullCheck && !hasUndefinedType; + })(); + if (isFixable) { + context.report({ + node, + messageId: 'preferNullishOverTernary', + // TODO: also account for = in the ternary clause + data: { equals: '' }, + suggest: [ + { + messageId: 'suggestNullish', + data: { equals: '' }, + fix(fixer) { + const [left, right] = operator === '===' || operator === '==' + ? [node.alternate, node.consequent] + : [node.consequent, node.alternate]; + return fixer.replaceText(node, `${(0, util_1.getTextWithParentheses)(context.sourceCode, left)} ?? ${(0, util_1.getTextWithParentheses)(context.sourceCode, right)}`); + }, + }, + ], + }); + } + }, + 'LogicalExpression[operator = "||"]'(node) { + if (ignoreBooleanCoercion === true && + isBooleanConstructorContext(node, context)) { + return; + } + checkAssignmentOrLogicalExpression(node, 'or', ''); + }, + }; + }, +}); +function isConditionalTest(node) { + const parent = node.parent; + if (parent == null) { + return false; + } + if (parent.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + return isConditionalTest(parent); + } + if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && + (parent.consequent === node || parent.alternate === node)) { + return isConditionalTest(parent); + } + if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression && + parent.expressions.at(-1) === node) { + return isConditionalTest(parent); + } + if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + parent.operator === '!') { + return isConditionalTest(parent); + } + if ((parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression || + parent.type === utils_1.AST_NODE_TYPES.DoWhileStatement || + parent.type === utils_1.AST_NODE_TYPES.IfStatement || + parent.type === utils_1.AST_NODE_TYPES.ForStatement || + parent.type === utils_1.AST_NODE_TYPES.WhileStatement) && + parent.test === node) { + return true; + } + return false; +} +function isBooleanConstructorContext(node, context) { + const parent = node.parent; + if (parent == null) { + return false; + } + if (parent.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + return isBooleanConstructorContext(parent, context); + } + if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && + (parent.consequent === node || parent.alternate === node)) { + return isBooleanConstructorContext(parent, context); + } + if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression && + parent.expressions.at(-1) === node) { + return isBooleanConstructorContext(parent, context); + } + return isBuiltInBooleanCall(parent, context); +} +function isBuiltInBooleanCall(node, context) { + if (node.type === utils_1.AST_NODE_TYPES.CallExpression && + node.callee.type === utils_1.AST_NODE_TYPES.Identifier && + // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum + node.callee.name === 'Boolean' && + node.arguments[0]) { + const scope = context.sourceCode.getScope(node); + const variable = scope.set.get(utils_1.AST_TOKEN_TYPES.Boolean); + return variable == null || variable.defs.length === 0; + } + return false; +} +function isMixedLogicalExpression(node) { + const seen = new Set(); + const queue = [node.parent, node.left, node.right]; + for (const current of queue) { + if (seen.has(current)) { + continue; + } + seen.add(current); + if (current.type === utils_1.AST_NODE_TYPES.LogicalExpression) { + if (current.operator === '&&') { + return true; + } + else if (['||', '||='].includes(current.operator)) { + // check the pieces of the node to catch cases like `a || b || c && d` + queue.push(current.parent, current.left, current.right); + } + } + } + return false; +} +//# sourceMappingURL=prefer-nullish-coalescing.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map new file mode 100644 index 00000000..66fd0163 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAYiB;AA0BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0FAA0F;YAC5F,WAAW,EAAE,WAA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e,CAAC,OAAO,CAAC,CAAC;QACxD,OAAO,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAgE;IAEhE,MAAM,IAAI,GAAG,IAAI,GAAG,EAA6B,CAAC;IAClD,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE,CAAC;QAC5B,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACtB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAElB,IAAI,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE,CAAC;YACtD,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC;YACd,CAAC;iBAAM,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpD,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js new file mode 100644 index 00000000..9dec4475 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=PreferOptionalChainOptions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map new file mode 100644 index 00000000..163a6d7a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PreferOptionalChainOptions.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js new file mode 100644 index 00000000..9b3fe8d2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js @@ -0,0 +1,457 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.analyzeChain = analyzeChain; +const utils_1 = require("@typescript-eslint/utils"); +const ts_api_utils_1 = require("ts-api-utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../../util"); +const checkNullishAndReport_1 = require("./checkNullishAndReport"); +const compareNodes_1 = require("./compareNodes"); +function includesType(parserServices, node, typeFlagIn) { + const typeFlag = typeFlagIn | ts.TypeFlags.Any | ts.TypeFlags.Unknown; + const types = (0, ts_api_utils_1.unionTypeParts)(parserServices.getTypeAtLocation(node)); + for (const type of types) { + if ((0, util_1.isTypeFlagSet)(type, typeFlag)) { + return true; + } + } + return false; +} +const analyzeAndChainOperand = (parserServices, operand, index, chain) => { + switch (operand.comparisonType) { + case "Boolean" /* NullishComparisonType.Boolean */: { + const nextOperand = chain.at(index + 1); + if (nextOperand?.comparisonType === + "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ && + operand.comparedName.type === utils_1.AST_NODE_TYPES.Identifier) { + return null; + } + return [operand]; + } + case "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */: + return [operand]; + case "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */: { + // handle `x !== null && x !== undefined` + const nextOperand = chain.at(index + 1); + if (nextOperand?.comparisonType === + "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ && + (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === + "Equal" /* NodeComparisonResult.Equal */) { + return [operand, nextOperand]; + } + if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Undefined)) { + // we know the next operand is not an `undefined` check and that this + // operand includes `undefined` - which means that making this an + // optional chain would change the runtime behavior of the expression + return null; + } + return [operand]; + } + case "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */: { + // handle `x !== undefined && x !== null` + const nextOperand = chain.at(index + 1); + if (nextOperand?.comparisonType === + "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ && + (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === + "Equal" /* NodeComparisonResult.Equal */) { + return [operand, nextOperand]; + } + if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Null)) { + // we know the next operand is not a `null` check and that this + // operand includes `null` - which means that making this an + // optional chain would change the runtime behavior of the expression + return null; + } + return [operand]; + } + default: + return null; + } +}; +const analyzeOrChainOperand = (parserServices, operand, index, chain) => { + switch (operand.comparisonType) { + case "NotBoolean" /* NullishComparisonType.NotBoolean */: + case "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */: + return [operand]; + case "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */: { + // handle `x === null || x === undefined` + const nextOperand = chain.at(index + 1); + if (nextOperand?.comparisonType === + "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */ && + (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === + "Equal" /* NodeComparisonResult.Equal */) { + return [operand, nextOperand]; + } + if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Undefined)) { + // we know the next operand is not an `undefined` check and that this + // operand includes `undefined` - which means that making this an + // optional chain would change the runtime behavior of the expression + return null; + } + return [operand]; + } + case "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */: { + // handle `x === undefined || x === null` + const nextOperand = chain.at(index + 1); + if (nextOperand?.comparisonType === "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */ && + (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === + "Equal" /* NodeComparisonResult.Equal */) { + return [operand, nextOperand]; + } + if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Null)) { + // we know the next operand is not a `null` check and that this + // operand includes `null` - which means that making this an + // optional chain would change the runtime behavior of the expression + return null; + } + return [operand]; + } + default: + return null; + } +}; +/** + * Returns the range that needs to be reported from the chain. + * @param chain The chain of logical expressions. + * @param boundary The boundary range that the range to report cannot fall outside. + * @param sourceCode The source code to get tokens. + * @returns The range to report. + */ +function getReportRange(chain, boundary, sourceCode) { + const leftNode = chain[0].node; + const rightNode = chain[chain.length - 1].node; + let leftMost = (0, util_1.nullThrows)(sourceCode.getFirstToken(leftNode), util_1.NullThrowsReasons.MissingToken('any token', leftNode.type)); + let rightMost = (0, util_1.nullThrows)(sourceCode.getLastToken(rightNode), util_1.NullThrowsReasons.MissingToken('any token', rightNode.type)); + while (leftMost.range[0] > boundary[0]) { + const token = sourceCode.getTokenBefore(leftMost); + if (!token || !(0, util_1.isOpeningParenToken)(token) || token.range[0] < boundary[0]) { + break; + } + leftMost = token; + } + while (rightMost.range[1] < boundary[1]) { + const token = sourceCode.getTokenAfter(rightMost); + if (!token || !(0, util_1.isClosingParenToken)(token) || token.range[1] > boundary[1]) { + break; + } + rightMost = token; + } + return [leftMost.range[0], rightMost.range[1]]; +} +function getReportDescriptor(sourceCode, parserServices, node, operator, options, chain) { + const lastOperand = chain[chain.length - 1]; + let useSuggestionFixer; + if (options.allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing === + true) { + // user has opted-in to the unsafe behavior + useSuggestionFixer = false; + } + // optional chain specifically will union `undefined` into the final type + // so we need to make sure that there is at least one operand that includes + // `undefined`, or else we're going to change the final type - which is + // unsafe and might cause downstream type errors. + else if (lastOperand.comparisonType === "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */ || + lastOperand.comparisonType === + "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */ || + lastOperand.comparisonType === "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */ || + lastOperand.comparisonType === + "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ || + (operator === '||' && + lastOperand.comparisonType === "NotBoolean" /* NullishComparisonType.NotBoolean */)) { + // we know the last operand is an equality check - so the change in types + // DOES NOT matter and will not change the runtime result or cause a type + // check error + useSuggestionFixer = false; + } + else { + useSuggestionFixer = true; + for (const operand of chain) { + if (includesType(parserServices, operand.node, ts.TypeFlags.Undefined)) { + useSuggestionFixer = false; + break; + } + } + // TODO - we could further reduce the false-positive rate of this check by + // checking for cases where the change in types don't matter like + // the test location of an if/while/etc statement. + // but it's quite complex to do this without false-negatives, so + // for now we'll just be over-eager with our matching. + // + // it's MUCH better to false-positive here and only provide a + // suggestion fixer, rather than false-negative and autofix to + // broken code. + } + // In its most naive form we could just slap `?.` for every single part of the + // chain. However this would be undesirable because it'd create unnecessary + // conditions in the user's code where there were none before - and it would + // cause errors with rules like our `no-unnecessary-condition`. + // + // Instead we want to include the minimum number of `?.` required to correctly + // unify the code into a single chain. Naively you might think that we can + // just take the final operand add `?.` after the locations from the previous + // operands - however this won't be correct either because earlier operands + // can include a necessary `?.` that's not needed or included in a later + // operand. + // + // So instead what we need to do is to start at the first operand and + // iteratively diff it against the next operand, and add the difference to the + // first operand. + // + // eg + // `foo && foo.bar && foo.bar.baz?.bam && foo.bar.baz.bam()` + // 1) `foo` + // 2) diff(`foo`, `foo.bar`) = `.bar` + // 3) result = `foo?.bar` + // 4) diff(`foo.bar`, `foo.bar.baz?.bam`) = `.baz?.bam` + // 5) result = `foo?.bar?.baz?.bam` + // 6) diff(`foo.bar.baz?.bam`, `foo.bar.baz.bam()`) = `()` + // 7) result = `foo?.bar?.baz?.bam?.()` + const parts = []; + for (const current of chain) { + const nextOperand = flattenChainExpression(sourceCode, current.comparedName); + const diff = nextOperand.slice(parts.length); + if (diff.length > 0) { + if (parts.length > 0) { + // we need to make the first operand of the diff optional so it matches the + // logic before merging + // foo.bar && foo.bar.baz + // diff = .baz + // result = foo.bar?.baz + diff[0].optional = true; + } + parts.push(...diff); + } + } + let newCode = parts + .map(part => { + let str = ''; + if (part.optional) { + str += '?.'; + } + else { + if (part.nonNull) { + str += '!'; + } + if (part.requiresDot) { + str += '.'; + } + } + if (part.precedence !== util_1.OperatorPrecedence.Invalid && + part.precedence < util_1.OperatorPrecedence.Member) { + str += `(${part.text})`; + } + else { + str += part.text; + } + return str; + }) + .join(''); + if (lastOperand.node.type === utils_1.AST_NODE_TYPES.BinaryExpression) { + // retain the ending comparison for cases like + // x && x.a != null + // x && typeof x.a !== 'undefined' + const operator = lastOperand.node.operator; + const { left, right } = (() => { + if (lastOperand.isYoda) { + const unaryOperator = lastOperand.node.right.type === utils_1.AST_NODE_TYPES.UnaryExpression + ? `${lastOperand.node.right.operator} ` + : ''; + return { + left: sourceCode.getText(lastOperand.node.left), + right: unaryOperator + newCode, + }; + } + const unaryOperator = lastOperand.node.left.type === utils_1.AST_NODE_TYPES.UnaryExpression + ? `${lastOperand.node.left.operator} ` + : ''; + return { + left: unaryOperator + newCode, + right: sourceCode.getText(lastOperand.node.right), + }; + })(); + newCode = `${left} ${operator} ${right}`; + } + else if (lastOperand.comparisonType === "NotBoolean" /* NullishComparisonType.NotBoolean */) { + newCode = `!${newCode}`; + } + const reportRange = getReportRange(chain, node.range, sourceCode); + const fix = fixer => fixer.replaceTextRange(reportRange, newCode); + return { + loc: { + end: sourceCode.getLocFromIndex(reportRange[1]), + start: sourceCode.getLocFromIndex(reportRange[0]), + }, + messageId: 'preferOptionalChain', + ...(0, util_1.getFixOrSuggest)({ + fixOrSuggest: useSuggestionFixer ? 'suggest' : 'fix', + suggestion: { + fix, + messageId: 'optionalChainSuggest', + }, + }), + }; + function flattenChainExpression(sourceCode, node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.ChainExpression: + return flattenChainExpression(sourceCode, node.expression); + case utils_1.AST_NODE_TYPES.CallExpression: { + const argumentsText = (() => { + const closingParenToken = (0, util_1.nullThrows)(sourceCode.getLastToken(node), util_1.NullThrowsReasons.MissingToken('closing parenthesis', node.type)); + const openingParenToken = (0, util_1.nullThrows)(sourceCode.getFirstTokenBetween(node.typeArguments ?? node.callee, closingParenToken, util_1.isOpeningParenToken), util_1.NullThrowsReasons.MissingToken('opening parenthesis', node.type)); + return sourceCode.text.substring(openingParenToken.range[0], closingParenToken.range[1]); + })(); + const typeArgumentsText = (() => { + if (node.typeArguments == null) { + return ''; + } + return sourceCode.getText(node.typeArguments); + })(); + return [ + ...flattenChainExpression(sourceCode, node.callee), + { + nonNull: false, + optional: node.optional, + // no precedence for this + precedence: util_1.OperatorPrecedence.Invalid, + requiresDot: false, + text: typeArgumentsText + argumentsText, + }, + ]; + } + case utils_1.AST_NODE_TYPES.MemberExpression: { + const propertyText = sourceCode.getText(node.property); + return [ + ...flattenChainExpression(sourceCode, node.object), + { + nonNull: node.object.type === utils_1.AST_NODE_TYPES.TSNonNullExpression, + optional: node.optional, + precedence: node.computed + ? // computed is already wrapped in [] so no need to wrap in () as well + util_1.OperatorPrecedence.Invalid + : (0, util_1.getOperatorPrecedenceForNode)(node.property), + requiresDot: !node.computed, + text: node.computed ? `[${propertyText}]` : propertyText, + }, + ]; + } + case utils_1.AST_NODE_TYPES.TSNonNullExpression: + return flattenChainExpression(sourceCode, node.expression); + default: + return [ + { + nonNull: false, + optional: false, + precedence: (0, util_1.getOperatorPrecedenceForNode)(node), + requiresDot: false, + text: sourceCode.getText(node), + }, + ]; + } + } +} +function analyzeChain(context, parserServices, options, node, operator, chain) { + // need at least 2 operands in a chain for it to be a chain + if (chain.length <= 1 || + /* istanbul ignore next -- previous checks make this unreachable, but keep it for exhaustiveness check */ + operator === '??') { + return; + } + const analyzeOperand = (() => { + switch (operator) { + case '&&': + return analyzeAndChainOperand; + case '||': + return analyzeOrChainOperand; + } + })(); + // Things like x !== null && x !== undefined have two nodes, but they are + // one logical unit here, so we'll allow them to be grouped. + let subChain = []; + const maybeReportThenReset = (newChainSeed) => { + if (subChain.length > 1) { + const subChainFlat = subChain.flat(); + (0, checkNullishAndReport_1.checkNullishAndReport)(context, parserServices, options, subChainFlat.slice(0, -1).map(({ node }) => node), getReportDescriptor(context.sourceCode, parserServices, node, operator, options, subChainFlat)); + } + // we've reached the end of a chain of logical expressions + // i.e. the current operand doesn't belong to the previous chain. + // + // we don't want to throw away the current operand otherwise we will skip it + // and that can cause us to miss chains. So instead we seed the new chain + // with the current operand + // + // eg this means we can catch cases like: + // unrelated != null && foo != null && foo.bar != null; + // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ first "chain" + // ^^^^^^^^^^^ newChainSeed + // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second chain + subChain = newChainSeed ? [newChainSeed] : []; + }; + for (let i = 0; i < chain.length; i += 1) { + const lastOperand = subChain.flat().at(-1); + const operand = chain[i]; + const validatedOperands = analyzeOperand(parserServices, operand, i, chain); + if (!validatedOperands) { + // TODO - #7170 + // check if the name is a superset/equal - if it is, then it likely + // intended to be part of the chain and something we should include in the + // report, eg + // foo == null || foo.bar; + // ^^^^^^^^^^^ valid OR chain + // ^^^^^^^ invalid OR chain logical, but still part of + // the chain for combination purposes + maybeReportThenReset(); + continue; + } + // in case multiple operands were consumed - make sure to correctly increment the index + i += validatedOperands.length - 1; + const currentOperand = validatedOperands[0]; + if (lastOperand) { + const comparisonResult = (0, compareNodes_1.compareNodes)(lastOperand.comparedName, + // purposely inspect and push the last operand because the prior operands don't matter + // this also means we won't false-positive in cases like + // foo !== null && foo !== undefined + validatedOperands[validatedOperands.length - 1].comparedName); + if (comparisonResult === "Subset" /* NodeComparisonResult.Subset */) { + // the operands are comparable, so we can continue searching + subChain.push(currentOperand); + } + else if (comparisonResult === "Invalid" /* NodeComparisonResult.Invalid */) { + maybeReportThenReset(validatedOperands); + } + else { + // purposely don't push this case because the node is a no-op and if + // we consider it then we might report on things like + // foo && foo + } + } + else { + subChain.push(currentOperand); + } + } + // check the leftovers + maybeReportThenReset(); +} +//# sourceMappingURL=analyzeChain.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map new file mode 100644 index 00000000..d8f712e3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAigBA,oCAoHC;AA1mBD,oDAA0D;AAC1D,+CAA8C;AAC9C,+CAAiC;AAQjC,qCASoB;AACpB,mEAAgE;AAChE,iDAAoE;AAGpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KAAK,EACL,KAAK,EACL,EAAE;IACF,QAAQ,OAAO,CAAC,cAAc,EAAE,CAAC;QAC/B,kDAAkC,CAAC,CAAC,CAAC;YACnC,MAAM,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YACxC,IACE,WAAW,EAAE,cAAc;mFACe;gBAC1C,OAAO,CAAC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I,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js new file mode 100644 index 00000000..fe50be13 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js @@ -0,0 +1,36 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.checkNullishAndReport = checkNullishAndReport; +const type_utils_1 = require("@typescript-eslint/type-utils"); +const ts_api_utils_1 = require("ts-api-utils"); +const ts = __importStar(require("typescript")); +function checkNullishAndReport(context, parserServices, { requireNullish }, maybeNullishNodes, descriptor) { + if (!requireNullish || + maybeNullishNodes.some(node => (0, ts_api_utils_1.unionTypeParts)(parserServices.getTypeAtLocation(node)).some(t => (0, type_utils_1.isTypeFlagSet)(t, ts.TypeFlags.Null | ts.TypeFlags.Undefined)))) { + context.report(descriptor); + } +} +//# sourceMappingURL=checkNullishAndReport.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map new file mode 100644 index 00000000..b1188b7f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map @@ -0,0 +1 @@ +{"version":3,"file":"checkNullishAndReport.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/checkNullishAndReport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDAoBC;AA7BD,8DAA8D;AAC9D,+CAA8C;AAC9C,+CAAiC;AAOjC,SAAgB,qBAAqB,CACnC,OAGC,EACD,cAAiD,EACjD,EAAE,cAAc,EAA8B,EAC9C,iBAAwC,EACxC,UAA2D;IAE3D,IACE,CAAC,cAAc;QACf,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5B,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAA,0BAAa,EAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAC7D,CACF,EACD,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js new file mode 100644 index 00000000..8c1bfebd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js @@ -0,0 +1,317 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.compareNodes = compareNodes; +const utils_1 = require("@typescript-eslint/utils"); +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +function compareArrays(arrayA, arrayB) { + if (arrayA.length !== arrayB.length) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + const result = arrayA.every((elA, idx) => { + const elB = arrayB[idx]; + if (elA == null || elB == null) { + return elA === elB; + } + return compareUnknownValues(elA, elB) === "Equal" /* NodeComparisonResult.Equal */; + }); + if (result) { + return "Equal" /* NodeComparisonResult.Equal */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; +} +function isValidNode(x) { + return (typeof x === 'object' && + x != null && + 'type' in x && + typeof x.type === 'string'); +} +function isValidChainExpressionToLookThrough(node) { + return (!(node.parent?.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.parent.object === node) && + !(node.parent?.type === utils_1.AST_NODE_TYPES.CallExpression && + node.parent.callee === node) && + node.type === utils_1.AST_NODE_TYPES.ChainExpression); +} +function compareUnknownValues(valueA, valueB) { + /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ + if (valueA == null || valueB == null) { + if (valueA !== valueB) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + return "Equal" /* NodeComparisonResult.Equal */; + } + /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ + if (!isValidNode(valueA) || !isValidNode(valueB)) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + return compareNodes(valueA, valueB); +} +function compareByVisiting(nodeA, nodeB) { + const currentVisitorKeys = visitor_keys_1.visitorKeys[nodeA.type]; + /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ + if (currentVisitorKeys == null) { + // we don't know how to visit this node, so assume it's invalid to avoid false-positives / broken fixers + return "Invalid" /* NodeComparisonResult.Invalid */; + } + if (currentVisitorKeys.length === 0) { + // assume nodes with no keys are constant things like keywords + return "Equal" /* NodeComparisonResult.Equal */; + } + for (const key of currentVisitorKeys) { + // @ts-expect-error - dynamic access but it's safe + const nodeAChildOrChildren = nodeA[key]; + // @ts-expect-error - dynamic access but it's safe + const nodeBChildOrChildren = nodeB[key]; + if (Array.isArray(nodeAChildOrChildren)) { + const arrayA = nodeAChildOrChildren; + const arrayB = nodeBChildOrChildren; + const result = compareArrays(arrayA, arrayB); + if (result !== "Equal" /* NodeComparisonResult.Equal */) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // fallthrough to the next key as the key was "equal" + } + else { + const result = compareUnknownValues(nodeAChildOrChildren, nodeBChildOrChildren); + if (result !== "Equal" /* NodeComparisonResult.Equal */) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // fallthrough to the next key as the key was "equal" + } + } + return "Equal" /* NodeComparisonResult.Equal */; +} +function compareNodesUncached(nodeA, nodeB) { + if (nodeA.type !== nodeB.type) { + // special cases where nodes are allowed to be non-equal + // look through a chain expression node at the top-level because it only + // exists to delimit the end of an optional chain + // + // a?.b && a.b.c + // ^^^^ ChainExpression, MemberExpression + // ^^^^^ MemberExpression + // + // except for in this class of cases + // (a?.b).c && a.b.c + // because the parentheses have runtime meaning (sad face) + if (isValidChainExpressionToLookThrough(nodeA)) { + return compareNodes(nodeA.expression, nodeB); + } + if (isValidChainExpressionToLookThrough(nodeB)) { + return compareNodes(nodeA, nodeB.expression); + } + // look through the type-only non-null assertion because its existence could + // possibly be replaced by an optional chain instead + // + // a.b! && a.b.c + // ^^^^ TSNonNullExpression + if (nodeA.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { + return compareNodes(nodeA.expression, nodeB); + } + if (nodeB.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { + return compareNodes(nodeA, nodeB.expression); + } + // special case for subset optional chains where the node types don't match, + // but we want to try comparing by discarding the "extra" code + // + // a && a.b + // ^ compare this + // a && a() + // ^ compare this + // a.b && a.b() + // ^^^ compare this + // a() && a().b + // ^^^ compare this + // import.meta && import.meta.b + // ^^^^^^^^^^^ compare this + if (nodeA.type === utils_1.AST_NODE_TYPES.CallExpression || + nodeA.type === utils_1.AST_NODE_TYPES.Identifier || + nodeA.type === utils_1.AST_NODE_TYPES.MemberExpression || + nodeA.type === utils_1.AST_NODE_TYPES.MetaProperty) { + switch (nodeB.type) { + case utils_1.AST_NODE_TYPES.MemberExpression: + if (nodeB.property.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + // Private identifiers in optional chaining is not currently allowed + // TODO - handle this once TS supports it (https://github.com/microsoft/TypeScript/issues/42734) + return "Invalid" /* NodeComparisonResult.Invalid */; + } + if (compareNodes(nodeA, nodeB.object) !== "Invalid" /* NodeComparisonResult.Invalid */) { + return "Subset" /* NodeComparisonResult.Subset */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + case utils_1.AST_NODE_TYPES.CallExpression: + if (compareNodes(nodeA, nodeB.callee) !== "Invalid" /* NodeComparisonResult.Invalid */) { + return "Subset" /* NodeComparisonResult.Subset */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + default: + return "Invalid" /* NodeComparisonResult.Invalid */; + } + } + return "Invalid" /* NodeComparisonResult.Invalid */; + } + switch (nodeA.type) { + // these expressions create a new instance each time - so it makes no sense to compare the chain + case utils_1.AST_NODE_TYPES.ArrayExpression: + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.ClassExpression: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.JSXElement: + case utils_1.AST_NODE_TYPES.JSXFragment: + case utils_1.AST_NODE_TYPES.NewExpression: + case utils_1.AST_NODE_TYPES.ObjectExpression: + return "Invalid" /* NodeComparisonResult.Invalid */; + // chaining from assignments could change the value irrevocably - so it makes no sense to compare the chain + case utils_1.AST_NODE_TYPES.AssignmentExpression: + return "Invalid" /* NodeComparisonResult.Invalid */; + case utils_1.AST_NODE_TYPES.CallExpression: { + const nodeBCall = nodeB; + // check for cases like + // foo() && foo()(bar) + // ^^^^^ nodeA + // ^^^^^^^^^^ nodeB + // we don't want to check the arguments in this case + const aSubsetOfB = compareNodes(nodeA, nodeBCall.callee); + if (aSubsetOfB !== "Invalid" /* NodeComparisonResult.Invalid */) { + return "Subset" /* NodeComparisonResult.Subset */; + } + const calleeCompare = compareNodes(nodeA.callee, nodeBCall.callee); + if (calleeCompare !== "Equal" /* NodeComparisonResult.Equal */) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // NOTE - we purposely ignore optional flag because for our purposes + // foo?.bar() && foo.bar?.()?.baz + // or + // foo.bar() && foo?.bar?.()?.baz + // are going to be exactly the same + const argumentCompare = compareArrays(nodeA.arguments, nodeBCall.arguments); + if (argumentCompare !== "Equal" /* NodeComparisonResult.Equal */) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + const typeParamCompare = compareNodes(nodeA.typeArguments, nodeBCall.typeArguments); + if (typeParamCompare === "Equal" /* NodeComparisonResult.Equal */) { + return "Equal" /* NodeComparisonResult.Equal */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + } + case utils_1.AST_NODE_TYPES.ChainExpression: + // special case handling for ChainExpression because it's allowed to be a subset + return compareNodes(nodeA, nodeB.expression); + case utils_1.AST_NODE_TYPES.Identifier: + case utils_1.AST_NODE_TYPES.PrivateIdentifier: + if (nodeA.name === nodeB.name) { + return "Equal" /* NodeComparisonResult.Equal */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + case utils_1.AST_NODE_TYPES.Literal: { + const nodeBLiteral = nodeB; + if (nodeA.raw === nodeBLiteral.raw && + nodeA.value === nodeBLiteral.value) { + return "Equal" /* NodeComparisonResult.Equal */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + } + case utils_1.AST_NODE_TYPES.MemberExpression: { + const nodeBMember = nodeB; + if (nodeBMember.property.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + // Private identifiers in optional chaining is not currently allowed + // TODO - handle this once TS supports it (https://github.com/microsoft/TypeScript/issues/42734) + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // check for cases like + // foo.bar && foo.bar.baz + // ^^^^^^^ nodeA + // ^^^^^^^^^^^ nodeB + // result === Equal + // + // foo.bar && foo.bar.baz.bam + // ^^^^^^^ nodeA + // ^^^^^^^^^^^^^^^ nodeB + // result === Subset + // + // we don't want to check the property in this case + const aSubsetOfB = compareNodes(nodeA, nodeBMember.object); + if (aSubsetOfB !== "Invalid" /* NodeComparisonResult.Invalid */) { + return "Subset" /* NodeComparisonResult.Subset */; + } + if (nodeA.computed !== nodeBMember.computed) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // NOTE - we purposely ignore optional flag because for our purposes + // foo?.bar && foo.bar?.baz + // or + // foo.bar && foo?.bar?.baz + // are going to be exactly the same + const objectCompare = compareNodes(nodeA.object, nodeBMember.object); + if (objectCompare !== "Equal" /* NodeComparisonResult.Equal */) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + return compareNodes(nodeA.property, nodeBMember.property); + } + case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: + case utils_1.AST_NODE_TYPES.TemplateLiteral: { + const nodeBTemplate = nodeB; + const areQuasisEqual = nodeA.quasis.length === nodeBTemplate.quasis.length && + nodeA.quasis.every((elA, idx) => { + const elB = nodeBTemplate.quasis[idx]; + return elA.value.cooked === elB.value.cooked; + }); + if (!areQuasisEqual) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + return "Equal" /* NodeComparisonResult.Equal */; + } + case utils_1.AST_NODE_TYPES.TemplateElement: { + const nodeBElement = nodeB; + if (nodeA.value.cooked === nodeBElement.value.cooked) { + return "Equal" /* NodeComparisonResult.Equal */; + } + return "Invalid" /* NodeComparisonResult.Invalid */; + } + // these aren't actually valid expressions. + // https://github.com/typescript-eslint/typescript-eslint/blob/20d7caee35ab84ae6381fdf04338c9e2b9e2bc48/packages/ast-spec/src/unions/Expression.ts#L37-L43 + case utils_1.AST_NODE_TYPES.ArrayPattern: + case utils_1.AST_NODE_TYPES.ObjectPattern: + /* istanbul ignore next */ + return "Invalid" /* NodeComparisonResult.Invalid */; + // update expression returns a number and also changes the value each time - so it makes no sense to compare the chain + case utils_1.AST_NODE_TYPES.UpdateExpression: + return "Invalid" /* NodeComparisonResult.Invalid */; + // yield returns the value passed to the `next` function, so it may not be the same each time - so it makes no sense to compare the chain + case utils_1.AST_NODE_TYPES.YieldExpression: + return "Invalid" /* NodeComparisonResult.Invalid */; + // general-case automatic handling of nodes to save us implementing every + // single case by hand. This just iterates the visitor keys to recursively + // check the children. + // + // Any specific logic cases or short-circuits should be listed as separate + // cases so that they don't fall into this generic handling + default: + return compareByVisiting(nodeA, nodeB); + } +} +const COMPARE_NODES_CACHE = new WeakMap(); +/** + * Compares two nodes' ASTs to determine if the A is equal to or a subset of B + */ +function compareNodes(nodeA, nodeB) { + if (nodeA == null || nodeB == null) { + if (nodeA !== nodeB) { + return "Invalid" /* NodeComparisonResult.Invalid */; + } + return "Equal" /* NodeComparisonResult.Equal */; + } + const cached = COMPARE_NODES_CACHE.get(nodeA)?.get(nodeB); + if (cached) { + return cached; + } + const result = compareNodesUncached(nodeA, nodeB); + let mapA = COMPARE_NODES_CACHE.get(nodeA); + if (mapA == null) { + mapA = new WeakMap(); + COMPARE_NODES_CACHE.set(nodeA, mapA); + } + mapA.set(nodeB, result); + return result; +} +//# sourceMappingURL=compareNodes.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map new file mode 100644 index 00000000..3dbc8cb5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"compareNodes.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/compareNodes.ts"],"names":[],"mappings":";;AAoYA,oCAwBC;AA1ZD,oDAA0D;AAC1D,kEAA8D;AAW9D,SAAS,aAAa,CACpB,MAAiB,EACjB,MAAiB;IAEjB,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC;QACpC,oDAAoC;IACtC,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACvC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAC/B,OAAO,GAAG,KAAK,GAAG,CAAC;QACrB,CAAC;QACD,OAAO,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,6CAA+B,CAAC;IACvE,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,EAAE,CAAC;QACX,gDAAkC;IACpC,CAAC;IACD,oDAAoC;AACtC,CAAC;AAED,SAAS,WAAW,CAAC,CAAU;IAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,IAAI,IAAI;QACT,MAAM,IAAI,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAC3B,CAAC;AACJ,CAAC;AACD,SAAS,mCAAmC,CAC1C,IAAmB;IAEnB,OAAO,CACL,CAAC,CACC,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QACrD,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,CAC5B;QACD,CAAC,CACC,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,cAAc;YACnD,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,CAC5B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C,CAAC;AACH,CAAC;AACD,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAGpC,CAAC;AACJ;;GAEG;AACH,SAAgB,YAAY,CAC1B,KAA2B,EAC3B,KAA2B;IAE3B,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QACnC,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACpB,oDAAoC;QACtC,CAAC;QACD,gDAAkC;IACpC,CAAC;IAED,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1D,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,IAAI,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,IAAI,GAAG,IAAI,OAAO,EAAE,CAAC;QACrB,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACxB,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js new file mode 100644 index 00000000..1aaafd1c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js @@ -0,0 +1,279 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.gatherLogicalOperands = gatherLogicalOperands; +const utils_1 = require("@typescript-eslint/utils"); +const ts_api_utils_1 = require("ts-api-utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../../util"); +const NULLISH_FLAGS = ts.TypeFlags.Null | ts.TypeFlags.Undefined; +function isValidFalseBooleanCheckType(node, disallowFalseyLiteral, parserServices, options) { + const type = parserServices.getTypeAtLocation(node); + const types = (0, ts_api_utils_1.unionTypeParts)(type); + if (disallowFalseyLiteral && + /* + ``` + declare const x: false | {a: string}; + x && x.a; + !x || x.a; + ``` + + We don't want to consider these two cases because the boolean expression + narrows out the non-nullish falsy cases - so converting the chain to `x?.a` + would introduce a build error + */ (types.some(t => (0, ts_api_utils_1.isBooleanLiteralType)(t) && t.intrinsicName === 'false') || + types.some(t => (0, ts_api_utils_1.isStringLiteralType)(t) && t.value === '') || + types.some(t => (0, ts_api_utils_1.isNumberLiteralType)(t) && t.value === 0) || + types.some(t => (0, ts_api_utils_1.isBigIntLiteralType)(t) && t.value.base10Value === '0'))) { + return false; + } + let allowedFlags = NULLISH_FLAGS | ts.TypeFlags.Object; + if (options.checkAny === true) { + allowedFlags |= ts.TypeFlags.Any; + } + if (options.checkUnknown === true) { + allowedFlags |= ts.TypeFlags.Unknown; + } + if (options.checkString === true) { + allowedFlags |= ts.TypeFlags.StringLike; + } + if (options.checkNumber === true) { + allowedFlags |= ts.TypeFlags.NumberLike; + } + if (options.checkBoolean === true) { + allowedFlags |= ts.TypeFlags.BooleanLike; + } + if (options.checkBigInt === true) { + allowedFlags |= ts.TypeFlags.BigIntLike; + } + return types.every(t => (0, util_1.isTypeFlagSet)(t, allowedFlags)); +} +function gatherLogicalOperands(node, parserServices, sourceCode, options) { + const result = []; + const { newlySeenLogicals, operands } = flattenLogicalOperands(node); + for (const operand of operands) { + const areMoreOperands = operand !== operands.at(-1); + switch (operand.type) { + case utils_1.AST_NODE_TYPES.BinaryExpression: { + // check for "yoda" style logical: null != x + const { comparedExpression, comparedValue, isYoda } = (() => { + // non-yoda checks are by far the most common, so check for them first + const comparedValueRight = getComparisonValueType(operand.right); + if (comparedValueRight) { + return { + comparedExpression: operand.left, + comparedValue: comparedValueRight, + isYoda: false, + }; + } + return { + comparedExpression: operand.right, + comparedValue: getComparisonValueType(operand.left), + isYoda: true, + }; + })(); + if (comparedValue === "UndefinedStringLiteral" /* ComparisonValueType.UndefinedStringLiteral */) { + if (comparedExpression.type === utils_1.AST_NODE_TYPES.UnaryExpression && + comparedExpression.operator === 'typeof') { + const argument = comparedExpression.argument; + if (argument.type === utils_1.AST_NODE_TYPES.Identifier && + // typeof window === 'undefined' + (0, util_1.isReferenceToGlobalFunction)(argument.name, argument, sourceCode)) { + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + } + // typeof x.y === 'undefined' + result.push({ + comparedName: comparedExpression.argument, + comparisonType: operand.operator.startsWith('!') + ? "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ + : "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */, + isYoda, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + continue; + } + // y === 'undefined' + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + } + switch (operand.operator) { + case '!=': + case '==': + if (comparedValue === "Null" /* ComparisonValueType.Null */ || + comparedValue === "Undefined" /* ComparisonValueType.Undefined */) { + // x == null, x == undefined + result.push({ + comparedName: comparedExpression, + comparisonType: operand.operator.startsWith('!') + ? "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */ + : "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */, + isYoda, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + continue; + } + // x == something :( + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + case '!==': + case '===': { + const comparedName = comparedExpression; + switch (comparedValue) { + case "Null" /* ComparisonValueType.Null */: + result.push({ + comparedName, + comparisonType: operand.operator.startsWith('!') + ? "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ + : "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */, + isYoda, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + continue; + case "Undefined" /* ComparisonValueType.Undefined */: + result.push({ + comparedName, + comparisonType: operand.operator.startsWith('!') + ? "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ + : "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */, + isYoda, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + continue; + default: + // x === something :( + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + } + } + } + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + } + case utils_1.AST_NODE_TYPES.UnaryExpression: + if (operand.operator === '!' && + isValidFalseBooleanCheckType(operand.argument, areMoreOperands && node.operator === '||', parserServices, options)) { + result.push({ + comparedName: operand.argument, + comparisonType: "NotBoolean" /* NullishComparisonType.NotBoolean */, + isYoda: false, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + continue; + } + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + case utils_1.AST_NODE_TYPES.LogicalExpression: + // explicitly ignore the mixed logical expression cases + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + continue; + default: + if (isValidFalseBooleanCheckType(operand, areMoreOperands && node.operator === '&&', parserServices, options)) { + result.push({ + comparedName: operand, + comparisonType: "Boolean" /* NullishComparisonType.Boolean */, + isYoda: false, + node: operand, + type: "Valid" /* OperandValidity.Valid */, + }); + } + else { + result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); + } + continue; + } + } + return { + newlySeenLogicals, + operands: result, + }; + /* + The AST is always constructed such the first element is always the deepest element. + I.e. for this code: `foo && foo.bar && foo.bar.baz && foo.bar.baz.buzz` + The AST will look like this: + { + left: { + left: { + left: foo + right: foo.bar + } + right: foo.bar.baz + } + right: foo.bar.baz.buzz + } + + So given any logical expression, we can perform a depth-first traversal to get + the operands in order. + + Note that this function purposely does not inspect mixed logical expressions + like `foo || foo.bar && foo.bar.baz` - separate selector + */ + function flattenLogicalOperands(node) { + const operands = []; + const newlySeenLogicals = new Set([node]); + const stack = [node.right, node.left]; + let current; + while ((current = stack.pop())) { + if (current.type === utils_1.AST_NODE_TYPES.LogicalExpression && + current.operator === node.operator) { + newlySeenLogicals.add(current); + stack.push(current.right); + stack.push(current.left); + } + else { + operands.push(current); + } + } + return { + newlySeenLogicals, + operands, + }; + } + function getComparisonValueType(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.Literal: + // eslint-disable-next-line eqeqeq -- intentional exact comparison against null + if (node.value === null && node.raw === 'null') { + return "Null" /* ComparisonValueType.Null */; + } + if (node.value === 'undefined') { + return "UndefinedStringLiteral" /* ComparisonValueType.UndefinedStringLiteral */; + } + return null; + case utils_1.AST_NODE_TYPES.Identifier: + if (node.name === 'undefined') { + return "Undefined" /* ComparisonValueType.Undefined */; + } + return null; + } + return null; + } +} +//# sourceMappingURL=gatherLogicalOperands.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map new file mode 100644 index 00000000..0360591d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map @@ -0,0 +1 @@ +{"version":3,"file":"gatherLogicalOperands.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/gatherLogicalOperands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,sDAkQC;AAhXD,oDAA0D;AAC1D,+CAMsB;AACtB,+CAAiC;AAIjC,qCAAwE;AA4CxE,MAAM,aAAa,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;AACjE,SAAS,4BAA4B,CACnC,IAAmB,EACnB,qBAA8B,EAC9B,cAAiD,EACjD,OAAmC;IAEnC,MAAM,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,IACE,qBAAqB;QACrB;;;;;;;;;;UAUE,CAAC,CAAC,KAAK,CAAC,IAAI,CACZ,CAAC,CAAC,EAAE,CAAC,IAAA,mCAAoB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,CAC5D;YACC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;YACxD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,I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AAO;YACL,iBAAiB;YACjB,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,SAAS,sBAAsB,CAC7B,IAAmB;QAEnB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,sBAAc,CAAC,OAAO;gBACzB,+EAA+E;gBAC/E,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;oBAC/C,6CAAgC;gBAClC,CAAC;gBACD,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;oBAC/B,iFAAkD;gBACpD,CAAC;gBACD,OAAO,IAAI,CAAC;YAEd,KAAK,sBAAc,CAAC,UAAU;gBAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC9B,uDAAqC;gBACvC,CAAC;gBACD,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js new file mode 100644 index 00000000..c1dd5fb4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js @@ -0,0 +1,147 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const analyzeChain_1 = require("./prefer-optional-chain-utils/analyzeChain"); +const checkNullishAndReport_1 = require("./prefer-optional-chain-utils/checkNullishAndReport"); +const gatherLogicalOperands_1 = require("./prefer-optional-chain-utils/gatherLogicalOperands"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-optional-chain', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: 'code', + hasSuggestions: true, + messages: { + optionalChainSuggest: 'Change to an optional chain.', + preferOptionalChain: "Prefer using an optional chain expression instead, as it's more concise and easier to read.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: { + type: 'boolean', + description: 'Allow autofixers that will change the return type of the expression. This option is considered unsafe as it may break the build.', + }, + checkAny: { + type: 'boolean', + description: 'Check operands that are typed as `any` when inspecting "loose boolean" operands.', + }, + checkBigInt: { + type: 'boolean', + description: 'Check operands that are typed as `bigint` when inspecting "loose boolean" operands.', + }, + checkBoolean: { + type: 'boolean', + description: 'Check operands that are typed as `boolean` when inspecting "loose boolean" operands.', + }, + checkNumber: { + type: 'boolean', + description: 'Check operands that are typed as `number` when inspecting "loose boolean" operands.', + }, + checkString: { + type: 'boolean', + description: 'Check operands that are typed as `string` when inspecting "loose boolean" operands.', + }, + checkUnknown: { + type: 'boolean', + description: 'Check operands that are typed as `unknown` when inspecting "loose boolean" operands.', + }, + requireNullish: { + type: 'boolean', + description: 'Skip operands that are not typed with `null` and/or `undefined` when inspecting "loose boolean" operands.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false, + checkAny: true, + checkBigInt: true, + checkBoolean: true, + checkNumber: true, + checkString: true, + checkUnknown: true, + requireNullish: false, + }, + ], + create(context, [options]) { + const parserServices = (0, util_1.getParserServices)(context); + const seenLogicals = new Set(); + return { + // specific handling for `(foo ?? {}).bar` / `(foo || {}).bar` + 'LogicalExpression[operator!="??"]'(node) { + if (seenLogicals.has(node)) { + return; + } + const { newlySeenLogicals, operands } = (0, gatherLogicalOperands_1.gatherLogicalOperands)(node, parserServices, context.sourceCode, options); + for (const logical of newlySeenLogicals) { + seenLogicals.add(logical); + } + let currentChain = []; + for (const operand of operands) { + if (operand.type === "Invalid" /* OperandValidity.Invalid */) { + (0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain); + currentChain = []; + } + else { + currentChain.push(operand); + } + } + // make sure to check whatever's left + if (currentChain.length > 0) { + (0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain); + } + }, + 'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(node) { + const leftNode = node.left; + const rightNode = node.right; + const parentNode = node.parent; + const isRightNodeAnEmptyObjectLiteral = rightNode.type === utils_1.AST_NODE_TYPES.ObjectExpression && + rightNode.properties.length === 0; + if (!isRightNodeAnEmptyObjectLiteral || + parentNode.type !== utils_1.AST_NODE_TYPES.MemberExpression || + parentNode.optional) { + return; + } + seenLogicals.add(node); + function isLeftSideLowerPrecedence() { + const logicalTsNode = parserServices.esTreeNodeToTSNodeMap.get(node); + const leftTsNode = parserServices.esTreeNodeToTSNodeMap.get(leftNode); + const leftPrecedence = (0, util_1.getOperatorPrecedence)(leftTsNode.kind, logicalTsNode.operatorToken.kind); + return leftPrecedence < util_1.OperatorPrecedence.LeftHandSide; + } + (0, checkNullishAndReport_1.checkNullishAndReport)(context, parserServices, options, [leftNode], { + node: parentNode, + messageId: 'preferOptionalChain', + suggest: [ + { + messageId: 'optionalChainSuggest', + fix: (fixer) => { + const leftNodeText = context.sourceCode.getText(leftNode); + // Any node that is made of an operator with higher or equal precedence, + const maybeWrappedLeftNode = isLeftSideLowerPrecedence() + ? `(${leftNodeText})` + : leftNodeText; + const propertyToBeOptionalText = context.sourceCode.getText(parentNode.property); + const maybeWrappedProperty = parentNode.computed + ? `[${propertyToBeOptionalText}]` + : propertyToBeOptionalText; + return fixer.replaceTextRange(parentNode.range, `${maybeWrappedLeftNode}?.${maybeWrappedProperty}`); + }, + }, + ], + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-optional-chain.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map new file mode 100644 index 00000000..822735ac --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-optional-chain.js","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":";;AAGA,oDAA0D;AAQ1D,kCAKiB;AACjB,6EAA0E;AAC1E,+FAA4F;AAC5F,+FAG6D;AAE7D,kBAAe,IAAA,iBAAU,EAGvB;IACA,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yHAAyH;YAC3H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,oBAAoB,EAAE,8BAA8B;YACpD,mBAAmB,EACjB,6FAA6F;SAChG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kEAAkE,EAAE;wBAClE,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,kIAAkI;qBACrI;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,kFAAkF;qBACrF;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qFAAqF;qBACxF;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,sFAAsF;qBACzF;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qFAAqF;qBACxF;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,qFAAqF;qBACxF;oBACD,YAAY,EAAE;wB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AAC,EAAE;oBAClE,IAAI,EAAE,UAAU;oBAChB,SAAS,EAAE,qBAAqB;oBAChC,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,sBAAsB;4BACjC,GAAG,EAAE,CAAC,KAAK,EAAW,EAAE;gCACtB,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gCAC1D,wEAAwE;gCACxE,MAAM,oBAAoB,GAAG,yBAAyB,EAAE;oCACtD,CAAC,CAAC,IAAI,YAAY,GAAG;oCACrB,CAAC,CAAC,YAAY,CAAC;gCACjB,MAAM,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CACzD,UAAU,CAAC,QAAQ,CACpB,CAAC;gCACF,MAAM,oBAAoB,GAAG,UAAU,CAAC,QAAQ;oCAC9C,CAAC,CAAC,IAAI,wBAAwB,GAAG;oCACjC,CAAC,CAAC,wBAAwB,CAAC;gCAC7B,OAAO,KAAK,CAAC,gBAAgB,CAC3B,UAAU,CAAC,KAAK,EAChB,GAAG,oBAAoB,KAAK,oBAAoB,EAAE,CACnD,CAAC;4BACJ,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js new file mode 100644 index 00000000..e32b1859 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js @@ -0,0 +1,106 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-promise-reject-errors', + meta: { + type: 'suggestion', + docs: { + description: 'Require using Error objects as Promise rejection reasons', + extendsBaseRule: true, + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + rejectAnError: 'Expected the Promise rejection reason to be an Error.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowEmptyReject: { + type: 'boolean', + description: 'Whether to allow calls to `Promise.reject()` with no arguments.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowEmptyReject: false, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + function checkRejectCall(callExpression) { + const argument = callExpression.arguments.at(0); + if (argument) { + const type = services.getTypeAtLocation(argument); + if ((0, util_1.isErrorLike)(services.program, type) || + (0, util_1.isReadonlyErrorLike)(services.program, type)) { + return; + } + } + else if (options.allowEmptyReject) { + return; + } + context.report({ + node: callExpression, + messageId: 'rejectAnError', + }); + } + function skipChainExpression(node) { + return node.type === utils_1.AST_NODE_TYPES.ChainExpression + ? node.expression + : node; + } + function typeAtLocationIsLikePromise(node) { + const type = services.getTypeAtLocation(node); + return ((0, util_1.isPromiseConstructorLike)(services.program, type) || + (0, util_1.isPromiseLike)(services.program, type)); + } + return { + CallExpression(node) { + const callee = skipChainExpression(node.callee); + if (callee.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return; + } + if (!(0, util_1.isStaticMemberAccessOfValue)(callee, context, 'reject') || + !typeAtLocationIsLikePromise(callee.object)) { + return; + } + checkRejectCall(node); + }, + NewExpression(node) { + const callee = skipChainExpression(node.callee); + if (!(0, util_1.isPromiseConstructorLike)(services.program, services.getTypeAtLocation(callee))) { + return; + } + const executor = node.arguments.at(0); + if (!executor || !(0, util_1.isFunction)(executor)) { + return; + } + const rejectParamNode = executor.params.at(1); + if (!rejectParamNode || !(0, util_1.isIdentifier)(rejectParamNode)) { + return; + } + // reject param is always present in variables declared by executor + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const rejectVariable = context.sourceCode + .getDeclaredVariables(executor) + .find(variable => variable.identifiers.includes(rejectParamNode)); + rejectVariable.references.forEach(ref => { + if (ref.identifier.parent.type !== utils_1.AST_NODE_TYPES.CallExpression || + ref.identifier !== ref.identifier.parent.callee) { + return; + } + checkRejectCall(ref.identifier.parent); + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-promise-reject-errors.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map new file mode 100644 index 00000000..a75017cf --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-promise-reject-errors.js","sourceRoot":"","sources":["../../src/rules/prefer-promise-reject-errors.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAUiB;AAUjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,uDAAuD;SACvE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,iEAAiE;qBACpE;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,KAAK;SACxB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C,SAAS,eAAe,CAAC,cAAuC;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AAC;oBAED,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBACzC,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js new file mode 100644 index 00000000..56c32ff8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js @@ -0,0 +1,90 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-readonly-parameter-types', + meta: { + type: 'suggestion', + docs: { + description: 'Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs', + requiresTypeChecking: true, + }, + messages: { + shouldBeReadonly: 'Parameter should be a read only type.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allow: { + ...util_1.readonlynessOptionsSchema.properties.allow, + description: 'An array of type specifiers to ignore.', + }, + checkParameterProperties: { + type: 'boolean', + description: 'Whether to check class parameter properties.', + }, + ignoreInferredTypes: { + type: 'boolean', + description: "Whether to ignore parameters which don't explicitly specify a type.", + }, + treatMethodsAsReadonly: { + ...util_1.readonlynessOptionsSchema.properties.treatMethodsAsReadonly, + description: 'Whether to treat all mutable methods as though they are readonly.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allow: util_1.readonlynessOptionsDefaults.allow, + checkParameterProperties: true, + ignoreInferredTypes: false, + treatMethodsAsReadonly: util_1.readonlynessOptionsDefaults.treatMethodsAsReadonly, + }, + ], + create(context, [{ allow, checkParameterProperties, ignoreInferredTypes, treatMethodsAsReadonly, },]) { + const services = (0, util_1.getParserServices)(context); + return { + [[ + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.FunctionExpression, + utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, + utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, + utils_1.AST_NODE_TYPES.TSDeclareFunction, + utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, + utils_1.AST_NODE_TYPES.TSFunctionType, + utils_1.AST_NODE_TYPES.TSMethodSignature, + ].join(', ')](node) { + for (const param of node.params) { + if (!checkParameterProperties && + param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { + continue; + } + const actualParam = param.type === utils_1.AST_NODE_TYPES.TSParameterProperty + ? param.parameter + : param; + if (ignoreInferredTypes && actualParam.typeAnnotation == null) { + continue; + } + const type = services.getTypeAtLocation(actualParam); + const isReadOnly = (0, util_1.isTypeReadonly)(services.program, type, { + allow, + treatMethodsAsReadonly: !!treatMethodsAsReadonly, + }); + if (!isReadOnly) { + context.report({ + node: actualParam, + messageId: 'shouldBeReadonly', + }); + } + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-readonly-parameter-types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map new file mode 100644 index 00000000..bd8a53ab --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-readonly-parameter-types.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly-parameter-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAI1D,kCAMiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YA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IAAI,CAAC,IAAI,CAAC,CAAC,CACX,IAS8B;gBAE9B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBAChC,IACE,CAAC,wBAAwB;wBACzB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,EACjD,CAAC;wBACD,SAAS;oBACX,CAAC;oBAED,MAAM,WAAW,GACf,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;wBAC/C,CAAC,CAAC,KAAK,CAAC,SAAS;wBACjB,CAAC,CAAC,KAAK,CAAC;oBAEZ,IAAI,mBAAmB,IAAI,WAAW,CAAC,cAAc,IAAI,IAAI,EAAE,CAAC;wBAC9D,SAAS;oBACX,CAAC;oBAED,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;oBACrD,MAAM,UAAU,GAAG,IAAA,qBAAc,EAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE;wBACxD,KAAK;wBACL,sBAAsB,EAAE,CAAC,CAAC,sBAAsB;qBACjD,CAAC,CAAC;oBAEH,IAAI,CAAC,UAAU,EAAE,CAAC;wBAChB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js new file mode 100644 index 00000000..2a40caa1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js @@ -0,0 +1,326 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getMemberHeadLoc_1 = require("../util/getMemberHeadLoc"); +const functionScopeBoundaries = [ + utils_1.AST_NODE_TYPES.ArrowFunctionExpression, + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.FunctionExpression, + utils_1.AST_NODE_TYPES.MethodDefinition, +].join(', '); +exports.default = (0, util_1.createRule)({ + name: 'prefer-readonly', + meta: { + type: 'suggestion', + docs: { + description: "Require private members to be marked as `readonly` if they're never modified outside of the constructor", + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + preferReadonly: "Member '{{name}}' is never reassigned; mark it as `readonly`.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + onlyInlineLambdas: { + type: 'boolean', + description: 'Whether to restrict checking only to members immediately assigned a lambda value.', + }, + }, + }, + ], + }, + defaultOptions: [{ onlyInlineLambdas: false }], + create(context, [{ onlyInlineLambdas }]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const classScopeStack = []; + function handlePropertyAccessExpression(node, parent, classScope) { + if (ts.isBinaryExpression(parent)) { + handleParentBinaryExpression(node, parent, classScope); + return; + } + if (ts.isDeleteExpression(parent) || isDestructuringAssignment(node)) { + classScope.addVariableModification(node); + return; + } + if (ts.isPostfixUnaryExpression(parent) || + ts.isPrefixUnaryExpression(parent)) { + handleParentPostfixOrPrefixUnaryExpression(parent, classScope); + } + } + function handleParentBinaryExpression(node, parent, classScope) { + if (parent.left === node && + tsutils.isAssignmentKind(parent.operatorToken.kind)) { + classScope.addVariableModification(node); + } + } + function handleParentPostfixOrPrefixUnaryExpression(node, classScope) { + if (node.operator === ts.SyntaxKind.PlusPlusToken || + node.operator === ts.SyntaxKind.MinusMinusToken) { + classScope.addVariableModification(node.operand); + } + } + function isDestructuringAssignment(node) { + let current = node.parent; + while (current) { + const parent = current.parent; + if (ts.isObjectLiteralExpression(parent) || + ts.isArrayLiteralExpression(parent) || + ts.isSpreadAssignment(parent) || + (ts.isSpreadElement(parent) && + ts.isArrayLiteralExpression(parent.parent))) { + current = parent; + } + else if (ts.isBinaryExpression(parent) && + !ts.isPropertyAccessExpression(current)) { + return (parent.left === current && + parent.operatorToken.kind === ts.SyntaxKind.EqualsToken); + } + else { + break; + } + } + return false; + } + function isFunctionScopeBoundaryInStack(node) { + if (classScopeStack.length === 0) { + return false; + } + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + if (ts.isConstructorDeclaration(tsNode)) { + return false; + } + return tsutils.isFunctionScopeBoundary(tsNode); + } + function getEsNodesFromViolatingNode(violatingNode) { + return { + esNode: services.tsNodeToESTreeNodeMap.get(violatingNode), + nameNode: services.tsNodeToESTreeNodeMap.get(violatingNode.name), + }; + } + return { + [`${functionScopeBoundaries}:exit`](node) { + if (utils_1.ASTUtils.isConstructor(node)) { + classScopeStack[classScopeStack.length - 1].exitConstructor(); + } + else if (isFunctionScopeBoundaryInStack(node)) { + classScopeStack[classScopeStack.length - 1].exitNonConstructor(); + } + }, + 'ClassDeclaration, ClassExpression'(node) { + classScopeStack.push(new ClassScope(checker, services.esTreeNodeToTSNodeMap.get(node), onlyInlineLambdas)); + }, + 'ClassDeclaration, ClassExpression:exit'() { + const finalizedClassScope = (0, util_1.nullThrows)(classScopeStack.pop(), 'Stack should exist on class exit'); + for (const violatingNode of finalizedClassScope.finalizeUnmodifiedPrivateNonReadonlys()) { + const { esNode, nameNode } = getEsNodesFromViolatingNode(violatingNode); + const reportNodeOrLoc = (() => { + switch (esNode.type) { + case utils_1.AST_NODE_TYPES.MethodDefinition: + case utils_1.AST_NODE_TYPES.PropertyDefinition: + case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: + return { loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, esNode) }; + case utils_1.AST_NODE_TYPES.TSParameterProperty: + return { + loc: (0, getMemberHeadLoc_1.getParameterPropertyHeadLoc)(context.sourceCode, esNode, nameNode.name), + }; + default: + return { node: esNode }; + } + })(); + context.report({ + ...reportNodeOrLoc, + messageId: 'preferReadonly', + data: { + name: context.sourceCode.getText(nameNode), + }, + fix: fixer => fixer.insertTextBefore(nameNode, 'readonly '), + }); + } + }, + [functionScopeBoundaries](node) { + if (utils_1.ASTUtils.isConstructor(node)) { + classScopeStack[classScopeStack.length - 1].enterConstructor(services.esTreeNodeToTSNodeMap.get(node)); + } + else if (isFunctionScopeBoundaryInStack(node)) { + classScopeStack[classScopeStack.length - 1].enterNonConstructor(); + } + }, + MemberExpression(node) { + if (classScopeStack.length !== 0 && !node.computed) { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + handlePropertyAccessExpression(tsNode, tsNode.parent, classScopeStack[classScopeStack.length - 1]); + } + }, + }; + }, +}); +const OUTSIDE_CONSTRUCTOR = -1; +const DIRECTLY_INSIDE_CONSTRUCTOR = 0; +var TypeToClassRelation; +(function (TypeToClassRelation) { + TypeToClassRelation[TypeToClassRelation["ClassAndInstance"] = 0] = "ClassAndInstance"; + TypeToClassRelation[TypeToClassRelation["Class"] = 1] = "Class"; + TypeToClassRelation[TypeToClassRelation["Instance"] = 2] = "Instance"; + TypeToClassRelation[TypeToClassRelation["None"] = 3] = "None"; +})(TypeToClassRelation || (TypeToClassRelation = {})); +class ClassScope { + checker; + onlyInlineLambdas; + classType; + constructorScopeDepth = OUTSIDE_CONSTRUCTOR; + memberVariableModifications = new Set(); + privateModifiableMembers = new Map(); + privateModifiableStatics = new Map(); + staticVariableModifications = new Set(); + constructor(checker, classNode, onlyInlineLambdas) { + this.checker = checker; + this.onlyInlineLambdas = onlyInlineLambdas; + const classType = checker.getTypeAtLocation(classNode); + if (tsutils.isIntersectionType(classType)) { + this.classType = classType.types[0]; + } + else { + this.classType = classType; + } + for (const member of classNode.members) { + if (ts.isPropertyDeclaration(member)) { + this.addDeclaredVariable(member); + } + } + } + addDeclaredVariable(node) { + if (!(tsutils.isModifierFlagSet(node, ts.ModifierFlags.Private) || + node.name.kind === ts.SyntaxKind.PrivateIdentifier) || + tsutils.isModifierFlagSet(node, ts.ModifierFlags.Accessor | ts.ModifierFlags.Readonly) || + ts.isComputedPropertyName(node.name)) { + return; + } + if (this.onlyInlineLambdas && + node.initializer !== undefined && + !ts.isArrowFunction(node.initializer)) { + return; + } + (tsutils.isModifierFlagSet(node, ts.ModifierFlags.Static) + ? this.privateModifiableStatics + : this.privateModifiableMembers).set(node.name.getText(), node); + } + addVariableModification(node) { + const modifierType = this.checker.getTypeAtLocation(node.expression); + const relationOfModifierTypeToClass = this.getTypeToClassRelation(modifierType); + if (relationOfModifierTypeToClass === TypeToClassRelation.Instance && + this.constructorScopeDepth === DIRECTLY_INSIDE_CONSTRUCTOR) { + return; + } + if (relationOfModifierTypeToClass === TypeToClassRelation.Instance || + relationOfModifierTypeToClass === TypeToClassRelation.ClassAndInstance) { + this.memberVariableModifications.add(node.name.text); + } + if (relationOfModifierTypeToClass === TypeToClassRelation.Class || + relationOfModifierTypeToClass === TypeToClassRelation.ClassAndInstance) { + this.staticVariableModifications.add(node.name.text); + } + } + enterConstructor(node) { + this.constructorScopeDepth = DIRECTLY_INSIDE_CONSTRUCTOR; + for (const parameter of node.parameters) { + if (tsutils.isModifierFlagSet(parameter, ts.ModifierFlags.Private)) { + this.addDeclaredVariable(parameter); + } + } + } + enterNonConstructor() { + if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { + this.constructorScopeDepth += 1; + } + } + exitConstructor() { + this.constructorScopeDepth = OUTSIDE_CONSTRUCTOR; + } + exitNonConstructor() { + if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { + this.constructorScopeDepth -= 1; + } + } + finalizeUnmodifiedPrivateNonReadonlys() { + this.memberVariableModifications.forEach(variableName => { + this.privateModifiableMembers.delete(variableName); + }); + this.staticVariableModifications.forEach(variableName => { + this.privateModifiableStatics.delete(variableName); + }); + return [ + ...this.privateModifiableMembers.values(), + ...this.privateModifiableStatics.values(), + ]; + } + getTypeToClassRelation(type) { + if (type.isIntersection()) { + let result = TypeToClassRelation.None; + for (const subType of type.types) { + const subTypeResult = this.getTypeToClassRelation(subType); + switch (subTypeResult) { + case TypeToClassRelation.Class: + if (result === TypeToClassRelation.Instance) { + return TypeToClassRelation.ClassAndInstance; + } + result = TypeToClassRelation.Class; + break; + case TypeToClassRelation.Instance: + if (result === TypeToClassRelation.Class) { + return TypeToClassRelation.ClassAndInstance; + } + result = TypeToClassRelation.Instance; + break; + } + } + return result; + } + if (type.isUnion()) { + // any union of class/instance and something else will prevent access to + // private members, so we assume that union consists only of classes + // or class instances, because otherwise tsc will report an error + return this.getTypeToClassRelation(type.types[0]); + } + if (!type.getSymbol() || !(0, util_1.typeIsOrHasBaseType)(type, this.classType)) { + return TypeToClassRelation.None; + } + const typeIsClass = tsutils.isObjectType(type) && + tsutils.isObjectFlagSet(type, ts.ObjectFlags.Anonymous); + if (typeIsClass) { + return TypeToClassRelation.Class; + } + return TypeToClassRelation.Instance; + } +} +//# sourceMappingURL=prefer-readonly.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map new file mode 100644 index 00000000..73488f3e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AACjB,+DAGkC;AASlC,MAAM,uBAAuB,GAAG;IAC9B,sBAAc,CAAC,uBAAuB;IACtC,sBAAc,CAAC,mBAAmB;IAClC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,gBAAgB;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yGAAyG;YAC3G,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,mFAAmF;qBACtF;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACrC,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,O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,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAA,0BAAmB,EAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACpE,OAAO,mBAAmB,CAAC,IAAI,CAAC;QAClC,CAAC;QAED,MAAM,WAAW,GACf,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;YAC1B,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAE1D,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,mBAAmB,CAAC,KAAK,CAAC;QACnC,CAAC;QAED,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACtC,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js new file mode 100644 index 00000000..d693d337 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js @@ -0,0 +1,93 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-reduce-type-parameter', + meta: { + type: 'problem', + docs: { + description: 'Enforce using type parameter when calling `Array#reduce` instead of casting', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + preferTypeParameter: 'Unnecessary cast: Array#reduce accepts a type parameter for the default value.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function isArrayType(type) { + return tsutils + .unionTypeParts(type) + .every(unionPart => tsutils + .intersectionTypeParts(unionPart) + .every(t => checker.isArrayType(t) || checker.isTupleType(t))); + } + return { + 'CallExpression > MemberExpression.callee'(callee) { + if (!(0, util_1.isStaticMemberAccessOfValue)(callee, context, 'reduce')) { + return; + } + const [, secondArg] = callee.parent.arguments; + if (callee.parent.arguments.length < 2 || !(0, util_1.isTypeAssertion)(secondArg)) { + return; + } + // Get the symbol of the `reduce` method. + const calleeObjType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); + // Check the owner type of the `reduce` method. + if (isArrayType(calleeObjType)) { + context.report({ + node: secondArg, + messageId: 'preferTypeParameter', + fix: fixer => { + const fixes = [ + fixer.removeRange([ + secondArg.range[0], + secondArg.expression.range[0], + ]), + fixer.removeRange([ + secondArg.expression.range[1], + secondArg.range[1], + ]), + ]; + if (!callee.parent.typeArguments) { + fixes.push(fixer.insertTextAfter(callee, `<${context.sourceCode.getText(secondArg.typeAnnotation)}>`)); + } + return fixes; + }, + }); + return; + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-reduce-type-parameter.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map new file mode 100644 index 00000000..f65b9b1e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sDAAwC;AAExC,kCAMiB;AAMjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6EAA6E;YAC/E,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,mBAAmB,EACjB,gFAAgF;SACnF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,WAAW,CAAC,IAAa;YAChC,OAAO,OAAO;iBACX,cAAc,CAAC,IAAI,CAAC;iBACpB,KAAK,CAAC,SAAS,CAAC,EAAE,CACjB,OAAO;iBACJ,qBAAqB,CAAC,SAAS,CAAC;iBAChC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAChE,CAAC;QACN,CAAC;QAED,OAAO;YACL,0CAA0C,CACxC,MAAgD;gBAEhD,IAAI,CAAC,IAAA,kCAA2B,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC;oBAC5D,OAAO;gBACT,CAA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slint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js new file mode 100644 index 00000000..8e025989 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js @@ -0,0 +1,169 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +var ArgumentType; +(function (ArgumentType) { + ArgumentType[ArgumentType["Other"] = 0] = "Other"; + ArgumentType[ArgumentType["String"] = 1] = "String"; + ArgumentType[ArgumentType["RegExp"] = 2] = "RegExp"; + ArgumentType[ArgumentType["Both"] = 3] = "Both"; +})(ArgumentType || (ArgumentType = {})); +exports.default = (0, util_1.createRule)({ + name: 'prefer-regexp-exec', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce `RegExp#exec` over `String#match` if no global flag is provided', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + regExpExecOverStringMatch: 'Use the `RegExp#exec()` method instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const globalScope = context.sourceCode.getScope(context.sourceCode.ast); + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + /** + * Check if a given node type is a string. + * @param type The node type to check. + */ + function isStringType(type) { + return (0, util_1.getTypeName)(checker, type) === 'string'; + } + /** + * Check if a given node type is a RegExp. + * @param type The node type to check. + */ + function isRegExpType(type) { + return (0, util_1.getTypeName)(checker, type) === 'RegExp'; + } + function collectArgumentTypes(types) { + let result = ArgumentType.Other; + for (const type of types) { + if (isRegExpType(type)) { + result |= ArgumentType.RegExp; + } + else if (isStringType(type)) { + result |= ArgumentType.String; + } + } + return result; + } + /** + * Returns true if and only if we have syntactic proof that the /g flag is + * absent. Returns false in all other cases (i.e. it still might or might + * not contain the global flag). + */ + function definitelyDoesNotContainGlobalFlag(node) { + if ((node.type === utils_1.AST_NODE_TYPES.CallExpression || + node.type === utils_1.AST_NODE_TYPES.NewExpression) && + node.callee.type === utils_1.AST_NODE_TYPES.Identifier && + node.callee.name === 'RegExp') { + const flags = node.arguments.at(1); + return !(flags?.type === utils_1.AST_NODE_TYPES.Literal && + typeof flags.value === 'string' && + flags.value.includes('g')); + } + return false; + } + return { + 'CallExpression[arguments.length=1] > MemberExpression'(memberNode) { + if (!(0, util_1.isStaticMemberAccessOfValue)(memberNode, context, 'match')) { + return; + } + const objectNode = memberNode.object; + const callNode = memberNode.parent; + const [argumentNode] = callNode.arguments; + const argumentValue = (0, util_1.getStaticValue)(argumentNode, globalScope); + if (!isStringType(services.getTypeAtLocation(objectNode))) { + return; + } + // Don't report regular expressions with global flag. + if ((!argumentValue && + !definitelyDoesNotContainGlobalFlag(argumentNode)) || + (argumentValue && + argumentValue.value instanceof RegExp && + argumentValue.value.flags.includes('g'))) { + return; + } + if (argumentNode.type === utils_1.AST_NODE_TYPES.Literal && + typeof argumentNode.value === 'string') { + let regExp; + try { + regExp = RegExp(argumentNode.value); + } + catch { + return; + } + return context.report({ + node: memberNode.property, + messageId: 'regExpExecOverStringMatch', + fix: (0, util_1.getWrappingFixer)({ + node: callNode, + innerNode: [objectNode], + sourceCode: context.sourceCode, + wrap: objectCode => `${regExp.toString()}.exec(${objectCode})`, + }), + }); + } + const argumentType = services.getTypeAtLocation(argumentNode); + const argumentTypes = collectArgumentTypes(tsutils.unionTypeParts(argumentType)); + switch (argumentTypes) { + case ArgumentType.RegExp: + return context.report({ + node: memberNode.property, + messageId: 'regExpExecOverStringMatch', + fix: (0, util_1.getWrappingFixer)({ + node: callNode, + innerNode: [objectNode, argumentNode], + sourceCode: context.sourceCode, + wrap: (objectCode, argumentCode) => `${argumentCode}.exec(${objectCode})`, + }), + }); + case ArgumentType.String: + return context.report({ + node: memberNode.property, + messageId: 'regExpExecOverStringMatch', + fix: (0, util_1.getWrappingFixer)({ + node: callNode, + innerNode: [objectNode, argumentNode], + sourceCode: context.sourceCode, + wrap: (objectCode, argumentCode) => `RegExp(${argumentCode}).exec(${objectCode})`, + }), + }); + } + }, + }; + }, +}); +//# sourceMappingURL=prefer-regexp-exec.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map new file mode 100644 index 00000000..a26df812 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAEjB,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,iDAAS,CAAA;IACT,mDAAe,CAAA;IACf,mDAAe,CAAA;IACf,+CAAsB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gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,UAAU,EAAE,OAAO,CAAC,UAAU;gCAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,GAAG,YAAY,SAAS,UAAU,GAAG;6BACxC,CAAC;yBACH,CAAC,CAAC;oBAEL,KAAK,YAAY,CAAC,MAAM;wBACtB,OAAO,OAAO,CAAC,MAAM,CAAC;4BACpB,IAAI,EAAE,UAAU,CAAC,QAAQ;4BACzB,SAAS,EAAE,2BAA2B;4BACtC,GAAG,EAAE,IAAA,uBAAgB,EAAC;gCACpB,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,UAAU,EAAE,OAAO,CAAC,UAAU;gCAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,UAAU,YAAY,UAAU,UAAU,GAAG;6BAChD,CAAC;yBACH,CAAC,CAAC;gBACP,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js new file mode 100644 index 00000000..e2fb4e8a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js @@ -0,0 +1,137 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-return-this-type', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce that `this` is used when only `this` type is returned', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + useThisType: 'Use `this` type instead.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function tryGetNameInType(name, typeNode) { + if (typeNode.type === utils_1.AST_NODE_TYPES.TSTypeReference && + typeNode.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + typeNode.typeName.name === name) { + return typeNode; + } + if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { + for (const type of typeNode.types) { + const found = tryGetNameInType(name, type); + if (found) { + return found; + } + } + } + return undefined; + } + function isThisSpecifiedInParameters(originalFunc) { + const firstArg = originalFunc.params.at(0); + return !!(firstArg?.type === utils_1.AST_NODE_TYPES.Identifier && firstArg.name === 'this'); + } + function isFunctionReturningThis(originalFunc, originalClass) { + if (isThisSpecifiedInParameters(originalFunc)) { + return false; + } + const func = services.esTreeNodeToTSNodeMap.get(originalFunc); + if (!func.body) { + return false; + } + const classType = services.getTypeAtLocation(originalClass); + if (func.body.kind !== ts.SyntaxKind.Block) { + const type = checker.getTypeAtLocation(func.body); + return classType.thisType === type; + } + let hasReturnThis = false; + let hasReturnClassType = false; + (0, util_1.forEachReturnStatement)(func.body, stmt => { + const expr = stmt.expression; + if (!expr) { + return; + } + // fast check + if (expr.kind === ts.SyntaxKind.ThisKeyword) { + hasReturnThis = true; + return; + } + const type = checker.getTypeAtLocation(expr); + if (classType === type) { + hasReturnClassType = true; + return true; + } + if (classType.thisType === type) { + hasReturnThis = true; + return; + } + return; + }); + return !hasReturnClassType && hasReturnThis; + } + function checkFunction(originalFunc, originalClass) { + const className = originalClass.id?.name; + if (!className || !originalFunc.returnType) { + return; + } + const node = tryGetNameInType(className, originalFunc.returnType.typeAnnotation); + if (!node) { + return; + } + if (isFunctionReturningThis(originalFunc, originalClass)) { + context.report({ + node, + messageId: 'useThisType', + fix: fixer => fixer.replaceText(node, 'this'), + }); + } + } + return { + 'ClassBody > MethodDefinition'(node) { + checkFunction(node.value, node.parent.parent); + }, + 'ClassBody > PropertyDefinition'(node) { + if (!(node.value?.type === utils_1.AST_NODE_TYPES.FunctionExpression || + node.value?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { + return; + } + checkFunction(node.value, node.parent.parent); + }, + }; + }, +}); +//# sourceMappingURL=prefer-return-this-type.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map new file mode 100644 index 00000000..fb47f7cb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-return-this-type.js","sourceRoot":"","sources":["../../src/rules/prefer-return-this-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAgF;AAUhF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;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CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js new file mode 100644 index 00000000..40fcfe05 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js @@ -0,0 +1,521 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const regexpp_1 = require("@eslint-community/regexpp"); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +const EQ_OPERATORS = /^[=!]=/; +const regexpp = new regexpp_1.RegExpParser(); +exports.default = (0, util_1.createRule)({ + name: 'prefer-string-starts-ends-with', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings', + recommended: 'stylistic', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + preferEndsWith: "Use the 'String#endsWith' method instead.", + preferStartsWith: "Use 'String#startsWith' method instead.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowSingleElementEquality: { + type: 'string', + description: 'Whether to allow equality checks against the first or last element of a string.', + enum: ['always', 'never'], + }, + }, + }, + ], + }, + defaultOptions: [{ allowSingleElementEquality: 'never' }], + create(context, [{ allowSingleElementEquality }]) { + const globalScope = context.sourceCode.getScope(context.sourceCode.ast); + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + /** + * Check if a given node is a string. + * @param node The node to check. + */ + function isStringType(node) { + const objectType = services.getTypeAtLocation(node); + return (0, util_1.getTypeName)(checker, objectType) === 'string'; + } + /** + * Check if a given node is a `Literal` node that is null. + * @param node The node to check. + */ + function isNull(node) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + return evaluated != null && evaluated.value == null; + } + /** + * Check if a given node is a `Literal` node that is a given value. + * @param node The node to check. + * @param value The expected value of the `Literal` node. + */ + function isNumber(node, value) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + return evaluated != null && evaluated.value === value; + } + /** + * Check if a given node is a `Literal` node that is a character. + * @param node The node to check. + */ + function isCharacter(node) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + return (evaluated != null && + typeof evaluated.value === 'string' && + // checks if the string is a character long + evaluated.value[0] === evaluated.value); + } + /** + * Check if a given node is `==`, `===`, `!=`, or `!==`. + * @param node The node to check. + */ + function isEqualityComparison(node) { + return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && + EQ_OPERATORS.test(node.operator)); + } + /** + * Check if two given nodes are the same meaning. + * @param node1 A node to compare. + * @param node2 Another node to compare. + */ + function isSameTokens(node1, node2) { + const tokens1 = context.sourceCode.getTokens(node1); + const tokens2 = context.sourceCode.getTokens(node2); + if (tokens1.length !== tokens2.length) { + return false; + } + for (let i = 0; i < tokens1.length; ++i) { + const token1 = tokens1[i]; + const token2 = tokens2[i]; + if (token1.type !== token2.type || token1.value !== token2.value) { + return false; + } + } + return true; + } + /** + * Check if a given node is the expression of the length of a string. + * + * - If `length` property access of `expectedObjectNode`, it's `true`. + * E.g., `foo` → `foo.length` / `"foo"` → `"foo".length` + * - If `expectedObjectNode` is a string literal, `node` can be a number. + * E.g., `"foo"` → `3` + * + * @param node The node to check. + * @param expectedObjectNode The node which is expected as the receiver of `length` property. + */ + function isLengthExpression(node, expectedObjectNode) { + if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { + return ((0, util_1.getPropertyName)(node, globalScope) === 'length' && + isSameTokens(node.object, expectedObjectNode)); + } + const evaluatedLength = (0, util_1.getStaticValue)(node, globalScope); + const evaluatedString = (0, util_1.getStaticValue)(expectedObjectNode, globalScope); + return (evaluatedLength != null && + evaluatedString != null && + typeof evaluatedLength.value === 'number' && + typeof evaluatedString.value === 'string' && + evaluatedLength.value === evaluatedString.value.length); + } + /** + * Returns true if `node` is `-substring.length` or + * `parentString.length - substring.length` + */ + function isLengthAheadOfEnd(node, substring, parentString) { + return ((node.type === utils_1.AST_NODE_TYPES.UnaryExpression && + node.operator === '-' && + isLengthExpression(node.argument, substring)) || + (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && + node.operator === '-' && + isLengthExpression(node.left, parentString) && + isLengthExpression(node.right, substring))); + } + /** + * Check if a given node is the expression of the last index. + * + * E.g. `foo.length - 1` + * + * @param node The node to check. + * @param expectedObjectNode The node which is expected as the receiver of `length` property. + */ + function isLastIndexExpression(node, expectedObjectNode) { + return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && + node.operator === '-' && + isLengthExpression(node.left, expectedObjectNode) && + isNumber(node.right, 1)); + } + /** + * Get the range of the property of a given `MemberExpression` node. + * + * - `obj[foo]` → the range of `[foo]` + * - `obf.foo` → the range of `.foo` + * - `(obj).foo` → the range of `.foo` + * + * @param node The member expression node to get. + */ + function getPropertyRange(node) { + const dotOrOpenBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.object, util_1.isNotClosingParenToken), util_1.NullThrowsReasons.MissingToken('closing parenthesis', 'member')); + return [dotOrOpenBracket.range[0], node.range[1]]; + } + /** + * Parse a given `RegExp` pattern to that string if it's a static string. + * @param pattern The RegExp pattern text to parse. + * @param unicode Whether the RegExp is unicode. + */ + function parseRegExpText(pattern, unicode) { + // Parse it. + const ast = regexpp.parsePattern(pattern, undefined, undefined, { + unicode, + }); + if (ast.alternatives.length !== 1) { + return null; + } + // Drop `^`/`$` assertion. + const chars = ast.alternatives[0].elements; + const first = chars[0]; + if (first.type === 'Assertion' && first.kind === 'start') { + chars.shift(); + } + else { + chars.pop(); + } + // Check if it can determine a unique string. + if (!chars.every(c => c.type === 'Character')) { + return null; + } + // To string. + return String.fromCodePoint(...chars.map(c => c.value)); + } + /** + * Parse a given node if it's a `RegExp` instance. + * @param node The node to parse. + */ + function parseRegExp(node) { + const evaluated = (0, util_1.getStaticValue)(node, globalScope); + if (evaluated == null || !(evaluated.value instanceof RegExp)) { + return null; + } + const { flags, source } = evaluated.value; + const isStartsWith = source.startsWith('^'); + const isEndsWith = source.endsWith('$'); + if (isStartsWith === isEndsWith || + flags.includes('i') || + flags.includes('m')) { + return null; + } + const text = parseRegExpText(source, flags.includes('u')); + if (text == null) { + return null; + } + return { isEndsWith, isStartsWith, text }; + } + function getLeftNode(node) { + if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { + return getLeftNode(node.expression); + } + let leftNode; + if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { + leftNode = node.callee; + } + else { + leftNode = node; + } + if (leftNode.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + throw new Error(`Expected a MemberExpression, got ${leftNode.type}`); + } + return leftNode; + } + /** + * Fix code with using the right operand as the search string. + * For example: `foo.slice(0, 3) === 'bar'` → `foo.startsWith('bar')` + * @param fixer The rule fixer. + * @param node The node which was reported. + * @param kind The kind of the report. + * @param isNegative The flag to fix to negative condition. + */ + function* fixWithRightOperand(fixer, node, kind, isNegative, isOptional) { + // left is CallExpression or MemberExpression. + const leftNode = getLeftNode(node.left); + const propertyRange = getPropertyRange(leftNode); + if (isNegative) { + yield fixer.insertTextBefore(node, '!'); + } + yield fixer.replaceTextRange([propertyRange[0], node.right.range[0]], `${isOptional ? '?.' : '.'}${kind}sWith(`); + yield fixer.replaceTextRange([node.right.range[1], node.range[1]], ')'); + } + /** + * Fix code with using the first argument as the search string. + * For example: `foo.indexOf('bar') === 0` → `foo.startsWith('bar')` + * @param fixer The rule fixer. + * @param node The node which was reported. + * @param kind The kind of the report. + * @param negative The flag to fix to negative condition. + */ + function* fixWithArgument(fixer, node, callNode, calleeNode, kind, negative, isOptional) { + if (negative) { + yield fixer.insertTextBefore(node, '!'); + } + yield fixer.replaceTextRange(getPropertyRange(calleeNode), `${isOptional ? '?.' : '.'}${kind}sWith`); + yield fixer.removeRange([callNode.range[1], node.range[1]]); + } + function getParent(node) { + return (0, util_1.nullThrows)(node.parent?.type === utils_1.AST_NODE_TYPES.ChainExpression + ? node.parent.parent + : node.parent, util_1.NullThrowsReasons.MissingParent); + } + return { + // foo[0] === "a" + // foo.charAt(0) === "a" + // foo[foo.length - 1] === "a" + // foo.charAt(foo.length - 1) === "a" + [[ + 'BinaryExpression > MemberExpression.left[computed=true]', + 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false]', + 'BinaryExpression > ChainExpression.left > MemberExpression[computed=true]', + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]', + ].join(', ')](node) { + let parentNode = getParent(node); + let indexNode = null; + if (parentNode.type === utils_1.AST_NODE_TYPES.CallExpression) { + if (parentNode.arguments.length === 1) { + indexNode = parentNode.arguments[0]; + } + parentNode = getParent(parentNode); + } + else { + indexNode = node.property; + } + if (indexNode == null || + !isEqualityComparison(parentNode) || + !isStringType(node.object)) { + return; + } + const isEndsWith = isLastIndexExpression(indexNode, node.object); + if (allowSingleElementEquality === 'always' && isEndsWith) { + return; + } + const isStartsWith = !isEndsWith && isNumber(indexNode, 0); + if ((allowSingleElementEquality === 'always' && isStartsWith) || + (!isStartsWith && !isEndsWith)) { + return; + } + const eqNode = parentNode; + context.report({ + node: parentNode, + messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', + fix(fixer) { + // Don't fix if it can change the behavior. + if (!isCharacter(eqNode.right)) { + return null; + } + return fixWithRightOperand(fixer, eqNode, isStartsWith ? 'start' : 'end', eqNode.operator.startsWith('!'), node.optional); + }, + }); + }, + // foo.indexOf('bar') === 0 + [[ + 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false]', + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]', + ].join(', ')](node) { + const callNode = getParent(node); + const parentNode = getParent(callNode); + if (callNode.arguments.length !== 1 || + !isEqualityComparison(parentNode) || + !isNumber(parentNode.right, 0) || + !isStringType(node.object)) { + return; + } + context.report({ + node: parentNode, + messageId: 'preferStartsWith', + fix(fixer) { + return fixWithArgument(fixer, parentNode, callNode, node, 'start', parentNode.operator.startsWith('!'), node.optional); + }, + }); + }, + // foo.lastIndexOf('bar') === foo.length - 3 + // foo.lastIndexOf(bar) === foo.length - bar.length + [[ + 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', + ].join(', ')](node) { + const callNode = getParent(node); + const parentNode = getParent(callNode); + if (callNode.arguments.length !== 1 || + !isEqualityComparison(parentNode) || + parentNode.right.type !== utils_1.AST_NODE_TYPES.BinaryExpression || + parentNode.right.operator !== '-' || + !isLengthExpression(parentNode.right.left, node.object) || + !isLengthExpression(parentNode.right.right, callNode.arguments[0]) || + !isStringType(node.object)) { + return; + } + context.report({ + node: parentNode, + messageId: 'preferEndsWith', + fix(fixer) { + return fixWithArgument(fixer, parentNode, callNode, node, 'end', parentNode.operator.startsWith('!'), node.optional); + }, + }); + }, + // foo.match(/^bar/) === null + // foo.match(/bar$/) === null + [[ + 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false]', + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]', + ].join(', ')](node) { + const callNode = getParent(node); + const parentNode = getParent(callNode); + if (!isNull(parentNode.right) || !isStringType(node.object)) { + return; + } + const parsed = callNode.arguments.length === 1 + ? parseRegExp(callNode.arguments[0]) + : null; + if (parsed == null) { + return; + } + const { isStartsWith, text } = parsed; + context.report({ + node: callNode, + messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', + *fix(fixer) { + if (!parentNode.operator.startsWith('!')) { + yield fixer.insertTextBefore(parentNode, '!'); + } + yield fixer.replaceTextRange(getPropertyRange(node), `${node.optional ? '?.' : '.'}${isStartsWith ? 'start' : 'end'}sWith`); + yield fixer.replaceText(callNode.arguments[0], JSON.stringify(text)); + yield fixer.removeRange([callNode.range[1], parentNode.range[1]]); + }, + }); + }, + // foo.slice(0, 3) === 'bar' + // foo.slice(-3) === 'bar' + // foo.slice(-3, foo.length) === 'bar' + // foo.substring(0, 3) === 'bar' + // foo.substring(foo.length - 3) === 'bar' + // foo.substring(foo.length - 3, foo.length) === 'bar' + [[ + 'BinaryExpression > CallExpression.left > MemberExpression', + 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression', + ].join(', ')](node) { + if (!(0, util_1.isStaticMemberAccessOfValue)(node, context, 'slice', 'substring')) { + return; + } + const callNode = getParent(node); + const parentNode = getParent(callNode); + if (!isEqualityComparison(parentNode) || !isStringType(node.object)) { + return; + } + let isEndsWith = false; + let isStartsWith = false; + if (callNode.arguments.length === 1) { + if ( + // foo.slice(-bar.length) === bar + // foo.slice(foo.length - bar.length) === bar + isLengthAheadOfEnd(callNode.arguments[0], parentNode.right, node.object)) { + isEndsWith = true; + } + } + else if (callNode.arguments.length === 2) { + if ( + // foo.slice(0, bar.length) === bar + isNumber(callNode.arguments[0], 0) && + isLengthExpression(callNode.arguments[1], parentNode.right)) { + isStartsWith = true; + } + else if ( + // foo.slice(foo.length - bar.length, foo.length) === bar + // foo.slice(foo.length - bar.length, 0) === bar + // foo.slice(-bar.length, foo.length) === bar + // foo.slice(-bar.length, 0) === bar + (isLengthExpression(callNode.arguments[1], node.object) || + isNumber(callNode.arguments[1], 0)) && + isLengthAheadOfEnd(callNode.arguments[0], parentNode.right, node.object)) { + isEndsWith = true; + } + } + if (!isStartsWith && !isEndsWith) { + return; + } + const eqNode = parentNode; + const negativeIndexSupported = node.property.name === 'slice'; + context.report({ + node: parentNode, + messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', + fix(fixer) { + // Don't fix if it can change the behavior. + if (eqNode.operator.length === 2 && + (eqNode.right.type !== utils_1.AST_NODE_TYPES.Literal || + typeof eqNode.right.value !== 'string')) { + return null; + } + // code being checked is likely mistake: + // unequal length of strings being checked for equality + // or reliant on behavior of substring (negative indices interpreted as 0) + if (isStartsWith) { + if (!isLengthExpression(callNode.arguments[1], eqNode.right)) { + return null; + } + } + else { + const posNode = callNode.arguments[0]; + const posNodeIsAbsolutelyValid = (posNode.type === utils_1.AST_NODE_TYPES.BinaryExpression && + posNode.operator === '-' && + isLengthExpression(posNode.left, node.object) && + isLengthExpression(posNode.right, eqNode.right)) || + (negativeIndexSupported && + posNode.type === utils_1.AST_NODE_TYPES.UnaryExpression && + posNode.operator === '-' && + isLengthExpression(posNode.argument, eqNode.right)); + if (!posNodeIsAbsolutelyValid) { + return null; + } + } + return fixWithRightOperand(fixer, parentNode, isStartsWith ? 'start' : 'end', parentNode.operator.startsWith('!'), node.optional); + }, + }); + }, + // /^bar/.test(foo) + // /bar$/.test(foo) + 'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(node) { + const callNode = getParent(node); + const parsed = callNode.arguments.length === 1 ? parseRegExp(node.object) : null; + if (parsed == null) { + return; + } + const { isStartsWith, text } = parsed; + const messageId = isStartsWith ? 'preferStartsWith' : 'preferEndsWith'; + const methodName = isStartsWith ? 'startsWith' : 'endsWith'; + context.report({ + node: callNode, + messageId, + *fix(fixer) { + const argNode = callNode.arguments[0]; + const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && + argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && + argNode.type !== utils_1.AST_NODE_TYPES.Identifier && + argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && + argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; + yield fixer.removeRange([callNode.range[0], argNode.range[0]]); + if (needsParen) { + yield fixer.insertTextBefore(argNode, '('); + yield fixer.insertTextAfter(argNode, ')'); + } + yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}${methodName}(${JSON.stringify(text)}`); + }, + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-string-starts-ends-with.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map new file mode 100644 index 00000000..c8165224 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AAEA,uDAAyD;AACzD,oDAA0D;AAE1D,kCAUiB;AAEjB,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,OAAO,GAAG,IAAI,sBAAY,EAAE,CAAC;AAYnC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8GAA8G;YAChH,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,2CAA2C;YAC3D,gBAAgB,EAAE,yCAAyC;SAC5D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,0BAA0B,EAAE;wBAC1B,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iFAAiF;wBACnF,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;iBACF;aACF;SACF;KACF;IAED,cAAc,EAAE,CAAC,EAAE,0BAA0B,EAAE,OAAO,EAAE,CAAC;IAEzD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,0BAA0B,EAAE,CAAC;QAC9C,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAExE,MAAM,Q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C1C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BAChD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE,CAAC;4BACf,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;wBAC5C,CAAC;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,IAAI,IAAI,CAAC,SAAS,CAC1D,IAAI,CACL,EAAE,CACJ,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js new file mode 100644 index 00000000..d346d504 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'prefer-ts-expect-error', + meta: { + type: 'problem', + deprecated: true, + docs: { + description: 'Enforce using `@ts-expect-error` over `@ts-ignore`', + }, + fixable: 'code', + messages: { + preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.', + }, + replacedBy: ['@typescript-eslint/ban-ts-comment'], + schema: [], + }, + defaultOptions: [], + create(context) { + const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/; + const tsIgnoreRegExpMultiLine = /^\s*(?:\/|\*)*\s*@ts-ignore/; + function isLineComment(comment) { + return comment.type === utils_1.AST_TOKEN_TYPES.Line; + } + function getLastCommentLine(comment) { + if (isLineComment(comment)) { + return comment.value; + } + // For multiline comments - we look at only the last line. + const commentlines = comment.value.split('\n'); + return commentlines[commentlines.length - 1]; + } + function isValidTsIgnorePresent(comment) { + const line = getLastCommentLine(comment); + return isLineComment(comment) + ? tsIgnoreRegExpSingleLine.test(line) + : tsIgnoreRegExpMultiLine.test(line); + } + return { + Program() { + const comments = context.sourceCode.getAllComments(); + comments.forEach(comment => { + if (isValidTsIgnorePresent(comment)) { + const lineCommentRuleFixer = (fixer) => fixer.replaceText(comment, `//${comment.value.replace('@ts-ignore', '@ts-expect-error')}`); + const blockCommentRuleFixer = (fixer) => fixer.replaceText(comment, `/*${comment.value.replace('@ts-ignore', '@ts-expect-error')}*/`); + context.report({ + node: comment, + messageId: 'preferExpectErrorComment', + fix: isLineComment(comment) + ? lineCommentRuleFixer + : blockCommentRuleFixer, + }); + } + }); + }, + }; + }, +}); +//# sourceMappingURL=prefer-ts-expect-error.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map new file mode 100644 index 00000000..f0ab2ac2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prefer-ts-expect-error.js","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":";;AAGA,oDAA2D;AAE3D,kCAAqC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OAAO,CAAC,OAAO,CAAC,EAAE;oBACzB,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;wBACpC,MAAM,oBAAoB,GAAG,CAAC,KAAgB,EAAW,EAAE,CACzD,KAAK,CAAC,WAAW,CACf,OAAO,EACP,KAAK,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,kBAAkB,CAAC,EAAE,CAC/D,CAAC;wBAEJ,MAAM,qBAAqB,GAAG,CAAC,KAAgB,EAAW,EAAE,CAC1D,KAAK,CAAC,WAAW,CACf,OAAO,EACP,KAAK,OAAO,CAAC,KAAK,CAAC,OAAO,CACxB,YAAY,EACZ,kBAAkB,CACnB,IAAI,CACN,CAAC;wBAEJ,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,0BAA0B;4BACrC,GAAG,EAAE,aAAa,CAAC,OAAO,CAAC;gCACzB,CAAC,CAAC,oBAAoB;gCACtB,CAAC,CAAC,qBAAqB;yBAC1B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js new file mode 100644 index 00000000..58f16d26 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js @@ -0,0 +1,188 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'promise-function-async', + meta: { + type: 'suggestion', + docs: { + description: 'Require any function or method that returns a Promise to be marked async', + requiresTypeChecking: true, + }, + fixable: 'code', + messages: { + missingAsync: 'Functions that return promises must be async.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowAny: { + type: 'boolean', + description: 'Whether to consider `any` and `unknown` to be Promises.', + }, + allowedPromiseNames: { + type: 'array', + description: 'Any extra names of classes or interfaces to be considered Promises.', + items: { + type: 'string', + }, + }, + checkArrowFunctions: { + type: 'boolean', + description: 'Whether to check arrow functions.', + }, + checkFunctionDeclarations: { + type: 'boolean', + description: 'Whether to check standalone function declarations.', + }, + checkFunctionExpressions: { + type: 'boolean', + description: 'Whether to check inline function expressions', + }, + checkMethodDeclarations: { + type: 'boolean', + description: 'Whether to check methods on classes and object literals.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowAny: true, + allowedPromiseNames: [], + checkArrowFunctions: true, + checkFunctionDeclarations: true, + checkFunctionExpressions: true, + checkMethodDeclarations: true, + }, + ], + create(context, [{ allowAny, allowedPromiseNames, checkArrowFunctions, checkFunctionDeclarations, checkFunctionExpressions, checkMethodDeclarations, },]) { + const allAllowedPromiseNames = new Set([ + 'Promise', + // https://github.com/typescript-eslint/typescript-eslint/issues/5439 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + ...allowedPromiseNames, + ]); + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + function validateNode(node) { + const signatures = services.getTypeAtLocation(node).getCallSignatures(); + if (!signatures.length) { + return; + } + const returnType = checker.getReturnTypeOfSignature(signatures[0]); + if (!(0, util_1.containsAllTypesByName)(returnType, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + allowAny, allAllowedPromiseNames, + // If no return type is explicitly set, we check if any parts of the return type match a Promise (instead of requiring all to match). + node.returnType == null)) { + // Return type is not a promise + return; + } + if (node.parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition) { + // Abstract method can't be async + return; + } + if ((node.parent.type === utils_1.AST_NODE_TYPES.Property || + node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) && + (node.parent.kind === 'get' || node.parent.kind === 'set')) { + // Getters and setters can't be async + return; + } + if ((0, util_1.isTypeFlagSet)(returnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { + // Report without auto fixer because the return type is unknown + return context.report({ + loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), + node, + messageId: 'missingAsync', + }); + } + context.report({ + loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), + node, + messageId: 'missingAsync', + fix: fixer => { + if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || + (node.parent.type === utils_1.AST_NODE_TYPES.Property && node.parent.method)) { + // this function is a class method or object function property shorthand + const method = node.parent; + // the token to put `async` before + let keyToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(method), util_1.NullThrowsReasons.MissingToken('key token', 'method')); + // if there are decorators then skip past them + if (method.type === utils_1.AST_NODE_TYPES.MethodDefinition && + method.decorators.length) { + const lastDecorator = method.decorators[method.decorators.length - 1]; + keyToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(lastDecorator), util_1.NullThrowsReasons.MissingToken('key token', 'last decorator')); + } + // if current token is a keyword like `static` or `public` then skip it + while (keyToken.type === utils_1.AST_TOKEN_TYPES.Keyword && + keyToken.range[0] < method.key.range[0]) { + keyToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(keyToken), util_1.NullThrowsReasons.MissingToken('token', 'keyword')); + } + // check if there is a space between key and previous token + const insertSpace = !context.sourceCode.isSpaceBetween((0, util_1.nullThrows)(context.sourceCode.getTokenBefore(keyToken), util_1.NullThrowsReasons.MissingToken('token', 'keyword')), keyToken); + let code = 'async '; + if (insertSpace) { + code = ` ${code}`; + } + return fixer.insertTextBefore(keyToken, code); + } + return fixer.insertTextBefore(node, 'async '); + }, + }); + } + return { + ...(checkArrowFunctions && { + 'ArrowFunctionExpression[async = false]'(node) { + validateNode(node); + }, + }), + ...(checkFunctionDeclarations && { + 'FunctionDeclaration[async = false]'(node) { + validateNode(node); + }, + }), + 'FunctionExpression[async = false]'(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + node.parent.kind === 'method') { + if (checkMethodDeclarations) { + validateNode(node); + } + return; + } + if (checkFunctionExpressions) { + validateNode(node); + } + }, + }; + }, +}); +//# sourceMappingURL=promise-function-async.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map new file mode 100644 index 00000000..506baae8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map @@ -0,0 +1 @@ +{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA2E;AAC3E,+CAAiC;AAEjC,kCAQiB;AAcjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT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AC5B,YAAY,CAAC,IAAI,CAAC,CAAC;oBACrB,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,wBAAwB,EAAE,CAAC;oBAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js new file mode 100644 index 00000000..562c26b8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js @@ -0,0 +1,72 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'related-getter-setter-pairs', + meta: { + type: 'problem', + docs: { + description: 'Enforce that `get()` types should be assignable to their equivalent `set()` type', + recommended: 'strict', + requiresTypeChecking: true, + }, + messages: { + mismatch: '`get()` type should be assignable to its equivalent `set()` type.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const methodPairsStack = []; + function addPropertyNode(member, inner, kind) { + const methodPairs = methodPairsStack[methodPairsStack.length - 1]; + const { name } = (0, util_1.getNameFromMember)(member, context.sourceCode); + methodPairs.set(name, { + ...methodPairs.get(name), + [kind]: inner, + }); + } + return { + ':matches(ClassBody, TSInterfaceBody, TSTypeLiteral):exit'() { + const methodPairs = methodPairsStack[methodPairsStack.length - 1]; + for (const pair of methodPairs.values()) { + if (!pair.get || !pair.set) { + continue; + } + const getter = pair.get; + const getType = services.getTypeAtLocation(getter); + const setType = services.getTypeAtLocation(pair.set.params[0]); + if (!checker.isTypeAssignableTo(getType, setType)) { + context.report({ + node: getter.returnType.typeAnnotation, + messageId: 'mismatch', + }); + } + } + methodPairsStack.pop(); + }, + ':matches(MethodDefinition, TSMethodSignature)[kind=get]'(node) { + const getter = getMethodFromNode(node); + if (getter.returnType) { + addPropertyNode(node, getter, 'get'); + } + }, + ':matches(MethodDefinition, TSMethodSignature)[kind=set]'(node) { + const setter = getMethodFromNode(node); + if (setter.params.length === 1) { + addPropertyNode(node, setter, 'set'); + } + }, + 'ClassBody, TSInterfaceBody, TSTypeLiteral'() { + methodPairsStack.push(new Map()); + }, + }; + }, +}); +function getMethodFromNode(node) { + return node.type === utils_1.AST_NODE_TYPES.TSMethodSignature ? node : node.value; +} +//# sourceMappingURL=related-getter-setter-pairs.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js.map new file mode 100644 index 00000000..7b3441a3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"related-getter-setter-pairs.js","sourceRoot":"","sources":["../../src/rules/related-getter-setter-pairs.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAA2E;AAoB3E,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,kFAAkF;YACpF,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,QAAQ,EACN,mEAAmE;SACtE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OA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CAAC;gBAED,gBAAgB,CAAC,GAAG,EAAE,CAAC;YACzB,CAAC;YACD,yDAAyD,CACvD,IAAkB;gBAElB,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAEvC,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;oBACtB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;YACD,yDAAyD,CACvD,IAAe;gBAEf,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAEvC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;YAED,2CAA2C;gBACzC,gBAAgB,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;YACnC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,iBAAiB,CAAC,IAA8B;IACvD,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AAC5E,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js new file mode 100644 index 00000000..cfde2414 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js @@ -0,0 +1,64 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'require-array-sort-compare', + meta: { + type: 'problem', + docs: { + description: 'Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`', + requiresTypeChecking: true, + }, + messages: { + requireCompare: "Require 'compare' argument.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreStringArrays: { + type: 'boolean', + description: 'Whether to ignore arrays in which all elements are strings.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreStringArrays: true, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + /** + * Check if a given node is an array which all elements are string. + */ + function isStringArrayNode(node) { + const type = services.getTypeAtLocation(node); + if (checker.isArrayType(type) || checker.isTupleType(type)) { + const typeArgs = checker.getTypeArguments(type); + return typeArgs.every(arg => (0, util_1.getTypeName)(checker, arg) === 'string'); + } + return false; + } + function checkSortArgument(callee) { + if (!(0, util_1.isStaticMemberAccessOfValue)(callee, context, 'sort', 'toSorted')) { + return; + } + const calleeObjType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); + if (options.ignoreStringArrays && isStringArrayNode(callee.object)) { + return; + } + if ((0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(calleeObjType, checker)) { + context.report({ node: callee.parent, messageId: 'requireCompare' }); + } + } + return { + 'CallExpression[arguments.length=0] > MemberExpression': checkSortArgument, + }; + }, +}); +//# sourceMappingURL=require-array-sort-compare.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map new file mode 100644 index 00000000..219036f7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map @@ -0,0 +1 @@ +{"version":3,"file":"require-array-sort-compare.js","sourceRoot":"","sources":["../../src/rules/require-array-sort-compare.ts"],"names":[],"mappings":";;AAEA,kCAOiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,IAA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AG,IAAA,mCAA4B,EAChD,QAAQ,EACR,MAAM,CAAC,MAAM,CACd,CAAC;YAEF,IAAI,OAAO,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnE,OAAO;YACT,CAAC;YAED,IAAI,IAAA,yCAAkC,EAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CAAC;gBAC/D,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;YACvE,CAAC;QACH,CAAC;QAED,OAAO;YACL,uDAAuD,EACrD,iBAAiB;SACpB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js new file mode 100644 index 00000000..7321a56f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js @@ -0,0 +1,254 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'require-await', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow async functions which do not return promises and have no `await` expression', + extendsBaseRule: true, + recommended: 'recommended', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + missingAwait: "{{name}} has no 'await' expression.", + removeAsync: "Remove 'async'.", + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + let scopeInfo = null; + /** + * Push the scope info object to the stack. + */ + function enterFunction(node) { + scopeInfo = { + hasAsync: node.async, + hasAwait: false, + isAsyncYield: false, + isGen: node.generator || false, + upper: scopeInfo, + }; + } + /** + * Pop the top scope info object from the stack. + * Also, it reports the function if needed. + */ + function exitFunction(node) { + /* istanbul ignore if */ if (!scopeInfo) { + // this shouldn't ever happen, as we have to exit a function after we enter it + return; + } + if (node.async && + !scopeInfo.hasAwait && + !isEmptyFunction(node) && + !(scopeInfo.isGen && scopeInfo.isAsyncYield)) { + // If the function belongs to a method definition or + // property, then the function's range may not include the + // `async` keyword and we should look at the parent instead. + const nodeWithAsyncKeyword = (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && + node.parent.value === node) || + (node.parent.type === utils_1.AST_NODE_TYPES.Property && + node.parent.method && + node.parent.value === node) + ? node.parent + : node; + const asyncToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(nodeWithAsyncKeyword, token => token.value === 'async'), 'The node is an async function, so it must have an "async" token.'); + const asyncRange = [ + asyncToken.range[0], + (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(asyncToken, { + includeComments: true, + }), 'There will always be a token after the "async" keyword.').range[0], + ]; + // Removing the `async` keyword can cause parsing errors if the + // current statement is relying on automatic semicolon insertion. + // If ASI is currently being used, then we should replace the + // `async` keyword with a semicolon. + const nextToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(asyncToken), 'There will always be a token after the "async" keyword.'); + const addSemiColon = nextToken.type === utils_1.AST_TOKEN_TYPES.Punctuator && + (nextToken.value === '[' || nextToken.value === '(') && + (nodeWithAsyncKeyword.type === utils_1.AST_NODE_TYPES.MethodDefinition || + (0, util_1.isStartOfExpressionStatement)(nodeWithAsyncKeyword)) && + (0, util_1.needsPrecedingSemicolon)(context.sourceCode, nodeWithAsyncKeyword); + const changes = [ + { range: asyncRange, replacement: addSemiColon ? ';' : undefined }, + ]; + // If there's a return type annotation and it's a + // `Promise`, we can also change the return type + // annotation to just `T` as part of the suggestion. + // Alternatively, if the function is a generator and + // the return type annotation is `AsyncGenerator`, + // then we can change it to `Generator`. + if (node.returnType?.typeAnnotation.type === + utils_1.AST_NODE_TYPES.TSTypeReference) { + if (scopeInfo.isGen) { + if (hasTypeName(node.returnType.typeAnnotation, 'AsyncGenerator')) { + changes.push({ + range: node.returnType.typeAnnotation.typeName.range, + replacement: 'Generator', + }); + } + } + else if (hasTypeName(node.returnType.typeAnnotation, 'Promise') && + node.returnType.typeAnnotation.typeArguments != null) { + const openAngle = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node.returnType.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === '<'), 'There are type arguments, so the angle bracket will exist.'); + const closeAngle = (0, util_1.nullThrows)(context.sourceCode.getLastToken(node.returnType.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && + token.value === '>'), 'There are type arguments, so the angle bracket will exist.'); + changes.push( + // Remove the closing angled bracket. + { range: closeAngle.range, replacement: undefined }, + // Remove the "Promise" identifier + // and the opening angled bracket. + { + range: [ + node.returnType.typeAnnotation.typeName.range[0], + openAngle.range[1], + ], + replacement: undefined, + }); + } + } + context.report({ + loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), + node, + messageId: 'missingAwait', + data: { + name: (0, util_1.upperCaseFirst)((0, util_1.getFunctionNameWithKind)(node)), + }, + suggest: [ + { + messageId: 'removeAsync', + fix: (fixer) => changes.map(change => change.replacement !== undefined + ? fixer.replaceTextRange(change.range, change.replacement) + : fixer.removeRange(change.range)), + }, + ], + }); + } + scopeInfo = scopeInfo.upper; + } + /** + * Checks if the node returns a thenable type + */ + function isThenableType(node) { + const type = checker.getTypeAtLocation(node); + return tsutils.isThenableType(checker, node, type); + } + /** + * Marks the current scope as having an await + */ + function markAsHasAwait() { + if (!scopeInfo) { + return; + } + scopeInfo.hasAwait = true; + } + /** + * Mark `scopeInfo.isAsyncYield` to `true` if it + * 1) delegates async generator function + * or + * 2) yields thenable type + */ + function visitYieldExpression(node) { + if (!scopeInfo?.isGen || !node.argument) { + return; + } + if (node.argument.type === utils_1.AST_NODE_TYPES.Literal) { + // ignoring this as for literals we don't need to check the definition + // eg : async function* run() { yield* 1 } + return; + } + if (!node.delegate) { + if (isThenableType(services.esTreeNodeToTSNodeMap.get(node.argument))) { + scopeInfo.isAsyncYield = true; + } + return; + } + const type = services.getTypeAtLocation(node.argument); + const typesToCheck = expandUnionOrIntersectionType(type); + for (const type of typesToCheck) { + const asyncIterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'asyncIterator', checker); + if (asyncIterator !== undefined) { + scopeInfo.isAsyncYield = true; + break; + } + } + } + return { + ArrowFunctionExpression: enterFunction, + 'ArrowFunctionExpression:exit': exitFunction, + AwaitExpression: markAsHasAwait, + 'ForOfStatement[await = true]': markAsHasAwait, + FunctionDeclaration: enterFunction, + 'FunctionDeclaration:exit': exitFunction, + FunctionExpression: enterFunction, + 'FunctionExpression:exit': exitFunction, + 'VariableDeclaration[kind = "await using"]': markAsHasAwait, + YieldExpression: visitYieldExpression, + // check body-less async arrow function. + // ignore `async () => await foo` because it's obviously correct + 'ArrowFunctionExpression[async = true] > :not(BlockStatement, AwaitExpression)'(node) { + const expression = services.esTreeNodeToTSNodeMap.get(node); + if (isThenableType(expression)) { + markAsHasAwait(); + } + }, + ReturnStatement(node) { + // short circuit early to avoid unnecessary type checks + if (!scopeInfo || scopeInfo.hasAwait || !scopeInfo.hasAsync) { + return; + } + const { expression } = services.esTreeNodeToTSNodeMap.get(node); + if (expression && isThenableType(expression)) { + markAsHasAwait(); + } + }, + }; + }, +}); +function isEmptyFunction(node) { + return (node.body.type === utils_1.AST_NODE_TYPES.BlockStatement && + node.body.body.length === 0); +} +function expandUnionOrIntersectionType(type) { + if (type.isUnionOrIntersection()) { + return type.types.flatMap(expandUnionOrIntersectionType); + } + return [type]; +} +function hasTypeName(typeReference, typeName) { + return (typeReference.typeName.type === utils_1.AST_NODE_TYPES.Identifier && + typeReference.typeName.name === typeName); +} +//# sourceMappingURL=require-await.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map new file mode 100644 index 00000000..166b6b29 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map @@ -0,0 +1 @@ +{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA2E;AAC3E,sDAAwC;AAExC,kCASiB;AAcjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sFAAsF;YACxF,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,YAAY,EAAE,qCAAqC;YACnD,WAAW,EAAE,iBAAiB;SAC/B;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM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CAAC,CAAC;gBAC5D,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC/B,cAAc,EAAE,CAAC;gBACnB,CAAC;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,uDAAuD;gBACvD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;oBAC5D,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAChE,IAAI,UAAU,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC7C,cAAc,EAAE,CAAC;gBACnB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,eAAe,CAAC,IAAkB;IACzC,OAAO,CACL,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAChD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CAAC,IAAa;IAClD,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,WAAW,CAClB,aAAuC,EACvC,QAAgB;IAEhB,OAAO,CACL,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACzD,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CACzC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js new file mode 100644 index 00000000..763d5697 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js @@ -0,0 +1,222 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'restrict-plus-operands', + meta: { + type: 'problem', + docs: { + description: 'Require both operands of addition to be the same type and be `bigint`, `number`, or `string`', + recommended: { + recommended: true, + strict: [ + { + allowAny: false, + allowBoolean: false, + allowNullish: false, + allowNumberAndString: false, + allowRegExp: false, + }, + ], + }, + requiresTypeChecking: true, + }, + messages: { + bigintAndNumber: "Numeric '+' operations must either be both bigints or both numbers. Got `{{left}}` + `{{right}}`.", + invalid: "Invalid operand for a '+' operation. Operands must each be a number or {{stringLike}}. Got `{{type}}`.", + mismatched: "Operands of '+' operations must be a number or {{stringLike}}. Got `{{left}}` + `{{right}}`.", + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowAny: { + type: 'boolean', + description: 'Whether to allow `any` typed values.', + }, + allowBoolean: { + type: 'boolean', + description: 'Whether to allow `boolean` typed values.', + }, + allowNullish: { + type: 'boolean', + description: 'Whether to allow potentially `null` or `undefined` typed values.', + }, + allowNumberAndString: { + type: 'boolean', + description: 'Whether to allow `bigint`/`number` typed values and `string` typed values to be added together.', + }, + allowRegExp: { + type: 'boolean', + description: 'Whether to allow `regexp` typed values.', + }, + skipCompoundAssignments: { + type: 'boolean', + description: 'Whether to skip compound assignments such as `+=`.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowAny: true, + allowBoolean: true, + allowNullish: true, + allowNumberAndString: true, + allowRegExp: true, + skipCompoundAssignments: false, + }, + ], + create(context, [{ allowAny, allowBoolean, allowNullish, allowNumberAndString, allowRegExp, skipCompoundAssignments, },]) { + const services = (0, util_1.getParserServices)(context); + const typeChecker = services.program.getTypeChecker(); + const stringLikes = [ + allowAny && '`any`', + allowBoolean && '`boolean`', + allowNullish && '`null`', + allowRegExp && '`RegExp`', + allowNullish && '`undefined`', + ].filter((value) => typeof value === 'string'); + const stringLike = stringLikes.length + ? stringLikes.length === 1 + ? `string, allowing a string + ${stringLikes[0]}` + : `string, allowing a string + any of: ${stringLikes.join(', ')}` + : 'string'; + function getTypeConstrained(node) { + return typeChecker.getBaseTypeOfLiteralType((0, util_1.getConstrainedTypeAtLocation)(services, node)); + } + function checkPlusOperands(node) { + const leftType = getTypeConstrained(node.left); + const rightType = getTypeConstrained(node.right); + if (leftType === rightType && + tsutils.isTypeFlagSet(leftType, ts.TypeFlags.BigIntLike | + ts.TypeFlags.NumberLike | + ts.TypeFlags.StringLike)) { + return; + } + let hadIndividualComplaint = false; + for (const [baseNode, baseType, otherType] of [ + [node.left, leftType, rightType], + [node.right, rightType, leftType], + ]) { + if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.ESSymbolLike | + ts.TypeFlags.Never | + ts.TypeFlags.Unknown) || + (!allowAny && isTypeFlagSetInUnion(baseType, ts.TypeFlags.Any)) || + (!allowBoolean && + isTypeFlagSetInUnion(baseType, ts.TypeFlags.BooleanLike)) || + (!allowNullish && + (0, util_1.isTypeFlagSet)(baseType, ts.TypeFlags.Null | ts.TypeFlags.Undefined))) { + context.report({ + node: baseNode, + messageId: 'invalid', + data: { + type: typeChecker.typeToString(baseType), + stringLike, + }, + }); + hadIndividualComplaint = true; + continue; + } + // RegExps also contain ts.TypeFlags.Any & ts.TypeFlags.Object + for (const subBaseType of tsutils.unionTypeParts(baseType)) { + const typeName = (0, util_1.getTypeName)(typeChecker, subBaseType); + if (typeName === 'RegExp' + ? !allowRegExp || + tsutils.isTypeFlagSet(otherType, ts.TypeFlags.NumberLike) + : (!allowAny && (0, util_1.isTypeAnyType)(subBaseType)) || + isDeeplyObjectType(subBaseType)) { + context.report({ + node: baseNode, + messageId: 'invalid', + data: { + type: typeChecker.typeToString(subBaseType), + stringLike, + }, + }); + hadIndividualComplaint = true; + continue; + } + } + } + if (hadIndividualComplaint) { + return; + } + for (const [baseType, otherType] of [ + [leftType, rightType], + [rightType, leftType], + ]) { + if (!allowNumberAndString && + isTypeFlagSetInUnion(baseType, ts.TypeFlags.StringLike) && + isTypeFlagSetInUnion(otherType, ts.TypeFlags.NumberLike)) { + return context.report({ + node, + messageId: 'mismatched', + data: { + left: typeChecker.typeToString(leftType), + right: typeChecker.typeToString(rightType), + stringLike, + }, + }); + } + if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.NumberLike) && + isTypeFlagSetInUnion(otherType, ts.TypeFlags.BigIntLike)) { + return context.report({ + node, + messageId: 'bigintAndNumber', + data: { + left: typeChecker.typeToString(leftType), + right: typeChecker.typeToString(rightType), + }, + }); + } + } + } + return { + "BinaryExpression[operator='+']": checkPlusOperands, + ...(!skipCompoundAssignments && { + "AssignmentExpression[operator='+=']"(node) { + checkPlusOperands(node); + }, + }), + }; + }, +}); +function isDeeplyObjectType(type) { + return type.isIntersection() + ? tsutils.intersectionTypeParts(type).every(tsutils.isObjectType) + : tsutils.unionTypeParts(type).every(tsutils.isObjectType); +} +function isTypeFlagSetInUnion(type, flag) { + return tsutils + .unionTypeParts(type) + .some(subType => tsutils.isTypeFlagSet(subType, flag)); +} +//# sourceMappingURL=restrict-plus-operands.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map new file mode 100644 index 00000000..d4be0c1d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map @@ -0,0 +1 @@ +{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AAejB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE;oBACN;wBACE,QAAQ,EAAE,KAAK;wBACf,YAAY,EAAE,KAAK;wBACnB,YAAY,EAAE,KAAK;wBACnB,oBAAoB,EAAE,KAAK;wBAC3B,WAAW,EAAE,KAAK;qBACnB;iBACF;aACF;YACD,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,eAAe,EACb,mGAAmG;YACrG,OAAO,EACL,wGAAwG;YAC1G,UAAU,EACR,8FAA8F;SACjG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,sCAA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O,IAAI,CAAC,cAAc,EAAE;QAC1B,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;QACjE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAa,EAAE,IAAkB;IAC7D,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js new file mode 100644 index 00000000..de97ebce --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js @@ -0,0 +1,120 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const type_utils_1 = require("@typescript-eslint/type-utils"); +const utils_1 = require("@typescript-eslint/utils"); +const typescript_1 = require("typescript"); +const util_1 = require("../util"); +const testTypeFlag = (flagsToCheck) => type => (0, util_1.isTypeFlagSet)(type, flagsToCheck); +const optionTesters = [ + ['Any', util_1.isTypeAnyType], + [ + 'Array', + (type, checker, recursivelyCheckType) => (checker.isArrayType(type) || checker.isTupleType(type)) && + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + recursivelyCheckType(type.getNumberIndexType()), + ], + // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum + ['Boolean', testTypeFlag(typescript_1.TypeFlags.BooleanLike)], + ['Nullish', testTypeFlag(typescript_1.TypeFlags.Null | typescript_1.TypeFlags.Undefined)], + ['Number', testTypeFlag(typescript_1.TypeFlags.NumberLike | typescript_1.TypeFlags.BigIntLike)], + [ + 'RegExp', + (type, checker) => (0, util_1.getTypeName)(checker, type) === 'RegExp', + ], + ['Never', util_1.isTypeNeverType], +].map(([type, tester]) => ({ + type, + option: `allow${type}`, + tester, +})); +exports.default = (0, util_1.createRule)({ + name: 'restrict-template-expressions', + meta: { + type: 'problem', + docs: { + description: 'Enforce template literal expressions to be of `string` type', + recommended: { + recommended: true, + strict: [ + { + allowAny: false, + allowBoolean: false, + allowNever: false, + allowNullish: false, + allowNumber: false, + allowRegExp: false, + }, + ], + }, + requiresTypeChecking: true, + }, + messages: { + invalidType: 'Invalid type "{{type}}" of template literal expression.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ...Object.fromEntries(optionTesters.map(({ type, option }) => [ + option, + { + type: 'boolean', + description: `Whether to allow \`${type.toLowerCase()}\` typed values in template expressions.`, + }, + ])), + allow: { + description: `Types to allow in template expressions.`, + ...type_utils_1.typeOrValueSpecifiersSchema, + }, + }, + }, + ], + }, + defaultOptions: [ + { + allow: [{ name: ['Error', 'URL', 'URLSearchParams'], from: 'lib' }], + allowAny: true, + allowBoolean: true, + allowNullish: true, + allowNumber: true, + allowRegExp: true, + }, + ], + create(context, [{ allow, ...options }]) { + const services = (0, util_1.getParserServices)(context); + const { program } = services; + const checker = program.getTypeChecker(); + const enabledOptionTesters = optionTesters.filter(({ option }) => options[option]); + return { + TemplateLiteral(node) { + // don't check tagged template literals + if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { + return; + } + for (const expression of node.expressions) { + const expressionType = (0, util_1.getConstrainedTypeAtLocation)(services, expression); + if (!recursivelyCheckType(expressionType)) { + context.report({ + node: expression, + messageId: 'invalidType', + data: { type: checker.typeToString(expressionType) }, + }); + } + } + }, + }; + function recursivelyCheckType(innerType) { + if (innerType.isUnion()) { + return innerType.types.every(recursivelyCheckType); + } + if (innerType.isIntersection()) { + return innerType.types.some(recursivelyCheckType); + } + return ((0, util_1.isTypeFlagSet)(innerType, typescript_1.TypeFlags.StringLike) || + (0, type_utils_1.typeMatchesSomeSpecifier)(innerType, allow, program) || + enabledOptionTesters.some(({ tester }) => tester(innerType, checker, recursivelyCheckType))); + } + }, +}); +//# sourceMappingURL=restrict-template-expressions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map new file mode 100644 index 00000000..3602e3f7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.ts"],"names":[],"mappings":";;AAGA,8DAGuC;AACvC,oDAA0D;AAC1D,2CAAuC;AAIvC,kCAQiB;AAQjB,MAAM,YAAY,GAChB,CAAC,YAAuB,EAAgB,EAAE,CAC1C,IAAI,CAAC,EAAE,CACL,IAAA,oBAAa,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAEtC,MAAM,aAAa,GACjB;IACE,CAAC,KAAK,EAAE,oBAAa,CAAC;IACtB;QACE,OAAO;QACP,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAW,EAAE,CAC/C,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACxD,oEAAoE;YACpE,oBAAoB,CAAC,IAAI,CAAC,kBAAkB,EAAG,CAAC;KACnD;IACD,6EAA6E;IAC7E,CAAC,SAAS,EAAE,YAAY,CAAC,sBAAS,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC,SAAS,EAAE,YAAY,CAAC,sBAAS,CAAC,IAAI,GAAG,sBAAS,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC,Q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CAAC,EAAE;yBACrD,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;QAEF,SAAS,oBAAoB,CAAC,SAAe;YAC3C,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;gBACxB,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC/B,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,CACL,IAAA,oBAAa,EAAC,SAAS,EAAE,sBAAS,CAAC,UAAU,CAAC;gBAC9C,IAAA,qCAAwB,EAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC;gBACnD,oBAAoB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACvC,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,CACjD,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js new file mode 100644 index 00000000..03a2bb42 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js @@ -0,0 +1,364 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const getOperatorPrecedence_1 = require("../util/getOperatorPrecedence"); +exports.default = (0, util_1.createRule)({ + name: 'return-await', + meta: { + type: 'problem', + docs: { + description: 'Enforce consistent awaiting of returned promises', + extendsBaseRule: 'no-return-await', + recommended: { + strict: ['error-handling-correctness-only'], + }, + requiresTypeChecking: true, + }, + fixable: 'code', + // eslint-disable-next-line eslint-plugin/require-meta-has-suggestions -- suggestions are exposed through a helper. + hasSuggestions: true, + messages: { + disallowedPromiseAwait: 'Returning an awaited promise is not allowed in this context.', + disallowedPromiseAwaitSuggestion: 'Remove `await` before the expression. Use caution as this may impact control flow.', + nonPromiseAwait: 'Returning an awaited value that is not a promise is not allowed.', + requiredPromiseAwait: 'Returning an awaited promise is required in this context.', + requiredPromiseAwaitSuggestion: 'Add `await` before the expression. Use caution as this may impact control flow.', + }, + schema: [ + { + type: 'string', + oneOf: [ + { + type: 'string', + description: 'Requires that all returned promises be awaited.', + enum: ['always'], + }, + { + type: 'string', + description: 'In error-handling contexts, the rule enforces that returned promises must be awaited. In ordinary contexts, the rule does not enforce any particular behavior around whether returned promises are awaited.', + enum: ['error-handling-correctness-only'], + }, + { + type: 'string', + description: 'In error-handling contexts, the rule enforces that returned promises must be awaited. In ordinary contexts, the rule enforces that returned promises _must not_ be awaited.', + enum: ['in-try-catch'], + }, + { + type: 'string', + description: 'Disallows awaiting any returned promises.', + enum: ['never'], + }, + ], + }, + ], + }, + defaultOptions: ['in-try-catch'], + create(context, [option]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const scopeInfoStack = []; + function enterFunction(node) { + scopeInfoStack.push({ + hasAsync: node.async, + owningFunc: node, + }); + } + function exitFunction() { + scopeInfoStack.pop(); + } + function affectsExplicitResourceManagement(node) { + // just need to determine if there is a `using` declaration in scope. + let scope = context.sourceCode.getScope(node); + const functionScope = scope.variableScope; + while (true) { + for (const variable of scope.variables) { + if (variable.defs.length !== 1) { + // This can't be the case for `using` or `await using` since it's + // an error to redeclare those more than once in the same scope, + // unlike, say, `var` declarations. + continue; + } + const declaration = variable.defs[0]; + const declaratorNode = declaration.node; + const declarationNode = declaratorNode.parent; + // if it's a using/await using declaration, and it comes _before_ the + // node we're checking, it affects control flow for that node. + if (['await using', 'using'].includes(declarationNode.kind) && + declaratorNode.range[1] < node.range[0]) { + return true; + } + } + if (scope === functionScope) { + // We've checked all the relevant scopes + break; + } + // This should always exist, since the rule should only be checking + // contexts in which `return` statements are legal, which should always + // be inside a function. + scope = (0, util_1.nullThrows)(scope.upper, 'Expected parent scope to exist. return-await should only operate on return statements within functions'); + } + return false; + } + /** + * Tests whether a node is inside of an explicit error handling context + * (try/catch/finally) in a way that throwing an exception will have an + * impact on the program's control flow. + */ + function affectsExplicitErrorHandling(node) { + // If an error-handling block is followed by another error-handling block, + // control flow is affected by whether promises in it are awaited or not. + // Otherwise, we need to check recursively for nested try statements until + // we get to the top level of a function or the program. If by then, + // there's no offending error-handling blocks, it doesn't affect control + // flow. + const tryAncestorResult = findContainingTryStatement(node); + if (tryAncestorResult == null) { + return false; + } + const { block, tryStatement } = tryAncestorResult; + switch (block) { + case 'catch': + // Exceptions thrown in catch blocks followed by a finally block affect + // control flow. + if (tryStatement.finallyBlock != null) { + return true; + } + // Otherwise recurse. + return affectsExplicitErrorHandling(tryStatement); + case 'finally': + return affectsExplicitErrorHandling(tryStatement); + case 'try': + // Try blocks are always followed by either a catch or finally, + // so exceptions thrown here always affect control flow. + return true; + default: { + const __never = block; + throw new Error(`Unexpected block type: ${String(__never)}`); + } + } + } + /** + * A try _statement_ is the whole thing that encompasses try block, + * catch clause, and finally block. This function finds the nearest + * enclosing try statement (if present) for a given node, and reports which + * part of the try statement the node is in. + */ + function findContainingTryStatement(node) { + let child = node; + let ancestor = node.parent; + while (ancestor && !ts.isFunctionLike(ancestor)) { + if (ts.isTryStatement(ancestor)) { + let block; + if (child === ancestor.tryBlock) { + block = 'try'; + } + else if (child === ancestor.catchClause) { + block = 'catch'; + } + else if (child === ancestor.finallyBlock) { + block = 'finally'; + } + return { + block: (0, util_1.nullThrows)(block, 'Child of a try statement must be a try block, catch clause, or finally block'), + tryStatement: ancestor, + }; + } + child = ancestor; + ancestor = ancestor.parent; + } + return undefined; + } + function removeAwait(fixer, node) { + // Should always be an await node; but let's be safe. + /* istanbul ignore if */ if (!(0, util_1.isAwaitExpression)(node)) { + return null; + } + const awaitToken = context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword); + // Should always be the case; but let's be safe. + /* istanbul ignore if */ if (!awaitToken) { + return null; + } + const startAt = awaitToken.range[0]; + let endAt = awaitToken.range[1]; + // Also remove any extraneous whitespace after `await`, if there is any. + const nextToken = context.sourceCode.getTokenAfter(awaitToken, { + includeComments: true, + }); + if (nextToken) { + endAt = nextToken.range[0]; + } + return fixer.removeRange([startAt, endAt]); + } + function insertAwait(fixer, node, isHighPrecendence) { + if (isHighPrecendence) { + return fixer.insertTextBefore(node, 'await '); + } + return [ + fixer.insertTextBefore(node, 'await ('), + fixer.insertTextAfter(node, ')'), + ]; + } + function isHigherPrecedenceThanAwait(node) { + const operator = ts.isBinaryExpression(node) + ? node.operatorToken.kind + : ts.SyntaxKind.Unknown; + const nodePrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(node.kind, operator); + const awaitPrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(ts.SyntaxKind.AwaitExpression, ts.SyntaxKind.Unknown); + return nodePrecedence > awaitPrecedence; + } + function test(node, expression) { + let child; + const isAwait = ts.isAwaitExpression(expression); + if (isAwait) { + child = expression.getChildAt(1); + } + else { + child = expression; + } + const type = checker.getTypeAtLocation(child); + const certainty = (0, util_1.needsToBeAwaited)(checker, expression, type); + // handle awaited _non_thenables + if (certainty !== util_1.Awaitable.Always) { + if (isAwait) { + if (certainty === util_1.Awaitable.May) { + return; + } + context.report({ + node, + messageId: 'nonPromiseAwait', + fix: fixer => removeAwait(fixer, node), + }); + } + return; + } + // At this point it's definitely a thenable. + const affectsErrorHandling = affectsExplicitErrorHandling(expression) || + affectsExplicitResourceManagement(node); + const useAutoFix = !affectsErrorHandling; + const ruleConfiguration = getConfiguration(option); + const shouldAwaitInCurrentContext = affectsErrorHandling + ? ruleConfiguration.errorHandlingContext + : ruleConfiguration.ordinaryContext; + switch (shouldAwaitInCurrentContext) { + case 'await': + if (!isAwait) { + context.report({ + node, + messageId: 'requiredPromiseAwait', + ...(0, util_1.getFixOrSuggest)({ + fixOrSuggest: useAutoFix ? 'fix' : 'suggest', + suggestion: { + messageId: 'requiredPromiseAwaitSuggestion', + fix: fixer => insertAwait(fixer, node, isHigherPrecedenceThanAwait(expression)), + }, + }), + }); + } + break; + case "don't-care": + break; + case 'no-await': + if (isAwait) { + context.report({ + node, + messageId: 'disallowedPromiseAwait', + ...(0, util_1.getFixOrSuggest)({ + fixOrSuggest: useAutoFix ? 'fix' : 'suggest', + suggestion: { + messageId: 'disallowedPromiseAwaitSuggestion', + fix: fixer => removeAwait(fixer, node), + }, + }), + }); + } + break; + } + } + function findPossiblyReturnedNodes(node) { + if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { + return [ + ...findPossiblyReturnedNodes(node.alternate), + ...findPossiblyReturnedNodes(node.consequent), + ]; + } + return [node]; + } + return { + ArrowFunctionExpression: enterFunction, + 'ArrowFunctionExpression:exit': exitFunction, + FunctionDeclaration: enterFunction, + 'FunctionDeclaration:exit': exitFunction, + FunctionExpression: enterFunction, + 'FunctionExpression:exit': exitFunction, + // executes after less specific handler, so exitFunction is called + 'ArrowFunctionExpression[async = true]:exit'(node) { + if (node.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { + findPossiblyReturnedNodes(node.body).forEach(node => { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + test(node, tsNode); + }); + } + }, + ReturnStatement(node) { + const scopeInfo = scopeInfoStack.at(-1); + if (!scopeInfo?.hasAsync || !node.argument) { + return; + } + findPossiblyReturnedNodes(node.argument).forEach(node => { + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + test(node, tsNode); + }); + }, + }; + }, +}); +function getConfiguration(option) { + switch (option) { + case 'always': + return { + errorHandlingContext: 'await', + ordinaryContext: 'await', + }; + case 'error-handling-correctness-only': + return { + errorHandlingContext: 'await', + ordinaryContext: "don't-care", + }; + case 'in-try-catch': + return { + errorHandlingContext: 'await', + ordinaryContext: 'no-await', + }; + case 'never': + return { + errorHandlingContext: 'no-await', + ordinaryContext: 'no-await', + }; + } +} +//# sourceMappingURL=return-await.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map new file mode 100644 index 00000000..5a608841 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map @@ -0,0 +1 @@ +{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCASiB;AACjB,yEAAsE;AAkBtE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,eAAe,EAAE,iBAAiB;YAClC,WAAW,EAAE;gBACX,MA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D,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACrB,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,SAAS,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAC3C,OAAO;gBACT,CAAC;gBACD,yBAAyB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBACxD,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AASH,SAAS,gBAAgB,CAAC,MAAc;IACtC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO;gBACL,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,OAAO;aACzB,CAAC;QACJ,KAAK,iCAAiC;YACpC,OAAO;gBACL,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,YAAY;aAC9B,CAAC;QACJ,KAAK,cAAc;YACjB,OAAO;gBACL,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,UAAU;aAC5B,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,oBAAoB,EAAE,UAAU;gBAChC,eAAe,EAAE,UAAU;aAC5B,CAAC;IACN,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js new file mode 100644 index 00000000..130a32de --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js @@ -0,0 +1,248 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +var Group; +(function (Group) { + Group["conditional"] = "conditional"; + Group["function"] = "function"; + Group["import"] = "import"; + Group["intersection"] = "intersection"; + Group["keyword"] = "keyword"; + Group["nullish"] = "nullish"; + Group["literal"] = "literal"; + Group["named"] = "named"; + Group["object"] = "object"; + Group["operator"] = "operator"; + Group["tuple"] = "tuple"; + Group["union"] = "union"; +})(Group || (Group = {})); +function getGroup(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSConditionalType: + return Group.conditional; + case utils_1.AST_NODE_TYPES.TSConstructorType: + case utils_1.AST_NODE_TYPES.TSFunctionType: + return Group.function; + case utils_1.AST_NODE_TYPES.TSImportType: + return Group.import; + case utils_1.AST_NODE_TYPES.TSIntersectionType: + return Group.intersection; + case utils_1.AST_NODE_TYPES.TSAnyKeyword: + case utils_1.AST_NODE_TYPES.TSBigIntKeyword: + case utils_1.AST_NODE_TYPES.TSBooleanKeyword: + case utils_1.AST_NODE_TYPES.TSNeverKeyword: + case utils_1.AST_NODE_TYPES.TSNumberKeyword: + case utils_1.AST_NODE_TYPES.TSObjectKeyword: + case utils_1.AST_NODE_TYPES.TSStringKeyword: + case utils_1.AST_NODE_TYPES.TSSymbolKeyword: + case utils_1.AST_NODE_TYPES.TSThisType: + case utils_1.AST_NODE_TYPES.TSUnknownKeyword: + case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: + return Group.keyword; + case utils_1.AST_NODE_TYPES.TSNullKeyword: + case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: + case utils_1.AST_NODE_TYPES.TSVoidKeyword: + return Group.nullish; + case utils_1.AST_NODE_TYPES.TSLiteralType: + case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: + return Group.literal; + case utils_1.AST_NODE_TYPES.TSArrayType: + case utils_1.AST_NODE_TYPES.TSIndexedAccessType: + case utils_1.AST_NODE_TYPES.TSInferType: + case utils_1.AST_NODE_TYPES.TSTypeReference: + case utils_1.AST_NODE_TYPES.TSQualifiedName: + return Group.named; + case utils_1.AST_NODE_TYPES.TSMappedType: + case utils_1.AST_NODE_TYPES.TSTypeLiteral: + return Group.object; + case utils_1.AST_NODE_TYPES.TSTypeOperator: + case utils_1.AST_NODE_TYPES.TSTypeQuery: + return Group.operator; + case utils_1.AST_NODE_TYPES.TSTupleType: + return Group.tuple; + case utils_1.AST_NODE_TYPES.TSUnionType: + return Group.union; + // These types should never occur as part of a union/intersection + case utils_1.AST_NODE_TYPES.TSAbstractKeyword: + case utils_1.AST_NODE_TYPES.TSAsyncKeyword: + case utils_1.AST_NODE_TYPES.TSDeclareKeyword: + case utils_1.AST_NODE_TYPES.TSExportKeyword: + case utils_1.AST_NODE_TYPES.TSNamedTupleMember: + case utils_1.AST_NODE_TYPES.TSOptionalType: + case utils_1.AST_NODE_TYPES.TSPrivateKeyword: + case utils_1.AST_NODE_TYPES.TSProtectedKeyword: + case utils_1.AST_NODE_TYPES.TSPublicKeyword: + case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: + case utils_1.AST_NODE_TYPES.TSRestType: + case utils_1.AST_NODE_TYPES.TSStaticKeyword: + case utils_1.AST_NODE_TYPES.TSTypePredicate: + /* istanbul ignore next */ + throw new Error(`Unexpected Type ${node.type}`); + } +} +function caseSensitiveSort(a, b) { + if (a < b) { + return -1; + } + else if (a > b) { + return 1; + } + return 0; +} +exports.default = (0, util_1.createRule)({ + name: 'sort-type-constituents', + meta: { + type: 'suggestion', + deprecated: true, + docs: { + description: 'Enforce constituents of a type union/intersection to be sorted alphabetically', + }, + fixable: 'code', + hasSuggestions: true, + messages: { + notSorted: '{{type}} type constituents must be sorted.', + notSortedNamed: '{{type}} type {{name}} constituents must be sorted.', + suggestFix: 'Sort constituents of type (removes all comments).', + }, + replacedBy: [ + 'perfectionist/sort-intersection-types', + 'perfectionist/sort-union-types', + ], + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + caseSensitive: { + type: 'boolean', + description: 'Whether to sort using case sensitive string comparisons.', + }, + checkIntersections: { + type: 'boolean', + description: 'Whether to check intersection types (`&`).', + }, + checkUnions: { + type: 'boolean', + description: 'Whether to check union types (`|`).', + }, + groupOrder: { + type: 'array', + description: 'Ordering of the groups.', + items: { + type: 'string', + enum: (0, util_1.getEnumNames)(Group), + }, + }, + }, + }, + ], + }, + defaultOptions: [ + { + caseSensitive: false, + checkIntersections: true, + checkUnions: true, + groupOrder: [ + Group.named, + Group.keyword, + Group.operator, + Group.literal, + Group.function, + Group.import, + Group.conditional, + Group.object, + Group.tuple, + Group.intersection, + Group.union, + Group.nullish, + ], + }, + ], + create(context, [{ caseSensitive, checkIntersections, checkUnions, groupOrder }]) { + const collator = new Intl.Collator('en', { + numeric: true, + sensitivity: 'base', + }); + function checkSorting(node) { + const sourceOrder = node.types.map(type => { + const group = groupOrder?.indexOf(getGroup(type)) ?? -1; + return { + node: type, + group: group === -1 ? Number.MAX_SAFE_INTEGER : group, + text: context.sourceCode.getText(type), + }; + }); + const expectedOrder = [...sourceOrder].sort((a, b) => { + if (a.group !== b.group) { + return a.group - b.group; + } + if (caseSensitive) { + return caseSensitiveSort(a.text, b.text); + } + return (collator.compare(a.text, b.text) || + (a.text < b.text ? -1 : a.text > b.text ? 1 : 0)); + }); + const hasComments = node.types.some(type => { + const count = context.sourceCode.getCommentsBefore(type).length + + context.sourceCode.getCommentsAfter(type).length; + return count > 0; + }); + for (let i = 0; i < expectedOrder.length; i += 1) { + if (expectedOrder[i].node !== sourceOrder[i].node) { + let messageId = 'notSorted'; + const data = { + name: '', + type: node.type === utils_1.AST_NODE_TYPES.TSIntersectionType + ? 'Intersection' + : 'Union', + }; + if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { + messageId = 'notSortedNamed'; + data.name = node.parent.id.name; + } + const fix = fixer => { + const sorted = expectedOrder + .map(t => (0, util_1.typeNodeRequiresParentheses)(t.node, t.text) || + (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && + t.node.type === utils_1.AST_NODE_TYPES.TSUnionType) + ? `(${t.text})` + : t.text) + .join(node.type === utils_1.AST_NODE_TYPES.TSIntersectionType ? ' & ' : ' | '); + return fixer.replaceText(node, sorted); + }; + return context.report({ + node, + messageId, + data, + // don't autofix if any of the types have leading/trailing comments + // the logic for preserving them correctly is a pain - we may implement this later + ...(hasComments + ? { + suggest: [ + { + messageId: 'suggestFix', + fix, + }, + ], + } + : { fix }), + }); + } + } + } + return { + ...(checkIntersections && { + TSIntersectionType(node) { + checkSorting(node); + }, + }), + ...(checkUnions && { + TSUnionType(node) { + checkSorting(node); + }, + }), + }; + }, +}); +//# sourceMappingURL=sort-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map new file mode 100644 index 00000000..549ad185 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sort-type-constituents.js","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAgF;AAEhF,IAAK,KAaJ;AAbD,WAAK,KAAK;IACR,oCAA2B,CAAA;IAC3B,8BAAqB,CAAA;IACrB,0BAAiB,CAAA;IACjB,sCAA6B,CAAA;IAC7B,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,wBAAe,CAAA;IACf,0BAAiB,CAAA;IACjB,8BAAqB,CAAA;IACrB,wBAAe,CAAA;IACf,wBAAe,CAAA;AACjB,CAAC,EAbI,KAAK,KAAL,KAAK,QAaT;AAED,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AAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js new file mode 100644 index 00000000..0e826b71 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js @@ -0,0 +1,838 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +const assertionFunctionUtils_1 = require("../util/assertionFunctionUtils"); +exports.default = (0, util_1.createRule)({ + name: 'strict-boolean-expressions', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow certain types in boolean expressions', + requiresTypeChecking: true, + }, + fixable: 'code', + hasSuggestions: true, + messages: { + conditionErrorAny: 'Unexpected any value in conditional. ' + + 'An explicit comparison or type cast is required.', + conditionErrorNullableBoolean: 'Unexpected nullable boolean value in conditional. ' + + 'Please handle the nullish case explicitly.', + conditionErrorNullableEnum: 'Unexpected nullable enum value in conditional. ' + + 'Please handle the nullish/zero/NaN cases explicitly.', + conditionErrorNullableNumber: 'Unexpected nullable number value in conditional. ' + + 'Please handle the nullish/zero/NaN cases explicitly.', + conditionErrorNullableObject: 'Unexpected nullable object value in conditional. ' + + 'An explicit null check is required.', + conditionErrorNullableString: 'Unexpected nullable string value in conditional. ' + + 'Please handle the nullish/empty cases explicitly.', + conditionErrorNullish: 'Unexpected nullish value in conditional. ' + + 'The condition is always false.', + conditionErrorNumber: 'Unexpected number value in conditional. ' + + 'An explicit zero/NaN check is required.', + conditionErrorObject: 'Unexpected object value in conditional. ' + + 'The condition is always true.', + conditionErrorOther: 'Unexpected value in conditional. ' + + 'A boolean expression is required.', + conditionErrorString: 'Unexpected string value in conditional. ' + + 'An explicit empty string check is required.', + conditionFixCastBoolean: 'Explicitly cast value to a boolean (`Boolean(value)`)', + conditionFixCompareEmptyString: 'Change condition to check for empty string (`value !== ""`)', + conditionFixCompareFalse: 'Change condition to check if false (`value === false`)', + conditionFixCompareNaN: 'Change condition to check for NaN (`!Number.isNaN(value)`)', + conditionFixCompareNullish: 'Change condition to check for null/undefined (`value != null`)', + conditionFixCompareStringLength: "Change condition to check string's length (`value.length !== 0`)", + conditionFixCompareTrue: 'Change condition to check if true (`value === true`)', + conditionFixCompareZero: 'Change condition to check for 0 (`value !== 0`)', + conditionFixDefaultEmptyString: 'Explicitly treat nullish value the same as an empty string (`value ?? ""`)', + conditionFixDefaultFalse: 'Explicitly treat nullish value the same as false (`value ?? false`)', + conditionFixDefaultZero: 'Explicitly treat nullish value the same as 0 (`value ?? 0`)', + noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowAny: { + type: 'boolean', + description: 'Whether to allow `any`s in a boolean context.', + }, + allowNullableBoolean: { + type: 'boolean', + description: 'Whether to allow nullable `boolean`s in a boolean context.', + }, + allowNullableEnum: { + type: 'boolean', + description: 'Whether to allow nullable `enum`s in a boolean context.', + }, + allowNullableNumber: { + type: 'boolean', + description: 'Whether to allow nullable `number`s in a boolean context.', + }, + allowNullableObject: { + type: 'boolean', + description: 'Whether to allow nullable `object`s, `symbol`s, and functions in a boolean context.', + }, + allowNullableString: { + type: 'boolean', + description: 'Whether to allow nullable `string`s in a boolean context.', + }, + allowNumber: { + type: 'boolean', + description: 'Whether to allow `number`s in a boolean context.', + }, + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { + type: 'boolean', + description: 'Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.', + }, + allowString: { + type: 'boolean', + description: 'Whether to allow `string`s in a boolean context.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowAny: false, + allowNullableBoolean: false, + allowNullableEnum: false, + allowNullableNumber: false, + allowNullableObject: true, + allowNullableString: false, + allowNumber: true, + allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, + allowString: true, + }, + ], + create(context, [options]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); + if (!isStrictNullChecks && + options.allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { + context.report({ + loc: { + start: { column: 0, line: 0 }, + end: { column: 0, line: 0 }, + }, + messageId: 'noStrictNullCheck', + }); + } + const traversedNodes = new Set(); + return { + CallExpression: traverseCallExpression, + ConditionalExpression: traverseTestExpression, + DoWhileStatement: traverseTestExpression, + ForStatement: traverseTestExpression, + IfStatement: traverseTestExpression, + 'LogicalExpression[operator!="??"]': traverseLogicalExpression, + 'UnaryExpression[operator="!"]': traverseUnaryLogicalExpression, + WhileStatement: traverseTestExpression, + }; + /** + * Inspects condition of a test expression. (`if`, `while`, `for`, etc.) + */ + function traverseTestExpression(node) { + if (node.test == null) { + return; + } + traverseNode(node.test, true); + } + /** + * Inspects the argument of a unary logical expression (`!`). + */ + function traverseUnaryLogicalExpression(node) { + traverseNode(node.argument, true); + } + /** + * Inspects the arguments of a logical expression (`&&`, `||`). + * + * If the logical expression is a descendant of a test expression, + * the `isCondition` flag should be set to true. + * Otherwise, if the logical expression is there on it's own, + * it's used for control flow and is not a condition itself. + */ + function traverseLogicalExpression(node, isCondition = false) { + // left argument is always treated as a condition + traverseNode(node.left, true); + // if the logical expression is used for control flow, + // then its right argument is used for its side effects only + traverseNode(node.right, isCondition); + } + function traverseCallExpression(node) { + const assertedArgument = (0, assertionFunctionUtils_1.findTruthinessAssertedArgument)(services, node); + if (assertedArgument != null) { + traverseNode(assertedArgument, true); + } + } + /** + * Inspects any node. + * + * If it's a logical expression then it recursively traverses its arguments. + * If it's any other kind of node then it's type is finally checked against the rule, + * unless `isCondition` flag is set to false, in which case + * it's assumed to be used for side effects only and is skipped. + */ + function traverseNode(node, isCondition) { + // prevent checking the same node multiple times + if (traversedNodes.has(node)) { + return; + } + traversedNodes.add(node); + // for logical operator, we check its operands + if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression && + node.operator !== '??') { + traverseLogicalExpression(node, isCondition); + return; + } + // skip if node is not a condition + if (!isCondition) { + return; + } + checkNode(node); + } + /** + * This function does the actual type check on a node. + * It analyzes the type of a node and checks if it is allowed in a boolean context. + */ + function checkNode(node) { + const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); + const types = inspectVariantTypes(tsutils.unionTypeParts(type)); + const is = (...wantedTypes) => types.size === wantedTypes.length && + wantedTypes.every(type => types.has(type)); + // boolean + if (is('boolean') || is('truthy boolean')) { + // boolean is always okay + return; + } + // never + if (is('never')) { + // never is always okay + return; + } + // nullish + if (is('nullish')) { + // condition is always false + context.report({ node, messageId: 'conditionErrorNullish' }); + return; + } + // Known edge case: boolean `true` and nullish values are always valid boolean expressions + if (is('nullish', 'truthy boolean')) { + return; + } + // nullable boolean + if (is('nullish', 'boolean')) { + if (!options.allowNullableBoolean) { + if (isLogicalNegationExpression(node.parent)) { + // if (!nullableBoolean) + context.report({ + node, + messageId: 'conditionErrorNullableBoolean', + suggest: [ + { + messageId: 'conditionFixDefaultFalse', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? false`, + }), + }, + { + messageId: 'conditionFixCompareFalse', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} === false`, + }), + }, + ], + }); + } + else { + // if (nullableBoolean) + context.report({ + node, + messageId: 'conditionErrorNullableBoolean', + suggest: [ + { + messageId: 'conditionFixDefaultFalse', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? false`, + }), + }, + { + messageId: 'conditionFixCompareTrue', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} === true`, + }), + }, + ], + }); + } + } + return; + } + // Known edge case: truthy primitives and nullish values are always valid boolean expressions + if ((options.allowNumber && is('nullish', 'truthy number')) || + (options.allowString && is('nullish', 'truthy string'))) { + return; + } + // string + if (is('string') || is('truthy string')) { + if (!options.allowString) { + if (isLogicalNegationExpression(node.parent)) { + // if (!string) + context.report({ + node, + messageId: 'conditionErrorString', + suggest: [ + { + messageId: 'conditionFixCompareStringLength', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code}.length === 0`, + }), + }, + { + messageId: 'conditionFixCompareEmptyString', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} === ""`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `!Boolean(${code})`, + }), + }, + ], + }); + } + else { + // if (string) + context.report({ + node, + messageId: 'conditionErrorString', + suggest: [ + { + messageId: 'conditionFixCompareStringLength', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code}.length > 0`, + }), + }, + { + messageId: 'conditionFixCompareEmptyString', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} !== ""`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `Boolean(${code})`, + }), + }, + ], + }); + } + } + return; + } + // nullable string + if (is('nullish', 'string')) { + if (!options.allowNullableString) { + if (isLogicalNegationExpression(node.parent)) { + // if (!nullableString) + context.report({ + node, + messageId: 'conditionErrorNullableString', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} == null`, + }), + }, + { + messageId: 'conditionFixDefaultEmptyString', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? ""`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `!Boolean(${code})`, + }), + }, + ], + }); + } + else { + // if (nullableString) + context.report({ + node, + messageId: 'conditionErrorNullableString', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} != null`, + }), + }, + { + messageId: 'conditionFixDefaultEmptyString', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? ""`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `Boolean(${code})`, + }), + }, + ], + }); + } + } + return; + } + // number + if (is('number') || is('truthy number')) { + if (!options.allowNumber) { + if (isArrayLengthExpression(node, checker, services)) { + if (isLogicalNegationExpression(node.parent)) { + // if (!array.length) + context.report({ + node, + messageId: 'conditionErrorNumber', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} === 0`, + }), + }); + } + else { + // if (array.length) + context.report({ + node, + messageId: 'conditionErrorNumber', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} > 0`, + }), + }); + } + } + else if (isLogicalNegationExpression(node.parent)) { + // if (!number) + context.report({ + node, + messageId: 'conditionErrorNumber', + suggest: [ + { + messageId: 'conditionFixCompareZero', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + // TODO: we have to compare to 0n if the type is bigint + wrap: code => `${code} === 0`, + }), + }, + { + // TODO: don't suggest this for bigint because it can't be NaN + messageId: 'conditionFixCompareNaN', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `Number.isNaN(${code})`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `!Boolean(${code})`, + }), + }, + ], + }); + } + else { + // if (number) + context.report({ + node, + messageId: 'conditionErrorNumber', + suggest: [ + { + messageId: 'conditionFixCompareZero', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} !== 0`, + }), + }, + { + messageId: 'conditionFixCompareNaN', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `!Number.isNaN(${code})`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `Boolean(${code})`, + }), + }, + ], + }); + } + } + return; + } + // nullable number + if (is('nullish', 'number')) { + if (!options.allowNullableNumber) { + if (isLogicalNegationExpression(node.parent)) { + // if (!nullableNumber) + context.report({ + node, + messageId: 'conditionErrorNullableNumber', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} == null`, + }), + }, + { + messageId: 'conditionFixDefaultZero', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? 0`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `!Boolean(${code})`, + }), + }, + ], + }); + } + else { + // if (nullableNumber) + context.report({ + node, + messageId: 'conditionErrorNullableNumber', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} != null`, + }), + }, + { + messageId: 'conditionFixDefaultZero', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} ?? 0`, + }), + }, + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `Boolean(${code})`, + }), + }, + ], + }); + } + } + return; + } + // object + if (is('object')) { + // condition is always true + context.report({ node, messageId: 'conditionErrorObject' }); + return; + } + // nullable object + if (is('nullish', 'object')) { + if (!options.allowNullableObject) { + if (isLogicalNegationExpression(node.parent)) { + // if (!nullableObject) + context.report({ + node, + messageId: 'conditionErrorNullableObject', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} == null`, + }), + }, + ], + }); + } + else { + // if (nullableObject) + context.report({ + node, + messageId: 'conditionErrorNullableObject', + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} != null`, + }), + }, + ], + }); + } + } + return; + } + // nullable enum + if (is('nullish', 'number', 'enum') || + is('nullish', 'string', 'enum') || + is('nullish', 'truthy number', 'enum') || + is('nullish', 'truthy string', 'enum') || + // mixed enums + is('nullish', 'truthy number', 'truthy string', 'enum') || + is('nullish', 'truthy number', 'string', 'enum') || + is('nullish', 'truthy string', 'number', 'enum') || + is('nullish', 'number', 'string', 'enum')) { + if (!options.allowNullableEnum) { + if (isLogicalNegationExpression(node.parent)) { + context.report({ + node, + messageId: 'conditionErrorNullableEnum', + fix: (0, util_1.getWrappingFixer)({ + node: node.parent, + innerNode: node, + sourceCode: context.sourceCode, + wrap: code => `${code} == null`, + }), + }); + } + else { + context.report({ + node, + messageId: 'conditionErrorNullableEnum', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `${code} != null`, + }), + }); + } + } + return; + } + // any + if (is('any')) { + if (!options.allowAny) { + context.report({ + node, + messageId: 'conditionErrorAny', + suggest: [ + { + messageId: 'conditionFixCastBoolean', + fix: (0, util_1.getWrappingFixer)({ + node, + sourceCode: context.sourceCode, + wrap: code => `Boolean(${code})`, + }), + }, + ], + }); + } + return; + } + // other + context.report({ node, messageId: 'conditionErrorOther' }); + } + /** + * Check union variants for the types we care about + */ + function inspectVariantTypes(types) { + const variantTypes = new Set(); + if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined | ts.TypeFlags.VoidLike))) { + variantTypes.add('nullish'); + } + const booleans = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.BooleanLike)); + // If incoming type is either "true" or "false", there will be one type + // object with intrinsicName set accordingly + // If incoming type is boolean, there will be two type objects with + // intrinsicName set "true" and "false" each because of ts-api-utils.unionTypeParts() + if (booleans.length === 1) { + variantTypes.add(tsutils.isTrueLiteralType(booleans[0]) ? 'truthy boolean' : 'boolean'); + } + else if (booleans.length === 2) { + variantTypes.add('boolean'); + } + const strings = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.StringLike)); + if (strings.length) { + if (strings.every(type => type.isStringLiteral() && type.value !== '')) { + variantTypes.add('truthy string'); + } + else { + variantTypes.add('string'); + } + } + const numbers = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike)); + if (numbers.length) { + if (numbers.every(type => type.isNumberLiteral() && type.value !== 0)) { + variantTypes.add('truthy number'); + } + else { + variantTypes.add('number'); + } + } + if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.EnumLike))) { + variantTypes.add('enum'); + } + if (types.some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | + ts.TypeFlags.Undefined | + ts.TypeFlags.VoidLike | + ts.TypeFlags.BooleanLike | + ts.TypeFlags.StringLike | + ts.TypeFlags.NumberLike | + ts.TypeFlags.BigIntLike | + ts.TypeFlags.TypeParameter | + ts.TypeFlags.Any | + ts.TypeFlags.Unknown | + ts.TypeFlags.Never))) { + variantTypes.add(types.some(isBrandedBoolean) ? 'boolean' : 'object'); + } + if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.TypeParameter | + ts.TypeFlags.Any | + ts.TypeFlags.Unknown))) { + variantTypes.add('any'); + } + if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Never))) { + variantTypes.add('never'); + } + return variantTypes; + } + }, +}); +function isLogicalNegationExpression(node) { + return node.type === utils_1.AST_NODE_TYPES.UnaryExpression && node.operator === '!'; +} +function isArrayLengthExpression(node, typeChecker, services) { + if (node.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return false; + } + if (node.computed) { + return false; + } + if (node.property.name !== 'length') { + return false; + } + const objectType = (0, util_1.getConstrainedTypeAtLocation)(services, node.object); + return (0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(objectType, typeChecker); +} +/** + * Verify is the type is a branded boolean (e.g. `type Foo = boolean & { __brand: 'Foo' }`) + * + * @param type The type checked + */ +function isBrandedBoolean(type) { + return (type.isIntersection() && + type.types.some(childType => tsutils.isTypeFlagSet(childType, ts.TypeFlags.BooleanLiteral | ts.TypeFlags.Boolean))); +} +//# sourceMappingURL=strict-boolean-expressions.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map new file mode 100644 index 00000000..364edb7e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AACjB,2EAAgF;AAyChF,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,uCAAuC;gBACvC,kDAAkD;YACpD,6BAA6B,EAC3B,oDAAoD;gBACpD,4CAA4C;YAC9C,0BAA0B,EACxB,iDAAiD;gBACjD,sDAAsD;YACxD,4BAA4B,EAC1B,mDAAmD;gBACnD,sDAAsD;YACxD,4BAA4B,EAC1B,mDAAmD;gBACnD,qCAAqC;YACvC,4BAA4B,EAC1B,mDAAmD;gBACnD,mDAAmD;YACrD,qBAAqB,EACnB,2CAA2C;gBAC3C,gCAAgC;YAClC,oBAAoB,EAClB,0C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eslint-plugin/dist/rules/switch-exhaustiveness-check.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js new file mode 100644 index 00000000..1fcf2025 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js @@ -0,0 +1,259 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'switch-exhaustiveness-check', + meta: { + type: 'suggestion', + docs: { + description: 'Require switch-case statements to be exhaustive', + requiresTypeChecking: true, + }, + hasSuggestions: true, + messages: { + addMissingCases: 'Add branches for missing cases.', + dangerousDefaultCase: 'The switch statement is exhaustive, so the default case is unnecessary.', + switchIsNotExhaustive: 'Switch is not exhaustive. Cases not matched: {{missingBranches}}', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + allowDefaultCaseForExhaustiveSwitch: { + type: 'boolean', + description: `If 'true', allow 'default' cases on switch statements with exhaustive cases.`, + }, + considerDefaultExhaustiveForUnions: { + type: 'boolean', + description: `If 'true', the 'default' clause is used to determine whether the switch statement is exhaustive for union type`, + }, + requireDefaultForNonUnion: { + type: 'boolean', + description: `If 'true', require a 'default' clause for switches on non-union types.`, + }, + }, + }, + ], + }, + defaultOptions: [ + { + allowDefaultCaseForExhaustiveSwitch: true, + considerDefaultExhaustiveForUnions: false, + requireDefaultForNonUnion: false, + }, + ], + create(context, [{ allowDefaultCaseForExhaustiveSwitch, considerDefaultExhaustiveForUnions, requireDefaultForNonUnion, },]) { + const services = (0, util_1.getParserServices)(context); + const checker = services.program.getTypeChecker(); + const compilerOptions = services.program.getCompilerOptions(); + function getSwitchMetadata(node) { + const defaultCase = node.cases.find(switchCase => switchCase.test == null); + const discriminantType = (0, util_1.getConstrainedTypeAtLocation)(services, node.discriminant); + const symbolName = discriminantType.getSymbol()?.escapedName; + const containsNonLiteralType = doesTypeContainNonLiteralType(discriminantType); + const caseTypes = new Set(); + for (const switchCase of node.cases) { + // If the `test` property of the switch case is `null`, then we are on a + // `default` case. + if (switchCase.test == null) { + continue; + } + const caseType = (0, util_1.getConstrainedTypeAtLocation)(services, switchCase.test); + caseTypes.add(caseType); + } + const missingLiteralBranchTypes = []; + for (const unionPart of tsutils.unionTypeParts(discriminantType)) { + for (const intersectionPart of tsutils.intersectionTypeParts(unionPart)) { + if (caseTypes.has(intersectionPart) || + !isTypeLiteralLikeType(intersectionPart)) { + continue; + } + // "missing", "optional" and "undefined" types are different runtime objects, + // but all of them have TypeFlags.Undefined type flag + if ([...caseTypes].some(tsutils.isIntrinsicUndefinedType) && + tsutils.isIntrinsicUndefinedType(intersectionPart)) { + continue; + } + missingLiteralBranchTypes.push(intersectionPart); + } + } + return { + containsNonLiteralType, + defaultCase, + missingLiteralBranchTypes, + symbolName, + }; + } + function checkSwitchExhaustive(node, switchMetadata) { + const { defaultCase, missingLiteralBranchTypes, symbolName } = switchMetadata; + // If considerDefaultExhaustiveForUnions is enabled, the presence of a default case + // always makes the switch exhaustive. + if (considerDefaultExhaustiveForUnions && defaultCase != null) { + return; + } + if (missingLiteralBranchTypes.length > 0) { + context.report({ + node: node.discriminant, + messageId: 'switchIsNotExhaustive', + data: { + missingBranches: missingLiteralBranchTypes + .map(missingType => tsutils.isTypeFlagSet(missingType, ts.TypeFlags.ESSymbolLike) + ? `typeof ${missingType.getSymbol()?.escapedName}` + : checker.typeToString(missingType)) + .join(' | '), + }, + suggest: [ + { + messageId: 'addMissingCases', + fix(fixer) { + return fixSwitch(fixer, node, missingLiteralBranchTypes, symbolName?.toString()); + }, + }, + ], + }); + } + } + function fixSwitch(fixer, node, missingBranchTypes, // null means default branch + symbolName) { + const lastCase = node.cases.length > 0 ? node.cases[node.cases.length - 1] : null; + const defaultCase = node.cases.find(caseEl => caseEl.test == null); + const caseIndent = lastCase + ? ' '.repeat(lastCase.loc.start.column) + : // If there are no cases, use indentation of the switch statement and + // leave it to the user to format it correctly. + ' '.repeat(node.loc.start.column); + const missingCases = []; + for (const missingBranchType of missingBranchTypes) { + if (missingBranchType == null) { + missingCases.push(`default: { throw new Error('default case') }`); + continue; + } + const missingBranchName = missingBranchType.getSymbol()?.escapedName; + let caseTest = tsutils.isTypeFlagSet(missingBranchType, ts.TypeFlags.ESSymbolLike) + ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + missingBranchName + : checker.typeToString(missingBranchType); + if (symbolName && + (missingBranchName || missingBranchName === '') && + (0, util_1.requiresQuoting)(missingBranchName.toString(), compilerOptions.target)) { + const escapedBranchName = missingBranchName + .replaceAll("'", "\\'") + .replaceAll('\n', '\\n') + .replaceAll('\r', '\\r'); + caseTest = `${symbolName}['${escapedBranchName}']`; + } + missingCases.push(`case ${caseTest}: { throw new Error('Not implemented yet: ${caseTest + .replaceAll('\\', '\\\\') + .replaceAll("'", "\\'")} case') }`); + } + const fixString = missingCases + .map(code => `${caseIndent}${code}`) + .join('\n'); + if (lastCase) { + if (defaultCase) { + const beforeFixString = missingCases + .map(code => `${code}\n${caseIndent}`) + .join(''); + return fixer.insertTextBefore(defaultCase, beforeFixString); + } + return fixer.insertTextAfter(lastCase, `\n${fixString}`); + } + // There were no existing cases. + const openingBrace = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.discriminant, util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', 'discriminant')); + const closingBrace = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.discriminant, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', 'discriminant')); + return fixer.replaceTextRange([openingBrace.range[0], closingBrace.range[1]], ['{', fixString, `${caseIndent}}`].join('\n')); + } + function checkSwitchUnnecessaryDefaultCase(switchMetadata) { + if (allowDefaultCaseForExhaustiveSwitch) { + return; + } + const { containsNonLiteralType, defaultCase, missingLiteralBranchTypes } = switchMetadata; + if (missingLiteralBranchTypes.length === 0 && + defaultCase !== undefined && + !containsNonLiteralType) { + context.report({ + node: defaultCase, + messageId: 'dangerousDefaultCase', + }); + } + } + function checkSwitchNoUnionDefaultCase(node, switchMetadata) { + if (!requireDefaultForNonUnion) { + return; + } + const { containsNonLiteralType, defaultCase } = switchMetadata; + if (containsNonLiteralType && defaultCase === undefined) { + context.report({ + node: node.discriminant, + messageId: 'switchIsNotExhaustive', + data: { missingBranches: 'default' }, + suggest: [ + { + messageId: 'addMissingCases', + fix(fixer) { + return fixSwitch(fixer, node, [null]); + }, + }, + ], + }); + } + } + return { + SwitchStatement(node) { + const switchMetadata = getSwitchMetadata(node); + checkSwitchExhaustive(node, switchMetadata); + checkSwitchUnnecessaryDefaultCase(switchMetadata); + checkSwitchNoUnionDefaultCase(node, switchMetadata); + }, + }; + }, +}); +function isTypeLiteralLikeType(type) { + return tsutils.isTypeFlagSet(type, ts.TypeFlags.Literal | + ts.TypeFlags.Undefined | + ts.TypeFlags.Null | + ts.TypeFlags.UniqueESSymbol); +} +/** + * For example: + * + * - `"foo" | "bar"` is a type with all literal types. + * - `"foo" | number` is a type that contains non-literal types. + * - `"foo" & { bar: 1 }` is a type that contains non-literal types. + * + * Default cases are never superfluous in switches with non-literal types. + */ +function doesTypeContainNonLiteralType(type) { + return tsutils + .unionTypeParts(type) + .some(type => tsutils + .intersectionTypeParts(type) + .every(subType => !isTypeLiteralLikeType(subType))); +} +//# sourceMappingURL=switch-exhaustiveness-check.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map new file mode 100644 index 00000000..b2907a87 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map @@ -0,0 +1 @@ +{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAwC;AACxC,+CAAiC;AAEjC,kCASiB;AAwCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,eAAe,EAAE,iCAAiC;YAClD,oBAAoB,EAClB,yEAAyE;YAC3E,qBAAqB,EACnB,kEAAkE;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,mCAAmC,EAAE;wBACnC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,8EAA8E;qBAC5F;oBACD,kCAAkC,EAAE;wBAClC,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,gHAAgH;qBAC9H;oBACD,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O,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,IAAI,CAAC,EAAE,CACX,OAAO;SACJ,qBAAqB,CAAC,IAAI,CAAC;SAC3B,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js new file mode 100644 index 00000000..3fbb427d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js @@ -0,0 +1,111 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'triple-slash-reference', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow certain triple slash directives in favor of ES6-style import declarations', + recommended: 'recommended', + }, + messages: { + tripleSlashReference: 'Do not use a triple slash reference for {{module}}, use `import` style instead.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + lib: { + type: 'string', + description: 'What to enforce for `/// ` references.', + enum: ['always', 'never'], + }, + path: { + type: 'string', + description: 'What to enforce for `/// ` references.', + enum: ['always', 'never'], + }, + types: { + type: 'string', + description: 'What to enforce for `/// ` references.', + enum: ['always', 'never', 'prefer-import'], + }, + }, + }, + ], + }, + defaultOptions: [ + { + lib: 'always', + path: 'never', + types: 'prefer-import', + }, + ], + create(context, [{ lib, path, types }]) { + let programNode; + const references = []; + function hasMatchingReference(source) { + references.forEach(reference => { + if (reference.importName === source.value) { + context.report({ + node: reference.comment, + messageId: 'tripleSlashReference', + data: { + module: reference.importName, + }, + }); + } + }); + } + return { + ImportDeclaration(node) { + if (programNode) { + hasMatchingReference(node.source); + } + }, + Program(node) { + if (lib === 'always' && path === 'always' && types === 'always') { + return; + } + programNode = node; + const referenceRegExp = /^\/\s* { + if (comment.type !== utils_1.AST_TOKEN_TYPES.Line) { + return; + } + const referenceResult = referenceRegExp.exec(comment.value); + if (referenceResult) { + if ((referenceResult[1] === 'types' && types === 'never') || + (referenceResult[1] === 'path' && path === 'never') || + (referenceResult[1] === 'lib' && lib === 'never')) { + context.report({ + node: comment, + messageId: 'tripleSlashReference', + data: { + module: referenceResult[2], + }, + }); + return; + } + if (referenceResult[1] === 'types' && types === 'prefer-import') { + references.push({ comment, importName: referenceResult[2] }); + } + } + }); + }, + TSImportEqualsDeclaration(node) { + if (programNode) { + const reference = node.moduleReference; + if (reference.type === utils_1.AST_NODE_TYPES.TSExternalModuleReference) { + hasMatchingReference(reference.expression); + } + } + }, + }; + }, +}); +//# sourceMappingURL=triple-slash-reference.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map new file mode 100644 index 00000000..4ac562d5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map @@ -0,0 +1 @@ +{"version":3,"file":"triple-slash-reference.js","sourceRoot":"","sources":["../../src/rules/triple-slash-reference.ts"],"names":[],"mappings":";;AAEA,oDAA2E;AAE3E,kCAAqC;AAWrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oFAAoF;YACtF,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,oBAAoB,EAClB,iFAAiF;SACpF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,U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AI;gBAC5B,IAAI,WAAW,EAAE,CAAC;oBAChB,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC;oBAEvC,IAAI,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,yBAAyB,EAAE,CAAC;wBAChE,oBAAoB,CAAC,SAAS,CAAC,UAA8B,CAAC,CAAC;oBACjE,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js new file mode 100644 index 00000000..d4455966 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js @@ -0,0 +1,224 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'typedef', + meta: { + type: 'suggestion', + docs: { + description: 'Require type annotations in certain places', + }, + messages: { + expectedTypedef: 'Expected a type annotation.', + expectedTypedefNamed: 'Expected {{name}} to have a type annotation.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: { + type: 'boolean', + description: 'Whether to enforce type annotations on variables declared using array destructuring.', + }, + ["arrowParameter" /* OptionKeys.ArrowParameter */]: { + type: 'boolean', + description: 'Whether to enforce type annotations for parameters of arrow functions.', + }, + ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: { + type: 'boolean', + description: 'Whether to enforce type annotations on member variables of classes.', + }, + ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: { + type: 'boolean', + description: 'Whether to enforce type annotations on variables declared using object destructuring.', + }, + ["parameter" /* OptionKeys.Parameter */]: { + type: 'boolean', + description: 'Whether to enforce type annotations for parameters of functions and methods.', + }, + ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: { + type: 'boolean', + description: 'Whether to enforce type annotations for properties of interfaces and types.', + }, + ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: { + type: 'boolean', + description: 'Whether to enforce type annotations for variable declarations, excluding array and object destructuring.', + }, + ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: { + type: 'boolean', + description: 'Whether to ignore variable declarations for non-arrow and arrow functions.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: false, + ["arrowParameter" /* OptionKeys.ArrowParameter */]: false, + ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: false, + ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: false, + ["parameter" /* OptionKeys.Parameter */]: false, + ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: false, + ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: false, + ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: false, + }, + ], + create(context, [{ arrayDestructuring, arrowParameter, memberVariableDeclaration, objectDestructuring, parameter, propertyDeclaration, variableDeclaration, variableDeclarationIgnoreFunction, },]) { + function report(location, name) { + context.report({ + node: location, + messageId: name ? 'expectedTypedefNamed' : 'expectedTypedef', + data: { name }, + }); + } + function getNodeName(node) { + return node.type === utils_1.AST_NODE_TYPES.Identifier ? node.name : undefined; + } + function isForOfStatementContext(node) { + let current = node.parent; + while (current) { + switch (current.type) { + case utils_1.AST_NODE_TYPES.VariableDeclarator: + case utils_1.AST_NODE_TYPES.VariableDeclaration: + case utils_1.AST_NODE_TYPES.ObjectPattern: + case utils_1.AST_NODE_TYPES.ArrayPattern: + case utils_1.AST_NODE_TYPES.Property: + current = current.parent; + break; + case utils_1.AST_NODE_TYPES.ForOfStatement: + return true; + default: + current = undefined; + } + } + return false; + } + function checkParameters(params) { + for (const param of params) { + let annotationNode; + switch (param.type) { + case utils_1.AST_NODE_TYPES.AssignmentPattern: + annotationNode = param.left; + break; + case utils_1.AST_NODE_TYPES.TSParameterProperty: + annotationNode = param.parameter; + // Check TS parameter property with default value like `constructor(private param: string = 'something') {}` + if (annotationNode.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { + annotationNode = annotationNode.left; + } + break; + default: + annotationNode = param; + break; + } + if (!annotationNode.typeAnnotation) { + report(param, getNodeName(param)); + } + } + } + function isVariableDeclarationIgnoreFunction(node) { + return (variableDeclarationIgnoreFunction === true && + (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + node.type === utils_1.AST_NODE_TYPES.FunctionExpression)); + } + function isAncestorHasTypeAnnotation(node) { + let ancestor = node.parent; + while (ancestor) { + if ((ancestor.type === utils_1.AST_NODE_TYPES.ObjectPattern || + ancestor.type === utils_1.AST_NODE_TYPES.ArrayPattern) && + ancestor.typeAnnotation) { + return true; + } + ancestor = ancestor.parent; + } + return false; + } + return { + ...(arrayDestructuring && { + ArrayPattern(node) { + if (node.parent.type === utils_1.AST_NODE_TYPES.RestElement && + node.parent.typeAnnotation) { + return; + } + if (!node.typeAnnotation && + !isForOfStatementContext(node) && + !isAncestorHasTypeAnnotation(node) && + node.parent.type !== utils_1.AST_NODE_TYPES.AssignmentExpression) { + report(node); + } + }, + }), + ...(arrowParameter && { + ArrowFunctionExpression(node) { + checkParameters(node.params); + }, + }), + ...(memberVariableDeclaration && { + PropertyDefinition(node) { + if (!(node.value && isVariableDeclarationIgnoreFunction(node.value)) && + !node.typeAnnotation) { + report(node, node.key.type === utils_1.AST_NODE_TYPES.Identifier + ? node.key.name + : undefined); + } + }, + }), + ...(parameter && { + 'FunctionDeclaration, FunctionExpression'(node) { + checkParameters(node.params); + }, + }), + ...(objectDestructuring && { + ObjectPattern(node) { + if (!node.typeAnnotation && + !isForOfStatementContext(node) && + !isAncestorHasTypeAnnotation(node)) { + report(node); + } + }, + }), + ...(propertyDeclaration && { + 'TSIndexSignature, TSPropertySignature'(node) { + if (!node.typeAnnotation) { + report(node, node.type === utils_1.AST_NODE_TYPES.TSPropertySignature + ? getNodeName(node.key) + : undefined); + } + }, + }), + VariableDeclarator(node) { + if (!variableDeclaration || + node.id.typeAnnotation || + (node.id.type === utils_1.AST_NODE_TYPES.ArrayPattern && + !arrayDestructuring) || + (node.id.type === utils_1.AST_NODE_TYPES.ObjectPattern && + !objectDestructuring) || + (node.init && isVariableDeclarationIgnoreFunction(node.init))) { + return; + } + let current = node.parent; + while (current) { + switch (current.type) { + case utils_1.AST_NODE_TYPES.VariableDeclaration: + // Keep looking upwards + current = current.parent; + break; + case utils_1.AST_NODE_TYPES.ForOfStatement: + case utils_1.AST_NODE_TYPES.ForInStatement: + // Stop traversing and don't report an error + return; + default: + // Stop traversing + current = undefined; + break; + } + } + report(node, getNodeName(node.id)); + }, + }; + }, +}); +//# sourceMappingURL=typedef.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map new file mode 100644 index 00000000..5c62c7a7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typedef.js","sourceRoot":"","sources":["../../src/rules/typedef.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,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BACpB,MAAM;oBACV,CAAC;gBACH,CAAC;gBAED,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js new file mode 100644 index 00000000..ad306337 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js @@ -0,0 +1,322 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const util_1 = require("../util"); +/** + * Static methods on these globals are either not `this`-aware or supported being + * called without `this`. + * + * - `Promise` is not in the list because it supports subclassing by using `this` + * - `Array` is in the list because although it supports subclassing, the `this` + * value defaults to `Array` when unbound + * + * This is now a language-design invariant: static methods are never `this`-aware + * because TC39 wants to make `array.map(Class.method)` work! + */ +const SUPPORTED_GLOBALS = [ + 'Number', + 'Object', + 'String', // eslint-disable-line @typescript-eslint/internal/prefer-ast-types-enum + 'RegExp', + 'Symbol', + 'Array', + 'Proxy', + 'Date', + 'Atomics', + 'Reflect', + 'console', + 'Math', + 'JSON', + 'Intl', +]; +const nativelyBoundMembers = new Set(SUPPORTED_GLOBALS.flatMap(namespace => { + if (!(namespace in global)) { + // node.js might not have namespaces like Intl depending on compilation options + // https://nodejs.org/api/intl.html#intl_options_for_building_node_js + return []; + } + const object = global[namespace]; + return Object.getOwnPropertyNames(object) + .filter(name => !name.startsWith('_') && + typeof object[name] === 'function') + .map(name => `${namespace}.${name}`); +})); +const SUPPORTED_GLOBAL_TYPES = [ + 'NumberConstructor', + 'ObjectConstructor', + 'StringConstructor', + 'SymbolConstructor', + 'ArrayConstructor', + 'Array', + 'ProxyConstructor', + 'Console', + 'DateConstructor', + 'Atomics', + 'Math', + 'JSON', +]; +const isNotImported = (symbol, currentSourceFile) => { + const { valueDeclaration } = symbol; + if (!valueDeclaration) { + // working around https://github.com/microsoft/TypeScript/issues/31294 + return false; + } + return (!!currentSourceFile && + currentSourceFile !== valueDeclaration.getSourceFile()); +}; +const BASE_MESSAGE = 'Avoid referencing unbound methods which may cause unintentional scoping of `this`.'; +exports.default = (0, util_1.createRule)({ + name: 'unbound-method', + meta: { + type: 'problem', + docs: { + description: 'Enforce unbound methods are called with their expected scope', + recommended: 'recommended', + requiresTypeChecking: true, + }, + messages: { + unbound: BASE_MESSAGE, + unboundWithoutThisAnnotation: `${BASE_MESSAGE}\nIf your function does not access \`this\`, you can annotate it with \`this: void\`, or consider using an arrow function instead.`, + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreStatic: { + type: 'boolean', + description: 'Whether to skip checking whether `static` methods are correctly bound.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreStatic: false, + }, + ], + create(context, [{ ignoreStatic }]) { + const services = (0, util_1.getParserServices)(context); + const currentSourceFile = services.program.getSourceFile(context.filename); + function checkIfMethodAndReport(node, symbol) { + if (!symbol) { + return false; + } + const { dangerous, firstParamIsThis } = checkIfMethod(symbol, ignoreStatic); + if (dangerous) { + context.report({ + node, + messageId: firstParamIsThis === false + ? 'unboundWithoutThisAnnotation' + : 'unbound', + }); + return true; + } + return false; + } + function isNativelyBound(object, property) { + // We can't rely entirely on the type-level checks made at the end of this + // function, because sometimes type declarations don't come from the + // default library, but come from, for example, "@types/node". And we can't + // tell if a method is unbound just by looking at its signature declared in + // the interface. + // + // See related discussion https://github.com/typescript-eslint/typescript-eslint/pull/8952#discussion_r1576543310 + if (object.type === utils_1.AST_NODE_TYPES.Identifier && + property.type === utils_1.AST_NODE_TYPES.Identifier) { + const objectSymbol = services.getSymbolAtLocation(object); + const notImported = objectSymbol != null && + isNotImported(objectSymbol, currentSourceFile); + if (notImported && + nativelyBoundMembers.has(`${object.name}.${property.name}`)) { + return true; + } + } + // if `${object.name}.${property.name}` doesn't match any of + // the nativelyBoundMembers, then we fallback to type-level checks + return ((0, util_1.isBuiltinSymbolLike)(services.program, services.getTypeAtLocation(object), SUPPORTED_GLOBAL_TYPES) && + (0, util_1.isSymbolFromDefaultLibrary)(services.program, services.getTypeAtLocation(property).getSymbol())); + } + return { + MemberExpression(node) { + if (isSafeUse(node) || isNativelyBound(node.object, node.property)) { + return; + } + checkIfMethodAndReport(node, services.getSymbolAtLocation(node)); + }, + ObjectPattern(node) { + if (isNodeInsideTypeDeclaration(node)) { + return; + } + let initNode = null; + if (node.parent.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { + initNode = node.parent.init; + } + else if (node.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern || + node.parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { + initNode = node.parent.right; + } + for (const property of node.properties) { + if (property.type !== utils_1.AST_NODE_TYPES.Property || + property.key.type !== utils_1.AST_NODE_TYPES.Identifier) { + continue; + } + if (initNode) { + if (!isNativelyBound(initNode, property.key)) { + const reported = checkIfMethodAndReport(property.key, services + .getTypeAtLocation(initNode) + .getProperty(property.key.name)); + if (reported) { + continue; + } + // In assignment patterns, we should also check the type of + // Foo's nativelyBound method because initNode might be used as + // default value: + // function ({ nativelyBound }: Foo = NativeObject) {} + } + else if (node.parent.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { + continue; + } + } + for (const intersectionPart of tsutils + .unionTypeParts(services.getTypeAtLocation(node)) + .flatMap(unionPart => tsutils.intersectionTypeParts(unionPart))) { + const reported = checkIfMethodAndReport(property.key, intersectionPart.getProperty(property.key.name)); + if (reported) { + break; + } + } + } + }, + }; + }, +}); +function isNodeInsideTypeDeclaration(node) { + let parent = node; + while ((parent = parent.parent)) { + if ((parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration && parent.declare) || + parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || + parent.type === utils_1.AST_NODE_TYPES.TSDeclareFunction || + parent.type === utils_1.AST_NODE_TYPES.TSFunctionType || + parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration || + parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration || + (parent.type === utils_1.AST_NODE_TYPES.VariableDeclaration && parent.declare)) { + return true; + } + } + return false; +} +function checkIfMethod(symbol, ignoreStatic) { + const { valueDeclaration } = symbol; + if (!valueDeclaration) { + // working around https://github.com/microsoft/TypeScript/issues/31294 + return { dangerous: false }; + } + switch (valueDeclaration.kind) { + case ts.SyntaxKind.PropertyDeclaration: + return { + dangerous: valueDeclaration.initializer?.kind === + ts.SyntaxKind.FunctionExpression, + }; + case ts.SyntaxKind.PropertyAssignment: { + const assignee = valueDeclaration.initializer; + if (assignee.kind !== ts.SyntaxKind.FunctionExpression) { + return { + dangerous: false, + }; + } + return checkMethod(assignee, ignoreStatic); + } + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.MethodSignature: { + return checkMethod(valueDeclaration, ignoreStatic); + } + } + return { dangerous: false }; +} +function checkMethod(valueDeclaration, ignoreStatic) { + const firstParam = valueDeclaration.parameters.at(0); + const firstParamIsThis = firstParam?.name.kind === ts.SyntaxKind.Identifier && + // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison + firstParam.name.escapedText === 'this'; + const thisArgIsVoid = firstParamIsThis && firstParam.type?.kind === ts.SyntaxKind.VoidKeyword; + return { + dangerous: !thisArgIsVoid && + !(ignoreStatic && + tsutils.includesModifier((0, util_1.getModifiers)(valueDeclaration), ts.SyntaxKind.StaticKeyword)), + firstParamIsThis, + }; +} +function isSafeUse(node) { + const parent = node.parent; + switch (parent?.type) { + case utils_1.AST_NODE_TYPES.IfStatement: + case utils_1.AST_NODE_TYPES.ForStatement: + case utils_1.AST_NODE_TYPES.MemberExpression: + case utils_1.AST_NODE_TYPES.SwitchStatement: + case utils_1.AST_NODE_TYPES.UpdateExpression: + case utils_1.AST_NODE_TYPES.WhileStatement: + return true; + case utils_1.AST_NODE_TYPES.CallExpression: + return parent.callee === node; + case utils_1.AST_NODE_TYPES.ConditionalExpression: + return parent.test === node; + case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: + return parent.tag === node; + case utils_1.AST_NODE_TYPES.UnaryExpression: + // the first case is safe for obvious + // reasons. The second one is also fine + // since we're returning something falsy + return ['!', 'delete', 'typeof', 'void'].includes(parent.operator); + case utils_1.AST_NODE_TYPES.BinaryExpression: + return ['!=', '!==', '==', '===', 'instanceof'].includes(parent.operator); + case utils_1.AST_NODE_TYPES.AssignmentExpression: + return (parent.operator === '=' && + (node === parent.left || + (node.type === utils_1.AST_NODE_TYPES.MemberExpression && + node.object.type === utils_1.AST_NODE_TYPES.Super && + parent.left.type === utils_1.AST_NODE_TYPES.MemberExpression && + parent.left.object.type === utils_1.AST_NODE_TYPES.ThisExpression))); + case utils_1.AST_NODE_TYPES.ChainExpression: + case utils_1.AST_NODE_TYPES.TSNonNullExpression: + case utils_1.AST_NODE_TYPES.TSAsExpression: + case utils_1.AST_NODE_TYPES.TSTypeAssertion: + return isSafeUse(parent); + case utils_1.AST_NODE_TYPES.LogicalExpression: + if (parent.operator === '&&' && parent.left === node) { + // this is safe, as && will return the left if and only if it's falsy + return true; + } + // in all other cases, it's likely the logical expression will return the method ref + // so make sure the parent is a safe usage + return isSafeUse(parent); + } + return false; +} +//# sourceMappingURL=unbound-method.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map new file mode 100644 index 00000000..ff3f6080 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map @@ -0,0 +1 @@ +{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AAcjB;;;;;;;;;;GAUG;AACH,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,QAAQ;IACR,QAAQ,EAAE,wEAAwE;IAClF,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,SAAS;IACT,SAAS;IACT,SAAS;IACT,MAAM;IACN,MAAM;IACN,MAAM;CACE,CAAC;AACX,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;IACpC,IAAI,CAAC,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,CAAC;QAC3B,+EAA+E;QAC/E,qEAAqE;QACrE,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC;SACtC,MAAM,CACL,IAAI,CAAC,EAAE,C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AAmB,CAAC;QACxC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBACrD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js new file mode 100644 index 00000000..d7d76af1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js @@ -0,0 +1,399 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const util_1 = require("../util"); +exports.default = (0, util_1.createRule)({ + name: 'unified-signatures', + meta: { + type: 'suggestion', + docs: { + description: 'Disallow two overloads that could be unified into one with a union or an optional/rest parameter', + // too opinionated to be recommended + recommended: 'strict', + }, + messages: { + omittingRestParameter: '{{failureStringStart}} with a rest parameter.', + omittingSingleParameter: '{{failureStringStart}} with an optional parameter.', + singleParameterDifference: '{{failureStringStart}} taking `{{type1}} | {{type2}}`.', + }, + schema: [ + { + type: 'object', + additionalProperties: false, + properties: { + ignoreDifferentlyNamedParameters: { + type: 'boolean', + description: 'Whether two parameters with different names at the same index should be considered different even if their types are the same.', + }, + }, + }, + ], + }, + defaultOptions: [ + { + ignoreDifferentlyNamedParameters: false, + }, + ], + create(context, [{ ignoreDifferentlyNamedParameters }]) { + //---------------------------------------------------------------------- + // Helpers + //---------------------------------------------------------------------- + function failureStringStart(otherLine) { + // For only 2 overloads we don't need to specify which is the other one. + const overloads = otherLine === undefined + ? 'These overloads' + : `This overload and the one on line ${otherLine}`; + return `${overloads} can be combined into one signature`; + } + function addFailures(failures) { + for (const failure of failures) { + const { only2, unify } = failure; + switch (unify.kind) { + case 'single-parameter-difference': { + const { p0, p1 } = unify; + const lineOfOtherOverload = only2 ? undefined : p0.loc.start.line; + const typeAnnotation0 = isTSParameterProperty(p0) + ? p0.parameter.typeAnnotation + : p0.typeAnnotation; + const typeAnnotation1 = isTSParameterProperty(p1) + ? p1.parameter.typeAnnotation + : p1.typeAnnotation; + context.report({ + loc: p1.loc, + node: p1, + messageId: 'singleParameterDifference', + data: { + failureStringStart: failureStringStart(lineOfOtherOverload), + type1: context.sourceCode.getText(typeAnnotation0?.typeAnnotation), + type2: context.sourceCode.getText(typeAnnotation1?.typeAnnotation), + }, + }); + break; + } + case 'extra-parameter': { + const { extraParameter, otherSignature } = unify; + const lineOfOtherOverload = only2 + ? undefined + : otherSignature.loc.start.line; + context.report({ + loc: extraParameter.loc, + node: extraParameter, + messageId: extraParameter.type === utils_1.AST_NODE_TYPES.RestElement + ? 'omittingRestParameter' + : 'omittingSingleParameter', + data: { + failureStringStart: failureStringStart(lineOfOtherOverload), + }, + }); + } + } + } + } + function checkOverloads(signatures, typeParameters) { + const result = []; + const isTypeParameter = getIsTypeParameter(typeParameters); + for (const overloads of signatures) { + forEachPair(overloads, (a, b) => { + const signature0 = a.value ?? a; + const signature1 = b.value ?? b; + const unify = compareSignatures(signature0, signature1, isTypeParameter); + if (unify !== undefined) { + result.push({ only2: overloads.length === 2, unify }); + } + }); + } + return result; + } + function compareSignatures(a, b, isTypeParameter) { + if (!signaturesCanBeUnified(a, b, isTypeParameter)) { + return undefined; + } + return a.params.length === b.params.length + ? signaturesDifferBySingleParameter(a.params, b.params) + : signaturesDifferByOptionalOrRestParameter(a, b); + } + function signaturesCanBeUnified(a, b, isTypeParameter) { + // Must return the same type. + const aTypeParams = a.typeParameters !== undefined ? a.typeParameters.params : undefined; + const bTypeParams = b.typeParameters !== undefined ? b.typeParameters.params : undefined; + if (ignoreDifferentlyNamedParameters) { + const commonParamsLength = Math.min(a.params.length, b.params.length); + for (let i = 0; i < commonParamsLength; i += 1) { + if (a.params[i].type === b.params[i].type && + getStaticParameterName(a.params[i]) !== + getStaticParameterName(b.params[i])) { + return false; + } + } + } + return (typesAreEqual(a.returnType, b.returnType) && + // Must take the same type parameters. + // If one uses a type parameter (from outside) and the other doesn't, they shouldn't be joined. + (0, util_1.arraysAreEqual)(aTypeParams, bTypeParams, typeParametersAreEqual) && + signatureUsesTypeParameter(a, isTypeParameter) === + signatureUsesTypeParameter(b, isTypeParameter)); + } + /** Detect `a(x: number, y: number, z: number)` and `a(x: number, y: string, z: number)`. */ + function signaturesDifferBySingleParameter(types1, types2) { + const index = getIndexOfFirstDifference(types1, types2, parametersAreEqual); + if (index === undefined) { + return undefined; + } + // If remaining arrays are equal, the signatures differ by just one parameter type + if (!(0, util_1.arraysAreEqual)(types1.slice(index + 1), types2.slice(index + 1), parametersAreEqual)) { + return undefined; + } + const a = types1[index]; + const b = types2[index]; + // Can unify `a?: string` and `b?: number`. Can't unify `...args: string[]` and `...args: number[]`. + // See https://github.com/Microsoft/TypeScript/issues/5077 + return parametersHaveEqualSigils(a, b) && + a.type !== utils_1.AST_NODE_TYPES.RestElement + ? { kind: 'single-parameter-difference', p0: a, p1: b } + : undefined; + } + /** + * Detect `a(): void` and `a(x: number): void`. + * Returns the parameter declaration (`x: number` in this example) that should be optional/rest, and overload it's a part of. + */ + function signaturesDifferByOptionalOrRestParameter(a, b) { + const sig1 = a.params; + const sig2 = b.params; + const minLength = Math.min(sig1.length, sig2.length); + const longer = sig1.length < sig2.length ? sig2 : sig1; + const shorter = sig1.length < sig2.length ? sig1 : sig2; + const shorterSig = sig1.length < sig2.length ? a : b; + // If one is has 2+ parameters more than the other, they must all be optional/rest. + // Differ by optional parameters: f() and f(x), f() and f(x, ?y, ...z) + // Not allowed: f() and f(x, y) + for (let i = minLength + 1; i < longer.length; i++) { + if (!parameterMayBeMissing(longer[i])) { + return undefined; + } + } + for (let i = 0; i < minLength; i++) { + const sig1i = sig1[i]; + const sig2i = sig2[i]; + const typeAnnotation1 = isTSParameterProperty(sig1i) + ? sig1i.parameter.typeAnnotation + : sig1i.typeAnnotation; + const typeAnnotation2 = isTSParameterProperty(sig2i) + ? sig2i.parameter.typeAnnotation + : sig2i.typeAnnotation; + if (!typesAreEqual(typeAnnotation1, typeAnnotation2)) { + return undefined; + } + } + if (minLength > 0 && + shorter[minLength - 1].type === utils_1.AST_NODE_TYPES.RestElement) { + return undefined; + } + return { + extraParameter: longer[longer.length - 1], + kind: 'extra-parameter', + otherSignature: shorterSig, + }; + } + /** Given type parameters, returns a function to test whether a type is one of those parameters. */ + function getIsTypeParameter(typeParameters) { + if (typeParameters === undefined) { + return (() => false); + } + const set = new Set(); + for (const t of typeParameters.params) { + set.add(t.name.name); + } + return (typeName => set.has(typeName)); + } + /** True if any of the outer type parameters are used in a signature. */ + function signatureUsesTypeParameter(sig, isTypeParameter) { + return sig.params.some((p) => typeContainsTypeParameter(isTSParameterProperty(p) + ? p.parameter.typeAnnotation + : p.typeAnnotation)); + function typeContainsTypeParameter(type) { + if (!type) { + return false; + } + if (type.type === utils_1.AST_NODE_TYPES.TSTypeReference) { + const typeName = type.typeName; + if (isIdentifier(typeName) && isTypeParameter(typeName.name)) { + return true; + } + } + return typeContainsTypeParameter(type.typeAnnotation ?? + type.elementType); + } + } + function isTSParameterProperty(node) { + return node.type === utils_1.AST_NODE_TYPES.TSParameterProperty; + } + function parametersAreEqual(a, b) { + const typeAnnotationA = isTSParameterProperty(a) + ? a.parameter.typeAnnotation + : a.typeAnnotation; + const typeAnnotationB = isTSParameterProperty(b) + ? b.parameter.typeAnnotation + : b.typeAnnotation; + return (parametersHaveEqualSigils(a, b) && + typesAreEqual(typeAnnotationA, typeAnnotationB)); + } + /** True for optional/rest parameters. */ + function parameterMayBeMissing(p) { + const optional = isTSParameterProperty(p) + ? p.parameter.optional + : p.optional; + return p.type === utils_1.AST_NODE_TYPES.RestElement || optional; + } + /** False if one is optional and the other isn't, or one is a rest parameter and the other isn't. */ + function parametersHaveEqualSigils(a, b) { + const optionalA = isTSParameterProperty(a) + ? a.parameter.optional + : a.optional; + const optionalB = isTSParameterProperty(b) + ? b.parameter.optional + : b.optional; + return ((a.type === utils_1.AST_NODE_TYPES.RestElement) === + (b.type === utils_1.AST_NODE_TYPES.RestElement) && optionalA === optionalB); + } + function typeParametersAreEqual(a, b) { + return (a.name.name === b.name.name && + constraintsAreEqual(a.constraint, b.constraint)); + } + function typesAreEqual(a, b) { + return (a === b || + (a !== undefined && + b !== undefined && + context.sourceCode.getText(a.typeAnnotation) === + context.sourceCode.getText(b.typeAnnotation))); + } + function constraintsAreEqual(a, b) { + return (a === b || (a !== undefined && b !== undefined && a.type === b.type)); + } + /* Returns the first index where `a` and `b` differ. */ + function getIndexOfFirstDifference(a, b, equal) { + for (let i = 0; i < a.length && i < b.length; i++) { + if (!equal(a[i], b[i])) { + return i; + } + } + return undefined; + } + /** Calls `action` for every pair of values in `values`. */ + function forEachPair(values, action) { + for (let i = 0; i < values.length; i++) { + for (let j = i + 1; j < values.length; j++) { + action(values[i], values[j]); + } + } + } + const scopes = []; + let currentScope = { + overloads: new Map(), + }; + function createScope(parent, typeParameters) { + if (currentScope) { + scopes.push(currentScope); + } + currentScope = { + overloads: new Map(), + parent, + typeParameters, + }; + } + function checkScope() { + const scope = (0, util_1.nullThrows)(currentScope, 'checkScope() called without a current scope'); + const failures = checkOverloads([...scope.overloads.values()], scope.typeParameters); + addFailures(failures); + currentScope = scopes.pop(); + } + function addOverload(signature, key, containingNode) { + key ??= getOverloadKey(signature); + if (currentScope && + (containingNode ?? signature).parent === currentScope.parent) { + const overloads = currentScope.overloads.get(key); + if (overloads !== undefined) { + overloads.push(signature); + } + else { + currentScope.overloads.set(key, [signature]); + } + } + } + //---------------------------------------------------------------------- + // Public + //---------------------------------------------------------------------- + return { + ClassDeclaration(node) { + createScope(node.body, node.typeParameters); + }, + Program: createScope, + TSInterfaceDeclaration(node) { + createScope(node.body, node.typeParameters); + }, + TSModuleBlock: createScope, + TSTypeLiteral: createScope, + // collect overloads + MethodDefinition(node) { + if (!node.value.body) { + addOverload(node); + } + }, + TSAbstractMethodDefinition(node) { + if (!node.value.body) { + addOverload(node); + } + }, + TSCallSignatureDeclaration: addOverload, + TSConstructSignatureDeclaration: addOverload, + TSDeclareFunction(node) { + const exportingNode = getExportingNode(node); + addOverload(node, node.id?.name ?? exportingNode?.type, exportingNode); + }, + TSMethodSignature: addOverload, + // validate scopes + 'ClassDeclaration:exit': checkScope, + 'Program:exit': checkScope, + 'TSInterfaceDeclaration:exit': checkScope, + 'TSModuleBlock:exit': checkScope, + 'TSTypeLiteral:exit': checkScope, + }; + }, +}); +function getExportingNode(node) { + return node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration || + node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration + ? node.parent + : undefined; +} +function getOverloadKey(node) { + const info = getOverloadInfo(node); + return ((node.computed ? '0' : '1') + + (node.static ? '0' : '1') + + info); +} +function getOverloadInfo(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: + return 'constructor'; + case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: + return '()'; + default: { + const { key } = node; + return isIdentifier(key) ? key.name : key.raw; + } + } +} +function getStaticParameterName(param) { + switch (param.type) { + case utils_1.AST_NODE_TYPES.Identifier: + return param.name; + case utils_1.AST_NODE_TYPES.RestElement: + return getStaticParameterName(param.argument); + default: + return undefined; + } +} +function isIdentifier(node) { + return node.type === utils_1.AST_NODE_TYPES.Identifier; +} +//# sourceMappingURL=unified-signatures.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map new file mode 100644 index 00000000..ea3d276f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map @@ -0,0 +1 @@ +{"version":3,"file":"unified-signatures.js","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAI1D,kCAAiE;AA4DjE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kGAAkG;YACpG,oCAAoC;YACpC,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,qBAAqB,EAAE,+CAA+C;YACtE,uBAAuB,EACrB,oDAAoD;YACtD,yBAAyB,EACvB,wDAAwD;SAC3D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,gCAAgC,EAAE;wBAChC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,gIAAgI;qBACnI;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gCAAgC,EAAE,KAAK;SACxC;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,gCAAgC,EAAE,CAAC;QACpD,wEAAwE;QACxE,UAAU;QACV,wEAAwE;QAExE,SAAS,kBAAkB,CAAC,SAAkB;YAC5C,wEAAwE;YACxE,MAAM,SAAS,GACb,SAAS,KAAK,SAAS;gBACrB,CAAC,CAAC,iBAAiB;gBACnB,CAAC,CAAC,qCAAqC,SAAS,EAAE,CAAC;YACvD,OAAO,GAAG,SAAS,qCAAqC,CAAC;QAC3D,CAAC;QAED,SAAS,WAAW,CAAC,QAAmB;YACtC,KAAK,MAAM,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,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QAC/C,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,IAAkB;IACzC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,+BAA+B;YACjD,OAAO,aAAa,CAAC;QACvB,KAAK,sBAAc,CAAC,0BAA0B;YAC5C,OAAO,IAAI,CAAC;QACd,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,EAAE,GAAG,EAAE,GAAG,IAAwB,CAAC;YAEzC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAE,GAAwB,CAAC,GAAG,CAAC;QACtE,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAoB;IAClD,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,sBAAc,CAAC,UAAU;YAC5B,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,sBAAc,CAAC,WAAW;YAC7B,OAAO,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChD;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AACD,SAAS,YAAY,CAAC,IAAmB;IACvC,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js new file mode 100644 index 00000000..161d4ab3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js @@ -0,0 +1,234 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const util_1 = require("../util"); +const useUnknownMessageBase = 'Prefer the safe `: unknown` for a `{{method}}`{{append}} callback variable.'; +exports.default = (0, util_1.createRule)({ + name: 'use-unknown-in-catch-callback-variable', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce typing arguments in Promise rejection callbacks as `unknown`', + recommended: 'strict', + requiresTypeChecking: true, + }, + fixable: 'code', + hasSuggestions: true, + messages: { + addUnknownRestTypeAnnotationSuggestion: 'Add an explicit `: [unknown]` type annotation to the rejection callback rest variable.', + addUnknownTypeAnnotationSuggestion: 'Add an explicit `: unknown` type annotation to the rejection callback variable.', + useUnknown: useUnknownMessageBase, + useUnknownArrayDestructuringPattern: `${useUnknownMessageBase} The thrown error may not be iterable.`, + useUnknownObjectDestructuringPattern: `${useUnknownMessageBase} The thrown error may be nullable, or may not have the expected shape.`, + wrongRestTypeAnnotationSuggestion: 'Change existing type annotation to `: [unknown]`.', + wrongTypeAnnotationSuggestion: 'Change existing type annotation to `: unknown`.', + }, + schema: [], + }, + defaultOptions: [], + create(context) { + const { esTreeNodeToTSNodeMap, program } = (0, util_1.getParserServices)(context); + const checker = program.getTypeChecker(); + function isFlaggableHandlerType(type) { + for (const unionPart of tsutils.unionTypeParts(type)) { + const callSignatures = tsutils.getCallSignaturesOfType(unionPart); + if (callSignatures.length === 0) { + // Ignore any non-function components to the type. Those are not this rule's problem. + continue; + } + for (const callSignature of callSignatures) { + const firstParam = callSignature.parameters.at(0); + if (!firstParam) { + // it's not an issue if there's no catch variable at all. + continue; + } + let firstParamType = checker.getTypeOfSymbol(firstParam); + const decl = firstParam.valueDeclaration; + if (decl != null && (0, util_1.isRestParameterDeclaration)(decl)) { + if (checker.isArrayType(firstParamType)) { + firstParamType = checker.getTypeArguments(firstParamType)[0]; + } + else if (checker.isTupleType(firstParamType)) { + firstParamType = checker.getTypeArguments(firstParamType)[0]; + } + else { + // a rest arg that's not an array or tuple should definitely be flagged. + return true; + } + } + if (!tsutils.isIntrinsicUnknownType(firstParamType)) { + return true; + } + } + } + return false; + } + function shouldFlagArgument(node) { + const argument = esTreeNodeToTSNodeMap.get(node); + const typeOfArgument = checker.getTypeAtLocation(argument); + return isFlaggableHandlerType(typeOfArgument); + } + /** + * Analyzes the syntax of the catch argument and makes a best effort to pinpoint + * why it's reporting, and to come up with a suggested fix if possible. + * + * This function is explicitly operating under the assumption that the + * rule _is reporting_, so it is not guaranteed to be sound to call otherwise. + */ + function refineReportIfPossible(argument) { + // Only know how to be helpful if a function literal has been provided. + if (!(argument.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + argument.type === utils_1.AST_NODE_TYPES.FunctionExpression)) { + return undefined; + } + const catchVariableOuterWithIncorrectTypes = (0, util_1.nullThrows)(argument.params.at(0), 'There should have been at least one parameter for the rule to have flagged.'); + // Function expressions can't have parameter properties; those only exist in constructors. + const catchVariableOuter = catchVariableOuterWithIncorrectTypes; + const catchVariableInner = catchVariableOuter.type === utils_1.AST_NODE_TYPES.AssignmentPattern + ? catchVariableOuter.left + : catchVariableOuter; + switch (catchVariableInner.type) { + case utils_1.AST_NODE_TYPES.Identifier: { + const catchVariableTypeAnnotation = catchVariableInner.typeAnnotation; + if (catchVariableTypeAnnotation == null) { + return { + node: catchVariableOuter, + suggest: [ + { + messageId: 'addUnknownTypeAnnotationSuggestion', + fix: (fixer) => { + if (argument.type === + utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + (0, util_1.isParenlessArrowFunction)(argument, context.sourceCode)) { + return [ + fixer.insertTextBefore(catchVariableInner, '('), + fixer.insertTextAfter(catchVariableInner, ': unknown)'), + ]; + } + return [ + fixer.insertTextAfter(catchVariableInner, ': unknown'), + ]; + }, + }, + ], + }; + } + return { + node: catchVariableOuter, + suggest: [ + { + messageId: 'wrongTypeAnnotationSuggestion', + fix: (fixer) => fixer.replaceText(catchVariableTypeAnnotation, ': unknown'), + }, + ], + }; + } + case utils_1.AST_NODE_TYPES.ArrayPattern: { + return { + node: catchVariableOuter, + messageId: 'useUnknownArrayDestructuringPattern', + }; + } + case utils_1.AST_NODE_TYPES.ObjectPattern: { + return { + node: catchVariableOuter, + messageId: 'useUnknownObjectDestructuringPattern', + }; + } + case utils_1.AST_NODE_TYPES.RestElement: { + const catchVariableTypeAnnotation = catchVariableInner.typeAnnotation; + if (catchVariableTypeAnnotation == null) { + return { + node: catchVariableOuter, + suggest: [ + { + messageId: 'addUnknownRestTypeAnnotationSuggestion', + fix: (fixer) => fixer.insertTextAfter(catchVariableInner, ': [unknown]'), + }, + ], + }; + } + return { + node: catchVariableOuter, + suggest: [ + { + messageId: 'wrongRestTypeAnnotationSuggestion', + fix: (fixer) => fixer.replaceText(catchVariableTypeAnnotation, ': [unknown]'), + }, + ], + }; + } + } + } + return { + CallExpression({ arguments: args, callee }) { + if (callee.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return; + } + const staticMemberAccessKey = (0, util_1.getStaticMemberAccessValue)(callee, context); + if (!staticMemberAccessKey) { + return; + } + const promiseMethodInfo = [ + { append: '', argIndexToCheck: 0, method: 'catch' }, + { append: ' rejection', argIndexToCheck: 1, method: 'then' }, + ].find(({ method }) => staticMemberAccessKey === method); + if (!promiseMethodInfo) { + return; + } + // Need to be enough args to check + const { argIndexToCheck, ...data } = promiseMethodInfo; + if (args.length < argIndexToCheck + 1) { + return; + } + // Argument to check, and all arguments before it, must be "ordinary" arguments (i.e. no spread arguments) + // promise.catch(f), promise.catch(() => {}), promise.catch(, <>) + const argsToCheck = args.slice(0, argIndexToCheck + 1); + if (argsToCheck.some(({ type }) => type === utils_1.AST_NODE_TYPES.SpreadElement)) { + return; + } + if (!tsutils.isThenableType(checker, esTreeNodeToTSNodeMap.get(callee), checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(callee.object)))) { + return; + } + // the `some` check above has already excluded `SpreadElement`, so we are safe to assert the same + const node = argsToCheck[argIndexToCheck]; + if (shouldFlagArgument(node)) { + // We are now guaranteed to report, but we have a bit of work to do + // to determine exactly where, and whether we can fix it. + const overrides = refineReportIfPossible(node); + context.report({ + node, + messageId: 'useUnknown', + data, + ...overrides, + }); + } + }, + }; + }, +}); +//# sourceMappingURL=use-unknown-in-catch-callback-variable.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map new file mode 100644 index 00000000..0de16f0e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map @@ -0,0 +1 @@ +{"version":3,"file":"use-unknown-in-catch-callback-variable.js","sourceRoot":"","sources":["../../src/rules/use-unknown-in-catch-callback-variable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAExC,kCAOiB;AAWjB,MAAM,qBAAqB,GACzB,6EAA6E,CAAC;AAEhF,kBAAe,IAAA,iBAAU,EAAiB;IAC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AG,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC/C,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;wBACvB,IAAI;wBACJ,GAAG,SAAS;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js new file mode 100644 index 00000000..68a2d905 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js @@ -0,0 +1,109 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.findTruthinessAssertedArgument = findTruthinessAssertedArgument; +exports.findTypeGuardAssertedArgument = findTypeGuardAssertedArgument; +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +/** + * Inspect a call expression to see if it's a call to an assertion function. + * If it is, return the node of the argument that is asserted. + */ +function findTruthinessAssertedArgument(services, node) { + // If the call looks like `assert(expr1, expr2, ...c, d, e, f)`, then we can + // only care if `expr1` or `expr2` is asserted, since anything that happens + // within or after a spread argument is out of scope to reason about. + const checkableArguments = []; + for (const argument of node.arguments) { + if (argument.type === utils_1.AST_NODE_TYPES.SpreadElement) { + break; + } + checkableArguments.push(argument); + } + // nothing to do + if (checkableArguments.length === 0) { + return undefined; + } + const checker = services.program.getTypeChecker(); + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const signature = checker.getResolvedSignature(tsNode); + if (signature == null) { + return undefined; + } + const firstTypePredicateResult = checker.getTypePredicateOfSignature(signature); + if (firstTypePredicateResult == null) { + return undefined; + } + const { kind, parameterIndex, type } = firstTypePredicateResult; + if (!(kind === ts.TypePredicateKind.AssertsIdentifier && type == null)) { + return undefined; + } + return checkableArguments.at(parameterIndex); +} +/** + * Inspect a call expression to see if it's a call to an assertion function. + * If it is, return the node of the argument that is asserted and other useful info. + */ +function findTypeGuardAssertedArgument(services, node) { + // If the call looks like `assert(expr1, expr2, ...c, d, e, f)`, then we can + // only care if `expr1` or `expr2` is asserted, since anything that happens + // within or after a spread argument is out of scope to reason about. + const checkableArguments = []; + for (const argument of node.arguments) { + if (argument.type === utils_1.AST_NODE_TYPES.SpreadElement) { + break; + } + checkableArguments.push(argument); + } + // nothing to do + if (checkableArguments.length === 0) { + return undefined; + } + const checker = services.program.getTypeChecker(); + const tsNode = services.esTreeNodeToTSNodeMap.get(node); + const callSignature = checker.getResolvedSignature(tsNode); + if (callSignature == null) { + return undefined; + } + const typePredicateInfo = checker.getTypePredicateOfSignature(callSignature); + if (typePredicateInfo == null) { + return undefined; + } + const { kind, parameterIndex, type } = typePredicateInfo; + if (!((kind === ts.TypePredicateKind.AssertsIdentifier || + kind === ts.TypePredicateKind.Identifier) && + type != null)) { + return undefined; + } + if (parameterIndex >= checkableArguments.length) { + return undefined; + } + return { + argument: checkableArguments[parameterIndex], + asserts: kind === ts.TypePredicateKind.AssertsIdentifier, + type, + }; +} +//# sourceMappingURL=assertionFunctionUtils.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map new file mode 100644 index 00000000..09abc57a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"assertionFunctionUtils.js","sourceRoot":"","sources":["../../src/util/assertionFunctionUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wEAyCC;AAMD,sEA4DC;AAlHD,oDAA0D;AAC1D,+CAAiC;AAEjC;;;GAGG;AACH,SAAgB,8BAA8B,CAC5C,QAA2C,EAC3C,IAA6B;IAE7B,4EAA4E;IAC5E,2EAA2E;IAC3E,qEAAqE;IACrE,MAAM,kBAAkB,GAA0B,EAAE,CAAC;IACrD,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa,EAAE,CAAC;YACnD,MAAM;QACR,CAAC;QACD,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,gBAAgB;IAChB,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAEvD,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC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CAAC;IACnB,CAAC;IAED,MAAM,iBAAiB,GAAG,OAAO,CAAC,2BAA2B,CAAC,aAAa,CAAC,CAAC;IAE7E,IAAI,iBAAiB,IAAI,IAAI,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,iBAAiB,CAAC;IACzD,IACE,CAAC,CACC,CAAC,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,iBAAiB;QAC9C,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC;QAC3C,IAAI,IAAI,IAAI,CACb,EACD,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,cAAc,IAAI,kBAAkB,CAAC,MAAM,EAAE,CAAC;QAChD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,kBAAkB,CAAC,cAAc,CAAC;QAC5C,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,iBAAiB,CAAC,iBAAiB;QACxD,IAAI;KACL,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js new file mode 100644 index 00000000..1decfe60 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js @@ -0,0 +1,88 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getNameLocationInGlobalDirectiveComment = getNameLocationInGlobalDirectiveComment; +exports.forEachReturnStatement = forEachReturnStatement; +const ts = __importStar(require("typescript")); +const escapeRegExp_1 = require("./escapeRegExp"); +// deeply re-export, for convenience +__exportStar(require("@typescript-eslint/utils/ast-utils"), exports); +// The following is copied from `eslint`'s source code since it doesn't exist in eslint@5. +// https://github.com/eslint/eslint/blob/145aec1ab9052fbca96a44d04927c595951b1536/lib/rules/utils/ast-utils.js#L1751-L1779 +// Could be export { getNameLocationInGlobalDirectiveComment } from 'eslint/lib/rules/utils/ast-utils' +/** + * Get the `loc` object of a given name in a `/*globals` directive comment. + * @param sourceCode The source code to convert index to loc. + * @param comment The `/*globals` directive comment which include the name. + * @param name The name to find. + * @returns The `loc` object. + */ +function getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) { + const namePattern = new RegExp(`[\\s,]${(0, escapeRegExp_1.escapeRegExp)(name)}(?:$|[\\s,:])`, 'gu'); + // To ignore the first text "global". + namePattern.lastIndex = comment.value.indexOf('global') + 6; + // Search a given variable name. + const match = namePattern.exec(comment.value); + // Convert the index to loc. + const start = sourceCode.getLocFromIndex(comment.range[0] + '/*'.length + (match ? match.index + 1 : 0)); + const end = { + column: start.column + (match ? name.length : 1), + line: start.line, + }; + return { end, start }; +} +// Copied from typescript https://github.com/microsoft/TypeScript/blob/42b0e3c4630c129ca39ce0df9fff5f0d1b4dd348/src/compiler/utilities.ts#L1335 +// Warning: This has the same semantics as the forEach family of functions, +// in that traversal terminates in the event that 'visitor' supplies a truthy value. +function forEachReturnStatement(body, visitor) { + return traverse(body); + function traverse(node) { + switch (node.kind) { + case ts.SyntaxKind.ReturnStatement: + return visitor(node); + case ts.SyntaxKind.CaseBlock: + case ts.SyntaxKind.Block: + case ts.SyntaxKind.IfStatement: + case ts.SyntaxKind.DoStatement: + case ts.SyntaxKind.WhileStatement: + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.ForInStatement: + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.WithStatement: + case ts.SyntaxKind.SwitchStatement: + case ts.SyntaxKind.CaseClause: + case ts.SyntaxKind.DefaultClause: + case ts.SyntaxKind.LabeledStatement: + case ts.SyntaxKind.TryStatement: + case ts.SyntaxKind.CatchClause: + return ts.forEachChild(node, traverse); + } + return undefined; + } +} +//# sourceMappingURL=astUtils.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map new file mode 100644 index 00000000..8a74bea7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../src/util/astUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,0FA0BC;AAKD,wDA8BC;AA9ED,+CAAiC;AAEjC,iDAA8C;AAE9C,oCAAoC;AACpC,qEAAmD;AAEnD,0FAA0F;AAC1F,0HAA0H;AAC1H,sGAAsG;AACtG;;;;;;GAMG;AACH,SAAgB,uCAAuC,CACrD,UAA+B,EAC/B,OAAyB,EACzB,IAAY;IAEZ,MAAM,WAAW,GAAG,IAAI,MAAM,CAC5B,SAAS,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C,WAAW,CAAC;YAC/B,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;YAClC,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;YACjC,KAAK,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC;YACnC,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;YAC9B,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;YACjC,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC;YACpC,KAAK,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js new file mode 100644 index 00000000..4c0d2792 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js @@ -0,0 +1,605 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.collectVariables = collectVariables; +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +const isTypeImport_1 = require("./isTypeImport"); +const referenceContainsTypeQuery_1 = require("./referenceContainsTypeQuery"); +/** + * This class leverages an AST visitor to mark variables as used via the + * `eslintUsed` property. + */ +class UnusedVarsVisitor extends scope_manager_1.Visitor { + /** + * We keep a weak cache so that multiple rules can share the calculation + */ + static RESULTS_CACHE = new WeakMap(); + ClassDeclaration = this.visitClass; + ClassExpression = this.visitClass; + ForInStatement = this.visitForInForOf; + ForOfStatement = this.visitForInForOf; + //#region HELPERS + FunctionDeclaration = this.visitFunction; + FunctionExpression = this.visitFunction; + MethodDefinition = this.visitSetter; + Property = this.visitSetter; + TSCallSignatureDeclaration = this.visitFunctionTypeSignature; + TSConstructorType = this.visitFunctionTypeSignature; + TSConstructSignatureDeclaration = this.visitFunctionTypeSignature; + TSDeclareFunction = this.visitFunctionTypeSignature; + TSEmptyBodyFunctionExpression = this.visitFunctionTypeSignature; + //#endregion HELPERS + //#region VISITORS + // NOTE - This is a simple visitor - meaning it does not support selectors + TSFunctionType = this.visitFunctionTypeSignature; + TSMethodSignature = this.visitFunctionTypeSignature; + #scopeManager; + constructor(scopeManager) { + super({ + visitChildrenEvenIfSelectorExists: true, + }); + this.#scopeManager = scopeManager; + } + static collectUnusedVariables(program, scopeManager) { + const cached = this.RESULTS_CACHE.get(program); + if (cached) { + return cached; + } + const visitor = new this(scopeManager); + visitor.visit(program); + const unusedVars = visitor.collectUnusedVariables(visitor.getScope(program)); + this.RESULTS_CACHE.set(program, unusedVars); + return unusedVars; + } + Identifier(node) { + const scope = this.getScope(node); + if (scope.type === utils_1.TSESLint.Scope.ScopeType.function && + node.name === 'this' && + // this parameters should always be considered used as they're pseudo-parameters + 'params' in scope.block && + scope.block.params.includes(node)) { + this.markVariableAsUsed(node); + } + } + TSEnumDeclaration(node) { + // enum members create variables because they can be referenced within the enum, + // but they obviously aren't unused variables for the purposes of this rule. + const scope = this.getScope(node); + for (const variable of scope.variables) { + this.markVariableAsUsed(variable); + } + } + TSMappedType(node) { + // mapped types create a variable for their type name, but it's not necessary to reference it, + // so we shouldn't consider it as unused for the purpose of this rule. + this.markVariableAsUsed(node.key); + } + TSModuleDeclaration(node) { + // -- global augmentation can be in any file, and they do not need exports + if (node.kind === 'global') { + this.markVariableAsUsed('global', node.parent); + } + } + TSParameterProperty(node) { + let identifier = null; + switch (node.parameter.type) { + case utils_1.AST_NODE_TYPES.AssignmentPattern: + if (node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier) { + identifier = node.parameter.left; + } + break; + case utils_1.AST_NODE_TYPES.Identifier: + identifier = node.parameter; + break; + } + if (identifier) { + this.markVariableAsUsed(identifier); + } + } + collectUnusedVariables(scope, variables = { + unusedVariables: new Set(), + usedVariables: new Set(), + }) { + if ( + // skip function expression names + // this scope is created just to house the variable that allows a function + // expression to self-reference if it has a name defined + !scope.functionExpressionScope) { + for (const variable of scope.variables) { + // cases that we don't want to treat as used or unused + if ( + // implicit lib variables (from @typescript-eslint/scope-manager) + // these aren't variables that should be checked ever + variable instanceof scope_manager_1.ImplicitLibVariable) { + continue; + } + if ( + // variables marked with markVariableAsUsed() + variable.eslintUsed || + // basic exported variables + isExported(variable) || + // variables implicitly exported via a merged declaration + isMergableExported(variable) || + // used variables + isUsedVariable(variable)) { + variables.usedVariables.add(variable); + } + else { + variables.unusedVariables.add(variable); + } + } + } + for (const childScope of scope.childScopes) { + this.collectUnusedVariables(childScope, variables); + } + return variables; + } + getScope(currentNode) { + // On Program node, get the outermost scope to avoid return Node.js special function scope or ES modules scope. + const inner = currentNode.type !== utils_1.AST_NODE_TYPES.Program; + let node = currentNode; + while (node) { + const scope = this.#scopeManager.acquire(node, inner); + if (scope) { + if (scope.type === scope_manager_1.ScopeType.functionExpressionName) { + return scope.childScopes[0]; + } + return scope; + } + node = node.parent; + } + return this.#scopeManager.scopes[0]; + } + markVariableAsUsed(variableOrIdentifierOrName, parent) { + if (typeof variableOrIdentifierOrName !== 'string' && + !('type' in variableOrIdentifierOrName)) { + variableOrIdentifierOrName.eslintUsed = true; + return; + } + let name; + let node; + if (typeof variableOrIdentifierOrName === 'string') { + name = variableOrIdentifierOrName; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + node = parent; + } + else { + name = variableOrIdentifierOrName.name; + node = variableOrIdentifierOrName; + } + let currentScope = this.getScope(node); + while (currentScope) { + const variable = currentScope.variables.find(scopeVar => scopeVar.name === name); + if (variable) { + variable.eslintUsed = true; + return; + } + currentScope = currentScope.upper; + } + } + visitClass(node) { + // skip a variable of class itself name in the class scope + const scope = this.getScope(node); + for (const variable of scope.variables) { + if (variable.identifiers[0] === scope.block.id) { + this.markVariableAsUsed(variable); + return; + } + } + } + visitForInForOf(node) { + /** + * (Brad Zacher): I hate that this has to exist. + * But it is required for compat with the base ESLint rule. + * + * In 2015, ESLint decided to add an exception for these two specific cases + * ``` + * for (var key in object) return; + * + * var key; + * for (key in object) return; + * ``` + * + * I disagree with it, but what are you going to do... + * + * https://github.com/eslint/eslint/issues/2342 + */ + let idOrVariable; + if (node.left.type === utils_1.AST_NODE_TYPES.VariableDeclaration) { + const variable = this.#scopeManager.getDeclaredVariables(node.left).at(0); + if (!variable) { + return; + } + idOrVariable = variable; + } + if (node.left.type === utils_1.AST_NODE_TYPES.Identifier) { + idOrVariable = node.left; + } + if (idOrVariable == null) { + return; + } + let body = node.body; + if (node.body.type === utils_1.AST_NODE_TYPES.BlockStatement) { + if (node.body.body.length !== 1) { + return; + } + body = node.body.body[0]; + } + if (body.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { + return; + } + this.markVariableAsUsed(idOrVariable); + } + visitFunction(node) { + const scope = this.getScope(node); + // skip implicit "arguments" variable + const variable = scope.set.get('arguments'); + if (variable?.defs.length === 0) { + this.markVariableAsUsed(variable); + } + } + visitFunctionTypeSignature(node) { + // function type signature params create variables because they can be referenced within the signature, + // but they obviously aren't unused variables for the purposes of this rule. + for (const param of node.params) { + this.visitPattern(param, name => { + this.markVariableAsUsed(name); + }); + } + } + visitSetter(node) { + if (node.kind === 'set') { + // ignore setter parameters because they're syntactically required to exist + for (const param of node.value.params) { + this.visitPattern(param, id => { + this.markVariableAsUsed(id); + }); + } + } + } +} +//#region private helpers +/** + * Checks the position of given nodes. + * @param inner A node which is expected as inside. + * @param outer A node which is expected as outside. + * @returns `true` if the `inner` node exists in the `outer` node. + */ +function isInside(inner, outer) { + return inner.range[0] >= outer.range[0] && inner.range[1] <= outer.range[1]; +} +/** + * Determine if an identifier is referencing an enclosing name. + * This only applies to declarations that create their own scope (modules, functions, classes) + * @param ref The reference to check. + * @param nodes The candidate function nodes. + * @returns True if it's a self-reference, false if not. + */ +function isSelfReference(ref, nodes) { + let scope = ref.from; + while (scope) { + if (nodes.has(scope.block)) { + return true; + } + scope = scope.upper; + } + return false; +} +const MERGABLE_TYPES = new Set([ + utils_1.AST_NODE_TYPES.ClassDeclaration, + utils_1.AST_NODE_TYPES.FunctionDeclaration, + utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, + utils_1.AST_NODE_TYPES.TSModuleDeclaration, + utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, +]); +/** + * Determine if the variable is directly exported + * @param variable the variable to check + */ +function isMergableExported(variable) { + // If all of the merged things are of the same type, TS will error if not all of them are exported - so we only need to find one + for (const def of variable.defs) { + // parameters can never be exported. + // their `node` prop points to the function decl, which can be exported + // so we need to special case them + if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { + continue; + } + if ((MERGABLE_TYPES.has(def.node.type) && + def.node.parent?.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) || + def.node.parent?.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { + return true; + } + } + return false; +} +/** + * Determines if a given variable is being exported from a module. + * @param variable eslint-scope variable object. + * @returns True if the variable is exported, false if not. + */ +function isExported(variable) { + return variable.defs.some(definition => { + let node = definition.node; + if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + node = node.parent; + } + else if (definition.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { + return false; + } + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + return node.parent.type.startsWith('Export'); + }); +} +const LOGICAL_ASSIGNMENT_OPERATORS = new Set(['??=', '&&=', '||=']); +/** + * Determines if the variable is used. + * @param variable The variable to check. + * @returns True if the variable is used + */ +function isUsedVariable(variable) { + /** + * Gets a list of function definitions for a specified variable. + * @param variable eslint-scope variable object. + * @returns Function nodes. + */ + function getFunctionDefinitions(variable) { + const functionDefinitions = new Set(); + variable.defs.forEach(def => { + // FunctionDeclarations + if (def.type === utils_1.TSESLint.Scope.DefinitionType.FunctionName) { + functionDefinitions.add(def.node); + } + // FunctionExpressions + if (def.type === utils_1.TSESLint.Scope.DefinitionType.Variable && + (def.node.init?.type === utils_1.AST_NODE_TYPES.FunctionExpression || + def.node.init?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { + functionDefinitions.add(def.node.init); + } + }); + return functionDefinitions; + } + function getTypeDeclarations(variable) { + const nodes = new Set(); + variable.defs.forEach(def => { + if (def.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration || + def.node.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { + nodes.add(def.node); + } + }); + return nodes; + } + function getModuleDeclarations(variable) { + const nodes = new Set(); + variable.defs.forEach(def => { + if (def.node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { + nodes.add(def.node); + } + }); + return nodes; + } + function getEnumDeclarations(variable) { + const nodes = new Set(); + variable.defs.forEach(def => { + if (def.node.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration) { + nodes.add(def.node); + } + }); + return nodes; + } + /** + * Checks if the ref is contained within one of the given nodes + */ + function isInsideOneOf(ref, nodes) { + for (const node of nodes) { + if (isInside(ref.identifier, node)) { + return true; + } + } + return false; + } + /** + * Checks whether a given node is unused expression or not. + * @param node The node itself + * @returns The node is an unused expression. + */ + function isUnusedExpression(node) { + const parent = node.parent; + if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { + return true; + } + if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression) { + const isLastExpression = parent.expressions[parent.expressions.length - 1] === node; + if (!isLastExpression) { + return true; + } + return isUnusedExpression(parent); + } + return false; + } + /** + * If a given reference is left-hand side of an assignment, this gets + * the right-hand side node of the assignment. + * + * In the following cases, this returns null. + * + * - The reference is not the LHS of an assignment expression. + * - The reference is inside of a loop. + * - The reference is inside of a function scope which is different from + * the declaration. + * @param ref A reference to check. + * @param prevRhsNode The previous RHS node. + * @returns The RHS node or null. + */ + function getRhsNode(ref, prevRhsNode) { + /** + * Checks whether the given node is in a loop or not. + * @param node The node to check. + * @returns `true` if the node is in a loop. + */ + function isInLoop(node) { + let currentNode = node; + while (currentNode) { + if (utils_1.ASTUtils.isFunction(currentNode)) { + break; + } + if (utils_1.ASTUtils.isLoop(currentNode)) { + return true; + } + currentNode = currentNode.parent; + } + return false; + } + const id = ref.identifier; + const parent = id.parent; + const refScope = ref.from.variableScope; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const varScope = ref.resolved.scope.variableScope; + const canBeUsedLater = refScope !== varScope || isInLoop(id); + /* + * Inherits the previous node if this reference is in the node. + * This is for `a = a + a`-like code. + */ + if (prevRhsNode && isInside(id, prevRhsNode)) { + return prevRhsNode; + } + if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && + isUnusedExpression(parent) && + id === parent.left && + !canBeUsedLater) { + return parent.right; + } + return null; + } + /** + * Checks whether a given reference is a read to update itself or not. + * @param ref A reference to check. + * @param rhsNode The RHS node of the previous assignment. + * @returns The reference is a read to update itself. + */ + function isReadForItself(ref, rhsNode) { + /** + * Checks whether a given Identifier node exists inside of a function node which can be used later. + * + * "can be used later" means: + * - the function is assigned to a variable. + * - the function is bound to a property and the object can be used later. + * - the function is bound as an argument of a function call. + * + * If a reference exists in a function which can be used later, the reference is read when the function is called. + * @param id An Identifier node to check. + * @param rhsNode The RHS node of the previous assignment. + * @returns `true` if the `id` node exists inside of a function node which can be used later. + */ + function isInsideOfStorableFunction(id, rhsNode) { + /** + * Finds a function node from ancestors of a node. + * @param node A start node to find. + * @returns A found function node. + */ + function getUpperFunction(node) { + let currentNode = node; + while (currentNode) { + if (utils_1.ASTUtils.isFunction(currentNode)) { + return currentNode; + } + currentNode = currentNode.parent; + } + return null; + } + /** + * Checks whether a given function node is stored to somewhere or not. + * If the function node is stored, the function can be used later. + * @param funcNode A function node to check. + * @param rhsNode The RHS node of the previous assignment. + * @returns `true` if under the following conditions: + * - the funcNode is assigned to a variable. + * - the funcNode is bound as an argument of a function call. + * - the function is bound to a property and the object satisfies above conditions. + */ + function isStorableFunction(funcNode, rhsNode) { + let node = funcNode; + let parent = funcNode.parent; + while (parent && isInside(parent, rhsNode)) { + switch (parent.type) { + case utils_1.AST_NODE_TYPES.SequenceExpression: + if (parent.expressions[parent.expressions.length - 1] !== node) { + return false; + } + break; + case utils_1.AST_NODE_TYPES.CallExpression: + case utils_1.AST_NODE_TYPES.NewExpression: + return parent.callee !== node; + case utils_1.AST_NODE_TYPES.AssignmentExpression: + case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: + case utils_1.AST_NODE_TYPES.YieldExpression: + return true; + default: + if (parent.type.endsWith('Statement') || + parent.type.endsWith('Declaration')) { + /* + * If it encountered statements, this is a complex pattern. + * Since analyzing complex patterns is hard, this returns `true` to avoid false positive. + */ + return true; + } + } + node = parent; + parent = parent.parent; + } + return false; + } + const funcNode = getUpperFunction(id); + return (!!funcNode && + isInside(funcNode, rhsNode) && + isStorableFunction(funcNode, rhsNode)); + } + const id = ref.identifier; + const parent = id.parent; + return (ref.isRead() && // in RHS of an assignment for itself. e.g. `a = a + 1` + // self update. e.g. `a += 1`, `a++` + ((parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && + !LOGICAL_ASSIGNMENT_OPERATORS.has(parent.operator) && + isUnusedExpression(parent) && + parent.left === id) || + (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && + isUnusedExpression(parent)) || + (!!rhsNode && + isInside(id, rhsNode) && + !isInsideOfStorableFunction(id, rhsNode)))); + } + const functionNodes = getFunctionDefinitions(variable); + const isFunctionDefinition = functionNodes.size > 0; + const typeDeclNodes = getTypeDeclarations(variable); + const isTypeDecl = typeDeclNodes.size > 0; + const moduleDeclNodes = getModuleDeclarations(variable); + const isModuleDecl = moduleDeclNodes.size > 0; + const enumDeclNodes = getEnumDeclarations(variable); + const isEnumDecl = enumDeclNodes.size > 0; + const isImportedAsType = variable.defs.every(isTypeImport_1.isTypeImport); + let rhsNode = null; + return variable.references.some(ref => { + const forItself = isReadForItself(ref, rhsNode); + rhsNode = getRhsNode(ref, rhsNode); + return (ref.isRead() && + !forItself && + !(!isImportedAsType && (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(ref.identifier)) && + !(isFunctionDefinition && isSelfReference(ref, functionNodes)) && + !(isTypeDecl && isInsideOneOf(ref, typeDeclNodes)) && + !(isModuleDecl && isSelfReference(ref, moduleDeclNodes)) && + !(isEnumDecl && isSelfReference(ref, enumDeclNodes))); + }); +} +//#endregion private helpers +/** + * Collects the set of unused variables for a given context. + * + * Due to complexity, this does not take into consideration: + * - variables within declaration files + * - variables within ambient module declarations + */ +function collectVariables(context) { + return UnusedVarsVisitor.collectUnusedVariables(context.sourceCode.ast, utils_1.ESLintUtils.nullThrows(context.sourceCode.scopeManager, 'Missing required scope manager')); +} +//# sourceMappingURL=collectUnusedVariables.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map new file mode 100644 index 00000000..9aca090d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map @@ -0,0 +1 @@ +{"version":3,"file":"collectUnusedVariables.js","sourceRoot":"","sources":["../../src/util/collectUnusedVariables.ts"],"names":[],"mappings":";;AAm0BS,4CAAgB;AA7zBzB,oEAI0C;AAC1C,oDAKkC;AAElC,iDAA8C;AAC9C,6EAA0E;AAW1E;;;GAGG;AACH,MAAM,iBAAkB,SAAQ,uBAAO;IACrC;;OAEG;IAC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AC;YAClD,CAAC,CAAC,YAAY,IAAI,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;YACxD,CAAC,CAAC,UAAU,IAAI,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CACrD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,4BAA4B;AAE5B;;;;;;GAMG;AACH,SAAS,gBAAgB,CAIvB,OAA4D;IAE5D,OAAO,iBAAiB,CAAC,sBAAsB,CAC7C,OAAO,CAAC,UAAU,CAAC,GAAG,EACtB,mBAAW,CAAC,UAAU,CACpB,OAAO,CAAC,UAAU,CAAC,YAAY,EAC/B,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js new file mode 100644 index 00000000..a0ee97b4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRule = void 0; +const utils_1 = require("@typescript-eslint/utils"); +exports.createRule = utils_1.ESLintUtils.RuleCreator(name => `https://typescript-eslint.io/rules/${name}`); +//# sourceMappingURL=createRule.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map new file mode 100644 index 00000000..d50ed381 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAI1C,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CAAC,sCAAsC,IAAI,EAAE,CACrD,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js new file mode 100644 index 00000000..3639aa16 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.escapeRegExp = escapeRegExp; +/** + * Lodash + * Released under MIT license + */ +const reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +const reHasRegExpChar = RegExp(reRegExpChar.source); +function escapeRegExp(string = '') { + return string && reHasRegExpChar.test(string) + ? string.replaceAll(reRegExpChar, '\\$&') + : string; +} +//# sourceMappingURL=escapeRegExp.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map new file mode 100644 index 00000000..83b92aa6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"escapeRegExp.js","sourceRoot":"","sources":["../../src/util/escapeRegExp.ts"],"names":[],"mappings":";;AAOA,oCAIC;AAXD;;;GAGG;AACH,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpD,SAAgB,YAAY,CAAC,MAAM,GAAG,EAAE;IACtC,OAAO,MAAM,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3C,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC;QACzC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js new file mode 100644 index 00000000..5e6de799 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js @@ -0,0 +1,241 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ancestorHasReturnType = ancestorHasReturnType; +exports.checkFunctionExpressionReturnType = checkFunctionExpressionReturnType; +exports.checkFunctionReturnType = checkFunctionReturnType; +exports.doesImmediatelyReturnFunctionExpression = doesImmediatelyReturnFunctionExpression; +exports.isTypedFunctionExpression = isTypedFunctionExpression; +exports.isValidFunctionExpressionReturnType = isValidFunctionExpressionReturnType; +const utils_1 = require("@typescript-eslint/utils"); +const astUtils_1 = require("./astUtils"); +const getFunctionHeadLoc_1 = require("./getFunctionHeadLoc"); +/** + * Checks if a node is a variable declarator with a type annotation. + * ``` + * const x: Foo = ... + * ``` + */ +function isVariableDeclaratorWithTypeAnnotation(node) { + return (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator && !!node.id.typeAnnotation); +} +/** + * Checks if a node is a class property with a type annotation. + * ``` + * public x: Foo = ... + * ``` + */ +function isPropertyDefinitionWithTypeAnnotation(node) { + return (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && !!node.typeAnnotation); +} +/** + * Checks if a node belongs to: + * ``` + * foo(() => 1) + * ``` + */ +function isFunctionArgument(parent, callee) { + return (parent.type === utils_1.AST_NODE_TYPES.CallExpression && + // make sure this isn't an IIFE + parent.callee !== callee); +} +/** + * Checks if a node is type-constrained in JSX + * ``` + * {}} /> + * {() => {}} + * + * ``` + */ +function isTypedJSX(node) { + return (node.type === utils_1.AST_NODE_TYPES.JSXExpressionContainer || + node.type === utils_1.AST_NODE_TYPES.JSXSpreadAttribute); +} +function isTypedParent(parent, callee) { + return ((0, astUtils_1.isTypeAssertion)(parent) || + isVariableDeclaratorWithTypeAnnotation(parent) || + isDefaultFunctionParameterWithTypeAnnotation(parent) || + isPropertyDefinitionWithTypeAnnotation(parent) || + isFunctionArgument(parent, callee) || + isTypedJSX(parent)); +} +function isDefaultFunctionParameterWithTypeAnnotation(node) { + return (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern && + node.left.typeAnnotation != null); +} +/** + * Checks if a node belongs to: + * ``` + * new Foo(() => {}) + * ^^^^^^^^ + * ``` + */ +function isConstructorArgument(node) { + return node.type === utils_1.AST_NODE_TYPES.NewExpression; +} +/** + * Checks if a node is a property or a nested property of a typed object: + * ``` + * const x: Foo = { prop: () => {} } + * const x = { prop: () => {} } as Foo + * const x = { prop: () => {} } + * const x: Foo = { bar: { prop: () => {} } } + * ``` + */ +function isPropertyOfObjectWithType(property) { + if (!property || property.type !== utils_1.AST_NODE_TYPES.Property) { + return false; + } + const objectExpr = property.parent; + if (objectExpr.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { + return false; + } + const parent = objectExpr.parent; + return isTypedParent(parent) || isPropertyOfObjectWithType(parent); +} +/** + * Checks if a function belongs to: + * ``` + * () => () => ... + * () => function () { ... } + * () => { return () => ... } + * () => { return function () { ... } } + * function fn() { return () => ... } + * function fn() { return function() { ... } } + * ``` + */ +function doesImmediatelyReturnFunctionExpression({ node, returns, }) { + if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + utils_1.ASTUtils.isFunction(node.body)) { + return true; + } + if (returns.length === 0) { + return false; + } + return returns.every(node => node.argument && utils_1.ASTUtils.isFunction(node.argument)); +} +/** + * Checks if a function belongs to: + * ``` + * ({ action: 'xxx' } as const) + * ``` + */ +function isConstAssertion(node) { + if ((0, astUtils_1.isTypeAssertion)(node)) { + const { typeAnnotation } = node; + if (typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference) { + const { typeName } = typeAnnotation; + if (typeName.type === utils_1.AST_NODE_TYPES.Identifier && + typeName.name === 'const') { + return true; + } + } + } + return false; +} +/** + * True when the provided function expression is typed. + */ +function isTypedFunctionExpression(node, options) { + const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); + if (!options.allowTypedFunctionExpressions) { + return false; + } + return (isTypedParent(parent, node) || + isPropertyOfObjectWithType(parent) || + isConstructorArgument(parent)); +} +/** + * Check whether the function expression return type is either typed or valid + * with the provided options. + */ +function isValidFunctionExpressionReturnType(node, options) { + if (isTypedFunctionExpression(node, options)) { + return true; + } + const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); + if (options.allowExpressions && + parent.type !== utils_1.AST_NODE_TYPES.VariableDeclarator && + parent.type !== utils_1.AST_NODE_TYPES.MethodDefinition && + parent.type !== utils_1.AST_NODE_TYPES.ExportDefaultDeclaration && + parent.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { + return true; + } + // https://github.com/typescript-eslint/typescript-eslint/issues/653 + if (!options.allowDirectConstAssertionInArrowFunctions || + node.type !== utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { + return false; + } + let body = node.body; + while (body.type === utils_1.AST_NODE_TYPES.TSSatisfiesExpression) { + body = body.expression; + } + return isConstAssertion(body); +} +/** + * Check that the function expression or declaration is valid. + */ +function isValidFunctionReturnType({ node, returns }, options) { + if (options.allowHigherOrderFunctions && + doesImmediatelyReturnFunctionExpression({ node, returns })) { + return true; + } + return (node.returnType != null || + (0, astUtils_1.isConstructor)(node.parent) || + (0, astUtils_1.isSetter)(node.parent)); +} +/** + * Checks if a function declaration/expression has a return type. + */ +function checkFunctionReturnType({ node, returns }, options, sourceCode, report) { + if (isValidFunctionReturnType({ node, returns }, options)) { + return; + } + report((0, getFunctionHeadLoc_1.getFunctionHeadLoc)(node, sourceCode)); +} +/** + * Checks if a function declaration/expression has a return type. + */ +function checkFunctionExpressionReturnType(info, options, sourceCode, report) { + if (isValidFunctionExpressionReturnType(info.node, options)) { + return; + } + checkFunctionReturnType(info, options, sourceCode, report); +} +/** + * Check whether any ancestor of the provided function has a valid return type. + */ +function ancestorHasReturnType(node) { + let ancestor = node.parent; + if (ancestor.type === utils_1.AST_NODE_TYPES.Property) { + ancestor = ancestor.value; + } + // if the ancestor is not a return, then this function was not returned at all, so we can exit early + const isReturnStatement = ancestor.type === utils_1.AST_NODE_TYPES.ReturnStatement; + const isBodylessArrow = ancestor.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + ancestor.body.type !== utils_1.AST_NODE_TYPES.BlockStatement; + if (!isReturnStatement && !isBodylessArrow) { + return false; + } + while (ancestor) { + switch (ancestor.type) { + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.FunctionDeclaration: + if (ancestor.returnType) { + return true; + } + break; + // const x: Foo = () => {}; + // Assume that a typed variable types the function expression + case utils_1.AST_NODE_TYPES.VariableDeclarator: + return !!ancestor.id.typeAnnotation; + case utils_1.AST_NODE_TYPES.PropertyDefinition: + return !!ancestor.typeAnnotation; + case utils_1.AST_NODE_TYPES.ExpressionStatement: + return false; + } + ancestor = ancestor.parent; + } + return false; +} +//# sourceMappingURL=explicitReturnTypeUtils.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map new file mode 100644 index 00000000..3fb07aae --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"explicitReturnTypeUtils.js","sourceRoot":"","sources":["../../src/util/explicitReturnTypeUtils.ts"],"names":[],"mappings":";;AAkXE,sDAAqB;AACrB,8EAAiC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,CAAC,kBAAkB;gBACpC,OAAO,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YACnC,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js new file mode 100644 index 00000000..48023ccb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getESLintCoreRule = void 0; +exports.maybeGetESLintCoreRule = maybeGetESLintCoreRule; +const utils_1 = require("@typescript-eslint/utils"); +const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); +const getESLintCoreRule = (ruleId) => utils_1.ESLintUtils.nullThrows(use_at_your_own_risk_1.builtinRules.get(ruleId), `ESLint's core rule '${ruleId}' not found.`); +exports.getESLintCoreRule = getESLintCoreRule; +function maybeGetESLintCoreRule(ruleId) { + try { + return (0, exports.getESLintCoreRule)(ruleId); + } + catch { + return null; + } +} +//# sourceMappingURL=getESLintCoreRule.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map new file mode 100644 index 00000000..66932014 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getESLintCoreRule.js","sourceRoot":"","sources":["../../src/util/getESLintCoreRule.ts"],"names":[],"mappings":";;;AAqCA,wDAQC;AA7CD,oDAAuD;AACvD,sEAA2D;AA8BpD,MAAM,iBAAiB,GAAG,CAAmB,MAAS,EAAc,EAAE,CAC3E,mBAAW,CAAC,UAAU,CACpB,mCAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EACxB,uBAAuB,MAAM,cAAc,CAC5C,CAAC;AAJS,QAAA,iBAAiB,qBAI1B;AAEJ,SAAgB,sBAAsB,CACpC,MAAS;IAET,IAAI,CAAC;QACH,OAAO,IAAA,yBAAiB,EAAI,MAAM,CAAC,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js new file mode 100644 index 00000000..b3ccd910 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getFixOrSuggest = getFixOrSuggest; +function getFixOrSuggest({ fixOrSuggest, suggestion, }) { + switch (fixOrSuggest) { + case 'fix': + return { fix: suggestion.fix }; + case 'none': + return undefined; + case 'suggest': + return { suggest: [suggestion] }; + } +} +//# sourceMappingURL=getFixOrSuggest.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map new file mode 100644 index 00000000..f84b5b6a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getFixOrSuggest.js","sourceRoot":"","sources":["../../src/util/getFixOrSuggest.ts"],"names":[],"mappings":";;AAEA,0CAkBC;AAlBD,SAAgB,eAAe,CAA2B,EACxD,YAAY,EACZ,UAAU,GAIX;IAIC,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,KAAK;YACR,OAAO,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC;QACjC,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACrC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js new file mode 100644 index 00000000..fdc79f57 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getForStatementHeadLoc = getForStatementHeadLoc; +const eslint_utils_1 = require("@typescript-eslint/utils/eslint-utils"); +/** + * Gets the location of the head of the given for statement variant for reporting. + * + * - `for (const foo in bar) expressionOrBlock` + * ^^^^^^^^^^^^^^^^^^^^^^ + * + * - `for (const foo of bar) expressionOrBlock` + * ^^^^^^^^^^^^^^^^^^^^^^ + * + * - `for await (const foo of bar) expressionOrBlock` + * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + * + * - `for (let i = 0; i < 10; i++) expressionOrBlock` + * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + */ +function getForStatementHeadLoc(sourceCode, node) { + const closingParens = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenBefore(node.body, token => token.value === ')'), 'for statement must have a closing parenthesis.'); + return { + end: structuredClone(closingParens.loc.end), + start: structuredClone(node.loc.start), + }; +} +//# sourceMappingURL=getForStatementHeadLoc.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map new file mode 100644 index 00000000..18045b0d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getForStatementHeadLoc.js","sourceRoot":"","sources":["../../src/util/getForStatementHeadLoc.ts"],"names":[],"mappings":";;AAmBA,wDAeC;AAhCD,wEAAmE;AAEnE;;;;;;;;;;;;;;GAcG;AACH,SAAgB,sBAAsB,CACpC,UAA+B,EAC/B,IAGyB;IAEzB,MAAM,aAAa,GAAG,IAAA,yBAAU,EAC9B,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,GAAG,CAAC,EAClE,gDAAgD,CACjD,CAAC;IACF,OAAO;QACL,GAAG,EAAE,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;QAC3C,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;KACvC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js new file mode 100644 index 00000000..0319d147 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js @@ -0,0 +1,162 @@ +"use strict"; +// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L1668-L1787 +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getFunctionHeadLoc = getFunctionHeadLoc; +const utils_1 = require("@typescript-eslint/utils"); +const astUtils_1 = require("./astUtils"); +/** + * Gets the `(` token of the given function node. + * @param node The function node to get. + * @param sourceCode The source code object to get tokens. + * @returns `(` token. + */ +function getOpeningParenOfParams(node, sourceCode) { + // If the node is an arrow function and doesn't have parens, this returns the identifier of the first param. + if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + node.params.length === 1) { + const argToken = utils_1.ESLintUtils.nullThrows(sourceCode.getFirstToken(node.params[0]), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('parameter', 'arrow function')); + const maybeParenToken = sourceCode.getTokenBefore(argToken); + return maybeParenToken && (0, astUtils_1.isOpeningParenToken)(maybeParenToken) + ? maybeParenToken + : argToken; + } + // Otherwise, returns paren. + return node.id != null + ? utils_1.ESLintUtils.nullThrows(sourceCode.getTokenAfter(node.id, astUtils_1.isOpeningParenToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('id', 'function')) + : utils_1.ESLintUtils.nullThrows(sourceCode.getFirstToken(node, astUtils_1.isOpeningParenToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('opening parenthesis', 'function')); +} +/** + * Gets the location of the given function node for reporting. + * + * - `function foo() {}` + * ^^^^^^^^^^^^ + * - `(function foo() {})` + * ^^^^^^^^^^^^ + * - `(function() {})` + * ^^^^^^^^ + * - `function* foo() {}` + * ^^^^^^^^^^^^^ + * - `(function* foo() {})` + * ^^^^^^^^^^^^^ + * - `(function*() {})` + * ^^^^^^^^^ + * - `() => {}` + * ^^ + * - `async () => {}` + * ^^ + * - `({ foo: function foo() {} })` + * ^^^^^^^^^^^^^^^^^ + * - `({ foo: function() {} })` + * ^^^^^^^^^^^^^ + * - `({ ['foo']: function() {} })` + * ^^^^^^^^^^^^^^^^^ + * - `({ [foo]: function() {} })` + * ^^^^^^^^^^^^^^^ + * - `({ foo() {} })` + * ^^^ + * - `({ foo: function* foo() {} })` + * ^^^^^^^^^^^^^^^^^^ + * - `({ foo: function*() {} })` + * ^^^^^^^^^^^^^^ + * - `({ ['foo']: function*() {} })` + * ^^^^^^^^^^^^^^^^^^ + * - `({ [foo]: function*() {} })` + * ^^^^^^^^^^^^^^^^ + * - `({ *foo() {} })` + * ^^^^ + * - `({ foo: async function foo() {} })` + * ^^^^^^^^^^^^^^^^^^^^^^^ + * - `({ foo: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^ + * - `({ ['foo']: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^^^^^ + * - `({ [foo]: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^^^ + * - `({ async foo() {} })` + * ^^^^^^^^^ + * - `({ get foo() {} })` + * ^^^^^^^ + * - `({ set foo(a) {} })` + * ^^^^^^^ + * - `class A { constructor() {} }` + * ^^^^^^^^^^^ + * - `class A { foo() {} }` + * ^^^ + * - `class A { *foo() {} }` + * ^^^^ + * - `class A { async foo() {} }` + * ^^^^^^^^^ + * - `class A { ['foo']() {} }` + * ^^^^^^^ + * - `class A { *['foo']() {} }` + * ^^^^^^^^ + * - `class A { async ['foo']() {} }` + * ^^^^^^^^^^^^^ + * - `class A { [foo]() {} }` + * ^^^^^ + * - `class A { *[foo]() {} }` + * ^^^^^^ + * - `class A { async [foo]() {} }` + * ^^^^^^^^^^^ + * - `class A { get foo() {} }` + * ^^^^^^^ + * - `class A { set foo(a) {} }` + * ^^^^^^^ + * - `class A { static foo() {} }` + * ^^^^^^^^^^ + * - `class A { static *foo() {} }` + * ^^^^^^^^^^^ + * - `class A { static async foo() {} }` + * ^^^^^^^^^^^^^^^^ + * - `class A { static get foo() {} }` + * ^^^^^^^^^^^^^^ + * - `class A { static set foo(a) {} }` + * ^^^^^^^^^^^^^^ + * - `class A { foo = function() {} }` + * ^^^^^^^^^^^^^^ + * - `class A { static foo = function() {} }` + * ^^^^^^^^^^^^^^^^^^^^^ + * - `class A { foo = (a, b) => {} }` + * ^^^^^^ + * @param node The function node to get. + * @param sourceCode The source code object to get tokens. + * @returns The location of the function node for reporting. + */ +function getFunctionHeadLoc(node, sourceCode) { + const parent = node.parent; + let start = null; + let end = null; + if (parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || + parent.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { + // the decorator's range is included within the member + // however it's usually irrelevant to the member itself - so we don't want + // to highlight it ever. + if (parent.decorators.length > 0) { + const lastDecorator = parent.decorators[parent.decorators.length - 1]; + const firstTokenAfterDecorator = utils_1.ESLintUtils.nullThrows(sourceCode.getTokenAfter(lastDecorator), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('modifier or member name', 'class member')); + start = firstTokenAfterDecorator.loc.start; + } + else { + start = parent.loc.start; + } + end = getOpeningParenOfParams(node, sourceCode).loc.start; + } + else if (parent.type === utils_1.AST_NODE_TYPES.Property) { + start = parent.loc.start; + end = getOpeningParenOfParams(node, sourceCode).loc.start; + } + else if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { + const arrowToken = utils_1.ESLintUtils.nullThrows(sourceCode.getTokenBefore(node.body, astUtils_1.isArrowToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('arrow token', 'arrow function')); + start = arrowToken.loc.start; + end = arrowToken.loc.end; + } + else { + start = node.loc.start; + end = getOpeningParenOfParams(node, sourceCode).loc.start; + } + return { + end: { ...end }, + start: { ...start }, + }; +} +//# sourceMappingURL=getFunctionHeadLoc.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map new file mode 100644 index 00000000..d07aba17 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getFunctionHeadLoc.js","sourceRoot":"","sources":["../../src/util/getFunctionHeadLoc.ts"],"names":[],"mappings":";AAAA,uIAAu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CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAY,CAAC,EAClD,mBAAW,CAAC,iBAAiB,CAAC,YAAY,CACxC,aAAa,EACb,gBAAgB,CACjB,CACF,CAAC;QAEF,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC;QAC7B,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACvB,GAAG,GAAG,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IAC5D,CAAC;IAED,OAAO;QACL,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE;QACf,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE;KACpB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js new file mode 100644 index 00000000..5119d065 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js @@ -0,0 +1,80 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getMemberHeadLoc = getMemberHeadLoc; +exports.getParameterPropertyHeadLoc = getParameterPropertyHeadLoc; +const eslint_utils_1 = require("@typescript-eslint/utils/eslint-utils"); +/** + * Generates report loc suitable for reporting on how a class member is + * declared, rather than how it's implemented. + * + * ```ts + * class A { + * abstract method(): void; + * ~~~~~~~~~~~~~~~ + * + * concreteMethod(): void { + * ~~~~~~~~~~~~~~ + * // code + * } + * + * abstract private property?: string; + * ~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * @decorator override concreteProperty = 'value'; + * ~~~~~~~~~~~~~~~~~~~~~~~~~ + * } + * ``` + */ +function getMemberHeadLoc(sourceCode, node) { + let start; + if (node.decorators.length === 0) { + start = node.loc.start; + } + else { + const lastDecorator = node.decorators[node.decorators.length - 1]; + const nextToken = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(lastDecorator), eslint_utils_1.NullThrowsReasons.MissingToken('token', 'last decorator')); + start = nextToken.loc.start; + } + let end; + if (!node.computed) { + end = node.key.loc.end; + } + else { + const closingBracket = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(node.key, token => token.value === ']'), eslint_utils_1.NullThrowsReasons.MissingToken(']', node.type)); + end = closingBracket.loc.end; + } + return { + end: structuredClone(end), + start: structuredClone(start), + }; +} +/** + * Generates report loc suitable for reporting on how a parameter property is + * declared. + * + * ```ts + * class A { + * constructor(private property: string = 'value') { + * ~~~~~~~~~~~~~~~~ + * } + * ``` + */ +function getParameterPropertyHeadLoc(sourceCode, node, nodeName) { + // Parameter properties have a weirdly different AST structure + // than other class members. + let start; + if (node.decorators.length === 0) { + start = structuredClone(node.loc.start); + } + else { + const lastDecorator = node.decorators[node.decorators.length - 1]; + const nextToken = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(lastDecorator), eslint_utils_1.NullThrowsReasons.MissingToken('token', 'last decorator')); + start = structuredClone(nextToken.loc.start); + } + const end = sourceCode.getLocFromIndex(node.parameter.range[0] + nodeName.length); + return { + end, + start, + }; +} +//# sourceMappingURL=getMemberHeadLoc.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map new file mode 100644 index 00000000..04d20552 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getMemberHeadLoc.js","sourceRoot":"","sources":["../../src/util/getMemberHeadLoc.ts"],"names":[],"m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UG;AACH,SAAgB,2BAA2B,CACzC,UAAyC,EACzC,IAAkC,EAClC,QAAgB;IAEhB,8DAA8D;IAC9D,4BAA4B;IAE5B,IAAI,KAAwB,CAAC;IAE7B,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACN,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,IAAA,yBAAU,EAC1B,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,EACvC,gCAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAC1D,CAAC;QACF,KAAK,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,GAAG,GAAG,UAAU,CAAC,eAAe,CACpC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAC1C,CAAC;IAEF,OAAO;QACL,GAAG;QACH,KAAK;KACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js new file mode 100644 index 00000000..8d914e74 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js @@ -0,0 +1,418 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OperatorPrecedence = void 0; +exports.getOperatorPrecedenceForNode = getOperatorPrecedenceForNode; +exports.getOperatorPrecedence = getOperatorPrecedence; +exports.getBinaryOperatorPrecedence = getBinaryOperatorPrecedence; +const utils_1 = require("@typescript-eslint/utils"); +const typescript_1 = require("typescript"); +var OperatorPrecedence; +(function (OperatorPrecedence) { + // Expression: + // AssignmentExpression + // Expression `,` AssignmentExpression + OperatorPrecedence[OperatorPrecedence["Comma"] = 0] = "Comma"; + // NOTE: `Spread` is higher than `Comma` due to how it is parsed in |ElementList| + // SpreadElement: + // `...` AssignmentExpression + OperatorPrecedence[OperatorPrecedence["Spread"] = 1] = "Spread"; + // AssignmentExpression: + // ConditionalExpression + // YieldExpression + // ArrowFunction + // AsyncArrowFunction + // LeftHandSideExpression `=` AssignmentExpression + // LeftHandSideExpression AssignmentOperator AssignmentExpression + // + // NOTE: AssignmentExpression is broken down into several precedences due to the requirements + // of the parenthesize rules. + // AssignmentExpression: YieldExpression + // YieldExpression: + // `yield` + // `yield` AssignmentExpression + // `yield` `*` AssignmentExpression + OperatorPrecedence[OperatorPrecedence["Yield"] = 2] = "Yield"; + // AssignmentExpression: LeftHandSideExpression `=` AssignmentExpression + // AssignmentExpression: LeftHandSideExpression AssignmentOperator AssignmentExpression + // AssignmentOperator: one of + // `*=` `/=` `%=` `+=` `-=` `<<=` `>>=` `>>>=` `&=` `^=` `|=` `**=` + OperatorPrecedence[OperatorPrecedence["Assignment"] = 3] = "Assignment"; + // NOTE: `Conditional` is considered higher than `Assignment` here, but in reality they have + // the same precedence. + // AssignmentExpression: ConditionalExpression + // ConditionalExpression: + // ShortCircuitExpression + // ShortCircuitExpression `?` AssignmentExpression `:` AssignmentExpression + // ShortCircuitExpression: + // LogicalORExpression + // CoalesceExpression + OperatorPrecedence[OperatorPrecedence["Conditional"] = 4] = "Conditional"; + // CoalesceExpression: + // CoalesceExpressionHead `??` BitwiseORExpression + // CoalesceExpressionHead: + // CoalesceExpression + // BitwiseORExpression + OperatorPrecedence[OperatorPrecedence["Coalesce"] = 4] = "Coalesce"; + // LogicalORExpression: + // LogicalANDExpression + // LogicalORExpression `||` LogicalANDExpression + OperatorPrecedence[OperatorPrecedence["LogicalOR"] = 5] = "LogicalOR"; + // LogicalANDExpression: + // BitwiseORExpression + // LogicalANDExpression `&&` BitwiseORExpression + OperatorPrecedence[OperatorPrecedence["LogicalAND"] = 6] = "LogicalAND"; + // BitwiseORExpression: + // BitwiseXORExpression + // BitwiseORExpression `^` BitwiseXORExpression + OperatorPrecedence[OperatorPrecedence["BitwiseOR"] = 7] = "BitwiseOR"; + // BitwiseXORExpression: + // BitwiseANDExpression + // BitwiseXORExpression `^` BitwiseANDExpression + OperatorPrecedence[OperatorPrecedence["BitwiseXOR"] = 8] = "BitwiseXOR"; + // BitwiseANDExpression: + // EqualityExpression + // BitwiseANDExpression `^` EqualityExpression + OperatorPrecedence[OperatorPrecedence["BitwiseAND"] = 9] = "BitwiseAND"; + // EqualityExpression: + // RelationalExpression + // EqualityExpression `==` RelationalExpression + // EqualityExpression `!=` RelationalExpression + // EqualityExpression `===` RelationalExpression + // EqualityExpression `!==` RelationalExpression + OperatorPrecedence[OperatorPrecedence["Equality"] = 10] = "Equality"; + // RelationalExpression: + // ShiftExpression + // RelationalExpression `<` ShiftExpression + // RelationalExpression `>` ShiftExpression + // RelationalExpression `<=` ShiftExpression + // RelationalExpression `>=` ShiftExpression + // RelationalExpression `instanceof` ShiftExpression + // RelationalExpression `in` ShiftExpression + // [+TypeScript] RelationalExpression `as` Type + OperatorPrecedence[OperatorPrecedence["Relational"] = 11] = "Relational"; + // ShiftExpression: + // AdditiveExpression + // ShiftExpression `<<` AdditiveExpression + // ShiftExpression `>>` AdditiveExpression + // ShiftExpression `>>>` AdditiveExpression + OperatorPrecedence[OperatorPrecedence["Shift"] = 12] = "Shift"; + // AdditiveExpression: + // MultiplicativeExpression + // AdditiveExpression `+` MultiplicativeExpression + // AdditiveExpression `-` MultiplicativeExpression + OperatorPrecedence[OperatorPrecedence["Additive"] = 13] = "Additive"; + // MultiplicativeExpression: + // ExponentiationExpression + // MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + // MultiplicativeOperator: one of `*`, `/`, `%` + OperatorPrecedence[OperatorPrecedence["Multiplicative"] = 14] = "Multiplicative"; + // ExponentiationExpression: + // UnaryExpression + // UpdateExpression `**` ExponentiationExpression + OperatorPrecedence[OperatorPrecedence["Exponentiation"] = 15] = "Exponentiation"; + // UnaryExpression: + // UpdateExpression + // `delete` UnaryExpression + // `void` UnaryExpression + // `typeof` UnaryExpression + // `+` UnaryExpression + // `-` UnaryExpression + // `~` UnaryExpression + // `!` UnaryExpression + // AwaitExpression + // UpdateExpression: // TODO: Do we need to investigate the precedence here? + // `++` UnaryExpression + // `--` UnaryExpression + OperatorPrecedence[OperatorPrecedence["Unary"] = 16] = "Unary"; + // UpdateExpression: + // LeftHandSideExpression + // LeftHandSideExpression `++` + // LeftHandSideExpression `--` + OperatorPrecedence[OperatorPrecedence["Update"] = 17] = "Update"; + // LeftHandSideExpression: + // NewExpression + // CallExpression + // NewExpression: + // MemberExpression + // `new` NewExpression + OperatorPrecedence[OperatorPrecedence["LeftHandSide"] = 18] = "LeftHandSide"; + // CallExpression: + // CoverCallExpressionAndAsyncArrowHead + // SuperCall + // ImportCall + // CallExpression Arguments + // CallExpression `[` Expression `]` + // CallExpression `.` IdentifierName + // CallExpression TemplateLiteral + // MemberExpression: + // PrimaryExpression + // MemberExpression `[` Expression `]` + // MemberExpression `.` IdentifierName + // MemberExpression TemplateLiteral + // SuperProperty + // MetaProperty + // `new` MemberExpression Arguments + OperatorPrecedence[OperatorPrecedence["Member"] = 19] = "Member"; + // TODO: JSXElement? + // PrimaryExpression: + // `this` + // IdentifierReference + // Literal + // ArrayLiteral + // ObjectLiteral + // FunctionExpression + // ClassExpression + // GeneratorExpression + // AsyncFunctionExpression + // AsyncGeneratorExpression + // RegularExpressionLiteral + // TemplateLiteral + // CoverParenthesizedExpressionAndArrowParameterList + OperatorPrecedence[OperatorPrecedence["Primary"] = 20] = "Primary"; + OperatorPrecedence[OperatorPrecedence["Highest"] = 20] = "Highest"; + OperatorPrecedence[OperatorPrecedence["Lowest"] = 0] = "Lowest"; + // -1 is lower than all other precedences. Returning it will cause binary expression + // parsing to stop. + OperatorPrecedence[OperatorPrecedence["Invalid"] = -1] = "Invalid"; +})(OperatorPrecedence || (exports.OperatorPrecedence = OperatorPrecedence = {})); +function getOperatorPrecedenceForNode(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.SpreadElement: + case utils_1.AST_NODE_TYPES.RestElement: + return OperatorPrecedence.Spread; + case utils_1.AST_NODE_TYPES.YieldExpression: + case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: + return OperatorPrecedence.Yield; + case utils_1.AST_NODE_TYPES.ConditionalExpression: + return OperatorPrecedence.Conditional; + case utils_1.AST_NODE_TYPES.SequenceExpression: + return OperatorPrecedence.Comma; + case utils_1.AST_NODE_TYPES.AssignmentExpression: + case utils_1.AST_NODE_TYPES.BinaryExpression: + case utils_1.AST_NODE_TYPES.LogicalExpression: + switch (node.operator) { + case '==': + case '+=': + case '-=': + case '**=': + case '*=': + case '/=': + case '%=': + case '<<=': + case '>>=': + case '>>>=': + case '&=': + case '^=': + case '|=': + case '||=': + case '&&=': + case '??=': + return OperatorPrecedence.Assignment; + default: + return getBinaryOperatorPrecedence(node.operator); + } + case utils_1.AST_NODE_TYPES.TSTypeAssertion: + case utils_1.AST_NODE_TYPES.TSNonNullExpression: + case utils_1.AST_NODE_TYPES.UnaryExpression: + case utils_1.AST_NODE_TYPES.AwaitExpression: + return OperatorPrecedence.Unary; + case utils_1.AST_NODE_TYPES.UpdateExpression: + // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? + if (node.prefix) { + return OperatorPrecedence.Unary; + } + return OperatorPrecedence.Update; + case utils_1.AST_NODE_TYPES.ChainExpression: + return getOperatorPrecedenceForNode(node.expression); + case utils_1.AST_NODE_TYPES.CallExpression: + return OperatorPrecedence.LeftHandSide; + case utils_1.AST_NODE_TYPES.NewExpression: + return node.arguments.length > 0 + ? OperatorPrecedence.Member + : OperatorPrecedence.LeftHandSide; + case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: + case utils_1.AST_NODE_TYPES.MemberExpression: + case utils_1.AST_NODE_TYPES.MetaProperty: + return OperatorPrecedence.Member; + case utils_1.AST_NODE_TYPES.TSAsExpression: + return OperatorPrecedence.Relational; + case utils_1.AST_NODE_TYPES.ThisExpression: + case utils_1.AST_NODE_TYPES.Super: + case utils_1.AST_NODE_TYPES.Identifier: + case utils_1.AST_NODE_TYPES.PrivateIdentifier: + case utils_1.AST_NODE_TYPES.Literal: + case utils_1.AST_NODE_TYPES.ArrayExpression: + case utils_1.AST_NODE_TYPES.ObjectExpression: + case utils_1.AST_NODE_TYPES.FunctionExpression: + case utils_1.AST_NODE_TYPES.ClassExpression: + case utils_1.AST_NODE_TYPES.TemplateLiteral: + case utils_1.AST_NODE_TYPES.JSXElement: + case utils_1.AST_NODE_TYPES.JSXFragment: + // we don't have nodes for these cases + // case SyntaxKind.ParenthesizedExpression: + // case SyntaxKind.OmittedExpression: + return OperatorPrecedence.Primary; + default: + return OperatorPrecedence.Invalid; + } +} +function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { + switch (nodeKind) { + // A list of comma-separated expressions. This node is only created by transformations. + case typescript_1.SyntaxKind.CommaListExpression: + return OperatorPrecedence.Comma; + case typescript_1.SyntaxKind.SpreadElement: + return OperatorPrecedence.Spread; + case typescript_1.SyntaxKind.YieldExpression: + return OperatorPrecedence.Yield; + case typescript_1.SyntaxKind.ConditionalExpression: + return OperatorPrecedence.Conditional; + case typescript_1.SyntaxKind.BinaryExpression: + switch (operatorKind) { + case typescript_1.SyntaxKind.AmpersandAmpersandEqualsToken: + case typescript_1.SyntaxKind.AmpersandEqualsToken: + case typescript_1.SyntaxKind.AsteriskAsteriskEqualsToken: + case typescript_1.SyntaxKind.AsteriskEqualsToken: + case typescript_1.SyntaxKind.BarBarEqualsToken: + case typescript_1.SyntaxKind.BarEqualsToken: + case typescript_1.SyntaxKind.CaretEqualsToken: + case typescript_1.SyntaxKind.EqualsToken: + case typescript_1.SyntaxKind.GreaterThanGreaterThanEqualsToken: + case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken: + case typescript_1.SyntaxKind.LessThanLessThanEqualsToken: + case typescript_1.SyntaxKind.MinusEqualsToken: + case typescript_1.SyntaxKind.PercentEqualsToken: + case typescript_1.SyntaxKind.PlusEqualsToken: + case typescript_1.SyntaxKind.QuestionQuestionEqualsToken: + case typescript_1.SyntaxKind.SlashEqualsToken: + return OperatorPrecedence.Assignment; + case typescript_1.SyntaxKind.CommaToken: + return OperatorPrecedence.Comma; + default: + return getBinaryOperatorPrecedence(operatorKind); + } + // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? + case typescript_1.SyntaxKind.TypeAssertionExpression: + case typescript_1.SyntaxKind.NonNullExpression: + case typescript_1.SyntaxKind.PrefixUnaryExpression: + case typescript_1.SyntaxKind.TypeOfExpression: + case typescript_1.SyntaxKind.VoidExpression: + case typescript_1.SyntaxKind.DeleteExpression: + case typescript_1.SyntaxKind.AwaitExpression: + return OperatorPrecedence.Unary; + case typescript_1.SyntaxKind.PostfixUnaryExpression: + return OperatorPrecedence.Update; + case typescript_1.SyntaxKind.CallExpression: + return OperatorPrecedence.LeftHandSide; + case typescript_1.SyntaxKind.NewExpression: + return hasArguments + ? OperatorPrecedence.Member + : OperatorPrecedence.LeftHandSide; + case typescript_1.SyntaxKind.TaggedTemplateExpression: + case typescript_1.SyntaxKind.PropertyAccessExpression: + case typescript_1.SyntaxKind.ElementAccessExpression: + case typescript_1.SyntaxKind.MetaProperty: + return OperatorPrecedence.Member; + case typescript_1.SyntaxKind.AsExpression: + case typescript_1.SyntaxKind.SatisfiesExpression: + return OperatorPrecedence.Relational; + case typescript_1.SyntaxKind.ThisKeyword: + case typescript_1.SyntaxKind.SuperKeyword: + case typescript_1.SyntaxKind.Identifier: + case typescript_1.SyntaxKind.PrivateIdentifier: + case typescript_1.SyntaxKind.NullKeyword: + case typescript_1.SyntaxKind.TrueKeyword: + case typescript_1.SyntaxKind.FalseKeyword: + case typescript_1.SyntaxKind.NumericLiteral: + case typescript_1.SyntaxKind.BigIntLiteral: + case typescript_1.SyntaxKind.StringLiteral: + case typescript_1.SyntaxKind.ArrayLiteralExpression: + case typescript_1.SyntaxKind.ObjectLiteralExpression: + case typescript_1.SyntaxKind.FunctionExpression: + case typescript_1.SyntaxKind.ArrowFunction: + case typescript_1.SyntaxKind.ClassExpression: + case typescript_1.SyntaxKind.RegularExpressionLiteral: + case typescript_1.SyntaxKind.NoSubstitutionTemplateLiteral: + case typescript_1.SyntaxKind.TemplateExpression: + case typescript_1.SyntaxKind.ParenthesizedExpression: + case typescript_1.SyntaxKind.OmittedExpression: + case typescript_1.SyntaxKind.JsxElement: + case typescript_1.SyntaxKind.JsxSelfClosingElement: + case typescript_1.SyntaxKind.JsxFragment: + return OperatorPrecedence.Primary; + default: + return OperatorPrecedence.Invalid; + } +} +function getBinaryOperatorPrecedence(kind) { + switch (kind) { + case '-': + case '+': + case typescript_1.SyntaxKind.MinusToken: + case typescript_1.SyntaxKind.PlusToken: + return OperatorPrecedence.Additive; + case '!=': + case '!==': + case '==': + case '===': + case typescript_1.SyntaxKind.EqualsEqualsEqualsToken: + case typescript_1.SyntaxKind.EqualsEqualsToken: + case typescript_1.SyntaxKind.ExclamationEqualsEqualsToken: + case typescript_1.SyntaxKind.ExclamationEqualsToken: + return OperatorPrecedence.Equality; + case '??': + case typescript_1.SyntaxKind.QuestionQuestionToken: + return OperatorPrecedence.Coalesce; + case '*': + case '/': + case '%': + case typescript_1.SyntaxKind.AsteriskToken: + case typescript_1.SyntaxKind.PercentToken: + case typescript_1.SyntaxKind.SlashToken: + return OperatorPrecedence.Multiplicative; + case '**': + case typescript_1.SyntaxKind.AsteriskAsteriskToken: + return OperatorPrecedence.Exponentiation; + case '&': + case typescript_1.SyntaxKind.AmpersandToken: + return OperatorPrecedence.BitwiseAND; + case '&&': + case typescript_1.SyntaxKind.AmpersandAmpersandToken: + return OperatorPrecedence.LogicalAND; + case '^': + case typescript_1.SyntaxKind.CaretToken: + return OperatorPrecedence.BitwiseXOR; + case '<': + case '<=': + case '>': + case '>=': + case 'in': + case 'instanceof': + case typescript_1.SyntaxKind.AsKeyword: + case typescript_1.SyntaxKind.GreaterThanEqualsToken: + case typescript_1.SyntaxKind.GreaterThanToken: + case typescript_1.SyntaxKind.InKeyword: + case typescript_1.SyntaxKind.InstanceOfKeyword: + case typescript_1.SyntaxKind.LessThanEqualsToken: + case typescript_1.SyntaxKind.LessThanToken: + // case 'as': -- we don't have a token for this + return OperatorPrecedence.Relational; + case '<<': + case '>>': + case '>>>': + case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanToken: + case typescript_1.SyntaxKind.GreaterThanGreaterThanToken: + case typescript_1.SyntaxKind.LessThanLessThanToken: + return OperatorPrecedence.Shift; + case '|': + case typescript_1.SyntaxKind.BarToken: + return OperatorPrecedence.BitwiseOR; + case '||': + case typescript_1.SyntaxKind.BarBarToken: + return OperatorPrecedence.LogicalOR; + } + // -1 is lower than all other precedences. Returning it will cause binary expression + // parsing to stop. + return -1; +} +//# sourceMappingURL=getOperatorPrecedence.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map new file mode 100644 index 00000000..199617cd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getOperatorPrecedence.js","sourceRoot":"","sources":["../../src/util/getOperatorPrecedence.ts"],"names":[],"mappings":";;;AAwMA,oEAgGC;AAMD,sDAyGC;AAED,kEAoFC;AA1eD,oDAA0D;AAC1D,2CAAwC;AAIxC,IAAY,kBA8LX;AA9LD,WAAY,kBAAkB;IAC5B,cAAc;IACd,2BAA2B;IAC3B,0C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AC;QACjC,KAAK,uBAAU,CAAC,SAAS,CAAC;QAC1B,KAAK,uBAAU,CAAC,iBAAiB,CAAC;QAClC,KAAK,uBAAU,CAAC,mBAAmB,CAAC;QACpC,KAAK,uBAAU,CAAC,aAAa;YAC3B,+CAA+C;YAC/C,OAAO,kBAAkB,CAAC,UAAU,CAAC;QAEvC,KAAK,IAAI,CAAC;QACV,KAAK,IAAI,CAAC;QACV,KAAK,KAAK,CAAC;QACX,KAAK,uBAAU,CAAC,sCAAsC,CAAC;QACvD,KAAK,uBAAU,CAAC,2BAA2B,CAAC;QAC5C,KAAK,uBAAU,CAAC,qBAAqB;YACnC,OAAO,kBAAkB,CAAC,KAAK,CAAC;QAElC,KAAK,GAAG,CAAC;QACT,KAAK,uBAAU,CAAC,QAAQ;YACtB,OAAO,kBAAkB,CAAC,SAAS,CAAC;QAEtC,KAAK,IAAI,CAAC;QACV,KAAK,uBAAU,CAAC,WAAW;YACzB,OAAO,kBAAkB,CAAC,SAAS,CAAC;IACxC,CAAC;IAED,qFAAqF;IACrF,mBAAmB;IACnB,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js new file mode 100644 index 00000000..1deb998a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getParentFunctionNode = getParentFunctionNode; +const utils_1 = require("@typescript-eslint/utils"); +function getParentFunctionNode(node) { + let current = node.parent; + while (current) { + if (current.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || + current.type === utils_1.AST_NODE_TYPES.FunctionDeclaration || + current.type === utils_1.AST_NODE_TYPES.FunctionExpression) { + return current; + } + current = current.parent; + } + // this shouldn't happen in correct code, but someone may attempt to parse bad code + // the parser won't error, so we shouldn't throw here + /* istanbul ignore next */ return null; +} +//# sourceMappingURL=getParentFunctionNode.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js.map new file mode 100644 index 00000000..54e18a7e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getParentFunctionNode.js","sourceRoot":"","sources":["../../src/util/getParentFunctionNode.ts"],"names":[],"mappings":";;AAIA,sDAuBC;AAzBD,oDAA0D;AAE1D,SAAgB,qBAAqB,CACnC,IAAmB;IAMnB,IAAI,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1B,OAAO,OAAO,EAAE,CAAC;QACf,IACE,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB;YACvD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;YACnD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAClD,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAC3B,CAAC;IAED,mFAAmF;IACnF,qDAAqD;IACrD,0BAA0B,CAAC,OAAO,IAAI,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js new file mode 100644 index 00000000..7c3b67b0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js @@ -0,0 +1,45 @@ +"use strict"; +// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L191-L230 +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getStaticStringValue = getStaticStringValue; +const utils_1 = require("@typescript-eslint/utils"); +const isNullLiteral_1 = require("./isNullLiteral"); +/** + * Returns the result of the string conversion applied to the evaluated value of the given expression node, + * if it can be determined statically. + * + * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only. + * In all other cases, this function returns `null`. + * @param node Expression node. + * @returns String value if it can be determined. Otherwise, `null`. + */ +function getStaticStringValue(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.Literal: + // eslint-disable-next-line eqeqeq -- intentional strict comparison for literal value + if (node.value === null) { + if ((0, isNullLiteral_1.isNullLiteral)(node)) { + return String(node.value); // "null" + } + if ('regex' in node) { + return `/${node.regex.pattern}/${node.regex.flags}`; + } + if ('bigint' in node) { + return node.bigint; + } + // Otherwise, this is an unknown literal. The function will return null. + } + else { + return String(node.value); + } + break; + case utils_1.AST_NODE_TYPES.TemplateLiteral: + if (node.expressions.length === 0 && node.quasis.length === 1) { + return node.quasis[0].value.cooked; + } + break; + // no default + } + return null; +} +//# sourceMappingURL=getStaticStringValue.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map new file mode 100644 index 00000000..70852cea --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getStaticStringValue.js","sourceRoot":"","sources":["../../src/util/getStaticStringValue.ts"],"names":[],"mappings":";AAAA,qIAAqI;;AAiBrI,oDAgCC;AA7CD,oDAA0D;AAE1D,mDAAgD;AAEhD;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAAC,IAAmB;IACtD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,OAAO;YACzB,qFAAqF;YACrF,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBACxB,IAAI,IAAA,6BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;gBACtC,CAAC;gBACD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACtD,CAAC;gBAED,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;oBACrB,OAAO,IAAI,CAAC,MAAM,CAAC;gBACrB,CAAC;gBAED,wEAAwE;YAC1E,CAAC;iBAAM,CAAC;gBACN,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;YACD,MAAM;QAER,KAAK,sBAAc,CAAC,eAAe;YACjC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YACrC,CAAC;YACD,MAAM;QAER,aAAa;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js new file mode 100644 index 00000000..7154fc0e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js @@ -0,0 +1,19 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getStringLength = getStringLength; +const graphemer_1 = __importDefault(require("graphemer")); +let splitter; +function isASCII(value) { + return /^[\u0020-\u007f]*$/u.test(value); +} +function getStringLength(value) { + if (isASCII(value)) { + return value.length; + } + splitter ??= new graphemer_1.default(); + return splitter.countGraphemes(value); +} +//# sourceMappingURL=getStringLength.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map new file mode 100644 index 00000000..9771cf3d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getStringLength.js","sourceRoot":"","sources":["../../src/util/getStringLength.ts"],"names":[],"mappings":";;;;;AAQA,0CAQC;AAhBD,0DAAkC;AAElC,IAAI,QAA+B,CAAC;AAEpC,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,eAAe,CAAC,KAAa;IAC3C,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,MAAM,CAAC;IACtB,CAAC;IAED,QAAQ,KAAK,IAAI,mBAAS,EAAE,CAAC;IAE7B,OAAO,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js new file mode 100644 index 00000000..48be26ef --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getTextWithParentheses = getTextWithParentheses; +const _1 = require("."); +function getTextWithParentheses(sourceCode, node) { + // Capture parentheses before and after the node + let beforeCount = 0; + let afterCount = 0; + if ((0, _1.isParenthesized)(node, sourceCode)) { + const bodyOpeningParen = (0, _1.nullThrows)(sourceCode.getTokenBefore(node, _1.isOpeningParenToken), _1.NullThrowsReasons.MissingToken('(', 'node')); + const bodyClosingParen = (0, _1.nullThrows)(sourceCode.getTokenAfter(node, _1.isClosingParenToken), _1.NullThrowsReasons.MissingToken(')', 'node')); + beforeCount = node.range[0] - bodyOpeningParen.range[0]; + afterCount = bodyClosingParen.range[1] - node.range[1]; + } + return sourceCode.getText(node, beforeCount, afterCount); +} +//# sourceMappingURL=getTextWithParentheses.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map new file mode 100644 index 00000000..9da346bc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getTextWithParentheses.js","sourceRoot":"","sources":["../../src/util/getTextWithParentheses.ts"],"names":[],"mappings":";;AAWA,wDAuBC;AA/BD,wBAMW;AAEX,SAAgB,sBAAsB,CACpC,UAAgC,EAChC,IAAmB;IAEnB,gDAAgD;IAChD,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,IAAI,IAAA,kBAAe,EAAC,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC;QACtC,MAAM,gBAAgB,GAAG,IAAA,aAAU,EACjC,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAmB,CAAC,EACpD,oBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAC5C,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,aAAU,EACjC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,sBAAmB,CAAC,EACnD,oBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAC5C,CAAC;QAEF,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACxD,UAAU,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js new file mode 100644 index 00000000..a132a598 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getThisExpression = getThisExpression; +const utils_1 = require("@typescript-eslint/utils"); +function getThisExpression(node) { + while (true) { + if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { + node = node.callee; + } + else if (node.type === utils_1.AST_NODE_TYPES.ThisExpression) { + return node; + } + else if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { + node = node.object; + } + else if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { + node = node.expression; + } + else { + break; + } + } + return; +} +//# sourceMappingURL=getThisExpression.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map new file mode 100644 index 00000000..b60de801 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getThisExpression.js","sourceRoot":"","sources":["../../src/util/getThisExpression.ts"],"names":[],"mappings":";;AAIA,8CAkBC;AApBD,oDAA0D;AAE1D,SAAgB,iBAAiB,CAC/B,IAAmB;IAEnB,OAAO,IAAI,EAAE,CAAC;QACZ,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE,CAAC;YAChD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;YACzD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAAE,CAAC;YACxD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO;AACT,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js new file mode 100644 index 00000000..d6d05430 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getWrappedCode = getWrappedCode; +function getWrappedCode(text, nodePrecedence, parentPrecedence) { + return nodePrecedence > parentPrecedence ? text : `(${text})`; +} +//# sourceMappingURL=getWrappedCode.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map new file mode 100644 index 00000000..958e55f0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getWrappedCode.js","sourceRoot":"","sources":["../../src/util/getWrappedCode.ts"],"names":[],"mappings":";;AAEA,wCAMC;AAND,SAAgB,cAAc,CAC5B,IAAY,EACZ,cAAkC,EAClC,gBAAoC;IAEpC,OAAO,cAAc,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC;AAChE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js new file mode 100644 index 00000000..e149da4f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getWrappingFixer = getWrappingFixer; +exports.getMovedNodeCode = getMovedNodeCode; +exports.isStrongPrecedenceNode = isStrongPrecedenceNode; +const utils_1 = require("@typescript-eslint/utils"); +/** + * Wraps node with some code. Adds parenthesis as necessary. + * @returns Fixer which adds the specified code and parens if necessary. + */ +function getWrappingFixer(params) { + const { node, innerNode = node, sourceCode, wrap } = params; + const innerNodes = Array.isArray(innerNode) ? innerNode : [innerNode]; + return (fixer) => { + const innerCodes = innerNodes.map(innerNode => { + let code = sourceCode.getText(innerNode); + /** + * Wrap our node in parens to prevent the following cases: + * - It has a weaker precedence than the code we are wrapping it in + * - It's gotten mistaken as block statement instead of object expression + */ + if (!isStrongPrecedenceNode(innerNode) || + isObjectExpressionInOneLineReturn(node, innerNode)) { + code = `(${code})`; + } + return code; + }); + // do the wrapping + let code = wrap(...innerCodes); + // check the outer expression's precedence + if (isWeakPrecedenceParent(node) && + // we wrapped the node in some expression which very likely has a different precedence than original wrapped node + // let's wrap the whole expression in parens just in case + !utils_1.ASTUtils.isParenthesized(node, sourceCode)) { + code = `(${code})`; + } + // check if we need to insert semicolon + if (/^[`([]/.test(code) && isMissingSemicolonBefore(node, sourceCode)) { + code = `;${code}`; + } + return fixer.replaceText(node, code); + }; +} +/** + * If the node to be moved and the destination node require parentheses, include parentheses in the node to be moved. + * @param sourceCode Source code of current file + * @param nodeToMove Nodes that need to be moved + * @param destinationNode Final destination node with nodeToMove + * @returns If parentheses are required, code for the nodeToMove node is returned with parentheses at both ends of the code. + */ +function getMovedNodeCode(params) { + const { destinationNode, nodeToMove: existingNode, sourceCode } = params; + const code = sourceCode.getText(existingNode); + if (isStrongPrecedenceNode(existingNode)) { + // Moved node never needs parens + return code; + } + if (!isWeakPrecedenceParent(destinationNode)) { + // Destination would never needs parens, regardless what node moves there + return code; + } + // Parens may be necessary + return `(${code})`; +} +/** + * Check if a node will always have the same precedence if it's parent changes. + */ +function isStrongPrecedenceNode(innerNode) { + return (innerNode.type === utils_1.AST_NODE_TYPES.Literal || + innerNode.type === utils_1.AST_NODE_TYPES.Identifier || + innerNode.type === utils_1.AST_NODE_TYPES.TSTypeReference || + innerNode.type === utils_1.AST_NODE_TYPES.TSTypeOperator || + innerNode.type === utils_1.AST_NODE_TYPES.ArrayExpression || + innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression || + innerNode.type === utils_1.AST_NODE_TYPES.MemberExpression || + innerNode.type === utils_1.AST_NODE_TYPES.CallExpression || + innerNode.type === utils_1.AST_NODE_TYPES.NewExpression || + innerNode.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression || + innerNode.type === utils_1.AST_NODE_TYPES.TSInstantiationExpression); +} +/** + * Check if a node's parent could have different precedence if the node changes. + */ +function isWeakPrecedenceParent(node) { + const parent = node.parent; + if (!parent) { + return false; + } + if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression || + parent.type === utils_1.AST_NODE_TYPES.UnaryExpression || + parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || + parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || + parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression || + parent.type === utils_1.AST_NODE_TYPES.AwaitExpression) { + return true; + } + if (parent.type === utils_1.AST_NODE_TYPES.MemberExpression && + parent.object === node) { + return true; + } + if ((parent.type === utils_1.AST_NODE_TYPES.CallExpression || + parent.type === utils_1.AST_NODE_TYPES.NewExpression) && + parent.callee === node) { + return true; + } + if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && + parent.tag === node) { + return true; + } + return false; +} +/** + * Returns true if a node is at the beginning of expression statement and the statement above doesn't end with semicolon. + * Doesn't check if the node begins with `(`, `[` or `` ` ``. + */ +function isMissingSemicolonBefore(node, sourceCode) { + for (;;) { + // https://github.com/typescript-eslint/typescript-eslint/issues/6225 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const parent = node.parent; + if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { + const block = parent.parent; + if (block.type === utils_1.AST_NODE_TYPES.Program || + block.type === utils_1.AST_NODE_TYPES.BlockStatement) { + // parent is an expression statement in a block + const statementIndex = block.body.indexOf(parent); + const previousStatement = block.body[statementIndex - 1]; + if (statementIndex > 0 && + utils_1.ESLintUtils.nullThrows(sourceCode.getLastToken(previousStatement), 'Mismatched semicolon and block').value !== ';') { + return true; + } + } + } + if (!isLeftHandSide(node)) { + return false; + } + node = parent; + } +} +/** + * Checks if a node is LHS of an operator. + */ +function isLeftHandSide(node) { + // https://github.com/typescript-eslint/typescript-eslint/issues/6225 + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const parent = node.parent; + // a++ + if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression) { + return true; + } + // a + b + if ((parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || + parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || + parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression) && + node === parent.left) { + return true; + } + // a ? b : c + if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && + node === parent.test) { + return true; + } + // a(b) + if (parent.type === utils_1.AST_NODE_TYPES.CallExpression && node === parent.callee) { + return true; + } + // a`b` + if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && + node === parent.tag) { + return true; + } + return false; +} +/** + * Checks if a node's parent is arrow function expression and a inner node is object expression + */ +function isObjectExpressionInOneLineReturn(node, innerNode) { + return (node.parent?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && + node.parent.body === node && + innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression); +} +//# sourceMappingURL=getWrappingFixer.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map new file mode 100644 index 00000000..c1cd12e0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getWrappingFixer.js","sourceRoot":"","sources":["../../src/util/getWrappingFixer.ts"],"names":[],"mappings":";;AAgCA,4CA6CC;AAQD,4CAmBC;AAKD,wDAcC;AAzHD,oDAIkC;AAsBlC;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAA2B;IAE3B,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC5D,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC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AwB;QACvD,IAAI,KAAK,MAAM,CAAC,GAAG,EACnB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,iCAAiC,CACxC,IAAmB,EACnB,SAAwB;IAExB,OAAO,CACL,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB;QAC5D,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI;QACzB,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CACnD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js new file mode 100644 index 00000000..860e8b60 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js @@ -0,0 +1,51 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NullThrowsReasons = exports.nullThrows = exports.isObjectNotArray = exports.getParserServices = exports.deepMerge = exports.applyDefault = void 0; +const utils_1 = require("@typescript-eslint/utils"); +__exportStar(require("./astUtils"), exports); +__exportStar(require("./collectUnusedVariables"), exports); +__exportStar(require("./createRule"), exports); +__exportStar(require("./getFixOrSuggest"), exports); +__exportStar(require("./getFunctionHeadLoc"), exports); +__exportStar(require("./getOperatorPrecedence"), exports); +__exportStar(require("./getStaticStringValue"), exports); +__exportStar(require("./getStringLength"), exports); +__exportStar(require("./getTextWithParentheses"), exports); +__exportStar(require("./getThisExpression"), exports); +__exportStar(require("./getWrappingFixer"), exports); +__exportStar(require("./isArrayMethodCallWithPredicate"), exports); +__exportStar(require("./isAssignee"), exports); +__exportStar(require("./isNodeEqual"), exports); +__exportStar(require("./isNullLiteral"), exports); +__exportStar(require("./isStartOfExpressionStatement"), exports); +__exportStar(require("./isUndefinedIdentifier"), exports); +__exportStar(require("./misc"), exports); +__exportStar(require("./needsPrecedingSemiColon"), exports); +__exportStar(require("./objectIterators"), exports); +__exportStar(require("./needsToBeAwaited"), exports); +__exportStar(require("./scopeUtils"), exports); +__exportStar(require("./types"), exports); +// this is done for convenience - saves migrating all of the old rules +__exportStar(require("@typescript-eslint/type-utils"), exports); +const { applyDefault, deepMerge, getParserServices, isObjectNotArray, nullThrows, NullThrowsReasons, } = utils_1.ESLintUtils; +exports.applyDefault = applyDefault; +exports.deepMerge = deepMerge; +exports.getParserServices = getParserServices; +exports.isObjectNotArray = isObjectNotArray; +exports.nullThrows = nullThrows; +exports.NullThrowsReasons = NullThrowsReasons; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map new file mode 100644 index 00000000..1cdac1f4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD,6CAA2B;AAC3B,2DAAyC;AACzC,+CAA6B;AAC7B,oDAAkC;AAClC,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,qDAAmC;AACnC,mEAAiD;AACjD,+CAA6B;AAC7B,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,yCAAuB;AACvB,4DAA0C;AAC1C,oDAAkC;AAClC,qDAAmC;AACnC,+CAA6B;AAC7B,0CAAwB;AAExB,sEAAsE;AACtE,gEAA8C;AAC9C,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,GAClB,GAAG,mBAAW,CAAC;AAMd,oCAAY;AACZ,8BAAS;AACT,8CAAiB;AAGjB,4CAAgB;AAChB,gCAAU;AACV,8CAAiB"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js new file mode 100644 index 00000000..c62756d9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js @@ -0,0 +1,55 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isArrayMethodCallWithPredicate = isArrayMethodCallWithPredicate; +const type_utils_1 = require("@typescript-eslint/type-utils"); +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const misc_1 = require("./misc"); +const ARRAY_PREDICATE_FUNCTIONS = new Set([ + 'every', + 'filter', + 'find', + 'findIndex', + 'findLast', + 'findLastIndex', + 'some', +]); +function isArrayMethodCallWithPredicate(context, services, node) { + if (node.callee.type !== utils_1.AST_NODE_TYPES.MemberExpression) { + return false; + } + const staticAccessValue = (0, misc_1.getStaticMemberAccessValue)(node.callee, context); + if (!ARRAY_PREDICATE_FUNCTIONS.has(staticAccessValue)) { + return false; + } + const checker = services.program.getTypeChecker(); + const type = (0, type_utils_1.getConstrainedTypeAtLocation)(services, node.callee.object); + return tsutils + .unionTypeParts(type) + .flatMap(part => tsutils.intersectionTypeParts(part)) + .some(t => checker.isArrayType(t) || checker.isTupleType(t)); +} +//# sourceMappingURL=isArrayMethodCallWithPredicate.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map new file mode 100644 index 00000000..3c3902c3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isArrayMethodCallWithPredicate.js","sourceRoot":"","sources":["../../src/util/isArrayMethodCallWithPredicate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,wEAqBC;AArCD,8DAA6E;AAC7E,oDAA0D;AAC1D,sDAAwC;AAExC,iCAAoD;AAEpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAU;IACjD,OAAO;IACP,QAAQ;IACR,MAAM;IACN,WAAW;IACX,UAAU;IACV,eAAe;IACf,MAAM;CACP,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,OAAuC,EACvC,QAA2C,EAC3C,IAA6B;IAE7B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,yCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;SACpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js new file mode 100644 index 00000000..f9483f9d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js @@ -0,0 +1,43 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isAssignee = isAssignee; +const utils_1 = require("@typescript-eslint/utils"); +function isAssignee(node) { + const parent = node.parent; + if (!parent) { + return false; + } + // a[i] = 1, a[i] += 1, etc. + if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && + parent.left === node) { + return true; + } + // delete a[i] + if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && + parent.operator === 'delete' && + parent.argument === node) { + return true; + } + // a[i]++, --a[i], etc. + if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && + parent.argument === node) { + return true; + } + // [a[i]] = [0] + if (parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) { + return true; + } + // [...a[i]] = [0] + if (parent.type === utils_1.AST_NODE_TYPES.RestElement) { + return true; + } + // ({ foo: a[i] }) = { foo: 0 } + if (parent.type === utils_1.AST_NODE_TYPES.Property && + parent.value === node && + parent.parent.type === utils_1.AST_NODE_TYPES.ObjectExpression && + isAssignee(parent.parent)) { + return true; + } + return false; +} +//# sourceMappingURL=isAssignee.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map new file mode 100644 index 00000000..ff8fe9a9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isAssignee.js","sourceRoot":"","sources":["../../src/util/isAssignee.ts"],"names":[],"mappings":";;AAIA,gCAoDC;AAtDD,oDAA0D;AAE1D,SAAgB,UAAU,CAAC,IAAmB;IAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC3B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,4BAA4B;IAC5B,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,oBAAoB;QACnD,MAAM,CAAC,IAAI,KAAK,IAAI,EACpB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc;IACd,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;QAC9C,MAAM,CAAC,QAAQ,KAAK,QAAQ;QAC5B,MAAM,CAAC,QAAQ,KAAK,IAAI,EACxB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uBAAuB;IACvB,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC/C,MAAM,CAAC,QAAQ,KAAK,IAAI,EACxB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,eAAe;IACf,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kBAAkB;IAClB,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,+BAA+B;IAC/B,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,QAAQ;QACvC,MAAM,CAAC,KAAK,KAAK,IAAI;QACrB,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QACtD,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EACzB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js new file mode 100644 index 00000000..8fc4711d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isNodeEqual = isNodeEqual; +const utils_1 = require("@typescript-eslint/utils"); +function isNodeEqual(a, b) { + if (a.type !== b.type) { + return false; + } + if (a.type === utils_1.AST_NODE_TYPES.ThisExpression && + b.type === utils_1.AST_NODE_TYPES.ThisExpression) { + return true; + } + if (a.type === utils_1.AST_NODE_TYPES.Literal && b.type === utils_1.AST_NODE_TYPES.Literal) { + return a.value === b.value; + } + if (a.type === utils_1.AST_NODE_TYPES.Identifier && + b.type === utils_1.AST_NODE_TYPES.Identifier) { + return a.name === b.name; + } + if (a.type === utils_1.AST_NODE_TYPES.MemberExpression && + b.type === utils_1.AST_NODE_TYPES.MemberExpression) { + return (isNodeEqual(a.property, b.property) && isNodeEqual(a.object, b.object)); + } + return false; +} +//# sourceMappingURL=isNodeEqual.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map new file mode 100644 index 00000000..5f671c21 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isNodeEqual.js","sourceRoot":"","sources":["../../src/util/isNodeEqual.ts"],"names":[],"mappings":";;AAIA,kCA4BC;AA9BD,oDAA0D;AAE1D,SAAgB,WAAW,CAAC,CAAgB,EAAE,CAAgB;IAC5D,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QACxC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EACxC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAC3E,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC;IAC7B,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACpC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EACpC,CAAC;QACD,OAAO,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC;IAC3B,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1C,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC1C,CAAC;QACD,OAAO,CACL,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CACvE,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js new file mode 100644 index 00000000..bfac97cb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isNullLiteral = isNullLiteral; +const utils_1 = require("@typescript-eslint/utils"); +function isNullLiteral(i) { + return i.type === utils_1.AST_NODE_TYPES.Literal && i.value == null; +} +//# sourceMappingURL=isNullLiteral.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map new file mode 100644 index 00000000..7c883ecd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isNullLiteral.js","sourceRoot":"","sources":["../../src/util/isNullLiteral.ts"],"names":[],"mappings":";;AAIA,sCAEC;AAJD,oDAA0D;AAE1D,SAAgB,aAAa,CAAC,CAAgB;IAC5C,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC;AAC9D,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js new file mode 100644 index 00000000..8c3d7b41 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isStartOfExpressionStatement = isStartOfExpressionStatement; +const utils_1 = require("@typescript-eslint/utils"); +// The following is copied from `eslint`'s source code. +// https://github.com/eslint/eslint/blob/3a4eaf921543b1cd5d1df4ea9dec02fab396af2a/lib/rules/utils/ast-utils.js#L1026-L1041 +// Could be export { isStartOfExpressionStatement } from 'eslint/lib/rules/utils/ast-utils' +/** + * Tests if a node appears at the beginning of an ancestor ExpressionStatement node. + * @param node The node to check. + * @returns Whether the node appears at the beginning of an ancestor ExpressionStatement node. + */ +function isStartOfExpressionStatement(node) { + const start = node.range[0]; + let ancestor = node; + while ((ancestor = ancestor.parent) && ancestor.range[0] === start) { + if (ancestor.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { + return true; + } + } + return false; +} +//# sourceMappingURL=isStartOfExpressionStatement.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js.map new file mode 100644 index 00000000..129facad --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isStartOfExpressionStatement.js","sourceRoot":"","sources":["../../src/util/isStartOfExpressionStatement.ts"],"names":[],"mappings":";;AAYA,oEAUC;AApBD,oDAA0D;AAE1D,uDAAuD;AACvD,0HAA0H;AAC1H,2FAA2F;AAC3F;;;;GAIG;AACH,SAAgB,4BAA4B,CAAC,IAAmB;IAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,QAAQ,GAA8B,IAAI,CAAC;IAE/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;QACnE,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,EAAE,CAAC;YACzD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js new file mode 100644 index 00000000..6cc63dd7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isTypeImport = isTypeImport; +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const utils_1 = require("@typescript-eslint/utils"); +/** + * Determine whether a variable definition is a type import. e.g.: + * + * ```ts + * import type { Foo } from 'foo'; + * import { type Bar } from 'bar'; + * ``` + * + * @param definition - The variable definition to check. + */ +function isTypeImport(definition) { + return (definition?.type === scope_manager_1.DefinitionType.ImportBinding && + (definition.parent.importKind === 'type' || + (definition.node.type === utils_1.AST_NODE_TYPES.ImportSpecifier && + definition.node.importKind === 'type'))); +} +//# sourceMappingURL=isTypeImport.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map new file mode 100644 index 00000000..ef625d19 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isTypeImport.js","sourceRoot":"","sources":["../../src/util/isTypeImport.ts"],"names":[],"mappings":";;AAkBA,oCASC;AAtBD,oEAAkE;AAClE,oDAA0D;AAE1D;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,UAAuB;IAEvB,OAAO,CACL,UAAU,EAAE,IAAI,KAAK,8BAAc,CAAC,aAAa;QACjD,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,KAAK,MAAM;YACtC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBACtD,UAAU,CAAC,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC,CAAC,CAC5C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js new file mode 100644 index 00000000..0bbd3186 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isUndefinedIdentifier = isUndefinedIdentifier; +const utils_1 = require("@typescript-eslint/utils"); +function isUndefinedIdentifier(i) { + return i.type === utils_1.AST_NODE_TYPES.Identifier && i.name === 'undefined'; +} +//# sourceMappingURL=isUndefinedIdentifier.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map new file mode 100644 index 00000000..49a8455e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isUndefinedIdentifier.js","sourceRoot":"","sources":["../../src/util/isUndefinedIdentifier.ts"],"names":[],"mappings":";;AAIA,sDAEC;AAJD,oDAA0D;AAE1D,SAAgB,qBAAqB,CAAC,CAAgB;IACpD,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js new file mode 100644 index 00000000..aae9eb5a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js @@ -0,0 +1,263 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MemberNameType = exports.isStaticMemberAccessOfValue = void 0; +exports.arrayGroupByToMap = arrayGroupByToMap; +exports.arraysAreEqual = arraysAreEqual; +exports.findFirstResult = findFirstResult; +exports.findLastIndex = findLastIndex; +exports.formatWordList = formatWordList; +exports.getEnumNames = getEnumNames; +exports.getNameFromIndexSignature = getNameFromIndexSignature; +exports.getNameFromMember = getNameFromMember; +exports.getStaticMemberAccessValue = getStaticMemberAccessValue; +exports.isDefinitionFile = isDefinitionFile; +exports.isParenlessArrowFunction = isParenlessArrowFunction; +exports.isRestParameterDeclaration = isRestParameterDeclaration; +exports.typeNodeRequiresParentheses = typeNodeRequiresParentheses; +exports.upperCaseFirst = upperCaseFirst; +const type_utils_1 = require("@typescript-eslint/type-utils"); +const utils_1 = require("@typescript-eslint/utils"); +const ts = __importStar(require("typescript")); +const astUtils_1 = require("./astUtils"); +const DEFINITION_EXTENSIONS = [ + ts.Extension.Dts, + ts.Extension.Dcts, + ts.Extension.Dmts, +]; +/** + * Check if the context file name is *.d.ts or *.d.tsx + */ +function isDefinitionFile(fileName) { + const lowerFileName = fileName.toLowerCase(); + for (const definitionExt of DEFINITION_EXTENSIONS) { + if (lowerFileName.endsWith(definitionExt)) { + return true; + } + } + return false; +} +/** + * Upper cases the first character or the string + */ +function upperCaseFirst(str) { + return str[0].toUpperCase() + str.slice(1); +} +function arrayGroupByToMap(array, getKey) { + const groups = new Map(); + for (const item of array) { + const key = getKey(item); + const existing = groups.get(key); + if (existing) { + existing.push(item); + } + else { + groups.set(key, [item]); + } + } + return groups; +} +function arraysAreEqual(a, b, eq) { + return (a === b || + (a !== undefined && + b !== undefined && + a.length === b.length && + a.every((x, idx) => eq(x, b[idx])))); +} +/** Returns the first non-`undefined` result. */ +function findFirstResult(inputs, getResult) { + for (const element of inputs) { + const result = getResult(element); + if (result !== undefined) { + return result; + } + } + return undefined; +} +/** + * Gets a string representation of the name of the index signature. + */ +function getNameFromIndexSignature(node) { + const propName = node.parameters.find((parameter) => parameter.type === utils_1.AST_NODE_TYPES.Identifier); + return propName ? propName.name : '(index signature)'; +} +var MemberNameType; +(function (MemberNameType) { + MemberNameType[MemberNameType["Private"] = 1] = "Private"; + MemberNameType[MemberNameType["Quoted"] = 2] = "Quoted"; + MemberNameType[MemberNameType["Normal"] = 3] = "Normal"; + MemberNameType[MemberNameType["Expression"] = 4] = "Expression"; +})(MemberNameType || (exports.MemberNameType = MemberNameType = {})); +/** + * Gets a string name representation of the name of the given MethodDefinition + * or PropertyDefinition node, with handling for computed property names. + */ +function getNameFromMember(member, sourceCode) { + if (member.key.type === utils_1.AST_NODE_TYPES.Identifier) { + return { + name: member.key.name, + type: MemberNameType.Normal, + }; + } + if (member.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { + return { + name: `#${member.key.name}`, + type: MemberNameType.Private, + }; + } + if (member.key.type === utils_1.AST_NODE_TYPES.Literal) { + const name = `${member.key.value}`; + if ((0, type_utils_1.requiresQuoting)(name)) { + return { + name: `"${name}"`, + type: MemberNameType.Quoted, + }; + } + return { + name, + type: MemberNameType.Normal, + }; + } + return { + name: sourceCode.text.slice(...member.key.range), + type: MemberNameType.Expression, + }; +} +function getEnumNames(myEnum) { + return Object.keys(myEnum).filter(x => isNaN(Number(x))); +} +/** + * Given an array of words, returns an English-friendly concatenation, separated with commas, with + * the `and` clause inserted before the last item. + * + * Example: ['foo', 'bar', 'baz' ] returns the string "foo, bar, and baz". + */ +function formatWordList(words) { + if (!words.length) { + return ''; + } + if (words.length === 1) { + return words[0]; + } + return [words.slice(0, -1).join(', '), words.slice(-1)[0]].join(' and '); +} +/** + * Iterates the array in reverse and returns the index of the first element it + * finds which passes the predicate function. + * + * @returns Returns the index of the element if it finds it or -1 otherwise. + */ +function findLastIndex(members, predicate) { + let idx = members.length - 1; + while (idx >= 0) { + const valid = predicate(members[idx]); + if (valid) { + return idx; + } + idx--; + } + return -1; +} +function typeNodeRequiresParentheses(node, text) { + return (node.type === utils_1.AST_NODE_TYPES.TSFunctionType || + node.type === utils_1.AST_NODE_TYPES.TSConstructorType || + node.type === utils_1.AST_NODE_TYPES.TSConditionalType || + (node.type === utils_1.AST_NODE_TYPES.TSUnionType && text.startsWith('|')) || + (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && text.startsWith('&'))); +} +function isRestParameterDeclaration(decl) { + return ts.isParameter(decl) && decl.dotDotDotToken != null; +} +function isParenlessArrowFunction(node, sourceCode) { + return (node.params.length === 1 && !(0, astUtils_1.isParenthesized)(node.params[0], sourceCode)); +} +/** + * Gets a member being accessed or declared if its value can be determined statically, and + * resolves it to the string or symbol value that will be used as the actual member + * access key at runtime. Otherwise, returns `undefined`. + * + * ```ts + * x.member // returns 'member' + * ^^^^^^^^ + * + * x?.member // returns 'member' (optional chaining is treated the same) + * ^^^^^^^^^ + * + * x['value'] // returns 'value' + * ^^^^^^^^^^ + * + * x[Math.random()] // returns undefined (not a static value) + * ^^^^^^^^^^^^^^^^ + * + * arr[0] // returns '0' (NOT 0) + * ^^^^^^ + * + * arr[0n] // returns '0' (NOT 0n) + * ^^^^^^^ + * + * const s = Symbol.for('symbolName') + * x[s] // returns `Symbol.for('symbolName')` (since it's a static/global symbol) + * ^^^^ + * + * const us = Symbol('symbolName') + * x[us] // returns undefined (since it's a unique symbol, so not statically analyzable) + * ^^^^^ + * + * var object = { + * 1234: '4567', // returns '1234' (NOT 1234) + * ^^^^^^^^^^^^ + * method() { } // returns 'method' + * ^^^^^^^^^^^^ + * } + * + * class WithMembers { + * foo: string // returns 'foo' + * ^^^^^^^^^^^ + * } + * ``` + */ +function getStaticMemberAccessValue(node, { sourceCode }) { + const key = node.type === utils_1.AST_NODE_TYPES.MemberExpression ? node.property : node.key; + const { type } = key; + if (!node.computed && + (type === utils_1.AST_NODE_TYPES.Identifier || + type === utils_1.AST_NODE_TYPES.PrivateIdentifier)) { + return key.name; + } + const result = (0, astUtils_1.getStaticValue)(key, sourceCode.getScope(node)); + if (!result) { + return undefined; + } + const { value } = result; + return typeof value === 'symbol' ? value : String(value); +} +/** + * Answers whether the member expression looks like + * `x.value`, `x['value']`, + * or even `const v = 'value'; x[v]` (or optional variants thereof). + */ +const isStaticMemberAccessOfValue = (memberExpression, context, ...values) => values.includes(getStaticMemberAccessValue(memberExpression, context)); +exports.isStaticMemberAccessOfValue = isStaticMemberAccessOfValue; +//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map new file mode 100644 index 00000000..775c17c8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqUE,8CAAiB;AACjB,wCAAc;AAGd,0CAAe;AACf,sCAAa;AACb,wCAAc;AACd,oCAAY;AACZ,8DAAyB;AACzB,8CAAiB;AACjB,gEAA0B;AAC1B,4CAAgB;AAChB,4DAAwB;AACxB,gEAA0B;AAI1B,kEAA2B;AAC3B,wCAAc;AAjVhB,8DAAgE;AAChE,oDAA0D;AAC1D,+CAAiC;AAEjC,yCAA6D;AAE7D,MAAM,qBAAqB,GAAG;IAC5B,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,IAAI;IACjB,EAAE,CAAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX;;GAEG;AACH,SAAS,gBAAgB,CAA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,SAAS,0BAA0B,CACjC,IAAiB,EACjB,EAAE,UAAU,EAAkC;IAE9C,MAAM,GAAG,GACP,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;IAC3E,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;IACrB,IACE,CAAC,IAAI,CAAC,QAAQ;QACd,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;YACjC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAC5C,CAAC;QACD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,IAAA,yBAAc,EAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACzB,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,2BAA2B,GAAG,CAClC,gBAA6B,EAC7B,OAAuC,EACvC,GAAG,MAA2B,EACrB,EAAE,CACV,MAA0C,CAAC,QAAQ,CAClD,0BAA0B,CAAC,gBAAgB,EAAE,OAAO,CAAC,CACtD,CAAC;AAiBF,kEAA2B"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js new file mode 100644 index 00000000..4fb50f99 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js @@ -0,0 +1,98 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.needsPrecedingSemicolon = needsPrecedingSemicolon; +const utils_1 = require("@typescript-eslint/utils"); +const ast_utils_1 = require("@typescript-eslint/utils/ast-utils"); +// The following is adapted from `eslint`'s source code. +// https://github.com/eslint/eslint/blob/3a4eaf921543b1cd5d1df4ea9dec02fab396af2a/lib/rules/utils/ast-utils.js#L1043-L1132 +// Could be export { isStartOfExpressionStatement } from 'eslint/lib/rules/utils/ast-utils' +const BREAK_OR_CONTINUE = new Set([ + utils_1.AST_NODE_TYPES.BreakStatement, + utils_1.AST_NODE_TYPES.ContinueStatement, +]); +// Declaration types that must contain a string Literal node at the end. +const DECLARATIONS = new Set([ + utils_1.AST_NODE_TYPES.ExportAllDeclaration, + utils_1.AST_NODE_TYPES.ExportNamedDeclaration, + utils_1.AST_NODE_TYPES.ImportDeclaration, +]); +const IDENTIFIER_OR_KEYWORD = new Set([ + utils_1.AST_NODE_TYPES.Identifier, + utils_1.AST_TOKEN_TYPES.Keyword, +]); +// Keywords that can immediately precede an ExpressionStatement node, mapped to the their node types. +const NODE_TYPES_BY_KEYWORD = { + __proto__: null, + break: utils_1.AST_NODE_TYPES.BreakStatement, + continue: utils_1.AST_NODE_TYPES.ContinueStatement, + debugger: utils_1.AST_NODE_TYPES.DebuggerStatement, + do: utils_1.AST_NODE_TYPES.DoWhileStatement, + else: utils_1.AST_NODE_TYPES.IfStatement, + return: utils_1.AST_NODE_TYPES.ReturnStatement, + yield: utils_1.AST_NODE_TYPES.YieldExpression, +}; +/* + * Before an opening parenthesis, postfix `++` and `--` always trigger ASI; + * the tokens `:`, `;`, `{` and `=>` don't expect a semicolon, as that would count as an empty statement. + */ +const PUNCTUATORS = new Set(['--', ';', ':', '{', '++', '=>']); +/* + * Statements that can contain an `ExpressionStatement` after a closing parenthesis. + * DoWhileStatement is an exception in that it always triggers ASI after the closing parenthesis. + */ +const STATEMENTS = new Set([ + utils_1.AST_NODE_TYPES.DoWhileStatement, + utils_1.AST_NODE_TYPES.ForInStatement, + utils_1.AST_NODE_TYPES.ForOfStatement, + utils_1.AST_NODE_TYPES.ForStatement, + utils_1.AST_NODE_TYPES.IfStatement, + utils_1.AST_NODE_TYPES.WhileStatement, + utils_1.AST_NODE_TYPES.WithStatement, +]); +/** + * Determines whether an opening parenthesis `(`, bracket `[` or backtick ``` ` ``` needs to be preceded by a semicolon. + * This opening parenthesis or bracket should be at the start of an `ExpressionStatement`, a `MethodDefinition` or at + * the start of the body of an `ArrowFunctionExpression`. + * @param sourceCode The source code object. + * @param node A node at the position where an opening parenthesis or bracket will be inserted. + * @returns Whether a semicolon is required before the opening parenthesis or bracket. + */ +function needsPrecedingSemicolon(sourceCode, node) { + const prevToken = sourceCode.getTokenBefore(node); + if (!prevToken || + (prevToken.type === utils_1.AST_TOKEN_TYPES.Punctuator && + PUNCTUATORS.has(prevToken.value))) { + return false; + } + const prevNode = sourceCode.getNodeByRangeIndex(prevToken.range[0]); + if (!prevNode) { + return false; + } + if ((0, ast_utils_1.isClosingParenToken)(prevToken)) { + return !STATEMENTS.has(prevNode.type); + } + if ((0, ast_utils_1.isClosingBraceToken)(prevToken)) { + return ((prevNode.type === utils_1.AST_NODE_TYPES.BlockStatement && + prevNode.parent.type === utils_1.AST_NODE_TYPES.FunctionExpression && + prevNode.parent.parent.type !== utils_1.AST_NODE_TYPES.MethodDefinition) || + (prevNode.type === utils_1.AST_NODE_TYPES.ClassBody && + prevNode.parent.type === utils_1.AST_NODE_TYPES.ClassExpression) || + prevNode.type === utils_1.AST_NODE_TYPES.ObjectExpression); + } + if (!prevNode.parent) { + return false; + } + if (IDENTIFIER_OR_KEYWORD.has(prevToken.type)) { + if (BREAK_OR_CONTINUE.has(prevNode.parent.type)) { + return false; + } + const keyword = prevToken.value; + const nodeType = NODE_TYPES_BY_KEYWORD[keyword]; + return prevNode.type !== nodeType; + } + if (prevToken.type === utils_1.AST_TOKEN_TYPES.String) { + return !DECLARATIONS.has(prevNode.parent.type); + } + return true; +} +//# sourceMappingURL=needsPrecedingSemiColon.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js.map new file mode 100644 index 00000000..6cbaf969 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js.map @@ -0,0 +1 @@ +{"version":3,"file":"needsPrecedingSemiColon.js","sourceRoot":"","sources":["../../src/util/needsPrecedingSemiColon.ts"],"names":[],"mappings":";;AAsEA,0DAuDC;AA1HD,oDAA2E;AAC3E,kEAG4C;AAE5C,wDAAwD;AACxD,0HAA0H;AAC1H,2FAA2F;AAE3F,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,iBAAiB;CACjC,CAAC,CAAC;AAEH,wEAAwE;AACxE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,sBAAc,CAAC,oBAAoB;IACnC,sBAAc,CAAC,sBAAsB;IACrC,sBAAc,CAAC,iBAAiB;CACjC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,sBAAc,CAAC,UAAU;IACzB,uBAAe,CAAC,OAAO;CACxB,CAAC,CAAC;AAEH,qGAAqG;AACrG,MAAM,qBAAqB,GAAmD;IAC5E,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,sBAAc,CAAC,cAAc;IACpC,QAAQ,EAAE,sBAAc,CAAC,iBAAiB;IAC1C,QAAQ,EAAE,sBAAc,CAAC,iBAAiB;IAC1C,EAAE,EAAE,sBAAc,CAAC,gBAAgB;IACnC,IAAI,EAAE,sBAAc,CAAC,WAAW;IAChC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,KAAK,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AI,KAAK,sBAAc,CAAC,kBAAkB;YAC1D,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAAC;YAClE,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,SAAS;gBACzC,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,CAAC;YAC1D,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAClD,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,qBAAqB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,IAAI,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;QAChC,MAAM,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAEhD,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC;IACpC,CAAC;IAED,IAAI,SAAS,CAAC,IAAI,KAAK,uBAAe,CAAC,MAAM,EAAE,CAAC;QAC9C,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js new file mode 100644 index 00000000..2818bd78 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js @@ -0,0 +1,57 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Awaitable = void 0; +exports.needsToBeAwaited = needsToBeAwaited; +const type_utils_1 = require("@typescript-eslint/type-utils"); +const tsutils = __importStar(require("ts-api-utils")); +var Awaitable; +(function (Awaitable) { + Awaitable[Awaitable["Always"] = 0] = "Always"; + Awaitable[Awaitable["Never"] = 1] = "Never"; + Awaitable[Awaitable["May"] = 2] = "May"; +})(Awaitable || (exports.Awaitable = Awaitable = {})); +function needsToBeAwaited(checker, node, type) { + // can't use `getConstrainedTypeAtLocation` directly since it's bugged for + // unconstrained generics. + const constrainedType = !tsutils.isTypeParameter(type) + ? type + : checker.getBaseConstraintOfType(type); + // unconstrained generic types should be treated as unknown + if (constrainedType == null) { + return Awaitable.May; + } + // `any` and `unknown` types may need to be awaited + if ((0, type_utils_1.isTypeAnyType)(constrainedType) || (0, type_utils_1.isTypeUnknownType)(constrainedType)) { + return Awaitable.May; + } + // 'thenable' values should always be be awaited + if (tsutils.isThenableType(checker, node, constrainedType)) { + return Awaitable.Always; + } + // anything else should not be awaited + return Awaitable.Never; +} +//# sourceMappingURL=needsToBeAwaited.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map new file mode 100644 index 00000000..35d77944 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js.map @@ -0,0 +1 @@ +{"version":3,"file":"needsToBeAwaited.js","sourceRoot":"","sources":["../../src/util/needsToBeAwaited.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,4CA4BC;AAxCD,8DAGuC;AACvC,sDAAwC;AAExC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,2CAAK,CAAA;IACL,uCAAG,CAAA;AACL,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,SAAgB,gBAAgB,CAC9B,OAAuB,EACvB,IAAa,EACb,IAAa;IAEb,0EAA0E;IAC1E,0BAA0B;IAC1B,MAAM,eAAe,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC;QACpD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C,2DAA2D;IAC3D,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,mDAAmD;IACnD,IAAI,IAAA,0BAAa,EAAC,eAAe,CAAC,IAAI,IAAA,8BAAiB,EAAC,eAAe,CAAC,EAAE,CAAC;QACzE,OAAO,SAAS,CAAC,GAAG,CAAC;IACvB,CAAC;IAED,gDAAgD;IAChD,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,sCAAsC;IACtC,OAAO,SAAS,CAAC,KAAK,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js new file mode 100644 index 00000000..d10f56f9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.objectForEachKey = objectForEachKey; +exports.objectMapKey = objectMapKey; +exports.objectReduceKey = objectReduceKey; +function objectForEachKey(obj, callback) { + const keys = Object.keys(obj); + for (const key of keys) { + callback(key); + } +} +function objectMapKey(obj, callback) { + const values = []; + objectForEachKey(obj, key => { + values.push(callback(key)); + }); + return values; +} +function objectReduceKey(obj, callback, initial) { + let accumulator = initial; + objectForEachKey(obj, key => { + accumulator = callback(accumulator, key); + }); + return accumulator; +} +//# sourceMappingURL=objectIterators.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map new file mode 100644 index 00000000..3311f8e8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map @@ -0,0 +1 @@ +{"version":3,"file":"objectIterators.js","sourceRoot":"","sources":["../../src/util/objectIterators.ts"],"names":[],"mappings":";;AAiCS,4CAAgB;AAAE,oCAAY;AAAE,0CAAe;AAjCxD,SAAS,gBAAgB,CACvB,GAAM,EACN,QAAgC;IAEhC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,QAAQ,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CACnB,GAAM,EACN,QAAkC;IAElC,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,eAAe,CACtB,GAAM,EACN,QAAyD,EACzD,OAAoB;IAEpB,IAAI,WAAW,GAAG,OAAO,CAAC;IAC1B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,WAAW,GAAG,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js new file mode 100644 index 00000000..3f126be5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.rangeToLoc = rangeToLoc; +function rangeToLoc(sourceCode, range) { + return { + end: sourceCode.getLocFromIndex(range[1]), + start: sourceCode.getLocFromIndex(range[0]), + }; +} +//# sourceMappingURL=rangeToLoc.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js.map new file mode 100644 index 00000000..49318de4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"rangeToLoc.js","sourceRoot":"","sources":["../../src/util/rangeToLoc.ts"],"names":[],"mappings":";;AAEA,gCAQC;AARD,SAAgB,UAAU,CACxB,UAA+B,EAC/B,KAAyB;IAEzB,OAAO;QACL,GAAG,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC5C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js new file mode 100644 index 00000000..0ae36860 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.referenceContainsTypeQuery = referenceContainsTypeQuery; +const utils_1 = require("@typescript-eslint/utils"); +/** + * Recursively checks whether a given reference has a type query declaration among its parents + */ +function referenceContainsTypeQuery(node) { + switch (node.type) { + case utils_1.AST_NODE_TYPES.TSTypeQuery: + return true; + case utils_1.AST_NODE_TYPES.TSQualifiedName: + case utils_1.AST_NODE_TYPES.Identifier: + return referenceContainsTypeQuery(node.parent); + default: + // if we find a different node, there's no chance that we're in a TSTypeQuery + return false; + } +} +//# sourceMappingURL=referenceContainsTypeQuery.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map new file mode 100644 index 00000000..508b6eed --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referenceContainsTypeQuery.js","sourceRoot":"","sources":["../../src/util/referenceContainsTypeQuery.ts"],"names":[],"mappings":";;AAOA,gEAaC;AAlBD,oDAA0D;AAE1D;;GAEG;AACH,SAAgB,0BAA0B,CAAC,IAAmB;IAC5D,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,WAAW;YAC7B,OAAO,IAAI,CAAC;QAEd,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,UAAU;YAC5B,OAAO,0BAA0B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEjD;YACE,6EAA6E;YAC7E,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js new file mode 100644 index 00000000..18ff6c1d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isReferenceToGlobalFunction = isReferenceToGlobalFunction; +function isReferenceToGlobalFunction(calleeName, node, sourceCode) { + const ref = sourceCode + .getScope(node) + .references.find(ref => ref.identifier.name === calleeName); + // ensure it's the "global" version + return !ref?.resolved?.defs.length; +} +//# sourceMappingURL=scopeUtils.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map new file mode 100644 index 00000000..19b5942d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../src/util/scopeUtils.ts"],"names":[],"mappings":";;AAGA,kEAWC;AAXD,SAAgB,2BAA2B,CACzC,UAAkB,EAClB,IAAmB,EACnB,UAAsB;IAEtB,MAAM,GAAG,GAAG,UAAU;SACnB,QAAQ,CAAC,IAAI,CAAC;SACd,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IAE9D,mCAAmC;IACnC,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map new file mode 100644 index 00000000..e7579840 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/util/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md new file mode 100644 index 00000000..75c5723d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md @@ -0,0 +1,57 @@ +--- +title: Overview +sidebar_label: Overview +pagination_next: null +pagination_prev: null +slug: / +--- + +`@typescript-eslint/eslint-plugin` includes over 100 rules that detect best practice violations, bugs, and/or stylistic issues specifically for TypeScript code. All of our rules are listed below. + +:::tip +Instead of enabling rules one by one, we recommend using one of [our pre-defined configs](/users/configs) to enable a large set of recommended rules. +::: + +## Rules + +The rules are listed in alphabetical order. You can optionally filter them based on these categories: + +import RulesTable from "@site/src/components/RulesTable"; + + + +## Filtering + +### Config Group (⚙️) + +"Config Group" refers to the [pre-defined config](/users/configs) that includes the rule. Extending from a configuration preset allow for enabling a large set of recommended rules all at once. + +### Metadata + +- `🔧 fixable` refers to whether the rule contains an [ESLint `--fix` auto-fixer](https://eslint.org/docs/latest/use/command-line-interface#--fix). +- `💡 has suggestions` refers to whether the rule contains an ESLint suggestion fixer. + - Sometimes, it is not safe to automatically fix the code with an auto-fixer. But in these cases, we often have a good guess of what the correct fix should be, and we can provide it as a suggestion to the developer. +- `💭 requires type information` refers to whether the rule requires [typed linting](/getting-started/typed-linting). +- `🧱 extension rule` means that the rule is an extension of an [core ESLint rule](https://eslint.org/docs/latest/rules) (see [Extension Rules](#extension-rules)). +- `💀 deprecated rule` means that the rule should no longer be used and will be removed from the plugin in a future version. + +## Extension Rules + +Some core ESLint rules do not support TypeScript syntax: either they crash, ignore the syntax, or falsely report against it. +In these cases, we create what we call an "extension rule": a rule within our plugin that has the same functionality, but also supports TypeScript. + +Extension rules generally completely replace the base rule from ESLint core. +If the base rule is enabled in a config you extend from, you'll need to disable the base rule: + +```js +module.exports = { + extends: ['eslint:recommended'], + rules: { + // Note: you must disable the base rule as it can report incorrect errors + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + }, +}; +``` + +[Search for `🧱 extension rule`s](?=extension#rules) in this page to see all extension rules. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md new file mode 100644 index 00000000..49947c33 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md @@ -0,0 +1,36 @@ +--- +description: '' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/RULE_NAME_REPLACEME** for documentation. + +## Examples + +To fill out: tell us more about this rule. + + + + +```ts +// To fill out: incorrect code +``` + + + + +```ts +// To fill out: correct code +``` + + + + +## When Not To Use It + +To fill out: why wouldn't you want to use this rule? +For example if this rule requires a feature released in a certain TS version. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx new file mode 100644 index 00000000..60f62b2f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx @@ -0,0 +1,105 @@ +--- +description: 'Require that function overload signatures be consecutive.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/adjacent-overload-signatures** for documentation. + +Function overload signatures represent multiple ways a function can be called, potentially with different return types. +It's typical for an interface or type alias describing a function to place all overload signatures next to each other. +If Signatures placed elsewhere in the type are easier to be missed by future developers reading the code. + +## Examples + + + + +```ts +declare namespace Foo { + export function foo(s: string): void; + export function foo(n: number): void; + export function bar(): void; + export function foo(sn: string | number): void; +} + +type Foo = { + foo(s: string): void; + foo(n: number): void; + bar(): void; + foo(sn: string | number): void; +}; + +interface Foo { + foo(s: string): void; + foo(n: number): void; + bar(): void; + foo(sn: string | number): void; +} + +class Foo { + foo(s: string): void; + foo(n: number): void; + bar(): void {} + foo(sn: string | number): void {} +} + +export function foo(s: string): void; +export function foo(n: number): void; +export function bar(): void; +export function foo(sn: string | number): void; +``` + + + + +```ts +declare namespace Foo { + export function foo(s: string): void; + export function foo(n: number): void; + export function foo(sn: string | number): void; + export function bar(): void; +} + +type Foo = { + foo(s: string): void; + foo(n: number): void; + foo(sn: string | number): void; + bar(): void; +}; + +interface Foo { + foo(s: string): void; + foo(n: number): void; + foo(sn: string | number): void; + bar(): void; +} + +class Foo { + foo(s: string): void; + foo(n: number): void; + foo(sn: string | number): void {} + bar(): void {} +} + +export function bar(): void; +export function foo(s: string): void; +export function foo(n: number): void; +export function foo(sn: string | number): void; +``` + + + + +## When Not To Use It + +It can sometimes be useful to place overload signatures alongside other meaningful parts of a type. +For example, if each of a function's overloads corresponds to a different property, you might wish to put each overloads next to its corresponding property. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`unified-signatures`](./unified-signatures.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx new file mode 100644 index 00000000..d3238025 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx @@ -0,0 +1,126 @@ +--- +description: 'Require consistently using either `T[]` or `Array` for arrays.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/array-type** for documentation. + +TypeScript provides two equivalent ways to define an array type: `T[]` and `Array`. +The two styles are functionally equivalent. +Using the same style consistently across your codebase makes it easier for developers to read and understand array types. + +## Options + +The default config will enforce that all mutable and readonly arrays use the `'array'` syntax. + +### `"array"` + +Always use `T[]` or `readonly T[]` for all array types. + + + + +```ts option='{ "default": "array" }' +const x: Array = ['a', 'b']; +const y: ReadonlyArray = ['a', 'b']; +``` + + + + +```ts option='{ "default": "array" }' +const x: string[] = ['a', 'b']; +const y: readonly string[] = ['a', 'b']; +``` + + + + +### `"generic"` + +Always use `Array`, `ReadonlyArray`, or `Readonly>` for all array types. +`readonly T[]` will be modified to `ReadonlyArray` and `Readonly` will be modified to `Readonly`. + + + + +```ts option='{ "default": "generic" }' +const x: string[] = ['a', 'b']; +const y: readonly string[] = ['a', 'b']; +const z: Readonly = ['a', 'b']; +``` + + + + +```ts option='{ "default": "generic" }' +const x: Array = ['a', 'b']; +const y: ReadonlyArray = ['a', 'b']; +const z: Readonly> = ['a', 'b']; +``` + + + + +### `"array-simple"` + +Use `T[]` or `readonly T[]` for simple types (i.e. types which are just primitive names or type references). +Use `Array` or `ReadonlyArray` for all other types (union types, intersection types, object types, function types, etc). + + + + +```ts option='{ "default": "array-simple" }' +const a: (string | number)[] = ['a', 'b']; +const b: { prop: string }[] = [{ prop: 'a' }]; +const c: (() => void)[] = [() => {}]; +const d: Array = ['a', 'b']; +const e: Array = ['a', 'b']; +const f: ReadonlyArray = ['a', 'b']; +``` + + + + +```ts option='{ "default": "array-simple" }' +const a: Array = ['a', 'b']; +const b: Array<{ prop: string }> = [{ prop: 'a' }]; +const c: Array<() => void> = [() => {}]; +const d: MyType[] = ['a', 'b']; +const e: string[] = ['a', 'b']; +const f: readonly string[] = ['a', 'b']; +``` + + + + +## Combination Matrix + +This matrix lists all possible option combinations and their expected results for different types of Arrays. + +| defaultOption | readonlyOption | Array with simple type | Array with non simple type | Readonly array with simple type | Readonly array with non simple type | +| -------------- | -------------- | ---------------------- | -------------------------- | ------------------------------- | ----------------------------------- | +| `array` | | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `readonly (Foo & Bar)[]` | +| `array` | `array` | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `readonly (Foo & Bar)[]` | +| `array` | `array-simple` | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `ReadonlyArray` | +| `array` | `generic` | `number[]` | `(Foo & Bar)[]` | `ReadonlyArray` | `ReadonlyArray` | +| `array-simple` | | `number[]` | `Array` | `readonly number[]` | `ReadonlyArray` | +| `array-simple` | `array` | `number[]` | `Array` | `readonly number[]` | `readonly (Foo & Bar)[]` | +| `array-simple` | `array-simple` | `number[]` | `Array` | `readonly number[]` | `ReadonlyArray` | +| `array-simple` | `generic` | `number[]` | `Array` | `ReadonlyArray` | `ReadonlyArray` | +| `generic` | | `Array` | `Array` | `ReadonlyArray` | `ReadonlyArray` | +| `generic` | `array` | `Array` | `Array` | `readonly number[]` | `readonly (Foo & Bar)[]` | +| `generic` | `array-simple` | `Array` | `Array` | `readonly number[]` | `ReadonlyArray` | +| `generic` | `generic` | `Array` | `Array` | `ReadonlyArray` | `ReadonlyArray` | + +## When Not To Use It + +This rule is purely a stylistic rule for maintaining consistency in your project. +You can turn it off if you don't want to keep a consistent style for array types. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx new file mode 100644 index 00000000..c4006c81 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx @@ -0,0 +1,184 @@ +--- +description: 'Disallow awaiting a value that is not a Thenable.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/await-thenable** for documentation. + +A "Thenable" value is an object which has a `then` method, such as a Promise. +The [`await` keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) is generally used to retrieve the result of calling a Thenable's `then` method. + +If the `await` keyword is used on a value that is not a Thenable, the value is directly resolved, but will still pause execution until the next microtask. +While doing so is valid JavaScript, it is often a programmer error, such as forgetting to add parenthesis to call a function that returns a Promise. + +## Examples + + + + +```ts +await 'value'; + +const createValue = () => 'value'; +await createValue(); +``` + + + + +```ts +await Promise.resolve('value'); + +const createValue = async () => 'value'; +await createValue(); +``` + + + + +## Async Iteration (`for await...of` Loops) + +This rule also inspects [`for await...of` statements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of), and reports if the value being iterated over is not async-iterable. + +:::info[Why does the rule report on `for await...of` loops used on an array of Promises?] + +While `for await...of` can be used with synchronous iterables, and it will await each promise produced by the iterable, it is inadvisable to do so. +There are some tiny nuances that you may want to consider. + +The biggest difference between using `for await...of` and using `for...of` (apart from awaiting each result yourself) is error handling. +When an error occurs within the loop body, `for await...of` does _not_ close the original sync iterable, while `for...of` does. +For detailed examples of this, see the [MDN documentation on using `for await...of` with sync-iterables](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#iterating_over_sync_iterables_and_generators). + +Also consider whether you need sequential awaiting at all. Using `for await...of` may obscure potential opportunities for concurrent processing, such as those reported by [`no-await-in-loop`](https://eslint.org/docs/latest/rules/no-await-in-loop). Consider instead using one of the [promise concurrency methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#promise_concurrency) for better performance. + +::: + +### Examples + + + + +```ts +async function syncIterable() { + const arrayOfValues = [1, 2, 3]; + for await (const value of arrayOfValues) { + console.log(value); + } +} + +async function syncIterableOfPromises() { + const arrayOfPromises = [ + Promise.resolve(1), + Promise.resolve(2), + Promise.resolve(3), + ]; + for await (const promisedValue of arrayOfPromises) { + console.log(promisedValue); + } +} +``` + + + + +```ts +async function syncIterable() { + const arrayOfValues = [1, 2, 3]; + for (const value of arrayOfValues) { + console.log(value); + } +} + +async function syncIterableOfPromises() { + const arrayOfPromises = [ + Promise.resolve(1), + Promise.resolve(2), + Promise.resolve(3), + ]; + for (const promisedValue of await Promise.all(arrayOfPromises)) { + console.log(promisedValue); + } +} + +async function validUseOfForAwaitOnAsyncIterable() { + async function* yieldThingsAsynchronously() { + yield 1; + await new Promise(resolve => setTimeout(resolve, 1000)); + yield 2; + } + + for await (const promisedValue of yieldThingsAsynchronously()) { + console.log(promisedValue); + } +} +``` + + + + +## Explicit Resource Management (`await using` Statements) + +This rule also inspects [`await using` statements](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management). +If the disposable being used is not async-disposable, an `await using` statement is unnecessary. + +### Examples + + + + +```ts +function makeSyncDisposable(): Disposable { + return { + [Symbol.dispose](): void { + // Dispose of the resource + }, + }; +} + +async function shouldNotAwait() { + await using resource = makeSyncDisposable(); +} +``` + + + + +```ts +function makeSyncDisposable(): Disposable { + return { + [Symbol.dispose](): void { + // Dispose of the resource + }, + }; +} + +async function shouldNotAwait() { + using resource = makeSyncDisposable(); +} + +function makeAsyncDisposable(): AsyncDisposable { + return { + async [Symbol.asyncDispose](): Promise { + // Dispose of the resource asynchronously + }, + }; +} + +async function shouldAwait() { + await using resource = makeAsyncDisposable(); +} +``` + + + + +## When Not To Use It + +If you want to allow code to `await` non-Promise values. +For example, if your framework is in transition from one style of asynchronous code to another, it may be useful to include `await`s unnecessarily. +This is generally not preferred but can sometimes be useful for visual consistency. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx new file mode 100644 index 00000000..e2338747 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx @@ -0,0 +1,165 @@ +--- +description: 'Disallow `@ts-` comments or require descriptions after directives.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/ban-ts-comment** for documentation. + +TypeScript provides several directive comments that can be used to alter how it processes files. +Using these to suppress TypeScript compiler errors reduces the effectiveness of TypeScript overall. +Instead, it's generally better to correct the types of code, to make directives unnecessary. + +The directive comments supported by TypeScript are: + +```ts +// @ts-expect-error +// @ts-ignore +// @ts-nocheck +// @ts-check +``` + +This rule lets you set which directive comments you want to allow in your codebase. + +## Options + +By default, only `@ts-check` is allowed, as it enables rather than suppresses errors. + +### `ts-expect-error`, `ts-ignore`, `ts-nocheck`, `ts-check` directives + +A value of `true` for a particular directive means that this rule will report if it finds any usage of said directive. + + + + +```ts option='{ "ts-ignore": true }' +if (false) { + // @ts-ignore: Unreachable code error + console.log('hello'); +} +if (false) { + /* @ts-ignore: Unreachable code error */ + console.log('hello'); +} +``` + + + + +```ts option='{ "ts-ignore": true }' +if (false) { + // Compiler warns about unreachable code error + console.log('hello'); +} +``` + + + + +### `allow-with-description` + +A value of `'allow-with-description'` for a particular directive means that this rule will report if it finds a directive that does not have a description following the directive (on the same line). + +For example, with `{ 'ts-expect-error': 'allow-with-description' }`: + + + + +```ts option='{ "ts-expect-error": "allow-with-description" }' +if (false) { + // @ts-expect-error + console.log('hello'); +} +if (false) { + /* @ts-expect-error */ + console.log('hello'); +} +``` + + + + +```ts option='{ "ts-expect-error": "allow-with-description" }' +if (false) { + // @ts-expect-error: Unreachable code error + console.log('hello'); +} +if (false) { + /* @ts-expect-error: Unreachable code error */ + console.log('hello'); +} +``` + + + +### `descriptionFormat` + +{/* insert option description */} + +For each directive type, you can specify a custom format in the form of a regular expression. Only description that matches the pattern will be allowed. + +For example, with `{ 'ts-expect-error': { descriptionFormat: '^: TS\\d+ because .+$' } }`: + + + + +{/* prettier-ignore */} +```ts option='{ "ts-expect-error": { "descriptionFormat": "^: TS\\\\d+ because .+$" } }' +// @ts-expect-error: the library definition is wrong +const a = doSomething('hello'); +``` + + + + +{/* prettier-ignore */} +```ts option='{ "ts-expect-error": { "descriptionFormat": "^: TS\\\\d+ because .+$" } }' +// @ts-expect-error: TS1234 because the library definition is wrong +const a = doSomething('hello'); +``` + + + + +### `minimumDescriptionLength` + +{/* insert option description */} + +Use `minimumDescriptionLength` to set a minimum length for descriptions when using the `allow-with-description` option for a directive. + +For example, with `{ 'ts-expect-error': 'allow-with-description', minimumDescriptionLength: 10 }` the following pattern is: + + + + +```ts option='{ "ts-expect-error": "allow-with-description", "minimumDescriptionLength": 10 }' +if (false) { + // @ts-expect-error: TODO + console.log('hello'); +} +``` + + + + +```ts option='{ "ts-expect-error": "allow-with-description", "minimumDescriptionLength": 10 }' +if (false) { + // @ts-expect-error The rationale for this override is described in issue #1337 on GitLab + console.log('hello'); +} +``` + + + + +## When Not To Use It + +If your project or its dependencies were not architected with strong type safety in mind, it can be difficult to always adhere to proper TypeScript semantics. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- TypeScript [Type Checking JavaScript Files](https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx new file mode 100644 index 00000000..c6aa3b9b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx @@ -0,0 +1,45 @@ +--- +description: 'Disallow `// tslint:` comments.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/ban-tslint-comment** for documentation. + +Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations (e.g. `// tslint:disable`). + +> See the [TSLint rule flags docs](https://palantir.github.io/tslint/usage/rule-flags) for reference. + +## Examples + + + + +```ts +/* tslint:disable */ +/* tslint:enable */ +/* tslint:disable:rule1 rule2 rule3... */ +/* tslint:enable:rule1 rule2 rule3... */ +// tslint:disable-next-line +someCode(); // tslint:disable-line +// tslint:disable-next-line:rule1 rule2 rule3... +``` + + + + +```ts +// This is a comment that just happens to mention tslint +/* This is a multiline comment that just happens to mention tslint */ +someCode(); // This is a comment that just happens to mention tslint +``` + + + + +## When Not To Use It + +If you are still using TSLint alongside ESLint. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md new file mode 100644 index 00000000..5145957d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md @@ -0,0 +1,26 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +The old `ban-types` rule encompassed multiple areas of functionality, and so has been split into several rules. + +**[`no-restricted-types`](./no-restricted-types.mdx)** is the new rule for banning a configurable list of type names. +It has no options enabled by default and is akin to rules like [`no-restricted-globals`](https://eslint.org/docs/latest/rules/no-restricted-globals), [`no-restricted-properties`](https://eslint.org/docs/latest/rules/no-restricted-properties), and [`no-restricted-syntax`](https://eslint.org/docs/latest/rules/no-restricted-syntax). + +The default options from `ban-types` are now covered by: + +- **[`no-empty-object-type`](./no-empty-object-type.mdx)**: banning the built-in `{}` type in confusing locations +- **[`no-unsafe-function-type`](./no-unsafe-function-type.mdx)**: banning the built-in `Function` +- **[`no-wrapper-object-types`](./no-wrapper-object-types.mdx)**: banning `Object` and built-in class wrappers such as `Number` + +`ban-types` itself is removed in typescript-eslint v8. +See [Announcing typescript-eslint v8 Beta](/blog/announcing-typescript-eslint-v8-beta) for more details. +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md new file mode 100644 index 00000000..5abacea9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been deprecated in favour of the [`naming-convention`](./naming-convention.mdx) rule. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx new file mode 100644 index 00000000..d980d3b9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx @@ -0,0 +1,112 @@ +--- +description: 'Enforce that literals on classes are exposed in a consistent style.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/class-literal-property-style** for documentation. + +Some TypeScript applications store literal values on classes using fields with the `readonly` modifier to prevent them from being reassigned. +When writing TypeScript libraries that could be used by JavaScript users, however, it's typically safer to expose these literals using `getter`s, since the `readonly` modifier is enforced at compile type. + +This rule aims to ensure that literals exposed by classes are done so consistently, in one of the two style described above. +By default this rule prefers the `fields` style as it means JS doesn't have to setup & teardown a function closure. + +## Options + +:::note +This rule only checks for constant _literal_ values (string, template string, number, bigint, boolean, regexp, null). It does not check objects or arrays, because a readonly field behaves differently to a getter in those cases. It also does not check functions, as it is a common pattern to use readonly fields with arrow function values as auto-bound methods. +This is because these types can be mutated and carry with them more complex implications about their usage. +::: + +### `"fields"` + +This style checks for any getter methods that return literal values, and requires them to be defined using fields with the `readonly` modifier instead. + +Examples of code with the `fields` style: + + + + +```ts option='"fields"' +class Mx { + public static get myField1() { + return 1; + } + + private get ['myField2']() { + return 'hello world'; + } +} +``` + + + + +```ts option='"fields"' +class Mx { + public readonly myField1 = 1; + + // not a literal + public readonly myField2 = [1, 2, 3]; + + private readonly ['myField3'] = 'hello world'; + + public get myField4() { + return `hello from ${window.location.href}`; + } +} +``` + + + + +### `"getters"` + +This style checks for any `readonly` fields that are assigned literal values, and requires them to be defined as getters instead. +This style pairs well with the [`@typescript-eslint/prefer-readonly`](prefer-readonly.mdx) rule, +as it will identify fields that can be `readonly`, and thus should be made into getters. + +Examples of code with the `getters` style: + + + + +```ts option='"getters"' +class Mx { + readonly myField1 = 1; + readonly myField2 = `hello world`; + private readonly myField3 = 'hello world'; +} +``` + + + + +```ts option='"getters"' +class Mx { + // no readonly modifier + public myField1 = 'hello'; + + // not a literal + public readonly myField2 = [1, 2, 3]; + + public static get myField3() { + return 1; + } + + private get ['myField4']() { + return 'hello world'; + } +} +``` + + + + +## When Not To Use It + +When you have no strong preference, or do not wish to enforce a particular style for how literal values are exposed by your classes. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx new file mode 100644 index 00000000..7023306a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx @@ -0,0 +1,105 @@ +--- +description: 'Enforce that class methods utilize `this`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/class-methods-use-this** for documentation. + +This rule extends the base [`eslint/class-methods-use-this`](https://eslint.org/docs/rules/class-methods-use-this) rule. +It adds support for ignoring `override` methods or methods on classes that implement an interface. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseClassMethodsUseThisOptions { + ignoreOverrideMethods?: boolean; + ignoreClassesThatImplementAnInterface?: boolean | 'public-fields'; +} + +const defaultOptions: Options = { + ...baseClassMethodsUseThisOptions, + ignoreOverrideMethods: false, + ignoreClassesThatImplementAnInterface: false, +}; +``` + +### `ignoreOverrideMethods` + +{/* insert option description */} + +Makes the rule ignore any class member explicitly marked with `override`. + +Example of a correct code when `ignoreOverrideMethods` is set to `true`: + +```ts option='{ "ignoreOverrideMethods": true }' showPlaygroundButton +class X { + override method() {} + override property = () => {}; +} +``` + +### `ignoreClassesThatImplementAnInterface` + +{/* insert option description */} + +If specified, it can be either: + +- `true`: Ignore all classes that implement an interface +- `'public-fields'`: Ignore only the public fields of classes that implement an interface + +It's important to note that this option does not only apply to members defined in the interface as that would require type information. + +#### `true` + +Example of correct code when `ignoreClassesThatImplementAnInterface` is set to `true`: + +```ts option='{ "ignoreClassesThatImplementAnInterface": true }' showPlaygroundButton +class X implements Y { + method() {} + property = () => {}; +} +``` + +#### `'public-fields'` + +Example of incorrect code when `ignoreClassesThatImplementAnInterface` is set to `'public-fields'`: + + + + +```ts option='{ "ignoreClassesThatImplementAnInterface": "public-fields" }' +class X implements Y { + method() {} + property = () => {}; + + private privateMethod() {} + private privateProperty = () => {}; + + protected privateMethod() {} + protected privateProperty = () => {}; +} +``` + + + + +```ts option='{ "ignoreClassesThatImplementAnInterface": "public-fields" }' +class X implements Y { + method() {} + property = () => {}; +} +``` + + + + +## When Not To Use It + +If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx new file mode 100644 index 00000000..e4c5e070 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx @@ -0,0 +1,87 @@ +--- +description: 'Enforce specifying generic type arguments on type annotation or constructor name of a constructor call.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-generic-constructors** for documentation. + +When constructing a generic class, you can specify the type arguments on either the left-hand side (as a type annotation) or the right-hand side (as part of the constructor call): + +```ts +// Left-hand side +const map: Map = new Map(); + +// Right-hand side +const map = new Map(); +``` + +This rule ensures that type arguments appear consistently on one side of the declaration. +Keeping to one side consistently improve code readability. + +> The rule never reports when there are type parameters on both sides, or neither sides of the declaration. +> It also doesn't report if the names of the type annotation and the constructor don't match. + +## Options + +- `'constructor'` _(default)_: type arguments that **only** appear on the type annotation are disallowed. +- `'type-annotation'`: type arguments that **only** appear on the constructor are disallowed. + +### `'constructor'` + +{/* insert option description */} + + + + +```ts option='"constructor"' +const map: Map = new Map(); +const set: Set = new Set(); +``` + + + + +```ts option='"constructor"' +const map = new Map(); +const map: Map = new MyMap(); +const set = new Set(); +const set = new Set(); +const set: Set = new Set(); +``` + + + + +### `'type-annotation'` + + + + +```ts option='"type-annotation"' +const map = new Map(); +const set = new Set(); +``` + + + + +```ts option='"type-annotation"' +const map: Map = new Map(); +const set: Set = new Set(); +const set = new Set(); +const set: Set = new Set(); +``` + + + + +## When Not To Use It + +You can turn this rule off if you don't want to enforce one kind of generic constructor style over the other. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx new file mode 100644 index 00000000..5c980af3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx @@ -0,0 +1,105 @@ +--- +description: 'Require or disallow the `Record` type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-indexed-object-style** for documentation. + +TypeScript supports defining arbitrary object keys using an index signature or mapped type. +TypeScript also has a builtin type named `Record` to create an empty object defining only an index signature. +For example, the following types are equal: + +```ts +interface IndexSignatureInterface { + [key: string]: unknown; +} + +type IndexSignatureType = { + [key: string]: unknown; +}; + +type MappedType = { + [key in string]: unknown; +}; + +type RecordType = Record; +``` + +Using one declaration form consistently improves code readability. + +## Options + +- `'record'` _(default)_: only allow the `Record` type. +- `'index-signature'`: only allow index signatures. + +### `'record'` + +{/* insert option description */} + + + + +```ts option='"record"' +interface IndexSignatureInterface { + [key: string]: unknown; +} + +type IndexSignatureType = { + [key: string]: unknown; +}; + +type MappedType = { + [key in string]: unknown; +}; +``` + + + + +```ts option='"record"' +type RecordType = Record; +``` + + + + +### `'index-signature'` + + + + +```ts option='"index-signature"' +type RecordType = Record; +``` + + + + +```ts option='"index-signature"' +interface IndexSignatureInterface { + [key: string]: unknown; +} + +type IndexSignatureType = { + [key: string]: unknown; +}; + +type MappedType = { + [key in string]: unknown; +}; +``` + + + + +## When Not To Use It + +This rule is purely a stylistic rule for maintaining consistency in your project. +You can turn it off if you don't want to keep a consistent style for indexed object types. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx new file mode 100644 index 00000000..0f56bddb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx @@ -0,0 +1,52 @@ +--- +description: 'Require `return` statements to either always or never specify values.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-return** for documentation. + +This rule extends the base [`eslint/consistent-return`](https://eslint.org/docs/rules/consistent-return) rule. +This version adds support for functions that return `void` or `Promise`. + +:::danger warning +If possible, it is recommended to use tsconfig's `noImplicitReturns` option rather than this rule. `noImplicitReturns` is powered by TS's type information and control-flow analysis so it has better coverage than this rule. +::: + + + + +```ts +function foo(): undefined {} +function bar(flag: boolean): undefined { + if (flag) return foo(); + return; +} + +async function baz(flag: boolean): Promise { + if (flag) return; + return foo(); +} +``` + + + + +```ts +function foo(): void {} +function bar(flag: boolean): void { + if (flag) return foo(); + return; +} + +async function baz(flag: boolean): Promise { + if (flag) return 42; + return; +} +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx new file mode 100644 index 00000000..0b13d9df --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx @@ -0,0 +1,123 @@ +--- +description: 'Enforce consistent usage of type assertions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-type-assertions** for documentation. + +TypeScript provides two syntaxes for "type assertions": + +- Angle brackets: `value` +- As: `value as Type` + +This rule aims to standardize the use of type assertion style across the codebase. +Keeping to one syntax consistently helps with code readability. + +:::note +Type assertions are also commonly referred as "type casting" in TypeScript. +However, that term is technically slightly different to what is understood by type casting in other languages. +Type assertions are a way to say to the TypeScript compiler, _"I know better than you, it's actually this different type!"_. +::: + +[`const` assertions](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) are always allowed by this rule. +Examples of them include `let x = "hello" as const;` and `let x = "hello";`. + +## Options + +### `assertionStyle` + +{/* insert option description */} + +Valid values for `assertionStyle` are: + +- `as` will enforce that you always use `... as foo`. +- `angle-bracket` will enforce that you always use `...` +- `never` will enforce that you do not do any type assertions. + +Most codebases will want to enforce not using `angle-bracket` style because it conflicts with JSX syntax, and is confusing when paired with generic syntax. + +Some codebases like to go for an extra level of type safety, and ban assertions altogether via the `never` option. + +### `objectLiteralTypeAssertions` + +{/* insert option description */} + +For example, this would prefer `const x: T = { ... };` to `const x = { ... } as T;` (or similar with angle brackets). +The type assertion in the latter case is either unnecessary or will probably hide an error. + +The compiler will warn for excess properties with this syntax, but not missing _required_ fields. For example: `const x: { foo: number } = {};` will fail to compile, but `const x = {} as { foo: number }` will succeed. + +The const assertion `const x = { foo: 1 } as const`, introduced in TypeScript 3.4, is considered beneficial and is ignored by this option. + +Assertions to `any` are also ignored by this option. + +Examples of code for `{ assertionStyle: 'as', objectLiteralTypeAssertions: 'never' }`: + + + + +```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "never" }' +const x = { foo: 1 } as T; + +function bar() { + return { foo: 1 } as T; +} +``` + + + + +```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "never" }' +const x: T = { foo: 1 }; +const y = { foo: 1 } as any; +const z = { foo: 1 } as unknown; + +function bar(): T { + return { foo: 1 }; +} +``` + + + + +Examples of code for `{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }`: + + + + +```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "allow-as-parameter" }' +const x = { foo: 1 } as T; + +function bar() { + return { foo: 1 } as T; +} +``` + + + + +```tsx option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "allow-as-parameter" }' +const x: T = { foo: 1 }; +const y = { foo: 1 } as any; +const z = { foo: 1 } as unknown; +bar({ foo: 1 } as T); +new Clazz({ foo: 1 } as T); +function bar() { + throw { foo: 1 } as Foo; +} +const foo = ; +``` + + + + +## When Not To Use It + +If you do not want to enforce consistent type assertions. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx new file mode 100644 index 00000000..68060f55 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx @@ -0,0 +1,94 @@ +--- +description: 'Enforce type definitions to consistently use either `interface` or `type`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-type-definitions** for documentation. + +TypeScript provides two common ways to define an object type: `interface` and `type`. + +```ts +// type alias +type T1 = { + a: string; + b: number; +}; + +// interface keyword +interface T2 { + a: string; + b: number; +} +``` + +The two are generally very similar, and can often be used interchangeably. +Using the same type declaration style consistently helps with code readability. + +## Options + +- `'interface'` _(default)_: enforce using `interface`s for object type definitions. +- `'type'`: enforce using `type`s for object type definitions. + +### `'interface'` + +{/* insert option description */} + + + + +```ts option='"interface"' +type T = { x: number }; +``` + + + + +```ts option='"interface"' +type T = string; +type Foo = string | {}; + +interface T { + x: number; +} +``` + + + + +### `'type'` + +{/* insert option description */} + + + + +```ts option='"type"' +interface T { + x: number; +} +``` + + + + +```ts option='"type"' +type T = { x: number }; +``` + + + + +## When Not To Use It + +If you specifically want to use an interface or type literal for stylistic reasons, you can avoid this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. + +There are also subtle differences between `Record` and `interface` that can be difficult to catch statically. +For example, if your project is a dependency of another project that relies on a specific type definition style, this rule may be counterproductive. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx new file mode 100644 index 00000000..293db56f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx @@ -0,0 +1,97 @@ +--- +description: 'Enforce consistent usage of type exports.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-type-exports** for documentation. + +TypeScript allows specifying a `type` keyword on exports to indicate that the export exists only in the type system, not at runtime. +This allows transpilers to drop exports without knowing the types of the dependencies. + +> See [Blog > Consistent Type Exports and Imports: Why and How](/blog/consistent-type-imports-and-exports-why-and-how) for more details. + +## Examples + + + + +```ts +interface ButtonProps { + onClick: () => void; +} + +class Button implements ButtonProps { + onClick = () => console.log('button!'); +} + +export { Button, ButtonProps }; +``` + + + + +```ts +interface ButtonProps { + onClick: () => void; +} + +class Button implements ButtonProps { + onClick = () => console.log('button!'); +} + +export { Button }; +export type { ButtonProps }; +``` + + + + +## Options + +### `fixMixedExportsWithInlineTypeSpecifier` + +{/* insert option description */} + +If you are using a TypeScript version less than 4.5, then you will not be able to use this option. + +For example the following code: + +```ts +const x = 1; +type T = number; + +export { x, T }; +``` + +With `{fixMixedExportsWithInlineTypeSpecifier: true}` will be fixed to: + +```ts +const x = 1; +type T = number; + +export { x, type T }; +``` + +With `{fixMixedExportsWithInlineTypeSpecifier: false}` will be fixed to: + +```ts +const x = 1; +type T = number; + +export type { T }; +export { x }; +``` + +## When Not To Use It + +If you use `--isolatedModules` the compiler would error if a type is not re-exported using `export type`. +This rule may be less useful in those cases. + +If you specifically want to use both export kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx new file mode 100644 index 00000000..3f7dc320 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx @@ -0,0 +1,139 @@ +--- +description: 'Enforce consistent usage of type imports.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/consistent-type-imports** for documentation. + +TypeScript allows specifying a `type` keyword on imports to indicate that the export exists only in the type system, not at runtime. +This allows transpilers to drop imports without knowing the types of the dependencies. + +> See [Blog > Consistent Type Exports and Imports: Why and How](/blog/consistent-type-imports-and-exports-why-and-how) for more details. + +## Options + +### `prefer` + +{/* insert option description */} + +Valid values for `prefer` are: + +- `type-imports` will enforce that you always use `import type Foo from '...'` except referenced by metadata of decorators. It is the default. +- `no-type-imports` will enforce that you always use `import Foo from '...'`. + +Examples of **correct** code with `{prefer: 'type-imports'}`, and **incorrect** code with `{prefer: 'no-type-imports'}`. + +```ts option='{ "prefer": "type-imports" }' showPlaygroundButton +import type { Foo } from 'Foo'; +import type Bar from 'Bar'; +type T = Foo; +const x: Bar = 1; +``` + +Examples of **incorrect** code with `{prefer: 'type-imports'}`, and **correct** code with `{prefer: 'no-type-imports'}`. + +```ts option='{ "prefer": "type-imports" }' showPlaygroundButton +import { Foo } from 'Foo'; +import Bar from 'Bar'; +type T = Foo; +const x: Bar = 1; +``` + +### `fixStyle` + +{/* insert option description */} + +Valid values for `fixStyle` are: + +- `separate-type-imports` will add the type keyword after the import keyword `import type { A } from '...'`. It is the default. +- `inline-type-imports` will inline the type keyword `import { type A } from '...'` and is only available in TypeScript 4.5 and onwards. See [documentation here](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names 'TypeScript 4.5 documentation on type modifiers and import names'). + + + + +```ts +import { Foo } from 'Foo'; +import Bar from 'Bar'; +type T = Foo; +const x: Bar = 1; +``` + + + + +```ts option='{ "fixStyle": "separate-type-imports" }' +import type { Foo } from 'Foo'; +import type Bar from 'Bar'; +type T = Foo; +const x: Bar = 1; +``` + + + + +```ts option='{ "fixStyle": "inline-type-imports" }' +import { type Foo } from 'Foo'; +import type Bar from 'Bar'; +type T = Foo; +const x: Bar = 1; +``` + + + + +### `disallowTypeAnnotations` + +{/* insert option description */} + +Examples of **incorrect** code with `{disallowTypeAnnotations: true}`: + +```ts option='{ "disallowTypeAnnotations": true }' showPlaygroundButton +type T = import('Foo').Foo; +const x: import('Bar') = 1; +``` + +## Caveat: `@decorators` + `experimentalDecorators: true` + `emitDecoratorMetadata: true` + +:::note +If you are using `experimentalDecorators: false` (eg [TypeScript v5.0's stable decorators](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#decorators)) then the rule will always report errors as expected. +This caveat **only** applies to `experimentalDecorators: true` +::: + +The rule will **_not_** report any errors in files _that contain decorators_ when **both** `experimentalDecorators` and `emitDecoratorMetadata` are turned on. + +> See [Blog > Changes to consistent-type-imports when used with legacy decorators and decorator metadata](/blog/changes-to-consistent-type-imports-with-decorators) for more details. + +If you are using [type-aware linting](https://typescript-eslint.io/linting/typed-linting) then we will automatically infer your setup from your tsconfig and you should not need to configure anything. +Otherwise you can explicitly tell our tooling to analyze your code as if the compiler option was turned on by setting both [`parserOptions.emitDecoratorMetadata = true`](https://typescript-eslint.io/packages/parser/#emitdecoratormetadata) and [`parserOptions.experimentalDecorators = true`](https://typescript-eslint.io/packages/parser/#experimentaldecorators). + +## Comparison with `importsNotUsedAsValues` / `verbatimModuleSyntax` + +[`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) was introduced in TypeScript v5.0 (as a replacement for `importsNotUsedAsValues`). +This rule and `verbatimModuleSyntax` _mostly_ behave in the same way. +There are a few behavior differences: +| Situation | `consistent-type-imports` (ESLint) | `verbatimModuleSyntax` (TypeScript) | +| -------------------------------------------------------------- | --------------------------------------------------------- | ----------------------------------------------------------- | +| Unused imports | Ignored (consider using [`@typescript-eslint/no-unused-vars`](/rules/no-unused-vars)) | Type error | +| Usage with `emitDecoratorMetadata` & `experimentalDecorations` | Ignores files that contain decorators | Reports on files that contain decorators | +| Failures detected | Does not fail `tsc` build; can be auto-fixed with `--fix` | Fails `tsc` build; cannot be auto-fixed on the command-line | +| `import { type T } from 'T';` | TypeScript will emit nothing (it "elides" the import) | TypeScript emits `import {} from 'T'` | + +Because there are some differences, using both this rule and `verbatimModuleSyntax` at the same time can lead to conflicting errors. +As such we recommend that you only ever use one _or_ the other -- never both. + +## When Not To Use It + +If you specifically want to use both import kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. + +## Related To + +- [`no-import-type-side-effects`](./no-import-type-side-effects.mdx) +- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md) +- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx new file mode 100644 index 00000000..38527abf --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx @@ -0,0 +1,60 @@ +--- +description: 'Enforce default parameters to be last.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/default-param-last** for documentation. + +This rule extends the base [`eslint/default-param-last`](https://eslint.org/docs/rules/default-param-last) rule. +It adds support for optional parameters. + + + + +```ts +function f(a = 0, b: number) {} +function f(a: number, b = 0, c: number) {} +function f(a: number, b?: number, c: number) {} +class Foo { + constructor( + public a = 10, + private b: number, + ) {} +} +class Foo { + constructor( + public a?: number, + private b: number, + ) {} +} +``` + + + + +```ts +function f(a = 0) {} +function f(a: number, b = 0) {} +function f(a: number, b?: number) {} +function f(a: number, b?: number, c = 0) {} +function f(a: number, b = 0, c?: number) {} +class Foo { + constructor( + public a, + private b = 0, + ) {} +} +class Foo { + constructor( + public a, + private b?: number, + ) {} +} +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx new file mode 100644 index 00000000..fd6967f9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx @@ -0,0 +1,95 @@ +--- +description: 'Enforce dot notation whenever possible.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/dot-notation** for documentation. + +This rule extends the base [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation) rule. +It adds: + +- Support for optionally ignoring computed `private` and/or `protected` member access. +- Compatibility with TypeScript's `noPropertyAccessFromIndexSignature` option. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseDotNotationOptions { + allowPrivateClassPropertyAccess?: boolean; + allowProtectedClassPropertyAccess?: boolean; + allowIndexSignaturePropertyAccess?: boolean; +} + +const defaultOptions: Options = { + ...baseDotNotationDefaultOptions, + allowPrivateClassPropertyAccess: false, + allowProtectedClassPropertyAccess: false, + allowIndexSignaturePropertyAccess: false, +}; +``` + +If the TypeScript compiler option `noPropertyAccessFromIndexSignature` is set to `true`, then this rule always allows the use of square bracket notation to access properties of types that have a `string` index signature, even if `allowIndexSignaturePropertyAccess` is `false`. + +### `allowPrivateClassPropertyAccess` + +{/* insert option description */} + +This can be useful because TypeScript will report a type error on dot notation but not array notation. + +Example of a correct code when `allowPrivateClassPropertyAccess` is set to `true`: + +```ts option='{ "allowPrivateClassPropertyAccess": true }' showPlaygroundButton +class X { + private priv_prop = 123; +} + +const x = new X(); +x['priv_prop'] = 123; +``` + +### `allowProtectedClassPropertyAccess` + +{/* insert option description */} + +This can be useful because TypeScript will report a type error on dot notation but not array notation. + +Example of a correct code when `allowProtectedClassPropertyAccess` is set to `true`: + +```ts option='{ "allowProtectedClassPropertyAccess": true }' showPlaygroundButton +class X { + protected protected_prop = 123; +} + +const x = new X(); +x['protected_prop'] = 123; +``` + +### `allowIndexSignaturePropertyAccess` + +{/* insert option description */} + +Example of correct code when `allowIndexSignaturePropertyAccess` is set to `true`: + +```ts option='{ "allowIndexSignaturePropertyAccess": true }' showPlaygroundButton +class X { + [key: string]: number; +} + +const x = new X(); +x['hello'] = 123; +``` + +If the TypeScript compiler option `noPropertyAccessFromIndexSignature` is set to `true`, then the above code is always allowed, even if `allowIndexSignaturePropertyAccess` is `false`. + +## When Not To Use It + +If you specifically want to use both member access kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx new file mode 100644 index 00000000..1bc1a56e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx @@ -0,0 +1,363 @@ +--- +description: 'Require explicit return types on functions and class methods.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/explicit-function-return-type** for documentation. + +Functions in TypeScript often don't need to be given an explicit return type annotation. +Leaving off the return type is less code to read or write and allows the compiler to infer it from the contents of the function. + +However, explicit return types do make it visually more clear what type is returned by a function. +They can also speed up TypeScript type checking performance in large codebases with many large functions. + +This rule enforces that functions do have an explicit return type annotation. + +## Examples + + + + +```ts +// Should indicate that no value is returned (void) +function test() { + return; +} + +// Should indicate that a number is returned +var fn = function () { + return 1; +}; + +// Should indicate that a string is returned +var arrowFn = () => 'test'; + +class Test { + // Should indicate that no value is returned (void) + method() { + return; + } +} +``` + + + + +```ts +// No return value should be expected (void) +function test(): void { + return; +} + +// A return value of type number +var fn = function (): number { + return 1; +}; + +// A return value of type string +var arrowFn = (): string => 'test'; + +class Test { + // No return value should be expected (void) + method(): void { + return; + } +} +``` + + + + +## Options + +### Configuring in a mixed JS/TS codebase + +If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. + +```jsonc +{ + "rules": { + // disable the rule for all files + "@typescript-eslint/explicit-function-return-type": "off", + }, + "overrides": [ + { + // enable the rule specifically for TypeScript files + "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], + "rules": { + "@typescript-eslint/explicit-function-return-type": "error", + }, + }, + ], +} +``` + +### `allowExpressions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowExpressions: true }`: + + + + +```ts option='{ "allowExpressions": true }' +function test() {} + +const fn = () => {}; + +export default () => {}; +``` + + + + +```ts option='{ "allowExpressions": true }' +node.addEventListener('click', () => {}); + +node.addEventListener('click', function () {}); + +const foo = arr.map(i => i * i); +``` + + + + +### `allowTypedFunctionExpressions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowTypedFunctionExpressions: true }`: + + + + +```ts option='{ "allowTypedFunctionExpressions": true }' +let arrowFn = () => 'test'; + +let funcExpr = function () { + return 'test'; +}; + +let objectProp = { + foo: () => 1, +}; +``` + + + + +```ts option='{ "allowTypedFunctionExpressions": true }' +type FuncType = () => string; + +let arrowFn: FuncType = () => 'test'; + +let funcExpr: FuncType = function () { + return 'test'; +}; + +let asTyped = (() => '') as () => string; +let castTyped = <() => string>(() => ''); + +interface ObjectType { + foo(): number; +} +let objectProp: ObjectType = { + foo: () => 1, +}; +let objectPropAs = { + foo: () => 1, +} as ObjectType; +let objectPropCast = { + foo: () => 1, +}; + +declare function functionWithArg(arg: () => number); +functionWithArg(() => 1); + +declare function functionWithObjectArg(arg: { method: () => number }); +functionWithObjectArg({ + method() { + return 1; + }, +}); +``` + + + + +### `allowHigherOrderFunctions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowHigherOrderFunctions: true }`: + + + + +```ts option='{ "allowHigherOrderFunctions": true }' +var arrowFn = () => () => {}; + +function fn() { + return function () {}; +} +``` + + + + +```ts option='{ "allowHigherOrderFunctions": true }' +var arrowFn = () => (): void => {}; + +function fn() { + return function (): void {}; +} +``` + + + + +### `allowDirectConstAssertionInArrowFunctions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowDirectConstAssertionInArrowFunctions: true }`: + + + + +```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' +const func = (value: number) => ({ type: 'X', value }) as any; +const func = (value: number) => ({ type: 'X', value }) as Action; +``` + + + + +```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' +const func = (value: number) => ({ foo: 'bar', value }) as const; +const func = () => x as const; +``` + + + + +### `allowConciseArrowFunctionExpressionsStartingWithVoid` + +{/* insert option description */} + +Examples of code for this rule with `{ allowConciseArrowFunctionExpressionsStartingWithVoid: true }`: + + + + +```ts option='{ "allowConciseArrowFunctionExpressionsStartingWithVoid": true }' +var join = (a: string, b: string) => `${a}${b}`; + +const log = (message: string) => { + console.log(message); +}; +``` + + + + +```ts option='{ "allowConciseArrowFunctionExpressionsStartingWithVoid": true }' +var log = (message: string) => void console.log(message); +``` + + + + +### `allowFunctionsWithoutTypeParameters` + +{/* insert option description */} + +Examples of code for this rule with `{ allowFunctionsWithoutTypeParameters: true }`: + + + + +```ts option='{ "allowFunctionsWithoutTypeParameters": true }' +function foo(t: T) { + return t; +} + +const bar = (t: T) => t; +``` + + + + +```ts option='{ "allowFunctionsWithoutTypeParameters": true }' +function foo(t: T): T { + return t; +} + +const bar = (t: T): T => t; + +function allowedFunction(x: string) { + return x; +} + +const allowedArrow = (x: string) => x; +``` + + + + +### `allowedNames` + +{/* insert option description */} + +You may pass function/method names you would like this rule to ignore, like so: + +```json +{ + "@typescript-eslint/explicit-function-return-type": [ + "error", + { + "allowedNames": ["ignoredFunctionName", "ignoredMethodName"] + } + ] +} +``` + +### `allowIIFEs` + +{/* insert option description */} + +Examples of code for this rule with `{ allowIIFEs: true }`: + + + + +```ts option='{ "allowIIFEs": true }' +var func = () => 'foo'; +``` + + + + +```ts option='{ "allowIIFEs": true }' +var foo = (() => 'foo')(); + +var bar = (function () { + return 'bar'; +})(); +``` + + + + +## When Not To Use It + +If you don't find the added cost of explicitly writing function return types to be worth the visual clarity, or your project is not large enough for it to be a factor in type checking performance, then you will not need this rule. + +## Further Reading + +- TypeScript [Functions](https://www.typescriptlang.org/docs/handbook/functions.html#function-types) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx new file mode 100644 index 00000000..67b78cbe --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx @@ -0,0 +1,353 @@ +--- +description: 'Require explicit accessibility modifiers on class properties and methods.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/explicit-member-accessibility** for documentation. + +TypeScript allows placing explicit `public`, `protected`, and `private` accessibility modifiers in front of class members. +The modifiers exist solely in the type system and just serve to describe who is allowed to access those members. + +Leaving off accessibility modifiers makes for less code to read and write. +Members are `public` by default. + +However, adding in explicit accessibility modifiers can be helpful in codebases with many classes for enforcing proper privacy of members. +Some developers also find it preferable for code readability to keep member publicity explicit. + +## Examples + +This rule aims to make code more readable and explicit about who can use +which properties. + +## Options + +### Configuring in a mixed JS/TS codebase + +If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. + +```jsonc +{ + "rules": { + // disable the rule for all files + "@typescript-eslint/explicit-member-accessibility": "off", + }, + "overrides": [ + { + // enable the rule specifically for TypeScript files + "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], + "rules": { + "@typescript-eslint/explicit-member-accessibility": "error", + }, + }, + ], +} +``` + +### `accessibility` + +{/* insert option description */} + +This rule in its default state requires no configuration and will enforce that every class member has an accessibility modifier. If you would like to allow for some implicit public members then you have the following options: + +```jsonc +{ + "accessibility": "explicit", + "overrides": { + "accessors": "explicit", + "constructors": "no-public", + "methods": "explicit", + "properties": "off", + "parameterProperties": "explicit", + }, +} +``` + +Note the above is an example of a possible configuration you could use - it is not the default configuration. + +The following patterns are considered incorrect code if no options are provided: + +```ts showPlaygroundButton +class Animal { + constructor(name) { + // No accessibility modifier + this.animalName = name; + } + animalName: string; // No accessibility modifier + get name(): string { + // No accessibility modifier + return this.animalName; + } + set name(value: string) { + // No accessibility modifier + this.animalName = value; + } + walk() { + // method + } +} +``` + +The following patterns are considered correct with the default options `{ accessibility: 'explicit' }`: + +```ts option='{ "accessibility": "explicit" }' showPlaygroundButton +class Animal { + public constructor( + public breed, + name, + ) { + // Parameter property and constructor + this.animalName = name; + } + private animalName: string; // Property + get name(): string { + // get accessor + return this.animalName; + } + set name(value: string) { + // set accessor + this.animalName = value; + } + public walk() { + // method + } +} +``` + +The following patterns are considered incorrect with the accessibility set to **no-public** `[{ accessibility: 'no-public' }]`: + +```ts option='{ "accessibility": "no-public" }' showPlaygroundButton +class Animal { + public constructor( + public breed, + name, + ) { + // Parameter property and constructor + this.animalName = name; + } + public animalName: string; // Property + public get name(): string { + // get accessor + return this.animalName; + } + public set name(value: string) { + // set accessor + this.animalName = value; + } + public walk() { + // method + } +} +``` + +The following patterns are considered correct with the accessibility set to **no-public** `[{ accessibility: 'no-public' }]`: + +```ts option='{ "accessibility": "no-public" }' showPlaygroundButton +class Animal { + constructor( + protected breed, + name, + ) { + // Parameter property and constructor + this.name = name; + } + private animalName: string; // Property + get name(): string { + // get accessor + return this.animalName; + } + private set name(value: string) { + // set accessor + this.animalName = value; + } + protected walk() { + // method + } +} +``` + +### `overrides` + +{/* insert option description */} + +There are three ways in which an override can be used. + +- To disallow the use of public on a given member. +- To enforce explicit member accessibility when the root has allowed implicit public accessibility +- To disable any checks on given member type + +#### Disallow the use of public on a given member + +e.g. `[ { overrides: { constructors: 'no-public' } } ]` + +The following patterns are considered incorrect with the example override + +```ts option='{ "overrides": { "constructors": "no-public" } }' showPlaygroundButton +class Animal { + public constructor(protected animalName) {} + public get name() { + return this.animalName; + } +} +``` + +The following patterns are considered correct with the example override + +```ts option='{ "overrides": { "constructors": "no-public" } }' showPlaygroundButton +class Animal { + constructor(protected animalName) {} + public get name() { + return this.animalName; + } +} +``` + +#### Require explicit accessibility for a given member + +e.g. `[ { accessibility: 'no-public', overrides: { properties: 'explicit' } } ]` + +The following patterns are considered incorrect with the example override + +```ts option='{ "accessibility": "no-public", "overrides": { "properties": "explicit" } }' showPlaygroundButton +class Animal { + constructor(protected animalName) {} + get name() { + return this.animalName; + } + protected set name(value: string) { + this.animalName = value; + } + legs: number; + private hasFleas: boolean; +} +``` + +The following patterns are considered correct with the example override + +```ts option='{ "accessibility": "no-public", "overrides": { "properties": "explicit" } }' showPlaygroundButton +class Animal { + constructor(protected animalName) {} + get name() { + return this.animalName; + } + protected set name(value: string) { + this.animalName = value; + } + public legs: number; + private hasFleas: boolean; +} +``` + +e.g. `[ { accessibility: 'off', overrides: { parameterProperties: 'explicit' } } ]` + +The following code is considered incorrect with the example override + +```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "explicit" } }' showPlaygroundButton +class Animal { + constructor(readonly animalName: string) {} +} +``` + +The following code patterns are considered correct with the example override + +```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "explicit" } }' showPlaygroundButton +class Animal { + constructor(public readonly animalName: string) {} +} + +class Animal { + constructor(public animalName: string) {} +} + +class Animal { + constructor(animalName: string) {} +} +``` + +e.g. `[ { accessibility: 'off', overrides: { parameterProperties: 'no-public' } } ]` + +The following code is considered incorrect with the example override + +```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "no-public" } }' showPlaygroundButton +class Animal { + constructor(public readonly animalName: string) {} +} +``` + +The following code is considered correct with the example override + +```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "no-public" } }' showPlaygroundButton +class Animal { + constructor(public animalName: string) {} +} +``` + +#### Disable any checks on given member type + +e.g. `[{ overrides: { accessors : 'off' } } ]` + +As no checks on the overridden member type are performed all permutations of visibility are permitted for that member type + +The follow pattern is considered incorrect for the given configuration + +```ts option='{ "overrides": { "accessors" : "off" } }' showPlaygroundButton +class Animal { + constructor(protected animalName) {} + public get name() { + return this.animalName; + } + get legs() { + return this.legCount; + } +} +``` + +The following patterns are considered correct with the example override + +```ts option='{ "overrides": { "accessors" : "off" } }' showPlaygroundButton +class Animal { + public constructor(protected animalName) {} + public get name() { + return this.animalName; + } + get legs() { + return this.legCount; + } +} +``` + +### `ignoredMethodNames` + +{/* insert option description */} + +Note that this option does not care about context, and will ignore every method with these names, which could lead to it missing some cases. You should use this sparingly. +e.g. `[ { ignoredMethodNames: ['specificMethod', 'whateverMethod'] } ]` + +```ts option='{ "ignoredMethodNames": ["specificMethod", "whateverMethod"] }' showPlaygroundButton +class Animal { + get specificMethod() { + console.log('No error because you specified this method on option'); + } + get whateverMethod() { + console.log('No error because you specified this method on option'); + } + public get otherMethod() { + console.log('This method comply with this rule'); + } +} +``` + +## When Not To Use It + +If you think defaulting to public is a good default, then you should consider using the `no-public` setting. +If you want to mix implicit and explicit public members then you can disable this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. + +## Further Reading + +- TypeScript [Accessibility Modifiers Handbook Docs](https://www.typescriptlang.org/docs/handbook/2/classes.html#member-visibility) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx new file mode 100644 index 00000000..fadbfa29 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx @@ -0,0 +1,277 @@ +--- +description: "Require explicit return and argument types on exported functions' and classes' public class methods." +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/explicit-module-boundary-types** for documentation. + +Explicit types for function return values and arguments makes it clear to any calling code what is the module boundary's input and output. +Adding explicit type annotations for those types can help improve code readability. +It can also improve TypeScript type checking performance on larger codebases. + +## Examples + + + + +```ts +// Should indicate that no value is returned (void) +export function test() { + return; +} + +// Should indicate that a string is returned +export var arrowFn = () => 'test'; + +// All arguments should be typed +export var arrowFn = (arg): string => `test ${arg}`; +export var arrowFn = (arg: any): string => `test ${arg}`; + +export class Test { + // Should indicate that no value is returned (void) + method() { + return; + } +} +``` + + + + +```ts +// A function with no return value (void) +export function test(): void { + return; +} + +// A return value of type string +export var arrowFn = (): string => 'test'; + +// All arguments should be typed +export var arrowFn = (arg: string): string => `test ${arg}`; +export var arrowFn = (arg: unknown): string => `test ${arg}`; + +export class Test { + // A class method with no return value (void) + method(): void { + return; + } +} + +// The function does not apply because it is not an exported function. +function test() { + return; +} +``` + + + + +## Options + +### Configuring in a mixed JS/TS codebase + +If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. + +```jsonc +{ + "rules": { + // disable the rule for all files + "@typescript-eslint/explicit-module-boundary-types": "off", + }, + "overrides": [ + { + // enable the rule specifically for TypeScript files + "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], + "rules": { + "@typescript-eslint/explicit-module-boundary-types": "error", + }, + }, + ], +} +``` + +### `allowArgumentsExplicitlyTypedAsAny` + +{/* insert option description */} + +Examples of code for this rule with `{ allowArgumentsExplicitlyTypedAsAny: false }`: + + + + +```ts option='{ "allowArgumentsExplicitlyTypedAsAny": false }' +export const func = (value: any): number => value + 1; +``` + + + + +```ts option='{ "allowArgumentsExplicitlyTypedAsAny": true }' +export const func = (value: any): number => value + 1; +``` + + + + +### `allowDirectConstAssertionInArrowFunctions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowDirectConstAssertionInArrowFunctions: false }`: + + + + +```ts option='{ "allowDirectConstAssertionInArrowFunctions": false }' +export const func = (value: number) => ({ type: 'X', value }); +export const foo = () => ({ + bar: true, +}); +export const bar = () => 1; +``` + + + + +```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' +export const func = (value: number) => ({ type: 'X', value }) as const; +export const foo = () => + ({ + bar: true, + }) as const; +export const bar = () => 1 as const; +``` + + + + +### `allowedNames` + +{/* insert option description */} + +You may pass function/method names you would like this rule to ignore, like so: + +```json +{ + "@typescript-eslint/explicit-module-boundary-types": [ + "error", + { + "allowedNames": ["ignoredFunctionName", "ignoredMethodName"] + } + ] +} +``` + +### `allowHigherOrderFunctions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowHigherOrderFunctions: false }`: + + + + +```ts option='{ "allowHigherOrderFunctions": false }' +export const arrowFn = () => () => {}; + +export function fn() { + return function () {}; +} + +export function foo(outer: string) { + return function (inner: string) {}; +} +``` + + + + +```ts option='{ "allowHigherOrderFunctions": true }' +export const arrowFn = () => (): void => {}; + +export function fn() { + return function (): void {}; +} + +export function foo(outer: string) { + return function (inner: string): void {}; +} +``` + + + + +### `allowTypedFunctionExpressions` + +{/* insert option description */} + +Examples of code for this rule with `{ allowTypedFunctionExpressions: false }`: + + + + +```ts option='{ "allowTypedFunctionExpressions": false }' +export let arrowFn = () => 'test'; + +export let funcExpr = function () { + return 'test'; +}; + +export let objectProp = { + foo: () => 1, +}; + +export const foo = bar => {}; +``` + + + + +```ts option='{ "allowTypedFunctionExpressions": true }' +type FuncType = () => string; + +export let arrowFn: FuncType = () => 'test'; + +export let funcExpr: FuncType = function () { + return 'test'; +}; + +export let asTyped = (() => '') as () => string; +export let castTyped = <() => string>(() => ''); + +interface ObjectType { + foo(): number; +} +export let objectProp: ObjectType = { + foo: () => 1, +}; +export let objectPropAs = { + foo: () => 1, +} as ObjectType; +export let objectPropCast = { + foo: () => 1, +}; + +type FooType = (bar: string) => void; +export const foo: FooType = bar => {}; +``` + + + + +## When Not To Use It + +If your project is not used by downstream consumers that are sensitive to API types, you can disable this rule. + +## Further Reading + +- TypeScript [Functions](https://www.typescriptlang.org/docs/handbook/functions.html#function-types) + +## Related To + +- [explicit-function-return-type](./explicit-function-return-type.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx new file mode 100644 index 00000000..911aeb18 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx @@ -0,0 +1,13 @@ +--- +description: 'Require or disallow initialization in variable declarations.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/init-declarations** for documentation. + +This rule extends the base [`eslint/init-declarations`](https://eslint.org/docs/rules/init-declarations) rule. +It adds support for TypeScript's `declare` variables. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx new file mode 100644 index 00000000..d1a36373 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx @@ -0,0 +1,55 @@ +--- +description: 'Enforce a maximum number of parameters in function definitions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/max-params** for documentation. + +This rule extends the base [`eslint/max-params`](https://eslint.org/docs/rules/max-params) rule. +This version adds support for TypeScript `this` parameters so they won't be counted as a parameter. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseMaxParamsOptions { + countVoidThis?: boolean; +} + +const defaultOptions: Options = { + ...baseMaxParamsOptions, + countVoidThis: false, +}; +``` + +### `countVoidThis` + +{/* insert option description */} + +Example of a code when `countVoidThis` is set to `false` and `max` is `1`: + + + + +```ts option='{ "countVoidThis": false, "max": 1 }' +function hasNoThis(this: void, first: string, second: string) { + // ... +} +``` + + + + +```ts option='{ "countVoidThis": false, "max": 1 }' +function hasNoThis(this: void, first: string) { + // ... +} +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx new file mode 100644 index 00000000..82f8f84f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx @@ -0,0 +1,1483 @@ +--- +description: 'Require a consistent member declaration order.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/member-ordering** for documentation. + +This rule aims to standardize the way classes, interfaces, and type literals are structured and ordered. +A consistent ordering of fields, methods and constructors can make code easier to read, navigate, and edit. + +:::note +This rule is _feature frozen_: it will no longer receive new features such as new options. +It still will accept bug and documentation fixes for its existing area of features. + +Stylistic rules that enforce naming and/or sorting conventions tend to grow incomprehensibly complex as increasingly obscure features are requested. +This rule has reached the limit of what is reasonable for the typescript-eslint project to maintain. +See [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. +::: + +## Options + +```ts +interface Options { + default?: OrderConfig; + classes?: OrderConfig; + classExpressions?: OrderConfig; + interfaces?: OrderConfig; + typeLiterals?: OrderConfig; +} + +type OrderConfig = MemberType[] | SortedOrderConfig | 'never'; + +interface SortedOrderConfig { + memberTypes?: MemberType[] | 'never'; + optionalityOrder?: 'optional-first' | 'required-first'; + order?: + | 'alphabetically' + | 'alphabetically-case-insensitive' + | 'as-written' + | 'natural' + | 'natural-case-insensitive'; +} + +// See below for the more specific MemberType strings +type MemberType = string | string[]; +``` + +You can configure `OrderConfig` options for: + +- **`default`**: all constructs (used as a fallback) +- **`classes`**?: override ordering specifically for classes +- **`classExpressions`**?: override ordering specifically for class expressions +- **`interfaces`**?: override ordering specifically for interfaces +- **`typeLiterals`**?: override ordering specifically for type literals + +The `OrderConfig` settings for each kind of construct may configure sorting on up to three levels: + +- **`memberTypes`**: organizing on member type groups such as methods vs. properties +- **`optionalityOrder`**: whether to put all optional members first or all required members first +- **`order`**: organizing based on member names, such as alphabetically + +### Groups + +You can define many different groups based on different attributes of members. +The supported member attributes are, in order: + +- **Accessibility** (`'public' | 'protected' | 'private' | '#private'`) +- **Decoration** (`'decorated'`): Whether the member has an explicit accessibility decorator +- **Kind** (`'call-signature' | 'constructor' | 'field' | 'readonly-field' | 'get' | 'method' | 'set' | 'signature' | 'readonly-signature'`) + +Member attributes may be joined with a `'-'` to combine into more specific groups. +For example, `'public-field'` would come before `'private-field'`. + +### Orders + +The `order` value specifies what order members should be within a group. +It defaults to `as-written`, meaning any order is fine. +Other allowed values are: + +- `alphabetically`: Sorted in a-z alphabetical order, directly using string `<` comparison (so `B` comes before `a`) +- `alphabetically-case-insensitive`: Sorted in a-z alphabetical order, ignoring case (so `a` comes before `B`) +- `natural`: Same as `alphabetically`, but using [`natural-compare-lite`](https://github.com/litejs/natural-compare-lite) for more friendly sorting of numbers +- `natural-case-insensitive`: Same as `alphabetically-case-insensitive`, but using [`natural-compare-lite`](https://github.com/litejs/natural-compare-lite) for more friendly sorting of numbers + +### Default configuration + +The default configuration looks as follows: + +```jsonc +{ + "default": { + "memberTypes": [ + // Index signature + "signature", + "call-signature", + + // Fields + "public-static-field", + "protected-static-field", + "private-static-field", + "#private-static-field", + + "public-decorated-field", + "protected-decorated-field", + "private-decorated-field", + + "public-instance-field", + "protected-instance-field", + "private-instance-field", + "#private-instance-field", + + "public-abstract-field", + "protected-abstract-field", + + "public-field", + "protected-field", + "private-field", + "#private-field", + + "static-field", + "instance-field", + "abstract-field", + + "decorated-field", + + "field", + + // Static initialization + "static-initialization", + + // Constructors + "public-constructor", + "protected-constructor", + "private-constructor", + + "constructor", + + // Accessors + "public-static-accessor", + "protected-static-accessor", + "private-static-accessor", + "#private-static-accessor", + + "public-decorated-accessor", + "protected-decorated-accessor", + "private-decorated-accessor", + + "public-instance-accessor", + "protected-instance-accessor", + "private-instance-accessor", + "#private-instance-accessor", + + "public-abstract-accessor", + "protected-abstract-accessor", + + "public-accessor", + "protected-accessor", + "private-accessor", + "#private-accessor", + + "static-accessor", + "instance-accessor", + "abstract-accessor", + + "decorated-accessor", + + "accessor", + + // Getters + "public-static-get", + "protected-static-get", + "private-static-get", + "#private-static-get", + + "public-decorated-get", + "protected-decorated-get", + "private-decorated-get", + + "public-instance-get", + "protected-instance-get", + "private-instance-get", + "#private-instance-get", + + "public-abstract-get", + "protected-abstract-get", + + "public-get", + "protected-get", + "private-get", + "#private-get", + + "static-get", + "instance-get", + "abstract-get", + + "decorated-get", + + "get", + + // Setters + "public-static-set", + "protected-static-set", + "private-static-set", + "#private-static-set", + + "public-decorated-set", + "protected-decorated-set", + "private-decorated-set", + + "public-instance-set", + "protected-instance-set", + "private-instance-set", + "#private-instance-set", + + "public-abstract-set", + "protected-abstract-set", + + "public-set", + "protected-set", + "private-set", + "#private-set", + + "static-set", + "instance-set", + "abstract-set", + + "decorated-set", + + "set", + + // Methods + "public-static-method", + "protected-static-method", + "private-static-method", + "#private-static-method", + + "public-decorated-method", + "protected-decorated-method", + "private-decorated-method", + + "public-instance-method", + "protected-instance-method", + "private-instance-method", + "#private-instance-method", + + "public-abstract-method", + "protected-abstract-method", + + "public-method", + "protected-method", + "private-method", + "#private-method", + + "static-method", + "instance-method", + "abstract-method", + + "decorated-method", + + "method", + ], + }, +} +``` + +:::note +The default configuration contains member group types which contain other member types. +This is intentional to provide better error messages. +::: + +:::tip +By default, the members are not sorted. +If you want to sort them alphabetically, you have to provide a custom configuration. +::: + +## Examples + +### General Order on All Constructs + +This config specifies the order for all constructs. +It ignores member types other than signatures, methods, constructors, and fields. +It also ignores accessibility and scope. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "default": ["signature", "method", "constructor", "field"] }, + ], + }, +} +``` + + + + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +interface Foo { + B: string; // -> field + + new (); // -> constructor + + A(): void; // -> method + + [Z: string]: any; // -> signature +} +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +type Foo = { + B: string; // -> field + + // no constructor + + A(): void; // -> method + + // no signature +}; +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +class Foo { + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field + + constructor() {} // -> constructor + + public static A(): void {} // -> method + public B(): void {} // -> method + + [Z: string]: any; // -> signature +} +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +const Foo = class { + private C: string; // -> field + public D: string; // -> field + + constructor() {} // -> constructor + + public static A(): void {} // -> method + public B(): void {} // -> method + + [Z: string]: any; // -> signature + + protected static E: string; // -> field +}; +``` + + + + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +interface Foo { + [Z: string]: any; // -> signature + + A(): void; // -> method + + new (); // -> constructor + + B: string; // -> field +} +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +type Foo = { + // no signature + + A(): void; // -> method + + // no constructor + + B: string; // -> field +}; +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +class Foo { + [Z: string]: any; // -> signature + + public static A(): void {} // -> method + public B(): void {} // -> method + + constructor() {} // -> constructor + + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field +} +``` + +```ts option='{ "default": ["signature", "method", "constructor", "field"] }' +const Foo = class { + [Z: string]: any; // -> signature + + public static A(): void {} // -> method + public B(): void {} // -> method + + constructor() {} // -> constructor + + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field +}; +``` + + + + +### Classes + +#### Public Instance Methods Before Public Static Fields + +This config specifies that public instance methods should come first before public static fields. +Everything else can be placed anywhere. +It doesn't apply to interfaces or type literals as accessibility and scope are not part of them. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "default": ["public-instance-method", "public-static-field"] }, + ], + }, +} +``` + + + + +```ts option='{ "default": ["public-instance-method", "public-static-field"] }' +class Foo { + private C: string; // (irrelevant) + + public D: string; // (irrelevant) + + public static E: string; // -> public static field + + constructor() {} // (irrelevant) + + public static A(): void {} // (irrelevant) + + [Z: string]: any; // (irrelevant) + + public B(): void {} // -> public instance method +} +``` + +```ts option='{ "default": ["public-instance-method", "public-static-field"] }' +const Foo = class { + private C: string; // (irrelevant) + + [Z: string]: any; // (irrelevant) + + public static E: string; // -> public static field + + public D: string; // (irrelevant) + + constructor() {} // (irrelevant) + + public static A(): void {} // (irrelevant) + + public B(): void {} // -> public instance method +}; +``` + + + + +```ts option='{ "default": ["public-instance-method", "public-static-field"] }' +class Foo { + public B(): void {} // -> public instance method + + private C: string; // (irrelevant) + + public D: string; // (irrelevant) + + public static E: string; // -> public static field + + constructor() {} // (irrelevant) + + public static A(): void {} // (irrelevant) + + [Z: string]: any; // (irrelevant) +} +``` + +```ts option='{ "default": ["public-instance-method", "public-static-field"] }' +const Foo = class { + public B(): void {} // -> public instance method + + private C: string; // (irrelevant) + + [Z: string]: any; // (irrelevant) + + public D: string; // (irrelevant) + + constructor() {} // (irrelevant) + + public static A(): void {} // (irrelevant) + + public static E: string; // -> public static field +}; +``` + + + + +#### Static Fields Before Instance Fields + +This config specifies that static fields should come before instance fields, with public static fields first. +It doesn't apply to interfaces or type literals as accessibility and scope are not part of them. + +```jsonc +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "default": ["public-static-field", "static-field", "instance-field"] }, + ], + }, +} +``` + + + + +```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' +class Foo { + private E: string; // -> instance field + + private static B: string; // -> static field + protected static C: string; // -> static field + private static D: string; // -> static field + + public static A: string; // -> public static field + + [Z: string]: any; // (irrelevant) +} +``` + +```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' +const foo = class { + public T(): void {} // method (irrelevant) + + private static B: string; // -> static field + + constructor() {} // constructor (irrelevant) + + private E: string; // -> instance field + + protected static C: string; // -> static field + private static D: string; // -> static field + + [Z: string]: any; // signature (irrelevant) + + public static A: string; // -> public static field +}; +``` + + + + +```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' +class Foo { + public static A: string; // -> public static field + + private static B: string; // -> static field + protected static C: string; // -> static field + private static D: string; // -> static field + + private E: string; // -> instance field + + [Z: string]: any; // (irrelevant) +} +``` + +```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' +const foo = class { + [Z: string]: any; // -> signature (irrelevant) + + public static A: string; // -> public static field + + constructor() {} // -> constructor (irrelevant) + + private static B: string; // -> static field + protected static C: string; // -> static field + private static D: string; // -> static field + + private E: string; // -> instance field + + public T(): void {} // -> method (irrelevant) +}; +``` + + + + +#### Class Declarations + +This config only specifies an order for classes: methods, then the constructor, then fields. +It does not apply to class expressions (use `classExpressions` for them). +Default settings will be used for class declarations and all other syntax constructs other than class declarations. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "classes": ["method", "constructor", "field"] }, + ], + }, +} +``` + + + + +```ts option='{ "classes": ["method", "constructor", "field"] }' +class Foo { + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field + + constructor() {} // -> constructor + + public static A(): void {} // -> method + public B(): void {} // -> method +} +``` + + + + +```ts option='{ "classes": ["method", "constructor", "field"] }' +class Foo { + public static A(): void {} // -> method + public B(): void {} // -> method + + constructor() {} // -> constructor + + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field +} +``` + + + + +#### Class Expressions + +This config only specifies an order for classes expressions: methods, then the constructor, then fields. +It does not apply to class declarations (use `classes` for them). +Default settings will be used for class declarations and all other syntax constructs other than class expressions. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "classExpressions": ["method", "constructor", "field"] }, + ], + }, +} +``` + + + + +```ts option='{ "classExpressions": ["method", "constructor", "field"] }' +const foo = class { + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field + + constructor() {} // -> constructor + + public static A(): void {} // -> method + public B(): void {} // -> method +}; +``` + + + + +```ts option='{ "classExpressions": ["method", "constructor", "field"] }' +const foo = class { + public static A(): void {} // -> method + public B(): void {} // -> method + + constructor() {} // -> constructor + + private C: string; // -> field + public D: string; // -> field + protected static E: string; // -> field +}; +``` + + + + +### Interfaces + +This config only specifies an order for interfaces: signatures, then methods, then constructors, then fields. +It does not apply to type literals (use `typeLiterals` for them). +Default settings will be used for type literals and all other syntax constructs other than class expressions. + +:::note +These member types are the only ones allowed for `interfaces`. +::: + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "interfaces": ["signature", "method", "constructor", "field"] }, + ], + }, +} +``` + + + + +```ts option='{ "interfaces": ["signature", "method", "constructor", "field"] }' +interface Foo { + B: string; // -> field + + new (); // -> constructor + + A(): void; // -> method + + [Z: string]: any; // -> signature +} +``` + + + + +```ts option='{ "interfaces": ["signature", "method", "constructor", "field"] }' +interface Foo { + [Z: string]: any; // -> signature + + A(): void; // -> method + + new (); // -> constructor + + B: string; // -> field +} +``` + + + + +### Type Literals + +This config only specifies an order for type literals: signatures, then methods, then constructors, then fields. +It does not apply to interfaces (use `interfaces` for them). +Default settings will be used for interfaces and all other syntax constructs other than class expressions. + +:::note +These member types are the only ones allowed for `typeLiterals`. +::: + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "typeLiterals": ["signature", "method", "constructor", "field"] }, + ], + }, +} +``` + + + + +```ts option='{ "typeLiterals": ["signature", "method", "constructor", "field"] }' +type Foo = { + B: string; // -> field + + A(): void; // -> method + + new (); // -> constructor + + [Z: string]: any; // -> signature +}; +``` + + + + +```ts option='{ "typeLiterals": ["signature", "method", "constructor", "field"] }' +type Foo = { + [Z: string]: any; // -> signature + + A(): void; // -> method + + new (); // -> constructor + + B: string; // -> field +}; +``` + + + + +### Sorting Options + +#### Sorting Alphabetically Within Member Groups + +The default member order will be applied if `memberTypes` is not specified. +You can see the default order in [Default Configuration](#default-configuration). + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { + "default": { + "order": "alphabetically", + }, + }, + ], + }, +} +``` + + + + +```ts option='{"default":{"order":"alphabetically"}}' +interface Foo { + a: x; + B: x; + c: x; + + B(): void; + c(): void; + a(): void; +} +``` + + + + +```ts option='{"default":{"order":"alphabetically"}}' +interface Foo { + B: x; + a: x; + c: x; + + B(): void; + a(): void; + c(): void; +} +``` + + + + +#### Sorting Alphabetically Within Custom Member Groups + +This config specifies that within each custom `memberTypes` group, members are in an alphabetic case-sensitive order. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { + "default": { + "memberTypes": ["method", "field"], + "order": "alphabetically", + }, + }, + ], + }, +} +``` + + + + +```ts option='{"default":{"memberTypes":["method","field"],"order":"alphabetically"}}' +interface Foo { + B(): void; + c(): void; + a(): void; + + a: x; + B: x; + c: x; +} +``` + + + + +```ts option='{"default":{"memberTypes":["method","field"],"order":"alphabetically"}}' +interface Foo { + B(): void; + a(): void; + c(): void; + + B: x; + a: x; + c: x; +} +``` + + + + +#### Sorting Alphabetically Case Insensitive Within Member Groups + +The default member order will be applied if `memberTypes` is not specified. +You can see the default order in [Default Configuration](#default-configuration). + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { + "default": { + "order": "alphabetically-case-insensitive", + }, + }, + ], + }, +} +``` + + + + +```ts option='{"default":{"order":"alphabetically-case-insensitive"}}' +interface Foo { + B: x; + a: x; + c: x; + + B(): void; + c(): void; + a(): void; +} +``` + + + + +```ts option='{"default":{"order":"alphabetically-case-insensitive"}}' +interface Foo { + a: x; + B: x; + c: x; + + a(): void; + B(): void; + c(): void; +} +``` + + + + +#### Sorting Alphabetically Ignoring Member Groups + +This config specifies that members are all sorted in an alphabetic case-sensitive order. +It ignores any member group types completely by specifying `"never"` for `memberTypes`. + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { "default": { "memberTypes": "never", "order": "alphabetically" } }, + ], + }, +} +``` + + + + +```ts option='{ "default": { "memberTypes": "never", "order": "alphabetically" } }' +interface Foo { + b(): void; + a: boolean; + + [a: string]: number; + new (): Bar; + (): Baz; +} +``` + + + + +```ts option='{ "default": { "memberTypes": "never", "order": "alphabetically" } }' +interface Foo { + [a: string]: number; + a: boolean; + b(): void; + + (): Baz; + new (): Bar; +} +``` + + + + +#### Sorting Optional Members First or Last + +The `optionalityOrder` option may be enabled to place all optional members in a group at the beginning or end of that group. + +This config places all optional members before all required members: + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { + "default": { + "optionalityOrder": "optional-first", + "order": "alphabetically", + }, + }, + ], + }, +} +``` + + + + +```ts option='{ "default": { "optionalityOrder": "optional-first", "order": "alphabetically" } }' +interface Foo { + a: boolean; + b?: number; + c: string; +} +``` + + + + +```ts option='{ "default": { "optionalityOrder": "optional-first", "order": "alphabetically" } }' +interface Foo { + b?: number; + a: boolean; + c: string; +} +``` + + + + +This config places all required members before all optional members: + +```jsonc +// .eslintrc.json +{ + "rules": { + "@typescript-eslint/member-ordering": [ + "error", + { + "default": { + "optionalityOrder": "required-first", + "order": "alphabetically", + }, + }, + ], + }, +} +``` + + + + +```ts option='{ "default": { "optionalityOrder": "required-first", "order": "alphabetically" } }' +interface Foo { + a: boolean; + b?: number; + c: string; +} +``` + + + + +```ts option='{ "default": { "optionalityOrder": "required-first", "order": "alphabetically" } }' +interface Foo { + a: boolean; + c: string; + b?: number; +} +``` + + + + +## All Supported Options + +### Member Types (Granular Form) + +There are multiple ways to specify the member types. +The most explicit and granular form is the following: + +```jsonc +[ + // Index signature + "signature", + "readonly-signature", + + // Fields + "public-static-field", + "public-static-readonly-field", + "protected-static-field", + "protected-static-readonly-field", + "private-static-field", + "private-static-readonly-field", + "#private-static-field", + "#private-static-readonly-field", + + "public-decorated-field", + "public-decorated-readonly-field", + "protected-decorated-field", + "protected-decorated-readonly-field", + "private-decorated-field", + "private-decorated-readonly-field", + + "public-instance-field", + "public-instance-readonly-field", + "protected-instance-field", + "protected-instance-readonly-field", + "private-instance-field", + "private-instance-readonly-field", + "#private-instance-field", + "#private-instance-readonly-field", + + "public-abstract-field", + "public-abstract-readonly-field", + "protected-abstract-field", + "protected-abstract-readonly-field", + + "public-field", + "public-readonly-field", + "protected-field", + "protected-readonly-field", + "private-field", + "private-readonly-field" + "#private-field", + "#private-readonly-field" + + "static-field", + "static-readonly-field", + "instance-field", + "instance-readonly-field" + "abstract-field", + "abstract-readonly-field", + + "decorated-field", + "decorated-readonly-field", + + "field", + "readonly-field", + + // Static initialization + "static-initialization", + + // Constructors + "public-constructor", + "protected-constructor", + "private-constructor", + + // Getters + "public-static-get", + "protected-static-get", + "private-static-get", + "#private-static-get", + + "public-decorated-get", + "protected-decorated-get", + "private-decorated-get", + + "public-instance-get", + "protected-instance-get", + "private-instance-get", + "#private-instance-get", + + "public-abstract-get", + "protected-abstract-get", + + "public-get", + "protected-get", + "private-get", + "#private-get", + + "static-get", + "instance-get", + "abstract-get", + + "decorated-get", + + "get", + + // Setters + "public-static-set", + "protected-static-set", + "private-static-set", + "#private-static-set", + + "public-decorated-set", + "protected-decorated-set", + "private-decorated-set", + + "public-instance-set", + "protected-instance-set", + "private-instance-set", + "#private-instance-set", + + "public-abstract-set", + "protected-abstract-set", + + "public-set", + "protected-set", + "private-set", + + "static-set", + "instance-set", + "abstract-set", + + "decorated-set", + + "set", + + // Methods + "public-static-method", + "protected-static-method", + "private-static-method", + "#private-static-method", + "public-decorated-method", + "protected-decorated-method", + "private-decorated-method", + "public-instance-method", + "protected-instance-method", + "private-instance-method", + "#private-instance-method", + "public-abstract-method", + "protected-abstract-method" +] +``` + +:::note +If you only specify some of the possible types, the non-specified ones can have any particular order. +This means that they can be placed before, within or after the specified types and the linter won't complain about it. +::: + +### Member Group Types (With Accessibility, Ignoring Scope) + +It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope. + +```jsonc +[ + // Index signature + // No accessibility for index signature. + + // Fields + "public-field", // = ["public-static-field", "public-instance-field"] + "protected-field", // = ["protected-static-field", "protected-instance-field"] + "private-field", // = ["private-static-field", "private-instance-field"] + + // Static initialization + // No accessibility for static initialization. + + // Constructors + // Only the accessibility of constructors is configurable. See below. + + // Getters + "public-get", // = ["public-static-get", "public-instance-get"] + "protected-get", // = ["protected-static-get", "protected-instance-get"] + "private-get", // = ["private-static-get", "private-instance-get"] + + // Setters + "public-set", // = ["public-static-set", "public-instance-set"] + "protected-set", // = ["protected-static-set", "protected-instance-set"] + "private-set", // = ["private-static-set", "private-instance-set"] + + // Methods + "public-method", // = ["public-static-method", "public-instance-method"] + "protected-method", // = ["protected-static-method", "protected-instance-method"] + "private-method", // = ["private-static-method", "private-instance-method"] +] +``` + +### Member Group Types (With Accessibility and a Decorator) + +It is also possible to group methods or fields with a decorator separately, optionally specifying +their accessibility. + +```jsonc +[ + // Index signature + // No decorators for index signature. + + // Fields + "public-decorated-field", + "protected-decorated-field", + "private-decorated-field", + + "decorated-field", // = ["public-decorated-field", "protected-decorated-field", "private-decorated-field"] + + // Static initialization + // No decorators for static initialization. + + // Constructors + // There are no decorators for constructors. + + // Getters + "public-decorated-get", + "protected-decorated-get", + "private-decorated-get", + + "decorated-get", // = ["public-decorated-get", "protected-decorated-get", "private-decorated-get"] + + // Setters + "public-decorated-set", + "protected-decorated-set", + "private-decorated-set", + + "decorated-set", // = ["public-decorated-set", "protected-decorated-set", "private-decorated-set"] + + // Methods + "public-decorated-method", + "protected-decorated-method", + "private-decorated-method", + + "decorated-method", // = ["public-decorated-method", "protected-decorated-method", "private-decorated-method"] +] +``` + +### Member Group Types (With Scope, Ignoring Accessibility) + +Another option is to group the member types by their scope (`public`, `protected`, `private`), ignoring their accessibility. + +```jsonc +[ + // Index signature + // No scope for index signature. + + // Fields + "static-field", // = ["public-static-field", "protected-static-field", "private-static-field"] + "instance-field", // = ["public-instance-field", "protected-instance-field", "private-instance-field"] + "abstract-field", // = ["public-abstract-field", "protected-abstract-field"] + + // Static initialization + // No scope for static initialization. + + // Constructors + "constructor", // = ["public-constructor", "protected-constructor", "private-constructor"] + + // Getters + "static-get", // = ["public-static-get", "protected-static-get", "private-static-get"] + "instance-get", // = ["public-instance-get", "protected-instance-get", "private-instance-get"] + "abstract-get", // = ["public-abstract-get", "protected-abstract-get"] + + // Setters + "static-set", // = ["public-static-set", "protected-static-set", "private-static-set"] + "instance-set", // = ["public-instance-set", "protected-instance-set", "private-instance-set"] + "abstract-set", // = ["public-abstract-set", "protected-abstract-set"] + + // Methods + "static-method", // = ["public-static-method", "protected-static-method", "private-static-method"] + "instance-method", // = ["public-instance-method", "protected-instance-method", "private-instance-method"] + "abstract-method", // = ["public-abstract-method", "protected-abstract-method"] +] +``` + +### Member Group Types (With Scope and Accessibility) + +The third grouping option is to ignore both scope and accessibility. + +```jsonc +[ + // Index signature + // No grouping for index signature. + + // Fields + "field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", + // "public-abstract-field", "protected-abstract-field"] + + // Static initialization + // No grouping for static initialization. + + // Constructors + // Only the accessibility of constructors is configurable. + + // Getters + "get", // = ["public-static-get", "protected-static-get", "private-static-get", "public-instance-get", "protected-instance-get", "private-instance-get", + // "public-abstract-get", "protected-abstract-get"] + + // Setters + "set", // = ["public-static-set", "protected-static-set", "private-static-set", "public-instance-set", "protected-instance-set", "private-instance-set", + // "public-abstract-set", "protected-abstract-set"] + + // Methods + "method", // = ["public-static-method", "protected-static-method", "private-static-method", "public-instance-method", "protected-instance-method", "private-instance-method", + // "public-abstract-method", "protected-abstract-method"] +] +``` + +### Member Group Types (Readonly Fields) + +It is possible to group fields by their `readonly` modifiers. + +```jsonc +[ + // Index signature + "readonly-signature", + "signature", + + // Fields + "readonly-field", // = ["public-static-readonly-field", "protected-static-readonly-field", "private-static-readonly-field", "public-instance-readonly-field", "protected-instance-readonly-field", "private-instance-readonly-field", "public-abstract-readonly-field", "protected-abstract-readonly-field"] + "field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", "public-abstract-field", "protected-abstract-field"] +] +``` + +### Grouping Different Member Types at the Same Rank + +It is also possible to group different member types at the same rank. + +```jsonc +[ + // Index signature + "signature", + + // Fields + "field", + + // Static initialization + "static-initialization", + + // Constructors + "constructor", + + // Getters and Setters at the same rank + ["get", "set"], + + // Methods + "method", +] +``` + +## When Not To Use It + +If you don't care about the general order of your members, then you will not need this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx new file mode 100644 index 00000000..1f269627 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx @@ -0,0 +1,124 @@ +--- +description: 'Enforce using a particular method signature syntax.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/method-signature-style** for documentation. + +TypeScript provides two ways to define an object/interface function property: + +```ts +interface Example { + // method shorthand syntax + func(arg: string): number; + + // regular property with function type + func: (arg: string) => number; +} +``` + +The two are very similar; most of the time it doesn't matter which one you use. + +A good practice is to use the TypeScript's `strict` option (which implies `strictFunctionTypes`) which enables correct typechecking for function properties only (method signatures get old behavior). + +TypeScript FAQ: + +> A method and a function property of the same type behave differently. +> Methods are always bivariant in their argument, while function properties are contravariant in their argument under `strictFunctionTypes`. + +See the reasoning behind that in the [TypeScript PR for the compiler option](https://github.com/microsoft/TypeScript/pull/18654). + +## Options + +This rule accepts one string option: + +- `"property"`: Enforce using property signature for functions. Use this to enforce maximum correctness together with TypeScript's strict mode. +- `"method"`: Enforce using method signature for functions. Use this if you aren't using TypeScript's strict mode and prefer this style. + +### `property` + +{/* insert option description */} + +Examples of code with `property` option. + + + + +```ts option='"property"' +interface T1 { + func(arg: string): number; +} +type T2 = { + func(arg: boolean): void; +}; +interface T3 { + func(arg: number): void; + func(arg: string): void; + func(arg: boolean): void; +} +``` + + + + +```ts option='"property"' +interface T1 { + func: (arg: string) => number; +} +type T2 = { + func: (arg: boolean) => void; +}; +// this is equivalent to the overload +interface T3 { + func: ((arg: number) => void) & + ((arg: string) => void) & + ((arg: boolean) => void); +} +``` + + + + +### `method` + +{/* insert option description */} + +Examples of code with `method` option. + + + + +```ts option='"method"' +interface T1 { + func: (arg: string) => number; +} +type T2 = { + func: (arg: boolean) => void; +}; +``` + + + + +```ts option='"method"' +interface T1 { + func(arg: string): number; +} +type T2 = { + func(arg: boolean): void; +}; +``` + + + + +## When Not To Use It + +If you don't want to enforce a particular style for object/interface function types, and/or if you don't use `strictFunctionTypes`, then you don't need this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx new file mode 100644 index 00000000..e129b443 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx @@ -0,0 +1,755 @@ +--- +description: 'Enforce naming conventions for everything across a codebase.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/naming-convention** for documentation. + +Enforcing naming conventions helps keep the codebase consistent, and reduces overhead when thinking about how to name a variable. +Additionally, a well-designed style guide can help communicate intent, such as by enforcing all private properties begin with an `_`, and all global-level constants are written in `UPPER_CASE`. + +:::note +This rule is _feature frozen_: it will no longer receive new features such as new options. +It still will accept bug and documentation fixes for its existing area of features and to support new TypeScript versions. + +Stylistic rules that enforce naming and/or sorting conventions tend to grow incomprehensibly complex as increasingly obscure features are requested. +This rule has reached the limit of what is reasonable for the typescript-eslint project to maintain. +See [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. +::: + +## Examples + +This rule allows you to enforce conventions for any identifier, using granular selectors to create a fine-grained style guide. + +:::note + +This rule only needs type information in specific cases, detailed below. + +::: + +## Options + +This rule accepts an array of objects, with each object describing a different naming convention. +Each property will be described in detail below. Also see the examples section below for illustrated examples. + +```ts +type Options = { + // format options + format: + | ( + | 'camelCase' + | 'strictCamelCase' + | 'PascalCase' + | 'StrictPascalCase' + | 'snake_case' + | 'UPPER_CASE' + )[] + | null; + custom?: { + regex: string; + match: boolean; + }; + leadingUnderscore?: + | 'forbid' + | 'require' + | 'requireDouble' + | 'allow' + | 'allowDouble' + | 'allowSingleOrDouble'; + trailingUnderscore?: + | 'forbid' + | 'require' + | 'requireDouble' + | 'allow' + | 'allowDouble' + | 'allowSingleOrDouble'; + prefix?: string[]; + suffix?: string[]; + + // selector options + selector: Selector | Selector[]; + filter?: + | string + | { + regex: string; + match: boolean; + }; + // the allowed values for these are dependent on the selector - see below + modifiers?: Modifiers[]; + types?: Types[]; +}[]; + +// the default config is similar to ESLint's camelcase rule but more strict +const defaultOptions: Options = [ + { + selector: 'default', + format: ['camelCase'], + leadingUnderscore: 'allow', + trailingUnderscore: 'allow', + }, + + { + selector: 'import', + format: ['camelCase', 'PascalCase'], + }, + + { + selector: 'variable', + format: ['camelCase', 'UPPER_CASE'], + leadingUnderscore: 'allow', + trailingUnderscore: 'allow', + }, + + { + selector: 'typeLike', + format: ['PascalCase'], + }, +]; +``` + +### Format Options + +Every single selector can have the same set of format options. +For information about how each selector is applied, see ["How does the rule evaluate a name's format?"](#how-does-the-rule-evaluate-a-names-format). + +#### `format` + +The `format` option defines the allowed formats for the identifier. This option accepts an array of the following values, and the identifier can match any of them: + +- `camelCase` - standard camelCase format - no underscores are allowed between characters, and consecutive capitals are allowed (i.e. both `myID` and `myId` are valid). +- `PascalCase` - same as `camelCase`, except the first character must be upper-case. +- `snake_case` - standard snake_case format - all characters must be lower-case, and underscores are allowed. +- `strictCamelCase` - same as `camelCase`, but consecutive capitals are not allowed (i.e. `myId` is valid, but `myID` is not). +- `StrictPascalCase` - same as `strictCamelCase`, except the first character must be upper-case. +- `UPPER_CASE` - same as `snake_case`, except all characters must be upper-case. + +Instead of an array, you may also pass `null`. This signifies "this selector shall not have its format checked". +This can be useful if you want to enforce no particular format for a specific selector, after applying a group selector. + +#### `custom` + +The `custom` option defines a custom regex that the identifier must (or must not) match. This option allows you to have a bit more finer-grained control over identifiers, letting you ban (or force) certain patterns and substrings. +Accepts an object with the following properties: + +- `match` - true if the identifier _must_ match the `regex`, false if the identifier _must not_ match the `regex`. +- `regex` - a string that is then passed into RegExp to create a new regular expression: `new RegExp(regex)` + +#### `filter` + +The `filter` option operates similar to `custom`, accepting the same shaped object, except that it controls if the rest of the configuration should or should not be applied to an identifier. + +You can use this to include or exclude specific identifiers from specific configurations. + +Accepts an object with the following properties: + +- `match` - true if the identifier _must_ match the `regex`, false if the identifier _must not_ match the `regex`. +- `regex` - a string that is then passed into RegExp to create a new regular expression: `new RegExp(regex)` + +Alternatively, `filter` accepts a regular expression (anything accepted into `new RegExp(filter)`). In this case, it's treated as if you had passed an object with the regex and `match: true`. + +#### `leadingUnderscore` / `trailingUnderscore` + +The `leadingUnderscore` / `trailingUnderscore` options control whether leading/trailing underscores are considered valid. Accepts one of the following values: + +- `allow` - existence of a single leading/trailing underscore is not explicitly enforced. +- `allowDouble` - existence of a double leading/trailing underscore is not explicitly enforced. +- `allowSingleOrDouble` - existence of a single or a double leading/trailing underscore is not explicitly enforced. +- `forbid` - a leading/trailing underscore is not allowed at all. +- `require` - a single leading/trailing underscore must be included. +- `requireDouble` - two leading/trailing underscores must be included. + +#### `prefix` / `suffix` + +The `prefix` / `suffix` options control which prefix/suffix strings must exist for the identifier. Accepts an array of strings. + +If these are provided, the identifier must start with one of the provided values. For example, if you provide `{ prefix: ['Class', 'IFace', 'Type'] }`, then the following names are valid: `ClassBar`, `IFaceFoo`, `TypeBaz`, but the name `Bang` is not valid, as it contains none of the prefixes. + +**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, therefore PascalCase must be used to allow variables such as `isEnabled` using the prefix `is`. + +### Selector Options + +- `selector` allows you to specify what types of identifiers to target. + - Accepts one or array of selectors to define an option block that applies to one or multiple selectors. + - For example, if you provide `{ selector: ['function', 'variable'] }`, then it will apply the same option to variable and function nodes. + - See [Allowed Selectors, Modifiers and Types](#allowed-selectors-modifiers-and-types) below for the complete list of allowed selectors. +- `modifiers` allows you to specify which modifiers to granularly apply to, such as the accessibility (`#private`/`private`/`protected`/`public`), or if the thing is `static`, etc. + - The name must match _all_ of the modifiers. + - For example, if you provide `{ modifiers: ['private','readonly','static'] }`, then it will only match something that is `private static readonly`, and something that is just `private` will not match. + - The following `modifiers` are allowed: + - `abstract`,`override`,`private`,`protected`,`readonly`,`static` - matches any member explicitly declared with the given modifier. + - `async` - matches any method, function, or function variable which is async via the `async` keyword (e.g. does not match functions that return promises without using `async` keyword) + - `const` - matches a variable declared as being `const` (`const x = 1`). + - `destructured` - matches a variable declared via an object destructuring pattern (`const {x, z = 2}`). + - Note that this does not match renamed destructured properties (`const {x: y, a: b = 2}`). + - `exported` - matches anything that is exported from the module. + - `global` - matches a variable/function declared in the top-level scope. + - `#private` - matches any member with a private identifier (an identifier that starts with `#`) + - `public` - matches any member that is either explicitly declared as `public`, or has no visibility modifier (i.e. implicitly public). + - `requiresQuotes` - matches any name that requires quotes as it is not a valid identifier (i.e. has a space, a dash, etc in it). + - `unused` - matches anything that is not used. +- `types` allows you to specify which types to match. This option supports simple, primitive types only (`array`,`boolean`,`function`,`number`,`string`). + - The name must match _one_ of the types. + - **_NOTE - Using this option will require that you lint with type information._** + - For example, this lets you do things like enforce that `boolean` variables are prefixed with a verb. + - The following `types` are allowed: + - `array` matches any type assignable to `Array | null | undefined` + - `boolean` matches any type assignable to `boolean | null | undefined` + - `function` matches any type assignable to `Function | null | undefined` + - `number` matches any type assignable to `number | null | undefined` + - `string` matches any type assignable to `string | null | undefined` + +The ordering of selectors does not matter. The implementation will automatically sort the selectors to ensure they match from most-specific to least specific. It will keep checking selectors in that order until it finds one that matches the name. See ["How does the rule automatically order selectors?"](#how-does-the-rule-automatically-order-selectors) + +#### Allowed Selectors, Modifiers and Types + +There are two types of selectors, individual selectors, and grouped selectors. + +##### Individual Selectors + +Individual Selectors match specific, well-defined sets. There is no overlap between each of the individual selectors. + +- `classicAccessor` - matches any accessor. It refers to the methods attached to `get` and `set` syntax. + - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `autoAccessor` - matches any auto-accessor. An auto-accessor is just a class field starting with an `accessor` keyword. + - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `class` - matches any class declaration. + - Allowed `modifiers`: `abstract`, `exported`, `unused`. + - Allowed `types`: none. +- `classMethod` - matches any class method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. + - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `requiresQuotes`, `static`. + - Allowed `types`: none. +- `classProperty` - matches any class property. Does not match properties that have direct function expression or arrow function expression values. + - Allowed `modifiers`: `abstract`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `enum` - matches any enum declaration. + - Allowed `modifiers`: `exported`, `unused`. + - Allowed `types`: none. +- `enumMember` - matches any enum member. + - Allowed `modifiers`: `requiresQuotes`. + - Allowed `types`: none. +- `function` - matches any named function declaration or named function expression. + - Allowed `modifiers`: `async`, `exported`, `global`, `unused`. + - Allowed `types`: none. +- `import` - matches namespace imports and default imports (i.e. does not match named imports). + - Allowed `modifiers`: `default`, `namespace`. + - Allowed `types`: none. +- `interface` - matches any interface declaration. + - Allowed `modifiers`: `exported`, `unused`. + - Allowed `types`: none. +- `objectLiteralMethod` - matches any object literal method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. + - Allowed `modifiers`: `async`, `public`, `requiresQuotes`. + - Allowed `types`: none. +- `objectLiteralProperty` - matches any object literal property. Does not match properties that have direct function expression or arrow function expression values. + - Allowed `modifiers`: `public`, `requiresQuotes`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `parameter` - matches any function parameter. Does not match parameter properties. + - Allowed `modifiers`: `destructured`, `unused`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `parameterProperty` - matches any parameter property. + - Allowed `modifiers`: `private`, `protected`, `public`, `readonly`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `typeAlias` - matches any type alias declaration. + - Allowed `modifiers`: `exported`, `unused`. + - Allowed `types`: none. +- `typeMethod` - matches any object type method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. + - Allowed `modifiers`: `public`, `requiresQuotes`. + - Allowed `types`: none. +- `typeParameter` - matches any generic type parameter declaration. + - Allowed `modifiers`: `unused`. + - Allowed `types`: none. +- `typeProperty` - matches any object type property. Does not match properties that have direct function expression or arrow function expression values. + - Allowed `modifiers`: `public`, `readonly`, `requiresQuotes`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `variable` - matches any `const` / `let` / `var` variable name. + - Allowed `modifiers`: `async`, `const`, `destructured`, `exported`, `global`, `unused`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. + +##### Group Selectors + +Group Selectors are provided for convenience, and essentially bundle up sets of individual selectors. + +- `default` - matches everything. + - Allowed `modifiers`: all modifiers. + - Allowed `types`: none. +- `accessor` - matches the same as `classicAccessor` and `autoAccessor`. + - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `memberLike` - matches the same as `classicAccessor`, `autoAccessor`, `enumMember`, `method`, `parameterProperty`, `property`. + - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. + - Allowed `types`: none. +- `method` - matches the same as `classMethod`, `objectLiteralMethod`, `typeMethod`. + - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. + - Allowed `types`: none. +- `property` - matches the same as `classProperty`, `objectLiteralProperty`, `typeProperty`. + - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. + - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. +- `typeLike` - matches the same as `class`, `enum`, `interface`, `typeAlias`, `typeParameter`. + - Allowed `modifiers`: `abstract`, `unused`. + - Allowed `types`: none. +- `variableLike` - matches the same as `function`, `parameter` and `variable`. + - Allowed `modifiers`: `async`, `unused`. + - Allowed `types`: none. + +## FAQ + +This is a big rule, and there's a lot of docs. Here are a few clarifications that people often ask about or figure out via trial-and-error. + +### How does the rule evaluate a selector? + +Each selector is checked in the following way: + +1. check the `filter` + 1. if `filter` is omitted → skip this step. + 2. if the name matches the `filter` → continue evaluating this selector. + 3. if the name does not match the `filter` → skip this selector and continue to the next selector. +2. check the `selector` + 1. if `selector` is one individual selector → the name's type must be of that type. + 2. if `selector` is a group selector → the name's type must be one of the grouped types. + 3. if `selector` is an array of selectors → apply the above for each selector in the array. +3. check the `types` + 1. if `types` is omitted → skip this step. + 2. if the name has a type in `types` → continue evaluating this selector. + 3. if the name does not have a type in `types` → skip this selector and continue to the next selector. + +A name is considered to pass the config if it: + +1. Matches one selector and passes all of that selector's format checks. +2. Matches no selectors. + +A name is considered to fail the config if it matches one selector and fails one that selector's format checks. + +### How does the rule automatically order selectors? + +Each identifier should match exactly one selector. It may match multiple group selectors - but only ever one selector. +With that in mind - the base sort order works out to be: + +1. Individual Selectors +2. Grouped Selectors +3. Default Selector + +Within each of these categories, some further sorting occurs based on what selector options are supplied: + +1. `filter` is given the highest priority above all else. +2. `types` +3. `modifiers` +4. everything else + +For example, if you provide the following config: + +```ts +[ + /* 1 */ { selector: 'default', format: ['camelCase'] }, + /* 2 */ { selector: 'variable', format: ['snake_case'] }, + /* 3 */ { selector: 'variable', types: ['boolean'], format: ['UPPER_CASE'] }, + /* 4 */ { selector: 'variableLike', format: ['PascalCase'] }, +]; +``` + +Then for the code `const x = 1`, the rule will validate the selectors in the following order: `3`, `2`, `4`, `1`. +To clearly spell it out: + +- (3) is tested first because it has `types` and is an individual selector. +- (2) is tested next because it is an individual selector. +- (4) is tested next as it is a grouped selector. +- (1) is tested last as it is the base default selector. + +Its worth noting that whilst this order is applied, all selectors may not run on a name. +This is explained in ["How does the rule evaluate a name's format?"](#how-does-the-rule-evaluate-a-names-format) + +### How does the rule evaluate a name's format? + +When the format of an identifier is checked, it is checked in the following order: + +1. validate leading underscore +1. validate trailing underscore +1. validate prefix +1. validate suffix +1. validate custom +1. validate format + +For steps 1-4, if the identifier matches the option, the matching part will be removed. +This is done so that you can apply formats like PascalCase without worrying about prefixes or underscores causing it to not match. + +One final note is that if the name were to become empty via this trimming process, it is considered to match all `format`s. An example of where this might be useful is for generic type parameters, where you want all names to be prefixed with `T`, but also want to allow for the single character `T` name. + +Here are some examples to help illustrate + +Name: `_IMyInterface` +Selector: + +```json +{ + "leadingUnderscore": "require", + "prefix": ["I"], + "format": ["UPPER_CASE", "StrictPascalCase"] +} +``` + +1. `name = _IMyInterface` +1. validate leading underscore + 1. config is provided + 1. check name → pass + 1. Trim underscore → `name = IMyInterface` +1. validate trailing underscore + 1. config is not provided → skip +1. validate prefix + 1. config is provided + 1. check name → pass + 1. Trim prefix → `name = MyInterface` +1. validate suffix + 1. config is not provided → skip +1. validate custom + 1. config is not provided → skip +1. validate format + 1. for each format... + 1. `format = 'UPPER_CASE'` + 1. check format → fail. + - Important to note that if you supply multiple formats - the name only needs to match _one_ of them! + 1. `format = 'StrictPascalCase'` + 1. check format → success. +1. **_success_** + +Name: `IMyInterface` +Selector: + +```json +{ + "format": ["StrictPascalCase"], + "trailingUnderscore": "allow", + "custom": { + "regex": "^I[A-Z]", + "match": false + } +} +``` + +1. `name = IMyInterface` +1. validate leading underscore + 1. config is not provided → skip +1. validate trailing underscore + 1. config is provided + 1. check name → pass + 1. Trim underscore → `name = IMyInterface` +1. validate prefix + 1. config is not provided → skip +1. validate suffix + 1. config is not provided → skip +1. validate custom + 1. config is provided + 1. `regex = new RegExp("^I[A-Z]")` + 1. `regex.test(name) === custom.match` + 1. **_fail_** → report and exit + +### What happens if I provide a `modifiers` to a Group Selector? + +Some group selectors accept `modifiers`. For the most part these will work exactly the same as with individual selectors. +There is one exception to this in that a modifier might not apply to all individual selectors covered by a group selector. + +For example - `memberLike` includes the `enumMember` selector, and it allows the `protected` modifier. +An `enumMember` can never ever be `protected`, which means that the following config will never match any `enumMember`: + +```json +{ + "selector": "memberLike", + "modifiers": ["protected"] +} +``` + +To help with matching, members that cannot specify an accessibility will always have the `public` modifier. This means that the following config will always match any `enumMember`: + +```json +{ + "selector": "memberLike", + "modifiers": ["public"] +} +``` + +## Examples + +### Enforce that all variables, functions and properties follow are camelCase + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { "selector": "variableLike", "format": ["camelCase"] } + ] +} +``` + +### Enforce that private members are prefixed with an underscore + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "memberLike", + "modifiers": ["private"], + "format": ["camelCase"], + "leadingUnderscore": "require" + } + ] +} +``` + +### Enforce that boolean variables are prefixed with an allowed verb + +**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, thus PascalCase must be used to allow variables such as `isEnabled`. + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "variable", + "types": ["boolean"], + "format": ["PascalCase"], + "prefix": ["is", "should", "has", "can", "did", "will"] + } + ] +} +``` + +### Enforce that all variables are either in camelCase or UPPER_CASE + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "variable", + "format": ["camelCase", "UPPER_CASE"] + } + ] +} +``` + +### Enforce that all const variables are in UPPER_CASE + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "variable", + "modifiers": ["const"], + "format": ["UPPER_CASE"] + } + ] +} +``` + +### Enforce that type parameters (generics) are prefixed with `T` + +This allows you to emulate the old `generic-type-naming` rule. + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "typeParameter", + "format": ["PascalCase"], + "prefix": ["T"] + } + ] +} +``` + +### Enforce that interface names do not begin with an `I` + +This allows you to emulate the old `interface-name-prefix` rule. + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "interface", + "format": ["PascalCase"], + "custom": { + "regex": "^I[A-Z]", + "match": false + } + } + ] +} +``` + +### Enforce that function names are either in camelCase or PascalCase + +Function names are typically camelCase, but UI library components (especially JSX, such as React and Solid) use PascalCase to distinguish them from intrinsic elements. If you are writing function components, consider allowing both camelCase and PascalCase for functions. + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "function", + "format": ["camelCase", "PascalCase"] + } + ] +} +``` + +### Enforce that variable and function names are in camelCase + +This allows you to lint multiple type with same pattern. + +```json +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": ["variable", "function"], + "format": ["camelCase"], + "leadingUnderscore": "allow" + } + ] +} +``` + +### Ignore properties that **_require_** quotes + +Sometimes you have to use a quoted name that breaks the convention (for example, HTTP headers). +If this is a common thing in your codebase, then you have a few options. + +If you simply want to allow all property names that require quotes, you can use the `requiresQuotes` modifier to match any property name that _requires_ quoting, and use `format: null` to ignore the name. + +```jsonc +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": [ + "classProperty", + "objectLiteralProperty", + "typeProperty", + "classMethod", + "objectLiteralMethod", + "typeMethod", + "accessor", + "enumMember", + ], + "format": null, + "modifiers": ["requiresQuotes"], + }, + ], +} +``` + +If you have a small and known list of exceptions, you can use the `filter` option to ignore these specific names only: + +```jsonc +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "property", + "format": ["strictCamelCase"], + "filter": { + // you can expand this regex to add more allowed names + "regex": "^(Property-Name-One|Property-Name-Two)$", + "match": false, + }, + }, + ], +} +``` + +You can use the `filter` option to ignore names with specific characters: + +```jsonc +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "property", + "format": ["strictCamelCase"], + "filter": { + // you can expand this regex as you find more cases that require quoting that you want to allow + "regex": "[- ]", + "match": false, + }, + }, + ], +} +``` + +Note that there is no way to ignore any name that is quoted - only names that are required to be quoted. +This is intentional - adding quotes around a name is not an escape hatch for proper naming. +If you want an escape hatch for a specific name - you should can use an [`eslint-disable` comment](https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments). + +### Ignore destructured names + +Sometimes you might want to allow destructured properties to retain their original name, even if it breaks your naming convention. + +You can use the `destructured` modifier to match these names, and explicitly set `format: null` to apply no formatting: + +```jsonc +{ + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "variable", + "modifiers": ["destructured"], + "format": null, + }, + ], +} +``` + +### Enforce the codebase follows ESLint's `camelcase` conventions + +```json +{ + "camelcase": "off", + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "default", + "format": ["camelCase"] + }, + + { + "selector": "variable", + "format": ["camelCase", "UPPER_CASE"] + }, + { + "selector": "parameter", + "format": ["camelCase"], + "leadingUnderscore": "allow" + }, + + { + "selector": "memberLike", + "modifiers": ["private"], + "format": ["camelCase"], + "leadingUnderscore": "require" + }, + + { + "selector": "typeLike", + "format": ["PascalCase"] + } + ] +} +``` + +## When Not To Use It + +This rule can be very strict. +If you don't have strong needs for enforcing naming conventions, we recommend using it only to flag very egregious violations of your naming standards. +Consider documenting your naming conventions and enforcing them in code review if you have processes like that. + +If you do not want to enforce naming conventions for anything, you can disable this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend that if you care about naming conventions, pick a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx new file mode 100644 index 00000000..d2349186 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx @@ -0,0 +1,35 @@ +--- +description: 'Disallow generic `Array` constructors.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-array-constructor** for documentation. + +This rule extends the base [`eslint/no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) rule. +It adds support for the generically typed `Array` constructor (`new Array()`). + + + + +```ts +Array(0, 1, 2); +new Array(0, 1, 2); +``` + + + + +```ts +Array(0, 1, 2); +new Array(x, y, z); + +Array(500); +new Array(someOtherArray.length); +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx new file mode 100644 index 00000000..38e170fc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx @@ -0,0 +1,44 @@ +--- +description: 'Disallow using the `delete` operator on array values.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-array-delete** for documentation. + +When using the `delete` operator with an array value, the array's `length` property is not affected, +but the element at the specified index is removed and leaves an empty slot in the array. +This is likely to lead to unexpected behavior. As mentioned in the +[MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#deleting_array_elements), +the recommended way to remove an element from an array is by using the +[`Array#splice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) method. + +## Examples + + + + +```ts +declare const arr: number[]; + +delete arr[0]; +``` + + + + +```ts +declare const arr: number[]; + +arr.splice(0, 1); +``` + + + + +## When Not To Use It + +When you want to allow the delete operator with array expressions. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx new file mode 100644 index 00000000..1da882c1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx @@ -0,0 +1,112 @@ +--- +description: 'Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-base-to-string** for documentation. + +JavaScript will call `toString()` on an object when it is converted to a string, such as when concatenated with a string (`expr + ''`), when interpolated into template literals (`${expr}`), or when passed as an argument to the String constructor (`String(expr)`). +The default Object `.toString()` and `toLocaleString()` use the format `"[object Object]"`, which is often not what was intended. +This rule reports on stringified values that aren't primitives and don't define a more useful `.toString()` or `toLocaleString()` method. + +> Note that `Function` provides its own `.toString()` and `toLocaleString()` that return the function's code. +> Functions are not flagged by this rule. + +## Examples + + + + +```ts +// Passing an object or class instance to string concatenation: +'' + {}; + +class MyClass {} +const value = new MyClass(); +value + ''; + +// Interpolation and manual .toString() and `toLocaleString()` calls too: +`Value: ${value}`; +String({}); +({}).toString(); +({}).toLocaleString(); +``` + + + + +```ts +// These types all have useful .toString() and `toLocaleString()` methods +'Text' + true; +`Value: ${123}`; +`Arrays too: ${[1, 2, 3]}`; +(() => {}).toString(); +String(42); +(() => {}).toLocaleString(); + +// Defining a custom .toString class is considered acceptable +class CustomToString { + toString() { + return 'Hello, world!'; + } +} +`Value: ${new CustomToString()}`; + +const literalWithToString = { + toString: () => 'Hello, world!', +}; + +`Value: ${literalWithToString}`; +``` + + + + +## Alternatives + +Consider using `JSON.stringify` when you want to convert non-primitive things to string for logging, debugging, etc. + +```typescript +declare const o: object; +const errorMessage = 'Found unexpected value: ' + JSON.stringify(o); +``` + +## Options + +### `ignoredTypeNames` + +{/* insert option description */} + +This is useful for types missing `toString()` or `toLocaleString()` (but actually has `toString()` or `toLocaleString()`). +There are some types missing `toString()` or `toLocaleString()` in old versions of TypeScript, like `RegExp`, `URL`, `URLSearchParams` etc. + +The following patterns are considered correct with the default options `{ ignoredTypeNames: ["RegExp"] }`: + +```ts option='{ "ignoredTypeNames": ["RegExp"] }' showPlaygroundButton +`${/regex/}`; +'' + /regex/; +/regex/.toString(); +let value = /regex/; +value.toString(); +let text = `${value}`; +String(/regex/); +``` + +## When Not To Use It + +If you don't mind a risk of `"[object Object]"` or incorrect type coercions in your values, then you will not need this rule. + +## Related To + +- [`restrict-plus-operands`](./restrict-plus-operands.mdx) +- [`restrict-template-expressions`](./restrict-template-expressions.mdx) + +## Further Reading + +- [`Object.prototype.toString()` MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) +- [`Object.prototype.toLocaleString()` MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString) +- [Microsoft/TypeScript Add missing toString declarations for base types that have them](https://github.com/microsoft/TypeScript/issues/38347) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx new file mode 100644 index 00000000..01a47a9d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx @@ -0,0 +1,75 @@ +--- +description: 'Disallow non-null assertion in locations that may be confusing.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-confusing-non-null-assertion** for documentation. + +Using a non-null assertion (`!`) next to an assignment or equality check (`=` or `==` or `===`) creates code that is confusing as it looks similar to an inequality check (`!=` `!==`). + +```typescript +a! == b; // a non-null assertion(`!`) and an equals test(`==`) +a !== b; // not equals test(`!==`) +a! === b; // a non-null assertion(`!`) and a triple equals test(`===`) +``` + +Using a non-null assertion (`!`) next to an in test (`in`) or an instanceof test (`instanceof`) creates code that is confusing since it may look like the operator is negated, but it is actually not. + +{/* prettier-ignore */} +```typescript +a! in b; // a non-null assertion(`!`) and an in test(`in`) +a !in b; // also a non-null assertion(`!`) and an in test(`in`) +!(a in b); // a negated in test + +a! instanceof b; // a non-null assertion(`!`) and an instanceof test(`instanceof`) +a !instanceof b; // also a non-null assertion(`!`) and an instanceof test(`instanceof`) +!(a instanceof b); // a negated instanceof test +```` + +This rule flags confusing `!` assertions and suggests either removing them or wrapping the asserted expression in `()` parenthesis. + +## Examples + + + + +```ts +interface Foo { + bar?: string; + num?: number; +} + +const foo: Foo = getFoo(); +const isEqualsBar = foo.bar! == 'hello'; +const isEqualsNum = 1 + foo.num! == 2; +``` + + + + +{/* prettier-ignore */} +```ts +interface Foo { + bar?: string; + num?: number; +} + +const foo: Foo = getFoo(); +const isEqualsBar = foo.bar == 'hello'; +const isEqualsNum = (1 + foo.num!) == 2; +``` + + + + +## When Not To Use It + +If you don't care about this confusion, then you will not need this rule. + +## Further Reading + +- [`Issue: Easy misunderstanding: "! ==="`](https://github.com/microsoft/TypeScript/issues/37837) in [TypeScript repo](https://github.com/microsoft/TypeScript) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx new file mode 100644 index 00000000..7f1c1c95 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx @@ -0,0 +1,154 @@ +--- +description: 'Require expressions of type void to appear in statement position.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-confusing-void-expression** for documentation. + +`void` in TypeScript refers to a function return that is meant to be ignored. +Attempting to use a `void`-typed value, such as storing the result of a called function in a variable, is often a sign of a programmer error. +`void` can also be misleading for other developers even if used correctly. + +This rule prevents `void` type expressions from being used in misleading locations such as being assigned to a variable, provided as a function argument, or returned from a function. + +## Examples + + + + +```ts +// somebody forgot that `alert` doesn't return anything +const response = alert('Are you sure?'); +console.log(alert('Are you sure?')); + +// it's not obvious whether the chained promise will contain the response (fixable) +promise.then(value => window.postMessage(value)); + +// it looks like we are returning the result of `console.error` (fixable) +function doSomething() { + if (!somethingToDo) { + return console.error('Nothing to do!'); + } + + console.log('Doing a thing...'); +} +``` + + + + +```ts +// just a regular void function in a statement position +alert('Hello, world!'); + +// this function returns a boolean value so it's ok +const response = confirm('Are you sure?'); +console.log(confirm('Are you sure?')); + +// now it's obvious that `postMessage` doesn't return any response +promise.then(value => { + window.postMessage(value); +}); + +// now it's explicit that we want to log the error and return early +function doSomething() { + if (!somethingToDo) { + console.error('Nothing to do!'); + return; + } + + console.log('Doing a thing...'); +} + +// using logical expressions for their side effects is fine +cond && console.log('true'); +cond || console.error('false'); +cond ? console.log('true') : console.error('false'); +``` + + + + +## Options + +### `ignoreArrowShorthand` + +{/* insert option description */} + +Whether to ignore "shorthand" `() =>` arrow functions: those without `{ ... }` braces. + +It might be undesirable to wrap every arrow function shorthand expression. +Especially when using the Prettier formatter, which spreads such code across 3 lines instead of 1. + +Examples of additional **correct** code with this option enabled: + +```ts option='{ "ignoreArrowShorthand": true }' showPlaygroundButton +promise.then(value => window.postMessage(value)); +``` + +### `ignoreVoidOperator` + +{/* insert option description */} + +Whether to ignore returns that start with the `void` operator. + +It might be preferable to only use some distinct syntax +to explicitly mark the confusing but valid usage of void expressions. +This option allows void expressions which are explicitly wrapped in the `void` operator. +This can help avoid confusion among other developers as long as they are made aware of this code style. + +This option also changes the automatic fixes for common cases to use the `void` operator. +It also enables a suggestion fix to wrap the void expression with `void` operator for every problem reported. + +Examples of additional **correct** code with this option enabled: + +```ts option='{ "ignoreVoidOperator": true }' showPlaygroundButton +// now it's obvious that we don't expect any response +promise.then(value => void window.postMessage(value)); + +// now it's explicit that we don't want to return anything +function doSomething() { + if (!somethingToDo) { + return void console.error('Nothing to do!'); + } + + console.log('Doing a thing...'); +} + +// we are sure that we want to always log `undefined` +console.log(void alert('Hello, world!')); +``` + +### `ignoreVoidReturningFunctions` + +{/* insert option description */} + +Whether to ignore returns from functions with `void` return types when inside a function with a `void` return type. + +Some projects prefer allowing functions that explicitly return `void` to return `void` expressions. Doing so allows more writing more succinct functions. + +:::note +This is technically risky as the `void`-returning function might actually be returning a value not seen by the type system. +::: + +```ts option='{ "ignoreVoidReturningFunctions": true }' showPlaygroundButton +function foo(): void { + return console.log(); +} + +function onError(callback: () => void): void { + callback(); +} + +onError(() => console.log('oops')); +``` + +## When Not To Use It + +The return type of a function can be inspected by going to its definition or hovering over it in an IDE. +If you don't care about being explicit about the void type in actual code then don't use this rule. +Also, if you strongly prefer a concise coding style more strongly than any fear of `void`-related bugs then you can avoid this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-deprecated.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-deprecated.mdx new file mode 100644 index 00000000..d5e51132 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-deprecated.mdx @@ -0,0 +1,69 @@ +--- +description: 'Disallow using code marked as `@deprecated`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-deprecated** for documentation. + +The [JSDoc `@deprecated` tag](https://jsdoc.app/tags-deprecated) can be used to document some piece of code being deprecated. +It's best to avoid using code marked as deprecated. +This rule reports on any references to code marked as `@deprecated`. + +:::note +[TypeScript recognizes the `@deprecated` tag](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#deprecated), allowing editors to visually indicate deprecated code — usually with a ~strikethrough~. +However, TypeScript doesn't report type errors for deprecated code on its own. +::: + +## Examples + + + + +```ts +/** @deprecated Use apiV2 instead. */ +declare function apiV1(): Promise; + +declare function apiV2(): Promise; + +await apiV1(); +``` + +```ts +import { parse } from 'node:url'; + +// 'parse' is deprecated. Use the WHATWG URL API instead. +const url = parse('/foo'); +``` + + + + +```ts +/** @deprecated Use apiV2 instead. */ +declare function apiV1(): Promise; + +declare function apiV2(): Promise; + +await apiV2(); +``` + +```ts +// Modern Node.js API, uses `new URL()` +const url2 = new URL('/foo', 'http://www.example.com'); +``` + + + + +## When Not To Use It + +If portions of your project heavily use deprecated APIs and have no plan for moving to non-deprecated ones, you might want to disable this rule in those portions. + +## Related To + +- [`import/no-deprecated`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md) and [`import-x/no-deprecated`](https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-deprecated.md): Does not use type information, but does also support [TomDoc](http://tomdoc.org) +- [`eslint-plugin-deprecation`](https://github.com/gund/eslint-plugin-deprecation) ([`deprecation/deprecation`](https://github.com/gund/eslint-plugin-deprecation?tab=readme-ov-file#rules)): Predecessor to this rule in a separate plugin diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx new file mode 100644 index 00000000..804479b2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx @@ -0,0 +1,17 @@ +--- +description: 'Disallow duplicate class members.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-dupe-class-members** for documentation. + +import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; + + + +This rule extends the base [`eslint/no-dupe-class-members`](https://eslint.org/docs/rules/no-dupe-class-members) rule. +It adds support for TypeScript's method overload definitions. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx new file mode 100644 index 00000000..65162a62 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx @@ -0,0 +1,64 @@ +--- +description: 'Disallow duplicate enum member values.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-duplicate-enum-values** for documentation. + +Although TypeScript supports duplicate enum member values, people usually expect members to have unique values within the same enum. Duplicate values can lead to bugs that are hard to track down. + +## Examples + +This rule disallows defining an enum with multiple members initialized to the same value. + +> This rule only enforces on enum members initialized with string or number literals. +> Members without an initializer or initialized with an expression are not checked by this rule. + + + + +```ts +enum E { + A = 0, + B = 0, +} +``` + +```ts +enum E { + A = 'A', + B = 'A', +} +``` + + + + +```ts +enum E { + A = 0, + B = 1, +} +``` + +```ts +enum E { + A = 'A', + B = 'B', +} +``` + + + + +## When Not To Use It + +It can sometimes be useful to include duplicate enum members for very specific use cases. +For example, when renaming an enum member, it can sometimes be useful to keep the old name until a scheduled major breaking change. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +In general, if your project intentionally duplicates enum member values, you can avoid this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx new file mode 100644 index 00000000..45ec178a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx @@ -0,0 +1,17 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been deprecated in favour of the [`import/no-duplicates`](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-duplicates.md) rule. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx new file mode 100644 index 00000000..dfd7d2d4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx @@ -0,0 +1,89 @@ +--- +description: 'Disallow duplicate constituents of union or intersection types.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-duplicate-type-constituents** for documentation. + +TypeScript supports types ("constituents") within union and intersection types being duplicates of each other. +However, developers typically expect each constituent to be unique within its intersection or union. +Duplicate values make the code overly verbose and generally reduce readability. + +This rule disallows duplicate union or intersection constituents. +We consider types to be duplicate if they evaluate to the same result in the type system. +For example, given `type A = string` and `type T = string | A`, this rule would flag that `A` is the same type as `string`. + +This rule also disallows explicitly listing `undefined` in a type union when a function parameter is marked as optional. +Doing so is unnecessary. +Please note that this check only applies to parameters, not properties. +Therefore, it does not conflict with the [`exactOptionalPropertyTypes`](https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes) TypeScript compiler setting. + + + + +```ts +type T1 = 'A' | 'A'; + +type T2 = string | string | number; + +type T3 = { a: string } & { a: string }; + +type T4 = [1, 2, 3] | [1, 2, 3]; + +type StringA = string; +type StringB = string; +type T5 = StringA | StringB; + +const fn = (a?: string | undefined) => {}; +``` + + + + +```ts +type T1 = 'A' | 'B'; + +type T2 = string | number | boolean; + +type T3 = { a: string } & { b: string }; + +type T4 = [1, 2, 3] | [1, 2, 3, 4]; + +type StringA = string; +type NumberB = number; +type T5 = StringA | NumberB; + +const fn = (a?: string) => {}; +``` + + + + +## Options + +### `ignoreIntersections` + +{/* insert option description */} + +When set to true, duplicate checks on intersection type constituents are ignored. + +### `ignoreUnions` + +{/* insert option description */} + +When set to true, duplicate checks on union type constituents are ignored. + +## When Not To Use It + +It can sometimes be useful for the sake of documentation to include aliases for the same type. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +> In some of those cases, [branded types](https://basarat.gitbook.io/typescript/main-1/nominaltyping#using-interfaces) might be a type-safe way to represent the underlying data types. + +## Related To + +- [no-redundant-type-constituents](./no-redundant-type-constituents.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx new file mode 100644 index 00000000..0bd7d414 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx @@ -0,0 +1,64 @@ +--- +description: 'Disallow using the `delete` operator on computed key expressions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-dynamic-delete** for documentation. + +Deleting dynamically computed keys can be dangerous and in some cases not well optimized. +Using the `delete` operator on keys that aren't runtime constants could be a sign that you're using the wrong data structures. +Consider using a `Map` or `Set` if you’re using an object as a key-value collection. + +Dynamically adding and removing keys from objects can cause occasional edge case bugs. For example, some objects use "hidden properties" (such as `__data`) for private storage, and deleting them can break the object's internal state. Furthermore, [`delete`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete) cannot remove inherited properties or non-configurable properties. This makes it interact badly with anything more complicated than a plain object: + +- The [`length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length) of an array is non-configurable, and deleting it is a runtime error. +- You can't remove properties on the prototype of an object, such as deleting methods from class instances. +- Sometimes, `delete` only removes the own property, leaving the inherited property intact. For example, deleting the [`name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property of a function only removes the own property, but there's also a `Function.prototype.name` property that remains. + +## Examples + + + + +```ts +// Dynamic, difficult-to-reason-about lookups +const name = 'name'; +delete container[name]; +delete container[name.toUpperCase()]; +``` + + + + +```ts +const container: { [i: string]: number } = { + /* ... */ +}; + +// Constant runtime lookups by string index +delete container.aaa; + +// Constants that must be accessed by [] +delete container[7]; +delete container[-1]; + +// All strings are allowed, to be compatible with the noPropertyAccessFromIndexSignature +// TS compiler option +delete container['aaa']; +delete container['Infinity']; +``` + + + + +## When Not To Use It + +When you know your keys are safe to delete, this rule can be unnecessary. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +Do not consider this rule as performance advice before profiling your code's bottlenecks. +Even repeated minor performance slowdowns likely do not significantly affect your application's general perceived speed. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx new file mode 100644 index 00000000..9da88ae0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx @@ -0,0 +1,95 @@ +--- +description: 'Disallow empty functions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-empty-function** for documentation. + +This rule extends the base [`eslint/no-empty-function`](https://eslint.org/docs/rules/no-empty-function) rule. +It adds support for handling TypeScript specific code that would otherwise trigger the rule. + +One example of valid TypeScript specific code that would otherwise trigger the `no-empty-function` rule is the use of [parameter properties](https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties) in constructor functions. + +## Options + +This rule adds the following options: + +```ts +type AdditionalAllowOptionEntries = + | 'private-constructors' + | 'protected-constructors' + | 'decoratedFunctions' + | 'overrideMethods'; + +type AllowOptionEntries = + | BaseNoEmptyFunctionAllowOptionEntries + | AdditionalAllowOptionEntries; + +interface Options extends BaseNoEmptyFunctionOptions { + allow?: Array; +} +const defaultOptions: Options = { + ...baseNoEmptyFunctionDefaultOptions, + allow: [], +}; +``` + +### allow: `private-constructors` + +Examples of correct code for the `{ "allow": ["private-constructors"] }` option: + +```ts option='{ "allow": ["private-constructors"] }' showPlaygroundButton +class Foo { + private constructor() {} +} +``` + +### allow: `protected-constructors` + +Examples of correct code for the `{ "allow": ["protected-constructors"] }` option: + +```ts option='{ "allow": ["protected-constructors"] }' showPlaygroundButton +class Foo { + protected constructor() {} +} +``` + +### allow: `decoratedFunctions` + +Examples of correct code for the `{ "allow": ["decoratedFunctions"] }` option: + +```ts option='{ "allow": ["decoratedFunctions"] }' showPlaygroundButton +class Foo { + @decorator() + foo() {} +} +``` + +### allow: `overrideMethods` + +Examples of correct code for the `{ "allow": ["overrideMethods"] }` option: + +```ts option='{ "allow": ["overrideMethods"] }' showPlaygroundButton +abstract class Base { + protected greet(): void { + console.log('Hello!'); + } +} + +class Foo extends Base { + protected override greet(): void {} +} +``` + +## When Not To Use It + +If you are working with external APIs that require functions even if they do nothing, then you may want to avoid this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +Test code often violates this rule as well. +If your testing setup doesn't support "mock" or "spy" functions such as [`jest.fn()`](https://jestjs.io/docs/mock-functions), [`sinon.spy()`](https://sinonjs.org/releases/latest/spies), or [`vi.fn()`](https://vitest.dev/guide/mocking.html), you may wish to disable this rule in test files. +Again, if those cases aren't extremely common, you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule in test files. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx new file mode 100644 index 00000000..4eeb2f32 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx @@ -0,0 +1,75 @@ +--- +description: 'Disallow the declaration of empty interfaces.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-empty-interface** for documentation. + +:::danger Deprecated + +This rule has been deprecated in favour of the more comprehensive [`@typescript-eslint/no-empty-object-type`](./no-empty-object-type.mdx) rule. + +::: + +An empty interface in TypeScript does very little: any non-nullable value is assignable to `{}`. +Using an empty interface is often a sign of programmer error, such as misunderstanding the concept of `{}` or forgetting to fill in fields. + +This rule aims to ensure that only meaningful interfaces are declared in the code. + +## Examples + + + + +```ts +// an empty interface +interface Foo {} + +// an interface with only one supertype (Bar === Foo) +interface Bar extends Foo {} + +// an interface with an empty list of supertypes +interface Baz {} +``` + + + + +```ts +// an interface with any number of members +interface Foo { + name: string; +} + +// same as above +interface Bar { + age: number; +} + +// an interface with more than one supertype +// in this case the interface can be used as a replacement of an intersection type. +interface Baz extends Foo, Bar {} +``` + + + + +## Options + +### `allowSingleExtends` + +{/* insert option description */} + +`allowSingleExtends: true` will silence warnings about extending a single interface without adding additional members. + +## When Not To Use It + +If you don't care about having empty/meaningless interfaces, then you will not need this rule. + +## Related To + +- [`no-empty-object-type`](./no-empty-object-type.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx new file mode 100644 index 00000000..b1ed390a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx @@ -0,0 +1,150 @@ +--- +description: 'Disallow accidentally using the "empty object" type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-empty-object-type** for documentation. + +The `{}`, or "empty object" type in TypeScript is a common source of confusion for developers unfamiliar with TypeScript's structural typing. +`{}` represents any _non-nullish value_, including literals like `0` and `""`: + +```ts +let anyNonNullishValue: {} = 'Intentionally allowed by TypeScript.'; +``` + +Often, developers writing `{}` actually mean either: + +- `object`: representing any _object_ value +- `unknown`: representing any value at all, including `null` and `undefined` + +In other words, the "empty object" type `{}` really means _"any value that is defined"_. +That includes arrays, class instances, functions, and primitives such as `string` and `symbol`. + +To avoid confusion around the `{}` type allowing any _non-nullish value_, this rule bans usage of the `{}` type. +That includes interfaces and object type aliases with no fields. + +:::tip +If you do have a use case for an API allowing `{}`, you can always configure the [rule's options](#options), use an [ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1), or [disable the rule in your ESLint config](https://eslint.org/docs/latest/use/configure/rules#using-configuration-files-1). +::: + +Note that this rule does not report on: + +- `{}` as a type constituent in an intersection type (e.g. types like TypeScript's built-in `type NonNullable = T & {}`), as this can be useful in type system operations. +- Interfaces that extend from multiple other interfaces. + +## Examples + + + + +```ts +let anyObject: {}; +let anyValue: {}; + +interface AnyObjectA {} +interface AnyValueA {} + +type AnyObjectB = {}; +type AnyValueB = {}; +``` + + + + +```ts +let anyObject: object; +let anyValue: unknown; + +type AnyObjectA = object; +type AnyValueA = unknown; + +type AnyObjectB = object; +type AnyValueB = unknown; + +let objectWith: { property: boolean }; + +interface InterfaceWith { + property: boolean; +} + +type TypeWith = { property: boolean }; +``` + + + + +## Options + +By default, this rule flags both interfaces and object types. + +### `allowInterfaces` + +{/* insert option description */} + +Allowed values are: + +- `'always'`: to always allow interfaces with no fields +- `'never'` _(default)_: to never allow interfaces with no fields +- `'with-single-extends'`: to allow empty interfaces that `extend` from a single base interface + +Examples of **correct** code for this rule with `{ allowInterfaces: 'with-single-extends' }`: + +```ts option='{ "allowInterfaces": "with-single-extends" }' showPlaygroundButton +interface Base { + value: boolean; +} + +interface Derived extends Base {} +``` + +### `allowObjectTypes` + +{/* insert option description */} + +Allowed values are: + +- `'always'`: to always allow object type literals with no fields +- `'never'` _(default)_: to never allow object type literals with no fields + +### `allowWithName` + +{/* insert option description */} + +This can be useful if your existing code style includes a pattern of declaring empty types with `{}` instead of `object`. + +Examples of code for this rule with `{ allowWithName: 'Props$' }`: + + + + +```ts option='{ "allowWithName": "Props$" }' showPlaygroundButton +interface InterfaceValue {} + +type TypeValue = {}; +``` + + + + +```ts option='{ "allowWithName": "Props$" }' showPlaygroundButton +interface InterfaceProps {} + +type TypeProps = {}; +``` + + + + +## When Not To Use It + +If your code commonly needs to represent the _"any non-nullish value"_ type, this rule may not be for you. +Projects that extensively use type operations such as conditional types and mapped types oftentimes benefit from disabling this rule. + +## Further Reading + +- [Enhancement: [ban-types] Split the {} ban into a separate, better-phrased rule](https://github.com/typescript-eslint/typescript-eslint/issues/8700) +- [The Empty Object Type in TypeScript](https://www.totaltypescript.com/the-empty-object-type-in-typescript) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx new file mode 100644 index 00000000..33b38292 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx @@ -0,0 +1,176 @@ +--- +description: 'Disallow the `any` type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-explicit-any** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. +This rule reports on explicit uses of the `any` keyword as a type annotation. + +Preferable alternatives to `any` include: + +- If the type is known, describing it in an `interface` or `type` +- If the type is not known, using the safer `unknown` type + +> TypeScript's `--noImplicitAny` compiler option prevents an implied `any`, but doesn't prevent `any` from being explicitly used the way this rule does. + +## Examples + + + + +```ts +const age: any = 'seventeen'; +``` + +```ts +const ages: any[] = ['seventeen']; +``` + +```ts +const ages: Array = ['seventeen']; +``` + +```ts +function greet(): any {} +``` + +```ts +function greet(): any[] {} +``` + +```ts +function greet(): Array {} +``` + +```ts +function greet(): Array> {} +``` + +```ts +function greet(param: Array): string {} +``` + +```ts +function greet(param: Array): Array {} +``` + + + + +```ts +const age: number = 17; +``` + +```ts +const ages: number[] = [17]; +``` + +```ts +const ages: Array = [17]; +``` + +```ts +function greet(): string {} +``` + +```ts +function greet(): string[] {} +``` + +```ts +function greet(): Array {} +``` + +```ts +function greet(): Array> {} +``` + +```ts +function greet(param: Array): string {} +``` + +```ts +function greet(param: Array): Array {} +``` + + + + +## Options + +### `fixToUnknown` + +{/* insert option description */} + +By default, this rule will not provide automatic ESLint _fixes_: only opt-in _suggestions_. +Switching types to `unknown` is safer but is likely to cause additional type errors. + +Enabling `{ "fixToUnknown": true }` gives the rule an auto-fixer to replace `: any` with `: unknown`. + +### `ignoreRestArgs` + +{/* insert option description */} + +The examples below are **incorrect** when `{ignoreRestArgs: false}`, but **correct** when `{ignoreRestArgs: true}`. + +```ts option='{ "ignoreRestArgs": false }' showPlaygroundButton +function foo1(...args: any[]): void {} +function foo2(...args: readonly any[]): void {} +function foo3(...args: Array): void {} +function foo4(...args: ReadonlyArray): void {} + +declare function bar(...args: any[]): void; + +const baz = (...args: any[]) => {}; +const qux = function (...args: any[]) {}; + +type Quux = (...args: any[]) => void; +type Quuz = new (...args: any[]) => void; + +interface Grault { + (...args: any[]): void; +} +interface Corge { + new (...args: any[]): void; +} +interface Garply { + f(...args: any[]): void; +} +``` + +## When Not To Use It + +`any` is always a dangerous escape hatch. +Whenever possible, it is always safer to avoid it. +TypeScript's `unknown` is almost always preferable to `any`. + +However, there are occasional situations where it can be necessary to use `any`. +Most commonly: + +- If your project isn't fully onboarded to TypeScript yet, `any` can be temporarily used in places where types aren't yet known or representable +- If an external package doesn't yet have typings and you want to use `any` pending adding a `.d.ts` for it +- You're working with particularly complex or nuanced code that can't yet be represented in the TypeScript type system + +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-unsafe-argument`](./no-unsafe-argument.mdx) +- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) +- [`no-unsafe-return`](./no-unsafe-return.mdx) + +## Further Reading + +- TypeScript [`any` type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any) +- TypeScript's [`unknown` type](https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown) +- TypeScript [`any` type documentation](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any) +- TypeScript [`unknown` type release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx new file mode 100644 index 00000000..5f108b7c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx @@ -0,0 +1,60 @@ +--- +description: 'Disallow extra non-null assertions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-extra-non-null-assertion** for documentation. + +The `!` non-null assertion operator in TypeScript is used to assert that a value's type does not include `null` or `undefined`. +Using the operator any more than once on a single value does nothing. + +## Examples + + + + +```ts +const foo: { bar: number } | null = null; +const bar = foo!!!.bar; +``` + +```ts +function foo(bar: number | undefined) { + const bar: number = bar!!!; +} +``` + +```ts +function foo(bar?: { n: number }) { + return bar!?.n; +} +``` + + + + +```ts +const foo: { bar: number } | null = null; +const bar = foo!.bar; +``` + +```ts +function foo(bar: number | undefined) { + const bar: number = bar!; +} +``` + +```ts +function foo(bar?: { n: number }) { + return bar?.n; +} +``` + + + + +{/* Intentionally Omitted: When Not To Use It */} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx new file mode 100644 index 00000000..b6639b5a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx @@ -0,0 +1,329 @@ +--- +description: 'Disallow classes used as namespaces.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-extraneous-class** for documentation. + +This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace. + +Users who come from a [OOP](https://en.wikipedia.org/wiki/Object-oriented_programming) paradigm may wrap their utility functions in an extra class, instead of putting them at the top level of an ECMAScript module. +Doing so is generally unnecessary in JavaScript and TypeScript projects. + +- Wrapper classes add extra cognitive complexity to code without adding any structural improvements + - Whatever would be put on them, such as utility functions, are already organized by virtue of being in a module. + - As an alternative, you can `import * as ...` the module to get all of them in a single object. +- IDEs can't provide as good suggestions for static class or namespace imported properties when you start typing property names +- It's more difficult to statically analyze code for unused variables, etc. when they're all on the class (see: [Finding dead code (and dead types) in TypeScript](https://effectivetypescript.com/2020/10/20/tsprune)). + +This rule also reports classes that have only a constructor and no fields. +Those classes can generally be replaced with a standalone function. + +## Examples + + + + +```ts +class StaticConstants { + static readonly version = 42; + + static isProduction() { + return process.env.NODE_ENV === 'production'; + } +} + +class HelloWorldLogger { + constructor() { + console.log('Hello, world!'); + } +} + +abstract class Foo {} +``` + + + + +```ts +export const version = 42; + +export function isProduction() { + return process.env.NODE_ENV === 'production'; +} + +function logHelloWorld() { + console.log('Hello, world!'); +} + +abstract class Foo { + abstract prop: string; +} +``` + + + + +## Alternatives + +### Individual Exports (Recommended) + +Instead of using a static utility class we recommend you individually export the utilities from your module. + + + + +```ts +export class Utilities { + static util1() { + return Utilities.util3(); + } + + static util2() { + /* ... */ + } + + static util3() { + /* ... */ + } +} +``` + + + + +```ts +export function util1() { + return util3(); +} + +export function util2() { + /* ... */ +} + +export function util3() { + /* ... */ +} +``` + + + + +### Namespace Imports (Not Recommended) + +If you strongly prefer to have all constructs from a module available as properties of a single object, you can `import * as` the module. +This is known as a "namespace import". +Namespace imports are sometimes preferable because they keep all properties nested and don't need to be changed as you start or stop using various properties from the module. + +However, namespace imports are impacted by these downsides: + +- They also don't play as well with tree shaking in modern bundlers +- They require a name prefix before each property's usage + + + + +```ts +// utilities.ts +export class Utilities { + static sayHello() { + console.log('Hello, world!'); + } +} + +// consumers.ts +import { Utilities } from './utilities'; + +Utilities.sayHello(); +``` + + + + +```ts +// utilities.ts +export function sayHello() { + console.log('Hello, world!'); +} + +// consumers.ts +import * as utilities from './utilities'; + +utilities.sayHello(); +``` + + + + +```ts +// utilities.ts +export function sayHello() { + console.log('Hello, world!'); +} + +// consumers.ts +import { sayHello } from './utilities'; + +sayHello(); +``` + + + + +### Notes on Mutating Variables + +One case you need to be careful of is exporting mutable variables. +While class properties can be mutated externally, exported variables are always constant. +This means that importers can only ever read the first value they are assigned and cannot write to the variables. + +Needing to write to an exported variable is very rare and is generally considered a code smell. +If you do need it you can accomplish it using getter and setter functions: + + + + +```ts +export class Utilities { + static mutableCount = 1; + + static incrementCount() { + Utilities.mutableCount += 1; + } +} +``` + + + + +```ts +let mutableCount = 1; + +export function getMutableCount() { + return mutableField; +} + +export function incrementCount() { + mutableField += 1; +} +``` + + + + +## Options + +This rule normally bans classes that are empty (have no constructor or fields). +The rule's options each add an exemption for a specific type of class. + +### `allowConstructorOnly` + +{/* insert option description */} + + + + +```ts option='{ "allowConstructorOnly": true }' +class NoFields {} +``` + + + + +```ts option='{ "allowConstructorOnly": true }' +class NoFields { + constructor() { + console.log('Hello, world!'); + } +} +``` + + + + +### `allowEmpty` + +{/* insert option description */} + + + + +```ts option='{ "allowEmpty": true }' +class NoFields { + constructor() { + console.log('Hello, world!'); + } +} +``` + + + + +```ts option='{ "allowEmpty": true }' +class NoFields {} +``` + + + + +### `allowStaticOnly` + +{/* insert option description */} + +:::caution +We strongly recommend against the `allowStaticOnly` exemption. +It works against this rule's primary purpose of discouraging classes used only for static members. +::: + + + + +```ts option='{ "allowStaticOnly": true }' +class EmptyClass {} +``` + + + + +```ts option='{ "allowStaticOnly": true }' +class NotEmptyClass { + static version = 42; +} +``` + + + + +### `allowWithDecorator` + +{/* insert option description */} + + + + +```ts option='{ "allowWithDecorator": true }' +class Constants { + static readonly version = 42; +} +``` + + + + +```ts option='{ "allowWithDecorator": true }' +@logOnRead() +class Constants { + static readonly version = 42; +} +``` + + + + +## When Not To Use It + +If your project was set up before modern class and namespace practices, and you don't have the time to switch over, you might not be practically able to use this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx new file mode 100644 index 00000000..12bf7465 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx @@ -0,0 +1,282 @@ +--- +description: 'Require Promise-like statements to be handled appropriately.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-floating-promises** for documentation. + +A "floating" Promise is one that is created without any code set up to handle any errors it might throw. +Floating Promises can cause several issues, such as improperly sequenced operations, ignored Promise rejections, and more. + +This rule will report Promise-valued statements that are not treated in one of the following ways: + +- Calling its `.then()` with two arguments +- Calling its `.catch()` with one argument +- `await`ing it +- `return`ing it +- [`void`ing it](#ignorevoid) + +This rule also reports when an Array containing Promises is created and not properly handled. The main way to resolve this is by using one of the Promise concurrency methods to create a single Promise, then handling that according to the procedure above. These methods include: + +- `Promise.all()` +- `Promise.allSettled()` +- `Promise.any()` +- `Promise.race()` + +:::tip +`no-floating-promises` only detects apparently unhandled Promise _statements_. +See [`no-misused-promises`](./no-misused-promises.mdx) for detecting code that provides Promises to _logical_ locations such as if statements. + +See [_Using promises (error handling) on MDN_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#error_handling) for a detailed writeup on Promise error-handling. +::: + +## Examples + + + + +```ts +const promise = new Promise((resolve, reject) => resolve('value')); +promise; + +async function returnsPromise() { + return 'value'; +} +returnsPromise().then(() => {}); + +Promise.reject('value').catch(); + +Promise.reject('value').finally(); + +[1, 2, 3].map(async x => x + 1); +``` + + + + +```ts +const promise = new Promise((resolve, reject) => resolve('value')); +await promise; + +async function returnsPromise() { + return 'value'; +} + +void returnsPromise(); + +returnsPromise().then( + () => {}, + () => {}, +); + +Promise.reject('value').catch(() => {}); + +await Promise.reject('value').finally(() => {}); + +await Promise.all([1, 2, 3].map(async x => x + 1)); +``` + + + + +## Options + +### `checkThenables` + +{/* insert option description */} + +A ["Thenable"](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables) value is an object which has a `then` method, such as a `Promise`. +Other Thenables include TypeScript's built-in `PromiseLike` interface and any custom object that happens to have a `.then()`. + +The `checkThenables` option triggers `no-floating-promises` to also consider all values that satisfy the Thenable shape (a `.then()` method that takes two callback parameters), not just Promises. +This can be useful if your code works with older `Promise` polyfills instead of the native `Promise` class. + + + + +```ts option='{"checkThenables": true}' +declare function createPromiseLike(): PromiseLike; + +createPromiseLike(); + +interface MyThenable { + then(onFulfilled: () => void, onRejected: () => void): MyThenable; +} + +declare function createMyThenable(): MyThenable; + +createMyThenable(); +``` + + + + +```ts option='{"checkThenables": true}' +declare function createPromiseLike(): PromiseLike; + +await createPromiseLike(); + +interface MyThenable { + then(onFulfilled: () => void, onRejected: () => void): MyThenable; +} + +declare function createMyThenable(): MyThenable; + +await createMyThenable(); +``` + + + + +### `ignoreVoid` + +{/* insert option description */} + +Placing the [`void` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void) in front of a Promise can be a convenient way to explicitly mark that Promise as intentionally not awaited. + +:::warning +Voiding a Promise doesn't handle it or change the runtime behavior. +The outcome is just ignored, like disabling the rule with an [ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1). +Such Promise rejections will still be unhandled. +::: + +Examples of **correct** code for this rule with `{ ignoreVoid: true }`: + +```ts option='{ "ignoreVoid": true }' showPlaygroundButton +async function returnsPromise() { + return 'value'; +} +void returnsPromise(); + +void Promise.reject('value'); +``` + +When this option is set to `true`, if you are using `no-void`, you should turn on the [`allowAsStatement`](https://eslint.org/docs/rules/no-void#allowasstatement) option. + +### `ignoreIIFE` + +{/* insert option description */} + +Examples of **correct** code for this rule with `{ ignoreIIFE: true }`: + +{/* prettier-ignore */} +```ts option='{ "ignoreIIFE": true }' showPlaygroundButton +await (async function () { + await res(1); +})(); + +(async function () { + await res(1); +})(); +``` + +### `allowForKnownSafePromises` + +{/* insert option description */} + +For example, you may need to do this in the case of libraries whose APIs return Promises whose rejections are safely handled by the library. + +This option takes the shared [`TypeOrValueSpecifier` format](/packages/type-utils/type-or-value-specifier). + +Examples of code for this rule with: + +```json +{ + "allowForKnownSafePromises": [ + { "from": "file", "name": "SafePromise" }, + { "from": "lib", "name": "PromiseLike" }, + { "from": "package", "name": "Bar", "package": "bar-lib" } + ] +} +``` + + + + +```ts option='{"allowForKnownSafePromises":[{"from":"file","name":"SafePromise"},{"from":"lib","name":"PromiseLike"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +let promise: Promise = Promise.resolve(2); +promise; + +function returnsPromise(): Promise { + return Promise.resolve(42); +} + +returnsPromise(); +``` + + + + +```ts option='{"allowForKnownSafePromises":[{"from":"file","name":"SafePromise"},{"from":"lib","name":"PromiseLike"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +// promises can be marked as safe by using branded types +type SafePromise = Promise & { __linterBrands?: string }; + +let promise: SafePromise = Promise.resolve(2); +promise; + +function returnsSafePromise(): SafePromise { + return Promise.resolve(42); +} + +returnsSafePromise(); +``` + + + + +### `allowForKnownSafeCalls` + +{/* insert option description */} + +For example, you may need to do this in the case of libraries whose APIs may be called without handling the resultant Promises. + +This option takes the shared [`TypeOrValueSpecifier` format](/packages/type-utils/type-or-value-specifier). + +Examples of code for this rule with: + +```json +{ + "allowForKnownSafeCalls": [ + { "from": "file", "name": "safe", "path": "input.ts" } + ] +} +``` + + + + +```ts option='{"allowForKnownSafeCalls":[{"from":"file","name":"safe","path":"input.ts"}]}' +declare function unsafe(...args: unknown[]): Promise; + +unsafe('...', () => {}); +``` + + + + +```ts option='{"allowForKnownSafeCalls":[{"from":"file","name":"safe","path":"input.ts"}]}' skipValidation +declare function safe(...args: unknown[]): Promise; + +safe('...', () => {}); +``` + + + + +## When Not To Use It + +This rule can be difficult to enable on large existing projects that set up many floating Promises. +Alternately, if you're not worried about crashes from floating or misused Promises -such as if you have global unhandled Promise handlers registered- then in some cases it may be safe to not use this rule. +You might consider using `void`s and/or [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-misused-promises`](./no-misused-promises.mdx) + +## Further Reading + +- ["Using Promises" MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises). Note especially the sections on [Promise rejection events](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#promise_rejection_events) and [Composition](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#composition). diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx new file mode 100644 index 00000000..d3a1b01d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx @@ -0,0 +1,67 @@ +--- +description: 'Disallow iterating over an array with a for-in loop.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-for-in-array** for documentation. + +A for-in loop (`for (const i in o)`) iterates over the properties of an Object. +While it is legal to use for-in loops with array values, it is not common. There are several potential bugs with this: + +1. It iterates over all enumerable properties, including non-index ones and the entire prototype chain. For example, [`RegExp.prototype.exec`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec) returns an array with additional properties, and `for-in` will iterate over them. Some libraries or even your own code may add additional methods to `Array.prototype` (either as polyfill or as custom methods), and if not done properly, they may be iterated over as well. +2. It skips holes in the array. While sparse arrays are rare and advised against, they are still possible and your code should be able to handle them. +3. The "index" is returned as a string, not a number. This can be caught by TypeScript, but can still lead to subtle bugs. + +You may have confused for-in with for-of, which iterates over the elements of the array. If you actually need the index, use a regular `for` loop or the `forEach` method. + +## Examples + + + + +```ts +declare const array: string[]; + +for (const i in array) { + console.log(array[i]); +} + +for (const i in array) { + console.log(i, array[i]); +} +``` + + + + +```ts +declare const array: string[]; + +for (const value of array) { + console.log(value); +} + +for (let i = 0; i < array.length; i += 1) { + console.log(i, array[i]); +} + +array.forEach((value, i) => { + console.log(i, value); +}); + +for (const [i, value] of array.entries()) { + console.log(i, value); +} +``` + + + + +## When Not To Use It + +If your project is a rare one that intentionally loops over string indices of arrays, you can turn off this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx new file mode 100644 index 00000000..5019008c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx @@ -0,0 +1,104 @@ +--- +description: 'Disallow the use of `eval()`-like methods.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-implied-eval** for documentation. + +It's considered a good practice to avoid using `eval()`. There are security and performance implications involved with doing so, which is why many linters recommend disallowing `eval()`. However, there are some other ways to pass a string and have it interpreted as JavaScript code that have similar concerns. + +The first is using `setTimeout()`, `setInterval()`, `setImmediate` or `execScript()` (Internet Explorer only), all of which can accept a string of code as their first argument + +```ts +setTimeout('alert(`Hi!`);', 100); +``` + +or using `new Function()` + +```ts +const fn = new Function('a', 'b', 'return a + b'); +``` + +This is considered an implied `eval()` because a string of code is +passed in to be interpreted. The same can be done with `setInterval()`, `setImmediate()` and `execScript()`. All interpret the JavaScript code in the global scope. + +The best practice is to avoid using `new Function()` or `execScript()` and always use a function for the first argument of `setTimeout()`, `setInterval()` and `setImmediate()`. + +## Examples + +This rule aims to eliminate implied `eval()` through the use of `new Function()`, `setTimeout()`, `setInterval()`, `setImmediate()` or `execScript()`. + + + + +```ts +setTimeout('alert(`Hi!`);', 100); + +setInterval('alert(`Hi!`);', 100); + +setImmediate('alert(`Hi!`)'); + +execScript('alert(`Hi!`)'); + +window.setTimeout('count = 5', 10); + +window.setInterval('foo = bar', 10); + +const fn = '() = {}'; +setTimeout(fn, 100); + +const fn = () => { + return 'x = 10'; +}; +setTimeout(fn(), 100); + +const fn = new Function('a', 'b', 'return a + b'); +``` + + + + +```ts +setTimeout(function () { + alert('Hi!'); +}, 100); + +setInterval(function () { + alert('Hi!'); +}, 100); + +setImmediate(function () { + alert('Hi!'); +}); + +execScript(function () { + alert('Hi!'); +}); + +const fn = () => {}; +setTimeout(fn, 100); + +const foo = { + fn: function () {}, +}; +setTimeout(foo.fn, 100); +setTimeout(foo.fn.bind(this), 100); + +class Foo { + static fn = () => {}; +} + +setTimeout(Foo.fn, 100); +``` + + + + +## When Not To Use It + +If your project is a rare one that needs to allow `new Function()` or `setTimeout()`, `setInterval()`, `setImmediate()` and `execScript()` with string arguments, then you can disable this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx new file mode 100644 index 00000000..f115b036 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx @@ -0,0 +1,80 @@ +--- +description: 'Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-import-type-side-effects** for documentation. + +The [`--verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) compiler option causes TypeScript to do simple and predictable transpilation on import declarations. +Namely, it completely removes import declarations with a top-level `type` qualifier, and it removes any import specifiers with an inline `type` qualifier. + +The latter behavior does have one potentially surprising effect in that in certain cases TS can leave behind a "side effect" import at runtime: + +```ts +import { type A, type B } from 'mod'; + +// is transpiled to + +import {} from 'mod'; +// which is the same as +import 'mod'; +``` + +For the rare case of needing to import for side effects, this may be desirable - but for most cases you will not want to leave behind an unnecessary side effect import. + +## Examples + +This rule enforces that you use a top-level `type` qualifier for imports when it only imports specifiers with an inline `type` qualifier + + + + +```ts +import { type A } from 'mod'; +import { type A as AA } from 'mod'; +import { type A, type B } from 'mod'; +import { type A as AA, type B as BB } from 'mod'; +``` + + + + +```ts +import type { A } from 'mod'; +import type { A as AA } from 'mod'; +import type { A, B } from 'mod'; +import type { A as AA, B as BB } from 'mod'; + +import T from 'mod'; +import type T from 'mod'; + +import * as T from 'mod'; +import type * as T from 'mod'; + +import { T } from 'mod'; +import type { T } from 'mod'; +import { T, U } from 'mod'; +import type { T, U } from 'mod'; +import { type T, U } from 'mod'; +import { T, type U } from 'mod'; + +import type T, { U } from 'mod'; +import T, { type U } from 'mod'; +``` + + + + +## When Not To Use It + +If you're not using TypeScript 5.0's `verbatimModuleSyntax` option and your project is built with a bundler that manages import side effects for you, this rule may not be as useful for you. + +## Related To + +- [`consistent-type-imports`](./consistent-type-imports.mdx) +- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md) +- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx new file mode 100644 index 00000000..25bfbbec --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx @@ -0,0 +1,113 @@ +--- +description: 'Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-inferrable-types** for documentation. + +TypeScript is able to infer the types of parameters, properties, and variables from their default or initial values. +There is no need to use an explicit `:` type annotation on one of those constructs initialized to a boolean, number, or string. +Doing so adds unnecessary verbosity to code -making it harder to read- and in some cases can prevent TypeScript from inferring a more specific literal type (e.g. `10`) instead of the more general primitive type (e.g. `number`) + +## Examples + + + + +```ts +const a: bigint = 10n; +const a: bigint = BigInt(10); +const a: boolean = !0; +const a: boolean = Boolean(null); +const a: boolean = true; +const a: null = null; +const a: number = 10; +const a: number = Infinity; +const a: number = NaN; +const a: number = Number('1'); +const a: RegExp = /a/; +const a: RegExp = new RegExp('a'); +const a: string = `str`; +const a: string = String(1); +const a: symbol = Symbol('a'); +const a: undefined = undefined; +const a: undefined = void someValue; + +class Foo { + prop: number = 5; +} + +function fn(a: number = 5, b: boolean = true) {} +``` + + + + +```ts +const a = 10n; +const a = BigInt(10); +const a = !0; +const a = Boolean(null); +const a = true; +const a = null; +const a = 10; +const a = Infinity; +const a = NaN; +const a = Number('1'); +const a = /a/; +const a = new RegExp('a'); +const a = `str`; +const a = String(1); +const a = Symbol('a'); +const a = undefined; +const a = void someValue; + +class Foo { + prop = 5; +} + +function fn(a = 5, b = true) {} +``` + + + + +## Options + +### `ignoreParameters` + +{/* insert option description */} + +When set to true, the following pattern is considered valid: + +```ts option='{ "ignoreParameters": true }' showPlaygroundButton +function foo(a: number = 5, b: boolean = true) { + // ... +} +``` + +### `ignoreProperties` + +{/* insert option description */} + +When set to true, the following pattern is considered valid: + +```ts option='{ "ignoreProperties": true }' showPlaygroundButton +class Foo { + prop: number = 5; +} +``` + +## When Not To Use It + +If you strongly prefer to have explicit types regardless of whether they can be inferred, this rule may not be for you. + +If you use the `--isolatedDeclarations` compiler option, this rule is incompatible. + +## Further Reading + +- [TypeScript Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx new file mode 100644 index 00000000..518b93fc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx @@ -0,0 +1,17 @@ +--- +description: 'Disallow `this` keywords outside of classes or class-like objects.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-invalid-this** for documentation. + +import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; + + + +This rule extends the base [`eslint/no-invalid-this`](https://eslint.org/docs/rules/no-invalid-this) rule. +It adds support for TypeScript's `this` parameters. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx new file mode 100644 index 00000000..6cfa2706 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx @@ -0,0 +1,119 @@ +--- +description: 'Disallow `void` type outside of generic or return types.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-invalid-void-type** for documentation. + +`void` in TypeScript refers to a function return that is meant to be ignored. +Attempting to use a `void` type outside of a return type or generic type argument is often a sign of programmer error. +`void` can also be misleading for other developers even if used correctly. + +> The `void` type means cannot be mixed with any other types, other than `never`, which accepts all types. +> If you think you need this then you probably want the `undefined` type instead. + +## Examples + + + + +```ts +type PossibleValues = string | number | void; +type MorePossibleValues = string | ((number & any) | (string | void)); + +function logSomething(thing: void) {} +function printArg(arg: T) {} + +logAndReturn(undefined); + +interface Interface { + lambda: () => void; + prop: void; +} + +class MyClass { + private readonly propName: void; +} +``` + + + + +```ts +type NoOp = () => void; + +function noop(): void {} + +let trulyUndefined = void 0; + +async function promiseMeSomething(): Promise {} + +type stillVoid = void | never; +``` + + + + +## Options + +### `allowInGenericTypeArguments` + +{/* insert option description */} + +Alternatively, you can provide an array of strings which allowlist which types may accept `void` as a generic type parameter. + +Any types considered valid by this option will be considered valid as part of a union type with `void`. + +This option is `true` by default. + +The following patterns are considered warnings with `{ allowInGenericTypeArguments: false }`: + +```ts option='{ "allowInGenericTypeArguments": false }' showPlaygroundButton +logAndReturn(undefined); + +let voidPromise: Promise = new Promise(() => {}); +let voidMap: Map = new Map(); +``` + +The following patterns are considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`: + +```ts option='{ "allowInGenericTypeArguments": ["Ex.Mx.Tx"] }' showPlaygroundButton +logAndReturn(undefined); + +type NotAllowedVoid1 = Mx.Tx; +type NotAllowedVoid2 = Tx; +type NotAllowedVoid3 = Promise; +``` + +The following patterns are not considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`: + +```ts option='{ "allowInGenericTypeArguments": ["Ex.Mx.Tx"] }' showPlaygroundButton +type AllowedVoid = Ex.Mx.Tx; +type AllowedVoidUnion = void | Ex.Mx.Tx; +``` + +### `allowAsThisParameter` + +{/* insert option description */} + +This pattern can be useful to explicitly label function types that do not use a `this` argument. [See the TypeScript docs for more information](https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters-in-callbacks). + +This option is `false` by default. + +The following patterns are considered warnings with `{ allowAsThisParameter: false }` but valid with `{ allowAsThisParameter: true }`: + +```ts option='{ "allowAsThisParameter": false }' showPlaygroundButton +function doThing(this: void) {} +class Example { + static helper(this: void) {} + callback(this: void) {} +} +``` + +## When Not To Use It + +If you don't care about if `void` is used with other types, or in invalid places, then you don't need this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx new file mode 100644 index 00000000..0eb9ff68 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx @@ -0,0 +1,13 @@ +--- +description: 'Disallow function declarations that contain unsafe references inside loop statements.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-loop-func** for documentation. + +This rule extends the base [`eslint/no-loop-func`](https://eslint.org/docs/rules/no-loop-func) rule. +It adds support for TypeScript types. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx new file mode 100644 index 00000000..77f48255 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx @@ -0,0 +1,17 @@ +--- +description: 'Disallow literal numbers that lose precision.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-loss-of-precision** for documentation. + +:::danger Deprecated + +This rule has been deprecated because the base [`eslint/no-loss-of-precision`](https://eslint.org/docs/rules/no-loss-of-precision) rule added support for [numeric separators](https://github.com/tc39/proposal-numeric-separator). +There is no longer any need to use this extension rule. + +::: diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx new file mode 100644 index 00000000..09f07b94 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx @@ -0,0 +1,132 @@ +--- +description: 'Disallow magic numbers.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-magic-numbers** for documentation. + +This rule extends the base [`eslint/no-magic-numbers`](https://eslint.org/docs/rules/no-magic-numbers) rule. +It adds support for: + +- numeric literal types (`type T = 1`), +- `enum` members (`enum Foo { bar = 1 }`), +- `readonly` class properties (`class Foo { readonly bar = 1 }`). + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseNoMagicNumbersOptions { + ignoreEnums?: boolean; + ignoreNumericLiteralTypes?: boolean; + ignoreReadonlyClassProperties?: boolean; + ignoreTypeIndexes?: boolean; +} + +const defaultOptions: Options = { + ...baseNoMagicNumbersDefaultOptions, + ignoreEnums: false, + ignoreNumericLiteralTypes: false, + ignoreReadonlyClassProperties: false, + ignoreTypeIndexes: false, +}; +``` + +### `ignoreEnums` + +{/* insert option description */} + +Whether enums used in TypeScript are considered okay. `false` by default. + +Examples of **incorrect** code for the `{ "ignoreEnums": false }` option: + +```ts option='{ "ignoreEnums": false }' showPlaygroundButton +enum foo { + SECOND = 1000, +} +``` + +Examples of **correct** code for the `{ "ignoreEnums": true }` option: + +```ts option='{ "ignoreEnums": true }' showPlaygroundButton +enum foo { + SECOND = 1000, +} +``` + +### `ignoreNumericLiteralTypes` + +{/* insert option description */} + +Whether numbers used in TypeScript numeric literal types are considered okay. `false` by default. + +Examples of **incorrect** code for the `{ "ignoreNumericLiteralTypes": false }` option: + +```ts option='{ "ignoreNumericLiteralTypes": false }' showPlaygroundButton +type SmallPrimes = 2 | 3 | 5 | 7 | 11; +``` + +Examples of **correct** code for the `{ "ignoreNumericLiteralTypes": true }` option: + +```ts option='{ "ignoreNumericLiteralTypes": true }' showPlaygroundButton +type SmallPrimes = 2 | 3 | 5 | 7 | 11; +``` + +### `ignoreReadonlyClassProperties` + +{/* insert option description */} + +Whether `readonly` class properties are considered okay. + +Examples of **incorrect** code for the `{ "ignoreReadonlyClassProperties": false }` option: + +```ts option='{ "ignoreReadonlyClassProperties": false }' showPlaygroundButton +class Foo { + readonly A = 1; + readonly B = 2; + public static readonly C = 1; + static readonly D = 1; +} +``` + +Examples of **correct** code for the `{ "ignoreReadonlyClassProperties": true }` option: + +```ts option='{ "ignoreReadonlyClassProperties": true }' showPlaygroundButton +class Foo { + readonly A = 1; + readonly B = 2; + public static readonly C = 1; + static readonly D = 1; +} +``` + +### `ignoreTypeIndexes` + +{/* insert option description */} + +Whether numbers used to index types are okay. `false` by default. + +Examples of **incorrect** code for the `{ "ignoreTypeIndexes": false }` option: + +```ts option='{ "ignoreTypeIndexes": false }' showPlaygroundButton +type Foo = Bar[0]; +type Baz = Parameters[2]; +``` + +Examples of **correct** code for the `{ "ignoreTypeIndexes": true }` option: + +```ts option='{ "ignoreTypeIndexes": true }' showPlaygroundButton +type Foo = Bar[0]; +type Baz = Parameters[2]; +``` + +## When Not To Use It + +If your project frequently deals with constant numbers and you don't wish to take up extra space to declare them, this rule might not be for you. +We recommend at least using descriptive comments and/or names to describe constants. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx new file mode 100644 index 00000000..c4987ea2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx @@ -0,0 +1,61 @@ +--- +description: 'Disallow the `void` operator except when used to discard a value.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-meaningless-void-operator** for documentation. + +`void` in TypeScript refers to a function return that is meant to be ignored. +The `void` operator is a useful tool to convey the programmer's intent to discard a value. +For example, it is recommended as one way of suppressing [`@typescript-eslint/no-floating-promises`](./no-floating-promises.mdx) instead of adding `.catch()` to a promise. + +This rule helps an authors catch API changes where previously a value was being discarded at a call site, but the callee changed so it no longer returns a value. +When combined with [no-unused-expressions](https://eslint.org/docs/rules/no-unused-expressions), it also helps _readers_ of the code by ensuring consistency: a statement that looks like `void foo();` is **always** discarding a return value, and a statement that looks like `foo();` is **never** discarding a return value. +This rule reports on any `void` operator whose argument is already of type `void` or `undefined`. + +## Examples + +## Examples + + + + +```ts +void (() => {})(); + +function foo() {} +void foo(); +``` + + + + +```ts +(() => {})(); + +function foo() {} +foo(); // nothing to discard + +function bar(x: number) { + void x; // discarding a number + return 2; +} +void bar(1); // discarding a number +``` + + + + +## Options + +### `checkNever` + +{/* insert option description */} + +## When Not To Use It + +If you don't mind extra `void`s in your project, you can avoid this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx new file mode 100644 index 00000000..e1e02c42 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx @@ -0,0 +1,53 @@ +--- +description: 'Enforce valid definition of `new` and `constructor`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-misused-new** for documentation. + +JavaScript classes may define a `constructor` method that runs when a class instance is newly created. +TypeScript allows interfaces that describe a static class object to define a `new()` method (though this is rarely used in real world code). +Developers new to JavaScript classes and/or TypeScript interfaces may sometimes confuse when to use `constructor` or `new`. + +This rule reports when a class defines a method named `new` or an interface defines a method named `constructor`. + +## Examples + + + + +```ts +declare class C { + new(): C; +} + +interface I { + new (): I; + constructor(): void; +} +``` + + + + +```ts +declare class C { + constructor(); +} + +interface I { + new (): C; +} +``` + + + + +## When Not To Use It + +If you intentionally want a class with a `new` method, and you're confident nobody working in your code will mistake it with a constructor, you might not want this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx new file mode 100644 index 00000000..52dc08df --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx @@ -0,0 +1,314 @@ +--- +description: 'Disallow Promises in places not designed to handle them.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-misused-promises** for documentation. + +This rule forbids providing Promises to logical locations such as if statements in places where the TypeScript compiler allows them but they are not handled properly. +These situations can often arise due to a missing `await` keyword or just a misunderstanding of the way async +functions are handled/awaited. + +:::tip +`no-misused-promises` only detects code that provides Promises to incorrect _logical_ locations. +See [`no-floating-promises`](./no-floating-promises.mdx) for detecting unhandled Promise _statements_. +::: + +## Options + +### `checksConditionals` + +{/* insert option description */} + +If you don't want to check conditionals, you can configure the rule with `"checksConditionals": false`: + +```json +{ + "@typescript-eslint/no-misused-promises": [ + "error", + { + "checksConditionals": false + } + ] +} +``` + +Doing so prevents the rule from looking at code like `if (somePromise)`. + +### `checksVoidReturn` + +{/* insert option description */} + +Likewise, if you don't want to check functions that return promises where a void return is +expected, your configuration will look like this: + +```json +{ + "@typescript-eslint/no-misused-promises": [ + "error", + { + "checksVoidReturn": false + } + ] +} +``` + +You can disable selective parts of the `checksVoidReturn` option by providing an object that disables specific checks. For example, if you don't mind that passing a `() => Promise` to a `() => void` parameter or JSX attribute can lead to a floating unhandled Promise: + +```json +{ + "@typescript-eslint/no-misused-promises": [ + "error", + { + "checksVoidReturn": { + "arguments": false, + "attributes": false + } + } + ] +} +``` + +The following sub-options are supported: + +#### `arguments` + +Disables checking an asynchronous function passed as argument where the parameter type expects a function that returns `void`. + +#### `attributes` + +Disables checking an asynchronous function passed as a JSX attribute expected to be a function that returns `void`. + +#### `inheritedMethods` + +Disables checking an asynchronous method in a type that extends or implements another type expecting that method to return `void`. + +:::note +For now, `no-misused-promises` only checks _named_ methods against extended/implemented types: that is, call/construct/index signatures are ignored. Call signatures are not required in TypeScript to be consistent with one another, and construct signatures cannot be `async` in the first place. Index signature checking may be implemented in the future. +::: + +#### `properties` + +Disables checking an asynchronous function passed as an object property expected to be a function that returns `void`. + +#### `returns` + +Disables checking an asynchronous function returned in a function whose return type is a function that returns `void`. + +#### `variables` + +Disables checking an asynchronous function used as a variable whose return type is a function that returns `void`. + +### `checksSpreads` + +{/* insert option description */} + +If you don't want to check object spreads, you can add this configuration: + +```json +{ + "@typescript-eslint/no-misused-promises": [ + "error", + { + "checksSpreads": false + } + ] +} +``` + +## Examples + +### `checksConditionals` + +{/* insert option description */} + +Examples of code for this rule with `checksConditionals: true`: + + + + +```ts option='{ "checksConditionals": true }' +const promise = Promise.resolve('value'); + +if (promise) { + // Do something +} + +const val = promise ? 123 : 456; + +[1, 2, 3].filter(() => promise); + +while (promise) { + // Do something +} +``` + + + + +```ts option='{ "checksConditionals": true }' +const promise = Promise.resolve('value'); + +// Always `await` the Promise in a conditional +if (await promise) { + // Do something +} + +const val = (await promise) ? 123 : 456; + +const returnVal = await promise; +[1, 2, 3].filter(() => returnVal); + +while (await promise) { + // Do something +} +``` + + + + +### `checksVoidReturn` + +{/* insert option description */} + +Examples of code for this rule with `checksVoidReturn: true`: + + + + +```ts option='{ "checksVoidReturn": true }' +[1, 2, 3].forEach(async value => { + await fetch(`/${value}`); +}); + +new Promise(async (resolve, reject) => { + await fetch('/'); + resolve(); +}); + +document.addEventListener('click', async () => { + console.log('synchronous call'); + await fetch('/'); + console.log('synchronous call'); +}); + +interface MySyncInterface { + setThing(): void; +} +class MyClass implements MySyncInterface { + async setThing(): Promise { + this.thing = await fetchThing(); + } +} +``` + + + + +```ts option='{ "checksVoidReturn": true }' +// for-of puts `await` in outer context +for (const value of [1, 2, 3]) { + await doSomething(value); +} + +// If outer context is not `async`, handle error explicitly +Promise.all( + [1, 2, 3].map(async value => { + await doSomething(value); + }), +).catch(handleError); + +// Use an async IIFE wrapper +new Promise((resolve, reject) => { + // combine with `void` keyword to tell `no-floating-promises` rule to ignore unhandled rejection + void (async () => { + await doSomething(); + resolve(); + })(); +}); + +// Name the async wrapper to call it later +document.addEventListener('click', () => { + const handler = async () => { + await doSomething(); + otherSynchronousCall(); + }; + + try { + synchronousCall(); + } catch (err) { + handleSpecificError(err); + } + + handler().catch(handleError); +}); + +interface MyAsyncInterface { + setThing(): Promise; +} +class MyClass implements MyAsyncInterface { + async setThing(): Promise { + this.thing = await fetchThing(); + } +} +``` + + + + +### `checksSpreads` + +{/* insert option description */} + +Examples of code for this rule with `checksSpreads: true`: + + + + +```ts option='{ "checksSpreads": true }' +const getData = () => fetch('/'); + +console.log({ foo: 42, ...getData() }); + +const awaitData = async () => { + await fetch('/'); +}; + +console.log({ foo: 42, ...awaitData() }); +``` + + + + +```ts option='{ "checksSpreads": true }' +const getData = () => fetch('/'); + +console.log({ foo: 42, ...(await getData()) }); + +const awaitData = async () => { + await fetch('/'); +}; + +console.log({ foo: 42, ...(await awaitData()) }); +``` + + + + +## When Not To Use It + +This rule can be difficult to enable on large existing projects that set up many misused Promises. +Alternately, if you're not worried about crashes from floating or misused Promises -such as if you have global unhandled Promise handlers registered- then in some cases it may be safe to not use this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [TypeScript void function assignability](https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-functions-returning-non-void-assignable-to-function-returning-void) + +## Related To + +- [`no-floating-promises`](./no-floating-promises.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx new file mode 100644 index 00000000..5e168336 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx @@ -0,0 +1,96 @@ +--- +description: 'Disallow enums from having both number and string members.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-mixed-enums** for documentation. + +TypeScript enums are allowed to assign numeric or string values to their members. +Most enums contain either all numbers or all strings, but in theory you can mix-and-match within the same enum. +Mixing enum member types is generally considered confusing and a bad practice. + +## Examples + + + + +```ts +enum Status { + Unknown, + Closed = 1, + Open = 'open', +} +``` + + + + +```ts +enum Status { + Unknown = 0, + Closed = 1, + Open = 2, +} +``` + + + + +```ts +enum Status { + Unknown, + Closed, + Open, +} +``` + + + + +```ts +enum Status { + Unknown = 'unknown', + Closed = 'closed', + Open = 'open', +} +``` + + + + +## Iteration Pitfalls of Mixed Enum Member Values + +Enum values may be iterated over using `Object.entries`/`Object.keys`/`Object.values`. + +If all enum members are strings, the number of items will match the number of enum members: + +```ts +enum Status { + Closed = 'closed', + Open = 'open', +} + +// ['closed', 'open'] +Object.values(Status); +``` + +But if the enum contains members that are initialized with numbers -including implicitly initialized numbers— then iteration over that enum will include those numbers as well: + +```ts +enum Status { + Unknown, + Closed = 1, + Open = 'open', +} + +// ["Unknown", "Closed", 0, 1, "open"] +Object.values(Status); +``` + +## When Not To Use It + +If you don't mind the confusion of mixed enum member values and don't iterate over enums, you can safely disable this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx new file mode 100644 index 00000000..8e7ca864 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx @@ -0,0 +1,149 @@ +--- +description: 'Disallow TypeScript namespaces.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-namespace** for documentation. + +TypeScript historically allowed a form of code organization called "custom modules" (`module Example {}`), later renamed to "namespaces" (`namespace Example`). +Namespaces are an outdated way to organize TypeScript code. +ES2015 module syntax is now preferred (`import`/`export`). + +> This rule does not report on the use of TypeScript module declarations to describe external APIs (`declare module 'foo' {}`). + +## Examples + +Examples of code with the default options: + + + + +```ts +module foo {} +namespace foo {} + +declare module foo {} +declare namespace foo {} +``` + + + + +```ts +declare module 'foo' {} + +// anything inside a d.ts file +``` + + + + +## Options + +### `allowDeclarations` + +{/* insert option description */} + +Examples of code with the `{ "allowDeclarations": true }` option: + + + + +```ts option='{ "allowDeclarations": true }' +module foo {} +namespace foo {} +``` + + + + +```ts option='{ "allowDeclarations": true }' +declare module 'foo' {} +declare module foo {} +declare namespace foo {} + +declare global { + namespace foo {} +} + +declare module foo { + namespace foo {} +} +``` + + + + +Examples of code for the `{ "allowDeclarations": false }` option: + + + + +```ts option='{ "allowDeclarations": false }' +module foo {} +namespace foo {} +declare module foo {} +declare namespace foo {} +``` + + + + +```ts option='{ "allowDeclarations": false }' +declare module 'foo' {} +``` + + + + +### `allowDefinitionFiles` + +{/* insert option description */} + +Examples of code for the `{ "allowDefinitionFiles": true }` option: + + + + +```ts option='{ "allowDefinitionFiles": true }' +// if outside a d.ts file +module foo {} +namespace foo {} + +// if outside a d.ts file and allowDeclarations = false +module foo {} +namespace foo {} +declare module foo {} +declare namespace foo {} +``` + + + + +```ts option='{ "allowDefinitionFiles": true }' +declare module 'foo' {} + +// anything inside a d.ts file +``` + + + + +## When Not To Use It + +If your project was architected before modern modules and namespaces, it may be difficult to migrate off of namespaces. +In that case you may not be able to use this rule for parts of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +{/* cspell:disable-next-line */} + +- [FAQ: I get errors from the `@typescript-eslint/no-namespace` and/or `no-var` rules about declaring global variables](/troubleshooting/faqs/eslint#i-get-errors-from-the-typescript-eslintno-namespace-andor-no-var-rules-about-declaring-global-variables) +- [Modules](https://www.typescriptlang.org/docs/handbook/modules.html) +- [Namespaces](https://www.typescriptlang.org/docs/handbook/namespaces.html) +- [Namespaces and Modules](https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx new file mode 100644 index 00000000..3c66cdc7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx @@ -0,0 +1,60 @@ +--- +description: 'Disallow non-null assertions in the left operand of a nullish coalescing operator.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-non-null-asserted-nullish-coalescing** for documentation. + +The `??` nullish coalescing runtime operator allows providing a default value when dealing with `null` or `undefined`. +Using a `!` non-null assertion type operator in the left operand of a nullish coalescing operator is redundant, and likely a sign of programmer error or confusion over the two operators. + +## Examples + + + + +```ts +foo! ?? bar; +foo.bazz! ?? bar; +foo!.bazz! ?? bar; +foo()! ?? bar; + +let x!: string; +x! ?? ''; + +let x: string; +x = foo(); +x! ?? ''; +``` + + + + +```ts +foo ?? bar; +foo ?? bar!; +foo!.bazz ?? bar; +foo!.bazz ?? bar!; +foo() ?? bar; + +// This is considered correct code because there's no way for the user to satisfy it. +let x: string; +x! ?? ''; +``` + + + + +## When Not To Use It + +If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) +- [Nullish Coalescing Proposal](https://github.com/tc39/proposal-nullish-coalescing) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx new file mode 100644 index 00000000..0a46583e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx @@ -0,0 +1,46 @@ +--- +description: 'Disallow non-null assertions after an optional chain expression.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-non-null-asserted-optional-chain** for documentation. + +`?.` optional chain expressions provide `undefined` if an object is `null` or `undefined`. +Using a `!` non-null assertion to assert the result of an `?.` optional chain expression is non-nullable is likely wrong. + +> Most of the time, either the object was not nullable and did not need the `?.` for its property lookup, or the `!` is incorrect and introducing a type safety hole. + +## Examples + + + + +```ts +foo?.bar!; +foo?.bar()!; +``` + + + + +```ts +foo?.bar; +foo?.bar(); +``` + + + + +## When Not To Use It + +If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) +- [Optional Chaining Proposal](https://github.com/tc39/proposal-optional-chaining/) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx new file mode 100644 index 00000000..b9706331 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx @@ -0,0 +1,48 @@ +--- +description: 'Disallow non-null assertions using the `!` postfix operator.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-non-null-assertion** for documentation. + +TypeScript's `!` non-null assertion operator asserts to the type system that an expression is non-nullable, as in not `null` or `undefined`. +Using assertions to tell the type system new information is often a sign that code is not fully type-safe. +It's generally better to structure program logic so that TypeScript understands when values may be nullable. + +## Examples + + + + +```ts +interface Example { + property?: string; +} + +declare const example: Example; +const includesBaz = example.property!.includes('baz'); +``` + + + + +```ts +interface Example { + property?: string; +} + +declare const example: Example; +const includesBaz = example.property?.includes('baz') ?? false; +``` + + + + +## When Not To Use It + +If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx new file mode 100644 index 00000000..4af33c69 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx @@ -0,0 +1,16 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been deprecated in favour of the [`parameter-properties`](https://typescript-eslint.io/rules/parameter-properties/) rule. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx new file mode 100644 index 00000000..8b24af97 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx @@ -0,0 +1,80 @@ +--- +description: 'Disallow variable redeclaration.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-redeclare** for documentation. + +import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; + + + +This rule extends the base [`eslint/no-redeclare`](https://eslint.org/docs/rules/no-redeclare) rule. +It adds support for TypeScript function overloads, and declaration merging. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseNoRedeclareOptions { + ignoreDeclarationMerge?: boolean; +} + +const defaultOptions: Options = { + ...baseNoRedeclareDefaultOptions, + ignoreDeclarationMerge: true, +}; +``` + +### `ignoreDeclarationMerge` + +{/* insert option description */} + +The following sets will be ignored when this option is enabled: + +- interface + interface +- namespace + namespace +- class + interface +- class + namespace +- class + interface + namespace +- function + namespace +- enum + namespace + +Examples of **correct** code with `{ ignoreDeclarationMerge: true }`: + +```ts option='{ "ignoreDeclarationMerge": true }' showPlaygroundButton +interface A { + prop1: 1; +} +interface A { + prop2: 2; +} + +namespace Foo { + export const a = 1; +} +namespace Foo { + export const b = 2; +} + +class Bar {} +namespace Bar {} + +function Baz() {} +namespace Baz {} +``` + +**Note:** Even with this option set to true, this rule will report if you name a type and a variable the same name. **_This is intentional_**. +Declaring a variable and a type the same is usually an accident, and it can lead to hard-to-understand code. +If you have a rare case where you're intentionally naming a type the same name as a variable, use a disable comment. For example: + +```ts option='{ "ignoreDeclarationMerge": true }' showPlaygroundButton +type something = string; +// eslint-disable-next-line @typescript-eslint/no-redeclare -- intentionally naming the variable the same as the type +const something = 2; +``` diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx new file mode 100644 index 00000000..a119ebdd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx @@ -0,0 +1,102 @@ +--- +description: 'Disallow members of unions and intersections that do nothing or override type information.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-redundant-type-constituents** for documentation. + +Some types can override some other types ("constituents") in a union or intersection and/or be overridden by some other types. +TypeScript's set theory of types includes cases where a constituent type might be useless in the parent union or intersection. + +Within `|` unions: + +- `any` and `unknown` "override" all other union members +- `never` is dropped from unions in any position except when in a return type position +- primitive types such as `string` "override" any of their literal types such as `""` + +Within `&` intersections: + +- `any` and `never` "override" all other intersection members +- `unknown` is dropped from intersections +- literal types "override" any primitive types in an intersection +- literal types such as `""` "override" any of their primitive types such as `string` + +## Examples + + + + +```ts +type UnionAny = any | 'foo'; +type UnionUnknown = unknown | 'foo'; +type UnionNever = never | 'foo'; + +type UnionBooleanLiteral = boolean | false; +type UnionNumberLiteral = number | 1; +type UnionStringLiteral = string | 'foo'; + +type IntersectionAny = any & 'foo'; +type IntersectionUnknown = string & unknown; +type IntersectionNever = string | never; + +type IntersectionBooleanLiteral = boolean & false; +type IntersectionNumberLiteral = number & 1; +type IntersectionStringLiteral = string & 'foo'; +``` + + + + +```ts +type UnionAny = any; +type UnionUnknown = unknown; +type UnionNever = never; + +type UnionBooleanLiteral = boolean; +type UnionNumberLiteral = number; +type UnionStringLiteral = string; + +type IntersectionAny = any; +type IntersectionUnknown = string; +type IntersectionNever = string; + +type IntersectionBooleanLiteral = false; +type IntersectionNumberLiteral = 1; +type IntersectionStringLiteral = 'foo'; +``` + + + + +## Limitations + +This rule plays it safe and only works with bottom types, top types, and comparing literal types to primitive types. + +## When Not To Use It + +Some projects choose to occasionally intentionally include a redundant type constituent for documentation purposes. +For example, the following code includes `string` in a union even though the `unknown` makes it redundant: + +```ts +/** + * Normally a string name, but sometimes arbitrary unknown data. + */ +type NameOrOther = string | unknown; +``` + +If you strongly feel a preference for these unnecessary type constituents, this rule might not be for you. + +## Further Reading + +- [Union Types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) +- [Intersection Types](https://www.typescriptlang.org/docs/handbook/2/objects.html#intersection-types) +- [Bottom Types](https://en.wikipedia.org/wiki/Bottom_type) +- [Top Types](https://en.wikipedia.org/wiki/Top_type) + +## Related To + +- [no-duplicate-type-constituents](./no-duplicate-type-constituents.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx new file mode 100644 index 00000000..1d4fd9ea --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx @@ -0,0 +1,100 @@ +--- +description: 'Disallow invocation of `require()`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-require-imports** for documentation. + +Prefer the newer ES6-style imports over `require()`. + +## Examples + + + + +```ts +const lib1 = require('lib1'); +const { lib2 } = require('lib2'); +import lib3 = require('lib3'); +``` + + + + +```ts +import * as lib1 from 'lib1'; +import { lib2 } from 'lib2'; +import * as lib3 from 'lib3'; +``` + + + + +## Options + +### `allow` + +{/* insert option description */} + +These strings will be compiled into regular expressions with the `u` flag and be used to test against the imported path. A common use case is to allow importing `package.json`. This is because `package.json` commonly lives outside of the TS root directory, so statically importing it would lead to root directory conflicts, especially with `resolveJsonModule` enabled. You can also use it to allow importing any JSON if your environment doesn't support JSON modules, or use it for other cases where `import` statements cannot work. + +With `{allow: ['/package\\.json$']}`: + + + + +```ts option='{ "allow": ["/package.json$"] }' +console.log(require('../data.json').version); +``` + + + + +```ts option='{ "allow": ["/package.json$"] }' +console.log(require('../package.json').version); +``` + + + + +### `allowAsImport` + +{/* insert option description */} + +When set to `true`, `import ... = require(...)` declarations won't be reported. +This is useful if you use certain module options that require strict CommonJS interop semantics. + +With `{allowAsImport: true}`: + + + + +```ts option='{ "allowAsImport": true }' +var foo = require('foo'); +const foo = require('foo'); +let foo = require('foo'); +``` + + + + +```ts option='{ "allowAsImport": true }' +import foo = require('foo'); +import foo from 'foo'; +``` + + + + +## When Not To Use It + +If your project frequently uses older CommonJS `require`s, then this rule might not be applicable to you. +If only a subset of your project uses `require`s then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-var-requires`](./no-var-requires.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx new file mode 100644 index 00000000..2c42980c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx @@ -0,0 +1,80 @@ +--- +description: 'Disallow specified modules when loaded by `import`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-restricted-imports** for documentation. + +This rule extends the base [`eslint/no-restricted-imports`](https://eslint.org/docs/rules/no-restricted-imports) rule. It adds support for the type import (`import type X from "..."`, `import { type X } from "..."`) and `import x = require("...")` syntaxes. + +## Options + +This rule adds the following options: + +### `allowTypeImports` + +{/* insert option description */} + +Whether to allow type-only imports for a path. +Default: `false`. + +You can specify this option for a specific path or pattern as follows: + +```jsonc +{ + "rules": { + "@typescript-eslint/no-restricted-imports": [ + "error", + { + "paths": [ + { + "name": "import-foo", + "message": "Please use import-bar instead.", + "allowTypeImports": true, + }, + { + "name": "import-baz", + "message": "Please use import-quux instead.", + "allowTypeImports": true, + }, + ], + }, + ], + }, +} +``` + +Whether to allow [Type-Only Imports](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export). + +Examples of code with the above config: + + + + +```ts option='{"paths":[{"name":"import-foo","message":"Please use import-bar instead.","allowTypeImports":true},{"name":"import-baz","message":"Please use import-quux instead.","allowTypeImports":true}]}' +import foo from 'import-foo'; +export { Foo } from 'import-foo'; + +import baz from 'import-baz'; +export { Baz } from 'import-baz'; +``` + + + + +```ts option='{"paths":[{"name":"import-foo","message":"Please use import-bar instead.","allowTypeImports":true},{"name":"import-baz","message":"Please use import-quux instead.","allowTypeImports":true}]}' +import { foo } from 'other-module'; + +import type foo from 'import-foo'; +export type { Foo } from 'import-foo'; + +import type baz from 'import-baz'; +export type { Baz } from 'import-baz'; +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx new file mode 100644 index 00000000..40219e99 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx @@ -0,0 +1,71 @@ +--- +description: 'Disallow certain types.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-restricted-types** for documentation. + +It can sometimes be useful to ban specific types from being used in type annotations. +For example, a project might be migrating from using one type to another, and want to ban references to the old type. + +This rule can be configured to ban a list of specific types and can suggest alternatives. +Note that it does not ban the corresponding runtime objects from being used. + +## Options + +### `types` + +{/* insert option description */} + +The type can either be a type name literal (`OldType`) or a a type name with generic parameter instantiation(s) (`OldType`). + +The values can be: + +- A string, which is the error message to be reported; or +- `false` to specifically un-ban this type (useful when you are using `extendDefaults`); or +- An object with the following properties: + - `message: string`: the message to display when the type is matched. + - `fixWith?: string`: a string to replace the banned type with when the fixer is run. If this is omitted, no fix will be done. + - `suggest?: string[]`: a list of suggested replacements for the banned type. + +Example configuration: + +```jsonc +{ + "@typescript-eslint/no-restricted-types": [ + "error", + { + "types": { + // add a custom message to help explain why not to use it + "OldType": "Don't use OldType because it is unsafe", + + // add a custom message, and tell the plugin how to fix it + "OldAPI": { + "message": "Use NewAPI instead", + "fixWith": "NewAPI", + }, + + // add a custom message, and tell the plugin how to suggest a fix + "SoonToBeOldAPI": { + "message": "Use NewAPI instead", + "suggest": ["NewAPIOne", "NewAPITwo"], + }, + }, + }, + ], +} +``` + +## When Not To Use It + +If you have no need to ban specific types from being used in type annotations, you don't need this rule. + +## Related To + +- [`no-empty-object-type`](./no-empty-object-type.mdx) +- [`no-unsafe-function-type`](./no-unsafe-function-type.mdx) +- [`no-wrapper-object-types`](./no-wrapper-object-types.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx new file mode 100644 index 00000000..ecd105f6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx @@ -0,0 +1,110 @@ +--- +description: 'Disallow variable declarations from shadowing variables declared in the outer scope.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-shadow** for documentation. + +This rule extends the base [`eslint/no-shadow`](https://eslint.org/docs/rules/no-shadow) rule. +It adds support for TypeScript's `this` parameters and global augmentation, and adds options for TypeScript features. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseNoShadowOptions { + ignoreTypeValueShadow?: boolean; + ignoreFunctionTypeParameterNameValueShadow?: boolean; +} + +const defaultOptions: Options = { + ...baseNoShadowDefaultOptions, + ignoreTypeValueShadow: true, + ignoreFunctionTypeParameterNameValueShadow: true, +}; +``` + +### `ignoreTypeValueShadow` + +{/* insert option description */} + +This is generally safe because you cannot use variables in type locations without a `typeof` operator, so there's little risk of confusion. + +Examples of **correct** code with `{ ignoreTypeValueShadow: true }`: + +```ts option='{ "ignoreTypeValueShadow": true }' showPlaygroundButton +type Foo = number; +interface Bar { + prop: number; +} + +function f() { + const Foo = 1; + const Bar = 'test'; +} +``` + +:::note + +_Shadowing_ specifically refers to two identical identifiers that are in different, nested scopes. This is different from _redeclaration_, which is when two identical identifiers are in the same scope. Redeclaration is covered by the [`no-redeclare`](./no-redeclare.mdx) rule instead. + +::: + +### `ignoreFunctionTypeParameterNameValueShadow` + +{/* insert option description */} + +Each of a function type's arguments creates a value variable within the scope of the function type. This is done so that you can reference the type later using the `typeof` operator: + +```ts +type Func = (test: string) => typeof test; + +declare const fn: Func; +const result = fn('str'); // typeof result === string +``` + +This means that function type arguments shadow value variable names in parent scopes: + +```ts +let test = 1; +type TestType = typeof test; // === number +type Func = (test: string) => typeof test; // this "test" references the argument, not the variable + +declare const fn: Func; +const result = fn('str'); // typeof result === string +``` + +If you do not use the `typeof` operator in a function type return type position, you can safely turn this option on. + +Examples of **correct** code with `{ ignoreFunctionTypeParameterNameValueShadow: true }`: + +```ts option='{ "ignoreFunctionTypeParameterNameValueShadow": true }' showPlaygroundButton +const test = 1; +type Func = (test: string) => typeof test; +``` + +## FAQ + +### Why does the rule report on enum members that share the same name as a variable in a parent scope? + +Reporting on this case isn't a bug - it is completely intentional and correct reporting! The rule reports due to a relatively unknown feature of enums - enum members create a variable within the enum scope so that they can be referenced within the enum without a qualifier. + +To illustrate this with an example: + +```ts +const A = 2; +enum Test { + A = 1, + B = A, +} + +console.log(Test.B); +// what should be logged? +``` + +Naively looking at the above code, it might look like the log should output `2`, because the outer variable `A`'s value is `2` - however, the code instead outputs `1`, which is the value of `Test.A`. This is because the unqualified code `B = A` is equivalent to the fully-qualified code `B = Test.A`. Due to this behavior, the enum member has **shadowed** the outer variable declaration. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx new file mode 100644 index 00000000..f5a9c86f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx @@ -0,0 +1,124 @@ +--- +description: 'Disallow aliasing `this`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-this-alias** for documentation. + +Assigning a variable to `this` instead of properly using arrow lambdas may be a symptom of pre-ES6 practices +or not managing scope well. + +## Examples + + + + +```ts +const self = this; + +setTimeout(function () { + self.doWork(); +}); +``` + + + + +```ts +setTimeout(() => { + this.doWork(); +}); +``` + + + + +## Options + +### `allowDestructuring` + +{/* insert option description */} + +It can sometimes be useful to destructure properties from a class instance, such as retrieving multiple properties from the instance in one of its methods. +`allowDestructuring` allows those destructures and is `true` by default. +You can explicitly disallow them by setting `allowDestructuring` to `false`. + +Examples of code for the `{ "allowDestructuring": false }` option: + + + + +```ts option='{ "allowDestructuring": false }' +class ComponentLike { + props: unknown; + state: unknown; + + render() { + const { props, state } = this; + + console.log(props); + console.log(state); + } +} +``` + + + + +```ts option='{ "allowDestructuring": false }' +class ComponentLike { + props: unknown; + state: unknown; + + render() { + console.log(this.props); + console.log(this.state); + } +} +``` + + + + +### `allowedNames` + +{/* insert option description */} + +`no-this-alias` can alternately be used to allow only a specific list of names as `this` aliases. +We recommend against this except as a transitory step towards fixing all rule violations. + +Examples of code for the `{ "allowedNames": ["self"] }` option: + + + + +```ts option='{ "allowedNames": ["self"] }' +class Example { + method() { + const that = this; + } +} +``` + + + + +```ts option='{ "allowedNames": ["self"] }' +class Example { + method() { + const self = this; + } +} +``` + + + + +## When Not To Use It + +If your project is structured in a way that it needs to assign `this` to variables, this rule is likely not for you. +If only a subset of your project assigns `this` to variables then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx new file mode 100644 index 00000000..3142deb7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx @@ -0,0 +1,626 @@ +--- +description: 'Disallow type aliases.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-type-alias** for documentation. + +:::danger Deprecated + +This rule has been deprecated in favour of the [`@typescript-eslint/consistent-type-definitions`](./consistent-type-definitions.mdx) rule. +TypeScript type aliases are a commonly necessary language feature; banning it altogether is oftentimes counterproductive. + +::: + +:::note + +If you want to ban certain classifications of type aliases, consider using [`no-restricted-syntax`](https://eslint.org/docs/latest/rules/no-restricted-syntax). +See [Troubleshooting & FAQs](/troubleshooting/faqs/general#how-can-i-ban-specific-language-feature). + +::: + +In TypeScript, type aliases serve three purposes: + +- Aliasing other types so that we can refer to them using a simpler name. + +```ts +// this... +type Person = { + firstName: string; + lastName: string; + age: number; +}; + +function addPerson(person: Person) { + // ... +} + +// is easier to read than this... +function addPerson(person: { + firstName: string; + lastName: string; + age: number; +}) { + // ... +} +``` + +- Act sort of like an interface, providing a set of methods and properties that must exist + in the objects implementing the type. + +```ts +type Person = { + firstName: string; + lastName: string; + age: number; + walk: () => void; + talk: () => void; +}; + +// you know person will have 3 properties and 2 methods, +// because the structure has already been defined. +var person: Person = { + // ... +}; + +// so we can be sure that this will work +person.walk(); +``` + +- Act like mapping tools between types to allow quick modifications. + +```ts +type Immutable = { readonly [P in keyof T]: T[P] }; + +type Person = { + name: string; + age: number; +}; + +type ImmutablePerson = Immutable; + +var person: ImmutablePerson = { name: 'John', age: 30 }; +person.name = 'Brad'; // error, readonly property +``` + +When aliasing, the type alias does not create a new type, it just creates a new name +to refer to the original type. So aliasing primitives and other simple types, tuples, unions +or intersections can some times be redundant. + +```ts +// this doesn't make much sense +type myString = string; +``` + +On the other hand, using a type alias as an interface can limit your ability to: + +- Reuse your code: interfaces can be extended or implemented by other types. Type aliases cannot. +- Debug your code: interfaces create a new name, so is easy to identify the base type of an object + while debugging the application. + +Finally, mapping types is an advanced technique and leaving it open can quickly become a pain point +in your application. + +## Examples + +This rule disallows the use of type aliases in favor of interfaces +and simplified types (primitives, tuples, unions, intersections, etc). + +## Options + +### `allowAliases` + +{/* insert option description */} + +The setting accepts the following values: + +- `"always"` or `"never"` to active or deactivate the feature. +- `"in-unions"`, allows aliasing in union statements, e.g. `type Foo = string | string[];` +- `"in-intersections"`, allows aliasing in intersection statements, e.g. `type Foo = string & string[];` +- `"in-unions-and-intersections"`, allows aliasing in union and/or intersection statements. + +Examples of **correct** code for the `{ "allowAliases": "always" }` options: + +```ts option='{ "allowAliases": "always" }' showPlaygroundButton +// primitives +type Foo = 'a'; + +type Foo = 'a' | 'b'; + +type Foo = string; + +type Foo = string | string[]; + +type Foo = string & string[]; + +type Foo = `foo-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar; + +type Foo = Bar | Baz; + +type Foo = Bar & Baz; +``` + +Examples of **incorrect** code for the `{ "allowAliases": "in-unions" }` option: + +```ts option='{ "allowAliases": "in-unions" }' showPlaygroundButton +// primitives +type Foo = 'a'; + +type Foo = string; + +type Foo = string & string[]; + +type Foo = `foo-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar; + +type Foo = Bar & Baz; +``` + +Examples of **correct** code for the `{ "allowAliases": "in-unions" }` option: + +```ts option='{ "allowAliases": "in-unions" }' showPlaygroundButton +// primitives +type Foo = 'a' | 'b'; + +type Foo = string | string[]; + +type Foo = `a-${number}` | `b-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar | Baz; +``` + +Examples of **incorrect** code for the `{ "allowAliases": "in-intersections" }` option: + +```ts option='{ "allowAliases": "in-intersections" }' showPlaygroundButton +// primitives +type Foo = 'a'; + +type Foo = 'a' | 'b'; + +type Foo = string; + +type Foo = string | string[]; + +type Foo = `a-${number}` | `b-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar; + +type Foo = Bar | Baz; +``` + +Examples of **correct** code for the `{ "allowAliases": "in-intersections" }` option: + +```ts option='{ "allowAliases": "in-intersections" }' showPlaygroundButton +// primitives +type Foo = string & string[]; + +type Foo = `a-${number}` & `b-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar & Baz; +``` + +Examples of **incorrect** code for the `{ "allowAliases": "in-unions-and-intersections" }` option: + +```ts option='{ "allowAliases": "in-unions-and-intersections" }' showPlaygroundButton +// primitives +type Foo = 'a'; + +type Foo = string; + +type Foo = `foo-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar; +``` + +Examples of **correct** code for the `{ "allowAliases": "in-unions-and-intersections" }` option: + +```ts option='{ "allowAliases": "in-unions-and-intersections" }' showPlaygroundButton +// primitives +type Foo = 'a' | 'b'; + +type Foo = string | string[]; + +type Foo = string & string[]; + +type Foo = `a-${number}` & `b-${number}`; + +type Foo = `a-${number}` | `b-${number}`; + +// reference types +interface Bar {} +class Baz implements Bar {} + +type Foo = Bar | Baz; + +type Foo = Bar & Baz; +``` + +### `allowCallbacks` + +{/* insert option description */} + +The setting accepts the following values: + +- `"always"` or `"never"` to active or deactivate the feature. + +Examples of **correct** code for the `{ "allowCallbacks": "always" }` option: + +```ts option='{ "allowCallbacks": "always" }' showPlaygroundButton +type Foo = () => void; + +type Foo = (name: string) => string; + +class Person {} + +type Foo = (name: string, age: number) => string | Person; + +type Foo = (name: string, age: number) => string & Person; +``` + +### `allowConditionalTypes` + +{/* insert option description */} + +Examples of **correct** code for the `{ "allowConditionalTypes": "always" }` option: + +```ts option='{ "allowConditionalTypes": "always" }' showPlaygroundButton +type Foo = T extends number ? number : null; +``` + +### `allowConstructors` + +{/* insert option description */} + +The setting accepts the following values: + +- `"always"` or `"never"` to active or deactivate the feature. + +Examples of **correct** code for the `{ "allowConstructors": "always" }` option: + +```ts option='{ "allowConstructors": "always" }' showPlaygroundButton +type Foo = new () => void; +``` + +### `allowLiterals` + +{/* insert option description */} + +The setting accepts the following options: + +- `"always"` or `"never"` to active or deactivate the feature. +- `"in-unions"`, allows literals in union statements, e.g. `type Foo = string | string[];` +- `"in-intersections"`, allows literals in intersection statements, e.g. `type Foo = string & string[];` +- `"in-unions-and-intersections"`, allows literals in union and/or intersection statements. + +Examples of **correct** code for the `{ "allowLiterals": "always" }` options: + +```ts option='{ "allowLiterals": "always" }' showPlaygroundButton +type Foo = {}; + +type Foo = { + name: string; + age: number; +}; + +type Foo = { + name: string; + age: number; + walk: (miles: number) => void; +}; + +type Foo = { name: string } | { age: number }; + +type Foo = { name: string } & { age: number }; +``` + +Examples of **incorrect** code for the `{ "allowLiterals": "in-unions" }` option: + +```ts option='{ "allowLiterals": "in-unions" }' showPlaygroundButton +type Foo = {}; + +type Foo = { + name: string; + age: number; +}; + +type Foo = { + name: string; + age: number; + walk: (miles: number) => void; +}; + +type Foo = { name: string } & { age: number }; +``` + +Examples of **correct** code for the `{ "allowLiterals": "in-unions" }` option: + +```ts option='{ "allowLiterals": "in-unions" }' showPlaygroundButton +type Foo = { name: string } | { age: number }; +``` + +Examples of **incorrect** code for the `{ "allowLiterals": "in-intersections" }` option: + +```ts option='{ "allowLiterals": "in-intersections" }' showPlaygroundButton +type Foo = {}; + +type Foo = { + name: string; + age: number; +}; + +type Foo = { + name: string; + age: number; + walk: (miles: number) => void; +}; + +type Foo = { name: string } | { age: number }; +``` + +Examples of **correct** code for the `{ "allowLiterals": "in-intersections" }` option: + +```ts option='{ "allowLiterals": "in-intersections" }' showPlaygroundButton +type Foo = { name: string } & { age: number }; +``` + +Examples of **incorrect** code for the `{ "allowLiterals": "in-unions-and-intersections" }` option: + +```ts option='{ "allowLiterals": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = {}; + +type Foo = { + name: string; + age: number; +}; + +type Foo = { + name: string; + age: number; + walk: (miles: number) => void; +}; +``` + +Examples of **correct** code for the `{ "allowLiterals": "in-unions-and-intersections" }` option: + +```ts option='{ "allowLiterals": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = { name: string } | { age: number }; + +type Foo = { name: string } & { age: number }; +``` + +### `allowMappedTypes` + +{/* insert option description */} + +The setting accepts the following values: + +- `"always"` or `"never"` to active or deactivate the feature. +- `"in-unions"`, allows aliasing in union statements, e.g. `type Foo = string | string[];` +- `"in-intersections"`, allows aliasing in intersection statements, e.g. `type Foo = string & string[];` +- `"in-unions-and-intersections"`, allows aliasing in union and/or intersection statements. + +Examples of **correct** code for the `{ "allowMappedTypes": "always" }` options: + +```ts option='{ "allowMappedTypes": "always" }' showPlaygroundButton +type Foo = { readonly [P in keyof T]: T[P] }; + +type Foo = { [P in keyof T]?: T[P] }; + +type Foo = + | { readonly [P in keyof T]: T[P] } + | { readonly [P in keyof U]: U[P] }; + +type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; + +type Foo = { readonly [P in keyof T]: T[P] } & { + readonly [P in keyof U]: U[P]; +}; + +type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; +``` + +Examples of **incorrect** code for the `{ "allowMappedTypes": "in-unions" }` option: + +```ts option='{ "allowMappedTypes": "in-unions" }' showPlaygroundButton +type Foo = { readonly [P in keyof T]: T[P] }; + +type Foo = { [P in keyof T]?: T[P] }; + +type Foo = { readonly [P in keyof T]: T[P] } & { + readonly [P in keyof U]: U[P]; +}; + +type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; +``` + +Examples of **correct** code for the `{ "allowMappedTypes": "in-unions" }` option: + +```ts option='{ "allowMappedTypes": "in-unions" }' showPlaygroundButton +type Foo = + | { readonly [P in keyof T]: T[P] } + | { readonly [P in keyof U]: U[P] }; + +type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; +``` + +Examples of **incorrect** code for the `{ "allowMappedTypes": "in-intersections" }` option: + +```ts option='{ "allowMappedTypes": "in-intersections" }' showPlaygroundButton +type Foo = { readonly [P in keyof T]: T[P] }; + +type Foo = { [P in keyof T]?: T[P] }; + +type Foo = + | { readonly [P in keyof T]: T[P] } + | { readonly [P in keyof U]: U[P] }; + +type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; +``` + +Examples of **correct** code for the `{ "allowMappedTypes": "in-intersections" }` option: + +```ts option='{ "allowMappedTypes": "in-intersections" }' showPlaygroundButton +type Foo = { readonly [P in keyof T]: T[P] } & { + readonly [P in keyof U]: U[P]; +}; + +type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; +``` + +Examples of **incorrect** code for the `{ "allowMappedTypes": "in-unions-and-intersections" }` option: + +```ts option='{ "allowMappedTypes": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = { readonly [P in keyof T]: T[P] }; + +type Foo = { [P in keyof T]?: T[P] }; +``` + +Examples of **correct** code for the `{ "allowMappedTypes": "in-unions-and-intersections" }` option: + +```ts option='{ "allowMappedTypes": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = + | { readonly [P in keyof T]: T[P] } + | { readonly [P in keyof U]: U[P] }; + +type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; + +type Foo = { readonly [P in keyof T]: T[P] } & { + readonly [P in keyof U]: U[P]; +}; + +type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; +``` + +### `allowTupleTypes` + +{/* insert option description */} + +The setting accepts the following options: + +- `"always"` or `"never"` to active or deactivate the feature. +- `"in-unions"`, allows tuples in union statements, e.g. `type Foo = [string] | [string, string];` +- `"in-intersections"`, allows tuples in intersection statements, e.g. `type Foo = [string] & [string, string];` +- `"in-unions-and-intersections"`, allows tuples in union and/or intersection statements. + +Examples of **correct** code for the `{ "allowTupleTypes": "always" }` options: + +```ts option='{ "allowTupleTypes": "always" }' showPlaygroundButton +type Foo = [number]; + +type Foo = [number] | [number, number]; + +type Foo = [number] & [number, number]; + +type Foo = [number] | ([number, number] & [string, string]); +``` + +Examples of **incorrect** code for the `{ "allowTupleTypes": "in-unions" }` option: + +```ts option='{ "allowTupleTypes": "in-unions" }' showPlaygroundButton +type Foo = [number]; + +type Foo = [number] & [number, number]; + +type Foo = [string] & [number]; +``` + +Examples of **correct** code for the `{ "allowTupleTypes": "in-unions" }` option: + +```ts option='{ "allowTupleTypes": "in-unions" }' showPlaygroundButton +type Foo = [number] | [number, number]; + +type Foo = [string] | [number]; +``` + +Examples of **incorrect** code for the `{ "allowTupleTypes": "in-intersections" }` option: + +```ts option='{ "allowTupleTypes": "in-intersections" }' showPlaygroundButton +type Foo = [number]; + +type Foo = [number] | [number, number]; + +type Foo = [string] | [number]; +``` + +Examples of **correct** code for the `{ "allowTupleTypes": "in-intersections" }` option: + +```ts option='{ "allowTupleTypes": "in-intersections" }' showPlaygroundButton +type Foo = [number] & [number, number]; + +type Foo = [string] & [number]; +``` + +Examples of **incorrect** code for the `{ "allowTupleTypes": "in-unions-and-intersections" }` option: + +```ts option='{ "allowTupleTypes": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = [number]; + +type Foo = [string]; +``` + +Examples of **correct** code for the `{ "allowTupleTypes": "in-unions-and-intersections" }` option: + +```ts option='{ "allowTupleTypes": "in-unions-and-intersections" }' showPlaygroundButton +type Foo = [number] & [number, number]; + +type Foo = [string] | [number]; +``` + +### `allowGenerics` + +{/* insert option description */} + +The setting accepts the following options: + +- `"always"` or `"never"` to active or deactivate the feature. + +Examples of **correct** code for the `{ "allowGenerics": "always" }` options: + +```ts option='{ "allowGenerics": "always" }' showPlaygroundButton +type Foo = Bar; + +type Foo = Record; + +type Foo = Readonly; + +type Foo = Partial; + +type Foo = Omit; +``` + +{/* Intentionally Omitted: When Not To Use It */} + +## Further Reading + +- [Advanced Types](https://www.typescriptlang.org/docs/handbook/advanced-types.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx new file mode 100644 index 00000000..16462771 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx @@ -0,0 +1,149 @@ +--- +description: 'Disallow unnecessary equality comparisons against boolean literals.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare** for documentation. + +Comparing boolean values to boolean literals is unnecessary: those comparisons result in the same booleans. +Using the boolean values directly, or via a unary negation (`!value`), is more concise and clearer. + +This rule ensures that you do not include unnecessary comparisons with boolean literals. +A comparison is considered unnecessary if it checks a boolean literal against any variable with just the `boolean` type. +A comparison is **_not_** considered unnecessary if the type is a union of booleans (`string | boolean`, `SomeObject | boolean`, etc.). + +## Examples + +:::note +Throughout this page, only strict equality (`===` and `!==`) are used in the examples. +However, the implementation of the rule does not distinguish between strict and loose equality. +Any example below that uses `===` would be treated the same way if `==` was used, and `!==` would be treated the same way if `!=` was used. +::: + + + + +```ts +declare const someCondition: boolean; +if (someCondition === true) { +} +``` + + + + +```ts +declare const someCondition: boolean; +if (someCondition) { +} + +declare const someObjectBoolean: boolean | Record; +if (someObjectBoolean === true) { +} + +declare const someStringBoolean: boolean | string; +if (someStringBoolean === true) { +} +``` + + + + +## Options + +This rule always checks comparisons between a boolean variable and a boolean +literal. Comparisons between nullable boolean variables and boolean literals +are **not** checked by default. + +### `allowComparingNullableBooleansToTrue` + +{/* insert option description */} + +Examples of code for this rule with `{ allowComparingNullableBooleansToTrue: false }`: + + + + +```ts option='{ "allowComparingNullableBooleansToTrue": false }' +declare const someUndefinedCondition: boolean | undefined; +if (someUndefinedCondition === true) { +} + +declare const someNullCondition: boolean | null; +if (someNullCondition !== true) { +} +``` + + + + +```ts option='{ "allowComparingNullableBooleansToTrue": false }' +declare const someUndefinedCondition: boolean | undefined; +if (someUndefinedCondition) { +} + +declare const someNullCondition: boolean | null; +if (!someNullCondition) { +} +``` + + + + +### `allowComparingNullableBooleansToFalse` + +{/* insert option description */} + +Examples of code for this rule with `{ allowComparingNullableBooleansToFalse: false }`: + + + + +```ts option='{ "allowComparingNullableBooleansToFalse": false }' +declare const someUndefinedCondition: boolean | undefined; +if (someUndefinedCondition === false) { +} + +declare const someNullCondition: boolean | null; +if (someNullCondition !== false) { +} +``` + + + + +```ts option='{ "allowComparingNullableBooleansToFalse": false }' +declare const someUndefinedCondition: boolean | undefined; +if (!(someUndefinedCondition ?? true)) { +} + +declare const someNullCondition: boolean | null; +if (someNullCondition ?? true) { +} +``` + + + + +## Fixer + +| Comparison | Fixer Output | Notes | +| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- | +| `booleanVar === true` | `booleanVar` | | +| `booleanVar !== true` | `!booleanVar` | | +| `booleanVar === false` | `!booleanVar` | | +| `booleanVar !== false` | `booleanVar` | | +| `nullableBooleanVar === true` | `nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` | +| `nullableBooleanVar !== true` | `!nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` | +| `nullableBooleanVar === false` | `!(nullableBooleanVar ?? true)` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` | +| `nullableBooleanVar !== false` | `nullableBooleanVar ?? true` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` | + +## When Not To Use It + +Do not use this rule when `strictNullChecks` is disabled. +ESLint is not able to distinguish between `false` and `undefined` or `null` values. +This can cause unintended code changes when using autofix. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx new file mode 100644 index 00000000..06cfc9eb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx @@ -0,0 +1,176 @@ +--- +description: 'Disallow conditionals where the type is always truthy or always falsy.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-condition** for documentation. + +Any expression being used as a condition must be able to evaluate as truthy or falsy in order to be considered "necessary". +Conversely, any expression that always evaluates to truthy or always evaluates to falsy, as determined by the type of the expression, is considered unnecessary and will be flagged by this rule. + +The following expressions are checked: + +- Arguments to the `&&`, `||` and `?:` (ternary) operators +- Conditions for `if`, `for`, `while`, and `do-while` statements +- `case`s in `switch` statements +- Base values of optional chain expressions + +## Examples + + + + +```ts +function head(items: T[]) { + // items can never be nullable, so this is unnecessary + if (items) { + return items[0].toUpperCase(); + } +} + +function foo(arg: 'bar' | 'baz') { + // arg is never nullable or empty string, so this is unnecessary + if (arg) { + } +} + +function bar(arg: string) { + // arg can never be nullish, so ?. is unnecessary + return arg?.length; +} + +// Checks array predicate return types, where possible +[ + [1, 2], + [3, 4], +].filter(t => t); // number[] is always truthy +``` + + + + +```ts +function head(items: T[]) { + // Necessary, since items.length might be 0 + if (items.length) { + return items[0].toUpperCase(); + } +} + +function foo(arg: string) { + // Necessary, since foo might be ''. + if (arg) { + } +} + +function bar(arg?: string | null) { + // Necessary, since arg might be nullish + return arg?.length; +} + +[0, 1, 2, 3].filter(t => t); // number can be truthy or falsy +``` + + + + +## Options + +### `allowConstantLoopConditions` + +{/* insert option description */} + +Example of correct code for `{ allowConstantLoopConditions: true }`: + +```ts option='{ "allowConstantLoopConditions": true }' showPlaygroundButton +while (true) {} +for (; true; ) {} +do {} while (true); +``` + +### `checkTypePredicates` + +{/* insert option description */} + +Example of additional incorrect code with `{ checkTypePredicates: true }`: + +```ts option='{ "checkTypePredicates": true }' showPlaygroundButton +function assert(condition: unknown): asserts condition { + if (!condition) { + throw new Error('Condition is falsy'); + } +} + +assert(false); // Unnecessary; condition is always falsy. + +const neverNull = {}; +assert(neverNull); // Unnecessary; condition is always truthy. + +function isString(value: unknown): value is string { + return typeof value === 'string'; +} + +declare const s: string; + +// Unnecessary; s is always a string. +if (isString(s)) { +} + +function assertIsString(value: unknown): asserts value is string { + if (!isString(value)) { + throw new Error('Value is not a string'); + } +} + +assertIsString(s); // Unnecessary; s is always a string. +``` + +Whether this option makes sense for your project may vary. +Some projects may intentionally use type predicates to ensure that runtime values do indeed match the types according to TypeScript, especially in test code. +Often, it makes sense to use eslint-disable comments in these cases, with a comment indicating why the condition should be checked at runtime, despite appearing unnecessary. +However, in some contexts, it may be more appropriate to keep this option disabled entirely. + +### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` + +{/* insert option description */} + +:::danger Deprecated +This option will be removed in the next major version of typescript-eslint. +::: + +If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. + +Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule useless. + +You should be using `strictNullChecks` to ensure complete type-safety in your codebase. + +If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. + +## When Not To Use It + +If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +This rule has a known edge case of triggering on conditions that were modified within function calls (as side effects). +It is due to limitations of TypeScript's type narrowing. +See [#9998](https://github.com/microsoft/TypeScript/issues/9998) for details. +We recommend using a [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions) in those cases. + +```ts +let condition = false as boolean; + +const f = () => (condition = true); +f(); + +if (condition) { +} +``` + +## Related To + +- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information. +- [strict-boolean-expressions](./strict-boolean-expressions.mdx) - a more opinionated version of `no-unnecessary-condition`. `strict-boolean-expressions` enforces a specific code style, while `no-unnecessary-condition` is about correctness. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx new file mode 100644 index 00000000..836ac8bd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx @@ -0,0 +1,42 @@ +--- +description: 'Disallow unnecessary assignment of constructor property parameter.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment** for documentation. + +[TypeScript's parameter properties](https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties) allow creating and initializing a member in one place. +Therefore, in most cases, it is not necessary to assign parameter properties of the same name to members within a constructor. + +## Examples + + + + +```ts +class Foo { + constructor(public bar: string) { + this.bar = bar; + } +} +``` + + + + +```ts +class Foo { + constructor(public bar: string) {} +} +``` + + + + +## When Not To Use It + +If you don't use parameter properties, you can ignore this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx new file mode 100644 index 00000000..aaf5edb8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx @@ -0,0 +1,57 @@ +--- +description: 'Disallow unnecessary namespace qualifiers.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-qualifier** for documentation. + +Members of TypeScript enums and namespaces are generally retrieved as qualified property lookups: e.g. `Enum.member`. +However, when accessed within their parent enum or namespace, the qualifier is unnecessary: e.g. just `member` instead of `Enum.member`. +This rule reports when an enum or namespace qualifier is unnecessary. + +## Examples + + + + +```ts +enum A { + B, + C = A.B, +} +``` + +```ts +namespace A { + export type B = number; + const x: A.B = 3; +} +``` + + + + +```ts +enum A { + B, + C = B, +} +``` + +```ts +namespace A { + export type B = number; + const x: B = 3; +} +``` + + + + +## When Not To Use It + +If you explicitly prefer to use fully qualified names, such as for explicitness, then you don't need to use this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx new file mode 100644 index 00000000..1fe39d41 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx @@ -0,0 +1,85 @@ +--- +description: 'Disallow unnecessary template expressions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-template-expression** for documentation. + +This rule reports template literals that contain substitution expressions (also variously referred to as embedded expressions or string interpolations) that are unnecessary and can be simplified. + +:::info[Migration from `no-useless-template-literals`] + +This rule was formerly known as [`no-useless-template-literals`](./no-useless-template-literals.mdx). +The new name is a drop-in replacement with identical functionality. + +::: + +## Examples + + + + +```ts +// Static values can be incorporated into the surrounding template. + +const ab1 = `${'a'}${'b'}`; +const ab2 = `a${'b'}`; + +const stringWithNumber = `${'1 + 1 = '}${2}`; + +const stringWithBoolean = `${'true is '}${true}`; + +// Some simple expressions that are already strings +// can be rewritten without a template at all. + +const text = 'a'; +const wrappedText = `${text}`; + +declare const intersectionWithString: string & { _brand: 'test-brand' }; +const wrappedIntersection = `${intersectionWithString}`; +``` + + + + +```ts +// Static values can be incorporated into the surrounding template. + +const ab1 = `ab`; +const ab2 = `ab`; + +const stringWithNumber = `1 + 1 = 2`; + +const stringWithBoolean = `true is true`; + +// Some simple expressions that are already strings +// can be rewritten without a template at all. + +const text = 'a'; +const wrappedText = text; + +declare const intersectionWithString: string & { _brand: 'test-brand' }; +const wrappedIntersection = intersectionWithString; +``` + + + + +:::info +This rule does not aim to flag template literals without substitution expressions that could have been written as an ordinary string. +That is to say, this rule will not help you turn `` `this` `` into `"this"`. +If you are looking for such a rule, you can configure the [`@stylistic/ts/quotes`](https://eslint.style/rules/ts/quotes) rule to do this. +::: + +## When Not To Use It + +When you want to allow string expressions inside template literals. + +## Related To + +- [`restrict-template-expressions`](./restrict-template-expressions.mdx) +- [`@stylistic/ts/quotes`](https://eslint.style/rules/ts/quotes) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx new file mode 100644 index 00000000..875b4f47 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx @@ -0,0 +1,85 @@ +--- +description: 'Disallow type arguments that are equal to the default.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-type-arguments** for documentation. + +Type parameters in TypeScript may specify a default value. +For example: + +```ts +function f(/* ... */) { + // ... +} +``` + +It is redundant to provide an explicit type parameter equal to that default: e.g. calling `f(...)`. +This rule reports when an explicitly specified type argument is the default for that type parameter. + +## Examples + + + + +```ts +function f() {} +f(); +``` + +```ts +function g() {} +g(); +``` + +```ts +class C {} +new C(); + +class D extends C {} +``` + +```ts +interface I {} +class Impl implements I {} +``` + + + + +```ts +function f() {} +f(); +f(); +``` + +```ts +function g() {} +g(); +g(); +``` + +```ts +class C {} +new C(); +new C(); + +class D extends C {} +class D extends C {} +``` + +```ts +interface I {} +class Impl implements I {} +``` + + + + +## When Not To Use It + +If you prefer explicitly specifying type parameters even when they are equal to the default, you can skip this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx new file mode 100644 index 00000000..497f8431 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx @@ -0,0 +1,89 @@ +--- +description: 'Disallow type assertions that do not change the type of an expression.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-type-assertion** for documentation. + +TypeScript can be told an expression is a different type than expected using `as` type assertions. +Leaving `as` assertions in the codebase increases visual clutter and harms code readability, so it's generally best practice to remove them if they don't change the type of an expression. +This rule reports when a type assertion does not change the type of an expression. + +## Examples + + + + +```ts +const foo = 3; +const bar = foo!; +``` + +```ts +const foo = (3 + 5); +``` + +```ts +type Foo = number; +const foo = (3 + 5); +``` + +```ts +type Foo = number; +const foo = (3 + 5) as Foo; +``` + +```ts +const foo = 'foo' as const; +``` + +```ts +function foo(x: number): number { + return x!; // unnecessary non-null +} +``` + + + + +```ts +const foo = 3; +``` + +```ts +const foo = 3 as number; +``` + +```ts +let foo = 'foo' as const; +``` + +```ts +function foo(x: number | undefined): number { + return x!; +} +``` + + + + +## Options + +### `typesToIgnore` + +{/* insert option description */} + +With `@typescript-eslint/no-unnecessary-type-assertion: ["error", { typesToIgnore: ['Foo'] }]`, the following is **correct** code: + +```ts option='{ "typesToIgnore": ["Foo"] }' showPlaygroundButton +type Foo = 3; +const foo: Foo = 3; +``` + +## When Not To Use It + +If you don't care about having no-op type assertions in your code, then you can turn off this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx new file mode 100644 index 00000000..ba52d4b9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx @@ -0,0 +1,61 @@ +--- +description: 'Disallow unnecessary constraints on generic types.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-type-constraint** for documentation. + +Generic type parameters (``) in TypeScript may be "constrained" with an [`extends` keyword](https://www.typescriptlang.org/docs/handbook/generics.html#generic-constraints). +When no `extends` is provided, type parameters default a constraint to `unknown`. +It is therefore redundant to `extend` from `any` or `unknown`. + +## Examples + + + + +```ts +interface FooAny {} + +interface FooUnknown {} + +type BarAny = {}; + +type BarUnknown = {}; + +class BazAny { + quxAny() {} +} + +const QuuxAny = () => {}; + +function QuuzAny() {} +``` + + + + +```ts +interface Foo {} + +type Bar = {}; + +class Baz { + qux() {} +} + +const Quux = () => {}; + +function Quuz() {} +``` + + + + +## When Not To Use It + +If you don't care about the specific styles of your type constraints, or never use them in the first place, then you will not need this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx new file mode 100644 index 00000000..c27da761 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx @@ -0,0 +1,235 @@ +--- +description: "Disallow type parameters that aren't used multiple times." +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unnecessary-type-parameters** for documentation. + +This rule forbids type parameters that aren't used multiple times in a function, method, or class definition. + +Type parameters relate two types. +If a type parameter is only used once, then it is not relating anything. +It can usually be replaced with explicit types such as `unknown`. + +At best unnecessary type parameters make code harder to read. +At worst they can be used to disguise unsafe type assertions. + +:::warning +This rule was recently added, and has a surprising amount of hidden complexity compared to most of our rules. If you encounter unexpected behavior with it, please check closely the [Limitations](#limitations) and [FAQ](#faq) sections below and our [issue tracker](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+no-unnecessary-type-parameters). +If you don't see your case covered, please [reach out to us](https://typescript-eslint.io/contributing/issues)! +::: + +## Examples + + + + +```ts +function second(a: A, b: B): B { + return b; +} + +function parseJSON(input: string): T { + return JSON.parse(input); +} + +function printProperty(obj: T, key: K) { + console.log(obj[key]); +} +``` + + + + +```ts +function second(a: unknown, b: B): B { + return b; +} + +function parseJSON(input: string): unknown { + return JSON.parse(input); +} + +function printProperty(obj: T, key: keyof T) { + console.log(obj[key]); +} + +// T appears twice: in the type of arg and as the return type +function identity(arg: T): T { + return arg; +} + +// T appears twice: "keyof T" and in the inferred return type (T[K]). +// K appears twice: "key: K" and in the inferred return type (T[K]). +function getProperty(obj: T, key: K) { + return obj[key]; +} +``` + + + + +## Limitations + +Note that this rule allows any type parameter that is used multiple times, even if those uses are via a type argument. +For example, the following `T` is used multiple times by virtue of being in an `Array`, even though its name only appears once after declaration: + +```ts +declare function createStateHistory(): T[]; +``` + +This is because the type parameter `T` relates multiple methods in the `T[]` together, making it used more than once. + +Therefore, this rule won't report on type parameters used as a type argument. +That includes type arguments given to global types such as `Array` (including the `T[]` shorthand and in tuples), `Map`, and `Set`. + +## FAQ + +### The return type is only used as an input, so why isn't the rule reporting? + +One common reason that this might be the case is when the return type is not specified explicitly. +The rule uses uses type information to count implicit usages of the type parameter in the function signature, including in the inferred return type. +For example, the following function... + +```ts +function identity(arg: T) { + return arg; +} +``` + +...implicitly has a return type of `T`. Therefore, the type parameter `T` is used twice, and the rule will not report this function. + +For other reasons the rule might not be reporting, be sure to check the [Limitations section](#limitations) and other FAQs. + +### I'm using the type parameter inside the function, so why is the rule reporting? + +You might be surprised to that the rule reports on a function like this: + +```ts +function log(string1: T): void { + const string2: T = string1; + console.log(string2); +} +``` + +After all, the type parameter `T` relates the input `string1` and the local variable `string2`, right? +However, this usage is unnecessary, since we can achieve the same results by replacing all usages of the type parameter with its constraint. +That is to say, the function can always be rewritten as: + +```ts +function log(string1: string): void { + const string2: string = string1; + console.log(string2); +} +``` + +Therefore, this rule only counts usages of a type parameter in the _signature_ of a function, method, or class, but not in the implementation. See also [#9735](https://github.com/typescript-eslint/typescript-eslint/issues/9735) + +### Why am I getting TypeScript errors saying "Object literal may only specify known properties" after removing an unnecessary type parameter? + +Suppose you have a situation like the following, which will trigger the rule to report. + +```ts +interface SomeProperties { + foo: string; +} + +// T is only used once, so the rule will report. +function serialize(x: T): string { + return JSON.stringify(x); +} + +serialize({ foo: 'bar', anotherProperty: 'baz' }); +``` + +If we remove the unnecessary type parameter, we'll get an error: + +```ts +function serialize(x: SomeProperties): string { + return JSON.stringify(x); +} + +// TS Error: Object literal may only specify known properties, and 'anotherProperty' does not exist in type 'SomeProperties'. +serialize({ foo: 'bar', anotherProperty: 'baz' }); +``` + +This is because TypeScript figures it's _usually_ an error to explicitly provide excess properties in a location that expects a specific type. +See [the TypeScript handbook's section on excess property checks](https://www.typescriptlang.org/docs/handbook/2/objects.html#excess-property-checks) for further discussion. + +To resolve this, you have two approaches to choose from. + +1. If it doesn't make sense to accept excess properties in your function, you'll want to fix the errors at the call sites. Usually, you can simply remove any excess properties where the function is called. +2. Otherwise, if you do want your function to accept excess properties, you can modify the parameter type in order to allow excess properties explicitly by using an [index signature](https://www.typescriptlang.org/docs/handbook/2/objects.html#index-signatures): + + ```ts + interface SomeProperties { + foo: string; + + // This allows any other properties. + // You may wish to make these types more specific according to your use case. + [key: PropertKey]: unknown; + } + + function serialize(x: SomeProperties): string { + return JSON.stringify(x); + } + + // No error! + serialize({ foo: 'bar', anotherProperty: 'baz' }); + ``` + +Which solution is appropriate is a case-by-case decision, depending on the intended use case of your function. + +### I have a complex scenario that is reported by the rule, but I can't see how to remove the type parameter. What should I do? + +Sometimes, you may be able to rewrite the code by reaching for some niche TypeScript features, such as [the `NoInfer` utility type](https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype) (see [#9751](https://github.com/typescript-eslint/typescript-eslint/issues/9751)). + +But, quite possibly, you've hit an edge case where the type is being used in a subtle way that the rule doesn't account for. +For example, the following arcane code is a way of testing whether two types are equal, and will be reported by the rule (see [#9709](https://github.com/typescript-eslint/typescript-eslint/issues/9709)): + +{/* prettier-ignore */} +```ts +type Compute = A extends Function ? A : { [K in keyof A]: Compute }; +type Equal = + (() => T1 extends Compute ? 1 : 2) extends + (() => T2 extends Compute ? 1 : 2) + ? true + : false; +``` + +In this case, the function types created within the `Equal` type are never expected to be assigned to; they're just created for the purpose of type system manipulations. +This usage is not what the rule is intended to analyze. + +Use eslint-disable comments as appropriate to suppress the rule in these kinds of cases. + +{/* TODO - include an FAQ entry regarding instantiation expressions once the conversation in https://github.com/typescript-eslint/typescript-eslint/pull/9536#discussion_r1705850744 is done */} + +## When Not To Use It + +This rule will report on functions that use type parameters solely to test types, for example: + +```ts +function assertType(arg: T) {} + +assertType(123); +assertType('abc'); +// ~~~~~ +// Argument of type 'string' is not assignable to parameter of type 'number'. +``` + +If you're using this pattern then you'll want to disable this rule on files that test types. + +## Further Reading + +- TypeScript handbook: [Type Parameters Should Appear Twice](https://microsoft.github.io/TypeScript-New-Handbook/everything/#type-parameters-should-appear-twice) +- Effective TypeScript: [The Golden Rule of Generics](https://effectivetypescript.com/2020/08/12/generics-golden-rule/) + +## Related To + +- eslint-plugin-etc's [`no-misused-generics`](https://github.com/cartant/eslint-plugin-etc/blob/main/docs/rules/no-misused-generics.md) +- wotan's [`no-misused-generics`](https://github.com/fimbullinter/wotan/blob/master/packages/mimir/docs/no-misused-generics.md) +- DefinitelyTyped-tools' [`no-unnecessary-generics`](https://github.com/microsoft/DefinitelyTyped-tools/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-generics.md) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx new file mode 100644 index 00000000..696bc4c5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx @@ -0,0 +1,97 @@ +--- +description: 'Disallow calling a function with a value with type `any`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-argument** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. + +Despite your best intentions, the `any` type can sometimes leak into your codebase. +Calling a function with an `any` typed argument creates a potential safety hole and source of bugs. + +This rule disallows calling a function with `any` in its arguments. +That includes spreading arrays or tuples with `any` typed elements as function arguments. + +This rule also compares generic type argument types to ensure you don't pass an unsafe `any` in a generic position to a receiver that's expecting a specific type. +For example, it will error if you pass `Set` as an argument to a parameter declared as `Set`. + +## Examples + + + + +```ts +declare function foo(arg1: string, arg2: number, arg3: string): void; + +const anyTyped = 1 as any; + +foo(...anyTyped); +foo(anyTyped, 1, 'a'); + +const anyArray: any[] = []; +foo(...anyArray); + +const tuple1 = ['a', anyTyped, 'b'] as const; +foo(...tuple1); + +const tuple2 = [1] as const; +foo('a', ...tuple2, anyTyped); + +declare function bar(arg1: string, arg2: number, ...rest: string[]): void; +const x = [1, 2] as [number, ...number[]]; +foo('a', ...x, anyTyped); + +declare function baz(arg1: Set, arg2: Map): void; +foo(new Set(), new Map()); +``` + + + + +```ts +declare function foo(arg1: string, arg2: number, arg3: string): void; + +foo('a', 1, 'b'); + +const tuple1 = ['a', 1, 'b'] as const; +foo(...tuple1); + +declare function bar(arg1: string, arg2: number, ...rest: string[]): void; +const array: string[] = ['a']; +bar('a', 1, ...array); + +declare function baz(arg1: Set, arg2: Map): void; +foo(new Set(), new Map()); +``` + + + + +There are cases where the rule allows passing an argument of `any` to `unknown`. + +Example of `any` to `unknown` assignment that are allowed: + +```ts showPlaygroundButton +declare function foo(arg1: unknown, arg2: Set, arg3: unknown[]): void; +foo(1 as any, new Set(), [] as any[]); +``` + +## When Not To Use It + +If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-explicit-any`](./no-explicit-any.mdx) +- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) +- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx new file mode 100644 index 00000000..84a1d0ee --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx @@ -0,0 +1,100 @@ +--- +description: 'Disallow assigning a value with type `any` to variables and properties.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-assignment** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. + +Despite your best intentions, the `any` type can sometimes leak into your codebase. +Assigning an `any` typed value to a variable can be hard to pick up on, particularly if it leaks in from an external library. + +This rule disallows assigning `any` to a variable, and assigning `any[]` to an array destructuring. + +This rule also compares generic type argument types to ensure you don't pass an unsafe `any` in a generic position to a receiver that's expecting a specific type. +For example, it will error if you assign `Set` to a variable declared as `Set`. + +## Examples + + + + +```ts +const x = 1 as any, + y = 1 as any; +const [x] = 1 as any; +const [x] = [] as any[]; +const [x] = [1 as any]; +[x] = [1] as [any]; + +function foo(a = 1 as any) {} +class Foo { + constructor(private a = 1 as any) {} +} +class Foo { + private a = 1 as any; +} + +// generic position examples +const x: Set = new Set(); +const x: Map = new Map(); +const x: Set = new Set(); +const x: Set>> = new Set>>(); +``` + + + + +```ts +const x = 1, + y = 1; +const [x] = [1]; +[x] = [1] as [number]; + +function foo(a = 1) {} +class Foo { + constructor(private a = 1) {} +} +class Foo { + private a = 1; +} + +// generic position examples +const x: Set = new Set(); +const x: Map = new Map(); +const x: Set = new Set(); +const x: Set>> = new Set>>(); +``` + + + + +There are cases where the rule allows assignment of `any` to `unknown`. + +Example of `any` to `unknown` assignment that are allowed: + +```ts showPlaygroundButton +const x: unknown = y as any; +const x: unknown[] = y as any[]; +const x: Set = y as Set; +``` + +## When Not To Use It + +If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-explicit-any`](./no-explicit-any.mdx) +- [`no-unsafe-argument`](./no-unsafe-argument.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) +- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx new file mode 100644 index 00000000..540d464d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx @@ -0,0 +1,119 @@ +--- +description: 'Disallow calling a value with type `any`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-call** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. + +Despite your best intentions, the `any` type can sometimes leak into your codebase. +Calling an `any`-typed value as a function creates a potential type safety hole and source of bugs in your codebase. + +This rule disallows calling any value that is typed as `any`. + +## Examples + + + + +```ts +declare const anyVar: any; +declare const nestedAny: { prop: any }; + +anyVar(); +anyVar.a.b(); + +nestedAny.prop(); +nestedAny.prop['a'](); + +new anyVar(); +new nestedAny.prop(); + +anyVar`foo`; +nestedAny.prop`foo`; +``` + + + + +```ts +declare const typedVar: () => void; +declare const typedNested: { prop: { a: () => void } }; + +typedVar(); +typedNested.prop.a(); + +(() => {})(); + +new Map(); + +String.raw`foo`; +``` + + + + +## The Unsafe `Function` Type + +The `Function` type is behaves almost identically to `any` when called, so this rule also disallows calling values of type `Function`. + + + + +```ts +const f: Function = () => {}; +f(); +``` + + + + +Note that whereas [no-unsafe-function-type](./no-unsafe-function-type.mdx) helps prevent the _creation_ of `Function` types, this rule helps prevent the unsafe _use_ of `Function` types, which may creep into your codebase without explicitly referencing the `Function` type at all. +See, for example, the following code: + +```ts +function callUnsafe(maybeFunction: unknown): string { + if (typeof maybeFunction === 'function') { + // TypeScript allows this, but it's completely unsound. + return maybeFunction('call', 'with', 'any', 'args'); + } + // etc +} +``` + +In this sort of situation, beware that there is no way to guarantee with runtime checks that a value is safe to call. +If you _really_ want to call a value whose type you don't know, your best best is to use a `try`/`catch` and suppress any TypeScript or linter errors that get in your way. + +```ts +function callSafe(maybeFunction: unknown): void { + try { + // intentionally unsound type assertion + (maybeFunction as () => unknown)(); + } catch (e) { + console.error( + 'Function either could not be called or threw an error when called: ', + e, + ); + } +} +``` + +## When Not To Use It + +If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-explicit-any`](./no-explicit-any.mdx) +- [`no-unsafe-argument`](./no-unsafe-argument.mdx) +- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) +- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) +- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx new file mode 100644 index 00000000..d03605f9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx @@ -0,0 +1,65 @@ +--- +description: 'Disallow unsafe declaration merging.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-declaration-merging** for documentation. + +TypeScript's "declaration merging" supports merging separate declarations with the same name. + +Declaration merging between classes and interfaces is unsafe. +The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors. + +```ts +interface Foo { + nums: number[]; +} + +class Foo {} + +const foo = new Foo(); + +foo.nums.push(1); // Runtime Error: Cannot read properties of undefined. +``` + +## Examples + + + + +```ts +interface Foo {} + +class Foo {} +``` + + + + +```ts +interface Foo {} +class Bar implements Foo {} + +namespace Baz {} +namespace Baz {} +enum Baz {} + +namespace Qux {} +function Qux() {} +``` + + + + +## When Not To Use It + +If your project intentionally defines classes and interfaces with unsafe declaration merging patterns, this rule might not be for you. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [Declaration Merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx new file mode 100644 index 00000000..4b25e785 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx @@ -0,0 +1,98 @@ +--- +description: 'Disallow comparing an enum value with a non-enum value.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-enum-comparison** for documentation. + +The TypeScript compiler can be surprisingly lenient when working with enums. +While overt safety problems with enums were [resolved in TypeScript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#all-enums-are-union-enums), some logical pitfalls remain permitted. +For example, it is allowed to compare enum values against non-enum values: + +```ts +enum Vegetable { + Asparagus = 'asparagus', +} + +declare const vegetable: Vegetable; + +vegetable === 'asparagus'; // No error +``` + +The above code snippet should instead be written as `vegetable === Vegetable.Asparagus`. +Allowing non-enums in comparisons subverts the point of using enums in the first place. +By enforcing comparisons with properly typed enums: + +- It makes a codebase more resilient to enum members changing values. +- It allows for code IDEs to use the "Rename Symbol" feature to quickly rename an enum. +- It aligns code to the proper enum semantics of referring to them by name and treating their values as implementation details. + +## Examples + + + + +```ts +enum Fruit { + Apple, +} + +declare let fruit: Fruit; + +// bad - comparison between enum and explicit value instead of named enum member +fruit === 0; + +enum Vegetable { + Asparagus = 'asparagus', +} + +declare let vegetable: Vegetable; + +// bad - comparison between enum and explicit value instead of named enum member +vegetable === 'asparagus'; + +declare let anyString: string; + +// bad - comparison between enum and non-enum value +anyString === Vegetable.Asparagus; +``` + + + + +```ts +enum Fruit { + Apple, +} + +declare let fruit: Fruit; + +fruit === Fruit.Apple; + +enum Vegetable { + Asparagus = 'asparagus', +} + +declare let vegetable: Vegetable; + +vegetable === Vegetable.Asparagus; +``` + + + + +## When Not To Use It + +If you don't mind enums being treated as a namespaced bag of values, rather than opaque identifiers, you likely don't need this rule. + +Sometimes, you may want to ingest a value from an API or user input, then use it as an enum throughout your application. +While validating the input, it may be appropriate to disable the rule. +Alternately, you might consider making use of a validation library like [Zod](https://zod.dev/?id=native-enums). +See further discussion of this topic in [#8557](https://github.com/typescript-eslint/typescript-eslint/issues/8557). + +Finally, in the rare case of relying on an third party enums that are only imported as `type`s, it may be difficult to adhere to this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx new file mode 100644 index 00000000..ee1a8439 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx @@ -0,0 +1,64 @@ +--- +description: 'Disallow using the unsafe built-in Function type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-function-type** for documentation. + +TypeScript's built-in `Function` type allows being called with any number of arguments and returns type `any`. +`Function` also allows classes or plain objects that happen to possess all properties of the `Function` class. +It's generally better to specify function parameters and return types with the function type syntax. + +"Catch-all" function types include: + +- `() => void`: a function that has no parameters and whose return is ignored +- `(...args: never) => unknown`: a "top type" for functions that can be assigned any function type, but can't be called + +Examples of code for this rule: + + + + +```ts +let noParametersOrReturn: Function; +noParametersOrReturn = () => {}; + +let stringToNumber: Function; +stringToNumber = (text: string) => text.length; + +let identity: Function; +identity = value => value; +``` + + + + +```ts +let noParametersOrReturn: () => void; +noParametersOrReturn = () => {}; + +let stringToNumber: (text: string) => number; +stringToNumber = text => text.length; + +let identity: (value: T) => T; +identity = value => value; +``` + + + + +## When Not To Use It + +If your project is still onboarding to TypeScript, it might be difficult to fully replace all unsafe `Function` types with more precise function types. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-empty-object-type`](./no-empty-object-type.mdx) +- [`no-restricted-types`](./no-restricted-types.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-wrapper-object-types`](./no-wrapper-object-types.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx new file mode 100644 index 00000000..4b41fb56 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx @@ -0,0 +1,80 @@ +--- +description: 'Disallow member access on a value with type `any`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-member-access** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. + +Despite your best intentions, the `any` type can sometimes leak into your codebase. +Accessing a member of an `any`-typed value creates a potential type safety hole and source of bugs in your codebase. + +This rule disallows member access on any variable that is typed as `any`. + +## Examples + + + + +```ts +declare const anyVar: any; +declare const nestedAny: { prop: any }; + +anyVar.a; +anyVar.a.b; +anyVar['a']; +anyVar['a']['b']; + +nestedAny.prop.a; +nestedAny.prop['a']; + +const key = 'a'; +nestedAny.prop[key]; + +// Using an any to access a member is unsafe +const arr = [1, 2, 3]; +arr[anyVar]; +nestedAny[anyVar]; +``` + + + + +```ts +declare const properlyTyped: { prop: { a: string } }; + +properlyTyped.prop.a; +properlyTyped.prop['a']; + +const key = 'a'; +properlyTyped.prop[key]; + +const arr = [1, 2, 3]; +arr[1]; +let idx = 1; +arr[idx]; +arr[idx++]; +``` + + + + +## When Not To Use It + +If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-explicit-any`](./no-explicit-any.mdx) +- [`no-unsafe-argument`](./no-unsafe-argument.mdx) +- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx new file mode 100644 index 00000000..74e86e07 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx @@ -0,0 +1,125 @@ +--- +description: 'Disallow returning a value with type `any` from a function.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-return** for documentation. + +The `any` type in TypeScript is a dangerous "escape hatch" from the type system. +Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. + +Despite your best intentions, the `any` type can sometimes leak into your codebase. +Returning an `any`-typed value from a function creates a potential type safety hole and source of bugs in your codebase. + +This rule disallows returning `any` or `any[]` from a function and returning `Promise` from an async function. + +This rule also compares generic type argument types to ensure you don't return an unsafe `any` in a generic position to a function that's expecting a specific type. +For example, it will error if you return `Set` from a function declared as returning `Set`. + +## Examples + + + + +```ts +function foo1() { + return 1 as any; +} +function foo2() { + return Object.create(null); +} +const foo3 = () => { + return 1 as any; +}; +const foo4 = () => Object.create(null); + +function foo5() { + return [] as any[]; +} +function foo6() { + return [] as Array; +} +function foo7() { + return [] as readonly any[]; +} +function foo8() { + return [] as Readonly; +} +const foo9 = () => { + return [] as any[]; +}; +const foo10 = () => [] as any[]; + +const foo11 = (): string[] => [1, 2, 3] as any[]; + +async function foo13() { + return Promise.resolve({} as any); +} + +// generic position examples +function assignability1(): Set { + return new Set([1]); +} +type TAssign = () => Set; +const assignability2: TAssign = () => new Set([true]); +``` + + + + +```ts +function foo1() { + return 1; +} +function foo2() { + return Object.create(null) as Record; +} + +const foo3 = () => []; +const foo4 = () => ['a']; + +async function foo5() { + return Promise.resolve(1); +} + +function assignability1(): Set { + return new Set(['foo']); +} +type TAssign = () => Set; +const assignability2: TAssign = () => new Set(['foo']); +``` + + + + +There are cases where the rule allows to return `any` to `unknown`. + +Examples of `any` to `unknown` return that are allowed: + +```ts showPlaygroundButton +function foo1(): unknown { + return JSON.parse(singleObjString); // Return type for JSON.parse is any. +} + +function foo2(): unknown[] { + return [] as any[]; +} +``` + +## When Not To Use It + +If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-explicit-any`](./no-explicit-any.mdx) +- [`no-unsafe-argument`](./no-unsafe-argument.mdx) +- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) +- [`no-unsafe-call`](./no-unsafe-call.mdx) +- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-type-assertion.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-type-assertion.mdx new file mode 100644 index 00000000..53c1e51e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-type-assertion.mdx @@ -0,0 +1,63 @@ +--- +description: 'Disallow type assertions that narrow a type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-type-assertion** for documentation. + +Type assertions are a way to tell TypeScript what the type of a value is. This can be useful but also unsafe if you use type assertions to narrow down a type. + +This rule forbids using type assertions to narrow a type, as this bypasses TypeScript's type-checking. Type assertions that broaden a type are safe because TypeScript essentially knows _less_ about a type. + +Instead of using type assertions to narrow a type, it's better to rely on type guards, which help avoid potential runtime errors caused by unsafe type assertions. + +## Examples + + + + +```ts +function f() { + return Math.random() < 0.5 ? 42 : 'oops'; +} + +const z = f() as number; + +const items = [1, '2', 3, '4']; + +const number = items[0] as number; +``` + + + + +```ts +function f() { + return Math.random() < 0.5 ? 42 : 'oops'; +} + +const z = f() as number | string | boolean; + +const items = [1, '2', 3, '4']; + +const number = items[0] as number | string | undefined; +``` + + + + +## When Not To Use It + +If your codebase has many unsafe type assertions, then it may be difficult to enable this rule. +It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +If your project frequently stubs objects in test files, the rule may trigger a lot of reports. Consider disabling the rule for such files to reduce frequent warnings. + +## Further Reading + +- More on TypeScript's [type assertions](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx new file mode 100644 index 00000000..307914ef --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx @@ -0,0 +1,60 @@ +--- +description: 'Require unary negation to take a number.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unsafe-unary-minus** for documentation. + +TypeScript does not prevent you from putting a minus sign before things other than numbers: + +```ts +const s = 'hello'; +const x = -s; // x is NaN +``` + +This rule restricts the unary `-` operator to `number | bigint`. + +## Examples + + + + +```ts +declare const a: string; +-a; + +declare const b: {}; +-b; +``` + + + + +```ts +-42; +-42n; + +declare const a: number; +-a; + +declare const b: number; +-b; + +declare const c: number | bigint; +-c; + +declare const d: any; +-d; + +declare const e: 1 | 2; +-e; +``` + + + + +{/* Intentionally Omitted: When Not To Use It */} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx new file mode 100644 index 00000000..8d185e92 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx @@ -0,0 +1,53 @@ +--- +description: 'Disallow unused expressions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unused-expressions** for documentation. + +This rule extends the base [`eslint/no-unused-expressions`](https://eslint.org/docs/rules/no-unused-expressions) rule. +It supports TypeScript-specific expressions: + +- Marks directives in modules declarations (`"use strict"`, etc.) as not unused +- Marks the following expressions as unused if their wrapped value expressions are unused: + - Assertion expressions: `x as number;`, `x!;`, `x;` + - Instantiation expressions: `Set;` + +Although the type expressions never have runtime side effects (that is, `x!;` is the same as `x;`), they can be used to assert types for testing purposes. + +## Examples + + + + +```ts +Set; +1 as number; +window!; +``` + + + + +```ts +function getSet() { + return Set; +} + +// Funtion calls are allowed, so type expressions that wrap function calls are allowed +getSet(); +getSet() as Set; +getSet()!; + +// Namespaces can have directives +namespace A { + 'use strict'; +} +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx new file mode 100644 index 00000000..0e4fab22 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx @@ -0,0 +1,54 @@ +--- +description: 'Disallow unused variables.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-unused-vars** for documentation. + +This rule extends the base [`eslint/no-unused-vars`](https://eslint.org/docs/rules/no-unused-vars) rule. +It adds support for TypeScript features, such as types. + +## Benefits Over TypeScript + +TypeScript provides [`noUnusedLocals`](https://www.typescriptlang.org/tsconfig#noUnusedLocals) and [`noUnusedParameters`](https://www.typescriptlang.org/tsconfig#noUnusedParameters) compiler options that can report errors on unused local variables or parameters, respectively. +Those compiler options can be convenient to use if you don't want to set up ESLint and typescript-eslint. +However: + +- These lint rules are more configurable than TypeScript's compiler options. + - For example, the [`varsIgnorePattern` option](https://eslint.org/docs/latest/rules/no-unused-vars#varsignorepattern) can customize what names are always allowed to be exempted. TypeScript hardcodes its exemptions to names starting with `_`. + If you would like to emulate the TypeScript style of exempting names starting with `_`, you can use this configuration (this includes errors as well): + ```json + { + "rules": { + "@typescript-eslint/no-unused-vars": [ + "error", + { + "args": "all", + "argsIgnorePattern": "^_", + "caughtErrors": "all", + "caughtErrorsIgnorePattern": "^_", + "destructuredArrayIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "ignoreRestSiblings": true + } + ] + } + } + ``` +- [ESLint can be configured](https://eslint.org/docs/latest/use/configure/rules) within lines, files, and folders. TypeScript compiler options are linked to their TSConfig file. +- Many projects configure TypeScript's reported errors to block builds more aggressively than ESLint complaints. Blocking builds on unused variables can be inconvenient. + +We generally recommend using `@typescript-eslint/no-unused-vars` to flag unused locals and parameters instead of TypeScript. + +:::tip +Editors such as VS Code will still generally "grey out" unused variables even if `noUnusedLocals` and `noUnusedParameters` are not enabled in a project. +::: + +Also see similar rules provided by ESLint: + +- [`no-unused-private-class-members`](https://eslint.org/docs/latest/rules/no-unused-private-class-members) +- [`no-unused-labels`](https://eslint.org/docs/latest/rules/no-unused-labels) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx new file mode 100644 index 00000000..5d57c181 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx @@ -0,0 +1,99 @@ +--- +description: 'Disallow the use of variables before they are defined.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-use-before-define** for documentation. + +This rule extends the base [`eslint/no-use-before-define`](https://eslint.org/docs/rules/no-use-before-define) rule. +It adds support for `type`, `interface` and `enum` declarations. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseNoUseBeforeDefineOptions { + enums?: boolean; + typedefs?: boolean; + ignoreTypeReferences?: boolean; +} + +const defaultOptions: Options = { + ...baseNoUseBeforeDefineDefaultOptions, + enums: true, + typedefs: true, + ignoreTypeReferences: true, +}; +``` + +### `enums` + +{/* insert option description */} + +If this is `true`, this rule warns every reference to a enum before the enum declaration. +If this is `false`, this rule will ignore references to enums, when the reference is in a child scope. + +Examples of code for the `{ "enums": true }` option: + + + + +```ts option='{ "enums": true }' +const x = Foo.FOO; + +enum Foo { + FOO, +} +``` + + + + +```ts option='{ "enums": false }' +function foo() { + return Foo.FOO; +} + +enum Foo { + FOO, +} +``` + + + + +### `typedefs` + +{/* insert option description */} + +If this is `true`, this rule warns every reference to a type before the type declaration. +If this is `false`, this rule will ignore references to types. + +Examples of **correct** code for the `{ "typedefs": false }` option: + +```ts option='{ "typedefs": false }' showPlaygroundButton +let myVar: StringOrNumber; +type StringOrNumber = string | number; +``` + +### `ignoreTypeReferences` + +{/* insert option description */} + +If this is `true`, this rule ignores all type references. +If this is `false`, this will check all type references. + +Examples of **correct** code for the `{ "ignoreTypeReferences": true }` option: + +```ts option='{ "ignoreTypeReferences": true }' showPlaygroundButton +let var1: StringOrNumber; +type StringOrNumber = string | number; + +let var2: Enum; +enum Enum {} +``` diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx new file mode 100644 index 00000000..4003fefc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx @@ -0,0 +1,22 @@ +--- +description: 'Disallow unnecessary constructors.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-useless-constructor** for documentation. + +This rule extends the base [`eslint/no-useless-constructor`](https://eslint.org/docs/rules/no-useless-constructor) rule. +It adds support for: + +- constructors marked as `protected` / `private` (i.e. marking a constructor as non-public), +- `public` constructors when there is no superclass, +- constructors with only parameter properties. + +### Caveat + +This lint rule will report on constructors whose sole purpose is to change visibility of a parent constructor. +See [discussion on this rule's lack of type information](https://github.com/typescript-eslint/typescript-eslint/issues/3820#issuecomment-917821240) for context. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx new file mode 100644 index 00000000..27d66d9d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx @@ -0,0 +1,53 @@ +--- +description: "Disallow empty exports that don't change anything in a module file." +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-useless-empty-export** for documentation. + +An empty `export {}` statement is sometimes useful in TypeScript code to turn a file that would otherwise be a script file into a module file. +Per the [TypeScript Handbook Modules page](https://www.typescriptlang.org/docs/handbook/modules.html): + +> In TypeScript, just as in ECMAScript 2015, any file containing a top-level import or export is considered a module. +> Conversely, a file without any top-level import or export declarations is treated as a script whose contents are available in the global scope (and therefore to modules as well). + +However, an `export {}` statement does nothing if there are any other top-level import or export statements in a file. + +This rule reports an `export {}` that doesn't do anything in a file already using ES modules. + +## Examples + + + + +```ts +export const value = 'Hello, world!'; +export {}; +``` + +```ts +import 'some-other-module'; +export {}; +``` + + + + +```ts +export const value = 'Hello, world!'; +``` + +```ts +import 'some-other-module'; +``` + + + + +## When Not To Use It + +If you don't mind an empty `export {}` at the bottom of files, you likely don't need this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx new file mode 100644 index 00000000..c255f8c7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx @@ -0,0 +1,9 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been renamed to [`no-unnecessary-template-expression`](./no-unnecessary-template-expression.mdx). See [#8544](https://github.com/typescript-eslint/typescript-eslint/issues/8544) for more information. + +::: diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx new file mode 100644 index 00000000..fc3e6563 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx @@ -0,0 +1,77 @@ +--- +description: 'Disallow `require` statements except in import statements.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-var-requires** for documentation. + +:::danger Deprecated + +This rule has been deprecated in favour of the [`@typescript-eslint/no-require-imports`](./no-require-imports.mdx) rule. + +::: + +In other words, the use of forms such as `var foo = require("foo")` are banned. Instead use ES6 style imports or `import foo = require("foo")` imports. + +## Examples + + + + +```ts +var foo = require('foo'); +const foo = require('foo'); +let foo = require('foo'); +``` + + + + +```ts +import foo = require('foo'); +require('foo'); +import foo from 'foo'; +``` + + + + +## Options + +### `allow` + +{/* insert option description */} + +A array of strings. These strings will be compiled into regular expressions with the `u` flag and be used to test against the imported path. A common use case is to allow importing `package.json`. This is because `package.json` commonly lives outside of the TS root directory, so statically importing it would lead to root directory conflicts, especially with `resolveJsonModule` enabled. You can also use it to allow importing any JSON if your environment doesn't support JSON modules, or use it for other cases where `import` statements cannot work. + +With `{allow: ['/package\\.json$']}`: + + + + +```ts option='{ "allow": ["/package.json$"] }' +const foo = require('../data.json'); +``` + + + + +```ts option='{ "allow": ["/package.json$"] }' +const foo = require('../package.json'); +``` + + + + +## When Not To Use It + +If your project frequently uses older CommonJS `require`s, then this rule might not be applicable to you. +If only a subset of your project uses `require`s then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Related To + +- [`no-require-imports`](./no-require-imports.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx new file mode 100644 index 00000000..2d6a9337 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx @@ -0,0 +1,75 @@ +--- +description: 'Disallow using confusing built-in primitive class wrappers.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/no-wrapper-object-types** for documentation. + +TypeScript defines several confusing pairs of types that look very similar to each other, but actually mean different things: `boolean`/`Boolean`, `number`/`Number`, `string`/`String`, `bigint`/`BigInt`, `symbol`/`Symbol`, `object`/`Object`. +In general, only the lowercase variant is appropriate to use. +Therefore, this rule enforces that you only use the lowercase variant. + +JavaScript has [8 data types](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures) at runtime, and these are described in TypeScript by the lowercase types `undefined`, `null`, `boolean`, `number`, `string`, `bigint`, `symbol`, and `object`. + +As for the uppercase types, these are _structural types_ which describe JavaScript "wrapper" objects for each of the data types, such as [`Boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) and [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number). +Additionally, due to the quirks of structural typing, the corresponding primitives are _also_ assignable to these uppercase types, since they have the same "shape". + +It is a universal best practice to work directly with the built-in primitives, like `0`, rather than objects that "look like" the corresponding primitive, like `new Number(0)`. + +- Primitives have the expected value semantics with `==` and `===` equality checks, whereas their object counterparts are compared by reference. + That is to say, `"str" === "str"` but `new String("str") !== new String("str")`. +- Primitives have well-known behavior around truthiness/falsiness which is common to rely on, whereas all objects are truthy, regardless of the wrapped value (e.g. `new Boolean(false)` is truthy). +- TypeScript only allows arithmetic operations (e.g. `x - y`) to be performed on numeric primitives, not objects. + +As a result, using the lowercase type names like `number` in TypeScript types instead of the uppercase names like `Number` is a better practice that describes code more accurately. + +Examples of code for this rule: + + + + +```ts +let myBigInt: BigInt; +let myBoolean: Boolean; +let myNumber: Number; +let myString: String; +let mySymbol: Symbol; + +let myObject: Object = 'allowed by TypeScript'; +``` + + + + +```ts +let myBigint: bigint; +let myBoolean: boolean; +let myNumber: number; +let myString: string; +let mySymbol: symbol; + +let myObject: object = "Type 'string' is not assignable to type 'object'."; +``` + + + + +## When Not To Use It + +If your project is a rare one that intentionally deals with the class equivalents of primitives, it might not be worthwhile to use this rule. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [MDN documentation on primitives](https://developer.mozilla.org/en-US/docs/Glossary/Primitive) +- [MDN documentation on `string` primitives and `String` objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#string_primitives_and_string_objects) + +## Related To + +- [`no-empty-object-type`](./no-empty-object-type.mdx) +- [`no-restricted-types`](./no-restricted-types.mdx) +- [`no-unsafe-function-type`](./no-unsafe-function-type.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx new file mode 100644 index 00000000..cbb1dc0f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx @@ -0,0 +1,47 @@ +--- +description: 'Enforce non-null assertions over explicit type casts.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/non-nullable-type-assertion-style** for documentation. + +There are two common ways to assert to TypeScript that a value is its type without `null` or `undefined`: + +- `!`: Non-null assertion +- `as`: Traditional type assertion with a coincidentally equivalent type + +`!` non-null assertions are generally preferred for requiring less code and being harder to fall out of sync as types change. +This rule reports when an `as` cast is doing the same job as a `!` would, and suggests fixing the code to be an `!`. + +## Examples + + + + +```ts +const maybe: string | undefined = Math.random() > 0.5 ? '' : undefined; + +const definitely = maybe as string; +const alsoDefinitely = maybe; +``` + + + + +```ts +const maybe: string | undefined = Math.random() > 0.5 ? '' : undefined; + +const definitely = maybe!; +const alsoDefinitely = maybe!; +``` + + + + +## When Not To Use It + +If you don't mind having unnecessarily verbose type assertions, you can avoid this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx new file mode 100644 index 00000000..109b1763 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx @@ -0,0 +1,144 @@ +--- +description: 'Disallow throwing non-`Error` values as exceptions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/only-throw-error** for documentation. + +It is considered good practice to only `throw` the `Error` object itself or an object using the `Error` object as base objects for user-defined exceptions. +The fundamental benefit of `Error` objects is that they automatically keep track of where they were built and originated. + +This rule restricts what can be thrown as an exception. + +:::info[Migration from `no-throw-literal`] + +This rule was formerly known as `no-throw-literal`. +The new name is a drop-in replacement with identical functionality. + +::: + +## Examples + +This rule is aimed at maintaining consistency when throwing exception by disallowing to throw literals and other expressions which cannot possibly be an `Error` object. + + + + +```ts +throw 'error'; + +throw 0; + +throw undefined; + +throw null; + +const err = new Error(); +throw 'an ' + err; + +const err = new Error(); +throw `${err}`; + +const err = ''; +throw err; + +function getError() { + return ''; +} +throw getError(); + +const foo = { + bar: '', +}; +throw foo.bar; +``` + + + + +```ts +throw new Error(); + +throw new Error('error'); + +const e = new Error('error'); +throw e; + +try { + throw new Error('error'); +} catch (e) { + throw e; +} + +const err = new Error(); +throw err; + +function getError() { + return new Error(); +} +throw getError(); + +const foo = { + bar: new Error(), +}; +throw foo.bar; + +class CustomError extends Error { + // ... +} +throw new CustomError(); +``` + + + + +## Options + +This rule adds the following options: + +```ts +interface Options { + /** + * Type specifiers that can be thrown. + */ + allow?: ( + | { + from: 'file'; + name: [string, ...string[]] | string; + path?: string; + } + | { + from: 'lib'; + name: [string, ...string[]] | string; + } + | { + from: 'package'; + name: [string, ...string[]] | string; + package: string; + } + | string + )[]; + + /** + * Whether to always allow throwing values typed as `any`. + */ + allowThrowingAny?: boolean; + + /** + * Whether to always allow throwing values typed as `unknown`. + */ + allowThrowingUnknown?: boolean; +} + +const defaultOptions: Options = { + allow: [], + allowThrowingAny: true, + allowThrowingUnknown: true, +}; +``` + +{/* Intentionally Omitted: When Not To Use It */} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx new file mode 100644 index 00000000..1e60721f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx @@ -0,0 +1,522 @@ +--- +description: 'Require or disallow parameter properties in class constructors.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/parameter-properties** for documentation. + +TypeScript includes a "parameter properties" shorthand for declaring a class constructor parameter and class property in one location. +Parameter properties can be confusing to those new to TypeScript as they are less explicit than other ways of declaring and initializing class members. + +This rule can be configured to always disallow the use of parameter properties or enforce their usage when possible. + +## Options + +This rule, in its default state, does not require any argument and would completely disallow the use of parameter properties. +It may take an options object containing either or both of: + +- `"allow"`: allowing certain kinds of properties to be ignored +- `"prefer"`: either `"class-property"` _(default)_ or `"parameter-property"` + +### `allow` + +{/* insert option description */} + +If you would like to ignore certain kinds of properties then you may pass an object containing `"allow"` as an array of any of the following options: + +- `allow`, an array containing one or more of the allowed modifiers. Valid values are: + - `readonly`, allows **readonly** parameter properties. + - `private`, allows **private** parameter properties. + - `protected`, allows **protected** parameter properties. + - `public`, allows **public** parameter properties. + - `private readonly`, allows **private readonly** parameter properties. + - `protected readonly`, allows **protected readonly** parameter properties. + - `public readonly`, allows **public readonly** parameter properties. + +For example, to ignore `public` properties: + +```json +{ + "@typescript-eslint/parameter-properties": [ + true, + { + "allow": ["public"] + } + ] +} +``` + +### `prefer` + +{/* insert option description */} + +By default, the rule prefers class properties. +You can switch it to instead preferring parameter properties with (`"parameter-property"`). + +In `"parameter-property"` mode, the rule will issue a report when: + +- A class property and constructor parameter have the same name and type +- The constructor parameter is assigned to the class property at the beginning of the constructor + +### default + +Examples of code for this rule with no options at all: + + + + +```ts +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts +class Foo { + constructor(name: string) {} +} +``` + + + + +### readonly + +Examples of code for the `{ "allow": ["readonly"] }` options: + + + + +```ts option='{ "allow": ["readonly"] }' +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["readonly"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(readonly name: string) {} +} +``` + + + + +### private + +Examples of code for the `{ "allow": ["private"] }` options: + + + + +```ts option='{ "allow": ["private"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["private"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(private name: string) {} +} +``` + + + + +### protected + +Examples of code for the `{ "allow": ["protected"] }` options: + + + + +```ts option='{ "allow": ["protected"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["protected"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} +``` + + + + +### public + +Examples of code for the `{ "allow": ["public"] }` options: + + + + +```ts option='{ "allow": ["public"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["public"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(public name: string) {} +} +``` + + + + +### private readonly + +Examples of code for the `{ "allow": ["private readonly"] }` options: + + + + +```ts option='{ "allow": ["private readonly"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["private readonly"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} +``` + + + + +### protected readonly + +Examples of code for the `{ "allow": ["protected readonly"] }` options: + + + + +```ts option='{ "allow": ["protected readonly"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["protected readonly"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} +``` + + + + +### public readonly + +Examples of code for the `{ "allow": ["public readonly"] }` options: + + + + +```ts option='{ "allow": ["public readonly"] }' +class Foo { + constructor(readonly name: string) {} +} + +class Foo { + constructor(private name: string) {} +} + +class Foo { + constructor(protected name: string) {} +} + +class Foo { + constructor(public name: string) {} +} + +class Foo { + constructor(private readonly name: string) {} +} + +class Foo { + constructor(protected readonly name: string) {} +} +``` + + + + +```ts option='{ "allow": ["public readonly"] }' +class Foo { + constructor(name: string) {} +} + +class Foo { + constructor(public readonly name: string) {} +} +``` + + + + +### `"parameter-property"` + +Examples of code for the `{ "prefer": "parameter-property" }` option: + + + + +```ts option='{ "prefer": "parameter-property" }' +class Foo { + private name: string; + constructor(name: string) { + this.name = name; + } +} + +class Foo { + public readonly name: string; + constructor(name: string) { + this.name = name; + } +} + +class Foo { + constructor(name: string) { + this.name = name; + } + name: string; +} +``` + + + + +```ts option='{ "prefer": "parameter-property" }' +class Foo { + private differentName: string; + constructor(name: string) { + this.differentName = name; + } +} + +class Foo { + private differentType: number | undefined; + constructor(differentType: number) { + this.differentType = differentType; + } +} + +class Foo { + protected logicInConstructor: string; + constructor(logicInConstructor: string) { + console.log('Hello, world!'); + this.logicInConstructor = logicInConstructor; + } +} +``` + + + + +## When Not To Use It + +If you don't care about which style of parameter properties in constructors is used in your classes, then you will not need this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx new file mode 100644 index 00000000..e7237661 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx @@ -0,0 +1,51 @@ +--- +description: 'Enforce the use of `as const` over literal type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-as-const** for documentation. + +There are two common ways to tell TypeScript that a literal value should be interpreted as its literal type (e.g. `2`) rather than general primitive type (e.g. `number`); + +- `as const`: telling TypeScript to infer the literal type automatically +- `as` with the literal type: explicitly telling the literal type to TypeScript + +`as const` is generally preferred, as it doesn't require re-typing the literal value. +This rule reports when an `as` with an explicit literal type can be replaced with an `as const`. + +## Examples + + + + +```ts +let bar: 2 = 2; +let foo = <'bar'>'bar'; +let foo = { bar: 'baz' as 'baz' }; +``` + + + + +```ts +let foo = 'bar'; +let foo = 'bar' as const; +let foo: 'bar' = 'bar' as const; +let bar = 'bar' as string; +let foo = 'bar'; +let foo = { bar: 'baz' }; +``` + + + + +## When Not To Use It + +If you don't care about which style of literals assertions is used in your code, then you will not need this rule. + +However, keep in mind that inconsistent style can harm readability in a project. +We recommend picking a single option for this rule that works best for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx new file mode 100644 index 00000000..d4aa0980 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx @@ -0,0 +1,102 @@ +--- +description: 'Require destructuring from arrays and/or objects.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-destructuring** for documentation. + +## Examples + +This rule extends the base [`eslint/prefer-destructuring`](https://eslint.org/docs/latest/rules/prefer-destructuring) rule. +It adds support for TypeScript's type annotations in variable declarations. + + + + + +```ts +const x: string = obj.x; // This is incorrect and the auto fixer provides following untyped fix. +// const { x } = obj; +``` + + + + +```ts +const x: string = obj.x; // This is correct by default. You can also forbid this by an option. +``` + + + + +And it infers binding patterns more accurately thanks to the type checker. + + + + +```ts +const x = ['a']; +const y = x[0]; +``` + + + + +```ts +const x = { 0: 'a' }; +const y = x[0]; +``` + +It is correct when `enforceForRenamedProperties` is not true. +Valid destructuring syntax is renamed style like `{ 0: y } = x` rather than `[y] = x` because `x` is not iterable. + + + + +## Options + +This rule adds the following options: + +```ts +type Options = [ + BasePreferDestructuringOptions[0], + BasePreferDestructuringOptions[1] & { + enforceForDeclarationWithTypeAnnotation?: boolean; + }, +]; + +const defaultOptions: Options = [ + basePreferDestructuringDefaultOptions[0], + { + ...basePreferDestructuringDefaultOptions[1], + enforceForDeclarationWithTypeAnnotation: false, + }, +]; +``` + +### `enforceForDeclarationWithTypeAnnotation` + +{/* insert option description */} + +Examples with `{ enforceForDeclarationWithTypeAnnotation: true }`: + + + + +```ts option='{ "object": true }, { "enforceForDeclarationWithTypeAnnotation": true }' +const x: string = obj.x; +``` + + + + +```ts option='{ "object": true }, { "enforceForDeclarationWithTypeAnnotation": true }' +const { x }: { x: string } = obj; +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx new file mode 100644 index 00000000..1c208ed4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx @@ -0,0 +1,68 @@ +--- +description: 'Require each enum member value to be explicitly initialized.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-enum-initializers** for documentation. + +TypeScript `enum`s are a practical way to organize semantically related constant values. +Members of `enum`s that don't have explicit values are by default given sequentially increasing numbers. + +In projects where the value of `enum` members are important, allowing implicit values for enums can cause bugs if `enum`s are modified over time. + +This rule recommends having each `enum` member value explicitly initialized. + +## Examples + + + + +```ts +enum Status { + Open = 1, + Close, +} + +enum Direction { + Up, + Down, +} + +enum Color { + Red, + Green = 'Green', + Blue = 'Blue', +} +``` + + + + +```ts +enum Status { + Open = 'Open', + Close = 'Close', +} + +enum Direction { + Up = 1, + Down = 2, +} + +enum Color { + Red = 'Red', + Green = 'Green', + Blue = 'Blue', +} +``` + + + + +## When Not To Use It + +If you don't care about `enum`s having implicit values you can safely disable this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx new file mode 100644 index 00000000..66089f55 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx @@ -0,0 +1,45 @@ +--- +description: 'Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-find** for documentation. + +When searching for the first item in an array matching a condition, it may be tempting to use code like `arr.filter(x => x > 0)[0]`. +However, it is simpler to use [Array.prototype.find()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find) instead, `arr.find(x => x > 0)`, which also returns the first entry matching a condition. +Because the `.find()` only needs to execute the callback until it finds a match, it's also more efficient. + +:::info + +Beware the difference in short-circuiting behavior between the approaches. +`.find()` will only execute the callback on array elements until it finds a match, whereas `.filter()` executes the callback for all array elements. +Therefore, when fixing errors from this rule, be sure that your `.filter()` callbacks do not have side effects. + +::: + + + + +```ts +[1, 2, 3].filter(x => x > 1)[0]; + +[1, 2, 3].filter(x => x > 1).at(0); +``` + + + + +```ts +[1, 2, 3].find(x => x > 1); +``` + + + + +## When Not To Use It + +If you intentionally use patterns like `.filter(callback)[0]` to execute side effects in `callback` on all array elements, you will want to avoid this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx new file mode 100644 index 00000000..0399c781 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx @@ -0,0 +1,50 @@ +--- +description: 'Enforce the use of `for-of` loop over the standard `for` loop where possible.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-for-of** for documentation. + +Many developers default to writing `for (let i = 0; i < ...` loops to iterate over arrays. +However, in many of those arrays, the loop iterator variable (e.g. `i`) is only used to access the respective element of the array. +In those cases, a `for-of` loop is easier to read and write. + +This rule recommends a for-of loop when the loop index is only used to read from an array that is being iterated. + +## Examples + + + + +```ts +declare const array: string[]; + +for (let i = 0; i < array.length; i++) { + console.log(array[i]); +} +``` + + + + +```ts +declare const array: string[]; + +for (const x of array) { + console.log(x); +} + +for (let i = 0; i < array.length; i++) { + // i is used, so for-of could not be used. + console.log(i, array[i]); +} +``` + + + + +{/* Intentionally Omitted: When Not To Use It */} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx new file mode 100644 index 00000000..e6a69884 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx @@ -0,0 +1,98 @@ +--- +description: 'Enforce using function types instead of interfaces with call signatures.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-function-type** for documentation. + +TypeScript allows for two common ways to declare a type for a function: + +- Function type: `() => string` +- Object type with a signature: `{ (): string }` + +The function type form is generally preferred when possible for being more succinct. + +This rule suggests using a function type instead of an interface or object type literal with a single call signature. + +## Examples + + + + +```ts +interface Example { + (): string; +} +``` + +```ts +function foo(example: { (): number }): number { + return example(); +} +``` + +```ts +interface ReturnsSelf { + // returns the function itself, not the `this` argument. + (arg: string): this; +} +``` + + + + +```ts +type Example = () => string; +``` + +```ts +function foo(example: () => number): number { + return bar(); +} +``` + +```ts +// returns the function itself, not the `this` argument. +type ReturnsSelf = (arg: string) => ReturnsSelf; +``` + +```ts +function foo(bar: { (): string; baz: number }): string { + return bar(); +} +``` + +```ts +interface Foo { + bar: string; +} +interface Bar extends Foo { + (): void; +} +``` + +```ts +// multiple call signatures (overloads) is allowed: +interface Overloaded { + (data: string): number; + (id: number): string; +} +// this is equivelent to Overloaded interface. +type Intersection = ((data: string) => number) & ((id: number) => string); +``` + + + + +## When Not To Use It + +If you specifically want to use an interface or type literal with a single call signature for stylistic reasons, you can avoid this rule. + +This rule has a known edge case of sometimes triggering on global augmentations such as `interface Function`. +These edge cases are rare and often symptomatic of odd code. +We recommend you use an [inline ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1). +See [#454](https://github.com/typescript-eslint/typescript-eslint/issues/454) for details. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx new file mode 100644 index 00000000..eb79a925 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx @@ -0,0 +1,81 @@ +--- +description: 'Enforce `includes` method over `indexOf` method.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-includes** for documentation. + +Prior to ES2015, `Array#indexOf` and `String#indexOf` comparisons against `-1` were the standard ways to check whether a value exists in an array or string, respectively. +Alternatives that are easier to read and write now exist: ES2015 added `String#includes` and ES2016 added `Array#includes`. + +This rule reports when an `.indexOf` call can be replaced with an `.includes`. +Additionally, this rule reports the tests of simple regular expressions in favor of `String#includes`. + +> This rule will report on any receiver object of an `indexOf` method call that has an `includes` method where the two methods have the same parameters. +> Matching types include: `String`, `Array`, `ReadonlyArray`, and typed arrays. + +## Examples + + + + +```ts +const str: string; +const array: any[]; +const readonlyArray: ReadonlyArray; +const typedArray: UInt8Array; +const maybe: string; +const userDefined: { + indexOf(x: any): number; + includes(x: any): boolean; +}; + +str.indexOf(value) !== -1; +array.indexOf(value) !== -1; +readonlyArray.indexOf(value) === -1; +typedArray.indexOf(value) > -1; +maybe?.indexOf('') !== -1; +userDefined.indexOf(value) >= 0; + +/example/.test(str); +``` + + + + +```ts +const str: string; +const array: any[]; +const readonlyArray: ReadonlyArray; +const typedArray: UInt8Array; +const maybe: string; +const userDefined: { + indexOf(x: any): number; + includes(x: any): boolean; +}; + +str.includes(value); +array.includes(value); +!readonlyArray.includes(value); +typedArray.includes(value); +maybe?.includes(''); +userDefined.includes(value); + +str.includes('example'); + +// The two methods have different parameters. +declare const mismatchExample: { + indexOf(x: unknown, fromIndex?: number): number; + includes(x: unknown): boolean; +}; +mismatchExample.indexOf(value) >= 0; +``` + + + + +{/* Intentionally Omitted: When Not To Use It */} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx new file mode 100644 index 00000000..9d2e2ffb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx @@ -0,0 +1,111 @@ +--- +description: 'Require all enum members to be literal values.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-literal-enum-member** for documentation. + +TypeScript allows the value of an enum member to be many different kinds of valid JavaScript expressions. +However, because enums create their own scope whereby each enum member becomes a variable in that scope, developers are often surprised at the resultant values. +For example: + +```ts +const imOutside = 2; +const b = 2; +enum Foo { + outer = imOutside, + a = 1, + b = a, + c = b, + // does c == Foo.b == Foo.c == 1? + // or does c == b == 2? +} +``` + +> The answer is that `Foo.c` will be `1` at runtime [[TypeScript playground](https://www.typescriptlang.org/play/#src=const%20imOutside%20%3D%202%3B%0D%0Aconst%20b%20%3D%202%3B%0D%0Aenum%20Foo%20%7B%0D%0A%20%20%20%20outer%20%3D%20imOutside%2C%0D%0A%20%20%20%20a%20%3D%201%2C%0D%0A%20%20%20%20b%20%3D%20a%2C%0D%0A%20%20%20%20c%20%3D%20b%2C%0D%0A%20%20%20%20%2F%2F%20does%20c%20%3D%3D%20Foo.b%20%3D%3D%20Foo.c%20%3D%3D%201%3F%0D%0A%20%20%20%20%2F%2F%20or%20does%20c%20%3D%3D%20b%20%3D%3D%202%3F%0D%0A%7D)]. + +Therefore, it's often better to prevent unexpected results in code by requiring the use of literal values as enum members. +This rule reports when an enum member is given a value that is not a literal. + +## Examples + + + + +```ts +const str = 'Test'; +const string1 = 'string1'; +const string2 = 'string2'; + +enum Invalid { + A = str, // Variable assignment + B = `Interpolates ${string1} and ${string2}`, // Template literal with interpolation + C = 2 + 2, // Expression assignment + D = C, // Assignment to another enum member +} +``` + + + + +```ts +enum Valid { + A, // No initializer; initialized with ascending integers starting from 0 + B = 'TestStr', // A regular string + C = `A template literal string`, // A template literal without interpolation + D = 4, // A number +} +``` + + + + +## Options + +### `allowBitwiseExpressions` + +{/* insert option description */} + +Examples of code for the `{ "allowBitwiseExpressions": true }` option: + + + + +```ts option='{ "allowBitwiseExpressions": true }' +const x = 1; +enum Foo { + A = x << 0, + B = x >> 0, + C = x >>> 0, + D = x | 0, + E = x & 0, + F = x ^ 0, + G = ~x, +} +``` + + + + +```ts option='{ "allowBitwiseExpressions": true }' +enum Foo { + A = 1 << 0, + B = 1 >> 0, + C = 1 >>> 0, + D = 1 | 0, + E = 1 & 0, + F = 1 ^ 0, + G = ~1, +} +``` + + + + +## When Not To Use It + +If you want use anything other than simple literals as an enum value, this rule might not be for you. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx new file mode 100644 index 00000000..02dc4628 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx @@ -0,0 +1,51 @@ +--- +description: 'Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-namespace-keyword** for documentation. + +TypeScript historically allowed a form of code organization called "custom modules" (`module Example {}`), later renamed to "namespaces" (`namespace Example`). + +Namespaces are an outdated way to organize TypeScript code. +ES2015 module syntax is now preferred (`import`/`export`). + +For projects still using custom modules / namespaces, it's preferred to refer to them as namespaces. +This rule reports when the `module` keyword is used instead of `namespace`. + +> This rule does not report on the use of TypeScript module declarations to describe external APIs (`declare module 'foo' {}`). + +## Examples + + + + +```ts +module Example {} +``` + + + + +```ts +namespace Example {} + +declare module 'foo' {} +``` + + + + +## When Not To Use It + +If you are not using TypeScript's older `module`/`namespace` keywords, then you will not need this rule. + +## Further Reading + +- [Modules](https://www.typescriptlang.org/docs/handbook/modules.html) +- [Namespaces](https://www.typescriptlang.org/docs/handbook/namespaces.html) +- [Namespaces and Modules](https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx new file mode 100644 index 00000000..2c8e1ed6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx @@ -0,0 +1,222 @@ +--- +description: 'Enforce using the nullish coalescing operator instead of logical assignments or chaining.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-nullish-coalescing** for documentation. + +The `??` nullish coalescing runtime operator allows providing a default value when dealing with `null` or `undefined`. +Because the nullish coalescing operator _only_ coalesces when the original value is `null` or `undefined`, it is much safer than relying upon logical OR operator chaining `||`, which coalesces on any _falsy_ value. + +This rule reports when you may consider replacing: + +- An `||` operator with `??` +- An `||=` operator with `??=` + +:::caution +This rule will not work as expected if [`strictNullChecks`](https://www.typescriptlang.org/tsconfig#strictNullChecks) is not enabled. +::: + +## Options + +### `ignoreTernaryTests` + +{/* insert option description */} + +Incorrect code for `ignoreTernaryTests: false`, and correct code for `ignoreTernaryTests: true`: + +```ts option='{ "ignoreTernaryTests": false }' showPlaygroundButton +const foo: any = 'bar'; +foo !== undefined && foo !== null ? foo : 'a string'; +foo === undefined || foo === null ? 'a string' : foo; +foo == undefined ? 'a string' : foo; +foo == null ? 'a string' : foo; + +const foo: string | undefined = 'bar'; +foo !== undefined ? foo : 'a string'; +foo === undefined ? 'a string' : foo; + +const foo: string | null = 'bar'; +foo !== null ? foo : 'a string'; +foo === null ? 'a string' : foo; +``` + +Correct code for `ignoreTernaryTests: false`: + +```ts option='{ "ignoreTernaryTests": false }' showPlaygroundButton +const foo: any = 'bar'; +foo ?? 'a string'; +foo ?? 'a string'; +foo ?? 'a string'; +foo ?? 'a string'; + +const foo: string | undefined = 'bar'; +foo ?? 'a string'; +foo ?? 'a string'; + +const foo: string | null = 'bar'; +foo ?? 'a string'; +foo ?? 'a string'; +``` + +### `ignoreConditionalTests` + +{/* insert option description */} + +Generally expressions within conditional tests intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs. + +If you're looking to enforce stricter conditional tests, you should consider using the `strict-boolean-expressions` rule. + +Incorrect code for `ignoreConditionalTests: false`, and correct code for `ignoreConditionalTests: true`: + +```ts option='{ "ignoreConditionalTests": false }' showPlaygroundButton +declare const a: string | null; +declare const b: string | null; + +if (a || b) { +} +if ((a ||= b)) { +} +while (a || b) {} +while ((a ||= b)) {} +do {} while (a || b); +for (let i = 0; a || b; i += 1) {} +a || b ? true : false; +``` + +Correct code for `ignoreConditionalTests: false`: + +```ts option='{ "ignoreConditionalTests": false }' showPlaygroundButton +declare const a: string | null; +declare const b: string | null; + +if (a ?? b) { +} +if ((a ??= b)) { +} +while (a ?? b) {} +while ((a ??= b)) {} +do {} while (a ?? b); +for (let i = 0; a ?? b; i += 1) {} +a ?? b ? true : false; +``` + +### `ignoreMixedLogicalExpressions` + +{/* insert option description */} + +Generally expressions within mixed logical expressions intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs. + +If you're looking to enforce stricter conditional tests, you should consider using the `strict-boolean-expressions` rule. + +Incorrect code for `ignoreMixedLogicalExpressions: false`, and correct code for `ignoreMixedLogicalExpressions: true`: + +```ts option='{ "ignoreMixedLogicalExpressions": false }' showPlaygroundButton +declare const a: string | null; +declare const b: string | null; +declare const c: string | null; +declare const d: string | null; + +a || (b && c); +a ||= b && c; +(a && b) || c || d; +a || (b && c) || d; +a || (b && c && d); +``` + +Correct code for `ignoreMixedLogicalExpressions: false`: + +```ts option='{ "ignoreMixedLogicalExpressions": false }' showPlaygroundButton +declare const a: string | null; +declare const b: string | null; +declare const c: string | null; +declare const d: string | null; + +a ?? (b && c); +a ??= b && c; +(a && b) ?? c ?? d; +a ?? (b && c) ?? d; +a ?? (b && c && d); +``` + +**_NOTE:_** Errors for this specific case will be presented as suggestions (see below), instead of fixes. This is because it is not always safe to automatically convert `||` to `??` within a mixed logical expression, as we cannot tell the intended precedence of the operator. Note that by design, `??` requires parentheses when used with `&&` or `||` in the same expression. + +### `ignorePrimitives` + +{/* insert option description */} + +If you would like to ignore expressions containing operands of certain primitive types that can be falsy then you may pass an object containing a boolean value for each primitive: + +- `string: true`, ignores `null` or `undefined` unions with `string` (default: false). +- `number: true`, ignores `null` or `undefined` unions with `number` (default: false). +- `bigint: true`, ignores `null` or `undefined` unions with `bigint` (default: false). +- `boolean: true`, ignores `null` or `undefined` unions with `boolean` (default: false). + +Incorrect code for `ignorePrimitives: { string: false }`, and correct code for `ignorePrimitives: { string: true }`: + +```ts option='{ "ignorePrimitives": { "string": true } }' showPlaygroundButton +const foo: string | undefined = 'bar'; +foo || 'a string'; +``` + +Correct code for both `ignorePrimitives: { string: false }` and `ignorePrimitives: { string: true }`: + +```ts option='{ "ignorePrimitives": { "string": true } }' showPlaygroundButton +const foo: string | undefined = 'bar'; +foo ?? 'a string'; +``` + +Also, if you would like to ignore all primitives types, you can set `ignorePrimitives: true`. It is equivalent to `ignorePrimitives: { string: true, number: true, bigint: true, boolean: true }`. + +### `ignoreBooleanCoercion` + +{/* insert option description */} + +Whether to ignore expressions that coerce a value into a boolean: `Boolean(...)`. + +Incorrect code for `ignoreBooleanCoercion: false`, and correct code for `ignoreBooleanCoercion: true`: + +```ts option='{ "ignoreBooleanCoercion": true }' showPlaygroundButton +let a: string | true | undefined; +let b: string | boolean | undefined; + +const x = Boolean(a || b); +``` + +Correct code for `ignoreBooleanCoercion: false`: + +```ts option='{ "ignoreBooleanCoercion": false }' showPlaygroundButton +let a: string | true | undefined; +let b: string | boolean | undefined; + +const x = Boolean(a ?? b); +``` + +### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` + +{/* insert option description */} + +:::danger Deprecated + +> This option will be removed in the next major version of typescript-eslint. +> ::: +> Unless this is set to `true`, the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. + +Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule useless. + +You should be using `strictNullChecks` to ensure complete type-safety in your codebase. + +If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. + +## When Not To Use It + +If you are not using TypeScript 3.7 (or greater), then you will not be able to use this rule, as the operator is not supported. + +## Further Reading + +- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) +- [Nullish Coalescing Operator Proposal](https://github.com/tc39/proposal-nullish-coalescing/) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx new file mode 100644 index 00000000..f1627d85 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx @@ -0,0 +1,304 @@ +--- +description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-optional-chain** for documentation. + +`?.` optional chain expressions provide `undefined` if an object is `null` or `undefined`. +Because the optional chain operator _only_ chains when the property value is `null` or `undefined`, it is much safer than relying upon logical AND operator chaining `&&`; which chains on any _truthy_ value. +It is also often less code to use `?.` optional chaining than `&&` truthiness checks. + +This rule reports on code where an `&&` operator can be safely replaced with `?.` optional chaining. + +## Examples + + + + +```ts +foo && foo.a && foo.a.b && foo.a.b.c; +foo && foo['a'] && foo['a'].b && foo['a'].b.c; +foo && foo.a && foo.a.b && foo.a.b.method && foo.a.b.method(); + +// With empty objects +(((foo || {}).a || {}).b || {}).c; +(((foo || {})['a'] || {}).b || {}).c; + +// With negated `or`s +!foo || !foo.bar; +!foo || !foo[bar]; +!foo || !foo.bar || !foo.bar.baz || !foo.bar.baz(); + +// this rule also supports converting chained strict nullish checks: +foo && + foo.a != null && + foo.a.b !== null && + foo.a.b.c != undefined && + foo.a.b.c.d !== undefined && + foo.a.b.c.d.e; +``` + + + + +```ts +foo?.a?.b?.c; +foo?.['a']?.b?.c; +foo?.a?.b?.method?.(); + +foo?.a?.b?.c?.d?.e; + +!foo?.bar; +!foo?.[bar]; +!foo?.bar?.baz?.(); +``` + + + + +## Options + +In the context of the descriptions below a "loose boolean" operand is any operand that implicitly coerces the value to a boolean. +Specifically the argument of the not operator (`!loose`) or a bare value in a logical expression (`loose && looser`). + +### `allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing` + +{/* insert option description */} + +When this option is `true`, the rule will provide an auto-fixer for cases where the return type of the expression would change. For example for the expression `!foo || foo.bar` the return type of the expression is `true | T`, however for the equivalent optional chain `foo?.bar` the return type of the expression is `undefined | T`. Thus changing the code from a logical expression to an optional chain expression has altered the type of the expression. + +In some cases this distinction _may_ matter - which is why these fixers are considered unsafe - they may break the build! For example in the following code: + +```ts option='{ "allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing": true }' showPlaygroundButton +declare const foo: { bar: boolean } | null | undefined; +declare function acceptsBoolean(arg: boolean): void; + +// ✅ typechecks succesfully as the expression only returns `boolean` +acceptsBoolean(foo != null && foo.bar); + +// ❌ typechecks UNSUCCESSFULLY as the expression returns `boolean | undefined` +acceptsBoolean(foo?.bar); +``` + +This style of code isn't super common - which means having this option set to `true` _should_ be safe in most codebases. However we default it to `false` due to its unsafe nature. We have provided this option for convenience because it increases the autofix cases covered by the rule. If you set option to `true` the onus is entirely on you and your team to ensure that each fix is correct and safe and that it does not break the build. + +When this option is `false` unsafe cases will have suggestion fixers provided instead of auto-fixers - meaning you can manually apply the fix using your IDE tooling. + +### `checkAny` + +{/* insert option description */} + +Examples of code for this rule with `{ checkAny: false }`: + + + + +```ts option='{ "checkAny": true }' +declare const thing: any; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkAny": false }' +declare const thing: any; + +thing && thing.toString(); +``` + + + + +### `checkUnknown` + +{/* insert option description */} + +Examples of code for this rule with `{ checkUnknown: false }`: + + + + +```ts option='{ "checkUnknown": true }' +declare const thing: unknown; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkUnknown": false }' +declare const thing: unknown; + +thing && thing.toString(); +``` + + + + +### `checkString` + +{/* insert option description */} + +Examples of code for this rule with `{ checkString: false }`: + + + + +```ts option='{ "checkString": true }' +declare const thing: string; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkString": false }' +declare const thing: string; + +thing && thing.toString(); +``` + + + + +### `checkNumber` + +{/* insert option description */} + +Examples of code for this rule with `{ checkNumber: false }`: + + + + +```ts option='{ "checkNumber": true }' +declare const thing: number; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkNumber": false }' +declare const thing: number; + +thing && thing.toString(); +``` + + + + +### `checkBoolean` + +{/* insert option description */} + +:::note + +This rule intentionally ignores the following case: + +```ts +declare const x: false | { a: string }; +x && x.a; +!x || x.a; +``` + +The boolean expression narrows out the non-nullish falsy cases - so converting the chain to `x?.a` would introduce a type error. + +::: + +Examples of code for this rule with `{ checkBoolean: false }`: + + + + +```ts option='{ "checkBoolean": true }' +declare const thing: true; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkBoolean": false }' +declare const thing: true; + +thing && thing.toString(); +``` + + + + +### `checkBigInt` + +{/* insert option description */} + +Examples of code for this rule with `{ checkBigInt: false }`: + + + + +```ts option='{ "checkBigInt": true }' +declare const thing: bigint; + +thing && thing.toString(); +``` + + + + +```ts option='{ "checkBigInt": false }' +declare const thing: bigint; + +thing && thing.toString(); +``` + + + + +### `requireNullish` + +{/* insert option description */} + +Examples of code for this rule with `{ requireNullish: false }`: + + + + +```ts option='{ "requireNullish": true }' +declare const thing1: string | null; +thing1 && thing1.toString(); +``` + + + + +```ts option='{ "requireNullish": true }' +declare const thing1: string | null; +thing1?.toString(); + +declare const thing2: string; +thing2 && thing2.toString(); +``` + + + + +## When Not To Use It + +If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) +- [Optional Chaining Proposal](https://github.com/tc39/proposal-optional-chaining/) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx new file mode 100644 index 00000000..3a5f34dd --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx @@ -0,0 +1,56 @@ +--- +description: 'Require using Error objects as Promise rejection reasons.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-promise-reject-errors** for documentation. + +This rule extends the base [`eslint/prefer-promise-reject-errors`](https://eslint.org/docs/rules/prefer-promise-reject-errors) rule. +It uses type information to enforce that `Promise`s are only rejected with `Error` objects. + +## Examples + + + + +```ts +Promise.reject('error'); + +const err = new Error(); +Promise.reject('an ' + err); + +new Promise((resolve, reject) => reject('error')); + +new Promise((resolve, reject) => { + const err = new Error(); + reject('an ' + err); +}); +``` + + + + +```ts +Promise.reject(new Error()); + +class CustomError extends Error { + // ... +} +Promise.reject(new CustomError()); + +new Promise((resolve, reject) => reject(new Error())); + +new Promise((resolve, reject) => { + class CustomError extends Error { + // ... + } + return reject(new CustomError()); +}); +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx new file mode 100644 index 00000000..02b7dc97 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx @@ -0,0 +1,408 @@ +--- +description: 'Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-readonly-parameter-types** for documentation. + +Mutating function arguments can lead to confusing, hard to debug behavior. +Whilst it's easy to implicitly remember to not modify function arguments, explicitly typing arguments as readonly provides clear contract to consumers. +This contract makes it easier for a consumer to reason about if a function has side-effects. + +This rule allows you to enforce that function parameters resolve to readonly types. +A type is considered readonly if: + +- it is a primitive type (`string`, `number`, `boolean`, `symbol`, or an enum), +- it is a function signature type, +- it is a readonly array type whose element type is considered readonly. +- it is a readonly tuple type whose elements are all considered readonly. +- it is an object type whose properties are all marked as readonly, and whose values are all considered readonly. + +## Examples + + + + +```ts +function array1(arg: string[]) {} // array is not readonly +function array2(arg: readonly string[][]) {} // array element is not readonly +function array3(arg: [string, number]) {} // tuple is not readonly +function array4(arg: readonly [string[], number]) {} // tuple element is not readonly +// the above examples work the same if you use ReadonlyArray instead + +function object1(arg: { prop: string }) {} // property is not readonly +function object2(arg: { readonly prop: string; prop2: string }) {} // not all properties are readonly +function object3(arg: { readonly prop: { prop2: string } }) {} // nested property is not readonly +// the above examples work the same if you use Readonly instead + +interface CustomArrayType extends ReadonlyArray { + prop: string; // note: this property is mutable +} +function custom1(arg: CustomArrayType) {} + +interface CustomFunction { + (): void; + prop: string; // note: this property is mutable +} +function custom2(arg: CustomFunction) {} + +function union(arg: string[] | ReadonlyArray) {} // not all types are readonly + +// rule also checks function types +interface Foo { + (arg: string[]): void; +} +interface Foo { + new (arg: string[]): void; +} +const x = { foo(arg: string[]): void {} }; +function foo(arg: string[]); +type Foo = (arg: string[]) => void; +interface Foo { + foo(arg: string[]): void; +} +``` + + + + +```ts +function array1(arg: readonly string[]) {} +function array2(arg: readonly (readonly string[])[]) {} +function array3(arg: readonly [string, number]) {} +function array4(arg: readonly [readonly string[], number]) {} +// the above examples work the same if you use ReadonlyArray instead + +function object1(arg: { readonly prop: string }) {} +function object2(arg: { readonly prop: string; readonly prop2: string }) {} +function object3(arg: { readonly prop: { readonly prop2: string } }) {} +// the above examples work the same if you use Readonly instead + +interface CustomArrayType extends ReadonlyArray { + readonly prop: string; +} +function custom1(arg: Readonly) {} +// interfaces that extend the array types are not considered arrays, and thus must be made readonly. + +interface CustomFunction { + (): void; + readonly prop: string; +} +function custom2(arg: CustomFunction) {} + +function union(arg: readonly string[] | ReadonlyArray) {} + +function primitive1(arg: string) {} +function primitive2(arg: number) {} +function primitive3(arg: boolean) {} +function primitive4(arg: unknown) {} +function primitive5(arg: null) {} +function primitive6(arg: undefined) {} +function primitive7(arg: any) {} +function primitive8(arg: never) {} +function primitive9(arg: string | number | undefined) {} + +function fnSig(arg: () => void) {} + +enum Foo { + a, + b, +} +function enumArg(arg: Foo) {} + +function symb1(arg: symbol) {} +const customSymbol = Symbol('a'); +function symb2(arg: typeof customSymbol) {} + +// function types +interface Foo { + (arg: readonly string[]): void; +} +interface Foo { + new (arg: readonly string[]): void; +} +const x = { foo(arg: readonly string[]): void {} }; +function foo(arg: readonly string[]); +type Foo = (arg: readonly string[]) => void; +interface Foo { + foo(arg: readonly string[]): void; +} +``` + + + + +## Options + +### `allow` + +{/* insert option description */} + +Some complex types cannot easily be made readonly, for example the `HTMLElement` type or the `JQueryStatic` type from `@types/jquery`. This option allows you to globally disable reporting of such types. + +This option takes the shared [`TypeOrValueSpecifier` format](/packages/type-utils/type-or-value-specifier). + +Examples of code for this rule with: + +```json +{ + "allow": [ + { "from": "file", "name": "Foo" }, + { "from": "lib", "name": "HTMLElement" }, + { "from": "package", "name": "Bar", "package": "bar-lib" } + ] +} +``` + + + + +```ts option='{"allow":[{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +interface ThisIsMutable { + prop: string; +} + +interface Wrapper { + sub: ThisIsMutable; +} + +interface WrapperWithOther { + readonly sub: Foo; + otherProp: string; +} + +// Incorrect because ThisIsMutable is not readonly +function fn1(arg: ThisIsMutable) {} + +// Incorrect because Wrapper.sub is not readonly +function fn2(arg: Wrapper) {} + +// Incorrect because WrapperWithOther.otherProp is not readonly and not in the allowlist +function fn3(arg: WrapperWithOther) {} +``` + +```ts option='{"allow":[{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +import { Foo } from 'some-lib'; +import { Bar } from 'incorrect-lib'; + +interface HTMLElement { + prop: string; +} + +// Incorrect because Foo is not a local type +function fn1(arg: Foo) {} + +// Incorrect because HTMLElement is not from the default library +function fn2(arg: HTMLElement) {} + +// Incorrect because Bar is not from "bar-lib" +function fn3(arg: Bar) {} +``` + + + + +```ts option='{"allow":[{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +interface Foo { + prop: string; +} + +interface Wrapper { + readonly sub: Foo; + readonly otherProp: string; +} + +// Works because Foo is allowed +function fn1(arg: Foo) {} + +// Works even when Foo is nested somewhere in the type, with other properties still being checked +function fn2(arg: Wrapper) {} +``` + +```ts option='{"allow":[{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +import { Bar } from 'bar-lib'; + +interface Foo { + prop: string; +} + +// Works because Foo is a local type +function fn1(arg: Foo) {} + +// Works because HTMLElement is from the default library +function fn2(arg: HTMLElement) {} + +// Works because Bar is from "bar-lib" +function fn3(arg: Bar) {} +``` + +```ts option='{"allow":[{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' +import { Foo } from './foo'; + +// Works because Foo is still a local type - it has to be in the same package +function fn(arg: Foo) {} +``` + + + + +### `checkParameterProperties` + +{/* insert option description */} + +Because parameter properties create properties on the class, it may be undesirable to force them to be readonly. + +Examples of code for this rule with `{checkParameterProperties: true}`: + + + + +```ts option='{ "checkParameterProperties": true }' +class Foo { + constructor(private paramProp: string[]) {} +} +``` + + + + +```ts option='{ "checkParameterProperties": true }' +class Foo { + constructor(private paramProp: readonly string[]) {} +} +``` + + + + +Examples of **correct** code for this rule with `{checkParameterProperties: false}`: + +```ts option='{ "checkParameterProperties": false }' showPlaygroundButton +class Foo { + constructor( + private paramProp1: string[], + private paramProp2: readonly string[], + ) {} +} +``` + +### `ignoreInferredTypes` + +{/* insert option description */} + +This may be desirable in cases where an external dependency specifies a callback with mutable parameters, and manually annotating the callback's parameters is undesirable. + +Examples of code for this rule with `{ignoreInferredTypes: true}`: + + + + +```ts option='{ "ignoreInferredTypes": true }' skipValidation +import { acceptsCallback, CallbackOptions } from 'external-dependency'; + +acceptsCallback((options: CallbackOptions) => {}); +``` + +
+external-dependency.d.ts + +```ts option='{ "ignoreInferredTypes": true }' +export interface CallbackOptions { + prop: string; +} +type Callback = (options: CallbackOptions) => void; +type AcceptsCallback = (callback: Callback) => void; + +export const acceptsCallback: AcceptsCallback; +``` + +
+ +
+ + +```ts option='{ "ignoreInferredTypes": true }' +import { acceptsCallback } from 'external-dependency'; + +acceptsCallback(options => {}); +``` + +
+external-dependency.d.ts + +```ts option='{ "ignoreInferredTypes": true }' skipValidation +export interface CallbackOptions { + prop: string; +} +type Callback = (options: CallbackOptions) => void; +type AcceptsCallback = (callback: Callback) => void; + +export const acceptsCallback: AcceptsCallback; +``` + +
+ +
+
+ +### `treatMethodsAsReadonly` + +{/* insert option description */} + +This may be desirable when you are never reassigning methods. + +Examples of code for this rule with `{treatMethodsAsReadonly: false}`: + + + + +```ts option='{ "treatMethodsAsReadonly": false }' +type MyType = { + readonly prop: string; + method(): string; // note: this method is mutable +}; +function foo(arg: MyType) {} +``` + + + + +```ts option='{ "treatMethodsAsReadonly": false }' +type MyType = Readonly<{ + prop: string; + method(): string; +}>; +function foo(arg: MyType) {} + +type MyOtherType = { + readonly prop: string; + readonly method: () => string; +}; +function bar(arg: MyOtherType) {} +``` + + + + +Examples of **correct** code for this rule with `{treatMethodsAsReadonly: true}`: + +```ts option='{ "treatMethodsAsReadonly": true }' showPlaygroundButton +type MyType = { + readonly prop: string; + method(): string; // note: this method is mutable +}; +function foo(arg: MyType) {} +``` + +## When Not To Use It + +If your project does not attempt to enforce strong immutability guarantees of parameters, you can avoid this rule. + +This rule is very strict on what it considers mutable. +Many types that describe themselves as readonly are considered mutable because they have mutable properties such as arrays or tuples. +To work around these limitations, you might need to use the rule's options. +In particular, the [`allow` option](#allow) can explicitly mark a type as readonly. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx new file mode 100644 index 00000000..c7111020 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx @@ -0,0 +1,111 @@ +--- +description: "Require private members to be marked as `readonly` if they're never modified outside of the constructor." +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-readonly** for documentation. + +Private member variables (whether using the `private` modifier or private `#` fields) are never permitted to be modified outside of their declaring class. +If that class never modifies their value, they may safely be marked as `readonly`. + +This rule reports on private members are marked as `readonly` if they're never modified outside of the constructor. + +## Examples + + + + +```ts +class Container { + // These member variables could be marked as readonly + private neverModifiedMember = true; + private onlyModifiedInConstructor: number; + #neverModifiedPrivateField = 3; + + public constructor( + onlyModifiedInConstructor: number, + // Private parameter properties can also be marked as readonly + private neverModifiedParameter: string, + ) { + this.onlyModifiedInConstructor = onlyModifiedInConstructor; + } +} +``` + + + + +```ts +class Container { + // Public members might be modified externally + public publicMember: boolean; + + // Protected members might be modified by child classes + protected protectedMember: number; + + // This is modified later on by the class + private modifiedLater = 'unchanged'; + + public mutate() { + this.modifiedLater = 'mutated'; + } + + // This is modified later on by the class + #modifiedLaterPrivateField = 'unchanged'; + + public mutatePrivateField() { + this.#modifiedLaterPrivateField = 'mutated'; + } +} +``` + + + + +## Options + +### `onlyInlineLambdas` + +{/* insert option description */} + +```jsonc +{ + "@typescript-eslint/prefer-readonly": [ + "error", + { "onlyInlineLambdas": true }, + ], +} +``` + +Example of code for the `{ "onlyInlineLambdas": true }` options: + + + + +```ts option='{ "onlyInlineLambdas": true }' +class Container { + private onClick = () => { + /* ... */ + }; +} +``` + + + + +```ts option='{ "onlyInlineLambdas": true }' +class Container { + private neverModifiedPrivate = 'unchanged'; +} +``` + + + + +## When Not To Use It + +If you aren't trying to enforce strong immutability guarantees, this rule may be too restrictive for your project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx new file mode 100644 index 00000000..eff53ee9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx @@ -0,0 +1,66 @@ +--- +description: 'Enforce using type parameter when calling `Array#reduce` instead of casting.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-reduce-type-parameter** for documentation. + +It's common to call `Array#reduce` with a generic type, such as an array or object, as the initial value. +Since these values are empty, their types are not usable: + +- `[]` has type `never[]`, which can't have items pushed into it as nothing is type `never` +- `{}` has type `{}`, which doesn't have an index signature and so can't have properties added to it + +A common solution to this problem is to use an `as` assertion on the initial value. +While this will work, it's not the most optimal solution as type assertions have subtle effects on the underlying types that can allow bugs to slip in. + +A better solution is to pass the type in as a generic type argument to `Array#reduce` explicitly. +This means that TypeScript doesn't have to try to infer the type, and avoids the common pitfalls that come with casting. + +This rule looks for calls to `Array#reduce`, and reports if an initial value is being passed & asserted. +It will suggest instead pass the asserted type to `Array#reduce` as a generic type argument. + +## Examples + + + + +```ts +[1, 2, 3].reduce((arr, num) => arr.concat(num * 2), [] as number[]); + +['a', 'b'].reduce( + (accum, name) => ({ + ...accum, + [name]: true, + }), + {} as Record, +); +``` + + + + +```ts +[1, 2, 3].reduce((arr, num) => arr.concat(num * 2), []); + +['a', 'b'].reduce>( + (accum, name) => ({ + ...accum, + [name]: true, + }), + {}, +); +``` + + + + +## When Not To Use It + +This rule can sometimes be difficult to work around when creating objects using a `.reduce`. +See [[prefer-reduce-type-parameter] unfixable reporting #3440](https://github.com/typescript-eslint/typescript-eslint/issues/3440) for more details. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx new file mode 100644 index 00000000..1536638f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx @@ -0,0 +1,52 @@ +--- +description: 'Enforce `RegExp#exec` over `String#match` if no global flag is provided.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-regexp-exec** for documentation. + +`String#match` is defined to work the same as `RegExp#exec` when the regular expression does not include the `g` flag. +Keeping to consistently using one of the two can help improve code readability. + +This rule reports when a `String#match` call can be replaced with an equivalent `RegExp#exec`. + +> `RegExp#exec` may also be slightly faster than `String#match`; this is the reason to choose it as the preferred usage. + +## Examples + + + + +```ts +'something'.match(/thing/); + +'some things are just things'.match(/thing/); + +const text = 'something'; +const search = /thing/; +text.match(search); +``` + + + + +```ts +/thing/.exec('something'); + +'some things are just things'.match(/thing/g); + +const text = 'something'; +const search = /thing/; +search.exec(text); +``` + + + + +## When Not To Use It + +If you prefer consistent use of `String#match` for both with `g` flag and without it, you can turn this rule off. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx new file mode 100644 index 00000000..1c45bf8c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx @@ -0,0 +1,93 @@ +--- +description: 'Enforce that `this` is used when only `this` type is returned.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-return-this-type** for documentation. + +[Method chaining](https://en.wikipedia.org/wiki/Method_chaining) is a common pattern in OOP languages and TypeScript provides a special [polymorphic `this` type](https://www.typescriptlang.org/docs/handbook/2/classes.html#this-types) to facilitate it. +Class methods that explicitly declare a return type of the class name instead of `this` make it harder for extending classes to call that method: the returned object will be typed as the base class, not the derived class. + +This rule reports when a class method declares a return type of that class name instead of `this`. + +```ts +class Animal { + eat(): Animal { + // ~~~~~~ + // Either removing this type annotation or replacing + // it with `this` would remove the type error below. + console.log("I'm moving!"); + return this; + } +} + +class Cat extends Animal { + meow(): Cat { + console.log('Meow~'); + return this; + } +} + +const cat = new Cat(); +cat.eat().meow(); +// ~~~~ +// Error: Property 'meow' does not exist on type 'Animal'. +// because `eat` returns `Animal` and not all animals meow. +``` + +## Examples + + + + +```ts +class Foo { + f1(): Foo { + return this; + } + f2 = (): Foo => { + return this; + }; + f3(): Foo | undefined { + return Math.random() > 0.5 ? this : undefined; + } +} +``` + + + + +```ts +class Foo { + f1(): this { + return this; + } + f2() { + return this; + } + f3 = (): this => { + return this; + }; + f4 = () => { + return this; + }; +} + +class Base {} +class Derived extends Base { + f(): Base { + return this; + } +} +``` + + + + +## When Not To Use It + +If you don't use method chaining or explicit return values, you can safely turn this rule off. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx new file mode 100644 index 00000000..cc0860bb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx @@ -0,0 +1,84 @@ +--- +description: 'Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-string-starts-ends-with** for documentation. + +There are multiple ways to verify if a string starts or ends with a specific string, such as `foo.indexOf('bar') === 0`. +As of ES2015, the most common way in JavaScript is to use `String#startsWith` and `String#endsWith`. +Keeping to those methods consistently helps with code readability. + +This rule reports when a string method can be replaced safely with `String#startsWith` or `String#endsWith`. + +## Examples + + + + +```ts +declare const foo: string; + +// starts with +foo[0] === 'b'; +foo.charAt(0) === 'b'; +foo.indexOf('bar') === 0; +foo.slice(0, 3) === 'bar'; +foo.substring(0, 3) === 'bar'; +foo.match(/^bar/) != null; +/^bar/.test(foo); + +// ends with +foo[foo.length - 1] === 'b'; +foo.charAt(foo.length - 1) === 'b'; +foo.lastIndexOf('bar') === foo.length - 3; +foo.slice(-3) === 'bar'; +foo.substring(foo.length - 3) === 'bar'; +foo.match(/bar$/) != null; +/bar$/.test(foo); +``` + + + + +```ts +declare const foo: string; + +// starts with +foo.startsWith('bar'); + +// ends with +foo.endsWith('bar'); +``` + + + + +## Options + +### `allowSingleElementEquality` + +{/* insert option description */} + +If switched to `'always'`, the rule will allow equality checks against the first or last character in a string. +This can be preferable in projects that don't deal with special character encodings and prefer a more succinct style. + +The following code is considered incorrect by default, but is allowed with `allowSingleElementEquality: 'always'`: + +```ts option='{ "allowSingleElementEquality": "always" }' showPlaygroundButton +declare const text: string; + +text[0] === 'a'; +text[0] === text[0].toUpperCase(); +text[0] === text[1]; +text[text.length - 1] === 'b'; +``` + +## When Not To Use It + +If you don't mind which style of string checking is used, you can turn this rule off safely. +However, keep in mind that inconsistent style can harm readability in a project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx new file mode 100644 index 00000000..1d0614fa --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx @@ -0,0 +1,86 @@ +--- +description: 'Enforce using `@ts-expect-error` over `@ts-ignore`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/prefer-ts-expect-error** for documentation. + +:::danger Deprecated + +This rule has been deprecated in favor of [`@typescript-eslint/ban-ts-comment`](./ban-ts-comment.mdx). +This rule (`@typescript-eslint/prefer-ts-expect-error`) will be removed in a future major version of typescript-eslint. + +When it was first created, `@typescript-eslint/ban-ts-comment` rule was only responsible for suggesting to remove `@ts-ignore` directive. +It was later updated to suggest replacing `@ts-ignore` with `@ts-expect-error` directive, so that it replaces `@typescript-eslint/prefer-ts-expect-error` entirely. + +::: + +TypeScript allows you to suppress all errors on a line by placing a comment starting with `@ts-ignore` or `@ts-expect-error` immediately before the erroring line. +The two directives work the same, except `@ts-expect-error` causes a type error if placed before a line that's not erroring in the first place. + +This means it's easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed. +This is dangerous, as if a new error arises on that line it'll be suppressed by the forgotten about `@ts-ignore`, and so be missed. + +## Examples + +This rule reports any usage of `@ts-ignore`, including a fixer to replace with `@ts-expect-error`. + + + + +```ts +// @ts-ignore +const str: string = 1; + +/** + * Explaining comment + * + * @ts-ignore */ +const multiLine: number = 'value'; + +/** @ts-ignore */ +const block: string = 1; + +const isOptionEnabled = (key: string): boolean => { + // @ts-ignore: if key isn't in globalOptions it'll be undefined which is false + return !!globalOptions[key]; +}; +``` + + + + +```ts +// @ts-expect-error +const str: string = 1; + +/** + * Explaining comment + * + * @ts-expect-error */ +const multiLine: number = 'value'; + +/** @ts-expect-error */ +const block: string = 1; + +const isOptionEnabled = (key: string): boolean => { + // @ts-expect-error: if key isn't in globalOptions it'll be undefined which is false + return !!globalOptions[key]; +}; +``` + + + + +## When Not To Use It + +If you are compiling against multiple versions of TypeScript and using `@ts-ignore` to ignore version-specific type errors, this rule might get in your way. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [Original Implementing PR](https://github.com/microsoft/TypeScript/pull/36014) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx new file mode 100644 index 00000000..f13da18e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx @@ -0,0 +1,143 @@ +--- +description: 'Require any function or method that returns a Promise to be marked async.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/promise-function-async** for documentation. + +Ensures that each function is only capable of: + +- returning a rejected promise, or +- throwing an Error object. + +In contrast, non-`async`, `Promise`-returning functions are technically capable of either. +Code that handles the results of those functions will often need to handle both cases, which can get complex. +This rule's practice removes a requirement for creating code to handle both cases. + +> When functions return unions of `Promise` and non-`Promise` types implicitly, it is usually a mistake—this rule flags those cases. If it is intentional, make the return type explicitly to allow the rule to pass. + +## Examples + +Examples of code for this rule + + + + +```ts +const arrowFunctionReturnsPromise = () => Promise.resolve('value'); + +function functionReturnsPromise() { + return Promise.resolve('value'); +} + +function functionReturnsUnionWithPromiseImplicitly(p: boolean) { + return p ? 'value' : Promise.resolve('value'); +} +``` + + + + +```ts +const arrowFunctionReturnsPromise = async () => Promise.resolve('value'); + +async function functionReturnsPromise() { + return Promise.resolve('value'); +} + +// An explicit return type that is not Promise means this function cannot be made async, so it is ignored by the rule +function functionReturnsUnionWithPromiseExplicitly( + p: boolean, +): string | Promise { + return p ? 'value' : Promise.resolve('value'); +} + +async function functionReturnsUnionWithPromiseImplicitly(p: boolean) { + return p ? 'value' : Promise.resolve('value'); +} +``` + + + + +## Options + +### `allowAny` + +{/* insert option description */} + +If you want additional safety, consider turning this option off, as it makes the rule less able to catch incorrect Promise behaviors. + +Examples of code with `{ "allowAny": false }`: + + + + +```ts option='{ "allowAny": false }' +const returnsAny = () => ({}) as any; +``` + + + + +```ts option='{ "allowAny": false }' +const returnsAny = async () => ({}) as any; +``` + + + + +### `allowedPromiseNames` + +{/* insert option description */} + +For projects that use constructs other than the global built-in `Promise` for asynchronous code. +This option allows specifying string names of classes or interfaces that cause a function to be checked as well. + +Examples of code with `{ "allowedPromiseNames": ["Bluebird"] }`: + + + + +```ts option='{ "allowedPromiseNames": ["Bluebird"] }' +class Bluebird {} + +const returnsBluebird = () => new Bluebird(() => {}); +``` + + + + +```ts option='{ "allowedPromiseNames": ["Bluebird"] }' +class Bluebird {} + +const returnsBluebird = async () => new Bluebird(() => {}); +``` + + + + +### `checkArrowFunctions` + +{/* insert option description */} + +### `checkFunctionDeclarations` + +{/* insert option description */} + +### `checkFunctionExpressions` + +{/* insert option description */} + +### `checkMethodDeclarations` + +{/* insert option description */} + +## When Not To Use It + +This rule can be difficult to enable on projects that use APIs which require functions to always be `async`. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) along with filing issues on your dependencies for those specific situations instead of completely disabling this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/related-getter-setter-pairs.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/related-getter-setter-pairs.mdx new file mode 100644 index 00000000..d709faf5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/related-getter-setter-pairs.mdx @@ -0,0 +1,61 @@ +--- +description: 'Enforce that `get()` types should be assignable to their equivalent `set()` type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/related-getter-setter-pairs** for documentation. + +TypeScript allows defining different types for a `get` parameter and its corresponding `set` return. +Prior to TypeScript 4.3, the types had to be identical. +From TypeScript 4.3 to 5.0, the `get` type had to be a subtype of the `set` type. +As of TypeScript 5.1, the types may be completely unrelated as long as there is an explicit type annotation. + +Defining drastically different types for a `get` and `set` pair can be confusing. +It means that assigning a property to itself would not work: + +```ts +// Assumes box.value's get() return is assignable to its set() parameter +box.value = box.value; +``` + +This rule reports cases where a `get()` and `set()` have the same name, but the `get()`'s type is not assignable to the `set()`'s. + +## Examples + + + + +```ts +interface Box { + get value(): string; + set value(newValue: number); +} +``` + + + + +```ts +interface Box { + get value(): string; + set value(newValue: string); +} +``` + + + + +## When Not To Use It + +If your project needs to model unusual relationships between data, such as older DOM types, this rule may not be useful for you. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## Further Reading + +- [MDN documentation on `get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) +- [MDN documentation on `set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set) +- [TypeScript 5.1 Release Notes > Unrelated Types for Getters and Setters](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html#unrelated-types-for-getters-and-setters) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx new file mode 100644 index 00000000..7ca4b942 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx @@ -0,0 +1,89 @@ +--- +description: 'Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/require-array-sort-compare** for documentation. + +When called without a compare function, `Array#sort()` and `Array#toSorted()` converts all non-undefined array elements into strings and then compares said strings based off their UTF-16 code units [[ECMA specification](https://www.ecma-international.org/ecma-262/9.0/#sec-sortcompare)]. + +The result is that elements are sorted alphabetically, regardless of their type. +For example, when sorting numbers, this results in a "10 before 2" order: + +```ts +[1, 2, 3, 10, 20, 30].sort(); //→ [1, 10, 2, 20, 3, 30] +``` + +This rule reports on any call to the sort methods that do not provide a `compare` argument. + +## Examples + +This rule aims to ensure all calls of the native sort methods provide a `compareFunction`, while ignoring calls to user-defined methods. + + + + +```ts +const array: any[]; +const stringArray: string[]; + +array.sort(); + +// String arrays should be sorted using `String#localeCompare`. +stringArray.sort(); +``` + + + + +```ts +const array: any[]; +const userDefinedType: { sort(): void }; + +array.sort((a, b) => a - b); +array.sort((a, b) => a.localeCompare(b)); + +userDefinedType.sort(); +``` + + + + +## Options + +### `ignoreStringArrays` + +{/* insert option description */} + +Examples of code for this rule with `{ ignoreStringArrays: true }`: + + + + +```ts option='{ "ignoreStringArrays": true }' +const one = 1; +const two = 2; +const three = 3; +[one, two, three].sort(); +``` + + + + +```ts option='{ "ignoreStringArrays": true }' +const one = '1'; +const two = '2'; +const three = '3'; +[one, two, three].sort(); +``` + + + + +## When Not To Use It + +If you intentionally want your arrays to be always sorted in a string-like manner, you can turn this rule off safely. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx new file mode 100644 index 00000000..c2bd9f7a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx @@ -0,0 +1,54 @@ +--- +description: 'Disallow async functions which do not return promises and have no `await` expression.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/require-await** for documentation. + +This rule extends the base [`eslint/require-await`](https://eslint.org/docs/rules/require-await) rule. +It uses type information to allow promise-returning functions to be marked as `async` without containing an `await` expression. + +:::note +`yield` expressions in [async generator functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function*) behave differently from sync generator functions (they unwrap promises), so the base rule never checks async generator functions. On the other hand, our rule uses type information and can detect async generator functions that both never use `await` and always yield non-promise values. +::: + +## Examples + + + + +```ts +async function returnNumber() { + return 1; +} + +async function* asyncGenerator() { + yield 1; +} + +const num = returnNumber(); +const callAsyncGenerator = () => asyncGenerator(); +``` + + + + +```ts +function returnNumber() { + return 1; +} + +function* syncGenerator() { + yield 1; +} + +const num = returnNumber(); +const callSyncGenerator = () => syncGenerator(); +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx new file mode 100644 index 00000000..4a7159aa --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx @@ -0,0 +1,244 @@ +--- +description: 'Require both operands of addition to be the same type and be `bigint`, `number`, or `string`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/restrict-plus-operands** for documentation. + +TypeScript allows `+` adding together two values of any type(s). +However, adding values that are not the same type and/or are not the same primitive type is often a sign of programmer error. + +This rule reports when a `+` operation combines two values of different types, or a type that is not `bigint`, `number`, or `string`. + +## Examples + + + + +```ts +let foo = 1n + 1; +let fn = (a: string, b: never) => a + b; +``` + + + + +```ts +let foo = 1n + 1n; +let fn = (a: string, b: string) => a + b; +``` + + + + +## Options + +:::caution +We generally recommend against using these options, as they limit which varieties of incorrect `+` usage can be checked. +This in turn severely limits the validation that the rule can do to ensure that resulting strings and numbers are correct. + +Safer alternatives to using the `allow*` options include: + +- Using variadic forms of logging APIs to avoid needing to `+` values. + ```ts + // Remove this line + console.log('The result is ' + true); + // Add this line + console.log('The result is', true); + ``` +- Using `.toFixed()` to coerce numbers to well-formed string representations: + ```ts + const number = 1.123456789; + const result = 'The number is ' + number.toFixed(2); + // result === 'The number is 1.12' + ``` +- Calling `.toString()` on other types to mark explicit and intentional string coercion: + ```ts + const arg = '11'; + const regex = /[0-9]/; + const result = + 'The result of ' + + regex.toString() + + '.test("' + + arg + + '") is ' + + regex.test(arg).toString(); + // result === 'The result of /[0-9]/.test("11") is true' + ``` + +::: + +### `allowAny` + +{/* insert option description */} + +Examples of code for this rule with `{ allowAny: true }`: + + + + +```ts option='{ "allowAny": true }' +let fn = (a: number, b: []) => a + b; +let fn = (a: string, b: []) => a + b; +``` + + + + +```ts option='{ "allowAny": true }' +let fn = (a: number, b: any) => a + b; +let fn = (a: string, b: any) => a + b; +``` + + + + +### `allowBoolean` + +{/* insert option description */} + +Examples of code for this rule with `{ allowBoolean: true }`: + + + + +```ts option='{ "allowBoolean": true }' +let fn = (a: number, b: unknown) => a + b; +let fn = (a: string, b: unknown) => a + b; +``` + + + + +```ts option='{ "allowBoolean": true }' +let fn = (a: number, b: boolean) => a + b; +let fn = (a: string, b: boolean) => a + b; +``` + + + + +### `allowNullish` + +{/* insert option description */} + +Examples of code for this rule with `{ allowNullish: true }`: + + + + +```ts option='{ "allowNullish": true }' +let fn = (a: number, b: unknown) => a + b; +let fn = (a: number, b: never) => a + b; +let fn = (a: string, b: unknown) => a + b; +let fn = (a: string, b: never) => a + b; +``` + + + + +```ts option='{ "allowNullish": true }' +let fn = (a: number, b: undefined) => a + b; +let fn = (a: number, b: null) => a + b; +let fn = (a: string, b: undefined) => a + b; +let fn = (a: string, b: null) => a + b; +``` + + + + +### `allowNumberAndString` + +{/* insert option description */} + +Examples of code for this rule with `{ allowNumberAndString: true }`: + + + + +```ts option='{ "allowNumberAndString": true }' +let fn = (a: number, b: unknown) => a + b; +let fn = (a: number, b: never) => a + b; +``` + + + + +```ts option='{ "allowNumberAndString": true }' +let fn = (a: number, b: string) => a + b; +let fn = (a: number, b: number | string) => a + b; +``` + + + + +### `allowRegExp` + +{/* insert option description */} + +Examples of code for this rule with `{ allowRegExp: true }`: + + + + +```ts option='{ "allowRegExp": true }' +let fn = (a: number, b: RegExp) => a + b; +``` + + + + +```ts option='{ "allowRegExp": true }' +let fn = (a: string, b: RegExp) => a + b; +``` + + + + +### `skipCompoundAssignments` + +{/* insert option description */} + +Examples of code for this rule with `{ skipCompoundAssignments: false }`: + + + + +```ts option='{ "skipCompoundAssignments": false }' +let foo: bigint = 0n; +foo += 1; + +let bar: number[] = [1]; +bar += 1; +``` + + + + +```ts option='{ "skipCompoundAssignments": false }' +let foo: bigint = 0n; +foo += 1n; + +let bar: number = 1; +bar += 1; +``` + + + + +## When Not To Use It + +If you don't mind a risk of `"[object Object]"` or incorrect type coercions in your values, then you will not need this rule. + +## Related To + +- [`no-base-to-string`](./no-base-to-string.mdx) +- [`restrict-template-expressions`](./restrict-template-expressions.mdx) + +## Further Reading + +- [`Object.prototype.toString()` MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx new file mode 100644 index 00000000..9ea40aa8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx @@ -0,0 +1,169 @@ +--- +description: 'Enforce template literal expressions to be of `string` type.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/restrict-template-expressions** for documentation. + +JavaScript automatically [converts an object to a string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#string_coercion) in a string context, such as when concatenating it with a string using `+` or embedding it in a template literal using `${}`. +The default `toString()` method of objects uses the format `"[object Object]"`, which is often not what was intended. +This rule reports on values used in a template literal string that aren't strings, optionally allowing other data types that provide useful stringification results. + +:::note + +The default settings of this rule intentionally do not allow objects with a custom `toString()` method to be used in template literals, because the stringification result may not be user-friendly. + +For example, arrays have a custom [`toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString) method, which only calls `join()` internally, which joins the array elements with commas. This means that (1) array elements are not necessarily stringified to useful results (2) the commas don't have spaces after them, making the result not user-friendly. The best way to format arrays is to use [`Intl.ListFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat), which even supports adding the "and" conjunction where necessary. +You must explicitly call `object.toString()` if you want to use this object in a template literal, or turn on the `allowArray` option to specifically allow arrays. +The [`no-base-to-string`](./no-base-to-string.mdx) rule can be used to guard this case against producing `"[object Object]"` by accident. + +::: + +## Examples + + + + +```ts +const arg1 = [1, 2]; +const msg1 = `arg1 = ${arg1}`; + +const arg2 = { name: 'Foo' }; +const msg2 = `arg2 = ${arg2 || null}`; +``` + + + + +```ts +const arg = 'foo'; +const msg1 = `arg = ${arg}`; +const msg2 = `arg = ${arg || 'default'}`; + +const stringWithKindProp: string & { _kind?: 'MyString' } = 'foo'; +const msg3 = `stringWithKindProp = ${stringWithKindProp}`; +``` + + + + +## Options + +### `allowNumber` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowNumber: true }`: + +```ts option='{ "allowNumber": true }' showPlaygroundButton +const arg = 123; +const msg1 = `arg = ${arg}`; +const msg2 = `arg = ${arg || 'zero'}`; +``` + +This option controls both numbers and BigInts. + +We recommend avoiding using this option if you use any floating point numbers. +Although `` `${1}` `` evaluates to `'1'`, `` `${0.1 + 0.2}` `` evaluates to `'0.30000000000000004'`. +Consider using [`.toFixed()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed) or [`.toPrecision()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) instead. + +### `allowBoolean` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowBoolean: true }`: + +```ts option='{ "allowBoolean": true }' showPlaygroundButton +const arg = true; +const msg1 = `arg = ${arg}`; +const msg2 = `arg = ${arg || 'not truthy'}`; +``` + +### `allowAny` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowAny: true }`: + +```ts option='{ "allowAny": true }' showPlaygroundButton +const user = JSON.parse('{ "name": "foo" }'); +const msg1 = `arg = ${user.name}`; +const msg2 = `arg = ${user.name || 'the user with no name'}`; +``` + +### `allowNullish` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowNullish: true }`: + +```ts option='{ "allowNullish": true }' showPlaygroundButton +const arg = condition ? 'ok' : null; +const msg1 = `arg = ${arg}`; +``` + +### `allowRegExp` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowRegExp: true }`: + +```ts option='{ "allowRegExp": true }' showPlaygroundButton +const arg = new RegExp('foo'); +const msg1 = `arg = ${arg}`; +``` + +```ts option='{ "allowRegExp": true }' showPlaygroundButton +const arg = /foo/; +const msg1 = `arg = ${arg}`; +``` + +### `allowNever` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowNever: true }`: + +```ts option='{ "allowNever": true }' showPlaygroundButton +const arg = 'something'; +const msg1 = typeof arg === 'string' ? arg : `arg = ${arg}`; +``` + +### `allowArray` + +{/* insert option description */} + +Examples of additional **correct** code for this rule with `{ allowArray: true }`: + +```ts option='{ "allowArray": true }' showPlaygroundButton +const arg = ['foo', 'bar']; +const msg1 = `arg = ${arg}`; +``` + +### `allow` + +{/* insert option description */} + +Whether to allow additional types in template expressions. + +This option takes the shared [`TypeOrValueSpecifier` format](/packages/type-utils/type-or-value-specifier). + +Examples of additional **correct** code for this rule with the default option `{ allow: [{ from: 'lib', name: 'Error' }, { from: 'lib', name: 'URL' }, { from: 'lib', name: 'URLSearchParams' }] }`: + +```ts showPlaygroundButton +const error = new Error(); +const msg1 = `arg = ${error}`; +``` + +## When Not To Use It + +If you're not worried about incorrectly stringifying non-string values in template literals, then you likely don't need this rule. + +## Related To + +- [`no-base-to-string`](./no-base-to-string.mdx) +- [`restrict-plus-operands`](./restrict-plus-operands.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx new file mode 100644 index 00000000..34173fae --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx @@ -0,0 +1,328 @@ +--- +description: 'Enforce consistent awaiting of returned promises.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/return-await** for documentation. + +This rule builds on top of the [`eslint/no-return-await`](https://eslint.org/docs/rules/no-return-await) rule. +It expands upon the base rule to add support for optionally requiring `return await` in certain cases. + +The extended rule is named `return-await` instead of `no-return-await` because the extended rule can enforce the positive or the negative. Additionally, while the core rule is now deprecated, the extended rule is still useful in many contexts: + +- Returning an awaited promise [improves stack trace information](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#improving_stack_trace). +- When the `return` statement is in `try...catch`, awaiting the promise also allows the promise's rejection to be caught instead of leaving the error to the caller. +- Contrary to popular belief, `return await promise;` is [at least as fast as directly returning the promise](https://github.com/tc39/proposal-faster-promise-adoption). + +## Options + +```ts +type Options = + | 'in-try-catch' + | 'always' + | 'error-handling-correctness-only' + | 'never'; + +const defaultOptions: Options = 'in-try-catch'; +``` + +The options in this rule distinguish between "ordinary contexts" and "error-handling contexts". +An error-handling context is anywhere where returning an unawaited promise would cause unexpected control flow regarding exceptions/rejections. +See detailed examples in the sections for each option. + +- If you return a promise within a `try` block, it should be awaited in order to trigger subsequent `catch` or `finally` blocks as expected. +- If you return a promise within a `catch` block, and there _is_ a `finally` block, it should be awaited in order to trigger the `finally` block as expected. +- If you return a promise between a `using` or `await using` declaration and the end of its scope, it should be awaited, since it behaves equivalently to code wrapped in a `try` block followed by a `finally`. + +Ordinary contexts are anywhere else a promise may be returned. +The choice of whether to await a returned promise in an ordinary context is mostly stylistic. + +With these terms defined, the options may be summarized as follows: + +| Option | Ordinary Context
(stylistic preference 🎨) | Error-Handling Context
(catches bugs 🐛) | Should I use this option? | +| :-------------------------------: | :----------------------------------------------: | :----------------------------------------------------------: | :--------------------------------------------------------: | +| `always` | `return await promise;` | `return await promise;` | ✅ Yes! | +| `in-try-catch` | `return promise;` | `return await promise;` | ✅ Yes! | +| `error-handling-correctness-only` | don't care 🤷 | `return await promise;` | 🟡 Okay to use, but the above options would be preferable. | +| `never` | `return promise;` | `return promise;`
(⚠️ This behavior may be harmful ⚠️) | ❌ No. This option is deprecated. | + +### `in-try-catch` + +In error-handling contexts, the rule enforces that returned promises must be awaited. +In ordinary contexts, the rule enforces that returned promises _must not_ be awaited. + +This is a good option if you prefer the shorter `return promise` form for stylistic reasons, wherever it's safe to use. + +Examples of code with `in-try-catch`: + + + + +```ts option='"in-try-catch"' +async function invalidInTryCatch1() { + try { + return Promise.reject('try'); + } catch (e) { + // Doesn't execute due to missing await. + } +} + +async function invalidInTryCatch2() { + try { + throw new Error('error'); + } catch (e) { + // Unnecessary await; rejections here don't impact control flow. + return await Promise.reject('catch'); + } +} + +// Prints 'starting async work', 'cleanup', 'async work done'. +async function invalidInTryCatch3() { + async function doAsyncWork(): Promise { + console.log('starting async work'); + await new Promise(resolve => setTimeout(resolve, 1000)); + console.log('async work done'); + } + + try { + throw new Error('error'); + } catch (e) { + // Missing await. + return doAsyncWork(); + } finally { + console.log('cleanup'); + } +} + +async function invalidInTryCatch4() { + try { + throw new Error('error'); + } catch (e) { + throw new Error('error2'); + } finally { + // Unnecessary await; rejections here don't impact control flow. + return await Promise.reject('finally'); + } +} + +async function invalidInTryCatch5() { + return await Promise.resolve('try'); +} + +async function invalidInTryCatch6() { + return await 'value'; +} + +async function invalidInTryCatch7() { + using x = createDisposable(); + return Promise.reject('using in scope'); +} +``` + + + + +```ts option='"in-try-catch"' +async function validInTryCatch1() { + try { + return await Promise.reject('try'); + } catch (e) { + // Executes as expected. + } +} + +async function validInTryCatch2() { + try { + throw new Error('error'); + } catch (e) { + return Promise.reject('catch'); + } +} + +// Prints 'starting async work', 'async work done', 'cleanup'. +async function validInTryCatch3() { + async function doAsyncWork(): Promise { + console.log('starting async work'); + await new Promise(resolve => setTimeout(resolve, 1000)); + console.log('async work done'); + } + + try { + throw new Error('error'); + } catch (e) { + return await doAsyncWork(); + } finally { + console.log('cleanup'); + } +} + +async function validInTryCatch4() { + try { + throw new Error('error'); + } catch (e) { + throw new Error('error2'); + } finally { + return Promise.reject('finally'); + } +} + +async function validInTryCatch5() { + return Promise.resolve('try'); +} + +async function validInTryCatch6() { + return 'value'; +} + +async function validInTryCatch7() { + using x = createDisposable(); + return await Promise.reject('using in scope'); +} +``` + + + + +### `always` + +{/* insert option description */} + +Requires that all returned promises be awaited. + +This is a good option if you like the consistency of simply always awaiting promises, or prefer not having to consider the distinction between error-handling contexts and ordinary contexts. + +Examples of code with `always`: + + + + +```ts option='"always"' +async function invalidAlways1() { + try { + return Promise.resolve('try'); + } catch (e) {} +} + +async function invalidAlways2() { + return Promise.resolve('try'); +} + +async function invalidAlways3() { + return await 'value'; +} +``` + + + + +```ts option='"always"' +async function validAlways1() { + try { + return await Promise.resolve('try'); + } catch (e) {} +} + +async function validAlways2() { + return await Promise.resolve('try'); +} + +async function validAlways3() { + return 'value'; +} +``` + + + + +### `error-handling-correctness-only` + +In error-handling contexts, the rule enforces that returned promises must be awaited. +In ordinary contexts, the rule does not enforce any particular behavior around whether returned promises are awaited. + +This is a good option if you only want to benefit from rule's ability to catch control flow bugs in error-handling contexts, but don't want to enforce a particular style otherwise. + +:::info +We recommend you configure either `in-try-catch` or `always` instead of this option. +While the choice of whether to await promises outside of error-handling contexts is mostly stylistic, it's generally best to be consistent. +::: + +Examples of additional correct code with `error-handling-correctness-only`: + + + + +```ts option='"error-handling-correctness-only"' +async function asyncFunction(): Promise { + if (Math.random() < 0.5) { + return await Promise.resolve(); + } else { + return Promise.resolve(); + } +} +``` + + + + +### `never` + +{/* insert option description */} + +Disallows awaiting any returned promises. + +:::warning + +This option is deprecated and will be removed in a future major version of typescript-eslint. + +The `never` option introduces undesirable behavior in error-handling contexts. +If you prefer to minimize returning awaited promises, consider instead using `in-try-catch` instead, which also generally bans returning awaited promises, but only where it is _safe_ not to await a promise. + +See more details at [typescript-eslint#9433](https://github.com/typescript-eslint/typescript-eslint/issues/9433). +::: + +Examples of code with `never`: + + + + +```ts option='"never"' +async function invalidNever1() { + try { + return await Promise.resolve('try'); + } catch (e) {} +} + +async function invalidNever2() { + return await Promise.resolve('try'); +} + +async function invalidNever3() { + return await 'value'; +} +``` + + + + +```ts option='"never"' +async function validNever1() { + try { + return Promise.resolve('try'); + } catch (e) {} +} + +async function validNever2() { + return Promise.resolve('try'); +} + +async function validNever3() { + return 'value'; +} +``` + + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx new file mode 100644 index 00000000..8ed863fb --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx @@ -0,0 +1,209 @@ +--- +description: 'Enforce constituents of a type union/intersection to be sorted alphabetically.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/sort-type-constituents** for documentation. + +:::danger Deprecated +This rule has been deprecated in favor of the [`perfectionist/sort-intersection-types`](https://perfectionist.dev/rules/sort-intersection-types) and [`perfectionist/sort-union-types`](https://perfectionist.dev/rules/sort-union-types) rules. + +See [Docs: Deprecate sort-type-constituents in favor of eslint-plugin-perfectionist](https://github.com/typescript-eslint/typescript-eslint/issues/8915) and [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. +::: + +Sorting union (`|`) and intersection (`&`) types can help: + +- keep your codebase standardized +- find repeated types +- reduce diff churn + +This rule reports on any types that aren't sorted alphabetically. + +> Types are sorted case-insensitively and treating numbers like a human would, falling back to character code sorting in case of ties. + +## Examples + + + + +```ts +type T1 = B | A; + +type T2 = { b: string } & { a: string }; + +type T3 = [1, 2, 4] & [1, 2, 3]; + +type T4 = + | [1, 2, 4] + | [1, 2, 3] + | { b: string } + | { a: string } + | (() => void) + | (() => string) + | 'b' + | 'a' + | 'b' + | 'a' + | readonly string[] + | readonly number[] + | string[] + | number[] + | B + | A + | string + | any; +``` + + + + +```ts +type T1 = A | B; + +type T2 = { a: string } & { b: string }; + +type T3 = [1, 2, 3] & [1, 2, 4]; + +type T4 = + | A + | B + | number[] + | string[] + | any + | string + | readonly number[] + | readonly string[] + | 'a' + | 'a' + | 'b' + | 'b' + | (() => string) + | (() => void) + | { a: string } + | { b: string } + | [1, 2, 3] + | [1, 2, 4]; +``` + + + + +## Options + +### `caseSensitive` + +{/* insert option description */} + +Examples of code with `{ "caseSensitive": true }`: + + + + +```ts option='{ "caseSensitive": true }' +type T = 'DeletedAt' | 'DeleteForever'; +``` + + + + +```ts option='{ "caseSensitive": true }' +type T = 'DeleteForever' | 'DeletedAt'; +``` + + + + +### `checkIntersections` + +{/* insert option description */} + +Examples of code with `{ "checkIntersections": true }` (the default): + + + + +```ts option='{ "checkIntersections": true }' +type ExampleIntersection = B & A; +``` + + + + +```ts option='{ "checkIntersections": true }' +type ExampleIntersection = A & B; +``` + + + + +### `checkUnions` + +{/* insert option description */} + +Examples of code with `{ "checkUnions": true }` (the default): + + + + +```ts option='{ "checkUnions": true }' +type ExampleUnion = B | A; +``` + + + + +```ts option='{ "checkUnions": true }' +type ExampleUnion = A | B; +``` + + + + +### `groupOrder` + +{/* insert option description */} + +Each constituent of the type is placed into a group, and then the rule sorts alphabetically within each group. +The ordering of groups is determined by this option. + +- `conditional` - Conditional types (`A extends B ? C : D`) +- `function` - Function and constructor types (`() => void`, `new () => type`) +- `import` - Import types (`import('path')`) +- `intersection` - Intersection types (`A & B`) +- `keyword` - Keyword types (`any`, `string`, etc) +- `literal` - Literal types (`1`, `'b'`, `true`, etc) +- `named` - Named types (`A`, `A['prop']`, `B[]`, `Array`) +- `object` - Object types (`{ a: string }`, `{ [key: string]: number }`) +- `operator` - Operator types (`keyof A`, `typeof B`, `readonly C[]`) +- `tuple` - Tuple types (`[A, B, C]`) +- `union` - Union types (`A | B`) +- `nullish` - `null` and `undefined` + +For example, configuring the rule with `{ "groupOrder": ["literal", "nullish" ]}`: + + + + +```ts option='{ "groupOrder": ["literal", "nullish" ]}' +type ExampleGroup = null | 123; +``` + + + + +```ts option='{ "groupOrder": ["literal", "nullish" ]}' +type ExampleGroup = 123 | null; +``` + + + + +## When Not To Use It + +This rule is purely a stylistic rule for maintaining consistency in your project. +You can turn it off if you don't want to keep a consistent, predictable order for intersection and union types. +However, keep in mind that inconsistent style can harm readability in a project. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx new file mode 100644 index 00000000..af5afd1c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx @@ -0,0 +1,16 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been renamed to [`sort-type-constituents`](https://typescript-eslint.io/rules/sort-type-constituents). + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx new file mode 100644 index 00000000..a48b3a37 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx @@ -0,0 +1,212 @@ +--- +description: 'Disallow certain types in boolean expressions.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/strict-boolean-expressions** for documentation. + +Forbids usage of non-boolean types in expressions where a boolean is expected. +`boolean` and `never` types are always allowed. +Additional types which are considered safe in a boolean context can be configured via options. + +The following nodes are considered boolean expressions and their type is checked: + +- Argument to the logical negation operator (`!arg`). +- The condition in a conditional expression (`cond ? x : y`). +- Conditions for `if`, `for`, `while`, and `do-while` statements. +- Operands of logical binary operators (`lhs || rhs` and `lhs && rhs`). + - Right-hand side operand is ignored when it's not a descendant of another boolean expression. + This is to allow usage of boolean operators for their short-circuiting behavior. +- Asserted argument of an assertion function (`assert(arg)`). + +## Examples + + + + +```ts +// nullable numbers are considered unsafe by default +declare const num: number | undefined; +if (num) { + console.log('num is defined'); +} + +// nullable strings are considered unsafe by default +declare const str: string | null; +if (!str) { + console.log('str is empty'); +} + +// nullable booleans are considered unsafe by default +function foo(bool?: boolean) { + if (bool) { + bar(); + } +} + +// `any`, unconstrained generics and unions of more than one primitive type are disallowed +const foo = (arg: T) => (arg ? 1 : 0); + +// always-truthy and always-falsy types are disallowed +let obj = {}; +while (obj) { + obj = getObj(); +} + +// assertion functions without an `is` are boolean contexts. +declare function assert(value: unknown): asserts value; +let maybeString = Math.random() > 0.5 ? '' : undefined; +assert(maybeString); +``` + + + + +```tsx +// nullable values should be checked explicitly against null or undefined +let num: number | undefined = 0; +if (num != null) { + console.log('num is defined'); +} + +let str: string | null = null; +if (str != null && !str) { + console.log('str is empty'); +} + +function foo(bool?: boolean) { + if (bool ?? false) { + bar(); + } +} + +// `any` types should be cast to boolean explicitly +const foo = (arg: any) => (Boolean(arg) ? 1 : 0); +``` + + + + +## Options + +### `allowString` + +{/* insert option description */} + +This can be safe because strings have only one falsy value (`""`). +Set this to `false` if you prefer the explicit `str != ""` or `str.length > 0` style. + +### `allowNumber` + +{/* insert option description */} + +This can be safe because numbers have only two falsy values (`0` and `NaN`). +Set this to `false` if you prefer the explicit `num != 0` and `!Number.isNaN(num)` style. + +### `allowNullableObject` + +{/* insert option description */} + +This can be safe because objects, functions, and symbols don't have falsy values. +Set this to `false` if you prefer the explicit `obj != null` style. + +### `allowNullableBoolean` + +{/* insert option description */} + +This is unsafe because nullable booleans can be either `false` or nullish. +Set this to `false` if you want to enforce explicit `bool ?? false` or `bool ?? true` style. +Set this to `true` if you don't mind implicitly treating false the same as a nullish value. + +### `allowNullableString` + +{/* insert option description */} + +This is unsafe because nullable strings can be either an empty string or nullish. +Set this to `true` if you don't mind implicitly treating an empty string the same as a nullish value. + +### `allowNullableNumber` + +{/* insert option description */} + +This is unsafe because nullable numbers can be either a falsy number or nullish. +Set this to `true` if you don't mind implicitly treating zero or NaN the same as a nullish value. + +### `allowNullableEnum` + +{/* insert option description */} + +This is unsafe because nullable enums can be either a falsy number or nullish. +Set this to `true` if you don't mind implicitly treating an enum whose value is zero the same as a nullish value. + +### `allowAny` + +{/* insert option description */} + +This is unsafe for because `any` allows any values and disables many type checking checks. +Set this to `true` at your own risk. + +### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` + +{/* insert option description */} + +:::danger Deprecated + +This option will be removed in the next major version of typescript-eslint. + +::: + +If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. + +Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule a lot less useful. + +You should be using `strictNullChecks` to ensure complete type-safety in your codebase. + +If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. + +## Fixes and Suggestions + +This rule provides following fixes and suggestions for particular types in boolean context: + +- `boolean` - Always allowed - no fix needed. +- `string` - (when `allowString` is `false`) - Provides following suggestions: + - Change condition to check string's length (`str` → `str.length > 0`) + - Change condition to check for empty string (`str` → `str !== ""`) + - Explicitly cast value to a boolean (`str` → `Boolean(str)`) +- `number` - (when `allowNumber` is `false`): + - For `array.length` - Provides **autofix**: + - Change condition to check for 0 (`array.length` → `array.length > 0`) + - For other number values - Provides following suggestions: + - Change condition to check for 0 (`num` → `num !== 0`) + - Change condition to check for NaN (`num` → `!Number.isNaN(num)`) + - Explicitly cast value to a boolean (`num` → `Boolean(num)`) +- `object | null | undefined` - (when `allowNullableObject` is `false`) - Provides **autofix**: + - Change condition to check for null/undefined (`maybeObj` → `maybeObj != null`) +- `boolean | null | undefined` - Provides following suggestions: + - Explicitly treat nullish value the same as false (`maybeBool` → `maybeBool ?? false`) + - Change condition to check for true/false (`maybeBool` → `maybeBool === true`) +- `string | null | undefined` - Provides following suggestions: + - Change condition to check for null/undefined (`maybeStr` → `maybeStr != null`) + - Explicitly treat nullish value the same as an empty string (`maybeStr` → `maybeStr ?? ""`) + - Explicitly cast value to a boolean (`maybeStr` → `Boolean(maybeStr)`) +- `number | null | undefined` - Provides following suggestions: + - Change condition to check for null/undefined (`maybeNum` → `maybeNum != null`) + - Explicitly treat nullish value the same as 0 (`maybeNum` → `maybeNum ?? 0`) + - Explicitly cast value to a boolean (`maybeNum` → `Boolean(maybeNum)`) +- `any` and `unknown` - Provides following suggestions: + - Explicitly cast value to a boolean (`value` → `Boolean(value)`) + +## When Not To Use It + +If your project isn't likely to experience bugs from falsy non-boolean values being used in logical conditions, you can skip enabling this rule. + +Otherwise, this rule can be quite strict around requiring exact comparisons in logical checks. +If you prefer more succinct checks over more precise boolean logic, this rule might not be for you. + +## Related To + +- [no-unnecessary-condition](./no-unnecessary-condition.mdx) - Similar rule which reports always-truthy and always-falsy values in conditions diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx new file mode 100644 index 00000000..09ce6014 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx @@ -0,0 +1,259 @@ +--- +description: 'Require switch-case statements to be exhaustive.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/switch-exhaustiveness-check** for documentation. + +When working with union types or enums in TypeScript, it's common to want to write a `switch` statement intended to contain a `case` for each possible type in the union or the enum. +However, if the union type or the enum changes, it's easy to forget to modify the cases to account for any new types. + +This rule reports when a `switch` statement over a value typed as a union of literals or as an enum is missing a case for any of those literal types and does not have a `default` clause. + +## Options + +### `allowDefaultCaseForExhaustiveSwitch` + +{/* insert option description */} + +If set to false, this rule will also report when a `switch` statement has a case for everything in a union and _also_ contains a `default` case. Thus, by setting this option to false, the rule becomes stricter. + +When a `switch` statement over a union type is exhaustive, a final `default` case would be a form of dead code. +Additionally, if a new value is added to the union type and you're using [`considerDefaultExhaustiveForUnions`](#considerDefaultExhaustiveForUnions), a `default` would prevent the `switch-exhaustiveness-check` rule from reporting on the new case not being handled in the `switch` statement. + +#### `allowDefaultCaseForExhaustiveSwitch` Caveats + +It can sometimes be useful to include a redundant `default` case on an exhaustive `switch` statement if it's possible for values to have types not represented by the union type. +For example, in applications that can have version mismatches between clients and servers, it's possible for a server running a newer software version to send a value not recognized by the client's older typings. + +If your project has a small number of intentionally redundant `default` cases, you might want to use an [inline ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for each of them. + +If your project has many intentionally redundant `default` cases, you may want to disable `allowDefaultCaseForExhaustiveSwitch` and use the [`default-case` core ESLint rule](https://eslint.org/docs/latest/rules/default-case) along with [a `satisfies never` check](https://www.typescriptlang.org/play?#code/C4TwDgpgBAYgTgVwJbCgXigcgIZjAGwkygB8sAjbAO2u0wG4AoRgMwSoGNgkB7KqBAGcI8ZMAAULRCgBcsacACUcwcDhIqAcygBvRlCiCA7ig4ALKJIWLd+g1A7ZhWXASJy99+3AjAEcfhw8QgApZA4iJi8AX2YvR2dMShoaTA87Lx8-AIpaGjCkCIYMqFiSgBMIFmwEfGB0rwMpMUNsbkEWJAhBKCoIADcIOCjGrP9A9gBrKh4jKgKikYNY5cZYoA). + +### `requireDefaultForNonUnion` + +{/* insert option description */} + +If set to true, this rule will also report when a `switch` statement switches over a non-union type (like a `number` or `string`, for example) and that `switch` statement does not have a `default` case. Thus, by setting this option to true, the rule becomes stricter. + +This is generally desirable so that `number` and `string` switches will be subject to the same exhaustive checks that your other switches are. + +Examples of additional **incorrect** code for this rule with `{ requireDefaultForNonUnion: true }`: + +```ts option='{ "requireDefaultForNonUnion": true }' showPlaygroundButton +const value: number = Math.floor(Math.random() * 3); + +switch (value) { + case 0: + return 0; + case 1: + return 1; +} +``` + +Since `value` is a non-union type it requires the switch case to have a default clause only with `requireDefaultForNonUnion` enabled. + +### `considerDefaultExhaustiveForUnions` + +{/* insert option description */} + +If set to true, a `switch` statement over a union type that includes a `default` case is considered exhaustive. +Otherwise, the rule enforces explicitly handling every constituent of the union type with their own explicit `case`. +Keeping this option disabled can be useful if you want to make sure every value added to the union receives explicit handling, with the `default` case reserved for reporting an error. + +Examples of additional **correct** code with `{ considerDefaultExhaustiveForUnions: true }`: + +```ts option='{ "considerDefaultExhaustiveForUnions": true }' showPlaygroundButton +declare const literal: 'a' | 'b'; + +switch (literal) { + case 'a': + break; + default: + break; +} +``` + +## Examples + +When the switch doesn't have exhaustive cases, either filling them all out or adding a default (if you have `considerDefaultExhaustiveForUnions` enabled) will address the rule's complaint. + +Here are some examples of code working with a union of literals: + + + + +```ts +type Day = + | 'Monday' + | 'Tuesday' + | 'Wednesday' + | 'Thursday' + | 'Friday' + | 'Saturday' + | 'Sunday'; + +declare const day: Day; +let result = 0; + +switch (day) { + case 'Monday': + result = 1; + break; +} +``` + + + + +```ts +type Day = + | 'Monday' + | 'Tuesday' + | 'Wednesday' + | 'Thursday' + | 'Friday' + | 'Saturday' + | 'Sunday'; + +declare const day: Day; +let result = 0; + +switch (day) { + case 'Monday': + result = 1; + break; + case 'Tuesday': + result = 2; + break; + case 'Wednesday': + result = 3; + break; + case 'Thursday': + result = 4; + break; + case 'Friday': + result = 5; + break; + case 'Saturday': + result = 6; + break; + case 'Sunday': + result = 7; + break; +} +``` + + + + +```ts option='{ "considerDefaultExhaustiveForUnions": true }' +// requires `considerDefaultExhaustiveForUnions` to be set to true + +type Day = + | 'Monday' + | 'Tuesday' + | 'Wednesday' + | 'Thursday' + | 'Friday' + | 'Saturday' + | 'Sunday'; + +declare const day: Day; +let result = 0; + +switch (day) { + case 'Monday': + result = 1; + break; + default: + result = 42; +} +``` + + + + +Likewise, here are some examples of code working with an enum: + + + + +```ts +enum Fruit { + Apple, + Banana, + Cherry, +} + +declare const fruit: Fruit; + +switch (fruit) { + case Fruit.Apple: + console.log('an apple'); + break; +} +``` + + + + +```ts +enum Fruit { + Apple, + Banana, + Cherry, +} + +declare const fruit: Fruit; + +switch (fruit) { + case Fruit.Apple: + console.log('an apple'); + break; + + case Fruit.Banana: + console.log('a banana'); + break; + + case Fruit.Cherry: + console.log('a cherry'); + break; +} +``` + + + + +```ts option='{ "considerDefaultExhaustiveForUnions": true }' +// requires `considerDefaultExhaustiveForUnions` to be set to true + +enum Fruit { + Apple, + Banana, + Cherry, +} + +declare const fruit: Fruit; + +switch (fruit) { + case Fruit.Apple: + console.log('an apple'); + break; + + default: + console.log('a fruit'); + break; +} +``` + + + + +## When Not To Use It + +If you don't frequently `switch` over union types or enums with many parts, or intentionally wish to leave out some parts, this rule may not be for you. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx new file mode 100644 index 00000000..2fe7847f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx @@ -0,0 +1,129 @@ +--- +description: 'Disallow certain triple slash directives in favor of ES6-style import declarations.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/triple-slash-reference** for documentation. + +TypeScript's `///` triple-slash references are a way to indicate that types from another module are available in a file. +Use of triple-slash reference type directives is generally discouraged in favor of ECMAScript Module `import`s. +This rule reports on the use of `/// `, `/// `, or `/// ` directives. + +## Options + +Any number of the three kinds of references can be specified as an option. +Specifying `'always'` disables this lint rule for that kind of reference. + +### `lib` + +{/* insert option description */} + +When set to `'never'`, bans `/// ` and enforces using an `import` instead: + + + + +```ts option='{ "lib": "never" }' +/// + +globalThis.value; +``` + + + + +```ts option='{ "lib": "never" }' +import { value } from 'code'; +``` + + + + +### `path` + +{/* insert option description */} + +When set to `'never'`, bans `/// ` and enforces using an `import` instead: + + + + +```ts option='{ "path": "never" }' +/// + +globalThis.value; +``` + + + + +```ts option='{ "path": "never" }' +import { value } from 'code'; +``` + + + + +### `types` + +{/* insert option description */} + +When set to `'never'`, bans `/// ` and enforces using an `import` instead: + + + + +```ts option='{ "types": "never" }' +/// + +globalThis.value; +``` + + + + +```ts option='{ "types": "never" }' +import { value } from 'code'; +``` + + + + +The `types` option may alternately be given a `"prefer-import"` value. +Doing so indicates the rule should only report if there is already an `import` from the same location: + + + + +```ts option='{ "types": "prefer-import" }' +/// + +import { valueA } from 'code'; + +globalThis.valueB; +``` + + + + +```ts option='{ "types": "prefer-import" }' +import { valueA, valueB } from 'code'; +``` + + + + +## When Not To Use It + +Most modern TypeScript projects generally use `import` statements to bring in types. +It's rare to need a `///` triple-slash reference outside of auto-generated code. +If your project is a rare one with one of those use cases, this rule might not be for you. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +## When Not To Use It + +If you want to use all flavors of triple slash reference directives. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md new file mode 100644 index 00000000..039ef6e6 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md @@ -0,0 +1,15 @@ +--- +displayed_sidebar: rulesSidebar +--- + +:::danger Deprecated + +This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). +See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. + +::: + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx new file mode 100644 index 00000000..8af5c045 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx @@ -0,0 +1,347 @@ +--- +description: 'Require type annotations in certain places.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/typedef** for documentation. + +TypeScript cannot always infer types for all places in code. +Some locations require type annotations for their types to be inferred. + +This rule can enforce type annotations in locations regardless of whether they're required. +This is typically used to maintain consistency for element types that sometimes require them. + +```ts +class ContainsText { + // There must be a type annotation here to infer the type + delayedText: string; + + // `typedef` requires a type annotation here to maintain consistency + immediateTextExplicit: string = 'text'; + + // This is still a string type because of its initial value + immediateTextImplicit = 'text'; +} +``` + +> To enforce type definitions existing on call signatures, use [`explicit-function-return-type`](./explicit-function-return-type.mdx), or [`explicit-module-boundary-types`](./explicit-module-boundary-types.mdx). + +:::caution + +Requiring type annotations unnecessarily can be cumbersome to maintain and generally reduces code readability. +TypeScript is often better at inferring types than easily written type annotations would allow. + +**Instead of enabling `typedef`, it is generally recommended to use the `--noImplicitAny` and `--strictPropertyInitialization` compiler options to enforce type annotations only when useful.** + +::: + +## Options + +For example, with the following configuration: + +```json +{ + "rules": { + "@typescript-eslint/typedef": [ + "error", + { + "arrowParameter": true, + "variableDeclaration": true + } + ] + } +} +``` + +- Type annotations on arrow function parameters are required +- Type annotations on variables are required + +### `arrayDestructuring` + +{/* insert option description */} + +Examples of code with `{ "arrayDestructuring": true }`: + + + + +```ts option='{ "arrayDestructuring": true }' +const [a] = [1]; +const [b, c] = [1, 2]; +``` + + + + +```ts option='{ "arrayDestructuring": true }' +const [a]: number[] = [1]; +const [b]: [number] = [2]; +const [c, d]: [boolean, string] = [true, 'text']; + +for (const [key, val] of new Map([['key', 1]])) { +} +``` + + + + +### `arrowParameter` + +{/* insert option description */} + +Examples of code with `{ "arrowParameter": true }`: + + + + +```ts option='{ "arrowParameter": true }' +const logsSize = size => console.log(size); + +['hello', 'world'].map(text => text.length); + +const mapper = { + map: text => text + '...', +}; +``` + + + + +```ts option='{ "arrowParameter": true }' +const logsSize = (size: number) => console.log(size); + +['hello', 'world'].map((text: string) => text.length); + +const mapper = { + map: (text: string) => text + '...', +}; +``` + + + + +### `memberVariableDeclaration` + +{/* insert option description */} + +Examples of code with `{ "memberVariableDeclaration": true }`: + + + + +```ts option='{ "memberVariableDeclaration": true }' +class ContainsText { + delayedText; + immediateTextImplicit = 'text'; +} +``` + + + + +```ts option='{ "memberVariableDeclaration": true }' +class ContainsText { + delayedText: string; + immediateTextImplicit: string = 'text'; +} +``` + + + + +### `objectDestructuring` + +{/* insert option description */} + +Examples of code with `{ "objectDestructuring": true }`: + + + + +```ts option='{ "objectDestructuring": true }' +const { length } = 'text'; +const [b, c] = Math.random() ? [1, 2] : [3, 4]; +``` + + + + +```ts option='{ "objectDestructuring": true }' +const { length }: { length: number } = 'text'; +const [b, c]: [number, number] = Math.random() ? [1, 2] : [3, 4]; + +for (const { key, val } of [{ key: 'key', val: 1 }]) { +} +``` + + + + +### `parameter` + +{/* insert option description */} + +Examples of code with `{ "parameter": true }`: + + + + +```ts option='{ "parameter": true }' +function logsSize(size): void { + console.log(size); +} + +const doublesSize = function (size): number { + return size * 2; +}; + +const divider = { + curriesSize(size): number { + return size; + }, + dividesSize: function (size): number { + return size / 2; + }, +}; + +class Logger { + log(text): boolean { + console.log('>', text); + return true; + } +} +``` + + + + +```ts option='{ "parameter": true }' +function logsSize(size: number): void { + console.log(size); +} + +const doublesSize = function (size: number): number { + return size * 2; +}; + +const divider = { + curriesSize(size: number): number { + return size; + }, + dividesSize: function (size: number): number { + return size / 2; + }, +}; + +class Logger { + log(text: boolean): boolean { + console.log('>', text); + return true; + } +} +``` + + + + +### `propertyDeclaration` + +{/* insert option description */} + +Examples of code with `{ "propertyDeclaration": true }`: + + + + +```ts option='{ "propertyDeclaration": true }' +type Members = { + member; + otherMember; +}; +``` + + + + +```ts option='{ "propertyDeclaration": true }' +type Members = { + member: boolean; + otherMember: string; +}; +``` + + + + +### `variableDeclaration` + +{/* insert option description */} + +Examples of code with `{ "variableDeclaration": true }`: + + + + +```ts option='{ "variableDeclaration": true }' +const text = 'text'; +let initialText = 'text'; +let delayedText; +``` + + + + +```ts option='{ "variableDeclaration": true }' +const text: string = 'text'; +let initialText: string = 'text'; +let delayedText: string; +``` + + + + +### `variableDeclarationIgnoreFunction` + +{/* insert option description */} + +Examples of code with `{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }`: + + + + +```ts option='{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }' +const text = 'text'; +``` + + + + +```ts option='{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }' +const a = (): void => {}; +const b = function (): void {}; +const c: () => void = (): void => {}; + +class Foo { + a = (): void => {}; + b = function (): void {}; + c: () => void = (): void => {}; +} +``` + + + + +## When Not To Use It + +If you are using stricter TypeScript compiler options, particularly `--noImplicitAny` and/or `--strictPropertyInitialization`, you likely don't need this rule. + +In general, if you do not consider the cost of writing unnecessary type annotations reasonable, then do not use this rule. + +## Further Reading + +- [TypeScript Type System](https://basarat.gitbooks.io/typescript/docs/types/type-system.html) +- [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx new file mode 100644 index 00000000..bf48bea5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx @@ -0,0 +1,114 @@ +--- +description: 'Enforce unbound methods are called with their expected scope.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/unbound-method** for documentation. + +Class method functions don't preserve the class scope when passed as standalone variables ("unbound"). +If your function does not access `this`, [you can annotate it with `this: void`](https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function), or consider using an arrow function instead. +Otherwise, passing class methods around as values can remove type safety by failing to capture `this`. + +This rule reports when a class method is referenced in an unbound manner. + +:::note Tip +If you're working with `jest`, you can use [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md) to lint your test files, which knows when it's ok to pass an unbound method to `expect` calls. +::: + +## Examples + + + + +```ts +class MyClass { + public log(): void { + console.log(this); + } +} + +const instance = new MyClass(); + +// This logs the global scope (`window`/`global`), not the class instance +const myLog = instance.log; +myLog(); + +// This log might later be called with an incorrect scope +const { log } = instance; + +// arith.double may refer to `this` internally +const arith = { + double(x: number): number { + return x * 2; + }, +}; +const { double } = arith; +``` + + + + +```ts +class MyClass { + public logUnbound(): void { + console.log(this); + } + + public logBound = () => console.log(this); +} + +const instance = new MyClass(); + +// logBound will always be bound with the correct scope +const { logBound } = instance; +logBound(); + +// .bind and lambdas will also add a correct scope +const dotBindLog = instance.logUnbound.bind(instance); +const innerLog = () => instance.logUnbound(); + +// arith.double explicitly declares that it does not refer to `this` internally +const arith = { + double(this: void, x: number): number { + return x * 2; + }, +}; +const { double } = arith; +``` + + + + +## Options + +### `ignoreStatic` + +{/* insert option description */} + +Examples of **correct** code for this rule with `{ ignoreStatic: true }`: + +```ts option='{ "ignoreStatic": true }' showPlaygroundButton +class OtherClass { + static log() { + console.log(OtherClass); + } +} + +// With `ignoreStatic`, statics are assumed to not rely on a particular scope +const { log } = OtherClass; + +log(); +``` + +## When Not To Use It + +If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use. +For example, some functions have an additional parameter for specifying the `this` context, such as `Reflect.apply`, and array methods like `Array.prototype.map`. +This semantic is not easily expressed by TypeScript. +You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. + +If you're wanting to use `toBeCalled` and similar matches in `jest` tests, you can disable this rule for your test files in favor of [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.mdx). diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx new file mode 100644 index 00000000..6813957a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx @@ -0,0 +1,88 @@ +--- +description: 'Disallow two overloads that could be unified into one with a union or an optional/rest parameter.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/unified-signatures** for documentation. + +Function overload signatures are a TypeScript way to define a function that can be called in multiple very different ways. +Overload signatures add syntax and theoretical bloat, so it's generally best to avoid using them when possible. +Switching to union types and/or optional or rest parameters can often avoid the need for overload signatures. + +This rule reports when function overload signatures can be replaced by a single function signature. + +## Examples + + + + +```ts +function x(x: number): void; +function x(x: string): void; +``` + +```ts +function y(): void; +function y(...x: number[]): void; +``` + + + + +```ts +function x(x: number | string): void; +``` + +```ts +function y(...x: number[]): void; +``` + +```ts +// This rule won't check overload signatures with different rest parameter types. +// See https://github.com/microsoft/TypeScript/issues/5077 +function f(...a: number[]): void; +function f(...a: string[]): void; +``` + + + + +## Options + +### `ignoreDifferentlyNamedParameters` + +{/* insert option description */} + +Examples of code for this rule with `ignoreDifferentlyNamedParameters`: + + + + +```ts option='{ "ignoreDifferentlyNamedParameters": true }' +function f(a: number): void; +function f(a: string): void; +``` + + + + +```ts option='{ "ignoreDifferentlyNamedParameters": true }' +function f(a: number): void; +function f(b: string): void; +``` + + + + +## When Not To Use It + +This is purely a stylistic rule to help with readability of function signature overloads. +You can turn it off if you don't want to consistently keep them next to each other and unified. + +## Related To + +- [`adjacent-overload-signatures`](./adjacent-overload-signatures.mdx) diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx new file mode 100644 index 00000000..b7423b2d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx @@ -0,0 +1,93 @@ +--- +description: 'Enforce typing arguments in Promise rejection callbacks as `unknown`.' +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable** for documentation. + +This rule enforces that you always use the `unknown` type for the parameter of a Promise rejection callback. + + + + +```ts +Promise.reject(new Error('I will reject!')).catch(err => { + console.log(err); +}); + +Promise.reject(new Error('I will reject!')).catch((err: any) => { + console.log(err); +}); + +Promise.reject(new Error('I will reject!')).catch((err: Error) => { + console.log(err); +}); + +Promise.reject(new Error('I will reject!')).then( + result => { + console.log(result); + }, + err => { + console.log(err); + }, +); +``` + + + + +```ts +Promise.reject(new Error('I will reject!')).catch((err: unknown) => { + console.log(err); +}); +``` + + + + +The reason for this rule is to enable programmers to impose constraints on `Promise` error handling analogously to what TypeScript provides for ordinary exception handling. + +For ordinary exceptions, TypeScript treats the `catch` variable as `any` by default. However, `unknown` would be a more accurate type, so TypeScript [introduced the `useUnknownInCatchVariables` compiler option](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#defaulting-to-the-unknown-type-in-catch-variables---useunknownincatchvariables) to treat the `catch` variable as `unknown` instead. + +```ts +try { + throw x; +} catch (err) { + // err has type 'any' with useUnknownInCatchVariables: false + // err has type 'unknown' with useUnknownInCatchVariables: true +} +``` + +The Promise analog of the `try-catch` block, [`Promise.prototype.catch()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch), is not affected by the `useUnknownInCatchVariables` compiler option, and its "`catch` variable" will always have the type `any`. + +```ts +Promise.reject(x).catch(err => { + // err has type 'any' regardless of `useUnknownInCatchVariables` +}); +``` + +However, you can still provide an explicit type annotation, which lets you achieve the same effect as the `useUnknownInCatchVariables` option does for synchronous `catch` variables. + +```ts +Promise.reject(x).catch((err: unknown) => { + // err has type 'unknown' +}); +``` + +:::info +There is actually a way to have the `catch()` and `then()` callback variables use the `unknown` type _without_ an explicit type annotation at the call sites, but it has the drawback that it involves overriding global type declarations. +For example, the library [better-TypeScript-lib](https://github.com/uhyo/better-typescript-lib) sets this up globally for your project (see [the relevant lines in the better-TypeScript-lib source code](https://github.com/uhyo/better-typescript-lib/blob/c294e177d1cc2b1d1803febf8192a4c83a1fe028/lib/lib.es5.d.ts#L635) for details on how). + +For further reading on this, you may also want to look into +[the discussion in the proposal for this rule](https://github.com/typescript-eslint/typescript-eslint/issues/7526#issuecomment-1690600813) and [this TypeScript issue on typing catch callback variables as unknown](https://github.com/microsoft/TypeScript/issues/45602). +::: + +## When Not To Use It + +If your codebase is not yet able to enable `useUnknownInCatchVariables`, it likely would be similarly difficult to enable this rule. + +If you have modified the global type declarations in order to make `then()` and `catch()` callbacks use the `unknown` type without an explicit type annotation, you do not need this rule. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/eslint-recommended-raw.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/eslint-recommended-raw.d.ts new file mode 100644 index 00000000..0fb42307 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/eslint-recommended-raw.d.ts @@ -0,0 +1,5 @@ +declare const config: (style: 'glob' | 'minimatch') => { + files: string[]; + rules: Record; +}; +export = config; diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/index.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/index.d.ts new file mode 100644 index 00000000..756a025e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/index.d.ts @@ -0,0 +1,13 @@ +import type { + ClassicConfig, + FlatConfig, +} from '@typescript-eslint/utils/ts-eslint'; + +import type rules from './rules'; + +declare const cjsExport: { + configs: Record; + meta: FlatConfig.PluginMeta; + rules: typeof rules; +}; +export = cjsExport; diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/package.json b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/package.json new file mode 100644 index 00000000..a34e17e0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/package.json @@ -0,0 +1,112 @@ +{ + "name": "@typescript-eslint/eslint-plugin", + "version": "8.15.0", + "description": "TypeScript plugin for ESLint", + "files": [ + "dist", + "docs", + "eslint-recommended-raw.d.ts", + "index.d.ts", + "rules.d.ts", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json", + "./use-at-your-own-risk/rules": { + "types": "./rules.d.ts", + "default": "./dist/rules/index.js" + }, + "./use-at-your-own-risk/eslint-recommended-raw": { + "types": "./eslint-recommended-raw.d.ts", + "default": "./dist/configs/eslint-recommended-raw.js" + } + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/eslint-plugin" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/eslint-plugin", + "license": "MIT", + "keywords": [ + "eslint", + "eslintplugin", + "eslint-plugin", + "typescript" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "generate:breaking-changes": "tsx tools/generate-breaking-changes.mts", + "generate:configs": "npx nx generate-configs repo", + "lint": "npx nx lint", + "test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage --logHeapUsage", + "test-single": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --no-coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.15.0", + "@typescript-eslint/type-utils": "8.15.0", + "@typescript-eslint/utils": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/marked": "^5.0.2", + "@types/mdast": "^4.0.3", + "@types/natural-compare": "*", + "@typescript-eslint/rule-schema-to-typescript-types": "8.15.0", + "@typescript-eslint/rule-tester": "8.15.0", + "ajv": "^6.12.6", + "cross-env": "^7.0.3", + "cross-fetch": "*", + "eslint": "*", + "jest": "29.7.0", + "jest-specific-snapshot": "^8.0.0", + "json-schema": "*", + "markdown-table": "^3.0.3", + "marked": "^5.1.2", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-mdx": "^3.0.0", + "micromark-extension-mdxjs": "^3.0.0", + "prettier": "^3.2.5", + "rimraf": "*", + "title-case": "^3.0.3", + "tsx": "*", + "typescript": "*", + "unist-util-visit": "^5.0.0" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } +} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts new file mode 100644 index 00000000..7808db85 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts @@ -0,0 +1,86 @@ +/* +We purposely don't generate types for our plugin because TL;DR: +1) there's no real reason that anyone should do a typed import of our rules, +2) it would require us to change our code so there aren't as many inferred types + +This type declaration exists as a hacky way to add a type to the export for our +internal packages that require it. + +*** Long reason *** + +When you turn on declaration files, TS requires all types to be "fully resolvable" +without changes to the code. +All of our lint rules `export default createRule(...)`, which means they all +implicitly reference the `TSESLint.Rule` type for the export. + +TS wants to transpile each rule file to this `.d.ts` file: + +```ts +import type { TSESLint } from '@typescript-eslint/utils'; +declare const _default: TSESLint.RuleModule; +export default _default; +``` + +Because we don't import `TSESLint` in most files, it means that TS would have to +insert a new import during the declaration emit to make this work. +However TS wants to avoid adding new imports to the file because a new module +could have type side-effects (like global augmentation) which could cause weird +type side-effects in the decl file that wouldn't exist in source TS file. + +So TS errors on most of our rules with the following error: +``` +The inferred type of 'default' cannot be named without a reference to +'../../../../node_modules/@typescript-eslint/utils/src/ts-eslint/Rule'. +This is likely not portable. A type annotation is necessary. ts(2742) +``` +*/ + +import type { + RuleModuleWithMetaDocs, + RuleRecommendation, + RuleRecommendationAcrossConfigs, +} from '@typescript-eslint/utils/ts-eslint'; + +interface ESLintPluginDocs { + /** + * Does the rule extend (or is it based off of) an ESLint code rule? + * Alternately accepts the name of the base rule, in case the rule has been renamed. + * This is only used for documentation purposes. + */ + extendsBaseRule?: boolean | string; + + /** + * If a string config name, which starting config this rule is enabled in. + * If an object, which settings it has enabled in each of those configs. + */ + recommended?: RuleRecommendation | RuleRecommendationAcrossConfigs; + + /** + * Does the rule require us to create a full TypeScript Program in order for it + * to type-check code. This is only used for documentation purposes. + */ + requiresTypeChecking?: boolean; +} + +type ESLintPluginRuleModule = RuleModuleWithMetaDocs< + string, + readonly unknown[], + ESLintPluginDocs +>; + +type TypeScriptESLintRules = Record< + string, + RuleModuleWithMetaDocs +>; + +declare const rules: TypeScriptESLintRules; + +declare namespace rules { + export type { + ESLintPluginDocs, + ESLintPluginRuleModule, + TypeScriptESLintRules, + }; +} + +export = rules; diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/LICENSE b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/LICENSE new file mode 100644 index 00000000..4de8acd8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/LICENSE @@ -0,0 +1,24 @@ +BSD 2-Clause License + +TypeScript ESLint Parser +Copyright JS Foundation and other contributors, https://js.foundation + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/README.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/README.md new file mode 100644 index 00000000..56ee655a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/parser` + +> An ESLint parser which leverages
TypeScript ESTree to allow for ESLint to lint TypeScript source code. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser) + +👉 See **https://typescript-eslint.io/packages/parser** for documentation on this package. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts new file mode 100644 index 00000000..938e645c --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts @@ -0,0 +1,8 @@ +export { parse, parseForESLint, type ParserOptions } from './parser'; +export { clearCaches, createProgram, type ParserServices, type ParserServicesWithoutTypeInformation, type ParserServicesWithTypeInformation, withoutProjectParserOptions, } from '@typescript-eslint/typescript-estree'; +export declare const version: string; +export declare const meta: { + name: string; + version: string; +}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts.map new file mode 100644 index 00000000..124854e3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EACL,WAAW,EACX,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,2BAA2B,GAC5B,MAAM,sCAAsC,CAAC;AAI9C,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC;AAElE,eAAO,MAAM,IAAI;;;CAGhB,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js new file mode 100644 index 00000000..14cbb742 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.meta = exports.version = exports.withoutProjectParserOptions = exports.createProgram = exports.clearCaches = exports.parseForESLint = exports.parse = void 0; +var parser_1 = require("./parser"); +Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); +Object.defineProperty(exports, "parseForESLint", { enumerable: true, get: function () { return parser_1.parseForESLint; } }); +var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); +Object.defineProperty(exports, "clearCaches", { enumerable: true, get: function () { return typescript_estree_1.clearCaches; } }); +Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return typescript_estree_1.createProgram; } }); +Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return typescript_estree_1.withoutProjectParserOptions; } }); +// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder +// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access +exports.version = require('../package.json').version; +exports.meta = { + name: 'typescript-eslint/parser', + version: exports.version, +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js.map new file mode 100644 index 00000000..9ac1fb19 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAqE;AAA5D,+FAAA,KAAK,OAAA;AAAE,wGAAA,cAAc,OAAA;AAC9B,0EAO8C;AAN5C,gHAAA,WAAW,OAAA;AACX,kHAAA,aAAa,OAAA;AAIb,gIAAA,2BAA2B,OAAA;AAG7B,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;AAErD,QAAA,IAAI,GAAG;IAClB,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAP,eAAO;CACR,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts new file mode 100644 index 00000000..0e3293d1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts @@ -0,0 +1,24 @@ +import type { ScopeManager } from '@typescript-eslint/scope-manager'; +import type { ParserOptions, TSESTree } from '@typescript-eslint/types'; +import type { AST, ParserServices } from '@typescript-eslint/typescript-estree'; +import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; +import type * as ts from 'typescript'; +interface ESLintProgram extends AST<{ + comment: true; + tokens: true; +}> { + comments: TSESTree.Comment[]; + range: [number, number]; + tokens: TSESTree.Token[]; +} +interface ParseForESLintResult { + ast: ESLintProgram; + scopeManager: ScopeManager; + services: ParserServices; + visitorKeys: VisitorKeys; +} +declare function parse(code: string | ts.SourceFile, options?: ParserOptions): ParseForESLintResult['ast']; +declare function parseForESLint(code: string | ts.SourceFile, parserOptions?: ParserOptions | null): ParseForESLintResult; +export { parse, parseForESLint }; +export type { ParserOptions } from '@typescript-eslint/types'; +//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map new file mode 100644 index 00000000..fe9607ba --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAO,aAAa,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EACV,GAAG,EACH,cAAc,EAEf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAUtC,UAAU,aAAc,SAAQ,GAAG,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;IAClE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;CAC1B;AAED,UAAU,oBAAoB;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAgDD,iBAAS,KAAK,CACZ,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,KAAK,CAAC,CAE7B;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GACnC,oBAAoB,CA8FtB;AAED,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;AAEjC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js new file mode 100644 index 00000000..8b3466fc --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js @@ -0,0 +1,133 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parse = parse; +exports.parseForESLint = parseForESLint; +const scope_manager_1 = require("@typescript-eslint/scope-manager"); +const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); +const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); +const debug_1 = __importDefault(require("debug")); +const typescript_1 = require("typescript"); +const log = (0, debug_1.default)('typescript-eslint:parser:parser'); +function validateBoolean(value, fallback = false) { + if (typeof value !== 'boolean') { + return fallback; + } + return value; +} +const LIB_FILENAME_REGEX = /lib\.(.+)\.d\.[cm]?ts$/; +function getLib(compilerOptions) { + if (compilerOptions.lib) { + return compilerOptions.lib + .map(lib => LIB_FILENAME_REGEX.exec(lib.toLowerCase())?.[1]) + .filter((lib) => !!lib); + } + const target = compilerOptions.target ?? typescript_1.ScriptTarget.ES5; + // https://github.com/microsoft/TypeScript/blob/ae582a22ee1bb052e19b7c1bc4cac60509b574e0/src/compiler/utilitiesPublic.ts#L13-L36 + switch (target) { + case typescript_1.ScriptTarget.ES2015: + return ['es6']; + case typescript_1.ScriptTarget.ES2016: + return ['es2016.full']; + case typescript_1.ScriptTarget.ES2017: + return ['es2017.full']; + case typescript_1.ScriptTarget.ES2018: + return ['es2018.full']; + case typescript_1.ScriptTarget.ES2019: + return ['es2019.full']; + case typescript_1.ScriptTarget.ES2020: + return ['es2020.full']; + case typescript_1.ScriptTarget.ES2021: + return ['es2021.full']; + case typescript_1.ScriptTarget.ES2022: + return ['es2022.full']; + case typescript_1.ScriptTarget.ES2023: + return ['es2023.full']; + case typescript_1.ScriptTarget.ESNext: + return ['esnext.full']; + default: + return ['lib']; + } +} +function parse(code, options) { + return parseForESLint(code, options).ast; +} +function parseForESLint(code, parserOptions) { + if (!parserOptions || typeof parserOptions !== 'object') { + parserOptions = {}; + } + else { + parserOptions = { ...parserOptions }; + } + // https://eslint.org/docs/user-guide/configuring#specifying-parser-options + // if sourceType is not provided by default eslint expect that it will be set to "script" + if (parserOptions.sourceType !== 'module' && + parserOptions.sourceType !== 'script') { + parserOptions.sourceType = 'script'; + } + if (typeof parserOptions.ecmaFeatures !== 'object') { + parserOptions.ecmaFeatures = {}; + } + /** + * Allow the user to suppress the warning from typescript-estree if they are using an unsupported + * version of TypeScript + */ + const warnOnUnsupportedTypeScriptVersion = validateBoolean(parserOptions.warnOnUnsupportedTypeScriptVersion, true); + const tsestreeOptions = { + jsx: validateBoolean(parserOptions.ecmaFeatures.jsx), + ...(!warnOnUnsupportedTypeScriptVersion && { loggerFn: false }), + ...parserOptions, + // Override errorOnTypeScriptSyntacticAndSemanticIssues and set it to false to prevent use from user config + // https://github.com/typescript-eslint/typescript-eslint/issues/8681#issuecomment-2000411834 + errorOnTypeScriptSyntacticAndSemanticIssues: false, + // comment, loc, range, and tokens should always be set for ESLint usage + // https://github.com/typescript-eslint/typescript-eslint/issues/8347 + comment: true, + loc: true, + range: true, + tokens: true, + }; + const analyzeOptions = { + globalReturn: parserOptions.ecmaFeatures.globalReturn, + jsxFragmentName: parserOptions.jsxFragmentName, + jsxPragma: parserOptions.jsxPragma, + lib: parserOptions.lib, + sourceType: parserOptions.sourceType, + }; + const { ast, services } = (0, typescript_estree_1.parseAndGenerateServices)(code, tsestreeOptions); + ast.sourceType = parserOptions.sourceType; + if (services.program) { + // automatically apply the options configured for the program + const compilerOptions = services.program.getCompilerOptions(); + if (analyzeOptions.lib == null) { + analyzeOptions.lib = getLib(compilerOptions); + log('Resolved libs from program: %o', analyzeOptions.lib); + } + if (analyzeOptions.jsxPragma === undefined && + compilerOptions.jsxFactory != null) { + // in case the user has specified something like "preact.h" + const factory = compilerOptions.jsxFactory.split('.')[0].trim(); + analyzeOptions.jsxPragma = factory; + log('Resolved jsxPragma from program: %s', analyzeOptions.jsxPragma); + } + if (analyzeOptions.jsxFragmentName === undefined && + compilerOptions.jsxFragmentFactory != null) { + // in case the user has specified something like "preact.Fragment" + const fragFactory = compilerOptions.jsxFragmentFactory + .split('.')[0] + .trim(); + analyzeOptions.jsxFragmentName = fragFactory; + log('Resolved jsxFragmentName from program: %s', analyzeOptions.jsxFragmentName); + } + } + const scopeManager = (0, scope_manager_1.analyze)(ast, analyzeOptions); + // if not defined - override from the parserOptions + services.emitDecoratorMetadata ??= + parserOptions.emitDecoratorMetadata === true; + services.experimentalDecorators ??= + parserOptions.experimentalDecorators === true; + return { ast, scopeManager, services, visitorKeys: visitor_keys_1.visitorKeys }; +} +//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js.map new file mode 100644 index 00000000..092cbf13 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/dist/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AA0LS,sBAAK;AAAE,wCAAc;AA7K9B,oEAA2D;AAC3D,4EAAgF;AAChF,kEAA8D;AAC9D,kDAA0B;AAC1B,2CAA0C;AAE1C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,iCAAiC,CAAC,CAAC;AAerD,SAAS,eAAe,CACtB,KAA0B,EAC1B,QAAQ,GAAG,KAAK;IAEhB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,SAAS,MAAM,CAAC,eAAmC;IACjD,IAAI,eAAe,CAAC,GAAG,EAAE,CAAC;QACxB,OAAO,eAAe,CAAC,GAAG;aACvB,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;aAC3D,MAAM,CAAC,CAAC,GAAG,EAAc,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,IAAI,yBAAY,CAAC,GAAG,CAAC;IAC1D,gIAAgI;IAChI,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,yBAAY,CAAC,MAAM;YACtB,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,KAAK,yBAAY,CAAC,MAAM;YACtB,OAAO,CAAC,aAAa,CAAC,CAAC;QACzB,KAAK,yBAAY,CAAC,MAAM;YACtB,OAAO,CAAC,aAAa,CAAC,C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C3D,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAChE,cAAc,CAAC,SAAS,GAAG,OAAO,CAAC;YACnC,GAAG,CAAC,qCAAqC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACvE,CAAC;QACD,IACE,cAAc,CAAC,eAAe,KAAK,SAAS;YAC5C,eAAe,CAAC,kBAAkB,IAAI,IAAI,EAC1C,CAAC;YACD,kEAAkE;YAClE,MAAM,WAAW,GAAG,eAAe,CAAC,kBAAkB;iBACnD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;iBACb,IAAI,EAAE,CAAC;YACV,cAAc,CAAC,eAAe,GAAG,WAAW,CAAC;YAC7C,GAAG,CACD,2CAA2C,EAC3C,cAAc,CAAC,eAAe,CAC/B,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,uBAAO,EAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAElD,mDAAmD;IACnD,QAAQ,CAAC,qBAAqB;QAC5B,aAAa,CAAC,qBAAqB,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,sBAAsB;QAC7B,aAAa,CAAC,sBAAsB,KAAK,IAAI,CAAC;IAEhD,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAX,0BAAW,EAAE,CAAC;AACtD,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/package.json b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/package.json new file mode 100644 index 00000000..a0eab123 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/parser/package.json @@ -0,0 +1,87 @@ +{ + "name": "@typescript-eslint/parser", + "version": "8.15.0", + "description": "An ESLint custom parser which leverages TypeScript ESTree", + "files": [ + "dist", + "_ts4.3", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/parser" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io/packages/parser", + "license": "BSD-2-Clause", + "keywords": [ + "ast", + "ecmascript", + "javascript", + "typescript", + "parser", + "syntax", + "eslint" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, + "dependencies": { + "@typescript-eslint/scope-manager": "8.15.0", + "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/typescript-estree": "8.15.0", + "@typescript-eslint/visitor-keys": "8.15.0", + "debug": "^4.3.4" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@types/glob": "*", + "downlevel-dts": "*", + "glob": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/LICENSE b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/LICENSE new file mode 100644 index 00000000..dabd464a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 typescript-eslint and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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. diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/README.md b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/README.md new file mode 100644 index 00000000..c5d32797 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/README.md @@ -0,0 +1,12 @@ +# `@typescript-eslint/type-utils` + +> Type utilities for working with TypeScript within ESLint rules. + +[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) +[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) + +The utilities in this package are separated from `@typescript-eslint/utils` so that that package does not require a dependency on `typescript`. + +> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. + + diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts new file mode 100644 index 00000000..9cd34dde --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts @@ -0,0 +1,130 @@ +import type * as ts from 'typescript'; +/** + * Describes specific types or values declared in local files. + * See [TypeOrValueSpecifier > FileSpecifier](/packages/type-utils/type-or-value-specifier#filespecifier). + */ +export interface FileSpecifier { + from: 'file'; + /** + * Type or value name(s) to match on. + */ + name: string | string[]; + /** + * A specific file the types or values must be declared in. + */ + path?: string; +} +/** + * Describes specific types or values declared in TypeScript's built-in lib definitions. + * See [TypeOrValueSpecifier > LibSpecifier](/packages/type-utils/type-or-value-specifier#libspecifier). + */ +export interface LibSpecifier { + from: 'lib'; + /** + * Type or value name(s) to match on. + */ + name: string | string[]; +} +/** + * Describes specific types or values imported from packages. + * See [TypeOrValueSpecifier > PackageSpecifier](/packages/type-utils/type-or-value-specifier#packagespecifier). + */ +export interface PackageSpecifier { + from: 'package'; + /** + * Type or value name(s) to match on. + */ + name: string | string[]; + /** + * Package name the type or value must be declared in. + */ + package: string; +} +/** + * A centralized format for rule options to describe specific _types_ and/or _values_. + * See [TypeOrValueSpecifier](/packages/type-utils/type-or-value-specifier). + */ +export type TypeOrValueSpecifier = string | FileSpecifier | LibSpecifier | PackageSpecifier; +export declare const typeOrValueSpecifiersSchema: { + readonly items: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["file"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + readonly path: { + readonly type: "string"; + }; + }; + readonly required: ["from", "name"]; + readonly type: "object"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["lib"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + }; + readonly required: ["from", "name"]; + readonly type: "object"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["package"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + readonly package: { + readonly type: "string"; + }; + }; + readonly required: ["from", "name", "package"]; + readonly type: "object"; + }]; + }; + readonly type: "array"; +}; +export declare function typeMatchesSpecifier(type: ts.Type, specifier: TypeOrValueSpecifier, program: ts.Program): boolean; +export declare const typeMatchesSomeSpecifier: (type: ts.Type, specifiers: TypeOrValueSpecifier[] | undefined, program: ts.Program) => boolean; +//# sourceMappingURL=TypeOrValueSpecifier.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map new file mode 100644 index 00000000..2a0a12a5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeOrValueSpecifier.d.ts","sourceRoot":"","sources":["../src/TypeOrValueSpecifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAStC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,aAAa,GACb,YAAY,GACZ,gBAAgB,CAAC;AAErB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FR,CAAC;AAEjC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CA4BT;AAED,eAAO,MAAM,wBAAwB,SAC7B,EAAE,CAAC,IAAI,cACD,oBAAoB,EAAE,uBACzB,EAAE,CAAC,OAAO,KAClB,OAC2E,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js new file mode 100644 index 00000000..b373535a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js @@ -0,0 +1,151 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typeMatchesSomeSpecifier = exports.typeOrValueSpecifiersSchema = void 0; +exports.typeMatchesSpecifier = typeMatchesSpecifier; +const tsutils = __importStar(require("ts-api-utils")); +const specifierNameMatches_1 = require("./typeOrValueSpecifiers/specifierNameMatches"); +const typeDeclaredInFile_1 = require("./typeOrValueSpecifiers/typeDeclaredInFile"); +const typeDeclaredInLib_1 = require("./typeOrValueSpecifiers/typeDeclaredInLib"); +const typeDeclaredInPackageDeclarationFile_1 = require("./typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile"); +exports.typeOrValueSpecifiersSchema = { + items: { + oneOf: [ + { + type: 'string', + }, + { + additionalProperties: false, + properties: { + from: { + enum: ['file'], + type: 'string', + }, + name: { + oneOf: [ + { + type: 'string', + }, + { + items: { + type: 'string', + }, + minItems: 1, + type: 'array', + uniqueItems: true, + }, + ], + }, + path: { + type: 'string', + }, + }, + required: ['from', 'name'], + type: 'object', + }, + { + additionalProperties: false, + properties: { + from: { + enum: ['lib'], + type: 'string', + }, + name: { + oneOf: [ + { + type: 'string', + }, + { + items: { + type: 'string', + }, + minItems: 1, + type: 'array', + uniqueItems: true, + }, + ], + }, + }, + required: ['from', 'name'], + type: 'object', + }, + { + additionalProperties: false, + properties: { + from: { + enum: ['package'], + type: 'string', + }, + name: { + oneOf: [ + { + type: 'string', + }, + { + items: { + type: 'string', + }, + minItems: 1, + type: 'array', + uniqueItems: true, + }, + ], + }, + package: { + type: 'string', + }, + }, + required: ['from', 'name', 'package'], + type: 'object', + }, + ], + }, + type: 'array', +}; +function typeMatchesSpecifier(type, specifier, program) { + if (tsutils.isIntrinsicErrorType(type)) { + return false; + } + if (typeof specifier === 'string') { + return (0, specifierNameMatches_1.specifierNameMatches)(type, specifier); + } + if (!(0, specifierNameMatches_1.specifierNameMatches)(type, specifier.name)) { + return false; + } + const symbol = type.getSymbol() ?? type.aliasSymbol; + const declarations = symbol?.getDeclarations() ?? []; + const declarationFiles = declarations.map(declaration => declaration.getSourceFile()); + switch (specifier.from) { + case 'file': + return (0, typeDeclaredInFile_1.typeDeclaredInFile)(specifier.path, declarationFiles, program); + case 'lib': + return (0, typeDeclaredInLib_1.typeDeclaredInLib)(declarationFiles, program); + case 'package': + return (0, typeDeclaredInPackageDeclarationFile_1.typeDeclaredInPackageDeclarationFile)(specifier.package, declarations, declarationFiles, program); + } +} +const typeMatchesSomeSpecifier = (type, specifiers = [], program) => specifiers.some(specifier => typeMatchesSpecifier(type, specifier, program)); +exports.typeMatchesSomeSpecifier = typeMatchesSomeSpecifier; +//# sourceMappingURL=TypeOrValueSpecifier.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map new file mode 100644 index 00000000..af99bc18 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypeOrValueSpecifier.js","sourceRoot":"","sources":["../src/TypeOrValueSpecifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoKA,oDAgCC;AAjMD,sDAAwC;AAExC,uFAAoF;AACpF,mFAAgF;AAChF,iFAA8E;AAC9E,uHAAo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AgB,EAAE,OAAO,CAAC,CAAC;QACtD,KAAK,SAAS;YACZ,OAAO,IAAA,2EAAoC,EACzC,SAAS,CAAC,OAAO,EACjB,YAAY,EACZ,gBAAgB,EAChB,OAAO,CACR,CAAC;IACN,CAAC;AACH,CAAC;AAEM,MAAM,wBAAwB,GAAG,CACtC,IAAa,EACb,aAAqC,EAAE,EACvC,OAAmB,EACV,EAAE,CACX,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AALlE,QAAA,wBAAwB,4BAK0C"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts new file mode 100644 index 00000000..4f398405 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts @@ -0,0 +1,54 @@ +import * as ts from 'typescript'; +/** + * @example + * ```ts + * class DerivedClass extends Promise {} + * DerivedClass.reject + * // ^ PromiseLike + * ``` + */ +export declare function isPromiseLike(program: ts.Program, type: ts.Type): boolean; +/** + * @example + * ```ts + * const value = Promise + * value.reject + * // ^ PromiseConstructorLike + * ``` + */ +export declare function isPromiseConstructorLike(program: ts.Program, type: ts.Type): boolean; +/** + * @example + * ```ts + * class Foo extends Error {} + * new Foo() + * // ^ ErrorLike + * ``` + */ +export declare function isErrorLike(program: ts.Program, type: ts.Type): boolean; +/** + * @example + * ```ts + * type T = Readonly + * // ^ ReadonlyErrorLike + * ``` + */ +export declare function isReadonlyErrorLike(program: ts.Program, type: ts.Type): boolean; +/** + * @example + * ```ts + * type T = Readonly<{ foo: 'bar' }> + * // ^ ReadonlyTypeLike + * ``` + */ +export declare function isReadonlyTypeLike(program: ts.Program, type: ts.Type, predicate?: (subType: { + aliasSymbol: ts.Symbol; + aliasTypeArguments: readonly ts.Type[]; +} & ts.Type) => boolean): boolean; +export declare function isBuiltinTypeAliasLike(program: ts.Program, type: ts.Type, predicate: (subType: { + aliasSymbol: ts.Symbol; + aliasTypeArguments: readonly ts.Type[]; +} & ts.Type) => boolean): boolean; +export declare function isBuiltinSymbolLike(program: ts.Program, type: ts.Type, symbolName: string | string[]): boolean; +export declare function isBuiltinSymbolLikeRecurser(program: ts.Program, type: ts.Type, predicate: (subType: ts.Type) => boolean | null): boolean; +//# sourceMappingURL=builtinSymbolLikes.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map new file mode 100644 index 00000000..3db2a702 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"builtinSymbolLikes.d.ts","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEzE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAET;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAQT;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,CAAC,EAAE,CACV,OAAO,EAAE;IACP,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC;IACvB,kBAAkB,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,GAAG,EAAE,CAAC,IAAI,KACR,OAAO,GACX,OAAO,CAMT;AACD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CACT,OAAO,EAAE;IACP,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC;IACvB,kBAAkB,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,GAAG,EAAE,CAAC,IAAI,KACR,OAAO,GACX,OAAO,CAsBT;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAC5B,OAAO,CAoBT;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,GAAG,IAAI,GAC9C,OAAO,CAwCT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js new file mode 100644 index 00000000..799eaf1f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js @@ -0,0 +1,156 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isPromiseLike = isPromiseLike; +exports.isPromiseConstructorLike = isPromiseConstructorLike; +exports.isErrorLike = isErrorLike; +exports.isReadonlyErrorLike = isReadonlyErrorLike; +exports.isReadonlyTypeLike = isReadonlyTypeLike; +exports.isBuiltinTypeAliasLike = isBuiltinTypeAliasLike; +exports.isBuiltinSymbolLike = isBuiltinSymbolLike; +exports.isBuiltinSymbolLikeRecurser = isBuiltinSymbolLikeRecurser; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const isSymbolFromDefaultLibrary_1 = require("./isSymbolFromDefaultLibrary"); +/** + * @example + * ```ts + * class DerivedClass extends Promise {} + * DerivedClass.reject + * // ^ PromiseLike + * ``` + */ +function isPromiseLike(program, type) { + return isBuiltinSymbolLike(program, type, 'Promise'); +} +/** + * @example + * ```ts + * const value = Promise + * value.reject + * // ^ PromiseConstructorLike + * ``` + */ +function isPromiseConstructorLike(program, type) { + return isBuiltinSymbolLike(program, type, 'PromiseConstructor'); +} +/** + * @example + * ```ts + * class Foo extends Error {} + * new Foo() + * // ^ ErrorLike + * ``` + */ +function isErrorLike(program, type) { + return isBuiltinSymbolLike(program, type, 'Error'); +} +/** + * @example + * ```ts + * type T = Readonly + * // ^ ReadonlyErrorLike + * ``` + */ +function isReadonlyErrorLike(program, type) { + return isReadonlyTypeLike(program, type, subtype => { + const [typeArgument] = subtype.aliasTypeArguments; + return (isErrorLike(program, typeArgument) || + isReadonlyErrorLike(program, typeArgument)); + }); +} +/** + * @example + * ```ts + * type T = Readonly<{ foo: 'bar' }> + * // ^ ReadonlyTypeLike + * ``` + */ +function isReadonlyTypeLike(program, type, predicate) { + return isBuiltinTypeAliasLike(program, type, subtype => { + return (subtype.aliasSymbol.getName() === 'Readonly' && !!predicate?.(subtype)); + }); +} +function isBuiltinTypeAliasLike(program, type, predicate) { + return isBuiltinSymbolLikeRecurser(program, type, subtype => { + const { aliasSymbol, aliasTypeArguments } = subtype; + if (!aliasSymbol || !aliasTypeArguments) { + return false; + } + if ((0, isSymbolFromDefaultLibrary_1.isSymbolFromDefaultLibrary)(program, aliasSymbol) && + predicate(subtype)) { + return true; + } + return null; + }); +} +function isBuiltinSymbolLike(program, type, symbolName) { + return isBuiltinSymbolLikeRecurser(program, type, subType => { + const symbol = subType.getSymbol(); + if (!symbol) { + return false; + } + const actualSymbolName = symbol.getName(); + if ((Array.isArray(symbolName) + ? symbolName.some(name => actualSymbolName === name) + : actualSymbolName === symbolName) && + (0, isSymbolFromDefaultLibrary_1.isSymbolFromDefaultLibrary)(program, symbol)) { + return true; + } + return null; + }); +} +function isBuiltinSymbolLikeRecurser(program, type, predicate) { + if (type.isIntersection()) { + return type.types.some(t => isBuiltinSymbolLikeRecurser(program, t, predicate)); + } + if (type.isUnion()) { + return type.types.every(t => isBuiltinSymbolLikeRecurser(program, t, predicate)); + } + // https://github.com/JoshuaKGoldberg/ts-api-utils/issues/382 + if (tsutils.isTypeParameter(type)) { + const t = type.getConstraint(); + if (t) { + return isBuiltinSymbolLikeRecurser(program, t, predicate); + } + return false; + } + const predicateResult = predicate(type); + if (typeof predicateResult === 'boolean') { + return predicateResult; + } + const symbol = type.getSymbol(); + if (symbol && + symbol.flags & (ts.SymbolFlags.Class | ts.SymbolFlags.Interface)) { + const checker = program.getTypeChecker(); + for (const baseType of checker.getBaseTypes(type)) { + if (isBuiltinSymbolLikeRecurser(program, baseType, predicate)) { + return true; + } + } + } + return false; +} +//# sourceMappingURL=builtinSymbolLikes.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map new file mode 100644 index 00000000..74be617b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"builtinSymbolLikes.js","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAaA,sCAEC;AAUD,4DAKC;AAUD,kCAEC;AASD,kDAWC;AASD,gDAeC;AACD,wDA+BC;AAED,kDAwBC;AAED,kEA4CC;AA9LD,sDAAwC;AACxC,+CAAiC;AAEjC,6EAA0E;AAE1E;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,OAAmB,EAAE,IAAa;IAC9D,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,wBAAwB,CACtC,OAAmB,EACnB,IAAa;IAEb,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,OAAmB,EAAE,IAAa;IAC5D,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,OAAmB,EACnB,IAAa;IAE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CAAC,CAAC;IACxC,IAAI,OAAO,eAAe,KAAK,SAAS,EAAE,CAAC;QACzC,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IACE,MAAM;QACN,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,EAChE,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QACzC,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,IAAwB,CAAC,EAAE,CAAC;YACtE,IAAI,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;gBAC9D,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts new file mode 100644 index 00000000..d40e2047 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts @@ -0,0 +1,10 @@ +import * as ts from 'typescript'; +/** + * @param type Type being checked by name. + * @param allowAny Whether to consider `any` and `unknown` to match. + * @param allowedNames Symbol names checking on the type. + * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. + * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). + */ +export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set, matchAnyInstead?: boolean): boolean; +//# sourceMappingURL=containsAllTypesByName.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map new file mode 100644 index 00000000..d043e638 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"containsAllTypesByName.d.ts","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,eAAe,UAAQ,GACtB,OAAO,CA+BT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js new file mode 100644 index 00000000..fef4efd7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js @@ -0,0 +1,60 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.containsAllTypesByName = containsAllTypesByName; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const typeFlagUtils_1 = require("./typeFlagUtils"); +/** + * @param type Type being checked by name. + * @param allowAny Whether to consider `any` and `unknown` to match. + * @param allowedNames Symbol names checking on the type. + * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. + * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). + */ +function containsAllTypesByName(type, allowAny, allowedNames, matchAnyInstead = false) { + if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { + return !allowAny; + } + if (tsutils.isTypeReference(type)) { + type = type.target; + } + const symbol = type.getSymbol(); + if (symbol && allowedNames.has(symbol.name)) { + return true; + } + const predicate = (t) => containsAllTypesByName(t, allowAny, allowedNames, matchAnyInstead); + if (tsutils.isUnionOrIntersectionType(type)) { + return matchAnyInstead + ? type.types.some(predicate) + : type.types.every(predicate); + } + const bases = type.getBaseTypes(); + return (bases !== undefined && + (matchAnyInstead + ? bases.some(predicate) + : bases.length > 0 && bases.every(predicate))); +} +//# sourceMappingURL=containsAllTypesByName.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map new file mode 100644 index 00000000..ec246df9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map @@ -0,0 +1 @@ +{"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wDAoCC;AAhDD,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD;;;;;;GAMG;AACH,SA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strainedTypeAtLocation.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts new file mode 100644 index 00000000..88c2d48d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts @@ -0,0 +1,7 @@ +import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree'; +import type * as ts from 'typescript'; +/** + * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. + */ +export declare function getConstrainedTypeAtLocation(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Type; +//# sourceMappingURL=getConstrainedTypeAtLocation.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map new file mode 100644 index 00000000..57b85997 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getConstrainedTypeAtLocation.d.ts","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,QAAQ,EACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,iCAAiC,EAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,EAAE,CAAC,IAAI,CAOT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js new file mode 100644 index 00000000..2bb33280 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getConstrainedTypeAtLocation = getConstrainedTypeAtLocation; +/** + * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. + */ +function getConstrainedTypeAtLocation(services, node) { + const nodeType = services.getTypeAtLocation(node); + const constrained = services.program + .getTypeChecker() + .getBaseConstraintOfType(nodeType); + return constrained ?? nodeType; +} +//# sourceMappingURL=getConstrainedTypeAtLocation.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map new file mode 100644 index 00000000..3080507b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getConstrainedTypeAtLocation.js","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":";;AASA,oEAUC;AAbD;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,QAA2C,EAC3C,IAAmB;IAEnB,MAAM,QAAQ,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO;SACjC,cAAc,EAAE;SAChB,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAErC,OAAO,WAAW,IAAI,QAAQ,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts new file mode 100644 index 00000000..cfd2c83a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts @@ -0,0 +1,8 @@ +import * as ts from 'typescript'; +/** + * Returns the contextual type of a given node. + * Contextual type is the type of the target the node is going into. + * i.e. the type of a called function's parameter, or the defined type of a variable declaration + */ +export declare function getContextualType(checker: ts.TypeChecker, node: ts.Expression): ts.Type | undefined; +//# sourceMappingURL=getContextualType.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map new file mode 100644 index 00000000..4f66d460 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getContextualType.d.ts","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,UAAU,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAwCrB"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js new file mode 100644 index 00000000..70bb3add --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js @@ -0,0 +1,67 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getContextualType = getContextualType; +const ts = __importStar(require("typescript")); +/** + * Returns the contextual type of a given node. + * Contextual type is the type of the target the node is going into. + * i.e. the type of a called function's parameter, or the defined type of a variable declaration + */ +function getContextualType(checker, node) { + const parent = node.parent; + if (ts.isCallExpression(parent) || ts.isNewExpression(parent)) { + if (node === parent.expression) { + // is the callee, so has no contextual type + return; + } + } + else if (ts.isVariableDeclaration(parent) || + ts.isPropertyDeclaration(parent) || + ts.isParameter(parent)) { + return parent.type ? checker.getTypeFromTypeNode(parent.type) : undefined; + } + else if (ts.isJsxExpression(parent)) { + return checker.getContextualType(parent); + } + else if (ts.isIdentifier(node) && + (ts.isPropertyAssignment(parent) || + ts.isShorthandPropertyAssignment(parent))) { + return checker.getContextualType(node); + } + else if (ts.isBinaryExpression(parent) && + parent.operatorToken.kind === ts.SyntaxKind.EqualsToken && + parent.right === node) { + // is RHS of assignment + return checker.getTypeAtLocation(parent.left); + } + else if (![ts.SyntaxKind.JsxExpression, ts.SyntaxKind.TemplateSpan].includes(parent.kind)) { + // parent is not something we know we can get the contextual type of + return; + } + // TODO - support return statement checking + return checker.getContextualType(node); +} +//# sourceMappingURL=getContextualType.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map new file mode 100644 index 00000000..1f789c0e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getContextualType.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CAAC,WAAW;QACvD,MAAM,CAAC,KAAK,KAAK,IAAI,EACrB,CAAC;QACD,uBAAuB;QACvB,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;SAAM,IACL,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD,CAAC;QACD,oEAAoE;QACpE,OAAO;IACT,CAAC;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts new file mode 100644 index 00000000..072056b3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts @@ -0,0 +1,7 @@ +import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree'; +import type * as ts from 'typescript'; +/** + * Gets the declaration for the given variable + */ +export declare function getDeclaration(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Declaration | null; +//# sourceMappingURL=getDeclaration.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map new file mode 100644 index 00000000..369214d8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getDeclaration.d.ts","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,QAAQ,EACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,iCAAiC,EAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,EAAE,CAAC,WAAW,GAAG,IAAI,CAOvB"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js new file mode 100644 index 00000000..43d60b08 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDeclaration = getDeclaration; +/** + * Gets the declaration for the given variable + */ +function getDeclaration(services, node) { + const symbol = services.getSymbolAtLocation(node); + if (!symbol) { + return null; + } + const declarations = symbol.getDeclarations(); + return declarations?.[0] ?? null; +} +//# sourceMappingURL=getDeclaration.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map new file mode 100644 index 00000000..6e1599f3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getDeclaration.js","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":";;AASA,wCAUC;AAbD;;GAEG;AACH,SAAgB,cAAc,CAC5B,QAA2C,EAC3C,IAAmB;IAEnB,MAAM,MAAM,GAAG,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,CAAC;IAC9C,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts new file mode 100644 index 00000000..2eb4a7cf --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts @@ -0,0 +1,6 @@ +import * as ts from 'typescript'; +/** + * Gets the source file for a given node + */ +export declare function getSourceFileOfNode(node: ts.Node): ts.SourceFile; +//# sourceMappingURL=getSourceFileOfNode.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map new file mode 100644 index 00000000..4b992bd8 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getSourceFileOfNode.d.ts","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,UAAU,CAKhE"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js new file mode 100644 index 00000000..bbb0fc6f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js @@ -0,0 +1,37 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSourceFileOfNode = getSourceFileOfNode; +const ts = __importStar(require("typescript")); +/** + * Gets the source file for a given node + */ +function getSourceFileOfNode(node) { + while (node.kind !== ts.SyntaxKind.SourceFile) { + node = node.parent; + } + return node; +} +//# sourceMappingURL=getSourceFileOfNode.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map new file mode 100644 index 00000000..ba485902 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getSourceFileOfNode.js","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kDAKC;AAVD,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAa;IAC/C,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,IAAqB,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts new file mode 100644 index 00000000..0d7b92ae --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts @@ -0,0 +1,8 @@ +import * as ts from 'typescript'; +/** + * Get the type name of a given type. + * @param typeChecker The context sensitive TypeScript TypeChecker. + * @param type The type to get the name of. + */ +export declare function getTypeName(typeChecker: ts.TypeChecker, type: ts.Type): string; +//# sourceMappingURL=getTypeName.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map new file mode 100644 index 00000000..a598b0fe --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getTypeName.d.ts","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,EAAE,CAAC,WAAW,EAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,MAAM,CAqDR"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js new file mode 100644 index 00000000..857e58d7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js @@ -0,0 +1,74 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getTypeName = getTypeName; +const ts = __importStar(require("typescript")); +/** + * Get the type name of a given type. + * @param typeChecker The context sensitive TypeScript TypeChecker. + * @param type The type to get the name of. + */ +function getTypeName(typeChecker, type) { + // It handles `string` and string literal types as string. + if ((type.flags & ts.TypeFlags.StringLike) !== 0) { + return 'string'; + } + // If the type is a type parameter which extends primitive string types, + // but it was not recognized as a string like. So check the constraint + // type of the type parameter. + if ((type.flags & ts.TypeFlags.TypeParameter) !== 0) { + // `type.getConstraint()` method doesn't return the constraint type of + // the type parameter for some reason. So this gets the constraint type + // via AST. + const symbol = type.getSymbol(); + const decls = symbol?.getDeclarations(); + const typeParamDecl = decls?.[0]; + if (typeParamDecl != null && + ts.isTypeParameterDeclaration(typeParamDecl) && + typeParamDecl.constraint != null) { + return getTypeName(typeChecker, typeChecker.getTypeFromTypeNode(typeParamDecl.constraint)); + } + } + // If the type is a union and all types in the union are string like, + // return `string`. For example: + // - `"a" | "b"` is string. + // - `string | string[]` is not string. + if (type.isUnion() && + type.types + .map(value => getTypeName(typeChecker, value)) + .every(t => t === 'string')) { + return 'string'; + } + // If the type is an intersection and a type in the intersection is string + // like, return `string`. For example: `string & {__htmlEscaped: void}` + if (type.isIntersection() && + type.types + .map(value => getTypeName(typeChecker, value)) + .some(t => t === 'string')) { + return 'string'; + } + return typeChecker.typeToString(type); +} +//# sourceMappingURL=getTypeName.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map new file mode 100644 index 00000000..ec5c5047 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getTypeName.js","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,kCAwDC;AA/DD,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,WAAW,CACzB,WAA2B,EAC3B,IAAa;IAEb,0DAA0D;IAC1D,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,wEAAwE;IACxE,sEAAsE;IACtE,8BAA8B;IAC9B,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACpD,sEAAsE;QACtE,uEAAuE;QACvE,WAAW;QACX,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,MAAM,EAAE,eAAe,EAAE,CAAC;QACxC,MAAM,aAAa,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QACjC,IACE,aAAa,IAAI,IAAI;YACrB,EAAE,CAAC,0BAA0B,CAAC,aAAa,CAAC;YAC5C,aAAa,CAAC,UAAU,IAAI,IAAI,EAChC,CAAC;YACD,OAAO,WAAW,CAChB,WAAW,EACX,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,UAAU,CAAC,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,qEAAqE;IACrE,gCAAgC;IAChC,2BAA2B;IAC3B,uCAAuC;IACvC,IACE,IAAI,CAAC,OAAO,EAAE;QACd,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC7B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,0EAA0E;IAC1E,uEAAuE;IACvE,IACE,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC5B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts new file mode 100644 index 00000000..6e083287 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts @@ -0,0 +1,17 @@ +export * from './builtinSymbolLikes'; +export * from './containsAllTypesByName'; +export * from './getConstrainedTypeAtLocation'; +export * from './getContextualType'; +export * from './getDeclaration'; +export * from './getSourceFileOfNode'; +export * from './getTypeName'; +export * from './isSymbolFromDefaultLibrary'; +export * from './isTypeReadonly'; +export * from './isUnsafeAssignment'; +export * from './predicates'; +export * from './propertyTypes'; +export * from './requiresQuoting'; +export * from './typeFlagUtils'; +export * from './TypeOrValueSpecifier'; +export { getDecorators, getModifiers, typescriptVersionIsAtLeast, } from '@typescript-eslint/typescript-estree'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map new file mode 100644 index 00000000..4597d40b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js new file mode 100644 index 00000000..28f5ba5b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js @@ -0,0 +1,37 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typescriptVersionIsAtLeast = exports.getModifiers = exports.getDecorators = void 0; +__exportStar(require("./builtinSymbolLikes"), exports); +__exportStar(require("./containsAllTypesByName"), exports); +__exportStar(require("./getConstrainedTypeAtLocation"), exports); +__exportStar(require("./getContextualType"), exports); +__exportStar(require("./getDeclaration"), exports); +__exportStar(require("./getSourceFileOfNode"), exports); +__exportStar(require("./getTypeName"), exports); +__exportStar(require("./isSymbolFromDefaultLibrary"), exports); +__exportStar(require("./isTypeReadonly"), exports); +__exportStar(require("./isUnsafeAssignment"), exports); +__exportStar(require("./predicates"), exports); +__exportStar(require("./propertyTypes"), exports); +__exportStar(require("./requiresQuoting"), exports); +__exportStar(require("./typeFlagUtils"), exports); +__exportStar(require("./TypeOrValueSpecifier"), exports); +var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); +Object.defineProperty(exports, "getDecorators", { enumerable: true, get: function () { return typescript_estree_1.getDecorators; } }); +Object.defineProperty(exports, "getModifiers", { enumerable: true, get: function () { return typescript_estree_1.getModifiers; } }); +Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return typescript_estree_1.typescriptVersionIsAtLeast; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js.map new file mode 100644 index 00000000..295a7175 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,iEAA+C;AAC/C,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,gDAA8B;AAC9B,+DAA6C;AAC7C,mDAAiC;AACjC,uDAAqC;AACrC,+CAA6B;AAC7B,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,yDAAuC;AACvC,0EAI8C;AAH5C,kHAAA,aAAa,OAAA;AACb,iHAAA,YAAY,OAAA;AACZ,+HAAA,0BAA0B,OAAA"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts new file mode 100644 index 00000000..e620443e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts @@ -0,0 +1,3 @@ +import type * as ts from 'typescript'; +export declare function isSymbolFromDefaultLibrary(program: ts.Program, symbol: ts.Symbol | undefined): boolean; +//# sourceMappingURL=isSymbolFromDefaultLibrary.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map new file mode 100644 index 00000000..9e4009e3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isSymbolFromDefaultLibrary.d.ts","sourceRoot":"","sources":["../src/isSymbolFromDefaultLibrary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,MAAM,EAAE,EAAE,CAAC,MAAM,GAAG,SAAS,GAC5B,OAAO,CAcT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js new file mode 100644 index 00000000..7a074105 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSymbolFromDefaultLibrary = isSymbolFromDefaultLibrary; +function isSymbolFromDefaultLibrary(program, symbol) { + if (!symbol) { + return false; + } + const declarations = symbol.getDeclarations() ?? []; + for (const declaration of declarations) { + const sourceFile = declaration.getSourceFile(); + if (program.isSourceFileDefaultLibrary(sourceFile)) { + return true; + } + } + return false; +} +//# sourceMappingURL=isSymbolFromDefaultLibrary.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map new file mode 100644 index 00000000..e754ef01 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isSymbolFromDefaultLibrary.js","sourceRoot":"","sources":["../src/isSymbolFromDefaultLibrary.ts"],"names":[],"mappings":";;AAEA,gEAiBC;AAjBD,SAAgB,0BAA0B,CACxC,OAAmB,EACnB,MAA6B;IAE7B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;IACpD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;QAC/C,IAAI,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts new file mode 100644 index 00000000..07734d37 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts @@ -0,0 +1,102 @@ +import * as ts from 'typescript'; +import type { TypeOrValueSpecifier } from './TypeOrValueSpecifier'; +export interface ReadonlynessOptions { + readonly allow?: TypeOrValueSpecifier[]; + readonly treatMethodsAsReadonly?: boolean; +} +export declare const readonlynessOptionsSchema: { + additionalProperties: false; + properties: { + allow: { + readonly items: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["file"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + readonly path: { + readonly type: "string"; + }; + }; + readonly required: ["from", "name"]; + readonly type: "object"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["lib"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + }; + readonly required: ["from", "name"]; + readonly type: "object"; + }, { + readonly additionalProperties: false; + readonly properties: { + readonly from: { + readonly enum: ["package"]; + readonly type: "string"; + }; + readonly name: { + readonly oneOf: [{ + readonly type: "string"; + }, { + readonly items: { + readonly type: "string"; + }; + readonly minItems: 1; + readonly type: "array"; + readonly uniqueItems: true; + }]; + }; + readonly package: { + readonly type: "string"; + }; + }; + readonly required: ["from", "name", "package"]; + readonly type: "object"; + }]; + }; + readonly type: "array"; + }; + treatMethodsAsReadonly: { + type: "boolean"; + }; + }; + type: "object"; +}; +export declare const readonlynessOptionsDefaults: ReadonlynessOptions; +/** + * Checks if the given type is readonly + */ +declare function isTypeReadonly(program: ts.Program, type: ts.Type, options?: ReadonlynessOptions): boolean; +export { isTypeReadonly }; +//# sourceMappingURL=isTypeReadonly.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map new file mode 100644 index 00000000..e182f678 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isTypeReadonly.d.ts","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAiBnE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACxC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASf,CAAC;AAExB,eAAO,MAAM,2BAA2B,EAAE,mBAGzC,CAAC;AAgSF;;GAEG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,GAAE,mBAAiD,GACzD,OAAO,CAKT;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js new file mode 100644 index 00000000..65e07cb7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js @@ -0,0 +1,223 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0; +exports.isTypeReadonly = isTypeReadonly; +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const propertyTypes_1 = require("./propertyTypes"); +const TypeOrValueSpecifier_1 = require("./TypeOrValueSpecifier"); +exports.readonlynessOptionsSchema = { + additionalProperties: false, + properties: { + allow: TypeOrValueSpecifier_1.typeOrValueSpecifiersSchema, + treatMethodsAsReadonly: { + type: 'boolean', + }, + }, + type: 'object', +}; +exports.readonlynessOptionsDefaults = { + allow: [], + treatMethodsAsReadonly: false, +}; +function hasSymbol(node) { + return Object.hasOwn(node, 'symbol'); +} +function isTypeReadonlyArrayOrTuple(program, type, options, seenTypes) { + const checker = program.getTypeChecker(); + function checkTypeArguments(arrayType) { + const typeArguments = checker.getTypeArguments(arrayType); + // this shouldn't happen in reality as: + // - tuples require at least 1 type argument + // - ReadonlyArray requires at least 1 type argument + /* istanbul ignore if */ if (typeArguments.length === 0) { + return 3 /* Readonlyness.Readonly */; + } + // validate the element types are also readonly + if (typeArguments.some(typeArg => isTypeReadonlyRecurser(program, typeArg, options, seenTypes) === + 2 /* Readonlyness.Mutable */)) { + return 2 /* Readonlyness.Mutable */; + } + return 3 /* Readonlyness.Readonly */; + } + if (checker.isArrayType(type)) { + const symbol = utils_1.ESLintUtils.nullThrows(type.getSymbol(), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type')); + const escapedName = symbol.getEscapedName(); + // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison + if (escapedName === 'Array') { + return 2 /* Readonlyness.Mutable */; + } + return checkTypeArguments(type); + } + if (checker.isTupleType(type)) { + if (!type.target.readonly) { + return 2 /* Readonlyness.Mutable */; + } + return checkTypeArguments(type); + } + return 1 /* Readonlyness.UnknownType */; +} +function isTypeReadonlyObject(program, type, options, seenTypes) { + const checker = program.getTypeChecker(); + function checkIndexSignature(kind) { + const indexInfo = checker.getIndexInfoOfType(type, kind); + if (indexInfo) { + if (!indexInfo.isReadonly) { + return 2 /* Readonlyness.Mutable */; + } + if (indexInfo.type === type || seenTypes.has(indexInfo.type)) { + return 3 /* Readonlyness.Readonly */; + } + return isTypeReadonlyRecurser(program, indexInfo.type, options, seenTypes); + } + return 1 /* Readonlyness.UnknownType */; + } + const properties = type.getProperties(); + if (properties.length) { + // ensure the properties are marked as readonly + for (const property of properties) { + if (options.treatMethodsAsReadonly) { + if (property.valueDeclaration !== undefined && + hasSymbol(property.valueDeclaration) && + tsutils.isSymbolFlagSet(property.valueDeclaration.symbol, ts.SymbolFlags.Method)) { + continue; + } + const declarations = property.getDeclarations(); + const lastDeclaration = declarations !== undefined && declarations.length > 0 + ? declarations[declarations.length - 1] + : undefined; + if (lastDeclaration !== undefined && + hasSymbol(lastDeclaration) && + tsutils.isSymbolFlagSet(lastDeclaration.symbol, ts.SymbolFlags.Method)) { + continue; + } + } + if (tsutils.isPropertyReadonlyInType(type, property.getEscapedName(), checker)) { + continue; + } + const name = ts.getNameOfDeclaration(property.valueDeclaration); + if (name && ts.isPrivateIdentifier(name)) { + continue; + } + return 2 /* Readonlyness.Mutable */; + } + // all properties were readonly + // now ensure that all of the values are readonly also. + // do this after checking property readonly-ness as a perf optimization, + // as we might be able to bail out early due to a mutable property before + // doing this deep, potentially expensive check. + for (const property of properties) { + const propertyType = utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type')); + // handle recursive types. + // we only need this simple check, because a mutable recursive type will break via the above prop readonly check + if (seenTypes.has(propertyType)) { + continue; + } + if (isTypeReadonlyRecurser(program, propertyType, options, seenTypes) === + 2 /* Readonlyness.Mutable */) { + return 2 /* Readonlyness.Mutable */; + } + } + } + const isStringIndexSigReadonly = checkIndexSignature(ts.IndexKind.String); + if (isStringIndexSigReadonly === 2 /* Readonlyness.Mutable */) { + return isStringIndexSigReadonly; + } + const isNumberIndexSigReadonly = checkIndexSignature(ts.IndexKind.Number); + if (isNumberIndexSigReadonly === 2 /* Readonlyness.Mutable */) { + return isNumberIndexSigReadonly; + } + return 3 /* Readonlyness.Readonly */; +} +// a helper function to ensure the seenTypes map is always passed down, except by the external caller +function isTypeReadonlyRecurser(program, type, options, seenTypes) { + const checker = program.getTypeChecker(); + seenTypes.add(type); + if ((0, TypeOrValueSpecifier_1.typeMatchesSomeSpecifier)(type, options.allow, program)) { + return 3 /* Readonlyness.Readonly */; + } + if (tsutils.isUnionType(type)) { + // all types in the union must be readonly + const result = tsutils + .unionTypeParts(type) + .every(t => seenTypes.has(t) || + isTypeReadonlyRecurser(program, t, options, seenTypes) === + 3 /* Readonlyness.Readonly */); + const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; + return readonlyness; + } + if (tsutils.isIntersectionType(type)) { + // Special case for handling arrays/tuples (as readonly arrays/tuples always have mutable methods). + if (type.types.some(t => checker.isArrayType(t) || checker.isTupleType(t))) { + const allReadonlyParts = type.types.every(t => seenTypes.has(t) || + isTypeReadonlyRecurser(program, t, options, seenTypes) === + 3 /* Readonlyness.Readonly */); + return allReadonlyParts ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; + } + // Normal case. + const isReadonlyObject = isTypeReadonlyObject(program, type, options, seenTypes); + if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { + return isReadonlyObject; + } + } + if (tsutils.isConditionalType(type)) { + const result = [type.root.node.trueType, type.root.node.falseType] + .map(checker.getTypeFromTypeNode) + .every(t => seenTypes.has(t) || + isTypeReadonlyRecurser(program, t, options, seenTypes) === + 3 /* Readonlyness.Readonly */); + const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; + return readonlyness; + } + // all non-object, non-intersection types are readonly. + // this should only be primitive types + if (!tsutils.isObjectType(type)) { + return 3 /* Readonlyness.Readonly */; + } + // pure function types are readonly + if (type.getCallSignatures().length > 0 && + type.getProperties().length === 0) { + return 3 /* Readonlyness.Readonly */; + } + const isReadonlyArray = isTypeReadonlyArrayOrTuple(program, type, options, seenTypes); + if (isReadonlyArray !== 1 /* Readonlyness.UnknownType */) { + return isReadonlyArray; + } + const isReadonlyObject = isTypeReadonlyObject(program, type, options, seenTypes); + /* istanbul ignore else */ if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { + return isReadonlyObject; + } + throw new Error('Unhandled type'); +} +/** + * Checks if the given type is readonly + */ +function isTypeReadonly(program, type, options = exports.readonlynessOptionsDefaults) { + return (isTypeReadonlyRecurser(program, type, options, new Set()) === + 3 /* Readonlyness.Readonly */); +} +//# sourceMappingURL=isTypeReadonly.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map new file mode 100644 index 00000000..b8771a40 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwVS,wCAAc;AAtVvB,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAIjC,mDAA0D;AAC1D,iEAGgC;AAgBnB,QAAA,yBAAyB,GAAG;IACvC,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE,kDAA2B;QAClC,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;IACD,IAAI,EAAE,QAAQ;CACO,CAAC;AAEX,QAAA,2BAA2B,GAAwB;IAC9D,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAmB,EACnB,IAAa,EACb,OAA4B,EAC5B,SAAuB;IAEvB,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,SAAS,kBAAkB,CAAC,SAA2B;QACrD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC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eAAe,CAAC;IACzB,CAAC;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAmB,EACnB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts new file mode 100644 index 00000000..de75dd47 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts @@ -0,0 +1,17 @@ +import type { TSESTree } from '@typescript-eslint/utils'; +import type * as ts from 'typescript'; +/** + * Does a simple check to see if there is an any being assigned to a non-any type. + * + * This also checks generic positions to ensure there's no unsafe sub-assignments. + * Note: in the case of generic positions, it makes the assumption that the two types are the same. + * + * @example See tests for examples + * + * @returns false if it's safe, or an object with the two types if it's unsafe + */ +export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): { + receiver: ts.Type; + sender: ts.Type; +} | false; +//# sourceMappingURL=isUnsafeAssignment.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map new file mode 100644 index 00000000..c8a41f1a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnsafeAssignment.d.ts","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAOtC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,IAAI,EACjB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAC/B;IAAE,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC;IAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAA;CAAE,GAAG,KAAK,CAQhD"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js new file mode 100644 index 00000000..629798d9 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js @@ -0,0 +1,105 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isUnsafeAssignment = isUnsafeAssignment; +const utils_1 = require("@typescript-eslint/utils"); +const tsutils = __importStar(require("ts-api-utils")); +const predicates_1 = require("./predicates"); +/** + * Does a simple check to see if there is an any being assigned to a non-any type. + * + * This also checks generic positions to ensure there's no unsafe sub-assignments. + * Note: in the case of generic positions, it makes the assumption that the two types are the same. + * + * @example See tests for examples + * + * @returns false if it's safe, or an object with the two types if it's unsafe + */ +function isUnsafeAssignment(type, receiver, checker, senderNode) { + return isUnsafeAssignmentWorker(type, receiver, checker, senderNode, new Map()); +} +function isUnsafeAssignmentWorker(type, receiver, checker, senderNode, visited) { + if ((0, predicates_1.isTypeAnyType)(type)) { + // Allow assignment of any ==> unknown. + if ((0, predicates_1.isTypeUnknownType)(receiver)) { + return false; + } + if (!(0, predicates_1.isTypeAnyType)(receiver)) { + return { receiver, sender: type }; + } + } + const typeAlreadyVisited = visited.get(type); + if (typeAlreadyVisited) { + if (typeAlreadyVisited.has(receiver)) { + return false; + } + typeAlreadyVisited.add(receiver); + } + else { + visited.set(type, new Set([receiver])); + } + if (tsutils.isTypeReference(type) && tsutils.isTypeReference(receiver)) { + // TODO - figure out how to handle cases like this, + // where the types are assignable, but not the same type + /* + function foo(): ReadonlySet { return new Set(); } + + // and + + type Test = { prop: T } + type Test2 = { prop: string } + declare const a: Test; + const b: Test2 = a; + */ + if (type.target !== receiver.target) { + // if the type references are different, assume safe, as we won't know how to compare the two types + // the generic positions might not be equivalent for both types + return false; + } + if (senderNode?.type === utils_1.AST_NODE_TYPES.NewExpression && + senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier && + senderNode.callee.name === 'Map' && + senderNode.arguments.length === 0 && + senderNode.typeArguments == null) { + // special case to handle `new Map()` + // unfortunately Map's default empty constructor is typed to return `Map` :( + // https://github.com/typescript-eslint/typescript-eslint/issues/2109#issuecomment-634144396 + return false; + } + const typeArguments = type.typeArguments ?? []; + const receiverTypeArguments = receiver.typeArguments ?? []; + for (let i = 0; i < typeArguments.length; i += 1) { + const arg = typeArguments[i]; + const receiverArg = receiverTypeArguments[i]; + const unsafe = isUnsafeAssignmentWorker(arg, receiverArg, checker, senderNode, visited); + if (unsafe) { + return { receiver, sender: type }; + } + } + return false; + } + return false; +} +//# sourceMappingURL=isUnsafeAssignment.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map new file mode 100644 index 00000000..16f0c705 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,gDAaC;AA5BD,oDAA0D;AAC1D,sDAAwC;AAExC,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;IAEhC,OAAO,wBAAwB,CAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,UAAU,EACV,IAAI,GAAG,EAAE,CACV,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC,EAChC,OAAmC;IAEnC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACxB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,O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AAC;QAC/C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC;QAE3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACjD,MAAM,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,wBAAwB,CACrC,GAAG,EACH,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,CACR,CAAC;YACF,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts new file mode 100644 index 00000000..bc420c5a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts @@ -0,0 +1,49 @@ +import * as ts from 'typescript'; +/** + * Checks if the given type is (or accepts) nullable + */ +export declare function isNullableType(type: ts.Type): boolean; +/** + * Checks if the given type is either an array type, + * or a union made up solely of array types. + */ +export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean; +/** + * @returns true if the type is `never` + */ +export declare function isTypeNeverType(type: ts.Type): boolean; +/** + * @returns true if the type is `unknown` + */ +export declare function isTypeUnknownType(type: ts.Type): boolean; +export declare function isTypeReferenceType(type: ts.Type): type is ts.TypeReference; +/** + * @returns true if the type is `any` + */ +export declare function isTypeAnyType(type: ts.Type): boolean; +/** + * @returns true if the type is `any[]` + */ +export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; +/** + * @returns true if the type is `unknown[]` + */ +export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; +export declare enum AnyType { + Any = 0, + PromiseAny = 1, + AnyArray = 2, + Safe = 3 +} +/** + * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, `AnyType.PromiseAny` if the type is `Promise`, + * otherwise it returns `AnyType.Safe`. + */ +export declare function discriminateAnyType(type: ts.Type, checker: ts.TypeChecker, program: ts.Program, tsNode: ts.Node): AnyType; +/** + * @returns Whether a type is an instance of the parent type, including for the parent's base types. + */ +export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean; +export declare function isTypeBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; +export declare function isTypeTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; +//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map new file mode 100644 index 00000000..f5530046 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CASrD;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEtD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAExD;AAYD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,aAAa,CAM3E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAQpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAKT;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAKT;AAED,oBAAY,OAAO;IACjB,GAAG,IAAA;IACH,UAAU,IAAA;IACV,QAAQ,IAAA;IACR,IAAI,IAAA;CACL;AACD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,MAAM,EAAE,EAAE,CAAC,IAAI,GACd,OAAO,CAyBT;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,EAAE,CAAC,IAAI,GAClB,OAAO,CAqBT;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,iBAAiB,CAE9B;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,CAEhC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js new file mode 100644 index 00000000..26437ee3 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js @@ -0,0 +1,181 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnyType = void 0; +exports.isNullableType = isNullableType; +exports.isTypeArrayTypeOrUnionOfArrayTypes = isTypeArrayTypeOrUnionOfArrayTypes; +exports.isTypeNeverType = isTypeNeverType; +exports.isTypeUnknownType = isTypeUnknownType; +exports.isTypeReferenceType = isTypeReferenceType; +exports.isTypeAnyType = isTypeAnyType; +exports.isTypeAnyArrayType = isTypeAnyArrayType; +exports.isTypeUnknownArrayType = isTypeUnknownArrayType; +exports.discriminateAnyType = discriminateAnyType; +exports.typeIsOrHasBaseType = typeIsOrHasBaseType; +exports.isTypeBigIntLiteralType = isTypeBigIntLiteralType; +exports.isTypeTemplateLiteralType = isTypeTemplateLiteralType; +const debug_1 = __importDefault(require("debug")); +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const typeFlagUtils_1 = require("./typeFlagUtils"); +const log = (0, debug_1.default)('typescript-eslint:eslint-plugin:utils:types'); +/** + * Checks if the given type is (or accepts) nullable + */ +function isNullableType(type) { + return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | + ts.TypeFlags.Unknown | + ts.TypeFlags.Null | + ts.TypeFlags.Undefined | + ts.TypeFlags.Void); +} +/** + * Checks if the given type is either an array type, + * or a union made up solely of array types. + */ +function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) { + for (const t of tsutils.unionTypeParts(type)) { + if (!checker.isArrayType(t)) { + return false; + } + } + return true; +} +/** + * @returns true if the type is `never` + */ +function isTypeNeverType(type) { + return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Never); +} +/** + * @returns true if the type is `unknown` + */ +function isTypeUnknownType(type) { + return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Unknown); +} +// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5157 +const Nullable = ts.TypeFlags.Undefined | ts.TypeFlags.Null; +// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5187 +const ObjectFlagsType = ts.TypeFlags.Any | + Nullable | + ts.TypeFlags.Never | + ts.TypeFlags.Object | + ts.TypeFlags.Union | + ts.TypeFlags.Intersection; +function isTypeReferenceType(type) { + if ((type.flags & ObjectFlagsType) === 0) { + return false; + } + const objectTypeFlags = type.objectFlags; + return (objectTypeFlags & ts.ObjectFlags.Reference) !== 0; +} +/** + * @returns true if the type is `any` + */ +function isTypeAnyType(type) { + if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any)) { + if (type.intrinsicName === 'error') { + log('Found an "error" any type'); + } + return true; + } + return false; +} +/** + * @returns true if the type is `any[]` + */ +function isTypeAnyArrayType(type, checker) { + return (checker.isArrayType(type) && + isTypeAnyType(checker.getTypeArguments(type)[0])); +} +/** + * @returns true if the type is `unknown[]` + */ +function isTypeUnknownArrayType(type, checker) { + return (checker.isArrayType(type) && + isTypeUnknownType(checker.getTypeArguments(type)[0])); +} +var AnyType; +(function (AnyType) { + AnyType[AnyType["Any"] = 0] = "Any"; + AnyType[AnyType["PromiseAny"] = 1] = "PromiseAny"; + AnyType[AnyType["AnyArray"] = 2] = "AnyArray"; + AnyType[AnyType["Safe"] = 3] = "Safe"; +})(AnyType || (exports.AnyType = AnyType = {})); +/** + * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, `AnyType.PromiseAny` if the type is `Promise`, + * otherwise it returns `AnyType.Safe`. + */ +function discriminateAnyType(type, checker, program, tsNode) { + if (isTypeAnyType(type)) { + return AnyType.Any; + } + if (isTypeAnyArrayType(type, checker)) { + return AnyType.AnyArray; + } + for (const part of tsutils.typeParts(type)) { + if (tsutils.isThenableType(checker, tsNode, part)) { + const awaitedType = checker.getAwaitedType(part); + if (awaitedType) { + const awaitedAnyType = discriminateAnyType(awaitedType, checker, program, tsNode); + if (awaitedAnyType === AnyType.Any) { + return AnyType.PromiseAny; + } + } + } + } + return AnyType.Safe; +} +/** + * @returns Whether a type is an instance of the parent type, including for the parent's base types. + */ +function typeIsOrHasBaseType(type, parentType) { + const parentSymbol = parentType.getSymbol(); + if (!type.getSymbol() || !parentSymbol) { + return false; + } + const typeAndBaseTypes = [type]; + const ancestorTypes = type.getBaseTypes(); + if (ancestorTypes) { + typeAndBaseTypes.push(...ancestorTypes); + } + for (const baseType of typeAndBaseTypes) { + const baseSymbol = baseType.getSymbol(); + if (baseSymbol && baseSymbol.name === parentSymbol.name) { + return true; + } + } + return false; +} +function isTypeBigIntLiteralType(type) { + return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.BigIntLiteral); +} +function isTypeTemplateLiteralType(type) { + return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.TemplateLiteral); +} +//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map new file mode 100644 index 00000000..3682ad72 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map @@ -0,0 +1 @@ +{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCASC;AAMD,gFAWC;AAKD,0CAEC;AAKD,8CAEC;AAYD,kDAMC;AAKD,sCAQC;AAKD,gDAQC;AAKD,wDAQC;AAYD,kDA8BC;AAKD,kDAwBC;AAED,0DAIC;AAED,8DAIC;AA/LD,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAa;IAC1C,OAAO,IAAA,6BAAa,EAClB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;QACd,EAAE,CAAC,SAAS,CAAC,OAAO;QACpB,EAAE,CAAC,SAAS,CAAC,IAAI;QACjB,EAAE,CAAC,SAAS,CAAC,SAAS;QACtB,EAAE,CAAC,SAAS,CAAC,IAAI,CACpB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,kCAAkC,CAChD,IAAa,EACb,OAAuB;IAEvB,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;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KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;oBACnC,OAAO,OAAO,CAAC,UAAU,CAAC;gBAC5B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC,IAAI,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAa,EACb,UAAmB;IAEnB,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;IAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAE1C,IAAI,aAAa,EAAE,CAAC;QAClB,gBAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,CAAC;YACxD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts new file mode 100644 index 00000000..068d208e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts @@ -0,0 +1,4 @@ +import type * as ts from 'typescript'; +export declare function getTypeOfPropertyOfName(checker: ts.TypeChecker, type: ts.Type, name: string, escapedName?: ts.__String): ts.Type | undefined; +export declare function getTypeOfPropertyOfType(checker: ts.TypeChecker, type: ts.Type, property: ts.Symbol): ts.Type | undefined; +//# sourceMappingURL=propertyTypes.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map new file mode 100644 index 00000000..214952c1 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"propertyTypes.d.ts","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,EAAE,CAAC,QAAQ,GACxB,EAAE,CAAC,IAAI,GAAG,SAAS,CAerB;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,MAAM,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAOrB"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js new file mode 100644 index 00000000..042af450 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getTypeOfPropertyOfName = getTypeOfPropertyOfName; +exports.getTypeOfPropertyOfType = getTypeOfPropertyOfType; +function getTypeOfPropertyOfName(checker, type, name, escapedName) { + // Most names are directly usable in the checker and aren't different from escaped names + if (!escapedName || !isSymbol(escapedName)) { + return checker.getTypeOfPropertyOfType(type, name); + } + // Symbolic names may differ in their escaped name compared to their human-readable name + // https://github.com/typescript-eslint/typescript-eslint/issues/2143 + const escapedProperty = type + .getProperties() + .find(property => property.escapedName === escapedName); + return escapedProperty + ? checker.getDeclaredTypeOfSymbol(escapedProperty) + : undefined; +} +function getTypeOfPropertyOfType(checker, type, property) { + return getTypeOfPropertyOfName(checker, type, property.getName(), property.getEscapedName()); +} +// Symbolic names need to be specially handled because TS api is not sufficient for these cases. +// Source based on: +// https://github.com/microsoft/TypeScript/blob/0043abe982aae0d35f8df59f9715be6ada758ff7/src/compiler/utilities.ts#L3388-L3402 +function isSymbol(escapedName) { + return isKnownSymbol(escapedName) || isPrivateIdentifierSymbol(escapedName); +} +// case for escapedName: "__@foo@10", name: "__@foo@10" +function isKnownSymbol(escapedName) { + return escapedName.startsWith('__@'); +} +// case for escapedName: "__#1@#foo", name: "#foo" +function isPrivateIdentifierSymbol(escapedName) { + return escapedName.startsWith('__#'); +} +//# sourceMappingURL=propertyTypes.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map new file mode 100644 index 00000000..b2776a26 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"propertyTypes.js","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":";;AAEA,0DAoBC;AAED,0DAWC;AAjCD,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,IAAY,EACZ,WAAyB;IAEzB,wFAAwF;IACxF,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC3C,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,wFAAwF;IACxF,qEAAqE;IACrE,MAAM,eAAe,GAAG,IAAI;SACzB,aAAa,EAAE;SACf,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAE1D,OAAO,eAAe;QACpB,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,QAAmB;IAEnB,OAAO,uBAAuB,CAC5B,OAAO,EACP,IAAI,EACJ,QAAQ,CAAC,OAAO,EAAE,EAClB,QAAQ,CAAC,cAAc,EAAE,CAC1B,CAAC;AACJ,CAAC;AAED,gGAAgG;AAChG,mBAAmB;AACnB,8HAA8H;AAC9H,SAAS,QAAQ,CAAC,WAAmB;IACnC,OAAO,aAAa,CAAC,WAAW,CAAC,IAAI,yBAAyB,CAAC,WAAW,CAAC,CAAC;AAC9E,CAAC;AAED,uDAAuD;AACvD,SAAS,aAAa,CAAC,WAAmB;IACxC,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,kDAAkD;AAClD,SAAS,yBAAyB,CAAC,WAAmB;IACpD,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts new file mode 100644 index 00000000..3cd43b30 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts @@ -0,0 +1,5 @@ +import * as ts from 'typescript'; +/*** Indicates whether identifiers require the use of quotation marks when accessing property definitions and dot notation. */ +declare function requiresQuoting(name: string, target?: ts.ScriptTarget): boolean; +export { requiresQuoting }; +//# sourceMappingURL=requiresQuoting.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map new file mode 100644 index 00000000..118fb3c4 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"requiresQuoting.d.ts","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,8HAA8H;AAC9H,iBAAS,eAAe,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,EAAE,CAAC,YAAqC,GAC/C,OAAO,CAgBT;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js new file mode 100644 index 00000000..8040c043 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js @@ -0,0 +1,43 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.requiresQuoting = requiresQuoting; +const ts = __importStar(require("typescript")); +/*** Indicates whether identifiers require the use of quotation marks when accessing property definitions and dot notation. */ +function requiresQuoting(name, target = ts.ScriptTarget.ESNext) { + if (name.length === 0) { + return true; + } + if (!ts.isIdentifierStart(name.charCodeAt(0), target)) { + return true; + } + for (let i = 1; i < name.length; i += 1) { + if (!ts.isIdentifierPart(name.charCodeAt(i), target)) { + return true; + } + } + return false; +} +//# sourceMappingURL=requiresQuoting.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map new file mode 100644 index 00000000..e1af80c7 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map @@ -0,0 +1 @@ +{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBS,0CAAe;AAvBxB,+CAAiC;AACjC,8HAA8H;AAC9H,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts new file mode 100644 index 00000000..b2e4757f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts @@ -0,0 +1,18 @@ +import * as ts from 'typescript'; +/** + * Gets all of the type flags in a type, iterating through unions automatically. + */ +export declare function getTypeFlags(type: ts.Type): ts.TypeFlags; +/** + * @param flagsToCheck The composition of one or more `ts.TypeFlags`. + * @param isReceiver Whether the type is a receiving type (e.g. the type of a + * called function's parameter). + * @remarks + * Note that if the type is a union, this function will decompose it into the + * parts and get the flags of every union constituent. If this is not desired, + * use the `isTypeFlag` function from tsutils. + */ +export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags, +/** @deprecated This params is not used and will be removed in the future.*/ +isReceiver?: boolean): boolean; +//# sourceMappingURL=typeFlagUtils.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map new file mode 100644 index 00000000..44c0c484 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAOxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS;AAC1B,4EAA4E;AAC5E,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAST"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js new file mode 100644 index 00000000..fc581201 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js @@ -0,0 +1,61 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getTypeFlags = getTypeFlags; +exports.isTypeFlagSet = isTypeFlagSet; +const tsutils = __importStar(require("ts-api-utils")); +const ts = __importStar(require("typescript")); +const ANY_OR_UNKNOWN = ts.TypeFlags.Any | ts.TypeFlags.Unknown; +/** + * Gets all of the type flags in a type, iterating through unions automatically. + */ +function getTypeFlags(type) { + // @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags. + let flags = 0; + for (const t of tsutils.unionTypeParts(type)) { + flags |= t.flags; + } + return flags; +} +/** + * @param flagsToCheck The composition of one or more `ts.TypeFlags`. + * @param isReceiver Whether the type is a receiving type (e.g. the type of a + * called function's parameter). + * @remarks + * Note that if the type is a union, this function will decompose it into the + * parts and get the flags of every union constituent. If this is not desired, + * use the `isTypeFlag` function from tsutils. + */ +function isTypeFlagSet(type, flagsToCheck, +/** @deprecated This params is not used and will be removed in the future.*/ +isReceiver) { + const flags = getTypeFlags(type); + // eslint-disable-next-line @typescript-eslint/no-deprecated -- not used + if (isReceiver && flags & ANY_OR_UNKNOWN) { + return true; + } + return (flags & flagsToCheck) !== 0; +} +//# sourceMappingURL=typeFlagUtils.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map new file mode 100644 index 00000000..b4eb91fa --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oCAOC;AAWD,sCAcC;AAxCD,sDAAwC;AACxC,+CAAiC;AAEjC,MAAM,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;AAE/D;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B;AAC1B,4EAA4E;AAC5E,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,wEAAwE;IACxE,IAAI,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts new file mode 100644 index 00000000..66eefe47 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts @@ -0,0 +1,3 @@ +import type * as ts from 'typescript'; +export declare function specifierNameMatches(type: ts.Type, names: string | string[]): boolean; +//# sourceMappingURL=specifierNameMatches.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map new file mode 100644 index 00000000..b206a4d2 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"specifierNameMatches.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GACvB,OAAO,CAmBT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js new file mode 100644 index 00000000..0f28f956 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js @@ -0,0 +1,44 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.specifierNameMatches = specifierNameMatches; +const tsutils = __importStar(require("ts-api-utils")); +function specifierNameMatches(type, names) { + if (typeof names === 'string') { + names = [names]; + } + const symbol = type.aliasSymbol ?? type.getSymbol(); + const candidateNames = symbol + ? [symbol.escapedName, type.intrinsicName] + : [type.intrinsicName]; + if (names.some(item => candidateNames.includes(item))) { + return true; + } + if (tsutils.isIntersectionType(type)) { + return type.types.some(subType => specifierNameMatches(subType, names)); + } + return false; +} +//# sourceMappingURL=specifierNameMatches.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map new file mode 100644 index 00000000..af1e0734 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map @@ -0,0 +1 @@ +{"version":3,"file":"specifierNameMatches.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAsBC;AAxBD,sDAAwC;AAExC,SAAgB,oBAAoB,CAClC,IAAa,EACb,KAAwB;IAExB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACpD,MAAM,cAAc,GAAG,MAAM;QAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,WAAqB,EAAE,IAAI,CAAC,aAAa,CAAC;QACpD,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEzB,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts new file mode 100644 index 00000000..26166c7f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts @@ -0,0 +1,3 @@ +import type * as ts from 'typescript'; +export declare function typeDeclaredInFile(relativePath: string | undefined, declarationFiles: ts.SourceFile[], program: ts.Program): boolean; +//# sourceMappingURL=typeDeclaredInFile.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map new file mode 100644 index 00000000..3e278d80 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInFile.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAaT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js new file mode 100644 index 00000000..3e0433c5 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js @@ -0,0 +1,17 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typeDeclaredInFile = typeDeclaredInFile; +const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); +const node_path_1 = __importDefault(require("node:path")); +function typeDeclaredInFile(relativePath, declarationFiles, program) { + if (relativePath === undefined) { + const cwd = (0, typescript_estree_1.getCanonicalFileName)(program.getCurrentDirectory()); + return declarationFiles.some(declaration => (0, typescript_estree_1.getCanonicalFileName)(declaration.fileName).startsWith(cwd)); + } + const absolutePath = (0, typescript_estree_1.getCanonicalFileName)(node_path_1.default.join(program.getCurrentDirectory(), relativePath)); + return declarationFiles.some(declaration => (0, typescript_estree_1.getCanonicalFileName)(declaration.fileName) === absolutePath); +} +//# sourceMappingURL=typeDeclaredInFile.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map new file mode 100644 index 00000000..fbc77b4b --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInFile.ts"],"names":[],"mappings":";;;;;AAKA,gDAiBC;AApBD,4EAA4E;AAC5E,0DAA6B;AAE7B,SAAgB,kBAAkB,CAChC,YAAgC,EAChC,gBAAiC,EACjC,OAAmB;IAEnB,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,GAAG,GAAG,IAAA,wCAAoB,EAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;QAChE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CACzC,IAAA,wCAAoB,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAC3D,CAAC;IACJ,CAAC;IACD,MAAM,YAAY,GAAG,IAAA,wCAAoB,EACvC,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,YAAY,CAAC,CACvD,CAAC;IACF,OAAO,gBAAgB,CAAC,IAAI,CAC1B,WAAW,CAAC,EAAE,CAAC,IAAA,wCAAoB,EAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,YAAY,CAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts new file mode 100644 index 00000000..ed49ac54 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts @@ -0,0 +1,3 @@ +import type * as ts from 'typescript'; +export declare function typeDeclaredInLib(declarationFiles: ts.SourceFile[], program: ts.Program): boolean; +//# sourceMappingURL=typeDeclaredInLib.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map new file mode 100644 index 00000000..09f2826d --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInLib.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInLib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAUT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js new file mode 100644 index 00000000..9feb9d9e --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typeDeclaredInLib = typeDeclaredInLib; +function typeDeclaredInLib(declarationFiles, program) { + // Assertion: The type is not an error type. + // Intrinsic type (i.e. string, number, boolean, etc) - Treat it as if it's from lib. + if (declarationFiles.length === 0) { + return true; + } + return declarationFiles.some(declaration => program.isSourceFileDefaultLibrary(declaration)); +} +//# sourceMappingURL=typeDeclaredInLib.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map new file mode 100644 index 00000000..a5b0080a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInLib.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInLib.ts"],"names":[],"mappings":";;AAEA,8CAaC;AAbD,SAAgB,iBAAiB,CAC/B,gBAAiC,EACjC,OAAmB;IAEnB,4CAA4C;IAE5C,qFAAqF;IACrF,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CACzC,OAAO,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts new file mode 100644 index 00000000..9e19df40 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts @@ -0,0 +1,3 @@ +import * as ts from 'typescript'; +export declare function typeDeclaredInPackageDeclarationFile(packageName: string, declarations: ts.Node[], declarationFiles: ts.SourceFile[], program: ts.Program): boolean; +//# sourceMappingURL=typeDeclaredInPackageDeclarationFile.d.ts.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map new file mode 100644 index 00000000..1e797bd0 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInPackageDeclarationFile.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AA8CjC,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,EAAE,CAAC,IAAI,EAAE,EACvB,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAKT"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js new file mode 100644 index 00000000..0e821b49 --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js @@ -0,0 +1,58 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.typeDeclaredInPackageDeclarationFile = typeDeclaredInPackageDeclarationFile; +const ts = __importStar(require("typescript")); +function findParentModuleDeclaration(node) { + switch (node.kind) { + case ts.SyntaxKind.ModuleDeclaration: + return ts.isStringLiteral(node.name) + ? node + : undefined; + case ts.SyntaxKind.SourceFile: + return undefined; + default: + return findParentModuleDeclaration(node.parent); + } +} +function typeDeclaredInDeclareModule(packageName, declarations) { + return declarations.some(declaration => findParentModuleDeclaration(declaration)?.name.text === packageName); +} +function typeDeclaredInDeclarationFile(packageName, declarationFiles, program) { + // Handle scoped packages: if the name starts with @, remove it and replace / with __ + const typesPackageName = packageName.replace(/^@([^/]+)\//, '$1__'); + const matcher = new RegExp(`${packageName}|${typesPackageName}`); + return declarationFiles.some(declaration => { + const packageIdName = program.sourceFileToPackageName.get(declaration.path); + return (packageIdName !== undefined && + matcher.test(packageIdName) && + program.isSourceFileFromExternalLibrary(declaration)); + }); +} +function typeDeclaredInPackageDeclarationFile(packageName, declarations, declarationFiles, program) { + return (typeDeclaredInDeclareModule(packageName, declarations) || + typeDeclaredInDeclarationFile(packageName, declarationFiles, program)); +} +//# sourceMappingURL=typeDeclaredInPackageDeclarationFile.js.map \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map new file mode 100644 index 00000000..27eee78a --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typeDeclaredInPackageDeclarationFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,oFAUC;AAxDD,+CAAiC;AAEjC,SAAS,2BAA2B,CAClC,IAAa;IAEb,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB;YAClC,OAAO,EAAE,CAAC,eAAe,CAAE,IAA6B,CAAC,IAAI,CAAC;gBAC5D,CAAC,CAAE,IAA6B;gBAChC,CAAC,CAAC,SAAS,CAAC;QAChB,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;YAC3B,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAClC,WAAmB,EACnB,YAAuB;IAEvB,OAAO,YAAY,CAAC,IAAI,CACtB,WAAW,CAAC,EAAE,CACZ,2BAA2B,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW,CACtE,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CACpC,WAAmB,EACnB,gBAAiC,EACjC,OAAmB;IAEnB,qFAAqF;IACrF,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEpE,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,WAAW,IAAI,gBAAgB,EAAE,CAAC,CAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QACzC,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CACL,aAAa,KAAK,SAAS;YAC3B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;YAC3B,OAAO,CAAC,+BAA+B,CAAC,WAAW,CAAC,CACrD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,oCAAoC,CAClD,WAAmB,EACnB,YAAuB,EACvB,gBAAiC,EACjC,OAAmB;IAEnB,OAAO,CACL,2BAA2B,CAAC,WAAW,EAAE,YAAY,CAAC;QACtD,6BAA6B,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACtE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/package.json b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/package.json new file mode 100644 index 00000000..6bf9c43f --- /dev/null +++ b/node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils/package.json @@ -0,0 +1,83 @@ +{ + "name": "@typescript-eslint/type-utils", + "version": "8.15.0", + "description": "Type utilities for working with TypeScript + ESLint together", + "files": [ + "dist", + "_ts4.3", + "package.json", + "README.md", + "LICENSE" + ], + "type": "commonjs", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/typescript-eslint/typescript-eslint.git", + "directory": "packages/type-utils" + }, + "bugs": { + "url": "https://github.com/typescript-eslint/typescript-eslint/issues" + }, + "homepage": "https://typescript-eslint.io", + "license": "MIT", + "keywords": [ + "eslint", + "typescript", + "estree" + ], + "scripts": { + "build": "tsc -b tsconfig.build.json", + "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", + "clean": "tsc -b tsconfig.build.json --clean", + "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", + "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", + "lint": "npx nx lint", + "test": "jest --coverage", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@typescript-eslint/typescript-estree": "8.15.0", + "@typescript-eslint/utils": "8.15.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" + }, + "devDependencies": { + "@jest/types": "29.6.3", + "@typescript-eslint/parser": "8.15.0", + "ajv": "^6.12.6", + "downlevel-dts": "*", + "jest": "29.7.0", + "prettier": "^3.2.5", + "rimraf": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "typesVersions": { + "<4.7": { + "*": [ + "_ts4.3/*" + ] + } + } +} diff --git a/package-lock.json b/package-lock.json index 7f019758..f617d1eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,10 @@ "dependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.0", + "@eslint/compat": "^1.2.3", "@pulumi/pulumi": "^3.142.0", + "eslint-plugin-header": "^3.1.1", + "eslint-plugin-no-async-foreach": "^0.1.1", "upath": "^2.0.1" }, "devDependencies": { @@ -19,7 +22,7 @@ "@typescript-eslint/eslint-plugin": "^8.16.0", "@typescript-eslint/parser": "^8.17.0", "eslint": "^9.16.0", - "eslint-plugin-github": "^5.1.1", + "eslint-plugin-github": "^5.1.3", "eslint-plugin-jest": "^28.9.0", "jest": "^29.7.0", "prettier": "^3.4.1", @@ -582,7 +585,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", - "dev": true, "dependencies": { "eslint-visitor-keys": "^3.4.3" }, @@ -600,17 +602,31 @@ "version": "4.12.1", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/compat": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.3.tgz", + "integrity": "sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^9.10.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, "node_modules/@eslint/config-array": { "version": "0.19.0", "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.0.tgz", "integrity": "sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==", - "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.4", @@ -625,7 +641,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -636,7 +651,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -649,7 +663,6 @@ "version": "0.9.0", "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz", "integrity": "sha512-7ATR9F0e4W85D/0w7cU0SNj7qkAexMG+bAHEZOjo9akvGuhHE2m7umzWzfnpa0XAg5Kxc1BWmtPMV67jJ+9VUg==", - "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -659,7 +672,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", - "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.4", @@ -683,14 +695,12 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, "license": "Python-2.0" }, "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -701,7 +711,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, "license": "MIT", "dependencies": { "argparse": "^2.0.1" @@ -714,7 +723,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -727,7 +735,6 @@ "version": "9.16.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz", "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==", - "dev": true, "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -737,7 +744,6 @@ "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz", "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", - "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -747,7 +753,6 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", - "dev": true, "license": "Apache-2.0", "dependencies": { "levn": "^0.4.1" @@ -803,7 +808,6 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18.0" @@ -813,7 +817,6 @@ "version": "0.16.6", "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, "license": "Apache-2.0", "dependencies": { "@humanfs/core": "^0.19.1", @@ -827,7 +830,6 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18" @@ -841,7 +843,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, "engines": { "node": ">=12.22" }, @@ -854,7 +855,6 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", - "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.18" @@ -2325,7 +2325,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true, "license": "MIT" }, "node_modules/@types/google-protobuf": { @@ -2385,7 +2384,6 @@ "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, "license": "MIT" }, "node_modules/@types/json5": { @@ -3022,7 +3020,6 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" @@ -3055,7 +3052,6 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -3604,7 +3600,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, "engines": { "node": ">=6" } @@ -3642,7 +3637,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3805,8 +3799,7 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/convert-source-map": { "version": "2.0.0", @@ -3994,8 +3987,7 @@ "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { "version": "4.3.1", @@ -4283,7 +4275,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, "engines": { "node": ">=10" }, @@ -4295,7 +4286,6 @@ "version": "9.16.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz", "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==", - "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", @@ -4465,15 +4455,17 @@ } }, "node_modules/eslint-plugin-github": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-5.1.1.tgz", - "integrity": "sha512-+yE9caIn0v14AUE+vYksZy2xMnzHhsiiC9DBMbrZutb4nsHEZy+Uzimdfth7GAyxAh6VWCiivYG/ktH4LT+hnQ==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-5.1.3.tgz", + "integrity": "sha512-/0lyEqLLodXW3p+D9eYtmEp6e9DcJmV5FhnE9wNWV1bcqyShuZFXn5kOeJIvxSbFbdbrKiNO8zFiV/VXeSpRSw==", "dev": true, "dependencies": { "@eslint/compat": "^1.2.3", "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.14.0", "@github/browserslist-config": "^1.0.0", + "@typescript-eslint/eslint-plugin": "^8.0.0", + "@typescript-eslint/parser": "^8.0.0", "aria-query": "^5.3.0", "eslint-config-prettier": ">=8.0.0", "eslint-plugin-escompat": "^3.11.3", @@ -4498,23 +4490,6 @@ "eslint": "^8 || ^9" } }, - "node_modules/eslint-plugin-github/node_modules/@eslint/compat": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.3.tgz", - "integrity": "sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "peerDependencies": { - "eslint": "^9.10.0" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, "node_modules/eslint-plugin-github/node_modules/globals": { "version": "15.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-15.12.0.tgz", @@ -4527,6 +4502,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint-plugin-header": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz", + "integrity": "sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==", + "peerDependencies": { + "eslint": ">=7.7.0" + } + }, "node_modules/eslint-plugin-i18n-text": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", @@ -4697,6 +4680,17 @@ "node": "*" } }, + "node_modules/eslint-plugin-no-async-foreach": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-async-foreach/-/eslint-plugin-no-async-foreach-0.1.1.tgz", + "integrity": "sha512-SXiJCpXWyNijyT8F4K51oXwqnYv3G2JTHMhg+qE/BcWyj7E395pDScmHIP4NkeKi8B650BQBIMOLgMI47Mj26A==", + "dependencies": { + "requireindex": "~1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/eslint-plugin-no-only-tests": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.3.0.tgz", @@ -4749,7 +4743,6 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", @@ -4766,7 +4759,6 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -4778,7 +4770,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4788,7 +4779,6 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4801,7 +4791,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -4813,7 +4802,6 @@ "version": "10.3.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.14.0", @@ -4831,7 +4819,6 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4856,7 +4843,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, "dependencies": { "estraverse": "^5.1.0" }, @@ -4868,7 +4854,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" @@ -4881,7 +4866,6 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, "engines": { "node": ">=4.0" } @@ -4890,7 +4874,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -4950,8 +4933,7 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-diff": { "version": "1.3.0", @@ -4990,14 +4972,12 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fastq": { "version": "1.17.1", @@ -5034,7 +5014,6 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, "license": "MIT", "dependencies": { "flat-cache": "^4.0.0" @@ -5059,7 +5038,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -5075,7 +5053,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, "license": "MIT", "dependencies": { "flatted": "^3.2.9", @@ -5089,7 +5066,6 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", - "dev": true, "license": "ISC" }, "node_modules/for-each": { @@ -5289,7 +5265,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, "dependencies": { "is-glob": "^4.0.3" }, @@ -5301,7 +5276,6 @@ "version": "14.0.0", "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -5391,7 +5365,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, "engines": { "node": ">=8" } @@ -5540,7 +5513,6 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, "engines": { "node": ">= 4" } @@ -5560,7 +5532,6 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -5848,7 +5819,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -5874,7 +5844,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -6830,14 +6799,12 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" }, "node_modules/json-stringify-nice": { "version": "1.1.4", @@ -6940,7 +6907,6 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -6959,7 +6925,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -6984,8 +6949,7 @@ "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, "node_modules/lodash.snakecase": { "version": "4.1.1", @@ -7288,8 +7252,7 @@ "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" }, "node_modules/negotiator": { "version": "0.6.4", @@ -7593,7 +7556,6 @@ "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -7618,7 +7580,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, "dependencies": { "yocto-queue": "^0.1.0" }, @@ -7633,7 +7594,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, "dependencies": { "p-limit": "^3.0.2" }, @@ -7706,7 +7666,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, "dependencies": { "callsites": "^3.0.0" }, @@ -7755,7 +7714,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, "engines": { "node": ">=8" } @@ -7938,7 +7896,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, "engines": { "node": ">= 0.8.0" } @@ -8095,7 +8052,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, "engines": { "node": ">=6" } @@ -8220,6 +8176,14 @@ "node": ">=8.6.0" } }, + "node_modules/requireindex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz", + "integrity": "sha512-LBnkqsDE7BZKvqylbmn7lTIVdpx4K/QCduRATpO5R+wtPmky/a8pN1bO2D6wXppn1497AJF9mNjqAXr6bdl9jg==", + "engines": { + "node": ">=0.10.5" + } + }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -8266,7 +8230,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, "engines": { "node": ">=4" } @@ -8791,7 +8754,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, "engines": { "node": ">=8" }, @@ -8803,7 +8765,6 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9061,7 +9022,6 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, "dependencies": { "prelude-ls": "^1.2.1" }, @@ -9382,7 +9342,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -9490,7 +9449,6 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -9670,7 +9628,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, "engines": { "node": ">=10" }, diff --git a/package.json b/package.json index f9db1625..2650a05c 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,10 @@ "dependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.0", + "@eslint/compat": "^1.2.3", "@pulumi/pulumi": "^3.142.0", + "eslint-plugin-header": "^3.1.1", + "eslint-plugin-no-async-foreach": "^0.1.1", "upath": "^2.0.1" }, "devDependencies": { @@ -41,7 +44,7 @@ "@typescript-eslint/eslint-plugin": "^8.16.0", "@typescript-eslint/parser": "^8.17.0", "eslint": "^9.16.0", - "eslint-plugin-github": "^5.1.1", + "eslint-plugin-github": "^5.1.3", "eslint-plugin-jest": "^28.9.0", "jest": "^29.7.0", "prettier": "^3.4.1",

- -Bryan Mishkin's Avatar
-Bryan Mishkin -
-
- -Francesco Trotta's Avatar
-Francesco Trotta -
-
- -Yosuke Ota's Avatar
-Yosuke Ota +
+Josh Goldberg ✨'s Avatar
+Josh Goldberg ✨
@@ -284,21 +289,22 @@ Percy Ma + + ## Sponsors -The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://opencollective.com/eslint) to get your logo on our README and website. +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). - -

Platinum Sponsors

-

Chrome Frameworks Fund Automattic

Gold Sponsors

-

Salesforce Airbnb

Silver Sponsors

-

Liftoff American Express Workleap

Bronze Sponsors

-

ThemeIsle Anagram Solver Icons8 Discord Transloadit Ignition Nx HeroCoders

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

SERP Triumph JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

Cybozu Syntax WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

-## Technology Sponsors - -* Site search ([eslint.org](https://eslint.org)) is sponsored by [Algolia](https://www.algolia.com) -* Hosting for ([eslint.org](https://eslint.org)) is sponsored by [Netlify](https://www.netlify.com) -* Password management is sponsored by [1Password](https://www.1password.com) +[tidelift]: https://tidelift.com/funding/github/npm/eslint +[herodevs]: https://www.herodevs.com/support/eslint-nes?utm_source=ESLintWebsite&utm_medium=ESLintWebsite&utm_campaign=ESLintNES&utm_id=ESLintNES diff --git a/node_modules/eslint/bin/eslint.js b/node_modules/eslint/bin/eslint.js index eeb4647e..5ba2ff50 100755 --- a/node_modules/eslint/bin/eslint.js +++ b/node_modules/eslint/bin/eslint.js @@ -9,6 +9,11 @@ "use strict"; +const mod = require("node:module"); + +// to use V8's code cache to speed up instantiation time +mod.enableCompileCache?.(); + // must do this initialization *before* other requires in order to work if (process.argv.includes("--debug")) { require("debug").enable("eslint:*,-eslint:code-path,eslintrc:*"); @@ -64,7 +69,7 @@ function readStdin() { function getErrorMessage(error) { // Lazy loading because this is used only if an error happened. - const util = require("util"); + const util = require("node:util"); // Foolproof -- third-party module might throw non-object. if (typeof error !== "object" || error === null) { @@ -140,16 +145,17 @@ ${getErrorMessage(error)}`; if (process.argv.includes("--init")) { // `eslint --init` has been moved to `@eslint/create-config` - console.warn("You can also run this command directly using 'npm init @eslint/config'."); + console.warn("You can also run this command directly using 'npm init @eslint/config@latest'."); const spawn = require("cross-spawn"); - spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" }); + spawn.sync("npm", ["init", "@eslint/config@latest"], { encoding: "utf8", stdio: "inherit" }); return; } // Otherwise, call the CLI. - const exitCode = await require("../lib/cli").execute( + const cli = require("../lib/cli"); + const exitCode = await cli.execute( process.argv, process.argv.includes("--stdin") ? await readStdin() : null, true diff --git a/node_modules/eslint/conf/config-schema.js b/node_modules/eslint/conf/config-schema.js deleted file mode 100644 index b83f6578..00000000 --- a/node_modules/eslint/conf/config-schema.js +++ /dev/null @@ -1,93 +0,0 @@ -/* - * STOP!!! DO NOT MODIFY. - * - * This file is part of the ongoing work to move the eslintrc-style config - * system into the @eslint/eslintrc package. This file needs to remain - * unchanged in order for this work to proceed. - * - * If you think you need to change this file, please contact @nzakas first. - * - * Thanks in advance for your cooperation. - */ - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -"use strict"; - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -module.exports = configSchema; diff --git a/node_modules/eslint/conf/ecma-version.js b/node_modules/eslint/conf/ecma-version.js new file mode 100644 index 00000000..4e38c1d2 --- /dev/null +++ b/node_modules/eslint/conf/ecma-version.js @@ -0,0 +1,16 @@ +/** + * @fileoverview Configuration related to ECMAScript versions + * @author Milos Djermanovic + */ + +"use strict"; + +/** + * The latest ECMAScript version supported by ESLint. + * @type {number} year-based ECMAScript version + */ +const LATEST_ECMA_VERSION = 2025; + +module.exports = { + LATEST_ECMA_VERSION +}; diff --git a/node_modules/eslint/conf/globals.js b/node_modules/eslint/conf/globals.js index 58710e05..81df6bb2 100644 --- a/node_modules/eslint/conf/globals.js +++ b/node_modules/eslint/conf/globals.js @@ -70,6 +70,7 @@ const es2015 = { Int16Array: false, Int32Array: false, Int8Array: false, + Intl: false, Map: false, Promise: false, Proxy: false, @@ -132,6 +133,10 @@ const es2024 = { ...es2023 }; +const es2025 = { + ...es2024 +}; + //----------------------------------------------------------------------------- // Exports @@ -150,5 +155,6 @@ module.exports = { es2021, es2022, es2023, - es2024 + es2024, + es2025 }; diff --git a/node_modules/eslint/conf/rule-type-list.json b/node_modules/eslint/conf/rule-type-list.json index 6ca730f3..f48454bb 100644 --- a/node_modules/eslint/conf/rule-type-list.json +++ b/node_modules/eslint/conf/rule-type-list.json @@ -23,6 +23,8 @@ { "removed": "space-in-brackets", "replacedBy": ["object-curly-spacing", "array-bracket-spacing"] }, { "removed": "space-return-throw-case", "replacedBy": ["keyword-spacing"] }, { "removed": "space-unary-word-ops", "replacedBy": ["space-unary-ops"] }, - { "removed": "spaced-line-comment", "replacedBy": ["spaced-comment"] } + { "removed": "spaced-line-comment", "replacedBy": ["spaced-comment"] }, + { "removed": "valid-jsdoc", "replacedBy": [] }, + { "removed": "require-jsdoc", "replacedBy": [] } ] } diff --git a/node_modules/eslint/lib/api.js b/node_modules/eslint/lib/api.js index cbaac8fe..a134ecda 100644 --- a/node_modules/eslint/lib/api.js +++ b/node_modules/eslint/lib/api.js @@ -9,11 +9,11 @@ // Requirements //----------------------------------------------------------------------------- -const { ESLint, FlatESLint } = require("./eslint"); -const { shouldUseFlatConfig } = require("./eslint/flat-eslint"); +const { ESLint, shouldUseFlatConfig } = require("./eslint/eslint"); +const { LegacyESLint } = require("./eslint/legacy-eslint"); const { Linter } = require("./linter"); const { RuleTester } = require("./rule-tester"); -const { SourceCode } = require("./source-code"); +const { SourceCode } = require("./languages/js/source-code"); //----------------------------------------------------------------------------- // Functions @@ -23,22 +23,18 @@ const { SourceCode } = require("./source-code"); * Loads the correct ESLint constructor given the options. * @param {Object} [options] The options object * @param {boolean} [options.useFlatConfig] Whether or not to use a flat config - * @param {string} [options.cwd] The current working directory * @returns {Promise} The ESLint constructor */ -async function loadESLint({ useFlatConfig, cwd = process.cwd() } = {}) { +async function loadESLint({ useFlatConfig } = {}) { /* - * Note: The v9.x version of this function doesn't have a cwd option - * because it's not used. It's only used in the v8.x version of this - * function. + * Note: The v8.x version of this function also accepted a `cwd` option, but + * it is not used in this implementation so we silently ignore it. */ - const shouldESLintUseFlatConfig = typeof useFlatConfig === "boolean" - ? useFlatConfig - : await shouldUseFlatConfig({ cwd }); + const shouldESLintUseFlatConfig = useFlatConfig ?? (await shouldUseFlatConfig()); - return shouldESLintUseFlatConfig ? FlatESLint : ESLint; + return shouldESLintUseFlatConfig ? ESLint : LegacyESLint; } //----------------------------------------------------------------------------- diff --git a/node_modules/eslint/lib/cli-engine/cli-engine.js b/node_modules/eslint/lib/cli-engine/cli-engine.js index 49c8902c..43fcc73d 100644 --- a/node_modules/eslint/lib/cli-engine/cli-engine.js +++ b/node_modules/eslint/lib/cli-engine/cli-engine.js @@ -15,8 +15,8 @@ // Requirements //------------------------------------------------------------------------------ -const fs = require("fs"); -const path = require("path"); +const fs = require("node:fs"); +const path = require("node:path"); const defaultOptions = require("../../conf/default-cli-options"); const pkg = require("../../package.json"); @@ -41,6 +41,17 @@ const hash = require("./hash"); const LintResultCache = require("./lint-result-cache"); const debug = require("debug")("eslint:cli-engine"); +const removedFormatters = new Set([ + "checkstyle", + "codeframe", + "compact", + "jslint-xml", + "junit", + "table", + "tap", + "unix", + "visualstudio" +]); const validFixTypes = new Set(["directive", "problem", "suggestion", "layout"]); //------------------------------------------------------------------------------ @@ -639,7 +650,7 @@ class CLIEngine { }); const lintResultCache = options.cache ? new LintResultCache(cacheFilePath, options.cacheStrategy) : null; - const linter = new Linter({ cwd: options.cwd }); + const linter = new Linter({ cwd: options.cwd, configType: "eslintrc" }); /** @type {ConfigArray[]} */ const lastConfigArrays = [configArrayFactory.getConfigArrayForFile()]; @@ -721,7 +732,7 @@ class CLIEngine { * @returns {void} */ static outputFixes(report) { - report.results.filter(result => Object.prototype.hasOwnProperty.call(result, "output")).forEach(result => { + report.results.filter(result => Object.hasOwn(result, "output")).forEach(result => { fs.writeFileSync(result.filePath, result.output); }); } @@ -1047,7 +1058,7 @@ class CLIEngine { try { return require(formatterPath); } catch (ex) { - if (format === "table" || format === "codeframe") { + if (removedFormatters.has(format)) { ex.message = `The ${format} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${format}\``; } else { ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; diff --git a/node_modules/eslint/lib/cli-engine/file-enumerator.js b/node_modules/eslint/lib/cli-engine/file-enumerator.js index 5dff8d09..da5d1039 100644 --- a/node_modules/eslint/lib/cli-engine/file-enumerator.js +++ b/node_modules/eslint/lib/cli-engine/file-enumerator.js @@ -34,8 +34,8 @@ // Requirements //------------------------------------------------------------------------------ -const fs = require("fs"); -const path = require("path"); +const fs = require("node:fs"); +const path = require("node:path"); const getGlobParent = require("glob-parent"); const isGlob = require("is-glob"); const escapeRegExp = require("escape-string-regexp"); diff --git a/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js b/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js deleted file mode 100644 index f19b6fc0..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/checkstyle.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @fileoverview CheckStyle XML reporter - * @author Ian Christian Myers - */ -"use strict"; - -const xmlEscape = require("../xml-escape"); - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns the severity of warning or error - * @param {Object} message message object to examine - * @returns {string} severity level - * @private - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "error"; - } - return "warning"; - -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = ""; - - output += ""; - output += ""; - - results.forEach(result => { - const messages = result.messages; - - output += ``; - - messages.forEach(message => { - output += [ - `` - ].join(" "); - }); - - output += ""; - - }); - - output += ""; - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/compact.js b/node_modules/eslint/lib/cli-engine/formatters/compact.js deleted file mode 100644 index 2b540bde..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/compact.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @fileoverview Compact reporter - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns the severity of warning or error - * @param {Object} message message object to examine - * @returns {string} severity level - * @private - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "Error"; - } - return "Warning"; - -} - - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = "", - total = 0; - - results.forEach(result => { - - const messages = result.messages; - - total += messages.length; - - messages.forEach(message => { - - output += `${result.filePath}: `; - output += `line ${message.line || 0}`; - output += `, col ${message.column || 0}`; - output += `, ${getMessageType(message)}`; - output += ` - ${message.message}`; - output += message.ruleId ? ` (${message.ruleId})` : ""; - output += "\n"; - - }); - - }); - - if (total > 0) { - output += `\n${total} problem${total !== 1 ? "s" : ""}`; - } - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json b/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json index bcd35e50..4cc61ae3 100644 --- a/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +++ b/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json @@ -1,20 +1,8 @@ [ - { - "name": "checkstyle", - "description": "Outputs results to the [Checkstyle](https://checkstyle.sourceforge.io/) format." - }, - { - "name": "compact", - "description": "Human-readable output format. Mimics the default output of JSHint." - }, { "name": "html", "description": "Outputs results to HTML. The `html` formatter is useful for visual presentation in the browser." }, - { - "name": "jslint-xml", - "description": "Outputs results to format compatible with the [JSLint Jenkins plugin](https://plugins.jenkins.io/jslint/)." - }, { "name": "json-with-metadata", "description": "Outputs JSON-serialized results. The `json-with-metadata` provides the same linting results as the [`json`](#json) formatter with additional metadata about the rules applied. The linting results are included in the `results` property and the rules metadata is included in the `metadata` property.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint." @@ -23,24 +11,8 @@ "name": "json", "description": "Outputs JSON-serialized results. The `json` formatter is useful when you want to programmatically work with the CLI's linting results.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint." }, - { - "name": "junit", - "description": "Outputs results to format compatible with the [JUnit Jenkins plugin](https://plugins.jenkins.io/junit/)." - }, { "name": "stylish", "description": "Human-readable output format. This is the default formatter." - }, - { - "name": "tap", - "description": "Outputs results to the [Test Anything Protocol (TAP)](https://testanything.org/) specification format." - }, - { - "name": "unix", - "description": "Outputs results to a format similar to many commands in UNIX-like systems. Parsable with tools such as [grep](https://www.gnu.org/software/grep/manual/grep.html), [sed](https://www.gnu.org/software/sed/manual/sed.html), and [awk](https://www.gnu.org/software/gawk/manual/gawk.html)." - }, - { - "name": "visualstudio", - "description": "Outputs results to format compatible with the integrated terminal of the [Visual Studio](https://visualstudio.microsoft.com/) IDE. When using Visual Studio, you can click on the linting results in the integrated terminal to go to the issue in the source code." } -] \ No newline at end of file +] diff --git a/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js b/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js deleted file mode 100644 index 0ca1cbae..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/jslint-xml.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @fileoverview JSLint XML reporter - * @author Ian Christian Myers - */ -"use strict"; - -const xmlEscape = require("../xml-escape"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = ""; - - output += ""; - output += ""; - - results.forEach(result => { - const messages = result.messages; - - output += ``; - - messages.forEach(message => { - output += [ - `` - ].join(" "); - }); - - output += ""; - - }); - - output += ""; - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/junit.js b/node_modules/eslint/lib/cli-engine/formatters/junit.js deleted file mode 100644 index a994b4b1..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/junit.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @fileoverview jUnit Reporter - * @author Jamund Ferguson - */ -"use strict"; - -const xmlEscape = require("../xml-escape"); -const path = require("path"); - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns the severity of warning or error - * @param {Object} message message object to examine - * @returns {string} severity level - * @private - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "Error"; - } - return "Warning"; - -} - -/** - * Returns a full file path without extension - * @param {string} filePath input file path - * @returns {string} file path without extension - * @private - */ -function pathWithoutExt(filePath) { - return path.join(path.dirname(filePath), path.basename(filePath, path.extname(filePath))); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = ""; - - output += "\n"; - output += "\n"; - - results.forEach(result => { - - const messages = result.messages; - const classname = pathWithoutExt(result.filePath); - - if (messages.length > 0) { - output += `\n`; - messages.forEach(message => { - const type = message.fatal ? "error" : "failure"; - - output += ``; - output += `<${type} message="${xmlEscape(message.message || "")}">`; - output += ""; - output += ``; - output += "\n"; - }); - output += "\n"; - } else { - output += `\n`; - output += `\n`; - output += "\n"; - } - - }); - - output += "\n"; - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/stylish.js b/node_modules/eslint/lib/cli-engine/formatters/stylish.js index a808448b..a5cf39ba 100644 --- a/node_modules/eslint/lib/cli-engine/formatters/stylish.js +++ b/node_modules/eslint/lib/cli-engine/formatters/stylish.js @@ -5,8 +5,8 @@ "use strict"; const chalk = require("chalk"), - stripAnsi = require("strip-ansi"), - table = require("text-table"); + util = require("node:util"), + table = require("../../shared/text-table"); //------------------------------------------------------------------------------ // Helpers @@ -62,8 +62,8 @@ module.exports = function(results) { return [ "", - message.line || 0, - message.column || 0, + String(message.line || 0), + String(message.column || 0), messageType, message.message.replace(/([^ ])\.$/u, "$1"), chalk.dim(message.ruleId || "") @@ -72,7 +72,7 @@ module.exports = function(results) { { align: ["", "r", "l"], stringLength(str) { - return stripAnsi(str).length; + return util.stripVTControlCharacters(str).length; } } ).split("\n").map(el => el.replace(/(\d+)\s+(\d+)/u, (m, p1, p2) => chalk.dim(`${p1}:${p2}`))).join("\n")}\n\n`; diff --git a/node_modules/eslint/lib/cli-engine/formatters/tap.js b/node_modules/eslint/lib/cli-engine/formatters/tap.js deleted file mode 100644 index e4148a3b..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/tap.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @fileoverview TAP reporter - * @author Jonathan Kingston - */ -"use strict"; - -const yaml = require("js-yaml"); - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns a canonical error level string based upon the error message passed in. - * @param {Object} message Individual error message provided by eslint - * @returns {string} Error level string - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "error"; - } - return "warning"; -} - -/** - * Takes in a JavaScript object and outputs a TAP diagnostics string - * @param {Object} diagnostic JavaScript object to be embedded as YAML into output. - * @returns {string} diagnostics string with YAML embedded - TAP version 13 compliant - */ -function outputDiagnostics(diagnostic) { - const prefix = " "; - let output = `${prefix}---\n`; - - output += prefix + yaml.dump(diagnostic).split("\n").join(`\n${prefix}`); - output += "...\n"; - return output; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - let output = `TAP version 13\n1..${results.length}\n`; - - results.forEach((result, id) => { - const messages = result.messages; - let testResult = "ok"; - let diagnostics = {}; - - if (messages.length > 0) { - messages.forEach(message => { - const severity = getMessageType(message); - const diagnostic = { - message: message.message, - severity, - data: { - line: message.line || 0, - column: message.column || 0, - ruleId: message.ruleId || "" - } - }; - - // This ensures a warning message is not flagged as error - if (severity === "error") { - testResult = "not ok"; - } - - /* - * If we have multiple messages place them under a messages key - * The first error will be logged as message key - * This is to adhere to TAP 13 loosely defined specification of having a message key - */ - if ("message" in diagnostics) { - if (typeof diagnostics.messages === "undefined") { - diagnostics.messages = []; - } - diagnostics.messages.push(diagnostic); - } else { - diagnostics = diagnostic; - } - }); - } - - output += `${testResult} ${id + 1} - ${result.filePath}\n`; - - // If we have an error include diagnostics - if (messages.length > 0) { - output += outputDiagnostics(diagnostics); - } - - }); - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/unix.js b/node_modules/eslint/lib/cli-engine/formatters/unix.js deleted file mode 100644 index c6c4ebbd..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/unix.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview unix-style formatter. - * @author oshi-shinobu - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns a canonical error level string based upon the error message passed in. - * @param {Object} message Individual error message provided by eslint - * @returns {string} Error level string - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "Error"; - } - return "Warning"; - -} - - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = "", - total = 0; - - results.forEach(result => { - - const messages = result.messages; - - total += messages.length; - - messages.forEach(message => { - - output += `${result.filePath}:`; - output += `${message.line || 0}:`; - output += `${message.column || 0}:`; - output += ` ${message.message} `; - output += `[${getMessageType(message)}${message.ruleId ? `/${message.ruleId}` : ""}]`; - output += "\n"; - - }); - - }); - - if (total > 0) { - output += `\n${total} problem${total !== 1 ? "s" : ""}`; - } - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js b/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js deleted file mode 100644 index 0d49431d..00000000 --- a/node_modules/eslint/lib/cli-engine/formatters/visualstudio.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview Visual Studio compatible formatter - * @author Ronald Pijnacker - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helper Functions -//------------------------------------------------------------------------------ - -/** - * Returns the severity of warning or error - * @param {Object} message message object to examine - * @returns {string} severity level - * @private - */ -function getMessageType(message) { - if (message.fatal || message.severity === 2) { - return "error"; - } - return "warning"; - -} - - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = "", - total = 0; - - results.forEach(result => { - - const messages = result.messages; - - total += messages.length; - - messages.forEach(message => { - - output += result.filePath; - output += `(${message.line || 0}`; - output += message.column ? `,${message.column}` : ""; - output += `): ${getMessageType(message)}`; - output += message.ruleId ? ` ${message.ruleId}` : ""; - output += ` : ${message.message}`; - output += "\n"; - - }); - - }); - - if (total === 0) { - output += "no problems"; - } else { - output += `\n${total} problem${total !== 1 ? "s" : ""}`; - } - - return output; -}; diff --git a/node_modules/eslint/lib/cli-engine/lint-result-cache.js b/node_modules/eslint/lib/cli-engine/lint-result-cache.js index 97d2ee40..320362d4 100644 --- a/node_modules/eslint/lib/cli-engine/lint-result-cache.js +++ b/node_modules/eslint/lib/cli-engine/lint-result-cache.js @@ -8,11 +8,11 @@ // Requirements //----------------------------------------------------------------------------- -const assert = require("assert"); -const fs = require("fs"); +const fs = require("node:fs"); const fileEntryCache = require("file-entry-cache"); const stringify = require("json-stable-stringify-without-jsonify"); const pkg = require("../../package.json"); +const assert = require("../shared/assert"); const hash = require("./hash"); const debug = require("debug")("eslint:lint-result-cache"); @@ -164,7 +164,7 @@ class LintResultCache { * @returns {void} */ setCachedLintResults(filePath, config, result) { - if (result && Object.prototype.hasOwnProperty.call(result, "output")) { + if (result && Object.hasOwn(result, "output")) { return; } @@ -181,7 +181,7 @@ class LintResultCache { * In `getCachedLintResults`, if source is explicitly null, we will * read the file from the filesystem to set the value again. */ - if (Object.prototype.hasOwnProperty.call(resultToSerialize, "source")) { + if (Object.hasOwn(resultToSerialize, "source")) { resultToSerialize.source = null; } diff --git a/node_modules/eslint/lib/cli-engine/load-rules.js b/node_modules/eslint/lib/cli-engine/load-rules.js index 81bab63f..a58f954e 100644 --- a/node_modules/eslint/lib/cli-engine/load-rules.js +++ b/node_modules/eslint/lib/cli-engine/load-rules.js @@ -9,8 +9,8 @@ // Requirements //------------------------------------------------------------------------------ -const fs = require("fs"), - path = require("path"); +const fs = require("node:fs"), + path = require("node:path"); const rulesDirCache = {}; diff --git a/node_modules/eslint/lib/cli-engine/xml-escape.js b/node_modules/eslint/lib/cli-engine/xml-escape.js deleted file mode 100644 index 2e52dbaa..00000000 --- a/node_modules/eslint/lib/cli-engine/xml-escape.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @fileoverview XML character escaper - * @author George Chung - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Returns the escaped value for a character - * @param {string} s string to examine - * @returns {string} severity level - * @private - */ -module.exports = function(s) { - return (`${s}`).replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu, c => { // eslint-disable-line no-control-regex -- Converting controls to entities - switch (c) { - case "<": - return "<"; - case ">": - return ">"; - case "&": - return "&"; - case "\"": - return """; - case "'": - return "'"; - default: - return `&#${c.charCodeAt(0)};`; - } - }); -}; diff --git a/node_modules/eslint/lib/cli.js b/node_modules/eslint/lib/cli.js index 1d909ec1..3229d6a2 100644 --- a/node_modules/eslint/lib/cli.js +++ b/node_modules/eslint/lib/cli.js @@ -15,18 +15,17 @@ // Requirements //------------------------------------------------------------------------------ -const fs = require("fs"), - path = require("path"), - { promisify } = require("util"), - { ESLint } = require("./eslint"), - { FlatESLint, shouldUseFlatConfig } = require("./eslint/flat-eslint"), +const fs = require("node:fs"), + path = require("node:path"), + { promisify } = require("node:util"), + { LegacyESLint } = require("./eslint"), + { ESLint, shouldUseFlatConfig, locateConfigFileToUse } = require("./eslint/eslint"), createCLIOptions = require("./options"), log = require("./shared/logging"), RuntimeInfo = require("./shared/runtime-info"), { normalizeSeverityToString } = require("./shared/severity"); const { Legacy: { naming } } = require("@eslint/eslintrc"); const { ModuleImporter } = require("@humanwhocodes/module-importer"); - const debug = require("debug")("eslint:cli"); //------------------------------------------------------------------------------ @@ -37,6 +36,7 @@ const debug = require("debug")("eslint:cli"); /** @typedef {import("./eslint/eslint").LintMessage} LintMessage */ /** @typedef {import("./eslint/eslint").LintResult} LintResult */ /** @typedef {import("./options").ParsedCLIOptions} ParsedCLIOptions */ +/** @typedef {import("./shared/types").Plugin} Plugin */ /** @typedef {import("./shared/types").ResultsMeta} ResultsMeta */ //------------------------------------------------------------------------------ @@ -47,6 +47,32 @@ const mkdir = promisify(fs.mkdir); const stat = promisify(fs.stat); const writeFile = promisify(fs.writeFile); +/** + * Loads plugins with the specified names. + * @param {{ "import": (name: string) => Promise }} importer An object with an `import` method called once for each plugin. + * @param {string[]} pluginNames The names of the plugins to be loaded, with or without the "eslint-plugin-" prefix. + * @returns {Promise>} A mapping of plugin short names to implementations. + */ +async function loadPlugins(importer, pluginNames) { + const plugins = {}; + + await Promise.all(pluginNames.map(async pluginName => { + + const longName = naming.normalizePackageName(pluginName, "eslint-plugin"); + const module = await importer.import(longName); + + if (!("default" in module)) { + throw new Error(`"${longName}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`); + } + + const shortName = naming.getShorthandName(pluginName, "eslint-plugin"); + + plugins[shortName] = module.default; + })); + + return plugins; +} + /** * Predicate function for whether or not to apply fixes in quiet mode. * If a message is a warning, do not apply a fix. @@ -58,6 +84,16 @@ function quietFixPredicate(message) { return message.severity === 2; } +/** + * Predicate function for whether or not to run a rule in quiet mode. + * If a rule is set to warning, do not run it. + * @param {{ ruleId: string; severity: number; }} rule The rule id and severity. + * @returns {boolean} True if the lint rule should run, false otherwise. + */ +function quietRuleFilter(rule) { + return rule.severity === 2; +} + /** * Translates the CLI options into the options expected by the ESLint constructor. * @param {ParsedCLIOptions} cliOptions The CLI options to translate. @@ -80,6 +116,7 @@ async function translateOptions({ fix, fixDryRun, fixType, + flag, global, ignore, ignorePath, @@ -94,7 +131,10 @@ async function translateOptions({ resolvePluginsRelativeTo, rule, rulesdir, - warnIgnored + stats, + warnIgnored, + passOnNoPatterns, + maxWarnings }, configType) { let overrideConfig, overrideConfigFile; @@ -106,24 +146,29 @@ async function translateOptions({ overrideConfigFile = void 0; } - let globals = {}; + const languageOptions = {}; if (global) { - globals = global.reduce((obj, name) => { + languageOptions.globals = global.reduce((obj, name) => { if (name.endsWith(":true")) { obj[name.slice(0, -5)] = "writable"; } else { obj[name] = "readonly"; } return obj; - }, globals); + }, {}); + } + + if (parserOptions) { + languageOptions.parserOptions = parserOptions; + } + + if (parser) { + languageOptions.parser = await importer.import(parser); } overrideConfig = [{ - languageOptions: { - globals, - parserOptions: parserOptions || {} - }, + ...Object.keys(languageOptions).length > 0 ? { languageOptions } : {}, rules: rule ? rule : {} }]; @@ -135,22 +180,8 @@ async function translateOptions({ }; } - if (parser) { - overrideConfig[0].languageOptions.parser = await importer.import(parser); - } - if (plugin) { - const plugins = {}; - - for (const pluginName of plugin) { - - const shortName = naming.getShorthandName(pluginName, "eslint-plugin"); - const longName = naming.normalizePackageName(pluginName, "eslint-plugin"); - - plugins[shortName] = await importer.import(longName); - } - - overrideConfig[0].plugins = plugins; + overrideConfig[0].plugins = await loadPlugins(importer, plugin); } } else { @@ -187,12 +218,21 @@ async function translateOptions({ fixTypes: fixType, ignore, overrideConfig, - overrideConfigFile + overrideConfigFile, + passOnNoPatterns }; if (configType === "flat") { options.ignorePatterns = ignorePattern; + options.stats = stats; options.warnIgnored = warnIgnored; + options.flags = flag; + + /* + * For performance reasons rules not marked as 'error' are filtered out in quiet mode. As maxWarnings + * requires rules set to 'warn' to be run, we only filter out 'warn' rules if maxWarnings is not specified. + */ + options.ruleFilter = quiet && maxWarnings === -1 ? quietRuleFilter : () => true; } else { options.resolvePluginsRelativeTo = resolvePluginsRelativeTo; options.rulePaths = rulesdir; @@ -266,25 +306,23 @@ async function printResults(engine, results, format, outputFile, resultsMeta) { const output = await formatter.format(results, resultsMeta); - if (output) { - if (outputFile) { - const filePath = path.resolve(process.cwd(), outputFile); + if (outputFile) { + const filePath = path.resolve(process.cwd(), outputFile); - if (await isDirectory(filePath)) { - log.error("Cannot write to output file path, it is a directory: %s", outputFile); - return false; - } + if (await isDirectory(filePath)) { + log.error("Cannot write to output file path, it is a directory: %s", outputFile); + return false; + } - try { - await mkdir(path.dirname(filePath), { recursive: true }); - await writeFile(filePath, output); - } catch (ex) { - log.error("There was a problem writing the output file:\n%s", ex); - return false; - } - } else { - log.info(output); + try { + await mkdir(path.dirname(filePath), { recursive: true }); + await writeFile(filePath, output); + } catch (ex) { + log.error("There was a problem writing the output file:\n%s", ex); + return false; } + } else if (output) { + log.info(output); } return true; @@ -300,14 +338,31 @@ async function printResults(engine, results, format, outputFile, resultsMeta) { */ const cli = { + /** + * Calculates the command string for the --inspect-config operation. + * @param {string} configFile The path to the config file to inspect. + * @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. + * @returns {Promise} The command string to execute. + */ + async calculateInspectConfigFlags(configFile, hasUnstableTSConfigFlag) { + + // find the config file + const { + configFilePath, + basePath + } = await locateConfigFileToUse({ cwd: process.cwd(), configFile }, hasUnstableTSConfigFlag); + + return ["--config", configFilePath, "--basePath", basePath]; + }, + /** * Executes the CLI based on an array of arguments that is passed in. * @param {string|Array|Object} args The arguments to process. * @param {string} [text] The text to lint (used for TTY). - * @param {boolean} [allowFlatConfig] Whether or not to allow flat config. + * @param {boolean} [allowFlatConfig=true] Whether or not to allow flat config. * @returns {Promise} The exit code for the operation. */ - async execute(args, text, allowFlatConfig) { + async execute(args, text, allowFlatConfig = true) { if (Array.isArray(args)) { debug("CLI args: %o", args.slice(2)); } @@ -323,6 +378,10 @@ const cli = { debug("Using flat config?", usingFlatConfig); + if (allowFlatConfig && !usingFlatConfig) { + process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.", "ESLintRCWarning"); + } + const CLIOptions = createCLIOptions(usingFlatConfig); /** @type {ParsedCLIOptions} */ @@ -376,8 +435,8 @@ const cli = { } const engine = usingFlatConfig - ? new FlatESLint(await translateOptions(options, "flat")) - : new ESLint(await translateOptions(options)); + ? new ESLint(await translateOptions(options, "flat")) + : new LegacyESLint(await translateOptions(options)); const fileConfig = await engine.calculateConfigForFile(options.printConfig); @@ -385,6 +444,24 @@ const cli = { return 0; } + if (options.inspectConfig) { + + log.info("You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file."); + + try { + const flatOptions = await translateOptions(options, "flat"); + const spawn = require("cross-spawn"); + const flags = await cli.calculateInspectConfigFlags(flatOptions.overrideConfigFile, flatOptions.flags ? flatOptions.flags.includes("unstable_ts_config") : false); + + spawn.sync("npx", ["@eslint/config-inspector@latest", ...flags], { encoding: "utf8", stdio: "inherit" }); + } catch (error) { + log.error(error); + return 2; + } + + return 0; + } + debug(`Running on ${useStdin ? "text" : "files"}`); if (options.fix && options.fixDryRun) { @@ -405,9 +482,9 @@ const cli = { return 2; } - const ActiveESLint = usingFlatConfig ? FlatESLint : ESLint; - - const engine = new ActiveESLint(await translateOptions(options, usingFlatConfig ? "flat" : "eslintrc")); + const ActiveESLint = usingFlatConfig ? ESLint : LegacyESLint; + const eslintOptions = await translateOptions(options, usingFlatConfig ? "flat" : "eslintrc"); + const engine = new ActiveESLint(eslintOptions); let results; if (useStdin) { diff --git a/node_modules/eslint/lib/config/config-loader.js b/node_modules/eslint/lib/config/config-loader.js new file mode 100644 index 00000000..845cd0c9 --- /dev/null +++ b/node_modules/eslint/lib/config/config-loader.js @@ -0,0 +1,719 @@ +/** + * @fileoverview Utility to load config files + * @author Nicholas C. Zakas + */ + +"use strict"; + +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const path = require("node:path"); +const fs = require("node:fs/promises"); +const findUp = require("find-up"); +const { pathToFileURL } = require("node:url"); +const debug = require("debug")("eslint:config-loader"); +const { FlatConfigArray } = require("./flat-config-array"); + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** + * @typedef {import("../shared/types").FlatConfigObject} FlatConfigObject + * @typedef {import("../shared/types").FlatConfigArray} FlatConfigArray + * @typedef {Object} ConfigLoaderOptions + * @property {string|false|undefined} configFile The path to the config file to use. + * @property {string} cwd The current working directory. + * @property {boolean} ignoreEnabled Indicates if ignore patterns should be honored. + * @property {FlatConfigArray} [baseConfig] The base config to use. + * @property {Array} [defaultConfigs] The default configs to use. + * @property {Array} [ignorePatterns] The ignore patterns to use. + * @property {FlatConfigObject|Array} overrideConfig The override config to use. + * @property {boolean} allowTS Indicates if TypeScript configuration files are allowed. + */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +const FLAT_CONFIG_FILENAMES = [ + "eslint.config.js", + "eslint.config.mjs", + "eslint.config.cjs" +]; + +const TS_FLAT_CONFIG_FILENAMES = [ + "eslint.config.ts", + "eslint.config.mts", + "eslint.config.cts" +]; + +const importedConfigFileModificationTime = new Map(); + +/** + * Asserts that the given file path is valid. + * @param {string} filePath The file path to check. + * @returns {void} + * @throws {Error} If `filePath` is not a non-empty string. + */ +function assertValidFilePath(filePath) { + if (!filePath || typeof filePath !== "string") { + throw new Error("'filePath' must be a non-empty string"); + } +} + +/** + * Asserts that a configuration exists. A configuration exists if any + * of the following are true: + * - `configFilePath` is defined. + * - `useConfigFile` is `false`. + * @param {string|undefined} configFilePath The path to the config file. + * @param {ConfigLoaderOptions} loaderOptions The options to use when loading configuration files. + * @returns {void} + * @throws {Error} If no configuration exists. + */ +function assertConfigurationExists(configFilePath, loaderOptions) { + + const { + configFile: useConfigFile + } = loaderOptions; + + if (!configFilePath && useConfigFile !== false) { + const error = new Error("Could not find config file."); + + error.messageTemplate = "config-file-missing"; + throw error; + } + +} + +/** + * Check if the file is a TypeScript file. + * @param {string} filePath The file path to check. + * @returns {boolean} `true` if the file is a TypeScript file, `false` if it's not. + */ +function isFileTS(filePath) { + const fileExtension = path.extname(filePath); + + return /^\.[mc]?ts$/u.test(fileExtension); +} + +/** + * Check if ESLint is running in Bun. + * @returns {boolean} `true` if the ESLint is running Bun, `false` if it's not. + */ +function isRunningInBun() { + return !!globalThis.Bun; +} + +/** + * Check if ESLint is running in Deno. + * @returns {boolean} `true` if the ESLint is running in Deno, `false` if it's not. + */ +function isRunningInDeno() { + return !!globalThis.Deno; +} + +/** + * Load the config array from the given filename. + * @param {string} filePath The filename to load from. + * @param {boolean} allowTS Indicates if TypeScript configuration files are allowed. + * @returns {Promise} The config loaded from the config file. + */ +async function loadConfigFile(filePath, allowTS) { + + debug(`Loading config from ${filePath}`); + + const fileURL = pathToFileURL(filePath); + + debug(`Config file URL is ${fileURL}`); + + const mtime = (await fs.stat(filePath)).mtime.getTime(); + + /* + * Append a query with the config file's modification time (`mtime`) in order + * to import the current version of the config file. Without the query, `import()` would + * cache the config file module by the pathname only, and then always return + * the same version (the one that was actual when the module was imported for the first time). + * + * This ensures that the config file module is loaded and executed again + * if it has been changed since the last time it was imported. + * If it hasn't been changed, `import()` will just return the cached version. + * + * Note that we should not overuse queries (e.g., by appending the current time + * to always reload the config file module) as that could cause memory leaks + * because entries are never removed from the import cache. + */ + fileURL.searchParams.append("mtime", mtime); + + /* + * With queries, we can bypass the import cache. However, when import-ing a CJS module, + * Node.js uses the require infrastructure under the hood. That includes the require cache, + * which caches the config file module by its file path (queries have no effect). + * Therefore, we also need to clear the require cache before importing the config file module. + * In order to get the same behavior with ESM and CJS config files, in particular - to reload + * the config file only if it has been changed, we track file modification times and clear + * the require cache only if the file has been changed. + */ + if (importedConfigFileModificationTime.get(filePath) !== mtime) { + delete require.cache[filePath]; + } + + const isTS = isFileTS(filePath); + const isBun = isRunningInBun(); + const isDeno = isRunningInDeno(); + + /* + * If we are dealing with a TypeScript file, then we need to use `jiti` to load it + * in Node.js. Deno and Bun both allow native importing of TypeScript files. + * + * When Node.js supports native TypeScript imports, we can remove this check. + */ + if (allowTS && isTS && !isDeno && !isBun) { + + // eslint-disable-next-line no-use-before-define -- `ConfigLoader.loadJiti` can be overwritten for testing + const { createJiti } = await ConfigLoader.loadJiti().catch(() => { + throw new Error("The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it."); + }); + + // `createJiti` was added in jiti v2. + if (typeof createJiti !== "function") { + throw new Error("You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features."); + } + + /* + * Disabling `moduleCache` allows us to reload a + * config file when the last modified timestamp changes. + */ + + const jiti = createJiti(__filename, { moduleCache: false, interopDefault: false }); + const config = await jiti.import(fileURL.href); + + importedConfigFileModificationTime.set(filePath, mtime); + + return config?.default ?? config; + } + + + // fallback to normal runtime behavior + + const config = (await import(fileURL)).default; + + importedConfigFileModificationTime.set(filePath, mtime); + + return config; +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * Encapsulates the loading and caching of configuration files when looking up + * from the file being linted. + */ +class ConfigLoader { + + /** + * Map of config file paths to the config arrays for those directories. + * @type {Map>} + */ + #configArrays = new Map(); + + /** + * Map of absolute directory names to the config file paths for those directories. + * @type {Map>} + */ + #configFilePaths = new Map(); + + /** + * The options to use when loading configuration files. + * @type {ConfigLoaderOptions} + */ + #options; + + /** + * Creates a new instance. + * @param {ConfigLoaderOptions} options The options to use when loading configuration files. + */ + constructor(options) { + this.#options = options; + } + + /** + * Determines which config file to use. This is determined by seeing if an + * override config file was specified, and if so, using it; otherwise, as long + * as override config file is not explicitly set to `false`, it will search + * upwards from `fromDirectory` for a file named `eslint.config.js`. + * @param {string} fromDirectory The directory from which to start searching. + * @returns {Promise<{configFilePath:string|undefined,basePath:string}>} Location information for + * the config file. + */ + async #locateConfigFileToUse(fromDirectory) { + + // check cache first + if (this.#configFilePaths.has(fromDirectory)) { + return this.#configFilePaths.get(fromDirectory); + } + + const resultPromise = ConfigLoader.locateConfigFileToUse({ + useConfigFile: this.#options.configFile, + cwd: this.#options.cwd, + fromDirectory, + allowTS: this.#options.allowTS + }); + + // ensure `ConfigLoader.locateConfigFileToUse` is called only once for `fromDirectory` + this.#configFilePaths.set(fromDirectory, resultPromise); + + // Unwrap the promise. This is primarily for the sync `getCachedConfigArrayForPath` method. + const result = await resultPromise; + + this.#configFilePaths.set(fromDirectory, result); + + return result; + } + + /** + * Calculates the config array for this run based on inputs. + * @param {string} configFilePath The absolute path to the config file to use if not overridden. + * @param {string} basePath The base path to use for relative paths in the config file. + * @returns {Promise} The config array for `eslint`. + */ + async #calculateConfigArray(configFilePath, basePath) { + + // check for cached version first + if (this.#configArrays.has(configFilePath)) { + return this.#configArrays.get(configFilePath); + } + + const configsPromise = ConfigLoader.calculateConfigArray(configFilePath, basePath, this.#options); + + // ensure `ConfigLoader.calculateConfigArray` is called only once for `configFilePath` + this.#configArrays.set(configFilePath, configsPromise); + + // Unwrap the promise. This is primarily for the sync `getCachedConfigArrayForPath` method. + const configs = await configsPromise; + + this.#configArrays.set(configFilePath, configs); + + return configs; + } + + /** + * Returns the config file path for the given directory or file. This will either use + * the override config file that was specified in the constructor options or + * search for a config file from the directory. + * @param {string} fileOrDirPath The file or directory path to get the config file path for. + * @returns {Promise} The config file path or `undefined` if not found. + * @throws {Error} If `fileOrDirPath` is not a non-empty string. + * @throws {Error} If `fileOrDirPath` is not an absolute path. + */ + async findConfigFileForPath(fileOrDirPath) { + + assertValidFilePath(fileOrDirPath); + + const absoluteDirPath = path.resolve(this.#options.cwd, path.dirname(fileOrDirPath)); + const { configFilePath } = await this.#locateConfigFileToUse(absoluteDirPath); + + return configFilePath; + } + + /** + * Returns a configuration object for the given file based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param {string} filePath The path of the file or directory to retrieve config for. + * @returns {Promise} A configuration object for the file + * or `undefined` if there is no configuration data for the file. + * @throws {Error} If no configuration for `filePath` exists. + */ + async loadConfigArrayForFile(filePath) { + + assertValidFilePath(filePath); + + debug(`Calculating config for file ${filePath}`); + + const configFilePath = await this.findConfigFileForPath(filePath); + + assertConfigurationExists(configFilePath, this.#options); + + return this.loadConfigArrayForDirectory(filePath); + } + + /** + * Returns a configuration object for the given directory based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param {string} dirPath The path of the directory to retrieve config for. + * @returns {Promise} A configuration object for the directory + * or `undefined` if there is no configuration data for the directory. + */ + async loadConfigArrayForDirectory(dirPath) { + + assertValidFilePath(dirPath); + + debug(`Calculating config for directory ${dirPath}`); + + const absoluteDirPath = path.resolve(this.#options.cwd, path.dirname(dirPath)); + const { configFilePath, basePath } = await this.#locateConfigFileToUse(absoluteDirPath); + + debug(`Using config file ${configFilePath} and base path ${basePath}`); + return this.#calculateConfigArray(configFilePath, basePath); + } + + /** + * Returns a configuration array for the given file based on the CLI options. + * This is a synchronous operation and does not read any files from disk. It's + * intended to be used in locations where we know the config file has already + * been loaded and we just need to get the configuration for a file. + * @param {string} filePath The path of the file to retrieve a config object for. + * @returns {ConfigData|undefined} A configuration object for the file + * or `undefined` if there is no configuration data for the file. + * @throws {Error} If `filePath` is not a non-empty string. + * @throws {Error} If `filePath` is not an absolute path. + * @throws {Error} If the config file was not already loaded. + */ + getCachedConfigArrayForFile(filePath) { + assertValidFilePath(filePath); + + debug(`Looking up cached config for ${filePath}`); + + return this.getCachedConfigArrayForPath(path.dirname(filePath)); + } + + /** + * Returns a configuration array for the given directory based on the CLI options. + * This is a synchronous operation and does not read any files from disk. It's + * intended to be used in locations where we know the config file has already + * been loaded and we just need to get the configuration for a file. + * @param {string} fileOrDirPath The path of the directory to retrieve a config object for. + * @returns {ConfigData|undefined} A configuration object for the directory + * or `undefined` if there is no configuration data for the directory. + * @throws {Error} If `dirPath` is not a non-empty string. + * @throws {Error} If `dirPath` is not an absolute path. + * @throws {Error} If the config file was not already loaded. + */ + getCachedConfigArrayForPath(fileOrDirPath) { + assertValidFilePath(fileOrDirPath); + + debug(`Looking up cached config for ${fileOrDirPath}`); + + const absoluteDirPath = path.resolve(this.#options.cwd, fileOrDirPath); + + if (!this.#configFilePaths.has(absoluteDirPath)) { + throw new Error(`Could not find config file for ${fileOrDirPath}`); + } + + const configFilePathInfo = this.#configFilePaths.get(absoluteDirPath); + + if (typeof configFilePathInfo.then === "function") { + throw new Error(`Config file path for ${fileOrDirPath} has not yet been calculated or an error occurred during the calculation`); + } + + const { configFilePath } = configFilePathInfo; + + const configArray = this.#configArrays.get(configFilePath); + + if (!configArray || typeof configArray.then === "function") { + throw new Error(`Config array for ${fileOrDirPath} has not yet been calculated or an error occurred during the calculation`); + } + + return configArray; + } + + /** + * Used to import the jiti dependency. This method is exposed internally for testing purposes. + * @returns {Promise>} A promise that fulfills with a module object + * or rejects with an error if jiti is not found. + */ + static loadJiti() { + return import("jiti"); + } + + /** + * Determines which config file to use. This is determined by seeing if an + * override config file was specified, and if so, using it; otherwise, as long + * as override config file is not explicitly set to `false`, it will search + * upwards from `fromDirectory` for a file named `eslint.config.js`. + * This method is exposed internally for testing purposes. + * @param {Object} [options] the options object + * @param {string|false|undefined} options.useConfigFile The path to the config file to use. + * @param {string} options.cwd Path to a directory that should be considered as the current working directory. + * @param {string} [options.fromDirectory] The directory from which to start searching. Defaults to `cwd`. + * @param {boolean} options.allowTS Indicates if TypeScript configuration files are allowed. + * @returns {Promise<{configFilePath:string|undefined,basePath:string}>} Location information for + * the config file. + */ + static async locateConfigFileToUse({ useConfigFile, cwd, fromDirectory = cwd, allowTS }) { + + const configFilenames = allowTS + ? [...FLAT_CONFIG_FILENAMES, ...TS_FLAT_CONFIG_FILENAMES] + : FLAT_CONFIG_FILENAMES; + + // determine where to load config file from + let configFilePath; + let basePath = cwd; + + if (typeof useConfigFile === "string") { + debug(`Override config file path is ${useConfigFile}`); + configFilePath = path.resolve(cwd, useConfigFile); + basePath = cwd; + } else if (useConfigFile !== false) { + debug("Searching for eslint.config.js"); + configFilePath = await findUp( + configFilenames, + { cwd: fromDirectory } + ); + + if (configFilePath) { + basePath = path.dirname(configFilePath); + } + + } + + return { + configFilePath, + basePath + }; + + } + + /** + * Calculates the config array for this run based on inputs. + * This method is exposed internally for testing purposes. + * @param {string} configFilePath The absolute path to the config file to use if not overridden. + * @param {string} basePath The base path to use for relative paths in the config file. + * @param {ConfigLoaderOptions} options The options to use when loading configuration files. + * @returns {Promise} The config array for `eslint`. + */ + static async calculateConfigArray(configFilePath, basePath, options) { + + const { + cwd, + baseConfig, + ignoreEnabled, + ignorePatterns, + overrideConfig, + defaultConfigs = [], + allowTS + } = options; + + debug(`Calculating config array from config file ${configFilePath} and base path ${basePath}`); + + const configs = new FlatConfigArray(baseConfig || [], { basePath, shouldIgnore: ignoreEnabled }); + + // load config file + if (configFilePath) { + + debug(`Loading config file ${configFilePath}`); + const fileConfig = await loadConfigFile(configFilePath, allowTS); + + if (Array.isArray(fileConfig)) { + configs.push(...fileConfig); + } else { + configs.push(fileConfig); + } + } + + // add in any configured defaults + configs.push(...defaultConfigs); + + // append command line ignore patterns + if (ignorePatterns && ignorePatterns.length > 0) { + + let relativeIgnorePatterns; + + /* + * If the config file basePath is different than the cwd, then + * the ignore patterns won't work correctly. Here, we adjust the + * ignore pattern to include the correct relative path. Patterns + * passed as `ignorePatterns` are relative to the cwd, whereas + * the config file basePath can be an ancestor of the cwd. + */ + if (basePath === cwd) { + relativeIgnorePatterns = ignorePatterns; + } else { + + // relative path must only have Unix-style separators + const relativeIgnorePath = path.relative(basePath, cwd).replace(/\\/gu, "/"); + + relativeIgnorePatterns = ignorePatterns.map(pattern => { + const negated = pattern.startsWith("!"); + const basePattern = negated ? pattern.slice(1) : pattern; + + return (negated ? "!" : "") + + path.posix.join(relativeIgnorePath, basePattern); + }); + } + + /* + * Ignore patterns are added to the end of the config array + * so they can override default ignores. + */ + configs.push({ + ignores: relativeIgnorePatterns + }); + } + + if (overrideConfig) { + if (Array.isArray(overrideConfig)) { + configs.push(...overrideConfig); + } else { + configs.push(overrideConfig); + } + } + + await configs.normalize(); + + return configs; + } + +} + +/** + * Encapsulates the loading and caching of configuration files when looking up + * from the current working directory. + */ +class LegacyConfigLoader extends ConfigLoader { + + /** + * The options to use when loading configuration files. + * @type {ConfigLoaderOptions} + */ + #options; + + /** + * The cached config file path for this instance. + * @type {Promise<{configFilePath:string,basePath:string}|undefined>} + */ + #configFilePath; + + /** + * The cached config array for this instance. + * @type {FlatConfigArray|Promise} + */ + #configArray; + + /** + * Creates a new instance. + * @param {ConfigLoaderOptions} options The options to use when loading configuration files. + */ + constructor(options) { + super(options); + this.#options = options; + } + + /** + * Determines which config file to use. This is determined by seeing if an + * override config file was specified, and if so, using it; otherwise, as long + * as override config file is not explicitly set to `false`, it will search + * upwards from the cwd for a file named `eslint.config.js`. + * @returns {Promise<{configFilePath:string|undefined,basePath:string}>} Location information for + * the config file. + */ + #locateConfigFileToUse() { + if (!this.#configFilePath) { + this.#configFilePath = ConfigLoader.locateConfigFileToUse({ + useConfigFile: this.#options.configFile, + cwd: this.#options.cwd, + allowTS: this.#options.allowTS + }); + } + + return this.#configFilePath; + } + + /** + * Calculates the config array for this run based on inputs. + * @param {string} configFilePath The absolute path to the config file to use if not overridden. + * @param {string} basePath The base path to use for relative paths in the config file. + * @returns {Promise} The config array for `eslint`. + */ + async #calculateConfigArray(configFilePath, basePath) { + + // check for cached version first + if (this.#configArray) { + return this.#configArray; + } + + // ensure `ConfigLoader.calculateConfigArray` is called only once + this.#configArray = ConfigLoader.calculateConfigArray(configFilePath, basePath, this.#options); + + // Unwrap the promise. This is primarily for the sync `getCachedConfigArrayForPath` method. + this.#configArray = await this.#configArray; + + return this.#configArray; + } + + + /** + * Returns the config file path for the given directory. This will either use + * the override config file that was specified in the constructor options or + * search for a config file from the directory of the file being linted. + * @param {string} dirPath The directory path to get the config file path for. + * @returns {Promise} The config file path or `undefined` if not found. + * @throws {Error} If `fileOrDirPath` is not a non-empty string. + * @throws {Error} If `fileOrDirPath` is not an absolute path. + */ + async findConfigFileForPath(dirPath) { + + assertValidFilePath(dirPath); + + const { configFilePath } = await this.#locateConfigFileToUse(); + + return configFilePath; + } + + /** + * Returns a configuration object for the given file based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param {string} dirPath The path of the directory to retrieve config for. + * @returns {Promise} A configuration object for the file + * or `undefined` if there is no configuration data for the file. + */ + async loadConfigArrayForDirectory(dirPath) { + + assertValidFilePath(dirPath); + + debug(`[Legacy]: Calculating config for ${dirPath}`); + + const { configFilePath, basePath } = await this.#locateConfigFileToUse(); + + debug(`[Legacy]: Using config file ${configFilePath} and base path ${basePath}`); + return this.#calculateConfigArray(configFilePath, basePath); + } + + /** + * Returns a configuration array for the given directory based on the CLI options. + * This is a synchronous operation and does not read any files from disk. It's + * intended to be used in locations where we know the config file has already + * been loaded and we just need to get the configuration for a file. + * @param {string} dirPath The path of the directory to retrieve a config object for. + * @returns {ConfigData|undefined} A configuration object for the file + * or `undefined` if there is no configuration data for the file. + * @throws {Error} If `dirPath` is not a non-empty string. + * @throws {Error} If `dirPath` is not an absolute path. + * @throws {Error} If the config file was not already loaded. + */ + getCachedConfigArrayForPath(dirPath) { + assertValidFilePath(dirPath); + + debug(`[Legacy]: Looking up cached config for ${dirPath}`); + + if (!this.#configArray) { + throw new Error(`Could not find config file for ${dirPath}`); + } + + if (typeof this.#configArray.then === "function") { + throw new Error(`Config array for ${dirPath} has not yet been calculated or an error occurred during the calculation`); + } + + return this.#configArray; + } +} + +module.exports = { ConfigLoader, LegacyConfigLoader }; diff --git a/node_modules/eslint/lib/config/config.js b/node_modules/eslint/lib/config/config.js new file mode 100644 index 00000000..009d09fa --- /dev/null +++ b/node_modules/eslint/lib/config/config.js @@ -0,0 +1,297 @@ +/** + * @fileoverview The `Config` class + * @author Nicholas C. Zakas + */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Requirements +//----------------------------------------------------------------------------- + +const { deepMergeArrays } = require("../shared/deep-merge-arrays"); +const { getRuleFromConfig } = require("./flat-config-helpers"); +const { flatConfigSchema, hasMethod } = require("./flat-config-schema"); +const { RuleValidator } = require("./rule-validator"); +const { ObjectSchema } = require("@eslint/config-array"); + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +const ruleValidator = new RuleValidator(); + +const severities = new Map([ + [0, 0], + [1, 1], + [2, 2], + ["off", 0], + ["warn", 1], + ["error", 2] +]); + +/** + * Splits a plugin identifier in the form a/b/c into two parts: a/b and c. + * @param {string} identifier The identifier to parse. + * @returns {{objectName: string, pluginName: string}} The parts of the plugin + * name. + */ +function splitPluginIdentifier(identifier) { + const parts = identifier.split("/"); + + return { + objectName: parts.pop(), + pluginName: parts.join("/") + }; +} + +/** + * Returns the name of an object in the config by reading its `meta` key. + * @param {Object} object The object to check. + * @returns {string?} The name of the object if found or `null` if there + * is no name. + */ +function getObjectId(object) { + + // first check old-style name + let name = object.name; + + if (!name) { + + if (!object.meta) { + return null; + } + + name = object.meta.name; + + if (!name) { + return null; + } + } + + // now check for old-style version + let version = object.version; + + if (!version) { + version = object.meta && object.meta.version; + } + + // if there's a version then append that + if (version) { + return `${name}@${version}`; + } + + return name; +} + +/** + * Converts a languageOptions object to a JSON representation. + * @param {Record} languageOptions The options to create a JSON + * representation of. + * @param {string} objectKey The key of the object being converted. + * @returns {Record} The JSON representation of the languageOptions. + * @throws {TypeError} If a function is found in the languageOptions. + */ +function languageOptionsToJSON(languageOptions, objectKey = "languageOptions") { + + const result = {}; + + for (const [key, value] of Object.entries(languageOptions)) { + if (value) { + if (typeof value === "object") { + const name = getObjectId(value); + + if (name && hasMethod(value)) { + result[key] = name; + } else { + result[key] = languageOptionsToJSON(value, key); + } + continue; + } + + if (typeof value === "function") { + throw new TypeError(`Cannot serialize key "${key}" in ${objectKey}: Function values are not supported.`); + } + + } + + result[key] = value; + } + + return result; +} + + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * Represents a normalized configuration object. + */ +class Config { + + /** + * The name to use for the language when serializing to JSON. + * @type {string|undefined} + */ + #languageName; + + /** + * The name to use for the processor when serializing to JSON. + * @type {string|undefined} + */ + #processorName; + + /** + * Creates a new instance. + * @param {Object} config The configuration object. + */ + constructor(config) { + + const { plugins, language, languageOptions, processor, ...otherKeys } = config; + + // Validate config object + const schema = new ObjectSchema(flatConfigSchema); + + schema.validate(config); + + // first, copy all the other keys over + Object.assign(this, otherKeys); + + // ensure that a language is specified + if (!language) { + throw new TypeError("Key 'language' is required."); + } + + // copy the rest over + this.plugins = plugins; + this.language = language; + + // Check language value + const { pluginName: languagePluginName, objectName: localLanguageName } = splitPluginIdentifier(language); + + this.#languageName = language; + + if (!plugins || !plugins[languagePluginName] || !plugins[languagePluginName].languages || !plugins[languagePluginName].languages[localLanguageName]) { + throw new TypeError(`Key "language": Could not find "${localLanguageName}" in plugin "${languagePluginName}".`); + } + + this.language = plugins[languagePluginName].languages[localLanguageName]; + + if (this.language.defaultLanguageOptions ?? languageOptions) { + this.languageOptions = flatConfigSchema.languageOptions.merge( + this.language.defaultLanguageOptions, + languageOptions + ); + } else { + this.languageOptions = {}; + } + + // Validate language options + try { + this.language.validateLanguageOptions(this.languageOptions); + } catch (error) { + throw new TypeError(`Key "languageOptions": ${error.message}`, { cause: error }); + } + + // Normalize language options if necessary + if (this.language.normalizeLanguageOptions) { + this.languageOptions = this.language.normalizeLanguageOptions(this.languageOptions); + } + + // Check processor value + if (processor) { + this.processor = processor; + + if (typeof processor === "string") { + const { pluginName, objectName: localProcessorName } = splitPluginIdentifier(processor); + + this.#processorName = processor; + + if (!plugins || !plugins[pluginName] || !plugins[pluginName].processors || !plugins[pluginName].processors[localProcessorName]) { + throw new TypeError(`Key "processor": Could not find "${localProcessorName}" in plugin "${pluginName}".`); + } + + this.processor = plugins[pluginName].processors[localProcessorName]; + } else if (typeof processor === "object") { + this.#processorName = getObjectId(processor); + this.processor = processor; + } else { + throw new TypeError("Key 'processor' must be a string or an object."); + } + } + + // Process the rules + if (this.rules) { + this.#normalizeRulesConfig(); + ruleValidator.validate(this); + } + } + + /** + * Converts the configuration to a JSON representation. + * @returns {Record} The JSON representation of the configuration. + * @throws {Error} If the configuration cannot be serialized. + */ + toJSON() { + + if (this.processor && !this.#processorName) { + throw new Error("Could not serialize processor object (missing 'meta' object)."); + } + + if (!this.#languageName) { + throw new Error("Could not serialize language object (missing 'meta' object)."); + } + + return { + ...this, + plugins: Object.entries(this.plugins).map(([namespace, plugin]) => { + + const pluginId = getObjectId(plugin); + + if (!pluginId) { + return namespace; + } + + return `${namespace}:${pluginId}`; + }), + language: this.#languageName, + languageOptions: languageOptionsToJSON(this.languageOptions), + processor: this.#processorName + }; + } + + /** + * Normalizes the rules configuration. Ensures that each rule config is + * an array and that the severity is a number. Applies meta.defaultOptions. + * This function modifies `this.rules`. + * @returns {void} + */ + #normalizeRulesConfig() { + for (const [ruleId, originalConfig] of Object.entries(this.rules)) { + + // ensure rule config is an array + let ruleConfig = Array.isArray(originalConfig) + ? originalConfig + : [originalConfig]; + + // normalize severity + ruleConfig[0] = severities.get(ruleConfig[0]); + + const rule = getRuleFromConfig(ruleId, this); + + // apply meta.defaultOptions + const slicedOptions = ruleConfig.slice(1); + const mergedOptions = deepMergeArrays(rule?.meta?.defaultOptions, slicedOptions); + + if (mergedOptions.length) { + ruleConfig = [ruleConfig[0], ...mergedOptions]; + } + + this.rules[ruleId] = ruleConfig; + } + } +} + +module.exports = { Config }; diff --git a/node_modules/eslint/lib/config/default-config.js b/node_modules/eslint/lib/config/default-config.js index 8a6ff820..1b4ec45c 100644 --- a/node_modules/eslint/lib/config/default-config.js +++ b/node_modules/eslint/lib/config/default-config.js @@ -15,11 +15,15 @@ const Rules = require("../rules"); // Helpers //----------------------------------------------------------------------------- -exports.defaultConfig = [ +exports.defaultConfig = Object.freeze([ { plugins: { "@": { + languages: { + js: require("../languages/js") + }, + /* * Because we try to delay loading rules until absolutely * necessary, a proxy allows us to hook into the lazy-loading @@ -37,11 +41,9 @@ exports.defaultConfig = [ }) } }, - languageOptions: { - sourceType: "module", - ecmaVersion: "latest", - parser: require("espree"), - parserOptions: {} + language: "@/js", + linterOptions: { + reportUnusedDisableDirectives: 1 } }, @@ -64,4 +66,4 @@ exports.defaultConfig = [ ecmaVersion: "latest" } } -]; +]); diff --git a/node_modules/eslint/lib/config/flat-config-array.js b/node_modules/eslint/lib/config/flat-config-array.js index 99d1dee6..7c911019 100644 --- a/node_modules/eslint/lib/config/flat-config-array.js +++ b/node_modules/eslint/lib/config/flat-config-array.js @@ -9,11 +9,10 @@ // Requirements //----------------------------------------------------------------------------- -const { ConfigArray, ConfigArraySymbol } = require("@humanwhocodes/config-array"); +const { ConfigArray, ConfigArraySymbol } = require("@eslint/config-array"); const { flatConfigSchema } = require("./flat-config-schema"); -const { RuleValidator } = require("./rule-validator"); const { defaultConfig } = require("./default-config"); -const jsPlugin = require("@eslint/js"); +const { Config } = require("./config"); //----------------------------------------------------------------------------- // Helpers @@ -24,62 +23,6 @@ const jsPlugin = require("@eslint/js"); */ const META_FIELDS = new Set(["name"]); -const ruleValidator = new RuleValidator(); - -/** - * Splits a plugin identifier in the form a/b/c into two parts: a/b and c. - * @param {string} identifier The identifier to parse. - * @returns {{objectName: string, pluginName: string}} The parts of the plugin - * name. - */ -function splitPluginIdentifier(identifier) { - const parts = identifier.split("/"); - - return { - objectName: parts.pop(), - pluginName: parts.join("/") - }; -} - -/** - * Returns the name of an object in the config by reading its `meta` key. - * @param {Object} object The object to check. - * @returns {string?} The name of the object if found or `null` if there - * is no name. - */ -function getObjectId(object) { - - // first check old-style name - let name = object.name; - - if (!name) { - - if (!object.meta) { - return null; - } - - name = object.meta.name; - - if (!name) { - return null; - } - } - - // now check for old-style version - let version = object.version; - - if (!version) { - version = object.meta && object.meta.version; - } - - // if there's a version then append that - if (version) { - return `${name}@${version}`; - } - - return name; -} - /** * Wraps a config error with details about where the error occurred. * @param {Error} error The original error. @@ -124,6 +67,7 @@ function wrapConfigErrorWithDetails(error, originalLength, baseLength) { ); } + const originalBaseConfig = Symbol("originalBaseConfig"); const originalLength = Symbol("originalLength"); const baseLength = Symbol("baseLength"); @@ -240,25 +184,6 @@ class FlatConfigArray extends ConfigArray { * @returns {Object} The preprocessed config. */ [ConfigArraySymbol.preprocessConfig](config) { - if (config === "eslint:recommended") { - - // if we are in a Node.js environment warn the user - if (typeof process !== "undefined" && process.emitWarning) { - process.emitWarning("The 'eslint:recommended' string configuration is deprecated and will be replaced by the @eslint/js package's 'recommended' config."); - } - - return jsPlugin.configs.recommended; - } - - if (config === "eslint:all") { - - // if we are in a Node.js environment warn the user - if (typeof process !== "undefined" && process.emitWarning) { - process.emitWarning("The 'eslint:all' string configuration is deprecated and will be replaced by the @eslint/js package's 'all' config."); - } - - return jsPlugin.configs.all; - } /* * If a config object has `ignores` and no other non-meta fields, then it's an object @@ -288,90 +213,7 @@ class FlatConfigArray extends ConfigArray { * @throws {TypeError} If the config is invalid. */ [ConfigArraySymbol.finalizeConfig](config) { - - const { plugins, languageOptions, processor } = config; - let parserName, processorName; - let invalidParser = false, - invalidProcessor = false; - - // Check parser value - if (languageOptions && languageOptions.parser) { - const { parser } = languageOptions; - - if (typeof parser === "object") { - parserName = getObjectId(parser); - - if (!parserName) { - invalidParser = true; - } - - } else { - invalidParser = true; - } - } - - // Check processor value - if (processor) { - if (typeof processor === "string") { - const { pluginName, objectName: localProcessorName } = splitPluginIdentifier(processor); - - processorName = processor; - - if (!plugins || !plugins[pluginName] || !plugins[pluginName].processors || !plugins[pluginName].processors[localProcessorName]) { - throw new TypeError(`Key "processor": Could not find "${localProcessorName}" in plugin "${pluginName}".`); - } - - config.processor = plugins[pluginName].processors[localProcessorName]; - } else if (typeof processor === "object") { - processorName = getObjectId(processor); - - if (!processorName) { - invalidProcessor = true; - } - - } else { - invalidProcessor = true; - } - } - - ruleValidator.validate(config); - - // apply special logic for serialization into JSON - /* eslint-disable object-shorthand -- shorthand would change "this" value */ - Object.defineProperty(config, "toJSON", { - value: function() { - - if (invalidParser) { - throw new Error("Could not serialize parser object (missing 'meta' object)."); - } - - if (invalidProcessor) { - throw new Error("Could not serialize processor object (missing 'meta' object)."); - } - - return { - ...this, - plugins: Object.entries(plugins).map(([namespace, plugin]) => { - - const pluginId = getObjectId(plugin); - - if (!pluginId) { - return namespace; - } - - return `${namespace}:${pluginId}`; - }), - languageOptions: { - ...languageOptions, - parser: parserName - }, - processor: processorName - }; - } - }); - /* eslint-enable object-shorthand -- ok to enable now */ - - return config; + return new Config(config); } /* eslint-enable class-methods-use-this -- Desired as instance method */ diff --git a/node_modules/eslint/lib/config/flat-config-helpers.js b/node_modules/eslint/lib/config/flat-config-helpers.js index e00c5643..a904a0dd 100644 --- a/node_modules/eslint/lib/config/flat-config-helpers.js +++ b/node_modules/eslint/lib/config/flat-config-helpers.js @@ -5,6 +5,23 @@ "use strict"; +//------------------------------------------------------------------------------ +// Typedefs +//------------------------------------------------------------------------------ + +/** @typedef {import("../shared/types").Rule} Rule */ + +//------------------------------------------------------------------------------ +// Private Members +//------------------------------------------------------------------------------ + +// JSON schema that disallows passing any options +const noOptionsSchema = Object.freeze({ + type: "array", + minItems: 0, + maxItems: 0 +}); + //----------------------------------------------------------------------------- // Functions //----------------------------------------------------------------------------- @@ -48,36 +65,39 @@ function parseRuleId(ruleId) { * or undefined if not. */ function getRuleFromConfig(ruleId, config) { - const { pluginName, ruleName } = parseRuleId(ruleId); - const plugin = config.plugins && config.plugins[pluginName]; - let rule = plugin && plugin.rules && plugin.rules[ruleName]; - - - // normalize function rules into objects - if (rule && typeof rule === "function") { - rule = { - create: rule - }; - } - - return rule; + return config.plugins?.[pluginName]?.rules?.[ruleName]; } /** * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. + * @param {Rule} rule A rule object + * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. + * @returns {Object|null} JSON Schema for the rule's options. `null` if `meta.schema` is `false`. */ function getRuleOptionsSchema(rule) { - if (!rule) { + if (!rule.meta) { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + const schema = rule.meta.schema; + + if (typeof schema === "undefined") { + return { ...noOptionsSchema }; // default if `meta.schema` is not specified + } + + // `schema:false` is an allowed explicit opt-out of options validation for the rule + if (schema === false) { return null; } - const schema = rule.schema || rule.meta && rule.meta.schema; + if (typeof schema !== "object" || schema === null) { + throw new TypeError("Rule's `meta.schema` must be an array or object"); + } + // ESLint-specific array form needs to be converted into a valid JSON Schema definition if (Array.isArray(schema)) { if (schema.length) { return { @@ -87,16 +107,13 @@ function getRuleOptionsSchema(rule) { maxItems: schema.length }; } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; + // `schema:[]` is an explicit way to specify that the rule does not accept any options + return { ...noOptionsSchema }; } - // Given a full schema, leave it alone - return schema || null; + // `schema:` is assumed to be a valid JSON Schema definition + return schema; } diff --git a/node_modules/eslint/lib/config/flat-config-schema.js b/node_modules/eslint/lib/config/flat-config-schema.js index 6b64319c..bffbae79 100644 --- a/node_modules/eslint/lib/config/flat-config-schema.js +++ b/node_modules/eslint/lib/config/flat-config-schema.js @@ -9,11 +9,6 @@ // Requirements //----------------------------------------------------------------------------- -/* - * Note: This can be removed in ESLint v9 because structuredClone is available globally - * starting in Node.js v17. - */ -const structuredClone = require("@ungap/structured-clone").default; const { normalizeSeverityToNumber } = require("../shared/severity"); //----------------------------------------------------------------------------- @@ -38,12 +33,6 @@ const ruleSeverities = new Map([ [2, 2], ["error", 2] ]); -const globalVariablesValues = new Set([ - true, "true", "writable", "writeable", - false, "false", "readonly", "readable", null, - "off" -]); - /** * Check if a value is a non-null object. * @param {any} value The value to check. @@ -148,6 +137,23 @@ function normalizeRuleOptions(ruleOptions) { return structuredClone(finalOptions); } +/** + * Determines if an object has any methods. + * @param {Object} object The object to check. + * @returns {boolean} `true` if the object has any methods. + */ +function hasMethod(object) { + + for (const key of Object.keys(object)) { + + if (typeof object[key] === "function") { + return true; + } + } + + return false; +} + //----------------------------------------------------------------------------- // Assertions //----------------------------------------------------------------------------- @@ -306,47 +312,48 @@ const deepObjectAssignSchema = { validate: "object" }; + //----------------------------------------------------------------------------- // High-Level Schemas //----------------------------------------------------------------------------- /** @type {ObjectPropertySchema} */ -const globalsSchema = { - merge: "assign", - validate(value) { +const languageOptionsSchema = { + merge(first = {}, second = {}) { - assertIsObject(value); + const result = deepMerge(first, second); - for (const key of Object.keys(value)) { + for (const [key, value] of Object.entries(result)) { - // avoid hairy edge case - if (key === "__proto__") { - continue; - } + /* + * Special case: Because the `parser` property is an object, it should + * not be deep merged. Instead, it should be replaced if it exists in + * the second object. To make this more generic, we just check for + * objects with methods and replace them if they exist in the second + * object. + */ + if (isNonArrayObject(value)) { + if (hasMethod(value)) { + result[key] = second[key] ?? first[key]; + continue; + } - if (key !== key.trim()) { - throw new TypeError(`Global "${key}" has leading or trailing whitespace.`); + // for other objects, make sure we aren't reusing the same object + result[key] = { ...result[key] }; + continue; } - if (!globalVariablesValues.has(value[key])) { - throw new TypeError(`Key "${key}": Expected "readonly", "writable", or "off".`); - } } - } + + return result; + }, + validate: "object" }; /** @type {ObjectPropertySchema} */ -const parserSchema = { +const languageSchema = { merge: "replace", - validate(value) { - - if (!value || typeof value !== "object" || - (typeof value.parse !== "function" && typeof value.parseForESLint !== "function") - ) { - throw new TypeError("Expected object with parse() or parseForESLint() method."); - } - - } + validate: assertIsPluginMemberName }; /** @type {ObjectPropertySchema} */ @@ -506,28 +513,6 @@ const rulesSchema = { } }; -/** @type {ObjectPropertySchema} */ -const ecmaVersionSchema = { - merge: "replace", - validate(value) { - if (typeof value === "number" || value === "latest") { - return; - } - - throw new TypeError("Expected a number or \"latest\"."); - } -}; - -/** @type {ObjectPropertySchema} */ -const sourceTypeSchema = { - merge: "replace", - validate(value) { - if (typeof value !== "string" || !/^(?:script|module|commonjs)$/u.test(value)) { - throw new TypeError("Expected \"script\", \"module\", or \"commonjs\"."); - } - } -}; - /** * Creates a schema that always throws an error. Useful for warning * about eslintrc-style keys. @@ -573,15 +558,8 @@ const flatConfigSchema = { reportUnusedDisableDirectives: disableDirectiveSeveritySchema } }, - languageOptions: { - schema: { - ecmaVersion: ecmaVersionSchema, - sourceType: sourceTypeSchema, - globals: globalsSchema, - parser: parserSchema, - parserOptions: deepObjectAssignSchema - } - }, + language: languageSchema, + languageOptions: languageOptionsSchema, processor: processorSchema, plugins: pluginsSchema, rules: rulesSchema @@ -593,6 +571,6 @@ const flatConfigSchema = { module.exports = { flatConfigSchema, - assertIsRuleSeverity, - assertIsRuleOptions + hasMethod, + assertIsRuleSeverity }; diff --git a/node_modules/eslint/lib/config/rule-validator.js b/node_modules/eslint/lib/config/rule-validator.js index eee5b40b..3b4ea612 100644 --- a/node_modules/eslint/lib/config/rule-validator.js +++ b/node_modules/eslint/lib/config/rule-validator.js @@ -66,6 +66,25 @@ function throwRuleNotFoundError({ pluginName, ruleName }, config) { throw new TypeError(errorMessage); } +/** + * The error type when a rule has an invalid `meta.schema`. + */ +class InvalidRuleOptionsSchemaError extends Error { + + /** + * Creates a new instance. + * @param {string} ruleId Id of the rule that has an invalid `meta.schema`. + * @param {Error} processingError Error caught while processing the `meta.schema`. + */ + constructor(ruleId, processingError) { + super( + `Error while processing options validation schema of rule '${ruleId}': ${processingError.message}`, + { cause: processingError } + ); + this.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; + } +} + //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- @@ -130,10 +149,14 @@ class RuleValidator { // Precompile and cache validator the first time if (!this.validators.has(rule)) { - const schema = getRuleOptionsSchema(rule); - - if (schema) { - this.validators.set(rule, ajv.compile(schema)); + try { + const schema = getRuleOptionsSchema(rule); + + if (schema) { + this.validators.set(rule, ajv.compile(schema)); + } + } catch (err) { + throw new InvalidRuleOptionsSchemaError(ruleId, err); } } @@ -144,9 +167,22 @@ class RuleValidator { validateRule(ruleOptions.slice(1)); if (validateRule.errors) { - throw new Error(`Key "rules": Key "${ruleId}": ${ + throw new Error(`Key "rules": Key "${ruleId}":\n${ validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` + error => { + if ( + error.keyword === "additionalProperties" && + error.schema === false && + typeof error.parentSchema?.properties === "object" && + typeof error.params?.additionalProperty === "string" + ) { + const expectedProperties = Object.keys(error.parentSchema.properties).map(property => `"${property}"`); + + return `\tValue ${JSON.stringify(error.data)} ${error.message}.\n\t\tUnexpected property "${error.params.additionalProperty}". Expected properties: ${expectedProperties.join(", ")}.\n`; + } + + return `\tValue ${JSON.stringify(error.data)} ${error.message}.\n`; + } ).join("") }`); } diff --git a/node_modules/eslint/lib/eslint/eslint-helpers.js b/node_modules/eslint/lib/eslint/eslint-helpers.js index 3c65d11b..c8445100 100644 --- a/node_modules/eslint/lib/eslint/eslint-helpers.js +++ b/node_modules/eslint/lib/eslint/eslint-helpers.js @@ -9,15 +9,13 @@ // Requirements //----------------------------------------------------------------------------- -const path = require("path"); -const fs = require("fs"); +const path = require("node:path"); +const fs = require("node:fs"); const fsp = fs.promises; const isGlob = require("is-glob"); const hash = require("../cli-engine/hash"); const minimatch = require("minimatch"); -const fswalk = require("@nodelib/fs.walk"); const globParent = require("glob-parent"); -const isPathInside = require("is-path-inside"); //----------------------------------------------------------------------------- // Fixup references @@ -91,7 +89,7 @@ class AllFilesIgnoredError extends Error { */ constructor(pattern) { super(`All files matched by '${pattern}' are ignored.`); - this.messageTemplate = "all-files-ignored"; + this.messageTemplate = "all-matched-files-ignored"; this.messageData = { pattern }; } } @@ -103,20 +101,30 @@ class AllFilesIgnoredError extends Error { /** * Check if a given value is a non-empty string or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is a non-empty string. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is a non-empty string. */ -function isNonEmptyString(x) { - return typeof x === "string" && x.trim() !== ""; +function isNonEmptyString(value) { + return typeof value === "string" && value.trim() !== ""; } /** * Check if a given value is an array of non-empty strings or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is an array of non-empty strings. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is an array of non-empty strings. + */ +function isArrayOfNonEmptyString(value) { + return Array.isArray(value) && value.length && value.every(isNonEmptyString); +} + +/** + * Check if a given value is an empty array or an array of non-empty strings. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is an empty array or an array of non-empty + * strings. */ -function isArrayOfNonEmptyString(x) { - return Array.isArray(x) && x.every(isNonEmptyString); +function isEmptyArrayOrArrayOfNonEmptyString(value) { + return Array.isArray(value) && value.every(isNonEmptyString); } //----------------------------------------------------------------------------- @@ -147,34 +155,29 @@ function isGlobPattern(pattern) { * Used primarily to help with useful error messages. * @param {Object} options The options for the function. * @param {string} options.basePath The directory to search. - * @param {string} options.pattern A glob pattern to match. + * @param {string} options.pattern An absolute path glob pattern to match. * @returns {Promise} True if there is a glob match, false if not. */ -function globMatch({ basePath, pattern }) { +async function globMatch({ basePath, pattern }) { let found = false; - const patternToUse = path.isAbsolute(pattern) - ? normalizeToPosix(path.relative(basePath, pattern)) - : pattern; + const { hfs } = await import("@humanfs/node"); + const patternToUse = normalizeToPosix(path.relative(basePath, pattern)); const matcher = new Minimatch(patternToUse, MINIMATCH_OPTIONS); - const fsWalkSettings = { + const walkSettings = { - deepFilter(entry) { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - return !found && matcher.match(relativePath, true); + directoryFilter(entry) { + return !found && matcher.match(entry.path, true); }, entryFilter(entry) { - if (found || entry.dirent.isDirectory()) { + if (found || entry.isDirectory) { return false; } - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - if (matcher.match(relativePath)) { + if (matcher.match(entry.path)) { found = true; return true; } @@ -183,25 +186,11 @@ function globMatch({ basePath, pattern }) { } }; - return new Promise(resolve => { - - // using a stream so we can exit early because we just need one match - const globStream = fswalk.walkStream(basePath, fsWalkSettings); - - globStream.on("data", () => { - globStream.destroy(); - resolve(true); - }); - - // swallow errors as they're not important here - globStream.on("error", () => { }); - - globStream.on("end", () => { - resolve(false); - }); - globStream.read(); - }); + if (await hfs.isDirectory(basePath)) { + return hfs.walk(basePath, walkSettings).next().then(() => found); + } + return found; } /** @@ -211,11 +200,11 @@ function globMatch({ basePath, pattern }) { * ESLint. * @param {Object} options The options for this function. * @param {string} options.basePath The directory to search. - * @param {Array} options.patterns An array of glob patterns + * @param {Array} options.patterns An array of absolute path glob patterns * to match. * @param {Array} options.rawPatterns An array of glob patterns * as the user inputted them. Used for errors. - * @param {FlatConfigArray} options.configs The config array to use for + * @param {ConfigLoader|LegacyConfigLoader} options.configLoader The config array to use for * determining what to ignore. * @param {boolean} options.errorOnUnmatchedPattern Determines if an error * should be thrown when a pattern is unmatched. @@ -228,7 +217,7 @@ async function globSearch({ basePath, patterns, rawPatterns, - configs, + configLoader, errorOnUnmatchedPattern }) { @@ -250,9 +239,7 @@ async function globSearch({ */ const relativeToPatterns = new Map(); const matchers = patterns.map((pattern, i) => { - const patternToUse = path.isAbsolute(pattern) - ? normalizeToPosix(path.relative(basePath, pattern)) - : pattern; + const patternToUse = normalizeToPosix(path.relative(basePath, pattern)); relativeToPatterns.set(patternToUse, patterns[i]); @@ -267,94 +254,76 @@ async function globSearch({ * search. */ const unmatchedPatterns = new Set([...relativeToPatterns.keys()]); + const { hfs } = await import("@humanfs/node"); - const filePaths = (await new Promise((resolve, reject) => { - - let promiseRejected = false; + const walk = hfs.walk( + basePath, + { + async directoryFilter(entry) { - /** - * Wraps a boolean-returning filter function. The wrapped function will reject the promise if an error occurs. - * @param {Function} filter A filter function to wrap. - * @returns {Function} A function similar to the wrapped filter that rejects the promise if an error occurs. - */ - function wrapFilter(filter) { - return (...args) => { - - // No need to run the filter if an error has been thrown. - if (!promiseRejected) { - try { - return filter(...args); - } catch (error) { - promiseRejected = true; - reject(error); - } + if (!matchers.some(matcher => matcher.match(entry.path, true))) { + return false; } - return false; - }; - } - fswalk.walk( - basePath, - { - deepFilter: wrapFilter(entry => { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - const matchesPattern = matchers.some(matcher => matcher.match(relativePath, true)); - - return matchesPattern && !configs.isDirectoryIgnored(entry.path); - }), - entryFilter: wrapFilter(entry => { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - // entries may be directories or files so filter out directories - if (entry.dirent.isDirectory()) { - return false; - } - - /* - * Optimization: We need to track when patterns are left unmatched - * and so we use `unmatchedPatterns` to do that. There is a bit of - * complexity here because the same file can be matched by more than - * one pattern. So, when we start, we actually need to test every - * pattern against every file. Once we know there are no remaining - * unmatched patterns, then we can switch to just looking for the - * first matching pattern for improved speed. - */ - const matchesPattern = unmatchedPatterns.size > 0 - ? matchers.reduce((previousValue, matcher) => { - const pathMatches = matcher.match(relativePath); - - /* - * We updated the unmatched patterns set only if the path - * matches and the file isn't ignored. If the file is - * ignored, that means there wasn't a match for the - * pattern so it should not be removed. - * - * Performance note: isFileIgnored() aggressively caches - * results so there is no performance penalty for calling - * it twice with the same argument. - */ - if (pathMatches && !configs.isFileIgnored(entry.path)) { - unmatchedPatterns.delete(matcher.pattern); - } - - return pathMatches || previousValue; - }, false) - : matchers.some(matcher => matcher.match(relativePath)); - - return matchesPattern && !configs.isFileIgnored(entry.path); - }) + const absolutePath = path.resolve(basePath, entry.path); + const configs = await configLoader.loadConfigArrayForDirectory(absolutePath); + + return !configs.isDirectoryIgnored(absolutePath); }, - (error, entries) => { + async entryFilter(entry) { + const absolutePath = path.resolve(basePath, entry.path); - // If the promise is already rejected, calling `resolve` or `reject` will do nothing. - if (error) { - reject(error); - } else { - resolve(entries); + // entries may be directories or files so filter out directories + if (entry.isDirectory) { + return false; } + + const configs = await configLoader.loadConfigArrayForFile(absolutePath); + const config = configs.getConfig(absolutePath); + + /* + * Optimization: We need to track when patterns are left unmatched + * and so we use `unmatchedPatterns` to do that. There is a bit of + * complexity here because the same file can be matched by more than + * one pattern. So, when we start, we actually need to test every + * pattern against every file. Once we know there are no remaining + * unmatched patterns, then we can switch to just looking for the + * first matching pattern for improved speed. + */ + const matchesPattern = unmatchedPatterns.size > 0 + ? matchers.reduce((previousValue, matcher) => { + const pathMatches = matcher.match(entry.path); + + /* + * We updated the unmatched patterns set only if the path + * matches and the file has a config. If the file has no + * config, that means there wasn't a match for the + * pattern so it should not be removed. + * + * Performance note: `getConfig()` aggressively caches + * results so there is no performance penalty for calling + * it multiple times with the same argument. + */ + if (pathMatches && config) { + unmatchedPatterns.delete(matcher.pattern); + } + + return pathMatches || previousValue; + }, false) + : matchers.some(matcher => matcher.match(entry.path)); + + return matchesPattern && config !== void 0; } - ); - })).map(entry => entry.path); + } + ); + + const filePaths = []; + + if (await hfs.isDirectory(basePath)) { + for await (const entry of walk) { + filePaths.push(path.resolve(basePath, entry.path)); + } + } // now check to see if we have any unmatched patterns if (errorOnUnmatchedPattern && unmatchedPatterns.size > 0) { @@ -380,7 +349,7 @@ async function globSearch({ * that were used in the original search. * @param {Array} options.rawPatterns An array of glob patterns * as the user inputted them. Used for errors. - * @param {Array} options.unmatchedPatterns A non-empty array of glob patterns + * @param {Array} options.unmatchedPatterns A non-empty array of absolute path glob patterns * that were unmatched in the original search. * @returns {void} Always throws an error. * @throws {NoFilesFoundError} If the first unmatched pattern @@ -415,15 +384,15 @@ async function throwErrorForUnmatchedPatterns({ * Performs multiple glob searches in parallel. * @param {Object} options The options for this function. * @param {Map} options.searches - * An array of glob patterns to match. - * @param {FlatConfigArray} options.configs The config array to use for + * A map of absolute path glob patterns to match. + * @param {ConfigLoader|LegacyConfigLoader} options.configLoader The config loader to use for * determining what to ignore. * @param {boolean} options.errorOnUnmatchedPattern Determines if an * unmatched glob pattern should throw an error. * @returns {Promise>} An array of matching file paths * or an empty array if there are no matches. */ -async function globMultiSearch({ searches, configs, errorOnUnmatchedPattern }) { +async function globMultiSearch({ searches, configLoader, errorOnUnmatchedPattern }) { /* * For convenience, we normalized the search map into an array of objects. @@ -442,26 +411,25 @@ async function globMultiSearch({ searches, configs, errorOnUnmatchedPattern }) { basePath, patterns, rawPatterns, - configs, + configLoader, errorOnUnmatchedPattern }) ) ); - const filePaths = []; - + /* + * The first loop handles errors from the glob searches. Since we can't + * use `await` inside `flatMap`, we process errors separately in this loop. + * This results in two iterations over `results`, but since the length is + * less than or equal to the number of globs and directories passed on the + * command line, the performance impact should be minimal. + */ for (let i = 0; i < results.length; i++) { const result = results[i]; const currentSearch = normalizedSearches[i]; if (result.status === "fulfilled") { - - // if the search was successful just add the results - if (result.value.length > 0) { - filePaths.push(...result.value); - } - continue; } @@ -484,7 +452,8 @@ async function globMultiSearch({ searches, configs, errorOnUnmatchedPattern }) { } - return filePaths; + // second loop for `fulfulled` results + return results.flatMap(result => result.value); } @@ -495,7 +464,7 @@ async function globMultiSearch({ searches, configs, errorOnUnmatchedPattern }) { * @param {boolean} args.globInputPaths true to interpret glob patterns, * false to not interpret glob patterns. * @param {string} args.cwd The current working directory to find from. - * @param {FlatConfigArray} args.configs The configs for the current run. + * @param {ConfigLoader|LegacyConfigLoader} args.configLoader The config loeader for the current run. * @param {boolean} args.errorOnUnmatchedPattern Determines if an unmatched pattern * should throw an error. * @returns {Promise>} The fully resolved file paths. @@ -506,7 +475,7 @@ async function findFiles({ patterns, globInputPaths, cwd, - configs, + configLoader, errorOnUnmatchedPattern }) { @@ -516,6 +485,42 @@ async function findFiles({ let rawPatterns = []; const searches = new Map([[cwd, { patterns: globbyPatterns, rawPatterns: [] }]]); + /* + * This part is a bit involved because we need to account for + * the different ways that the patterns can match directories. + * For each different way, we need to decide if we should look + * for a config file or just use the default config. (Directories + * without a config file always use the default config.) + * + * Here are the cases: + * + * 1. A directory is passed directly (e.g., "subdir"). In this case, we + * can assume that the user intends to lint this directory and we should + * not look for a config file in the parent directory, because the only + * reason to do that would be to ignore this directory (which we already + * know we don't want to do). Instead, we use the default config until we + * get to the directory that was passed, at which point we start looking + * for config files again. + * + * 2. A dot (".") or star ("*"). In this case, we want to read + * the config file in the current directory because the user is + * explicitly asking to lint the current directory. Note that "." + * will traverse into subdirectories while "*" will not. + * + * 3. A directory is passed in the form of "subdir/subsubdir". + * In this case, we don't want to look for a config file in the + * parent directory ("subdir"). We can skip looking for a config + * file until `entry.depth` is greater than 1 because there's no + * way that the pattern can match `entry.path` yet. + * + * 4. A directory glob pattern is passed (e.g., "subd*"). We want + * this case to act like case 2 because it's unclear whether or not + * any particular directory is meant to be traversed. + * + * 5. A recursive glob pattern is passed (e.g., "**"). We want this + * case to act like case 2. + */ + // check to see if we have explicit files and directories const filePaths = patterns.map(filePath => path.resolve(cwd, filePath)); const stats = await Promise.all( @@ -539,15 +544,10 @@ async function findFiles({ // directories need extensions attached if (stat.isDirectory()) { - // group everything in cwd together and split out others - if (isPathInside(filePath, cwd)) { - ({ patterns: globbyPatterns, rawPatterns } = searches.get(cwd)); - } else { - if (!searches.has(filePath)) { - searches.set(filePath, { patterns: [], rawPatterns: [] }); - } - ({ patterns: globbyPatterns, rawPatterns } = searches.get(filePath)); + if (!searches.has(filePath)) { + searches.set(filePath, { patterns: [], rawPatterns: [] }); } + ({ patterns: globbyPatterns, rawPatterns } = searches.get(filePath)); globbyPatterns.push(`${normalizeToPosix(filePath)}/**`); rawPatterns.push(pattern); @@ -559,17 +559,17 @@ async function findFiles({ // save patterns for later use based on whether globs are enabled if (globInputPaths && isGlobPattern(pattern)) { + /* + * We are grouping patterns by their glob parent. This is done to + * make it easier to determine when a config file should be loaded. + */ + const basePath = path.resolve(cwd, globParent(pattern)); - // group in cwd if possible and split out others - if (isPathInside(basePath, cwd)) { - ({ patterns: globbyPatterns, rawPatterns } = searches.get(cwd)); - } else { - if (!searches.has(basePath)) { - searches.set(basePath, { patterns: [], rawPatterns: [] }); - } - ({ patterns: globbyPatterns, rawPatterns } = searches.get(basePath)); + if (!searches.has(basePath)) { + searches.set(basePath, { patterns: [], rawPatterns: [] }); } + ({ patterns: globbyPatterns, rawPatterns } = searches.get(basePath)); globbyPatterns.push(filePath); rawPatterns.push(pattern); @@ -586,14 +586,14 @@ async function findFiles({ // now we are safe to do the search const globbyResults = await globMultiSearch({ searches, - configs, + configLoader, errorOnUnmatchedPattern }); return [ ...new Set([ ...results, - ...globbyResults.map(filePath => path.resolve(filePath)) + ...globbyResults ]) ]; } @@ -614,23 +614,37 @@ function isErrorMessage(message) { /** * Returns result with warning by ignore settings - * @param {string} filePath File path of checked code + * @param {string} filePath Absolute file path of checked code * @param {string} baseDir Absolute path of base directory + * @param {"ignored"|"external"|"unconfigured"} configStatus A status that determines why the file is ignored * @returns {LintResult} Result with single warning * @private */ -function createIgnoreResult(filePath, baseDir) { +function createIgnoreResult(filePath, baseDir, configStatus) { let message; - const isInNodeModules = baseDir && path.dirname(path.relative(baseDir, filePath)).split(path.sep).includes("node_modules"); - if (isInNodeModules) { - message = "File ignored by default because it is located under the node_modules directory. Use ignore pattern \"!**/node_modules/\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; - } else { - message = "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; + switch (configStatus) { + case "external": + message = "File ignored because outside of base path."; + break; + case "unconfigured": + message = "File ignored because no matching configuration was supplied."; + break; + default: + { + const isInNodeModules = baseDir && path.dirname(path.relative(baseDir, filePath)).split(path.sep).includes("node_modules"); + + if (isInNodeModules) { + message = "File ignored by default because it is located under the node_modules directory. Use ignore pattern \"!**/node_modules/\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; + } else { + message = "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; + } + } + break; } return { - filePath: path.resolve(filePath), + filePath, messages: [ { ruleId: null, @@ -685,9 +699,9 @@ class ESLintInvalidOptionsError extends Error { /** * Validates and normalizes options for the wrapped CLIEngine instance. - * @param {FlatESLintOptions} options The options to process. + * @param {ESLintOptions} options The options to process. * @throws {ESLintInvalidOptionsError} If of any of a variety of type errors. - * @returns {FlatESLintOptions} The normalized options. + * @returns {ESLintOptions} The normalized options. */ function processOptions({ allowInlineConfig = true, // ← we cannot use `overrideConfig.noInlineConfig` instead because `allowInlineConfig` has side-effect that suppress warnings that show inline configs are ignored. @@ -699,13 +713,17 @@ function processOptions({ errorOnUnmatchedPattern = true, fix = false, fixTypes = null, // ← should be null by default because if it's an array then it suppresses rules that don't have the `meta.type` property. + flags = [], globInputPaths = true, ignore = true, ignorePatterns = null, overrideConfig = null, overrideConfigFile = null, plugins = {}, + stats = false, warnIgnored = true, + passOnNoPatterns = false, + ruleFilter = () => true, ...unknownOptions }) { const errors = []; @@ -783,13 +801,16 @@ function processOptions({ if (fixTypes !== null && !isFixTypeArray(fixTypes)) { errors.push("'fixTypes' must be an array of any of \"directive\", \"problem\", \"suggestion\", and \"layout\"."); } + if (!isEmptyArrayOrArrayOfNonEmptyString(flags)) { + errors.push("'flags' must be an array of non-empty strings."); + } if (typeof globInputPaths !== "boolean") { errors.push("'globInputPaths' must be a boolean."); } if (typeof ignore !== "boolean") { errors.push("'ignore' must be a boolean."); } - if (!isArrayOfNonEmptyString(ignorePatterns) && ignorePatterns !== null) { + if (!isEmptyArrayOrArrayOfNonEmptyString(ignorePatterns) && ignorePatterns !== null) { errors.push("'ignorePatterns' must be an array of non-empty strings or null."); } if (typeof overrideConfig !== "object") { @@ -798,6 +819,9 @@ function processOptions({ if (!isNonEmptyString(overrideConfigFile) && overrideConfigFile !== null && overrideConfigFile !== true) { errors.push("'overrideConfigFile' must be a non-empty string, null, or true."); } + if (typeof passOnNoPatterns !== "boolean") { + errors.push("'passOnNoPatterns' must be a boolean."); + } if (typeof plugins !== "object") { errors.push("'plugins' must be an object or null."); } else if (plugins !== null && Object.keys(plugins).includes("")) { @@ -806,9 +830,15 @@ function processOptions({ if (Array.isArray(plugins)) { errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead."); } + if (typeof stats !== "boolean") { + errors.push("'stats' must be a boolean."); + } if (typeof warnIgnored !== "boolean") { errors.push("'warnIgnored' must be a boolean."); } + if (typeof ruleFilter !== "function") { + errors.push("'ruleFilter' must be a function."); + } if (errors.length > 0) { throw new ESLintInvalidOptionsError(errors); } @@ -827,10 +857,14 @@ function processOptions({ errorOnUnmatchedPattern, fix, fixTypes, + flags: [...flags], globInputPaths, ignore, ignorePatterns, - warnIgnored + stats, + passOnNoPatterns, + warnIgnored, + ruleFilter }; } @@ -917,7 +951,6 @@ function getCacheFile(cacheFile, cwd) { //----------------------------------------------------------------------------- module.exports = { - isGlobPattern, findFiles, isNonEmptyString, diff --git a/node_modules/eslint/lib/eslint/eslint.js b/node_modules/eslint/lib/eslint/eslint.js index 7085d5a4..c91a376f 100644 --- a/node_modules/eslint/lib/eslint/eslint.js +++ b/node_modules/eslint/lib/eslint/eslint.js @@ -1,7 +1,6 @@ /** - * @fileoverview Main API Class - * @author Kai Cataldo - * @author Toru Nagashima + * @fileoverview Main class using flat config + * @author Nicholas C. Zakas */ "use strict"; @@ -10,314 +9,143 @@ // Requirements //------------------------------------------------------------------------------ -const path = require("path"); -const fs = require("fs"); -const { promisify } = require("util"); -const { CLIEngine, getCLIEngineInternalSlots } = require("../cli-engine/cli-engine"); -const BuiltinRules = require("../rules"); +const fs = require("node:fs/promises"); +const { existsSync } = require("node:fs"); +const path = require("node:path"); +const { version } = require("../../package.json"); +const { Linter } = require("../linter"); +const { getRuleFromConfig } = require("../config/flat-config-helpers"); +const { defaultConfig } = require("../config/default-config"); const { Legacy: { ConfigOps: { getRuleSeverity - } + }, + ModuleResolver, + naming } } = require("@eslint/eslintrc"); -const { version } = require("../../package.json"); + +const { + findFiles, + getCacheFile, + + isNonEmptyString, + isArrayOfNonEmptyString, + + createIgnoreResult, + isErrorMessage, + + processOptions +} = require("./eslint-helpers"); +const { pathToFileURL } = require("node:url"); +const LintResultCache = require("../cli-engine/lint-result-cache"); +const { Retrier } = require("@humanwhocodes/retry"); +const { ConfigLoader, LegacyConfigLoader } = require("../config/config-loader"); + +/* + * This is necessary to allow overwriting writeFile for testing purposes. + * We can just use fs/promises once we drop Node.js 12 support. + */ //------------------------------------------------------------------------------ // Typedefs //------------------------------------------------------------------------------ -/** @typedef {import("../cli-engine/cli-engine").LintReport} CLIEngineLintReport */ -/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ +// For VSCode IntelliSense +/** @typedef {import("../cli-engine/cli-engine").ConfigArray} ConfigArray */ /** @typedef {import("../shared/types").ConfigData} ConfigData */ +/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ /** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */ -/** @typedef {import("../shared/types").Plugin} Plugin */ -/** @typedef {import("../shared/types").Rule} Rule */ /** @typedef {import("../shared/types").LintResult} LintResult */ +/** @typedef {import("../shared/types").ParserOptions} ParserOptions */ +/** @typedef {import("../shared/types").Plugin} Plugin */ /** @typedef {import("../shared/types").ResultsMeta} ResultsMeta */ - -/** - * The main formatter object. - * @typedef LoadedFormatter - * @property {(results: LintResult[], resultsMeta: ResultsMeta) => string | Promise} format format function. - */ +/** @typedef {import("../shared/types").RuleConf} RuleConf */ +/** @typedef {import("../shared/types").Rule} Rule */ +/** @typedef {ReturnType} ExtractedConfig */ +/** @typedef {import('../cli-engine/cli-engine').CLIEngine} CLIEngine */ +/** @typedef {import('./legacy-eslint').CLIEngineLintReport} CLIEngineLintReport */ /** * The options with which to configure the ESLint instance. * @typedef {Object} ESLintOptions * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. - * @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this instance + * @property {ConfigData|Array} [baseConfig] Base config, extended by all configs used with this instance * @property {boolean} [cache] Enable result caching. * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. * @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files. * @property {string} [cwd] The value to use for the current working directory. * @property {boolean} [errorOnUnmatchedPattern] If `false` then `ESLint#lintFiles()` doesn't throw even if no target files found. Defaults to `true`. - * @property {string[]} [extensions] An array of file extensions to check. * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. * @property {string[]} [fixTypes] Array of rule types to apply fixes for. + * @property {string[]} [flags] Array of feature flags to enable. * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} [ignore] False disables use of .eslintignore. - * @property {string} [ignorePath] The ignore file to use instead of .eslintignore. - * @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance - * @property {string} [overrideConfigFile] The configuration file to use. - * @property {Record|null} [plugins] Preloaded plugins. This is a map-like object, keys are plugin IDs and each value is implementation. - * @property {"error" | "warn" | "off"} [reportUnusedDisableDirectives] the severity to report unused eslint-disable directives. - * @property {string} [resolvePluginsRelativeTo] The folder where plugins should be resolved from, defaulting to the CWD. - * @property {string[]} [rulePaths] An array of directories to load custom rules from. - * @property {boolean} [useEslintrc] False disables looking for .eslintrc.* files. - */ - -/** - * A rules metadata object. - * @typedef {Object} RulesMeta - * @property {string} id The plugin ID. - * @property {Object} definition The plugin definition. - */ - -/** - * Private members for the `ESLint` instance. - * @typedef {Object} ESLintPrivateMembers - * @property {CLIEngine} cliEngine The wrapped CLIEngine instance. - * @property {ESLintOptions} options The options used to instantiate the ESLint instance. + * @property {boolean} [ignore] False disables all ignore patterns except for the default ones. + * @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to config ignores. These patterns are relative to `cwd`. + * @property {ConfigData|Array} [overrideConfig] Override config, overrides all configs used with this instance + * @property {boolean|string} [overrideConfigFile] Searches for default config file when falsy; + * doesn't do any config file lookup when `true`; considered to be a config filename + * when a string. + * @property {Record} [plugins] An array of plugin implementations. + * @property {boolean} [stats] True enables added statistics on lint results. + * @property {boolean} [warnIgnored] Show warnings when the file list includes ignored files + * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause + * the linting operation to short circuit and not report any failures. */ //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ -const writeFile = promisify(fs.writeFile); +const debug = require("debug")("eslint:eslint"); +const privateMembers = new WeakMap(); +const removedFormatters = new Set([ + "checkstyle", + "codeframe", + "compact", + "jslint-xml", + "junit", + "table", + "tap", + "unix", + "visualstudio" +]); /** - * The map with which to store private class members. - * @type {WeakMap} + * It will calculate the error and warning count for collection of messages per file + * @param {LintMessage[]} messages Collection of messages + * @returns {Object} Contains the stats + * @private */ -const privateMembersMap = new WeakMap(); - -/** - * Check if a given value is a non-empty string or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is a non-empty string. - */ -function isNonEmptyString(x) { - return typeof x === "string" && x.trim() !== ""; -} - -/** - * Check if a given value is an array of non-empty strings or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is an array of non-empty strings. - */ -function isArrayOfNonEmptyString(x) { - return Array.isArray(x) && x.every(isNonEmptyString); -} - -/** - * Check if a given value is a valid fix type or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is valid fix type. - */ -function isFixType(x) { - return x === "directive" || x === "problem" || x === "suggestion" || x === "layout"; -} - -/** - * Check if a given value is an array of fix types or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is an array of fix types. - */ -function isFixTypeArray(x) { - return Array.isArray(x) && x.every(isFixType); -} - -/** - * The error for invalid options. - */ -class ESLintInvalidOptionsError extends Error { - constructor(messages) { - super(`Invalid Options:\n- ${messages.join("\n- ")}`); - this.code = "ESLINT_INVALID_OPTIONS"; - Error.captureStackTrace(this, ESLintInvalidOptionsError); - } -} - -/** - * Validates and normalizes options for the wrapped CLIEngine instance. - * @param {ESLintOptions} options The options to process. - * @throws {ESLintInvalidOptionsError} If of any of a variety of type errors. - * @returns {ESLintOptions} The normalized options. - */ -function processOptions({ - allowInlineConfig = true, // ← we cannot use `overrideConfig.noInlineConfig` instead because `allowInlineConfig` has side-effect that suppress warnings that show inline configs are ignored. - baseConfig = null, - cache = false, - cacheLocation = ".eslintcache", - cacheStrategy = "metadata", - cwd = process.cwd(), - errorOnUnmatchedPattern = true, - extensions = null, // ← should be null by default because if it's an array then it suppresses RFC20 feature. - fix = false, - fixTypes = null, // ← should be null by default because if it's an array then it suppresses rules that don't have the `meta.type` property. - globInputPaths = true, - ignore = true, - ignorePath = null, // ← should be null by default because if it's a string then it may throw ENOENT. - overrideConfig = null, - overrideConfigFile = null, - plugins = {}, - reportUnusedDisableDirectives = null, // ← should be null by default because if it's a string then it overrides the 'reportUnusedDisableDirectives' setting in config files. And we cannot use `overrideConfig.reportUnusedDisableDirectives` instead because we cannot configure the `error` severity with that. - resolvePluginsRelativeTo = null, // ← should be null by default because if it's a string then it suppresses RFC47 feature. - rulePaths = [], - useEslintrc = true, - ...unknownOptions -}) { - const errors = []; - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length >= 1) { - errors.push(`Unknown options: ${unknownOptionKeys.join(", ")}`); - if (unknownOptionKeys.includes("cacheFile")) { - errors.push("'cacheFile' has been removed. Please use the 'cacheLocation' option instead."); - } - if (unknownOptionKeys.includes("configFile")) { - errors.push("'configFile' has been removed. Please use the 'overrideConfigFile' option instead."); - } - if (unknownOptionKeys.includes("envs")) { - errors.push("'envs' has been removed. Please use the 'overrideConfig.env' option instead."); - } - if (unknownOptionKeys.includes("globals")) { - errors.push("'globals' has been removed. Please use the 'overrideConfig.globals' option instead."); - } - if (unknownOptionKeys.includes("ignorePattern")) { - errors.push("'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead."); - } - if (unknownOptionKeys.includes("parser")) { - errors.push("'parser' has been removed. Please use the 'overrideConfig.parser' option instead."); - } - if (unknownOptionKeys.includes("parserOptions")) { - errors.push("'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead."); - } - if (unknownOptionKeys.includes("rules")) { - errors.push("'rules' has been removed. Please use the 'overrideConfig.rules' option instead."); - } - } - if (typeof allowInlineConfig !== "boolean") { - errors.push("'allowInlineConfig' must be a boolean."); - } - if (typeof baseConfig !== "object") { - errors.push("'baseConfig' must be an object or null."); - } - if (typeof cache !== "boolean") { - errors.push("'cache' must be a boolean."); - } - if (!isNonEmptyString(cacheLocation)) { - errors.push("'cacheLocation' must be a non-empty string."); - } - if ( - cacheStrategy !== "metadata" && - cacheStrategy !== "content" - ) { - errors.push("'cacheStrategy' must be any of \"metadata\", \"content\"."); - } - if (!isNonEmptyString(cwd) || !path.isAbsolute(cwd)) { - errors.push("'cwd' must be an absolute path."); - } - if (typeof errorOnUnmatchedPattern !== "boolean") { - errors.push("'errorOnUnmatchedPattern' must be a boolean."); - } - if (!isArrayOfNonEmptyString(extensions) && extensions !== null) { - errors.push("'extensions' must be an array of non-empty strings or null."); - } - if (typeof fix !== "boolean" && typeof fix !== "function") { - errors.push("'fix' must be a boolean or a function."); - } - if (fixTypes !== null && !isFixTypeArray(fixTypes)) { - errors.push("'fixTypes' must be an array of any of \"directive\", \"problem\", \"suggestion\", and \"layout\"."); - } - if (typeof globInputPaths !== "boolean") { - errors.push("'globInputPaths' must be a boolean."); - } - if (typeof ignore !== "boolean") { - errors.push("'ignore' must be a boolean."); - } - if (!isNonEmptyString(ignorePath) && ignorePath !== null) { - errors.push("'ignorePath' must be a non-empty string or null."); - } - if (typeof overrideConfig !== "object") { - errors.push("'overrideConfig' must be an object or null."); - } - if (!isNonEmptyString(overrideConfigFile) && overrideConfigFile !== null) { - errors.push("'overrideConfigFile' must be a non-empty string or null."); - } - if (typeof plugins !== "object") { - errors.push("'plugins' must be an object or null."); - } else if (plugins !== null && Object.keys(plugins).includes("")) { - errors.push("'plugins' must not include an empty string."); - } - if (Array.isArray(plugins)) { - errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead."); - } - if ( - reportUnusedDisableDirectives !== "error" && - reportUnusedDisableDirectives !== "warn" && - reportUnusedDisableDirectives !== "off" && - reportUnusedDisableDirectives !== null - ) { - errors.push("'reportUnusedDisableDirectives' must be any of \"error\", \"warn\", \"off\", and null."); - } - if ( - !isNonEmptyString(resolvePluginsRelativeTo) && - resolvePluginsRelativeTo !== null - ) { - errors.push("'resolvePluginsRelativeTo' must be a non-empty string or null."); - } - if (!isArrayOfNonEmptyString(rulePaths)) { - errors.push("'rulePaths' must be an array of non-empty strings."); - } - if (typeof useEslintrc !== "boolean") { - errors.push("'useEslintrc' must be a boolean."); - } - - if (errors.length > 0) { - throw new ESLintInvalidOptionsError(errors); - } - - return { - allowInlineConfig, - baseConfig, - cache, - cacheLocation, - cacheStrategy, - configFile: overrideConfigFile, - cwd: path.normalize(cwd), - errorOnUnmatchedPattern, - extensions, - fix, - fixTypes, - globInputPaths, - ignore, - ignorePath, - reportUnusedDisableDirectives, - resolvePluginsRelativeTo, - rulePaths, - useEslintrc +function calculateStatsPerFile(messages) { + const stat = { + errorCount: 0, + fatalErrorCount: 0, + warningCount: 0, + fixableErrorCount: 0, + fixableWarningCount: 0 }; -} -/** - * Check if a value has one or more properties and that value is not undefined. - * @param {any} obj The value to check. - * @returns {boolean} `true` if `obj` has one or more properties that that value is not undefined. - */ -function hasDefinedProperty(obj) { - if (typeof obj === "object" && obj !== null) { - for (const key in obj) { - if (typeof obj[key] !== "undefined") { - return true; + for (let i = 0; i < messages.length; i++) { + const message = messages[i]; + + if (message.fatal || message.severity === 2) { + stat.errorCount++; + if (message.fatal) { + stat.fatalErrorCount++; + } + if (message.fix) { + stat.fixableErrorCount++; + } + } else { + stat.warningCount++; + if (message.fix) { + stat.fixableWarningCount++; } } } - return false; + return stat; } /** @@ -332,62 +160,74 @@ function createRulesMeta(rules) { }, {}); } +/** + * Return the absolute path of a file named `"__placeholder__.js"` in a given directory. + * This is used as a replacement for a missing file path. + * @param {string} cwd An absolute directory path. + * @returns {string} The absolute path of a file named `"__placeholder__.js"` in the given directory. + */ +function getPlaceholderPath(cwd) { + return path.join(cwd, "__placeholder__.js"); +} + /** @type {WeakMap} */ const usedDeprecatedRulesCache = new WeakMap(); /** * Create used deprecated rule list. - * @param {CLIEngine} cliEngine The CLIEngine instance. + * @param {CLIEngine} eslint The CLIEngine instance. * @param {string} maybeFilePath The absolute path to a lint target file or `""`. * @returns {DeprecatedRuleInfo[]} The used deprecated rule list. */ -function getOrFindUsedDeprecatedRules(cliEngine, maybeFilePath) { +function getOrFindUsedDeprecatedRules(eslint, maybeFilePath) { const { - configArrayFactory, - options: { cwd } - } = getCLIEngineInternalSlots(cliEngine); + options: { cwd }, + configLoader + } = privateMembers.get(eslint); const filePath = path.isAbsolute(maybeFilePath) ? maybeFilePath - : path.join(cwd, "__placeholder__.js"); - const configArray = configArrayFactory.getConfigArrayForFile(filePath); - const config = configArray.extractConfig(filePath); + : getPlaceholderPath(cwd); + const configs = configLoader.getCachedConfigArrayForFile(filePath); + const config = configs.getConfig(filePath); // Most files use the same config, so cache it. - if (!usedDeprecatedRulesCache.has(config)) { - const pluginRules = configArray.pluginRules; + if (config && !usedDeprecatedRulesCache.has(config)) { const retv = []; - for (const [ruleId, ruleConf] of Object.entries(config.rules)) { - if (getRuleSeverity(ruleConf) === 0) { - continue; - } - const rule = pluginRules.get(ruleId) || BuiltinRules.get(ruleId); - const meta = rule && rule.meta; - - if (meta && meta.deprecated) { - retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); + if (config.rules) { + for (const [ruleId, ruleConf] of Object.entries(config.rules)) { + if (getRuleSeverity(ruleConf) === 0) { + continue; + } + const rule = getRuleFromConfig(ruleId, config); + const meta = rule && rule.meta; + + if (meta && meta.deprecated) { + retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); + } } } + usedDeprecatedRulesCache.set(config, Object.freeze(retv)); } - return usedDeprecatedRulesCache.get(config); + return config ? usedDeprecatedRulesCache.get(config) : Object.freeze([]); } /** * Processes the linting results generated by a CLIEngine linting report to * match the ESLint class's API. - * @param {CLIEngine} cliEngine The CLIEngine instance. + * @param {CLIEngine} eslint The CLIEngine instance. * @param {CLIEngineLintReport} report The CLIEngine linting report to process. * @returns {LintResult[]} The processed linting results. */ -function processCLIEngineLintReport(cliEngine, { results }) { +function processLintReport(eslint, { results }) { const descriptor = { configurable: true, enumerable: true, get() { - return getOrFindUsedDeprecatedRules(cliEngine, this.filePath); + return getOrFindUsedDeprecatedRules(eslint, this.filePath); } }; @@ -416,45 +256,264 @@ function compareResultsByFilePath(a, b) { return 0; } + +/** + * Determines which config file to use. This is determined by seeing if an + * override config file was passed, and if so, using it; otherwise, as long + * as override config file is not explicitly set to `false`, it will search + * upwards from the cwd for a file named `eslint.config.js`. + * + * This function is used primarily by the `--inspect-config` option. For now, + * we will maintain the existing behavior, which is to search up from the cwd. + * @param {ESLintOptions} options The ESLint instance options. + * @param {boolean} allowTS `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. + * @returns {Promise<{configFilePath:string|undefined;basePath:string}>} Location information for + * the config file. + */ +async function locateConfigFileToUse({ configFile, cwd }, allowTS) { + + const configLoader = new ConfigLoader({ + cwd, + allowTS, + configFile + }); + + const configFilePath = await configLoader.findConfigFileForPath(path.join(cwd, "__placeholder__.js")); + + if (!configFilePath) { + throw new Error("No ESLint configuration file was found."); + } + + return { + configFilePath, + basePath: configFile ? cwd : path.dirname(configFilePath) + }; +} + +/** + * Processes an source code using ESLint. + * @param {Object} config The config object. + * @param {string} config.text The source code to verify. + * @param {string} config.cwd The path to the current working directory. + * @param {string|undefined} config.filePath The path to the file of `text`. If this is undefined, it uses ``. + * @param {FlatConfigArray} config.configs The config. + * @param {boolean} config.fix If `true` then it does fix. + * @param {boolean} config.allowInlineConfig If `true` then it uses directive comments. + * @param {Function} config.ruleFilter A predicate function to filter which rules should be run. + * @param {boolean} config.stats If `true`, then if reports extra statistics with the lint results. + * @param {Linter} config.linter The linter instance to verify. + * @returns {LintResult} The result of linting. + * @private + */ +function verifyText({ + text, + cwd, + filePath: providedFilePath, + configs, + fix, + allowInlineConfig, + ruleFilter, + stats, + linter +}) { + const filePath = providedFilePath || ""; + + debug(`Lint ${filePath}`); + + /* + * Verify. + * `config.extractConfig(filePath)` requires an absolute path, but `linter` + * doesn't know CWD, so it gives `linter` an absolute path always. + */ + const filePathToVerify = filePath === "" ? getPlaceholderPath(cwd) : filePath; + const { fixed, messages, output } = linter.verifyAndFix( + text, + configs, + { + allowInlineConfig, + filename: filePathToVerify, + fix, + ruleFilter, + stats, + + /** + * Check if the linter should adopt a given code block or not. + * @param {string} blockFilename The virtual filename of a code block. + * @returns {boolean} `true` if the linter should adopt the code block. + */ + filterCodeBlock(blockFilename) { + return configs.getConfig(blockFilename) !== void 0; + } + } + ); + + // Tweak and return. + const result = { + filePath: filePath === "" ? filePath : path.resolve(filePath), + messages, + suppressedMessages: linter.getSuppressedMessages(), + ...calculateStatsPerFile(messages) + }; + + if (fixed) { + result.output = output; + } + + if ( + result.errorCount + result.warningCount > 0 && + typeof result.output === "undefined" + ) { + result.source = text; + } + + if (stats) { + result.stats = { + times: linter.getTimes(), + fixPasses: linter.getFixPassCount() + }; + } + + return result; +} + +/** + * Checks whether a message's rule type should be fixed. + * @param {LintMessage} message The message to check. + * @param {FlatConfig} config The config for the file that generated the message. + * @param {string[]} fixTypes An array of fix types to check. + * @returns {boolean} Whether the message should be fixed. + */ +function shouldMessageBeFixed(message, config, fixTypes) { + if (!message.ruleId) { + return fixTypes.has("directive"); + } + + const rule = message.ruleId && getRuleFromConfig(message.ruleId, config); + + return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type)); +} + +/** + * Creates an error to be thrown when an array of results passed to `getRulesMetaForResults` was not created by the current engine. + * @returns {TypeError} An error object. + */ +function createExtraneousResultsError() { + return new TypeError("Results object was not created from this ESLint instance."); +} + +/** + * Creates a fixer function based on the provided fix, fixTypesSet, and config. + * @param {Function|boolean} fix The original fix option. + * @param {Set} fixTypesSet A set of fix types to filter messages for fixing. + * @param {FlatConfig} config The config for the file that generated the message. + * @returns {Function|boolean} The fixer function or the original fix value. + */ +function getFixerForFixTypes(fix, fixTypesSet, config) { + if (!fix || !fixTypesSet) { + return fix; + } + + const originalFix = (typeof fix === "function") ? fix : () => true; + + return message => shouldMessageBeFixed(message, config, fixTypesSet) && originalFix(message); +} + +//----------------------------------------------------------------------------- +// Main API +//----------------------------------------------------------------------------- + /** - * Main API. + * Primary Node.js API for ESLint. */ class ESLint { + /** + * The type of configuration used by this class. + * @type {string} + */ + static configType = "flat"; + + /** + * The loader to use for finding config files. + * @type {ConfigLoader|LegacyConfigLoader} + */ + #configLoader; + /** * Creates a new instance of the main ESLint API. * @param {ESLintOptions} options The options for this instance. */ constructor(options = {}) { + + const defaultConfigs = []; const processedOptions = processOptions(options); - const cliEngine = new CLIEngine(processedOptions, { preloadedPlugins: options.plugins }); - const { - configArrayFactory, - lastConfigArrays - } = getCLIEngineInternalSlots(cliEngine); - let updated = false; + const linter = new Linter({ + cwd: processedOptions.cwd, + configType: "flat", + flags: processedOptions.flags + }); - /* - * Address `overrideConfig` to set override config. - * Operate the `configArrayFactory` internal slot directly because this - * functionality doesn't exist as the public API of CLIEngine. + const cacheFilePath = getCacheFile( + processedOptions.cacheLocation, + processedOptions.cwd + ); + + const lintResultCache = processedOptions.cache + ? new LintResultCache(cacheFilePath, processedOptions.cacheStrategy) + : null; + + const configLoaderOptions = { + cwd: processedOptions.cwd, + baseConfig: processedOptions.baseConfig, + overrideConfig: processedOptions.overrideConfig, + configFile: processedOptions.configFile, + ignoreEnabled: processedOptions.ignore, + ignorePatterns: processedOptions.ignorePatterns, + defaultConfigs, + allowTS: processedOptions.flags.includes("unstable_ts_config") + }; + + this.#configLoader = processedOptions.flags.includes("unstable_config_lookup_from_file") + ? new ConfigLoader(configLoaderOptions) + : new LegacyConfigLoader(configLoaderOptions); + + debug(`Using config loader ${this.#configLoader.constructor.name}`); + + privateMembers.set(this, { + options: processedOptions, + linter, + cacheFilePath, + lintResultCache, + defaultConfigs, + configs: null, + configLoader: this.#configLoader + }); + + + /** + * If additional plugins are passed in, add that to the default + * configs for this instance. */ - if (hasDefinedProperty(options.overrideConfig)) { - configArrayFactory.setOverrideConfig(options.overrideConfig); - updated = true; - } + if (options.plugins) { + + const plugins = {}; + + for (const [pluginName, plugin] of Object.entries(options.plugins)) { + plugins[naming.getShorthandName(pluginName, "eslint-plugin")] = plugin; + } - // Update caches. - if (updated) { - configArrayFactory.clearCache(); - lastConfigArrays[0] = configArrayFactory.getConfigArrayForFile(); + defaultConfigs.push({ + plugins + }); } - // Initialize private properties. - privateMembersMap.set(this, { - cliEngine, - options: processedOptions - }); + // Check for the .eslintignore file, and warn if it's present. + if (existsSync(path.resolve(processedOptions.cwd, ".eslintignore"))) { + process.emitWarning( + "The \".eslintignore\" file is no longer supported. Switch to using the \"ignores\" property in \"eslint.config.js\": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files", + "ESLintIgnoreWarning" + ); + } } /** @@ -465,6 +524,15 @@ class ESLint { return version; } + /** + * The default configuration that ESLint uses internally. This is provided for tooling that wants to calculate configurations using the same defaults as ESLint. + * Keep in mind that the default configuration may change from version to version, so you shouldn't rely on any particular keys or values to be present. + * @type {ConfigArray} + */ + static get defaultConfig() { + return defaultConfig; + } + /** * Outputs fixes from the given results to files. * @param {LintResult[]} results The lint results. @@ -486,7 +554,7 @@ class ESLint { path.isAbsolute(result.filePath) ); }) - .map(r => writeFile(r.filePath, r.output)) + .map(r => fs.writeFile(r.filePath, r.output)) ); } @@ -496,60 +564,290 @@ class ESLint { * @returns {LintResult[]} The filtered results. */ static getErrorResults(results) { - return CLIEngine.getErrorResults(results); + const filtered = []; + + results.forEach(result => { + const filteredMessages = result.messages.filter(isErrorMessage); + const filteredSuppressedMessages = result.suppressedMessages.filter(isErrorMessage); + + if (filteredMessages.length > 0) { + filtered.push({ + ...result, + messages: filteredMessages, + suppressedMessages: filteredSuppressedMessages, + errorCount: filteredMessages.length, + warningCount: 0, + fixableErrorCount: result.fixableErrorCount, + fixableWarningCount: 0 + }); + } + }); + + return filtered; } /** * Returns meta objects for each rule represented in the lint results. * @param {LintResult[]} results The results to fetch rules meta for. * @returns {Object} A mapping of ruleIds to rule meta objects. + * @throws {TypeError} When the results object wasn't created from this ESLint instance. + * @throws {TypeError} When a plugin or rule is missing. */ getRulesMetaForResults(results) { - const resultRuleIds = new Set(); - - // first gather all ruleIds from all results - - for (const result of results) { - for (const { ruleId } of result.messages) { - resultRuleIds.add(ruleId); - } - for (const { ruleId } of result.suppressedMessages) { - resultRuleIds.add(ruleId); - } + // short-circuit simple case + if (results.length === 0) { + return {}; } - // create a map of all rules in the results - - const { cliEngine } = privateMembersMap.get(this); - const rules = cliEngine.getRules(); const resultRules = new Map(); + const { + configLoader, + options: { cwd } + } = privateMembers.get(this); + + for (const result of results) { - for (const [ruleId, rule] of rules) { - if (resultRuleIds.has(ruleId)) { - resultRules.set(ruleId, rule); + /* + * Normalize filename for . + */ + const filePath = result.filePath === "" + ? getPlaceholderPath(cwd) : result.filePath; + const allMessages = result.messages.concat(result.suppressedMessages); + + for (const { ruleId } of allMessages) { + if (!ruleId) { + continue; + } + + /* + * All of the plugin and rule information is contained within the + * calculated config for the given file. + */ + let configs; + + try { + configs = configLoader.getCachedConfigArrayForFile(filePath); + } catch { + throw createExtraneousResultsError(); + } + + const config = configs.getConfig(filePath); + + if (!config) { + throw createExtraneousResultsError(); + } + const rule = getRuleFromConfig(ruleId, config); + + // ignore unknown rules + if (rule) { + resultRules.set(ruleId, rule); + } } } return createRulesMeta(resultRules); + } + /** + * Indicates if the given feature flag is enabled for this instance. + * @param {string} flag The feature flag to check. + * @returns {boolean} `true` if the feature flag is enabled, `false` if not. + */ + hasFlag(flag) { + + // note: Linter does validation of the flags + return privateMembers.get(this).linter.hasFlag(flag); } /** * Executes the current configuration on an array of file and directory names. - * @param {string[]} patterns An array of file and directory names. + * @param {string|string[]} patterns An array of file and directory names. * @returns {Promise} The results of linting the file patterns given. */ async lintFiles(patterns) { - if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { - throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); + + let normalizedPatterns = patterns; + const { + cacheFilePath, + lintResultCache, + linter, + options: eslintOptions + } = privateMembers.get(this); + + /* + * Special cases: + * 1. `patterns` is an empty string + * 2. `patterns` is an empty array + * + * In both cases, we use the cwd as the directory to lint. + */ + if (patterns === "" || Array.isArray(patterns) && patterns.length === 0) { + + /* + * Special case: If `passOnNoPatterns` is true, then we just exit + * without doing any work. + */ + if (eslintOptions.passOnNoPatterns) { + return []; + } + + normalizedPatterns = ["."]; + } else { + + if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { + throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); + } + + if (typeof patterns === "string") { + normalizedPatterns = [patterns]; + } } - const { cliEngine } = privateMembersMap.get(this); - return processCLIEngineLintReport( - cliEngine, - cliEngine.executeOnFiles(patterns) + debug(`Using file patterns: ${normalizedPatterns}`); + + const { + allowInlineConfig, + cache, + cwd, + fix, + fixTypes, + ruleFilter, + stats, + globInputPaths, + errorOnUnmatchedPattern, + warnIgnored + } = eslintOptions; + const startTime = Date.now(); + const fixTypesSet = fixTypes ? new Set(fixTypes) : null; + + // Delete cache file; should this be done here? + if (!cache && cacheFilePath) { + debug(`Deleting cache file at ${cacheFilePath}`); + + try { + await fs.unlink(cacheFilePath); + } catch (error) { + const errorCode = error && error.code; + + // Ignore errors when no such file exists or file system is read only (and cache file does not exist) + if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync(cacheFilePath))) { + throw error; + } + } + } + + const filePaths = await findFiles({ + patterns: normalizedPatterns, + cwd, + globInputPaths, + configLoader: this.#configLoader, + errorOnUnmatchedPattern + }); + const controller = new AbortController(); + const retryCodes = new Set(["ENFILE", "EMFILE"]); + const retrier = new Retrier(error => retryCodes.has(error.code), { concurrency: 100 }); + + debug(`${filePaths.length} files found in: ${Date.now() - startTime}ms`); + + /* + * Because we need to process multiple files, including reading from disk, + * it is most efficient to start by reading each file via promises so that + * they can be done in parallel. Then, we can lint the returned text. This + * ensures we are waiting the minimum amount of time in between lints. + */ + const results = await Promise.all( + + filePaths.map(async filePath => { + + const configs = await this.#configLoader.loadConfigArrayForFile(filePath); + const config = configs.getConfig(filePath); + + /* + * If a filename was entered that cannot be matched + * to a config, then notify the user. + */ + if (!config) { + if (warnIgnored) { + const configStatus = configs.getConfigStatus(filePath); + + return createIgnoreResult(filePath, cwd, configStatus); + } + + return void 0; + } + + // Skip if there is cached result. + if (lintResultCache) { + const cachedResult = + lintResultCache.getCachedLintResults(filePath, config); + + if (cachedResult) { + const hadMessages = + cachedResult.messages && + cachedResult.messages.length > 0; + + if (hadMessages && fix) { + debug(`Reprocessing cached file to allow autofix: ${filePath}`); + } else { + debug(`Skipping file since it hasn't changed: ${filePath}`); + return cachedResult; + } + } + } + + + // set up fixer for fixTypes if necessary + const fixer = getFixerForFixTypes(fix, fixTypesSet, config); + + return retrier.retry(() => fs.readFile(filePath, { encoding: "utf8", signal: controller.signal }) + .then(text => { + + // fail immediately if an error occurred in another file + controller.signal.throwIfAborted(); + + // do the linting + const result = verifyText({ + text, + filePath, + configs, + cwd, + fix: fixer, + allowInlineConfig, + ruleFilter, + stats, + linter + }); + + /* + * Store the lint result in the LintResultCache. + * NOTE: The LintResultCache will remove the file source and any + * other properties that are difficult to serialize, and will + * hydrate those properties back in on future lint runs. + */ + if (lintResultCache) { + lintResultCache.setCachedLintResults(filePath, config, result); + } + + return result; + }), { signal: controller.signal }) + .catch(error => { + controller.abort(error); + throw error; + }); + }) ); + + // Persist the cache to disk. + if (lintResultCache) { + lintResultCache.reconcile(); + } + + const finalResults = results.filter(result => !!result); + + return processLintReport(this, { + results: finalResults + }); } /** @@ -561,15 +859,22 @@ class ESLint { * @returns {Promise} The results of linting the string of code given. */ async lintText(code, options = {}) { + + // Parameter validation + if (typeof code !== "string") { throw new Error("'code' must be a string"); } + if (typeof options !== "object") { throw new Error("'options' must be an object, null, or undefined"); } + + // Options validation + const { filePath, - warnIgnored = false, + warnIgnored, ...unknownOptions } = options || {}; @@ -582,16 +887,65 @@ class ESLint { if (filePath !== void 0 && !isNonEmptyString(filePath)) { throw new Error("'options.filePath' must be a non-empty string or undefined"); } - if (typeof warnIgnored !== "boolean") { + + if (typeof warnIgnored !== "boolean" && typeof warnIgnored !== "undefined") { throw new Error("'options.warnIgnored' must be a boolean or undefined"); } - const { cliEngine } = privateMembersMap.get(this); + // Now we can get down to linting + + const { + linter, + options: eslintOptions + } = privateMembers.get(this); + const { + allowInlineConfig, + cwd, + fix, + fixTypes, + warnIgnored: constructorWarnIgnored, + ruleFilter, + stats + } = eslintOptions; + const results = []; + const startTime = Date.now(); + const fixTypesSet = fixTypes ? new Set(fixTypes) : null; + const resolvedFilename = path.resolve(cwd, filePath || "__placeholder__.js"); + const configs = await this.#configLoader.loadConfigArrayForFile(resolvedFilename); + const configStatus = configs?.getConfigStatus(resolvedFilename) ?? "unconfigured"; + + // Clear the last used config arrays. + if (resolvedFilename && configStatus !== "matched") { + const shouldWarnIgnored = typeof warnIgnored === "boolean" ? warnIgnored : constructorWarnIgnored; + + if (shouldWarnIgnored) { + results.push(createIgnoreResult(resolvedFilename, cwd, configStatus)); + } + } else { + + const config = configs.getConfig(resolvedFilename); + const fixer = getFixerForFixTypes(fix, fixTypesSet, config); + + // Do lint. + results.push(verifyText({ + text: code, + filePath: resolvedFilename.endsWith("__placeholder__.js") ? "" : resolvedFilename, + configs, + cwd, + fix: fixer, + allowInlineConfig, + ruleFilter, + stats, + linter + })); + } + + debug(`Linting complete in: ${Date.now() - startTime}ms`); + + return processLintReport(this, { + results + }); - return processCLIEngineLintReport( - cliEngine, - cliEngine.executeOnText(code, filePath, warnIgnored) - ); } /** @@ -605,7 +959,7 @@ class ESLint { * - `@foo` → `@foo/eslint-formatter` * - `@foo/bar` → `@foo/eslint-formatter-bar` * - A file path ... Load the file. - * @returns {Promise} A promise resolving to the formatter object. + * @returns {Promise} A promise resolving to the formatter object. * This promise will be rejected if the given formatter was not found or not * a function. */ @@ -614,20 +968,60 @@ class ESLint { throw new Error("'name' must be a string"); } - const { cliEngine, options } = privateMembersMap.get(this); - const formatter = cliEngine.getFormatter(name); + // replace \ with / for Windows compatibility + const normalizedFormatName = name.replace(/\\/gu, "/"); + const namespace = naming.getNamespaceFromTerm(normalizedFormatName); + + // grab our options + const { cwd } = privateMembers.get(this).options; + + + let formatterPath; + + // if there's a slash, then it's a file (TODO: this check seems dubious for scoped npm packages) + if (!namespace && normalizedFormatName.includes("/")) { + formatterPath = path.resolve(cwd, normalizedFormatName); + } else { + try { + const npmFormat = naming.normalizePackageName(normalizedFormatName, "eslint-formatter"); + + // TODO: This is pretty dirty...would be nice to clean up at some point. + formatterPath = ModuleResolver.resolve(npmFormat, getPlaceholderPath(cwd)); + } catch { + formatterPath = path.resolve(__dirname, "../", "cli-engine", "formatters", `${normalizedFormatName}.js`); + } + } + + let formatter; + + try { + formatter = (await import(pathToFileURL(formatterPath))).default; + } catch (ex) { + + // check for formatters that have been removed + if (removedFormatters.has(name)) { + ex.message = `The ${name} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${name}\``; + } else { + ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; + } + + throw ex; + } + if (typeof formatter !== "function") { - throw new Error(`Formatter must be a function, but got a ${typeof formatter}.`); + throw new TypeError(`Formatter must be a function, but got a ${typeof formatter}.`); } + const eslint = this; + return { /** * The main formatter method. * @param {LintResult[]} results The lint results to format. * @param {ResultsMeta} resultsMeta Warning count and max threshold. - * @returns {string | Promise} The formatted lint results. + * @returns {string} The formatted lint results. */ format(results, resultsMeta) { let rulesMeta = null; @@ -636,12 +1030,10 @@ class ESLint { return formatter(results, { ...resultsMeta, - get cwd() { - return options.cwd; - }, + cwd, get rulesMeta() { if (!rulesMeta) { - rulesMeta = createRulesMeta(cliEngine.getRules()); + rulesMeta = eslint.getRulesMetaForResults(results); } return rulesMeta; @@ -656,15 +1048,46 @@ class ESLint { * This is the same logic used by the ESLint CLI executable to determine * configuration for each file it processes. * @param {string} filePath The path of the file to retrieve a config object for. - * @returns {Promise} A configuration object for the file. + * @returns {Promise} A configuration object for the file + * or `undefined` if there is no configuration data for the object. */ async calculateConfigForFile(filePath) { if (!isNonEmptyString(filePath)) { throw new Error("'filePath' must be a non-empty string"); } - const { cliEngine } = privateMembersMap.get(this); + const options = privateMembers.get(this).options; + const absolutePath = path.resolve(options.cwd, filePath); + const configs = await this.#configLoader.loadConfigArrayForFile(absolutePath); + + if (!configs) { + const error = new Error("Could not find config file."); - return cliEngine.getConfigForFile(filePath); + error.messageTemplate = "config-file-missing"; + throw error; + } + + return configs.getConfig(absolutePath); + } + + /** + * Finds the config file being used by this instance based on the options + * passed to the constructor. + * @param {string} [filePath] The path of the file to find the config file for. + * @returns {Promise} The path to the config file being used or + * `undefined` if no config file is being used. + */ + findConfigFile(filePath) { + const options = privateMembers.get(this).options; + + /* + * Because the new config lookup scheme skips the current directory + * and looks into the parent directories, we need to use a placeholder + * directory to ensure the file in cwd is checked. + */ + const fakeCwd = path.join(options.cwd, "__placeholder__"); + + return this.#configLoader.findConfigFileForPath(filePath ?? fakeCwd) + .catch(() => void 0); } /** @@ -673,21 +1096,19 @@ class ESLint { * @returns {Promise} Whether or not the given path is ignored. */ async isPathIgnored(filePath) { - if (!isNonEmptyString(filePath)) { - throw new Error("'filePath' must be a non-empty string"); - } - const { cliEngine } = privateMembersMap.get(this); + const config = await this.calculateConfigForFile(filePath); - return cliEngine.isPathIgnored(filePath); + return config === void 0; } } /** - * The type of configuration used by this class. - * @type {string} - * @static + * Returns whether flat config should be used. + * @returns {Promise} Whether flat config should be used. */ -ESLint.configType = "eslintrc"; +async function shouldUseFlatConfig() { + return (process.env.ESLINT_USE_FLAT_CONFIG !== "false"); +} //------------------------------------------------------------------------------ // Public Interface @@ -695,13 +1116,6 @@ ESLint.configType = "eslintrc"; module.exports = { ESLint, - - /** - * Get the private class members of a given ESLint instance for tests. - * @param {ESLint} instance The ESLint instance to get. - * @returns {ESLintPrivateMembers} The instance's private class members. - */ - getESLintPrivateMembers(instance) { - return privateMembersMap.get(instance); - } + shouldUseFlatConfig, + locateConfigFileToUse }; diff --git a/node_modules/eslint/lib/eslint/flat-eslint.js b/node_modules/eslint/lib/eslint/flat-eslint.js deleted file mode 100644 index e4e19a83..00000000 --- a/node_modules/eslint/lib/eslint/flat-eslint.js +++ /dev/null @@ -1,1159 +0,0 @@ -/** - * @fileoverview Main class using flat config - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// Note: Node.js 12 does not support fs/promises. -const fs = require("fs").promises; -const { existsSync } = require("fs"); -const path = require("path"); -const findUp = require("find-up"); -const { version } = require("../../package.json"); -const { Linter } = require("../linter"); -const { getRuleFromConfig } = require("../config/flat-config-helpers"); -const { - Legacy: { - ConfigOps: { - getRuleSeverity - }, - ModuleResolver, - naming - } -} = require("@eslint/eslintrc"); - -const { - findFiles, - getCacheFile, - - isNonEmptyString, - isArrayOfNonEmptyString, - - createIgnoreResult, - isErrorMessage, - - processOptions -} = require("./eslint-helpers"); -const { pathToFileURL } = require("url"); -const { FlatConfigArray } = require("../config/flat-config-array"); -const LintResultCache = require("../cli-engine/lint-result-cache"); - -/* - * This is necessary to allow overwriting writeFile for testing purposes. - * We can just use fs/promises once we drop Node.js 12 support. - */ - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -// For VSCode IntelliSense -/** @typedef {import("../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").LintResult} LintResult */ -/** @typedef {import("../shared/types").ParserOptions} ParserOptions */ -/** @typedef {import("../shared/types").Plugin} Plugin */ -/** @typedef {import("../shared/types").ResultsMeta} ResultsMeta */ -/** @typedef {import("../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../shared/types").Rule} Rule */ -/** @typedef {ReturnType} ExtractedConfig */ - -/** - * The options with which to configure the ESLint instance. - * @typedef {Object} FlatESLintOptions - * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. - * @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this instance - * @property {boolean} [cache] Enable result caching. - * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. - * @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files. - * @property {string} [cwd] The value to use for the current working directory. - * @property {boolean} [errorOnUnmatchedPattern] If `false` then `ESLint#lintFiles()` doesn't throw even if no target files found. Defaults to `true`. - * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. - * @property {string[]} [fixTypes] Array of rule types to apply fixes for. - * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} [ignore] False disables all ignore patterns except for the default ones. - * @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to config ignores. These patterns are relative to `cwd`. - * @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance - * @property {boolean|string} [overrideConfigFile] Searches for default config file when falsy; - * doesn't do any config file lookup when `true`; considered to be a config filename - * when a string. - * @property {Record} [plugins] An array of plugin implementations. - * @property {boolean} warnIgnored Show warnings when the file list includes ignored files - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const FLAT_CONFIG_FILENAMES = [ - "eslint.config.js", - "eslint.config.mjs", - "eslint.config.cjs" -]; -const debug = require("debug")("eslint:flat-eslint"); -const removedFormatters = new Set(["table", "codeframe"]); -const privateMembers = new WeakMap(); -const importedConfigFileModificationTime = new Map(); - -/** - * It will calculate the error and warning count for collection of messages per file - * @param {LintMessage[]} messages Collection of messages - * @returns {Object} Contains the stats - * @private - */ -function calculateStatsPerFile(messages) { - const stat = { - errorCount: 0, - fatalErrorCount: 0, - warningCount: 0, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; - - for (let i = 0; i < messages.length; i++) { - const message = messages[i]; - - if (message.fatal || message.severity === 2) { - stat.errorCount++; - if (message.fatal) { - stat.fatalErrorCount++; - } - if (message.fix) { - stat.fixableErrorCount++; - } - } else { - stat.warningCount++; - if (message.fix) { - stat.fixableWarningCount++; - } - } - } - return stat; -} - -/** - * Create rulesMeta object. - * @param {Map} rules a map of rules from which to generate the object. - * @returns {Object} metadata for all enabled rules. - */ -function createRulesMeta(rules) { - return Array.from(rules).reduce((retVal, [id, rule]) => { - retVal[id] = rule.meta; - return retVal; - }, {}); -} - -/** - * Return the absolute path of a file named `"__placeholder__.js"` in a given directory. - * This is used as a replacement for a missing file path. - * @param {string} cwd An absolute directory path. - * @returns {string} The absolute path of a file named `"__placeholder__.js"` in the given directory. - */ -function getPlaceholderPath(cwd) { - return path.join(cwd, "__placeholder__.js"); -} - -/** @type {WeakMap} */ -const usedDeprecatedRulesCache = new WeakMap(); - -/** - * Create used deprecated rule list. - * @param {CLIEngine} eslint The CLIEngine instance. - * @param {string} maybeFilePath The absolute path to a lint target file or `""`. - * @returns {DeprecatedRuleInfo[]} The used deprecated rule list. - */ -function getOrFindUsedDeprecatedRules(eslint, maybeFilePath) { - const { - configs, - options: { cwd } - } = privateMembers.get(eslint); - const filePath = path.isAbsolute(maybeFilePath) - ? maybeFilePath - : getPlaceholderPath(cwd); - const config = configs.getConfig(filePath); - - // Most files use the same config, so cache it. - if (config && !usedDeprecatedRulesCache.has(config)) { - const retv = []; - - if (config.rules) { - for (const [ruleId, ruleConf] of Object.entries(config.rules)) { - if (getRuleSeverity(ruleConf) === 0) { - continue; - } - const rule = getRuleFromConfig(ruleId, config); - const meta = rule && rule.meta; - - if (meta && meta.deprecated) { - retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); - } - } - } - - - usedDeprecatedRulesCache.set(config, Object.freeze(retv)); - } - - return config ? usedDeprecatedRulesCache.get(config) : Object.freeze([]); -} - -/** - * Processes the linting results generated by a CLIEngine linting report to - * match the ESLint class's API. - * @param {CLIEngine} eslint The CLIEngine instance. - * @param {CLIEngineLintReport} report The CLIEngine linting report to process. - * @returns {LintResult[]} The processed linting results. - */ -function processLintReport(eslint, { results }) { - const descriptor = { - configurable: true, - enumerable: true, - get() { - return getOrFindUsedDeprecatedRules(eslint, this.filePath); - } - }; - - for (const result of results) { - Object.defineProperty(result, "usedDeprecatedRules", descriptor); - } - - return results; -} - -/** - * An Array.prototype.sort() compatible compare function to order results by their file path. - * @param {LintResult} a The first lint result. - * @param {LintResult} b The second lint result. - * @returns {number} An integer representing the order in which the two results should occur. - */ -function compareResultsByFilePath(a, b) { - if (a.filePath < b.filePath) { - return -1; - } - - if (a.filePath > b.filePath) { - return 1; - } - - return 0; -} - -/** - * Searches from the current working directory up until finding the - * given flat config filename. - * @param {string} cwd The current working directory to search from. - * @returns {Promise} The filename if found or `undefined` if not. - */ -function findFlatConfigFile(cwd) { - return findUp( - FLAT_CONFIG_FILENAMES, - { cwd } - ); -} - -/** - * Load the config array from the given filename. - * @param {string} filePath The filename to load from. - * @returns {Promise} The config loaded from the config file. - */ -async function loadFlatConfigFile(filePath) { - debug(`Loading config from ${filePath}`); - - const fileURL = pathToFileURL(filePath); - - debug(`Config file URL is ${fileURL}`); - - const mtime = (await fs.stat(filePath)).mtime.getTime(); - - /* - * Append a query with the config file's modification time (`mtime`) in order - * to import the current version of the config file. Without the query, `import()` would - * cache the config file module by the pathname only, and then always return - * the same version (the one that was actual when the module was imported for the first time). - * - * This ensures that the config file module is loaded and executed again - * if it has been changed since the last time it was imported. - * If it hasn't been changed, `import()` will just return the cached version. - * - * Note that we should not overuse queries (e.g., by appending the current time - * to always reload the config file module) as that could cause memory leaks - * because entries are never removed from the import cache. - */ - fileURL.searchParams.append("mtime", mtime); - - /* - * With queries, we can bypass the import cache. However, when import-ing a CJS module, - * Node.js uses the require infrastructure under the hood. That includes the require cache, - * which caches the config file module by its file path (queries have no effect). - * Therefore, we also need to clear the require cache before importing the config file module. - * In order to get the same behavior with ESM and CJS config files, in particular - to reload - * the config file only if it has been changed, we track file modification times and clear - * the require cache only if the file has been changed. - */ - if (importedConfigFileModificationTime.get(filePath) !== mtime) { - delete require.cache[filePath]; - } - - const config = (await import(fileURL)).default; - - importedConfigFileModificationTime.set(filePath, mtime); - - return config; -} - -/** - * Determines which config file to use. This is determined by seeing if an - * override config file was passed, and if so, using it; otherwise, as long - * as override config file is not explicitly set to `false`, it will search - * upwards from the cwd for a file named `eslint.config.js`. - * @param {import("./eslint").ESLintOptions} options The ESLint instance options. - * @returns {{configFilePath:string|undefined,basePath:string,error:Error|null}} Location information for - * the config file. - */ -async function locateConfigFileToUse({ configFile, cwd }) { - - // determine where to load config file from - let configFilePath; - let basePath = cwd; - let error = null; - - if (typeof configFile === "string") { - debug(`Override config file path is ${configFile}`); - configFilePath = path.resolve(cwd, configFile); - } else if (configFile !== false) { - debug("Searching for eslint.config.js"); - configFilePath = await findFlatConfigFile(cwd); - - if (configFilePath) { - basePath = path.resolve(path.dirname(configFilePath)); - } else { - error = new Error("Could not find config file."); - } - - } - - return { - configFilePath, - basePath, - error - }; - -} - -/** - * Calculates the config array for this run based on inputs. - * @param {FlatESLint} eslint The instance to create the config array for. - * @param {import("./eslint").ESLintOptions} options The ESLint instance options. - * @returns {FlatConfigArray} The config array for `eslint``. - */ -async function calculateConfigArray(eslint, { - cwd, - baseConfig, - overrideConfig, - configFile, - ignore: shouldIgnore, - ignorePatterns -}) { - - // check for cached instance - const slots = privateMembers.get(eslint); - - if (slots.configs) { - return slots.configs; - } - - const { configFilePath, basePath, error } = await locateConfigFileToUse({ configFile, cwd }); - - // config file is required to calculate config - if (error) { - throw error; - } - - const configs = new FlatConfigArray(baseConfig || [], { basePath, shouldIgnore }); - - // load config file - if (configFilePath) { - const fileConfig = await loadFlatConfigFile(configFilePath); - - if (Array.isArray(fileConfig)) { - configs.push(...fileConfig); - } else { - configs.push(fileConfig); - } - } - - // add in any configured defaults - configs.push(...slots.defaultConfigs); - - // append command line ignore patterns - if (ignorePatterns && ignorePatterns.length > 0) { - - let relativeIgnorePatterns; - - /* - * If the config file basePath is different than the cwd, then - * the ignore patterns won't work correctly. Here, we adjust the - * ignore pattern to include the correct relative path. Patterns - * passed as `ignorePatterns` are relative to the cwd, whereas - * the config file basePath can be an ancestor of the cwd. - */ - if (basePath === cwd) { - relativeIgnorePatterns = ignorePatterns; - } else { - - const relativeIgnorePath = path.relative(basePath, cwd); - - relativeIgnorePatterns = ignorePatterns.map(pattern => { - const negated = pattern.startsWith("!"); - const basePattern = negated ? pattern.slice(1) : pattern; - - return (negated ? "!" : "") + - path.posix.join(relativeIgnorePath, basePattern); - }); - } - - /* - * Ignore patterns are added to the end of the config array - * so they can override default ignores. - */ - configs.push({ - ignores: relativeIgnorePatterns - }); - } - - if (overrideConfig) { - if (Array.isArray(overrideConfig)) { - configs.push(...overrideConfig); - } else { - configs.push(overrideConfig); - } - } - - await configs.normalize(); - - // cache the config array for this instance - slots.configs = configs; - - return configs; -} - -/** - * Processes an source code using ESLint. - * @param {Object} config The config object. - * @param {string} config.text The source code to verify. - * @param {string} config.cwd The path to the current working directory. - * @param {string|undefined} config.filePath The path to the file of `text`. If this is undefined, it uses ``. - * @param {FlatConfigArray} config.configs The config. - * @param {boolean} config.fix If `true` then it does fix. - * @param {boolean} config.allowInlineConfig If `true` then it uses directive comments. - * @param {Linter} config.linter The linter instance to verify. - * @returns {LintResult} The result of linting. - * @private - */ -function verifyText({ - text, - cwd, - filePath: providedFilePath, - configs, - fix, - allowInlineConfig, - linter -}) { - const filePath = providedFilePath || ""; - - debug(`Lint ${filePath}`); - - /* - * Verify. - * `config.extractConfig(filePath)` requires an absolute path, but `linter` - * doesn't know CWD, so it gives `linter` an absolute path always. - */ - const filePathToVerify = filePath === "" ? getPlaceholderPath(cwd) : filePath; - const { fixed, messages, output } = linter.verifyAndFix( - text, - configs, - { - allowInlineConfig, - filename: filePathToVerify, - fix, - - /** - * Check if the linter should adopt a given code block or not. - * @param {string} blockFilename The virtual filename of a code block. - * @returns {boolean} `true` if the linter should adopt the code block. - */ - filterCodeBlock(blockFilename) { - return configs.getConfig(blockFilename) !== void 0; - } - } - ); - - // Tweak and return. - const result = { - filePath: filePath === "" ? filePath : path.resolve(filePath), - messages, - suppressedMessages: linter.getSuppressedMessages(), - ...calculateStatsPerFile(messages) - }; - - if (fixed) { - result.output = output; - } - - if ( - result.errorCount + result.warningCount > 0 && - typeof result.output === "undefined" - ) { - result.source = text; - } - - return result; -} - -/** - * Checks whether a message's rule type should be fixed. - * @param {LintMessage} message The message to check. - * @param {FlatConfig} config The config for the file that generated the message. - * @param {string[]} fixTypes An array of fix types to check. - * @returns {boolean} Whether the message should be fixed. - */ -function shouldMessageBeFixed(message, config, fixTypes) { - if (!message.ruleId) { - return fixTypes.has("directive"); - } - - const rule = message.ruleId && getRuleFromConfig(message.ruleId, config); - - return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type)); -} - -/** - * Creates an error to be thrown when an array of results passed to `getRulesMetaForResults` was not created by the current engine. - * @returns {TypeError} An error object. - */ -function createExtraneousResultsError() { - return new TypeError("Results object was not created from this ESLint instance."); -} - -/** - * Creates a fixer function based on the provided fix, fixTypesSet, and config. - * @param {Function|boolean} fix The original fix option. - * @param {Set} fixTypesSet A set of fix types to filter messages for fixing. - * @param {FlatConfig} config The config for the file that generated the message. - * @returns {Function|boolean} The fixer function or the original fix value. - */ -function getFixerForFixTypes(fix, fixTypesSet, config) { - if (!fix || !fixTypesSet) { - return fix; - } - - const originalFix = (typeof fix === "function") ? fix : () => true; - - return message => shouldMessageBeFixed(message, config, fixTypesSet) && originalFix(message); -} - -//----------------------------------------------------------------------------- -// Main API -//----------------------------------------------------------------------------- - -/** - * Primary Node.js API for ESLint. - */ -class FlatESLint { - - /** - * Creates a new instance of the main ESLint API. - * @param {FlatESLintOptions} options The options for this instance. - */ - constructor(options = {}) { - - const defaultConfigs = []; - const processedOptions = processOptions(options); - const linter = new Linter({ - cwd: processedOptions.cwd, - configType: "flat" - }); - - const cacheFilePath = getCacheFile( - processedOptions.cacheLocation, - processedOptions.cwd - ); - - const lintResultCache = processedOptions.cache - ? new LintResultCache(cacheFilePath, processedOptions.cacheStrategy) - : null; - - privateMembers.set(this, { - options: processedOptions, - linter, - cacheFilePath, - lintResultCache, - defaultConfigs, - configs: null - }); - - /** - * If additional plugins are passed in, add that to the default - * configs for this instance. - */ - if (options.plugins) { - - const plugins = {}; - - for (const [pluginName, plugin] of Object.entries(options.plugins)) { - plugins[naming.getShorthandName(pluginName, "eslint-plugin")] = plugin; - } - - defaultConfigs.push({ - plugins - }); - } - - } - - /** - * The version text. - * @type {string} - */ - static get version() { - return version; - } - - /** - * Outputs fixes from the given results to files. - * @param {LintResult[]} results The lint results. - * @returns {Promise} Returns a promise that is used to track side effects. - */ - static async outputFixes(results) { - if (!Array.isArray(results)) { - throw new Error("'results' must be an array"); - } - - await Promise.all( - results - .filter(result => { - if (typeof result !== "object" || result === null) { - throw new Error("'results' must include only objects"); - } - return ( - typeof result.output === "string" && - path.isAbsolute(result.filePath) - ); - }) - .map(r => fs.writeFile(r.filePath, r.output)) - ); - } - - /** - * Returns results that only contains errors. - * @param {LintResult[]} results The results to filter. - * @returns {LintResult[]} The filtered results. - */ - static getErrorResults(results) { - const filtered = []; - - results.forEach(result => { - const filteredMessages = result.messages.filter(isErrorMessage); - const filteredSuppressedMessages = result.suppressedMessages.filter(isErrorMessage); - - if (filteredMessages.length > 0) { - filtered.push({ - ...result, - messages: filteredMessages, - suppressedMessages: filteredSuppressedMessages, - errorCount: filteredMessages.length, - warningCount: 0, - fixableErrorCount: result.fixableErrorCount, - fixableWarningCount: 0 - }); - } - }); - - return filtered; - } - - /** - * Returns meta objects for each rule represented in the lint results. - * @param {LintResult[]} results The results to fetch rules meta for. - * @returns {Object} A mapping of ruleIds to rule meta objects. - * @throws {TypeError} When the results object wasn't created from this ESLint instance. - * @throws {TypeError} When a plugin or rule is missing. - */ - getRulesMetaForResults(results) { - - // short-circuit simple case - if (results.length === 0) { - return {}; - } - - const resultRules = new Map(); - const { - configs, - options: { cwd } - } = privateMembers.get(this); - - /* - * We can only accurately return rules meta information for linting results if the - * results were created by this instance. Otherwise, the necessary rules data is - * not available. So if the config array doesn't already exist, just throw an error - * to let the user know we can't do anything here. - */ - if (!configs) { - throw createExtraneousResultsError(); - } - - for (const result of results) { - - /* - * Normalize filename for . - */ - const filePath = result.filePath === "" - ? getPlaceholderPath(cwd) : result.filePath; - const allMessages = result.messages.concat(result.suppressedMessages); - - for (const { ruleId } of allMessages) { - if (!ruleId) { - continue; - } - - /* - * All of the plugin and rule information is contained within the - * calculated config for the given file. - */ - const config = configs.getConfig(filePath); - - if (!config) { - throw createExtraneousResultsError(); - } - const rule = getRuleFromConfig(ruleId, config); - - // ignore unknown rules - if (rule) { - resultRules.set(ruleId, rule); - } - } - } - - return createRulesMeta(resultRules); - } - - /** - * Executes the current configuration on an array of file and directory names. - * @param {string|string[]} patterns An array of file and directory names. - * @returns {Promise} The results of linting the file patterns given. - */ - async lintFiles(patterns) { - if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { - throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); - } - - const { - cacheFilePath, - lintResultCache, - linter, - options: eslintOptions - } = privateMembers.get(this); - const configs = await calculateConfigArray(this, eslintOptions); - const { - allowInlineConfig, - cache, - cwd, - fix, - fixTypes, - globInputPaths, - errorOnUnmatchedPattern, - warnIgnored - } = eslintOptions; - const startTime = Date.now(); - const fixTypesSet = fixTypes ? new Set(fixTypes) : null; - - // Delete cache file; should this be done here? - if (!cache && cacheFilePath) { - debug(`Deleting cache file at ${cacheFilePath}`); - - try { - await fs.unlink(cacheFilePath); - } catch (error) { - const errorCode = error && error.code; - - // Ignore errors when no such file exists or file system is read only (and cache file does not exist) - if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync(cacheFilePath))) { - throw error; - } - } - } - - const filePaths = await findFiles({ - patterns: typeof patterns === "string" ? [patterns] : patterns, - cwd, - globInputPaths, - configs, - errorOnUnmatchedPattern - }); - - debug(`${filePaths.length} files found in: ${Date.now() - startTime}ms`); - - /* - * Because we need to process multiple files, including reading from disk, - * it is most efficient to start by reading each file via promises so that - * they can be done in parallel. Then, we can lint the returned text. This - * ensures we are waiting the minimum amount of time in between lints. - */ - const results = await Promise.all( - - filePaths.map(filePath => { - - const config = configs.getConfig(filePath); - - /* - * If a filename was entered that cannot be matched - * to a config, then notify the user. - */ - if (!config) { - if (warnIgnored) { - return createIgnoreResult(filePath, cwd); - } - - return void 0; - } - - // Skip if there is cached result. - if (lintResultCache) { - const cachedResult = - lintResultCache.getCachedLintResults(filePath, config); - - if (cachedResult) { - const hadMessages = - cachedResult.messages && - cachedResult.messages.length > 0; - - if (hadMessages && fix) { - debug(`Reprocessing cached file to allow autofix: ${filePath}`); - } else { - debug(`Skipping file since it hasn't changed: ${filePath}`); - return cachedResult; - } - } - } - - - // set up fixer for fixTypes if necessary - const fixer = getFixerForFixTypes(fix, fixTypesSet, config); - - return fs.readFile(filePath, "utf8") - .then(text => { - - // do the linting - const result = verifyText({ - text, - filePath, - configs, - cwd, - fix: fixer, - allowInlineConfig, - linter - }); - - /* - * Store the lint result in the LintResultCache. - * NOTE: The LintResultCache will remove the file source and any - * other properties that are difficult to serialize, and will - * hydrate those properties back in on future lint runs. - */ - if (lintResultCache) { - lintResultCache.setCachedLintResults(filePath, config, result); - } - - return result; - }); - - }) - ); - - // Persist the cache to disk. - if (lintResultCache) { - lintResultCache.reconcile(); - } - - const finalResults = results.filter(result => !!result); - - return processLintReport(this, { - results: finalResults - }); - } - - /** - * Executes the current configuration on text. - * @param {string} code A string of JavaScript code to lint. - * @param {Object} [options] The options. - * @param {string} [options.filePath] The path to the file of the source code. - * @param {boolean} [options.warnIgnored] When set to true, warn if given filePath is an ignored path. - * @returns {Promise} The results of linting the string of code given. - */ - async lintText(code, options = {}) { - - // Parameter validation - - if (typeof code !== "string") { - throw new Error("'code' must be a string"); - } - - if (typeof options !== "object") { - throw new Error("'options' must be an object, null, or undefined"); - } - - // Options validation - - const { - filePath, - warnIgnored, - ...unknownOptions - } = options || {}; - - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length > 0) { - throw new Error(`'options' must not include the unknown option(s): ${unknownOptionKeys.join(", ")}`); - } - - if (filePath !== void 0 && !isNonEmptyString(filePath)) { - throw new Error("'options.filePath' must be a non-empty string or undefined"); - } - - if (typeof warnIgnored !== "boolean" && typeof warnIgnored !== "undefined") { - throw new Error("'options.warnIgnored' must be a boolean or undefined"); - } - - // Now we can get down to linting - - const { - linter, - options: eslintOptions - } = privateMembers.get(this); - const configs = await calculateConfigArray(this, eslintOptions); - const { - allowInlineConfig, - cwd, - fix, - fixTypes, - warnIgnored: constructorWarnIgnored - } = eslintOptions; - const results = []; - const startTime = Date.now(); - const fixTypesSet = fixTypes ? new Set(fixTypes) : null; - const resolvedFilename = path.resolve(cwd, filePath || "__placeholder__.js"); - const config = configs.getConfig(resolvedFilename); - - const fixer = getFixerForFixTypes(fix, fixTypesSet, config); - - // Clear the last used config arrays. - if (resolvedFilename && await this.isPathIgnored(resolvedFilename)) { - const shouldWarnIgnored = typeof warnIgnored === "boolean" ? warnIgnored : constructorWarnIgnored; - - if (shouldWarnIgnored) { - results.push(createIgnoreResult(resolvedFilename, cwd)); - } - } else { - - // Do lint. - results.push(verifyText({ - text: code, - filePath: resolvedFilename.endsWith("__placeholder__.js") ? "" : resolvedFilename, - configs, - cwd, - fix: fixer, - allowInlineConfig, - linter - })); - } - - debug(`Linting complete in: ${Date.now() - startTime}ms`); - - return processLintReport(this, { - results - }); - - } - - /** - * Returns the formatter representing the given formatter name. - * @param {string} [name] The name of the formatter to load. - * The following values are allowed: - * - `undefined` ... Load `stylish` builtin formatter. - * - A builtin formatter name ... Load the builtin formatter. - * - A third-party formatter name: - * - `foo` → `eslint-formatter-foo` - * - `@foo` → `@foo/eslint-formatter` - * - `@foo/bar` → `@foo/eslint-formatter-bar` - * - A file path ... Load the file. - * @returns {Promise} A promise resolving to the formatter object. - * This promise will be rejected if the given formatter was not found or not - * a function. - */ - async loadFormatter(name = "stylish") { - if (typeof name !== "string") { - throw new Error("'name' must be a string"); - } - - // replace \ with / for Windows compatibility - const normalizedFormatName = name.replace(/\\/gu, "/"); - const namespace = naming.getNamespaceFromTerm(normalizedFormatName); - - // grab our options - const { cwd } = privateMembers.get(this).options; - - - let formatterPath; - - // if there's a slash, then it's a file (TODO: this check seems dubious for scoped npm packages) - if (!namespace && normalizedFormatName.includes("/")) { - formatterPath = path.resolve(cwd, normalizedFormatName); - } else { - try { - const npmFormat = naming.normalizePackageName(normalizedFormatName, "eslint-formatter"); - - // TODO: This is pretty dirty...would be nice to clean up at some point. - formatterPath = ModuleResolver.resolve(npmFormat, getPlaceholderPath(cwd)); - } catch { - formatterPath = path.resolve(__dirname, "../", "cli-engine", "formatters", `${normalizedFormatName}.js`); - } - } - - let formatter; - - try { - formatter = (await import(pathToFileURL(formatterPath))).default; - } catch (ex) { - - // check for formatters that have been removed - if (removedFormatters.has(name)) { - ex.message = `The ${name} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${name}\``; - } else { - ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; - } - - throw ex; - } - - - if (typeof formatter !== "function") { - throw new TypeError(`Formatter must be a function, but got a ${typeof formatter}.`); - } - - const eslint = this; - - return { - - /** - * The main formatter method. - * @param {LintResults[]} results The lint results to format. - * @param {ResultsMeta} resultsMeta Warning count and max threshold. - * @returns {string} The formatted lint results. - */ - format(results, resultsMeta) { - let rulesMeta = null; - - results.sort(compareResultsByFilePath); - - return formatter(results, { - ...resultsMeta, - cwd, - get rulesMeta() { - if (!rulesMeta) { - rulesMeta = eslint.getRulesMetaForResults(results); - } - - return rulesMeta; - } - }); - } - }; - } - - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine - * configuration for each file it processes. - * @param {string} filePath The path of the file to retrieve a config object for. - * @returns {Promise} A configuration object for the file - * or `undefined` if there is no configuration data for the object. - */ - async calculateConfigForFile(filePath) { - if (!isNonEmptyString(filePath)) { - throw new Error("'filePath' must be a non-empty string"); - } - const options = privateMembers.get(this).options; - const absolutePath = path.resolve(options.cwd, filePath); - const configs = await calculateConfigArray(this, options); - - return configs.getConfig(absolutePath); - } - - /** - * Finds the config file being used by this instance based on the options - * passed to the constructor. - * @returns {string|undefined} The path to the config file being used or - * `undefined` if no config file is being used. - */ - async findConfigFile() { - const options = privateMembers.get(this).options; - const { configFilePath } = await locateConfigFileToUse(options); - - return configFilePath; - } - - /** - * Checks if a given path is ignored by ESLint. - * @param {string} filePath The path of the file to check. - * @returns {Promise} Whether or not the given path is ignored. - */ - async isPathIgnored(filePath) { - const config = await this.calculateConfigForFile(filePath); - - return config === void 0; - } -} - -/** - * The type of configuration used by this class. - * @type {string} - * @static - */ -FlatESLint.configType = "flat"; - -/** - * Returns whether flat config should be used. - * @param {Object} [options] The options for this function. - * @param {string} [options.cwd] The current working directory. - * @returns {Promise} Whether flat config should be used. - */ -async function shouldUseFlatConfig({ cwd = process.cwd() } = {}) { - switch (process.env.ESLINT_USE_FLAT_CONFIG) { - case "true": - return true; - case "false": - return false; - default: - - /* - * If neither explicitly enabled nor disabled, then use the presence - * of a flat config file to determine enablement. - */ - return !!(await findFlatConfigFile(cwd)); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - FlatESLint, - shouldUseFlatConfig -}; diff --git a/node_modules/eslint/lib/eslint/index.js b/node_modules/eslint/lib/eslint/index.js index 017b768e..b7c52a4e 100644 --- a/node_modules/eslint/lib/eslint/index.js +++ b/node_modules/eslint/lib/eslint/index.js @@ -1,9 +1,9 @@ "use strict"; const { ESLint } = require("./eslint"); -const { FlatESLint } = require("./flat-eslint"); +const { LegacyESLint } = require("./legacy-eslint"); module.exports = { ESLint, - FlatESLint + LegacyESLint }; diff --git a/node_modules/eslint/lib/eslint/legacy-eslint.js b/node_modules/eslint/lib/eslint/legacy-eslint.js new file mode 100644 index 00000000..f282e587 --- /dev/null +++ b/node_modules/eslint/lib/eslint/legacy-eslint.js @@ -0,0 +1,742 @@ +/** + * @fileoverview Main API Class + * @author Kai Cataldo + * @author Toru Nagashima + */ + +"use strict"; + +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const path = require("node:path"); +const fs = require("node:fs"); +const { promisify } = require("node:util"); +const { CLIEngine, getCLIEngineInternalSlots } = require("../cli-engine/cli-engine"); +const BuiltinRules = require("../rules"); +const { + Legacy: { + ConfigOps: { + getRuleSeverity + } + } +} = require("@eslint/eslintrc"); +const { version } = require("../../package.json"); + +//------------------------------------------------------------------------------ +// Typedefs +//------------------------------------------------------------------------------ + +/** @typedef {import("../cli-engine/cli-engine").LintReport} CLIEngineLintReport */ +/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ +/** @typedef {import("../shared/types").ConfigData} ConfigData */ +/** @typedef {import("../shared/types").LintMessage} LintMessage */ +/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */ +/** @typedef {import("../shared/types").Plugin} Plugin */ +/** @typedef {import("../shared/types").Rule} Rule */ +/** @typedef {import("../shared/types").LintResult} LintResult */ +/** @typedef {import("../shared/types").ResultsMeta} ResultsMeta */ + +/** + * The main formatter object. + * @typedef LoadedFormatter + * @property {(results: LintResult[], resultsMeta: ResultsMeta) => string | Promise} format format function. + */ + +/** + * The options with which to configure the LegacyESLint instance. + * @typedef {Object} LegacyESLintOptions + * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. + * @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this instance + * @property {boolean} [cache] Enable result caching. + * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. + * @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files. + * @property {string} [cwd] The value to use for the current working directory. + * @property {boolean} [errorOnUnmatchedPattern] If `false` then `ESLint#lintFiles()` doesn't throw even if no target files found. Defaults to `true`. + * @property {string[]} [extensions] An array of file extensions to check. + * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. + * @property {string[]} [fixTypes] Array of rule types to apply fixes for. + * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. + * @property {boolean} [ignore] False disables use of .eslintignore. + * @property {string} [ignorePath] The ignore file to use instead of .eslintignore. + * @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance + * @property {string} [overrideConfigFile] The configuration file to use. + * @property {Record|null} [plugins] Preloaded plugins. This is a map-like object, keys are plugin IDs and each value is implementation. + * @property {"error" | "warn" | "off"} [reportUnusedDisableDirectives] the severity to report unused eslint-disable directives. + * @property {string} [resolvePluginsRelativeTo] The folder where plugins should be resolved from, defaulting to the CWD. + * @property {string[]} [rulePaths] An array of directories to load custom rules from. + * @property {boolean} [useEslintrc] False disables looking for .eslintrc.* files. + * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause + * the linting operation to short circuit and not report any failures. + */ + +/** + * A rules metadata object. + * @typedef {Object} RulesMeta + * @property {string} id The plugin ID. + * @property {Object} definition The plugin definition. + */ + +/** + * Private members for the `ESLint` instance. + * @typedef {Object} ESLintPrivateMembers + * @property {CLIEngine} cliEngine The wrapped CLIEngine instance. + * @property {LegacyESLintOptions} options The options used to instantiate the ESLint instance. + */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +const writeFile = promisify(fs.writeFile); + +/** + * The map with which to store private class members. + * @type {WeakMap} + */ +const privateMembersMap = new WeakMap(); + +/** + * Check if a given value is a non-empty string or not. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is a non-empty string. + */ +function isNonEmptyString(value) { + return typeof value === "string" && value.trim() !== ""; +} + +/** + * Check if a given value is an array of non-empty strings or not. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is an array of non-empty strings. + */ +function isArrayOfNonEmptyString(value) { + return Array.isArray(value) && value.length && value.every(isNonEmptyString); +} + +/** + * Check if a given value is an empty array or an array of non-empty strings. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is an empty array or an array of non-empty + * strings. + */ +function isEmptyArrayOrArrayOfNonEmptyString(value) { + return Array.isArray(value) && value.every(isNonEmptyString); +} + +/** + * Check if a given value is a valid fix type or not. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is valid fix type. + */ +function isFixType(value) { + return value === "directive" || value === "problem" || value === "suggestion" || value === "layout"; +} + +/** + * Check if a given value is an array of fix types or not. + * @param {any} value The value to check. + * @returns {boolean} `true` if `value` is an array of fix types. + */ +function isFixTypeArray(value) { + return Array.isArray(value) && value.every(isFixType); +} + +/** + * The error for invalid options. + */ +class ESLintInvalidOptionsError extends Error { + constructor(messages) { + super(`Invalid Options:\n- ${messages.join("\n- ")}`); + this.code = "ESLINT_INVALID_OPTIONS"; + Error.captureStackTrace(this, ESLintInvalidOptionsError); + } +} + +/** + * Validates and normalizes options for the wrapped CLIEngine instance. + * @param {LegacyESLintOptions} options The options to process. + * @throws {ESLintInvalidOptionsError} If of any of a variety of type errors. + * @returns {LegacyESLintOptions} The normalized options. + */ +function processOptions({ + allowInlineConfig = true, // ← we cannot use `overrideConfig.noInlineConfig` instead because `allowInlineConfig` has side-effect that suppress warnings that show inline configs are ignored. + baseConfig = null, + cache = false, + cacheLocation = ".eslintcache", + cacheStrategy = "metadata", + cwd = process.cwd(), + errorOnUnmatchedPattern = true, + extensions = null, // ← should be null by default because if it's an array then it suppresses RFC20 feature. + fix = false, + fixTypes = null, // ← should be null by default because if it's an array then it suppresses rules that don't have the `meta.type` property. + flags, /* eslint-disable-line no-unused-vars -- leaving for compatibility with ESLint#hasFlag */ + globInputPaths = true, + ignore = true, + ignorePath = null, // ← should be null by default because if it's a string then it may throw ENOENT. + overrideConfig = null, + overrideConfigFile = null, + plugins = {}, + reportUnusedDisableDirectives = null, // ← should be null by default because if it's a string then it overrides the 'reportUnusedDisableDirectives' setting in config files. And we cannot use `overrideConfig.reportUnusedDisableDirectives` instead because we cannot configure the `error` severity with that. + resolvePluginsRelativeTo = null, // ← should be null by default because if it's a string then it suppresses RFC47 feature. + rulePaths = [], + useEslintrc = true, + passOnNoPatterns = false, + ...unknownOptions +}) { + const errors = []; + const unknownOptionKeys = Object.keys(unknownOptions); + + if (unknownOptionKeys.length >= 1) { + errors.push(`Unknown options: ${unknownOptionKeys.join(", ")}`); + if (unknownOptionKeys.includes("cacheFile")) { + errors.push("'cacheFile' has been removed. Please use the 'cacheLocation' option instead."); + } + if (unknownOptionKeys.includes("configFile")) { + errors.push("'configFile' has been removed. Please use the 'overrideConfigFile' option instead."); + } + if (unknownOptionKeys.includes("envs")) { + errors.push("'envs' has been removed. Please use the 'overrideConfig.env' option instead."); + } + if (unknownOptionKeys.includes("globals")) { + errors.push("'globals' has been removed. Please use the 'overrideConfig.globals' option instead."); + } + if (unknownOptionKeys.includes("ignorePattern")) { + errors.push("'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead."); + } + if (unknownOptionKeys.includes("parser")) { + errors.push("'parser' has been removed. Please use the 'overrideConfig.parser' option instead."); + } + if (unknownOptionKeys.includes("parserOptions")) { + errors.push("'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead."); + } + if (unknownOptionKeys.includes("rules")) { + errors.push("'rules' has been removed. Please use the 'overrideConfig.rules' option instead."); + } + } + if (typeof allowInlineConfig !== "boolean") { + errors.push("'allowInlineConfig' must be a boolean."); + } + if (typeof baseConfig !== "object") { + errors.push("'baseConfig' must be an object or null."); + } + if (typeof cache !== "boolean") { + errors.push("'cache' must be a boolean."); + } + if (!isNonEmptyString(cacheLocation)) { + errors.push("'cacheLocation' must be a non-empty string."); + } + if ( + cacheStrategy !== "metadata" && + cacheStrategy !== "content" + ) { + errors.push("'cacheStrategy' must be any of \"metadata\", \"content\"."); + } + if (!isNonEmptyString(cwd) || !path.isAbsolute(cwd)) { + errors.push("'cwd' must be an absolute path."); + } + if (typeof errorOnUnmatchedPattern !== "boolean") { + errors.push("'errorOnUnmatchedPattern' must be a boolean."); + } + if (!isEmptyArrayOrArrayOfNonEmptyString(extensions) && extensions !== null) { + errors.push("'extensions' must be an array of non-empty strings or null."); + } + if (typeof fix !== "boolean" && typeof fix !== "function") { + errors.push("'fix' must be a boolean or a function."); + } + if (fixTypes !== null && !isFixTypeArray(fixTypes)) { + errors.push("'fixTypes' must be an array of any of \"directive\", \"problem\", \"suggestion\", and \"layout\"."); + } + if (typeof globInputPaths !== "boolean") { + errors.push("'globInputPaths' must be a boolean."); + } + if (typeof ignore !== "boolean") { + errors.push("'ignore' must be a boolean."); + } + if (!isNonEmptyString(ignorePath) && ignorePath !== null) { + errors.push("'ignorePath' must be a non-empty string or null."); + } + if (typeof overrideConfig !== "object") { + errors.push("'overrideConfig' must be an object or null."); + } + if (!isNonEmptyString(overrideConfigFile) && overrideConfigFile !== null) { + errors.push("'overrideConfigFile' must be a non-empty string or null."); + } + if (typeof plugins !== "object") { + errors.push("'plugins' must be an object or null."); + } else if (plugins !== null && Object.keys(plugins).includes("")) { + errors.push("'plugins' must not include an empty string."); + } + if (Array.isArray(plugins)) { + errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead."); + } + if ( + reportUnusedDisableDirectives !== "error" && + reportUnusedDisableDirectives !== "warn" && + reportUnusedDisableDirectives !== "off" && + reportUnusedDisableDirectives !== null + ) { + errors.push("'reportUnusedDisableDirectives' must be any of \"error\", \"warn\", \"off\", and null."); + } + if ( + !isNonEmptyString(resolvePluginsRelativeTo) && + resolvePluginsRelativeTo !== null + ) { + errors.push("'resolvePluginsRelativeTo' must be a non-empty string or null."); + } + if (!isEmptyArrayOrArrayOfNonEmptyString(rulePaths)) { + errors.push("'rulePaths' must be an array of non-empty strings."); + } + if (typeof useEslintrc !== "boolean") { + errors.push("'useEslintrc' must be a boolean."); + } + if (typeof passOnNoPatterns !== "boolean") { + errors.push("'passOnNoPatterns' must be a boolean."); + } + + if (errors.length > 0) { + throw new ESLintInvalidOptionsError(errors); + } + + return { + allowInlineConfig, + baseConfig, + cache, + cacheLocation, + cacheStrategy, + configFile: overrideConfigFile, + cwd: path.normalize(cwd), + errorOnUnmatchedPattern, + extensions, + fix, + fixTypes, + flags: [], // LegacyESLint does not support flags, so just ignore them. + globInputPaths, + ignore, + ignorePath, + reportUnusedDisableDirectives, + resolvePluginsRelativeTo, + rulePaths, + useEslintrc, + passOnNoPatterns + }; +} + +/** + * Check if a value has one or more properties and that value is not undefined. + * @param {any} obj The value to check. + * @returns {boolean} `true` if `obj` has one or more properties that that value is not undefined. + */ +function hasDefinedProperty(obj) { + if (typeof obj === "object" && obj !== null) { + for (const key in obj) { + if (typeof obj[key] !== "undefined") { + return true; + } + } + } + return false; +} + +/** + * Create rulesMeta object. + * @param {Map} rules a map of rules from which to generate the object. + * @returns {Object} metadata for all enabled rules. + */ +function createRulesMeta(rules) { + return Array.from(rules).reduce((retVal, [id, rule]) => { + retVal[id] = rule.meta; + return retVal; + }, {}); +} + +/** @type {WeakMap} */ +const usedDeprecatedRulesCache = new WeakMap(); + +/** + * Create used deprecated rule list. + * @param {CLIEngine} cliEngine The CLIEngine instance. + * @param {string} maybeFilePath The absolute path to a lint target file or `""`. + * @returns {DeprecatedRuleInfo[]} The used deprecated rule list. + */ +function getOrFindUsedDeprecatedRules(cliEngine, maybeFilePath) { + const { + configArrayFactory, + options: { cwd } + } = getCLIEngineInternalSlots(cliEngine); + const filePath = path.isAbsolute(maybeFilePath) + ? maybeFilePath + : path.join(cwd, "__placeholder__.js"); + const configArray = configArrayFactory.getConfigArrayForFile(filePath); + const config = configArray.extractConfig(filePath); + + // Most files use the same config, so cache it. + if (!usedDeprecatedRulesCache.has(config)) { + const pluginRules = configArray.pluginRules; + const retv = []; + + for (const [ruleId, ruleConf] of Object.entries(config.rules)) { + if (getRuleSeverity(ruleConf) === 0) { + continue; + } + const rule = pluginRules.get(ruleId) || BuiltinRules.get(ruleId); + const meta = rule && rule.meta; + + if (meta && meta.deprecated) { + retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); + } + } + + usedDeprecatedRulesCache.set(config, Object.freeze(retv)); + } + + return usedDeprecatedRulesCache.get(config); +} + +/** + * Processes the linting results generated by a CLIEngine linting report to + * match the ESLint class's API. + * @param {CLIEngine} cliEngine The CLIEngine instance. + * @param {CLIEngineLintReport} report The CLIEngine linting report to process. + * @returns {LintResult[]} The processed linting results. + */ +function processCLIEngineLintReport(cliEngine, { results }) { + const descriptor = { + configurable: true, + enumerable: true, + get() { + return getOrFindUsedDeprecatedRules(cliEngine, this.filePath); + } + }; + + for (const result of results) { + Object.defineProperty(result, "usedDeprecatedRules", descriptor); + } + + return results; +} + +/** + * An Array.prototype.sort() compatible compare function to order results by their file path. + * @param {LintResult} a The first lint result. + * @param {LintResult} b The second lint result. + * @returns {number} An integer representing the order in which the two results should occur. + */ +function compareResultsByFilePath(a, b) { + if (a.filePath < b.filePath) { + return -1; + } + + if (a.filePath > b.filePath) { + return 1; + } + + return 0; +} + +/** + * Main API. + */ +class LegacyESLint { + + /** + * The type of configuration used by this class. + * @type {string} + */ + static configType = "eslintrc"; + + /** + * Creates a new instance of the main ESLint API. + * @param {LegacyESLintOptions} options The options for this instance. + */ + constructor(options = {}) { + const processedOptions = processOptions(options); + const cliEngine = new CLIEngine(processedOptions, { preloadedPlugins: options.plugins }); + const { + configArrayFactory, + lastConfigArrays + } = getCLIEngineInternalSlots(cliEngine); + let updated = false; + + /* + * Address `overrideConfig` to set override config. + * Operate the `configArrayFactory` internal slot directly because this + * functionality doesn't exist as the public API of CLIEngine. + */ + if (hasDefinedProperty(options.overrideConfig)) { + configArrayFactory.setOverrideConfig(options.overrideConfig); + updated = true; + } + + // Update caches. + if (updated) { + configArrayFactory.clearCache(); + lastConfigArrays[0] = configArrayFactory.getConfigArrayForFile(); + } + + // Initialize private properties. + privateMembersMap.set(this, { + cliEngine, + options: processedOptions + }); + } + + /** + * The version text. + * @type {string} + */ + static get version() { + return version; + } + + /** + * Outputs fixes from the given results to files. + * @param {LintResult[]} results The lint results. + * @returns {Promise} Returns a promise that is used to track side effects. + */ + static async outputFixes(results) { + if (!Array.isArray(results)) { + throw new Error("'results' must be an array"); + } + + await Promise.all( + results + .filter(result => { + if (typeof result !== "object" || result === null) { + throw new Error("'results' must include only objects"); + } + return ( + typeof result.output === "string" && + path.isAbsolute(result.filePath) + ); + }) + .map(r => writeFile(r.filePath, r.output)) + ); + } + + /** + * Returns results that only contains errors. + * @param {LintResult[]} results The results to filter. + * @returns {LintResult[]} The filtered results. + */ + static getErrorResults(results) { + return CLIEngine.getErrorResults(results); + } + + /** + * Returns meta objects for each rule represented in the lint results. + * @param {LintResult[]} results The results to fetch rules meta for. + * @returns {Object} A mapping of ruleIds to rule meta objects. + */ + getRulesMetaForResults(results) { + + const resultRuleIds = new Set(); + + // first gather all ruleIds from all results + + for (const result of results) { + for (const { ruleId } of result.messages) { + resultRuleIds.add(ruleId); + } + for (const { ruleId } of result.suppressedMessages) { + resultRuleIds.add(ruleId); + } + } + + // create a map of all rules in the results + + const { cliEngine } = privateMembersMap.get(this); + const rules = cliEngine.getRules(); + const resultRules = new Map(); + + for (const [ruleId, rule] of rules) { + if (resultRuleIds.has(ruleId)) { + resultRules.set(ruleId, rule); + } + } + + return createRulesMeta(resultRules); + + } + + /* eslint-disable no-unused-vars, class-methods-use-this -- leaving for compatibility with ESLint#hasFlag */ + /** + * Indicates if the given feature flag is enabled for this instance. For this + * class, this always returns `false` because it does not support feature flags. + * @param {string} flag The feature flag to check. + * @returns {boolean} Always false. + */ + hasFlag(flag) { + return false; + } + /* eslint-enable no-unused-vars, class-methods-use-this -- reenable rules for the rest of the file */ + + /** + * Executes the current configuration on an array of file and directory names. + * @param {string[]} patterns An array of file and directory names. + * @returns {Promise} The results of linting the file patterns given. + */ + async lintFiles(patterns) { + const { cliEngine, options } = privateMembersMap.get(this); + + if (options.passOnNoPatterns && (patterns === "" || (Array.isArray(patterns) && patterns.length === 0))) { + return []; + } + + if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { + throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); + } + + return processCLIEngineLintReport( + cliEngine, + cliEngine.executeOnFiles(patterns) + ); + } + + /** + * Executes the current configuration on text. + * @param {string} code A string of JavaScript code to lint. + * @param {Object} [options] The options. + * @param {string} [options.filePath] The path to the file of the source code. + * @param {boolean} [options.warnIgnored] When set to true, warn if given filePath is an ignored path. + * @returns {Promise} The results of linting the string of code given. + */ + async lintText(code, options = {}) { + if (typeof code !== "string") { + throw new Error("'code' must be a string"); + } + if (typeof options !== "object") { + throw new Error("'options' must be an object, null, or undefined"); + } + const { + filePath, + warnIgnored = false, + ...unknownOptions + } = options || {}; + + const unknownOptionKeys = Object.keys(unknownOptions); + + if (unknownOptionKeys.length > 0) { + throw new Error(`'options' must not include the unknown option(s): ${unknownOptionKeys.join(", ")}`); + } + + if (filePath !== void 0 && !isNonEmptyString(filePath)) { + throw new Error("'options.filePath' must be a non-empty string or undefined"); + } + if (typeof warnIgnored !== "boolean") { + throw new Error("'options.warnIgnored' must be a boolean or undefined"); + } + + const { cliEngine } = privateMembersMap.get(this); + + return processCLIEngineLintReport( + cliEngine, + cliEngine.executeOnText(code, filePath, warnIgnored) + ); + } + + /** + * Returns the formatter representing the given formatter name. + * @param {string} [name] The name of the formatter to load. + * The following values are allowed: + * - `undefined` ... Load `stylish` builtin formatter. + * - A builtin formatter name ... Load the builtin formatter. + * - A third-party formatter name: + * - `foo` → `eslint-formatter-foo` + * - `@foo` → `@foo/eslint-formatter` + * - `@foo/bar` → `@foo/eslint-formatter-bar` + * - A file path ... Load the file. + * @returns {Promise} A promise resolving to the formatter object. + * This promise will be rejected if the given formatter was not found or not + * a function. + */ + async loadFormatter(name = "stylish") { + if (typeof name !== "string") { + throw new Error("'name' must be a string"); + } + + const { cliEngine, options } = privateMembersMap.get(this); + const formatter = cliEngine.getFormatter(name); + + if (typeof formatter !== "function") { + throw new Error(`Formatter must be a function, but got a ${typeof formatter}.`); + } + + return { + + /** + * The main formatter method. + * @param {LintResult[]} results The lint results to format. + * @param {ResultsMeta} resultsMeta Warning count and max threshold. + * @returns {string | Promise} The formatted lint results. + */ + format(results, resultsMeta) { + let rulesMeta = null; + + results.sort(compareResultsByFilePath); + + return formatter(results, { + ...resultsMeta, + get cwd() { + return options.cwd; + }, + get rulesMeta() { + if (!rulesMeta) { + rulesMeta = createRulesMeta(cliEngine.getRules()); + } + + return rulesMeta; + } + }); + } + }; + } + + /** + * Returns a configuration object for the given file based on the CLI options. + * This is the same logic used by the ESLint CLI executable to determine + * configuration for each file it processes. + * @param {string} filePath The path of the file to retrieve a config object for. + * @returns {Promise} A configuration object for the file. + */ + async calculateConfigForFile(filePath) { + if (!isNonEmptyString(filePath)) { + throw new Error("'filePath' must be a non-empty string"); + } + const { cliEngine } = privateMembersMap.get(this); + + return cliEngine.getConfigForFile(filePath); + } + + /** + * Checks if a given path is ignored by ESLint. + * @param {string} filePath The path of the file to check. + * @returns {Promise} Whether or not the given path is ignored. + */ + async isPathIgnored(filePath) { + if (!isNonEmptyString(filePath)) { + throw new Error("'filePath' must be a non-empty string"); + } + const { cliEngine } = privateMembersMap.get(this); + + return cliEngine.isPathIgnored(filePath); + } +} + +//------------------------------------------------------------------------------ +// Public Interface +//------------------------------------------------------------------------------ + +module.exports = { + LegacyESLint, + + /** + * Get the private class members of a given ESLint instance for tests. + * @param {ESLint} instance The ESLint instance to get. + * @returns {ESLintPrivateMembers} The instance's private class members. + */ + getESLintPrivateMembers(instance) { + return privateMembersMap.get(instance); + } +}; diff --git a/node_modules/eslint/lib/languages/js/index.js b/node_modules/eslint/lib/languages/js/index.js new file mode 100644 index 00000000..98d72a54 --- /dev/null +++ b/node_modules/eslint/lib/languages/js/index.js @@ -0,0 +1,336 @@ +/** + * @fileoverview JavaScript Language Object + * @author Nicholas C. Zakas + */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Requirements +//----------------------------------------------------------------------------- + +const { SourceCode } = require("./source-code"); +const createDebug = require("debug"); +const astUtils = require("../../shared/ast-utils"); +const espree = require("espree"); +const eslintScope = require("eslint-scope"); +const evk = require("eslint-visitor-keys"); +const { validateLanguageOptions } = require("./validate-language-options"); +const { LATEST_ECMA_VERSION } = require("../../../conf/ecma-version"); + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").File} File */ +/** @typedef {import("@eslint/core").Language} Language */ +/** @typedef {import("@eslint/core").OkParseResult} OkParseResult */ + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +const debug = createDebug("eslint:languages:js"); +const DEFAULT_ECMA_VERSION = 5; +const parserSymbol = Symbol.for("eslint.RuleTester.parser"); + +/** + * Analyze scope of the given AST. + * @param {ASTNode} ast The `Program` node to analyze. + * @param {LanguageOptions} languageOptions The parser options. + * @param {Record} visitorKeys The visitor keys. + * @returns {ScopeManager} The analysis result. + */ +function analyzeScope(ast, languageOptions, visitorKeys) { + const parserOptions = languageOptions.parserOptions; + const ecmaFeatures = parserOptions.ecmaFeatures || {}; + const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION; + + return eslintScope.analyze(ast, { + ignoreEval: true, + nodejsScope: ecmaFeatures.globalReturn, + impliedStrict: ecmaFeatures.impliedStrict, + ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6, + sourceType: languageOptions.sourceType || "script", + childVisitorKeys: visitorKeys || evk.KEYS, + fallback: evk.getKeys + }); +} + +/** + * Determines if a given object is Espree. + * @param {Object} parser The parser to check. + * @returns {boolean} True if the parser is Espree or false if not. + */ +function isEspree(parser) { + return !!(parser === espree || parser[parserSymbol] === espree); +} + +/** + * Normalize ECMAScript version from the initial config into languageOptions (year) + * format. + * @param {any} [ecmaVersion] ECMAScript version from the initial config + * @returns {number} normalized ECMAScript version + */ +function normalizeEcmaVersionForLanguageOptions(ecmaVersion) { + + switch (ecmaVersion) { + case 3: + return 3; + + // void 0 = no ecmaVersion specified so use the default + case 5: + case void 0: + return 5; + + default: + if (typeof ecmaVersion === "number") { + return ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009; + } + } + + /* + * We default to the latest supported ecmaVersion for everything else. + * Remember, this is for languageOptions.ecmaVersion, which sets the version + * that is used for a number of processes inside of ESLint. It's normally + * safe to assume people want the latest unless otherwise specified. + */ + return LATEST_ECMA_VERSION; +} + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * @type {Language} + */ +module.exports = { + + fileType: "text", + lineStart: 1, + columnStart: 0, + nodeTypeKey: "type", + visitorKeys: evk.KEYS, + + defaultLanguageOptions: { + sourceType: "module", + ecmaVersion: "latest", + parser: espree, + parserOptions: {} + }, + + validateLanguageOptions, + + /** + * Normalizes the language options. + * @param {Object} languageOptions The language options to normalize. + * @returns {Object} The normalized language options. + */ + normalizeLanguageOptions(languageOptions) { + + languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions( + languageOptions.ecmaVersion + ); + + // Espree expects this information to be passed in + if (isEspree(languageOptions.parser)) { + const parserOptions = languageOptions.parserOptions; + + if (languageOptions.sourceType) { + + parserOptions.sourceType = languageOptions.sourceType; + + if ( + parserOptions.sourceType === "module" && + parserOptions.ecmaFeatures && + parserOptions.ecmaFeatures.globalReturn + ) { + parserOptions.ecmaFeatures.globalReturn = false; + } + } + } + + return languageOptions; + + }, + + /** + * Determines if a given node matches a given selector class. + * @param {string} className The class name to check. + * @param {ASTNode} node The node to check. + * @param {Array} ancestry The ancestry of the node. + * @returns {boolean} True if there's a match, false if not. + * @throws {Error} When an unknown class name is passed. + */ + matchesSelectorClass(className, node, ancestry) { + + /* + * Copyright (c) 2013, Joel Feenstra + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the ESQuery nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL JOEL FEENSTRA BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + switch (className.toLowerCase()) { + + case "statement": + if (node.type.slice(-9) === "Statement") { + return true; + } + + // fallthrough: interface Declaration <: Statement { } + + case "declaration": + return node.type.slice(-11) === "Declaration"; + + case "pattern": + if (node.type.slice(-7) === "Pattern") { + return true; + } + + // fallthrough: interface Expression <: Node, Pattern { } + + case "expression": + return node.type.slice(-10) === "Expression" || + node.type.slice(-7) === "Literal" || + ( + node.type === "Identifier" && + (ancestry.length === 0 || ancestry[0].type !== "MetaProperty") + ) || + node.type === "MetaProperty"; + + case "function": + return node.type === "FunctionDeclaration" || + node.type === "FunctionExpression" || + node.type === "ArrowFunctionExpression"; + + default: + throw new Error(`Unknown class name: ${className}`); + } + }, + + /** + * Parses the given file into an AST. + * @param {File} file The virtual file to parse. + * @param {Object} options Additional options passed from ESLint. + * @param {LanguageOptions} options.languageOptions The language options. + * @returns {Object} The result of parsing. + */ + parse(file, { languageOptions }) { + + // Note: BOM already removed + const { body: text, path: filePath } = file; + const textToParse = text.replace(astUtils.shebangPattern, (match, captured) => `//${captured}`); + const { ecmaVersion, sourceType, parser } = languageOptions; + const parserOptions = Object.assign( + { ecmaVersion, sourceType }, + languageOptions.parserOptions, + { + loc: true, + range: true, + raw: true, + tokens: true, + comment: true, + eslintVisitorKeys: true, + eslintScopeManager: true, + filePath + } + ); + + /* + * Check for parsing errors first. If there's a parsing error, nothing + * else can happen. However, a parsing error does not throw an error + * from this method - it's just considered a fatal error message, a + * problem that ESLint identified just like any other. + */ + try { + debug("Parsing:", filePath); + const parseResult = (typeof parser.parseForESLint === "function") + ? parser.parseForESLint(textToParse, parserOptions) + : { ast: parser.parse(textToParse, parserOptions) }; + + debug("Parsing successful:", filePath); + + const { + ast, + services: parserServices = {}, + visitorKeys = evk.KEYS, + scopeManager + } = parseResult; + + return { + ok: true, + ast, + parserServices, + visitorKeys, + scopeManager + }; + } catch (ex) { + + // If the message includes a leading line number, strip it: + const message = ex.message.replace(/^line \d+:/iu, "").trim(); + + debug("%s\n%s", message, ex.stack); + + return { + ok: false, + errors: [{ + message, + line: ex.lineNumber, + column: ex.column + }] + }; + } + + }, + + /** + * Creates a new `SourceCode` object from the given information. + * @param {File} file The virtual file to create a `SourceCode` object from. + * @param {OkParseResult} parseResult The result returned from `parse()`. + * @param {Object} options Additional options passed from ESLint. + * @param {LanguageOptions} options.languageOptions The language options. + * @returns {SourceCode} The new `SourceCode` object. + */ + createSourceCode(file, parseResult, { languageOptions }) { + + const { body: text, path: filePath, bom: hasBOM } = file; + const { ast, parserServices, visitorKeys } = parseResult; + + debug("Scope analysis:", filePath); + const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys); + + debug("Scope analysis successful:", filePath); + + return new SourceCode({ + text, + ast, + hasBOM, + parserServices, + scopeManager, + visitorKeys + }); + } + +}; diff --git a/node_modules/eslint/lib/languages/js/source-code/index.js b/node_modules/eslint/lib/languages/js/source-code/index.js new file mode 100644 index 00000000..1ecfbe47 --- /dev/null +++ b/node_modules/eslint/lib/languages/js/source-code/index.js @@ -0,0 +1,7 @@ +"use strict"; + +const SourceCode = require("./source-code"); + +module.exports = { + SourceCode +}; diff --git a/node_modules/eslint/lib/source-code/source-code.js b/node_modules/eslint/lib/languages/js/source-code/source-code.js similarity index 78% rename from node_modules/eslint/lib/source-code/source-code.js rename to node_modules/eslint/lib/languages/js/source-code/source-code.js index e3c6e978..9c073fa2 100644 --- a/node_modules/eslint/lib/source-code/source-code.js +++ b/node_modules/eslint/lib/languages/js/source-code/source-code.js @@ -11,15 +11,17 @@ const { isCommentToken } = require("@eslint-community/eslint-utils"), TokenStore = require("./token-store"), - astUtils = require("../shared/ast-utils"), - Traverser = require("../shared/traverser"), - globals = require("../../conf/globals"), + astUtils = require("../../../shared/ast-utils"), + Traverser = require("../../../shared/traverser"), + globals = require("../../../../conf/globals"), { directivesPattern - } = require("../shared/directives"), + } = require("../../../shared/directives"), + + CodePathAnalyzer = require("../../../linter/code-path-analysis/code-path-analyzer"), + createEmitter = require("../../../linter/safe-emitter"), + { ConfigCommentParser, VisitNodeStep, CallMethodStep, Directive } = require("@eslint/plugin-kit"), - /* eslint-disable-next-line n/no-restricted-require -- Too messy to figure out right now. */ - ConfigCommentParser = require("../linter/config-comment-parser"), eslintScope = require("eslint-scope"); //------------------------------------------------------------------------------ @@ -27,6 +29,10 @@ const //------------------------------------------------------------------------------ /** @typedef {import("eslint-scope").Variable} Variable */ +/** @typedef {import("eslint-scope").Scope} Scope */ +/** @typedef {import("@eslint/core").SourceCode} ISourceCode */ +/** @typedef {import("@eslint/core").Directive} IDirective */ +/** @typedef {import("@eslint/core").TraversalStep} ITraversalStep */ //------------------------------------------------------------------------------ // Private @@ -34,6 +40,16 @@ const const commentParser = new ConfigCommentParser(); +const CODE_PATH_EVENTS = [ + "onCodePathStart", + "onCodePathEnd", + "onCodePathSegmentStart", + "onCodePathSegmentEnd", + "onCodePathSegmentLoop", + "onUnreachableCodePathSegmentStart", + "onUnreachableCodePathSegmentEnd" +]; + /** * Validates that the given AST has the required information. * @param {ASTNode} ast The Program node of the AST to check. @@ -308,28 +324,39 @@ const caches = Symbol("caches"); /** * Represents parsed source code. + * @implements {ISourceCode} */ class SourceCode extends TokenStore { /** + * The cache of steps that were taken while traversing the source code. + * @type {Array} + */ + #steps; + + /** + * Creates a new instance. * @param {string|Object} textOrConfig The source code text or config object. * @param {string} textOrConfig.text The source code text. * @param {ASTNode} textOrConfig.ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. + * @param {boolean} textOrConfig.hasBOM Indicates if the text has a Unicode BOM. * @param {Object|null} textOrConfig.parserServices The parser services. * @param {ScopeManager|null} textOrConfig.scopeManager The scope of this source code. * @param {Object|null} textOrConfig.visitorKeys The visitor keys to traverse AST. * @param {ASTNode} [astIfNoConfig] The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. */ constructor(textOrConfig, astIfNoConfig) { - let text, ast, parserServices, scopeManager, visitorKeys; + let text, hasBOM, ast, parserServices, scopeManager, visitorKeys; - // Process overloading. + // Process overloading of arguments if (typeof textOrConfig === "string") { text = textOrConfig; ast = astIfNoConfig; + hasBOM = false; } else if (typeof textOrConfig === "object" && textOrConfig !== null) { text = textOrConfig.text; ast = textOrConfig.ast; + hasBOM = textOrConfig.hasBOM; parserServices = textOrConfig.parserServices; scopeManager = textOrConfig.scopeManager; visitorKeys = textOrConfig.visitorKeys; @@ -347,18 +374,39 @@ class SourceCode extends TokenStore { ["configNodes", void 0] ]); + /** + * Indicates if the AST is ESTree compatible. + * @type {boolean} + */ + this.isESTree = ast.type === "Program"; + + /* + * Backwards compatibility for BOM handling. + * + * The `hasBOM` property has been available on the `SourceCode` object + * for a long time and is used to indicate if the source contains a BOM. + * The linter strips the BOM and just passes the `hasBOM` property to the + * `SourceCode` constructor to make it easier for languages to not deal with + * the BOM. + * + * However, the text passed in to the `SourceCode` constructor might still + * have a BOM if the constructor is called outside of the linter, so we still + * need to check for the BOM in the text. + */ + const textHasBOM = text.charCodeAt(0) === 0xFEFF; + /** * The flag to indicate that the source code has Unicode BOM. * @type {boolean} */ - this.hasBOM = (text.charCodeAt(0) === 0xFEFF); + this.hasBOM = textHasBOM || !!hasBOM; /** * The original text source code. * BOM was stripped from this text. * @type {string} */ - this.text = (this.hasBOM ? text.slice(1) : text); + this.text = (textHasBOM ? text.slice(1) : text); /** * The parsed AST for the source code. @@ -415,13 +463,10 @@ class SourceCode extends TokenStore { * and uses match.index to get the correct line start indices. */ while ((match = lineEndingPattern.exec(this.text))) { - this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length - 1], match.index)); + this.lines.push(this.text.slice(this.lineStartIndices.at(-1), match.index)); this.lineStartIndices.push(match.index + match[0].length); } - this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length - 1])); - - // Cache for comments found using getComments(). - this._commentCache = new WeakMap(); + this.lines.push(this.text.slice(this.lineStartIndices.at(-1))); // don't allow further modification of this object Object.freeze(this); @@ -472,81 +517,6 @@ class SourceCode extends TokenStore { return this.ast.comments; } - /** - * Gets all comments for the given node. - * @param {ASTNode} node The AST node to get the comments for. - * @returns {Object} An object containing a leading and trailing array - * of comments indexed by their position. - * @public - * @deprecated replaced by getCommentsBefore(), getCommentsAfter(), and getCommentsInside(). - */ - getComments(node) { - if (this._commentCache.has(node)) { - return this._commentCache.get(node); - } - - const comments = { - leading: [], - trailing: [] - }; - - /* - * Return all comments as leading comments of the Program node when - * there is no executable code. - */ - if (node.type === "Program") { - if (node.body.length === 0) { - comments.leading = node.comments; - } - } else { - - /* - * Return comments as trailing comments of nodes that only contain - * comments (to mimic the comment attachment behavior present in Espree). - */ - if ((node.type === "BlockStatement" || node.type === "ClassBody") && node.body.length === 0 || - node.type === "ObjectExpression" && node.properties.length === 0 || - node.type === "ArrayExpression" && node.elements.length === 0 || - node.type === "SwitchStatement" && node.cases.length === 0 - ) { - comments.trailing = this.getTokens(node, { - includeComments: true, - filter: isCommentToken - }); - } - - /* - * Iterate over tokens before and after node and collect comment tokens. - * Do not include comments that exist outside of the parent node - * to avoid duplication. - */ - let currentToken = this.getTokenBefore(node, { includeComments: true }); - - while (currentToken && isCommentToken(currentToken)) { - if (node.parent && node.parent.type !== "Program" && (currentToken.start < node.parent.start)) { - break; - } - comments.leading.push(currentToken); - currentToken = this.getTokenBefore(currentToken, { includeComments: true }); - } - - comments.leading.reverse(); - - currentToken = this.getTokenAfter(node, { includeComments: true }); - - while (currentToken && isCommentToken(currentToken)) { - if (node.parent && node.parent.type !== "Program" && (currentToken.end > node.parent.end)) { - break; - } - comments.trailing.push(currentToken); - currentToken = this.getTokenAfter(currentToken, { includeComments: true }); - } - } - - this._commentCache.set(node, comments); - return comments; - } - /** * Retrieves the JSDoc comment for a given node. * @param {ASTNode} node The AST node to get the comment for. @@ -701,14 +671,14 @@ class SourceCode extends TokenStore { * See getIndexFromLoc for the motivation for this special case. */ if (index === this.text.length) { - return { line: this.lines.length, column: this.lines[this.lines.length - 1].length }; + return { line: this.lines.length, column: this.lines.at(-1).length }; } /* * To figure out which line index is on, determine the last place at which index could * be inserted into lineStartIndices to keep the list sorted. */ - const lineNumber = index >= this.lineStartIndices[this.lineStartIndices.length - 1] + const lineNumber = index >= this.lineStartIndices.at(-1) ? this.lineStartIndices.length : this.lineStartIndices.findIndex(el => index < el); @@ -764,7 +734,7 @@ class SourceCode extends TokenStore { /** * Gets the scope for the given node * @param {ASTNode} currentNode The node to get the scope of - * @returns {eslint-scope.Scope} The scope information for this node + * @returns {Scope} The scope information for this node * @throws {TypeError} If the `currentNode` argument is missing. */ getScope(currentNode) { @@ -836,6 +806,25 @@ class SourceCode extends TokenStore { return ancestorsStartingAtParent.reverse(); } + + /** + * Returns the location of the given node or token. + * @param {ASTNode|Token} nodeOrToken The node or token to get the location of. + * @returns {SourceLocation} The location of the node or token. + */ + getLoc(nodeOrToken) { + return nodeOrToken.loc; + } + + /** + * Returns the range of the given node or token. + * @param {ASTNode|Token} nodeOrToken The node or token to get the range of. + * @returns {[number, number]} The range of the node or token. + */ + getRange(nodeOrToken) { + return nodeOrToken.range; + } + /* eslint-enable class-methods-use-this -- node is owned by SourceCode */ /** @@ -903,16 +892,18 @@ class SourceCode extends TokenStore { return false; } - const { directivePart } = commentParser.extractDirectiveComment(comment.value); + const directive = commentParser.parseDirective(comment.value); - const directiveMatch = directivesPattern.exec(directivePart); + if (!directive) { + return false; + } - if (!directiveMatch) { + if (!directivesPattern.test(directive.label)) { return false; } // only certain comment types are supported as line comments - return comment.type !== "Line" || !!/^eslint-disable-(next-)?line$/u.test(directiveMatch[1]); + return comment.type !== "Line" || !!/^eslint-disable-(next-)?line$/u.test(directive.label); }); this[caches].set("configNodes", configNodes); @@ -920,6 +911,79 @@ class SourceCode extends TokenStore { return configNodes; } + /** + * Returns an all directive nodes that enable or disable rules along with any problems + * encountered while parsing the directives. + * @returns {{problems:Array,directives:Array}} Information + * that ESLint needs to further process the directives. + */ + getDisableDirectives() { + + // check the cache first + const cachedDirectives = this[caches].get("disableDirectives"); + + if (cachedDirectives) { + return cachedDirectives; + } + + const problems = []; + const directives = []; + + this.getInlineConfigNodes().forEach(comment => { + + // Step 1: Parse the directive + const { + label, + value, + justification: justificationPart + } = commentParser.parseDirective(comment.value); + + // Step 2: Extract the directive value + const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(label); + + if (comment.type === "Line" && !lineCommentSupported) { + return; + } + + // Step 3: Validate the directive does not span multiple lines + if (label === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) { + const message = `${label} comment should not span multiple lines.`; + + problems.push({ + ruleId: null, + message, + loc: comment.loc + }); + return; + } + + // Step 4: Extract the directive value and create the Directive object + switch (label) { + case "eslint-disable": + case "eslint-enable": + case "eslint-disable-next-line": + case "eslint-disable-line": { + const directiveType = label.slice("eslint-".length); + + directives.push(new Directive({ + type: directiveType, + node: comment, + value, + justification: justificationPart + })); + } + + // no default + } + }); + + const result = { problems, directives }; + + this[caches].set("disableDirectives", result); + + return result; + } + /** * Applies language options sent in from the core. * @param {Object} languageOptions The language options for this run. @@ -947,7 +1011,7 @@ class SourceCode extends TokenStore { /** * Applies configuration found inside of the source code. This method is only * called when ESLint is running with inline configuration allowed. - * @returns {{problems:Array,configs:{config:FlatConfigArray,node:ASTNode}}} Information + * @returns {{problems:Array,configs:{config:FlatConfigArray,loc:Location}}} Information * that ESLint needs to further process the inline configuration. */ applyInlineConfig() { @@ -959,20 +1023,20 @@ class SourceCode extends TokenStore { this.getInlineConfigNodes().forEach(comment => { - const { directiveText, directiveValue } = commentParser.parseDirective(comment); + const { label, value } = commentParser.parseDirective(comment.value); - switch (directiveText) { + switch (label) { case "exported": - Object.assign(exportedVariables, commentParser.parseStringConfig(directiveValue, comment)); + Object.assign(exportedVariables, commentParser.parseListConfig(value)); break; case "globals": case "global": - for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) { + for (const [id, idSetting] of Object.entries(commentParser.parseStringConfig(value))) { let normalizedValue; try { - normalizedValue = normalizeConfigGlobal(value); + normalizedValue = normalizeConfigGlobal(idSetting); } catch (err) { problems.push({ ruleId: null, @@ -995,17 +1059,21 @@ class SourceCode extends TokenStore { break; case "eslint": { - const parseResult = commentParser.parseJsonConfig(directiveValue, comment.loc); + const parseResult = commentParser.parseJSONLikeConfig(value); - if (parseResult.success) { + if (parseResult.ok) { configs.push({ config: { rules: parseResult.config }, - node: comment + loc: comment.loc }); } else { - problems.push(parseResult.error); + problems.push({ + ruleId: null, + loc: comment.loc, + message: parseResult.error.message + }); } break; @@ -1035,12 +1103,11 @@ class SourceCode extends TokenStore { */ finalize() { - // Step 1: ensure that all of the necessary variables are up to date const varsCache = this[caches].get("vars"); - const globalScope = this.scopeManager.scopes[0]; const configGlobals = varsCache.get("configGlobals"); const inlineGlobals = varsCache.get("inlineGlobals"); const exportedVariables = varsCache.get("exportedVariables"); + const globalScope = this.scopeManager.scopes[0]; addDeclaredGlobals(globalScope, configGlobals, inlineGlobals); @@ -1050,6 +1117,86 @@ class SourceCode extends TokenStore { } + /** + * Traverse the source code and return the steps that were taken. + * @returns {Array} The steps that were taken while traversing the source code. + */ + traverse() { + + // Because the AST doesn't mutate, we can cache the steps + if (this.#steps) { + return this.#steps; + } + + const steps = this.#steps = []; + + /* + * This logic works for any AST, not just ESTree. Because ESLint has allowed + * custom parsers to return any AST, we need to ensure that the traversal + * logic works for any AST. + */ + const emitter = createEmitter(); + let analyzer = { + enterNode(node) { + steps.push(new VisitNodeStep({ + target: node, + phase: 1, + args: [node, node.parent] + })); + }, + leaveNode(node) { + steps.push(new VisitNodeStep({ + target: node, + phase: 2, + args: [node, node.parent] + })); + }, + emitter + }; + + /* + * We do code path analysis for ESTree only. Code path analysis is not + * necessary for other ASTs, and it's also not possible to do for other + * ASTs because the necessary information is not available. + * + * Generally speaking, we can tell that the AST is an ESTree if it has a + * Program node at the top level. This is not a perfect heuristic, but it + * is good enough for now. + */ + if (this.isESTree) { + analyzer = new CodePathAnalyzer(analyzer); + + CODE_PATH_EVENTS.forEach(eventName => { + emitter.on(eventName, (...args) => { + steps.push(new CallMethodStep({ + target: eventName, + args + })); + }); + }); + } + + /* + * The actual AST traversal is done by the `Traverser` class. This class + * is responsible for walking the AST and calling the appropriate methods + * on the `analyzer` object, which is appropriate for the given AST. + */ + Traverser.traverse(this.ast, { + enter(node, parent) { + + // save the parent node on a property for backwards compatibility + node.parent = parent; + + analyzer.enterNode(node); + }, + leave(node) { + analyzer.leaveNode(node); + }, + visitorKeys: this.visitorKeys + }); + + return steps; + } } module.exports = SourceCode; diff --git a/node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/backward-token-comment-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js similarity index 89% rename from node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js index 454a2449..d3469c99 100644 --- a/node_modules/eslint/lib/source-code/token-store/backward-token-cursor.js +++ b/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js @@ -9,7 +9,7 @@ //------------------------------------------------------------------------------ const Cursor = require("./cursor"); -const utils = require("./utils"); +const { getLastIndex, getFirstIndex } = require("./utils"); //------------------------------------------------------------------------------ // Exports @@ -31,8 +31,8 @@ module.exports = class BackwardTokenCursor extends Cursor { constructor(tokens, comments, indexMap, startLoc, endLoc) { super(); this.tokens = tokens; - this.index = utils.getLastIndex(tokens, indexMap, endLoc); - this.indexEnd = utils.getFirstIndex(tokens, indexMap, startLoc); + this.index = getLastIndex(tokens, indexMap, endLoc); + this.indexEnd = getFirstIndex(tokens, indexMap, startLoc); } /** @inheritdoc */ diff --git a/node_modules/eslint/lib/source-code/token-store/cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/cursors.js b/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js similarity index 95% rename from node_modules/eslint/lib/source-code/token-store/cursors.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js index 30c72b69..f2676f13 100644 --- a/node_modules/eslint/lib/source-code/token-store/cursors.js +++ b/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js @@ -86,5 +86,7 @@ class CursorFactory { // Exports //------------------------------------------------------------------------------ -exports.forward = new CursorFactory(ForwardTokenCursor, ForwardTokenCommentCursor); -exports.backward = new CursorFactory(BackwardTokenCursor, BackwardTokenCommentCursor); +module.exports = { + forward: new CursorFactory(ForwardTokenCursor, ForwardTokenCommentCursor), + backward: new CursorFactory(BackwardTokenCursor, BackwardTokenCommentCursor) +}; diff --git a/node_modules/eslint/lib/source-code/token-store/decorative-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/decorative-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/filter-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/filter-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js similarity index 91% rename from node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js index 50c7a394..8aa46c27 100644 --- a/node_modules/eslint/lib/source-code/token-store/forward-token-comment-cursor.js +++ b/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js @@ -9,7 +9,7 @@ //------------------------------------------------------------------------------ const Cursor = require("./cursor"); -const utils = require("./utils"); +const { getFirstIndex, search } = require("./utils"); //------------------------------------------------------------------------------ // Exports @@ -32,8 +32,8 @@ module.exports = class ForwardTokenCommentCursor extends Cursor { super(); this.tokens = tokens; this.comments = comments; - this.tokenIndex = utils.getFirstIndex(tokens, indexMap, startLoc); - this.commentIndex = utils.search(comments, startLoc); + this.tokenIndex = getFirstIndex(tokens, indexMap, startLoc); + this.commentIndex = search(comments, startLoc); this.border = endLoc; } diff --git a/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js similarity index 89% rename from node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js index e8c18609..9305cbef 100644 --- a/node_modules/eslint/lib/source-code/token-store/forward-token-cursor.js +++ b/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js @@ -9,7 +9,7 @@ //------------------------------------------------------------------------------ const Cursor = require("./cursor"); -const utils = require("./utils"); +const { getFirstIndex, getLastIndex } = require("./utils"); //------------------------------------------------------------------------------ // Exports @@ -31,8 +31,8 @@ module.exports = class ForwardTokenCursor extends Cursor { constructor(tokens, comments, indexMap, startLoc, endLoc) { super(); this.tokens = tokens; - this.index = utils.getFirstIndex(tokens, indexMap, startLoc); - this.indexEnd = utils.getLastIndex(tokens, indexMap, endLoc); + this.index = getFirstIndex(tokens, indexMap, startLoc); + this.indexEnd = getLastIndex(tokens, indexMap, endLoc); } /** @inheritdoc */ diff --git a/node_modules/eslint/lib/languages/js/source-code/token-store/index.js b/node_modules/eslint/lib/languages/js/source-code/token-store/index.js new file mode 100644 index 00000000..d44191ac --- /dev/null +++ b/node_modules/eslint/lib/languages/js/source-code/token-store/index.js @@ -0,0 +1,627 @@ +/** + * @fileoverview Object to handle access and retrieval of tokens. + * @author Brandon Mills + */ +"use strict"; + +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const { isCommentToken } = require("@eslint-community/eslint-utils"); +const assert = require("../../../../shared/assert"); +const cursors = require("./cursors"); +const ForwardTokenCursor = require("./forward-token-cursor"); +const PaddedTokenCursor = require("./padded-token-cursor"); +const utils = require("./utils"); + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +const TOKENS = Symbol("tokens"); +const COMMENTS = Symbol("comments"); +const INDEX_MAP = Symbol("indexMap"); + +/** + * Creates the map from locations to indices in `tokens`. + * + * The first/last location of tokens is mapped to the index of the token. + * The first/last location of comments is mapped to the index of the next token of each comment. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + * @returns {Object} The map from locations to indices in `tokens`. + * @private + */ +function createIndexMap(tokens, comments) { + const map = Object.create(null); + let tokenIndex = 0; + let commentIndex = 0; + let nextStart; + let range; + + while (tokenIndex < tokens.length || commentIndex < comments.length) { + nextStart = (commentIndex < comments.length) ? comments[commentIndex].range[0] : Number.MAX_SAFE_INTEGER; + while (tokenIndex < tokens.length && (range = tokens[tokenIndex].range)[0] < nextStart) { + map[range[0]] = tokenIndex; + map[range[1] - 1] = tokenIndex; + tokenIndex += 1; + } + + nextStart = (tokenIndex < tokens.length) ? tokens[tokenIndex].range[0] : Number.MAX_SAFE_INTEGER; + while (commentIndex < comments.length && (range = comments[commentIndex].range)[0] < nextStart) { + map[range[0]] = tokenIndex; + map[range[1] - 1] = tokenIndex; + commentIndex += 1; + } + } + + return map; +} + +/** + * Creates the cursor iterates tokens with options. + * @param {CursorFactory} factory The cursor factory to initialize cursor. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + * @param {Object} indexMap The map from locations to indices in `tokens`. + * @param {number} startLoc The start location of the iteration range. + * @param {number} endLoc The end location of the iteration range. + * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.skip`. If this is a function then it's `opts.filter`. + * @param {boolean} [opts.includeComments=false] The flag to iterate comments as well. + * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. + * @param {number} [opts.skip=0] The count of tokens the cursor skips. + * @returns {Cursor} The created cursor. + * @private + */ +function createCursorWithSkip(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { + let includeComments = false; + let skip = 0; + let filter = null; + + if (typeof opts === "number") { + skip = opts | 0; + } else if (typeof opts === "function") { + filter = opts; + } else if (opts) { + includeComments = !!opts.includeComments; + skip = opts.skip | 0; + filter = opts.filter || null; + } + assert(skip >= 0, "options.skip should be zero or a positive integer."); + assert(!filter || typeof filter === "function", "options.filter should be a function."); + + return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, skip, -1); +} + +/** + * Creates the cursor iterates tokens with options. + * @param {CursorFactory} factory The cursor factory to initialize cursor. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + * @param {Object} indexMap The map from locations to indices in `tokens`. + * @param {number} startLoc The start location of the iteration range. + * @param {number} endLoc The end location of the iteration range. + * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.count`. If this is a function then it's `opts.filter`. + * @param {boolean} [opts.includeComments] The flag to iterate comments as well. + * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. + * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. + * @returns {Cursor} The created cursor. + * @private + */ +function createCursorWithCount(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { + let includeComments = false; + let count = 0; + let countExists = false; + let filter = null; + + if (typeof opts === "number") { + count = opts | 0; + countExists = true; + } else if (typeof opts === "function") { + filter = opts; + } else if (opts) { + includeComments = !!opts.includeComments; + count = opts.count | 0; + countExists = typeof opts.count === "number"; + filter = opts.filter || null; + } + assert(count >= 0, "options.count should be zero or a positive integer."); + assert(!filter || typeof filter === "function", "options.filter should be a function."); + + return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, 0, countExists ? count : -1); +} + +/** + * Creates the cursor iterates tokens with options. + * This is overload function of the below. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + * @param {Object} indexMap The map from locations to indices in `tokens`. + * @param {number} startLoc The start location of the iteration range. + * @param {number} endLoc The end location of the iteration range. + * @param {Function|Object} opts The option object. If this is a function then it's `opts.filter`. + * @param {boolean} [opts.includeComments] The flag to iterate comments as well. + * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. + * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. + * @returns {Cursor} The created cursor. + * @private + */ +/** + * Creates the cursor iterates tokens with options. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + * @param {Object} indexMap The map from locations to indices in `tokens`. + * @param {number} startLoc The start location of the iteration range. + * @param {number} endLoc The end location of the iteration range. + * @param {number} [beforeCount=0] The number of tokens before the node to retrieve. + * @param {boolean} [afterCount=0] The number of tokens after the node to retrieve. + * @returns {Cursor} The created cursor. + * @private + */ +function createCursorWithPadding(tokens, comments, indexMap, startLoc, endLoc, beforeCount, afterCount) { + if (typeof beforeCount === "undefined" && typeof afterCount === "undefined") { + return new ForwardTokenCursor(tokens, comments, indexMap, startLoc, endLoc); + } + if (typeof beforeCount === "number" || typeof beforeCount === "undefined") { + return new PaddedTokenCursor(tokens, comments, indexMap, startLoc, endLoc, beforeCount | 0, afterCount | 0); + } + return createCursorWithCount(cursors.forward, tokens, comments, indexMap, startLoc, endLoc, beforeCount); +} + +/** + * Gets comment tokens that are adjacent to the current cursor position. + * @param {Cursor} cursor A cursor instance. + * @returns {Array} An array of comment tokens adjacent to the current cursor position. + * @private + */ +function getAdjacentCommentTokensFromCursor(cursor) { + const tokens = []; + let currentToken = cursor.getOneToken(); + + while (currentToken && isCommentToken(currentToken)) { + tokens.push(currentToken); + currentToken = cursor.getOneToken(); + } + + return tokens; +} + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * The token store. + * + * This class provides methods to get tokens by locations as fast as possible. + * The methods are a part of public API, so we should be careful if it changes this class. + * + * People can get tokens in O(1) by the hash map which is mapping from the location of tokens/comments to tokens. + * Also people can get a mix of tokens and comments in O(log k), the k is the number of comments. + * Assuming that comments to be much fewer than tokens, this does not make hash map from token's locations to comments to reduce memory cost. + * This uses binary-searching instead for comments. + */ +module.exports = class TokenStore { + + /** + * Initializes this token store. + * @param {Token[]} tokens The array of tokens. + * @param {Comment[]} comments The array of comments. + */ + constructor(tokens, comments) { + this[TOKENS] = tokens; + this[COMMENTS] = comments; + this[INDEX_MAP] = createIndexMap(tokens, comments); + } + + //-------------------------------------------------------------------------- + // Gets single token. + //-------------------------------------------------------------------------- + + /** + * Gets the token starting at the specified index. + * @param {number} offset Index of the start of the token's range. + * @param {Object} [options=0] The option object. + * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. + * @returns {Token|null} The token starting at index, or null if no such token. + */ + getTokenByRangeStart(offset, options) { + const includeComments = options && options.includeComments; + const token = cursors.forward.createBaseCursor( + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + offset, + -1, + includeComments + ).getOneToken(); + + if (token && token.range[0] === offset) { + return token; + } + return null; + } + + /** + * Gets the first token of the given node. + * @param {ASTNode} node The AST node. + * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. + * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. + * @param {Function|null} [options.filter=null] The predicate function to choose tokens. + * @param {number} [options.skip=0] The count of tokens the cursor skips. + * @returns {Token|null} An object representing the token. + */ + getFirstToken(node, options) { + return createCursorWithSkip( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[0], + node.range[1], + options + ).getOneToken(); + } + + /** + * Gets the last token of the given node. + * @param {ASTNode} node The AST node. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() + * @returns {Token|null} An object representing the token. + */ + getLastToken(node, options) { + return createCursorWithSkip( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[0], + node.range[1], + options + ).getOneToken(); + } + + /** + * Gets the token that precedes a given node or token. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() + * @returns {Token|null} An object representing the token. + */ + getTokenBefore(node, options) { + return createCursorWithSkip( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + -1, + node.range[0], + options + ).getOneToken(); + } + + /** + * Gets the token that follows a given node or token. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() + * @returns {Token|null} An object representing the token. + */ + getTokenAfter(node, options) { + return createCursorWithSkip( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[1], + -1, + options + ).getOneToken(); + } + + /** + * Gets the first token between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() + * @returns {Token|null} An object representing the token. + */ + getFirstTokenBetween(left, right, options) { + return createCursorWithSkip( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + left.range[1], + right.range[0], + options + ).getOneToken(); + } + + /** + * Gets the last token between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() + * @returns {Token|null} An object representing the token. + */ + getLastTokenBetween(left, right, options) { + return createCursorWithSkip( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + left.range[1], + right.range[0], + options + ).getOneToken(); + } + + /** + * Gets the token that precedes a given node or token in the token stream. + * This is defined for backward compatibility. Use `includeComments` option instead. + * TODO: We have a plan to remove this in a future major version. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number} [skip=0] A number of tokens to skip. + * @returns {Token|null} An object representing the token. + * @deprecated + */ + getTokenOrCommentBefore(node, skip) { + return this.getTokenBefore(node, { includeComments: true, skip }); + } + + /** + * Gets the token that follows a given node or token in the token stream. + * This is defined for backward compatibility. Use `includeComments` option instead. + * TODO: We have a plan to remove this in a future major version. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number} [skip=0] A number of tokens to skip. + * @returns {Token|null} An object representing the token. + * @deprecated + */ + getTokenOrCommentAfter(node, skip) { + return this.getTokenAfter(node, { includeComments: true, skip }); + } + + //-------------------------------------------------------------------------- + // Gets multiple tokens. + //-------------------------------------------------------------------------- + + /** + * Gets the first `count` tokens of the given node. + * @param {ASTNode} node The AST node. + * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. + * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. + * @param {Function|null} [options.filter=null] The predicate function to choose tokens. + * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. + * @returns {Token[]} Tokens. + */ + getFirstTokens(node, options) { + return createCursorWithCount( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[0], + node.range[1], + options + ).getAllTokens(); + } + + /** + * Gets the last `count` tokens of the given node. + * @param {ASTNode} node The AST node. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() + * @returns {Token[]} Tokens. + */ + getLastTokens(node, options) { + return createCursorWithCount( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[0], + node.range[1], + options + ).getAllTokens().reverse(); + } + + /** + * Gets the `count` tokens that precedes a given node or token. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() + * @returns {Token[]} Tokens. + */ + getTokensBefore(node, options) { + return createCursorWithCount( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + -1, + node.range[0], + options + ).getAllTokens().reverse(); + } + + /** + * Gets the `count` tokens that follows a given node or token. + * @param {ASTNode|Token|Comment} node The AST node or token. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() + * @returns {Token[]} Tokens. + */ + getTokensAfter(node, options) { + return createCursorWithCount( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[1], + -1, + options + ).getAllTokens(); + } + + /** + * Gets the first `count` tokens between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() + * @returns {Token[]} Tokens between left and right. + */ + getFirstTokensBetween(left, right, options) { + return createCursorWithCount( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + left.range[1], + right.range[0], + options + ).getAllTokens(); + } + + /** + * Gets the last `count` tokens between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() + * @returns {Token[]} Tokens between left and right. + */ + getLastTokensBetween(left, right, options) { + return createCursorWithCount( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + left.range[1], + right.range[0], + options + ).getAllTokens().reverse(); + } + + /** + * Gets all tokens that are related to the given node. + * @param {ASTNode} node The AST node. + * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. + * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. + * @param {Function|null} [options.filter=null] The predicate function to choose tokens. + * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. + * @returns {Token[]} Array of objects representing tokens. + */ + /** + * Gets all tokens that are related to the given node. + * @param {ASTNode} node The AST node. + * @param {int} [beforeCount=0] The number of tokens before the node to retrieve. + * @param {int} [afterCount=0] The number of tokens after the node to retrieve. + * @returns {Token[]} Array of objects representing tokens. + */ + getTokens(node, beforeCount, afterCount) { + return createCursorWithPadding( + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + node.range[0], + node.range[1], + beforeCount, + afterCount + ).getAllTokens(); + } + + /** + * Gets all of the tokens between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. + * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. + * @param {Function|null} [options.filter=null] The predicate function to choose tokens. + * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. + * @returns {Token[]} Tokens between left and right. + */ + /** + * Gets all of the tokens between two non-overlapping nodes. + * @param {ASTNode|Token|Comment} left Node before the desired token range. + * @param {ASTNode|Token|Comment} right Node after the desired token range. + * @param {int} [padding=0] Number of extra tokens on either side of center. + * @returns {Token[]} Tokens between left and right. + */ + getTokensBetween(left, right, padding) { + return createCursorWithPadding( + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + left.range[1], + right.range[0], + padding, + padding + ).getAllTokens(); + } + + //-------------------------------------------------------------------------- + // Others. + //-------------------------------------------------------------------------- + + /** + * Checks whether any comments exist or not between the given 2 nodes. + * @param {ASTNode} left The node to check. + * @param {ASTNode} right The node to check. + * @returns {boolean} `true` if one or more comments exist. + */ + commentsExistBetween(left, right) { + const index = utils.search(this[COMMENTS], left.range[1]); + + return ( + index < this[COMMENTS].length && + this[COMMENTS][index].range[1] <= right.range[0] + ); + } + + /** + * Gets all comment tokens directly before the given node or token. + * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns {Array} An array of comments in occurrence order. + */ + getCommentsBefore(nodeOrToken) { + const cursor = createCursorWithCount( + cursors.backward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + -1, + nodeOrToken.range[0], + { includeComments: true } + ); + + return getAdjacentCommentTokensFromCursor(cursor).reverse(); + } + + /** + * Gets all comment tokens directly after the given node or token. + * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. + * @returns {Array} An array of comments in occurrence order. + */ + getCommentsAfter(nodeOrToken) { + const cursor = createCursorWithCount( + cursors.forward, + this[TOKENS], + this[COMMENTS], + this[INDEX_MAP], + nodeOrToken.range[1], + -1, + { includeComments: true } + ); + + return getAdjacentCommentTokensFromCursor(cursor); + } + + /** + * Gets all comment tokens inside the given node. + * @param {ASTNode} node The AST node to get the comments for. + * @returns {Array} An array of comments in occurrence order. + */ + getCommentsInside(node) { + return this.getTokens(node, { + includeComments: true, + filter: isCommentToken + }); + } +}; diff --git a/node_modules/eslint/lib/source-code/token-store/limit-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/limit-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/padded-token-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/skip-cursor.js b/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/skip-cursor.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js diff --git a/node_modules/eslint/lib/source-code/token-store/utils.js b/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js similarity index 100% rename from node_modules/eslint/lib/source-code/token-store/utils.js rename to node_modules/eslint/lib/languages/js/source-code/token-store/utils.js diff --git a/node_modules/eslint/lib/languages/js/validate-language-options.js b/node_modules/eslint/lib/languages/js/validate-language-options.js new file mode 100644 index 00000000..ba1e5e39 --- /dev/null +++ b/node_modules/eslint/lib/languages/js/validate-language-options.js @@ -0,0 +1,181 @@ +/** + * @fileoverview The schema to validate language options + * @author Nicholas C. Zakas + */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Data +//----------------------------------------------------------------------------- + +const globalVariablesValues = new Set([ + true, "true", "writable", "writeable", + false, "false", "readonly", "readable", null, + "off" +]); + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * Check if a value is a non-null object. + * @param {any} value The value to check. + * @returns {boolean} `true` if the value is a non-null object. + */ +function isNonNullObject(value) { + return typeof value === "object" && value !== null; +} + +/** + * Check if a value is a non-null non-array object. + * @param {any} value The value to check. + * @returns {boolean} `true` if the value is a non-null non-array object. + */ +function isNonArrayObject(value) { + return isNonNullObject(value) && !Array.isArray(value); +} + +/** + * Check if a value is undefined. + * @param {any} value The value to check. + * @returns {boolean} `true` if the value is undefined. + */ +function isUndefined(value) { + return typeof value === "undefined"; +} + +//----------------------------------------------------------------------------- +// Schemas +//----------------------------------------------------------------------------- + +/** + * Validates the ecmaVersion property. + * @param {string|number} ecmaVersion The value to check. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ +function validateEcmaVersion(ecmaVersion) { + + if (isUndefined(ecmaVersion)) { + throw new TypeError("Key \"ecmaVersion\": Expected an \"ecmaVersion\" property."); + } + + if (typeof ecmaVersion !== "number" && ecmaVersion !== "latest") { + throw new TypeError("Key \"ecmaVersion\": Expected a number or \"latest\"."); + } + +} + +/** + * Validates the sourceType property. + * @param {string} sourceType The value to check. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ +function validateSourceType(sourceType) { + + if (typeof sourceType !== "string" || !/^(?:script|module|commonjs)$/u.test(sourceType)) { + throw new TypeError("Key \"sourceType\": Expected \"script\", \"module\", or \"commonjs\"."); + } + +} + +/** + * Validates the globals property. + * @param {Object} globals The value to check. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ +function validateGlobals(globals) { + + if (!isNonArrayObject(globals)) { + throw new TypeError("Key \"globals\": Expected an object."); + } + + for (const key of Object.keys(globals)) { + + // avoid hairy edge case + if (key === "__proto__") { + continue; + } + + if (key !== key.trim()) { + throw new TypeError(`Key "globals": Global "${key}" has leading or trailing whitespace.`); + } + + if (!globalVariablesValues.has(globals[key])) { + throw new TypeError(`Key "globals": Key "${key}": Expected "readonly", "writable", or "off".`); + } + } +} + +/** + * Validates the parser property. + * @param {Object} parser The value to check. + * @returns {void} + * @throws {TypeError} If the value is invalid. + */ +function validateParser(parser) { + + if (!parser || typeof parser !== "object" || + (typeof parser.parse !== "function" && typeof parser.parseForESLint !== "function") + ) { + throw new TypeError("Key \"parser\": Expected object with parse() or parseForESLint() method."); + } + +} + +/** + * Validates the language options. + * @param {Object} languageOptions The language options to validate. + * @returns {void} + * @throws {TypeError} If the language options are invalid. + */ +function validateLanguageOptions(languageOptions) { + + if (!isNonArrayObject(languageOptions)) { + throw new TypeError("Expected an object."); + } + + const { + ecmaVersion, + sourceType, + globals, + parser, + parserOptions, + ...otherOptions + } = languageOptions; + + if ("ecmaVersion" in languageOptions) { + validateEcmaVersion(ecmaVersion); + } + + if ("sourceType" in languageOptions) { + validateSourceType(sourceType); + } + + if ("globals" in languageOptions) { + validateGlobals(globals); + } + + if ("parser" in languageOptions) { + validateParser(parser); + } + + if ("parserOptions" in languageOptions) { + if (!isNonArrayObject(parserOptions)) { + throw new TypeError("Key \"parserOptions\": Expected an object."); + } + } + + const otherOptionKeys = Object.keys(otherOptions); + + if (otherOptionKeys.length > 0) { + throw new TypeError(`Unexpected key "${otherOptionKeys[0]}" found.`); + } + +} + +module.exports = { validateLanguageOptions }; diff --git a/node_modules/eslint/lib/linter/apply-disable-directives.js b/node_modules/eslint/lib/linter/apply-disable-directives.js index c5e3c9dd..1f07447f 100644 --- a/node_modules/eslint/lib/linter/apply-disable-directives.js +++ b/node_modules/eslint/lib/linter/apply-disable-directives.js @@ -10,17 +10,25 @@ //------------------------------------------------------------------------------ /** @typedef {import("../shared/types").LintMessage} LintMessage */ +/** @typedef {import("@eslint/core").Language} Language */ +/** @typedef {import("@eslint/core").Position} Position */ +/** @typedef {import("@eslint/core").RulesConfig} RulesConfig */ //------------------------------------------------------------------------------ // Module Definition //------------------------------------------------------------------------------ const escapeRegExp = require("escape-string-regexp"); +const { + Legacy: { + ConfigOps + } +} = require("@eslint/eslintrc/universal"); /** * Compares the locations of two objects in a source file - * @param {{line: number, column: number}} itemA The first object - * @param {{line: number, column: number}} itemB The second object + * @param {Position} itemA The first object + * @param {Position} itemB The second object * @returns {number} A value less than 1 if itemA appears before itemB in the source file, greater than 1 if * itemA appears after itemB in the source file, or 0 if itemA and itemB have the same location. */ @@ -33,16 +41,16 @@ function compareLocations(itemA, itemB) { * @param {Iterable} directives Unused directives to be removed. * @returns {Directive[][]} Directives grouped by their parent comment. */ -function groupByParentComment(directives) { +function groupByParentDirective(directives) { const groups = new Map(); for (const directive of directives) { - const { unprocessedDirective: { parentComment } } = directive; + const { unprocessedDirective: { parentDirective } } = directive; - if (groups.has(parentComment)) { - groups.get(parentComment).push(directive); + if (groups.has(parentDirective)) { + groups.get(parentDirective).push(directive); } else { - groups.set(parentComment, [directive]); + groups.set(parentDirective, [directive]); } } @@ -52,31 +60,23 @@ function groupByParentComment(directives) { /** * Creates removal details for a set of directives within the same comment. * @param {Directive[]} directives Unused directives to be removed. - * @param {Token} commentToken The backing Comment token. + * @param {{node: Token, value: string}} parentDirective Data about the backing directive. + * @param {SourceCode} sourceCode The source code object for the file being linted. * @returns {{ description, fix, unprocessedDirective }[]} Details for later creation of output Problems. */ -function createIndividualDirectivesRemoval(directives, commentToken) { +function createIndividualDirectivesRemoval(directives, parentDirective, sourceCode) { /* - * `commentToken.value` starts right after `//` or `/*`. - * All calculated offsets will be relative to this index. - */ - const commentValueStart = commentToken.range[0] + "//".length; - - // Find where the list of rules starts. `\S+` matches with the directive name (e.g. `eslint-disable-line`) - const listStartOffset = /^\s*\S+\s+/u.exec(commentToken.value)[0].length; - - /* - * Get the list text without any surrounding whitespace. In order to preserve the original + * Get the list of the rules text without any surrounding whitespace. In order to preserve the original * formatting, we don't want to change that whitespace. * * // eslint-disable-line rule-one , rule-two , rule-three -- comment * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ - const listText = commentToken.value - .slice(listStartOffset) // remove directive name and all whitespace before the list - .split(/\s-{2,}\s/u)[0] // remove `-- comment`, if it exists - .trimEnd(); // remove all whitespace after the list + const listText = parentDirective.value.trim(); + + // Calculate where it starts in the source code text + const listStart = sourceCode.text.indexOf(listText, sourceCode.getRange(parentDirective.node)[0]); /* * We can assume that `listText` contains multiple elements. @@ -90,13 +90,13 @@ function createIndividualDirectivesRemoval(directives, commentToken) { const regex = new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${escapeRegExp(ruleId)}\k(?:\s*,\s*|$)`, "u"); const match = regex.exec(listText); const matchedText = match[0]; - const matchStartOffset = listStartOffset + match.index; - const matchEndOffset = matchStartOffset + matchedText.length; + const matchStart = listStart + match.index; + const matchEnd = matchStart + matchedText.length; const firstIndexOfComma = matchedText.indexOf(","); const lastIndexOfComma = matchedText.lastIndexOf(","); - let removalStartOffset, removalEndOffset; + let removalStart, removalEnd; if (firstIndexOfComma !== lastIndexOfComma) { @@ -112,8 +112,8 @@ function createIndividualDirectivesRemoval(directives, commentToken) { * // eslint-disable-line rule-one , rule-two , rule-three -- comment * ^^^^^^^^^^^ */ - removalStartOffset = matchStartOffset + firstIndexOfComma; - removalEndOffset = matchStartOffset + lastIndexOfComma; + removalStart = matchStart + firstIndexOfComma; + removalEnd = matchStart + lastIndexOfComma; } else { @@ -135,16 +135,16 @@ function createIndividualDirectivesRemoval(directives, commentToken) { * // eslint-disable-line rule-one , rule-two , rule-three -- comment * ^^^^^^^^^^^^^ */ - removalStartOffset = matchStartOffset; - removalEndOffset = matchEndOffset; + removalStart = matchStart; + removalEnd = matchEnd; } return { description: `'${ruleId}'`, fix: { range: [ - commentValueStart + removalStartOffset, - commentValueStart + removalEndOffset + removalStart, + removalEnd ], text: "" }, @@ -154,19 +154,20 @@ function createIndividualDirectivesRemoval(directives, commentToken) { } /** - * Creates a description of deleting an entire unused disable comment. + * Creates a description of deleting an entire unused disable directive. * @param {Directive[]} directives Unused directives to be removed. - * @param {Token} commentToken The backing Comment token. - * @returns {{ description, fix, unprocessedDirective }} Details for later creation of an output Problem. + * @param {Token} node The backing Comment token. + * @param {SourceCode} sourceCode The source code object for the file being linted. + * @returns {{ description, fix, unprocessedDirective }} Details for later creation of an output problem. */ -function createCommentRemoval(directives, commentToken) { - const { range } = commentToken; +function createDirectiveRemoval(directives, node, sourceCode) { + const range = sourceCode.getRange(node); const ruleIds = directives.filter(directive => directive.ruleId).map(directive => `'${directive.ruleId}'`); return { description: ruleIds.length <= 2 ? ruleIds.join(" or ") - : `${ruleIds.slice(0, ruleIds.length - 1).join(", ")}, or ${ruleIds[ruleIds.length - 1]}`, + : `${ruleIds.slice(0, ruleIds.length - 1).join(", ")}, or ${ruleIds.at(-1)}`, fix: { range, text: " " @@ -178,23 +179,24 @@ function createCommentRemoval(directives, commentToken) { /** * Parses details from directives to create output Problems. * @param {Iterable} allDirectives Unused directives to be removed. + * @param {SourceCode} sourceCode The source code object for the file being linted. * @returns {{ description, fix, unprocessedDirective }[]} Details for later creation of output Problems. */ -function processUnusedDirectives(allDirectives) { - const directiveGroups = groupByParentComment(allDirectives); +function processUnusedDirectives(allDirectives, sourceCode) { + const directiveGroups = groupByParentDirective(allDirectives); return directiveGroups.flatMap( directives => { - const { parentComment } = directives[0].unprocessedDirective; - const remainingRuleIds = new Set(parentComment.ruleIds); + const { parentDirective } = directives[0].unprocessedDirective; + const remainingRuleIds = new Set(parentDirective.ruleIds); for (const directive of directives) { remainingRuleIds.delete(directive.ruleId); } return remainingRuleIds.size - ? createIndividualDirectivesRemoval(directives, parentComment.commentToken) - : [createCommentRemoval(directives, parentComment.commentToken)]; + ? createIndividualDirectivesRemoval(directives, parentDirective, sourceCode) + : [createDirectiveRemoval(directives, parentDirective.node, sourceCode)]; } ); } @@ -301,6 +303,7 @@ function collectUsedEnableDirectives(directives) { function applyDirectives(options) { const problems = []; const usedDisableDirectives = new Set(); + const { sourceCode } = options; for (const problem of options.problems) { let disableDirectivesForProblem = []; @@ -337,7 +340,7 @@ function applyDirectives(options) { problem.suppressions = problem.suppressions.concat(suppressions); } else { problem.suppressions = suppressions; - usedDisableDirectives.add(disableDirectivesForProblem[disableDirectivesForProblem.length - 1]); + usedDisableDirectives.add(disableDirectivesForProblem.at(-1)); } } @@ -345,11 +348,11 @@ function applyDirectives(options) { } const unusedDisableDirectivesToReport = options.directives - .filter(directive => directive.type === "disable" && !usedDisableDirectives.has(directive)); + .filter(directive => directive.type === "disable" && !usedDisableDirectives.has(directive) && !options.rulesToIgnore.has(directive.ruleId)); const unusedEnableDirectivesToReport = new Set( - options.directives.filter(directive => directive.unprocessedDirective.type === "enable") + options.directives.filter(directive => directive.unprocessedDirective.type === "enable" && !options.rulesToIgnore.has(directive.ruleId)) ); /* @@ -362,12 +365,14 @@ function applyDirectives(options) { } } - const processed = processUnusedDirectives(unusedDisableDirectivesToReport) - .concat(processUnusedDirectives(unusedEnableDirectivesToReport)); + const processed = processUnusedDirectives(unusedDisableDirectivesToReport, sourceCode) + .concat(processUnusedDirectives(unusedEnableDirectivesToReport, sourceCode)); + const columnOffset = options.language.columnStart === 1 ? 0 : 1; + const lineOffset = options.language.lineStart === 1 ? 0 : 1; const unusedDirectives = processed .map(({ description, fix, unprocessedDirective }) => { - const { parentComment, type, line, column } = unprocessedDirective; + const { parentDirective, type, line, column } = unprocessedDirective; let message; @@ -380,11 +385,14 @@ function applyDirectives(options) { ? `Unused eslint-disable directive (no problems were reported from ${description}).` : "Unused eslint-disable directive (no problems were reported)."; } + + const loc = sourceCode.getLoc(parentDirective.node); + return { ruleId: null, message, - line: type === "disable-next-line" ? parentComment.commentToken.loc.start.line : line, - column: type === "disable-next-line" ? parentComment.commentToken.loc.start.column + 1 : column, + line: type === "disable-next-line" ? loc.start.line + lineOffset : line, + column: type === "disable-next-line" ? loc.start.column + columnOffset : column, severity: options.reportUnusedDisableDirectives === "warn" ? 1 : 2, nodeType: null, ...options.disableFixes ? {} : { fix } @@ -398,6 +406,8 @@ function applyDirectives(options) { * Given a list of directive comments (i.e. metadata about eslint-disable and eslint-enable comments) and a list * of reported problems, adds the suppression information to the problems. * @param {Object} options Information about directives and problems + * @param {Language} options.language The language being linted. + * @param {SourceCode} options.sourceCode The source code object for the file being linted. * @param {{ * type: ("disable"|"enable"|"disable-line"|"disable-next-line"), * ruleId: (string|null), @@ -410,11 +420,13 @@ function applyDirectives(options) { * @param {{ruleId: (string|null), line: number, column: number}[]} options.problems * A list of problems reported by rules, sorted by increasing location in the file, with one-based columns. * @param {"off" | "warn" | "error"} options.reportUnusedDisableDirectives If `"warn"` or `"error"`, adds additional problems for unused directives + * @param {RulesConfig} options.configuredRules The rules configuration. + * @param {Function} options.ruleFilter A predicate function to filter which rules should be executed. * @param {boolean} options.disableFixes If true, it doesn't make `fix` properties. * @returns {{ruleId: (string|null), line: number, column: number, suppressions?: {kind: string, justification: string}}[]} * An object with a list of reported problems, the suppressed of which contain the suppression information. */ -module.exports = ({ directives, disableFixes, problems, reportUnusedDisableDirectives = "off" }) => { +module.exports = ({ language, sourceCode, directives, disableFixes, problems, configuredRules, ruleFilter, reportUnusedDisableDirectives = "off" }) => { const blockDirectives = directives .filter(directive => directive.type === "disable" || directive.type === "enable") .map(directive => Object.assign({}, directive, { unprocessedDirective: directive })) @@ -443,17 +455,42 @@ module.exports = ({ directives, disableFixes, problems, reportUnusedDisableDirec } }).sort(compareLocations); + // This determines a list of rules that are not being run by the given ruleFilter, if present. + const rulesToIgnore = configuredRules && ruleFilter + ? new Set(Object.keys(configuredRules).filter(ruleId => { + const severity = ConfigOps.getRuleSeverity(configuredRules[ruleId]); + + // Ignore for disabled rules. + if (severity === 0) { + return false; + } + + return !ruleFilter({ severity, ruleId }); + })) + : new Set(); + + // If no ruleId is supplied that means this directive is applied to all rules, so we can't determine if it's unused if any rules are filtered out. + if (rulesToIgnore.size > 0) { + rulesToIgnore.add(null); + } + const blockDirectivesResult = applyDirectives({ + language, + sourceCode, problems, directives: blockDirectives, disableFixes, - reportUnusedDisableDirectives + reportUnusedDisableDirectives, + rulesToIgnore }); const lineDirectivesResult = applyDirectives({ + language, + sourceCode, problems: blockDirectivesResult.problems, directives: lineDirectives, disableFixes, - reportUnusedDisableDirectives + reportUnusedDisableDirectives, + rulesToIgnore }); return reportUnusedDisableDirectives !== "off" diff --git a/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js b/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js index b60e55c1..baa6e997 100644 --- a/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +++ b/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js @@ -9,7 +9,7 @@ // Requirements //------------------------------------------------------------------------------ -const assert = require("assert"), +const assert = require("../../shared/assert"), { breakableTypePattern } = require("../../shared/ast-utils"), CodePath = require("./code-path"), CodePathSegment = require("./code-path-segment"), @@ -222,7 +222,6 @@ function forwardCurrentToHead(analyzer, node) { : "onUnreachableCodePathSegmentStart"; debug.dump(`${eventName} ${headSegment.id}`); - CodePathSegment.markUsed(headSegment); analyzer.emitter.emit( eventName, diff --git a/node_modules/eslint/lib/linter/code-path-analysis/code-path.js b/node_modules/eslint/lib/linter/code-path-analysis/code-path.js index 3bf570d7..8c438e29 100644 --- a/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +++ b/node_modules/eslint/lib/linter/code-path-analysis/code-path.js @@ -125,20 +125,6 @@ class CodePath { return this.internal.thrownForkContext; } - /** - * Tracks the traversal of the code path through each segment. This array - * starts empty and segments are added or removed as the code path is - * traversed. This array always ends up empty at the end of a code path - * traversal. The `CodePathState` uses this to track its progress through - * the code path. - * This is a passthrough to the underlying `CodePathState`. - * @type {CodePathSegment[]} - * @deprecated - */ - get currentSegments() { - return this.internal.currentSegments; - } - /** * Traverses all segments in this code path. * @@ -180,9 +166,9 @@ class CodePath { const lastSegment = resolvedOptions.last; // set up initial location information - let record = null; - let index = 0; - let end = 0; + let record; + let index; + let end; let segment = null; // segments that have already been visited during traversal @@ -191,8 +177,8 @@ class CodePath { // tracks the traversal steps const stack = [[startSegment, 0]]; - // tracks the last skipped segment during traversal - let skippedSegment = null; + // segments that have been skipped during traversal + const skipped = new Set(); // indicates if we exited early from the traversal let broken = false; @@ -207,11 +193,7 @@ class CodePath { * @returns {void} */ skip() { - if (stack.length <= 1) { - broken = true; - } else { - skippedSegment = stack[stack.length - 2][0]; - } + skipped.add(segment); }, /** @@ -236,6 +218,18 @@ class CodePath { ); } + /** + * Checks if a given previous segment has been skipped. + * @param {CodePathSegment} prevSegment A previous segment to check. + * @returns {boolean} `true` if the segment has been skipped. + */ + function isSkipped(prevSegment) { + return ( + skipped.has(prevSegment) || + segment.isLoopedPrevSegment(prevSegment) + ); + } + // the traversal while (stack.length > 0) { @@ -251,7 +245,7 @@ class CodePath { * Otherwise, we just read the value and sometimes modify the * record as we traverse. */ - record = stack[stack.length - 1]; + record = stack.at(-1); segment = record[0]; index = record[1]; @@ -272,17 +266,21 @@ class CodePath { continue; } - // Reset the skipping flag if all branches have been skipped. - if (skippedSegment && segment.prevSegments.includes(skippedSegment)) { - skippedSegment = null; - } visited.add(segment); + + // Skips the segment if all previous segments have been skipped. + const shouldSkip = ( + skipped.size > 0 && + segment.prevSegments.length > 0 && + segment.prevSegments.every(isSkipped) + ); + /* * If the most recent segment hasn't been skipped, then we call * the callback, passing in the segment and the controller. */ - if (!skippedSegment) { + if (!shouldSkip) { resolvedCallback.call(this, segment, controller); // exit if we're at the last segment @@ -298,6 +296,10 @@ class CodePath { if (broken) { break; } + } else { + + // If the most recent segment has been skipped, then mark it as skipped. + skipped.add(segment); } } diff --git a/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js b/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js index 33140272..d6598be9 100644 --- a/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +++ b/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js @@ -13,7 +13,7 @@ // Requirements //------------------------------------------------------------------------------ -const assert = require("assert"), +const assert = require("../../shared/assert"), CodePathSegment = require("./code-path-segment"); //------------------------------------------------------------------------------ @@ -207,7 +207,7 @@ class ForkContext { get head() { const list = this.segmentsList; - return list.length === 0 ? [] : list[list.length - 1]; + return list.length === 0 ? [] : list.at(-1); } /** diff --git a/node_modules/eslint/lib/linter/config-comment-parser.js b/node_modules/eslint/lib/linter/config-comment-parser.js deleted file mode 100644 index 9d33c552..00000000 --- a/node_modules/eslint/lib/linter/config-comment-parser.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * @fileoverview Config Comment Parser - * @author Nicholas C. Zakas - */ - -/* eslint class-methods-use-this: off -- Methods desired on instance */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const levn = require("levn"), - { - Legacy: { - ConfigOps - } - } = require("@eslint/eslintrc/universal"), - { - directivesPattern - } = require("../shared/directives"); - -const debug = require("debug")("eslint:config-comment-parser"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").LintMessage} LintMessage */ - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Object to parse ESLint configuration comments inside JavaScript files. - * @name ConfigCommentParser - */ -module.exports = class ConfigCommentParser { - - /** - * Parses a list of "name:string_value" or/and "name" options divided by comma or - * whitespace. Used for "global" and "exported" comments. - * @param {string} string The string to parse. - * @param {Comment} comment The comment node which has the string. - * @returns {Object} Result map object of names and string values, or null values if no value was provided - */ - parseStringConfig(string, comment) { - debug("Parsing String config"); - - const items = {}; - - // Collapse whitespace around `:` and `,` to make parsing easier - const trimmedString = string.replace(/\s*([:,])\s*/gu, "$1"); - - trimmedString.split(/\s|,+/u).forEach(name => { - if (!name) { - return; - } - - // value defaults to null (if not provided), e.g: "foo" => ["foo", null] - const [key, value = null] = name.split(":"); - - items[key] = { value, comment }; - }); - return items; - } - - /** - * Parses a JSON-like config. - * @param {string} string The string to parse. - * @param {Object} location Start line and column of comments for potential error message. - * @returns {({success: true, config: Object}|{success: false, error: LintMessage})} Result map object - */ - parseJsonConfig(string, location) { - debug("Parsing JSON config"); - - let items = {}; - - // Parses a JSON-like comment by the same way as parsing CLI option. - try { - items = levn.parse("Object", string) || {}; - - // Some tests say that it should ignore invalid comments such as `/*eslint no-alert:abc*/`. - // Also, commaless notations have invalid severity: - // "no-alert: 2 no-console: 2" --> {"no-alert": "2 no-console: 2"} - // Should ignore that case as well. - if (ConfigOps.isEverySeverityValid(items)) { - return { - success: true, - config: items - }; - } - } catch { - - debug("Levn parsing failed; falling back to manual parsing."); - - // ignore to parse the string by a fallback. - } - - /* - * Optionator cannot parse commaless notations. - * But we are supporting that. So this is a fallback for that. - */ - items = {}; - const normalizedString = string.replace(/([-a-zA-Z0-9/]+):/gu, "\"$1\":").replace(/(\]|[0-9])\s+(?=")/u, "$1,"); - - try { - items = JSON.parse(`{${normalizedString}}`); - } catch (ex) { - debug("Manual parsing failed."); - - return { - success: false, - error: { - ruleId: null, - fatal: true, - severity: 2, - message: `Failed to parse JSON from '${normalizedString}': ${ex.message}`, - line: location.start.line, - column: location.start.column + 1, - nodeType: null - } - }; - - } - - return { - success: true, - config: items - }; - } - - /** - * Parses a config of values separated by comma. - * @param {string} string The string to parse. - * @returns {Object} Result map of values and true values - */ - parseListConfig(string) { - debug("Parsing list config"); - - const items = {}; - - string.split(",").forEach(name => { - const trimmedName = name.trim().replace(/^(?['"]?)(?.*)\k$/us, "$"); - - if (trimmedName) { - items[trimmedName] = true; - } - }); - return items; - } - - /** - * Extract the directive and the justification from a given directive comment and trim them. - * @param {string} value The comment text to extract. - * @returns {{directivePart: string, justificationPart: string}} The extracted directive and justification. - */ - extractDirectiveComment(value) { - const match = /\s-{2,}\s/u.exec(value); - - if (!match) { - return { directivePart: value.trim(), justificationPart: "" }; - } - - const directive = value.slice(0, match.index).trim(); - const justification = value.slice(match.index + match[0].length).trim(); - - return { directivePart: directive, justificationPart: justification }; - } - - /** - * Parses a directive comment into directive text and value. - * @param {Comment} comment The comment node with the directive to be parsed. - * @returns {{directiveText: string, directiveValue: string}} The directive text and value. - */ - parseDirective(comment) { - const { directivePart } = this.extractDirectiveComment(comment.value); - const match = directivesPattern.exec(directivePart); - const directiveText = match[1]; - const directiveValue = directivePart.slice(match.index + directiveText.length); - - return { directiveText, directiveValue }; - } -}; diff --git a/node_modules/eslint/lib/linter/file-context.js b/node_modules/eslint/lib/linter/file-context.js new file mode 100644 index 00000000..b6694723 --- /dev/null +++ b/node_modules/eslint/lib/linter/file-context.js @@ -0,0 +1,134 @@ +/** + * @fileoverview The FileContext class. + * @author Nicholas C. Zakas + */ + +"use strict"; + +/** + * Represents a file context that the linter can use to lint a file. + */ +class FileContext { + + /** + * The current working directory. + * @type {string} + */ + cwd; + + /** + * The filename of the file being linted. + * @type {string} + */ + filename; + + /** + * The physical filename of the file being linted. + * @type {string} + */ + physicalFilename; + + /** + * The source code of the file being linted. + * @type {SourceCode} + */ + sourceCode; + + /** + * The parser options for the file being linted. + * @type {Record} + * @deprecated Use `languageOptions` instead. + */ + parserOptions; + + /** + * The path to the parser used to parse this file. + * @type {string} + * @deprecated No longer supported. + */ + parserPath; + + /** + * The language options used when parsing this file. + * @type {Record} + */ + languageOptions; + + /** + * The settings for the file being linted. + * @type {Record} + */ + settings; + + /** + * Creates a new instance. + * @param {Object} config The configuration object for the file context. + * @param {string} config.cwd The current working directory. + * @param {string} config.filename The filename of the file being linted. + * @param {string} config.physicalFilename The physical filename of the file being linted. + * @param {SourceCode} config.sourceCode The source code of the file being linted. + * @param {Record} config.parserOptions The parser options for the file being linted. + * @param {string} config.parserPath The path to the parser used to parse this file. + * @param {Record} config.languageOptions The language options used when parsing this file. + * @param {Record} config.settings The settings for the file being linted. + */ + constructor({ + cwd, + filename, + physicalFilename, + sourceCode, + parserOptions, + parserPath, + languageOptions, + settings + }) { + this.cwd = cwd; + this.filename = filename; + this.physicalFilename = physicalFilename; + this.sourceCode = sourceCode; + this.parserOptions = parserOptions; + this.parserPath = parserPath; + this.languageOptions = languageOptions; + this.settings = settings; + + Object.freeze(this); + } + + /** + * Gets the current working directory. + * @returns {string} The current working directory. + * @deprecated Use `cwd` instead. + */ + getCwd() { + return this.cwd; + } + + /** + * Gets the filename of the file being linted. + * @returns {string} The filename of the file being linted. + * @deprecated Use `filename` instead. + */ + getFilename() { + return this.filename; + } + + /** + * Gets the physical filename of the file being linted. + * @returns {string} The physical filename of the file being linted. + * @deprecated Use `physicalFilename` instead. + */ + getPhysicalFilename() { + return this.physicalFilename; + } + + /** + * Gets the source code of the file being linted. + * @returns {SourceCode} The source code of the file being linted. + * @deprecated Use `sourceCode` instead. + */ + getSourceCode() { + return this.sourceCode; + } +} + +exports.FileContext = FileContext; diff --git a/node_modules/eslint/lib/linter/index.js b/node_modules/eslint/lib/linter/index.js index 25fd769b..9e539776 100644 --- a/node_modules/eslint/lib/linter/index.js +++ b/node_modules/eslint/lib/linter/index.js @@ -1,13 +1,11 @@ "use strict"; const { Linter } = require("./linter"); -const interpolate = require("./interpolate"); const SourceCodeFixer = require("./source-code-fixer"); module.exports = { Linter, // For testers. - SourceCodeFixer, - interpolate + SourceCodeFixer }; diff --git a/node_modules/eslint/lib/linter/interpolate.js b/node_modules/eslint/lib/linter/interpolate.js index 87e06a02..5f4ff922 100644 --- a/node_modules/eslint/lib/linter/interpolate.js +++ b/node_modules/eslint/lib/linter/interpolate.js @@ -9,13 +9,30 @@ // Public Interface //------------------------------------------------------------------------------ -module.exports = (text, data) => { +/** + * Returns a global expression matching placeholders in messages. + * @returns {RegExp} Global regular expression matching placeholders + */ +function getPlaceholderMatcher() { + return /\{\{([^{}]+?)\}\}/gu; +} + +/** + * Replaces {{ placeholders }} in the message with the provided data. + * Does not replace placeholders not available in the data. + * @param {string} text Original message with potential placeholders + * @param {Record} data Map of placeholder name to its value + * @returns {string} Message with replaced placeholders + */ +function interpolate(text, data) { if (!data) { return text; } + const matcher = getPlaceholderMatcher(); + // Substitution content for any {{ }} markers. - return text.replace(/\{\{([^{}]+?)\}\}/gu, (fullMatch, termWithWhitespace) => { + return text.replace(matcher, (fullMatch, termWithWhitespace) => { const term = termWithWhitespace.trim(); if (term in data) { @@ -25,4 +42,9 @@ module.exports = (text, data) => { // Preserve old behavior: If parameter name not provided, don't replace it. return fullMatch; }); +} + +module.exports = { + getPlaceholderMatcher, + interpolate }; diff --git a/node_modules/eslint/lib/linter/linter.js b/node_modules/eslint/lib/linter/linter.js index d25f8540..007fcf45 100644 --- a/node_modules/eslint/lib/linter/linter.js +++ b/node_modules/eslint/lib/linter/linter.js @@ -11,16 +11,12 @@ //------------------------------------------------------------------------------ const - path = require("path"), + path = require("node:path"), eslintScope = require("eslint-scope"), evk = require("eslint-visitor-keys"), espree = require("espree"), merge = require("lodash.merge"), pkg = require("../../package.json"), - astUtils = require("../shared/ast-utils"), - { - directivesPattern - } = require("../shared/directives"), { Legacy: { ConfigOps, @@ -29,10 +25,9 @@ const } } = require("@eslint/eslintrc/universal"), Traverser = require("../shared/traverser"), - { SourceCode } = require("../source-code"), - CodePathAnalyzer = require("./code-path-analysis/code-path-analyzer"), + { SourceCode } = require("../languages/js/source-code"), applyDisableDirectives = require("./apply-disable-directives"), - ConfigCommentParser = require("./config-comment-parser"), + { ConfigCommentParser } = require("@eslint/plugin-kit"), NodeEventGenerator = require("./node-event-generator"), createReportTranslator = require("./report-translator"), Rules = require("./rules"), @@ -42,9 +37,13 @@ const ruleReplacements = require("../../conf/replacements.json"); const { getRuleFromConfig } = require("../config/flat-config-helpers"); const { FlatConfigArray } = require("../config/flat-config-array"); +const { startTime, endTime } = require("../shared/stats"); const { RuleValidator } = require("../config/rule-validator"); -const { assertIsRuleOptions, assertIsRuleSeverity } = require("../config/flat-config-schema"); +const { assertIsRuleSeverity } = require("../config/flat-config-schema"); const { normalizeSeverityToString } = require("../shared/severity"); +const { deepMergeArrays } = require("../shared/deep-merge-arrays"); +const jslang = require("../languages/js"); +const { activeFlags, inactiveFlags } = require("../shared/flags"); const debug = require("debug")("eslint:linter"); const MAX_AUTOFIX_PASSES = 10; const DEFAULT_PARSER_NAME = "espree"; @@ -52,13 +51,18 @@ const DEFAULT_ECMA_VERSION = 5; const commentParser = new ConfigCommentParser(); const DEFAULT_ERROR_LOC = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } }; const parserSymbol = Symbol.for("eslint.RuleTester.parser"); +const { LATEST_ECMA_VERSION } = require("../../conf/ecma-version"); +const { VFile } = require("./vfile"); +const { ParserService } = require("../services/parser-service"); +const { FileContext } = require("./file-context"); +const { ProcessorService } = require("../services/processor-service"); +const STEP_KIND_VISIT = 1; +const STEP_KIND_CALL = 2; //------------------------------------------------------------------------------ // Typedefs //------------------------------------------------------------------------------ -/** @typedef {InstanceType} ConfigArray */ -/** @typedef {InstanceType} ExtractedConfig */ /** @typedef {import("../shared/types").ConfigData} ConfigData */ /** @typedef {import("../shared/types").Environment} Environment */ /** @typedef {import("../shared/types").GlobalConf} GlobalConf */ @@ -68,6 +72,11 @@ const parserSymbol = Symbol.for("eslint.RuleTester.parser"); /** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */ /** @typedef {import("../shared/types").Processor} Processor */ /** @typedef {import("../shared/types").Rule} Rule */ +/** @typedef {import("../shared/types").Times} Times */ +/** @typedef {import("@eslint/core").Language} Language */ +/** @typedef {import("@eslint/core").RuleSeverity} RuleSeverity */ +/** @typedef {import("@eslint/core").RuleConfig} RuleConfig */ + /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */ /** @@ -92,6 +101,7 @@ const parserSymbol = Symbol.for("eslint.RuleTester.parser"); * @property {SourceCode|null} lastSourceCode The `SourceCode` instance that the last `verify()` call used. * @property {SuppressedLintMessage[]} lastSuppressedMessages The `SuppressedLintMessage[]` instance that the last `verify()` call produced. * @property {Map} parserMap The loaded parsers. + * @property {Times} times The times spent on applying a rule to a file (see `stats` option). * @property {Rules} ruleMap The loaded rules. */ @@ -105,6 +115,7 @@ const parserSymbol = Symbol.for("eslint.RuleTester.parser"); * @property {string} [filename] the filename of the source code. * @property {boolean | "off" | "warn" | "error"} [reportUnusedDisableDirectives] Adds reported errors for * unused `eslint-disable` directives. + * @property {Function} [ruleFilter] A predicate function that determines whether a given rule should run. */ /** @@ -230,18 +241,48 @@ function addDeclaredGlobals(globalScope, configGlobals, { exportedVariables, ena * @private */ function createMissingRuleMessage(ruleId) { - return Object.prototype.hasOwnProperty.call(ruleReplacements.rules, ruleId) + return Object.hasOwn(ruleReplacements.rules, ruleId) ? `Rule '${ruleId}' was removed and replaced by: ${ruleReplacements.rules[ruleId].join(", ")}` : `Definition for rule '${ruleId}' was not found.`; } +/** + * Updates a given location based on the language offsets. This allows us to + * change 0-based locations to 1-based locations. We always want ESLint + * reporting lines and columns starting from 1. + * @param {Object} location The location to update. + * @param {number} location.line The starting line number. + * @param {number} location.column The starting column number. + * @param {number} [location.endLine] The ending line number. + * @param {number} [location.endColumn] The ending column number. + * @param {Language} language The language to use to adjust the location information. + * @returns {Object} The updated location. + */ +function updateLocationInformation({ line, column, endLine, endColumn }, language) { + + const columnOffset = language.columnStart === 1 ? 0 : 1; + const lineOffset = language.lineStart === 1 ? 0 : 1; + + // calculate separately to account for undefined + const finalEndLine = endLine === void 0 ? endLine : endLine + lineOffset; + const finalEndColumn = endColumn === void 0 ? endColumn : endColumn + columnOffset; + + return { + line: line + lineOffset, + column: column + columnOffset, + endLine: finalEndLine, + endColumn: finalEndColumn + }; +} + /** * creates a linting problem * @param {Object} options to create linting error * @param {string} [options.ruleId] the ruleId to report * @param {Object} [options.loc] the loc to report * @param {string} [options.message] the error message to report - * @param {string} [options.severity] the error message to report + * @param {RuleSeverity} [options.severity] the error message to report + * @param {Language} [options.language] the language to use to adjust the location information * @returns {LintMessage} created problem, returns a missing-rule problem if only provided ruleId. * @private */ @@ -250,16 +291,24 @@ function createLintingProblem(options) { ruleId = null, loc = DEFAULT_ERROR_LOC, message = createMissingRuleMessage(options.ruleId), - severity = 2 + severity = 2, + + // fallback for eslintrc mode + language = { + columnStart: 0, + lineStart: 1 + } } = options; return { ruleId, message, - line: loc.start.line, - column: loc.start.column + 1, - endLine: loc.end.line, - endColumn: loc.end.column + 1, + ...updateLocationInformation({ + line: loc.start.line, + column: loc.start.column, + endLine: loc.end.line, + endColumn: loc.end.column + }, language), severity, nodeType: null }; @@ -269,49 +318,63 @@ function createLintingProblem(options) { * Creates a collection of disable directives from a comment * @param {Object} options to create disable directives * @param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment - * @param {token} options.commentToken The Comment token * @param {string} options.value The value after the directive in the comment * comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`) * @param {string} options.justification The justification of the directive - * @param {function(string): {create: Function}} options.ruleMapper A map from rule IDs to defined rules + * @param {ASTNode|token} options.node The Comment node/token. + * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules + * @param {Language} language The language to use to adjust the location information. + * @param {SourceCode} sourceCode The SourceCode object to get comments from. * @returns {Object} Directives and problems from the comment */ -function createDisableDirectives(options) { - const { commentToken, type, value, justification, ruleMapper } = options; +function createDisableDirectives({ type, value, justification, node }, ruleMapper, language, sourceCode) { const ruleIds = Object.keys(commentParser.parseListConfig(value)); const directiveRules = ruleIds.length ? ruleIds : [null]; const result = { directives: [], // valid disable directives directiveProblems: [] // problems in directives }; - - const parentComment = { commentToken, ruleIds }; + const parentDirective = { node, value, ruleIds }; for (const ruleId of directiveRules) { + const loc = sourceCode.getLoc(node); + // push to directives, if the rule is defined(including null, e.g. /*eslint enable*/) if (ruleId === null || !!ruleMapper(ruleId)) { + + if (type === "disable-next-line") { + const { line, column } = updateLocationInformation( + loc.end, + language + ); + result.directives.push({ - parentComment, + parentDirective, type, - line: commentToken.loc.end.line, - column: commentToken.loc.end.column + 1, + line, + column, ruleId, justification }); } else { + const { line, column } = updateLocationInformation( + loc.start, + language + ); + result.directives.push({ - parentComment, + parentDirective, type, - line: commentToken.loc.start.line, - column: commentToken.loc.start.column + 1, + line, + column, ruleId, justification }); } } else { - result.directiveProblems.push(createLintingProblem({ ruleId, loc: commentToken.loc })); + result.directiveProblems.push(createLintingProblem({ ruleId, loc, language })); } } return result; @@ -324,10 +387,11 @@ function createDisableDirectives(options) { * @param {SourceCode} sourceCode The SourceCode object to get comments from. * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules * @param {string|null} warnInlineConfig If a string then it should warn directive comments as disabled. The string value is the config name what the setting came from. + * @param {ConfigData} config Provided config. * @returns {{configuredRules: Object, enabledGlobals: {value:string,comment:Token}[], exportedVariables: Object, problems: LintMessage[], disableDirectives: DisableDirective[]}} * A collection of the directive comments that were found, along with any problems that occurred when parsing */ -function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) { +function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig, config) { const configuredRules = {}; const enabledGlobals = Object.create(null); const exportedVariables = {}; @@ -338,53 +402,62 @@ function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) { }); sourceCode.getInlineConfigNodes().filter(token => token.type !== "Shebang").forEach(comment => { - const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value); - const match = directivesPattern.exec(directivePart); + const directive = commentParser.parseDirective(comment.value); - if (!match) { + if (!directive) { return; } - const directiveText = match[1]; - const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText); + + const { + label, + value, + justification: justificationPart + } = directive; + + const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(label); if (comment.type === "Line" && !lineCommentSupported) { return; } + const loc = sourceCode.getLoc(comment); + if (warnInlineConfig) { - const kind = comment.type === "Block" ? `/*${directiveText}*/` : `//${directiveText}`; + const kind = comment.type === "Block" ? `/*${label}*/` : `//${label}`; problems.push(createLintingProblem({ ruleId: null, message: `'${kind}' has no effect because you have 'noInlineConfig' setting in ${warnInlineConfig}.`, - loc: comment.loc, + loc, severity: 1 })); return; } - if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) { - const message = `${directiveText} comment should not span multiple lines.`; + if (label === "eslint-disable-line" && loc.start.line !== loc.end.line) { + const message = `${label} comment should not span multiple lines.`; problems.push(createLintingProblem({ ruleId: null, message, - loc: comment.loc + loc })); return; } - const directiveValue = directivePart.slice(match.index + directiveText.length); - - switch (directiveText) { + switch (label) { case "eslint-disable": case "eslint-enable": case "eslint-disable-next-line": case "eslint-disable-line": { - const directiveType = directiveText.slice("eslint-".length); - const options = { commentToken: comment, type: directiveType, value: directiveValue, justification: justificationPart, ruleMapper }; - const { directives, directiveProblems } = createDisableDirectives(options); + const directiveType = label.slice("eslint-".length); + const { directives, directiveProblems } = createDisableDirectives({ + type: directiveType, + value, + justification: justificationPart, + node: comment + }, ruleMapper, jslang, sourceCode); disableDirectives.push(...directives); problems.push(...directiveProblems); @@ -392,20 +465,20 @@ function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) { } case "exported": - Object.assign(exportedVariables, commentParser.parseStringConfig(directiveValue, comment)); + Object.assign(exportedVariables, commentParser.parseListConfig(value)); break; case "globals": case "global": - for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) { + for (const [id, idSetting] of Object.entries(commentParser.parseStringConfig(value))) { let normalizedValue; try { - normalizedValue = ConfigOps.normalizeConfigGlobal(value); + normalizedValue = ConfigOps.normalizeConfigGlobal(idSetting); } catch (err) { problems.push(createLintingProblem({ ruleId: null, - loc: comment.loc, + loc, message: err.message })); continue; @@ -424,35 +497,101 @@ function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) { break; case "eslint": { - const parseResult = commentParser.parseJsonConfig(directiveValue, comment.loc); + const parseResult = commentParser.parseJSONLikeConfig(value); - if (parseResult.success) { + if (parseResult.ok) { Object.keys(parseResult.config).forEach(name => { const rule = ruleMapper(name); const ruleValue = parseResult.config[name]; if (!rule) { - problems.push(createLintingProblem({ ruleId: name, loc: comment.loc })); + problems.push(createLintingProblem({ ruleId: name, loc })); return; } + if (Object.hasOwn(configuredRules, name)) { + problems.push(createLintingProblem({ + message: `Rule "${name}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`, + loc + })); + return; + } + + let ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue]; + + /* + * If the rule was already configured, inline rule configuration that + * only has severity should retain options from the config and just override the severity. + * + * Example: + * + * { + * rules: { + * curly: ["error", "multi"] + * } + * } + * + * /* eslint curly: ["warn"] * / + * + * Results in: + * + * curly: ["warn", "multi"] + */ + if ( + + /* + * If inline config for the rule has only severity + */ + ruleOptions.length === 1 && + + /* + * And the rule was already configured + */ + config.rules && Object.hasOwn(config.rules, name) + ) { + + /* + * Then use severity from the inline config and options from the provided config + */ + ruleOptions = [ + ruleOptions[0], // severity from the inline config + ...Array.isArray(config.rules[name]) ? config.rules[name].slice(1) : [] // options from the provided config + ]; + } + try { - validator.validateRuleOptions(rule, name, ruleValue); + validator.validateRuleOptions(rule, name, ruleOptions); } catch (err) { + + /* + * If the rule has invalid `meta.schema`, throw the error because + * this is not an invalid inline configuration but an invalid rule. + */ + if (err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA") { + throw err; + } + problems.push(createLintingProblem({ ruleId: name, message: err.message, - loc: comment.loc + loc })); // do not apply the config, if found invalid options. return; } - configuredRules[name] = ruleValue; + configuredRules[name] = ruleOptions; }); } else { - problems.push(parseResult.error); + const problem = createLintingProblem({ + ruleId: null, + loc, + message: parseResult.error.message + }); + + problem.fatal = true; + problems.push(problem); } break; @@ -475,58 +614,32 @@ function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig) { * Parses comments in file to extract disable directives. * @param {SourceCode} sourceCode The SourceCode object to get comments from. * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules + * @param {Language} language The language to use to adjust the location information * @returns {{problems: LintMessage[], disableDirectives: DisableDirective[]}} * A collection of the directive comments that were found, along with any problems that occurred when parsing */ -function getDirectiveCommentsForFlatConfig(sourceCode, ruleMapper) { - const problems = []; +function getDirectiveCommentsForFlatConfig(sourceCode, ruleMapper, language) { const disableDirectives = []; + const problems = []; - sourceCode.getInlineConfigNodes().filter(token => token.type !== "Shebang").forEach(comment => { - const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value); - - const match = directivesPattern.exec(directivePart); - - if (!match) { - return; - } - const directiveText = match[1]; - const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText); - - if (comment.type === "Line" && !lineCommentSupported) { - return; - } - - if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) { - const message = `${directiveText} comment should not span multiple lines.`; - - problems.push(createLintingProblem({ - ruleId: null, - message, - loc: comment.loc - })); - return; - } - - const directiveValue = directivePart.slice(match.index + directiveText.length); + if (sourceCode.getDisableDirectives) { + const { + directives: directivesSources, + problems: directivesProblems + } = sourceCode.getDisableDirectives(); - switch (directiveText) { - case "eslint-disable": - case "eslint-enable": - case "eslint-disable-next-line": - case "eslint-disable-line": { - const directiveType = directiveText.slice("eslint-".length); - const options = { commentToken: comment, type: directiveType, value: directiveValue, justification: justificationPart, ruleMapper }; - const { directives, directiveProblems } = createDisableDirectives(options); + problems.push(...directivesProblems.map(directiveProblem => createLintingProblem({ + ...directiveProblem, + language + }))); - disableDirectives.push(...directives); - problems.push(...directiveProblems); - break; - } + directivesSources.forEach(directive => { + const { directives, directiveProblems } = createDisableDirectives(directive, ruleMapper, language, sourceCode); - // no default - } - }); + disableDirectives.push(...directives); + problems.push(...directiveProblems); + }); + } return { problems, @@ -584,7 +697,7 @@ function normalizeEcmaVersionForLanguageOptions(ecmaVersion) { * that is used for a number of processes inside of ESLint. It's normally * safe to assume people want the latest unless otherwise specified. */ - return espree.latestEcmaVersion + 2009; + return LATEST_ECMA_VERSION; } const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu; @@ -603,7 +716,7 @@ function findEslintEnv(text) { if (match[0].endsWith("*/")) { retv = Object.assign( retv || {}, - commentParser.parseListConfig(commentParser.extractDirectiveComment(match[1]).directivePart) + commentParser.parseListConfig(commentParser.parseDirective(match[0].slice(2, -2)).value) ); } } @@ -661,6 +774,12 @@ function normalizeVerifyOptions(providedOptions, config) { } } + let ruleFilter = providedOptions.ruleFilter; + + if (typeof ruleFilter !== "function") { + ruleFilter = () => true; + } + return { filename: normalizeFilename(providedOptions.filename || ""), allowInlineConfig: !ignoreInlineConfig, @@ -668,7 +787,9 @@ function normalizeVerifyOptions(providedOptions, config) { ? `your config${configNameOfNoInlineConfig}` : null, reportUnusedDisableDirectives, - disableFixes: Boolean(providedOptions.disableFixes) + disableFixes: Boolean(providedOptions.disableFixes), + stats: providedOptions.stats, + ruleFilter }; } @@ -740,34 +861,46 @@ function resolveGlobals(providedGlobals, enabledEnvironments) { } /** - * Strips Unicode BOM from a given text. - * @param {string} text A text to strip. - * @returns {string} The stripped text. + * Store time measurements in map + * @param {number} time Time measurement + * @param {Object} timeOpts Options relating which time was measured + * @param {WeakMap} slots Linter internal slots map + * @returns {void} */ -function stripUnicodeBOM(text) { +function storeTime(time, timeOpts, slots) { + const { type, key } = timeOpts; - /* - * Check Unicode BOM. - * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF. - * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters - */ - if (text.charCodeAt(0) === 0xFEFF) { - return text.slice(1); + if (!slots.times) { + slots.times = { passes: [{}] }; + } + + const passIndex = slots.fixPasses; + + if (passIndex > slots.times.passes.length - 1) { + slots.times.passes.push({}); + } + + if (key) { + slots.times.passes[passIndex][type] ??= {}; + slots.times.passes[passIndex][type][key] ??= { total: 0 }; + slots.times.passes[passIndex][type][key].total += time; + } else { + slots.times.passes[passIndex][type] ??= { total: 0 }; + slots.times.passes[passIndex][type].total += time; } - return text; } /** * Get the options for a rule (not including severity), if any - * @param {Array|number} ruleConfig rule configuration + * @param {RuleConfig} ruleConfig rule configuration + * @param {Object|undefined} defaultOptions rule.meta.defaultOptions * @returns {Array} of rule options, empty Array if none */ -function getRuleOptions(ruleConfig) { +function getRuleOptions(ruleConfig, defaultOptions) { if (Array.isArray(ruleConfig)) { - return ruleConfig.slice(1); + return deepMergeArrays(defaultOptions, ruleConfig.slice(1)); } - return []; - + return defaultOptions ?? []; } /** @@ -793,104 +926,20 @@ function analyzeScope(ast, languageOptions, visitorKeys) { }); } -/** - * Parses text into an AST. Moved out here because the try-catch prevents - * optimization of functions, so it's best to keep the try-catch as isolated - * as possible - * @param {string} text The text to parse. - * @param {LanguageOptions} languageOptions Options to pass to the parser - * @param {string} filePath The path to the file being parsed. - * @returns {{success: false, error: LintMessage}|{success: true, sourceCode: SourceCode}} - * An object containing the AST and parser services if parsing was successful, or the error if parsing failed - * @private - */ -function parse(text, languageOptions, filePath) { - const textToParse = stripUnicodeBOM(text).replace(astUtils.shebangPattern, (match, captured) => `//${captured}`); - const { ecmaVersion, sourceType, parser } = languageOptions; - const parserOptions = Object.assign( - { ecmaVersion, sourceType }, - languageOptions.parserOptions, - { - loc: true, - range: true, - raw: true, - tokens: true, - comment: true, - eslintVisitorKeys: true, - eslintScopeManager: true, - filePath - } - ); - - /* - * Check for parsing errors first. If there's a parsing error, nothing - * else can happen. However, a parsing error does not throw an error - * from this method - it's just considered a fatal error message, a - * problem that ESLint identified just like any other. - */ - try { - debug("Parsing:", filePath); - const parseResult = (typeof parser.parseForESLint === "function") - ? parser.parseForESLint(textToParse, parserOptions) - : { ast: parser.parse(textToParse, parserOptions) }; - - debug("Parsing successful:", filePath); - const ast = parseResult.ast; - const parserServices = parseResult.services || {}; - const visitorKeys = parseResult.visitorKeys || evk.KEYS; - - debug("Scope analysis:", filePath); - const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys); - - debug("Scope analysis successful:", filePath); - - return { - success: true, - - /* - * Save all values that `parseForESLint()` returned. - * If a `SourceCode` object is given as the first parameter instead of source code text, - * linter skips the parsing process and reuses the source code object. - * In that case, linter needs all the values that `parseForESLint()` returned. - */ - sourceCode: new SourceCode({ - text, - ast, - parserServices, - scopeManager, - visitorKeys - }) - }; - } catch (ex) { - - // If the message includes a leading line number, strip it: - const message = `Parsing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; - - debug("%s\n%s", message, ex.stack); - - return { - success: false, - error: { - ruleId: null, - fatal: true, - severity: 2, - message, - line: ex.lineNumber, - column: ex.column, - nodeType: null - } - }; - } -} - /** * Runs a rule, and gets its listeners - * @param {Rule} rule A normalized rule with a `create` method + * @param {Rule} rule A rule object * @param {Context} ruleContext The context that should be passed to the rule + * @throws {TypeError} If `rule` is not an object with a `create` method * @throws {any} Any error during the rule's `create` * @returns {Object} A map of selector listeners provided by the rule */ function createRuleListeners(rule, ruleContext) { + + if (!rule || typeof rule !== "object" || typeof rule.create !== "function") { + throw new TypeError(`Error while loading rule '${ruleContext.id}': Rule must be an object with a \`create\` method`); + } + try { return rule.create(ruleContext); } catch (ex) { @@ -899,104 +948,65 @@ function createRuleListeners(rule, ruleContext) { } } -// methods that exist on SourceCode object -const DEPRECATED_SOURCECODE_PASSTHROUGHS = { - getSource: "getText", - getSourceLines: "getLines", - getAllComments: "getAllComments", - getNodeByRangeIndex: "getNodeByRangeIndex", - getComments: "getComments", - getCommentsBefore: "getCommentsBefore", - getCommentsAfter: "getCommentsAfter", - getCommentsInside: "getCommentsInside", - getJSDocComment: "getJSDocComment", - getFirstToken: "getFirstToken", - getFirstTokens: "getFirstTokens", - getLastToken: "getLastToken", - getLastTokens: "getLastTokens", - getTokenAfter: "getTokenAfter", - getTokenBefore: "getTokenBefore", - getTokenByRangeStart: "getTokenByRangeStart", - getTokens: "getTokens", - getTokensAfter: "getTokensAfter", - getTokensBefore: "getTokensBefore", - getTokensBetween: "getTokensBetween" -}; - - -const BASE_TRAVERSAL_CONTEXT = Object.freeze( - Object.keys(DEPRECATED_SOURCECODE_PASSTHROUGHS).reduce( - (contextInfo, methodName) => - Object.assign(contextInfo, { - [methodName](...args) { - return this.sourceCode[DEPRECATED_SOURCECODE_PASSTHROUGHS[methodName]](...args); - } - }), - {} - ) -); - /** * Runs the given rules on the given SourceCode object * @param {SourceCode} sourceCode A SourceCode object for the given text * @param {Object} configuredRules The rules configuration * @param {function(string): Rule} ruleMapper A mapper function from rule names to rules * @param {string | undefined} parserName The name of the parser in the config + * @param {Language} language The language object used for parsing. * @param {LanguageOptions} languageOptions The options for parsing the code. * @param {Object} settings The settings that were enabled in the config * @param {string} filename The reported filename of the code + * @param {boolean} applyDefaultOptions If true, apply rules' meta.defaultOptions in computing their config options. * @param {boolean} disableFixes If true, it doesn't make `fix` properties. * @param {string | undefined} cwd cwd of the cli * @param {string} physicalFilename The full path of the file on disk without any code block information + * @param {Function} ruleFilter A predicate function to filter which rules should be executed. + * @param {boolean} stats If true, stats are collected appended to the result + * @param {WeakMap} slots InternalSlotsMap of linter * @returns {LintMessage[]} An array of reported problems + * @throws {Error} If traversal into a node fails. */ -function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageOptions, settings, filename, disableFixes, cwd, physicalFilename) { +function runRules( + sourceCode, + configuredRules, + ruleMapper, + parserName, + language, + languageOptions, + settings, + filename, + applyDefaultOptions, + disableFixes, + cwd, + physicalFilename, + ruleFilter, + stats, + slots +) { const emitter = createEmitter(); - const nodeQueue = []; - let currentNode = sourceCode.ast; - Traverser.traverse(sourceCode.ast, { - enter(node, parent) { - node.parent = parent; - nodeQueue.push({ isEntering: true, node }); - }, - leave(node) { - nodeQueue.push({ isEntering: false, node }); - }, - visitorKeys: sourceCode.visitorKeys - }); + // must happen first to assign all node.parent properties + const eventQueue = sourceCode.traverse(); /* * Create a frozen object with the ruleContext properties and methods that are shared by all rules. * All rule contexts will inherit from this object. This avoids the performance penalty of copying all the * properties once for each rule. */ - const sharedTraversalContext = Object.freeze( - Object.assign( - Object.create(BASE_TRAVERSAL_CONTEXT), - { - getAncestors: () => sourceCode.getAncestors(currentNode), - getDeclaredVariables: node => sourceCode.getDeclaredVariables(node), - getCwd: () => cwd, - cwd, - getFilename: () => filename, - filename, - getPhysicalFilename: () => physicalFilename || filename, - physicalFilename: physicalFilename || filename, - getScope: () => sourceCode.getScope(currentNode), - getSourceCode: () => sourceCode, - sourceCode, - markVariableAsUsed: name => sourceCode.markVariableAsUsed(name, currentNode), - parserOptions: { - ...languageOptions.parserOptions - }, - parserPath: parserName, - languageOptions, - parserServices: sourceCode.parserServices, - settings - } - ) - ); + const sharedTraversalContext = new FileContext({ + cwd, + filename, + physicalFilename: physicalFilename || filename, + sourceCode, + parserOptions: { + ...languageOptions.parserOptions + }, + parserPath: parserName, + languageOptions, + settings + }); const lintingProblems = []; @@ -1008,10 +1018,14 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO return; } + if (ruleFilter && !ruleFilter({ ruleId, severity })) { + return; + } + const rule = ruleMapper(ruleId); if (!rule) { - lintingProblems.push(createLintingProblem({ ruleId })); + lintingProblems.push(createLintingProblem({ ruleId, language })); return; } @@ -1022,7 +1036,7 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO Object.create(sharedTraversalContext), { id: ruleId, - options: getRuleOptions(configuredRules[ruleId]), + options: getRuleOptions(configuredRules[ruleId], applyDefaultOptions ? rule.meta?.defaultOptions : void 0), report(...args) { /* @@ -1041,7 +1055,8 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO severity, sourceCode, messageIds, - disableFixes + disableFixes, + language }); } const problem = reportTranslator(...args); @@ -1063,7 +1078,14 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO ) ); - const ruleListeners = timing.enabled ? timing.time(ruleId, createRuleListeners)(rule, ruleContext) : createRuleListeners(rule, ruleContext); + const ruleListenersReturn = (timing.enabled || stats) + ? timing.time(ruleId, createRuleListeners, stats)(rule, ruleContext) : createRuleListeners(rule, ruleContext); + + const ruleListeners = stats ? ruleListenersReturn.result : ruleListenersReturn; + + if (stats) { + storeTime(ruleListenersReturn.tdiff, { type: "rules", key: ruleId }, slots); + } /** * Include `ruleId` in error logs @@ -1073,7 +1095,15 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO function addRuleErrorHandler(ruleListener) { return function ruleErrorHandler(...listenerArgs) { try { - return ruleListener(...listenerArgs); + const ruleListenerReturn = ruleListener(...listenerArgs); + + const ruleListenerResult = stats ? ruleListenerReturn.result : ruleListenerReturn; + + if (stats) { + storeTime(ruleListenerReturn.tdiff, { type: "rules", key: ruleId }, slots); + } + + return ruleListenerResult; } catch (e) { e.ruleId = ruleId; throw e; @@ -1087,9 +1117,8 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO // add all the selectors from the rule as listeners Object.keys(ruleListeners).forEach(selector => { - const ruleListener = timing.enabled - ? timing.time(ruleId, ruleListeners[selector]) - : ruleListeners[selector]; + const ruleListener = (timing.enabled || stats) + ? timing.time(ruleId, ruleListeners[selector], stats) : ruleListeners[selector]; emitter.on( selector, @@ -1098,25 +1127,39 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO }); }); - // only run code path analyzer if the top level node is "Program", skip otherwise - const eventGenerator = nodeQueue[0].node.type === "Program" - ? new CodePathAnalyzer(new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys })) - : new NodeEventGenerator(emitter, { visitorKeys: sourceCode.visitorKeys, fallback: Traverser.getKeys }); + const eventGenerator = new NodeEventGenerator(emitter, { + visitorKeys: sourceCode.visitorKeys ?? language.visitorKeys, + fallback: Traverser.getKeys, + matchClass: language.matchesSelectorClass ?? (() => false), + nodeTypeKey: language.nodeTypeKey + }); - nodeQueue.forEach(traversalInfo => { - currentNode = traversalInfo.node; + for (const step of eventQueue) { + switch (step.kind) { + case STEP_KIND_VISIT: { + try { + if (step.phase === 1) { + eventGenerator.enterNode(step.target); + } else { + eventGenerator.leaveNode(step.target); + } + } catch (err) { + err.currentNode = step.target; + throw err; + } + break; + } - try { - if (traversalInfo.isEntering) { - eventGenerator.enterNode(currentNode); - } else { - eventGenerator.leaveNode(currentNode); + case STEP_KIND_CALL: { + emitter.emit(step.target, ...step.args); + break; } - } catch (err) { - err.currentNode = currentNode; - throw err; + + default: + throw new Error(`Invalid traversal step found: "${step.type}".`); } - }); + + } return lintingProblems; } @@ -1202,7 +1245,6 @@ function assertEslintrcConfig(linter) { } } - //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ @@ -1217,11 +1259,24 @@ class Linter { * Initialize the Linter. * @param {Object} [config] the config object * @param {string} [config.cwd] path to a directory that should be considered as the current working directory, can be undefined. - * @param {"flat"|"eslintrc"} [config.configType="eslintrc"] the type of config used. + * @param {Array} [config.flags] the feature flags to enable. + * @param {"flat"|"eslintrc"} [config.configType="flat"] the type of config used. */ - constructor({ cwd, configType } = {}) { + constructor({ cwd, configType = "flat", flags = [] } = {}) { + + flags.forEach(flag => { + if (inactiveFlags.has(flag)) { + throw new Error(`The flag '${flag}' is inactive: ${inactiveFlags.get(flag)}`); + } + + if (!activeFlags.has(flag)) { + throw new Error(`Unknown flag '${flag}'.`); + } + }); + internalSlotsMap.set(this, { cwd: normalizeCwd(cwd), + flags, lastConfigArray: null, lastSourceCode: null, lastSuppressedMessages: [], @@ -1243,27 +1298,27 @@ class Linter { } /** - * Same as linter.verify, except without support for processors. - * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. + * Indicates if the given feature flag is enabled for this instance. + * @param {string} flag The feature flag to check. + * @returns {boolean} `true` if the feature flag is enabled, `false` if not. + */ + hasFlag(flag) { + return internalSlotsMap.get(this).flags.includes(flag); + } + + /** + * Lint using eslintrc and without processors. + * @param {VFile} file The file to lint. * @param {ConfigData} providedConfig An ESLintConfig instance to configure everything. * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. * @throws {Error} If during rule execution. * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. */ - _verifyWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { + #eslintrcVerifyWithoutProcessors(file, providedConfig, providedOptions) { + const slots = internalSlotsMap.get(this); const config = providedConfig || {}; const options = normalizeVerifyOptions(providedOptions, config); - let text; - - // evaluate arguments - if (typeof textOrSourceCode === "string") { - slots.lastSourceCode = null; - text = textOrSourceCode; - } else { - slots.lastSourceCode = textOrSourceCode; - text = textOrSourceCode.text; - } // Resolve parser. let parserName = DEFAULT_PARSER_NAME; @@ -1290,7 +1345,7 @@ class Linter { // search and apply "eslint-env *". const envInFile = options.allowInlineConfig && !options.warnInlineConfig - ? findEslintEnv(text) + ? findEslintEnv(file.body) : {}; const resolvedEnvConfig = Object.assign({ builtin: true }, config.env, envInFile); const enabledEnvs = Object.keys(resolvedEnvConfig) @@ -1308,14 +1363,30 @@ class Linter { }); if (!slots.lastSourceCode) { - const parseResult = parse( - text, - languageOptions, - options.filename + let t; + + if (options.stats) { + t = startTime(); + } + + const parserService = new ParserService(); + const parseResult = parserService.parseSync( + file, + { + language: jslang, + languageOptions + } ); - if (!parseResult.success) { - return [parseResult.error]; + if (options.stats) { + const time = endTime(t); + const timeOpts = { type: "parse" }; + + storeTime(time, timeOpts, slots); + } + + if (!parseResult.ok) { + return parseResult.errors; } slots.lastSourceCode = parseResult.sourceCode; @@ -1329,6 +1400,7 @@ class Linter { slots.lastSourceCode = new SourceCode({ text: slots.lastSourceCode.text, ast: slots.lastSourceCode.ast, + hasBOM: slots.lastSourceCode.hasBOM, parserServices: slots.lastSourceCode.parserServices, visitorKeys: slots.lastSourceCode.visitorKeys, scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions) @@ -1338,10 +1410,9 @@ class Linter { const sourceCode = slots.lastSourceCode; const commentDirectives = options.allowInlineConfig - ? getDirectiveComments(sourceCode, ruleId => getRule(slots, ruleId), options.warnInlineConfig) + ? getDirectiveComments(sourceCode, ruleId => getRule(slots, ruleId), options.warnInlineConfig, config) : { configuredRules: {}, enabledGlobals: {}, exportedVariables: {}, problems: [], disableDirectives: [] }; - // augment global scope with declared global variables addDeclaredGlobals( sourceCode.scopeManager.scopes[0], configuredGlobals, @@ -1349,6 +1420,7 @@ class Linter { ); const configuredRules = Object.assign({}, config.rules, commentDirectives.configuredRules); + let lintingProblems; try { @@ -1357,19 +1429,24 @@ class Linter { configuredRules, ruleId => getRule(slots, ruleId), parserName, + jslang, languageOptions, settings, options.filename, + true, options.disableFixes, slots.cwd, - providedOptions.physicalFilename + providedOptions.physicalFilename, + null, + options.stats, + slots ); } catch (err) { err.message += `\nOccurred while linting ${options.filename}`; debug("An error occurred while traversing"); debug("Filename:", options.filename); if (err.currentNode) { - const { line } = err.currentNode.loc.start; + const { line } = sourceCode.getLoc(err.currentNode).start; debug("Line:", line); err.message += `:${line}`; @@ -1386,6 +1463,8 @@ class Linter { } return applyDisableDirectives({ + language: jslang, + sourceCode, directives: commentDirectives.disableDirectives, disableFixes: options.disableFixes, problems: lintingProblems @@ -1393,6 +1472,36 @@ class Linter { .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column), reportUnusedDisableDirectives: options.reportUnusedDisableDirectives }); + + } + + /** + * Same as linter.verify, except without support for processors. + * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. + * @param {ConfigData} providedConfig An ESLintConfig instance to configure everything. + * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. + * @throws {Error} If during rule execution. + * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. + */ + _verifyWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { + const slots = internalSlotsMap.get(this); + const filename = normalizeFilename(providedOptions.filename || ""); + let text; + + // evaluate arguments + if (typeof textOrSourceCode === "string") { + slots.lastSourceCode = null; + text = textOrSourceCode; + } else { + slots.lastSourceCode = textOrSourceCode; + text = textOrSourceCode.text; + } + + const file = new VFile(filename, text, { + physicalPath: providedOptions.physicalFilename + }); + + return this.#eslintrcVerifyWithoutProcessors(file, providedConfig, providedOptions); } /** @@ -1413,29 +1522,29 @@ class Linter { ? { filename: filenameOrOptions } : filenameOrOptions || {}; - if (config) { - if (configType === "flat") { - - /* - * Because of how Webpack packages up the files, we can't - * compare directly to `FlatConfigArray` using `instanceof` - * because it's not the same `FlatConfigArray` as in the tests. - * So, we work around it by assuming an array is, in fact, a - * `FlatConfigArray` if it has a `getConfig()` method. - */ - let configArray = config; - - if (!Array.isArray(config) || typeof config.getConfig !== "function") { - configArray = new FlatConfigArray(config, { basePath: cwd }); - configArray.normalizeSync(); - } + const configToUse = config ?? {}; - return this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(textOrSourceCode, configArray, options, true)); - } + if (configType !== "eslintrc") { + + /* + * Because of how Webpack packages up the files, we can't + * compare directly to `FlatConfigArray` using `instanceof` + * because it's not the same `FlatConfigArray` as in the tests. + * So, we work around it by assuming an array is, in fact, a + * `FlatConfigArray` if it has a `getConfig()` method. + */ + let configArray = configToUse; - if (typeof config.extractConfig === "function") { - return this._distinguishSuppressedMessages(this._verifyWithConfigArray(textOrSourceCode, config, options)); + if (!Array.isArray(configToUse) || typeof configToUse.getConfig !== "function") { + configArray = new FlatConfigArray(configToUse, { basePath: cwd }); + configArray.normalizeSync(); } + + return this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(textOrSourceCode, configArray, options, true)); + } + + if (typeof configToUse.extractConfig === "function") { + return this._distinguishSuppressedMessages(this._verifyWithConfigArray(textOrSourceCode, configToUse, options)); } /* @@ -1448,9 +1557,9 @@ class Linter { * So we cannot apply multiple processors. */ if (options.preprocess || options.postprocess) { - return this._distinguishSuppressedMessages(this._verifyWithProcessor(textOrSourceCode, config, options)); + return this._distinguishSuppressedMessages(this._verifyWithProcessor(textOrSourceCode, configToUse, options)); } - return this._distinguishSuppressedMessages(this._verifyWithoutProcessors(textOrSourceCode, config, options)); + return this._distinguishSuppressedMessages(this._verifyWithoutProcessors(textOrSourceCode, configToUse, options)); } /** @@ -1462,142 +1571,114 @@ class Linter { * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. */ _verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options, configForRecursive) { + const slots = internalSlotsMap.get(this); const filename = options.filename || ""; const filenameToExpose = normalizeFilename(filename); const physicalFilename = options.physicalFilename || filenameToExpose; const text = ensureText(textOrSourceCode); + const file = new VFile(filenameToExpose, text, { + physicalPath: physicalFilename + }); + const preprocess = options.preprocess || (rawText => [rawText]); const postprocess = options.postprocess || (messagesList => messagesList.flat()); + + const processorService = new ProcessorService(); + const preprocessResult = processorService.preprocessSync(file, { + processor: { + preprocess, + postprocess + } + }); + + if (!preprocessResult.ok) { + return preprocessResult.errors; + } + const filterCodeBlock = options.filterCodeBlock || (blockFilename => blockFilename.endsWith(".js")); const originalExtname = path.extname(filename); + const { files } = preprocessResult; - let blocks; - - try { - blocks = preprocess(text, filenameToExpose); - } catch (ex) { - - // If the message includes a leading line number, strip it: - const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; - - debug("%s\n%s", message, ex.stack); - - return [ - { - ruleId: null, - fatal: true, - severity: 2, - message, - line: ex.lineNumber, - column: ex.column, - nodeType: null - } - ]; - } - - const messageLists = blocks.map((block, i) => { - debug("A code block was found: %o", block.filename || "(unnamed)"); + const messageLists = files.map(block => { + debug("A code block was found: %o", block.path || "(unnamed)"); // Keep the legacy behavior. if (typeof block === "string") { return this._verifyWithFlatConfigArrayAndWithoutProcessors(block, config, options); } - const blockText = block.text; - const blockName = path.join(filename, `${i}_${block.filename}`); - // Skip this block if filtered. - if (!filterCodeBlock(blockName, blockText)) { + if (!filterCodeBlock(block.path, block.body)) { debug("This code block was skipped."); return []; } // Resolve configuration again if the file content or extension was changed. - if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) { + if (configForRecursive && (text !== block.rawBody || path.extname(block.path) !== originalExtname)) { debug("Resolving configuration again because the file content or extension was changed."); return this._verifyWithFlatConfigArray( - blockText, + block.rawBody, configForRecursive, - { ...options, filename: blockName, physicalFilename } + { ...options, filename: block.path, physicalFilename: block.physicalPath } ); } + slots.lastSourceCode = null; + // Does lint. - return this._verifyWithFlatConfigArrayAndWithoutProcessors( - blockText, + return this.#flatVerifyWithoutProcessors( + block, config, - { ...options, filename: blockName, physicalFilename } + { ...options, filename: block.path, physicalFilename: block.physicalPath } ); }); - return postprocess(messageLists, filenameToExpose); + return processorService.postprocessSync(file, messageLists, { + processor: { + preprocess, + postprocess + } + }); } /** - * Same as linter.verify, except without support for processors. - * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. + * Verify using flat config and without any processors. + * @param {VFile} file The file to lint. * @param {FlatConfig} providedConfig An ESLintConfig instance to configure everything. * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. * @throws {Error} If during rule execution. * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. */ - _verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { + #flatVerifyWithoutProcessors(file, providedConfig, providedOptions) { + const slots = internalSlotsMap.get(this); const config = providedConfig || {}; + const { settings = {}, languageOptions } = config; const options = normalizeVerifyOptions(providedOptions, config); - let text; - - // evaluate arguments - if (typeof textOrSourceCode === "string") { - slots.lastSourceCode = null; - text = textOrSourceCode; - } else { - slots.lastSourceCode = textOrSourceCode; - text = textOrSourceCode.text; - } - - const languageOptions = config.languageOptions; - languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions( - languageOptions.ecmaVersion - ); - - // double check that there is a parser to avoid mysterious error messages - if (!languageOptions.parser) { - throw new TypeError(`No parser specified for ${options.filename}`); - } + if (!slots.lastSourceCode) { + let t; - // Espree expects this information to be passed in - if (isEspree(languageOptions.parser)) { - const parserOptions = languageOptions.parserOptions; + if (options.stats) { + t = startTime(); + } - if (languageOptions.sourceType) { + const parserService = new ParserService(); + const parseResult = parserService.parseSync( + file, + config + ); - parserOptions.sourceType = languageOptions.sourceType; + if (options.stats) { + const time = endTime(t); - if ( - parserOptions.sourceType === "module" && - parserOptions.ecmaFeatures && - parserOptions.ecmaFeatures.globalReturn - ) { - parserOptions.ecmaFeatures.globalReturn = false; - } + storeTime(time, { type: "parse" }, slots); } - } - - const settings = config.settings || {}; - - if (!slots.lastSourceCode) { - const parseResult = parse( - text, - languageOptions, - options.filename - ); - if (!parseResult.success) { - return [parseResult.error]; + if (!parseResult.ok) { + return parseResult.errors; } slots.lastSourceCode = parseResult.sourceCode; @@ -1606,11 +1687,17 @@ class Linter { /* * If the given source code object as the first argument does not have scopeManager, analyze the scope. * This is for backward compatibility (SourceCode is frozen so it cannot rebind). + * + * We check explicitly for `null` to ensure that this is a JS-flavored language. + * For non-JS languages we don't want to do this. + * + * TODO: Remove this check when we stop exporting the `SourceCode` object. */ - if (!slots.lastSourceCode.scopeManager) { + if (slots.lastSourceCode.scopeManager === null) { slots.lastSourceCode = new SourceCode({ text: slots.lastSourceCode.text, ast: slots.lastSourceCode.ast, + hasBOM: slots.lastSourceCode.hasBOM, parserServices: slots.lastSourceCode.parserServices, visitorKeys: slots.lastSourceCode.visitorKeys, scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions) @@ -1625,7 +1712,7 @@ class Linter { * this is primarily about adding variables into the global scope * to account for ecmaVersion and configured globals. */ - sourceCode.applyLanguageOptions(languageOptions); + sourceCode.applyLanguageOptions?.(languageOptions); const mergedInlineConfig = { rules: {} @@ -1642,74 +1729,166 @@ class Linter { // if inline config should warn then add the warnings if (options.warnInlineConfig) { - sourceCode.getInlineConfigNodes().forEach(node => { - inlineConfigProblems.push(createLintingProblem({ - ruleId: null, - message: `'${sourceCode.text.slice(node.range[0], node.range[1])}' has no effect because you have 'noInlineConfig' setting in ${options.warnInlineConfig}.`, - loc: node.loc, - severity: 1 - })); - - }); - } else { - const inlineConfigResult = sourceCode.applyInlineConfig(); - - inlineConfigProblems.push( - ...inlineConfigResult.problems - .map(createLintingProblem) - .map(problem => { - problem.fatal = true; - return problem; - }) - ); + if (sourceCode.getInlineConfigNodes) { + sourceCode.getInlineConfigNodes().forEach(node => { - // next we need to verify information about the specified rules - const ruleValidator = new RuleValidator(); + const loc = sourceCode.getLoc(node); + const range = sourceCode.getRange(node); - for (const { config: inlineConfig, node } of inlineConfigResult.configs) { + inlineConfigProblems.push(createLintingProblem({ + ruleId: null, + message: `'${sourceCode.text.slice(range[0], range[1])}' has no effect because you have 'noInlineConfig' setting in ${options.warnInlineConfig}.`, + loc, + severity: 1, + language: config.language + })); - Object.keys(inlineConfig.rules).forEach(ruleId => { - const rule = getRuleFromConfig(ruleId, config); - const ruleValue = inlineConfig.rules[ruleId]; + }); + } + } else { + const inlineConfigResult = sourceCode.applyInlineConfig?.(); + + if (inlineConfigResult) { + inlineConfigProblems.push( + ...inlineConfigResult.problems + .map(problem => createLintingProblem({ ...problem, language: config.language })) + .map(problem => { + problem.fatal = true; + return problem; + }) + ); + + // next we need to verify information about the specified rules + const ruleValidator = new RuleValidator(); + + for (const { config: inlineConfig, loc } of inlineConfigResult.configs) { + + Object.keys(inlineConfig.rules).forEach(ruleId => { + const rule = getRuleFromConfig(ruleId, config); + const ruleValue = inlineConfig.rules[ruleId]; + + if (!rule) { + inlineConfigProblems.push(createLintingProblem({ + ruleId, + loc, + language: config.language + })); + return; + } - if (!rule) { - inlineConfigProblems.push(createLintingProblem({ ruleId, loc: node.loc })); - return; - } + if (Object.hasOwn(mergedInlineConfig.rules, ruleId)) { + inlineConfigProblems.push(createLintingProblem({ + message: `Rule "${ruleId}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`, + loc, + language: config.language + })); + return; + } - try { + try { + + let ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue]; + + assertIsRuleSeverity(ruleId, ruleOptions[0]); + + /* + * If the rule was already configured, inline rule configuration that + * only has severity should retain options from the config and just override the severity. + * + * Example: + * + * { + * rules: { + * curly: ["error", "multi"] + * } + * } + * + * /* eslint curly: ["warn"] * / + * + * Results in: + * + * curly: ["warn", "multi"] + */ + + let shouldValidateOptions = true; + + if ( + + /* + * If inline config for the rule has only severity + */ + ruleOptions.length === 1 && + + /* + * And the rule was already configured + */ + config.rules && Object.hasOwn(config.rules, ruleId) + ) { + + /* + * Then use severity from the inline config and options from the provided config + */ + ruleOptions = [ + ruleOptions[0], // severity from the inline config + ...config.rules[ruleId].slice(1) // options from the provided config + ]; + + // if the rule was enabled, the options have already been validated + if (config.rules[ruleId][0] > 0) { + shouldValidateOptions = false; + } + } else { + + /** + * Since we know the user provided options, apply defaults on top of them + */ + const slicedOptions = ruleOptions.slice(1); + const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, slicedOptions); + + if (mergedOptions.length) { + ruleOptions = [ruleOptions[0], ...mergedOptions]; + } + } - const ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue]; + if (shouldValidateOptions) { + ruleValidator.validate({ + plugins: config.plugins, + rules: { + [ruleId]: ruleOptions + } + }); + } - assertIsRuleOptions(ruleId, ruleValue); - assertIsRuleSeverity(ruleId, ruleOptions[0]); + mergedInlineConfig.rules[ruleId] = ruleOptions; + } catch (err) { - ruleValidator.validate({ - plugins: config.plugins, - rules: { - [ruleId]: ruleOptions + /* + * If the rule has invalid `meta.schema`, throw the error because + * this is not an invalid inline configuration but an invalid rule. + */ + if (err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA") { + throw err; } - }); - mergedInlineConfig.rules[ruleId] = ruleValue; - } catch (err) { - let baseMessage = err.message.slice( - err.message.startsWith("Key \"rules\":") - ? err.message.indexOf(":", 12) + 1 - : err.message.indexOf(":") + 1 - ).trim(); + let baseMessage = err.message.slice( + err.message.startsWith("Key \"rules\":") + ? err.message.indexOf(":", 12) + 1 + : err.message.indexOf(":") + 1 + ).trim(); - if (err.messageTemplate) { - baseMessage += ` You passed "${ruleValue}".`; - } + if (err.messageTemplate) { + baseMessage += ` You passed "${ruleValue}".`; + } - inlineConfigProblems.push(createLintingProblem({ - ruleId, - message: `Inline configuration for rule "${ruleId}" is invalid:\n\t${baseMessage}\n`, - loc: node.loc - })); - } - }); + inlineConfigProblems.push(createLintingProblem({ + ruleId, + message: `Inline configuration for rule "${ruleId}" is invalid:\n\t${baseMessage}\n`, + loc, + language: config.language + })); + } + }); + } } } } @@ -1717,14 +1896,16 @@ class Linter { const commentDirectives = options.allowInlineConfig && !options.warnInlineConfig ? getDirectiveCommentsForFlatConfig( sourceCode, - ruleId => getRuleFromConfig(ruleId, config) + ruleId => getRuleFromConfig(ruleId, config), + config.language ) : { problems: [], disableDirectives: [] }; const configuredRules = Object.assign({}, config.rules, mergedInlineConfig.rules); + let lintingProblems; - sourceCode.finalize(); + sourceCode.finalize?.(); try { lintingProblems = runRules( @@ -1732,19 +1913,24 @@ class Linter { configuredRules, ruleId => getRuleFromConfig(ruleId, config), void 0, + config.language, languageOptions, settings, options.filename, + false, options.disableFixes, slots.cwd, - providedOptions.physicalFilename + providedOptions.physicalFilename, + options.ruleFilter, + options.stats, + slots ); } catch (err) { err.message += `\nOccurred while linting ${options.filename}`; debug("An error occurred while traversing"); debug("Filename:", options.filename); if (err.currentNode) { - const { line } = err.currentNode.loc.start; + const { line } = sourceCode.getLoc(err.currentNode).start; debug("Line:", line); err.message += `:${line}`; @@ -1762,14 +1948,49 @@ class Linter { } return applyDisableDirectives({ + language: config.language, + sourceCode, directives: commentDirectives.disableDirectives, disableFixes: options.disableFixes, problems: lintingProblems .concat(commentDirectives.problems) .concat(inlineConfigProblems) .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column), - reportUnusedDisableDirectives: options.reportUnusedDisableDirectives + reportUnusedDisableDirectives: options.reportUnusedDisableDirectives, + ruleFilter: options.ruleFilter, + configuredRules }); + + + } + + /** + * Same as linter.verify, except without support for processors. + * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. + * @param {FlatConfig} providedConfig An ESLintConfig instance to configure everything. + * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. + * @throws {Error} If during rule execution. + * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. + */ + _verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { + const slots = internalSlotsMap.get(this); + const filename = normalizeFilename(providedOptions.filename || ""); + let text; + + // evaluate arguments + if (typeof textOrSourceCode === "string") { + slots.lastSourceCode = null; + text = textOrSourceCode; + } else { + slots.lastSourceCode = textOrSourceCode; + text = textOrSourceCode.text; + } + + const file = new VFile(filename, text, { + physicalPath: providedOptions.physicalFilename + }); + + return this.#flatVerifyWithoutProcessors(file, providedConfig, providedOptions); } /** @@ -1870,77 +2091,78 @@ class Linter { * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. */ _verifyWithProcessor(textOrSourceCode, config, options, configForRecursive) { + const slots = internalSlotsMap.get(this); const filename = options.filename || ""; const filenameToExpose = normalizeFilename(filename); const physicalFilename = options.physicalFilename || filenameToExpose; const text = ensureText(textOrSourceCode); + const file = new VFile(filenameToExpose, text, { + physicalPath: physicalFilename + }); + const preprocess = options.preprocess || (rawText => [rawText]); const postprocess = options.postprocess || (messagesList => messagesList.flat()); - const filterCodeBlock = - options.filterCodeBlock || - (blockFilename => blockFilename.endsWith(".js")); - const originalExtname = path.extname(filename); - let blocks; - - try { - blocks = preprocess(text, filenameToExpose); - } catch (ex) { + const processorService = new ProcessorService(); + const preprocessResult = processorService.preprocessSync(file, { + processor: { + preprocess, + postprocess + } + }); - // If the message includes a leading line number, strip it: - const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; + if (!preprocessResult.ok) { + return preprocessResult.errors; + } - debug("%s\n%s", message, ex.stack); + const filterCodeBlock = + options.filterCodeBlock || + (blockFilePath => blockFilePath.endsWith(".js")); + const originalExtname = path.extname(filename); - return [ - { - ruleId: null, - fatal: true, - severity: 2, - message, - line: ex.lineNumber, - column: ex.column, - nodeType: null - } - ]; - } + const { files } = preprocessResult; - const messageLists = blocks.map((block, i) => { - debug("A code block was found: %o", block.filename || "(unnamed)"); + const messageLists = files.map(block => { + debug("A code block was found: %o", block.path ?? "(unnamed)"); // Keep the legacy behavior. if (typeof block === "string") { return this._verifyWithoutProcessors(block, config, options); } - const blockText = block.text; - const blockName = path.join(filename, `${i}_${block.filename}`); - // Skip this block if filtered. - if (!filterCodeBlock(blockName, blockText)) { + if (!filterCodeBlock(block.path, block.body)) { debug("This code block was skipped."); return []; } // Resolve configuration again if the file content or extension was changed. - if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) { + if (configForRecursive && (text !== block.rawBody || path.extname(block.path) !== originalExtname)) { debug("Resolving configuration again because the file content or extension was changed."); return this._verifyWithConfigArray( - blockText, + block.rawBody, configForRecursive, - { ...options, filename: blockName, physicalFilename } + { ...options, filename: block.path, physicalFilename: block.physicalPath } ); } + slots.lastSourceCode = null; + // Does lint. - return this._verifyWithoutProcessors( - blockText, + return this.#eslintrcVerifyWithoutProcessors( + block, config, - { ...options, filename: blockName, physicalFilename } + { ...options, filename: block.path, physicalFilename: block.physicalPath } ); }); - return postprocess(messageLists, filenameToExpose); + return processorService.postprocessSync(file, messageLists, { + processor: { + preprocess, + postprocess + } + }); + } /** @@ -1975,6 +2197,22 @@ class Linter { return internalSlotsMap.get(this).lastSourceCode; } + /** + * Gets the times spent on (parsing, fixing, linting) a file. + * @returns {LintTimes} The times. + */ + getTimes() { + return internalSlotsMap.get(this).times ?? { passes: [] }; + } + + /** + * Gets the number of autofix passes that were made in the last run. + * @returns {number} The number of autofix passes. + */ + getFixPassCount() { + return internalSlotsMap.get(this).fixPasses ?? 0; + } + /** * Gets the list of SuppressedLintMessage produced in the last running. * @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage @@ -1986,17 +2224,17 @@ class Linter { /** * Defines a new linting rule. * @param {string} ruleId A unique rule identifier - * @param {Function | Rule} ruleModule Function from context to object mapping AST node types to event handlers + * @param {Rule} rule A rule object * @returns {void} */ - defineRule(ruleId, ruleModule) { + defineRule(ruleId, rule) { assertEslintrcConfig(this); - internalSlotsMap.get(this).ruleMap.define(ruleId, ruleModule); + internalSlotsMap.get(this).ruleMap.define(ruleId, rule); } /** * Defines many new linting rules. - * @param {Record} rulesToDefine map from unique rule identifier to rule + * @param {Record} rulesToDefine map from unique rule identifier to rule * @returns {void} */ defineRules(rulesToDefine) { @@ -2044,13 +2282,14 @@ class Linter { * SourceCodeFixer. */ verifyAndFix(text, config, options) { - let messages = [], + let messages, fixedResult, fixed = false, passNumber = 0, currentText = text; const debugTextDescription = options && options.filename || `${text.slice(0, 10)}...`; const shouldFix = options && typeof options.fix !== "undefined" ? options.fix : true; + const stats = options?.stats; /** * This loop continues until one of the following is true: @@ -2061,15 +2300,46 @@ class Linter { * That means anytime a fix is successfully applied, there will be another pass. * Essentially, guaranteeing a minimum of two passes. */ + const slots = internalSlotsMap.get(this); + + // Remove lint times from the last run. + if (stats) { + delete slots.times; + slots.fixPasses = 0; + } + do { passNumber++; + let tTotal; + + if (stats) { + tTotal = startTime(); + } debug(`Linting code for ${debugTextDescription} (pass ${passNumber})`); messages = this.verify(currentText, config, options); debug(`Generating fixed text for ${debugTextDescription} (pass ${passNumber})`); + let t; + + if (stats) { + t = startTime(); + } + fixedResult = SourceCodeFixer.applyFixes(currentText, messages, shouldFix); + if (stats) { + + if (fixedResult.fixed) { + const time = endTime(t); + + storeTime(time, { type: "fix" }, slots); + slots.fixPasses++; + } else { + storeTime(0, { type: "fix" }, slots); + } + } + /* * stop if there are any syntax errors. * 'fixedResult.output' is a empty string. @@ -2084,6 +2354,13 @@ class Linter { // update to use the fixed output instead of the original text currentText = fixedResult.output; + if (stats) { + tTotal = endTime(tTotal); + const passIndex = slots.times.passes.length - 1; + + slots.times.passes[passIndex].total = tTotal; + } + } while ( fixedResult.fixed && passNumber < MAX_AUTOFIX_PASSES @@ -2094,7 +2371,18 @@ class Linter { * the most up-to-date information. */ if (fixedResult.fixed) { + let tTotal; + + if (stats) { + tTotal = startTime(); + } + fixedResult.messages = this.verify(currentText, config, options); + + if (stats) { + storeTime(0, { type: "fix" }, slots); + slots.times.passes.at(-1).total = endTime(tTotal); + } } // ensure the last result properly reflects if fixes were done diff --git a/node_modules/eslint/lib/linter/node-event-generator.js b/node_modules/eslint/lib/linter/node-event-generator.js index d56bef2f..0eb2f8dc 100644 --- a/node_modules/eslint/lib/linter/node-event-generator.js +++ b/node_modules/eslint/lib/linter/node-event-generator.js @@ -334,10 +334,8 @@ class NodeEventGenerator { * @returns {void} */ enterNode(node) { - if (node.parent) { - this.currentAncestry.unshift(node.parent); - } this.applySelectors(node, false); + this.currentAncestry.unshift(node); } /** @@ -346,8 +344,8 @@ class NodeEventGenerator { * @returns {void} */ leaveNode(node) { - this.applySelectors(node, true); this.currentAncestry.shift(); + this.applySelectors(node, true); } } diff --git a/node_modules/eslint/lib/linter/report-translator.js b/node_modules/eslint/lib/linter/report-translator.js index 41a43ead..e0a46305 100644 --- a/node_modules/eslint/lib/linter/report-translator.js +++ b/node_modules/eslint/lib/linter/report-translator.js @@ -9,9 +9,9 @@ // Requirements //------------------------------------------------------------------------------ -const assert = require("assert"); -const ruleFixer = require("./rule-fixer"); -const interpolate = require("./interpolate"); +const assert = require("../shared/assert"); +const { RuleFixer } = require("./rule-fixer"); +const { interpolate } = require("./interpolate"); //------------------------------------------------------------------------------ // Typedefs @@ -91,13 +91,10 @@ function assertValidNodeInfo(descriptor) { * from the `node` of the original descriptor, or infers the `start` from the `loc` of the original descriptor. */ function normalizeReportLoc(descriptor) { - if (descriptor.loc) { - if (descriptor.loc.start) { - return descriptor.loc; - } - return { start: descriptor.loc, end: null }; + if (descriptor.loc.start) { + return descriptor.loc; } - return descriptor.node.loc; + return { start: descriptor.loc, end: null }; } /** @@ -160,7 +157,7 @@ function mergeFixes(fixes, sourceCode) { const originalText = sourceCode.text; const start = fixes[0].range[0]; - const end = fixes[fixes.length - 1].range[1]; + const end = fixes.at(-1).range[1]; let text = ""; let lastPos = Number.MIN_SAFE_INTEGER; @@ -190,6 +187,8 @@ function normalizeFixes(descriptor, sourceCode) { return null; } + const ruleFixer = new RuleFixer({ sourceCode }); + // @type {null | Fix | Fix[] | IterableIterator} const fix = descriptor.fix(ruleFixer); @@ -240,15 +239,22 @@ function mapSuggestions(descriptor, sourceCode, messages) { * @param {{start: SourceLocation, end: (SourceLocation|null)}} options.loc Start and end location * @param {{text: string, range: (number[]|null)}} options.fix The fix object * @param {Array<{text: string, range: (number[]|null)}>} options.suggestions The array of suggestions objects + * @param {Language} [options.language] The language to use to adjust line and column offsets. * @returns {LintMessage} Information about the report */ function createProblem(options) { + const { language } = options; + + // calculate offsets based on the language in use + const columnOffset = language.columnStart === 1 ? 0 : 1; + const lineOffset = language.lineStart === 1 ? 0 : 1; + const problem = { ruleId: options.ruleId, severity: options.severity, message: options.message, - line: options.loc.start.line, - column: options.loc.start.column + 1, + line: options.loc.start.line + lineOffset, + column: options.loc.start.column + columnOffset, nodeType: options.node && options.node.type || null }; @@ -261,8 +267,8 @@ function createProblem(options) { } if (options.loc.end) { - problem.endLine = options.loc.end.line; - problem.endColumn = options.loc.end.column + 1; + problem.endLine = options.loc.end.line + lineOffset; + problem.endColumn = options.loc.end.column + columnOffset; } if (options.fix) { @@ -313,8 +319,7 @@ function validateSuggestions(suggest, messages) { /** * Returns a function that converts the arguments of a `context.report` call from a rule into a reported * problem for the Node.js API. - * @param {{ruleId: string, severity: number, sourceCode: SourceCode, messageIds: Object, disableFixes: boolean}} metadata Metadata for the reported problem - * @param {SourceCode} sourceCode The `SourceCode` instance for the text being linted + * @param {{ruleId: string, severity: number, sourceCode: SourceCode, messageIds: Object, disableFixes: boolean, language:Language}} metadata Metadata for the reported problem * @returns {function(...args): LintMessage} Function that returns information about the report */ @@ -329,6 +334,7 @@ module.exports = function createReportTranslator(metadata) { return (...args) => { const descriptor = normalizeMultiArgReportCall(...args); const messages = metadata.messageIds; + const { sourceCode } = metadata; assertValidNodeInfo(descriptor); @@ -343,7 +349,7 @@ module.exports = function createReportTranslator(metadata) { if (descriptor.message) { throw new TypeError("context.report() called with a message and a messageId. Please only pass one."); } - if (!messages || !Object.prototype.hasOwnProperty.call(messages, id)) { + if (!messages || !Object.hasOwn(messages, id)) { throw new TypeError(`context.report() called with a messageId of '${id}' which is not present in the 'messages' config: ${JSON.stringify(messages, null, 2)}`); } computedMessage = messages[id]; @@ -361,9 +367,10 @@ module.exports = function createReportTranslator(metadata) { node: descriptor.node, message: interpolate(computedMessage, descriptor.data), messageId: descriptor.messageId, - loc: normalizeReportLoc(descriptor), - fix: metadata.disableFixes ? null : normalizeFixes(descriptor, metadata.sourceCode), - suggestions: metadata.disableFixes ? [] : mapSuggestions(descriptor, metadata.sourceCode, messages) + loc: descriptor.loc ? normalizeReportLoc(descriptor) : sourceCode.getLoc(descriptor.node), + fix: metadata.disableFixes ? null : normalizeFixes(descriptor, sourceCode), + suggestions: metadata.disableFixes ? [] : mapSuggestions(descriptor, sourceCode, messages), + language: metadata.language }); }; }; diff --git a/node_modules/eslint/lib/linter/rule-fixer.js b/node_modules/eslint/lib/linter/rule-fixer.js index bdd80d13..f9c45feb 100644 --- a/node_modules/eslint/lib/linter/rule-fixer.js +++ b/node_modules/eslint/lib/linter/rule-fixer.js @@ -4,6 +4,8 @@ */ "use strict"; +/* eslint class-methods-use-this: off -- Methods desired on instance */ + //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ @@ -35,8 +37,22 @@ function insertTextAt(index, text) { /** * Creates code fixing commands for rules. */ +class RuleFixer { -const ruleFixer = Object.freeze({ + /** + * The source code object representing the text to be fixed. + * @type {SourceCode} + */ + #sourceCode; + + /** + * Creates a new instance. + * @param {Object} options The options for the fixer. + * @param {SourceCode} options.sourceCode The source code object representing the text to be fixed. + */ + constructor({ sourceCode }) { + this.#sourceCode = sourceCode; + } /** * Creates a fix command that inserts text after the given node or token. @@ -46,8 +62,10 @@ const ruleFixer = Object.freeze({ * @returns {Object} The fix command. */ insertTextAfter(nodeOrToken, text) { - return this.insertTextAfterRange(nodeOrToken.range, text); - }, + const range = this.#sourceCode.getRange(nodeOrToken); + + return this.insertTextAfterRange(range, text); + } /** * Creates a fix command that inserts text after the specified range in the source text. @@ -59,7 +77,7 @@ const ruleFixer = Object.freeze({ */ insertTextAfterRange(range, text) { return insertTextAt(range[1], text); - }, + } /** * Creates a fix command that inserts text before the given node or token. @@ -69,8 +87,10 @@ const ruleFixer = Object.freeze({ * @returns {Object} The fix command. */ insertTextBefore(nodeOrToken, text) { - return this.insertTextBeforeRange(nodeOrToken.range, text); - }, + const range = this.#sourceCode.getRange(nodeOrToken); + + return this.insertTextBeforeRange(range, text); + } /** * Creates a fix command that inserts text before the specified range in the source text. @@ -82,7 +102,7 @@ const ruleFixer = Object.freeze({ */ insertTextBeforeRange(range, text) { return insertTextAt(range[0], text); - }, + } /** * Creates a fix command that replaces text at the node or token. @@ -92,8 +112,10 @@ const ruleFixer = Object.freeze({ * @returns {Object} The fix command. */ replaceText(nodeOrToken, text) { - return this.replaceTextRange(nodeOrToken.range, text); - }, + const range = this.#sourceCode.getRange(nodeOrToken); + + return this.replaceTextRange(range, text); + } /** * Creates a fix command that replaces text at the specified range in the source text. @@ -108,7 +130,7 @@ const ruleFixer = Object.freeze({ range, text }; - }, + } /** * Creates a fix command that removes the node or token from the source. @@ -117,8 +139,10 @@ const ruleFixer = Object.freeze({ * @returns {Object} The fix command. */ remove(nodeOrToken) { - return this.removeRange(nodeOrToken.range); - }, + const range = this.#sourceCode.getRange(nodeOrToken); + + return this.removeRange(range); + } /** * Creates a fix command that removes the specified range of text from the source. @@ -133,8 +157,7 @@ const ruleFixer = Object.freeze({ text: "" }; } - -}); +} -module.exports = ruleFixer; +module.exports = { RuleFixer }; diff --git a/node_modules/eslint/lib/linter/rules.js b/node_modules/eslint/lib/linter/rules.js index 647bab68..bb8e3682 100644 --- a/node_modules/eslint/lib/linter/rules.js +++ b/node_modules/eslint/lib/linter/rules.js @@ -13,18 +13,10 @@ const builtInRules = require("../rules"); //------------------------------------------------------------------------------ -// Helpers +// Typedefs //------------------------------------------------------------------------------ -/** - * Normalizes a rule module to the new-style API - * @param {(Function|{create: Function})} rule A rule object, which can either be a function - * ("old-style") or an object with a `create` method ("new-style") - * @returns {{create: Function}} A new-style rule. - */ -function normalizeRule(rule) { - return typeof rule === "function" ? Object.assign({ create: rule }, rule) : rule; -} +/** @typedef {import("../shared/types").Rule} Rule */ //------------------------------------------------------------------------------ // Public Interface @@ -41,18 +33,17 @@ class Rules { /** * Registers a rule module for rule id in storage. * @param {string} ruleId Rule id (file name). - * @param {Function} ruleModule Rule handler. + * @param {Rule} rule Rule object. * @returns {void} */ - define(ruleId, ruleModule) { - this._rules[ruleId] = normalizeRule(ruleModule); + define(ruleId, rule) { + this._rules[ruleId] = rule; } /** * Access rule handler by id (file name). * @param {string} ruleId Rule id (file name). - * @returns {{create: Function, schema: JsonSchema[]}} - * A rule. This is normalized to always have the new-style shape with a `create` method. + * @returns {Rule} Rule object. */ get(ruleId) { if (typeof this._rules[ruleId] === "string") { diff --git a/node_modules/eslint/lib/linter/source-code-fixer.js b/node_modules/eslint/lib/linter/source-code-fixer.js index 15386c92..312e84f6 100644 --- a/node_modules/eslint/lib/linter/source-code-fixer.js +++ b/node_modules/eslint/lib/linter/source-code-fixer.js @@ -107,7 +107,7 @@ SourceCodeFixer.applyFixes = function(sourceText, messages, shouldFix) { } messages.forEach(problem => { - if (Object.prototype.hasOwnProperty.call(problem, "fix")) { + if (Object.hasOwn(problem, "fix")) { fixes.push(problem); } else { remainingMessages.push(problem); diff --git a/node_modules/eslint/lib/linter/timing.js b/node_modules/eslint/lib/linter/timing.js index 1076ff25..232c5f4f 100644 --- a/node_modules/eslint/lib/linter/timing.js +++ b/node_modules/eslint/lib/linter/timing.js @@ -5,6 +5,8 @@ "use strict"; +const { startTime, endTime } = require("../shared/stats"); + //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ @@ -128,21 +130,27 @@ module.exports = (function() { * Time the run * @param {any} key key from the data object * @param {Function} fn function to be called + * @param {boolean} stats if 'stats' is true, return the result and the time difference * @returns {Function} function to be executed * @private */ - function time(key, fn) { - if (typeof data[key] === "undefined") { - data[key] = 0; - } + function time(key, fn, stats) { return function(...args) { - let t = process.hrtime(); + + const t = startTime(); const result = fn(...args); + const tdiff = endTime(t); + + if (enabled) { + if (typeof data[key] === "undefined") { + data[key] = 0; + } + + data[key] += tdiff; + } - t = process.hrtime(t); - data[key] += t[0] * 1e3 + t[1] / 1e6; - return result; + return stats ? { result, tdiff } : result; }; } diff --git a/node_modules/eslint/lib/linter/vfile.js b/node_modules/eslint/lib/linter/vfile.js new file mode 100644 index 00000000..bb2da0a7 --- /dev/null +++ b/node_modules/eslint/lib/linter/vfile.js @@ -0,0 +1,118 @@ +/** + * @fileoverview Virtual file + * @author Nicholas C. Zakas + */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Type Definitions +//----------------------------------------------------------------------------- + +/** @typedef {import("@eslint/core").File} File */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * Determines if a given value has a byte order mark (BOM). + * @param {string|Uint8Array} value The value to check. + * @returns {boolean} `true` if the value has a BOM, `false` otherwise. + */ +function hasUnicodeBOM(value) { + return typeof value === "string" + ? value.charCodeAt(0) === 0xFEFF + : value[0] === 0xEF && value[1] === 0xBB && value[2] === 0xBF; +} + +/** + * Strips Unicode BOM from the given value. + * @param {string|Uint8Array} value The value to remove the BOM from. + * @returns {string|Uint8Array} The stripped value. + */ +function stripUnicodeBOM(value) { + + if (!hasUnicodeBOM(value)) { + return value; + } + + if (typeof value === "string") { + + /* + * Check Unicode BOM. + * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF. + * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters + */ + return value.slice(1); + } + + /* + * In a Uint8Array, the BOM is represented by three bytes: 0xEF, 0xBB, and 0xBF, + * so we can just remove the first three bytes. + */ + return value.slice(3); +} + +//------------------------------------------------------------------------------ +// Exports +//------------------------------------------------------------------------------ + +/** + * Represents a virtual file inside of ESLint. + * @implements {File} + */ +class VFile { + + /** + * The file path including any processor-created virtual path. + * @type {string} + * @readonly + */ + path; + + /** + * The file path on disk. + * @type {string} + * @readonly + */ + physicalPath; + + /** + * The file contents. + * @type {string|Uint8Array} + * @readonly + */ + body; + + /** + * The raw body of the file, including a BOM if present. + * @type {string|Uint8Array} + * @readonly + */ + rawBody; + + /** + * Indicates whether the file has a byte order mark (BOM). + * @type {boolean} + * @readonly + */ + bom; + + /** + * Creates a new instance. + * @param {string} path The file path. + * @param {string|Uint8Array} body The file contents. + * @param {Object} [options] Additional options. + * @param {string} [options.physicalPath] The file path on disk. + */ + constructor(path, body, { physicalPath } = {}) { + this.path = path; + this.physicalPath = physicalPath ?? path; + this.bom = hasUnicodeBOM(body); + this.body = stripUnicodeBOM(body); + this.rawBody = body; + } +} + +module.exports = { VFile }; diff --git a/node_modules/eslint/lib/options.js b/node_modules/eslint/lib/options.js index 089f3474..d35c9f6d 100644 --- a/node_modules/eslint/lib/options.js +++ b/node_modules/eslint/lib/options.js @@ -30,6 +30,7 @@ const optionator = require("optionator"); * @property {boolean} errorOnUnmatchedPattern Prevent errors when pattern is unmatched * @property {boolean} eslintrc Disable use of configuration from .eslintrc.* * @property {string[]} [ext] Specify JavaScript file extensions + * @property {string[]} [flag] Feature flags * @property {boolean} fix Automatically fix problems * @property {boolean} fixDryRun Automatically fix problems without saving the changes to the file system * @property {("directive" | "problem" | "suggestion" | "layout")[]} [fixType] Specify the types of fixes to apply (directive, problem, suggestion, layout) @@ -38,7 +39,7 @@ const optionator = require("optionator"); * @property {boolean} [help] Show help * @property {boolean} ignore Disable use of ignore files and patterns * @property {string} [ignorePath] Specify path of ignore file - * @property {string[]} [ignorePattern] Pattern of files to ignore (in addition to those in .eslintignore) + * @property {string[]} [ignorePattern] Patterns of files to ignore. In eslintrc mode, these are in addition to `.eslintignore` * @property {boolean} init Run config initialization wizard * @property {boolean} inlineConfig Prevent comments from changing config or rules * @property {number} maxWarnings Number of warnings to trigger nonzero exit code @@ -57,7 +58,10 @@ const optionator = require("optionator"); * @property {boolean} quiet Report errors only * @property {boolean} [version] Output the version number * @property {boolean} warnIgnored Show warnings when the file list includes ignored files + * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause + * the linting operation to short circuit and not report any failures. * @property {string[]} _ Positional filenames or patterns + * @property {boolean} [stats] Report additional statistics */ //------------------------------------------------------------------------------ @@ -101,6 +105,16 @@ module.exports = function(usingFlatConfig) { }; } + let inspectConfigFlag; + + if (usingFlatConfig) { + inspectConfigFlag = { + option: "inspect-config", + type: "Boolean", + description: "Open the config inspector with the current configuration" + }; + } + let extFlag; if (!usingFlatConfig) { @@ -141,6 +155,17 @@ module.exports = function(usingFlatConfig) { }; } + let statsFlag; + + if (usingFlatConfig) { + statsFlag = { + option: "stats", + type: "Boolean", + default: "false", + description: "Add statistics to the lint report" + }; + } + let warnIgnoredFlag; if (usingFlatConfig) { @@ -152,6 +177,16 @@ module.exports = function(usingFlatConfig) { }; } + let flagFlag; + + if (usingFlatConfig) { + flagFlag = { + option: "flag", + type: "[String]", + description: "Enable a feature flag" + }; + } + return optionator({ prepend: "eslint [options] file.js [file.js] [dir]", defaults: { @@ -171,6 +206,7 @@ module.exports = function(usingFlatConfig) { ? "Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs" : "Use this configuration, overriding .eslintrc.* config options if present" }, + inspectConfigFlag, envFlag, extFlag, { @@ -236,7 +272,7 @@ module.exports = function(usingFlatConfig) { { option: "ignore-pattern", type: "[String]", - description: "Pattern of files to ignore (in addition to those in .eslintignore)", + description: `Patterns of files to ignore${usingFlatConfig ? "" : " (in addition to those in .eslintignore)"}`, concatRepeatedArrays: [true, { oneValuePerFlag: true }] @@ -370,6 +406,12 @@ module.exports = function(usingFlatConfig) { description: "Exit with exit code 2 in case of fatal error" }, warnIgnoredFlag, + { + option: "pass-on-no-patterns", + type: "Boolean", + default: false, + description: "Exit with exit code 0 in case no file patterns are passed" + }, { option: "debug", type: "Boolean", @@ -392,7 +434,9 @@ module.exports = function(usingFlatConfig) { option: "print-config", type: "path::String", description: "Print the configuration for the given file" - } + }, + statsFlag, + flagFlag ].filter(value => !!value) }); }; diff --git a/node_modules/eslint/lib/rule-tester/flat-rule-tester.js b/node_modules/eslint/lib/rule-tester/flat-rule-tester.js deleted file mode 100644 index 03a97b07..00000000 --- a/node_modules/eslint/lib/rule-tester/flat-rule-tester.js +++ /dev/null @@ -1,1131 +0,0 @@ -/** - * @fileoverview Mocha/Jest test wrapper - * @author Ilya Volodin - */ -"use strict"; - -/* globals describe, it -- Mocha globals */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const - assert = require("assert"), - util = require("util"), - path = require("path"), - equal = require("fast-deep-equal"), - Traverser = require("../shared/traverser"), - { getRuleOptionsSchema } = require("../config/flat-config-helpers"), - { Linter, SourceCodeFixer, interpolate } = require("../linter"), - CodePath = require("../linter/code-path-analysis/code-path"); - -const { FlatConfigArray } = require("../config/flat-config-array"); -const { defaultConfig } = require("../config/default-config"); - -const ajv = require("../shared/ajv")({ strictDefaults: true }); - -const parserSymbol = Symbol.for("eslint.RuleTester.parser"); -const { SourceCode } = require("../source-code"); -const { ConfigArraySymbol } = require("@humanwhocodes/config-array"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Parser} Parser */ -/** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */ -/** @typedef {import("../shared/types").Rule} Rule */ - - -/** - * A test case that is expected to pass lint. - * @typedef {Object} ValidTestCase - * @property {string} [name] Name for the test case. - * @property {string} code Code for the test case. - * @property {any[]} [options] Options for the test case. - * @property {LanguageOptions} [languageOptions] The language options to use in the test case. - * @property {{ [name: string]: any }} [settings] Settings for the test case. - * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {boolean} [only] Run only this test case or the subset of test cases with this property. - */ - -/** - * A test case that is expected to fail lint. - * @typedef {Object} InvalidTestCase - * @property {string} [name] Name for the test case. - * @property {string} code Code for the test case. - * @property {number | Array} errors Expected errors. - * @property {string | null} [output] The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. - * @property {any[]} [options] Options for the test case. - * @property {{ [name: string]: any }} [settings] Settings for the test case. - * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {LanguageOptions} [languageOptions] The language options to use in the test case. - * @property {boolean} [only] Run only this test case or the subset of test cases with this property. - */ - -/** - * A description of a reported error used in a rule tester test. - * @typedef {Object} TestCaseError - * @property {string | RegExp} [message] Message. - * @property {string} [messageId] Message ID. - * @property {string} [type] The type of the reported AST node. - * @property {{ [name: string]: string }} [data] The data used to fill the message template. - * @property {number} [line] The 1-based line number of the reported start location. - * @property {number} [column] The 1-based column number of the reported start location. - * @property {number} [endLine] The 1-based line number of the reported end location. - * @property {number} [endColumn] The 1-based column number of the reported end location. - */ - -//------------------------------------------------------------------------------ -// Private Members -//------------------------------------------------------------------------------ - -/* - * testerDefaultConfig must not be modified as it allows to reset the tester to - * the initial default configuration - */ -const testerDefaultConfig = { rules: {} }; - -/* - * RuleTester uses this config as its default. This can be overwritten via - * setDefaultConfig(). - */ -let sharedDefaultConfig = { rules: {} }; - -/* - * List every parameters possible on a test case that are not related to eslint - * configuration - */ -const RuleTesterParameters = [ - "name", - "code", - "filename", - "options", - "errors", - "output", - "only" -]; - -/* - * All allowed property names in error objects. - */ -const errorObjectParameters = new Set([ - "message", - "messageId", - "data", - "type", - "line", - "column", - "endLine", - "endColumn", - "suggestions" -]); -const friendlyErrorObjectParameterList = `[${[...errorObjectParameters].map(key => `'${key}'`).join(", ")}]`; - -/* - * All allowed property names in suggestion objects. - */ -const suggestionObjectParameters = new Set([ - "desc", - "messageId", - "data", - "output" -]); -const friendlySuggestionObjectParameterList = `[${[...suggestionObjectParameters].map(key => `'${key}'`).join(", ")}]`; - -const forbiddenMethods = [ - "applyInlineConfig", - "applyLanguageOptions", - "finalize" -]; - -/** @type {Map} */ -const forbiddenMethodCalls = new Map(forbiddenMethods.map(methodName => ([methodName, new WeakSet()]))); - -const hasOwnProperty = Function.call.bind(Object.hasOwnProperty); - -/** - * Clones a given value deeply. - * Note: This ignores `parent` property. - * @param {any} x A value to clone. - * @returns {any} A cloned value. - */ -function cloneDeeplyExcludesParent(x) { - if (typeof x === "object" && x !== null) { - if (Array.isArray(x)) { - return x.map(cloneDeeplyExcludesParent); - } - - const retv = {}; - - for (const key in x) { - if (key !== "parent" && hasOwnProperty(x, key)) { - retv[key] = cloneDeeplyExcludesParent(x[key]); - } - } - - return retv; - } - - return x; -} - -/** - * Freezes a given value deeply. - * @param {any} x A value to freeze. - * @returns {void} - */ -function freezeDeeply(x) { - if (typeof x === "object" && x !== null) { - if (Array.isArray(x)) { - x.forEach(freezeDeeply); - } else { - for (const key in x) { - if (key !== "parent" && hasOwnProperty(x, key)) { - freezeDeeply(x[key]); - } - } - } - Object.freeze(x); - } -} - -/** - * Replace control characters by `\u00xx` form. - * @param {string} text The text to sanitize. - * @returns {string} The sanitized text. - */ -function sanitize(text) { - if (typeof text !== "string") { - return ""; - } - return text.replace( - /[\u0000-\u0009\u000b-\u001a]/gu, // eslint-disable-line no-control-regex -- Escaping controls - c => `\\u${c.codePointAt(0).toString(16).padStart(4, "0")}` - ); -} - -/** - * Define `start`/`end` properties as throwing error. - * @param {string} objName Object name used for error messages. - * @param {ASTNode} node The node to define. - * @returns {void} - */ -function defineStartEndAsError(objName, node) { - Object.defineProperties(node, { - start: { - get() { - throw new Error(`Use ${objName}.range[0] instead of ${objName}.start`); - }, - configurable: true, - enumerable: false - }, - end: { - get() { - throw new Error(`Use ${objName}.range[1] instead of ${objName}.end`); - }, - configurable: true, - enumerable: false - } - }); -} - - -/** - * Define `start`/`end` properties of all nodes of the given AST as throwing error. - * @param {ASTNode} ast The root node to errorize `start`/`end` properties. - * @param {Object} [visitorKeys] Visitor keys to be used for traversing the given ast. - * @returns {void} - */ -function defineStartEndAsErrorInTree(ast, visitorKeys) { - Traverser.traverse(ast, { visitorKeys, enter: defineStartEndAsError.bind(null, "node") }); - ast.tokens.forEach(defineStartEndAsError.bind(null, "token")); - ast.comments.forEach(defineStartEndAsError.bind(null, "token")); -} - -/** - * Wraps the given parser in order to intercept and modify return values from the `parse` and `parseForESLint` methods, for test purposes. - * In particular, to modify ast nodes, tokens and comments to throw on access to their `start` and `end` properties. - * @param {Parser} parser Parser object. - * @returns {Parser} Wrapped parser object. - */ -function wrapParser(parser) { - - if (typeof parser.parseForESLint === "function") { - return { - [parserSymbol]: parser, - parseForESLint(...args) { - const ret = parser.parseForESLint(...args); - - defineStartEndAsErrorInTree(ret.ast, ret.visitorKeys); - return ret; - } - }; - } - - return { - [parserSymbol]: parser, - parse(...args) { - const ast = parser.parse(...args); - - defineStartEndAsErrorInTree(ast); - return ast; - } - }; -} - -/** - * Function to replace `SourceCode.prototype.getComments`. - * @returns {void} - * @throws {Error} Deprecation message. - */ -function getCommentsDeprecation() { - throw new Error( - "`SourceCode#getComments()` is deprecated and will be removed in a future major version. Use `getCommentsBefore()`, `getCommentsAfter()`, and `getCommentsInside()` instead." - ); -} - -/** - * Emit a deprecation warning if rule uses CodePath#currentSegments. - * @param {string} ruleName Name of the rule. - * @returns {void} - */ -function emitCodePathCurrentSegmentsWarning(ruleName) { - if (!emitCodePathCurrentSegmentsWarning[`warned-${ruleName}`]) { - emitCodePathCurrentSegmentsWarning[`warned-${ruleName}`] = true; - process.emitWarning( - `"${ruleName}" rule uses CodePath#currentSegments and will stop working in ESLint v9. Please read the documentation for how to update your code: https://eslint.org/docs/latest/extend/code-path-analysis#usage-examples`, - "DeprecationWarning" - ); - } -} - -/** - * Function to replace forbidden `SourceCode` methods. Allows just one call per method. - * @param {string} methodName The name of the method to forbid. - * @param {Function} prototype The prototype with the original method to call. - * @returns {Function} The function that throws the error. - */ -function throwForbiddenMethodError(methodName, prototype) { - - const original = prototype[methodName]; - - return function(...args) { - - const called = forbiddenMethodCalls.get(methodName); - - /* eslint-disable no-invalid-this -- needed to operate as a method. */ - if (!called.has(this)) { - called.add(this); - - return original.apply(this, args); - } - /* eslint-enable no-invalid-this -- not needed past this point */ - - throw new Error( - `\`SourceCode#${methodName}()\` cannot be called inside a rule.` - ); - }; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -// default separators for testing -const DESCRIBE = Symbol("describe"); -const IT = Symbol("it"); -const IT_ONLY = Symbol("itOnly"); - -/** - * This is `it` default handler if `it` don't exist. - * @this {Mocha} - * @param {string} text The description of the test case. - * @param {Function} method The logic of the test case. - * @throws {Error} Any error upon execution of `method`. - * @returns {any} Returned value of `method`. - */ -function itDefaultHandler(text, method) { - try { - return method.call(this); - } catch (err) { - if (err instanceof assert.AssertionError) { - err.message += ` (${util.inspect(err.actual)} ${err.operator} ${util.inspect(err.expected)})`; - } - throw err; - } -} - -/** - * This is `describe` default handler if `describe` don't exist. - * @this {Mocha} - * @param {string} text The description of the test case. - * @param {Function} method The logic of the test case. - * @returns {any} Returned value of `method`. - */ -function describeDefaultHandler(text, method) { - return method.call(this); -} - -/** - * Mocha test wrapper. - */ -class FlatRuleTester { - - /** - * Creates a new instance of RuleTester. - * @param {Object} [testerConfig] Optional, extra configuration for the tester - */ - constructor(testerConfig = {}) { - - /** - * The configuration to use for this tester. Combination of the tester - * configuration and the default configuration. - * @type {Object} - */ - this.testerConfig = [ - sharedDefaultConfig, - testerConfig, - { rules: { "rule-tester/validate-ast": "error" } } - ]; - - this.linter = new Linter({ configType: "flat" }); - } - - /** - * Set the configuration to use for all future tests - * @param {Object} config the configuration to use. - * @throws {TypeError} If non-object config. - * @returns {void} - */ - static setDefaultConfig(config) { - if (typeof config !== "object" || config === null) { - throw new TypeError("FlatRuleTester.setDefaultConfig: config must be an object"); - } - sharedDefaultConfig = config; - - // Make sure the rules object exists since it is assumed to exist later - sharedDefaultConfig.rules = sharedDefaultConfig.rules || {}; - } - - /** - * Get the current configuration used for all tests - * @returns {Object} the current configuration - */ - static getDefaultConfig() { - return sharedDefaultConfig; - } - - /** - * Reset the configuration to the initial configuration of the tester removing - * any changes made until now. - * @returns {void} - */ - static resetDefaultConfig() { - sharedDefaultConfig = { - rules: { - ...testerDefaultConfig.rules - } - }; - } - - - /* - * If people use `mocha test.js --watch` command, `describe` and `it` function - * instances are different for each execution. So `describe` and `it` should get fresh instance - * always. - */ - static get describe() { - return ( - this[DESCRIBE] || - (typeof describe === "function" ? describe : describeDefaultHandler) - ); - } - - static set describe(value) { - this[DESCRIBE] = value; - } - - static get it() { - return ( - this[IT] || - (typeof it === "function" ? it : itDefaultHandler) - ); - } - - static set it(value) { - this[IT] = value; - } - - /** - * Adds the `only` property to a test to run it in isolation. - * @param {string | ValidTestCase | InvalidTestCase} item A single test to run by itself. - * @returns {ValidTestCase | InvalidTestCase} The test with `only` set. - */ - static only(item) { - if (typeof item === "string") { - return { code: item, only: true }; - } - - return { ...item, only: true }; - } - - static get itOnly() { - if (typeof this[IT_ONLY] === "function") { - return this[IT_ONLY]; - } - if (typeof this[IT] === "function" && typeof this[IT].only === "function") { - return Function.bind.call(this[IT].only, this[IT]); - } - if (typeof it === "function" && typeof it.only === "function") { - return Function.bind.call(it.only, it); - } - - if (typeof this[DESCRIBE] === "function" || typeof this[IT] === "function") { - throw new Error( - "Set `RuleTester.itOnly` to use `only` with a custom test framework.\n" + - "See https://eslint.org/docs/latest/integrate/nodejs-api#customizing-ruletester for more." - ); - } - if (typeof it === "function") { - throw new Error("The current test framework does not support exclusive tests with `only`."); - } - throw new Error("To use `only`, use RuleTester with a test framework that provides `it.only()` like Mocha."); - } - - static set itOnly(value) { - this[IT_ONLY] = value; - } - - - /** - * Adds a new rule test to execute. - * @param {string} ruleName The name of the rule to run. - * @param {Function | Rule} rule The rule to test. - * @param {{ - * valid: (ValidTestCase | string)[], - * invalid: InvalidTestCase[] - * }} test The collection of tests to run. - * @throws {TypeError|Error} If non-object `test`, or if a required - * scenario of the given type is missing. - * @returns {void} - */ - run(ruleName, rule, test) { - - const testerConfig = this.testerConfig, - requiredScenarios = ["valid", "invalid"], - scenarioErrors = [], - linter = this.linter, - ruleId = `rule-to-test/${ruleName}`; - - if (!test || typeof test !== "object") { - throw new TypeError(`Test Scenarios for rule ${ruleName} : Could not find test scenario object`); - } - - requiredScenarios.forEach(scenarioType => { - if (!test[scenarioType]) { - scenarioErrors.push(`Could not find any ${scenarioType} test scenarios`); - } - }); - - if (scenarioErrors.length > 0) { - throw new Error([ - `Test Scenarios for rule ${ruleName} is invalid:` - ].concat(scenarioErrors).join("\n")); - } - - const baseConfig = [ - { files: ["**"] }, // Make sure the default config matches for all files - { - plugins: { - - // copy root plugin over - "@": { - - /* - * Parsers are wrapped to detect more errors, so this needs - * to be a new object for each call to run(), otherwise the - * parsers will be wrapped multiple times. - */ - parsers: { - ...defaultConfig[0].plugins["@"].parsers - }, - - /* - * The rules key on the default plugin is a proxy to lazy-load - * just the rules that are needed. So, don't create a new object - * here, just use the default one to keep that performance - * enhancement. - */ - rules: defaultConfig[0].plugins["@"].rules - }, - "rule-to-test": { - rules: { - [ruleName]: Object.assign({}, rule, { - - // Create a wrapper rule that freezes the `context` properties. - create(context) { - freezeDeeply(context.options); - freezeDeeply(context.settings); - freezeDeeply(context.parserOptions); - - // freezeDeeply(context.languageOptions); - - return (typeof rule === "function" ? rule : rule.create)(context); - } - }) - } - } - }, - languageOptions: { - ...defaultConfig[0].languageOptions - } - }, - ...defaultConfig.slice(1) - ]; - - /** - * Run the rule for the given item - * @param {string|Object} item Item to run the rule against - * @throws {Error} If an invalid schema. - * @returns {Object} Eslint run result - * @private - */ - function runRuleForItem(item) { - const flatConfigArrayOptions = { - baseConfig - }; - - if (item.filename) { - flatConfigArrayOptions.basePath = path.parse(item.filename).root; - } - - const configs = new FlatConfigArray(testerConfig, flatConfigArrayOptions); - - /* - * Modify the returned config so that the parser is wrapped to catch - * access of the start/end properties. This method is called just - * once per code snippet being tested, so each test case gets a clean - * parser. - */ - configs[ConfigArraySymbol.finalizeConfig] = function(...args) { - - // can't do super here :( - const proto = Object.getPrototypeOf(this); - const calculatedConfig = proto[ConfigArraySymbol.finalizeConfig].apply(this, args); - - // wrap the parser to catch start/end property access - calculatedConfig.languageOptions.parser = wrapParser(calculatedConfig.languageOptions.parser); - return calculatedConfig; - }; - - let code, filename, output, beforeAST, afterAST; - - if (typeof item === "string") { - code = item; - } else { - code = item.code; - - /* - * Assumes everything on the item is a config except for the - * parameters used by this tester - */ - const itemConfig = { ...item }; - - for (const parameter of RuleTesterParameters) { - delete itemConfig[parameter]; - } - - // wrap any parsers - if (itemConfig.languageOptions && itemConfig.languageOptions.parser) { - - const parser = itemConfig.languageOptions.parser; - - if (parser && typeof parser !== "object") { - throw new Error("Parser must be an object with a parse() or parseForESLint() method."); - } - - } - - /* - * Create the config object from the tester config and this item - * specific configurations. - */ - configs.push(itemConfig); - } - - if (item.filename) { - filename = item.filename; - } - - let ruleConfig = 1; - - if (hasOwnProperty(item, "options")) { - assert(Array.isArray(item.options), "options must be an array"); - ruleConfig = [1, ...item.options]; - } - - configs.push({ - rules: { - [ruleId]: ruleConfig - } - }); - - const schema = getRuleOptionsSchema(rule); - - /* - * Setup AST getters. - * The goal is to check whether or not AST was modified when - * running the rule under test. - */ - configs.push({ - plugins: { - "rule-tester": { - rules: { - "validate-ast": { - create() { - return { - Program(node) { - beforeAST = cloneDeeplyExcludesParent(node); - }, - "Program:exit"(node) { - afterAST = node; - } - }; - } - } - } - } - } - }); - - if (schema) { - ajv.validateSchema(schema); - - if (ajv.errors) { - const errors = ajv.errors.map(error => { - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `\t${field}: ${error.message}`; - }).join("\n"); - - throw new Error([`Schema for rule ${ruleName} is invalid:`, errors]); - } - - /* - * `ajv.validateSchema` checks for errors in the structure of the schema (by comparing the schema against a "meta-schema"), - * and it reports those errors individually. However, there are other types of schema errors that only occur when compiling - * the schema (e.g. using invalid defaults in a schema), and only one of these errors can be reported at a time. As a result, - * the schema is compiled here separately from checking for `validateSchema` errors. - */ - try { - ajv.compile(schema); - } catch (err) { - throw new Error(`Schema for rule ${ruleName} is invalid: ${err.message}`); - } - } - - // check for validation errors - try { - configs.normalizeSync(); - configs.getConfig("test.js"); - } catch (error) { - error.message = `ESLint configuration in rule-tester is invalid: ${error.message}`; - throw error; - } - - // Verify the code. - const { getComments, applyLanguageOptions, applyInlineConfig, finalize } = SourceCode.prototype; - const originalCurrentSegments = Object.getOwnPropertyDescriptor(CodePath.prototype, "currentSegments"); - let messages; - - try { - SourceCode.prototype.getComments = getCommentsDeprecation; - Object.defineProperty(CodePath.prototype, "currentSegments", { - get() { - emitCodePathCurrentSegmentsWarning(ruleName); - return originalCurrentSegments.get.call(this); - } - }); - - forbiddenMethods.forEach(methodName => { - SourceCode.prototype[methodName] = throwForbiddenMethodError(methodName, SourceCode.prototype); - }); - - messages = linter.verify(code, configs, filename); - } finally { - SourceCode.prototype.getComments = getComments; - Object.defineProperty(CodePath.prototype, "currentSegments", originalCurrentSegments); - SourceCode.prototype.applyInlineConfig = applyInlineConfig; - SourceCode.prototype.applyLanguageOptions = applyLanguageOptions; - SourceCode.prototype.finalize = finalize; - } - - - const fatalErrorMessage = messages.find(m => m.fatal); - - assert(!fatalErrorMessage, `A fatal parsing error occurred: ${fatalErrorMessage && fatalErrorMessage.message}`); - - // Verify if autofix makes a syntax error or not. - if (messages.some(m => m.fix)) { - output = SourceCodeFixer.applyFixes(code, messages).output; - const errorMessageInFix = linter.verify(output, configs, filename).find(m => m.fatal); - - assert(!errorMessageInFix, [ - "A fatal parsing error occurred in autofix.", - `Error: ${errorMessageInFix && errorMessageInFix.message}`, - "Autofix output:", - output - ].join("\n")); - } else { - output = code; - } - - return { - messages, - output, - beforeAST, - afterAST: cloneDeeplyExcludesParent(afterAST) - }; - } - - /** - * Check if the AST was changed - * @param {ASTNode} beforeAST AST node before running - * @param {ASTNode} afterAST AST node after running - * @returns {void} - * @private - */ - function assertASTDidntChange(beforeAST, afterAST) { - if (!equal(beforeAST, afterAST)) { - assert.fail("Rule should not modify AST."); - } - } - - /** - * Check if the template is valid or not - * all valid cases go through this - * @param {string|Object} item Item to run the rule against - * @returns {void} - * @private - */ - function testValidTemplate(item) { - const code = typeof item === "object" ? item.code : item; - - assert.ok(typeof code === "string", "Test case must specify a string value for 'code'"); - if (item.name) { - assert.ok(typeof item.name === "string", "Optional test case property 'name' must be a string"); - } - - const result = runRuleForItem(item); - const messages = result.messages; - - assert.strictEqual(messages.length, 0, util.format("Should have no errors but had %d: %s", - messages.length, - util.inspect(messages))); - - assertASTDidntChange(result.beforeAST, result.afterAST); - } - - /** - * Asserts that the message matches its expected value. If the expected - * value is a regular expression, it is checked against the actual - * value. - * @param {string} actual Actual value - * @param {string|RegExp} expected Expected value - * @returns {void} - * @private - */ - function assertMessageMatches(actual, expected) { - if (expected instanceof RegExp) { - - // assert.js doesn't have a built-in RegExp match function - assert.ok( - expected.test(actual), - `Expected '${actual}' to match ${expected}` - ); - } else { - assert.strictEqual(actual, expected); - } - } - - /** - * Check if the template is invalid or not - * all invalid cases go through this. - * @param {string|Object} item Item to run the rule against - * @returns {void} - * @private - */ - function testInvalidTemplate(item) { - assert.ok(typeof item.code === "string", "Test case must specify a string value for 'code'"); - if (item.name) { - assert.ok(typeof item.name === "string", "Optional test case property 'name' must be a string"); - } - assert.ok(item.errors || item.errors === 0, - `Did not specify errors for an invalid test of ${ruleName}`); - - if (Array.isArray(item.errors) && item.errors.length === 0) { - assert.fail("Invalid cases must have at least one error"); - } - - const ruleHasMetaMessages = hasOwnProperty(rule, "meta") && hasOwnProperty(rule.meta, "messages"); - const friendlyIDList = ruleHasMetaMessages ? `[${Object.keys(rule.meta.messages).map(key => `'${key}'`).join(", ")}]` : null; - - const result = runRuleForItem(item); - const messages = result.messages; - - if (typeof item.errors === "number") { - - if (item.errors === 0) { - assert.fail("Invalid cases must have 'error' value greater than 0"); - } - - assert.strictEqual(messages.length, item.errors, util.format("Should have %d error%s but had %d: %s", - item.errors, - item.errors === 1 ? "" : "s", - messages.length, - util.inspect(messages))); - } else { - assert.strictEqual( - messages.length, item.errors.length, util.format( - "Should have %d error%s but had %d: %s", - item.errors.length, - item.errors.length === 1 ? "" : "s", - messages.length, - util.inspect(messages) - ) - ); - - const hasMessageOfThisRule = messages.some(m => m.ruleId === ruleId); - - for (let i = 0, l = item.errors.length; i < l; i++) { - const error = item.errors[i]; - const message = messages[i]; - - assert(hasMessageOfThisRule, "Error rule name should be the same as the name of the rule being tested"); - - if (typeof error === "string" || error instanceof RegExp) { - - // Just an error message. - assertMessageMatches(message.message, error); - } else if (typeof error === "object" && error !== null) { - - /* - * Error object. - * This may have a message, messageId, data, node type, line, and/or - * column. - */ - - Object.keys(error).forEach(propertyName => { - assert.ok( - errorObjectParameters.has(propertyName), - `Invalid error property name '${propertyName}'. Expected one of ${friendlyErrorObjectParameterList}.` - ); - }); - - if (hasOwnProperty(error, "message")) { - assert.ok(!hasOwnProperty(error, "messageId"), "Error should not specify both 'message' and a 'messageId'."); - assert.ok(!hasOwnProperty(error, "data"), "Error should not specify both 'data' and 'message'."); - assertMessageMatches(message.message, error.message); - } else if (hasOwnProperty(error, "messageId")) { - assert.ok( - ruleHasMetaMessages, - "Error can not use 'messageId' if rule under test doesn't define 'meta.messages'." - ); - if (!hasOwnProperty(rule.meta.messages, error.messageId)) { - assert(false, `Invalid messageId '${error.messageId}'. Expected one of ${friendlyIDList}.`); - } - assert.strictEqual( - message.messageId, - error.messageId, - `messageId '${message.messageId}' does not match expected messageId '${error.messageId}'.` - ); - if (hasOwnProperty(error, "data")) { - - /* - * if data was provided, then directly compare the returned message to a synthetic - * interpolated message using the same message ID and data provided in the test. - * See https://github.com/eslint/eslint/issues/9890 for context. - */ - const unformattedOriginalMessage = rule.meta.messages[error.messageId]; - const rehydratedMessage = interpolate(unformattedOriginalMessage, error.data); - - assert.strictEqual( - message.message, - rehydratedMessage, - `Hydrated message "${rehydratedMessage}" does not match "${message.message}"` - ); - } - } - - assert.ok( - hasOwnProperty(error, "data") ? hasOwnProperty(error, "messageId") : true, - "Error must specify 'messageId' if 'data' is used." - ); - - if (error.type) { - assert.strictEqual(message.nodeType, error.type, `Error type should be ${error.type}, found ${message.nodeType}`); - } - - if (hasOwnProperty(error, "line")) { - assert.strictEqual(message.line, error.line, `Error line should be ${error.line}`); - } - - if (hasOwnProperty(error, "column")) { - assert.strictEqual(message.column, error.column, `Error column should be ${error.column}`); - } - - if (hasOwnProperty(error, "endLine")) { - assert.strictEqual(message.endLine, error.endLine, `Error endLine should be ${error.endLine}`); - } - - if (hasOwnProperty(error, "endColumn")) { - assert.strictEqual(message.endColumn, error.endColumn, `Error endColumn should be ${error.endColumn}`); - } - - if (hasOwnProperty(error, "suggestions")) { - - // Support asserting there are no suggestions - if (!error.suggestions || (Array.isArray(error.suggestions) && error.suggestions.length === 0)) { - if (Array.isArray(message.suggestions) && message.suggestions.length > 0) { - assert.fail(`Error should have no suggestions on error with message: "${message.message}"`); - } - } else { - assert.strictEqual(Array.isArray(message.suggestions), true, `Error should have an array of suggestions. Instead received "${message.suggestions}" on error with message: "${message.message}"`); - assert.strictEqual(message.suggestions.length, error.suggestions.length, `Error should have ${error.suggestions.length} suggestions. Instead found ${message.suggestions.length} suggestions`); - - error.suggestions.forEach((expectedSuggestion, index) => { - assert.ok( - typeof expectedSuggestion === "object" && expectedSuggestion !== null, - "Test suggestion in 'suggestions' array must be an object." - ); - Object.keys(expectedSuggestion).forEach(propertyName => { - assert.ok( - suggestionObjectParameters.has(propertyName), - `Invalid suggestion property name '${propertyName}'. Expected one of ${friendlySuggestionObjectParameterList}.` - ); - }); - - const actualSuggestion = message.suggestions[index]; - const suggestionPrefix = `Error Suggestion at index ${index} :`; - - if (hasOwnProperty(expectedSuggestion, "desc")) { - assert.ok( - !hasOwnProperty(expectedSuggestion, "data"), - `${suggestionPrefix} Test should not specify both 'desc' and 'data'.` - ); - assert.strictEqual( - actualSuggestion.desc, - expectedSuggestion.desc, - `${suggestionPrefix} desc should be "${expectedSuggestion.desc}" but got "${actualSuggestion.desc}" instead.` - ); - } - - if (hasOwnProperty(expectedSuggestion, "messageId")) { - assert.ok( - ruleHasMetaMessages, - `${suggestionPrefix} Test can not use 'messageId' if rule under test doesn't define 'meta.messages'.` - ); - assert.ok( - hasOwnProperty(rule.meta.messages, expectedSuggestion.messageId), - `${suggestionPrefix} Test has invalid messageId '${expectedSuggestion.messageId}', the rule under test allows only one of ${friendlyIDList}.` - ); - assert.strictEqual( - actualSuggestion.messageId, - expectedSuggestion.messageId, - `${suggestionPrefix} messageId should be '${expectedSuggestion.messageId}' but got '${actualSuggestion.messageId}' instead.` - ); - if (hasOwnProperty(expectedSuggestion, "data")) { - const unformattedMetaMessage = rule.meta.messages[expectedSuggestion.messageId]; - const rehydratedDesc = interpolate(unformattedMetaMessage, expectedSuggestion.data); - - assert.strictEqual( - actualSuggestion.desc, - rehydratedDesc, - `${suggestionPrefix} Hydrated test desc "${rehydratedDesc}" does not match received desc "${actualSuggestion.desc}".` - ); - } - } else { - assert.ok( - !hasOwnProperty(expectedSuggestion, "data"), - `${suggestionPrefix} Test must specify 'messageId' if 'data' is used.` - ); - } - - if (hasOwnProperty(expectedSuggestion, "output")) { - const codeWithAppliedSuggestion = SourceCodeFixer.applyFixes(item.code, [actualSuggestion]).output; - - assert.strictEqual(codeWithAppliedSuggestion, expectedSuggestion.output, `Expected the applied suggestion fix to match the test suggestion output for suggestion at index: ${index} on error with message: "${message.message}"`); - } - }); - } - } - } else { - - // Message was an unexpected type - assert.fail(`Error should be a string, object, or RegExp, but found (${util.inspect(message)})`); - } - } - } - - if (hasOwnProperty(item, "output")) { - if (item.output === null) { - assert.strictEqual( - result.output, - item.code, - "Expected no autofixes to be suggested" - ); - } else { - assert.strictEqual(result.output, item.output, "Output is incorrect."); - } - } else { - assert.strictEqual( - result.output, - item.code, - "The rule fixed the code. Please add 'output' property." - ); - } - - assertASTDidntChange(result.beforeAST, result.afterAST); - } - - /* - * This creates a mocha test suite and pipes all supplied info through - * one of the templates above. - * The test suites for valid/invalid are created conditionally as - * test runners (eg. vitest) fail for empty test suites. - */ - this.constructor.describe(ruleName, () => { - if (test.valid.length > 0) { - this.constructor.describe("valid", () => { - test.valid.forEach(valid => { - this.constructor[valid.only ? "itOnly" : "it"]( - sanitize(typeof valid === "object" ? valid.name || valid.code : valid), - () => { - testValidTemplate(valid); - } - ); - }); - }); - } - - if (test.invalid.length > 0) { - this.constructor.describe("invalid", () => { - test.invalid.forEach(invalid => { - this.constructor[invalid.only ? "itOnly" : "it"]( - sanitize(invalid.name || invalid.code), - () => { - testInvalidTemplate(invalid); - } - ); - }); - }); - } - }); - } -} - -FlatRuleTester[DESCRIBE] = FlatRuleTester[IT] = FlatRuleTester[IT_ONLY] = null; - -module.exports = FlatRuleTester; diff --git a/node_modules/eslint/lib/rule-tester/index.js b/node_modules/eslint/lib/rule-tester/index.js index f52d1402..58f67ee4 100644 --- a/node_modules/eslint/lib/rule-tester/index.js +++ b/node_modules/eslint/lib/rule-tester/index.js @@ -1,5 +1,7 @@ "use strict"; +const RuleTester = require("./rule-tester"); + module.exports = { - RuleTester: require("./rule-tester") + RuleTester }; diff --git a/node_modules/eslint/lib/rule-tester/rule-tester.js b/node_modules/eslint/lib/rule-tester/rule-tester.js index 3bc80ab1..4ffcfed5 100644 --- a/node_modules/eslint/lib/rule-tester/rule-tester.js +++ b/node_modules/eslint/lib/rule-tester/rule-tester.js @@ -1,68 +1,44 @@ /** - * @fileoverview Mocha test wrapper + * @fileoverview Mocha/Jest test wrapper * @author Ilya Volodin */ "use strict"; /* globals describe, it -- Mocha globals */ -/* - * This is a wrapper around mocha to allow for DRY unittests for eslint - * Format: - * RuleTester.run("{ruleName}", { - * valid: [ - * "{code}", - * { code: "{code}", options: {options}, globals: {globals}, parser: "{parser}", settings: {settings} } - * ], - * invalid: [ - * { code: "{code}", errors: {numErrors} }, - * { code: "{code}", errors: ["{errorMessage}"] }, - * { code: "{code}", options: {options}, globals: {globals}, parser: "{parser}", settings: {settings}, errors: [{ message: "{errorMessage}", type: "{errorNodeType}"}] } - * ] - * }); - * - * Variables: - * {code} - String that represents the code to be tested - * {options} - Arguments that are passed to the configurable rules. - * {globals} - An object representing a list of variables that are - * registered as globals - * {parser} - String representing the parser to use - * {settings} - An object representing global settings for all rules - * {numErrors} - If failing case doesn't need to check error message, - * this integer will specify how many errors should be - * received - * {errorMessage} - Message that is returned by the rule on failure - * {errorNodeType} - AST node type that is returned by they rule as - * a cause of the failure. - */ - //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const - assert = require("assert"), - path = require("path"), - util = require("util"), - merge = require("lodash.merge"), + assert = require("node:assert"), + util = require("node:util"), + path = require("node:path"), equal = require("fast-deep-equal"), - Traverser = require("../../lib/shared/traverser"), - { getRuleOptionsSchema, validate } = require("../shared/config-validator"), - { Linter, SourceCodeFixer, interpolate } = require("../linter"), - CodePath = require("../linter/code-path-analysis/code-path"); + Traverser = require("../shared/traverser"), + { getRuleOptionsSchema } = require("../config/flat-config-helpers"), + { Linter, SourceCodeFixer } = require("../linter"), + { interpolate, getPlaceholderMatcher } = require("../linter/interpolate"), + stringify = require("json-stable-stringify-without-jsonify"); + +const { FlatConfigArray } = require("../config/flat-config-array"); +const { defaultConfig } = require("../config/default-config"); const ajv = require("../shared/ajv")({ strictDefaults: true }); -const espreePath = require.resolve("espree"); const parserSymbol = Symbol.for("eslint.RuleTester.parser"); +const { ConfigArraySymbol } = require("@eslint/config-array"); +const { isSerializable } = require("../shared/serialization"); -const { SourceCode } = require("../source-code"); +const jslang = require("../languages/js"); +const { SourceCode } = require("../languages/js/source-code"); //------------------------------------------------------------------------------ // Typedefs //------------------------------------------------------------------------------ /** @typedef {import("../shared/types").Parser} Parser */ +/** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */ /** @typedef {import("../shared/types").Rule} Rule */ @@ -72,12 +48,11 @@ const { SourceCode } = require("../source-code"); * @property {string} [name] Name for the test case. * @property {string} code Code for the test case. * @property {any[]} [options] Options for the test case. + * @property {Function} [before] Function to execute before testing the case. + * @property {Function} [after] Function to execute after testing the case regardless of its result. + * @property {LanguageOptions} [languageOptions] The language options to use in the test case. * @property {{ [name: string]: any }} [settings] Settings for the test case. * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {string} [parser] The absolute path for the parser. - * @property {{ [name: string]: any }} [parserOptions] Options for the parser. - * @property {{ [name: string]: "readonly" | "writable" | "off" }} [globals] The additional global variables. - * @property {{ [name: string]: boolean }} [env] Environments for the test case. * @property {boolean} [only] Run only this test case or the subset of test cases with this property. */ @@ -89,12 +64,11 @@ const { SourceCode } = require("../source-code"); * @property {number | Array} errors Expected errors. * @property {string | null} [output] The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. * @property {any[]} [options] Options for the test case. + * @property {Function} [before] Function to execute before testing the case. + * @property {Function} [after] Function to execute after testing the case regardless of its result. * @property {{ [name: string]: any }} [settings] Settings for the test case. * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {string} [parser] The absolute path for the parser. - * @property {{ [name: string]: any }} [parserOptions] Options for the parser. - * @property {{ [name: string]: "readonly" | "writable" | "off" }} [globals] The additional global variables. - * @property {{ [name: string]: boolean }} [env] Environments for the test case. + * @property {LanguageOptions} [languageOptions] The language options to use in the test case. * @property {boolean} [only] Run only this test case or the subset of test cases with this property. */ @@ -120,7 +94,12 @@ const { SourceCode } = require("../source-code"); * the initial default configuration */ const testerDefaultConfig = { rules: {} }; -let defaultConfig = { rules: {} }; + +/* + * RuleTester uses this config as its default. This can be overwritten via + * setDefaultConfig(). + */ +let sharedDefaultConfig = { rules: {} }; /* * List every parameters possible on a test case that are not related to eslint @@ -131,6 +110,8 @@ const RuleTesterParameters = [ "code", "filename", "options", + "before", + "after", "errors", "output", "only" @@ -163,42 +144,25 @@ const suggestionObjectParameters = new Set([ ]); const friendlySuggestionObjectParameterList = `[${[...suggestionObjectParameters].map(key => `'${key}'`).join(", ")}]`; +/* + * Ignored test case properties when checking for test case duplicates. + */ +const duplicationIgnoredParameters = new Set([ + "name", + "errors", + "output" +]); + const forbiddenMethods = [ "applyInlineConfig", "applyLanguageOptions", "finalize" ]; -const hasOwnProperty = Function.call.bind(Object.hasOwnProperty); +/** @type {Map} */ +const forbiddenMethodCalls = new Map(forbiddenMethods.map(methodName => ([methodName, new WeakSet()]))); -const DEPRECATED_SOURCECODE_PASSTHROUGHS = { - getSource: "getText", - getSourceLines: "getLines", - getAllComments: "getAllComments", - getNodeByRangeIndex: "getNodeByRangeIndex", - - // getComments: "getComments", -- already handled by a separate error - getCommentsBefore: "getCommentsBefore", - getCommentsAfter: "getCommentsAfter", - getCommentsInside: "getCommentsInside", - getJSDocComment: "getJSDocComment", - getFirstToken: "getFirstToken", - getFirstTokens: "getFirstTokens", - getLastToken: "getLastToken", - getLastTokens: "getLastTokens", - getTokenAfter: "getTokenAfter", - getTokenBefore: "getTokenBefore", - getTokenByRangeStart: "getTokenByRangeStart", - getTokens: "getTokens", - getTokensAfter: "getTokensAfter", - getTokensBefore: "getTokensBefore", - getTokensBetween: "getTokensBetween", - - getScope: "getScope", - getAncestors: "getAncestors", - getDeclaredVariables: "getDeclaredVariables", - markVariableAsUsed: "markVariableAsUsed" -}; +const hasOwnProperty = Function.call.bind(Object.hasOwnProperty); /** * Clones a given value deeply. @@ -331,23 +295,27 @@ function wrapParser(parser) { } /** - * Function to replace `SourceCode.prototype.getComments`. - * @returns {void} - * @throws {Error} Deprecation message. - */ -function getCommentsDeprecation() { - throw new Error( - "`SourceCode#getComments()` is deprecated and will be removed in a future major version. Use `getCommentsBefore()`, `getCommentsAfter()`, and `getCommentsInside()` instead." - ); -} - -/** - * Function to replace forbidden `SourceCode` methods. + * Function to replace forbidden `SourceCode` methods. Allows just one call per method. * @param {string} methodName The name of the method to forbid. + * @param {Function} prototype The prototype with the original method to call. * @returns {Function} The function that throws the error. */ -function throwForbiddenMethodError(methodName) { - return () => { +function throwForbiddenMethodError(methodName, prototype) { + + const original = prototype[methodName]; + + return function(...args) { + + const called = forbiddenMethodCalls.get(methodName); + + /* eslint-disable no-invalid-this -- needed to operate as a method. */ + if (!called.has(this)) { + called.add(this); + + return original.apply(this, args); + } + /* eslint-enable no-invalid-this -- not needed past this point */ + throw new Error( `\`SourceCode#${methodName}()\` cannot be called inside a rule.` ); @@ -355,81 +323,45 @@ function throwForbiddenMethodError(methodName) { } /** - * Emit a deprecation warning if function-style format is being used. - * @param {string} ruleName Name of the rule. - * @returns {void} + * Extracts names of {{ placeholders }} from the reported message. + * @param {string} message Reported message + * @returns {string[]} Array of placeholder names */ -function emitLegacyRuleAPIWarning(ruleName) { - if (!emitLegacyRuleAPIWarning[`warned-${ruleName}`]) { - emitLegacyRuleAPIWarning[`warned-${ruleName}`] = true; - process.emitWarning( - `"${ruleName}" rule is using the deprecated function-style format and will stop working in ESLint v9. Please use object-style format: https://eslint.org/docs/latest/extend/custom-rules`, - "DeprecationWarning" - ); - } -} +function getMessagePlaceholders(message) { + const matcher = getPlaceholderMatcher(); -/** - * Emit a deprecation warning if rule has options but is missing the "meta.schema" property - * @param {string} ruleName Name of the rule. - * @returns {void} - */ -function emitMissingSchemaWarning(ruleName) { - if (!emitMissingSchemaWarning[`warned-${ruleName}`]) { - emitMissingSchemaWarning[`warned-${ruleName}`] = true; - process.emitWarning( - `"${ruleName}" rule has options but is missing the "meta.schema" property and will stop working in ESLint v9. Please add a schema: https://eslint.org/docs/latest/extend/custom-rules#options-schemas`, - "DeprecationWarning" - ); - } + return Array.from(message.matchAll(matcher), ([, name]) => name.trim()); } /** - * Emit a deprecation warning if a rule uses a deprecated `context` method. - * @param {string} ruleName Name of the rule. - * @param {string} methodName The name of the method on `context` that was used. - * @returns {void} + * Returns the placeholders in the reported messages but + * only includes the placeholders available in the raw message and not in the provided data. + * @param {string} message The reported message + * @param {string} raw The raw message specified in the rule meta.messages + * @param {undefined|Record} data The passed + * @returns {string[]} Missing placeholder names */ -function emitDeprecatedContextMethodWarning(ruleName, methodName) { - if (!emitDeprecatedContextMethodWarning[`warned-${ruleName}-${methodName}`]) { - emitDeprecatedContextMethodWarning[`warned-${ruleName}-${methodName}`] = true; - process.emitWarning( - `"${ruleName}" rule is using \`context.${methodName}()\`, which is deprecated and will be removed in ESLint v9. Please use \`sourceCode.${DEPRECATED_SOURCECODE_PASSTHROUGHS[methodName]}()\` instead.`, - "DeprecationWarning" - ); - } -} +function getUnsubstitutedMessagePlaceholders(message, raw, data = {}) { + const unsubstituted = getMessagePlaceholders(message); -/** - * Emit a deprecation warning if rule uses CodePath#currentSegments. - * @param {string} ruleName Name of the rule. - * @returns {void} - */ -function emitCodePathCurrentSegmentsWarning(ruleName) { - if (!emitCodePathCurrentSegmentsWarning[`warned-${ruleName}`]) { - emitCodePathCurrentSegmentsWarning[`warned-${ruleName}`] = true; - process.emitWarning( - `"${ruleName}" rule uses CodePath#currentSegments and will stop working in ESLint v9. Please read the documentation for how to update your code: https://eslint.org/docs/latest/extend/code-path-analysis#usage-examples`, - "DeprecationWarning" - ); + if (unsubstituted.length === 0) { + return []; } -} -/** - * Emit a deprecation warning if `context.parserServices` is used. - * @param {string} ruleName Name of the rule. - * @returns {void} - */ -function emitParserServicesWarning(ruleName) { - if (!emitParserServicesWarning[`warned-${ruleName}`]) { - emitParserServicesWarning[`warned-${ruleName}`] = true; - process.emitWarning( - `"${ruleName}" rule is using \`context.parserServices\`, which is deprecated and will be removed in ESLint v9. Please use \`sourceCode.parserServices\` instead.`, - "DeprecationWarning" - ); - } + // Remove false positives by only counting placeholders in the raw message, which were not provided in the data matcher or added with a data property + const known = getMessagePlaceholders(raw); + const provided = Object.keys(data); + + return unsubstituted.filter(name => known.includes(name) && !provided.includes(name)); } +const metaSchemaDescription = ` +\t- If the rule has options, set \`meta.schema\` to an array or non-empty object to enable options validation. +\t- If the rule doesn't have options, omit \`meta.schema\` to enforce that no options can be passed to the rule. +\t- You can also set \`meta.schema\` to \`false\` to opt-out of options validation (not recommended). + +\thttps://eslint.org/docs/latest/extend/custom-rules#options-schemas +`; //------------------------------------------------------------------------------ // Public Interface @@ -479,26 +411,20 @@ class RuleTester { * Creates a new instance of RuleTester. * @param {Object} [testerConfig] Optional, extra configuration for the tester */ - constructor(testerConfig) { + constructor(testerConfig = {}) { /** * The configuration to use for this tester. Combination of the tester * configuration and the default configuration. * @type {Object} */ - this.testerConfig = merge( - {}, - defaultConfig, + this.testerConfig = [ + sharedDefaultConfig, testerConfig, { rules: { "rule-tester/validate-ast": "error" } } - ); + ]; - /** - * Rule definitions to define before tests. - * @type {Object} - */ - this.rules = {}; - this.linter = new Linter(); + this.linter = new Linter({ configType: "flat" }); } /** @@ -511,10 +437,10 @@ class RuleTester { if (typeof config !== "object" || config === null) { throw new TypeError("RuleTester.setDefaultConfig: config must be an object"); } - defaultConfig = config; + sharedDefaultConfig = config; // Make sure the rules object exists since it is assumed to exist later - defaultConfig.rules = defaultConfig.rules || {}; + sharedDefaultConfig.rules = sharedDefaultConfig.rules || {}; } /** @@ -522,7 +448,7 @@ class RuleTester { * @returns {Object} the current configuration */ static getDefaultConfig() { - return defaultConfig; + return sharedDefaultConfig; } /** @@ -531,7 +457,11 @@ class RuleTester { * @returns {void} */ static resetDefaultConfig() { - defaultConfig = merge({}, testerDefaultConfig); + sharedDefaultConfig = { + rules: { + ...testerDefaultConfig.rules + } + }; } @@ -602,29 +532,17 @@ class RuleTester { this[IT_ONLY] = value; } - /** - * Define a rule for one particular run of tests. - * @param {string} name The name of the rule to define. - * @param {Function | Rule} rule The rule definition. - * @returns {void} - */ - defineRule(name, rule) { - if (typeof rule === "function") { - emitLegacyRuleAPIWarning(name); - } - this.rules[name] = rule; - } /** * Adds a new rule test to execute. * @param {string} ruleName The name of the rule to run. - * @param {Function | Rule} rule The rule to test. + * @param {Rule} rule The rule to test. * @param {{ * valid: (ValidTestCase | string)[], * invalid: InvalidTestCase[] * }} test The collection of tests to run. - * @throws {TypeError|Error} If non-object `test`, or if a required - * scenario of the given type is missing. + * @throws {TypeError|Error} If `rule` is not an object with a `create` method, + * or if non-object `test`, or if a required scenario of the given type is missing. * @returns {void} */ run(ruleName, rule, test) { @@ -632,7 +550,15 @@ class RuleTester { const testerConfig = this.testerConfig, requiredScenarios = ["valid", "invalid"], scenarioErrors = [], - linter = this.linter; + linter = this.linter, + ruleId = `rule-to-test/${ruleName}`; + + const seenValidTestCases = new Set(); + const seenInvalidTestCases = new Set(); + + if (!rule || typeof rule !== "object" || typeof rule.create !== "function") { + throw new TypeError("Rule must be an object with a `create` method"); + } if (!test || typeof test !== "object") { throw new TypeError(`Test Scenarios for rule ${ruleName} : Could not find test scenario object`); @@ -650,54 +576,69 @@ class RuleTester { ].concat(scenarioErrors).join("\n")); } - if (typeof rule === "function") { - emitLegacyRuleAPIWarning(ruleName); - } + const baseConfig = [ + { files: ["**"] }, // Make sure the default config matches for all files + { + plugins: { - linter.defineRule(ruleName, Object.assign({}, rule, { - - // Create a wrapper rule that freezes the `context` properties. - create(context) { - freezeDeeply(context.options); - freezeDeeply(context.settings); - freezeDeeply(context.parserOptions); - - // wrap all deprecated methods - const newContext = Object.create( - context, - Object.fromEntries(Object.keys(DEPRECATED_SOURCECODE_PASSTHROUGHS).map(methodName => [ - methodName, - { - value(...args) { - - // emit deprecation warning - emitDeprecatedContextMethodWarning(ruleName, methodName); - - // call the original method - return context[methodName].call(this, ...args); - }, - enumerable: true - } - ])) - ); + // copy root plugin over + "@": { - // emit warning about context.parserServices - const parserServices = context.parserServices; + /* + * Parsers are wrapped to detect more errors, so this needs + * to be a new object for each call to run(), otherwise the + * parsers will be wrapped multiple times. + */ + parsers: { + ...defaultConfig[0].plugins["@"].parsers + }, - Object.defineProperty(newContext, "parserServices", { - get() { - emitParserServicesWarning(ruleName); - return parserServices; + /* + * The rules key on the default plugin is a proxy to lazy-load + * just the rules that are needed. So, don't create a new object + * here, just use the default one to keep that performance + * enhancement. + */ + rules: defaultConfig[0].plugins["@"].rules, + languages: defaultConfig[0].plugins["@"].languages + }, + "rule-to-test": { + rules: { + [ruleName]: Object.assign({}, rule, { + + // Create a wrapper rule that freezes the `context` properties. + create(context) { + freezeDeeply(context.options); + freezeDeeply(context.settings); + freezeDeeply(context.parserOptions); + + // freezeDeeply(context.languageOptions); + + return rule.create(context); + } + }) + } } - }); - - Object.freeze(newContext); + }, + language: defaultConfig[0].language + }, + ...defaultConfig.slice(1) + ]; - return (typeof rule === "function" ? rule : rule.create)(newContext); + /** + * Runs a hook on the given item when it's assigned to the given property + * @param {string|Object} item Item to run the hook on + * @param {string} prop The property having the hook assigned to + * @throws {Error} If the property is not a function or that function throws an error + * @returns {void} + * @private + */ + function runHook(item, prop) { + if (typeof item === "object" && hasOwnProperty(item, prop)) { + assert.strictEqual(typeof item[prop], "function", `Optional test case property '${prop}' must be a function`); + item[prop](); } - })); - - linter.defineRules(this.rules); + } /** * Run the rule for the given item @@ -707,8 +648,37 @@ class RuleTester { * @private */ function runRuleForItem(item) { - let config = merge({}, testerConfig), - code, filename, output, beforeAST, afterAST; + const flatConfigArrayOptions = { + baseConfig + }; + + if (item.filename) { + flatConfigArrayOptions.basePath = path.parse(item.filename).root || void 0; + } + + const configs = new FlatConfigArray(testerConfig, flatConfigArrayOptions); + + /* + * Modify the returned config so that the parser is wrapped to catch + * access of the start/end properties. This method is called just + * once per code snippet being tested, so each test case gets a clean + * parser. + */ + configs[ConfigArraySymbol.finalizeConfig] = function(...args) { + + // can't do super here :( + const proto = Object.getPrototypeOf(this); + const calculatedConfig = proto[ConfigArraySymbol.finalizeConfig].apply(this, args); + + // wrap the parser to catch start/end property access + if (calculatedConfig.language === jslang) { + calculatedConfig.languageOptions.parser = wrapParser(calculatedConfig.languageOptions.parser); + } + + return calculatedConfig; + }; + + let code, filename, output, beforeAST, afterAST; if (typeof item === "string") { code = item; @@ -729,60 +699,82 @@ class RuleTester { * Create the config object from the tester config and this item * specific configurations. */ - config = merge( - config, - itemConfig - ); + configs.push(itemConfig); } - if (item.filename) { + if (hasOwnProperty(item, "only")) { + assert.ok(typeof item.only === "boolean", "Optional test case property 'only' must be a boolean"); + } + if (hasOwnProperty(item, "filename")) { + assert.ok(typeof item.filename === "string", "Optional test case property 'filename' must be a string"); filename = item.filename; } + let ruleConfig = 1; + if (hasOwnProperty(item, "options")) { assert(Array.isArray(item.options), "options must be an array"); - if ( - item.options.length > 0 && - typeof rule === "object" && - ( - !rule.meta || (rule.meta && (typeof rule.meta.schema === "undefined" || rule.meta.schema === null)) - ) - ) { - emitMissingSchemaWarning(ruleName); + ruleConfig = [1, ...item.options]; + } + + configs.push({ + rules: { + [ruleId]: ruleConfig } - config.rules[ruleName] = [1].concat(item.options); - } else { - config.rules[ruleName] = 1; + }); + + let schema; + + try { + schema = getRuleOptionsSchema(rule); + } catch (err) { + err.message += metaSchemaDescription; + throw err; } - const schema = getRuleOptionsSchema(rule); + /* + * Check and throw an error if the schema is an empty object (`schema:{}`), because such schema + * doesn't validate or enforce anything and is therefore considered a possible error. If the intent + * was to skip options validation, `schema:false` should be set instead (explicit opt-out). + * + * For this purpose, a schema object is considered empty if it doesn't have any own enumerable string-keyed + * properties. While `ajv.compile()` does use enumerable properties from the prototype chain as well, + * it caches compiled schemas by serializing only own enumerable properties, so it's generally not a good idea + * to use inherited properties in schemas because schemas that differ only in inherited properties would end up + * having the same cache entry that would be correct for only one of them. + * + * At this point, `schema` can only be an object or `null`. + */ + if (schema && Object.keys(schema).length === 0) { + throw new Error(`\`schema: {}\` is a no-op${metaSchemaDescription}`); + } /* * Setup AST getters. * The goal is to check whether or not AST was modified when * running the rule under test. */ - linter.defineRule("rule-tester/validate-ast", { - create() { - return { - Program(node) { - beforeAST = cloneDeeplyExcludesParent(node); - }, - "Program:exit"(node) { - afterAST = node; + configs.push({ + plugins: { + "rule-tester": { + rules: { + "validate-ast": { + create() { + return { + Program(node) { + beforeAST = cloneDeeplyExcludesParent(node); + }, + "Program:exit"(node) { + afterAST = node; + } + }; + } + } } - }; + } } }); - if (typeof config.parser === "string") { - assert(path.isAbsolute(config.parser), "Parsers provided as strings to RuleTester must be absolute paths"); - } else { - config.parser = espreePath; - } - - linter.defineParser(config.parser, wrapParser(require(config.parser))); - if (schema) { ajv.validateSchema(schema); @@ -809,35 +801,32 @@ class RuleTester { } } - validate(config, "rule-tester", id => (id === ruleName ? rule : null)); + // check for validation errors + try { + configs.normalizeSync(); + configs.getConfig("test.js"); + } catch (error) { + error.message = `ESLint configuration in rule-tester is invalid: ${error.message}`; + throw error; + } // Verify the code. - const { getComments, applyLanguageOptions, applyInlineConfig, finalize } = SourceCode.prototype; - const originalCurrentSegments = Object.getOwnPropertyDescriptor(CodePath.prototype, "currentSegments"); + const { applyLanguageOptions, applyInlineConfig, finalize } = SourceCode.prototype; let messages; try { - SourceCode.prototype.getComments = getCommentsDeprecation; - Object.defineProperty(CodePath.prototype, "currentSegments", { - get() { - emitCodePathCurrentSegmentsWarning(ruleName); - return originalCurrentSegments.get.call(this); - } - }); - forbiddenMethods.forEach(methodName => { - SourceCode.prototype[methodName] = throwForbiddenMethodError(methodName); + SourceCode.prototype[methodName] = throwForbiddenMethodError(methodName, SourceCode.prototype); }); - messages = linter.verify(code, config, filename); + messages = linter.verify(code, configs, filename); } finally { - SourceCode.prototype.getComments = getComments; - Object.defineProperty(CodePath.prototype, "currentSegments", originalCurrentSegments); SourceCode.prototype.applyInlineConfig = applyInlineConfig; SourceCode.prototype.applyLanguageOptions = applyLanguageOptions; SourceCode.prototype.finalize = finalize; } + const fatalErrorMessage = messages.find(m => m.fatal); assert(!fatalErrorMessage, `A fatal parsing error occurred: ${fatalErrorMessage && fatalErrorMessage.message}`); @@ -845,7 +834,7 @@ class RuleTester { // Verify if autofix makes a syntax error or not. if (messages.some(m => m.fix)) { output = SourceCodeFixer.applyFixes(code, messages).output; - const errorMessageInFix = linter.verify(output, config, filename).find(m => m.fatal); + const errorMessageInFix = linter.verify(output, configs, filename).find(m => m.fatal); assert(!errorMessageInFix, [ "A fatal parsing error occurred in autofix.", @@ -861,7 +850,9 @@ class RuleTester { messages, output, beforeAST, - afterAST: cloneDeeplyExcludesParent(afterAST) + afterAST: cloneDeeplyExcludesParent(afterAST), + configs, + filename }; } @@ -878,6 +869,39 @@ class RuleTester { } } + /** + * Check if this test case is a duplicate of one we have seen before. + * @param {string|Object} item test case object + * @param {Set} seenTestCases set of serialized test cases we have seen so far (managed by this function) + * @returns {void} + * @private + */ + function checkDuplicateTestCase(item, seenTestCases) { + if (!isSerializable(item)) { + + /* + * If we can't serialize a test case (because it contains a function, RegExp, etc), skip the check. + * This might happen with properties like: options, plugins, settings, languageOptions.parser, languageOptions.parserOptions. + */ + return; + } + + const normalizedItem = typeof item === "string" ? { code: item } : item; + const serializedTestCase = stringify(normalizedItem, { + replacer(key, value) { + + // "this" is the currently stringified object --> only ignore top-level properties + return (normalizedItem !== this || !duplicationIgnoredParameters.has(key)) ? value : void 0; + } + }); + + assert( + !seenTestCases.has(serializedTestCase), + "detected duplicate test case" + ); + seenTestCases.add(serializedTestCase); + } + /** * Check if the template is valid or not * all valid cases go through this @@ -893,6 +917,8 @@ class RuleTester { assert.ok(typeof item.name === "string", "Optional test case property 'name' must be a string"); } + checkDuplicateTestCase(item, seenValidTestCases); + const result = runRuleForItem(item); const messages = result.messages; @@ -944,12 +970,30 @@ class RuleTester { assert.fail("Invalid cases must have at least one error"); } + checkDuplicateTestCase(item, seenInvalidTestCases); + const ruleHasMetaMessages = hasOwnProperty(rule, "meta") && hasOwnProperty(rule.meta, "messages"); const friendlyIDList = ruleHasMetaMessages ? `[${Object.keys(rule.meta.messages).map(key => `'${key}'`).join(", ")}]` : null; const result = runRuleForItem(item); const messages = result.messages; + for (const message of messages) { + if (hasOwnProperty(message, "suggestions")) { + + /** @type {Map} */ + const seenMessageIndices = new Map(); + + for (let i = 0; i < message.suggestions.length; i += 1) { + const suggestionMessage = message.suggestions[i].desc; + const previous = seenMessageIndices.get(suggestionMessage); + + assert.ok(!seenMessageIndices.has(suggestionMessage), `Suggestion message '${suggestionMessage}' reported from suggestion ${i} was previously reported by suggestion ${previous}. Suggestion messages should be unique within an error.`); + seenMessageIndices.set(suggestionMessage, i); + } + } + } + if (typeof item.errors === "number") { if (item.errors === 0) { @@ -972,7 +1016,7 @@ class RuleTester { ) ); - const hasMessageOfThisRule = messages.some(m => m.ruleId === ruleName); + const hasMessageOfThisRule = messages.some(m => m.ruleId === ruleId); for (let i = 0, l = item.errors.length; i < l; i++) { const error = item.errors[i]; @@ -984,6 +1028,7 @@ class RuleTester { // Just an error message. assertMessageMatches(message.message, error); + assert.ok(message.suggestions === void 0, `Error at index ${i} has suggestions. Please convert the test error into an object and specify 'suggestions' property on it to test suggestions.`); } else if (typeof error === "object" && error !== null) { /* @@ -1016,6 +1061,18 @@ class RuleTester { error.messageId, `messageId '${message.messageId}' does not match expected messageId '${error.messageId}'.` ); + + const unsubstitutedPlaceholders = getUnsubstitutedMessagePlaceholders( + message.message, + rule.meta.messages[message.messageId], + error.data + ); + + assert.ok( + unsubstitutedPlaceholders.length === 0, + `The reported message has ${unsubstitutedPlaceholders.length > 1 ? `unsubstituted placeholders: ${unsubstitutedPlaceholders.map(name => `'${name}'`).join(", ")}` : `an unsubstituted placeholder '${unsubstitutedPlaceholders[0]}'`}. Please provide the missing ${unsubstitutedPlaceholders.length > 1 ? "values" : "value"} via the 'data' property in the context.report() call.` + ); + if (hasOwnProperty(error, "data")) { /* @@ -1032,13 +1089,10 @@ class RuleTester { `Hydrated message "${rehydratedMessage}" does not match "${message.message}"` ); } + } else { + assert.fail("Test error must specify either a 'messageId' or 'message'."); } - assert.ok( - hasOwnProperty(error, "data") ? hasOwnProperty(error, "messageId") : true, - "Error must specify 'messageId' if 'data' is used." - ); - if (error.type) { assert.strictEqual(message.nodeType, error.type, `Error type should be ${error.type}, found ${message.nodeType}`); } @@ -1059,81 +1113,117 @@ class RuleTester { assert.strictEqual(message.endColumn, error.endColumn, `Error endColumn should be ${error.endColumn}`); } + assert.ok(!message.suggestions || hasOwnProperty(error, "suggestions"), `Error at index ${i} has suggestions. Please specify 'suggestions' property on the test error object.`); if (hasOwnProperty(error, "suggestions")) { // Support asserting there are no suggestions - if (!error.suggestions || (Array.isArray(error.suggestions) && error.suggestions.length === 0)) { - if (Array.isArray(message.suggestions) && message.suggestions.length > 0) { - assert.fail(`Error should have no suggestions on error with message: "${message.message}"`); - } - } else { - assert.strictEqual(Array.isArray(message.suggestions), true, `Error should have an array of suggestions. Instead received "${message.suggestions}" on error with message: "${message.message}"`); - assert.strictEqual(message.suggestions.length, error.suggestions.length, `Error should have ${error.suggestions.length} suggestions. Instead found ${message.suggestions.length} suggestions`); - - error.suggestions.forEach((expectedSuggestion, index) => { - assert.ok( - typeof expectedSuggestion === "object" && expectedSuggestion !== null, - "Test suggestion in 'suggestions' array must be an object." - ); - Object.keys(expectedSuggestion).forEach(propertyName => { + const expectsSuggestions = Array.isArray(error.suggestions) ? error.suggestions.length > 0 : Boolean(error.suggestions); + const hasSuggestions = message.suggestions !== void 0; + + if (!hasSuggestions && expectsSuggestions) { + assert.ok(!error.suggestions, `Error should have suggestions on error with message: "${message.message}"`); + } else if (hasSuggestions) { + assert.ok(expectsSuggestions, `Error should have no suggestions on error with message: "${message.message}"`); + if (typeof error.suggestions === "number") { + assert.strictEqual(message.suggestions.length, error.suggestions, `Error should have ${error.suggestions} suggestions. Instead found ${message.suggestions.length} suggestions`); + } else if (Array.isArray(error.suggestions)) { + assert.strictEqual(message.suggestions.length, error.suggestions.length, `Error should have ${error.suggestions.length} suggestions. Instead found ${message.suggestions.length} suggestions`); + + error.suggestions.forEach((expectedSuggestion, index) => { assert.ok( - suggestionObjectParameters.has(propertyName), - `Invalid suggestion property name '${propertyName}'. Expected one of ${friendlySuggestionObjectParameterList}.` + typeof expectedSuggestion === "object" && expectedSuggestion !== null, + "Test suggestion in 'suggestions' array must be an object." ); - }); - - const actualSuggestion = message.suggestions[index]; - const suggestionPrefix = `Error Suggestion at index ${index} :`; + Object.keys(expectedSuggestion).forEach(propertyName => { + assert.ok( + suggestionObjectParameters.has(propertyName), + `Invalid suggestion property name '${propertyName}'. Expected one of ${friendlySuggestionObjectParameterList}.` + ); + }); - if (hasOwnProperty(expectedSuggestion, "desc")) { - assert.ok( - !hasOwnProperty(expectedSuggestion, "data"), - `${suggestionPrefix} Test should not specify both 'desc' and 'data'.` - ); - assert.strictEqual( - actualSuggestion.desc, - expectedSuggestion.desc, - `${suggestionPrefix} desc should be "${expectedSuggestion.desc}" but got "${actualSuggestion.desc}" instead.` - ); - } - - if (hasOwnProperty(expectedSuggestion, "messageId")) { - assert.ok( - ruleHasMetaMessages, - `${suggestionPrefix} Test can not use 'messageId' if rule under test doesn't define 'meta.messages'.` - ); - assert.ok( - hasOwnProperty(rule.meta.messages, expectedSuggestion.messageId), - `${suggestionPrefix} Test has invalid messageId '${expectedSuggestion.messageId}', the rule under test allows only one of ${friendlyIDList}.` - ); - assert.strictEqual( - actualSuggestion.messageId, - expectedSuggestion.messageId, - `${suggestionPrefix} messageId should be '${expectedSuggestion.messageId}' but got '${actualSuggestion.messageId}' instead.` - ); - if (hasOwnProperty(expectedSuggestion, "data")) { - const unformattedMetaMessage = rule.meta.messages[expectedSuggestion.messageId]; - const rehydratedDesc = interpolate(unformattedMetaMessage, expectedSuggestion.data); + const actualSuggestion = message.suggestions[index]; + const suggestionPrefix = `Error Suggestion at index ${index}:`; + if (hasOwnProperty(expectedSuggestion, "desc")) { + assert.ok( + !hasOwnProperty(expectedSuggestion, "data"), + `${suggestionPrefix} Test should not specify both 'desc' and 'data'.` + ); + assert.ok( + !hasOwnProperty(expectedSuggestion, "messageId"), + `${suggestionPrefix} Test should not specify both 'desc' and 'messageId'.` + ); + assert.strictEqual( + actualSuggestion.desc, + expectedSuggestion.desc, + `${suggestionPrefix} desc should be "${expectedSuggestion.desc}" but got "${actualSuggestion.desc}" instead.` + ); + } else if (hasOwnProperty(expectedSuggestion, "messageId")) { + assert.ok( + ruleHasMetaMessages, + `${suggestionPrefix} Test can not use 'messageId' if rule under test doesn't define 'meta.messages'.` + ); + assert.ok( + hasOwnProperty(rule.meta.messages, expectedSuggestion.messageId), + `${suggestionPrefix} Test has invalid messageId '${expectedSuggestion.messageId}', the rule under test allows only one of ${friendlyIDList}.` + ); assert.strictEqual( + actualSuggestion.messageId, + expectedSuggestion.messageId, + `${suggestionPrefix} messageId should be '${expectedSuggestion.messageId}' but got '${actualSuggestion.messageId}' instead.` + ); + + const unsubstitutedPlaceholders = getUnsubstitutedMessagePlaceholders( actualSuggestion.desc, - rehydratedDesc, - `${suggestionPrefix} Hydrated test desc "${rehydratedDesc}" does not match received desc "${actualSuggestion.desc}".` + rule.meta.messages[expectedSuggestion.messageId], + expectedSuggestion.data + ); + + assert.ok( + unsubstitutedPlaceholders.length === 0, + `The message of the suggestion has ${unsubstitutedPlaceholders.length > 1 ? `unsubstituted placeholders: ${unsubstitutedPlaceholders.map(name => `'${name}'`).join(", ")}` : `an unsubstituted placeholder '${unsubstitutedPlaceholders[0]}'`}. Please provide the missing ${unsubstitutedPlaceholders.length > 1 ? "values" : "value"} via the 'data' property for the suggestion in the context.report() call.` + ); + + if (hasOwnProperty(expectedSuggestion, "data")) { + const unformattedMetaMessage = rule.meta.messages[expectedSuggestion.messageId]; + const rehydratedDesc = interpolate(unformattedMetaMessage, expectedSuggestion.data); + + assert.strictEqual( + actualSuggestion.desc, + rehydratedDesc, + `${suggestionPrefix} Hydrated test desc "${rehydratedDesc}" does not match received desc "${actualSuggestion.desc}".` + ); + } + } else if (hasOwnProperty(expectedSuggestion, "data")) { + assert.fail( + `${suggestionPrefix} Test must specify 'messageId' if 'data' is used.` + ); + } else { + assert.fail( + `${suggestionPrefix} Test must specify either 'messageId' or 'desc'.` ); } - } else { - assert.ok( - !hasOwnProperty(expectedSuggestion, "data"), - `${suggestionPrefix} Test must specify 'messageId' if 'data' is used.` - ); - } - if (hasOwnProperty(expectedSuggestion, "output")) { + assert.ok(hasOwnProperty(expectedSuggestion, "output"), `${suggestionPrefix} The "output" property is required.`); const codeWithAppliedSuggestion = SourceCodeFixer.applyFixes(item.code, [actualSuggestion]).output; + // Verify if suggestion fix makes a syntax error or not. + const errorMessageInSuggestion = + linter.verify(codeWithAppliedSuggestion, result.configs, result.filename).find(m => m.fatal); + + assert(!errorMessageInSuggestion, [ + "A fatal parsing error occurred in suggestion fix.", + `Error: ${errorMessageInSuggestion && errorMessageInSuggestion.message}`, + "Suggestion output:", + codeWithAppliedSuggestion + ].join("\n")); + assert.strictEqual(codeWithAppliedSuggestion, expectedSuggestion.output, `Expected the applied suggestion fix to match the test suggestion output for suggestion at index: ${index} on error with message: "${message.message}"`); - } - }); + assert.notStrictEqual(expectedSuggestion.output, item.code, `The output of a suggestion should differ from the original source code for suggestion at index: ${index} on error with message: "${message.message}"`); + }); + } else { + assert.fail("Test error object property 'suggestions' should be an array or a number"); + } } } } else { @@ -1153,6 +1243,7 @@ class RuleTester { ); } else { assert.strictEqual(result.output, item.output, "Output is incorrect."); + assert.notStrictEqual(item.code, item.output, "Test property 'output' matches 'code'. If no autofix is expected, then omit the 'output' property or set it to null."); } } else { assert.strictEqual( @@ -1178,7 +1269,12 @@ class RuleTester { this.constructor[valid.only ? "itOnly" : "it"]( sanitize(typeof valid === "object" ? valid.name || valid.code : valid), () => { - testValidTemplate(valid); + try { + runHook(valid, "before"); + testValidTemplate(valid); + } finally { + runHook(valid, "after"); + } } ); }); @@ -1191,7 +1287,12 @@ class RuleTester { this.constructor[invalid.only ? "itOnly" : "it"]( sanitize(invalid.name || invalid.code), () => { - testInvalidTemplate(invalid); + try { + runHook(invalid, "before"); + testInvalidTemplate(invalid); + } finally { + runHook(invalid, "after"); + } } ); }); diff --git a/node_modules/eslint/lib/rules/accessor-pairs.js b/node_modules/eslint/lib/rules/accessor-pairs.js index f9703289..e95c7d06 100644 --- a/node_modules/eslint/lib/rules/accessor-pairs.js +++ b/node_modules/eslint/lib/rules/accessor-pairs.js @@ -139,6 +139,12 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + enforceForClassMembers: true, + getWithoutSet: false, + setWithoutGet: true + }], + docs: { description: "Enforce getter and setter pairs in objects and classes", recommended: false, @@ -149,16 +155,13 @@ module.exports = { type: "object", properties: { getWithoutSet: { - type: "boolean", - default: false + type: "boolean" }, setWithoutGet: { - type: "boolean", - default: true + type: "boolean" }, enforceForClassMembers: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -174,10 +177,11 @@ module.exports = { } }, create(context) { - const config = context.options[0] || {}; - const checkGetWithoutSet = config.getWithoutSet === true; - const checkSetWithoutGet = config.setWithoutGet !== false; - const enforceForClassMembers = config.enforceForClassMembers !== false; + const [{ + getWithoutSet: checkGetWithoutSet, + setWithoutGet: checkSetWithoutGet, + enforceForClassMembers + }] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/array-bracket-newline.js b/node_modules/eslint/lib/rules/array-bracket-newline.js index 12ef5b61..9eb72582 100644 --- a/node_modules/eslint/lib/rules/array-bracket-newline.js +++ b/node_modules/eslint/lib/rules/array-bracket-newline.js @@ -74,7 +74,7 @@ module.exports = { function normalizeOptionValue(option) { let consistent = false; let multiline = false; - let minItems = 0; + let minItems; if (option) { if (option === "consistent") { diff --git a/node_modules/eslint/lib/rules/array-bracket-spacing.js b/node_modules/eslint/lib/rules/array-bracket-spacing.js index 9dd3ffd9..31ace985 100644 --- a/node_modules/eslint/lib/rules/array-bracket-spacing.js +++ b/node_modules/eslint/lib/rules/array-bracket-spacing.js @@ -199,7 +199,7 @@ module.exports = { : sourceCode.getLastToken(node), penultimate = sourceCode.getTokenBefore(last), firstElement = node.elements[0], - lastElement = node.elements[node.elements.length - 1]; + lastElement = node.elements.at(-1); const openingBracketMustBeSpaced = options.objectsInArraysException && isObjectType(firstElement) || diff --git a/node_modules/eslint/lib/rules/array-callback-return.js b/node_modules/eslint/lib/rules/array-callback-return.js index 6d8f258f..974fea8c 100644 --- a/node_modules/eslint/lib/rules/array-callback-return.js +++ b/node_modules/eslint/lib/rules/array-callback-return.js @@ -215,6 +215,12 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowImplicit: false, + checkForEach: false, + allowVoid: false + }], + docs: { description: "Enforce `return` statements in callbacks of array methods", recommended: false, @@ -229,16 +235,13 @@ module.exports = { type: "object", properties: { allowImplicit: { - type: "boolean", - default: false + type: "boolean" }, checkForEach: { - type: "boolean", - default: false + type: "boolean" }, allowVoid: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -256,8 +259,7 @@ module.exports = { }, create(context) { - - const options = context.options[0] || { allowImplicit: false, checkForEach: false, allowVoid: false }; + const [options] = context.options; const sourceCode = context.sourceCode; let funcInfo = { diff --git a/node_modules/eslint/lib/rules/arrow-body-style.js b/node_modules/eslint/lib/rules/arrow-body-style.js index 75907045..a5947e50 100644 --- a/node_modules/eslint/lib/rules/arrow-body-style.js +++ b/node_modules/eslint/lib/rules/arrow-body-style.js @@ -19,6 +19,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["as-needed"], + docs: { description: "Require braces around arrow function bodies", recommended: false, @@ -71,7 +73,7 @@ module.exports = { create(context) { const options = context.options; const always = options[0] === "always"; - const asNeeded = !options[0] || options[0] === "as-needed"; + const asNeeded = options[0] === "as-needed"; const never = options[0] === "never"; const requireReturnForObjectLiteral = options[1] && options[1].requireReturnForObjectLiteral; const sourceCode = context.sourceCode; diff --git a/node_modules/eslint/lib/rules/block-scoped-var.js b/node_modules/eslint/lib/rules/block-scoped-var.js index ec597d56..d65fc074 100644 --- a/node_modules/eslint/lib/rules/block-scoped-var.js +++ b/node_modules/eslint/lib/rules/block-scoped-var.js @@ -79,7 +79,7 @@ module.exports = { } // Defines a predicate to check whether or not a given reference is outside of valid scope. - const scopeRange = stack[stack.length - 1]; + const scopeRange = stack.at(-1); /** * Check if a reference is out of scope diff --git a/node_modules/eslint/lib/rules/callback-return.js b/node_modules/eslint/lib/rules/callback-return.js index 5d441bdd..ffc34b16 100644 --- a/node_modules/eslint/lib/rules/callback-return.js +++ b/node_modules/eslint/lib/rules/callback-return.js @@ -147,7 +147,7 @@ module.exports = { if (closestBlock.type === "BlockStatement") { // find the last item in the block - const lastItem = closestBlock.body[closestBlock.body.length - 1]; + const lastItem = closestBlock.body.at(-1); // if the callback is the last thing in a block that might be ok if (isCallbackExpression(node, lastItem)) { @@ -168,7 +168,7 @@ module.exports = { if (lastItem.type === "ReturnStatement") { // but only if the callback is immediately before - if (isCallbackExpression(node, closestBlock.body[closestBlock.body.length - 2])) { + if (isCallbackExpression(node, closestBlock.body.at(-2))) { return; } } diff --git a/node_modules/eslint/lib/rules/camelcase.js b/node_modules/eslint/lib/rules/camelcase.js index 51bb4122..6fac7462 100644 --- a/node_modules/eslint/lib/rules/camelcase.js +++ b/node_modules/eslint/lib/rules/camelcase.js @@ -20,6 +20,14 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allow: [], + ignoreDestructuring: false, + ignoreGlobals: false, + ignoreImports: false, + properties: "always" + }], + docs: { description: "Enforce camelcase naming convention", recommended: false, @@ -31,27 +39,22 @@ module.exports = { type: "object", properties: { ignoreDestructuring: { - type: "boolean", - default: false + type: "boolean" }, ignoreImports: { - type: "boolean", - default: false + type: "boolean" }, ignoreGlobals: { - type: "boolean", - default: false + type: "boolean" }, properties: { enum: ["always", "never"] }, allow: { type: "array", - items: [ - { - type: "string" - } - ], + items: { + type: "string" + }, minItems: 0, uniqueItems: true } @@ -67,12 +70,13 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const properties = options.properties === "never" ? "never" : "always"; - const ignoreDestructuring = options.ignoreDestructuring; - const ignoreImports = options.ignoreImports; - const ignoreGlobals = options.ignoreGlobals; - const allow = options.allow || []; + const [{ + allow, + ignoreDestructuring, + ignoreGlobals, + ignoreImports, + properties + }] = context.options; const sourceCode = context.sourceCode; //-------------------------------------------------------------------------- @@ -240,6 +244,13 @@ module.exports = { return; } + /* + * Import attribute keys are always ignored + */ + if (astUtils.isImportAttributeKey(node)) { + return; + } + report(node); } @@ -274,7 +285,7 @@ module.exports = { for (const reference of scope.through) { const id = reference.identifier; - if (isGoodName(id.name)) { + if (isGoodName(id.name) || astUtils.isImportAttributeKey(id)) { continue; } @@ -328,7 +339,7 @@ module.exports = { "MethodDefinition > PrivateIdentifier.key", "PropertyDefinition > PrivateIdentifier.key" ]](node) { - if (properties === "never" || isGoodName(node.name)) { + if (properties === "never" || astUtils.isImportAttributeKey(node) || isGoodName(node.name)) { return; } report(node); diff --git a/node_modules/eslint/lib/rules/capitalized-comments.js b/node_modules/eslint/lib/rules/capitalized-comments.js index 3a17b056..07a27b6e 100644 --- a/node_modules/eslint/lib/rules/capitalized-comments.js +++ b/node_modules/eslint/lib/rules/capitalized-comments.js @@ -8,7 +8,6 @@ // Requirements //------------------------------------------------------------------------------ -const LETTER_PATTERN = require("./utils/patterns/letters"); const astUtils = require("./utils/ast-utils"); //------------------------------------------------------------------------------ @@ -17,7 +16,8 @@ const astUtils = require("./utils/ast-utils"); const DEFAULT_IGNORE_PATTERN = astUtils.COMMENTS_IGNORE_PATTERN, WHITESPACE = /\s/gu, - MAYBE_URL = /^\s*[^:/?#\s]+:\/\/[^?#]/u; // TODO: Combine w/ max-len pattern? + MAYBE_URL = /^\s*[^:/?#\s]+:\/\/[^?#]/u, // TODO: Combine w/ max-len pattern? + LETTER_PATTERN = /\p{L}/u; /* * Base schema body for defining the basic capitalization rule, ignorePattern, @@ -233,7 +233,8 @@ module.exports = { return true; } - const firstWordChar = commentWordCharsOnly[0]; + // Get the first Unicode character (1 or 2 code units). + const [firstWordChar] = commentWordCharsOnly; if (!LETTER_PATTERN.test(firstWordChar)) { return true; @@ -273,12 +274,14 @@ module.exports = { messageId, fix(fixer) { const match = comment.value.match(LETTER_PATTERN); + const char = match[0]; - return fixer.replaceTextRange( + // Offset match.index by 2 to account for the first 2 characters that start the comment (// or /*) + const charIndex = comment.range[0] + match.index + 2; - // Offset match.index by 2 to account for the first 2 characters that start the comment (// or /*) - [comment.range[0] + match.index + 2, comment.range[0] + match.index + 3], - capitalize === "always" ? match[0].toLocaleUpperCase() : match[0].toLocaleLowerCase() + return fixer.replaceTextRange( + [charIndex, charIndex + char.length], + capitalize === "always" ? char.toLocaleUpperCase() : char.toLocaleLowerCase() ); } }); diff --git a/node_modules/eslint/lib/rules/class-methods-use-this.js b/node_modules/eslint/lib/rules/class-methods-use-this.js index 9cf8a1b8..11054630 100644 --- a/node_modules/eslint/lib/rules/class-methods-use-this.js +++ b/node_modules/eslint/lib/rules/class-methods-use-this.js @@ -20,6 +20,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + enforceForClassFields: true, + exceptMethods: [] + }], + docs: { description: "Enforce that class methods utilize `this`", recommended: false, @@ -36,8 +41,7 @@ module.exports = { } }, enforceForClassFields: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -48,9 +52,9 @@ module.exports = { } }, create(context) { - const config = Object.assign({}, context.options[0]); - const enforceForClassFields = config.enforceForClassFields !== false; - const exceptMethods = new Set(config.exceptMethods || []); + const [options] = context.options; + const { enforceForClassFields } = options; + const exceptMethods = new Set(options.exceptMethods); const stack = []; diff --git a/node_modules/eslint/lib/rules/comma-dangle.js b/node_modules/eslint/lib/rules/comma-dangle.js index 5f4180f1..c24c1475 100644 --- a/node_modules/eslint/lib/rules/comma-dangle.js +++ b/node_modules/eslint/lib/rules/comma-dangle.js @@ -154,7 +154,7 @@ module.exports = { * @returns {any} The last element */ function last(array) { - return array[array.length - 1]; + return array.at(-1); } switch (node.type) { diff --git a/node_modules/eslint/lib/rules/comma-style.js b/node_modules/eslint/lib/rules/comma-style.js index 0b512195..d632a3ba 100644 --- a/node_modules/eslint/lib/rules/comma-style.js +++ b/node_modules/eslint/lib/rules/comma-style.js @@ -66,7 +66,7 @@ module.exports = { NewExpression: true }; - if (context.options.length === 2 && Object.prototype.hasOwnProperty.call(context.options[1], "exceptions")) { + if (context.options.length === 2 && Object.hasOwn(context.options[1], "exceptions")) { const keys = Object.keys(context.options[1].exceptions); for (let i = 0; i < keys.length; i++) { @@ -218,7 +218,7 @@ module.exports = { previousItemToken = tokenAfterItem ? sourceCode.getTokenBefore(tokenAfterItem) - : sourceCode.ast.tokens[sourceCode.ast.tokens.length - 1]; + : sourceCode.ast.tokens.at(-1); } else { previousItemToken = currentItemToken; } diff --git a/node_modules/eslint/lib/rules/complexity.js b/node_modules/eslint/lib/rules/complexity.js index b7925074..7358fe19 100644 --- a/node_modules/eslint/lib/rules/complexity.js +++ b/node_modules/eslint/lib/rules/complexity.js @@ -17,11 +17,15 @@ const { upperCaseFirst } = require("../shared/string-utils"); // Rule Definition //------------------------------------------------------------------------------ +const THRESHOLD_DEFAULT = 20; + /** @type {import('../shared/types').Rule} */ module.exports = { meta: { type: "suggestion", + defaultOptions: [THRESHOLD_DEFAULT], + docs: { description: "Enforce a maximum cyclomatic complexity allowed in a program", recommended: false, @@ -45,6 +49,9 @@ module.exports = { max: { type: "integer", minimum: 0 + }, + variant: { + enum: ["classic", "modified"] } }, additionalProperties: false @@ -60,17 +67,23 @@ module.exports = { create(context) { const option = context.options[0]; - let THRESHOLD = 20; + let threshold = THRESHOLD_DEFAULT; + let VARIANT = "classic"; + + if (typeof option === "object") { + if (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) { + threshold = option.maximum || option.max; + } - if ( - typeof option === "object" && - (Object.prototype.hasOwnProperty.call(option, "maximum") || Object.prototype.hasOwnProperty.call(option, "max")) - ) { - THRESHOLD = option.maximum || option.max; + if (Object.hasOwn(option, "variant")) { + VARIANT = option.variant; + } } else if (typeof option === "number") { - THRESHOLD = option; + threshold = option; } + const IS_MODIFIED_COMPLEXITY = VARIANT === "modified"; + //-------------------------------------------------------------------------- // Helpers //-------------------------------------------------------------------------- @@ -109,9 +122,11 @@ module.exports = { IfStatement: increaseComplexity, WhileStatement: increaseComplexity, DoWhileStatement: increaseComplexity, + AssignmentPattern: increaseComplexity, // Avoid `default` - "SwitchCase[test]": increaseComplexity, + "SwitchCase[test]": () => IS_MODIFIED_COMPLEXITY || increaseComplexity(), + SwitchStatement: () => IS_MODIFIED_COMPLEXITY && increaseComplexity(), // Logical assignment operators have short-circuiting behavior AssignmentExpression(node) { @@ -120,6 +135,18 @@ module.exports = { } }, + MemberExpression(node) { + if (node.optional === true) { + increaseComplexity(); + } + }, + + CallExpression(node) { + if (node.optional === true) { + increaseComplexity(); + } + }, + onCodePathEnd(codePath, node) { const complexity = complexities.pop(); @@ -137,7 +164,7 @@ module.exports = { return; } - if (complexity > THRESHOLD) { + if (complexity > threshold) { let name; if (codePath.origin === "class-field-initializer") { @@ -154,7 +181,7 @@ module.exports = { data: { name: upperCaseFirst(name), complexity, - max: THRESHOLD + max: threshold } }); } diff --git a/node_modules/eslint/lib/rules/consistent-return.js b/node_modules/eslint/lib/rules/consistent-return.js index 304e924b..f31c2e10 100644 --- a/node_modules/eslint/lib/rules/consistent-return.js +++ b/node_modules/eslint/lib/rules/consistent-return.js @@ -62,13 +62,14 @@ module.exports = { type: "object", properties: { treatUndefinedAsUnspecified: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false }], + defaultOptions: [{ treatUndefinedAsUnspecified: false }], + messages: { missingReturn: "Expected to return a value at the end of {{name}}.", missingReturnValue: "{{name}} expected a return value.", @@ -77,8 +78,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const treatUndefinedAsUnspecified = options.treatUndefinedAsUnspecified === true; + const [{ treatUndefinedAsUnspecified }] = context.options; let funcInfo = null; /** diff --git a/node_modules/eslint/lib/rules/consistent-this.js b/node_modules/eslint/lib/rules/consistent-this.js index 658957ae..9a76e7a4 100644 --- a/node_modules/eslint/lib/rules/consistent-this.js +++ b/node_modules/eslint/lib/rules/consistent-this.js @@ -28,6 +28,8 @@ module.exports = { uniqueItems: true }, + defaultOptions: ["that"], + messages: { aliasNotAssignedToThis: "Designated alias '{{name}}' is not assigned to 'this'.", unexpectedAlias: "Unexpected alias '{{name}}' for 'this'." @@ -35,15 +37,9 @@ module.exports = { }, create(context) { - let aliases = []; + const aliases = context.options; const sourceCode = context.sourceCode; - if (context.options.length === 0) { - aliases.push("that"); - } else { - aliases = context.options; - } - /** * Reports that a variable declarator or assignment expression is assigning * a non-'this' value to the specified alias. diff --git a/node_modules/eslint/lib/rules/constructor-super.js b/node_modules/eslint/lib/rules/constructor-super.js index 330be80f..6f46278f 100644 --- a/node_modules/eslint/lib/rules/constructor-super.js +++ b/node_modules/eslint/lib/rules/constructor-super.js @@ -9,22 +9,6 @@ // Helpers //------------------------------------------------------------------------------ -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - /** * Checks whether or not a given node is a constructor. * @param {ASTNode} node A node to check. This node type is one of @@ -109,7 +93,7 @@ function isPossibleConstructor(node) { ); case "SequenceExpression": { - const lastExpression = node.expressions[node.expressions.length - 1]; + const lastExpression = node.expressions.at(-1); return isPossibleConstructor(lastExpression); } @@ -119,6 +103,30 @@ function isPossibleConstructor(node) { } } +/** + * A class to store information about a code path segment. + */ +class SegmentInfo { + + /** + * Indicates if super() is called in all code paths. + * @type {boolean} + */ + calledInEveryPaths = false; + + /** + * Indicates if super() is called in any code paths. + * @type {boolean} + */ + calledInSomePaths = false; + + /** + * The nodes which have been validated and don't need to be reconsidered. + * @type {ASTNode[]} + */ + validNodes = []; +} + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -141,8 +149,7 @@ module.exports = { missingAll: "Expected to call 'super()'.", duplicate: "Unexpected duplicate 'super()'.", - badSuper: "Unexpected 'super()' because 'super' is not a constructor.", - unexpected: "Unexpected 'super()'." + badSuper: "Unexpected 'super()' because 'super' is not a constructor." } }, @@ -159,14 +166,10 @@ module.exports = { */ let funcInfo = null; - /* - * {Map} - * Information for each code path segment. - * - calledInSomePaths: A flag of be called `super()` in some code paths. - * - calledInEveryPaths: A flag of be called `super()` in all code paths. - * - validNodes: + /** + * @type {Record} */ - let segInfoMap = Object.create(null); + const segInfoMap = Object.create(null); /** * Gets the flag which shows `super()` is called in some paths. @@ -177,23 +180,21 @@ module.exports = { return segment.reachable && segInfoMap[segment.id].calledInSomePaths; } + /** + * Determines if a segment has been seen in the traversal. + * @param {CodePathSegment} segment A code path segment to check. + * @returns {boolean} `true` if the segment has been seen. + */ + function hasSegmentBeenSeen(segment) { + return !!segInfoMap[segment.id]; + } + /** * Gets the flag which shows `super()` is called in all paths. * @param {CodePathSegment} segment A code path segment to get. * @returns {boolean} The flag which shows `super()` is called in all paths. */ function isCalledInEveryPath(segment) { - - /* - * If specific segment is the looped segment of the current segment, - * skip the segment. - * If not skipped, this never becomes true after a loop. - */ - if (segment.nextSegments.length === 1 && - segment.nextSegments[0].isLoopedPrevSegment(segment) - ) { - return true; - } return segment.reachable && segInfoMap[segment.id].calledInEveryPaths; } @@ -250,9 +251,9 @@ module.exports = { } // Reports if `super()` lacked. - const segments = codePath.returnedSegments; - const calledInEveryPaths = segments.every(isCalledInEveryPath); - const calledInSomePaths = segments.some(isCalledInSomePath); + const returnedSegments = codePath.returnedSegments; + const calledInEveryPaths = returnedSegments.every(isCalledInEveryPath); + const calledInSomePaths = returnedSegments.some(isCalledInSomePath); if (!calledInEveryPaths) { context.report({ @@ -267,29 +268,37 @@ module.exports = { /** * Initialize information of a given code path segment. * @param {CodePathSegment} segment A code path segment to initialize. + * @param {CodePathSegment} node Node that starts the segment. * @returns {void} */ - onCodePathSegmentStart(segment) { + onCodePathSegmentStart(segment, node) { funcInfo.currentSegments.add(segment); - if (!(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends)) { + if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { return; } // Initialize info. - const info = segInfoMap[segment.id] = { - calledInSomePaths: false, - calledInEveryPaths: false, - validNodes: [] - }; + const info = segInfoMap[segment.id] = new SegmentInfo(); + + const seenPrevSegments = segment.prevSegments.filter(hasSegmentBeenSeen); // When there are previous segments, aggregates these. - const prevSegments = segment.prevSegments; + if (seenPrevSegments.length > 0) { + info.calledInSomePaths = seenPrevSegments.some(isCalledInSomePath); + info.calledInEveryPaths = seenPrevSegments.every(isCalledInEveryPath); + } - if (prevSegments.length > 0) { - info.calledInSomePaths = prevSegments.some(isCalledInSomePath); - info.calledInEveryPaths = prevSegments.every(isCalledInEveryPath); + /* + * ForStatement > *.update segments are a special case as they are created in advance, + * without seen previous segments. Since they logically don't affect `calledInEveryPaths` + * calculations, and they can never be a lone previous segment of another one, we'll set + * their `calledInEveryPaths` to `true` to effectively ignore them in those calculations. + * . + */ + if (node.parent && node.parent.type === "ForStatement" && node.parent.update === node) { + info.calledInEveryPaths = true; } }, @@ -316,25 +325,30 @@ module.exports = { * @returns {void} */ onCodePathSegmentLoop(fromSegment, toSegment) { - if (!(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends)) { + if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { return; } - // Update information inside of the loop. - const isRealLoop = toSegment.prevSegments.length >= 2; - funcInfo.codePath.traverseSegments( { first: toSegment, last: fromSegment }, - segment => { + (segment, controller) => { const info = segInfoMap[segment.id]; - const prevSegments = segment.prevSegments; - // Updates flags. - info.calledInSomePaths = prevSegments.some(isCalledInSomePath); - info.calledInEveryPaths = prevSegments.every(isCalledInEveryPath); + // skip segments after the loop + if (!info) { + controller.skip(); + return; + } + + const seenPrevSegments = segment.prevSegments.filter(hasSegmentBeenSeen); + const calledInSomePreviousPaths = seenPrevSegments.some(isCalledInSomePath); + const calledInEveryPreviousPaths = seenPrevSegments.every(isCalledInEveryPath); + + info.calledInSomePaths ||= calledInSomePreviousPaths; + info.calledInEveryPaths ||= calledInEveryPreviousPaths; // If flags become true anew, reports the valid nodes. - if (info.calledInSomePaths || isRealLoop) { + if (calledInSomePreviousPaths) { const nodes = info.validNodes; info.validNodes = []; @@ -358,7 +372,7 @@ module.exports = { * @returns {void} */ "CallExpression:exit"(node) { - if (!(funcInfo && funcInfo.isConstructor)) { + if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { return; } @@ -368,41 +382,34 @@ module.exports = { } // Reports if needed. - if (funcInfo.hasExtends) { - const segments = funcInfo.currentSegments; - let duplicate = false; - let info = null; + const segments = funcInfo.currentSegments; + let duplicate = false; + let info = null; - for (const segment of segments) { + for (const segment of segments) { - if (segment.reachable) { - info = segInfoMap[segment.id]; + if (segment.reachable) { + info = segInfoMap[segment.id]; - duplicate = duplicate || info.calledInSomePaths; - info.calledInSomePaths = info.calledInEveryPaths = true; - } + duplicate = duplicate || info.calledInSomePaths; + info.calledInSomePaths = info.calledInEveryPaths = true; } + } - if (info) { - if (duplicate) { - context.report({ - messageId: "duplicate", - node - }); - } else if (!funcInfo.superIsConstructor) { - context.report({ - messageId: "badSuper", - node - }); - } else { - info.validNodes.push(node); - } + if (info) { + if (duplicate) { + context.report({ + messageId: "duplicate", + node + }); + } else if (!funcInfo.superIsConstructor) { + context.report({ + messageId: "badSuper", + node + }); + } else { + info.validNodes.push(node); } - } else if (isAnySegmentReachable(funcInfo.currentSegments)) { - context.report({ - messageId: "unexpected", - node - }); } }, @@ -412,7 +419,7 @@ module.exports = { * @returns {void} */ ReturnStatement(node) { - if (!(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends)) { + if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { return; } @@ -432,14 +439,6 @@ module.exports = { info.calledInSomePaths = info.calledInEveryPaths = true; } } - }, - - /** - * Resets state. - * @returns {void} - */ - "Program:exit"() { - segInfoMap = Object.create(null); } }; } diff --git a/node_modules/eslint/lib/rules/curly.js b/node_modules/eslint/lib/rules/curly.js index 35408247..fa273dcc 100644 --- a/node_modules/eslint/lib/rules/curly.js +++ b/node_modules/eslint/lib/rules/curly.js @@ -53,6 +53,8 @@ module.exports = { ] }, + defaultOptions: ["all"], + fixable: "code", messages: { @@ -64,7 +66,6 @@ module.exports = { }, create(context) { - const multiOnly = (context.options[0] === "multi"); const multiLine = (context.options[0] === "multi-line"); const multiOrNest = (context.options[0] === "multi-or-nest"); @@ -108,40 +109,6 @@ module.exports = { return first.loc.start.line === lastExcludingSemicolon.loc.end.line; } - /** - * Determines if the given node is a lexical declaration (let, const, function, or class) - * @param {ASTNode} node The node to check - * @returns {boolean} True if the node is a lexical declaration - * @private - */ - function isLexicalDeclaration(node) { - if (node.type === "VariableDeclaration") { - return node.kind === "const" || node.kind === "let"; - } - - return node.type === "FunctionDeclaration" || node.type === "ClassDeclaration"; - } - - /** - * Checks if the given token is an `else` token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an `else` token. - */ - function isElseKeywordToken(token) { - return token.value === "else" && token.type === "Keyword"; - } - - /** - * Determines whether the given node has an `else` keyword token as the first token after. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is followed by an `else` keyword token. - */ - function isFollowedByElseKeyword(node) { - const nextToken = sourceCode.getTokenAfter(node); - - return Boolean(nextToken) && isElseKeywordToken(nextToken); - } - /** * Determines if a semicolon needs to be inserted after removing a set of curly brackets, in order to avoid a SyntaxError. * @param {Token} closingBracket The } token @@ -196,110 +163,6 @@ module.exports = { return false; } - /** - * Determines whether the code represented by the given node contains an `if` statement - * that would become associated with an `else` keyword directly appended to that code. - * - * Examples where it returns `true`: - * - * if (a) - * foo(); - * - * if (a) { - * foo(); - * } - * - * if (a) - * foo(); - * else if (b) - * bar(); - * - * while (a) - * if (b) - * if(c) - * foo(); - * else - * bar(); - * - * Examples where it returns `false`: - * - * if (a) - * foo(); - * else - * bar(); - * - * while (a) { - * if (b) - * if(c) - * foo(); - * else - * bar(); - * } - * - * while (a) - * if (b) { - * if(c) - * foo(); - * } - * else - * bar(); - * @param {ASTNode} node Node representing the code to check. - * @returns {boolean} `true` if an `if` statement within the code would become associated with an `else` appended to that code. - */ - function hasUnsafeIf(node) { - switch (node.type) { - case "IfStatement": - if (!node.alternate) { - return true; - } - return hasUnsafeIf(node.alternate); - case "ForStatement": - case "ForInStatement": - case "ForOfStatement": - case "LabeledStatement": - case "WithStatement": - case "WhileStatement": - return hasUnsafeIf(node.body); - default: - return false; - } - } - - /** - * Determines whether the existing curly braces around the single statement are necessary to preserve the semantics of the code. - * The braces, which make the given block body, are necessary in either of the following situations: - * - * 1. The statement is a lexical declaration. - * 2. Without the braces, an `if` within the statement would become associated with an `else` after the closing brace: - * - * if (a) { - * if (b) - * foo(); - * } - * else - * bar(); - * - * if (a) - * while (b) - * while (c) { - * while (d) - * if (e) - * while(f) - * foo(); - * } - * else - * bar(); - * @param {ASTNode} node `BlockStatement` body with exactly one statement directly inside. The statement can have its own nested statements. - * @returns {boolean} `true` if the braces are necessary - removing them (replacing the given `BlockStatement` body with its single statement content) - * would change the semantics of the code or produce a syntax error. - */ - function areBracesNecessary(node) { - const statement = node.body[0]; - - return isLexicalDeclaration(statement) || - hasUnsafeIf(statement) && isFollowedByElseKeyword(node); - } - /** * Prepares to check the body of a node to see if it's a block statement. * @param {ASTNode} node The node to report if there's a problem. @@ -318,7 +181,7 @@ module.exports = { const hasBlock = (body.type === "BlockStatement"); let expected = null; - if (hasBlock && (body.body.length !== 1 || areBracesNecessary(body))) { + if (hasBlock && (body.body.length !== 1 || astUtils.areBracesNecessary(body, sourceCode))) { expected = true; } else if (multiOnly) { expected = false; diff --git a/node_modules/eslint/lib/rules/default-case.js b/node_modules/eslint/lib/rules/default-case.js index 4f2fad0c..9fa7acd3 100644 --- a/node_modules/eslint/lib/rules/default-case.js +++ b/node_modules/eslint/lib/rules/default-case.js @@ -15,6 +15,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{}], + docs: { description: "Require `default` cases in `switch` statements", recommended: false, @@ -37,7 +39,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; + const [options] = context.options; const commentPattern = options.commentPattern ? new RegExp(options.commentPattern, "u") : DEFAULT_COMMENT_PATTERN; @@ -54,7 +56,7 @@ module.exports = { * @returns {any} Last element */ function last(collection) { - return collection[collection.length - 1]; + return collection.at(-1); } //-------------------------------------------------------------------------- diff --git a/node_modules/eslint/lib/rules/dot-notation.js b/node_modules/eslint/lib/rules/dot-notation.js index 21cba54e..370c1cae 100644 --- a/node_modules/eslint/lib/rules/dot-notation.js +++ b/node_modules/eslint/lib/rules/dot-notation.js @@ -25,6 +25,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowKeywords: true, + allowPattern: "" + }], + docs: { description: "Enforce dot notation whenever possible", recommended: false, @@ -36,12 +41,10 @@ module.exports = { type: "object", properties: { allowKeywords: { - type: "boolean", - default: true + type: "boolean" }, allowPattern: { - type: "string", - default: "" + type: "string" } }, additionalProperties: false @@ -57,8 +60,8 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const allowKeywords = options.allowKeywords === void 0 || options.allowKeywords; + const [options] = context.options; + const allowKeywords = options.allowKeywords; const sourceCode = context.sourceCode; let allowPattern; diff --git a/node_modules/eslint/lib/rules/eol-last.js b/node_modules/eslint/lib/rules/eol-last.js index 03487b03..c46ff4ef 100644 --- a/node_modules/eslint/lib/rules/eol-last.js +++ b/node_modules/eslint/lib/rules/eol-last.js @@ -45,7 +45,7 @@ module.exports = { Program: function checkBadEOF(node) { const sourceCode = context.sourceCode, src = sourceCode.getText(), - lastLine = sourceCode.lines[sourceCode.lines.length - 1], + lastLine = sourceCode.lines.at(-1), location = { column: lastLine.length, line: sourceCode.lines.length @@ -89,7 +89,7 @@ module.exports = { }); } else if (mode === "never" && endsWithNewline) { - const secondLastLine = sourceCode.lines[sourceCode.lines.length - 2]; + const secondLastLine = sourceCode.lines.at(-2); // File is newline-terminated, but shouldn't be context.report({ diff --git a/node_modules/eslint/lib/rules/func-names.js b/node_modules/eslint/lib/rules/func-names.js index b180580e..6990f0c7 100644 --- a/node_modules/eslint/lib/rules/func-names.js +++ b/node_modules/eslint/lib/rules/func-names.js @@ -29,6 +29,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["always", {}], + docs: { description: "Require or disallow named `function` expressions", recommended: false, @@ -68,7 +70,6 @@ module.exports = { }, create(context) { - const sourceCode = context.sourceCode; /** @@ -79,13 +80,12 @@ module.exports = { function getConfigForNode(node) { if ( node.generator && - context.options.length > 1 && context.options[1].generators ) { return context.options[1].generators; } - return context.options[0] || "always"; + return context.options[0]; } /** diff --git a/node_modules/eslint/lib/rules/func-style.js b/node_modules/eslint/lib/rules/func-style.js index ab83772e..b6682d60 100644 --- a/node_modules/eslint/lib/rules/func-style.js +++ b/node_modules/eslint/lib/rules/func-style.js @@ -13,8 +13,13 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["expression", { + allowArrowFunctions: false, + overrides: {} + }], + docs: { - description: "Enforce the consistent use of either `function` declarations or expressions", + description: "Enforce the consistent use of either `function` declarations or expressions assigned to variables", recommended: false, url: "https://eslint.org/docs/latest/rules/func-style" }, @@ -27,8 +32,16 @@ module.exports = { type: "object", properties: { allowArrowFunctions: { - type: "boolean", - default: false + type: "boolean" + }, + overrides: { + type: "object", + properties: { + namedExports: { + enum: ["declaration", "expression", "ignore"] + } + }, + additionalProperties: false } }, additionalProperties: false @@ -42,17 +55,24 @@ module.exports = { }, create(context) { - - const style = context.options[0], - allowArrowFunctions = context.options[1] && context.options[1].allowArrowFunctions, - enforceDeclarations = (style === "declaration"), - stack = []; + const [style, { allowArrowFunctions, overrides }] = context.options; + const enforceDeclarations = (style === "declaration"); + const { namedExports: exportFunctionStyle } = overrides; + const stack = []; const nodesToCheck = { FunctionDeclaration(node) { stack.push(false); - if (!enforceDeclarations && node.parent.type !== "ExportDefaultDeclaration") { + if ( + !enforceDeclarations && + node.parent.type !== "ExportDefaultDeclaration" && + (typeof exportFunctionStyle === "undefined" || node.parent.type !== "ExportNamedDeclaration") + ) { + context.report({ node, messageId: "expression" }); + } + + if (node.parent.type === "ExportNamedDeclaration" && exportFunctionStyle === "expression") { context.report({ node, messageId: "expression" }); } }, @@ -63,7 +83,18 @@ module.exports = { FunctionExpression(node) { stack.push(false); - if (enforceDeclarations && node.parent.type === "VariableDeclarator") { + if ( + enforceDeclarations && + node.parent.type === "VariableDeclarator" && + (typeof exportFunctionStyle === "undefined" || node.parent.parent.parent.type !== "ExportNamedDeclaration") + ) { + context.report({ node: node.parent, messageId: "declaration" }); + } + + if ( + node.parent.type === "VariableDeclarator" && node.parent.parent.parent.type === "ExportNamedDeclaration" && + exportFunctionStyle === "declaration" + ) { context.report({ node: node.parent, messageId: "declaration" }); } }, @@ -71,7 +102,7 @@ module.exports = { stack.pop(); }, - ThisExpression() { + "ThisExpression, Super"() { if (stack.length > 0) { stack[stack.length - 1] = true; } @@ -84,10 +115,19 @@ module.exports = { }; nodesToCheck["ArrowFunctionExpression:exit"] = function(node) { - const hasThisExpr = stack.pop(); + const hasThisOrSuperExpr = stack.pop(); + + if (!hasThisOrSuperExpr && node.parent.type === "VariableDeclarator") { + if ( + enforceDeclarations && + (typeof exportFunctionStyle === "undefined" || node.parent.parent.parent.type !== "ExportNamedDeclaration") + ) { + context.report({ node: node.parent, messageId: "declaration" }); + } - if (enforceDeclarations && !hasThisExpr && node.parent.type === "VariableDeclarator") { - context.report({ node: node.parent, messageId: "declaration" }); + if (node.parent.parent.parent.type === "ExportNamedDeclaration" && exportFunctionStyle === "declaration") { + context.report({ node: node.parent, messageId: "declaration" }); + } } }; } diff --git a/node_modules/eslint/lib/rules/function-paren-newline.js b/node_modules/eslint/lib/rules/function-paren-newline.js index de315a02..86268e52 100644 --- a/node_modules/eslint/lib/rules/function-paren-newline.js +++ b/node_modules/eslint/lib/rules/function-paren-newline.js @@ -218,7 +218,7 @@ module.exports = { case "FunctionExpression": { const leftParen = sourceCode.getFirstToken(node, astUtils.isOpeningParenToken); const rightParen = node.params.length - ? sourceCode.getTokenAfter(node.params[node.params.length - 1], astUtils.isClosingParenToken) + ? sourceCode.getTokenAfter(node.params.at(-1), astUtils.isClosingParenToken) : sourceCode.getTokenAfter(leftParen); return { leftParen, rightParen }; @@ -234,7 +234,7 @@ module.exports = { } const rightParen = node.params.length - ? sourceCode.getTokenAfter(node.params[node.params.length - 1], astUtils.isClosingParenToken) + ? sourceCode.getTokenAfter(node.params.at(-1), astUtils.isClosingParenToken) : sourceCode.getTokenAfter(firstToken); return { diff --git a/node_modules/eslint/lib/rules/getter-return.js b/node_modules/eslint/lib/rules/getter-return.js index 79ebf3e0..f012876b 100644 --- a/node_modules/eslint/lib/rules/getter-return.js +++ b/node_modules/eslint/lib/rules/getter-return.js @@ -42,6 +42,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowImplicit: false + }], + docs: { description: "Enforce `return` statements in getters", recommended: true, @@ -55,8 +59,7 @@ module.exports = { type: "object", properties: { allowImplicit: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -70,8 +73,7 @@ module.exports = { }, create(context) { - - const options = context.options[0] || { allowImplicit: false }; + const [{ allowImplicit }] = context.options; const sourceCode = context.sourceCode; let funcInfo = { @@ -184,7 +186,7 @@ module.exports = { funcInfo.hasReturn = true; // if allowImplicit: false, should also check node.argument - if (!options.allowImplicit && !node.argument) { + if (!allowImplicit && !node.argument) { context.report({ node, messageId: "expected", diff --git a/node_modules/eslint/lib/rules/grouped-accessor-pairs.js b/node_modules/eslint/lib/rules/grouped-accessor-pairs.js index 9556f475..cd627b47 100644 --- a/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +++ b/node_modules/eslint/lib/rules/grouped-accessor-pairs.js @@ -95,6 +95,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["anyOrder"], + docs: { description: "Require grouped accessor pairs in object literals and classes", recommended: false, @@ -114,7 +116,7 @@ module.exports = { }, create(context) { - const order = context.options[0] || "anyOrder"; + const [order] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/id-denylist.js b/node_modules/eslint/lib/rules/id-denylist.js index baaa65fe..5d394be2 100644 --- a/node_modules/eslint/lib/rules/id-denylist.js +++ b/node_modules/eslint/lib/rules/id-denylist.js @@ -6,6 +6,12 @@ "use strict"; +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ @@ -98,6 +104,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [], + docs: { description: "Disallow specified identifiers", recommended: false, @@ -118,7 +126,6 @@ module.exports = { }, create(context) { - const denyList = new Set(context.options); const reportedNodes = new Set(); const sourceCode = context.sourceCode; @@ -154,6 +161,12 @@ module.exports = { * @returns {boolean} `true` if the node should be checked. */ function shouldCheck(node) { + + // Import attributes are defined by environments, so naming conventions shouldn't apply to them + if (astUtils.isImportAttributeKey(node)) { + return false; + } + const parent = node.parent; /* diff --git a/node_modules/eslint/lib/rules/id-length.js b/node_modules/eslint/lib/rules/id-length.js index 97bc0e43..65b75709 100644 --- a/node_modules/eslint/lib/rules/id-length.js +++ b/node_modules/eslint/lib/rules/id-length.js @@ -11,6 +11,7 @@ //------------------------------------------------------------------------------ const { getGraphemeCount } = require("../shared/string-utils"); +const { getModuleExportName, isImportAttributeKey } = require("./utils/ast-utils"); //------------------------------------------------------------------------------ // Rule Definition @@ -21,6 +22,13 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + exceptionPatterns: [], + exceptions: [], + min: 2, + properties: "always" + }], + docs: { description: "Enforce minimum and maximum identifier lengths", recommended: false, @@ -32,8 +40,7 @@ module.exports = { type: "object", properties: { min: { - type: "integer", - default: 2 + type: "integer" }, max: { type: "integer" @@ -68,12 +75,11 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const minLength = typeof options.min !== "undefined" ? options.min : 2; - const maxLength = typeof options.max !== "undefined" ? options.max : Infinity; + const [options] = context.options; + const { max: maxLength = Infinity, min: minLength } = options; const properties = options.properties !== "never"; const exceptions = new Set(options.exceptions); - const exceptionPatterns = (options.exceptionPatterns || []).map(pattern => new RegExp(pattern, "u")); + const exceptionPatterns = options.exceptionPatterns.map(pattern => new RegExp(pattern, "u")); const reportedNodes = new Set(); /** @@ -114,9 +120,16 @@ module.exports = { isKeyAndValueSame && parent.key === node && properties ); } - return properties && !parent.computed && parent.key.name === node.name; + return properties && !isImportAttributeKey(node) && !parent.computed && parent.key.name === node.name; + }, + ImportSpecifier(parent, node) { + return ( + parent.local === node && + getModuleExportName(parent.imported) !== getModuleExportName(parent.local) + ); }, ImportDefaultSpecifier: true, + ImportNamespaceSpecifier: true, RestElement: true, FunctionExpression: true, ArrowFunctionExpression: true, diff --git a/node_modules/eslint/lib/rules/id-match.js b/node_modules/eslint/lib/rules/id-match.js index e225454e..76d774ef 100644 --- a/node_modules/eslint/lib/rules/id-match.js +++ b/node_modules/eslint/lib/rules/id-match.js @@ -5,6 +5,12 @@ "use strict"; +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -14,6 +20,13 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["^.+$", { + classFields: false, + ignoreDestructuring: false, + onlyDeclarations: false, + properties: false + }], + docs: { description: "Require identifiers to match a specified regular expression", recommended: false, @@ -28,20 +41,16 @@ module.exports = { type: "object", properties: { properties: { - type: "boolean", - default: false + type: "boolean" }, classFields: { - type: "boolean", - default: false + type: "boolean" }, onlyDeclarations: { - type: "boolean", - default: false + type: "boolean" }, ignoreDestructuring: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -58,14 +67,13 @@ module.exports = { //-------------------------------------------------------------------------- // Options //-------------------------------------------------------------------------- - const pattern = context.options[0] || "^.+$", - regexp = new RegExp(pattern, "u"); - - const options = context.options[1] || {}, - checkProperties = !!options.properties, - checkClassFields = !!options.classFields, - onlyDeclarations = !!options.onlyDeclarations, - ignoreDestructuring = !!options.ignoreDestructuring; + const [pattern, { + classFields: checkClassFields, + ignoreDestructuring, + onlyDeclarations, + properties: checkProperties + }] = context.options; + const regexp = new RegExp(pattern, "u"); const sourceCode = context.sourceCode; let globalScope; @@ -180,7 +188,7 @@ module.exports = { parent = node.parent, effectiveParent = (parent.type === "MemberExpression") ? parent.parent : parent; - if (isReferenceToGlobalVariable(node)) { + if (isReferenceToGlobalVariable(node) || astUtils.isImportAttributeKey(node)) { return; } diff --git a/node_modules/eslint/lib/rules/indent-legacy.js b/node_modules/eslint/lib/rules/indent-legacy.js index 78bf965c..4adb4230 100644 --- a/node_modules/eslint/lib/rules/indent-legacy.js +++ b/node_modules/eslint/lib/rules/indent-legacy.js @@ -789,7 +789,7 @@ module.exports = { if (elements.length > 0) { // Skip last block line check if last item in same line - if (elements[elements.length - 1].loc.end.line === node.loc.end.line) { + if (elements.at(-1).loc.end.line === node.loc.end.line) { return; } } @@ -830,7 +830,7 @@ module.exports = { } let indent; - let nodesToCheck = []; + let nodesToCheck; /* * For this statements we should check indent from statement beginning, @@ -873,7 +873,7 @@ module.exports = { */ function filterOutSameLineVars(node) { return node.declarations.reduce((finalCollection, elem) => { - const lastElem = finalCollection[finalCollection.length - 1]; + const lastElem = finalCollection.at(-1); if ((elem.loc.start.line !== node.loc.start.line && !lastElem) || (lastElem && lastElem.loc.start.line !== elem.loc.start.line)) { @@ -892,7 +892,7 @@ module.exports = { function checkIndentInVariableDeclarations(node) { const elements = filterOutSameLineVars(node); const nodeIndent = getNodeIndent(node).goodChar; - const lastElement = elements[elements.length - 1]; + const lastElement = elements.at(-1); const elementsIndent = nodeIndent + indentSize * options.VariableDeclarator[node.kind]; @@ -999,7 +999,7 @@ module.exports = { }, VariableDeclaration(node) { - if (node.declarations[node.declarations.length - 1].loc.start.line > node.declarations[0].loc.start.line) { + if (node.declarations.at(-1).loc.start.line > node.declarations[0].loc.start.line) { checkIndentInVariableDeclarations(node); } }, diff --git a/node_modules/eslint/lib/rules/indent.js b/node_modules/eslint/lib/rules/indent.js index 9bcbd640..bc812b13 100644 --- a/node_modules/eslint/lib/rules/indent.js +++ b/node_modules/eslint/lib/rules/indent.js @@ -1077,7 +1077,7 @@ module.exports = { "ObjectExpression, ObjectPattern"(node) { const openingCurly = sourceCode.getFirstToken(node); const closingCurly = sourceCode.getTokenAfter( - node.properties.length ? node.properties[node.properties.length - 1] : openingCurly, + node.properties.length ? node.properties.at(-1) : openingCurly, astUtils.isClosingBraceToken ); @@ -1407,7 +1407,7 @@ module.exports = { PropertyDefinition(node) { const firstToken = sourceCode.getFirstToken(node); const maybeSemicolonToken = sourceCode.getLastToken(node); - let keyLastToken = null; + let keyLastToken; // Indent key. if (node.computed) { @@ -1458,7 +1458,7 @@ module.exports = { if (node.cases.length) { sourceCode.getTokensBetween( - node.cases[node.cases.length - 1], + node.cases.at(-1), closingCurly, { includeComments: true, filter: astUtils.isCommentToken } ).forEach(token => offsets.ignoreToken(token)); @@ -1488,7 +1488,7 @@ module.exports = { }, VariableDeclaration(node) { - let variableIndent = Object.prototype.hasOwnProperty.call(options.VariableDeclarator, node.kind) + let variableIndent = Object.hasOwn(options.VariableDeclarator, node.kind) ? options.VariableDeclarator[node.kind] : DEFAULT_VARIABLE_INDENT; @@ -1509,7 +1509,7 @@ module.exports = { variableIndent = DEFAULT_VARIABLE_INDENT; } - if (node.declarations[node.declarations.length - 1].loc.start.line > node.loc.start.line) { + if (node.declarations.at(-1).loc.start.line > node.loc.start.line) { /* * VariableDeclarator indentation is a bit different from other forms of indentation, in that the diff --git a/node_modules/eslint/lib/rules/index.js b/node_modules/eslint/lib/rules/index.js index 840abe73..5ff7b6f5 100644 --- a/node_modules/eslint/lib/rules/index.js +++ b/node_modules/eslint/lib/rules/index.js @@ -229,6 +229,7 @@ module.exports = new LazyLoadingRuleMap(Object.entries({ "no-unused-private-class-members": () => require("./no-unused-private-class-members"), "no-unused-vars": () => require("./no-unused-vars"), "no-use-before-define": () => require("./no-use-before-define"), + "no-useless-assignment": () => require("./no-useless-assignment"), "no-useless-backreference": () => require("./no-useless-backreference"), "no-useless-call": () => require("./no-useless-call"), "no-useless-catch": () => require("./no-useless-catch"), @@ -273,7 +274,6 @@ module.exports = new LazyLoadingRuleMap(Object.entries({ radix: () => require("./radix"), "require-atomic-updates": () => require("./require-atomic-updates"), "require-await": () => require("./require-await"), - "require-jsdoc": () => require("./require-jsdoc"), "require-unicode-regexp": () => require("./require-unicode-regexp"), "require-yield": () => require("./require-yield"), "rest-spread-spacing": () => require("./rest-spread-spacing"), @@ -296,7 +296,6 @@ module.exports = new LazyLoadingRuleMap(Object.entries({ "template-tag-spacing": () => require("./template-tag-spacing"), "unicode-bom": () => require("./unicode-bom"), "use-isnan": () => require("./use-isnan"), - "valid-jsdoc": () => require("./valid-jsdoc"), "valid-typeof": () => require("./valid-typeof"), "vars-on-top": () => require("./vars-on-top"), "wrap-iife": () => require("./wrap-iife"), diff --git a/node_modules/eslint/lib/rules/key-spacing.js b/node_modules/eslint/lib/rules/key-spacing.js index 19fc0167..aa8fd37b 100644 --- a/node_modules/eslint/lib/rules/key-spacing.js +++ b/node_modules/eslint/lib/rules/key-spacing.js @@ -28,7 +28,7 @@ function containsLineTerminator(str) { * @returns {any} Last element of arr. */ function last(arr) { - return arr[arr.length - 1]; + return arr.at(-1); } /** @@ -489,7 +489,7 @@ module.exports = { } } - let messageId = ""; + let messageId; if (isExtra) { messageId = side === "key" ? "extraKey" : "extraValue"; diff --git a/node_modules/eslint/lib/rules/line-comment-position.js b/node_modules/eslint/lib/rules/line-comment-position.js index 314fac16..e7a7788c 100644 --- a/node_modules/eslint/lib/rules/line-comment-position.js +++ b/node_modules/eslint/lib/rules/line-comment-position.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to enforce the position of line comments * @author Alberto Rodríguez + * @deprecated in ESLint v9.3.0 */ "use strict"; @@ -13,6 +14,8 @@ const astUtils = require("./utils/ast-utils"); /** @type {import('../shared/types').Rule} */ module.exports = { meta: { + deprecated: true, + replacedBy: [], type: "layout", docs: { @@ -68,7 +71,7 @@ module.exports = { above = !options.position || options.position === "above"; ignorePattern = options.ignorePattern; - if (Object.prototype.hasOwnProperty.call(options, "applyDefaultIgnorePatterns")) { + if (Object.hasOwn(options, "applyDefaultIgnorePatterns")) { applyDefaultIgnorePatterns = options.applyDefaultIgnorePatterns; } else { applyDefaultIgnorePatterns = options.applyDefaultPatterns !== false; diff --git a/node_modules/eslint/lib/rules/lines-around-directive.js b/node_modules/eslint/lib/rules/lines-around-directive.js index 1c82d8f9..fb6871d3 100644 --- a/node_modules/eslint/lib/rules/lines-around-directive.js +++ b/node_modules/eslint/lib/rules/lines-around-directive.js @@ -166,7 +166,7 @@ module.exports = { reportError(firstDirective, "before", false); } - const lastDirective = directives[directives.length - 1]; + const lastDirective = directives.at(-1); const statements = node.type === "Program" ? node.body : node.body.body; /* @@ -174,7 +174,7 @@ module.exports = { * contains a directive prologue and isn't followed by a comment to ensure * this rule behaves well with padded-blocks. */ - if (lastDirective === statements[statements.length - 1] && !lastDirective.trailingComments) { + if (lastDirective === statements.at(-1) && !lastDirective.trailingComments) { return; } diff --git a/node_modules/eslint/lib/rules/max-depth.js b/node_modules/eslint/lib/rules/max-depth.js index 7a8e9f94..e92c6b4a 100644 --- a/node_modules/eslint/lib/rules/max-depth.js +++ b/node_modules/eslint/lib/rules/max-depth.js @@ -61,7 +61,7 @@ module.exports = { if ( typeof option === "object" && - (Object.prototype.hasOwnProperty.call(option, "maximum") || Object.prototype.hasOwnProperty.call(option, "max")) + (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) ) { maxDepth = option.maximum || option.max; } diff --git a/node_modules/eslint/lib/rules/max-len.js b/node_modules/eslint/lib/rules/max-len.js index 138a0f23..15910d5d 100644 --- a/node_modules/eslint/lib/rules/max-len.js +++ b/node_modules/eslint/lib/rules/max-len.js @@ -124,7 +124,7 @@ module.exports = { } // The options object must be the last option specified… - const options = Object.assign({}, context.options[context.options.length - 1]); + const options = Object.assign({}, context.options.at(-1)); // …but max code length… if (typeof context.options[0] === "number") { @@ -290,7 +290,7 @@ module.exports = { if (isJSXEmptyExpressionInSingleLineContainer(containingNode)) { // push a unique node only - if (comments[comments.length - 1] !== containingNode.parent) { + if (comments.at(-1) !== containingNode.parent) { comments.push(containingNode.parent); } } else { @@ -344,7 +344,7 @@ module.exports = { * comments to check. */ if (commentsIndex < comments.length) { - let comment = null; + let comment; // iterate over comments until we find one past the current line do { diff --git a/node_modules/eslint/lib/rules/max-lines.js b/node_modules/eslint/lib/rules/max-lines.js index e85d4429..d8215794 100644 --- a/node_modules/eslint/lib/rules/max-lines.js +++ b/node_modules/eslint/lib/rules/max-lines.js @@ -77,7 +77,7 @@ module.exports = { if ( typeof option === "object" && - Object.prototype.hasOwnProperty.call(option, "max") + Object.hasOwn(option, "max") ) { max = option.max; } else if (typeof option === "number") { @@ -148,7 +148,7 @@ module.exports = { * If file ends with a linebreak, `sourceCode.lines` will have one extra empty line at the end. * That isn't a real line, so we shouldn't count it. */ - if (lines.length > 1 && lines[lines.length - 1].text === "") { + if (lines.length > 1 && lines.at(-1).text === "") { lines.pop(); } @@ -174,7 +174,7 @@ module.exports = { }, end: { line: sourceCode.lines.length, - column: sourceCode.lines[sourceCode.lines.length - 1].length + column: sourceCode.lines.at(-1).length } }; diff --git a/node_modules/eslint/lib/rules/max-nested-callbacks.js b/node_modules/eslint/lib/rules/max-nested-callbacks.js index d8f380b3..448c0bd4 100644 --- a/node_modules/eslint/lib/rules/max-nested-callbacks.js +++ b/node_modules/eslint/lib/rules/max-nested-callbacks.js @@ -59,7 +59,7 @@ module.exports = { if ( typeof option === "object" && - (Object.prototype.hasOwnProperty.call(option, "maximum") || Object.prototype.hasOwnProperty.call(option, "max")) + (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) ) { THRESHOLD = option.maximum || option.max; } else if (typeof option === "number") { diff --git a/node_modules/eslint/lib/rules/max-params.js b/node_modules/eslint/lib/rules/max-params.js index 213477a1..eb043ab1 100644 --- a/node_modules/eslint/lib/rules/max-params.js +++ b/node_modules/eslint/lib/rules/max-params.js @@ -63,7 +63,7 @@ module.exports = { if ( typeof option === "object" && - (Object.prototype.hasOwnProperty.call(option, "maximum") || Object.prototype.hasOwnProperty.call(option, "max")) + (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) ) { numParams = option.maximum || option.max; } diff --git a/node_modules/eslint/lib/rules/max-statements.js b/node_modules/eslint/lib/rules/max-statements.js index 78053831..96d5ea7b 100644 --- a/node_modules/eslint/lib/rules/max-statements.js +++ b/node_modules/eslint/lib/rules/max-statements.js @@ -79,7 +79,7 @@ module.exports = { if ( typeof option === "object" && - (Object.prototype.hasOwnProperty.call(option, "maximum") || Object.prototype.hasOwnProperty.call(option, "max")) + (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) ) { maxStatements = option.maximum || option.max; } else if (typeof option === "number") { diff --git a/node_modules/eslint/lib/rules/multiline-comment-style.js b/node_modules/eslint/lib/rules/multiline-comment-style.js index 6da98620..098e054b 100644 --- a/node_modules/eslint/lib/rules/multiline-comment-style.js +++ b/node_modules/eslint/lib/rules/multiline-comment-style.js @@ -1,6 +1,7 @@ /** * @fileoverview enforce a particular style for multiline comments * @author Teddy Katz + * @deprecated in ESLint v9.3.0 */ "use strict"; @@ -13,8 +14,9 @@ const astUtils = require("./utils/ast-utils"); /** @type {import('../shared/types').Rule} */ module.exports = { meta: { + deprecated: true, + replacedBy: [], type: "suggestion", - docs: { description: "Enforce a particular style for multiline comments", recommended: false, @@ -113,7 +115,7 @@ module.exports = { return /^\*\s*$/u.test(lines[0]) && lines.slice(1, -1).every(line => /^\s* /u.test(line)) && - /^\s*$/u.test(lines[lines.length - 1]); + /^\s*$/u.test(lines.at(-1)); } /** @@ -272,11 +274,11 @@ module.exports = { context.report({ loc: { start: firstComment.loc.start, - end: commentGroup[commentGroup.length - 1].loc.end + end: commentGroup.at(-1).loc.end }, messageId: "expectedBlock", fix(fixer) { - const range = [firstComment.range[0], commentGroup[commentGroup.length - 1].range[1]]; + const range = [firstComment.range[0], commentGroup.at(-1).range[1]]; return commentLines.some(value => value.startsWith("/")) ? null @@ -301,7 +303,7 @@ module.exports = { }); } - if (!/^\s*$/u.test(lines[lines.length - 1])) { + if (!/^\s*$/u.test(lines.at(-1))) { context.report({ loc: { start: { line: firstComment.loc.end.line, column: firstComment.loc.end.column - 2 }, @@ -408,12 +410,12 @@ module.exports = { context.report({ loc: { start: firstComment.loc.start, - end: commentGroup[commentGroup.length - 1].loc.end + end: commentGroup.at(-1).loc.end }, messageId: "expectedBlock", fix(fixer) { return fixer.replaceTextRange( - [firstComment.range[0], commentGroup[commentGroup.length - 1].range[1]], + [firstComment.range[0], commentGroup.at(-1).range[1]], convertToBlock(firstComment, commentLines) ); } @@ -459,7 +461,7 @@ module.exports = { tokenBefore && tokenBefore.loc.end.line === comment.loc.start.line - 1 && tokenBefore === commentList[index - 1] ) { - commentGroups[commentGroups.length - 1].push(comment); + commentGroups.at(-1).push(comment); } else { commentGroups.push([comment]); } diff --git a/node_modules/eslint/lib/rules/new-cap.js b/node_modules/eslint/lib/rules/new-cap.js index f81e42fd..c57997a5 100644 --- a/node_modules/eslint/lib/rules/new-cap.js +++ b/node_modules/eslint/lib/rules/new-cap.js @@ -29,23 +29,6 @@ const CAPS_ALLOWED = [ "BigInt" ]; -/** - * Ensure that if the key is provided, it must be an array. - * @param {Object} obj Object to check with `key`. - * @param {string} key Object key to check on `obj`. - * @param {any} fallback If obj[key] is not present, this will be returned. - * @throws {TypeError} If key is not an own array type property of `obj`. - * @returns {string[]} Returns obj[key] if it's an Array, otherwise `fallback` - */ -function checkArray(obj, key, fallback) { - - /* c8 ignore start */ - if (Object.prototype.hasOwnProperty.call(obj, key) && !Array.isArray(obj[key])) { - throw new TypeError(`${key}, if provided, must be an Array`); - }/* c8 ignore stop */ - return obj[key] || fallback; -} - /** * A reducer function to invert an array to an Object mapping the string form of the key, to `true`. * @param {Object} map Accumulator object for the reduce. @@ -63,11 +46,7 @@ function invert(map, key) { * @returns {Object} Object with cap is new exceptions. */ function calculateCapIsNewExceptions(config) { - let capIsNewExceptions = checkArray(config, "capIsNewExceptions", CAPS_ALLOWED); - - if (capIsNewExceptions !== CAPS_ALLOWED) { - capIsNewExceptions = capIsNewExceptions.concat(CAPS_ALLOWED); - } + const capIsNewExceptions = Array.from(new Set([...config.capIsNewExceptions, ...CAPS_ALLOWED])); return capIsNewExceptions.reduce(invert, {}); } @@ -92,12 +71,10 @@ module.exports = { type: "object", properties: { newIsCap: { - type: "boolean", - default: true + type: "boolean" }, capIsNew: { - type: "boolean", - default: true + type: "boolean" }, newIsCapExceptions: { type: "array", @@ -118,13 +95,21 @@ module.exports = { type: "string" }, properties: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false } ], + + defaultOptions: [{ + capIsNew: true, + capIsNewExceptions: CAPS_ALLOWED, + newIsCap: true, + newIsCapExceptions: [], + properties: true + }], + messages: { upper: "A function with a name starting with an uppercase letter should only be used as a constructor.", lower: "A constructor name should not start with a lowercase letter." @@ -132,14 +117,10 @@ module.exports = { }, create(context) { + const [config] = context.options; + const skipProperties = !config.properties; - const config = Object.assign({}, context.options[0]); - - config.newIsCap = config.newIsCap !== false; - config.capIsNew = config.capIsNew !== false; - const skipProperties = config.properties === false; - - const newIsCapExceptions = checkArray(config, "newIsCapExceptions", []).reduce(invert, {}); + const newIsCapExceptions = config.newIsCapExceptions.reduce(invert, {}); const newIsCapExceptionPattern = config.newIsCapExceptionPattern ? new RegExp(config.newIsCapExceptionPattern, "u") : null; const capIsNewExceptions = calculateCapIsNewExceptions(config); diff --git a/node_modules/eslint/lib/rules/newline-after-var.js b/node_modules/eslint/lib/rules/newline-after-var.js index dc8b24d4..6e447641 100644 --- a/node_modules/eslint/lib/rules/newline-after-var.js +++ b/node_modules/eslint/lib/rules/newline-after-var.js @@ -215,7 +215,7 @@ module.exports = { fix(fixer) { const linesBetween = sourceCode.getText().slice(lastToken.range[1], nextToken.range[0]).split(astUtils.LINEBREAK_MATCHER); - return fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], `${linesBetween.slice(0, -1).join("")}\n${linesBetween[linesBetween.length - 1]}`); + return fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], `${linesBetween.slice(0, -1).join("")}\n${linesBetween.at(-1)}`); } }); } diff --git a/node_modules/eslint/lib/rules/newline-before-return.js b/node_modules/eslint/lib/rules/newline-before-return.js index 73d8ef99..21e9faf1 100644 --- a/node_modules/eslint/lib/rules/newline-before-return.js +++ b/node_modules/eslint/lib/rules/newline-before-return.js @@ -166,7 +166,7 @@ module.exports = { */ function canFix(node) { const leadingComments = sourceCode.getCommentsBefore(node); - const lastLeadingComment = leadingComments[leadingComments.length - 1]; + const lastLeadingComment = leadingComments.at(-1); const tokenBefore = sourceCode.getTokenBefore(node); if (leadingComments.length === 0) { diff --git a/node_modules/eslint/lib/rules/no-bitwise.js b/node_modules/eslint/lib/rules/no-bitwise.js index d90992b2..79432669 100644 --- a/node_modules/eslint/lib/rules/no-bitwise.js +++ b/node_modules/eslint/lib/rules/no-bitwise.js @@ -25,6 +25,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allow: [], + int32Hint: false + }], + docs: { description: "Disallow bitwise operators", recommended: false, @@ -43,8 +48,7 @@ module.exports = { uniqueItems: true }, int32Hint: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -57,9 +61,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; - const int32Hint = options.int32Hint === true; + const [{ allow: allowed, int32Hint }] = context.options; /** * Reports an unexpected use of a bitwise operator. diff --git a/node_modules/eslint/lib/rules/no-case-declarations.js b/node_modules/eslint/lib/rules/no-case-declarations.js index 8dc5b021..55f82e24 100644 --- a/node_modules/eslint/lib/rules/no-case-declarations.js +++ b/node_modules/eslint/lib/rules/no-case-declarations.js @@ -19,9 +19,12 @@ module.exports = { url: "https://eslint.org/docs/latest/rules/no-case-declarations" }, + hasSuggestions: true, + schema: [], messages: { + addBrackets: "Add {} brackets around the case block.", unexpected: "Unexpected lexical declaration in case block." } }, @@ -53,7 +56,16 @@ module.exports = { if (isLexicalDeclaration(statement)) { context.report({ node: statement, - messageId: "unexpected" + messageId: "unexpected", + suggest: [ + { + messageId: "addBrackets", + fix: fixer => [ + fixer.insertTextBefore(node.consequent[0], "{ "), + fixer.insertTextAfter(node.consequent.at(-1), " }") + ] + } + ] }); } } diff --git a/node_modules/eslint/lib/rules/no-compare-neg-zero.js b/node_modules/eslint/lib/rules/no-compare-neg-zero.js index 112f6c1d..42e4a374 100644 --- a/node_modules/eslint/lib/rules/no-compare-neg-zero.js +++ b/node_modules/eslint/lib/rules/no-compare-neg-zero.js @@ -14,7 +14,7 @@ module.exports = { type: "problem", docs: { - description: "Disallow comparing against -0", + description: "Disallow comparing against `-0`", recommended: true, url: "https://eslint.org/docs/latest/rules/no-compare-neg-zero" }, diff --git a/node_modules/eslint/lib/rules/no-cond-assign.js b/node_modules/eslint/lib/rules/no-cond-assign.js index 95292021..6d4135d0 100644 --- a/node_modules/eslint/lib/rules/no-cond-assign.js +++ b/node_modules/eslint/lib/rules/no-cond-assign.js @@ -33,6 +33,8 @@ module.exports = { meta: { type: "problem", + defaultOptions: ["except-parens"], + docs: { description: "Disallow assignment operators in conditional expressions", recommended: true, @@ -54,9 +56,7 @@ module.exports = { }, create(context) { - - const prohibitAssign = (context.options[0] || "except-parens"); - + const [prohibitAssign] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/no-console.js b/node_modules/eslint/lib/rules/no-console.js index d20477c5..62dc1693 100644 --- a/node_modules/eslint/lib/rules/no-console.js +++ b/node_modules/eslint/lib/rules/no-console.js @@ -20,6 +20,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{}], + docs: { description: "Disallow the use of `console`", recommended: false, @@ -52,8 +54,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; + const [{ allow: allowed = [] }] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/no-constant-binary-expression.js b/node_modules/eslint/lib/rules/no-constant-binary-expression.js index 845255a0..bc8f0730 100644 --- a/node_modules/eslint/lib/rules/no-constant-binary-expression.js +++ b/node_modules/eslint/lib/rules/no-constant-binary-expression.js @@ -5,8 +5,7 @@ "use strict"; -const globals = require("globals"); -const { isNullLiteral, isConstant, isReferenceToGlobalVariable, isLogicalAssignmentOperator } = require("./utils/ast-utils"); +const { isNullLiteral, isConstant, isReferenceToGlobalVariable, isLogicalAssignmentOperator, ECMASCRIPT_GLOBALS } = require("./utils/ast-utils"); const NUMERIC_OR_STRING_BINARY_OPERATORS = new Set(["+", "-", "*", "/", "%", "|", "^", "&", "**", "<<", ">>", ">>>"]); @@ -103,7 +102,7 @@ function hasConstantNullishness(scope, node, nonNullish) { return true; case "SequenceExpression": { - const last = node.expressions[node.expressions.length - 1]; + const last = node.expressions.at(-1); return hasConstantNullishness(scope, last, nonNullish); } @@ -149,7 +148,7 @@ function isStaticBoolean(scope, node) { * truthiness. * https://262.ecma-international.org/5.1/#sec-11.9.3 * - * Javascript `==` operator works by converting the boolean to `1` (true) or + * JavaScript `==` operator works by converting the boolean to `1` (true) or * `+0` (false) and then checks the values `==` equality to that number. * @param {Scope} scope The scope in which node was found. * @param {ASTNode} node The node to test. @@ -248,7 +247,7 @@ function hasConstantLooseBooleanComparison(scope, node) { */ return false; case "SequenceExpression": { - const last = node.expressions[node.expressions.length - 1]; + const last = node.expressions.at(-1); return hasConstantLooseBooleanComparison(scope, last); } @@ -299,7 +298,7 @@ function hasConstantStrictBooleanComparison(scope, node) { return true; } case "SequenceExpression": { - const last = node.expressions[node.expressions.length - 1]; + const last = node.expressions.at(-1); return hasConstantStrictBooleanComparison(scope, last); } @@ -376,7 +375,7 @@ function isAlwaysNew(scope, node) { * Catching these is especially useful for primitive constructors * which return boxed values, a surprising gotcha' in JavaScript. */ - return Object.hasOwnProperty.call(globals.builtin, node.callee.name) && + return Object.hasOwn(ECMASCRIPT_GLOBALS, node.callee.name) && isReferenceToGlobalVariable(scope, node.callee); } case "Literal": @@ -384,7 +383,7 @@ function isAlwaysNew(scope, node) { // Regular expressions are objects, and thus always new return typeof node.regex === "object"; case "SequenceExpression": { - const last = node.expressions[node.expressions.length - 1]; + const last = node.expressions.at(-1); return isAlwaysNew(scope, last); } @@ -440,7 +439,7 @@ module.exports = { type: "problem", docs: { description: "Disallow expressions where the operation doesn't affect the value", - recommended: false, + recommended: true, url: "https://eslint.org/docs/latest/rules/no-constant-binary-expression" }, schema: [], diff --git a/node_modules/eslint/lib/rules/no-constant-condition.js b/node_modules/eslint/lib/rules/no-constant-condition.js index 24abe363..1514b545 100644 --- a/node_modules/eslint/lib/rules/no-constant-condition.js +++ b/node_modules/eslint/lib/rules/no-constant-condition.js @@ -20,6 +20,8 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ checkLoops: "allExceptWhileTrue" }], + docs: { description: "Disallow constant expressions in conditions", recommended: true, @@ -31,8 +33,7 @@ module.exports = { type: "object", properties: { checkLoops: { - type: "boolean", - default: true + enum: ["all", "allExceptWhileTrue", "none", true, false] } }, additionalProperties: false @@ -45,10 +46,15 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}, - checkLoops = options.checkLoops !== false, - loopSetStack = []; + const loopSetStack = []; const sourceCode = context.sourceCode; + let [{ checkLoops }] = context.options; + + if (checkLoops === true) { + checkLoops = "all"; + } else if (checkLoops === false) { + checkLoops = "none"; + } let loopsInCurrentScope = new Set(); @@ -120,7 +126,7 @@ module.exports = { * @private */ function checkLoop(node) { - if (checkLoops) { + if (checkLoops === "all" || checkLoops === "allExceptWhileTrue") { trackConstantConditionLoop(node); } } @@ -132,7 +138,13 @@ module.exports = { return { ConditionalExpression: reportIfConstant, IfStatement: reportIfConstant, - WhileStatement: checkLoop, + WhileStatement(node) { + if (node.test.type === "Literal" && node.test.value === true && checkLoops === "allExceptWhileTrue") { + return; + } + + checkLoop(node); + }, "WhileStatement:exit": checkConstantConditionLoopInSet, DoWhileStatement: checkLoop, "DoWhileStatement:exit": checkConstantConditionLoopInSet, diff --git a/node_modules/eslint/lib/rules/no-constructor-return.js b/node_modules/eslint/lib/rules/no-constructor-return.js index d7d98939..e9ef7385 100644 --- a/node_modules/eslint/lib/rules/no-constructor-return.js +++ b/node_modules/eslint/lib/rules/no-constructor-return.js @@ -20,7 +20,7 @@ module.exports = { url: "https://eslint.org/docs/latest/rules/no-constructor-return" }, - schema: {}, + schema: [], fixable: null, @@ -40,7 +40,7 @@ module.exports = { stack.pop(); }, ReturnStatement(node) { - const last = stack[stack.length - 1]; + const last = stack.at(-1); if (!last.parent) { return; @@ -49,7 +49,7 @@ module.exports = { if ( last.parent.type === "MethodDefinition" && last.parent.kind === "constructor" && - (node.parent.parent === last || node.argument) + node.argument ) { context.report({ node, diff --git a/node_modules/eslint/lib/rules/no-dupe-class-members.js b/node_modules/eslint/lib/rules/no-dupe-class-members.js index 2a7a9e81..c3355321 100644 --- a/node_modules/eslint/lib/rules/no-dupe-class-members.js +++ b/node_modules/eslint/lib/rules/no-dupe-class-members.js @@ -42,7 +42,7 @@ module.exports = { * - retv.set {boolean} A flag which shows the name is declared as setter. */ function getState(name, isStatic) { - const stateMap = stack[stack.length - 1]; + const stateMap = stack.at(-1); const key = `$${name}`; // to avoid "__proto__". if (!stateMap[key]) { @@ -82,7 +82,7 @@ module.exports = { } const state = getState(name, node.static); - let isDuplicate = false; + let isDuplicate; if (kind === "get") { isDuplicate = (state.init || state.get); diff --git a/node_modules/eslint/lib/rules/no-duplicate-imports.js b/node_modules/eslint/lib/rules/no-duplicate-imports.js index 25c07b75..1bc52cf9 100644 --- a/node_modules/eslint/lib/rules/no-duplicate-imports.js +++ b/node_modules/eslint/lib/rules/no-duplicate-imports.js @@ -232,6 +232,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + includeExports: false + }], + docs: { description: "Disallow duplicate module imports", recommended: false, @@ -243,8 +247,7 @@ module.exports = { type: "object", properties: { includeExports: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -260,8 +263,8 @@ module.exports = { }, create(context) { - const includeExports = (context.options[0] || {}).includeExports, - modules = new Map(); + const [{ includeExports }] = context.options; + const modules = new Map(); const handlers = { ImportDeclaration: handleImportsExports( context, diff --git a/node_modules/eslint/lib/rules/no-else-return.js b/node_modules/eslint/lib/rules/no-else-return.js index 9dbf5696..d456181b 100644 --- a/node_modules/eslint/lib/rules/no-else-return.js +++ b/node_modules/eslint/lib/rules/no-else-return.js @@ -21,6 +21,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ allowElseIf: true }], + docs: { description: "Disallow `else` blocks after `return` statements in `if` statements", recommended: false, @@ -31,8 +33,7 @@ module.exports = { type: "object", properties: { allowElseIf: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -46,7 +47,7 @@ module.exports = { }, create(context) { - + const [{ allowElseIf }] = context.options; const sourceCode = context.sourceCode; //-------------------------------------------------------------------------- @@ -270,7 +271,7 @@ module.exports = { function naiveHasReturn(node) { if (node.type === "BlockStatement") { const body = node.body, - lastChildNode = body[body.length - 1]; + lastChildNode = body.at(-1); return lastChildNode && checkForReturn(lastChildNode); } @@ -389,8 +390,6 @@ module.exports = { } } - const allowElseIf = !(context.options[0] && context.options[0].allowElseIf === false); - //-------------------------------------------------------------------------- // Public API //-------------------------------------------------------------------------- diff --git a/node_modules/eslint/lib/rules/no-empty-function.js b/node_modules/eslint/lib/rules/no-empty-function.js index 2fcb7553..16e611bb 100644 --- a/node_modules/eslint/lib/rules/no-empty-function.js +++ b/node_modules/eslint/lib/rules/no-empty-function.js @@ -40,7 +40,7 @@ const ALLOW_OPTIONS = Object.freeze([ */ function getKind(node) { const parent = node.parent; - let kind = ""; + let kind; if (node.type === "ArrowFunctionExpression") { return "arrowFunctions"; @@ -73,7 +73,7 @@ function getKind(node) { } // Detects prefix. - let prefix = ""; + let prefix; if (node.generator) { prefix = "generator"; @@ -94,6 +94,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ allow: [] }], + docs: { description: "Disallow empty functions", recommended: false, @@ -120,9 +122,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; - + const [{ allow }] = context.options; const sourceCode = context.sourceCode; /** @@ -144,7 +144,7 @@ module.exports = { filter: astUtils.isCommentToken }); - if (!allowed.includes(kind) && + if (!allow.includes(kind) && node.body.type === "BlockStatement" && node.body.body.length === 0 && innerComments.length === 0 diff --git a/node_modules/eslint/lib/rules/no-empty-pattern.js b/node_modules/eslint/lib/rules/no-empty-pattern.js index fb75f6d2..eb81d8ab 100644 --- a/node_modules/eslint/lib/rules/no-empty-pattern.js +++ b/node_modules/eslint/lib/rules/no-empty-pattern.js @@ -15,6 +15,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowObjectPatternsAsParameters: false + }], + docs: { description: "Disallow empty destructuring patterns", recommended: true, @@ -26,8 +30,7 @@ module.exports = { type: "object", properties: { allowObjectPatternsAsParameters: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -40,8 +43,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}, - allowObjectPatternsAsParameters = options.allowObjectPatternsAsParameters || false; + const [{ allowObjectPatternsAsParameters }] = context.options; return { ObjectPattern(node) { diff --git a/node_modules/eslint/lib/rules/no-empty-static-block.js b/node_modules/eslint/lib/rules/no-empty-static-block.js index 81fc449b..558c4fad 100644 --- a/node_modules/eslint/lib/rules/no-empty-static-block.js +++ b/node_modules/eslint/lib/rules/no-empty-static-block.js @@ -15,7 +15,7 @@ module.exports = { docs: { description: "Disallow empty static blocks", - recommended: false, + recommended: true, url: "https://eslint.org/docs/latest/rules/no-empty-static-block" }, diff --git a/node_modules/eslint/lib/rules/no-empty.js b/node_modules/eslint/lib/rules/no-empty.js index 1c157963..b5df621c 100644 --- a/node_modules/eslint/lib/rules/no-empty.js +++ b/node_modules/eslint/lib/rules/no-empty.js @@ -20,6 +20,10 @@ module.exports = { hasSuggestions: true, type: "suggestion", + defaultOptions: [{ + allowEmptyCatch: false + }], + docs: { description: "Disallow empty block statements", recommended: true, @@ -31,8 +35,7 @@ module.exports = { type: "object", properties: { allowEmptyCatch: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -46,9 +49,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}, - allowEmptyCatch = options.allowEmptyCatch || false; - + const [{ allowEmptyCatch }] = context.options; const sourceCode = context.sourceCode; return { diff --git a/node_modules/eslint/lib/rules/no-eval.js b/node_modules/eslint/lib/rules/no-eval.js index a059526a..bb35d4e0 100644 --- a/node_modules/eslint/lib/rules/no-eval.js +++ b/node_modules/eslint/lib/rules/no-eval.js @@ -42,6 +42,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowIndirect: false + }], + docs: { description: "Disallow the use of `eval()`", recommended: false, @@ -52,7 +56,7 @@ module.exports = { { type: "object", properties: { - allowIndirect: { type: "boolean", default: false } + allowIndirect: { type: "boolean" } }, additionalProperties: false } @@ -64,10 +68,7 @@ module.exports = { }, create(context) { - const allowIndirect = Boolean( - context.options[0] && - context.options[0].allowIndirect - ); + const [{ allowIndirect }] = context.options; const sourceCode = context.sourceCode; let funcInfo = null; diff --git a/node_modules/eslint/lib/rules/no-extend-native.js b/node_modules/eslint/lib/rules/no-extend-native.js index fcbb3855..7164c091 100644 --- a/node_modules/eslint/lib/rules/no-extend-native.js +++ b/node_modules/eslint/lib/rules/no-extend-native.js @@ -10,7 +10,6 @@ //------------------------------------------------------------------------------ const astUtils = require("./utils/ast-utils"); -const globals = require("globals"); //------------------------------------------------------------------------------ // Rule Definition @@ -21,6 +20,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ exceptions: [] }], + docs: { description: "Disallow extending native types", recommended: false, @@ -49,12 +50,10 @@ module.exports = { }, create(context) { - - const config = context.options[0] || {}; const sourceCode = context.sourceCode; - const exceptions = new Set(config.exceptions || []); + const exceptions = new Set(context.options[0].exceptions); const modifiedBuiltins = new Set( - Object.keys(globals.builtin) + Object.keys(astUtils.ECMASCRIPT_GLOBALS) .filter(builtin => builtin[0].toUpperCase() === builtin[0]) .filter(builtin => !exceptions.has(builtin)) ); diff --git a/node_modules/eslint/lib/rules/no-extra-boolean-cast.js b/node_modules/eslint/lib/rules/no-extra-boolean-cast.js index f342533b..fc17e995 100644 --- a/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +++ b/node_modules/eslint/lib/rules/no-extra-boolean-cast.js @@ -23,6 +23,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{}], + docs: { description: "Disallow unnecessary boolean casts", recommended: true, @@ -30,14 +32,28 @@ module.exports = { }, schema: [{ - type: "object", - properties: { - enforceForLogicalOperands: { - type: "boolean", - default: false + anyOf: [ + { + type: "object", + properties: { + enforceForInnerExpressions: { + type: "boolean" + } + }, + additionalProperties: false + }, + + // deprecated + { + type: "object", + properties: { + enforceForLogicalOperands: { + type: "boolean" + } + }, + additionalProperties: false } - }, - additionalProperties: false + ] }], fixable: "code", @@ -49,6 +65,7 @@ module.exports = { create(context) { const sourceCode = context.sourceCode; + const [{ enforceForLogicalOperands, enforceForInnerExpressions }] = context.options; // Node types which have a test which will coerce values to booleans. const BOOLEAN_NODE_TYPES = new Set([ @@ -72,19 +89,6 @@ module.exports = { node.callee.name === "Boolean"; } - /** - * Checks whether the node is a logical expression and that the option is enabled - * @param {ASTNode} node the node - * @returns {boolean} if the node is a logical expression and option is enabled - */ - function isLogicalContext(node) { - return node.type === "LogicalExpression" && - (node.operator === "||" || node.operator === "&&") && - (context.options.length && context.options[0].enforceForLogicalOperands === true); - - } - - /** * Check if a node is in a context where its value would be coerced to a boolean at runtime. * @param {ASTNode} node The node @@ -115,12 +119,51 @@ module.exports = { return isInFlaggedContext(node.parent); } - return isInBooleanContext(node) || - (isLogicalContext(node.parent) && + /* + * legacy behavior - enforceForLogicalOperands will only recurse on + * logical expressions, not on other contexts. + * enforceForInnerExpressions will recurse on logical expressions + * as well as the other recursive syntaxes. + */ + + if (enforceForLogicalOperands || enforceForInnerExpressions) { + if (node.parent.type === "LogicalExpression") { + if (node.parent.operator === "||" || node.parent.operator === "&&") { + return isInFlaggedContext(node.parent); + } - // For nested logical statements - isInFlaggedContext(node.parent) - ); + // Check the right hand side of a `??` operator. + if (enforceForInnerExpressions && + node.parent.operator === "??" && + node.parent.right === node + ) { + return isInFlaggedContext(node.parent); + } + } + } + + if (enforceForInnerExpressions) { + if ( + node.parent.type === "ConditionalExpression" && + (node.parent.consequent === node || node.parent.alternate === node) + ) { + return isInFlaggedContext(node.parent); + } + + /* + * Check last expression only in a sequence, i.e. if ((1, 2, Boolean(3))) {}, since + * the others don't affect the result of the expression. + */ + if ( + node.parent.type === "SequenceExpression" && + node.parent.expressions.at(-1) === node + ) { + return isInFlaggedContext(node.parent); + } + + } + + return isInBooleanContext(node); } @@ -147,7 +190,6 @@ module.exports = { * Determines whether the given node needs to be parenthesized when replacing the previous node. * It assumes that `previousNode` is the node to be reported by this rule, so it has a limited list * of possible parent node types. By the same assumption, the node's role in a particular parent is already known. - * For example, if the parent is `ConditionalExpression`, `previousNode` must be its `test` child. * @param {ASTNode} previousNode Previous node. * @param {ASTNode} node The node to check. * @throws {Error} (Unreachable.) @@ -157,6 +199,7 @@ module.exports = { if (previousNode.parent.type === "ChainExpression") { return needsParens(previousNode.parent, node); } + if (isParenthesized(previousNode)) { // parentheses around the previous node will stay, so there is no need for an additional pair @@ -174,9 +217,18 @@ module.exports = { case "DoWhileStatement": case "WhileStatement": case "ForStatement": + case "SequenceExpression": return false; case "ConditionalExpression": - return precedence(node) <= precedence(parent); + if (previousNode === parent.test) { + return precedence(node) <= precedence(parent); + } + if (previousNode === parent.consequent || previousNode === parent.alternate) { + return precedence(node) < precedence({ type: "AssignmentExpression" }); + } + + /* c8 ignore next */ + throw new Error("Ternary child must be test, consequent, or alternate."); case "UnaryExpression": return precedence(node) < precedence(parent); case "LogicalExpression": diff --git a/node_modules/eslint/lib/rules/no-extra-semi.js b/node_modules/eslint/lib/rules/no-extra-semi.js index af7eb888..1daf2242 100644 --- a/node_modules/eslint/lib/rules/no-extra-semi.js +++ b/node_modules/eslint/lib/rules/no-extra-semi.js @@ -26,7 +26,7 @@ module.exports = { docs: { description: "Disallow unnecessary semicolons", - recommended: true, + recommended: false, url: "https://eslint.org/docs/latest/rules/no-extra-semi" }, diff --git a/node_modules/eslint/lib/rules/no-fallthrough.js b/node_modules/eslint/lib/rules/no-fallthrough.js index 91da1212..1057aae9 100644 --- a/node_modules/eslint/lib/rules/no-fallthrough.js +++ b/node_modules/eslint/lib/rules/no-fallthrough.js @@ -48,9 +48,9 @@ function isFallThroughComment(comment, fallthroughCommentPattern) { * @param {ASTNode} subsequentCase The case after caseWhichFallsThrough. * @param {RuleContext} context A rule context which stores comments. * @param {RegExp} fallthroughCommentPattern A pattern to match comment to. - * @returns {boolean} `true` if the case has a valid fallthrough comment. + * @returns {null | object} the comment if the case has a valid fallthrough comment, otherwise null */ -function hasFallthroughComment(caseWhichFallsThrough, subsequentCase, context, fallthroughCommentPattern) { +function getFallthroughComment(caseWhichFallsThrough, subsequentCase, context, fallthroughCommentPattern) { const sourceCode = context.sourceCode; if (caseWhichFallsThrough.consequent.length === 1 && caseWhichFallsThrough.consequent[0].type === "BlockStatement") { @@ -58,13 +58,17 @@ function hasFallthroughComment(caseWhichFallsThrough, subsequentCase, context, f const commentInBlock = sourceCode.getCommentsBefore(trailingCloseBrace).pop(); if (commentInBlock && isFallThroughComment(commentInBlock.value, fallthroughCommentPattern)) { - return true; + return commentInBlock; } } const comment = sourceCode.getCommentsBefore(subsequentCase).pop(); - return Boolean(comment && isFallThroughComment(comment.value, fallthroughCommentPattern)); + if (comment && isFallThroughComment(comment.value, fallthroughCommentPattern)) { + return comment; + } + + return null; } /** @@ -86,6 +90,11 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowEmptyCase: false, + reportUnusedFallthroughComment: false + }], + docs: { description: "Disallow fallthrough of `case` statements", recommended: true, @@ -97,42 +106,40 @@ module.exports = { type: "object", properties: { commentPattern: { - type: "string", - default: "" + type: "string" }, allowEmptyCase: { - type: "boolean", - default: false + type: "boolean" + }, + reportUnusedFallthroughComment: { + type: "boolean" } }, additionalProperties: false } ], messages: { + unusedFallthroughComment: "Found a comment that would permit fallthrough, but case cannot fall through.", case: "Expected a 'break' statement before 'case'.", default: "Expected a 'break' statement before 'default'." } }, create(context) { - const options = context.options[0] || {}; const codePathSegments = []; let currentCodePathSegments = new Set(); const sourceCode = context.sourceCode; - const allowEmptyCase = options.allowEmptyCase || false; + const [{ allowEmptyCase, commentPattern, reportUnusedFallthroughComment }] = context.options; + const fallthroughCommentPattern = commentPattern + ? new RegExp(commentPattern, "u") + : DEFAULT_FALLTHROUGH_COMMENT; /* * We need to use leading comments of the next SwitchCase node because * trailing comments is wrong if semicolons are omitted. */ - let fallthroughCase = null; - let fallthroughCommentPattern = null; + let previousCase = null; - if (options.commentPattern) { - fallthroughCommentPattern = new RegExp(options.commentPattern, "u"); - } else { - fallthroughCommentPattern = DEFAULT_FALLTHROUGH_COMMENT; - } return { onCodePathStart() { @@ -168,13 +175,23 @@ module.exports = { * And reports the previous fallthrough node if that does not exist. */ - if (fallthroughCase && (!hasFallthroughComment(fallthroughCase, node, context, fallthroughCommentPattern))) { - context.report({ - messageId: node.test ? "case" : "default", - node - }); + if (previousCase && previousCase.node.parent === node.parent) { + const previousCaseFallthroughComment = getFallthroughComment(previousCase.node, node, context, fallthroughCommentPattern); + + if (previousCase.isFallthrough && !(previousCaseFallthroughComment)) { + context.report({ + messageId: node.test ? "case" : "default", + node + }); + } else if (reportUnusedFallthroughComment && !previousCase.isSwitchExitReachable && previousCaseFallthroughComment) { + context.report({ + messageId: "unusedFallthroughComment", + node: previousCaseFallthroughComment + }); + } + } - fallthroughCase = null; + previousCase = null; }, "SwitchCase:exit"(node) { @@ -185,11 +202,16 @@ module.exports = { * `break`, `return`, or `throw` are unreachable. * And allows empty cases and the last case. */ - if (isAnySegmentReachable(currentCodePathSegments) && - (node.consequent.length > 0 || (!allowEmptyCase && hasBlankLinesBetween(node, nextToken))) && - node.parent.cases[node.parent.cases.length - 1] !== node) { - fallthroughCase = node; - } + const isSwitchExitReachable = isAnySegmentReachable(currentCodePathSegments); + const isFallthrough = isSwitchExitReachable && (node.consequent.length > 0 || (!allowEmptyCase && hasBlankLinesBetween(node, nextToken))) && + node.parent.cases.at(-1) !== node; + + previousCase = { + node, + isSwitchExitReachable, + isFallthrough + }; + } }; } diff --git a/node_modules/eslint/lib/rules/no-global-assign.js b/node_modules/eslint/lib/rules/no-global-assign.js index 99ae7a2e..0a6f65eb 100644 --- a/node_modules/eslint/lib/rules/no-global-assign.js +++ b/node_modules/eslint/lib/rules/no-global-assign.js @@ -14,6 +14,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ exceptions: [] }], + docs: { description: "Disallow assignments to native objects or read-only global variables", recommended: true, @@ -40,9 +42,8 @@ module.exports = { }, create(context) { - const config = context.options[0]; const sourceCode = context.sourceCode; - const exceptions = (config && config.exceptions) || []; + const [{ exceptions }] = context.options; /** * Reports write references. diff --git a/node_modules/eslint/lib/rules/no-implicit-coercion.js b/node_modules/eslint/lib/rules/no-implicit-coercion.js index 36baad38..e82638fd 100644 --- a/node_modules/eslint/lib/rules/no-implicit-coercion.js +++ b/node_modules/eslint/lib/rules/no-implicit-coercion.js @@ -12,22 +12,7 @@ const astUtils = require("./utils/ast-utils"); //------------------------------------------------------------------------------ const INDEX_OF_PATTERN = /^(?:i|lastI)ndexOf$/u; -const ALLOWABLE_OPERATORS = ["~", "!!", "+", "*"]; - -/** - * Parses and normalizes an option object. - * @param {Object} options An option object to parse. - * @returns {Object} The parsed and normalized option object. - */ -function parseOptions(options) { - return { - boolean: "boolean" in options ? options.boolean : true, - number: "number" in options ? options.number : true, - string: "string" in options ? options.string : true, - disallowTemplateShorthand: "disallowTemplateShorthand" in options ? options.disallowTemplateShorthand : false, - allow: options.allow || [] - }; -} +const ALLOWABLE_OPERATORS = ["~", "!!", "+", "- -", "-", "*"]; /** * Checks whether or not a node is a double logical negating. @@ -188,6 +173,7 @@ function getNonEmptyOperand(node) { /** @type {import('../shared/types').Rule} */ module.exports = { meta: { + hasSuggestions: true, type: "suggestion", docs: { @@ -202,20 +188,16 @@ module.exports = { type: "object", properties: { boolean: { - type: "boolean", - default: true + type: "boolean" }, number: { - type: "boolean", - default: true + type: "boolean" }, string: { - type: "boolean", - default: true + type: "boolean" }, disallowTemplateShorthand: { - type: "boolean", - default: false + type: "boolean" }, allow: { type: "array", @@ -228,45 +210,76 @@ module.exports = { additionalProperties: false }], + defaultOptions: [{ + allow: [], + boolean: true, + disallowTemplateShorthand: false, + number: true, + string: true + }], + messages: { - useRecommendation: "use `{{recommendation}}` instead." + implicitCoercion: "Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.", + useRecommendation: "Use `{{recommendation}}` instead." } }, create(context) { - const options = parseOptions(context.options[0] || {}); + const [options] = context.options; const sourceCode = context.sourceCode; /** * Reports an error and autofixes the node * @param {ASTNode} node An ast node to report the error on. * @param {string} recommendation The recommended code for the issue + * @param {bool} shouldSuggest Whether this report should offer a suggestion * @param {bool} shouldFix Whether this report should fix the node * @returns {void} */ - function report(node, recommendation, shouldFix) { + function report(node, recommendation, shouldSuggest, shouldFix) { + + /** + * Fix function + * @param {RuleFixer} fixer The fixer to fix. + * @returns {Fix} The fix object. + */ + function fix(fixer) { + const tokenBefore = sourceCode.getTokenBefore(node); + + if ( + tokenBefore?.range[1] === node.range[0] && + !astUtils.canTokensBeAdjacent(tokenBefore, recommendation) + ) { + return fixer.replaceText(node, ` ${recommendation}`); + } + + return fixer.replaceText(node, recommendation); + } + context.report({ node, - messageId: "useRecommendation", - data: { - recommendation - }, + messageId: "implicitCoercion", + data: { recommendation }, fix(fixer) { if (!shouldFix) { return null; } - const tokenBefore = sourceCode.getTokenBefore(node); - - if ( - tokenBefore && - tokenBefore.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, recommendation) - ) { - return fixer.replaceText(node, ` ${recommendation}`); + return fix(fixer); + }, + suggest: [ + { + messageId: "useRecommendation", + data: { recommendation }, + fix(fixer) { + if (shouldFix || !shouldSuggest) { + return null; + } + + return fix(fixer); + } } - return fixer.replaceText(node, recommendation); - } + ] }); } @@ -278,8 +291,10 @@ module.exports = { operatorAllowed = options.allow.includes("!!"); if (!operatorAllowed && options.boolean && isDoubleLogicalNegating(node)) { const recommendation = `Boolean(${sourceCode.getText(node.argument.argument)})`; + const variable = astUtils.getVariableByName(sourceCode.getScope(node), "Boolean"); + const booleanExists = variable?.identifiers.length === 0; - report(node, recommendation, true); + report(node, recommendation, true, booleanExists); } // ~foo.indexOf(bar) @@ -290,7 +305,7 @@ module.exports = { const comparison = node.argument.type === "ChainExpression" ? ">= 0" : "!== -1"; const recommendation = `${sourceCode.getText(node.argument)} ${comparison}`; - report(node, recommendation, false); + report(node, recommendation, false, false); } // +foo @@ -298,7 +313,15 @@ module.exports = { if (!operatorAllowed && options.number && node.operator === "+" && !isNumeric(node.argument)) { const recommendation = `Number(${sourceCode.getText(node.argument)})`; - report(node, recommendation, true); + report(node, recommendation, true, false); + } + + // -(-foo) + operatorAllowed = options.allow.includes("- -"); + if (!operatorAllowed && options.number && node.operator === "-" && node.argument.type === "UnaryExpression" && node.argument.operator === "-" && !isNumeric(node.argument.argument)) { + const recommendation = `Number(${sourceCode.getText(node.argument.argument)})`; + + report(node, recommendation, true, false); } }, @@ -314,7 +337,15 @@ module.exports = { if (nonNumericOperand) { const recommendation = `Number(${sourceCode.getText(nonNumericOperand)})`; - report(node, recommendation, true); + report(node, recommendation, true, false); + } + + // foo - 0 + operatorAllowed = options.allow.includes("-"); + if (!operatorAllowed && options.number && node.operator === "-" && node.right.type === "Literal" && node.right.value === 0 && !isNumeric(node.left)) { + const recommendation = `Number(${sourceCode.getText(node.left)})`; + + report(node, recommendation, true, false); } // "" + foo @@ -322,7 +353,7 @@ module.exports = { if (!operatorAllowed && options.string && isConcatWithEmptyString(node)) { const recommendation = `String(${sourceCode.getText(getNonEmptyOperand(node))})`; - report(node, recommendation, true); + report(node, recommendation, true, false); } }, @@ -335,7 +366,7 @@ module.exports = { const code = sourceCode.getText(getNonEmptyOperand(node)); const recommendation = `${code} = String(${code})`; - report(node, recommendation, true); + report(node, recommendation, true, false); } }, @@ -373,7 +404,7 @@ module.exports = { const code = sourceCode.getText(node.expressions[0]); const recommendation = `String(${code})`; - report(node, recommendation, true); + report(node, recommendation, true, false); } }; } diff --git a/node_modules/eslint/lib/rules/no-implicit-globals.js b/node_modules/eslint/lib/rules/no-implicit-globals.js index 2a182477..0ed96e8a 100644 --- a/node_modules/eslint/lib/rules/no-implicit-globals.js +++ b/node_modules/eslint/lib/rules/no-implicit-globals.js @@ -14,6 +14,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + lexicalBindings: false + }], + docs: { description: "Disallow declarations in the global scope", recommended: false, @@ -24,8 +28,7 @@ module.exports = { type: "object", properties: { lexicalBindings: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -41,8 +44,7 @@ module.exports = { }, create(context) { - - const checkLexicalBindings = context.options[0] && context.options[0].lexicalBindings === true; + const [{ lexicalBindings: checkLexicalBindings }] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/no-inline-comments.js b/node_modules/eslint/lib/rules/no-inline-comments.js index d96e6472..439418c7 100644 --- a/node_modules/eslint/lib/rules/no-inline-comments.js +++ b/node_modules/eslint/lib/rules/no-inline-comments.js @@ -15,6 +15,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{}], + docs: { description: "Disallow inline comments after code", recommended: false, @@ -40,12 +42,8 @@ module.exports = { create(context) { const sourceCode = context.sourceCode; - const options = context.options[0]; - let customIgnoreRegExp; - - if (options && options.ignorePattern) { - customIgnoreRegExp = new RegExp(options.ignorePattern, "u"); - } + const [{ ignorePattern }] = context.options; + const customIgnoreRegExp = ignorePattern && new RegExp(ignorePattern, "u"); /** * Will check that comments are not on lines starting with or ending with code diff --git a/node_modules/eslint/lib/rules/no-inner-declarations.js b/node_modules/eslint/lib/rules/no-inner-declarations.js index f4bae43e..c90b9fa6 100644 --- a/node_modules/eslint/lib/rules/no-inner-declarations.js +++ b/node_modules/eslint/lib/rules/no-inner-declarations.js @@ -47,15 +47,26 @@ module.exports = { meta: { type: "problem", + defaultOptions: ["functions", { blockScopedFunctions: "allow" }], + docs: { description: "Disallow variable or `function` declarations in nested blocks", - recommended: true, + recommended: false, url: "https://eslint.org/docs/latest/rules/no-inner-declarations" }, schema: [ { enum: ["functions", "both"] + }, + { + type: "object", + properties: { + blockScopedFunctions: { + enum: ["allow", "disallow"] + } + }, + additionalProperties: false } ], @@ -65,6 +76,11 @@ module.exports = { }, create(context) { + const both = context.options[0] === "both"; + const { blockScopedFunctions } = context.options[1]; + + const sourceCode = context.sourceCode; + const ecmaVersion = context.languageOptions.ecmaVersion; /** * Ensure that a given node is at a program or function body's root. @@ -94,12 +110,19 @@ module.exports = { }); } - return { - FunctionDeclaration: check, + FunctionDeclaration(node) { + const isInStrictCode = sourceCode.getScope(node).upper.isStrict; + + if (blockScopedFunctions === "allow" && ecmaVersion >= 2015 && isInStrictCode) { + return; + } + + check(node); + }, VariableDeclaration(node) { - if (context.options[0] === "both" && node.kind === "var") { + if (both && node.kind === "var") { check(node); } } diff --git a/node_modules/eslint/lib/rules/no-invalid-regexp.js b/node_modules/eslint/lib/rules/no-invalid-regexp.js index 3c42a68e..635bd666 100644 --- a/node_modules/eslint/lib/rules/no-invalid-regexp.js +++ b/node_modules/eslint/lib/rules/no-invalid-regexp.js @@ -10,7 +10,7 @@ const RegExpValidator = require("@eslint-community/regexpp").RegExpValidator; const validator = new RegExpValidator(); -const validFlags = /[dgimsuvy]/gu; +const validFlags = "dgimsuvy"; const undefined1 = void 0; //------------------------------------------------------------------------------ @@ -22,6 +22,8 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{}], + docs: { description: "Disallow invalid regular expression strings in `RegExp` constructors", recommended: true, @@ -47,15 +49,14 @@ module.exports = { }, create(context) { + const [{ allowConstructorFlags }] = context.options; + let allowedFlags = []; - const options = context.options[0]; - let allowedFlags = null; - - if (options && options.allowConstructorFlags) { - const temp = options.allowConstructorFlags.join("").replace(validFlags, ""); + if (allowConstructorFlags) { + const temp = allowConstructorFlags.join("").replace(new RegExp(`[${validFlags}]`, "gu"), ""); if (temp) { - allowedFlags = new RegExp(`[${temp}]`, "giu"); + allowedFlags = [...new Set(temp)]; } } @@ -125,16 +126,19 @@ module.exports = { /** * Check syntax error in a given flags. * @param {string|null} flags The RegExp flags to validate. + * @param {string|null} flagsToCheck The RegExp invalid flags. + * @param {string} allFlags all valid and allowed flags. * @returns {string|null} The syntax error. */ - function validateRegExpFlags(flags) { - if (!flags) { - return null; - } - try { - validator.validateFlags(flags); - } catch { - return `Invalid flags supplied to RegExp constructor '${flags}'`; + function validateRegExpFlags(flags, flagsToCheck, allFlags) { + const duplicateFlags = []; + + if (typeof flagsToCheck === "string") { + for (const flag of flagsToCheck) { + if (allFlags.includes(flag)) { + duplicateFlags.push(flag); + } + } } /* @@ -142,10 +146,19 @@ module.exports = { * but this rule may check only the flag when the pattern is unidentifiable, so check it here. * https://tc39.es/ecma262/multipage/text-processing.html#sec-parsepattern */ - if (flags.includes("u") && flags.includes("v")) { + if (flags && flags.includes("u") && flags.includes("v")) { return "Regex 'u' and 'v' flags cannot be used together"; } - return null; + + if (duplicateFlags.length > 0) { + return `Duplicate flags ('${duplicateFlags.join("")}') supplied to RegExp constructor`; + } + + if (!flagsToCheck) { + return null; + } + + return `Invalid flags supplied to RegExp constructor '${flagsToCheck}'`; } return { @@ -154,13 +167,17 @@ module.exports = { return; } - let flags = getFlags(node); + const flags = getFlags(node); + let flagsToCheck = flags; + const allFlags = allowedFlags.length > 0 ? validFlags.split("").concat(allowedFlags) : validFlags.split(""); - if (flags && allowedFlags) { - flags = flags.replace(allowedFlags, ""); + if (flags) { + allFlags.forEach(flag => { + flagsToCheck = flagsToCheck.replace(flag, ""); + }); } - let message = validateRegExpFlags(flags); + let message = validateRegExpFlags(flags, flagsToCheck, allFlags); if (message) { report(node, message); diff --git a/node_modules/eslint/lib/rules/no-invalid-this.js b/node_modules/eslint/lib/rules/no-invalid-this.js index 9e214035..0a7b9e40 100644 --- a/node_modules/eslint/lib/rules/no-invalid-this.js +++ b/node_modules/eslint/lib/rules/no-invalid-this.js @@ -35,6 +35,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ capIsConstructor: true }], + docs: { description: "Disallow use of `this` in contexts where the value of `this` is `undefined`", recommended: false, @@ -46,8 +48,7 @@ module.exports = { type: "object", properties: { capIsConstructor: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -60,8 +61,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const capIsConstructor = options.capIsConstructor !== false; + const [{ capIsConstructor }] = context.options; const stack = [], sourceCode = context.sourceCode; @@ -74,7 +74,7 @@ module.exports = { * an object which has a flag that whether or not `this` keyword is valid. */ stack.getCurrent = function() { - const current = this[this.length - 1]; + const current = this.at(-1); if (!current.init) { current.init = true; diff --git a/node_modules/eslint/lib/rules/no-irregular-whitespace.js b/node_modules/eslint/lib/rules/no-irregular-whitespace.js index ab7ccac5..3069db18 100644 --- a/node_modules/eslint/lib/rules/no-irregular-whitespace.js +++ b/node_modules/eslint/lib/rules/no-irregular-whitespace.js @@ -30,6 +30,14 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + skipComments: false, + skipJSXText: false, + skipRegExps: false, + skipStrings: true, + skipTemplates: false + }], + docs: { description: "Disallow irregular whitespace", recommended: true, @@ -41,24 +49,19 @@ module.exports = { type: "object", properties: { skipComments: { - type: "boolean", - default: false + type: "boolean" }, skipStrings: { - type: "boolean", - default: true + type: "boolean" }, skipTemplates: { - type: "boolean", - default: false + type: "boolean" }, skipRegExps: { - type: "boolean", - default: false + type: "boolean" }, skipJSXText: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -71,21 +74,20 @@ module.exports = { }, create(context) { - - // Module store of errors that we have found - let errors = []; - - // Lookup the `skipComments` option, which defaults to `false`. - const options = context.options[0] || {}; - const skipComments = !!options.skipComments; - const skipStrings = options.skipStrings !== false; - const skipRegExps = !!options.skipRegExps; - const skipTemplates = !!options.skipTemplates; - const skipJSXText = !!options.skipJSXText; + const [{ + skipComments, + skipStrings, + skipRegExps, + skipTemplates, + skipJSXText + }] = context.options; const sourceCode = context.sourceCode; const commentNodes = sourceCode.getAllComments(); + // Module store of errors that we have found + let errors = []; + /** * Removes errors that occur inside the given node * @param {ASTNode} node to check for matching errors. @@ -233,7 +235,7 @@ module.exports = { * @returns {void} * @private */ - function noop() {} + function noop() { } const nodes = {}; diff --git a/node_modules/eslint/lib/rules/no-labels.js b/node_modules/eslint/lib/rules/no-labels.js index d991a0a8..3860bf8a 100644 --- a/node_modules/eslint/lib/rules/no-labels.js +++ b/node_modules/eslint/lib/rules/no-labels.js @@ -19,6 +19,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowLoop: false, + allowSwitch: false + }], + docs: { description: "Disallow labeled statements", recommended: false, @@ -30,12 +35,10 @@ module.exports = { type: "object", properties: { allowLoop: { - type: "boolean", - default: false + type: "boolean" }, allowSwitch: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -50,9 +53,7 @@ module.exports = { }, create(context) { - const options = context.options[0]; - const allowLoop = options && options.allowLoop; - const allowSwitch = options && options.allowSwitch; + const [{ allowLoop, allowSwitch }] = context.options; let scopeInfo = null; /** diff --git a/node_modules/eslint/lib/rules/no-lone-blocks.js b/node_modules/eslint/lib/rules/no-lone-blocks.js index 767eec2b..2e270892 100644 --- a/node_modules/eslint/lib/rules/no-lone-blocks.js +++ b/node_modules/eslint/lib/rules/no-lone-blocks.js @@ -78,7 +78,7 @@ module.exports = { const block = node.parent; - if (loneBlocks[loneBlocks.length - 1] === block) { + if (loneBlocks.at(-1) === block) { loneBlocks.pop(); } } @@ -101,7 +101,7 @@ module.exports = { } }, "BlockStatement:exit"(node) { - if (loneBlocks.length > 0 && loneBlocks[loneBlocks.length - 1] === node) { + if (loneBlocks.length > 0 && loneBlocks.at(-1) === node) { loneBlocks.pop(); report(node); } else if ( @@ -117,7 +117,7 @@ module.exports = { }; ruleDef.VariableDeclaration = function(node) { - if (node.kind === "let" || node.kind === "const") { + if (node.kind !== "var") { markLoneBlock(node); } }; diff --git a/node_modules/eslint/lib/rules/no-lonely-if.js b/node_modules/eslint/lib/rules/no-lonely-if.js index eefd2c68..bec9f020 100644 --- a/node_modules/eslint/lib/rules/no-lonely-if.js +++ b/node_modules/eslint/lib/rules/no-lonely-if.js @@ -4,6 +4,12 @@ */ "use strict"; +//------------------------------------------------------------------------------ +// Requirements +//------------------------------------------------------------------------------ + +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -36,8 +42,8 @@ module.exports = { grandparent = parent.parent; if (parent && parent.type === "BlockStatement" && - parent.body.length === 1 && grandparent && - grandparent.type === "IfStatement" && + parent.body.length === 1 && !astUtils.areBracesNecessary(parent, sourceCode) && + grandparent && grandparent.type === "IfStatement" && parent === grandparent.alternate) { context.report({ node, diff --git a/node_modules/eslint/lib/rules/no-loop-func.js b/node_modules/eslint/lib/rules/no-loop-func.js index 48312fbf..ba372dbb 100644 --- a/node_modules/eslint/lib/rules/no-loop-func.js +++ b/node_modules/eslint/lib/rules/no-loop-func.js @@ -9,140 +9,16 @@ // Helpers //------------------------------------------------------------------------------ -/** - * Gets the containing loop node of a specified node. - * - * We don't need to check nested functions, so this ignores those. - * `Scope.through` contains references of nested functions. - * @param {ASTNode} node An AST node to get. - * @returns {ASTNode|null} The containing loop node of the specified node, or - * `null`. - */ -function getContainingLoopNode(node) { - for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { - const parent = currentNode.parent; - - switch (parent.type) { - case "WhileStatement": - case "DoWhileStatement": - return parent; - - case "ForStatement": - - // `init` is outside of the loop. - if (parent.init !== currentNode) { - return parent; - } - break; - - case "ForInStatement": - case "ForOfStatement": - - // `right` is outside of the loop. - if (parent.right !== currentNode) { - return parent; - } - break; - - case "ArrowFunctionExpression": - case "FunctionExpression": - case "FunctionDeclaration": - - // We don't need to check nested functions. - return null; - - default: - break; - } - } - - return null; -} /** - * Gets the containing loop node of a given node. - * If the loop was nested, this returns the most outer loop. - * @param {ASTNode} node A node to get. This is a loop node. - * @param {ASTNode|null} excludedNode A node that the result node should not - * include. - * @returns {ASTNode} The most outer loop node. + * Identifies is a node is a FunctionExpression which is part of an IIFE + * @param {ASTNode} node Node to test + * @returns {boolean} True if it's an IIFE */ -function getTopLoopNode(node, excludedNode) { - const border = excludedNode ? excludedNode.range[1] : 0; - let retv = node; - let containingLoopNode = node; - - while (containingLoopNode && containingLoopNode.range[0] >= border) { - retv = containingLoopNode; - containingLoopNode = getContainingLoopNode(containingLoopNode); - } - - return retv; +function isIIFE(node) { + return (node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression") && node.parent && node.parent.type === "CallExpression" && node.parent.callee === node; } -/** - * Checks whether a given reference which refers to an upper scope's variable is - * safe or not. - * @param {ASTNode} loopNode A containing loop node. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is safe or not. - */ -function isSafe(loopNode, reference) { - const variable = reference.resolved; - const definition = variable && variable.defs[0]; - const declaration = definition && definition.parent; - const kind = (declaration && declaration.type === "VariableDeclaration") - ? declaration.kind - : ""; - - // Variables which are declared by `const` is safe. - if (kind === "const") { - return true; - } - - /* - * Variables which are declared by `let` in the loop is safe. - * It's a different instance from the next loop step's. - */ - if (kind === "let" && - declaration.range[0] > loopNode.range[0] && - declaration.range[1] < loopNode.range[1] - ) { - return true; - } - - /* - * WriteReferences which exist after this border are unsafe because those - * can modify the variable. - */ - const border = getTopLoopNode( - loopNode, - (kind === "let") ? declaration : null - ).range[0]; - - /** - * Checks whether a given reference is safe or not. - * The reference is every reference of the upper scope's variable we are - * looking now. - * - * It's safe if the reference matches one of the following condition. - * - is readonly. - * - doesn't exist inside a local function and after the border. - * @param {eslint-scope.Reference} upperRef A reference to check. - * @returns {boolean} `true` if the reference is safe. - */ - function isSafeReference(upperRef) { - const id = upperRef.identifier; - - return ( - !upperRef.isWrite() || - variable.scope.variableScope === upperRef.from.variableScope && - id.range[0] < border - ); - } - - return Boolean(variable) && variable.references.every(isSafeReference); -} //------------------------------------------------------------------------------ // Rule Definition @@ -168,8 +44,147 @@ module.exports = { create(context) { + const SKIPPED_IIFE_NODES = new Set(); const sourceCode = context.sourceCode; + /** + * Gets the containing loop node of a specified node. + * + * We don't need to check nested functions, so this ignores those, with the exception of IIFE. + * `Scope.through` contains references of nested functions. + * @param {ASTNode} node An AST node to get. + * @returns {ASTNode|null} The containing loop node of the specified node, or + * `null`. + */ + function getContainingLoopNode(node) { + for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { + const parent = currentNode.parent; + + switch (parent.type) { + case "WhileStatement": + case "DoWhileStatement": + return parent; + + case "ForStatement": + + // `init` is outside of the loop. + if (parent.init !== currentNode) { + return parent; + } + break; + + case "ForInStatement": + case "ForOfStatement": + + // `right` is outside of the loop. + if (parent.right !== currentNode) { + return parent; + } + break; + + case "ArrowFunctionExpression": + case "FunctionExpression": + case "FunctionDeclaration": + + // We need to check nested functions only in case of IIFE. + if (SKIPPED_IIFE_NODES.has(parent)) { + break; + } + + return null; + default: + break; + } + } + + return null; + } + + /** + * Gets the containing loop node of a given node. + * If the loop was nested, this returns the most outer loop. + * @param {ASTNode} node A node to get. This is a loop node. + * @param {ASTNode|null} excludedNode A node that the result node should not + * include. + * @returns {ASTNode} The most outer loop node. + */ + function getTopLoopNode(node, excludedNode) { + const border = excludedNode ? excludedNode.range[1] : 0; + let retv = node; + let containingLoopNode = node; + + while (containingLoopNode && containingLoopNode.range[0] >= border) { + retv = containingLoopNode; + containingLoopNode = getContainingLoopNode(containingLoopNode); + } + + return retv; + } + + /** + * Checks whether a given reference which refers to an upper scope's variable is + * safe or not. + * @param {ASTNode} loopNode A containing loop node. + * @param {eslint-scope.Reference} reference A reference to check. + * @returns {boolean} `true` if the reference is safe or not. + */ + function isSafe(loopNode, reference) { + const variable = reference.resolved; + const definition = variable && variable.defs[0]; + const declaration = definition && definition.parent; + const kind = (declaration && declaration.type === "VariableDeclaration") + ? declaration.kind + : ""; + + // Variables which are declared by `const` is safe. + if (kind === "const") { + return true; + } + + /* + * Variables which are declared by `let` in the loop is safe. + * It's a different instance from the next loop step's. + */ + if (kind === "let" && + declaration.range[0] > loopNode.range[0] && + declaration.range[1] < loopNode.range[1] + ) { + return true; + } + + /* + * WriteReferences which exist after this border are unsafe because those + * can modify the variable. + */ + const border = getTopLoopNode( + loopNode, + (kind === "let") ? declaration : null + ).range[0]; + + /** + * Checks whether a given reference is safe or not. + * The reference is every reference of the upper scope's variable we are + * looking now. + * + * It's safe if the reference matches one of the following condition. + * - is readonly. + * - doesn't exist inside a local function and after the border. + * @param {eslint-scope.Reference} upperRef A reference to check. + * @returns {boolean} `true` if the reference is safe. + */ + function isSafeReference(upperRef) { + const id = upperRef.identifier; + + return ( + !upperRef.isWrite() || + variable.scope.variableScope === upperRef.from.variableScope && + id.range[0] < border + ); + } + + return Boolean(variable) && variable.references.every(isSafeReference); + } + /** * Reports functions which match the following condition: * @@ -186,6 +201,23 @@ module.exports = { } const references = sourceCode.getScope(node).through; + + // Check if the function is not asynchronous or a generator function + if (!(node.async || node.generator)) { + if (isIIFE(node)) { + + const isFunctionExpression = node.type === "FunctionExpression"; + + // Check if the function is referenced elsewhere in the code + const isFunctionReferenced = isFunctionExpression && node.id ? references.some(r => r.identifier.name === node.id.name) : false; + + if (!isFunctionReferenced) { + SKIPPED_IIFE_NODES.add(node); + return; + } + } + } + const unsafeRefs = references.filter(r => r.resolved && !isSafe(loopNode, r)).map(r => r.identifier.name); if (unsafeRefs.length > 0) { diff --git a/node_modules/eslint/lib/rules/no-loss-of-precision.js b/node_modules/eslint/lib/rules/no-loss-of-precision.js index b3635e3d..c50d8a89 100644 --- a/node_modules/eslint/lib/rules/no-loss-of-precision.js +++ b/node_modules/eslint/lib/rules/no-loss-of-precision.js @@ -64,7 +64,7 @@ module.exports = { */ function notBaseTenLosesPrecision(node) { const rawString = getRaw(node).toUpperCase(); - let base = 0; + let base; if (rawString.startsWith("0B")) { base = 2; diff --git a/node_modules/eslint/lib/rules/no-misleading-character-class.js b/node_modules/eslint/lib/rules/no-misleading-character-class.js index 20591df2..d10e0812 100644 --- a/node_modules/eslint/lib/rules/no-misleading-character-class.js +++ b/node_modules/eslint/lib/rules/no-misleading-character-class.js @@ -3,11 +3,18 @@ */ "use strict"; -const { CALL, CONSTRUCT, ReferenceTracker, getStringIfConstant } = require("@eslint-community/eslint-utils"); +const { + CALL, + CONSTRUCT, + ReferenceTracker, + getStaticValue, + getStringIfConstant +} = require("@eslint-community/eslint-utils"); const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); const { isCombiningCharacter, isEmojiModifier, isRegionalIndicatorSymbol, isSurrogatePair } = require("./utils/unicode"); const astUtils = require("./utils/ast-utils.js"); const { isValidWithUnicodeFlag } = require("./utils/regular-expressions"); +const { parseStringLiteral, parseTemplateToken } = require("./utils/char-source"); //------------------------------------------------------------------------------ // Helpers @@ -62,7 +69,6 @@ function *iterateCharacterSequence(nodes) { } } - /** * Checks whether the given character node is a Unicode code point escape or not. * @param {Character} char the character node to check. @@ -73,80 +79,184 @@ function isUnicodeCodePointEscape(char) { } /** - * Each function returns `true` if it detects that kind of problem. - * @type {Record boolean>} + * Each function returns matched characters if it detects that kind of problem. + * @type {Record IterableIterator>} */ -const hasCharacterSequence = { - surrogatePairWithoutUFlag(chars) { - return chars.some((c, i) => { - if (i === 0) { - return false; +const findCharacterSequences = { + *surrogatePairWithoutUFlag(chars) { + for (const [index, char] of chars.entries()) { + const previous = chars[index - 1]; + + if ( + previous && char && + isSurrogatePair(previous.value, char.value) && + !isUnicodeCodePointEscape(previous) && + !isUnicodeCodePointEscape(char) + ) { + yield [previous, char]; } - const c1 = chars[i - 1]; - - return ( - isSurrogatePair(c1.value, c.value) && - !isUnicodeCodePointEscape(c1) && - !isUnicodeCodePointEscape(c) - ); - }); + } }, - surrogatePair(chars) { - return chars.some((c, i) => { - if (i === 0) { - return false; - } - const c1 = chars[i - 1]; + *surrogatePair(chars) { + for (const [index, char] of chars.entries()) { + const previous = chars[index - 1]; - return ( - isSurrogatePair(c1.value, c.value) && + if ( + previous && char && + isSurrogatePair(previous.value, char.value) && ( - isUnicodeCodePointEscape(c1) || - isUnicodeCodePointEscape(c) + isUnicodeCodePointEscape(previous) || + isUnicodeCodePointEscape(char) ) - ); - }); + ) { + yield [previous, char]; + } + } }, - combiningClass(chars) { - return chars.some((c, i) => ( - i !== 0 && - isCombiningCharacter(c.value) && - !isCombiningCharacter(chars[i - 1].value) - )); + *combiningClass(chars, unfilteredChars) { + + /* + * When `allowEscape` is `true`, a combined character should only be allowed if the combining mark appears as an escape sequence. + * This means that the base character should be considered even if it's escaped. + */ + for (const [index, char] of chars.entries()) { + const previous = unfilteredChars[index - 1]; + + if ( + previous && char && + isCombiningCharacter(char.value) && + !isCombiningCharacter(previous.value) + ) { + yield [previous, char]; + } + } }, - emojiModifier(chars) { - return chars.some((c, i) => ( - i !== 0 && - isEmojiModifier(c.value) && - !isEmojiModifier(chars[i - 1].value) - )); + *emojiModifier(chars) { + for (const [index, char] of chars.entries()) { + const previous = chars[index - 1]; + + if ( + previous && char && + isEmojiModifier(char.value) && + !isEmojiModifier(previous.value) + ) { + yield [previous, char]; + } + } }, - regionalIndicatorSymbol(chars) { - return chars.some((c, i) => ( - i !== 0 && - isRegionalIndicatorSymbol(c.value) && - isRegionalIndicatorSymbol(chars[i - 1].value) - )); + *regionalIndicatorSymbol(chars) { + for (const [index, char] of chars.entries()) { + const previous = chars[index - 1]; + + if ( + previous && char && + isRegionalIndicatorSymbol(char.value) && + isRegionalIndicatorSymbol(previous.value) + ) { + yield [previous, char]; + } + } }, - zwj(chars) { - const lastIndex = chars.length - 1; + *zwj(chars) { + let sequence = null; + + for (const [index, char] of chars.entries()) { + const previous = chars[index - 1]; + const next = chars[index + 1]; + + if ( + previous && char && next && + char.value === 0x200d && + previous.value !== 0x200d && + next.value !== 0x200d + ) { + if (sequence) { + if (sequence.at(-1) === previous) { + sequence.push(char, next); // append to the sequence + } else { + yield sequence; + sequence = chars.slice(index - 1, index + 2); + } + } else { + sequence = chars.slice(index - 1, index + 2); + } + } + } - return chars.some((c, i) => ( - i !== 0 && - i !== lastIndex && - c.value === 0x200d && - chars[i - 1].value !== 0x200d && - chars[i + 1].value !== 0x200d - )); + if (sequence) { + yield sequence; + } } }; -const kinds = Object.keys(hasCharacterSequence); +const kinds = Object.keys(findCharacterSequences); + +/** + * Gets the value of the given node if it's a static value other than a regular expression object, + * or the node's `regex` property. + * The purpose of this method is to provide a replacement for `getStaticValue` in environments where certain regular expressions cannot be evaluated. + * A known example is Node.js 18 which does not support the `v` flag. + * Calling `getStaticValue` on a regular expression node with the `v` flag on Node.js 18 always returns `null`. + * A limitation of this method is that it can only detect a regular expression if the specified node is itself a regular expression literal node. + * @param {ASTNode | undefined} node The node to be inspected. + * @param {Scope} initialScope Scope to start finding variables. This function tries to resolve identifier references which are in the given scope. + * @returns {{ value: any } | { regex: { pattern: string, flags: string } } | null} The static value of the node, or `null`. + */ +function getStaticValueOrRegex(node, initialScope) { + if (!node) { + return null; + } + if (node.type === "Literal" && node.regex) { + return { regex: node.regex }; + } + + const staticValue = getStaticValue(node, initialScope); + + if (staticValue?.value instanceof RegExp) { + return null; + } + return staticValue; +} + +/** + * Checks whether a specified regexpp character is represented as an acceptable escape sequence. + * This function requires the source text of the character to be known. + * @param {Character} char Character to check. + * @param {string} charSource Source text of the character to check. + * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. + */ +function checkForAcceptableEscape(char, charSource) { + if (!charSource.startsWith("\\")) { + return false; + } + const match = /(?<=^\\+).$/su.exec(charSource); + + return match?.[0] !== String.fromCodePoint(char.value); +} + +/** + * Checks whether a specified regexpp character is represented as an acceptable escape sequence. + * This function works with characters that are produced by a string or template literal. + * It requires the source text and the CodeUnit list of the literal to be known. + * @param {Character} char Character to check. + * @param {string} nodeSource Source text of the string or template literal that produces the character. + * @param {CodeUnit[]} codeUnits List of CodeUnit objects of the literal that produces the character. + * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. + */ +function checkForAcceptableEscapeInString(char, nodeSource, codeUnits) { + const firstIndex = char.start; + const lastIndex = char.end - 1; + const start = codeUnits[firstIndex].start; + const end = codeUnits[lastIndex].end; + const charSource = nodeSource.slice(start, end); + + return checkForAcceptableEscape(char, charSource); +} //------------------------------------------------------------------------------ // Rule Definition @@ -165,7 +275,18 @@ module.exports = { hasSuggestions: true, - schema: [], + schema: [ + { + type: "object", + properties: { + allowEscape: { + type: "boolean", + default: false + } + }, + additionalProperties: false + } + ], messages: { surrogatePairWithoutUFlag: "Unexpected surrogate pair in character class. Use 'u' flag.", @@ -178,8 +299,10 @@ module.exports = { } }, create(context) { + const allowEscape = context.options[0]?.allowEscape; const sourceCode = context.sourceCode; const parser = new RegExpParser(); + const checkedPatternNodes = new Set(); /** * Verify a given regular expression. @@ -208,21 +331,108 @@ module.exports = { return; } - const foundKinds = new Set(); + let codeUnits = null; + + /** + * Checks whether a specified regexpp character is represented as an acceptable escape sequence. + * For the purposes of this rule, an escape sequence is considered acceptable if it consists of one or more backslashes followed by the character being escaped. + * @param {Character} char Character to check. + * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. + */ + function isAcceptableEscapeSequence(char) { + if (node.type === "Literal" && node.regex) { + return checkForAcceptableEscape(char, char.raw); + } + if (node.type === "Literal" && typeof node.value === "string") { + const nodeSource = node.raw; + + codeUnits ??= parseStringLiteral(nodeSource); + + return checkForAcceptableEscapeInString(char, nodeSource, codeUnits); + } + if (astUtils.isStaticTemplateLiteral(node)) { + const nodeSource = sourceCode.getText(node); + + codeUnits ??= parseTemplateToken(nodeSource); + + return checkForAcceptableEscapeInString(char, nodeSource, codeUnits); + } + return false; + } + + const foundKindMatches = new Map(); visitRegExpAST(patternNode, { onCharacterClassEnter(ccNode) { - for (const chars of iterateCharacterSequence(ccNode.elements)) { + for (const unfilteredChars of iterateCharacterSequence(ccNode.elements)) { + let chars; + + if (allowEscape) { + + // Replace escape sequences with null to avoid having them flagged. + chars = unfilteredChars.map(char => (isAcceptableEscapeSequence(char) ? null : char)); + } else { + chars = unfilteredChars; + } for (const kind of kinds) { - if (hasCharacterSequence[kind](chars)) { - foundKinds.add(kind); + const matches = findCharacterSequences[kind](chars, unfilteredChars); + + if (foundKindMatches.has(kind)) { + foundKindMatches.get(kind).push(...matches); + } else { + foundKindMatches.set(kind, [...matches]); } } } } }); - for (const kind of foundKinds) { + /** + * Finds the report loc(s) for a range of matches. + * Only literals and expression-less templates generate granular errors. + * @param {Character[][]} matches Lists of individual characters being reported on. + * @returns {Location[]} locs for context.report. + * @see https://github.com/eslint/eslint/pull/17515 + */ + function getNodeReportLocations(matches) { + if (!astUtils.isStaticTemplateLiteral(node) && node.type !== "Literal") { + return matches.length ? [node.loc] : []; + } + return matches.map(chars => { + const firstIndex = chars[0].start; + const lastIndex = chars.at(-1).end - 1; + let start; + let end; + + if (node.type === "TemplateLiteral") { + const source = sourceCode.getText(node); + const offset = node.range[0]; + + codeUnits ??= parseTemplateToken(source); + start = offset + codeUnits[firstIndex].start; + end = offset + codeUnits[lastIndex].end; + } else if (typeof node.value === "string") { // String Literal + const source = node.raw; + const offset = node.range[0]; + + codeUnits ??= parseStringLiteral(source); + start = offset + codeUnits[firstIndex].start; + end = offset + codeUnits[lastIndex].end; + } else { // RegExp Literal + const offset = node.range[0] + 1; // Add 1 to skip the leading slash. + + start = offset + firstIndex; + end = offset + lastIndex + 1; + } + + return { + start: sourceCode.getLocFromIndex(start), + end: sourceCode.getLocFromIndex(end) + }; + }); + } + + for (const [kind, matches] of foundKindMatches) { let suggest; if (kind === "surrogatePairWithoutUFlag") { @@ -232,16 +442,24 @@ module.exports = { }]; } - context.report({ - node, - messageId: kind, - suggest - }); + const locs = getNodeReportLocations(matches); + + for (const loc of locs) { + context.report({ + node, + loc, + messageId: kind, + suggest + }); + } } } return { "Literal[regex]"(node) { + if (checkedPatternNodes.has(node)) { + return; + } verify(node, node.regex.pattern, node.regex.flags, fixer => { if (!isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, node.regex.pattern)) { return null; @@ -262,12 +480,31 @@ module.exports = { for (const { node: refNode } of tracker.iterateGlobalReferences({ RegExp: { [CALL]: true, [CONSTRUCT]: true } })) { + let pattern, flags; const [patternNode, flagsNode] = refNode.arguments; - const pattern = getStringIfConstant(patternNode, scope); - const flags = getStringIfConstant(flagsNode, scope); + const evaluatedPattern = getStaticValueOrRegex(patternNode, scope); + + if (!evaluatedPattern) { + continue; + } + if (flagsNode) { + if (evaluatedPattern.regex) { + pattern = evaluatedPattern.regex.pattern; + checkedPatternNodes.add(patternNode); + } else { + pattern = String(evaluatedPattern.value); + } + flags = getStringIfConstant(flagsNode, scope); + } else { + if (evaluatedPattern.regex) { + continue; + } + pattern = String(evaluatedPattern.value); + flags = ""; + } - if (typeof pattern === "string") { - verify(refNode, pattern, flags || "", fixer => { + if (typeof flags === "string") { + verify(patternNode, pattern, flags, fixer => { if (!isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, pattern)) { return null; diff --git a/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js b/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js index 7698b5da..18e6114a 100644 --- a/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +++ b/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js @@ -18,7 +18,7 @@ module.exports = { docs: { description: "Disallow mixed spaces and tabs for indentation", - recommended: true, + recommended: false, url: "https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs" }, diff --git a/node_modules/eslint/lib/rules/no-multi-assign.js b/node_modules/eslint/lib/rules/no-multi-assign.js index a7a50c19..6e455926 100644 --- a/node_modules/eslint/lib/rules/no-multi-assign.js +++ b/node_modules/eslint/lib/rules/no-multi-assign.js @@ -15,6 +15,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + ignoreNonDeclaration: false + }], + docs: { description: "Disallow use of chained assignment expressions", recommended: false, @@ -25,8 +29,7 @@ module.exports = { type: "object", properties: { ignoreNonDeclaration: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -38,19 +41,13 @@ module.exports = { }, create(context) { - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - const options = context.options[0] || { - ignoreNonDeclaration: false - }; + const [{ ignoreNonDeclaration }] = context.options; const selectors = [ "VariableDeclarator > AssignmentExpression.init", "PropertyDefinition > AssignmentExpression.value" ]; - if (!options.ignoreNonDeclaration) { + if (!ignoreNonDeclaration) { selectors.push("AssignmentExpression > AssignmentExpression.right"); } diff --git a/node_modules/eslint/lib/rules/no-multiple-empty-lines.js b/node_modules/eslint/lib/rules/no-multiple-empty-lines.js index 5d038ff0..b597138e 100644 --- a/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +++ b/node_modules/eslint/lib/rules/no-multiple-empty-lines.js @@ -70,7 +70,7 @@ module.exports = { const sourceCode = context.sourceCode; // Swallow the final newline, as some editors add it automatically and we don't want it to cause an issue - const allLines = sourceCode.lines[sourceCode.lines.length - 1] === "" ? sourceCode.lines.slice(0, -1) : sourceCode.lines; + const allLines = sourceCode.lines.at(-1) === "" ? sourceCode.lines.slice(0, -1) : sourceCode.lines; const templateLiteralLines = new Set(); //-------------------------------------------------------------------------- diff --git a/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js b/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js index ee70d281..699390dd 100644 --- a/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +++ b/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js @@ -22,7 +22,7 @@ module.exports = { docs: { description: "Disallow `new` operators with global non-constructor functions", - recommended: false, + recommended: true, url: "https://eslint.org/docs/latest/rules/no-new-native-nonconstructor" }, diff --git a/node_modules/eslint/lib/rules/no-new-symbol.js b/node_modules/eslint/lib/rules/no-new-symbol.js index 99830220..85f9e62a 100644 --- a/node_modules/eslint/lib/rules/no-new-symbol.js +++ b/node_modules/eslint/lib/rules/no-new-symbol.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to disallow use of the new operator with the `Symbol` object * @author Alberto Rodríguez + * @deprecated in ESLint v9.0.0 */ "use strict"; @@ -16,10 +17,16 @@ module.exports = { docs: { description: "Disallow `new` operators with the `Symbol` object", - recommended: true, + recommended: false, url: "https://eslint.org/docs/latest/rules/no-new-symbol" }, + deprecated: true, + + replacedBy: [ + "no-new-native-nonconstructor" + ], + schema: [], messages: { diff --git a/node_modules/eslint/lib/rules/no-plusplus.js b/node_modules/eslint/lib/rules/no-plusplus.js index 22a6fd01..7c91ebe8 100644 --- a/node_modules/eslint/lib/rules/no-plusplus.js +++ b/node_modules/eslint/lib/rules/no-plusplus.js @@ -50,6 +50,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowForLoopAfterthoughts: false + }], + docs: { description: "Disallow the unary operators `++` and `--`", recommended: false, @@ -61,8 +65,7 @@ module.exports = { type: "object", properties: { allowForLoopAfterthoughts: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -75,13 +78,7 @@ module.exports = { }, create(context) { - - const config = context.options[0]; - let allowForLoopAfterthoughts = false; - - if (typeof config === "object") { - allowForLoopAfterthoughts = config.allowForLoopAfterthoughts === true; - } + const [{ allowForLoopAfterthoughts }] = context.options; return { diff --git a/node_modules/eslint/lib/rules/no-promise-executor-return.js b/node_modules/eslint/lib/rules/no-promise-executor-return.js index b27e4407..a056f6d6 100644 --- a/node_modules/eslint/lib/rules/no-promise-executor-return.js +++ b/node_modules/eslint/lib/rules/no-promise-executor-return.js @@ -141,6 +141,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowVoid: false + }], + docs: { description: "Disallow returning values from Promise executor functions", recommended: false, @@ -153,8 +157,7 @@ module.exports = { type: "object", properties: { allowVoid: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -172,12 +175,9 @@ module.exports = { }, create(context) { - let funcInfo = null; const sourceCode = context.sourceCode; - const { - allowVoid = false - } = context.options[0] || {}; + const [{ allowVoid }] = context.options; return { diff --git a/node_modules/eslint/lib/rules/no-redeclare.js b/node_modules/eslint/lib/rules/no-redeclare.js index 8a4877e8..94a3c212 100644 --- a/node_modules/eslint/lib/rules/no-redeclare.js +++ b/node_modules/eslint/lib/rules/no-redeclare.js @@ -20,6 +20,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ builtinGlobals: true }], + docs: { description: "Disallow variable redeclaration", recommended: true, @@ -36,7 +38,7 @@ module.exports = { { type: "object", properties: { - builtinGlobals: { type: "boolean", default: true } + builtinGlobals: { type: "boolean" } }, additionalProperties: false } @@ -44,12 +46,7 @@ module.exports = { }, create(context) { - const options = { - builtinGlobals: Boolean( - context.options.length === 0 || - context.options[0].builtinGlobals - ) - }; + const [{ builtinGlobals }] = context.options; const sourceCode = context.sourceCode; /** @@ -58,7 +55,7 @@ module.exports = { * @returns {IterableIterator<{type:string,node:ASTNode,loc:SourceLocation}>} The declarations. */ function *iterateDeclarations(variable) { - if (options.builtinGlobals && ( + if (builtinGlobals && ( variable.eslintImplicitGlobalSetting === "readonly" || variable.eslintImplicitGlobalSetting === "writable" )) { diff --git a/node_modules/eslint/lib/rules/no-restricted-exports.js b/node_modules/eslint/lib/rules/no-restricted-exports.js index a1d54b08..8da2f2df 100644 --- a/node_modules/eslint/lib/rules/no-restricted-exports.js +++ b/node_modules/eslint/lib/rules/no-restricted-exports.js @@ -37,7 +37,8 @@ module.exports = { type: "string" }, uniqueItems: true - } + }, + restrictedNamedExportsPattern: { type: "string" } }, additionalProperties: false }, @@ -52,6 +53,7 @@ module.exports = { }, uniqueItems: true }, + restrictedNamedExportsPattern: { type: "string" }, restrictDefaultExports: { type: "object", properties: { @@ -98,6 +100,7 @@ module.exports = { create(context) { const restrictedNames = new Set(context.options[0] && context.options[0].restrictedNamedExports); + const restrictedNamePattern = context.options[0] && context.options[0].restrictedNamedExportsPattern; const restrictDefaultExports = context.options[0] && context.options[0].restrictDefaultExports; const sourceCode = context.sourceCode; @@ -109,7 +112,15 @@ module.exports = { function checkExportedName(node) { const name = astUtils.getModuleExportName(node); - if (restrictedNames.has(name)) { + let matchesRestrictedNamePattern = false; + + if (restrictedNamePattern && name !== "default") { + const patternRegex = new RegExp(restrictedNamePattern, "u"); + + matchesRestrictedNamePattern = patternRegex.test(name); + } + + if (matchesRestrictedNamePattern || restrictedNames.has(name)) { context.report({ node, messageId: "restrictedNamed", diff --git a/node_modules/eslint/lib/rules/no-restricted-globals.js b/node_modules/eslint/lib/rules/no-restricted-globals.js index 919a8ee0..060d50a0 100644 --- a/node_modules/eslint/lib/rules/no-restricted-globals.js +++ b/node_modules/eslint/lib/rules/no-restricted-globals.js @@ -97,7 +97,7 @@ module.exports = { * @private */ function isRestricted(name) { - return Object.prototype.hasOwnProperty.call(restrictedGlobalMessages, name); + return Object.hasOwn(restrictedGlobalMessages, name); } return { diff --git a/node_modules/eslint/lib/rules/no-restricted-imports.js b/node_modules/eslint/lib/rules/no-restricted-imports.js index eb59f4c2..5fd4744c 100644 --- a/node_modules/eslint/lib/rules/no-restricted-imports.js +++ b/node_modules/eslint/lib/rules/no-restricted-imports.js @@ -34,10 +34,17 @@ const arrayOfStringsOrObjects = { items: { type: "string" } + }, + allowImportNames: { + type: "array", + items: { + type: "string" + } } }, additionalProperties: false, - required: ["name"] + required: ["name"], + not: { required: ["importNames", "allowImportNames"] } } ] }, @@ -66,6 +73,14 @@ const arrayOfStringsOrObjectPatterns = { minItems: 1, uniqueItems: true }, + allowImportNames: { + type: "array", + items: { + type: "string" + }, + minItems: 1, + uniqueItems: true + }, group: { type: "array", items: { @@ -74,9 +89,15 @@ const arrayOfStringsOrObjectPatterns = { minItems: 1, uniqueItems: true }, + regex: { + type: "string" + }, importNamePattern: { type: "string" }, + allowImportNamePattern: { + type: "string" + }, message: { type: "string", minLength: 1 @@ -86,7 +107,19 @@ const arrayOfStringsOrObjectPatterns = { } }, additionalProperties: false, - required: ["group"] + not: { + anyOf: [ + { required: ["importNames", "allowImportNames"] }, + { required: ["importNamePattern", "allowImportNamePattern"] }, + { required: ["importNames", "allowImportNamePattern"] }, + { required: ["importNamePattern", "allowImportNames"] }, + { required: ["allowImportNames", "allowImportNamePattern"] } + ] + }, + oneOf: [ + { required: ["group"] }, + { required: ["regex"] } + ] }, uniqueItems: true } @@ -131,7 +164,23 @@ module.exports = { importName: "'{{importName}}' import from '{{importSource}}' is restricted.", // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - importNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}" + importNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}", + + allowedImportName: "'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.", + // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period + allowedImportNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}", + + everythingWithAllowImportNames: "* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.", + // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period + everythingWithAllowImportNamesAndCustomMessage: "* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}", + + allowedImportNamePattern: "'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.", + // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period + allowedImportNamePatternWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}", + + everythingWithAllowedImportNamePattern: "* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.", + // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period + everythingWithAllowedImportNamePatternWithCustomMessage: "* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}" }, schema: { @@ -158,20 +207,29 @@ module.exports = { const options = Array.isArray(context.options) ? context.options : []; const isPathAndPatternsObject = typeof options[0] === "object" && - (Object.prototype.hasOwnProperty.call(options[0], "paths") || Object.prototype.hasOwnProperty.call(options[0], "patterns")); + (Object.hasOwn(options[0], "paths") || Object.hasOwn(options[0], "patterns")); const restrictedPaths = (isPathAndPatternsObject ? options[0].paths : context.options) || []; - const restrictedPathMessages = restrictedPaths.reduce((memo, importSource) => { + const groupedRestrictedPaths = restrictedPaths.reduce((memo, importSource) => { + const path = typeof importSource === "string" + ? importSource + : importSource.name; + + if (!memo[path]) { + memo[path] = []; + } + if (typeof importSource === "string") { - memo[importSource] = { message: null }; + memo[path].push({}); } else { - memo[importSource.name] = { + memo[path].push({ message: importSource.message, - importNames: importSource.importNames - }; + importNames: importSource.importNames, + allowImportNames: importSource.allowImportNames + }); } return memo; - }, {}); + }, Object.create(null)); // Handle patterns too, either as strings or groups let restrictedPatterns = (isPathAndPatternsObject ? options[0].patterns : []) || []; @@ -182,12 +240,19 @@ module.exports = { } // relative paths are supported for this rule - const restrictedPatternGroups = restrictedPatterns.map(({ group, message, caseSensitive, importNames, importNamePattern }) => ({ - matcher: ignore({ allowRelativePaths: true, ignorecase: !caseSensitive }).add(group), - customMessage: message, - importNames, - importNamePattern - })); + const restrictedPatternGroups = restrictedPatterns.map( + ({ group, regex, message, caseSensitive, importNames, importNamePattern, allowImportNames, allowImportNamePattern }) => ( + { + ...(group ? { matcher: ignore({ allowRelativePaths: true, ignorecase: !caseSensitive }).add(group) } : {}), + ...(typeof regex === "string" ? { regexMatcher: new RegExp(regex, caseSensitive ? "u" : "iu") } : {}), + customMessage: message, + importNames, + importNamePattern, + allowImportNames, + allowImportNamePattern + } + ) + ); // if no imports are restricted we don't need to check if (Object.keys(restrictedPaths).length === 0 && restrictedPatternGroups.length === 0) { @@ -203,33 +268,60 @@ module.exports = { * @private */ function checkRestrictedPathAndReport(importSource, importNames, node) { - if (!Object.prototype.hasOwnProperty.call(restrictedPathMessages, importSource)) { + if (!Object.hasOwn(groupedRestrictedPaths, importSource)) { return; } - const customMessage = restrictedPathMessages[importSource].message; - const restrictedImportNames = restrictedPathMessages[importSource].importNames; - - if (restrictedImportNames) { - if (importNames.has("*")) { - const specifierData = importNames.get("*")[0]; + groupedRestrictedPaths[importSource].forEach(restrictedPathEntry => { + const customMessage = restrictedPathEntry.message; + const restrictedImportNames = restrictedPathEntry.importNames; + const allowedImportNames = restrictedPathEntry.allowImportNames; + if (!restrictedImportNames && !allowedImportNames) { context.report({ node, - messageId: customMessage ? "everythingWithCustomMessage" : "everything", - loc: specifierData.loc, + messageId: customMessage ? "pathWithCustomMessage" : "path", data: { importSource, - importNames: restrictedImportNames, customMessage } }); + + return; } - restrictedImportNames.forEach(importName => { - if (importNames.has(importName)) { - const specifiers = importNames.get(importName); + importNames.forEach((specifiers, importName) => { + if (importName === "*") { + const [specifier] = specifiers; + if (restrictedImportNames) { + context.report({ + node, + messageId: customMessage ? "everythingWithCustomMessage" : "everything", + loc: specifier.loc, + data: { + importSource, + importNames: restrictedImportNames, + customMessage + } + }); + } else if (allowedImportNames) { + context.report({ + node, + messageId: customMessage ? "everythingWithAllowImportNamesAndCustomMessage" : "everythingWithAllowImportNames", + loc: specifier.loc, + data: { + importSource, + allowedImportNames, + customMessage + } + }); + } + + return; + } + + if (restrictedImportNames && restrictedImportNames.includes(importName)) { specifiers.forEach(specifier => { context.report({ node, @@ -243,17 +335,24 @@ module.exports = { }); }); } - }); - } else { - context.report({ - node, - messageId: customMessage ? "pathWithCustomMessage" : "path", - data: { - importSource, - customMessage + + if (allowedImportNames && !allowedImportNames.includes(importName)) { + specifiers.forEach(specifier => { + context.report({ + node, + loc: specifier.loc, + messageId: customMessage ? "allowedImportNameWithCustomMessage" : "allowedImportName", + data: { + importSource, + customMessage, + importName, + allowedImportNames + } + }); + }); } }); - } + }); } /** @@ -271,12 +370,14 @@ module.exports = { const customMessage = group.customMessage; const restrictedImportNames = group.importNames; const restrictedImportNamePattern = group.importNamePattern ? new RegExp(group.importNamePattern, "u") : null; + const allowedImportNames = group.allowImportNames; + const allowedImportNamePattern = group.allowImportNamePattern ? new RegExp(group.allowImportNamePattern, "u") : null; - /* + /** * If we are not restricting to any specific import names and just the pattern itself, * report the error and move on */ - if (!restrictedImportNames && !restrictedImportNamePattern) { + if (!restrictedImportNames && !allowedImportNames && !restrictedImportNamePattern && !allowedImportNamePattern) { context.report({ node, messageId: customMessage ? "patternWithCustomMessage" : "patterns", @@ -303,6 +404,28 @@ module.exports = { customMessage } }); + } else if (allowedImportNames) { + context.report({ + node, + messageId: customMessage ? "everythingWithAllowImportNamesAndCustomMessage" : "everythingWithAllowImportNames", + loc: specifier.loc, + data: { + importSource, + allowedImportNames, + customMessage + } + }); + } else if (allowedImportNamePattern) { + context.report({ + node, + messageId: customMessage ? "everythingWithAllowedImportNamePatternWithCustomMessage" : "everythingWithAllowedImportNamePattern", + loc: specifier.loc, + data: { + importSource, + allowedImportNamePattern, + customMessage + } + }); } else { context.report({ node, @@ -336,6 +459,36 @@ module.exports = { }); }); } + + if (allowedImportNames && !allowedImportNames.includes(importName)) { + specifiers.forEach(specifier => { + context.report({ + node, + messageId: customMessage ? "allowedImportNameWithCustomMessage" : "allowedImportName", + loc: specifier.loc, + data: { + importSource, + customMessage, + importName, + allowedImportNames + } + }); + }); + } else if (allowedImportNamePattern && !allowedImportNamePattern.test(importName)) { + specifiers.forEach(specifier => { + context.report({ + node, + messageId: customMessage ? "allowedImportNamePatternWithCustomMessage" : "allowedImportNamePattern", + loc: specifier.loc, + data: { + importSource, + customMessage, + importName, + allowedImportNamePattern + } + }); + }); + } }); } @@ -347,7 +500,7 @@ module.exports = { * @private */ function isRestrictedPattern(importSource, group) { - return group.matcher.ignores(importSource); + return group.regexMatcher ? group.regexMatcher.test(importSource) : group.matcher.ignores(importSource); } /** diff --git a/node_modules/eslint/lib/rules/no-restricted-modules.js b/node_modules/eslint/lib/rules/no-restricted-modules.js index 4a9b0a4c..d36f2d28 100644 --- a/node_modules/eslint/lib/rules/no-restricted-modules.js +++ b/node_modules/eslint/lib/rules/no-restricted-modules.js @@ -90,7 +90,7 @@ module.exports = { const options = Array.isArray(context.options) ? context.options : []; const isPathAndPatternsObject = typeof options[0] === "object" && - (Object.prototype.hasOwnProperty.call(options[0], "paths") || Object.prototype.hasOwnProperty.call(options[0], "patterns")); + (Object.hasOwn(options[0], "paths") || Object.hasOwn(options[0], "patterns")); const restrictedPaths = (isPathAndPatternsObject ? options[0].paths : context.options) || []; const restrictedPatterns = (isPathAndPatternsObject ? options[0].patterns : []) || []; @@ -178,7 +178,7 @@ module.exports = { * @private */ function isRestrictedPath(name) { - return Object.prototype.hasOwnProperty.call(restrictedPathMessages, name); + return Object.hasOwn(restrictedPathMessages, name); } return { diff --git a/node_modules/eslint/lib/rules/no-return-assign.js b/node_modules/eslint/lib/rules/no-return-assign.js index 73caf0e6..7c1f00ec 100644 --- a/node_modules/eslint/lib/rules/no-return-assign.js +++ b/node_modules/eslint/lib/rules/no-return-assign.js @@ -25,6 +25,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["except-parens"], + docs: { description: "Disallow assignment operators in `return` statements", recommended: false, @@ -44,7 +46,7 @@ module.exports = { }, create(context) { - const always = (context.options[0] || "except-parens") !== "except-parens"; + const always = context.options[0] !== "except-parens"; const sourceCode = context.sourceCode; return { diff --git a/node_modules/eslint/lib/rules/no-return-await.js b/node_modules/eslint/lib/rules/no-return-await.js index 77abda0c..0c297411 100644 --- a/node_modules/eslint/lib/rules/no-return-await.js +++ b/node_modules/eslint/lib/rules/no-return-await.js @@ -118,7 +118,7 @@ module.exports = { if (node.parent.type === "LogicalExpression" && node === node.parent.right) { return isInTailCallPosition(node.parent); } - if (node.parent.type === "SequenceExpression" && node === node.parent.expressions[node.parent.expressions.length - 1]) { + if (node.parent.type === "SequenceExpression" && node === node.parent.expressions.at(-1)) { return isInTailCallPosition(node.parent); } return false; diff --git a/node_modules/eslint/lib/rules/no-self-assign.js b/node_modules/eslint/lib/rules/no-self-assign.js index 33ac8fb5..91b928ea 100644 --- a/node_modules/eslint/lib/rules/no-self-assign.js +++ b/node_modules/eslint/lib/rules/no-self-assign.js @@ -129,6 +129,8 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ props: true }], + docs: { description: "Disallow assignments where both sides are exactly the same", recommended: true, @@ -140,8 +142,7 @@ module.exports = { type: "object", properties: { props: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -155,7 +156,7 @@ module.exports = { create(context) { const sourceCode = context.sourceCode; - const [{ props = true } = {}] = context.options; + const [{ props }] = context.options; /** * Reports a given node as self assignments. diff --git a/node_modules/eslint/lib/rules/no-sequences.js b/node_modules/eslint/lib/rules/no-sequences.js index cd21fc78..5843b7a0 100644 --- a/node_modules/eslint/lib/rules/no-sequences.js +++ b/node_modules/eslint/lib/rules/no-sequences.js @@ -15,9 +15,6 @@ const astUtils = require("./utils/ast-utils"); // Helpers //------------------------------------------------------------------------------ -const DEFAULT_OPTIONS = { - allowInParentheses: true -}; //------------------------------------------------------------------------------ // Rule Definition @@ -35,22 +32,26 @@ module.exports = { }, schema: [{ + type: "object", properties: { allowInParentheses: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false }], + defaultOptions: [{ + allowInParentheses: true + }], + messages: { unexpectedCommaExpression: "Unexpected use of comma operator." } }, create(context) { - const options = Object.assign({}, DEFAULT_OPTIONS, context.options[0]); + const [{ allowInParentheses }] = context.options; const sourceCode = context.sourceCode; /** @@ -116,7 +117,7 @@ module.exports = { } // Wrapping a sequence in extra parens indicates intent - if (options.allowInParentheses) { + if (allowInParentheses) { if (requiresExtraParens(node)) { if (isParenthesisedTwice(node)) { return; diff --git a/node_modules/eslint/lib/rules/no-shadow.js b/node_modules/eslint/lib/rules/no-shadow.js index 3e4d9982..67e9695c 100644 --- a/node_modules/eslint/lib/rules/no-shadow.js +++ b/node_modules/eslint/lib/rules/no-shadow.js @@ -29,6 +29,13 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allow: [], + builtinGlobals: false, + hoist: "functions", + ignoreOnInitialization: false + }], + docs: { description: "Disallow variable declarations from shadowing variables declared in the outer scope", recommended: false, @@ -39,15 +46,15 @@ module.exports = { { type: "object", properties: { - builtinGlobals: { type: "boolean", default: false }, - hoist: { enum: ["all", "functions", "never"], default: "functions" }, + builtinGlobals: { type: "boolean" }, + hoist: { enum: ["all", "functions", "never"] }, allow: { type: "array", items: { type: "string" } }, - ignoreOnInitialization: { type: "boolean", default: false } + ignoreOnInitialization: { type: "boolean" } }, additionalProperties: false } @@ -60,13 +67,12 @@ module.exports = { }, create(context) { - - const options = { - builtinGlobals: context.options[0] && context.options[0].builtinGlobals, - hoist: (context.options[0] && context.options[0].hoist) || "functions", - allow: (context.options[0] && context.options[0].allow) || [], - ignoreOnInitialization: context.options[0] && context.options[0].ignoreOnInitialization - }; + const [{ + builtinGlobals, + hoist, + allow, + ignoreOnInitialization + }] = context.options; const sourceCode = context.sourceCode; /** @@ -174,7 +180,7 @@ module.exports = { * @returns {boolean} Whether or not the variable name is allowed. */ function isAllowed(variable) { - return options.allow.includes(variable.name); + return allow.includes(variable.name); } /** @@ -269,7 +275,7 @@ module.exports = { inner[1] < outer[0] && // Excepts FunctionDeclaration if is {"hoist":"function"}. - (options.hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration") + (hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration") ); } @@ -296,10 +302,10 @@ module.exports = { const shadowed = astUtils.getVariableByName(scope.upper, variable.name); if (shadowed && - (shadowed.identifiers.length > 0 || (options.builtinGlobals && "writeable" in shadowed)) && + (shadowed.identifiers.length > 0 || (builtinGlobals && "writeable" in shadowed)) && !isOnInitializer(variable, shadowed) && - !(options.ignoreOnInitialization && isInitPatternNode(variable, shadowed)) && - !(options.hoist !== "all" && isInTdz(variable, shadowed)) + !(ignoreOnInitialization && isInitPatternNode(variable, shadowed)) && + !(hoist !== "all" && isInTdz(variable, shadowed)) ) { const location = getDeclaredLocation(shadowed); const messageId = location.global ? "noShadowGlobal" : "noShadow"; diff --git a/node_modules/eslint/lib/rules/no-sparse-arrays.js b/node_modules/eslint/lib/rules/no-sparse-arrays.js index c65b0ab2..6d24842f 100644 --- a/node_modules/eslint/lib/rules/no-sparse-arrays.js +++ b/node_modules/eslint/lib/rules/no-sparse-arrays.js @@ -4,6 +4,8 @@ */ "use strict"; +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -36,11 +38,32 @@ module.exports = { return { ArrayExpression(node) { + if (!node.elements.includes(null)) { + return; + } + + const { sourceCode } = context; + let commaToken; + + for (const [index, element] of node.elements.entries()) { + if (index === node.elements.length - 1 && element) { + return; + } + + commaToken = sourceCode.getTokenAfter( + element ?? commaToken ?? sourceCode.getFirstToken(node), + astUtils.isCommaToken + ); - const emptySpot = node.elements.includes(null); + if (element) { + continue; + } - if (emptySpot) { - context.report({ node, messageId: "unexpectedSparseArray" }); + context.report({ + node, + loc: commaToken.loc, + messageId: "unexpectedSparseArray" + }); } } diff --git a/node_modules/eslint/lib/rules/no-this-before-super.js b/node_modules/eslint/lib/rules/no-this-before-super.js index f96d8ace..01e355ac 100644 --- a/node_modules/eslint/lib/rules/no-this-before-super.js +++ b/node_modules/eslint/lib/rules/no-this-before-super.js @@ -30,6 +30,29 @@ function isConstructorFunction(node) { ); } +/* + * Information for each code path segment. + * - superCalled: The flag which shows `super()` called in all code paths. + * - invalidNodes: The array of invalid ThisExpression and Super nodes. + */ +/** + * + */ +class SegmentInfo { + + /** + * Indicates whether `super()` is called in all code paths. + * @type {boolean} + */ + superCalled = false; + + /** + * The array of invalid ThisExpression and Super nodes. + * @type {ASTNode[]} + */ + invalidNodes = []; +} + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -64,13 +87,7 @@ module.exports = { */ let funcInfo = null; - /* - * Information for each code path segment. - * Each key is the id of a code path segment. - * Each value is an object: - * - superCalled: The flag which shows `super()` called in all code paths. - * - invalidNodes: The array of invalid ThisExpression and Super nodes. - */ + /** @type {Record} */ let segInfoMap = Object.create(null); /** @@ -79,7 +96,7 @@ module.exports = { * @returns {boolean} `true` if `super()` is called. */ function isCalled(segment) { - return !segment.reachable || segInfoMap[segment.id].superCalled; + return !segment.reachable || segInfoMap[segment.id]?.superCalled; } /** @@ -197,11 +214,26 @@ module.exports = { return; } + /** + * A collection of nodes to avoid duplicate reports. + * @type {Set} + */ + const reported = new Set(); + codePath.traverseSegments((segment, controller) => { const info = segInfoMap[segment.id]; + const invalidNodes = info.invalidNodes + .filter( - for (let i = 0; i < info.invalidNodes.length; ++i) { - const invalidNode = info.invalidNodes[i]; + /* + * Avoid duplicate reports. + * When there is a `finally`, invalidNodes may contain already reported node. + */ + node => !reported.has(node) + ); + + for (const invalidNode of invalidNodes) { + reported.add(invalidNode); context.report({ messageId: "noBeforeSuper", @@ -270,18 +302,18 @@ module.exports = { funcInfo.codePath.traverseSegments( { first: toSegment, last: fromSegment }, (segment, controller) => { - const info = segInfoMap[segment.id]; + const info = segInfoMap[segment.id] ?? new SegmentInfo(); if (info.superCalled) { - info.invalidNodes = []; controller.skip(); } else if ( segment.prevSegments.length > 0 && segment.prevSegments.every(isCalled) ) { info.superCalled = true; - info.invalidNodes = []; } + + segInfoMap[segment.id] = info; } ); }, diff --git a/node_modules/eslint/lib/rules/no-trailing-spaces.js b/node_modules/eslint/lib/rules/no-trailing-spaces.js index eede46c8..c188b1fa 100644 --- a/node_modules/eslint/lib/rules/no-trailing-spaces.js +++ b/node_modules/eslint/lib/rules/no-trailing-spaces.js @@ -129,8 +129,7 @@ module.exports = { comments = sourceCode.getAllComments(), commentLineNumbers = getCommentLineNumbers(comments); - let totalLength = 0, - fixRange = []; + let totalLength = 0; for (let i = 0, ii = lines.length; i < ii; i++) { const lineNumber = i + 1; @@ -177,7 +176,7 @@ module.exports = { continue; } - fixRange = [rangeStart, rangeEnd]; + const fixRange = [rangeStart, rangeEnd]; if (!ignoreComments || !commentLineNumbers.has(lineNumber)) { report(node, location, fixRange); diff --git a/node_modules/eslint/lib/rules/no-undef.js b/node_modules/eslint/lib/rules/no-undef.js index fe470286..b11a3d43 100644 --- a/node_modules/eslint/lib/rules/no-undef.js +++ b/node_modules/eslint/lib/rules/no-undef.js @@ -28,6 +28,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + typeof: false + }], + docs: { description: "Disallow the use of undeclared variables unless mentioned in `/*global */` comments", recommended: true, @@ -39,8 +43,7 @@ module.exports = { type: "object", properties: { typeof: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -52,8 +55,7 @@ module.exports = { }, create(context) { - const options = context.options[0]; - const considerTypeOf = options && options.typeof === true || false; + const [{ typeof: considerTypeOf }] = context.options; const sourceCode = context.sourceCode; return { diff --git a/node_modules/eslint/lib/rules/no-underscore-dangle.js b/node_modules/eslint/lib/rules/no-underscore-dangle.js index a0e05c6c..7247f0ec 100644 --- a/node_modules/eslint/lib/rules/no-underscore-dangle.js +++ b/node_modules/eslint/lib/rules/no-underscore-dangle.js @@ -14,6 +14,18 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allow: [], + allowAfterSuper: false, + allowAfterThis: false, + allowAfterThisConstructor: false, + allowFunctionParams: true, + allowInArrayDestructuring: true, + allowInObjectDestructuring: true, + enforceInClassFields: false, + enforceInMethodNames: false + }], + docs: { description: "Disallow dangling underscores in identifiers", recommended: false, @@ -31,36 +43,28 @@ module.exports = { } }, allowAfterThis: { - type: "boolean", - default: false + type: "boolean" }, allowAfterSuper: { - type: "boolean", - default: false + type: "boolean" }, allowAfterThisConstructor: { - type: "boolean", - default: false + type: "boolean" }, enforceInMethodNames: { - type: "boolean", - default: false + type: "boolean" }, allowFunctionParams: { - type: "boolean", - default: true + type: "boolean" }, enforceInClassFields: { - type: "boolean", - default: false + type: "boolean" }, allowInArrayDestructuring: { - type: "boolean", - default: true + type: "boolean" }, allowInObjectDestructuring: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -73,17 +77,17 @@ module.exports = { }, create(context) { - - const options = context.options[0] || {}; - const ALLOWED_VARIABLES = options.allow ? options.allow : []; - const allowAfterThis = typeof options.allowAfterThis !== "undefined" ? options.allowAfterThis : false; - const allowAfterSuper = typeof options.allowAfterSuper !== "undefined" ? options.allowAfterSuper : false; - const allowAfterThisConstructor = typeof options.allowAfterThisConstructor !== "undefined" ? options.allowAfterThisConstructor : false; - const enforceInMethodNames = typeof options.enforceInMethodNames !== "undefined" ? options.enforceInMethodNames : false; - const enforceInClassFields = typeof options.enforceInClassFields !== "undefined" ? options.enforceInClassFields : false; - const allowFunctionParams = typeof options.allowFunctionParams !== "undefined" ? options.allowFunctionParams : true; - const allowInArrayDestructuring = typeof options.allowInArrayDestructuring !== "undefined" ? options.allowInArrayDestructuring : true; - const allowInObjectDestructuring = typeof options.allowInObjectDestructuring !== "undefined" ? options.allowInObjectDestructuring : true; + const [{ + allow, + allowAfterSuper, + allowAfterThis, + allowAfterThisConstructor, + allowFunctionParams, + allowInArrayDestructuring, + allowInObjectDestructuring, + enforceInClassFields, + enforceInMethodNames + }] = context.options; const sourceCode = context.sourceCode; //------------------------------------------------------------------------- @@ -97,7 +101,7 @@ module.exports = { * @private */ function isAllowed(identifier) { - return ALLOWED_VARIABLES.includes(identifier); + return allow.includes(identifier); } /** diff --git a/node_modules/eslint/lib/rules/no-unneeded-ternary.js b/node_modules/eslint/lib/rules/no-unneeded-ternary.js index ab1bdc59..3d3dad0f 100644 --- a/node_modules/eslint/lib/rules/no-unneeded-ternary.js +++ b/node_modules/eslint/lib/rules/no-unneeded-ternary.js @@ -28,6 +28,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ defaultAssignment: true }], + docs: { description: "Disallow ternary operators when simpler alternatives exist", recommended: false, @@ -39,8 +41,7 @@ module.exports = { type: "object", properties: { defaultAssignment: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -56,8 +57,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const defaultAssignment = options.defaultAssignment !== false; + const [{ defaultAssignment }] = context.options; const sourceCode = context.sourceCode; /** @@ -76,7 +76,7 @@ module.exports = { * @returns {string} A string representing an inverted expression */ function invertExpression(node) { - if (node.type === "BinaryExpression" && Object.prototype.hasOwnProperty.call(OPERATOR_INVERSES, node.operator)) { + if (node.type === "BinaryExpression" && Object.hasOwn(OPERATOR_INVERSES, node.operator)) { const operatorToken = sourceCode.getFirstTokenBetween( node.left, node.right, diff --git a/node_modules/eslint/lib/rules/no-unreachable-loop.js b/node_modules/eslint/lib/rules/no-unreachable-loop.js index 577d39ac..f5507ecc 100644 --- a/node_modules/eslint/lib/rules/no-unreachable-loop.js +++ b/node_modules/eslint/lib/rules/no-unreachable-loop.js @@ -74,6 +74,8 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ ignore: [] }], + docs: { description: "Disallow loops with a body that allows only one iteration", recommended: false, @@ -100,8 +102,8 @@ module.exports = { }, create(context) { - const ignoredLoopTypes = context.options[0] && context.options[0].ignore || [], - loopTypesToCheck = getDifference(allLoopTypes, ignoredLoopTypes), + const [{ ignore: ignoredLoopTypes }] = context.options; + const loopTypesToCheck = getDifference(allLoopTypes, ignoredLoopTypes), loopSelector = loopTypesToCheck.join(","), loopsByTargetSegments = new Map(), loopsToReport = new Set(); diff --git a/node_modules/eslint/lib/rules/no-unsafe-negation.js b/node_modules/eslint/lib/rules/no-unsafe-negation.js index cabd7e2c..10f4a530 100644 --- a/node_modules/eslint/lib/rules/no-unsafe-negation.js +++ b/node_modules/eslint/lib/rules/no-unsafe-negation.js @@ -51,6 +51,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + enforceForOrderingRelations: false + }], + docs: { description: "Disallow negating the left operand of relational operators", recommended: true, @@ -64,8 +68,7 @@ module.exports = { type: "object", properties: { enforceForOrderingRelations: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -83,8 +86,7 @@ module.exports = { create(context) { const sourceCode = context.sourceCode; - const options = context.options[0] || {}; - const enforceForOrderingRelations = options.enforceForOrderingRelations === true; + const [{ enforceForOrderingRelations }] = context.options; return { BinaryExpression(node) { diff --git a/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js b/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js index fe2bead8..c5d1f999 100644 --- a/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +++ b/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js @@ -23,6 +23,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + disallowArithmeticOperators: false + }], + docs: { description: "Disallow use of optional chaining in contexts where the `undefined` value is not allowed", recommended: true, @@ -32,8 +36,7 @@ module.exports = { type: "object", properties: { disallowArithmeticOperators: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -46,8 +49,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - const disallowArithmeticOperators = (options.disallowArithmeticOperators) || false; + const [{ disallowArithmeticOperators }] = context.options; /** * Reports unsafe usage of optional chaining @@ -94,7 +96,7 @@ module.exports = { break; case "SequenceExpression": checkUndefinedShortCircuit( - node.expressions[node.expressions.length - 1], + node.expressions.at(-1), reportFunc ); break; diff --git a/node_modules/eslint/lib/rules/no-unused-expressions.js b/node_modules/eslint/lib/rules/no-unused-expressions.js index 46bb7baa..fd1437c1 100644 --- a/node_modules/eslint/lib/rules/no-unused-expressions.js +++ b/node_modules/eslint/lib/rules/no-unused-expressions.js @@ -42,37 +42,41 @@ module.exports = { type: "object", properties: { allowShortCircuit: { - type: "boolean", - default: false + type: "boolean" }, allowTernary: { - type: "boolean", - default: false + type: "boolean" }, allowTaggedTemplates: { - type: "boolean", - default: false + type: "boolean" }, enforceForJSX: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false } ], + defaultOptions: [{ + allowShortCircuit: false, + allowTernary: false, + allowTaggedTemplates: false, + enforceForJSX: false + }], + messages: { unusedExpression: "Expected an assignment or function call and instead saw an expression." } }, create(context) { - const config = context.options[0] || {}, - allowShortCircuit = config.allowShortCircuit || false, - allowTernary = config.allowTernary || false, - allowTaggedTemplates = config.allowTaggedTemplates || false, - enforceForJSX = config.enforceForJSX || false; + const [{ + allowShortCircuit, + allowTernary, + allowTaggedTemplates, + enforceForJSX + }] = context.options; /** * Has AST suggesting a directive. diff --git a/node_modules/eslint/lib/rules/no-unused-private-class-members.js b/node_modules/eslint/lib/rules/no-unused-private-class-members.js index 037be7d3..bc05cd25 100644 --- a/node_modules/eslint/lib/rules/no-unused-private-class-members.js +++ b/node_modules/eslint/lib/rules/no-unused-private-class-members.js @@ -16,7 +16,7 @@ module.exports = { docs: { description: "Disallow unused private class members", - recommended: false, + recommended: true, url: "https://eslint.org/docs/latest/rules/no-unused-private-class-members" }, diff --git a/node_modules/eslint/lib/rules/no-unused-vars.js b/node_modules/eslint/lib/rules/no-unused-vars.js index f29e678d..60454929 100644 --- a/node_modules/eslint/lib/rules/no-unused-vars.js +++ b/node_modules/eslint/lib/rules/no-unused-vars.js @@ -15,6 +15,11 @@ const astUtils = require("./utils/ast-utils"); // Typedefs //------------------------------------------------------------------------------ +/** + * A simple name for the types of variables that this rule supports + * @typedef {'array-destructure'|'catch-clause'|'parameter'|'variable'} VariableType + */ + /** * Bag of data used for formatting the `unusedVar` lint message. * @typedef {Object} UnusedVarMessageData @@ -23,6 +28,13 @@ const astUtils = require("./utils/ast-utils"); * @property {string} additional Any additional info to be appended at the end. */ +/** + * Bag of data used for formatting the `usedIgnoredVar` lint message. + * @typedef {Object} UsedIgnoredVarMessageData + * @property {string} varName The name of the unused var. + * @property {string} additional Any additional info to be appended at the end. + */ + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -70,6 +82,12 @@ module.exports = { }, destructuredArrayIgnorePattern: { type: "string" + }, + ignoreClassWithStaticInitBlock: { + type: "boolean" + }, + reportUsedIgnorePattern: { + type: "boolean" } }, additionalProperties: false @@ -79,7 +97,8 @@ module.exports = { ], messages: { - unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}." + unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.", + usedIgnoredVar: "'{{varName}}' is marked as ignored but is used{{additional}}." } }, @@ -92,7 +111,9 @@ module.exports = { vars: "all", args: "after-used", ignoreRestSiblings: false, - caughtErrors: "none" + caughtErrors: "all", + ignoreClassWithStaticInitBlock: false, + reportUsedIgnorePattern: false }; const firstOption = context.options[0]; @@ -105,6 +126,8 @@ module.exports = { config.args = firstOption.args || config.args; config.ignoreRestSiblings = firstOption.ignoreRestSiblings || config.ignoreRestSiblings; config.caughtErrors = firstOption.caughtErrors || config.caughtErrors; + config.ignoreClassWithStaticInitBlock = firstOption.ignoreClassWithStaticInitBlock || config.ignoreClassWithStaticInitBlock; + config.reportUsedIgnorePattern = firstOption.reportUsedIgnorePattern || config.reportUsedIgnorePattern; if (firstOption.varsIgnorePattern) { config.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern, "u"); @@ -124,6 +147,80 @@ module.exports = { } } + /** + * Determines what variable type a def is. + * @param {Object} def the declaration to check + * @returns {VariableType} a simple name for the types of variables that this rule supports + */ + function defToVariableType(def) { + + /* + * This `destructuredArrayIgnorePattern` error report works differently from the catch + * clause and parameter error reports. _Both_ the `varsIgnorePattern` and the + * `destructuredArrayIgnorePattern` will be checked for array destructuring. However, + * for the purposes of the report, the currently defined behavior is to only inform the + * user of the `destructuredArrayIgnorePattern` if it's present (regardless of the fact + * that the `varsIgnorePattern` would also apply). If it's not present, the user will be + * informed of the `varsIgnorePattern`, assuming that's present. + */ + if (config.destructuredArrayIgnorePattern && def.name.parent.type === "ArrayPattern") { + return "array-destructure"; + } + + switch (def.type) { + case "CatchClause": + return "catch-clause"; + case "Parameter": + return "parameter"; + default: + return "variable"; + } + } + + /** + * Gets a given variable's description and configured ignore pattern + * based on the provided variableType + * @param {VariableType} variableType a simple name for the types of variables that this rule supports + * @throws {Error} (Unreachable) + * @returns {[string | undefined, string | undefined]} the given variable's description and + * ignore pattern + */ + function getVariableDescription(variableType) { + let pattern; + let variableDescription; + + switch (variableType) { + case "array-destructure": + pattern = config.destructuredArrayIgnorePattern; + variableDescription = "elements of array destructuring"; + break; + + case "catch-clause": + pattern = config.caughtErrorsIgnorePattern; + variableDescription = "caught errors"; + break; + + case "parameter": + pattern = config.argsIgnorePattern; + variableDescription = "args"; + break; + + case "variable": + pattern = config.varsIgnorePattern; + variableDescription = "vars"; + break; + + default: + throw new Error(`Unexpected variable type: ${variableType}`); + } + + if (pattern) { + pattern = pattern.toString(); + } + + return [variableDescription, pattern]; + } + /** * Generates the message data about the variable being defined and unused, * including the ignore pattern if configured. @@ -131,27 +228,21 @@ module.exports = { * @returns {UnusedVarMessageData} The message data to be used with this unused variable. */ function getDefinedMessageData(unusedVar) { - const defType = unusedVar.defs && unusedVar.defs[0] && unusedVar.defs[0].type; - let type; - let pattern; + const def = unusedVar.defs && unusedVar.defs[0]; + let additionalMessageData = ""; - if (defType === "CatchClause" && config.caughtErrorsIgnorePattern) { - type = "args"; - pattern = config.caughtErrorsIgnorePattern.toString(); - } else if (defType === "Parameter" && config.argsIgnorePattern) { - type = "args"; - pattern = config.argsIgnorePattern.toString(); - } else if (defType !== "Parameter" && config.varsIgnorePattern) { - type = "vars"; - pattern = config.varsIgnorePattern.toString(); - } + if (def) { + const [variableDescription, pattern] = getVariableDescription(defToVariableType(def)); - const additional = type ? `. Allowed unused ${type} must match ${pattern}` : ""; + if (pattern && variableDescription) { + additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; + } + } return { varName: unusedVar.name, action: "defined", - additional + additional: additionalMessageData }; } @@ -162,19 +253,44 @@ module.exports = { * @returns {UnusedVarMessageData} The message data to be used with this unused variable. */ function getAssignedMessageData(unusedVar) { - const def = unusedVar.defs[0]; - let additional = ""; + const def = unusedVar.defs && unusedVar.defs[0]; + let additionalMessageData = ""; + + if (def) { + const [variableDescription, pattern] = getVariableDescription(defToVariableType(def)); - if (config.destructuredArrayIgnorePattern && def && def.name.parent.type === "ArrayPattern") { - additional = `. Allowed unused elements of array destructuring patterns must match ${config.destructuredArrayIgnorePattern.toString()}`; - } else if (config.varsIgnorePattern) { - additional = `. Allowed unused vars must match ${config.varsIgnorePattern.toString()}`; + if (pattern && variableDescription) { + additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; + } } return { varName: unusedVar.name, action: "assigned a value", - additional + additional: additionalMessageData + }; + } + + /** + * Generate the warning message about a variable being used even though + * it is marked as being ignored. + * @param {Variable} variable eslint-scope variable object + * @param {VariableType} variableType a simple name for the types of variables that this rule supports + * @returns {UsedIgnoredVarMessageData} The message data to be used with + * this used ignored variable. + */ + function getUsedIgnoredMessageData(variable, variableType) { + const [variableDescription, pattern] = getVariableDescription(variableType); + + let additionalMessageData = ""; + + if (pattern && variableDescription) { + additionalMessageData = `. Used ${variableDescription} must not match ${pattern}`; + } + + return { + varName: variable.name, + additional: additionalMessageData }; } @@ -218,13 +334,13 @@ module.exports = { function hasRestSibling(node) { return node.type === "Property" && node.parent.type === "ObjectPattern" && - REST_PROPERTY_TYPE.test(node.parent.properties[node.parent.properties.length - 1].type); + REST_PROPERTY_TYPE.test(node.parent.properties.at(-1).type); } /** * Determines if a variable has a sibling rest property * @param {Variable} variable eslint-scope variable object. - * @returns {boolean} True if the variable is exported, false if not. + * @returns {boolean} True if the variable has a sibling rest property, false if not. * @private */ function hasRestSpreadSibling(variable) { @@ -323,7 +439,7 @@ module.exports = { } if (parent.type === "SequenceExpression") { - const isLastExpression = parent.expressions[parent.expressions.length - 1] === node; + const isLastExpression = parent.expressions.at(-1) === node; if (!isLastExpression) { return true; @@ -392,7 +508,7 @@ module.exports = { while (parent && isInside(parent, rhsNode)) { switch (parent.type) { case "SequenceExpression": - if (parent.expressions[parent.expressions.length - 1] !== node) { + if (parent.expressions.at(-1) !== node) { return false; } break; @@ -527,8 +643,13 @@ module.exports = { * @private */ function isUsedVariable(variable) { - const functionNodes = getFunctionDefinitions(variable), - isFunctionDefinition = functionNodes.length > 0; + if (variable.eslintUsed) { + return true; + } + + const functionNodes = getFunctionDefinitions(variable); + const isFunctionDefinition = functionNodes.length > 0; + let rhsNode = null; return variable.references.some(ref => { @@ -584,8 +705,13 @@ module.exports = { continue; } - // skip function expression names and variables marked with markVariableAsUsed() - if (scope.functionExpressionScope || variable.eslintUsed) { + // skip function expression names + if (scope.functionExpressionScope) { + continue; + } + + // skip variables marked with markVariableAsUsed() + if (!config.reportUsedIgnorePattern && variable.eslintUsed) { continue; } @@ -610,9 +736,25 @@ module.exports = { config.destructuredArrayIgnorePattern && config.destructuredArrayIgnorePattern.test(def.name.name) ) { + if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { + context.report({ + node: def.name, + messageId: "usedIgnoredVar", + data: getUsedIgnoredMessageData(variable, "array-destructure") + }); + } + continue; } + if (type === "ClassName") { + const hasStaticBlock = def.node.body.body.some(node => node.type === "StaticBlock"); + + if (config.ignoreClassWithStaticInitBlock && hasStaticBlock) { + continue; + } + } + // skip catch variables if (type === "CatchClause") { if (config.caughtErrors === "none") { @@ -621,11 +763,17 @@ module.exports = { // skip ignored parameters if (config.caughtErrorsIgnorePattern && config.caughtErrorsIgnorePattern.test(def.name.name)) { + if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { + context.report({ + node: def.name, + messageId: "usedIgnoredVar", + data: getUsedIgnoredMessageData(variable, "catch-clause") + }); + } + continue; } - } - - if (type === "Parameter") { + } else if (type === "Parameter") { // skip any setter argument if ((def.node.parent.type === "Property" || def.node.parent.type === "MethodDefinition") && def.node.parent.kind === "set") { @@ -639,6 +787,14 @@ module.exports = { // skip ignored parameters if (config.argsIgnorePattern && config.argsIgnorePattern.test(def.name.name)) { + if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { + context.report({ + node: def.name, + messageId: "usedIgnoredVar", + data: getUsedIgnoredMessageData(variable, "parameter") + }); + } + continue; } @@ -650,6 +806,14 @@ module.exports = { // skip ignored variables if (config.varsIgnorePattern && config.varsIgnorePattern.test(def.name.name)) { + if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { + context.report({ + node: def.name, + messageId: "usedIgnoredVar", + data: getUsedIgnoredMessageData(variable, "variable") + }); + } + continue; } } @@ -688,7 +852,7 @@ module.exports = { let referenceToReport; if (writeReferences.length > 0) { - referenceToReport = writeReferences[writeReferences.length - 1]; + referenceToReport = writeReferences.at(-1); } context.report({ @@ -713,6 +877,5 @@ module.exports = { } } }; - } }; diff --git a/node_modules/eslint/lib/rules/no-use-before-define.js b/node_modules/eslint/lib/rules/no-use-before-define.js index 9d6b0434..59510d8f 100644 --- a/node_modules/eslint/lib/rules/no-use-before-define.js +++ b/node_modules/eslint/lib/rules/no-use-before-define.js @@ -18,21 +18,16 @@ const FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u; * @returns {Object} The parsed options. */ function parseOptions(options) { - let functions = true; - let classes = true; - let variables = true; - let allowNamedExports = false; - - if (typeof options === "string") { - functions = (options !== "nofunc"); - } else if (typeof options === "object" && options !== null) { - functions = options.functions !== false; - classes = options.classes !== false; - variables = options.variables !== false; - allowNamedExports = !!options.allowNamedExports; + if (typeof options === "object" && options !== null) { + return options; } - return { functions, classes, variables, allowNamedExports }; + const functions = + typeof options === "string" + ? options !== "nofunc" + : true; + + return { functions, classes: true, variables: true, allowNamedExports: false }; } /** @@ -251,6 +246,13 @@ module.exports = { } ], + defaultOptions: [{ + classes: true, + functions: true, + variables: true, + allowNamedExports: false + }], + messages: { usedBeforeDefined: "'{{name}}' was used before it was defined." } diff --git a/node_modules/eslint/lib/rules/no-useless-assignment.js b/node_modules/eslint/lib/rules/no-useless-assignment.js new file mode 100644 index 00000000..cac8ba1f --- /dev/null +++ b/node_modules/eslint/lib/rules/no-useless-assignment.js @@ -0,0 +1,566 @@ +/** + * @fileoverview A rule to disallow unnecessary assignments`. + * @author Yosuke Ota + */ + +"use strict"; + +const { findVariable } = require("@eslint-community/eslint-utils"); + +//------------------------------------------------------------------------------ +// Types +//------------------------------------------------------------------------------ + +/** @typedef {import("estree").Node} ASTNode */ +/** @typedef {import("estree").Pattern} Pattern */ +/** @typedef {import("estree").Identifier} Identifier */ +/** @typedef {import("estree").VariableDeclarator} VariableDeclarator */ +/** @typedef {import("estree").AssignmentExpression} AssignmentExpression */ +/** @typedef {import("estree").UpdateExpression} UpdateExpression */ +/** @typedef {import("estree").Expression} Expression */ +/** @typedef {import("eslint-scope").Scope} Scope */ +/** @typedef {import("eslint-scope").Variable} Variable */ +/** @typedef {import("../linter/code-path-analysis/code-path")} CodePath */ +/** @typedef {import("../linter/code-path-analysis/code-path-segment")} CodePathSegment */ + +//------------------------------------------------------------------------------ +// Helpers +//------------------------------------------------------------------------------ + +/** + * Extract identifier from the given pattern node used on the left-hand side of the assignment. + * @param {Pattern} pattern The pattern node to extract identifier + * @returns {Iterable} The extracted identifier + */ +function *extractIdentifiersFromPattern(pattern) { + switch (pattern.type) { + case "Identifier": + yield pattern; + return; + case "ObjectPattern": + for (const property of pattern.properties) { + yield* extractIdentifiersFromPattern(property.type === "Property" ? property.value : property); + } + return; + case "ArrayPattern": + for (const element of pattern.elements) { + if (!element) { + continue; + } + yield* extractIdentifiersFromPattern(element); + } + return; + case "RestElement": + yield* extractIdentifiersFromPattern(pattern.argument); + return; + case "AssignmentPattern": + yield* extractIdentifiersFromPattern(pattern.left); + + // no default + } +} + + +/** + * Checks whether the given identifier node is evaluated after the assignment identifier. + * @param {AssignmentInfo} assignment The assignment info. + * @param {Identifier} identifier The identifier to check. + * @returns {boolean} `true` if the given identifier node is evaluated after the assignment identifier. + */ +function isIdentifierEvaluatedAfterAssignment(assignment, identifier) { + if (identifier.range[0] < assignment.identifier.range[1]) { + return false; + } + if ( + assignment.expression && + assignment.expression.range[0] <= identifier.range[0] && + identifier.range[1] <= assignment.expression.range[1] + ) { + + /* + * The identifier node is in an expression that is evaluated before the assignment. + * e.g. x = id; + * ^^ identifier to check + * ^ assignment identifier + */ + return false; + } + + /* + * e.g. + * x = 42; id; + * ^^ identifier to check + * ^ assignment identifier + * let { x, y = id } = obj; + * ^^ identifier to check + * ^ assignment identifier + */ + return true; +} + +/** + * Checks whether the given identifier node is used between the assigned identifier and the equal sign. + * + * e.g. let { x, y = x } = obj; + * ^ identifier to check + * ^ assigned identifier + * @param {AssignmentInfo} assignment The assignment info. + * @param {Identifier} identifier The identifier to check. + * @returns {boolean} `true` if the given identifier node is used between the assigned identifier and the equal sign. + */ +function isIdentifierUsedBetweenAssignedAndEqualSign(assignment, identifier) { + if (!assignment.expression) { + return false; + } + return ( + assignment.identifier.range[1] <= identifier.range[0] && + identifier.range[1] <= assignment.expression.range[0] + ); +} + +//------------------------------------------------------------------------------ +// Rule Definition +//------------------------------------------------------------------------------ + +/** @type {import('../shared/types').Rule} */ +module.exports = { + meta: { + type: "problem", + + docs: { + description: "Disallow variable assignments when the value is not used", + recommended: false, + url: "https://eslint.org/docs/latest/rules/no-useless-assignment" + }, + + schema: [], + + messages: { + unnecessaryAssignment: "This assigned value is not used in subsequent statements." + } + }, + + create(context) { + const sourceCode = context.sourceCode; + + /** + * @typedef {Object} ScopeStack + * @property {CodePath} codePath The code path of this scope stack. + * @property {Scope} scope The scope of this scope stack. + * @property {ScopeStack} upper The upper scope stack. + * @property {Record} segments The map of ScopeStackSegmentInfo. + * @property {Set} currentSegments The current CodePathSegments. + * @property {Map} assignments The map of list of AssignmentInfo for each variable. + */ + /** + * @typedef {Object} ScopeStackSegmentInfo + * @property {CodePathSegment} segment The code path segment. + * @property {Identifier|null} first The first identifier that appears within the segment. + * @property {Identifier|null} last The last identifier that appears within the segment. + * `first` and `last` are used to determine whether an identifier exists within the segment position range. + * Since it is used as a range of segments, we should originally hold all nodes, not just identifiers, + * but since the only nodes to be judged are identifiers, it is sufficient to have a range of identifiers. + */ + /** + * @typedef {Object} AssignmentInfo + * @property {Variable} variable The variable that is assigned. + * @property {Identifier} identifier The identifier that is assigned. + * @property {VariableDeclarator|AssignmentExpression|UpdateExpression} node The node where the variable was updated. + * @property {Expression|null} expression The expression that is evaluated before the assignment. + * @property {CodePathSegment[]} segments The code path segments where the assignment was made. + */ + + /** @type {ScopeStack} */ + let scopeStack = null; + + /** @type {Set} */ + const codePathStartScopes = new Set(); + + /** + * Gets the scope of code path start from given scope + * @param {Scope} scope The initial scope + * @returns {Scope} The scope of code path start + * @throws {Error} Unexpected error + */ + function getCodePathStartScope(scope) { + let target = scope; + + while (target) { + if (codePathStartScopes.has(target)) { + return target; + } + target = target.upper; + } + + // Should be unreachable + return null; + } + + /** + * Verify the given scope stack. + * @param {ScopeStack} target The scope stack to verify. + * @returns {void} + */ + function verify(target) { + + /** + * Checks whether the given identifier is used in the segment. + * @param {CodePathSegment} segment The code path segment. + * @param {Identifier} identifier The identifier to check. + * @returns {boolean} `true` if the identifier is used in the segment. + */ + function isIdentifierUsedInSegment(segment, identifier) { + const segmentInfo = target.segments[segment.id]; + + return ( + segmentInfo.first && + segmentInfo.last && + segmentInfo.first.range[0] <= identifier.range[0] && + identifier.range[1] <= segmentInfo.last.range[1] + ); + } + + /** + * Verifies whether the given assignment info is an used assignment. + * Report if it is an unused assignment. + * @param {AssignmentInfo} targetAssignment The assignment info to verify. + * @param {AssignmentInfo[]} allAssignments The list of all assignment info for variables. + * @returns {void} + */ + function verifyAssignmentIsUsed(targetAssignment, allAssignments) { + + /** + * @typedef {Object} SubsequentSegmentData + * @property {CodePathSegment} segment The code path segment + * @property {AssignmentInfo} [assignment] The first occurrence of the assignment within the segment. + * There is no need to check if the variable is used after this assignment, + * as the value it was assigned will be used. + */ + + /** + * Information used in `getSubsequentSegments()`. + * To avoid unnecessary iterations, cache information that has already been iterated over, + * and if additional iterations are needed, start iterating from the retained position. + */ + const subsequentSegmentData = { + + /** + * Cache of subsequent segment information list that have already been iterated. + * @type {SubsequentSegmentData[]} + */ + results: [], + + /** + * Subsequent segments that have already been iterated on. Used to avoid infinite loops. + * @type {Set} + */ + subsequentSegments: new Set(), + + /** + * Unexplored code path segment. + * If additional iterations are needed, consume this information and iterate. + * @type {CodePathSegment[]} + */ + queueSegments: targetAssignment.segments.flatMap(segment => segment.nextSegments) + }; + + + /** + * Gets the subsequent segments from the segment of + * the assignment currently being validated (targetAssignment). + * @returns {Iterable} the subsequent segments + */ + function *getSubsequentSegments() { + yield* subsequentSegmentData.results; + + while (subsequentSegmentData.queueSegments.length > 0) { + const nextSegment = subsequentSegmentData.queueSegments.shift(); + + if (subsequentSegmentData.subsequentSegments.has(nextSegment)) { + continue; + } + subsequentSegmentData.subsequentSegments.add(nextSegment); + + const assignmentInSegment = allAssignments + .find(otherAssignment => ( + otherAssignment.segments.includes(nextSegment) && + !isIdentifierUsedBetweenAssignedAndEqualSign(otherAssignment, targetAssignment.identifier) + )); + + if (!assignmentInSegment) { + + /* + * Stores the next segment to explore. + * If `assignmentInSegment` exists, + * we are guarding it because we don't need to explore the next segment. + */ + subsequentSegmentData.queueSegments.push(...nextSegment.nextSegments); + } + + /** @type {SubsequentSegmentData} */ + const result = { + segment: nextSegment, + assignment: assignmentInSegment + }; + + subsequentSegmentData.results.push(result); + yield result; + } + } + + + const readReferences = targetAssignment.variable.references.filter(reference => reference.isRead()); + + if (!readReferences.length) { + + /* + * It is not just an unnecessary assignment, but an unnecessary (unused) variable + * and thus should not be reported by this rule because it is reported by `no-unused-vars`. + */ + return; + } + + /** + * Other assignment on the current segment and after current assignment. + */ + const otherAssignmentAfterTargetAssignment = allAssignments + .find(assignment => { + if ( + assignment === targetAssignment || + assignment.segments.length && assignment.segments.every(segment => !targetAssignment.segments.includes(segment)) + ) { + return false; + } + if (isIdentifierEvaluatedAfterAssignment(targetAssignment, assignment.identifier)) { + return true; + } + if ( + assignment.expression && + assignment.expression.range[0] <= targetAssignment.identifier.range[0] && + targetAssignment.identifier.range[1] <= assignment.expression.range[1] + ) { + + /* + * The target assignment is in an expression that is evaluated before the assignment. + * e.g. x=(x=1); + * ^^^ targetAssignment + * ^^^^^^^ assignment + */ + return true; + } + + return false; + }); + + for (const reference of readReferences) { + + /* + * If the scope of the reference is outside the current code path scope, + * we cannot track whether this assignment is not used. + * For example, it can also be called asynchronously. + */ + if (target.scope !== getCodePathStartScope(reference.from)) { + return; + } + + // Checks if it is used in the same segment as the target assignment. + if ( + isIdentifierEvaluatedAfterAssignment(targetAssignment, reference.identifier) && + ( + isIdentifierUsedBetweenAssignedAndEqualSign(targetAssignment, reference.identifier) || + targetAssignment.segments.some(segment => isIdentifierUsedInSegment(segment, reference.identifier)) + ) + ) { + + if ( + otherAssignmentAfterTargetAssignment && + isIdentifierEvaluatedAfterAssignment(otherAssignmentAfterTargetAssignment, reference.identifier) + ) { + + // There was another assignment before the reference. Therefore, it has not been used yet. + continue; + } + + // Uses in statements after the written identifier. + return; + } + + if (otherAssignmentAfterTargetAssignment) { + + /* + * The assignment was followed by another assignment in the same segment. + * Therefore, there is no need to check the next segment. + */ + continue; + } + + // Check subsequent segments. + for (const subsequentSegment of getSubsequentSegments()) { + if (isIdentifierUsedInSegment(subsequentSegment.segment, reference.identifier)) { + if ( + subsequentSegment.assignment && + isIdentifierEvaluatedAfterAssignment(subsequentSegment.assignment, reference.identifier) + ) { + + // There was another assignment before the reference. Therefore, it has not been used yet. + continue; + } + + // It is used + return; + } + } + } + context.report({ + node: targetAssignment.identifier, + messageId: "unnecessaryAssignment" + }); + } + + // Verify that each assignment in the code path is used. + for (const assignments of target.assignments.values()) { + assignments.sort((a, b) => a.identifier.range[0] - b.identifier.range[0]); + for (const assignment of assignments) { + verifyAssignmentIsUsed(assignment, assignments); + } + } + } + + return { + onCodePathStart(codePath, node) { + const scope = sourceCode.getScope(node); + + scopeStack = { + upper: scopeStack, + codePath, + scope, + segments: Object.create(null), + currentSegments: new Set(), + assignments: new Map() + }; + codePathStartScopes.add(scopeStack.scope); + }, + onCodePathEnd() { + verify(scopeStack); + + scopeStack = scopeStack.upper; + }, + onCodePathSegmentStart(segment) { + const segmentInfo = { segment, first: null, last: null }; + + scopeStack.segments[segment.id] = segmentInfo; + scopeStack.currentSegments.add(segment); + }, + onCodePathSegmentEnd(segment) { + scopeStack.currentSegments.delete(segment); + }, + Identifier(node) { + for (const segment of scopeStack.currentSegments) { + const segmentInfo = scopeStack.segments[segment.id]; + + if (!segmentInfo.first) { + segmentInfo.first = node; + } + segmentInfo.last = node; + } + }, + ":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(node) { + if (scopeStack.currentSegments.size === 0) { + + // Ignore unreachable segments + return; + } + + const assignments = scopeStack.assignments; + + let pattern; + let expression = null; + + if (node.type === "VariableDeclarator") { + pattern = node.id; + expression = node.init; + } else if (node.type === "AssignmentExpression") { + pattern = node.left; + expression = node.right; + } else { // UpdateExpression + pattern = node.argument; + } + + for (const identifier of extractIdentifiersFromPattern(pattern)) { + const scope = sourceCode.getScope(identifier); + + /** @type {Variable} */ + const variable = findVariable(scope, identifier); + + if (!variable) { + continue; + } + + // We don't know where global variables are used. + if (variable.scope.type === "global" && variable.defs.length === 0) { + continue; + } + + /* + * If the scope of the variable is outside the current code path scope, + * we cannot track whether this assignment is not used. + */ + if (scopeStack.scope !== getCodePathStartScope(variable.scope)) { + continue; + } + + // Variables marked by `markVariableAsUsed()` or + // exported by "exported" block comment. + if (variable.eslintUsed) { + continue; + } + + // Variables exported by ESM export syntax + if (variable.scope.type === "module") { + if ( + variable.defs + .some(def => ( + (def.type === "Variable" && def.parent.parent.type === "ExportNamedDeclaration") || + ( + def.type === "FunctionName" && + ( + def.node.parent.type === "ExportNamedDeclaration" || + def.node.parent.type === "ExportDefaultDeclaration" + ) + ) || + ( + def.type === "ClassName" && + ( + def.node.parent.type === "ExportNamedDeclaration" || + def.node.parent.type === "ExportDefaultDeclaration" + ) + ) + )) + ) { + continue; + } + if (variable.references.some(reference => reference.identifier.parent.type === "ExportSpecifier")) { + + // It have `export { ... }` reference. + continue; + } + } + + let list = assignments.get(variable); + + if (!list) { + list = []; + assignments.set(variable, list); + } + list.push({ + variable, + identifier, + node, + expression, + segments: [...scopeStack.currentSegments] + }); + } + } + }; + } +}; diff --git a/node_modules/eslint/lib/rules/no-useless-backreference.js b/node_modules/eslint/lib/rules/no-useless-backreference.js index 7ca43c8b..d41a8988 100644 --- a/node_modules/eslint/lib/rules/no-useless-backreference.js +++ b/node_modules/eslint/lib/rules/no-useless-backreference.js @@ -72,11 +72,11 @@ module.exports = { schema: [], messages: { - nested: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.", - forward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.", - backward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.", - disjunctive: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.", - intoNegativeLookaround: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround." + nested: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.", + forward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.", + backward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.", + disjunctive: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.", + intoNegativeLookaround: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround." } }, @@ -104,16 +104,21 @@ module.exports = { visitRegExpAST(regExpAST, { onBackreferenceEnter(bref) { - const group = bref.resolved, - brefPath = getPathToRoot(bref), - groupPath = getPathToRoot(group); - let messageId = null; + const groups = [bref.resolved].flat(), + brefPath = getPathToRoot(bref); - if (brefPath.includes(group)) { + const problems = groups.map(group => { + const groupPath = getPathToRoot(group); + + if (brefPath.includes(group)) { + + // group is bref's ancestor => bref is nested ('nested reference') => group hasn't matched yet when bref starts to match. + return { + messageId: "nested", + group + }; + } - // group is bref's ancestor => bref is nested ('nested reference') => group hasn't matched yet when bref starts to match. - messageId = "nested"; - } else { // Start from the root to find the lowest common ancestor. let i = brefPath.length - 1, @@ -130,35 +135,80 @@ module.exports = { lowestCommonLookaround = commonPath.find(isLookaround), isMatchingBackward = lowestCommonLookaround && lowestCommonLookaround.kind === "lookbehind"; + if (groupCut.at(-1).type === "Alternative") { + + // group's and bref's ancestor nodes below the lowest common ancestor are sibling alternatives => they're disjunctive. + return { + messageId: "disjunctive", + group + }; + } if (!isMatchingBackward && bref.end <= group.start) { // bref is left, group is right ('forward reference') => group hasn't matched yet when bref starts to match. - messageId = "forward"; - } else if (isMatchingBackward && group.end <= bref.start) { + return { + messageId: "forward", + group + }; + } + if (isMatchingBackward && group.end <= bref.start) { // the opposite of the previous when the regex is matching backward in a lookbehind context. - messageId = "backward"; - } else if (groupCut[groupCut.length - 1].type === "Alternative") { - - // group's and bref's ancestor nodes below the lowest common ancestor are sibling alternatives => they're disjunctive. - messageId = "disjunctive"; - } else if (groupCut.some(isNegativeLookaround)) { + return { + messageId: "backward", + group + }; + } + if (groupCut.some(isNegativeLookaround)) { // group is in a negative lookaround which isn't bref's ancestor => group has already failed when bref starts to match. - messageId = "intoNegativeLookaround"; + return { + messageId: "intoNegativeLookaround", + group + }; } + + return null; + }); + + if (problems.length === 0 || problems.some(problem => !problem)) { + + // If there are no problems or no problems with any group then do not report it. + return; } - if (messageId) { - context.report({ - node, - messageId, - data: { - bref: bref.raw, - group: group.raw - } - }); + let problemsToReport; + + // Gets problems that appear in the same disjunction. + const problemsInSameDisjunction = problems.filter(problem => problem.messageId !== "disjunctive"); + + if (problemsInSameDisjunction.length) { + + // Only report problems that appear in the same disjunction. + problemsToReport = problemsInSameDisjunction; + } else { + + // If all groups appear in different disjunctions, report it. + problemsToReport = problems; } + + const [{ messageId, group }, ...other] = problemsToReport; + let otherGroups = ""; + + if (other.length === 1) { + otherGroups = " and another group"; + } else if (other.length > 1) { + otherGroups = ` and other ${other.length} groups`; + } + context.report({ + node, + messageId, + data: { + bref: bref.raw, + group: group.raw, + otherGroups + } + }); } }); } diff --git a/node_modules/eslint/lib/rules/no-useless-computed-key.js b/node_modules/eslint/lib/rules/no-useless-computed-key.js index f2d9f334..11dbd9d0 100644 --- a/node_modules/eslint/lib/rules/no-useless-computed-key.js +++ b/node_modules/eslint/lib/rules/no-useless-computed-key.js @@ -58,7 +58,10 @@ function hasUselessComputedKey(node) { switch (node.type) { case "Property": - return value !== "__proto__"; + if (node.parent.type === "ObjectExpression") { + return value !== "__proto__"; + } + return true; case "PropertyDefinition": if (node.static) { @@ -90,6 +93,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + enforceForClassMembers: true + }], + docs: { description: "Disallow unnecessary computed property keys in objects and classes", recommended: false, @@ -100,8 +107,7 @@ module.exports = { type: "object", properties: { enforceForClassMembers: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -114,7 +120,7 @@ module.exports = { }, create(context) { const sourceCode = context.sourceCode; - const enforceForClassMembers = context.options[0] && context.options[0].enforceForClassMembers; + const [{ enforceForClassMembers }] = context.options; /** * Reports a given node if it violated this rule. diff --git a/node_modules/eslint/lib/rules/no-useless-constructor.js b/node_modules/eslint/lib/rules/no-useless-constructor.js index 2b9c18e5..2c063caa 100644 --- a/node_modules/eslint/lib/rules/no-useless-constructor.js +++ b/node_modules/eslint/lib/rules/no-useless-constructor.js @@ -4,6 +4,8 @@ */ "use strict"; +const astUtils = require("./utils/ast-utils"); + //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ @@ -143,10 +145,13 @@ module.exports = { url: "https://eslint.org/docs/latest/rules/no-useless-constructor" }, + hasSuggestions: true, + schema: [], messages: { - noUselessConstructor: "Useless constructor." + noUselessConstructor: "Useless constructor.", + removeConstructor: "Remove the constructor." } }, @@ -177,7 +182,18 @@ module.exports = { if (superClass ? isRedundantSuperCall(body, ctorParams) : (body.length === 0)) { context.report({ node, - messageId: "noUselessConstructor" + messageId: "noUselessConstructor", + suggest: [ + { + messageId: "removeConstructor", + *fix(fixer) { + const nextToken = context.sourceCode.getTokenAfter(node); + const addSemiColon = nextToken.type === "Punctuator" && nextToken.value === "[" && astUtils.needsPrecedingSemicolon(context.sourceCode, node); + + yield fixer.replaceText(node, addSemiColon ? ";" : ""); + } + } + ] }); } } diff --git a/node_modules/eslint/lib/rules/no-useless-rename.js b/node_modules/eslint/lib/rules/no-useless-rename.js index 0c818fb2..2bde8234 100644 --- a/node_modules/eslint/lib/rules/no-useless-rename.js +++ b/node_modules/eslint/lib/rules/no-useless-rename.js @@ -20,6 +20,12 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + ignoreDestructuring: false, + ignoreImport: false, + ignoreExport: false + }], + docs: { description: "Disallow renaming import, export, and destructured assignments to the same name", recommended: false, @@ -32,9 +38,9 @@ module.exports = { { type: "object", properties: { - ignoreDestructuring: { type: "boolean", default: false }, - ignoreImport: { type: "boolean", default: false }, - ignoreExport: { type: "boolean", default: false } + ignoreDestructuring: { type: "boolean" }, + ignoreImport: { type: "boolean" }, + ignoreExport: { type: "boolean" } }, additionalProperties: false } @@ -46,11 +52,8 @@ module.exports = { }, create(context) { - const sourceCode = context.sourceCode, - options = context.options[0] || {}, - ignoreDestructuring = options.ignoreDestructuring === true, - ignoreImport = options.ignoreImport === true, - ignoreExport = options.ignoreExport === true; + const sourceCode = context.sourceCode; + const [{ ignoreDestructuring, ignoreImport, ignoreExport }] = context.options; //-------------------------------------------------------------------------- // Helpers diff --git a/node_modules/eslint/lib/rules/no-useless-return.js b/node_modules/eslint/lib/rules/no-useless-return.js index 81d61051..1f85cdb9 100644 --- a/node_modules/eslint/lib/rules/no-useless-return.js +++ b/node_modules/eslint/lib/rules/no-useless-return.js @@ -146,7 +146,9 @@ module.exports = { continue; } - uselessReturns.push(...segmentInfoMap.get(segment).uselessReturns); + if (segmentInfoMap.has(segment)) { + uselessReturns.push(...segmentInfoMap.get(segment).uselessReturns); + } } return uselessReturns; @@ -182,6 +184,10 @@ module.exports = { const info = segmentInfoMap.get(segment); + if (!info) { + return; + } + info.uselessReturns = info.uselessReturns.filter(node => { if (scopeInfo.traversedTryBlockStatements && scopeInfo.traversedTryBlockStatements.length > 0) { const returnInitialRange = node.range[0]; @@ -275,7 +281,6 @@ module.exports = { * NOTE: This event is notified for only reachable segments. */ onCodePathSegmentStart(segment) { - scopeInfo.currentSegments.add(segment); const info = { diff --git a/node_modules/eslint/lib/rules/no-void.js b/node_modules/eslint/lib/rules/no-void.js index 9546d7a6..1f643f2f 100644 --- a/node_modules/eslint/lib/rules/no-void.js +++ b/node_modules/eslint/lib/rules/no-void.js @@ -13,6 +13,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowAsStatement: false + }], + docs: { description: "Disallow `void` operators", recommended: false, @@ -28,8 +32,7 @@ module.exports = { type: "object", properties: { allowAsStatement: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -38,8 +41,7 @@ module.exports = { }, create(context) { - const allowAsStatement = - context.options[0] && context.options[0].allowAsStatement; + const [{ allowAsStatement }] = context.options; //-------------------------------------------------------------------------- // Public diff --git a/node_modules/eslint/lib/rules/no-warning-comments.js b/node_modules/eslint/lib/rules/no-warning-comments.js index c415bee7..628f5a2a 100644 --- a/node_modules/eslint/lib/rules/no-warning-comments.js +++ b/node_modules/eslint/lib/rules/no-warning-comments.js @@ -19,6 +19,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + location: "start", + terms: ["todo", "fixme", "xxx"] + }], + docs: { description: "Disallow specified warning terms in comments", recommended: false, @@ -58,12 +63,10 @@ module.exports = { }, create(context) { - const sourceCode = context.sourceCode, - configuration = context.options[0] || {}, - warningTerms = configuration.terms || ["todo", "fixme", "xxx"], - location = configuration.location || "start", - decoration = [...configuration.decoration || []].join(""), - selfConfigRegEx = /\bno-warning-comments\b/u; + const sourceCode = context.sourceCode; + const [{ decoration, location, terms: warningTerms }] = context.options; + const escapedDecoration = escapeRegExp(decoration ? decoration.join("") : ""); + const selfConfigRegEx = /\bno-warning-comments\b/u; /** * Convert a warning term into a RegExp which will match a comment containing that whole word in the specified @@ -74,7 +77,6 @@ module.exports = { */ function convertToRegExp(term) { const escaped = escapeRegExp(term); - const escapedDecoration = escapeRegExp(decoration); /* * When matching at the start, ignore leading whitespace, and diff --git a/node_modules/eslint/lib/rules/object-curly-spacing.js b/node_modules/eslint/lib/rules/object-curly-spacing.js index 4463bcd5..6cb0b0f9 100644 --- a/node_modules/eslint/lib/rules/object-curly-spacing.js +++ b/node_modules/eslint/lib/rules/object-curly-spacing.js @@ -217,7 +217,7 @@ module.exports = { * @returns {Token} '}' token. */ function getClosingBraceOfObject(node) { - const lastProperty = node.properties[node.properties.length - 1]; + const lastProperty = node.properties.at(-1); return sourceCode.getTokenAfter(lastProperty, astUtils.isClosingBraceToken); } @@ -251,7 +251,7 @@ module.exports = { } let firstSpecifier = node.specifiers[0]; - const lastSpecifier = node.specifiers[node.specifiers.length - 1]; + const lastSpecifier = node.specifiers.at(-1); if (lastSpecifier.type !== "ImportSpecifier") { return; @@ -279,7 +279,7 @@ module.exports = { } const firstSpecifier = node.specifiers[0], - lastSpecifier = node.specifiers[node.specifiers.length - 1], + lastSpecifier = node.specifiers.at(-1), first = sourceCode.getTokenBefore(firstSpecifier), last = sourceCode.getTokenAfter(lastSpecifier, astUtils.isNotCommaToken), second = sourceCode.getTokenAfter(first, { includeComments: true }), diff --git a/node_modules/eslint/lib/rules/object-property-newline.js b/node_modules/eslint/lib/rules/object-property-newline.js index 6ffa0642..8a08676c 100644 --- a/node_modules/eslint/lib/rules/object-property-newline.js +++ b/node_modules/eslint/lib/rules/object-property-newline.js @@ -63,7 +63,7 @@ module.exports = { if (allowSameLine) { if (node.properties.length > 1) { const firstTokenOfFirstProperty = sourceCode.getFirstToken(node.properties[0]); - const lastTokenOfLastProperty = sourceCode.getLastToken(node.properties[node.properties.length - 1]); + const lastTokenOfLastProperty = sourceCode.getLastToken(node.properties.at(-1)); if (firstTokenOfFirstProperty.loc.end.line === lastTokenOfLastProperty.loc.start.line) { diff --git a/node_modules/eslint/lib/rules/object-shorthand.js b/node_modules/eslint/lib/rules/object-shorthand.js index e4cb3a44..f035bbe5 100644 --- a/node_modules/eslint/lib/rules/object-shorthand.js +++ b/node_modules/eslint/lib/rules/object-shorthand.js @@ -284,35 +284,22 @@ module.exports = { const arrowToken = sourceCode.getTokenBefore(node.value.body, astUtils.isArrowToken); const fnBody = sourceCode.text.slice(arrowToken.range[1], node.value.range[1]); - let shouldAddParensAroundParameters = false; - let tokenBeforeParams; - - if (node.value.params.length === 0) { - tokenBeforeParams = sourceCode.getFirstToken(node.value, astUtils.isOpeningParenToken); - } else { - tokenBeforeParams = sourceCode.getTokenBefore(node.value.params[0]); - } - - if (node.value.params.length === 1) { - const hasParen = astUtils.isOpeningParenToken(tokenBeforeParams); - const isTokenOutsideNode = tokenBeforeParams.range[0] < node.range[0]; - - shouldAddParensAroundParameters = !hasParen || isTokenOutsideNode; - } + // First token should not be `async` + const firstValueToken = sourceCode.getFirstToken(node.value, { + skip: node.value.async ? 1 : 0 + }); - const sliceStart = shouldAddParensAroundParameters - ? node.value.params[0].range[0] - : tokenBeforeParams.range[0]; + const sliceStart = firstValueToken.range[0]; const sliceEnd = sourceCode.getTokenBefore(arrowToken).range[1]; + const shouldAddParens = node.value.params.length === 1 && node.value.params[0].range[0] === sliceStart; const oldParamText = sourceCode.text.slice(sliceStart, sliceEnd); - const newParamText = shouldAddParensAroundParameters ? `(${oldParamText})` : oldParamText; + const newParamText = shouldAddParens ? `(${oldParamText})` : oldParamText; return fixer.replaceTextRange( fixRange, methodPrefix + newParamText + fnBody ); - } /** @@ -497,6 +484,13 @@ module.exports = { node, messageId: "expectedPropertyShorthand", fix(fixer) { + + // x: /* */ x + // x: (/* */ x) + if (sourceCode.getCommentsInside(node).length > 0) { + return null; + } + return fixer.replaceText(node, node.value.name); } }); @@ -510,6 +504,13 @@ module.exports = { node, messageId: "expectedPropertyShorthand", fix(fixer) { + + // "x": /* */ x + // "x": (/* */ x) + if (sourceCode.getCommentsInside(node).length > 0) { + return null; + } + return fixer.replaceText(node, node.value.name); } }); diff --git a/node_modules/eslint/lib/rules/one-var.js b/node_modules/eslint/lib/rules/one-var.js index abb1525b..ba461a40 100644 --- a/node_modules/eslint/lib/rules/one-var.js +++ b/node_modules/eslint/lib/rules/one-var.js @@ -109,12 +109,12 @@ module.exports = { options.var = { uninitialized: mode.var, initialized: mode.var }; options.let = { uninitialized: mode.let, initialized: mode.let }; options.const = { uninitialized: mode.const, initialized: mode.const }; - if (Object.prototype.hasOwnProperty.call(mode, "uninitialized")) { + if (Object.hasOwn(mode, "uninitialized")) { options.var.uninitialized = mode.uninitialized; options.let.uninitialized = mode.uninitialized; options.const.uninitialized = mode.uninitialized; } - if (Object.prototype.hasOwnProperty.call(mode, "initialized")) { + if (Object.hasOwn(mode, "initialized")) { options.var.initialized = mode.initialized; options.let.initialized = mode.initialized; options.const.initialized = mode.initialized; @@ -216,11 +216,11 @@ module.exports = { let currentScope; if (statementType === "var") { - currentScope = functionStack[functionStack.length - 1]; + currentScope = functionStack.at(-1); } else if (statementType === "let") { - currentScope = blockStack[blockStack.length - 1].let; + currentScope = blockStack.at(-1).let; } else if (statementType === "const") { - currentScope = blockStack[blockStack.length - 1].const; + currentScope = blockStack.at(-1).const; } return currentScope; } diff --git a/node_modules/eslint/lib/rules/operator-assignment.js b/node_modules/eslint/lib/rules/operator-assignment.js index f71d73be..412c97f6 100644 --- a/node_modules/eslint/lib/rules/operator-assignment.js +++ b/node_modules/eslint/lib/rules/operator-assignment.js @@ -62,6 +62,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["always"], + docs: { description: "Require or disallow assignment operator shorthand where possible", recommended: false, @@ -82,7 +84,7 @@ module.exports = { }, create(context) { - + const never = context.options[0] === "never"; const sourceCode = context.sourceCode; /** @@ -202,7 +204,7 @@ module.exports = { } return { - AssignmentExpression: context.options[0] !== "never" ? verify : prohibit + AssignmentExpression: !never ? verify : prohibit }; } diff --git a/node_modules/eslint/lib/rules/padded-blocks.js b/node_modules/eslint/lib/rules/padded-blocks.js index ec4756ba..d0c04543 100644 --- a/node_modules/eslint/lib/rules/padded-blocks.js +++ b/node_modules/eslint/lib/rules/padded-blocks.js @@ -84,18 +84,18 @@ module.exports = { options.switches = shouldHavePadding; options.classes = shouldHavePadding; } else { - if (Object.prototype.hasOwnProperty.call(typeOptions, "blocks")) { + if (Object.hasOwn(typeOptions, "blocks")) { options.blocks = typeOptions.blocks === "always"; } - if (Object.prototype.hasOwnProperty.call(typeOptions, "switches")) { + if (Object.hasOwn(typeOptions, "switches")) { options.switches = typeOptions.switches === "always"; } - if (Object.prototype.hasOwnProperty.call(typeOptions, "classes")) { + if (Object.hasOwn(typeOptions, "classes")) { options.classes = typeOptions.classes === "always"; } } - if (Object.prototype.hasOwnProperty.call(exceptOptions, "allowSingleLineBlocks")) { + if (Object.hasOwn(exceptOptions, "allowSingleLineBlocks")) { options.allowSingleLineBlocks = exceptOptions.allowSingleLineBlocks === true; } @@ -277,7 +277,7 @@ module.exports = { const rule = {}; - if (Object.prototype.hasOwnProperty.call(options, "switches")) { + if (Object.hasOwn(options, "switches")) { rule.SwitchStatement = function(node) { if (node.cases.length === 0) { return; @@ -286,7 +286,7 @@ module.exports = { }; } - if (Object.prototype.hasOwnProperty.call(options, "blocks")) { + if (Object.hasOwn(options, "blocks")) { rule.BlockStatement = function(node) { if (node.body.length === 0) { return; @@ -296,7 +296,7 @@ module.exports = { rule.StaticBlock = rule.BlockStatement; } - if (Object.prototype.hasOwnProperty.call(options, "classes")) { + if (Object.hasOwn(options, "classes")) { rule.ClassBody = function(node) { if (node.body.length === 0) { return; diff --git a/node_modules/eslint/lib/rules/prefer-arrow-callback.js b/node_modules/eslint/lib/rules/prefer-arrow-callback.js index d22e508b..ef2ea7bb 100644 --- a/node_modules/eslint/lib/rules/prefer-arrow-callback.js +++ b/node_modules/eslint/lib/rules/prefer-arrow-callback.js @@ -150,6 +150,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ allowNamedFunctions: false, allowUnboundThis: true }], + docs: { description: "Require using arrow functions for callbacks", recommended: false, @@ -161,12 +163,10 @@ module.exports = { type: "object", properties: { allowNamedFunctions: { - type: "boolean", - default: false + type: "boolean" }, allowUnboundThis: { - type: "boolean", - default: true + type: "boolean" } }, additionalProperties: false @@ -181,10 +181,7 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; - - const allowUnboundThis = options.allowUnboundThis !== false; // default to true - const allowNamedFunctions = options.allowNamedFunctions; + const [{ allowNamedFunctions, allowUnboundThis }] = context.options; const sourceCode = context.sourceCode; /* @@ -220,7 +217,7 @@ module.exports = { // If there are below, it cannot replace with arrow functions merely. ThisExpression() { - const info = stack[stack.length - 1]; + const info = stack.at(-1); if (info) { info.this = true; @@ -228,7 +225,7 @@ module.exports = { }, Super() { - const info = stack[stack.length - 1]; + const info = stack.at(-1); if (info) { info.super = true; @@ -236,7 +233,7 @@ module.exports = { }, MetaProperty(node) { - const info = stack[stack.length - 1]; + const info = stack.at(-1); if (info && checkMetaProperty(node, "new", "target")) { info.meta = true; diff --git a/node_modules/eslint/lib/rules/prefer-const.js b/node_modules/eslint/lib/rules/prefer-const.js index b43975e9..b495fcc8 100644 --- a/node_modules/eslint/lib/rules/prefer-const.js +++ b/node_modules/eslint/lib/rules/prefer-const.js @@ -331,6 +331,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + destructuring: "any", + ignoreReadBeforeAssign: false + }], + docs: { description: "Require `const` declarations for variables that are never reassigned after declared", recommended: false, @@ -343,8 +348,8 @@ module.exports = { { type: "object", properties: { - destructuring: { enum: ["any", "all"], default: "any" }, - ignoreReadBeforeAssign: { type: "boolean", default: false } + destructuring: { enum: ["any", "all"] }, + ignoreReadBeforeAssign: { type: "boolean" } }, additionalProperties: false } @@ -355,10 +360,9 @@ module.exports = { }, create(context) { - const options = context.options[0] || {}; + const [{ destructuring, ignoreReadBeforeAssign }] = context.options; + const shouldMatchAnyDestructuredVariable = destructuring !== "all"; const sourceCode = context.sourceCode; - const shouldMatchAnyDestructuredVariable = options.destructuring !== "all"; - const ignoreReadBeforeAssign = options.ignoreReadBeforeAssign === true; const variables = []; let reportCount = 0; let checkedId = null; diff --git a/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js b/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js index e990265e..276b4222 100644 --- a/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +++ b/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js @@ -15,6 +15,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowEmptyReject: false + }], + docs: { description: "Require using Error objects as Promise rejection reasons", recommended: false, @@ -27,7 +31,7 @@ module.exports = { { type: "object", properties: { - allowEmptyReject: { type: "boolean", default: false } + allowEmptyReject: { type: "boolean" } }, additionalProperties: false } @@ -40,7 +44,7 @@ module.exports = { create(context) { - const ALLOW_EMPTY_REJECT = context.options.length && context.options[0].allowEmptyReject; + const [{ allowEmptyReject }] = context.options; const sourceCode = context.sourceCode; //---------------------------------------------------------------------- @@ -53,7 +57,7 @@ module.exports = { * @returns {void} */ function checkRejectCall(callExpression) { - if (!callExpression.arguments.length && ALLOW_EMPTY_REJECT) { + if (!callExpression.arguments.length && allowEmptyReject) { return; } if ( diff --git a/node_modules/eslint/lib/rules/prefer-reflect.js b/node_modules/eslint/lib/rules/prefer-reflect.js index d579b486..7da45237 100644 --- a/node_modules/eslint/lib/rules/prefer-reflect.js +++ b/node_modules/eslint/lib/rules/prefer-reflect.js @@ -105,7 +105,7 @@ module.exports = { CallExpression(node) { const methodName = (node.callee.property || {}).name; const isReflectCall = (node.callee.object || {}).name === "Reflect"; - const hasReflectSubstitute = Object.prototype.hasOwnProperty.call(reflectSubstitutes, methodName); + const hasReflectSubstitute = Object.hasOwn(reflectSubstitutes, methodName); const userConfiguredException = exceptions.includes(methodName); if (hasReflectSubstitute && !isReflectCall && !userConfiguredException) { diff --git a/node_modules/eslint/lib/rules/prefer-regex-literals.js b/node_modules/eslint/lib/rules/prefer-regex-literals.js index ffaaeac3..f760102f 100644 --- a/node_modules/eslint/lib/rules/prefer-regex-literals.js +++ b/node_modules/eslint/lib/rules/prefer-regex-literals.js @@ -34,7 +34,7 @@ function isStringLiteral(node) { * @returns {boolean} True if the node is a regex literal. */ function isRegexLiteral(node) { - return node.type === "Literal" && Object.prototype.hasOwnProperty.call(node, "regex"); + return node.type === "Literal" && Object.hasOwn(node, "regex"); } const validPrecedingTokens = new Set([ @@ -112,6 +112,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + disallowRedundantWrapping: false + }], + docs: { description: "Disallow use of the `RegExp` constructor in favor of regular expression literals", recommended: false, @@ -125,8 +129,7 @@ module.exports = { type: "object", properties: { disallowRedundantWrapping: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -144,7 +147,7 @@ module.exports = { }, create(context) { - const [{ disallowRedundantWrapping = false } = {}] = context.options; + const [{ disallowRedundantWrapping }] = context.options; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/rules/prefer-template.js b/node_modules/eslint/lib/rules/prefer-template.js index a2c8c724..d7d70c50 100644 --- a/node_modules/eslint/lib/rules/prefer-template.js +++ b/node_modules/eslint/lib/rules/prefer-template.js @@ -113,7 +113,7 @@ function endsWithTemplateCurly(node) { return startsWithTemplateCurly(node.right); } if (node.type === "TemplateLiteral") { - return node.expressions.length && node.quasis.length && node.quasis[node.quasis.length - 1].range[0] === node.quasis[node.quasis.length - 1].range[1]; + return node.expressions.length && node.quasis.length && node.quasis.at(-1).range[0] === node.quasis.at(-1).range[1]; } return node.type !== "Literal" || typeof node.value !== "string"; } diff --git a/node_modules/eslint/lib/rules/radix.js b/node_modules/eslint/lib/rules/radix.js index 7df97d98..6d37d18d 100644 --- a/node_modules/eslint/lib/rules/radix.js +++ b/node_modules/eslint/lib/rules/radix.js @@ -79,6 +79,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [MODE_ALWAYS], + docs: { description: "Enforce the consistent use of the radix argument when using `parseInt()`", recommended: false, @@ -103,7 +105,7 @@ module.exports = { }, create(context) { - const mode = context.options[0] || MODE_ALWAYS; + const [mode] = context.options; const sourceCode = context.sourceCode; /** @@ -133,8 +135,8 @@ module.exports = { messageId: "addRadixParameter10", fix(fixer) { const tokens = sourceCode.getTokens(node); - const lastToken = tokens[tokens.length - 1]; // Parenthesis. - const secondToLastToken = tokens[tokens.length - 2]; // May or may not be a comma. + const lastToken = tokens.at(-1); // Parenthesis. + const secondToLastToken = tokens.at(-2); // May or may not be a comma. const hasTrailingComma = secondToLastToken.type === "Punctuator" && secondToLastToken.value === ","; return fixer.insertTextBefore(lastToken, hasTrailingComma ? " 10," : ", 10"); diff --git a/node_modules/eslint/lib/rules/require-atomic-updates.js b/node_modules/eslint/lib/rules/require-atomic-updates.js index 7e397ceb..5de58f7e 100644 --- a/node_modules/eslint/lib/rules/require-atomic-updates.js +++ b/node_modules/eslint/lib/rules/require-atomic-updates.js @@ -170,6 +170,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + allowProperties: false + }], + docs: { description: "Disallow assignments that can lead to race conditions due to usage of `await` or `yield`", recommended: false, @@ -182,8 +186,7 @@ module.exports = { type: "object", properties: { allowProperties: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -196,7 +199,7 @@ module.exports = { }, create(context) { - const allowProperties = !!context.options[0] && context.options[0].allowProperties; + const [{ allowProperties }] = context.options; const sourceCode = context.sourceCode; const assignmentReferences = new Map(); diff --git a/node_modules/eslint/lib/rules/require-await.js b/node_modules/eslint/lib/rules/require-await.js index 952dde54..2a5159d7 100644 --- a/node_modules/eslint/lib/rules/require-await.js +++ b/node_modules/eslint/lib/rules/require-await.js @@ -42,8 +42,11 @@ module.exports = { schema: [], messages: { - missingAwait: "{{name}} has no 'await' expression." - } + missingAwait: "{{name}} has no 'await' expression.", + removeAsync: "Remove 'async'." + }, + + hasSuggestions: true }, create(context) { @@ -69,6 +72,33 @@ module.exports = { */ function exitFunction(node) { if (!node.generator && node.async && !scopeInfo.hasAwait && !astUtils.isEmptyFunction(node)) { + + /* + * If the function belongs to a method definition or + * property, then the function's range may not include the + * `async` keyword and we should look at the parent instead. + */ + const nodeWithAsyncKeyword = + (node.parent.type === "MethodDefinition" && node.parent.value === node) || + (node.parent.type === "Property" && node.parent.method && node.parent.value === node) + ? node.parent + : node; + + const asyncToken = sourceCode.getFirstToken(nodeWithAsyncKeyword, token => token.value === "async"); + const asyncRange = [asyncToken.range[0], sourceCode.getTokenAfter(asyncToken, { includeComments: true }).range[0]]; + + /* + * Removing the `async` keyword can cause parsing errors if the current + * statement is relying on automatic semicolon insertion. If ASI is currently + * being used, then we should replace the `async` keyword with a semicolon. + */ + const nextToken = sourceCode.getTokenAfter(asyncToken); + const addSemiColon = + nextToken.type === "Punctuator" && + (nextToken.value === "[" || nextToken.value === "(") && + (nodeWithAsyncKeyword.type === "MethodDefinition" || astUtils.isStartOfExpressionStatement(nodeWithAsyncKeyword)) && + astUtils.needsPrecedingSemicolon(sourceCode, nodeWithAsyncKeyword); + context.report({ node, loc: astUtils.getFunctionHeadLoc(node, sourceCode), @@ -77,7 +107,11 @@ module.exports = { name: capitalizeFirstLetter( astUtils.getFunctionNameWithKind(node) ) - } + }, + suggest: [{ + messageId: "removeAsync", + fix: fixer => fixer.replaceTextRange(asyncRange, addSemiColon ? ";" : "") + }] }); } diff --git a/node_modules/eslint/lib/rules/require-jsdoc.js b/node_modules/eslint/lib/rules/require-jsdoc.js deleted file mode 100644 index b6fedf22..00000000 --- a/node_modules/eslint/lib/rules/require-jsdoc.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @fileoverview Rule to check for jsdoc presence. - * @author Gyandeep Singh - * @deprecated in ESLint v5.10.0 - */ -"use strict"; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require JSDoc comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/require-jsdoc" - }, - - schema: [ - { - type: "object", - properties: { - require: { - type: "object", - properties: { - ClassDeclaration: { - type: "boolean", - default: false - }, - MethodDefinition: { - type: "boolean", - default: false - }, - FunctionDeclaration: { - type: "boolean", - default: true - }, - ArrowFunctionExpression: { - type: "boolean", - default: false - }, - FunctionExpression: { - type: "boolean", - default: false - } - }, - additionalProperties: false, - default: {} - } - }, - additionalProperties: false - } - ], - - deprecated: true, - replacedBy: [], - - messages: { - missingJSDocComment: "Missing JSDoc comment." - } - }, - - create(context) { - const source = context.sourceCode; - const DEFAULT_OPTIONS = { - FunctionDeclaration: true, - MethodDefinition: false, - ClassDeclaration: false, - ArrowFunctionExpression: false, - FunctionExpression: false - }; - const options = Object.assign(DEFAULT_OPTIONS, context.options[0] && context.options[0].require); - - /** - * Report the error message - * @param {ASTNode} node node to report - * @returns {void} - */ - function report(node) { - context.report({ node, messageId: "missingJSDocComment" }); - } - - /** - * Check if the jsdoc comment is present or not. - * @param {ASTNode} node node to examine - * @returns {void} - */ - function checkJsDoc(node) { - const jsdocComment = source.getJSDocComment(node); - - if (!jsdocComment) { - report(node); - } - } - - return { - FunctionDeclaration(node) { - if (options.FunctionDeclaration) { - checkJsDoc(node); - } - }, - FunctionExpression(node) { - if ( - (options.MethodDefinition && node.parent.type === "MethodDefinition") || - (options.FunctionExpression && (node.parent.type === "VariableDeclarator" || (node.parent.type === "Property" && node === node.parent.value))) - ) { - checkJsDoc(node); - } - }, - ClassDeclaration(node) { - if (options.ClassDeclaration) { - checkJsDoc(node); - } - }, - ArrowFunctionExpression(node) { - if (options.ArrowFunctionExpression && node.parent.type === "VariableDeclarator") { - checkJsDoc(node); - } - } - }; - } -}; diff --git a/node_modules/eslint/lib/rules/require-unicode-regexp.js b/node_modules/eslint/lib/rules/require-unicode-regexp.js index dd687f8d..48fe5684 100644 --- a/node_modules/eslint/lib/rules/require-unicode-regexp.js +++ b/node_modules/eslint/lib/rules/require-unicode-regexp.js @@ -18,6 +18,26 @@ const { const astUtils = require("./utils/ast-utils.js"); const { isValidWithUnicodeFlag } = require("./utils/regular-expressions"); +/** + * Checks whether the flag configuration should be treated as a missing flag. + * @param {"u"|"v"|undefined} requireFlag A particular flag to require + * @param {string} flags The regex flags + * @returns {boolean} Whether the flag configuration results in a missing flag. + */ +function checkFlags(requireFlag, flags) { + let missingFlag; + + if (requireFlag === "v") { + missingFlag = !flags.includes("v"); + } else if (requireFlag === "u") { + missingFlag = !flags.includes("u"); + } else { + missingFlag = !flags.includes("u") && !flags.includes("v"); + } + + return missingFlag; +} + //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ @@ -37,31 +57,65 @@ module.exports = { messages: { addUFlag: "Add the 'u' flag.", - requireUFlag: "Use the 'u' flag." + addVFlag: "Add the 'v' flag.", + requireUFlag: "Use the 'u' flag.", + requireVFlag: "Use the 'v' flag." }, - schema: [] + schema: [ + { + type: "object", + properties: { + requireFlag: { + enum: ["u", "v"] + } + }, + additionalProperties: false + } + ] }, create(context) { const sourceCode = context.sourceCode; + const { + requireFlag + } = context.options[0] ?? {}; + return { "Literal[regex]"(node) { const flags = node.regex.flags || ""; - if (!flags.includes("u") && !flags.includes("v")) { + const missingFlag = checkFlags(requireFlag, flags); + + if (missingFlag) { context.report({ - messageId: "requireUFlag", + messageId: requireFlag === "v" ? "requireVFlag" : "requireUFlag", node, - suggest: isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, node.regex.pattern) + suggest: isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, node.regex.pattern, requireFlag) ? [ { fix(fixer) { - return fixer.insertTextAfter(node, "u"); + const replaceFlag = requireFlag ?? "u"; + const regex = sourceCode.getText(node); + const slashPos = regex.lastIndexOf("/"); + + if (requireFlag) { + const flag = requireFlag === "u" ? "v" : "u"; + + if (regex.includes(flag, slashPos)) { + return fixer.replaceText( + node, + regex.slice(0, slashPos) + + regex.slice(slashPos).replace(flag, requireFlag) + ); + } + } + + return fixer.insertTextAfter(node, replaceFlag); }, - messageId: "addUFlag" + messageId: requireFlag === "v" ? "addVFlag" : "addUFlag" } ] : null @@ -85,22 +139,49 @@ module.exports = { const pattern = getStringIfConstant(patternNode, scope); const flags = getStringIfConstant(flagsNode, scope); - if (!flagsNode || (typeof flags === "string" && !flags.includes("u") && !flags.includes("v"))) { + let missingFlag = !flagsNode; + + if (typeof flags === "string") { + missingFlag = checkFlags(requireFlag, flags); + } + + if (missingFlag) { context.report({ - messageId: "requireUFlag", + messageId: requireFlag === "v" ? "requireVFlag" : "requireUFlag", node: refNode, - suggest: typeof pattern === "string" && isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, pattern) + suggest: typeof pattern === "string" && isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, pattern, requireFlag) ? [ { fix(fixer) { + const replaceFlag = requireFlag ?? "u"; + if (flagsNode) { if ((flagsNode.type === "Literal" && typeof flagsNode.value === "string") || flagsNode.type === "TemplateLiteral") { const flagsNodeText = sourceCode.getText(flagsNode); + const flag = requireFlag === "u" ? "v" : "u"; + + if (flags.includes(flag)) { + + // Avoid replacing "u" in escapes like `\uXXXX` + if (flagsNode.type === "Literal" && flagsNode.raw.includes("\\")) { + return null; + } + + // Avoid replacing "u" in expressions like "`${regularFlags}g`" + if (flagsNode.type === "TemplateLiteral" && ( + flagsNode.expressions.length || + flagsNode.quasis.some(({ value: { raw } }) => raw.includes("\\")) + )) { + return null; + } + + return fixer.replaceText(flagsNode, flagsNodeText.replace(flag, replaceFlag)); + } return fixer.replaceText(flagsNode, [ flagsNodeText.slice(0, flagsNodeText.length - 1), flagsNodeText.slice(flagsNodeText.length - 1) - ].join("u")); + ].join(replaceFlag)); } // We intentionally don't suggest concatenating + "u" to non-literals @@ -112,11 +193,11 @@ module.exports = { return fixer.insertTextAfter( penultimateToken, astUtils.isCommaToken(penultimateToken) - ? ' "u",' - : ', "u"' + ? ` "${replaceFlag}",` + : `, "${replaceFlag}"` ); }, - messageId: "addUFlag" + messageId: requireFlag === "v" ? "addVFlag" : "addUFlag" } ] : null diff --git a/node_modules/eslint/lib/rules/semi-style.js b/node_modules/eslint/lib/rules/semi-style.js index caf2224d..11caaf0b 100644 --- a/node_modules/eslint/lib/rules/semi-style.js +++ b/node_modules/eslint/lib/rules/semi-style.js @@ -65,7 +65,7 @@ function isLastChild(node) { } const nodeList = getChildren(node.parent); - return nodeList !== null && nodeList[nodeList.length - 1] === node; // before `}` or etc. + return nodeList !== null && nodeList.at(-1) === node; // before `}` or etc. } /** @type {import('../shared/types').Rule} */ diff --git a/node_modules/eslint/lib/rules/sort-imports.js b/node_modules/eslint/lib/rules/sort-imports.js index 04814ed6..9a1113ab 100644 --- a/node_modules/eslint/lib/rules/sort-imports.js +++ b/node_modules/eslint/lib/rules/sort-imports.js @@ -14,6 +14,14 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + allowSeparatedGroups: false, + ignoreCase: false, + ignoreDeclarationSort: false, + ignoreMemberSort: false, + memberSyntaxSortOrder: ["none", "all", "multiple", "single"] + }], + docs: { description: "Enforce sorted import declarations within modules", recommended: false, @@ -25,8 +33,7 @@ module.exports = { type: "object", properties: { ignoreCase: { - type: "boolean", - default: false + type: "boolean" }, memberSyntaxSortOrder: { type: "array", @@ -38,16 +45,13 @@ module.exports = { maxItems: 4 }, ignoreDeclarationSort: { - type: "boolean", - default: false + type: "boolean" }, ignoreMemberSort: { - type: "boolean", - default: false + type: "boolean" }, allowSeparatedGroups: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -64,14 +68,14 @@ module.exports = { }, create(context) { - - const configuration = context.options[0] || {}, - ignoreCase = configuration.ignoreCase || false, - ignoreDeclarationSort = configuration.ignoreDeclarationSort || false, - ignoreMemberSort = configuration.ignoreMemberSort || false, - memberSyntaxSortOrder = configuration.memberSyntaxSortOrder || ["none", "all", "multiple", "single"], - allowSeparatedGroups = configuration.allowSeparatedGroups || false, - sourceCode = context.sourceCode; + const [{ + ignoreCase, + ignoreDeclarationSort, + ignoreMemberSort, + memberSyntaxSortOrder, + allowSeparatedGroups + }] = context.options; + const sourceCode = context.sourceCode; let previousDeclaration = null; /** @@ -208,7 +212,7 @@ module.exports = { } return fixer.replaceTextRange( - [importSpecifiers[0].range[0], importSpecifiers[importSpecifiers.length - 1].range[1]], + [importSpecifiers[0].range[0], importSpecifiers.at(-1).range[1]], importSpecifiers // Clone the importSpecifiers array to avoid mutating it diff --git a/node_modules/eslint/lib/rules/sort-keys.js b/node_modules/eslint/lib/rules/sort-keys.js index 088b5890..c8429ade 100644 --- a/node_modules/eslint/lib/rules/sort-keys.js +++ b/node_modules/eslint/lib/rules/sort-keys.js @@ -80,6 +80,14 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["asc", { + allowLineSeparatedGroups: false, + caseSensitive: true, + ignoreComputedKeys: false, + minKeys: 2, + natural: false + }], + docs: { description: "Require object keys to be sorted", recommended: false, @@ -94,21 +102,20 @@ module.exports = { type: "object", properties: { caseSensitive: { - type: "boolean", - default: true + type: "boolean" }, natural: { - type: "boolean", - default: false + type: "boolean" }, minKeys: { type: "integer", - minimum: 2, - default: 2 + minimum: 2 }, allowLineSeparatedGroups: { - type: "boolean", - default: false + type: "boolean" + }, + ignoreComputedKeys: { + type: "boolean" } }, additionalProperties: false @@ -121,14 +128,8 @@ module.exports = { }, create(context) { - - // Parse options. - const order = context.options[0] || "asc"; - const options = context.options[1]; - const insensitive = options && options.caseSensitive === false; - const natural = options && options.natural; - const minKeys = options && options.minKeys; - const allowLineSeparatedGroups = options && options.allowLineSeparatedGroups || false; + const [order, { caseSensitive, natural, minKeys, allowLineSeparatedGroups, ignoreComputedKeys }] = context.options; + const insensitive = !caseSensitive; const isValidOrder = isValidOrders[ order + (insensitive ? "I" : "") + (natural ? "N" : "") ]; @@ -163,6 +164,11 @@ module.exports = { return; } + if (ignoreComputedKeys && node.computed) { + stack.prevName = null; // reset sort + return; + } + const prevName = stack.prevName; const numKeys = stack.numKeys; const thisName = getPropertyName(node); @@ -185,7 +191,7 @@ module.exports = { }); // check blank line between the current node and the last token - if (!isBlankLineBetweenNodes && (node.loc.start.line - tokens[tokens.length - 1].loc.end.line > 1)) { + if (!isBlankLineBetweenNodes && (node.loc.start.line - tokens.at(-1).loc.end.line > 1)) { isBlankLineBetweenNodes = true; } diff --git a/node_modules/eslint/lib/rules/sort-vars.js b/node_modules/eslint/lib/rules/sort-vars.js index 8fd723fd..985f47f5 100644 --- a/node_modules/eslint/lib/rules/sort-vars.js +++ b/node_modules/eslint/lib/rules/sort-vars.js @@ -14,6 +14,10 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: [{ + ignoreCase: false + }], + docs: { description: "Require variables within the same declaration block to be sorted", recommended: false, @@ -25,8 +29,7 @@ module.exports = { type: "object", properties: { ignoreCase: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -41,10 +44,8 @@ module.exports = { }, create(context) { - - const configuration = context.options[0] || {}, - ignoreCase = configuration.ignoreCase || false, - sourceCode = context.sourceCode; + const [{ ignoreCase }] = context.options; + const sourceCode = context.sourceCode; return { VariableDeclaration(node) { @@ -66,7 +67,7 @@ module.exports = { return null; } return fixer.replaceTextRange( - [idDeclarations[0].range[0], idDeclarations[idDeclarations.length - 1].range[1]], + [idDeclarations[0].range[0], idDeclarations.at(-1).range[1]], idDeclarations // Clone the idDeclarations array to avoid mutating it diff --git a/node_modules/eslint/lib/rules/space-unary-ops.js b/node_modules/eslint/lib/rules/space-unary-ops.js index aed43e72..ab6c3cb6 100644 --- a/node_modules/eslint/lib/rules/space-unary-ops.js +++ b/node_modules/eslint/lib/rules/space-unary-ops.js @@ -87,7 +87,7 @@ module.exports = { * @returns {boolean} Whether or not an override has been provided for the operator */ function overrideExistsForOperator(operator) { - return options.overrides && Object.prototype.hasOwnProperty.call(options.overrides, operator); + return options.overrides && Object.hasOwn(options.overrides, operator); } /** diff --git a/node_modules/eslint/lib/rules/strict.js b/node_modules/eslint/lib/rules/strict.js index f9dd7500..198bf852 100644 --- a/node_modules/eslint/lib/rules/strict.js +++ b/node_modules/eslint/lib/rules/strict.js @@ -68,6 +68,8 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["safe"], + docs: { description: "Require or disallow strict mode directives", recommended: false, @@ -96,11 +98,10 @@ module.exports = { }, create(context) { - const ecmaFeatures = context.parserOptions.ecmaFeatures || {}, scopes = [], classScopes = []; - let mode = context.options[0] || "safe"; + let [mode] = context.options; if (ecmaFeatures.impliedStrict) { mode = "implied"; @@ -173,7 +174,7 @@ module.exports = { function enterFunctionInFunctionMode(node, useStrictDirectives) { const isInClass = classScopes.length > 0, isParentGlobal = scopes.length === 0 && classScopes.length === 0, - isParentStrict = scopes.length > 0 && scopes[scopes.length - 1], + isParentStrict = scopes.length > 0 && scopes.at(-1), isStrict = useStrictDirectives.length > 0; if (isStrict) { diff --git a/node_modules/eslint/lib/rules/unicode-bom.js b/node_modules/eslint/lib/rules/unicode-bom.js index 09971d26..15c7ad77 100644 --- a/node_modules/eslint/lib/rules/unicode-bom.js +++ b/node_modules/eslint/lib/rules/unicode-bom.js @@ -13,6 +13,8 @@ module.exports = { meta: { type: "layout", + defaultOptions: ["never"], + docs: { description: "Require or disallow Unicode byte order mark (BOM)", recommended: false, @@ -43,8 +45,8 @@ module.exports = { Program: function checkUnicodeBOM(node) { const sourceCode = context.sourceCode, - location = { column: 0, line: 1 }, - requireBOM = context.options[0] || "never"; + location = { column: 0, line: 1 }; + const [requireBOM] = context.options; if (!sourceCode.hasBOM && (requireBOM === "always")) { context.report({ diff --git a/node_modules/eslint/lib/rules/use-isnan.js b/node_modules/eslint/lib/rules/use-isnan.js index 21dc3952..046b9122 100644 --- a/node_modules/eslint/lib/rules/use-isnan.js +++ b/node_modules/eslint/lib/rules/use-isnan.js @@ -21,9 +21,17 @@ const astUtils = require("./utils/ast-utils"); * @returns {boolean} `true` if the node is 'NaN' identifier. */ function isNaNIdentifier(node) { - return Boolean(node) && ( - astUtils.isSpecificId(node, "NaN") || - astUtils.isSpecificMemberAccess(node, "Number", "NaN") + if (!node) { + return false; + } + + const nodeToCheck = node.type === "SequenceExpression" + ? node.expressions.at(-1) + : node; + + return ( + astUtils.isSpecificId(nodeToCheck, "NaN") || + astUtils.isSpecificMemberAccess(nodeToCheck, "Number", "NaN") ); } @@ -34,6 +42,7 @@ function isNaNIdentifier(node) { /** @type {import('../shared/types').Rule} */ module.exports = { meta: { + hasSuggestions: true, type: "problem", docs: { @@ -47,30 +56,64 @@ module.exports = { type: "object", properties: { enforceForSwitchCase: { - type: "boolean", - default: true + type: "boolean" }, enforceForIndexOf: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false } ], + defaultOptions: [{ + enforceForIndexOf: false, + enforceForSwitchCase: true + }], + messages: { comparisonWithNaN: "Use the isNaN function to compare with NaN.", switchNaN: "'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.", caseNaN: "'case NaN' can never match. Use Number.isNaN before the switch.", - indexOfNaN: "Array prototype method '{{ methodName }}' cannot find NaN." + indexOfNaN: "Array prototype method '{{ methodName }}' cannot find NaN.", + replaceWithIsNaN: "Replace with Number.isNaN.", + replaceWithCastingAndIsNaN: "Replace with Number.isNaN and cast to a Number.", + replaceWithFindIndex: "Replace with Array.prototype.{{ methodName }}." } }, create(context) { - const enforceForSwitchCase = !context.options[0] || context.options[0].enforceForSwitchCase; - const enforceForIndexOf = context.options[0] && context.options[0].enforceForIndexOf; + const [{ enforceForIndexOf, enforceForSwitchCase }] = context.options; + const sourceCode = context.sourceCode; + + const fixableOperators = new Set(["==", "===", "!=", "!=="]); + const castableOperators = new Set(["==", "!="]); + + /** + * Get a fixer for a binary expression that compares to NaN. + * @param {ASTNode} node The node to fix. + * @param {function(string): string} wrapValue A function that wraps the compared value with a fix. + * @returns {function(Fixer): Fix} The fixer function. + */ + function getBinaryExpressionFixer(node, wrapValue) { + return fixer => { + const comparedValue = isNaNIdentifier(node.left) ? node.right : node.left; + const shouldWrap = comparedValue.type === "SequenceExpression"; + const shouldNegate = node.operator[0] === "!"; + + const negation = shouldNegate ? "!" : ""; + let comparedValueText = sourceCode.getText(comparedValue); + + if (shouldWrap) { + comparedValueText = `(${comparedValueText})`; + } + + const fixedValue = wrapValue(comparedValueText); + + return fixer.replaceText(node, `${negation}${fixedValue}`); + }; + } /** * Checks the given `BinaryExpression` node for `foo === NaN` and other comparisons. @@ -82,7 +125,32 @@ module.exports = { /^(?:[<>]|[!=]=)=?$/u.test(node.operator) && (isNaNIdentifier(node.left) || isNaNIdentifier(node.right)) ) { - context.report({ node, messageId: "comparisonWithNaN" }); + const suggestedFixes = []; + const NaNNode = isNaNIdentifier(node.left) ? node.left : node.right; + + const isSequenceExpression = NaNNode.type === "SequenceExpression"; + const isSuggestable = fixableOperators.has(node.operator) && !isSequenceExpression; + const isCastable = castableOperators.has(node.operator); + + if (isSuggestable) { + suggestedFixes.push({ + messageId: "replaceWithIsNaN", + fix: getBinaryExpressionFixer(node, value => `Number.isNaN(${value})`) + }); + + if (isCastable) { + suggestedFixes.push({ + messageId: "replaceWithCastingAndIsNaN", + fix: getBinaryExpressionFixer(node, value => `Number.isNaN(Number(${value}))`) + }); + } + } + + context.report({ + node, + messageId: "comparisonWithNaN", + suggest: suggestedFixes + }); } } @@ -116,10 +184,38 @@ module.exports = { if ( (methodName === "indexOf" || methodName === "lastIndexOf") && - node.arguments.length === 1 && + node.arguments.length <= 2 && isNaNIdentifier(node.arguments[0]) ) { - context.report({ node, messageId: "indexOfNaN", data: { methodName } }); + + /* + * To retain side effects, it's essential to address `NaN` beforehand, which + * is not possible with fixes like `arr.findIndex(Number.isNaN)`. + */ + const isSuggestable = node.arguments[0].type !== "SequenceExpression" && !node.arguments[1]; + const suggestedFixes = []; + + if (isSuggestable) { + const shouldWrap = callee.computed; + const findIndexMethod = methodName === "indexOf" ? "findIndex" : "findLastIndex"; + const propertyName = shouldWrap ? `"${findIndexMethod}"` : findIndexMethod; + + suggestedFixes.push({ + messageId: "replaceWithFindIndex", + data: { methodName: findIndexMethod }, + fix: fixer => [ + fixer.replaceText(callee.property, propertyName), + fixer.replaceText(node.arguments[0], "Number.isNaN") + ] + }); + } + + context.report({ + node, + messageId: "indexOfNaN", + data: { methodName }, + suggest: suggestedFixes + }); } } } diff --git a/node_modules/eslint/lib/rules/utils/ast-utils.js b/node_modules/eslint/lib/rules/utils/ast-utils.js index 962bdde0..7a93da14 100644 --- a/node_modules/eslint/lib/rules/utils/ast-utils.js +++ b/node_modules/eslint/lib/rules/utils/ast-utils.js @@ -19,6 +19,8 @@ const { lineBreakPattern, shebangPattern } = require("../../shared/ast-utils"); +const globals = require("../../../conf/globals"); +const { LATEST_ECMA_VERSION } = require("../../../conf/ecma-version"); //------------------------------------------------------------------------------ // Helpers @@ -46,6 +48,12 @@ const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0[0 const LOGICAL_ASSIGNMENT_OPERATORS = new Set(["&&=", "||=", "??="]); +/** + * All builtin global variables defined in the latest ECMAScript specification. + * @type {Record} Key is the name of the variable. Value is `true` if the variable is considered writable, `false` otherwise. + */ +const ECMASCRIPT_GLOBALS = globals[`es${LATEST_ECMA_VERSION}`]; + /** * Checks reference if is non initializer and writable. * @param {Reference} reference A reference to check. @@ -969,7 +977,7 @@ function isConstant(scope, node, inBooleanPosition) { return false; case "SequenceExpression": - return isConstant(scope, node.expressions[node.expressions.length - 1], inBooleanPosition); + return isConstant(scope, node.expressions.at(-1), inBooleanPosition); case "SpreadElement": return isConstant(scope, node.argument, inBooleanPosition); case "CallExpression": @@ -1034,18 +1042,19 @@ function isStartOfExpressionStatement(node) { /** * Determines whether an opening parenthesis `(`, bracket `[` or backtick ``` ` ``` needs to be preceded by a semicolon. - * This opening parenthesis or bracket should be at the start of an `ExpressionStatement` or at the start of the body of an `ArrowFunctionExpression`. + * This opening parenthesis or bracket should be at the start of an `ExpressionStatement`, a `MethodDefinition` or at + * the start of the body of an `ArrowFunctionExpression`. * @type {(sourceCode: SourceCode, node: ASTNode) => boolean} * @param {SourceCode} sourceCode The source code object. * @param {ASTNode} node A node at the position where an opening parenthesis or bracket will be inserted. - * @returns {boolean} Whether a semicolon is required before the opening parenthesis or braket. + * @returns {boolean} Whether a semicolon is required before the opening parenthesis or bracket. */ let needsPrecedingSemicolon; { const BREAK_OR_CONTINUE = new Set(["BreakStatement", "ContinueStatement"]); - // Declaration types that must contain a string Literal node at the end. + // Declaration types that cannot be continued by a punctuator when ending with a string Literal that is a direct child. const DECLARATIONS = new Set(["ExportAllDeclaration", "ExportNamedDeclaration", "ImportDeclaration"]); const IDENTIFIER_OR_KEYWORD = new Set(["Identifier", "Keyword"]); @@ -1098,7 +1107,7 @@ let needsPrecedingSemicolon; if (isClosingBraceToken(prevToken)) { return ( - prevNode.type === "BlockStatement" && prevNode.parent.type === "FunctionExpression" || + prevNode.type === "BlockStatement" && prevNode.parent.type === "FunctionExpression" && prevNode.parent.parent.type !== "MethodDefinition" || prevNode.type === "ClassBody" && prevNode.parent.type === "ClassExpression" || prevNode.type === "ObjectExpression" ); @@ -1123,6 +1132,48 @@ let needsPrecedingSemicolon; }; } +/** + * Checks if a node is used as an import attribute key, either in a static or dynamic import. + * @param {ASTNode} node The node to check. + * @returns {boolean} Whether the node is used as an import attribute key. + */ +function isImportAttributeKey(node) { + const { parent } = node; + + // static import/re-export + if (parent.type === "ImportAttribute" && parent.key === node) { + return true; + } + + // dynamic import + if ( + parent.type === "Property" && + !parent.computed && + (parent.key === node || parent.value === node && parent.shorthand && !parent.method) && + parent.parent.type === "ObjectExpression" + ) { + const objectExpression = parent.parent; + const objectExpressionParent = objectExpression.parent; + + if ( + objectExpressionParent.type === "ImportExpression" && + objectExpressionParent.options === objectExpression + ) { + return true; + } + + // nested key + if ( + objectExpressionParent.type === "Property" && + objectExpressionParent.value === objectExpression + ) { + return isImportAttributeKey(objectExpressionParent.key); + } + } + + return false; +} + //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ @@ -1133,6 +1184,7 @@ module.exports = { LINEBREAK_MATCHER: lineBreakPattern, SHEBANG_MATCHER: shebangPattern, STATEMENT_LIST_PARENTS, + ECMASCRIPT_GLOBALS, /** * Determines whether two adjacent tokens are on the same line. @@ -1231,7 +1283,7 @@ module.exports = { * @private */ isSurroundedBy(val, character) { - return val[0] === character && val[val.length - 1] === character; + return val[0] === character && val.at(-1) === character; }, /** @@ -1909,8 +1961,8 @@ module.exports = { */ getFunctionHeadLoc(node, sourceCode) { const parent = node.parent; - let start = null; - let end = null; + let start; + let end; if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") { start = parent.loc.start; @@ -2055,7 +2107,7 @@ module.exports = { case "SequenceExpression": { const exprs = node.expressions; - return exprs.length !== 0 && module.exports.couldBeError(exprs[exprs.length - 1]); + return exprs.length !== 0 && module.exports.couldBeError(exprs.at(-1)); } case "LogicalExpression": @@ -2119,9 +2171,9 @@ module.exports = { const comments = tokens.comments; - leftToken = tokens[tokens.length - 1]; + leftToken = tokens.at(-1); if (comments.length) { - const lastComment = comments[comments.length - 1]; + const lastComment = comments.at(-1); if (!leftToken || lastComment.range[0] > leftToken.range[0]) { leftToken = lastComment; @@ -2259,6 +2311,147 @@ module.exports = { return node.type === "TemplateLiteral" && node.expressions.length === 0; }, + /** + * Determines whether the existing curly braces around the single statement are necessary to preserve the semantics of the code. + * The braces, which make the given block body, are necessary in either of the following situations: + * + * 1. The statement is a lexical declaration. + * 2. Without the braces, an `if` within the statement would become associated with an `else` after the closing brace: + * + * if (a) { + * if (b) + * foo(); + * } + * else + * bar(); + * + * if (a) + * while (b) + * while (c) { + * while (d) + * if (e) + * while(f) + * foo(); + * } + * else + * bar(); + * @param {ASTNode} node `BlockStatement` body with exactly one statement directly inside. The statement can have its own nested statements. + * @param {SourceCode} sourceCode The source code + * @returns {boolean} `true` if the braces are necessary - removing them (replacing the given `BlockStatement` body with its single statement content) + * would change the semantics of the code or produce a syntax error. + */ + areBracesNecessary(node, sourceCode) { + + /** + * Determines if the given node is a lexical declaration (let, const, function, or class) + * @param {ASTNode} nodeToCheck The node to check + * @returns {boolean} True if the node is a lexical declaration + * @private + */ + function isLexicalDeclaration(nodeToCheck) { + if (nodeToCheck.type === "VariableDeclaration") { + return nodeToCheck.kind === "const" || nodeToCheck.kind === "let"; + } + + return nodeToCheck.type === "FunctionDeclaration" || nodeToCheck.type === "ClassDeclaration"; + } + + + /** + * Checks if the given token is an `else` token or not. + * @param {Token} token The token to check. + * @returns {boolean} `true` if the token is an `else` token. + */ + function isElseKeywordToken(token) { + return token.value === "else" && token.type === "Keyword"; + } + + /** + * Determines whether the given node has an `else` keyword token as the first token after. + * @param {ASTNode} nodeToCheck The node to check. + * @returns {boolean} `true` if the node is followed by an `else` keyword token. + */ + function isFollowedByElseKeyword(nodeToCheck) { + const nextToken = sourceCode.getTokenAfter(nodeToCheck); + + return Boolean(nextToken) && isElseKeywordToken(nextToken); + } + + /** + * Determines whether the code represented by the given node contains an `if` statement + * that would become associated with an `else` keyword directly appended to that code. + * + * Examples where it returns `true`: + * + * if (a) + * foo(); + * + * if (a) { + * foo(); + * } + * + * if (a) + * foo(); + * else if (b) + * bar(); + * + * while (a) + * if (b) + * if(c) + * foo(); + * else + * bar(); + * + * Examples where it returns `false`: + * + * if (a) + * foo(); + * else + * bar(); + * + * while (a) { + * if (b) + * if(c) + * foo(); + * else + * bar(); + * } + * + * while (a) + * if (b) { + * if(c) + * foo(); + * } + * else + * bar(); + * @param {ASTNode} nodeToCheck Node representing the code to check. + * @returns {boolean} `true` if an `if` statement within the code would become associated with an `else` appended to that code. + */ + function hasUnsafeIf(nodeToCheck) { + switch (nodeToCheck.type) { + case "IfStatement": + if (!nodeToCheck.alternate) { + return true; + } + return hasUnsafeIf(nodeToCheck.alternate); + case "ForStatement": + case "ForInStatement": + case "ForOfStatement": + case "LabeledStatement": + case "WithStatement": + case "WhileStatement": + return hasUnsafeIf(nodeToCheck.body); + default: + return false; + } + } + + const statement = node.body[0]; + + return isLexicalDeclaration(statement) || + hasUnsafeIf(statement) && isFollowedByElseKeyword(node); + }, + isReferenceToGlobalVariable, isLogicalExpression, isCoalesceExpression, @@ -2278,5 +2471,6 @@ module.exports = { isTopLevelExpressionStatement, isDirective, isStartOfExpressionStatement, - needsPrecedingSemicolon + needsPrecedingSemicolon, + isImportAttributeKey }; diff --git a/node_modules/eslint/lib/rules/utils/char-source.js b/node_modules/eslint/lib/rules/utils/char-source.js new file mode 100644 index 00000000..70738625 --- /dev/null +++ b/node_modules/eslint/lib/rules/utils/char-source.js @@ -0,0 +1,240 @@ +/** + * @fileoverview Utility functions to locate the source text of each code unit in the value of a string literal or template token. + * @author Francesco Trotta + */ + +"use strict"; + +/** + * Represents a code unit produced by the evaluation of a JavaScript common token like a string + * literal or template token. + */ +class CodeUnit { + constructor(start, source) { + this.start = start; + this.source = source; + } + + get end() { + return this.start + this.length; + } + + get length() { + return this.source.length; + } +} + +/** + * An object used to keep track of the position in a source text where the next characters will be read. + */ +class TextReader { + constructor(source) { + this.source = source; + this.pos = 0; + } + + /** + * Advances the reading position of the specified number of characters. + * @param {number} length Number of characters to advance. + * @returns {void} + */ + advance(length) { + this.pos += length; + } + + /** + * Reads characters from the source. + * @param {number} [offset=0] The offset where reading starts, relative to the current position. + * @param {number} [length=1] Number of characters to read. + * @returns {string} A substring of source characters. + */ + read(offset = 0, length = 1) { + const start = offset + this.pos; + + return this.source.slice(start, start + length); + } +} + +const SIMPLE_ESCAPE_SEQUENCES = +{ __proto__: null, b: "\b", f: "\f", n: "\n", r: "\r", t: "\t", v: "\v" }; + +/** + * Reads a hex escape sequence. + * @param {TextReader} reader The reader should be positioned on the first hexadecimal digit. + * @param {number} length The number of hexadecimal digits. + * @returns {string} A code unit. + */ +function readHexSequence(reader, length) { + const str = reader.read(0, length); + const charCode = parseInt(str, 16); + + reader.advance(length); + return String.fromCharCode(charCode); +} + +/** + * Reads a Unicode escape sequence. + * @param {TextReader} reader The reader should be positioned after the "u". + * @returns {string} A code unit. + */ +function readUnicodeSequence(reader) { + const regExp = /\{(?[\dA-Fa-f]+)\}/uy; + + regExp.lastIndex = reader.pos; + const match = regExp.exec(reader.source); + + if (match) { + const codePoint = parseInt(match.groups.hexDigits, 16); + + reader.pos = regExp.lastIndex; + return String.fromCodePoint(codePoint); + } + return readHexSequence(reader, 4); +} + +/** + * Reads an octal escape sequence. + * @param {TextReader} reader The reader should be positioned after the first octal digit. + * @param {number} maxLength The maximum number of octal digits. + * @returns {string} A code unit. + */ +function readOctalSequence(reader, maxLength) { + const [octalStr] = reader.read(-1, maxLength).match(/^[0-7]+/u); + + reader.advance(octalStr.length - 1); + const octal = parseInt(octalStr, 8); + + return String.fromCharCode(octal); +} + +/** + * Reads an escape sequence or line continuation. + * @param {TextReader} reader The reader should be positioned on the backslash. + * @returns {string} A string of zero, one or two code units. + */ +function readEscapeSequenceOrLineContinuation(reader) { + const char = reader.read(1); + + reader.advance(2); + const unitChar = SIMPLE_ESCAPE_SEQUENCES[char]; + + if (unitChar) { + return unitChar; + } + switch (char) { + case "x": + return readHexSequence(reader, 2); + case "u": + return readUnicodeSequence(reader); + case "\r": + if (reader.read() === "\n") { + reader.advance(1); + } + + // fallthrough + case "\n": + case "\u2028": + case "\u2029": + return ""; + case "0": + case "1": + case "2": + case "3": + return readOctalSequence(reader, 3); + case "4": + case "5": + case "6": + case "7": + return readOctalSequence(reader, 2); + default: + return char; + } +} + +/** + * Reads an escape sequence or line continuation and generates the respective `CodeUnit` elements. + * @param {TextReader} reader The reader should be positioned on the backslash. + * @returns {Generator} Zero, one or two `CodeUnit` elements. + */ +function *mapEscapeSequenceOrLineContinuation(reader) { + const start = reader.pos; + const str = readEscapeSequenceOrLineContinuation(reader); + const end = reader.pos; + const source = reader.source.slice(start, end); + + switch (str.length) { + case 0: + break; + case 1: + yield new CodeUnit(start, source); + break; + default: + yield new CodeUnit(start, source); + yield new CodeUnit(start, source); + break; + } +} + +/** + * Parses a string literal. + * @param {string} source The string literal to parse, including the delimiting quotes. + * @returns {CodeUnit[]} A list of code units produced by the string literal. + */ +function parseStringLiteral(source) { + const reader = new TextReader(source); + const quote = reader.read(); + + reader.advance(1); + const codeUnits = []; + + for (;;) { + const char = reader.read(); + + if (char === quote) { + break; + } + if (char === "\\") { + codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader)); + } else { + codeUnits.push(new CodeUnit(reader.pos, char)); + reader.advance(1); + } + } + return codeUnits; +} + +/** + * Parses a template token. + * @param {string} source The template token to parse, including the delimiting sequences `` ` ``, `${` and `}`. + * @returns {CodeUnit[]} A list of code units produced by the template token. + */ +function parseTemplateToken(source) { + const reader = new TextReader(source); + + reader.advance(1); + const codeUnits = []; + + for (;;) { + const char = reader.read(); + + if (char === "`" || char === "$" && reader.read(1) === "{") { + break; + } + if (char === "\\") { + codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader)); + } else { + let unitSource; + + if (char === "\r" && reader.read(1) === "\n") { + unitSource = "\r\n"; + } else { + unitSource = char; + } + codeUnits.push(new CodeUnit(reader.pos, unitSource)); + reader.advance(unitSource.length); + } + } + return codeUnits; +} + +module.exports = { parseStringLiteral, parseTemplateToken }; diff --git a/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js b/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js index 7f116a26..3fa5d83b 100644 --- a/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +++ b/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js @@ -6,7 +6,7 @@ const debug = require("debug")("eslint:rules"); -/** @typedef {import("./types").Rule} Rule */ +/** @typedef {import("../../shared/types").Rule} Rule */ /** * The `Map` object that loads each rule when it's accessed. diff --git a/node_modules/eslint/lib/rules/utils/patterns/letters.js b/node_modules/eslint/lib/rules/utils/patterns/letters.js deleted file mode 100644 index 9bb2de31..00000000 --- a/node_modules/eslint/lib/rules/utils/patterns/letters.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @fileoverview Pattern for detecting any letter (even letters outside of ASCII). - * NOTE: This file was generated using this script in JSCS based on the Unicode 7.0.0 standard: https://github.com/jscs-dev/node-jscs/blob/f5ed14427deb7e7aac84f3056a5aab2d9f3e563e/publish/helpers/generate-patterns.js - * Do not edit this file by hand-- please use https://github.com/mathiasbynens/regenerate to regenerate the regular expression exported from this file. - * @author Kevin Partington - * @license MIT License (from JSCS). See below. - */ - -/* - * The MIT License (MIT) - * - * Copyright 2013-2016 Dulin Marat and other contributors - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * 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. - */ - -"use strict"; - -module.exports = /[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u; diff --git a/node_modules/eslint/lib/rules/utils/regular-expressions.js b/node_modules/eslint/lib/rules/utils/regular-expressions.js index 12e544e3..82fdd9b8 100644 --- a/node_modules/eslint/lib/rules/utils/regular-expressions.js +++ b/node_modules/eslint/lib/rules/utils/regular-expressions.js @@ -8,18 +8,22 @@ const { RegExpValidator } = require("@eslint-community/regexpp"); -const REGEXPP_LATEST_ECMA_VERSION = 2024; +const REGEXPP_LATEST_ECMA_VERSION = 2025; /** * Checks if the given regular expression pattern would be valid with the `u` flag. * @param {number} ecmaVersion ECMAScript version to parse in. * @param {string} pattern The regular expression pattern to verify. + * @param {"u"|"v"} flag The type of Unicode flag * @returns {boolean} `true` if the pattern would be valid with the `u` flag. * `false` if the pattern would be invalid with the `u` flag or the configured * ecmaVersion doesn't support the `u` flag. */ -function isValidWithUnicodeFlag(ecmaVersion, pattern) { - if (ecmaVersion <= 5) { // ecmaVersion <= 5 doesn't support the 'u' flag +function isValidWithUnicodeFlag(ecmaVersion, pattern, flag = "u") { + if (flag === "u" && ecmaVersion <= 5) { // ecmaVersion <= 5 doesn't support the 'u' flag + return false; + } + if (flag === "v" && ecmaVersion <= 2023) { return false; } @@ -28,7 +32,11 @@ function isValidWithUnicodeFlag(ecmaVersion, pattern) { }); try { - validator.validatePattern(pattern, void 0, void 0, { unicode: /* uFlag = */ true }); + validator.validatePattern(pattern, void 0, void 0, flag === "u" ? { + unicode: /* uFlag = */ true + } : { + unicodeSets: true + }); } catch { return false; } diff --git a/node_modules/eslint/lib/rules/utils/unicode/index.js b/node_modules/eslint/lib/rules/utils/unicode/index.js index 02eea502..d35d812e 100644 --- a/node_modules/eslint/lib/rules/utils/unicode/index.js +++ b/node_modules/eslint/lib/rules/utils/unicode/index.js @@ -3,9 +3,14 @@ */ "use strict"; +const isCombiningCharacter = require("./is-combining-character"); +const isEmojiModifier = require("./is-emoji-modifier"); +const isRegionalIndicatorSymbol = require("./is-regional-indicator-symbol"); +const isSurrogatePair = require("./is-surrogate-pair"); + module.exports = { - isCombiningCharacter: require("./is-combining-character"), - isEmojiModifier: require("./is-emoji-modifier"), - isRegionalIndicatorSymbol: require("./is-regional-indicator-symbol"), - isSurrogatePair: require("./is-surrogate-pair") + isCombiningCharacter, + isEmojiModifier, + isRegionalIndicatorSymbol, + isSurrogatePair }; diff --git a/node_modules/eslint/lib/rules/valid-jsdoc.js b/node_modules/eslint/lib/rules/valid-jsdoc.js deleted file mode 100644 index 919975fe..00000000 --- a/node_modules/eslint/lib/rules/valid-jsdoc.js +++ /dev/null @@ -1,516 +0,0 @@ -/** - * @fileoverview Validates JSDoc comments are syntactically correct - * @author Nicholas C. Zakas - * @deprecated in ESLint v5.10.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const doctrine = require("doctrine"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce valid JSDoc comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/valid-jsdoc" - }, - - schema: [ - { - type: "object", - properties: { - prefer: { - type: "object", - additionalProperties: { - type: "string" - } - }, - preferType: { - type: "object", - additionalProperties: { - type: "string" - } - }, - requireReturn: { - type: "boolean", - default: true - }, - requireParamDescription: { - type: "boolean", - default: true - }, - requireReturnDescription: { - type: "boolean", - default: true - }, - matchDescription: { - type: "string" - }, - requireReturnType: { - type: "boolean", - default: true - }, - requireParamType: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - fixable: "code", - messages: { - unexpectedTag: "Unexpected @{{title}} tag; function has no return statement.", - expected: "Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.", - use: "Use @{{name}} instead.", - useType: "Use '{{expectedTypeName}}' instead of '{{currentTypeName}}'.", - syntaxError: "JSDoc syntax error.", - missingBrace: "JSDoc type missing brace.", - missingParamDesc: "Missing JSDoc parameter description for '{{name}}'.", - missingParamType: "Missing JSDoc parameter type for '{{name}}'.", - missingReturnType: "Missing JSDoc return type.", - missingReturnDesc: "Missing JSDoc return description.", - missingReturn: "Missing JSDoc @{{returns}} for function.", - missingParam: "Missing JSDoc for parameter '{{name}}'.", - duplicateParam: "Duplicate JSDoc parameter '{{name}}'.", - unsatisfiedDesc: "JSDoc description does not satisfy the regex pattern." - }, - - deprecated: true, - replacedBy: [] - }, - - create(context) { - - const options = context.options[0] || {}, - prefer = options.prefer || {}, - sourceCode = context.sourceCode, - - // these both default to true, so you have to explicitly make them false - requireReturn = options.requireReturn !== false, - requireParamDescription = options.requireParamDescription !== false, - requireReturnDescription = options.requireReturnDescription !== false, - requireReturnType = options.requireReturnType !== false, - requireParamType = options.requireParamType !== false, - preferType = options.preferType || {}, - checkPreferType = Object.keys(preferType).length !== 0; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - // Using a stack to store if a function returns or not (handling nested functions) - const fns = []; - - /** - * Check if node type is a Class - * @param {ASTNode} node node to check. - * @returns {boolean} True is its a class - * @private - */ - function isTypeClass(node) { - return node.type === "ClassExpression" || node.type === "ClassDeclaration"; - } - - /** - * When parsing a new function, store it in our function stack. - * @param {ASTNode} node A function node to check. - * @returns {void} - * @private - */ - function startFunction(node) { - fns.push({ - returnPresent: (node.type === "ArrowFunctionExpression" && node.body.type !== "BlockStatement") || - isTypeClass(node) || node.async - }); - } - - /** - * Indicate that return has been found in the current function. - * @param {ASTNode} node The return node. - * @returns {void} - * @private - */ - function addReturn(node) { - const functionState = fns[fns.length - 1]; - - if (functionState && node.argument !== null) { - functionState.returnPresent = true; - } - } - - /** - * Check if return tag type is void or undefined - * @param {Object} tag JSDoc tag - * @returns {boolean} True if its of type void or undefined - * @private - */ - function isValidReturnType(tag) { - return tag.type === null || tag.type.name === "void" || tag.type.type === "UndefinedLiteral"; - } - - /** - * Check if type should be validated based on some exceptions - * @param {Object} type JSDoc tag - * @returns {boolean} True if it can be validated - * @private - */ - function canTypeBeValidated(type) { - return type !== "UndefinedLiteral" && // {undefined} as there is no name property available. - type !== "NullLiteral" && // {null} - type !== "NullableLiteral" && // {?} - type !== "FunctionType" && // {function(a)} - type !== "AllLiteral"; // {*} - } - - /** - * Extract the current and expected type based on the input type object - * @param {Object} type JSDoc tag - * @returns {{currentType: Doctrine.Type, expectedTypeName: string}} The current type annotation and - * the expected name of the annotation - * @private - */ - function getCurrentExpectedTypes(type) { - let currentType; - - if (type.name) { - currentType = type; - } else if (type.expression) { - currentType = type.expression; - } - - return { - currentType, - expectedTypeName: currentType && preferType[currentType.name] - }; - } - - /** - * Gets the location of a JSDoc node in a file - * @param {Token} jsdocComment The comment that this node is parsed from - * @param {{range: number[]}} parsedJsdocNode A tag or other node which was parsed from this comment - * @returns {{start: SourceLocation, end: SourceLocation}} The 0-based source location for the tag - */ - function getAbsoluteRange(jsdocComment, parsedJsdocNode) { - return { - start: sourceCode.getLocFromIndex(jsdocComment.range[0] + 2 + parsedJsdocNode.range[0]), - end: sourceCode.getLocFromIndex(jsdocComment.range[0] + 2 + parsedJsdocNode.range[1]) - }; - } - - /** - * Validate type for a given JSDoc node - * @param {Object} jsdocNode JSDoc node - * @param {Object} type JSDoc tag - * @returns {void} - * @private - */ - function validateType(jsdocNode, type) { - if (!type || !canTypeBeValidated(type.type)) { - return; - } - - const typesToCheck = []; - let elements = []; - - switch (type.type) { - case "TypeApplication": // {Array.} - elements = type.applications[0].type === "UnionType" ? type.applications[0].elements : type.applications; - typesToCheck.push(getCurrentExpectedTypes(type)); - break; - case "RecordType": // {{20:String}} - elements = type.fields; - break; - case "UnionType": // {String|number|Test} - case "ArrayType": // {[String, number, Test]} - elements = type.elements; - break; - case "FieldType": // Array.<{count: number, votes: number}> - if (type.value) { - typesToCheck.push(getCurrentExpectedTypes(type.value)); - } - break; - default: - typesToCheck.push(getCurrentExpectedTypes(type)); - } - - elements.forEach(validateType.bind(null, jsdocNode)); - - typesToCheck.forEach(typeToCheck => { - if (typeToCheck.expectedTypeName && - typeToCheck.expectedTypeName !== typeToCheck.currentType.name) { - context.report({ - node: jsdocNode, - messageId: "useType", - loc: getAbsoluteRange(jsdocNode, typeToCheck.currentType), - data: { - currentTypeName: typeToCheck.currentType.name, - expectedTypeName: typeToCheck.expectedTypeName - }, - fix(fixer) { - return fixer.replaceTextRange( - typeToCheck.currentType.range.map(indexInComment => jsdocNode.range[0] + 2 + indexInComment), - typeToCheck.expectedTypeName - ); - } - }); - } - }); - } - - /** - * Validate the JSDoc node and output warnings if anything is wrong. - * @param {ASTNode} node The AST node to check. - * @returns {void} - * @private - */ - function checkJSDoc(node) { - const jsdocNode = sourceCode.getJSDocComment(node), - functionData = fns.pop(), - paramTagsByName = Object.create(null), - paramTags = []; - let hasReturns = false, - returnsTag, - hasConstructor = false, - isInterface = false, - isOverride = false, - isAbstract = false; - - // make sure only to validate JSDoc comments - if (jsdocNode) { - let jsdoc; - - try { - jsdoc = doctrine.parse(jsdocNode.value, { - strict: true, - unwrap: true, - sloppy: true, - range: true - }); - } catch (ex) { - - if (/braces/iu.test(ex.message)) { - context.report({ node: jsdocNode, messageId: "missingBrace" }); - } else { - context.report({ node: jsdocNode, messageId: "syntaxError" }); - } - - return; - } - - jsdoc.tags.forEach(tag => { - - switch (tag.title.toLowerCase()) { - - case "param": - case "arg": - case "argument": - paramTags.push(tag); - break; - - case "return": - case "returns": - hasReturns = true; - returnsTag = tag; - break; - - case "constructor": - case "class": - hasConstructor = true; - break; - - case "override": - case "inheritdoc": - isOverride = true; - break; - - case "abstract": - case "virtual": - isAbstract = true; - break; - - case "interface": - isInterface = true; - break; - - // no default - } - - // check tag preferences - if (Object.prototype.hasOwnProperty.call(prefer, tag.title) && tag.title !== prefer[tag.title]) { - const entireTagRange = getAbsoluteRange(jsdocNode, tag); - - context.report({ - node: jsdocNode, - messageId: "use", - loc: { - start: entireTagRange.start, - end: { - line: entireTagRange.start.line, - column: entireTagRange.start.column + `@${tag.title}`.length - } - }, - data: { name: prefer[tag.title] }, - fix(fixer) { - return fixer.replaceTextRange( - [ - jsdocNode.range[0] + tag.range[0] + 3, - jsdocNode.range[0] + tag.range[0] + tag.title.length + 3 - ], - prefer[tag.title] - ); - } - }); - } - - // validate the types - if (checkPreferType && tag.type) { - validateType(jsdocNode, tag.type); - } - }); - - paramTags.forEach(param => { - if (requireParamType && !param.type) { - context.report({ - node: jsdocNode, - messageId: "missingParamType", - loc: getAbsoluteRange(jsdocNode, param), - data: { name: param.name } - }); - } - if (!param.description && requireParamDescription) { - context.report({ - node: jsdocNode, - messageId: "missingParamDesc", - loc: getAbsoluteRange(jsdocNode, param), - data: { name: param.name } - }); - } - if (paramTagsByName[param.name]) { - context.report({ - node: jsdocNode, - messageId: "duplicateParam", - loc: getAbsoluteRange(jsdocNode, param), - data: { name: param.name } - }); - } else if (!param.name.includes(".")) { - paramTagsByName[param.name] = param; - } - }); - - if (hasReturns) { - if (!requireReturn && !functionData.returnPresent && (returnsTag.type === null || !isValidReturnType(returnsTag)) && !isAbstract) { - context.report({ - node: jsdocNode, - messageId: "unexpectedTag", - loc: getAbsoluteRange(jsdocNode, returnsTag), - data: { - title: returnsTag.title - } - }); - } else { - if (requireReturnType && !returnsTag.type) { - context.report({ node: jsdocNode, messageId: "missingReturnType" }); - } - - if (!isValidReturnType(returnsTag) && !returnsTag.description && requireReturnDescription) { - context.report({ node: jsdocNode, messageId: "missingReturnDesc" }); - } - } - } - - // check for functions missing @returns - if (!isOverride && !hasReturns && !hasConstructor && !isInterface && - node.parent.kind !== "get" && node.parent.kind !== "constructor" && - node.parent.kind !== "set" && !isTypeClass(node)) { - if (requireReturn || (functionData.returnPresent && !node.async)) { - context.report({ - node: jsdocNode, - messageId: "missingReturn", - data: { - returns: prefer.returns || "returns" - } - }); - } - } - - // check the parameters - const jsdocParamNames = Object.keys(paramTagsByName); - - if (node.params) { - node.params.forEach((param, paramsIndex) => { - const bindingParam = param.type === "AssignmentPattern" - ? param.left - : param; - - // TODO(nzakas): Figure out logical things to do with destructured, default, rest params - if (bindingParam.type === "Identifier") { - const name = bindingParam.name; - - if (jsdocParamNames[paramsIndex] && (name !== jsdocParamNames[paramsIndex])) { - context.report({ - node: jsdocNode, - messageId: "expected", - loc: getAbsoluteRange(jsdocNode, paramTagsByName[jsdocParamNames[paramsIndex]]), - data: { - name, - jsdocName: jsdocParamNames[paramsIndex] - } - }); - } else if (!paramTagsByName[name] && !isOverride) { - context.report({ - node: jsdocNode, - messageId: "missingParam", - data: { - name - } - }); - } - } - }); - } - - if (options.matchDescription) { - const regex = new RegExp(options.matchDescription, "u"); - - if (!regex.test(jsdoc.description)) { - context.report({ node: jsdocNode, messageId: "unsatisfiedDesc" }); - } - } - - } - - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ArrowFunctionExpression: startFunction, - FunctionExpression: startFunction, - FunctionDeclaration: startFunction, - ClassExpression: startFunction, - ClassDeclaration: startFunction, - "ArrowFunctionExpression:exit": checkJSDoc, - "FunctionExpression:exit": checkJSDoc, - "FunctionDeclaration:exit": checkJSDoc, - "ClassExpression:exit": checkJSDoc, - "ClassDeclaration:exit": checkJSDoc, - ReturnStatement: addReturn - }; - - } -}; diff --git a/node_modules/eslint/lib/rules/valid-typeof.js b/node_modules/eslint/lib/rules/valid-typeof.js index 3818dafe..eff4d942 100644 --- a/node_modules/eslint/lib/rules/valid-typeof.js +++ b/node_modules/eslint/lib/rules/valid-typeof.js @@ -19,6 +19,10 @@ module.exports = { meta: { type: "problem", + defaultOptions: [{ + requireStringLiterals: false + }], + docs: { description: "Enforce comparing `typeof` expressions against valid strings", recommended: true, @@ -32,8 +36,7 @@ module.exports = { type: "object", properties: { requireStringLiterals: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -47,11 +50,10 @@ module.exports = { }, create(context) { - const VALID_TYPES = new Set(["symbol", "undefined", "object", "boolean", "number", "string", "function", "bigint"]), OPERATORS = new Set(["==", "===", "!=", "!=="]); const sourceCode = context.sourceCode; - const requireStringLiterals = context.options[0] && context.options[0].requireStringLiterals; + const [{ requireStringLiterals }] = context.options; let globalScope; diff --git a/node_modules/eslint/lib/rules/yield-star-spacing.js b/node_modules/eslint/lib/rules/yield-star-spacing.js index 9a67b78d..5cf3804a 100644 --- a/node_modules/eslint/lib/rules/yield-star-spacing.js +++ b/node_modules/eslint/lib/rules/yield-star-spacing.js @@ -79,7 +79,7 @@ module.exports = { const after = leftToken.value === "*"; const spaceRequired = mode[side]; const node = after ? leftToken : rightToken; - let messageId = ""; + let messageId; if (spaceRequired) { messageId = side === "before" ? "missingBefore" : "missingAfter"; diff --git a/node_modules/eslint/lib/rules/yoda.js b/node_modules/eslint/lib/rules/yoda.js index af8f5251..af73e8e0 100644 --- a/node_modules/eslint/lib/rules/yoda.js +++ b/node_modules/eslint/lib/rules/yoda.js @@ -111,6 +111,11 @@ module.exports = { meta: { type: "suggestion", + defaultOptions: ["never", { + exceptRange: false, + onlyEquality: false + }], + docs: { description: 'Require or disallow "Yoda" conditions', recommended: false, @@ -125,12 +130,10 @@ module.exports = { type: "object", properties: { exceptRange: { - type: "boolean", - default: false + type: "boolean" }, onlyEquality: { - type: "boolean", - default: false + type: "boolean" } }, additionalProperties: false @@ -145,14 +148,8 @@ module.exports = { }, create(context) { - - // Default to "never" (!always) if no option - const always = context.options[0] === "always"; - const exceptRange = - context.options[1] && context.options[1].exceptRange; - const onlyEquality = - context.options[1] && context.options[1].onlyEquality; - + const [when, { exceptRange, onlyEquality }] = context.options; + const always = when === "always"; const sourceCode = context.sourceCode; /** diff --git a/node_modules/eslint/lib/services/parser-service.js b/node_modules/eslint/lib/services/parser-service.js new file mode 100644 index 00000000..c138b831 --- /dev/null +++ b/node_modules/eslint/lib/services/parser-service.js @@ -0,0 +1,65 @@ +/** + * @fileoverview ESLint Parser + * @author Nicholas C. Zakas + */ +/* eslint class-methods-use-this: off -- Anticipate future constructor arguments. */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("../linter/vfile.js").VFile} VFile */ +/** @typedef {import("@eslint/core").Language} Language */ +/** @typedef {import("@eslint/core").LanguageOptions} LanguageOptions */ + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * The parser for ESLint. + */ +class ParserService { + + /** + * Parses the given file synchronously. + * @param {VFile} file The file to parse. + * @param {{language:Language,languageOptions:LanguageOptions}} config The configuration to use. + * @returns {Object} An object with the parsed source code or errors. + * @throws {Error} If the parser returns a promise. + */ + parseSync(file, config) { + + const { language, languageOptions } = config; + const result = language.parse(file, { languageOptions }); + + if (typeof result.then === "function") { + throw new Error("Unsupported: Language parser returned a promise."); + } + + if (result.ok) { + return { + ok: true, + sourceCode: language.createSourceCode(file, result, { languageOptions }) + }; + } + + // if we made it to here there was an error + return { + ok: false, + errors: result.errors.map(error => ({ + ruleId: null, + nodeType: null, + fatal: true, + severity: 2, + message: `Parsing error: ${error.message}`, + line: error.line, + column: error.column + })) + }; + } +} + +module.exports = { ParserService }; diff --git a/node_modules/eslint/lib/services/processor-service.js b/node_modules/eslint/lib/services/processor-service.js new file mode 100644 index 00000000..403b97c1 --- /dev/null +++ b/node_modules/eslint/lib/services/processor-service.js @@ -0,0 +1,109 @@ +/** + * @fileoverview ESLint Processor Service + * @author Nicholas C. Zakas + */ +/* eslint class-methods-use-this: off -- Anticipate future constructor arguments. */ + +"use strict"; + +//----------------------------------------------------------------------------- +// Requirements +//----------------------------------------------------------------------------- + +const path = require("node:path"); +const { VFile } = require("../linter/vfile.js"); + +//----------------------------------------------------------------------------- +// Types +//----------------------------------------------------------------------------- + +/** @typedef {import("../shared/types.js").LintMessage} LintMessage */ +/** @typedef {import("../linter/vfile.js").VFile} VFile */ +/** @typedef {import("@eslint/core").Language} Language */ +/** @typedef {import("@eslint/core").LanguageOptions} LanguageOptions */ +/** @typedef {import("eslint").Linter.Processor} Processor */ + +//----------------------------------------------------------------------------- +// Exports +//----------------------------------------------------------------------------- + +/** + * The service that applies processors to files. + */ +class ProcessorService { + + /** + * Preprocesses the given file synchronously. + * @param {VFile} file The file to preprocess. + * @param {{processor:Processor}} config The configuration to use. + * @returns {{ok:boolean, files?: Array, errors?: Array}} An array of preprocessed files or errors. + * @throws {Error} If the preprocessor returns a promise. + */ + preprocessSync(file, config) { + + const { processor } = config; + let blocks; + + try { + blocks = processor.preprocess(file.rawBody, file.path); + } catch (ex) { + + // If the message includes a leading line number, strip it: + const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; + + return { + ok: false, + errors: [ + { + ruleId: null, + fatal: true, + severity: 2, + message, + line: ex.lineNumber, + column: ex.column, + nodeType: null + } + ] + }; + } + + if (typeof blocks.then === "function") { + throw new Error("Unsupported: Preprocessor returned a promise."); + } + + return { + ok: true, + files: blocks.map((block, i) => { + + // Legacy behavior: return the block as a string + if (typeof block === "string") { + return block; + } + + const filePath = path.join(file.path, `${i}_${block.filename}`); + + return new VFile(filePath, block.text, { + physicalPath: file.physicalPath + }); + }) + }; + + } + + /** + * Postprocesses the given messages synchronously. + * @param {VFile} file The file to postprocess. + * @param {LintMessage[][]} messages The messages to postprocess. + * @param {{processor:Processor}} config The configuration to use. + * @returns {LintMessage[]} The postprocessed messages. + */ + postprocessSync(file, messages, config) { + + const { processor } = config; + + return processor.postprocess(messages, file.path); + } + +} + +module.exports = { ProcessorService }; diff --git a/node_modules/eslint/lib/shared/assert.js b/node_modules/eslint/lib/shared/assert.js new file mode 100644 index 00000000..00bbe07d --- /dev/null +++ b/node_modules/eslint/lib/shared/assert.js @@ -0,0 +1,22 @@ +/** + * @fileoverview Assertion utilities equivalent to the Node.js node:asserts module. + * @author Josh Goldberg + */ + +"use strict"; + +/** + * Throws an error if the input is not truthy. + * @param {unknown} value The input that is checked for being truthy. + * @param {string} message Message to throw if the input is not truthy. + * @returns {void} + * @throws {Error} When the condition is not truthy. + */ +function ok(value, message = "Assertion failed.") { + if (!value) { + throw new Error(message); + } +} + + +module.exports = ok; diff --git a/node_modules/eslint/lib/shared/config-validator.js b/node_modules/eslint/lib/shared/config-validator.js deleted file mode 100644 index 47353ac4..00000000 --- a/node_modules/eslint/lib/shared/config-validator.js +++ /dev/null @@ -1,347 +0,0 @@ -/* - * STOP!!! DO NOT MODIFY. - * - * This file is part of the ongoing work to move the eslintrc-style config - * system into the @eslint/eslintrc package. This file needs to remain - * unchanged in order for this work to proceed. - * - * If you think you need to change this file, please contact @nzakas first. - * - * Thanks in advance for your cooperation. - */ - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const - util = require("util"), - configSchema = require("../../conf/config-schema"), - BuiltInRules = require("../rules"), - { - Legacy: { - ConfigOps, - environments: BuiltInEnvironments - } - } = require("@eslint/eslintrc"), - { emitDeprecationWarning } = require("./deprecation-warnings"); - -const ajv = require("./ajv")(); -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -/** - * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. - */ -function getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - const schema = rule.schema || rule.meta && rule.meta.schema; - - // Given a tuple of schemas, insert warning level at the beginning - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; - - } - - // Given a full schema, leave it alone - return schema || null; -} - -/** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @throws {Error} Wrong severity value. - * @returns {number|string} The rule's severity value - */ -function validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - -} - -/** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @throws {Error} Any rule validation errors. - * @returns {void} - */ -function validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - const schema = getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } -} - -/** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @throws {Error} Upon any bad rule configuration. - * @returns {void} - */ -function validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = validateRuleSeverity(options); - - if (severity !== 0) { - validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); - } - } -} - -/** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {(envId:string) => Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ -function validateEnvironment( - environment, - source, - getAdditionalEnv = noop -) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); -} - -/** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {(ruleId:string) => Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ -function validateRules( - rulesConfig, - source, - getAdditionalRule = noop -) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || BuiltInRules.get(id) || null; - - validateRuleOptions(rule, id, rulesConfig[id], source); - }); -} - -/** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ -function validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - ConfigOps.normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); -} - -/** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {(id:string) => Processor} getProcessor The getter of defined processors. - * @throws {Error} For invalid processor configuration. - * @returns {void} - */ -function validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } -} - -/** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ -function formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); -} - -/** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @throws {Error} For any config invalid per the schema. - * @returns {void} - */ -function validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } -} - -/** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {(ruleId:string) => Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {(envId:string) => Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ -function validate(config, source, getAdditionalRule, getAdditionalEnv) { - validateConfigSchema(config, source); - validateRules(config.rules, source, getAdditionalRule); - validateEnvironment(config.env, source, getAdditionalEnv); - validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - validateRules(override.rules, source, getAdditionalRule); - validateEnvironment(override.env, source, getAdditionalEnv); - validateGlobals(config.globals, source); - } -} - -const validated = new WeakSet(); - -/** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ -function validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - validateEnvironment(element.env, element.name, getPluginEnv); - validateGlobals(element.globals, element.name); - validateProcessor(element.processor, element.name, getPluginProcessor); - validateRules(element.rules, element.name, getPluginRule); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - getRuleOptionsSchema, - validate, - validateConfigArray, - validateConfigSchema, - validateRuleOptions -}; diff --git a/node_modules/eslint/lib/shared/deep-merge-arrays.js b/node_modules/eslint/lib/shared/deep-merge-arrays.js new file mode 100644 index 00000000..d34149dd --- /dev/null +++ b/node_modules/eslint/lib/shared/deep-merge-arrays.js @@ -0,0 +1,60 @@ +/** + * @fileoverview Applies default rule options + * @author JoshuaKGoldberg + */ + +"use strict"; + +/** + * Check if the variable contains an object strictly rejecting arrays + * @param {unknown} value an object + * @returns {boolean} Whether value is an object + */ +function isObjectNotArray(value) { + return typeof value === "object" && value !== null && !Array.isArray(value); +} + +/** + * Deeply merges second on top of first, creating a new {} object if needed. + * @param {T} first Base, default value. + * @param {U} second User-specified value. + * @returns {T | U | (T & U)} Merged equivalent of second on top of first. + */ +function deepMergeObjects(first, second) { + if (second === void 0) { + return first; + } + + if (!isObjectNotArray(first) || !isObjectNotArray(second)) { + return second; + } + + const result = { ...first, ...second }; + + for (const key of Object.keys(second)) { + if (Object.prototype.propertyIsEnumerable.call(first, key)) { + result[key] = deepMergeObjects(first[key], second[key]); + } + } + + return result; +} + +/** + * Deeply merges second on top of first, creating a new [] array if needed. + * @param {T[]} first Base, default values. + * @param {U[]} second User-specified values. + * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first. + */ +function deepMergeArrays(first, second) { + if (!first || !second) { + return second || first || []; + } + + return [ + ...first.map((value, i) => deepMergeObjects(value, i < second.length ? second[i] : void 0)), + ...second.slice(first.length) + ]; +} + +module.exports = { deepMergeArrays }; diff --git a/node_modules/eslint/lib/shared/deprecation-warnings.js b/node_modules/eslint/lib/shared/deprecation-warnings.js deleted file mode 100644 index d09cafb0..00000000 --- a/node_modules/eslint/lib/shared/deprecation-warnings.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const path = require("path"); - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Definitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - - sourceFileErrorCache.add(cacheKey); - - const rel = path.relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - emitDeprecationWarning -}; diff --git a/node_modules/eslint/lib/shared/flags.js b/node_modules/eslint/lib/shared/flags.js new file mode 100644 index 00000000..464835b0 --- /dev/null +++ b/node_modules/eslint/lib/shared/flags.js @@ -0,0 +1,28 @@ +/** + * @fileoverview Shared flags for ESLint. + */ + +"use strict"; + +/** + * The set of flags that change ESLint behavior with a description. + * @type {Map} + */ +const activeFlags = new Map([ + ["test_only", "Used only for testing."], + ["unstable_config_lookup_from_file", "Look up eslint.config.js from the file being linted."], + ["unstable_ts_config", "Enable TypeScript configuration files."] +]); + +/** + * The set of flags that used to be active but no longer have an effect. + * @type {Map} + */ +const inactiveFlags = new Map([ + ["test_only_old", "Used only for testing."] +]); + +module.exports = { + activeFlags, + inactiveFlags +}; diff --git a/node_modules/eslint/lib/shared/logging.js b/node_modules/eslint/lib/shared/logging.js index fd5e8a64..9310e586 100644 --- a/node_modules/eslint/lib/shared/logging.js +++ b/node_modules/eslint/lib/shared/logging.js @@ -11,7 +11,7 @@ module.exports = { /** - * Cover for console.log + * Cover for console.info * @param {...any} args The elements to log. * @returns {void} */ @@ -19,6 +19,15 @@ module.exports = { console.log(...args); }, + /** + * Cover for console.warn + * @param {...any} args The elements to log. + * @returns {void} + */ + warn(...args) { + console.warn(...args); + }, + /** * Cover for console.error * @param {...any} args The elements to log. diff --git a/node_modules/eslint/lib/shared/relative-module-resolver.js b/node_modules/eslint/lib/shared/relative-module-resolver.js deleted file mode 100644 index 18a69498..00000000 --- a/node_modules/eslint/lib/shared/relative-module-resolver.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - * STOP!!! DO NOT MODIFY. - * - * This file is part of the ongoing work to move the eslintrc-style config - * system into the @eslint/eslintrc package. This file needs to remain - * unchanged in order for this work to proceed. - * - * If you think you need to change this file, please contact @nzakas first. - * - * Thanks in advance for your cooperation. - */ - -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -"use strict"; - -const { createRequire } = require("module"); - -module.exports = { - - /** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @throws {Error} Any error from `module.createRequire` or its `resolve`. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ - resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } - } -}; diff --git a/node_modules/eslint/lib/shared/runtime-info.js b/node_modules/eslint/lib/shared/runtime-info.js index b99ad103..29de6fc8 100644 --- a/node_modules/eslint/lib/shared/runtime-info.js +++ b/node_modules/eslint/lib/shared/runtime-info.js @@ -9,9 +9,9 @@ // Requirements //------------------------------------------------------------------------------ -const path = require("path"); +const path = require("node:path"); const spawn = require("cross-spawn"); -const os = require("os"); +const os = require("node:os"); const log = require("../shared/logging"); const packageJson = require("../../package.json"); @@ -162,6 +162,7 @@ function version() { //------------------------------------------------------------------------------ module.exports = { + __esModule: true, // Indicate intent for imports, remove ambiguity for Knip (see: https://github.com/eslint/eslint/pull/18005#discussion_r1484422616) environment, version }; diff --git a/node_modules/eslint/lib/shared/serialization.js b/node_modules/eslint/lib/shared/serialization.js new file mode 100644 index 00000000..69f5710f --- /dev/null +++ b/node_modules/eslint/lib/shared/serialization.js @@ -0,0 +1,55 @@ +/** + * @fileoverview Serialization utils. + * @author Bryan Mishkin + */ + +"use strict"; + +/** + * Check if a value is a primitive or plain object created by the Object constructor. + * @param {any} val the value to check + * @returns {boolean} true if so + * @private + */ +function isSerializablePrimitiveOrPlainObject(val) { + return ( + val === null || + typeof val === "string" || + typeof val === "boolean" || + typeof val === "number" || + (typeof val === "object" && val.constructor === Object) || + Array.isArray(val) + ); +} + +/** + * Check if a value is serializable. + * Functions or objects like RegExp cannot be serialized by JSON.stringify(). + * Inspired by: https://stackoverflow.com/questions/30579940/reliable-way-to-check-if-objects-is-serializable-in-javascript + * @param {any} val the value + * @returns {boolean} true if the value is serializable + */ +function isSerializable(val) { + if (!isSerializablePrimitiveOrPlainObject(val)) { + return false; + } + if (typeof val === "object") { + for (const property in val) { + if (Object.hasOwn(val, property)) { + if (!isSerializablePrimitiveOrPlainObject(val[property])) { + return false; + } + if (typeof val[property] === "object") { + if (!isSerializable(val[property])) { + return false; + } + } + } + } + } + return true; +} + +module.exports = { + isSerializable +}; diff --git a/node_modules/eslint/lib/shared/stats.js b/node_modules/eslint/lib/shared/stats.js new file mode 100644 index 00000000..c5d4d188 --- /dev/null +++ b/node_modules/eslint/lib/shared/stats.js @@ -0,0 +1,30 @@ +/** + * @fileoverview Provides helper functions to start/stop the time measurements + * that are provided by the ESLint 'stats' option. + * @author Mara Kiefer + */ +"use strict"; + +/** + * Start time measurement + * @returns {[number, number]} t variable for tracking time + */ +function startTime() { + return process.hrtime(); +} + +/** + * End time measurement + * @param {[number, number]} t Variable for tracking time + * @returns {number} The measured time in milliseconds + */ +function endTime(t) { + const time = process.hrtime(t); + + return time[0] * 1e3 + time[1] / 1e6; +} + +module.exports = { + startTime, + endTime +}; diff --git a/node_modules/eslint/lib/shared/string-utils.js b/node_modules/eslint/lib/shared/string-utils.js index ed0781e5..31d0df98 100644 --- a/node_modules/eslint/lib/shared/string-utils.js +++ b/node_modules/eslint/lib/shared/string-utils.js @@ -5,12 +5,6 @@ "use strict"; -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Graphemer = require("graphemer").default; - //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ @@ -18,8 +12,8 @@ const Graphemer = require("graphemer").default; // eslint-disable-next-line no-control-regex -- intentionally including control characters const ASCII_REGEX = /^[\u0000-\u007f]*$/u; -/** @type {Graphemer | undefined} */ -let splitter; +/** @type {Intl.Segmenter | undefined} */ +let segmenter; //------------------------------------------------------------------------------ // Public Interface @@ -47,11 +41,15 @@ function getGraphemeCount(value) { return value.length; } - if (!splitter) { - splitter = new Graphemer(); + segmenter ??= new Intl.Segmenter("en-US"); // en-US locale should be supported everywhere + let graphemeCount = 0; + + // eslint-disable-next-line no-unused-vars -- for-of needs a variable + for (const unused of segmenter.segment(value)) { + graphemeCount++; } - return splitter.countGraphemes(value); + return graphemeCount; } module.exports = { diff --git a/node_modules/eslint/lib/shared/text-table.js b/node_modules/eslint/lib/shared/text-table.js new file mode 100644 index 00000000..ddd137d6 --- /dev/null +++ b/node_modules/eslint/lib/shared/text-table.js @@ -0,0 +1,67 @@ +/** + * @fileoverview Optimized version of the `text-table` npm module to improve performance by replacing inefficient regex-based + * whitespace trimming with a modern built-in method. + * + * This modification addresses a performance issue reported in https://github.com/eslint/eslint/issues/18709 + * + * The `text-table` module is published under the MIT License. For the original source, refer to: + * https://www.npmjs.com/package/text-table. + */ + +/* + * + * This software is released under the MIT license: + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + +"use strict"; + +module.exports = function(rows_, opts) { + const hsep = " "; + const align = opts.align; + const stringLength = opts.stringLength; + + const sizes = rows_.reduce((acc, row) => { + row.forEach((c, ix) => { + const n = stringLength(c); + + if (!acc[ix] || n > acc[ix]) { + acc[ix] = n; + } + }); + return acc; + }, []); + + return rows_ + .map(row => + row + .map((c, ix) => { + const n = sizes[ix] - stringLength(c) || 0; + const s = Array(Math.max(n + 1, 1)).join(" "); + + if (align[ix] === "r") { + return s + c; + } + + return c + s; + }) + .join(hsep) + .trimEnd()) + .join("\n"); +}; diff --git a/node_modules/eslint/lib/shared/types.js b/node_modules/eslint/lib/shared/types.js index e3a40bc9..f12c369c 100644 --- a/node_modules/eslint/lib/shared/types.js +++ b/node_modules/eslint/lib/shared/types.js @@ -21,7 +21,7 @@ module.exports = {}; /** * @typedef {Object} ParserOptions * @property {EcmaFeatures} [ecmaFeatures] The optional features. - * @property {3|5|6|7|8|9|10|11|12|13|14|15|2015|2016|2017|2018|2019|2020|2021|2022|2023|2024} [ecmaVersion] The ECMAScript version (or revision number). + * @property {3|5|6|7|8|9|10|11|12|13|14|15|16|2015|2016|2017|2018|2019|2020|2021|2022|2023|2024|2025} [ecmaVersion] The ECMAScript version (or revision number). * @property {"script"|"module"} [sourceType] The source code type. * @property {boolean} [allowReserved] Allowing the use of reserved words as identifiers in ES3. */ @@ -148,6 +148,7 @@ module.exports = {}; /** * @typedef {Object} RuleMeta * @property {boolean} [deprecated] If `true` then the rule has been deprecated. + * @property {Array} [defaultOptions] Default options for the rule. * @property {RuleMetaDocs} docs The document information of the rule. * @property {"code"|"whitespace"} [fixable] The autofix type. * @property {boolean} [hasSuggestions] If `true` then the rule provides suggestions. @@ -168,7 +169,7 @@ module.exports = {}; * @property {Record} [configs] The definition of plugin configs. * @property {Record} [environments] The definition of plugin environments. * @property {Record} [processors] The definition of plugin processors. - * @property {Record} [rules] The definition of plugin rules. + * @property {Record} [rules] The definition of plugin rules. */ /** @@ -189,11 +190,45 @@ module.exports = {}; * @property {number} warningCount Number of warnings for the result. * @property {number} fixableErrorCount Number of fixable errors for the result. * @property {number} fixableWarningCount Number of fixable warnings for the result. + * @property {Stats} [stats] The performance statistics collected with the `stats` flag. * @property {string} [source] The source code of the file that was linted. * @property {string} [output] The source code of the file that was linted, with as many fixes applied as possible. * @property {DeprecatedRuleInfo[]} usedDeprecatedRules The list of used deprecated rules. */ +/** + * Performance statistics + * @typedef {Object} Stats + * @property {number} fixPasses The number of times ESLint has applied at least one fix after linting. + * @property {Times} times The times spent on (parsing, fixing, linting) a file. + */ + +/** + * Performance Times for each ESLint pass + * @typedef {Object} Times + * @property {TimePass[]} passes Time passes + */ + +/** + * @typedef {Object} TimePass + * @property {ParseTime} parse The parse object containing all parse time information. + * @property {Record} [rules] The rules object containing all lint time information for each rule. + * @property {FixTime} fix The parse object containing all fix time information. + * @property {number} total The total time that is spent on (parsing, fixing, linting) a file. + */ +/** + * @typedef {Object} ParseTime + * @property {number} total The total time that is spent when parsing a file. + */ +/** + * @typedef {Object} RuleTime + * @property {number} total The total time that is spent on a rule. + */ +/** + * @typedef {Object} FixTime + * @property {number} total The total time that is spent on applying fixes to the code. + */ + /** * Information provided when the maximum warning threshold is exceeded. * @typedef {Object} MaxWarningsExceeded @@ -211,6 +246,6 @@ module.exports = {}; * A formatter function. * @callback FormatterFunction * @param {LintResult[]} results The list of linting results. - * @param {{cwd: string, maxWarningsExceeded?: MaxWarningsExceeded, rulesMeta: Record}} [context] A context object. + * @param {{cwd: string, maxWarningsExceeded?: MaxWarningsExceeded, rulesMeta: Record}} context A context object. * @returns {string | Promise} Formatted text. */ diff --git a/node_modules/eslint/lib/source-code/index.js b/node_modules/eslint/lib/source-code/index.js deleted file mode 100644 index 76e27869..00000000 --- a/node_modules/eslint/lib/source-code/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = { - SourceCode: require("./source-code") -}; diff --git a/node_modules/eslint/lib/source-code/token-store/index.js b/node_modules/eslint/lib/source-code/token-store/index.js deleted file mode 100644 index 46a96b2f..00000000 --- a/node_modules/eslint/lib/source-code/token-store/index.js +++ /dev/null @@ -1,627 +0,0 @@ -/** - * @fileoverview Object to handle access and retrieval of tokens. - * @author Brandon Mills - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const assert = require("assert"); -const { isCommentToken } = require("@eslint-community/eslint-utils"); -const cursors = require("./cursors"); -const ForwardTokenCursor = require("./forward-token-cursor"); -const PaddedTokenCursor = require("./padded-token-cursor"); -const utils = require("./utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const TOKENS = Symbol("tokens"); -const COMMENTS = Symbol("comments"); -const INDEX_MAP = Symbol("indexMap"); - -/** - * Creates the map from locations to indices in `tokens`. - * - * The first/last location of tokens is mapped to the index of the token. - * The first/last location of comments is mapped to the index of the next token of each comment. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @returns {Object} The map from locations to indices in `tokens`. - * @private - */ -function createIndexMap(tokens, comments) { - const map = Object.create(null); - let tokenIndex = 0; - let commentIndex = 0; - let nextStart = 0; - let range = null; - - while (tokenIndex < tokens.length || commentIndex < comments.length) { - nextStart = (commentIndex < comments.length) ? comments[commentIndex].range[0] : Number.MAX_SAFE_INTEGER; - while (tokenIndex < tokens.length && (range = tokens[tokenIndex].range)[0] < nextStart) { - map[range[0]] = tokenIndex; - map[range[1] - 1] = tokenIndex; - tokenIndex += 1; - } - - nextStart = (tokenIndex < tokens.length) ? tokens[tokenIndex].range[0] : Number.MAX_SAFE_INTEGER; - while (commentIndex < comments.length && (range = comments[commentIndex].range)[0] < nextStart) { - map[range[0]] = tokenIndex; - map[range[1] - 1] = tokenIndex; - commentIndex += 1; - } - } - - return map; -} - -/** - * Creates the cursor iterates tokens with options. - * @param {CursorFactory} factory The cursor factory to initialize cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.skip`. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.skip=0] The count of tokens the cursor skips. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithSkip(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { - let includeComments = false; - let skip = 0; - let filter = null; - - if (typeof opts === "number") { - skip = opts | 0; - } else if (typeof opts === "function") { - filter = opts; - } else if (opts) { - includeComments = !!opts.includeComments; - skip = opts.skip | 0; - filter = opts.filter || null; - } - assert(skip >= 0, "options.skip should be zero or a positive integer."); - assert(!filter || typeof filter === "function", "options.filter should be a function."); - - return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, skip, -1); -} - -/** - * Creates the cursor iterates tokens with options. - * @param {CursorFactory} factory The cursor factory to initialize cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.count`. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithCount(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { - let includeComments = false; - let count = 0; - let countExists = false; - let filter = null; - - if (typeof opts === "number") { - count = opts | 0; - countExists = true; - } else if (typeof opts === "function") { - filter = opts; - } else if (opts) { - includeComments = !!opts.includeComments; - count = opts.count | 0; - countExists = typeof opts.count === "number"; - filter = opts.filter || null; - } - assert(count >= 0, "options.count should be zero or a positive integer."); - assert(!filter || typeof filter === "function", "options.filter should be a function."); - - return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, 0, countExists ? count : -1); -} - -/** - * Creates the cursor iterates tokens with options. - * This is overload function of the below. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {Function|Object} opts The option object. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. - * @returns {Cursor} The created cursor. - * @private - */ -/** - * Creates the cursor iterates tokens with options. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number} [beforeCount=0] The number of tokens before the node to retrieve. - * @param {boolean} [afterCount=0] The number of tokens after the node to retrieve. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithPadding(tokens, comments, indexMap, startLoc, endLoc, beforeCount, afterCount) { - if (typeof beforeCount === "undefined" && typeof afterCount === "undefined") { - return new ForwardTokenCursor(tokens, comments, indexMap, startLoc, endLoc); - } - if (typeof beforeCount === "number" || typeof beforeCount === "undefined") { - return new PaddedTokenCursor(tokens, comments, indexMap, startLoc, endLoc, beforeCount | 0, afterCount | 0); - } - return createCursorWithCount(cursors.forward, tokens, comments, indexMap, startLoc, endLoc, beforeCount); -} - -/** - * Gets comment tokens that are adjacent to the current cursor position. - * @param {Cursor} cursor A cursor instance. - * @returns {Array} An array of comment tokens adjacent to the current cursor position. - * @private - */ -function getAdjacentCommentTokensFromCursor(cursor) { - const tokens = []; - let currentToken = cursor.getOneToken(); - - while (currentToken && isCommentToken(currentToken)) { - tokens.push(currentToken); - currentToken = cursor.getOneToken(); - } - - return tokens; -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The token store. - * - * This class provides methods to get tokens by locations as fast as possible. - * The methods are a part of public API, so we should be careful if it changes this class. - * - * People can get tokens in O(1) by the hash map which is mapping from the location of tokens/comments to tokens. - * Also people can get a mix of tokens and comments in O(log k), the k is the number of comments. - * Assuming that comments to be much fewer than tokens, this does not make hash map from token's locations to comments to reduce memory cost. - * This uses binary-searching instead for comments. - */ -module.exports = class TokenStore { - - /** - * Initializes this token store. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - */ - constructor(tokens, comments) { - this[TOKENS] = tokens; - this[COMMENTS] = comments; - this[INDEX_MAP] = createIndexMap(tokens, comments); - } - - //-------------------------------------------------------------------------- - // Gets single token. - //-------------------------------------------------------------------------- - - /** - * Gets the token starting at the specified index. - * @param {number} offset Index of the start of the token's range. - * @param {Object} [options=0] The option object. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @returns {Token|null} The token starting at index, or null if no such token. - */ - getTokenByRangeStart(offset, options) { - const includeComments = options && options.includeComments; - const token = cursors.forward.createBaseCursor( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - offset, - -1, - includeComments - ).getOneToken(); - - if (token && token.range[0] === offset) { - return token; - } - return null; - } - - /** - * Gets the first token of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.skip=0] The count of tokens the cursor skips. - * @returns {Token|null} An object representing the token. - */ - getFirstToken(node, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getOneToken(); - } - - /** - * Gets the last token of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getLastToken(node, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getOneToken(); - } - - /** - * Gets the token that precedes a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getTokenBefore(node, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - node.range[0], - options - ).getOneToken(); - } - - /** - * Gets the token that follows a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getTokenAfter(node, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[1], - -1, - options - ).getOneToken(); - } - - /** - * Gets the first token between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getFirstTokenBetween(left, right, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getOneToken(); - } - - /** - * Gets the last token between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getLastTokenBetween(left, right, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getOneToken(); - } - - /** - * Gets the token that precedes a given node or token in the token stream. - * This is defined for backward compatibility. Use `includeComments` option instead. - * TODO: We have a plan to remove this in a future major version. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number} [skip=0] A number of tokens to skip. - * @returns {Token|null} An object representing the token. - * @deprecated - */ - getTokenOrCommentBefore(node, skip) { - return this.getTokenBefore(node, { includeComments: true, skip }); - } - - /** - * Gets the token that follows a given node or token in the token stream. - * This is defined for backward compatibility. Use `includeComments` option instead. - * TODO: We have a plan to remove this in a future major version. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number} [skip=0] A number of tokens to skip. - * @returns {Token|null} An object representing the token. - * @deprecated - */ - getTokenOrCommentAfter(node, skip) { - return this.getTokenAfter(node, { includeComments: true, skip }); - } - - //-------------------------------------------------------------------------- - // Gets multiple tokens. - //-------------------------------------------------------------------------- - - /** - * Gets the first `count` tokens of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Tokens. - */ - getFirstTokens(node, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getAllTokens(); - } - - /** - * Gets the last `count` tokens of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getLastTokens(node, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getAllTokens().reverse(); - } - - /** - * Gets the `count` tokens that precedes a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getTokensBefore(node, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - node.range[0], - options - ).getAllTokens().reverse(); - } - - /** - * Gets the `count` tokens that follows a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getTokensAfter(node, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[1], - -1, - options - ).getAllTokens(); - } - - /** - * Gets the first `count` tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens between left and right. - */ - getFirstTokensBetween(left, right, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getAllTokens(); - } - - /** - * Gets the last `count` tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens between left and right. - */ - getLastTokensBetween(left, right, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getAllTokens().reverse(); - } - - /** - * Gets all tokens that are related to the given node. - * @param {ASTNode} node The AST node. - * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Array of objects representing tokens. - */ - /** - * Gets all tokens that are related to the given node. - * @param {ASTNode} node The AST node. - * @param {int} [beforeCount=0] The number of tokens before the node to retrieve. - * @param {int} [afterCount=0] The number of tokens after the node to retrieve. - * @returns {Token[]} Array of objects representing tokens. - */ - getTokens(node, beforeCount, afterCount) { - return createCursorWithPadding( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - beforeCount, - afterCount - ).getAllTokens(); - } - - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Tokens between left and right. - */ - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {int} [padding=0] Number of extra tokens on either side of center. - * @returns {Token[]} Tokens between left and right. - */ - getTokensBetween(left, right, padding) { - return createCursorWithPadding( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - padding, - padding - ).getAllTokens(); - } - - //-------------------------------------------------------------------------- - // Others. - //-------------------------------------------------------------------------- - - /** - * Checks whether any comments exist or not between the given 2 nodes. - * @param {ASTNode} left The node to check. - * @param {ASTNode} right The node to check. - * @returns {boolean} `true` if one or more comments exist. - */ - commentsExistBetween(left, right) { - const index = utils.search(this[COMMENTS], left.range[1]); - - return ( - index < this[COMMENTS].length && - this[COMMENTS][index].range[1] <= right.range[0] - ); - } - - /** - * Gets all comment tokens directly before the given node or token. - * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsBefore(nodeOrToken) { - const cursor = createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - nodeOrToken.range[0], - { includeComments: true } - ); - - return getAdjacentCommentTokensFromCursor(cursor).reverse(); - } - - /** - * Gets all comment tokens directly after the given node or token. - * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsAfter(nodeOrToken) { - const cursor = createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - nodeOrToken.range[1], - -1, - { includeComments: true } - ); - - return getAdjacentCommentTokensFromCursor(cursor); - } - - /** - * Gets all comment tokens inside the given node. - * @param {ASTNode} node The AST node to get the comments for. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsInside(node) { - return this.getTokens(node, { - includeComments: true, - filter: isCommentToken - }); - } -}; diff --git a/node_modules/eslint/lib/types/index.d.ts b/node_modules/eslint/lib/types/index.d.ts new file mode 100644 index 00000000..1576548f --- /dev/null +++ b/node_modules/eslint/lib/types/index.d.ts @@ -0,0 +1,1683 @@ +/** + * @fileoverview This file contains the core types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import * as ESTree from "estree"; +import { Language } from "@eslint/core"; +import { JSONSchema4 } from "json-schema"; +import { LegacyESLint } from "./use-at-your-own-risk.js"; + +export namespace AST { + type TokenType = + | "Boolean" + | "Null" + | "Identifier" + | "Keyword" + | "Punctuator" + | "JSXIdentifier" + | "JSXText" + | "Numeric" + | "String" + | "RegularExpression"; + + interface Token { + type: TokenType; + value: string; + range: Range; + loc: SourceLocation; + } + + interface SourceLocation { + start: ESTree.Position; + end: ESTree.Position; + } + + type Range = [number, number]; + + interface Program extends ESTree.Program { + comments: ESTree.Comment[]; + tokens: Token[]; + loc: SourceLocation; + range: Range; + } +} + +export namespace Scope { + interface ScopeManager { + scopes: Scope[]; + globalScope: Scope | null; + + acquire(node: ESTree.Node, inner?: boolean): Scope | null; + + getDeclaredVariables(node: ESTree.Node): Variable[]; + } + + interface Scope { + type: + | "block" + | "catch" + | "class" + | "for" + | "function" + | "function-expression-name" + | "global" + | "module" + | "switch" + | "with" + | "TDZ"; + isStrict: boolean; + upper: Scope | null; + childScopes: Scope[]; + variableScope: Scope; + block: ESTree.Node; + variables: Variable[]; + set: Map; + references: Reference[]; + through: Reference[]; + functionExpressionScope: boolean; + } + + interface Variable { + name: string; + scope: Scope; + identifiers: ESTree.Identifier[]; + references: Reference[]; + defs: Definition[]; + } + + interface Reference { + identifier: ESTree.Identifier; + from: Scope; + resolved: Variable | null; + writeExpr: ESTree.Node | null; + init: boolean; + + isWrite(): boolean; + + isRead(): boolean; + + isWriteOnly(): boolean; + + isReadOnly(): boolean; + + isReadWrite(): boolean; + } + + type DefinitionType = + | { type: "CatchClause"; node: ESTree.CatchClause; parent: null } + | { type: "ClassName"; node: ESTree.ClassDeclaration | ESTree.ClassExpression; parent: null } + | { type: "FunctionName"; node: ESTree.FunctionDeclaration | ESTree.FunctionExpression; parent: null } + | { type: "ImplicitGlobalVariable"; node: ESTree.Program; parent: null } + | { + type: "ImportBinding"; + node: ESTree.ImportSpecifier | ESTree.ImportDefaultSpecifier | ESTree.ImportNamespaceSpecifier; + parent: ESTree.ImportDeclaration; + } + | { + type: "Parameter"; + node: ESTree.FunctionDeclaration | ESTree.FunctionExpression | ESTree.ArrowFunctionExpression; + parent: null; + } + | { type: "TDZ"; node: any; parent: null } + | { type: "Variable"; node: ESTree.VariableDeclarator; parent: ESTree.VariableDeclaration }; + + type Definition = DefinitionType & { name: ESTree.Identifier }; +} + +// #region SourceCode + +export class SourceCode { + text: string; + ast: AST.Program; + lines: string[]; + hasBOM: boolean; + parserServices: SourceCode.ParserServices; + scopeManager: Scope.ScopeManager; + visitorKeys: SourceCode.VisitorKeys; + + constructor(text: string, ast: AST.Program); + constructor(config: SourceCode.Config); + + static splitLines(text: string): string[]; + + getText(node?: ESTree.Node, beforeCount?: number, afterCount?: number): string; + + getLines(): string[]; + + getAllComments(): ESTree.Comment[]; + + getAncestors(node: ESTree.Node): ESTree.Node[]; + + getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; + + getJSDocComment(node: ESTree.Node): ESTree.Comment | null; + + getNodeByRangeIndex(index: number): ESTree.Node | null; + + isSpaceBetweenTokens(first: AST.Token, second: AST.Token): boolean; + + getLocFromIndex(index: number): ESTree.Position; + + getIndexFromLoc(location: ESTree.Position): number; + + // Inherited methods from TokenStore + // --------------------------------- + + getTokenByRangeStart(offset: number, options?: { includeComments: false }): AST.Token | null; + getTokenByRangeStart(offset: number, options: { includeComments: boolean }): AST.Token | ESTree.Comment | null; + + getFirstToken: SourceCode.UnaryNodeCursorWithSkipOptions; + + getFirstTokens: SourceCode.UnaryNodeCursorWithCountOptions; + + getLastToken: SourceCode.UnaryNodeCursorWithSkipOptions; + + getLastTokens: SourceCode.UnaryNodeCursorWithCountOptions; + + getTokenBefore: SourceCode.UnaryCursorWithSkipOptions; + + getTokensBefore: SourceCode.UnaryCursorWithCountOptions; + + getTokenAfter: SourceCode.UnaryCursorWithSkipOptions; + + getTokensAfter: SourceCode.UnaryCursorWithCountOptions; + + getFirstTokenBetween: SourceCode.BinaryCursorWithSkipOptions; + + getFirstTokensBetween: SourceCode.BinaryCursorWithCountOptions; + + getLastTokenBetween: SourceCode.BinaryCursorWithSkipOptions; + + getLastTokensBetween: SourceCode.BinaryCursorWithCountOptions; + + getTokensBetween: SourceCode.BinaryCursorWithCountOptions; + + getTokens: + & ((node: ESTree.Node, beforeCount?: number, afterCount?: number) => AST.Token[]) + & SourceCode.UnaryNodeCursorWithCountOptions; + + commentsExistBetween( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + ): boolean; + + getCommentsBefore(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[]; + + getCommentsAfter(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[]; + + getCommentsInside(node: ESTree.Node): ESTree.Comment[]; + + getScope(node: ESTree.Node): Scope.Scope; + + isSpaceBetween( + first: ESTree.Node | AST.Token, + second: ESTree.Node | AST.Token, + ): boolean; + + markVariableAsUsed(name: string, refNode?: ESTree.Node): boolean; +} + +export namespace SourceCode { + interface Config { + text: string; + ast: AST.Program; + parserServices?: ParserServices | undefined; + scopeManager?: Scope.ScopeManager | undefined; + visitorKeys?: VisitorKeys | undefined; + } + + type ParserServices = any; + + interface VisitorKeys { + [nodeType: string]: string[]; + } + + interface UnaryNodeCursorWithSkipOptions { + ( + node: ESTree.Node, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, + ): T | null; + ( + node: ESTree.Node, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + skip?: number | undefined; + }, + ): T | null; + ( + node: ESTree.Node, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token | null; + ( + node: ESTree.Node, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + skip?: number | undefined; + }, + ): AST.Token | ESTree.Comment | null; + } + + interface UnaryNodeCursorWithCountOptions { + ( + node: ESTree.Node, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, + ): T[]; + ( + node: ESTree.Node, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + count?: number | undefined; + }, + ): T[]; + ( + node: ESTree.Node, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token[]; + ( + node: ESTree.Node, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + count?: number | undefined; + }, + ): Array; + } + + interface UnaryCursorWithSkipOptions { + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, + ): T | null; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + skip?: number | undefined; + }, + ): T | null; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token | null; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + skip?: number | undefined; + }, + ): AST.Token | ESTree.Comment | null; + } + + interface UnaryCursorWithCountOptions { + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, + ): T[]; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + count?: number | undefined; + }, + ): T[]; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token[]; + ( + node: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + count?: number | undefined; + }, + ): Array; + } + + interface BinaryCursorWithSkipOptions { + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + skip?: number | undefined; + }, + ): T | null; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + skip?: number | undefined; + }, + ): T | null; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + skip?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token | null; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + skip?: number | undefined; + }, + ): AST.Token | ESTree.Comment | null; + } + + interface BinaryCursorWithCountOptions { + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: + | ((token: AST.Token) => token is T) + | { + filter: (token: AST.Token) => token is T; + includeComments?: false | undefined; + count?: number | undefined; + }, + ): T[]; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; + includeComments: boolean; + count?: number | undefined; + }, + ): T[]; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options?: + | { + filter?: ((token: AST.Token) => boolean) | undefined; + includeComments?: false | undefined; + count?: number | undefined; + } + | ((token: AST.Token) => boolean) + | number, + ): AST.Token[]; + ( + left: ESTree.Node | AST.Token | ESTree.Comment, + right: ESTree.Node | AST.Token | ESTree.Comment, + options: { + filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; + includeComments: boolean; + count?: number | undefined; + }, + ): Array; + } +} + +// #endregion + +export namespace Rule { + interface RuleModule { + create(context: RuleContext): RuleListener; + meta?: RuleMetaData | undefined; + } + + type NodeTypes = ESTree.Node["type"]; + interface NodeListener { + ArrayExpression?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; + "ArrayExpression:exit"?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; + ArrayPattern?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; + "ArrayPattern:exit"?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; + ArrowFunctionExpression?: ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) | undefined; + "ArrowFunctionExpression:exit"?: + | ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) + | undefined; + AssignmentExpression?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; + "AssignmentExpression:exit"?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; + AssignmentPattern?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; + "AssignmentPattern:exit"?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; + AwaitExpression?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; + "AwaitExpression:exit"?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; + BinaryExpression?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; + "BinaryExpression:exit"?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; + BlockStatement?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; + "BlockStatement:exit"?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; + BreakStatement?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; + "BreakStatement:exit"?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; + CallExpression?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; + "CallExpression:exit"?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; + CatchClause?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; + "CatchClause:exit"?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; + ChainExpression?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; + "ChainExpression:exit"?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; + ClassBody?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; + "ClassBody:exit"?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; + ClassDeclaration?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; + "ClassDeclaration:exit"?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; + ClassExpression?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; + "ClassExpression:exit"?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; + ConditionalExpression?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; + "ConditionalExpression:exit"?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; + ContinueStatement?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; + "ContinueStatement:exit"?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; + DebuggerStatement?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; + "DebuggerStatement:exit"?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; + DoWhileStatement?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; + "DoWhileStatement:exit"?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; + EmptyStatement?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; + "EmptyStatement:exit"?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; + ExportAllDeclaration?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; + "ExportAllDeclaration:exit"?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; + ExportDefaultDeclaration?: ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) | undefined; + "ExportDefaultDeclaration:exit"?: + | ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) + | undefined; + ExportNamedDeclaration?: ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) | undefined; + "ExportNamedDeclaration:exit"?: + | ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) + | undefined; + ExportSpecifier?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; + "ExportSpecifier:exit"?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; + ExpressionStatement?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; + "ExpressionStatement:exit"?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; + ForInStatement?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; + "ForInStatement:exit"?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; + ForOfStatement?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; + "ForOfStatement:exit"?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; + ForStatement?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; + "ForStatement:exit"?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; + FunctionDeclaration?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; + "FunctionDeclaration:exit"?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; + FunctionExpression?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; + "FunctionExpression:exit"?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; + Identifier?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; + "Identifier:exit"?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; + IfStatement?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; + "IfStatement:exit"?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; + ImportDeclaration?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; + "ImportDeclaration:exit"?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; + ImportDefaultSpecifier?: ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) | undefined; + "ImportDefaultSpecifier:exit"?: + | ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) + | undefined; + ImportExpression?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; + "ImportExpression:exit"?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; + ImportNamespaceSpecifier?: ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) | undefined; + "ImportNamespaceSpecifier:exit"?: + | ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) + | undefined; + ImportSpecifier?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; + "ImportSpecifier:exit"?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; + LabeledStatement?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; + "LabeledStatement:exit"?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; + Literal?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; + "Literal:exit"?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; + LogicalExpression?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; + "LogicalExpression:exit"?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; + MemberExpression?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; + "MemberExpression:exit"?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; + MetaProperty?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; + "MetaProperty:exit"?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; + MethodDefinition?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; + "MethodDefinition:exit"?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; + NewExpression?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; + "NewExpression:exit"?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; + ObjectExpression?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; + "ObjectExpression:exit"?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; + ObjectPattern?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; + "ObjectPattern:exit"?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; + PrivateIdentifier?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; + "PrivateIdentifier:exit"?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; + Program?: ((node: ESTree.Program) => void) | undefined; + "Program:exit"?: ((node: ESTree.Program) => void) | undefined; + Property?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; + "Property:exit"?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; + PropertyDefinition?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; + "PropertyDefinition:exit"?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; + RestElement?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; + "RestElement:exit"?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; + ReturnStatement?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; + "ReturnStatement:exit"?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; + SequenceExpression?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; + "SequenceExpression:exit"?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; + SpreadElement?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; + "SpreadElement:exit"?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; + StaticBlock?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; + "StaticBlock:exit"?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; + Super?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; + "Super:exit"?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; + SwitchCase?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; + "SwitchCase:exit"?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; + SwitchStatement?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; + "SwitchStatement:exit"?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; + TaggedTemplateExpression?: ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) | undefined; + "TaggedTemplateExpression:exit"?: + | ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) + | undefined; + TemplateElement?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; + "TemplateElement:exit"?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; + TemplateLiteral?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; + "TemplateLiteral:exit"?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; + ThisExpression?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; + "ThisExpression:exit"?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; + ThrowStatement?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; + "ThrowStatement:exit"?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; + TryStatement?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; + "TryStatement:exit"?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; + UnaryExpression?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; + "UnaryExpression:exit"?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; + UpdateExpression?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; + "UpdateExpression:exit"?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; + VariableDeclaration?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; + "VariableDeclaration:exit"?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; + VariableDeclarator?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; + "VariableDeclarator:exit"?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; + WhileStatement?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; + "WhileStatement:exit"?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; + WithStatement?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; + "WithStatement:exit"?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; + YieldExpression?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; + "YieldExpression:exit"?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; + } + + interface NodeParentExtension { + parent: Node; + } + type Node = ESTree.Node & NodeParentExtension; + + interface RuleListener extends NodeListener { + onCodePathStart?(codePath: CodePath, node: Node): void; + + onCodePathEnd?(codePath: CodePath, node: Node): void; + + onCodePathSegmentStart?(segment: CodePathSegment, node: Node): void; + + onCodePathSegmentEnd?(segment: CodePathSegment, node: Node): void; + + onCodePathSegmentLoop?(fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node): void; + + [key: string]: + | ((codePath: CodePath, node: Node) => void) + | ((segment: CodePathSegment, node: Node) => void) + | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node) => void) + | ((node: Node) => void) + | NodeListener[keyof NodeListener] + | undefined; + } + + type CodePathOrigin = "program" | "function" | "class-field-initializer" | "class-static-block"; + + interface CodePath { + id: string; + origin: CodePathOrigin; + initialSegment: CodePathSegment; + finalSegments: CodePathSegment[]; + returnedSegments: CodePathSegment[]; + thrownSegments: CodePathSegment[]; + upper: CodePath | null; + childCodePaths: CodePath[]; + } + + interface CodePathSegment { + id: string; + nextSegments: CodePathSegment[]; + prevSegments: CodePathSegment[]; + reachable: boolean; + } + + interface RuleMetaData { + /** Properties often used for documentation generation and tooling. */ + docs?: { + /** Provides a short description of the rule. Commonly used when generating lists of rules. */ + description?: string | undefined; + /** Historically used by some plugins that divide rules into categories in their documentation. */ + category?: string | undefined; + /** Historically used by some plugins to indicate a rule belongs in their `recommended` configuration. */ + recommended?: boolean | undefined; + /** Specifies the URL at which the full documentation can be accessed. Code editors often use this to provide a helpful link on highlighted rule violations. */ + url?: string | undefined; + } | undefined; + /** Violation and suggestion messages. */ + messages?: { [messageId: string]: string } | undefined; + /** + * Specifies if the `--fix` option on the command line automatically fixes problems reported by the rule. + * Mandatory for fixable rules. + */ + fixable?: "code" | "whitespace" | undefined; + /** + * Specifies the [options](https://eslint.org/docs/latest/extend/custom-rules#options-schemas) + * so ESLint can prevent invalid [rule configurations](https://eslint.org/docs/latest/use/configure/rules#configuring-rules). + * Mandatory for rules with options. + */ + schema?: JSONSchema4 | JSONSchema4[] | false | undefined; + + /** Any default options to be recursively merged on top of any user-provided options. */ + defaultOptions?: unknown[]; + + /** Indicates whether the rule has been deprecated. Omit if not deprecated. */ + deprecated?: boolean | undefined; + /** The name of the rule(s) this rule was replaced by, if it was deprecated. */ + replacedBy?: readonly string[]; + + /** + * Indicates the type of rule: + * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. + * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. + * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, + * all the parts of the program that determine how the code looks rather than how it executes. + * These rules work on parts of the code that aren’t specified in the AST. + */ + type?: "problem" | "suggestion" | "layout" | undefined; + /** + * Specifies whether the rule can return suggestions (defaults to `false` if omitted). + * Mandatory for rules that provide suggestions. + */ + hasSuggestions?: boolean | undefined; + } + + interface RuleContext { + id: string; + options: any[]; + settings: { [name: string]: any }; + parserPath: string | undefined; + languageOptions: Linter.LanguageOptions; + parserOptions: Linter.ParserOptions; + cwd: string; + filename: string; + physicalFilename: string; + sourceCode: SourceCode; + + getAncestors(): ESTree.Node[]; + + getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; + + /** @deprecated Use property `filename` directly instead */ + getFilename(): string; + + /** @deprecated Use property `physicalFilename` directly instead */ + getPhysicalFilename(): string; + + /** @deprecated Use property `cwd` directly instead */ + getCwd(): string; + + getScope(): Scope.Scope; + + /** @deprecated Use property `sourceCode` directly instead */ + getSourceCode(): SourceCode; + + markVariableAsUsed(name: string): boolean; + + report(descriptor: ReportDescriptor): void; + } + + type ReportFixer = (fixer: RuleFixer) => null | Fix | IterableIterator | Fix[]; + + interface ReportDescriptorOptionsBase { + data?: { [key: string]: string }; + + fix?: null | ReportFixer; + } + + interface SuggestionReportOptions { + data?: { [key: string]: string }; + + fix: ReportFixer; + } + + type SuggestionDescriptorMessage = { desc: string } | { messageId: string }; + type SuggestionReportDescriptor = SuggestionDescriptorMessage & SuggestionReportOptions; + + interface ReportDescriptorOptions extends ReportDescriptorOptionsBase { + suggest?: SuggestionReportDescriptor[] | null | undefined; + } + + type ReportDescriptor = ReportDescriptorMessage & ReportDescriptorLocation & ReportDescriptorOptions; + type ReportDescriptorMessage = { message: string } | { messageId: string }; + type ReportDescriptorLocation = + | { node: ESTree.Node } + | { loc: AST.SourceLocation | { line: number; column: number } }; + + interface RuleFixer { + insertTextAfter(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; + + insertTextAfterRange(range: AST.Range, text: string): Fix; + + insertTextBefore(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; + + insertTextBeforeRange(range: AST.Range, text: string): Fix; + + remove(nodeOrToken: ESTree.Node | AST.Token): Fix; + + removeRange(range: AST.Range): Fix; + + replaceText(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; + + replaceTextRange(range: AST.Range, text: string): Fix; + } + + interface Fix { + range: AST.Range; + text: string; + } +} + +// #region Linter + +export class Linter { + static readonly version: string; + + version: string; + + constructor(options?: { cwd?: string | undefined; configType?: "flat" | "eslintrc" }); + + verify( + code: SourceCode | string, + config: Linter.LegacyConfig | Linter.Config | Linter.Config[], + filename?: string, + ): Linter.LintMessage[]; + verify( + code: SourceCode | string, + config: Linter.LegacyConfig | Linter.Config | Linter.Config[], + options: Linter.LintOptions, + ): Linter.LintMessage[]; + + verifyAndFix( + code: string, + config: Linter.LegacyConfig | Linter.Config | Linter.Config[], + filename?: string, + ): Linter.FixReport; + verifyAndFix( + code: string, + config: Linter.LegacyConfig | Linter.Config | Linter.Config[], + options: Linter.FixOptions, + ): Linter.FixReport; + + getSourceCode(): SourceCode; + + defineRule(name: string, rule: Rule.RuleModule): void; + + defineRules(rules: { [name: string]: Rule.RuleModule }): void; + + getRules(): Map; + + defineParser(name: string, parser: Linter.Parser): void; + + getTimes(): Linter.Stats["times"]; + + getFixPassCount(): Linter.Stats["fixPasses"]; +} + +export namespace Linter { + /** + * The numeric severity level for a rule. + * + * - `0` means off. + * - `1` means warn. + * - `2` means error. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ + type Severity = 0 | 1 | 2; + + /** + * The human readable severity level for a rule. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ + type StringSeverity = "off" | "warn" | "error"; + + /** + * The numeric or human readable severity level for a rule. + * + * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) + */ + type RuleSeverity = Severity | StringSeverity; + + /** + * An array containing the rule severity level, followed by the rule options. + * + * @see [Rules](https://eslint.org/docs/latest/use/configure/rules) + */ + type RuleSeverityAndOptions = [RuleSeverity, ...Partial]; + + /** + * The severity level for the rule or an array containing the rule severity level, followed by the rule options. + * + * @see [Rules](https://eslint.org/docs/latest/use/configure/rules) + */ + type RuleEntry = RuleSeverity | RuleSeverityAndOptions; + + /** + * The rules config object is a key/value map of rule names and their severity and options. + */ + interface RulesRecord { + [rule: string]: RuleEntry; + } + + /** + * A configuration object that may have a `rules` block. + */ + interface HasRules { + rules?: Partial | undefined; + } + + /** + * The ECMAScript version of the code being linted. + */ + type EcmaVersion = + | 3 + | 5 + | 6 + | 7 + | 8 + | 9 + | 10 + | 11 + | 12 + | 13 + | 14 + | 15 + | 16 + | 2015 + | 2016 + | 2017 + | 2018 + | 2019 + | 2020 + | 2021 + | 2022 + | 2023 + | 2024 + | 2025 + | "latest"; + + /** + * The type of JavaScript source code. + */ + type SourceType = "script" | "module" | "commonjs"; + + /** + * ESLint legacy configuration. + * + * @see [ESLint Legacy Configuration](https://eslint.org/docs/latest/use/configure/) + */ + interface BaseConfig + extends HasRules { + $schema?: string | undefined; + + /** + * An environment provides predefined global variables. + * + * @see [Environments](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-environments) + */ + env?: { [name: string]: boolean } | undefined; + + /** + * Extending configuration files. + * + * @see [Extends](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#extending-configuration-files) + */ + extends?: string | string[] | undefined; + + /** + * Specifying globals. + * + * @see [Globals](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-globals) + */ + globals?: Linter.Globals | undefined; + + /** + * Disable processing of inline comments. + * + * @see [Disabling Inline Comments](https://eslint.org/docs/latest/use/configure/rules-deprecated#disabling-inline-comments) + */ + noInlineConfig?: boolean | undefined; + + /** + * Overrides can be used to use a differing configuration for matching sub-directories and files. + * + * @see [How do overrides work](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#how-do-overrides-work) + */ + overrides?: Array> | undefined; + + /** + * Parser. + * + * @see [Working with Custom Parsers](https://eslint.org/docs/latest/extend/custom-parsers) + * @see [Specifying Parser](https://eslint.org/docs/latest/use/configure/parser-deprecated) + */ + parser?: string | undefined; + + /** + * Parser options. + * + * @see [Working with Custom Parsers](https://eslint.org/docs/latest/extend/custom-parsers) + * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options) + */ + parserOptions?: ParserOptions | undefined; + + /** + * Which third-party plugins define additional rules, environments, configs, etc. for ESLint to use. + * + * @see [Configuring Plugins](https://eslint.org/docs/latest/use/configure/plugins-deprecated#configure-plugins) + */ + plugins?: string[] | undefined; + + /** + * Specifying processor. + * + * @see [processor](https://eslint.org/docs/latest/use/configure/plugins-deprecated#specify-a-processor) + */ + processor?: string | undefined; + + /** + * Report unused eslint-disable comments as warning. + * + * @see [Report unused eslint-disable comments](https://eslint.org/docs/latest/use/configure/rules-deprecated#report-unused-eslint-disable-comments) + */ + reportUnusedDisableDirectives?: boolean | undefined; + + /** + * Settings. + * + * @see [Settings](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#adding-shared-settings) + */ + settings?: { [name: string]: any } | undefined; + } + + /** + * The overwrites that apply more differing configuration to specific files or directories. + */ + interface ConfigOverride extends BaseConfig { + /** + * The glob patterns for excluded files. + */ + excludedFiles?: string | string[] | undefined; + + /** + * The glob patterns for target files. + */ + files: string | string[]; + } + + /** + * ESLint legacy configuration. + * + * @see [ESLint Legacy Configuration](https://eslint.org/docs/latest/use/configure/) + */ + // https://github.com/eslint/eslint/blob/v8.57.0/conf/config-schema.js + interface LegacyConfig + extends BaseConfig { + /** + * Tell ESLint to ignore specific files and directories. + * + * @see [Ignore Patterns](https://eslint.org/docs/latest/use/configure/ignore-deprecated#ignorepatterns-in-config-files) + */ + ignorePatterns?: string | string[] | undefined; + + /** + * @see [Using Configuration Files](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#using-configuration-files) + */ + root?: boolean | undefined; + } + + /** + * Parser options. + * + * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options) + */ + interface ParserOptions { + /** + * Accepts any valid ECMAScript version number or `'latest'`: + * + * - A version: es3, es5, es6, es7, es8, es9, es10, es11, es12, es13, es14, ..., or + * - A year: es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, ..., or + * - `'latest'` + * + * When it's a version or a year, the value must be a number - so do not include the `es` prefix. + * + * Specifies the version of ECMAScript syntax you want to use. This is used by the parser to determine how to perform scope analysis, and it affects the default + * + * @default 5 + */ + ecmaVersion?: EcmaVersion | undefined; + + /** + * The type of JavaScript source code. Possible values are "script" for + * traditional script files, "module" for ECMAScript modules (ESM), and + * "commonjs" for CommonJS files. + * + * @default 'script' + * + * @see https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options + */ + sourceType?: SourceType | undefined; + + /** + * An object indicating which additional language features you'd like to use. + * + * @see https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options + */ + ecmaFeatures?: { + globalReturn?: boolean | undefined; + impliedStrict?: boolean | undefined; + jsx?: boolean | undefined; + experimentalObjectRestSpread?: boolean | undefined; + [key: string]: any; + } | undefined; + [key: string]: any; + } + + interface LintOptions { + filename?: string | undefined; + preprocess?: ((code: string) => string[]) | undefined; + postprocess?: ((problemLists: LintMessage[][]) => LintMessage[]) | undefined; + filterCodeBlock?: boolean | undefined; + disableFixes?: boolean | undefined; + allowInlineConfig?: boolean | undefined; + reportUnusedDisableDirectives?: boolean | undefined; + } + + interface LintSuggestion { + desc: string; + fix: Rule.Fix; + messageId?: string | undefined; + } + + interface LintMessage { + column: number; + line: number; + endColumn?: number | undefined; + endLine?: number | undefined; + ruleId: string | null; + message: string; + messageId?: string | undefined; + /** + * @deprecated `nodeType` is deprecated and will be removed in the next major version. + */ + nodeType?: string | undefined; + fatal?: true | undefined; + severity: Exclude; + fix?: Rule.Fix | undefined; + suggestions?: LintSuggestion[] | undefined; + } + + interface LintSuppression { + kind: string; + justification: string; + } + + interface SuppressedLintMessage extends LintMessage { + suppressions: LintSuppression[]; + } + + interface FixOptions extends LintOptions { + fix?: boolean | undefined; + } + + interface FixReport { + fixed: boolean; + output: string; + messages: LintMessage[]; + } + + // Temporarily loosen type for just flat config files (see #68232) + type NonESTreeParser = + & Omit + & ({ + parse(text: string, options?: any): unknown; + } | { + parseForESLint(text: string, options?: any): Omit & { + ast: unknown; + scopeManager?: unknown; + }; + }); + + type ESTreeParser = + & ESLint.ObjectMetaProperties + & ( + | { parse(text: string, options?: any): AST.Program } + | { parseForESLint(text: string, options?: any): ESLintParseResult } + ); + + type Parser = NonESTreeParser | ESTreeParser; + + interface ESLintParseResult { + ast: AST.Program; + parserServices?: SourceCode.ParserServices | undefined; + scopeManager?: Scope.ScopeManager | undefined; + visitorKeys?: SourceCode.VisitorKeys | undefined; + } + + interface ProcessorFile { + text: string; + filename: string; + } + + // https://eslint.org/docs/latest/extend/plugins#processors-in-plugins + interface Processor extends ESLint.ObjectMetaProperties { + supportsAutofix?: boolean | undefined; + preprocess?(text: string, filename: string): T[]; + postprocess?(messages: LintMessage[][], filename: string): LintMessage[]; + } + + interface Config { + /** + * An string to identify the configuration object. Used in error messages and + * inspection tools. + */ + name?: string; + + /** + * An array of glob patterns indicating the files that the configuration + * object should apply to. If not specified, the configuration object applies + * to all files + */ + files?: Array; + + /** + * An array of glob patterns indicating the files that the configuration + * object should not apply to. If not specified, the configuration object + * applies to all files matched by files + */ + ignores?: string[]; + + /** + * The name of the language used for linting. This is used to determine the + * parser and other language-specific settings. + * @since 9.7.0 + */ + language?: string; + + /** + * An object containing settings related to how JavaScript is configured for + * linting. + */ + languageOptions?: LanguageOptions; + + /** + * An object containing settings related to the linting process + */ + linterOptions?: LinterOptions; + + /** + * Either an object containing preprocess() and postprocess() methods or a + * string indicating the name of a processor inside of a plugin + * (i.e., "pluginName/processorName"). + */ + processor?: string | Processor; + + /** + * An object containing a name-value mapping of plugin names to plugin objects. + * When files is specified, these plugins are only available to the matching files. + */ + plugins?: Record; + + /** + * An object containing the configured rules. When files or ignores are specified, + * these rule configurations are only available to the matching files. + */ + rules?: Partial; + + /** + * An object containing name-value pairs of information that should be + * available to all rules. + */ + settings?: Record; + } + + /** @deprecated Use `Config` instead of `FlatConfig` */ + type FlatConfig = Config; + + type GlobalConf = boolean | "off" | "readable" | "readonly" | "writable" | "writeable"; + + interface Globals { + [name: string]: GlobalConf; + } + + interface LanguageOptions { + /** + * The version of ECMAScript to support. May be any year (i.e., 2022) or + * version (i.e., 5). Set to "latest" for the most recent supported version. + * @default "latest" + */ + ecmaVersion?: EcmaVersion | undefined; + + /** + * The type of JavaScript source code. Possible values are "script" for + * traditional script files, "module" for ECMAScript modules (ESM), and + * "commonjs" for CommonJS files. (default: "module" for .js and .mjs + * files; "commonjs" for .cjs files) + */ + sourceType?: SourceType | undefined; + + /** + * An object specifying additional objects that should be added to the + * global scope during linting. + */ + globals?: Globals | undefined; + + /** + * An object containing a parse() or parseForESLint() method. + * If not configured, the default ESLint parser (Espree) will be used. + */ + parser?: Parser | undefined; + + /** + * An object specifying additional options that are passed directly to the + * parser() method on the parser. The available options are parser-dependent + */ + parserOptions?: Linter.ParserOptions | undefined; + } + + interface LinterOptions { + /** + * A boolean value indicating if inline configuration is allowed. + */ + noInlineConfig?: boolean; + + /** + * A severity value indicating if and how unused disable directives should be + * tracked and reported. + */ + reportUnusedDisableDirectives?: Severity | StringSeverity | boolean; + } + + interface Stats { + /** + * The number of times ESLint has applied at least one fix after linting. + */ + fixPasses: number; + + /** + * The times spent on (parsing, fixing, linting) a file, where the linting refers to the timing information for each rule. + */ + times: { passes: TimePass[] }; + } + + interface TimePass { + parse: { total: number }; + rules?: Record; + fix: { total: number }; + total: number; + } +} + +// #endregion + +// #region ESLint + +export class ESLint { + static configType: "flat"; + + static readonly version: string; + + /** + * The default configuration that ESLint uses internally. This is provided for tooling that wants to calculate configurations using the same defaults as ESLint. + * Keep in mind that the default configuration may change from version to version, so you shouldn't rely on any particular keys or values to be present. + */ + static readonly defaultConfig: Linter.Config[]; + + static outputFixes(results: ESLint.LintResult[]): Promise; + + static getErrorResults(results: ESLint.LintResult[]): ESLint.LintResult[]; + + constructor(options?: ESLint.Options); + + lintFiles(patterns: string | string[]): Promise; + + lintText( + code: string, + options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }, + ): Promise; + + getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData["rulesMeta"]; + + hasFlag(flag: string): boolean; + + calculateConfigForFile(filePath: string): Promise; + + findConfigFile(): Promise; + + isPathIgnored(filePath: string): Promise; + + loadFormatter(nameOrPath?: string): Promise; +} + +export namespace ESLint { + type ConfigData = Omit< + Linter.LegacyConfig, + "$schema" + >; + + interface Environment { + globals?: Linter.Globals | undefined; + parserOptions?: Linter.ParserOptions | undefined; + } + + interface ObjectMetaProperties { + /** @deprecated Use `meta.name` instead. */ + name?: string | undefined; + + /** @deprecated Use `meta.version` instead. */ + version?: string | undefined; + + meta?: { + name?: string | undefined; + version?: string | undefined; + }; + } + + interface Plugin extends ObjectMetaProperties { + configs?: Record | undefined; + environments?: Record | undefined; + languages?: Record | undefined; + processors?: Record | undefined; + rules?: Record | undefined; + } + + type FixType = "directive" | "problem" | "suggestion" | "layout"; + + type CacheStrategy = "content" | "metadata"; + + interface Options { + // File enumeration + cwd?: string | undefined; + errorOnUnmatchedPattern?: boolean | undefined; + globInputPaths?: boolean | undefined; + ignore?: boolean | undefined; + ignorePatterns?: string[] | null | undefined; + passOnNoPatterns?: boolean | undefined; + warnIgnored?: boolean | undefined; + + // Linting + allowInlineConfig?: boolean | undefined; + baseConfig?: Linter.Config | Linter.Config[] | null | undefined; + overrideConfig?: Linter.Config | Linter.Config[] | null | undefined; + overrideConfigFile?: string | boolean | undefined; + plugins?: Record | null | undefined; + ruleFilter?: ((arg: { ruleId: string; severity: Exclude }) => boolean) | undefined; + stats?: boolean | undefined; + + // Autofix + fix?: boolean | ((message: Linter.LintMessage) => boolean) | undefined; + fixTypes?: FixType[] | undefined; + + // Cache-related + cache?: boolean | undefined; + cacheLocation?: string | undefined; + cacheStrategy?: CacheStrategy | undefined; + + // Other Options + flags?: string[] | undefined; + } + + interface LegacyOptions { + // File enumeration + cwd?: string | undefined; + errorOnUnmatchedPattern?: boolean | undefined; + extensions?: string[] | undefined; + globInputPaths?: boolean | undefined; + ignore?: boolean | undefined; + ignorePath?: string | undefined; + + // Linting + allowInlineConfig?: boolean | undefined; + baseConfig?: Linter.LegacyConfig | undefined; + overrideConfig?: Linter.LegacyConfig | undefined; + overrideConfigFile?: string | undefined; + plugins?: Record | undefined; + reportUnusedDisableDirectives?: Linter.StringSeverity | undefined; + resolvePluginsRelativeTo?: string | undefined; + rulePaths?: string[] | undefined; + useEslintrc?: boolean | undefined; + + // Autofix + fix?: boolean | ((message: Linter.LintMessage) => boolean) | undefined; + fixTypes?: FixType[] | undefined; + + // Cache-related + cache?: boolean | undefined; + cacheLocation?: string | undefined; + cacheStrategy?: CacheStrategy | undefined; + + // Other Options + flags?: string[] | undefined; + } + + interface LintResult { + filePath: string; + messages: Linter.LintMessage[]; + suppressedMessages: Linter.SuppressedLintMessage[]; + errorCount: number; + fatalErrorCount: number; + warningCount: number; + fixableErrorCount: number; + fixableWarningCount: number; + output?: string | undefined; + source?: string | undefined; + stats?: Linter.Stats | undefined; + usedDeprecatedRules: DeprecatedRuleUse[]; + } + + interface MaxWarningsExceeded { + + /** + * Number of warnings to trigger nonzero exit code. + */ + maxWarnings: number; + + /** + * Number of warnings found while linting. + */ + foundWarnings: number; + } + + interface LintResultData { + cwd: string; + maxWarningsExceeded?: MaxWarningsExceeded | undefined; + rulesMeta: { + [ruleId: string]: Rule.RuleMetaData; + }; + } + + interface DeprecatedRuleUse { + ruleId: string; + replacedBy: string[]; + } + + interface ResultsMeta { + maxWarningsExceeded?: MaxWarningsExceeded | undefined; + } + + /** The type of an object resolved by {@link ESLint.loadFormatter}. */ + interface LoadedFormatter { + + /** + * Used to call the underlying formatter. + * @param results An array of lint results to format. + * @param resultsMeta An object with an optional `maxWarningsExceeded` property that will be + * passed to the underlying formatter function along with other properties set by ESLint. + * This argument can be omitted if `maxWarningsExceeded` is not needed. + * @return The formatter output. + */ + format(results: LintResult[], resultsMeta?: ResultsMeta): string | Promise; + } + + // The documented type name is `LoadedFormatter`, but `Formatter` has been historically more used. + type Formatter = LoadedFormatter; + + /** + * The expected signature of a custom formatter. + * @param results An array of lint results to format. + * @param context Additional information for the formatter. + * @return The formatter output. + */ + type FormatterFunction = + (results: LintResult[], context: LintResultData) => string | Promise; + + // Docs reference the types by those name + type EditInfo = Rule.Fix; +} + +// #endregion + +export function loadESLint(options: { useFlatConfig: true }): Promise; +export function loadESLint(options: { useFlatConfig: false }): Promise; +export function loadESLint( + options?: { useFlatConfig?: boolean | undefined }, +): Promise; + +// #region RuleTester + +export class RuleTester { + static describe: ((...args: any) => any) | null; + static it: ((...args: any) => any) | null; + static itOnly: ((...args: any) => any) | null; + + constructor(config?: Linter.Config); + + run( + name: string, + rule: Rule.RuleModule, + tests: { + valid: Array; + invalid: RuleTester.InvalidTestCase[]; + }, + ): void; + + static only( + item: string | RuleTester.ValidTestCase | RuleTester.InvalidTestCase, + ): RuleTester.ValidTestCase | RuleTester.InvalidTestCase; +} + +export namespace RuleTester { + interface ValidTestCase { + name?: string; + code: string; + options?: any; + filename?: string | undefined; + only?: boolean; + languageOptions?: Linter.LanguageOptions | undefined; + settings?: { [name: string]: any } | undefined; + } + + interface SuggestionOutput { + messageId?: string; + desc?: string; + data?: Record | undefined; + output: string; + } + + interface InvalidTestCase extends ValidTestCase { + errors: number | Array; + output?: string | null | undefined; + } + + interface TestCaseError { + message?: string | RegExp; + messageId?: string; + /** + * @deprecated `type` is deprecated and will be removed in the next major version. + */ + type?: string | undefined; + data?: any; + line?: number | undefined; + column?: number | undefined; + endLine?: number | undefined; + endColumn?: number | undefined; + suggestions?: SuggestionOutput[] | undefined; + } +} + +// #endregion diff --git a/node_modules/eslint/lib/types/rules/best-practices.d.ts b/node_modules/eslint/lib/types/rules/best-practices.d.ts new file mode 100644 index 00000000..eefce77d --- /dev/null +++ b/node_modules/eslint/lib/types/rules/best-practices.d.ts @@ -0,0 +1,1129 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface BestPractices extends Linter.RulesRecord { + /** + * Rule to enforce getter and setter pairs in objects. + * + * @since 0.22.0 + * @see https://eslint.org/docs/rules/accessor-pairs + */ + "accessor-pairs": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + setWithoutGet: boolean; + /** + * @default false + */ + getWithoutSet: boolean; + /** + * @default true + */ + enforceForClassMembers: boolean; + }>, + ] + >; + + /** + * Rule to enforce `return` statements in callbacks of array methods. + * + * @since 2.0.0-alpha-1 + * @see https://eslint.org/docs/rules/array-callback-return + */ + "array-callback-return": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowImplicit: boolean; + /** + * @default false + */ + checkForEach: boolean; + /** + * @default false + */ + allowVoid: boolean; + }>, + ] + >; + + /** + * Rule to enforce the use of variables within the scope they are defined. + * + * @since 0.1.0 + * @see https://eslint.org/docs/rules/block-scoped-var + */ + "block-scoped-var": Linter.RuleEntry<[]>; + + /** + * Rule to enforce that class methods utilize `this`. + * + * @since 3.4.0 + * @see https://eslint.org/docs/rules/class-methods-use-this + */ + "class-methods-use-this": Linter.RuleEntry< + [ + Partial<{ + exceptMethods: string[]; + }>, + ] + >; + + /** + * Rule to enforce a maximum cyclomatic complexity allowed in a program. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/complexity + */ + complexity: Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 20 + */ + max: number; + /** + * @deprecated + * @default 20 + */ + maximum: number; + /** + * @default "classic" + * @since 9.12.0 + */ + variant: "classic" | "modified"; + }> + | number, + ] + >; + + /** + * Rule to require `return` statements to either always or never specify values. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/consistent-return + */ + "consistent-return": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + treatUndefinedAsUnspecified: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent brace style for all control statements. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/curly + */ + curly: Linter.RuleEntry<["all" | "multi" | "multi-line" | "multi-or-nest" | "consistent"]>; + + /** + * Rule to require `default` cases in `switch` statements. + * + * @since 0.6.0 + * @see https://eslint.org/docs/rules/default-case + */ + "default-case": Linter.RuleEntry< + [ + Partial<{ + /** + * @default '^no default$' + */ + commentPattern: string; + }>, + ] + >; + + /** + * Rule to enforce default clauses in switch statements to be last + * + * @since 7.0.0 + * @see https://eslint.org/docs/latest/rules/default-case-last + */ + "default-case-last": Linter.RuleEntry<[]>; + + /** + * Enforce default parameters to be last + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/default-param-last + */ + "default-param-last": Linter.RuleEntry<[]>; + + /** + * Rule to enforce consistent newlines before and after dots. + * + * @since 0.21.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/dot-location) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/dot-location + */ + "dot-location": Linter.RuleEntry<["object" | "property"]>; + + /** + * Rule to enforce dot notation whenever possible. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/dot-notation + */ + "dot-notation": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + allowKeywords: boolean; + allowPattern: string; + }>, + ] + >; + + /** + * Rule to require the use of `===` and `!==`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/eqeqeq + */ + eqeqeq: + | Linter.RuleEntry< + [ + "always", + Partial<{ + /** + * @default 'always' + */ + null: "always" | "never" | "ignore"; + }>, + ] + > + | Linter.RuleEntry<["smart" | "allow-null"]>; + + /** + * Require grouped accessor pairs in object literals and classes. + * + * @since 6.7.0 + * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs + */ + "grouped-accessor-pairs": Linter.RuleEntry<["anyOrder" | "getBeforeSet" | "setBeforeGet"]>; + + /** + * Rule to require `for-in` loops to include an `if` statement. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/guard-for-in + */ + "guard-for-in": Linter.RuleEntry<[]>; + + /** + * Rule to enforce a maximum number of classes per file. + * + * @since 5.0.0-alpha.3 + * @see https://eslint.org/docs/rules/max-classes-per-file + */ + "max-classes-per-file": Linter.RuleEntry<[number]>; + + /** + * Rule to disallow the use of `alert`, `confirm`, and `prompt`. + * + * @since 0.0.5 + * @see https://eslint.org/docs/rules/no-alert + */ + "no-alert": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `arguments.caller` or `arguments.callee`. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/no-caller + */ + "no-caller": Linter.RuleEntry<[]>; + + /** + * Rule to disallow lexical declarations in case clauses. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.9.0 + * @see https://eslint.org/docs/rules/no-case-declarations + */ + "no-case-declarations": Linter.RuleEntry<[]>; + + /** + * Rule to disallow division operators explicitly at the beginning of regular expressions. + * + * @since 0.1.0 + * @see https://eslint.org/docs/rules/no-div-regex + */ + "no-div-regex": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `else` blocks after `return` statements in `if` statements. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-else-return + */ + "no-else-return": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + allowElseIf: boolean; + }>, + ] + >; + + /** + * Rule to disallow empty functions. + * + * @since 2.0.0 + * @see https://eslint.org/docs/rules/no-empty-function + */ + "no-empty-function": Linter.RuleEntry< + [ + Partial<{ + /** + * @default [] + */ + allow: Array< + | "functions" + | "arrowFunctions" + | "generatorFunctions" + | "methods" + | "generatorMethods" + | "getters" + | "setters" + | "constructors" + | "asyncFunctions" + | "asyncMethods" + >; + }>, + ] + >; + + /** + * Rule to disallow empty destructuring patterns. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.7.0 + * @see https://eslint.org/docs/rules/no-empty-pattern + */ + "no-empty-pattern": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `null` comparisons without type-checking operators. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-eq-null + */ + "no-eq-null": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `eval()`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-eval + */ + "no-eval": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowIndirect: boolean; + }>, + ] + >; + + /** + * Rule to disallow extending native types. + * + * @since 0.1.4 + * @see https://eslint.org/docs/rules/no-extend-native + */ + "no-extend-native": Linter.RuleEntry< + [ + Partial<{ + exceptions: string[]; + }>, + ] + >; + + /** + * Rule to disallow unnecessary calls to `.bind()`. + * + * @since 0.8.0 + * @see https://eslint.org/docs/rules/no-extra-bind + */ + "no-extra-bind": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary labels. + * + * @since 2.0.0-rc.0 + * @see https://eslint.org/docs/rules/no-extra-label + */ + "no-extra-label": Linter.RuleEntry<[]>; + + /** + * Rule to disallow fallthrough of `case` statements. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/no-fallthrough + */ + "no-fallthrough": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 'falls?\s?through' + */ + commentPattern: string; + /** + * @default false + */ + allowEmptyCase: boolean; + /** + * @default false + */ + reportUnusedFallthroughComment: boolean; + }>, + ] + >; + + /** + * Rule to disallow leading or trailing decimal points in numeric literals. + * + * @since 0.0.6 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-floating-decimal) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-floating-decimal + */ + "no-floating-decimal": Linter.RuleEntry<[]>; + + /** + * Rule to disallow assignments to native objects or read-only global variables. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 3.3.0 + * @see https://eslint.org/docs/rules/no-global-assign + */ + "no-global-assign": Linter.RuleEntry< + [ + Partial<{ + exceptions: string[]; + }>, + ] + >; + + /** + * Rule to disallow shorthand type conversions. + * + * @since 1.0.0-rc-2 + * @see https://eslint.org/docs/rules/no-implicit-coercion + */ + "no-implicit-coercion": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + boolean: boolean; + /** + * @default true + */ + number: boolean; + /** + * @default true + */ + string: boolean; + /** + * @default false + */ + disallowTemplateShorthand: boolean; + /** + * @default [] + */ + allow: Array<"~" | "!!" | "+" | "- -" | "-" | "*">; + }>, + ] + >; + + /** + * Rule to disallow variable and `function` declarations in the global scope. + * + * @since 2.0.0-alpha-1 + * @see https://eslint.org/docs/rules/no-implicit-globals + */ + "no-implicit-globals": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `eval()`-like methods. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/no-implied-eval + */ + "no-implied-eval": Linter.RuleEntry<[]>; + + /** + * Disallow assigning to imported bindings. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/no-import-assign + */ + "no-import-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `this` keywords outside of classes or class-like objects. + * + * @since 1.0.0-rc-2 + * @see https://eslint.org/docs/rules/no-invalid-this + */ + "no-invalid-this": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + capIsConstructor: boolean; + }>, + ] + >; + + /** + * Rule to disallow the use of the `__iterator__` property. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-iterator + */ + "no-iterator": Linter.RuleEntry<[]>; + + /** + * Rule to disallow labeled statements. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-labels + */ + "no-labels": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowLoop: boolean; + /** + * @default false + */ + allowSwitch: boolean; + }>, + ] + >; + + /** + * Rule to disallow unnecessary nested blocks. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-lone-blocks + */ + "no-lone-blocks": Linter.RuleEntry<[]>; + + /** + * Rule to disallow function declarations that contain unsafe references inside loop statements. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-loop-func + */ + "no-loop-func": Linter.RuleEntry<[]>; + + /** + * Rule to disallow magic numbers. + * + * @since 1.7.0 + * @see https://eslint.org/docs/rules/no-magic-numbers + */ + "no-magic-numbers": Linter.RuleEntry< + [ + Partial<{ + /** + * @default [] + */ + ignore: number[]; + /** + * @default false + */ + ignoreArrayIndexes: boolean; + /** + * @default false + */ + enforceConst: boolean; + /** + * @default false + */ + detectObjects: boolean; + }>, + ] + >; + + /** + * Rule to disallow multiple spaces. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multi-spaces) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-multi-spaces + */ + "no-multi-spaces": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + ignoreEOLComments: boolean; + /** + * @default { Property: true } + */ + exceptions: Record; + }>, + ] + >; + + /** + * Rule to disallow multiline strings. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-multi-str + */ + "no-multi-str": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `new` operators outside of assignments or comparisons. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/no-new + */ + "no-new": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `new` operators with the `Function` object. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/no-new-func + */ + "no-new-func": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `new` operators with the `String`, `Number`, and `Boolean` objects. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/no-new-wrappers + */ + "no-new-wrappers": Linter.RuleEntry<[]>; + + /** + * Disallow `\\8` and `\\9` escape sequences in string literals. + * + * @since 7.14.0 + * @see https://eslint.org/docs/rules/no-nonoctal-decimal-escape + */ + "no-nonoctal-decimal-escape": Linter.RuleEntry<[]>; + + /** + * Rule to disallow octal literals. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/no-octal + */ + "no-octal": Linter.RuleEntry<[]>; + + /** + * Rule to disallow octal escape sequences in string literals. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-octal-escape + */ + "no-octal-escape": Linter.RuleEntry<[]>; + + /** + * Rule to disallow reassigning `function` parameters. + * + * @since 0.18.0 + * @see https://eslint.org/docs/rules/no-param-reassign + */ + "no-param-reassign": Linter.RuleEntry< + [ + | { + props?: false; + } + | ({ + props: true; + } & Partial<{ + /** + * @default [] + */ + ignorePropertyModificationsFor: string[]; + /** + * @since 6.6.0 + * @default [] + */ + ignorePropertyModificationsForRegex: string[]; + }>), + ] + >; + + /** + * Rule to disallow the use of the `__proto__` property. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-proto + */ + "no-proto": Linter.RuleEntry<[]>; + + /** + * Rule to disallow variable redeclaration. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-redeclare + */ + "no-redeclare": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + builtinGlobals: boolean; + }>, + ] + >; + + /** + * Rule to disallow certain properties on certain objects. + * + * @since 3.5.0 + * @see https://eslint.org/docs/rules/no-restricted-properties + */ + "no-restricted-properties": Linter.RuleEntry< + [ + ...Array< + | { + object: string; + property?: string | undefined; + message?: string | undefined; + } + | { + property: string; + message?: string | undefined; + } + >, + ] + >; + + /** + * Rule to disallow assignment operators in `return` statements. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-return-assign + */ + "no-return-assign": Linter.RuleEntry<["except-parens" | "always"]>; + + /** + * Rule to disallow unnecessary `return await`. + * + * @since 3.10.0 + * @see https://eslint.org/docs/rules/no-return-await + */ + "no-return-await": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `javascript:` urls. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-script-url + */ + "no-script-url": Linter.RuleEntry<[]>; + + /** + * Rule to disallow assignments where both sides are exactly the same. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 2.0.0-rc.0 + * @see https://eslint.org/docs/rules/no-self-assign + */ + "no-self-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow comparisons where both sides are exactly the same. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-self-compare + */ + "no-self-compare": Linter.RuleEntry<[]>; + + /** + * Rule to disallow comma operators. + * + * @since 0.5.1 + * @see https://eslint.org/docs/rules/no-sequences + */ + "no-sequences": Linter.RuleEntry< + [ + Partial<{ + /** + * @since 7.23.0 + * @default true + */ + allowInParentheses: boolean; + }>, + ] + >; + + /** + * Rule to disallow throwing literals as exceptions. + * + * @since 0.15.0 + * @see https://eslint.org/docs/rules/no-throw-literal + */ + "no-throw-literal": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unmodified loop conditions. + * + * @since 2.0.0-alpha-2 + * @see https://eslint.org/docs/rules/no-unmodified-loop-condition + */ + "no-unmodified-loop-condition": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unused expressions. + * + * @since 0.1.0 + * @see https://eslint.org/docs/rules/no-unused-expressions + */ + "no-unused-expressions": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowShortCircuit: boolean; + /** + * @default false + */ + allowTernary: boolean; + /** + * @default false + */ + allowTaggedTemplates: boolean; + /** + * @since 7.20.0 + * @default false + */ + enforceForJSX: boolean; + }>, + ] + >; + + /** + * Rule to disallow unused labels. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 2.0.0-rc.0 + * @see https://eslint.org/docs/rules/no-unused-labels + */ + "no-unused-labels": Linter.RuleEntry<[]>; + + /** + * Disallow variable assignments when the value is not used + * + * + * @since 9.0.0-alpha.1 + * @see https://eslint.org/docs/latest/rules/no-useless-assignment + */ + "no-useless-assignment": Linter.RuleEntry<[]>; + + /** + * Disallow useless backreferences in regular expressions + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.0.0-alpha.0 + * @see https://eslint.org/docs/latest/rules/no-useless-backreference + */ + "no-useless-backreference": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary calls to `.call()` and `.apply()`. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/no-useless-call + */ + "no-useless-call": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary `catch` clauses. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 5.11.0 + * @see https://eslint.org/docs/rules/no-useless-catch + */ + "no-useless-catch": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary concatenation of literals or template literals. + * + * @since 1.3.0 + * @see https://eslint.org/docs/rules/no-useless-concat + */ + "no-useless-concat": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary escape characters. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 2.5.0 + * @see https://eslint.org/docs/rules/no-useless-escape + */ + "no-useless-escape": Linter.RuleEntry<[]>; + + /** + * Rule to disallow redundant return statements. + * + * @since 3.9.0 + * @see https://eslint.org/docs/rules/no-useless-return + */ + "no-useless-return": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `void` operators. + * + * @since 0.8.0 + * @see https://eslint.org/docs/rules/no-void + */ + "no-void": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowAsStatement: boolean; + }>, + ] + >; + + /** + * Rule to disallow specified warning terms in comments. + * + * @since 0.4.4 + * @see https://eslint.org/docs/rules/no-warning-comments + */ + "no-warning-comments": Linter.RuleEntry< + [ + { + /** + * @default ["todo", "fixme", "xxx"] + */ + terms: string[]; + /** + * @default 'start' + */ + location: "start" | "anywhere"; + }, + ] + >; + + /** + * Rule to disallow `with` statements. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-with + */ + "no-with": Linter.RuleEntry<[]>; + + /** + * Rule to enforce using named capture group in regular expression. + * + * @since 5.15.0 + * @see https://eslint.org/docs/rules/prefer-named-capture-group + */ + "prefer-named-capture-group": Linter.RuleEntry<[]>; + + /** + * Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`. + * + * @since 8.5.0 + * @see https://eslint.org/docs/rules/prefer-object-has-own + */ + "prefer-object-has-own": Linter.RuleEntry<[]>; + + /** + * Rule to require using Error objects as Promise rejection reasons. + * + * @since 3.14.0 + * @see https://eslint.org/docs/rules/prefer-promise-reject-errors + */ + "prefer-promise-reject-errors": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowEmptyReject: boolean; + }>, + ] + >; + + /** + * Disallow use of the `RegExp` constructor in favor of regular expression literals. + * + * @since 6.4.0 + * @see https://eslint.org/docs/latest/rules/prefer-regex-literals + */ + "prefer-regex-literals": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + disallowRedundantWrapping: boolean; + }>, + ] + >; + + /** + * Rule to enforce the consistent use of the radix argument when using `parseInt()`. + * + * @since 0.0.7 + * @see https://eslint.org/docs/rules/radix + */ + radix: Linter.RuleEntry<["always" | "as-needed"]>; + + /** + * Rule to disallow async functions which have no `await` expression. + * + * @since 3.11.0 + * @see https://eslint.org/docs/rules/require-await + */ + "require-await": Linter.RuleEntry<[]>; + + /** + * Enforce the use of `u` or `v` flag on RegExp + * + * @since 5.3.0 + * @see https://eslint.org/docs/rules/require-unicode-regexp + */ + "require-unicode-regexp": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + requireFlag: "u" | "v"; + }>, + ] + >; + + /** + * Rule to require `var` declarations be placed at the top of their containing scope. + * + * @since 0.8.0 + * @see https://eslint.org/docs/rules/vars-on-top + */ + "vars-on-top": Linter.RuleEntry<[]>; + + /** + * Rule to require parentheses around immediate `function` invocations. + * + * @since 0.0.9 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-iife) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/wrap-iife + */ + "wrap-iife": Linter.RuleEntry< + [ + "outside" | "inside" | "any", + Partial<{ + /** + * @default false + */ + functionPrototypeMethods: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow “Yoda” conditions. + * + * @since 0.7.1 + * @see https://eslint.org/docs/rules/yoda + */ + yoda: + | Linter.RuleEntry< + [ + "never", + Partial<{ + exceptRange: boolean; + onlyEquality: boolean; + }>, + ] + > + | Linter.RuleEntry<["always"]>; +} diff --git a/node_modules/eslint/lib/types/rules/deprecated.d.ts b/node_modules/eslint/lib/types/rules/deprecated.d.ts new file mode 100644 index 00000000..337a63b4 --- /dev/null +++ b/node_modules/eslint/lib/types/rules/deprecated.d.ts @@ -0,0 +1,235 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface Deprecated extends Linter.RulesRecord { + /** + * Rule to enforce consistent indentation. + * + * @since 4.0.0-alpha.0 + * @deprecated since 4.0.0, use [`indent`](https://eslint.org/docs/rules/indent) instead. + * @see https://eslint.org/docs/rules/indent-legacy + */ + "indent-legacy": Linter.RuleEntry< + [ + number | "tab", + Partial<{ + /** + * @default 0 + */ + SwitchCase: number; + /** + * @default 1 + */ + VariableDeclarator: + | Partial<{ + /** + * @default 1 + */ + var: number | "first"; + /** + * @default 1 + */ + let: number | "first"; + /** + * @default 1 + */ + const: number | "first"; + }> + | number + | "first"; + /** + * @default 1 + */ + outerIIFEBody: number; + /** + * @default 1 + */ + MemberExpression: number | "off"; + /** + * @default { parameters: 1, body: 1 } + */ + FunctionDeclaration: Partial<{ + /** + * @default 1 + */ + parameters: number | "first" | "off"; + /** + * @default 1 + */ + body: number; + }>; + /** + * @default { parameters: 1, body: 1 } + */ + FunctionExpression: Partial<{ + /** + * @default 1 + */ + parameters: number | "first" | "off"; + /** + * @default 1 + */ + body: number; + }>; + /** + * @default { arguments: 1 } + */ + CallExpression: Partial<{ + /** + * @default 1 + */ + arguments: number | "first" | "off"; + }>; + /** + * @default 1 + */ + ArrayExpression: number | "first" | "off"; + /** + * @default 1 + */ + ObjectExpression: number | "first" | "off"; + /** + * @default 1 + */ + ImportDeclaration: number | "first" | "off"; + /** + * @default false + */ + flatTernaryExpressions: boolean; + ignoredNodes: string[]; + /** + * @default false + */ + ignoreComments: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow newlines around directives. + * + * @since 3.5.0 + * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. + * @see https://eslint.org/docs/rules/lines-around-directive + */ + "lines-around-directive": Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to require or disallow an empty line after variable declarations. + * + * @since 0.18.0 + * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. + * @see https://eslint.org/docs/rules/newline-after-var + */ + "newline-after-var": Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to require an empty line before `return` statements. + * + * @since 2.3.0 + * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. + * @see https://eslint.org/docs/rules/newline-before-return + */ + "newline-before-return": Linter.RuleEntry<[]>; + + /** + * Rule to disallow shadowing of variables inside of `catch`. + * + * @since 0.0.9 + * @deprecated since 5.1.0, use [`no-shadow`](https://eslint.org/docs/rules/no-shadow) instead. + * @see https://eslint.org/docs/rules/no-catch-shadow + */ + "no-catch-shadow": Linter.RuleEntry<[]>; + + /** + * Rule to disallow reassignment of native objects. + * + * @since 0.0.9 + * @deprecated since 3.3.0, use [`no-global-assign`](https://eslint.org/docs/rules/no-global-assign) instead. + * @see https://eslint.org/docs/rules/no-native-reassign + */ + "no-native-reassign": Linter.RuleEntry< + [ + Partial<{ + exceptions: string[]; + }>, + ] + >; + + /** + * Rule to disallow negating the left operand in `in` expressions. + * + * @since 0.1.2 + * @deprecated since 3.3.0, use [`no-unsafe-negation`](https://eslint.org/docs/rules/no-unsafe-negation) instead. + * @see https://eslint.org/docs/rules/no-negated-in-lhs + */ + "no-negated-in-lhs": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `Object` constructors. + * + * @since 0.0.9 + * @deprecated since 8.50.0, use [`no-object-constructor`](https://eslint.org/docs/rules/no-object-constructor) instead. + * @see https://eslint.org/docs/rules/no-object-constructor + */ + "no-new-object": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `new` operators with the `Symbol` object. + * + * @since 2.0.0-beta.1 + * @deprecated since 8.27.0, use [`no-new-native-nonconstructor`](https://eslint.org/docs/rules/no-new-native-nonconstructor) instead. + * @see https://eslint.org/docs/rules/no-new-symbol + */ + "no-new-symbol": Linter.RuleEntry<[]>; + + /** + * Rule to disallow spacing between function identifiers and their applications. + * + * @since 0.1.2 + * @deprecated since 3.3.0, use [`func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) instead. + * @see https://eslint.org/docs/rules/no-spaced-func + */ + "no-spaced-func": Linter.RuleEntry<[]>; + + /** + * Rule to suggest using `Reflect` methods where applicable. + * + * @since 1.0.0-rc-2 + * @deprecated since 3.9.0 + * @see https://eslint.org/docs/rules/prefer-reflect + */ + "prefer-reflect": Linter.RuleEntry< + [ + Partial<{ + exceptions: string[]; + }>, + ] + >; +} diff --git a/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts b/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts new file mode 100644 index 00000000..972a221e --- /dev/null +++ b/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts @@ -0,0 +1,647 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface NoRestrictedImportPathCommonOptions { + name: string; + message?: string; +} + +export type EitherImportNamesOrAllowImportName = + | { importNames?: string[]; allowImportNames?: never } + | { allowImportNames?: string[]; importNames?: never } + +export type ValidNoRestrictedImportPathOptions = NoRestrictedImportPathCommonOptions & EitherImportNamesOrAllowImportName; + +export interface NoRestrictedImportPatternCommonOptions { + message?: string; + caseSensitive?: boolean; +} + +// Base type for group or regex constraint, ensuring mutual exclusivity +export type EitherGroupOrRegEx = + | { group: string[]; regex?: never } + | { regex: string; group?: never }; + +// Base type for import name specifiers, ensuring mutual exclusivity +export type EitherNameSpecifiers = + | { importNames: string[]; allowImportNames?: never; importNamePattern?: never; allowImportNamePattern?: never } + | { importNamePattern: string; allowImportNames?: never; importNames?: never; allowImportNamePattern?: never } + | { allowImportNames: string[]; importNames?: never; importNamePattern?: never; allowImportNamePattern?: never } + | { allowImportNamePattern: string; importNames?: never; allowImportNames?: never; importNamePattern?: never } + +// Adds oneOf and not constraints, ensuring group or regex are present and mutually exclusive sets for importNames, allowImportNames, etc., as per the schema. +export type ValidNoRestrictedImportPatternOptions = NoRestrictedImportPatternCommonOptions & EitherGroupOrRegEx & EitherNameSpecifiers; + +export interface ECMAScript6 extends Linter.RulesRecord { + /** + * Rule to require braces around arrow function bodies. + * + * @since 1.8.0 + * @see https://eslint.org/docs/rules/arrow-body-style + */ + "arrow-body-style": + | Linter.RuleEntry< + [ + "as-needed", + Partial<{ + /** + * @default false + */ + requireReturnForObjectLiteral: boolean; + }>, + ] + > + | Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to require parentheses around arrow function arguments. + * + * @since 1.0.0-rc-1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-parens) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/arrow-parens + */ + "arrow-parens": + | Linter.RuleEntry<["always"]> + | Linter.RuleEntry< + [ + "as-needed", + Partial<{ + /** + * @default false + */ + requireForBlockBody: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing before and after the arrow in arrow functions. + * + * @since 1.0.0-rc-1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/arrow-spacing + */ + "arrow-spacing": Linter.RuleEntry<[]>; + + /** + * Rule to require `super()` calls in constructors. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.24.0 + * @see https://eslint.org/docs/rules/constructor-super + */ + "constructor-super": Linter.RuleEntry<[]>; + + /** + * Rule to enforce consistent spacing around `*` operators in generator functions. + * + * @since 0.17.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/generator-star-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/generator-star-spacing + */ + "generator-star-spacing": Linter.RuleEntry< + [ + | Partial<{ + before: boolean; + after: boolean; + named: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + anonymous: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + method: + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither"; + }> + | "before" + | "after" + | "both" + | "neither", + ] + >; + + /** + * Require or disallow logical assignment operator shorthand. + * + * @since 8.24.0 + * @see https://eslint.org/docs/rules/logical-assignment-operators + */ + "logical-assignment-operators": + | Linter.RuleEntry< + [ + "always", + Partial<{ + /** + * @default false + */ + enforceForIfStatements: boolean; + }>, + ] + > + | Linter.RuleEntry<["never"]>; + + /** + * Rule to disallow reassigning class members. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/no-class-assign + */ + "no-class-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow arrow functions where they could be confused with comparisons. + * + * @since 2.0.0-alpha-2 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-confusing-arrow) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-confusing-arrow + */ + "no-confusing-arrow": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + allowParens: boolean; + }>, + ] + >; + + /** + * Rule to disallow reassigning `const` variables. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/no-const-assign + */ + "no-const-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow duplicate class members. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.2.0 + * @see https://eslint.org/docs/rules/no-dupe-class-members + */ + "no-dupe-class-members": Linter.RuleEntry<[]>; + + /** + * Rule to disallow duplicate module imports. + * + * @since 2.5.0 + * @see https://eslint.org/docs/rules/no-duplicate-imports + */ + "no-duplicate-imports": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + includeExports: boolean; + }>, + ] + >; + + /** + * Rule to disallow `new` operator with global non-constructor functions + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 8.27.0 + * @see https://eslint.org/docs/rules/no-new-native-nonconstructor + */ + "no-new-native-nonconstructor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow specified names in exports. + * + * @since 7.0.0-alpha.0 + * @see https://eslint.org/docs/rules/no-restricted-exports + */ + "no-restricted-exports": Linter.RuleEntry< + [ + Partial<{ + /** + * @default [] + */ + restrictedNamedExports: string[]; + /** + * @since 9.3.0 + */ + restrictedNamedExportsPattern: string; + /** + * @since 8.33.0 + */ + restrictDefaultExports: Partial<{ + /** + * @default false + */ + direct: boolean; + /** + * @default false + */ + named: boolean; + /** + * @default false + */ + defaultFrom: boolean; + /** + * @default false + */ + namedFrom: boolean; + /** + * @default false + */ + namespaceFrom: boolean; + }>; + }>, + ] + >; + + /** + * Rule to disallow specified modules when loaded by `import`. + * + * @since 2.0.0-alpha-1 + * @see https://eslint.org/docs/rules/no-restricted-imports + */ + "no-restricted-imports": Linter.RuleEntry< + [ + ...Array< + | string + | ValidNoRestrictedImportPathOptions + | Partial<{ + paths: Array; + patterns: Array; + }> + > + ] + >; + + /** + * Rule to disallow `this`/`super` before calling `super()` in constructors. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.24.0 + * @see https://eslint.org/docs/rules/no-this-before-super + */ + "no-this-before-super": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary computed property keys in object literals. + * + * @since 2.9.0 + * @see https://eslint.org/docs/rules/no-useless-computed-key + */ + "no-useless-computed-key": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + enforceForClassMembers: boolean; + }>, + ] + >; + + /** + * Rule to disallow unnecessary constructors. + * + * @since 2.0.0-beta.1 + * @see https://eslint.org/docs/rules/no-useless-constructor + */ + "no-useless-constructor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow renaming import, export, and destructured assignments to the same name. + * + * @since 2.11.0 + * @see https://eslint.org/docs/rules/no-useless-rename + */ + "no-useless-rename": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + ignoreImport: boolean; + /** + * @default false + */ + ignoreExport: boolean; + /** + * @default false + */ + ignoreDestructuring: boolean; + }>, + ] + >; + + /** + * Rule to require `let` or `const` instead of `var`. + * + * @since 0.12.0 + * @see https://eslint.org/docs/rules/no-var + */ + "no-var": Linter.RuleEntry<[]>; + + /** + * Rule to require or disallow method and property shorthand syntax for object literals. + * + * @since 0.20.0 + * @see https://eslint.org/docs/rules/object-shorthand + */ + "object-shorthand": + | Linter.RuleEntry< + [ + "always" | "methods", + Partial<{ + /** + * @default false + */ + avoidQuotes: boolean; + /** + * @default false + */ + ignoreConstructors: boolean; + /** + * @since 8.22.0 + */ + methodsIgnorePattern: string; + /** + * @default false + */ + avoidExplicitReturnArrows: boolean; + }>, + ] + > + | Linter.RuleEntry< + [ + "properties", + Partial<{ + /** + * @default false + */ + avoidQuotes: boolean; + }>, + ] + > + | Linter.RuleEntry<["never" | "consistent" | "consistent-as-needed"]>; + + /** + * Rule to require using arrow functions for callbacks. + * + * @since 1.2.0 + * @see https://eslint.org/docs/rules/prefer-arrow-callback + */ + "prefer-arrow-callback": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowNamedFunctions: boolean; + /** + * @default true + */ + allowUnboundThis: boolean; + }>, + ] + >; + + /** + * Rule to require `const` declarations for variables that are never reassigned after declared. + * + * @since 0.23.0 + * @see https://eslint.org/docs/rules/prefer-const + */ + "prefer-const": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 'any' + */ + destructuring: "any" | "all"; + /** + * @default false + */ + ignoreReadBeforeAssign: boolean; + }>, + ] + >; + + /** + * Rule to require destructuring from arrays and/or objects. + * + * @since 3.13.0 + * @see https://eslint.org/docs/rules/prefer-destructuring + */ + "prefer-destructuring": Linter.RuleEntry< + [ + Partial< + | { + VariableDeclarator: Partial<{ + array: boolean; + object: boolean; + }>; + AssignmentExpression: Partial<{ + array: boolean; + object: boolean; + }>; + } + | { + array: boolean; + object: boolean; + } + >, + Partial<{ + enforceForRenamedProperties: boolean; + }>, + ] + >; + + /** + * Disallow the use of `Math.pow` in favor of the `**` operator. + * + * @since 6.7.0 + * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator + */ + "prefer-exponentiation-operator": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals. + * + * @since 3.5.0 + * @see https://eslint.org/docs/rules/prefer-numeric-literals + */ + "prefer-numeric-literals": Linter.RuleEntry<[]>; + + /** + * Rule to require rest parameters instead of `arguments`. + * + * @since 2.0.0-alpha-1 + * @see https://eslint.org/docs/rules/prefer-rest-params + */ + "prefer-rest-params": Linter.RuleEntry<[]>; + + /** + * Rule to require spread operators instead of `.apply()`. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/prefer-spread + */ + "prefer-spread": Linter.RuleEntry<[]>; + + /** + * Rule to require template literals instead of string concatenation. + * + * @since 1.2.0 + * @see https://eslint.org/docs/rules/prefer-template + */ + "prefer-template": Linter.RuleEntry<[]>; + + /** + * Rule to require generator functions to contain `yield`. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/require-yield + */ + "require-yield": Linter.RuleEntry<[]>; + + /** + * Rule to enforce spacing between rest and spread operators and their expressions. + * + * @since 2.12.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/rest-spread-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/rest-spread-spacing + */ + "rest-spread-spacing": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to enforce sorted import declarations within modules. + * + * @since 2.0.0-beta.1 + * @see https://eslint.org/docs/rules/sort-imports + */ + "sort-imports": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + ignoreCase: boolean; + /** + * @default false + */ + ignoreDeclarationSort: boolean; + /** + * @default false + */ + ignoreMemberSort: boolean; + /** + * @default ['none', 'all', 'multiple', 'single'] + */ + memberSyntaxSortOrder: Array<"none" | "all" | "multiple" | "single">; + /** + * @default false + */ + allowSeparatedGroups: boolean; + }>, + ] + >; + + /** + * Rule to require symbol descriptions. + * + * @since 3.4.0 + * @see https://eslint.org/docs/rules/symbol-description + */ + "symbol-description": Linter.RuleEntry<[]>; + + /** + * Rule to require or disallow spacing around embedded expressions of template strings. + * + * @since 2.0.0-rc.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-curly-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/template-curly-spacing + */ + "template-curly-spacing": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to require or disallow spacing around the `*` in `yield*` expressions. + * + * @since 2.0.0-alpha-1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/yield-star-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/yield-star-spacing + */ + "yield-star-spacing": Linter.RuleEntry< + [ + | Partial<{ + before: boolean; + after: boolean; + }> + | "before" + | "after" + | "both" + | "neither", + ] + >; +} diff --git a/node_modules/eslint/lib/types/rules/index.d.ts b/node_modules/eslint/lib/types/rules/index.d.ts new file mode 100644 index 00000000..f29844f4 --- /dev/null +++ b/node_modules/eslint/lib/types/rules/index.d.ts @@ -0,0 +1,50 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + + +import { Linter } from "../index"; + +import { BestPractices } from "./best-practices"; +import { Deprecated } from "./deprecated"; +import { ECMAScript6 } from "./ecmascript-6"; +import { NodeJSAndCommonJS } from "./node-commonjs"; +import { PossibleErrors } from "./possible-errors"; +import { StrictMode } from "./strict-mode"; +import { StylisticIssues } from "./stylistic-issues"; +import { Variables } from "./variables"; + +export interface ESLintRules + extends + Linter.RulesRecord, + PossibleErrors, + BestPractices, + StrictMode, + Variables, + NodeJSAndCommonJS, + StylisticIssues, + ECMAScript6, + Deprecated { } diff --git a/node_modules/eslint/lib/types/rules/node-commonjs.d.ts b/node_modules/eslint/lib/types/rules/node-commonjs.d.ts new file mode 100644 index 00000000..7418b5fc --- /dev/null +++ b/node_modules/eslint/lib/types/rules/node-commonjs.d.ts @@ -0,0 +1,160 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface NodeJSAndCommonJS extends Linter.RulesRecord { + /** + * Rule to require `return` statements after callbacks. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/callback-return + */ + "callback-return": Linter.RuleEntry<[string[]]>; + + /** + * Rule to require `require()` calls to be placed at top-level module scope. + * + * @since 1.4.0 + * @see https://eslint.org/docs/rules/global-require + */ + "global-require": Linter.RuleEntry<[]>; + + /** + * Rule to require error handling in callbacks. + * + * @since 0.4.5 + * @see https://eslint.org/docs/rules/handle-callback-err + */ + "handle-callback-err": Linter.RuleEntry<[string]>; + + /** + * Rule to disallow use of the `Buffer()` constructor. + * + * @since 4.0.0-alpha.0 + * @see https://eslint.org/docs/rules/no-buffer-constructor + */ + "no-buffer-constructor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `require` calls to be mixed with regular variable declarations. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-mixed-requires + */ + "no-mixed-requires": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + grouping: boolean; + /** + * @default false + */ + allowCall: boolean; + }>, + ] + >; + + /** + * Rule to disallow `new` operators with calls to `require`. + * + * @since 0.6.0 + * @see https://eslint.org/docs/rules/no-new-require + */ + "no-new-require": Linter.RuleEntry<[]>; + + /** + * Rule to disallow string concatenation when using `__dirname` and `__filename`. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-path-concat + */ + "no-path-concat": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `process.env`. + * + * @since 0.9.0 + * @see https://eslint.org/docs/rules/no-process-env + */ + "no-process-env": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `process.exit()`. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-process-exit + */ + "no-process-exit": Linter.RuleEntry<[]>; + + /** + * Rule to disallow specified modules when loaded by `require`. + * + * @since 0.6.0 + * @see https://eslint.org/docs/rules/no-restricted-modules + */ + "no-restricted-modules": Linter.RuleEntry< + [ + ...Array< + | string + | { + name: string; + message?: string | undefined; + } + | Partial<{ + paths: Array< + | string + | { + name: string; + message?: string | undefined; + } + >; + patterns: string[]; + }> + >, + ] + >; + + /** + * Rule to disallow synchronous methods. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-sync + */ + "no-sync": Linter.RuleEntry< + [ + { + /** + * @default false + */ + allowAtRootLevel: boolean; + }, + ] + >; +} diff --git a/node_modules/eslint/lib/types/rules/possible-errors.d.ts b/node_modules/eslint/lib/types/rules/possible-errors.d.ts new file mode 100644 index 00000000..fac05e2d --- /dev/null +++ b/node_modules/eslint/lib/types/rules/possible-errors.d.ts @@ -0,0 +1,653 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface PossibleErrors extends Linter.RulesRecord { + /** + * Rule to enforce `for` loop update clause moving the counter in the right direction. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 4.0.0-beta.0 + * @see https://eslint.org/docs/rules/for-direction + */ + "for-direction": Linter.RuleEntry<[]>; + + /** + * Rule to enforce `return` statements in getters. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 4.2.0 + * @see https://eslint.org/docs/rules/getter-return + */ + "getter-return": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowImplicit: boolean; + }>, + ] + >; + + /** + * Rule to disallow using an async function as a `Promise` executor. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 5.3.0 + * @see https://eslint.org/docs/rules/no-async-promise-executor + */ + "no-async-promise-executor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `await` inside of loops. + * + * @since 3.12.0 + * @see https://eslint.org/docs/rules/no-await-in-loop + */ + "no-await-in-loop": Linter.RuleEntry<[]>; + + /** + * Rule to disallow comparing against `-0`. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 3.17.0 + * @see https://eslint.org/docs/rules/no-compare-neg-zero + */ + "no-compare-neg-zero": Linter.RuleEntry<[]>; + + /** + * Rule to disallow assignment operators in conditional statements. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-cond-assign + */ + "no-cond-assign": Linter.RuleEntry<["except-parens" | "always"]>; + + /** + * Rule to disallow the use of `console`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-console + */ + "no-console": Linter.RuleEntry< + [ + Partial<{ + allow: Array; + }>, + ] + >; + + /** + * Rule to disallow constant expressions in conditions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.4.1 + * @see https://eslint.org/docs/rules/no-constant-condition + */ + "no-constant-condition": Linter.RuleEntry< + [ + { + /** + * @default true + */ + checkLoops: boolean; + }, + ] + >; + + /** + * Rule to disallow control characters in regular expressions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.1.0 + * @see https://eslint.org/docs/rules/no-control-regex + */ + "no-control-regex": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `debugger`. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-debugger + */ + "no-debugger": Linter.RuleEntry<[]>; + + /** + * Rule to disallow duplicate arguments in `function` definitions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.16.0 + * @see https://eslint.org/docs/rules/no-dupe-args + */ + "no-dupe-args": Linter.RuleEntry<[]>; + + /** + * Disallow duplicate conditions in if-else-if chains. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 6.7.0 + * @see https://eslint.org/docs/rules/no-dupe-else-if + */ + "no-dupe-else-if": Linter.RuleEntry<[]>; + + /** + * Rule to disallow duplicate keys in object literals. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-dupe-keys + */ + "no-dupe-keys": Linter.RuleEntry<[]>; + + /** + * Rule to disallow a duplicate case label. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.17.0 + * @see https://eslint.org/docs/rules/no-duplicate-case + */ + "no-duplicate-case": Linter.RuleEntry<[]>; + + /** + * Rule to disallow empty block statements. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-empty + */ + "no-empty": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowEmptyCatch: boolean; + }>, + ] + >; + + /** + * Rule to disallow empty character classes in regular expressions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.22.0 + * @see https://eslint.org/docs/rules/no-empty-character-class + */ + "no-empty-character-class": Linter.RuleEntry<[]>; + + /** + * Rule to disallow reassigning exceptions in `catch` clauses. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-ex-assign + */ + "no-ex-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unnecessary boolean casts. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-extra-boolean-cast + */ + "no-extra-boolean-cast": Linter.RuleEntry< + [ + | Partial<{ + /** + * @since 9.3.0 + * @default false + */ + enforceForInnerExpressions: boolean; + /** + * @deprecated + */ + enforceForLogicalOperands: never; + }> + | Partial<{ + /** + * @deprecated + * @since 7.0.0-alpha.2 + * @default false + */ + enforceForLogicalOperands: boolean; + enforceForInnerExpressions: never; + }>, + ] + >; + + /** + * Rule to disallow unnecessary parentheses. + * + * @since 0.1.4 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-extra-parens) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-extra-parens + */ + "no-extra-parens": + | Linter.RuleEntry< + [ + "all", + Partial<{ + /** + * @default true, + */ + conditionalAssign: boolean; + /** + * @default true + */ + returnAssign: boolean; + /** + * @default true + */ + nestedBinaryExpressions: boolean; + /** + * @default 'none' + */ + ignoreJSX: "none" | "all" | "multi-line" | "single-line"; + /** + * @default true + */ + enforceForArrowConditionals: boolean; + }>, + ] + > + | Linter.RuleEntry<["functions"]>; + + /** + * Rule to disallow unnecessary semicolons. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-extra-semi) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-extra-semi + */ + "no-extra-semi": Linter.RuleEntry<[]>; + + /** + * Rule to disallow reassigning `function` declarations. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-func-assign + */ + "no-func-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow variable or `function` declarations in nested blocks. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.6.0 + * @see https://eslint.org/docs/rules/no-inner-declarations + */ + "no-inner-declarations": Linter.RuleEntry<["functions" | "both"]>; + + /** + * Rule to disallow invalid regular expression strings in `RegExp` constructors. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.1.4 + * @see https://eslint.org/docs/rules/no-invalid-regexp + */ + "no-invalid-regexp": Linter.RuleEntry< + [ + Partial<{ + allowConstructorFlags: string[]; + }>, + ] + >; + + /** + * Rule to disallow irregular whitespace. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.9.0 + * @see https://eslint.org/docs/rules/no-irregular-whitespace + */ + "no-irregular-whitespace": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + skipStrings: boolean; + /** + * @default false + */ + skipComments: boolean; + /** + * @default false + */ + skipRegExps: boolean; + /** + * @default false + */ + skipTemplates: boolean; + }>, + ] + >; + + /** + * Disallow literal numbers that lose precision. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.1.0 + * @see https://eslint.org/docs/latest/rules/no-loss-of-precision + */ + "no-loss-of-precision": Linter.RuleEntry<[]>; + + /** + * Rule to disallow characters which are made with multiple code points in character class syntax. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 5.3.0 + * @see https://eslint.org/docs/rules/no-misleading-character-class + */ + "no-misleading-character-class": Linter.RuleEntry< + [ + Partial<{ + /** + * @since 9.3.0 + * @default false + */ + allowEscape: boolean; + }>, + ] + >; + + /** + * Rule to disallow calling global object properties as functions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-obj-calls + */ + "no-obj-calls": Linter.RuleEntry<[]>; + + /** + * Rule to disallow returning values from Promise executor functions. + * + * @since 7.3.0 + * @see https://eslint.org/docs/rules/no-promise-executor-return + */ + "no-promise-executor-return": Linter.RuleEntry<[ + { + /** + * @default false + */ + allowVoid?: boolean; + }, + ]>; + + /** + * Rule to disallow use of `Object.prototypes` builtins directly. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 2.11.0 + * @see https://eslint.org/docs/rules/no-prototype-builtins + */ + "no-prototype-builtins": Linter.RuleEntry<[]>; + + /** + * Rule to disallow multiple spaces in regular expressions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-regex-spaces + */ + "no-regex-spaces": Linter.RuleEntry<[]>; + + /** + * Rule to disallow sparse arrays. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-sparse-arrays + */ + "no-sparse-arrays": Linter.RuleEntry<[]>; + + /** + * Rule to disallow template literal placeholder syntax in regular strings. + * + * @since 3.3.0 + * @see https://eslint.org/docs/rules/no-template-curly-in-string + */ + "no-template-curly-in-string": Linter.RuleEntry<[]>; + + /** + * Rule to disallow confusing multiline expressions. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.24.0 + * @see https://eslint.org/docs/rules/no-unexpected-multiline + */ + "no-unexpected-multiline": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unreachable code after `return`, `throw`, `continue`, and `break` statements. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/no-unreachable + */ + "no-unreachable": Linter.RuleEntry<[]>; + + /** + * Disallow loops with a body that allows only one iteration. + * + * @since 7.3.0 + * @see https://eslint.org/docs/latest/rules/no-unreachable-loop + */ + "no-unreachable-loop": Linter.RuleEntry< + [ + Partial<{ + /** + * @default [] + */ + ignore: "WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement"; + }>, + ] + >; + + /** + * Rule to disallow control flow statements in `finally` blocks. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 2.9.0 + * @see https://eslint.org/docs/rules/no-unsafe-finally + */ + "no-unsafe-finally": Linter.RuleEntry<[]>; + + /** + * Rule to disallow negating the left operand of relational operators. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 3.3.0 + * @see https://eslint.org/docs/rules/no-unsafe-negation + */ + "no-unsafe-negation": Linter.RuleEntry< + [ + Partial<{ + /** + * @since 6.6.0 + * @default false + */ + enforceForOrderingRelations: boolean; + }>, + ] + >; + + /** + * Disallow use of optional chaining in contexts where the `undefined` value is not allowed. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 7.15.0 + * @see https://eslint.org/docs/rules/no-unsafe-optional-chaining + */ + "no-unsafe-optional-chaining": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + disallowArithmeticOperators: boolean; + }>, + ] + >; + + /** + * Rule to disallow assignments that can lead to race conditions due to usage of `await` or `yield`. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 5.3.0 + * @see https://eslint.org/docs/rules/require-atomic-updates + */ + "require-atomic-updates": Linter.RuleEntry< + [ + Partial<{ + /** + * @since 8.3.0 + * @default false + */ + allowProperties: boolean; + }>, + ] + >; + + /** + * Rule to require calls to `isNaN()` when checking for `NaN`. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/use-isnan + */ + "use-isnan": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + enforceForSwitchCase: boolean; + /** + * @default true + */ + enforceForIndexOf: boolean; + }>, + ] + >; + + /** + * Rule to enforce comparing `typeof` expressions against valid strings. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.5.0 + * @see https://eslint.org/docs/rules/valid-typeof + */ + "valid-typeof": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + requireStringLiterals: boolean; + }>, + ] + >; +} diff --git a/node_modules/eslint/lib/types/rules/strict-mode.d.ts b/node_modules/eslint/lib/types/rules/strict-mode.d.ts new file mode 100644 index 00000000..23bd9a9a --- /dev/null +++ b/node_modules/eslint/lib/types/rules/strict-mode.d.ts @@ -0,0 +1,38 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface StrictMode extends Linter.RulesRecord { + /** + * Rule to require or disallow strict mode directives. + * + * @since 0.1.0 + * @see https://eslint.org/docs/rules/strict + */ + strict: Linter.RuleEntry<["safe" | "global" | "function" | "never"]>; +} diff --git a/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts b/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts new file mode 100644 index 00000000..da0f0822 --- /dev/null +++ b/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts @@ -0,0 +1,2037 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface StylisticIssues extends Linter.RulesRecord { + /** + * Rule to enforce linebreaks after opening and before closing array brackets. + * + * @since 4.0.0-alpha.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-newline) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/array-bracket-newline + */ + "array-bracket-newline": Linter.RuleEntry< + [ + | "always" + | "never" + | "consistent" + | Partial<{ + /** + * @default true + */ + multiline: boolean; + /** + * @default null + */ + minItems: number | null; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing inside array brackets. + * + * @since 0.24.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/array-bracket-spacing + */ + "array-bracket-spacing": + | Linter.RuleEntry< + [ + "never", + Partial<{ + /** + * @default false + */ + singleValue: boolean; + /** + * @default false + */ + objectsInArrays: boolean; + /** + * @default false + */ + arraysInArrays: boolean; + }>, + ] + > + | Linter.RuleEntry< + [ + "always", + Partial<{ + /** + * @default true + */ + singleValue: boolean; + /** + * @default true + */ + objectsInArrays: boolean; + /** + * @default true + */ + arraysInArrays: boolean; + }>, + ] + >; + + /** + * Rule to enforce line breaks after each array element. + * + * @since 4.0.0-rc.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-element-newline) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/array-element-newline + */ + "array-element-newline": Linter.RuleEntry< + [ + | "always" + | "never" + | "consistent" + | Partial<{ + /** + * @default true + */ + multiline: boolean; + /** + * @default null + */ + minItems: number | null; + }>, + ] + >; + + /** + * Rule to disallow or enforce spaces inside of blocks after opening block and before closing block. + * + * @since 1.2.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/block-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/block-spacing + */ + "block-spacing": Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to enforce consistent brace style for blocks. + * + * @since 0.0.7 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/brace-style) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/brace-style + */ + "brace-style": Linter.RuleEntry< + [ + "1tbs" | "stroustrup" | "allman", + Partial<{ + /** + * @default false + */ + allowSingleLine: boolean; + }>, + ] + >; + + /** + * Rule to enforce camelcase naming convention. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/camelcase + */ + camelcase: Linter.RuleEntry< + [ + Partial<{ + /** + * @default 'always' + */ + properties: "always" | "never"; + /** + * @default false + */ + ignoreDestructuring: boolean; + /** + * @since 6.7.0 + * @default false + */ + ignoreImports: boolean; + /** + * @since 7.4.0 + * @default false + */ + ignoreGlobals: boolean; + /** + * @remarks + * Also accept for regular expression patterns + */ + allow: string[]; + }>, + ] + >; + + /** + * Rule to enforce or disallow capitalization of the first letter of a comment. + * + * @since 3.11.0 + * @see https://eslint.org/docs/rules/capitalized-comments + */ + "capitalized-comments": Linter.RuleEntry< + [ + "always" | "never", + Partial<{ + ignorePattern: string; + /** + * @default false + */ + ignoreInlineComments: boolean; + /** + * @default false + */ + ignoreConsecutiveComments: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow trailing commas. + * + * @since 0.16.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-dangle) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/comma-dangle + */ + "comma-dangle": Linter.RuleEntry< + [ + | "never" + | "always" + | "always-multiline" + | "only-multiline" + | Partial<{ + /** + * @default 'never' + */ + arrays: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + objects: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + imports: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + exports: "never" | "always" | "always-multiline" | "only-multiline"; + /** + * @default 'never' + */ + functions: "never" | "always" | "always-multiline" | "only-multiline"; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing before and after commas. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/comma-spacing + */ + "comma-spacing": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + before: boolean; + /** + * @default true + */ + after: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent comma style. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-style) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/comma-style + */ + "comma-style": Linter.RuleEntry< + [ + "last" | "first", + Partial<{ + exceptions: Record; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing inside computed property brackets. + * + * @since 0.23.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/computed-property-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/computed-property-spacing + */ + "computed-property-spacing": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to enforce consistent naming when capturing the current execution context. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/consistent-this + */ + "consistent-this": Linter.RuleEntry<[...string[]]>; + + /** + * Rule to require or disallow newline at the end of files. + * + * @since 0.7.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/eol-last) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/eol-last + */ + "eol-last": Linter.RuleEntry< + [ + "always" | "never", // | 'unix' | 'windows' + ] + >; + + /** + * Rule to require or disallow spacing between function identifiers and their invocations. + * + * @since 3.3.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-call-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/func-call-spacing + */ + "func-call-spacing": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to require function names to match the name of the variable or property to which they are assigned. + * + * @since 3.8.0 + * @see https://eslint.org/docs/rules/func-name-matching + */ + "func-name-matching": + | Linter.RuleEntry< + [ + "always" | "never", + Partial<{ + /** + * @default false + */ + considerPropertyDescriptor: boolean; + /** + * @default false + */ + includeCommonJSModuleExports: boolean; + }>, + ] + > + | Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + considerPropertyDescriptor: boolean; + /** + * @default false + */ + includeCommonJSModuleExports: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow named `function` expressions. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/func-names + */ + "func-names": Linter.RuleEntry< + [ + "always" | "as-needed" | "never", + Partial<{ + generators: "always" | "as-needed" | "never"; + }>, + ] + >; + + /** + * Rule to enforce the consistent use of either `function` declarations or expressions. + * + * @since 0.2.0 + * @see https://eslint.org/docs/rules/func-style + */ + "func-style": Linter.RuleEntry< + [ + "expression" | "declaration", + Partial<{ + /** + * @default false + */ + allowArrowFunctions: boolean; + overrides: { + namedExports: "declaration" | "expression" | "ignore"; + } + }>, + ] + >; + + /** + * Rule to enforce consistent line breaks inside function parentheses. + * + * @since 4.6.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-paren-newline) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/function-paren-newline + */ + "function-paren-newline": Linter.RuleEntry< + [ + | "always" + | "never" + | "multiline" + | "multiline-arguments" + | "consistent" + | Partial<{ + minItems: number; + }>, + ] + >; + + /** + * Rule to disallow specified identifiers. + * + * @since 2.0.0-beta.2 + * @see https://eslint.org/docs/rules/id-blacklist + */ + "id-blacklist": Linter.RuleEntry<[...string[]]>; + + /** + * Rule to enforce minimum and maximum identifier lengths. + * + * @since 1.0.0 + * @see https://eslint.org/docs/rules/id-length + */ + "id-length": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 2 + */ + min: number; + /** + * @default Infinity + */ + max: number; + /** + * @default 'always' + */ + properties: "always" | "never"; + exceptions: string[]; + }>, + ] + >; + + /** + * Rule to require identifiers to match a specified regular expression. + * + * @since 1.0.0 + * @see https://eslint.org/docs/rules/id-match + */ + "id-match": Linter.RuleEntry< + [ + string, + Partial<{ + /** + * @default false + */ + properties: boolean; + /** + * @default false + */ + onlyDeclarations: boolean; + /** + * @default false + */ + ignoreDestructuring: boolean; + }>, + ] + >; + + /** + * Rule to enforce the location of arrow function bodies. + * + * @since 4.12.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/implicit-arrow-linebreak) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/implicit-arrow-linebreak + */ + "implicit-arrow-linebreak": Linter.RuleEntry<["beside" | "below"]>; + + /** + * Rule to enforce consistent indentation. + * + * @since 0.14.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/indent) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/indent + */ + indent: Linter.RuleEntry< + [ + number | "tab", + Partial<{ + /** + * @default 0 + */ + SwitchCase: number; + /** + * @default 1 + */ + VariableDeclarator: + | Partial<{ + /** + * @default 1 + */ + var: number | "first"; + /** + * @default 1 + */ + let: number | "first"; + /** + * @default 1 + */ + const: number | "first"; + }> + | number + | "first"; + /** + * @default 1 + */ + outerIIFEBody: number; + /** + * @default 1 + */ + MemberExpression: number | "off"; + /** + * @default { parameters: 1, body: 1 } + */ + FunctionDeclaration: Partial<{ + /** + * @default 1 + */ + parameters: number | "first" | "off"; + /** + * @default 1 + */ + body: number; + }>; + /** + * @default { parameters: 1, body: 1 } + */ + FunctionExpression: Partial<{ + /** + * @default 1 + */ + parameters: number | "first" | "off"; + /** + * @default 1 + */ + body: number; + }>; + /** + * @default { arguments: 1 } + */ + CallExpression: Partial<{ + /** + * @default 1 + */ + arguments: number | "first" | "off"; + }>; + /** + * @default 1 + */ + ArrayExpression: number | "first" | "off"; + /** + * @default 1 + */ + ObjectExpression: number | "first" | "off"; + /** + * @default 1 + */ + ImportDeclaration: number | "first" | "off"; + /** + * @default false + */ + flatTernaryExpressions: boolean; + ignoredNodes: string[]; + /** + * @default false + */ + ignoreComments: boolean; + }>, + ] + >; + + /** + * Rule to enforce the consistent use of either double or single quotes in JSX attributes. + * + * @since 1.4.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/jsx-quotes) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/jsx-quotes + */ + "jsx-quotes": Linter.RuleEntry<["prefer-double" | "prefer-single"]>; + + /** + * Rule to enforce consistent spacing between keys and values in object literal properties. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/key-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/key-spacing + */ + "key-spacing": Linter.RuleEntry< + [ + | Partial< + | { + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + align: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | "value" + | "colon"; + } + | { + singleLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | undefined; + multiLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + align: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | "value" + | "colon"; + }> + | undefined; + } + > + | { + align: Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'colon' + */ + on: "value" | "colon"; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }>; + singleLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | undefined; + multiLine?: + | Partial<{ + /** + * @default false + */ + beforeColon: boolean; + /** + * @default true + */ + afterColon: boolean; + /** + * @default 'strict' + */ + mode: "strict" | "minimum"; + }> + | undefined; + }, + ] + >; + + /** + * Rule to enforce consistent spacing before and after keywords. + * + * @since 2.0.0-beta.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/keyword-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/keyword-spacing + */ + "keyword-spacing": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + before: boolean; + /** + * @default true + */ + after: boolean; + overrides: Record< + string, + Partial<{ + before: boolean; + after: boolean; + }> + >; + }>, + ] + >; + + /** + * Rule to enforce position of line comments. + * + * @since 3.5.0 + * @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/line-comment-position) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/line-comment-position + */ + "line-comment-position": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 'above' + */ + position: "above" | "beside"; + ignorePattern: string; + /** + * @default true + */ + applyDefaultIgnorePatterns: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent linebreak style. + * + * @since 0.21.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/linebreak-style) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/linebreak-style + */ + "linebreak-style": Linter.RuleEntry<["unix" | "windows"]>; + + /** + * Rule to require empty lines around comments. + * + * @since 0.22.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-around-comment) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/lines-around-comment + */ + "lines-around-comment": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + beforeBlockComment: boolean; + /** + * @default false + */ + afterBlockComment: boolean; + /** + * @default false + */ + beforeLineComment: boolean; + /** + * @default false + */ + afterLineComment: boolean; + /** + * @default false + */ + allowBlockStart: boolean; + /** + * @default false + */ + allowBlockEnd: boolean; + /** + * @default false + */ + allowObjectStart: boolean; + /** + * @default false + */ + allowObjectEnd: boolean; + /** + * @default false + */ + allowArrayStart: boolean; + /** + * @default false + */ + allowArrayEnd: boolean; + /** + * @default false + */ + allowClassStart: boolean; + /** + * @default false + */ + allowClassEnd: boolean; + ignorePattern: string; + /** + * @default true + */ + applyDefaultIgnorePatterns: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow an empty line between class members. + * + * @since 4.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-between-class-members) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/lines-between-class-members + */ + "lines-between-class-members": Linter.RuleEntry< + [ + "always" | "never" | { + enforce: Array< + { + blankLine: "always" | "never"; + prev: "method" | "field" | "*"; + next: "method" | "field" | "*"; + } + > + }, + Partial<{ + /** + * @default false + */ + exceptAfterSingleLine: boolean; + }>, + ] + >; + + /** + * Rule to enforce a maximum depth that blocks can be nested. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/max-depth + */ + "max-depth": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 4 + */ + max: number; + }>, + ] + >; + + /** + * Rule to enforce a maximum line length. + * + * @since 0.0.9 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-len) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/max-len + */ + "max-len": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 80 + */ + code: number; + /** + * @default 4 + */ + tabWidth: number; + comments: number; + ignorePattern: string; + /** + * @default false + */ + ignoreComments: boolean; + /** + * @default false + */ + ignoreTrailingComments: boolean; + /** + * @default false + */ + ignoreUrls: boolean; + /** + * @default false + */ + ignoreStrings: boolean; + /** + * @default false + */ + ignoreTemplateLiterals: boolean; + /** + * @default false + */ + ignoreRegExpLiterals: boolean; + }>, + ] + >; + + /** + * Rule to enforce a maximum number of lines per file. + * + * @since 2.12.0 + * @see https://eslint.org/docs/rules/max-lines + */ + "max-lines": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 300 + */ + max: number; + /** + * @default false + */ + skipBlankLines: boolean; + /** + * @default false + */ + skipComments: boolean; + }> + | number, + ] + >; + + /** + * Rule to enforce a maximum number of line of code in a function. + * + * @since 5.0.0 + * @see https://eslint.org/docs/rules/max-lines-per-function + */ + "max-lines-per-function": Linter.RuleEntry< + [ + Partial<{ + /** + * @default 50 + */ + max: number; + /** + * @default false + */ + skipBlankLines: boolean; + /** + * @default false + */ + skipComments: boolean; + /** + * @default false + */ + IIFEs: boolean; + }>, + ] + >; + + /** + * Rule to enforce a maximum depth that callbacks can be nested. + * + * @since 0.2.0 + * @see https://eslint.org/docs/rules/max-nested-callbacks + */ + "max-nested-callbacks": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 10 + */ + max: number; + }> + | number, + ] + >; + + /** + * Rule to enforce a maximum number of parameters in function definitions. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/max-params + */ + "max-params": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 3 + */ + max: number; + }> + | number, + ] + >; + + /** + * Rule to enforce a maximum number of statements allowed in function blocks. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/max-statements + */ + "max-statements": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 10 + */ + max: number; + /** + * @default false + */ + ignoreTopLevelFunctions: boolean; + }> + | number, + ] + >; + + /** + * Rule to enforce a maximum number of statements allowed per line. + * + * @since 2.5.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-statements-per-line) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/max-statements-per-line + */ + "max-statements-per-line": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 1 + */ + max: number; + }> + | number, + ] + >; + + /** + * Rule to enforce a particular style for multiline comments. + * + * @since 4.10.0 + * @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-comment-style) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/multiline-comment-style + */ + "multiline-comment-style": Linter.RuleEntry<["starred-block" | "bare-block" | "separate-lines"]>; + + /** + * Rule to enforce newlines between operands of ternary expressions. + * + * @since 3.1.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-ternary) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/multiline-ternary + */ + "multiline-ternary": Linter.RuleEntry<["always" | "always-multiline" | "never"]>; + + /** + * Rule to require constructor names to begin with a capital letter. + * + * @since 0.0.3-0 + * @see https://eslint.org/docs/rules/new-cap + */ + "new-cap": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + newIsCap: boolean; + /** + * @default true + */ + capIsNew: boolean; + newIsCapExceptions: string[]; + newIsCapExceptionPattern: string; + capIsNewExceptions: string[]; + capIsNewExceptionPattern: string; + /** + * @default true + */ + properties: boolean; + }>, + ] + >; + + /** + * Rule to enforce or disallow parentheses when invoking a constructor with no arguments. + * + * @since 0.0.6 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/new-parens) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/new-parens + */ + "new-parens": Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to require a newline after each call in a method chain. + * + * @since 2.0.0-rc.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/newline-per-chained-call) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/newline-per-chained-call + */ + "newline-per-chained-call": Linter.RuleEntry< + [ + { + /** + * @default 2 + */ + ignoreChainWithDepth: number; + }, + ] + >; + + /** + * Rule to disallow `Array` constructors. + * + * @since 0.4.0 + * @see https://eslint.org/docs/rules/no-array-constructor + */ + "no-array-constructor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow bitwise operators. + * + * @since 0.0.2 + * @see https://eslint.org/docs/rules/no-bitwise + */ + "no-bitwise": Linter.RuleEntry< + [ + Partial<{ + allow: string[]; + /** + * @default false + */ + int32Hint: boolean; + }>, + ] + >; + + /** + * Rule to disallow `continue` statements. + * + * @since 0.19.0 + * @see https://eslint.org/docs/rules/no-continue + */ + "no-continue": Linter.RuleEntry<[]>; + + /** + * Rule to disallow inline comments after code. + * + * @since 0.10.0 + * @see https://eslint.org/docs/rules/no-inline-comments + */ + "no-inline-comments": Linter.RuleEntry<[]>; + + /** + * Rule to disallow `if` statements as the only statement in `else` blocks. + * + * @since 0.6.0 + * @see https://eslint.org/docs/rules/no-lonely-if + */ + "no-lonely-if": Linter.RuleEntry<[]>; + + /** + * Rule to disallow mixed binary operators. + * + * @since 2.12.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-operators) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-mixed-operators + */ + "no-mixed-operators": Linter.RuleEntry< + [ + Partial<{ + /** + * @default + * [ + * ["+", "-", "*", "/", "%", "**"], + * ["&", "|", "^", "~", "<<", ">>", ">>>"], + * ["==", "!=", "===", "!==", ">", ">=", "<", "<="], + * ["&&", "||"], + * ["in", "instanceof"] + * ] + */ + groups: string[][]; + /** + * @default true + */ + allowSamePrecedence: boolean; + }>, + ] + >; + + /** + * Rule to disallow mixed spaces and tabs for indentation. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.7.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-spaces-and-tabs) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-mixed-spaces-and-tabs + */ + "no-mixed-spaces-and-tabs": Linter.RuleEntry<["smart-tabs"]>; + + /** + * Rule to disallow use of chained assignment expressions. + * + * @since 3.14.0 + * @see https://eslint.org/docs/rules/no-multi-assign + */ + "no-multi-assign": Linter.RuleEntry<[]>; + + /** + * Rule to disallow multiple empty lines. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multiple-empty-lines) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-multiple-empty-lines + */ + "no-multiple-empty-lines": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default 2 + */ + max: number; + maxEOF: number; + maxBOF: number; + }> + | number, + ] + >; + + /** + * Rule to disallow negated conditions. + * + * @since 1.6.0 + * @see https://eslint.org/docs/rules/no-negated-condition + */ + "no-negated-condition": Linter.RuleEntry<[]>; + + /** + * Rule to disallow nested ternary expressions. + * + * @since 0.2.0 + * @see https://eslint.org/docs/rules/no-nested-ternary + */ + "no-nested-ternary": Linter.RuleEntry<[]>; + + /** + * Rule to disallow calls to the `Object` constructor without an argument + * + * @since 8.50.0 + * @see https://eslint.org/docs/rules/no-object-constructor + */ + "no-object-constructor": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the unary operators `++` and `--`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-plusplus + */ + "no-plusplus": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowForLoopAfterthoughts: boolean; + }>, + ] + >; + + /** + * Rule to disallow specified syntax. + * + * @since 1.4.0 + * @see https://eslint.org/docs/rules/no-restricted-syntax + */ + "no-restricted-syntax": Linter.RuleEntry< + [ + ...Array< + | string + | { + selector: string; + message?: string | undefined; + } + >, + ] + >; + + /** + * Rule to disallow all tabs. + * + * @since 3.2.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-tabs) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-tabs + */ + "no-tabs": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowIndentationTabs: boolean; + }>, + ] + >; + + /** + * Rule to disallow ternary operators. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-ternary + */ + "no-ternary": Linter.RuleEntry<[]>; + + /** + * Rule to disallow trailing whitespace at the end of lines. + * + * @since 0.7.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-trailing-spaces) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-trailing-spaces + */ + "no-trailing-spaces": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + skipBlankLines: boolean; + /** + * @default false + */ + ignoreComments: boolean; + }>, + ] + >; + + /** + * Rule to disallow dangling underscores in identifiers. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-underscore-dangle + */ + "no-underscore-dangle": Linter.RuleEntry< + [ + Partial<{ + allow: string[]; + /** + * @default false + */ + allowAfterThis: boolean; + /** + * @default false + */ + allowAfterSuper: boolean; + /** + * @since 6.7.0 + * @default false + */ + allowAfterThisConstructor: boolean; + /** + * @default false + */ + enforceInMethodNames: boolean; + /** + * @since 8.15.0 + * @default false + */ + enforceInClassFields: boolean; + /** + * @since 8.31.0 + * @default true + */ + allowInArrayDestructuring: boolean; + /** + * @since 8.31.0 + * @default true + */ + allowInObjectDestructuring: boolean; + /** + * @since 7.7.0 + * @default true + */ + allowFunctionParams: boolean; + }>, + ] + >; + + /** + * Rule to disallow ternary operators when simpler alternatives exist. + * + * @since 0.21.0 + * @see https://eslint.org/docs/rules/no-unneeded-ternary + */ + "no-unneeded-ternary": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + defaultAssignment: boolean; + }>, + ] + >; + + /** + * Rule to disallow whitespace before properties. + * + * @since 2.0.0-beta.1 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-whitespace-before-property) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/no-whitespace-before-property + */ + "no-whitespace-before-property": Linter.RuleEntry<[]>; + + /** + * Rule to enforce the location of single-line statements. + * + * @since 3.17.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/nonblock-statement-body-position) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/nonblock-statement-body-position + */ + "nonblock-statement-body-position": Linter.RuleEntry< + [ + "beside" | "below" | "any", + Partial<{ + overrides: Record; + }>, + ] + >; + + /** + * Rule to enforce consistent line breaks inside braces. + * + * @since 2.12.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-newline) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/object-curly-newline + */ + "object-curly-newline": Linter.RuleEntry< + [ + | "always" + | "never" + | Partial<{ + /** + * @default false + */ + multiline: boolean; + minProperties: number; + /** + * @default true + */ + consistent: boolean; + }> + | Partial< + Record< + "ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportDeclaration", + | "always" + | "never" + | Partial<{ + /** + * @default false + */ + multiline: boolean; + minProperties: number; + /** + * @default true + */ + consistent: boolean; + }> + > + >, + ] + >; + + /** + * Rule to enforce consistent spacing inside braces. + * + * @since 0.22.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/object-curly-spacing + */ + "object-curly-spacing": + | Linter.RuleEntry< + [ + "never", + { + /** + * @default false + */ + arraysInObjects: boolean; + /** + * @default false + */ + objectsInObjects: boolean; + }, + ] + > + | Linter.RuleEntry< + [ + "always", + { + /** + * @default true + */ + arraysInObjects: boolean; + /** + * @default true + */ + objectsInObjects: boolean; + }, + ] + >; + + /** + * Rule to enforce placing object properties on separate lines. + * + * @since 2.10.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-property-newline) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/object-property-newline + */ + "object-property-newline": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + allowAllPropertiesOnSameLine: boolean; + }>, + ] + >; + + /** + * Rule to enforce variables to be declared either together or separately in functions. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/one-var + */ + "one-var": Linter.RuleEntry< + [ + | "always" + | "never" + | "consecutive" + | Partial< + { + /** + * @default false + */ + separateRequires: boolean; + } & Record<"var" | "let" | "const", "always" | "never" | "consecutive"> + > + | Partial>, + ] + >; + + /** + * Rule to require or disallow newlines around variable declarations. + * + * @since 2.0.0-beta.3 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/one-var-declaration-per-line) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/one-var-declaration-per-line + */ + "one-var-declaration-per-line": Linter.RuleEntry<["initializations" | "always"]>; + + /** + * Rule to require or disallow assignment operator shorthand where possible. + * + * @since 0.10.0 + * @see https://eslint.org/docs/rules/operator-assignment + */ + "operator-assignment": Linter.RuleEntry<["always" | "never"]>; + + /** + * Rule to enforce consistent linebreak style for operators. + * + * @since 0.19.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/operator-linebreak) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/operator-linebreak + */ + "operator-linebreak": Linter.RuleEntry< + [ + "after" | "before" | "none", + Partial<{ + overrides: Record; + }>, + ] + >; + + /** + * Rule to require or disallow padding within blocks. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padded-blocks) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/padded-blocks + */ + "padded-blocks": Linter.RuleEntry< + [ + "always" | "never" | Partial>, + { + /** + * @default false + */ + allowSingleLineBlocks: boolean; + }, + ] + >; + + /** + * Rule to require or disallow padding lines between statements. + * + * @since 4.0.0-beta.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padding-line-between-statements) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/padding-line-between-statements + */ + "padding-line-between-statements": Linter.RuleEntry< + [ + ...Array< + { + blankLine: "any" | "never" | "always"; + } & Record<"prev" | "next", string | string[]> + >, + ] + >; + + /** + * Rule to disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead. + * + * @since 5.0.0-alpha.3 + * @see https://eslint.org/docs/rules/prefer-object-spread + */ + "prefer-object-spread": Linter.RuleEntry<[]>; + + /** + * Rule to require quotes around object literal property names. + * + * @since 0.0.6 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/quote-props) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/quote-props + */ + "quote-props": + | Linter.RuleEntry<["always" | "consistent"]> + | Linter.RuleEntry< + [ + "as-needed", + Partial<{ + /** + * @default false + */ + keywords: boolean; + /** + * @default true + */ + unnecessary: boolean; + /** + * @default false + */ + numbers: boolean; + }>, + ] + > + | Linter.RuleEntry< + [ + "consistent-as-needed", + Partial<{ + /** + * @default false + */ + keywords: boolean; + }>, + ] + >; + + /** + * Rule to enforce the consistent use of either backticks, double, or single quotes. + * + * @since 0.0.7 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/quotes) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/quotes + */ + quotes: Linter.RuleEntry< + [ + "double" | "single" | "backtick", + Partial<{ + /** + * @default false + */ + avoidEscape: boolean; + /** + * @default false + */ + allowTemplateLiterals: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow semicolons instead of ASI. + * + * @since 0.0.6 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/semi + */ + semi: + | Linter.RuleEntry< + [ + "always", + Partial<{ + /** + * @default false + */ + omitLastInOneLineBlock: boolean; + }>, + ] + > + | Linter.RuleEntry< + [ + "never", + Partial<{ + /** + * @default 'any' + */ + beforeStatementContinuationChars: "any" | "always" | "never"; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing before and after semicolons. + * + * @since 0.16.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/semi-spacing + */ + "semi-spacing": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + before: boolean; + /** + * @default true + */ + after: boolean; + }>, + ] + >; + + /** + * Rule to enforce location of semicolons. + * + * @since 4.0.0-beta.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-style) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/semi-style + */ + "semi-style": Linter.RuleEntry<["last" | "first"]>; + + /** + * Rule to require object keys to be sorted. + * + * @since 3.3.0 + * @see https://eslint.org/docs/rules/sort-keys + */ + "sort-keys": Linter.RuleEntry< + [ + "asc" | "desc", + Partial<{ + /** + * @default true + */ + caseSensitive: boolean; + /** + * @default 2 + */ + minKeys: number; + /** + * @default false + */ + natural: boolean; + /** + * @default false + */ + allowLineSeparatedGroups: boolean; + /** + * @default false + */ + ignoreComputedKeys: boolean; + }>, + ] + >; + + /** + * Rule to require variables within the same declaration block to be sorted. + * + * @since 0.2.0 + * @see https://eslint.org/docs/rules/sort-vars + */ + "sort-vars": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + ignoreCase: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing before blocks. + * + * @since 0.9.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-blocks) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/space-before-blocks + */ + "space-before-blocks": Linter.RuleEntry< + ["always" | "never" | Partial>] + >; + + /** + * Rule to enforce consistent spacing before `function` definition opening parenthesis. + * + * @since 0.18.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-function-paren) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/space-before-function-paren + */ + "space-before-function-paren": Linter.RuleEntry< + ["always" | "never" | Partial>] + >; + + /** + * Rule to enforce consistent spacing inside parentheses. + * + * @since 0.8.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-in-parens) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/space-in-parens + */ + "space-in-parens": Linter.RuleEntry< + [ + "never" | "always", + Partial<{ + exceptions: string[]; + }>, + ] + >; + + /** + * Rule to require spacing around infix operators. + * + * @since 0.2.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-infix-ops) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/space-infix-ops + */ + "space-infix-ops": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + int32Hint: boolean; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing before or after unary operators. + * + * @since 0.10.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-unary-ops) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/space-unary-ops + */ + "space-unary-ops": Linter.RuleEntry< + [ + Partial<{ + /** + * @default true + */ + words: boolean; + /** + * @default false + */ + nonwords: boolean; + overrides: Record; + }>, + ] + >; + + /** + * Rule to enforce consistent spacing after the `//` or `/*` in a comment. + * + * @since 0.23.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/spaced-comment) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/spaced-comment + */ + "spaced-comment": Linter.RuleEntry< + [ + "always" | "never", + { + exceptions: string[]; + markers: string[]; + line: { + exceptions: string[]; + markers: string[]; + }; + block: { + exceptions: string[]; + markers: string[]; + /** + * @default false + */ + balanced: boolean; + }; + }, + ] + >; + + /** + * Rule to enforce spacing around colons of switch statements. + * + * @since 4.0.0-beta.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/switch-colon-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/switch-colon-spacing + */ + "switch-colon-spacing": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + before: boolean; + /** + * @default true + */ + after: boolean; + }>, + ] + >; + + /** + * Rule to require or disallow spacing between template tags and their literals. + * + * @since 3.15.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-tag-spacing) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/template-tag-spacing + */ + "template-tag-spacing": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to require or disallow Unicode byte order mark (BOM). + * + * @since 2.11.0 + * @see https://eslint.org/docs/rules/unicode-bom + */ + "unicode-bom": Linter.RuleEntry<["never" | "always"]>; + + /** + * Rule to require parenthesis around regex literals. + * + * @since 0.1.0 + * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-regex) in `@stylistic/eslint-plugin-js`. + * @see https://eslint.org/docs/rules/wrap-regex + */ + "wrap-regex": Linter.RuleEntry<[]>; +} diff --git a/node_modules/eslint/lib/types/rules/variables.d.ts b/node_modules/eslint/lib/types/rules/variables.d.ts new file mode 100644 index 00000000..0c1328a7 --- /dev/null +++ b/node_modules/eslint/lib/types/rules/variables.d.ts @@ -0,0 +1,234 @@ +/** + * @fileoverview This file contains the rule types for ESLint. It was initially extracted + * from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + +import { Linter } from "../index"; + +export interface Variables extends Linter.RulesRecord { + /** + * Rule to require or disallow initialization in variable declarations. + * + * @since 1.0.0-rc-1 + * @see https://eslint.org/docs/rules/init-declarations + */ + "init-declarations": + | Linter.RuleEntry<["always"]> + | Linter.RuleEntry< + [ + "never", + Partial<{ + ignoreForLoopInit: boolean; + }>, + ] + >; + + /** + * Rule to disallow deleting variables. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-delete-var + */ + "no-delete-var": Linter.RuleEntry<[]>; + + /** + * Rule to disallow labels that share a name with a variable. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-label-var + */ + "no-label-var": Linter.RuleEntry<[]>; + + /** + * Rule to disallow specified global variables. + * + * @since 2.3.0 + * @see https://eslint.org/docs/rules/no-restricted-globals + */ + "no-restricted-globals": Linter.RuleEntry< + [ + ...Array< + | string + | { + name: string; + message?: string | undefined; + } + >, + ] + >; + + /** + * Rule to disallow variable declarations from shadowing variables declared in the outer scope. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-shadow + */ + "no-shadow": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + builtinGlobals: boolean; + /** + * @default 'functions' + */ + hoist: "functions" | "all" | "never"; + allow: string[]; + /** + * @since 8.10.0 + * @default false + */ + ignoreOnInitialization: boolean; + }>, + ] + >; + + /** + * Rule to disallow identifiers from shadowing restricted names. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.1.4 + * @see https://eslint.org/docs/rules/no-shadow-restricted-names + */ + "no-shadow-restricted-names": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of undeclared variables unless mentioned in `global` comments. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-undef + */ + "no-undef": Linter.RuleEntry< + [ + Partial<{ + /** + * @default false + */ + typeof: boolean; + }>, + ] + >; + + /** + * Rule to disallow initializing variables to `undefined`. + * + * @since 0.0.6 + * @see https://eslint.org/docs/rules/no-undef-init + */ + "no-undef-init": Linter.RuleEntry<[]>; + + /** + * Rule to disallow the use of `undefined` as an identifier. + * + * @since 0.7.1 + * @see https://eslint.org/docs/rules/no-undefined + */ + "no-undefined": Linter.RuleEntry<[]>; + + /** + * Rule to disallow unused variables. + * + * @remarks + * Recommended by ESLint, the rule was enabled in `eslint:recommended`. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-unused-vars + */ + "no-unused-vars": Linter.RuleEntry< + [ + | "all" + | "local" + | Partial<{ + /** + * @default 'all' + */ + vars: "all" | "local"; + varsIgnorePattern: string; + /** + * @default 'after-used' + */ + args: "after-used" | "all" | "none"; + /** + * @default false + */ + ignoreRestSiblings: boolean; + argsIgnorePattern: string; + /** + * @default 'all' + */ + caughtErrors: "none" | "all"; + caughtErrorsIgnorePattern: string; + destructuredArrayIgnorePattern: string; + /** + * @default false + */ + ignoreClassWithStaticInitBlock: boolean; + /** + * @default false + */ + reportUsedIgnorePattern: boolean; + }>, + ] + >; + + /** + * Rule to disallow the use of variables before they are defined. + * + * @since 0.0.9 + * @see https://eslint.org/docs/rules/no-use-before-define + */ + "no-use-before-define": Linter.RuleEntry< + [ + | Partial<{ + /** + * @default true + */ + functions: boolean; + /** + * @default true + */ + classes: boolean; + /** + * @default true + */ + variables: boolean; + /** + * @default false + */ + allowNamedExports: boolean; + }> + | "nofunc", + ] + >; +} diff --git a/node_modules/eslint/lib/types/universal.d.ts b/node_modules/eslint/lib/types/universal.d.ts new file mode 100644 index 00000000..df4fdecd --- /dev/null +++ b/node_modules/eslint/lib/types/universal.d.ts @@ -0,0 +1,6 @@ +/** + * @fileoverview typings for "eslint/universal" module + * @author 唯然 + */ + +export { Linter } from "./index"; diff --git a/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts b/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts new file mode 100644 index 00000000..2600b72d --- /dev/null +++ b/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts @@ -0,0 +1,85 @@ +/** + * @fileoverview This file contains the types for the use-at-your-own-risk + * entrypoint. It was initially extracted from the `@types/eslint` package. + */ + +/* + * MIT License + * Copyright (c) Microsoft Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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 + */ + + +import { ESLint, Rule } from "./index.js"; + +/** @deprecated */ +export const builtinRules: Map; + +/** @deprecated */ +export class FileEnumerator { + constructor( + params?: { + cwd?: string; + configArrayFactory?: any; + extensions?: any; + globInputPaths?: boolean; + errorOnUnmatchedPattern?: boolean; + ignore?: boolean; + }, + ); + isTargetPath(filePath: string, providedConfig?: any): boolean; + iterateFiles( + patternOrPatterns: string | string[], + ): IterableIterator<{ config: any; filePath: string; ignored: boolean }>; +} + +export { /** @deprecated */ ESLint as FlatESLint }; + +/** @deprecated */ +export class LegacyESLint { + static configType: "eslintrc"; + + static readonly version: string; + + static outputFixes(results: ESLint.LintResult[]): Promise; + + static getErrorResults(results: ESLint.LintResult[]): ESLint.LintResult[]; + + constructor(options?: ESLint.LegacyOptions); + + lintFiles(patterns: string | string[]): Promise; + + lintText( + code: string, + options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }, + ): Promise; + + getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData["rulesMeta"]; + + hasFlag(flag: string): false; + + calculateConfigForFile(filePath: string): Promise; + + isPathIgnored(filePath: string): Promise; + + loadFormatter(nameOrPath?: string): Promise; +} + +/** @deprecated */ +export function shouldUseFlatConfig(): Promise; diff --git a/node_modules/eslint/lib/universal.js b/node_modules/eslint/lib/universal.js new file mode 100644 index 00000000..51bac584 --- /dev/null +++ b/node_modules/eslint/lib/universal.js @@ -0,0 +1,10 @@ +/** + * @fileoverview exports for browsers + * @author 唯然 + */ + +"use strict"; + +const { Linter } = require("./linter/linter"); + +module.exports = { Linter }; diff --git a/node_modules/eslint/lib/unsupported-api.js b/node_modules/eslint/lib/unsupported-api.js index 8a2e147a..1feb18f4 100644 --- a/node_modules/eslint/lib/unsupported-api.js +++ b/node_modules/eslint/lib/unsupported-api.js @@ -12,19 +12,18 @@ //----------------------------------------------------------------------------- const { FileEnumerator } = require("./cli-engine/file-enumerator"); -const { FlatESLint, shouldUseFlatConfig } = require("./eslint/flat-eslint"); -const FlatRuleTester = require("./rule-tester/flat-rule-tester"); -const { ESLint } = require("./eslint/eslint"); +const { ESLint: FlatESLint, shouldUseFlatConfig } = require("./eslint/eslint"); +const { LegacyESLint } = require("./eslint/legacy-eslint"); +const builtinRules = require("./rules"); //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- module.exports = { - builtinRules: require("./rules"), + builtinRules, FlatESLint, shouldUseFlatConfig, - FlatRuleTester, FileEnumerator, - LegacyESLint: ESLint + LegacyESLint }; diff --git a/node_modules/eslint/messages/all-matched-files-ignored.js b/node_modules/eslint/messages/all-matched-files-ignored.js new file mode 100644 index 00000000..b568bec8 --- /dev/null +++ b/node_modules/eslint/messages/all-matched-files-ignored.js @@ -0,0 +1,21 @@ +"use strict"; + +module.exports = function(it) { + const { pattern } = it; + + return ` +You are linting "${pattern}", but all of the files matching the glob pattern "${pattern}" are ignored. + +If you don't want to lint these files, remove the pattern "${pattern}" from the list of arguments passed to ESLint. + +If you do want to lint these files, explicitly list one or more of the files from this glob that you'd like to lint to see more details about why they are ignored. + + * If the file is ignored because of a matching ignore pattern, check global ignores in your config file. + https://eslint.org/docs/latest/use/configure/ignore + + * If the file is ignored because no matching configuration was supplied, check file patterns in your config file. + https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-with-arbitrary-extensions + + * If the file is ignored because it is located outside of the base path, change the location of your config file to be in a parent directory. +`.trimStart(); +}; diff --git a/node_modules/eslint/messages/config-file-missing.js b/node_modules/eslint/messages/config-file-missing.js new file mode 100644 index 00000000..a416a87d --- /dev/null +++ b/node_modules/eslint/messages/config-file-missing.js @@ -0,0 +1,16 @@ +"use strict"; + +module.exports = function() { + return ` +ESLint couldn't find an eslint.config.(js|mjs|cjs) file. + +From ESLint v9.0.0, the default configuration file is now eslint.config.js. +If you are using a .eslintrc.* file, please follow the migration guide +to update your configuration file to the new format: + +https://eslint.org/docs/latest/use/configure/migration-guide + +If you still have problems after following the migration guide, please stop by +https://eslint.org/chat/help to chat with the team. +`.trimStart(); +}; diff --git a/node_modules/eslint/messages/eslintrc-incompat.js b/node_modules/eslint/messages/eslintrc-incompat.js index ee77cb23..b89c39bd 100644 --- a/node_modules/eslint/messages/eslintrc-incompat.js +++ b/node_modules/eslint/messages/eslintrc-incompat.js @@ -11,6 +11,9 @@ Flat config uses "languageOptions.globals" to define global variables for your f Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options + +If you're not using "env" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, extends: ` @@ -18,8 +21,11 @@ A config object is using the "extends" key, which is not supported in flat confi Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array. -Please see the following page for more information: +If you're using "extends" in your config file, please see the following: https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs + +If you're not using "extends" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, globals: ` @@ -29,6 +35,9 @@ Flat config uses "languageOptions.globals" to define global variables for your f Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options + +If you're not using "globals" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, ignorePatterns: ` @@ -38,6 +47,9 @@ Flat config uses "ignores" to specify files to ignore. Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files + +If you're not using "ignorePatterns" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, noInlineConfig: ` @@ -56,6 +68,9 @@ Flat config is an array that acts like the eslintrc "overrides" array. Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#glob-based-configs + +If you're not using "overrides" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, parser: ` @@ -65,6 +80,9 @@ Flat config uses "languageOptions.parser" to override the default parser. Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#custom-parsers + +If you're not using "parser" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, parserOptions: ` @@ -74,6 +92,9 @@ Flat config uses "languageOptions.parserOptions" to specify parser options. Please see the following page for information on how to convert your config object into the correct format: https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options + +If you're not using "parserOptions" directly (it may be coming from a plugin), please see the following: +https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config `, reportUnusedDisableDirectives: ` diff --git a/node_modules/eslint/messages/no-config-found.js b/node_modules/eslint/messages/no-config-found.js index 21cf549e..64b93edb 100644 --- a/node_modules/eslint/messages/no-config-found.js +++ b/node_modules/eslint/messages/no-config-found.js @@ -6,7 +6,7 @@ module.exports = function(it) { return ` ESLint couldn't find a configuration file. To set up a configuration file for this project, please run: - npm init @eslint/config + npm init @eslint/config@latest ESLint looked for configuration files in ${directoryPath} and its ancestors. If it found none, it then looked in your home directory. diff --git a/node_modules/eslint/messages/plugin-conflict.js b/node_modules/eslint/messages/plugin-conflict.js index c8c060e2..4113a538 100644 --- a/node_modules/eslint/messages/plugin-conflict.js +++ b/node_modules/eslint/messages/plugin-conflict.js @@ -15,7 +15,7 @@ module.exports = function(it) { Please remove the "plugins" setting from either config or remove either plugin installation. -If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. +If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. `; return result; diff --git a/node_modules/eslint/messages/plugin-invalid.js b/node_modules/eslint/messages/plugin-invalid.js index 8b471d4a..4c60e41d 100644 --- a/node_modules/eslint/messages/plugin-invalid.js +++ b/node_modules/eslint/messages/plugin-invalid.js @@ -11,6 +11,6 @@ module.exports = function(it) { "${configName}" was referenced from the config file in "${importerName}". -If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. +If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. `.trimStart(); }; diff --git a/node_modules/eslint/messages/plugin-missing.js b/node_modules/eslint/messages/plugin-missing.js index 0b7d34e3..366ec450 100644 --- a/node_modules/eslint/messages/plugin-missing.js +++ b/node_modules/eslint/messages/plugin-missing.js @@ -14,6 +14,6 @@ It's likely that the plugin isn't installed correctly. Try reinstalling by runni The plugin "${pluginName}" was referenced from the config file in "${importerName}". -If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. +If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. `.trimStart(); }; diff --git a/node_modules/eslint/node_modules/.bin/js-yaml b/node_modules/eslint/node_modules/.bin/js-yaml deleted file mode 120000 index 9dbd010d..00000000 --- a/node_modules/eslint/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/eslint/node_modules/argparse/CHANGELOG.md b/node_modules/eslint/node_modules/argparse/CHANGELOG.md deleted file mode 100644 index dc39ed69..00000000 --- a/node_modules/eslint/node_modules/argparse/CHANGELOG.md +++ /dev/null @@ -1,216 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [2.0.1] - 2020-08-29 -### Fixed -- Fix issue with `process.argv` when used with interpreters (`coffee`, `ts-node`, etc.), #150. - - -## [2.0.0] - 2020-08-14 -### Changed -- Full rewrite. Now port from python 3.9.0 & more precise following. - See [doc](./doc) for difference and migration info. -- node.js 10+ required -- Removed most of local docs in favour of original ones. - - -## [1.0.10] - 2018-02-15 -### Fixed -- Use .concat instead of + for arrays, #122. - - -## [1.0.9] - 2016-09-29 -### Changed -- Rerelease after 1.0.8 - deps cleanup. - - -## [1.0.8] - 2016-09-29 -### Changed -- Maintenance (deps bump, fix node 6.5+ tests, coverage report). - - -## [1.0.7] - 2016-03-17 -### Changed -- Teach `addArgument` to accept string arg names. #97, @tomxtobin. - - -## [1.0.6] - 2016-02-06 -### Changed -- Maintenance: moved to eslint & updated CS. - - -## [1.0.5] - 2016-02-05 -### Changed -- Removed lodash dependency to significantly reduce install size. - Thanks to @mourner. - - -## [1.0.4] - 2016-01-17 -### Changed -- Maintenance: lodash update to 4.0.0. - - -## [1.0.3] - 2015-10-27 -### Fixed -- Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple. - - -## [1.0.2] - 2015-03-22 -### Changed -- Relaxed lodash version dependency. - - -## [1.0.1] - 2015-02-20 -### Changed -- Changed dependencies to be compatible with ancient nodejs. - - -## [1.0.0] - 2015-02-19 -### Changed -- Maintenance release. -- Replaced `underscore` with `lodash`. -- Bumped version to 1.0.0 to better reflect semver meaning. -- HISTORY.md -> CHANGELOG.md - - -## [0.1.16] - 2013-12-01 -### Changed -- Maintenance release. Updated dependencies and docs. - - -## [0.1.15] - 2013-05-13 -### Fixed -- Fixed #55, @trebor89 - - -## [0.1.14] - 2013-05-12 -### Fixed -- Fixed #62, @maxtaco - - -## [0.1.13] - 2013-04-08 -### Changed -- Added `.npmignore` to reduce package size - - -## [0.1.12] - 2013-02-10 -### Fixed -- Fixed conflictHandler (#46), @hpaulj - - -## [0.1.11] - 2013-02-07 -### Added -- Added 70+ tests (ported from python), @hpaulj -- Added conflictHandler, @applepicke -- Added fromfilePrefixChar, @hpaulj - -### Fixed -- Multiple bugfixes, @hpaulj - - -## [0.1.10] - 2012-12-30 -### Added -- Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion) - support, thanks to @hpaulj - -### Fixed -- Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj - - -## [0.1.9] - 2012-12-27 -### Fixed -- Fixed option dest interferens with other options (issue #23), thanks to @hpaulj -- Fixed default value behavior with `*` positionals, thanks to @hpaulj -- Improve `getDefault()` behavior, thanks to @hpaulj -- Improve negative argument parsing, thanks to @hpaulj - - -## [0.1.8] - 2012-12-01 -### Fixed -- Fixed parser parents (issue #19), thanks to @hpaulj -- Fixed negative argument parse (issue #20), thanks to @hpaulj - - -## [0.1.7] - 2012-10-14 -### Fixed -- Fixed 'choices' argument parse (issue #16) -- Fixed stderr output (issue #15) - - -## [0.1.6] - 2012-09-09 -### Fixed -- Fixed check for conflict of options (thanks to @tomxtobin) - - -## [0.1.5] - 2012-09-03 -### Fixed -- Fix parser #setDefaults method (thanks to @tomxtobin) - - -## [0.1.4] - 2012-07-30 -### Fixed -- Fixed pseudo-argument support (thanks to @CGamesPlay) -- Fixed addHelp default (should be true), if not set (thanks to @benblank) - - -## [0.1.3] - 2012-06-27 -### Fixed -- Fixed formatter api name: Formatter -> HelpFormatter - - -## [0.1.2] - 2012-05-29 -### Fixed -- Removed excess whitespace in help -- Fixed error reporting, when parcer with subcommands - called with empty arguments - -### Added -- Added basic tests - - -## [0.1.1] - 2012-05-23 -### Fixed -- Fixed line wrapping in help formatter -- Added better error reporting on invalid arguments - - -## [0.1.0] - 2012-05-16 -### Added -- First release. - - -[2.0.1]: https://github.com/nodeca/argparse/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/argparse/compare/1.0.10...2.0.0 -[1.0.10]: https://github.com/nodeca/argparse/compare/1.0.9...1.0.10 -[1.0.9]: https://github.com/nodeca/argparse/compare/1.0.8...1.0.9 -[1.0.8]: https://github.com/nodeca/argparse/compare/1.0.7...1.0.8 -[1.0.7]: https://github.com/nodeca/argparse/compare/1.0.6...1.0.7 -[1.0.6]: https://github.com/nodeca/argparse/compare/1.0.5...1.0.6 -[1.0.5]: https://github.com/nodeca/argparse/compare/1.0.4...1.0.5 -[1.0.4]: https://github.com/nodeca/argparse/compare/1.0.3...1.0.4 -[1.0.3]: https://github.com/nodeca/argparse/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/argparse/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/argparse/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/argparse/compare/0.1.16...1.0.0 -[0.1.16]: https://github.com/nodeca/argparse/compare/0.1.15...0.1.16 -[0.1.15]: https://github.com/nodeca/argparse/compare/0.1.14...0.1.15 -[0.1.14]: https://github.com/nodeca/argparse/compare/0.1.13...0.1.14 -[0.1.13]: https://github.com/nodeca/argparse/compare/0.1.12...0.1.13 -[0.1.12]: https://github.com/nodeca/argparse/compare/0.1.11...0.1.12 -[0.1.11]: https://github.com/nodeca/argparse/compare/0.1.10...0.1.11 -[0.1.10]: https://github.com/nodeca/argparse/compare/0.1.9...0.1.10 -[0.1.9]: https://github.com/nodeca/argparse/compare/0.1.8...0.1.9 -[0.1.8]: https://github.com/nodeca/argparse/compare/0.1.7...0.1.8 -[0.1.7]: https://github.com/nodeca/argparse/compare/0.1.6...0.1.7 -[0.1.6]: https://github.com/nodeca/argparse/compare/0.1.5...0.1.6 -[0.1.5]: https://github.com/nodeca/argparse/compare/0.1.4...0.1.5 -[0.1.4]: https://github.com/nodeca/argparse/compare/0.1.3...0.1.4 -[0.1.3]: https://github.com/nodeca/argparse/compare/0.1.2...0.1.3 -[0.1.2]: https://github.com/nodeca/argparse/compare/0.1.1...0.1.2 -[0.1.1]: https://github.com/nodeca/argparse/compare/0.1.0...0.1.1 -[0.1.0]: https://github.com/nodeca/argparse/releases/tag/0.1.0 diff --git a/node_modules/eslint/node_modules/argparse/LICENSE b/node_modules/eslint/node_modules/argparse/LICENSE deleted file mode 100644 index 66a3ac80..00000000 --- a/node_modules/eslint/node_modules/argparse/LICENSE +++ /dev/null @@ -1,254 +0,0 @@ -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/eslint/node_modules/argparse/README.md b/node_modules/eslint/node_modules/argparse/README.md deleted file mode 100644 index 550b5c9b..00000000 --- a/node_modules/eslint/node_modules/argparse/README.md +++ /dev/null @@ -1,84 +0,0 @@ -argparse -======== - -[![Build Status](https://secure.travis-ci.org/nodeca/argparse.svg?branch=master)](http://travis-ci.org/nodeca/argparse) -[![NPM version](https://img.shields.io/npm/v/argparse.svg)](https://www.npmjs.org/package/argparse) - -CLI arguments parser for node.js, with [sub-commands](https://docs.python.org/3.9/library/argparse.html#sub-commands) support. Port of python's [argparse](http://docs.python.org/dev/library/argparse.html) (version [3.9.0](https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py)). - -**Difference with original.** - -- JS has no keyword arguments support. - - Pass options instead: `new ArgumentParser({ description: 'example', add_help: true })`. -- JS has no python's types `int`, `float`, ... - - Use string-typed names: `.add_argument('-b', { type: 'int', help: 'help' })`. -- `%r` format specifier uses `require('util').inspect()`. - -More details in [doc](./doc). - - -Example -------- - -`test.js` file: - -```javascript -#!/usr/bin/env node -'use strict'; - -const { ArgumentParser } = require('argparse'); -const { version } = require('./package.json'); - -const parser = new ArgumentParser({ - description: 'Argparse example' -}); - -parser.add_argument('-v', '--version', { action: 'version', version }); -parser.add_argument('-f', '--foo', { help: 'foo bar' }); -parser.add_argument('-b', '--bar', { help: 'bar foo' }); -parser.add_argument('--baz', { help: 'baz bar' }); - -console.dir(parser.parse_args()); -``` - -Display help: - -``` -$ ./test.js -h -usage: test.js [-h] [-v] [-f FOO] [-b BAR] [--baz BAZ] - -Argparse example - -optional arguments: - -h, --help show this help message and exit - -v, --version show program's version number and exit - -f FOO, --foo FOO foo bar - -b BAR, --bar BAR bar foo - --baz BAZ baz bar -``` - -Parse arguments: - -``` -$ ./test.js -f=3 --bar=4 --baz 5 -{ foo: '3', bar: '4', baz: '5' } -``` - - -API docs --------- - -Since this is a port with minimal divergence, there's no separate documentation. -Use original one instead, with notes about difference. - -1. [Original doc](https://docs.python.org/3.9/library/argparse.html). -2. [Original tutorial](https://docs.python.org/3.9/howto/argparse.html). -3. [Difference with python](./doc). - - -argparse for enterprise ------------------------ - -Available as part of the Tidelift Subscription - -The maintainers of argparse and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-argparse?utm_source=npm-argparse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/eslint/node_modules/argparse/argparse.js b/node_modules/eslint/node_modules/argparse/argparse.js deleted file mode 100644 index 2b8c8c63..00000000 --- a/node_modules/eslint/node_modules/argparse/argparse.js +++ /dev/null @@ -1,3707 +0,0 @@ -// Port of python's argparse module, version 3.9.0: -// https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py - -'use strict' - -// Copyright (C) 2010-2020 Python Software Foundation. -// Copyright (C) 2020 argparse.js authors - -/* - * Command-line parsing library - * - * This module is an optparse-inspired command-line parsing library that: - * - * - handles both optional and positional arguments - * - produces highly informative usage messages - * - supports parsers that dispatch to sub-parsers - * - * The following is a simple usage example that sums integers from the - * command-line and writes the result to a file:: - * - * parser = argparse.ArgumentParser( - * description='sum the integers at the command line') - * parser.add_argument( - * 'integers', metavar='int', nargs='+', type=int, - * help='an integer to be summed') - * parser.add_argument( - * '--log', default=sys.stdout, type=argparse.FileType('w'), - * help='the file where the sum should be written') - * args = parser.parse_args() - * args.log.write('%s' % sum(args.integers)) - * args.log.close() - * - * The module contains the following public classes: - * - * - ArgumentParser -- The main entry point for command-line parsing. As the - * example above shows, the add_argument() method is used to populate - * the parser with actions for optional and positional arguments. Then - * the parse_args() method is invoked to convert the args at the - * command-line into an object with attributes. - * - * - ArgumentError -- The exception raised by ArgumentParser objects when - * there are errors with the parser's actions. Errors raised while - * parsing the command-line are caught by ArgumentParser and emitted - * as command-line messages. - * - * - FileType -- A factory for defining types of files to be created. As the - * example above shows, instances of FileType are typically passed as - * the type= argument of add_argument() calls. - * - * - Action -- The base class for parser actions. Typically actions are - * selected by passing strings like 'store_true' or 'append_const' to - * the action= argument of add_argument(). However, for greater - * customization of ArgumentParser actions, subclasses of Action may - * be defined and passed as the action= argument. - * - * - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter, - * ArgumentDefaultsHelpFormatter -- Formatter classes which - * may be passed as the formatter_class= argument to the - * ArgumentParser constructor. HelpFormatter is the default, - * RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser - * not to change the formatting for help text, and - * ArgumentDefaultsHelpFormatter adds information about argument defaults - * to the help. - * - * All other classes in this module are considered implementation details. - * (Also note that HelpFormatter and RawDescriptionHelpFormatter are only - * considered public as object names -- the API of the formatter objects is - * still considered an implementation detail.) - */ - -const SUPPRESS = '==SUPPRESS==' - -const OPTIONAL = '?' -const ZERO_OR_MORE = '*' -const ONE_OR_MORE = '+' -const PARSER = 'A...' -const REMAINDER = '...' -const _UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args' - - -// ================================== -// Utility functions used for porting -// ================================== -const assert = require('assert') -const util = require('util') -const fs = require('fs') -const sub = require('./lib/sub') -const path = require('path') -const repr = util.inspect - -function get_argv() { - // omit first argument (which is assumed to be interpreter - `node`, `coffee`, `ts-node`, etc.) - return process.argv.slice(1) -} - -function get_terminal_size() { - return { - columns: +process.env.COLUMNS || process.stdout.columns || 80 - } -} - -function hasattr(object, name) { - return Object.prototype.hasOwnProperty.call(object, name) -} - -function getattr(object, name, value) { - return hasattr(object, name) ? object[name] : value -} - -function setattr(object, name, value) { - object[name] = value -} - -function setdefault(object, name, value) { - if (!hasattr(object, name)) object[name] = value - return object[name] -} - -function delattr(object, name) { - delete object[name] -} - -function range(from, to, step=1) { - // range(10) is equivalent to range(0, 10) - if (arguments.length === 1) [ to, from ] = [ from, 0 ] - if (typeof from !== 'number' || typeof to !== 'number' || typeof step !== 'number') { - throw new TypeError('argument cannot be interpreted as an integer') - } - if (step === 0) throw new TypeError('range() arg 3 must not be zero') - - let result = [] - if (step > 0) { - for (let i = from; i < to; i += step) result.push(i) - } else { - for (let i = from; i > to; i += step) result.push(i) - } - return result -} - -function splitlines(str, keepends = false) { - let result - if (!keepends) { - result = str.split(/\r\n|[\n\r\v\f\x1c\x1d\x1e\x85\u2028\u2029]/) - } else { - result = [] - let parts = str.split(/(\r\n|[\n\r\v\f\x1c\x1d\x1e\x85\u2028\u2029])/) - for (let i = 0; i < parts.length; i += 2) { - result.push(parts[i] + (i + 1 < parts.length ? parts[i + 1] : '')) - } - } - if (!result[result.length - 1]) result.pop() - return result -} - -function _string_lstrip(string, prefix_chars) { - let idx = 0 - while (idx < string.length && prefix_chars.includes(string[idx])) idx++ - return idx ? string.slice(idx) : string -} - -function _string_split(string, sep, maxsplit) { - let result = string.split(sep) - if (result.length > maxsplit) { - result = result.slice(0, maxsplit).concat([ result.slice(maxsplit).join(sep) ]) - } - return result -} - -function _array_equal(array1, array2) { - if (array1.length !== array2.length) return false - for (let i = 0; i < array1.length; i++) { - if (array1[i] !== array2[i]) return false - } - return true -} - -function _array_remove(array, item) { - let idx = array.indexOf(item) - if (idx === -1) throw new TypeError(sub('%r not in list', item)) - array.splice(idx, 1) -} - -// normalize choices to array; -// this isn't required in python because `in` and `map` operators work with anything, -// but in js dealing with multiple types here is too clunky -function _choices_to_array(choices) { - if (choices === undefined) { - return [] - } else if (Array.isArray(choices)) { - return choices - } else if (choices !== null && typeof choices[Symbol.iterator] === 'function') { - return Array.from(choices) - } else if (typeof choices === 'object' && choices !== null) { - return Object.keys(choices) - } else { - throw new Error(sub('invalid choices value: %r', choices)) - } -} - -// decorator that allows a class to be called without new -function _callable(cls) { - let result = { // object is needed for inferred class name - [cls.name]: function (...args) { - let this_class = new.target === result || !new.target - return Reflect.construct(cls, args, this_class ? cls : new.target) - } - } - result[cls.name].prototype = cls.prototype - // fix default tag for toString, e.g. [object Action] instead of [object Object] - cls.prototype[Symbol.toStringTag] = cls.name - return result[cls.name] -} - -function _alias(object, from, to) { - try { - let name = object.constructor.name - Object.defineProperty(object, from, { - value: util.deprecate(object[to], sub('%s.%s() is renamed to %s.%s()', - name, from, name, to)), - enumerable: false - }) - } catch {} -} - -// decorator that allows snake_case class methods to be called with camelCase and vice versa -function _camelcase_alias(_class) { - for (let name of Object.getOwnPropertyNames(_class.prototype)) { - let camelcase = name.replace(/\w_[a-z]/g, s => s[0] + s[2].toUpperCase()) - if (camelcase !== name) _alias(_class.prototype, camelcase, name) - } - return _class -} - -function _to_legacy_name(key) { - key = key.replace(/\w_[a-z]/g, s => s[0] + s[2].toUpperCase()) - if (key === 'default') key = 'defaultValue' - if (key === 'const') key = 'constant' - return key -} - -function _to_new_name(key) { - if (key === 'defaultValue') key = 'default' - if (key === 'constant') key = 'const' - key = key.replace(/[A-Z]/g, c => '_' + c.toLowerCase()) - return key -} - -// parse options -let no_default = Symbol('no_default_value') -function _parse_opts(args, descriptor) { - function get_name() { - let stack = new Error().stack.split('\n') - .map(x => x.match(/^ at (.*) \(.*\)$/)) - .filter(Boolean) - .map(m => m[1]) - .map(fn => fn.match(/[^ .]*$/)[0]) - - if (stack.length && stack[0] === get_name.name) stack.shift() - if (stack.length && stack[0] === _parse_opts.name) stack.shift() - return stack.length ? stack[0] : '' - } - - args = Array.from(args) - let kwargs = {} - let result = [] - let last_opt = args.length && args[args.length - 1] - - if (typeof last_opt === 'object' && last_opt !== null && !Array.isArray(last_opt) && - (!last_opt.constructor || last_opt.constructor.name === 'Object')) { - kwargs = Object.assign({}, args.pop()) - } - - // LEGACY (v1 compatibility): camelcase - let renames = [] - for (let key of Object.keys(descriptor)) { - let old_name = _to_legacy_name(key) - if (old_name !== key && (old_name in kwargs)) { - if (key in kwargs) { - // default and defaultValue specified at the same time, happens often in old tests - //throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), key)) - } else { - kwargs[key] = kwargs[old_name] - } - renames.push([ old_name, key ]) - delete kwargs[old_name] - } - } - if (renames.length) { - let name = get_name() - deprecate('camelcase_' + name, sub('%s(): following options are renamed: %s', - name, renames.map(([ a, b ]) => sub('%r -> %r', a, b)))) - } - // end - - let missing_positionals = [] - let positional_count = args.length - - for (let [ key, def ] of Object.entries(descriptor)) { - if (key[0] === '*') { - if (key.length > 0 && key[1] === '*') { - // LEGACY (v1 compatibility): camelcase - let renames = [] - for (let key of Object.keys(kwargs)) { - let new_name = _to_new_name(key) - if (new_name !== key && (key in kwargs)) { - if (new_name in kwargs) { - // default and defaultValue specified at the same time, happens often in old tests - //throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), new_name)) - } else { - kwargs[new_name] = kwargs[key] - } - renames.push([ key, new_name ]) - delete kwargs[key] - } - } - if (renames.length) { - let name = get_name() - deprecate('camelcase_' + name, sub('%s(): following options are renamed: %s', - name, renames.map(([ a, b ]) => sub('%r -> %r', a, b)))) - } - // end - result.push(kwargs) - kwargs = {} - } else { - result.push(args) - args = [] - } - } else if (key in kwargs && args.length > 0) { - throw new TypeError(sub('%s() got multiple values for argument %r', get_name(), key)) - } else if (key in kwargs) { - result.push(kwargs[key]) - delete kwargs[key] - } else if (args.length > 0) { - result.push(args.shift()) - } else if (def !== no_default) { - result.push(def) - } else { - missing_positionals.push(key) - } - } - - if (Object.keys(kwargs).length) { - throw new TypeError(sub('%s() got an unexpected keyword argument %r', - get_name(), Object.keys(kwargs)[0])) - } - - if (args.length) { - let from = Object.entries(descriptor).filter(([ k, v ]) => k[0] !== '*' && v !== no_default).length - let to = Object.entries(descriptor).filter(([ k ]) => k[0] !== '*').length - throw new TypeError(sub('%s() takes %s positional argument%s but %s %s given', - get_name(), - from === to ? sub('from %s to %s', from, to) : to, - from === to && to === 1 ? '' : 's', - positional_count, - positional_count === 1 ? 'was' : 'were')) - } - - if (missing_positionals.length) { - let strs = missing_positionals.map(repr) - if (strs.length > 1) strs[strs.length - 1] = 'and ' + strs[strs.length - 1] - let str_joined = strs.join(strs.length === 2 ? '' : ', ') - throw new TypeError(sub('%s() missing %i required positional argument%s: %s', - get_name(), strs.length, strs.length === 1 ? '' : 's', str_joined)) - } - - return result -} - -let _deprecations = {} -function deprecate(id, string) { - _deprecations[id] = _deprecations[id] || util.deprecate(() => {}, string) - _deprecations[id]() -} - - -// ============================= -// Utility functions and classes -// ============================= -function _AttributeHolder(cls = Object) { - /* - * Abstract base class that provides __repr__. - * - * The __repr__ method returns a string in the format:: - * ClassName(attr=name, attr=name, ...) - * The attributes are determined either by a class-level attribute, - * '_kwarg_names', or by inspecting the instance __dict__. - */ - - return class _AttributeHolder extends cls { - [util.inspect.custom]() { - let type_name = this.constructor.name - let arg_strings = [] - let star_args = {} - for (let arg of this._get_args()) { - arg_strings.push(repr(arg)) - } - for (let [ name, value ] of this._get_kwargs()) { - if (/^[a-z_][a-z0-9_$]*$/i.test(name)) { - arg_strings.push(sub('%s=%r', name, value)) - } else { - star_args[name] = value - } - } - if (Object.keys(star_args).length) { - arg_strings.push(sub('**%s', repr(star_args))) - } - return sub('%s(%s)', type_name, arg_strings.join(', ')) - } - - toString() { - return this[util.inspect.custom]() - } - - _get_kwargs() { - return Object.entries(this) - } - - _get_args() { - return [] - } - } -} - - -function _copy_items(items) { - if (items === undefined) { - return [] - } - return items.slice(0) -} - - -// =============== -// Formatting Help -// =============== -const HelpFormatter = _camelcase_alias(_callable(class HelpFormatter { - /* - * Formatter for generating usage messages and argument help strings. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - constructor() { - let [ - prog, - indent_increment, - max_help_position, - width - ] = _parse_opts(arguments, { - prog: no_default, - indent_increment: 2, - max_help_position: 24, - width: undefined - }) - - // default setting for width - if (width === undefined) { - width = get_terminal_size().columns - width -= 2 - } - - this._prog = prog - this._indent_increment = indent_increment - this._max_help_position = Math.min(max_help_position, - Math.max(width - 20, indent_increment * 2)) - this._width = width - - this._current_indent = 0 - this._level = 0 - this._action_max_length = 0 - - this._root_section = this._Section(this, undefined) - this._current_section = this._root_section - - this._whitespace_matcher = /[ \t\n\r\f\v]+/g // equivalent to python /\s+/ with ASCII flag - this._long_break_matcher = /\n\n\n+/g - } - - // =============================== - // Section and indentation methods - // =============================== - _indent() { - this._current_indent += this._indent_increment - this._level += 1 - } - - _dedent() { - this._current_indent -= this._indent_increment - assert(this._current_indent >= 0, 'Indent decreased below 0.') - this._level -= 1 - } - - _add_item(func, args) { - this._current_section.items.push([ func, args ]) - } - - // ======================== - // Message building methods - // ======================== - start_section(heading) { - this._indent() - let section = this._Section(this, this._current_section, heading) - this._add_item(section.format_help.bind(section), []) - this._current_section = section - } - - end_section() { - this._current_section = this._current_section.parent - this._dedent() - } - - add_text(text) { - if (text !== SUPPRESS && text !== undefined) { - this._add_item(this._format_text.bind(this), [text]) - } - } - - add_usage(usage, actions, groups, prefix = undefined) { - if (usage !== SUPPRESS) { - let args = [ usage, actions, groups, prefix ] - this._add_item(this._format_usage.bind(this), args) - } - } - - add_argument(action) { - if (action.help !== SUPPRESS) { - - // find all invocations - let invocations = [this._format_action_invocation(action)] - for (let subaction of this._iter_indented_subactions(action)) { - invocations.push(this._format_action_invocation(subaction)) - } - - // update the maximum item length - let invocation_length = Math.max(...invocations.map(invocation => invocation.length)) - let action_length = invocation_length + this._current_indent - this._action_max_length = Math.max(this._action_max_length, - action_length) - - // add the item to the list - this._add_item(this._format_action.bind(this), [action]) - } - } - - add_arguments(actions) { - for (let action of actions) { - this.add_argument(action) - } - } - - // ======================= - // Help-formatting methods - // ======================= - format_help() { - let help = this._root_section.format_help() - if (help) { - help = help.replace(this._long_break_matcher, '\n\n') - help = help.replace(/^\n+|\n+$/g, '') + '\n' - } - return help - } - - _join_parts(part_strings) { - return part_strings.filter(part => part && part !== SUPPRESS).join('') - } - - _format_usage(usage, actions, groups, prefix) { - if (prefix === undefined) { - prefix = 'usage: ' - } - - // if usage is specified, use that - if (usage !== undefined) { - usage = sub(usage, { prog: this._prog }) - - // if no optionals or positionals are available, usage is just prog - } else if (usage === undefined && !actions.length) { - usage = sub('%(prog)s', { prog: this._prog }) - - // if optionals and positionals are available, calculate usage - } else if (usage === undefined) { - let prog = sub('%(prog)s', { prog: this._prog }) - - // split optionals from positionals - let optionals = [] - let positionals = [] - for (let action of actions) { - if (action.option_strings.length) { - optionals.push(action) - } else { - positionals.push(action) - } - } - - // build full usage string - let action_usage = this._format_actions_usage([].concat(optionals).concat(positionals), groups) - usage = [ prog, action_usage ].map(String).join(' ') - - // wrap the usage parts if it's too long - let text_width = this._width - this._current_indent - if (prefix.length + usage.length > text_width) { - - // break usage into wrappable parts - let part_regexp = /\(.*?\)+(?=\s|$)|\[.*?\]+(?=\s|$)|\S+/g - let opt_usage = this._format_actions_usage(optionals, groups) - let pos_usage = this._format_actions_usage(positionals, groups) - let opt_parts = opt_usage.match(part_regexp) || [] - let pos_parts = pos_usage.match(part_regexp) || [] - assert(opt_parts.join(' ') === opt_usage) - assert(pos_parts.join(' ') === pos_usage) - - // helper for wrapping lines - let get_lines = (parts, indent, prefix = undefined) => { - let lines = [] - let line = [] - let line_len - if (prefix !== undefined) { - line_len = prefix.length - 1 - } else { - line_len = indent.length - 1 - } - for (let part of parts) { - if (line_len + 1 + part.length > text_width && line) { - lines.push(indent + line.join(' ')) - line = [] - line_len = indent.length - 1 - } - line.push(part) - line_len += part.length + 1 - } - if (line.length) { - lines.push(indent + line.join(' ')) - } - if (prefix !== undefined) { - lines[0] = lines[0].slice(indent.length) - } - return lines - } - - let lines - - // if prog is short, follow it with optionals or positionals - if (prefix.length + prog.length <= 0.75 * text_width) { - let indent = ' '.repeat(prefix.length + prog.length + 1) - if (opt_parts.length) { - lines = get_lines([prog].concat(opt_parts), indent, prefix) - lines = lines.concat(get_lines(pos_parts, indent)) - } else if (pos_parts.length) { - lines = get_lines([prog].concat(pos_parts), indent, prefix) - } else { - lines = [prog] - } - - // if prog is long, put it on its own line - } else { - let indent = ' '.repeat(prefix.length) - let parts = [].concat(opt_parts).concat(pos_parts) - lines = get_lines(parts, indent) - if (lines.length > 1) { - lines = [] - lines = lines.concat(get_lines(opt_parts, indent)) - lines = lines.concat(get_lines(pos_parts, indent)) - } - lines = [prog].concat(lines) - } - - // join lines into usage - usage = lines.join('\n') - } - } - - // prefix with 'usage:' - return sub('%s%s\n\n', prefix, usage) - } - - _format_actions_usage(actions, groups) { - // find group indices and identify actions in groups - let group_actions = new Set() - let inserts = {} - for (let group of groups) { - let start = actions.indexOf(group._group_actions[0]) - if (start === -1) { - continue - } else { - let end = start + group._group_actions.length - if (_array_equal(actions.slice(start, end), group._group_actions)) { - for (let action of group._group_actions) { - group_actions.add(action) - } - if (!group.required) { - if (start in inserts) { - inserts[start] += ' [' - } else { - inserts[start] = '[' - } - if (end in inserts) { - inserts[end] += ']' - } else { - inserts[end] = ']' - } - } else { - if (start in inserts) { - inserts[start] += ' (' - } else { - inserts[start] = '(' - } - if (end in inserts) { - inserts[end] += ')' - } else { - inserts[end] = ')' - } - } - for (let i of range(start + 1, end)) { - inserts[i] = '|' - } - } - } - } - - // collect all actions format strings - let parts = [] - for (let [ i, action ] of Object.entries(actions)) { - - // suppressed arguments are marked with None - // remove | separators for suppressed arguments - if (action.help === SUPPRESS) { - parts.push(undefined) - if (inserts[+i] === '|') { - delete inserts[+i] - } else if (inserts[+i + 1] === '|') { - delete inserts[+i + 1] - } - - // produce all arg strings - } else if (!action.option_strings.length) { - let default_value = this._get_default_metavar_for_positional(action) - let part = this._format_args(action, default_value) - - // if it's in a group, strip the outer [] - if (group_actions.has(action)) { - if (part[0] === '[' && part[part.length - 1] === ']') { - part = part.slice(1, -1) - } - } - - // add the action string to the list - parts.push(part) - - // produce the first way to invoke the option in brackets - } else { - let option_string = action.option_strings[0] - let part - - // if the Optional doesn't take a value, format is: - // -s or --long - if (action.nargs === 0) { - part = action.format_usage() - - // if the Optional takes a value, format is: - // -s ARGS or --long ARGS - } else { - let default_value = this._get_default_metavar_for_optional(action) - let args_string = this._format_args(action, default_value) - part = sub('%s %s', option_string, args_string) - } - - // make it look optional if it's not required or in a group - if (!action.required && !group_actions.has(action)) { - part = sub('[%s]', part) - } - - // add the action string to the list - parts.push(part) - } - } - - // insert things at the necessary indices - for (let i of Object.keys(inserts).map(Number).sort((a, b) => b - a)) { - parts.splice(+i, 0, inserts[+i]) - } - - // join all the action items with spaces - let text = parts.filter(Boolean).join(' ') - - // clean up separators for mutually exclusive groups - text = text.replace(/([\[(]) /g, '$1') - text = text.replace(/ ([\])])/g, '$1') - text = text.replace(/[\[(] *[\])]/g, '') - text = text.replace(/\(([^|]*)\)/g, '$1', text) - text = text.trim() - - // return the text - return text - } - - _format_text(text) { - if (text.includes('%(prog)')) { - text = sub(text, { prog: this._prog }) - } - let text_width = Math.max(this._width - this._current_indent, 11) - let indent = ' '.repeat(this._current_indent) - return this._fill_text(text, text_width, indent) + '\n\n' - } - - _format_action(action) { - // determine the required width and the entry label - let help_position = Math.min(this._action_max_length + 2, - this._max_help_position) - let help_width = Math.max(this._width - help_position, 11) - let action_width = help_position - this._current_indent - 2 - let action_header = this._format_action_invocation(action) - let indent_first - - // no help; start on same line and add a final newline - if (!action.help) { - let tup = [ this._current_indent, '', action_header ] - action_header = sub('%*s%s\n', ...tup) - - // short action name; start on the same line and pad two spaces - } else if (action_header.length <= action_width) { - let tup = [ this._current_indent, '', action_width, action_header ] - action_header = sub('%*s%-*s ', ...tup) - indent_first = 0 - - // long action name; start on the next line - } else { - let tup = [ this._current_indent, '', action_header ] - action_header = sub('%*s%s\n', ...tup) - indent_first = help_position - } - - // collect the pieces of the action help - let parts = [action_header] - - // if there was help for the action, add lines of help text - if (action.help) { - let help_text = this._expand_help(action) - let help_lines = this._split_lines(help_text, help_width) - parts.push(sub('%*s%s\n', indent_first, '', help_lines[0])) - for (let line of help_lines.slice(1)) { - parts.push(sub('%*s%s\n', help_position, '', line)) - } - - // or add a newline if the description doesn't end with one - } else if (!action_header.endsWith('\n')) { - parts.push('\n') - } - - // if there are any sub-actions, add their help as well - for (let subaction of this._iter_indented_subactions(action)) { - parts.push(this._format_action(subaction)) - } - - // return a single string - return this._join_parts(parts) - } - - _format_action_invocation(action) { - if (!action.option_strings.length) { - let default_value = this._get_default_metavar_for_positional(action) - let metavar = this._metavar_formatter(action, default_value)(1)[0] - return metavar - - } else { - let parts = [] - - // if the Optional doesn't take a value, format is: - // -s, --long - if (action.nargs === 0) { - parts = parts.concat(action.option_strings) - - // if the Optional takes a value, format is: - // -s ARGS, --long ARGS - } else { - let default_value = this._get_default_metavar_for_optional(action) - let args_string = this._format_args(action, default_value) - for (let option_string of action.option_strings) { - parts.push(sub('%s %s', option_string, args_string)) - } - } - - return parts.join(', ') - } - } - - _metavar_formatter(action, default_metavar) { - let result - if (action.metavar !== undefined) { - result = action.metavar - } else if (action.choices !== undefined) { - let choice_strs = _choices_to_array(action.choices).map(String) - result = sub('{%s}', choice_strs.join(',')) - } else { - result = default_metavar - } - - function format(tuple_size) { - if (Array.isArray(result)) { - return result - } else { - return Array(tuple_size).fill(result) - } - } - return format - } - - _format_args(action, default_metavar) { - let get_metavar = this._metavar_formatter(action, default_metavar) - let result - if (action.nargs === undefined) { - result = sub('%s', ...get_metavar(1)) - } else if (action.nargs === OPTIONAL) { - result = sub('[%s]', ...get_metavar(1)) - } else if (action.nargs === ZERO_OR_MORE) { - let metavar = get_metavar(1) - if (metavar.length === 2) { - result = sub('[%s [%s ...]]', ...metavar) - } else { - result = sub('[%s ...]', ...metavar) - } - } else if (action.nargs === ONE_OR_MORE) { - result = sub('%s [%s ...]', ...get_metavar(2)) - } else if (action.nargs === REMAINDER) { - result = '...' - } else if (action.nargs === PARSER) { - result = sub('%s ...', ...get_metavar(1)) - } else if (action.nargs === SUPPRESS) { - result = '' - } else { - let formats - try { - formats = range(action.nargs).map(() => '%s') - } catch (err) { - throw new TypeError('invalid nargs value') - } - result = sub(formats.join(' '), ...get_metavar(action.nargs)) - } - return result - } - - _expand_help(action) { - let params = Object.assign({ prog: this._prog }, action) - for (let name of Object.keys(params)) { - if (params[name] === SUPPRESS) { - delete params[name] - } - } - for (let name of Object.keys(params)) { - if (params[name] && params[name].name) { - params[name] = params[name].name - } - } - if (params.choices !== undefined) { - let choices_str = _choices_to_array(params.choices).map(String).join(', ') - params.choices = choices_str - } - // LEGACY (v1 compatibility): camelcase - for (let key of Object.keys(params)) { - let old_name = _to_legacy_name(key) - if (old_name !== key) { - params[old_name] = params[key] - } - } - // end - return sub(this._get_help_string(action), params) - } - - * _iter_indented_subactions(action) { - if (typeof action._get_subactions === 'function') { - this._indent() - yield* action._get_subactions() - this._dedent() - } - } - - _split_lines(text, width) { - text = text.replace(this._whitespace_matcher, ' ').trim() - // The textwrap module is used only for formatting help. - // Delay its import for speeding up the common usage of argparse. - let textwrap = require('./lib/textwrap') - return textwrap.wrap(text, { width }) - } - - _fill_text(text, width, indent) { - text = text.replace(this._whitespace_matcher, ' ').trim() - let textwrap = require('./lib/textwrap') - return textwrap.fill(text, { width, - initial_indent: indent, - subsequent_indent: indent }) - } - - _get_help_string(action) { - return action.help - } - - _get_default_metavar_for_optional(action) { - return action.dest.toUpperCase() - } - - _get_default_metavar_for_positional(action) { - return action.dest - } -})) - -HelpFormatter.prototype._Section = _callable(class _Section { - - constructor(formatter, parent, heading = undefined) { - this.formatter = formatter - this.parent = parent - this.heading = heading - this.items = [] - } - - format_help() { - // format the indented section - if (this.parent !== undefined) { - this.formatter._indent() - } - let item_help = this.formatter._join_parts(this.items.map(([ func, args ]) => func.apply(null, args))) - if (this.parent !== undefined) { - this.formatter._dedent() - } - - // return nothing if the section was empty - if (!item_help) { - return '' - } - - // add the heading if the section was non-empty - let heading - if (this.heading !== SUPPRESS && this.heading !== undefined) { - let current_indent = this.formatter._current_indent - heading = sub('%*s%s:\n', current_indent, '', this.heading) - } else { - heading = '' - } - - // join the section-initial newline, the heading and the help - return this.formatter._join_parts(['\n', heading, item_help, '\n']) - } -}) - - -const RawDescriptionHelpFormatter = _camelcase_alias(_callable(class RawDescriptionHelpFormatter extends HelpFormatter { - /* - * Help message formatter which retains any formatting in descriptions. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _fill_text(text, width, indent) { - return splitlines(text, true).map(line => indent + line).join('') - } -})) - - -const RawTextHelpFormatter = _camelcase_alias(_callable(class RawTextHelpFormatter extends RawDescriptionHelpFormatter { - /* - * Help message formatter which retains formatting of all help text. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _split_lines(text/*, width*/) { - return splitlines(text) - } -})) - - -const ArgumentDefaultsHelpFormatter = _camelcase_alias(_callable(class ArgumentDefaultsHelpFormatter extends HelpFormatter { - /* - * Help message formatter which adds default values to argument help. - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _get_help_string(action) { - let help = action.help - // LEGACY (v1 compatibility): additional check for defaultValue needed - if (!action.help.includes('%(default)') && !action.help.includes('%(defaultValue)')) { - if (action.default !== SUPPRESS) { - let defaulting_nargs = [OPTIONAL, ZERO_OR_MORE] - if (action.option_strings.length || defaulting_nargs.includes(action.nargs)) { - help += ' (default: %(default)s)' - } - } - } - return help - } -})) - - -const MetavarTypeHelpFormatter = _camelcase_alias(_callable(class MetavarTypeHelpFormatter extends HelpFormatter { - /* - * Help message formatter which uses the argument 'type' as the default - * metavar value (instead of the argument 'dest') - * - * Only the name of this class is considered a public API. All the methods - * provided by the class are considered an implementation detail. - */ - - _get_default_metavar_for_optional(action) { - return typeof action.type === 'function' ? action.type.name : action.type - } - - _get_default_metavar_for_positional(action) { - return typeof action.type === 'function' ? action.type.name : action.type - } -})) - - -// ===================== -// Options and Arguments -// ===================== -function _get_action_name(argument) { - if (argument === undefined) { - return undefined - } else if (argument.option_strings.length) { - return argument.option_strings.join('/') - } else if (![ undefined, SUPPRESS ].includes(argument.metavar)) { - return argument.metavar - } else if (![ undefined, SUPPRESS ].includes(argument.dest)) { - return argument.dest - } else { - return undefined - } -} - - -const ArgumentError = _callable(class ArgumentError extends Error { - /* - * An error from creating or using an argument (optional or positional). - * - * The string value of this exception is the message, augmented with - * information about the argument that caused it. - */ - - constructor(argument, message) { - super() - this.name = 'ArgumentError' - this._argument_name = _get_action_name(argument) - this._message = message - this.message = this.str() - } - - str() { - let format - if (this._argument_name === undefined) { - format = '%(message)s' - } else { - format = 'argument %(argument_name)s: %(message)s' - } - return sub(format, { message: this._message, - argument_name: this._argument_name }) - } -}) - - -const ArgumentTypeError = _callable(class ArgumentTypeError extends Error { - /* - * An error from trying to convert a command line string to a type. - */ - - constructor(message) { - super(message) - this.name = 'ArgumentTypeError' - } -}) - - -// ============== -// Action classes -// ============== -const Action = _camelcase_alias(_callable(class Action extends _AttributeHolder(Function) { - /* - * Information about how to convert command line strings to Python objects. - * - * Action objects are used by an ArgumentParser to represent the information - * needed to parse a single argument from one or more strings from the - * command line. The keyword arguments to the Action constructor are also - * all attributes of Action instances. - * - * Keyword Arguments: - * - * - option_strings -- A list of command-line option strings which - * should be associated with this action. - * - * - dest -- The name of the attribute to hold the created object(s) - * - * - nargs -- The number of command-line arguments that should be - * consumed. By default, one argument will be consumed and a single - * value will be produced. Other values include: - * - N (an integer) consumes N arguments (and produces a list) - * - '?' consumes zero or one arguments - * - '*' consumes zero or more arguments (and produces a list) - * - '+' consumes one or more arguments (and produces a list) - * Note that the difference between the default and nargs=1 is that - * with the default, a single value will be produced, while with - * nargs=1, a list containing a single value will be produced. - * - * - const -- The value to be produced if the option is specified and the - * option uses an action that takes no values. - * - * - default -- The value to be produced if the option is not specified. - * - * - type -- A callable that accepts a single string argument, and - * returns the converted value. The standard Python types str, int, - * float, and complex are useful examples of such callables. If None, - * str is used. - * - * - choices -- A container of values that should be allowed. If not None, - * after a command-line argument has been converted to the appropriate - * type, an exception will be raised if it is not a member of this - * collection. - * - * - required -- True if the action must always be specified at the - * command line. This is only meaningful for optional command-line - * arguments. - * - * - help -- The help string describing the argument. - * - * - metavar -- The name to be used for the option's argument with the - * help string. If None, the 'dest' value will be used as the name. - */ - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - // when this class is called as a function, redirect it to .call() method of itself - super('return arguments.callee.call.apply(arguments.callee, arguments)') - - this.option_strings = option_strings - this.dest = dest - this.nargs = nargs - this.const = const_value - this.default = default_value - this.type = type - this.choices = choices - this.required = required - this.help = help - this.metavar = metavar - } - - _get_kwargs() { - let names = [ - 'option_strings', - 'dest', - 'nargs', - 'const', - 'default', - 'type', - 'choices', - 'help', - 'metavar' - ] - return names.map(name => [ name, getattr(this, name) ]) - } - - format_usage() { - return this.option_strings[0] - } - - call(/*parser, namespace, values, option_string = undefined*/) { - throw new Error('.call() not defined') - } -})) - - -const BooleanOptionalAction = _camelcase_alias(_callable(class BooleanOptionalAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - let _option_strings = [] - for (let option_string of option_strings) { - _option_strings.push(option_string) - - if (option_string.startsWith('--')) { - option_string = '--no-' + option_string.slice(2) - _option_strings.push(option_string) - } - } - - if (help !== undefined && default_value !== undefined) { - help += ` (default: ${default_value})` - } - - super({ - option_strings: _option_strings, - dest, - nargs: 0, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values, option_string = undefined) { - if (this.option_strings.includes(option_string)) { - setattr(namespace, this.dest, !option_string.startsWith('--no-')) - } - } - - format_usage() { - return this.option_strings.join(' | ') - } -})) - - -const _StoreAction = _callable(class _StoreAction extends Action { - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - if (nargs === 0) { - throw new TypeError('nargs for store actions must be != 0; if you ' + - 'have nothing to store, actions such as store ' + - 'true or store const may be more appropriate') - } - if (const_value !== undefined && nargs !== OPTIONAL) { - throw new TypeError(sub('nargs must be %r to supply const', OPTIONAL)) - } - super({ - option_strings, - dest, - nargs, - const: const_value, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values/*, option_string = undefined*/) { - setattr(namespace, this.dest, values) - } -}) - - -const _StoreConstAction = _callable(class _StoreConstAction extends Action { - - constructor() { - let [ - option_strings, - dest, - const_value, - default_value, - required, - help - //, metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - const: no_default, - default: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - const: const_value, - default: default_value, - required, - help - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - setattr(namespace, this.dest, this.const) - } -}) - - -const _StoreTrueAction = _callable(class _StoreTrueAction extends _StoreConstAction { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: false, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - const: true, - default: default_value, - required, - help - }) - } -}) - - -const _StoreFalseAction = _callable(class _StoreFalseAction extends _StoreConstAction { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: true, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - const: false, - default: default_value, - required, - help - }) - } -}) - - -const _AppendAction = _callable(class _AppendAction extends Action { - - constructor() { - let [ - option_strings, - dest, - nargs, - const_value, - default_value, - type, - choices, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - nargs: undefined, - const: undefined, - default: undefined, - type: undefined, - choices: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - if (nargs === 0) { - throw new TypeError('nargs for append actions must be != 0; if arg ' + - 'strings are not supplying the value to append, ' + - 'the append const action may be more appropriate') - } - if (const_value !== undefined && nargs !== OPTIONAL) { - throw new TypeError(sub('nargs must be %r to supply const', OPTIONAL)) - } - super({ - option_strings, - dest, - nargs, - const: const_value, - default: default_value, - type, - choices, - required, - help, - metavar - }) - } - - call(parser, namespace, values/*, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items.push(values) - setattr(namespace, this.dest, items) - } -}) - - -const _AppendConstAction = _callable(class _AppendConstAction extends Action { - - constructor() { - let [ - option_strings, - dest, - const_value, - default_value, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - const: no_default, - default: undefined, - required: false, - help: undefined, - metavar: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - const: const_value, - default: default_value, - required, - help, - metavar - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items.push(this.const) - setattr(namespace, this.dest, items) - } -}) - - -const _CountAction = _callable(class _CountAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - required, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: no_default, - default: undefined, - required: false, - help: undefined - }) - - super({ - option_strings, - dest, - nargs: 0, - default: default_value, - required, - help - }) - } - - call(parser, namespace/*, values, option_string = undefined*/) { - let count = getattr(namespace, this.dest, undefined) - if (count === undefined) { - count = 0 - } - setattr(namespace, this.dest, count + 1) - } -}) - - -const _HelpAction = _callable(class _HelpAction extends Action { - - constructor() { - let [ - option_strings, - dest, - default_value, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - dest: SUPPRESS, - default: SUPPRESS, - help: undefined - }) - - super({ - option_strings, - dest, - default: default_value, - nargs: 0, - help - }) - } - - call(parser/*, namespace, values, option_string = undefined*/) { - parser.print_help() - parser.exit() - } -}) - - -const _VersionAction = _callable(class _VersionAction extends Action { - - constructor() { - let [ - option_strings, - version, - dest, - default_value, - help - ] = _parse_opts(arguments, { - option_strings: no_default, - version: undefined, - dest: SUPPRESS, - default: SUPPRESS, - help: "show program's version number and exit" - }) - - super({ - option_strings, - dest, - default: default_value, - nargs: 0, - help - }) - this.version = version - } - - call(parser/*, namespace, values, option_string = undefined*/) { - let version = this.version - if (version === undefined) { - version = parser.version - } - let formatter = parser._get_formatter() - formatter.add_text(version) - parser._print_message(formatter.format_help(), process.stdout) - parser.exit() - } -}) - - -const _SubParsersAction = _camelcase_alias(_callable(class _SubParsersAction extends Action { - - constructor() { - let [ - option_strings, - prog, - parser_class, - dest, - required, - help, - metavar - ] = _parse_opts(arguments, { - option_strings: no_default, - prog: no_default, - parser_class: no_default, - dest: SUPPRESS, - required: false, - help: undefined, - metavar: undefined - }) - - let name_parser_map = {} - - super({ - option_strings, - dest, - nargs: PARSER, - choices: name_parser_map, - required, - help, - metavar - }) - - this._prog_prefix = prog - this._parser_class = parser_class - this._name_parser_map = name_parser_map - this._choices_actions = [] - } - - add_parser() { - let [ - name, - kwargs - ] = _parse_opts(arguments, { - name: no_default, - '**kwargs': no_default - }) - - // set prog from the existing prefix - if (kwargs.prog === undefined) { - kwargs.prog = sub('%s %s', this._prog_prefix, name) - } - - let aliases = getattr(kwargs, 'aliases', []) - delete kwargs.aliases - - // create a pseudo-action to hold the choice help - if ('help' in kwargs) { - let help = kwargs.help - delete kwargs.help - let choice_action = this._ChoicesPseudoAction(name, aliases, help) - this._choices_actions.push(choice_action) - } - - // create the parser and add it to the map - let parser = new this._parser_class(kwargs) - this._name_parser_map[name] = parser - - // make parser available under aliases also - for (let alias of aliases) { - this._name_parser_map[alias] = parser - } - - return parser - } - - _get_subactions() { - return this._choices_actions - } - - call(parser, namespace, values/*, option_string = undefined*/) { - let parser_name = values[0] - let arg_strings = values.slice(1) - - // set the parser name if requested - if (this.dest !== SUPPRESS) { - setattr(namespace, this.dest, parser_name) - } - - // select the parser - if (hasattr(this._name_parser_map, parser_name)) { - parser = this._name_parser_map[parser_name] - } else { - let args = {parser_name, - choices: this._name_parser_map.join(', ')} - let msg = sub('unknown parser %(parser_name)r (choices: %(choices)s)', args) - throw new ArgumentError(this, msg) - } - - // parse all the remaining options into the namespace - // store any unrecognized options on the object, so that the top - // level parser can decide what to do with them - - // In case this subparser defines new defaults, we parse them - // in a new namespace object and then update the original - // namespace for the relevant parts. - let subnamespace - [ subnamespace, arg_strings ] = parser.parse_known_args(arg_strings, undefined) - for (let [ key, value ] of Object.entries(subnamespace)) { - setattr(namespace, key, value) - } - - if (arg_strings.length) { - setdefault(namespace, _UNRECOGNIZED_ARGS_ATTR, []) - getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).push(...arg_strings) - } - } -})) - - -_SubParsersAction.prototype._ChoicesPseudoAction = _callable(class _ChoicesPseudoAction extends Action { - constructor(name, aliases, help) { - let metavar = name, dest = name - if (aliases.length) { - metavar += sub(' (%s)', aliases.join(', ')) - } - super({ option_strings: [], dest, help, metavar }) - } -}) - - -const _ExtendAction = _callable(class _ExtendAction extends _AppendAction { - call(parser, namespace, values/*, option_string = undefined*/) { - let items = getattr(namespace, this.dest, undefined) - items = _copy_items(items) - items = items.concat(values) - setattr(namespace, this.dest, items) - } -}) - - -// ============== -// Type classes -// ============== -const FileType = _callable(class FileType extends Function { - /* - * Factory for creating file object types - * - * Instances of FileType are typically passed as type= arguments to the - * ArgumentParser add_argument() method. - * - * Keyword Arguments: - * - mode -- A string indicating how the file is to be opened. Accepts the - * same values as the builtin open() function. - * - bufsize -- The file's desired buffer size. Accepts the same values as - * the builtin open() function. - * - encoding -- The file's encoding. Accepts the same values as the - * builtin open() function. - * - errors -- A string indicating how encoding and decoding errors are to - * be handled. Accepts the same value as the builtin open() function. - */ - - constructor() { - let [ - flags, - encoding, - mode, - autoClose, - emitClose, - start, - end, - highWaterMark, - fs - ] = _parse_opts(arguments, { - flags: 'r', - encoding: undefined, - mode: undefined, // 0o666 - autoClose: undefined, // true - emitClose: undefined, // false - start: undefined, // 0 - end: undefined, // Infinity - highWaterMark: undefined, // 64 * 1024 - fs: undefined - }) - - // when this class is called as a function, redirect it to .call() method of itself - super('return arguments.callee.call.apply(arguments.callee, arguments)') - - Object.defineProperty(this, 'name', { - get() { - return sub('FileType(%r)', flags) - } - }) - this._flags = flags - this._options = {} - if (encoding !== undefined) this._options.encoding = encoding - if (mode !== undefined) this._options.mode = mode - if (autoClose !== undefined) this._options.autoClose = autoClose - if (emitClose !== undefined) this._options.emitClose = emitClose - if (start !== undefined) this._options.start = start - if (end !== undefined) this._options.end = end - if (highWaterMark !== undefined) this._options.highWaterMark = highWaterMark - if (fs !== undefined) this._options.fs = fs - } - - call(string) { - // the special argument "-" means sys.std{in,out} - if (string === '-') { - if (this._flags.includes('r')) { - return process.stdin - } else if (this._flags.includes('w')) { - return process.stdout - } else { - let msg = sub('argument "-" with mode %r', this._flags) - throw new TypeError(msg) - } - } - - // all other arguments are used as file names - let fd - try { - fd = fs.openSync(string, this._flags, this._options.mode) - } catch (e) { - let args = { filename: string, error: e.message } - let message = "can't open '%(filename)s': %(error)s" - throw new ArgumentTypeError(sub(message, args)) - } - - let options = Object.assign({ fd, flags: this._flags }, this._options) - if (this._flags.includes('r')) { - return fs.createReadStream(undefined, options) - } else if (this._flags.includes('w')) { - return fs.createWriteStream(undefined, options) - } else { - let msg = sub('argument "%s" with mode %r', string, this._flags) - throw new TypeError(msg) - } - } - - [util.inspect.custom]() { - let args = [ this._flags ] - let kwargs = Object.entries(this._options).map(([ k, v ]) => { - if (k === 'mode') v = { value: v, [util.inspect.custom]() { return '0o' + this.value.toString(8) } } - return [ k, v ] - }) - let args_str = [] - .concat(args.filter(arg => arg !== -1).map(repr)) - .concat(kwargs.filter(([/*kw*/, arg]) => arg !== undefined) - .map(([kw, arg]) => sub('%s=%r', kw, arg))) - .join(', ') - return sub('%s(%s)', this.constructor.name, args_str) - } - - toString() { - return this[util.inspect.custom]() - } -}) - -// =========================== -// Optional and Positional Parsing -// =========================== -const Namespace = _callable(class Namespace extends _AttributeHolder() { - /* - * Simple object for storing attributes. - * - * Implements equality by attribute names and values, and provides a simple - * string representation. - */ - - constructor(options = {}) { - super() - Object.assign(this, options) - } -}) - -// unset string tag to mimic plain object -Namespace.prototype[Symbol.toStringTag] = undefined - - -const _ActionsContainer = _camelcase_alias(_callable(class _ActionsContainer { - - constructor() { - let [ - description, - prefix_chars, - argument_default, - conflict_handler - ] = _parse_opts(arguments, { - description: no_default, - prefix_chars: no_default, - argument_default: no_default, - conflict_handler: no_default - }) - - this.description = description - this.argument_default = argument_default - this.prefix_chars = prefix_chars - this.conflict_handler = conflict_handler - - // set up registries - this._registries = {} - - // register actions - this.register('action', undefined, _StoreAction) - this.register('action', 'store', _StoreAction) - this.register('action', 'store_const', _StoreConstAction) - this.register('action', 'store_true', _StoreTrueAction) - this.register('action', 'store_false', _StoreFalseAction) - this.register('action', 'append', _AppendAction) - this.register('action', 'append_const', _AppendConstAction) - this.register('action', 'count', _CountAction) - this.register('action', 'help', _HelpAction) - this.register('action', 'version', _VersionAction) - this.register('action', 'parsers', _SubParsersAction) - this.register('action', 'extend', _ExtendAction) - // LEGACY (v1 compatibility): camelcase variants - ;[ 'storeConst', 'storeTrue', 'storeFalse', 'appendConst' ].forEach(old_name => { - let new_name = _to_new_name(old_name) - this.register('action', old_name, util.deprecate(this._registry_get('action', new_name), - sub('{action: "%s"} is renamed to {action: "%s"}', old_name, new_name))) - }) - // end - - // raise an exception if the conflict handler is invalid - this._get_handler() - - // action storage - this._actions = [] - this._option_string_actions = {} - - // groups - this._action_groups = [] - this._mutually_exclusive_groups = [] - - // defaults storage - this._defaults = {} - - // determines whether an "option" looks like a negative number - this._negative_number_matcher = /^-\d+$|^-\d*\.\d+$/ - - // whether or not there are any optionals that look like negative - // numbers -- uses a list so it can be shared and edited - this._has_negative_number_optionals = [] - } - - // ==================== - // Registration methods - // ==================== - register(registry_name, value, object) { - let registry = setdefault(this._registries, registry_name, {}) - registry[value] = object - } - - _registry_get(registry_name, value, default_value = undefined) { - return getattr(this._registries[registry_name], value, default_value) - } - - // ================================== - // Namespace default accessor methods - // ================================== - set_defaults(kwargs) { - Object.assign(this._defaults, kwargs) - - // if these defaults match any existing arguments, replace - // the previous default on the object with the new one - for (let action of this._actions) { - if (action.dest in kwargs) { - action.default = kwargs[action.dest] - } - } - } - - get_default(dest) { - for (let action of this._actions) { - if (action.dest === dest && action.default !== undefined) { - return action.default - } - } - return this._defaults[dest] - } - - - // ======================= - // Adding argument actions - // ======================= - add_argument() { - /* - * add_argument(dest, ..., name=value, ...) - * add_argument(option_string, option_string, ..., name=value, ...) - */ - let [ - args, - kwargs - ] = _parse_opts(arguments, { - '*args': no_default, - '**kwargs': no_default - }) - // LEGACY (v1 compatibility), old-style add_argument([ args ], { options }) - if (args.length === 1 && Array.isArray(args[0])) { - args = args[0] - deprecate('argument-array', - sub('use add_argument(%(args)s, {...}) instead of add_argument([ %(args)s ], { ... })', { - args: args.map(repr).join(', ') - })) - } - // end - - // if no positional args are supplied or only one is supplied and - // it doesn't look like an option string, parse a positional - // argument - let chars = this.prefix_chars - if (!args.length || args.length === 1 && !chars.includes(args[0][0])) { - if (args.length && 'dest' in kwargs) { - throw new TypeError('dest supplied twice for positional argument') - } - kwargs = this._get_positional_kwargs(...args, kwargs) - - // otherwise, we're adding an optional argument - } else { - kwargs = this._get_optional_kwargs(...args, kwargs) - } - - // if no default was supplied, use the parser-level default - if (!('default' in kwargs)) { - let dest = kwargs.dest - if (dest in this._defaults) { - kwargs.default = this._defaults[dest] - } else if (this.argument_default !== undefined) { - kwargs.default = this.argument_default - } - } - - // create the action object, and add it to the parser - let action_class = this._pop_action_class(kwargs) - if (typeof action_class !== 'function') { - throw new TypeError(sub('unknown action "%s"', action_class)) - } - // eslint-disable-next-line new-cap - let action = new action_class(kwargs) - - // raise an error if the action type is not callable - let type_func = this._registry_get('type', action.type, action.type) - if (typeof type_func !== 'function') { - throw new TypeError(sub('%r is not callable', type_func)) - } - - if (type_func === FileType) { - throw new TypeError(sub('%r is a FileType class object, instance of it' + - ' must be passed', type_func)) - } - - // raise an error if the metavar does not match the type - if ('_get_formatter' in this) { - try { - this._get_formatter()._format_args(action, undefined) - } catch (err) { - // check for 'invalid nargs value' is an artifact of TypeError and ValueError in js being the same - if (err instanceof TypeError && err.message !== 'invalid nargs value') { - throw new TypeError('length of metavar tuple does not match nargs') - } else { - throw err - } - } - } - - return this._add_action(action) - } - - add_argument_group() { - let group = _ArgumentGroup(this, ...arguments) - this._action_groups.push(group) - return group - } - - add_mutually_exclusive_group() { - // eslint-disable-next-line no-use-before-define - let group = _MutuallyExclusiveGroup(this, ...arguments) - this._mutually_exclusive_groups.push(group) - return group - } - - _add_action(action) { - // resolve any conflicts - this._check_conflict(action) - - // add to actions list - this._actions.push(action) - action.container = this - - // index the action by any option strings it has - for (let option_string of action.option_strings) { - this._option_string_actions[option_string] = action - } - - // set the flag if any option strings look like negative numbers - for (let option_string of action.option_strings) { - if (this._negative_number_matcher.test(option_string)) { - if (!this._has_negative_number_optionals.length) { - this._has_negative_number_optionals.push(true) - } - } - } - - // return the created action - return action - } - - _remove_action(action) { - _array_remove(this._actions, action) - } - - _add_container_actions(container) { - // collect groups by titles - let title_group_map = {} - for (let group of this._action_groups) { - if (group.title in title_group_map) { - let msg = 'cannot merge actions - two groups are named %r' - throw new TypeError(sub(msg, group.title)) - } - title_group_map[group.title] = group - } - - // map each action to its group - let group_map = new Map() - for (let group of container._action_groups) { - - // if a group with the title exists, use that, otherwise - // create a new group matching the container's group - if (!(group.title in title_group_map)) { - title_group_map[group.title] = this.add_argument_group({ - title: group.title, - description: group.description, - conflict_handler: group.conflict_handler - }) - } - - // map the actions to their new group - for (let action of group._group_actions) { - group_map.set(action, title_group_map[group.title]) - } - } - - // add container's mutually exclusive groups - // NOTE: if add_mutually_exclusive_group ever gains title= and - // description= then this code will need to be expanded as above - for (let group of container._mutually_exclusive_groups) { - let mutex_group = this.add_mutually_exclusive_group({ - required: group.required - }) - - // map the actions to their new mutex group - for (let action of group._group_actions) { - group_map.set(action, mutex_group) - } - } - - // add all actions to this container or their group - for (let action of container._actions) { - group_map.get(action)._add_action(action) - } - } - - _get_positional_kwargs() { - let [ - dest, - kwargs - ] = _parse_opts(arguments, { - dest: no_default, - '**kwargs': no_default - }) - - // make sure required is not specified - if ('required' in kwargs) { - let msg = "'required' is an invalid argument for positionals" - throw new TypeError(msg) - } - - // mark positional arguments as required if at least one is - // always required - if (![OPTIONAL, ZERO_OR_MORE].includes(kwargs.nargs)) { - kwargs.required = true - } - if (kwargs.nargs === ZERO_OR_MORE && !('default' in kwargs)) { - kwargs.required = true - } - - // return the keyword arguments with no option strings - return Object.assign(kwargs, { dest, option_strings: [] }) - } - - _get_optional_kwargs() { - let [ - args, - kwargs - ] = _parse_opts(arguments, { - '*args': no_default, - '**kwargs': no_default - }) - - // determine short and long option strings - let option_strings = [] - let long_option_strings = [] - let option_string - for (option_string of args) { - // error on strings that don't start with an appropriate prefix - if (!this.prefix_chars.includes(option_string[0])) { - let args = {option: option_string, - prefix_chars: this.prefix_chars} - let msg = 'invalid option string %(option)r: ' + - 'must start with a character %(prefix_chars)r' - throw new TypeError(sub(msg, args)) - } - - // strings starting with two prefix characters are long options - option_strings.push(option_string) - if (option_string.length > 1 && this.prefix_chars.includes(option_string[1])) { - long_option_strings.push(option_string) - } - } - - // infer destination, '--foo-bar' -> 'foo_bar' and '-x' -> 'x' - let dest = kwargs.dest - delete kwargs.dest - if (dest === undefined) { - let dest_option_string - if (long_option_strings.length) { - dest_option_string = long_option_strings[0] - } else { - dest_option_string = option_strings[0] - } - dest = _string_lstrip(dest_option_string, this.prefix_chars) - if (!dest) { - let msg = 'dest= is required for options like %r' - throw new TypeError(sub(msg, option_string)) - } - dest = dest.replace(/-/g, '_') - } - - // return the updated keyword arguments - return Object.assign(kwargs, { dest, option_strings }) - } - - _pop_action_class(kwargs, default_value = undefined) { - let action = getattr(kwargs, 'action', default_value) - delete kwargs.action - return this._registry_get('action', action, action) - } - - _get_handler() { - // determine function from conflict handler string - let handler_func_name = sub('_handle_conflict_%s', this.conflict_handler) - if (typeof this[handler_func_name] === 'function') { - return this[handler_func_name] - } else { - let msg = 'invalid conflict_resolution value: %r' - throw new TypeError(sub(msg, this.conflict_handler)) - } - } - - _check_conflict(action) { - - // find all options that conflict with this option - let confl_optionals = [] - for (let option_string of action.option_strings) { - if (hasattr(this._option_string_actions, option_string)) { - let confl_optional = this._option_string_actions[option_string] - confl_optionals.push([ option_string, confl_optional ]) - } - } - - // resolve any conflicts - if (confl_optionals.length) { - let conflict_handler = this._get_handler() - conflict_handler.call(this, action, confl_optionals) - } - } - - _handle_conflict_error(action, conflicting_actions) { - let message = conflicting_actions.length === 1 ? - 'conflicting option string: %s' : - 'conflicting option strings: %s' - let conflict_string = conflicting_actions.map(([ option_string/*, action*/ ]) => option_string).join(', ') - throw new ArgumentError(action, sub(message, conflict_string)) - } - - _handle_conflict_resolve(action, conflicting_actions) { - - // remove all conflicting options - for (let [ option_string, action ] of conflicting_actions) { - - // remove the conflicting option - _array_remove(action.option_strings, option_string) - delete this._option_string_actions[option_string] - - // if the option now has no option string, remove it from the - // container holding it - if (!action.option_strings.length) { - action.container._remove_action(action) - } - } - } -})) - - -const _ArgumentGroup = _callable(class _ArgumentGroup extends _ActionsContainer { - - constructor() { - let [ - container, - title, - description, - kwargs - ] = _parse_opts(arguments, { - container: no_default, - title: undefined, - description: undefined, - '**kwargs': no_default - }) - - // add any missing keyword arguments by checking the container - setdefault(kwargs, 'conflict_handler', container.conflict_handler) - setdefault(kwargs, 'prefix_chars', container.prefix_chars) - setdefault(kwargs, 'argument_default', container.argument_default) - super(Object.assign({ description }, kwargs)) - - // group attributes - this.title = title - this._group_actions = [] - - // share most attributes with the container - this._registries = container._registries - this._actions = container._actions - this._option_string_actions = container._option_string_actions - this._defaults = container._defaults - this._has_negative_number_optionals = - container._has_negative_number_optionals - this._mutually_exclusive_groups = container._mutually_exclusive_groups - } - - _add_action(action) { - action = super._add_action(action) - this._group_actions.push(action) - return action - } - - _remove_action(action) { - super._remove_action(action) - _array_remove(this._group_actions, action) - } -}) - - -const _MutuallyExclusiveGroup = _callable(class _MutuallyExclusiveGroup extends _ArgumentGroup { - - constructor() { - let [ - container, - required - ] = _parse_opts(arguments, { - container: no_default, - required: false - }) - - super(container) - this.required = required - this._container = container - } - - _add_action(action) { - if (action.required) { - let msg = 'mutually exclusive arguments must be optional' - throw new TypeError(msg) - } - action = this._container._add_action(action) - this._group_actions.push(action) - return action - } - - _remove_action(action) { - this._container._remove_action(action) - _array_remove(this._group_actions, action) - } -}) - - -const ArgumentParser = _camelcase_alias(_callable(class ArgumentParser extends _AttributeHolder(_ActionsContainer) { - /* - * Object for parsing command line strings into Python objects. - * - * Keyword Arguments: - * - prog -- The name of the program (default: sys.argv[0]) - * - usage -- A usage message (default: auto-generated from arguments) - * - description -- A description of what the program does - * - epilog -- Text following the argument descriptions - * - parents -- Parsers whose arguments should be copied into this one - * - formatter_class -- HelpFormatter class for printing help messages - * - prefix_chars -- Characters that prefix optional arguments - * - fromfile_prefix_chars -- Characters that prefix files containing - * additional arguments - * - argument_default -- The default value for all arguments - * - conflict_handler -- String indicating how to handle conflicts - * - add_help -- Add a -h/-help option - * - allow_abbrev -- Allow long options to be abbreviated unambiguously - * - exit_on_error -- Determines whether or not ArgumentParser exits with - * error info when an error occurs - */ - - constructor() { - let [ - prog, - usage, - description, - epilog, - parents, - formatter_class, - prefix_chars, - fromfile_prefix_chars, - argument_default, - conflict_handler, - add_help, - allow_abbrev, - exit_on_error, - debug, // LEGACY (v1 compatibility), debug mode - version // LEGACY (v1 compatibility), version - ] = _parse_opts(arguments, { - prog: undefined, - usage: undefined, - description: undefined, - epilog: undefined, - parents: [], - formatter_class: HelpFormatter, - prefix_chars: '-', - fromfile_prefix_chars: undefined, - argument_default: undefined, - conflict_handler: 'error', - add_help: true, - allow_abbrev: true, - exit_on_error: true, - debug: undefined, // LEGACY (v1 compatibility), debug mode - version: undefined // LEGACY (v1 compatibility), version - }) - - // LEGACY (v1 compatibility) - if (debug !== undefined) { - deprecate('debug', - 'The "debug" argument to ArgumentParser is deprecated. Please ' + - 'override ArgumentParser.exit function instead.' - ) - } - - if (version !== undefined) { - deprecate('version', - 'The "version" argument to ArgumentParser is deprecated. Please use ' + - "add_argument(..., { action: 'version', version: 'N', ... }) instead." - ) - } - // end - - super({ - description, - prefix_chars, - argument_default, - conflict_handler - }) - - // default setting for prog - if (prog === undefined) { - prog = path.basename(get_argv()[0] || '') - } - - this.prog = prog - this.usage = usage - this.epilog = epilog - this.formatter_class = formatter_class - this.fromfile_prefix_chars = fromfile_prefix_chars - this.add_help = add_help - this.allow_abbrev = allow_abbrev - this.exit_on_error = exit_on_error - // LEGACY (v1 compatibility), debug mode - this.debug = debug - // end - - this._positionals = this.add_argument_group('positional arguments') - this._optionals = this.add_argument_group('optional arguments') - this._subparsers = undefined - - // register types - function identity(string) { - return string - } - this.register('type', undefined, identity) - this.register('type', null, identity) - this.register('type', 'auto', identity) - this.register('type', 'int', function (x) { - let result = Number(x) - if (!Number.isInteger(result)) { - throw new TypeError(sub('could not convert string to int: %r', x)) - } - return result - }) - this.register('type', 'float', function (x) { - let result = Number(x) - if (isNaN(result)) { - throw new TypeError(sub('could not convert string to float: %r', x)) - } - return result - }) - this.register('type', 'str', String) - // LEGACY (v1 compatibility): custom types - this.register('type', 'string', - util.deprecate(String, 'use {type:"str"} or {type:String} instead of {type:"string"}')) - // end - - // add help argument if necessary - // (using explicit default to override global argument_default) - let default_prefix = prefix_chars.includes('-') ? '-' : prefix_chars[0] - if (this.add_help) { - this.add_argument( - default_prefix + 'h', - default_prefix.repeat(2) + 'help', - { - action: 'help', - default: SUPPRESS, - help: 'show this help message and exit' - } - ) - } - // LEGACY (v1 compatibility), version - if (version) { - this.add_argument( - default_prefix + 'v', - default_prefix.repeat(2) + 'version', - { - action: 'version', - default: SUPPRESS, - version: this.version, - help: "show program's version number and exit" - } - ) - } - // end - - // add parent arguments and defaults - for (let parent of parents) { - this._add_container_actions(parent) - Object.assign(this._defaults, parent._defaults) - } - } - - // ======================= - // Pretty __repr__ methods - // ======================= - _get_kwargs() { - let names = [ - 'prog', - 'usage', - 'description', - 'formatter_class', - 'conflict_handler', - 'add_help' - ] - return names.map(name => [ name, getattr(this, name) ]) - } - - // ================================== - // Optional/Positional adding methods - // ================================== - add_subparsers() { - let [ - kwargs - ] = _parse_opts(arguments, { - '**kwargs': no_default - }) - - if (this._subparsers !== undefined) { - this.error('cannot have multiple subparser arguments') - } - - // add the parser class to the arguments if it's not present - setdefault(kwargs, 'parser_class', this.constructor) - - if ('title' in kwargs || 'description' in kwargs) { - let title = getattr(kwargs, 'title', 'subcommands') - let description = getattr(kwargs, 'description', undefined) - delete kwargs.title - delete kwargs.description - this._subparsers = this.add_argument_group(title, description) - } else { - this._subparsers = this._positionals - } - - // prog defaults to the usage message of this parser, skipping - // optional arguments and with no "usage:" prefix - if (kwargs.prog === undefined) { - let formatter = this._get_formatter() - let positionals = this._get_positional_actions() - let groups = this._mutually_exclusive_groups - formatter.add_usage(this.usage, positionals, groups, '') - kwargs.prog = formatter.format_help().trim() - } - - // create the parsers action and add it to the positionals list - let parsers_class = this._pop_action_class(kwargs, 'parsers') - // eslint-disable-next-line new-cap - let action = new parsers_class(Object.assign({ option_strings: [] }, kwargs)) - this._subparsers._add_action(action) - - // return the created parsers action - return action - } - - _add_action(action) { - if (action.option_strings.length) { - this._optionals._add_action(action) - } else { - this._positionals._add_action(action) - } - return action - } - - _get_optional_actions() { - return this._actions.filter(action => action.option_strings.length) - } - - _get_positional_actions() { - return this._actions.filter(action => !action.option_strings.length) - } - - // ===================================== - // Command line argument parsing methods - // ===================================== - parse_args(args = undefined, namespace = undefined) { - let argv - [ args, argv ] = this.parse_known_args(args, namespace) - if (argv && argv.length > 0) { - let msg = 'unrecognized arguments: %s' - this.error(sub(msg, argv.join(' '))) - } - return args - } - - parse_known_args(args = undefined, namespace = undefined) { - if (args === undefined) { - args = get_argv().slice(1) - } - - // default Namespace built from parser defaults - if (namespace === undefined) { - namespace = new Namespace() - } - - // add any action defaults that aren't present - for (let action of this._actions) { - if (action.dest !== SUPPRESS) { - if (!hasattr(namespace, action.dest)) { - if (action.default !== SUPPRESS) { - setattr(namespace, action.dest, action.default) - } - } - } - } - - // add any parser defaults that aren't present - for (let dest of Object.keys(this._defaults)) { - if (!hasattr(namespace, dest)) { - setattr(namespace, dest, this._defaults[dest]) - } - } - - // parse the arguments and exit if there are any errors - if (this.exit_on_error) { - try { - [ namespace, args ] = this._parse_known_args(args, namespace) - } catch (err) { - if (err instanceof ArgumentError) { - this.error(err.message) - } else { - throw err - } - } - } else { - [ namespace, args ] = this._parse_known_args(args, namespace) - } - - if (hasattr(namespace, _UNRECOGNIZED_ARGS_ATTR)) { - args = args.concat(getattr(namespace, _UNRECOGNIZED_ARGS_ATTR)) - delattr(namespace, _UNRECOGNIZED_ARGS_ATTR) - } - - return [ namespace, args ] - } - - _parse_known_args(arg_strings, namespace) { - // replace arg strings that are file references - if (this.fromfile_prefix_chars !== undefined) { - arg_strings = this._read_args_from_files(arg_strings) - } - - // map all mutually exclusive arguments to the other arguments - // they can't occur with - let action_conflicts = new Map() - for (let mutex_group of this._mutually_exclusive_groups) { - let group_actions = mutex_group._group_actions - for (let [ i, mutex_action ] of Object.entries(mutex_group._group_actions)) { - let conflicts = action_conflicts.get(mutex_action) || [] - conflicts = conflicts.concat(group_actions.slice(0, +i)) - conflicts = conflicts.concat(group_actions.slice(+i + 1)) - action_conflicts.set(mutex_action, conflicts) - } - } - - // find all option indices, and determine the arg_string_pattern - // which has an 'O' if there is an option at an index, - // an 'A' if there is an argument, or a '-' if there is a '--' - let option_string_indices = {} - let arg_string_pattern_parts = [] - let arg_strings_iter = Object.entries(arg_strings)[Symbol.iterator]() - for (let [ i, arg_string ] of arg_strings_iter) { - - // all args after -- are non-options - if (arg_string === '--') { - arg_string_pattern_parts.push('-') - for ([ i, arg_string ] of arg_strings_iter) { - arg_string_pattern_parts.push('A') - } - - // otherwise, add the arg to the arg strings - // and note the index if it was an option - } else { - let option_tuple = this._parse_optional(arg_string) - let pattern - if (option_tuple === undefined) { - pattern = 'A' - } else { - option_string_indices[i] = option_tuple - pattern = 'O' - } - arg_string_pattern_parts.push(pattern) - } - } - - // join the pieces together to form the pattern - let arg_strings_pattern = arg_string_pattern_parts.join('') - - // converts arg strings to the appropriate and then takes the action - let seen_actions = new Set() - let seen_non_default_actions = new Set() - let extras - - let take_action = (action, argument_strings, option_string = undefined) => { - seen_actions.add(action) - let argument_values = this._get_values(action, argument_strings) - - // error if this argument is not allowed with other previously - // seen arguments, assuming that actions that use the default - // value don't really count as "present" - if (argument_values !== action.default) { - seen_non_default_actions.add(action) - for (let conflict_action of action_conflicts.get(action) || []) { - if (seen_non_default_actions.has(conflict_action)) { - let msg = 'not allowed with argument %s' - let action_name = _get_action_name(conflict_action) - throw new ArgumentError(action, sub(msg, action_name)) - } - } - } - - // take the action if we didn't receive a SUPPRESS value - // (e.g. from a default) - if (argument_values !== SUPPRESS) { - action(this, namespace, argument_values, option_string) - } - } - - // function to convert arg_strings into an optional action - let consume_optional = start_index => { - - // get the optional identified at this index - let option_tuple = option_string_indices[start_index] - let [ action, option_string, explicit_arg ] = option_tuple - - // identify additional optionals in the same arg string - // (e.g. -xyz is the same as -x -y -z if no args are required) - let action_tuples = [] - let stop - for (;;) { - - // if we found no optional action, skip it - if (action === undefined) { - extras.push(arg_strings[start_index]) - return start_index + 1 - } - - // if there is an explicit argument, try to match the - // optional's string arguments to only this - if (explicit_arg !== undefined) { - let arg_count = this._match_argument(action, 'A') - - // if the action is a single-dash option and takes no - // arguments, try to parse more single-dash options out - // of the tail of the option string - let chars = this.prefix_chars - if (arg_count === 0 && !chars.includes(option_string[1])) { - action_tuples.push([ action, [], option_string ]) - let char = option_string[0] - option_string = char + explicit_arg[0] - let new_explicit_arg = explicit_arg.slice(1) || undefined - let optionals_map = this._option_string_actions - if (hasattr(optionals_map, option_string)) { - action = optionals_map[option_string] - explicit_arg = new_explicit_arg - } else { - let msg = 'ignored explicit argument %r' - throw new ArgumentError(action, sub(msg, explicit_arg)) - } - - // if the action expect exactly one argument, we've - // successfully matched the option; exit the loop - } else if (arg_count === 1) { - stop = start_index + 1 - let args = [ explicit_arg ] - action_tuples.push([ action, args, option_string ]) - break - - // error if a double-dash option did not use the - // explicit argument - } else { - let msg = 'ignored explicit argument %r' - throw new ArgumentError(action, sub(msg, explicit_arg)) - } - - // if there is no explicit argument, try to match the - // optional's string arguments with the following strings - // if successful, exit the loop - } else { - let start = start_index + 1 - let selected_patterns = arg_strings_pattern.slice(start) - let arg_count = this._match_argument(action, selected_patterns) - stop = start + arg_count - let args = arg_strings.slice(start, stop) - action_tuples.push([ action, args, option_string ]) - break - } - } - - // add the Optional to the list and return the index at which - // the Optional's string args stopped - assert(action_tuples.length) - for (let [ action, args, option_string ] of action_tuples) { - take_action(action, args, option_string) - } - return stop - } - - // the list of Positionals left to be parsed; this is modified - // by consume_positionals() - let positionals = this._get_positional_actions() - - // function to convert arg_strings into positional actions - let consume_positionals = start_index => { - // match as many Positionals as possible - let selected_pattern = arg_strings_pattern.slice(start_index) - let arg_counts = this._match_arguments_partial(positionals, selected_pattern) - - // slice off the appropriate arg strings for each Positional - // and add the Positional and its args to the list - for (let i = 0; i < positionals.length && i < arg_counts.length; i++) { - let action = positionals[i] - let arg_count = arg_counts[i] - let args = arg_strings.slice(start_index, start_index + arg_count) - start_index += arg_count - take_action(action, args) - } - - // slice off the Positionals that we just parsed and return the - // index at which the Positionals' string args stopped - positionals = positionals.slice(arg_counts.length) - return start_index - } - - // consume Positionals and Optionals alternately, until we have - // passed the last option string - extras = [] - let start_index = 0 - let max_option_string_index = Math.max(-1, ...Object.keys(option_string_indices).map(Number)) - while (start_index <= max_option_string_index) { - - // consume any Positionals preceding the next option - let next_option_string_index = Math.min( - // eslint-disable-next-line no-loop-func - ...Object.keys(option_string_indices).map(Number).filter(index => index >= start_index) - ) - if (start_index !== next_option_string_index) { - let positionals_end_index = consume_positionals(start_index) - - // only try to parse the next optional if we didn't consume - // the option string during the positionals parsing - if (positionals_end_index > start_index) { - start_index = positionals_end_index - continue - } else { - start_index = positionals_end_index - } - } - - // if we consumed all the positionals we could and we're not - // at the index of an option string, there were extra arguments - if (!(start_index in option_string_indices)) { - let strings = arg_strings.slice(start_index, next_option_string_index) - extras = extras.concat(strings) - start_index = next_option_string_index - } - - // consume the next optional and any arguments for it - start_index = consume_optional(start_index) - } - - // consume any positionals following the last Optional - let stop_index = consume_positionals(start_index) - - // if we didn't consume all the argument strings, there were extras - extras = extras.concat(arg_strings.slice(stop_index)) - - // make sure all required actions were present and also convert - // action defaults which were not given as arguments - let required_actions = [] - for (let action of this._actions) { - if (!seen_actions.has(action)) { - if (action.required) { - required_actions.push(_get_action_name(action)) - } else { - // Convert action default now instead of doing it before - // parsing arguments to avoid calling convert functions - // twice (which may fail) if the argument was given, but - // only if it was defined already in the namespace - if (action.default !== undefined && - typeof action.default === 'string' && - hasattr(namespace, action.dest) && - action.default === getattr(namespace, action.dest)) { - setattr(namespace, action.dest, - this._get_value(action, action.default)) - } - } - } - } - - if (required_actions.length) { - this.error(sub('the following arguments are required: %s', - required_actions.join(', '))) - } - - // make sure all required groups had one option present - for (let group of this._mutually_exclusive_groups) { - if (group.required) { - let no_actions_used = true - for (let action of group._group_actions) { - if (seen_non_default_actions.has(action)) { - no_actions_used = false - break - } - } - - // if no actions were used, report the error - if (no_actions_used) { - let names = group._group_actions - .filter(action => action.help !== SUPPRESS) - .map(action => _get_action_name(action)) - let msg = 'one of the arguments %s is required' - this.error(sub(msg, names.join(' '))) - } - } - } - - // return the updated namespace and the extra arguments - return [ namespace, extras ] - } - - _read_args_from_files(arg_strings) { - // expand arguments referencing files - let new_arg_strings = [] - for (let arg_string of arg_strings) { - - // for regular arguments, just add them back into the list - if (!arg_string || !this.fromfile_prefix_chars.includes(arg_string[0])) { - new_arg_strings.push(arg_string) - - // replace arguments referencing files with the file content - } else { - try { - let args_file = fs.readFileSync(arg_string.slice(1), 'utf8') - let arg_strings = [] - for (let arg_line of splitlines(args_file)) { - for (let arg of this.convert_arg_line_to_args(arg_line)) { - arg_strings.push(arg) - } - } - arg_strings = this._read_args_from_files(arg_strings) - new_arg_strings = new_arg_strings.concat(arg_strings) - } catch (err) { - this.error(err.message) - } - } - } - - // return the modified argument list - return new_arg_strings - } - - convert_arg_line_to_args(arg_line) { - return [arg_line] - } - - _match_argument(action, arg_strings_pattern) { - // match the pattern for this action to the arg strings - let nargs_pattern = this._get_nargs_pattern(action) - let match = arg_strings_pattern.match(new RegExp('^' + nargs_pattern)) - - // raise an exception if we weren't able to find a match - if (match === null) { - let nargs_errors = { - undefined: 'expected one argument', - [OPTIONAL]: 'expected at most one argument', - [ONE_OR_MORE]: 'expected at least one argument' - } - let msg = nargs_errors[action.nargs] - if (msg === undefined) { - msg = sub(action.nargs === 1 ? 'expected %s argument' : 'expected %s arguments', action.nargs) - } - throw new ArgumentError(action, msg) - } - - // return the number of arguments matched - return match[1].length - } - - _match_arguments_partial(actions, arg_strings_pattern) { - // progressively shorten the actions list by slicing off the - // final actions until we find a match - let result = [] - for (let i of range(actions.length, 0, -1)) { - let actions_slice = actions.slice(0, i) - let pattern = actions_slice.map(action => this._get_nargs_pattern(action)).join('') - let match = arg_strings_pattern.match(new RegExp('^' + pattern)) - if (match !== null) { - result = result.concat(match.slice(1).map(string => string.length)) - break - } - } - - // return the list of arg string counts - return result - } - - _parse_optional(arg_string) { - // if it's an empty string, it was meant to be a positional - if (!arg_string) { - return undefined - } - - // if it doesn't start with a prefix, it was meant to be positional - if (!this.prefix_chars.includes(arg_string[0])) { - return undefined - } - - // if the option string is present in the parser, return the action - if (arg_string in this._option_string_actions) { - let action = this._option_string_actions[arg_string] - return [ action, arg_string, undefined ] - } - - // if it's just a single character, it was meant to be positional - if (arg_string.length === 1) { - return undefined - } - - // if the option string before the "=" is present, return the action - if (arg_string.includes('=')) { - let [ option_string, explicit_arg ] = _string_split(arg_string, '=', 1) - if (option_string in this._option_string_actions) { - let action = this._option_string_actions[option_string] - return [ action, option_string, explicit_arg ] - } - } - - // search through all possible prefixes of the option string - // and all actions in the parser for possible interpretations - let option_tuples = this._get_option_tuples(arg_string) - - // if multiple actions match, the option string was ambiguous - if (option_tuples.length > 1) { - let options = option_tuples.map(([ /*action*/, option_string/*, explicit_arg*/ ]) => option_string).join(', ') - let args = {option: arg_string, matches: options} - let msg = 'ambiguous option: %(option)s could match %(matches)s' - this.error(sub(msg, args)) - - // if exactly one action matched, this segmentation is good, - // so return the parsed action - } else if (option_tuples.length === 1) { - let [ option_tuple ] = option_tuples - return option_tuple - } - - // if it was not found as an option, but it looks like a negative - // number, it was meant to be positional - // unless there are negative-number-like options - if (this._negative_number_matcher.test(arg_string)) { - if (!this._has_negative_number_optionals.length) { - return undefined - } - } - - // if it contains a space, it was meant to be a positional - if (arg_string.includes(' ')) { - return undefined - } - - // it was meant to be an optional but there is no such option - // in this parser (though it might be a valid option in a subparser) - return [ undefined, arg_string, undefined ] - } - - _get_option_tuples(option_string) { - let result = [] - - // option strings starting with two prefix characters are only - // split at the '=' - let chars = this.prefix_chars - if (chars.includes(option_string[0]) && chars.includes(option_string[1])) { - if (this.allow_abbrev) { - let option_prefix, explicit_arg - if (option_string.includes('=')) { - [ option_prefix, explicit_arg ] = _string_split(option_string, '=', 1) - } else { - option_prefix = option_string - explicit_arg = undefined - } - for (let option_string of Object.keys(this._option_string_actions)) { - if (option_string.startsWith(option_prefix)) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, explicit_arg ] - result.push(tup) - } - } - } - - // single character options can be concatenated with their arguments - // but multiple character options always have to have their argument - // separate - } else if (chars.includes(option_string[0]) && !chars.includes(option_string[1])) { - let option_prefix = option_string - let explicit_arg = undefined - let short_option_prefix = option_string.slice(0, 2) - let short_explicit_arg = option_string.slice(2) - - for (let option_string of Object.keys(this._option_string_actions)) { - if (option_string === short_option_prefix) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, short_explicit_arg ] - result.push(tup) - } else if (option_string.startsWith(option_prefix)) { - let action = this._option_string_actions[option_string] - let tup = [ action, option_string, explicit_arg ] - result.push(tup) - } - } - - // shouldn't ever get here - } else { - this.error(sub('unexpected option string: %s', option_string)) - } - - // return the collected option tuples - return result - } - - _get_nargs_pattern(action) { - // in all examples below, we have to allow for '--' args - // which are represented as '-' in the pattern - let nargs = action.nargs - let nargs_pattern - - // the default (None) is assumed to be a single argument - if (nargs === undefined) { - nargs_pattern = '(-*A-*)' - - // allow zero or one arguments - } else if (nargs === OPTIONAL) { - nargs_pattern = '(-*A?-*)' - - // allow zero or more arguments - } else if (nargs === ZERO_OR_MORE) { - nargs_pattern = '(-*[A-]*)' - - // allow one or more arguments - } else if (nargs === ONE_OR_MORE) { - nargs_pattern = '(-*A[A-]*)' - - // allow any number of options or arguments - } else if (nargs === REMAINDER) { - nargs_pattern = '([-AO]*)' - - // allow one argument followed by any number of options or arguments - } else if (nargs === PARSER) { - nargs_pattern = '(-*A[-AO]*)' - - // suppress action, like nargs=0 - } else if (nargs === SUPPRESS) { - nargs_pattern = '(-*-*)' - - // all others should be integers - } else { - nargs_pattern = sub('(-*%s-*)', 'A'.repeat(nargs).split('').join('-*')) - } - - // if this is an optional action, -- is not allowed - if (action.option_strings.length) { - nargs_pattern = nargs_pattern.replace(/-\*/g, '') - nargs_pattern = nargs_pattern.replace(/-/g, '') - } - - // return the pattern - return nargs_pattern - } - - // ======================== - // Alt command line argument parsing, allowing free intermix - // ======================== - - parse_intermixed_args(args = undefined, namespace = undefined) { - let argv - [ args, argv ] = this.parse_known_intermixed_args(args, namespace) - if (argv.length) { - let msg = 'unrecognized arguments: %s' - this.error(sub(msg, argv.join(' '))) - } - return args - } - - parse_known_intermixed_args(args = undefined, namespace = undefined) { - // returns a namespace and list of extras - // - // positional can be freely intermixed with optionals. optionals are - // first parsed with all positional arguments deactivated. The 'extras' - // are then parsed. If the parser definition is incompatible with the - // intermixed assumptions (e.g. use of REMAINDER, subparsers) a - // TypeError is raised. - // - // positionals are 'deactivated' by setting nargs and default to - // SUPPRESS. This blocks the addition of that positional to the - // namespace - - let extras - let positionals = this._get_positional_actions() - let a = positionals.filter(action => [ PARSER, REMAINDER ].includes(action.nargs)) - if (a.length) { - throw new TypeError(sub('parse_intermixed_args: positional arg' + - ' with nargs=%s', a[0].nargs)) - } - - for (let group of this._mutually_exclusive_groups) { - for (let action of group._group_actions) { - if (positionals.includes(action)) { - throw new TypeError('parse_intermixed_args: positional in' + - ' mutuallyExclusiveGroup') - } - } - } - - let save_usage - try { - save_usage = this.usage - let remaining_args - try { - if (this.usage === undefined) { - // capture the full usage for use in error messages - this.usage = this.format_usage().slice(7) - } - for (let action of positionals) { - // deactivate positionals - action.save_nargs = action.nargs - // action.nargs = 0 - action.nargs = SUPPRESS - action.save_default = action.default - action.default = SUPPRESS - } - [ namespace, remaining_args ] = this.parse_known_args(args, - namespace) - for (let action of positionals) { - // remove the empty positional values from namespace - let attr = getattr(namespace, action.dest) - if (Array.isArray(attr) && attr.length === 0) { - // eslint-disable-next-line no-console - console.warn(sub('Do not expect %s in %s', action.dest, namespace)) - delattr(namespace, action.dest) - } - } - } finally { - // restore nargs and usage before exiting - for (let action of positionals) { - action.nargs = action.save_nargs - action.default = action.save_default - } - } - let optionals = this._get_optional_actions() - try { - // parse positionals. optionals aren't normally required, but - // they could be, so make sure they aren't. - for (let action of optionals) { - action.save_required = action.required - action.required = false - } - for (let group of this._mutually_exclusive_groups) { - group.save_required = group.required - group.required = false - } - [ namespace, extras ] = this.parse_known_args(remaining_args, - namespace) - } finally { - // restore parser values before exiting - for (let action of optionals) { - action.required = action.save_required - } - for (let group of this._mutually_exclusive_groups) { - group.required = group.save_required - } - } - } finally { - this.usage = save_usage - } - return [ namespace, extras ] - } - - // ======================== - // Value conversion methods - // ======================== - _get_values(action, arg_strings) { - // for everything but PARSER, REMAINDER args, strip out first '--' - if (![PARSER, REMAINDER].includes(action.nargs)) { - try { - _array_remove(arg_strings, '--') - } catch (err) {} - } - - let value - // optional argument produces a default when not present - if (!arg_strings.length && action.nargs === OPTIONAL) { - if (action.option_strings.length) { - value = action.const - } else { - value = action.default - } - if (typeof value === 'string') { - value = this._get_value(action, value) - this._check_value(action, value) - } - - // when nargs='*' on a positional, if there were no command-line - // args, use the default if it is anything other than None - } else if (!arg_strings.length && action.nargs === ZERO_OR_MORE && - !action.option_strings.length) { - if (action.default !== undefined) { - value = action.default - } else { - value = arg_strings - } - this._check_value(action, value) - - // single argument or optional argument produces a single value - } else if (arg_strings.length === 1 && [undefined, OPTIONAL].includes(action.nargs)) { - let arg_string = arg_strings[0] - value = this._get_value(action, arg_string) - this._check_value(action, value) - - // REMAINDER arguments convert all values, checking none - } else if (action.nargs === REMAINDER) { - value = arg_strings.map(v => this._get_value(action, v)) - - // PARSER arguments convert all values, but check only the first - } else if (action.nargs === PARSER) { - value = arg_strings.map(v => this._get_value(action, v)) - this._check_value(action, value[0]) - - // SUPPRESS argument does not put anything in the namespace - } else if (action.nargs === SUPPRESS) { - value = SUPPRESS - - // all other types of nargs produce a list - } else { - value = arg_strings.map(v => this._get_value(action, v)) - for (let v of value) { - this._check_value(action, v) - } - } - - // return the converted value - return value - } - - _get_value(action, arg_string) { - let type_func = this._registry_get('type', action.type, action.type) - if (typeof type_func !== 'function') { - let msg = '%r is not callable' - throw new ArgumentError(action, sub(msg, type_func)) - } - - // convert the value to the appropriate type - let result - try { - try { - result = type_func(arg_string) - } catch (err) { - // Dear TC39, why would you ever consider making es6 classes not callable? - // We had one universal interface, [[Call]], which worked for anything - // (with familiar this-instanceof guard for classes). Now we have two. - if (err instanceof TypeError && - /Class constructor .* cannot be invoked without 'new'/.test(err.message)) { - // eslint-disable-next-line new-cap - result = new type_func(arg_string) - } else { - throw err - } - } - - } catch (err) { - // ArgumentTypeErrors indicate errors - if (err instanceof ArgumentTypeError) { - //let name = getattr(action.type, 'name', repr(action.type)) - let msg = err.message - throw new ArgumentError(action, msg) - - // TypeErrors or ValueErrors also indicate errors - } else if (err instanceof TypeError) { - let name = getattr(action.type, 'name', repr(action.type)) - let args = {type: name, value: arg_string} - let msg = 'invalid %(type)s value: %(value)r' - throw new ArgumentError(action, sub(msg, args)) - } else { - throw err - } - } - - // return the converted value - return result - } - - _check_value(action, value) { - // converted value must be one of the choices (if specified) - if (action.choices !== undefined && !_choices_to_array(action.choices).includes(value)) { - let args = {value, - choices: _choices_to_array(action.choices).map(repr).join(', ')} - let msg = 'invalid choice: %(value)r (choose from %(choices)s)' - throw new ArgumentError(action, sub(msg, args)) - } - } - - // ======================= - // Help-formatting methods - // ======================= - format_usage() { - let formatter = this._get_formatter() - formatter.add_usage(this.usage, this._actions, - this._mutually_exclusive_groups) - return formatter.format_help() - } - - format_help() { - let formatter = this._get_formatter() - - // usage - formatter.add_usage(this.usage, this._actions, - this._mutually_exclusive_groups) - - // description - formatter.add_text(this.description) - - // positionals, optionals and user-defined groups - for (let action_group of this._action_groups) { - formatter.start_section(action_group.title) - formatter.add_text(action_group.description) - formatter.add_arguments(action_group._group_actions) - formatter.end_section() - } - - // epilog - formatter.add_text(this.epilog) - - // determine help from format above - return formatter.format_help() - } - - _get_formatter() { - // eslint-disable-next-line new-cap - return new this.formatter_class({ prog: this.prog }) - } - - // ===================== - // Help-printing methods - // ===================== - print_usage(file = undefined) { - if (file === undefined) file = process.stdout - this._print_message(this.format_usage(), file) - } - - print_help(file = undefined) { - if (file === undefined) file = process.stdout - this._print_message(this.format_help(), file) - } - - _print_message(message, file = undefined) { - if (message) { - if (file === undefined) file = process.stderr - file.write(message) - } - } - - // =============== - // Exiting methods - // =============== - exit(status = 0, message = undefined) { - if (message) { - this._print_message(message, process.stderr) - } - process.exit(status) - } - - error(message) { - /* - * error(message: string) - * - * Prints a usage message incorporating the message to stderr and - * exits. - * - * If you override this in a subclass, it should not return -- it - * should either exit or raise an exception. - */ - - // LEGACY (v1 compatibility), debug mode - if (this.debug === true) throw new Error(message) - // end - this.print_usage(process.stderr) - let args = {prog: this.prog, message: message} - this.exit(2, sub('%(prog)s: error: %(message)s\n', args)) - } -})) - - -module.exports = { - ArgumentParser, - ArgumentError, - ArgumentTypeError, - BooleanOptionalAction, - FileType, - HelpFormatter, - ArgumentDefaultsHelpFormatter, - RawDescriptionHelpFormatter, - RawTextHelpFormatter, - MetavarTypeHelpFormatter, - Namespace, - Action, - ONE_OR_MORE, - OPTIONAL, - PARSER, - REMAINDER, - SUPPRESS, - ZERO_OR_MORE -} - -// LEGACY (v1 compatibility), Const alias -Object.defineProperty(module.exports, 'Const', { - get() { - let result = {} - Object.entries({ ONE_OR_MORE, OPTIONAL, PARSER, REMAINDER, SUPPRESS, ZERO_OR_MORE }).forEach(([ n, v ]) => { - Object.defineProperty(result, n, { - get() { - deprecate(n, sub('use argparse.%s instead of argparse.Const.%s', n, n)) - return v - } - }) - }) - Object.entries({ _UNRECOGNIZED_ARGS_ATTR }).forEach(([ n, v ]) => { - Object.defineProperty(result, n, { - get() { - deprecate(n, sub('argparse.Const.%s is an internal symbol and will no longer be available', n)) - return v - } - }) - }) - return result - }, - enumerable: false -}) -// end diff --git a/node_modules/eslint/node_modules/argparse/lib/sub.js b/node_modules/eslint/node_modules/argparse/lib/sub.js deleted file mode 100644 index e3eb3215..00000000 --- a/node_modules/eslint/node_modules/argparse/lib/sub.js +++ /dev/null @@ -1,67 +0,0 @@ -// Limited implementation of python % string operator, supports only %s and %r for now -// (other formats are not used here, but may appear in custom templates) - -'use strict' - -const { inspect } = require('util') - - -module.exports = function sub(pattern, ...values) { - let regex = /%(?:(%)|(-)?(\*)?(?:\((\w+)\))?([A-Za-z]))/g - - let result = pattern.replace(regex, function (_, is_literal, is_left_align, is_padded, name, format) { - if (is_literal) return '%' - - let padded_count = 0 - if (is_padded) { - if (values.length === 0) throw new TypeError('not enough arguments for format string') - padded_count = values.shift() - if (!Number.isInteger(padded_count)) throw new TypeError('* wants int') - } - - let str - if (name !== undefined) { - let dict = values[0] - if (typeof dict !== 'object' || dict === null) throw new TypeError('format requires a mapping') - if (!(name in dict)) throw new TypeError(`no such key: '${name}'`) - str = dict[name] - } else { - if (values.length === 0) throw new TypeError('not enough arguments for format string') - str = values.shift() - } - - switch (format) { - case 's': - str = String(str) - break - case 'r': - str = inspect(str) - break - case 'd': - case 'i': - if (typeof str !== 'number') { - throw new TypeError(`%${format} format: a number is required, not ${typeof str}`) - } - str = String(str.toFixed(0)) - break - default: - throw new TypeError(`unsupported format character '${format}'`) - } - - if (padded_count > 0) { - return is_left_align ? str.padEnd(padded_count) : str.padStart(padded_count) - } else { - return str - } - }) - - if (values.length) { - if (values.length === 1 && typeof values[0] === 'object' && values[0] !== null) { - // mapping - } else { - throw new TypeError('not all arguments converted during string formatting') - } - } - - return result -} diff --git a/node_modules/eslint/node_modules/argparse/lib/textwrap.js b/node_modules/eslint/node_modules/argparse/lib/textwrap.js deleted file mode 100644 index 23d51cdb..00000000 --- a/node_modules/eslint/node_modules/argparse/lib/textwrap.js +++ /dev/null @@ -1,440 +0,0 @@ -// Partial port of python's argparse module, version 3.9.0 (only wrap and fill functions): -// https://github.com/python/cpython/blob/v3.9.0b4/Lib/textwrap.py - -'use strict' - -/* - * Text wrapping and filling. - */ - -// Copyright (C) 1999-2001 Gregory P. Ward. -// Copyright (C) 2002, 2003 Python Software Foundation. -// Copyright (C) 2020 argparse.js authors -// Originally written by Greg Ward - -// Hardcode the recognized whitespace characters to the US-ASCII -// whitespace characters. The main reason for doing this is that -// some Unicode spaces (like \u00a0) are non-breaking whitespaces. -// -// This less funky little regex just split on recognized spaces. E.g. -// "Hello there -- you goof-ball, use the -b option!" -// splits into -// Hello/ /there/ /--/ /you/ /goof-ball,/ /use/ /the/ /-b/ /option!/ -const wordsep_simple_re = /([\t\n\x0b\x0c\r ]+)/ - -class TextWrapper { - /* - * Object for wrapping/filling text. The public interface consists of - * the wrap() and fill() methods; the other methods are just there for - * subclasses to override in order to tweak the default behaviour. - * If you want to completely replace the main wrapping algorithm, - * you'll probably have to override _wrap_chunks(). - * - * Several instance attributes control various aspects of wrapping: - * width (default: 70) - * the maximum width of wrapped lines (unless break_long_words - * is false) - * initial_indent (default: "") - * string that will be prepended to the first line of wrapped - * output. Counts towards the line's width. - * subsequent_indent (default: "") - * string that will be prepended to all lines save the first - * of wrapped output; also counts towards each line's width. - * expand_tabs (default: true) - * Expand tabs in input text to spaces before further processing. - * Each tab will become 0 .. 'tabsize' spaces, depending on its position - * in its line. If false, each tab is treated as a single character. - * tabsize (default: 8) - * Expand tabs in input text to 0 .. 'tabsize' spaces, unless - * 'expand_tabs' is false. - * replace_whitespace (default: true) - * Replace all whitespace characters in the input text by spaces - * after tab expansion. Note that if expand_tabs is false and - * replace_whitespace is true, every tab will be converted to a - * single space! - * fix_sentence_endings (default: false) - * Ensure that sentence-ending punctuation is always followed - * by two spaces. Off by default because the algorithm is - * (unavoidably) imperfect. - * break_long_words (default: true) - * Break words longer than 'width'. If false, those words will not - * be broken, and some lines might be longer than 'width'. - * break_on_hyphens (default: true) - * Allow breaking hyphenated words. If true, wrapping will occur - * preferably on whitespaces and right after hyphens part of - * compound words. - * drop_whitespace (default: true) - * Drop leading and trailing whitespace from lines. - * max_lines (default: None) - * Truncate wrapped lines. - * placeholder (default: ' [...]') - * Append to the last line of truncated text. - */ - - constructor(options = {}) { - let { - width = 70, - initial_indent = '', - subsequent_indent = '', - expand_tabs = true, - replace_whitespace = true, - fix_sentence_endings = false, - break_long_words = true, - drop_whitespace = true, - break_on_hyphens = true, - tabsize = 8, - max_lines = undefined, - placeholder=' [...]' - } = options - - this.width = width - this.initial_indent = initial_indent - this.subsequent_indent = subsequent_indent - this.expand_tabs = expand_tabs - this.replace_whitespace = replace_whitespace - this.fix_sentence_endings = fix_sentence_endings - this.break_long_words = break_long_words - this.drop_whitespace = drop_whitespace - this.break_on_hyphens = break_on_hyphens - this.tabsize = tabsize - this.max_lines = max_lines - this.placeholder = placeholder - } - - - // -- Private methods ----------------------------------------------- - // (possibly useful for subclasses to override) - - _munge_whitespace(text) { - /* - * _munge_whitespace(text : string) -> string - * - * Munge whitespace in text: expand tabs and convert all other - * whitespace characters to spaces. Eg. " foo\\tbar\\n\\nbaz" - * becomes " foo bar baz". - */ - if (this.expand_tabs) { - text = text.replace(/\t/g, ' '.repeat(this.tabsize)) // not strictly correct in js - } - if (this.replace_whitespace) { - text = text.replace(/[\t\n\x0b\x0c\r]/g, ' ') - } - return text - } - - _split(text) { - /* - * _split(text : string) -> [string] - * - * Split the text to wrap into indivisible chunks. Chunks are - * not quite the same as words; see _wrap_chunks() for full - * details. As an example, the text - * Look, goof-ball -- use the -b option! - * breaks into the following chunks: - * 'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ', - * 'use', ' ', 'the', ' ', '-b', ' ', 'option!' - * if break_on_hyphens is True, or in: - * 'Look,', ' ', 'goof-ball', ' ', '--', ' ', - * 'use', ' ', 'the', ' ', '-b', ' ', option!' - * otherwise. - */ - let chunks = text.split(wordsep_simple_re) - chunks = chunks.filter(Boolean) - return chunks - } - - _handle_long_word(reversed_chunks, cur_line, cur_len, width) { - /* - * _handle_long_word(chunks : [string], - * cur_line : [string], - * cur_len : int, width : int) - * - * Handle a chunk of text (most likely a word, not whitespace) that - * is too long to fit in any line. - */ - // Figure out when indent is larger than the specified width, and make - // sure at least one character is stripped off on every pass - let space_left - if (width < 1) { - space_left = 1 - } else { - space_left = width - cur_len - } - - // If we're allowed to break long words, then do so: put as much - // of the next chunk onto the current line as will fit. - if (this.break_long_words) { - cur_line.push(reversed_chunks[reversed_chunks.length - 1].slice(0, space_left)) - reversed_chunks[reversed_chunks.length - 1] = reversed_chunks[reversed_chunks.length - 1].slice(space_left) - - // Otherwise, we have to preserve the long word intact. Only add - // it to the current line if there's nothing already there -- - // that minimizes how much we violate the width constraint. - } else if (!cur_line) { - cur_line.push(...reversed_chunks.pop()) - } - - // If we're not allowed to break long words, and there's already - // text on the current line, do nothing. Next time through the - // main loop of _wrap_chunks(), we'll wind up here again, but - // cur_len will be zero, so the next line will be entirely - // devoted to the long word that we can't handle right now. - } - - _wrap_chunks(chunks) { - /* - * _wrap_chunks(chunks : [string]) -> [string] - * - * Wrap a sequence of text chunks and return a list of lines of - * length 'self.width' or less. (If 'break_long_words' is false, - * some lines may be longer than this.) Chunks correspond roughly - * to words and the whitespace between them: each chunk is - * indivisible (modulo 'break_long_words'), but a line break can - * come between any two chunks. Chunks should not have internal - * whitespace; ie. a chunk is either all whitespace or a "word". - * Whitespace chunks will be removed from the beginning and end of - * lines, but apart from that whitespace is preserved. - */ - let lines = [] - let indent - if (this.width <= 0) { - throw Error(`invalid width ${this.width} (must be > 0)`) - } - if (this.max_lines !== undefined) { - if (this.max_lines > 1) { - indent = this.subsequent_indent - } else { - indent = this.initial_indent - } - if (indent.length + this.placeholder.trimStart().length > this.width) { - throw Error('placeholder too large for max width') - } - } - - // Arrange in reverse order so items can be efficiently popped - // from a stack of chucks. - chunks = chunks.reverse() - - while (chunks.length > 0) { - - // Start the list of chunks that will make up the current line. - // cur_len is just the length of all the chunks in cur_line. - let cur_line = [] - let cur_len = 0 - - // Figure out which static string will prefix this line. - let indent - if (lines) { - indent = this.subsequent_indent - } else { - indent = this.initial_indent - } - - // Maximum width for this line. - let width = this.width - indent.length - - // First chunk on line is whitespace -- drop it, unless this - // is the very beginning of the text (ie. no lines started yet). - if (this.drop_whitespace && chunks[chunks.length - 1].trim() === '' && lines.length > 0) { - chunks.pop() - } - - while (chunks.length > 0) { - let l = chunks[chunks.length - 1].length - - // Can at least squeeze this chunk onto the current line. - if (cur_len + l <= width) { - cur_line.push(chunks.pop()) - cur_len += l - - // Nope, this line is full. - } else { - break - } - } - - // The current line is full, and the next chunk is too big to - // fit on *any* line (not just this one). - if (chunks.length && chunks[chunks.length - 1].length > width) { - this._handle_long_word(chunks, cur_line, cur_len, width) - cur_len = cur_line.map(l => l.length).reduce((a, b) => a + b, 0) - } - - // If the last chunk on this line is all whitespace, drop it. - if (this.drop_whitespace && cur_line.length > 0 && cur_line[cur_line.length - 1].trim() === '') { - cur_len -= cur_line[cur_line.length - 1].length - cur_line.pop() - } - - if (cur_line) { - if (this.max_lines === undefined || - lines.length + 1 < this.max_lines || - (chunks.length === 0 || - this.drop_whitespace && - chunks.length === 1 && - !chunks[0].trim()) && cur_len <= width) { - // Convert current line back to a string and store it in - // list of all lines (return value). - lines.push(indent + cur_line.join('')) - } else { - let had_break = false - while (cur_line) { - if (cur_line[cur_line.length - 1].trim() && - cur_len + this.placeholder.length <= width) { - cur_line.push(this.placeholder) - lines.push(indent + cur_line.join('')) - had_break = true - break - } - cur_len -= cur_line[-1].length - cur_line.pop() - } - if (!had_break) { - if (lines) { - let prev_line = lines[lines.length - 1].trimEnd() - if (prev_line.length + this.placeholder.length <= - this.width) { - lines[lines.length - 1] = prev_line + this.placeholder - break - } - } - lines.push(indent + this.placeholder.lstrip()) - } - break - } - } - } - - return lines - } - - _split_chunks(text) { - text = this._munge_whitespace(text) - return this._split(text) - } - - // -- Public interface ---------------------------------------------- - - wrap(text) { - /* - * wrap(text : string) -> [string] - * - * Reformat the single paragraph in 'text' so it fits in lines of - * no more than 'self.width' columns, and return a list of wrapped - * lines. Tabs in 'text' are expanded with string.expandtabs(), - * and all other whitespace characters (including newline) are - * converted to space. - */ - let chunks = this._split_chunks(text) - // not implemented in js - //if (this.fix_sentence_endings) { - // this._fix_sentence_endings(chunks) - //} - return this._wrap_chunks(chunks) - } - - fill(text) { - /* - * fill(text : string) -> string - * - * Reformat the single paragraph in 'text' to fit in lines of no - * more than 'self.width' columns, and return a new string - * containing the entire wrapped paragraph. - */ - return this.wrap(text).join('\n') - } -} - - -// -- Convenience interface --------------------------------------------- - -function wrap(text, options = {}) { - /* - * Wrap a single paragraph of text, returning a list of wrapped lines. - * - * Reformat the single paragraph in 'text' so it fits in lines of no - * more than 'width' columns, and return a list of wrapped lines. By - * default, tabs in 'text' are expanded with string.expandtabs(), and - * all other whitespace characters (including newline) are converted to - * space. See TextWrapper class for available keyword args to customize - * wrapping behaviour. - */ - let { width = 70, ...kwargs } = options - let w = new TextWrapper(Object.assign({ width }, kwargs)) - return w.wrap(text) -} - -function fill(text, options = {}) { - /* - * Fill a single paragraph of text, returning a new string. - * - * Reformat the single paragraph in 'text' to fit in lines of no more - * than 'width' columns, and return a new string containing the entire - * wrapped paragraph. As with wrap(), tabs are expanded and other - * whitespace characters converted to space. See TextWrapper class for - * available keyword args to customize wrapping behaviour. - */ - let { width = 70, ...kwargs } = options - let w = new TextWrapper(Object.assign({ width }, kwargs)) - return w.fill(text) -} - -// -- Loosely related functionality ------------------------------------- - -let _whitespace_only_re = /^[ \t]+$/mg -let _leading_whitespace_re = /(^[ \t]*)(?:[^ \t\n])/mg - -function dedent(text) { - /* - * Remove any common leading whitespace from every line in `text`. - * - * This can be used to make triple-quoted strings line up with the left - * edge of the display, while still presenting them in the source code - * in indented form. - * - * Note that tabs and spaces are both treated as whitespace, but they - * are not equal: the lines " hello" and "\\thello" are - * considered to have no common leading whitespace. - * - * Entirely blank lines are normalized to a newline character. - */ - // Look for the longest leading string of spaces and tabs common to - // all lines. - let margin = undefined - text = text.replace(_whitespace_only_re, '') - let indents = text.match(_leading_whitespace_re) || [] - for (let indent of indents) { - indent = indent.slice(0, -1) - - if (margin === undefined) { - margin = indent - - // Current line more deeply indented than previous winner: - // no change (previous winner is still on top). - } else if (indent.startsWith(margin)) { - // pass - - // Current line consistent with and no deeper than previous winner: - // it's the new winner. - } else if (margin.startsWith(indent)) { - margin = indent - - // Find the largest common whitespace between current line and previous - // winner. - } else { - for (let i = 0; i < margin.length && i < indent.length; i++) { - if (margin[i] !== indent[i]) { - margin = margin.slice(0, i) - break - } - } - } - } - - if (margin) { - text = text.replace(new RegExp('^' + margin, 'mg'), '') - } - return text -} - -module.exports = { wrap, fill, dedent } diff --git a/node_modules/eslint/node_modules/argparse/package.json b/node_modules/eslint/node_modules/argparse/package.json deleted file mode 100644 index 647d2aff..00000000 --- a/node_modules/eslint/node_modules/argparse/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "argparse", - "description": "CLI arguments parser. Native port of python's argparse.", - "version": "2.0.1", - "keywords": [ - "cli", - "parser", - "argparse", - "option", - "args" - ], - "main": "argparse.js", - "files": [ - "argparse.js", - "lib/" - ], - "license": "Python-2.0", - "repository": "nodeca/argparse", - "scripts": { - "lint": "eslint .", - "test": "npm run lint && nyc mocha", - "coverage": "npm run test && nyc report --reporter html" - }, - "devDependencies": { - "@babel/eslint-parser": "^7.11.0", - "@babel/plugin-syntax-class-properties": "^7.10.4", - "eslint": "^7.5.0", - "mocha": "^8.0.1", - "nyc": "^15.1.0" - } -} diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE b/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE new file mode 100644 index 00000000..17a25538 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/README.md b/node_modules/eslint/node_modules/eslint-visitor-keys/README.md new file mode 100644 index 00000000..3cbbdd39 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/README.md @@ -0,0 +1,120 @@ +# eslint-visitor-keys + +[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys) +[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) + +Constants and utilities about visitor keys to traverse AST. + +## 💿 Installation + +Use [npm] to install. + +```bash +$ npm install eslint-visitor-keys +``` + +### Requirements + +- [Node.js] `^18.18.0`, `^20.9.0`, or `>=21.1.0` + +## 📖 Usage + +To use in an ESM file: + +```js +import * as evk from "eslint-visitor-keys" +``` + +To use in a CommonJS file: + +```js +const evk = require("eslint-visitor-keys") +``` + +### evk.KEYS + +> type: `{ [type: string]: string[] | undefined }` + +Visitor keys. This keys are frozen. + +This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes. + +For example: + +``` +console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"] +``` + +### evk.getKeys(node) + +> type: `(node: object) => string[]` + +Get the visitor keys of a given AST node. + +This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`. + +This will be used to traverse unknown nodes. + +For example: + +```js +const node = { + type: "AssignmentExpression", + left: { type: "Identifier", name: "foo" }, + right: { type: "Literal", value: 0 } +} +console.log(evk.getKeys(node)) // → ["type", "left", "right"] +``` + +### evk.unionWith(additionalKeys) + +> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }` + +Make the union set with `evk.KEYS` and the given keys. + +- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that. +- It removes duplicated keys as keeping the first one. + +For example: + +```js +console.log(evk.unionWith({ + MethodDefinition: ["decorators"] +})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... } +``` + +## 📰 Change log + +See [GitHub releases](https://github.com/eslint/js/releases). + +## 🍻 Contributing + +Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/). + +### Development commands + +- `npm test` runs tests and measures code coverage. +- `npm run lint` checks source codes with ESLint. +- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. + +[npm]: https://www.npmjs.com/ +[Node.js]: https://nodejs.org/ +[ESTree]: https://github.com/estree/estree + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs new file mode 100644 index 00000000..7f58e49b --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs @@ -0,0 +1,396 @@ +'use strict'; + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +exports.KEYS = KEYS; +exports.getKeys = getKeys; +exports.unionWith = unionWith; diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts new file mode 100644 index 00000000..a8684341 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts @@ -0,0 +1,27 @@ +type VisitorKeys$1 = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys$1; + +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +declare function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys; + +type VisitorKeys = VisitorKeys$1; + +export { KEYS, type VisitorKeys, getKeys, unionWith }; diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..e65b7da3 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts @@ -0,0 +1,16 @@ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys: VisitorKeys): VisitorKeys; +export { KEYS }; +export type VisitorKeys = import("./visitor-keys.js").VisitorKeys; +import KEYS from "./visitor-keys.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..2d7ada2f --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,12 @@ +export default KEYS; +export type VisitorKeys = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js new file mode 100644 index 00000000..1fc89b43 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/lib/index.js @@ -0,0 +1,67 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +import KEYS from "./visitor-keys.js"; + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +export { KEYS }; diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js new file mode 100644 index 00000000..41feb4b2 --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/lib/visitor-keys.js @@ -0,0 +1,327 @@ +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +export default KEYS; diff --git a/node_modules/eslint/node_modules/eslint-visitor-keys/package.json b/node_modules/eslint/node_modules/eslint-visitor-keys/package.json new file mode 100644 index 00000000..4dc2123d --- /dev/null +++ b/node_modules/eslint/node_modules/eslint-visitor-keys/package.json @@ -0,0 +1,67 @@ +{ + "name": "eslint-visitor-keys", + "version": "4.2.0", + "description": "Constants and utilities about visitor keys to traverse AST.", + "type": "module", + "main": "dist/eslint-visitor-keys.cjs", + "types": "./dist/index.d.ts", + "exports": { + ".": [ + { + "import": "./lib/index.js", + "require": "./dist/eslint-visitor-keys.cjs" + }, + "./dist/eslint-visitor-keys.cjs" + ], + "./package.json": "./package.json" + }, + "files": [ + "dist/index.d.ts", + "dist/visitor-keys.d.ts", + "dist/eslint-visitor-keys.cjs", + "dist/eslint-visitor-keys.d.cts", + "lib" + ], + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "devDependencies": { + "@types/estree": "^0.0.51", + "@types/estree-jsx": "^0.0.1", + "@typescript-eslint/parser": "^8.7.0", + "c8": "^7.11.0", + "chai": "^4.3.6", + "eslint-release": "^3.2.0", + "esquery": "^1.4.0", + "json-diff": "^0.7.3", + "mocha": "^9.2.1", + "opener": "^1.5.2", + "rollup": "^4.22.4", + "rollup-plugin-dts": "^6.1.1", + "tsd": "^0.31.2", + "typescript": "^5.6.2" + }, + "scripts": { + "build": "npm run build:cjs && npm run build:types", + "build:cjs": "rollup -c", + "build:debug": "npm run build:cjs -- -m && npm run build:types", + "build:types": "tsc -v && tsc", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", + "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", + "test:types": "tsd" + }, + "repository": "eslint/js", + "funding": "https://opencollective.com/eslint", + "keywords": [], + "author": "Toru Nagashima (https://github.com/mysticatea)", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/js/issues" + }, + "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md" +} diff --git a/node_modules/eslint/node_modules/js-yaml/CHANGELOG.md b/node_modules/eslint/node_modules/js-yaml/CHANGELOG.md deleted file mode 100644 index ff2375e0..00000000 --- a/node_modules/eslint/node_modules/js-yaml/CHANGELOG.md +++ /dev/null @@ -1,616 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [4.1.0] - 2021-04-15 -### Added -- Types are now exported as `yaml.types.XXX`. -- Every type now has `options` property with original arguments kept as they were - (see `yaml.types.int.options` as an example). - -### Changed -- `Schema.extend()` now keeps old type order in case of conflicts - (e.g. Schema.extend([ a, b, c ]).extend([ b, a, d ]) is now ordered as `abcd` instead of `cbad`). - - -## [4.0.0] - 2021-01-03 -### Changed -- Check [migration guide](migrate_v3_to_v4.md) to see details for all breaking changes. -- Breaking: "unsafe" tags `!!js/function`, `!!js/regexp`, `!!js/undefined` are - moved to [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) package. -- Breaking: removed `safe*` functions. Use `load`, `loadAll`, `dump` - instead which are all now safe by default. -- `yaml.DEFAULT_SAFE_SCHEMA` and `yaml.DEFAULT_FULL_SCHEMA` are removed, use - `yaml.DEFAULT_SCHEMA` instead. -- `yaml.Schema.create(schema, tags)` is removed, use `schema.extend(tags)` instead. -- `!!binary` now always mapped to `Uint8Array` on load. -- Reduced nesting of `/lib` folder. -- Parse numbers according to YAML 1.2 instead of YAML 1.1 (`01234` is now decimal, - `0o1234` is octal, `1:23` is parsed as string instead of base60). -- `dump()` no longer quotes `:`, `[`, `]`, `(`, `)` except when necessary, #470, #557. -- Line and column in exceptions are now formatted as `(X:Y)` instead of - `at line X, column Y` (also present in compact format), #332. -- Code snippet created in exceptions now contains multiple lines with line numbers. -- `dump()` now serializes `undefined` as `null` in collections and removes keys with - `undefined` in mappings, #571. -- `dump()` with `skipInvalid=true` now serializes invalid items in collections as null. -- Custom tags starting with `!` are now dumped as `!tag` instead of `!`, #576. -- Custom tags starting with `tag:yaml.org,2002:` are now shorthanded using `!!`, #258. - -### Added -- Added `.mjs` (es modules) support. -- Added `quotingType` and `forceQuotes` options for dumper to configure - string literal style, #290, #529. -- Added `styles: { '!!null': 'empty' }` option for dumper - (serializes `{ foo: null }` as "`foo: `"), #570. -- Added `replacer` option (similar to option in JSON.stringify), #339. -- Custom `Tag` can now handle all tags or multiple tags with the same prefix, #385. - -### Fixed -- Astral characters are no longer encoded by `dump()`, #587. -- "duplicate mapping key" exception now points at the correct column, #452. -- Extra commas in flow collections (e.g. `[foo,,bar]`) now throw an exception - instead of producing null, #321. -- `__proto__` key no longer overrides object prototype, #164. -- Removed `bower.json`. -- Tags are now url-decoded in `load()` and url-encoded in `dump()` - (previously usage of custom non-ascii tags may have led to invalid YAML that can't be parsed). -- Anchors now work correctly with empty nodes, #301. -- Fix incorrect parsing of invalid block mapping syntax, #418. -- Throw an error if block sequence/mapping indent contains a tab, #80. - - -## [3.14.1] - 2020-12-07 -### Security -- Fix possible code execution in (already unsafe) `.load()` (in &anchor). - - -## [3.14.0] - 2020-05-22 -### Changed -- Support `safe/loadAll(input, options)` variant of call. -- CI: drop outdated nodejs versions. -- Dev deps bump. - -### Fixed -- Quote `=` in plain scalars #519. -- Check the node type for `!` tag in case user manually specifies it. -- Verify that there are no null-bytes in input. -- Fix wrong quote position when writing condensed flow, #526. - - -## [3.13.1] - 2019-04-05 -### Security -- Fix possible code execution in (already unsafe) `.load()`, #480. - - -## [3.13.0] - 2019-03-20 -### Security -- Security fix: `safeLoad()` can hang when arrays with nested refs - used as key. Now throws exception for nested arrays. #475. - - -## [3.12.2] - 2019-02-26 -### Fixed -- Fix `noArrayIndent` option for root level, #468. - - -## [3.12.1] - 2019-01-05 -### Added -- Added `noArrayIndent` option, #432. - - -## [3.12.0] - 2018-06-02 -### Changed -- Support arrow functions without a block statement, #421. - - -## [3.11.0] - 2018-03-05 -### Added -- Add arrow functions suport for `!!js/function`. - -### Fixed -- Fix dump in bin/octal/hex formats for negative integers, #399. - - -## [3.10.0] - 2017-09-10 -### Fixed -- Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370. -- Dump astrals as codepoints instead of surrogate pair, #368. - - -## [3.9.1] - 2017-07-08 -### Fixed -- Ensure stack is present for custom errors in node 7.+, #351. - - -## [3.9.0] - 2017-07-08 -### Added -- Add `condenseFlow` option (to create pretty URL query params), #346. - -### Fixed -- Support array return from safeLoadAll/loadAll, #350. - - -## [3.8.4] - 2017-05-08 -### Fixed -- Dumper: prevent space after dash for arrays that wrap, #343. - - -## [3.8.3] - 2017-04-05 -### Fixed -- Should not allow numbers to begin and end with underscore, #335. - - -## [3.8.2] - 2017-03-02 -### Fixed -- Fix `!!float 123` (integers) parse, #333. -- Don't allow leading zeros in floats (except 0, 0.xxx). -- Allow positive exponent without sign in floats. - - -## [3.8.1] - 2017-02-07 -### Changed -- Maintenance: update browserified build. - - -## [3.8.0] - 2017-02-07 -### Fixed -- Fix reported position for `duplicated mapping key` errors. - Now points to block start instead of block end. - (#243, thanks to @shockey). - - -## [3.7.0] - 2016-11-12 -### Added -- Support polymorphism for tags (#300, thanks to @monken). - -### Fixed -- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage). - - -## [3.6.1] - 2016-05-11 -### Fixed -- Fix output cut on a pipe, #286. - - -## [3.6.0] - 2016-04-16 -### Fixed -- Dumper rewrite, fix multiple bugs with trailing `\n`. - Big thanks to @aepsilon! -- Loader: fix leading/trailing newlines in block scalars, @aepsilon. - - -## [3.5.5] - 2016-03-17 -### Fixed -- Date parse fix: don't allow dates with on digit in month and day, #268. - - -## [3.5.4] - 2016-03-09 -### Added -- `noCompatMode` for dumper, to disable quoting YAML 1.1 values. - - -## [3.5.3] - 2016-02-11 -### Changed -- Maintenance release. - - -## [3.5.2] - 2016-01-11 -### Changed -- Maintenance: missed comma in bower config. - - -## [3.5.1] - 2016-01-11 -### Changed -- Removed `inherit` dependency, #239. -- Better browserify workaround for esprima load. -- Demo rewrite. - - -## [3.5.0] - 2016-01-10 -### Fixed -- Dumper. Fold strings only, #217. -- Dumper. `norefs` option, to clone linked objects, #229. -- Loader. Throw a warning for duplicate keys, #166. -- Improved browserify support (mark `esprima` & `Buffer` excluded). - - -## [3.4.6] - 2015-11-26 -### Changed -- Use standalone `inherit` to keep browserified files clear. - - -## [3.4.5] - 2015-11-23 -### Added -- Added `lineWidth` option to dumper. - - -## [3.4.4] - 2015-11-21 -### Fixed -- Fixed floats dump (missed dot for scientific format), #220. -- Allow non-printable characters inside quoted scalars, #192. - - -## [3.4.3] - 2015-10-10 -### Changed -- Maintenance release - deps bump (esprima, argparse). - - -## [3.4.2] - 2015-09-09 -### Fixed -- Fixed serialization of duplicated entries in sequences, #205. - Thanks to @vogelsgesang. - - -## [3.4.1] - 2015-09-05 -### Fixed -- Fixed stacktrace handling in generated errors, for browsers (FF/IE). - - -## [3.4.0] - 2015-08-23 -### Changed -- Don't throw on warnings anymore. Use `onWarning` option to catch. -- Throw error on unknown tags (was warning before). -- Reworked internals of error class. - -### Fixed -- Fixed multiline keys dump, #197. Thanks to @tcr. -- Fixed heading line breaks in some scalars (regression). - - -## [3.3.1] - 2015-05-13 -### Added -- Added `.sortKeys` dumper option, thanks to @rjmunro. - -### Fixed -- Fixed astral characters support, #191. - - -## [3.3.0] - 2015-04-26 -### Changed -- Significantly improved long strings formatting in dumper, thanks to @isaacs. -- Strip BOM if exists. - - -## [3.2.7] - 2015-02-19 -### Changed -- Maintenance release. -- Updated dependencies. -- HISTORY.md -> CHANGELOG.md - - -## [3.2.6] - 2015-02-07 -### Fixed -- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE). -- Fixed demo dates dump (#113, thanks to @Hypercubed). - - -## [3.2.5] - 2014-12-28 -### Fixed -- Fixed resolving of all built-in types on empty nodes. -- Fixed invalid warning on empty lines within quoted scalars and flow collections. -- Fixed bug: Tag on an empty node didn't resolve in some cases. - - -## [3.2.4] - 2014-12-19 -### Fixed -- Fixed resolving of !!null tag on an empty node. - - -## [3.2.3] - 2014-11-08 -### Fixed -- Implemented dumping of objects with circular and cross references. -- Partially fixed aliasing of constructed objects. (see issue #141 for details) - - -## [3.2.2] - 2014-09-07 -### Fixed -- Fixed infinite loop on unindented block scalars. -- Rewritten base64 encode/decode in binary type, to keep code licence clear. - - -## [3.2.1] - 2014-08-24 -### Fixed -- Nothig new. Just fix npm publish error. - - -## [3.2.0] - 2014-08-24 -### Added -- Added input piping support to CLI. - -### Fixed -- Fixed typo, that could cause hand on initial indent (#139). - - -## [3.1.0] - 2014-07-07 -### Changed -- 1.5x-2x speed boost. -- Removed deprecated `require('xxx.yml')` support. -- Significant code cleanup and refactoring. -- Internal API changed. If you used custom types - see updated examples. - Others are not affected. -- Even if the input string has no trailing line break character, - it will be parsed as if it has one. -- Added benchmark scripts. -- Moved bower files to /dist folder -- Bugfixes. - - -## [3.0.2] - 2014-02-27 -### Fixed -- Fixed bug: "constructor" string parsed as `null`. - - -## [3.0.1] - 2013-12-22 -### Fixed -- Fixed parsing of literal scalars. (issue #108) -- Prevented adding unnecessary spaces in object dumps. (issue #68) -- Fixed dumping of objects with very long (> 1024 in length) keys. - - -## [3.0.0] - 2013-12-16 -### Changed -- Refactored code. Changed API for custom types. -- Removed output colors in CLI, dump json by default. -- Removed big dependencies from browser version (esprima, buffer). Load `esprima` manually, if `!!js/function` needed. `!!bin` now returns Array in browser -- AMD support. -- Don't quote dumped strings because of `-` & `?` (if not first char). -- __Deprecated__ loading yaml files via `require()`, as not recommended - behaviour for node. - - -## [2.1.3] - 2013-10-16 -### Fixed -- Fix wrong loading of empty block scalars. - - -## [2.1.2] - 2013-10-07 -### Fixed -- Fix unwanted line breaks in folded scalars. - - -## [2.1.1] - 2013-10-02 -### Fixed -- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1 -- Fixed reader bug in JSON-like sequences/mappings. - - -## [2.1.0] - 2013-06-05 -### Added -- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`), - JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`). -- Add `skipInvalid` dumper option. - -### Changed -- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA` - and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`. -- Use `safeLoad` for `require` extension. - -### Fixed -- Bug fix: export `NIL` constant from the public interface. - - -## [2.0.5] - 2013-04-26 -### Security -- Close security issue in !!js/function constructor. - Big thanks to @nealpoole for security audit. - - -## [2.0.4] - 2013-04-08 -### Changed -- Updated .npmignore to reduce package size - - -## [2.0.3] - 2013-02-26 -### Fixed -- Fixed dumping of empty arrays ans objects. ([] and {} instead of null) - - -## [2.0.2] - 2013-02-15 -### Fixed -- Fixed input validation: tabs are printable characters. - - -## [2.0.1] - 2013-02-09 -### Fixed -- Fixed error, when options not passed to function cass - - -## [2.0.0] - 2013-02-09 -### Changed -- Full rewrite. New architecture. Fast one-stage parsing. -- Changed custom types API. -- Added YAML dumper. - - -## [1.0.3] - 2012-11-05 -### Fixed -- Fixed utf-8 files loading. - - -## [1.0.2] - 2012-08-02 -### Fixed -- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44. -- Fix timstamps incorectly parsed in local time when no time part specified. - - -## [1.0.1] - 2012-07-07 -### Fixed -- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong. -- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46. - - -## [1.0.0] - 2012-07-01 -### Changed -- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore. - Fixes #42. -- `require(filename)` now returns a single document and throws an Error if - file contains more than one document. -- CLI was merged back from js-yaml.bin - - -## [0.3.7] - 2012-02-28 -### Fixed -- Fix export of `addConstructor()`. Closes #39. - - -## [0.3.6] - 2012-02-22 -### Changed -- Removed AMD parts - too buggy to use. Need help to rewrite from scratch - -### Fixed -- Removed YUI compressor warning (renamed `double` variable). Closes #40. - - -## [0.3.5] - 2012-01-10 -### Fixed -- Workagound for .npmignore fuckup under windows. Thanks to airportyh. - - -## [0.3.4] - 2011-12-24 -### Fixed -- Fixes str[] for oldIEs support. -- Adds better has change support for browserified demo. -- improves compact output of Error. Closes #33. - - -## [0.3.3] - 2011-12-20 -### Added -- adds `compact` stringification of Errors. - -### Changed -- jsyaml executable moved to separate module. - - -## [0.3.2] - 2011-12-16 -### Added -- Added jsyaml executable. -- Added !!js/function support. Closes #12. - -### Fixed -- Fixes ug with block style scalars. Closes #26. -- All sources are passing JSLint now. -- Fixes bug in Safari. Closes #28. -- Fixes bug in Opers. Closes #29. -- Improves browser support. Closes #20. - - -## [0.3.1] - 2011-11-18 -### Added -- Added AMD support for browserified version. -- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol. -- Added !!js/regexp and !!js/undefined types. Partially solves #12. - -### Changed -- Wrapped browserified js-yaml into closure. - -### Fixed -- Fixed the resolvement of non-specific tags. Closes #17. -- Fixed !!set mapping. -- Fixed month parse in dates. Closes #19. - - -## [0.3.0] - 2011-11-09 -### Added -- Added browserified version. Closes #13. -- Added live demo of browserified version. -- Ported some of the PyYAML tests. See #14. - -### Fixed -- Removed JS.Class dependency. Closes #3. -- Fixed timestamp bug when fraction was given. - - -## [0.2.2] - 2011-11-06 -### Fixed -- Fixed crash on docs without ---. Closes #8. -- Fixed multiline string parse -- Fixed tests/comments for using array as key - - -## [0.2.1] - 2011-11-02 -### Fixed -- Fixed short file read (<4k). Closes #9. - - -## [0.2.0] - 2011-11-02 -### Changed -- First public release - - -[4.1.0]: https://github.com/nodeca/js-yaml/compare/4.0.0...4.1.0 -[4.0.0]: https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0 -[3.14.0]: https://github.com/nodeca/js-yaml/compare/3.13.1...3.14.0 -[3.13.1]: https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1 -[3.13.0]: https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.0 -[3.12.2]: https://github.com/nodeca/js-yaml/compare/3.12.1...3.12.2 -[3.12.1]: https://github.com/nodeca/js-yaml/compare/3.12.0...3.12.1 -[3.12.0]: https://github.com/nodeca/js-yaml/compare/3.11.0...3.12.0 -[3.11.0]: https://github.com/nodeca/js-yaml/compare/3.10.0...3.11.0 -[3.10.0]: https://github.com/nodeca/js-yaml/compare/3.9.1...3.10.0 -[3.9.1]: https://github.com/nodeca/js-yaml/compare/3.9.0...3.9.1 -[3.9.0]: https://github.com/nodeca/js-yaml/compare/3.8.4...3.9.0 -[3.8.4]: https://github.com/nodeca/js-yaml/compare/3.8.3...3.8.4 -[3.8.3]: https://github.com/nodeca/js-yaml/compare/3.8.2...3.8.3 -[3.8.2]: https://github.com/nodeca/js-yaml/compare/3.8.1...3.8.2 -[3.8.1]: https://github.com/nodeca/js-yaml/compare/3.8.0...3.8.1 -[3.8.0]: https://github.com/nodeca/js-yaml/compare/3.7.0...3.8.0 -[3.7.0]: https://github.com/nodeca/js-yaml/compare/3.6.1...3.7.0 -[3.6.1]: https://github.com/nodeca/js-yaml/compare/3.6.0...3.6.1 -[3.6.0]: https://github.com/nodeca/js-yaml/compare/3.5.5...3.6.0 -[3.5.5]: https://github.com/nodeca/js-yaml/compare/3.5.4...3.5.5 -[3.5.4]: https://github.com/nodeca/js-yaml/compare/3.5.3...3.5.4 -[3.5.3]: https://github.com/nodeca/js-yaml/compare/3.5.2...3.5.3 -[3.5.2]: https://github.com/nodeca/js-yaml/compare/3.5.1...3.5.2 -[3.5.1]: https://github.com/nodeca/js-yaml/compare/3.5.0...3.5.1 -[3.5.0]: https://github.com/nodeca/js-yaml/compare/3.4.6...3.5.0 -[3.4.6]: https://github.com/nodeca/js-yaml/compare/3.4.5...3.4.6 -[3.4.5]: https://github.com/nodeca/js-yaml/compare/3.4.4...3.4.5 -[3.4.4]: https://github.com/nodeca/js-yaml/compare/3.4.3...3.4.4 -[3.4.3]: https://github.com/nodeca/js-yaml/compare/3.4.2...3.4.3 -[3.4.2]: https://github.com/nodeca/js-yaml/compare/3.4.1...3.4.2 -[3.4.1]: https://github.com/nodeca/js-yaml/compare/3.4.0...3.4.1 -[3.4.0]: https://github.com/nodeca/js-yaml/compare/3.3.1...3.4.0 -[3.3.1]: https://github.com/nodeca/js-yaml/compare/3.3.0...3.3.1 -[3.3.0]: https://github.com/nodeca/js-yaml/compare/3.2.7...3.3.0 -[3.2.7]: https://github.com/nodeca/js-yaml/compare/3.2.6...3.2.7 -[3.2.6]: https://github.com/nodeca/js-yaml/compare/3.2.5...3.2.6 -[3.2.5]: https://github.com/nodeca/js-yaml/compare/3.2.4...3.2.5 -[3.2.4]: https://github.com/nodeca/js-yaml/compare/3.2.3...3.2.4 -[3.2.3]: https://github.com/nodeca/js-yaml/compare/3.2.2...3.2.3 -[3.2.2]: https://github.com/nodeca/js-yaml/compare/3.2.1...3.2.2 -[3.2.1]: https://github.com/nodeca/js-yaml/compare/3.2.0...3.2.1 -[3.2.0]: https://github.com/nodeca/js-yaml/compare/3.1.0...3.2.0 -[3.1.0]: https://github.com/nodeca/js-yaml/compare/3.0.2...3.1.0 -[3.0.2]: https://github.com/nodeca/js-yaml/compare/3.0.1...3.0.2 -[3.0.1]: https://github.com/nodeca/js-yaml/compare/3.0.0...3.0.1 -[3.0.0]: https://github.com/nodeca/js-yaml/compare/2.1.3...3.0.0 -[2.1.3]: https://github.com/nodeca/js-yaml/compare/2.1.2...2.1.3 -[2.1.2]: https://github.com/nodeca/js-yaml/compare/2.1.1...2.1.2 -[2.1.1]: https://github.com/nodeca/js-yaml/compare/2.1.0...2.1.1 -[2.1.0]: https://github.com/nodeca/js-yaml/compare/2.0.5...2.1.0 -[2.0.5]: https://github.com/nodeca/js-yaml/compare/2.0.4...2.0.5 -[2.0.4]: https://github.com/nodeca/js-yaml/compare/2.0.3...2.0.4 -[2.0.3]: https://github.com/nodeca/js-yaml/compare/2.0.2...2.0.3 -[2.0.2]: https://github.com/nodeca/js-yaml/compare/2.0.1...2.0.2 -[2.0.1]: https://github.com/nodeca/js-yaml/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/js-yaml/compare/1.0.3...2.0.0 -[1.0.3]: https://github.com/nodeca/js-yaml/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/js-yaml/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/js-yaml/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/js-yaml/compare/0.3.7...1.0.0 -[0.3.7]: https://github.com/nodeca/js-yaml/compare/0.3.6...0.3.7 -[0.3.6]: https://github.com/nodeca/js-yaml/compare/0.3.5...0.3.6 -[0.3.5]: https://github.com/nodeca/js-yaml/compare/0.3.4...0.3.5 -[0.3.4]: https://github.com/nodeca/js-yaml/compare/0.3.3...0.3.4 -[0.3.3]: https://github.com/nodeca/js-yaml/compare/0.3.2...0.3.3 -[0.3.2]: https://github.com/nodeca/js-yaml/compare/0.3.1...0.3.2 -[0.3.1]: https://github.com/nodeca/js-yaml/compare/0.3.0...0.3.1 -[0.3.0]: https://github.com/nodeca/js-yaml/compare/0.2.2...0.3.0 -[0.2.2]: https://github.com/nodeca/js-yaml/compare/0.2.1...0.2.2 -[0.2.1]: https://github.com/nodeca/js-yaml/compare/0.2.0...0.2.1 -[0.2.0]: https://github.com/nodeca/js-yaml/releases/tag/0.2.0 diff --git a/node_modules/eslint/node_modules/js-yaml/LICENSE b/node_modules/eslint/node_modules/js-yaml/LICENSE deleted file mode 100644 index 09d3a29e..00000000 --- a/node_modules/eslint/node_modules/js-yaml/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -(The MIT License) - -Copyright (C) 2011-2015 by Vitaly Puzrin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -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. diff --git a/node_modules/eslint/node_modules/js-yaml/README.md b/node_modules/eslint/node_modules/js-yaml/README.md deleted file mode 100644 index 3cbc4bd2..00000000 --- a/node_modules/eslint/node_modules/js-yaml/README.md +++ /dev/null @@ -1,246 +0,0 @@ -JS-YAML - YAML 1.2 parser / writer for JavaScript -================================================= - -[![CI](https://github.com/nodeca/js-yaml/workflows/CI/badge.svg?branch=master)](https://github.com/nodeca/js-yaml/actions) -[![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml) - -__[Online Demo](http://nodeca.github.com/js-yaml/)__ - - -This is an implementation of [YAML](http://yaml.org/), a human-friendly data -serialization language. Started as [PyYAML](http://pyyaml.org/) port, it was -completely rewritten from scratch. Now it's very fast, and supports 1.2 spec. - - -Installation ------------- - -### YAML module for node.js - -``` -npm install js-yaml -``` - - -### CLI executable - -If you want to inspect your YAML files from CLI, install js-yaml globally: - -``` -npm install -g js-yaml -``` - -#### Usage - -``` -usage: js-yaml [-h] [-v] [-c] [-t] file - -Positional arguments: - file File with YAML document(s) - -Optional arguments: - -h, --help Show this help message and exit. - -v, --version Show program's version number and exit. - -c, --compact Display errors in compact mode - -t, --trace Show stack trace on error -``` - - -API ---- - -Here we cover the most 'useful' methods. If you need advanced details (creating -your own tags), see [examples](https://github.com/nodeca/js-yaml/tree/master/examples) -for more info. - -``` javascript -const yaml = require('js-yaml'); -const fs = require('fs'); - -// Get document, or throw exception on error -try { - const doc = yaml.load(fs.readFileSync('/home/ixti/example.yml', 'utf8')); - console.log(doc); -} catch (e) { - console.log(e); -} -``` - - -### load (string [ , options ]) - -Parses `string` as single YAML document. Returns either a -plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does -not support regexps, functions and undefined. - -options: - -- `filename` _(default: null)_ - string to be used as a file path in - error/warning messages. -- `onWarning` _(default: null)_ - function to call on warning messages. - Loader will call this function with an instance of `YAMLException` for each warning. -- `schema` _(default: `DEFAULT_SCHEMA`)_ - specifies a schema to use. - - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects: - http://www.yaml.org/spec/1.2/spec.html#id2802346 - - `JSON_SCHEMA` - all JSON-supported types: - http://www.yaml.org/spec/1.2/spec.html#id2803231 - - `CORE_SCHEMA` - same as `JSON_SCHEMA`: - http://www.yaml.org/spec/1.2/spec.html#id2804923 - - `DEFAULT_SCHEMA` - all supported YAML types. -- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error. - -NOTE: This function **does not** understand multi-document sources, it throws -exception on those. - -NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions. -So, the JSON schema is not as strictly defined in the YAML specification. -It allows numbers in any notation, use `Null` and `NULL` as `null`, etc. -The core schema also has no such restrictions. It allows binary notation for integers. - - -### loadAll (string [, iterator] [, options ]) - -Same as `load()`, but understands multi-document sources. Applies -`iterator` to each document if specified, or returns array of documents. - -``` javascript -const yaml = require('js-yaml'); - -yaml.loadAll(data, function (doc) { - console.log(doc); -}); -``` - - -### dump (object [ , options ]) - -Serializes `object` as a YAML document. Uses `DEFAULT_SCHEMA`, so it will -throw an exception if you try to dump regexps or functions. However, you can -disable exceptions by setting the `skipInvalid` option to `true`. - -options: - -- `indent` _(default: 2)_ - indentation width to use (in spaces). -- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements -- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function - in the safe schema) and skip pairs and single values with such types. -- `flowLevel` _(default: -1)_ - specifies level of nesting, when to switch from - block to flow style for collections. -1 means block style everwhere -- `styles` - "tag" => "style" map. Each tag may have own set of styles. -- `schema` _(default: `DEFAULT_SCHEMA`)_ specifies a schema to use. -- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a - function, use the function to sort the keys. -- `lineWidth` _(default: `80`)_ - set max line width. Set `-1` for unlimited width. -- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references -- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older - yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 -- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded. -- `quotingType` _(`'` or `"`, default: `'`)_ - strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. -- `forceQuotes` _(default: `false`)_ - if `true`, all non-key strings will be quoted even if they normally don't need to. -- `replacer` - callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). - -The following table show availlable styles (e.g. "canonical", -"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml -output is shown on the right side after `=>` (default setting) or `->`: - -``` none -!!null - "canonical" -> "~" - "lowercase" => "null" - "uppercase" -> "NULL" - "camelcase" -> "Null" - -!!int - "binary" -> "0b1", "0b101010", "0b1110001111010" - "octal" -> "0o1", "0o52", "0o16172" - "decimal" => "1", "42", "7290" - "hexadecimal" -> "0x1", "0x2A", "0x1C7A" - -!!bool - "lowercase" => "true", "false" - "uppercase" -> "TRUE", "FALSE" - "camelcase" -> "True", "False" - -!!float - "lowercase" => ".nan", '.inf' - "uppercase" -> ".NAN", '.INF' - "camelcase" -> ".NaN", '.Inf' -``` - -Example: - -``` javascript -dump(object, { - 'styles': { - '!!null': 'canonical' // dump null as ~ - }, - 'sortKeys': true // sort object keys -}); -``` - -Supported YAML types --------------------- - -The list of standard YAML tags and corresponding JavaScript types. See also -[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and -[YAML types repository](http://yaml.org/type/). - -``` -!!null '' # null -!!bool 'yes' # bool -!!int '3...' # number -!!float '3.14...' # number -!!binary '...base64...' # buffer -!!timestamp 'YYYY-...' # date -!!omap [ ... ] # array of key-value pairs -!!pairs [ ... ] # array or array pairs -!!set { ... } # array of objects with given keys and null values -!!str '...' # string -!!seq [ ... ] # array -!!map { ... } # object -``` - -**JavaScript-specific tags** - -See [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) for -extra types. - - -Caveats -------- - -Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects -or arrays as keys, and stringifies (by calling `toString()` method) them at the -moment of adding them. - -``` yaml ---- -? [ foo, bar ] -: - baz -? { foo: bar } -: - baz - - baz -``` - -``` javascript -{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] } -``` - -Also, reading of properties on implicit block mapping keys is not supported yet. -So, the following YAML document cannot be loaded. - -``` yaml -&anchor foo: - foo: bar - *anchor: duplicate key - baz: bat - *anchor: duplicate key -``` - - -js-yaml for enterprise ----------------------- - -Available as part of the Tidelift Subscription - -The maintainers of js-yaml and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-js-yaml?utm_source=npm-js-yaml&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/eslint/node_modules/js-yaml/bin/js-yaml.js b/node_modules/eslint/node_modules/js-yaml/bin/js-yaml.js deleted file mode 100755 index a182f1af..00000000 --- a/node_modules/eslint/node_modules/js-yaml/bin/js-yaml.js +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env node - - -'use strict'; - -/*eslint-disable no-console*/ - - -var fs = require('fs'); -var argparse = require('argparse'); -var yaml = require('..'); - - -//////////////////////////////////////////////////////////////////////////////// - - -var cli = new argparse.ArgumentParser({ - prog: 'js-yaml', - add_help: true -}); - -cli.add_argument('-v', '--version', { - action: 'version', - version: require('../package.json').version -}); - -cli.add_argument('-c', '--compact', { - help: 'Display errors in compact mode', - action: 'store_true' -}); - -// deprecated (not needed after we removed output colors) -// option suppressed, but not completely removed for compatibility -cli.add_argument('-j', '--to-json', { - help: argparse.SUPPRESS, - dest: 'json', - action: 'store_true' -}); - -cli.add_argument('-t', '--trace', { - help: 'Show stack trace on error', - action: 'store_true' -}); - -cli.add_argument('file', { - help: 'File to read, utf-8 encoded without BOM', - nargs: '?', - default: '-' -}); - - -//////////////////////////////////////////////////////////////////////////////// - - -var options = cli.parse_args(); - - -//////////////////////////////////////////////////////////////////////////////// - -function readFile(filename, encoding, callback) { - if (options.file === '-') { - // read from stdin - - var chunks = []; - - process.stdin.on('data', function (chunk) { - chunks.push(chunk); - }); - - process.stdin.on('end', function () { - return callback(null, Buffer.concat(chunks).toString(encoding)); - }); - } else { - fs.readFile(filename, encoding, callback); - } -} - -readFile(options.file, 'utf8', function (error, input) { - var output, isYaml; - - if (error) { - if (error.code === 'ENOENT') { - console.error('File not found: ' + options.file); - process.exit(2); - } - - console.error( - options.trace && error.stack || - error.message || - String(error)); - - process.exit(1); - } - - try { - output = JSON.parse(input); - isYaml = false; - } catch (err) { - if (err instanceof SyntaxError) { - try { - output = []; - yaml.loadAll(input, function (doc) { output.push(doc); }, {}); - isYaml = true; - - if (output.length === 0) output = null; - else if (output.length === 1) output = output[0]; - - } catch (e) { - if (options.trace && err.stack) console.error(e.stack); - else console.error(e.toString(options.compact)); - - process.exit(1); - } - } else { - console.error( - options.trace && err.stack || - err.message || - String(err)); - - process.exit(1); - } - } - - if (isYaml) console.log(JSON.stringify(output, null, ' ')); - else console.log(yaml.dump(output)); -}); diff --git a/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js b/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js deleted file mode 100644 index 4cc0ddf6..00000000 --- a/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js +++ /dev/null @@ -1,3874 +0,0 @@ - -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {})); -}(this, (function (exports) { 'use strict'; - - function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); - } - - - function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); - } - - - function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; - } - - - function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; - } - - - function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; - } - - - function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); - } - - - var isNothing_1 = isNothing; - var isObject_1 = isObject; - var toArray_1 = toArray; - var repeat_1 = repeat; - var isNegativeZero_1 = isNegativeZero; - var extend_1 = extend; - - var common = { - isNothing: isNothing_1, - isObject: isObject_1, - toArray: toArray_1, - repeat: repeat_1, - isNegativeZero: isNegativeZero_1, - extend: extend_1 - }; - - // YAML error class. http://stackoverflow.com/questions/8458984 - - - function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; - } - - - function YAMLException$1(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } - } - - - // Inherit from Error - YAMLException$1.prototype = Object.create(Error.prototype); - YAMLException$1.prototype.constructor = YAMLException$1; - - - YAMLException$1.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); - }; - - - var exception = YAMLException$1; - - // get snippet for a single line, respecting maxLength - function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; - } - - - function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; - } - - - function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); - } - - - var snippet = makeSnippet; - - var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' - ]; - - var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' - ]; - - function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; - } - - function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } - } - - var type = Type$1; - - /*eslint-disable max-len*/ - - - - - - function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; - } - - - function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; - } - - - function Schema$1(definition) { - return this.extend(definition); - } - - - Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; - }; - - - var schema = Schema$1; - - var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } - }); - - var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } - }); - - var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } - }); - - var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] - }); - - function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); - } - - function constructYamlNull() { - return null; - } - - function isNull(object) { - return object === null; - } - - var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' - }); - - function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); - } - - function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; - } - - function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; - } - - var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' - }); - - function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); - } - - function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); - } - - function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); - } - - function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; - } - - function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); - } - - function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); - } - - var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } - }); - - var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - - function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; - } - - function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); - } - - - var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - - function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; - } - - function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); - } - - var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' - }); - - var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] - }); - - var core = json; - - var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - - var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - - function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; - } - - function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; - } - - function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); - } - - var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp - }); - - function resolveYamlMerge(data) { - return data === '<<' || data === null; - } - - var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge - }); - - /*eslint-disable no-bitwise*/ - - - - - - // [ 64, 65, 66 ] -> [ padding, CR, LF ] - var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - - function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; - } - - function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); - } - - function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; - } - - function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; - } - - var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary - }); - - var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; - var _toString$2 = Object.prototype.toString; - - function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; - } - - function constructYamlOmap(data) { - return data !== null ? data : []; - } - - var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap - }); - - var _toString$1 = Object.prototype.toString; - - function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; - } - - function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; - } - - var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs - }); - - var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - - function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; - } - - function constructYamlSet(data) { - return data !== null ? data : {}; - } - - var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet - }); - - var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] - }); - - /*eslint-disable max-len,no-use-before-define*/ - - - - - - - - var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - - var CONTEXT_FLOW_IN = 1; - var CONTEXT_FLOW_OUT = 2; - var CONTEXT_BLOCK_IN = 3; - var CONTEXT_BLOCK_OUT = 4; - - - var CHOMPING_CLIP = 1; - var CHOMPING_STRIP = 2; - var CHOMPING_KEEP = 3; - - - var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; - var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; - var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; - var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; - var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - - function _class(obj) { return Object.prototype.toString.call(obj); } - - function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); - } - - function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); - } - - function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); - } - - function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; - } - - function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; - } - - function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; - } - - function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; - } - - function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; - } - - function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); - } - - var simpleEscapeCheck = new Array(256); // integer, for fast access - var simpleEscapeMap = new Array(256); - for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); - } - - - function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - - } - - - function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); - } - - function throwError(state, message) { - throw generateError(state, message); - } - - function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } - } - - - var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } - }; - - - function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } - } - - function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } - } - - function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; - } - - function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; - } - - function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; - } - - function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; - } - - function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } - } - - - function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; - } - - function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); - } - - function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); - } - - function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); - } - - function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; - } - - function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; - } - - function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; - } - - function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; - } - - function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; - } - - function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; - } - - function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; - } - - function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } - } - - - function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; - } - - - function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } - } - - - function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); - } - - - var loadAll_1 = loadAll$1; - var load_1 = load$1; - - var loader = { - loadAll: loadAll_1, - load: load_1 - }; - - /*eslint-disable no-use-before-define*/ - - - - - - var _toString = Object.prototype.toString; - var _hasOwnProperty = Object.prototype.hasOwnProperty; - - var CHAR_BOM = 0xFEFF; - var CHAR_TAB = 0x09; /* Tab */ - var CHAR_LINE_FEED = 0x0A; /* LF */ - var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ - var CHAR_SPACE = 0x20; /* Space */ - var CHAR_EXCLAMATION = 0x21; /* ! */ - var CHAR_DOUBLE_QUOTE = 0x22; /* " */ - var CHAR_SHARP = 0x23; /* # */ - var CHAR_PERCENT = 0x25; /* % */ - var CHAR_AMPERSAND = 0x26; /* & */ - var CHAR_SINGLE_QUOTE = 0x27; /* ' */ - var CHAR_ASTERISK = 0x2A; /* * */ - var CHAR_COMMA = 0x2C; /* , */ - var CHAR_MINUS = 0x2D; /* - */ - var CHAR_COLON = 0x3A; /* : */ - var CHAR_EQUALS = 0x3D; /* = */ - var CHAR_GREATER_THAN = 0x3E; /* > */ - var CHAR_QUESTION = 0x3F; /* ? */ - var CHAR_COMMERCIAL_AT = 0x40; /* @ */ - var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ - var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ - var CHAR_GRAVE_ACCENT = 0x60; /* ` */ - var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ - var CHAR_VERTICAL_LINE = 0x7C; /* | */ - var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - - var ESCAPE_SEQUENCES = {}; - - ESCAPE_SEQUENCES[0x00] = '\\0'; - ESCAPE_SEQUENCES[0x07] = '\\a'; - ESCAPE_SEQUENCES[0x08] = '\\b'; - ESCAPE_SEQUENCES[0x09] = '\\t'; - ESCAPE_SEQUENCES[0x0A] = '\\n'; - ESCAPE_SEQUENCES[0x0B] = '\\v'; - ESCAPE_SEQUENCES[0x0C] = '\\f'; - ESCAPE_SEQUENCES[0x0D] = '\\r'; - ESCAPE_SEQUENCES[0x1B] = '\\e'; - ESCAPE_SEQUENCES[0x22] = '\\"'; - ESCAPE_SEQUENCES[0x5C] = '\\\\'; - ESCAPE_SEQUENCES[0x85] = '\\N'; - ESCAPE_SEQUENCES[0xA0] = '\\_'; - ESCAPE_SEQUENCES[0x2028] = '\\L'; - ESCAPE_SEQUENCES[0x2029] = '\\P'; - - var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' - ]; - - var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - - function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; - } - - function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; - } - - - var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - - function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; - } - - // Indents every line in a string. Empty lines (\n only) are not indented. - function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; - } - - function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); - } - - function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; - } - - // [33] s-white ::= s-space | s-tab - function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; - } - - // Returns true if the character can be printed without escaping. - // From YAML 1.2: "any allowed characters known to be non-printable - // should also be escaped. [However,] This isn’t mandatory" - // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. - function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); - } - - // [34] ns-char ::= nb-char - s-white - // [27] nb-char ::= c-printable - b-char - c-byte-order-mark - // [26] b-char ::= b-line-feed | b-carriage-return - // Including s-white (for some reason, examples doesn't match specs in this aspect) - // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark - function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; - } - - // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out - // c = flow-in ⇒ ns-plain-safe-in - // c = block-key ⇒ ns-plain-safe-out - // c = flow-key ⇒ ns-plain-safe-in - // [128] ns-plain-safe-out ::= ns-char - // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator - // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) - // | ( /* An ns-char preceding */ “#” ) - // | ( “:” /* Followed by an ns-plain-safe(c) */ ) - function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' - } - - // Simplified test for values allowed as the first character in plain style. - function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; - } - - // Simplified test for values allowed as the last character in plain style. - function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; - } - - // Same as 'string'.codePointAt(pos), but works in older browsers. - function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; - } - - // Determines whether block indentation indicator is required. - function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); - } - - var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - - // Determines which scalar styles are possible and returns the preferred style. - // lineWidth = -1 => no limit. - // Pre-conditions: str.length > 0. - // Post-conditions: - // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. - // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). - // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). - function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - - // Note: line breaking/folding is implemented for only the folded style. - // NB. We drop the last trailing newline (if any) of a returned block scalar - // since the dumper adds its own newline. This always works: - // • No ending newline => unaffected; already using strip "-" chomping. - // • Ending newline => removed then restored. - // Importantly, this keeps the "+" chomp indicator from gaining an extra line. - function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); - } - - // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. - function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; - } - - // (See the note for writeScalar.) - function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; - } - - // Note: a long line without a suitable break point will exceed the width limit. - // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. - function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; - } - - // Greedy line breaking. - // Picks the longest line under the limit each time, - // otherwise settles for the shortest line over the limit. - // NB. More-indented lines *cannot* be folded, as that would add an extra \n. - function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner - } - - // Escapes a double-quoted string. - function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; - } - - function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; - } - - function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. - } - - function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; - } - - function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. - } - - function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; - } - - // Serializes `object` and writes it to global `result`. - // Returns true on success, or false on invalid object. - // - function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; - } - - function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); - } - - function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } - } - - function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; - } - - var dump_1 = dump$1; - - var dumper = { - dump: dump_1 - }; - - function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; - } - - - var Type = type; - var Schema = schema; - var FAILSAFE_SCHEMA = failsafe; - var JSON_SCHEMA = json; - var CORE_SCHEMA = core; - var DEFAULT_SCHEMA = _default; - var load = loader.load; - var loadAll = loader.loadAll; - var dump = dumper.dump; - var YAMLException = exception; - - // Re-export all types in case user wants to create custom schema - var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str - }; - - // Removed functions from JS-YAML 3.0.x - var safeLoad = renamed('safeLoad', 'load'); - var safeLoadAll = renamed('safeLoadAll', 'loadAll'); - var safeDump = renamed('safeDump', 'dump'); - - var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump - }; - - exports.CORE_SCHEMA = CORE_SCHEMA; - exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA; - exports.FAILSAFE_SCHEMA = FAILSAFE_SCHEMA; - exports.JSON_SCHEMA = JSON_SCHEMA; - exports.Schema = Schema; - exports.Type = Type; - exports.YAMLException = YAMLException; - exports.default = jsYaml; - exports.dump = dump; - exports.load = load; - exports.loadAll = loadAll; - exports.safeDump = safeDump; - exports.safeLoad = safeLoad; - exports.safeLoadAll = safeLoadAll; - exports.types = types; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.min.js b/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.min.js deleted file mode 100644 index bdd8eef5..00000000 --- a/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsyaml={})}(this,(function(e){"use strict";function t(e){return null==e}var n={isNothing:t,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:t(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;nl&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return n.repeat(" ",t-e.length)+e}var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var u,p,f="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)p=a(e.buffer,o[s-u],c[s-u],e.position-(o[s]-o[s-u]),h),f=n.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,o[s],c[s],e.position,h),f+=n.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n",f+=n.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(s+u>=c.length);u++)p=a(e.buffer,o[s+u],c[s+u],e.position-(o[s]-o[s+u]),h),f+=n.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"];var p=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var I=/^[-+]?[0-9]+e/;var S=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!x.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return i=e.toString(10),I.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),O=b.extend({implicit:[A,v,C,S]}),j=O,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var F=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==T.exec(e)||null!==N.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=T.exec(e))&&(t=N.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var E=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var L=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=M;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,l=[];for(t=0;t>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=M;for(t=0;t>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),_=Object.prototype.hasOwnProperty,D=Object.prototype.toString;var U=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t>10),56320+(e-65536&1023))}for(var ie=new Array(256),re=new Array(256),oe=0;oe<256;oe++)ie[oe]=te(oe)?1:0,re[oe]=te(oe);function ae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function ce(e,t){throw le(e,t)}function se(e,t){e.onWarning&&e.onWarning.call(null,le(e,t))}var ue={YAML:function(e,t,n){var i,r,o;null!==e.version&&ce(e,"duplication of %YAML directive"),1!==n.length&&ce(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ce(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&ce(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&se(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&ce(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],G.test(i)||ce(e,"ill-formed tag handle (first argument) of the TAG directive"),P.call(e.tagMap,i)&&ce(e,'there is a previously declared suffix for "'+i+'" tag handle'),V.test(r)||ce(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){ce(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function pe(e,t,n,i){var r,o,a,l;if(t1&&(e.result+=n.repeat("\n",t-1))}function be(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),45===i)&&z(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,ge(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,we(e,t,3,!1,!0),a.push(e.result),ge(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)ce(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(y&&(a=e.line,l=e.lineStart,c=e.position),we(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(de(e,f,d,h,g,m,a,l,c),h=g=m=null),ge(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ce(e,"repeat of an indentation width identifier"):(p=t+o-1,u=!0)}if(Q(a)){do{a=e.input.charCodeAt(++e.position)}while(Q(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!J(a)&&0!==a)}for(;0!==a;){for(he(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndentp&&(p=e.lineIndent),J(a))f++;else{if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=ee(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ce(e,"expected hexadecimal character");e.result+=ne(o),e.position++}else ce(e,"unknown escape sequence");n=i=e.position}else J(l)?(pe(e,n,i,!0),ye(e,ge(e,!1,t)),n=i=e.position):e.position===e.lineStart&&me(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!z(i)&&!X(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ce(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ge(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(z(u=e.input.charCodeAt(e.position))||X(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(z(i=e.input.charCodeAt(e.position+1))||n&&X(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(z(i=e.input.charCodeAt(e.position+1))||n&&X(i))break}else if(35===u){if(z(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&me(e)||n&&X(u))break;if(J(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,ge(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(pe(e,r,o,!1),ye(e,e.line-l),r=o=e.position,a=!1),Q(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return pe(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||ce(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&be(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ce(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s"),null!==e.result&&f.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function ke(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(ge(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&ce(e,"directive name must not be less than one character in length");0!==r;){for(;Q(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!J(r));break}if(J(r))break;for(t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&he(e),P.call(ue,n)?ue[n](e,n,i):se(e,'unknown document directive "'+n+'"')}ge(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ge(e,!0,-1)):a&&ce(e,"directives end mark is expected"),we(e,e.lineIndent-1,4,!1,!0),ge(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(o,e.position))&&se(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&me(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ge(e,!0,-1)):e.position=55296&&i<=56319&&t+1=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Re(e){return/^\n* /.test(e)}function Be(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=De(s=Ye(e,0))&&s!==Oe&&!_e(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!_e(e)&&58!==e}(Ye(e,e.length-1));if(t||a)for(c=0;c=65536?c+=2:c++){if(!De(u=Ye(e,c)))return 5;m=m&&qe(u,p,l),p=u}else{for(c=0;c=65536?c+=2:c++){if(10===(u=Ye(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!De(u))return 5;m=m&&qe(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&Re(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function Ke(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Te.indexOf(t)||Ne.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Be(t,c,e.indent,l,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Pe(t,e.indent)+We(Me(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,He(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+He(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r=65536?r+=2:r++)i=Ye(e,r),!(t=je[i])&&De(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Fe(i);return n}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Pe(e,t){var n=Re(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function We(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function He(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function $e(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function Ve(e,t,n,i,r,a,l){e.tag=null,e.dump=n,Ge(e,n,!1)||Ge(e,n,!0);var c,s=Ie.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=Le(e,t)),Ve(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ve(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?$e(e,t-1,e.dump,r):$e(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i",e.dump=c+" "+e.dump)}return!0}function Ze(e,t){var n,i,r=[],o=[];for(Je(e,r,o),n=0,i=o.length;n maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -var snippet = makeSnippet; - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -var type = Type$1; - -/*eslint-disable max-len*/ - - - - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema$1(definition) { - return this.extend(definition); -} - - -Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -var schema = Schema$1; - -var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); - -var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); - -var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); - -var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] -}); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); - -var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] -}); - -var core = json; - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); - -/*eslint-disable no-bitwise*/ - - - - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); - -var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; -var _toString$2 = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); - -var _toString$1 = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); - -var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); - -var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] -}); - -/*eslint-disable max-len,no-use-before-define*/ - - - - - - - -var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); -} - - -var loadAll_1 = loadAll$1; -var load_1 = load$1; - -var loader = { - loadAll: loadAll_1, - load: load_1 -}; - -/*eslint-disable no-use-before-define*/ - - - - - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -var dump_1 = dump$1; - -var dumper = { - dump: dump_1 -}; - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -var Type = type; -var Schema = schema; -var FAILSAFE_SCHEMA = failsafe; -var JSON_SCHEMA = json; -var CORE_SCHEMA = core; -var DEFAULT_SCHEMA = _default; -var load = loader.load; -var loadAll = loader.loadAll; -var dump = dumper.dump; -var YAMLException = exception; - -// Re-export all types in case user wants to create custom schema -var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str -}; - -// Removed functions from JS-YAML 3.0.x -var safeLoad = renamed('safeLoad', 'load'); -var safeLoadAll = renamed('safeLoadAll', 'loadAll'); -var safeDump = renamed('safeDump', 'dump'); - -var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump -}; - -export default jsYaml; -export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types }; diff --git a/node_modules/eslint/node_modules/js-yaml/index.js b/node_modules/eslint/node_modules/js-yaml/index.js deleted file mode 100644 index bcb7eba7..00000000 --- a/node_modules/eslint/node_modules/js-yaml/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - - -var loader = require('./lib/loader'); -var dumper = require('./lib/dumper'); - - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -module.exports.Type = require('./lib/type'); -module.exports.Schema = require('./lib/schema'); -module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe'); -module.exports.JSON_SCHEMA = require('./lib/schema/json'); -module.exports.CORE_SCHEMA = require('./lib/schema/core'); -module.exports.DEFAULT_SCHEMA = require('./lib/schema/default'); -module.exports.load = loader.load; -module.exports.loadAll = loader.loadAll; -module.exports.dump = dumper.dump; -module.exports.YAMLException = require('./lib/exception'); - -// Re-export all types in case user wants to create custom schema -module.exports.types = { - binary: require('./lib/type/binary'), - float: require('./lib/type/float'), - map: require('./lib/type/map'), - null: require('./lib/type/null'), - pairs: require('./lib/type/pairs'), - set: require('./lib/type/set'), - timestamp: require('./lib/type/timestamp'), - bool: require('./lib/type/bool'), - int: require('./lib/type/int'), - merge: require('./lib/type/merge'), - omap: require('./lib/type/omap'), - seq: require('./lib/type/seq'), - str: require('./lib/type/str') -}; - -// Removed functions from JS-YAML 3.0.x -module.exports.safeLoad = renamed('safeLoad', 'load'); -module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); -module.exports.safeDump = renamed('safeDump', 'dump'); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/common.js b/node_modules/eslint/node_modules/js-yaml/lib/common.js deleted file mode 100644 index 25ef7d8e..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/common.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - - -function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); -} - - -function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); -} - - -function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; -} - - -function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; -} - - -function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; -} - - -function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); -} - - -module.exports.isNothing = isNothing; -module.exports.isObject = isObject; -module.exports.toArray = toArray; -module.exports.repeat = repeat; -module.exports.isNegativeZero = isNegativeZero; -module.exports.extend = extend; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/dumper.js b/node_modules/eslint/node_modules/js-yaml/lib/dumper.js deleted file mode 100644 index f357a6ae..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/dumper.js +++ /dev/null @@ -1,965 +0,0 @@ -'use strict'; - -/*eslint-disable no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var DEFAULT_SCHEMA = require('./schema/default'); - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string, lineWidth) + '"'; - default: - throw new YAMLException('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new YAMLException('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new YAMLException('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -module.exports.dump = dump; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/exception.js b/node_modules/eslint/node_modules/js-yaml/lib/exception.js deleted file mode 100644 index 7f62daae..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/exception.js +++ /dev/null @@ -1,55 +0,0 @@ -// YAML error class. http://stackoverflow.com/questions/8458984 -// -'use strict'; - - -function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; -} - - -function YAMLException(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } -} - - -// Inherit from Error -YAMLException.prototype = Object.create(Error.prototype); -YAMLException.prototype.constructor = YAMLException; - - -YAMLException.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); -}; - - -module.exports = YAMLException; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/loader.js b/node_modules/eslint/node_modules/js-yaml/lib/loader.js deleted file mode 100644 index 39f13f56..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/loader.js +++ /dev/null @@ -1,1727 +0,0 @@ -'use strict'; - -/*eslint-disable max-len,no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var makeSnippet = require('./snippet'); -var DEFAULT_SCHEMA = require('./schema/default'); - - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = makeSnippet(mark); - - return new YAMLException(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty.call(overridableKeys, keyNode) && - _hasOwnProperty.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new YAMLException('expected a single document in the stream, but found more'); -} - - -module.exports.loadAll = loadAll; -module.exports.load = load; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/schema.js b/node_modules/eslint/node_modules/js-yaml/lib/schema.js deleted file mode 100644 index 65b41f40..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/schema.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -/*eslint-disable max-len*/ - -var YAMLException = require('./exception'); -var Type = require('./type'); - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema(definition) { - return this.extend(definition); -} - - -Schema.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof Type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type.loadKind && type.loadKind !== 'scalar') { - throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type.multi) { - throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -module.exports = Schema; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/schema/core.js b/node_modules/eslint/node_modules/js-yaml/lib/schema/core.js deleted file mode 100644 index 608b26de..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/schema/core.js +++ /dev/null @@ -1,11 +0,0 @@ -// Standard YAML's Core schema. -// http://www.yaml.org/spec/1.2/spec.html#id2804923 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, Core schema has no distinctions from JSON schema is JS-YAML. - - -'use strict'; - - -module.exports = require('./json'); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/schema/default.js b/node_modules/eslint/node_modules/js-yaml/lib/schema/default.js deleted file mode 100644 index 3af0520d..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/schema/default.js +++ /dev/null @@ -1,22 +0,0 @@ -// JS-YAML's default schema for `safeLoad` function. -// It is not described in the YAML specification. -// -// This schema is based on standard YAML's Core schema and includes most of -// extra types described at YAML tag repository. (http://yaml.org/type/) - - -'use strict'; - - -module.exports = require('./core').extend({ - implicit: [ - require('../type/timestamp'), - require('../type/merge') - ], - explicit: [ - require('../type/binary'), - require('../type/omap'), - require('../type/pairs'), - require('../type/set') - ] -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/schema/failsafe.js b/node_modules/eslint/node_modules/js-yaml/lib/schema/failsafe.js deleted file mode 100644 index b7a33eb7..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/schema/failsafe.js +++ /dev/null @@ -1,17 +0,0 @@ -// Standard YAML's Failsafe schema. -// http://www.yaml.org/spec/1.2/spec.html#id2802346 - - -'use strict'; - - -var Schema = require('../schema'); - - -module.exports = new Schema({ - explicit: [ - require('../type/str'), - require('../type/seq'), - require('../type/map') - ] -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/schema/json.js b/node_modules/eslint/node_modules/js-yaml/lib/schema/json.js deleted file mode 100644 index b73df78e..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/schema/json.js +++ /dev/null @@ -1,19 +0,0 @@ -// Standard YAML's JSON schema. -// http://www.yaml.org/spec/1.2/spec.html#id2803231 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. - - -'use strict'; - - -module.exports = require('./failsafe').extend({ - implicit: [ - require('../type/null'), - require('../type/bool'), - require('../type/int'), - require('../type/float') - ] -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/snippet.js b/node_modules/eslint/node_modules/js-yaml/lib/snippet.js deleted file mode 100644 index 00e2133c..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/snippet.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - - -var common = require('./common'); - - -// get snippet for a single line, respecting maxLength -function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -module.exports = makeSnippet; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type.js b/node_modules/eslint/node_modules/js-yaml/lib/type.js deleted file mode 100644 index 5e57877f..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; - -var YAMLException = require('./exception'); - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -module.exports = Type; diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/binary.js b/node_modules/eslint/node_modules/js-yaml/lib/type/binary.js deleted file mode 100644 index e1523513..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/binary.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -/*eslint-disable no-bitwise*/ - - -var Type = require('../type'); - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -module.exports = new Type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/bool.js b/node_modules/eslint/node_modules/js-yaml/lib/type/bool.js deleted file mode 100644 index cb774593..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/bool.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -module.exports = new Type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/float.js b/node_modules/eslint/node_modules/js-yaml/lib/type/float.js deleted file mode 100644 index 74d77ec2..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/float.js +++ /dev/null @@ -1,97 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/int.js b/node_modules/eslint/node_modules/js-yaml/lib/type/int.js deleted file mode 100644 index 3fe3a443..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/int.js +++ /dev/null @@ -1,156 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/map.js b/node_modules/eslint/node_modules/js-yaml/lib/type/map.js deleted file mode 100644 index f327beeb..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/map.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/merge.js b/node_modules/eslint/node_modules/js-yaml/lib/type/merge.js deleted file mode 100644 index ae08a864..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/merge.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -module.exports = new Type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/null.js b/node_modules/eslint/node_modules/js-yaml/lib/type/null.js deleted file mode 100644 index 315ca4e2..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/null.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -module.exports = new Type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/omap.js b/node_modules/eslint/node_modules/js-yaml/lib/type/omap.js deleted file mode 100644 index b2b5323b..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/omap.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; -var _toString = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -module.exports = new Type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/pairs.js b/node_modules/eslint/node_modules/js-yaml/lib/type/pairs.js deleted file mode 100644 index 74b52403..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/pairs.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _toString = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -module.exports = new Type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/seq.js b/node_modules/eslint/node_modules/js-yaml/lib/type/seq.js deleted file mode 100644 index be8f77f2..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/seq.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/set.js b/node_modules/eslint/node_modules/js-yaml/lib/type/set.js deleted file mode 100644 index f885a329..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/set.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -module.exports = new Type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/str.js b/node_modules/eslint/node_modules/js-yaml/lib/type/str.js deleted file mode 100644 index 27acc106..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/str.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); diff --git a/node_modules/eslint/node_modules/js-yaml/lib/type/timestamp.js b/node_modules/eslint/node_modules/js-yaml/lib/type/timestamp.js deleted file mode 100644 index 8fa9c586..00000000 --- a/node_modules/eslint/node_modules/js-yaml/lib/type/timestamp.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -module.exports = new Type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); diff --git a/node_modules/eslint/node_modules/js-yaml/package.json b/node_modules/eslint/node_modules/js-yaml/package.json deleted file mode 100644 index 17574da8..00000000 --- a/node_modules/eslint/node_modules/js-yaml/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "js-yaml", - "version": "4.1.0", - "description": "YAML 1.2 parser and serializer", - "keywords": [ - "yaml", - "parser", - "serializer", - "pyyaml" - ], - "author": "Vladimir Zapparov ", - "contributors": [ - "Aleksey V Zapparov (http://www.ixti.net/)", - "Vitaly Puzrin (https://github.com/puzrin)", - "Martin Grenfell (http://got-ravings.blogspot.com)" - ], - "license": "MIT", - "repository": "nodeca/js-yaml", - "files": [ - "index.js", - "lib/", - "bin/", - "dist/" - ], - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "module": "./dist/js-yaml.mjs", - "exports": { - ".": { - "import": "./dist/js-yaml.mjs", - "require": "./index.js" - }, - "./package.json": "./package.json" - }, - "scripts": { - "lint": "eslint .", - "test": "npm run lint && mocha", - "coverage": "npm run lint && nyc mocha && nyc report --reporter html", - "demo": "npm run lint && node support/build_demo.js", - "gh-demo": "npm run demo && gh-pages -d demo -f", - "browserify": "rollup -c support/rollup.config.js", - "prepublishOnly": "npm run gh-demo" - }, - "unpkg": "dist/js-yaml.min.js", - "jsdelivr": "dist/js-yaml.min.js", - "dependencies": { - "argparse": "^2.0.1" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.0.0", - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "codemirror": "^5.13.4", - "eslint": "^7.0.0", - "fast-check": "^2.8.0", - "gh-pages": "^3.1.0", - "mocha": "^8.2.1", - "nyc": "^15.1.0", - "rollup": "^2.34.1", - "rollup-plugin-node-polyfills": "^0.2.1", - "rollup-plugin-terser": "^7.0.2", - "shelljs": "^0.8.4" - } -} diff --git a/node_modules/eslint/package.json b/node_modules/eslint/package.json index 8517c317..a27ff45f 100644 --- a/node_modules/eslint/package.json +++ b/node_modules/eslint/package.json @@ -1,27 +1,58 @@ { "name": "eslint", - "version": "8.57.1", + "version": "9.16.0", "author": "Nicholas C. Zakas ", "description": "An AST-based pattern checker for JavaScript.", + "type": "commonjs", "bin": { "eslint": "./bin/eslint.js" }, "main": "./lib/api.js", + "types": "./lib/types/index.d.ts", "exports": { + ".": { + "types": "./lib/types/index.d.ts", + "default": "./lib/api.js" + }, "./package.json": "./package.json", - ".": "./lib/api.js", - "./use-at-your-own-risk": "./lib/unsupported-api.js" + "./use-at-your-own-risk": { + "types": "./lib/types/use-at-your-own-risk.d.ts", + "default": "./lib/unsupported-api.js" + }, + "./rules": { + "types": "./lib/types/rules/index.d.ts" + }, + "./universal": { + "types": "./lib/types/universal.d.ts", + "default": "./lib/universal.js" + } + }, + "typesVersions": { + "*": { + "use-at-your-own-risk": [ + "./lib/types/use-at-your-own-risk.d.ts" + ], + "rules": [ + "./lib/types/rules/index.d.ts" + ], + "universal": [ + "./lib/types/universal.d.ts" + ] + } }, "scripts": { "build:docs:update-links": "node tools/fetch-docs-links.js", "build:site": "node Makefile.js gensite", "build:webpack": "node Makefile.js webpack", "build:readme": "node tools/update-readme.js", - "lint": "node Makefile.js lint", - "lint:docs:js": "node Makefile.js lintDocsJS", + "build:rules-index": "node Makefile.js generateRuleIndexPage", + "lint": "trunk check --no-fix --ignore=docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=docs/**/*.js", + "lint:docs:js": "trunk check --no-fix --ignore=** --ignore=!docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=** --ignore=!docs/**/*.js", "lint:docs:rule-examples": "node Makefile.js checkRuleExamples", - "lint:fix": "node Makefile.js lint -- fix", - "lint:fix:docs:js": "node Makefile.js lintDocsJS -- fix", + "lint:unused": "knip", + "lint:fix": "trunk check -y --ignore=docs/**/*.js -a --filter=eslint && trunk check -y --ignore=docs/**/*.js", + "lint:fix:docs:js": "trunk check -y --ignore=** --ignore=!docs/**/*.js -a --flter=eslint && trunk check -y --ignore=** --ignore=!docs/**/*.js", + "lint:types": "attw --pack", "release:generate:alpha": "node Makefile.js generatePrerelease -- alpha", "release:generate:beta": "node Makefile.js generatePrerelease -- beta", "release:generate:latest": "node Makefile.js generateRelease -- latest", @@ -29,16 +60,19 @@ "release:generate:rc": "node Makefile.js generatePrerelease -- rc", "release:publish": "node Makefile.js publishRelease", "test": "node Makefile.js test", + "test:browser": "node Makefile.js wdio", "test:cli": "mocha", "test:fuzz": "node Makefile.js fuzz", - "test:performance": "node Makefile.js perf" + "test:performance": "node Makefile.js perf", + "test:emfile": "node tools/check-emfile-handling.js", + "test:types": "tsc -p tests/lib/types/tsconfig.json" }, "gitHooks": { "pre-commit": "lint-staged" }, "lint-staged": { - "*.js": "eslint --fix", - "*.md": "markdownlint --fix", + "*.js": "trunk check --fix --filter=eslint", + "*.md": "trunk check --fix --filter=markdownlint", "lib/rules/*.js": [ "node tools/update-eslint-all.js", "git add packages/js/src/configs/eslint-all.js" @@ -48,7 +82,7 @@ "node tools/fetch-docs-links.js", "git add docs/src/_data/further_reading_links.json" ], - "docs/**/*.svg": "npx svgo -r --multipass" + "docs/**/*.svg": "trunk check --fix --filter=svgo" }, "files": [ "LICENSE", @@ -59,58 +93,57 @@ "messages" ], "repository": "eslint/eslint", - "funding": "https://opencollective.com/eslint", + "funding": "https://eslint.org/donate", "homepage": "https://eslint.org", "bugs": "https://github.com/eslint/eslint/issues/", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.16.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.5", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.17.0", "@babel/core": "^7.4.3", "@babel/preset-env": "^7.4.3", - "@sinonjs/fake-timers": "11.2.2", - "@wdio/browser-runner": "^8.14.6", - "@wdio/cli": "^8.14.6", - "@wdio/concise-reporter": "^8.14.0", - "@wdio/globals": "^8.14.6", - "@wdio/mocha-framework": "^8.14.0", + "@eslint/json": "^0.8.0", + "@trunkio/launcher": "^1.3.0", + "@types/node": "^20.11.5", + "@typescript-eslint/parser": "^8.4.0", + "@wdio/browser-runner": "^9.2.4", + "@wdio/cli": "^9.2.4", + "@wdio/concise-reporter": "^9.2.2", + "@wdio/mocha-framework": "^9.2.2", "babel-loader": "^8.0.5", "c8": "^7.12.0", "chai": "^4.0.1", @@ -120,36 +153,33 @@ "ejs": "^3.0.2", "eslint": "file:.", "eslint-config-eslint": "file:packages/eslint-config-eslint", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-eslint-plugin": "^5.2.1", - "eslint-plugin-internal-rules": "file:tools/internal-rules", - "eslint-plugin-jsdoc": "^46.2.5", - "eslint-plugin-n": "^16.6.0", - "eslint-plugin-unicorn": "^49.0.0", + "eslint-plugin-eslint-plugin": "^6.0.0", + "eslint-plugin-expect-type": "^0.4.0", + "eslint-plugin-yml": "^1.14.0", "eslint-release": "^3.3.0", + "eslint-rule-composer": "^0.3.0", "eslump": "^3.0.0", "esprima": "^4.0.1", "fast-glob": "^3.2.11", "fs-teardown": "^0.1.3", - "glob": "^7.1.6", + "glob": "^10.0.0", + "globals": "^15.0.0", "got": "^11.8.3", "gray-matter": "^4.0.3", + "jiti": "^2.1.0", + "knip": "^5.32.0", "lint-staged": "^11.0.0", "load-perf": "^0.2.0", "markdown-it": "^12.2.0", "markdown-it-container": "^3.0.0", - "markdownlint": "^0.32.0", - "markdownlint-cli": "^0.37.0", "marked": "^4.0.8", - "memfs": "^3.0.1", "metascraper": "^5.25.7", "metascraper-description": "^5.25.7", "metascraper-image": "^5.29.3", "metascraper-logo": "^5.25.7", "metascraper-logo-favicon": "^5.25.7", "metascraper-title": "^5.25.7", - "mocha": "^8.3.2", - "mocha-junit-reporter": "^2.0.0", + "mocha": "^10.7.3", "node-polyfill-webpack-plugin": "^1.0.3", "npm-license": "^0.3.3", "pirates": "^4.0.5", @@ -159,14 +189,22 @@ "regenerator-runtime": "^0.14.0", "rollup-plugin-node-polyfills": "^0.2.1", "semver": "^7.5.3", - "shelljs": "^0.8.2", + "shelljs": "^0.8.5", "sinon": "^11.0.0", - "vite-plugin-commonjs": "0.10.1", - "webdriverio": "^8.14.6", + "typescript": "^5.3.3", + "vite-plugin-commonjs": "^0.10.0", "webpack": "^5.23.0", "webpack-cli": "^4.5.0", "yorkie": "^2.0.0" }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + }, "keywords": [ "ast", "lint", @@ -176,6 +214,6 @@ ], "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } } diff --git a/node_modules/espree/README.md b/node_modules/espree/README.md index 87ace4c1..b971ea5a 100644 --- a/node_modules/espree/README.md +++ b/node_modules/espree/README.md @@ -1,6 +1,6 @@ [![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree) [![npm downloads](https://img.shields.io/npm/dm/espree.svg)](https://www.npmjs.com/package/espree) -[![Build Status](https://github.com/eslint/espree/workflows/CI/badge.svg)](https://github.com/eslint/espree/actions) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/js/espree/actions) [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=9348450)](https://www.bountysource.com/trackers/9348450-eslint?utm_source=9348450&utm_medium=shield&utm_campaign=TRACKER_BADGE) # Espree @@ -114,7 +114,7 @@ Returns the current `espree` version ### `VisitorKeys` -Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/eslint-visitor-keys) +Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/js/tree/main/packages/eslint-visitor-keys) ### `latestEcmaVersion` @@ -140,8 +140,8 @@ const options = { // create a top-level tokens array containing all tokens tokens: false, - // Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14 or 15 to specify the version of ECMAScript syntax you want to use. - // You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14) or 2024 (same as 15) to use the year-based naming. + // Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16 to specify the version of ECMAScript syntax you want to use. + // You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), 2024 (same as 15) or 2025 (same as 16) to use the year-based naming. // You can also set "latest" to use the most recently supported version. ecmaVersion: 3, @@ -173,7 +173,7 @@ Espree may also deviate from Esprima in the interface it exposes. ## Contributing -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/espree/issues). +Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/js/issues). Espree is licensed under a permissive BSD 2-clause license. @@ -183,7 +183,7 @@ We work hard to ensure that Espree is safe for everyone and that security issues ## Build Commands -* `npm test` - run all linting and tests +* `npm test` - run all tests * `npm run lint` - run all linting ## Differences from Espree 2.x @@ -231,14 +231,31 @@ We are building on top of Acorn, however, so that we can contribute back and hel ### What ECMAScript features do you support? -Espree supports all ECMAScript 2023 features and partially supports ECMAScript 2024 features. +Espree supports all ECMAScript 2024 features and partially supports ECMAScript 2025 features. -Because ECMAScript 2024 is still under development, we are implementing features as they are finalized. Currently, Espree supports: +Because ECMAScript 2025 is still under development, we are implementing features as they are finalized. Currently, Espree supports: -* [RegExp v flag with set notation + properties of strings](https://github.com/tc39/proposal-regexp-v-flag) +* [RegExp Duplicate named capturing groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups) See [finished-proposals.md](https://github.com/tc39/proposals/blob/master/finished-proposals.md) to know what features are finalized. ### How do you determine which experimental features to support? In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features. + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/espree/dist/espree.cjs b/node_modules/espree/dist/espree.cjs index 3fa2870d..c944a213 100644 --- a/node_modules/espree/dist/espree.cjs +++ b/node_modules/espree/dist/espree.cjs @@ -72,7 +72,7 @@ const Token = { */ function convertTemplatePart(tokens, code) { const firstToken = tokens[0], - lastTemplateToken = tokens[tokens.length - 1]; + lastTemplateToken = tokens.at(-1); const token = { type: Token.Template, @@ -309,7 +309,8 @@ const SUPPORTED_VERSIONS = [ 12, // 2021 13, // 2022 14, // 2023 - 15 // 2024 + 15, // 2024 + 16 // 2025 ]; /** @@ -317,7 +318,7 @@ const SUPPORTED_VERSIONS = [ * @returns {number} The latest ECMAScript version. */ function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS[SUPPORTED_VERSIONS.length - 1]; + return SUPPORTED_VERSIONS.at(-1); } /** @@ -759,9 +760,64 @@ var espree = () => Parser => { }; }; -const version$1 = "9.6.1"; +const version$1 = "10.3.0"; -/* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ +/** + * @fileoverview Main Espree file that converts Acorn into Esprima output. + * + * This file contains code from the following MIT-licensed projects: + * 1. Acorn + * 2. Babylon + * 3. Babel-ESLint + * + * This file also contains code from Esprima, which is BSD licensed. + * + * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) + * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) + * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ // To initialize lazily. @@ -857,7 +913,7 @@ const Syntax = (function() { } for (key in VisitorKeys) { - if (Object.hasOwnProperty.call(VisitorKeys, key)) { + if (Object.hasOwn(VisitorKeys, key)) { types[key] = key; } } diff --git a/node_modules/espree/espree.js b/node_modules/espree/espree.js index e9b11188..15e0ce52 100644 --- a/node_modules/espree/espree.js +++ b/node_modules/espree/espree.js @@ -1,5 +1,3 @@ -/* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ - /** * @fileoverview Main Espree file that converts Acorn into Esprima output. * @@ -57,7 +55,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* eslint-enable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */ import * as acorn from "acorn"; import jsx from "acorn-jsx"; @@ -160,7 +157,7 @@ export const Syntax = (function() { } for (key in VisitorKeys) { - if (Object.hasOwnProperty.call(VisitorKeys, key)) { + if (Object.hasOwn(VisitorKeys, key)) { types[key] = key; } } diff --git a/node_modules/espree/lib/options.js b/node_modules/espree/lib/options.js index 1460ac27..2cdfb689 100644 --- a/node_modules/espree/lib/options.js +++ b/node_modules/espree/lib/options.js @@ -19,7 +19,8 @@ const SUPPORTED_VERSIONS = [ 12, // 2021 13, // 2022 14, // 2023 - 15 // 2024 + 15, // 2024 + 16 // 2025 ]; /** @@ -27,7 +28,7 @@ const SUPPORTED_VERSIONS = [ * @returns {number} The latest ECMAScript version. */ export function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS[SUPPORTED_VERSIONS.length - 1]; + return SUPPORTED_VERSIONS.at(-1); } /** diff --git a/node_modules/espree/lib/token-translator.js b/node_modules/espree/lib/token-translator.js index 2a915fb5..6daf865a 100644 --- a/node_modules/espree/lib/token-translator.js +++ b/node_modules/espree/lib/token-translator.js @@ -40,7 +40,7 @@ const Token = { */ function convertTemplatePart(tokens, code) { const firstToken = tokens[0], - lastTemplateToken = tokens[tokens.length - 1]; + lastTemplateToken = tokens.at(-1); const token = { type: Token.Template, diff --git a/node_modules/espree/lib/version.js b/node_modules/espree/lib/version.js index dc73f771..22a42060 100644 --- a/node_modules/espree/lib/version.js +++ b/node_modules/espree/lib/version.js @@ -1,3 +1,3 @@ -const version = "9.6.1"; +const version = "10.3.0"; export default version; diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE b/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE new file mode 100644 index 00000000..17a25538 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/README.md b/node_modules/espree/node_modules/eslint-visitor-keys/README.md new file mode 100644 index 00000000..3cbbdd39 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/README.md @@ -0,0 +1,120 @@ +# eslint-visitor-keys + +[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys) +[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys) +[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) + +Constants and utilities about visitor keys to traverse AST. + +## 💿 Installation + +Use [npm] to install. + +```bash +$ npm install eslint-visitor-keys +``` + +### Requirements + +- [Node.js] `^18.18.0`, `^20.9.0`, or `>=21.1.0` + +## 📖 Usage + +To use in an ESM file: + +```js +import * as evk from "eslint-visitor-keys" +``` + +To use in a CommonJS file: + +```js +const evk = require("eslint-visitor-keys") +``` + +### evk.KEYS + +> type: `{ [type: string]: string[] | undefined }` + +Visitor keys. This keys are frozen. + +This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes. + +For example: + +``` +console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"] +``` + +### evk.getKeys(node) + +> type: `(node: object) => string[]` + +Get the visitor keys of a given AST node. + +This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`. + +This will be used to traverse unknown nodes. + +For example: + +```js +const node = { + type: "AssignmentExpression", + left: { type: "Identifier", name: "foo" }, + right: { type: "Literal", value: 0 } +} +console.log(evk.getKeys(node)) // → ["type", "left", "right"] +``` + +### evk.unionWith(additionalKeys) + +> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }` + +Make the union set with `evk.KEYS` and the given keys. + +- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that. +- It removes duplicated keys as keeping the first one. + +For example: + +```js +console.log(evk.unionWith({ + MethodDefinition: ["decorators"] +})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... } +``` + +## 📰 Change log + +See [GitHub releases](https://github.com/eslint/js/releases). + +## 🍻 Contributing + +Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/). + +### Development commands + +- `npm test` runs tests and measures code coverage. +- `npm run lint` checks source codes with ESLint. +- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. + +[npm]: https://www.npmjs.com/ +[Node.js]: https://nodejs.org/ +[ESTree]: https://github.com/estree/estree + + + +## Sponsors + +The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) +to get your logo on our READMEs and [website](https://eslint.org/sponsors). + +

Platinum Sponsors

+

Automattic Airbnb

Gold Sponsors

+

trunk.io

Silver Sponsors

+

JetBrains Liftoff American Express Workleap

Bronze Sponsors

+

WordHint Anagram Solver Icons8 Discord GitBook Nx HeroCoders

+

Technology Sponsors

+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. +

Netlify Algolia 1Password

+ diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs new file mode 100644 index 00000000..7f58e49b --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs @@ -0,0 +1,396 @@ +'use strict'; + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +exports.KEYS = KEYS; +exports.getKeys = getKeys; +exports.unionWith = unionWith; diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts new file mode 100644 index 00000000..a8684341 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts @@ -0,0 +1,27 @@ +type VisitorKeys$1 = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys$1; + +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +declare function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys; + +type VisitorKeys = VisitorKeys$1; + +export { KEYS, type VisitorKeys, getKeys, unionWith }; diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts new file mode 100644 index 00000000..e65b7da3 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/dist/index.d.ts @@ -0,0 +1,16 @@ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node: Object): readonly string[]; +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys: VisitorKeys): VisitorKeys; +export { KEYS }; +export type VisitorKeys = import("./visitor-keys.js").VisitorKeys; +import KEYS from "./visitor-keys.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts new file mode 100644 index 00000000..2d7ada2f --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts @@ -0,0 +1,12 @@ +export default KEYS; +export type VisitorKeys = { + readonly [type: string]: ReadonlyArray; +}; +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/** + * @type {VisitorKeys} + */ +declare const KEYS: VisitorKeys; +//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js new file mode 100644 index 00000000..1fc89b43 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/lib/index.js @@ -0,0 +1,67 @@ +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ +import KEYS from "./visitor-keys.js"; + +/** + * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys + */ + +// List to ignore keys. +const KEY_BLACKLIST = new Set([ + "parent", + "leadingComments", + "trailingComments" +]); + +/** + * Check whether a given key should be used or not. + * @param {string} key The key to check. + * @returns {boolean} `true` if the key should be used. + */ +function filterKey(key) { + return !KEY_BLACKLIST.has(key) && key[0] !== "_"; +} + + +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * Get visitor keys of a given node. + * @param {Object} node The AST node to get keys. + * @returns {readonly string[]} Visitor keys of the node. + */ +export function getKeys(node) { + return Object.keys(node).filter(filterKey); +} +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */ + +/** + * Make the union set with `KEYS` and given keys. + * @param {VisitorKeys} additionalKeys The additional keys. + * @returns {VisitorKeys} The union set. + */ +export function unionWith(additionalKeys) { + const retv = /** @type {{ [type: string]: ReadonlyArray }} */ + (Object.assign({}, KEYS)); + + for (const type of Object.keys(additionalKeys)) { + if (Object.hasOwn(retv, type)) { + const keys = new Set(additionalKeys[type]); + + for (const key of retv[type]) { + keys.add(key); + } + + retv[type] = Object.freeze(Array.from(keys)); + } else { + retv[type] = Object.freeze(Array.from(additionalKeys[type])); + } + } + + return Object.freeze(retv); +} + +export { KEYS }; diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js new file mode 100644 index 00000000..41feb4b2 --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/lib/visitor-keys.js @@ -0,0 +1,327 @@ +/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. + TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed +*/ +/** + * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys + */ +/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */ + +/** + * @type {VisitorKeys} + */ +const KEYS = { + ArrayExpression: [ + "elements" + ], + ArrayPattern: [ + "elements" + ], + ArrowFunctionExpression: [ + "params", + "body" + ], + AssignmentExpression: [ + "left", + "right" + ], + AssignmentPattern: [ + "left", + "right" + ], + AwaitExpression: [ + "argument" + ], + BinaryExpression: [ + "left", + "right" + ], + BlockStatement: [ + "body" + ], + BreakStatement: [ + "label" + ], + CallExpression: [ + "callee", + "arguments" + ], + CatchClause: [ + "param", + "body" + ], + ChainExpression: [ + "expression" + ], + ClassBody: [ + "body" + ], + ClassDeclaration: [ + "id", + "superClass", + "body" + ], + ClassExpression: [ + "id", + "superClass", + "body" + ], + ConditionalExpression: [ + "test", + "consequent", + "alternate" + ], + ContinueStatement: [ + "label" + ], + DebuggerStatement: [], + DoWhileStatement: [ + "body", + "test" + ], + EmptyStatement: [], + ExperimentalRestProperty: [ + "argument" + ], + ExperimentalSpreadProperty: [ + "argument" + ], + ExportAllDeclaration: [ + "exported", + "source", + "attributes" + ], + ExportDefaultDeclaration: [ + "declaration" + ], + ExportNamedDeclaration: [ + "declaration", + "specifiers", + "source", + "attributes" + ], + ExportSpecifier: [ + "exported", + "local" + ], + ExpressionStatement: [ + "expression" + ], + ForInStatement: [ + "left", + "right", + "body" + ], + ForOfStatement: [ + "left", + "right", + "body" + ], + ForStatement: [ + "init", + "test", + "update", + "body" + ], + FunctionDeclaration: [ + "id", + "params", + "body" + ], + FunctionExpression: [ + "id", + "params", + "body" + ], + Identifier: [], + IfStatement: [ + "test", + "consequent", + "alternate" + ], + ImportAttribute: [ + "key", + "value" + ], + ImportDeclaration: [ + "specifiers", + "source", + "attributes" + ], + ImportDefaultSpecifier: [ + "local" + ], + ImportExpression: [ + "source", + "options" + ], + ImportNamespaceSpecifier: [ + "local" + ], + ImportSpecifier: [ + "imported", + "local" + ], + JSXAttribute: [ + "name", + "value" + ], + JSXClosingElement: [ + "name" + ], + JSXClosingFragment: [], + JSXElement: [ + "openingElement", + "children", + "closingElement" + ], + JSXEmptyExpression: [], + JSXExpressionContainer: [ + "expression" + ], + JSXFragment: [ + "openingFragment", + "children", + "closingFragment" + ], + JSXIdentifier: [], + JSXMemberExpression: [ + "object", + "property" + ], + JSXNamespacedName: [ + "namespace", + "name" + ], + JSXOpeningElement: [ + "name", + "attributes" + ], + JSXOpeningFragment: [], + JSXSpreadAttribute: [ + "argument" + ], + JSXSpreadChild: [ + "expression" + ], + JSXText: [], + LabeledStatement: [ + "label", + "body" + ], + Literal: [], + LogicalExpression: [ + "left", + "right" + ], + MemberExpression: [ + "object", + "property" + ], + MetaProperty: [ + "meta", + "property" + ], + MethodDefinition: [ + "key", + "value" + ], + NewExpression: [ + "callee", + "arguments" + ], + ObjectExpression: [ + "properties" + ], + ObjectPattern: [ + "properties" + ], + PrivateIdentifier: [], + Program: [ + "body" + ], + Property: [ + "key", + "value" + ], + PropertyDefinition: [ + "key", + "value" + ], + RestElement: [ + "argument" + ], + ReturnStatement: [ + "argument" + ], + SequenceExpression: [ + "expressions" + ], + SpreadElement: [ + "argument" + ], + StaticBlock: [ + "body" + ], + Super: [], + SwitchCase: [ + "test", + "consequent" + ], + SwitchStatement: [ + "discriminant", + "cases" + ], + TaggedTemplateExpression: [ + "tag", + "quasi" + ], + TemplateElement: [], + TemplateLiteral: [ + "quasis", + "expressions" + ], + ThisExpression: [], + ThrowStatement: [ + "argument" + ], + TryStatement: [ + "block", + "handler", + "finalizer" + ], + UnaryExpression: [ + "argument" + ], + UpdateExpression: [ + "argument" + ], + VariableDeclaration: [ + "declarations" + ], + VariableDeclarator: [ + "id", + "init" + ], + WhileStatement: [ + "test", + "body" + ], + WithStatement: [ + "object", + "body" + ], + YieldExpression: [ + "argument" + ] +}; + +// Types. +const NODE_TYPES = Object.keys(KEYS); + +// Freeze the keys. +for (const type of NODE_TYPES) { + Object.freeze(KEYS[type]); +} +Object.freeze(KEYS); + +export default KEYS; diff --git a/node_modules/espree/node_modules/eslint-visitor-keys/package.json b/node_modules/espree/node_modules/eslint-visitor-keys/package.json new file mode 100644 index 00000000..4dc2123d --- /dev/null +++ b/node_modules/espree/node_modules/eslint-visitor-keys/package.json @@ -0,0 +1,67 @@ +{ + "name": "eslint-visitor-keys", + "version": "4.2.0", + "description": "Constants and utilities about visitor keys to traverse AST.", + "type": "module", + "main": "dist/eslint-visitor-keys.cjs", + "types": "./dist/index.d.ts", + "exports": { + ".": [ + { + "import": "./lib/index.js", + "require": "./dist/eslint-visitor-keys.cjs" + }, + "./dist/eslint-visitor-keys.cjs" + ], + "./package.json": "./package.json" + }, + "files": [ + "dist/index.d.ts", + "dist/visitor-keys.d.ts", + "dist/eslint-visitor-keys.cjs", + "dist/eslint-visitor-keys.d.cts", + "lib" + ], + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "devDependencies": { + "@types/estree": "^0.0.51", + "@types/estree-jsx": "^0.0.1", + "@typescript-eslint/parser": "^8.7.0", + "c8": "^7.11.0", + "chai": "^4.3.6", + "eslint-release": "^3.2.0", + "esquery": "^1.4.0", + "json-diff": "^0.7.3", + "mocha": "^9.2.1", + "opener": "^1.5.2", + "rollup": "^4.22.4", + "rollup-plugin-dts": "^6.1.1", + "tsd": "^0.31.2", + "typescript": "^5.6.2" + }, + "scripts": { + "build": "npm run build:cjs && npm run build:types", + "build:cjs": "rollup -c", + "build:debug": "npm run build:cjs -- -m && npm run build:types", + "build:types": "tsc -v && tsc", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", + "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", + "test:types": "tsd" + }, + "repository": "eslint/js", + "funding": "https://opencollective.com/eslint", + "keywords": [], + "author": "Toru Nagashima (https://github.com/mysticatea)", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/eslint/js/issues" + }, + "homepage": "https://github.com/eslint/js/blob/main/packages/eslint-visitor-keys/README.md" +} diff --git a/node_modules/espree/package.json b/node_modules/espree/package.json index 12c8d0b1..ca08d881 100644 --- a/node_modules/espree/package.json +++ b/node_modules/espree/package.json @@ -2,7 +2,7 @@ "name": "espree", "description": "An Esprima-compatible JavaScript parser built on Acorn", "author": "Nicholas C. Zakas ", - "homepage": "https://github.com/eslint/espree", + "homepage": "https://github.com/eslint/js/blob/main/packages/espree/README.md", "main": "dist/espree.cjs", "type": "module", "exports": { @@ -16,44 +16,37 @@ ], "./package.json": "./package.json" }, - "version": "9.6.1", + "version": "10.3.0", "files": [ "lib", "dist/espree.cjs", "espree.js" ], "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "repository": "eslint/espree", + "repository": "eslint/js", "bugs": { - "url": "https://github.com/eslint/espree/issues" + "url": "https://github.com/eslint/js/issues" }, "funding": "https://opencollective.com/eslint", "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.14.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.2.0" }, "devDependencies": { - "@rollup/plugin-commonjs": "^17.1.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^11.2.0", + "@rollup/plugin-commonjs": "^28.0.0", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.3.0", "c8": "^7.11.0", - "chai": "^4.3.6", - "eslint": "^8.44.0", - "eslint-config-eslint": "^8.0.0", - "eslint-plugin-n": "^16.0.0", "eslint-release": "^3.2.0", "esprima-fb": "^8001.2001.0-dev-harmony-fb", - "globals": "^13.20.0", - "lint-staged": "^13.2.0", "mocha": "^9.2.2", - "npm-run-all": "^4.1.5", - "rollup": "^2.41.2", - "shelljs": "^0.3.0", - "yorkie": "^2.0.0" + "npm-run-all2": "^6.2.2", + "rollup": "^2.79.1", + "shelljs": "^0.8.5" }, "keywords": [ "ast", @@ -63,26 +56,20 @@ "syntax", "acorn" ], - "gitHooks": { - "pre-commit": "lint-staged" - }, "scripts": { - "unit": "npm-run-all -s unit:*", - "unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", - "unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", - "test": "npm-run-all -p unit lint", - "lint": "eslint . --report-unused-disable-directives", - "fixlint": "npm run lint -- --fix", "build": "rollup -c rollup.config.js", "build:debug": "npm run build -- -m", - "update-version": "node tools/update-version.js", + "build:docs": "node tools/sync-docs.js", + "build:update-version": "node tools/update-version.js", + "prepublishOnly": "npm run build:update-version && npm run build", "pretest": "npm run build", - "prepublishOnly": "npm run update-version && npm run build", - "sync-docs": "node sync-docs.js", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "npm-run-all -s test:*", + "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", + "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'" } } diff --git a/node_modules/file-entry-cache/LICENSE b/node_modules/file-entry-cache/LICENSE index c58c3396..39a8bc45 100644 --- a/node_modules/file-entry-cache/LICENSE +++ b/node_modules/file-entry-cache/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Roy Riojas +Copyright (c) Roy Riojas & Jared Wray Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/file-entry-cache/README.md b/node_modules/file-entry-cache/README.md index 854a5123..4f068fe4 100644 --- a/node_modules/file-entry-cache/README.md +++ b/node_modules/file-entry-cache/README.md @@ -1,9 +1,12 @@ # file-entry-cache -> Super simple cache for file metadata, useful for process that work o a given series of files +> Super simple cache for file metadata, useful for process that work on a given series of files > and that only need to repeat the job on the changed ones since the previous run of the process — Edit -[![NPM Version](http://img.shields.io/npm/v/file-entry-cache.svg?style=flat)](https://npmjs.org/package/file-entry-cache) -[![Build Status](http://img.shields.io/travis/royriojas/file-entry-cache.svg?style=flat)](https://travis-ci.org/royriojas/file-entry-cache) +[![NPM Version](https://img.shields.io/npm/v/file-entry-cache.svg?style=flat)](https://npmjs.org/package/file-entry-cache) +[![tests](https://github.com/jaredwray/file-entry-cache/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/jaredwray/file-entry-cache/actions/workflows/tests.yaml) +[![codecov](https://codecov.io/github/jaredwray/file-entry-cache/graph/badge.svg?token=37tZMQE0Sy)](https://codecov.io/github/jaredwray/file-entry-cache) +[![npm](https://img.shields.io/npm/dm/file-entry-cache)](https://npmjs.com/package/file-entry-cache) + ## install diff --git a/node_modules/file-entry-cache/changelog.md b/node_modules/file-entry-cache/changelog.md deleted file mode 100644 index 64d62a08..00000000 --- a/node_modules/file-entry-cache/changelog.md +++ /dev/null @@ -1,163 +0,0 @@ - -# file-entry-cache - Changelog -## v6.0.1 -- **Other changes** - - Delete previous mtime when checksum is used and vice versa - [abcf0f9]( https://github.com/royriojas/file-entry-cache/commit/abcf0f9 ), [Milos Djermanovic](https://github.com/Milos Djermanovic), 19/02/2021 18:19:43 - - - - Adds travis jobs on ppc64le - [92e4d4a]( https://github.com/royriojas/file-entry-cache/commit/92e4d4a ), [dineshks1](https://github.com/dineshks1), 25/11/2020 04:52:11 - - -## v6.0.0 -- **Refactoring** - - Align file-entry-cache with latest eslint - [4c6f1fb]( https://github.com/royriojas/file-entry-cache/commit/4c6f1fb ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:43:09 - - - - Upgrade deps - [8ab3257]( https://github.com/royriojas/file-entry-cache/commit/8ab3257 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:41:53 - - - - updated packages - [3dd4231]( https://github.com/royriojas/file-entry-cache/commit/3dd4231 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:29:37 - - - - Upgrade flat-cache to version 3 - [d7c60ef]( https://github.com/royriojas/file-entry-cache/commit/d7c60ef ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:18:04 - - -## v5.0.1 -- **Bug Fixes** - - Fix missing checksum comparison from reconcile since now we use mtime and size by default. - [e858aa9]( https://github.com/royriojas/file-entry-cache/commit/e858aa9 ), [Roy Riojas](https://github.com/Roy Riojas), 04/02/2019 09:30:22 - - Old mode using checkSum can still be used by passing the `useCheckSum` parameter to the `create` or `createFromFile` methods. - -## v5.0.0 -- **Refactoring** - - Make checksum comparison optional - [b0f9ae0]( https://github.com/royriojas/file-entry-cache/commit/b0f9ae0 ), [Roy Riojas](https://github.com/Roy Riojas), 03/02/2019 18:17:39 - - To determine if a file has changed we were using the checksum in the newer versions, but eslint was relying on the old behavior where we use the mtime and file size to determine if a file changed. That's why we decided to make the checksum check optional. - - To use it: - - ```js - // to make the cache use the checkSum check do the following: - var fCache = fileEntryCache.create(cacheName, dir, useCheckSum); // pass the third parameter as true - var otherCache = fileEntryCache.createFromFile(cacheName, useCheckSum); // pass the second parameter as true - ``` - -## v4.0.0 -- **Build Scripts Changes** - - use the same node versions eslint use - [563cfee]( https://github.com/royriojas/file-entry-cache/commit/563cfee ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 20:29:34 - - -- **Other changes** - - Remove object-assign dependency. - [d0f598e]( https://github.com/royriojas/file-entry-cache/commit/d0f598e ), [Corey Farrell](https://github.com/Corey Farrell), 08/01/2019 20:09:51 - - node.js >=4 is required so object-assign is no longer needed, the native - Object.assign can be used instead. - -## v3.0.0 -- **Build Scripts Changes** - - Upgrade flat-cache dep to latest - [078b0df]( https://github.com/royriojas/file-entry-cache/commit/078b0df ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 18:54:40 - - - - Commit new package-lock.json file - [245fe62]( https://github.com/royriojas/file-entry-cache/commit/245fe62 ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 17:56:21 - - -- **Refactoring** - - add eslintrc file - [6dd32d8]( https://github.com/royriojas/file-entry-cache/commit/6dd32d8 ), [Roy Riojas](https://github.com/Roy Riojas), 22/08/2018 09:58:17 - - -- **Other changes** - - Move variable definition out of else block - [ea05441]( https://github.com/royriojas/file-entry-cache/commit/ea05441 ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 25/04/2017 11:19:00 - - - - Add script and cmd to test hash/checksum performance - [7f60e0a]( https://github.com/royriojas/file-entry-cache/commit/7f60e0a ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 24/04/2017 14:43:12 - - - - Calculate md5 hexdigest instead of Adler-32 checksum - [f9e5c69]( https://github.com/royriojas/file-entry-cache/commit/f9e5c69 ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 24/04/2017 14:43:12 - - - - How to reproduce - [4edc2dc]( https://github.com/royriojas/file-entry-cache/commit/4edc2dc ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 24/04/2017 13:49:32 - - - - Test handling of removed files - [09d9ec5]( https://github.com/royriojas/file-entry-cache/commit/09d9ec5 ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 19/04/2017 19:51:50 - - - - Use content checksum instead of mtime and fsize - [343b340]( https://github.com/royriojas/file-entry-cache/commit/343b340 ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 19/04/2017 19:51:47 - - -- **Revert** - - Revert "How to reproduce" - [4b4e54a]( https://github.com/royriojas/file-entry-cache/commit/4b4e54a ), [Zakhar Shapurau](https://github.com/Zakhar Shapurau), 25/04/2017 11:15:36 - - This reverts commit 4edc2dcec01574247bfc2e0a2fe26527332b7df3. - -## v2.0.0 -- **Features** - - do not persist and prune removed files from cache. Relates to [#2](https://github.com/royriojas/file-entry-cache/issues/2) - [408374d]( https://github.com/royriojas/file-entry-cache/commit/408374d ), [Roy Riojas](https://github.com/Roy Riojas), 16/08/2016 13:47:58 - - -## v1.3.1 -- **Build Scripts Changes** - - remove older node version - [0a26ac4]( https://github.com/royriojas/file-entry-cache/commit/0a26ac4 ), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 04:09:17 - - -## v1.3.0 -- **Features** - - Add an option to not prune non visited keys. Closes [#2](https://github.com/royriojas/file-entry-cache/issues/2) - [b1a64db]( https://github.com/royriojas/file-entry-cache/commit/b1a64db ), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 03:52:12 - - -## v1.2.4 -- **Enhancements** - - Expose the flat-cache instance - [f34c557]( https://github.com/royriojas/file-entry-cache/commit/f34c557 ), [royriojas](https://github.com/royriojas), 23/09/2015 18:26:33 - - -## v1.2.3 -- **Build Scripts Changes** - - update flat-cache dep - [cc7b9ce]( https://github.com/royriojas/file-entry-cache/commit/cc7b9ce ), [royriojas](https://github.com/royriojas), 11/09/2015 16:04:44 - - -## v1.2.2 -- **Build Scripts Changes** - - Add changelogx section to package.json - [a3916ff]( https://github.com/royriojas/file-entry-cache/commit/a3916ff ), [royriojas](https://github.com/royriojas), 11/09/2015 16:00:26 - - -## v1.2.1 -- **Build Scripts Changes** - - update flat-cache dep - [e49b0d4]( https://github.com/royriojas/file-entry-cache/commit/e49b0d4 ), [royriojas](https://github.com/royriojas), 11/09/2015 15:55:25 - - -- **Other changes** - - Update dependencies Replaced lodash.assign with smaller object-assign Fixed tests for windows - [0ad3000]( https://github.com/royriojas/file-entry-cache/commit/0ad3000 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 15:44:18 - - -## v1.2.0 -- **Features** - - analyzeFiles now returns also the files that were removed - [6ac2431]( https://github.com/royriojas/file-entry-cache/commit/6ac2431 ), [royriojas](https://github.com/royriojas), 04/09/2015 12:40:53 - - -## v1.1.1 -- **Features** - - Add method to check if a file hasChanged - [3640e2b]( https://github.com/royriojas/file-entry-cache/commit/3640e2b ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 05:33:32 - - -## v1.1.0 -- **Features** - - Create the cache directly from a file path - [a23de61]( https://github.com/royriojas/file-entry-cache/commit/a23de61 ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 04:41:33 - - - - Add a method to remove an entry from the filecache - [7af29fc]( https://github.com/royriojas/file-entry-cache/commit/7af29fc ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 23:25:32 - - - - cache module finished - [1f95544]( https://github.com/royriojas/file-entry-cache/commit/1f95544 ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 01:08:08 - - -- **Build Scripts Changes** - - set the version for the first release - [7472eaa]( https://github.com/royriojas/file-entry-cache/commit/7472eaa ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 01:29:54 - - -- **Documentation** - - Updated documentation - [557358f]( https://github.com/royriojas/file-entry-cache/commit/557358f ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 01:29:29 - - -- **Other changes** - - Initial commit - [3d5f42b]( https://github.com/royriojas/file-entry-cache/commit/3d5f42b ), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 21:58:29 - - diff --git a/node_modules/file-entry-cache/package.json b/node_modules/file-entry-cache/package.json index f03ef48c..ef63b6ff 100644 --- a/node_modules/file-entry-cache/package.json +++ b/node_modules/file-entry-cache/package.json @@ -1,35 +1,27 @@ { "name": "file-entry-cache", - "version": "6.0.1", + "version": "8.0.0", "description": "Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process", - "repository": "royriojas/file-entry-cache", + "repository": "jaredwray/file-entry-cache", "license": "MIT", "author": { - "name": "Roy Riojas", - "url": "http://royriojas.com" + "name": "Jared Wray", + "url": "https://jaredwray.com" }, "main": "cache.js", "files": [ "cache.js" ], "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" }, "scripts": { "eslint": "eslint --cache --cache-location=node_modules/.cache/ 'cache.js' 'test/**/*.js' 'perf.js'", "autofix": "npm run eslint -- --fix", - "install-hooks": "prepush install && changelogx install-hook && precommit install", - "changelog": "changelogx -f markdown -o ./changelog.md", - "do-changelog": "npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify", - "pre-v": "npm run test", - "post-v": "npm run do-changelog && git push --no-verify && git push --tags --no-verify", - "bump-major": "npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v", - "bump-minor": "npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v", - "bump-patch": "npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v", - "test": "npm run eslint --silent && mocha -R spec test/specs", - "perf": "node perf.js", - "cover": "istanbul cover test/runner.js html text-summary", - "watch": "watch-run -i -p 'test/specs/**/*.js' istanbul cover test/runner.js html text-summary" + "clean": "rimraf ./node_modules ./package-lock.json ./yarn.lock", + "test": "npm run eslint --silent && c8 mocha -R spec test/specs", + "test:ci": "npm run eslint --silent && c8 --reporter=lcov mocha -R spec test/specs", + "perf": "node perf.js" }, "prepush": [ "npm run eslint --silent" @@ -45,36 +37,20 @@ "key value", "cache" ], - "changelogx": { - "ignoreRegExp": [ - "BLD: Release", - "DOC: Generate Changelog", - "Generated Changelog" - ], - "issueIDRegExp": "#(\\d+)", - "commitURL": "https://github.com/royriojas/file-entry-cache/commit/{0}", - "authorURL": "https://github.com/{0}", - "issueIDURL": "https://github.com/royriojas/file-entry-cache/issues/{0}", - "projectName": "file-entry-cache" - }, "devDependencies": { - "chai": "^4.2.0", - "changelogx": "^5.0.6", - "del": "^6.0.0", - "eslint": "^7.13.0", - "eslint-config-prettier": "^6.15.0", - "eslint-plugin-mocha": "^8.0.0", - "eslint-plugin-prettier": "^3.1.4", + "c8": "^8.0.1", + "chai": "^4.3.10", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-mocha": "^10.2.0", + "eslint-plugin-prettier": "^5.0.1", "glob-expand": "^0.2.1", - "istanbul": "^0.4.5", - "mocha": "^8.2.1", - "precommit": "^1.2.2", - "prepush": "^3.1.11", - "prettier": "^2.1.2", - "watch-run": "^1.2.5", + "mocha": "^10.2.0", + "prettier": "^3.1.1", + "rimraf": "^5.0.5", "write": "^2.0.0" }, "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" } } diff --git a/node_modules/flat-cache/README.md b/node_modules/flat-cache/README.md index a7054023..3d7793aa 100644 --- a/node_modules/flat-cache/README.md +++ b/node_modules/flat-cache/README.md @@ -1,4 +1,5 @@ # flat-cache + > A stupidly simple key/value storage using files to persist the data [![NPM Version](https://img.shields.io/npm/v/flat-cache.svg?style=flat)](https://npmjs.org/package/flat-cache) @@ -15,19 +16,19 @@ npm i --save flat-cache ## Usage ```js -var flatCache = require('flat-cache') +const flatCache = require('flat-cache'); // loads the cache, if one does not exists for the given // Id a new one will be prepared to be created -var cache = flatCache.load('cacheId'); +const cache = flatCache.load('cacheId'); // sets a key on the cache cache.setKey('key', { foo: 'var' }); // get a key from the cache -cache.getKey('key') // { foo: 'var' } +cache.getKey('key'); // { foo: 'var' } // fetch the entire persisted object -cache.all() // { 'key': { foo: 'var' } } +cache.all(); // { 'key': { foo: 'var' } } // remove a key cache.removeKey('key'); // removes a key from the cache @@ -38,11 +39,11 @@ cache.save(); // very important, if you don't save no changes will be persisted. // loads the cache from a given directory, if one does // not exists for the given Id a new one will be prepared to be created -var cache = flatCache.load('cacheId', path.resolve('./path/to/folder')); +const cache = flatCache.load('cacheId', path.resolve('./path/to/folder')); // The following methods are useful to clear the cache // delete a given cache -flatCache.clearCacheById('cacheId') // removes the cacheId document if one exists. +flatCache.clearCacheById('cacheId'); // removes the cacheId document if one exists. // delete all cache flatCache.clearAll(); // remove the cache directory @@ -56,6 +57,7 @@ To make that possible we need to store the `fileSize` and `modificationTime` of storage was needed and Bam! this module was born. ## Important notes + - If no directory is especified when the `load` method is called, a folder named `.cache` will be created inside the module directory when `cache.save` is called. If you're committing your `node_modules` to any vcs, you might want to ignore the default `.cache` folder, or specify a custom directory. diff --git a/node_modules/flat-cache/changelog.md b/node_modules/flat-cache/changelog.md index 0137a02c..866f9501 100644 --- a/node_modules/flat-cache/changelog.md +++ b/node_modules/flat-cache/changelog.md @@ -1,328 +1,278 @@ - # flat-cache - Changelog + ## v3.0.4 + - **Refactoring** - - add files by name to the list of exported files - [89a2698]( https://github.com/royriojas/flat-cache/commit/89a2698 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:35:39 + - add files by name to the list of exported files - [89a2698](https://github.com/royriojas/flat-cache/commit/89a2698), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:35:39 - ## v3.0.3 + - **Bug Fixes** - - Fix wrong eslint command - [f268e42]( https://github.com/royriojas/flat-cache/commit/f268e42 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:15:04 + - Fix wrong eslint command - [f268e42](https://github.com/royriojas/flat-cache/commit/f268e42), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:15:04 - ## v3.0.2 -- **Refactoring** - - Update the files paths - [6983a80]( https://github.com/royriojas/flat-cache/commit/6983a80 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:58:39 - - - Move code to src/ - [18ed6e8]( https://github.com/royriojas/flat-cache/commit/18ed6e8 ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:57:17 +- **Refactoring** - - - Change eslint-cache location - [beed74c]( https://github.com/royriojas/flat-cache/commit/beed74c ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:48:32 + - Update the files paths - [6983a80](https://github.com/royriojas/flat-cache/commit/6983a80), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:58:39 + - Move code to src/ - [18ed6e8](https://github.com/royriojas/flat-cache/commit/18ed6e8), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:57:17 + - Change eslint-cache location - [beed74c](https://github.com/royriojas/flat-cache/commit/beed74c), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:48:32 - ## v3.0.1 + - **Refactoring** - - Remove unused deps - [8c6d9dc]( https://github.com/royriojas/flat-cache/commit/8c6d9dc ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:43:29 + - Remove unused deps - [8c6d9dc](https://github.com/royriojas/flat-cache/commit/8c6d9dc), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:43:29 - ## v3.0.0 -- **Refactoring** - - Fix engines - [52b824c]( https://github.com/royriojas/flat-cache/commit/52b824c ), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:01:52 - +- **Refactoring** + - Fix engines - [52b824c](https://github.com/royriojas/flat-cache/commit/52b824c), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:01:52 - **Other changes** - - Replace write with combination of mkdir and writeFile ([#49](https://github.com/royriojas/flat-cache/issues/49)) - [ef48276]( https://github.com/royriojas/flat-cache/commit/ef48276 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 08/11/2020 00:17:15 + + - Replace write with combination of mkdir and writeFile ([#49](https://github.com/royriojas/flat-cache/issues/49)) - [ef48276](https://github.com/royriojas/flat-cache/commit/ef48276), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 08/11/2020 00:17:15 Node v10 introduced a great "recursive" option for mkdir which allows to get rid from mkdirp package and easily rewrite "write" package usage with two function calls. - + https://nodejs.org/api/fs.html#fs_fs_mkdir_path_options_callback - - Added a testcase for clearAll ([#48](https://github.com/royriojas/flat-cache/issues/48)) - [45b51ca]( https://github.com/royriojas/flat-cache/commit/45b51ca ), [Aaron Chen](https://github.com/Aaron Chen), 21/05/2020 08:40:03 - - - requet node>=10 - [a5c482c]( https://github.com/royriojas/flat-cache/commit/a5c482c ), [yumetodo](https://github.com/yumetodo), 10/04/2020 23:14:53 + - Added a testcase for clearAll ([#48](https://github.com/royriojas/flat-cache/issues/48)) - [45b51ca](https://github.com/royriojas/flat-cache/commit/45b51ca), [Aaron Chen](https://github.com/Aaron Chen), 21/05/2020 08:40:03 + - requet node>=10 - [a5c482c](https://github.com/royriojas/flat-cache/commit/a5c482c), [yumetodo](https://github.com/yumetodo), 10/04/2020 23:14:53 thanks @SuperITMan - - - Update README.md - [29fe40b]( https://github.com/royriojas/flat-cache/commit/29fe40b ), [Roy Riojas](https://github.com/Roy Riojas), 10/04/2020 20:08:05 - - - - reduce vulnerability to 1 - [e9db1b2]( https://github.com/royriojas/flat-cache/commit/e9db1b2 ), [yumetodo](https://github.com/yumetodo), 30/03/2020 11:10:43 - - - - reduce vulnerabilities dependencies to 8 - [b58d196]( https://github.com/royriojas/flat-cache/commit/b58d196 ), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:54:56 - - - - use prettier instead of esbeautifier - [03b1db7]( https://github.com/royriojas/flat-cache/commit/03b1db7 ), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:27:14 - - - update proxyquire - [c2f048d]( https://github.com/royriojas/flat-cache/commit/c2f048d ), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:16:16 - - - - update flatted and mocha - [a0e56da]( https://github.com/royriojas/flat-cache/commit/a0e56da ), [yumetodo](https://github.com/yumetodo), 30/03/2020 09:46:45 + - Update README.md - [29fe40b](https://github.com/royriojas/flat-cache/commit/29fe40b), [Roy Riojas](https://github.com/Roy Riojas), 10/04/2020 20:08:05 + - reduce vulnerability to 1 - [e9db1b2](https://github.com/royriojas/flat-cache/commit/e9db1b2), [yumetodo](https://github.com/yumetodo), 30/03/2020 11:10:43 + - reduce vulnerabilities dependencies to 8 - [b58d196](https://github.com/royriojas/flat-cache/commit/b58d196), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:54:56 + - use prettier instead of esbeautifier - [03b1db7](https://github.com/royriojas/flat-cache/commit/03b1db7), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:27:14 + - update proxyquire - [c2f048d](https://github.com/royriojas/flat-cache/commit/c2f048d), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:16:16 + - update flatted and mocha - [a0e56da](https://github.com/royriojas/flat-cache/commit/a0e56da), [yumetodo](https://github.com/yumetodo), 30/03/2020 09:46:45 mocha > mkdirp is updated istanble >>> optimist > minimist is not updated - - - drop support node.js < 10 in develop - [beba691]( https://github.com/royriojas/flat-cache/commit/beba691 ), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:31:09 + + - drop support node.js < 10 in develop - [beba691](https://github.com/royriojas/flat-cache/commit/beba691), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:31:09 see mkdirp - - - npm aufit fix(still remains) - [ce166cb]( https://github.com/royriojas/flat-cache/commit/ce166cb ), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:18:08 + + - npm aufit fix(still remains) - [ce166cb](https://github.com/royriojas/flat-cache/commit/ce166cb), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:18:08 37 vulnerabilities required manual review and could not be updated - - - updtate sinon - [9f2d1b6]( https://github.com/royriojas/flat-cache/commit/9f2d1b6 ), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:51 - - - apply eslint-plugin-mocha - [07343b5]( https://github.com/royriojas/flat-cache/commit/07343b5 ), [yumetodo](https://github.com/yumetodo), 13/03/2020 22:17:21 + - updtate sinon - [9f2d1b6](https://github.com/royriojas/flat-cache/commit/9f2d1b6), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:51 + - apply eslint-plugin-mocha - [07343b5](https://github.com/royriojas/flat-cache/commit/07343b5), [yumetodo](https://github.com/yumetodo), 13/03/2020 22:17:21 + - Less strint version check ([#44](https://github.com/royriojas/flat-cache/issues/44)) - [92aca1c](https://github.com/royriojas/flat-cache/commit/92aca1c), [Wojciech Maj](https://github.com/Wojciech Maj), 13/11/2019 16:18:25 - - - Less strint version check ([#44](https://github.com/royriojas/flat-cache/issues/44)) - [92aca1c]( https://github.com/royriojas/flat-cache/commit/92aca1c ), [Wojciech Maj](https://github.com/Wojciech Maj), 13/11/2019 16:18:25 + - Use ^ version matching for production dependencies + - Run npm audit fix - * Use ^ version matching for production dependencies - - * Run npm audit fix - - **Bug Fixes** - - update dependencies and use eslint directly - [73fbed2]( https://github.com/royriojas/flat-cache/commit/73fbed2 ), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:27 + - update dependencies and use eslint directly - [73fbed2](https://github.com/royriojas/flat-cache/commit/73fbed2), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:27 - ## v2.0.1 + - **Refactoring** - - upgrade node modules to latest versions - [6402ed3]( https://github.com/royriojas/flat-cache/commit/6402ed3 ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 18:47:05 + - upgrade node modules to latest versions - [6402ed3](https://github.com/royriojas/flat-cache/commit/6402ed3), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 18:47:05 - ## v2.0.0 + - **Bug Fixes** - - upgrade package.json lock file - [8d21c7b]( https://github.com/royriojas/flat-cache/commit/8d21c7b ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 17:03:13 - - - Use the same versions of node_js that eslint use - [8d23379]( https://github.com/royriojas/flat-cache/commit/8d23379 ), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 16:25:11 + - upgrade package.json lock file - [8d21c7b](https://github.com/royriojas/flat-cache/commit/8d21c7b), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 17:03:13 + - Use the same versions of node_js that eslint use - [8d23379](https://github.com/royriojas/flat-cache/commit/8d23379), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 16:25:11 - - **Other changes** - - Replace circular-json with flatted ([#36](https://github.com/royriojas/flat-cache/issues/36)) - [b93aced]( https://github.com/royriojas/flat-cache/commit/b93aced ), [C. K. Tang](https://github.com/C. K. Tang), 08/01/2019 17:03:01 - - - - Change JSON parser from circular-json to flatted & 1 more changes ([#37](https://github.com/royriojas/flat-cache/issues/37)) - [745e65a]( https://github.com/royriojas/flat-cache/commit/745e65a ), [Andy Chen](https://github.com/Andy Chen), 08/01/2019 16:17:20 - - * Change JSON parser from circular-json to flatted & 1 more changes - - * Change JSON parser from circular-json - * Audited 2 vulnerabilities - - * Update package.json - - * Update Engine require - - * There's a bunch of dependencies in this pkg requires node >=4, so I changed it to 4 - - * Remove and add node versions - - * I have seen this pkg is not available with node 0.12 so I removed it - * I have added a popular used LTS version of node - 10 - + + - Replace circular-json with flatted ([#36](https://github.com/royriojas/flat-cache/issues/36)) - [b93aced](https://github.com/royriojas/flat-cache/commit/b93aced), [C. K. Tang](https://github.com/C. K. Tang), 08/01/2019 17:03:01 + - Change JSON parser from circular-json to flatted & 1 more changes ([#37](https://github.com/royriojas/flat-cache/issues/37)) - [745e65a](https://github.com/royriojas/flat-cache/commit/745e65a), [Andy Chen](https://github.com/Andy Chen), 08/01/2019 16:17:20 + + - Change JSON parser from circular-json to flatted & 1 more changes + - Change JSON parser from circular-json + - Audited 2 vulnerabilities + - Update package.json + - Update Engine require + - There's a bunch of dependencies in this pkg requires node >=4, so I changed it to 4 + - Remove and add node versions + - I have seen this pkg is not available with node 0.12 so I removed it + - I have added a popular used LTS version of node - 10 + ## v1.3.4 + - **Refactoring** - - Add del.js and utils.js to the list of files to be beautified - [9d0ca9b]( https://github.com/royriojas/flat-cache/commit/9d0ca9b ), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 12:19:02 + - Add del.js and utils.js to the list of files to be beautified - [9d0ca9b](https://github.com/royriojas/flat-cache/commit/9d0ca9b), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 12:19:02 - ## v1.3.3 -- **Refactoring** - - Make sure package-lock.json is up to date - [a7d2598]( https://github.com/royriojas/flat-cache/commit/a7d2598 ), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 11:36:08 - +- **Refactoring** + - Make sure package-lock.json is up to date - [a7d2598](https://github.com/royriojas/flat-cache/commit/a7d2598), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 11:36:08 - **Other changes** - - Removed the need for del ([#33](https://github.com/royriojas/flat-cache/issues/33)) - [c429012]( https://github.com/royriojas/flat-cache/commit/c429012 ), [S. Gilroy](https://github.com/S. Gilroy), 13/11/2018 13:56:37 - * Removed the need for del - + - Removed the need for del ([#33](https://github.com/royriojas/flat-cache/issues/33)) - [c429012](https://github.com/royriojas/flat-cache/commit/c429012), [S. Gilroy](https://github.com/S. Gilroy), 13/11/2018 13:56:37 + + - Removed the need for del + Removed the need for del as newer versions have broken backwards compatibility. del mainly uses rimraf for deleting folders and files, replaceing it with rimraf only is a minimal change. - - * Disable glob on rimraf calls - - * Added glob disable to wrong call - - * Wrapped rimraf to simplify solution - + + - Disable glob on rimraf calls + - Added glob disable to wrong call + - Wrapped rimraf to simplify solution + ## v1.3.2 -- **Refactoring** - - remove yarn.lock file - [704c6c4]( https://github.com/royriojas/flat-cache/commit/704c6c4 ), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:41:08 - +- **Refactoring** + - remove yarn.lock file - [704c6c4](https://github.com/royriojas/flat-cache/commit/704c6c4), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:41:08 - **Other changes** - - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23))" - [db12d74]( https://github.com/royriojas/flat-cache/commit/db12d74 ), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:40:39 + + - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23))" - [db12d74](https://github.com/royriojas/flat-cache/commit/db12d74), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:40:39 This reverts commit 00f689277a75e85fef28e6a048fad227afc525e6. - + ## v1.3.1 -- **Refactoring** - - upgrade deps to remove some security warnings - [f405719]( https://github.com/royriojas/flat-cache/commit/f405719 ), [Roy Riojas](https://github.com/Roy Riojas), 06/11/2018 12:07:31 - +- **Refactoring** + - upgrade deps to remove some security warnings - [f405719](https://github.com/royriojas/flat-cache/commit/f405719), [Roy Riojas](https://github.com/Roy Riojas), 06/11/2018 12:07:31 - **Bug Fixes** - - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23)) - [00f6892]( https://github.com/royriojas/flat-cache/commit/00f6892 ), [Terry](https://github.com/Terry), 05/11/2018 18:44:16 - - + - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23)) - [00f6892](https://github.com/royriojas/flat-cache/commit/00f6892), [Terry](https://github.com/Terry), 05/11/2018 18:44:16 - **Other changes** - - update del to v3.0.0 ([#26](https://github.com/royriojas/flat-cache/issues/26)) - [d42883f]( https://github.com/royriojas/flat-cache/commit/d42883f ), [Patrick Silva](https://github.com/Patrick Silva), 03/11/2018 01:00:44 + + - update del to v3.0.0 ([#26](https://github.com/royriojas/flat-cache/issues/26)) - [d42883f](https://github.com/royriojas/flat-cache/commit/d42883f), [Patrick Silva](https://github.com/Patrick Silva), 03/11/2018 01:00:44 Closes #25 + ## v1.3.0 + - **Other changes** - - Added #all method ([#16](https://github.com/royriojas/flat-cache/issues/16)) - [12293be]( https://github.com/royriojas/flat-cache/commit/12293be ), [Ozair Patel](https://github.com/Ozair Patel), 25/09/2017 14:46:38 - - * Added #all method - - * Added #all method test - - * Updated readme - - * Added yarn.lock - - * Added more keys for #all test - - * Beautified file - - - fix changelog title style ([#14](https://github.com/royriojas/flat-cache/issues/14)) - [af8338a]( https://github.com/royriojas/flat-cache/commit/af8338a ), [前端小武](https://github.com/前端小武), 19/12/2016 20:34:48 - - + + - Added #all method ([#16](https://github.com/royriojas/flat-cache/issues/16)) - [12293be](https://github.com/royriojas/flat-cache/commit/12293be), [Ozair Patel](https://github.com/Ozair Patel), 25/09/2017 14:46:38 + + - Added #all method + - Added #all method test + - Updated readme + - Added yarn.lock + - Added more keys for #all test + - Beautified file + + - fix changelog title style ([#14](https://github.com/royriojas/flat-cache/issues/14)) - [af8338a](https://github.com/royriojas/flat-cache/commit/af8338a), [前端小武](https://github.com/前端小武), 19/12/2016 20:34:48 + ## v1.2.2 + - **Bug Fixes** - - Do not crash if cache file is invalid JSON. ([#13](https://github.com/royriojas/flat-cache/issues/13)) - [87beaa6]( https://github.com/royriojas/flat-cache/commit/87beaa6 ), [Roy Riojas](https://github.com/Roy Riojas), 19/12/2016 18:03:35 + + - Do not crash if cache file is invalid JSON. ([#13](https://github.com/royriojas/flat-cache/issues/13)) - [87beaa6](https://github.com/royriojas/flat-cache/commit/87beaa6), [Roy Riojas](https://github.com/Roy Riojas), 19/12/2016 18:03:35 Fixes #12 - + Not sure under which situations a cache file might exist that does not contain a valid JSON structure, but just in case to cover the possibility of this happening a try catch block has been added - + If the cache is somehow not valid the cache will be discarded an a a new cache will be stored instead + - **Other changes** - - Added travis ci support for modern node versions ([#11](https://github.com/royriojas/flat-cache/issues/11)) - [1c2b1f7]( https://github.com/royriojas/flat-cache/commit/1c2b1f7 ), [Amila Welihinda](https://github.com/Amila Welihinda), 10/11/2016 23:47:52 - - - Bumping `circular-son` version ([#10](https://github.com/royriojas/flat-cache/issues/10)) - [4d5e861]( https://github.com/royriojas/flat-cache/commit/4d5e861 ), [Andrea Giammarchi](https://github.com/Andrea Giammarchi), 02/08/2016 07:13:52 + - Added travis ci support for modern node versions ([#11](https://github.com/royriojas/flat-cache/issues/11)) - [1c2b1f7](https://github.com/royriojas/flat-cache/commit/1c2b1f7), [Amila Welihinda](https://github.com/Amila Welihinda), 10/11/2016 23:47:52 + - Bumping `circular-son` version ([#10](https://github.com/royriojas/flat-cache/issues/10)) - [4d5e861](https://github.com/royriojas/flat-cache/commit/4d5e861), [Andrea Giammarchi](https://github.com/Andrea Giammarchi), 02/08/2016 07:13:52 As mentioned in https://github.com/WebReflection/circular-json/issues/25 `circular-json` wan't rightly implementing the license field. - + Latest version bump changed only that bit so that ESLint should now be happy. + ## v1.2.1 + - **Bug Fixes** - - Add missing utils.js file to the package. closes [#8](https://github.com/royriojas/flat-cache/issues/8) - [ec10cf2]( https://github.com/royriojas/flat-cache/commit/ec10cf2 ), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:18:57 + - Add missing utils.js file to the package. closes [#8](https://github.com/royriojas/flat-cache/issues/8) - [ec10cf2](https://github.com/royriojas/flat-cache/commit/ec10cf2), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:18:57 - ## v1.2.0 + - **Documentation** - - Add documentation about noPrune option - [23e11f9]( https://github.com/royriojas/flat-cache/commit/23e11f9 ), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:06:49 + - Add documentation about noPrune option - [23e11f9](https://github.com/royriojas/flat-cache/commit/23e11f9), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:06:49 - ## v1.0.11 + - **Features** - - Add noPrune option to cache.save() method. closes [#7](https://github.com/royriojas/flat-cache/issues/7) - [2c8016a]( https://github.com/royriojas/flat-cache/commit/2c8016a ), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:00:29 - - - Add json read and write utility based on circular-json - [c31081e]( https://github.com/royriojas/flat-cache/commit/c31081e ), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:58:17 + - Add noPrune option to cache.save() method. closes [#7](https://github.com/royriojas/flat-cache/issues/7) - [2c8016a](https://github.com/royriojas/flat-cache/commit/2c8016a), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:00:29 + - Add json read and write utility based on circular-json - [c31081e](https://github.com/royriojas/flat-cache/commit/c31081e), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:58:17 - - **Bug Fixes** - - Remove UTF16 BOM stripping - [4a41e22]( https://github.com/royriojas/flat-cache/commit/4a41e22 ), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:18:06 - Since we control both writing and reading of JSON stream, there no needs + - Remove UTF16 BOM stripping - [4a41e22](https://github.com/royriojas/flat-cache/commit/4a41e22), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:18:06 + + Since we control both writing and reading of JSON stream, there no needs to handle unicode BOM. - - Use circular-json to handle circular references (fix [#5](https://github.com/royriojas/flat-cache/issues/5)) - [cd7aeed]( https://github.com/royriojas/flat-cache/commit/cd7aeed ), [Jean Ponchon](https://github.com/Jean Ponchon), 25/07/2016 11:11:59 - + - Use circular-json to handle circular references (fix [#5](https://github.com/royriojas/flat-cache/issues/5)) - [cd7aeed](https://github.com/royriojas/flat-cache/commit/cd7aeed), [Jean Ponchon](https://github.com/Jean Ponchon), 25/07/2016 11:11:59 + - **Tests Related fixes** - - Add missing file from eslint test - [d6fa3c3]( https://github.com/royriojas/flat-cache/commit/d6fa3c3 ), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:15:51 - - - Add test for circular json serialization / deserialization - [07d2ddd]( https://github.com/royriojas/flat-cache/commit/07d2ddd ), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:36 + - Add missing file from eslint test - [d6fa3c3](https://github.com/royriojas/flat-cache/commit/d6fa3c3), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:15:51 + - Add test for circular json serialization / deserialization - [07d2ddd](https://github.com/royriojas/flat-cache/commit/07d2ddd), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:36 - - **Refactoring** - - Remove unused read-json-sync - [2be1c24]( https://github.com/royriojas/flat-cache/commit/2be1c24 ), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:18 - - + - Remove unused read-json-sync - [2be1c24](https://github.com/royriojas/flat-cache/commit/2be1c24), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:18 - **Build Scripts Changes** - - travis tests on 0.12 and 4x - [3a613fd]( https://github.com/royriojas/flat-cache/commit/3a613fd ), [royriojas](https://github.com/royriojas), 15/11/2015 14:34:40 + - travis tests on 0.12 and 4x - [3a613fd](https://github.com/royriojas/flat-cache/commit/3a613fd), [royriojas](https://github.com/royriojas), 15/11/2015 14:34:40 - ## v1.0.10 + - **Build Scripts Changes** - - add eslint-fix task - [fd29e52]( https://github.com/royriojas/flat-cache/commit/fd29e52 ), [royriojas](https://github.com/royriojas), 01/11/2015 15:04:08 - - - make sure the test script also verify beautification and linting of files before running tests - [e94e176]( https://github.com/royriojas/flat-cache/commit/e94e176 ), [royriojas](https://github.com/royriojas), 01/11/2015 11:54:48 + - add eslint-fix task - [fd29e52](https://github.com/royriojas/flat-cache/commit/fd29e52), [royriojas](https://github.com/royriojas), 01/11/2015 15:04:08 + - make sure the test script also verify beautification and linting of files before running tests - [e94e176](https://github.com/royriojas/flat-cache/commit/e94e176), [royriojas](https://github.com/royriojas), 01/11/2015 11:54:48 - - **Other changes** - - add clearAll for cacheDir - [97383d9]( https://github.com/royriojas/flat-cache/commit/97383d9 ), [xieyaowu](https://github.com/xieyaowu), 31/10/2015 21:02:18 + - add clearAll for cacheDir - [97383d9](https://github.com/royriojas/flat-cache/commit/97383d9), [xieyaowu](https://github.com/xieyaowu), 31/10/2015 21:02:18 - ## v1.0.9 + - **Bug Fixes** - - wrong default values for changelogx user repo name - [7bb52d1]( https://github.com/royriojas/flat-cache/commit/7bb52d1 ), [royriojas](https://github.com/royriojas), 11/09/2015 15:59:30 + - wrong default values for changelogx user repo name - [7bb52d1](https://github.com/royriojas/flat-cache/commit/7bb52d1), [royriojas](https://github.com/royriojas), 11/09/2015 15:59:30 - ## v1.0.8 + - **Build Scripts Changes** - - test against node 4 - [c395b66]( https://github.com/royriojas/flat-cache/commit/c395b66 ), [royriojas](https://github.com/royriojas), 11/09/2015 15:51:39 + - test against node 4 - [c395b66](https://github.com/royriojas/flat-cache/commit/c395b66), [royriojas](https://github.com/royriojas), 11/09/2015 15:51:39 - ## v1.0.7 -- **Other changes** - - Move dependencies into devDep - [7e47099]( https://github.com/royriojas/flat-cache/commit/7e47099 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 15:10:57 - +- **Other changes** + - Move dependencies into devDep - [7e47099](https://github.com/royriojas/flat-cache/commit/7e47099), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 15:10:57 - **Documentation** - - Add missing changelog link - [f51197a]( https://github.com/royriojas/flat-cache/commit/f51197a ), [royriojas](https://github.com/royriojas), 11/09/2015 14:48:05 + - Add missing changelog link - [f51197a](https://github.com/royriojas/flat-cache/commit/f51197a), [royriojas](https://github.com/royriojas), 11/09/2015 14:48:05 - ## v1.0.6 + - **Build Scripts Changes** - - Add helpers/code check scripts - [bdb82f3]( https://github.com/royriojas/flat-cache/commit/bdb82f3 ), [royriojas](https://github.com/royriojas), 11/09/2015 14:44:31 + - Add helpers/code check scripts - [bdb82f3](https://github.com/royriojas/flat-cache/commit/bdb82f3), [royriojas](https://github.com/royriojas), 11/09/2015 14:44:31 - ## v1.0.5 -- **Documentation** - - better description for the module - [436817f]( https://github.com/royriojas/flat-cache/commit/436817f ), [royriojas](https://github.com/royriojas), 11/09/2015 14:35:33 - +- **Documentation** + - better description for the module - [436817f](https://github.com/royriojas/flat-cache/commit/436817f), [royriojas](https://github.com/royriojas), 11/09/2015 14:35:33 - **Other changes** - - Update dependencies - [be88aa3]( https://github.com/royriojas/flat-cache/commit/be88aa3 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 13:47:41 + - Update dependencies - [be88aa3](https://github.com/royriojas/flat-cache/commit/be88aa3), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 13:47:41 - ## v1.0.4 -- **Refactoring** - - load a cache file using the full filepath - [b8f68c2]( https://github.com/royriojas/flat-cache/commit/b8f68c2 ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 04:19:14 - +- **Refactoring** + - load a cache file using the full filepath - [b8f68c2](https://github.com/royriojas/flat-cache/commit/b8f68c2), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 04:19:14 - **Documentation** - - Add documentation about `clearAll` and `clearCacheById` - [13947c1]( https://github.com/royriojas/flat-cache/commit/13947c1 ), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:44:05 - - + - Add documentation about `clearAll` and `clearCacheById` - [13947c1](https://github.com/royriojas/flat-cache/commit/13947c1), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:44:05 - **Features** - - Add methods to remove the cache documents created - [af40443]( https://github.com/royriojas/flat-cache/commit/af40443 ), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:39:27 + - Add methods to remove the cache documents created - [af40443](https://github.com/royriojas/flat-cache/commit/af40443), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:39:27 - ## v1.0.1 + - **Other changes** - - Update README.md - [c2b6805]( https://github.com/royriojas/flat-cache/commit/c2b6805 ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:28:07 + - Update README.md - [c2b6805](https://github.com/royriojas/flat-cache/commit/c2b6805), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:28:07 - ## v1.0.0 -- **Refactoring** - - flat-cache v.1.0.0 - [c984274]( https://github.com/royriojas/flat-cache/commit/c984274 ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:11:50 - +- **Refactoring** + - flat-cache v.1.0.0 - [c984274](https://github.com/royriojas/flat-cache/commit/c984274), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:11:50 - **Other changes** - - Initial commit - [d43cccf]( https://github.com/royriojas/flat-cache/commit/d43cccf ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 01:12:16 - - + - Initial commit - [d43cccf](https://github.com/royriojas/flat-cache/commit/d43cccf), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 01:12:16 diff --git a/node_modules/flat-cache/package.json b/node_modules/flat-cache/package.json index b7b9eb00..b1248837 100644 --- a/node_modules/flat-cache/package.json +++ b/node_modules/flat-cache/package.json @@ -1,6 +1,6 @@ { "name": "flat-cache", - "version": "3.2.0", + "version": "4.0.1", "description": "A stupidly simple key/value storage using files to persist some data", "repository": "jaredwray/flat-cache", "license": "MIT", @@ -15,7 +15,7 @@ "src/utils.js" ], "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" }, "precommit": [ "npm run verify --silent" @@ -25,13 +25,15 @@ ], "scripts": { "eslint": "eslint --cache --cache-location=node_modules/.cache/ ./src/**/*.js ./test/**/*.js", + "clean": "rimraf ./node_modules ./package-lock.json ./yarn.lock ./coverage", "eslint-fix": "npm run eslint -- --fix", "autofix": "npm run eslint-fix", "check": "npm run eslint", "verify": "npm run eslint && npm run test:cache", "test:cache": "c8 mocha -R spec test/specs", "test:ci:cache": "c8 --reporter=lcov mocha -R spec test/specs", - "test": "npm run verify --silent" + "test": "npm run verify --silent", + "format": "prettier --write ." }, "keywords": [ "json cache", @@ -42,20 +44,20 @@ "cache" ], "devDependencies": { - "c8": "^7.14.0", + "c8": "^9.1.0", "chai": "^4.3.10", - "eslint": "^7.13.0", - "eslint-config-prettier": "^6.15.0", - "eslint-plugin-mocha": "^8.0.0", - "eslint-plugin-prettier": "^3.1.4", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-mocha": "^10.2.0", "glob-expand": "^0.2.1", - "mocha": "^8.4.0", - "prettier": "^2.1.2", + "mocha": "^10.3.0", + "prettier": "^3.2.4", + "rimraf": "^5.0.5", + "sinon": "^17.0.1", "write": "^2.0.0" }, "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" } } diff --git a/node_modules/flat-cache/src/cache.js b/node_modules/flat-cache/src/cache.js index 8999791b..b1fdf6d8 100644 --- a/node_modules/flat-cache/src/cache.js +++ b/node_modules/flat-cache/src/cache.js @@ -1,11 +1,10 @@ -var path = require('path'); -var fs = require('fs'); -var Keyv = require('keyv'); -var utils = require('./utils'); -var del = require('./del'); -var writeJSON = utils.writeJSON; - -var cache = { +const path = require('path'); +const fs = require('fs'); +const Keyv = require('keyv'); +const { writeJSON, tryParse } = require('./utils'); +const { del } = require('./del'); + +const cache = { /** * Load a cache identified by the given Id. If the element does not exists, then initialize an empty * cache storage. If specified `cacheDir` will be used as the directory to persist the data to. If omitted @@ -16,16 +15,16 @@ var cache = { * @param [cacheDir] {String} directory for the cache entry */ load: function (docId, cacheDir) { - var me = this; - + const me = this; me.keyv = new Keyv(); me.__visited = {}; me.__persisted = {}; + me._pathToFile = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId); if (fs.existsSync(me._pathToFile)) { - me._persisted = utils.tryParse(me._pathToFile, {}); + me._persisted = tryParse(me._pathToFile, {}); } }, @@ -35,7 +34,6 @@ var cache = { set _persisted(value) { this.__persisted = value; - this.keyv.set('persisted', value); }, get _visited() { @@ -44,7 +42,6 @@ var cache = { set _visited(value) { this.__visited = value; - this.keyv.set('visited', value); }, /** @@ -53,9 +50,9 @@ var cache = { * @param {String} pathToFile the path to the file containing the info for the cache */ loadFile: function (pathToFile) { - var me = this; - var dir = path.dirname(pathToFile); - var fName = path.basename(pathToFile); + const me = this; + const dir = path.dirname(pathToFile); + const fName = path.basename(pathToFile); me.load(fName, dir); }, @@ -109,10 +106,10 @@ var cache = { * @private */ _prune: function () { - var me = this; - var obj = {}; + const me = this; + const obj = {}; - var keys = Object.keys(me._visited); + const keys = Object.keys(me._visited); // no keys visited for either get or set value if (keys.length === 0) { @@ -134,8 +131,7 @@ var cache = { * @method save */ save: function (noPrune) { - var me = this; - + const me = this; !noPrune && me._prune(); writeJSON(me._pathToFile, me._persisted); }, @@ -153,7 +149,7 @@ var cache = { * @method destroy */ destroy: function () { - var me = this; + const me = this; me._visited = {}; me._persisted = {}; @@ -184,13 +180,13 @@ module.exports = { * @returns {cache} cache instance */ create: function (docId, cacheDir) { - var obj = Object.create(cache); + const obj = Object.create(cache); obj.load(docId, cacheDir); return obj; }, createFromFile: function (filePath) { - var obj = Object.create(cache); + const obj = Object.create(cache); obj.loadFile(filePath); return obj; }, @@ -203,7 +199,7 @@ module.exports = { * @returns {Boolean} true if the cache folder was deleted. False otherwise */ clearCacheById: function (docId, cacheDir) { - var filePath = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId); + const filePath = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId); return del(filePath); }, /** @@ -212,7 +208,7 @@ module.exports = { * @returns {Boolean} true if the cache folder was deleted. False otherwise */ clearAll: function (cacheDir) { - var filePath = cacheDir ? path.resolve(cacheDir) : path.resolve(__dirname, '../.cache/'); + const filePath = cacheDir ? path.resolve(cacheDir) : path.resolve(__dirname, '../.cache/'); return del(filePath); }, }; diff --git a/node_modules/flat-cache/src/del.js b/node_modules/flat-cache/src/del.js index 8908744b..9cd55c36 100644 --- a/node_modules/flat-cache/src/del.js +++ b/node_modules/flat-cache/src/del.js @@ -1,13 +1,30 @@ -var rimraf = require('rimraf').sync; -var fs = require('fs'); - -module.exports = function del(file) { - if (fs.existsSync(file)) { - //if rimraf doesn't throw then the file has been deleted or didn't exist - rimraf(file, { - glob: false, - }); +const fs = require('fs'); +const path = require('path'); + +function del(targetPath) { + if (!fs.existsSync(targetPath)) { + return false; + } + + try { + if (fs.statSync(targetPath).isDirectory()) { + // If it's a directory, delete its contents first + fs.readdirSync(targetPath).forEach(file => { + const curPath = path.join(targetPath, file); + + if (fs.statSync(curPath).isFile()) { + fs.unlinkSync(curPath); // Delete file + } + }); + fs.rmdirSync(targetPath); // Delete the now-empty directory + } else { + fs.unlinkSync(targetPath); // If it's a file, delete it directly + } + return true; + } catch (error) { + console.error(`Error while deleting ${targetPath}: ${error.message}`); } - return false; -}; +} + +module.exports = { del }; diff --git a/node_modules/flat-cache/src/utils.js b/node_modules/flat-cache/src/utils.js index 05f5ac38..c4f75fbc 100644 --- a/node_modules/flat-cache/src/utils.js +++ b/node_modules/flat-cache/src/utils.js @@ -1,44 +1,42 @@ -var fs = require('fs'); -var path = require('path'); -var flatted = require('flatted'); +const fs = require('fs'); +const path = require('path'); +const flatted = require('flatted'); -module.exports = { - tryParse: function (filePath, defaultValue) { - var result; - try { - result = this.readJSON(filePath); - } catch (ex) { - result = defaultValue; - } - return result; - }, +function tryParse(filePath, defaultValue) { + let result; + try { + result = readJSON(filePath); + } catch (ex) { + result = defaultValue; + } + return result; +} - /** - * Read json file synchronously using flatted - * - * @method readJSON - * @param {String} filePath Json filepath - * @returns {*} parse result - */ - readJSON: function (filePath) { - return flatted.parse( - fs.readFileSync(filePath, { - encoding: 'utf8', - }) - ); - }, +/** + * Read json file synchronously using flatted + * + * @param {String} filePath Json filepath + * @returns {*} parse result + */ +function readJSON(filePath) { + return flatted.parse( + fs.readFileSync(filePath, { + encoding: 'utf8', + }) + ); +} - /** - * Write json file synchronously using circular-json - * - * @method writeJSON - * @param {String} filePath Json filepath - * @param {*} data Object to serialize - */ - writeJSON: function (filePath, data) { - fs.mkdirSync(path.dirname(filePath), { - recursive: true, - }); - fs.writeFileSync(filePath, flatted.stringify(data)); - }, -}; +/** + * Write json file synchronously using circular-json + * + * @param {String} filePath Json filepath + * @param {*} data Object to serialize + */ +function writeJSON(filePath, data) { + fs.mkdirSync(path.dirname(filePath), { + recursive: true, + }); + fs.writeFileSync(filePath, flatted.stringify(data)); +} + +module.exports = { tryParse, readJSON, writeJSON }; diff --git a/node_modules/flatted/cjs/index.js b/node_modules/flatted/cjs/index.js index e519a197..7591f259 100644 --- a/node_modules/flatted/cjs/index.js +++ b/node_modules/flatted/cjs/index.js @@ -56,7 +56,7 @@ const set = (known, input, value) => { /** * Converts a specialized flatted string into a JS value. * @param {string} text - * @param {((this: any, key: string, value: any) => any) | undefined): any} [reviver] + * @param {(this: any, key: string, value: any) => any} [reviver] * @returns {any} */ const parse = (text, reviver) => { diff --git a/node_modules/flatted/index.js b/node_modules/flatted/index.js index 7575c959..faa281c9 100644 --- a/node_modules/flatted/index.js +++ b/node_modules/flatted/index.js @@ -66,7 +66,7 @@ self.Flatted = (function (exports) { /** * Converts a specialized flatted string into a JS value. * @param {string} text - * @param {((this: any, key: string, value: any) => any) | undefined): any} [reviver] + * @param {(this: any, key: string, value: any) => any} [reviver] * @returns {any} */ var parse = function parse(text, reviver) { diff --git a/node_modules/flatted/package.json b/node_modules/flatted/package.json index 588dacfc..05301558 100644 --- a/node_modules/flatted/package.json +++ b/node_modules/flatted/package.json @@ -1,6 +1,6 @@ { "name": "flatted", - "version": "3.3.1", + "version": "3.3.2", "description": "A super light and fast circular JSON parser.", "unpkg": "min.js", "main": "./cjs/index.js", diff --git a/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc b/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc deleted file mode 100644 index 478844f8..00000000 Binary files a/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc and /dev/null differ diff --git a/node_modules/globals/globals.json b/node_modules/globals/globals.json index 44b632f5..4e75173f 100644 --- a/node_modules/globals/globals.json +++ b/node_modules/globals/globals.json @@ -1099,30 +1099,30 @@ "XPathEvaluator": false, "XPathExpression": false, "XPathResult": false, - "XRAnchor": false, - "XRBoundedReferenceSpace": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRFrame": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRPose": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, + "XRAnchor": false, + "XRBoundedReferenceSpace": false, + "XRCPUDepthInformation": false, + "XRDepthInformation": false, + "XRFrame": false, + "XRInputSource": false, + "XRInputSourceArray": false, + "XRInputSourceEvent": false, + "XRInputSourcesChangeEvent": false, + "XRPose": false, + "XRReferenceSpace": false, + "XRReferenceSpaceEvent": false, + "XRRenderState": false, + "XRRigidTransform": false, + "XRSession": false, + "XRSessionEvent": false, + "XRSpace": false, + "XRSystem": false, + "XRView": false, + "XRViewerPose": false, + "XRViewport": false, + "XRWebGLBinding": false, + "XRWebGLDepthInformation": false, + "XRWebGLLayer": false, "XSLTProcessor": false }, "worker": { diff --git a/node_modules/globals/index.d.ts b/node_modules/globals/index.d.ts index a842e4c8..edd861f9 100644 --- a/node_modules/globals/index.d.ts +++ b/node_modules/globals/index.d.ts @@ -1,6 +1,2077 @@ -import {ReadonlyDeep} from 'type-fest'; -import globalsJson = require('./globals.json'); +// This file is autogenerated by scripts/generate-types.mjs +// Do NOT modify this file manually -declare const globals: ReadonlyDeep; +type GlobalsBuiltin = { + readonly 'AggregateError': false; + readonly 'Array': false; + readonly 'ArrayBuffer': false; + readonly 'Atomics': false; + readonly 'BigInt': false; + readonly 'BigInt64Array': false; + readonly 'BigUint64Array': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'DataView': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'FinalizationRegistry': false; + readonly 'Float32Array': false; + readonly 'Float64Array': false; + readonly 'Function': false; + readonly 'globalThis': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'Int16Array': false; + readonly 'Int32Array': false; + readonly 'Int8Array': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Map': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'Promise': false; + readonly 'propertyIsEnumerable': false; + readonly 'Proxy': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'Reflect': false; + readonly 'RegExp': false; + readonly 'Set': false; + readonly 'SharedArrayBuffer': false; + readonly 'String': false; + readonly 'Symbol': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'Uint16Array': false; + readonly 'Uint32Array': false; + readonly 'Uint8Array': false; + readonly 'Uint8ClampedArray': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; + readonly 'WeakMap': false; + readonly 'WeakRef': false; + readonly 'WeakSet': false; +} + +type GlobalsEs5 = { + readonly 'Array': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'Function': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'propertyIsEnumerable': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'RegExp': false; + readonly 'String': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; +} + +type GlobalsEs2015 = { + readonly 'Array': false; + readonly 'ArrayBuffer': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'DataView': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'Float32Array': false; + readonly 'Float64Array': false; + readonly 'Function': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'Int16Array': false; + readonly 'Int32Array': false; + readonly 'Int8Array': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Map': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'Promise': false; + readonly 'propertyIsEnumerable': false; + readonly 'Proxy': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'Reflect': false; + readonly 'RegExp': false; + readonly 'Set': false; + readonly 'String': false; + readonly 'Symbol': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'Uint16Array': false; + readonly 'Uint32Array': false; + readonly 'Uint8Array': false; + readonly 'Uint8ClampedArray': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; + readonly 'WeakMap': false; + readonly 'WeakSet': false; +} + +type GlobalsEs2017 = { + readonly 'Array': false; + readonly 'ArrayBuffer': false; + readonly 'Atomics': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'DataView': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'Float32Array': false; + readonly 'Float64Array': false; + readonly 'Function': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'Int16Array': false; + readonly 'Int32Array': false; + readonly 'Int8Array': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Map': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'Promise': false; + readonly 'propertyIsEnumerable': false; + readonly 'Proxy': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'Reflect': false; + readonly 'RegExp': false; + readonly 'Set': false; + readonly 'SharedArrayBuffer': false; + readonly 'String': false; + readonly 'Symbol': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'Uint16Array': false; + readonly 'Uint32Array': false; + readonly 'Uint8Array': false; + readonly 'Uint8ClampedArray': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; + readonly 'WeakMap': false; + readonly 'WeakSet': false; +} + +type GlobalsEs2020 = { + readonly 'Array': false; + readonly 'ArrayBuffer': false; + readonly 'Atomics': false; + readonly 'BigInt': false; + readonly 'BigInt64Array': false; + readonly 'BigUint64Array': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'DataView': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'Float32Array': false; + readonly 'Float64Array': false; + readonly 'Function': false; + readonly 'globalThis': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'Int16Array': false; + readonly 'Int32Array': false; + readonly 'Int8Array': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Map': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'Promise': false; + readonly 'propertyIsEnumerable': false; + readonly 'Proxy': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'Reflect': false; + readonly 'RegExp': false; + readonly 'Set': false; + readonly 'SharedArrayBuffer': false; + readonly 'String': false; + readonly 'Symbol': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'Uint16Array': false; + readonly 'Uint32Array': false; + readonly 'Uint8Array': false; + readonly 'Uint8ClampedArray': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; + readonly 'WeakMap': false; + readonly 'WeakSet': false; +} + +type GlobalsEs2021 = { + readonly 'AggregateError': false; + readonly 'Array': false; + readonly 'ArrayBuffer': false; + readonly 'Atomics': false; + readonly 'BigInt': false; + readonly 'BigInt64Array': false; + readonly 'BigUint64Array': false; + readonly 'Boolean': false; + readonly 'constructor': false; + readonly 'DataView': false; + readonly 'Date': false; + readonly 'decodeURI': false; + readonly 'decodeURIComponent': false; + readonly 'encodeURI': false; + readonly 'encodeURIComponent': false; + readonly 'Error': false; + readonly 'escape': false; + readonly 'eval': false; + readonly 'EvalError': false; + readonly 'FinalizationRegistry': false; + readonly 'Float32Array': false; + readonly 'Float64Array': false; + readonly 'Function': false; + readonly 'globalThis': false; + readonly 'hasOwnProperty': false; + readonly 'Infinity': false; + readonly 'Int16Array': false; + readonly 'Int32Array': false; + readonly 'Int8Array': false; + readonly 'isFinite': false; + readonly 'isNaN': false; + readonly 'isPrototypeOf': false; + readonly 'JSON': false; + readonly 'Map': false; + readonly 'Math': false; + readonly 'NaN': false; + readonly 'Number': false; + readonly 'Object': false; + readonly 'parseFloat': false; + readonly 'parseInt': false; + readonly 'Promise': false; + readonly 'propertyIsEnumerable': false; + readonly 'Proxy': false; + readonly 'RangeError': false; + readonly 'ReferenceError': false; + readonly 'Reflect': false; + readonly 'RegExp': false; + readonly 'Set': false; + readonly 'SharedArrayBuffer': false; + readonly 'String': false; + readonly 'Symbol': false; + readonly 'SyntaxError': false; + readonly 'toLocaleString': false; + readonly 'toString': false; + readonly 'TypeError': false; + readonly 'Uint16Array': false; + readonly 'Uint32Array': false; + readonly 'Uint8Array': false; + readonly 'Uint8ClampedArray': false; + readonly 'undefined': false; + readonly 'unescape': false; + readonly 'URIError': false; + readonly 'valueOf': false; + readonly 'WeakMap': false; + readonly 'WeakRef': false; + readonly 'WeakSet': false; +} + +type GlobalsBrowser = { + readonly 'AbortController': false; + readonly 'AbortSignal': false; + readonly 'addEventListener': false; + readonly 'alert': false; + readonly 'AnalyserNode': false; + readonly 'Animation': false; + readonly 'AnimationEffectReadOnly': false; + readonly 'AnimationEffectTiming': false; + readonly 'AnimationEffectTimingReadOnly': false; + readonly 'AnimationEvent': false; + readonly 'AnimationPlaybackEvent': false; + readonly 'AnimationTimeline': false; + readonly 'applicationCache': false; + readonly 'ApplicationCache': false; + readonly 'ApplicationCacheErrorEvent': false; + readonly 'atob': false; + readonly 'Attr': false; + readonly 'Audio': false; + readonly 'AudioBuffer': false; + readonly 'AudioBufferSourceNode': false; + readonly 'AudioContext': false; + readonly 'AudioDestinationNode': false; + readonly 'AudioListener': false; + readonly 'AudioNode': false; + readonly 'AudioParam': false; + readonly 'AudioProcessingEvent': false; + readonly 'AudioScheduledSourceNode': false; + readonly 'AudioWorkletGlobalScope': false; + readonly 'AudioWorkletNode': false; + readonly 'AudioWorkletProcessor': false; + readonly 'BarProp': false; + readonly 'BaseAudioContext': false; + readonly 'BatteryManager': false; + readonly 'BeforeUnloadEvent': false; + readonly 'BiquadFilterNode': false; + readonly 'Blob': false; + readonly 'BlobEvent': false; + readonly 'blur': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'BudgetService': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'Cache': false; + readonly 'caches': false; + readonly 'CacheStorage': false; + readonly 'cancelAnimationFrame': false; + readonly 'cancelIdleCallback': false; + readonly 'CanvasCaptureMediaStreamTrack': false; + readonly 'CanvasGradient': false; + readonly 'CanvasPattern': false; + readonly 'CanvasRenderingContext2D': false; + readonly 'ChannelMergerNode': false; + readonly 'ChannelSplitterNode': false; + readonly 'CharacterData': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'clientInformation': false; + readonly 'ClipboardEvent': false; + readonly 'ClipboardItem': false; + readonly 'close': false; + readonly 'closed': false; + readonly 'CloseEvent': false; + readonly 'Comment': false; + readonly 'CompositionEvent': false; + readonly 'CompressionStream': false; + readonly 'confirm': false; + readonly 'console': false; + readonly 'ConstantSourceNode': false; + readonly 'ConvolverNode': false; + readonly 'CountQueuingStrategy': false; + readonly 'createImageBitmap': false; + readonly 'Credential': false; + readonly 'CredentialsContainer': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CSS': false; + readonly 'CSSConditionRule': false; + readonly 'CSSFontFaceRule': false; + readonly 'CSSGroupingRule': false; + readonly 'CSSImportRule': false; + readonly 'CSSKeyframeRule': false; + readonly 'CSSKeyframesRule': false; + readonly 'CSSMatrixComponent': false; + readonly 'CSSMediaRule': false; + readonly 'CSSNamespaceRule': false; + readonly 'CSSPageRule': false; + readonly 'CSSPerspective': false; + readonly 'CSSRotate': false; + readonly 'CSSRule': false; + readonly 'CSSRuleList': false; + readonly 'CSSScale': false; + readonly 'CSSSkew': false; + readonly 'CSSSkewX': false; + readonly 'CSSSkewY': false; + readonly 'CSSStyleDeclaration': false; + readonly 'CSSStyleRule': false; + readonly 'CSSStyleSheet': false; + readonly 'CSSSupportsRule': false; + readonly 'CSSTransformValue': false; + readonly 'CSSTranslate': false; + readonly 'CustomElementRegistry': false; + readonly 'customElements': false; + readonly 'CustomEvent': false; + readonly 'DataTransfer': false; + readonly 'DataTransferItem': false; + readonly 'DataTransferItemList': false; + readonly 'DecompressionStream': false; + readonly 'defaultstatus': false; + readonly 'defaultStatus': false; + readonly 'DelayNode': false; + readonly 'DeviceMotionEvent': false; + readonly 'DeviceOrientationEvent': false; + readonly 'devicePixelRatio': false; + readonly 'dispatchEvent': false; + readonly 'document': false; + readonly 'Document': false; + readonly 'DocumentFragment': false; + readonly 'DocumentType': false; + readonly 'DOMError': false; + readonly 'DOMException': false; + readonly 'DOMImplementation': false; + readonly 'DOMMatrix': false; + readonly 'DOMMatrixReadOnly': false; + readonly 'DOMParser': false; + readonly 'DOMPoint': false; + readonly 'DOMPointReadOnly': false; + readonly 'DOMQuad': false; + readonly 'DOMRect': false; + readonly 'DOMRectList': false; + readonly 'DOMRectReadOnly': false; + readonly 'DOMStringList': false; + readonly 'DOMStringMap': false; + readonly 'DOMTokenList': false; + readonly 'DragEvent': false; + readonly 'DynamicsCompressorNode': false; + readonly 'Element': false; + readonly 'ErrorEvent': false; + readonly 'event': false; + readonly 'Event': false; + readonly 'EventSource': false; + readonly 'EventTarget': false; + readonly 'external': false; + readonly 'fetch': false; + readonly 'File': false; + readonly 'FileList': false; + readonly 'FileReader': false; + readonly 'find': false; + readonly 'focus': false; + readonly 'FocusEvent': false; + readonly 'FontFace': false; + readonly 'FontFaceSetLoadEvent': false; + readonly 'FormData': false; + readonly 'FormDataEvent': false; + readonly 'frameElement': false; + readonly 'frames': false; + readonly 'GainNode': false; + readonly 'Gamepad': false; + readonly 'GamepadButton': false; + readonly 'GamepadEvent': false; + readonly 'getComputedStyle': false; + readonly 'getSelection': false; + readonly 'HashChangeEvent': false; + readonly 'Headers': false; + readonly 'history': false; + readonly 'History': false; + readonly 'HTMLAllCollection': false; + readonly 'HTMLAnchorElement': false; + readonly 'HTMLAreaElement': false; + readonly 'HTMLAudioElement': false; + readonly 'HTMLBaseElement': false; + readonly 'HTMLBodyElement': false; + readonly 'HTMLBRElement': false; + readonly 'HTMLButtonElement': false; + readonly 'HTMLCanvasElement': false; + readonly 'HTMLCollection': false; + readonly 'HTMLContentElement': false; + readonly 'HTMLDataElement': false; + readonly 'HTMLDataListElement': false; + readonly 'HTMLDetailsElement': false; + readonly 'HTMLDialogElement': false; + readonly 'HTMLDirectoryElement': false; + readonly 'HTMLDivElement': false; + readonly 'HTMLDListElement': false; + readonly 'HTMLDocument': false; + readonly 'HTMLElement': false; + readonly 'HTMLEmbedElement': false; + readonly 'HTMLFieldSetElement': false; + readonly 'HTMLFontElement': false; + readonly 'HTMLFormControlsCollection': false; + readonly 'HTMLFormElement': false; + readonly 'HTMLFrameElement': false; + readonly 'HTMLFrameSetElement': false; + readonly 'HTMLHeadElement': false; + readonly 'HTMLHeadingElement': false; + readonly 'HTMLHRElement': false; + readonly 'HTMLHtmlElement': false; + readonly 'HTMLIFrameElement': false; + readonly 'HTMLImageElement': false; + readonly 'HTMLInputElement': false; + readonly 'HTMLLabelElement': false; + readonly 'HTMLLegendElement': false; + readonly 'HTMLLIElement': false; + readonly 'HTMLLinkElement': false; + readonly 'HTMLMapElement': false; + readonly 'HTMLMarqueeElement': false; + readonly 'HTMLMediaElement': false; + readonly 'HTMLMenuElement': false; + readonly 'HTMLMetaElement': false; + readonly 'HTMLMeterElement': false; + readonly 'HTMLModElement': false; + readonly 'HTMLObjectElement': false; + readonly 'HTMLOListElement': false; + readonly 'HTMLOptGroupElement': false; + readonly 'HTMLOptionElement': false; + readonly 'HTMLOptionsCollection': false; + readonly 'HTMLOutputElement': false; + readonly 'HTMLParagraphElement': false; + readonly 'HTMLParamElement': false; + readonly 'HTMLPictureElement': false; + readonly 'HTMLPreElement': false; + readonly 'HTMLProgressElement': false; + readonly 'HTMLQuoteElement': false; + readonly 'HTMLScriptElement': false; + readonly 'HTMLSelectElement': false; + readonly 'HTMLShadowElement': false; + readonly 'HTMLSlotElement': false; + readonly 'HTMLSourceElement': false; + readonly 'HTMLSpanElement': false; + readonly 'HTMLStyleElement': false; + readonly 'HTMLTableCaptionElement': false; + readonly 'HTMLTableCellElement': false; + readonly 'HTMLTableColElement': false; + readonly 'HTMLTableElement': false; + readonly 'HTMLTableRowElement': false; + readonly 'HTMLTableSectionElement': false; + readonly 'HTMLTemplateElement': false; + readonly 'HTMLTextAreaElement': false; + readonly 'HTMLTimeElement': false; + readonly 'HTMLTitleElement': false; + readonly 'HTMLTrackElement': false; + readonly 'HTMLUListElement': false; + readonly 'HTMLUnknownElement': false; + readonly 'HTMLVideoElement': false; + readonly 'IDBCursor': false; + readonly 'IDBCursorWithValue': false; + readonly 'IDBDatabase': false; + readonly 'IDBFactory': false; + readonly 'IDBIndex': false; + readonly 'IDBKeyRange': false; + readonly 'IDBObjectStore': false; + readonly 'IDBOpenDBRequest': false; + readonly 'IDBRequest': false; + readonly 'IDBTransaction': false; + readonly 'IDBVersionChangeEvent': false; + readonly 'IdleDeadline': false; + readonly 'IIRFilterNode': false; + readonly 'Image': false; + readonly 'ImageBitmap': false; + readonly 'ImageBitmapRenderingContext': false; + readonly 'ImageCapture': false; + readonly 'ImageData': false; + readonly 'indexedDB': false; + readonly 'innerHeight': false; + readonly 'innerWidth': false; + readonly 'InputEvent': false; + readonly 'IntersectionObserver': false; + readonly 'IntersectionObserverEntry': false; + readonly 'Intl': false; + readonly 'isSecureContext': false; + readonly 'KeyboardEvent': false; + readonly 'KeyframeEffect': false; + readonly 'KeyframeEffectReadOnly': false; + readonly 'length': false; + readonly 'localStorage': false; + readonly 'location': true; + readonly 'Location': false; + readonly 'locationbar': false; + readonly 'matchMedia': false; + readonly 'MediaDeviceInfo': false; + readonly 'MediaDevices': false; + readonly 'MediaElementAudioSourceNode': false; + readonly 'MediaEncryptedEvent': false; + readonly 'MediaError': false; + readonly 'MediaKeyMessageEvent': false; + readonly 'MediaKeySession': false; + readonly 'MediaKeyStatusMap': false; + readonly 'MediaKeySystemAccess': false; + readonly 'MediaList': false; + readonly 'MediaMetadata': false; + readonly 'MediaQueryList': false; + readonly 'MediaQueryListEvent': false; + readonly 'MediaRecorder': false; + readonly 'MediaSettingsRange': false; + readonly 'MediaSource': false; + readonly 'MediaStream': false; + readonly 'MediaStreamAudioDestinationNode': false; + readonly 'MediaStreamAudioSourceNode': false; + readonly 'MediaStreamConstraints': false; + readonly 'MediaStreamEvent': false; + readonly 'MediaStreamTrack': false; + readonly 'MediaStreamTrackEvent': false; + readonly 'menubar': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'MIDIAccess': false; + readonly 'MIDIConnectionEvent': false; + readonly 'MIDIInput': false; + readonly 'MIDIInputMap': false; + readonly 'MIDIMessageEvent': false; + readonly 'MIDIOutput': false; + readonly 'MIDIOutputMap': false; + readonly 'MIDIPort': false; + readonly 'MimeType': false; + readonly 'MimeTypeArray': false; + readonly 'MouseEvent': false; + readonly 'moveBy': false; + readonly 'moveTo': false; + readonly 'MutationEvent': false; + readonly 'MutationObserver': false; + readonly 'MutationRecord': false; + readonly 'name': false; + readonly 'NamedNodeMap': false; + readonly 'NavigationPreloadManager': false; + readonly 'navigator': false; + readonly 'Navigator': false; + readonly 'NavigatorUAData': false; + readonly 'NetworkInformation': false; + readonly 'Node': false; + readonly 'NodeFilter': false; + readonly 'NodeIterator': false; + readonly 'NodeList': false; + readonly 'Notification': false; + readonly 'OfflineAudioCompletionEvent': false; + readonly 'OfflineAudioContext': false; + readonly 'offscreenBuffering': false; + readonly 'OffscreenCanvas': true; + readonly 'OffscreenCanvasRenderingContext2D': false; + readonly 'onabort': true; + readonly 'onafterprint': true; + readonly 'onanimationend': true; + readonly 'onanimationiteration': true; + readonly 'onanimationstart': true; + readonly 'onappinstalled': true; + readonly 'onauxclick': true; + readonly 'onbeforeinstallprompt': true; + readonly 'onbeforeprint': true; + readonly 'onbeforeunload': true; + readonly 'onblur': true; + readonly 'oncancel': true; + readonly 'oncanplay': true; + readonly 'oncanplaythrough': true; + readonly 'onchange': true; + readonly 'onclick': true; + readonly 'onclose': true; + readonly 'oncontextmenu': true; + readonly 'oncuechange': true; + readonly 'ondblclick': true; + readonly 'ondevicemotion': true; + readonly 'ondeviceorientation': true; + readonly 'ondeviceorientationabsolute': true; + readonly 'ondrag': true; + readonly 'ondragend': true; + readonly 'ondragenter': true; + readonly 'ondragleave': true; + readonly 'ondragover': true; + readonly 'ondragstart': true; + readonly 'ondrop': true; + readonly 'ondurationchange': true; + readonly 'onemptied': true; + readonly 'onended': true; + readonly 'onerror': true; + readonly 'onfocus': true; + readonly 'ongotpointercapture': true; + readonly 'onhashchange': true; + readonly 'oninput': true; + readonly 'oninvalid': true; + readonly 'onkeydown': true; + readonly 'onkeypress': true; + readonly 'onkeyup': true; + readonly 'onlanguagechange': true; + readonly 'onload': true; + readonly 'onloadeddata': true; + readonly 'onloadedmetadata': true; + readonly 'onloadstart': true; + readonly 'onlostpointercapture': true; + readonly 'onmessage': true; + readonly 'onmessageerror': true; + readonly 'onmousedown': true; + readonly 'onmouseenter': true; + readonly 'onmouseleave': true; + readonly 'onmousemove': true; + readonly 'onmouseout': true; + readonly 'onmouseover': true; + readonly 'onmouseup': true; + readonly 'onmousewheel': true; + readonly 'onoffline': true; + readonly 'ononline': true; + readonly 'onpagehide': true; + readonly 'onpageshow': true; + readonly 'onpause': true; + readonly 'onplay': true; + readonly 'onplaying': true; + readonly 'onpointercancel': true; + readonly 'onpointerdown': true; + readonly 'onpointerenter': true; + readonly 'onpointerleave': true; + readonly 'onpointermove': true; + readonly 'onpointerout': true; + readonly 'onpointerover': true; + readonly 'onpointerup': true; + readonly 'onpopstate': true; + readonly 'onprogress': true; + readonly 'onratechange': true; + readonly 'onrejectionhandled': true; + readonly 'onreset': true; + readonly 'onresize': true; + readonly 'onscroll': true; + readonly 'onsearch': true; + readonly 'onseeked': true; + readonly 'onseeking': true; + readonly 'onselect': true; + readonly 'onstalled': true; + readonly 'onstorage': true; + readonly 'onsubmit': true; + readonly 'onsuspend': true; + readonly 'ontimeupdate': true; + readonly 'ontoggle': true; + readonly 'ontransitionend': true; + readonly 'onunhandledrejection': true; + readonly 'onunload': true; + readonly 'onvolumechange': true; + readonly 'onwaiting': true; + readonly 'onwheel': true; + readonly 'open': false; + readonly 'openDatabase': false; + readonly 'opener': false; + readonly 'Option': false; + readonly 'origin': false; + readonly 'OscillatorNode': false; + readonly 'outerHeight': false; + readonly 'outerWidth': false; + readonly 'OverconstrainedError': false; + readonly 'PageTransitionEvent': false; + readonly 'pageXOffset': false; + readonly 'pageYOffset': false; + readonly 'PannerNode': false; + readonly 'parent': false; + readonly 'Path2D': false; + readonly 'PaymentAddress': false; + readonly 'PaymentRequest': false; + readonly 'PaymentRequestUpdateEvent': false; + readonly 'PaymentResponse': false; + readonly 'performance': false; + readonly 'Performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceLongTaskTiming': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceNavigation': false; + readonly 'PerformanceNavigationTiming': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformancePaintTiming': false; + readonly 'PerformanceResourceTiming': false; + readonly 'PerformanceTiming': false; + readonly 'PeriodicWave': false; + readonly 'Permissions': false; + readonly 'PermissionStatus': false; + readonly 'personalbar': false; + readonly 'PhotoCapabilities': false; + readonly 'Plugin': false; + readonly 'PluginArray': false; + readonly 'PointerEvent': false; + readonly 'PopStateEvent': false; + readonly 'postMessage': false; + readonly 'Presentation': false; + readonly 'PresentationAvailability': false; + readonly 'PresentationConnection': false; + readonly 'PresentationConnectionAvailableEvent': false; + readonly 'PresentationConnectionCloseEvent': false; + readonly 'PresentationConnectionList': false; + readonly 'PresentationReceiver': false; + readonly 'PresentationRequest': false; + readonly 'print': false; + readonly 'ProcessingInstruction': false; + readonly 'ProgressEvent': false; + readonly 'PromiseRejectionEvent': false; + readonly 'prompt': false; + readonly 'PushManager': false; + readonly 'PushSubscription': false; + readonly 'PushSubscriptionOptions': false; + readonly 'queueMicrotask': false; + readonly 'RadioNodeList': false; + readonly 'Range': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'registerProcessor': false; + readonly 'RemotePlayback': false; + readonly 'removeEventListener': false; + readonly 'reportError': false; + readonly 'Request': false; + readonly 'requestAnimationFrame': false; + readonly 'requestIdleCallback': false; + readonly 'resizeBy': false; + readonly 'ResizeObserver': false; + readonly 'ResizeObserverEntry': false; + readonly 'resizeTo': false; + readonly 'Response': false; + readonly 'RTCCertificate': false; + readonly 'RTCDataChannel': false; + readonly 'RTCDataChannelEvent': false; + readonly 'RTCDtlsTransport': false; + readonly 'RTCIceCandidate': false; + readonly 'RTCIceGatherer': false; + readonly 'RTCIceTransport': false; + readonly 'RTCPeerConnection': false; + readonly 'RTCPeerConnectionIceEvent': false; + readonly 'RTCRtpContributingSource': false; + readonly 'RTCRtpReceiver': false; + readonly 'RTCRtpSender': false; + readonly 'RTCSctpTransport': false; + readonly 'RTCSessionDescription': false; + readonly 'RTCStatsReport': false; + readonly 'RTCTrackEvent': false; + readonly 'screen': false; + readonly 'Screen': false; + readonly 'screenLeft': false; + readonly 'ScreenOrientation': false; + readonly 'screenTop': false; + readonly 'screenX': false; + readonly 'screenY': false; + readonly 'ScriptProcessorNode': false; + readonly 'scroll': false; + readonly 'scrollbars': false; + readonly 'scrollBy': false; + readonly 'scrollTo': false; + readonly 'scrollX': false; + readonly 'scrollY': false; + readonly 'SecurityPolicyViolationEvent': false; + readonly 'Selection': false; + readonly 'self': false; + readonly 'ServiceWorker': false; + readonly 'ServiceWorkerContainer': false; + readonly 'ServiceWorkerRegistration': false; + readonly 'sessionStorage': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'ShadowRoot': false; + readonly 'SharedWorker': false; + readonly 'SourceBuffer': false; + readonly 'SourceBufferList': false; + readonly 'speechSynthesis': false; + readonly 'SpeechSynthesisEvent': false; + readonly 'SpeechSynthesisUtterance': false; + readonly 'StaticRange': false; + readonly 'status': false; + readonly 'statusbar': false; + readonly 'StereoPannerNode': false; + readonly 'stop': false; + readonly 'Storage': false; + readonly 'StorageEvent': false; + readonly 'StorageManager': false; + readonly 'structuredClone': false; + readonly 'styleMedia': false; + readonly 'StyleSheet': false; + readonly 'StyleSheetList': false; + readonly 'SubmitEvent': false; + readonly 'SubtleCrypto': false; + readonly 'SVGAElement': false; + readonly 'SVGAngle': false; + readonly 'SVGAnimatedAngle': false; + readonly 'SVGAnimatedBoolean': false; + readonly 'SVGAnimatedEnumeration': false; + readonly 'SVGAnimatedInteger': false; + readonly 'SVGAnimatedLength': false; + readonly 'SVGAnimatedLengthList': false; + readonly 'SVGAnimatedNumber': false; + readonly 'SVGAnimatedNumberList': false; + readonly 'SVGAnimatedPreserveAspectRatio': false; + readonly 'SVGAnimatedRect': false; + readonly 'SVGAnimatedString': false; + readonly 'SVGAnimatedTransformList': false; + readonly 'SVGAnimateElement': false; + readonly 'SVGAnimateMotionElement': false; + readonly 'SVGAnimateTransformElement': false; + readonly 'SVGAnimationElement': false; + readonly 'SVGCircleElement': false; + readonly 'SVGClipPathElement': false; + readonly 'SVGComponentTransferFunctionElement': false; + readonly 'SVGDefsElement': false; + readonly 'SVGDescElement': false; + readonly 'SVGDiscardElement': false; + readonly 'SVGElement': false; + readonly 'SVGEllipseElement': false; + readonly 'SVGFEBlendElement': false; + readonly 'SVGFEColorMatrixElement': false; + readonly 'SVGFEComponentTransferElement': false; + readonly 'SVGFECompositeElement': false; + readonly 'SVGFEConvolveMatrixElement': false; + readonly 'SVGFEDiffuseLightingElement': false; + readonly 'SVGFEDisplacementMapElement': false; + readonly 'SVGFEDistantLightElement': false; + readonly 'SVGFEDropShadowElement': false; + readonly 'SVGFEFloodElement': false; + readonly 'SVGFEFuncAElement': false; + readonly 'SVGFEFuncBElement': false; + readonly 'SVGFEFuncGElement': false; + readonly 'SVGFEFuncRElement': false; + readonly 'SVGFEGaussianBlurElement': false; + readonly 'SVGFEImageElement': false; + readonly 'SVGFEMergeElement': false; + readonly 'SVGFEMergeNodeElement': false; + readonly 'SVGFEMorphologyElement': false; + readonly 'SVGFEOffsetElement': false; + readonly 'SVGFEPointLightElement': false; + readonly 'SVGFESpecularLightingElement': false; + readonly 'SVGFESpotLightElement': false; + readonly 'SVGFETileElement': false; + readonly 'SVGFETurbulenceElement': false; + readonly 'SVGFilterElement': false; + readonly 'SVGForeignObjectElement': false; + readonly 'SVGGElement': false; + readonly 'SVGGeometryElement': false; + readonly 'SVGGradientElement': false; + readonly 'SVGGraphicsElement': false; + readonly 'SVGImageElement': false; + readonly 'SVGLength': false; + readonly 'SVGLengthList': false; + readonly 'SVGLinearGradientElement': false; + readonly 'SVGLineElement': false; + readonly 'SVGMarkerElement': false; + readonly 'SVGMaskElement': false; + readonly 'SVGMatrix': false; + readonly 'SVGMetadataElement': false; + readonly 'SVGMPathElement': false; + readonly 'SVGNumber': false; + readonly 'SVGNumberList': false; + readonly 'SVGPathElement': false; + readonly 'SVGPatternElement': false; + readonly 'SVGPoint': false; + readonly 'SVGPointList': false; + readonly 'SVGPolygonElement': false; + readonly 'SVGPolylineElement': false; + readonly 'SVGPreserveAspectRatio': false; + readonly 'SVGRadialGradientElement': false; + readonly 'SVGRect': false; + readonly 'SVGRectElement': false; + readonly 'SVGScriptElement': false; + readonly 'SVGSetElement': false; + readonly 'SVGStopElement': false; + readonly 'SVGStringList': false; + readonly 'SVGStyleElement': false; + readonly 'SVGSVGElement': false; + readonly 'SVGSwitchElement': false; + readonly 'SVGSymbolElement': false; + readonly 'SVGTextContentElement': false; + readonly 'SVGTextElement': false; + readonly 'SVGTextPathElement': false; + readonly 'SVGTextPositioningElement': false; + readonly 'SVGTitleElement': false; + readonly 'SVGTransform': false; + readonly 'SVGTransformList': false; + readonly 'SVGTSpanElement': false; + readonly 'SVGUnitTypes': false; + readonly 'SVGUseElement': false; + readonly 'SVGViewElement': false; + readonly 'TaskAttributionTiming': false; + readonly 'Text': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TextEvent': false; + readonly 'TextMetrics': false; + readonly 'TextTrack': false; + readonly 'TextTrackCue': false; + readonly 'TextTrackCueList': false; + readonly 'TextTrackList': false; + readonly 'TimeRanges': false; + readonly 'ToggleEvent': false; + readonly 'toolbar': false; + readonly 'top': false; + readonly 'Touch': false; + readonly 'TouchEvent': false; + readonly 'TouchList': false; + readonly 'TrackEvent': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'TransitionEvent': false; + readonly 'TreeWalker': false; + readonly 'UIEvent': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'ValidityState': false; + readonly 'visualViewport': false; + readonly 'VisualViewport': false; + readonly 'VTTCue': false; + readonly 'WaveShaperNode': false; + readonly 'WebAssembly': false; + readonly 'WebGL2RenderingContext': false; + readonly 'WebGLActiveInfo': false; + readonly 'WebGLBuffer': false; + readonly 'WebGLContextEvent': false; + readonly 'WebGLFramebuffer': false; + readonly 'WebGLProgram': false; + readonly 'WebGLQuery': false; + readonly 'WebGLRenderbuffer': false; + readonly 'WebGLRenderingContext': false; + readonly 'WebGLSampler': false; + readonly 'WebGLShader': false; + readonly 'WebGLShaderPrecisionFormat': false; + readonly 'WebGLSync': false; + readonly 'WebGLTexture': false; + readonly 'WebGLTransformFeedback': false; + readonly 'WebGLUniformLocation': false; + readonly 'WebGLVertexArrayObject': false; + readonly 'WebSocket': false; + readonly 'WheelEvent': false; + readonly 'window': false; + readonly 'Window': false; + readonly 'Worker': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; + readonly 'XMLDocument': false; + readonly 'XMLHttpRequest': false; + readonly 'XMLHttpRequestEventTarget': false; + readonly 'XMLHttpRequestUpload': false; + readonly 'XMLSerializer': false; + readonly 'XPathEvaluator': false; + readonly 'XPathExpression': false; + readonly 'XPathResult': false; + readonly 'XRAnchor': false; + readonly 'XRBoundedReferenceSpace': false; + readonly 'XRCPUDepthInformation': false; + readonly 'XRDepthInformation': false; + readonly 'XRFrame': false; + readonly 'XRInputSource': false; + readonly 'XRInputSourceArray': false; + readonly 'XRInputSourceEvent': false; + readonly 'XRInputSourcesChangeEvent': false; + readonly 'XRPose': false; + readonly 'XRReferenceSpace': false; + readonly 'XRReferenceSpaceEvent': false; + readonly 'XRRenderState': false; + readonly 'XRRigidTransform': false; + readonly 'XRSession': false; + readonly 'XRSessionEvent': false; + readonly 'XRSpace': false; + readonly 'XRSystem': false; + readonly 'XRView': false; + readonly 'XRViewerPose': false; + readonly 'XRViewport': false; + readonly 'XRWebGLBinding': false; + readonly 'XRWebGLDepthInformation': false; + readonly 'XRWebGLLayer': false; + readonly 'XSLTProcessor': false; +} + +type GlobalsWorker = { + readonly 'addEventListener': false; + readonly 'applicationCache': false; + readonly 'atob': false; + readonly 'Blob': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'Cache': false; + readonly 'caches': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'close': true; + readonly 'CompressionStream': false; + readonly 'console': false; + readonly 'CountQueuingStrategy': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CustomEvent': false; + readonly 'DecompressionStream': false; + readonly 'ErrorEvent': false; + readonly 'Event': false; + readonly 'fetch': false; + readonly 'File': false; + readonly 'FileReaderSync': false; + readonly 'FormData': false; + readonly 'Headers': false; + readonly 'IDBCursor': false; + readonly 'IDBCursorWithValue': false; + readonly 'IDBDatabase': false; + readonly 'IDBFactory': false; + readonly 'IDBIndex': false; + readonly 'IDBKeyRange': false; + readonly 'IDBObjectStore': false; + readonly 'IDBOpenDBRequest': false; + readonly 'IDBRequest': false; + readonly 'IDBTransaction': false; + readonly 'IDBVersionChangeEvent': false; + readonly 'ImageData': false; + readonly 'importScripts': true; + readonly 'indexedDB': false; + readonly 'location': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'name': false; + readonly 'navigator': false; + readonly 'Notification': false; + readonly 'onclose': true; + readonly 'onconnect': true; + readonly 'onerror': true; + readonly 'onlanguagechange': true; + readonly 'onmessage': true; + readonly 'onoffline': true; + readonly 'ononline': true; + readonly 'onrejectionhandled': true; + readonly 'onunhandledrejection': true; + readonly 'performance': false; + readonly 'Performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceNavigation': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformanceResourceTiming': false; + readonly 'PerformanceTiming': false; + readonly 'postMessage': true; + readonly 'Promise': false; + readonly 'queueMicrotask': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'removeEventListener': false; + readonly 'reportError': false; + readonly 'Request': false; + readonly 'Response': false; + readonly 'self': true; + readonly 'ServiceWorkerRegistration': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'SubtleCrypto': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'WebAssembly': false; + readonly 'WebSocket': false; + readonly 'Worker': false; + readonly 'WorkerGlobalScope': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; + readonly 'XMLHttpRequest': false; +} + +type GlobalsNode = { + readonly '__dirname': false; + readonly '__filename': false; + readonly 'AbortController': false; + readonly 'AbortSignal': false; + readonly 'atob': false; + readonly 'Blob': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'Buffer': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'clearImmediate': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'CompressionStream': false; + readonly 'console': false; + readonly 'CountQueuingStrategy': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CustomEvent': false; + readonly 'DecompressionStream': false; + readonly 'DOMException': false; + readonly 'Event': false; + readonly 'EventTarget': false; + readonly 'exports': true; + readonly 'fetch': false; + readonly 'File': false; + readonly 'FormData': false; + readonly 'global': false; + readonly 'Headers': false; + readonly 'Intl': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'module': false; + readonly 'performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformanceResourceTiming': false; + readonly 'process': false; + readonly 'queueMicrotask': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'Request': false; + readonly 'require': false; + readonly 'Response': false; + readonly 'setImmediate': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'structuredClone': false; + readonly 'SubtleCrypto': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'WebAssembly': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; +} + +type GlobalsNodeBuiltin = { + readonly 'AbortController': false; + readonly 'AbortSignal': false; + readonly 'atob': false; + readonly 'Blob': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'Buffer': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'clearImmediate': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'CompressionStream': false; + readonly 'console': false; + readonly 'CountQueuingStrategy': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CustomEvent': false; + readonly 'DecompressionStream': false; + readonly 'DOMException': false; + readonly 'Event': false; + readonly 'EventTarget': false; + readonly 'fetch': false; + readonly 'File': false; + readonly 'FormData': false; + readonly 'global': false; + readonly 'Headers': false; + readonly 'Intl': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformanceResourceTiming': false; + readonly 'process': false; + readonly 'queueMicrotask': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'Request': false; + readonly 'Response': false; + readonly 'setImmediate': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'structuredClone': false; + readonly 'SubtleCrypto': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'WebAssembly': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; +} + +type GlobalsCommonjs = { + readonly 'exports': true; + readonly 'global': false; + readonly 'module': false; + readonly 'require': false; +} + +type GlobalsAmd = { + readonly 'define': false; + readonly 'require': false; +} + +type GlobalsMocha = { + readonly 'after': false; + readonly 'afterEach': false; + readonly 'before': false; + readonly 'beforeEach': false; + readonly 'context': false; + readonly 'describe': false; + readonly 'it': false; + readonly 'mocha': false; + readonly 'run': false; + readonly 'setup': false; + readonly 'specify': false; + readonly 'suite': false; + readonly 'suiteSetup': false; + readonly 'suiteTeardown': false; + readonly 'teardown': false; + readonly 'test': false; + readonly 'xcontext': false; + readonly 'xdescribe': false; + readonly 'xit': false; + readonly 'xspecify': false; +} + +type GlobalsJasmine = { + readonly 'afterAll': false; + readonly 'afterEach': false; + readonly 'beforeAll': false; + readonly 'beforeEach': false; + readonly 'describe': false; + readonly 'expect': false; + readonly 'expectAsync': false; + readonly 'fail': false; + readonly 'fdescribe': false; + readonly 'fit': false; + readonly 'it': false; + readonly 'jasmine': false; + readonly 'pending': false; + readonly 'runs': false; + readonly 'spyOn': false; + readonly 'spyOnAllFunctions': false; + readonly 'spyOnProperty': false; + readonly 'waits': false; + readonly 'waitsFor': false; + readonly 'xdescribe': false; + readonly 'xit': false; +} + +type GlobalsJest = { + readonly 'afterAll': false; + readonly 'afterEach': false; + readonly 'beforeAll': false; + readonly 'beforeEach': false; + readonly 'describe': false; + readonly 'expect': false; + readonly 'fdescribe': false; + readonly 'fit': false; + readonly 'it': false; + readonly 'jest': false; + readonly 'pit': false; + readonly 'require': false; + readonly 'test': false; + readonly 'xdescribe': false; + readonly 'xit': false; + readonly 'xtest': false; +} + +type GlobalsQunit = { + readonly 'asyncTest': false; + readonly 'deepEqual': false; + readonly 'equal': false; + readonly 'expect': false; + readonly 'module': false; + readonly 'notDeepEqual': false; + readonly 'notEqual': false; + readonly 'notOk': false; + readonly 'notPropEqual': false; + readonly 'notStrictEqual': false; + readonly 'ok': false; + readonly 'propEqual': false; + readonly 'QUnit': false; + readonly 'raises': false; + readonly 'start': false; + readonly 'stop': false; + readonly 'strictEqual': false; + readonly 'test': false; + readonly 'throws': false; +} + +type GlobalsPhantomjs = { + readonly 'console': true; + readonly 'exports': true; + readonly 'phantom': true; + readonly 'require': true; + readonly 'WebPage': true; +} + +type GlobalsCouch = { + readonly 'emit': false; + readonly 'exports': false; + readonly 'getRow': false; + readonly 'log': false; + readonly 'module': false; + readonly 'provides': false; + readonly 'require': false; + readonly 'respond': false; + readonly 'send': false; + readonly 'start': false; + readonly 'sum': false; +} + +type GlobalsRhino = { + readonly 'defineClass': false; + readonly 'deserialize': false; + readonly 'gc': false; + readonly 'help': false; + readonly 'importClass': false; + readonly 'importPackage': false; + readonly 'java': false; + readonly 'load': false; + readonly 'loadClass': false; + readonly 'Packages': false; + readonly 'print': false; + readonly 'quit': false; + readonly 'readFile': false; + readonly 'readUrl': false; + readonly 'runCommand': false; + readonly 'seal': false; + readonly 'serialize': false; + readonly 'spawn': false; + readonly 'sync': false; + readonly 'toint32': false; + readonly 'version': false; +} + +type GlobalsNashorn = { + readonly '__DIR__': false; + readonly '__FILE__': false; + readonly '__LINE__': false; + readonly 'com': false; + readonly 'edu': false; + readonly 'exit': false; + readonly 'java': false; + readonly 'Java': false; + readonly 'javafx': false; + readonly 'JavaImporter': false; + readonly 'javax': false; + readonly 'JSAdapter': false; + readonly 'load': false; + readonly 'loadWithNewGlobal': false; + readonly 'org': false; + readonly 'Packages': false; + readonly 'print': false; + readonly 'quit': false; +} + +type GlobalsWsh = { + readonly 'ActiveXObject': false; + readonly 'CollectGarbage': false; + readonly 'Debug': false; + readonly 'Enumerator': false; + readonly 'GetObject': false; + readonly 'RuntimeObject': false; + readonly 'ScriptEngine': false; + readonly 'ScriptEngineBuildVersion': false; + readonly 'ScriptEngineMajorVersion': false; + readonly 'ScriptEngineMinorVersion': false; + readonly 'VBArray': false; + readonly 'WScript': false; + readonly 'WSH': false; +} + +type GlobalsJquery = { + readonly '$': false; + readonly 'jQuery': false; +} + +type GlobalsYui = { + readonly 'YAHOO': false; + readonly 'YAHOO_config': false; + readonly 'YUI': false; + readonly 'YUI_config': false; +} + +type GlobalsShelljs = { + readonly 'cat': false; + readonly 'cd': false; + readonly 'chmod': false; + readonly 'config': false; + readonly 'cp': false; + readonly 'dirs': false; + readonly 'echo': false; + readonly 'env': false; + readonly 'error': false; + readonly 'exec': false; + readonly 'exit': false; + readonly 'find': false; + readonly 'grep': false; + readonly 'ln': false; + readonly 'ls': false; + readonly 'mkdir': false; + readonly 'mv': false; + readonly 'popd': false; + readonly 'pushd': false; + readonly 'pwd': false; + readonly 'rm': false; + readonly 'sed': false; + readonly 'set': false; + readonly 'target': false; + readonly 'tempdir': false; + readonly 'test': false; + readonly 'touch': false; + readonly 'which': false; +} + +type GlobalsPrototypejs = { + readonly '$': false; + readonly '$$': false; + readonly '$A': false; + readonly '$break': false; + readonly '$continue': false; + readonly '$F': false; + readonly '$H': false; + readonly '$R': false; + readonly '$w': false; + readonly 'Abstract': false; + readonly 'Ajax': false; + readonly 'Autocompleter': false; + readonly 'Builder': false; + readonly 'Class': false; + readonly 'Control': false; + readonly 'Draggable': false; + readonly 'Draggables': false; + readonly 'Droppables': false; + readonly 'Effect': false; + readonly 'Element': false; + readonly 'Enumerable': false; + readonly 'Event': false; + readonly 'Field': false; + readonly 'Form': false; + readonly 'Hash': false; + readonly 'Insertion': false; + readonly 'ObjectRange': false; + readonly 'PeriodicalExecuter': false; + readonly 'Position': false; + readonly 'Prototype': false; + readonly 'Scriptaculous': false; + readonly 'Selector': false; + readonly 'Sortable': false; + readonly 'SortableObserver': false; + readonly 'Sound': false; + readonly 'Template': false; + readonly 'Toggle': false; + readonly 'Try': false; +} + +type GlobalsMeteor = { + readonly '$': false; + readonly 'Accounts': false; + readonly 'AccountsClient': false; + readonly 'AccountsCommon': false; + readonly 'AccountsServer': false; + readonly 'App': false; + readonly 'Assets': false; + readonly 'Blaze': false; + readonly 'check': false; + readonly 'Cordova': false; + readonly 'DDP': false; + readonly 'DDPRateLimiter': false; + readonly 'DDPServer': false; + readonly 'Deps': false; + readonly 'EJSON': false; + readonly 'Email': false; + readonly 'HTTP': false; + readonly 'Log': false; + readonly 'Match': false; + readonly 'Meteor': false; + readonly 'Mongo': false; + readonly 'MongoInternals': false; + readonly 'Npm': false; + readonly 'Package': false; + readonly 'Plugin': false; + readonly 'process': false; + readonly 'Random': false; + readonly 'ReactiveDict': false; + readonly 'ReactiveVar': false; + readonly 'Router': false; + readonly 'ServiceConfiguration': false; + readonly 'Session': false; + readonly 'share': false; + readonly 'Spacebars': false; + readonly 'Template': false; + readonly 'Tinytest': false; + readonly 'Tracker': false; + readonly 'UI': false; + readonly 'Utils': false; + readonly 'WebApp': false; + readonly 'WebAppInternals': false; +} + +type GlobalsMongo = { + readonly '_isWindows': false; + readonly '_rand': false; + readonly 'BulkWriteResult': false; + readonly 'cat': false; + readonly 'cd': false; + readonly 'connect': false; + readonly 'db': false; + readonly 'getHostName': false; + readonly 'getMemInfo': false; + readonly 'hostname': false; + readonly 'ISODate': false; + readonly 'listFiles': false; + readonly 'load': false; + readonly 'ls': false; + readonly 'md5sumFile': false; + readonly 'mkdir': false; + readonly 'Mongo': false; + readonly 'NumberInt': false; + readonly 'NumberLong': false; + readonly 'ObjectId': false; + readonly 'PlanCache': false; + readonly 'print': false; + readonly 'printjson': false; + readonly 'pwd': false; + readonly 'quit': false; + readonly 'removeFile': false; + readonly 'rs': false; + readonly 'sh': false; + readonly 'UUID': false; + readonly 'version': false; + readonly 'WriteResult': false; +} + +type GlobalsApplescript = { + readonly '$': false; + readonly 'Application': false; + readonly 'Automation': false; + readonly 'console': false; + readonly 'delay': false; + readonly 'Library': false; + readonly 'ObjC': false; + readonly 'ObjectSpecifier': false; + readonly 'Path': false; + readonly 'Progress': false; + readonly 'Ref': false; +} + +type GlobalsServiceworker = { + readonly 'addEventListener': false; + readonly 'applicationCache': false; + readonly 'atob': false; + readonly 'Blob': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'Cache': false; + readonly 'caches': false; + readonly 'CacheStorage': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'Client': false; + readonly 'clients': false; + readonly 'Clients': false; + readonly 'close': true; + readonly 'CompressionStream': false; + readonly 'console': false; + readonly 'CountQueuingStrategy': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CustomEvent': false; + readonly 'DecompressionStream': false; + readonly 'ErrorEvent': false; + readonly 'Event': false; + readonly 'ExtendableEvent': false; + readonly 'ExtendableMessageEvent': false; + readonly 'fetch': false; + readonly 'FetchEvent': false; + readonly 'File': false; + readonly 'FileReaderSync': false; + readonly 'FormData': false; + readonly 'Headers': false; + readonly 'IDBCursor': false; + readonly 'IDBCursorWithValue': false; + readonly 'IDBDatabase': false; + readonly 'IDBFactory': false; + readonly 'IDBIndex': false; + readonly 'IDBKeyRange': false; + readonly 'IDBObjectStore': false; + readonly 'IDBOpenDBRequest': false; + readonly 'IDBRequest': false; + readonly 'IDBTransaction': false; + readonly 'IDBVersionChangeEvent': false; + readonly 'ImageData': false; + readonly 'importScripts': false; + readonly 'indexedDB': false; + readonly 'location': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'name': false; + readonly 'navigator': false; + readonly 'Notification': false; + readonly 'onclose': true; + readonly 'onconnect': true; + readonly 'onerror': true; + readonly 'onfetch': true; + readonly 'oninstall': true; + readonly 'onlanguagechange': true; + readonly 'onmessage': true; + readonly 'onmessageerror': true; + readonly 'onnotificationclick': true; + readonly 'onnotificationclose': true; + readonly 'onoffline': true; + readonly 'ononline': true; + readonly 'onpush': true; + readonly 'onpushsubscriptionchange': true; + readonly 'onrejectionhandled': true; + readonly 'onsync': true; + readonly 'onunhandledrejection': true; + readonly 'performance': false; + readonly 'Performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceNavigation': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformanceResourceTiming': false; + readonly 'PerformanceTiming': false; + readonly 'postMessage': true; + readonly 'Promise': false; + readonly 'queueMicrotask': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'registration': false; + readonly 'removeEventListener': false; + readonly 'Request': false; + readonly 'Response': false; + readonly 'self': false; + readonly 'ServiceWorker': false; + readonly 'ServiceWorkerContainer': false; + readonly 'ServiceWorkerGlobalScope': false; + readonly 'ServiceWorkerMessageEvent': false; + readonly 'ServiceWorkerRegistration': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'skipWaiting': false; + readonly 'SubtleCrypto': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'WebAssembly': false; + readonly 'WebSocket': false; + readonly 'WindowClient': false; + readonly 'Worker': false; + readonly 'WorkerGlobalScope': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; + readonly 'XMLHttpRequest': false; +} + +type GlobalsAtomtest = { + readonly 'advanceClock': false; + readonly 'atom': false; + readonly 'fakeClearInterval': false; + readonly 'fakeClearTimeout': false; + readonly 'fakeSetInterval': false; + readonly 'fakeSetTimeout': false; + readonly 'resetTimeouts': false; + readonly 'waitsForPromise': false; +} + +type GlobalsEmbertest = { + readonly 'andThen': false; + readonly 'click': false; + readonly 'currentPath': false; + readonly 'currentRouteName': false; + readonly 'currentURL': false; + readonly 'fillIn': false; + readonly 'find': false; + readonly 'findAll': false; + readonly 'findWithAssert': false; + readonly 'keyEvent': false; + readonly 'pauseTest': false; + readonly 'resumeTest': false; + readonly 'triggerEvent': false; + readonly 'visit': false; + readonly 'wait': false; +} + +type GlobalsProtractor = { + readonly '$': false; + readonly '$$': false; + readonly 'browser': false; + readonly 'by': false; + readonly 'By': false; + readonly 'DartObject': false; + readonly 'element': false; + readonly 'protractor': false; +} + +type GlobalsSharednodebrowser = { + readonly 'AbortController': false; + readonly 'AbortSignal': false; + readonly 'atob': false; + readonly 'Blob': false; + readonly 'BroadcastChannel': false; + readonly 'btoa': false; + readonly 'ByteLengthQueuingStrategy': false; + readonly 'clearInterval': false; + readonly 'clearTimeout': false; + readonly 'CompressionStream': false; + readonly 'console': false; + readonly 'CountQueuingStrategy': false; + readonly 'crypto': false; + readonly 'Crypto': false; + readonly 'CryptoKey': false; + readonly 'CustomEvent': false; + readonly 'DecompressionStream': false; + readonly 'DOMException': false; + readonly 'Event': false; + readonly 'EventTarget': false; + readonly 'fetch': false; + readonly 'File': false; + readonly 'FormData': false; + readonly 'Headers': false; + readonly 'Intl': false; + readonly 'MessageChannel': false; + readonly 'MessageEvent': false; + readonly 'MessagePort': false; + readonly 'performance': false; + readonly 'PerformanceEntry': false; + readonly 'PerformanceMark': false; + readonly 'PerformanceMeasure': false; + readonly 'PerformanceObserver': false; + readonly 'PerformanceObserverEntryList': false; + readonly 'PerformanceResourceTiming': false; + readonly 'queueMicrotask': false; + readonly 'ReadableByteStreamController': false; + readonly 'ReadableStream': false; + readonly 'ReadableStreamBYOBReader': false; + readonly 'ReadableStreamBYOBRequest': false; + readonly 'ReadableStreamDefaultController': false; + readonly 'ReadableStreamDefaultReader': false; + readonly 'Request': false; + readonly 'Response': false; + readonly 'setInterval': false; + readonly 'setTimeout': false; + readonly 'structuredClone': false; + readonly 'SubtleCrypto': false; + readonly 'TextDecoder': false; + readonly 'TextDecoderStream': false; + readonly 'TextEncoder': false; + readonly 'TextEncoderStream': false; + readonly 'TransformStream': false; + readonly 'TransformStreamDefaultController': false; + readonly 'URL': false; + readonly 'URLSearchParams': false; + readonly 'WebAssembly': false; + readonly 'WritableStream': false; + readonly 'WritableStreamDefaultController': false; + readonly 'WritableStreamDefaultWriter': false; +} + +type GlobalsWebextensions = { + readonly 'browser': false; + readonly 'chrome': false; + readonly 'opr': false; +} + +type GlobalsGreasemonkey = { + readonly 'cloneInto': false; + readonly 'createObjectIn': false; + readonly 'exportFunction': false; + readonly 'GM': false; + readonly 'GM_addElement': false; + readonly 'GM_addStyle': false; + readonly 'GM_addValueChangeListener': false; + readonly 'GM_deleteValue': false; + readonly 'GM_download': false; + readonly 'GM_getResourceText': false; + readonly 'GM_getResourceURL': false; + readonly 'GM_getTab': false; + readonly 'GM_getTabs': false; + readonly 'GM_getValue': false; + readonly 'GM_info': false; + readonly 'GM_listValues': false; + readonly 'GM_log': false; + readonly 'GM_notification': false; + readonly 'GM_openInTab': false; + readonly 'GM_registerMenuCommand': false; + readonly 'GM_removeValueChangeListener': false; + readonly 'GM_saveTab': false; + readonly 'GM_setClipboard': false; + readonly 'GM_setValue': false; + readonly 'GM_unregisterMenuCommand': false; + readonly 'GM_xmlhttpRequest': false; + readonly 'unsafeWindow': false; +} + +type GlobalsDevtools = { + readonly '$': false; + readonly '$_': false; + readonly '$$': false; + readonly '$0': false; + readonly '$1': false; + readonly '$2': false; + readonly '$3': false; + readonly '$4': false; + readonly '$x': false; + readonly 'chrome': false; + readonly 'clear': false; + readonly 'copy': false; + readonly 'debug': false; + readonly 'dir': false; + readonly 'dirxml': false; + readonly 'getEventListeners': false; + readonly 'inspect': false; + readonly 'keys': false; + readonly 'monitor': false; + readonly 'monitorEvents': false; + readonly 'profile': false; + readonly 'profileEnd': false; + readonly 'queryObjects': false; + readonly 'table': false; + readonly 'undebug': false; + readonly 'unmonitor': false; + readonly 'unmonitorEvents': false; + readonly 'values': false; +} + +type Globals = { + readonly 'builtin': GlobalsBuiltin; + readonly 'es5': GlobalsEs5; + readonly 'es2015': GlobalsEs2015; + readonly 'es2017': GlobalsEs2017; + readonly 'es2020': GlobalsEs2020; + readonly 'es2021': GlobalsEs2021; + readonly 'browser': GlobalsBrowser; + readonly 'worker': GlobalsWorker; + readonly 'node': GlobalsNode; + readonly 'nodeBuiltin': GlobalsNodeBuiltin; + readonly 'commonjs': GlobalsCommonjs; + readonly 'amd': GlobalsAmd; + readonly 'mocha': GlobalsMocha; + readonly 'jasmine': GlobalsJasmine; + readonly 'jest': GlobalsJest; + readonly 'qunit': GlobalsQunit; + readonly 'phantomjs': GlobalsPhantomjs; + readonly 'couch': GlobalsCouch; + readonly 'rhino': GlobalsRhino; + readonly 'nashorn': GlobalsNashorn; + readonly 'wsh': GlobalsWsh; + readonly 'jquery': GlobalsJquery; + readonly 'yui': GlobalsYui; + readonly 'shelljs': GlobalsShelljs; + readonly 'prototypejs': GlobalsPrototypejs; + readonly 'meteor': GlobalsMeteor; + readonly 'mongo': GlobalsMongo; + readonly 'applescript': GlobalsApplescript; + readonly 'serviceworker': GlobalsServiceworker; + readonly 'atomtest': GlobalsAtomtest; + readonly 'embertest': GlobalsEmbertest; + readonly 'protractor': GlobalsProtractor; + readonly 'shared-node-browser': GlobalsSharednodebrowser; + readonly 'webextensions': GlobalsWebextensions; + readonly 'greasemonkey': GlobalsGreasemonkey; + readonly 'devtools': GlobalsDevtools; +} + +declare const globals: Globals; export = globals; diff --git a/node_modules/globals/package.json b/node_modules/globals/package.json index 78e26649..fca10a52 100644 --- a/node_modules/globals/package.json +++ b/node_modules/globals/package.json @@ -1,6 +1,6 @@ { "name": "globals", - "version": "13.24.0", + "version": "14.0.0", "description": "Global identifiers from different JavaScript environments", "license": "MIT", "repository": "sindresorhus/globals", @@ -12,10 +12,13 @@ }, "sideEffects": false, "engines": { - "node": ">=8" + "node": ">=18" }, "scripts": { - "test": "xo && ava" + "test": "xo && ava && tsd", + "prepare": "npm run --silent update-types", + "update-builtin-globals": "node scripts/get-builtin-globals.mjs", + "update-types": "node scripts/generate-types.mjs > index.d.ts" }, "files": [ "index.js", @@ -32,12 +35,11 @@ "eslint", "environments" ], - "dependencies": { - "type-fest": "^0.20.2" - }, "devDependencies": { "ava": "^2.4.0", - "tsd": "^0.14.0", + "cheerio": "^1.0.0-rc.12", + "tsd": "^0.30.4", + "type-fest": "^4.10.2", "xo": "^0.36.1" }, "xo": { diff --git a/node_modules/is-path-inside/index.d.ts b/node_modules/is-path-inside/index.d.ts deleted file mode 100644 index 5cc3d804..00000000 --- a/node_modules/is-path-inside/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** -Check if a path is inside another path. - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -_Important:_ This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -@example -``` -import isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` -*/ -declare function isPathInside(childPath: string, parentPath: string): boolean; - -export = isPathInside; diff --git a/node_modules/is-path-inside/index.js b/node_modules/is-path-inside/index.js deleted file mode 100644 index 28ed79c0..00000000 --- a/node_modules/is-path-inside/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -const path = require('path'); - -module.exports = (childPath, parentPath) => { - const relation = path.relative(parentPath, childPath); - return Boolean( - relation && - relation !== '..' && - !relation.startsWith(`..${path.sep}`) && - relation !== path.resolve(childPath) - ); -}; diff --git a/node_modules/is-path-inside/license b/node_modules/is-path-inside/license deleted file mode 100644 index e7af2f77..00000000 --- a/node_modules/is-path-inside/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -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. diff --git a/node_modules/is-path-inside/package.json b/node_modules/is-path-inside/package.json deleted file mode 100644 index 88c154ae..00000000 --- a/node_modules/is-path-inside/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "is-path-inside", - "version": "3.0.3", - "description": "Check if a path is inside another path", - "license": "MIT", - "repository": "sindresorhus/is-path-inside", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "inside", - "folder", - "directory", - "dir", - "file", - "resolve" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/node_modules/is-path-inside/readme.md b/node_modules/is-path-inside/readme.md deleted file mode 100644 index e8c4f928..00000000 --- a/node_modules/is-path-inside/readme.md +++ /dev/null @@ -1,63 +0,0 @@ -# is-path-inside - -> Check if a path is inside another path - - -## Install - -``` -$ npm install is-path-inside -``` - - -## Usage - -```js -const isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` - - -## API - -### isPathInside(childPath, parentPath) - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -**Important:** This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -#### childPath - -Type: `string` - -The path that should be inside `parentPath`. - -#### parentPath - -Type: `string` - -The path that should contain `childPath`. - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/prettier/LICENSE b/node_modules/prettier/LICENSE index 60a674ef..25181b0e 100644 --- a/node_modules/prettier/LICENSE +++ b/node_modules/prettier/LICENSE @@ -17,7 +17,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0 ## Bundled dependencies -### @angular/compiler@v18.1.0 +### @angular/compiler@v19.0.0 > Angular - the compiler library @@ -25,47 +25,36 @@ License: MIT Repository: Author: angular ----------------------------------------- - -### @babel/code-frame@v7.24.7 - -> Generate errors that contain a code frame that point to source locations. - -License: MIT -Homepage: -Repository: -Author: The Babel Team (https://babel.dev/team) - -> MIT License +> The MIT License > -> Copyright (c) 2014-present Sebastian McKenzie and other contributors +> Copyright (c) 2010-2024 Google LLC. https://angular.dev/license > -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: > -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. +> The above copyright notice and this permission notice shall be included in +> all copies or substantial portions of the Software. > -> 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. +> 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. ---------------------------------------- -### @babel/helper-validator-identifier@v7.24.7 +### @babel/code-frame@v7.26.2 -> Validate identifier/keywords name +> Generate errors that contain a code frame that point to source locations. License: MIT +Homepage: Repository: Author: The Babel Team (https://babel.dev/team) @@ -94,12 +83,11 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/highlight@v7.24.7 +### @babel/helper-validator-identifier@v7.25.9 -> Syntax highlight JavaScript strings for output in terminals. +> Validate identifier/keywords name License: MIT -Homepage: Repository: Author: The Babel Team (https://babel.dev/team) @@ -128,7 +116,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/parser@v7.24.8 +### @babel/parser@v7.26.2 > A JavaScript parser @@ -187,7 +175,7 @@ License: MIT ---------------------------------------- -### @glimmer/syntax@v0.92.0 +### @glimmer/syntax@v0.93.0 License: MIT @@ -213,7 +201,7 @@ License: MIT ---------------------------------------- -### @glimmer/util@v0.92.0 +### @glimmer/util@v0.93.0 > Common utilities used in Glimmer @@ -241,7 +229,7 @@ License: MIT ---------------------------------------- -### @glimmer/wire-format@v0.92.0 +### @glimmer/wire-format@v0.93.0 License: MIT @@ -277,31 +265,6 @@ Repository: ---------------------------------------- -### @iarna/toml@v2.2.5 - -> Better TOML parsing and stringifying all in that familiar JSON interface. - -License: ISC -Homepage: -Repository: -Author: Rebecca Turner (http://re-becca.org/) - -> Copyright (c) 2016, Rebecca Turner -> -> Permission to use, copy, modify, and/or distribute this software for any -> purpose with or without fee is hereby granted, provided that the above -> copyright notice and this permission notice appear in all copies. -> -> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ----------------------------------------- - ### @nodelib/fs.scandir@v2.1.5 > List files and directories inside the specified directory @@ -456,7 +419,7 @@ Author: Alex Bell ---------------------------------------- -### @typescript-eslint/types@v8.0.0-alpha.41 +### @typescript-eslint/types@v8.16.0 > Types for the TypeScript-ESTree AST spec @@ -488,7 +451,7 @@ Repository: ---------------------------------------- -### @typescript-eslint/typescript-estree@v8.0.0-alpha.41 +### @typescript-eslint/typescript-estree@v8.16.0 > A parser that converts TypeScript source code into an ESTree compatible form @@ -496,6 +459,8 @@ License: BSD-2-Clause Homepage: Repository: +> BSD 2-Clause License +> > TypeScript ESTree > > Originally extracted from: @@ -525,7 +490,7 @@ Repository: ---------------------------------------- -### acorn@v8.12.1 +### acorn@v8.14.0 > ECMAScript parser @@ -587,7 +552,7 @@ Repository: ---------------------------------------- -### angular-estree-parser@v10.0.3 +### angular-estree-parser@v10.2.0 > A parser that converts Angular source code into an ESTree-compatible form @@ -619,7 +584,7 @@ Author: Ika (https://github.com/ikatyang) ---------------------------------------- -### angular-html-parser@v6.0.2 +### angular-html-parser@v8.0.1 > A HTML parser extracted from Angular with some modifications @@ -651,7 +616,7 @@ Author: Ika (https://github.com/ikatyang) ---------------------------------------- -### ansi-regex@v6.0.1 +### ansi-regex@v6.1.0 > Regular expression for matching ANSI escape codes @@ -915,13 +880,15 @@ Contributors: ---------------------------------------- -### ci-info@v4.0.0 +### ci-info@v4.1.0 > Get details about the current Continuous Integration environment License: MIT Homepage: Author: Thomas Watson Steen (https://twitter.com/wa7son) +Contributors: + - Sibiraj (https://github.com/sibiraj-s) > The MIT License (MIT) > @@ -1043,7 +1010,7 @@ Contributors: ---------------------------------------- -### diff@v5.2.0 +### diff@v7.0.0 > A JavaScript text diff implementation. @@ -1116,7 +1083,7 @@ Contributors: ---------------------------------------- -### emoji-regex@v10.3.0 +### emoji-regex@v10.4.0 > A regular expression to match all Emoji-only symbols as per the Unicode Standard. @@ -1167,12 +1134,12 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### espree@v10.1.0 +### espree@v10.3.0 > An Esprima-compatible JavaScript parser built on Acorn License: BSD-2-Clause -Homepage: +Homepage: Author: Nicholas C. Zakas > BSD 2-Clause License @@ -1327,7 +1294,7 @@ Author: Matteo Collina ---------------------------------------- -### file-entry-cache@v9.0.0 +### file-entry-cache@v9.1.0 > Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process @@ -1466,7 +1433,7 @@ Author: Jared Wray (https://jaredwray.com) ---------------------------------------- -### flatted@v3.3.1 +### flatted@v3.3.2 > A super light and fast circular JSON parser. @@ -1528,7 +1495,7 @@ Contributors: ---------------------------------------- -### flow-parser@v0.237.2 +### flow-parser@v0.255.0 > JavaScript parser written in OCaml. Produces ESTree AST @@ -1539,7 +1506,7 @@ Author: Flow Team ---------------------------------------- -### get-east-asian-width@v1.2.0 +### get-east-asian-width@v1.3.0 > Determine the East Asian Width of a Unicode character @@ -1637,7 +1604,7 @@ Repository: ---------------------------------------- -### ignore@v5.3.1 +### ignore@v6.0.2 > Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others. @@ -2223,7 +2190,7 @@ Author: fisker Cheung (https://www.fiskercheung.com/) ---------------------------------------- -### jest-docblock@v30.0.0-alpha.5 +### jest-docblock@v30.0.0-alpha.6 License: MIT Repository: @@ -2565,13 +2532,13 @@ Repository: ---------------------------------------- -### meriyah@v4.5.0 +### meriyah@v6.0.3 > A 100% compliant, self-hosted javascript parser with high focus on both performance and stability License: ISC Homepage: -Repository: +Repository: Author: Kenny F. (https://github.com/KFlash) Contributors: - Chunpeng Huo (https://github.com/3cp) @@ -2586,7 +2553,7 @@ Contributors: ---------------------------------------- -### micromatch@v4.0.7 +### micromatch@v4.0.8 > Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch. @@ -2835,7 +2802,7 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### picocolors@v1.0.1 +### picocolors@v1.1.1 > The tiniest and the fastest library for terminal output formatting with ANSI colors @@ -2844,7 +2811,7 @@ Author: Alexey Raspopov > ISC License > -> Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov +> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov > > Permission to use, copy, modify, and/or distribute this software for any > purpose with or without fee is hereby granted, provided that the above @@ -2944,7 +2911,7 @@ Author: typicode ---------------------------------------- -### postcss@v8.4.39 +### postcss@v8.4.49 > Tool for transforming styles with JS plugins @@ -3357,7 +3324,7 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### semver@v7.6.2 +### semver@v7.6.3 > The semantic version parser used by npm. @@ -3468,6 +3435,40 @@ Repository: ---------------------------------------- +### smol-toml@v1.3.1 + +> A small, fast, and correct TOML parser/serializer + +License: BSD-3-Clause +Author: Cynthia + +> Copyright (c) Squirrel Chat et al., All rights reserved. +> +> Redistribution and use in source and binary forms, with or without +> modification, are permitted provided that the following conditions are met: +> +> 1. Redistributions of source code must retain the above copyright notice, this +> list of conditions and the following disclaimer. +> 2. Redistributions in binary form must reproduce the above copyright notice, +> this list of conditions and the following disclaimer in the +> documentation and/or other materials provided with the distribution. +> 3. Neither the name of the copyright holder nor the names of its contributors +> may be used to endorse or promote products derived from this software without +> specific prior written permission. +> +> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +> FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +> DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +> OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------- + ### state-toggle@v1.0.3 > Enter/exit a state @@ -3655,7 +3656,7 @@ Contributors: ---------------------------------------- -### ts-api-utils@v1.3.0 +### ts-api-utils@v1.4.2 > Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️ @@ -3686,13 +3687,13 @@ Author: JoshuaKGoldberg ---------------------------------------- -### typescript@v5.5.3 +### typescript@v5.7.2 > TypeScript is a language for application scale JavaScript development License: Apache-2.0 Homepage: -Repository: +Repository: Author: Microsoft Corp. > Apache License @@ -4031,7 +4032,7 @@ Contributors: ---------------------------------------- -### url-or-path@v2.3.0 +### url-or-path@v2.3.2 > Convert between file URL and path. @@ -4202,7 +4203,7 @@ Author: Ika (https://github.com/ikatyang) ---------------------------------------- -### wcwidth.js@v1.1.2 +### wcwidth.js@v2.0.0 > a javascript porting of C's wcwidth() diff --git a/node_modules/prettier/bin/prettier.cjs b/node_modules/prettier/bin/prettier.cjs index 3bd1dbe3..08f8e3b9 100755 --- a/node_modules/prettier/bin/prettier.cjs +++ b/node_modules/prettier/bin/prettier.cjs @@ -53,6 +53,10 @@ var require_please_upgrade_node = __commonJS({ }); // bin/prettier.cjs +var nodeModule = require("module"); +if (typeof nodeModule.enableCompileCache === "function") { + nodeModule.enableCompileCache(); +} var pleaseUpgradeNode = require_please_upgrade_node(); var packageJson = require("../package.json"); pleaseUpgradeNode(packageJson); diff --git a/node_modules/prettier/doc.d.ts b/node_modules/prettier/doc.d.ts index c9265116..50117757 100644 --- a/node_modules/prettier/doc.d.ts +++ b/node_modules/prettier/doc.d.ts @@ -192,7 +192,18 @@ export namespace printer { options: Options, ): { formatted: string; + /** + * This property is a misnomer, and has been since the changes in + * https://github.com/prettier/prettier/pull/15709. + * The region of the document indicated by `cursorNodeStart` and `cursorNodeText` will + * sometimes actually be what lies BETWEEN a pair of leaf nodes in the AST, rather than a node. + */ cursorNodeStart?: number | undefined; + + /** + * Note that, like cursorNodeStart, this is a misnomer and may actually be the text between two + * leaf nodes in the AST instead of the text of a node. + */ cursorNodeText?: string | undefined; }; interface Options { diff --git a/node_modules/prettier/doc.js b/node_modules/prettier/doc.js index 6db0da66..7ebeb2d2 100644 --- a/node_modules/prettier/doc.js +++ b/node_modules/prettier/doc.js @@ -363,7 +363,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; // node_modules/emoji-regex/index.mjs var emoji_regex_default = () => { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F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FE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; + return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uD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uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; }; // node_modules/get-east-asian-width/lookup.js @@ -371,7 +371,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510; } function isWide(x) { - return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; + return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; } // node_modules/get-east-asian-width/index.js @@ -422,10 +422,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; case DOC_TYPE_ARRAY: return cb(doc2.map(rec)); case DOC_TYPE_FILL: - return cb({ - ...doc2, - parts: doc2.parts.map(rec) - }); + return cb({ ...doc2, parts: doc2.parts.map(rec) }); case DOC_TYPE_IF_BREAK: return cb({ ...doc2, @@ -433,31 +430,21 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; flatContents: rec(doc2.flatContents) }); case DOC_TYPE_GROUP: { - let { - expandedStates, - contents - } = doc2; + let { expandedStates, contents } = doc2; if (expandedStates) { expandedStates = expandedStates.map(rec); contents = expandedStates[0]; } else { contents = rec(contents); } - return cb({ - ...doc2, - contents, - expandedStates - }); + return cb({ ...doc2, contents, expandedStates }); } case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: case DOC_TYPE_LINE_SUFFIX: - return cb({ - ...doc2, - contents: rec(doc2.contents) - }); + return cb({ ...doc2, contents: rec(doc2.contents) }); case DOC_TYPE_STRING: case DOC_TYPE_CURSOR: case DOC_TYPE_TRIM: @@ -591,10 +578,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; case DOC_TYPE_LINE_SUFFIX: case DOC_TYPE_LABEL: { const contents = stripTrailingHardlineFromDoc(doc.contents); - return { - ...doc, - contents - }; + return { ...doc, contents }; } case DOC_TYPE_IF_BREAK: return { @@ -603,10 +587,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; flatContents: stripTrailingHardlineFromDoc(doc.flatContents) }; case DOC_TYPE_FILL: - return { - ...doc, - parts: stripTrailingHardlineFromParts(doc.parts) - }; + return { ...doc, parts: stripTrailingHardlineFromParts(doc.parts) }; case DOC_TYPE_ARRAY: return stripTrailingHardlineFromParts(doc); case DOC_TYPE_STRING: @@ -698,7 +679,10 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc)); } function replaceEndOfLine(doc, replacement = literalline) { - return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join(replacement, currentDoc.split("\n")) : currentDoc); + return mapDoc( + doc, + (currentDoc) => typeof currentDoc === "string" ? join(replacement, currentDoc.split("\n")) : currentDoc + ); } function canBreakFn(doc) { if (doc.type === DOC_TYPE_LINE) { @@ -713,41 +697,28 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; var MODE_BREAK = Symbol("MODE_BREAK"); var MODE_FLAT = Symbol("MODE_FLAT"); var CURSOR_PLACEHOLDER = Symbol("cursor"); + var DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH"); function rootIndent() { - return { - value: "", - length: 0, - queue: [] - }; + return { value: "", length: 0, queue: [] }; } function makeIndent(ind, options) { - return generateInd(ind, { - type: "indent" - }, options); + return generateInd(ind, { type: "indent" }, options); } function makeAlign(indent2, widthOrDoc, options) { if (widthOrDoc === Number.NEGATIVE_INFINITY) { return indent2.root || rootIndent(); } if (widthOrDoc < 0) { - return generateInd(indent2, { - type: "dedent" - }, options); + return generateInd(indent2, { type: "dedent" }, options); } if (!widthOrDoc) { return indent2; } if (widthOrDoc.type === "root") { - return { - ...indent2, - root: indent2 - }; + return { ...indent2, root: indent2 }; } const alignType = typeof widthOrDoc === "string" ? "stringAlign" : "numberAlign"; - return generateInd(indent2, { - type: alignType, - n: widthOrDoc - }, options); + return generateInd(indent2, { type: alignType, n: widthOrDoc }, options); } function generateInd(ind, newPart, options) { const queue = newPart.type === "dedent" ? ind.queue.slice(0, -1) : [...ind.queue, newPart]; @@ -779,12 +750,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } } flushSpaces(); - return { - ...ind, - value, - length, - queue - }; + return { ...ind, value, length, queue }; function addTabs(count) { value += " ".repeat(count); length += options.tabWidth * count; @@ -863,10 +829,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; cmds.push(restCommands[--restIdx]); continue; } - const { - mode, - doc - } = cmds.pop(); + const { mode, doc } = cmds.pop(); const docType = get_doc_type_default(doc); switch (docType) { case DOC_TYPE_STRING: @@ -877,10 +840,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; case DOC_TYPE_FILL: { const parts = docType === DOC_TYPE_ARRAY ? doc : doc.parts; for (let i = parts.length - 1; i >= 0; i--) { - cmds.push({ - mode, - doc: parts[i] - }); + cmds.push({ mode, doc: parts[i] }); } break; } @@ -888,10 +848,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: - cmds.push({ - mode, - doc: doc.contents - }); + cmds.push({ mode, doc: doc.contents }); break; case DOC_TYPE_TRIM: width += trim2(out); @@ -907,20 +864,14 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; doc.expandedStates, -1 ) : doc.contents; - cmds.push({ - mode: groupMode, - doc: contents - }); + cmds.push({ mode: groupMode, doc: contents }); break; } case DOC_TYPE_IF_BREAK: { const groupMode = doc.groupId ? groupModeMap[doc.groupId] || MODE_FLAT : mode; const contents = groupMode === MODE_BREAK ? doc.breakContents : doc.flatContents; if (contents) { - cmds.push({ - mode, - doc: contents - }); + cmds.push({ mode, doc: contents }); } break; } @@ -950,22 +901,14 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; const width = options.printWidth; const newLine = convertEndOfLineToChars(options.endOfLine); let pos = 0; - const cmds = [{ - ind: rootIndent(), - mode: MODE_BREAK, - doc - }]; + const cmds = [{ ind: rootIndent(), mode: MODE_BREAK, doc }]; const out = []; let shouldRemeasure = false; const lineSuffix2 = []; let printedCursorCount = 0; propagateBreaks(doc); while (cmds.length > 0) { - const { - ind, - mode, - doc: doc2 - } = cmds.pop(); + const { ind, mode, doc: doc2 } = cmds.pop(); switch (get_doc_type_default(doc2)) { case DOC_TYPE_STRING: { const formatted = newLine !== "\n" ? string_replace_all_default( @@ -983,11 +926,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } case DOC_TYPE_ARRAY: for (let i = doc2.length - 1; i >= 0; i--) { - cmds.push({ - ind, - mode, - doc: doc2[i] - }); + cmds.push({ ind, mode, doc: doc2[i] }); } break; case DOC_TYPE_CURSOR: @@ -998,11 +937,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; printedCursorCount++; break; case DOC_TYPE_INDENT: - cmds.push({ - ind: makeIndent(ind, options), - mode, - doc: doc2.contents - }); + cmds.push({ ind: makeIndent(ind, options), mode, doc: doc2.contents }); break; case DOC_TYPE_ALIGN: cmds.push({ @@ -1025,13 +960,10 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; }); break; } + // fallthrough case MODE_BREAK: { shouldRemeasure = false; - const next = { - ind, - mode: MODE_FLAT, - doc: doc2.contents - }; + const next = { ind, mode: MODE_FLAT, doc: doc2.contents }; const rem = width - pos; const hasLineSuffix = lineSuffix2.length > 0; if (!doc2.break && fits(next, cmds, rem, hasLineSuffix, groupModeMap)) { @@ -1045,28 +977,16 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; -1 ); if (doc2.break) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { for (let i = 1; i < doc2.expandedStates.length + 1; i++) { if (i >= doc2.expandedStates.length) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { const state = doc2.expandedStates[i]; - const cmd = { - ind, - mode: MODE_FLAT, - doc: state - }; + const cmd = { ind, mode: MODE_FLAT, doc: state }; if (fits(cmd, cmds, rem, hasLineSuffix, groupModeMap)) { cmds.push(cmd); break; @@ -1075,11 +995,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } } } else { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: doc2.contents - }); + cmds.push({ ind, mode: MODE_BREAK, doc: doc2.contents }); } } break; @@ -1094,27 +1010,47 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; ).mode; } break; + // Fills each line with as much code as possible before moving to a new + // line with the same indentation. + // + // Expects doc.parts to be an array of alternating content and + // whitespace. The whitespace contains the linebreaks. + // + // For example: + // ["I", line, "love", line, "monkeys"] + // or + // [{ type: group, ... }, softline, { type: group, ... }] + // + // It uses this parts structure to handle three main layout cases: + // * The first two content items fit on the same line without + // breaking + // -> output the first content item and the whitespace "flat". + // * Only the first content item fits on the line without breaking + // -> output the first content item "flat" and the whitespace with + // "break". + // * Neither content item fits on the line without breaking + // -> output the first content item and the whitespace with "break". case DOC_TYPE_FILL: { const rem = width - pos; - const { - parts - } = doc2; - if (parts.length === 0) { + const offset = doc2[DOC_FILL_PRINTED_LENGTH] ?? 0; + const { parts } = doc2; + const length = parts.length - offset; + if (length === 0) { break; } - const [content, whitespace] = parts; - const contentFlatCmd = { - ind, - mode: MODE_FLAT, - doc: content - }; - const contentBreakCmd = { - ind, - mode: MODE_BREAK, - doc: content - }; - const contentFits = fits(contentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); - if (parts.length === 1) { + const content = parts[offset + 0]; + const whitespace = parts[offset + 1]; + const contentFlatCmd = { ind, mode: MODE_FLAT, doc: content }; + const contentBreakCmd = { ind, mode: MODE_BREAK, doc: content }; + const contentFits = fits( + contentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); + if (length === 1) { if (contentFits) { cmds.push(contentFlatCmd); } else { @@ -1122,17 +1058,9 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } break; } - const whitespaceFlatCmd = { - ind, - mode: MODE_FLAT, - doc: whitespace - }; - const whitespaceBreakCmd = { - ind, - mode: MODE_BREAK, - doc: whitespace - }; - if (parts.length === 2) { + const whitespaceFlatCmd = { ind, mode: MODE_FLAT, doc: whitespace }; + const whitespaceBreakCmd = { ind, mode: MODE_BREAK, doc: whitespace }; + if (length === 2) { if (contentFits) { cmds.push(whitespaceFlatCmd, contentFlatCmd); } else { @@ -1140,19 +1068,25 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } break; } - parts.splice(0, 2); + const secondContent = parts[offset + 2]; const remainingCmd = { ind, mode, - doc: fill(parts) + doc: { ...doc2, [DOC_FILL_PRINTED_LENGTH]: offset + 2 } }; - const secondContent = parts[0]; const firstAndSecondContentFlatCmd = { ind, mode: MODE_FLAT, doc: [content, whitespace, secondContent] }; - const firstAndSecondContentFits = fits(firstAndSecondContentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); + const firstAndSecondContentFits = fits( + firstAndSecondContentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); if (firstAndSecondContentFits) { cmds.push(remainingCmd, whitespaceFlatCmd, contentFlatCmd); } else if (contentFits) { @@ -1168,39 +1102,23 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; if (groupMode === MODE_BREAK) { const breakContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.breakContents : doc2.negate ? doc2.contents : indent(doc2.contents); if (breakContents) { - cmds.push({ - ind, - mode, - doc: breakContents - }); + cmds.push({ ind, mode, doc: breakContents }); } } if (groupMode === MODE_FLAT) { const flatContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.flatContents : doc2.negate ? indent(doc2.contents) : doc2.contents; if (flatContents) { - cmds.push({ - ind, - mode, - doc: flatContents - }); + cmds.push({ ind, mode, doc: flatContents }); } } break; } case DOC_TYPE_LINE_SUFFIX: - lineSuffix2.push({ - ind, - mode, - doc: doc2.contents - }); + lineSuffix2.push({ ind, mode, doc: doc2.contents }); break; case DOC_TYPE_LINE_SUFFIX_BOUNDARY: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: hardlineWithoutBreakParent - }); + cmds.push({ ind, mode, doc: hardlineWithoutBreakParent }); } break; case DOC_TYPE_LINE: @@ -1215,13 +1133,10 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } else { shouldRemeasure = true; } + // fallthrough case MODE_BREAK: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: doc2 - }, ...lineSuffix2.reverse()); + cmds.push({ ind, mode, doc: doc2 }, ...lineSuffix2.reverse()); lineSuffix2.length = 0; break; } @@ -1242,11 +1157,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } break; case DOC_TYPE_LABEL: - cmds.push({ - ind, - mode, - doc: doc2.contents - }); + cmds.push({ ind, mode, doc: doc2.contents }); break; case DOC_TYPE_BREAK_PARENT: break; @@ -1260,7 +1171,15 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; } const cursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER); if (cursorPlaceholderIndex !== -1) { - const otherCursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER, cursorPlaceholderIndex + 1); + const otherCursorPlaceholderIndex = out.indexOf( + CURSOR_PLACEHOLDER, + cursorPlaceholderIndex + 1 + ); + if (otherCursorPlaceholderIndex === -1) { + return { + formatted: out.filter((char) => char !== CURSOR_PLACEHOLDER).join("") + }; + } const beforeCursor = out.slice(0, cursorPlaceholderIndex).join(""); const aroundCursor = out.slice(cursorPlaceholderIndex + 1, otherCursorPlaceholderIndex).join(""); const afterCursor = out.slice(otherCursorPlaceholderIndex + 1).join(""); @@ -1270,9 +1189,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`; cursorNodeText: aroundCursor }; } - return { - formatted: out.join("") - }; + return { formatted: out.join("") }; } // src/document/public.js diff --git a/node_modules/prettier/doc.mjs b/node_modules/prettier/doc.mjs index 83b10590..f977728b 100644 --- a/node_modules/prettier/doc.mjs +++ b/node_modules/prettier/doc.mjs @@ -328,7 +328,7 @@ function convertEndOfLineToChars(value) { // node_modules/emoji-regex/index.mjs var emoji_regex_default = () => { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB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FFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; + return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\u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83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; }; // node_modules/get-east-asian-width/lookup.js @@ -336,7 +336,7 @@ function isFullWidth(x) { return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510; } function isWide(x) { - return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; + return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; } // node_modules/get-east-asian-width/index.js @@ -387,10 +387,7 @@ function mapDoc(doc, cb) { case DOC_TYPE_ARRAY: return cb(doc2.map(rec)); case DOC_TYPE_FILL: - return cb({ - ...doc2, - parts: doc2.parts.map(rec) - }); + return cb({ ...doc2, parts: doc2.parts.map(rec) }); case DOC_TYPE_IF_BREAK: return cb({ ...doc2, @@ -398,31 +395,21 @@ function mapDoc(doc, cb) { flatContents: rec(doc2.flatContents) }); case DOC_TYPE_GROUP: { - let { - expandedStates, - contents - } = doc2; + let { expandedStates, contents } = doc2; if (expandedStates) { expandedStates = expandedStates.map(rec); contents = expandedStates[0]; } else { contents = rec(contents); } - return cb({ - ...doc2, - contents, - expandedStates - }); + return cb({ ...doc2, contents, expandedStates }); } case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: case DOC_TYPE_LINE_SUFFIX: - return cb({ - ...doc2, - contents: rec(doc2.contents) - }); + return cb({ ...doc2, contents: rec(doc2.contents) }); case DOC_TYPE_STRING: case DOC_TYPE_CURSOR: case DOC_TYPE_TRIM: @@ -556,10 +543,7 @@ function stripTrailingHardlineFromDoc(doc) { case DOC_TYPE_LINE_SUFFIX: case DOC_TYPE_LABEL: { const contents = stripTrailingHardlineFromDoc(doc.contents); - return { - ...doc, - contents - }; + return { ...doc, contents }; } case DOC_TYPE_IF_BREAK: return { @@ -568,10 +552,7 @@ function stripTrailingHardlineFromDoc(doc) { flatContents: stripTrailingHardlineFromDoc(doc.flatContents) }; case DOC_TYPE_FILL: - return { - ...doc, - parts: stripTrailingHardlineFromParts(doc.parts) - }; + return { ...doc, parts: stripTrailingHardlineFromParts(doc.parts) }; case DOC_TYPE_ARRAY: return stripTrailingHardlineFromParts(doc); case DOC_TYPE_STRING: @@ -663,7 +644,10 @@ function cleanDoc(doc) { return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc)); } function replaceEndOfLine(doc, replacement = literalline) { - return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join(replacement, currentDoc.split("\n")) : currentDoc); + return mapDoc( + doc, + (currentDoc) => typeof currentDoc === "string" ? join(replacement, currentDoc.split("\n")) : currentDoc + ); } function canBreakFn(doc) { if (doc.type === DOC_TYPE_LINE) { @@ -678,41 +662,28 @@ function canBreak(doc) { var MODE_BREAK = Symbol("MODE_BREAK"); var MODE_FLAT = Symbol("MODE_FLAT"); var CURSOR_PLACEHOLDER = Symbol("cursor"); +var DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH"); function rootIndent() { - return { - value: "", - length: 0, - queue: [] - }; + return { value: "", length: 0, queue: [] }; } function makeIndent(ind, options) { - return generateInd(ind, { - type: "indent" - }, options); + return generateInd(ind, { type: "indent" }, options); } function makeAlign(indent2, widthOrDoc, options) { if (widthOrDoc === Number.NEGATIVE_INFINITY) { return indent2.root || rootIndent(); } if (widthOrDoc < 0) { - return generateInd(indent2, { - type: "dedent" - }, options); + return generateInd(indent2, { type: "dedent" }, options); } if (!widthOrDoc) { return indent2; } if (widthOrDoc.type === "root") { - return { - ...indent2, - root: indent2 - }; + return { ...indent2, root: indent2 }; } const alignType = typeof widthOrDoc === "string" ? "stringAlign" : "numberAlign"; - return generateInd(indent2, { - type: alignType, - n: widthOrDoc - }, options); + return generateInd(indent2, { type: alignType, n: widthOrDoc }, options); } function generateInd(ind, newPart, options) { const queue = newPart.type === "dedent" ? ind.queue.slice(0, -1) : [...ind.queue, newPart]; @@ -744,12 +715,7 @@ function generateInd(ind, newPart, options) { } } flushSpaces(); - return { - ...ind, - value, - length, - queue - }; + return { ...ind, value, length, queue }; function addTabs(count) { value += " ".repeat(count); length += options.tabWidth * count; @@ -828,10 +794,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat cmds.push(restCommands[--restIdx]); continue; } - const { - mode, - doc - } = cmds.pop(); + const { mode, doc } = cmds.pop(); const docType = get_doc_type_default(doc); switch (docType) { case DOC_TYPE_STRING: @@ -842,10 +805,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat case DOC_TYPE_FILL: { const parts = docType === DOC_TYPE_ARRAY ? doc : doc.parts; for (let i = parts.length - 1; i >= 0; i--) { - cmds.push({ - mode, - doc: parts[i] - }); + cmds.push({ mode, doc: parts[i] }); } break; } @@ -853,10 +813,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: - cmds.push({ - mode, - doc: doc.contents - }); + cmds.push({ mode, doc: doc.contents }); break; case DOC_TYPE_TRIM: width += trim2(out); @@ -872,20 +829,14 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat doc.expandedStates, -1 ) : doc.contents; - cmds.push({ - mode: groupMode, - doc: contents - }); + cmds.push({ mode: groupMode, doc: contents }); break; } case DOC_TYPE_IF_BREAK: { const groupMode = doc.groupId ? groupModeMap[doc.groupId] || MODE_FLAT : mode; const contents = groupMode === MODE_BREAK ? doc.breakContents : doc.flatContents; if (contents) { - cmds.push({ - mode, - doc: contents - }); + cmds.push({ mode, doc: contents }); } break; } @@ -915,22 +866,14 @@ function printDocToString(doc, options) { const width = options.printWidth; const newLine = convertEndOfLineToChars(options.endOfLine); let pos = 0; - const cmds = [{ - ind: rootIndent(), - mode: MODE_BREAK, - doc - }]; + const cmds = [{ ind: rootIndent(), mode: MODE_BREAK, doc }]; const out = []; let shouldRemeasure = false; const lineSuffix2 = []; let printedCursorCount = 0; propagateBreaks(doc); while (cmds.length > 0) { - const { - ind, - mode, - doc: doc2 - } = cmds.pop(); + const { ind, mode, doc: doc2 } = cmds.pop(); switch (get_doc_type_default(doc2)) { case DOC_TYPE_STRING: { const formatted = newLine !== "\n" ? string_replace_all_default( @@ -948,11 +891,7 @@ function printDocToString(doc, options) { } case DOC_TYPE_ARRAY: for (let i = doc2.length - 1; i >= 0; i--) { - cmds.push({ - ind, - mode, - doc: doc2[i] - }); + cmds.push({ ind, mode, doc: doc2[i] }); } break; case DOC_TYPE_CURSOR: @@ -963,11 +902,7 @@ function printDocToString(doc, options) { printedCursorCount++; break; case DOC_TYPE_INDENT: - cmds.push({ - ind: makeIndent(ind, options), - mode, - doc: doc2.contents - }); + cmds.push({ ind: makeIndent(ind, options), mode, doc: doc2.contents }); break; case DOC_TYPE_ALIGN: cmds.push({ @@ -990,13 +925,10 @@ function printDocToString(doc, options) { }); break; } + // fallthrough case MODE_BREAK: { shouldRemeasure = false; - const next = { - ind, - mode: MODE_FLAT, - doc: doc2.contents - }; + const next = { ind, mode: MODE_FLAT, doc: doc2.contents }; const rem = width - pos; const hasLineSuffix = lineSuffix2.length > 0; if (!doc2.break && fits(next, cmds, rem, hasLineSuffix, groupModeMap)) { @@ -1010,28 +942,16 @@ function printDocToString(doc, options) { -1 ); if (doc2.break) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { for (let i = 1; i < doc2.expandedStates.length + 1; i++) { if (i >= doc2.expandedStates.length) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { const state = doc2.expandedStates[i]; - const cmd = { - ind, - mode: MODE_FLAT, - doc: state - }; + const cmd = { ind, mode: MODE_FLAT, doc: state }; if (fits(cmd, cmds, rem, hasLineSuffix, groupModeMap)) { cmds.push(cmd); break; @@ -1040,11 +960,7 @@ function printDocToString(doc, options) { } } } else { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: doc2.contents - }); + cmds.push({ ind, mode: MODE_BREAK, doc: doc2.contents }); } } break; @@ -1059,27 +975,47 @@ function printDocToString(doc, options) { ).mode; } break; + // Fills each line with as much code as possible before moving to a new + // line with the same indentation. + // + // Expects doc.parts to be an array of alternating content and + // whitespace. The whitespace contains the linebreaks. + // + // For example: + // ["I", line, "love", line, "monkeys"] + // or + // [{ type: group, ... }, softline, { type: group, ... }] + // + // It uses this parts structure to handle three main layout cases: + // * The first two content items fit on the same line without + // breaking + // -> output the first content item and the whitespace "flat". + // * Only the first content item fits on the line without breaking + // -> output the first content item "flat" and the whitespace with + // "break". + // * Neither content item fits on the line without breaking + // -> output the first content item and the whitespace with "break". case DOC_TYPE_FILL: { const rem = width - pos; - const { - parts - } = doc2; - if (parts.length === 0) { + const offset = doc2[DOC_FILL_PRINTED_LENGTH] ?? 0; + const { parts } = doc2; + const length = parts.length - offset; + if (length === 0) { break; } - const [content, whitespace] = parts; - const contentFlatCmd = { - ind, - mode: MODE_FLAT, - doc: content - }; - const contentBreakCmd = { - ind, - mode: MODE_BREAK, - doc: content - }; - const contentFits = fits(contentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); - if (parts.length === 1) { + const content = parts[offset + 0]; + const whitespace = parts[offset + 1]; + const contentFlatCmd = { ind, mode: MODE_FLAT, doc: content }; + const contentBreakCmd = { ind, mode: MODE_BREAK, doc: content }; + const contentFits = fits( + contentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); + if (length === 1) { if (contentFits) { cmds.push(contentFlatCmd); } else { @@ -1087,17 +1023,9 @@ function printDocToString(doc, options) { } break; } - const whitespaceFlatCmd = { - ind, - mode: MODE_FLAT, - doc: whitespace - }; - const whitespaceBreakCmd = { - ind, - mode: MODE_BREAK, - doc: whitespace - }; - if (parts.length === 2) { + const whitespaceFlatCmd = { ind, mode: MODE_FLAT, doc: whitespace }; + const whitespaceBreakCmd = { ind, mode: MODE_BREAK, doc: whitespace }; + if (length === 2) { if (contentFits) { cmds.push(whitespaceFlatCmd, contentFlatCmd); } else { @@ -1105,19 +1033,25 @@ function printDocToString(doc, options) { } break; } - parts.splice(0, 2); + const secondContent = parts[offset + 2]; const remainingCmd = { ind, mode, - doc: fill(parts) + doc: { ...doc2, [DOC_FILL_PRINTED_LENGTH]: offset + 2 } }; - const secondContent = parts[0]; const firstAndSecondContentFlatCmd = { ind, mode: MODE_FLAT, doc: [content, whitespace, secondContent] }; - const firstAndSecondContentFits = fits(firstAndSecondContentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); + const firstAndSecondContentFits = fits( + firstAndSecondContentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); if (firstAndSecondContentFits) { cmds.push(remainingCmd, whitespaceFlatCmd, contentFlatCmd); } else if (contentFits) { @@ -1133,39 +1067,23 @@ function printDocToString(doc, options) { if (groupMode === MODE_BREAK) { const breakContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.breakContents : doc2.negate ? doc2.contents : indent(doc2.contents); if (breakContents) { - cmds.push({ - ind, - mode, - doc: breakContents - }); + cmds.push({ ind, mode, doc: breakContents }); } } if (groupMode === MODE_FLAT) { const flatContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.flatContents : doc2.negate ? indent(doc2.contents) : doc2.contents; if (flatContents) { - cmds.push({ - ind, - mode, - doc: flatContents - }); + cmds.push({ ind, mode, doc: flatContents }); } } break; } case DOC_TYPE_LINE_SUFFIX: - lineSuffix2.push({ - ind, - mode, - doc: doc2.contents - }); + lineSuffix2.push({ ind, mode, doc: doc2.contents }); break; case DOC_TYPE_LINE_SUFFIX_BOUNDARY: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: hardlineWithoutBreakParent - }); + cmds.push({ ind, mode, doc: hardlineWithoutBreakParent }); } break; case DOC_TYPE_LINE: @@ -1180,13 +1098,10 @@ function printDocToString(doc, options) { } else { shouldRemeasure = true; } + // fallthrough case MODE_BREAK: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: doc2 - }, ...lineSuffix2.reverse()); + cmds.push({ ind, mode, doc: doc2 }, ...lineSuffix2.reverse()); lineSuffix2.length = 0; break; } @@ -1207,11 +1122,7 @@ function printDocToString(doc, options) { } break; case DOC_TYPE_LABEL: - cmds.push({ - ind, - mode, - doc: doc2.contents - }); + cmds.push({ ind, mode, doc: doc2.contents }); break; case DOC_TYPE_BREAK_PARENT: break; @@ -1225,7 +1136,15 @@ function printDocToString(doc, options) { } const cursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER); if (cursorPlaceholderIndex !== -1) { - const otherCursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER, cursorPlaceholderIndex + 1); + const otherCursorPlaceholderIndex = out.indexOf( + CURSOR_PLACEHOLDER, + cursorPlaceholderIndex + 1 + ); + if (otherCursorPlaceholderIndex === -1) { + return { + formatted: out.filter((char) => char !== CURSOR_PLACEHOLDER).join("") + }; + } const beforeCursor = out.slice(0, cursorPlaceholderIndex).join(""); const aroundCursor = out.slice(cursorPlaceholderIndex + 1, otherCursorPlaceholderIndex).join(""); const afterCursor = out.slice(otherCursorPlaceholderIndex + 1).join(""); @@ -1235,9 +1154,7 @@ function printDocToString(doc, options) { cursorNodeText: aroundCursor }; } - return { - formatted: out.join("") - }; + return { formatted: out.join("") }; } // src/document/public.js diff --git a/node_modules/prettier/index.cjs b/node_modules/prettier/index.cjs index 33d40974..b0dd894f 100644 --- a/node_modules/prettier/index.cjs +++ b/node_modules/prettier/index.cjs @@ -351,12 +351,36 @@ var init_get_next_non_space_non_comment_character = __esm({ } }); +// src/utils/get-preferred-quote.js +function getPreferredQuote(text, preferredQuoteOrPreferSingleQuote) { + const preferred = preferredQuoteOrPreferSingleQuote === true || preferredQuoteOrPreferSingleQuote === SINGLE_QUOTE ? SINGLE_QUOTE : DOUBLE_QUOTE; + const alternate = preferred === SINGLE_QUOTE ? DOUBLE_QUOTE : SINGLE_QUOTE; + let preferredQuoteCount = 0; + let alternateQuoteCount = 0; + for (const character of text) { + if (character === preferred) { + preferredQuoteCount++; + } else if (character === alternate) { + alternateQuoteCount++; + } + } + return preferredQuoteCount > alternateQuoteCount ? alternate : preferred; +} +var SINGLE_QUOTE, DOUBLE_QUOTE, get_preferred_quote_default; +var init_get_preferred_quote = __esm({ + "src/utils/get-preferred-quote.js"() { + SINGLE_QUOTE = "'"; + DOUBLE_QUOTE = '"'; + get_preferred_quote_default = getPreferredQuote; + } +}); + // node_modules/emoji-regex/index.mjs var emoji_regex_default; var init_emoji_regex = __esm({ "node_modules/emoji-regex/index.mjs"() { emoji_regex_default = () => { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25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uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; + return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\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D74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; }; } }); @@ -366,7 +390,7 @@ function isFullWidth(x) { return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510; } function isWide(x) { - return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; + return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; } var init_lookup = __esm({ "node_modules/get-east-asian-width/lookup.js"() { @@ -510,6 +534,7 @@ __export(public_exports, { getMaxContinuousCount: () => get_max_continuous_count_default, getNextNonSpaceNonCommentCharacter: () => get_next_non_space_non_comment_character_default, getNextNonSpaceNonCommentCharacterIndex: () => getNextNonSpaceNonCommentCharacterIndex2, + getPreferredQuote: () => get_preferred_quote_default, getStringWidth: () => get_string_width_default, hasNewline: () => has_newline_default, hasNewlineInRange: () => has_newline_in_range_default, @@ -570,6 +595,7 @@ var init_public = __esm({ init_get_indent_size(); init_get_max_continuous_count(); init_get_next_non_space_non_comment_character(); + init_get_preferred_quote(); init_get_string_width(); init_has_newline(); init_has_newline_in_range(); @@ -585,7 +611,7 @@ var init_public = __esm({ // src/main/version.evaluate.cjs var require_version_evaluate = __commonJS({ "src/main/version.evaluate.cjs"(exports2, module2) { - module2.exports = "3.3.3"; + module2.exports = "3.4.1"; } }); diff --git a/node_modules/prettier/index.d.ts b/node_modules/prettier/index.d.ts index c6643368..badac401 100644 --- a/node_modules/prettier/index.d.ts +++ b/node_modules/prettier/index.d.ts @@ -938,4 +938,9 @@ export namespace util { function addDanglingComment(node: any, comment: any, marker: any): void; function addTrailingComment(node: any, comment: any): void; + + function getPreferredQuote( + text: string, + preferredQuoteOrPreferSingleQuote: Quote | boolean, + ): Quote; } diff --git a/node_modules/prettier/index.mjs b/node_modules/prettier/index.mjs index ccf0bd28..65c72784 100644 --- a/node_modules/prettier/index.mjs +++ b/node_modules/prettier/index.mjs @@ -21,9 +21,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require if (typeof require !== "undefined") return require.apply(this, arguments); throw Error('Dynamic require of "' + x + '" is not supported'); }); -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; -}; var __commonJS = (cb, mod) => function __require2() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; @@ -47,7 +44,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value); var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); @@ -438,7 +434,7 @@ var require_stringify = __commonJS({ "use strict"; var utils = require_utils(); module.exports = (ast, options8 = {}) => { - const stringify = (node, parent = {}) => { + const stringify2 = (node, parent = {}) => { const invalidBlock = options8.escapeInvalid && utils.isInvalidBrace(parent); const invalidNode = node.invalid === true && options8.escapeInvalid === true; let output = ""; @@ -453,12 +449,12 @@ var require_stringify = __commonJS({ } if (node.nodes) { for (const child of node.nodes) { - output += stringify(child); + output += stringify2(child); } } return output; }; - return stringify(ast); + return stringify2(ast); }; } }); @@ -712,7 +708,7 @@ var require_fill_range = __commonJS({ while (value[++index] === "0") ; return index > 0; }; - var stringify = (start, end, options8) => { + var stringify2 = (start, end, options8) => { if (typeof start === "string" || typeof end === "string") { return true; } @@ -807,7 +803,7 @@ var require_fill_range = __commonJS({ step = Math.max(Math.abs(step), 1); let padded = zeros(startString) || zeros(endString) || zeros(stepString); let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options8) === false; + let toNumber = padded === false && stringify2(start, end, options8) === false; let format3 = options8.transform || transform(toNumber); if (options8.toRegex && step === 1) { return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options8); @@ -855,7 +851,7 @@ var require_fill_range = __commonJS({ } return range; }; - var fill2 = (start, end, step, options8 = {}) => { + var fill = (start, end, step, options8 = {}) => { if (end == null && isValidValue(start)) { return [start]; } @@ -863,24 +859,24 @@ var require_fill_range = __commonJS({ return invalidRange(start, end, options8); } if (typeof step === "function") { - return fill2(start, end, 1, { transform: step }); + return fill(start, end, 1, { transform: step }); } if (isObject3(step)) { - return fill2(start, end, 0, step); + return fill(start, end, 0, step); } let opts = { ...options8 }; if (opts.capture === true) opts.wrap = true; step = step || opts.step || 1; if (!isNumber(step)) { if (step != null && !isObject3(step)) return invalidStep(step, opts); - return fill2(start, end, 1, step); + return fill(start, end, 1, step); } if (isNumber(start) && isNumber(end)) { return fillNumbers(start, end, step, opts); } return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); }; - module.exports = fill2; + module.exports = fill; } }); @@ -888,7 +884,7 @@ var require_fill_range = __commonJS({ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports, module) { "use strict"; - var fill2 = require_fill_range(); + var fill = require_fill_range(); var utils = require_utils(); var compile = (ast, options8 = {}) => { const walk = (node, parent = {}) => { @@ -918,7 +914,7 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { const args = utils.reduce(node.nodes); - const range = fill2(...args, { ...options8, wrap: false, toRegex: true, strictZeros: true }); + const range = fill(...args, { ...options8, wrap: false, toRegex: true, strictZeros: true }); if (range.length !== 0) { return args.length > 1 && range.length > 1 ? `(${range})` : range; } @@ -940,8 +936,8 @@ var require_compile = __commonJS({ var require_expand = __commonJS({ "node_modules/braces/lib/expand.js"(exports, module) { "use strict"; - var fill2 = require_fill_range(); - var stringify = require_stringify(); + var fill = require_fill_range(); + var stringify2 = require_stringify(); var utils = require_utils(); var append = (queue = "", stash = "", enclose = false) => { const result = []; @@ -976,7 +972,7 @@ var require_expand = __commonJS({ q = p.queue; } if (node.invalid || node.dollar) { - q.push(append(q.pop(), stringify(node, options8))); + q.push(append(q.pop(), stringify2(node, options8))); return; } if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { @@ -988,9 +984,9 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options8.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range = fill2(...args, options8); + let range = fill(...args, options8); if (range.length === 0) { - range = stringify(node, options8); + range = stringify2(node, options8); } q.push(append(q.pop(), range)); node.nodes = []; @@ -1135,7 +1131,7 @@ var require_constants = __commonJS({ var require_parse = __commonJS({ "node_modules/braces/lib/parse.js"(exports, module) { "use strict"; - var stringify = require_stringify(); + var stringify2 = require_stringify(); var { MAX_LENGTH, CHAR_BACKSLASH, @@ -1165,7 +1161,7 @@ var require_parse = __commonJS({ CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants(); - var parse6 = (input, options8 = {}) => { + var parse7 = (input, options8 = {}) => { if (typeof input !== "string") { throw new TypeError("Expected a string"); } @@ -1307,7 +1303,7 @@ var require_parse = __commonJS({ if (block.ranges > 0) { block.ranges = 0; const open = block.nodes.shift(); - block.nodes = [open, { type: "text", value: stringify(block) }]; + block.nodes = [open, { type: "text", value: stringify2(block) }]; } push2({ type: "comma", value }); block.commas++; @@ -1365,7 +1361,7 @@ var require_parse = __commonJS({ push2({ type: "eos" }); return ast; }; - module.exports = parse6; + module.exports = parse7; } }); @@ -1373,10 +1369,10 @@ var require_parse = __commonJS({ var require_braces = __commonJS({ "node_modules/braces/index.js"(exports, module) { "use strict"; - var stringify = require_stringify(); + var stringify2 = require_stringify(); var compile = require_compile(); var expand = require_expand(); - var parse6 = require_parse(); + var parse7 = require_parse(); var braces = (input, options8 = {}) => { let output = []; if (Array.isArray(input)) { @@ -1396,12 +1392,12 @@ var require_braces = __commonJS({ } return output; }; - braces.parse = (input, options8 = {}) => parse6(input, options8); + braces.parse = (input, options8 = {}) => parse7(input, options8); braces.stringify = (input, options8 = {}) => { if (typeof input === "string") { - return stringify(braces.parse(input, options8), options8); + return stringify2(braces.parse(input, options8), options8); } - return stringify(input, options8); + return stringify2(input, options8); }; braces.compile = (input, options8 = {}) => { if (typeof input === "string") { @@ -2049,7 +2045,7 @@ var require_parse2 = __commonJS({ var syntaxError2 = (type2, char) => { return `Missing ${type2}: "${char}" - use "\\\\${char}" to match literal characters`; }; - var parse6 = (input, options8) => { + var parse7 = (input, options8) => { if (typeof input !== "string") { throw new TypeError("Expected a string"); } @@ -2198,7 +2194,7 @@ var require_parse2 = __commonJS({ output = token2.close = `)$))${extglobStar}`; } if (token2.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - const expression = parse6(rest, { ...options8, fastpaths: false }).output; + const expression = parse7(rest, { ...options8, fastpaths: false }).output; output = token2.close = `)${expression})${extglobStar})`; } if (token2.prev.type === "bos") { @@ -2723,7 +2719,7 @@ var require_parse2 = __commonJS({ } return state; }; - parse6.fastpaths = (input, options8) => { + parse7.fastpaths = (input, options8) => { const opts = { ...options8 }; const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; const len = input.length; @@ -2789,7 +2785,7 @@ var require_parse2 = __commonJS({ } return source2; }; - module.exports = parse6; + module.exports = parse7; } }); @@ -2799,7 +2795,7 @@ var require_picomatch = __commonJS({ "use strict"; var path13 = __require("path"); var scan = require_scan(); - var parse6 = require_parse2(); + var parse7 = require_parse2(); var utils = require_utils2(); var constants = require_constants2(); var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val); @@ -2887,7 +2883,7 @@ var require_picomatch = __commonJS({ picomatch.isMatch = (str2, patterns, options8) => picomatch(patterns, options8)(str2); picomatch.parse = (pattern, options8) => { if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options8)); - return parse6(pattern, { ...options8, fastpaths: false }); + return parse7(pattern, { ...options8, fastpaths: false }); }; picomatch.scan = (input, options8) => scan(input, options8); picomatch.compileRe = (state, options8, returnOutput = false, returnState = false) => { @@ -2913,10 +2909,10 @@ var require_picomatch = __commonJS({ } let parsed = { negated: false, fastpaths: true }; if (options8.fastpaths !== false && (input[0] === "." || input[0] === "*")) { - parsed.output = parse6.fastpaths(input, options8); + parsed.output = parse7.fastpaths(input, options8); } if (!parsed.output) { - parsed = parse6(input, options8); + parsed = parse7(input, options8); } return picomatch.compileRe(parsed, options8, returnOutput, returnState); }; @@ -2950,7 +2946,11 @@ var require_micromatch = __commonJS({ var braces = require_braces(); var picomatch = require_picomatch2(); var utils = require_utils2(); - var isEmptyString = (val) => val === "" || val === "./"; + var isEmptyString = (v) => v === "" || v === "./"; + var hasBraces = (v) => { + const index = v.indexOf("{"); + return index > -1 && v.indexOf("}", index) > -1; + }; var micromatch2 = (list, patterns, options8) => { patterns = [].concat(patterns); list = [].concat(list); @@ -3085,7 +3085,7 @@ var require_micromatch = __commonJS({ }; micromatch2.braces = (pattern, options8) => { if (typeof pattern !== "string") throw new TypeError("Expected a string"); - if (options8 && options8.nobrace === true || !/\{.*\}/.test(pattern)) { + if (options8 && options8.nobrace === true || !hasBraces(pattern)) { return [pattern]; } return braces(pattern, options8); @@ -3094,6 +3094,7 @@ var require_micromatch = __commonJS({ if (typeof pattern !== "string") throw new TypeError("Expected a string"); return micromatch2.braces(pattern, { ...options8, expand: true }); }; + micromatch2.hasBraces = hasBraces; module.exports = micromatch2; } }); @@ -5498,773 +5499,241 @@ var require_out4 = __commonJS({ } }); -// node_modules/chalk/source/vendor/ansi-styles/index.js -function assembleStyles() { - const codes2 = /* @__PURE__ */ new Map(); - for (const [groupName, group] of Object.entries(styles)) { - for (const [styleName, style] of Object.entries(group)) { - styles[styleName] = { - open: `\x1B[${style[0]}m`, - close: `\x1B[${style[1]}m` - }; - group[styleName] = styles[styleName]; - codes2.set(style[0], style[1]); - } - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); +// node_modules/semver/internal/debug.js +var require_debug = __commonJS({ + "node_modules/semver/internal/debug.js"(exports, module) { + var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { + }; + module.exports = debug; } - Object.defineProperty(styles, "codes", { - value: codes2, - enumerable: false - }); - styles.color.close = "\x1B[39m"; - styles.bgColor.close = "\x1B[49m"; - styles.color.ansi = wrapAnsi16(); - styles.color.ansi256 = wrapAnsi256(); - styles.color.ansi16m = wrapAnsi16m(); - styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET); - styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET); - styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET); - Object.defineProperties(styles, { - rgbToAnsi256: { - value(red, green, blue) { - if (red === green && green === blue) { - if (red < 8) { - return 16; - } - if (red > 248) { - return 231; - } - return Math.round((red - 8) / 247 * 24) + 232; - } - return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5); - }, - enumerable: false - }, - hexToRgb: { - value(hex) { - const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16)); - if (!matches) { - return [0, 0, 0]; - } - let [colorString] = matches; - if (colorString.length === 3) { - colorString = [...colorString].map((character) => character + character).join(""); - } - const integer = Number.parseInt(colorString, 16); - return [ - /* eslint-disable no-bitwise */ - integer >> 16 & 255, - integer >> 8 & 255, - integer & 255 - /* eslint-enable no-bitwise */ - ]; - }, - enumerable: false - }, - hexToAnsi256: { - value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), - enumerable: false - }, - ansi256ToAnsi: { - value(code) { - if (code < 8) { - return 30 + code; - } - if (code < 16) { - return 90 + (code - 8); - } - let red; - let green; - let blue; - if (code >= 232) { - red = ((code - 232) * 10 + 8) / 255; - green = red; - blue = red; - } else { - code -= 16; - const remainder = code % 36; - red = Math.floor(code / 36) / 5; - green = Math.floor(remainder / 6) / 5; - blue = remainder % 6 / 5; - } - const value = Math.max(red, green, blue) * 2; - if (value === 0) { - return 30; - } - let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red)); - if (value === 2) { - result += 60; - } - return result; - }, - enumerable: false - }, - rgbToAnsi: { - value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), - enumerable: false - }, - hexToAnsi: { - value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), - enumerable: false - } - }); - return styles; -} -var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default; -var init_ansi_styles = __esm({ - "node_modules/chalk/source/vendor/ansi-styles/index.js"() { - ANSI_BACKGROUND_OFFSET = 10; - wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`; - wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`; - wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`; - styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - overline: [53, 55], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - // Bright color - blackBright: [90, 39], - gray: [90, 39], - // Alias of `blackBright` - grey: [90, 39], - // Alias of `blackBright` - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - // Bright color - bgBlackBright: [100, 49], - bgGray: [100, 49], - // Alias of `bgBlackBright` - bgGrey: [100, 49], - // Alias of `bgBlackBright` - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } +}); + +// node_modules/semver/internal/constants.js +var require_constants4 = __commonJS({ + "node_modules/semver/internal/constants.js"(exports, module) { + var SEMVER_SPEC_VERSION = "2.0.0"; + var MAX_LENGTH = 256; + var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ + 9007199254740991; + var MAX_SAFE_COMPONENT_LENGTH = 16; + var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6; + var RELEASE_TYPES = [ + "major", + "premajor", + "minor", + "preminor", + "patch", + "prepatch", + "prerelease" + ]; + module.exports = { + MAX_LENGTH, + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_SAFE_INTEGER, + RELEASE_TYPES, + SEMVER_SPEC_VERSION, + FLAG_INCLUDE_PRERELEASE: 1, + FLAG_LOOSE: 2 }; - modifierNames = Object.keys(styles.modifier); - foregroundColorNames = Object.keys(styles.color); - backgroundColorNames = Object.keys(styles.bgColor); - colorNames = [...foregroundColorNames, ...backgroundColorNames]; - ansiStyles = assembleStyles(); - ansi_styles_default = ansiStyles; } }); -// node_modules/chalk/source/vendor/supports-color/index.js -import process2 from "process"; -import os from "os"; -import tty from "tty"; -function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) { - const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf("--"); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); -} -function envForceColor() { - if ("FORCE_COLOR" in env) { - if (env.FORCE_COLOR === "true") { - return 1; - } - if (env.FORCE_COLOR === "false") { - return 0; - } - return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); +// node_modules/semver/internal/re.js +var require_re = __commonJS({ + "node_modules/semver/internal/re.js"(exports, module) { + var { + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_LENGTH + } = require_constants4(); + var debug = require_debug(); + exports = module.exports = {}; + var re = exports.re = []; + var safeRe = exports.safeRe = []; + var src = exports.src = []; + var t = exports.t = {}; + var R = 0; + var LETTERDASHNUMBER = "[a-zA-Z0-9-]"; + var safeRegexReplacements = [ + ["\\s", 1], + ["\\d", MAX_LENGTH], + [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH] + ]; + var makeSafeRegex = (value) => { + for (const [token2, max] of safeRegexReplacements) { + value = value.split(`${token2}*`).join(`${token2}{0,${max}}`).split(`${token2}+`).join(`${token2}{1,${max}}`); + } + return value; + }; + var createToken = (name, value, isGlobal) => { + const safe = makeSafeRegex(value); + const index = R++; + debug(name, index, value); + t[name] = index; + src[index] = value; + re[index] = new RegExp(value, isGlobal ? "g" : void 0); + safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0); + }; + createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); + createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); + createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); + createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); + createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); + createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`); + createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`); + createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); + createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); + createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`); + createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); + createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); + createToken("FULL", `^${src[t.FULLPLAIN]}$`); + createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); + createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); + createToken("GTLT", "((?:<|>)?=?)"); + createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); + createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); + createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); + createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); + createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); + createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); + createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`); + createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`); + createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`); + createToken("COERCERTL", src[t.COERCE], true); + createToken("COERCERTLFULL", src[t.COERCEFULL], true); + createToken("LONETILDE", "(?:~>?)"); + createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true); + exports.tildeTrimReplace = "$1~"; + createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); + createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); + createToken("LONECARET", "(?:\\^)"); + createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true); + exports.caretTrimReplace = "$1^"; + createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); + createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); + createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); + createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); + createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); + exports.comparatorTrimReplace = "$1$2$3"; + createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); + createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); + createToken("STAR", "(<|>)?=?\\s*\\*"); + createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); + createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); } -} -function translateLevel(level) { - if (level === 0) { - return false; - } - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} -function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { - const noFlagForceColor = envForceColor(); - if (noFlagForceColor !== void 0) { - flagForceColor = noFlagForceColor; - } - const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; - if (forceColor === 0) { - return 0; - } - if (sniffFlags) { - if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { - return 3; - } - if (hasFlag("color=256")) { - return 2; - } - } - if ("TF_BUILD" in env && "AGENT_NAME" in env) { - return 1; - } - if (haveStream && !streamIsTTY && forceColor === void 0) { - return 0; - } - const min = forceColor || 0; - if (env.TERM === "dumb") { - return min; - } - if (process2.platform === "win32") { - const osRelease = os.release().split("."); - if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - return 1; - } - if ("CI" in env) { - if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) { - return 3; - } - if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") { - return 1; - } - return min; - } - if ("TEAMCITY_VERSION" in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - if (env.COLORTERM === "truecolor") { - return 3; - } - if (env.TERM === "xterm-kitty") { - return 3; - } - if ("TERM_PROGRAM" in env) { - const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); - switch (env.TERM_PROGRAM) { - case "iTerm.app": { - return version >= 3 ? 3 : 2; +}); + +// node_modules/semver/internal/parse-options.js +var require_parse_options = __commonJS({ + "node_modules/semver/internal/parse-options.js"(exports, module) { + var looseOption = Object.freeze({ loose: true }); + var emptyOpts = Object.freeze({}); + var parseOptions = (options8) => { + if (!options8) { + return emptyOpts; } - case "Apple_Terminal": { - return 2; + if (typeof options8 !== "object") { + return looseOption; } - } - } - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - if ("COLORTERM" in env) { - return 1; - } - return min; -} -function createSupportsColor(stream, options8 = {}) { - const level = _supportsColor(stream, { - streamIsTTY: stream && stream.isTTY, - ...options8 - }); - return translateLevel(level); -} -var env, flagForceColor, supportsColor, supports_color_default; -var init_supports_color = __esm({ - "node_modules/chalk/source/vendor/supports-color/index.js"() { - ({ env } = process2); - if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) { - flagForceColor = 0; - } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { - flagForceColor = 1; - } - supportsColor = { - stdout: createSupportsColor({ isTTY: tty.isatty(1) }), - stderr: createSupportsColor({ isTTY: tty.isatty(2) }) + return options8; }; - supports_color_default = supportsColor; - } -}); - -// node_modules/chalk/source/utilities.js -function stringReplaceAll(string, substring, replacer) { - let index = string.indexOf(substring); - if (index === -1) { - return string; - } - const substringLength = substring.length; - let endIndex = 0; - let returnValue = ""; - do { - returnValue += string.slice(endIndex, index) + substring + replacer; - endIndex = index + substringLength; - index = string.indexOf(substring, endIndex); - } while (index !== -1); - returnValue += string.slice(endIndex); - return returnValue; -} -function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) { - let endIndex = 0; - let returnValue = ""; - do { - const gotCR = string[index - 1] === "\r"; - returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix; - endIndex = index + 1; - index = string.indexOf("\n", endIndex); - } while (index !== -1); - returnValue += string.slice(endIndex); - return returnValue; -} -var init_utilities = __esm({ - "node_modules/chalk/source/utilities.js"() { + module.exports = parseOptions; } }); -// node_modules/chalk/source/index.js -var source_exports = {}; -__export(source_exports, { - Chalk: () => Chalk, - backgroundColorNames: () => backgroundColorNames, - backgroundColors: () => backgroundColorNames, - chalkStderr: () => chalkStderr, - colorNames: () => colorNames, - colors: () => colorNames, - default: () => source_default, - foregroundColorNames: () => foregroundColorNames, - foregroundColors: () => foregroundColorNames, - modifierNames: () => modifierNames, - modifiers: () => modifierNames, - supportsColor: () => stdoutColor, - supportsColorStderr: () => stderrColor -}); -function createChalk(options8) { - return chalkFactory(options8); -} -var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default; -var init_source = __esm({ - "node_modules/chalk/source/index.js"() { - init_ansi_styles(); - init_supports_color(); - init_utilities(); - init_ansi_styles(); - ({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default); - GENERATOR = Symbol("GENERATOR"); - STYLER = Symbol("STYLER"); - IS_EMPTY = Symbol("IS_EMPTY"); - levelMapping = [ - "ansi", - "ansi", - "ansi256", - "ansi16m" - ]; - styles2 = /* @__PURE__ */ Object.create(null); - applyOptions = (object, options8 = {}) => { - if (options8.level && !(Number.isInteger(options8.level) && options8.level >= 0 && options8.level <= 3)) { - throw new Error("The `level` option should be an integer from 0 to 3"); - } - const colorLevel = stdoutColor ? stdoutColor.level : 0; - object.level = options8.level === void 0 ? colorLevel : options8.level; - }; - Chalk = class { - constructor(options8) { - return chalkFactory(options8); +// node_modules/semver/internal/identifiers.js +var require_identifiers = __commonJS({ + "node_modules/semver/internal/identifiers.js"(exports, module) { + var numeric = /^[0-9]+$/; + var compareIdentifiers = (a, b) => { + const anum = numeric.test(a); + const bnum = numeric.test(b); + if (anum && bnum) { + a = +a; + b = +b; } + return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; }; - chalkFactory = (options8) => { - const chalk2 = (...strings) => strings.join(" "); - applyOptions(chalk2, options8); - Object.setPrototypeOf(chalk2, createChalk.prototype); - return chalk2; + var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a); + module.exports = { + compareIdentifiers, + rcompareIdentifiers }; - Object.setPrototypeOf(createChalk.prototype, Function.prototype); - for (const [styleName, style] of Object.entries(ansi_styles_default)) { - styles2[styleName] = { - get() { - const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]); - Object.defineProperty(this, styleName, { value: builder }); - return builder; + } +}); + +// node_modules/semver/classes/semver.js +var require_semver = __commonJS({ + "node_modules/semver/classes/semver.js"(exports, module) { + var debug = require_debug(); + var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4(); + var { safeRe: re, t } = require_re(); + var parseOptions = require_parse_options(); + var { compareIdentifiers } = require_identifiers(); + var SemVer = class _SemVer { + constructor(version, options8) { + options8 = parseOptions(options8); + if (version instanceof _SemVer) { + if (version.loose === !!options8.loose && version.includePrerelease === !!options8.includePrerelease) { + return version; + } else { + version = version.version; + } + } else if (typeof version !== "string") { + throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`); } - }; - } - styles2.visible = { - get() { - const builder = createBuilder(this, this[STYLER], true); - Object.defineProperty(this, "visible", { value: builder }); - return builder; - } - }; - getModelAnsi = (model, level, type2, ...arguments_) => { - if (model === "rgb") { - if (level === "ansi16m") { - return ansi_styles_default[type2].ansi16m(...arguments_); + if (version.length > MAX_LENGTH) { + throw new TypeError( + `version is longer than ${MAX_LENGTH} characters` + ); + } + debug("SemVer", version, options8); + this.options = options8; + this.loose = !!options8.loose; + this.includePrerelease = !!options8.includePrerelease; + const m = version.trim().match(options8.loose ? re[t.LOOSE] : re[t.FULL]); + if (!m) { + throw new TypeError(`Invalid Version: ${version}`); } - if (level === "ansi256") { - return ansi_styles_default[type2].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_)); + this.raw = version; + this.major = +m[1]; + this.minor = +m[2]; + this.patch = +m[3]; + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError("Invalid major version"); } - return ansi_styles_default[type2].ansi(ansi_styles_default.rgbToAnsi(...arguments_)); - } - if (model === "hex") { - return getModelAnsi("rgb", level, type2, ...ansi_styles_default.hexToRgb(...arguments_)); - } - return ansi_styles_default[type2][model](...arguments_); - }; - usedModels = ["rgb", "hex", "ansi256"]; - for (const model of usedModels) { - styles2[model] = { - get() { - const { level } = this; - return function(...arguments_) { - const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]); - return createBuilder(this, styler, this[IS_EMPTY]); - }; + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError("Invalid minor version"); } - }; - const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); - styles2[bgModel] = { - get() { - const { level } = this; - return function(...arguments_) { - const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]); - return createBuilder(this, styler, this[IS_EMPTY]); - }; + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError("Invalid patch version"); } - }; - } - proto = Object.defineProperties(() => { - }, { - ...styles2, - level: { - enumerable: true, - get() { - return this[GENERATOR].level; - }, - set(level) { - this[GENERATOR].level = level; + if (!m[4]) { + this.prerelease = []; + } else { + this.prerelease = m[4].split(".").map((id) => { + if (/^[0-9]+$/.test(id)) { + const num = +id; + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num; + } + } + return id; + }); } + this.build = m[5] ? m[5].split(".") : []; + this.format(); } - }); - createStyler = (open, close, parent) => { - let openAll; - let closeAll; - if (parent === void 0) { - openAll = open; - closeAll = close; - } else { - openAll = parent.openAll + open; - closeAll = close + parent.closeAll; - } - return { - open, - close, - openAll, - closeAll, - parent - }; - }; - createBuilder = (self, _styler, _isEmpty) => { - const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" ")); - Object.setPrototypeOf(builder, proto); - builder[GENERATOR] = self; - builder[STYLER] = _styler; - builder[IS_EMPTY] = _isEmpty; - return builder; - }; - applyStyle = (self, string) => { - if (self.level <= 0 || !string) { - return self[IS_EMPTY] ? "" : string; - } - let styler = self[STYLER]; - if (styler === void 0) { - return string; - } - const { openAll, closeAll } = styler; - if (string.includes("\x1B")) { - while (styler !== void 0) { - string = stringReplaceAll(string, styler.close, styler.open); - styler = styler.parent; + format() { + this.version = `${this.major}.${this.minor}.${this.patch}`; + if (this.prerelease.length) { + this.version += `-${this.prerelease.join(".")}`; } + return this.version; } - const lfIndex = string.indexOf("\n"); - if (lfIndex !== -1) { - string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex); - } - return openAll + string + closeAll; - }; - Object.defineProperties(createChalk.prototype, styles2); - chalk = createChalk(); - chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 }); - source_default = chalk; - } -}); - -// node_modules/semver/internal/debug.js -var require_debug = __commonJS({ - "node_modules/semver/internal/debug.js"(exports, module) { - var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { - }; - module.exports = debug; - } -}); - -// node_modules/semver/internal/constants.js -var require_constants4 = __commonJS({ - "node_modules/semver/internal/constants.js"(exports, module) { - var SEMVER_SPEC_VERSION = "2.0.0"; - var MAX_LENGTH = 256; - var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ - 9007199254740991; - var MAX_SAFE_COMPONENT_LENGTH = 16; - var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6; - var RELEASE_TYPES = [ - "major", - "premajor", - "minor", - "preminor", - "patch", - "prepatch", - "prerelease" - ]; - module.exports = { - MAX_LENGTH, - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER, - RELEASE_TYPES, - SEMVER_SPEC_VERSION, - FLAG_INCLUDE_PRERELEASE: 1, - FLAG_LOOSE: 2 - }; - } -}); - -// node_modules/semver/internal/re.js -var require_re = __commonJS({ - "node_modules/semver/internal/re.js"(exports, module) { - var { - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_LENGTH - } = require_constants4(); - var debug = require_debug(); - exports = module.exports = {}; - var re = exports.re = []; - var safeRe = exports.safeRe = []; - var src = exports.src = []; - var t = exports.t = {}; - var R = 0; - var LETTERDASHNUMBER = "[a-zA-Z0-9-]"; - var safeRegexReplacements = [ - ["\\s", 1], - ["\\d", MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH] - ]; - var makeSafeRegex = (value) => { - for (const [token2, max] of safeRegexReplacements) { - value = value.split(`${token2}*`).join(`${token2}{0,${max}}`).split(`${token2}+`).join(`${token2}{1,${max}}`); - } - return value; - }; - var createToken = (name, value, isGlobal) => { - const safe = makeSafeRegex(value); - const index = R++; - debug(name, index, value); - t[name] = index; - src[index] = value; - re[index] = new RegExp(value, isGlobal ? "g" : void 0); - safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0); - }; - createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); - createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); - createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); - createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); - createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); - createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); - createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); - createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`); - createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); - createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); - createToken("FULL", `^${src[t.FULLPLAIN]}$`); - createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); - createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); - createToken("GTLT", "((?:<|>)?=?)"); - createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); - createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); - createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); - createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`); - createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`); - createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`); - createToken("COERCERTL", src[t.COERCE], true); - createToken("COERCERTLFULL", src[t.COERCEFULL], true); - createToken("LONETILDE", "(?:~>?)"); - createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true); - exports.tildeTrimReplace = "$1~"; - createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); - createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("LONECARET", "(?:\\^)"); - createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true); - exports.caretTrimReplace = "$1^"; - createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); - createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); - createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); - createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); - exports.comparatorTrimReplace = "$1$2$3"; - createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); - createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); - createToken("STAR", "(<|>)?=?\\s*\\*"); - createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); - createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); - } -}); - -// node_modules/semver/internal/parse-options.js -var require_parse_options = __commonJS({ - "node_modules/semver/internal/parse-options.js"(exports, module) { - var looseOption = Object.freeze({ loose: true }); - var emptyOpts = Object.freeze({}); - var parseOptions = (options8) => { - if (!options8) { - return emptyOpts; - } - if (typeof options8 !== "object") { - return looseOption; - } - return options8; - }; - module.exports = parseOptions; - } -}); - -// node_modules/semver/internal/identifiers.js -var require_identifiers = __commonJS({ - "node_modules/semver/internal/identifiers.js"(exports, module) { - var numeric = /^[0-9]+$/; - var compareIdentifiers = (a, b) => { - const anum = numeric.test(a); - const bnum = numeric.test(b); - if (anum && bnum) { - a = +a; - b = +b; - } - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; - }; - var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a); - module.exports = { - compareIdentifiers, - rcompareIdentifiers - }; - } -}); - -// node_modules/semver/classes/semver.js -var require_semver = __commonJS({ - "node_modules/semver/classes/semver.js"(exports, module) { - var debug = require_debug(); - var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4(); - var { safeRe: re, t } = require_re(); - var parseOptions = require_parse_options(); - var { compareIdentifiers } = require_identifiers(); - var SemVer = class _SemVer { - constructor(version, options8) { - options8 = parseOptions(options8); - if (version instanceof _SemVer) { - if (version.loose === !!options8.loose && version.includePrerelease === !!options8.includePrerelease) { - return version; - } else { - version = version.version; - } - } else if (typeof version !== "string") { - throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`); - } - if (version.length > MAX_LENGTH) { - throw new TypeError( - `version is longer than ${MAX_LENGTH} characters` - ); - } - debug("SemVer", version, options8); - this.options = options8; - this.loose = !!options8.loose; - this.includePrerelease = !!options8.includePrerelease; - const m = version.trim().match(options8.loose ? re[t.LOOSE] : re[t.FULL]); - if (!m) { - throw new TypeError(`Invalid Version: ${version}`); - } - this.raw = version; - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError("Invalid major version"); - } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError("Invalid minor version"); - } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError("Invalid patch version"); - } - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split(".").map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; - } - } - return id; - }); - } - this.build = m[5] ? m[5].split(".") : []; - this.format(); - } - format() { - this.version = `${this.major}.${this.minor}.${this.patch}`; - if (this.prerelease.length) { - this.version += `-${this.prerelease.join(".")}`; - } - return this.version; - } - toString() { - return this.version; + toString() { + return this.version; } compare(other) { debug("SemVer.compare", this.version, this.options, other); @@ -6358,6 +5827,8 @@ var require_semver = __commonJS({ this.inc("patch", identifier, identifierBase); this.inc("pre", identifier, identifierBase); break; + // If the input is a non-prerelease version, this acts the same as + // prepatch. case "prerelease": if (this.prerelease.length === 0) { this.inc("patch", identifier, identifierBase); @@ -6385,6 +5856,8 @@ var require_semver = __commonJS({ } this.prerelease = []; break; + // This probably shouldn't be used publicly. + // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. case "pre": { const base = Number(identifierBase) ? 1 : 0; if (!identifier && identifierBase === false) { @@ -7568,9 +7041,9 @@ var require_fnmatch = __commonJS({ } return ret; } - Minimatch.prototype.parse = parse6; + Minimatch.prototype.parse = parse7; var SUBPARSE = {}; - function parse6(pattern, isSub) { + function parse7(pattern, isSub) { var options8 = this.options; if (!options8.noglobstar && pattern === "**") return GLOBSTAR; if (pattern === "") return ""; @@ -7609,6 +7082,8 @@ var require_fnmatch = __commonJS({ clearStateChar(); escaping = true; continue; + // the various stateChar values + // for the "extglob" stuff. case "?": case "*": case "+": @@ -7672,6 +7147,7 @@ var require_fnmatch = __commonJS({ } re += "|"; continue; + // these are mostly the same in regexp and glob case "[": clearStateChar(); if (inClass) { @@ -8024,7 +7500,7 @@ var require_ini = __commonJS({ param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/, comment: /^\s*[#;].*$/ }; - function parse6(file) { + function parse7(file) { return __awaiter(this, void 0, void 0, function() { return __generator(this, function(_a) { return [2, new Promise(function(resolve3, reject) { @@ -8033,18 +7509,18 @@ var require_ini = __commonJS({ reject(err); return; } - resolve3(parseString(data)); + resolve3(parseString2(data)); }); })]; }); }); } - exports.parse = parse6; + exports.parse = parse7; function parseSync(file) { - return parseString(fs7.readFileSync(file, "utf8")); + return parseString2(fs7.readFileSync(file, "utf8")); } exports.parseSync = parseSync; - function parseString(data) { + function parseString2(data) { var sectionBody = {}; var sectionName = null; var value = [[sectionName, sectionBody]]; @@ -8066,7 +7542,7 @@ var require_ini = __commonJS({ }); return value; } - exports.parseString = parseString; + exports.parseString = parseString2; } }); @@ -8437,7 +7913,7 @@ var require_src = __commonJS({ return parseFromConfigs(getConfigsForFiles(files), resolvedFilePath, processedOptions); } exports.parseFromFilesSync = parseFromFilesSync; - function parse6(_filepath, _options) { + function parse7(_filepath, _options) { if (_options === void 0) { _options = {}; } @@ -8452,7 +7928,7 @@ var require_src = __commonJS({ }); }); } - exports.parse = parse6; + exports.parse = parse7; function parseSync(_filepath, _options) { if (_options === void 0) { _options = {}; @@ -8479,7 +7955,11 @@ var require_vendors = __commonJS({ { name: "Appcircle", constant: "APPCIRCLE", - env: "AC_APPCIRCLE" + env: "AC_APPCIRCLE", + pr: { + env: "AC_GIT_PR", + ne: "false" + } }, { name: "AppVeyor", @@ -8490,7 +7970,15 @@ var require_vendors = __commonJS({ { name: "AWS CodeBuild", constant: "CODEBUILD", - env: "CODEBUILD_BUILD_ARN" + env: "CODEBUILD_BUILD_ARN", + pr: { + env: "CODEBUILD_WEBHOOK_EVENT", + any: [ + "PULL_REQUEST_CREATED", + "PULL_REQUEST_UPDATED", + "PULL_REQUEST_REOPENED" + ] + } }, { name: "Azure Pipelines", @@ -8821,6 +8309,7 @@ var require_ci_info = __commonJS({ }); exports.name = null; exports.isPR = null; + exports.id = null; vendors.forEach(function(vendor) { const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]; const isCI2 = envs.every(function(obj) { @@ -8831,24 +8320,8 @@ var require_ci_info = __commonJS({ return; } exports.name = vendor.name; - switch (typeof vendor.pr) { - case "string": - exports.isPR = !!env2[vendor.pr]; - break; - case "object": - if ("env" in vendor.pr) { - exports.isPR = vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne; - } else if ("any" in vendor.pr) { - exports.isPR = vendor.pr.any.some(function(key2) { - return !!env2[key2]; - }); - } else { - exports.isPR = checkEnv(vendor.pr); - } - break; - default: - exports.isPR = null; - } + exports.isPR = checkPR(vendor); + exports.id = vendor.constant; }); exports.isCI = !!(env2.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false' (env2.BUILD_ID || // Jenkins, Cloudbees @@ -8875,2238 +8348,572 @@ var require_ci_info = __commonJS({ return env2[k] === obj[k]; }); } - } -}); - -// node_modules/@iarna/toml/lib/parser.js -var require_parser = __commonJS({ - "node_modules/@iarna/toml/lib/parser.js"(exports, module) { - "use strict"; - var ParserEND = 1114112; - var ParserError = class _ParserError extends Error { - /* istanbul ignore next */ - constructor(msg, filename, linenumber) { - super("[ParserError] " + msg, filename, linenumber); - this.name = "ParserError"; - this.code = "ParserError"; - if (Error.captureStackTrace) Error.captureStackTrace(this, _ParserError); - } - }; - var State = class { - constructor(parser) { - this.parser = parser; - this.buf = ""; - this.returned = null; - this.result = null; - this.resultTable = null; - this.resultArr = null; - } - }; - var Parser = class { - constructor() { - this.pos = 0; - this.col = 0; - this.line = 0; - this.obj = {}; - this.ctx = this.obj; - this.stack = []; - this._buf = ""; - this.char = null; - this.ii = 0; - this.state = new State(this.parseStart); - } - parse(str2) { - if (str2.length === 0 || str2.length == null) return; - this._buf = String(str2); - this.ii = -1; - this.char = -1; - let getNext; - while (getNext === false || this.nextChar()) { - getNext = this.runOne(); - } - this._buf = null; - } - nextChar() { - if (this.char === 10) { - ++this.line; - this.col = -1; - } - ++this.ii; - this.char = this._buf.codePointAt(this.ii); - ++this.pos; - ++this.col; - return this.haveBuffer(); - } - haveBuffer() { - return this.ii < this._buf.length; - } - runOne() { - return this.state.parser.call(this, this.state.returned); - } - finish() { - this.char = ParserEND; - let last; - do { - last = this.state.parser; - this.runOne(); - } while (this.state.parser !== last); - this.ctx = null; - this.state = null; - this._buf = null; - return this.obj; - } - next(fn) { - if (typeof fn !== "function") throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn)); - this.state.parser = fn; - } - goto(fn) { - this.next(fn); - return this.runOne(); - } - call(fn, returnWith) { - if (returnWith) this.next(returnWith); - this.stack.push(this.state); - this.state = new State(fn); - } - callNow(fn, returnWith) { - this.call(fn, returnWith); - return this.runOne(); - } - return(value) { - if (this.stack.length === 0) throw this.error(new ParserError("Stack underflow")); - if (value === void 0) value = this.state.buf; - this.state = this.stack.pop(); - this.state.returned = value; - } - returnNow(value) { - this.return(value); - return this.runOne(); - } - consume() { - if (this.char === ParserEND) throw this.error(new ParserError("Unexpected end-of-buffer")); - this.state.buf += this._buf[this.ii]; - } - error(err) { - err.line = this.line; - err.col = this.col; - err.pos = this.pos; - return err; - } - /* istanbul ignore next */ - parseStart() { - throw new ParserError("Must declare a parseStart method"); - } - }; - Parser.END = ParserEND; - Parser.Error = ParserError; - module.exports = Parser; - } -}); - -// node_modules/@iarna/toml/lib/create-datetime.js -var require_create_datetime = __commonJS({ - "node_modules/@iarna/toml/lib/create-datetime.js"(exports, module) { - "use strict"; - module.exports = (value) => { - const date = new Date(value); - if (isNaN(date)) { - throw new TypeError("Invalid Datetime"); - } else { - return date; + function checkPR(vendor) { + switch (typeof vendor.pr) { + case "string": + return !!env2[vendor.pr]; + case "object": + if ("env" in vendor.pr) { + if ("any" in vendor.pr) { + return vendor.pr.any.some(function(key2) { + return env2[vendor.pr.env] === key2; + }); + } else { + return vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne; + } + } else if ("any" in vendor.pr) { + return vendor.pr.any.some(function(key2) { + return !!env2[key2]; + }); + } else { + return checkEnv(vendor.pr); + } + default: + return null; } - }; + } } }); -// node_modules/@iarna/toml/lib/format-num.js -var require_format_num = __commonJS({ - "node_modules/@iarna/toml/lib/format-num.js"(exports, module) { - "use strict"; - module.exports = (d, num) => { - num = String(num); - while (num.length < d) num = "0" + num; - return num; +// node_modules/picocolors/picocolors.js +var require_picocolors = __commonJS({ + "node_modules/picocolors/picocolors.js"(exports, module) { + var p = process || {}; + var argv = p.argv || []; + var env2 = p.env || {}; + var isColorSupported = !(!!env2.NO_COLOR || argv.includes("--no-color")) && (!!env2.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI); + var formatter = (open, close, replace = open) => (input) => { + let string = "" + input, index = string.indexOf(close, open.length); + return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close; }; - } -}); - -// node_modules/@iarna/toml/lib/create-datetime-float.js -var require_create_datetime_float = __commonJS({ - "node_modules/@iarna/toml/lib/create-datetime-float.js"(exports, module) { - "use strict"; - var f = require_format_num(); - var FloatingDateTime = class extends Date { - constructor(value) { - super(value + "Z"); - this.isFloating = true; - } - toISOString() { - const date = `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`; - const time = `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`; - return `${date}T${time}`; - } + var replaceClose = (string, close, replace, index) => { + let result = "", cursor2 = 0; + do { + result += string.substring(cursor2, index) + replace; + cursor2 = index + close.length; + index = string.indexOf(close, cursor2); + } while (~index); + return result + string.substring(cursor2); }; - module.exports = (value) => { - const date = new FloatingDateTime(value); - if (isNaN(date)) { - throw new TypeError("Invalid Datetime"); - } else { - return date; - } + var createColors = (enabled = isColorSupported) => { + let f = enabled ? formatter : () => String; + return { + isColorSupported: enabled, + reset: f("\x1B[0m", "\x1B[0m"), + bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"), + dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"), + italic: f("\x1B[3m", "\x1B[23m"), + underline: f("\x1B[4m", "\x1B[24m"), + inverse: f("\x1B[7m", "\x1B[27m"), + hidden: f("\x1B[8m", "\x1B[28m"), + strikethrough: f("\x1B[9m", "\x1B[29m"), + black: f("\x1B[30m", "\x1B[39m"), + red: f("\x1B[31m", "\x1B[39m"), + green: f("\x1B[32m", "\x1B[39m"), + yellow: f("\x1B[33m", "\x1B[39m"), + blue: f("\x1B[34m", "\x1B[39m"), + magenta: f("\x1B[35m", "\x1B[39m"), + cyan: f("\x1B[36m", "\x1B[39m"), + white: f("\x1B[37m", "\x1B[39m"), + gray: f("\x1B[90m", "\x1B[39m"), + bgBlack: f("\x1B[40m", "\x1B[49m"), + bgRed: f("\x1B[41m", "\x1B[49m"), + bgGreen: f("\x1B[42m", "\x1B[49m"), + bgYellow: f("\x1B[43m", "\x1B[49m"), + bgBlue: f("\x1B[44m", "\x1B[49m"), + bgMagenta: f("\x1B[45m", "\x1B[49m"), + bgCyan: f("\x1B[46m", "\x1B[49m"), + bgWhite: f("\x1B[47m", "\x1B[49m"), + blackBright: f("\x1B[90m", "\x1B[39m"), + redBright: f("\x1B[91m", "\x1B[39m"), + greenBright: f("\x1B[92m", "\x1B[39m"), + yellowBright: f("\x1B[93m", "\x1B[39m"), + blueBright: f("\x1B[94m", "\x1B[39m"), + magentaBright: f("\x1B[95m", "\x1B[39m"), + cyanBright: f("\x1B[96m", "\x1B[39m"), + whiteBright: f("\x1B[97m", "\x1B[39m"), + bgBlackBright: f("\x1B[100m", "\x1B[49m"), + bgRedBright: f("\x1B[101m", "\x1B[49m"), + bgGreenBright: f("\x1B[102m", "\x1B[49m"), + bgYellowBright: f("\x1B[103m", "\x1B[49m"), + bgBlueBright: f("\x1B[104m", "\x1B[49m"), + bgMagentaBright: f("\x1B[105m", "\x1B[49m"), + bgCyanBright: f("\x1B[106m", "\x1B[49m"), + bgWhiteBright: f("\x1B[107m", "\x1B[49m") + }; }; + module.exports = createColors(); + module.exports.createColors = createColors; } }); -// node_modules/@iarna/toml/lib/create-date.js -var require_create_date = __commonJS({ - "node_modules/@iarna/toml/lib/create-date.js"(exports, module) { - "use strict"; - var f = require_format_num(); - var DateTime = global.Date; - var Date2 = class extends DateTime { - constructor(value) { - super(value); - this.isDate = true; - } - toISOString() { - return `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`; - } - }; - module.exports = (value) => { - const date = new Date2(value); - if (isNaN(date)) { - throw new TypeError("Invalid Datetime"); - } else { - return date; - } +// node_modules/js-tokens/index.js +var require_js_tokens = __commonJS({ + "node_modules/js-tokens/index.js"(exports) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; + exports.matchToToken = function(match) { + var token2 = { type: "invalid", value: match[0], closed: void 0 }; + if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]); + else if (match[5]) token2.type = "comment"; + else if (match[6]) token2.type = "comment", token2.closed = !!match[7]; + else if (match[8]) token2.type = "regex"; + else if (match[9]) token2.type = "number"; + else if (match[10]) token2.type = "name"; + else if (match[11]) token2.type = "punctuator"; + else if (match[12]) token2.type = "whitespace"; + return token2; }; } }); -// node_modules/@iarna/toml/lib/create-time.js -var require_create_time = __commonJS({ - "node_modules/@iarna/toml/lib/create-time.js"(exports, module) { +// node_modules/@babel/helper-validator-identifier/lib/identifier.js +var require_identifier = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) { "use strict"; - var f = require_format_num(); - var Time = class extends Date { - constructor(value) { - super(`0000-01-01T${value}Z`); - this.isTime = true; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isIdentifierChar = isIdentifierChar; + exports.isIdentifierName = isIdentifierName; + exports.isIdentifierStart = isIdentifierStart; + var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC"; + var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65"; + var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); + var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); + nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; + var astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 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, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191]; + var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; + function isInAstralSet(code, set2) { + let pos2 = 65536; + for (let i = 0, length = set2.length; i < length; i += 2) { + pos2 += set2[i]; + if (pos2 > code) return false; + pos2 += set2[i + 1]; + if (pos2 >= code) return true; } - toISOString() { - return `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`; + return false; + } + function isIdentifierStart(code) { + if (code < 65) return code === 36; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 65535) { + return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)); } - }; - module.exports = (value) => { - const date = new Time(value); - if (isNaN(date)) { - throw new TypeError("Invalid Datetime"); - } else { - return date; + return isInAstralSet(code, astralIdentifierStartCodes); + } + function isIdentifierChar(code) { + if (code < 48) return code === 36; + if (code < 58) return true; + if (code < 65) return false; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 65535) { + return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code)); } - }; + return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); + } + function isIdentifierName(name) { + let isFirst = true; + for (let i = 0; i < name.length; i++) { + let cp = name.charCodeAt(i); + if ((cp & 64512) === 55296 && i + 1 < name.length) { + const trail = name.charCodeAt(++i); + if ((trail & 64512) === 56320) { + cp = 65536 + ((cp & 1023) << 10) + (trail & 1023); + } + } + if (isFirst) { + isFirst = false; + if (!isIdentifierStart(cp)) { + return false; + } + } else if (!isIdentifierChar(cp)) { + return false; + } + } + return !isFirst; + } } }); -// node_modules/@iarna/toml/lib/toml-parser.js -var require_toml_parser = __commonJS({ - "node_modules/@iarna/toml/lib/toml-parser.js"(exports, module) { +// node_modules/@babel/helper-validator-identifier/lib/keyword.js +var require_keyword = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) { "use strict"; - module.exports = makeParserClass(require_parser()); - module.exports.makeParserClass = makeParserClass; - var TomlError = class _TomlError extends Error { - constructor(msg) { - super(msg); - this.name = "TomlError"; - if (Error.captureStackTrace) Error.captureStackTrace(this, _TomlError); - this.fromTOML = true; - this.wrapped = null; - } - }; - TomlError.wrap = (err) => { - const terr = new TomlError(err.message); - terr.code = err.code; - terr.wrapped = err; - return terr; - }; - module.exports.TomlError = TomlError; - var createDateTime = require_create_datetime(); - var createDateTimeFloat = require_create_datetime_float(); - var createDate = require_create_date(); - var createTime = require_create_time(); - var CTRL_I = 9; - var CTRL_J = 10; - var CTRL_M = 13; - var CTRL_CHAR_BOUNDARY = 31; - var CHAR_SP = 32; - var CHAR_QUOT = 34; - var CHAR_NUM = 35; - var CHAR_APOS = 39; - var CHAR_PLUS = 43; - var CHAR_COMMA = 44; - var CHAR_HYPHEN = 45; - var CHAR_PERIOD = 46; - var CHAR_0 = 48; - var CHAR_1 = 49; - var CHAR_7 = 55; - var CHAR_9 = 57; - var CHAR_COLON = 58; - var CHAR_EQUALS = 61; - var CHAR_A = 65; - var CHAR_E = 69; - var CHAR_F = 70; - var CHAR_T = 84; - var CHAR_U = 85; - var CHAR_Z = 90; - var CHAR_LOWBAR = 95; - var CHAR_a = 97; - var CHAR_b = 98; - var CHAR_e = 101; - var CHAR_f = 102; - var CHAR_i = 105; - var CHAR_l = 108; - var CHAR_n = 110; - var CHAR_o = 111; - var CHAR_r = 114; - var CHAR_s = 115; - var CHAR_t = 116; - var CHAR_u = 117; - var CHAR_x = 120; - var CHAR_z = 122; - var CHAR_LCUB = 123; - var CHAR_RCUB = 125; - var CHAR_LSQB = 91; - var CHAR_BSOL = 92; - var CHAR_RSQB = 93; - var CHAR_DEL = 127; - var SURROGATE_FIRST = 55296; - var SURROGATE_LAST = 57343; - var escapes = { - [CHAR_b]: "\b", - [CHAR_t]: " ", - [CHAR_n]: "\n", - [CHAR_f]: "\f", - [CHAR_r]: "\r", - [CHAR_QUOT]: '"', - [CHAR_BSOL]: "\\" + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.isKeyword = isKeyword; + exports.isReservedWord = isReservedWord; + exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; + exports.isStrictBindReservedWord = isStrictBindReservedWord; + exports.isStrictReservedWord = isStrictReservedWord; + var reservedWords = { + keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], + strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], + strictBind: ["eval", "arguments"] }; - function isDigit(cp) { - return cp >= CHAR_0 && cp <= CHAR_9; - } - function isHexit(cp) { - return cp >= CHAR_A && cp <= CHAR_F || cp >= CHAR_a && cp <= CHAR_f || cp >= CHAR_0 && cp <= CHAR_9; - } - function isBit(cp) { - return cp === CHAR_1 || cp === CHAR_0; - } - function isOctit(cp) { - return cp >= CHAR_0 && cp <= CHAR_7; - } - function isAlphaNumQuoteHyphen(cp) { - return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_APOS || cp === CHAR_QUOT || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN; - } - function isAlphaNumHyphen(cp) { - return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN; - } - var _type = Symbol("type"); - var _declared = Symbol("declared"); - var hasOwnProperty3 = Object.prototype.hasOwnProperty; - var defineProperty = Object.defineProperty; - var descriptor = { configurable: true, enumerable: true, writable: true, value: void 0 }; - function hasKey(obj, key2) { - if (hasOwnProperty3.call(obj, key2)) return true; - if (key2 === "__proto__") defineProperty(obj, "__proto__", descriptor); - return false; - } - var INLINE_TABLE = Symbol("inline-table"); - function InlineTable() { - return Object.defineProperties({}, { - [_type]: { value: INLINE_TABLE } - }); - } - function isInlineTable(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === INLINE_TABLE; - } - var TABLE = Symbol("table"); - function Table() { - return Object.defineProperties({}, { - [_type]: { value: TABLE }, - [_declared]: { value: false, writable: true } - }); - } - function isTable(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === TABLE; - } - var _contentType = Symbol("content-type"); - var INLINE_LIST = Symbol("inline-list"); - function InlineList(type2) { - return Object.defineProperties([], { - [_type]: { value: INLINE_LIST }, - [_contentType]: { value: type2 } - }); + var keywords = new Set(reservedWords.keyword); + var reservedWordsStrictSet = new Set(reservedWords.strict); + var reservedWordsStrictBindSet = new Set(reservedWords.strictBind); + function isReservedWord(word, inModule) { + return inModule && word === "await" || word === "enum"; } - function isInlineList(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === INLINE_LIST; + function isStrictReservedWord(word, inModule) { + return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); } - var LIST = Symbol("list"); - function List() { - return Object.defineProperties([], { - [_type]: { value: LIST } - }); + function isStrictBindOnlyReservedWord(word) { + return reservedWordsStrictBindSet.has(word); } - function isList(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === LIST; + function isStrictBindReservedWord(word, inModule) { + return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); } - var _custom; - try { - const utilInspect = __require("util").inspect; - _custom = utilInspect.custom; - } catch (_) { + function isKeyword(word) { + return keywords.has(word); } - var _inspect = _custom || "inspect"; - var BoxedBigInt = class { - constructor(value) { - try { - this.value = global.BigInt.asIntN(64, value); - } catch (_) { - this.value = null; - } - Object.defineProperty(this, _type, { value: INTEGER }); + } +}); + +// node_modules/@babel/helper-validator-identifier/lib/index.js +var require_lib = __commonJS({ + "node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "isIdentifierChar", { + enumerable: true, + get: function() { + return _identifier.isIdentifierChar; } - isNaN() { - return this.value === null; + }); + Object.defineProperty(exports, "isIdentifierName", { + enumerable: true, + get: function() { + return _identifier.isIdentifierName; } - /* istanbul ignore next */ - toString() { - return String(this.value); + }); + Object.defineProperty(exports, "isIdentifierStart", { + enumerable: true, + get: function() { + return _identifier.isIdentifierStart; } - /* istanbul ignore next */ - [_inspect]() { - return `[BigInt: ${this.toString()}]}`; + }); + Object.defineProperty(exports, "isKeyword", { + enumerable: true, + get: function() { + return _keyword.isKeyword; } - valueOf() { - return this.value; + }); + Object.defineProperty(exports, "isReservedWord", { + enumerable: true, + get: function() { + return _keyword.isReservedWord; } - }; - var INTEGER = Symbol("integer"); - function Integer(value) { - let num = Number(value); - if (Object.is(num, -0)) num = 0; - if (global.BigInt && !Number.isSafeInteger(num)) { - return new BoxedBigInt(value); - } else { - return Object.defineProperties(new Number(num), { - isNaN: { value: function() { - return isNaN(this); - } }, - [_type]: { value: INTEGER }, - [_inspect]: { value: () => `[Integer: ${value}]` } - }); + }); + Object.defineProperty(exports, "isStrictBindOnlyReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictBindOnlyReservedWord; } - } - function isInteger2(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === INTEGER; - } - var FLOAT = Symbol("float"); - function Float(value) { - return Object.defineProperties(new Number(value), { - [_type]: { value: FLOAT }, - [_inspect]: { value: () => `[Float: ${value}]` } - }); - } - function isFloat2(obj) { - if (obj === null || typeof obj !== "object") return false; - return obj[_type] === FLOAT; - } - function tomlType(value) { - const type2 = typeof value; - if (type2 === "object") { - if (value === null) return "null"; - if (value instanceof Date) return "datetime"; - if (_type in value) { - switch (value[_type]) { - case INLINE_TABLE: - return "inline-table"; - case INLINE_LIST: - return "inline-list"; - case TABLE: - return "table"; - case LIST: - return "list"; - case FLOAT: - return "float"; - case INTEGER: - return "integer"; - } - } + }); + Object.defineProperty(exports, "isStrictBindReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictBindReservedWord; } - return type2; - } - function makeParserClass(Parser) { - class TOMLParser extends Parser { - constructor() { - super(); - this.ctx = this.obj = Table(); - } - /* MATCH HELPER */ - atEndOfWord() { - return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine(); - } - atEndOfLine() { - return this.char === Parser.END || this.char === CTRL_J || this.char === CTRL_M; - } - parseStart() { - if (this.char === Parser.END) { - return null; - } else if (this.char === CHAR_LSQB) { - return this.call(this.parseTableOrList); - } else if (this.char === CHAR_NUM) { - return this.call(this.parseComment); - } else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) { - return null; - } else if (isAlphaNumQuoteHyphen(this.char)) { - return this.callNow(this.parseAssignStatement); - } else { - throw this.error(new TomlError(`Unknown character "${this.char}"`)); - } - } - // HELPER, this strips any whitespace and comments to the end of the line - // then RETURNS. Last state in a production. - parseWhitespaceToEOL() { - if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) { - return null; - } else if (this.char === CHAR_NUM) { - return this.goto(this.parseComment); - } else if (this.char === Parser.END || this.char === CTRL_J) { - return this.return(); - } else { - throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line")); - } - } - /* ASSIGNMENT: key = value */ - parseAssignStatement() { - return this.callNow(this.parseAssign, this.recordAssignStatement); - } - recordAssignStatement(kv) { - let target = this.ctx; - let finalKey = kv.key.pop(); - for (let kw of kv.key) { - if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) { - throw this.error(new TomlError("Can't redefine existing key")); - } - target = target[kw] = target[kw] || Table(); - } - if (hasKey(target, finalKey)) { - throw this.error(new TomlError("Can't redefine existing key")); - } - if (isInteger2(kv.value) || isFloat2(kv.value)) { - target[finalKey] = kv.value.valueOf(); - } else { - target[finalKey] = kv.value; - } - return this.goto(this.parseWhitespaceToEOL); - } - /* ASSSIGNMENT expression, key = value possibly inside an inline table */ - parseAssign() { - return this.callNow(this.parseKeyword, this.recordAssignKeyword); - } - recordAssignKeyword(key2) { - if (this.state.resultTable) { - this.state.resultTable.push(key2); - } else { - this.state.resultTable = [key2]; + }); + Object.defineProperty(exports, "isStrictReservedWord", { + enumerable: true, + get: function() { + return _keyword.isStrictReservedWord; + } + }); + var _identifier = require_identifier(); + var _keyword = require_keyword(); + } +}); + +// node_modules/@babel/code-frame/lib/index.js +var require_lib2 = __commonJS({ + "node_modules/@babel/code-frame/lib/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var picocolors = require_picocolors(); + var jsTokens = require_js_tokens(); + var helperValidatorIdentifier = require_lib(); + function isColorSupported() { + return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported; + } + var compose = (f, g) => (v) => f(g(v)); + function buildDefs(colors) { + return { + keyword: colors.cyan, + capitalized: colors.yellow, + jsxIdentifier: colors.yellow, + punctuator: colors.yellow, + number: colors.magenta, + string: colors.green, + regex: colors.magenta, + comment: colors.gray, + invalid: compose(compose(colors.white, colors.bgRed), colors.bold), + gutter: colors.gray, + marker: compose(colors.red, colors.bold), + message: compose(colors.red, colors.bold), + reset: colors.reset + }; + } + var defsOn = buildDefs(picocolors.createColors(true)); + var defsOff = buildDefs(picocolors.createColors(false)); + function getDefs(enabled) { + return enabled ? defsOn : defsOff; + } + var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); + var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/; + var BRACKET = /^[()[\]{}]$/; + var tokenize2; + { + const JSX_TAG = /^[a-z][\w-]*$/i; + const getTokenType = function(token2, offset, text) { + if (token2.type === "name") { + if (helperValidatorIdentifier.isKeyword(token2.value) || helperValidatorIdentifier.isStrictReservedWord(token2.value, true) || sometimesKeywords.has(token2.value)) { + return "keyword"; } - return this.goto(this.parseAssignKeywordPreDot); - } - parseAssignKeywordPreDot() { - if (this.char === CHAR_PERIOD) { - return this.next(this.parseAssignKeywordPostDot); - } else if (this.char !== CHAR_SP && this.char !== CTRL_I) { - return this.goto(this.parseAssignEqual); + if (JSX_TAG.test(token2.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === " defs[type2](str2)).join("\n"); + } else { + highlighted += value; } - /* TABLES AND LISTS, [foo] and [[foo]] */ - parseTableOrList() { - if (this.char === CHAR_LSQB) { - this.next(this.parseList); + } + return highlighted; + } + var deprecationWarningShown = false; + var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; + function getMarkerLines(loc, source2, opts) { + const startLoc = Object.assign({ + column: 0, + line: -1 + }, loc.start); + const endLoc = Object.assign({}, startLoc, loc.end); + const { + linesAbove = 2, + linesBelow = 3 + } = opts || {}; + const startLine = startLoc.line; + const startColumn = startLoc.column; + const endLine = endLoc.line; + const endColumn = endLoc.column; + let start = Math.max(startLine - (linesAbove + 1), 0); + let end = Math.min(source2.length, endLine + linesBelow); + if (startLine === -1) { + start = 0; + } + if (endLine === -1) { + end = source2.length; + } + const lineDiff2 = endLine - startLine; + const markerLines = {}; + if (lineDiff2) { + for (let i = 0; i <= lineDiff2; i++) { + const lineNumber = i + startLine; + if (!startColumn) { + markerLines[lineNumber] = true; + } else if (i === 0) { + const sourceLength = source2[lineNumber - 1].length; + markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; + } else if (i === lineDiff2) { + markerLines[lineNumber] = [0, endColumn]; } else { - return this.goto(this.parseTable); + const sourceLength = source2[lineNumber - i].length; + markerLines[lineNumber] = [0, sourceLength]; } } - /* TABLE [foo.bar.baz] */ - parseTable() { - this.ctx = this.obj; - return this.goto(this.parseTableNext); - } - parseTableNext() { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; + } else { + if (startColumn === endColumn) { + if (startColumn) { + markerLines[startLine] = [startColumn, 0]; } else { - return this.callNow(this.parseKeyword, this.parseTableMore); + markerLines[startLine] = true; } + } else { + markerLines[startLine] = [startColumn, endColumn - startColumn]; } - parseTableMore(keyword) { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else if (this.char === CHAR_RSQB) { - if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) { - throw this.error(new TomlError("Can't redefine existing key")); - } else { - this.ctx = this.ctx[keyword] = this.ctx[keyword] || Table(); - this.ctx[_declared] = true; - } - return this.next(this.parseWhitespaceToEOL); - } else if (this.char === CHAR_PERIOD) { - if (!hasKey(this.ctx, keyword)) { - this.ctx = this.ctx[keyword] = Table(); - } else if (isTable(this.ctx[keyword])) { - this.ctx = this.ctx[keyword]; - } else if (isList(this.ctx[keyword])) { - this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]; - } else { - throw this.error(new TomlError("Can't redefine existing key")); + } + return { + start, + end, + markerLines + }; + } + function codeFrameColumns3(rawLines, loc, opts = {}) { + const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode; + const defs = getDefs(shouldHighlight); + const lines = rawLines.split(NEWLINE); + const { + start, + end, + markerLines + } = getMarkerLines(loc, lines, opts); + const hasColumns = loc.start && typeof loc.start.column === "number"; + const numberMaxWidth = String(end).length; + const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines; + let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line3, index2) => { + const number = start + 1 + index2; + const paddedNumber = ` ${number}`.slice(-numberMaxWidth); + const gutter = ` ${paddedNumber} |`; + const hasMarker = markerLines[number]; + const lastMarkerLine = !markerLines[number + 1]; + if (hasMarker) { + let markerLine = ""; + if (Array.isArray(hasMarker)) { + const markerSpacing = line3.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); + const numberOfMarkers = hasMarker[1] || 1; + markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join(""); + if (lastMarkerLine && opts.message) { + markerLine += " " + defs.message(opts.message); } - return this.next(this.parseTableNext); - } else { - throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]")); } + return [defs.marker(">"), defs.gutter(gutter), line3.length > 0 ? ` ${line3}` : "", markerLine].join(""); + } else { + return ` ${defs.gutter(gutter)}${line3.length > 0 ? ` ${line3}` : ""}`; } - /* LIST [[a.b.c]] */ - parseList() { - this.ctx = this.obj; - return this.goto(this.parseListNext); - } - parseListNext() { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else { - return this.callNow(this.parseKeyword, this.parseListMore); - } + }).join("\n"); + if (opts.message && !hasColumns) { + frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message} +${frame}`; + } + if (shouldHighlight) { + return defs.reset(frame); + } else { + return frame; + } + } + function index(rawLines, lineNumber, colNumber, opts = {}) { + if (!deprecationWarningShown) { + deprecationWarningShown = true; + const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; + if (process.emitWarning) { + process.emitWarning(message, "DeprecationWarning"); + } else { + const deprecationError = new Error(message); + deprecationError.name = "DeprecationWarning"; + console.warn(new Error(message)); } - parseListMore(keyword) { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else if (this.char === CHAR_RSQB) { - if (!hasKey(this.ctx, keyword)) { - this.ctx[keyword] = List(); - } - if (isInlineList(this.ctx[keyword])) { - throw this.error(new TomlError("Can't extend an inline array")); - } else if (isList(this.ctx[keyword])) { - const next = Table(); - this.ctx[keyword].push(next); - this.ctx = next; - } else { - throw this.error(new TomlError("Can't redefine an existing key")); - } - return this.next(this.parseListEnd); - } else if (this.char === CHAR_PERIOD) { - if (!hasKey(this.ctx, keyword)) { - this.ctx = this.ctx[keyword] = Table(); - } else if (isInlineList(this.ctx[keyword])) { - throw this.error(new TomlError("Can't extend an inline array")); - } else if (isInlineTable(this.ctx[keyword])) { - throw this.error(new TomlError("Can't extend an inline table")); - } else if (isList(this.ctx[keyword])) { - this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]; - } else if (isTable(this.ctx[keyword])) { - this.ctx = this.ctx[keyword]; - } else { - throw this.error(new TomlError("Can't redefine an existing key")); - } - return this.next(this.parseListNext); - } else { - throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]")); - } + } + colNumber = Math.max(colNumber, 0); + const location = { + start: { + column: colNumber, + line: lineNumber } - parseListEnd(keyword) { - if (this.char === CHAR_RSQB) { - return this.next(this.parseWhitespaceToEOL); - } else { - throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]")); - } + }; + return codeFrameColumns3(rawLines, location, opts); + } + exports.codeFrameColumns = codeFrameColumns3; + exports.default = index; + exports.highlight = highlight; + } +}); + +// node_modules/ignore/index.js +var require_ignore = __commonJS({ + "node_modules/ignore/index.js"(exports, module) { + function makeArray(subject) { + return Array.isArray(subject) ? subject : [subject]; + } + var EMPTY = ""; + var SPACE = " "; + var ESCAPE = "\\"; + var REGEX_TEST_BLANK_LINE = /^\s+$/; + var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; + var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; + var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; + var REGEX_SPLITALL_CRLF = /\r?\n/g; + var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; + var SLASH = "/"; + var TMP_KEY_IGNORE = "node-ignore"; + if (typeof Symbol !== "undefined") { + TMP_KEY_IGNORE = Symbol.for("node-ignore"); + } + var KEY_IGNORE = TMP_KEY_IGNORE; + var define = (object, key2, value) => Object.defineProperty(object, key2, { value }); + var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; + var RETURN_FALSE = () => false; + var sanitizeRange = (range) => range.replace( + REGEX_REGEXP_RANGE, + (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY + ); + var cleanRangeBackSlash = (slashes) => { + const { length } = slashes; + return slashes.slice(0, length - length % 2); + }; + var REPLACERS = [ + [ + // remove BOM + // TODO: + // Other similar zero-width characters? + /^\uFEFF/, + () => EMPTY + ], + // > Trailing spaces are ignored unless they are quoted with backslash ("\") + [ + // (a\ ) -> (a ) + // (a ) -> (a) + // (a ) -> (a) + // (a \ ) -> (a ) + /((?:\\\\)*?)(\\?\s+)$/, + (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY) + ], + // replace (\ ) with ' ' + // (\ ) -> ' ' + // (\\ ) -> '\\ ' + // (\\\ ) -> '\\ ' + [ + /(\\+?)\s/g, + (_, m1) => { + const { length } = m1; + return m1.slice(0, length - length % 2) + SPACE; } - /* VALUE string, number, boolean, inline list, inline object */ - parseValue() { - if (this.char === Parser.END) { - throw this.error(new TomlError("Key without value")); - } else if (this.char === CHAR_QUOT) { - return this.next(this.parseDoubleString); - } - if (this.char === CHAR_APOS) { - return this.next(this.parseSingleString); - } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) { - return this.goto(this.parseNumberSign); - } else if (this.char === CHAR_i) { - return this.next(this.parseInf); - } else if (this.char === CHAR_n) { - return this.next(this.parseNan); - } else if (isDigit(this.char)) { - return this.goto(this.parseNumberOrDateTime); - } else if (this.char === CHAR_t || this.char === CHAR_f) { - return this.goto(this.parseBoolean); - } else if (this.char === CHAR_LSQB) { - return this.call(this.parseInlineList, this.recordValue); - } else if (this.char === CHAR_LCUB) { - return this.call(this.parseInlineTable, this.recordValue); - } else { - throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table")); - } - } - recordValue(value) { - return this.returnNow(value); - } - parseInf() { - if (this.char === CHAR_n) { - return this.next(this.parseInf2); - } else { - throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"')); - } - } - parseInf2() { - if (this.char === CHAR_f) { - if (this.state.buf === "-") { - return this.return(-Infinity); - } else { - return this.return(Infinity); - } - } else { - throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"')); - } - } - parseNan() { - if (this.char === CHAR_a) { - return this.next(this.parseNan2); - } else { - throw this.error(new TomlError('Unexpected character, expected "nan"')); - } - } - parseNan2() { - if (this.char === CHAR_n) { - return this.return(NaN); - } else { - throw this.error(new TomlError('Unexpected character, expected "nan"')); - } - } - /* KEYS, barewords or basic, literal, or dotted */ - parseKeyword() { - if (this.char === CHAR_QUOT) { - return this.next(this.parseBasicString); - } else if (this.char === CHAR_APOS) { - return this.next(this.parseLiteralString); - } else { - return this.goto(this.parseBareKey); - } - } - /* KEYS: barewords */ - parseBareKey() { - do { - if (this.char === Parser.END) { - throw this.error(new TomlError("Key ended without value")); - } else if (isAlphaNumHyphen(this.char)) { - this.consume(); - } else if (this.state.buf.length === 0) { - throw this.error(new TomlError("Empty bare keys are not allowed")); - } else { - return this.returnNow(); - } - } while (this.nextChar()); - } - /* STRINGS, single quoted (literal) */ - parseSingleString() { - if (this.char === CHAR_APOS) { - return this.next(this.parseLiteralMultiStringMaybe); - } else { - return this.goto(this.parseLiteralString); - } - } - parseLiteralString() { - do { - if (this.char === CHAR_APOS) { - return this.return(); - } else if (this.atEndOfLine()) { - throw this.error(new TomlError("Unterminated string")); - } else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I) { - throw this.errorControlCharInString(); - } else { - this.consume(); - } - } while (this.nextChar()); - } - parseLiteralMultiStringMaybe() { - if (this.char === CHAR_APOS) { - return this.next(this.parseLiteralMultiString); - } else { - return this.returnNow(); - } - } - parseLiteralMultiString() { - if (this.char === CTRL_M) { - return null; - } else if (this.char === CTRL_J) { - return this.next(this.parseLiteralMultiStringContent); - } else { - return this.goto(this.parseLiteralMultiStringContent); - } - } - parseLiteralMultiStringContent() { - do { - if (this.char === CHAR_APOS) { - return this.next(this.parseLiteralMultiEnd); - } else if (this.char === Parser.END) { - throw this.error(new TomlError("Unterminated multi-line string")); - } else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) { - throw this.errorControlCharInString(); - } else { - this.consume(); - } - } while (this.nextChar()); - } - parseLiteralMultiEnd() { - if (this.char === CHAR_APOS) { - return this.next(this.parseLiteralMultiEnd2); - } else { - this.state.buf += "'"; - return this.goto(this.parseLiteralMultiStringContent); - } - } - parseLiteralMultiEnd2() { - if (this.char === CHAR_APOS) { - return this.return(); - } else { - this.state.buf += "''"; - return this.goto(this.parseLiteralMultiStringContent); - } - } - /* STRINGS double quoted */ - parseDoubleString() { - if (this.char === CHAR_QUOT) { - return this.next(this.parseMultiStringMaybe); - } else { - return this.goto(this.parseBasicString); - } - } - parseBasicString() { - do { - if (this.char === CHAR_BSOL) { - return this.call(this.parseEscape, this.recordEscapeReplacement); - } else if (this.char === CHAR_QUOT) { - return this.return(); - } else if (this.atEndOfLine()) { - throw this.error(new TomlError("Unterminated string")); - } else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I) { - throw this.errorControlCharInString(); - } else { - this.consume(); - } - } while (this.nextChar()); - } - recordEscapeReplacement(replacement) { - this.state.buf += replacement; - return this.goto(this.parseBasicString); - } - parseMultiStringMaybe() { - if (this.char === CHAR_QUOT) { - return this.next(this.parseMultiString); - } else { - return this.returnNow(); - } - } - parseMultiString() { - if (this.char === CTRL_M) { - return null; - } else if (this.char === CTRL_J) { - return this.next(this.parseMultiStringContent); - } else { - return this.goto(this.parseMultiStringContent); - } - } - parseMultiStringContent() { - do { - if (this.char === CHAR_BSOL) { - return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement); - } else if (this.char === CHAR_QUOT) { - return this.next(this.parseMultiEnd); - } else if (this.char === Parser.END) { - throw this.error(new TomlError("Unterminated multi-line string")); - } else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) { - throw this.errorControlCharInString(); - } else { - this.consume(); - } - } while (this.nextChar()); - } - errorControlCharInString() { - let displayCode = "\\u00"; - if (this.char < 16) { - displayCode += "0"; - } - displayCode += this.char.toString(16); - return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode} instead`)); - } - recordMultiEscapeReplacement(replacement) { - this.state.buf += replacement; - return this.goto(this.parseMultiStringContent); - } - parseMultiEnd() { - if (this.char === CHAR_QUOT) { - return this.next(this.parseMultiEnd2); - } else { - this.state.buf += '"'; - return this.goto(this.parseMultiStringContent); - } - } - parseMultiEnd2() { - if (this.char === CHAR_QUOT) { - return this.return(); - } else { - this.state.buf += '""'; - return this.goto(this.parseMultiStringContent); - } - } - parseMultiEscape() { - if (this.char === CTRL_M || this.char === CTRL_J) { - return this.next(this.parseMultiTrim); - } else if (this.char === CHAR_SP || this.char === CTRL_I) { - return this.next(this.parsePreMultiTrim); - } else { - return this.goto(this.parseEscape); - } - } - parsePreMultiTrim() { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else if (this.char === CTRL_M || this.char === CTRL_J) { - return this.next(this.parseMultiTrim); - } else { - throw this.error(new TomlError("Can't escape whitespace")); - } - } - parseMultiTrim() { - if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) { - return null; - } else { - return this.returnNow(); - } - } - parseEscape() { - if (this.char in escapes) { - return this.return(escapes[this.char]); - } else if (this.char === CHAR_u) { - return this.call(this.parseSmallUnicode, this.parseUnicodeReturn); - } else if (this.char === CHAR_U) { - return this.call(this.parseLargeUnicode, this.parseUnicodeReturn); - } else { - throw this.error(new TomlError("Unknown escape character: " + this.char)); - } - } - parseUnicodeReturn(char) { - try { - const codePoint = parseInt(char, 16); - if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) { - throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved")); - } - return this.returnNow(String.fromCodePoint(codePoint)); - } catch (err) { - throw this.error(TomlError.wrap(err)); - } - } - parseSmallUnicode() { - if (!isHexit(this.char)) { - throw this.error(new TomlError("Invalid character in unicode sequence, expected hex")); - } else { - this.consume(); - if (this.state.buf.length >= 4) return this.return(); - } - } - parseLargeUnicode() { - if (!isHexit(this.char)) { - throw this.error(new TomlError("Invalid character in unicode sequence, expected hex")); - } else { - this.consume(); - if (this.state.buf.length >= 8) return this.return(); - } - } - /* NUMBERS */ - parseNumberSign() { - this.consume(); - return this.next(this.parseMaybeSignedInfOrNan); - } - parseMaybeSignedInfOrNan() { - if (this.char === CHAR_i) { - return this.next(this.parseInf); - } else if (this.char === CHAR_n) { - return this.next(this.parseNan); - } else { - return this.callNow(this.parseNoUnder, this.parseNumberIntegerStart); - } - } - parseNumberIntegerStart() { - if (this.char === CHAR_0) { - this.consume(); - return this.next(this.parseNumberIntegerExponentOrDecimal); - } else { - return this.goto(this.parseNumberInteger); - } - } - parseNumberIntegerExponentOrDecimal() { - if (this.char === CHAR_PERIOD) { - this.consume(); - return this.call(this.parseNoUnder, this.parseNumberFloat); - } else if (this.char === CHAR_E || this.char === CHAR_e) { - this.consume(); - return this.next(this.parseNumberExponentSign); - } else { - return this.returnNow(Integer(this.state.buf)); - } - } - parseNumberInteger() { - if (isDigit(this.char)) { - this.consume(); - } else if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnder); - } else if (this.char === CHAR_E || this.char === CHAR_e) { - this.consume(); - return this.next(this.parseNumberExponentSign); - } else if (this.char === CHAR_PERIOD) { - this.consume(); - return this.call(this.parseNoUnder, this.parseNumberFloat); - } else { - const result = Integer(this.state.buf); - if (result.isNaN()) { - throw this.error(new TomlError("Invalid number")); - } else { - return this.returnNow(result); - } - } - } - parseNoUnder() { - if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD || this.char === CHAR_E || this.char === CHAR_e) { - throw this.error(new TomlError("Unexpected character, expected digit")); - } else if (this.atEndOfWord()) { - throw this.error(new TomlError("Incomplete number")); - } - return this.returnNow(); - } - parseNoUnderHexOctBinLiteral() { - if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD) { - throw this.error(new TomlError("Unexpected character, expected digit")); - } else if (this.atEndOfWord()) { - throw this.error(new TomlError("Incomplete number")); - } - return this.returnNow(); - } - parseNumberFloat() { - if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnder, this.parseNumberFloat); - } else if (isDigit(this.char)) { - this.consume(); - } else if (this.char === CHAR_E || this.char === CHAR_e) { - this.consume(); - return this.next(this.parseNumberExponentSign); - } else { - return this.returnNow(Float(this.state.buf)); - } - } - parseNumberExponentSign() { - if (isDigit(this.char)) { - return this.goto(this.parseNumberExponent); - } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) { - this.consume(); - this.call(this.parseNoUnder, this.parseNumberExponent); - } else { - throw this.error(new TomlError("Unexpected character, expected -, + or digit")); - } - } - parseNumberExponent() { - if (isDigit(this.char)) { - this.consume(); - } else if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnder); - } else { - return this.returnNow(Float(this.state.buf)); - } - } - /* NUMBERS or DATETIMES */ - parseNumberOrDateTime() { - if (this.char === CHAR_0) { - this.consume(); - return this.next(this.parseNumberBaseOrDateTime); - } else { - return this.goto(this.parseNumberOrDateTimeOnly); - } - } - parseNumberOrDateTimeOnly() { - if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnder, this.parseNumberInteger); - } else if (isDigit(this.char)) { - this.consume(); - if (this.state.buf.length > 4) this.next(this.parseNumberInteger); - } else if (this.char === CHAR_E || this.char === CHAR_e) { - this.consume(); - return this.next(this.parseNumberExponentSign); - } else if (this.char === CHAR_PERIOD) { - this.consume(); - return this.call(this.parseNoUnder, this.parseNumberFloat); - } else if (this.char === CHAR_HYPHEN) { - return this.goto(this.parseDateTime); - } else if (this.char === CHAR_COLON) { - return this.goto(this.parseOnlyTimeHour); - } else { - return this.returnNow(Integer(this.state.buf)); - } - } - parseDateTimeOnly() { - if (this.state.buf.length < 4) { - if (isDigit(this.char)) { - return this.consume(); - } else if (this.char === CHAR_COLON) { - return this.goto(this.parseOnlyTimeHour); - } else { - throw this.error(new TomlError("Expected digit while parsing year part of a date")); - } - } else { - if (this.char === CHAR_HYPHEN) { - return this.goto(this.parseDateTime); - } else { - throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date")); - } - } - } - parseNumberBaseOrDateTime() { - if (this.char === CHAR_b) { - this.consume(); - return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerBin); - } else if (this.char === CHAR_o) { - this.consume(); - return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerOct); - } else if (this.char === CHAR_x) { - this.consume(); - return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerHex); - } else if (this.char === CHAR_PERIOD) { - return this.goto(this.parseNumberInteger); - } else if (isDigit(this.char)) { - return this.goto(this.parseDateTimeOnly); - } else { - return this.returnNow(Integer(this.state.buf)); - } - } - parseIntegerHex() { - if (isHexit(this.char)) { - this.consume(); - } else if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnderHexOctBinLiteral); - } else { - const result = Integer(this.state.buf); - if (result.isNaN()) { - throw this.error(new TomlError("Invalid number")); - } else { - return this.returnNow(result); - } - } - } - parseIntegerOct() { - if (isOctit(this.char)) { - this.consume(); - } else if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnderHexOctBinLiteral); - } else { - const result = Integer(this.state.buf); - if (result.isNaN()) { - throw this.error(new TomlError("Invalid number")); - } else { - return this.returnNow(result); - } - } - } - parseIntegerBin() { - if (isBit(this.char)) { - this.consume(); - } else if (this.char === CHAR_LOWBAR) { - return this.call(this.parseNoUnderHexOctBinLiteral); - } else { - const result = Integer(this.state.buf); - if (result.isNaN()) { - throw this.error(new TomlError("Invalid number")); - } else { - return this.returnNow(result); - } - } - } - /* DATETIME */ - parseDateTime() { - if (this.state.buf.length < 4) { - throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters")); - } - this.state.result = this.state.buf; - this.state.buf = ""; - return this.next(this.parseDateMonth); - } - parseDateMonth() { - if (this.char === CHAR_HYPHEN) { - if (this.state.buf.length < 2) { - throw this.error(new TomlError("Months less than 10 must be zero padded to two characters")); - } - this.state.result += "-" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseDateDay); - } else if (isDigit(this.char)) { - this.consume(); - } else { - throw this.error(new TomlError("Incomplete datetime")); - } - } - parseDateDay() { - if (this.char === CHAR_T || this.char === CHAR_SP) { - if (this.state.buf.length < 2) { - throw this.error(new TomlError("Days less than 10 must be zero padded to two characters")); - } - this.state.result += "-" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseStartTimeHour); - } else if (this.atEndOfWord()) { - return this.returnNow(createDate(this.state.result + "-" + this.state.buf)); - } else if (isDigit(this.char)) { - this.consume(); - } else { - throw this.error(new TomlError("Incomplete datetime")); - } - } - parseStartTimeHour() { - if (this.atEndOfWord()) { - return this.returnNow(createDate(this.state.result)); - } else { - return this.goto(this.parseTimeHour); - } - } - parseTimeHour() { - if (this.char === CHAR_COLON) { - if (this.state.buf.length < 2) { - throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters")); - } - this.state.result += "T" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseTimeMin); - } else if (isDigit(this.char)) { - this.consume(); - } else { - throw this.error(new TomlError("Incomplete datetime")); - } - } - parseTimeMin() { - if (this.state.buf.length < 2 && isDigit(this.char)) { - this.consume(); - } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) { - this.state.result += ":" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseTimeSec); - } else { - throw this.error(new TomlError("Incomplete datetime")); - } - } - parseTimeSec() { - if (isDigit(this.char)) { - this.consume(); - if (this.state.buf.length === 2) { - this.state.result += ":" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseTimeZoneOrFraction); - } - } else { - throw this.error(new TomlError("Incomplete datetime")); - } - } - parseOnlyTimeHour() { - if (this.char === CHAR_COLON) { - if (this.state.buf.length < 2) { - throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters")); - } - this.state.result = this.state.buf; - this.state.buf = ""; - return this.next(this.parseOnlyTimeMin); - } else { - throw this.error(new TomlError("Incomplete time")); - } - } - parseOnlyTimeMin() { - if (this.state.buf.length < 2 && isDigit(this.char)) { - this.consume(); - } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) { - this.state.result += ":" + this.state.buf; - this.state.buf = ""; - return this.next(this.parseOnlyTimeSec); - } else { - throw this.error(new TomlError("Incomplete time")); - } - } - parseOnlyTimeSec() { - if (isDigit(this.char)) { - this.consume(); - if (this.state.buf.length === 2) { - return this.next(this.parseOnlyTimeFractionMaybe); - } - } else { - throw this.error(new TomlError("Incomplete time")); - } - } - parseOnlyTimeFractionMaybe() { - this.state.result += ":" + this.state.buf; - if (this.char === CHAR_PERIOD) { - this.state.buf = ""; - this.next(this.parseOnlyTimeFraction); - } else { - return this.return(createTime(this.state.result)); - } - } - parseOnlyTimeFraction() { - if (isDigit(this.char)) { - this.consume(); - } else if (this.atEndOfWord()) { - if (this.state.buf.length === 0) throw this.error(new TomlError("Expected digit in milliseconds")); - return this.returnNow(createTime(this.state.result + "." + this.state.buf)); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z")); - } - } - parseTimeZoneOrFraction() { - if (this.char === CHAR_PERIOD) { - this.consume(); - this.next(this.parseDateTimeFraction); - } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) { - this.consume(); - this.next(this.parseTimeZoneHour); - } else if (this.char === CHAR_Z) { - this.consume(); - return this.return(createDateTime(this.state.result + this.state.buf)); - } else if (this.atEndOfWord()) { - return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf)); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z")); - } - } - parseDateTimeFraction() { - if (isDigit(this.char)) { - this.consume(); - } else if (this.state.buf.length === 1) { - throw this.error(new TomlError("Expected digit in milliseconds")); - } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) { - this.consume(); - this.next(this.parseTimeZoneHour); - } else if (this.char === CHAR_Z) { - this.consume(); - return this.return(createDateTime(this.state.result + this.state.buf)); - } else if (this.atEndOfWord()) { - return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf)); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z")); - } - } - parseTimeZoneHour() { - if (isDigit(this.char)) { - this.consume(); - if (/\d\d$/.test(this.state.buf)) return this.next(this.parseTimeZoneSep); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected digit")); - } - } - parseTimeZoneSep() { - if (this.char === CHAR_COLON) { - this.consume(); - this.next(this.parseTimeZoneMin); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected colon")); - } - } - parseTimeZoneMin() { - if (isDigit(this.char)) { - this.consume(); - if (/\d\d$/.test(this.state.buf)) return this.return(createDateTime(this.state.result + this.state.buf)); - } else { - throw this.error(new TomlError("Unexpected character in datetime, expected digit")); - } - } - /* BOOLEAN */ - parseBoolean() { - if (this.char === CHAR_t) { - this.consume(); - return this.next(this.parseTrue_r); - } else if (this.char === CHAR_f) { - this.consume(); - return this.next(this.parseFalse_a); - } - } - parseTrue_r() { - if (this.char === CHAR_r) { - this.consume(); - return this.next(this.parseTrue_u); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseTrue_u() { - if (this.char === CHAR_u) { - this.consume(); - return this.next(this.parseTrue_e); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseTrue_e() { - if (this.char === CHAR_e) { - return this.return(true); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseFalse_a() { - if (this.char === CHAR_a) { - this.consume(); - return this.next(this.parseFalse_l); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseFalse_l() { - if (this.char === CHAR_l) { - this.consume(); - return this.next(this.parseFalse_s); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseFalse_s() { - if (this.char === CHAR_s) { - this.consume(); - return this.next(this.parseFalse_e); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - parseFalse_e() { - if (this.char === CHAR_e) { - return this.return(false); - } else { - throw this.error(new TomlError("Invalid boolean, expected true or false")); - } - } - /* INLINE LISTS */ - parseInlineList() { - if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) { - return null; - } else if (this.char === Parser.END) { - throw this.error(new TomlError("Unterminated inline array")); - } else if (this.char === CHAR_NUM) { - return this.call(this.parseComment); - } else if (this.char === CHAR_RSQB) { - return this.return(this.state.resultArr || InlineList()); - } else { - return this.callNow(this.parseValue, this.recordInlineListValue); - } - } - recordInlineListValue(value) { - if (this.state.resultArr) { - const listType = this.state.resultArr[_contentType]; - const valueType = tomlType(value); - if (listType !== valueType) { - throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`)); - } - } else { - this.state.resultArr = InlineList(tomlType(value)); - } - if (isFloat2(value) || isInteger2(value)) { - this.state.resultArr.push(value.valueOf()); - } else { - this.state.resultArr.push(value); - } - return this.goto(this.parseInlineListNext); - } - parseInlineListNext() { - if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) { - return null; - } else if (this.char === CHAR_NUM) { - return this.call(this.parseComment); - } else if (this.char === CHAR_COMMA) { - return this.next(this.parseInlineList); - } else if (this.char === CHAR_RSQB) { - return this.goto(this.parseInlineList); - } else { - throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])")); - } - } - /* INLINE TABLE */ - parseInlineTable() { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) { - throw this.error(new TomlError("Unterminated inline array")); - } else if (this.char === CHAR_RCUB) { - return this.return(this.state.resultTable || InlineTable()); - } else { - if (!this.state.resultTable) this.state.resultTable = InlineTable(); - return this.callNow(this.parseAssign, this.recordInlineTableValue); - } - } - recordInlineTableValue(kv) { - let target = this.state.resultTable; - let finalKey = kv.key.pop(); - for (let kw of kv.key) { - if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) { - throw this.error(new TomlError("Can't redefine existing key")); - } - target = target[kw] = target[kw] || Table(); - } - if (hasKey(target, finalKey)) { - throw this.error(new TomlError("Can't redefine existing key")); - } - if (isInteger2(kv.value) || isFloat2(kv.value)) { - target[finalKey] = kv.value.valueOf(); - } else { - target[finalKey] = kv.value; - } - return this.goto(this.parseInlineTableNext); - } - parseInlineTableNext() { - if (this.char === CHAR_SP || this.char === CTRL_I) { - return null; - } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) { - throw this.error(new TomlError("Unterminated inline array")); - } else if (this.char === CHAR_COMMA) { - return this.next(this.parseInlineTable); - } else if (this.char === CHAR_RCUB) { - return this.goto(this.parseInlineTable); - } else { - throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])")); - } - } - } - return TOMLParser; - } - } -}); - -// node_modules/@iarna/toml/parse-pretty-error.js -var require_parse_pretty_error = __commonJS({ - "node_modules/@iarna/toml/parse-pretty-error.js"(exports, module) { - "use strict"; - module.exports = prettyError; - function prettyError(err, buf) { - if (err.pos == null || err.line == null) return err; - let msg = err.message; - msg += ` at row ${err.line + 1}, col ${err.col + 1}, pos ${err.pos}: -`; - if (buf && buf.split) { - const lines = buf.split(/\n/); - const lineNumWidth = String(Math.min(lines.length, err.line + 3)).length; - let linePadding = " "; - while (linePadding.length < lineNumWidth) linePadding += " "; - for (let ii = Math.max(0, err.line - 1); ii < Math.min(lines.length, err.line + 2); ++ii) { - let lineNum = String(ii + 1); - if (lineNum.length < lineNumWidth) lineNum = " " + lineNum; - if (err.line === ii) { - msg += lineNum + "> " + lines[ii] + "\n"; - msg += linePadding + " "; - for (let hh = 0; hh < err.col; ++hh) { - msg += " "; - } - msg += "^\n"; - } else { - msg += lineNum + ": " + lines[ii] + "\n"; - } - } - } - err.message = msg + "\n"; - return err; - } - } -}); - -// node_modules/@iarna/toml/parse-async.js -var require_parse_async = __commonJS({ - "node_modules/@iarna/toml/parse-async.js"(exports, module) { - "use strict"; - module.exports = parseAsync; - var TOMLParser = require_toml_parser(); - var prettyError = require_parse_pretty_error(); - function parseAsync(str2, opts) { - if (!opts) opts = {}; - const index = 0; - const blocksize = opts.blocksize || 40960; - const parser = new TOMLParser(); - return new Promise((resolve3, reject) => { - setImmediate(parseAsyncNext, index, blocksize, resolve3, reject); - }); - function parseAsyncNext(index2, blocksize2, resolve3, reject) { - if (index2 >= str2.length) { - try { - return resolve3(parser.finish()); - } catch (err) { - return reject(prettyError(err, str2)); - } - } - try { - parser.parse(str2.slice(index2, index2 + blocksize2)); - setImmediate(parseAsyncNext, index2 + blocksize2, blocksize2, resolve3, reject); - } catch (err) { - reject(prettyError(err, str2)); - } - } - } - } -}); - -// node_modules/js-tokens/index.js -var require_js_tokens = __commonJS({ - "node_modules/js-tokens/index.js"(exports) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g; - exports.matchToToken = function(match) { - var token2 = { type: "invalid", value: match[0], closed: void 0 }; - if (match[1]) token2.type = "string", token2.closed = !!(match[3] || match[4]); - else if (match[5]) token2.type = "comment"; - else if (match[6]) token2.type = "comment", token2.closed = !!match[7]; - else if (match[8]) token2.type = "regex"; - else if (match[9]) token2.type = "number"; - else if (match[10]) token2.type = "name"; - else if (match[11]) token2.type = "punctuator"; - else if (match[12]) token2.type = "whitespace"; - return token2; - }; - } -}); - -// node_modules/@babel/helper-validator-identifier/lib/identifier.js -var require_identifier = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isIdentifierChar = isIdentifierChar; - exports.isIdentifierName = isIdentifierName; - exports.isIdentifierStart = isIdentifierStart; - var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC"; - var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65"; - var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); - var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); - nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; - var astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 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, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191]; - var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 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, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; - function isInAstralSet(code, set2) { - let pos2 = 65536; - for (let i = 0, length = set2.length; i < length; i += 2) { - pos2 += set2[i]; - if (pos2 > code) return false; - pos2 += set2[i + 1]; - if (pos2 >= code) return true; - } - return false; - } - function isIdentifierStart(code) { - if (code < 65) return code === 36; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 65535) { - return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes); - } - function isIdentifierChar(code) { - if (code < 48) return code === 36; - if (code < 58) return true; - if (code < 65) return false; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 65535) { - return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); - } - function isIdentifierName(name) { - let isFirst = true; - for (let i = 0; i < name.length; i++) { - let cp = name.charCodeAt(i); - if ((cp & 64512) === 55296 && i + 1 < name.length) { - const trail = name.charCodeAt(++i); - if ((trail & 64512) === 56320) { - cp = 65536 + ((cp & 1023) << 10) + (trail & 1023); - } - } - if (isFirst) { - isFirst = false; - if (!isIdentifierStart(cp)) { - return false; - } - } else if (!isIdentifierChar(cp)) { - return false; - } - } - return !isFirst; - } - } -}); - -// node_modules/@babel/helper-validator-identifier/lib/keyword.js -var require_keyword = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.isKeyword = isKeyword; - exports.isReservedWord = isReservedWord; - exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; - exports.isStrictBindReservedWord = isStrictBindReservedWord; - exports.isStrictReservedWord = isStrictReservedWord; - var reservedWords = { - keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], - strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], - strictBind: ["eval", "arguments"] - }; - var keywords = new Set(reservedWords.keyword); - var reservedWordsStrictSet = new Set(reservedWords.strict); - var reservedWordsStrictBindSet = new Set(reservedWords.strictBind); - function isReservedWord(word, inModule) { - return inModule && word === "await" || word === "enum"; - } - function isStrictReservedWord(word, inModule) { - return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); - } - function isStrictBindOnlyReservedWord(word) { - return reservedWordsStrictBindSet.has(word); - } - function isStrictBindReservedWord(word, inModule) { - return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); - } - function isKeyword(word) { - return keywords.has(word); - } - } -}); - -// node_modules/@babel/helper-validator-identifier/lib/index.js -var require_lib = __commonJS({ - "node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "isIdentifierChar", { - enumerable: true, - get: function() { - return _identifier.isIdentifierChar; - } - }); - Object.defineProperty(exports, "isIdentifierName", { - enumerable: true, - get: function() { - return _identifier.isIdentifierName; - } - }); - Object.defineProperty(exports, "isIdentifierStart", { - enumerable: true, - get: function() { - return _identifier.isIdentifierStart; - } - }); - Object.defineProperty(exports, "isKeyword", { - enumerable: true, - get: function() { - return _keyword.isKeyword; - } - }); - Object.defineProperty(exports, "isReservedWord", { - enumerable: true, - get: function() { - return _keyword.isReservedWord; - } - }); - Object.defineProperty(exports, "isStrictBindOnlyReservedWord", { - enumerable: true, - get: function() { - return _keyword.isStrictBindOnlyReservedWord; - } - }); - Object.defineProperty(exports, "isStrictBindReservedWord", { - enumerable: true, - get: function() { - return _keyword.isStrictBindReservedWord; - } - }); - Object.defineProperty(exports, "isStrictReservedWord", { - enumerable: true, - get: function() { - return _keyword.isStrictReservedWord; - } - }); - var _identifier = require_identifier(); - var _keyword = require_keyword(); - } -}); - -// node_modules/picocolors/picocolors.js -var require_picocolors = __commonJS({ - "node_modules/picocolors/picocolors.js"(exports, module) { - var argv = process.argv || []; - var env2 = process.env; - var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || __require != null && __require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2); - var formatter = (open, close, replace = open) => (input) => { - let string = "" + input; - let index = string.indexOf(close, open.length); - return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close; - }; - var replaceClose = (string, close, replace, index) => { - let result = ""; - let cursor2 = 0; - do { - result += string.substring(cursor2, index) + replace; - cursor2 = index + close.length; - index = string.indexOf(close, cursor2); - } while (~index); - return result + string.substring(cursor2); - }; - var createColors = (enabled = isColorSupported) => { - let init = enabled ? formatter : () => String; - return { - isColorSupported: enabled, - reset: init("\x1B[0m", "\x1B[0m"), - bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"), - dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"), - italic: init("\x1B[3m", "\x1B[23m"), - underline: init("\x1B[4m", "\x1B[24m"), - inverse: init("\x1B[7m", "\x1B[27m"), - hidden: init("\x1B[8m", "\x1B[28m"), - strikethrough: init("\x1B[9m", "\x1B[29m"), - black: init("\x1B[30m", "\x1B[39m"), - red: init("\x1B[31m", "\x1B[39m"), - green: init("\x1B[32m", "\x1B[39m"), - yellow: init("\x1B[33m", "\x1B[39m"), - blue: init("\x1B[34m", "\x1B[39m"), - magenta: init("\x1B[35m", "\x1B[39m"), - cyan: init("\x1B[36m", "\x1B[39m"), - white: init("\x1B[37m", "\x1B[39m"), - gray: init("\x1B[90m", "\x1B[39m"), - bgBlack: init("\x1B[40m", "\x1B[49m"), - bgRed: init("\x1B[41m", "\x1B[49m"), - bgGreen: init("\x1B[42m", "\x1B[49m"), - bgYellow: init("\x1B[43m", "\x1B[49m"), - bgBlue: init("\x1B[44m", "\x1B[49m"), - bgMagenta: init("\x1B[45m", "\x1B[49m"), - bgCyan: init("\x1B[46m", "\x1B[49m"), - bgWhite: init("\x1B[47m", "\x1B[49m") - }; - }; - module.exports = createColors(); - module.exports.createColors = createColors; - } -}); - -// node_modules/@babel/highlight/lib/index.js -var require_lib2 = __commonJS({ - "node_modules/@babel/highlight/lib/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = highlight; - exports.shouldHighlight = shouldHighlight; - var _jsTokens = require_js_tokens(); - var _helperValidatorIdentifier = require_lib(); - var _picocolors = _interopRequireWildcard(require_picocolors(), true); - function _getRequireWildcardCache(e) { - if ("function" != typeof WeakMap) return null; - var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache = function(e2) { - return e2 ? t : r; - })(e); - } - function _interopRequireWildcard(e, r) { - if (!r && e && e.__esModule) return e; - if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; - var t = _getRequireWildcardCache(r); - if (t && t.has(e)) return t.get(e); - var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { - var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; - i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; - } - return n.default = e, t && t.set(e, n), n; - } - var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default; - var compose = (f, g) => (v) => f(g(v)); - var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); - function getDefs(colors2) { - return { - keyword: colors2.cyan, - capitalized: colors2.yellow, - jsxIdentifier: colors2.yellow, - punctuator: colors2.yellow, - number: colors2.magenta, - string: colors2.green, - regex: colors2.magenta, - comment: colors2.gray, - invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold) - }; - } - var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; - var BRACKET = /^[()[\]{}]$/; - var tokenize2; - { - const JSX_TAG = /^[a-z][\w-]*$/i; - const getTokenType = function(token2, offset, text) { - if (token2.type === "name") { - if ((0, _helperValidatorIdentifier.isKeyword)(token2.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token2.value, true) || sometimesKeywords.has(token2.value)) { - return "keyword"; - } - if (JSX_TAG.test(token2.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === " colorize(str2)).join("\n"); - } else { - highlighted += value; - } - } - return highlighted; - } - function shouldHighlight(options8) { - return colors.isColorSupported || options8.forceColor; - } - var pcWithForcedColor = void 0; - function getColors(forceColor) { - if (forceColor) { - var _pcWithForcedColor; - (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true); - return pcWithForcedColor; - } - return colors; - } - function highlight(code, options8 = {}) { - if (code !== "" && shouldHighlight(options8)) { - const defs = getDefs(getColors(options8.forceColor)); - return highlightTokens(defs, code); - } else { - return code; - } - } - { - let chalk2, chalkWithForcedColor; - exports.getChalk = ({ - forceColor - }) => { - var _chalk; - (_chalk = chalk2) != null ? _chalk : chalk2 = (init_source(), __toCommonJS(source_exports)); - if (forceColor) { - var _chalkWithForcedColor; - (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({ - enabled: true, - level: 1 - }); - return chalkWithForcedColor; - } - return chalk2; - }; - } - } -}); - -// node_modules/@babel/code-frame/lib/index.js -var require_lib3 = __commonJS({ - "node_modules/@babel/code-frame/lib/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.codeFrameColumns = codeFrameColumns3; - exports.default = _default2; - var _highlight = require_lib2(); - var _picocolors = _interopRequireWildcard(require_picocolors(), true); - function _getRequireWildcardCache(e) { - if ("function" != typeof WeakMap) return null; - var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(); - return (_getRequireWildcardCache = function(e2) { - return e2 ? t : r; - })(e); - } - function _interopRequireWildcard(e, r) { - if (!r && e && e.__esModule) return e; - if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; - var t = _getRequireWildcardCache(r); - if (t && t.has(e)) return t.get(e); - var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { - var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; - i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; - } - return n.default = e, t && t.set(e, n), n; - } - var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default; - var compose = (f, g) => (v) => f(g(v)); - var pcWithForcedColor = void 0; - function getColors(forceColor) { - if (forceColor) { - var _pcWithForcedColor; - (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true); - return pcWithForcedColor; - } - return colors; - } - var deprecationWarningShown = false; - function getDefs(colors2) { - return { - gutter: colors2.gray, - marker: compose(colors2.red, colors2.bold), - message: compose(colors2.red, colors2.bold) - }; - } - var NEWLINE = /\r\n|[\n\r\u2028\u2029]/; - function getMarkerLines(loc, source2, opts) { - const startLoc = Object.assign({ - column: 0, - line: -1 - }, loc.start); - const endLoc = Object.assign({}, startLoc, loc.end); - const { - linesAbove = 2, - linesBelow = 3 - } = opts || {}; - const startLine = startLoc.line; - const startColumn = startLoc.column; - const endLine = endLoc.line; - const endColumn = endLoc.column; - let start = Math.max(startLine - (linesAbove + 1), 0); - let end = Math.min(source2.length, endLine + linesBelow); - if (startLine === -1) { - start = 0; - } - if (endLine === -1) { - end = source2.length; - } - const lineDiff2 = endLine - startLine; - const markerLines = {}; - if (lineDiff2) { - for (let i = 0; i <= lineDiff2; i++) { - const lineNumber = i + startLine; - if (!startColumn) { - markerLines[lineNumber] = true; - } else if (i === 0) { - const sourceLength = source2[lineNumber - 1].length; - markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; - } else if (i === lineDiff2) { - markerLines[lineNumber] = [0, endColumn]; - } else { - const sourceLength = source2[lineNumber - i].length; - markerLines[lineNumber] = [0, sourceLength]; - } - } - } else { - if (startColumn === endColumn) { - if (startColumn) { - markerLines[startLine] = [startColumn, 0]; - } else { - markerLines[startLine] = true; - } - } else { - markerLines[startLine] = [startColumn, endColumn - startColumn]; - } - } - return { - start, - end, - markerLines - }; - } - function codeFrameColumns3(rawLines, loc, opts = {}) { - const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); - const colors2 = getColors(opts.forceColor); - const defs = getDefs(colors2); - const maybeHighlight = (fmt, string) => { - return highlighted ? fmt(string) : string; - }; - const lines = rawLines.split(NEWLINE); - const { - start, - end, - markerLines - } = getMarkerLines(loc, lines, opts); - const hasColumns = loc.start && typeof loc.start.column === "number"; - const numberMaxWidth = String(end).length; - const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; - let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line3, index) => { - const number = start + 1 + index; - const paddedNumber = ` ${number}`.slice(-numberMaxWidth); - const gutter = ` ${paddedNumber} |`; - const hasMarker = markerLines[number]; - const lastMarkerLine = !markerLines[number + 1]; - if (hasMarker) { - let markerLine = ""; - if (Array.isArray(hasMarker)) { - const markerSpacing = line3.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); - const numberOfMarkers = hasMarker[1] || 1; - markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); - if (lastMarkerLine && opts.message) { - markerLine += " " + maybeHighlight(defs.message, opts.message); - } - } - return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line3.length > 0 ? ` ${line3}` : "", markerLine].join(""); - } else { - return ` ${maybeHighlight(defs.gutter, gutter)}${line3.length > 0 ? ` ${line3}` : ""}`; - } - }).join("\n"); - if (opts.message && !hasColumns) { - frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message} -${frame}`; - } - if (highlighted) { - return colors2.reset(frame); - } else { - return frame; - } - } - function _default2(rawLines, lineNumber, colNumber, opts = {}) { - if (!deprecationWarningShown) { - deprecationWarningShown = true; - const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; - if (process.emitWarning) { - process.emitWarning(message, "DeprecationWarning"); - } else { - const deprecationError = new Error(message); - deprecationError.name = "DeprecationWarning"; - console.warn(new Error(message)); - } - } - colNumber = Math.max(colNumber, 0); - const location = { - start: { - column: colNumber, - line: lineNumber - } - }; - return codeFrameColumns3(rawLines, location, opts); - } - } -}); - -// node_modules/ignore/index.js -var require_ignore = __commonJS({ - "node_modules/ignore/index.js"(exports, module) { - function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; - } - var EMPTY = ""; - var SPACE = " "; - var ESCAPE = "\\"; - var REGEX_TEST_BLANK_LINE = /^\s+$/; - var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; - var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; - var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; - var REGEX_SPLITALL_CRLF = /\r?\n/g; - var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; - var SLASH = "/"; - var TMP_KEY_IGNORE = "node-ignore"; - if (typeof Symbol !== "undefined") { - TMP_KEY_IGNORE = Symbol.for("node-ignore"); - } - var KEY_IGNORE = TMP_KEY_IGNORE; - var define = (object, key2, value) => Object.defineProperty(object, key2, { value }); - var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; - var RETURN_FALSE = () => false; - var sanitizeRange = (range) => range.replace( - REGEX_REGEXP_RANGE, - (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY - ); - var cleanRangeBackSlash = (slashes) => { - const { length } = slashes; - return slashes.slice(0, length - length % 2); - }; - var REPLACERS = [ - [ - // remove BOM - // TODO: - // Other similar zero-width characters? - /^\uFEFF/, - () => EMPTY - ], - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a \ ) -> (a ) - /\\?\s+$/, - (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY - ], - // replace (\ ) with ' ' - [ - /\\\s/g, - () => SPACE ], // Escape metacharacters // which is written down by users but means special for regular expressions. @@ -11241,7 +9048,7 @@ var require_ignore = __commonJS({ let source2 = regexCache[pattern]; if (!source2) { source2 = REPLACERS.reduce( - (prev, current) => prev.replace(current[0], current[1].bind(pattern)), + (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)), pattern ); regexCache[pattern] = source2; @@ -11285,818 +9092,1609 @@ var require_ignore = __commonJS({ TypeError ); } - if (!path13) { - return doThrow(`path must not be empty`, TypeError); + if (!path13) { + return doThrow(`path must not be empty`, TypeError); + } + if (checkPath.isNotRelative(path13)) { + const r = "`path.relative()`d"; + return doThrow( + `path should be a ${r} string, but got "${originalPath}"`, + RangeError + ); + } + return true; + }; + var isNotRelative = (path13) => REGEX_TEST_INVALID_PATH.test(path13); + checkPath.isNotRelative = isNotRelative; + checkPath.convert = (p) => p; + var Ignore = class { + constructor({ + ignorecase = true, + ignoreCase = ignorecase, + allowRelativePaths = false + } = {}) { + define(this, KEY_IGNORE, true); + this._rules = []; + this._ignoreCase = ignoreCase; + this._allowRelativePaths = allowRelativePaths; + this._initCache(); + } + _initCache() { + this._ignoreCache = /* @__PURE__ */ Object.create(null); + this._testCache = /* @__PURE__ */ Object.create(null); + } + _addPattern(pattern) { + if (pattern && pattern[KEY_IGNORE]) { + this._rules = this._rules.concat(pattern._rules); + this._added = true; + return; + } + if (checkPattern(pattern)) { + const rule = createRule(pattern, this._ignoreCase); + this._added = true; + this._rules.push(rule); + } + } + // @param {Array | string | Ignore} pattern + add(pattern) { + this._added = false; + makeArray( + isString(pattern) ? splitPattern(pattern) : pattern + ).forEach(this._addPattern, this); + if (this._added) { + this._initCache(); + } + return this; + } + // legacy + addPattern(pattern) { + return this.add(pattern); + } + // | ignored : unignored + // negative | 0:0 | 0:1 | 1:0 | 1:1 + // -------- | ------- | ------- | ------- | -------- + // 0 | TEST | TEST | SKIP | X + // 1 | TESTIF | SKIP | TEST | X + // - SKIP: always skip + // - TEST: always test + // - TESTIF: only test if checkUnignored + // - X: that never happen + // @param {boolean} whether should check if the path is unignored, + // setting `checkUnignored` to `false` could reduce additional + // path matching. + // @returns {TestResult} true if a file is ignored + _testOne(path13, checkUnignored) { + let ignored = false; + let unignored = false; + this._rules.forEach((rule) => { + const { negative } = rule; + if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { + return; + } + const matched = rule.regex.test(path13); + if (matched) { + ignored = !negative; + unignored = negative; + } + }); + return { + ignored, + unignored + }; + } + // @returns {TestResult} + _test(originalPath, cache3, checkUnignored, slices) { + const path13 = originalPath && checkPath.convert(originalPath); + checkPath( + path13, + originalPath, + this._allowRelativePaths ? RETURN_FALSE : throwError2 + ); + return this._t(path13, cache3, checkUnignored, slices); + } + _t(path13, cache3, checkUnignored, slices) { + if (path13 in cache3) { + return cache3[path13]; + } + if (!slices) { + slices = path13.split(SLASH); + } + slices.pop(); + if (!slices.length) { + return cache3[path13] = this._testOne(path13, checkUnignored); + } + const parent = this._t( + slices.join(SLASH) + SLASH, + cache3, + checkUnignored, + slices + ); + return cache3[path13] = parent.ignored ? parent : this._testOne(path13, checkUnignored); + } + ignores(path13) { + return this._test(path13, this._ignoreCache, false).ignored; + } + createFilter() { + return (path13) => !this.ignores(path13); + } + filter(paths) { + return makeArray(paths).filter(this.createFilter()); + } + // @returns {TestResult} + test(path13) { + return this._test(path13, this._testCache, true); + } + }; + var factory = (options8) => new Ignore(options8); + var isPathValid = (path13) => checkPath(path13 && checkPath.convert(path13), path13, RETURN_FALSE); + factory.isPathValid = isPathValid; + factory.default = factory; + module.exports = factory; + if ( + // Detect `process` so that it can run in browsers. + typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") + ) { + const makePosix = (str2) => /^\\\\\?\\/.test(str2) || /["<>|\u0000-\u001F]+/u.test(str2) ? str2 : str2.replace(/\\/g, "/"); + checkPath.convert = makePosix; + const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; + checkPath.isNotRelative = (path13) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path13) || isNotRelative(path13); + } + } +}); + +// node_modules/n-readlines/readlines.js +var require_readlines = __commonJS({ + "node_modules/n-readlines/readlines.js"(exports, module) { + "use strict"; + var fs7 = __require("fs"); + var LineByLine = class { + constructor(file, options8) { + options8 = options8 || {}; + if (!options8.readChunk) options8.readChunk = 1024; + if (!options8.newLineCharacter) { + options8.newLineCharacter = 10; + } else { + options8.newLineCharacter = options8.newLineCharacter.charCodeAt(0); + } + if (typeof file === "number") { + this.fd = file; + } else { + this.fd = fs7.openSync(file, "r"); + } + this.options = options8; + this.newLineCharacter = options8.newLineCharacter; + this.reset(); + } + _searchInBuffer(buffer2, hexNeedle) { + let found = -1; + for (let i = 0; i <= buffer2.length; i++) { + let b_byte = buffer2[i]; + if (b_byte === hexNeedle) { + found = i; + break; + } + } + return found; + } + reset() { + this.eofReached = false; + this.linesCache = []; + this.fdPosition = 0; + } + close() { + fs7.closeSync(this.fd); + this.fd = null; + } + _extractLines(buffer2) { + let line3; + const lines = []; + let bufferPosition = 0; + let lastNewLineBufferPosition = 0; + while (true) { + let bufferPositionValue = buffer2[bufferPosition++]; + if (bufferPositionValue === this.newLineCharacter) { + line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition); + lines.push(line3); + lastNewLineBufferPosition = bufferPosition; + } else if (bufferPositionValue === void 0) { + break; + } + } + let leftovers = buffer2.slice(lastNewLineBufferPosition, bufferPosition); + if (leftovers.length) { + lines.push(leftovers); + } + return lines; + } + _readChunk(lineLeftovers) { + let totalBytesRead = 0; + let bytesRead; + const buffers = []; + do { + const readBuffer = Buffer.alloc(this.options.readChunk); + bytesRead = fs7.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition); + totalBytesRead = totalBytesRead + bytesRead; + this.fdPosition = this.fdPosition + bytesRead; + buffers.push(readBuffer); + } while (bytesRead && this._searchInBuffer(buffers[buffers.length - 1], this.options.newLineCharacter) === -1); + let bufferData = Buffer.concat(buffers); + if (bytesRead < this.options.readChunk) { + this.eofReached = true; + bufferData = bufferData.slice(0, totalBytesRead); + } + if (totalBytesRead) { + this.linesCache = this._extractLines(bufferData); + if (lineLeftovers) { + this.linesCache[0] = Buffer.concat([lineLeftovers, this.linesCache[0]]); + } + } + return totalBytesRead; } - if (checkPath.isNotRelative(path13)) { - const r = "`path.relative()`d"; - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError - ); + next() { + if (!this.fd) return false; + let line3 = false; + if (this.eofReached && this.linesCache.length === 0) { + return line3; + } + let bytesRead; + if (!this.linesCache.length) { + bytesRead = this._readChunk(); + } + if (this.linesCache.length) { + line3 = this.linesCache.shift(); + const lastLineCharacter = line3[line3.length - 1]; + if (lastLineCharacter !== this.newLineCharacter) { + bytesRead = this._readChunk(line3); + if (bytesRead) { + line3 = this.linesCache.shift(); + } + } + } + if (this.eofReached && this.linesCache.length === 0) { + this.close(); + } + if (line3 && line3[line3.length - 1] === this.newLineCharacter) { + line3 = line3.slice(0, line3.length - 1); + } + return line3; } - return true; }; - var isNotRelative = (path13) => REGEX_TEST_INVALID_PATH.test(path13); - checkPath.isNotRelative = isNotRelative; - checkPath.convert = (p) => p; - var Ignore = class { - constructor({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _initCache() { - this._ignoreCache = /* @__PURE__ */ Object.create(null); - this._testCache = /* @__PURE__ */ Object.create(null); + module.exports = LineByLine; + } +}); + +// src/index.js +var src_exports = {}; +__export(src_exports, { + __debug: () => debugApis, + __internal: () => sharedWithCli, + check: () => check, + clearConfigCache: () => clearCache3, + doc: () => doc, + format: () => format2, + formatWithCursor: () => formatWithCursor2, + getFileInfo: () => getFileInfo2, + getSupportInfo: () => getSupportInfo2, + resolveConfig: () => resolveConfig, + resolveConfigFile: () => resolveConfigFile, + util: () => public_exports, + version: () => version_evaluate_default +}); + +// node_modules/diff/lib/index.mjs +function Diff() { +} +Diff.prototype = { + diff: function diff(oldString, newString) { + var _options$timeout; + var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var callback = options8.callback; + if (typeof options8 === "function") { + callback = options8; + options8 = {}; + } + var self = this; + function done(value) { + value = self.postProcess(value, options8); + if (callback) { + setTimeout(function() { + callback(value); + }, 0); + return true; + } else { + return value; } - _addPattern(pattern) { - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; - return; + } + oldString = this.castInput(oldString, options8); + newString = this.castInput(newString, options8); + oldString = this.removeEmpty(this.tokenize(oldString, options8)); + newString = this.removeEmpty(this.tokenize(newString, options8)); + var newLen = newString.length, oldLen = oldString.length; + var editLength = 1; + var maxEditLength = newLen + oldLen; + if (options8.maxEditLength != null) { + maxEditLength = Math.min(maxEditLength, options8.maxEditLength); + } + var maxExecutionTime = (_options$timeout = options8.timeout) !== null && _options$timeout !== void 0 ? _options$timeout : Infinity; + var abortAfterTimestamp = Date.now() + maxExecutionTime; + var bestPath = [{ + oldPos: -1, + lastComponent: void 0 + }]; + var newPos = this.extractCommon(bestPath[0], newString, oldString, 0, options8); + if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) { + return done(buildValues(self, bestPath[0].lastComponent, newString, oldString, self.useLongestToken)); + } + var minDiagonalToConsider = -Infinity, maxDiagonalToConsider = Infinity; + function execEditLength() { + for (var diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) { + var basePath = void 0; + var removePath = bestPath[diagonalPath - 1], addPath = bestPath[diagonalPath + 1]; + if (removePath) { + bestPath[diagonalPath - 1] = void 0; } - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); + var canAdd = false; + if (addPath) { + var addPathNewPos = addPath.oldPos - diagonalPath; + canAdd = addPath && 0 <= addPathNewPos && addPathNewPos < newLen; } - } - // @param {Array | string | Ignore} pattern - add(pattern) { - this._added = false; - makeArray( - isString(pattern) ? splitPattern(pattern) : pattern - ).forEach(this._addPattern, this); - if (this._added) { - this._initCache(); + var canRemove = removePath && removePath.oldPos + 1 < oldLen; + if (!canAdd && !canRemove) { + bestPath[diagonalPath] = void 0; + continue; + } + if (!canRemove || canAdd && removePath.oldPos < addPath.oldPos) { + basePath = self.addToPath(addPath, true, false, 0, options8); + } else { + basePath = self.addToPath(removePath, false, true, 1, options8); + } + newPos = self.extractCommon(basePath, newString, oldString, diagonalPath, options8); + if (basePath.oldPos + 1 >= oldLen && newPos + 1 >= newLen) { + return done(buildValues(self, basePath.lastComponent, newString, oldString, self.useLongestToken)); + } else { + bestPath[diagonalPath] = basePath; + if (basePath.oldPos + 1 >= oldLen) { + maxDiagonalToConsider = Math.min(maxDiagonalToConsider, diagonalPath - 1); + } + if (newPos + 1 >= newLen) { + minDiagonalToConsider = Math.max(minDiagonalToConsider, diagonalPath + 1); + } } - return this; - } - // legacy - addPattern(pattern) { - return this.add(pattern); } - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - // @returns {TestResult} true if a file is ignored - _testOne(path13, checkUnignored) { - let ignored = false; - let unignored = false; - this._rules.forEach((rule) => { - const { negative } = rule; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; + editLength++; + } + if (callback) { + (function exec() { + setTimeout(function() { + if (editLength > maxEditLength || Date.now() > abortAfterTimestamp) { + return callback(); } - const matched = rule.regex.test(path13); - if (matched) { - ignored = !negative; - unignored = negative; + if (!execEditLength()) { + exec(); } - }); - return { - ignored, - unignored + }, 0); + })(); + } else { + while (editLength <= maxEditLength && Date.now() <= abortAfterTimestamp) { + var ret = execEditLength(); + if (ret) { + return ret; + } + } + } + }, + addToPath: function addToPath(path13, added, removed, oldPosInc, options8) { + var last = path13.lastComponent; + if (last && !options8.oneChangePerToken && last.added === added && last.removed === removed) { + return { + oldPos: path13.oldPos + oldPosInc, + lastComponent: { + count: last.count + 1, + added, + removed, + previousComponent: last.previousComponent + } + }; + } else { + return { + oldPos: path13.oldPos + oldPosInc, + lastComponent: { + count: 1, + added, + removed, + previousComponent: last + } + }; + } + }, + extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath, options8) { + var newLen = newString.length, oldLen = oldString.length, oldPos = basePath.oldPos, newPos = oldPos - diagonalPath, commonCount = 0; + while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(oldString[oldPos + 1], newString[newPos + 1], options8)) { + newPos++; + oldPos++; + commonCount++; + if (options8.oneChangePerToken) { + basePath.lastComponent = { + count: 1, + previousComponent: basePath.lastComponent, + added: false, + removed: false }; } - // @returns {TestResult} - _test(originalPath, cache3, checkUnignored, slices) { - const path13 = originalPath && checkPath.convert(originalPath); - checkPath( - path13, - originalPath, - this._allowRelativePaths ? RETURN_FALSE : throwError2 - ); - return this._t(path13, cache3, checkUnignored, slices); + } + if (commonCount && !options8.oneChangePerToken) { + basePath.lastComponent = { + count: commonCount, + previousComponent: basePath.lastComponent, + added: false, + removed: false + }; + } + basePath.oldPos = oldPos; + return newPos; + }, + equals: function equals(left, right, options8) { + if (options8.comparator) { + return options8.comparator(left, right); + } else { + return left === right || options8.ignoreCase && left.toLowerCase() === right.toLowerCase(); + } + }, + removeEmpty: function removeEmpty(array2) { + var ret = []; + for (var i = 0; i < array2.length; i++) { + if (array2[i]) { + ret.push(array2[i]); } - _t(path13, cache3, checkUnignored, slices) { - if (path13 in cache3) { - return cache3[path13]; - } - if (!slices) { - slices = path13.split(SLASH); - } - slices.pop(); - if (!slices.length) { - return cache3[path13] = this._testOne(path13, checkUnignored); - } - const parent = this._t( - slices.join(SLASH) + SLASH, - cache3, - checkUnignored, - slices - ); - return cache3[path13] = parent.ignored ? parent : this._testOne(path13, checkUnignored); + } + return ret; + }, + castInput: function castInput(value) { + return value; + }, + tokenize: function tokenize(value) { + return Array.from(value); + }, + join: function join(chars) { + return chars.join(""); + }, + postProcess: function postProcess(changeObjects) { + return changeObjects; + } +}; +function buildValues(diff2, lastComponent, newString, oldString, useLongestToken) { + var components = []; + var nextComponent; + while (lastComponent) { + components.push(lastComponent); + nextComponent = lastComponent.previousComponent; + delete lastComponent.previousComponent; + lastComponent = nextComponent; + } + components.reverse(); + var componentPos = 0, componentLen = components.length, newPos = 0, oldPos = 0; + for (; componentPos < componentLen; componentPos++) { + var component = components[componentPos]; + if (!component.removed) { + if (!component.added && useLongestToken) { + var value = newString.slice(newPos, newPos + component.count); + value = value.map(function(value2, i) { + var oldValue = oldString[oldPos + i]; + return oldValue.length > value2.length ? oldValue : value2; + }); + component.value = diff2.join(value); + } else { + component.value = diff2.join(newString.slice(newPos, newPos + component.count)); } - ignores(path13) { - return this._test(path13, this._ignoreCache, false).ignored; + newPos += component.count; + if (!component.added) { + oldPos += component.count; } - createFilter() { - return (path13) => !this.ignores(path13); + } else { + component.value = diff2.join(oldString.slice(oldPos, oldPos + component.count)); + oldPos += component.count; + } + } + return components; +} +var characterDiff = new Diff(); +function longestCommonPrefix(str1, str2) { + var i; + for (i = 0; i < str1.length && i < str2.length; i++) { + if (str1[i] != str2[i]) { + return str1.slice(0, i); + } + } + return str1.slice(0, i); +} +function longestCommonSuffix(str1, str2) { + var i; + if (!str1 || !str2 || str1[str1.length - 1] != str2[str2.length - 1]) { + return ""; + } + for (i = 0; i < str1.length && i < str2.length; i++) { + if (str1[str1.length - (i + 1)] != str2[str2.length - (i + 1)]) { + return str1.slice(-i); + } + } + return str1.slice(-i); +} +function replacePrefix(string, oldPrefix, newPrefix) { + if (string.slice(0, oldPrefix.length) != oldPrefix) { + throw Error("string ".concat(JSON.stringify(string), " doesn't start with prefix ").concat(JSON.stringify(oldPrefix), "; this is a bug")); + } + return newPrefix + string.slice(oldPrefix.length); +} +function replaceSuffix(string, oldSuffix, newSuffix) { + if (!oldSuffix) { + return string + newSuffix; + } + if (string.slice(-oldSuffix.length) != oldSuffix) { + throw Error("string ".concat(JSON.stringify(string), " doesn't end with suffix ").concat(JSON.stringify(oldSuffix), "; this is a bug")); + } + return string.slice(0, -oldSuffix.length) + newSuffix; +} +function removePrefix(string, oldPrefix) { + return replacePrefix(string, oldPrefix, ""); +} +function removeSuffix(string, oldSuffix) { + return replaceSuffix(string, oldSuffix, ""); +} +function maximumOverlap(string1, string2) { + return string2.slice(0, overlapCount(string1, string2)); +} +function overlapCount(a, b) { + var startA = 0; + if (a.length > b.length) { + startA = a.length - b.length; + } + var endB = b.length; + if (a.length < b.length) { + endB = a.length; + } + var map2 = Array(endB); + var k = 0; + map2[0] = 0; + for (var j = 1; j < endB; j++) { + if (b[j] == b[k]) { + map2[j] = map2[k]; + } else { + map2[j] = k; + } + while (k > 0 && b[j] != b[k]) { + k = map2[k]; + } + if (b[j] == b[k]) { + k++; + } + } + k = 0; + for (var i = startA; i < a.length; i++) { + while (k > 0 && a[i] != b[k]) { + k = map2[k]; + } + if (a[i] == b[k]) { + k++; + } + } + return k; +} +var extendedWordChars = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}"; +var tokenizeIncludingWhitespace = new RegExp("[".concat(extendedWordChars, "]+|\\s+|[^").concat(extendedWordChars, "]"), "ug"); +var wordDiff = new Diff(); +wordDiff.equals = function(left, right, options8) { + if (options8.ignoreCase) { + left = left.toLowerCase(); + right = right.toLowerCase(); + } + return left.trim() === right.trim(); +}; +wordDiff.tokenize = function(value) { + var options8 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + var parts; + if (options8.intlSegmenter) { + if (options8.intlSegmenter.resolvedOptions().granularity != "word") { + throw new Error('The segmenter passed must have a granularity of "word"'); + } + parts = Array.from(options8.intlSegmenter.segment(value), function(segment) { + return segment.segment; + }); + } else { + parts = value.match(tokenizeIncludingWhitespace) || []; + } + var tokens = []; + var prevPart = null; + parts.forEach(function(part) { + if (/\s/.test(part)) { + if (prevPart == null) { + tokens.push(part); + } else { + tokens.push(tokens.pop() + part); } - filter(paths) { - return makeArray(paths).filter(this.createFilter()); + } else if (/\s/.test(prevPart)) { + if (tokens[tokens.length - 1] == prevPart) { + tokens.push(tokens.pop() + part); + } else { + tokens.push(prevPart + part); } - // @returns {TestResult} - test(path13) { - return this._test(path13, this._testCache, true); + } else { + tokens.push(part); + } + prevPart = part; + }); + return tokens; +}; +wordDiff.join = function(tokens) { + return tokens.map(function(token2, i) { + if (i == 0) { + return token2; + } else { + return token2.replace(/^\s+/, ""); + } + }).join(""); +}; +wordDiff.postProcess = function(changes, options8) { + if (!changes || options8.oneChangePerToken) { + return changes; + } + var lastKeep = null; + var insertion = null; + var deletion = null; + changes.forEach(function(change) { + if (change.added) { + insertion = change; + } else if (change.removed) { + deletion = change; + } else { + if (insertion || deletion) { + dedupeWhitespaceInChangeObjects(lastKeep, deletion, insertion, change); } - }; - var factory = (options8) => new Ignore(options8); - var isPathValid = (path13) => checkPath(path13 && checkPath.convert(path13), path13, RETURN_FALSE); - factory.isPathValid = isPathValid; - factory.default = factory; - module.exports = factory; - if ( - // Detect `process` so that it can run in browsers. - typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") - ) { - const makePosix = (str2) => /^\\\\\?\\/.test(str2) || /["<>|\u0000-\u001F]+/u.test(str2) ? str2 : str2.replace(/\\/g, "/"); - checkPath.convert = makePosix; - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = (path13) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path13) || isNotRelative(path13); + lastKeep = change; + insertion = null; + deletion = null; + } + }); + if (insertion || deletion) { + dedupeWhitespaceInChangeObjects(lastKeep, deletion, insertion, null); + } + return changes; +}; +function dedupeWhitespaceInChangeObjects(startKeep, deletion, insertion, endKeep) { + if (deletion && insertion) { + var oldWsPrefix = deletion.value.match(/^\s*/)[0]; + var oldWsSuffix = deletion.value.match(/\s*$/)[0]; + var newWsPrefix = insertion.value.match(/^\s*/)[0]; + var newWsSuffix = insertion.value.match(/\s*$/)[0]; + if (startKeep) { + var commonWsPrefix = longestCommonPrefix(oldWsPrefix, newWsPrefix); + startKeep.value = replaceSuffix(startKeep.value, newWsPrefix, commonWsPrefix); + deletion.value = removePrefix(deletion.value, commonWsPrefix); + insertion.value = removePrefix(insertion.value, commonWsPrefix); + } + if (endKeep) { + var commonWsSuffix = longestCommonSuffix(oldWsSuffix, newWsSuffix); + endKeep.value = replacePrefix(endKeep.value, newWsSuffix, commonWsSuffix); + deletion.value = removeSuffix(deletion.value, commonWsSuffix); + insertion.value = removeSuffix(insertion.value, commonWsSuffix); + } + } else if (insertion) { + if (startKeep) { + insertion.value = insertion.value.replace(/^\s*/, ""); + } + if (endKeep) { + endKeep.value = endKeep.value.replace(/^\s*/, ""); + } + } else if (startKeep && endKeep) { + var newWsFull = endKeep.value.match(/^\s*/)[0], delWsStart = deletion.value.match(/^\s*/)[0], delWsEnd = deletion.value.match(/\s*$/)[0]; + var newWsStart = longestCommonPrefix(newWsFull, delWsStart); + deletion.value = removePrefix(deletion.value, newWsStart); + var newWsEnd = longestCommonSuffix(removePrefix(newWsFull, newWsStart), delWsEnd); + deletion.value = removeSuffix(deletion.value, newWsEnd); + endKeep.value = replacePrefix(endKeep.value, newWsFull, newWsEnd); + startKeep.value = replaceSuffix(startKeep.value, newWsFull, newWsFull.slice(0, newWsFull.length - newWsEnd.length)); + } else if (endKeep) { + var endKeepWsPrefix = endKeep.value.match(/^\s*/)[0]; + var deletionWsSuffix = deletion.value.match(/\s*$/)[0]; + var overlap = maximumOverlap(deletionWsSuffix, endKeepWsPrefix); + deletion.value = removeSuffix(deletion.value, overlap); + } else if (startKeep) { + var startKeepWsSuffix = startKeep.value.match(/\s*$/)[0]; + var deletionWsPrefix = deletion.value.match(/^\s*/)[0]; + var _overlap = maximumOverlap(startKeepWsSuffix, deletionWsPrefix); + deletion.value = removePrefix(deletion.value, _overlap); + } +} +var wordWithSpaceDiff = new Diff(); +wordWithSpaceDiff.tokenize = function(value) { + var regex = new RegExp("(\\r?\\n)|[".concat(extendedWordChars, "]+|[^\\S\\n\\r]+|[^").concat(extendedWordChars, "]"), "ug"); + return value.match(regex) || []; +}; +var lineDiff = new Diff(); +lineDiff.tokenize = function(value, options8) { + if (options8.stripTrailingCr) { + value = value.replace(/\r\n/g, "\n"); + } + var retLines = [], linesAndNewlines = value.split(/(\n|\r\n)/); + if (!linesAndNewlines[linesAndNewlines.length - 1]) { + linesAndNewlines.pop(); + } + for (var i = 0; i < linesAndNewlines.length; i++) { + var line3 = linesAndNewlines[i]; + if (i % 2 && !options8.newlineIsToken) { + retLines[retLines.length - 1] += line3; + } else { + retLines.push(line3); + } + } + return retLines; +}; +lineDiff.equals = function(left, right, options8) { + if (options8.ignoreWhitespace) { + if (!options8.newlineIsToken || !left.includes("\n")) { + left = left.trim(); + } + if (!options8.newlineIsToken || !right.includes("\n")) { + right = right.trim(); + } + } else if (options8.ignoreNewlineAtEof && !options8.newlineIsToken) { + if (left.endsWith("\n")) { + left = left.slice(0, -1); + } + if (right.endsWith("\n")) { + right = right.slice(0, -1); + } + } + return Diff.prototype.equals.call(this, left, right, options8); +}; +function diffLines(oldStr, newStr, callback) { + return lineDiff.diff(oldStr, newStr, callback); +} +var sentenceDiff = new Diff(); +sentenceDiff.tokenize = function(value) { + return value.split(/(\S.+?[.!?])(?=\s+|$)/); +}; +var cssDiff = new Diff(); +cssDiff.tokenize = function(value) { + return value.split(/([{}:;,]|\s+)/); +}; +function ownKeys(e, r) { + var t = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(e); + r && (o = o.filter(function(r2) { + return Object.getOwnPropertyDescriptor(e, r2).enumerable; + })), t.push.apply(t, o); + } + return t; +} +function _objectSpread2(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 ? ownKeys(Object(t), true).forEach(function(r2) { + _defineProperty(e, r2, t[r2]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) { + Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2)); + }); + } + return e; +} +function _toPrimitive(t, r) { + if ("object" != typeof t || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != typeof i) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); +} +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == typeof i ? i : i + ""; +} +function _typeof(o) { + "@babel/helpers - typeof"; + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) { + return typeof o2; + } : function(o2) { + return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; + }, _typeof(o); +} +function _defineProperty(obj, key2, value) { + key2 = _toPropertyKey(key2); + if (key2 in obj) { + Object.defineProperty(obj, key2, { + value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key2] = value; + } + return obj; +} +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); +} +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); +} +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); +} +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); +} +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; +} +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +var jsonDiff = new Diff(); +jsonDiff.useLongestToken = true; +jsonDiff.tokenize = lineDiff.tokenize; +jsonDiff.castInput = function(value, options8) { + var undefinedReplacement = options8.undefinedReplacement, _options$stringifyRep = options8.stringifyReplacer, stringifyReplacer = _options$stringifyRep === void 0 ? function(k, v) { + return typeof v === "undefined" ? undefinedReplacement : v; + } : _options$stringifyRep; + return typeof value === "string" ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, " "); +}; +jsonDiff.equals = function(left, right, options8) { + return Diff.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, "$1"), right.replace(/,([\r\n])/g, "$1"), options8); +}; +function canonicalize(obj, stack2, replacementStack, replacer, key2) { + stack2 = stack2 || []; + replacementStack = replacementStack || []; + if (replacer) { + obj = replacer(key2, obj); + } + var i; + for (i = 0; i < stack2.length; i += 1) { + if (stack2[i] === obj) { + return replacementStack[i]; } } -}); - -// node_modules/n-readlines/readlines.js -var require_readlines = __commonJS({ - "node_modules/n-readlines/readlines.js"(exports, module) { - "use strict"; - var fs7 = __require("fs"); - var LineByLine = class { - constructor(file, options8) { - options8 = options8 || {}; - if (!options8.readChunk) options8.readChunk = 1024; - if (!options8.newLineCharacter) { - options8.newLineCharacter = 10; - } else { - options8.newLineCharacter = options8.newLineCharacter.charCodeAt(0); - } - if (typeof file === "number") { - this.fd = file; - } else { - this.fd = fs7.openSync(file, "r"); - } - this.options = options8; - this.newLineCharacter = options8.newLineCharacter; - this.reset(); - } - _searchInBuffer(buffer2, hexNeedle) { - let found = -1; - for (let i = 0; i <= buffer2.length; i++) { - let b_byte = buffer2[i]; - if (b_byte === hexNeedle) { - found = i; - break; - } - } - return found; - } - reset() { - this.eofReached = false; - this.linesCache = []; - this.fdPosition = 0; - } - close() { - fs7.closeSync(this.fd); - this.fd = null; + var canonicalizedObj; + if ("[object Array]" === Object.prototype.toString.call(obj)) { + stack2.push(obj); + canonicalizedObj = new Array(obj.length); + replacementStack.push(canonicalizedObj); + for (i = 0; i < obj.length; i += 1) { + canonicalizedObj[i] = canonicalize(obj[i], stack2, replacementStack, replacer, key2); + } + stack2.pop(); + replacementStack.pop(); + return canonicalizedObj; + } + if (obj && obj.toJSON) { + obj = obj.toJSON(); + } + if (_typeof(obj) === "object" && obj !== null) { + stack2.push(obj); + canonicalizedObj = {}; + replacementStack.push(canonicalizedObj); + var sortedKeys = [], _key; + for (_key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, _key)) { + sortedKeys.push(_key); } - _extractLines(buffer2) { - let line3; - const lines = []; - let bufferPosition = 0; - let lastNewLineBufferPosition = 0; - while (true) { - let bufferPositionValue = buffer2[bufferPosition++]; - if (bufferPositionValue === this.newLineCharacter) { - line3 = buffer2.slice(lastNewLineBufferPosition, bufferPosition); - lines.push(line3); - lastNewLineBufferPosition = bufferPosition; - } else if (bufferPositionValue === void 0) { - break; - } - } - let leftovers = buffer2.slice(lastNewLineBufferPosition, bufferPosition); - if (leftovers.length) { - lines.push(leftovers); - } - return lines; + } + sortedKeys.sort(); + for (i = 0; i < sortedKeys.length; i += 1) { + _key = sortedKeys[i]; + canonicalizedObj[_key] = canonicalize(obj[_key], stack2, replacementStack, replacer, _key); + } + stack2.pop(); + replacementStack.pop(); + } else { + canonicalizedObj = obj; + } + return canonicalizedObj; +} +var arrayDiff = new Diff(); +arrayDiff.tokenize = function(value) { + return value.slice(); +}; +arrayDiff.join = arrayDiff.removeEmpty = function(value) { + return value; +}; +function diffArrays(oldArr, newArr, callback) { + return arrayDiff.diff(oldArr, newArr, callback); +} +function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8) { + if (!options8) { + options8 = {}; + } + if (typeof options8 === "function") { + options8 = { + callback: options8 + }; + } + if (typeof options8.context === "undefined") { + options8.context = 4; + } + if (options8.newlineIsToken) { + throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions"); + } + if (!options8.callback) { + return diffLinesResultToPatch(diffLines(oldStr, newStr, options8)); + } else { + var _options = options8, _callback = _options.callback; + diffLines(oldStr, newStr, _objectSpread2(_objectSpread2({}, options8), {}, { + callback: function callback(diff2) { + var patch = diffLinesResultToPatch(diff2); + _callback(patch); } - _readChunk(lineLeftovers) { - let totalBytesRead = 0; - let bytesRead; - const buffers = []; - do { - const readBuffer = Buffer.alloc(this.options.readChunk); - bytesRead = fs7.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition); - totalBytesRead = totalBytesRead + bytesRead; - this.fdPosition = this.fdPosition + bytesRead; - buffers.push(readBuffer); - } while (bytesRead && this._searchInBuffer(buffers[buffers.length - 1], this.options.newLineCharacter) === -1); - let bufferData = Buffer.concat(buffers); - if (bytesRead < this.options.readChunk) { - this.eofReached = true; - bufferData = bufferData.slice(0, totalBytesRead); + })); + } + function diffLinesResultToPatch(diff2) { + if (!diff2) { + return; + } + diff2.push({ + value: "", + lines: [] + }); + function contextLines(lines) { + return lines.map(function(entry) { + return " " + entry; + }); + } + var hunks = []; + var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1; + var _loop = function _loop2() { + var current = diff2[i], lines = current.lines || splitLines(current.value); + current.lines = lines; + if (current.added || current.removed) { + var _curRange; + if (!oldRangeStart) { + var prev = diff2[i - 1]; + oldRangeStart = oldLine; + newRangeStart = newLine; + if (prev) { + curRange = options8.context > 0 ? contextLines(prev.lines.slice(-options8.context)) : []; + oldRangeStart -= curRange.length; + newRangeStart -= curRange.length; + } + } + (_curRange = curRange).push.apply(_curRange, _toConsumableArray(lines.map(function(entry) { + return (current.added ? "+" : "-") + entry; + }))); + if (current.added) { + newLine += lines.length; + } else { + oldLine += lines.length; } - if (totalBytesRead) { - this.linesCache = this._extractLines(bufferData); - if (lineLeftovers) { - this.linesCache[0] = Buffer.concat([lineLeftovers, this.linesCache[0]]); + } else { + if (oldRangeStart) { + if (lines.length <= options8.context * 2 && i < diff2.length - 2) { + var _curRange2; + (_curRange2 = curRange).push.apply(_curRange2, _toConsumableArray(contextLines(lines))); + } else { + var _curRange3; + var contextSize = Math.min(lines.length, options8.context); + (_curRange3 = curRange).push.apply(_curRange3, _toConsumableArray(contextLines(lines.slice(0, contextSize)))); + var _hunk = { + oldStart: oldRangeStart, + oldLines: oldLine - oldRangeStart + contextSize, + newStart: newRangeStart, + newLines: newLine - newRangeStart + contextSize, + lines: curRange + }; + hunks.push(_hunk); + oldRangeStart = 0; + newRangeStart = 0; + curRange = []; } } - return totalBytesRead; + oldLine += lines.length; + newLine += lines.length; } - next() { - if (!this.fd) return false; - let line3 = false; - if (this.eofReached && this.linesCache.length === 0) { - return line3; - } - let bytesRead; - if (!this.linesCache.length) { - bytesRead = this._readChunk(); - } - if (this.linesCache.length) { - line3 = this.linesCache.shift(); - const lastLineCharacter = line3[line3.length - 1]; - if (lastLineCharacter !== this.newLineCharacter) { - bytesRead = this._readChunk(line3); - if (bytesRead) { - line3 = this.linesCache.shift(); - } - } - } - if (this.eofReached && this.linesCache.length === 0) { - this.close(); - } - if (line3 && line3[line3.length - 1] === this.newLineCharacter) { - line3 = line3.slice(0, line3.length - 1); + }; + for (var i = 0; i < diff2.length; i++) { + _loop(); + } + for (var _i = 0, _hunks = hunks; _i < _hunks.length; _i++) { + var hunk = _hunks[_i]; + for (var _i2 = 0; _i2 < hunk.lines.length; _i2++) { + if (hunk.lines[_i2].endsWith("\n")) { + hunk.lines[_i2] = hunk.lines[_i2].slice(0, -1); + } else { + hunk.lines.splice(_i2 + 1, 0, "\\ No newline at end of file"); + _i2++; } - return line3; } + } + return { + oldFileName, + newFileName, + oldHeader, + newHeader, + hunks }; - module.exports = LineByLine; } -}); - -// src/index.js -var src_exports = {}; -__export(src_exports, { - __debug: () => debugApis, - __internal: () => sharedWithCli, - check: () => check, - clearConfigCache: () => clearCache3, - doc: () => doc, - format: () => format2, - formatWithCursor: () => formatWithCursor2, - getFileInfo: () => getFileInfo2, - getSupportInfo: () => getSupportInfo2, - resolveConfig: () => resolveConfig, - resolveConfigFile: () => resolveConfigFile, - util: () => public_exports, - version: () => version_evaluate_default -}); - -// node_modules/diff/lib/index.mjs -function Diff() { } -Diff.prototype = { - diff: function diff(oldString, newString) { - var _options$timeout; - var options8 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; - var callback = options8.callback; - if (typeof options8 === "function") { - callback = options8; - options8 = {}; +function formatPatch(diff2) { + if (Array.isArray(diff2)) { + return diff2.map(formatPatch).join("\n"); + } + var ret = []; + if (diff2.oldFileName == diff2.newFileName) { + ret.push("Index: " + diff2.oldFileName); + } + ret.push("==================================================================="); + ret.push("--- " + diff2.oldFileName + (typeof diff2.oldHeader === "undefined" ? "" : " " + diff2.oldHeader)); + ret.push("+++ " + diff2.newFileName + (typeof diff2.newHeader === "undefined" ? "" : " " + diff2.newHeader)); + for (var i = 0; i < diff2.hunks.length; i++) { + var hunk = diff2.hunks[i]; + if (hunk.oldLines === 0) { + hunk.oldStart -= 1; } - this.options = options8; - var self = this; - function done(value) { - if (callback) { - setTimeout(function() { - callback(void 0, value); - }, 0); - return true; - } else { - return value; + if (hunk.newLines === 0) { + hunk.newStart -= 1; + } + ret.push("@@ -" + hunk.oldStart + "," + hunk.oldLines + " +" + hunk.newStart + "," + hunk.newLines + " @@"); + ret.push.apply(ret, hunk.lines); + } + return ret.join("\n") + "\n"; +} +function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8) { + var _options2; + if (typeof options8 === "function") { + options8 = { + callback: options8 + }; + } + if (!((_options2 = options8) !== null && _options2 !== void 0 && _options2.callback)) { + var patchObj = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8); + if (!patchObj) { + return; + } + return formatPatch(patchObj); + } else { + var _options3 = options8, _callback2 = _options3.callback; + structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, _objectSpread2(_objectSpread2({}, options8), {}, { + callback: function callback(patchObj2) { + if (!patchObj2) { + _callback2(); + } else { + _callback2(formatPatch(patchObj2)); + } } + })); + } +} +function splitLines(text) { + var hasTrailingNl = text.endsWith("\n"); + var result = text.split("\n").map(function(line3) { + return line3 + "\n"; + }); + if (hasTrailingNl) { + result.pop(); + } else { + result.push(result.pop().slice(0, -1)); + } + return result; +} + +// src/index.js +var import_fast_glob = __toESM(require_out4(), 1); + +// node_modules/vnopts/lib/descriptors/api.js +var apiDescriptor = { + key: (key2) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(key2) ? key2 : JSON.stringify(key2), + value(value) { + if (value === null || typeof value !== "object") { + return JSON.stringify(value); } - oldString = this.castInput(oldString); - newString = this.castInput(newString); - oldString = this.removeEmpty(this.tokenize(oldString)); - newString = this.removeEmpty(this.tokenize(newString)); - var newLen = newString.length, oldLen = oldString.length; - var editLength = 1; - var maxEditLength = newLen + oldLen; - if (options8.maxEditLength) { - maxEditLength = Math.min(maxEditLength, options8.maxEditLength); + if (Array.isArray(value)) { + return `[${value.map((subValue) => apiDescriptor.value(subValue)).join(", ")}]`; } - var maxExecutionTime = (_options$timeout = options8.timeout) !== null && _options$timeout !== void 0 ? _options$timeout : Infinity; - var abortAfterTimestamp = Date.now() + maxExecutionTime; - var bestPath = [{ - oldPos: -1, - lastComponent: void 0 - }]; - var newPos = this.extractCommon(bestPath[0], newString, oldString, 0); - if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) { - return done([{ - value: this.join(newString), - count: newString.length - }]); + const keys = Object.keys(value); + return keys.length === 0 ? "{}" : `{ ${keys.map((key2) => `${apiDescriptor.key(key2)}: ${apiDescriptor.value(value[key2])}`).join(", ")} }`; + }, + pair: ({ key: key2, value }) => apiDescriptor.value({ [key2]: value }) +}; + +// node_modules/chalk/source/vendor/ansi-styles/index.js +var ANSI_BACKGROUND_OFFSET = 10; +var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`; +var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`; +var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`; +var styles = { + modifier: { + reset: [0, 0], + // 21 isn't widely supported and 22 does the same thing + bold: [1, 22], + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + overline: [53, 55], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + color: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + // Bright color + blackBright: [90, 39], + gray: [90, 39], + // Alias of `blackBright` + grey: [90, 39], + // Alias of `blackBright` + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] + }, + bgColor: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49], + // Bright color + bgBlackBright: [100, 49], + bgGray: [100, 49], + // Alias of `bgBlackBright` + bgGrey: [100, 49], + // Alias of `bgBlackBright` + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] + } +}; +var modifierNames = Object.keys(styles.modifier); +var foregroundColorNames = Object.keys(styles.color); +var backgroundColorNames = Object.keys(styles.bgColor); +var colorNames = [...foregroundColorNames, ...backgroundColorNames]; +function assembleStyles() { + const codes2 = /* @__PURE__ */ new Map(); + for (const [groupName, group] of Object.entries(styles)) { + for (const [styleName, style] of Object.entries(group)) { + styles[styleName] = { + open: `\x1B[${style[0]}m`, + close: `\x1B[${style[1]}m` + }; + group[styleName] = styles[styleName]; + codes2.set(style[0], style[1]); } - var minDiagonalToConsider = -Infinity, maxDiagonalToConsider = Infinity; - function execEditLength() { - for (var diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) { - var basePath = void 0; - var removePath = bestPath[diagonalPath - 1], addPath = bestPath[diagonalPath + 1]; - if (removePath) { - bestPath[diagonalPath - 1] = void 0; + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + } + Object.defineProperty(styles, "codes", { + value: codes2, + enumerable: false + }); + styles.color.close = "\x1B[39m"; + styles.bgColor.close = "\x1B[49m"; + styles.color.ansi = wrapAnsi16(); + styles.color.ansi256 = wrapAnsi256(); + styles.color.ansi16m = wrapAnsi16m(); + styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET); + styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET); + styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET); + Object.defineProperties(styles, { + rgbToAnsi256: { + value(red, green, blue) { + if (red === green && green === blue) { + if (red < 8) { + return 16; + } + if (red > 248) { + return 231; + } + return Math.round((red - 8) / 247 * 24) + 232; } - var canAdd = false; - if (addPath) { - var addPathNewPos = addPath.oldPos - diagonalPath; - canAdd = addPath && 0 <= addPathNewPos && addPathNewPos < newLen; + return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5); + }, + enumerable: false + }, + hexToRgb: { + value(hex) { + const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16)); + if (!matches) { + return [0, 0, 0]; } - var canRemove = removePath && removePath.oldPos + 1 < oldLen; - if (!canAdd && !canRemove) { - bestPath[diagonalPath] = void 0; - continue; + let [colorString] = matches; + if (colorString.length === 3) { + colorString = [...colorString].map((character) => character + character).join(""); } - if (!canRemove || canAdd && removePath.oldPos + 1 < addPath.oldPos) { - basePath = self.addToPath(addPath, true, void 0, 0); - } else { - basePath = self.addToPath(removePath, void 0, true, 1); + const integer = Number.parseInt(colorString, 16); + return [ + /* eslint-disable no-bitwise */ + integer >> 16 & 255, + integer >> 8 & 255, + integer & 255 + /* eslint-enable no-bitwise */ + ]; + }, + enumerable: false + }, + hexToAnsi256: { + value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), + enumerable: false + }, + ansi256ToAnsi: { + value(code) { + if (code < 8) { + return 30 + code; } - newPos = self.extractCommon(basePath, newString, oldString, diagonalPath); - if (basePath.oldPos + 1 >= oldLen && newPos + 1 >= newLen) { - return done(buildValues(self, basePath.lastComponent, newString, oldString, self.useLongestToken)); - } else { - bestPath[diagonalPath] = basePath; - if (basePath.oldPos + 1 >= oldLen) { - maxDiagonalToConsider = Math.min(maxDiagonalToConsider, diagonalPath - 1); - } - if (newPos + 1 >= newLen) { - minDiagonalToConsider = Math.max(minDiagonalToConsider, diagonalPath + 1); - } + if (code < 16) { + return 90 + (code - 8); } - } - editLength++; - } - if (callback) { - (function exec() { - setTimeout(function() { - if (editLength > maxEditLength || Date.now() > abortAfterTimestamp) { - return callback(); - } - if (!execEditLength()) { - exec(); - } - }, 0); - })(); - } else { - while (editLength <= maxEditLength && Date.now() <= abortAfterTimestamp) { - var ret = execEditLength(); - if (ret) { - return ret; + let red; + let green; + let blue; + if (code >= 232) { + red = ((code - 232) * 10 + 8) / 255; + green = red; + blue = red; + } else { + code -= 16; + const remainder = code % 36; + red = Math.floor(code / 36) / 5; + green = Math.floor(remainder / 6) / 5; + blue = remainder % 6 / 5; } - } - } - }, - addToPath: function addToPath(path13, added, removed, oldPosInc) { - var last = path13.lastComponent; - if (last && last.added === added && last.removed === removed) { - return { - oldPos: path13.oldPos + oldPosInc, - lastComponent: { - count: last.count + 1, - added, - removed, - previousComponent: last.previousComponent + const value = Math.max(red, green, blue) * 2; + if (value === 0) { + return 30; } - }; - } else { - return { - oldPos: path13.oldPos + oldPosInc, - lastComponent: { - count: 1, - added, - removed, - previousComponent: last + let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red)); + if (value === 2) { + result += 60; } - }; + return result; + }, + enumerable: false + }, + rgbToAnsi: { + value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), + enumerable: false + }, + hexToAnsi: { + value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), + enumerable: false } - }, - extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { - var newLen = newString.length, oldLen = oldString.length, oldPos = basePath.oldPos, newPos = oldPos - diagonalPath, commonCount = 0; - while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { - newPos++; - oldPos++; - commonCount++; + }); + return styles; +} +var ansiStyles = assembleStyles(); +var ansi_styles_default = ansiStyles; + +// node_modules/chalk/source/vendor/supports-color/index.js +import process2 from "process"; +import os from "os"; +import tty from "tty"; +function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) { + const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; + const position = argv.indexOf(prefix + flag); + const terminatorPosition = argv.indexOf("--"); + return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); +} +var { env } = process2; +var flagForceColor; +if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) { + flagForceColor = 0; +} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { + flagForceColor = 1; +} +function envForceColor() { + if ("FORCE_COLOR" in env) { + if (env.FORCE_COLOR === "true") { + return 1; } - if (commonCount) { - basePath.lastComponent = { - count: commonCount, - previousComponent: basePath.lastComponent - }; + if (env.FORCE_COLOR === "false") { + return 0; } - basePath.oldPos = oldPos; - return newPos; - }, - equals: function equals(left, right) { - if (this.options.comparator) { - return this.options.comparator(left, right); - } else { - return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); + return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); + } +} +function translateLevel(level) { + if (level === 0) { + return false; + } + return { + level, + hasBasic: true, + has256: level >= 2, + has16m: level >= 3 + }; +} +function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { + const noFlagForceColor = envForceColor(); + if (noFlagForceColor !== void 0) { + flagForceColor = noFlagForceColor; + } + const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; + if (forceColor === 0) { + return 0; + } + if (sniffFlags) { + if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { + return 3; } - }, - removeEmpty: function removeEmpty(array2) { - var ret = []; - for (var i = 0; i < array2.length; i++) { - if (array2[i]) { - ret.push(array2[i]); - } + if (hasFlag("color=256")) { + return 2; } - return ret; - }, - castInput: function castInput(value) { - return value; - }, - tokenize: function tokenize(value) { - return value.split(""); - }, - join: function join(chars) { - return chars.join(""); } -}; -function buildValues(diff2, lastComponent, newString, oldString, useLongestToken) { - var components = []; - var nextComponent; - while (lastComponent) { - components.push(lastComponent); - nextComponent = lastComponent.previousComponent; - delete lastComponent.previousComponent; - lastComponent = nextComponent; + if ("TF_BUILD" in env && "AGENT_NAME" in env) { + return 1; } - components.reverse(); - var componentPos = 0, componentLen = components.length, newPos = 0, oldPos = 0; - for (; componentPos < componentLen; componentPos++) { - var component = components[componentPos]; - if (!component.removed) { - if (!component.added && useLongestToken) { - var value = newString.slice(newPos, newPos + component.count); - value = value.map(function(value2, i) { - var oldValue = oldString[oldPos + i]; - return oldValue.length > value2.length ? oldValue : value2; - }); - component.value = diff2.join(value); - } else { - component.value = diff2.join(newString.slice(newPos, newPos + component.count)); - } - newPos += component.count; - if (!component.added) { - oldPos += component.count; - } - } else { - component.value = diff2.join(oldString.slice(oldPos, oldPos + component.count)); - oldPos += component.count; - if (componentPos && components[componentPos - 1].added) { - var tmp = components[componentPos - 1]; - components[componentPos - 1] = components[componentPos]; - components[componentPos] = tmp; - } - } + if (haveStream && !streamIsTTY && forceColor === void 0) { + return 0; } - var finalComponent = components[componentLen - 1]; - if (componentLen > 1 && typeof finalComponent.value === "string" && (finalComponent.added || finalComponent.removed) && diff2.equals("", finalComponent.value)) { - components[componentLen - 2].value += finalComponent.value; - components.pop(); + const min = forceColor || 0; + if (env.TERM === "dumb") { + return min; } - return components; -} -var characterDiff = new Diff(); -var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/; -var reWhitespace = /\S/; -var wordDiff = new Diff(); -wordDiff.equals = function(left, right) { - if (this.options.ignoreCase) { - left = left.toLowerCase(); - right = right.toLowerCase(); + if (process2.platform === "win32") { + const osRelease = os.release().split("."); + if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { + return Number(osRelease[2]) >= 14931 ? 3 : 2; + } + return 1; } - return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right); -}; -wordDiff.tokenize = function(value) { - var tokens = value.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/); - for (var i = 0; i < tokens.length - 1; i++) { - if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) { - tokens[i] += tokens[i + 2]; - tokens.splice(i + 1, 2); - i--; + if ("CI" in env) { + if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) { + return 3; } + if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") { + return 1; + } + return min; } - return tokens; -}; -var lineDiff = new Diff(); -lineDiff.tokenize = function(value) { - if (this.options.stripTrailingCr) { - value = value.replace(/\r\n/g, "\n"); + if ("TEAMCITY_VERSION" in env) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; } - var retLines = [], linesAndNewlines = value.split(/(\n|\r\n)/); - if (!linesAndNewlines[linesAndNewlines.length - 1]) { - linesAndNewlines.pop(); + if (env.COLORTERM === "truecolor") { + return 3; } - for (var i = 0; i < linesAndNewlines.length; i++) { - var line3 = linesAndNewlines[i]; - if (i % 2 && !this.options.newlineIsToken) { - retLines[retLines.length - 1] += line3; - } else { - if (this.options.ignoreWhitespace) { - line3 = line3.trim(); + if (env.TERM === "xterm-kitty") { + return 3; + } + if ("TERM_PROGRAM" in env) { + const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + switch (env.TERM_PROGRAM) { + case "iTerm.app": { + return version >= 3 ? 3 : 2; + } + case "Apple_Terminal": { + return 2; } - retLines.push(line3); } } - return retLines; -}; -function diffLines(oldStr, newStr, callback) { - return lineDiff.diff(oldStr, newStr, callback); -} -var sentenceDiff = new Diff(); -sentenceDiff.tokenize = function(value) { - return value.split(/(\S.+?[.!?])(?=\s+|$)/); -}; -var cssDiff = new Diff(); -cssDiff.tokenize = function(value) { - return value.split(/([{}:;,]|\s+)/); -}; -function _typeof(obj) { - "@babel/helpers - typeof"; - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function(obj2) { - return typeof obj2; - }; - } else { - _typeof = function(obj2) { - return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; - }; + if (/-256(color)?$/i.test(env.TERM)) { + return 2; } - return _typeof(obj); -} -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); -} -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); -} -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + return 1; + } + if ("COLORTERM" in env) { + return 1; + } + return min; } -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +function createSupportsColor(stream, options8 = {}) { + const level = _supportsColor(stream, { + streamIsTTY: stream && stream.isTTY, + ...options8 + }); + return translateLevel(level); } -var objectPrototypeToString = Object.prototype.toString; -var jsonDiff = new Diff(); -jsonDiff.useLongestToken = true; -jsonDiff.tokenize = lineDiff.tokenize; -jsonDiff.castInput = function(value) { - var _this$options = this.options, undefinedReplacement = _this$options.undefinedReplacement, _this$options$stringi = _this$options.stringifyReplacer, stringifyReplacer = _this$options$stringi === void 0 ? function(k, v) { - return typeof v === "undefined" ? undefinedReplacement : v; - } : _this$options$stringi; - return typeof value === "string" ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, " "); -}; -jsonDiff.equals = function(left, right) { - return Diff.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, "$1"), right.replace(/,([\r\n])/g, "$1")); +var supportsColor = { + stdout: createSupportsColor({ isTTY: tty.isatty(1) }), + stderr: createSupportsColor({ isTTY: tty.isatty(2) }) }; -function canonicalize(obj, stack2, replacementStack, replacer, key2) { - stack2 = stack2 || []; - replacementStack = replacementStack || []; - if (replacer) { - obj = replacer(key2, obj); - } - var i; - for (i = 0; i < stack2.length; i += 1) { - if (stack2[i] === obj) { - return replacementStack[i]; - } - } - var canonicalizedObj; - if ("[object Array]" === objectPrototypeToString.call(obj)) { - stack2.push(obj); - canonicalizedObj = new Array(obj.length); - replacementStack.push(canonicalizedObj); - for (i = 0; i < obj.length; i += 1) { - canonicalizedObj[i] = canonicalize(obj[i], stack2, replacementStack, replacer, key2); - } - stack2.pop(); - replacementStack.pop(); - return canonicalizedObj; - } - if (obj && obj.toJSON) { - obj = obj.toJSON(); - } - if (_typeof(obj) === "object" && obj !== null) { - stack2.push(obj); - canonicalizedObj = {}; - replacementStack.push(canonicalizedObj); - var sortedKeys = [], _key; - for (_key in obj) { - if (obj.hasOwnProperty(_key)) { - sortedKeys.push(_key); - } - } - sortedKeys.sort(); - for (i = 0; i < sortedKeys.length; i += 1) { - _key = sortedKeys[i]; - canonicalizedObj[_key] = canonicalize(obj[_key], stack2, replacementStack, replacer, _key); - } - stack2.pop(); - replacementStack.pop(); - } else { - canonicalizedObj = obj; +var supports_color_default = supportsColor; + +// node_modules/chalk/source/utilities.js +function stringReplaceAll(string, substring, replacer) { + let index = string.indexOf(substring); + if (index === -1) { + return string; } - return canonicalizedObj; + const substringLength = substring.length; + let endIndex = 0; + let returnValue = ""; + do { + returnValue += string.slice(endIndex, index) + substring + replacer; + endIndex = index + substringLength; + index = string.indexOf(substring, endIndex); + } while (index !== -1); + returnValue += string.slice(endIndex); + return returnValue; +} +function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) { + let endIndex = 0; + let returnValue = ""; + do { + const gotCR = string[index - 1] === "\r"; + returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix; + endIndex = index + 1; + index = string.indexOf("\n", endIndex); + } while (index !== -1); + returnValue += string.slice(endIndex); + return returnValue; } -var arrayDiff = new Diff(); -arrayDiff.tokenize = function(value) { - return value.slice(); + +// node_modules/chalk/source/index.js +var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default; +var GENERATOR = Symbol("GENERATOR"); +var STYLER = Symbol("STYLER"); +var IS_EMPTY = Symbol("IS_EMPTY"); +var levelMapping = [ + "ansi", + "ansi", + "ansi256", + "ansi16m" +]; +var styles2 = /* @__PURE__ */ Object.create(null); +var applyOptions = (object, options8 = {}) => { + if (options8.level && !(Number.isInteger(options8.level) && options8.level >= 0 && options8.level <= 3)) { + throw new Error("The `level` option should be an integer from 0 to 3"); + } + const colorLevel = stdoutColor ? stdoutColor.level : 0; + object.level = options8.level === void 0 ? colorLevel : options8.level; }; -arrayDiff.join = arrayDiff.removeEmpty = function(value) { - return value; +var chalkFactory = (options8) => { + const chalk2 = (...strings) => strings.join(" "); + applyOptions(chalk2, options8); + Object.setPrototypeOf(chalk2, createChalk.prototype); + return chalk2; }; -function diffArrays(oldArr, newArr, callback) { - return arrayDiff.diff(oldArr, newArr, callback); +function createChalk(options8) { + return chalkFactory(options8); } -function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8) { - if (!options8) { - options8 = {}; - } - if (typeof options8.context === "undefined") { - options8.context = 4; +Object.setPrototypeOf(createChalk.prototype, Function.prototype); +for (const [styleName, style] of Object.entries(ansi_styles_default)) { + styles2[styleName] = { + get() { + const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]); + Object.defineProperty(this, styleName, { value: builder }); + return builder; + } + }; +} +styles2.visible = { + get() { + const builder = createBuilder(this, this[STYLER], true); + Object.defineProperty(this, "visible", { value: builder }); + return builder; } - var diff2 = diffLines(oldStr, newStr, options8); - if (!diff2) { - return; +}; +var getModelAnsi = (model, level, type2, ...arguments_) => { + if (model === "rgb") { + if (level === "ansi16m") { + return ansi_styles_default[type2].ansi16m(...arguments_); + } + if (level === "ansi256") { + return ansi_styles_default[type2].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_)); + } + return ansi_styles_default[type2].ansi(ansi_styles_default.rgbToAnsi(...arguments_)); } - diff2.push({ - value: "", - lines: [] - }); - function contextLines(lines) { - return lines.map(function(entry) { - return " " + entry; - }); + if (model === "hex") { + return getModelAnsi("rgb", level, type2, ...ansi_styles_default.hexToRgb(...arguments_)); } - var hunks = []; - var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1; - var _loop = function _loop2(i2) { - var current = diff2[i2], lines = current.lines || current.value.replace(/\n$/, "").split("\n"); - current.lines = lines; - if (current.added || current.removed) { - var _curRange; - if (!oldRangeStart) { - var prev = diff2[i2 - 1]; - oldRangeStart = oldLine; - newRangeStart = newLine; - if (prev) { - curRange = options8.context > 0 ? contextLines(prev.lines.slice(-options8.context)) : []; - oldRangeStart -= curRange.length; - newRangeStart -= curRange.length; - } - } - (_curRange = curRange).push.apply(_curRange, _toConsumableArray(lines.map(function(entry) { - return (current.added ? "+" : "-") + entry; - }))); - if (current.added) { - newLine += lines.length; - } else { - oldLine += lines.length; - } - } else { - if (oldRangeStart) { - if (lines.length <= options8.context * 2 && i2 < diff2.length - 2) { - var _curRange2; - (_curRange2 = curRange).push.apply(_curRange2, _toConsumableArray(contextLines(lines))); - } else { - var _curRange3; - var contextSize = Math.min(lines.length, options8.context); - (_curRange3 = curRange).push.apply(_curRange3, _toConsumableArray(contextLines(lines.slice(0, contextSize)))); - var hunk = { - oldStart: oldRangeStart, - oldLines: oldLine - oldRangeStart + contextSize, - newStart: newRangeStart, - newLines: newLine - newRangeStart + contextSize, - lines: curRange - }; - if (i2 >= diff2.length - 2 && lines.length <= options8.context) { - var oldEOFNewline = /\n$/.test(oldStr); - var newEOFNewline = /\n$/.test(newStr); - var noNlBeforeAdds = lines.length == 0 && curRange.length > hunk.oldLines; - if (!oldEOFNewline && noNlBeforeAdds && oldStr.length > 0) { - curRange.splice(hunk.oldLines, 0, "\\ No newline at end of file"); - } - if (!oldEOFNewline && !noNlBeforeAdds || !newEOFNewline) { - curRange.push("\\ No newline at end of file"); - } - } - hunks.push(hunk); - oldRangeStart = 0; - newRangeStart = 0; - curRange = []; - } - } - oldLine += lines.length; - newLine += lines.length; + return ansi_styles_default[type2][model](...arguments_); +}; +var usedModels = ["rgb", "hex", "ansi256"]; +for (const model of usedModels) { + styles2[model] = { + get() { + const { level } = this; + return function(...arguments_) { + const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]); + return createBuilder(this, styler, this[IS_EMPTY]); + }; } }; - for (var i = 0; i < diff2.length; i++) { - _loop(i); + const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); + styles2[bgModel] = { + get() { + const { level } = this; + return function(...arguments_) { + const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]); + return createBuilder(this, styler, this[IS_EMPTY]); + }; + } + }; +} +var proto = Object.defineProperties(() => { +}, { + ...styles2, + level: { + enumerable: true, + get() { + return this[GENERATOR].level; + }, + set(level) { + this[GENERATOR].level = level; + } + } +}); +var createStyler = (open, close, parent) => { + let openAll; + let closeAll; + if (parent === void 0) { + openAll = open; + closeAll = close; + } else { + openAll = parent.openAll + open; + closeAll = close + parent.closeAll; } return { - oldFileName, - newFileName, - oldHeader, - newHeader, - hunks + open, + close, + openAll, + closeAll, + parent }; -} -function formatPatch(diff2) { - if (Array.isArray(diff2)) { - return diff2.map(formatPatch).join("\n"); +}; +var createBuilder = (self, _styler, _isEmpty) => { + const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" ")); + Object.setPrototypeOf(builder, proto); + builder[GENERATOR] = self; + builder[STYLER] = _styler; + builder[IS_EMPTY] = _isEmpty; + return builder; +}; +var applyStyle = (self, string) => { + if (self.level <= 0 || !string) { + return self[IS_EMPTY] ? "" : string; } - var ret = []; - if (diff2.oldFileName == diff2.newFileName) { - ret.push("Index: " + diff2.oldFileName); + let styler = self[STYLER]; + if (styler === void 0) { + return string; } - ret.push("==================================================================="); - ret.push("--- " + diff2.oldFileName + (typeof diff2.oldHeader === "undefined" ? "" : " " + diff2.oldHeader)); - ret.push("+++ " + diff2.newFileName + (typeof diff2.newHeader === "undefined" ? "" : " " + diff2.newHeader)); - for (var i = 0; i < diff2.hunks.length; i++) { - var hunk = diff2.hunks[i]; - if (hunk.oldLines === 0) { - hunk.oldStart -= 1; - } - if (hunk.newLines === 0) { - hunk.newStart -= 1; + const { openAll, closeAll } = styler; + if (string.includes("\x1B")) { + while (styler !== void 0) { + string = stringReplaceAll(string, styler.close, styler.open); + styler = styler.parent; } - ret.push("@@ -" + hunk.oldStart + "," + hunk.oldLines + " +" + hunk.newStart + "," + hunk.newLines + " @@"); - ret.push.apply(ret, hunk.lines); } - return ret.join("\n") + "\n"; -} -function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8) { - return formatPatch(structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options8)); -} - -// src/index.js -var import_fast_glob = __toESM(require_out4(), 1); - -// node_modules/vnopts/lib/descriptors/api.js -var apiDescriptor = { - key: (key2) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(key2) ? key2 : JSON.stringify(key2), - value(value) { - if (value === null || typeof value !== "object") { - return JSON.stringify(value); - } - if (Array.isArray(value)) { - return `[${value.map((subValue) => apiDescriptor.value(subValue)).join(", ")}]`; - } - const keys = Object.keys(value); - return keys.length === 0 ? "{}" : `{ ${keys.map((key2) => `${apiDescriptor.key(key2)}: ${apiDescriptor.value(value[key2])}`).join(", ")} }`; - }, - pair: ({ key: key2, value }) => apiDescriptor.value({ [key2]: value }) + const lfIndex = string.indexOf("\n"); + if (lfIndex !== -1) { + string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex); + } + return openAll + string + closeAll; }; +Object.defineProperties(createChalk.prototype, styles2); +var chalk = createChalk(); +var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 }); +var source_default = chalk; // node_modules/vnopts/lib/handlers/deprecated/common.js -init_source(); var commonDeprecatedHandler = (keyOrPair, redirectTo, { descriptor }) => { const messages2 = [ `${source_default.yellow(typeof keyOrPair === "string" ? descriptor.key(keyOrPair) : descriptor.pair(keyOrPair))} is deprecated` @@ -12107,9 +10705,6 @@ var commonDeprecatedHandler = (keyOrPair, redirectTo, { descriptor }) => { return messages2.join("; ") + "."; }; -// node_modules/vnopts/lib/handlers/invalid/common.js -init_source(); - // node_modules/vnopts/lib/constants.js var VALUE_NOT_EXIST = Symbol.for("vnopts.VALUE_NOT_EXIST"); var VALUE_UNCHANGED = Symbol.for("vnopts.VALUE_UNCHANGED"); @@ -12153,9 +10748,6 @@ function chooseDescription(descriptions, printWidth) { return firstWidth > printWidth && firstWidth > secondWidth ? secondDescription : firstDescription; } -// node_modules/vnopts/lib/handlers/unknown/leven.js -init_source(); - // node_modules/leven/index.js var array = []; var characterCodeCache = []; @@ -12795,8 +11387,9 @@ import path9 from "path"; // node_modules/url-or-path/index.js import { fileURLToPath, pathToFileURL } from "url"; +var URL_STRING_PREFIX = "file:"; var isUrlInstance = (value) => value instanceof URL; -var isUrlString = (value) => typeof value === "string" && value.startsWith("file://"); +var isUrlString = (value) => typeof value === "string" && value.startsWith(URL_STRING_PREFIX); var isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath); var toPath = (urlOrPath) => isUrl(urlOrPath) ? fileURLToPath(urlOrPath) : urlOrPath; @@ -13070,7 +11663,6 @@ async function isFile(file, options8) { var is_file_default = isFile; // src/config/prettier-config/loaders.js -var import_parse_async = __toESM(require_parse_async(), 1); import { pathToFileURL as pathToFileURL2 } from "url"; // node_modules/js-yaml/dist/js-yaml.mjs @@ -15918,7 +14510,7 @@ function syntaxError(message) { var dist_default = { parse: parse2 }; // node_modules/parse-json/index.js -var import_code_frame = __toESM(require_lib3(), 1); +var import_code_frame = __toESM(require_lib2(), 1); // node_modules/index-to-position/index.js var safeLastIndexOf = (string, searchString, index) => index < 0 ? -1 : string.lastIndexOf(searchString, index); @@ -16000,25 +14592,731 @@ function parseJson(string, reviver, fileName) { } catch (error) { message = error.message; } - let location; - if (string) { - location = getErrorLocation(string, message); - message = addCodePointToUnexpectedToken(message); - } else { - message += " while parsing empty string"; + let location; + if (string) { + location = getErrorLocation(string, message); + message = addCodePointToUnexpectedToken(message); + } else { + message += " while parsing empty string"; + } + const jsonError = new JSONError(message); + jsonError.fileName = fileName; + if (location) { + jsonError.codeFrame = generateCodeFrame(string, location); + jsonError.rawCodeFrame = generateCodeFrame( + string, + location, + /* highlightCode */ + false + ); + } + throw jsonError; +} + +// node_modules/smol-toml/dist/error.js +function getLineColFromPtr(string, ptr) { + let lines = string.slice(0, ptr).split(/\r\n|\n|\r/g); + return [lines.length, lines.pop().length + 1]; +} +function makeCodeBlock(string, line3, column2) { + let lines = string.split(/\r\n|\n|\r/g); + let codeblock = ""; + let numberLen = (Math.log10(line3 + 1) | 0) + 1; + for (let i = line3 - 1; i <= line3 + 1; i++) { + let l = lines[i - 1]; + if (!l) + continue; + codeblock += i.toString().padEnd(numberLen, " "); + codeblock += ": "; + codeblock += l; + codeblock += "\n"; + if (i === line3) { + codeblock += " ".repeat(numberLen + column2 + 2); + codeblock += "^\n"; + } + } + return codeblock; +} +var TomlError = class extends Error { + line; + column; + codeblock; + constructor(message, options8) { + const [line3, column2] = getLineColFromPtr(options8.toml, options8.ptr); + const codeblock = makeCodeBlock(options8.toml, line3, column2); + super(`Invalid TOML document: ${message} + +${codeblock}`, options8); + this.line = line3; + this.column = column2; + this.codeblock = codeblock; + } +}; + +// node_modules/smol-toml/dist/util.js +function indexOfNewline(str2, start = 0, end = str2.length) { + let idx = str2.indexOf("\n", start); + if (str2[idx - 1] === "\r") + idx--; + return idx <= end ? idx : -1; +} +function skipComment(str2, ptr) { + for (let i = ptr; i < str2.length; i++) { + let c2 = str2[i]; + if (c2 === "\n") + return i; + if (c2 === "\r" && str2[i + 1] === "\n") + return i + 1; + if (c2 < " " && c2 !== " " || c2 === "\x7F") { + throw new TomlError("control characters are not allowed in comments", { + toml: str2, + ptr + }); + } + } + return str2.length; +} +function skipVoid(str2, ptr, banNewLines, banComments) { + let c2; + while ((c2 = str2[ptr]) === " " || c2 === " " || !banNewLines && (c2 === "\n" || c2 === "\r" && str2[ptr + 1] === "\n")) + ptr++; + return banComments || c2 !== "#" ? ptr : skipVoid(str2, skipComment(str2, ptr), banNewLines); +} +function skipUntil(str2, ptr, sep, end, banNewLines = false) { + if (!end) { + ptr = indexOfNewline(str2, ptr); + return ptr < 0 ? str2.length : ptr; + } + for (let i = ptr; i < str2.length; i++) { + let c2 = str2[i]; + if (c2 === "#") { + i = indexOfNewline(str2, i); + } else if (c2 === sep) { + return i + 1; + } else if (c2 === end) { + return i; + } else if (banNewLines && (c2 === "\n" || c2 === "\r" && str2[i + 1] === "\n")) { + return i; + } + } + throw new TomlError("cannot find end of structure", { + toml: str2, + ptr + }); +} +function getStringEnd(str2, seek) { + let first = str2[seek]; + let target = first === str2[seek + 1] && str2[seek + 1] === str2[seek + 2] ? str2.slice(seek, seek + 3) : first; + seek += target.length - 1; + do + seek = str2.indexOf(target, ++seek); + while (seek > -1 && first !== "'" && str2[seek - 1] === "\\" && str2[seek - 2] !== "\\"); + if (seek > -1) { + seek += target.length; + if (target.length > 1) { + if (str2[seek] === first) + seek++; + if (str2[seek] === first) + seek++; + } + } + return seek; +} + +// node_modules/smol-toml/dist/date.js +var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i; +var _hasDate, _hasTime, _offset; +var _TomlDate = class _TomlDate extends Date { + constructor(date) { + let hasDate = true; + let hasTime = true; + let offset = "Z"; + if (typeof date === "string") { + let match = date.match(DATE_TIME_RE); + if (match) { + if (!match[1]) { + hasDate = false; + date = `0000-01-01T${date}`; + } + hasTime = !!match[2]; + if (match[2] && +match[2] > 23) { + date = ""; + } else { + offset = match[3] || null; + date = date.toUpperCase(); + if (!offset && hasTime) + date += "Z"; + } + } else { + date = ""; + } + } + super(date); + __privateAdd(this, _hasDate, false); + __privateAdd(this, _hasTime, false); + __privateAdd(this, _offset, null); + if (!isNaN(this.getTime())) { + __privateSet(this, _hasDate, hasDate); + __privateSet(this, _hasTime, hasTime); + __privateSet(this, _offset, offset); + } + } + isDateTime() { + return __privateGet(this, _hasDate) && __privateGet(this, _hasTime); + } + isLocal() { + return !__privateGet(this, _hasDate) || !__privateGet(this, _hasTime) || !__privateGet(this, _offset); + } + isDate() { + return __privateGet(this, _hasDate) && !__privateGet(this, _hasTime); + } + isTime() { + return __privateGet(this, _hasTime) && !__privateGet(this, _hasDate); + } + isValid() { + return __privateGet(this, _hasDate) || __privateGet(this, _hasTime); + } + toISOString() { + let iso = super.toISOString(); + if (this.isDate()) + return iso.slice(0, 10); + if (this.isTime()) + return iso.slice(11, 23); + if (__privateGet(this, _offset) === null) + return iso.slice(0, -1); + if (__privateGet(this, _offset) === "Z") + return iso; + let offset = +__privateGet(this, _offset).slice(1, 3) * 60 + +__privateGet(this, _offset).slice(4, 6); + offset = __privateGet(this, _offset)[0] === "-" ? offset : -offset; + let offsetDate = new Date(this.getTime() - offset * 6e4); + return offsetDate.toISOString().slice(0, -1) + __privateGet(this, _offset); + } + static wrapAsOffsetDateTime(jsDate, offset = "Z") { + let date = new _TomlDate(jsDate); + __privateSet(date, _offset, offset); + return date; + } + static wrapAsLocalDateTime(jsDate) { + let date = new _TomlDate(jsDate); + __privateSet(date, _offset, null); + return date; + } + static wrapAsLocalDate(jsDate) { + let date = new _TomlDate(jsDate); + __privateSet(date, _hasTime, false); + __privateSet(date, _offset, null); + return date; + } + static wrapAsLocalTime(jsDate) { + let date = new _TomlDate(jsDate); + __privateSet(date, _hasDate, false); + __privateSet(date, _offset, null); + return date; + } +}; +_hasDate = new WeakMap(); +_hasTime = new WeakMap(); +_offset = new WeakMap(); +var TomlDate = _TomlDate; + +// node_modules/smol-toml/dist/primitive.js +var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/; +var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/; +var LEADING_ZERO = /^[+-]?0[0-9_]/; +var ESCAPE_REGEX = /^[0-9a-f]{4,8}$/i; +var ESC_MAP = { + b: "\b", + t: " ", + n: "\n", + f: "\f", + r: "\r", + '"': '"', + "\\": "\\" +}; +function parseString(str2, ptr = 0, endPtr = str2.length) { + let isLiteral = str2[ptr] === "'"; + let isMultiline = str2[ptr++] === str2[ptr] && str2[ptr] === str2[ptr + 1]; + if (isMultiline) { + endPtr -= 2; + if (str2[ptr += 2] === "\r") + ptr++; + if (str2[ptr] === "\n") + ptr++; + } + let tmp = 0; + let isEscape; + let parsed = ""; + let sliceStart = ptr; + while (ptr < endPtr - 1) { + let c2 = str2[ptr++]; + if (c2 === "\n" || c2 === "\r" && str2[ptr] === "\n") { + if (!isMultiline) { + throw new TomlError("newlines are not allowed in strings", { + toml: str2, + ptr: ptr - 1 + }); + } + } else if (c2 < " " && c2 !== " " || c2 === "\x7F") { + throw new TomlError("control characters are not allowed in strings", { + toml: str2, + ptr: ptr - 1 + }); + } + if (isEscape) { + isEscape = false; + if (c2 === "u" || c2 === "U") { + let code = str2.slice(ptr, ptr += c2 === "u" ? 4 : 8); + if (!ESCAPE_REGEX.test(code)) { + throw new TomlError("invalid unicode escape", { + toml: str2, + ptr: tmp + }); + } + try { + parsed += String.fromCodePoint(parseInt(code, 16)); + } catch { + throw new TomlError("invalid unicode escape", { + toml: str2, + ptr: tmp + }); + } + } else if (isMultiline && (c2 === "\n" || c2 === " " || c2 === " " || c2 === "\r")) { + ptr = skipVoid(str2, ptr - 1, true); + if (str2[ptr] !== "\n" && str2[ptr] !== "\r") { + throw new TomlError("invalid escape: only line-ending whitespace may be escaped", { + toml: str2, + ptr: tmp + }); + } + ptr = skipVoid(str2, ptr); + } else if (c2 in ESC_MAP) { + parsed += ESC_MAP[c2]; + } else { + throw new TomlError("unrecognized escape sequence", { + toml: str2, + ptr: tmp + }); + } + sliceStart = ptr; + } else if (!isLiteral && c2 === "\\") { + tmp = ptr - 1; + isEscape = true; + parsed += str2.slice(sliceStart, tmp); + } + } + return parsed + str2.slice(sliceStart, endPtr - 1); +} +function parseValue(value, toml, ptr) { + if (value === "true") + return true; + if (value === "false") + return false; + if (value === "-inf") + return -Infinity; + if (value === "inf" || value === "+inf") + return Infinity; + if (value === "nan" || value === "+nan" || value === "-nan") + return NaN; + if (value === "-0") + return 0; + let isInt2; + if ((isInt2 = INT_REGEX.test(value)) || FLOAT_REGEX.test(value)) { + if (LEADING_ZERO.test(value)) { + throw new TomlError("leading zeroes are not allowed", { + toml, + ptr + }); + } + let numeric = +value.replace(/_/g, ""); + if (isNaN(numeric)) { + throw new TomlError("invalid number", { + toml, + ptr + }); + } + if (isInt2 && !Number.isSafeInteger(numeric)) { + throw new TomlError("integer value cannot be represented losslessly", { + toml, + ptr + }); + } + return numeric; + } + let date = new TomlDate(value); + if (!date.isValid()) { + throw new TomlError("invalid value", { + toml, + ptr + }); + } + return date; +} + +// node_modules/smol-toml/dist/extract.js +function sliceAndTrimEndOf(str2, startPtr, endPtr, allowNewLines) { + let value = str2.slice(startPtr, endPtr); + let commentIdx = value.indexOf("#"); + if (commentIdx > -1) { + skipComment(str2, commentIdx); + value = value.slice(0, commentIdx); + } + let trimmed = value.trimEnd(); + if (!allowNewLines) { + let newlineIdx = value.indexOf("\n", trimmed.length); + if (newlineIdx > -1) { + throw new TomlError("newlines are not allowed in inline tables", { + toml: str2, + ptr: startPtr + newlineIdx + }); + } + } + return [trimmed, commentIdx]; +} +function extractValue(str2, ptr, end, depth) { + if (depth === 0) { + throw new TomlError("document contains excessively nested structures. aborting.", { + toml: str2, + ptr + }); + } + let c2 = str2[ptr]; + if (c2 === "[" || c2 === "{") { + let [value, endPtr2] = c2 === "[" ? parseArray(str2, ptr, depth) : parseInlineTable(str2, ptr, depth); + let newPtr = skipUntil(str2, endPtr2, ",", end); + if (end === "}") { + let nextNewLine = indexOfNewline(str2, endPtr2, newPtr); + if (nextNewLine > -1) { + throw new TomlError("newlines are not allowed in inline tables", { + toml: str2, + ptr: nextNewLine + }); + } + } + return [value, newPtr]; + } + let endPtr; + if (c2 === '"' || c2 === "'") { + endPtr = getStringEnd(str2, ptr); + let parsed = parseString(str2, ptr, endPtr); + if (end) { + endPtr = skipVoid(str2, endPtr, end !== "]"); + if (str2[endPtr] && str2[endPtr] !== "," && str2[endPtr] !== end && str2[endPtr] !== "\n" && str2[endPtr] !== "\r") { + throw new TomlError("unexpected character encountered", { + toml: str2, + ptr: endPtr + }); + } + endPtr += +(str2[endPtr] === ","); + } + return [parsed, endPtr]; + } + endPtr = skipUntil(str2, ptr, ",", end); + let slice = sliceAndTrimEndOf(str2, ptr, endPtr - +(str2[endPtr - 1] === ","), end === "]"); + if (!slice[0]) { + throw new TomlError("incomplete key-value declaration: no value specified", { + toml: str2, + ptr + }); + } + if (end && slice[1] > -1) { + endPtr = skipVoid(str2, ptr + slice[1]); + endPtr += +(str2[endPtr] === ","); + } + return [ + parseValue(slice[0], str2, ptr), + endPtr + ]; +} + +// node_modules/smol-toml/dist/struct.js +var KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/; +function parseKey(str2, ptr, end = "=") { + let dot = ptr - 1; + let parsed = []; + let endPtr = str2.indexOf(end, ptr); + if (endPtr < 0) { + throw new TomlError("incomplete key-value: cannot find end of key", { + toml: str2, + ptr + }); + } + do { + let c2 = str2[ptr = ++dot]; + if (c2 !== " " && c2 !== " ") { + if (c2 === '"' || c2 === "'") { + if (c2 === str2[ptr + 1] && c2 === str2[ptr + 2]) { + throw new TomlError("multiline strings are not allowed in keys", { + toml: str2, + ptr + }); + } + let eos = getStringEnd(str2, ptr); + if (eos < 0) { + throw new TomlError("unfinished string encountered", { + toml: str2, + ptr + }); + } + dot = str2.indexOf(".", eos); + let strEnd = str2.slice(eos, dot < 0 || dot > endPtr ? endPtr : dot); + let newLine = indexOfNewline(strEnd); + if (newLine > -1) { + throw new TomlError("newlines are not allowed in keys", { + toml: str2, + ptr: ptr + dot + newLine + }); + } + if (strEnd.trimStart()) { + throw new TomlError("found extra tokens after the string part", { + toml: str2, + ptr: eos + }); + } + if (endPtr < eos) { + endPtr = str2.indexOf(end, eos); + if (endPtr < 0) { + throw new TomlError("incomplete key-value: cannot find end of key", { + toml: str2, + ptr + }); + } + } + parsed.push(parseString(str2, ptr, eos)); + } else { + dot = str2.indexOf(".", ptr); + let part = str2.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot); + if (!KEY_PART_RE.test(part)) { + throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", { + toml: str2, + ptr + }); + } + parsed.push(part.trimEnd()); + } + } + } while (dot + 1 && dot < endPtr); + return [parsed, skipVoid(str2, endPtr + 1, true, true)]; +} +function parseInlineTable(str2, ptr, depth) { + let res = {}; + let seen = /* @__PURE__ */ new Set(); + let c2; + let comma = 0; + ptr++; + while ((c2 = str2[ptr++]) !== "}" && c2) { + if (c2 === "\n") { + throw new TomlError("newlines are not allowed in inline tables", { + toml: str2, + ptr: ptr - 1 + }); + } else if (c2 === "#") { + throw new TomlError("inline tables cannot contain comments", { + toml: str2, + ptr: ptr - 1 + }); + } else if (c2 === ",") { + throw new TomlError("expected key-value, found comma", { + toml: str2, + ptr: ptr - 1 + }); + } else if (c2 !== " " && c2 !== " ") { + let k; + let t = res; + let hasOwn = false; + let [key2, keyEndPtr] = parseKey(str2, ptr - 1); + for (let i = 0; i < key2.length; i++) { + if (i) + t = hasOwn ? t[k] : t[k] = {}; + k = key2[i]; + if ((hasOwn = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) { + throw new TomlError("trying to redefine an already defined value", { + toml: str2, + ptr + }); + } + if (!hasOwn && k === "__proto__") { + Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true }); + } + } + if (hasOwn) { + throw new TomlError("trying to redefine an already defined value", { + toml: str2, + ptr + }); + } + let [value, valueEndPtr] = extractValue(str2, keyEndPtr, "}", depth - 1); + seen.add(value); + t[k] = value; + ptr = valueEndPtr; + comma = str2[ptr - 1] === "," ? ptr - 1 : 0; + } + } + if (comma) { + throw new TomlError("trailing commas are not allowed in inline tables", { + toml: str2, + ptr: comma + }); + } + if (!c2) { + throw new TomlError("unfinished table encountered", { + toml: str2, + ptr + }); + } + return [res, ptr]; +} +function parseArray(str2, ptr, depth) { + let res = []; + let c2; + ptr++; + while ((c2 = str2[ptr++]) !== "]" && c2) { + if (c2 === ",") { + throw new TomlError("expected value, found comma", { + toml: str2, + ptr: ptr - 1 + }); + } else if (c2 === "#") + ptr = skipComment(str2, ptr); + else if (c2 !== " " && c2 !== " " && c2 !== "\n" && c2 !== "\r") { + let e = extractValue(str2, ptr - 1, "]", depth - 1); + res.push(e[0]); + ptr = e[1]; + } + } + if (!c2) { + throw new TomlError("unfinished array encountered", { + toml: str2, + ptr + }); + } + return [res, ptr]; +} + +// node_modules/smol-toml/dist/parse.js +function peekTable(key2, table, meta, type2) { + var _a, _b; + let t = table; + let m = meta; + let k; + let hasOwn = false; + let state; + for (let i = 0; i < key2.length; i++) { + if (i) { + t = hasOwn ? t[k] : t[k] = {}; + m = (state = m[k]).c; + if (type2 === 0 && (state.t === 1 || state.t === 2)) { + return null; + } + if (state.t === 2) { + let l = t.length - 1; + t = t[l]; + m = m[l].c; + } + } + k = key2[i]; + if ((hasOwn = Object.hasOwn(t, k)) && ((_a = m[k]) == null ? void 0 : _a.t) === 0 && ((_b = m[k]) == null ? void 0 : _b.d)) { + return null; + } + if (!hasOwn) { + if (k === "__proto__") { + Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true }); + Object.defineProperty(m, k, { enumerable: true, configurable: true, writable: true }); + } + m[k] = { + t: i < key2.length - 1 && type2 === 2 ? 3 : type2, + d: false, + i: 0, + c: {} + }; + } + } + state = m[k]; + if (state.t !== type2 && !(type2 === 1 && state.t === 3)) { + return null; + } + if (type2 === 2) { + if (!state.d) { + state.d = true; + t[k] = []; + } + t[k].push(t = {}); + state.c[state.i++] = state = { t: 1, d: false, i: 0, c: {} }; + } + if (state.d) { + return null; + } + state.d = true; + if (type2 === 1) { + t = hasOwn ? t[k] : t[k] = {}; + } else if (type2 === 0 && hasOwn) { + return null; } - const jsonError = new JSONError(message); - jsonError.fileName = fileName; - if (location) { - jsonError.codeFrame = generateCodeFrame(string, location); - jsonError.rawCodeFrame = generateCodeFrame( - string, - location, - /* highlightCode */ - false - ); + return [k, t, state.c]; +} +function parse4(toml, opts) { + let maxDepth = (opts == null ? void 0 : opts.maxDepth) ?? 1e3; + let res = {}; + let meta = {}; + let tbl = res; + let m = meta; + for (let ptr = skipVoid(toml, 0); ptr < toml.length; ) { + if (toml[ptr] === "[") { + let isTableArray = toml[++ptr] === "["; + let k = parseKey(toml, ptr += +isTableArray, "]"); + if (isTableArray) { + if (toml[k[1] - 1] !== "]") { + throw new TomlError("expected end of table declaration", { + toml, + ptr: k[1] - 1 + }); + } + k[1]++; + } + let p = peekTable( + k[0], + res, + meta, + isTableArray ? 2 : 1 + /* Type.EXPLICIT */ + ); + if (!p) { + throw new TomlError("trying to redefine an already defined table or value", { + toml, + ptr + }); + } + m = p[2]; + tbl = p[1]; + ptr = k[1]; + } else { + let k = parseKey(toml, ptr); + let p = peekTable( + k[0], + tbl, + m, + 0 + /* Type.DOTTED */ + ); + if (!p) { + throw new TomlError("trying to redefine an already defined table or value", { + toml, + ptr + }); + } + let v = extractValue(toml, k[1], void 0, maxDepth); + p[1][p[0]] = v[0]; + ptr = v[1]; + } + ptr = skipVoid(toml, ptr, true); + if (toml[ptr] && toml[ptr] !== "\n" && toml[ptr] !== "\r") { + throw new TomlError("each key-value declaration must be followed by an end-of-line", { + toml, + ptr + }); + } + ptr = skipVoid(toml, ptr); } - throw jsonError; + return res; } // src/utils/read-file.js @@ -16075,7 +15373,7 @@ var loaders = { async ".toml"(file) { const content = await read_file_default(file); try { - return await (0, import_parse_async.default)(content); + return parse4(content); } catch (error) { error.message = `TOML Error in ${file}: ${error.message}`; @@ -17543,11 +16841,16 @@ var require_from_file_default = requireFromFile; var requireErrorCodesShouldBeIgnored = /* @__PURE__ */ new Set([ "MODULE_NOT_FOUND", "ERR_REQUIRE_ESM", - "ERR_PACKAGE_PATH_NOT_EXPORTED" + "ERR_PACKAGE_PATH_NOT_EXPORTED", + "ERR_REQUIRE_ASYNC_MODULE" ]); async function loadExternalConfig(externalConfig, configFile) { try { - return require_from_file_default(externalConfig, configFile); + const required = require_from_file_default(externalConfig, configFile); + if (process.features.require_module && required.__esModule) { + return required.default; + } + return required; } catch (error) { if (!requireErrorCodesShouldBeIgnored.has(error == null ? void 0 : error.code)) { throw error; @@ -17747,23 +17050,22 @@ async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) { if (!content) { return; } - const ignore = createIgnore({ - allowRelativePaths: true - }).add(content); + const ignore = createIgnore({ allowRelativePaths: true }).add(content); return (file) => ignore.ignores(slash(getRelativePath(file, ignoreFile))); } async function createIsIgnoredFunction(ignoreFiles, withNodeModules) { if (ignoreFiles.length === 0 && !withNodeModules) { ignoreFiles = [void 0]; } - const isIgnoredFunctions = (await Promise.all(ignoreFiles.map((ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules)))).filter(Boolean); + const isIgnoredFunctions = (await Promise.all( + ignoreFiles.map( + (ignoreFile) => createSingleIsIgnoredFunction(ignoreFile, withNodeModules) + ) + )).filter(Boolean); return (file) => isIgnoredFunctions.some((isIgnored2) => isIgnored2(file)); } async function isIgnored(file, options8) { - const { - ignorePath: ignoreFiles, - withNodeModules - } = options8; + const { ignorePath: ignoreFiles, withNodeModules } = options8; const isIgnored2 = await createIsIgnoredFunction(ignoreFiles, withNodeModules); return isIgnored2(file); } @@ -17874,7 +17176,7 @@ var get_file_info_default = getFileInfo; // src/common/end-of-line.js function guessEndOfLine(text) { const index = text.indexOf("\r"); - if (index >= 0) { + if (index !== -1) { return text.charAt(index + 1) === "\n" ? "crlf" : "cr"; } return "lf"; @@ -18072,17 +17374,6 @@ var assertDoc = true ? noop : function(doc2) { } }); }; -var assertDocArray = true ? noop : function(docs, optional = false) { - if (optional && !docs) { - return; - } - if (!Array.isArray(docs)) { - throw new TypeError("Unexpected doc array."); - } - for (const doc2 of docs) { - assertDoc(doc2); - } -}; // src/document/builders.js function indent(contents) { @@ -18093,10 +17384,6 @@ function align(widthOrString, contents) { assertDoc(contents); return { type: DOC_TYPE_ALIGN, contents, n: widthOrString }; } -function fill(parts) { - assertDocArray(parts); - return { type: DOC_TYPE_FILL, parts }; -} function lineSuffix(contents) { assertDoc(contents); return { type: DOC_TYPE_LINE_SUFFIX, contents }; @@ -18274,7 +17561,7 @@ var at_default = at; // node_modules/emoji-regex/index.mjs var emoji_regex_default = () => { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE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?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; + return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?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EDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; }; // node_modules/get-east-asian-width/lookup.js @@ -18282,7 +17569,7 @@ function isFullWidth(x) { return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510; } function isWide(x) { - return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; + return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141; } // node_modules/get-east-asian-width/index.js @@ -18333,10 +17620,7 @@ function mapDoc(doc2, cb) { case DOC_TYPE_ARRAY: return cb(doc3.map(rec)); case DOC_TYPE_FILL: - return cb({ - ...doc3, - parts: doc3.parts.map(rec) - }); + return cb({ ...doc3, parts: doc3.parts.map(rec) }); case DOC_TYPE_IF_BREAK: return cb({ ...doc3, @@ -18344,31 +17628,21 @@ function mapDoc(doc2, cb) { flatContents: rec(doc3.flatContents) }); case DOC_TYPE_GROUP: { - let { - expandedStates, - contents - } = doc3; + let { expandedStates, contents } = doc3; if (expandedStates) { expandedStates = expandedStates.map(rec); contents = expandedStates[0]; } else { contents = rec(contents); } - return cb({ - ...doc3, - contents, - expandedStates - }); + return cb({ ...doc3, contents, expandedStates }); } case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: case DOC_TYPE_LINE_SUFFIX: - return cb({ - ...doc3, - contents: rec(doc3.contents) - }); + return cb({ ...doc3, contents: rec(doc3.contents) }); case DOC_TYPE_STRING: case DOC_TYPE_CURSOR: case DOC_TYPE_TRIM: @@ -18460,10 +17734,7 @@ function stripTrailingHardlineFromDoc(doc2) { case DOC_TYPE_LINE_SUFFIX: case DOC_TYPE_LABEL: { const contents = stripTrailingHardlineFromDoc(doc2.contents); - return { - ...doc2, - contents - }; + return { ...doc2, contents }; } case DOC_TYPE_IF_BREAK: return { @@ -18472,10 +17743,7 @@ function stripTrailingHardlineFromDoc(doc2) { flatContents: stripTrailingHardlineFromDoc(doc2.flatContents) }; case DOC_TYPE_FILL: - return { - ...doc2, - parts: stripTrailingHardlineFromParts(doc2.parts) - }; + return { ...doc2, parts: stripTrailingHardlineFromParts(doc2.parts) }; case DOC_TYPE_ARRAY: return stripTrailingHardlineFromParts(doc2); case DOC_TYPE_STRING: @@ -18567,51 +17835,35 @@ function cleanDoc(doc2) { return mapDoc(doc2, (currentDoc) => cleanDocFn(currentDoc)); } function inheritLabel(doc2, fn) { - return doc2.type === DOC_TYPE_LABEL ? { - ...doc2, - contents: fn(doc2.contents) - } : fn(doc2); + return doc2.type === DOC_TYPE_LABEL ? { ...doc2, contents: fn(doc2.contents) } : fn(doc2); } // src/document/printer.js var MODE_BREAK = Symbol("MODE_BREAK"); var MODE_FLAT = Symbol("MODE_FLAT"); var CURSOR_PLACEHOLDER = Symbol("cursor"); +var DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH"); function rootIndent() { - return { - value: "", - length: 0, - queue: [] - }; + return { value: "", length: 0, queue: [] }; } function makeIndent(ind, options8) { - return generateInd(ind, { - type: "indent" - }, options8); + return generateInd(ind, { type: "indent" }, options8); } function makeAlign(indent2, widthOrDoc, options8) { if (widthOrDoc === Number.NEGATIVE_INFINITY) { return indent2.root || rootIndent(); } if (widthOrDoc < 0) { - return generateInd(indent2, { - type: "dedent" - }, options8); + return generateInd(indent2, { type: "dedent" }, options8); } if (!widthOrDoc) { return indent2; } if (widthOrDoc.type === "root") { - return { - ...indent2, - root: indent2 - }; + return { ...indent2, root: indent2 }; } const alignType = typeof widthOrDoc === "string" ? "stringAlign" : "numberAlign"; - return generateInd(indent2, { - type: alignType, - n: widthOrDoc - }, options8); + return generateInd(indent2, { type: alignType, n: widthOrDoc }, options8); } function generateInd(ind, newPart, options8) { const queue = newPart.type === "dedent" ? ind.queue.slice(0, -1) : [...ind.queue, newPart]; @@ -18643,12 +17895,7 @@ function generateInd(ind, newPart, options8) { } } flushSpaces(); - return { - ...ind, - value, - length, - queue - }; + return { ...ind, value, length, queue }; function addTabs(count) { value += " ".repeat(count); length += options8.tabWidth * count; @@ -18727,10 +17974,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat cmds.push(restCommands[--restIdx]); continue; } - const { - mode, - doc: doc2 - } = cmds.pop(); + const { mode, doc: doc2 } = cmds.pop(); const docType = get_doc_type_default(doc2); switch (docType) { case DOC_TYPE_STRING: @@ -18741,10 +17985,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat case DOC_TYPE_FILL: { const parts = docType === DOC_TYPE_ARRAY ? doc2 : doc2.parts; for (let i = parts.length - 1; i >= 0; i--) { - cmds.push({ - mode, - doc: parts[i] - }); + cmds.push({ mode, doc: parts[i] }); } break; } @@ -18752,10 +17993,7 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat case DOC_TYPE_ALIGN: case DOC_TYPE_INDENT_IF_BREAK: case DOC_TYPE_LABEL: - cmds.push({ - mode, - doc: doc2.contents - }); + cmds.push({ mode, doc: doc2.contents }); break; case DOC_TYPE_TRIM: width += trim(out); @@ -18771,20 +18009,14 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat doc2.expandedStates, -1 ) : doc2.contents; - cmds.push({ - mode: groupMode, - doc: contents - }); + cmds.push({ mode: groupMode, doc: contents }); break; } case DOC_TYPE_IF_BREAK: { const groupMode = doc2.groupId ? groupModeMap[doc2.groupId] || MODE_FLAT : mode; const contents = groupMode === MODE_BREAK ? doc2.breakContents : doc2.flatContents; if (contents) { - cmds.push({ - mode, - doc: contents - }); + cmds.push({ mode, doc: contents }); } break; } @@ -18814,22 +18046,14 @@ function printDocToString(doc2, options8) { const width = options8.printWidth; const newLine = convertEndOfLineToChars(options8.endOfLine); let pos2 = 0; - const cmds = [{ - ind: rootIndent(), - mode: MODE_BREAK, - doc: doc2 - }]; + const cmds = [{ ind: rootIndent(), mode: MODE_BREAK, doc: doc2 }]; const out = []; let shouldRemeasure = false; const lineSuffix2 = []; let printedCursorCount = 0; propagateBreaks(doc2); while (cmds.length > 0) { - const { - ind, - mode, - doc: doc3 - } = cmds.pop(); + const { ind, mode, doc: doc3 } = cmds.pop(); switch (get_doc_type_default(doc3)) { case DOC_TYPE_STRING: { const formatted = newLine !== "\n" ? string_replace_all_default( @@ -18847,11 +18071,7 @@ function printDocToString(doc2, options8) { } case DOC_TYPE_ARRAY: for (let i = doc3.length - 1; i >= 0; i--) { - cmds.push({ - ind, - mode, - doc: doc3[i] - }); + cmds.push({ ind, mode, doc: doc3[i] }); } break; case DOC_TYPE_CURSOR: @@ -18862,11 +18082,7 @@ function printDocToString(doc2, options8) { printedCursorCount++; break; case DOC_TYPE_INDENT: - cmds.push({ - ind: makeIndent(ind, options8), - mode, - doc: doc3.contents - }); + cmds.push({ ind: makeIndent(ind, options8), mode, doc: doc3.contents }); break; case DOC_TYPE_ALIGN: cmds.push({ @@ -18889,13 +18105,10 @@ function printDocToString(doc2, options8) { }); break; } + // fallthrough case MODE_BREAK: { shouldRemeasure = false; - const next = { - ind, - mode: MODE_FLAT, - doc: doc3.contents - }; + const next = { ind, mode: MODE_FLAT, doc: doc3.contents }; const rem = width - pos2; const hasLineSuffix = lineSuffix2.length > 0; if (!doc3.break && fits(next, cmds, rem, hasLineSuffix, groupModeMap)) { @@ -18909,28 +18122,16 @@ function printDocToString(doc2, options8) { -1 ); if (doc3.break) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { for (let i = 1; i < doc3.expandedStates.length + 1; i++) { if (i >= doc3.expandedStates.length) { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: mostExpanded - }); + cmds.push({ ind, mode: MODE_BREAK, doc: mostExpanded }); break; } else { const state = doc3.expandedStates[i]; - const cmd = { - ind, - mode: MODE_FLAT, - doc: state - }; + const cmd = { ind, mode: MODE_FLAT, doc: state }; if (fits(cmd, cmds, rem, hasLineSuffix, groupModeMap)) { cmds.push(cmd); break; @@ -18939,11 +18140,7 @@ function printDocToString(doc2, options8) { } } } else { - cmds.push({ - ind, - mode: MODE_BREAK, - doc: doc3.contents - }); + cmds.push({ ind, mode: MODE_BREAK, doc: doc3.contents }); } } break; @@ -18958,27 +18155,47 @@ function printDocToString(doc2, options8) { ).mode; } break; + // Fills each line with as much code as possible before moving to a new + // line with the same indentation. + // + // Expects doc.parts to be an array of alternating content and + // whitespace. The whitespace contains the linebreaks. + // + // For example: + // ["I", line, "love", line, "monkeys"] + // or + // [{ type: group, ... }, softline, { type: group, ... }] + // + // It uses this parts structure to handle three main layout cases: + // * The first two content items fit on the same line without + // breaking + // -> output the first content item and the whitespace "flat". + // * Only the first content item fits on the line without breaking + // -> output the first content item "flat" and the whitespace with + // "break". + // * Neither content item fits on the line without breaking + // -> output the first content item and the whitespace with "break". case DOC_TYPE_FILL: { const rem = width - pos2; - const { - parts - } = doc3; - if (parts.length === 0) { + const offset = doc3[DOC_FILL_PRINTED_LENGTH] ?? 0; + const { parts } = doc3; + const length = parts.length - offset; + if (length === 0) { break; } - const [content, whitespace] = parts; - const contentFlatCmd = { - ind, - mode: MODE_FLAT, - doc: content - }; - const contentBreakCmd = { - ind, - mode: MODE_BREAK, - doc: content - }; - const contentFits = fits(contentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); - if (parts.length === 1) { + const content = parts[offset + 0]; + const whitespace = parts[offset + 1]; + const contentFlatCmd = { ind, mode: MODE_FLAT, doc: content }; + const contentBreakCmd = { ind, mode: MODE_BREAK, doc: content }; + const contentFits = fits( + contentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); + if (length === 1) { if (contentFits) { cmds.push(contentFlatCmd); } else { @@ -18986,17 +18203,9 @@ function printDocToString(doc2, options8) { } break; } - const whitespaceFlatCmd = { - ind, - mode: MODE_FLAT, - doc: whitespace - }; - const whitespaceBreakCmd = { - ind, - mode: MODE_BREAK, - doc: whitespace - }; - if (parts.length === 2) { + const whitespaceFlatCmd = { ind, mode: MODE_FLAT, doc: whitespace }; + const whitespaceBreakCmd = { ind, mode: MODE_BREAK, doc: whitespace }; + if (length === 2) { if (contentFits) { cmds.push(whitespaceFlatCmd, contentFlatCmd); } else { @@ -19004,19 +18213,25 @@ function printDocToString(doc2, options8) { } break; } - parts.splice(0, 2); + const secondContent = parts[offset + 2]; const remainingCmd = { ind, mode, - doc: fill(parts) + doc: { ...doc3, [DOC_FILL_PRINTED_LENGTH]: offset + 2 } }; - const secondContent = parts[0]; const firstAndSecondContentFlatCmd = { ind, mode: MODE_FLAT, doc: [content, whitespace, secondContent] }; - const firstAndSecondContentFits = fits(firstAndSecondContentFlatCmd, [], rem, lineSuffix2.length > 0, groupModeMap, true); + const firstAndSecondContentFits = fits( + firstAndSecondContentFlatCmd, + [], + rem, + lineSuffix2.length > 0, + groupModeMap, + true + ); if (firstAndSecondContentFits) { cmds.push(remainingCmd, whitespaceFlatCmd, contentFlatCmd); } else if (contentFits) { @@ -19032,39 +18247,23 @@ function printDocToString(doc2, options8) { if (groupMode === MODE_BREAK) { const breakContents = doc3.type === DOC_TYPE_IF_BREAK ? doc3.breakContents : doc3.negate ? doc3.contents : indent(doc3.contents); if (breakContents) { - cmds.push({ - ind, - mode, - doc: breakContents - }); + cmds.push({ ind, mode, doc: breakContents }); } } if (groupMode === MODE_FLAT) { const flatContents = doc3.type === DOC_TYPE_IF_BREAK ? doc3.flatContents : doc3.negate ? indent(doc3.contents) : doc3.contents; if (flatContents) { - cmds.push({ - ind, - mode, - doc: flatContents - }); + cmds.push({ ind, mode, doc: flatContents }); } } break; } case DOC_TYPE_LINE_SUFFIX: - lineSuffix2.push({ - ind, - mode, - doc: doc3.contents - }); + lineSuffix2.push({ ind, mode, doc: doc3.contents }); break; case DOC_TYPE_LINE_SUFFIX_BOUNDARY: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: hardlineWithoutBreakParent - }); + cmds.push({ ind, mode, doc: hardlineWithoutBreakParent }); } break; case DOC_TYPE_LINE: @@ -19079,13 +18278,10 @@ function printDocToString(doc2, options8) { } else { shouldRemeasure = true; } + // fallthrough case MODE_BREAK: if (lineSuffix2.length > 0) { - cmds.push({ - ind, - mode, - doc: doc3 - }, ...lineSuffix2.reverse()); + cmds.push({ ind, mode, doc: doc3 }, ...lineSuffix2.reverse()); lineSuffix2.length = 0; break; } @@ -19106,11 +18302,7 @@ function printDocToString(doc2, options8) { } break; case DOC_TYPE_LABEL: - cmds.push({ - ind, - mode, - doc: doc3.contents - }); + cmds.push({ ind, mode, doc: doc3.contents }); break; case DOC_TYPE_BREAK_PARENT: break; @@ -19124,7 +18316,15 @@ function printDocToString(doc2, options8) { } const cursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER); if (cursorPlaceholderIndex !== -1) { - const otherCursorPlaceholderIndex = out.indexOf(CURSOR_PLACEHOLDER, cursorPlaceholderIndex + 1); + const otherCursorPlaceholderIndex = out.indexOf( + CURSOR_PLACEHOLDER, + cursorPlaceholderIndex + 1 + ); + if (otherCursorPlaceholderIndex === -1) { + return { + formatted: out.filter((char) => char !== CURSOR_PLACEHOLDER).join("") + }; + } const beforeCursor = out.slice(0, cursorPlaceholderIndex).join(""); const aroundCursor = out.slice(cursorPlaceholderIndex + 1, otherCursorPlaceholderIndex).join(""); const afterCursor = out.slice(otherCursorPlaceholderIndex + 1).join(""); @@ -19134,9 +18334,7 @@ function printDocToString(doc2, options8) { cursorNodeText: aroundCursor }; } - return { - formatted: out.join("") - }; + return { formatted: out.join("") }; } // src/utils/get-alignment-size.js @@ -19162,10 +18360,7 @@ var AstPath = class { } /** @type {string | null} */ get key() { - const { - stack: stack2, - siblings - } = this; + const { stack: stack2, siblings } = this; return at_default( /* isOptionalObject */ false, @@ -19205,9 +18400,7 @@ var AstPath = class { } /** @type {object[] | null} */ get siblings() { - const { - stack: stack2 - } = this; + const { stack: stack2 } = this; const maybeArray = at_default( /* isOptionalObject */ false, @@ -19218,16 +18411,12 @@ var AstPath = class { } /** @type {object | null} */ get next() { - const { - siblings - } = this; + const { siblings } = this; return siblings === null ? null : siblings[this.index + 1]; } /** @type {object | null} */ get previous() { - const { - siblings - } = this; + const { siblings } = this; return siblings === null ? null : siblings[this.index - 1]; } /** @type {boolean} */ @@ -19236,10 +18425,7 @@ var AstPath = class { } /** @type {boolean} */ get isLast() { - const { - siblings, - index - } = this; + const { siblings, index } = this; return siblings !== null && index === siblings.length - 1; } /** @type {boolean} */ @@ -19257,12 +18443,8 @@ var AstPath = class { // The name of the current property is always the penultimate element of // this.stack, and always a string/number/symbol. getName() { - const { - stack: stack2 - } = this; - const { - length - } = stack2; + const { stack: stack2 } = this; + const { length } = stack2; if (length > 1) { return at_default( /* isOptionalObject */ @@ -19296,12 +18478,8 @@ var AstPath = class { // be restored to its original state after the callback is finished, so it // is probably a mistake to retain a reference to the path. call(callback, ...names) { - const { - stack: stack2 - } = this; - const { - length - } = stack2; + const { stack: stack2 } = this; + const { length } = stack2; let value = at_default( /* isOptionalObject */ false, @@ -19338,12 +18516,8 @@ var AstPath = class { // callback will be called with a reference to this path object for each // element of the array. each(callback, ...names) { - const { - stack: stack2 - } = this; - const { - length - } = stack2; + const { stack: stack2 } = this; + const { length } = stack2; let value = at_default( /* isOptionalObject */ false, @@ -19369,9 +18543,12 @@ var AstPath = class { // the end of the iteration. map(callback, ...names) { const result = []; - this.each((path13, index, value) => { - result[index] = callback(path13, index, value); - }, ...names); + this.each( + (path13, index, value) => { + result[index] = callback(path13, index, value); + }, + ...names + ); return result; } /** @@ -19435,9 +18612,7 @@ var AstPath = class { }; _AstPath_instances = new WeakSet(); getNodeStackIndex_fn = function(count) { - const { - stack: stack2 - } = this; + const { stack: stack2 } = this; for (let i = stack2.length - 1; i >= 0; i -= 2) { if (!Array.isArray(stack2[i]) && --count < 0) { return i; @@ -19446,9 +18621,7 @@ getNodeStackIndex_fn = function(count) { return -1; }; getAncestors_fn = function* () { - const { - stack: stack2 - } = this; + const { stack: stack2 } = this; for (let index = stack2.length - 3; index >= 0; index -= 2) { const value = stack2[index]; if (!Array.isArray(value)) { @@ -19494,6 +18667,9 @@ function* getDescendants(node, options8) { } } } +function isLeaf(node, options8) { + return getChildren(node, options8).next().done; +} // src/utils/skip.js function skip(characters) { @@ -20296,15 +19472,12 @@ var core_options_evaluate_default = { }; // src/main/support.js -function getSupportInfo({ - plugins = [], - showDeprecated = false -} = {}) { +function getSupportInfo({ plugins = [], showDeprecated = false } = {}) { const languages2 = plugins.flatMap((plugin) => plugin.languages ?? []); const options8 = []; - for (const option of normalizeOptionSettings(Object.assign({}, ...plugins.map(({ - options: options9 - }) => options9), core_options_evaluate_default))) { + for (const option of normalizeOptionSettings( + Object.assign({}, ...plugins.map(({ options: options9 }) => options9), core_options_evaluate_default) + )) { if (!showDeprecated && option.deprecated) { continue; } @@ -20313,19 +19486,21 @@ function getSupportInfo({ option.choices = option.choices.filter((choice) => !choice.deprecated); } if (option.name === "parser") { - option.choices = [...option.choices, ...collectParsersFromLanguages(option.choices, languages2, plugins)]; + option.choices = [ + ...option.choices, + ...collectParsersFromLanguages(option.choices, languages2, plugins) + ]; } } - option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => { - var _a; - return ((_a = plugin.defaultOptions) == null ? void 0 : _a[option.name]) !== void 0; - }).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]])); + option.pluginDefaults = Object.fromEntries( + plugins.filter((plugin) => { + var _a; + return ((_a = plugin.defaultOptions) == null ? void 0 : _a[option.name]) !== void 0; + }).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]) + ); options8.push(option); } - return { - languages: languages2, - options: options8 - }; + return { languages: languages2, options: options8 }; } function* collectParsersFromLanguages(parserChoices, languages2, plugins) { const existingParsers = new Set(parserChoices.map((choice) => choice.value)); @@ -20334,15 +19509,14 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) { for (const parserName of language.parsers) { if (!existingParsers.has(parserName)) { existingParsers.add(parserName); - const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName)); + const plugin = plugins.find( + (plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName) + ); let description = language.name; if (plugin == null ? void 0 : plugin.name) { description += ` (plugin: ${plugin.name})`; } - yield { - value: parserName, - description - }; + yield { value: parserName, description }; } } } @@ -20351,10 +19525,7 @@ function* collectParsersFromLanguages(parserChoices, languages2, plugins) { function normalizeOptionSettings(settings) { const options8 = []; for (const [name, originalOption] of Object.entries(settings)) { - const option = { - name, - ...originalOption - }; + const option = { name, ...originalOption }; if (Array.isArray(option.default)) { option.default = at_default( /* isOptionalObject */ @@ -20388,23 +19559,13 @@ function normalizeOptions(options8, optionInfos, { descriptor = apiDescriptor; } const unknown = !passThrough ? (key2, value, options9) => { - const { - _, - ...schemas2 - } = options9.schemas; + const { _, ...schemas2 } = options9.schemas; return levenUnknownHandler(key2, value, { ...options9, schemas: schemas2 }); - } : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { - [key2]: value - } : (key2, value) => ({ - [key2]: value - }); - const schemas = optionInfosToSchemas(optionInfos, { - isCLI, - FlagSchema - }); + } : Array.isArray(passThrough) ? (key2, value) => !passThrough.includes(key2) ? void 0 : { [key2]: value } : (key2, value) => ({ [key2]: value }); + const schemas = optionInfosToSchemas(optionInfos, { isCLI, FlagSchema }); const normalizer = new Normalizer(schemas, { logger, unknown, @@ -20420,43 +19581,34 @@ function normalizeOptions(options8, optionInfos, { } return normalized; } -function optionInfosToSchemas(optionInfos, { - isCLI, - FlagSchema -}) { +function optionInfosToSchemas(optionInfos, { isCLI, FlagSchema }) { const schemas = []; if (isCLI) { - schemas.push(AnySchema.create({ - name: "_" - })); + schemas.push(AnySchema.create({ name: "_" })); } for (const optionInfo of optionInfos) { - schemas.push(optionInfoToSchema(optionInfo, { - isCLI, - optionInfos, - FlagSchema - })); + schemas.push( + optionInfoToSchema(optionInfo, { + isCLI, + optionInfos, + FlagSchema + }) + ); if (optionInfo.alias && isCLI) { - schemas.push(AliasSchema.create({ - // @ts-expect-error - name: optionInfo.alias, - sourceName: optionInfo.name - })); + schemas.push( + AliasSchema.create({ + // @ts-expect-error + name: optionInfo.alias, + sourceName: optionInfo.name + }) + ); } } return schemas; } -function optionInfoToSchema(optionInfo, { - isCLI, - optionInfos, - FlagSchema -}) { - const { - name - } = optionInfo; - const parameters = { - name - }; +function optionInfoToSchema(optionInfo, { isCLI, optionInfos, FlagSchema }) { + const { name } = optionInfo; + const parameters = { name }; let SchemaConstructor; const handlers = {}; switch (optionInfo.type) { @@ -20471,22 +19623,27 @@ function optionInfoToSchema(optionInfo, { break; case "choice": SchemaConstructor = ChoiceSchema; - parameters.choices = optionInfo.choices.map((choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { - ...choiceInfo, - redirect: { - to: { - key: optionInfo.name, - value: choiceInfo.redirect + parameters.choices = optionInfo.choices.map( + (choiceInfo) => (choiceInfo == null ? void 0 : choiceInfo.redirect) ? { + ...choiceInfo, + redirect: { + to: { key: optionInfo.name, value: choiceInfo.redirect } } - } - } : choiceInfo); + } : choiceInfo + ); break; case "boolean": SchemaConstructor = BooleanSchema; break; case "flag": SchemaConstructor = FlagSchema; - parameters.flags = optionInfos.flatMap((optionInfo2) => [optionInfo2.alias, optionInfo2.description && optionInfo2.name, optionInfo2.oppositeDescription && `no-${optionInfo2.name}`].filter(Boolean)); + parameters.flags = optionInfos.flatMap( + (optionInfo2) => [ + optionInfo2.alias, + optionInfo2.description && optionInfo2.name, + optionInfo2.oppositeDescription && `no-${optionInfo2.name}` + ].filter(Boolean) + ); break; case "path": SchemaConstructor = StringSchema; @@ -20512,24 +19669,22 @@ function optionInfoToSchema(optionInfo, { } if (isCLI && !optionInfo.array) { const originalPreprocess = parameters.preprocess || ((x) => x); - parameters.preprocess = (value, schema2, utils) => schema2.preprocess(originalPreprocess(Array.isArray(value) ? at_default( - /* isOptionalObject */ - false, - value, - -1 - ) : value), utils); + parameters.preprocess = (value, schema2, utils) => schema2.preprocess( + originalPreprocess(Array.isArray(value) ? at_default( + /* isOptionalObject */ + false, + value, + -1 + ) : value), + utils + ); } return optionInfo.array ? ArraySchema.create({ - ...isCLI ? { - preprocess: (v) => Array.isArray(v) ? v : [v] - } : {}, + ...isCLI ? { preprocess: (v) => Array.isArray(v) ? v : [v] } : {}, ...handlers, // @ts-expect-error valueSchema: SchemaConstructor.create(parameters) - }) : SchemaConstructor.create({ - ...parameters, - ...handlers - }); + }) : SchemaConstructor.create({ ...parameters, ...handlers }); } var normalize_options_default = normalizeOptions; @@ -20589,10 +19744,7 @@ function getPrinterPluginByAstFormat(plugins, astFormat) { } throw new ConfigError(message); } -function resolveParser({ - plugins, - parser -}) { +function resolveParser({ plugins, parser }) { const plugin = getParserPluginByParserName(plugins, parser); return initParser(plugin, parser); } @@ -20675,8 +19827,8 @@ async function normalizeFormatOptions(options8, opts = {}) { var normalize_format_options_default = normalizeFormatOptions; // src/main/parse.js -var import_code_frame2 = __toESM(require_lib3(), 1); -async function parse4(originalText, options8) { +var import_code_frame2 = __toESM(require_lib2(), 1); +async function parse5(originalText, options8) { const parser = await resolveParser(options8); const text = parser.preprocess ? parser.preprocess(originalText, options8) : originalText; options8.originalText = text; @@ -20704,7 +19856,7 @@ function handleParseError(error, text) { } throw error; } -var parse_default = parse4; +var parse_default = parse5; // src/main/multiparser.js async function printEmbeddedLanguages(path13, genericPrint, options8, printAstToDoc2, embeds) { @@ -20831,6 +19983,12 @@ async function printAstToDoc(ast, options8) { embeds ); ensureAllCommentsPrinted(options8); + if (options8.nodeAfterCursor && !options8.nodeBeforeCursor) { + return [cursor, doc2]; + } + if (options8.nodeBeforeCursor && !options8.nodeAfterCursor) { + return [doc2, cursor]; + } return doc2; function mainPrint(selector, args) { if (selector === void 0 || selector === path13) { @@ -20870,8 +20028,16 @@ function callPluginPrintFunction(path13, options8, printPath, args, embeds) { } else { doc2 = printer.print(path13, options8, printPath, args); } - if (node === options8.cursorNode) { - doc2 = inheritLabel(doc2, (doc3) => [cursor, doc3, cursor]); + switch (node) { + case options8.cursorNode: + doc2 = inheritLabel(doc2, (doc3) => [cursor, doc3, cursor]); + break; + case options8.nodeBeforeCursor: + doc2 = inheritLabel(doc2, (doc3) => [doc3, cursor]); + break; + case options8.nodeAfterCursor: + doc2 = inheritLabel(doc2, (doc3) => [cursor, doc3]); + break; } if (printer.printComment && (!printer.willPrintOwnComments || !printer.willPrintOwnComments(path13, options8))) { doc2 = printComments(path13, doc2, options8); @@ -20892,22 +20058,55 @@ async function prepareToPrint(ast, options8) { } // src/main/get-cursor-node.js -function getCursorNode(ast, options8) { +function getCursorLocation(ast, options8) { const { cursorOffset, locStart, locEnd } = options8; const getVisitorKeys = create_get_visitor_keys_function_default( options8.printer.getVisitorKeys ); const nodeContainsCursor = (node) => locStart(node) <= cursorOffset && locEnd(node) >= cursorOffset; let cursorNode = ast; + const nodesContainingCursor = [ast]; for (const node of getDescendants(ast, { getVisitorKeys, filter: nodeContainsCursor })) { + nodesContainingCursor.push(node); cursorNode = node; } - return cursorNode; + if (isLeaf(cursorNode, { getVisitorKeys })) { + return { cursorNode }; + } + let nodeBeforeCursor; + let nodeAfterCursor; + let nodeBeforeCursorEndIndex = -1; + let nodeAfterCursorStartIndex = Number.POSITIVE_INFINITY; + while (nodesContainingCursor.length > 0 && (nodeBeforeCursor === void 0 || nodeAfterCursor === void 0)) { + cursorNode = nodesContainingCursor.pop(); + const foundBeforeNode = nodeBeforeCursor !== void 0; + const foundAfterNode = nodeAfterCursor !== void 0; + for (const node of getChildren(cursorNode, { getVisitorKeys })) { + if (!foundBeforeNode) { + const nodeEnd = locEnd(node); + if (nodeEnd <= cursorOffset && nodeEnd > nodeBeforeCursorEndIndex) { + nodeBeforeCursor = node; + nodeBeforeCursorEndIndex = nodeEnd; + } + } + if (!foundAfterNode) { + const nodeStart = locStart(node); + if (nodeStart >= cursorOffset && nodeStart < nodeAfterCursorStartIndex) { + nodeAfterCursor = node; + nodeAfterCursorStartIndex = nodeStart; + } + } + } + } + return { + nodeBeforeCursor, + nodeAfterCursor + }; } -var get_cursor_node_default = getCursorNode; +var get_cursor_node_default = getCursorLocation; // src/main/massage-ast.js function massageAst(ast, options8) { @@ -20971,13 +20170,19 @@ var array_find_last_index_default = arrayFindLastIndex; // src/main/range-util.js import assert5 from "assert"; -var isJsonParser = ({ - parser -}) => parser === "json" || parser === "json5" || parser === "jsonc" || parser === "json-stringify"; +var isJsonParser = ({ parser }) => parser === "json" || parser === "json5" || parser === "jsonc" || parser === "json-stringify"; function findCommonAncestor(startNodeAndParents, endNodeAndParents) { - const startNodeAndAncestors = [startNodeAndParents.node, ...startNodeAndParents.parentNodes]; - const endNodeAndAncestors = /* @__PURE__ */ new Set([endNodeAndParents.node, ...endNodeAndParents.parentNodes]); - return startNodeAndAncestors.find((node) => jsonSourceElements.has(node.type) && endNodeAndAncestors.has(node)); + const startNodeAndAncestors = [ + startNodeAndParents.node, + ...startNodeAndParents.parentNodes + ]; + const endNodeAndAncestors = /* @__PURE__ */ new Set([ + endNodeAndParents.node, + ...endNodeAndParents.parentNodes + ]); + return startNodeAndAncestors.find( + (node) => jsonSourceElements.has(node.type) && endNodeAndAncestors.has(node) + ); } function dropRootParents(parents) { const index = array_find_last_index_default( @@ -20991,10 +20196,7 @@ function dropRootParents(parents) { } return parents.slice(0, index + 1); } -function findSiblingAncestors(startNodeAndParents, endNodeAndParents, { - locStart, - locEnd -}) { +function findSiblingAncestors(startNodeAndParents, endNodeAndParents, { locStart, locEnd }) { let resultStartNode = startNodeAndParents.node; let resultEndNode = endNodeAndParents.node; if (resultStartNode === resultEndNode) { @@ -21028,17 +20230,21 @@ function findSiblingAncestors(startNodeAndParents, endNodeAndParents, { }; } function findNodeAtOffset(node, offset, options8, predicate, parentNodes = [], type2) { - const { - locStart, - locEnd - } = options8; + const { locStart, locEnd } = options8; const start = locStart(node); const end = locEnd(node); if (offset > end || offset < start || type2 === "rangeEnd" && offset === start || type2 === "rangeStart" && offset === end) { return; } for (const childNode of getSortedChildNodes(node, options8)) { - const childResult = findNodeAtOffset(childNode, offset, options8, predicate, [node, ...parentNodes], type2); + const childResult = findNodeAtOffset( + childNode, + offset, + options8, + predicate, + [node, ...parentNodes], + type2 + ); if (childResult) { return childResult; } @@ -21053,8 +20259,35 @@ function findNodeAtOffset(node, offset, options8, predicate, parentNodes = [], t function isJsSourceElement(type2, parentType) { return parentType !== "DeclareExportDeclaration" && type2 !== "TypeParameterDeclaration" && (type2 === "Directive" || type2 === "TypeAlias" || type2 === "TSExportAssignment" || type2.startsWith("Declare") || type2.startsWith("TSDeclare") || type2.endsWith("Statement") || type2.endsWith("Declaration")); } -var jsonSourceElements = /* @__PURE__ */ new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]); -var graphqlSourceElements = /* @__PURE__ */ new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]); +var jsonSourceElements = /* @__PURE__ */ new Set([ + "JsonRoot", + "ObjectExpression", + "ArrayExpression", + "StringLiteral", + "NumericLiteral", + "BooleanLiteral", + "NullLiteral", + "UnaryExpression", + "TemplateLiteral" +]); +var graphqlSourceElements = /* @__PURE__ */ new Set([ + "OperationDefinition", + "FragmentDefinition", + "VariableDefinition", + "TypeExtensionDefinition", + "ObjectTypeDefinition", + "FieldDefinition", + "DirectiveDefinition", + "EnumTypeDefinition", + "EnumValueDefinition", + "InputValueDefinition", + "InputObjectTypeDefinition", + "SchemaDefinition", + "OperationTypeDefinition", + "InterfaceTypeDefinition", + "UnionTypeDefinition", + "ScalarTypeDefinition" +]); function isSourceElement(opts, node, parentNode) { if (!node) { return false; @@ -21083,12 +20316,7 @@ function isSourceElement(opts, node, parentNode) { return false; } function calculateRange(text, opts, ast) { - let { - rangeStart: start, - rangeEnd: end, - locStart, - locEnd - } = opts; + let { rangeStart: start, rangeEnd: end, locStart, locEnd } = opts; assert5.ok(end > start); const firstNonWhitespaceCharacterIndex = text.slice(start, end).search(/\S/u); const isAllWhitespace = firstNonWhitespaceCharacterIndex === -1; @@ -21100,10 +20328,24 @@ function calculateRange(text, opts, ast) { } } } - const startNodeAndParents = findNodeAtOffset(ast, start, opts, (node, parentNode) => isSourceElement(opts, node, parentNode), [], "rangeStart"); + const startNodeAndParents = findNodeAtOffset( + ast, + start, + opts, + (node, parentNode) => isSourceElement(opts, node, parentNode), + [], + "rangeStart" + ); const endNodeAndParents = ( // No need find Node at `end`, it will be the same as `startNodeAndParents` - isAllWhitespace ? startNodeAndParents : findNodeAtOffset(ast, end, opts, (node) => isSourceElement(opts, node), [], "rangeEnd") + isAllWhitespace ? startNodeAndParents : findNodeAtOffset( + ast, + end, + opts, + (node) => isSourceElement(opts, node), + [], + "rangeEnd" + ) ); if (!startNodeAndParents || !endNodeAndParents) { return { @@ -21114,14 +20356,18 @@ function calculateRange(text, opts, ast) { let startNode; let endNode; if (isJsonParser(opts)) { - const commonAncestor = findCommonAncestor(startNodeAndParents, endNodeAndParents); + const commonAncestor = findCommonAncestor( + startNodeAndParents, + endNodeAndParents + ); startNode = commonAncestor; endNode = commonAncestor; } else { - ({ - startNode, - endNode - } = findSiblingAncestors(startNodeAndParents, endNodeAndParents, opts)); + ({ startNode, endNode } = findSiblingAncestors( + startNodeAndParents, + endNodeAndParents, + opts + )); } return { rangeStart: Math.min(locStart(startNode), locStart(endNode)), @@ -21134,18 +20380,14 @@ var BOM = "\uFEFF"; var CURSOR = Symbol("cursor"); async function coreFormat(originalText, opts, addAlignmentSize = 0) { if (!originalText || originalText.trim().length === 0) { - return { - formatted: "", - cursorOffset: -1, - comments: [] - }; + return { formatted: "", cursorOffset: -1, comments: [] }; } - const { - ast, - text - } = await parse_default(originalText, opts); + const { ast, text } = await parse_default(originalText, opts); if (opts.cursorOffset >= 0) { - opts.cursorNode = get_cursor_node_default(ast, opts); + opts = { + ...opts, + ...get_cursor_node_default(ast, opts) + }; } let doc2 = await printAstToDoc(ast, opts, addAlignmentSize); if (addAlignmentSize > 0) { @@ -21156,41 +20398,70 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) { const trimmed = result.formatted.trim(); if (result.cursorNodeStart !== void 0) { result.cursorNodeStart -= result.formatted.indexOf(trimmed); + if (result.cursorNodeStart < 0) { + result.cursorNodeStart = 0; + result.cursorNodeText = result.cursorNodeText.trimStart(); + } + if (result.cursorNodeStart + result.cursorNodeText.length > trimmed.length) { + result.cursorNodeText = result.cursorNodeText.trimEnd(); + } } result.formatted = trimmed + convertEndOfLineToChars(opts.endOfLine); } const comments = opts[Symbol.for("comments")]; if (opts.cursorOffset >= 0) { - let oldCursorNodeStart; - let oldCursorNodeText; - let cursorOffsetRelativeToOldCursorNode; - let newCursorNodeStart; - let newCursorNodeText; - if (opts.cursorNode && result.cursorNodeText) { - oldCursorNodeStart = opts.locStart(opts.cursorNode); - oldCursorNodeText = text.slice(oldCursorNodeStart, opts.locEnd(opts.cursorNode)); - cursorOffsetRelativeToOldCursorNode = opts.cursorOffset - oldCursorNodeStart; - newCursorNodeStart = result.cursorNodeStart; - newCursorNodeText = result.cursorNodeText; + let oldCursorRegionStart; + let oldCursorRegionText; + let newCursorRegionStart; + let newCursorRegionText; + if ((opts.cursorNode || opts.nodeBeforeCursor || opts.nodeAfterCursor) && result.cursorNodeText) { + newCursorRegionStart = result.cursorNodeStart; + newCursorRegionText = result.cursorNodeText; + if (opts.cursorNode) { + oldCursorRegionStart = opts.locStart(opts.cursorNode); + oldCursorRegionText = text.slice( + oldCursorRegionStart, + opts.locEnd(opts.cursorNode) + ); + } else { + if (!opts.nodeBeforeCursor && !opts.nodeAfterCursor) { + throw new Error( + "Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor" + ); + } + oldCursorRegionStart = opts.nodeBeforeCursor ? opts.locEnd(opts.nodeBeforeCursor) : 0; + const oldCursorRegionEnd = opts.nodeAfterCursor ? opts.locStart(opts.nodeAfterCursor) : text.length; + oldCursorRegionText = text.slice( + oldCursorRegionStart, + oldCursorRegionEnd + ); + } } else { - oldCursorNodeStart = 0; - oldCursorNodeText = text; - cursorOffsetRelativeToOldCursorNode = opts.cursorOffset; - newCursorNodeStart = 0; - newCursorNodeText = result.formatted; + oldCursorRegionStart = 0; + oldCursorRegionText = text; + newCursorRegionStart = 0; + newCursorRegionText = result.formatted; } - if (oldCursorNodeText === newCursorNodeText) { + const cursorOffsetRelativeToOldCursorRegionStart = opts.cursorOffset - oldCursorRegionStart; + if (oldCursorRegionText === newCursorRegionText) { return { formatted: result.formatted, - cursorOffset: newCursorNodeStart + cursorOffsetRelativeToOldCursorNode, + cursorOffset: newCursorRegionStart + cursorOffsetRelativeToOldCursorRegionStart, comments }; } - const oldCursorNodeCharArray = oldCursorNodeText.split(""); - oldCursorNodeCharArray.splice(cursorOffsetRelativeToOldCursorNode, 0, CURSOR); - const newCursorNodeCharArray = newCursorNodeText.split(""); - const cursorNodeDiff = diffArrays(oldCursorNodeCharArray, newCursorNodeCharArray); - let cursorOffset = newCursorNodeStart; + const oldCursorNodeCharArray = oldCursorRegionText.split(""); + oldCursorNodeCharArray.splice( + cursorOffsetRelativeToOldCursorRegionStart, + 0, + CURSOR + ); + const newCursorNodeCharArray = newCursorRegionText.split(""); + const cursorNodeDiff = diffArrays( + oldCursorNodeCharArray, + newCursorNodeCharArray + ); + let cursorOffset = newCursorRegionStart; for (const entry of cursorNodeDiff) { if (entry.removed) { if (entry.value.includes(CURSOR)) { @@ -21200,44 +20471,35 @@ async function coreFormat(originalText, opts, addAlignmentSize = 0) { cursorOffset += entry.count; } } - return { - formatted: result.formatted, - cursorOffset, - comments - }; + return { formatted: result.formatted, cursorOffset, comments }; } - return { - formatted: result.formatted, - cursorOffset: -1, - comments - }; + return { formatted: result.formatted, cursorOffset: -1, comments }; } async function formatRange(originalText, opts) { - const { - ast, - text - } = await parse_default(originalText, opts); - const { - rangeStart, - rangeEnd - } = calculateRange(text, opts, ast); + const { ast, text } = await parse_default(originalText, opts); + const { rangeStart, rangeEnd } = calculateRange(text, opts, ast); const rangeString = text.slice(rangeStart, rangeEnd); - const rangeStart2 = Math.min(rangeStart, text.lastIndexOf("\n", rangeStart) + 1); + const rangeStart2 = Math.min( + rangeStart, + text.lastIndexOf("\n", rangeStart) + 1 + ); const indentString = text.slice(rangeStart2, rangeStart).match(/^\s*/u)[0]; const alignmentSize = get_alignment_size_default(indentString, opts.tabWidth); - const rangeResult = await coreFormat(rangeString, { - ...opts, - rangeStart: 0, - rangeEnd: Number.POSITIVE_INFINITY, - // Track the cursor offset only if it's within our range - cursorOffset: opts.cursorOffset > rangeStart && opts.cursorOffset <= rangeEnd ? opts.cursorOffset - rangeStart : -1, - // Always use `lf` to format, we'll replace it later - endOfLine: "lf" - }, alignmentSize); + const rangeResult = await coreFormat( + rangeString, + { + ...opts, + rangeStart: 0, + rangeEnd: Number.POSITIVE_INFINITY, + // Track the cursor offset only if it's within our range + cursorOffset: opts.cursorOffset > rangeStart && opts.cursorOffset <= rangeEnd ? opts.cursorOffset - rangeStart : -1, + // Always use `lf` to format, we'll replace it later + endOfLine: "lf" + }, + alignmentSize + ); const rangeTrimmed = rangeResult.formatted.trimEnd(); - let { - cursorOffset - } = opts; + let { cursorOffset } = opts; if (cursorOffset > rangeEnd) { cursorOffset += rangeTrimmed.length - rangeString.length; } else if (rangeResult.cursorOffset >= 0) { @@ -21247,7 +20509,10 @@ async function formatRange(originalText, opts) { if (opts.endOfLine !== "lf") { const eol = convertEndOfLineToChars(opts.endOfLine); if (cursorOffset >= 0 && eol === "\r\n") { - cursorOffset += countEndOfLineChars(formatted.slice(0, cursorOffset), "\n"); + cursorOffset += countEndOfLineChars( + formatted.slice(0, cursorOffset), + "\n" + ); } formatted = string_replace_all_default( /* isOptionalObject */ @@ -21257,11 +20522,7 @@ async function formatRange(originalText, opts) { eol ); } - return { - formatted, - cursorOffset, - comments: rangeResult.comments - }; + return { formatted, cursorOffset, comments: rangeResult.comments }; } function ensureIndexInText(text, index, defaultValue) { if (typeof index !== "number" || Number.isNaN(index) || index < 0 || index > text.length) { @@ -21270,28 +20531,17 @@ function ensureIndexInText(text, index, defaultValue) { return index; } function normalizeIndexes(text, options8) { - let { - cursorOffset, - rangeStart, - rangeEnd - } = options8; + let { cursorOffset, rangeStart, rangeEnd } = options8; cursorOffset = ensureIndexInText(text, cursorOffset, -1); rangeStart = ensureIndexInText(text, rangeStart, 0); rangeEnd = ensureIndexInText(text, rangeEnd, text.length); - return { - ...options8, - cursorOffset, - rangeStart, - rangeEnd - }; + return { ...options8, cursorOffset, rangeStart, rangeEnd }; } function normalizeInputAndOptions(text, options8) { - let { - cursorOffset, - rangeStart, - rangeEnd, - endOfLine - } = normalizeIndexes(text, options8); + let { cursorOffset, rangeStart, rangeEnd, endOfLine } = normalizeIndexes( + text, + options8 + ); const hasBOM = text.charAt(0) === BOM; if (hasBOM) { text = text.slice(1); @@ -21326,11 +20576,10 @@ async function hasPragma(text, options8) { return !selectedParser.hasPragma || selectedParser.hasPragma(text); } async function formatWithCursor(originalText, originalOptions) { - let { - hasBOM, - text, - options: options8 - } = normalizeInputAndOptions(originalText, await normalize_format_options_default(originalOptions)); + let { hasBOM, text, options: options8 } = normalizeInputAndOptions( + originalText, + await normalize_format_options_default(originalOptions) + ); if (options8.rangeStart >= options8.rangeEnd && text !== "" || options8.requirePragma && !await hasPragma(text, options8)) { return { formatted: originalText, @@ -21355,11 +20604,11 @@ async function formatWithCursor(originalText, originalOptions) { } return result; } -async function parse5(originalText, originalOptions, devOptions) { - const { - text, - options: options8 - } = normalizeInputAndOptions(originalText, await normalize_format_options_default(originalOptions)); +async function parse6(originalText, originalOptions, devOptions) { + const { text, options: options8 } = normalizeInputAndOptions( + originalText, + await normalize_format_options_default(originalOptions) + ); const parsed = await parse_default(text, options8); if (devOptions) { if (devOptions.preprocessForPrint) { @@ -21378,9 +20627,7 @@ async function formatAst(ast, options8) { } async function formatDoc(doc2, options8) { const text = printDocToDebug(doc2); - const { - formatted - } = await formatWithCursor(text, { + const { formatted } = await formatWithCursor(text, { ...options8, parser: "__js_expression" }); @@ -21388,13 +20635,14 @@ async function formatDoc(doc2, options8) { } async function printToDoc(originalText, options8) { options8 = await normalize_format_options_default(options8); - const { - ast - } = await parse_default(originalText, options8); + const { ast } = await parse_default(originalText, options8); return printAstToDoc(ast, options8); } async function printDocToString2(doc2, options8) { - return printDocToString(doc2, await normalize_format_options_default(options8)); + return printDocToString( + doc2, + await normalize_format_options_default(options8) + ); } // src/main/option-categories.js @@ -22495,7 +21743,7 @@ var object_omit_default = omit; import * as doc from "./doc.mjs"; // src/main/version.evaluate.cjs -var version_evaluate_default = "3.3.3"; +var version_evaluate_default = "3.4.1"; // src/utils/public.js var public_exports = {}; @@ -22508,6 +21756,7 @@ __export(public_exports, { getMaxContinuousCount: () => get_max_continuous_count_default, getNextNonSpaceNonCommentCharacter: () => get_next_non_space_non_comment_character_default, getNextNonSpaceNonCommentCharacterIndex: () => getNextNonSpaceNonCommentCharacterIndex2, + getPreferredQuote: () => get_preferred_quote_default, getStringWidth: () => get_string_width_default, hasNewline: () => has_newline_default, hasNewlineInRange: () => has_newline_in_range_default, @@ -22629,6 +21878,25 @@ function getNextNonSpaceNonCommentCharacter(text, startIndex) { } var get_next_non_space_non_comment_character_default = getNextNonSpaceNonCommentCharacter; +// src/utils/get-preferred-quote.js +var SINGLE_QUOTE = "'"; +var DOUBLE_QUOTE = '"'; +function getPreferredQuote(text, preferredQuoteOrPreferSingleQuote) { + const preferred = preferredQuoteOrPreferSingleQuote === true || preferredQuoteOrPreferSingleQuote === SINGLE_QUOTE ? SINGLE_QUOTE : DOUBLE_QUOTE; + const alternate = preferred === SINGLE_QUOTE ? DOUBLE_QUOTE : SINGLE_QUOTE; + let preferredQuoteCount = 0; + let alternateQuoteCount = 0; + for (const character of text) { + if (character === preferred) { + preferredQuoteCount++; + } else if (character === alternate) { + alternateQuoteCount++; + } + } + return preferredQuoteCount > alternateQuoteCount ? alternate : preferred; +} +var get_preferred_quote_default = getPreferredQuote; + // src/utils/has-newline-in-range.js function hasNewlineInRange(text, startIndex, endIndex) { for (let i = startIndex; i < endIndex; ++i) { @@ -22760,14 +22028,12 @@ var sharedWithCli = { fastGlob: import_fast_glob.default, createTwoFilesPatch, utils: { - isNonEmptyArray: is_non_empty_array_default, - partition: partition_default, omit: object_omit_default }, mockable: mockable_default }; var debugApis = { - parse: withPlugins(parse5), + parse: withPlugins(parse6), formatAST: withPlugins(formatAst), formatDoc: withPlugins(formatDoc), printToDoc: withPlugins(printToDoc), diff --git a/node_modules/prettier/internal/cli.mjs b/node_modules/prettier/internal/cli.mjs index 3b5e153c..394e0fb7 100644 --- a/node_modules/prettier/internal/cli.mjs +++ b/node_modules/prettier/internal/cli.mjs @@ -628,9 +628,9 @@ var require_cjs = __commonJS({ var primitive = "string"; var ignore = {}; var object = "object"; - var noop = (_, value) => value; + var noop = (_2, value) => value; var primitives = (value) => value instanceof Primitive ? Primitive(value) : value; - var Primitives = (_, value) => typeof value === primitive ? new Primitive(value) : value; + var Primitives = (_2, value) => typeof value === primitive ? new Primitive(value) : value; var revive = (input, parsed, output, $) => { const lazy = []; for (let ke = keys(output), { length } = ke, y = 0; y < length; y++) { @@ -701,9 +701,9 @@ var require_cjs = __commonJS({ } }); -// node_modules/file-entry-cache/node_modules/flat-cache/src/utils.js +// node_modules/flat-cache/src/utils.js var require_utils = __commonJS({ - "node_modules/file-entry-cache/node_modules/flat-cache/src/utils.js"(exports, module) { + "node_modules/flat-cache/src/utils.js"(exports, module) { var fs6 = __require("fs"); var path10 = __require("path"); var flatted = require_cjs(); @@ -733,9 +733,9 @@ var require_utils = __commonJS({ } }); -// node_modules/file-entry-cache/node_modules/flat-cache/src/del.js +// node_modules/flat-cache/src/del.js var require_del = __commonJS({ - "node_modules/file-entry-cache/node_modules/flat-cache/src/del.js"(exports, module) { + "node_modules/flat-cache/src/del.js"(exports, module) { var fs6 = __require("fs"); var path10 = __require("path"); function del(targetPath) { @@ -763,9 +763,9 @@ var require_del = __commonJS({ } }); -// node_modules/file-entry-cache/node_modules/flat-cache/src/cache.js +// node_modules/flat-cache/src/cache.js var require_cache = __commonJS({ - "node_modules/file-entry-cache/node_modules/flat-cache/src/cache.js"(exports, module) { + "node_modules/flat-cache/src/cache.js"(exports, module) { var path10 = __require("path"); var fs6 = __require("fs"); var Keyv = require_src(); @@ -963,15 +963,14 @@ var require_cache = __commonJS({ var require_cache2 = __commonJS({ "node_modules/file-entry-cache/cache.js"(exports, module) { var path10 = __require("path"); - var process5 = __require("process"); var crypto = __require("crypto"); module.exports = { - createFromFile(filePath, useChecksum) { + createFromFile(filePath, useChecksum, currentWorkingDir) { const fname = path10.basename(filePath); const dir = path10.dirname(filePath); - return this.create(fname, dir, useChecksum); + return this.create(fname, dir, useChecksum, currentWorkingDir); }, - create(cacheId, _path, useChecksum) { + create(cacheId, _path, useChecksum, currentWorkingDir) { const fs6 = __require("fs"); const flatCache = require_cache(); const cache = flatCache.load(cacheId, _path); @@ -980,7 +979,11 @@ var require_cache2 = __commonJS({ const cachedEntries = cache.keys(); for (const fPath of cachedEntries) { try { - fs6.statSync(fPath); + let filePath = fPath; + if (currentWorkingDir) { + filePath = path10.join(currentWorkingDir, fPath); + } + fs6.statSync(filePath); } catch (error) { if (error.code === "ENOENT") { cache.removeKey(fPath); @@ -995,6 +998,11 @@ var require_cache2 = __commonJS({ * @type {Object} */ cache, + /** + * To enable relative paths as the key with current working directory + * @type {string} + */ + currentWorkingDir: currentWorkingDir ?? void 0, /** * Given a buffer, calculate md5 hash of its content. * @method getHash @@ -1046,9 +1054,6 @@ var require_cache2 = __commonJS({ getFileDescriptor(file) { let fstat; try { - if (!path10.isAbsolute(file)) { - file = path10.resolve(process5.cwd(), file); - } fstat = fs6.statSync(file); } catch (error) { this.removeEntry(file); @@ -1059,8 +1064,14 @@ var require_cache2 = __commonJS({ } return this._getFileDescriptorUsingMtimeAndSize(file, fstat); }, + _getFileKey(file) { + if (this.currentWorkingDir) { + return file.split(this.currentWorkingDir).pop(); + } + return file; + }, _getFileDescriptorUsingMtimeAndSize(file, fstat) { - let meta = cache.getKey(file); + let meta = cache.getKey(this._getFileKey(file)); const cacheExists = Boolean(meta); const cSize = fstat.size; const cTime = fstat.mtime.getTime(); @@ -1072,15 +1083,15 @@ var require_cache2 = __commonJS({ } else { meta = { size: cSize, mtime: cTime }; } - const nEntry = normalizedEntries[file] = { - key: file, + const nEntry = normalizedEntries[this._getFileKey(file)] = { + key: this._getFileKey(file), changed: !cacheExists || isDifferentDate || isDifferentSize, meta }; return nEntry; }, _getFileDescriptorUsingChecksum(file) { - let meta = cache.getKey(file); + let meta = cache.getKey(this._getFileKey(file)); const cacheExists = Boolean(meta); let contentBuffer; try { @@ -1095,8 +1106,8 @@ var require_cache2 = __commonJS({ } else { meta = { hash }; } - const nEntry = normalizedEntries[file] = { - key: file, + const nEntry = normalizedEntries[this._getFileKey(file)] = { + key: this._getFileKey(file), changed: !cacheExists || isDifferent, meta }; @@ -1135,11 +1146,8 @@ var require_cache2 = __commonJS({ * @param entryName */ removeEntry(entryName) { - if (!path10.isAbsolute(entryName)) { - entryName = path10.resolve(process5.cwd(), entryName); - } - delete normalizedEntries[entryName]; - cache.removeKey(entryName); + delete normalizedEntries[this._getFileKey(entryName)]; + cache.removeKey(this._getFileKey(entryName)); }, /** * Delete the cache file from the disk @@ -1156,7 +1164,11 @@ var require_cache2 = __commonJS({ cache.destroy(); }, _getMetaForFileUsingCheckSum(cacheEntry) { - const contentBuffer = fs6.readFileSync(cacheEntry.key); + let filePath = cacheEntry.key; + if (this.currentWorkingDir) { + filePath = path10.join(this.currentWorkingDir, filePath); + } + const contentBuffer = fs6.readFileSync(filePath); const hash = this.getHash(contentBuffer); const meta = Object.assign(cacheEntry.meta, { hash }); delete meta.size; @@ -1164,7 +1176,11 @@ var require_cache2 = __commonJS({ return meta; }, _getMetaForFileUsingMtimeAndSize(cacheEntry) { - const stat = fs6.statSync(cacheEntry.key); + let filePath = cacheEntry.key; + if (currentWorkingDir) { + filePath = path10.join(currentWorkingDir, filePath); + } + const stat = fs6.statSync(filePath); const meta = Object.assign(cacheEntry.meta, { size: stat.size, mtime: stat.mtime.getTime() @@ -1189,7 +1205,7 @@ var require_cache2 = __commonJS({ const cacheEntry = entries[entryName]; try { const meta = useChecksum ? me._getMetaForFileUsingCheckSum(cacheEntry) : me._getMetaForFileUsingMtimeAndSize(cacheEntry); - cache.setKey(entryName, meta); + cache.setKey(this._getFileKey(entryName), meta); } catch (error) { if (error.code !== "ENOENT") { throw error; @@ -1204,223 +1220,6 @@ var require_cache2 = __commonJS({ } }); -// node_modules/wcwidth.js/combining.js -var require_combining = __commonJS({ - "node_modules/wcwidth.js/combining.js"(exports, module) { - module.exports = [ - [768, 879], - [1155, 1158], - [1160, 1161], - [1425, 1469], - [1471, 1471], - [1473, 1474], - [1476, 1477], - [1479, 1479], - [1536, 1539], - [1552, 1557], - [1611, 1630], - [1648, 1648], - [1750, 1764], - [1767, 1768], - [1770, 1773], - [1807, 1807], - [1809, 1809], - [1840, 1866], - [1958, 1968], - [2027, 2035], - [2305, 2306], - [2364, 2364], - [2369, 2376], - [2381, 2381], - [2385, 2388], - [2402, 2403], - [2433, 2433], - [2492, 2492], - [2497, 2500], - [2509, 2509], - [2530, 2531], - [2561, 2562], - [2620, 2620], - [2625, 2626], - [2631, 2632], - [2635, 2637], - [2672, 2673], - [2689, 2690], - [2748, 2748], - [2753, 2757], - [2759, 2760], - [2765, 2765], - [2786, 2787], - [2817, 2817], - [2876, 2876], - [2879, 2879], - [2881, 2883], - [2893, 2893], - [2902, 2902], - [2946, 2946], - [3008, 3008], - [3021, 3021], - [3134, 3136], - [3142, 3144], - [3146, 3149], - [3157, 3158], - [3260, 3260], - [3263, 3263], - [3270, 3270], - [3276, 3277], - [3298, 3299], - [3393, 3395], - [3405, 3405], - [3530, 3530], - [3538, 3540], - [3542, 3542], - [3633, 3633], - [3636, 3642], - [3655, 3662], - [3761, 3761], - [3764, 3769], - [3771, 3772], - [3784, 3789], - [3864, 3865], - [3893, 3893], - [3895, 3895], - [3897, 3897], - [3953, 3966], - [3968, 3972], - [3974, 3975], - [3984, 3991], - [3993, 4028], - [4038, 4038], - [4141, 4144], - [4146, 4146], - [4150, 4151], - [4153, 4153], - [4184, 4185], - [4448, 4607], - [4959, 4959], - [5906, 5908], - [5938, 5940], - [5970, 5971], - [6002, 6003], - [6068, 6069], - [6071, 6077], - [6086, 6086], - [6089, 6099], - [6109, 6109], - [6155, 6157], - [6313, 6313], - [6432, 6434], - [6439, 6440], - [6450, 6450], - [6457, 6459], - [6679, 6680], - [6912, 6915], - [6964, 6964], - [6966, 6970], - [6972, 6972], - [6978, 6978], - [7019, 7027], - [7616, 7626], - [7678, 7679], - [8203, 8207], - [8234, 8238], - [8288, 8291], - [8298, 8303], - [8400, 8431], - [12330, 12335], - [12441, 12442], - [43014, 43014], - [43019, 43019], - [43045, 43046], - [64286, 64286], - [65024, 65039], - [65056, 65059], - [65279, 65279], - [65529, 65531], - [68097, 68099], - [68101, 68102], - [68108, 68111], - [68152, 68154], - [68159, 68159], - [119143, 119145], - [119155, 119170], - [119173, 119179], - [119210, 119213], - [119362, 119364], - [917505, 917505], - [917536, 917631], - [917760, 917999] - ]; - } -}); - -// node_modules/wcwidth.js/index.js -var require_wcwidth = __commonJS({ - "node_modules/wcwidth.js/index.js"(exports, module) { - var combining = require_combining(); - var DEFAULTS = { - nul: 0, - control: 0 - }; - function bisearch(ucs) { - let min = 0; - let max = combining.length - 1; - let mid; - if (ucs < combining[0][0] || ucs > combining[max][1]) return false; - while (max >= min) { - mid = Math.floor((min + max) / 2); - if (ucs > combining[mid][1]) min = mid + 1; - else if (ucs < combining[mid][0]) max = mid - 1; - else return true; - } - return false; - } - function wcwidth2(ucs, opts) { - if (ucs === 0) return opts.nul; - if (ucs < 32 || ucs >= 127 && ucs < 160) return opts.control; - if (bisearch(ucs)) return 0; - return 1 + (ucs >= 4352 && (ucs <= 4447 || // Hangul Jamo init. consonants - ucs == 9001 || ucs == 9002 || ucs >= 11904 && ucs <= 42191 && ucs != 12351 || // CJK ... Yi - ucs >= 44032 && ucs <= 55203 || // Hangul Syllables - ucs >= 63744 && ucs <= 64255 || // CJK Compatibility Ideographs - ucs >= 65040 && ucs <= 65049 || // Vertical forms - ucs >= 65072 && ucs <= 65135 || // CJK Compatibility Forms - ucs >= 65280 && ucs <= 65376 || // Fullwidth Forms - ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141)); - } - function wcswidth(str, opts) { - let h; - let l; - let s = 0; - let n; - if (typeof str !== "string") return wcwidth2(str, opts); - for (let i = 0; i < str.length; i++) { - h = str.charCodeAt(i); - if (h >= 55296 && h <= 56319) { - l = str.charCodeAt(++i); - if (l >= 56320 && l <= 57343) { - h = (h - 55296) * 1024 + (l - 56320) + 65536; - } else { - i--; - } - } - n = wcwidth2(h, opts); - if (n < 0) return -1; - s += n; - } - return s; - } - module.exports = (str) => wcswidth(str, DEFAULTS); - module.exports.config = (opts = {}) => { - opts = { - ...DEFAULTS, - ...opts - }; - return (str) => wcswidth(str, opts); - }; - } -}); - // src/cli/index.js import * as prettier2 from "../index.mjs"; @@ -1760,7 +1559,7 @@ var postProcess = (input, toUpperCase) => { (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match) ), SEPARATORS_AND_IDENTIFIER, - (_, identifier) => toUpperCase(identifier) + (_2, identifier) => toUpperCase(identifier) ); }; function camelCase(input, options) { @@ -1868,11 +1667,7 @@ var normalizeToPosix = path.sep === "\\" ? (filepath) => string_replace_all_defa "\\", "/" ) : (filepath) => filepath; -var { - isNonEmptyArray, - partition, - omit -} = sharedWithCli2.utils; +var { omit } = sharedWithCli2.utils; // src/cli/options/create-minimist-options.js function createMinimistOptions(detailedOptions) { @@ -2538,22 +2333,16 @@ function parseArgvWithoutPlugins(rawArguments, logger, keys) { // src/cli/context.js var _stack; var Context = class { - constructor({ - rawArguments, - logger - }) { + constructor({ rawArguments, logger }) { __privateAdd(this, _stack, []); this.rawArguments = rawArguments; this.logger = logger; } async init() { - const { - rawArguments, - logger - } = this; - const { - plugins - } = parseArgvWithoutPlugins(rawArguments, logger, ["plugin"]); + const { rawArguments, logger } = this; + const { plugins } = parseArgvWithoutPlugins(rawArguments, logger, [ + "plugin" + ]); await this.pushContextPlugins(plugins); const argv = parseArgv(rawArguments, this.detailedOptions, logger); this.argv = argv; @@ -2578,10 +2367,7 @@ var Context = class { } // eslint-disable-next-line getter-return get performanceTestFlag() { - const { - debugBenchmark, - debugRepeat - } = this.argv; + const { debugBenchmark, debugRepeat } = this.argv; if (debugBenchmark) { return { name: "--debug-benchmark", @@ -2594,9 +2380,7 @@ var Context = class { debugRepeat }; } - const { - PRETTIER_PERF_REPEAT - } = process.env; + const { PRETTIER_PERF_REPEAT } = process.env; if (PRETTIER_PERF_REPEAT && /^\d+$/u.test(PRETTIER_PERF_REPEAT)) { return { name: "PRETTIER_PERF_REPEAT (environment variable)", @@ -2653,16 +2437,12 @@ import path3 from "path"; async function* expandPatterns(context) { const seen = /* @__PURE__ */ new Set(); let noResults = true; - for await (const { - filePath, - ignoreUnknown, - error - } of expandPatternsInternal(context)) { + for await (const { filePath, ignoreUnknown, error } of expandPatternsInternal( + context + )) { noResults = false; if (error) { - yield { - error - }; + yield { error }; continue; } const filename = path3.resolve(filePath); @@ -2670,10 +2450,7 @@ async function* expandPatterns(context) { continue; } seen.add(filename); - yield { - filename, - ignoreUnknown - }; + yield { filename, ignoreUnknown }; } if (noResults && context.argv.errorOnUnmatchedPattern !== false) { yield { @@ -2682,7 +2459,7 @@ async function* expandPatterns(context) { } } async function* expandPatternsInternal(context) { - const silentlyIgnoredDirs = [".git", ".sl", ".svn", ".hg"]; + const silentlyIgnoredDirs = [".git", ".sl", ".svn", ".hg", ".jj"]; if (context.argv.withNodeModules !== true) { silentlyIgnoredDirs.push("node_modules"); } @@ -2706,7 +2483,9 @@ async function* expandPatternsInternal(context) { error: `Explicitly specified pattern "${pattern}" is a symbolic link.` }; } else { - context.logger.debug(`Skipping pattern "${pattern}", as it is a symbolic link.`); + context.logger.debug( + `Skipping pattern "${pattern}", as it is a symbolic link.` + ); } } else if (stat.isFile()) { entries.push({ @@ -2734,18 +2513,11 @@ async function* expandPatternsInternal(context) { }); } } - for (const { - type, - glob, - input, - ignoreUnknown - } of entries) { + for (const { type, glob, input, ignoreUnknown } of entries) { let result; try { result = await fastGlob(glob, globOptions); - } catch ({ - message - }) { + } catch ({ message }) { yield { error: `${errorMessages.globError[type]}: "${input}". ${message}` @@ -2754,15 +2526,10 @@ ${message}` } if (result.length === 0) { if (context.argv.errorOnUnmatchedPattern !== false) { - yield { - error: `${errorMessages.emptyResults[type]}: "${input}".` - }; + yield { error: `${errorMessages.emptyResults[type]}: "${input}".` }; } } else { - yield* sortPaths(result).map((filePath) => ({ - filePath, - ignoreUnknown - })); + yield* sortPaths(result).map((filePath) => ({ filePath, ignoreUnknown })); } } } @@ -2828,7 +2595,7 @@ import path6 from "path"; import path5 from "path"; import { fileURLToPath as fileURLToPath2 } from "url"; -// node_modules/pkg-dir/node_modules/locate-path/index.js +// node_modules/locate-path/index.js import process3 from "process"; import path4 from "path"; import fs2, { promises as fsPromises } from "fs"; @@ -3552,11 +3319,12 @@ ${error2.message}` // src/cli/logger.js import readline from "readline"; -// node_modules/ansi-regex/index.js +// node_modules/strip-ansi/node_modules/ansi-regex/index.js function ansiRegex({ onlyFirst = false } = {}) { + const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)"; const pattern = [ - "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", - "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" + `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`, + "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))" ].join("|"); return new RegExp(pattern, onlyFirst ? void 0 : "g"); } @@ -3570,13 +3338,221 @@ function stripAnsi(string) { return string.replace(regex, ""); } +// node_modules/wcwidth.js/combining.js +var combining_default = [ + [768, 879], + [1155, 1158], + [1160, 1161], + [1425, 1469], + [1471, 1471], + [1473, 1474], + [1476, 1477], + [1479, 1479], + [1536, 1539], + [1552, 1557], + [1611, 1630], + [1648, 1648], + [1750, 1764], + [1767, 1768], + [1770, 1773], + [1807, 1807], + [1809, 1809], + [1840, 1866], + [1958, 1968], + [2027, 2035], + [2305, 2306], + [2364, 2364], + [2369, 2376], + [2381, 2381], + [2385, 2388], + [2402, 2403], + [2433, 2433], + [2492, 2492], + [2497, 2500], + [2509, 2509], + [2530, 2531], + [2561, 2562], + [2620, 2620], + [2625, 2626], + [2631, 2632], + [2635, 2637], + [2672, 2673], + [2689, 2690], + [2748, 2748], + [2753, 2757], + [2759, 2760], + [2765, 2765], + [2786, 2787], + [2817, 2817], + [2876, 2876], + [2879, 2879], + [2881, 2883], + [2893, 2893], + [2902, 2902], + [2946, 2946], + [3008, 3008], + [3021, 3021], + [3134, 3136], + [3142, 3144], + [3146, 3149], + [3157, 3158], + [3260, 3260], + [3263, 3263], + [3270, 3270], + [3276, 3277], + [3298, 3299], + [3393, 3395], + [3405, 3405], + [3530, 3530], + [3538, 3540], + [3542, 3542], + [3633, 3633], + [3636, 3642], + [3655, 3662], + [3761, 3761], + [3764, 3769], + [3771, 3772], + [3784, 3789], + [3864, 3865], + [3893, 3893], + [3895, 3895], + [3897, 3897], + [3953, 3966], + [3968, 3972], + [3974, 3975], + [3984, 3991], + [3993, 4028], + [4038, 4038], + [4141, 4144], + [4146, 4146], + [4150, 4151], + [4153, 4153], + [4184, 4185], + [4448, 4607], + [4959, 4959], + [5906, 5908], + [5938, 5940], + [5970, 5971], + [6002, 6003], + [6068, 6069], + [6071, 6077], + [6086, 6086], + [6089, 6099], + [6109, 6109], + [6155, 6157], + [6313, 6313], + [6432, 6434], + [6439, 6440], + [6450, 6450], + [6457, 6459], + [6679, 6680], + [6912, 6915], + [6964, 6964], + [6966, 6970], + [6972, 6972], + [6978, 6978], + [7019, 7027], + [7616, 7626], + [7678, 7679], + [8203, 8207], + [8234, 8238], + [8288, 8291], + [8298, 8303], + [8400, 8431], + [12330, 12335], + [12441, 12442], + [43014, 43014], + [43019, 43019], + [43045, 43046], + [64286, 64286], + [65024, 65039], + [65056, 65059], + [65279, 65279], + [65529, 65531], + [68097, 68099], + [68101, 68102], + [68108, 68111], + [68152, 68154], + [68159, 68159], + [119143, 119145], + [119155, 119170], + [119173, 119179], + [119210, 119213], + [119362, 119364], + [917505, 917505], + [917536, 917631], + [917760, 917999] +]; + +// node_modules/wcwidth.js/index.js +var DEFAULTS = { + nul: 0, + control: 0 +}; +function bisearch(ucs) { + let min = 0; + let max = combining_default.length - 1; + let mid; + if (ucs < combining_default[0][0] || ucs > combining_default[max][1]) return false; + while (max >= min) { + mid = Math.floor((min + max) / 2); + if (ucs > combining_default[mid][1]) min = mid + 1; + else if (ucs < combining_default[mid][0]) max = mid - 1; + else return true; + } + return false; +} +function wcwidth(ucs, opts) { + if (ucs === 0) return opts.nul; + if (ucs < 32 || ucs >= 127 && ucs < 160) return opts.control; + if (bisearch(ucs)) return 0; + return 1 + (ucs >= 4352 && (ucs <= 4447 || // Hangul Jamo init. consonants + ucs == 9001 || ucs == 9002 || ucs >= 11904 && ucs <= 42191 && ucs != 12351 || // CJK ... Yi + ucs >= 44032 && ucs <= 55203 || // Hangul Syllables + ucs >= 63744 && ucs <= 64255 || // CJK Compatibility Ideographs + ucs >= 65040 && ucs <= 65049 || // Vertical forms + ucs >= 65072 && ucs <= 65135 || // CJK Compatibility Forms + ucs >= 65280 && ucs <= 65376 || // Fullwidth Forms + ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141)); +} +function wcswidth(str, opts) { + let h; + let l; + let s = 0; + let n; + if (typeof str !== "string") return wcwidth(str, opts); + for (let i = 0; i < str.length; i++) { + h = str.charCodeAt(i); + if (h >= 55296 && h <= 56319) { + l = str.charCodeAt(++i); + if (l >= 56320 && l <= 57343) { + h = (h - 55296) * 1024 + (l - 56320) + 65536; + } else { + i--; + } + } + n = wcwidth(h, opts); + if (n < 0) return -1; + s += n; + } + return s; +} +var _ = (str) => wcswidth(str, DEFAULTS); +_.config = (opts = {}) => { + opts = { + ...DEFAULTS, + ...opts + }; + return (str) => wcswidth(str, opts); +}; +var wcwidth_default = _; + // src/cli/logger.js -var import_wcwidth = __toESM(require_wcwidth(), 1); var countLines = (stream, text) => { const columns = stream.columns || 80; let lineCount = 0; for (const line of stripAnsi(text).split("\n")) { - lineCount += Math.max(1, Math.ceil((0, import_wcwidth.default)(line) / columns)); + lineCount += Math.max(1, Math.ceil(wcwidth_default(line) / columns)); } return lineCount; }; @@ -3590,10 +3566,8 @@ var clear = (stream, text) => () => { readline.cursorTo(stream, 0); } }; -var emptyLogResult = { - clear() { - } -}; +var emptyLogResult = { clear() { +} }; function createLogger(logLevel = "log") { return { logLevel, @@ -3638,14 +3612,17 @@ function createLogger(logLevel = "log") { if (loggerName === "debug") { return true; } + // fall through case "log": if (loggerName === "log") { return true; } + // fall through case "warn": if (loggerName === "warn") { return true; } + // fall through case "error": return loggerName === "error"; } @@ -3697,14 +3674,16 @@ function createDefaultValueDisplay(value) { } function getOptionDefaultValue(context, optionName) { var _a; - const option = context.detailedOptions.find(({ - name - }) => name === optionName); + const option = context.detailedOptions.find( + ({ name }) => name === optionName + ); if ((option == null ? void 0 : option.default) !== void 0) { return option.default; } const optionCamelName = camelCase(optionName); - return formatOptionsHiddenDefaults[optionCamelName] ?? ((_a = context.supportOptions.find((option2) => !option2.deprecated && option2.name === optionCamelName)) == null ? void 0 : _a.default); + return formatOptionsHiddenDefaults[optionCamelName] ?? ((_a = context.supportOptions.find( + (option2) => !option2.deprecated && option2.name === optionCamelName + )) == null ? void 0 : _a.default); } function createOptionUsageHeader(option) { const name = `--${option.name}`; @@ -3738,25 +3717,39 @@ function createOptionUsageType(option) { function createChoiceUsages(choices, margin, indentation) { const activeChoices = choices.filter((choice) => !choice.deprecated); const threshold = Math.max(0, ...activeChoices.map((choice) => choice.value.length)) + margin; - return activeChoices.map((choice) => indent(createOptionUsageRow(choice.value, choice.description, threshold), indentation)); + return activeChoices.map( + (choice) => indent( + createOptionUsageRow(choice.value, choice.description, threshold), + indentation + ) + ); } function createOptionUsage(context, option, threshold) { const header = createOptionUsageHeader(option); const optionDefaultValue = getOptionDefaultValue(context, option.name); - return createOptionUsageRow(header, `${option.description}${optionDefaultValue === void 0 ? "" : ` -Defaults to ${createDefaultValueDisplay(optionDefaultValue)}.`}`, threshold); + return createOptionUsageRow( + header, + `${option.description}${optionDefaultValue === void 0 ? "" : ` +Defaults to ${createDefaultValueDisplay(optionDefaultValue)}.`}`, + threshold + ); } function getOptionsWithOpposites(options) { - const optionsWithOpposites = options.map((option) => [option.description ? option : null, option.oppositeDescription ? { - ...option, - name: `no-${option.name}`, - type: "boolean", - description: option.oppositeDescription - } : null]); + const optionsWithOpposites = options.map((option) => [ + option.description ? option : null, + option.oppositeDescription ? { + ...option, + name: `no-${option.name}`, + type: "boolean", + description: option.oppositeDescription + } : null + ]); return optionsWithOpposites.flat().filter(Boolean); } function createUsage(context) { - const sortedOptions = context.detailedOptions.sort((optionA, optionB) => optionA.name.localeCompare(optionB.name)); + const sortedOptions = context.detailedOptions.sort( + (optionA, optionB) => optionA.name.localeCompare(optionB.name) + ); const options = getOptionsWithOpposites(sortedOptions).filter( // remove unnecessary option (e.g. `semi`, `color`, etc.), which is only used for --help (option) => !(option.type === "boolean" && option.oppositeDescription && !option.name.startsWith("no-")) @@ -3764,10 +3757,18 @@ function createUsage(context) { const groupedOptions = groupBy(options, (option) => option.category); const firstCategories = categoryOrder.slice(0, -1); const lastCategories = categoryOrder.slice(-1); - const restCategories = Object.keys(groupedOptions).filter((category) => !categoryOrder.includes(category)); - const allCategories = [...firstCategories, ...restCategories, ...lastCategories]; + const restCategories = Object.keys(groupedOptions).filter( + (category) => !categoryOrder.includes(category) + ); + const allCategories = [ + ...firstCategories, + ...restCategories, + ...lastCategories + ]; const optionsUsage = allCategories.map((category) => { - const categoryOptions = groupedOptions[category].map((option) => createOptionUsage(context, option, OPTION_USAGE_THRESHOLD)).join("\n"); + const categoryOptions = groupedOptions[category].map( + (option) => createOptionUsage(context, option, OPTION_USAGE_THRESHOLD) + ).join("\n"); return `${category} options: ${indent(categoryOptions, 2)}`; @@ -3778,13 +3779,19 @@ function createPluginDefaults(pluginDefaults) { if (!pluginDefaults || Object.keys(pluginDefaults).length === 0) { return ""; } - const defaults = Object.entries(pluginDefaults).sort(([pluginNameA], [pluginNameB]) => pluginNameA.localeCompare(pluginNameB)).map(([plugin, value]) => `* ${plugin}: ${createDefaultValueDisplay(value)}`).join("\n"); + const defaults = Object.entries(pluginDefaults).sort( + ([pluginNameA], [pluginNameB]) => pluginNameA.localeCompare(pluginNameB) + ).map( + ([plugin, value]) => `* ${plugin}: ${createDefaultValueDisplay(value)}` + ).join("\n"); return ` Plugin defaults: ${defaults}`; } function createDetailedUsage(context, flag) { - const option = getOptionsWithOpposites(context.detailedOptions).find((option2) => option2.name === flag || option2.alias === flag); + const option = getOptionsWithOpposites(context.detailedOptions).find( + (option2) => option2.name === flag || option2.alias === flag + ); const header = createOptionUsageHeader(option); const description = ` @@ -3793,7 +3800,11 @@ ${indent(option.description, 2)}`; Valid options: -${createChoiceUsages(option.choices, CHOICE_USAGE_MARGIN, CHOICE_USAGE_INDENTATION).join("\n")}`; +${createChoiceUsages( + option.choices, + CHOICE_USAGE_MARGIN, + CHOICE_USAGE_INDENTATION + ).join("\n")}`; const optionDefaultValue = getOptionDefaultValue(context, option.name); const defaults = optionDefaultValue !== void 0 ? ` diff --git a/node_modules/prettier/package.json b/node_modules/prettier/package.json index 5e41d42e..a7dba719 100644 --- a/node_modules/prettier/package.json +++ b/node_modules/prettier/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "3.3.3", + "version": "3.4.1", "description": "Prettier is an opinionated code formatter", "bin": "./bin/prettier.cjs", "repository": "prettier/prettier", @@ -194,5 +194,6 @@ "standalone.js", "standalone.mjs" ], - "preferUnplugged": true + "preferUnplugged": true, + "type": "commonjs" } \ No newline at end of file diff --git a/node_modules/prettier/plugins/acorn.js b/node_modules/prettier/plugins/acorn.js index a8b26ec6..4fe0ec72 100644 --- a/node_modules/prettier/plugins/acorn.js +++ b/node_modules/prettier/plugins/acorn.js @@ -1,15 +1,15 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.acorn=e()}})(function(){"use strict";var di=Object.create;var ce=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)ce(e,i,{get:t[i],enumerable:!0})},Ze=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&ce(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},Ze(t||!e||!e.__esModule?ce(i,"default",{value:e,enumerable:!0}):i,e)),bi=e=>Ze(ce({},"__esModule",{value:!0}),e);var Jt=$e((zs,qt)=>{qt.exports={}});var Ge=$e((Qs,Je)=>{"use strict";var rs=Jt(),as=/^[\da-fA-F]+$/,ns=/^\d+$/,Gt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Gt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("...",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(l){let C=this.context.pop();C===n&&l===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Gt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Je.exports=function(e){return e=e||{},function(t){return os({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Je.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function os(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,l=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:l(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?` +(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.acorn=e()}})(function(){"use strict";var di=Object.create;var ce=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)ce(e,i,{get:t[i],enumerable:!0})},$e=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&ce(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},$e(t||!e||!e.__esModule?ce(i,"default",{value:e,enumerable:!0}):i,e)),bi=e=>$e(ce({},"__esModule",{value:!0}),e);var Gt=Ze((Ys,qt)=>{qt.exports={}});var Je=Ze((Zs,Ge)=>{"use strict";var ns=Gt(),os=/^[\da-fA-F]+$/,us=/^\d+$/,Jt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Jt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("...",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(f){let C=this.context.pop();C===n&&f===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Jt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Ge.exports=function(e){return e=e||{},function(t){return ps({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Ge.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function ps(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,f=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:f(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?` `:`\r -`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):l(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos")}let we=w.name?"Element":"Fragment";return x["opening"+we]=w,x["closing"+we]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+we)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(n.jsxTagStart)):super.readToken(h)}updateContext(h){if(this.type==r.braceL){var m=this.curContext();m==u?this.context.push(o.b_expr):m==d?this.context.push(o.b_tmpl):super.updateContext(h),this.exprAllowed=!0}else if(this.type===r.slash&&h===n.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(h)}}}});var Ws={};vi(Ws,{parsers:()=>Xs});var Si=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],nt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ci="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ot="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ae={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Pe="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",_i={5:Pe,"5module":Pe+" export import",6:Pe+" const class extends export import super"},Ti=/^in(stanceof)?$/,ki=new RegExp("["+ot+"]"),Ei=new RegExp("["+ot+Ci+"]");function Ne(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function U(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ki.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)}function z(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ei.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)||Ne(e,Si)}var S=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function I(e,t){return new S(e,{beforeExpr:!0,binop:t})}var N={beforeExpr:!0},A={startsExpr:!0},Oe={};function b(e,t){return t===void 0&&(t={}),t.keyword=e,Oe[e]=new S(e,t)}var a={num:new S("num",A),regexp:new S("regexp",A),string:new S("string",A),name:new S("name",A),privateId:new S("privateId",A),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",N),semi:new S(";",N),colon:new S(":",N),dot:new S("."),question:new S("?",N),questionDot:new S("?."),arrow:new S("=>",N),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",N),backQuote:new S("`",A),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),relational:I("/<=/>=",7),bitShift:I("<>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I("%",10),star:I("*",10),slash:I("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:I("??",1),_break:b("break"),_case:b("case",N),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",N),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",N),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",A),_if:b("if"),_return:b("return",N),_switch:b("switch"),_throw:b("throw",N),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",A),_super:b("super",A),_class:b("class",A),_extends:b("extends",N),_export:b("export"),_import:b("import",A),_null:b("null",A),_true:b("true",A),_false:b("false",A),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,wi=new RegExp(R.source,"g");function Q(e){return e===10||e===13||e===8232||e===8233}function ut(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ii=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,te=function(t,i){this.line=t,this.column=i};te.prototype.offset=function(t){return new te(this.line,this.column+t)};var ye=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ct(e,t){for(var i=1,s=0;;){var r=ut(e,s,t);if(r<0)return new te(i,t-s);++i,s=r}}var Ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},st=!1;function Ni(e){var t={};for(var i in Ve)t[i]=e&&se(e,i)?e[i]:Ve[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!st&&typeof console=="object"&&console.warn&&(st=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new ye(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var ie=1,Y=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=ie|Y|re;function Me(e,t){return Y|(e?Be:0)|(t?lt:0)}var fe=0,je=1,J=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=G(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=G(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=G(n),this.reservedWordsStrictBind=G(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` -`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ie),this.regexpState=null,this.privateNameStack=[]},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Y)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags<)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Y)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Y|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,V.lastIndex=e,e+=V.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ge=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(U(s,!0)){for(var r=i+1;z(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!Ti.test(n))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;V.lastIndex=this.pos;var e=V.exec(this.input),t=this.pos+e[0].length,i;return!R.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(z(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};f.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){V.lastIndex=this.pos;var o=V.exec(this.input),u=this.pos+o[0].length,p=this.input.charCodeAt(u);if(p===40||p===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var d=this.value,l=this.parseExpression();return s===a.name&&l.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,d,l,e):this.parseExpressionStatement(r,l)}};f.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};f.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ue),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var n=this.isContextual("let"),o=!1,u=this.containsEsc,p=new ge,d=this.start,l=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===a._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===a._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(l.start===d&&!u&&l.type==="Identifier"&&l.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&o&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,p),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))};f.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ee|(i?0:Le),!1,t)};f.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};f.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};f.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Ri),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};f.parseThrowStatement=function(e){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Oi=[];f.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?dt:0),this.checkLValPattern(e,t?yt:J),this.expect(a.parenR),e};f.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};f.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};f.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ue),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};f.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};f.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};f.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r=0;p--){var d=this.labels[p];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};f.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};f.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};f.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};f.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};f.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e};f.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?je:J,!1)};var ee=1,Le=2,vt=4;f.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&Le&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&ee&&(e.id=t&vt&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&Le)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?je:J:xt));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(e.async,e.generator)),t&ee||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&ee?"FunctionDeclaration":"FunctionExpression")};f.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};f.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&Bi(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};f.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?u=!0:s="static"}if(i.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var p=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=p:s=p)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||o!=="method"||r||n){var d=!i.static&&de(i,"constructor"),l=d&&e;d&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=d?"constructor":o,this.parseClassMethod(i,r,n,l)}else this.parseClassField(i);return i};f.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};f.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};f.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&de(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};f.parseClassField=function(e){if(de(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&de(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};f.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(re|De);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};f.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,J,!1)):(t===!0&&this.unexpected(),e.id=null)};f.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};f.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};f.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};f.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Ii.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};f.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var O=T.prototype;O.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s=8&&!u&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(_.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[p],!1,t);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===a.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return p=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[p],!0,t)}return p;case a.regexp:var d=this.value;return s=this.parseLiteral(d.value),s.regex={pattern:d.pattern,flags:d.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var l=this.start,C=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(C)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),C;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(_.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};y.parseExprAtomDefault=function(){this.unexpected()};y.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};y.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};y.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};y.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};y.shouldParseArrow=function(e){return!this.canInsertSemicolon()};y.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,p=[],d=!0,l=!1,C=new ge,B=this.yieldPos,h=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(d?d=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){l=!0;break}else if(this.type===a.ellipsis){m=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,C,this.parseParenItem));var x=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(p)&&this.eat(a.arrow))return this.checkPatternErrors(C,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=h,this.parseParenArrowList(i,s,p,t);(!p.length||l)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(C,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=h||this.awaitPos,p.length>1?(r=this.startNodeAt(o,u),r.expressions=p,this.finishNodeAt(r,"SequenceExpression",x,g)):r=p[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(i,s);return w.expression=r,this.finishNode(w,"ParenthesizedExpression")}else return r};y.parseParenItem=function(e){return e};y.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Di=[];y.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Di,this.finishNode(e,"NewExpression")};y.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,` +`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):f(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos")}let we=w.name?"Element":"Fragment";return x["opening"+we]=w,x["closing"+we]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+we)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(n.jsxTagStart)):super.readToken(h)}updateContext(h){if(this.type==r.braceL){var m=this.curContext();m==u?this.context.push(o.b_expr):m==d?this.context.push(o.b_tmpl):super.updateContext(h),this.exprAllowed=!0}else if(this.type===r.slash&&h===n.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(h)}}}});var Hs={};vi(Hs,{parsers:()=>zs});var Si=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],nt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ci="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ot="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ae={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Pe="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",_i={5:Pe,"5module":Pe+" export import",6:Pe+" const class extends export import super"},Ti=/^in(stanceof)?$/,ki=new RegExp("["+ot+"]"),Ei=new RegExp("["+ot+Ci+"]");function Ne(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function M(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ki.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)}function H(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ei.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)||Ne(e,Si)}var S=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function P(e,t){return new S(e,{beforeExpr:!0,binop:t})}var I={beforeExpr:!0},A={startsExpr:!0},Oe={};function b(e,t){return t===void 0&&(t={}),t.keyword=e,Oe[e]=new S(e,t)}var a={num:new S("num",A),regexp:new S("regexp",A),string:new S("string",A),name:new S("name",A),privateId:new S("privateId",A),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",I),semi:new S(";",I),colon:new S(":",I),dot:new S("."),question:new S("?",I),questionDot:new S("?."),arrow:new S("=>",I),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",I),backQuote:new S("`",A),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:P("||",1),logicalAND:P("&&",2),bitwiseOR:P("|",3),bitwiseXOR:P("^",4),bitwiseAND:P("&",5),equality:P("==/!=/===/!==",6),relational:P("/<=/>=",7),bitShift:P("<>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:P("%",10),star:P("*",10),slash:P("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:P("??",1),_break:b("break"),_case:b("case",I),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",I),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",I),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",A),_if:b("if"),_return:b("return",I),_switch:b("switch"),_throw:b("throw",I),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",A),_super:b("super",A),_class:b("class",A),_extends:b("extends",I),_export:b("export"),_import:b("import",A),_null:b("null",A),_true:b("true",A),_false:b("false",A),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},L=/\r\n?|\n|\u2028|\u2029/,wi=new RegExp(L.source,"g");function Q(e){return e===10||e===13||e===8232||e===8233}function ut(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ii=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ie=function(t,i){this.line=t,this.column=i};ie.prototype.offset=function(t){return new ie(this.line,this.column+t)};var ye=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ct(e,t){for(var i=1,s=0;;){var r=ut(e,s,t);if(r<0)return new ie(i,t-s);++i,s=r}}var Ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},st=!1;function Ni(e){var t={};for(var i in Ve)t[i]=e&&Y(e,i)?e[i]:Ve[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!st&&typeof console=="object"&&console.warn&&(st=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new ye(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var se=1,Z=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=se|Z|re;function je(e,t){return Z|(e?Be:0)|(t?lt:0)}var fe=0,Me=1,G=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=K(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=K(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=K(n),this.reservedWordsStrictBind=K(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` +`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(L).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(se),this.regexpState=null,this.privateNameStack=[]},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Z)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags<)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Z)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Z|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,N.lastIndex=e,e+=N.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||L.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ge=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(M(s,!0)){for(var r=i+1;H(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!Ti.test(n))return!0}return!1};l.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;N.lastIndex=this.pos;var e=N.exec(this.input),t=this.pos+e[0].length,i;return!L.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(H(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};l.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){N.lastIndex=this.pos;var o=N.exec(this.input),u=this.pos+o[0].length,p=this.input.charCodeAt(u);if(p===40||p===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var d=this.value,f=this.parseExpression();return s===a.name&&f.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,d,f,e):this.parseExpressionStatement(r,f)}};l.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};l.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ue),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var n=this.isContextual("let"),o=!1,u=this.containsEsc,p=new ge,d=this.start,f=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===a._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===a._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!u&&f.type==="Identifier"&&f.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&o&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,p),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))};l.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,te|(i?0:Le),!1,t)};l.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};l.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};l.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Ri),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};l.parseThrowStatement=function(e){return this.next(),L.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Oi=[];l.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?dt:0),this.checkLValPattern(e,t?yt:G),this.expect(a.parenR),e};l.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};l.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};l.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ue),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};l.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};l.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};l.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r=0;p--){var d=this.labels[p];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};l.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};l.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};l.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};l.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};l.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e};l.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Me:G,!1)};var te=1,Le=2,vt=4;l.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&Le&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&te&&(e.id=t&vt&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&Le)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Me:G:xt));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(e.async,e.generator)),t&te||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&te?"FunctionDeclaration":"FunctionExpression")};l.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};l.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&Bi(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};l.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?u=!0:s="static"}if(i.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var p=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=p:s=p)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||o!=="method"||r||n){var d=!i.static&&de(i,"constructor"),f=d&&e;d&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=d?"constructor":o,this.parseClassMethod(i,r,n,f)}else this.parseClassField(i);return i};l.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};l.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};l.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&de(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};l.parseClassField=function(e){if(de(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&de(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};l.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(re|De);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};l.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,G,!1)):(t===!0&&this.unexpected(),e.id=null)};l.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};l.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};l.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};l.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};l.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportSpecifier")};l.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportDefaultSpecifier")};l.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportNamespaceSpecifier")};l.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return e;if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseImportSpecifier())}return e};l.parseWithClause=function(){var e=[];if(!this.eat(a._with))return e;this.expect(a.braceL);for(var t={},i=!0;!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Y(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e};l.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};l.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Ii.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};l.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var R=T.prototype;R.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s=8&&!u&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(_.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[p],!1,t);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===a.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return p=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[p],!0,t)}return p;case a.regexp:var d=this.value;return s=this.parseLiteral(d.value),s.regex={pattern:d.pattern,flags:d.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var f=this.start,C=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(C)&&(e.parenthesizedAssign=f),e.parenthesizedBind<0&&(e.parenthesizedBind=f)),C;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(_.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};y.parseExprAtomDefault=function(){this.unexpected()};y.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};y.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(a.parenR)?e.options=null:(this.expect(a.comma),this.afterTrailingComma(a.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(a.parenR)||(this.expect(a.comma),this.afterTrailingComma(a.parenR)||this.unexpected())));else if(!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};y.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};y.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};y.shouldParseArrow=function(e){return!this.canInsertSemicolon()};y.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,p=[],d=!0,f=!1,C=new ge,B=this.yieldPos,h=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(d?d=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){f=!0;break}else if(this.type===a.ellipsis){m=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,C,this.parseParenItem));var x=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(p)&&this.eat(a.arrow))return this.checkPatternErrors(C,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=h,this.parseParenArrowList(i,s,p,t);(!p.length||f)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(C,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=h||this.awaitPos,p.length>1?(r=this.startNodeAt(o,u),r.expressions=p,this.finishNodeAt(r,"SequenceExpression",x,g)):r=p[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(i,s);return w.expression=r,this.finishNode(w,"ParenthesizedExpression")}else return r};y.parseParenItem=function(e){return e};y.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Di=[];y.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Di,this.finishNode(e,"NewExpression")};y.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,` `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Me(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};y.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var p=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!n&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,gt),e.body=this.parseBlock(!1,void 0,o&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=p}this.exitScope()};y.isSimpleParamList=function(e){for(var t=0,i=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&ie&&delete this.undefinedExports[e]}else if(t===yt){var n=this.currentScope();n.lexical.push(e)}else if(t===xt){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(e)>-1:s=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var p=this.scopeStack[u];if(p.lexical.indexOf(e)>-1&&!(p.flags&dt&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){s=!0;break}if(p.var.push(e),this.inModule&&p.flags&ie&&delete this.undefinedExports[e],p.flags&Fe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};X.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};X.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};X.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe)return t}};X.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe&&!(t.flags&ft))return t}};var ve=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new ye(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ae=T.prototype;ae.startNode=function(){return new ve(this,this.start,this.startLoc)};ae.startNodeAt=function(e,t){return new ve(this,e,t)};function St(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ae.finishNode=function(e,t){return St.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ae.finishNodeAt=function(e,t,i,s){return St.call(this,e,t,i,s)};ae.copyNode=function(e){var t=new ve(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_t=Ct+" Extended_Pictographic",Tt=_t,kt=Tt+" EBase EComp EMod EPres ExtPict",Et=kt,Mi=Et,ji={9:Ct,10:_t,11:Tt,12:kt,13:Et,14:Mi},Ui="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",qi={9:"",10:"",11:"",12:"",13:"",14:Ui},rt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",At=wt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pt=At+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",It=Pt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nt=It+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ji=Nt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Gi={9:wt,10:At,11:Pt,12:It,13:Nt,14:Ji},Vt={};function Ki(e){var t=Vt[e]={binary:G(ji[e]+" "+rt),binaryOfStrings:G(qi[e]),nonBinary:{General_Category:G(rt),Script:G(Gi[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(le=0,Ie=[9,10,11,12,13,14];le=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Vt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};M.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};M.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};M.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var o=s.charCodeAt(t+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n};M.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),o;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(o=s.charCodeAt(t+1))<56320||o>57343?t+1:t+2};M.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};M.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};M.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};M.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};M.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")};function Xi(e){for(var t in e)return!0;return!1}c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Xi(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=16;for(t&&(e.branchID=new xe(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};c.regexp_alternative=function(e){for(;e.pos=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};c.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Lt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Lt(i);)e.advance();return e.pos!==t};c.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};c.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Wi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Wi(e){return U(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Hi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Hi(e){return z(e,!0)||e===36||e===95||e===8204||e===8205}c.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};c.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};c.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};c.regexp_eatZero=function(e){return e.current()===48&&!be(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};c.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};c.regexp_eatControlLetter=function(e){var t=e.current();return Rt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Rt(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&zi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function zi(e){return e>=0&&e<=1114111}c.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};c.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ot=0,q=1,L=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Qi(t))return e.lastIntValue=-1,e.advance(),q;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===L&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Ot};function Qi(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),q}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Ot};c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){se(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return q;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return L;e.raise("Invalid property name")};c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Bt(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Bt(e){return Rt(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Yi(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Yi(e){return Bt(e)||be(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===L&&e.raise("Negated character class may contain strings"),!0}return!1};c.regexp_classContents=function(e){return e.current()===93?q:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),q)};c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Mt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};c.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};c.regexp_classSetExpression=function(e){var t=q,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===L&&(t=L);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==L&&(t=q);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===L&&(t=L)}};c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?q:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===L&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===L&&(t=L);return t};c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?q:L};c.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&$i(i)||Zi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function $i(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Zi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return es(t)?(e.lastIntValue=t,e.advance(),!0):!1};function es(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return be(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};c.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;be(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function be(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Dt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ft(i),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ft(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};c.regexp_eatOctalDigit=function(e){var t=e.current();return Mt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Mt(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};v.readToken=function(e){return U(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};v.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};v.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=ut(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};v.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&pt.test(String.fromCharCode(e)))++this.pos;else break e}}};v.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};v.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))};v.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)};v.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)};v.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};v.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)};v.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)};v.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))};v.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)};v.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};v.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),U(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+K(t)+"'")};v.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K(e)+"'")};v.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};v.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(R.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new M(this));u.reset(i,r,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var p=null;try{p=new RegExp(r,o)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:o,value:p})};v.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,p=0,d=t??1/0;p=97?C=l-97+10:l>=65?C=l-65+10:l>=48&&l<=57?C=l-48:C=1/0,C>=e)break;u=l,o=o*e+C}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:o};function ts(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function jt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}v.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=jt(this.input.slice(t,this.pos)),++this.pos):U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)};v.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=jt(this.input.slice(t,this.pos));return++this.pos,U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=ts(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)};v.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};v.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Q(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var Ut={};v.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};v.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;this.raise(e,t)};v.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Q(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!L.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(je(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};y.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var p=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!n&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,gt),e.body=this.parseBlock(!1,void 0,o&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=p}this.exitScope()};y.isSimpleParamList=function(e){for(var t=0,i=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&se&&delete this.undefinedExports[e]}else if(t===yt){var n=this.currentScope();n.lexical.push(e)}else if(t===xt){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(e)>-1:s=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var p=this.scopeStack[u];if(p.lexical.indexOf(e)>-1&&!(p.flags&dt&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){s=!0;break}if(p.var.push(e),this.inModule&&p.flags&se&&delete this.undefinedExports[e],p.flags&Fe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};W.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};W.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};W.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe)return t}};W.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe&&!(t.flags&ft))return t}};var ve=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new ye(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ae=T.prototype;ae.startNode=function(){return new ve(this,this.start,this.startLoc)};ae.startNodeAt=function(e,t){return new ve(this,e,t)};function St(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ae.finishNode=function(e,t){return St.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ae.finishNodeAt=function(e,t,i,s){return St.call(this,e,t,i,s)};ae.copyNode=function(e){var t=new ve(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var ji="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_t=Ct+" Extended_Pictographic",Tt=_t,kt=Tt+" EBase EComp EMod EPres ExtPict",Et=kt,Mi=Et,Ui={9:Ct,10:_t,11:Tt,12:kt,13:Et,14:Mi},qi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Gi={9:"",10:"",11:"",12:"",13:"",14:qi},rt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",At=wt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pt=At+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",It=Pt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nt=It+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ji=Nt+" "+ji,Ki={9:wt,10:At,11:Pt,12:It,13:Nt,14:Ji},Vt={};function Wi(e){var t=Vt[e]={binary:K(Ui[e]+" "+rt),binaryOfStrings:K(Gi[e]),nonBinary:{General_Category:K(rt),Script:K(Ki[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(le=0,Ie=[9,10,11,12,13,14];le=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Vt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};j.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};j.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};j.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var o=s.charCodeAt(t+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n};j.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),o;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(o=s.charCodeAt(t+1))<56320||o>57343?t+1:t+2};j.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};j.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};j.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};j.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};j.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")};function Xi(e){for(var t in e)return!0;return!1}c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Xi(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=16;for(t&&(e.branchID=new xe(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};c.regexp_alternative=function(e){for(;e.pos=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r=16){var i=this.regexp_eatModifiers(e),s=e.eat(45);if(i||s){for(var r=0;r-1&&e.raise("Duplicate regular expression modifiers")}if(s){var o=this.regexp_eatModifiers(e);!i&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u-1||i.indexOf(p)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};c.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};c.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&zi(i);)t+=U(i),e.advance();return t};function zi(e){return e===105||e===109||e===115}c.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Lt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Lt(i);)e.advance();return e.pos!==t};c.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};c.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Hi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Hi(e){return M(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Qi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Qi(e){return H(e,!0)||e===36||e===95||e===8204||e===8205}c.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};c.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};c.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};c.regexp_eatZero=function(e){return e.current()===48&&!be(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};c.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};c.regexp_eatControlLetter=function(e){var t=e.current();return Rt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Rt(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Yi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Yi(e){return e>=0&&e<=1114111}c.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};c.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ot=0,q=1,V=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Zi(t))return e.lastIntValue=-1,e.advance(),q;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===V&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Ot};function Zi(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),q}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Ot};c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Y(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return q;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return V;e.raise("Invalid property name")};c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Bt(t=e.current());)e.lastStringValue+=U(t),e.advance();return e.lastStringValue!==""};function Bt(e){return Rt(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";$i(t=e.current());)e.lastStringValue+=U(t),e.advance();return e.lastStringValue!==""};function $i(e){return Bt(e)||be(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===V&&e.raise("Negated character class may contain strings"),!0}return!1};c.regexp_classContents=function(e){return e.current()===93?q:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),q)};c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||jt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};c.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};c.regexp_classSetExpression=function(e){var t=q,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===V&&(t=V);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==V&&(t=q);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===V&&(t=V)}};c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?q:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===V&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===V&&(t=V);return t};c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?q:V};c.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&es(i)||ts(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function es(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function ts(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return is(t)?(e.lastIntValue=t,e.advance(),!0):!1};function is(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return be(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};c.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;be(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function be(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Dt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ft(i),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ft(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};c.regexp_eatOctalDigit=function(e){var t=e.current();return jt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function jt(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};v.readToken=function(e){return M(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};v.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};v.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=ut(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};v.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&pt.test(String.fromCharCode(e)))++this.pos;else break e}}};v.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};v.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))};v.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)};v.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)};v.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};v.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)};v.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||L.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)};v.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))};v.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)};v.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};v.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),M(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+U(t)+"'")};v.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+U(e)+"'")};v.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};v.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(L.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new j(this));u.reset(i,r,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var p=null;try{p=new RegExp(r,o)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:o,value:p})};v.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,p=0,d=t??1/0;p=97?C=f-97+10:f>=65?C=f-65+10:f>=48&&f<=57?C=f-48:C=1/0,C>=e)break;u=f,o=o*e+C}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:o};function ss(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Mt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}v.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Mt(this.input.slice(t,this.pos)),++this.pos):M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)};v.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=Mt(this.input.slice(t,this.pos));return++this.pos,M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=ss(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)};v.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};v.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Q(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var Ut={};v.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};v.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;this.raise(e,t)};v.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Q(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};v.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},W=hs;function cs(e){return Array.isArray(e)&&e.length>0}var Xt=cs;function P(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(P(i),t):t}function j(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ls(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Wt=ls;var fs=Wt(["Block","CommentBlock","MultiLine"]),oe=fs;function ds(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=ds;function ms(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var Ht=ms;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var xs=10;for(let e=0;e<=xs;e++)pe();function Xe(e){return pe(e)}function ys(e,t="type"){Xe(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var zt=ys;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var gs=zt(Qt),Yt=gs;function We(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Ht)&&r.add(P(n))}),e=_e(e,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=[...n.range],o;let u=P(n);if(!r.has(u))return o.extra={...o.extra,parenthesized:!0},o}})}if(e=_e(e,r=>{var n;switch(r.type){case"LogicalExpression":if($t(r))return He(r);break;case"VariableDeclaration":{let o=W(!1,r.declarations,-1);o!=null&&o.init&&s[j(o)]!==";"&&(r.range=[P(r),j(o)]);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let o=P(r);r.name={type:"Identifier",name:r.name,range:[o,o+r.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(i==="meriyah"&&((n=r.exported)==null?void 0:n.type)==="Identifier"){let{exported:o}=r,u=s.slice(P(o),j(o));(u.startsWith('"')||u.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:u})}break;case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Xt(e.comments)){let r=W(!1,e.comments,-1);for(let n=e.comments.length-2;n>=0;n--){let o=e.comments[n];j(o)===P(r)&&oe(o)&&oe(r)&&Ke(o)&&Ke(r)&&(e.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[P(o),j(r)]),r=o}}return e.type==="Program"&&(e.range=[0,s.length]),e}function $t(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function He(e){return $t(e)?He({type:"LogicalExpression",operator:e.operator,left:He({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[P(e.left),j(e.right.left)]}),right:e.right.right,range:[P(e),j(e)]}):e}var Te=vs;var bs=(e,t,i,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(i,s):i.global?t.replace(i,s):t.split(i).join(s)},Z=bs;var Ss=/\*\/$/,Cs=/^\/\*\*?/,_s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ts=/(^|\s+)\/\/([^\n\r]*)/g,Zt=/^(\r?\n)+/,ks=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Es=/(\r?\n|^) *\* ?/g,ws=[];function ti(e){let t=e.match(_s);return t?t[0].trimStart():""}function ii(e){let t=` -`;e=Z(!1,e.replace(Cs,"").replace(Ss,""),Es,"$1");let i="";for(;i!==e;)i=e,e=Z(!1,e,ks,`${t}$1 $2${t}`);e=e.replace(Zt,"").trimEnd();let s=Object.create(null),r=Z(!1,e,ei,"").replace(Zt,"").trimEnd(),n;for(;n=ei.exec(e);){let o=Z(!1,n[2],Ts,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...ws,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function As(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var si=As;function Ps(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ps(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Is(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:P,locEnd:j,...e}}var ke=Is;function Ns(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Ee=Ns;var Vs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Ls(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return Se(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Rs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Os(e,t){let i=Rs(),s=[],r=[],n=i.parse(e,{...Vs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Bs(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>Os(e,n)),r;try{r=Ce(s)}catch({errors:[n]}){throw Ls(n)}return Te(r,{text:e})}var oi=ke(Bs);var ci=et(Ge(),1);var E={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Ds(e,t){let i=e[0],s=W(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function ze(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}ze.prototype={constructor:ze,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(Ds(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=ze;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Fs(){return W(!1,pi,-1)}function Ms(e=5){let t=e==="latest"?Fs():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function js(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Ms(e.ecmaVersion),i=js(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:i,ranges:s,locations:r,allowReserved:n,allowReturnOutsideFunction:u})}var H=Symbol("espree's internal state"),Qe=Symbol("espree's esprimaFinishNode");function Us(e,t,i,s,r,n,o){let u;e?u="Block":o.slice(i,i+2)==="#!"?u="Hashbang":u="Line";let p={type:u,value:t};return typeof i=="number"&&(p.start=i,p.end=s,p.range=[i,s]),typeof r=="object"&&(p.loc={start:r,end:n}),p}var Ye=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(s,r){(typeof s!="object"||s===null)&&(s={}),typeof r!="string"&&!(r instanceof String)&&(r=String(r));let n=s.sourceType,o=hi(s),u=o.ecmaFeatures||{},p=o.tokens===!0?new ui(t,r):null,d={originalSourceType:n||o.sourceType,tokens:p?[]:null,comments:o.comment===!0?[]:null,impliedStrict:u.impliedStrict===!0&&o.ecmaVersion>=5,ecmaVersion:o.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReserved:o.allowReserved,allowReturnOutsideFunction:o.allowReturnOutsideFunction,onToken(l){p&&p.onToken(l,d),l.type!==t.eof&&(d.lastToken=l)},onComment(l,C,B,h,m,x){if(d.comments){let g=Us(l,C,B,h,m,x,r);d.comments.push(g)}}},r),this[H]=d}tokenize(){do this.next();while(this.type!==t.eof);this.next();let s=this[H],r=s.tokens;return s.comments&&(r.comments=s.comments),r}finishNode(...s){let r=super.finishNode(...s);return this[Qe](r)}finishNodeAt(...s){let r=super.finishNodeAt(...s);return this[Qe](r)}parse(){let s=this[H],r=super.parse();if(r.sourceType=s.originalSourceType,s.comments&&(r.comments=s.comments),s.tokens&&(r.tokens=s.tokens),r.body.length){let[n]=r.body;r.range&&(r.range[0]=n.range[0]),r.loc&&(r.loc.start=n.loc.start),r.start=n.start}return s.lastToken&&(r.range&&(r.range[1]=s.lastToken.range[1]),r.loc&&(r.loc.end=s.lastToken.loc.end),r.end=s.lastToken.end),this[H].templateElements.forEach(n=>{let u=n.tail?1:2;n.start+=-1,n.end+=u,n.range&&(n.range[0]+=-1,n.range[1]+=u),n.loc&&(n.loc.start.column+=-1,n.loc.end.column+=u)}),r}parseTopLevel(s){return this[H].impliedStrict&&(this.strict=!0),super.parseTopLevel(s)}raise(s,r){let n=e.acorn.getLineInfo(this.input,s),o=new SyntaxError(r);throw o.index=s,o.lineNumber=n.line,o.column=n.column+1,o}raiseRecoverable(s,r){this.raise(s,r)}unexpected(s){let r="Unexpected token";if(s!=null){if(this.pos=s,this.options.locations)for(;this.posthis.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[H].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[H].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var qs={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=qs.get(t);return new i(t,e).parse()}var Js={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Gs(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:Se(t,{loc:{start:{line:i,column:s}},cause:e})}function Ks(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Js,sourceType:n})),r;try{r=Ce(s)}catch({errors:[n]}){throw Gs(n)}return Te(r,{text:e})}var fi=ke(Ks);var Xs={acorn:oi,espree:fi};return bi(Ws);}); \ No newline at end of file +`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return U(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},X=ls;function fs(e){return Array.isArray(e)&&e.length>0}var Wt=fs;function O(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(O(i),t):t}function J(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ds(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Xt=ds;var ms=Xt(["Block","CommentBlock","MultiLine"]),oe=ms;function xs(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=xs;function ys(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var zt=ys;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var gs=10;for(let e=0;e<=gs;e++)pe();function We(e){return pe(e)}function vs(e,t="type"){We(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var Ht=vs;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var bs=Ht(Qt),Yt=bs;function Xe(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(zt)&&r.add(O(n))}),e=_e(e,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=[...n.range],o;let u=O(n);if(!r.has(u))return o.extra={...o.extra,parenthesized:!0},o}})}if(e=_e(e,r=>{switch(r.type){case"LogicalExpression":if(Zt(r))return ze(r);break;case"VariableDeclaration":{let n=X(!1,r.declarations,-1);n!=null&&n.init&&s[J(n)]!==";"&&(r.range=[O(r),J(n)]);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=O(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Wt(e.comments)){let r=X(!1,e.comments,-1);for(let n=e.comments.length-2;n>=0;n--){let o=e.comments[n];J(o)===O(r)&&oe(o)&&oe(r)&&Ke(o)&&Ke(r)&&(e.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[O(o),J(r)]),r=o}}return e.type==="Program"&&(e.range=[0,s.length]),e}function Zt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function ze(e){return Zt(e)?ze({type:"LogicalExpression",operator:e.operator,left:ze({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[O(e.left),J(e.right.left)]}),right:e.right.right,range:[O(e),J(e)]}):e}var Te=Ss;var Cs=(e,t,i,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(i,s):i.global?t.replace(i,s):t.split(i).join(s)},ee=Cs;var _s=/\*\/$/,Ts=/^\/\*\*?/,ks=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Es=/(^|\s+)\/\/([^\n\r]*)/g,$t=/^(\r?\n)+/,ws=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,As=/(\r?\n|^) *\* ?/g,Ps=[];function ti(e){let t=e.match(ks);return t?t[0].trimStart():""}function ii(e){let t=` +`;e=ee(!1,e.replace(Ts,"").replace(_s,""),As,"$1");let i="";for(;i!==e;)i=e,e=ee(!1,e,ws,`${t}$1 $2${t}`);e=e.replace($t,"").trimEnd();let s=Object.create(null),r=ee(!1,e,ei,"").replace($t,"").trimEnd(),n;for(;n=ei.exec(e);){let o=ee(!1,n[2],Es,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...Ps,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function Is(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var si=Is;function Ns(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ns(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Vs(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:O,locEnd:J,...e}}var ke=Vs;function Ls(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ee=Ls;var Rs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Os(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return Se(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Bs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Ds(e,t){let i=Bs(),s=[],r=[],n=i.parse(e,{...Rs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Fs(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>Ds(e,n)),r;try{r=Ce(s)}catch({errors:[n]}){throw Os(n)}return Te(r,{text:e})}var oi=ke(Fs);var ci=et(Je(),1);var E={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function js(e,t){let i=e[0],s=X(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function He(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}He.prototype={constructor:He,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(js(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=He;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Ms(){return X(!1,pi,-1)}function Us(e=5){let t=e==="latest"?Ms():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function qs(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Us(e.ecmaVersion),i=qs(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:i,ranges:s,locations:r,allowReserved:n,allowReturnOutsideFunction:u})}var z=Symbol("espree's internal state"),Qe=Symbol("espree's esprimaFinishNode");function Gs(e,t,i,s,r,n,o){let u;e?u="Block":o.slice(i,i+2)==="#!"?u="Hashbang":u="Line";let p={type:u,value:t};return typeof i=="number"&&(p.start=i,p.end=s,p.range=[i,s]),typeof r=="object"&&(p.loc={start:r,end:n}),p}var Ye=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(s,r){(typeof s!="object"||s===null)&&(s={}),typeof r!="string"&&!(r instanceof String)&&(r=String(r));let n=s.sourceType,o=hi(s),u=o.ecmaFeatures||{},p=o.tokens===!0?new ui(t,r):null,d={originalSourceType:n||o.sourceType,tokens:p?[]:null,comments:o.comment===!0?[]:null,impliedStrict:u.impliedStrict===!0&&o.ecmaVersion>=5,ecmaVersion:o.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReserved:o.allowReserved,allowReturnOutsideFunction:o.allowReturnOutsideFunction,onToken(f){p&&p.onToken(f,d),f.type!==t.eof&&(d.lastToken=f)},onComment(f,C,B,h,m,x){if(d.comments){let g=Gs(f,C,B,h,m,x,r);d.comments.push(g)}}},r),this[z]=d}tokenize(){do this.next();while(this.type!==t.eof);this.next();let s=this[z],r=s.tokens;return s.comments&&(r.comments=s.comments),r}finishNode(...s){let r=super.finishNode(...s);return this[Qe](r)}finishNodeAt(...s){let r=super.finishNodeAt(...s);return this[Qe](r)}parse(){let s=this[z],r=super.parse();if(r.sourceType=s.originalSourceType,s.comments&&(r.comments=s.comments),s.tokens&&(r.tokens=s.tokens),r.body.length){let[n]=r.body;r.range&&(r.range[0]=n.range[0]),r.loc&&(r.loc.start=n.loc.start),r.start=n.start}return s.lastToken&&(r.range&&(r.range[1]=s.lastToken.range[1]),r.loc&&(r.loc.end=s.lastToken.loc.end),r.end=s.lastToken.end),this[z].templateElements.forEach(n=>{let u=n.tail?1:2;n.start+=-1,n.end+=u,n.range&&(n.range[0]+=-1,n.range[1]+=u),n.loc&&(n.loc.start.column+=-1,n.loc.end.column+=u)}),r}parseTopLevel(s){return this[z].impliedStrict&&(this.strict=!0),super.parseTopLevel(s)}raise(s,r){let n=e.acorn.getLineInfo(this.input,s),o=new SyntaxError(r);throw o.index=s,o.lineNumber=n.line,o.column=n.column+1,o}raiseRecoverable(s,r){this.raise(s,r)}unexpected(s){let r="Unexpected token";if(s!=null){if(this.pos=s,this.options.locations)for(;this.posthis.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[z].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[z].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var Js={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=Js.get(t);return new i(t,e).parse()}var Ks={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Ws(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:Se(t,{loc:{start:{line:i,column:s}},cause:e})}function Xs(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Ks,sourceType:n})),r;try{r=Ce(s)}catch({errors:[n]}){throw Ws(n)}return Te(r,{text:e})}var fi=ke(Xs);var zs={acorn:oi,espree:fi};return bi(Hs);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/acorn.mjs b/node_modules/prettier/plugins/acorn.mjs index 660b1d24..7df6fb36 100644 --- a/node_modules/prettier/plugins/acorn.mjs +++ b/node_modules/prettier/plugins/acorn.mjs @@ -1,15 +1,15 @@ -var di=Object.create;var we=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)we(e,i,{get:t[i],enumerable:!0})},bi=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&we(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},bi(t||!e||!e.__esModule?we(i,"default",{value:e,enumerable:!0}):i,e));var Jt=Ze((Hs,qt)=>{qt.exports={}});var Ge=Ze((zs,Je)=>{"use strict";var rs=Jt(),as=/^[\da-fA-F]+$/,ns=/^\d+$/,Gt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Gt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("...",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(l){let C=this.context.pop();C===n&&l===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Gt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Je.exports=function(e){return e=e||{},function(t){return os({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Je.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function os(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,l=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:l(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?` +var di=Object.create;var we=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)we(e,i,{get:t[i],enumerable:!0})},bi=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&we(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},bi(t||!e||!e.__esModule?we(i,"default",{value:e,enumerable:!0}):i,e));var Gt=$e((Qs,qt)=>{qt.exports={}});var Je=$e((Ys,Ge)=>{"use strict";var ns=Gt(),os=/^[\da-fA-F]+$/,us=/^\d+$/,Jt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Jt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("...",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(f){let C=this.context.pop();C===n&&f===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Jt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Ge.exports=function(e){return e=e||{},function(t){return ps({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Ge.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function ps(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,f=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:f(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?` `:`\r -`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):l(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos")}let Ee=w.name?"Element":"Fragment";return x["opening"+Ee]=w,x["closing"+Ee]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+Ee)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(n.jsxTagStart)):super.readToken(h)}updateContext(h){if(this.type==r.braceL){var m=this.curContext();m==u?this.context.push(o.b_expr):m==d?this.context.push(o.b_tmpl):super.updateContext(h),this.exprAllowed=!0}else if(this.type===r.slash&&h===n.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(h)}}}});var $e={};vi($e,{parsers:()=>Xs});var Si=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],nt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ci="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ot="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ae={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Pe="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",_i={5:Pe,"5module":Pe+" export import",6:Pe+" const class extends export import super"},Ti=/^in(stanceof)?$/,ki=new RegExp("["+ot+"]"),Ei=new RegExp("["+ot+Ci+"]");function Ne(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function U(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ki.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)}function z(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ei.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)||Ne(e,Si)}var S=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function I(e,t){return new S(e,{beforeExpr:!0,binop:t})}var N={beforeExpr:!0},A={startsExpr:!0},Oe={};function b(e,t){return t===void 0&&(t={}),t.keyword=e,Oe[e]=new S(e,t)}var a={num:new S("num",A),regexp:new S("regexp",A),string:new S("string",A),name:new S("name",A),privateId:new S("privateId",A),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",N),semi:new S(";",N),colon:new S(":",N),dot:new S("."),question:new S("?",N),questionDot:new S("?."),arrow:new S("=>",N),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",N),backQuote:new S("`",A),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),relational:I("/<=/>=",7),bitShift:I("<>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I("%",10),star:I("*",10),slash:I("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:I("??",1),_break:b("break"),_case:b("case",N),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",N),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",N),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",A),_if:b("if"),_return:b("return",N),_switch:b("switch"),_throw:b("throw",N),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",A),_super:b("super",A),_class:b("class",A),_extends:b("extends",N),_export:b("export"),_import:b("import",A),_null:b("null",A),_true:b("true",A),_false:b("false",A),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,wi=new RegExp(R.source,"g");function Q(e){return e===10||e===13||e===8232||e===8233}function ut(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ii=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,te=function(t,i){this.line=t,this.column=i};te.prototype.offset=function(t){return new te(this.line,this.column+t)};var xe=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ct(e,t){for(var i=1,s=0;;){var r=ut(e,s,t);if(r<0)return new te(i,t-s);++i,s=r}}var Ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},st=!1;function Ni(e){var t={};for(var i in Ve)t[i]=e&&se(e,i)?e[i]:Ve[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!st&&typeof console=="object"&&console.warn&&(st=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new xe(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var ie=1,Y=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=ie|Y|re;function Me(e,t){return Y|(e?Be:0)|(t?lt:0)}var le=0,je=1,J=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=G(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=G(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=G(n),this.reservedWordsStrictBind=G(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` -`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ie),this.regexpState=null,this.privateNameStack=[]},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Y)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags<)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Y)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Y|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,V.lastIndex=e,e+=V.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ye=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(U(s,!0)){for(var r=i+1;z(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!Ti.test(n))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;V.lastIndex=this.pos;var e=V.exec(this.input),t=this.pos+e[0].length,i;return!R.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(z(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};f.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){V.lastIndex=this.pos;var o=V.exec(this.input),u=this.pos+o[0].length,p=this.input.charCodeAt(u);if(p===40||p===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var d=this.value,l=this.parseExpression();return s===a.name&&l.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,d,l,e):this.parseExpressionStatement(r,l)}};f.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};f.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ue),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var n=this.isContextual("let"),o=!1,u=this.containsEsc,p=new ye,d=this.start,l=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===a._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===a._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(l.start===d&&!u&&l.type==="Identifier"&&l.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&o&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,p),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))};f.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ee|(i?0:Le),!1,t)};f.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};f.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};f.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Ri),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};f.parseThrowStatement=function(e){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Oi=[];f.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?dt:0),this.checkLValPattern(e,t?yt:J),this.expect(a.parenR),e};f.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};f.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};f.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ue),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};f.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};f.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};f.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r=0;p--){var d=this.labels[p];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};f.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};f.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};f.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};f.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};f.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e};f.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?je:J,!1)};var ee=1,Le=2,vt=4;f.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&Le&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&ee&&(e.id=t&vt&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&Le)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?je:J:xt));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(e.async,e.generator)),t&ee||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&ee?"FunctionDeclaration":"FunctionExpression")};f.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};f.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&Bi(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};f.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?u=!0:s="static"}if(i.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var p=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=p:s=p)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||o!=="method"||r||n){var d=!i.static&&fe(i,"constructor"),l=d&&e;d&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=d?"constructor":o,this.parseClassMethod(i,r,n,l)}else this.parseClassField(i);return i};f.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};f.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};f.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&fe(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};f.parseClassField=function(e){if(fe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&fe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};f.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(re|De);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};f.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,J,!1)):(t===!0&&this.unexpected(),e.id=null)};f.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};f.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};f.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};f.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Ii.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};f.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var O=T.prototype;O.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s=8&&!u&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(_.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[p],!1,t);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===a.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return p=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[p],!0,t)}return p;case a.regexp:var d=this.value;return s=this.parseLiteral(d.value),s.regex={pattern:d.pattern,flags:d.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var l=this.start,C=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(C)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),C;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(_.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};y.parseExprAtomDefault=function(){this.unexpected()};y.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};y.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};y.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};y.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};y.shouldParseArrow=function(e){return!this.canInsertSemicolon()};y.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,p=[],d=!0,l=!1,C=new ye,B=this.yieldPos,h=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(d?d=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){l=!0;break}else if(this.type===a.ellipsis){m=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,C,this.parseParenItem));var x=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(p)&&this.eat(a.arrow))return this.checkPatternErrors(C,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=h,this.parseParenArrowList(i,s,p,t);(!p.length||l)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(C,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=h||this.awaitPos,p.length>1?(r=this.startNodeAt(o,u),r.expressions=p,this.finishNodeAt(r,"SequenceExpression",x,g)):r=p[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(i,s);return w.expression=r,this.finishNode(w,"ParenthesizedExpression")}else return r};y.parseParenItem=function(e){return e};y.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Di=[];y.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Di,this.finishNode(e,"NewExpression")};y.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,` +`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):f(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos")}let Ee=w.name?"Element":"Fragment";return x["opening"+Ee]=w,x["closing"+Ee]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+Ee)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(n.jsxTagStart)):super.readToken(h)}updateContext(h){if(this.type==r.braceL){var m=this.curContext();m==u?this.context.push(o.b_expr):m==d?this.context.push(o.b_tmpl):super.updateContext(h),this.exprAllowed=!0}else if(this.type===r.slash&&h===n.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(h)}}}});var Ze={};vi(Ze,{parsers:()=>zs});var Si=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],nt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ci="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ot="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ae={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Pe="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",_i={5:Pe,"5module":Pe+" export import",6:Pe+" const class extends export import super"},Ti=/^in(stanceof)?$/,ki=new RegExp("["+ot+"]"),Ei=new RegExp("["+ot+Ci+"]");function Ne(e,t){for(var i=65536,s=0;se)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function M(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ki.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)}function H(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ei.test(String.fromCharCode(e)):t===!1?!1:Ne(e,nt)||Ne(e,Si)}var S=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function P(e,t){return new S(e,{beforeExpr:!0,binop:t})}var I={beforeExpr:!0},A={startsExpr:!0},Oe={};function b(e,t){return t===void 0&&(t={}),t.keyword=e,Oe[e]=new S(e,t)}var a={num:new S("num",A),regexp:new S("regexp",A),string:new S("string",A),name:new S("name",A),privateId:new S("privateId",A),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",I),semi:new S(";",I),colon:new S(":",I),dot:new S("."),question:new S("?",I),questionDot:new S("?."),arrow:new S("=>",I),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",I),backQuote:new S("`",A),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:P("||",1),logicalAND:P("&&",2),bitwiseOR:P("|",3),bitwiseXOR:P("^",4),bitwiseAND:P("&",5),equality:P("==/!=/===/!==",6),relational:P("/<=/>=",7),bitShift:P("<>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:P("%",10),star:P("*",10),slash:P("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:P("??",1),_break:b("break"),_case:b("case",I),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",I),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",I),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",A),_if:b("if"),_return:b("return",I),_switch:b("switch"),_throw:b("throw",I),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",A),_super:b("super",A),_class:b("class",A),_extends:b("extends",I),_export:b("export"),_import:b("import",A),_null:b("null",A),_true:b("true",A),_false:b("false",A),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},L=/\r\n?|\n|\u2028|\u2029/,wi=new RegExp(L.source,"g");function Q(e){return e===10||e===13||e===8232||e===8233}function ut(e,t,i){i===void 0&&(i=e.length);for(var s=t;s>10)+55296,(e&1023)+56320))}var Ii=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ie=function(t,i){this.line=t,this.column=i};ie.prototype.offset=function(t){return new ie(this.line,this.column+t)};var xe=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ct(e,t){for(var i=1,s=0;;){var r=ut(e,s,t);if(r<0)return new ie(i,t-s);++i,s=r}}var Ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},st=!1;function Ni(e){var t={};for(var i in Ve)t[i]=e&&Y(e,i)?e[i]:Ve[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!st&&typeof console=="object"&&console.warn&&(st=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new xe(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var se=1,Z=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=se|Z|re;function je(e,t){return Z|(e?Be:0)|(t?lt:0)}var le=0,Me=1,G=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=K(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=K(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=K(n),this.reservedWordsStrictBind=K(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(` +`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(L).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(se),this.regexpState=null,this.privateNameStack=[]},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Z)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags<)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Z)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Z|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,N.lastIndex=e,e+=N.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||L.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ye=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(M(s,!0)){for(var r=i+1;H(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!Ti.test(n))return!0}return!1};l.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;N.lastIndex=this.pos;var e=N.exec(this.input),t=this.pos+e[0].length,i;return!L.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(H(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};l.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){N.lastIndex=this.pos;var o=N.exec(this.input),u=this.pos+o[0].length,p=this.input.charCodeAt(u);if(p===40||p===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var d=this.value,f=this.parseExpression();return s===a.name&&f.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,d,f,e):this.parseExpressionStatement(r,f)}};l.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};l.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ue),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var n=this.isContextual("let"),o=!1,u=this.containsEsc,p=new ye,d=this.start,f=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===a._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===a._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!u&&f.type==="Identifier"&&f.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&o&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,p),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))};l.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,te|(i?0:Le),!1,t)};l.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};l.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};l.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Ri),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};l.parseThrowStatement=function(e){return this.next(),L.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Oi=[];l.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?dt:0),this.checkLValPattern(e,t?yt:G),this.expect(a.parenR),e};l.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};l.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};l.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ue),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};l.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};l.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};l.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r=0;p--){var d=this.labels[p];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};l.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};l.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};l.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};l.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};l.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e};l.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Me:G,!1)};var te=1,Le=2,vt=4;l.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&Le&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&te&&(e.id=t&vt&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&Le)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Me:G:xt));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(e.async,e.generator)),t&te||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&te?"FunctionDeclaration":"FunctionExpression")};l.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};l.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&Bi(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};l.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?u=!0:s="static"}if(i.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var p=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=p:s=p)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||o!=="method"||r||n){var d=!i.static&&fe(i,"constructor"),f=d&&e;d&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=d?"constructor":o,this.parseClassMethod(i,r,n,f)}else this.parseClassField(i);return i};l.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};l.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};l.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&fe(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};l.parseClassField=function(e){if(fe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&fe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};l.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(re|De);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};l.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,G,!1)):(t===!0&&this.unexpected(),e.id=null)};l.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};l.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};l.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};l.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};l.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportSpecifier")};l.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportDefaultSpecifier")};l.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,G),this.finishNode(e,"ImportNamespaceSpecifier")};l.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return e;if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseImportSpecifier())}return e};l.parseWithClause=function(){var e=[];if(!this.eat(a._with))return e;this.expect(a.braceL);for(var t={},i=!0;!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Y(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e};l.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};l.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Ii.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};l.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var R=T.prototype;R.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s=8&&!u&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(_.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[p],!1,t);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===a.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return p=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[p],!0,t)}return p;case a.regexp:var d=this.value;return s=this.parseLiteral(d.value),s.regex={pattern:d.pattern,flags:d.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var f=this.start,C=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(C)&&(e.parenthesizedAssign=f),e.parenthesizedBind<0&&(e.parenthesizedBind=f)),C;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(_.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};y.parseExprAtomDefault=function(){this.unexpected()};y.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};y.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(a.parenR)?e.options=null:(this.expect(a.comma),this.afterTrailingComma(a.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(a.parenR)||(this.expect(a.comma),this.afterTrailingComma(a.parenR)||this.unexpected())));else if(!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};y.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};y.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};y.shouldParseArrow=function(e){return!this.canInsertSemicolon()};y.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,p=[],d=!0,f=!1,C=new ye,B=this.yieldPos,h=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(d?d=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){f=!0;break}else if(this.type===a.ellipsis){m=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,C,this.parseParenItem));var x=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(p)&&this.eat(a.arrow))return this.checkPatternErrors(C,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=h,this.parseParenArrowList(i,s,p,t);(!p.length||f)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(C,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=h||this.awaitPos,p.length>1?(r=this.startNodeAt(o,u),r.expressions=p,this.finishNodeAt(r,"SequenceExpression",x,g)):r=p[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(i,s);return w.expression=r,this.finishNode(w,"ParenthesizedExpression")}else return r};y.parseParenItem=function(e){return e};y.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Di=[];y.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Di,this.finishNode(e,"NewExpression")};y.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,` `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Me(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};y.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var p=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!n&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,gt),e.body=this.parseBlock(!1,void 0,o&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=p}this.exitScope()};y.isSimpleParamList=function(e){for(var t=0,i=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&ie&&delete this.undefinedExports[e]}else if(t===yt){var n=this.currentScope();n.lexical.push(e)}else if(t===xt){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(e)>-1:s=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var p=this.scopeStack[u];if(p.lexical.indexOf(e)>-1&&!(p.flags&dt&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){s=!0;break}if(p.var.push(e),this.inModule&&p.flags&ie&&delete this.undefinedExports[e],p.flags&Fe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};X.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};X.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};X.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe)return t}};X.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe&&!(t.flags&ft))return t}};var ge=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new xe(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ae=T.prototype;ae.startNode=function(){return new ge(this,this.start,this.startLoc)};ae.startNodeAt=function(e,t){return new ge(this,e,t)};function St(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ae.finishNode=function(e,t){return St.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ae.finishNodeAt=function(e,t,i,s){return St.call(this,e,t,i,s)};ae.copyNode=function(e){var t=new ge(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_t=Ct+" Extended_Pictographic",Tt=_t,kt=Tt+" EBase EComp EMod EPres ExtPict",Et=kt,Mi=Et,ji={9:Ct,10:_t,11:Tt,12:kt,13:Et,14:Mi},Ui="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",qi={9:"",10:"",11:"",12:"",13:"",14:Ui},rt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",At=wt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pt=At+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",It=Pt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nt=It+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ji=Nt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Gi={9:wt,10:At,11:Pt,12:It,13:Nt,14:Ji},Vt={};function Ki(e){var t=Vt[e]={binary:G(ji[e]+" "+rt),binaryOfStrings:G(qi[e]),nonBinary:{General_Category:G(rt),Script:G(Gi[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(ce=0,Ie=[9,10,11,12,13,14];ce=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Vt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};M.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};M.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};M.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var o=s.charCodeAt(t+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n};M.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),o;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(o=s.charCodeAt(t+1))<56320||o>57343?t+1:t+2};M.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};M.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};M.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};M.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};M.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")};function Xi(e){for(var t in e)return!0;return!1}c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Xi(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=16;for(t&&(e.branchID=new me(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};c.regexp_alternative=function(e){for(;e.pos=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};c.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Lt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Lt(i);)e.advance();return e.pos!==t};c.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};c.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Wi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Wi(e){return U(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Hi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Hi(e){return z(e,!0)||e===36||e===95||e===8204||e===8205}c.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};c.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};c.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};c.regexp_eatZero=function(e){return e.current()===48&&!ve(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};c.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};c.regexp_eatControlLetter=function(e){var t=e.current();return Rt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Rt(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&zi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function zi(e){return e>=0&&e<=1114111}c.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};c.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ot=0,q=1,L=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Qi(t))return e.lastIntValue=-1,e.advance(),q;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===L&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Ot};function Qi(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),q}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Ot};c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){se(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return q;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return L;e.raise("Invalid property name")};c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Bt(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Bt(e){return Rt(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Yi(t=e.current());)e.lastStringValue+=K(t),e.advance();return e.lastStringValue!==""};function Yi(e){return Bt(e)||ve(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===L&&e.raise("Negated character class may contain strings"),!0}return!1};c.regexp_classContents=function(e){return e.current()===93?q:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),q)};c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Mt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};c.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};c.regexp_classSetExpression=function(e){var t=q,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===L&&(t=L);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==L&&(t=q);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===L&&(t=L)}};c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?q:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===L&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===L&&(t=L);return t};c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?q:L};c.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&$i(i)||Zi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function $i(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Zi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return es(t)?(e.lastIntValue=t,e.advance(),!0):!1};function es(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return ve(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};c.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;ve(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function ve(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Dt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ft(i),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ft(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};c.regexp_eatOctalDigit=function(e){var t=e.current();return Mt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Mt(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};v.readToken=function(e){return U(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};v.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};v.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=ut(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};v.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&pt.test(String.fromCharCode(e)))++this.pos;else break e}}};v.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};v.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))};v.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)};v.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)};v.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};v.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)};v.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)};v.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))};v.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)};v.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};v.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),U(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+K(t)+"'")};v.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K(e)+"'")};v.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};v.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(R.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new M(this));u.reset(i,r,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var p=null;try{p=new RegExp(r,o)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:o,value:p})};v.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,p=0,d=t??1/0;p=97?C=l-97+10:l>=65?C=l-65+10:l>=48&&l<=57?C=l-48:C=1/0,C>=e)break;u=l,o=o*e+C}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:o};function ts(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function jt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}v.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=jt(this.input.slice(t,this.pos)),++this.pos):U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)};v.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=jt(this.input.slice(t,this.pos));return++this.pos,U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),U(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=ts(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)};v.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};v.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Q(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var Ut={};v.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};v.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;this.raise(e,t)};v.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Q(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!L.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(je(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};y.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var p=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!n&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,gt),e.body=this.parseBlock(!1,void 0,o&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=p}this.exitScope()};y.isSimpleParamList=function(e){for(var t=0,i=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&se&&delete this.undefinedExports[e]}else if(t===yt){var n=this.currentScope();n.lexical.push(e)}else if(t===xt){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(e)>-1:s=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var p=this.scopeStack[u];if(p.lexical.indexOf(e)>-1&&!(p.flags&dt&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){s=!0;break}if(p.var.push(e),this.inModule&&p.flags&se&&delete this.undefinedExports[e],p.flags&Fe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};W.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};W.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};W.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe)return t}};W.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Fe&&!(t.flags&ft))return t}};var ge=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new xe(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ae=T.prototype;ae.startNode=function(){return new ge(this,this.start,this.startLoc)};ae.startNodeAt=function(e,t){return new ge(this,e,t)};function St(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ae.finishNode=function(e,t){return St.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ae.finishNodeAt=function(e,t,i,s){return St.call(this,e,t,i,s)};ae.copyNode=function(e){var t=new ge(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var ji="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_t=Ct+" Extended_Pictographic",Tt=_t,kt=Tt+" EBase EComp EMod EPres ExtPict",Et=kt,Mi=Et,Ui={9:Ct,10:_t,11:Tt,12:kt,13:Et,14:Mi},qi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Gi={9:"",10:"",11:"",12:"",13:"",14:qi},rt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",At=wt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Pt=At+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",It=Pt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nt=It+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ji=Nt+" "+ji,Ki={9:wt,10:At,11:Pt,12:It,13:Nt,14:Ji},Vt={};function Wi(e){var t=Vt[e]={binary:K(Ui[e]+" "+rt),binaryOfStrings:K(Gi[e]),nonBinary:{General_Category:K(rt),Script:K(Ki[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(ce=0,Ie=[9,10,11,12,13,14];ce=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Vt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};j.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};j.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};j.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var o=s.charCodeAt(t+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n};j.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),o;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(o=s.charCodeAt(t+1))<56320||o>57343?t+1:t+2};j.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};j.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};j.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};j.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};j.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")};function Xi(e){for(var t in e)return!0;return!1}c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Xi(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t=16;for(t&&(e.branchID=new me(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};c.regexp_alternative=function(e){for(;e.pos=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r=16){var i=this.regexp_eatModifiers(e),s=e.eat(45);if(i||s){for(var r=0;r-1&&e.raise("Duplicate regular expression modifiers")}if(s){var o=this.regexp_eatModifiers(e);!i&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u-1||i.indexOf(p)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};c.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};c.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&zi(i);)t+=U(i),e.advance();return t};function zi(e){return e===105||e===109||e===115}c.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Lt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Lt(i);)e.advance();return e.pos!==t};c.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};c.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Hi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Hi(e){return M(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Qi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Qi(e){return H(e,!0)||e===36||e===95||e===8204||e===8205}c.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};c.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};c.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};c.regexp_eatZero=function(e){return e.current()===48&&!ve(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};c.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};c.regexp_eatControlLetter=function(e){var t=e.current();return Rt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Rt(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Yi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Yi(e){return e>=0&&e<=1114111}c.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};c.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ot=0,q=1,V=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Zi(t))return e.lastIntValue=-1,e.advance(),q;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===V&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return Ot};function Zi(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),q}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Ot};c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Y(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return q;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return V;e.raise("Invalid property name")};c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Bt(t=e.current());)e.lastStringValue+=U(t),e.advance();return e.lastStringValue!==""};function Bt(e){return Rt(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";$i(t=e.current());)e.lastStringValue+=U(t),e.advance();return e.lastStringValue!==""};function $i(e){return Bt(e)||ve(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===V&&e.raise("Negated character class may contain strings"),!0}return!1};c.regexp_classContents=function(e){return e.current()===93?q:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),q)};c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||jt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};c.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};c.regexp_classSetExpression=function(e){var t=q,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===V&&(t=V);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==V&&(t=q);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===V&&(t=V)}};c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?q:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===V&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===V&&(t=V);return t};c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?q:V};c.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&es(i)||ts(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function es(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function ts(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return is(t)?(e.lastIntValue=t,e.advance(),!0):!1};function is(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return ve(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};c.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;ve(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function ve(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Dt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ft(i),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ft(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};c.regexp_eatOctalDigit=function(e){var t=e.current();return jt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function jt(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};v.readToken=function(e){return M(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};v.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};v.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=ut(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};v.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&pt.test(String.fromCharCode(e)))++this.pos;else break e}}};v.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};v.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))};v.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)};v.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)};v.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};v.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)};v.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||L.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)};v.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))};v.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)};v.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};v.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),M(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+U(t)+"'")};v.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+U(e)+"'")};v.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};v.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(L.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new j(this));u.reset(i,r,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var p=null;try{p=new RegExp(r,o)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:o,value:p})};v.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,p=0,d=t??1/0;p=97?C=f-97+10:f>=65?C=f-65+10:f>=48&&f<=57?C=f-48:C=1/0,C>=e)break;u=f,o=o*e+C}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:o};function ss(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Mt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}v.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Mt(this.input.slice(t,this.pos)),++this.pos):M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)};v.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=Mt(this.input.slice(t,this.pos));return++this.pos,M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=ss(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)};v.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};v.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Q(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var Ut={};v.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};v.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;this.raise(e,t)};v.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Q(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};v.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},W=hs;function cs(e){return Array.isArray(e)&&e.length>0}var Xt=cs;function P(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(P(i),t):t}function j(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ls(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Wt=ls;var fs=Wt(["Block","CommentBlock","MultiLine"]),oe=fs;function ds(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=ds;function ms(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var Ht=ms;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var xs=10;for(let e=0;e<=xs;e++)pe();function Xe(e){return pe(e)}function ys(e,t="type"){Xe(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var zt=ys;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var gs=zt(Qt),Yt=gs;function We(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(Ht)&&r.add(P(n))}),e=Ce(e,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=[...n.range],o;let u=P(n);if(!r.has(u))return o.extra={...o.extra,parenthesized:!0},o}})}if(e=Ce(e,r=>{var n;switch(r.type){case"LogicalExpression":if($t(r))return He(r);break;case"VariableDeclaration":{let o=W(!1,r.declarations,-1);o!=null&&o.init&&s[j(o)]!==";"&&(r.range=[P(r),j(o)]);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let o=P(r);r.name={type:"Identifier",name:r.name,range:[o,o+r.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(i==="meriyah"&&((n=r.exported)==null?void 0:n.type)==="Identifier"){let{exported:o}=r,u=s.slice(P(o),j(o));(u.startsWith('"')||u.startsWith("'"))&&(r.exported={...r.exported,type:"Literal",value:r.exported.name,raw:u})}break;case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Xt(e.comments)){let r=W(!1,e.comments,-1);for(let n=e.comments.length-2;n>=0;n--){let o=e.comments[n];j(o)===P(r)&&oe(o)&&oe(r)&&Ke(o)&&Ke(r)&&(e.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[P(o),j(r)]),r=o}}return e.type==="Program"&&(e.range=[0,s.length]),e}function $t(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function He(e){return $t(e)?He({type:"LogicalExpression",operator:e.operator,left:He({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[P(e.left),j(e.right.left)]}),right:e.right.right,range:[P(e),j(e)]}):e}var _e=vs;var bs=(e,t,i,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(i,s):i.global?t.replace(i,s):t.split(i).join(s)},Z=bs;var Ss=/\*\/$/,Cs=/^\/\*\*?/,_s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ts=/(^|\s+)\/\/([^\n\r]*)/g,Zt=/^(\r?\n)+/,ks=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Es=/(\r?\n|^) *\* ?/g,ws=[];function ti(e){let t=e.match(_s);return t?t[0].trimStart():""}function ii(e){let t=` -`;e=Z(!1,e.replace(Cs,"").replace(Ss,""),Es,"$1");let i="";for(;i!==e;)i=e,e=Z(!1,e,ks,`${t}$1 $2${t}`);e=e.replace(Zt,"").trimEnd();let s=Object.create(null),r=Z(!1,e,ei,"").replace(Zt,"").trimEnd(),n;for(;n=ei.exec(e);){let o=Z(!1,n[2],Ts,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...ws,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function As(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var si=As;function Ps(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ps(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Is(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:P,locEnd:j,...e}}var Te=Is;function Ns(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var ke=Ns;var Vs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Ls(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return be(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Rs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Os(e,t){let i=Rs(),s=[],r=[],n=i.parse(e,{...Vs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Bs(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>Os(e,n)),r;try{r=Se(s)}catch({errors:[n]}){throw Ls(n)}return _e(r,{text:e})}var oi=Te(Bs);var ci=et(Ge(),1);var E={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Ds(e,t){let i=e[0],s=W(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function ze(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}ze.prototype={constructor:ze,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(Ds(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=ze;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Fs(){return W(!1,pi,-1)}function Ms(e=5){let t=e==="latest"?Fs():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function js(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Ms(e.ecmaVersion),i=js(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:i,ranges:s,locations:r,allowReserved:n,allowReturnOutsideFunction:u})}var H=Symbol("espree's internal state"),Qe=Symbol("espree's esprimaFinishNode");function Us(e,t,i,s,r,n,o){let u;e?u="Block":o.slice(i,i+2)==="#!"?u="Hashbang":u="Line";let p={type:u,value:t};return typeof i=="number"&&(p.start=i,p.end=s,p.range=[i,s]),typeof r=="object"&&(p.loc={start:r,end:n}),p}var Ye=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(s,r){(typeof s!="object"||s===null)&&(s={}),typeof r!="string"&&!(r instanceof String)&&(r=String(r));let n=s.sourceType,o=hi(s),u=o.ecmaFeatures||{},p=o.tokens===!0?new ui(t,r):null,d={originalSourceType:n||o.sourceType,tokens:p?[]:null,comments:o.comment===!0?[]:null,impliedStrict:u.impliedStrict===!0&&o.ecmaVersion>=5,ecmaVersion:o.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReserved:o.allowReserved,allowReturnOutsideFunction:o.allowReturnOutsideFunction,onToken(l){p&&p.onToken(l,d),l.type!==t.eof&&(d.lastToken=l)},onComment(l,C,B,h,m,x){if(d.comments){let g=Us(l,C,B,h,m,x,r);d.comments.push(g)}}},r),this[H]=d}tokenize(){do this.next();while(this.type!==t.eof);this.next();let s=this[H],r=s.tokens;return s.comments&&(r.comments=s.comments),r}finishNode(...s){let r=super.finishNode(...s);return this[Qe](r)}finishNodeAt(...s){let r=super.finishNodeAt(...s);return this[Qe](r)}parse(){let s=this[H],r=super.parse();if(r.sourceType=s.originalSourceType,s.comments&&(r.comments=s.comments),s.tokens&&(r.tokens=s.tokens),r.body.length){let[n]=r.body;r.range&&(r.range[0]=n.range[0]),r.loc&&(r.loc.start=n.loc.start),r.start=n.start}return s.lastToken&&(r.range&&(r.range[1]=s.lastToken.range[1]),r.loc&&(r.loc.end=s.lastToken.loc.end),r.end=s.lastToken.end),this[H].templateElements.forEach(n=>{let u=n.tail?1:2;n.start+=-1,n.end+=u,n.range&&(n.range[0]+=-1,n.range[1]+=u),n.loc&&(n.loc.start.column+=-1,n.loc.end.column+=u)}),r}parseTopLevel(s){return this[H].impliedStrict&&(this.strict=!0),super.parseTopLevel(s)}raise(s,r){let n=e.acorn.getLineInfo(this.input,s),o=new SyntaxError(r);throw o.index=s,o.lineNumber=n.line,o.column=n.column+1,o}raiseRecoverable(s,r){this.raise(s,r)}unexpected(s){let r="Unexpected token";if(s!=null){if(this.pos=s,this.options.locations)for(;this.posthis.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[H].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[H].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var qs={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=qs.get(t);return new i(t,e).parse()}var Js={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Gs(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:be(t,{loc:{start:{line:i,column:s}},cause:e})}function Ks(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Js,sourceType:n})),r;try{r=Se(s)}catch({errors:[n]}){throw Gs(n)}return _e(r,{text:e})}var fi=Te(Ks);var Xs={acorn:oi,espree:fi};var ba=$e;export{ba as default,Xs as parsers}; +`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return U(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},X=ls;function fs(e){return Array.isArray(e)&&e.length>0}var Wt=fs;function O(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(O(i),t):t}function J(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ds(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Xt=ds;var ms=Xt(["Block","CommentBlock","MultiLine"]),oe=ms;function xs(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=xs;function ys(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var zt=ys;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var gs=10;for(let e=0;e<=gs;e++)pe();function We(e){return pe(e)}function vs(e,t="type"){We(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var Ht=vs;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var bs=Ht(Qt),Yt=bs;function Xe(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let s=0;s{var o;(o=n.leadingComments)!=null&&o.some(zt)&&r.add(O(n))}),e=Ce(e,n=>{if(n.type==="ParenthesizedExpression"){let{expression:o}=n;if(o.type==="TypeCastExpression")return o.range=[...n.range],o;let u=O(n);if(!r.has(u))return o.extra={...o.extra,parenthesized:!0},o}})}if(e=Ce(e,r=>{switch(r.type){case"LogicalExpression":if(Zt(r))return ze(r);break;case"VariableDeclaration":{let n=X(!1,r.declarations,-1);n!=null&&n.init&&s[J(n)]!==";"&&(r.range=[O(r),J(n)]);break}case"TSParenthesizedType":return r.typeAnnotation;case"TSTypeParameter":if(typeof r.name=="string"){let n=O(r);r.name={type:"Identifier",name:r.name,range:[n,n+r.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(r.types.length===1)return r.types[0];break}}),Wt(e.comments)){let r=X(!1,e.comments,-1);for(let n=e.comments.length-2;n>=0;n--){let o=e.comments[n];J(o)===O(r)&&oe(o)&&oe(r)&&Ke(o)&&Ke(r)&&(e.comments.splice(n+1,1),o.value+="*//*"+r.value,o.range=[O(o),J(r)]),r=o}}return e.type==="Program"&&(e.range=[0,s.length]),e}function Zt(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function ze(e){return Zt(e)?ze({type:"LogicalExpression",operator:e.operator,left:ze({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[O(e.left),J(e.right.left)]}),right:e.right.right,range:[O(e),J(e)]}):e}var _e=Ss;var Cs=(e,t,i,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(i,s):i.global?t.replace(i,s):t.split(i).join(s)},ee=Cs;var _s=/\*\/$/,Ts=/^\/\*\*?/,ks=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Es=/(^|\s+)\/\/([^\n\r]*)/g,$t=/^(\r?\n)+/,ws=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,As=/(\r?\n|^) *\* ?/g,Ps=[];function ti(e){let t=e.match(ks);return t?t[0].trimStart():""}function ii(e){let t=` +`;e=ee(!1,e.replace(Ts,"").replace(_s,""),As,"$1");let i="";for(;i!==e;)i=e,e=ee(!1,e,ws,`${t}$1 $2${t}`);e=e.replace($t,"").trimEnd();let s=Object.create(null),r=ee(!1,e,ei,"").replace($t,"").trimEnd(),n;for(;n=ei.exec(e);){let o=ee(!1,n[2],Es,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...Ps,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function Is(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var si=Is;function Ns(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ns(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Vs(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:O,locEnd:J,...e}}var Te=Vs;function Ls(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var ke=Ls;var Rs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Os(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return be(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Bs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Ds(e,t){let i=Bs(),s=[],r=[],n=i.parse(e,{...Rs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Fs(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>Ds(e,n)),r;try{r=Se(s)}catch({errors:[n]}){throw Os(n)}return _e(r,{text:e})}var oi=Te(Fs);var ci=et(Je(),1);var E={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function js(e,t){let i=e[0],s=X(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function He(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}He.prototype={constructor:He,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(js(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=He;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Ms(){return X(!1,pi,-1)}function Us(e=5){let t=e==="latest"?Ms():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function qs(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Us(e.ecmaVersion),i=qs(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:i,ranges:s,locations:r,allowReserved:n,allowReturnOutsideFunction:u})}var z=Symbol("espree's internal state"),Qe=Symbol("espree's esprimaFinishNode");function Gs(e,t,i,s,r,n,o){let u;e?u="Block":o.slice(i,i+2)==="#!"?u="Hashbang":u="Line";let p={type:u,value:t};return typeof i=="number"&&(p.start=i,p.end=s,p.range=[i,s]),typeof r=="object"&&(p.loc={start:r,end:n}),p}var Ye=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(s,r){(typeof s!="object"||s===null)&&(s={}),typeof r!="string"&&!(r instanceof String)&&(r=String(r));let n=s.sourceType,o=hi(s),u=o.ecmaFeatures||{},p=o.tokens===!0?new ui(t,r):null,d={originalSourceType:n||o.sourceType,tokens:p?[]:null,comments:o.comment===!0?[]:null,impliedStrict:u.impliedStrict===!0&&o.ecmaVersion>=5,ecmaVersion:o.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReserved:o.allowReserved,allowReturnOutsideFunction:o.allowReturnOutsideFunction,onToken(f){p&&p.onToken(f,d),f.type!==t.eof&&(d.lastToken=f)},onComment(f,C,B,h,m,x){if(d.comments){let g=Gs(f,C,B,h,m,x,r);d.comments.push(g)}}},r),this[z]=d}tokenize(){do this.next();while(this.type!==t.eof);this.next();let s=this[z],r=s.tokens;return s.comments&&(r.comments=s.comments),r}finishNode(...s){let r=super.finishNode(...s);return this[Qe](r)}finishNodeAt(...s){let r=super.finishNodeAt(...s);return this[Qe](r)}parse(){let s=this[z],r=super.parse();if(r.sourceType=s.originalSourceType,s.comments&&(r.comments=s.comments),s.tokens&&(r.tokens=s.tokens),r.body.length){let[n]=r.body;r.range&&(r.range[0]=n.range[0]),r.loc&&(r.loc.start=n.loc.start),r.start=n.start}return s.lastToken&&(r.range&&(r.range[1]=s.lastToken.range[1]),r.loc&&(r.loc.end=s.lastToken.loc.end),r.end=s.lastToken.end),this[z].templateElements.forEach(n=>{let u=n.tail?1:2;n.start+=-1,n.end+=u,n.range&&(n.range[0]+=-1,n.range[1]+=u),n.loc&&(n.loc.start.column+=-1,n.loc.end.column+=u)}),r}parseTopLevel(s){return this[z].impliedStrict&&(this.strict=!0),super.parseTopLevel(s)}raise(s,r){let n=e.acorn.getLineInfo(this.input,s),o=new SyntaxError(r);throw o.index=s,o.lineNumber=n.line,o.column=n.column+1,o}raiseRecoverable(s,r){this.raise(s,r)}unexpected(s){let r="Unexpected token";if(s!=null){if(this.pos=s,this.options.locations)for(;this.posthis.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[z].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[z].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var Js={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=Js.get(t);return new i(t,e).parse()}var Ks={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Ws(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:be(t,{loc:{start:{line:i,column:s}},cause:e})}function Xs(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Ks,sourceType:n})),r;try{r=Se(s)}catch({errors:[n]}){throw Ws(n)}return _e(r,{text:e})}var fi=Te(Xs);var zs={acorn:oi,espree:fi};var Ca=Ze;export{Ca as default,zs as parsers}; diff --git a/node_modules/prettier/plugins/angular.js b/node_modules/prettier/plugins/angular.js index f47e5fba..2c08a5d8 100644 --- a/node_modules/prettier/plugins/angular.js +++ b/node_modules/prettier/plugins/angular.js @@ -1 +1,2 @@ -(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.angular=e()}})(function(){"use strict";var Ut=Object.defineProperty;var Je=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var ts=Object.prototype.hasOwnProperty;var ae=r=>{throw TypeError(r)};var oe=(r,t)=>{for(var e in t)Ut(r,e,{get:t[e],enumerable:!0})},es=(r,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xe(t))!ts.call(r,i)&&i!==e&&Ut(r,i,{get:()=>t[i],enumerable:!(s=Je(t,i))||s.enumerable});return r};var ss=r=>es(Ut({},"__esModule",{value:!0}),r);var Ft=(r,t,e)=>t.has(r)||ae("Cannot "+e);var O=(r,t,e)=>(Ft(r,t,"read from private field"),e?e.call(r):t.get(r)),P=(r,t,e)=>t.has(r)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),Y=(r,t,e,s)=>(Ft(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e),c=(r,t,e)=>(Ft(r,t,"access private method"),e);var rr={};oe(rr,{parsers:()=>ne});var ne={};oe(ne,{__ng_action:()=>Xs,__ng_binding:()=>tr,__ng_directive:()=>sr,__ng_interpolation:()=>er});var Z=class{constructor(t,e,s,i){this.input=e,this.errLocation=s,this.ctxLocation=i,this.message=`Parser Error: ${t} ${s} [${e}] in ${i}`}},b=class{constructor(t,e){this.start=t,this.end=e}toAbsolute(t){return new L(t+this.start,t+this.end)}},m=class{constructor(t,e){this.span=t,this.sourceSpan=e}toString(){return"AST"}},J=class extends m{constructor(t,e,s){super(t,e),this.nameSpan=s}},$=class extends m{visit(t,e=null){}},K=class extends m{visit(t,e=null){return t.visitImplicitReceiver(this,e)}},Lt=class extends K{visit(t,e=null){var s;return(s=t.visitThisReceiver)==null?void 0:s.call(t,this,e)}},X=class extends m{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitChain(this,e)}},tt=class extends m{constructor(t,e,s,i,n){super(t,e),this.condition=s,this.trueExp=i,this.falseExp=n}visit(t,e=null){return t.visitConditional(this,e)}},M=class extends J{constructor(t,e,s,i,n){super(t,e,s),this.receiver=i,this.name=n}visit(t,e=null){return t.visitPropertyRead(this,e)}},et=class extends J{constructor(t,e,s,i,n,a){super(t,e,s),this.receiver=i,this.name=n,this.value=a}visit(t,e=null){return t.visitPropertyWrite(this,e)}},_=class extends J{constructor(t,e,s,i,n){super(t,e,s),this.receiver=i,this.name=n}visit(t,e=null){return t.visitSafePropertyRead(this,e)}},st=class extends m{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitKeyedRead(this,e)}},U=class extends m{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitSafeKeyedRead(this,e)}},rt=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.key=i,this.value=n}visit(t,e=null){return t.visitKeyedWrite(this,e)}},it=class extends J{constructor(t,e,s,i,n,a){super(t,e,a),this.exp=s,this.name=i,this.args=n}visit(t,e=null){return t.visitPipe(this,e)}},E=class extends m{constructor(t,e,s){super(t,e),this.value=s}visit(t,e=null){return t.visitLiteralPrimitive(this,e)}},nt=class extends m{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitLiteralArray(this,e)}},at=class extends m{constructor(t,e,s,i){super(t,e),this.keys=s,this.values=i}visit(t,e=null){return t.visitLiteralMap(this,e)}},ot=class extends m{constructor(t,e,s,i){super(t,e),this.strings=s,this.expressions=i}visit(t,e=null){return t.visitInterpolation(this,e)}},A=class extends m{constructor(t,e,s,i,n){super(t,e),this.operation=s,this.left=i,this.right=n}visit(t,e=null){return t.visitBinary(this,e)}},F=class r extends A{static createMinus(t,e,s){return new r(t,e,"-",s,"-",new E(t,e,0),s)}static createPlus(t,e,s){return new r(t,e,"+",s,"-",s,new E(t,e,0))}constructor(t,e,s,i,n,a,o){super(t,e,n,a,o),this.operator=s,this.expr=i,this.left=null,this.right=null,this.operation=null}visit(t,e=null){return t.visitUnary!==void 0?t.visitUnary(this,e):t.visitBinary(this,e)}},ct=class extends m{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitPrefixNot(this,e)}},ht=class extends m{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitNonNullAssert(this,e)}},pt=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=n}visit(t,e=null){return t.visitCall(this,e)}},D=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=n}visit(t,e=null){return t.visitSafeCall(this,e)}},L=class{constructor(t,e){this.start=t,this.end=e}},R=class extends m{constructor(t,e,s,i,n){super(new b(0,e===null?0:e.length),new L(i,e===null?i:i+e.length)),this.ast=t,this.source=e,this.location=s,this.errors=n}visit(t,e=null){return t.visitASTWithSource?t.visitASTWithSource(this,e):this.ast.visit(t,e)}toString(){return`${this.source} in ${this.location}`}},W=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},ut=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},Rt=class{visit(t,e){t.visit(this,e)}visitUnary(t,e){this.visit(t.expr,e)}visitBinary(t,e){this.visit(t.left,e),this.visit(t.right,e)}visitChain(t,e){this.visitAll(t.expressions,e)}visitConditional(t,e){this.visit(t.condition,e),this.visit(t.trueExp,e),this.visit(t.falseExp,e)}visitPipe(t,e){this.visit(t.exp,e),this.visitAll(t.args,e)}visitImplicitReceiver(t,e){}visitThisReceiver(t,e){}visitInterpolation(t,e){this.visitAll(t.expressions,e)}visitKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitKeyedWrite(t,e){this.visit(t.receiver,e),this.visit(t.key,e),this.visit(t.value,e)}visitLiteralArray(t,e){this.visitAll(t.expressions,e)}visitLiteralMap(t,e){this.visitAll(t.values,e)}visitLiteralPrimitive(t,e){}visitPrefixNot(t,e){this.visit(t.expression,e)}visitNonNullAssert(t,e){this.visit(t.expression,e)}visitPropertyRead(t,e){this.visit(t.receiver,e)}visitPropertyWrite(t,e){this.visit(t.receiver,e),this.visit(t.value,e)}visitSafePropertyRead(t,e){this.visit(t.receiver,e)}visitSafeKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitSafeCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitAll(t,e){for(let s of t)this.visit(s,e)}};var ce;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.LITERAL_ATTR=1]="LITERAL_ATTR",r[r.ANIMATION=2]="ANIMATION",r[r.TWO_WAY=3]="TWO_WAY"})(ce||(ce={}));var he;(function(r){r[r.Regular=0]="Regular",r[r.Animation=1]="Animation",r[r.TwoWay=2]="TwoWay"})(he||(he={}));var pe;(function(r){r[r.Property=0]="Property",r[r.Attribute=1]="Attribute",r[r.Class=2]="Class",r[r.Style=3]="Style",r[r.Animation=4]="Animation",r[r.TwoWay=5]="TwoWay"})(pe||(pe={}));function ue(r){return r>=9&&r<=32||r==160}function B(r){return 48<=r&&r<=57}function le(r){return r>=97&&r<=122||r>=65&&r<=90}function Dt(r){return r===39||r===34||r===96}var l;(function(r){r[r.Character=0]="Character",r[r.Identifier=1]="Identifier",r[r.PrivateIdentifier=2]="PrivateIdentifier",r[r.Keyword=3]="Keyword",r[r.String=4]="String",r[r.Operator=5]="Operator",r[r.Number=6]="Number",r[r.Error=7]="Error"})(l||(l={}));var Ps=["var","let","as","null","undefined","true","false","if","else","this"],yt=class{tokenize(t){let e=new Vt(t),s=[],i=e.scanToken();for(;i!=null;)s.push(i),i=e.scanToken();return s}},I=class{constructor(t,e,s,i,n){this.index=t,this.end=e,this.type=s,this.numValue=i,this.strValue=n}isCharacter(t){return this.type==l.Character&&this.numValue==t}isNumber(){return this.type==l.Number}isString(){return this.type==l.String}isOperator(t){return this.type==l.Operator&&this.strValue==t}isIdentifier(){return this.type==l.Identifier}isPrivateIdentifier(){return this.type==l.PrivateIdentifier}isKeyword(){return this.type==l.Keyword}isKeywordLet(){return this.type==l.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==l.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==l.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==l.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==l.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==l.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==l.Keyword&&this.strValue=="this"}isError(){return this.type==l.Error}toNumber(){return this.type==l.Number?this.numValue:-1}toString(){switch(this.type){case l.Character:case l.Identifier:case l.Keyword:case l.Operator:case l.PrivateIdentifier:case l.String:case l.Error:return this.strValue;case l.Number:return this.numValue.toString();default:return null}}};function ge(r,t,e){return new I(r,t,l.Character,e,String.fromCharCode(e))}function bs(r,t,e){return new I(r,t,l.Identifier,0,e)}function Ks(r,t,e){return new I(r,t,l.PrivateIdentifier,0,e)}function Bs(r,t,e){return new I(r,t,l.Keyword,0,e)}function Gt(r,t,e){return new I(r,t,l.Operator,0,e)}function Ts(r,t,e){return new I(r,t,l.String,0,e)}function Ms(r,t,e){return new I(r,t,l.Number,e,"")}function _s(r,t,e){return new I(r,t,l.Error,0,e)}var Bt=new I(-1,-1,l.Character,0,""),Vt=class{constructor(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let t=this.input,e=this.length,s=this.peek,i=this.index;for(;s<=32;)if(++i>=e){s=0;break}else s=t.charCodeAt(i);if(this.peek=s,this.index=i,i>=e)return null;if(me(s))return this.scanIdentifier();if(B(s))return this.scanNumber(i);let n=i;switch(s){case 46:return this.advance(),B(this.peek)?this.scanNumber(n):ge(n,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(n,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(n,String.fromCharCode(s));case 63:return this.scanQuestion(n);case 60:case 62:return this.scanComplexOperator(n,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(n,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(n,"&",38,"&");case 124:return this.scanComplexOperator(n,"|",124,"|");case 160:for(;ue(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(t,e){return this.advance(),ge(t,this.index,e)}scanOperator(t,e){return this.advance(),Gt(t,this.index,e)}scanComplexOperator(t,e,s,i,n,a){this.advance();let o=e;return this.peek==s&&(this.advance(),o+=i),n!=null&&this.peek==n&&(this.advance(),o+=a),Gt(t,this.index,o)}scanIdentifier(){let t=this.index;for(this.advance();Se(this.peek);)this.advance();let e=this.input.substring(t,this.index);return Ps.indexOf(e)>-1?Bs(t,this.index,e):bs(t,this.index,e)}scanPrivateIdentifier(){let t=this.index;if(this.advance(),!me(this.peek))return this.error("Invalid character [#]",-1);for(;Se(this.peek);)this.advance();let e=this.input.substring(t,this.index);return Ks(t,this.index,e)}scanNumber(t){let e=this.index===t,s=!1;for(this.advance();;){if(!B(this.peek))if(this.peek===95){if(!B(this.input.charCodeAt(this.index-1))||!B(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===46)e=!1;else if(Us(this.peek)){if(this.advance(),Fs(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}else break;this.advance()}let i=this.input.substring(t,this.index);s&&(i=i.replace(/_/g,""));let n=e?Ws(i):parseFloat(i);return Ms(t,this.index,n)}scanString(){let t=this.index,e=this.peek;this.advance();let s="",i=this.index,n=this.input;for(;this.peek!=e;)if(this.peek==92){s+=n.substring(i,this.index);let o;if(this.advance(),this.peek==117){let p=n.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(p))o=parseInt(p,16);else return this.error(`Invalid unicode escape [\\u${p}]`,0);for(let u=0;u<5;u++)this.advance()}else o=Ds(this.peek),this.advance();s+=String.fromCharCode(o),i=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=n.substring(i,this.index);return this.advance(),Ts(t,this.index,s+a)}scanQuestion(t){this.advance();let e="?";return(this.peek===63||this.peek===46)&&(e+=this.peek===46?".":"?",this.advance()),Gt(t,this.index,e)}error(t,e){let s=this.index+e;return _s(s,this.index,`Lexer Error: ${t} at column ${s} in expression [${this.input}]`)}};function me(r){return 97<=r&&r<=122||65<=r&&r<=90||r==95||r==36}function Se(r){return le(r)||B(r)||r==95||r==36}function Us(r){return r==101||r==69}function Fs(r){return r==45||r==43}function Ds(r){switch(r){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return r}}function Ws(r){let t=parseInt(r);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+r);return t}var Gs=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ee(r,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${r}' to be an array, [start, end].`);if(t!=null){let e=t[0],s=t[1];Gs.forEach(i=>{if(i.test(e)||i.test(s))throw new Error(`['${e}', '${s}'] contains unusable interpolation symbol.`)})}}var zt=class r{static fromArray(t){return t?(Ee("interpolation",t),new r(t[0],t[1])):Q}constructor(t,e){this.start=t,this.end=e}},Q=new zt("{{","}}");var qt=class{constructor(t,e,s){this.strings=t,this.expressions=e,this.offsets=s}},Ht=class{constructor(t,e,s){this.templateBindings=t,this.warnings=e,this.errors=s}},mt=class{constructor(t){this._lexer=t,this.errors=[]}parseAction(t,e,s,i=Q){this._checkNoInterpolation(t,e,i);let n=this._stripComments(t),a=this._lexer.tokenize(n),o=new z(t,e,s,a,1,this.errors,0).parseChain();return new R(o,t,e,s,this.errors)}parseBinding(t,e,s,i=Q){let n=this._parseBindingAst(t,e,s,i);return new R(n,t,e,s,this.errors)}checkSimpleExpression(t){let e=new jt;return t.visit(e),e.errors}parseSimpleBinding(t,e,s,i=Q){let n=this._parseBindingAst(t,e,s,i),a=this.checkSimpleExpression(n);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,t,e),new R(n,t,e,s,this.errors)}_reportError(t,e,s,i){this.errors.push(new Z(t,e,s,i))}_parseBindingAst(t,e,s,i){this._checkNoInterpolation(t,e,i);let n=this._stripComments(t),a=this._lexer.tokenize(n);return new z(t,e,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(t,e,s,i,n){let a=this._lexer.tokenize(e);return new z(e,s,n,a,0,this.errors,0).parseTemplateBindings({source:t,span:new L(i,i+t.length)})}parseInterpolation(t,e,s,i,n=Q){let{strings:a,expressions:o,offsets:p}=this.splitInterpolation(t,e,i,n);if(o.length===0)return null;let u=[];for(let f=0;ff.text),u,t,e,s)}parseInterpolationExpression(t,e,s){let i=this._stripComments(t),n=this._lexer.tokenize(i),a=new z(t,e,s,n,0,this.errors,0).parseChain(),o=["",""];return this.createInterpolationAst(o,[a],t,e,s)}createInterpolationAst(t,e,s,i,n){let a=new b(0,s.length),o=new ot(a,a.toAbsolute(n),t,e);return new R(o,s,i,n,this.errors)}splitInterpolation(t,e,s,i=Q){let n=[],a=[],o=[],p=s?Vs(s):null,u=0,f=!1,S=!1,{start:g,end:y}=i;for(;u-1)break;n>-1&&a>-1&&this._reportError(`Got interpolation (${s}${i}) where expression was expected`,t,`at column ${n} in`,e)}_getInterpolationEndIndex(t,e,s){for(let i of this._forEachUnquotedChar(t,s)){if(t.startsWith(e,i))return i;if(t.startsWith("//",i))return t.indexOf(e,i)}return-1}*_forEachUnquotedChar(t,e){let s=null,i=0;for(let n=e;n=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(t,e){let s=this.currentEndIndex;if(e!==void 0&&e>this.currentEndIndex&&(s=e),t>s){let i=s;s=t,t=i}return new b(t,s)}sourceSpan(t,e){let s=`${t}@${this.inputIndex}:${e}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(t,e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(t,e){this.context|=t;let s=e();return this.context^=t,s}consumeOptionalCharacter(t){return this.next.isCharacter(t)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(t){this.consumeOptionalCharacter(t)||this.error(`Missing expected ${String.fromCharCode(t)}`)}consumeOptionalOperator(t){return this.next.isOperator(t)?(this.advance(),!0):!1}expectOperator(t){this.consumeOptionalOperator(t)||this.error(`Missing expected operator ${t}`)}prettyPrintToken(t){return t===Bt?"end of input":`token ${t}`}expectIdentifierOrKeyword(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier or keyword`),null):(this.advance(),t.toString())}expectIdentifierOrKeywordOrString(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()&&!t.isString()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier, keyword, or string`),""):(this.advance(),t.toString())}parseChain(){let t=[],e=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let i=this.parseAdditive();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseAdditive(){let t=this.inputIndex,e=this.parseMultiplicative();for(;this.next.type==l.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let i=this.parseMultiplicative();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseMultiplicative(){let t=this.inputIndex,e=this.parsePrefix();for(;this.next.type==l.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let i=this.parsePrefix();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parsePrefix(){if(this.next.type==l.Operator){let t=this.inputIndex,e=this.next.strValue,s;switch(e){case"+":return this.advance(),s=this.parsePrefix(),F.createPlus(this.span(t),this.sourceSpan(t),s);case"-":return this.advance(),s=this.parsePrefix(),F.createMinus(this.span(t),this.sourceSpan(t),s);case"!":return this.advance(),s=this.parsePrefix(),new ct(this.span(t),this.sourceSpan(t),s)}}return this.parseCallChain()}parseCallChain(){let t=this.inputIndex,e=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))e=this.parseAccessMember(e,t,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?e=this.parseCall(e,t,!0):e=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(e,t,!0):this.parseAccessMember(e,t,!0);else if(this.consumeOptionalCharacter(91))e=this.parseKeyedReadOrWrite(e,t,!1);else if(this.consumeOptionalCharacter(40))e=this.parseCall(e,t,!1);else if(this.consumeOptionalOperator("!"))e=new ht(this.span(t),this.sourceSpan(t),e);else return e}parsePrimary(){let t=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}else{if(this.next.isKeywordNull())return this.advance(),new E(this.span(t),this.sourceSpan(t),null);if(this.next.isKeywordUndefined())return this.advance(),new E(this.span(t),this.sourceSpan(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new E(this.span(t),this.sourceSpan(t),!0);if(this.next.isKeywordFalse())return this.advance(),new E(this.span(t),this.sourceSpan(t),!1);if(this.next.isKeywordThis())return this.advance(),new Lt(this.span(t),this.sourceSpan(t));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let e=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new nt(this.span(t),this.sourceSpan(t),e)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new K(this.span(t),this.sourceSpan(t)),t,!1);if(this.next.isNumber()){let e=this.next.toNumber();return this.advance(),new E(this.span(t),this.sourceSpan(t),e)}else if(this.next.isString()){let e=this.next.toString();return this.advance(),new E(this.span(t),this.sourceSpan(t),e)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new $(this.span(t),this.sourceSpan(t))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new $(this.span(t),this.sourceSpan(t))):(this.error(`Unexpected token ${this.next}`),new $(this.span(t),this.sourceSpan(t)))}}}parseExpressionList(t){let e=[];do if(!this.next.isCharacter(t))e.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return e}parseLiteralMap(){let t=[],e=[],s=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let i=this.inputIndex,n=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),o={key:a,quoted:n};if(t.push(o),n)this.expectCharacter(58),e.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))e.push(this.parsePipe());else{o.isShorthandInitialized=!0;let p=this.span(i),u=this.sourceSpan(i);e.push(new M(p,u,u,new K(p,u),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new at(this.span(s),this.sourceSpan(s),t,e)}parseAccessMember(t,e,s){let i=this.inputIndex,n=this.withContext(gt.Writable,()=>{let p=this.expectIdentifierOrKeyword()??"";return p.length===0&&this.error("Expected identifier for property access",t.span.end),p}),a=this.sourceSpan(i),o;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),o=new $(this.span(e),this.sourceSpan(e))):o=new _(this.span(e),this.sourceSpan(e),a,t,n);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new $(this.span(e),this.sourceSpan(e));let p=this.parseConditional();o=new et(this.span(e),this.sourceSpan(e),a,t,n,p)}else o=new M(this.span(e),this.sourceSpan(e),a,t,n);return o}parseCall(t,e,s){let i=this.inputIndex;this.rparensExpected++;let n=this.parseCallArguments(),a=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let o=this.span(e),p=this.sourceSpan(e);return s?new D(o,p,t,n,a):new pt(o,p,t,n,a)}parseCallArguments(){if(this.next.isCharacter(41))return[];let t=[];do t.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return t}expectTemplateBindingKey(){let t="",e=!1,s=this.currentAbsoluteOffset;do t+=this.expectIdentifierOrKeywordOrString(),e=this.consumeOptionalOperator("-"),e&&(t+="-");while(e);return{source:t,span:new L(s,s+t.length)}}parseTemplateBindings(t){let e=[];for(e.push(...this.parseDirectiveKeywordBindings(t));this.index{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof $&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let n=this.parseConditional();return new rt(this.span(e),this.sourceSpan(e),t,i,n)}else return s?new U(this.span(e),this.sourceSpan(e),t,i):new st(this.span(e),this.sourceSpan(e),t,i);return new $(this.span(e),this.sourceSpan(e))})}parseDirectiveKeywordBindings(t){let e=[];this.consumeOptionalCharacter(58);let s=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,n=this.parseAsBinding(t);n||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let a=new L(t.span.start,i);return e.push(new ut(a,t,s)),n&&e.push(n),e}getDirectiveBoundTarget(){if(this.next===Bt||this.peekKeywordAs()||this.peekKeywordLet())return null;let t=this.parsePipe(),{start:e,end:s}=t.span,i=this.input.substring(e,s);return new R(t,i,this.location,this.absoluteOffset+e,this.errors)}parseAsBinding(t){if(!this.peekKeywordAs())return null;this.advance();let e=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new L(t.span.start,this.currentAbsoluteOffset);return new W(s,e,t)}parseLetBinding(){if(!this.peekKeywordLet())return null;let t=this.currentAbsoluteOffset;this.advance();let e=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new L(t,this.currentAbsoluteOffset);return new W(i,e,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(t,e=null){this.errors.push(new Z(t,this.input,this.locationText(e),this.location)),this.skip()}locationText(t=null){return t==null&&(t=this.index),to+p.length,0);s+=a,e+=a}t.set(s,e),i++}return t}function Ce({start:r,end:t},e){let s=r,i=t;for(;i!==s&&/\s/.test(e[i-1]);)i--;for(;s!==i&&/\s/.test(e[s]);)s++;return{start:s,end:i}}function zs({start:r,end:t},e){let s=r,i=t;for(;i!==e.length&&/\s/.test(e[i]);)i++;for(;s!==0&&/\s/.test(e[s-1]);)s--;return{start:s,end:i}}function qs(r,t){return t[r.start-1]==="("&&t[r.end]===")"?{start:r.start-1,end:r.end+1}:r}function Ae(r,t,e){let s=0,i={start:r.start,end:r.end};for(;;){let n=zs(i,t),a=qs(n,t);if(n.start===a.start&&n.end===a.end)break;i.start=a.start,i.end=a.end,s++}return{hasParens:(e?s-1:s)!==0,outerSpan:Ce(e?{start:i.start+1,end:i.end-1}:i,t),innerSpan:Ce(r,t)}}function Oe(r){return typeof r=="string"?t=>t===r:t=>r.test(t)}function Ie(r,t,e){let s=Oe(t);for(let i=e;i>=0;i--){let n=r[i];if(s(n))return i}throw new Error(`Cannot find front char ${t} from index ${e} in ${JSON.stringify(r)}`)}function ke(r,t,e){let s=Oe(t);for(let i=e;imt.prototype._commentStart(r);function js(r,t){let e=t?Hs(r):null;if(e===null)return{text:r,comments:[]};let s={type:"CommentLine",value:r.slice(e+2),...Ct({start:e,end:r.length})};return{text:r.slice(0,e),comments:[s]}}function At(r,t=!0){return e=>{let s=new yt,i=new mt(s),{text:n,comments:a}=js(e,t),o=r(n,i);if(o.errors.length!==0){let[{message:p}]=o.errors;throw new SyntaxError(p.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:o,comments:a,text:n}}}var Le=At((r,t)=>t.parseBinding(r,"",0)),Ys=At((r,t)=>t.parseSimpleBinding(r,"",0)),Re=At((r,t)=>t.parseAction(r,"",0)),Pe=At((r,t)=>t.parseInterpolationExpression(r,"",0)),be=At((r,t)=>t.parseTemplateBindings("",r,"",0,0),!1);var Js=(r,t,e)=>{if(!(r&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=Js;var Yt=class{text;constructor(t){this.text=t}getCharacterIndex(t,e){return ke(this.text,t,e)}getCharacterLastIndex(t,e){return Ie(this.text,t,e)}transformSpan(t,{stripSpaces:e=!1,hasParentParens:s=!1}={}){if(!e)return Ct(t);let{outerSpan:i,innerSpan:n,hasParens:a}=Ae(t,this.text,s),o=Ct(n);return a&&(o.extra={parenthesized:!0,parenStart:i.start,parenEnd:i.end}),o}createNode(t,{stripSpaces:e=!0,hasParentParens:s=!1}={}){let{type:i,start:n,end:a}=t,o={...t,...this.transformSpan({start:n,end:a},{stripSpaces:e,hasParentParens:s})};switch(i){case"NumericLiteral":case"StringLiteral":{let p=this.text.slice(o.start,o.end),{value:u}=o;o.extra={...o.extra,raw:p,rawValue:u};break}case"ObjectProperty":{let{shorthand:p}=o;p&&(o.extra={...o.extra,shorthand:p});break}}return o}},Ke=Yt;function Jt(r){var t;return!!((t=r.extra)!=null&&t.parenthesized)}function k(r){return Jt(r)?r.extra.parenStart:r.start}function N(r){return Jt(r)?r.extra.parenEnd:r.end}function Be(r){return(r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression")&&!Jt(r)}function Te(r,t){let{start:e,end:s}=r.sourceSpan;return e>=s||/^\s+$/.test(t.slice(e,s))}var kt,St,h,d,Ot,v,Zt,It=class extends Ke{constructor(e,s){super(s);P(this,h);P(this,kt);P(this,St);Y(this,kt,e),Y(this,St,s)}get node(){return c(this,h,v).call(this,O(this,kt))}transformNode(e){return c(this,h,Zt).call(this,e)}};kt=new WeakMap,St=new WeakMap,h=new WeakSet,d=function(e,{stripSpaces:s=!0,hasParentParens:i=!1}={}){return this.createNode(e,{stripSpaces:s,hasParentParens:i})},Ot=function(e,s,{computed:i,optional:n,end:a=N(s),hasParentParens:o=!1}){if(Te(e,O(this,St))||e.sourceSpan.start===s.start)return s;let p=c(this,h,v).call(this,e),u=Be(p);return c(this,h,d).call(this,{type:n||u?"OptionalMemberExpression":"MemberExpression",object:p,property:s,computed:i,...n?{optional:!0}:u?{optional:!1}:void 0,start:k(p),end:a},{hasParentParens:o})},v=function(e,s=!1){return c(this,h,Zt).call(this,e,s)},Zt=function(e,s=!1){if(e instanceof ot){let{expressions:i}=e;if(i.length!==1)throw new Error("Unexpected 'Interpolation'");return c(this,h,v).call(this,i[0])}if(e instanceof F)return c(this,h,d).call(this,{type:"UnaryExpression",prefix:!0,argument:c(this,h,v).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:s});if(e instanceof A){let{left:i,operation:n,right:a}=e,o=c(this,h,v).call(this,i),p=c(this,h,v).call(this,a),u=k(o),f=N(p),S={left:o,right:p,start:u,end:f};return n==="&&"||n==="||"||n==="??"?c(this,h,d).call(this,{...S,type:"LogicalExpression",operator:n},{hasParentParens:s}):c(this,h,d).call(this,{...S,type:"BinaryExpression",operator:n},{hasParentParens:s})}if(e instanceof it){let{exp:i,name:n,args:a}=e,o=c(this,h,v).call(this,i),p=k(o),u=N(o),f=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",u)+1),S=c(this,h,d).call(this,{type:"Identifier",name:n,start:f,end:f+n.length}),g=a.map(y=>c(this,h,v).call(this,y));return c(this,h,d).call(this,{type:"NGPipeExpression",left:o,right:S,arguments:g,start:p,end:N(g.length===0?S:Tt(!1,g,-1))},{hasParentParens:s})}if(e instanceof X)return c(this,h,d).call(this,{type:"NGChainedExpression",expressions:e.expressions.map(i=>c(this,h,v).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof tt){let{condition:i,trueExp:n,falseExp:a}=e,o=c(this,h,v).call(this,i),p=c(this,h,v).call(this,n),u=c(this,h,v).call(this,a);return c(this,h,d).call(this,{type:"ConditionalExpression",test:o,consequent:p,alternate:u,start:k(o),end:N(u)},{hasParentParens:s})}if(e instanceof $)return c(this,h,d).call(this,{type:"NGEmptyExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof K)return c(this,h,d).call(this,{type:"ThisExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof st||e instanceof U)return c(this,h,Ot).call(this,e.receiver,c(this,h,v).call(this,e.key),{computed:!0,optional:e instanceof U,end:e.sourceSpan.end,hasParentParens:s});if(e instanceof nt)return c(this,h,d).call(this,{type:"ArrayExpression",elements:e.expressions.map(i=>c(this,h,v).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof at){let{keys:i,values:n}=e,a=n.map(p=>c(this,h,v).call(this,p)),o=i.map(({key:p,quoted:u},f)=>{let S=a[f],g=k(S),y=N(S),w=this.getCharacterIndex(/\S/,f===0?e.sourceSpan.start+1:this.getCharacterIndex(",",N(a[f-1]))+1),H=g===w?y:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",g-1)-1)+1,j={start:w,end:H},T=u?c(this,h,d).call(this,{type:"StringLiteral",value:p,...j}):c(this,h,d).call(this,{type:"Identifier",name:p,...j}),Nt=T.endc(this,h,v).call(this,S)),p=c(this,h,v).call(this,n),u=Be(p),f=i||u?"OptionalCallExpression":"CallExpression";return c(this,h,d).call(this,{type:f,callee:p,arguments:o,optional:f==="OptionalCallExpression"?i:void 0,start:k(p),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof ht){let i=c(this,h,v).call(this,e.expression);return c(this,h,d).call(this,{type:"TSNonNullExpression",expression:i,start:k(i),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof ct){let i=c(this,h,v).call(this,e.expression);return c(this,h,d).call(this,{type:"UnaryExpression",prefix:!0,operator:"!",argument:i,start:e.sourceSpan.start,end:N(i)},{hasParentParens:s})}if(e instanceof M||e instanceof _){let{receiver:i,name:n}=e,a=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,o=c(this,h,d).call(this,{type:"Identifier",name:n,start:a-n.length,end:a},Te(i,O(this,St))?{hasParentParens:s}:{});return c(this,h,Ot).call(this,i,o,{computed:!1,optional:e instanceof _,hasParentParens:s})}if(e instanceof rt){let i=c(this,h,v).call(this,e.key),n=c(this,h,v).call(this,e.value),a=c(this,h,Ot).call(this,e.receiver,i,{computed:!0,optional:!1,end:this.getCharacterIndex("]",N(i))+1});return c(this,h,d).call(this,{type:"AssignmentExpression",left:a,operator:"=",right:n,start:k(a),end:N(n)},{hasParentParens:s})}if(e instanceof et){let{receiver:i,name:n,value:a}=e,o=c(this,h,v).call(this,a),p=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",k(o)-1)-1)+1,u=c(this,h,d).call(this,{type:"Identifier",name:n,start:p-n.length,end:p}),f=c(this,h,Ot).call(this,i,u,{computed:!1,optional:!1});return c(this,h,d).call(this,{type:"AssignmentExpression",left:f,operator:"=",right:o,start:k(f),end:N(o)},{hasParentParens:s})}throw Object.assign(new Error("Unexpected node"),{node:e})};function Me(r,t){return new It(r,t).node}function _e(r){return r instanceof ut}function Ue(r){return r instanceof W}var wt,q,x,Fe,C,te,ee,se,De,We,Ge,Ve,Xt=class extends It{constructor(e,s){super(void 0,s);P(this,x);P(this,wt);P(this,q);Y(this,wt,e),Y(this,q,s);for(let i of e)c(this,x,De).call(this,i)}get expressions(){return c(this,x,Ge).call(this)}};wt=new WeakMap,q=new WeakMap,x=new WeakSet,Fe=function(){return O(this,wt)[0].key},C=function(e,{stripSpaces:s=!0}={}){return this.createNode(e,{stripSpaces:s})},te=function(e){return this.transformNode(e)},ee=function(e){return Ne(e.slice(O(this,x,Fe).source.length))},se=function(e){let s=O(this,q);if(s[e.start]!=='"'&&s[e.start]!=="'")return;let i=s[e.start],n=!1;for(let a=e.start+1;a({...y,...this.transformSpan({start:y.start,end:w})}),S=y=>({...f(y,u.end),alias:u}),g=n.pop();if(g.type==="NGMicrosyntaxExpression")n.push(S(g));else if(g.type==="NGMicrosyntaxKeyedExpression"){let y=S(g.expression);n.push(f({...g,expression:y},y.end))}else throw new Error(`Unexpected type ${g.type}`)}else n.push(c(this,x,Ve).call(this,p,o));a=p}return c(this,x,C).call(this,{type:"NGMicrosyntax",body:n,...n.length===0?e[0].sourceSpan:{start:n[0].start,end:Tt(!1,n,-1).end}})},Ve=function(e,s){if(_e(e)){let{key:i,value:n}=e;return n?s===0?c(this,x,C).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,x,te).call(this,n.ast),alias:null,...n.sourceSpan}):c(this,x,C).call(this,{type:"NGMicrosyntaxKeyedExpression",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:c(this,x,ee).call(this,i.source),...i.span}),expression:c(this,x,C).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,x,te).call(this,n.ast),alias:null,...n.sourceSpan}),start:i.span.start,end:n.sourceSpan.end}):c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:c(this,x,ee).call(this,i.source),...i.span})}else{let{key:i,sourceSpan:n}=e;if(/^let\s$/.test(O(this,q).slice(n.start,n.start+4))){let{value:o}=e;return c(this,x,C).call(this,{type:"NGMicrosyntaxLet",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:i.source,...i.span}),value:o?c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:o.source,...o.span}):null,start:n.start,end:o?o.span.end:i.span.end})}else{let o=c(this,x,We).call(this,e);return c(this,x,C).call(this,{type:"NGMicrosyntaxAs",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:o.source,...o.span}),alias:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:i.source,...i.span}),start:o.span.start,end:i.span.end})}}};function Qe(r,t){return new Xt(r,t).expressions}function Mt({result:{ast:r},text:t,comments:e}){return Object.assign(Me(r,t),{comments:e})}function ze({result:{templateBindings:r},text:t}){return Qe(r,t)}var qe=r=>Mt(Le(r));var He=r=>Mt(Pe(r)),re=r=>Mt(Re(r)),je=r=>ze(be(r));function ie(r){var s,i,n;let t=((s=r.range)==null?void 0:s[0])??r.start,e=(n=((i=r.declaration)==null?void 0:i.decorators)??r.decorators)==null?void 0:n[0];return e?Math.min(ie(e),t):t}function Ye(r){var t;return((t=r.range)==null?void 0:t[1])??r.end}function _t(r){return{astFormat:"estree",parse(t){let e=r(t);return{type:"NGRoot",node:r===re&&e.type!=="NGChainedExpression"?{...e,type:"NGChainedExpression",expressions:[e]}:e}},locStart:ie,locEnd:Ye}}var Xs=_t(re),tr=_t(qe),er=_t(He),sr=_t(je);return ss(rr);}); \ No newline at end of file +(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.angular=e()}})(function(){"use strict";var it=Object.defineProperty;var $s=Object.getOwnPropertyDescriptor;var Rs=Object.getOwnPropertyNames;var Bs=Object.prototype.hasOwnProperty;var Xt=t=>{throw TypeError(t)};var Jt=(t,e)=>{for(var n in e)it(t,n,{get:e[n],enumerable:!0})},Ds=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Rs(e))!Bs.call(t,r)&&r!==n&&it(t,r,{get:()=>e[r],enumerable:!(s=$s(e,r))||s.enumerable});return t};var Os=t=>Ds(it({},"__esModule",{value:!0}),t);var ot=(t,e,n)=>e.has(t)||Xt("Cannot "+n);var L=(t,e,n)=>(ot(t,e,"read from private field"),n?n.call(t):e.get(t)),V=(t,e,n)=>e.has(t)?Xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Q=(t,e,n,s)=>(ot(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n),c=(t,e,n)=>(ot(t,e,"access private method"),n);var Kr={};Jt(Kr,{parsers:()=>zt});var zt={};Jt(zt,{__ng_action:()=>zr,__ng_binding:()=>Gr,__ng_directive:()=>Jr,__ng_interpolation:()=>Xr});var Qr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Kt;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Kt||(Kt={}));var Yt;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Yt||(Yt={}));var Qt;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Qt||(Qt={}));var B;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(B||(B={}));var Zt;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Zt||(Zt={}));var en;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(en||(en={}));var tn;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(tn||(tn={}));var nn;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(nn||(nn={}));var Fs=void 0;var sn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(sn||(sn={}));var _;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(_||(_={}));function Vs(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Hs(t,e,n){let s=t.length;if(s!==e.length)return!1;for(let r=0;rn.isEquivalent(s))}var k=class{type;sourceSpan;constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new vt(this,e,null,n)}key(e,n,s){return new wt(this,e,n,s)}callFn(e,n,s){return new Xe(this,e,null,n,s)}instantiate(e,n,s){return new dt(this,e,n,s)}conditional(e,n=null,s){return new gt(this,e,n,null,s)}equals(e,n){return new C(_.Equals,this,e,null,n)}notEquals(e,n){return new C(_.NotEquals,this,e,null,n)}identical(e,n){return new C(_.Identical,this,e,null,n)}notIdentical(e,n){return new C(_.NotIdentical,this,e,null,n)}minus(e,n){return new C(_.Minus,this,e,null,n)}plus(e,n){return new C(_.Plus,this,e,null,n)}divide(e,n){return new C(_.Divide,this,e,null,n)}multiply(e,n){return new C(_.Multiply,this,e,null,n)}modulo(e,n){return new C(_.Modulo,this,e,null,n)}and(e,n){return new C(_.And,this,e,null,n)}bitwiseOr(e,n,s=!0){return new C(_.BitwiseOr,this,e,null,n,s)}bitwiseAnd(e,n,s=!0){return new C(_.BitwiseAnd,this,e,null,n,s)}or(e,n){return new C(_.Or,this,e,null,n)}lower(e,n){return new C(_.Lower,this,e,null,n)}lowerEquals(e,n){return new C(_.LowerEquals,this,e,null,n)}bigger(e,n){return new C(_.Bigger,this,e,null,n)}biggerEquals(e,n){return new C(_.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,n){return new C(_.NullishCoalesce,this,e,null,n)}toStmt(){return new St(this,null)}},Ge=class t extends k{name;constructor(e,n,s){super(n,s),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new pt(this.name,e,null,this.sourceSpan)}},ut=class t extends k{expr;constructor(e,n,s){super(n,s),this.expr=e}visitExpression(e,n){return e.visitTypeofExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}};var pt=class t extends k{name;value;constructor(e,n,s,r){super(s||n.type,r),this.name=e,this.value=n}isEquivalent(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteVarExpr(this,n)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new xt(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Fs,Ee.Final)}},ht=class t extends k{receiver;index;value;constructor(e,n,s,r,o){super(r||s.type,o),this.receiver=e,this.index=n,this.value=s}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteKeyExpr(this,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},ft=class t extends k{receiver;name;value;constructor(e,n,s,r,o){super(r||s.type,o),this.receiver=e,this.name=n,this.value=s}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWritePropExpr(this,n)}clone(){return new t(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},Xe=class t extends k{fn;args;pure;constructor(e,n,s,r,o=!1){super(s,r),this.fn=e,this.args=n,this.pure=o}get receiver(){return this.fn}isEquivalent(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&tt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,n){return e.visitInvokeFunctionExpr(this,n)}clone(){return new t(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}};var dt=class t extends k{classExpr;args;constructor(e,n,s,r){super(s,r),this.classExpr=e,this.args=n}isEquivalent(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&tt(this.args,e.args)}isConstant(){return!1}visitExpression(e,n){return e.visitInstantiateExpr(this,n)}clone(){return new t(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},Je=class t extends k{value;constructor(e,n,s){super(n,s),this.value=e}isEquivalent(e){return e instanceof t&&this.value===e.value}isConstant(){return!0}visitExpression(e,n){return e.visitLiteralExpr(this,n)}clone(){return new t(this.value,this.type,this.sourceSpan)}};var mt=class t extends k{value;typeParams;constructor(e,n,s=null,r){super(n,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName}isConstant(){return!1}visitExpression(e,n){return e.visitExternalExpr(this,n)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}};var gt=class t extends k{condition;falseCase;trueCase;constructor(e,n,s=null,r,o){super(r||n.type,o),this.condition=e,this.falseCase=s,this.trueCase=n}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Vs(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,n){return e.visitConditionalExpr(this,n)}clone(){var e;return new t(this.condition.clone(),this.trueCase.clone(),(e=this.falseCase)==null?void 0:e.clone(),this.type,this.sourceSpan)}};var C=class t extends k{operator;rhs;parens;lhs;constructor(e,n,s,r,o,a=!0){super(r||n.type,o),this.operator=e,this.rhs=s,this.parens=a,this.lhs=n}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,n){return e.visitBinaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},vt=class t extends k{receiver;name;constructor(e,n,s,r){super(s,r),this.receiver=e,this.name=n}get index(){return this.name}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadPropExpr(this,n)}set(e){return new ft(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},wt=class t extends k{receiver;index;constructor(e,n,s,r){super(s,r),this.receiver=e,this.index=n}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,n){return e.visitReadKeyExpr(this,n)}set(e){return new ht(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},Ke=class t extends k{entries;constructor(e,n,s){super(n,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&tt(this.entries,e.entries)}visitExpression(e,n){return e.visitLiteralArrayExpr(this,n)}clone(){return new t(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}};var Ye=class t extends k{entries;valueType=null;constructor(e,n,s){super(n,s),this.entries=e,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&tt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,n){return e.visitLiteralMapExpr(this,n)}clone(){let e=this.entries.map(n=>n.clone());return new t(e,this.type,this.sourceSpan)}};var Ee;(function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"})(Ee||(Ee={}));var Qe=class{modifiers;sourceSpan;leadingComments;constructor(e=Ee.None,n=null,s){this.modifiers=e,this.sourceSpan=n,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},xt=class t extends Qe{name;value;type;constructor(e,n,s,r,o,a){super(r,o,a),this.name=e,this.value=n,this.type=s||n&&n.type||null}isEquivalent(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,n){return e.visitDeclareVarStmt(this,n)}};var St=class t extends Qe{expr;constructor(e,n,s){super(Ee.None,n,s),this.expr=e}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}visitStatement(e,n){return e.visitExpressionStmt(this,n)}};function Us(t,e,n){return new Ge(t,e,n)}var Zr=Us("");var rn=class t{static INSTANCE=new t;keyOf(e){if(e instanceof Je&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Je)return String(e.value);if(e instanceof Ke){let n=[];for(let s of e.entries)n.push(this.keyOf(s));return`[${n.join(",")}]`}else if(e instanceof Ye){let n=[];for(let s of e.entries){let r=s.key;s.quoted&&(r=`"${r}"`),n.push(r+":"+this.keyOf(s.value))}return`{${n.join(",")}}`}else{if(e instanceof mt)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Ge)return`read(${e.name})`;if(e instanceof ut)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};var i="@angular/core",P=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:i};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:i};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:i};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:i};static element={name:"\u0275\u0275element",moduleName:i};static elementStart={name:"\u0275\u0275elementStart",moduleName:i};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:i};static advance={name:"\u0275\u0275advance",moduleName:i};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:i};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:i};static attribute={name:"\u0275\u0275attribute",moduleName:i};static attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:i};static attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:i};static attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:i};static attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:i};static attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:i};static attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:i};static attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:i};static attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:i};static attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:i};static classProp={name:"\u0275\u0275classProp",moduleName:i};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:i};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:i};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:i};static styleMap={name:"\u0275\u0275styleMap",moduleName:i};static styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:i};static styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:i};static styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:i};static styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:i};static styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:i};static styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:i};static styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:i};static styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:i};static styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:i};static classMap={name:"\u0275\u0275classMap",moduleName:i};static classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:i};static classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:i};static classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:i};static classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:i};static classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:i};static classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:i};static classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:i};static classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:i};static classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:i};static styleProp={name:"\u0275\u0275styleProp",moduleName:i};static stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:i};static stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:i};static stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:i};static stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:i};static stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:i};static stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:i};static stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:i};static stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:i};static stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:i};static nextContext={name:"\u0275\u0275nextContext",moduleName:i};static resetView={name:"\u0275\u0275resetView",moduleName:i};static templateCreate={name:"\u0275\u0275template",moduleName:i};static defer={name:"\u0275\u0275defer",moduleName:i};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:i};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:i};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:i};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:i};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:i};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:i};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:i};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:i};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:i};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:i};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:i};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:i};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:i};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:i};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:i};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:i};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:i};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:i};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:i};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:i};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:i};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:i};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:i};static conditional={name:"\u0275\u0275conditional",moduleName:i};static repeater={name:"\u0275\u0275repeater",moduleName:i};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:i};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:i};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:i};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:i};static text={name:"\u0275\u0275text",moduleName:i};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:i};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:i};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:i};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:i};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:i};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:i};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:i};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:i};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:i};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:i};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:i};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:i};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:i};static restoreView={name:"\u0275\u0275restoreView",moduleName:i};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:i};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:i};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:i};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:i};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:i};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:i};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:i};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:i};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:i};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:i};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:i};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:i};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:i};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:i};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:i};static hostProperty={name:"\u0275\u0275hostProperty",moduleName:i};static property={name:"\u0275\u0275property",moduleName:i};static propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:i};static propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:i};static propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:i};static propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:i};static propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:i};static propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:i};static propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:i};static propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:i};static propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:i};static propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:i};static i18n={name:"\u0275\u0275i18n",moduleName:i};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:i};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:i};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:i};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:i};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:i};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:i};static pipe={name:"\u0275\u0275pipe",moduleName:i};static projection={name:"\u0275\u0275projection",moduleName:i};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:i};static reference={name:"\u0275\u0275reference",moduleName:i};static inject={name:"\u0275\u0275inject",moduleName:i};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:i};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:i};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:i};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:i};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:i};static forwardRef={name:"forwardRef",moduleName:i};static resolveForwardRef={name:"resolveForwardRef",moduleName:i};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:i};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:i};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:i};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:i};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:i};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:i};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:i};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:i};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:i};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:i};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:i};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:i};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:i};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:i};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:i};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:i};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:i};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:i};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:i};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:i};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:i};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:i};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:i};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:i};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:i};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:i};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:i};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:i};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:i};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:i};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:i};static definePipe={name:"\u0275\u0275definePipe",moduleName:i};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:i};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:i};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:i};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:i};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:i};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:i};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:i};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:i};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:i};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:i};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:i};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:i};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:i};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:i};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:i};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:i};static declareLet={name:"\u0275\u0275declareLet",moduleName:i};static storeLet={name:"\u0275\u0275storeLet",moduleName:i};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:i};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:i};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:i};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:i};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:i};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:i};static InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:i};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:i};static listener={name:"\u0275\u0275listener",moduleName:i};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:i};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:i};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:i};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:i};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:i};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:i};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:i};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:i};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:i};static validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:i};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:i};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:i};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:i}};var Et=class{full;major;minor;patch;constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}};var on;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(on||(on={}));var an;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(an||(an={}));var ye=class{input;errLocation;ctxLocation;message;constructor(e,n,s,r){this.input=n,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${n}] in ${r}`}},G=class{start;end;constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new O(e+this.start,e+this.end)}},E=class{span;sourceSpan;constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},se=class extends E{nameSpan;constructor(e,n,s){super(e,n),this.nameSpan=s}},b=class extends E{visit(e,n=null){}},X=class extends E{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},yt=class extends X{visit(e,n=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,n)}},_e=class extends E{expressions;constructor(e,n,s){super(e,n),this.expressions=s}visit(e,n=null){return e.visitChain(this,n)}},Ce=class extends E{condition;trueExp;falseExp;constructor(e,n,s,r,o){super(e,n),this.condition=s,this.trueExp=r,this.falseExp=o}visit(e,n=null){return e.visitConditional(this,n)}},re=class extends se{receiver;name;constructor(e,n,s,r,o){super(e,n,s),this.receiver=r,this.name=o}visit(e,n=null){return e.visitPropertyRead(this,n)}},Te=class extends se{receiver;name;value;constructor(e,n,s,r,o,a){super(e,n,s),this.receiver=r,this.name=o,this.value=a}visit(e,n=null){return e.visitPropertyWrite(this,n)}},ie=class extends se{receiver;name;constructor(e,n,s,r,o){super(e,n,s),this.receiver=r,this.name=o}visit(e,n=null){return e.visitSafePropertyRead(this,n)}},ke=class extends E{receiver;key;constructor(e,n,s,r){super(e,n),this.receiver=s,this.key=r}visit(e,n=null){return e.visitKeyedRead(this,n)}},oe=class extends E{receiver;key;constructor(e,n,s,r){super(e,n),this.receiver=s,this.key=r}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},Ie=class extends E{receiver;key;value;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.key=r,this.value=o}visit(e,n=null){return e.visitKeyedWrite(this,n)}},be=class extends se{exp;name;args;constructor(e,n,s,r,o,a){super(e,n,a),this.exp=s,this.name=r,this.args=o}visit(e,n=null){return e.visitPipe(this,n)}},A=class extends E{value;constructor(e,n,s){super(e,n),this.value=s}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},Ae=class extends E{expressions;constructor(e,n,s){super(e,n),this.expressions=s}visit(e,n=null){return e.visitLiteralArray(this,n)}},Ne=class extends E{keys;values;constructor(e,n,s,r){super(e,n),this.keys=s,this.values=r}visit(e,n=null){return e.visitLiteralMap(this,n)}},Pe=class extends E{strings;expressions;constructor(e,n,s,r){super(e,n),this.strings=s,this.expressions=r}visit(e,n=null){return e.visitInterpolation(this,n)}},N=class extends E{operation;left;right;constructor(e,n,s,r,o){super(e,n),this.operation=s,this.left=r,this.right=o}visit(e,n=null){return e.visitBinary(this,n)}},ae=class t extends N{operator;expr;left=null;right=null;operation=null;static createMinus(e,n,s){return new t(e,n,"-",s,"-",new A(e,n,0),s)}static createPlus(e,n,s){return new t(e,n,"+",s,"-",s,new A(e,n,0))}constructor(e,n,s,r,o,a,l){super(e,n,o,a,l),this.operator=s,this.expr=r}visit(e,n=null){return e.visitUnary!==void 0?e.visitUnary(this,n):e.visitBinary(this,n)}},Le=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitPrefixNot(this,n)}},Me=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitTypeofExpresion(this,n)}},$e=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitNonNullAssert(this,n)}},Re=class extends E{receiver;args;argumentSpan;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.args=r,this.argumentSpan=o}visit(e,n=null){return e.visitCall(this,n)}},le=class extends E{receiver;args;argumentSpan;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.args=r,this.argumentSpan=o}visit(e,n=null){return e.visitSafeCall(this,n)}},O=class{start;end;constructor(e,n){this.start=e,this.end=n}},W=class extends E{ast;source;location;errors;constructor(e,n,s,r,o){super(new G(0,n===null?0:n.length),new O(r,n===null?r:r+n.length)),this.ast=e,this.source=n,this.location=s,this.errors=o}visit(e,n=null){return e.visitASTWithSource?e.visitASTWithSource(this,n):this.ast.visit(e,n)}toString(){return`${this.source} in ${this.location}`}},ce=class{sourceSpan;key;value;constructor(e,n,s){this.sourceSpan=e,this.key=n,this.value=s}},Be=class{sourceSpan;key;value;constructor(e,n,s){this.sourceSpan=e,this.key=n,this.value=s}},_t=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitKeyedWrite(e,n){this.visit(e.receiver,n),this.visit(e.key,n),this.visit(e.value,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpresion(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitPropertyWrite(e,n){this.visit(e.receiver,n),this.visit(e.value,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitAll(e,n){for(let s of e)this.visit(s,n)}};var ln;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(ln||(ln={}));var cn;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(cn||(cn={}));var H;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(H||(H={}));var un;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(un||(un={}));var Ws=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function qs(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let n=e[0],s=e[1];Ws.forEach(r=>{if(r.test(n)||r.test(s))throw new Error(`['${n}', '${s}'] contains unusable interpolation symbol.`)})}}var Ct=class t{start;end;static fromArray(e){return e?(qs("interpolation",e),new t(e[0],e[1])):Z}constructor(e,n){this.start=e,this.end=n}},Z=new Ct("{{","}}");var at=0;var Un=9,js=10,zs=11,Gs=12,Xs=13,Wn=32,Js=33,qn=34,Ks=35,jn=36,Ys=37,pn=38,zn=39,je=40,me=41,Qs=42,Gn=43,ge=44,Xn=45,ee=46,Tt=47,te=58,ve=59,Zs=60,qe=61,er=62,hn=63,tr=48;var nr=57,Jn=65,sr=69;var Kn=90,ze=91,rr=92,we=93,ir=94,$t=95,Yn=97;var or=101,ar=102,lr=110,cr=114,ur=116,pr=117,hr=118;var Qn=122,kt=123,fn=124,xe=125,Zn=160;var fr=96;function dr(t){return t>=Un&&t<=Wn||t==Zn}function j(t){return tr<=t&&t<=nr}function mr(t){return t>=Yn&&t<=Qn||t>=Jn&&t<=Kn}function dn(t){return t===zn||t===qn||t===fr}var mn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(mn||(mn={}));var gn;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(gn||(gn={}));var vn;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local"})(vn||(vn={}));var wn;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(wn||(wn={}));var gr="(:(where|is)\\()?";var es="-shadowcsshost",ts="-shadowcsscontext",Rt="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ei=new RegExp(es+Rt,"gim"),ti=new RegExp(gr+"("+ts+Rt+")","gim"),ni=new RegExp(ts+Rt,"im"),vr=es+"-no-combinator",si=new RegExp(`${vr}(?![^(]*\\))`,"g");var ns="%COMMENT%",ri=new RegExp(ns,"g");var ii=new RegExp(`(\\s*(?:${ns}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g");var wr="%COMMA_IN_PLACEHOLDER%",xr="%SEMI_IN_PLACEHOLDER%",Sr="%COLON_IN_PLACEHOLDER%",oi=new RegExp(wr,"g"),ai=new RegExp(xr,"g"),li=new RegExp(Sr,"g");var f;(function(t){t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.Conditional=11]="Conditional",t[t.EnableBindings=12]="EnableBindings",t[t.Text=13]="Text",t[t.Listener=14]="Listener",t[t.InterpolateText=15]="InterpolateText",t[t.Binding=16]="Binding",t[t.Property=17]="Property",t[t.StyleProp=18]="StyleProp",t[t.ClassProp=19]="ClassProp",t[t.StyleMap=20]="StyleMap",t[t.ClassMap=21]="ClassMap",t[t.Advance=22]="Advance",t[t.Pipe=23]="Pipe",t[t.Attribute=24]="Attribute",t[t.ExtractedAttribute=25]="ExtractedAttribute",t[t.Defer=26]="Defer",t[t.DeferOn=27]="DeferOn",t[t.DeferWhen=28]="DeferWhen",t[t.I18nMessage=29]="I18nMessage",t[t.HostProperty=30]="HostProperty",t[t.Namespace=31]="Namespace",t[t.ProjectionDef=32]="ProjectionDef",t[t.Projection=33]="Projection",t[t.RepeaterCreate=34]="RepeaterCreate",t[t.Repeater=35]="Repeater",t[t.TwoWayProperty=36]="TwoWayProperty",t[t.TwoWayListener=37]="TwoWayListener",t[t.DeclareLet=38]="DeclareLet",t[t.StoreLet=39]="StoreLet",t[t.I18nStart=40]="I18nStart",t[t.I18n=41]="I18n",t[t.I18nEnd=42]="I18nEnd",t[t.I18nExpression=43]="I18nExpression",t[t.I18nApply=44]="I18nApply",t[t.IcuStart=45]="IcuStart",t[t.IcuEnd=46]="IcuEnd",t[t.IcuPlaceholder=47]="IcuPlaceholder",t[t.I18nContext=48]="I18nContext",t[t.I18nAttributes=49]="I18nAttributes"})(f||(f={}));var J;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet"})(J||(J={}));var xn;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(xn||(xn={}));var Sn;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Sn||(Sn={}));var En;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(En||(En={}));var U;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.Animation=6]="Animation",t[t.TwoWayProperty=7]="TwoWayProperty"})(U||(U={}));var yn;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(yn||(yn={}));var _n;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(_n||(_n={}));var Cn;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(Cn||(Cn={}));var Tn;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Tn||(Tn={}));var kn;(function(t){t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport",t[t.Never=6]="Never"})(kn||(kn={}));var In;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(In||(In={}));var bn;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(bn||(bn={}));var Er=Symbol("ConsumesSlot"),ss=Symbol("DependsOnSlotContext"),Oe=Symbol("ConsumesVars"),Bt=Symbol("UsesVarOffset"),ci={[Er]:!0,numSlotsUsed:1},ui={[ss]:!0},pi={[Oe]:!0};var Ze=class{strings;expressions;i18nPlaceholders;constructor(e,n,s){if(this.strings=e,this.expressions=n,this.i18nPlaceholders=s,s.length!==0&&s.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`)}};var K=class extends k{constructor(e=null){super(null,e)}};var An=class t extends K{target;value;sourceSpan;kind=J.StoreLet;[Oe]=!0;[ss]=!0;constructor(e,n,s){super(),this.target=e,this.value=n,this.sourceSpan=s}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=(this.value,void 0)}clone(){return new t(this.target,this.value,this.sourceSpan)}};var Nn=class t extends K{kind=J.PureFunctionExpr;[Oe]=!0;[Bt]=!0;varOffset=null;body;args;fn=null;constructor(e,n){super(),this.body=e,this.args=n}visitExpression(e,n){var s;(s=this.body)==null||s.visitExpression(e,n);for(let r of this.args)r.visitExpression(e,n)}isEquivalent(e){return!(e instanceof t)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((n,s)=>n.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,n){this.body!==null?this.body=(this.body,n|At.InChildOperation,void 0):this.fn!==null&&(this.fn=(this.fn,void 0));for(let s=0;sr.clone()));return e.fn=((s=this.fn)==null?void 0:s.clone())??null,e.varOffset=this.varOffset,e}};var It=class t extends K{target;targetSlot;name;args;kind=J.PipeBinding;[Oe]=!0;[Bt]=!0;varOffset=null;constructor(e,n,s,r){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=r}visitExpression(e,n){for(let s of this.args)s.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){for(let s=0;sn.clone()));return e.varOffset=this.varOffset,e}},Pn=class t extends K{target;targetSlot;name;args;numArgs;kind=J.PipeBindingVariadic;[Oe]=!0;[Bt]=!0;varOffset=null;constructor(e,n,s,r,o){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=r,this.numArgs=o}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=(this.args,void 0)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};var bt=class t extends K{receiver;args;kind=J.SafeInvokeFunction;constructor(e,n){super(),this.receiver=e,this.args=n}visitExpression(e,n){this.receiver.visitExpression(e,n);for(let s of this.args)s.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=(this.receiver,void 0);for(let s=0;se.clone()))}};var At;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(At||(At={}));var hi=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate]);var Ln;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(Ln||(Ln={}));var fi=Object.freeze([]);var di=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),mi=new Set([f.Pipe]);var gi=[Xe,Ke,Ye,bt,It].map(t=>t.constructor.name);var yr={},_r="\uE500";yr.ngsp=_r;var Mn;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Mn||(Mn={}));var rs=` \f +\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,vi=new RegExp(`[^${rs}]`),wi=new RegExp(`[${rs}]{2,}`,"g");var d;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(d||(d={}));var Cr=["var","let","as","null","undefined","true","false","if","else","this","typeof"],De=class{tokenize(e){let n=new Nt(e),s=[],r=n.scanToken();for(;r!=null;)s.push(r),r=n.scanToken();return s}},M=class{index;end;type;numValue;strValue;constructor(e,n,s,r,o){this.index=e,this.end=n,this.type=s,this.numValue=r,this.strValue=o}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isKeywordTypeof(){return this.type===d.Keyword&&this.strValue==="typeof"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function $n(t,e,n){return new M(t,e,d.Character,n,String.fromCharCode(n))}function Tr(t,e,n){return new M(t,e,d.Identifier,0,n)}function kr(t,e,n){return new M(t,e,d.PrivateIdentifier,0,n)}function Ir(t,e,n){return new M(t,e,d.Keyword,0,n)}function lt(t,e,n){return new M(t,e,d.Operator,0,n)}function br(t,e,n){return new M(t,e,d.String,0,n)}function Ar(t,e,n){return new M(t,e,d.Number,n,"")}function Nr(t,e,n){return new M(t,e,d.Error,0,n)}var ct=new M(-1,-1,d.Character,0,""),Nt=class{input;length;peek=0;index=-1;constructor(e){this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?at:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,r=this.index;for(;s<=Wn;)if(++r>=n){s=at;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=n)return null;if(Rn(s))return this.scanIdentifier();if(j(s))return this.scanNumber(r);let o=r;switch(s){case ee:return this.advance(),j(this.peek)?this.scanNumber(o):$n(o,this.index,ee);case je:case me:case kt:case xe:case ze:case we:case ge:case te:case ve:return this.scanCharacter(o,s);case zn:case qn:return this.scanString();case Ks:return this.scanPrivateIdentifier();case Gn:case Xn:case Qs:case Tt:case Ys:case ir:return this.scanOperator(o,String.fromCharCode(s));case hn:return this.scanQuestion(o);case Zs:case er:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=");case Js:case qe:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=",qe,"=");case pn:return this.scanComplexOperator(o,"&",pn,"&");case fn:return this.scanComplexOperator(o,"|",fn,"|");case Zn:for(;dr(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),$n(e,this.index,n)}scanOperator(e,n){return this.advance(),lt(e,this.index,n)}scanComplexOperator(e,n,s,r,o,a){this.advance();let l=n;return this.peek==s&&(this.advance(),l+=r),o!=null&&this.peek==o&&(this.advance(),l+=a),lt(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Cr.indexOf(n)>-1?Ir(e,this.index,n):Tr(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Rn(this.peek))return this.error("Invalid character [#]",-1);for(;Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return kr(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!j(this.peek))if(this.peek===$t){if(!j(this.input.charCodeAt(this.index-1))||!j(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===ee)n=!1;else if(Pr(this.peek)){if(this.advance(),Lr(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let o=n?$r(r):parseFloat(r);return Ar(e,this.index,o)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",r=this.index,o=this.input;for(;this.peek!=n;)if(this.peek==rr){s+=o.substring(r,this.index);let l;if(this.advance(),this.peek==pr){let u=o.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(u))l=parseInt(u,16);else return this.error(`Invalid unicode escape [\\u${u}]`,0);for(let h=0;h<5;h++)this.advance()}else l=Mr(this.peek),this.advance();s+=String.fromCharCode(l),r=this.index}else{if(this.peek==at)return this.error("Unterminated quote",0);this.advance()}let a=o.substring(r,this.index);return this.advance(),br(e,this.index,s+a)}scanQuestion(e){this.advance();let n="?";return(this.peek===hn||this.peek===ee)&&(n+=this.peek===ee?".":"?",this.advance()),lt(e,this.index,n)}error(e,n){let s=this.index+n;return Nr(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function Rn(t){return Yn<=t&&t<=Qn||Jn<=t&&t<=Kn||t==$t||t==jn}function Bn(t){return mr(t)||j(t)||t==$t||t==jn}function Pr(t){return t==or||t==sr}function Lr(t){return t==Xn||t==Gn}function Mr(t){switch(t){case lr:return js;case ar:return Gs;case cr:return Xs;case ur:return Un;case hr:return zs;default:return t}}function $r(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Pt=class{strings;expressions;offsets;constructor(e,n,s){this.strings=e,this.expressions=n,this.offsets=s}},Lt=class{templateBindings;warnings;errors;constructor(e,n,s){this.templateBindings=e,this.warnings=n,this.errors=s}},ue=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,n,s,r=Z){this._checkNoInterpolation(e,n,r);let o=this._stripComments(e),a=this._lexer.tokenize(o),l=new z(e,n,s,a,1,this.errors,0).parseChain();return new W(l,e,n,s,this.errors)}parseBinding(e,n,s,r=Z){let o=this._parseBindingAst(e,n,s,r);return new W(o,e,n,s,this.errors)}checkSimpleExpression(e){let n=new Mt;return e.visit(n),n.errors}parseSimpleBinding(e,n,s,r=Z){let o=this._parseBindingAst(e,n,s,r),a=this.checkSimpleExpression(o);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,n),new W(o,e,n,s,this.errors)}_reportError(e,n,s,r){this.errors.push(new ye(e,n,s,r))}_parseBindingAst(e,n,s,r){this._checkNoInterpolation(e,n,r);let o=this._stripComments(e),a=this._lexer.tokenize(o);return new z(e,n,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,s,r,o){let a=this._lexer.tokenize(n);return new z(n,s,o,a,0,this.errors,0).parseTemplateBindings({source:e,span:new O(r,r+e.length)})}parseInterpolation(e,n,s,r,o=Z){let{strings:a,expressions:l,offsets:u}=this.splitInterpolation(e,n,r,o);if(l.length===0)return null;let h=[];for(let g=0;gg.text),h,e,n,s)}parseInterpolationExpression(e,n,s){let r=this._stripComments(e),o=this._lexer.tokenize(r),a=new z(e,n,s,o,0,this.errors,0).parseChain(),l=["",""];return this.createInterpolationAst(l,[a],e,n,s)}createInterpolationAst(e,n,s,r,o){let a=new G(0,s.length),l=new Pe(a,a.toAbsolute(o),e,n);return new W(l,s,r,o,this.errors)}splitInterpolation(e,n,s,r=Z){let o=[],a=[],l=[],u=s?Rr(s):null,h=0,g=!1,S=!1,{start:w,end:y}=r;for(;h-1)break;o>-1&&a>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${o} in`,n)}_getInterpolationEndIndex(e,n,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(n,r))return r;if(e.startsWith("//",r))return e.indexOf(n,r)}return-1}*_forEachUnquotedChar(e,n){let s=null,r=0;for(let o=n;o=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,n){let s=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(s=n),e>s){let r=s;s=e,e=r}return new G(e,s)}sourceSpan(e,n){let s=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,n){this.context|=e;let s=n();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ct?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],n=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let r=this.parseAdditive();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,n=this.next.strValue,s;switch(n){case"+":return this.advance(),s=this.parsePrefix(),ae.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),ae.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Le(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,n=this.parsePrefix();return new Me(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ee))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(je)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(ze)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(ze))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(je))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new $e(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(je)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(me),n}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new yt(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(ze)){this.rbracketsExpected++;let n=this.parseExpressionList(we);return this.rbracketsExpected--,this.expectCharacter(we),new Ae(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(kt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new X(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else if(this.next.isString()){let n=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new b(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new b(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new b(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let n=[];do if(!this.next.isCharacter(e))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(ge));return n}parseLiteralMap(){let e=[],n=[],s=this.inputIndex;if(this.expectCharacter(kt),!this.consumeOptionalCharacter(xe)){this.rbracesExpected++;do{let r=this.inputIndex,o=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),l={key:a,quoted:o};if(e.push(l),o)this.expectCharacter(te),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(te))n.push(this.parsePipe());else{l.isShorthandInitialized=!0;let u=this.span(r),h=this.sourceSpan(r);n.push(new re(u,h,h,new X(u,h),a))}}while(this.consumeOptionalCharacter(ge)&&!this.next.isCharacter(xe));this.rbracesExpected--,this.expectCharacter(xe)}return new Ne(this.span(s),this.sourceSpan(s),e,n)}parseAccessMember(e,n,s){let r=this.inputIndex,o=this.withContext(ne.Writable,()=>{let u=this.expectIdentifierOrKeyword()??"";return u.length===0&&this.error("Expected identifier for property access",e.span.end),u}),a=this.sourceSpan(r),l;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),l=new b(this.span(n),this.sourceSpan(n))):l=new ie(this.span(n),this.sourceSpan(n),a,e,o);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new b(this.span(n),this.sourceSpan(n));let u=this.parseConditional();l=new Te(this.span(n),this.sourceSpan(n),a,e,o,u)}else l=new re(this.span(n),this.sourceSpan(n),a,e,o);return l}parseCall(e,n,s){let r=this.inputIndex;this.rparensExpected++;let o=this.parseCallArguments(),a=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(me),this.rparensExpected--;let l=this.span(n),u=this.sourceSpan(n);return s?new le(l,u,e,o,a):new Re(l,u,e,o,a)}parseCallArguments(){if(this.next.isCharacter(me))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(ge));return e}expectTemplateBindingKey(){let e="",n=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new O(s,s+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof b&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(we),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let o=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),e,r,o)}else return s?new oe(this.span(n),this.sourceSpan(n),e,r):new ke(this.span(n),this.sourceSpan(n),e,r);return new b(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(te);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,o=this.parseAsBinding(e);o||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let a=new O(e.span.start,r);return n.push(new Be(a,e,s)),o&&n.push(o),n}getDirectiveBoundTarget(){if(this.next===ct||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:s}=e.span,r=this.input.substring(n,s);return new W(e,r,this.location,this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new O(e.span.start,this.currentAbsoluteOffset);return new ce(s,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new O(e,this.currentAbsoluteOffset);return new ce(r,n,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(ve)||this.consumeOptionalCharacter(ge)}error(e,n=null){this.errors.push(new ye(e,this.input,this.locationText(n),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),el+u.length,0);s+=a,n+=a}e.set(s,n),r++}return e}var Br=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),xi=Array.from(Br).reduce((t,[e,n])=>(t.set(e,n),t),new Map);var Si=new ue(new De);function D(t){return e=>e.kind===t}function Se(t,e){return n=>n.kind===t&&e===n.expression instanceof Ze}function Dr(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Ze)}var Ei=[{test:D(f.StyleMap),transform:et},{test:D(f.ClassMap),transform:et},{test:D(f.StyleProp)},{test:D(f.ClassProp)},{test:Se(f.Attribute,!0)},{test:Se(f.Property,!0)},{test:Dr},{test:Se(f.Attribute,!1)}],yi=[{test:Se(f.HostProperty,!0)},{test:Se(f.HostProperty,!1)},{test:D(f.Attribute)},{test:D(f.StyleMap),transform:et},{test:D(f.ClassMap),transform:et},{test:D(f.StyleProp)},{test:D(f.ClassProp)}],_i=new Set([f.Listener,f.TwoWayListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.HostProperty,f.Attribute]);function et(t){return t.slice(t.length-1)}var Ci=new Map([["window",P.resolveWindow],["document",P.resolveDocument],["body",P.resolveBody]]);var Ti=new Map([[B.HTML,P.sanitizeHtml],[B.RESOURCE_URL,P.sanitizeResourceUrl],[B.SCRIPT,P.sanitizeScript],[B.STYLE,P.sanitizeStyle],[B.URL,P.sanitizeUrl]]),ki=new Map([[B.HTML,P.trustConstantHtml],[B.RESOURCE_URL,P.trustConstantResourceUrl]]);var Dn;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Dn||(Dn={}));var Ii=new Map([[H.Property,U.Property],[H.TwoWay,U.TwoWayProperty],[H.Attribute,U.Attribute],[H.Class,U.ClassName],[H.Style,U.StyleProperty],[H.Animation,U.Animation]]);var bi=Symbol("queryAdvancePlaceholder");var On;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(On||(On={}));var Fn;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Fn||(Fn={}));var is="%COMP%",Ai=`_nghost-${is}`,Ni=`_ngcontent-${is}`;var Pi=new Et("19.0.0");var Vn;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Vn||(Vn={}));var Hn;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(Hn||(Hn={}));function os({start:t,end:e},n){let s=t,r=e;for(;r!==s&&/\s/.test(n[r-1]);)r--;for(;s!==r&&/\s/.test(n[s]);)s++;return{start:s,end:r}}function Fr({start:t,end:e},n){let s=t,r=e;for(;r!==n.length&&/\s/.test(n[r]);)r++;for(;s!==0&&/\s/.test(n[s-1]);)s--;return{start:s,end:r}}function Vr(t,e){return e[t.start-1]==="("&&e[t.end]===")"?{start:t.start-1,end:t.end+1}:t}function as(t,e,n){let s=0,r={start:t.start,end:t.end};for(;;){let o=Fr(r,e),a=Vr(o,e);if(o.start===a.start&&o.end===a.end)break;r.start=a.start,r.end=a.end,s++}return{hasParens:(n?s-1:s)!==0,outerSpan:os(n?{start:r.start+1,end:r.end-1}:r,e),innerSpan:os(t,e)}}function ls(t){return typeof t=="string"?e=>e===t:e=>t.test(e)}function cs(t,e,n){let s=ls(e);for(let r=n;r>=0;r--){let o=t[r];if(s(o))return r}throw new Error(`Cannot find front char ${e} from index ${n} in ${JSON.stringify(t)}`)}function us(t,e,n){let s=ls(e);for(let r=n;rue.prototype._commentStart(t);function Ur(t,e){let n=e?Hr(t):null;if(n===null)return{text:t,comments:[]};let s={type:"CommentLine",value:t.slice(n+2),...Fe({start:n,end:t.length})};return{text:t.slice(0,n),comments:[s]}}function Ve(t,e=!0){return n=>{let s=new De,r=new ue(s),{text:o,comments:a}=Ur(n,e),l=t(o,r);if(l.errors.length!==0){let[{message:u}]=l.errors;throw new SyntaxError(u.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:l,comments:a,text:o}}}var hs=Ve((t,e)=>e.parseBinding(t,"",0)),Wr=Ve((t,e)=>e.parseSimpleBinding(t,"",0)),fs=Ve((t,e)=>e.parseAction(t,"",0)),ds=Ve((t,e)=>e.parseInterpolationExpression(t,"",0)),ms=Ve((t,e)=>e.parseTemplateBindings("",t,"",0,0),!1);var jr=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},nt=jr;var Dt=class{text;constructor(e){this.text=e}getCharacterIndex(e,n){return us(this.text,e,n)}getCharacterLastIndex(e,n){return cs(this.text,e,n)}transformSpan(e,{stripSpaces:n=!1,hasParentParens:s=!1}={}){if(!n)return Fe(e);let{outerSpan:r,innerSpan:o,hasParens:a}=as(e,this.text,s),l=Fe(o);return a&&(l.extra={parenthesized:!0,parenStart:r.start,parenEnd:r.end}),l}createNode(e,{stripSpaces:n=!0,hasParentParens:s=!1}={}){let{type:r,start:o,end:a}=e,l={...e,...this.transformSpan({start:o,end:a},{stripSpaces:n,hasParentParens:s})};switch(r){case"NumericLiteral":case"StringLiteral":{let u=this.text.slice(l.start,l.end),{value:h}=l;l.extra={...l.extra,raw:u,rawValue:h};break}case"ObjectProperty":{let{shorthand:u}=l;u&&(l.extra={...l.extra,shorthand:u});break}}return l}},gs=Dt;function Ft(t){var e;return!!((e=t.extra)!=null&&e.parenthesized)}function $(t){return Ft(t)?t.extra.parenStart:t.start}function R(t){return Ft(t)?t.extra.parenEnd:t.end}function vs(t){return(t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression")&&!Ft(t)}function ws(t,e){let{start:n,end:s}=t.sourceSpan;return n>=s||/^\s+$/.test(e.slice(n,s))}var We,pe,p,v,He,x,Ot,Ue=class extends gs{constructor(n,s){super(s);V(this,p);V(this,We);V(this,pe);Q(this,We,n),Q(this,pe,s)}get node(){return c(this,p,x).call(this,L(this,We))}transformNode(n){return c(this,p,Ot).call(this,n)}};We=new WeakMap,pe=new WeakMap,p=new WeakSet,v=function(n,{stripSpaces:s=!0,hasParentParens:r=!1}={}){return this.createNode(n,{stripSpaces:s,hasParentParens:r})},He=function(n,s,{computed:r,optional:o,end:a=R(s),hasParentParens:l=!1}){if(ws(n,L(this,pe))||n.sourceSpan.start===s.start)return s;let u=c(this,p,x).call(this,n),h=vs(u);return c(this,p,v).call(this,{type:o||h?"OptionalMemberExpression":"MemberExpression",object:u,property:s,computed:r,...o?{optional:!0}:h?{optional:!1}:void 0,start:$(u),end:a},{hasParentParens:l})},x=function(n,s=!1){return c(this,p,Ot).call(this,n,s)},Ot=function(n,s=!1){if(n instanceof Pe){let{expressions:o}=n;if(o.length!==1)throw new Error("Unexpected 'Interpolation'");return c(this,p,x).call(this,o[0])}if(n instanceof ae)return c(this,p,v).call(this,{type:"UnaryExpression",prefix:!0,argument:c(this,p,x).call(this,n.expr),operator:n.operator,...n.sourceSpan},{hasParentParens:s});if(n instanceof N){let{left:o,operation:a,right:l}=n,u=c(this,p,x).call(this,o),h=c(this,p,x).call(this,l),g=$(u),S=R(h),w={left:u,right:h,start:g,end:S};return a==="&&"||a==="||"||a==="??"?c(this,p,v).call(this,{...w,type:"LogicalExpression",operator:a},{hasParentParens:s}):c(this,p,v).call(this,{...w,type:"BinaryExpression",operator:a},{hasParentParens:s})}if(n instanceof be){let{exp:o,name:a,args:l}=n,u=c(this,p,x).call(this,o),h=$(u),g=R(u),S=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",g)+1),w=c(this,p,v).call(this,{type:"Identifier",name:a,start:S,end:S+a.length}),y=l.map(T=>c(this,p,x).call(this,T));return c(this,p,v).call(this,{type:"NGPipeExpression",left:u,right:w,arguments:y,start:h,end:R(y.length===0?w:nt(!1,y,-1))},{hasParentParens:s})}if(n instanceof _e)return c(this,p,v).call(this,{type:"NGChainedExpression",expressions:n.expressions.map(o=>c(this,p,x).call(this,o)),...n.sourceSpan},{hasParentParens:s});if(n instanceof Ce){let{condition:o,trueExp:a,falseExp:l}=n,u=c(this,p,x).call(this,o),h=c(this,p,x).call(this,a),g=c(this,p,x).call(this,l);return c(this,p,v).call(this,{type:"ConditionalExpression",test:u,consequent:h,alternate:g,start:$(u),end:R(g)},{hasParentParens:s})}if(n instanceof b)return c(this,p,v).call(this,{type:"NGEmptyExpression",...n.sourceSpan},{hasParentParens:s});if(n instanceof X)return c(this,p,v).call(this,{type:"ThisExpression",...n.sourceSpan},{hasParentParens:s});if(n instanceof ke||n instanceof oe)return c(this,p,He).call(this,n.receiver,c(this,p,x).call(this,n.key),{computed:!0,optional:n instanceof oe,end:n.sourceSpan.end,hasParentParens:s});if(n instanceof Ae)return c(this,p,v).call(this,{type:"ArrayExpression",elements:n.expressions.map(o=>c(this,p,x).call(this,o)),...n.sourceSpan},{hasParentParens:s});if(n instanceof Ne){let{keys:o,values:a}=n,l=a.map(h=>c(this,p,x).call(this,h)),u=o.map(({key:h,quoted:g},S)=>{let w=l[S],y=$(w),T=R(w),F=this.getCharacterIndex(/\S/,S===0?n.sourceSpan.start+1:this.getCharacterIndex(",",R(l[S-1]))+1),fe=y===F?T:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",y-1)-1)+1,de={start:F,end:fe},q=g?c(this,p,v).call(this,{type:"StringLiteral",value:h,...de}):c(this,p,v).call(this,{type:"Identifier",name:h,...de}),Gt=q.endc(this,p,x).call(this,w)),h=c(this,p,x).call(this,a),g=vs(h),S=o||g?"OptionalCallExpression":"CallExpression";return c(this,p,v).call(this,{type:S,callee:h,arguments:u,optional:S==="OptionalCallExpression"?o:void 0,start:$(h),end:n.sourceSpan.end},{hasParentParens:s})}if(n instanceof $e){let o=c(this,p,x).call(this,n.expression);return c(this,p,v).call(this,{type:"TSNonNullExpression",expression:o,start:$(o),end:n.sourceSpan.end},{hasParentParens:s})}let r=n instanceof Le;if(r||n instanceof Me){let o=c(this,p,x).call(this,n.expression),a=r?"!":"typeof",{start:l}=n.sourceSpan;if(!r){let u=this.text.lastIndexOf(a,l);if(u===-1)throw new Error(`Cannot find operator ${a} from index ${l} in ${JSON.stringify(this.text)}`);l=u}return c(this,p,v).call(this,{type:"UnaryExpression",prefix:!0,operator:a,argument:o,start:l,end:R(o)},{hasParentParens:s})}if(n instanceof re||n instanceof ie){let{receiver:o,name:a}=n,l=this.getCharacterLastIndex(/\S/,n.sourceSpan.end-1)+1,u=c(this,p,v).call(this,{type:"Identifier",name:a,start:l-a.length,end:l},ws(o,L(this,pe))?{hasParentParens:s}:{});return c(this,p,He).call(this,o,u,{computed:!1,optional:n instanceof ie,hasParentParens:s})}if(n instanceof Ie){let o=c(this,p,x).call(this,n.key),a=c(this,p,x).call(this,n.value),l=c(this,p,He).call(this,n.receiver,o,{computed:!0,optional:!1,end:this.getCharacterIndex("]",R(o))+1});return c(this,p,v).call(this,{type:"AssignmentExpression",left:l,operator:"=",right:a,start:$(l),end:R(a)},{hasParentParens:s})}if(n instanceof Te){let{receiver:o,name:a,value:l}=n,u=c(this,p,x).call(this,l),h=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",$(u)-1)-1)+1,g=c(this,p,v).call(this,{type:"Identifier",name:a,start:h-a.length,end:h}),S=c(this,p,He).call(this,o,g,{computed:!1,optional:!1});return c(this,p,v).call(this,{type:"AssignmentExpression",left:S,operator:"=",right:u,start:$(S),end:R(u)},{hasParentParens:s})}throw Object.assign(new Error("Unexpected node"),{node:n})};function xs(t,e){return new Ue(t,e).node}function Ss(t){return t instanceof Be}function Es(t){return t instanceof ce}var he,Y,m,ys,I,Ht,Ut,Wt,_s,Cs,Ts,ks,Vt=class extends Ue{constructor(n,s){super(void 0,s);V(this,m);V(this,he);V(this,Y);Q(this,he,n),Q(this,Y,s);for(let r of n)c(this,m,_s).call(this,r)}get expressions(){return c(this,m,Ts).call(this)}};he=new WeakMap,Y=new WeakMap,m=new WeakSet,ys=function(){return L(this,he)[0].key},I=function(n,{stripSpaces:s=!0}={}){return this.createNode(n,{stripSpaces:s})},Ht=function(n){return this.transformNode(n)},Ut=function(n){return ps(n.slice(L(this,m,ys).source.length))},Wt=function(n){let s=L(this,Y);if(s[n.start]!=='"'&&s[n.start]!=="'")return;let r=s[n.start],o=!1;for(let a=n.start+1;a({...y,...this.transformSpan({start:y.start,end:T})}),S=y=>({...g(y,h.end),alias:h}),w=o.pop();if(w.type==="NGMicrosyntaxExpression")o.push(S(w));else if(w.type==="NGMicrosyntaxKeyedExpression"){let y=S(w.expression);o.push(g({...w,expression:y},y.end))}else throw new Error(`Unexpected type ${w.type}`)}else o.push(c(this,m,ks).call(this,u,l));a=u}return c(this,m,I).call(this,{type:"NGMicrosyntax",body:o,...o.length===0?n[0].sourceSpan:{start:o[0].start,end:nt(!1,o,-1).end}})},ks=function(n,s){if(Ss(n)){let{key:r,value:o}=n;return o?s===0?c(this,m,I).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,m,Ht).call(this,o.ast),alias:null,...o.sourceSpan}):c(this,m,I).call(this,{type:"NGMicrosyntaxKeyedExpression",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:c(this,m,Ut).call(this,r.source),...r.span}),expression:c(this,m,I).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,m,Ht).call(this,o.ast),alias:null,...o.sourceSpan}),start:r.span.start,end:o.sourceSpan.end}):c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:c(this,m,Ut).call(this,r.source),...r.span})}else{let{key:r,sourceSpan:o}=n;if(/^let\s$/.test(L(this,Y).slice(o.start,o.start+4))){let{value:l}=n;return c(this,m,I).call(this,{type:"NGMicrosyntaxLet",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),value:l?c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:l.source,...l.span}):null,start:o.start,end:l?l.span.end:r.span.end})}else{let l=c(this,m,Cs).call(this,n);return c(this,m,I).call(this,{type:"NGMicrosyntaxAs",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:l.source,...l.span}),alias:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),start:l.span.start,end:r.span.end})}}};function Is(t,e){return new Vt(t,e).expressions}function st({result:{ast:t},text:e,comments:n}){return Object.assign(xs(t,e),{comments:n})}function bs({result:{templateBindings:t},text:e}){return Is(t,e)}var As=t=>st(hs(t));var Ns=t=>st(ds(t)),qt=t=>st(fs(t)),Ps=t=>bs(ms(t));function jt(t){var s,r,o;let e=((s=t.range)==null?void 0:s[0])??t.start,n=(o=((r=t.declaration)==null?void 0:r.decorators)??t.decorators)==null?void 0:o[0];return n?Math.min(jt(n),e):e}function Ls(t){var e;return((e=t.range)==null?void 0:e[1])??t.end}function rt(t){return{astFormat:"estree",parse(e){let n=t(e);return{type:"NGRoot",node:t===qt&&n.type!=="NGChainedExpression"?{...n,type:"NGChainedExpression",expressions:[n]}:n}},locStart:jt,locEnd:Ls}}var zr=rt(qt),Gr=rt(As),Xr=rt(Ns),Jr=rt(Ps);return Os(Kr);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/angular.mjs b/node_modules/prettier/plugins/angular.mjs index a647029d..21afa765 100644 --- a/node_modules/prettier/plugins/angular.mjs +++ b/node_modules/prettier/plugins/angular.mjs @@ -1 +1,2 @@ -var Je=Object.defineProperty;var ae=r=>{throw TypeError(r)};var oe=(r,t)=>{for(var e in t)Je(r,e,{get:t[e],enumerable:!0})};var Ut=(r,t,e)=>t.has(r)||ae("Cannot "+e);var O=(r,t,e)=>(Ut(r,t,"read from private field"),e?e.call(r):t.get(r)),P=(r,t,e)=>t.has(r)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),Y=(r,t,e,s)=>(Ut(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e),c=(r,t,e)=>(Ut(r,t,"access private method"),e);var ne={};oe(ne,{parsers:()=>ie});var ie={};oe(ie,{__ng_action:()=>js,__ng_binding:()=>Ys,__ng_directive:()=>Js,__ng_interpolation:()=>Zs});var Z=class{constructor(t,e,s,i){this.input=e,this.errLocation=s,this.ctxLocation=i,this.message=`Parser Error: ${t} ${s} [${e}] in ${i}`}},b=class{constructor(t,e){this.start=t,this.end=e}toAbsolute(t){return new L(t+this.start,t+this.end)}},m=class{constructor(t,e){this.span=t,this.sourceSpan=e}toString(){return"AST"}},J=class extends m{constructor(t,e,s){super(t,e),this.nameSpan=s}},$=class extends m{visit(t,e=null){}},K=class extends m{visit(t,e=null){return t.visitImplicitReceiver(this,e)}},Lt=class extends K{visit(t,e=null){var s;return(s=t.visitThisReceiver)==null?void 0:s.call(t,this,e)}},X=class extends m{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitChain(this,e)}},tt=class extends m{constructor(t,e,s,i,n){super(t,e),this.condition=s,this.trueExp=i,this.falseExp=n}visit(t,e=null){return t.visitConditional(this,e)}},M=class extends J{constructor(t,e,s,i,n){super(t,e,s),this.receiver=i,this.name=n}visit(t,e=null){return t.visitPropertyRead(this,e)}},et=class extends J{constructor(t,e,s,i,n,a){super(t,e,s),this.receiver=i,this.name=n,this.value=a}visit(t,e=null){return t.visitPropertyWrite(this,e)}},_=class extends J{constructor(t,e,s,i,n){super(t,e,s),this.receiver=i,this.name=n}visit(t,e=null){return t.visitSafePropertyRead(this,e)}},st=class extends m{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitKeyedRead(this,e)}},U=class extends m{constructor(t,e,s,i){super(t,e),this.receiver=s,this.key=i}visit(t,e=null){return t.visitSafeKeyedRead(this,e)}},rt=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.key=i,this.value=n}visit(t,e=null){return t.visitKeyedWrite(this,e)}},it=class extends J{constructor(t,e,s,i,n,a){super(t,e,a),this.exp=s,this.name=i,this.args=n}visit(t,e=null){return t.visitPipe(this,e)}},E=class extends m{constructor(t,e,s){super(t,e),this.value=s}visit(t,e=null){return t.visitLiteralPrimitive(this,e)}},nt=class extends m{constructor(t,e,s){super(t,e),this.expressions=s}visit(t,e=null){return t.visitLiteralArray(this,e)}},at=class extends m{constructor(t,e,s,i){super(t,e),this.keys=s,this.values=i}visit(t,e=null){return t.visitLiteralMap(this,e)}},ot=class extends m{constructor(t,e,s,i){super(t,e),this.strings=s,this.expressions=i}visit(t,e=null){return t.visitInterpolation(this,e)}},A=class extends m{constructor(t,e,s,i,n){super(t,e),this.operation=s,this.left=i,this.right=n}visit(t,e=null){return t.visitBinary(this,e)}},F=class r extends A{static createMinus(t,e,s){return new r(t,e,"-",s,"-",new E(t,e,0),s)}static createPlus(t,e,s){return new r(t,e,"+",s,"-",s,new E(t,e,0))}constructor(t,e,s,i,n,a,o){super(t,e,n,a,o),this.operator=s,this.expr=i,this.left=null,this.right=null,this.operation=null}visit(t,e=null){return t.visitUnary!==void 0?t.visitUnary(this,e):t.visitBinary(this,e)}},ct=class extends m{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitPrefixNot(this,e)}},ht=class extends m{constructor(t,e,s){super(t,e),this.expression=s}visit(t,e=null){return t.visitNonNullAssert(this,e)}},pt=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=n}visit(t,e=null){return t.visitCall(this,e)}},D=class extends m{constructor(t,e,s,i,n){super(t,e),this.receiver=s,this.args=i,this.argumentSpan=n}visit(t,e=null){return t.visitSafeCall(this,e)}},L=class{constructor(t,e){this.start=t,this.end=e}},R=class extends m{constructor(t,e,s,i,n){super(new b(0,e===null?0:e.length),new L(i,e===null?i:i+e.length)),this.ast=t,this.source=e,this.location=s,this.errors=n}visit(t,e=null){return t.visitASTWithSource?t.visitASTWithSource(this,e):this.ast.visit(t,e)}toString(){return`${this.source} in ${this.location}`}},W=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},ut=class{constructor(t,e,s){this.sourceSpan=t,this.key=e,this.value=s}},Rt=class{visit(t,e){t.visit(this,e)}visitUnary(t,e){this.visit(t.expr,e)}visitBinary(t,e){this.visit(t.left,e),this.visit(t.right,e)}visitChain(t,e){this.visitAll(t.expressions,e)}visitConditional(t,e){this.visit(t.condition,e),this.visit(t.trueExp,e),this.visit(t.falseExp,e)}visitPipe(t,e){this.visit(t.exp,e),this.visitAll(t.args,e)}visitImplicitReceiver(t,e){}visitThisReceiver(t,e){}visitInterpolation(t,e){this.visitAll(t.expressions,e)}visitKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitKeyedWrite(t,e){this.visit(t.receiver,e),this.visit(t.key,e),this.visit(t.value,e)}visitLiteralArray(t,e){this.visitAll(t.expressions,e)}visitLiteralMap(t,e){this.visitAll(t.values,e)}visitLiteralPrimitive(t,e){}visitPrefixNot(t,e){this.visit(t.expression,e)}visitNonNullAssert(t,e){this.visit(t.expression,e)}visitPropertyRead(t,e){this.visit(t.receiver,e)}visitPropertyWrite(t,e){this.visit(t.receiver,e),this.visit(t.value,e)}visitSafePropertyRead(t,e){this.visit(t.receiver,e)}visitSafeKeyedRead(t,e){this.visit(t.receiver,e),this.visit(t.key,e)}visitCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitSafeCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitAll(t,e){for(let s of t)this.visit(s,e)}};var ce;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.LITERAL_ATTR=1]="LITERAL_ATTR",r[r.ANIMATION=2]="ANIMATION",r[r.TWO_WAY=3]="TWO_WAY"})(ce||(ce={}));var he;(function(r){r[r.Regular=0]="Regular",r[r.Animation=1]="Animation",r[r.TwoWay=2]="TwoWay"})(he||(he={}));var pe;(function(r){r[r.Property=0]="Property",r[r.Attribute=1]="Attribute",r[r.Class=2]="Class",r[r.Style=3]="Style",r[r.Animation=4]="Animation",r[r.TwoWay=5]="TwoWay"})(pe||(pe={}));function ue(r){return r>=9&&r<=32||r==160}function B(r){return 48<=r&&r<=57}function le(r){return r>=97&&r<=122||r>=65&&r<=90}function Ft(r){return r===39||r===34||r===96}var l;(function(r){r[r.Character=0]="Character",r[r.Identifier=1]="Identifier",r[r.PrivateIdentifier=2]="PrivateIdentifier",r[r.Keyword=3]="Keyword",r[r.String=4]="String",r[r.Operator=5]="Operator",r[r.Number=6]="Number",r[r.Error=7]="Error"})(l||(l={}));var ks=["var","let","as","null","undefined","true","false","if","else","this"],yt=class{tokenize(t){let e=new Gt(t),s=[],i=e.scanToken();for(;i!=null;)s.push(i),i=e.scanToken();return s}},I=class{constructor(t,e,s,i,n){this.index=t,this.end=e,this.type=s,this.numValue=i,this.strValue=n}isCharacter(t){return this.type==l.Character&&this.numValue==t}isNumber(){return this.type==l.Number}isString(){return this.type==l.String}isOperator(t){return this.type==l.Operator&&this.strValue==t}isIdentifier(){return this.type==l.Identifier}isPrivateIdentifier(){return this.type==l.PrivateIdentifier}isKeyword(){return this.type==l.Keyword}isKeywordLet(){return this.type==l.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==l.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==l.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==l.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==l.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==l.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==l.Keyword&&this.strValue=="this"}isError(){return this.type==l.Error}toNumber(){return this.type==l.Number?this.numValue:-1}toString(){switch(this.type){case l.Character:case l.Identifier:case l.Keyword:case l.Operator:case l.PrivateIdentifier:case l.String:case l.Error:return this.strValue;case l.Number:return this.numValue.toString();default:return null}}};function ge(r,t,e){return new I(r,t,l.Character,e,String.fromCharCode(e))}function Ns(r,t,e){return new I(r,t,l.Identifier,0,e)}function Ls(r,t,e){return new I(r,t,l.PrivateIdentifier,0,e)}function Rs(r,t,e){return new I(r,t,l.Keyword,0,e)}function Wt(r,t,e){return new I(r,t,l.Operator,0,e)}function Ps(r,t,e){return new I(r,t,l.String,0,e)}function bs(r,t,e){return new I(r,t,l.Number,e,"")}function Ks(r,t,e){return new I(r,t,l.Error,0,e)}var Bt=new I(-1,-1,l.Character,0,""),Gt=class{constructor(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){let t=this.input,e=this.length,s=this.peek,i=this.index;for(;s<=32;)if(++i>=e){s=0;break}else s=t.charCodeAt(i);if(this.peek=s,this.index=i,i>=e)return null;if(me(s))return this.scanIdentifier();if(B(s))return this.scanNumber(i);let n=i;switch(s){case 46:return this.advance(),B(this.peek)?this.scanNumber(n):ge(n,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(n,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(n,String.fromCharCode(s));case 63:return this.scanQuestion(n);case 60:case 62:return this.scanComplexOperator(n,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(n,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(n,"&",38,"&");case 124:return this.scanComplexOperator(n,"|",124,"|");case 160:for(;ue(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(t,e){return this.advance(),ge(t,this.index,e)}scanOperator(t,e){return this.advance(),Wt(t,this.index,e)}scanComplexOperator(t,e,s,i,n,a){this.advance();let o=e;return this.peek==s&&(this.advance(),o+=i),n!=null&&this.peek==n&&(this.advance(),o+=a),Wt(t,this.index,o)}scanIdentifier(){let t=this.index;for(this.advance();Se(this.peek);)this.advance();let e=this.input.substring(t,this.index);return ks.indexOf(e)>-1?Rs(t,this.index,e):Ns(t,this.index,e)}scanPrivateIdentifier(){let t=this.index;if(this.advance(),!me(this.peek))return this.error("Invalid character [#]",-1);for(;Se(this.peek);)this.advance();let e=this.input.substring(t,this.index);return Ls(t,this.index,e)}scanNumber(t){let e=this.index===t,s=!1;for(this.advance();;){if(!B(this.peek))if(this.peek===95){if(!B(this.input.charCodeAt(this.index-1))||!B(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===46)e=!1;else if(Bs(this.peek)){if(this.advance(),Ts(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}else break;this.advance()}let i=this.input.substring(t,this.index);s&&(i=i.replace(/_/g,""));let n=e?_s(i):parseFloat(i);return bs(t,this.index,n)}scanString(){let t=this.index,e=this.peek;this.advance();let s="",i=this.index,n=this.input;for(;this.peek!=e;)if(this.peek==92){s+=n.substring(i,this.index);let o;if(this.advance(),this.peek==117){let p=n.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(p))o=parseInt(p,16);else return this.error(`Invalid unicode escape [\\u${p}]`,0);for(let u=0;u<5;u++)this.advance()}else o=Ms(this.peek),this.advance();s+=String.fromCharCode(o),i=this.index}else{if(this.peek==0)return this.error("Unterminated quote",0);this.advance()}let a=n.substring(i,this.index);return this.advance(),Ps(t,this.index,s+a)}scanQuestion(t){this.advance();let e="?";return(this.peek===63||this.peek===46)&&(e+=this.peek===46?".":"?",this.advance()),Wt(t,this.index,e)}error(t,e){let s=this.index+e;return Ks(s,this.index,`Lexer Error: ${t} at column ${s} in expression [${this.input}]`)}};function me(r){return 97<=r&&r<=122||65<=r&&r<=90||r==95||r==36}function Se(r){return le(r)||B(r)||r==95||r==36}function Bs(r){return r==101||r==69}function Ts(r){return r==45||r==43}function Ms(r){switch(r){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return r}}function _s(r){let t=parseInt(r);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+r);return t}var Us=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ee(r,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${r}' to be an array, [start, end].`);if(t!=null){let e=t[0],s=t[1];Us.forEach(i=>{if(i.test(e)||i.test(s))throw new Error(`['${e}', '${s}'] contains unusable interpolation symbol.`)})}}var Qt=class r{static fromArray(t){return t?(Ee("interpolation",t),new r(t[0],t[1])):Q}constructor(t,e){this.start=t,this.end=e}},Q=new Qt("{{","}}");var zt=class{constructor(t,e,s){this.strings=t,this.expressions=e,this.offsets=s}},qt=class{constructor(t,e,s){this.templateBindings=t,this.warnings=e,this.errors=s}},mt=class{constructor(t){this._lexer=t,this.errors=[]}parseAction(t,e,s,i=Q){this._checkNoInterpolation(t,e,i);let n=this._stripComments(t),a=this._lexer.tokenize(n),o=new z(t,e,s,a,1,this.errors,0).parseChain();return new R(o,t,e,s,this.errors)}parseBinding(t,e,s,i=Q){let n=this._parseBindingAst(t,e,s,i);return new R(n,t,e,s,this.errors)}checkSimpleExpression(t){let e=new Ht;return t.visit(e),e.errors}parseSimpleBinding(t,e,s,i=Q){let n=this._parseBindingAst(t,e,s,i),a=this.checkSimpleExpression(n);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,t,e),new R(n,t,e,s,this.errors)}_reportError(t,e,s,i){this.errors.push(new Z(t,e,s,i))}_parseBindingAst(t,e,s,i){this._checkNoInterpolation(t,e,i);let n=this._stripComments(t),a=this._lexer.tokenize(n);return new z(t,e,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(t,e,s,i,n){let a=this._lexer.tokenize(e);return new z(e,s,n,a,0,this.errors,0).parseTemplateBindings({source:t,span:new L(i,i+t.length)})}parseInterpolation(t,e,s,i,n=Q){let{strings:a,expressions:o,offsets:p}=this.splitInterpolation(t,e,i,n);if(o.length===0)return null;let u=[];for(let f=0;ff.text),u,t,e,s)}parseInterpolationExpression(t,e,s){let i=this._stripComments(t),n=this._lexer.tokenize(i),a=new z(t,e,s,n,0,this.errors,0).parseChain(),o=["",""];return this.createInterpolationAst(o,[a],t,e,s)}createInterpolationAst(t,e,s,i,n){let a=new b(0,s.length),o=new ot(a,a.toAbsolute(n),t,e);return new R(o,s,i,n,this.errors)}splitInterpolation(t,e,s,i=Q){let n=[],a=[],o=[],p=s?Fs(s):null,u=0,f=!1,S=!1,{start:g,end:y}=i;for(;u-1)break;n>-1&&a>-1&&this._reportError(`Got interpolation (${s}${i}) where expression was expected`,t,`at column ${n} in`,e)}_getInterpolationEndIndex(t,e,s){for(let i of this._forEachUnquotedChar(t,s)){if(t.startsWith(e,i))return i;if(t.startsWith("//",i))return t.indexOf(e,i)}return-1}*_forEachUnquotedChar(t,e){let s=null,i=0;for(let n=e;n=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(t,e){let s=this.currentEndIndex;if(e!==void 0&&e>this.currentEndIndex&&(s=e),t>s){let i=s;s=t,t=i}return new b(t,s)}sourceSpan(t,e){let s=`${t}@${this.inputIndex}:${e}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(t,e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(t,e){this.context|=t;let s=e();return this.context^=t,s}consumeOptionalCharacter(t){return this.next.isCharacter(t)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(t){this.consumeOptionalCharacter(t)||this.error(`Missing expected ${String.fromCharCode(t)}`)}consumeOptionalOperator(t){return this.next.isOperator(t)?(this.advance(),!0):!1}expectOperator(t){this.consumeOptionalOperator(t)||this.error(`Missing expected operator ${t}`)}prettyPrintToken(t){return t===Bt?"end of input":`token ${t}`}expectIdentifierOrKeyword(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier or keyword`),null):(this.advance(),t.toString())}expectIdentifierOrKeywordOrString(){let t=this.next;return!t.isIdentifier()&&!t.isKeyword()&&!t.isString()?(t.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(t,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier, keyword, or string`),""):(this.advance(),t.toString())}parseChain(){let t=[],e=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let i=this.parseAdditive();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseAdditive(){let t=this.inputIndex,e=this.parseMultiplicative();for(;this.next.type==l.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let i=this.parseMultiplicative();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parseMultiplicative(){let t=this.inputIndex,e=this.parsePrefix();for(;this.next.type==l.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let i=this.parsePrefix();e=new A(this.span(t),this.sourceSpan(t),s,e,i);continue}break}return e}parsePrefix(){if(this.next.type==l.Operator){let t=this.inputIndex,e=this.next.strValue,s;switch(e){case"+":return this.advance(),s=this.parsePrefix(),F.createPlus(this.span(t),this.sourceSpan(t),s);case"-":return this.advance(),s=this.parsePrefix(),F.createMinus(this.span(t),this.sourceSpan(t),s);case"!":return this.advance(),s=this.parsePrefix(),new ct(this.span(t),this.sourceSpan(t),s)}}return this.parseCallChain()}parseCallChain(){let t=this.inputIndex,e=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))e=this.parseAccessMember(e,t,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(40)?e=this.parseCall(e,t,!0):e=this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(e,t,!0):this.parseAccessMember(e,t,!0);else if(this.consumeOptionalCharacter(91))e=this.parseKeyedReadOrWrite(e,t,!1);else if(this.consumeOptionalCharacter(40))e=this.parseCall(e,t,!1);else if(this.consumeOptionalOperator("!"))e=new ht(this.span(t),this.sourceSpan(t),e);else return e}parsePrimary(){let t=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;let e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}else{if(this.next.isKeywordNull())return this.advance(),new E(this.span(t),this.sourceSpan(t),null);if(this.next.isKeywordUndefined())return this.advance(),new E(this.span(t),this.sourceSpan(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new E(this.span(t),this.sourceSpan(t),!0);if(this.next.isKeywordFalse())return this.advance(),new E(this.span(t),this.sourceSpan(t),!1);if(this.next.isKeywordThis())return this.advance(),new Lt(this.span(t),this.sourceSpan(t));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;let e=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new nt(this.span(t),this.sourceSpan(t),e)}else{if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new K(this.span(t),this.sourceSpan(t)),t,!1);if(this.next.isNumber()){let e=this.next.toNumber();return this.advance(),new E(this.span(t),this.sourceSpan(t),e)}else if(this.next.isString()){let e=this.next.toString();return this.advance(),new E(this.span(t),this.sourceSpan(t),e)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new $(this.span(t),this.sourceSpan(t))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new $(this.span(t),this.sourceSpan(t))):(this.error(`Unexpected token ${this.next}`),new $(this.span(t),this.sourceSpan(t)))}}}parseExpressionList(t){let e=[];do if(!this.next.isCharacter(t))e.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(44));return e}parseLiteralMap(){let t=[],e=[],s=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{let i=this.inputIndex,n=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),o={key:a,quoted:n};if(t.push(o),n)this.expectCharacter(58),e.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))e.push(this.parsePipe());else{o.isShorthandInitialized=!0;let p=this.span(i),u=this.sourceSpan(i);e.push(new M(p,u,u,new K(p,u),a))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(125));this.rbracesExpected--,this.expectCharacter(125)}return new at(this.span(s),this.sourceSpan(s),t,e)}parseAccessMember(t,e,s){let i=this.inputIndex,n=this.withContext(gt.Writable,()=>{let p=this.expectIdentifierOrKeyword()??"";return p.length===0&&this.error("Expected identifier for property access",t.span.end),p}),a=this.sourceSpan(i),o;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),o=new $(this.span(e),this.sourceSpan(e))):o=new _(this.span(e),this.sourceSpan(e),a,t,n);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new $(this.span(e),this.sourceSpan(e));let p=this.parseConditional();o=new et(this.span(e),this.sourceSpan(e),a,t,n,p)}else o=new M(this.span(e),this.sourceSpan(e),a,t,n);return o}parseCall(t,e,s){let i=this.inputIndex;this.rparensExpected++;let n=this.parseCallArguments(),a=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;let o=this.span(e),p=this.sourceSpan(e);return s?new D(o,p,t,n,a):new pt(o,p,t,n,a)}parseCallArguments(){if(this.next.isCharacter(41))return[];let t=[];do t.push(this.parsePipe());while(this.consumeOptionalCharacter(44));return t}expectTemplateBindingKey(){let t="",e=!1,s=this.currentAbsoluteOffset;do t+=this.expectIdentifierOrKeywordOrString(),e=this.consumeOptionalOperator("-"),e&&(t+="-");while(e);return{source:t,span:new L(s,s+t.length)}}parseTemplateBindings(t){let e=[];for(e.push(...this.parseDirectiveKeywordBindings(t));this.index{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof $&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let n=this.parseConditional();return new rt(this.span(e),this.sourceSpan(e),t,i,n)}else return s?new U(this.span(e),this.sourceSpan(e),t,i):new st(this.span(e),this.sourceSpan(e),t,i);return new $(this.span(e),this.sourceSpan(e))})}parseDirectiveKeywordBindings(t){let e=[];this.consumeOptionalCharacter(58);let s=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,n=this.parseAsBinding(t);n||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let a=new L(t.span.start,i);return e.push(new ut(a,t,s)),n&&e.push(n),e}getDirectiveBoundTarget(){if(this.next===Bt||this.peekKeywordAs()||this.peekKeywordLet())return null;let t=this.parsePipe(),{start:e,end:s}=t.span,i=this.input.substring(e,s);return new R(t,i,this.location,this.absoluteOffset+e,this.errors)}parseAsBinding(t){if(!this.peekKeywordAs())return null;this.advance();let e=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new L(t.span.start,this.currentAbsoluteOffset);return new W(s,e,t)}parseLetBinding(){if(!this.peekKeywordLet())return null;let t=this.currentAbsoluteOffset;this.advance();let e=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new L(t,this.currentAbsoluteOffset);return new W(i,e,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(t,e=null){this.errors.push(new Z(t,this.input,this.locationText(e),this.location)),this.skip()}locationText(t=null){return t==null&&(t=this.index),to+p.length,0);s+=a,e+=a}t.set(s,e),i++}return t}function Ce({start:r,end:t},e){let s=r,i=t;for(;i!==s&&/\s/.test(e[i-1]);)i--;for(;s!==i&&/\s/.test(e[s]);)s++;return{start:s,end:i}}function Ws({start:r,end:t},e){let s=r,i=t;for(;i!==e.length&&/\s/.test(e[i]);)i++;for(;s!==0&&/\s/.test(e[s-1]);)s--;return{start:s,end:i}}function Gs(r,t){return t[r.start-1]==="("&&t[r.end]===")"?{start:r.start-1,end:r.end+1}:r}function Ae(r,t,e){let s=0,i={start:r.start,end:r.end};for(;;){let n=Ws(i,t),a=Gs(n,t);if(n.start===a.start&&n.end===a.end)break;i.start=a.start,i.end=a.end,s++}return{hasParens:(e?s-1:s)!==0,outerSpan:Ce(e?{start:i.start+1,end:i.end-1}:i,t),innerSpan:Ce(r,t)}}function Oe(r){return typeof r=="string"?t=>t===r:t=>r.test(t)}function Ie(r,t,e){let s=Oe(t);for(let i=e;i>=0;i--){let n=r[i];if(s(n))return i}throw new Error(`Cannot find front char ${t} from index ${e} in ${JSON.stringify(r)}`)}function ke(r,t,e){let s=Oe(t);for(let i=e;imt.prototype._commentStart(r);function Qs(r,t){let e=t?Vs(r):null;if(e===null)return{text:r,comments:[]};let s={type:"CommentLine",value:r.slice(e+2),...Ct({start:e,end:r.length})};return{text:r.slice(0,e),comments:[s]}}function At(r,t=!0){return e=>{let s=new yt,i=new mt(s),{text:n,comments:a}=Qs(e,t),o=r(n,i);if(o.errors.length!==0){let[{message:p}]=o.errors;throw new SyntaxError(p.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:o,comments:a,text:n}}}var Le=At((r,t)=>t.parseBinding(r,"",0)),zs=At((r,t)=>t.parseSimpleBinding(r,"",0)),Re=At((r,t)=>t.parseAction(r,"",0)),Pe=At((r,t)=>t.parseInterpolationExpression(r,"",0)),be=At((r,t)=>t.parseTemplateBindings("",r,"",0,0),!1);var Hs=(r,t,e)=>{if(!(r&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=Hs;var jt=class{text;constructor(t){this.text=t}getCharacterIndex(t,e){return ke(this.text,t,e)}getCharacterLastIndex(t,e){return Ie(this.text,t,e)}transformSpan(t,{stripSpaces:e=!1,hasParentParens:s=!1}={}){if(!e)return Ct(t);let{outerSpan:i,innerSpan:n,hasParens:a}=Ae(t,this.text,s),o=Ct(n);return a&&(o.extra={parenthesized:!0,parenStart:i.start,parenEnd:i.end}),o}createNode(t,{stripSpaces:e=!0,hasParentParens:s=!1}={}){let{type:i,start:n,end:a}=t,o={...t,...this.transformSpan({start:n,end:a},{stripSpaces:e,hasParentParens:s})};switch(i){case"NumericLiteral":case"StringLiteral":{let p=this.text.slice(o.start,o.end),{value:u}=o;o.extra={...o.extra,raw:p,rawValue:u};break}case"ObjectProperty":{let{shorthand:p}=o;p&&(o.extra={...o.extra,shorthand:p});break}}return o}},Ke=jt;function Zt(r){var t;return!!((t=r.extra)!=null&&t.parenthesized)}function k(r){return Zt(r)?r.extra.parenStart:r.start}function N(r){return Zt(r)?r.extra.parenEnd:r.end}function Be(r){return(r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression")&&!Zt(r)}function Te(r,t){let{start:e,end:s}=r.sourceSpan;return e>=s||/^\s+$/.test(t.slice(e,s))}var kt,St,h,d,Ot,v,Yt,It=class extends Ke{constructor(e,s){super(s);P(this,h);P(this,kt);P(this,St);Y(this,kt,e),Y(this,St,s)}get node(){return c(this,h,v).call(this,O(this,kt))}transformNode(e){return c(this,h,Yt).call(this,e)}};kt=new WeakMap,St=new WeakMap,h=new WeakSet,d=function(e,{stripSpaces:s=!0,hasParentParens:i=!1}={}){return this.createNode(e,{stripSpaces:s,hasParentParens:i})},Ot=function(e,s,{computed:i,optional:n,end:a=N(s),hasParentParens:o=!1}){if(Te(e,O(this,St))||e.sourceSpan.start===s.start)return s;let p=c(this,h,v).call(this,e),u=Be(p);return c(this,h,d).call(this,{type:n||u?"OptionalMemberExpression":"MemberExpression",object:p,property:s,computed:i,...n?{optional:!0}:u?{optional:!1}:void 0,start:k(p),end:a},{hasParentParens:o})},v=function(e,s=!1){return c(this,h,Yt).call(this,e,s)},Yt=function(e,s=!1){if(e instanceof ot){let{expressions:i}=e;if(i.length!==1)throw new Error("Unexpected 'Interpolation'");return c(this,h,v).call(this,i[0])}if(e instanceof F)return c(this,h,d).call(this,{type:"UnaryExpression",prefix:!0,argument:c(this,h,v).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:s});if(e instanceof A){let{left:i,operation:n,right:a}=e,o=c(this,h,v).call(this,i),p=c(this,h,v).call(this,a),u=k(o),f=N(p),S={left:o,right:p,start:u,end:f};return n==="&&"||n==="||"||n==="??"?c(this,h,d).call(this,{...S,type:"LogicalExpression",operator:n},{hasParentParens:s}):c(this,h,d).call(this,{...S,type:"BinaryExpression",operator:n},{hasParentParens:s})}if(e instanceof it){let{exp:i,name:n,args:a}=e,o=c(this,h,v).call(this,i),p=k(o),u=N(o),f=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",u)+1),S=c(this,h,d).call(this,{type:"Identifier",name:n,start:f,end:f+n.length}),g=a.map(y=>c(this,h,v).call(this,y));return c(this,h,d).call(this,{type:"NGPipeExpression",left:o,right:S,arguments:g,start:p,end:N(g.length===0?S:Tt(!1,g,-1))},{hasParentParens:s})}if(e instanceof X)return c(this,h,d).call(this,{type:"NGChainedExpression",expressions:e.expressions.map(i=>c(this,h,v).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof tt){let{condition:i,trueExp:n,falseExp:a}=e,o=c(this,h,v).call(this,i),p=c(this,h,v).call(this,n),u=c(this,h,v).call(this,a);return c(this,h,d).call(this,{type:"ConditionalExpression",test:o,consequent:p,alternate:u,start:k(o),end:N(u)},{hasParentParens:s})}if(e instanceof $)return c(this,h,d).call(this,{type:"NGEmptyExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof K)return c(this,h,d).call(this,{type:"ThisExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof st||e instanceof U)return c(this,h,Ot).call(this,e.receiver,c(this,h,v).call(this,e.key),{computed:!0,optional:e instanceof U,end:e.sourceSpan.end,hasParentParens:s});if(e instanceof nt)return c(this,h,d).call(this,{type:"ArrayExpression",elements:e.expressions.map(i=>c(this,h,v).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof at){let{keys:i,values:n}=e,a=n.map(p=>c(this,h,v).call(this,p)),o=i.map(({key:p,quoted:u},f)=>{let S=a[f],g=k(S),y=N(S),w=this.getCharacterIndex(/\S/,f===0?e.sourceSpan.start+1:this.getCharacterIndex(",",N(a[f-1]))+1),H=g===w?y:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",g-1)-1)+1,j={start:w,end:H},T=u?c(this,h,d).call(this,{type:"StringLiteral",value:p,...j}):c(this,h,d).call(this,{type:"Identifier",name:p,...j}),Nt=T.endc(this,h,v).call(this,S)),p=c(this,h,v).call(this,n),u=Be(p),f=i||u?"OptionalCallExpression":"CallExpression";return c(this,h,d).call(this,{type:f,callee:p,arguments:o,optional:f==="OptionalCallExpression"?i:void 0,start:k(p),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof ht){let i=c(this,h,v).call(this,e.expression);return c(this,h,d).call(this,{type:"TSNonNullExpression",expression:i,start:k(i),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof ct){let i=c(this,h,v).call(this,e.expression);return c(this,h,d).call(this,{type:"UnaryExpression",prefix:!0,operator:"!",argument:i,start:e.sourceSpan.start,end:N(i)},{hasParentParens:s})}if(e instanceof M||e instanceof _){let{receiver:i,name:n}=e,a=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,o=c(this,h,d).call(this,{type:"Identifier",name:n,start:a-n.length,end:a},Te(i,O(this,St))?{hasParentParens:s}:{});return c(this,h,Ot).call(this,i,o,{computed:!1,optional:e instanceof _,hasParentParens:s})}if(e instanceof rt){let i=c(this,h,v).call(this,e.key),n=c(this,h,v).call(this,e.value),a=c(this,h,Ot).call(this,e.receiver,i,{computed:!0,optional:!1,end:this.getCharacterIndex("]",N(i))+1});return c(this,h,d).call(this,{type:"AssignmentExpression",left:a,operator:"=",right:n,start:k(a),end:N(n)},{hasParentParens:s})}if(e instanceof et){let{receiver:i,name:n,value:a}=e,o=c(this,h,v).call(this,a),p=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",k(o)-1)-1)+1,u=c(this,h,d).call(this,{type:"Identifier",name:n,start:p-n.length,end:p}),f=c(this,h,Ot).call(this,i,u,{computed:!1,optional:!1});return c(this,h,d).call(this,{type:"AssignmentExpression",left:f,operator:"=",right:o,start:k(f),end:N(o)},{hasParentParens:s})}throw Object.assign(new Error("Unexpected node"),{node:e})};function Me(r,t){return new It(r,t).node}function _e(r){return r instanceof ut}function Ue(r){return r instanceof W}var wt,q,x,Fe,C,Xt,te,ee,De,We,Ge,Ve,Jt=class extends It{constructor(e,s){super(void 0,s);P(this,x);P(this,wt);P(this,q);Y(this,wt,e),Y(this,q,s);for(let i of e)c(this,x,De).call(this,i)}get expressions(){return c(this,x,Ge).call(this)}};wt=new WeakMap,q=new WeakMap,x=new WeakSet,Fe=function(){return O(this,wt)[0].key},C=function(e,{stripSpaces:s=!0}={}){return this.createNode(e,{stripSpaces:s})},Xt=function(e){return this.transformNode(e)},te=function(e){return Ne(e.slice(O(this,x,Fe).source.length))},ee=function(e){let s=O(this,q);if(s[e.start]!=='"'&&s[e.start]!=="'")return;let i=s[e.start],n=!1;for(let a=e.start+1;a({...y,...this.transformSpan({start:y.start,end:w})}),S=y=>({...f(y,u.end),alias:u}),g=n.pop();if(g.type==="NGMicrosyntaxExpression")n.push(S(g));else if(g.type==="NGMicrosyntaxKeyedExpression"){let y=S(g.expression);n.push(f({...g,expression:y},y.end))}else throw new Error(`Unexpected type ${g.type}`)}else n.push(c(this,x,Ve).call(this,p,o));a=p}return c(this,x,C).call(this,{type:"NGMicrosyntax",body:n,...n.length===0?e[0].sourceSpan:{start:n[0].start,end:Tt(!1,n,-1).end}})},Ve=function(e,s){if(_e(e)){let{key:i,value:n}=e;return n?s===0?c(this,x,C).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,x,Xt).call(this,n.ast),alias:null,...n.sourceSpan}):c(this,x,C).call(this,{type:"NGMicrosyntaxKeyedExpression",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:c(this,x,te).call(this,i.source),...i.span}),expression:c(this,x,C).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,x,Xt).call(this,n.ast),alias:null,...n.sourceSpan}),start:i.span.start,end:n.sourceSpan.end}):c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:c(this,x,te).call(this,i.source),...i.span})}else{let{key:i,sourceSpan:n}=e;if(/^let\s$/.test(O(this,q).slice(n.start,n.start+4))){let{value:o}=e;return c(this,x,C).call(this,{type:"NGMicrosyntaxLet",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:i.source,...i.span}),value:o?c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:o.source,...o.span}):null,start:n.start,end:o?o.span.end:i.span.end})}else{let o=c(this,x,We).call(this,e);return c(this,x,C).call(this,{type:"NGMicrosyntaxAs",key:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:o.source,...o.span}),alias:c(this,x,C).call(this,{type:"NGMicrosyntaxKey",name:i.source,...i.span}),start:o.span.start,end:i.span.end})}}};function Qe(r,t){return new Jt(r,t).expressions}function Mt({result:{ast:r},text:t,comments:e}){return Object.assign(Me(r,t),{comments:e})}function ze({result:{templateBindings:r},text:t}){return Qe(r,t)}var qe=r=>Mt(Le(r));var He=r=>Mt(Pe(r)),se=r=>Mt(Re(r)),je=r=>ze(be(r));function re(r){var s,i,n;let t=((s=r.range)==null?void 0:s[0])??r.start,e=(n=((i=r.declaration)==null?void 0:i.decorators)??r.decorators)==null?void 0:n[0];return e?Math.min(re(e),t):t}function Ye(r){var t;return((t=r.range)==null?void 0:t[1])??r.end}function _t(r){return{astFormat:"estree",parse(t){let e=r(t);return{type:"NGRoot",node:r===se&&e.type!=="NGChainedExpression"?{...e,type:"NGChainedExpression",expressions:[e]}:e}},locStart:re,locEnd:Ye}}var js=_t(se),Ys=_t(qe),Zs=_t(He),Js=_t(je);var Ur=ne;export{Ur as default,ie as parsers}; +var $s=Object.defineProperty;var Xt=t=>{throw TypeError(t)};var Jt=(t,e)=>{for(var n in e)$s(t,n,{get:e[n],enumerable:!0})};var it=(t,e,n)=>e.has(t)||Xt("Cannot "+n);var L=(t,e,n)=>(it(t,e,"read from private field"),n?n.call(t):e.get(t)),V=(t,e,n)=>e.has(t)?Xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Q=(t,e,n,s)=>(it(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n),c=(t,e,n)=>(it(t,e,"access private method"),n);var zt={};Jt(zt,{parsers:()=>jt});var jt={};Jt(jt,{__ng_action:()=>Ur,__ng_binding:()=>Wr,__ng_directive:()=>jr,__ng_interpolation:()=>qr});var Gr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Kt;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Kt||(Kt={}));var Yt;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Yt||(Yt={}));var Qt;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Qt||(Qt={}));var B;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(B||(B={}));var Zt;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Zt||(Zt={}));var en;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(en||(en={}));var tn;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(tn||(tn={}));var nn;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(nn||(nn={}));var Rs=void 0;var sn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(sn||(sn={}));var _;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(_||(_={}));function Bs(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Ds(t,e,n){let s=t.length;if(s!==e.length)return!1;for(let r=0;rn.isEquivalent(s))}var k=class{type;sourceSpan;constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new gt(this,e,null,n)}key(e,n,s){return new vt(this,e,n,s)}callFn(e,n,s){return new Xe(this,e,null,n,s)}instantiate(e,n,s){return new ft(this,e,n,s)}conditional(e,n=null,s){return new mt(this,e,n,null,s)}equals(e,n){return new C(_.Equals,this,e,null,n)}notEquals(e,n){return new C(_.NotEquals,this,e,null,n)}identical(e,n){return new C(_.Identical,this,e,null,n)}notIdentical(e,n){return new C(_.NotIdentical,this,e,null,n)}minus(e,n){return new C(_.Minus,this,e,null,n)}plus(e,n){return new C(_.Plus,this,e,null,n)}divide(e,n){return new C(_.Divide,this,e,null,n)}multiply(e,n){return new C(_.Multiply,this,e,null,n)}modulo(e,n){return new C(_.Modulo,this,e,null,n)}and(e,n){return new C(_.And,this,e,null,n)}bitwiseOr(e,n,s=!0){return new C(_.BitwiseOr,this,e,null,n,s)}bitwiseAnd(e,n,s=!0){return new C(_.BitwiseAnd,this,e,null,n,s)}or(e,n){return new C(_.Or,this,e,null,n)}lower(e,n){return new C(_.Lower,this,e,null,n)}lowerEquals(e,n){return new C(_.LowerEquals,this,e,null,n)}bigger(e,n){return new C(_.Bigger,this,e,null,n)}biggerEquals(e,n){return new C(_.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,n){return new C(_.NullishCoalesce,this,e,null,n)}toStmt(){return new xt(this,null)}},Ge=class t extends k{name;constructor(e,n,s){super(n,s),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new ut(this.name,e,null,this.sourceSpan)}},ct=class t extends k{expr;constructor(e,n,s){super(n,s),this.expr=e}visitExpression(e,n){return e.visitTypeofExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}};var ut=class t extends k{name;value;constructor(e,n,s,r){super(s||n.type,r),this.name=e,this.value=n}isEquivalent(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteVarExpr(this,n)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new wt(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Rs,Ee.Final)}},pt=class t extends k{receiver;index;value;constructor(e,n,s,r,o){super(r||s.type,o),this.receiver=e,this.index=n,this.value=s}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteKeyExpr(this,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},ht=class t extends k{receiver;name;value;constructor(e,n,s,r,o){super(r||s.type,o),this.receiver=e,this.name=n,this.value=s}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWritePropExpr(this,n)}clone(){return new t(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},Xe=class t extends k{fn;args;pure;constructor(e,n,s,r,o=!1){super(s,r),this.fn=e,this.args=n,this.pure=o}get receiver(){return this.fn}isEquivalent(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&tt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,n){return e.visitInvokeFunctionExpr(this,n)}clone(){return new t(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}};var ft=class t extends k{classExpr;args;constructor(e,n,s,r){super(s,r),this.classExpr=e,this.args=n}isEquivalent(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&tt(this.args,e.args)}isConstant(){return!1}visitExpression(e,n){return e.visitInstantiateExpr(this,n)}clone(){return new t(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},Je=class t extends k{value;constructor(e,n,s){super(n,s),this.value=e}isEquivalent(e){return e instanceof t&&this.value===e.value}isConstant(){return!0}visitExpression(e,n){return e.visitLiteralExpr(this,n)}clone(){return new t(this.value,this.type,this.sourceSpan)}};var dt=class t extends k{value;typeParams;constructor(e,n,s=null,r){super(n,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName}isConstant(){return!1}visitExpression(e,n){return e.visitExternalExpr(this,n)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}};var mt=class t extends k{condition;falseCase;trueCase;constructor(e,n,s=null,r,o){super(r||n.type,o),this.condition=e,this.falseCase=s,this.trueCase=n}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Bs(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,n){return e.visitConditionalExpr(this,n)}clone(){var e;return new t(this.condition.clone(),this.trueCase.clone(),(e=this.falseCase)==null?void 0:e.clone(),this.type,this.sourceSpan)}};var C=class t extends k{operator;rhs;parens;lhs;constructor(e,n,s,r,o,a=!0){super(r||n.type,o),this.operator=e,this.rhs=s,this.parens=a,this.lhs=n}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,n){return e.visitBinaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},gt=class t extends k{receiver;name;constructor(e,n,s,r){super(s,r),this.receiver=e,this.name=n}get index(){return this.name}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadPropExpr(this,n)}set(e){return new ht(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},vt=class t extends k{receiver;index;constructor(e,n,s,r){super(s,r),this.receiver=e,this.index=n}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,n){return e.visitReadKeyExpr(this,n)}set(e){return new pt(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},Ke=class t extends k{entries;constructor(e,n,s){super(n,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&tt(this.entries,e.entries)}visitExpression(e,n){return e.visitLiteralArrayExpr(this,n)}clone(){return new t(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}};var Ye=class t extends k{entries;valueType=null;constructor(e,n,s){super(n,s),this.entries=e,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&tt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,n){return e.visitLiteralMapExpr(this,n)}clone(){let e=this.entries.map(n=>n.clone());return new t(e,this.type,this.sourceSpan)}};var Ee;(function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"})(Ee||(Ee={}));var Qe=class{modifiers;sourceSpan;leadingComments;constructor(e=Ee.None,n=null,s){this.modifiers=e,this.sourceSpan=n,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},wt=class t extends Qe{name;value;type;constructor(e,n,s,r,o,a){super(r,o,a),this.name=e,this.value=n,this.type=s||n&&n.type||null}isEquivalent(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,n){return e.visitDeclareVarStmt(this,n)}};var xt=class t extends Qe{expr;constructor(e,n,s){super(Ee.None,n,s),this.expr=e}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}visitStatement(e,n){return e.visitExpressionStmt(this,n)}};function Os(t,e,n){return new Ge(t,e,n)}var Xr=Os("");var rn=class t{static INSTANCE=new t;keyOf(e){if(e instanceof Je&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Je)return String(e.value);if(e instanceof Ke){let n=[];for(let s of e.entries)n.push(this.keyOf(s));return`[${n.join(",")}]`}else if(e instanceof Ye){let n=[];for(let s of e.entries){let r=s.key;s.quoted&&(r=`"${r}"`),n.push(r+":"+this.keyOf(s.value))}return`{${n.join(",")}}`}else{if(e instanceof dt)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Ge)return`read(${e.name})`;if(e instanceof ct)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};var i="@angular/core",P=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:i};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:i};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:i};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:i};static element={name:"\u0275\u0275element",moduleName:i};static elementStart={name:"\u0275\u0275elementStart",moduleName:i};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:i};static advance={name:"\u0275\u0275advance",moduleName:i};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:i};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:i};static attribute={name:"\u0275\u0275attribute",moduleName:i};static attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:i};static attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:i};static attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:i};static attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:i};static attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:i};static attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:i};static attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:i};static attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:i};static attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:i};static classProp={name:"\u0275\u0275classProp",moduleName:i};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:i};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:i};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:i};static styleMap={name:"\u0275\u0275styleMap",moduleName:i};static styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:i};static styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:i};static styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:i};static styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:i};static styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:i};static styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:i};static styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:i};static styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:i};static styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:i};static classMap={name:"\u0275\u0275classMap",moduleName:i};static classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:i};static classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:i};static classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:i};static classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:i};static classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:i};static classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:i};static classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:i};static classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:i};static classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:i};static styleProp={name:"\u0275\u0275styleProp",moduleName:i};static stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:i};static stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:i};static stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:i};static stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:i};static stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:i};static stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:i};static stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:i};static stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:i};static stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:i};static nextContext={name:"\u0275\u0275nextContext",moduleName:i};static resetView={name:"\u0275\u0275resetView",moduleName:i};static templateCreate={name:"\u0275\u0275template",moduleName:i};static defer={name:"\u0275\u0275defer",moduleName:i};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:i};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:i};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:i};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:i};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:i};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:i};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:i};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:i};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:i};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:i};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:i};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:i};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:i};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:i};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:i};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:i};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:i};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:i};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:i};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:i};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:i};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:i};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:i};static conditional={name:"\u0275\u0275conditional",moduleName:i};static repeater={name:"\u0275\u0275repeater",moduleName:i};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:i};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:i};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:i};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:i};static text={name:"\u0275\u0275text",moduleName:i};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:i};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:i};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:i};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:i};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:i};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:i};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:i};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:i};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:i};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:i};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:i};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:i};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:i};static restoreView={name:"\u0275\u0275restoreView",moduleName:i};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:i};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:i};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:i};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:i};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:i};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:i};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:i};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:i};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:i};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:i};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:i};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:i};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:i};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:i};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:i};static hostProperty={name:"\u0275\u0275hostProperty",moduleName:i};static property={name:"\u0275\u0275property",moduleName:i};static propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:i};static propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:i};static propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:i};static propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:i};static propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:i};static propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:i};static propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:i};static propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:i};static propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:i};static propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:i};static i18n={name:"\u0275\u0275i18n",moduleName:i};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:i};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:i};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:i};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:i};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:i};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:i};static pipe={name:"\u0275\u0275pipe",moduleName:i};static projection={name:"\u0275\u0275projection",moduleName:i};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:i};static reference={name:"\u0275\u0275reference",moduleName:i};static inject={name:"\u0275\u0275inject",moduleName:i};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:i};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:i};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:i};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:i};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:i};static forwardRef={name:"forwardRef",moduleName:i};static resolveForwardRef={name:"resolveForwardRef",moduleName:i};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:i};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:i};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:i};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:i};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:i};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:i};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:i};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:i};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:i};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:i};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:i};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:i};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:i};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:i};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:i};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:i};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:i};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:i};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:i};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:i};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:i};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:i};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:i};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:i};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:i};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:i};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:i};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:i};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:i};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:i};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:i};static definePipe={name:"\u0275\u0275definePipe",moduleName:i};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:i};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:i};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:i};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:i};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:i};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:i};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:i};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:i};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:i};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:i};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:i};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:i};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:i};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:i};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:i};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:i};static declareLet={name:"\u0275\u0275declareLet",moduleName:i};static storeLet={name:"\u0275\u0275storeLet",moduleName:i};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:i};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:i};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:i};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:i};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:i};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:i};static InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:i};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:i};static listener={name:"\u0275\u0275listener",moduleName:i};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:i};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:i};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:i};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:i};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:i};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:i};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:i};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:i};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:i};static validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:i};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:i};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:i};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:i}};var St=class{full;major;minor;patch;constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}};var on;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(on||(on={}));var an;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(an||(an={}));var ye=class{input;errLocation;ctxLocation;message;constructor(e,n,s,r){this.input=n,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${n}] in ${r}`}},G=class{start;end;constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new O(e+this.start,e+this.end)}},E=class{span;sourceSpan;constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},se=class extends E{nameSpan;constructor(e,n,s){super(e,n),this.nameSpan=s}},b=class extends E{visit(e,n=null){}},X=class extends E{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},Et=class extends X{visit(e,n=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,n)}},_e=class extends E{expressions;constructor(e,n,s){super(e,n),this.expressions=s}visit(e,n=null){return e.visitChain(this,n)}},Ce=class extends E{condition;trueExp;falseExp;constructor(e,n,s,r,o){super(e,n),this.condition=s,this.trueExp=r,this.falseExp=o}visit(e,n=null){return e.visitConditional(this,n)}},re=class extends se{receiver;name;constructor(e,n,s,r,o){super(e,n,s),this.receiver=r,this.name=o}visit(e,n=null){return e.visitPropertyRead(this,n)}},Te=class extends se{receiver;name;value;constructor(e,n,s,r,o,a){super(e,n,s),this.receiver=r,this.name=o,this.value=a}visit(e,n=null){return e.visitPropertyWrite(this,n)}},ie=class extends se{receiver;name;constructor(e,n,s,r,o){super(e,n,s),this.receiver=r,this.name=o}visit(e,n=null){return e.visitSafePropertyRead(this,n)}},ke=class extends E{receiver;key;constructor(e,n,s,r){super(e,n),this.receiver=s,this.key=r}visit(e,n=null){return e.visitKeyedRead(this,n)}},oe=class extends E{receiver;key;constructor(e,n,s,r){super(e,n),this.receiver=s,this.key=r}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},Ie=class extends E{receiver;key;value;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.key=r,this.value=o}visit(e,n=null){return e.visitKeyedWrite(this,n)}},be=class extends se{exp;name;args;constructor(e,n,s,r,o,a){super(e,n,a),this.exp=s,this.name=r,this.args=o}visit(e,n=null){return e.visitPipe(this,n)}},A=class extends E{value;constructor(e,n,s){super(e,n),this.value=s}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},Ae=class extends E{expressions;constructor(e,n,s){super(e,n),this.expressions=s}visit(e,n=null){return e.visitLiteralArray(this,n)}},Ne=class extends E{keys;values;constructor(e,n,s,r){super(e,n),this.keys=s,this.values=r}visit(e,n=null){return e.visitLiteralMap(this,n)}},Pe=class extends E{strings;expressions;constructor(e,n,s,r){super(e,n),this.strings=s,this.expressions=r}visit(e,n=null){return e.visitInterpolation(this,n)}},N=class extends E{operation;left;right;constructor(e,n,s,r,o){super(e,n),this.operation=s,this.left=r,this.right=o}visit(e,n=null){return e.visitBinary(this,n)}},ae=class t extends N{operator;expr;left=null;right=null;operation=null;static createMinus(e,n,s){return new t(e,n,"-",s,"-",new A(e,n,0),s)}static createPlus(e,n,s){return new t(e,n,"+",s,"-",s,new A(e,n,0))}constructor(e,n,s,r,o,a,l){super(e,n,o,a,l),this.operator=s,this.expr=r}visit(e,n=null){return e.visitUnary!==void 0?e.visitUnary(this,n):e.visitBinary(this,n)}},Le=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitPrefixNot(this,n)}},Me=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitTypeofExpresion(this,n)}},$e=class extends E{expression;constructor(e,n,s){super(e,n),this.expression=s}visit(e,n=null){return e.visitNonNullAssert(this,n)}},Re=class extends E{receiver;args;argumentSpan;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.args=r,this.argumentSpan=o}visit(e,n=null){return e.visitCall(this,n)}},le=class extends E{receiver;args;argumentSpan;constructor(e,n,s,r,o){super(e,n),this.receiver=s,this.args=r,this.argumentSpan=o}visit(e,n=null){return e.visitSafeCall(this,n)}},O=class{start;end;constructor(e,n){this.start=e,this.end=n}},W=class extends E{ast;source;location;errors;constructor(e,n,s,r,o){super(new G(0,n===null?0:n.length),new O(r,n===null?r:r+n.length)),this.ast=e,this.source=n,this.location=s,this.errors=o}visit(e,n=null){return e.visitASTWithSource?e.visitASTWithSource(this,n):this.ast.visit(e,n)}toString(){return`${this.source} in ${this.location}`}},ce=class{sourceSpan;key;value;constructor(e,n,s){this.sourceSpan=e,this.key=n,this.value=s}},Be=class{sourceSpan;key;value;constructor(e,n,s){this.sourceSpan=e,this.key=n,this.value=s}},yt=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitKeyedWrite(e,n){this.visit(e.receiver,n),this.visit(e.key,n),this.visit(e.value,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpresion(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitPropertyWrite(e,n){this.visit(e.receiver,n),this.visit(e.value,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitAll(e,n){for(let s of e)this.visit(s,n)}};var ln;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(ln||(ln={}));var cn;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(cn||(cn={}));var H;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(H||(H={}));var un;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(un||(un={}));var Fs=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Vs(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let n=e[0],s=e[1];Fs.forEach(r=>{if(r.test(n)||r.test(s))throw new Error(`['${n}', '${s}'] contains unusable interpolation symbol.`)})}}var _t=class t{start;end;static fromArray(e){return e?(Vs("interpolation",e),new t(e[0],e[1])):Z}constructor(e,n){this.start=e,this.end=n}},Z=new _t("{{","}}");var ot=0;var Un=9,Hs=10,Us=11,Ws=12,qs=13,Wn=32,js=33,qn=34,zs=35,jn=36,Gs=37,pn=38,zn=39,je=40,me=41,Xs=42,Gn=43,ge=44,Xn=45,ee=46,Ct=47,te=58,ve=59,Js=60,qe=61,Ks=62,hn=63,Ys=48;var Qs=57,Jn=65,Zs=69;var Kn=90,ze=91,er=92,we=93,tr=94,Mt=95,Yn=97;var nr=101,sr=102,rr=110,ir=114,or=116,ar=117,lr=118;var Qn=122,Tt=123,fn=124,xe=125,Zn=160;var cr=96;function ur(t){return t>=Un&&t<=Wn||t==Zn}function j(t){return Ys<=t&&t<=Qs}function pr(t){return t>=Yn&&t<=Qn||t>=Jn&&t<=Kn}function dn(t){return t===zn||t===qn||t===cr}var mn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(mn||(mn={}));var gn;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(gn||(gn={}));var vn;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local"})(vn||(vn={}));var wn;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(wn||(wn={}));var hr="(:(where|is)\\()?";var es="-shadowcsshost",ts="-shadowcsscontext",$t="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Jr=new RegExp(es+$t,"gim"),Kr=new RegExp(hr+"("+ts+$t+")","gim"),Yr=new RegExp(ts+$t,"im"),fr=es+"-no-combinator",Qr=new RegExp(`${fr}(?![^(]*\\))`,"g");var ns="%COMMENT%",Zr=new RegExp(ns,"g");var ei=new RegExp(`(\\s*(?:${ns}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g");var dr="%COMMA_IN_PLACEHOLDER%",mr="%SEMI_IN_PLACEHOLDER%",gr="%COLON_IN_PLACEHOLDER%",ti=new RegExp(dr,"g"),ni=new RegExp(mr,"g"),si=new RegExp(gr,"g");var f;(function(t){t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.Conditional=11]="Conditional",t[t.EnableBindings=12]="EnableBindings",t[t.Text=13]="Text",t[t.Listener=14]="Listener",t[t.InterpolateText=15]="InterpolateText",t[t.Binding=16]="Binding",t[t.Property=17]="Property",t[t.StyleProp=18]="StyleProp",t[t.ClassProp=19]="ClassProp",t[t.StyleMap=20]="StyleMap",t[t.ClassMap=21]="ClassMap",t[t.Advance=22]="Advance",t[t.Pipe=23]="Pipe",t[t.Attribute=24]="Attribute",t[t.ExtractedAttribute=25]="ExtractedAttribute",t[t.Defer=26]="Defer",t[t.DeferOn=27]="DeferOn",t[t.DeferWhen=28]="DeferWhen",t[t.I18nMessage=29]="I18nMessage",t[t.HostProperty=30]="HostProperty",t[t.Namespace=31]="Namespace",t[t.ProjectionDef=32]="ProjectionDef",t[t.Projection=33]="Projection",t[t.RepeaterCreate=34]="RepeaterCreate",t[t.Repeater=35]="Repeater",t[t.TwoWayProperty=36]="TwoWayProperty",t[t.TwoWayListener=37]="TwoWayListener",t[t.DeclareLet=38]="DeclareLet",t[t.StoreLet=39]="StoreLet",t[t.I18nStart=40]="I18nStart",t[t.I18n=41]="I18n",t[t.I18nEnd=42]="I18nEnd",t[t.I18nExpression=43]="I18nExpression",t[t.I18nApply=44]="I18nApply",t[t.IcuStart=45]="IcuStart",t[t.IcuEnd=46]="IcuEnd",t[t.IcuPlaceholder=47]="IcuPlaceholder",t[t.I18nContext=48]="I18nContext",t[t.I18nAttributes=49]="I18nAttributes"})(f||(f={}));var J;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet"})(J||(J={}));var xn;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(xn||(xn={}));var Sn;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Sn||(Sn={}));var En;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(En||(En={}));var U;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.Animation=6]="Animation",t[t.TwoWayProperty=7]="TwoWayProperty"})(U||(U={}));var yn;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(yn||(yn={}));var _n;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(_n||(_n={}));var Cn;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(Cn||(Cn={}));var Tn;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Tn||(Tn={}));var kn;(function(t){t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport",t[t.Never=6]="Never"})(kn||(kn={}));var In;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(In||(In={}));var bn;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(bn||(bn={}));var vr=Symbol("ConsumesSlot"),ss=Symbol("DependsOnSlotContext"),Oe=Symbol("ConsumesVars"),Rt=Symbol("UsesVarOffset"),ri={[vr]:!0,numSlotsUsed:1},ii={[ss]:!0},oi={[Oe]:!0};var Ze=class{strings;expressions;i18nPlaceholders;constructor(e,n,s){if(this.strings=e,this.expressions=n,this.i18nPlaceholders=s,s.length!==0&&s.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`)}};var K=class extends k{constructor(e=null){super(null,e)}};var An=class t extends K{target;value;sourceSpan;kind=J.StoreLet;[Oe]=!0;[ss]=!0;constructor(e,n,s){super(),this.target=e,this.value=n,this.sourceSpan=s}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,n){this.value=(this.value,void 0)}clone(){return new t(this.target,this.value,this.sourceSpan)}};var Nn=class t extends K{kind=J.PureFunctionExpr;[Oe]=!0;[Rt]=!0;varOffset=null;body;args;fn=null;constructor(e,n){super(),this.body=e,this.args=n}visitExpression(e,n){var s;(s=this.body)==null||s.visitExpression(e,n);for(let r of this.args)r.visitExpression(e,n)}isEquivalent(e){return!(e instanceof t)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((n,s)=>n.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,n){this.body!==null?this.body=(this.body,n|bt.InChildOperation,void 0):this.fn!==null&&(this.fn=(this.fn,void 0));for(let s=0;sr.clone()));return e.fn=((s=this.fn)==null?void 0:s.clone())??null,e.varOffset=this.varOffset,e}};var kt=class t extends K{target;targetSlot;name;args;kind=J.PipeBinding;[Oe]=!0;[Rt]=!0;varOffset=null;constructor(e,n,s,r){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=r}visitExpression(e,n){for(let s of this.args)s.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){for(let s=0;sn.clone()));return e.varOffset=this.varOffset,e}},Pn=class t extends K{target;targetSlot;name;args;numArgs;kind=J.PipeBindingVariadic;[Oe]=!0;[Rt]=!0;varOffset=null;constructor(e,n,s,r,o){super(),this.target=e,this.targetSlot=n,this.name=s,this.args=r,this.numArgs=o}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=(this.args,void 0)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};var It=class t extends K{receiver;args;kind=J.SafeInvokeFunction;constructor(e,n){super(),this.receiver=e,this.args=n}visitExpression(e,n){this.receiver.visitExpression(e,n);for(let s of this.args)s.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=(this.receiver,void 0);for(let s=0;se.clone()))}};var bt;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(bt||(bt={}));var ai=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate]);var Ln;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(Ln||(Ln={}));var li=Object.freeze([]);var ci=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),ui=new Set([f.Pipe]);var pi=[Xe,Ke,Ye,It,kt].map(t=>t.constructor.name);var wr={},xr="\uE500";wr.ngsp=xr;var Mn;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Mn||(Mn={}));var rs=` \f +\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,hi=new RegExp(`[^${rs}]`),fi=new RegExp(`[${rs}]{2,}`,"g");var d;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(d||(d={}));var Sr=["var","let","as","null","undefined","true","false","if","else","this","typeof"],De=class{tokenize(e){let n=new At(e),s=[],r=n.scanToken();for(;r!=null;)s.push(r),r=n.scanToken();return s}},M=class{index;end;type;numValue;strValue;constructor(e,n,s,r,o){this.index=e,this.end=n,this.type=s,this.numValue=r,this.strValue=o}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isKeywordTypeof(){return this.type===d.Keyword&&this.strValue==="typeof"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function $n(t,e,n){return new M(t,e,d.Character,n,String.fromCharCode(n))}function Er(t,e,n){return new M(t,e,d.Identifier,0,n)}function yr(t,e,n){return new M(t,e,d.PrivateIdentifier,0,n)}function _r(t,e,n){return new M(t,e,d.Keyword,0,n)}function at(t,e,n){return new M(t,e,d.Operator,0,n)}function Cr(t,e,n){return new M(t,e,d.String,0,n)}function Tr(t,e,n){return new M(t,e,d.Number,n,"")}function kr(t,e,n){return new M(t,e,d.Error,0,n)}var lt=new M(-1,-1,d.Character,0,""),At=class{input;length;peek=0;index=-1;constructor(e){this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?ot:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,r=this.index;for(;s<=Wn;)if(++r>=n){s=ot;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=n)return null;if(Rn(s))return this.scanIdentifier();if(j(s))return this.scanNumber(r);let o=r;switch(s){case ee:return this.advance(),j(this.peek)?this.scanNumber(o):$n(o,this.index,ee);case je:case me:case Tt:case xe:case ze:case we:case ge:case te:case ve:return this.scanCharacter(o,s);case zn:case qn:return this.scanString();case zs:return this.scanPrivateIdentifier();case Gn:case Xn:case Xs:case Ct:case Gs:case tr:return this.scanOperator(o,String.fromCharCode(s));case hn:return this.scanQuestion(o);case Js:case Ks:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=");case js:case qe:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=",qe,"=");case pn:return this.scanComplexOperator(o,"&",pn,"&");case fn:return this.scanComplexOperator(o,"|",fn,"|");case Zn:for(;ur(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),$n(e,this.index,n)}scanOperator(e,n){return this.advance(),at(e,this.index,n)}scanComplexOperator(e,n,s,r,o,a){this.advance();let l=n;return this.peek==s&&(this.advance(),l+=r),o!=null&&this.peek==o&&(this.advance(),l+=a),at(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Sr.indexOf(n)>-1?_r(e,this.index,n):Er(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Rn(this.peek))return this.error("Invalid character [#]",-1);for(;Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return yr(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!j(this.peek))if(this.peek===Mt){if(!j(this.input.charCodeAt(this.index-1))||!j(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===ee)n=!1;else if(Ir(this.peek)){if(this.advance(),br(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let o=n?Nr(r):parseFloat(r);return Tr(e,this.index,o)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",r=this.index,o=this.input;for(;this.peek!=n;)if(this.peek==er){s+=o.substring(r,this.index);let l;if(this.advance(),this.peek==ar){let u=o.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(u))l=parseInt(u,16);else return this.error(`Invalid unicode escape [\\u${u}]`,0);for(let h=0;h<5;h++)this.advance()}else l=Ar(this.peek),this.advance();s+=String.fromCharCode(l),r=this.index}else{if(this.peek==ot)return this.error("Unterminated quote",0);this.advance()}let a=o.substring(r,this.index);return this.advance(),Cr(e,this.index,s+a)}scanQuestion(e){this.advance();let n="?";return(this.peek===hn||this.peek===ee)&&(n+=this.peek===ee?".":"?",this.advance()),at(e,this.index,n)}error(e,n){let s=this.index+n;return kr(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function Rn(t){return Yn<=t&&t<=Qn||Jn<=t&&t<=Kn||t==Mt||t==jn}function Bn(t){return pr(t)||j(t)||t==Mt||t==jn}function Ir(t){return t==nr||t==Zs}function br(t){return t==Xn||t==Gn}function Ar(t){switch(t){case rr:return Hs;case sr:return Ws;case ir:return qs;case or:return Un;case lr:return Us;default:return t}}function Nr(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Nt=class{strings;expressions;offsets;constructor(e,n,s){this.strings=e,this.expressions=n,this.offsets=s}},Pt=class{templateBindings;warnings;errors;constructor(e,n,s){this.templateBindings=e,this.warnings=n,this.errors=s}},ue=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,n,s,r=Z){this._checkNoInterpolation(e,n,r);let o=this._stripComments(e),a=this._lexer.tokenize(o),l=new z(e,n,s,a,1,this.errors,0).parseChain();return new W(l,e,n,s,this.errors)}parseBinding(e,n,s,r=Z){let o=this._parseBindingAst(e,n,s,r);return new W(o,e,n,s,this.errors)}checkSimpleExpression(e){let n=new Lt;return e.visit(n),n.errors}parseSimpleBinding(e,n,s,r=Z){let o=this._parseBindingAst(e,n,s,r),a=this.checkSimpleExpression(o);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,n),new W(o,e,n,s,this.errors)}_reportError(e,n,s,r){this.errors.push(new ye(e,n,s,r))}_parseBindingAst(e,n,s,r){this._checkNoInterpolation(e,n,r);let o=this._stripComments(e),a=this._lexer.tokenize(o);return new z(e,n,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,s,r,o){let a=this._lexer.tokenize(n);return new z(n,s,o,a,0,this.errors,0).parseTemplateBindings({source:e,span:new O(r,r+e.length)})}parseInterpolation(e,n,s,r,o=Z){let{strings:a,expressions:l,offsets:u}=this.splitInterpolation(e,n,r,o);if(l.length===0)return null;let h=[];for(let g=0;gg.text),h,e,n,s)}parseInterpolationExpression(e,n,s){let r=this._stripComments(e),o=this._lexer.tokenize(r),a=new z(e,n,s,o,0,this.errors,0).parseChain(),l=["",""];return this.createInterpolationAst(l,[a],e,n,s)}createInterpolationAst(e,n,s,r,o){let a=new G(0,s.length),l=new Pe(a,a.toAbsolute(o),e,n);return new W(l,s,r,o,this.errors)}splitInterpolation(e,n,s,r=Z){let o=[],a=[],l=[],u=s?Pr(s):null,h=0,g=!1,S=!1,{start:w,end:y}=r;for(;h-1)break;o>-1&&a>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${o} in`,n)}_getInterpolationEndIndex(e,n,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(n,r))return r;if(e.startsWith("//",r))return e.indexOf(n,r)}return-1}*_forEachUnquotedChar(e,n){let s=null,r=0;for(let o=n;o=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,n){let s=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(s=n),e>s){let r=s;s=e,e=r}return new G(e,s)}sourceSpan(e,n){let s=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,n){this.context|=e;let s=n();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===lt?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],n=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let r=this.parseAdditive();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==d.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();n=new N(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parsePrefix(){if(this.next.type==d.Operator){let e=this.inputIndex,n=this.next.strValue,s;switch(n){case"+":return this.advance(),s=this.parsePrefix(),ae.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),ae.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Le(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,n=this.parsePrefix();return new Me(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(ee))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(je)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(ze)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(ze))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(je))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new $e(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(je)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(me),n}else{if(this.next.isKeywordNull())return this.advance(),new A(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new A(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new A(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new A(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Et(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(ze)){this.rbracketsExpected++;let n=this.parseExpressionList(we);return this.rbracketsExpected--,this.expectCharacter(we),new Ae(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(Tt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new X(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else if(this.next.isString()){let n=this.next.toString();return this.advance(),new A(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new b(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new b(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new b(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let n=[];do if(!this.next.isCharacter(e))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(ge));return n}parseLiteralMap(){let e=[],n=[],s=this.inputIndex;if(this.expectCharacter(Tt),!this.consumeOptionalCharacter(xe)){this.rbracesExpected++;do{let r=this.inputIndex,o=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),l={key:a,quoted:o};if(e.push(l),o)this.expectCharacter(te),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(te))n.push(this.parsePipe());else{l.isShorthandInitialized=!0;let u=this.span(r),h=this.sourceSpan(r);n.push(new re(u,h,h,new X(u,h),a))}}while(this.consumeOptionalCharacter(ge)&&!this.next.isCharacter(xe));this.rbracesExpected--,this.expectCharacter(xe)}return new Ne(this.span(s),this.sourceSpan(s),e,n)}parseAccessMember(e,n,s){let r=this.inputIndex,o=this.withContext(ne.Writable,()=>{let u=this.expectIdentifierOrKeyword()??"";return u.length===0&&this.error("Expected identifier for property access",e.span.end),u}),a=this.sourceSpan(r),l;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),l=new b(this.span(n),this.sourceSpan(n))):l=new ie(this.span(n),this.sourceSpan(n),a,e,o);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new b(this.span(n),this.sourceSpan(n));let u=this.parseConditional();l=new Te(this.span(n),this.sourceSpan(n),a,e,o,u)}else l=new re(this.span(n),this.sourceSpan(n),a,e,o);return l}parseCall(e,n,s){let r=this.inputIndex;this.rparensExpected++;let o=this.parseCallArguments(),a=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(me),this.rparensExpected--;let l=this.span(n),u=this.sourceSpan(n);return s?new le(l,u,e,o,a):new Re(l,u,e,o,a)}parseCallArguments(){if(this.next.isCharacter(me))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(ge));return e}expectTemplateBindingKey(){let e="",n=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new O(s,s+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof b&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(we),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let o=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),e,r,o)}else return s?new oe(this.span(n),this.sourceSpan(n),e,r):new ke(this.span(n),this.sourceSpan(n),e,r);return new b(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(te);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,o=this.parseAsBinding(e);o||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let a=new O(e.span.start,r);return n.push(new Be(a,e,s)),o&&n.push(o),n}getDirectiveBoundTarget(){if(this.next===lt||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:s}=e.span,r=this.input.substring(n,s);return new W(e,r,this.location,this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new O(e.span.start,this.currentAbsoluteOffset);return new ce(s,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new O(e,this.currentAbsoluteOffset);return new ce(r,n,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(ve)||this.consumeOptionalCharacter(ge)}error(e,n=null){this.errors.push(new ye(e,this.input,this.locationText(n),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),el+u.length,0);s+=a,n+=a}e.set(s,n),r++}return e}var Lr=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),di=Array.from(Lr).reduce((t,[e,n])=>(t.set(e,n),t),new Map);var mi=new ue(new De);function D(t){return e=>e.kind===t}function Se(t,e){return n=>n.kind===t&&e===n.expression instanceof Ze}function Mr(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Ze)}var gi=[{test:D(f.StyleMap),transform:et},{test:D(f.ClassMap),transform:et},{test:D(f.StyleProp)},{test:D(f.ClassProp)},{test:Se(f.Attribute,!0)},{test:Se(f.Property,!0)},{test:Mr},{test:Se(f.Attribute,!1)}],vi=[{test:Se(f.HostProperty,!0)},{test:Se(f.HostProperty,!1)},{test:D(f.Attribute)},{test:D(f.StyleMap),transform:et},{test:D(f.ClassMap),transform:et},{test:D(f.StyleProp)},{test:D(f.ClassProp)}],wi=new Set([f.Listener,f.TwoWayListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.HostProperty,f.Attribute]);function et(t){return t.slice(t.length-1)}var xi=new Map([["window",P.resolveWindow],["document",P.resolveDocument],["body",P.resolveBody]]);var Si=new Map([[B.HTML,P.sanitizeHtml],[B.RESOURCE_URL,P.sanitizeResourceUrl],[B.SCRIPT,P.sanitizeScript],[B.STYLE,P.sanitizeStyle],[B.URL,P.sanitizeUrl]]),Ei=new Map([[B.HTML,P.trustConstantHtml],[B.RESOURCE_URL,P.trustConstantResourceUrl]]);var Dn;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Dn||(Dn={}));var yi=new Map([[H.Property,U.Property],[H.TwoWay,U.TwoWayProperty],[H.Attribute,U.Attribute],[H.Class,U.ClassName],[H.Style,U.StyleProperty],[H.Animation,U.Animation]]);var _i=Symbol("queryAdvancePlaceholder");var On;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(On||(On={}));var Fn;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Fn||(Fn={}));var is="%COMP%",Ci=`_nghost-${is}`,Ti=`_ngcontent-${is}`;var ki=new St("19.0.0");var Vn;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Vn||(Vn={}));var Hn;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"})(Hn||(Hn={}));function os({start:t,end:e},n){let s=t,r=e;for(;r!==s&&/\s/.test(n[r-1]);)r--;for(;s!==r&&/\s/.test(n[s]);)s++;return{start:s,end:r}}function Rr({start:t,end:e},n){let s=t,r=e;for(;r!==n.length&&/\s/.test(n[r]);)r++;for(;s!==0&&/\s/.test(n[s-1]);)s--;return{start:s,end:r}}function Br(t,e){return e[t.start-1]==="("&&e[t.end]===")"?{start:t.start-1,end:t.end+1}:t}function as(t,e,n){let s=0,r={start:t.start,end:t.end};for(;;){let o=Rr(r,e),a=Br(o,e);if(o.start===a.start&&o.end===a.end)break;r.start=a.start,r.end=a.end,s++}return{hasParens:(n?s-1:s)!==0,outerSpan:os(n?{start:r.start+1,end:r.end-1}:r,e),innerSpan:os(t,e)}}function ls(t){return typeof t=="string"?e=>e===t:e=>t.test(e)}function cs(t,e,n){let s=ls(e);for(let r=n;r>=0;r--){let o=t[r];if(s(o))return r}throw new Error(`Cannot find front char ${e} from index ${n} in ${JSON.stringify(t)}`)}function us(t,e,n){let s=ls(e);for(let r=n;rue.prototype._commentStart(t);function Or(t,e){let n=e?Dr(t):null;if(n===null)return{text:t,comments:[]};let s={type:"CommentLine",value:t.slice(n+2),...Fe({start:n,end:t.length})};return{text:t.slice(0,n),comments:[s]}}function Ve(t,e=!0){return n=>{let s=new De,r=new ue(s),{text:o,comments:a}=Or(n,e),l=t(o,r);if(l.errors.length!==0){let[{message:u}]=l.errors;throw new SyntaxError(u.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:l,comments:a,text:o}}}var hs=Ve((t,e)=>e.parseBinding(t,"",0)),Fr=Ve((t,e)=>e.parseSimpleBinding(t,"",0)),fs=Ve((t,e)=>e.parseAction(t,"",0)),ds=Ve((t,e)=>e.parseInterpolationExpression(t,"",0)),ms=Ve((t,e)=>e.parseTemplateBindings("",t,"",0,0),!1);var Hr=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},nt=Hr;var Bt=class{text;constructor(e){this.text=e}getCharacterIndex(e,n){return us(this.text,e,n)}getCharacterLastIndex(e,n){return cs(this.text,e,n)}transformSpan(e,{stripSpaces:n=!1,hasParentParens:s=!1}={}){if(!n)return Fe(e);let{outerSpan:r,innerSpan:o,hasParens:a}=as(e,this.text,s),l=Fe(o);return a&&(l.extra={parenthesized:!0,parenStart:r.start,parenEnd:r.end}),l}createNode(e,{stripSpaces:n=!0,hasParentParens:s=!1}={}){let{type:r,start:o,end:a}=e,l={...e,...this.transformSpan({start:o,end:a},{stripSpaces:n,hasParentParens:s})};switch(r){case"NumericLiteral":case"StringLiteral":{let u=this.text.slice(l.start,l.end),{value:h}=l;l.extra={...l.extra,raw:u,rawValue:h};break}case"ObjectProperty":{let{shorthand:u}=l;u&&(l.extra={...l.extra,shorthand:u});break}}return l}},gs=Bt;function Ot(t){var e;return!!((e=t.extra)!=null&&e.parenthesized)}function $(t){return Ot(t)?t.extra.parenStart:t.start}function R(t){return Ot(t)?t.extra.parenEnd:t.end}function vs(t){return(t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression")&&!Ot(t)}function ws(t,e){let{start:n,end:s}=t.sourceSpan;return n>=s||/^\s+$/.test(e.slice(n,s))}var We,pe,p,v,He,x,Dt,Ue=class extends gs{constructor(n,s){super(s);V(this,p);V(this,We);V(this,pe);Q(this,We,n),Q(this,pe,s)}get node(){return c(this,p,x).call(this,L(this,We))}transformNode(n){return c(this,p,Dt).call(this,n)}};We=new WeakMap,pe=new WeakMap,p=new WeakSet,v=function(n,{stripSpaces:s=!0,hasParentParens:r=!1}={}){return this.createNode(n,{stripSpaces:s,hasParentParens:r})},He=function(n,s,{computed:r,optional:o,end:a=R(s),hasParentParens:l=!1}){if(ws(n,L(this,pe))||n.sourceSpan.start===s.start)return s;let u=c(this,p,x).call(this,n),h=vs(u);return c(this,p,v).call(this,{type:o||h?"OptionalMemberExpression":"MemberExpression",object:u,property:s,computed:r,...o?{optional:!0}:h?{optional:!1}:void 0,start:$(u),end:a},{hasParentParens:l})},x=function(n,s=!1){return c(this,p,Dt).call(this,n,s)},Dt=function(n,s=!1){if(n instanceof Pe){let{expressions:o}=n;if(o.length!==1)throw new Error("Unexpected 'Interpolation'");return c(this,p,x).call(this,o[0])}if(n instanceof ae)return c(this,p,v).call(this,{type:"UnaryExpression",prefix:!0,argument:c(this,p,x).call(this,n.expr),operator:n.operator,...n.sourceSpan},{hasParentParens:s});if(n instanceof N){let{left:o,operation:a,right:l}=n,u=c(this,p,x).call(this,o),h=c(this,p,x).call(this,l),g=$(u),S=R(h),w={left:u,right:h,start:g,end:S};return a==="&&"||a==="||"||a==="??"?c(this,p,v).call(this,{...w,type:"LogicalExpression",operator:a},{hasParentParens:s}):c(this,p,v).call(this,{...w,type:"BinaryExpression",operator:a},{hasParentParens:s})}if(n instanceof be){let{exp:o,name:a,args:l}=n,u=c(this,p,x).call(this,o),h=$(u),g=R(u),S=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",g)+1),w=c(this,p,v).call(this,{type:"Identifier",name:a,start:S,end:S+a.length}),y=l.map(T=>c(this,p,x).call(this,T));return c(this,p,v).call(this,{type:"NGPipeExpression",left:u,right:w,arguments:y,start:h,end:R(y.length===0?w:nt(!1,y,-1))},{hasParentParens:s})}if(n instanceof _e)return c(this,p,v).call(this,{type:"NGChainedExpression",expressions:n.expressions.map(o=>c(this,p,x).call(this,o)),...n.sourceSpan},{hasParentParens:s});if(n instanceof Ce){let{condition:o,trueExp:a,falseExp:l}=n,u=c(this,p,x).call(this,o),h=c(this,p,x).call(this,a),g=c(this,p,x).call(this,l);return c(this,p,v).call(this,{type:"ConditionalExpression",test:u,consequent:h,alternate:g,start:$(u),end:R(g)},{hasParentParens:s})}if(n instanceof b)return c(this,p,v).call(this,{type:"NGEmptyExpression",...n.sourceSpan},{hasParentParens:s});if(n instanceof X)return c(this,p,v).call(this,{type:"ThisExpression",...n.sourceSpan},{hasParentParens:s});if(n instanceof ke||n instanceof oe)return c(this,p,He).call(this,n.receiver,c(this,p,x).call(this,n.key),{computed:!0,optional:n instanceof oe,end:n.sourceSpan.end,hasParentParens:s});if(n instanceof Ae)return c(this,p,v).call(this,{type:"ArrayExpression",elements:n.expressions.map(o=>c(this,p,x).call(this,o)),...n.sourceSpan},{hasParentParens:s});if(n instanceof Ne){let{keys:o,values:a}=n,l=a.map(h=>c(this,p,x).call(this,h)),u=o.map(({key:h,quoted:g},S)=>{let w=l[S],y=$(w),T=R(w),F=this.getCharacterIndex(/\S/,S===0?n.sourceSpan.start+1:this.getCharacterIndex(",",R(l[S-1]))+1),fe=y===F?T:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",y-1)-1)+1,de={start:F,end:fe},q=g?c(this,p,v).call(this,{type:"StringLiteral",value:h,...de}):c(this,p,v).call(this,{type:"Identifier",name:h,...de}),Gt=q.endc(this,p,x).call(this,w)),h=c(this,p,x).call(this,a),g=vs(h),S=o||g?"OptionalCallExpression":"CallExpression";return c(this,p,v).call(this,{type:S,callee:h,arguments:u,optional:S==="OptionalCallExpression"?o:void 0,start:$(h),end:n.sourceSpan.end},{hasParentParens:s})}if(n instanceof $e){let o=c(this,p,x).call(this,n.expression);return c(this,p,v).call(this,{type:"TSNonNullExpression",expression:o,start:$(o),end:n.sourceSpan.end},{hasParentParens:s})}let r=n instanceof Le;if(r||n instanceof Me){let o=c(this,p,x).call(this,n.expression),a=r?"!":"typeof",{start:l}=n.sourceSpan;if(!r){let u=this.text.lastIndexOf(a,l);if(u===-1)throw new Error(`Cannot find operator ${a} from index ${l} in ${JSON.stringify(this.text)}`);l=u}return c(this,p,v).call(this,{type:"UnaryExpression",prefix:!0,operator:a,argument:o,start:l,end:R(o)},{hasParentParens:s})}if(n instanceof re||n instanceof ie){let{receiver:o,name:a}=n,l=this.getCharacterLastIndex(/\S/,n.sourceSpan.end-1)+1,u=c(this,p,v).call(this,{type:"Identifier",name:a,start:l-a.length,end:l},ws(o,L(this,pe))?{hasParentParens:s}:{});return c(this,p,He).call(this,o,u,{computed:!1,optional:n instanceof ie,hasParentParens:s})}if(n instanceof Ie){let o=c(this,p,x).call(this,n.key),a=c(this,p,x).call(this,n.value),l=c(this,p,He).call(this,n.receiver,o,{computed:!0,optional:!1,end:this.getCharacterIndex("]",R(o))+1});return c(this,p,v).call(this,{type:"AssignmentExpression",left:l,operator:"=",right:a,start:$(l),end:R(a)},{hasParentParens:s})}if(n instanceof Te){let{receiver:o,name:a,value:l}=n,u=c(this,p,x).call(this,l),h=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",$(u)-1)-1)+1,g=c(this,p,v).call(this,{type:"Identifier",name:a,start:h-a.length,end:h}),S=c(this,p,He).call(this,o,g,{computed:!1,optional:!1});return c(this,p,v).call(this,{type:"AssignmentExpression",left:S,operator:"=",right:u,start:$(S),end:R(u)},{hasParentParens:s})}throw Object.assign(new Error("Unexpected node"),{node:n})};function xs(t,e){return new Ue(t,e).node}function Ss(t){return t instanceof Be}function Es(t){return t instanceof ce}var he,Y,m,ys,I,Vt,Ht,Ut,_s,Cs,Ts,ks,Ft=class extends Ue{constructor(n,s){super(void 0,s);V(this,m);V(this,he);V(this,Y);Q(this,he,n),Q(this,Y,s);for(let r of n)c(this,m,_s).call(this,r)}get expressions(){return c(this,m,Ts).call(this)}};he=new WeakMap,Y=new WeakMap,m=new WeakSet,ys=function(){return L(this,he)[0].key},I=function(n,{stripSpaces:s=!0}={}){return this.createNode(n,{stripSpaces:s})},Vt=function(n){return this.transformNode(n)},Ht=function(n){return ps(n.slice(L(this,m,ys).source.length))},Ut=function(n){let s=L(this,Y);if(s[n.start]!=='"'&&s[n.start]!=="'")return;let r=s[n.start],o=!1;for(let a=n.start+1;a({...y,...this.transformSpan({start:y.start,end:T})}),S=y=>({...g(y,h.end),alias:h}),w=o.pop();if(w.type==="NGMicrosyntaxExpression")o.push(S(w));else if(w.type==="NGMicrosyntaxKeyedExpression"){let y=S(w.expression);o.push(g({...w,expression:y},y.end))}else throw new Error(`Unexpected type ${w.type}`)}else o.push(c(this,m,ks).call(this,u,l));a=u}return c(this,m,I).call(this,{type:"NGMicrosyntax",body:o,...o.length===0?n[0].sourceSpan:{start:o[0].start,end:nt(!1,o,-1).end}})},ks=function(n,s){if(Ss(n)){let{key:r,value:o}=n;return o?s===0?c(this,m,I).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,m,Vt).call(this,o.ast),alias:null,...o.sourceSpan}):c(this,m,I).call(this,{type:"NGMicrosyntaxKeyedExpression",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:c(this,m,Ht).call(this,r.source),...r.span}),expression:c(this,m,I).call(this,{type:"NGMicrosyntaxExpression",expression:c(this,m,Vt).call(this,o.ast),alias:null,...o.sourceSpan}),start:r.span.start,end:o.sourceSpan.end}):c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:c(this,m,Ht).call(this,r.source),...r.span})}else{let{key:r,sourceSpan:o}=n;if(/^let\s$/.test(L(this,Y).slice(o.start,o.start+4))){let{value:l}=n;return c(this,m,I).call(this,{type:"NGMicrosyntaxLet",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),value:l?c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:l.source,...l.span}):null,start:o.start,end:l?l.span.end:r.span.end})}else{let l=c(this,m,Cs).call(this,n);return c(this,m,I).call(this,{type:"NGMicrosyntaxAs",key:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:l.source,...l.span}),alias:c(this,m,I).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),start:l.span.start,end:r.span.end})}}};function Is(t,e){return new Ft(t,e).expressions}function st({result:{ast:t},text:e,comments:n}){return Object.assign(xs(t,e),{comments:n})}function bs({result:{templateBindings:t},text:e}){return Is(t,e)}var As=t=>st(hs(t));var Ns=t=>st(ds(t)),Wt=t=>st(fs(t)),Ps=t=>bs(ms(t));function qt(t){var s,r,o;let e=((s=t.range)==null?void 0:s[0])??t.start,n=(o=((r=t.declaration)==null?void 0:r.decorators)??t.decorators)==null?void 0:o[0];return n?Math.min(qt(n),e):e}function Ls(t){var e;return((e=t.range)==null?void 0:e[1])??t.end}function rt(t){return{astFormat:"estree",parse(e){let n=t(e);return{type:"NGRoot",node:t===Wt&&n.type!=="NGChainedExpression"?{...n,type:"NGChainedExpression",expressions:[n]}:n}},locStart:qt,locEnd:Ls}}var Ur=rt(Wt),Wr=rt(As),qr=rt(Ns),jr=rt(Ps);var Zi=zt;export{Zi as default,jt as parsers}; diff --git a/node_modules/prettier/plugins/babel.js b/node_modules/prettier/plugins/babel.js index c8dff027..b0de6a01 100644 --- a/node_modules/prettier/plugins/babel.js +++ b/node_modules/prettier/plugins/babel.js @@ -1,15 +1,15 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e()}})(function(){"use strict";var $s=Object.create;var Se=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var qs=Object.getOwnPropertyNames;var zs=Object.getPrototypeOf,Ks=Object.prototype.hasOwnProperty;var Hs=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),Ws=(a,t)=>{for(var e in t)Se(a,e,{get:t[e],enumerable:!0})},kt=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qs(t))!Ks.call(a,i)&&i!==e&&Se(a,i,{get:()=>t[i],enumerable:!(s=Vs(t,i))||s.enumerable});return a};var vt=(a,t,e)=>(e=a!=null?$s(zs(a)):{},kt(t||!a||!a.__esModule?Se(e,"default",{value:a,enumerable:!0}):e,a)),Js=a=>kt(Se({},"__esModule",{value:!0}),a);var At=Hs(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});function Ht(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var F=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ee=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new F(e,s+t,i+t)}var Lt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Xs={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Lt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Lt}},Dt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Ee=a=>a.type==="UpdateExpression"?Dt.UpdateExpression[`${a.prefix}`]:Dt[a.type],Gs={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:a})=>`'import.${a}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Ee(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Ee(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${Ee(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Ys={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Qs=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Zs={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Ee({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ei=["toMessage"],ti=["message"];function Mt(a,t,e){Object.defineProperty(a,t,{enumerable:!1,configurable:!0,value:e})}function si(a){let{toMessage:t}=a,e=Ht(a,ei);return function s(i,r){let n=new SyntaxError;return Object.assign(n,e,{loc:i,pos:i.index}),"missingPlugin"in r&&Object.assign(n,{missingPlugin:r.missingPlugin}),Mt(n,"clone",function(h={}){var c;let{line:l,column:u,index:f}=(c=h.loc)!=null?c:i;return s(new F(l,u,f),Object.assign({},r,h.details))}),Mt(n,"details",r),Object.defineProperty(n,"message",{configurable:!0,get(){let o=`${t(r)} (${i.line}:${i.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0})}}),n}}function j(a,t){if(Array.isArray(a))return s=>j(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=Ht(r,ti),h=typeof n=="string"?()=>n:n;e[s]=si(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},j(Xs),j(Gs),j(Ys),j`pipelineOperator`(Zs)),{defineProperty:ii}=Object,Ot=(a,t)=>{a&&ii(a,t,{enumerable:!1,value:a[t]})};function oe(a){return Ot(a.loc.start,"index"),Ot(a.loc.end,"index"),a}var ri=a=>class extends a{parse(){let e=oe(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(oe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let c=this.startNode();return c.kind=e.kind,c=super.parseMethod(c,s,i,r,n,o,h),c.type="FunctionExpression",delete c.kind,e.value=c,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(p.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(p.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r,n;i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(n=i.arguments[1])!=null?n:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,s,i){return oe(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),oe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),oe(e)}},X=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},C={brace:new X("{"),j_oTag:new X("...",!0)};C.template=new X("`",!0);var b=!0,m=!0,$e=!0,he=!0,q=!0,ai=!0,ve=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},ut=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return ut.set(a,e),e}function k(a,t){return P(a,{beforeExpr:b,binop:t})}var ue=-1,U=[],ft=[],dt=[],mt=[],yt=[],xt=[];function P(a,t={}){var e,s,i,r;return++ue,ft.push(a),dt.push((e=t.binop)!=null?e:-1),mt.push((s=t.beforeExpr)!=null?s:!1),yt.push((i=t.startsExpr)!=null?i:!1),xt.push((r=t.prefix)!=null?r:!1),U.push(new ve(a,t)),ue}function T(a,t={}){var e,s,i,r;return++ue,ut.set(a,ue),ft.push(a),dt.push((e=t.binop)!=null?e:-1),mt.push((s=t.beforeExpr)!=null?s:!1),yt.push((i=t.startsExpr)!=null?i:!1),xt.push((r=t.prefix)!=null?r:!1),U.push(new ve("name",t)),ue}var ni={bracketL:P("[",{beforeExpr:b,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:b,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:b,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:b,startsExpr:m}),braceBarL:P("{|",{beforeExpr:b,startsExpr:m}),braceHashL:P("#{",{beforeExpr:b,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:b,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:b}),semi:P(";",{beforeExpr:b}),colon:P(":",{beforeExpr:b}),doubleColon:P("::",{beforeExpr:b}),dot:P("."),question:P("?",{beforeExpr:b}),questionDot:P("?."),arrow:P("=>",{beforeExpr:b}),template:P("template"),ellipsis:P("...",{beforeExpr:b}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:b,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:b,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:b,isAssign:he}),assign:P("_=",{beforeExpr:b,isAssign:he}),slashAssign:P("_=",{beforeExpr:b,isAssign:he}),xorAssign:P("_=",{beforeExpr:b,isAssign:he}),moduloAssign:P("_=",{beforeExpr:b,isAssign:he}),incDec:P("++/--",{prefix:q,postfix:ai,startsExpr:m}),bang:P("!",{beforeExpr:b,prefix:q,startsExpr:m}),tilde:P("~",{beforeExpr:b,prefix:q,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("/<=/>=",7),gt:k("/<=/>=",7),relational:k("/<=/>=",7),bitShift:k("<>/>>>",8),bitShiftL:k("<>/>>>",8),bitShiftR:k("<>/>>>",8),plusMin:P("+/-",{beforeExpr:b,binop:9,prefix:q,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:k("/",10),exponent:P("**",{beforeExpr:b,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:b,binop:7}),_instanceof:A("instanceof",{beforeExpr:b,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:b}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:b}),_else:A("else",{beforeExpr:b}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:b}),_switch:A("switch"),_throw:A("throw",{beforeExpr:b,prefix:q,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:b,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:b}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:b,prefix:q,startsExpr:m}),_void:A("void",{beforeExpr:b,prefix:q,startsExpr:m}),_delete:A("delete",{beforeExpr:b,prefix:q,startsExpr:m}),_do:A("do",{isLoop:$e,beforeExpr:b}),_for:A("for",{isLoop:$e}),_while:A("while",{isLoop:$e}),_as:T("as",{startsExpr:m}),_assert:T("assert",{startsExpr:m}),_async:T("async",{startsExpr:m}),_await:T("await",{startsExpr:m}),_defer:T("defer",{startsExpr:m}),_from:T("from",{startsExpr:m}),_get:T("get",{startsExpr:m}),_let:T("let",{startsExpr:m}),_meta:T("meta",{startsExpr:m}),_of:T("of",{startsExpr:m}),_sent:T("sent",{startsExpr:m}),_set:T("set",{startsExpr:m}),_source:T("source",{startsExpr:m}),_static:T("static",{startsExpr:m}),_using:T("using",{startsExpr:m}),_yield:T("yield",{startsExpr:m}),_asserts:T("asserts",{startsExpr:m}),_checks:T("checks",{startsExpr:m}),_exports:T("exports",{startsExpr:m}),_global:T("global",{startsExpr:m}),_implements:T("implements",{startsExpr:m}),_intrinsic:T("intrinsic",{startsExpr:m}),_infer:T("infer",{startsExpr:m}),_is:T("is",{startsExpr:m}),_mixins:T("mixins",{startsExpr:m}),_proto:T("proto",{startsExpr:m}),_require:T("require",{startsExpr:m}),_satisfies:T("satisfies",{startsExpr:m}),_keyof:T("keyof",{startsExpr:m}),_readonly:T("readonly",{startsExpr:m}),_unique:T("unique",{startsExpr:m}),_abstract:T("abstract",{startsExpr:m}),_declare:T("declare",{startsExpr:m}),_enum:T("enum",{startsExpr:m}),_module:T("module",{startsExpr:m}),_namespace:T("namespace",{startsExpr:m}),_interface:T("interface",{startsExpr:m}),_type:T("type",{startsExpr:m}),_opaque:T("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function w(a){return a>=93&&a<=132}function oi(a){return a<=92}function M(a){return a>=58&&a<=132}function Wt(a){return a>=58&&a<=136}function hi(a){return mt[a]}function He(a){return yt[a]}function li(a){return a>=29&&a<=33}function Ft(a){return a>=129&&a<=131}function ci(a){return a>=90&&a<=92}function Pt(a){return a>=58&&a<=92}function pi(a){return a>=39&&a<=59}function ui(a){return a===34}function fi(a){return xt[a]}function di(a){return a>=121&&a<=123}function mi(a){return a>=124&&a<=130}function K(a){return ft[a]}function Ie(a){return dt[a]}function yi(a){return a===57}function Le(a){return a>=24&&a<=25}function R(a){return U[a]}U[8].updateContext=a=>{a.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=a=>{a.push(C.brace)},U[22].updateContext=a=>{a[a.length-1]===C.template?a.pop():a.push(C.template)},U[142].updateContext=a=>{a.push(C.j_expr,C.j_oTag)};var gt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Jt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",xi=new RegExp("["+gt+"]"),Pi=new RegExp("["+gt+Jt+"]");gt=Jt=null;var Xt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],gi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function We(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function _(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&xi.test(String.fromCharCode(a)):We(a,Xt)}function Q(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&Pi.test(String.fromCharCode(a)):We(a,Xt)||We(a,gi)}var Tt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Ti=new Set(Tt.keyword),bi=new Set(Tt.strict),Ai=new Set(Tt.strictBind);function Gt(a,t){return t&&a==="await"||a==="enum"}function Yt(a,t){return Gt(a,t)||bi.has(a)}function Qt(a){return Ai.has(a)}function Zt(a,t){return Yt(a,t)||Qt(a)}function Si(a){return Ti.has(a)}function wi(a,t,e){return a===64&&t===64&&_(e)}var Ci=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ei(a){return Ci.has(a)}var de=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},me=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new de(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},Je=class extends de{constructor(...t){super(...t),this.declareFunctions=new Set}},Xe=class extends me{createScope(t){return new Je(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Ge=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function es(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Ii(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function ye(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function le(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?ye(a,e.comments):es(s,e.comments)}var Ye=class extends Ge{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&es(t.leadingNode,e),t.trailingNode!==null&&Ii(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":le(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":le(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":le(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":le(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":le(s,s.specifiers,t);break;default:ye(s,e)}else ye(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startLine:s,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new F(s,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}curPosition(){return new F(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new a;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},ki=function(t){return t>=48&&t<=57},Rt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ce={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ut(a,t,e,s,i,r){let n=e,o=s,h=i,c="",l=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),c+=t.slice(u,e);break}let d=t.charCodeAt(e);if(vi(a,d,t,e)){c+=t.slice(u,e);break}if(d===92){c+=t.slice(u,e);let y=Li(t,e,s,i,a==="template",r);y.ch===null&&!l?l={pos:e,lineStart:s,curLine:i}:c+=y.ch,{pos:e,lineStart:s,curLine:i}=y,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(c+=t.slice(u,e)+` -`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:c,firstInvalidLoc:l,lineStart:s,curLine:i,containsInvalid:!!l}}function vi(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Li(a,t,e,s,i,r){let n=!i;t++;let o=c=>({pos:t,ch:c,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` -`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=Ze(a,t,e,s,2,!1,n,r),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=is(a,t,e,s,n,r),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let c=t-1,u=/^[0-7]+/.exec(a.slice(c,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(c,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ze(a,t,e,s,i,r,n,o){let h=t,c;return{n:c,pos:t}=ss(a,t,e,s,16,i,r,!1,o,!n),c===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:c,pos:t}}function ss(a,t,e,s,i,r,n,o,h,c){let l=t,u=i===16?Rt.hex:Rt.decBinOct,f=i===16?Ce.hex:i===10?Ce.dec:i===8?Ce.oct:Ce.bin,d=!1,y=0;for(let E=0,L=r??1/0;E=97?I=S-97+10:S>=65?I=S-65+10:ki(S)?I=S-48:I=1/0,I>=i){if(I<=9&&c)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,y=y*i+I}return t===l||r!=null&&t-l!==r||d?{n:null,pos:t}:{n:y,pos:t}}function is(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ze(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ze(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function ce(a,t,e){return new F(e,a-t,a)}var Di=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new ee(t.startLoc,t.endLoc)}},et=class extends Ye{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,ce(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,ce(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,ce(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,ce(s,i,r))}}),this.state=new Qe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ve.lastIndex=t,Ve.test(this.input)?Ve.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Ne.lastIndex=t,Ne.test(this.input)?Ne.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,we.lastIndex=s+2;we.test(this.input)&&we.lastIndex<=i;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new ee(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition());if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else _(e)?(++this.state.pos,this.finishToken(138,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!fe(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(_(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,v(t,1));let c=this.input.charCodeAt(r);if(fe(c))throw this.raise(p.UnterminatedRegExp,v(t,1));if(s)s=!1;else{if(c===91)i=!0;else if(c===93&&i)i=!1;else if(c===47&&!i)break;s=c===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>v(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(c){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,s),!this.state.strict){let y=d.indexOf("_");y>0&&this.raise(p.ZeroDigitNumericSeparator,v(s,y))}h=c&&!/[89]/.test(d)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!h&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,s),i=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||c)&&this.raise(p.InvalidBigIntLiteral,s),++this.state.pos,r=!0),l===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||c)&&this.raise(p.InvalidDecimal,s),++this.state.pos,n=!0),_(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,this.state.curPosition());let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(135,u);return}if(n){this.finishToken(136,u);return}let f=h?parseInt(u,8):parseFloat(u);this.finishToken(134,f)}readCodePoint(t){let{code:e,pos:s}=is(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ut(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(133,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ut("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new F(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,e):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let h=n[o];if(h.loc.index===r)return n[o]=t(i,s);if(h.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,ce(e,s,i))}}},tt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},st=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new tt)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let c=h&4,l=e&4,u=h&3,f=e&3;o=u===f||c!==l,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,s,{identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,e,{identifierName:t})}},te=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},De=class extends te{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},it=class{constructor(t){this.parser=void 0,this.stack=[new te],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let s=e.loc.start,{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,e){let{stack:s}=this,i=s[s.length-1],r=e.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError(t){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,t),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,i);let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function Mi(){return new te(3)}function Oi(){return new De(1)}function Fi(){return new De(2)}function rs(){return new te}var rt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ke(a,t){return(a?2:0)|(t?1:0)}var at=class extends et{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(Q(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ts.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Bt.lastIndex=this.state.end,Bt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,s),i!=null&&this.raise(p.DuplicateProto,i),r!=null&&this.raise(p.UnexpectedPrivateField,r),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Wt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new rt;let h=this.classScope;this.classScope=new st(this);let c=this.expressionScope;return this.expressionScope=new it(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=c}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},Z=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},se=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new ee(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},bt=se.prototype;bt.__clone=function(){let a=new se(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function _i(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function _t(a){return a.importKind==="type"||a.importKind==="typeof"}var ji={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function $i(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Xe}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==133&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Vi.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{_i(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,o),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:ji[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){Ui.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let c,l,u=!1;for(s&&this.match(6)?(this.expect(6),c=9,l=!0):(this.expect(5),c=8,l=!1),h.exact=l;!this.match(c);){let d=!1,y=null,E=null,L=this.startNode();if(r&&this.isContextual(118)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),y=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),d=!0)}let S=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(S&&this.unexpected(S.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(L,d))):h.indexers.push(this.flowParseObjectTypeIndexer(L,d,S));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),S&&this.unexpected(S.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(L,d));else{let I="init";if(this.isContextual(99)||this.isContextual(104)){let ne=this.lookahead();Wt(ne.type)&&(I=this.state.value,this.next())}let Ae=this.flowParseObjectTypeProperty(L,d,y,S,I,i,n??!l);Ae===null?(u=!0,E=this.state.lastTokStartLoc):h.properties.push(Ae)}this.flowObjectTypeSemicolon(),E&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,E)}this.expect(c),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,this.state.lastTokStartLoc):this.raise(g.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(g.InexactVariance,r),null):(o||this.raise(g.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let c=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=c,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||w(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(w(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return Ft(e)||this.shouldParseEnums()&&e===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return Ft(e)||this.shouldParseEnums()&&e===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:c}=this.tryParseConditionalConsequent(),[l,u]=this.getArrowLikeExpressions(h);if(c||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,r.startLoc),c&&l.length===1&&(this.state=r,f.push(l[0].start),this.state.noArrowAt=f,{consequent:h,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):$i(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,r):s.value&&this.raise(g.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):wi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,s,i,r,n,o,h);return c&&((l.value||l).typeParameters=c),l}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,e),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:c}=this.state,l=c[c.length-1];(l===C.j_oTag||l===C.j_expr)&&c.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let c,l=this.tryParse(f=>{var d;c=this.flowParseTypeParameterDeclaration();let y=this.forwardNoArrowParamsConversionAt(c,()=>{let L=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(L,c),L});(d=y.extra)!=null&&d.parenthesized&&f();let E=this.maybeUnwrapTypeCastExpression(y);return E.type!=="ArrowFunctionExpression"&&f(),E.typeParameters=c,this.resetStartLocationFromNode(E,c),y},r),u=null;if(l.node&&this.maybeUnwrapTypeCastExpression(l.node).type==="ArrowFunctionExpression"){if(!l.error&&!l.aborted)return l.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),l.node;u=l.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=l.failState,u;throw(h=n)!=null&&h.thrown?n.error:l.thrown?l.error:this.raise(g.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(e.start)?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(e.start))){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(g.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(g.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 133:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:c}=this.flowEnumMemberRaw(),l=h.name;if(l==="")continue;/^[a-z]/.test(l)&&this.raise(g.EnumInvalidMemberName,h,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),i.has(l)&&this.raise(g.EnumDuplicateMemberName,h,{memberName:l,enumName:e}),i.add(l);let u={enumName:e,explicitType:s,memberName:l};switch(o.id=h,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),o.init=c.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),o.init=c.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),o.init=c.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!w(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let c=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let l=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!l&&!u&&!f&&!d)return c();if(!l&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&l>=d){for(let y of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:i,memberName:y.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!l&&!f&&u>=d){for(let y of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:i,memberName:y.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,r,{enumName:i}),c()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},W=j`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function z(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function Y(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Y(a.object)+"."+Y(a.property);throw new Error("Node had unexpected type: "+a.type)}var zi=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(141,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:fe(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` +(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e()}})(function(){"use strict";var Bs=Object.create;var be=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var Us=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty;var $s=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zs=(a,t)=>{for(var e in t)be(a,e,{get:t[e],enumerable:!0})},Et=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Us(t))!js.call(a,i)&&i!==e&&be(a,i,{get:()=>t[i],enumerable:!(s=Rs(t,i))||s.enumerable});return a};var It=(a,t,e)=>(e=a!=null?Bs(_s(a)):{},Et(t||!a||!a.__esModule?be(e,"default",{value:a,enumerable:!0}):e,a)),Vs=a=>Et(be({},"__esModule",{value:!0}),a);var gt=$s(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});function qs(a,t){if(a==null)return{};var e={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(t.includes(s))continue;e[s]=a[s]}return e}var O=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},Z=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new O(e,s+t,i+t)}var Nt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Ks={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Nt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Nt}},kt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},we=a=>a.type==="UpdateExpression"?kt.UpdateExpression[`${a.prefix}`]:kt[a.type],Hs={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:a})=>`'import.${a}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. +- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${we(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${we(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${we(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Js={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Ws=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Xs={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${we({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Gs=["message"];function vt(a,t,e){Object.defineProperty(a,t,{enumerable:!1,configurable:!0,value:e})}function Ys({toMessage:a,code:t,reasonCode:e,syntaxPlugin:s}){let i=e==="MissingPlugin"||e==="MissingOneOfPlugins";{let r={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};r[e]&&(e=r[e])}return function r(n,o){let h=new SyntaxError;return h.code=t,h.reasonCode=e,h.loc=n,h.pos=n.index,h.syntaxPlugin=s,i&&(h.missingPlugin=o.missingPlugin),vt(h,"clone",function(c={}){var u;let{line:f,column:d,index:x}=(u=c.loc)!=null?u:n;return r(new O(f,d,x),Object.assign({},o,c.details))}),vt(h,"details",o),Object.defineProperty(h,"message",{configurable:!0,get(){let l=`${a(o)} (${n.line}:${n.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),h}}function U(a,t){if(Array.isArray(a))return s=>U(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=qs(r,Gs),h=typeof n=="string"?()=>n:n;e[s]=Ys(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},U(Ks),U(Hs),U(Js),U`pipelineOperator`(Xs)),{defineProperty:Qs}=Object,Lt=(a,t)=>{a&&Qs(a,t,{enumerable:!1,value:a[t]})};function ne(a){return Lt(a.loc.start,"index"),Lt(a.loc.end,"index"),a}var Zs=a=>class extends a{parse(){let e=ne(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(ne)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(p.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(p.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){var r,n;i.type="ImportExpression",i.source=i.arguments[0],i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(n=i.arguments[1])!=null?n:null,delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,s,i){return ne(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),ne(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),ne(e)}},J=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},E={brace:new J("{"),j_oTag:new J("...",!0)};E.template=new J("`",!0);var b=!0,m=!0,Ue=!0,oe=!0,z=!0,ei=!0,Ie=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},lt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return lt.set(a,e),e}function k(a,t){return P(a,{beforeExpr:b,binop:t})}var pe=-1,B=[],ct=[],pt=[],ut=[],ft=[],dt=[];function P(a,t={}){var e,s,i,r;return++pe,ct.push(a),pt.push((e=t.binop)!=null?e:-1),ut.push((s=t.beforeExpr)!=null?s:!1),ft.push((i=t.startsExpr)!=null?i:!1),dt.push((r=t.prefix)!=null?r:!1),B.push(new Ie(a,t)),pe}function T(a,t={}){var e,s,i,r;return++pe,lt.set(a,pe),ct.push(a),pt.push((e=t.binop)!=null?e:-1),ut.push((s=t.beforeExpr)!=null?s:!1),ft.push((i=t.startsExpr)!=null?i:!1),dt.push((r=t.prefix)!=null?r:!1),B.push(new Ie("name",t)),pe}var ti={bracketL:P("[",{beforeExpr:b,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:b,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:b,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:b,startsExpr:m}),braceBarL:P("{|",{beforeExpr:b,startsExpr:m}),braceHashL:P("#{",{beforeExpr:b,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:b,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:b}),semi:P(";",{beforeExpr:b}),colon:P(":",{beforeExpr:b}),doubleColon:P("::",{beforeExpr:b}),dot:P("."),question:P("?",{beforeExpr:b}),questionDot:P("?."),arrow:P("=>",{beforeExpr:b}),template:P("template"),ellipsis:P("...",{beforeExpr:b}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:b,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:b,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:b,isAssign:oe}),assign:P("_=",{beforeExpr:b,isAssign:oe}),slashAssign:P("_=",{beforeExpr:b,isAssign:oe}),xorAssign:P("_=",{beforeExpr:b,isAssign:oe}),moduloAssign:P("_=",{beforeExpr:b,isAssign:oe}),incDec:P("++/--",{prefix:z,postfix:ei,startsExpr:m}),bang:P("!",{beforeExpr:b,prefix:z,startsExpr:m}),tilde:P("~",{beforeExpr:b,prefix:z,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("/<=/>=",7),gt:k("/<=/>=",7),relational:k("/<=/>=",7),bitShift:k("<>/>>>",8),bitShiftL:k("<>/>>>",8),bitShiftR:k("<>/>>>",8),plusMin:P("+/-",{beforeExpr:b,binop:9,prefix:z,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:k("/",10),exponent:P("**",{beforeExpr:b,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:b,binop:7}),_instanceof:A("instanceof",{beforeExpr:b,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:b}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:b}),_else:A("else",{beforeExpr:b}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:b}),_switch:A("switch"),_throw:A("throw",{beforeExpr:b,prefix:z,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:b,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:b}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:b,prefix:z,startsExpr:m}),_void:A("void",{beforeExpr:b,prefix:z,startsExpr:m}),_delete:A("delete",{beforeExpr:b,prefix:z,startsExpr:m}),_do:A("do",{isLoop:Ue,beforeExpr:b}),_for:A("for",{isLoop:Ue}),_while:A("while",{isLoop:Ue}),_as:T("as",{startsExpr:m}),_assert:T("assert",{startsExpr:m}),_async:T("async",{startsExpr:m}),_await:T("await",{startsExpr:m}),_defer:T("defer",{startsExpr:m}),_from:T("from",{startsExpr:m}),_get:T("get",{startsExpr:m}),_let:T("let",{startsExpr:m}),_meta:T("meta",{startsExpr:m}),_of:T("of",{startsExpr:m}),_sent:T("sent",{startsExpr:m}),_set:T("set",{startsExpr:m}),_source:T("source",{startsExpr:m}),_static:T("static",{startsExpr:m}),_using:T("using",{startsExpr:m}),_yield:T("yield",{startsExpr:m}),_asserts:T("asserts",{startsExpr:m}),_checks:T("checks",{startsExpr:m}),_exports:T("exports",{startsExpr:m}),_global:T("global",{startsExpr:m}),_implements:T("implements",{startsExpr:m}),_intrinsic:T("intrinsic",{startsExpr:m}),_infer:T("infer",{startsExpr:m}),_is:T("is",{startsExpr:m}),_mixins:T("mixins",{startsExpr:m}),_proto:T("proto",{startsExpr:m}),_require:T("require",{startsExpr:m}),_satisfies:T("satisfies",{startsExpr:m}),_keyof:T("keyof",{startsExpr:m}),_readonly:T("readonly",{startsExpr:m}),_unique:T("unique",{startsExpr:m}),_abstract:T("abstract",{startsExpr:m}),_declare:T("declare",{startsExpr:m}),_enum:T("enum",{startsExpr:m}),_module:T("module",{startsExpr:m}),_namespace:T("namespace",{startsExpr:m}),_interface:T("interface",{startsExpr:m}),_type:T("type",{startsExpr:m}),_opaque:T("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),placeholder:P("%%",{startsExpr:!0}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd")};function C(a){return a>=93&&a<=133}function si(a){return a<=92}function D(a){return a>=58&&a<=133}function Vt(a){return a>=58&&a<=137}function ii(a){return ut[a]}function Ve(a){return ft[a]}function ri(a){return a>=29&&a<=33}function Dt(a){return a>=129&&a<=131}function ai(a){return a>=90&&a<=92}function mt(a){return a>=58&&a<=92}function ni(a){return a>=39&&a<=59}function oi(a){return a===34}function hi(a){return dt[a]}function li(a){return a>=121&&a<=123}function ci(a){return a>=124&&a<=130}function q(a){return ct[a]}function Ce(a){return pt[a]}function pi(a){return a===57}function Ne(a){return a>=24&&a<=25}function F(a){return B[a]}B[8].updateContext=a=>{a.pop()},B[5].updateContext=B[7].updateContext=B[23].updateContext=a=>{a.push(E.brace)},B[22].updateContext=a=>{a[a.length-1]===E.template?a.pop():a.push(E.template)},B[143].updateContext=a=>{a.push(E.j_expr,E.j_oTag)};var yt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",qt="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ui=new RegExp("["+yt+"]"),fi=new RegExp("["+yt+qt+"]");yt=qt=null;var Kt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],di=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function qe(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function R(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&ui.test(String.fromCharCode(a)):qe(a,Kt)}function G(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&fi.test(String.fromCharCode(a)):qe(a,Kt)||qe(a,di)}var xt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},mi=new Set(xt.keyword),yi=new Set(xt.strict),xi=new Set(xt.strictBind);function Ht(a,t){return t&&a==="await"||a==="enum"}function Jt(a,t){return Ht(a,t)||yi.has(a)}function Wt(a){return xi.has(a)}function Xt(a,t){return Jt(a,t)||Wt(a)}function Pi(a){return mi.has(a)}function gi(a,t,e){return a===64&&t===64&&R(e)}var Ti=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function bi(a){return Ti.has(a)}var ue=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},fe=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new ue(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},Ke=class extends ue{constructor(...t){super(...t),this.declareFunctions=new Set}},He=class extends fe{createScope(t){return new Ke(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Je=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function Gt(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Ai(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function de(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function he(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?de(a,e.comments):Gt(s,e.comments)}var We=class extends Je{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Gt(t.leadingNode,e),t.trailingNode!==null&&Ai(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":he(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":he(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":he(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":he(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":he(s,s.specifiers,t);break;default:de(s,e)}else de(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:s,startLine:i,startColumn:r}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.startIndex=s,this.curLine=i,this.lineStart=-r,this.startLoc=this.endLoc=new O(i,r,s)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new O(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new a;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Ci=function(t){return t>=48&&t<=57},Ot={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Se={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ft(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),l+=t.slice(u,e);break}let d=t.charCodeAt(e);if(Ei(a,d,t,e)){l+=t.slice(u,e);break}if(d===92){l+=t.slice(u,e);let x=Ii(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(l+=t.slice(u,e)+` +`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ei(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Ii(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` +`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ge(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Qt(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=/^[0-7]+/.exec(a.slice(l,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ge(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=Yt(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function Yt(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ot.hex:Ot.decBinOct,f=i===16?Se.hex:i===10?Se.dec:i===8?Se.oct:Se.bin,d=!1,x=0;for(let S=0,N=r??1/0;S=97?I=w-97+10:w>=65?I=w-65+10:Ci(w)?I=w-48:I=1/0,I>=i){if(I<=9&&l)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,x=x*i+I}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function Qt(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ge(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ge(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function le(a,t,e){return new O(e,a-t,a)}var Ni=new Set([103,109,115,105,121,117,100,118]),M=class{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new Z(t.startLoc,t.endLoc)}},Ye=class extends We{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,le(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,le(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,le(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,le(s,i,r))}}),this.state=new Xe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new M(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return _e.lastIndex=t,_e.test(this.input)?_e.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return je.lastIndex=t,je.test(this.input)?je.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,Ae.lastIndex=s+2;Ae.test(this.input)&&Ae.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ae.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(i+t.length),loc:new Z(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition());if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else R(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!Y(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(R(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,v(t,1));let l=this.input.charCodeAt(r);if(Y(l))throw this.raise(p.UnterminatedRegExp,v(t,1));if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>v(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(h){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,s),!this.state.strict){let x=d.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,v(s,x))}o=h&&!/[89]/.test(d)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!o&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,s),i=!0,n=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||h)&&this.raise(p.InvalidBigIntLiteral,s),++this.state.pos,r=!0),l===109){this.expectPlugin("decimal",this.state.curPosition()),(n||h)&&this.raise(p.InvalidDecimal,s),++this.state.pos;var c=!0}if(R(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,this.state.curPosition());let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}let f=o?parseInt(u,8):parseFloat(u);this.finishToken(135,f)}readCodePoint(t){let{code:e,pos:s}=Qt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ft(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ft("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new O(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,e):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let h=n[o];if(h.loc.index===r)return n[o]=t(i,s);if(h.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,le(e,s,i))}}},Qe=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ze=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Qe)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let l=h&4,c=e&4,u=h&3,f=e&3;o=u===f||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,s,{identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,e,{identifierName:t})}},ee=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},ke=class extends ee{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},et=class{constructor(t){this.parser=void 0,this.stack=[new ee],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let s=e.loc.start,{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,e){let{stack:s}=this,i=s[s.length-1],r=e.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError(t){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,t),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,i);let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function ki(){return new ee(3)}function vi(){return new ke(1)}function Li(){return new ke(2)}function Zt(){return new ee}var tt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ee(a,t){return(a?2:0)|(t?1:0)}var st=class extends Ye{addExtra(t,e,s,i=!0){if(!t)return;let{extra:r}=t;r==null&&(r={},t.extra=r),i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(G(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Mt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Mt(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,s),i!=null&&this.raise(p.DuplicateProto,i),r!=null&&this.raise(p.UnexpectedPrivateField,r),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Vt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new tt;let h=this.classScope;this.classScope=new Ze(this);let l=this.expressionScope;return this.expressionScope=new et(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},Q=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},te=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new Z(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Pt=te.prototype;Pt.__clone=function(){let a=new te(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Fi(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function Bt(a){return a.importKind==="type"||a.importKind==="typeof"}var Bi={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Ri(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return He}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,s){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Ui.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Fi(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,o),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Bi[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){Oi.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let d=!1,x=null,S=null,N=this.startNode();if(r&&this.isContextual(118)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),d=!0)}let w=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(w&&this.unexpected(w.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(N,d))):h.indexers.push(this.flowParseObjectTypeIndexer(N,d,w));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),w&&this.unexpected(w.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(N,d));else{let I="init";if(this.isContextual(99)||this.isContextual(104)){let ae=this.lookahead();Vt(ae.type)&&(I=this.state.value,this.next())}let Te=this.flowParseObjectTypeProperty(N,d,x,w,I,i,n??!c);Te===null?(u=!0,S=this.state.lastTokStartLoc):h.properties.push(Te)}this.flowObjectTypeSemicolon(),S&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,S)}this.expect(l),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,this.state.lastTokStartLoc):this.raise(g.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(g.InexactVariance,r),null):(o||this.raise(g.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(D(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||C(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(C(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||Dt(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||Dt(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,r.startLoc),l&&c.length===1&&(this.state=r,f.push(c[0].start),this.state.noArrowAt=f,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):Ri(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,r):s.value&&this.raise(g.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):gi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,e),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===E.j_oTag||c===E.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(f=>{var d;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let N=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(N,l),N});(d=x.extra)!=null&&d.parenthesized&&f();let S=this.maybeUnwrapTypeCastExpression(x);return S.type!=="ArrowFunctionExpression"&&f(),S.typeParameters=l,this.resetStartLocationFromNode(S,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(g.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(g.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(g.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(g.EnumInvalidMemberName,h,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(g.EnumDuplicateMemberName,h,{memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!C(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!u&&!f&&!d)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&c>=d){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!f&&u>=d){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,r,{enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},H=U`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function V(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function X(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return X(a.object)+"."+X(a.property);throw new Error("Node had unexpected type: "+a.type)}var ji=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(H.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:Y(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` `:`\r -`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):fe(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(133,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i0){if(s&256){let r=!!(s&512),n=(i&4)>0;return r!==n}return!0}return s&128&&(i&8)>0?t.names.get(e)&2?!!(s&1):!1:s&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,e,s)}checkLocalExport(t){let{name:e}=t;if(this.hasImport(e))return;let s=this.scopeStack.length;for(let i=s-1;i>=0;i--){let n=this.scopeStack[i].tsNames.get(e);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(t)}},Ki=(a,t)=>hasOwnProperty.call(a,t)&&a[t],as=a=>a.type==="ParenthesizedExpression"?as(a.expression):a,lt=class extends nt{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=as(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,t):r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(p.InvalidParenthesizedAssignment,t):this.raise(p.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,c=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return Ki({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,{in:e,binding:s=64,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;let c=this.isOptionalMemberExpression(t);if(c||h==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise(p.InvalidLhsOptionalChaining,t,{ancestor:e})),s!==64&&this.raise(p.InvalidPropertyBindingPattern,t);return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:y}=t;i&&(i.has(y)?this.raise(p.ParamDupe,t):i.add(y));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let y=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(y,t,{ancestor:e});return}let[u,f]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],d=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:e;for(let y of[].concat(t[u]))y&&this.checkLVal(y,{in:d,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:f})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Zt(t.name,this.inModule):Qt(t.name))&&(e===64?this.raise(p.StrictEvalArguments,t,{referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc),!0):!1}},Hi=(a,t)=>hasOwnProperty.call(a,t)&&a[t];function Wi(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function jt(a){if(!a)throw new Error("Assert fail")}var x=j`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function Ji(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";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}}function $t(a){return a==="private"||a==="public"||a==="protected"}function Xi(a){return a==="in"||a==="out"}var Gi=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:x.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:x.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:x.InvalidModifierOnTypeParameter})}getScopeHandler(){return ht}tsIsIdentifier(){return w(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!w(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=x.InvalidModifierOnTypeMember},n){let o=(c,l,u,f)=>{l===u&&n[f]&&this.raise(x.InvalidModifiersOrder,c,{orderedModifiers:[u,f]})},h=(c,l,u,f)=>{(n[u]&&l===f||n[f]&&l===u)&&this.raise(x.IncompatibleModifiers,c,{modifiers:[u,f]})};for(;;){let{startLoc:c}=this.state,l=this.tsParseModifier(e.concat(s??[]),i);if(!l)break;$t(l)?n.accessibility?this.raise(x.DuplicateAccessibilityModifier,c,{modifier:l}):(o(c,l,l,"override"),o(c,l,l,"static"),o(c,l,l,"readonly"),n.accessibility=l):Xi(l)?(n[l]&&this.raise(x.DuplicateModifier,c,{modifier:l}),n[l]=!0,o(c,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(x.DuplicateModifier,c,{modifier:l}):(o(c,l,"static","readonly"),o(c,l,"static","override"),o(c,l,"override","readonly"),o(c,l,"abstract","override"),h(c,l,"declare","override"),h(c,l,"static","abstract")),n[l]=!0),s!=null&&s.includes(l)&&this.raise(r,c,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return Wi(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(x.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(x.EmptyTypeParameters,s),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(x.UnsupportedSignatureParameterKind,s,{type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),w(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(x.ReadonlyForMethodSignature,e);let r=i;r.kind&&this.match(47)&&this.raise(x.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(x.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,this.state.curPosition());else{let h=r[n][0];this.isThisParam(h)&&this.raise(x.AccesorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(x.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(x.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(x.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return e.elementTypes.forEach(i=>{let{type:r}=i;s&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&i.optional)&&this.raise(x.OptionalTypeBeforeRequired,i),s||(s=r==="TSNamedTupleMember"&&i.optional||r==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,c=M(this.state.type)?this.lookaheadCharCode():null;if(c===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(c===63){n=!0;let l=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(l),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let l;r?(l=this.startNodeAtNode(r),l.optional=n,l.label=r,l.elementType=o,this.eat(17)&&(l.optional=!0,this.raise(x.TupleOptionalAfterType,this.state.lastTokStartLoc))):(l=this.startNodeAtNode(o),l.optional=n,this.raise(x.InvalidTupleMemberLabel,o),l.label=o,l.elementType=this.tsParseType()),o=this.finishNode(l,"TSNamedTupleMember")}else if(n){let l=this.startNodeAtNode(o);l.typeAnnotation=o,o=this.finishNode(l,"TSOptionalType")}if(s){let l=this.startNodeAt(e);l.typeAnnotation=o,o=this.finishNode(l,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==134&&s.type!==135&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(w(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":Ji(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(x.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return di(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(w(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!w(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){jt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(x.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(x.EmptyHeritageClauseType,s,{token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),s.declare&&(e.declare=!0),w(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(x.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(x.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(100)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(w(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||w(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(w(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&w(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&w(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(x.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===C.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return mi(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(x.UnexpectedParameterModifier,i);let c=this.parseMaybeDefault();this.parseAssignableListItemTypes(c,e);let l=this.parseMaybeDefault(c.loc.start,c);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),l.type!=="Identifier"&&l.type!=="AssignmentPattern"&&this.raise(x.UnsupportedParameterPropertyKind,u),u.parameter=l,this.finishNode(u,"TSParameterProperty")}return s.length&&(c.decorators=s),l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(x.PatternIsOptional,s)}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(x.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(x.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Le(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=c,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=c,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let l=this.state.type;if(l===48||l===52||l!==10&&He(l)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=c,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(x.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(Ie(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(x.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let s;if(w(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(x.TypeImportCannotSpecifyDefaultAndNamed,s),s}parseExport(e,s){if(this.match(83)){this.next();let i=e,r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,r,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(x.InitializerNotAllowedInAmbientContext,h):Qi(h,this.hasPlugin("estree"))||this.raise(x.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,h));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>$t(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:x.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(x.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(x.IndexSignatureHasAbstract,s),s.accessibility&&this.raise(x.IndexSignatureHasAccessibility,s,{modifier:s.accessibility}),s.declare&&this.raise(x.IndexSignatureHasDeclare,s),s.override&&this.raise(x.IndexSignatureHasOverride,s);return}!this.state.inAbstractClass&&s.abstract&&this.raise(x.NonAbstractClassHasAbstractMethod,s),s.override&&(i.hadSuperClass||this.raise(x.OverrideNotInSubClass,s)),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(x.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(x.ClassMethodHasDeclare,e)}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(x.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=w(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(113))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(x.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:s}=e;this.raise(x.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(x.PrivateElementHasAbstract,e),e.accessibility&&this.raise(x.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(x.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(x.ConstructorHasTypeParameters,h);let{declare:c=!1,kind:l}=s;c&&(l==="get"||l==="set")&&this.raise(x.DeclareAccessor,s,{kind:l}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(e.typeParameters=c),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let c,l,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(c=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,s),c),!l.error)return l.node;let{context:y}=this.state,E=y[y.length-1];(E===C.j_oTag||E===C.j_expr)&&y.pop()}if(!((i=l)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!c||c===this.state)&&(c=this.state.clone());let f,d=this.tryParse(y=>{var E,L;f=this.tsParseTypeParameters(this.tsParseConstModifier);let S=super.parseMaybeAssign(e,s);return(S.type!=="ArrowFunctionExpression"||(E=S.extra)!=null&&E.parenthesized)&&y(),((L=f)==null?void 0:L.params.length)!==0&&this.resetStartLocationFromNode(S,f),S.typeParameters=f,S},c);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!l&&(jt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),c),!u.error))return u.node;if((r=l)!=null&&r.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=l)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(x.ReservedArrowTypeParam,e)}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(x.UnexpectedTypeCastInParameter,e):this.raise(x.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return Hi({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSInstantiationExpression:"expression",TSAsExpression:(i!==64||!s)&&["expression",!0],TSSatisfiesExpression:(i!==64||!s)&&["expression",!0],TSTypeAssertion:(i!==64||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(x.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let c=super.parseMethod(e,s,i,r,n,o,h);if(c.abstract&&(this.hasPlugin("estree")?!!c.value.body:!!c.body)){let{key:u}=c;this.raise(x.AbstractMethodHasImplementation,c,{methodName:u.type==="Identifier"&&!c.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,c=!1,l=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();M(this.state.type)?(c=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),l=!1):(h=y,l=!1)}else M(this.state.type)?(l=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=d)}else M(this.state.type)&&(c=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&i&&this.raise(s?x.TypeModifierIsUsedInTypeImports:x.TypeModifierIsUsedInTypeExports,u),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=c?"type":"value",l&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=$(e[r])),s&&this.checkIdentifier(e[n],c?4098:4096)}};function Yi(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:os(a.object)}function Qi(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(ns(a,t)||Zi(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||Yi(a))}function ns(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function Zi(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&ns(s,t))return!0}return!1}function os(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:os(a.object)}var Vt=j`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),er=a=>class extends a{parsePlaceholder(e){if(this.match(144)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=e;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=s,i}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===144)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(s,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let r=e;return r.name=s.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Vt.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=i,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(K(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Vt.UnexpectedSpace,this.state.lastTokEndLoc)}},tr=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),w(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function N(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let c of i)if(h[c]!==s[c])return!1;return!0}})}function J(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var qt=["minimal","fsharp","hack","smart"],zt=["^^","@@","^","%","#"];function sr(a){if(N(a,"decorators")){if(N(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=J(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=J(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(N(a,"flow")&&N(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(N(a,"placeholders")&&N(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(N(a,"pipelineOperator")){let t=J(a,"pipelineOperator","proposal");if(!qt.includes(t)){let i=qt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let e=["recordAndTuple",{syntaxType:"hash"}],s=N(a,e);if(t==="hack"){if(N(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(N(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=J(a,"pipelineOperator","topicToken");if(!zt.includes(i)){let r=zt.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`)}if(i==="#"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(e)}\`.`)}else if(t==="smart"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(e)}\`.`)}if(N(a,"moduleAttributes")){if(N(a,"importAssertions")||N(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(J(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(N(a,"importAssertions")&&N(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(N(a,"recordAndTuple")){let t=J(a,"recordAndTuple","syntaxType");if(t!=null){let e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(s=>`'${s}'`).join(", "))}}if(N(a,"asyncDoExpressions")&&!N(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(N(a,"optionalChainingAssign")&&J(a,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var hs={estree:ri,jsx:zi,flow:qi,typescript:Gi,v8intrinsic:tr,placeholders:er},ir=Object.keys(hs),qe={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function rr(a){if(a==null)return Object.assign({},qe);if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let s of Object.keys(qe)){var e;t[s]=(e=a[s])!=null?e:qe[s]}return t}var ct=class extends lt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,r);return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,r)),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new Z,i=!0);let{type:r}=this.state;(r===10||w(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),li(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let c=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=c&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=c&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=Ie(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,t,{identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(pi(i)&&(this.prodParam.hasIn||!this.match(58))){let r=Ie(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=Ie(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(i,r);let c=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(h&&(l===41||l===42)||o&&l===40)throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(p.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,yi(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Qs.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,e,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,e),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(fi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let c=n.argument;c.type==="Identifier"?this.raise(p.StrictDelete,n):this.hasPropertyAsPrivateName(c)&&this.raise(p.DeletePrivateField,n)}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?He(h):He(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,s),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;ui(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Le(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(p.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:c}=s;h&&(this.expressionScope.enter(Fi()),n=new Z),c&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,n);let l=this.finishCallExpression(o,c);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),l)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=r,l}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,e),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,s);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&ye(t,e.innerComments),e.callee.trailingComments&&ye(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(p.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,r)}case 138:return this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());_(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(w(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(w(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=v(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,e,{token:K(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:K(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(ke(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(v(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(p.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let s=this.isContextual(105);if(s||this.unexpected(),this.expectPlugin(s?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=s?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(e.start,this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Oi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new Z,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,s),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),s=this.parseNoCallExpr();t.callee=s,e&&(s.type==="Import"||s.type==="ImportExpression")&&this.raise(p.ImportCallNotNewExpression,s)}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(v(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,v(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),c=h?-1:-2,l=i+c;o.value={raw:this.input.slice(n,l).replace(/\r\n?/g,` -`),cooked:r===null?null:r.slice(1,c)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,c)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let l;e?l=this.parseBindingProperty():(l=this.parsePropertyDefinition(i),this.checkProto(l,s,n,i)),s&&!this.isObjectProperty(l)&&l.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,l),l.shorthand&&this.addExtra(l,"shorthand",!0),h.properties.push(l)}this.next(),this.state.inFSharpPipelineDirectBody=r;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(h,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:c}=s,l=c.name;l==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(s)),(l==="get"||l==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(c),s.kind=l,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:l}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,$(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,$(t.key))}else t.value=$(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 134:r=this.parseNumericLiteral(i);break;case 133:r=this.parseStringLiteral(i);break;case 135:r=this.parseBigIntLiteral(i);break;case 136:r=this.parseDecimalLiteral(i);break;case 138:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==138&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(ke(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=ke(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=8),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(rs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let c=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Ei(t))return;if(s&&Si(t)){this.raise(p.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?i?Zt:Yt:Gt)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,e);return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,e),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Le(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},ze={kind:1},ar={kind:2},nr=/[\uD800-\uDFFF]/u,Ke=/in(?:stanceof)?/y;function or(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,n,{localName:r});let i;return e===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",v(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(_(t)){if(Ke.lastIndex=e,Ke.test(this.input)){let s=this.codePointAtPos(Ke.lastIndex);if(!Q(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===102&&!e)return!1;if(w(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,i):this.raise(p.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc):r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let l=this.nextTokenStart(),u=this.codePointAtPos(l);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,l)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let l=this.state.value;return this.parseVarStatement(i,l)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let l=this.lookaheadCharCode();if(l===40||l===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,this.state.startLoc),this.next();let l;return s===83?(l=this.parseImport(i),l.type==="ImportDeclaration"&&(!l.importKind||l.importKind==="value")&&(this.sawUnambiguousESM=!0)):(l=this.parseExport(i,e),(l.type==="ExportNamedDeclaration"&&(!l.exportKind||l.exportKind==="value")||l.type==="ExportAllDeclaration"&&(!l.exportKind||l.exportKind==="value")||l.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(l),l}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,c=this.parseExpression();return w(s)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,c,t):this.parseExpressionStatement(i,c,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(ze);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(100);{let h=this.isContextual(96)&&this.startsAwaitUsing(),c=h||this.isContextual(107)&&this.startsUsingForOf(),l=s&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||l){let u=this.startNode(),f;h?(f="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),y=this.match(58);return y&&c&&this.raise(p.ForInUsing,d),(y||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new Z,n=this.parseExpression(!0,r),o=this.isContextual(102);if(o&&(s&&this.raise(p.ForOfLet,n),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,n)),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(ar),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ze),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,s,{labelName:e});let r=ci(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let c=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(c)){let l=this.stmtToDirective(c);e.push(l),!o&&l.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(c)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,e,{type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();(e==="using"||e==="await using")&&(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(p.UsingDeclarationHasBindingPattern,s.loc.start),this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?5:8201}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(ke(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||w(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Mi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,n)}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,c=e,l=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){l.kind="method";let S=this.match(138);if(this.parseClassElementName(l),S){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,r.key),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&w(this.state.type),d=this.parseClassElementName(e),y=f?d.name:null,E=this.isPrivateName(d),L=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind="method",E){this.pushClassPrivateMethod(t,n,!1,!1);return}let S=this.isNonstaticConstructor(r),I=!1;S&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,d),S&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,d),s.hadConstructor=!0,I=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,S,I)}else if(this.isClassProperty())E?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let S=this.eat(55);u.optional&&this.unexpected(L),l.kind="method";let I=this.match(138);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),I?this.pushClassPrivateMethod(t,n,S,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,r.key),this.pushClassMethod(t,r,S,!0,!1,!1))}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),l.kind=y;let S=this.match(138);this.parseClassElementName(r),S?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,r.key),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let S=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,c,S)}else this.isLineTerminator()?E?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===132||e===133)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,this.state.startLoc),e===138){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){!s&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key);let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(rs()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(w(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),c=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let l=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!l&&this.unexpected(null,5),o&&h&&this.unexpected(null,98);let u;if(c||l){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else u=this.maybeParseExportDeclaration(t);if(c||l||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,y=this.parseExportDefaultExpression();if(d.declaration=y,y.type==="ClassDeclaration")this.maybeTakeDecorators(e,y,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e,s;(s=(e=t).specifiers)!=null||(e.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let e=t;e.specifiers||(e.specifiers=[]);let s=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(s)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(w(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(w(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||w(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,o)}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,c=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,c),!i&&o.local){let{local:l}=o;l.type!=="Identifier"?this.raise(p.ExportBindingIsString,o,{localName:l.value,exportName:c}):(this.checkReservedWord(l.name,l.loc.start,!0,!1),this.scope.checkLocalExport(l))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:h}=o;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(t,h.name)}else if(o.type==="VariableDeclaration")for(let h of o.declarations)this.checkDeclaration(h.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,t):this.raise(p.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),r=this.match(133),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Ri(t.local):t.exported||(t.exported=$(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),e=nr.exec(t.value);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){let{specifiers:e}=t,s=e.length===1?e[0].type:null;if(t.phase==="source")s!=="ImportDefaultSpecifier"&&this.raise(p.SourcePhaseImportRequiresDefault,e[0].loc.start);else if(t.phase==="defer")s!=="ImportNamespaceSpecifier"&&this.raise(p.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var i;s!=="ImportDefaultSpecifier"&&this.raise(p.ImportReflectionNotBinding,e[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(p.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,s.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),s==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return w(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),e.add(i),this.match(133)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,s.key),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(133))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(133),r=this.isContextual(130);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,t,{importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=$(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Me=class extends pt{constructor(t,e){t=rr(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=hr(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return me}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function hr(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function lr(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=pe(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",pe(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",pe(t,a).parse()}catch{}throw s}}else return pe(t,a).parse()}function cr(a,t){let e=pe(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function pr(a){let t={};for(let e of Object.keys(a))t[e]=R(a[e]);return t}var ur=pr(ni);function pe(a,t){let e=Me;return a!=null&&a.plugins&&(sr(a.plugins),e=fr(a.plugins)),new e(a,t)}var Kt={};function fr(a){let t=ir.filter(i=>N(a,i)),e=t.join("/"),s=Kt[e];if(!s){s=Me;for(let i of t)s=hs[i](s);Kt[e]=s}return s}xe.parse=lr;xe.parseExpression=cr;xe.tokTypes=ur});var Zr={};Ws(Zr,{parsers:()=>Qr});var je=vt(At(),1);function Oe(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):Y(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i0){if(s&256){let r=!!(s&512),n=(i&4)>0;return r!==n}return!0}return s&128&&(i&8)>0?t.names.get(e)&2?!!(s&1):!1:s&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,e,s)}checkLocalExport(t){let{name:e}=t;if(this.hasImport(e))return;let s=this.scopeStack.length;for(let i=s-1;i>=0;i--){let n=this.scopeStack[i].tsNames.get(e);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(t)}},es=a=>a.type==="ParenthesizedExpression"?es(a.expression):a,nt=class extends it{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=es(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,t):r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(p.InvalidParenthesizedAssignment,t):this.raise(p.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||s&2)&&(o=this.parseFunctionParamType(o)),r.push(o),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(s);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,e,s=64,i=!1,r=!1,n=!1){var o;let h=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||h==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise(p.InvalidLhsOptionalChaining,t,{ancestor:e})),s!==64&&this.raise(p.InvalidPropertyBindingPattern,t);return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:S}=t;i&&(i.has(S)?this.raise(p.ParamDupe,t):i.add(S));return}let c=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(c===!0)return;if(c===!1){let S=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(S,t,{ancestor:e});return}let u,f;typeof c=="string"?(u=c,f=h==="ParenthesizedExpression"):[u,f]=c;let d=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:e,x=t[u];if(Array.isArray(x))for(let S of x)S&&this.checkLVal(S,d,s,i,r,f);else x&&this.checkLVal(x,d,s,i,r,f)}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Xt(t.name,this.inModule):Wt(t.name))&&(e===64?this.raise(p.StrictEvalArguments,t,{referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc),!0):!1}};function $i(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function Rt(a){if(!a)throw new Error("Assert fail")}var y=U`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function zi(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";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}}function Ut(a){return a==="private"||a==="public"||a==="protected"}function Vi(a){return a==="in"||a==="out"}var qi=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return at}tsIsIdentifier(){return C(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,s){if(!C(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,f)=>{c===u&&n[f]&&this.raise(y.InvalidModifiersOrder,l,{orderedModifiers:[u,f]})},h=(l,c,u,f)=>{(n[u]&&c===f||n[f]&&c===u)&&this.raise(y.IncompatibleModifiers,l,{modifiers:[u,f]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;Ut(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):Vi(c)?(n[c]&&this.raise(y.DuplicateModifier,l,{modifier:c}),n[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,l,{modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return $i(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)||this.raise(y.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.eat(12)&&!this.match(11)?(e.options=super.parseMaybeAssignAllowIn(),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,s),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,s,{type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),C(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,e);let r=i;r.kind&&this.match(47)&&this.raise(y.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(y.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,this.state.curPosition());else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccessorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(y.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(y.SetAccessorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let s=this.startNode();s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(s,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return e.elementTypes.forEach(i=>{let{type:r}=i;s&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&i.optional)&&this.raise(y.OptionalTypeBeforeRequired,i),s||(s=r==="TSNamedTupleMember"&&i.optional||r==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=D(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==135&&s.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(C(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":zi(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return li(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(C(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!C(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Rt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,s,{token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),s.declare&&(e.declare=!0),C(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(y.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(100)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(C(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let r=e;return r.kind="global",r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||C(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(C(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&C(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&C(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ci(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(l);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,u),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,s)}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Ne(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=l,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=l,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Ve(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(Ce(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let s;if(C(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,s),s}parseExport(e,s){if(this.match(83)){this.next();let i=e,r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,r,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,h):Hi(h,this.hasPlugin("estree"))||this.raise(y.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,h));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>Ut(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,s),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,s,{modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,s),s.override&&this.raise(y.IndexSignatureHasOverride,s);return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,s),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,s)),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,e)}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=C(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(113))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,e),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,h);let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,s,{kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,S=x[x.length-1];(S===E.j_oTag||S===E.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let f,d=this.tryParse(x=>{var S,N;f=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(e,s);return(w.type!=="ArrowFunctionExpression"||(S=w.extra)!=null&&S.parenthesized)&&x(),((N=f)==null?void 0:N.params.length)!==0&&this.resetStartLocationFromNode(w,f),w.typeParameters=f,w},l);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!c&&(Rt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,e)}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,e):this.raise(y.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!s)&&["expression",!0];default:return super.isValidLVal(e,s,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,l,{methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(this.offsetToSourcePos(u.start),this.offsetToSourcePos(u.end))}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();D(this.state.type)?(l=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else D(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else D(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,u),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=_(e[r])),s&&this.checkIdentifier(e[n],l?4098:4096)}};function Ki(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ss(a.object)}function Hi(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(ts(a,t)||Ji(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||Ki(a))}function ts(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function Ji(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&ts(s,t))return!0}return!1}function ss(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ss(a.object)}var _t=U`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Wi=a=>class extends a{parsePlaceholder(e){if(this.match(133)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=e;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=s,i}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===133)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(s,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let r=e;return r.name=s.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(_t.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=i,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(q(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(_t.UnexpectedSpace,this.state.lastTokEndLoc)}},Xi=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),C(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},jt=["minimal","fsharp","hack","smart"],$t=["^^","@@","^","%","#"];function Gi(a){if(a.has("decorators")){if(a.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=a.get("decorators").decoratorsBeforeExport;if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=a.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(a.has("flow")&&a.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(a.has("placeholders")&&a.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(a.has("pipelineOperator")){var t;let e=a.get("pipelineOperator").proposal;if(!jt.includes(e)){let i=jt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let s=((t=a.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(e==="hack"){if(a.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(a.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=a.get("pipelineOperator").topicToken;if(!$t.includes(i)){let r=$t.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`)}if(i==="#"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",a.get("recordAndTuple")])}\`.`)}else if(e==="smart"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",a.get("recordAndTuple")])}\`.`)}if(a.has("moduleAttributes")){if(a.has("deprecatedImportAssert")||a.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(a.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(a.has("importAssertions")&&a.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!a.has("deprecatedImportAssert")&&a.has("importAttributes")&&a.get("importAttributes").deprecatedAssertSyntax&&a.set("deprecatedImportAssert",{}),a.has("recordAndTuple")){let e=a.get("recordAndTuple").syntaxType;if(e!=null){let s=["hash","bar"];if(!s.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(i=>`'${i}'`).join(", "))}}if(a.has("asyncDoExpressions")&&!a.has("doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(a.has("optionalChainingAssign")&&a.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var is={estree:Zs,jsx:ji,flow:_i,typescript:qi,v8intrinsic:Xi,placeholders:Wi},Yi=Object.keys(is);function Qi(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function Zi(a){let t=Qi();if(a==null)return t;if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let e of Object.keys(t))a[e]!=null&&(t[e]=a[e]);if(t.startLine===1)a.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:a.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((a.startColumn==null||a.startIndex==null)&&a.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var ot=class extends nt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,r);return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,r)),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new Q,i=!0);let{type:r}=this.state;(r===10||C(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),ri(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,this.finishNode(o,"AssignmentExpression")),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=Ce(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,t,{identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(ni(i)&&(this.prodParam.hasIn||!this.match(58))){let r=Ce(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=Ce(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(p.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,pi(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Ws.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,e,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,e),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(hi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,n):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,n)}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Ve(h):Ve(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,s),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,this.finishNode(n,"UpdateExpression")),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;oi(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,r=this.finishNode(n,"UpdateExpression"))}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Ne(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(p.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Li()),n=new Q),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type!=="Super",o,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,e),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,t);else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,s);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i){let r=[],n=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}r.push(this.parseExprListItem(!1,i,e))}return this.state.inFSharpPipelineDirectBody=o,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&de(t,e.innerComments),e.callee.trailingComments&&de(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(p.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,r)}case 139:return this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());R(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(i===137)return this.parseDecimalLiteral(this.state.value);if(C(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(C(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=v(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,e,{token:q(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:q(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Ee(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(v(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(p.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let s=this.isContextual(105);if(s||this.unexpected(),this.expectPlugin(s?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=s?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(this.offsetToSourcePos(s.start),this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(vi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new Q,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,s),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),s=this.parseNoCallExpr();t.callee=s,e&&(s.type==="Import"||s.type==="ImportExpression")&&this.raise(p.ImportCallNotNewExpression,s)}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(v(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,v(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` +`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:l}=s,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,_(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,_(t.key))}else t.value=_(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(D(s))r=this.parseIdentifier(!0);else switch(s){case 135:r=this.parseNumericLiteral(i);break;case 134:r=this.parseStringLiteral(i);break;case 136:r=this.parseBigIntLiteral(i);break;case 139:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:if(s===137){r=this.parseDecimalLiteral(i);break}this.unexpected()}t.key=r,s!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Ee(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=Ee(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=8),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(Zt()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!bi(t))return;if(s&&Pi(t)){this.raise(p.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?i?Xt:Jt:Ht)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,e);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,e),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Ne(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)&&!this.match(11)&&(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,t)}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},$e={kind:1},er={kind:2},tr=/[\uD800-\uDFFF]/u,ze=/in(?:stanceof)?/y;function sr(a,t,e){for(let s=0;s0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,n,{localName:r});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return e===140?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",v(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end)),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(R(t)){if(ze.lastIndex=e,ze.test(this.input)){let s=this.codePointAtPos(ze.lastIndex);if(!G(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===102&&!e)return!1;if(C(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,i):this.raise(p.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc):r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,this.state.startLoc),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return C(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push($e);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(100);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(107)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),f;h?(f="await using",this.recordAwaitIfAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,d),(x||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new Q,n=this.parseExpression(!0,r),o=this.isContextual(102);if(o&&(s&&this.raise(p.ForOfLet,n),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,n)),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:h}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(er),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push($e),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,s,{labelName:e});let r=ai(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,e,{type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();(e==="using"||e==="await using")&&(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(p.UsingDeclarationHasBindingPattern,s.loc.start),this.checkLVal(s,{type:"VariableDeclarator"},e==="var"?5:8201),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ee(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||C(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(ki()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,n)}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let w=this.match(139);if(this.parseClassElementName(c),w){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,r.key),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&C(this.state.type),d=this.parseClassElementName(e),x=f?d.name:null,S=this.isPrivateName(d),N=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",S){this.pushClassPrivateMethod(t,n,!1,!1);return}let w=this.isNonstaticConstructor(r),I=!1;w&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,d),w&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,d),s.hadConstructor=!0,I=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,w,I)}else if(this.isClassProperty())S?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(x==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let w=this.eat(55);u.optional&&this.unexpected(N),c.kind="method";let I=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),I?this.pushClassPrivateMethod(t,n,w,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,r.key),this.pushClassMethod(t,r,w,!0,!1,!1))}else if((x==="get"||x==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),c.kind=x;let w=this.match(139);this.parseClassElementName(r),w?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,r.key),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(x==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let w=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,w)}else this.isLineTerminator()?S?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===132||e===134)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,this.state.startLoc),e===139){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){!s&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key);let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Zt()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(C(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,98);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,x=this.parseExportDefaultExpression();if(d.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e,s;(s=(e=t).specifiers)!=null||(e.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let e=t;e.specifiers||(e.specifiers=[]);let s=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(s)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(C(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(C(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||C(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,o)}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,l=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(p.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:h}=o;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(t,h.name)}else if(o.type==="VariableDeclaration")for(let h of o.declarations)this.checkDeclaration(h.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,t):this.raise(p.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),r=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Mi(t.local):t.exported||(t.exported=_(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),e=tr.exec(t.value);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){let{specifiers:e}=t,s=e.length===1?e[0].type:null;if(t.phase==="source")s!=="ImportDefaultSpecifier"&&this.raise(p.SourcePhaseImportRequiresDefault,e[0].loc.start);else if(t.phase==="defer")s!=="ImportNamespaceSpecifier"&&this.raise(p.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var i;s!=="ImportDefaultSpecifier"&&this.raise(p.ImportReflectionNotBinding,e[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(p.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,s.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),s==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(D(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return C(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{type:e},s),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),e.add(i),this.match(134)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,s.key),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(134))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;var s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():e=this.parseImportAttributes(),s=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(p.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(D(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(134),r=this.isContextual(130);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,t,{importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=_(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},ve=class extends ht{constructor(t,e,s){t=Zi(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=s,this.filename=t.sourceFilename,this.startIndex=t.startIndex}getScopeHandler(){return fe}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function ir(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=ce(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",ce(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",ce(t,a).parse()}catch{}throw s}}else return ce(t,a).parse()}function rr(a,t){let e=ce(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function ar(a){let t={};for(let e of Object.keys(a))t[e]=F(a[e]);return t}var nr=ar(ti);function ce(a,t){let e=ve,s=new Map;if(a!=null&&a.plugins){for(let i of a.plugins){let r,n;typeof i=="string"?r=i:[r,n]=i,s.has(r)||s.set(r,n||{})}Gi(s),e=or(s)}return new e(a,t,s)}var zt=new Map;function or(a){let t=[];for(let i of Yi)a.has(i)&&t.push(i);let e=t.join("|"),s=zt.get(e);if(!s){s=ve;for(let i of t)s=is[i](s);zt.set(e,s)}return s}me.parse=ir;me.parseExpression=rr;me.tokTypes=nr});var Jr={};zs(Jr,{parsers:()=>Hr});var Re=It(gt(),1);function Le(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},St=Tr;function br(a){return Array.isArray(a)&&a.length>0}var Pe=br;function D(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(D(e),t):t}function B(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function Ar(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ys=Ar;var Sr=ys(["Block","CommentBlock","MultiLine"]),ge=Sr;function wr(a){let t=`*${a.value}*`.split(` -`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var wt=wr;function Cr(a){return ge(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var xs=Cr;var Te=null;function be(a){if(Te!==null&&typeof Te.property){let t=Te;return Te=be.prototype=null,t}return Te=be.prototype=a??Object.create(null),new be}var Er=10;for(let a=0;a<=Er;a++)be();function Ct(a){return be(a)}function Ir(a,t="type"){Ct(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ps=Ir;var gs={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Nr=Ps(gs),Ts=Nr;function Et(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var n;(n=r.leadingComments)!=null&&n.some(xs)&&i.add(D(r))}),a=Be(a,r=>{if(r.type==="ParenthesizedExpression"){let{expression:n}=r;if(n.type==="TypeCastExpression")return n.range=[...r.range],n;let o=D(r);if(!i.has(o))return n.extra={...n.extra,parenthesized:!0},n}})}if(a=Be(a,i=>{var r;switch(i.type){case"LogicalExpression":if(bs(i))return It(i);break;case"VariableDeclaration":{let n=St(!1,i.declarations,-1);n!=null&&n.init&&s[B(n)]!==";"&&(i.range=[D(i),B(n)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let n=D(i);i.name={type:"Identifier",name:i.name,range:[n,n+i.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(e==="meriyah"&&((r=i.exported)==null?void 0:r.type)==="Identifier"){let{exported:n}=i,o=s.slice(D(n),B(n));(o.startsWith('"')||o.startsWith("'"))&&(i.exported={...i.exported,type:"Literal",value:i.exported.name,raw:o})}break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),Pe(a.comments)){let i=St(!1,a.comments,-1);for(let r=a.comments.length-2;r>=0;r--){let n=a.comments[r];B(n)===D(i)&&ge(n)&&ge(i)&&wt(n)&&wt(i)&&(a.comments.splice(r+1,1),n.value+="*//*"+i.value,n.range=[D(n),B(i)]),i=n}}return a.type==="Program"&&(a.range=[0,s.length]),a}function bs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function It(a){return bs(a)?It({type:"LogicalExpression",operator:a.operator,left:It({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),B(a.right.left)]}),right:a.right.right,range:[D(a),B(a)]}):a}var As=kr;function vr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Re=vr;function Lr(a){let{message:t,loc:{line:e,column:s},reasonCode:i}=a,r=a;(i==="MissingPlugin"||i==="MissingOneOfPlugins")&&(t="Unexpected token.",r=void 0);let n=` (${e}:${s})`;return t.endsWith(n)&&(t=t.slice(0,-n.length)),Re(t,{loc:{start:{line:e,column:s+1}},cause:r})}var Ue=Lr;var Dr=(a,t,e,s)=>{if(!(a&&t==null))return t.replaceAll?t.replaceAll(e,s):e.global?t.replace(e,s):t.split(e).join(s)},ie=Dr;var Mr=/\*\/$/,Or=/^\/\*\*?/,Fr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Br=/(^|\s+)\/\/([^\n\r]*)/g,Ss=/^(\r?\n)+/,Rr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ws=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ur=/(\r?\n|^) *\* ?/g,_r=[];function Cs(a){let t=a.match(Fr);return t?t[0].trimStart():""}function Es(a){let t=` -`;a=ie(!1,a.replace(Or,"").replace(Mr,""),Ur,"$1");let e="";for(;e!==a;)e=a,a=ie(!1,a,Rr,`${t}$1 $2${t}`);a=a.replace(Ss,"").trimEnd();let s=Object.create(null),i=ie(!1,a,ws,"").replace(Ss,"").trimEnd(),r;for(;r=ws.exec(a);){let n=ie(!1,r[2],Br,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[..._r,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function jr(a){let t=Fe(a);t&&(a=a.slice(t.length+1));let e=Cs(a),{pragmas:s,comments:i}=Es(e);return{shebang:t,text:a,pragmas:s,comments:i}}function Is(a){let{pragmas:t}=jr(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function $r(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:Is,locStart:D,locEnd:B,...a}}var G=$r;function Vr(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Ns=Vr;function qr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var _e=qr;var re=a=>G(Jr(a)),zr={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks="v8intrinsic",vs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V=(a,t=zr)=>({...t,plugins:[...t.plugins,...a]}),Kr=/@(?:no)?flow\b/u;function Hr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=Fe(a);e&&(a=a.slice(e.length));let s=ds(a,0);return s!==!1&&(a=a.slice(0,s)),Kr.test(a)}function Wr(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Xr.has(r.reasonCode));if(i)throw i;return s}function Jr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&Hr(e,s))return s.parser="babel-flow",Bs.parse(e,s);let i=t;(s.__babelSourceType??Ns(s))==="script"&&(i=i.map(c=>({...c,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...vs,ks]:vs).flatMap(l=>i.map(u=>V([l],u))):n&&(i=i.map(c=>V([ks],c)));let o=a?je.parseExpression:je.parse,h;try{h=ms(i.map(c=>()=>Wr(o,e,c)))}catch({errors:[c]}){throw Ue(c)}return a&&(h=_e(h,{text:e,rootMarker:s.rootMarker})),As(h,{parser:"babel",text:e})}}var Xr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs=[V(["jsx"])],Ls=re({optionsCombinations:Fs}),Ds=re({optionsCombinations:[V(["jsx","typescript"]),V(["typescript"])]}),Ms=re({isExpression:!0,optionsCombinations:[V(["jsx"])]}),Os=re({isExpression:!0,optionsCombinations:[V(["typescript"])]}),Bs=re({optionsCombinations:[V(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),Gr=re({optionsCombinations:Fs.map(a=>V(["estree"],a))}),Rs={babel:Ls,"babel-flow":Bs,"babel-ts":Ds,__js_expression:Ms,__ts_expression:Os,__vue_expression:Ms,__vue_ts_expression:Os,__vue_event_binding:Ls,__vue_ts_event_binding:Ds,__babel_estree:Gr};var Us=vt(At(),1);function _s(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Us.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Ue(r)}if(!t&&Pe(i.comments))throw H(i.comments[0],"Comment");return ae(i),_e(i,{type:"JsonRoot",text:s})}}function H(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Re(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ae(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ae(t);return;case"ObjectExpression":for(let t of a.properties)ae(t);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&ae(a.key),ae(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw H(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw H(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Pe(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)ae(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Nt=_s(),Yr={json:G({parse:Nt,hasPragma(){return!0}}),json5:G(Nt),jsonc:G(Nt),"json-stringify":G({parse:_s({allowComments:!1}),astFormat:"estree-json"})},js=Yr;var Qr={...Rs,...js};return Js(Zr);}); \ No newline at end of file +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var os=lr;function cr(a,t){return t===!1?!1:a.charAt(t)==="/"&&a.charAt(t+1)==="/"?as(a,t):t}var hs=cr;function pr(a,t){let e=null,s=t;for(;s!==e;)e=s,s=rs(a,s),s=ns(a,s),s=hs(a,s),s=os(a,s);return s}var ls=pr;function ur(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var cs=ur;function fr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` +`);return t===-1?a:a.slice(0,t)}var De=fr;var dr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=dr;function mr(a){return Array.isArray(a)&&a.length>0}var ye=mr;function L(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(L(e),t):t}function j(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function yr(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ps=yr;var xr=ps(["Block","CommentBlock","MultiLine"]),xe=xr;function Pr(a){let t=`*${a.value}*`.split(` +`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var bt=Pr;function gr(a){return xe(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var us=gr;var Pe=null;function ge(a){if(Pe!==null&&typeof Pe.property){let t=Pe;return Pe=ge.prototype=null,t}return Pe=ge.prototype=a??Object.create(null),new ge}var Tr=10;for(let a=0;a<=Tr;a++)ge();function At(a){return ge(a)}function br(a,t="type"){At(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var fs=br;var ds={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Ar=fs(ds),ms=Ar;function St(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var n;(n=r.leadingComments)!=null&&n.some(us)&&i.add(L(r))}),a=Me(a,r=>{if(r.type==="ParenthesizedExpression"){let{expression:n}=r;if(n.type==="TypeCastExpression")return n.range=[...r.range],n;let o=L(r);if(!i.has(o))return n.extra={...n.extra,parenthesized:!0},n}})}if(a=Me(a,i=>{switch(i.type){case"LogicalExpression":if(ys(i))return wt(i);break;case"VariableDeclaration":{let r=Tt(!1,i.declarations,-1);r!=null&&r.init&&s[j(r)]!==";"&&(i.range=[L(i),j(r)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let r=L(i);i.name={type:"Identifier",name:i.name,range:[r,r+i.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),ye(a.comments)){let i=Tt(!1,a.comments,-1);for(let r=a.comments.length-2;r>=0;r--){let n=a.comments[r];j(n)===L(i)&&xe(n)&&xe(i)&&bt(n)&&bt(i)&&(a.comments.splice(r+1,1),n.value+="*//*"+i.value,n.range=[L(n),j(i)]),i=n}}return a.type==="Program"&&(a.range=[0,s.length]),a}function ys(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function wt(a){return ys(a)?wt({type:"LogicalExpression",operator:a.operator,left:wt({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[L(a.left),j(a.right.left)]}),right:a.right.right,range:[L(a),j(a)]}):a}var xs=Sr;function wr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Oe=wr;function Cr(a){let{message:t,loc:{line:e,column:s},reasonCode:i}=a,r=a;(i==="MissingPlugin"||i==="MissingOneOfPlugins")&&(t="Unexpected token.",r=void 0);let n=` (${e}:${s})`;return t.endsWith(n)&&(t=t.slice(0,-n.length)),Oe(t,{loc:{start:{line:e,column:s+1}},cause:r})}var Fe=Cr;var Er=(a,t,e,s)=>{if(!(a&&t==null))return t.replaceAll?t.replaceAll(e,s):e.global?t.replace(e,s):t.split(e).join(s)},se=Er;var Ir=/\*\/$/,Nr=/^\/\*\*?/,kr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,vr=/(^|\s+)\/\/([^\n\r]*)/g,Ps=/^(\r?\n)+/,Lr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,gs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Dr=/(\r?\n|^) *\* ?/g,Mr=[];function Ts(a){let t=a.match(kr);return t?t[0].trimStart():""}function bs(a){let t=` +`;a=se(!1,a.replace(Nr,"").replace(Ir,""),Dr,"$1");let e="";for(;e!==a;)e=a,a=se(!1,a,Lr,`${t}$1 $2${t}`);a=a.replace(Ps,"").trimEnd();let s=Object.create(null),i=se(!1,a,gs,"").replace(Ps,"").trimEnd(),r;for(;r=gs.exec(a);){let n=se(!1,r[2],vr,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...Mr,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function Or(a){let t=De(a);t&&(a=a.slice(t.length+1));let e=Ts(a),{pragmas:s,comments:i}=bs(e);return{shebang:t,text:a,pragmas:s,comments:i}}function As(a){let{pragmas:t}=Or(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Fr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:As,locStart:L,locEnd:j,...a}}var W=Fr;function Br(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ss=Br;function Rr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Be=Rr;var ie=a=>W(zr(a)),Ur={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ws="v8intrinsic",Cs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$=(a,t=Ur)=>({...t,plugins:[...t.plugins,...a]}),_r=/@(?:no)?flow\b/u;function jr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=De(a);e&&(a=a.slice(e.length));let s=ls(a,0);return s!==!1&&(a=a.slice(0,s)),_r.test(a)}function $r(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Vr.has(r.reasonCode));if(i)throw i;return s}function zr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&jr(e,s))return s.parser="babel-flow",Ls.parse(e,s);let i=t;(s.__babelSourceType??Ss(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...Cs,ws]:Cs).flatMap(c=>i.map(u=>$([c],u))):n&&(i=i.map(l=>$([ws],l)));let o=a?Re.parseExpression:Re.parse,h;try{h=cs(i.map(l=>()=>$r(o,e,l)))}catch({errors:[l]}){throw Fe(l)}return a&&(h=Be(h,{text:e,rootMarker:s.rootMarker})),xs(h,{parser:"babel",text:e})}}var Vr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),vs=[$(["jsx"])],Es=ie({optionsCombinations:vs}),Is=ie({optionsCombinations:[$(["jsx","typescript"]),$(["typescript"])]}),Ns=ie({isExpression:!0,optionsCombinations:[$(["jsx"])]}),ks=ie({isExpression:!0,optionsCombinations:[$(["typescript"])]}),Ls=ie({optionsCombinations:[$(["jsx",["flow",{all:!0}],"flowComments"])]}),qr=ie({optionsCombinations:vs.map(a=>$(["estree"],a))}),Ds={babel:Es,"babel-flow":Ls,"babel-ts":Is,__js_expression:Ns,__ts_expression:ks,__vue_expression:Ns,__vue_ts_expression:ks,__vue_event_binding:Es,__vue_ts_event_binding:Is,__babel_estree:qr};var Ms=It(gt(),1);function Os(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Ms.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Fe(r)}if(!t&&ye(i.comments))throw K(i.comments[0],"Comment");return re(i),Be(i,{type:"JsonRoot",text:s})}}function K(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Oe(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function re(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&re(t);return;case"ObjectExpression":for(let t of a.properties)re(t);return;case"ObjectProperty":if(a.computed)throw K(a.key,"Computed key");if(a.shorthand)throw K(a.key,"Shorthand property");a.key.type!=="Identifier"&&re(a.key),re(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw K(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw K(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw K(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(ye(a.expressions))throw K(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)re(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw K(a,`'${a.type}'`)}}var Ct=Os(),Kr={json:W({parse:Ct,hasPragma(){return!0}}),json5:W(Ct),jsonc:W(Ct),"json-stringify":W({parse:Os({allowComments:!1}),astFormat:"estree-json"})},Fs=Kr;var Hr={...Ds,...Fs};return Vs(Jr);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/babel.mjs b/node_modules/prettier/plugins/babel.mjs index 34e9747e..fad929e3 100644 --- a/node_modules/prettier/plugins/babel.mjs +++ b/node_modules/prettier/plugins/babel.mjs @@ -1,15 +1,15 @@ -var $s=Object.create;var je=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var qs=Object.getOwnPropertyNames;var zs=Object.getPrototypeOf,Ks=Object.prototype.hasOwnProperty;var Hs=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),Ws=(a,t)=>{for(var e in t)je(a,e,{get:t[e],enumerable:!0})},Js=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qs(t))!Ks.call(a,i)&&i!==e&&je(a,i,{get:()=>t[i],enumerable:!(s=Vs(t,i))||s.enumerable});return a};var vt=(a,t,e)=>(e=a!=null?$s(zs(a)):{},Js(t||!a||!a.__esModule?je(e,"default",{value:a,enumerable:!0}):e,a));var At=Hs(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});function Ht(a,t){if(a==null)return{};var e={},s=Object.keys(a),i,r;for(r=0;r=0)&&(e[i]=a[i]);return e}var F=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ee=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new F(e,s+t,i+t)}var Lt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Xs={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Lt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Lt}},Dt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Ce=a=>a.type==="UpdateExpression"?Dt.UpdateExpression[`${a.prefix}`]:Dt[a.type],Gs={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:a})=>`'import.${a}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. -- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:a})=>`\`import()\` requires exactly ${a===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Ce(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Ce(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${Ce(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Ys={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Qs=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Zs={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Ce({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ei=["toMessage"],ti=["message"];function Mt(a,t,e){Object.defineProperty(a,t,{enumerable:!1,configurable:!0,value:e})}function si(a){let{toMessage:t}=a,e=Ht(a,ei);return function s(i,r){let n=new SyntaxError;return Object.assign(n,e,{loc:i,pos:i.index}),"missingPlugin"in r&&Object.assign(n,{missingPlugin:r.missingPlugin}),Mt(n,"clone",function(h={}){var c;let{line:l,column:u,index:f}=(c=h.loc)!=null?c:i;return s(new F(l,u,f),Object.assign({},r,h.details))}),Mt(n,"details",r),Object.defineProperty(n,"message",{configurable:!0,get(){let o=`${t(r)} (${i.line}:${i.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0})}}),n}}function j(a,t){if(Array.isArray(a))return s=>j(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=Ht(r,ti),h=typeof n=="string"?()=>n:n;e[s]=si(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},j(Xs),j(Gs),j(Ys),j`pipelineOperator`(Zs)),{defineProperty:ii}=Object,Ot=(a,t)=>{a&&ii(a,t,{enumerable:!1,value:a[t]})};function oe(a){return Ot(a.loc.start,"index"),Ot(a.loc.end,"index"),a}var ri=a=>class extends a{parse(){let e=oe(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(oe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let c=this.startNode();return c.kind=e.kind,c=super.parseMethod(c,s,i,r,n,o,h),c.type="FunctionExpression",delete c.kind,e.value=c,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(p.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(p.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var r,n;i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(n=i.arguments[1])!=null?n:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,s,i){return oe(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),oe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),oe(e)}},X=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},C={brace:new X("{"),j_oTag:new X("...",!0)};C.template=new X("`",!0);var b=!0,m=!0,$e=!0,he=!0,q=!0,ai=!0,ke=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},ut=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return ut.set(a,e),e}function k(a,t){return P(a,{beforeExpr:b,binop:t})}var ue=-1,U=[],ft=[],dt=[],mt=[],yt=[],xt=[];function P(a,t={}){var e,s,i,r;return++ue,ft.push(a),dt.push((e=t.binop)!=null?e:-1),mt.push((s=t.beforeExpr)!=null?s:!1),yt.push((i=t.startsExpr)!=null?i:!1),xt.push((r=t.prefix)!=null?r:!1),U.push(new ke(a,t)),ue}function T(a,t={}){var e,s,i,r;return++ue,ut.set(a,ue),ft.push(a),dt.push((e=t.binop)!=null?e:-1),mt.push((s=t.beforeExpr)!=null?s:!1),yt.push((i=t.startsExpr)!=null?i:!1),xt.push((r=t.prefix)!=null?r:!1),U.push(new ke("name",t)),ue}var ni={bracketL:P("[",{beforeExpr:b,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:b,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:b,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:b,startsExpr:m}),braceBarL:P("{|",{beforeExpr:b,startsExpr:m}),braceHashL:P("#{",{beforeExpr:b,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:b,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:b}),semi:P(";",{beforeExpr:b}),colon:P(":",{beforeExpr:b}),doubleColon:P("::",{beforeExpr:b}),dot:P("."),question:P("?",{beforeExpr:b}),questionDot:P("?."),arrow:P("=>",{beforeExpr:b}),template:P("template"),ellipsis:P("...",{beforeExpr:b}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:b,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:b,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:b,isAssign:he}),assign:P("_=",{beforeExpr:b,isAssign:he}),slashAssign:P("_=",{beforeExpr:b,isAssign:he}),xorAssign:P("_=",{beforeExpr:b,isAssign:he}),moduloAssign:P("_=",{beforeExpr:b,isAssign:he}),incDec:P("++/--",{prefix:q,postfix:ai,startsExpr:m}),bang:P("!",{beforeExpr:b,prefix:q,startsExpr:m}),tilde:P("~",{beforeExpr:b,prefix:q,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("/<=/>=",7),gt:k("/<=/>=",7),relational:k("/<=/>=",7),bitShift:k("<>/>>>",8),bitShiftL:k("<>/>>>",8),bitShiftR:k("<>/>>>",8),plusMin:P("+/-",{beforeExpr:b,binop:9,prefix:q,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:k("/",10),exponent:P("**",{beforeExpr:b,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:b,binop:7}),_instanceof:A("instanceof",{beforeExpr:b,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:b}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:b}),_else:A("else",{beforeExpr:b}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:b}),_switch:A("switch"),_throw:A("throw",{beforeExpr:b,prefix:q,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:b,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:b}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:b,prefix:q,startsExpr:m}),_void:A("void",{beforeExpr:b,prefix:q,startsExpr:m}),_delete:A("delete",{beforeExpr:b,prefix:q,startsExpr:m}),_do:A("do",{isLoop:$e,beforeExpr:b}),_for:A("for",{isLoop:$e}),_while:A("while",{isLoop:$e}),_as:T("as",{startsExpr:m}),_assert:T("assert",{startsExpr:m}),_async:T("async",{startsExpr:m}),_await:T("await",{startsExpr:m}),_defer:T("defer",{startsExpr:m}),_from:T("from",{startsExpr:m}),_get:T("get",{startsExpr:m}),_let:T("let",{startsExpr:m}),_meta:T("meta",{startsExpr:m}),_of:T("of",{startsExpr:m}),_sent:T("sent",{startsExpr:m}),_set:T("set",{startsExpr:m}),_source:T("source",{startsExpr:m}),_static:T("static",{startsExpr:m}),_using:T("using",{startsExpr:m}),_yield:T("yield",{startsExpr:m}),_asserts:T("asserts",{startsExpr:m}),_checks:T("checks",{startsExpr:m}),_exports:T("exports",{startsExpr:m}),_global:T("global",{startsExpr:m}),_implements:T("implements",{startsExpr:m}),_intrinsic:T("intrinsic",{startsExpr:m}),_infer:T("infer",{startsExpr:m}),_is:T("is",{startsExpr:m}),_mixins:T("mixins",{startsExpr:m}),_proto:T("proto",{startsExpr:m}),_require:T("require",{startsExpr:m}),_satisfies:T("satisfies",{startsExpr:m}),_keyof:T("keyof",{startsExpr:m}),_readonly:T("readonly",{startsExpr:m}),_unique:T("unique",{startsExpr:m}),_abstract:T("abstract",{startsExpr:m}),_declare:T("declare",{startsExpr:m}),_enum:T("enum",{startsExpr:m}),_module:T("module",{startsExpr:m}),_namespace:T("namespace",{startsExpr:m}),_interface:T("interface",{startsExpr:m}),_type:T("type",{startsExpr:m}),_opaque:T("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function w(a){return a>=93&&a<=132}function oi(a){return a<=92}function M(a){return a>=58&&a<=132}function Wt(a){return a>=58&&a<=136}function hi(a){return mt[a]}function He(a){return yt[a]}function li(a){return a>=29&&a<=33}function Ft(a){return a>=129&&a<=131}function ci(a){return a>=90&&a<=92}function Pt(a){return a>=58&&a<=92}function pi(a){return a>=39&&a<=59}function ui(a){return a===34}function fi(a){return xt[a]}function di(a){return a>=121&&a<=123}function mi(a){return a>=124&&a<=130}function K(a){return ft[a]}function Ee(a){return dt[a]}function yi(a){return a===57}function ve(a){return a>=24&&a<=25}function R(a){return U[a]}U[8].updateContext=a=>{a.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=a=>{a.push(C.brace)},U[22].updateContext=a=>{a[a.length-1]===C.template?a.pop():a.push(C.template)},U[142].updateContext=a=>{a.push(C.j_expr,C.j_oTag)};var gt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Jt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",xi=new RegExp("["+gt+"]"),Pi=new RegExp("["+gt+Jt+"]");gt=Jt=null;var Xt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],gi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function We(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function _(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&xi.test(String.fromCharCode(a)):We(a,Xt)}function Q(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&Pi.test(String.fromCharCode(a)):We(a,Xt)||We(a,gi)}var Tt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Ti=new Set(Tt.keyword),bi=new Set(Tt.strict),Ai=new Set(Tt.strictBind);function Gt(a,t){return t&&a==="await"||a==="enum"}function Yt(a,t){return Gt(a,t)||bi.has(a)}function Qt(a){return Ai.has(a)}function Zt(a,t){return Yt(a,t)||Qt(a)}function Si(a){return Ti.has(a)}function wi(a,t,e){return a===64&&t===64&&_(e)}var Ci=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ei(a){return Ci.has(a)}var de=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},me=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new de(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},Je=class extends de{constructor(...t){super(...t),this.declareFunctions=new Set}},Xe=class extends me{createScope(t){return new Je(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Ge=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function es(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Ii(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function ye(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function le(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?ye(a,e.comments):es(s,e.comments)}var Ye=class extends Ge{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&es(t.leadingNode,e),t.trailingNode!==null&&Ii(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":le(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":le(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":le(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":le(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":le(s,s.specifiers,t);break;default:ye(s,e)}else ye(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startLine:s,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new F(s,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}curPosition(){return new F(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new a;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},ki=function(t){return t>=48&&t<=57},Rt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},we={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ut(a,t,e,s,i,r){let n=e,o=s,h=i,c="",l=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),c+=t.slice(u,e);break}let d=t.charCodeAt(e);if(vi(a,d,t,e)){c+=t.slice(u,e);break}if(d===92){c+=t.slice(u,e);let y=Li(t,e,s,i,a==="template",r);y.ch===null&&!l?l={pos:e,lineStart:s,curLine:i}:c+=y.ch,{pos:e,lineStart:s,curLine:i}=y,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(c+=t.slice(u,e)+` -`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:c,firstInvalidLoc:l,lineStart:s,curLine:i,containsInvalid:!!l}}function vi(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Li(a,t,e,s,i,r){let n=!i;t++;let o=c=>({pos:t,ch:c,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` -`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=Ze(a,t,e,s,2,!1,n,r),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=is(a,t,e,s,n,r),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let c=t-1,u=/^[0-7]+/.exec(a.slice(c,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(c,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ze(a,t,e,s,i,r,n,o){let h=t,c;return{n:c,pos:t}=ss(a,t,e,s,16,i,r,!1,o,!n),c===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:c,pos:t}}function ss(a,t,e,s,i,r,n,o,h,c){let l=t,u=i===16?Rt.hex:Rt.decBinOct,f=i===16?we.hex:i===10?we.dec:i===8?we.oct:we.bin,d=!1,y=0;for(let E=0,L=r??1/0;E=97?I=S-97+10:S>=65?I=S-65+10:ki(S)?I=S-48:I=1/0,I>=i){if(I<=9&&c)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,y=y*i+I}return t===l||r!=null&&t-l!==r||d?{n:null,pos:t}:{n:y,pos:t}}function is(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ze(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ze(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function ce(a,t,e){return new F(e,a-t,a)}var Di=new Set([103,109,115,105,121,117,100,118]),O=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new ee(t.startLoc,t.endLoc)}},et=class extends Ye{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,ce(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,ce(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,ce(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,ce(s,i,r))}}),this.state=new Qe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ve.lastIndex=t,Ve.test(this.input)?Ve.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Ie.lastIndex=t,Ie.test(this.input)?Ie.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,Se.lastIndex=s+2;Se.test(this.input)&&Se.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Se.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new ee(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:t,end:s,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition());if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else _(e)?(++this.state.pos,this.finishToken(138,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!fe(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(_(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,v(t,1));let c=this.input.charCodeAt(r);if(fe(c))throw this.raise(p.UnterminatedRegExp,v(t,1));if(s)s=!1;else{if(c===91)i=!0;else if(c===93&&i)i=!1;else if(c===47&&!i)break;s=c===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>v(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(c){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,s),!this.state.strict){let y=d.indexOf("_");y>0&&this.raise(p.ZeroDigitNumericSeparator,v(s,y))}h=c&&!/[89]/.test(d)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!h&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!h&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,s),i=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||c)&&this.raise(p.InvalidBigIntLiteral,s),++this.state.pos,r=!0),l===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||c)&&this.raise(p.InvalidDecimal,s),++this.state.pos,n=!0),_(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,this.state.curPosition());let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(135,u);return}if(n){this.finishToken(136,u);return}let f=h?parseInt(u,8):parseFloat(u);this.finishToken(134,f)}readCodePoint(t){let{code:e,pos:s}=is(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ut(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(133,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ut("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new F(s.curLine,s.pos-s.lineStart,s.pos)),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,e):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let h=n[o];if(h.loc.index===r)return n[o]=t(i,s);if(h.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,ce(e,s,i))}}},tt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},st=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new tt)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let c=h&4,l=e&4,u=h&3,f=e&3;o=u===f||c!==l,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,s,{identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,e,{identifierName:t})}},te=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Le=class extends te{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},it=class{constructor(t){this.parser=void 0,this.stack=[new te],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let s=e.loc.start,{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,e){let{stack:s}=this,i=s[s.length-1],r=e.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError(t){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,t),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,i);let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function Mi(){return new te(3)}function Oi(){return new Le(1)}function Fi(){return new Le(2)}function rs(){return new te}var rt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ne(a,t){return(a?2:0)|(t?1:0)}var at=class extends et{addExtra(t,e,s,i=!0){if(!t)return;let r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(Q(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ts.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Bt.lastIndex=this.state.end,Bt.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,s),i!=null&&this.raise(p.DuplicateProto,i),r!=null&&this.raise(p.UnexpectedPrivateField,r),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Wt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new rt;let h=this.classScope;this.classScope=new st(this);let c=this.expressionScope;return this.expressionScope=new it(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=c}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},Z=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},se=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new ee(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},bt=se.prototype;bt.__clone=function(){let a=new se(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function _i(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function _t(a){return a.importKind==="type"||a.importKind==="typeof"}var ji={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function $i(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Xe}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,s){e!==133&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Vi.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{_i(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,o),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:ji[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){Ui.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let c,l,u=!1;for(s&&this.match(6)?(this.expect(6),c=9,l=!0):(this.expect(5),c=8,l=!1),h.exact=l;!this.match(c);){let d=!1,y=null,E=null,L=this.startNode();if(r&&this.isContextual(118)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),y=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),d=!0)}let S=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(S&&this.unexpected(S.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(L,d))):h.indexers.push(this.flowParseObjectTypeIndexer(L,d,S));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),S&&this.unexpected(S.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(L,d));else{let I="init";if(this.isContextual(99)||this.isContextual(104)){let ne=this.lookahead();Wt(ne.type)&&(I=this.state.value,this.next())}let Ae=this.flowParseObjectTypeProperty(L,d,y,S,I,i,n??!l);Ae===null?(u=!0,E=this.state.lastTokStartLoc):h.properties.push(Ae)}this.flowObjectTypeSemicolon(),E&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,E)}this.expect(c),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,this.state.lastTokStartLoc):this.raise(g.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(g.InexactVariance,r),null):(o||this.raise(g.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let c=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=c,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(M(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||w(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(w(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return Ft(e)||this.shouldParseEnums()&&e===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return Ft(e)||this.shouldParseEnums()&&e===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:c}=this.tryParseConditionalConsequent(),[l,u]=this.getArrowLikeExpressions(h);if(c||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,r.startLoc),c&&l.length===1&&(this.state=r,f.push(l[0].start),this.state.noArrowAt=f,{consequent:h,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):$i(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,r):s.value&&this.raise(g.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):wi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,s,i,r,n,o,h);return c&&((l.value||l).typeParameters=c),l}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,e),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:c}=this.state,l=c[c.length-1];(l===C.j_oTag||l===C.j_expr)&&c.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let c,l=this.tryParse(f=>{var d;c=this.flowParseTypeParameterDeclaration();let y=this.forwardNoArrowParamsConversionAt(c,()=>{let L=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(L,c),L});(d=y.extra)!=null&&d.parenthesized&&f();let E=this.maybeUnwrapTypeCastExpression(y);return E.type!=="ArrowFunctionExpression"&&f(),E.typeParameters=c,this.resetStartLocationFromNode(E,c),y},r),u=null;if(l.node&&this.maybeUnwrapTypeCastExpression(l.node).type==="ArrowFunctionExpression"){if(!l.error&&!l.aborted)return l.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),l.node;u=l.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=l.failState,u;throw(h=n)!=null&&h.thrown?n.error:l.thrown?l.error:this.raise(g.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(e.start)?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(e.start))){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(g.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(g.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 133:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:c}=this.flowEnumMemberRaw(),l=h.name;if(l==="")continue;/^[a-z]/.test(l)&&this.raise(g.EnumInvalidMemberName,h,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),i.has(l)&&this.raise(g.EnumDuplicateMemberName,h,{memberName:l,enumName:e}),i.add(l);let u={enumName:e,explicitType:s,memberName:l};switch(o.id=h,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),o.init=c.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),o.init=c.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),o.init=c.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!w(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let c=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let l=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!l&&!u&&!f&&!d)return c();if(!l&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&l>=d){for(let y of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:i,memberName:y.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!l&&!f&&u>=d){for(let y of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:i,memberName:y.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,r,{enumName:i}),c()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},W=j`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function z(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function Y(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Y(a.object)+"."+Y(a.property);throw new Error("Node had unexpected type: "+a.type)}var zi=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(141,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:fe(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` +var Bs=Object.create;var Re=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var Us=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty;var $s=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zs=(a,t)=>{for(var e in t)Re(a,e,{get:t[e],enumerable:!0})},Vs=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Us(t))!js.call(a,i)&&i!==e&&Re(a,i,{get:()=>t[i],enumerable:!(s=Rs(t,i))||s.enumerable});return a};var It=(a,t,e)=>(e=a!=null?Bs(_s(a)):{},Vs(t||!a||!a.__esModule?Re(e,"default",{value:a,enumerable:!0}):e,a));var gt=$s(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});function qs(a,t){if(a==null)return{};var e={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(t.includes(s))continue;e[s]=a[s]}return e}var O=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},Z=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new O(e,s+t,i+t)}var Nt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Ks={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Nt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Nt}},kt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Se=a=>a.type==="UpdateExpression"?kt.UpdateExpression[`${a.prefix}`]:kt[a.type],Hs={AccessorIsGenerator:({kind:a})=>`A ${a}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:a})=>`Missing initializer in ${a} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:a})=>`\`${a}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:a})=>`'import.${a}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:a,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:a})=>`Unsyntactic ${a==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding. +- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Se(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Se(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${Se(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:a})=>`Label '${a}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:a})=>`Unexpected keyword '${a}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:a})=>`Unexpected reserved word '${a}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:a,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:a,onlyValidPropertyName:t})=>`The only valid meta property for ${a} is ${a}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:a})=>`Identifier '${a}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Js={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:a})=>`Assigning to '${a}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:a})=>`Binding '${a}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Ws=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Xs={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:a})=>`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:a})=>`Hack-style pipe body cannot be an unparenthesized ${Se({type:a})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Gs=["message"];function vt(a,t,e){Object.defineProperty(a,t,{enumerable:!1,configurable:!0,value:e})}function Ys({toMessage:a,code:t,reasonCode:e,syntaxPlugin:s}){let i=e==="MissingPlugin"||e==="MissingOneOfPlugins";{let r={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};r[e]&&(e=r[e])}return function r(n,o){let h=new SyntaxError;return h.code=t,h.reasonCode=e,h.loc=n,h.pos=n.index,h.syntaxPlugin=s,i&&(h.missingPlugin=o.missingPlugin),vt(h,"clone",function(c={}){var u;let{line:f,column:d,index:x}=(u=c.loc)!=null?u:n;return r(new O(f,d,x),Object.assign({},o,c.details))}),vt(h,"details",o),Object.defineProperty(h,"message",{configurable:!0,get(){let l=`${a(o)} (${n.line}:${n.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),h}}function U(a,t){if(Array.isArray(a))return s=>U(s,a[0]);let e={};for(let s of Object.keys(a)){let i=a[s],r=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=r,o=qs(r,Gs),h=typeof n=="string"?()=>n:n;e[s]=Ys(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))}return e}var p=Object.assign({},U(Ks),U(Hs),U(Js),U`pipelineOperator`(Xs)),{defineProperty:Qs}=Object,Lt=(a,t)=>{a&&Qs(a,t,{enumerable:!1,value:a[t]})};function ne(a){return Lt(a.loc.start,"index"),Lt(a.loc.end,"index"),a}var Zs=a=>class extends a{parse(){let e=ne(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(ne)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,n){super.parseBlockBody(e,s,i,r,n);let o=e.directives.map(h=>this.directiveToStmt(h));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,n,o,h=!1){let l=this.startNode();return l.kind=e.kind,l=super.parseMethod(l,s,i,r,n,o,h),l.type="FunctionExpression",delete l.kind,e.value=l,o==="ClassPrivateMethod"&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}parseObjectMethod(e,s,i,r,n){let o=super.parseObjectMethod(e,s,i,r,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,s,i,r){let n=super.parseObjectProperty(e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(p.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(p.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){var r,n;i.type="ImportExpression",i.source=i.arguments[0],i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(n=i.arguments[1])!=null?n:null,delete i.arguments,delete i.callee}return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=r;(o==null?void 0:o.type)==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}break}return r}parseSubscript(e,s,i,r){let n=super.parseSubscript(e,s,i,r);if(r.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),r.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,s,i){return ne(super.finishNodeAt(e,s,i))}resetStartLocation(e,s){super.resetStartLocation(e,s),ne(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),ne(e)}},J=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},E={brace:new J("{"),j_oTag:new J("...",!0)};E.template=new J("`",!0);var b=!0,m=!0,Ue=!0,oe=!0,z=!0,ei=!0,Ee=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},lt=new Map;function A(a,t={}){t.keyword=a;let e=P(a,t);return lt.set(a,e),e}function k(a,t){return P(a,{beforeExpr:b,binop:t})}var pe=-1,B=[],ct=[],pt=[],ut=[],ft=[],dt=[];function P(a,t={}){var e,s,i,r;return++pe,ct.push(a),pt.push((e=t.binop)!=null?e:-1),ut.push((s=t.beforeExpr)!=null?s:!1),ft.push((i=t.startsExpr)!=null?i:!1),dt.push((r=t.prefix)!=null?r:!1),B.push(new Ee(a,t)),pe}function T(a,t={}){var e,s,i,r;return++pe,lt.set(a,pe),ct.push(a),pt.push((e=t.binop)!=null?e:-1),ut.push((s=t.beforeExpr)!=null?s:!1),ft.push((i=t.startsExpr)!=null?i:!1),dt.push((r=t.prefix)!=null?r:!1),B.push(new Ee("name",t)),pe}var ti={bracketL:P("[",{beforeExpr:b,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:b,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:b,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:b,startsExpr:m}),braceBarL:P("{|",{beforeExpr:b,startsExpr:m}),braceHashL:P("#{",{beforeExpr:b,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:b,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:b}),semi:P(";",{beforeExpr:b}),colon:P(":",{beforeExpr:b}),doubleColon:P("::",{beforeExpr:b}),dot:P("."),question:P("?",{beforeExpr:b}),questionDot:P("?."),arrow:P("=>",{beforeExpr:b}),template:P("template"),ellipsis:P("...",{beforeExpr:b}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:b,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:b,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:b,isAssign:oe}),assign:P("_=",{beforeExpr:b,isAssign:oe}),slashAssign:P("_=",{beforeExpr:b,isAssign:oe}),xorAssign:P("_=",{beforeExpr:b,isAssign:oe}),moduloAssign:P("_=",{beforeExpr:b,isAssign:oe}),incDec:P("++/--",{prefix:z,postfix:ei,startsExpr:m}),bang:P("!",{beforeExpr:b,prefix:z,startsExpr:m}),tilde:P("~",{beforeExpr:b,prefix:z,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("/<=/>=",7),gt:k("/<=/>=",7),relational:k("/<=/>=",7),bitShift:k("<>/>>>",8),bitShiftL:k("<>/>>>",8),bitShiftR:k("<>/>>>",8),plusMin:P("+/-",{beforeExpr:b,binop:9,prefix:z,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:k("/",10),exponent:P("**",{beforeExpr:b,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:b,binop:7}),_instanceof:A("instanceof",{beforeExpr:b,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:b}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:b}),_else:A("else",{beforeExpr:b}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:b}),_switch:A("switch"),_throw:A("throw",{beforeExpr:b,prefix:z,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:b,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:b}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:b,prefix:z,startsExpr:m}),_void:A("void",{beforeExpr:b,prefix:z,startsExpr:m}),_delete:A("delete",{beforeExpr:b,prefix:z,startsExpr:m}),_do:A("do",{isLoop:Ue,beforeExpr:b}),_for:A("for",{isLoop:Ue}),_while:A("while",{isLoop:Ue}),_as:T("as",{startsExpr:m}),_assert:T("assert",{startsExpr:m}),_async:T("async",{startsExpr:m}),_await:T("await",{startsExpr:m}),_defer:T("defer",{startsExpr:m}),_from:T("from",{startsExpr:m}),_get:T("get",{startsExpr:m}),_let:T("let",{startsExpr:m}),_meta:T("meta",{startsExpr:m}),_of:T("of",{startsExpr:m}),_sent:T("sent",{startsExpr:m}),_set:T("set",{startsExpr:m}),_source:T("source",{startsExpr:m}),_static:T("static",{startsExpr:m}),_using:T("using",{startsExpr:m}),_yield:T("yield",{startsExpr:m}),_asserts:T("asserts",{startsExpr:m}),_checks:T("checks",{startsExpr:m}),_exports:T("exports",{startsExpr:m}),_global:T("global",{startsExpr:m}),_implements:T("implements",{startsExpr:m}),_intrinsic:T("intrinsic",{startsExpr:m}),_infer:T("infer",{startsExpr:m}),_is:T("is",{startsExpr:m}),_mixins:T("mixins",{startsExpr:m}),_proto:T("proto",{startsExpr:m}),_require:T("require",{startsExpr:m}),_satisfies:T("satisfies",{startsExpr:m}),_keyof:T("keyof",{startsExpr:m}),_readonly:T("readonly",{startsExpr:m}),_unique:T("unique",{startsExpr:m}),_abstract:T("abstract",{startsExpr:m}),_declare:T("declare",{startsExpr:m}),_enum:T("enum",{startsExpr:m}),_module:T("module",{startsExpr:m}),_namespace:T("namespace",{startsExpr:m}),_interface:T("interface",{startsExpr:m}),_type:T("type",{startsExpr:m}),_opaque:T("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),placeholder:P("%%",{startsExpr:!0}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd")};function C(a){return a>=93&&a<=133}function si(a){return a<=92}function D(a){return a>=58&&a<=133}function Vt(a){return a>=58&&a<=137}function ii(a){return ut[a]}function Ve(a){return ft[a]}function ri(a){return a>=29&&a<=33}function Dt(a){return a>=129&&a<=131}function ai(a){return a>=90&&a<=92}function mt(a){return a>=58&&a<=92}function ni(a){return a>=39&&a<=59}function oi(a){return a===34}function hi(a){return dt[a]}function li(a){return a>=121&&a<=123}function ci(a){return a>=124&&a<=130}function q(a){return ct[a]}function we(a){return pt[a]}function pi(a){return a===57}function Ie(a){return a>=24&&a<=25}function F(a){return B[a]}B[8].updateContext=a=>{a.pop()},B[5].updateContext=B[7].updateContext=B[23].updateContext=a=>{a.push(E.brace)},B[22].updateContext=a=>{a[a.length-1]===E.template?a.pop():a.push(E.template)},B[143].updateContext=a=>{a.push(E.j_expr,E.j_oTag)};var yt="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",qt="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ui=new RegExp("["+yt+"]"),fi=new RegExp("["+yt+qt+"]");yt=qt=null;var Kt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],di=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function qe(a,t){let e=65536;for(let s=0,i=t.length;sa)return!1;if(e+=t[s+1],e>=a)return!0}return!1}function R(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&ui.test(String.fromCharCode(a)):qe(a,Kt)}function G(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&fi.test(String.fromCharCode(a)):qe(a,Kt)||qe(a,di)}var xt={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},mi=new Set(xt.keyword),yi=new Set(xt.strict),xi=new Set(xt.strictBind);function Ht(a,t){return t&&a==="await"||a==="enum"}function Jt(a,t){return Ht(a,t)||yi.has(a)}function Wt(a){return xi.has(a)}function Xt(a,t){return Jt(a,t)||Wt(a)}function Pi(a){return mi.has(a)}function gi(a,t,e){return a===64&&t===64&&R(e)}var Ti=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function bi(a){return Ti.has(a)}var ue=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},fe=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new ue(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&387)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&451&&!(e&4))return e}}},Ke=class extends ue{constructor(...t){super(...t),this.declareFunctions=new Set}},He=class extends fe{createScope(t){return new Ke(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Je=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[e,s]=t;if(!this.hasPlugin(e))return!1;let i=this.plugins.get(e);for(let r of Object.keys(s))if((i==null?void 0:i[r])!==s[r])return!1;return!0}}getPluginOption(t,e){var s;return(s=this.plugins.get(t))==null?void 0:s[e]}};function Gt(a,t){a.trailingComments===void 0?a.trailingComments=t:a.trailingComments.unshift(...t)}function Ai(a,t){a.leadingComments===void 0?a.leadingComments=t:a.leadingComments.unshift(...t)}function de(a,t){a.innerComments===void 0?a.innerComments=t:a.innerComments.unshift(...t)}function he(a,t,e){let s=null,i=t.length;for(;s===null&&i>0;)s=t[--i];s===null||s.start>e.start?de(a,e.comments):Gt(s,e.comments)}var We=class extends Je{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,s=e.length;if(s===0)return;let i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);let{start:n}=t;for(;i>=0;i--){let o=e[i],h=o.end;if(h>n)o.containingNode=t,this.finalizeComment(o),e.splice(i,1);else{h===n&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Gt(t.leadingNode,e),t.trailingNode!==null&&Ai(t.trailingNode,e);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":he(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":he(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":he(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":he(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":he(s,s.specifiers,t);break;default:de(s,e)}else de(s,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:s}=e;if(s===0)return;let i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:s}=e;s!==0&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let n=r-1;for(;n>=0;n--){let o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:s,startLine:i,startColumn:r}){this.strict=t===!1?!1:t===!0?!0:e==="module",this.startIndex=s,this.curLine=i,this.lineStart=-r,this.startLoc=this.endLoc=new O(i,r,s)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new O(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new a;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Ci=function(t){return t>=48&&t<=57},Ot={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ae={bin:a=>a===48||a===49,oct:a=>a>=48&&a<=55,dec:a=>a>=48&&a<=57,hex:a=>a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102};function Ft(a,t,e,s,i,r){let n=e,o=s,h=i,l="",c=null,u=e,{length:f}=t;for(;;){if(e>=f){r.unterminated(n,o,h),l+=t.slice(u,e);break}let d=t.charCodeAt(e);if(Ei(a,d,t,e)){l+=t.slice(u,e);break}if(d===92){l+=t.slice(u,e);let x=Ii(t,e,s,i,a==="template",r);x.ch===null&&!c?c={pos:e,lineStart:s,curLine:i}:l+=x.ch,{pos:e,lineStart:s,curLine:i}=x,u=e}else d===8232||d===8233?(++e,++i,s=e):d===10||d===13?a==="template"?(l+=t.slice(u,e)+` +`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ei(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function Ii(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(` +`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ge(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Qt(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=/^[0-7]+/.exec(a.slice(l,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ge(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=Yt(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function Yt(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ot.hex:Ot.decBinOct,f=i===16?Ae.hex:i===10?Ae.dec:i===8?Ae.oct:Ae.bin,d=!1,x=0;for(let S=0,N=r??1/0;S=97?I=w-97+10:w>=65?I=w-65+10:Ci(w)?I=w-48:I=1/0,I>=i){if(I<=9&&l)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,x=x*i+I}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function Qt(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ge(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ge(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function le(a,t,e){return new O(e,a-t,a)}var Ni=new Set([103,109,115,105,121,117,100,118]),M=class{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new Z(t.startLoc,t.endLoc)}},Ye=class extends We{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.options.errorRecovery?(this.raise(p.InvalidDigit,le(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,le(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,le(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,le(s,i,r))}}),this.state=new Xe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new M(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return _e.lastIndex=t,_e.test(this.input)?_e.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return je.lastIndex=t,je.test(this.input)?je.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++tthis.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let s=this.state.pos,i=this.input.indexOf(t,s+2);if(i===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,be.lastIndex=s+2;be.test(this.input)&&be.lastIndex<=i;)++this.state.curLine,this.state.lineStart=be.lastIndex;if(this.isLookahead)return;let r={type:"CommentBlock",value:this.input.slice(s+2,i),start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(i+t.length),loc:new Z(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){let e=this.state.pos,s;this.isLookahead||(s=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let r=this.skipLineComment(3);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else if(s===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let r=this.skipLineComment(4);r!==void 0&&(this.addComment(r),this.options.attachComment&&e.push(r))}else break e}else break e}}if(e.length>0){let s=this.state.pos,i={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition());if(e===123||e===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(e===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,e===123?this.finishToken(7):this.finishToken(1)}else R(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):e===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let e=this.state.pos;for(this.state.pos+=1;!Y(t)&&++this.state.pos=48&&e<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(R(t)){this.readWord(t);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){let t=this.state.startLoc,e=this.state.start+1,s,i,{pos:r}=this.state;for(;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,v(t,1));let l=this.input.charCodeAt(r);if(Y(l))throw this.raise(p.UnterminatedRegExp,v(t,1));if(s)s=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;s=l===92}}let n=this.input.slice(e,r);++r;let o="",h=()=>v(t,r+2-e);for(;r=2&&this.input.charCodeAt(e)===48;if(h){let d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,s),!this.state.strict){let x=d.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,v(s,x))}o=h&&!/[89]/.test(d)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!o&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(p.InvalidOrMissingExponent,s),i=!0,n=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||h)&&this.raise(p.InvalidBigIntLiteral,s),++this.state.pos,r=!0),l===109){this.expectPlugin("decimal",this.state.curPosition()),(n||h)&&this.raise(p.InvalidDecimal,s),++this.state.pos;var c=!0}if(R(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,this.state.curPosition());let u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}let f=o?parseInt(u,8):parseFloat(u);this.finishToken(135,f)}readCodePoint(t){let{code:e,pos:s}=Qt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){let{str:e,pos:s,curLine:i,lineStart:r}=Ft(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:r,lineStart:n}=Ft("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new O(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),this.input.codePointAt(i)===96?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){let s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,e):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let h=n[o];if(h.loc.index===r)return n[o]=t(i,s);if(h.loc.indexthis.hasPlugin(e)))throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,s,i)=>{this.raise(t,le(e,s,i))}}},Qe=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Ze=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Qe)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,i):this.parser.raise(p.InvalidPrivateFieldResolution,i,{identifierName:s})}declarePrivateName(t,e,s){let{privateNames:i,loneAccessors:r,undefinedPrivateNames:n}=this.current(),o=i.has(t);if(e&3){let h=o&&r.get(t);if(h){let l=h&4,c=e&4,u=h&3,f=e&3;o=u===f||l!==c,o||r.delete(t)}else o||r.set(t,e)}o&&this.parser.raise(p.PrivateNameRedeclaration,s,{identifierName:t}),i.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(p.InvalidPrivateFieldResolution,e,{identifierName:t})}},ee=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ne=class extends ee{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){let s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},et=class{constructor(t){this.parser=void 0,this.stack=[new ee],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let s=e.loc.start,{stack:i}=this,r=i.length-1,n=i[r];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return;n=i[--r]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,e){let{stack:s}=this,i=s[s.length-1],r=e.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,r);else return}recordAsyncArrowParametersError(t){let{stack:e}=this,s=e.length-1,i=e[s];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(p.AwaitBindingIdentifier,t),i=e[--s]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(([s,i])=>{this.parser.raise(s,i);let r=t.length-2,n=t[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]})}};function ki(){return new ee(3)}function vi(){return new Ne(1)}function Li(){return new Ne(2)}function Zt(){return new ee}var tt=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ce(a,t){return(a?2:0)|(t?1:0)}var st=class extends Ye{addExtra(t,e,s,i=!0){if(!t)return;let{extra:r}=t;r==null&&(r={},t.extra=r),i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let s=t+e.length;if(this.input.slice(t,s)===e){let i=this.input.charCodeAt(s);return!(G(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,e){if(!this.eatContextual(t)){if(e!=null)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Mt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Mt(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let s={node:null};try{let i=t((r=null)=>{throw s.node=r,s});if(this.state.errors.length>e.errors.length){let r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let r=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:r};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw i}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:s,doubleProtoLoc:i,privateKeyLoc:r,optionalParametersLoc:n}=t,o=!!s||!!i||!!n||!!r;if(!e)return o;s!=null&&this.raise(p.InvalidCoverInitializedName,s),i!=null&&this.raise(p.DuplicateProto,i),r!=null&&this.raise(p.UnexpectedPrivateField,r),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return Vt(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let e=this.state.labels;this.state.labels=[];let s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);let o=this.prodParam;this.prodParam=new tt;let h=this.classScope;this.classScope=new Ze(this);let l=this.expressionScope;return this.expressionScope=new et(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=i,this.scope=r,this.prodParam=o,this.classScope=h,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;e!==null&&this.expectPlugin("destructuringPrivate",e)}},Q=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},te=class{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new Z(s),t!=null&&t.options.ranges&&(this.range=[e,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Pt=te.prototype;Pt.__clone=function(){let a=new te(void 0,this.start,this.loc.start),t=Object.keys(this);for(let e=0,s=t.length;e`Cannot overwrite reserved type ${a}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:a,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:a,enumName:t})=>`Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:a})=>`Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:a,enumName:t})=>`Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:a})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:a,memberName:t,explicitType:e})=>`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:a,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:a,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`,EnumInvalidMemberName:({enumName:a,memberName:t,suggestion:e})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`,EnumNumberMemberNotInitialized:({enumName:a,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:a})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:a})=>`Unexpected reserved type ${a}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:a,suggestion:t})=>`\`declare export ${a}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Fi(a){return a.type==="DeclareExportAllDeclaration"||a.type==="DeclareExportDeclaration"&&(!a.declaration||a.declaration.type!=="TypeAlias"&&a.declaration.type!=="InterfaceDeclaration")}function Bt(a){return a.importKind==="type"||a.importKind==="typeof"}var Bi={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Ri(a,t){let e=[],s=[];for(let i=0;iclass extends a{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return He}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,s){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Ui.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,n=!1;return i.forEach(o=>{Fi(o)?(r==="CommonJS"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(g.DuplicateDeclareModuleExports,o),r==="ES"&&this.raise(g.AmbiguousDeclareModuleKind,o),r="CommonJS",n=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Bi[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(g.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){Oi.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];let l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){let d=!1,x=null,S=null,N=this.startNode();if(r&&this.isContextual(118)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let I=this.lookahead();I.type!==14&&I.type!==17&&(this.next(),d=!0)}let w=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(w&&this.unexpected(w.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(N,d))):h.indexers.push(this.flowParseObjectTypeIndexer(N,d,w));else if(this.match(10)||this.match(47))x!=null&&this.unexpected(x),w&&this.unexpected(w.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(N,d));else{let I="init";if(this.isContextual(99)||this.isContextual(104)){let ae=this.lookahead();Vt(ae.type)&&(I=this.state.value,this.next())}let Te=this.flowParseObjectTypeProperty(N,d,x,w,I,i,n??!c);Te===null?(u=!0,S=this.state.lastTokStartLoc):h.properties.push(Te)}this.flowObjectTypeSemicolon(),S&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,S)}this.expect(l),i&&(h.inexact=u);let f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,this.state.lastTokStartLoc):this.raise(g.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(g.InexactVariance,r),null):(o||this.raise(g.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(g.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=n;let l=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(e),!o&&e.key.name==="constructor"&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,e.value.this)):(n!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(p.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){var i;(i=e)!=null||(e=this.state.startLoc);let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(D(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||C(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(C(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||Dt(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||Dt(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:h,failed:l}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(h);if(l||u.length>0){let f=[...n];if(u.length>0){this.state=r,this.state.noArrowAt=f;for(let d=0;d1&&this.raise(g.AmbiguousConditionalArrow,r.startLoc),l&&c.length===1&&(this.state=r,f.push(c[0].start),this.state.noArrowAt=f,{consequent:h,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let n=i.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):n.type==="ConditionalExpression"&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach(n=>this.finishArrowValidation(n)),[r,[]]):Ri(r,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(g.DeclareClassElement,r):s.value&&this.raise(g.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):gi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r1||!s)&&this.raise(g.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,n,o),s.params&&n){let h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&n&&s.value.params){let h=s.value.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(g.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,n,o,h){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(g.PatternIsOptional,e),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(e,s),r),!n.error)return n.node;let{context:l}=this.state,c=l[l.length-1];(c===E.j_oTag||c===E.j_expr)&&l.pop()}if((i=n)!=null&&i.error||this.match(47)){var o,h;r=r||this.state.clone();let l,c=this.tryParse(f=>{var d;l=this.flowParseTypeParameterDeclaration();let x=this.forwardNoArrowParamsConversionAt(l,()=>{let N=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(N,l),N});(d=x.extra)!=null&&d.parenthesized&&f();let S=this.maybeUnwrapTypeCastExpression(x);return S.type!=="ArrowFunctionExpression"&&f(),S.typeParameters=l,this.resetStartLocationFromNode(S,l),x},r),u=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;u=c.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(u)return this.state=c.failState,u;throw(h=n)!=null&&h.thrown?n.error:c.thrown?c.error:this.raise(g.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let n=0;n0&&this.raise(g.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),n=this.tryParse(h=>this.parseAsyncArrowWithTypeParameters(s)||h(),r);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11),n.optional=!0,this.finishCallExpression(n,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(s);n.callee=e;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(p.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(g.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(g.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(g.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:h,init:l}=this.flowEnumMemberRaw(),c=h.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(g.EnumInvalidMemberName,h,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(g.EnumDuplicateMemberName,h,{memberName:c,enumName:e}),i.add(c);let u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!C(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(g.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:h}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let l=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let c=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!u&&!f&&!d)return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&c>=d){for(let x of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!f&&u>=d){for(let x of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(g.EnumInconsistentMemberValues,r,{enumName:i}),l()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},H=U`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:a})=>`Expected corresponding JSX closing tag for <${a}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:a,HTMLEntity:t})=>`Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function V(a){return a?a.type==="JSXOpeningFragment"||a.type==="JSXClosingFragment":!1}function X(a){if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return X(a.object)+"."+X(a.property);throw new Error("Node had unexpected type: "+a.type)}var ji=a=>class extends a{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(H.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:Y(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?` `:`\r -`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):fe(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(133,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i0){if(s&256){let r=!!(s&512),n=(i&4)>0;return r!==n}return!0}return s&128&&(i&8)>0?t.names.get(e)&2?!!(s&1):!1:s&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,e,s)}checkLocalExport(t){let{name:e}=t;if(this.hasImport(e))return;let s=this.scopeStack.length;for(let i=s-1;i>=0;i--){let n=this.scopeStack[i].tsNames.get(e);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(t)}},Ki=(a,t)=>hasOwnProperty.call(a,t)&&a[t],as=a=>a.type==="ParenthesizedExpression"?as(a.expression):a,lt=class extends nt{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=as(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,t):r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(p.InvalidParenthesizedAssignment,t):this.raise(p.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,c=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){if(r.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){return Ki({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,{in:e,binding:s=64,checkClashes:i=!1,strictModeChanged:r=!1,hasParenthesizedAncestor:n=!1}){var o;let h=t.type;if(this.isObjectMethod(t))return;let c=this.isOptionalMemberExpression(t);if(c||h==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise(p.InvalidLhsOptionalChaining,t,{ancestor:e})),s!==64&&this.raise(p.InvalidPropertyBindingPattern,t);return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:y}=t;i&&(i.has(y)?this.raise(p.ParamDupe,t):i.add(y));return}let l=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(l===!0)return;if(l===!1){let y=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(y,t,{ancestor:e});return}let[u,f]=Array.isArray(l)?l:[l,h==="ParenthesizedExpression"],d=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:e;for(let y of[].concat(t[u]))y&&this.checkLVal(y,{in:d,binding:s,checkClashes:i,strictModeChanged:r,hasParenthesizedAncestor:f})}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Zt(t.name,this.inModule):Qt(t.name))&&(e===64?this.raise(p.StrictEvalArguments,t,{referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc),!0):!1}},Hi=(a,t)=>hasOwnProperty.call(a,t)&&a[t];function Wi(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function jt(a){if(!a)throw new Error("Assert fail")}var x=j`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function Ji(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";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}}function $t(a){return a==="private"||a==="public"||a==="protected"}function Xi(a){return a==="in"||a==="out"}var Gi=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:x.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:x.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:x.InvalidModifierOnTypeParameter})}getScopeHandler(){return ht}tsIsIdentifier(){return w(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,s){if(!w(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=x.InvalidModifierOnTypeMember},n){let o=(c,l,u,f)=>{l===u&&n[f]&&this.raise(x.InvalidModifiersOrder,c,{orderedModifiers:[u,f]})},h=(c,l,u,f)=>{(n[u]&&l===f||n[f]&&l===u)&&this.raise(x.IncompatibleModifiers,c,{modifiers:[u,f]})};for(;;){let{startLoc:c}=this.state,l=this.tsParseModifier(e.concat(s??[]),i);if(!l)break;$t(l)?n.accessibility?this.raise(x.DuplicateAccessibilityModifier,c,{modifier:l}):(o(c,l,l,"override"),o(c,l,l,"static"),o(c,l,l,"readonly"),n.accessibility=l):Xi(l)?(n[l]&&this.raise(x.DuplicateModifier,c,{modifier:l}),n[l]=!0,o(c,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(x.DuplicateModifier,c,{modifier:l}):(o(c,l,"static","readonly"),o(c,l,"static","override"),o(c,l,"override","readonly"),o(c,l,"abstract","override"),h(c,l,"declare","override"),h(c,l,"static","abstract")),n[l]=!0),s!=null&&s.includes(l)&&this.raise(r,c,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return Wi(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(x.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(x.EmptyTypeParameters,s),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(x.UnsupportedSignatureParameterKind,s,{type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),w(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(x.ReadonlyForMethodSignature,e);let r=i;r.kind&&this.match(47)&&this.raise(x.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(x.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,this.state.curPosition());else{let h=r[n][0];this.isThisParam(h)&&this.raise(x.AccesorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(x.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(x.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(x.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return e.elementTypes.forEach(i=>{let{type:r}=i;s&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&i.optional)&&this.raise(x.OptionalTypeBeforeRequired,i),s||(s=r==="TSNamedTupleMember"&&i.optional||r==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,c=M(this.state.type)?this.lookaheadCharCode():null;if(c===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(c===63){n=!0;let l=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(l),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let l;r?(l=this.startNodeAtNode(r),l.optional=n,l.label=r,l.elementType=o,this.eat(17)&&(l.optional=!0,this.raise(x.TupleOptionalAfterType,this.state.lastTokStartLoc))):(l=this.startNodeAtNode(o),l.optional=n,this.raise(x.InvalidTupleMemberLabel,o),l.label=o,l.elementType=this.tsParseType()),o=this.finishNode(l,"TSNamedTupleMember")}else if(n){let l=this.startNodeAtNode(o);l.typeAnnotation=o,o=this.finishNode(l,"TSOptionalType")}if(s){let l=this.startNodeAt(e);l.typeAnnotation=o,o=this.finishNode(l,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==134&&s.type!==135&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(w(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":Ji(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(x.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return di(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(w(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!w(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){jt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(x.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(x.EmptyHeritageClauseType,s,{token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),s.declare&&(e.declare=!0),w(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(x.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(x.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(100)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(w(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let r=e;return r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||w(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(w(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&w(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&w(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(x.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===C.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return mi(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(x.UnexpectedParameterModifier,i);let c=this.parseMaybeDefault();this.parseAssignableListItemTypes(c,e);let l=this.parseMaybeDefault(c.loc.start,c);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),l.type!=="Identifier"&&l.type!=="AssignmentPattern"&&this.raise(x.UnsupportedParameterPropertyKind,u),u.parameter=l,this.finishNode(u,"TSParameterProperty")}return s.length&&(c.decorators=s),l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(x.PatternIsOptional,s)}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(x.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(x.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(ve(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=c,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=c,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let l=this.state.type;if(l===48||l===52||l!==10&&He(l)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=c,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(x.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(Ee(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(x.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let s;if(w(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(x.TypeImportCannotSpecifyDefaultAndNamed,s),s}parseExport(e,s){if(this.match(83)){this.next();let i=e,r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,r,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(x.InitializerNotAllowedInAmbientContext,h):Qi(h,this.hasPlugin("estree"))||this.raise(x.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,h));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>$t(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:x.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(x.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(x.IndexSignatureHasAbstract,s),s.accessibility&&this.raise(x.IndexSignatureHasAccessibility,s,{modifier:s.accessibility}),s.declare&&this.raise(x.IndexSignatureHasDeclare,s),s.override&&this.raise(x.IndexSignatureHasOverride,s);return}!this.state.inAbstractClass&&s.abstract&&this.raise(x.NonAbstractClassHasAbstractMethod,s),s.override&&(i.hadSuperClass||this.raise(x.OverrideNotInSubClass,s)),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(x.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(x.ClassMethodHasDeclare,e)}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(x.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=w(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(113))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(x.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:s}=e;this.raise(x.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(s.start,s.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(x.PrivateElementHasAbstract,e),e.accessibility&&this.raise(x.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(x.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(x.ConstructorHasTypeParameters,h);let{declare:c=!1,kind:l}=s;c&&(l==="get"||l==="set")&&this.raise(x.DeclareAccessor,s,{kind:l}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(e.typeParameters=c),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let c,l,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(c=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,s),c),!l.error)return l.node;let{context:y}=this.state,E=y[y.length-1];(E===C.j_oTag||E===C.j_expr)&&y.pop()}if(!((i=l)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!c||c===this.state)&&(c=this.state.clone());let f,d=this.tryParse(y=>{var E,L;f=this.tsParseTypeParameters(this.tsParseConstModifier);let S=super.parseMaybeAssign(e,s);return(S.type!=="ArrowFunctionExpression"||(E=S.extra)!=null&&E.parenthesized)&&y(),((L=f)==null?void 0:L.params.length)!==0&&this.resetStartLocationFromNode(S,f),S.typeParameters=f,S},c);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!l&&(jt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),c),!u.error))return u.node;if((r=l)!=null&&r.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=l)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(x.ReservedArrowTypeParam,e)}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,s){if(!(s&2))return e;this.eat(17)&&(e.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(x.UnexpectedTypeCastInParameter,e):this.raise(x.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){return Hi({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSInstantiationExpression:"expression",TSAsExpression:(i!==64||!s)&&["expression",!0],TSSatisfiesExpression:(i!==64||!s)&&["expression",!0],TSTypeAssertion:(i!==64||!s)&&["expression",!0]},e)||super.isValidLVal(e,s,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(x.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let c=super.parseMethod(e,s,i,r,n,o,h);if(c.abstract&&(this.hasPlugin("estree")?!!c.value.body:!!c.body)){let{key:u}=c;this.raise(x.AbstractMethodHasImplementation,c,{methodName:u.type==="Identifier"&&!c.computed?u.name:`[${this.input.slice(u.start,u.end)}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,c=!1,l=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();M(this.state.type)?(c=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),l=!1):(h=y,l=!1)}else M(this.state.type)?(l=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=d)}else M(this.state.type)&&(c=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&i&&this.raise(s?x.TypeModifierIsUsedInTypeImports:x.TypeModifierIsUsedInTypeExports,u),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=c?"type":"value",l&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=$(e[r])),s&&this.checkIdentifier(e[n],c?4098:4096)}};function Yi(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:os(a.object)}function Qi(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(ns(a,t)||Zi(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||Yi(a))}function ns(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function Zi(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&ns(s,t))return!0}return!1}function os(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:os(a.object)}var Vt=j`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),er=a=>class extends a{parsePlaceholder(e){if(this.match(144)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=e;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=s,i}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===144)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(s,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let r=e;return r.name=s.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Vt.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=i,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(K(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Vt.UnexpectedSpace,this.state.lastTokEndLoc)}},tr=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),w(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function N(a,t){let[e,s]=typeof t=="string"?[t,{}]:t,i=Object.keys(s),r=i.length===0;return a.some(n=>{if(typeof n=="string")return r&&n===e;{let[o,h]=n;if(o!==e)return!1;for(let c of i)if(h[c]!==s[c])return!1;return!0}})}function J(a,t,e){let s=a.find(i=>Array.isArray(i)?i[0]===t:i===t);return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var qt=["minimal","fsharp","hack","smart"],zt=["^^","@@","^","%","#"];function sr(a){if(N(a,"decorators")){if(N(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=J(a,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let e=J(a,"decorators","allowCallParenthesized");if(e!=null&&typeof e!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(N(a,"flow")&&N(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(N(a,"placeholders")&&N(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(N(a,"pipelineOperator")){let t=J(a,"pipelineOperator","proposal");if(!qt.includes(t)){let i=qt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let e=["recordAndTuple",{syntaxType:"hash"}],s=N(a,e);if(t==="hack"){if(N(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(N(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=J(a,"pipelineOperator","topicToken");if(!zt.includes(i)){let r=zt.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`)}if(i==="#"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(e)}\`.`)}else if(t==="smart"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(e)}\`.`)}if(N(a,"moduleAttributes")){if(N(a,"importAssertions")||N(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(J(a,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(N(a,"importAssertions")&&N(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(N(a,"recordAndTuple")){let t=J(a,"recordAndTuple","syntaxType");if(t!=null){let e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(s=>`'${s}'`).join(", "))}}if(N(a,"asyncDoExpressions")&&!N(a,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(N(a,"optionalChainingAssign")&&J(a,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var hs={estree:ri,jsx:zi,flow:qi,typescript:Gi,v8intrinsic:tr,placeholders:er},ir=Object.keys(hs),qe={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function rr(a){if(a==null)return Object.assign({},qe);if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let s of Object.keys(qe)){var e;t[s]=(e=a[s])!=null?e:qe[s]}return t}var ct=class extends lt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,r);return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,r)),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new Z,i=!0);let{type:r}=this.state;(r===10||w(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),li(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let c=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=c&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=c&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=Ee(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,t,{identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(pi(i)&&(this.prodParam.hasIn||!this.match(58))){let r=Ee(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=Ee(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(i,r);let c=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(h&&(l===41||l===42)||o&&l===40)throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(p.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,yi(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Qs.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,e,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,e),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(fi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let c=n.argument;c.type==="Identifier"?this.raise(p.StrictDelete,n):this.hasPropertyAsPrivateName(c)&&this.raise(p.DeletePrivateField,n)}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?He(h):He(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,s),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;ui(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(n,"UpdateExpression")})}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(ve(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(p.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:c}=s;h&&(this.expressionScope.enter(Fi()),n=new Z),c&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,n);let l=this.finishCallExpression(o,c);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),l)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=r,l}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,e),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,s);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i,r){let n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&ye(t,e.innerComments),e.callee.trailingComments&&ye(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(p.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,r)}case 138:return this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());_(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(w(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(w(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=v(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,e,{token:K(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:K(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Ne(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(v(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(p.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let s=this.isContextual(105);if(s||this.unexpected(),this.expectPlugin(s?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=s?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(e.start,this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(Oi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new Z,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,s),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),s=this.parseNoCallExpr();t.callee=s,e&&(s.type==="Import"||s.type==="ImportExpression")&&this.raise(p.ImportCallNotNewExpression,s)}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(v(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,v(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),c=h?-1:-2,l=i+c;o.value={raw:this.input.slice(n,l).replace(/\r\n?/g,` -`),cooked:r===null?null:r.slice(1,c)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,c)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let l;e?l=this.parseBindingProperty():(l=this.parsePropertyDefinition(i),this.checkProto(l,s,n,i)),s&&!this.isObjectProperty(l)&&l.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,l),l.shorthand&&this.addExtra(l,"shorthand",!0),h.properties.push(l)}this.next(),this.state.inFSharpPipelineDirectBody=r;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(h,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:c}=s,l=c.name;l==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(s)),(l==="get"||l==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(c),s.kind=l,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:l}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,$(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,$(t.key))}else t.value=$(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 134:r=this.parseNumericLiteral(i);break;case 133:r=this.parseStringLiteral(i);break;case 135:r=this.parseBigIntLiteral(i);break;case 136:r=this.parseDecimalLiteral(i);break;case 138:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:this.unexpected()}t.key=r,s!==138&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Ne(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=Ne(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=8),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(rs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let c=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!Ei(t))return;if(s&&Si(t)){this.raise(p.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?i?Zt:Yt:Gt)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,e);return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,e),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||ve(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},ze={kind:1},ar={kind:2},nr=/[\uD800-\uDFFF]/u,Ke=/in(?:stanceof)?/y;function or(a,t){for(let e=0;e0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,n,{localName:r});let i;return e===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",v(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(_(t)){if(Ke.lastIndex=e,Ke.test(this.input)){let s=this.codePointAtPos(Ke.lastIndex);if(!Q(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===102&&!e)return!1;if(w(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,i):this.raise(p.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc):r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let l=this.nextTokenStart(),u=this.codePointAtPos(l);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,l)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let l=this.state.value;return this.parseVarStatement(i,l)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let l=this.lookaheadCharCode();if(l===40||l===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,this.state.startLoc),this.next();let l;return s===83?(l=this.parseImport(i),l.type==="ImportDeclaration"&&(!l.importKind||l.importKind==="value")&&(this.sawUnambiguousESM=!0)):(l=this.parseExport(i,e),(l.type==="ExportNamedDeclaration"&&(!l.exportKind||l.exportKind==="value")||l.type==="ExportAllDeclaration"&&(!l.exportKind||l.exportKind==="value")||l.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(l),l}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,c=this.parseExpression();return w(s)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,c,t):this.parseExpressionStatement(i,c,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(ze);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(100);{let h=this.isContextual(96)&&this.startsAwaitUsing(),c=h||this.isContextual(107)&&this.startsUsingForOf(),l=s&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||l){let u=this.startNode(),f;h?(f="await using",this.isAwaitAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),y=this.match(58);return y&&c&&this.raise(p.ForInUsing,d),(y||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new Z,n=this.parseExpression(!0,r),o=this.isContextual(102);if(o&&(s&&this.raise(p.ForOfLet,n),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,n)),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:h}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(ar),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ze),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,s,{labelName:e});let r=ci(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let c=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(c)){let l=this.stmtToDirective(c);e.push(l),!o&&l.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(c)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,e,{type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();(e==="using"||e==="await using")&&(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(p.UsingDeclarationHasBindingPattern,s.loc.start),this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:e==="var"?5:8201}),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ne(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||w(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Mi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,n)}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,c=e,l=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){l.kind="method";let S=this.match(138);if(this.parseClassElementName(l),S){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,r.key),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&w(this.state.type),d=this.parseClassElementName(e),y=f?d.name:null,E=this.isPrivateName(d),L=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind="method",E){this.pushClassPrivateMethod(t,n,!1,!1);return}let S=this.isNonstaticConstructor(r),I=!1;S&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,d),S&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,d),s.hadConstructor=!0,I=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,S,I)}else if(this.isClassProperty())E?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let S=this.eat(55);u.optional&&this.unexpected(L),l.kind="method";let I=this.match(138);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),I?this.pushClassPrivateMethod(t,n,S,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,r.key),this.pushClassMethod(t,r,S,!0,!1,!1))}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),l.kind=y;let S=this.match(138);this.parseClassElementName(r),S?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,r.key),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let S=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,c,S)}else this.isLineTerminator()?E?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===132||e===133)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,this.state.startLoc),e===138){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){!s&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key);let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(rs()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(w(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),c=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let l=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!l&&this.unexpected(null,5),o&&h&&this.unexpected(null,98);let u;if(c||l){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else u=this.maybeParseExportDeclaration(t);if(c||l||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,y=this.parseExportDefaultExpression();if(d.declaration=y,y.type==="ClassDeclaration")this.maybeTakeDecorators(e,y,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e,s;(s=(e=t).specifiers)!=null||(e.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let e=t;e.specifiers||(e.specifiers=[]);let s=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(s)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(w(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(w(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||w(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,o)}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,c=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,c),!i&&o.local){let{local:l}=o;l.type!=="Identifier"?this.raise(p.ExportBindingIsString,o,{localName:l.value,exportName:c}):(this.checkReservedWord(l.name,l.loc.start,!0,!1),this.scope.checkLocalExport(l))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:h}=o;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(t,h.name)}else if(o.type==="VariableDeclaration")for(let h of o.declarations)this.checkDeclaration(h.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,t):this.raise(p.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),r=this.match(133),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Ri(t.local):t.exported||(t.exported=$(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),e=nr.exec(t.value);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){let{specifiers:e}=t,s=e.length===1?e[0].type:null;if(t.phase==="source")s!=="ImportDefaultSpecifier"&&this.raise(p.SourcePhaseImportRequiresDefault,e[0].loc.start);else if(t.phase==="defer")s!=="ImportNamespaceSpecifier"&&this.raise(p.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var i;s!=="ImportDefaultSpecifier"&&this.raise(p.ImportReflectionNotBinding,e[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(p.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,s.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),s==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(M(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return w(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),e.add(i),this.match(133)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,s.key),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(133))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(p.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else if(this.hasPlugin("moduleAttributes"))e=[];else return;!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(M(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(133),r=this.isContextual(130);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,t,{importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=$(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},De=class extends pt{constructor(t,e){t=rr(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=hr(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return me}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function hr(a){let t=new Map;for(let e of a){let[s,i]=Array.isArray(e)?e:[e,{}];t.has(s)||t.set(s,i||{})}return t}function lr(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=pe(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",pe(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",pe(t,a).parse()}catch{}throw s}}else return pe(t,a).parse()}function cr(a,t){let e=pe(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function pr(a){let t={};for(let e of Object.keys(a))t[e]=R(a[e]);return t}var ur=pr(ni);function pe(a,t){let e=De;return a!=null&&a.plugins&&(sr(a.plugins),e=fr(a.plugins)),new e(a,t)}var Kt={};function fr(a){let t=ir.filter(i=>N(a,i)),e=t.join("/"),s=Kt[e];if(!s){s=De;for(let i of t)s=hs[i](s);Kt[e]=s}return s}xe.parse=lr;xe.parseExpression=cr;xe.tokTypes=ur});var kt={};Ws(kt,{parsers:()=>Qr});var _e=vt(At(),1);function Me(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):Y(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos1){for(let i=0;i0){if(s&256){let r=!!(s&512),n=(i&4)>0;return r!==n}return!0}return s&128&&(i&8)>0?t.names.get(e)&2?!!(s&1):!1:s&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,e,s)}checkLocalExport(t){let{name:e}=t;if(this.hasImport(e))return;let s=this.scopeStack.length;for(let i=s-1;i>=0;i--){let n=this.scopeStack[i].tsNames.get(e);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(t)}},es=a=>a.type==="ParenthesizedExpression"?es(a.expression):a,nt=class extends it{toAssignable(t,e=!1){var s,i;let r;switch((t.type==="ParenthesizedExpression"||(s=t.extra)!=null&&s.parenthesized)&&(r=es(t),e?r.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,t):r.type!=="MemberExpression"&&!this.isOptionalMemberExpression(r)&&this.raise(p.InvalidParenthesizedAssignment,t):this.raise(p.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,h=t.properties.length,l=h-1;oi.type!=="ObjectMethod"&&(r===s||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(s=>s===null||this.isAssignable(s));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let s of t)(s==null?void 0:s.type)==="ArrayExpression"&&this.toReferencedListDeep(s.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){let i=s&1,r=[],n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),i&&this.match(12))r.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||s&2)&&(o=this.parseFunctionParamType(o)),r.push(o),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(p.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());r.push(this.parseAssignableListItem(s,o))}}return r}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let s=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){let s=this.parseMaybeDefault();(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(s);let i=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),i}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){var s,i;if((s=t)!=null||(t=this.state.startLoc),e=(i=e)!=null?i:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,e,s=64,i=!1,r=!1,n=!1){var o;let h=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||h==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),e.type!=="AssignmentExpression"&&this.raise(p.InvalidLhsOptionalChaining,t,{ancestor:e})),s!==64&&this.raise(p.InvalidPropertyBindingPattern,t);return}if(h==="Identifier"){this.checkIdentifier(t,s,r);let{name:S}=t;i&&(i.has(S)?this.raise(p.ParamDupe,t):i.add(S));return}let c=this.isValidLVal(h,!(n||(o=t.extra)!=null&&o.parenthesized)&&e.type==="AssignmentExpression",s);if(c===!0)return;if(c===!1){let S=s===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(S,t,{ancestor:e});return}let u,f;typeof c=="string"?(u=c,f=h==="ParenthesizedExpression"):[u,f]=c;let d=h==="ArrayPattern"||h==="ObjectPattern"?{type:h}:e,x=t[u];if(Array.isArray(x))for(let S of x)S&&this.checkLVal(S,d,s,i,r,f);else x&&this.checkLVal(x,d,s,i,r,f)}checkIdentifier(t,e,s=!1){this.state.strict&&(s?Xt(t.name,this.inModule):Wt(t.name))&&(e===64?this.raise(p.StrictEvalArguments,t,{referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,t,{bindingName:t.name})),e&8192&&t.name==="let"&&this.raise(p.LetInLexicalBinding,t),e&64||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc),!0):!1}};function $i(a){if(a==null)throw new Error(`Unexpected ${a} value.`);return a}function Rt(a){if(!a)throw new Error("Assert fail")}var y=U`typescript`({AbstractMethodHasImplementation:({methodName:a})=>`Method '${a}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:a})=>`Property '${a}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:a})=>`'declare' is not allowed in ${a}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:a})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:a})=>`Duplicate modifier: '${a}'.`,EmptyHeritageClauseType:({token:a})=>`'${a}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:a})=>`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:a})=>`Index signatures cannot have an accessibility modifier ('${a}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:a})=>`'${a}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:a})=>`'${a}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:a})=>`'${a}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:a})=>`'${a[0]}' modifier must precede '${a[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:a})=>`Private elements cannot have an accessibility modifier ('${a}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:a})=>`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:a})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a}.`});function zi(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";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}}function Ut(a){return a==="private"||a==="public"||a==="protected"}function Vi(a){return a==="in"||a==="out"}var qi=a=>class extends a{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter})}getScopeHandler(){return at}tsIsIdentifier(){return C(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,s){if(!C(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:r=y.InvalidModifierOnTypeMember},n){let o=(l,c,u,f)=>{c===u&&n[f]&&this.raise(y.InvalidModifiersOrder,l,{orderedModifiers:[u,f]})},h=(l,c,u,f)=>{(n[u]&&c===f||n[f]&&c===u)&&this.raise(y.IncompatibleModifiers,l,{modifiers:[u,f]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(e.concat(s??[]),i);if(!c)break;Ut(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):Vi(c)?(n[c]&&this.raise(y.DuplicateModifier,l,{modifier:c}),n[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),s!=null&&s.includes(c)&&this.raise(r,l,{modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,s){let i=[];for(;!this.tsIsListTerminator(e);)i.push(s());return i}tsParseDelimitedList(e,s,i){return $i(this.tsParseDelimitedListWorker(e,s,!0,i))}tsParseDelimitedListWorker(e,s,i,r){let n=[],o=-1;for(;!this.tsIsListTerminator(e);){o=-1;let h=s();if(h==null)return;if(n.push(h),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;i&&this.expect(12);return}return r&&(r.value=o),n}tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)||this.raise(y.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.eat(12)&&!this.match(11)?(e.options=super.parseMaybeAssignAllowIn(),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let s=this.parseIdentifier(e);for(;this.eat(16);){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let s=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),s.params.length===0&&this.raise(y.EmptyTypeParameters,s),i.value!==-1&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(e,s){let i=e===19,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),i?s[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let s of e){let{type:i}=s;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(y.UnsupportedSignatureParameterKind,s,{type:i})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),C(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];let i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);let i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,e);let r=i;r.kind&&this.match(47)&&this.raise(y.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(r.kind==="get")r[n].length>0&&(this.raise(p.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(y.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind==="set"){if(r[n].length!==1)this.raise(p.BadSetterArity,this.state.curPosition());else{let h=r[n][0];this.isThisParam(h)&&this.raise(y.AccessorCannotDeclareThisParameter,this.state.curPosition()),h.type==="Identifier"&&h.optional&&this.raise(y.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),h.type==="RestElement"&&this.raise(y.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(y.SetAccessorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}else{let r=i;s&&(r.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);let s=this.tsTryParseIndexSignature(e);return s||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{let s=this.startNode();s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(s,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return e.elementTypes.forEach(i=>{let{type:r}=i;s&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&i.optional)&&this.raise(y.OptionalTypeBeforeRequired,i),s||(s=r==="TSNamedTupleMember"&&i.optional||r==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,s=this.eat(21),i,r,n,o,l=D(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){n=!0;let c=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i){let c;r?(c=this.startNodeAtNode(r),c.optional=n,c.label=r,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(y.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=n,this.raise(y.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(n){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(s){let c=this.startNodeAt(e);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,s){let i=this.startNode();return e==="TSConstructorType"&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==135&&s.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(C(e)||e===88||e===84){let s=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":zi(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(e);s.objectType=e,s.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(s,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return li(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,s,i){let r=this.startNode(),n=this.eat(i),o=[];do o.push(s());while(this.eat(i));return o.length===1&&!n?o[0]:(r.types=o,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(C(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,s=e.length;try{return super.parseBindingList(3,93,1),e.length===s}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let s=this.startNode();this.expect(e);let i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let h=this.tsParseThisTypeOrThisTypePredicate();return h.type==="TSThisType"?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,this.finishNode(s,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,s);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!C(this.state.type)&&!this.match(78)?!1:(e&&this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,s=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Rt(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let r=this.startNode();return r.expression=this.tsParseEntityName(),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSExpressionWithTypeArguments")});return i.length||this.raise(y.EmptyHeritageClauseType,s,{token:e}),i}tsParseInterfaceDeclaration(e,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),s.declare&&(e.declare=!0),C(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(y.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}tsInType(e){let s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(e){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,s={}){return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,s=!1){if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind==="type"&&r.type!=="TSExternalModuleReference"&&this.raise(y.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let s=this.state.clone(),i=e();return this.state=s,i}tsTryParseAndCatch(e){let s=this.tryParse(i=>e()||i());if(!(s.aborted||!s.node))return s.error&&(this.state=s.failState),s.node}tsTryParse(e){let s=this.state.clone(),i=e();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(e){if(this.isLineTerminator())return;let s=this.state.type,i;return this.isContextual(100)&&(s=74,i="let"),this.tsInAmbientContext(()=>{switch(s){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r}default:if(C(s))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":{let r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let r=e;return r.kind="global",r.global=!0,r.id=s,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||C(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(C(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&C(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&C(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let r=this.startNodeAt(e);return r.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),r});if(this.state.maybeInArrowParameters=s,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(y.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===E.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ci(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,s){let i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);let n=r.accessibility,o=r.override,h=r.readonly;!(e&4)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(l);let c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){let u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(y.UnsupportedParameterPropertyKind,u),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let s of e.params)s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,s)}setArrowFunctionParameters(e,s,i){super.setArrowFunctionParameters(e,s,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,s,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,s,i))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(s=>{(s==null?void 0:s.type)==="TSTypeCastExpression"&&this.raise(y.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,s,i,r){let n=super.parseArrayLike(e,s,i,r);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,s,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,h=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(e)){let f=this.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Ie(this.state.type)){let f=super.parseTaggedTemplateExpression(e,s,r);return f.typeParameters=l,f}if(!i&&this.eat(10)){let f=this.startNodeAt(s);return f.callee=e,f.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=l,r.optionalChainMember&&(f.optional=n),this.finishCallExpression(f,r.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Ve(c)&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(s);return u.expression=e,u.typeParameters=l,this.finishNode(u,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),h)return h.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),h}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){var s;super.parseNewCallee(e);let{callee:i}=e;i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,s,i){let r;if(we(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return super.parseExprOp(e,s,i)}checkReservedWord(e,s,i,r){this.state.isAmbientContext||super.checkReservedWord(e,s,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(y.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return e?s===123||s===42:s!==61}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){super.applyImportPhase(e,s,i,r),s?e.exportKind=i==="type"?"type":"value":e.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let s;if(C(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,i);s=super.parseImportSpecifiersAndAfter(e,i)}else s=super.parseImport(e);return s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,s),s}parseExport(e,s){if(this.match(83)){this.next();let i=e,r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,r,!0)}else if(this.eat(29)){let i=e;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=e;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(e,s)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,s,i=!1){let{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,s,i||r);if(!r)return n;for(let{id:o,init:h}of n.declarations)h&&(s!=="const"||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,h):Hi(h,this.hasPlugin("estree"))||this.raise(y.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,h));return n}parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(e,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,s){return s.some(i=>Ut(i)?e.accessibility===i:!!e[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,s,i){let r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(s,r)&&this.raise(y.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,s)):this.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,s,i,r){let n=this.tsTryParseIndexSignature(s);if(n){e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,s),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,s,{modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,s),s.override&&this.raise(y.IndexSignatureHasOverride,s);return}!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,s),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,s)),super.parseClassMemberWithIsStatic(e,s,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,e)}parseExpressionStatement(e,s,i){return(s.type==="Identifier"?this.tsParseExpressionStatement(e,s,i):void 0)||super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,s,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,s,i);let r=this.tryParse(()=>super.parseConditional(e,s));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(i,r.error),e)}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=C(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}parseClassId(e,s,i,r){if((!s||i)&&this.isContextual(113))return;super.parseClassId(e,s,i,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:s}=e;this.raise(y.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!e.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,e),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,s,i,r,n,o){let h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,h);let{declare:l=!1,kind:c}=s;l&&(c==="get"||c==="set")&&this.raise(y.DeclareAccessor,s,{kind:c}),h&&(s.typeParameters=h),super.pushClassMethod(e,s,i,r,n,o)}pushClassPrivateMethod(e,s,i,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),super.pushClassPrivateMethod(e,s,i,r)}declareClassPrivateMethodInScope(e,s){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")||super.declareClassPrivateMethodInScope(e,s))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,s,i,r,n,o,h){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),super.parseObjPropValue(e,s,i,r,n,o,h)}parseFunctionParams(e,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,s)}parseMaybeAssign(e,s){var i,r,n,o,h;let l,c,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!c.error)return c.node;let{context:x}=this.state,S=x[x.length-1];(S===E.j_oTag||S===E.j_expr)&&x.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(e,s);(!l||l===this.state)&&(l=this.state.clone());let f,d=this.tryParse(x=>{var S,N;f=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(e,s);return(w.type!=="ArrowFunctionExpression"||(S=w.extra)!=null&&S.parenthesized)&&x(),((N=f)==null?void 0:N.params.length)!==0&&this.resetStartLocationFromNode(w,f),w.typeParameters=f,w},l);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!c&&(Rt(!this.hasPlugin("jsx")),u=this.tryParse(()=>super.parseMaybeAssign(e,s),l),!u.error))return u.node;if((r=c)!=null&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;throw((o=c)==null?void 0:o.error)||d.error||((h=u)==null?void 0:h.error)}reportReservedArrowTypeParam(e){var s;e.params.length===1&&!e.params[0].constraint&&!((s=e.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,e)}parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(i=>{let r=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),r});if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.resetEndLocation(e),e}isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(e,s)}}toAssignable(e,s=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,e):this.raise(y.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,s)}}toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:super.toAssignable(e,s)}}checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,s)}}isValidLVal(e,s,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!s)&&["expression",!0];default:return super.isValidLVal(e,s,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(s,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());s&&(e.typeParameters=s)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let s=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?s+1:s}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(e,s,i){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,s,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,s){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(y.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,s,i,r,n,o,h){let l=super.parseMethod(e,s,i,r,n,o,h);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:u}=l;this.raise(y.AbstractMethodHasImplementation,l,{methodName:u.type==="Identifier"&&!l.computed?u.name:`[${this.input.slice(this.offsetToSourcePos(u.start),this.offsetToSourcePos(u.end))}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,s,i,r){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,s,i,r))}parseImportSpecifier(e,s,i,r,n){return!s&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,s,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,s,i){let r=s?"imported":"local",n=s?"local":"exported",o=e[r],h,l=!1,c=!0,u=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let x=this.parseIdentifier();D(this.state.type)?(l=!0,o=d,h=s?this.parseIdentifier():this.parseModuleExportName(),c=!1):(h=x,c=!1)}else D(this.state.type)?(c=!1,h=s?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else D(this.state.type)&&(l=!0,s?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(s?y.TypeModifierIsUsedInTypeImports:y.TypeModifierIsUsedInTypeExports,u),e[r]=o,e[n]=h;let f=s?"importKind":"exportKind";e[f]=l?"type":"value",c&&this.eatContextual(93)&&(e[n]=s?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=_(e[r])),s&&this.checkIdentifier(e[n],l?4098:4096)}};function Ki(a){if(a.type!=="MemberExpression")return!1;let{computed:t,property:e}=a;return t&&e.type!=="StringLiteral"&&(e.type!=="TemplateLiteral"||e.expressions.length>0)?!1:ss(a.object)}function Hi(a,t){var e;let{type:s}=a;if((e=a.extra)!=null&&e.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=a;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;return!!(ts(a,t)||Ji(a,t)||s==="TemplateLiteral"&&a.expressions.length===0||Ki(a))}function ts(a,t){return t?a.type==="Literal"&&(typeof a.value=="number"||"bigint"in a):a.type==="NumericLiteral"||a.type==="BigIntLiteral"}function Ji(a,t){if(a.type==="UnaryExpression"){let{operator:e,argument:s}=a;if(e==="-"&&ts(s,t))return!0}return!1}function ss(a){return a.type==="Identifier"?!0:a.type!=="MemberExpression"||a.computed?!1:ss(a.object)}var _t=U`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Wi=a=>class extends a{parsePlaceholder(e){if(this.match(133)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(s,e)}}finishPlaceholder(e,s){let i=e;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=s,i}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,s,i,r){e!==void 0&&super.checkReservedWord(e,s,i,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,s,i){return e==="Placeholder"||super.isValidLVal(e,s,i)}toAssignable(e,s){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,s)}chStartsBindingIdentifier(e,s){return!!(super.chStartsBindingIdentifier(e,s)||this.lookahead().type===133)}verifyBreakContinue(e,s){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,s)}parseExpressionStatement(e,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(e,s);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(s,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let r=e;return r.name=s.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,s,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,s,i){let r=s?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))e.id=o;else{if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(_t.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,s,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,s);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=i,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,s)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(q(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,s){var i;return(i=e.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(e,s)}checkExport(e){let{specifiers:s}=e;s!=null&&s.length&&(e.specifiers=s.filter(i=>i.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=s}parseImport(e){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(_t.UnexpectedSpace,this.state.lastTokEndLoc)}},Xi=a=>class extends a{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,s=this.startNode();if(this.next(),C(this.state.type)){let i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},jt=["minimal","fsharp","hack","smart"],$t=["^^","@@","^","%","#"];function Gi(a){if(a.has("decorators")){if(a.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=a.get("decorators").decoratorsBeforeExport;if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=a.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(a.has("flow")&&a.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(a.has("placeholders")&&a.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(a.has("pipelineOperator")){var t;let e=a.get("pipelineOperator").proposal;if(!jt.includes(e)){let i=jt.map(r=>`"${r}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let s=((t=a.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(e==="hack"){if(a.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(a.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=a.get("pipelineOperator").topicToken;if(!$t.includes(i)){let r=$t.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`)}if(i==="#"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",a.get("recordAndTuple")])}\`.`)}else if(e==="smart"&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",a.get("recordAndTuple")])}\`.`)}if(a.has("moduleAttributes")){if(a.has("deprecatedImportAssert")||a.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(a.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(a.has("importAssertions")&&a.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!a.has("deprecatedImportAssert")&&a.has("importAttributes")&&a.get("importAttributes").deprecatedAssertSyntax&&a.set("deprecatedImportAssert",{}),a.has("recordAndTuple")){let e=a.get("recordAndTuple").syntaxType;if(e!=null){let s=["hash","bar"];if(!s.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(i=>`'${i}'`).join(", "))}}if(a.has("asyncDoExpressions")&&!a.has("doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(a.has("optionalChainingAssign")&&a.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var is={estree:Zs,jsx:ji,flow:_i,typescript:qi,v8intrinsic:Xi,placeholders:Wi},Yi=Object.keys(is);function Qi(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function Zi(a){let t=Qi();if(a==null)return t;if(a.annexB!=null&&a.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let e of Object.keys(t))a[e]!=null&&(t[e]=a[e]);if(t.startLine===1)a.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:a.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((a.startColumn==null||a.startIndex==null)&&a.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}var ot=class extends nt{checkProto(t,e,s,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let r=t.key;if((r.type==="Identifier"?r.name:r.value)==="__proto__"){if(e){this.raise(p.RecordNoProto,r);return}s.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,r)),s.used=!0}}shouldExitDescending(t,e){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd(()=>this.parseExpressionBase(e)):this.allowInAnd(()=>this.parseExpressionBase(e))}parseExpressionBase(t){let e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd(()=>this.parseMaybeAssign(t,e))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd(()=>this.parseMaybeAssign(t,e))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=(s=e==null?void 0:e.loc)!=null?s:this.state.startLoc}parseMaybeAssign(t,e){let s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return e&&(o=e.call(this,o,s)),o}let i;t?i=!1:(t=new Q,i=!0);let{type:r}=this.state;(r===10||C(r))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),ri(this.state.type)){let o=this.startNodeAt(s),h=this.state.value;if(o.operator=h,this.match(29)){this.toAssignable(n,!0),o.left=n;let l=s.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=n;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(n,this.finishNode(o,"AssignmentExpression")),o}else i&&this.checkExpressionErrors(t,!0);return n}parseMaybeConditional(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}parseConditional(t,e,s){if(this.eat(17)){let i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){let r=this.getPrivateNameSV(t);(s>=we(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,t,{identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}let i=this.state.type;if(ni(i)&&(this.prodParam.hasIn||!this.match(58))){let r=we(i);if(r>s){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;let o=i===41||i===42,h=i===40;if(h&&(r=we(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(i,r);let l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(c===41||c===42)||o&&c===40)throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,e,s)}}return t}parseExprOpRightExpr(t,e){let s=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(p.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(e))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){let s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,pi(t)?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,s=this.parseMaybeAssign();return Ws.has(s.type)&&!((t=s.extra)!=null&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,e,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,e),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let s=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}let r=this.match(34),n=this.startNode();if(hi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let h=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&h){let l=n.argument;l.type==="Identifier"?this.raise(p.StrictDelete,n):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,n)}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,r,t);if(i){let{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?Ve(h):Ve(h)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,s),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){let n=t;return this.checkLVal(n.argument,this.finishNode(n,"UpdateExpression")),t}let i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;oi(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(i);n.operator=this.state.value,n.prefix=!1,n.argument=r,this.next(),this.checkLVal(r,r=this.finishNode(n,"UpdateExpression"))}return r}parseExprSubscripts(t){let e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,s){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,e,s,i){let{type:r}=this.state;if(!s&&r===15)return this.parseBind(t,e,s,i);if(Ie(r))return this.parseTaggedTemplateExpression(t,e,i);let n=!1;if(r===18){if(s&&(this.raise(p.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}}parseMember(t,e,s,i,r){let n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(p.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,i){let r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,i){let r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e);o.callee=t;let{maybeAsyncArrow:h,optionalChainMember:l}=s;h&&(this.expressionScope.enter(Li()),n=new Q),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type!=="Super",o,n);let c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){let i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,e),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(p.ImportCallArity,t);else for(let s of t.arguments)s.type==="SpreadElement"&&this.raise(p.ImportCallSpreadArgument,s);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,i){let r=[],n=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}r.push(this.parseExprListItem(!1,i,e))}return this.state.inFSharpPipelineDirectBody=o,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,(s=e.extra)==null?void 0:s.trailingCommaLoc),e.innerComments&&de(t,e.innerComments),e.callee.trailingComments&&de(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(p.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let r=e.callee=this.parseNoCallExpr();if(r.type==="MemberExpression")return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,r)}case 139:return this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.parseTopicReference(r);this.unexpected();break}case 47:{let r=this.input.codePointAt(this.nextTokenStart());R(r)||r===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(i===137)return this.parseDecimalLiteral(this.state.value);if(C(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:h}=this.state;if(h===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(C(h))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(h===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return r&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=v(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){let e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){let r=s==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(s==="smart"?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,r)}else throw this.raise(p.PipeTopicUnconfiguredToken,e,{token:q(i)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:q(s)}]);case"smart":return s===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Ce(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(p.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(v(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(p.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let s=this.isContextual(105);if(s||this.unexpected(),this.expectPlugin(s?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=s?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(this.offsetToSourcePos(s.start),this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){let s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e=this.state.startLoc,s;this.next(),this.expressionScope.enter(vi());let i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],h=new Q,l=!0,c,u;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,h.optionalParametersLoc===null?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;let d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?(s=this.startNodeAt(n),s.expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,s),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),s=this.parseNoCallExpr();t.callee=s,e&&(s.type==="Import"||s.type==="ImportExpression")&&this.raise(p.ImportCallNotNewExpression,s)}parseTemplateElement(t){let{start:e,startLoc:s,end:i,value:r}=this.state,n=e+1,o=this.startNodeAt(v(s,1));r===null&&(t||this.raise(p.InvalidEscapeSequenceTemplate,v(this.state.firstInvalidTemplateEscapePos,1)));let h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,` +`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:l}=s,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,_(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,_(t.key))}else t.value=_(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(D(s))r=this.parseIdentifier(!0);else switch(s){case 135:r=this.parseNumericLiteral(i);break;case 134:r=this.parseStringLiteral(i);break;case 136:r=this.parseBigIntLiteral(i);break;case 139:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:if(s===137){r=this.parseDecimalLiteral(i);break}this.unexpected()}t.key=r,s!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Ce(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,i){this.scope.enter(6);let r=Ce(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=8),this.prodParam.enter(r),this.initFunction(t,s);let n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){let i=e&&!this.match(5);if(this.expressionScope.enter(Zt()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let h=!this.isSimpleParamList(t.params);o&&h&&this.raise(p.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!r&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!h,e,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e10||!bi(t))return;if(s&&Pi(t)){this.raise(p.UnexpectedKeyword,e,{keyword:t});return}if((this.state.strict?i?Xt:Jt:Ht)(t,this.inModule)){this.raise(p.UnexpectedReservedWord,e,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,e);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,e);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,e);return}this.expressionScope.recordAsyncArrowParametersError(e)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,e);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,e),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Ie(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)&&!this.match(11)&&(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,t)}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(p.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}else{let s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(e|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(e&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},$e={kind:1},er={kind:2},tr=/[\uD800-\uDFFF]/u,ze=/in(?:stanceof)?/y;function sr(a,t,e){for(let s=0;s0)for(let[r,n]of Array.from(this.scope.undefinedExports))this.raise(p.ModuleExportUndefined,n,{localName:r});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return e===140?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",v(this.state.startLoc,-1)),i}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,i=s.value,r=this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end)),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,e){if(R(t)){if(ze.lastIndex=e,ze.test(this.input)){let s=this.codePointAtPos(ze.lastIndex);if(!G(s)&&s!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return e===123||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();if(t===102&&!e)return!1;if(C(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,i=this.startNode(),r=!!(t&2),n=!!(t&4),o=t&1;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,i):this.raise(p.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc):r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),u=this.codePointAtPos(c);if(u!==91&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&u!==123))break}case 75:r||this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,this.state.startLoc),this.next();let c;return s===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,e),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}let h=this.state.value,l=this.parseExpression();return C(s)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(p.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do e.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e=this.state.startLoc,s;if(this.match(10)){let i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);let r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e);i.object=s,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,s=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;sthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push($e);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(100);{let h=this.isContextual(96)&&this.startsAwaitUsing(),l=h||this.isContextual(107)&&this.startsUsingForOf(),c=s&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let u=this.startNode(),f;h?(f="await using",this.recordAwaitIfAllowed()||this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(u,!0,f);let d=this.finishNode(u,"VariableDeclaration"),x=this.match(58);return x&&l&&this.raise(p.ForInUsing,d),(x||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,e):(e!==null&&this.unexpected(e),this.parseFor(t,d))}}let i=this.isContextual(95),r=new Q,n=this.parseExpression(!0,r),o=this.isContextual(102);if(o&&(s&&this.raise(p.ForOfLet,n),e===null&&i&&n.type==="Identifier"&&this.raise(p.ForOfAsync,n)),o||this.match(58)){this.checkDestructuringPrivate(r),this.toAssignable(n,!0);let h=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:h}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(r,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(p.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(er),this.scope.enter(0);let s;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(i&&this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(p.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push($e),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(p.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,i){for(let n of this.state.labels)n.name===e&&this.raise(p.LabelRedeclaration,s,{labelName:e});let r=ai(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=r;else break}return this.state.labels.push({name:e,kind:r,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,i,r){let n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}parseBlockOrModuleBlockBody(t,e,s,i,r){let n=this.state.strict,o=!1,h=!1;for(;!this.match(i);){let l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);e.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}r==null||r.call(this,o),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let i=this.match(58);return this.next(),i?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(p.ForInOfLoopInitializer,e,{type:i?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(p.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,i=!1){let r=t.declarations=[];for(t.kind=s;;){let n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!i&&(n.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(102)))?this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(s==="const"||s==="using"||s==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let s=this.parseBindingAtom();(e==="using"||e==="await using")&&(s.type==="ArrayPattern"||s.type==="ObjectPattern")&&this.raise(p.UsingDeclarationHasBindingPattern,s.loc.start),this.checkLVal(s,{type:"VariableDeclarator"},e==="var"?5:8201),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let s=e&2,i=!!(e&1),r=i&&!(e&4),n=!!(e&8);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ce(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||C(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(ki()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let n=this.startNode();i.length&&(n.decorators=i,this.resetStartLocationFromNode(n,i[0]),i=[]),this.parseClassMember(r,n,s),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(p.DecoratorConstructor,n)}}),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(r,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=e;return i.computed=!1,i.key=s,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,i)}parseClassMemberWithIsStatic(t,e,s,i){let r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";let w=this.match(139);if(this.parseClassElementName(c),w){this.pushClassPrivateMethod(t,n,!0,!1);return}this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,r.key),this.pushClassMethod(t,r,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&C(this.state.type),d=this.parseClassElementName(e),x=f?d.name:null,S=this.isPrivateName(d),N=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",S){this.pushClassPrivateMethod(t,n,!1,!1);return}let w=this.isNonstaticConstructor(r),I=!1;w&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,d),w&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,d),s.hadConstructor=!0,I=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,w,I)}else if(this.isClassProperty())S?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(x==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let w=this.eat(55);u.optional&&this.unexpected(N),c.kind="method";let I=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),I?this.pushClassPrivateMethod(t,n,w,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,r.key),this.pushClassMethod(t,r,w,!0,!1,!1))}else if((x==="get"||x==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),c.kind=x;let w=this.match(139);this.parseClassElementName(r),w?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,r.key),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}else if(x==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let w=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,w)}else this.isLineTerminator()?S?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===132||e===134)&&t.static&&s==="prototype"&&this.raise(p.StaticPrototype,this.state.startLoc),e===139){s==="constructor"&&this.raise(p.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var s;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(p.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){!s&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(p.ConstructorClassField,e.key);let i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,i){let r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);let n=r.kind==="get"?r.static?6:2:r.kind==="set"?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Zt()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,i=8331){if(C(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else if(s||!e)t.id=null;else throw this.raise(p.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,98);let u;if(l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var f;let d=t;if(this.checkExport(d,!0,!1,!!d.source),((f=d.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,x=this.parseExportDefaultExpression();if(d.declaration=x,x.type==="ClassDeclaration")this.maybeTakeDecorators(e,x,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",e==null?void 0:e.loc.start);let s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e,s;(s=(e=t).specifiers)!=null||(e.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let e=t;e.specifiers||(e.specifiers=[]);let s=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(s)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(C(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(C(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||C(this.state.type)&&s)return!0;if(this.match(65)&&s){let i=this.input.charCodeAt(this.nextTokenStartSince(e+4));return i===34||i===39}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(p.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(p.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,i){if(e){var r;if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,o)}}else if((r=t.specifiers)!=null&&r.length)for(let o of t.specifiers){let{exported:h}=o,l=h.type==="Identifier"?h.name:h.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(p.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:h}=o;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(t,h.name)}else if(o.type==="VariableDeclaration")for(let h of o.declarations)this.checkDeclaration(h.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(p.DuplicateDefaultExport,t):this.raise(p.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),r=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Mi(t.local):t.exported||(t.exported=_(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),e=tr.exec(t.value);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:e,value:s})=>s.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")):!1}checkImportReflection(t){let{specifiers:e}=t,s=e.length===1?e[0].type:null;if(t.phase==="source")s!=="ImportDefaultSpecifier"&&this.raise(p.SourcePhaseImportRequiresDefault,e[0].loc.start);else if(t.phase==="defer")s!=="ImportNamespaceSpecifier"&&this.raise(p.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var i;s!=="ImportDefaultSpecifier"&&this.raise(p.ImportReflectionNotBinding,e[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(p.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:e}=t;if(e!=null){let s=e.find(i=>{let r;if(i.type==="ExportSpecifier"?r=i.local:i.type==="ImportSpecifier"&&(r=i.imported),r!==void 0)return r.type==="Identifier"?r.name!=="default":r.value!=="default"});s!==void 0&&this.raise(p.ImportJSONBindingNotDefault,s.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,e,s,i){e||(s==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),s==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):s==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let s=this.parseIdentifier(!0),{type:i}=this.state;return(D(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return C(e)?e!==98||this.lookaheadCharCode()===102:e!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var e;return(e=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{type:e},s),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),e.add(i),this.match(134)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(p.ModuleAttributeDifferentFromType,s.key),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(134))throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;var s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():e=this.parseImportAttributes(),s=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(p.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}else if(D(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let s=this.startNode(),i=this.match(134),r=this.isContextual(130);s.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(s,i,t.importKind==="type"||t.importKind==="typeof",r,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:n}=t;if(e)throw this.raise(p.ImportBindingIsString,t,{importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=_(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},ke=class extends ht{constructor(t,e,s){t=Zi(t),super(t,e),this.options=t,this.initializeScopes(),this.plugins=s,this.filename=t.sourceFilename,this.startIndex=t.startIndex}getScopeHandler(){return fe}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function ir(a,t){var e;if(((e=t)==null?void 0:e.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=ce(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",ce(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",ce(t,a).parse()}catch{}throw s}}else return ce(t,a).parse()}function rr(a,t){let e=ce(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function ar(a){let t={};for(let e of Object.keys(a))t[e]=F(a[e]);return t}var nr=ar(ti);function ce(a,t){let e=ke,s=new Map;if(a!=null&&a.plugins){for(let i of a.plugins){let r,n;typeof i=="string"?r=i:[r,n]=i,s.has(r)||s.set(r,n||{})}Gi(s),e=or(s)}return new e(a,t,s)}var zt=new Map;function or(a){let t=[];for(let i of Yi)a.has(i)&&t.push(i);let e=t.join("|"),s=zt.get(e);if(!s){s=ke;for(let i of t)s=is[i](s);zt.set(e,s)}return s}me.parse=ir;me.parseExpression=rr;me.tokTypes=nr});var Et={};zs(Et,{parsers:()=>Hr});var Be=It(gt(),1);function ve(a){return(t,e,s)=>{let i=!!(s!=null&&s.backwards);if(e===!1)return!1;let{length:r}=t,n=e;for(;n>=0&&n{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},St=Tr;function br(a){return Array.isArray(a)&&a.length>0}var Pe=br;function D(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(D(e),t):t}function B(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function Ar(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ys=Ar;var Sr=ys(["Block","CommentBlock","MultiLine"]),ge=Sr;function wr(a){let t=`*${a.value}*`.split(` -`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var wt=wr;function Cr(a){return ge(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var xs=Cr;var Te=null;function be(a){if(Te!==null&&typeof Te.property){let t=Te;return Te=be.prototype=null,t}return Te=be.prototype=a??Object.create(null),new be}var Er=10;for(let a=0;a<=Er;a++)be();function Ct(a){return be(a)}function Ir(a,t="type"){Ct(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var Ps=Ir;var gs={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Nr=Ps(gs),Ts=Nr;function Et(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var n;(n=r.leadingComments)!=null&&n.some(xs)&&i.add(D(r))}),a=Fe(a,r=>{if(r.type==="ParenthesizedExpression"){let{expression:n}=r;if(n.type==="TypeCastExpression")return n.range=[...r.range],n;let o=D(r);if(!i.has(o))return n.extra={...n.extra,parenthesized:!0},n}})}if(a=Fe(a,i=>{var r;switch(i.type){case"LogicalExpression":if(bs(i))return It(i);break;case"VariableDeclaration":{let n=St(!1,i.declarations,-1);n!=null&&n.init&&s[B(n)]!==";"&&(i.range=[D(i),B(n)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let n=D(i);i.name={type:"Identifier",name:i.name,range:[n,n+i.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if(e==="meriyah"&&((r=i.exported)==null?void 0:r.type)==="Identifier"){let{exported:n}=i,o=s.slice(D(n),B(n));(o.startsWith('"')||o.startsWith("'"))&&(i.exported={...i.exported,type:"Literal",value:i.exported.name,raw:o})}break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),Pe(a.comments)){let i=St(!1,a.comments,-1);for(let r=a.comments.length-2;r>=0;r--){let n=a.comments[r];B(n)===D(i)&&ge(n)&&ge(i)&&wt(n)&&wt(i)&&(a.comments.splice(r+1,1),n.value+="*//*"+i.value,n.range=[D(n),B(i)]),i=n}}return a.type==="Program"&&(a.range=[0,s.length]),a}function bs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function It(a){return bs(a)?It({type:"LogicalExpression",operator:a.operator,left:It({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),B(a.right.left)]}),right:a.right.right,range:[D(a),B(a)]}):a}var As=kr;function vr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Be=vr;function Lr(a){let{message:t,loc:{line:e,column:s},reasonCode:i}=a,r=a;(i==="MissingPlugin"||i==="MissingOneOfPlugins")&&(t="Unexpected token.",r=void 0);let n=` (${e}:${s})`;return t.endsWith(n)&&(t=t.slice(0,-n.length)),Be(t,{loc:{start:{line:e,column:s+1}},cause:r})}var Re=Lr;var Dr=(a,t,e,s)=>{if(!(a&&t==null))return t.replaceAll?t.replaceAll(e,s):e.global?t.replace(e,s):t.split(e).join(s)},ie=Dr;var Mr=/\*\/$/,Or=/^\/\*\*?/,Fr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Br=/(^|\s+)\/\/([^\n\r]*)/g,Ss=/^(\r?\n)+/,Rr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ws=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ur=/(\r?\n|^) *\* ?/g,_r=[];function Cs(a){let t=a.match(Fr);return t?t[0].trimStart():""}function Es(a){let t=` -`;a=ie(!1,a.replace(Or,"").replace(Mr,""),Ur,"$1");let e="";for(;e!==a;)e=a,a=ie(!1,a,Rr,`${t}$1 $2${t}`);a=a.replace(Ss,"").trimEnd();let s=Object.create(null),i=ie(!1,a,ws,"").replace(Ss,"").trimEnd(),r;for(;r=ws.exec(a);){let n=ie(!1,r[2],Br,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[..._r,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function jr(a){let t=Oe(a);t&&(a=a.slice(t.length+1));let e=Cs(a),{pragmas:s,comments:i}=Es(e);return{shebang:t,text:a,pragmas:s,comments:i}}function Is(a){let{pragmas:t}=jr(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function $r(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:Is,locStart:D,locEnd:B,...a}}var G=$r;function Vr(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Ns=Vr;function qr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Ue=qr;var re=a=>G(Jr(a)),zr={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks="v8intrinsic",vs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V=(a,t=zr)=>({...t,plugins:[...t.plugins,...a]}),Kr=/@(?:no)?flow\b/u;function Hr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=Oe(a);e&&(a=a.slice(e.length));let s=ds(a,0);return s!==!1&&(a=a.slice(0,s)),Kr.test(a)}function Wr(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Xr.has(r.reasonCode));if(i)throw i;return s}function Jr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&Hr(e,s))return s.parser="babel-flow",Bs.parse(e,s);let i=t;(s.__babelSourceType??Ns(s))==="script"&&(i=i.map(c=>({...c,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...vs,ks]:vs).flatMap(l=>i.map(u=>V([l],u))):n&&(i=i.map(c=>V([ks],c)));let o=a?_e.parseExpression:_e.parse,h;try{h=ms(i.map(c=>()=>Wr(o,e,c)))}catch({errors:[c]}){throw Re(c)}return a&&(h=Ue(h,{text:e,rootMarker:s.rootMarker})),As(h,{parser:"babel",text:e})}}var Xr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs=[V(["jsx"])],Ls=re({optionsCombinations:Fs}),Ds=re({optionsCombinations:[V(["jsx","typescript"]),V(["typescript"])]}),Ms=re({isExpression:!0,optionsCombinations:[V(["jsx"])]}),Os=re({isExpression:!0,optionsCombinations:[V(["typescript"])]}),Bs=re({optionsCombinations:[V(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),Gr=re({optionsCombinations:Fs.map(a=>V(["estree"],a))}),Rs={babel:Ls,"babel-flow":Bs,"babel-ts":Ds,__js_expression:Ms,__ts_expression:Os,__vue_expression:Ms,__vue_ts_expression:Os,__vue_event_binding:Ls,__vue_ts_event_binding:Ds,__babel_estree:Gr};var Us=vt(At(),1);function _s(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Us.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Re(r)}if(!t&&Pe(i.comments))throw H(i.comments[0],"Comment");return ae(i),Ue(i,{type:"JsonRoot",text:s})}}function H(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Be(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ae(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ae(t);return;case"ObjectExpression":for(let t of a.properties)ae(t);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&ae(a.key),ae(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw H(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw H(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Pe(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)ae(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Nt=_s(),Yr={json:G({parse:Nt,hasPragma(){return!0}}),json5:G(Nt),jsonc:G(Nt),"json-stringify":G({parse:_s({allowComments:!1}),astFormat:"estree-json"})},js=Yr;var Qr={...Rs,...js};var Ln=kt;export{Ln as default,Qr as parsers}; +`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var os=lr;function cr(a,t){return t===!1?!1:a.charAt(t)==="/"&&a.charAt(t+1)==="/"?as(a,t):t}var hs=cr;function pr(a,t){let e=null,s=t;for(;s!==e;)e=s,s=rs(a,s),s=ns(a,s),s=hs(a,s),s=os(a,s);return s}var ls=pr;function ur(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var cs=ur;function fr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(` +`);return t===-1?a:a.slice(0,t)}var Le=fr;var dr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=dr;function mr(a){return Array.isArray(a)&&a.length>0}var ye=mr;function L(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(L(e),t):t}function j(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function yr(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ps=yr;var xr=ps(["Block","CommentBlock","MultiLine"]),xe=xr;function Pr(a){let t=`*${a.value}*`.split(` +`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var bt=Pr;function gr(a){return xe(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var us=gr;var Pe=null;function ge(a){if(Pe!==null&&typeof Pe.property){let t=Pe;return Pe=ge.prototype=null,t}return Pe=ge.prototype=a??Object.create(null),new ge}var Tr=10;for(let a=0;a<=Tr;a++)ge();function At(a){return ge(a)}function br(a,t="type"){At(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var fs=br;var ds={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Ar=fs(ds),ms=Ar;function St(a,t){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let s=0;s{var n;(n=r.leadingComments)!=null&&n.some(us)&&i.add(L(r))}),a=De(a,r=>{if(r.type==="ParenthesizedExpression"){let{expression:n}=r;if(n.type==="TypeCastExpression")return n.range=[...r.range],n;let o=L(r);if(!i.has(o))return n.extra={...n.extra,parenthesized:!0},n}})}if(a=De(a,i=>{switch(i.type){case"LogicalExpression":if(ys(i))return wt(i);break;case"VariableDeclaration":{let r=Tt(!1,i.declarations,-1);r!=null&&r.init&&s[j(r)]!==";"&&(i.range=[L(i),j(r)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let r=L(i);i.name={type:"Identifier",name:i.name,range:[r,r+i.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),ye(a.comments)){let i=Tt(!1,a.comments,-1);for(let r=a.comments.length-2;r>=0;r--){let n=a.comments[r];j(n)===L(i)&&xe(n)&&xe(i)&&bt(n)&&bt(i)&&(a.comments.splice(r+1,1),n.value+="*//*"+i.value,n.range=[L(n),j(i)]),i=n}}return a.type==="Program"&&(a.range=[0,s.length]),a}function ys(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function wt(a){return ys(a)?wt({type:"LogicalExpression",operator:a.operator,left:wt({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[L(a.left),j(a.right.left)]}),right:a.right.right,range:[L(a),j(a)]}):a}var xs=Sr;function wr(a,t){let e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var Me=wr;function Cr(a){let{message:t,loc:{line:e,column:s},reasonCode:i}=a,r=a;(i==="MissingPlugin"||i==="MissingOneOfPlugins")&&(t="Unexpected token.",r=void 0);let n=` (${e}:${s})`;return t.endsWith(n)&&(t=t.slice(0,-n.length)),Me(t,{loc:{start:{line:e,column:s+1}},cause:r})}var Oe=Cr;var Er=(a,t,e,s)=>{if(!(a&&t==null))return t.replaceAll?t.replaceAll(e,s):e.global?t.replace(e,s):t.split(e).join(s)},se=Er;var Ir=/\*\/$/,Nr=/^\/\*\*?/,kr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,vr=/(^|\s+)\/\/([^\n\r]*)/g,Ps=/^(\r?\n)+/,Lr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,gs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Dr=/(\r?\n|^) *\* ?/g,Mr=[];function Ts(a){let t=a.match(kr);return t?t[0].trimStart():""}function bs(a){let t=` +`;a=se(!1,a.replace(Nr,"").replace(Ir,""),Dr,"$1");let e="";for(;e!==a;)e=a,a=se(!1,a,Lr,`${t}$1 $2${t}`);a=a.replace(Ps,"").trimEnd();let s=Object.create(null),i=se(!1,a,gs,"").replace(Ps,"").trimEnd(),r;for(;r=gs.exec(a);){let n=se(!1,r[2],vr,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...Mr,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function Or(a){let t=Le(a);t&&(a=a.slice(t.length+1));let e=Ts(a),{pragmas:s,comments:i}=bs(e);return{shebang:t,text:a,pragmas:s,comments:i}}function As(a){let{pragmas:t}=Or(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Fr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:As,locStart:L,locEnd:j,...a}}var W=Fr;function Br(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ss=Br;function Rr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Fe=Rr;var ie=a=>W(zr(a)),Ur={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ws="v8intrinsic",Cs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$=(a,t=Ur)=>({...t,plugins:[...t.plugins,...a]}),_r=/@(?:no)?flow\b/u;function jr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=Le(a);e&&(a=a.slice(e.length));let s=ls(a,0);return s!==!1&&(a=a.slice(0,s)),_r.test(a)}function $r(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Vr.has(r.reasonCode));if(i)throw i;return s}function zr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&jr(e,s))return s.parser="babel-flow",Ls.parse(e,s);let i=t;(s.__babelSourceType??Ss(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...Cs,ws]:Cs).flatMap(c=>i.map(u=>$([c],u))):n&&(i=i.map(l=>$([ws],l)));let o=a?Be.parseExpression:Be.parse,h;try{h=cs(i.map(l=>()=>$r(o,e,l)))}catch({errors:[l]}){throw Oe(l)}return a&&(h=Fe(h,{text:e,rootMarker:s.rootMarker})),xs(h,{parser:"babel",text:e})}}var Vr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),vs=[$(["jsx"])],Es=ie({optionsCombinations:vs}),Is=ie({optionsCombinations:[$(["jsx","typescript"]),$(["typescript"])]}),Ns=ie({isExpression:!0,optionsCombinations:[$(["jsx"])]}),ks=ie({isExpression:!0,optionsCombinations:[$(["typescript"])]}),Ls=ie({optionsCombinations:[$(["jsx",["flow",{all:!0}],"flowComments"])]}),qr=ie({optionsCombinations:vs.map(a=>$(["estree"],a))}),Ds={babel:Es,"babel-flow":Ls,"babel-ts":Is,__js_expression:Ns,__ts_expression:ks,__vue_expression:Ns,__vue_ts_expression:ks,__vue_event_binding:Es,__vue_ts_event_binding:Is,__babel_estree:qr};var Ms=It(gt(),1);function Os(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Ms.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Oe(r)}if(!t&&ye(i.comments))throw K(i.comments[0],"Comment");return re(i),Fe(i,{type:"JsonRoot",text:s})}}function K(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Me(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function re(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&re(t);return;case"ObjectExpression":for(let t of a.properties)re(t);return;case"ObjectProperty":if(a.computed)throw K(a.key,"Computed key");if(a.shorthand)throw K(a.key,"Shorthand property");a.key.type!=="Identifier"&&re(a.key),re(a.value);return;case"UnaryExpression":{let{operator:t,argument:e}=a;if(t!=="+"&&t!=="-")throw K(a,`Operator '${a.operator}'`);if(e.type==="NumericLiteral"||e.type==="Identifier"&&(e.name==="Infinity"||e.name==="NaN"))return;throw K(e,`Operator '${t}' before '${e.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw K(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(ye(a.expressions))throw K(a.expressions[0],"'TemplateLiteral' with expression");for(let t of a.quasis)re(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw K(a,`'${a.type}'`)}}var Ct=Os(),Kr={json:W({parse:Ct,hasPragma(){return!0}}),json5:W(Ct),jsonc:W(Ct),"json-stringify":W({parse:Os({allowComments:!1}),astFormat:"estree-json"})},Fs=Kr;var Hr={...Ds,...Fs};var Cn=Et;export{Cn as default,Hr as parsers}; diff --git a/node_modules/prettier/plugins/estree.js b/node_modules/prettier/plugins/estree.js index 53656e69..2fb16513 100644 --- a/node_modules/prettier/plugins/estree.js +++ b/node_modules/prettier/plugins/estree.js @@ -1,36 +1,36 @@ -(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var In=Object.defineProperty;var Wa=Object.getOwnPropertyDescriptor;var Ga=Object.getOwnPropertyNames;var Ua=Object.prototype.hasOwnProperty;var Js=e=>{throw TypeError(e)};var Ar=(e,t)=>{for(var r in t)In(e,r,{get:t[r],enumerable:!0})},Na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ga(t))!Ua.call(e,s)&&s!==r&&In(e,s,{get:()=>t[s],enumerable:!(n=Wa(t,s))||n.enumerable});return e};var Xa=e=>Na(In({},"__esModule",{value:!0}),e);var qs=(e,t,r)=>t.has(e)||Js("Cannot "+r);var pt=(e,t,r)=>(qs(e,t,"read from private field"),r?r.call(e):t.get(e)),Ws=(e,t,r)=>t.has(e)?Js("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gs=(e,t,r,n)=>(qs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var om={};Ar(om,{languages:()=>am,options:()=>va,printers:()=>im});var Us=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var Os={};Ar(Os,{canAttachComment:()=>Ap,embed:()=>Qu,experimentalFeatures:()=>em,getCommentChildNodes:()=>Tp,getVisitorKeys:()=>gr,handleComments:()=>zn,insertPragma:()=>pi,isBlockComment:()=>re,isGap:()=>dp,massageAstNode:()=>Cu,print:()=>Ia,printComment:()=>Pu,willPrintOwnComments:()=>Qn});var Ya=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},N=Ya;var Ha=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},O=Ha;function Va(e){return e!==null&&typeof e=="object"}var Ns=Va;function*$a(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Ns(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*Ka(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uD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DC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Hs(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Vs(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var $s=e=>!(Hs(e)||Vs(e));var za=/[^\x20-\x7F]/u;function Qa(e){if(!e)return 0;if(!za.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=$s(n)?1:2)}return t}var et=Qa;function Tr(e){return(t,r,n)=>{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i{throw TypeError(e)};var Ar=(e,t)=>{for(var r in t)In(e,r,{get:t[r],enumerable:!0})},Na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ya(t))!Ha.call(e,s)&&s!==r&&In(e,s,{get:()=>t[s],enumerable:!(n=Xa(t,s))||n.enumerable});return e};var Va=e=>Na(In({},"__esModule",{value:!0}),e);var Js=(e,t,r)=>t.has(e)||Rs("Cannot "+r);var pt=(e,t,r)=>(Js(e,t,"read from private field"),r?r.call(e):t.get(e)),qs=(e,t,r)=>t.has(e)?Rs("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ws=(e,t,r,n)=>(Js(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var ym={};Ar(ym,{languages:()=>mm,options:()=>Ja,printers:()=>lm});var Gs=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var ws={};Ar(ws,{canAttachComment:()=>hp,embed:()=>Zu,experimentalFeatures:()=>um,getCommentChildNodes:()=>gp,getVisitorKeys:()=>gr,handleComments:()=>Kn,insertPragma:()=>ci,isBlockComment:()=>ee,isGap:()=>Sp,massageAstNode:()=>Cu,print:()=>Oa,printComment:()=>Pu,willPrintOwnComments:()=>Qn});var $a=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Y=$a;var Ka=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=Ka;function Qa(e){return e!==null&&typeof e=="object"}var Us=Qa;function*za(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Us(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*Za(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\u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FFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Hs(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ns(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Vs=e=>!(Hs(e)||Ns(e));var eo=/[^\x20-\x7F]/u;function to(e){if(!e)return 0;if(!eo.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Vs(n)?1:2)}return t}var ze=to;function Tr(e){return(t,r,n)=>{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i0}var w=so;var dr="'",Qs='"';function uo(e,t){let r=t===!0||t===dr?dr:Qs,n=r===dr?Qs:dr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var xr=uo;function io(e,t,r){let n=t==='"'?"'":'"',u=N(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var Zs=io;function ao(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote);return Zs(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var tt=ao;function R(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(R(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ht(e,t){let r=R(e);return Number.isInteger(r)&&r===R(t)}function oo(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function eu(e,t){return ht(e,t)&&oo(e,t)}var Qt=null;function Zt(e){if(Qt!==null&&typeof Qt.property){let t=Qt;return Qt=Zt.prototype=null,t}return Qt=Zt.prototype=e??Object.create(null),new Zt}var po=10;for(let e=0;e<=po;e++)Zt();function Ln(e){return Zt(e)}function co(e,t="type"){Ln(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var hr=co;var tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var lo=hr(tu),gr=lo;function mo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var v=mo;var yo=v(["Block","CommentBlock","MultiLine"]),re=yo;var Do=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Sr=Do;function fo(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Eo(e,t){return t.some(r=>fo(e,r))}var ru=Eo;function Fo({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Br=Fo;function tr(e,t){return t(e)||Xs(e,{getVisitorKeys:gr,predicate:t})}function jt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||q(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Te(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uu(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Pr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var vt=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),iu=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),U=v(["ArrayExpression","TupleExpression"]),se=v(["ObjectExpression","RecordExpression"]);function au(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Ce(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function vn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Ce(e.argument)}function Q(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Mn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var kr=v(["Literal","BooleanLiteral","BigIntLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Co=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier","Import"]),we=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),_t=v(["FunctionExpression","ArrowFunctionExpression"]);function Ao(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function wn(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var X=v(["JSXElement","JSXFragment"]);function gt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Ir(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!ht(e,e.typeAnnotation)}var De=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Ft(e){return q(e)||e.type==="BindExpression"&&!!e.object}var To=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Mt(e){return Br(e)||Sr(e)||To(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function xo(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var ho=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function go(e){return ru(e,ho)}function St(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=oe(e);if(r.length===1){if(wn(e)&&St(t))return _t(r[0]);if(xo(e.callee))return wn(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Q(r[0]))&&go(e.callee))return r[2]&&!Ce(r[2])?!1:(r.length===2?_t(r[1]):Ao(r[1])&&K(r[1]).length<=1)||wn(r[1]);return!1}var pu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=pu(v(["CallExpression","OptionalCallExpression"])),q=pu(v(["MemberExpression","OptionalMemberExpression"]));function Rn(e,t=5){return cu(e,t)<=t}function cu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=cu(s,t-r)),r>t)return r}return r}var So=.25;function rr(e,t){let{printWidth:r}=t;if(d(e))return!1;let n=r*So;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||vn(e)&&!d(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:Q(e)?tt(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` -`):e.type==="UnaryExpression"?rr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:kr(e)}function Oe(e,t){return X(t)?Bt(t):d(t,g.Leading,r=>te(e,k(r)))}function nu(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function Lr(e,t){return(e.type==="TemplateLiteral"&&nu(e)||e.type==="TaggedTemplateExpression"&&nu(e.quasi))&&!te(t,R(e),{backwards:!0})}function wr(e){if(!d(e))return!1;let t=O(!1,ct(e,g.Dangling),-1);return t&&!re(t)}function lu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(_t(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of oe(r))if(_t(n))return!0}return!1}function Or(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Bo=new Set(["!","-","+","~"]);function be(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return be(e.expression,t);let r=n=>be(n,t-1);if(Mn(e))return et(e.pattern??e.regex.pattern)<=5;if(kr(e)||Co(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(U(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||be(e.callee,t)){let n=oe(e);return n.length<=t&&n.every(r)}return!1}return q(e)?be(e.object,t)&&be(e.property,t):e.type==="UnaryExpression"&&Bo.has(e.operator)||e.type==="UpdateExpression"?be(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function mu(e){return e}function ae(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ie(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ie(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ie(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ie(e.callee,t);case"ConditionalExpression":return ie(e.test,t);case"UpdateExpression":return!e.prefix&&ie(e.argument,t);case"BindExpression":return e.object&&ie(e.object,t);case"SequenceExpression":return ie(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie(e.expression,t);default:return t(e)}}var su={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},jn={">>":!0,">>>":!0,"<<":!0};function nr(e,t){return!(er(t)!==er(e)||e==="**"||su[e]&&su[t]||t==="%"&&br[e]||e==="%"&&br[t]||t!==e&&br[t]&&br[e]||jn[e]&&jn[t])}var bo=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function er(e){return bo.get(e)}function yu(e){return!!jn[e]||e==="|"||e==="^"||e==="&"}function Du(e){var r;if(e.rest)return!0;let t=K(e);return((r=O(!1,t,-1))==null?void 0:r.type)==="RestElement"}var On=new WeakMap;function K(e){if(On.has(e))return On.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),On.set(e,t),t}function fu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var _n=new WeakMap;function oe(e){if(_n.has(e))return _n.get(e);if(e.type==="ChainExpression")return oe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes),e.options&&t.push(e.options)),_n.set(e,t),t}function Rt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Rt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Jn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.attributes||e.options?-2:-1))return[...r,"source"];if(e.attributes&&(t===1||t===-1))return[...r,"attributes"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function sr(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Bt(e){return(e==null?void 0:e.prettierIgnore)||d(e,g.PrettierIgnore)}var g={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&g.Leading&&!r.leading||e&g.Trailing&&!r.trailing||e&g.Dangling&&(r.leading||r.trailing)||e&g.Block&&!re(r)||e&g.Line&&!vt(r)||e&g.First&&n!==0||e&g.Last&&n!==s.length-1||e&g.PrettierIgnore&&!sr(r)||t&&!t(r))};function d(e,t,r){if(!w(e==null?void 0:e.comments))return!1;let n=Eu(t,r);return n?e.comments.some(n):!0}function ct(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Eu(t,r);return n?e.comments.filter(n):e.comments}var pe=(e,{originalText:t})=>Ot(t,k(e));function lt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ae(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!gt(e))}var Te=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ne=v(["UnionTypeAnnotation","TSUnionType"]),_r=v(["IntersectionTypeAnnotation","TSIntersectionType"]);var Po=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Fu(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(e.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(e.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:i}=e;Q(i)||Ce(i)?t.key=String(i.value):i.type==="Identifier"&&(t.key=i.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=N(!1,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":U(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>re(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}Fu.ignoredProperties=Po;var Cu=Fu;var rt="string",_e="array",nt="cursor",Xe="indent",Ye="align",st="trim",le="group",Pe="fill",xe="if-break",He="indent-if-break",Ve="line-suffix",$e="line-suffix-boundary",me="line",je="label",ve="break-parent",jr=new Set([nt,Xe,Ye,st,le,Pe,xe,He,Ve,$e,me,je,ve]);function ko(e){if(typeof e=="string")return rt;if(Array.isArray(e))return _e;if(!e)return;let{type:t}=e;if(jr.has(t))return t}var ut=ko;var Io=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Lo(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(ut(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Io([...jr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var qn=class extends Error{name="InvalidDocError";constructor(t){super(Lo(t)),this.doc=t}},Ct=qn;var Au={};function wo(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Au){r(s.pop());continue}r&&s.push(u,Au);let i=ut(u);if(!i)throw new Ct(u);if((t==null?void 0:t(u))!==!1)switch(i){case _e:case Pe:{let a=i===_e?u:u.parts;for(let o=a.length,c=o-1;c>=0;--c)s.push(a[c]);break}case xe:s.push(u.flatContents,u.breakContents);break;case le:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Ye:case Xe:case He:case je:case Ve:s.push(u.contents);break;case rt:case nt:case st:case $e:case me:case ve:break;default:throw new Ct(u)}}}var Wn=wo;var Tu=()=>{},Ke=Tu,vr=Tu;function f(e){return Ke(e),{type:Xe,contents:e}}function he(e,t){return Ke(t),{type:Ye,contents:t,n:e}}function l(e,t={}){return Ke(e),vr(t.expandedStates,!0),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function du(e){return he(Number.NEGATIVE_INFINITY,e)}function Mr(e){return he(-1,e)}function ze(e,t){return l(e[0],{...t,expandedStates:e})}function qt(e){return vr(e),{type:Pe,parts:e}}function b(e,t="",r={}){return Ke(e),t!==""&&Ke(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function At(e,t){return Ke(e),{type:He,contents:e,groupId:t.groupId,negate:t.negate}}function Gn(e){return Ke(e),{type:Ve,contents:e}}var ke={type:$e},Ee={type:ve};var Un={type:me,hard:!0},Oo={type:me,hard:!0,literal:!0},x={type:me},E={type:me,soft:!0},F=[Un,Ee],Rr=[Oo,Ee],Nn={type:nt};function P(e,t){Ke(e),vr(t);let r=[];for(let n=0;n0){for(let s=0;s0){let t=O(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Su(e){let t=new Set,r=[];function n(u){if(u.type===ve&&hu(r),u.type===le){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===le&&r.pop().break&&hu(r)}Wn(e,n,s,!0)}function jo(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===xe?e.flatContents:e}function ur(e){return mt(e,jo)}function vo(e){switch(ut(e)){case Pe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ye:case Xe:case He:case Ve:if(!e.contents)return"";break;case xe:if(!e.flatContents&&!e.breakContents)return"";break;case _e:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof O(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case rt:case nt:case st:case $e:case me:case je:case ve:break;default:throw new Ct(e)}return e}function Wt(e){return mt(e,t=>vo(t))}function Ie(e,t=Rr){return mt(e,r=>typeof r=="string"?P(t,r.split(` -`)):r)}function Mo(e){if(e.type===me)return!0}function Bu(e){return gu(e,Mo,!1)}function ir(e,t){return e.type===je?{...e,contents:t(e.contents)}:t(e)}function Ro(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var bu=Ro;function Pu(e,t){let r=e.node;if(vt(r))return t.originalText.slice(R(r),k(r)).trimEnd();if(re(r))return bu(r)?Jo(r):["/*",Ie(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Jo(e){let t=e.value.split(` -`);return["/*",P(F,t.map((r,n)=>n===0?r.trimEnd():" "+(nYo,ownLine:()=>Xo,remaining:()=>Ho});function qo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Xn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=qo(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Xn(e,t)}function Le(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xn(e,t)}function z(e,t){t.leading=!1,t.trailing=!0,Xn(e,t)}function Wo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ge(e,n),n=Lt(e,n),n=wt(e,n),n=Ue(e,n);return n}var yt=Wo;function Go(e,t){let r=yt(e,t);return r===!1?"":e.charAt(r)}var ge=Go;function Uo(e,t,r){for(let n=t;nt(e))}function Yo(e){return[Vo,_u,Lu,vu,Hn,Vn,Iu,wu,ju,up,ap,Kn,mp,$n,fp,Ep].some(t=>t(e))}function Ho(e){return[Mu,Hn,Vn,zo,np,Ou,Kn,rp,tp,Dp,$n,yp].some(t=>t(e))}function bt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ce(r,t):Le(e,t)}function Yn(e,t){e.type==="BlockStatement"?bt(e,t):ce(e,t)}function Vo({comment:e,followingNode:t}){return t&&ku(e)?(ce(t,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ge(s,k(e))===")")return z(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")z(t,e);else{let i=vt(e)||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?z(t,e):Le(r,e)}return!0}return n.type==="BlockStatement"?(bt(n,e),!0):n.type==="IfStatement"?(Yn(n.consequent,e),!0):r.consequent===n?(ce(n,e),!0):!1}function Vn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:ge(s,k(e))===")"?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):r.body===n?(ce(n,e),!0):!1}function Iu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):n.type==="TryStatement"?(Yn(n.finalizer,e),!0):n.type==="CatchClause"?(Yn(n.body,e),!0):!1}function $o({comment:e,enclosingNode:t,followingNode:r}){return q(t)&&(r==null?void 0:r.type)==="Identifier"?(ce(t,e),!0):!1}function Ko({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||(t==null?void 0:t.type)==="ConditionalTypeAnnotation"||(t==null?void 0:t.type)==="TSConditionalType")?!1:(r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType"?(Le(t,e),!0):!1}function Lu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:u}){let i=t&&!de(s,k(t),R(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType")&&n?u.experimentalTernaries&&r.alternate===n&&!(re(e)&&!de(u.originalText,R(e),k(e)))?(Le(r,e),!0):(ce(n,e),!0):!1}function zo({comment:e,precedingNode:t,enclosingNode:r}){return Ae(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(z(r.value.left,e),!0):!1}var Qo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(Qo.has(r==null?void 0:r.type)){if(w(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return z(O(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return bt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return z(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?z(t,e):Le(r,e,s),!0}}return!1}var Zo=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&ge(n,k(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&ge(n,k(t))!==":"?(z(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&Zo.has(r==null?void 0:r.type)?(z(t,e),!0):!1}var ep=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function tp({comment:e,precedingNode:t,enclosingNode:r,text:n}){return ge(n,k(e))!=="("?!1:t&&ep.has(r==null?void 0:r.type)?(z(t,e),!0):!1}function rp({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=yt(r,k(e));return n!==!1&&r.slice(n,n+2)==="=>"?(Le(t,e),!0):!1}function np({comment:e,enclosingNode:t,text:r}){return ge(r,k(e))!==")"?!1:t&&(Ru(t)&&K(t).length===0||lt(t)&&oe(t).length===0)?(Le(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&K(t.value).length===0?(Le(t.value,e),!0):!1}function sp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(z(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&ge(s,k(e))===")"?(z(t,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"?(z(t,e),!0):((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&Ru(r)&&ge(s,k(e))===")"?(z(t,e),!0):!re(e)&&((r==null?void 0:r.type)==="FunctionDeclaration"||(r==null?void 0:r.type)==="FunctionExpression"||(r==null?void 0:r.type)==="ObjectMethod")&&(n==null?void 0:n.type)==="BlockStatement"&&r.body===n&&yt(s,k(e))===R(n)?(bt(n,e),!0):!1}function ju({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ce(t,e),!0):!1}function $n({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(z(t,e),!0):!1}function up({comment:e,precedingNode:t,enclosingNode:r}){return L(r)&&t&&r.callee===t&&r.arguments.length>0?(ce(r.arguments[0],e),!0):!1}function ip({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ne(r)?(sr(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(z(t,e),!0):!1):(Ne(n)&&sr(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function ap({comment:e,enclosingNode:t}){return Ae(t)?(ce(t,e),!0):!1}function Kn({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var s;return((s=r==null?void 0:r.body)==null?void 0:s.length)===0?(n?Le(r,e):ce(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!w(t.directives)?(n?Le(t,e):ce(t,e),!0):!1}function op({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ce(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ce(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&te(n,k(e))?(z(t,e),!0):!1}function pp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ce(t,e),!0):!1}var cp=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),lp=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function mp({comment:e,enclosingNode:t,followingNode:r}){return cp.has(t==null?void 0:t.type)&&r&&(lp.has(r.type)||re(e))?(ce(r,e),!0):!1}function yp({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ge(n,k(e))===";"?(z(t,e),!0):!1}function Mu({comment:e,enclosingNode:t,followingNode:r}){if(sr(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Dp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ce(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(z(t.constraint,e),!0):!1}function fp({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&vt(e)?bt(r,e):Le(t,e),!0)}function Ep({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ne(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||_r(r))?(z(O(!1,t.types,-1),e),!0):!1}function Fp({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?z(r,e):Le(t,e),!0}var Ru=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);var Cp=new Set(["EmptyStatement","TemplateElement","Import","TSEmptyBodyFunctionExpression","ChainExpression"]);function Ap(e){return!Cp.has(e.type)}function Tp(e,t){var r;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((r=e.value)==null?void 0:r.type)==="FunctionExpression"&&K(e.value).length===0&&!e.value.returnType&&!w(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function Qn(e){let{node:t,parent:r}=e;return(X(t)||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||Ne(r)||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!Bt(t)||Ne(r))}function dp(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=N(!1,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function Ju(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var Ge=ro;function no(e,t,r={}){let n=We(e,r.backwards?t-1:t,r),s=Ge(e,n,r);return n!==s}var Z=no;function so(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var O=ao;var Qs=new Proxy(()=>{},{get:()=>Qs}),vt=Qs;var dr="'",zs='"';function oo(e,t){let r=t===!0||t===dr?dr:zs,n=r===dr?zs:dr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var xr=oo;function po(e,t,r){let n=t==='"'?"'":'"',u=Y(!1,e,/\\(.)|(["'])/gsu,(i,a,p)=>a===n?a:p===t?"\\"+p:p||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var Zs=po;function co(e,t){vt(/^(?["']).*\k$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote);return e.charAt(0)===n?e:Zs(r,n,!1)}var Ze=co;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Bt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function lo(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function eu(e,t){return Bt(e,t)&&lo(e,t)}var Zt=null;function er(e){if(Zt!==null&&typeof Zt.property){let t=Zt;return Zt=er.prototype=null,t}return Zt=er.prototype=e??Object.create(null),new er}var mo=10;for(let e=0;e<=mo;e++)er();function Ln(e){return er(e)}function yo(e,t="type"){Ln(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var hr=yo;var tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Do=hr(tu),gr=Do;function fo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var v=fo;var Eo=v(["Block","CommentBlock","MultiLine"]),ee=Eo;var Fo=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Sr=Fo;function Co(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function Ao(e,t){return t.some(r=>Co(e,r))}var ru=Ao;function To({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Br=To;function rr(e,t){return t(e)||Xs(e,{getVisitorKeys:gr,predicate:t})}function Rt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||W(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Ae(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uu(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Pr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var Ct=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),iu=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),X=v(["ArrayExpression","TupleExpression"]),se=v(["ObjectExpression","RecordExpression"]);function au(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Fe(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function vn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Fe(e.argument)}function te(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Mn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var kr=v(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),xo=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),we=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Mt=v(["FunctionExpression","ArrowFunctionExpression"]);function ho(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function wn(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var H=v(["JSXElement","JSXFragment"]);function bt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Ir(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Bt(e,e.typeAnnotation)}var De=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function At(e){return W(e)||e.type==="BindExpression"&&!!e.object}var go=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Jt(e){return Br(e)||Sr(e)||go(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function So(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Bo=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function bo(e){return ru(e,Bo)}function Pt(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=oe(e);if(r.length===1){if(wn(e)&&Pt(t))return Mt(r[0]);if(So(e.callee))return wn(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||te(r[0]))&&bo(e.callee))return r[2]&&!Fe(r[2])?!1:(r.length===2?Mt(r[1]):ho(r[1])&&z(r[1]).length<=1)||wn(r[1]);return!1}var pu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=pu(v(["CallExpression","OptionalCallExpression"])),W=pu(v(["MemberExpression","OptionalMemberExpression"]));function Rn(e,t=5){return cu(e,t)<=t}function cu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=cu(s,t-r)),r>t)return r}return r}var Po=.25;function nr(e,t){let{printWidth:r}=t;if(d(e))return!1;let n=r*Po;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||vn(e)&&!d(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:te(e)?Ze(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?nr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:kr(e)}function Oe(e,t){return H(t)?kt(t):d(t,h.Leading,r=>Z(e,k(r)))}function nu(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Lr(e,t){return(e.type==="TemplateLiteral"&&nu(e)||e.type==="TaggedTemplateExpression"&&nu(e.quasi))&&!Z(t,q(e),{backwards:!0})}function wr(e){if(!d(e))return!1;let t=_(!1,ct(e,h.Dangling),-1);return t&&!ee(t)}function lu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Mt(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of oe(r))if(Mt(n))return!0}return!1}function Or(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var ko=new Set(["!","-","+","~"]);function be(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return be(e.expression,t);let r=n=>be(n,t-1);if(Mn(e))return ze(e.pattern??e.regex.pattern)<=5;if(kr(e)||xo(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(X(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||be(e.callee,t)){let n=oe(e);return n.length<=t&&n.every(r)}return!1}return W(e)?be(e.object,t)&&be(e.property,t):e.type==="UnaryExpression"&&ko.has(e.operator)||e.type==="UpdateExpression"?be(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function mu(e){return e}function ae(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ie(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ie(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ie(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ie(e.callee,t);case"ConditionalExpression":return ie(e.test,t);case"UpdateExpression":return!e.prefix&&ie(e.argument,t);case"BindExpression":return e.object&&ie(e.object,t);case"SequenceExpression":return ie(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie(e.expression,t);default:return t(e)}}var su={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},jn={">>":!0,">>>":!0,"<<":!0};function sr(e,t){return!(tr(t)!==tr(e)||e==="**"||su[e]&&su[t]||t==="%"&&br[e]||e==="%"&&br[t]||t!==e&&br[t]&&br[e]||jn[e]&&jn[t])}var Io=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function tr(e){return Io.get(e)}function yu(e){return!!jn[e]||e==="|"||e==="^"||e==="&"}function Du(e){var r;if(e.rest)return!0;let t=z(e);return((r=_(!1,t,-1))==null?void 0:r.type)==="RestElement"}var On=new WeakMap;function z(e){if(On.has(e))return On.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),On.set(e,t),t}function fu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var _n=new WeakMap;function oe(e){if(_n.has(e))return _n.get(e);if(e.type==="ChainExpression")return oe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),_n.set(e,t),t}function qt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>qt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Jn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function ur(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function kt(e){return(e==null?void 0:e.prettierIgnore)||d(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&h.Leading&&!r.leading||e&h.Trailing&&!r.trailing||e&h.Dangling&&(r.leading||r.trailing)||e&h.Block&&!ee(r)||e&h.Line&&!Ct(r)||e&h.First&&n!==0||e&h.Last&&n!==s.length-1||e&h.PrettierIgnore&&!ur(r)||t&&!t(r))};function d(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=Eu(t,r);return n?e.comments.some(n):!0}function ct(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Eu(t,r);return n?e.comments.filter(n):e.comments}var pe=(e,{originalText:t})=>jt(t,k(e));function lt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ce(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!bt(e))}var Ae=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ue=v(["UnionTypeAnnotation","TSUnionType"]),_r=v(["IntersectionTypeAnnotation","TSIntersectionType"]);var Lo=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Wt=e=>{for(let t of e.quasis)delete t.value};function Fu(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:i}=e;te(i)||Fe(i)?t.key=String(i.value):i.type==="Identifier"&&(t.key=i.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Wt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Wt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Y(!1,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,p]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":X(p.value)&&Wt(p.value.elements[0]);break;case"template":p.value.type==="TemplateLiteral"&&Wt(p.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Wt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ee(a)&&["GraphQL","HTML"].some(p=>a.value===` ${p} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Wt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}Fu.ignoredProperties=Lo;var Cu=Fu;var et="string",_e="array",tt="cursor",Xe="indent",Ye="align",rt="trim",le="group",Pe="fill",xe="if-break",He="indent-if-break",Ne="line-suffix",Ve="line-suffix-boundary",me="line",je="label",ve="break-parent",jr=new Set([tt,Xe,Ye,rt,le,Pe,xe,He,Ne,Ve,me,je,ve]);function wo(e){if(typeof e=="string")return et;if(Array.isArray(e))return _e;if(!e)return;let{type:t}=e;if(jr.has(t))return t}var nt=wo;var Oo=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function _o(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(nt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Oo([...jr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var qn=class extends Error{name="InvalidDocError";constructor(t){super(_o(t)),this.doc=t}},Tt=qn;var Au={};function jo(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Au){r(s.pop());continue}r&&s.push(u,Au);let i=nt(u);if(!i)throw new Tt(u);if((t==null?void 0:t(u))!==!1)switch(i){case _e:case Pe:{let a=i===_e?u:u.parts;for(let p=a.length,o=p-1;o>=0;--o)s.push(a[o]);break}case xe:s.push(u.flatContents,u.breakContents);break;case le:if(n&&u.expandedStates)for(let a=u.expandedStates.length,p=a-1;p>=0;--p)s.push(u.expandedStates[p]);else s.push(u.contents);break;case Ye:case Xe:case He:case je:case Ne:s.push(u.contents);break;case et:case tt:case rt:case Ve:case me:case ve:break;default:throw new Tt(u)}}}var Wn=jo;var Tu=()=>{},$e=Tu,vr=Tu;function f(e){return $e(e),{type:Xe,contents:e}}function he(e,t){return $e(t),{type:Ye,contents:t,n:e}}function l(e,t={}){return $e(e),vr(t.expandedStates,!0),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function du(e){return he(Number.NEGATIVE_INFINITY,e)}function Mr(e){return he(-1,e)}function Ke(e,t){return l(e[0],{...t,expandedStates:e})}function Rr(e){return vr(e),{type:Pe,parts:e}}function B(e,t="",r={}){return $e(e),t!==""&&$e(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function dt(e,t){return $e(e),{type:He,contents:e,groupId:t.groupId,negate:t.negate}}function Gn(e){return $e(e),{type:Ne,contents:e}}var ke={type:Ve},Ee={type:ve};var Un={type:me,hard:!0},vo={type:me,hard:!0,literal:!0},x={type:me},E={type:me,soft:!0},F=[Un,Ee],Jr=[vo,Ee],ir={type:tt};function b(e,t){$e(e),vr(t);let r=[];for(let n=0;n0){for(let s=0;s0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Su(e){let t=new Set,r=[];function n(u){if(u.type===ve&&hu(r),u.type===le){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===le&&r.pop().break&&hu(r)}Wn(e,n,s,!0)}function Ro(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===xe?e.flatContents:e}function ar(e){return mt(e,Ro)}function Jo(e){switch(nt(e)){case Pe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ye:case Xe:case He:case Ne:if(!e.contents)return"";break;case xe:if(!e.flatContents&&!e.breakContents)return"";break;case _e:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case et:case tt:case rt:case Ve:case me:case je:case ve:break;default:throw new Tt(e)}return e}function Gt(e){return mt(e,t=>Jo(t))}function Ie(e,t=Jr){return mt(e,r=>typeof r=="string"?b(t,r.split(` +`)):r)}function qo(e){if(e.type===me)return!0}function Bu(e){return gu(e,qo,!1)}function or(e,t){return e.type===je?{...e,contents:t(e.contents)}:t(e)}function Wo(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var bu=Wo;function Pu(e,t){let r=e.node;if(Ct(r))return t.originalText.slice(q(r),k(r)).trimEnd();if(ee(r))return bu(r)?Go(r):["/*",Ie(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Go(e){let t=e.value.split(` +`);return["/*",b(F,t.map((r,n)=>n===0?r.trimEnd():" "+(n$o,ownLine:()=>Vo,remaining:()=>Ko});function Uo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Xn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Uo(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Xn(e,t)}function Le(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xn(e,t)}function V(e,t){t.leading=!1,t.trailing=!0,Xn(e,t)}function Xo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=Ot(e,n),n=_t(e,n),n=Ge(e,n);return n}var ut=Xo;function Yo(e,t){let r=ut(e,t);return r===!1?"":e.charAt(r)}var ge=Yo;function Ho(e,t,r){for(let n=t;nt(e))}function $o(e){return[Qo,_u,Lu,vu,Hn,Nn,Iu,wu,ju,op,cp,$n,fp,Vn,Cp,Ap,dp].some(t=>t(e))}function Ko(e){return[Mu,Hn,Nn,ep,ip,Ou,$n,up,sp,Fp,Vn,Ep].some(t=>t(e))}function It(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ce(r,t):Le(e,t)}function Yn(e,t){e.type==="BlockStatement"?It(e,t):ce(e,t)}function Qo({comment:e,followingNode:t}){return t&&ku(e)?(ce(t,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ge(s,k(e))===")")return V(t,e),!0;if(t===r.consequent&&n===r.alternate){let i=ut(s,k(r.consequent));if(q(e)"?(Le(t,e),!0):!1}function ip({comment:e,enclosingNode:t,text:r}){return ge(r,k(e))!==")"?!1:t&&(Ru(t)&&z(t).length===0||lt(t)&&oe(t).length===0)?(Le(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&z(t.value).length===0?(Le(t.value,e),!0):!1}function ap({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(V(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&ge(s,k(e))===")"?(V(t,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"?(V(t,e),!0):((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&Ru(r)&&ge(s,k(e))===")"?(V(t,e),!0):!ee(e)&&((r==null?void 0:r.type)==="FunctionDeclaration"||(r==null?void 0:r.type)==="FunctionExpression"||(r==null?void 0:r.type)==="ObjectMethod")&&(n==null?void 0:n.type)==="BlockStatement"&&r.body===n&&ut(s,k(e))===q(n)?(It(n,e),!0):!1}function ju({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ce(t,e),!0):!1}function Vn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(V(t,e),!0):!1}function op({comment:e,precedingNode:t,enclosingNode:r}){return L(r)&&t&&r.callee===t&&r.arguments.length>0?(ce(r.arguments[0],e),!0):!1}function pp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ue(r)?(ur(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(V(t,e),!0):!1):(Ue(n)&&ur(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function cp({comment:e,enclosingNode:t}){return Ce(t)?(ce(t,e),!0):!1}function $n({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var s;return((s=r==null?void 0:r.body)==null?void 0:s.length)===0?(n?Le(r,e):ce(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!O(t.directives)?(n?Le(t,e):ce(t,e),!0):!1}function lp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ce(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ce(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&Z(n,k(e))?(V(t,e),!0):!1}function mp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ce(t,e),!0):!1}var yp=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Dp=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function fp({comment:e,enclosingNode:t,followingNode:r}){return yp.has(t==null?void 0:t.type)&&r&&(Dp.has(r.type)||ee(e))?(ce(r,e),!0):!1}function Ep({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ge(n,k(e))===";"?(V(t,e),!0):!1}function Mu({comment:e,enclosingNode:t,followingNode:r}){if(ur(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Fp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ce(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(V(t.constraint,e),!0):!1}function Cp({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&Ct(e)?It(r,e):Le(t,e),!0)}function Ap({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ue(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||_r(r))?(V(_(!1,t.types,-1),e),!0):!1}function Tp({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?V(r,e):Le(t,e),!0}function dp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){var s;if(!n&&(r==null?void 0:r.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")){let u=((s=r.argument.loc)==null?void 0:s.start.line)!==t.right.loc.start.line,i=Ct(e)||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.right.loc.start.line;if(u&&i&&a)return V(t.right,e),!0}return!1}var Ru=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);var xp=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);function hp(e){return!xp.has(e.type)}function gp(e,t){var r;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((r=e.value)==null?void 0:r.type)==="FunctionExpression"&&z(e.value).length===0&&!e.value.returnType&&!O(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function Qn(e){let{node:t,parent:r}=e;return(H(t)||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||Ue(r)||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!kt(t)||Ue(r))}function Sp(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=Y(!1,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function Ju(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var Se=Symbol("MODE_BREAK"),at=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu(){return{value:"",length:0,queue:[]}}function xp(e,t){return Zn(e,{type:"indent"},t)}function hp(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||qu():t<0?Zn(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Zn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Zn(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let p of n)switch(p.type){case"indent":m(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":m(),s+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,a+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return y(),{...e,value:s,length:u,queue:n};function o(p){s+=" ".repeat(p),u+=r.tabWidth*p}function c(p){s+=" ".repeat(p),u+=p}function m(){r.useTabs?D():y()}function D(){i>0&&o(i),C()}function y(){a>0&&c(a),C()}function C(){i=0,a=0}}function es(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===ar){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ar);return t}function Jr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:c,doc:m}=a.pop(),D=ut(m);switch(D){case rt:o.push(m),r-=et(m);break;case _e:case Pe:{let y=D===_e?m:m.parts;for(let C=y.length-1;C>=0;C--)a.push({mode:c,doc:y[C]});break}case Xe:case Ye:case He:case je:a.push({mode:c,doc:m.contents});break;case st:r+=es(o);break;case le:{if(u&&m.break)return!1;let y=m.break?Se:c,C=m.expandedStates&&y===Se?O(!1,m.expandedStates,-1):m.contents;a.push({mode:y,doc:C});break}case xe:{let C=(m.groupId?s[m.groupId]||at:c)===Se?m.breakContents:m.flatContents;C&&a.push({mode:c,doc:C});break}case me:if(c===Se||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ve:n=!0;break;case $e:if(n)return!1;break}}return!1}function ts(e,t){let r={},n=t.printWidth,s=Ju(t.endOfLine),u=0,i=[{ind:qu(),mode:Se,doc:e}],a=[],o=!1,c=[],m=0;for(Su(e);i.length>0;){let{ind:y,mode:C,doc:p}=i.pop();switch(ut(p)){case rt:{let A=s!==` -`?N(!1,p,` -`,s):p;a.push(A),i.length>0&&(u+=et(A));break}case _e:for(let A=p.length-1;A>=0;A--)i.push({ind:y,mode:C,doc:p[A]});break;case nt:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(ar),m++;break;case Xe:i.push({ind:xp(y,t),mode:C,doc:p.contents});break;case Ye:i.push({ind:hp(y,p.n,t),mode:C,doc:p.contents});break;case st:u-=es(a);break;case le:switch(C){case at:if(!o){i.push({ind:y,mode:p.break?Se:at,doc:p.contents});break}case Se:{o=!1;let A={ind:y,mode:at,doc:p.contents},T=n-u,S=c.length>0;if(!p.break&&Jr(A,i,T,S,r))i.push(A);else if(p.expandedStates){let B=O(!1,p.expandedStates,-1);if(p.break){i.push({ind:y,mode:Se,doc:B});break}else for(let _=1;_=p.expandedStates.length){i.push({ind:y,mode:Se,doc:B});break}else{let J=p.expandedStates[_],j={ind:y,mode:at,doc:J};if(Jr(j,i,T,S,r)){i.push(j);break}}}else i.push({ind:y,mode:Se,doc:p.contents});break}}p.id&&(r[p.id]=O(!1,i,-1).mode);break;case Pe:{let A=n-u,{parts:T}=p;if(T.length===0)break;let[S,B]=T,_={ind:y,mode:at,doc:S},J={ind:y,mode:Se,doc:S},j=Jr(_,[],A,c.length>0,r,!0);if(T.length===1){j?i.push(_):i.push(J);break}let h={ind:y,mode:at,doc:B},W={ind:y,mode:Se,doc:B};if(T.length===2){j?i.push(h,_):i.push(W,J);break}T.splice(0,2);let Fe={ind:y,mode:C,doc:qt(T)},H=T[0];Jr({ind:y,mode:at,doc:[S,B,H]},[],A,c.length>0,r,!0)?i.push(Fe,h,_):j?i.push(Fe,W,_):i.push(Fe,W,J);break}case xe:case He:{let A=p.groupId?r[p.groupId]:C;if(A===Se){let T=p.type===xe?p.breakContents:p.negate?p.contents:f(p.contents);T&&i.push({ind:y,mode:C,doc:T})}if(A===at){let T=p.type===xe?p.flatContents:p.negate?f(p.contents):p.contents;T&&i.push({ind:y,mode:C,doc:T})}break}case Ve:c.push({ind:y,mode:C,doc:p.contents});break;case $e:c.length>0&&i.push({ind:y,mode:C,doc:Un});break;case me:switch(C){case at:if(p.hard)o=!0;else{p.soft||(a.push(" "),u+=1);break}case Se:if(c.length>0){i.push({ind:y,mode:C,doc:p},...c.reverse()),c.length=0;break}p.literal?y.root?(a.push(s,y.root.value),u=y.root.length):(a.push(s),u=0):(u-=es(a),a.push(s+y.value),u=y.length);break}break;case je:i.push({ind:y,mode:C,doc:p.contents});break;case ve:break;default:throw new Ct(p)}i.length===0&&c.length>0&&(i.push(...c.reverse()),c.length=0)}let D=a.indexOf(ar);if(D!==-1){let y=a.indexOf(ar,D+1),C=a.slice(0,D).join(""),p=a.slice(D+1,y).join(""),A=a.slice(y+1).join("");return{formatted:C+p+A,cursorNodeStart:C.length,cursorNodeText:p}}return{formatted:a.join("")}}function gp(e,t,r=0){let n=0;for(let s=r;s{if(i.push(t()),m.tail)return;let{tabWidth:D}=r,y=m.value.raw,C=y.includes(` -`)?Gu(y,D):o;o=C;let p=a[c],A=n[u][c],T=de(r.originalText,k(m),R(n.quasis[c+1]));if(!T){let B=ts(p,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;B.includes(` -`)?T=!0:p=B}T&&(d(A)||A.type==="Identifier"||q(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Te(A)||De(A))&&(p=[f([E,p]),E]);let S=C===0&&y.endsWith(` -`)?he(Number.NEGATIVE_INFINITY,p):xu(p,C,D);i.push(l(["${",S,ke,"}"]))},"quasis"),i.push("`"),i}function Uu(e,t){let r=t("quasi");return it(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ke,r])}function Bp(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(y=>"${"+ts(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let y=1;yy.cells.length)),m=Array.from({length:c}).fill(0),D=[{cells:s},...o.filter(y=>y.cells.length>0)];for(let{cells:y}of D.filter(C=>!C.hasLineBreak))for(let[C,p]of y.entries())m[C]=Math.max(m[C],et(p));return i.push(ke,"`",f([F,P(F,D.map(y=>P(" | ",y.cells.map((C,p)=>y.hasLineBreak?C:C+" ".repeat(m[p]-et(C))))))]),F,"`"),i}}function bp(e,t){let{node:r}=e,n=t();return d(r)&&(n=l([f([E,n]),E])),["${",n,ke,"}"]}function Gt(e,t){return e.map(r=>bp(r,t),"expressions")}function Wr(e,t){return mt(e,r=>typeof r=="string"?t?N(!1,r,/(\\*)`/gu,"$1$1\\`"):rs(r):r)}function rs(e){return N(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function Pp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var ss=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Nu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ae(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>U(n)&&s==="elements",r,...ss)||e.match(t,r,...ss)}function Xu(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ae(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ss)}function ns(e,t){return d(e,g.Block|g.Leading,({value:r})=>r===` ${t} `)}function Gr({node:e,parent:t},r){return ns(e,r)||kp(t)&&ns(t,r)||t.type==="ExpressionStatement"&&ns(t,r)}function kp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Ip(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,D,y)=>y===0?D:m+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Gt(r,t),c=Lp(a,o);if(!c)throw new Error("Couldn't insert all the expressions");return["`",f([F,c]),E,"`"]}function Lp(e,t){if(!w(t))return e;let r=0,n=mt(Wt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?Ie(u):(r++,t[u])));return t.length===r?n:null}function wp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Ur(e){return e.type==="Identifier"&&e.name==="styled"}function Yu(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function Op({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Ur(t.object)||Yu(t);case"CallExpression":return Ur(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Ur(t.callee.object.object)||Yu(t.callee.object))||t.callee.object.type==="CallExpression"&&Ur(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function _p({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function jp(e){if(wp(e)||Op(e)||_p(e)||Nu(e))return Ip}var Hu=jp;async function vp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Gt(r,t),i=[];for(let a=0;a2&&y[0].trim()===""&&y[1].trim()==="",T=C>2&&y[C-1].trim()===""&&y[C-2].trim()==="",S=y.every(_=>/^\s*(?:#[^\n\r]*)?$/u.test(_));if(!m&&/#[^\n\r]*$/u.test(y[C-1]))return null;let B=null;S?B=Mp(y):B=await e(D,{parser:"graphql"}),B?(B=Wr(B,!1),!c&&A&&i.push(""),i.push(B),!m&&T&&i.push("")):!c&&!m&&A&&i.push(""),p&&i.push(p)}return["`",f([F,P(F,i)]),F,"`"]}function Mp(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:P(F,t)}function Rp({node:e,parent:t}){return Gr({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Jp(e){if(Rp(e))return vp}var Vu=Jp;var us=0;async function $u(e,t,r,n,s){let{node:u}=n,i=us;us=us+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,B,_)=>B===_.length-1?S.value.cooked:S.value.cooked+a(B)).join(""),c=Gt(n,r),m=new RegExp(a(String.raw`(\d+)`),"gu"),D=0,y=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),C=mt(y,S=>{if(typeof S!="string")return S;let B=[],_=S.split(m);for(let J=0;J<_.length;J++){let j=_[J];if(J%2===0){j&&(j=rs(j),s.__embeddedInHtml&&(j=N(!1,j,/<\/(?=script\b)/giu,String.raw`<\/`)),B.push(j));continue}let h=Number(j);B.push(c[h])}return B}),p=/^\s/u.test(o)?" ":"",A=/\s$/u.test(o)?" ":"",T=s.htmlWhitespaceSensitivity==="ignore"?F:p&&A?x:null;return T?l(["`",f([T,l(C)]),T,"`"]):it({hug:!1},l(["`",p,D>1?f(l(C)):l(C),A,"`"]))}function qp(e){return Gr(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Wp=$u.bind(void 0,"html"),Gp=$u.bind(void 0,"angular");function Up(e){if(qp(e))return Wp;if(Xu(e))return Gp}var Ku=Up;async function Np(e,t,r){let{node:n}=r,s=N(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(o,c)=>"\\".repeat(c.length/2)+"`"),u=Xp(s),i=u!=="";i&&(s=N(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Wr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Rr,du(a)],E,"`"]}function Xp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Yp(e){if(Hp(e))return Np}function Hp({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var zu=Yp;function Vp(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$p(t))return;let r;for(let n of[Hu,Vu,Ku,zu])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&it({embed:!0,...u.label},u)}}function $p({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Qu=Vp;var Kp=/\*\/$/,zp=/^\/\*\*?/,ri=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Qp=/(^|\s+)\/\/([^\n\r]*)/g,Zu=/^(\r?\n)+/,Zp=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ec=/(\r?\n|^) *\* ?/g,ni=[];function si(e){let t=e.match(ri);return t?t[0].trimStart():""}function ui(e){let t=e.match(ri),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ii(e){let t=` -`;e=N(!1,e.replace(zp,"").replace(Kp,""),ec,"$1");let r="";for(;r!==e;)r=e,e=N(!1,e,Zp,`${t}$1 $2${t}`);e=e.replace(Zu,"").trimEnd();let n=Object.create(null),s=N(!1,e,ei,"").replace(Zu,"").trimEnd(),u;for(;u=ei.exec(e);){let i=N(!1,u[2],Qp,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...ni,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function ai({comments:e="",pragmas:t={}}){let r=` -`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(c=>ti(c,t[c])).map(c=>`${s} ${c}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let c=t[i[0]];return`${n} ${ti(i[0],c)[0]}${u}`}}let o=e.split(r).map(c=>`${s} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length>0?s+r:"")+a+u}function ti(e,t){return[...ni,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function tc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var oi=tc;function rc(e){let t=oi(e);t&&(e=e.slice(t.length+1));let r=si(e),{pragmas:n,comments:s}=ii(r);return{shebang:t,text:e,pragmas:n,comments:s}}function pi(e){let{shebang:t,text:r,pragmas:n,comments:s}=rc(e),u=ui(r),i=ai({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} +`}}var Se=Symbol("MODE_BREAK"),it=Symbol("MODE_FLAT"),Ut=Symbol("cursor"),qu=Symbol("DOC_FILL_PRINTED_LENGTH");function Wu(){return{value:"",length:0,queue:[]}}function Bp(e,t){return zn(e,{type:"indent"},t)}function bp(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Wu():t<0?zn(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:zn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function zn(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let c of n)switch(c.type){case"indent":m(),r.useTabs?p(1):o(r.tabWidth);break;case"stringAlign":m(),s+=c.n,u+=c.n.length;break;case"numberAlign":i+=1,a+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return D(),{...e,value:s,length:u,queue:n};function p(c){s+=" ".repeat(c),u+=r.tabWidth*c}function o(c){s+=" ".repeat(c),u+=c}function m(){r.useTabs?y():D()}function y(){i>0&&p(i),C()}function D(){a>0&&o(a),C()}function C(){i=0,a=0}}function Zn(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===Ut){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Ut);return t}function qr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],p=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:o,doc:m}=a.pop(),y=nt(m);switch(y){case et:p.push(m),r-=ze(m);break;case _e:case Pe:{let D=y===_e?m:m.parts;for(let C=D.length-1;C>=0;C--)a.push({mode:o,doc:D[C]});break}case Xe:case Ye:case He:case je:a.push({mode:o,doc:m.contents});break;case rt:r+=Zn(p);break;case le:{if(u&&m.break)return!1;let D=m.break?Se:o,C=m.expandedStates&&D===Se?_(!1,m.expandedStates,-1):m.contents;a.push({mode:D,doc:C});break}case xe:{let C=(m.groupId?s[m.groupId]||it:o)===Se?m.breakContents:m.flatContents;C&&a.push({mode:o,doc:C});break}case me:if(o===Se||m.hard)return!0;m.soft||(p.push(" "),r--);break;case Ne:n=!0;break;case Ve:if(n)return!1;break}}return!1}function es(e,t){let r={},n=t.printWidth,s=Ju(t.endOfLine),u=0,i=[{ind:Wu(),mode:Se,doc:e}],a=[],p=!1,o=[],m=0;for(Su(e);i.length>0;){let{ind:D,mode:C,doc:c}=i.pop();switch(nt(c)){case et:{let A=s!==` +`?Y(!1,c,` +`,s):c;a.push(A),i.length>0&&(u+=ze(A));break}case _e:for(let A=c.length-1;A>=0;A--)i.push({ind:D,mode:C,doc:c[A]});break;case tt:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Ut),m++;break;case Xe:i.push({ind:Bp(D,t),mode:C,doc:c.contents});break;case Ye:i.push({ind:bp(D,c.n,t),mode:C,doc:c.contents});break;case rt:u-=Zn(a);break;case le:switch(C){case it:if(!p){i.push({ind:D,mode:c.break?Se:it,doc:c.contents});break}case Se:{p=!1;let A={ind:D,mode:it,doc:c.contents},T=n-u,S=o.length>0;if(!c.break&&qr(A,i,T,S,r))i.push(A);else if(c.expandedStates){let g=_(!1,c.expandedStates,-1);if(c.break){i.push({ind:D,mode:Se,doc:g});break}else for(let M=1;M=c.expandedStates.length){i.push({ind:D,mode:Se,doc:g});break}else{let R=c.expandedStates[M],j={ind:D,mode:it,doc:R};if(qr(j,i,T,S,r)){i.push(j);break}}}else i.push({ind:D,mode:Se,doc:c.contents});break}}c.id&&(r[c.id]=_(!1,i,-1).mode);break;case Pe:{let A=n-u,T=c[qu]??0,{parts:S}=c,g=S.length-T;if(g===0)break;let M=S[T+0],R=S[T+1],j={ind:D,mode:it,doc:M},I={ind:D,mode:Se,doc:M},U=qr(j,[],A,o.length>0,r,!0);if(g===1){U?i.push(j):i.push(I);break}let P={ind:D,mode:it,doc:R},G={ind:D,mode:Se,doc:R};if(g===2){U?i.push(P,j):i.push(G,I);break}let ue=S[T+2],Q={ind:D,mode:C,doc:{...c,[qu]:T+2}};qr({ind:D,mode:it,doc:[M,R,ue]},[],A,o.length>0,r,!0)?i.push(Q,P,j):U?i.push(Q,G,j):i.push(Q,G,I);break}case xe:case He:{let A=c.groupId?r[c.groupId]:C;if(A===Se){let T=c.type===xe?c.breakContents:c.negate?c.contents:f(c.contents);T&&i.push({ind:D,mode:C,doc:T})}if(A===it){let T=c.type===xe?c.flatContents:c.negate?f(c.contents):c.contents;T&&i.push({ind:D,mode:C,doc:T})}break}case Ne:o.push({ind:D,mode:C,doc:c.contents});break;case Ve:o.length>0&&i.push({ind:D,mode:C,doc:Un});break;case me:switch(C){case it:if(c.hard)p=!0;else{c.soft||(a.push(" "),u+=1);break}case Se:if(o.length>0){i.push({ind:D,mode:C,doc:c},...o.reverse()),o.length=0;break}c.literal?D.root?(a.push(s,D.root.value),u=D.root.length):(a.push(s),u=0):(u-=Zn(a),a.push(s+D.value),u=D.length);break}break;case je:i.push({ind:D,mode:C,doc:c.contents});break;case ve:break;default:throw new Tt(c)}i.length===0&&o.length>0&&(i.push(...o.reverse()),o.length=0)}let y=a.indexOf(Ut);if(y!==-1){let D=a.indexOf(Ut,y+1);if(D===-1)return{formatted:a.filter(T=>T!==Ut).join("")};let C=a.slice(0,y).join(""),c=a.slice(y+1,D).join(""),A=a.slice(D+1).join("");return{formatted:C+c+A,cursorNodeStart:C.length,cursorNodeText:c}}return{formatted:a.join("")}}function Pp(e,t,r=0){let n=0;for(let s=r;s{if(i.push(t()),m.tail)return;let{tabWidth:y}=r,D=m.value.raw,C=D.includes(` +`)?Uu(D,y):p;p=C;let c=a[o],A=n[u][o],T=Te(r.originalText,k(m),q(n.quasis[o+1]));if(!T){let g=es(c,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` +`)?T=!0:c=g}T&&(d(A)||A.type==="Identifier"||W(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Ae(A)||De(A))&&(c=[f([E,c]),E]);let S=C===0&&D.endsWith(` +`)?he(Number.NEGATIVE_INFINITY,c):xu(c,C,y);i.push(l(["${",S,ke,"}"]))},"quasis"),i.push("`"),i}function Xu(e,t){let r=t("quasi");return st(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ke,r])}function Ip(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(D=>"${"+es(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),p=[{hasLineBreak:!1,cells:[]}];for(let D=1;DD.cells.length)),m=Array.from({length:o}).fill(0),y=[{cells:s},...p.filter(D=>D.cells.length>0)];for(let{cells:D}of y.filter(C=>!C.hasLineBreak))for(let[C,c]of D.entries())m[C]=Math.max(m[C],ze(c));return i.push(ke,"`",f([F,b(F,y.map(D=>b(" | ",D.cells.map((C,c)=>D.hasLineBreak?C:C+" ".repeat(m[c]-ze(C))))))]),F,"`"),i}}function Lp(e,t){let{node:r}=e,n=t();return d(r)&&(n=l([f([E,n]),E])),["${",n,ke,"}"]}function Xt(e,t){return e.map(r=>Lp(r,t),"expressions")}function Gr(e,t){return mt(e,r=>typeof r=="string"?t?Y(!1,r,/(\\*)`/gu,"$1$1\\`"):ts(r):r)}function ts(e){return Y(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function wp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var ns=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Yu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ce(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>X(n)&&s==="elements",r,...ns)||e.match(t,r,...ns)}function Hu(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ce(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ns)}function rs(e,t){return d(e,h.Block|h.Leading,({value:r})=>r===` ${t} `)}function Ur({node:e,parent:t},r){return rs(e,r)||Op(t)&&rs(t,r)||t.type==="ExpressionStatement"&&rs(t,r)}function Op(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function _p(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,y,D)=>D===0?y:m+"@prettier-placeholder-"+u+++"-id"+y,""),a=await e(i,{parser:"scss"}),p=Xt(r,t),o=jp(a,p);if(!o)throw new Error("Couldn't insert all the expressions");return["`",f([F,o]),E,"`"]}function jp(e,t){if(!O(t))return e;let r=0,n=mt(Gt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?Ie(u):(r++,t[u])));return t.length===r?n:null}function vp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Xr(e){return e.type==="Identifier"&&e.name==="styled"}function Nu(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function Mp({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Xr(t.object)||Nu(t);case"CallExpression":return Xr(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Xr(t.callee.object.object)||Nu(t.callee.object))||t.callee.object.type==="CallExpression"&&Xr(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Rp({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Jp(e){if(vp(e)||Mp(e)||Rp(e)||Yu(e))return _p}var Vu=Jp;async function qp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Xt(r,t),i=[];for(let a=0;a2&&D[0].trim()===""&&D[1].trim()==="",T=C>2&&D[C-1].trim()===""&&D[C-2].trim()==="",S=D.every(M=>/^\s*(?:#[^\n\r]*)?$/u.test(M));if(!m&&/#[^\n\r]*$/u.test(D[C-1]))return null;let g=null;S?g=Wp(D):g=await e(y,{parser:"graphql"}),g?(g=Gr(g,!1),!o&&A&&i.push(""),i.push(g),!m&&T&&i.push("")):!o&&!m&&A&&i.push(""),c&&i.push(c)}return["`",f([F,b(F,i)]),F,"`"]}function Wp(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:b(F,t)}function Gp({node:e,parent:t}){return Ur({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Up(e){if(Gp(e))return qp}var $u=Up;var ss=0;async function Ku(e,t,r,n,s){let{node:u}=n,i=ss;ss=ss+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,p=u.quasis.map((S,g,M)=>g===M.length-1?S.value.cooked:S.value.cooked+a(g)).join(""),o=Xt(n,r),m=new RegExp(a(String.raw`(\d+)`),"gu"),y=0,D=await t(p,{parser:e,__onHtmlRoot(S){y=S.children.length}}),C=mt(D,S=>{if(typeof S!="string")return S;let g=[],M=S.split(m);for(let R=0;R1?f(l(C)):l(C),A,"`"]))}function Xp(e){return Ur(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Yp=Ku.bind(void 0,"html"),Hp=Ku.bind(void 0,"angular");function Np(e){if(Xp(e))return Yp;if(Hu(e))return Hp}var Qu=Np;async function Vp(e,t,r){let{node:n}=r,s=Y(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(p,o)=>"\\".repeat(o.length/2)+"`"),u=$p(s),i=u!=="";i&&(s=Y(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Gr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Jr,du(a)],E,"`"]}function $p(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Kp(e){if(Qp(e))return Vp}function Qp({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var zu=Kp;function zp(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Zp(t))return;let r;for(let n of[Vu,$u,Qu,zu])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&st({embed:!0,...u.label},u)}}function Zp({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Zu=zp;var ec=/\*\/$/,tc=/^\/\*\*?/,ni=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,rc=/(^|\s+)\/\/([^\n\r]*)/g,ei=/^(\r?\n)+/,nc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ti=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,sc=/(\r?\n|^) *\* ?/g,si=[];function ui(e){let t=e.match(ni);return t?t[0].trimStart():""}function ii(e){let t=e.match(ni),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ai(e){let t=` +`;e=Y(!1,e.replace(tc,"").replace(ec,""),sc,"$1");let r="";for(;r!==e;)r=e,e=Y(!1,e,nc,`${t}$1 $2${t}`);e=e.replace(ei,"").trimEnd();let n=Object.create(null),s=Y(!1,e,ti,"").replace(ei,"").trimEnd(),u;for(;u=ti.exec(e);){let i=Y(!1,u[2],rc,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...si,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function oi({comments:e="",pragmas:t={}}){let r=` +`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(o=>ri(o,t[o])).map(o=>`${s} ${o}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let o=t[i[0]];return`${n} ${ri(i[0],o)[0]}${u}`}}let p=e.split(r).map(o=>`${s} ${o}`).join(r)+r;return n+r+(e?p:"")+(e&&i.length>0?s+r:"")+a+u}function ri(e,t){return[...si,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function uc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var pi=uc;function ic(e){let t=pi(e);t&&(e=e.slice(t.length+1));let r=ui(e),{pragmas:n,comments:s}=ai(r);return{shebang:t,text:e,pragmas:n,comments:s}}function ci(e){let{shebang:t,text:r,pragmas:n,comments:s}=ic(e),u=ii(r),i=oi({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} `:"")+i+(u.startsWith(` `)?` `:` -`)+u}function nc(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),c=u(a);for(let m of n)s(m)>=o&&u(m)<=c&&i.add(m);return r.slice(o,c)}var ci=nc;function is(e,t){var u,i,a,o,c,m,D,y,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&ac(r)&&or(e))return!0;if(sc(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let p=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(p&&ie(p,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let p=e.findAncestor(T=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),A=p?p.type==="ExpressionStatement"?p.expression:p.type==="ForStatement"?p.init:p.left:void 0;if(A&&ie(A,T=>T===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let p=e.findAncestor(A=>!Te(A));if(p!==s&&p.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let p=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(p&&ie(p,A=>A===r))return!0}if(r.type==="ObjectExpression"){let p=(o=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(p&&p.type!=="SequenceExpression"&&p.type!=="AssignmentExpression"&&ie(p,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&w(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return li(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!pc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(p,A)=>A==="returnType"&&p.type==="ArrowFunctionExpression")&&ic(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(p,A)=>A==="declarations"&&p.type==="VariableDeclaration",(p,A)=>A==="left"&&p.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&uc(e))return!0;if(r.operator==="|>"&&((c=r.extra)!=null&&c.parenthesized)){let p=e.grandparent;if(p.type==="BinaryExpression"&&p.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Te(r);case"ConditionalExpression":return Te(r)||au(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Te(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:p,type:A}=r;if(!p&&A!=="TSTypeAssertion")return!0;let T=er(p),S=s.operator,B=er(S);return B>T||n==="right"&&B===T||B===T&&!nr(S,p)?!0:B");default:return!1}case"TSFunctionType":if(e.match(p=>p.type==="TSFunctionType",(p,A)=>A==="typeAnnotation"&&p.type==="TSTypeAnnotation",(p,A)=>A==="returnType"&&p.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:p}=r.returnType||r.typeAnnotation;if(p.type==="TSTypePredicate"&&p.typeAnnotation&&(p=p.typeAnnotation.typeAnnotation),p.type==="TSInferType"&&p.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression")||e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypePredicate",(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression"))return!0;let p=s.type==="NullableTypeAnnotation"?e.grandparent:s;return p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="ArrayTypeAnnotation"||n==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&((m=r.returnType)==null?void 0:m.type)==="InferTypeAnnotation"&&((D=r.returnType)==null?void 0:D.typeParameter.bound)||p.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&K(r).some(A=>{var T;return((T=A.typeAnnotation)==null?void 0:T.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let p=e.grandparent;return p.type==="Program"||p.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let p=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&p.type==="ForStatement"&&(p.init===s||p.update===s)||n==="value"&&s.type==="Property"&&p.type==="ObjectPattern"&&p.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((y=r.extra)==null?void 0:y.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(oc(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let p=r;for(;p;)switch(p.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":p=p.object;break;case"TaggedTemplateExpression":p=p.tag;break;case"TSNonNullExpression":p=p.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&q(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((C=r.extra)!=null&&C.parenthesized)||U(s)||n==="arguments"&&L(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!U(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!L(s)&&!Ae(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&q(s)}return!1}var sc=v(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function uc(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ic(e){return tr(e,t=>t.type==="ObjectTypeAnnotation"&&tr(t,r=>r.type==="FunctionTypeAnnotation"))}function ac(e){return se(e)}function or(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(or);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(or);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(or);break;case"UnaryExpression":if(t.prefix)return e.callParent(or);break}return!1}function li(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!is(e,t):!jt(r)||n.type!=="ExportDefaultDeclaration"&&is(e,t)?!1:e.call(()=>li(e,t),...Pr(r))}function oc(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}function as(e){return e.type==="Identifier"?!0:q(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&as(e.object):!1}function pc(e){return e.type==="ChainExpression"&&(e=e.expression),as(e)||L(e)&&!e.optional&&as(e.callee)}var Be=is;function cc(e,t){let r=t-1;r=Ge(e,r,{backwards:!0}),r=Ue(e,r,{backwards:!0}),r=Ge(e,r,{backwards:!0});let n=Ue(e,r,{backwards:!0});return r!==n}var mi=cc;var lc=()=>!0;function os(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function mc(e,t){var m;let r=e.node,n=[os(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let D=te(u,a(r))?te(u,i(r),{backwards:!0})?F:x:" ";n.push(D)}else n.push(F);let c=Ue(u,Ge(u,a(r)));return c!==!1&&te(u,c)&&n.push(F),n}function yc(e,t,r){var c;let n=e.node,s=os(e,t),{printer:u,originalText:i,locStart:a}=t,o=(c=u.isBlockComment)==null?void 0:c.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||te(i,a(n),{backwards:!0})){let m=mi(i,a(n));return{doc:Gn([F,m?F:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[Gn([" ",s]),Ee],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!w(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=lc}=r,a=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==u||!i(c)||a.push(os(e,t))},"comments"),a.length===0)return"";let o=P(F,a);return s?f([F,o]):o}function ps(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:c,trailing:m}=o;c?u.push(mc(e,t)):m&&(a=yc(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function ye(e,t,r){let{leading:n,trailing:s}=ps(e,r);return!n&&!s?t:ir(t,u=>[n,u,s])}var cs=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Me=cs;function ls(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Re,ms=class{constructor(t){Ws(this,Re);Gs(this,Re,new Set(t))}getLeadingWhitespaceCount(t){let r=pt(this,Re),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return pt(this,Re).has(t.charAt(0))}hasTrailingWhitespace(t){return pt(this,Re).has(O(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${ls([...pt(this,Re)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=pt(this,Re);return Array.prototype.every.call(t,n=>r.has(n))}};Re=new WeakMap;var yi=ms;var Nr=new yi(` -\r `),ys=e=>e===""||e===x||e===F||e===E;function Dc(e,t,r){var _,J,j;let{node:n}=e;if(n.type==="JSXElement"&&Pc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(h=>kc(h)?{type:"JSXText",value:" ",raw:" "}:h);let i=n.children.some(X),a=n.children.filter(h=>h.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ne(s)||i||o||a,m=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',y=m?" ":b([D,E]," "),C=((J=(_=n.openingElement)==null?void 0:_.name)==null?void 0:J.name)==="fbt",p=fc(e,t,r,y,C),A=n.children.some(h=>pr(h));for(let h=p.length-2;h>=0;h--){let W=p[h]===""&&p[h+1]==="",Fe=p[h]===F&&p[h+1]===""&&p[h+2]===F,H=(p[h]===E||p[h]===F)&&p[h+1]===""&&p[h+2]===y,ue=p[h]===y&&p[h+1]===""&&(p[h+2]===E||p[h+2]===F),Z=p[h]===y&&p[h+1]===""&&p[h+2]===y,It=p[h]===E&&p[h+1]===""&&p[h+2]===F||p[h]===F&&p[h+1]===""&&p[h+2]===E;Fe&&A||W||H||Z||It?p.splice(h,2):ue&&p.splice(h+1,2)}for(;p.length>0&&ys(O(!1,p,-1));)p.pop();for(;p.length>1&&ys(p[0])&&ys(p[1]);)p.shift(),p.shift();let T=[];for(let[h,W]of p.entries()){if(W===y){if(h===1&&p[h-1]===""){if(p.length===2){T.push(D);continue}T.push([D,F]);continue}else if(h===p.length-1){T.push(D);continue}else if(p[h-1]===""&&p[h-2]===F){T.push(D);continue}}T.push(W),ne(W)&&(c=!0)}let S=A?qt(T):l(T,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Nn,S,Nn]),m)return S;let B=l([s,f([F,S]),F,u]);return c?B:ze([l([s,...p,u]),B])}function fc(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=fe(i);if(pr(i)){let c=Nr.split(o,!0);c[0]===""&&(u.push(""),c.shift(),/\n/u.test(c[0])?u.push(fi(s,c[1],i,a)):u.push(n),c.shift());let m;if(O(!1,c,-1)===""&&(c.pop(),m=c.pop()),c.length===0)return;for(let[D,y]of c.entries())D%2===1?u.push(x):u.push(y);m!==void 0?/\n/u.test(m)?u.push(fi(s,O(!1,u,-1),i,a)):u.push(n):u.push(Di(s,O(!1,u,-1),i,a))}else/\n/u.test(o)?o.match(/\n/gu).length>1&&u.push("",F):u.push("",n)}else{let o=r();if(u.push(o),a&&pr(a)){let m=Nr.trim(fe(a)),[D]=Nr.split(m);u.push(Di(s,D,i,a))}else u.push(F)}},"children"),u}function Di(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function fi(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var Ec=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Fc(e,t,r){let{parent:n}=e;if(Ec.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=Be(e,r);return l([u?"":b("("),f([E,t]),E,u?"":b(")")],{shouldBreak:s})}function Cc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(Q(n.value)){let i=fe(n.value),a=N(!1,N(!1,i.slice(1,-1),"'","'"),""",'"'),o=xr(a,t.jsxSingleQuote);a=o==='"'?N(!1,a,'"',"""):N(!1,a,"'","'"),u=e.call(()=>ye(e,Ie(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Ac(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(U(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||X(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),ke,"}"]):l(["{",f([E,r("expression")]),E,ke,"}"])}function Tc(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters)||d(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&Q(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!s&&!d(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(c=>Q(c.value)&&c.value.value.includes(` -`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...dc(n,t,s)],{shouldBreak:u})}function dc(e,t,r){return e.selfClosing?[x,"/>"]:xc(e,t,r)?[">"]:[E,">"]}function xc(e,t,r){let n=e.attributes.length>0&&d(O(!1,e.attributes,-1),g.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function hc(e,t,r){let{node:n}=e,s=[];s.push(""),s}function gc(e,t){let{node:r}=e,n=d(r),s=d(r,g.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function Sc(e,t,r){let n=ye(e,Dc(e,t,r),t);return Fc(e,n,t)}function Bc(e,t){let{node:r}=e,n=d(r,g.Line);return[M(e,t,{indent:n}),n?F:""]}function bc(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!Qn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return Cc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return P(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return P(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return bc(e,t,r);case"JSXExpressionContainer":return Ac(e,t,r);case"JSXFragment":case"JSXElement":return Sc(e,t,r);case"JSXOpeningElement":return Tc(e,t,r);case"JSXClosingElement":return hc(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return gc(e,t);case"JSXEmptyExpression":return Bc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me(n,"JSX")}}function Pc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!pr(t)}function pr(e){return e.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function kc(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Fi(e){let{node:t,parent:r}=e;if(!X(t)||!X(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!pr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&Bt(u.expression)}function Ic(e){return Bt(e.node)||Fi(e)}var Xr=Ic;var Lc=0;function Yr(e,t,r){var J;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((J=e.root.extra)==null?void 0:J.__isUsingHackPipeline),c=Ds(e,r,t,!1,a);if(a)return c;if(o)return l(c);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||q(s)&&!s.computed)return l([f([E,...c]),E]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ae(s),y=De(n.left)&&nr(n.operator,n.left.operator);if(m||Ut(n)&&!y||!Ut(n)&&D)return l(c);if(c.length===0)return"";let C=X(n.right),p=c.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===le),A=c.slice(0,p===-1?1:p+1),T=c.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++Lc),B=l([...A,f(T)],{id:S});if(!C)return B;let _=O(!1,c,-1);return l([B,At(_,{groupId:S})])}function Ds(e,t,r,n,s){var A;let{node:u}=e;if(!De(u))return[l(t())];let i=[];nr(u.operator,u.left.operator)?i=e.call(T=>Ds(T,t,r,!0,s),"left"):i.push(l(t("left")));let a=Ut(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||wc(e,r))&&!Oe(r.originalText,u.right),c=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",P([x,": "],e.map(()=>he(2,l(t())),"arguments"))])):"",D;if(a)D=[c," ",t("right"),m];else{let S=c==="|>"&&((A=e.root.extra)==null?void 0:A.__isUsingHackPipeline)?e.call(B=>Ds(B,t,r,!0,s),"right"):t("right");D=[o?x:"",c,o?" ":x,S,m]}let{parent:y}=e,C=d(u.left,g.Trailing|g.Line),p=C||!(s&&u.type==="LogicalExpression")&&y.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",p?l(D,{shouldBreak:C}):D),n&&d(u)){let T=Wt(ye(e,i,r));return T.type===Pe?T.parts:Array.isArray(T)?T:[T]}return i}function Ut(e){return e.type!=="LogicalExpression"?!1:!!(se(e.right)&&e.right.properties.length>0||U(e.right)&&e.right.elements.length>0||X(e.right))}var Ci=e=>e.type==="BinaryExpression"&&e.operator==="|";function wc(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Ci(e.node)&&!e.hasAncestor(r=>!Ci(r)&&r.type!=="JsExpressionRoot")}function Ti(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+ct(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Yr(e,t,r);case"NGChainedExpression":return l(P([";",x],e.map(()=>_c(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Ai(e)?" ":[";",x],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=Ai(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(s===2||s===3)&&(n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then"||n.key.name==="track"))&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Me(n,"Angular")}}function Ai({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}var Oc=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function _c({node:e}){return tr(e,Oc)}function fs(e,t,r){let{node:n}=e;return l([P(x,e.map(r,"decorators")),hi(n,t)?F:x])}function di(e,t,r){return gi(e.node)?[P(F,e.map(r,"declaration","decorators")),F]:""}function xi(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!w(u)||gi(s)||Xr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||hi(n,t);return[e.key==="declaration"&&iu(s)?F:i?Ee:"",P(x,e.map(r,"decorators")),x]}function hi(e,t){return e.decorators.some(r=>te(t.originalText,k(r)))}function gi(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return w(t)&&ht(e,t[0])}var Dt=class extends Error{name="ArgExpansionBailout"};function jc(e,t,r){let{node:n}=e,s=oe(n);if(s.length===0)return["(",M(e,t),")"];let u=s.length-1;if(Rc(s)){let y=["("];return Rt(e,(C,p)=>{y.push(r()),p!==u&&y.push(", ")}),y.push(")"),y}let i=!1,a=[];Rt(e,({node:y},C)=>{let p=r();C===u||(pe(y,t)?(i=!0,p=[p,",",F,F]):p=[p,",",x]),a.push(p)});let o=n.type==="ImportExpression"||n.callee.type==="Import",c=!t.parser.startsWith("__ng_")&&!o&&ae(t,"all")?",":"";function m(){return l(["(",f([x,...a]),c,x,")"],{shouldBreak:!0})}if(i||e.parent.type!=="Decorator"&&lu(s))return m();if(Mc(s)){let y=a.slice(1);if(y.some(ne))return m();let C;try{C=r(Jn(n,0),{expandFirstArg:!0})}catch(p){if(p instanceof Dt)return m();throw p}return ne(C)?[Ee,ze([["(",l(C,{shouldBreak:!0}),", ",...y,")"],m()])]:ze([["(",C,", ",...y,")"],["(",l(C,{shouldBreak:!0}),", ",...y,")"],m()])}if(vc(s,a,t)){let y=a.slice(0,-1);if(y.some(ne))return m();let C;try{C=r(Jn(n,-1),{expandLastArg:!0})}catch(p){if(p instanceof Dt)return m();throw p}return ne(C)?[Ee,ze([["(",...y,l(C,{shouldBreak:!0}),")"],m()])]:ze([["(",...y,C,")"],["(",...y,l(C,{shouldBreak:!0}),")"],m()])}let D=["(",f([E,...a]),b(c),E,")"];return Or(e)?D:l(D,{shouldBreak:a.some(ne)||i})}function cr(e,t=!1){return se(e)&&(e.properties.length>0||d(e))||U(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&cr(e.expression)||Te(e)&&cr(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Jc(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&cr(e.body,!0)||se(e.body)||U(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||X(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function vc(e,t,r){var u,i;let n=O(!1,e,-1);if(e.length===1){let a=O(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=O(!1,e,-2);return!d(n,g.Leading)&&!d(n,g.Trailing)&&cr(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!U(n))&&!(e.length>1&&Es(n,r))}function Mc(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&qc(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Bi(r)&&!cr(r)}function Bi(e){if(e.type==="ParenthesizedExpression")return Bi(e.expression);if(Te(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return Mt(t)&&be(e.expression,1)}return lt(e)&&oe(e).length>1?!1:De(e)?be(e.left,1)&&be(e.right,1):Mn(e)||be(e)}function Rc(e){return e.length===2?Si(e,0):e.length===3?e[0].type==="Identifier"&&Si(e,1):!1}function Si(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&K(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>d(s))}function Jc(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,g.Dangling))}function qc(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Ae(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Q(e.properties[0].value)&&e.properties[0].value.value==="module"}var lr=jc;var Wc=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&oe(e).length>0);function bi(e,t,r){var c;let n=r("object"),s=Fs(e,t,r),{node:u}=e,i=e.findAncestor(m=>!(q(m)||m.type==="TSNonNullExpression")),a=e.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),o=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!q(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(Wc(u.object)||((c=n.label)==null?void 0:c.memberChain));return it(n.label,[n,o?s:l(f([E,s]))])}function Fs(e,t,r){let n=r("property"),{node:s}=e,u=V(e);return s.computed?!s.property||Ce(s.property)?[u,"[",n,"]"]:l([u,"[",f([E,n]),E,"]"]):[u,".",n]}function Pi(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Pi(e,t,r),"expression");let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(I){let{originalText:G}=t,ee=yt(G,k(I));return G.charAt(ee)===")"?ee!==!1&&Ot(G,ee+1):pe(I,t)}function a(I){let{node:G}=I;if(G.type==="ChainExpression")return I.call(()=>a(I),"expression");if(L(G)&&(Ft(G.callee)||L(G.callee))){let ee=i(G);u.unshift({node:G,hasTrailingEmptyLine:ee,printed:[ye(I,[V(I),Qe(I,t,r),lr(I,t,r)],t),ee?F:""]}),I.call(qe=>a(qe),"callee")}else Ft(G)?(u.unshift({node:G,needsParens:Be(I,t),printed:ye(I,q(G)?Fs(I,t,r):Hr(I,t,r),t)}),I.call(ee=>a(ee),"object")):G.type==="TSNonNullExpression"?(u.unshift({node:G,printed:ye(I,"!",t)}),I.call(ee=>a(ee),"expression")):u.unshift({node:G,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[V(e),Qe(e,t,r),lr(e,t,r)]}),o.callee&&e.call(I=>a(I),"callee");let c=[],m=[u[0]],D=1;for(;D0&&c.push(m);function C(I){return/^[A-Z]|^[$_]+$/u.test(I)}function p(I){return I.length<=t.tabWidth}function A(I){var qe;let G=(qe=I[1][0])==null?void 0:qe.node.computed;if(I[0].length===1){let xt=I[0][0].node;return xt.type==="ThisExpression"||xt.type==="Identifier"&&(C(xt.name)||s&&p(xt.name)||G)}let ee=O(!1,I[0],-1).node;return q(ee)&&ee.property.type==="Identifier"&&(C(ee.property.name)||G)}let T=c.length>=2&&!d(c[1][0].node)&&A(c);function S(I){let G=I.map(ee=>ee.printed);return I.length>0&&O(!1,I,-1).needsParens?["(",...G,")"]:G}function B(I){return I.length===0?"":f([F,P(F,I.map(S))])}let _=c.map(S),J=_,j=T?3:2,h=c.flat(),W=h.slice(1,-1).some(I=>d(I.node,g.Leading))||h.slice(0,-1).some(I=>d(I.node,g.Trailing))||c[j]&&d(c[j][0].node,g.Leading);if(c.length<=j&&!W&&!c.some(I=>O(!1,I,-1).hasTrailingEmptyLine))return Or(e)?J:l(J);let Fe=O(!1,c[T?1:0],-1).node,H=!L(Fe)&&i(Fe),ue=[S(c[0]),T?c.slice(1,2).map(S):"",H?F:"",B(c.slice(T?2:1))],Z=u.map(({node:I})=>I).filter(L);function It(){let I=O(!1,O(!1,c,-1),-1).node,G=O(!1,_,-1);return L(I)&&ne(G)&&Z.slice(0,-1).some(ee=>ee.arguments.some(_t))}let $t;return W||Z.length>2&&Z.some(I=>!I.arguments.every(G=>be(G)))||_.slice(0,-1).some(ne)||It()?$t=l(ue):$t=[ne(J)||H?Ee:"",ze([J,ue])],it({memberChain:!0},$t)}var ki=Pi;function Vr(e,t,r){var m;let{node:n}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",i=V(e),a=oe(n),o=a.length===1&&Lr(a[0],t.originalText);if(o||Gc(e)||St(n,e.parent)){let D=[];if(Rt(e,()=>{D.push(r())}),!(o&&((m=D[0].label)!=null&&m.embed)))return[s?"new ":"",Ii(e,r),i,Qe(e,t,r),"(",P(", ",D),")"]}if(!u&&!s&&Ft(n.callee)&&!e.call(D=>Be(D,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return ki(e,t,r);let c=[s?"new ":"",Ii(e,r),i,Qe(e,t,r),lr(e,t,r)];return u||L(n.callee)?l(c):c}function Ii(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function Gc(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=oe(t);return t.callee.name==="require"?r.length===1&&Q(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Q(r[0])&&r[1].type==="ArrayExpression":!1}function Tt(e,t,r,n,s,u){let i=Uc(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return l([l(n),s,l(f([x,a]))]);case"never-break-after-operator":return l([l(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return l([l(n),s,l(f(x),{id:o}),ke,At(a,{groupId:o})])}case"break-lhs":return l([n,s," ",l(a)]);case"chain":return[l(n),s,x,a];case"chain-tail":return[l(n),s,f([x,a])];case"chain-tail-arrow-chain":return[l(n),s,a];case"only-left":return n}}function wi(e,t,r){let{node:n}=e;return Tt(e,t,r,r("left"),[" ",n.operator],"right")}function Oi(e,t,r){return Tt(e,t,r,r("id")," =","init")}function Uc(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!$r(i);if(e.match($r,_i,y=>!a||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&$r(i.right)||Oe(t.originalText,i))return"break-after-operator";if(u.type==="ImportAttribute"||i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let m=Bu(n);if(Xc(u)||$c(u)||Cs(u)&&m)return"break-lhs";let D=zc(u,n,t);return e.call(()=>Nc(e,t,r,D),s)?"break-after-operator":Yc(u)?"break-lhs":!m&&(D||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||Ce(i)||i.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Nc(e,t,r,n){let s=e.node;if(De(s)&&!Ut(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!el(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=s;return De(c)&&!Ut(c)}let{consequent:a,alternate:o}=s;return a.type==="ConditionalExpression"||o.type==="ConditionalExpression"}case"ClassExpression":return w(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(Q(u)||e.call(()=>ji(e,t,r),...i))}function Xc(e){if(_i(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Ae(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function $r(e){return e.type==="AssignmentExpression"}function _i(e){return $r(e)||e.type==="VariableDeclarator"}function Yc(e){let t=Vc(e);if(w(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Hc=v(["TSTypeAliasDeclaration","TypeAlias"]);function Vc(e){var t;if(Hc(e))return(t=e.typeParameters)==null?void 0:t.params}function $c(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Li(t.typeAnnotation);return w(r)&&r.length>1&&r.some(n=>w(Li(n))||n.type==="TSConditionalType")}function Cs(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var Kc=v(["TSTypeReference","GenericTypeAnnotation"]);function Li(e){var t;if(Kc(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function ji(e,t,r,n=!1){var i;let{node:s}=e,u=()=>ji(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(L(s)){if((i=Vr(e,t,r).label)!=null&&i.memberChain)return!1;let o=oe(s);return!(o.length===0||o.length===1&&rr(o[0],t))||Qc(s,r)?!1:e.call(u,"callee")}return q(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function zc(e,t,r){return Ae(e)?(t=Wt(t),typeof t=="string"&&et(t)1)return!0;if(r.length===1){let s=r[0];if(Ne(s)||_r(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(ne(t(n)))return!0}return!1}function Zc(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function el(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function Je(e,t,r,n,s){let u=e.node,i=K(u),a=s?Qe(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:p=>ge(r.originalText,k(p))===")"}),")"];let{parent:o}=e,c=St(o),m=As(u),D=[];if(fu(e,(p,A)=>{let T=A===i.length-1;T&&u.rest&&D.push("..."),D.push(t()),!T&&(D.push(","),c||m?D.push(" "):pe(i[A],r)?D.push(F,F):D.push(x))}),n&&!rl(e)){if(ne(a)||ne(D))throw new Dt;return l([ur(a),"(",ur(D),")"])}let y=i.every(p=>!w(p.decorators));return m&&y?[a,"(",...D,")"]:c?[a,"(",...D,")"]:(Ir(o)||ou(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&Mt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"||u.type==="HookTypeAnnotation"?["(",...D,")"]:D:[a,"(",f([E,...D]),b(!Du(u)&&ae(r,"all")?",":""),E,")"]}function As(e){if(!e)return!1;let t=K(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&we(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&we(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||se(r.right)&&r.right.properties.length===0||U(r.right)&&r.right.elements.length===0))}function tl(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function ot(e,t){var s;let r=tl(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return K(e).length===1&&(we(r)||ne(t))}function rl(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function vi(e){let t=K(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}var nl=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),sl=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function ul(e){let{types:t}=e;if(t.some(n=>d(n)))return!1;let r=t.find(n=>sl(n));return r?t.every(n=>n===r||nl(n)):!1}function Ts(e){return Mt(e)||we(e)?!0:Ne(e)?ul(e):!1}function Mi(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[$(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Kr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[$(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Tt(e,t,r,u," =",i),n]}function zr(e,t,r){let n=!1;return l(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let c=we(i),m=we(u);return m&&c?[" & ",n?f(o):o]:!m&&!c?f([" &",x,o]):(a>1&&(n=!0),[" & ",a>1?f(o):o])},"types"))}function Qr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&(s.type!=="TSConditionalType"||!t.experimentalTernaries)&&(s.type!=="ConditionalTypeAnnotation"||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Oe(t.originalText,n)),i=Ts(n),a=e.map(m=>{let D=r();return i||(D=he(2,D)),ye(m,D,t)},"types");if(i)return P(" | ",a);let o=u&&!Oe(t.originalText,n),c=[b([o?x:"","| "]),P([x,"| "],a)];return Be(e,t)?l([f(c),E]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?l([f([b(["(",E]),c]),E,b(")")]):l(u?f(c):c)}function il(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Ir(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&ht(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Zr(e,t,r){let{node:n}=e,s=[Nt(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=Je(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(il(e)?" => ":": ",r("returnType")):i.push(Y(e,r,n.returnType?"returnType":"typeAnnotation")),ot(n,i)&&(u=l(u)),s.push(u,i),l(s)}function en(e,t,r){return[r("objectType"),V(e),"[",r("indexType"),"]"]}function tn(e,t,r){return["infer ",r("typeParameter")]}function ds(e,t,r){let{node:n}=e;return[n.postfix?"":r,Y(e,t),n.postfix?r:""]}function rn(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function nn(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var al=new WeakSet;function Y(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Ri,r);(u==="=>"||u===":"&&d(n,g.Leading))&&(s=!0),al.add(n)}return s?[" ",t(r)]:t(r)}var Ri=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function sn(e,t,r){let n=Ri(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function un(e){return[e("elementType"),"[]"]}function an({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function on(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Y(e,t)]:""]}function V(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||q(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function pn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var ol=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function $(e){let{node:t}=e;return t.declare||ol.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var pl=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Nt({node:e}){return e.abstract||pl.has(e.type)?"abstract ":""}function Qe(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Hr(e,t,r){return["::",r("callee")]}function ft(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:f([x,t])}function cn(e,t){return["...",t("argument"),Y(e,t)]}function Xt(e){return e.accessibility?e.accessibility+" ":""}function cl(e,t,r,n){let{node:s}=e,u=s.inexact?"...":"";return d(s,g.Dangling)?l([r,u,M(e,t,{indent:!0}),E,n]):[r,u,n]}function Yt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(cl(e,t,u,i));else{let c=O(!1,o,-1),m=(c==null?void 0:c.type)!=="RestElement"&&!n.inexact,D=c===null,y=Symbol("array"),C=!t.__inJestEach&&o.length>1&&o.every((T,S,B)=>{let _=T==null?void 0:T.type;if(!U(T)&&!se(T))return!1;let J=B[S+1];if(J&&_!==J.type)return!1;let j=U(T)?"elements":"properties";return T[j]&&T[j].length>1}),p=Es(n,t),A=m?D?",":ae(t)?p?b(",","",{groupId:y}):b(","):"":"";s.push(l([u,f([E,p?ml(e,t,r,A):[ll(e,t,a,n.inexact,r),A],M(e,t)]),E,i],{shouldBreak:C,id:y}))}return s.push(V(e),Y(e,r)),s}function Es(e,t){return U(e)&&e.elements.length>1&&e.elements.every(r=>r&&(Ce(r)||vn(r)&&!d(r.argument))&&!d(r,g.Trailing|g.Line,n=>!te(t.originalText,R(n),{backwards:!0})))}function Ji({node:e},{originalText:t}){let r=s=>Lt(t,wt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return Ot(t,n(k(e)))}function ll(e,t,r,n,s){let u=[];return e.each(({node:i,isLast:a})=>{u.push(i?l(s()):""),(!a||n)&&u.push([",",x,i&&Ji(e,t)?E:""])},r),n&&u.push("..."),u}function ml(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(Ji(e,t)?[F,F]:d(i,g.Leading|g.Line)?F:x)},"elements"),qt(s)}var qi=new Proxy(()=>{},{get:()=>qi}),ln=qi;var yl=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Dl=e=>yl.test(e),Wi=Dl;function fl(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Ze=fl;var mn=new WeakMap;function Ui(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Gi(e,t){return t.parser==="json"||t.parser==="jsonc"||!Q(e.key)||tt(fe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Wi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Ui(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function El(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Ce(r)&&Ui(Ze(fe(r)))&&String(r.value)===Ze(fe(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&mn.get(e.parent))}function Et(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!mn.has(s)){let i=e.siblings.some(a=>!a.computed&&Q(a.key)&&!Gi(a,t));mn.set(s,i)}if(El(e,t)){let i=tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>ye(a,i,t),"key")}return Gi(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!mn.get(s))?e.call(i=>ye(i,/^\d/u.test(u.value)?Ze(u.value):u.value,t),"key"):r("key")}function yn(e,t,r){let{node:n}=e;return n.shorthand?r("value"):Tt(e,t,r,Et(e,t,r),":","value")}var Fl=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&>(r));function Dn(e,t,r,n){if(Fl(e))return fn(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;L(m)&&(oe(m).length>1||K(s).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(u=!0)}let i=[$(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=Je(e,t,r,u),o=Ht(e,t),c=ot(s,o);return i.push(Qe(e,r,t),l([c?l(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function mr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(ln.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(Et(e,t,r),n.optional||n.key.optional?"?":"",n===u?fn(e,t,r):r("value")),i}function fn(e,t,r){let{node:n}=e,s=Je(e,r,t),u=Ht(e,r),i=vi(n),a=ot(n,u),o=[Qe(e,t,r),l([i?l(s,{shouldBreak:!0}):a?l(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function Cl(e){let t=K(e);return t.length===1&&!e.typeParameters&&!d(e,g.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function En(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Cl(r)}return!1}function Ht(e,t){let{node:r}=e,s=[Y(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function Ni(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");Al(t,n.argument)?o=["(",f([F,o]),F,")"]:(De(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=l([b("("),f([E,o]),E,b(")")])),u.push(" ",o)}let i=d(n,g.Dangling),a=s&&i&&d(n,g.Last|g.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function Xi(e,t,r){return["return",Ni(e,t,r)]}function Yi(e,t,r){return["throw",Ni(e,t,r)]}function Al(e,t){if(Oe(e.originalText,t)||d(t,g.Leading,r=>de(e.originalText,R(r),k(r)))&&!X(t))return!0;if(jt(t)){let r=t,n;for(;n=uu(r);)if(r=n,Oe(e.originalText,r))return!0}return!1}var xs=new WeakMap;function Hi(e){return xs.has(e)||xs.set(e,e.type==="ConditionalExpression"&&!ie(e,t=>t.type==="ObjectExpression")),xs.get(e)}var Vi=e=>e.type==="SequenceExpression";function $i(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function T(){let{node:S}=e,B=Tl(e,t,r,n);if(s.length===0)s.push(B);else{let{leading:_,trailing:J}=ps(e,t);s.push([_,B]),i.unshift(J)}o&&(a||(a=S.returnType&&K(S).length>0||S.typeParameters||K(S).some(_=>_.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),c=S.body):e.call(T,"body")})();let m=!Oe(t.originalText,c)&&(Vi(c)||dl(c,u,t)||!a&&Hi(c)),D=e.key==="callee"&<(e.parent),y=Symbol("arrow-chain"),C=xl(e,n,{signatureDocs:s,shouldBreak:a}),p,A=!1;return o&&(D||n.assignmentLayout)&&(A=!0,p=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!m),u=hl(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:c,shouldPutBodyOnSameLine:m}),l([l(A?f([E,C]):C,{shouldBreak:p,id:y})," =>",o?At(u,{groupId:y}):l(u),o&&D?b(E,"",{groupId:y}):""])}function Tl(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),En(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=Ht(e,r);if(a){if(ne(o))throw new Dt;o=l(ur(o))}u.push(l([Je(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=yt(t.originalText,k(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function dl(e,t,r){var n,s;return U(e)||se(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||X(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||Lr(e,r.originalText))}function xl(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&<(s)||De(s)?l([r[0]," =>",f([x,P([" =>",x],r.slice(1))])],{shouldBreak:n}):u==="callee"&<(s)||t.assignmentLayout?l(P([" =>",x],r),{shouldBreak:n}):l(f(P([" =>",x],r)),{shouldBreak:n})}function hl(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,c=r.expandLastArg&&ae(t,"all")?b(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?E:"";return i&&Hi(u)?[" ",l([b("","("),f([E,n]),b("",")"),c,m]),s]:(Vi(u)&&(n=l(["(",f([E,n]),E,")"])),i?[" ",n,s]:[f([x,n,s]),c,m])}var gl=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let s=t[n];if(r(s,n,t))return s}}},Ki=gl;function yr(e,t,r,n){let{node:s}=e,u=[],i=Ki(!1,s[n],a=>a.type!=="EmptyStatement");return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(F),pe(a,t)&&u.push(F)))},n),u}function Fn(e,t,r){let n=Sl(e,t,r),{node:s,parent:u}=e;if(s.type==="Program"&&(u==null?void 0:u.type)!=="ModuleExpression")return n?[n,F]:"";let i=[];if(s.type==="StaticBlock"&&i.push("static "),i.push("{"),n)i.push(f([F,n]),F);else{let a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ComponentDeclaration"||u.type==="HookDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="ModuleExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||s.type==="StaticBlock"||i.push(F)}return i.push("}"),i}function Sl(e,t,r){let{node:n}=e,s=w(n.directives),u=n.body.some(o=>o.type!=="EmptyStatement"),i=d(n,g.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(yr(e,t,r,"directives")),(u||i)&&(a.push(F),pe(O(!1,n.directives,-1),t)&&a.push(F))),u&&a.push(yr(e,t,r,"body")),i&&a.push(M(e,t)),a}function Bl(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var Cn=Bl;function bl(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function zi(e,t,r){let{node:n}=e;return l([n.variance?r("variance"):"","[",f([r("keyTparam")," in ",r("sourceType")]),"]",bl(n.optional),": ",r("propType")])}function hs(e,t){return e==="+"||e==="-"?e+t:t}function Qi(e,t,r){let{node:n}=e,s=de(t.originalText,R(n),R(n.typeParameter));return l(["{",f([t.bracketSpacing?x:E,l([r("typeParameter"),n.optional?hs(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?b(";"):""]),M(e,t),t.bracketSpacing?x:E,"}"],{shouldBreak:s})}var Dr=Cn("typeParameters");function Pl(e,t,r){let{node:n}=e;return K(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Pt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=St(e.grandparent),i=e.match(c=>!(c[n].length===1&&we(c[n][0])),void 0,(c,m)=>m==="typeAnnotation",c=>c.type==="Identifier",Cs);if(s[n].length===0||!i&&(u||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||Ts(s[n][0]))))return["<",P(", ",e.map(r,n)),kl(e,t),">"];let o=s.type==="TSTypeParameterInstantiation"?"":Pl(e,t,n)?",":ae(t)?b(","):"";return l(["<",f([E,P([",",x],e.map(r,n))]),o,E,">"],{id:Dr(s)})}function kl(e,t){let{node:r}=e;if(!d(r,g.Dangling))return"";let n=!d(r,g.Line),s=M(e,t,{indent:!n});return n?s:[s,F]}function An(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(hs(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(Y(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",l(f(x),{id:a}),ke,At(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),l(u)}var Zi=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Tn(e,t,r){let{node:n}=e,s=[$(e),Nt(e),"class"],u=d(n.id,g.Trailing)||d(n.typeParameters,g.Trailing)||d(n.superClass)||w(n.extends)||w(n.mixins)||w(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[Ll(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],c=e.call(m=>["extends ",ye(m,o,t)],"superClass");u?a.push(x,l(c)):a.push(" ",c)}else a.push(gs(e,t,r,"extends"));if(a.push(gs(e,t,r,"mixins"),gs(e,t,r,"implements")),u){let o;ta(n)?o=[...i,f(a)]:o=f([...i,a]),s.push(l(o,{id:ea(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var ea=Cn("heritageGroup");function Ss(e){return b(F,"",{groupId:ea(e)})}function Il(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function ta(e){return e.typeParameters&&!d(e.typeParameters,g.Trailing|g.Line)&&!Il(e)}function gs(e,t,r,n){let{node:s}=e;if(!w(s[n]))return"";let u=M(e,t,{marker:n});return[ta(s)?b(" ",x,{groupId:Dr(s.typeParameters)}):x,u,u&&F,n,l(f([x,P([",",x],e.map(r,n))]))]}function Ll(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?l(b(["(",f([E,n]),E,")"],n)):n}function dn(e,t,r){let{node:n}=e,s=[];return w(n.decorators)&&s.push(fs(e,t,r)),s.push(Xt(n)),n.static&&s.push("static "),s.push(Nt(e)),n.override&&s.push("override "),s.push(mr(e,t,r)),s}function xn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";w(n.decorators)&&s.push(fs(e,t,r)),s.push(Xt(n),$(e)),n.static&&s.push("static "),s.push(Nt(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(Et(e,t,r),V(e),pn(e),Y(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[Tt(e,t,r,s," =",i?void 0:"value"),u]}function ra(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&Zi(u)&&wl(u,i)&&s.push(";"),a||(s.push(F),pe(u,t)&&s.push(F))},"body"),d(n,g.Dangling)&&s.push(M(e,t)),[w(n.body)?Ss(e.parent):"","{",s.length>0?[f([F,s]),F]:"","}"]}function wl(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(Zi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function na(e,t){if(t.semi||Bs(e,t)||Ps(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>sa(e,t),"expression"))}function sa(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!En(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(X(r))return!0}return Be(e,t)?!0:jt(r)?e.call(()=>sa(e,t),...Pr(r)):!1}function Bs({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&X(e.expression)&&t.type==="Program"&&t.body.length===1}function bs(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return bs(e.object)}return!1;case"Identifier":return!0;default:return!1}}function Ps({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function ua(e,t,r){let n=[r("expression")];return Ps(e,t)?bs(e.node.expression)&&n.push(";"):Bs(e,t)||t.semi&&n.push(";"),n}function ia(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=P([",",x],n);return t.__isVueForBindingLeft?["(",f([E,l(s)]),E,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return P([",",x],n)}}function pa(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return aa(r);case"BigIntLiteral":return hn(r.extra.raw);case"NumericLiteral":return Ze(r.extra.raw);case"StringLiteral":return Ie(tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return Ze(r.value)+"m";case"DirectiveLiteral":return oa(r.extra.raw,t);case"Literal":{if(r.regex)return aa(r.regex);if(r.bigint)return hn(r.raw);if(r.decimal)return Ze(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?Ze(r.raw):typeof n=="string"?Ol(e)?oa(r.raw,t):Ie(tt(r.raw,t)):String(n)}}}function Ol(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function hn(e){return e.toLowerCase()}function aa({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function oa(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function _l(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let u=R(s);if(u>r)break;let i=k(s);if(ie.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function gn(e,t,r){let{node:n}=e,s=[di(e,t,r),$(e),"export",la(n)?" default":""],{declaration:u,exported:i}=n;return d(n,g.Dangling)&&(s.push(" ",M(e,t)),wr(n)&&s.push(F)),u?s.push(" ",r("declaration")):(s.push(Ml(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(ya(e,t,r)),s.push(ma(e,t,r),fa(e,t,r))),s.push(vl(n,t)),s}var jl=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function vl(e,t){return t.semi&&(!e.declaration||la(e)&&!jl(e.declaration))?";":""}function ks(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Is(e,t){return ks(e.importKind,t)}function Ml(e){return ks(e.exportKind)}function ma(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Da(n,t)&&s.push(" from"),s.push(" ",r("source")),s}function ya(e,t,r){let{node:n}=e;if(!Da(n,t))return"";let s=[" "];if(w(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Me(n,"specifier")},"specifiers"),s.push(P(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(l(["{",f([t.bracketSpacing?x:E,P([",",x],i)]),b(ae(t)?",":""),t.bracketSpacing?x:E,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Da(e,t){return e.type!=="ImportDeclaration"||w(e.specifiers)||e.importKind==="type"?!0:fr(t,R(e),R(e.source)).trimEnd().endsWith("from")}function Rl(e,t){var n,s;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=fr(t,k(e.source),(s=e.attributes)!=null&&s[0]?R(e.attributes[0]):k(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||w(e.attributes)?"with":void 0}function fa(e,t,r){let{node:n}=e;if(!n.source)return"";let s=Rl(n,t);if(!s)return"";let u=[` ${s} {`];return w(n.attributes)&&(t.bracketSpacing&&u.push(" "),u.push(P(", ",e.map(r,"attributes"))),t.bracketSpacing&&u.push(" ")),u.push("}"),u}function Ea(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],c=n[a],m="",D="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),c&&!Jl(n)&&(D=r(a)),[ks(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&D?" as ":"",D]}function Jl(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!eu(t,r))return!1;if(Q(t))return t.value===r.value&&fe(t)===fe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function dt(e,t,r){var j;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumBigIntBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(h=>e.map(({node:W})=>({node:W,printed:r(),loc:R(W)}),h));a.length>1&&o.sort((h,W)=>h.loc-W.loc);let{parent:c,key:m}=e,D=u&&m==="body"&&(c.type==="InterfaceDeclaration"||c.type==="DeclareInterface"||c.type==="DeclareClass"),y=s.type==="TSInterfaceBody"||i||D||s.type==="ObjectPattern"&&c.type!=="FunctionDeclaration"&&c.type!=="FunctionExpression"&&c.type!=="ArrowFunctionExpression"&&c.type!=="ObjectMethod"&&c.type!=="ClassMethod"&&c.type!=="ClassPrivateMethod"&&c.type!=="AssignmentPattern"&&c.type!=="CatchClause"&&s.properties.some(h=>h.value&&(h.value.type==="ObjectPattern"||h.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&de(t.originalText,R(s),o[0].loc),C=D?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?b(n,";"):",",p=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",A=s.exact?"|}":"}",T=[],S=o.map(h=>{let W=[...T,l(h.printed)];return T=[C,x],(h.node.type==="TSPropertySignature"||h.node.type==="TSMethodSignature"||h.node.type==="TSConstructSignatureDeclaration"||h.node.type==="TSCallSignatureDeclaration")&&d(h.node,g.PrettierIgnore)&&T.shift(),pe(h.node,t)&&T.push(F),W});if(s.inexact||s.hasUnknownMembers){let h;if(d(s,g.Dangling)){let W=d(s,g.Line);h=[M(e,t),W||te(t.originalText,k(O(!1,ct(s),-1)))?F:x,"..."]}else h=["..."];S.push([...T,...h])}let B=(j=O(!1,o,-1))==null?void 0:j.node,_=!(s.inexact||s.hasUnknownMembers||B&&(B.type==="RestElement"||(B.type==="TSPropertySignature"||B.type==="TSCallSignatureDeclaration"||B.type==="TSMethodSignature"||B.type==="TSConstructSignatureDeclaration")&&d(B,g.PrettierIgnore))),J;if(S.length===0){if(!d(s,g.Dangling))return[p,A,Y(e,r)];J=l([p,M(e,t,{indent:!0}),E,A,V(e),Y(e,r)])}else J=[D&&w(s.properties)?Ss(c):"",p,f([t.bracketSpacing?x:E,...S]),b(_&&(C!==","||ae(t))?C:""),t.bracketSpacing?x:E,A,V(e),Y(e,r)];return e.match(h=>h.type==="ObjectPattern"&&!w(h.decorators),Ls)||we(s)&&(e.match(void 0,(h,W)=>W==="typeAnnotation",(h,W)=>W==="typeAnnotation",Ls)||e.match(void 0,(h,W)=>h.type==="FunctionTypeParam"&&W==="typeAnnotation",Ls))||!y&&e.match(h=>h.type==="ObjectPattern",h=>h.type==="AssignmentExpression"||h.type==="VariableDeclarator")?J:l(J,{shouldBreak:y})}function Ls(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&As(e)}function ql(e){let t=[e];for(let r=0;ry[H]===n),p=y.type===n.type&&!C,A,T,S=0;do T=A||n,A=e.getParentNode(S),S++;while(A&&A.type===n.type&&a.every(H=>A[H]!==T));let B=A||y,_=T;if(s&&(X(n[a[0]])||X(o)||X(c)||ql(_))){D=!0,p=!0;let H=Z=>[b("("),f([E,Z]),E,b(")")],ue=Z=>Z.type==="NullLiteral"||Z.type==="Literal"&&Z.value===null||Z.type==="Identifier"&&Z.name==="undefined";m.push(" ? ",ue(o)?r(u):H(r(u))," : ",c.type===n.type||ue(c)?r(i):H(r(i)))}else{let H=Z=>t.useTabs?f(r(Z)):he(2,r(Z)),ue=[x,"? ",o.type===n.type?b("","("):"",H(u),o.type===n.type?b("",")"):"",x,": ",H(i)];m.push(y.type!==n.type||y[i]===n||C?ue:t.useTabs?Mr(f(ue)):he(Math.max(0,t.tabWidth-2),ue))}let J=[u,i,...a].some(H=>d(n[H],ue=>re(ue)&&de(t.originalText,R(ue),k(ue)))),j=H=>y===B?l(H,{shouldBreak:J}):J?[H,Ee]:H,h=!D&&(q(y)||y.type==="NGPipeExpression"&&y.left===n)&&!y.computed,W=Ul(e),Fe=j([Wl(e,t,r),p?m:f(m),s&&h&&!W?E:""]);return C||W?l([f([E,Fe]),E]):Fe}function Nl(e,t){return(q(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Xl(e,t,r,n){return[...e.map(u=>ct(u)),ct(t),ct(r)].flat().some(u=>re(u)&&de(n.originalText,R(u),k(u)))}var Yl=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Hl(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let u=e.getParentNode(s);if(u.type==="ChainExpression"&&u.expression===n||L(u)&&u.callee===n||q(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Te(u)&&u.expression===n?(r=e.getParentNode(s+1),n=u):r=u}return n===t?!1:r[Yl.get(r.type)]===n}var ws=e=>[b("("),f([E,e]),E,b(")")];function Vt(e,t,r,n){if(!t.experimentalTernaries)return Fa(e,t,r);let{node:s}=e,u=s.type==="ConditionalExpression",i=s.type==="TSConditionalType"||s.type==="ConditionalTypeAnnotation",a=u?"consequent":"trueType",o=u?"alternate":"falseType",c=u?["test"]:["checkType","extendsType"],m=s[a],D=s[o],y=c.map(We=>s[We]),{parent:C}=e,p=C.type===s.type,A=p&&c.some(We=>C[We]===s),T=p&&C[o]===s,S=m.type===s.type,B=D.type===s.type,_=B||T,J=t.tabWidth>2||t.useTabs,j,h,W=0;do h=j||s,j=e.getParentNode(W),W++;while(j&&j.type===s.type&&c.every(We=>j[We]!==h));let Fe=j||C,H=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(C.type==="AssignmentExpression"||C.type==="VariableDeclarator"||C.type==="ClassProperty"||C.type==="PropertyDefinition"||C.type==="ClassPrivateProperty"||C.type==="ObjectProperty"||C.type==="Property"),ue=(C.type==="ReturnStatement"||C.type==="ThrowStatement")&&!(S||B),Z=u&&Fe.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",It=Hl(e),$t=Nl(s,C),I=i&&Be(e,t),G=J?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ee=Xl(y,m,D,t)||S||B,qe=!_&&!p&&!i&&(Z?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:rr(m,t)&&Rn(s.test,3)),xt=_||T||i&&!p||p&&u&&Rn(s.test,1)||qe,js=[];!S&&d(m,g.Dangling)&&e.call(We=>{js.push(M(We,t),F)},"consequent");let Kt=[];d(s.test,g.Dangling)&&e.call(We=>{Kt.push(M(We,t))},"test"),!B&&d(D,g.Dangling)&&e.call(We=>{Kt.push(M(We,t))},"alternate"),d(s,g.Dangling)&&Kt.push(M(e,t));let vs=Symbol("test"),Ma=Symbol("consequent"),Fr=Symbol("test-and-consequent"),Ra=u?[ws(r("test")),s.test.type==="ConditionalExpression"?Ee:""]:[r("checkType")," ","extends"," ",s.extendsType.type==="TSConditionalType"||s.extendsType.type==="ConditionalTypeAnnotation"||s.extendsType.type==="TSMappedType"?r("extendsType"):l(ws(r("extendsType")))],Ms=l([Ra," ?"],{id:vs}),Ja=r(a),Cr=f([S||Z&&(X(m)||p||_)?F:x,js,Ja]),qa=xt?l([Ms,_?Cr:b(Cr,l(Cr,{id:Ma}),{groupId:vs})],{id:Fr}):[Ms,Cr],kn=r(o),Rs=qe?b(kn,Mr(ws(kn)),{groupId:Fr}):kn,zt=[qa,Kt.length>0?[f([F,Kt]),F]:B?F:qe?b(x," ",{groupId:Fr}):x,":",B?" ":J?xt?b(G,b(_||qe?" ":G," "),{groupId:Fr}):b(G," "):" ",B?Rs:l([f(Rs),Z&&!qe?E:""]),$t&&!It?E:"",ee?Ee:""];return H&&!ee?l(f([E,l(zt)])):H||ue?l(f(zt)):It||i&&A?l([f([E,zt]),I?E:""]):C===Fe?l(zt):zt}function Ca(e,t,r,n){let{node:s}=e;if(kr(s))return pa(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),F];case"File":return ia(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return ua(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(se(s.expression)||U(s.expression))?["(",r("expression"),")"]:l(["(",f([E,r("expression")]),E,")"]);case"AssignmentExpression":return wi(e,t,r);case"VariableDeclarator":return Oi(e,t,r);case"BinaryExpression":case"LogicalExpression":return Yr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return bi(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(l(f([E,Hr(e,t,r)]))),i;case"Identifier":return[s.name,V(e),pn(e),Y(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return cn(e,r);case"FunctionDeclaration":case"FunctionExpression":return Dn(e,r,t,n);case"ArrowFunctionExpression":return $i(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(L(a)&&a.callee===s||q(a)&&a.object===s){i=[f([E,...i]),E];let o=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!ie(o.argument,c=>c===s))return l(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return gn(e,t,r);case"ImportDeclaration":return ca(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ea(e,t,r);case"ImportAttribute":return yn(e,t,r);case"Import":return"import";case"Program":case"BlockStatement":case"StaticBlock":return Fn(e,t,r);case"ClassBody":return ra(e,t,r);case"ThrowStatement":return Yi(e,t,r);case"ReturnStatement":return Xi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Vr(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return dt(e,t,r);case"Property":return gt(s)?mr(e,t,r):yn(e,t,r);case"ObjectProperty":return yn(e,t,r);case"ObjectMethod":return mr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Yt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:c})=>{c?o.push(r()):o.push(",",f([x,r()]))},"expressions"),l(o)}return l(P([",",x],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/u.test(s.operator)&&i.push(" "),d(s.argument)?i.push(l(["(",f([E,r("argument")]),E,")"])):i.push(r("argument")),i;case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return Vt(e,t,r,n);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,c=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(y=>y.init),D;return a.length===1&&!d(s.declarations[0])?D=a[0]:a.length>0&&(D=f(a[0])),i=[$(e),s.kind,D?[" ",D]:"",f(a.slice(1).map(y=>[",",m&&!c?F:x,y]))],c&&o.body!==s||i.push(u),l(i)}case"WithStatement":return l(["with (",r("object"),")",ft(s.body,r("body"))]);case"IfStatement":{let a=ft(s.consequent,r("consequent")),o=l(["if (",l([f([E,r("test")]),E]),")",a]);if(i.push(o),s.alternate){let c=d(s.consequent,g.Trailing|g.Line)||wr(s),m=s.consequent.type==="BlockStatement"&&!c;i.push(m?" ":F),d(s,g.Dangling)&&i.push(M(e,t),c?F:" "),i.push("else",l(ft(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=ft(s.body,r("body")),o=M(e,t),c=o?[o,E]:"";return!s.init&&!s.test&&!s.update?[c,l(["for (;;)",a])]:[c,l(["for (",l([f([E,r("init"),";",x,r("test"),";",x,r("update")]),E]),")",a])]}case"WhileStatement":return l(["while (",l([f([E,r("test")]),E]),")",ft(s.body,r("body"))]);case"ForInStatement":return l(["for (",r("left")," in ",r("right"),")",ft(s.body,r("body"))]);case"ForOfStatement":return l(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",ft(s.body,r("body"))]);case"DoWhileStatement":{let a=ft(s.body,r("body"));return i=[l(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(F),i.push("while (",l([f([E,r("test")]),E]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,c=>!re(c)||c.leading&&te(t.originalText,k(c))||c.trailing&&te(t.originalText,R(c),{backwards:!0})),o=r("param");return["catch ",a?["(",f([E,o]),E,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[l(["switch (",f([E,r("discriminant")]),E,")"])," {",s.cases.length>0?f([F,P(F,e.map(({node:a,isLast:o})=>[r(),!o&&pe(a,t)?F:""],"cases"))]):"",F,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,g.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=yr(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:f([F,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return Tn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return dn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return xn(e,t,r);case"TemplateElement":return Ie(s.value.raw);case"TemplateLiteral":return qr(e,r,t);case"TaggedTemplateExpression":return Uu(e,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Me(s,"ESTree")}}function Sn(e,t,r){let{parent:n,node:s,key:u}=e,i=[r("expression")];switch(s.type){case"AsConstExpression":i.push(" as const");break;case"AsExpression":case"TSAsExpression":i.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":i.push(" satisfies ",r("typeAnnotation"));break}return u==="callee"&&L(n)||u==="object"&&q(n)?l([f([E,...i]),E]):i}function Aa(e,t,r){let{node:n}=e,s=[$(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let u=Vl(e,r,t);return n.rendersType?s.push(l([u," ",r("rendersType")])):s.push(l([u])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function Vl(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",M(e,r,{filter:i=>ge(r.originalText,k(i))===")"}),")"];let u=[];return Kl(e,(i,a)=>{let o=a===s.length-1;o&&n.rest&&u.push("..."),u.push(t()),!o&&(u.push(","),pe(s[a],r)?u.push(F,F):u.push(x))}),["(",f([E,...u]),b(ae(r,"all")&&!$l(n,s)?",":""),E,")"]}function $l(e,t){var r;return e.rest||((r=O(!1,t,-1))==null?void 0:r.type)==="RestElement"}function Kl(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function Ta(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function da(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function xa(e,t,r){return dt(e,r,t)}function Bn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function ha(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumBigIntBody":s="bigint";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",xa(e,t,r)]}function bn(e,t,r){let{node:n}=e;return[$(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?xa(e,t,r):t("body")]}function Sa(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let u=Je(e,r,t,!1,!0),i=Ht(e,r),a=ot(n,i);return s.push(l([a?l(u):u,i]),n.body?" ":"",r("body")),s}function Ba(e,t,r){let{node:n}=e,s=[$(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function ga(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function ba(e,t,r){let{node:n}=e,s=[];s.push(ga(e)?"":"hook ");let u=Je(e,r,t,!1,!0),i=[];return i.push(ga(e)?": ":" => ",r("returnType")),ot(n,i)&&(u=l(u)),s.push(u,i),l(s)}function Pn(e,t,r){let{node:n}=e,s=[$(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,g.Trailing|g.Line);return w(n.extends)&&i.push(a?b(" ",x,{groupId:Dr(n.typeParameters)}):x,"extends ",(n.extends.length===1?mu:f)(P([",",x],e.map(r,"extends")))),d(n.id,g.Trailing)||w(n.extends)?a?s.push(l([...u,f(i)])):s.push(l(f([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),l(s)}function Pa(e,t,r){let{node:n}=e;if(Sr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Aa(e,t,r);case"ComponentParameter":return Ta(e,t,r);case"ComponentTypeParameter":return da(e,t,r);case"HookDeclaration":return Sa(e,t,r);case"DeclareHook":return Ba(e,t,r);case"HookTypeAnnotation":return ba(e,t,r);case"DeclareClass":return Tn(e,t,r);case"DeclareFunction":return[$(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Y(e,r),s];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[$(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return gn(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Mi(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Kr(e,t,r);case"IntersectionTypeAnnotation":return zr(e,t,r);case"UnionTypeAnnotation":return Qr(e,t,r);case"ConditionalTypeAnnotation":return Vt(e,t,r);case"InferTypeAnnotation":return tn(e,t,r);case"FunctionTypeAnnotation":return Zr(e,t,r);case"TupleTypeAnnotation":return Yt(e,t,r);case"TupleTypeLabeledElement":return nn(e,t,r);case"TupleTypeSpreadElement":return rn(e,t,r);case"GenericTypeAnnotation":return[r("id"),Pt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return en(e,t,r);case"TypeAnnotation":return sn(e,t,r);case"TypeParameter":return An(e,t,r);case"TypeofTypeAnnotation":return an(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return un(r);case"DeclareEnum":case"EnumDeclaration":return bn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return ha(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Bn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,V(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Pn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return ln.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return zi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Et(e,t,r),V(e),gt(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return dt(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",V(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return cn(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ie(tt(fe(n),t));case"NumberLiteralTypeAnnotation":return Ze(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return hn(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),Y(e,r),")"];case"TypePredicate":return on(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Pt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Sn(e,t,r)}}function ka(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Br(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(U(n.expression)||se(n.expression)),o=l(["<",f([E,r("typeAnnotation")]),E,">"]),c=[b("("),f([E,r("expression")]),E,b(")")];return a?ze([[o,r("expression")],[o,l(c,{shouldBreak:!0})],[o,r("expression")]]):l([o,r("expression")])}case"TSDeclareFunction":return Dn(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return Fn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return dt(e,t,r);case"TSTypeAliasDeclaration":return Kr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return dn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return xn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(n.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return qr(e,r,t);case"TSNamedTupleMember":return nn(e,t,r);case"TSRestType":return rn(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Pt(e,t,r,"params");case"TSTypeParameter":return An(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return Sn(e,t,r);case"TSArrayType":return un(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Et(e,t,r),V(e),Y(e,r)];case"TSParameterProperty":return[Xt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return an(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?b(ae(t)?",":""):"",o=l([f([E,P([", ",E],e.map(r,"parameters"))]),a,E]),c=e.parent.type==="ClassBody"&&e.key==="body";return[c&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",Y(e,r),c?s:""]}case"TSTypePredicate":return on(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",Pt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return en(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return Qi(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(Xt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",V(e));let o=Je(e,r,t,!1,!0),c=n.returnType?"returnType":"typeAnnotation",m=n[c],D=m?Y(e,r,c):"",y=ot(n,D);return u.push(y?l(o):o),m&&u.push(l(D)),l(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return bn(e,r,t);case"TSEnumMember":return Bn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",Is(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",c=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push($(e)),!(n.kind==="global"||n.global)){let D=n.kind??(Q(n.id)||fr(t,R(n),R(n.id)).trim().endsWith("module")?"module":"namespace");u.push(D," ")}return u.push(r("id")),c?u.push(r("body")):n.body?u.push(" ",l(r("body"))):u.push(s),u}case"TSConditionalType":return Vt(e,t,r);case"TSInferType":return tn(e,t,r);case"TSIntersectionType":return zr(e,t,r);case"TSUnionType":return Qr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Zr(e,t,r);case"TSTupleType":return Yt(e,t,r);case"TSTypeReference":return[r("typeName"),Pt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return sn(e,t,r);case"TSEmptyBodyFunctionExpression":return fn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return ds(e,r,"?");case"TSJSDocNonNullableType":return ds(e,r,"!");case"TSParenthesizedType":default:throw new Me(n,"TypeScript")}}function zl(e,t,r,n){if(Xr(e))return ci(e,t);for(let s of[Ti,Ei,Pa,ka,Ca]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Ql=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function Zl(e,t,r,n){var D;e.isRoot&&((D=t.__onHtmlBindingRoot)==null||D.call(t,e.node,t));let s=zl(e,t,r,n);if(!s)return"";let{node:u}=e;if(Ql(u))return s;let i=w(u.decorators),a=xi(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return ir(s,y=>l([a,y]));let c=Be(e,t),m=na(e,t);return!a&&!c&&!m?s:ir(s,y=>[m?";":"",c?"(":"",c&&o&&i?[f([x,a,y]),x]:[a,y],c?")":""])}var Ia=Zl;var em={avoidAstMutation:!0};var La=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var _s={};Ar(_s,{getVisitorKeys:()=>Oa,massageAstNode:()=>ja,print:()=>nm});var tm={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},wa=tm;var rm=hr(wa),Oa=rm;function nm(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),F];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",f([F,P([",",F],s)]),F,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",f([F,P([",",F],e.map(r,"properties"))]),F,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return _a(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return _a(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Me(n,"JSON")}}function _a(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var sm=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ja(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ja.ignoredProperties=sm;var Er={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kt="JavaScript",um={arrowParens:{category:kt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Er.bracketSameLine,bracketSpacing:Er.bracketSpacing,jsxBracketSameLine:{category:kt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:kt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:kt,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Er.singleQuote,jsxSingleQuote:{category:kt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:kt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:kt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Er.singleAttributePerLine},va=um;var im={estree:Os,"estree-json":_s},am=[...Us,...La];return Xa(om);}); \ No newline at end of file +`)+u}function ac(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,p=s(a),o=u(a);for(let m of n)s(m)>=p&&u(m)<=o&&i.add(m);return r.slice(p,o)}var li=ac;function us(e,t){var u,i,a,p,o,m,y,D,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&lc(r)&&pr(e))return!0;if(oc(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(c&&ie(c,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(T=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),A=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(A&&ie(A,T=>T===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let c=e.findAncestor(A=>!Ae(A));if(c!==s&&c.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&ie(c,A=>A===r))return!0}if(r.type==="ObjectExpression"){let c=(p=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:p.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&ie(c,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&O(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return mi(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!yc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression")&&cc(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(c,A)=>A==="declarations"&&c.type==="VariableDeclaration",(c,A)=>A==="left"&&c.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&pc(e))return!0;if(r.operator==="|>"&&((o=r.extra)!=null&&o.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Ae(r);case"ConditionalExpression":return Ae(r)||au(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Ae(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:A}=r;if(!c&&A!=="TSTypeAssertion")return!0;let T=tr(c),S=s.operator,g=tr(S);return g>T||n==="right"&&g===T||g===T&&!sr(S,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,A)=>A==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression")||e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypePredicate",(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&((m=r.returnType)==null?void 0:m.type)==="InferTypeAnnotation"&&((y=r.returnType)==null?void 0:y.typeParameter.bound)||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&z(r).some(A=>{var T;return((T=A.typeAnnotation)==null?void 0:T.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression"||n==="node"&&s.type==="JsExpressionRoot")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((D=r.extra)==null?void 0:D.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(mc(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&W(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((C=r.extra)!=null&&C.parenthesized)||X(s)||n==="arguments"&&L(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!X(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!L(s)&&!Ce(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&W(s)}return!1}var oc=v(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function pc(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function cc(e){return rr(e,t=>t.type==="ObjectTypeAnnotation"&&rr(t,r=>r.type==="FunctionTypeAnnotation"))}function lc(e){return se(e)}function pr(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(pr);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(pr);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(pr);break;case"UnaryExpression":if(t.prefix)return e.callParent(pr);break}return!1}function mi(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!us(e,t):!Rt(r)||n.type!=="ExportDefaultDeclaration"&&us(e,t)?!1:e.call(()=>mi(e,t),...Pr(r))}function mc(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function is(e){return e.type==="Identifier"?!0:W(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&is(e.object):!1}function yc(e){return e.type==="ChainExpression"&&(e=e.expression),is(e)||L(e)&&!e.optional&&is(e.callee)}var Be=us;function Dc(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ge(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ge(e,r,{backwards:!0});return r!==n}var yi=Dc;var fc=()=>!0;function as(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function Ec(e,t){var m;let r=e.node,n=[as(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let y=Z(u,a(r))?Z(u,i(r),{backwards:!0})?F:x:" ";n.push(y)}else n.push(F);let o=Ge(u,We(u,a(r)));return o!==!1&&Z(u,o)&&n.push(F),n}function Fc(e,t,r){var o;let n=e.node,s=as(e,t),{printer:u,originalText:i,locStart:a}=t,p=(o=u.isBlockComment)==null?void 0:o.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Z(i,a(n),{backwards:!0})){let m=yi(i,a(n));return{doc:Gn([F,m?F:"",s]),isBlock:p,hasLineSuffix:!0}}return!p||r!=null&&r.hasLineSuffix?{doc:[Gn([" ",s]),Ee],isBlock:p,hasLineSuffix:!0}:{doc:[" ",s],isBlock:p,hasLineSuffix:!1}}function J(e,t,r={}){let{node:n}=e;if(!O(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=fc}=r,a=[];if(e.each(({node:o})=>{o.leading||o.trailing||o.marker!==u||!i(o)||a.push(as(e,t))},"comments"),a.length===0)return"";let p=b(F,a);return s?f([F,p]):p}function os(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let p=e.node;if(n!=null&&n.has(p))return;let{leading:o,trailing:m}=p;o?u.push(Ec(e,t)):m&&(a=Fc(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function ye(e,t,r){let{leading:n,trailing:s}=os(e,r);return!n&&!s?t:or(t,u=>[n,u,s])}var ps=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Me=ps;function cs(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Re,ls=class{constructor(t){qs(this,Re);Ws(this,Re,new Set(t))}getLeadingWhitespaceCount(t){let r=pt(this,Re),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return pt(this,Re).has(t.charAt(0))}hasTrailingWhitespace(t){return pt(this,Re).has(_(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${cs([...pt(this,Re)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=pt(this,Re);return Array.prototype.every.call(t,n=>r.has(n))}};Re=new WeakMap;var Di=ls;var Yr=new Di(` +\r `),ms=e=>e===""||e===x||e===F||e===E;function Cc(e,t,r){var M,R,j,I,U;let{node:n}=e;if(n.type==="JSXElement"&&wc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(P=>Oc(P)?{type:"JSXText",value:" ",raw:" "}:P);let i=n.children.some(H),a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,p=n.type==="JSXElement"&&n.openingElement.attributes.length>1,o=re(s)||i||p||a,m=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',D=m?" ":B([y,E]," "),C=((R=(M=n.openingElement)==null?void 0:M.name)==null?void 0:R.name)==="fbt",c=Ac(e,t,r,D,C),A=n.children.some(P=>cr(P));for(let P=c.length-2;P>=0;P--){let G=c[P]===""&&c[P+1]==="",ue=c[P]===F&&c[P+1]===""&&c[P+2]===F,Q=(c[P]===E||c[P]===F)&&c[P+1]===""&&c[P+2]===D,gt=c[P]===D&&c[P+1]===""&&(c[P+2]===E||c[P+2]===F),Ft=c[P]===D&&c[P+1]===""&&c[P+2]===D,w=c[P]===E&&c[P+1]===""&&c[P+2]===F||c[P]===F&&c[P+1]===""&&c[P+2]===E;ue&&A||G||Q||Ft||w?c.splice(P,2):gt&&c.splice(P+1,2)}for(;c.length>0&&ms(_(!1,c,-1));)c.pop();for(;c.length>1&&ms(c[0])&&ms(c[1]);)c.shift(),c.shift();let T=[];for(let[P,G]of c.entries()){if(G===D){if(P===1&&c[P-1]===""){if(c.length===2){T.push(y);continue}T.push([y,F]);continue}else if(P===c.length-1){T.push(y);continue}else if(c[P-1]===""&&c[P-2]===F){T.push(y);continue}}T.push(G),re(G)&&(o=!0)}let S=A?Rr(T):l(T,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)?S=[ir,S,ir]:((I=t.nodeBeforeCursor)==null?void 0:I.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?S=[ir,S]:((U=t.nodeAfterCursor)==null?void 0:U.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(S=[S,ir]),m)return S;let g=l([s,f([F,S]),F,u]);return o?g:Ke([l([s,...c,u]),g])}function Ac(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let p=fe(i);if(cr(i)){let o=Yr.split(p,!0);o[0]===""&&(u.push(""),o.shift(),/\n/u.test(o[0])?u.push(Ei(s,o[1],i,a)):u.push(n),o.shift());let m;if(_(!1,o,-1)===""&&(o.pop(),m=o.pop()),o.length===0)return;for(let[y,D]of o.entries())y%2===1?u.push(x):u.push(D);m!==void 0?/\n/u.test(m)?u.push(Ei(s,_(!1,u,-1),i,a)):u.push(n):u.push(fi(s,_(!1,u,-1),i,a))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u.push("",F):u.push("",n)}else{let p=r();if(u.push(p),a&&cr(a)){let m=Yr.trim(fe(a)),[y]=Yr.split(m);u.push(fi(s,y,i,a))}else u.push(F)}},"children"),u}function fi(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function Ei(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var Tc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function dc(e,t,r){let{parent:n}=e;if(Tc.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=Be(e,r);return l([u?"":B("("),f([E,t]),E,u?"":B(")")],{shouldBreak:s})}function xc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(te(n.value)){let i=fe(n.value),a=Y(!1,Y(!1,i.slice(1,-1),"'","'"),""",'"'),p=xr(a,t.jsxSingleQuote);a=p==='"'?Y(!1,a,'"',"""):Y(!1,a,"'","'"),u=e.call(()=>ye(e,Ie(p+a+p),t),"value")}else u=r("value");s.push("=",u)}return s}function hc(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(X(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||H(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),ke,"}"]):l(["{",f([E,r("expression")]),E,ke,"}"])}function gc(e,t,r){var a,p;let{node:n}=e,s=d(n.name)||d(n.typeParameters)||d(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&te(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!s&&!d(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(p=n.attributes)==null?void 0:p.some(o=>te(o.value)&&o.value.value.includes(` +`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...Sc(n,t,s)],{shouldBreak:u})}function Sc(e,t,r){return e.selfClosing?[x,"/>"]:Bc(e,t,r)?[">"]:[E,">"]}function Bc(e,t,r){let n=e.attributes.length>0&&d(_(!1,e.attributes,-1),h.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function bc(e,t,r){let{node:n}=e,s=[];s.push(""),s}function Pc(e,t){let{node:r}=e,n=d(r),s=d(r,h.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function kc(e,t,r){let n=ye(e,Cc(e,t,r),t);return dc(e,n,t)}function Ic(e,t){let{node:r}=e,n=d(r,h.Line);return[J(e,t,{indent:n}),n?F:""]}function Lc(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!Qn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Fi(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return xc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return b(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return b(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Lc(e,t,r);case"JSXExpressionContainer":return hc(e,t,r);case"JSXFragment":case"JSXElement":return kc(e,t,r);case"JSXOpeningElement":return gc(e,t,r);case"JSXClosingElement":return bc(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Pc(e,t);case"JSXEmptyExpression":return Ic(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me(n,"JSX")}}function wc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!cr(t)}function cr(e){return e.type==="JSXText"&&(Yr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function Oc(e){return e.type==="JSXExpressionContainer"&&te(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Ci(e){let{node:t,parent:r}=e;if(!H(t)||!H(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!cr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&kt(u.expression)}function _c(e){return kt(e.node)||Ci(e)}var Hr=_c;var jc=0;function Nr(e,t,r){var R;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),p=n.operator==="|>"&&((R=e.root.extra)==null?void 0:R.__isUsingHackPipeline),o=ys(e,r,t,!1,a);if(a)return o;if(p)return l(o);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||W(s)&&!s.computed)return l([f([E,...o]),E]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",y=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ce(s),D=De(n.left)&&sr(n.operator,n.left.operator);if(m||Yt(n)&&!D||!Yt(n)&&y)return l(o);if(o.length===0)return"";let C=H(n.right),c=o.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===le),A=o.slice(0,c===-1?1:c+1),T=o.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++jc),g=l([...A,f(T)],{id:S});if(!C)return g;let M=_(!1,o,-1);return l([g,dt(M,{groupId:S})])}function ys(e,t,r,n,s){var A;let{node:u}=e;if(!De(u))return[l(t())];let i=[];sr(u.operator,u.left.operator)?i=e.call(T=>ys(T,t,r,!0,s),"left"):i.push(l(t("left")));let a=Yt(u),p=(u.operator==="|>"||u.type==="NGPipeExpression"||vc(e,r))&&!Oe(r.originalText,u.right),o=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",b([x,": "],e.map(()=>he(2,l(t())),"arguments"))])):"",y;if(a)y=[o," ",t("right"),m];else{let S=o==="|>"&&((A=e.root.extra)==null?void 0:A.__isUsingHackPipeline)?e.call(g=>ys(g,t,r,!0,s),"right"):t("right");y=[p?x:"",o,p?" ":x,S,m]}let{parent:D}=e,C=d(u.left,h.Trailing|h.Line),c=C||!(s&&u.type==="LogicalExpression")&&D.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(p?"":" ",c?l(y,{shouldBreak:C}):y),n&&d(u)){let T=Gt(ye(e,i,r));return T.type===Pe?T.parts:Array.isArray(T)?T:[T]}return i}function Yt(e){return e.type!=="LogicalExpression"?!1:!!(se(e.right)&&e.right.properties.length>0||X(e.right)&&e.right.elements.length>0||H(e.right))}var Ai=e=>e.type==="BinaryExpression"&&e.operator==="|";function vc(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Ai(e.node)&&!e.hasAncestor(r=>!Ai(r)&&r.type!=="JsExpressionRoot")}function di(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+ct(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Nr(e,t,r);case"NGChainedExpression":return l(b([";",x],e.map(()=>Rc(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Ti(e)?" ":[";",x],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=Ti(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(s===2||s===3)&&(n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then"||n.key.name==="track"))&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Me(n,"Angular")}}function Ti({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}var Mc=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Rc({node:e}){return rr(e,Mc)}function Ds(e,t,r){let{node:n}=e;return l([b(x,e.map(r,"decorators")),gi(n,t)?F:x])}function xi(e,t,r){return Si(e.node)?[b(F,e.map(r,"declaration","decorators")),F]:""}function hi(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!O(u)||Si(s)||Hr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||gi(n,t);return[e.key==="declaration"&&iu(s)?F:i?Ee:"",b(x,e.map(r,"decorators")),x]}function gi(e,t){return e.decorators.some(r=>Z(t.originalText,k(r)))}function Si(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return O(t)&&Bt(e,t[0])}var yt=class extends Error{name="ArgExpansionBailout"};function Jc(e,t,r){let{node:n}=e,s=oe(n);if(s.length===0)return["(",J(e,t),")"];let u=s.length-1;if(Gc(s)){let y=["("];return qt(e,(D,C)=>{y.push(r()),C!==u&&y.push(", ")}),y.push(")"),y}let i=!1,a=[];qt(e,({node:y},D)=>{let C=r();D===u||(pe(y,t)?(i=!0,C=[C,",",F,F]):C=[C,",",x]),a.push(C)});let p=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&ae(t,"all")?",":"";function o(){return l(["(",f([x,...a]),p,x,")"],{shouldBreak:!0})}if(i||e.parent.type!=="Decorator"&&lu(s))return o();if(Wc(s)){let y=a.slice(1);if(y.some(re))return o();let D;try{D=r(Jn(n,0),{expandFirstArg:!0})}catch(C){if(C instanceof yt)return o();throw C}return re(D)?[Ee,Ke([["(",l(D,{shouldBreak:!0}),", ",...y,")"],o()])]:Ke([["(",D,", ",...y,")"],["(",l(D,{shouldBreak:!0}),", ",...y,")"],o()])}if(qc(s,a,t)){let y=a.slice(0,-1);if(y.some(re))return o();let D;try{D=r(Jn(n,-1),{expandLastArg:!0})}catch(C){if(C instanceof yt)return o();throw C}return re(D)?[Ee,Ke([["(",...y,l(D,{shouldBreak:!0}),")"],o()])]:Ke([["(",...y,D,")"],["(",...y,l(D,{shouldBreak:!0}),")"],o()])}let m=["(",f([E,...a]),B(p),E,")"];return Or(e)?m:l(m,{shouldBreak:a.some(re)||i})}function lr(e,t=!1){return se(e)&&(e.properties.length>0||d(e))||X(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&lr(e.expression)||Ae(e)&&lr(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Uc(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&lr(e.body,!0)||se(e.body)||X(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||H(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function qc(e,t,r){var u,i;let n=_(!1,e,-1);if(e.length===1){let a=_(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=_(!1,e,-2);return!d(n,h.Leading)&&!d(n,h.Trailing)&&lr(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!X(n))&&!(e.length>1&&fs(n,r))}function Wc(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&Xc(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&bi(r)&&!lr(r)}function bi(e){if(e.type==="ParenthesizedExpression")return bi(e.expression);if(Ae(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return Jt(t)&&be(e.expression,1)}return lt(e)&&oe(e).length>1?!1:De(e)?be(e.left,1)&&be(e.right,1):Mn(e)||be(e)}function Gc(e){return e.length===2?Bi(e,0):e.length===3?e[0].type==="Identifier"&&Bi(e,1):!1}function Bi(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&z(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>d(s))}function Uc(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,h.Dangling))}function Xc(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Ce(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&te(e.properties[0].value)&&e.properties[0].value.value==="module"}var mr=Jc;var Yc=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&oe(e).length>0);function Pi(e,t,r){var o;let n=r("object"),s=Es(e,t,r),{node:u}=e,i=e.findAncestor(m=>!(W(m)||m.type==="TSNonNullExpression")),a=e.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),p=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!W(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(Yc(u.object)||((o=n.label)==null?void 0:o.memberChain));return st(n.label,[n,p?s:l(f([E,s]))])}function Es(e,t,r){let n=r("property"),{node:s}=e,u=$(e);return s.computed?!s.property||Fe(s.property)?[u,"[",n,"]"]:l([u,"[",f([E,n]),E,"]"]):[u,".",n]}function ki(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>ki(e,t,r),"expression");let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(w){let{originalText:ne}=t,de=ut(ne,k(w));return ne.charAt(de)===")"?de!==!1&&jt(ne,de+1):pe(w,t)}function a(){let{node:w}=e;if(w.type==="ChainExpression")return e.call(a,"expression");if(L(w)&&(At(w.callee)||L(w.callee))){let ne=i(w);u.unshift({node:w,hasTrailingEmptyLine:ne,printed:[ye(e,[$(e),Qe(e,t,r),mr(e,t,r)],t),ne?F:""]}),e.call(a,"callee")}else At(w)?(u.unshift({node:w,needsParens:Be(e,t),printed:ye(e,W(w)?Es(e,t,r):Vr(e,t,r),t)}),e.call(a,"object")):w.type==="TSNonNullExpression"?(u.unshift({node:w,printed:ye(e,"!",t)}),e.call(a,"expression")):u.unshift({node:w,printed:r()})}let{node:p}=e;u.unshift({node:p,printed:[$(e),Qe(e,t,r),mr(e,t,r)]}),p.callee&&e.call(a,"callee");let o=[],m=[u[0]],y=1;for(;y0&&o.push(m);function C(w){return/^[A-Z]|^[$_]+$/u.test(w)}function c(w){return w.length<=t.tabWidth}function A(w){var ot;let ne=(ot=w[1][0])==null?void 0:ot.node.computed;if(w[0].length===1){let St=w[0][0].node;return St.type==="ThisExpression"||St.type==="Identifier"&&(C(St.name)||s&&c(St.name)||ne)}let de=_(!1,w[0],-1).node;return W(de)&&de.property.type==="Identifier"&&(C(de.property.name)||ne)}let T=o.length>=2&&!d(o[1][0].node)&&A(o);function S(w){let ne=w.map(de=>de.printed);return w.length>0&&_(!1,w,-1).needsParens?["(",...ne,")"]:ne}function g(w){return w.length===0?"":f([F,b(F,w.map(S))])}let M=o.map(S),R=M,j=T?3:2,I=o.flat(),U=I.slice(1,-1).some(w=>d(w.node,h.Leading))||I.slice(0,-1).some(w=>d(w.node,h.Trailing))||o[j]&&d(o[j][0].node,h.Leading);if(o.length<=j&&!U&&!o.some(w=>_(!1,w,-1).hasTrailingEmptyLine))return Or(e)?R:l(R);let P=_(!1,o[T?1:0],-1).node,G=!L(P)&&i(P),ue=[S(o[0]),T?o.slice(1,2).map(S):"",G?F:"",g(o.slice(T?2:1))],Q=u.map(({node:w})=>w).filter(L);function gt(){let w=_(!1,_(!1,o,-1),-1).node,ne=_(!1,M,-1);return L(w)&&re(ne)&&Q.slice(0,-1).some(de=>de.arguments.some(Mt))}let Ft;return U||Q.length>2&&Q.some(w=>!w.arguments.every(ne=>be(ne)))||M.slice(0,-1).some(re)||gt()?Ft=l(ue):Ft=[re(R)||G?Ee:"",Ke([R,ue])],st({memberChain:!0},Ft)}var Ii=ki;function $r(e,t,r){var m;let{node:n}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",i=$(e),a=oe(n),p=a.length===1&&Lr(a[0],t.originalText);if(p||Hc(e)||Pt(n,e.parent)){let y=[];if(qt(e,()=>{y.push(r())}),!(p&&((m=y[0].label)!=null&&m.embed)))return[s?"new ":"",Li(e,r),i,Qe(e,t,r),"(",b(", ",y),")"]}if(!u&&!s&&At(n.callee)&&!e.call(y=>Be(y,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return Ii(e,t,r);let o=[s?"new ":"",Li(e,r),i,Qe(e,t,r),mr(e,t,r)];return u||L(n.callee)?l(o):o}function Li(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function Hc(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=oe(t);return t.callee.name==="require"?r.length===1&&te(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&te(r[0])&&r[1].type==="ArrayExpression":!1}function xt(e,t,r,n,s,u){let i=Nc(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return l([l(n),s,l(f([x,a]))]);case"never-break-after-operator":return l([l(n),s," ",a]);case"fluid":{let p=Symbol("assignment");return l([l(n),s,l(f(x),{id:p}),ke,dt(a,{groupId:p})])}case"break-lhs":return l([n,s," ",l(a)]);case"chain":return[l(n),s,x,a];case"chain-tail":return[l(n),s,f([x,a])];case"chain-tail-arrow-chain":return[l(n),s,a];case"only-left":return n}}function Oi(e,t,r){let{node:n}=e;return xt(e,t,r,r("left"),[" ",n.operator],"right")}function _i(e,t,r){return xt(e,t,r,r("id")," =","init")}function Nc(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!Kr(i);if(e.match(Kr,ji,D=>!a||D.type!=="ExpressionStatement"&&D.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&Kr(i.right)||Oe(t.originalText,i))return"break-after-operator";if(u.type==="ImportAttribute"||i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let m=Bu(n);if($c(u)||Zc(u)||Fs(u)&&m)return"break-lhs";let y=tl(u,n,t);return e.call(()=>Vc(e,t,r,y),s)?"break-after-operator":Kc(u)?"break-lhs":!m&&(y||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||Fe(i)||i.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Vc(e,t,r,n){let s=e.node;if(De(s)&&!Yt(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!sl(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:o}=s;return De(o)&&!Yt(o)}let{consequent:a,alternate:p}=s;return a.type==="ConditionalExpression"||p.type==="ConditionalExpression"}case"ClassExpression":return O(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(te(u)||e.call(()=>vi(e,t,r),...i))}function $c(e){if(ji(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Ce(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Kr(e){return e.type==="AssignmentExpression"}function ji(e){return Kr(e)||e.type==="VariableDeclarator"}function Kc(e){let t=zc(e);if(O(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Qc=v(["TSTypeAliasDeclaration","TypeAlias"]);function zc(e){var t;if(Qc(e))return(t=e.typeParameters)==null?void 0:t.params}function Zc(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=wi(t.typeAnnotation);return O(r)&&r.length>1&&r.some(n=>O(wi(n))||n.type==="TSConditionalType")}function Fs(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var el=v(["TSTypeReference","GenericTypeAnnotation"]);function wi(e){var t;if(el(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function vi(e,t,r,n=!1){var i;let{node:s}=e,u=()=>vi(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(L(s)){if((i=$r(e,t,r).label)!=null&&i.memberChain)return!1;let p=oe(s);return!(p.length===0||p.length===1&&nr(p[0],t))||rl(s,r)?!1:e.call(u,"callee")}return W(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function tl(e,t,r){return Ce(e)?(t=Gt(t),typeof t=="string"&&ze(t)1)return!0;if(r.length===1){let s=r[0];if(Ue(s)||_r(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(re(t(n)))return!0}return!1}function nl(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function sl(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function Je(e,t,r,n,s){let u=e.node,i=z(u),a=s?Qe(e,r,t):"";if(i.length===0)return[a,"(",J(e,r,{filter:c=>ge(r.originalText,k(c))===")"}),")"];let{parent:p}=e,o=Pt(p),m=Cs(u),y=[];if(fu(e,(c,A)=>{let T=A===i.length-1;T&&u.rest&&y.push("..."),y.push(t()),!T&&(y.push(","),o||m?y.push(" "):pe(i[A],r)?y.push(F,F):y.push(x))}),n&&!il(e)){if(re(a)||re(y))throw new yt;return l([ar(a),"(",ar(y),")"])}let D=i.every(c=>!O(c.decorators));return m&&D?[a,"(",...y,")"]:o?[a,"(",...y,")"]:(Ir(p)||ou(p)||p.type==="TypeAlias"||p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="FunctionTypeAnnotation"&&p.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&Jt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"||u.type==="HookTypeAnnotation"?["(",...y,")"]:y:[a,"(",f([E,...y]),B(!Du(u)&&ae(r,"all")?",":""),E,")"]}function Cs(e){if(!e)return!1;let t=z(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&we(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&we(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||se(r.right)&&r.right.properties.length===0||X(r.right)&&r.right.elements.length===0))}function ul(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function at(e,t){var s;let r=ul(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return z(e).length===1&&(we(r)||re(t))}function il(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Mi(e){let t=z(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}var al=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),ol=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function pl(e){let{types:t}=e;if(t.some(n=>d(n)))return!1;let r=t.find(n=>ol(n));return r?t.every(n=>n===r||al(n)):!1}function As(e){return Jt(e)||we(e)?!0:Ue(e)?pl(e):!1}function Ri(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[K(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Qr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[K(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[xt(e,t,r,u," =",i),n]}function zr(e,t,r){let n=!1;return l(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let p=r();if(s)return p;let o=we(i),m=we(u);return m&&o?[" & ",n?f(p):p]:!m&&!o?f([" &",x,p]):(a>1&&(n=!0),[" & ",a>1?f(p):p])},"types"))}function Zr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&(s.type!=="TSConditionalType"||!t.experimentalTernaries)&&(s.type!=="ConditionalTypeAnnotation"||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Oe(t.originalText,n)),i=As(n),a=e.map(m=>{let y=r();return i||(y=he(2,y)),ye(m,y,t)},"types");if(i)return b(" | ",a);let p=u&&!Oe(t.originalText,n),o=[B([p?x:"","| "]),b([x,"| "],a)];return Be(e,t)?l([f(o),E]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?l([f([B(["(",E]),o]),E,B(")")]):l(u?f(o):o)}function cl(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Ir(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&Bt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function en(e,t,r){let{node:n}=e,s=[Ht(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=Je(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(cl(e)?" => ":": ",r("returnType")):i.push(N(e,r,n.returnType?"returnType":"typeAnnotation")),at(n,i)&&(u=l(u)),s.push(u,i),l(s)}function tn(e,t,r){return[r("objectType"),$(e),"[",r("indexType"),"]"]}function rn(e,t,r){return["infer ",r("typeParameter")]}function Ts(e,t,r){let{node:n}=e;return[n.postfix?"":r,N(e,t),n.postfix?r:""]}function nn(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function sn(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var ll=new WeakSet;function N(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Ji,r);(u==="=>"||u===":"&&d(n,h.Leading))&&(s=!0),ll.add(n)}return s?[" ",t(r)]:t(r)}var Ji=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function un(e,t,r){let n=Ji(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function an(e){return[e("elementType"),"[]"]}function on({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function pn(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",N(e,t)]:""]}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||W(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function cn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var ml=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function K(e){let{node:t}=e;return t.declare||ml.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var yl=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Ht({node:e}){return e.abstract||yl.has(e.type)?"abstract ":""}function Qe(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Vr(e,t,r){return["::",r("callee")]}function Dt(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:f([x,t])}function ln(e,t){return["...",t("argument"),N(e,t)]}function Nt(e){return e.accessibility?e.accessibility+" ":""}function Dl(e,t,r,n){let{node:s}=e,u=s.inexact?"...":"";return d(s,h.Dangling)?l([r,u,J(e,t,{indent:!0}),E,n]):[r,u,n]}function Vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",p=n[a];if(p.length===0)s.push(Dl(e,t,u,i));else{let o=_(!1,p,-1),m=(o==null?void 0:o.type)!=="RestElement"&&!n.inexact,y=o===null,D=Symbol("array"),C=!t.__inJestEach&&p.length>1&&p.every((T,S,g)=>{let M=T==null?void 0:T.type;if(!X(T)&&!se(T))return!1;let R=g[S+1];if(R&&M!==R.type)return!1;let j=X(T)?"elements":"properties";return T[j]&&T[j].length>1}),c=fs(n,t),A=m?y?",":ae(t)?c?B(",","",{groupId:D}):B(","):"":"";s.push(l([u,f([E,c?El(e,t,r,A):[fl(e,t,a,n.inexact,r),A],J(e,t)]),E,i],{shouldBreak:C,id:D}))}return s.push($(e),N(e,r)),s}function fs(e,t){return X(e)&&e.elements.length>1&&e.elements.every(r=>r&&(Fe(r)||vn(r)&&!d(r.argument))&&!d(r,h.Trailing|h.Line,n=>!Z(t.originalText,q(n),{backwards:!0})))}function qi({node:e},{originalText:t}){let r=s=>Ot(t,_t(t,s)),n=s=>t[s]===","?s:n(r(s+1));return jt(t,n(k(e)))}function fl(e,t,r,n,s){let u=[];return e.each(({node:i,isLast:a})=>{u.push(i?l(s()):""),(!a||n)&&u.push([",",x,i&&qi(e,t)?E:""])},r),n&&u.push("..."),u}function El(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(qi(e,t)?[F,F]:d(i,h.Leading|h.Line)?F:x)},"elements"),Rr(s)}var Fl=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC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u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Cl=e=>Fl.test(e),Wi=Cl;function Al(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ft=Al;var mn=new WeakMap;function Ui(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Gi(e,t){return t.parser==="json"||t.parser==="jsonc"||!te(e.key)||Ze(fe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Wi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Ui(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Tl(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Fe(r)&&Ui(ft(fe(r)))&&String(r.value)===ft(fe(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&mn.get(e.parent))}function Et(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!mn.has(s)){let i=e.siblings.some(a=>!a.computed&&te(a.key)&&!Gi(a,t));mn.set(s,i)}if(Tl(e,t)){let i=Ze(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>ye(a,i,t),"key")}return Gi(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!mn.get(s))?e.call(i=>ye(i,/^\d/u.test(u.value)?ft(u.value):u.value,t),"key"):r("key")}function yn(e,t,r){let{node:n}=e;return n.shorthand?r("value"):xt(e,t,r,Et(e,t,r),":","value")}var dl=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&bt(r));function Dn(e,t,r,n){if(dl(e))return fn(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;L(m)&&(oe(m).length>1||z(s).every(y=>y.type==="Identifier"&&!y.typeAnnotation))&&(u=!0)}let i=[K(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=Je(e,t,r,u),p=$t(e,t),o=at(s,p);return i.push(Qe(e,r,t),l([o?l(a):a,p]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function yr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(vt.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(Et(e,t,r),n.optional||n.key.optional?"?":"",n===u?fn(e,t,r):r("value")),i}function fn(e,t,r){let{node:n}=e,s=Je(e,r,t),u=$t(e,r),i=Mi(n),a=at(n,u),p=[Qe(e,t,r),l([i?l(s,{shouldBreak:!0}):a?l(s):s,u])];return n.body?p.push(" ",r("body")):p.push(t.semi?";":""),p}function xl(e){let t=z(e);return t.length===1&&!e.typeParameters&&!d(e,h.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function En(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return xl(r)}return!1}function $t(e,t){let{node:r}=e,s=[N(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function Xi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let p=r("argument");hl(t,n.argument)?p=["(",f([F,p]),F,")"]:(De(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(p=l([B("("),f([E,p]),E,B(")")])),u.push(" ",p)}let i=d(n,h.Dangling),a=s&&i&&d(n,h.Last|h.Line);return a&&u.push(s),i&&u.push(" ",J(e,t)),a||u.push(s),u}function Yi(e,t,r){return["return",Xi(e,t,r)]}function Hi(e,t,r){return["throw",Xi(e,t,r)]}function hl(e,t){if(Oe(e.originalText,t)||d(t,h.Leading,r=>Te(e.originalText,q(r),k(r)))&&!H(t))return!0;if(Rt(t)){let r=t,n;for(;n=uu(r);)if(r=n,Oe(e.originalText,r))return!0}return!1}var ds=new WeakMap;function Ni(e){return ds.has(e)||ds.set(e,e.type==="ConditionalExpression"&&!ie(e,t=>t.type==="ObjectExpression")),ds.get(e)}var Vi=e=>e.type==="SequenceExpression";function $i(e,t,r,n={}){let s=[],u,i=[],a=!1,p=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",o;(function S(){let{node:g}=e,M=gl(e,t,r,n);if(s.length===0)s.push(M);else{let{leading:R,trailing:j}=os(e,t);s.push([R,M]),i.unshift(j)}p&&(a||(a=g.returnType&&z(g).length>0||g.typeParameters||z(g).some(R=>R.type!=="Identifier"))),!p||g.body.type!=="ArrowFunctionExpression"?(u=r("body",n),o=g.body):e.call(S,"body")})();let m=!Oe(t.originalText,o)&&(Vi(o)||Sl(o,u,t)||!a&&Ni(o)),y=e.key==="callee"&<(e.parent),D=Symbol("arrow-chain"),C=Bl(e,n,{signatureDocs:s,shouldBreak:a}),c=!1,A=!1,T=!1;return p&&(y||n.assignmentLayout)&&(A=!0,T=!d(e.node,h.Leading&h.Line),c=n.assignmentLayout==="chain-tail-arrow-chain"||y&&!m),u=bl(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:o,shouldPutBodyOnSameLine:m}),l([l(A?f([T?E:"",C]):C,{shouldBreak:c,id:D})," =>",p?dt(u,{groupId:D}):l(u),p&&y?B(E,"",{groupId:D}):""])}function gl(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),En(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,p=$t(e,r);if(a){if(re(p))throw new yt;p=l(ar(p))}u.push(l([Je(e,r,t,a,!0),p]))}let i=J(e,t,{filter(a){let p=ut(t.originalText,k(a));return p!==!1&&t.originalText.slice(p,p+2)==="=>"}});return i&&u.push(" ",i),u}function Sl(e,t,r){var n,s;return X(e)||se(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||H(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||Lr(e,r.originalText))}function Bl(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&<(s)||De(s)?l([r[0]," =>",f([x,b([" =>",x],r.slice(1))])],{shouldBreak:n}):u==="callee"&<(s)||t.assignmentLayout?l(b([" =>",x],r),{shouldBreak:n}):l(f(b([" =>",x],r)),{shouldBreak:n})}function bl(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:p}=e,o=r.expandLastArg&&ae(t,"all")?B(","):"",m=(r.expandLastArg||p.type==="JSXExpressionContainer")&&!d(a)?E:"";return i&&Ni(u)?[" ",l([B("","("),f([E,n]),B("",")"),o,m]),s]:(Vi(u)&&(n=l(["(",f([E,n]),E,")"])),i?[" ",n,s]:[f([x,n,s]),o,m])}var Pl=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let s=t[n];if(r(s,n,t))return s}}},Ki=Pl;function Dr(e,t,r,n){let{node:s}=e,u=[],i=Ki(!1,s[n],a=>a.type!=="EmptyStatement");return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(F),pe(a,t)&&u.push(F)))},n),u}function Fn(e,t,r){let n=kl(e,t,r),{node:s,parent:u}=e;if(s.type==="Program"&&(u==null?void 0:u.type)!=="ModuleExpression")return n?[n,F]:"";let i=[];if(s.type==="StaticBlock"&&i.push("static "),i.push("{"),n)i.push(f([F,n]),F);else{let a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ComponentDeclaration"||u.type==="HookDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="ModuleExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||s.type==="StaticBlock"||i.push(F)}return i.push("}"),i}function kl(e,t,r){let{node:n}=e,s=O(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,h.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(Dr(e,t,r,"directives")),(u||i)&&(a.push(F),pe(_(!1,n.directives,-1),t)&&a.push(F))),u&&a.push(Dr(e,t,r,"body")),i&&a.push(J(e,t)),a}function Il(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var Cn=Il;function Ll(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function Qi(e,t,r){let{node:n}=e;return l([n.variance?r("variance"):"","[",f([r("keyTparam")," in ",r("sourceType")]),"]",Ll(n.optional),": ",r("propType")])}function xs(e,t){return e==="+"||e==="-"?e+t:t}function zi(e,t,r){let{node:n}=e,s=Te(t.originalText,q(n),q(n.typeParameter));return l(["{",f([t.bracketSpacing?x:E,l([r("typeParameter"),n.optional?xs(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?B(";"):""]),J(e,t),t.bracketSpacing?x:E,"}"],{shouldBreak:s})}var fr=Cn("typeParameters");function wl(e,t,r){let{node:n}=e;return z(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Lt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=Pt(e.grandparent),i=e.match(o=>!(o[n].length===1&&we(o[n][0])),void 0,(o,m)=>m==="typeAnnotation",o=>o.type==="Identifier",Fs);if(s[n].length===0||!i&&(u||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||As(s[n][0]))))return["<",b(", ",e.map(r,n)),Ol(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":wl(e,t,n)?",":ae(t)?B(","):"";return l(["<",f([E,b([",",x],e.map(r,n))]),p,E,">"],{id:fr(s)})}function Ol(e,t){let{node:r}=e;if(!d(r,h.Dangling))return"";let n=!d(r,h.Line),s=J(e,t,{indent:!n});return n?s:[s,F]}function An(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(xs(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(N(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",l(f(x),{id:a}),ke,dt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),l(u)}var Zi=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Tn(e,t,r){let{node:n}=e,s=[K(e),Ht(e),"class"],u=d(n.id,h.Trailing)||d(n.typeParameters,h.Trailing)||d(n.superClass)||O(n.extends)||O(n.mixins)||O(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let m=[jl(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],y=e.call(D=>["extends ",ye(D,m,t)],"superClass");u?a.push(x,l(y)):a.push(" ",y)}else a.push(hs(e,t,r,"extends"));a.push(hs(e,t,r,"mixins"),hs(e,t,r,"implements"));let p;if(u){let m;ra(n)?m=[...i,f(a)]:m=f([...i,a]),p=ea(n),s.push(l(m,{id:p}))}else s.push(...i,...a);let o=n.body;return u&&O(o.body)?s.push(B(F," ",{groupId:p})):s.push(" "),s.push(r("body")),s}var ea=Cn("heritageGroup");function ta(e){return B(F,"",{groupId:ea(e)})}function _l(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function ra(e){return e.typeParameters&&!d(e.typeParameters,h.Trailing|h.Line)&&!_l(e)}function hs(e,t,r,n){let{node:s}=e;if(!O(s[n]))return"";let u=J(e,t,{marker:n});return[ra(s)?B(" ",x,{groupId:fr(s.typeParameters)}):x,u,u&&F,n,l(f([x,b([",",x],e.map(r,n))]))]}function jl(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?l(B(["(",f([E,n]),E,")"],n)):n}function dn(e,t,r){let{node:n}=e,s=[];return O(n.decorators)&&s.push(Ds(e,t,r)),s.push(Nt(n)),n.static&&s.push("static "),s.push(Ht(e)),n.override&&s.push("override "),s.push(yr(e,t,r)),s}function xn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";O(n.decorators)&&s.push(Ds(e,t,r)),s.push(K(e),Nt(n)),n.static&&s.push("static "),s.push(Ht(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(Et(e,t,r),$(e),cn(e),N(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[xt(e,t,r,s," =",i?void 0:"value"),u]}function na(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&Zi(u)&&vl(u,i)&&s.push(";"),a||(s.push(F),pe(u,t)&&s.push(F))},"body"),d(n,h.Dangling)&&s.push(J(e,t)),["{",s.length>0?[f([F,s]),F]:"","}"]}function vl(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(Zi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}var Ml=v(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function gs(e){return Ml(e)?gs(e.expression):e}var sa=v(["FunctionExpression","ArrowFunctionExpression"]);function ua(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function ia(e,t){if(t.semi||Ss(e,t)||Bs(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>aa(e,t),"expression"))}function aa(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!En(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return Be(e,t)?!0:Rt(r)?e.call(()=>aa(e,t),...Pr(r)):!1}function Ss({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&H(e.expression)&&t.type==="Program"&&t.body.length===1}function Bs({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function oa(e,t,r){let n=[r("expression")];if(Bs(e,t)){let s=gs(e.node.expression);(sa(s)||ua(s))&&n.push(";")}else Ss(e,t)||t.semi&&n.push(";");return n}function pa(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=b([",",x],n);return t.__isVueForBindingLeft?["(",f([E,l(s)]),E,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return b([",",x],n)}}function ma(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return ca(r);case"BigIntLiteral":return hn(r.extra.raw);case"NumericLiteral":return ft(r.extra.raw);case"StringLiteral":return Ie(Ze(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return la(r.extra.raw,t);case"Literal":{if(r.regex)return ca(r.regex);if(r.bigint)return hn(r.raw);let{value:n}=r;return typeof n=="number"?ft(r.raw):typeof n=="string"?Rl(e)?la(r.raw,t):Ie(Ze(r.raw,t)):String(n)}}}function Rl(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function hn(e){return e.toLowerCase()}function ca({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function la(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function Jl(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let u=q(s);if(u>r)break;let i=k(s);if(ie.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function gn(e,t,r){let{node:n}=e,s=[xi(e,t,r),K(e),"export",Da(n)?" default":""],{declaration:u,exported:i}=n;return d(n,h.Dangling)&&(s.push(" ",J(e,t)),wr(n)&&s.push(F)),u?s.push(" ",r("declaration")):(s.push(Gl(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(Ea(e,t,r)),s.push(fa(e,t,r),Ca(e,t,r))),s.push(Wl(n,t)),s}var ql=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Wl(e,t){return t.semi&&(!e.declaration||Da(e)&&!ql(e.declaration))?";":""}function Ps(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ks(e,t){return Ps(e.importKind,t)}function Gl(e){return Ps(e.exportKind)}function fa(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Fa(n,t)&&s.push(" from"),s.push(" ",r("source")),s}function Ea(e,t,r){let{node:n}=e;if(!Fa(n,t))return"";let s=[" "];if(O(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Me(n,"specifier")},"specifiers"),s.push(b(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(p=>d(p))?s.push(l(["{",f([t.bracketSpacing?x:E,b([",",x],i)]),B(ae(t)?",":""),t.bracketSpacing?x:E,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Fa(e,t){return e.type!=="ImportDeclaration"||O(e.specifiers)||e.importKind==="type"?!0:bs(t,q(e),q(e.source)).trimEnd().endsWith("from")}function Ul(e,t){var n,s;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=bs(t,k(e.source),(s=e.attributes)!=null&&s[0]?q(e.attributes[0]):k(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||O(e.attributes)?"with":void 0}function Ca(e,t,r){let{node:n}=e;if(!n.source)return"";let s=Ul(n,t);if(!s)return"";let u=[` ${s} {`];return O(n.attributes)&&(t.bracketSpacing&&u.push(" "),u.push(b(", ",e.map(r,"attributes"))),t.bracketSpacing&&u.push(" ")),u.push("}"),u}function Aa(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",p=n[i],o=n[a],m="",y="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":p&&(m=r(i)),o&&!Xl(n)&&(y=r(a)),[Ps(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&y?" as ":"",y]}function Xl(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!eu(t,r))return!1;if(te(t))return t.value===r.value&&fe(t)===fe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function ht(e,t,r){var j;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumBigIntBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let p=a.flatMap(I=>e.map(({node:U})=>({node:U,printed:r(),loc:q(U)}),I));a.length>1&&p.sort((I,U)=>I.loc-U.loc);let{parent:o,key:m}=e,y=u&&m==="body"&&(o.type==="InterfaceDeclaration"||o.type==="DeclareInterface"||o.type==="DeclareClass"),D=s.type==="TSInterfaceBody"||i||y||s.type==="ObjectPattern"&&o.type!=="FunctionDeclaration"&&o.type!=="FunctionExpression"&&o.type!=="ArrowFunctionExpression"&&o.type!=="ObjectMethod"&&o.type!=="ClassMethod"&&o.type!=="ClassPrivateMethod"&&o.type!=="AssignmentPattern"&&o.type!=="CatchClause"&&s.properties.some(I=>I.value&&(I.value.type==="ObjectPattern"||I.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&p.length>0&&Te(t.originalText,q(s),p[0].loc),C=y?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?B(n,";"):",",c=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",A=s.exact?"|}":"}",T=[],S=p.map(I=>{let U=[...T,l(I.printed)];return T=[C,x],(I.node.type==="TSPropertySignature"||I.node.type==="TSMethodSignature"||I.node.type==="TSConstructSignatureDeclaration"||I.node.type==="TSCallSignatureDeclaration")&&d(I.node,h.PrettierIgnore)&&T.shift(),pe(I.node,t)&&T.push(F),U});if(s.inexact||s.hasUnknownMembers){let I;if(d(s,h.Dangling)){let U=d(s,h.Line);I=[J(e,t),U||Z(t.originalText,k(_(!1,ct(s),-1)))?F:x,"..."]}else I=["..."];S.push([...T,...I])}let g=(j=_(!1,p,-1))==null?void 0:j.node,M=!(s.inexact||s.hasUnknownMembers||g&&(g.type==="RestElement"||(g.type==="TSPropertySignature"||g.type==="TSCallSignatureDeclaration"||g.type==="TSMethodSignature"||g.type==="TSConstructSignatureDeclaration")&&d(g,h.PrettierIgnore))),R;if(S.length===0){if(!d(s,h.Dangling))return[c,A,N(e,r)];R=l([c,J(e,t,{indent:!0}),E,A,$(e),N(e,r)])}else R=[y&&O(s.properties)?ta(o):"",c,f([t.bracketSpacing?x:E,...S]),B(M&&(C!==","||ae(t))?C:""),t.bracketSpacing?x:E,A,$(e),N(e,r)];return e.match(I=>I.type==="ObjectPattern"&&!O(I.decorators),Is)||we(s)&&(e.match(void 0,(I,U)=>U==="typeAnnotation",(I,U)=>U==="typeAnnotation",Is)||e.match(void 0,(I,U)=>I.type==="FunctionTypeParam"&&U==="typeAnnotation",Is))||!D&&e.match(I=>I.type==="ObjectPattern",I=>I.type==="AssignmentExpression"||I.type==="VariableDeclarator")?R:l(R,{shouldBreak:D})}function Is(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Cs(e)}function Yl(e){let t=[e];for(let r=0;rD[G]===n),c=D.type===n.type&&!C,A,T,S=0;do T=A||n,A=e.getParentNode(S),S++;while(A&&A.type===n.type&&a.every(G=>A[G]!==T));let g=A||D,M=T;if(s&&(H(n[a[0]])||H(p)||H(o)||Yl(M))){y=!0,c=!0;let G=Q=>[B("("),f([E,Q]),E,B(")")],ue=Q=>Q.type==="NullLiteral"||Q.type==="Literal"&&Q.value===null||Q.type==="Identifier"&&Q.name==="undefined";m.push(" ? ",ue(p)?r(u):G(r(u))," : ",o.type===n.type||ue(o)?r(i):G(r(i)))}else{let G=Q=>t.useTabs?f(r(Q)):he(2,r(Q)),ue=[x,"? ",p.type===n.type?B("","("):"",G(u),p.type===n.type?B("",")"):"",x,": ",G(i)];m.push(D.type!==n.type||D[i]===n||C?ue:t.useTabs?Mr(f(ue)):he(Math.max(0,t.tabWidth-2),ue))}let R=[u,i,...a].some(G=>d(n[G],ue=>ee(ue)&&Te(t.originalText,q(ue),k(ue)))),j=G=>D===g?l(G,{shouldBreak:R}):R?[G,Ee]:G,I=!y&&(W(D)||D.type==="NGPipeExpression"&&D.left===n)&&!D.computed,U=Vl(e),P=j([Hl(e,t,r),c?m:f(m),s&&I&&!U?E:""]);return C||U?l([f([E,P]),E]):P}function $l(e,t){return(W(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Kl(e,t,r,n){return[...e.map(u=>ct(u)),ct(t),ct(r)].flat().some(u=>ee(u)&&Te(n.originalText,q(u),k(u)))}var Ql=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function zl(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let u=e.getParentNode(s);if(u.type==="ChainExpression"&&u.expression===n||L(u)&&u.callee===n||W(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Ae(u)&&u.expression===n?(r=e.getParentNode(s+1),n=u):r=u}return n===t?!1:r[Ql.get(r.type)]===n}var Ls=e=>[B("("),f([E,e]),E,B(")")];function Kt(e,t,r,n){if(!t.experimentalTernaries)return Ta(e,t,r);let{node:s}=e,u=s.type==="ConditionalExpression",i=s.type==="TSConditionalType"||s.type==="ConditionalTypeAnnotation",a=u?"consequent":"trueType",p=u?"alternate":"falseType",o=u?["test"]:["checkType","extendsType"],m=s[a],y=s[p],D=o.map(qe=>s[qe]),{parent:C}=e,c=C.type===s.type,A=c&&o.some(qe=>C[qe]===s),T=c&&C[p]===s,S=m.type===s.type,g=y.type===s.type,M=g||T,R=t.tabWidth>2||t.useTabs,j,I,U=0;do I=j||s,j=e.getParentNode(U),U++;while(j&&j.type===s.type&&o.every(qe=>j[qe]!==I));let P=j||C,G=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(C.type==="AssignmentExpression"||C.type==="VariableDeclarator"||C.type==="ClassProperty"||C.type==="PropertyDefinition"||C.type==="ClassPrivateProperty"||C.type==="ObjectProperty"||C.type==="Property"),ue=(C.type==="ReturnStatement"||C.type==="ThrowStatement")&&!(S||g),Q=u&&P.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",gt=zl(e),Ft=$l(s,C),w=i&&Be(e,t),ne=R?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",de=Kl(D,m,y,t)||S||g,ot=!M&&!c&&!i&&(Q?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:nr(m,t)&&Rn(s.test,3)),St=M||T||i&&!c||c&&u&&Rn(s.test,1)||ot,_s=[];!S&&d(m,h.Dangling)&&e.call(qe=>{_s.push(J(qe,t),F)},"consequent");let Qt=[];d(s.test,h.Dangling)&&e.call(qe=>{Qt.push(J(qe,t))},"test"),!g&&d(y,h.Dangling)&&e.call(qe=>{Qt.push(J(qe,t))},"alternate"),d(s,h.Dangling)&&Qt.push(J(e,t));let js=Symbol("test"),qa=Symbol("consequent"),Fr=Symbol("test-and-consequent"),Wa=u?[Ls(r("test")),s.test.type==="ConditionalExpression"?Ee:""]:[r("checkType")," ","extends"," ",s.extendsType.type==="TSConditionalType"||s.extendsType.type==="ConditionalTypeAnnotation"||s.extendsType.type==="TSMappedType"?r("extendsType"):l(Ls(r("extendsType")))],vs=l([Wa," ?"],{id:js}),Ga=r(a),Cr=f([S||Q&&(H(m)||c||M)?F:x,_s,Ga]),Ua=St?l([vs,M?Cr:B(Cr,l(Cr,{id:qa}),{groupId:js})],{id:Fr}):[vs,Cr],kn=r(p),Ms=ot?B(kn,Mr(Ls(kn)),{groupId:Fr}):kn,zt=[Ua,Qt.length>0?[f([F,Qt]),F]:g?F:ot?B(x," ",{groupId:Fr}):x,":",g?" ":R?St?B(ne,B(M||ot?" ":ne," "),{groupId:Fr}):B(ne," "):" ",g?Ms:l([f(Ms),Q&&!ot?E:""]),Ft&&!gt?E:"",de?Ee:""];return G&&!de?l(f([E,l(zt)])):G||ue?l(f(zt)):gt||i&&A?l([f([E,zt]),w?E:""]):C===P?l(zt):zt}function da(e,t,r,n){let{node:s}=e;if(kr(s))return ma(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),F];case"File":return pa(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return oa(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(se(s.expression)||X(s.expression))?["(",r("expression"),")"]:l(["(",f([E,r("expression")]),E,")"]);case"AssignmentExpression":return Oi(e,t,r);case"VariableDeclarator":return _i(e,t,r);case"BinaryExpression":case"LogicalExpression":return Nr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Pi(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(l(f([E,Vr(e,t,r)]))),i;case"Identifier":return[s.name,$(e),cn(e),N(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return ln(e,r);case"FunctionDeclaration":case"FunctionExpression":return Dn(e,r,t,n);case"ArrowFunctionExpression":return $i(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(L(a)&&a.callee===s||W(a)&&a.object===s){i=[f([E,...i]),E];let p=e.findAncestor(o=>o.type==="AwaitExpression"||o.type==="BlockStatement");if((p==null?void 0:p.type)!=="AwaitExpression"||!ie(p.argument,o=>o===s))return l(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return gn(e,t,r);case"ImportDeclaration":return ya(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Aa(e,t,r);case"ImportAttribute":return yn(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return Fn(e,t,r);case"ClassBody":return na(e,t,r);case"ThrowStatement":return Hi(e,t,r);case"ReturnStatement":return Yi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return $r(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ht(e,t,r);case"Property":return bt(s)?yr(e,t,r):yn(e,t,r);case"ObjectProperty":return yn(e,t,r);case"ObjectMethod":return yr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let p=[];return e.each(({isFirst:o})=>{o?p.push(r()):p.push(",",f([x,r()]))},"expressions"),l(p)}return l(b([",",x],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/u.test(s.operator)&&i.push(" "),d(s.argument)?i.push(l(["(",f([E,r("argument")]),E,")"])):i.push(r("argument")),i;case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return Kt(e,t,r,n);case"VariableDeclaration":{let a=e.map(r,"declarations"),p=e.parent,o=p.type==="ForStatement"||p.type==="ForInStatement"||p.type==="ForOfStatement",m=s.declarations.some(D=>D.init),y;return a.length===1&&!d(s.declarations[0])?y=a[0]:a.length>0&&(y=f(a[0])),i=[K(e),s.kind,y?[" ",y]:"",f(a.slice(1).map(D=>[",",m&&!o?F:x,D]))],o&&p.body!==s||i.push(u),l(i)}case"WithStatement":return l(["with (",r("object"),")",Dt(s.body,r("body"))]);case"IfStatement":{let a=Dt(s.consequent,r("consequent")),p=l(["if (",l([f([E,r("test")]),E]),")",a]);if(i.push(p),s.alternate){let o=d(s.consequent,h.Trailing|h.Line)||wr(s),m=s.consequent.type==="BlockStatement"&&!o;i.push(m?" ":F),d(s,h.Dangling)&&i.push(J(e,t),o?F:" "),i.push("else",l(Dt(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=Dt(s.body,r("body")),p=J(e,t),o=p?[p,E]:"";return!s.init&&!s.test&&!s.update?[o,l(["for (;;)",a])]:[o,l(["for (",l([f([E,r("init"),";",x,r("test"),";",x,r("update")]),E]),")",a])]}case"WhileStatement":return l(["while (",l([f([E,r("test")]),E]),")",Dt(s.body,r("body"))]);case"ForInStatement":return l(["for (",r("left")," in ",r("right"),")",Dt(s.body,r("body"))]);case"ForOfStatement":return l(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",Dt(s.body,r("body"))]);case"DoWhileStatement":{let a=Dt(s.body,r("body"));return i=[l(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(F),i.push("while (",l([f([E,r("test")]),E]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,o=>!ee(o)||o.leading&&Z(t.originalText,k(o))||o.trailing&&Z(t.originalText,q(o),{backwards:!0})),p=r("param");return["catch ",a?["(",f([E,p]),E,") "]:["(",p,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[l(["switch (",f([E,r("discriminant")]),E,")"])," {",s.cases.length>0?f([F,b(F,e.map(({node:a,isLast:p})=>[r(),!p&&pe(a,t)?F:""],"cases"))]):"",F,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,h.Dangling)&&i.push(" ",J(e,t));let a=s.consequent.filter(p=>p.type!=="EmptyStatement");if(a.length>0){let p=Dr(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",p]:f([F,p]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return Tn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return dn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return xn(e,t,r);case"TemplateElement":return Ie(s.value.raw);case"TemplateLiteral":return Wr(e,r,t);case"TaggedTemplateExpression":return Xu(e,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Me(s,"ESTree")}}function Sn(e,t,r){let{parent:n,node:s,key:u}=e,i=[r("expression")];switch(s.type){case"AsConstExpression":i.push(" as const");break;case"AsExpression":case"TSAsExpression":i.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":i.push(" satisfies ",r("typeAnnotation"));break}return u==="callee"&&L(n)||u==="object"&&W(n)?l([f([E,...i]),E]):i}function xa(e,t,r){let{node:n}=e,s=[K(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let u=Zl(e,r,t);return n.rendersType?s.push(l([u," ",r("rendersType")])):s.push(l([u])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function Zl(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",J(e,r,{filter:i=>ge(r.originalText,k(i))===")"}),")"];let u=[];return tm(e,(i,a)=>{let p=a===s.length-1;p&&n.rest&&u.push("..."),u.push(t()),!p&&(u.push(","),pe(s[a],r)?u.push(F,F):u.push(x))}),["(",f([E,...u]),B(ae(r,"all")&&!em(n,s)?",":""),E,")"]}function em(e,t){var r;return e.rest||((r=_(!1,t,-1))==null?void 0:r.type)==="RestElement"}function tm(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function ha(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function ga(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function Sa(e,t,r){return ht(e,r,t)}function Bn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function Ba(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumBigIntBody":s="bigint";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Sa(e,t,r)]}function bn(e,t,r){let{node:n}=e;return[K(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Sa(e,t,r):t("body")]}function Pa(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let u=Je(e,r,t,!1,!0),i=$t(e,r),a=at(n,i);return s.push(l([a?l(u):u,i]),n.body?" ":"",r("body")),s}function ka(e,t,r){let{node:n}=e,s=[K(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function ba(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function Ia(e,t,r){let{node:n}=e,s=[];s.push(ba(e)?"":"hook ");let u=Je(e,r,t,!1,!0),i=[];return i.push(ba(e)?": ":" => ",r("returnType")),at(n,i)&&(u=l(u)),s.push(u,i),l(s)}function Pn(e,t,r){let{node:n}=e,s=[K(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,h.Trailing|h.Line);return O(n.extends)&&i.push(a?B(" ",x,{groupId:fr(n.typeParameters)}):x,"extends ",(n.extends.length===1?mu:f)(b([",",x],e.map(r,"extends")))),d(n.id,h.Trailing)||O(n.extends)?a?s.push(l([...u,f(i)])):s.push(l(f([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),l(s)}function La(e,t,r){let{node:n}=e;if(Sr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return xa(e,t,r);case"ComponentParameter":return ha(e,t,r);case"ComponentTypeParameter":return ga(e,t,r);case"HookDeclaration":return Pa(e,t,r);case"DeclareHook":return ka(e,t,r);case"HookTypeAnnotation":return Ia(e,t,r);case"DeclareClass":return Tn(e,t,r);case"DeclareFunction":return[K(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",N(e,r),s];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[K(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return gn(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Ri(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Qr(e,t,r);case"IntersectionTypeAnnotation":return zr(e,t,r);case"UnionTypeAnnotation":return Zr(e,t,r);case"ConditionalTypeAnnotation":return Kt(e,t,r);case"InferTypeAnnotation":return rn(e,t,r);case"FunctionTypeAnnotation":return en(e,t,r);case"TupleTypeAnnotation":return Vt(e,t,r);case"TupleTypeLabeledElement":return sn(e,t,r);case"TupleTypeSpreadElement":return nn(e,t,r);case"GenericTypeAnnotation":return[r("id"),Lt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return tn(e,t,r);case"TypeAnnotation":return un(e,t,r);case"TypeParameter":return An(e,t,r);case"TypeofTypeAnnotation":return on(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return an(r);case"DeclareEnum":case"EnumDeclaration":return bn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Ba(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Bn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,$(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Pn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return vt.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return Qi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Et(e,t,r),$(e),bt(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return ht(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",$(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return ln(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ie(Ze(fe(n),t));case"NumberLiteralTypeAnnotation":return ft(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return hn(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),N(e,r),")"];case"TypePredicate":return pn(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Lt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Sn(e,t,r)}}function wa(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Br(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(X(n.expression)||se(n.expression)),p=l(["<",f([E,r("typeAnnotation")]),E,">"]),o=[B("("),f([E,r("expression")]),E,B(")")];return a?Ke([[p,r("expression")],[p,l(o,{shouldBreak:!0})],[p,r("expression")]]):l([p,r("expression")])}case"TSDeclareFunction":return Dn(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return Fn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return ht(e,t,r);case"TSTypeAliasDeclaration":return Qr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return dn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return xn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(n.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Wr(e,r,t);case"TSNamedTupleMember":return sn(e,t,r);case"TSRestType":return nn(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Lt(e,t,r,"params");case"TSTypeParameter":return An(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return Sn(e,t,r);case"TSArrayType":return an(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Et(e,t,r),$(e),N(e,r)];case"TSParameterProperty":return[Nt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return on(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?B(ae(t)?",":""):"",p=l([f([E,b([", ",E],e.map(r,"parameters"))]),a,E]),o=e.parent.type==="ClassBody"&&e.key==="body";return[o&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?p:"","]",N(e,r),o?s:""]}case"TSTypePredicate":return pn(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",Lt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return tn(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return zi(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(Nt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",$(e));let p=Je(e,r,t,!1,!0),o=n.returnType?"returnType":"typeAnnotation",m=n[o],y=m?N(e,r,o):"",D=at(n,y);return u.push(D?l(p):p),m&&u.push(l(y)),l(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return bn(e,r,t);case"TSEnumMember":return Bn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",ks(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,p=a.type==="TSModuleDeclaration",o=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";return p?u.push("."):(u.push(K(e)),n.kind!=="global"&&u.push(n.kind," ")),u.push(r("id")),o?u.push(r("body")):n.body?u.push(" ",l(r("body"))):u.push(s),u}case"TSConditionalType":return Kt(e,t,r);case"TSInferType":return rn(e,t,r);case"TSIntersectionType":return zr(e,t,r);case"TSUnionType":return Zr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return en(e,t,r);case"TSTupleType":return Vt(e,t,r);case"TSTypeReference":return[r("typeName"),Lt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return un(e,t,r);case"TSEmptyBodyFunctionExpression":return fn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ts(e,r,"?");case"TSJSDocNonNullableType":return Ts(e,r,"!");case"TSParenthesizedType":default:throw new Me(n,"TypeScript")}}function rm(e,t,r,n){if(Hr(e))return li(e,t);for(let s of[di,Fi,La,wa,da]){let u=s(e,t,r,n);if(u!==void 0)return u}}var nm=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function sm(e,t,r,n){var y;e.isRoot&&((y=t.__onHtmlBindingRoot)==null||y.call(t,e.node,t));let s=rm(e,t,r,n);if(!s)return"";let{node:u}=e;if(nm(u))return s;let i=O(u.decorators),a=hi(e,t,r),p=u.type==="ClassExpression";if(i&&!p)return or(s,D=>l([a,D]));let o=Be(e,t),m=ia(e,t);return!a&&!o&&!m?s:or(s,D=>[m?";":"",o?"(":"",o&&p&&i?[f([x,a,D]),x]:[a,D],o?")":""])}var Oa=sm;var um={avoidAstMutation:!0};var _a=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var Os={};Ar(Os,{getVisitorKeys:()=>va,massageAstNode:()=>Ra,print:()=>om});var im={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},ja=im;var am=hr(ja),va=am;function om(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),F];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",f([F,b([",",F],s)]),F,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",f([F,b([",",F],e.map(r,"properties"))]),F,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Ma(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Ma(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Me(n,"JSON")}}function Ma(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var pm=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Ra.ignoredProperties=pm;var Er={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var wt="JavaScript",cm={arrowParens:{category:wt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Er.bracketSameLine,bracketSpacing:Er.bracketSpacing,jsxBracketSameLine:{category:wt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:wt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:wt,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Er.singleQuote,jsxSingleQuote:{category:wt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:wt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:wt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Er.singleAttributePerLine},Ja=cm;var lm={estree:ws,"estree-json":Os},mm=[...Gs,..._a];return Va(ym);}); \ No newline at end of file diff --git a/node_modules/prettier/plugins/estree.mjs b/node_modules/prettier/plugins/estree.mjs index 9fe7afe1..3b327012 100644 --- a/node_modules/prettier/plugins/estree.mjs +++ b/node_modules/prettier/plugins/estree.mjs @@ -1,36 +1,36 @@ -var Wa=Object.defineProperty;var Js=e=>{throw TypeError(e)};var Ar=(e,t)=>{for(var r in t)Wa(e,r,{get:t[r],enumerable:!0})};var qs=(e,t,r)=>t.has(e)||Js("Cannot "+r);var pt=(e,t,r)=>(qs(e,t,"read from private field"),r?r.call(e):t.get(e)),Ws=(e,t,r)=>t.has(e)?Js("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gs=(e,t,r,n)=>(qs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var _s={};Ar(_s,{languages:()=>nm,options:()=>va,printers:()=>rm});var Us=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var ws={};Ar(ws,{canAttachComment:()=>fp,embed:()=>Qu,experimentalFeatures:()=>Kl,getCommentChildNodes:()=>Ep,getVisitorKeys:()=>gr,handleComments:()=>Kn,insertPragma:()=>pi,isBlockComment:()=>re,isGap:()=>Fp,massageAstNode:()=>Cu,print:()=>Ia,printComment:()=>Pu,willPrintOwnComments:()=>zn});var Ga=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},N=Ga;var Ua=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},O=Ua;function Na(e){return e!==null&&typeof e=="object"}var Ns=Na;function*Xa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Ns(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*Ya(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[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\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Hs(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Vs(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var $s=e=>!(Hs(e)||Vs(e));var Ha=/[^\x20-\x7F]/u;function Va(e){if(!e)return 0;if(!Ha.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=$s(n)?1:2)}return t}var et=Va;function Tr(e){return(t,r,n)=>{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i{throw TypeError(e)};var Ar=(e,t)=>{for(var r in t)Xa(e,r,{get:t[r],enumerable:!0})};var Js=(e,t,r)=>t.has(e)||Rs("Cannot "+r);var pt=(e,t,r)=>(Js(e,t,"read from private field"),r?r.call(e):t.get(e)),qs=(e,t,r)=>t.has(e)?Rs("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ws=(e,t,r,n)=>(Js(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Os={};Ar(Os,{languages:()=>om,options:()=>Ja,printers:()=>am});var Gs=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var Ls={};Ar(Ls,{canAttachComment:()=>Ap,embed:()=>Zu,experimentalFeatures:()=>tm,getCommentChildNodes:()=>Tp,getVisitorKeys:()=>gr,handleComments:()=>$n,insertPragma:()=>ci,isBlockComment:()=>ee,isGap:()=>dp,massageAstNode:()=>Cu,print:()=>Oa,printComment:()=>Pu,willPrintOwnComments:()=>Kn});var Ya=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Y=Ya;var Ha=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},_=Ha;function Na(e){return e!==null&&typeof e=="object"}var Us=Na;function*Va(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Us(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*$a(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[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?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Hs(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ns(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Vs=e=>!(Hs(e)||Ns(e));var Ka=/[^\x20-\x7F]/u;function Qa(e){if(!e)return 0;if(!Ka.test(e))return e.length;e=e.replace(Ys()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Vs(n)?1:2)}return t}var ze=Qa;function Tr(e){return(t,r,n)=>{let s=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:u}=t,i=r;for(;i>=0&&i0}var w=eo;var dr="'",Qs='"';function to(e,t){let r=t===!0||t===dr?dr:Qs,n=r===dr?Qs:dr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var xr=to;function ro(e,t,r){let n=t==='"'?"'":'"',u=N(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var Zs=ro;function no(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote);return Zs(r,n,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))}var tt=no;function R(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(R(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ht(e,t){let r=R(e);return Number.isInteger(r)&&r===R(t)}function so(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function eu(e,t){return ht(e,t)&&so(e,t)}var Qt=null;function Zt(e){if(Qt!==null&&typeof Qt.property){let t=Qt;return Qt=Zt.prototype=null,t}return Qt=Zt.prototype=e??Object.create(null),new Zt}var uo=10;for(let e=0;e<=uo;e++)Zt();function In(e){return Zt(e)}function io(e,t="type"){In(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var hr=io;var tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var ao=hr(tu),gr=ao;function oo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var v=oo;var po=v(["Block","CommentBlock","MultiLine"]),re=po;var co=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Sr=co;function lo(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function mo(e,t){return t.some(r=>lo(e,r))}var ru=mo;function yo({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Br=yo;function tr(e,t){return t(e)||Xs(e,{getVisitorKeys:gr,predicate:t})}function jt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||q(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Te(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uu(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Pr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var vt=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),iu=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),U=v(["ArrayExpression","TupleExpression"]),se=v(["ObjectExpression","RecordExpression"]);function au(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Ce(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function jn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Ce(e.argument)}function Q(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function vn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var kr=v(["Literal","BooleanLiteral","BigIntLiteral","DecimalLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Do=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier","Import"]),we=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),_t=v(["FunctionExpression","ArrowFunctionExpression"]);function fo(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ln(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var X=v(["JSXElement","JSXFragment"]);function gt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Ir(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!ht(e,e.typeAnnotation)}var De=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Ft(e){return q(e)||e.type==="BindExpression"&&!!e.object}var Eo=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Mt(e){return Br(e)||Sr(e)||Eo(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function Fo(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Co=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Ao(e){return ru(e,Co)}function St(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=oe(e);if(r.length===1){if(Ln(e)&&St(t))return _t(r[0]);if(Fo(e.callee))return Ln(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Q(r[0]))&&Ao(e.callee))return r[2]&&!Ce(r[2])?!1:(r.length===2?_t(r[1]):fo(r[1])&&K(r[1]).length<=1)||Ln(r[1]);return!1}var pu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=pu(v(["CallExpression","OptionalCallExpression"])),q=pu(v(["MemberExpression","OptionalMemberExpression"]));function Mn(e,t=5){return cu(e,t)<=t}function cu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=cu(s,t-r)),r>t)return r}return r}var To=.25;function rr(e,t){let{printWidth:r}=t;if(d(e))return!1;let n=r*To;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||jn(e)&&!d(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:Q(e)?tt(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` -`):e.type==="UnaryExpression"?rr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:kr(e)}function Oe(e,t){return X(t)?Bt(t):d(t,g.Leading,r=>te(e,k(r)))}function nu(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function Lr(e,t){return(e.type==="TemplateLiteral"&&nu(e)||e.type==="TaggedTemplateExpression"&&nu(e.quasi))&&!te(t,R(e),{backwards:!0})}function wr(e){if(!d(e))return!1;let t=O(!1,ct(e,g.Dangling),-1);return t&&!re(t)}function lu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(_t(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of oe(r))if(_t(n))return!0}return!1}function Or(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var xo=new Set(["!","-","+","~"]);function be(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return be(e.expression,t);let r=n=>be(n,t-1);if(vn(e))return et(e.pattern??e.regex.pattern)<=5;if(kr(e)||Do(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(U(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||be(e.callee,t)){let n=oe(e);return n.length<=t&&n.every(r)}return!1}return q(e)?be(e.object,t)&&be(e.property,t):e.type==="UnaryExpression"&&xo.has(e.operator)||e.type==="UpdateExpression"?be(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function mu(e){return e}function ae(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ie(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ie(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ie(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ie(e.callee,t);case"ConditionalExpression":return ie(e.test,t);case"UpdateExpression":return!e.prefix&&ie(e.argument,t);case"BindExpression":return e.object&&ie(e.object,t);case"SequenceExpression":return ie(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie(e.expression,t);default:return t(e)}}var su={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n={">>":!0,">>>":!0,"<<":!0};function nr(e,t){return!(er(t)!==er(e)||e==="**"||su[e]&&su[t]||t==="%"&&br[e]||e==="%"&&br[t]||t!==e&&br[t]&&br[e]||_n[e]&&_n[t])}var ho=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function er(e){return ho.get(e)}function yu(e){return!!_n[e]||e==="|"||e==="^"||e==="&"}function Du(e){var r;if(e.rest)return!0;let t=K(e);return((r=O(!1,t,-1))==null?void 0:r.type)==="RestElement"}var wn=new WeakMap;function K(e){if(wn.has(e))return wn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),wn.set(e,t),t}function fu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var On=new WeakMap;function oe(e){if(On.has(e))return On.get(e);if(e.type==="ChainExpression")return oe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes),e.options&&t.push(e.options)),On.set(e,t),t}function Rt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Rt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Rn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.attributes||e.options?-2:-1))return[...r,"source"];if(e.attributes&&(t===1||t===-1))return[...r,"attributes"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function sr(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Bt(e){return(e==null?void 0:e.prettierIgnore)||d(e,g.PrettierIgnore)}var g={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&g.Leading&&!r.leading||e&g.Trailing&&!r.trailing||e&g.Dangling&&(r.leading||r.trailing)||e&g.Block&&!re(r)||e&g.Line&&!vt(r)||e&g.First&&n!==0||e&g.Last&&n!==s.length-1||e&g.PrettierIgnore&&!sr(r)||t&&!t(r))};function d(e,t,r){if(!w(e==null?void 0:e.comments))return!1;let n=Eu(t,r);return n?e.comments.some(n):!0}function ct(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Eu(t,r);return n?e.comments.filter(n):e.comments}var pe=(e,{originalText:t})=>Ot(t,k(e));function lt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ae(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!gt(e))}var Te=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ne=v(["UnionTypeAnnotation","TSUnionType"]),_r=v(["IntersectionTypeAnnotation","TSIntersectionType"]);var go=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Jt=e=>{for(let t of e.quasis)delete t.value};function Fu(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(e.value)),e.type==="Literal"&&t.decimal&&(t.decimal=Number(e.decimal)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:i}=e;Q(i)||Ce(i)?t.key=String(i.value):i.type==="Identifier"&&(t.key=i.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Jt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Jt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=N(!1,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":U(o.value)&&Jt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Jt(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Jt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>re(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Jt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}Fu.ignoredProperties=go;var Cu=Fu;var rt="string",_e="array",nt="cursor",Xe="indent",Ye="align",st="trim",le="group",Pe="fill",xe="if-break",He="indent-if-break",Ve="line-suffix",$e="line-suffix-boundary",me="line",je="label",ve="break-parent",jr=new Set([nt,Xe,Ye,st,le,Pe,xe,He,Ve,$e,me,je,ve]);function So(e){if(typeof e=="string")return rt;if(Array.isArray(e))return _e;if(!e)return;let{type:t}=e;if(jr.has(t))return t}var ut=So;var Bo=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function bo(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(ut(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Bo([...jr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var Jn=class extends Error{name="InvalidDocError";constructor(t){super(bo(t)),this.doc=t}},Ct=Jn;var Au={};function Po(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Au){r(s.pop());continue}r&&s.push(u,Au);let i=ut(u);if(!i)throw new Ct(u);if((t==null?void 0:t(u))!==!1)switch(i){case _e:case Pe:{let a=i===_e?u:u.parts;for(let o=a.length,c=o-1;c>=0;--c)s.push(a[c]);break}case xe:s.push(u.flatContents,u.breakContents);break;case le:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case Ye:case Xe:case He:case je:case Ve:s.push(u.contents);break;case rt:case nt:case st:case $e:case me:case ve:break;default:throw new Ct(u)}}}var qn=Po;var Tu=()=>{},Ke=Tu,vr=Tu;function f(e){return Ke(e),{type:Xe,contents:e}}function he(e,t){return Ke(t),{type:Ye,contents:t,n:e}}function l(e,t={}){return Ke(e),vr(t.expandedStates,!0),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function du(e){return he(Number.NEGATIVE_INFINITY,e)}function Mr(e){return he(-1,e)}function ze(e,t){return l(e[0],{...t,expandedStates:e})}function qt(e){return vr(e),{type:Pe,parts:e}}function b(e,t="",r={}){return Ke(e),t!==""&&Ke(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function At(e,t){return Ke(e),{type:He,contents:e,groupId:t.groupId,negate:t.negate}}function Wn(e){return Ke(e),{type:Ve,contents:e}}var ke={type:$e},Ee={type:ve};var Gn={type:me,hard:!0},ko={type:me,hard:!0,literal:!0},x={type:me},E={type:me,soft:!0},F=[Gn,Ee],Rr=[ko,Ee],Un={type:nt};function P(e,t){Ke(e),vr(t);let r=[];for(let n=0;n0){for(let s=0;s0){let t=O(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Su(e){let t=new Set,r=[];function n(u){if(u.type===ve&&hu(r),u.type===le){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===le&&r.pop().break&&hu(r)}qn(e,n,s,!0)}function Lo(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===xe?e.flatContents:e}function ur(e){return mt(e,Lo)}function wo(e){switch(ut(e)){case Pe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ye:case Xe:case He:case Ve:if(!e.contents)return"";break;case xe:if(!e.flatContents&&!e.breakContents)return"";break;case _e:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof O(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case rt:case nt:case st:case $e:case me:case je:case ve:break;default:throw new Ct(e)}return e}function Wt(e){return mt(e,t=>wo(t))}function Ie(e,t=Rr){return mt(e,r=>typeof r=="string"?P(t,r.split(` -`)):r)}function Oo(e){if(e.type===me)return!0}function Bu(e){return gu(e,Oo,!1)}function ir(e,t){return e.type===je?{...e,contents:t(e.contents)}:t(e)}function _o(e){let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var bu=_o;function Pu(e,t){let r=e.node;if(vt(r))return t.originalText.slice(R(r),k(r)).trimEnd();if(re(r))return bu(r)?jo(r):["/*",Ie(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function jo(e){let t=e.value.split(` -`);return["/*",P(F,t.map((r,n)=>n===0?r.trimEnd():" "+(nGo,ownLine:()=>Wo,remaining:()=>Uo});function vo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Nn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=vo(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Nn(e,t)}function Le(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Nn(e,t)}function z(e,t){t.leading=!1,t.trailing=!0,Nn(e,t)}function Mo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ge(e,n),n=Lt(e,n),n=wt(e,n),n=Ue(e,n);return n}var yt=Mo;function Ro(e,t){let r=yt(e,t);return r===!1?"":e.charAt(r)}var ge=Ro;function Jo(e,t,r){for(let n=t;nt(e))}function Go(e){return[No,_u,Lu,vu,Yn,Hn,Iu,wu,ju,tp,np,$n,op,Vn,lp,mp].some(t=>t(e))}function Uo(e){return[Mu,Yn,Hn,Ho,Zo,Ou,$n,Qo,zo,cp,Vn,pp].some(t=>t(e))}function bt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ce(r,t):Le(e,t)}function Xn(e,t){e.type==="BlockStatement"?bt(e,t):ce(e,t)}function No({comment:e,followingNode:t}){return t&&ku(e)?(ce(t,e),!0):!1}function Yn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ge(s,k(e))===")")return z(t,e),!0;if(t===r.consequent&&n===r.alternate){if(t.type==="BlockStatement")z(t,e);else{let i=vt(e)||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.loc.start.line;i&&a?z(t,e):Le(r,e)}return!0}return n.type==="BlockStatement"?(bt(n,e),!0):n.type==="IfStatement"?(Xn(n.consequent,e),!0):r.consequent===n?(ce(n,e),!0):!1}function Hn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:ge(s,k(e))===")"?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):r.body===n?(ce(n,e),!0):!1}function Iu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(z(t,e),!0):n.type==="BlockStatement"?(bt(n,e),!0):n.type==="TryStatement"?(Xn(n.finalizer,e),!0):n.type==="CatchClause"?(Xn(n.body,e),!0):!1}function Xo({comment:e,enclosingNode:t,followingNode:r}){return q(t)&&(r==null?void 0:r.type)==="Identifier"?(ce(t,e),!0):!1}function Yo({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||(t==null?void 0:t.type)==="ConditionalTypeAnnotation"||(t==null?void 0:t.type)==="TSConditionalType")?!1:(r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType"?(Le(t,e),!0):!1}function Lu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:u}){let i=t&&!de(s,k(t),R(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||(r==null?void 0:r.type)==="ConditionalTypeAnnotation"||(r==null?void 0:r.type)==="TSConditionalType")&&n?u.experimentalTernaries&&r.alternate===n&&!(re(e)&&!de(u.originalText,R(e),k(e)))?(Le(r,e),!0):(ce(n,e),!0):!1}function Ho({comment:e,precedingNode:t,enclosingNode:r}){return Ae(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(z(r.value.left,e),!0):!1}var Vo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(Vo.has(r==null?void 0:r.type)){if(w(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return z(O(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return bt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return z(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?z(t,e):Le(r,e,s),!0}}return!1}var $o=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&ge(n,k(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&ge(n,k(t))!==":"?(z(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&$o.has(r==null?void 0:r.type)?(z(t,e),!0):!1}var Ko=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function zo({comment:e,precedingNode:t,enclosingNode:r,text:n}){return ge(n,k(e))!=="("?!1:t&&Ko.has(r==null?void 0:r.type)?(z(t,e),!0):!1}function Qo({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=yt(r,k(e));return n!==!1&&r.slice(n,n+2)==="=>"?(Le(t,e),!0):!1}function Zo({comment:e,enclosingNode:t,text:r}){return ge(r,k(e))!==")"?!1:t&&(Ru(t)&&K(t).length===0||lt(t)&&oe(t).length===0)?(Le(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&K(t.value).length===0?(Le(t.value,e),!0):!1}function ep({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(z(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&ge(s,k(e))===")"?(z(t,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"?(z(t,e),!0):((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&Ru(r)&&ge(s,k(e))===")"?(z(t,e),!0):!re(e)&&((r==null?void 0:r.type)==="FunctionDeclaration"||(r==null?void 0:r.type)==="FunctionExpression"||(r==null?void 0:r.type)==="ObjectMethod")&&(n==null?void 0:n.type)==="BlockStatement"&&r.body===n&&yt(s,k(e))===R(n)?(bt(n,e),!0):!1}function ju({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ce(t,e),!0):!1}function Vn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(z(t,e),!0):!1}function tp({comment:e,precedingNode:t,enclosingNode:r}){return L(r)&&t&&r.callee===t&&r.arguments.length>0?(ce(r.arguments[0],e),!0):!1}function rp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ne(r)?(sr(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(z(t,e),!0):!1):(Ne(n)&&sr(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function np({comment:e,enclosingNode:t}){return Ae(t)?(ce(t,e),!0):!1}function $n({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var s;return((s=r==null?void 0:r.body)==null?void 0:s.length)===0?(n?Le(r,e):ce(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!w(t.directives)?(n?Le(t,e):ce(t,e),!0):!1}function sp({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ce(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ce(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&te(n,k(e))?(z(t,e),!0):!1}function up({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ce(t,e),!0):!1}var ip=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ap=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function op({comment:e,enclosingNode:t,followingNode:r}){return ip.has(t==null?void 0:t.type)&&r&&(ap.has(r.type)||re(e))?(ce(r,e),!0):!1}function pp({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ge(n,k(e))===";"?(z(t,e),!0):!1}function Mu({comment:e,enclosingNode:t,followingNode:r}){if(sr(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function cp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ce(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(z(t.constraint,e),!0):!1}function lp({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&vt(e)?bt(r,e):Le(t,e),!0)}function mp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ne(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||_r(r))?(z(O(!1,t.types,-1),e),!0):!1}function yp({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?z(r,e):Le(t,e),!0}var Ru=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);var Dp=new Set(["EmptyStatement","TemplateElement","Import","TSEmptyBodyFunctionExpression","ChainExpression"]);function fp(e){return!Dp.has(e.type)}function Ep(e,t){var r;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((r=e.value)==null?void 0:r.type)==="FunctionExpression"&&K(e.value).length===0&&!e.value.returnType&&!w(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function zn(e){let{node:t,parent:r}=e;return(X(t)||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||Ne(r)||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!Bt(t)||Ne(r))}function Fp(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=N(!1,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function Ju(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var Ge=za;function Za(e,t,r={}){let n=We(e,r.backwards?t-1:t,r),s=Ge(e,n,r);return n!==s}var Z=Za;function eo(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var O=no;var Qs=new Proxy(()=>{},{get:()=>Qs}),vt=Qs;var dr="'",zs='"';function so(e,t){let r=t===!0||t===dr?dr:zs,n=r===dr?zs:dr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var xr=so;function uo(e,t,r){let n=t==='"'?"'":'"',u=Y(!1,e,/\\(.)|(["'])/gsu,(i,a,p)=>a===n?a:p===t?"\\"+p:p||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var Zs=uo;function io(e,t){vt(/^(?["']).*\k$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":xr(r,t.singleQuote);return e.charAt(0)===n?e:Zs(r,n,!1)}var Ze=io;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Bt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function ao(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function eu(e,t){return Bt(e,t)&&ao(e,t)}var Zt=null;function er(e){if(Zt!==null&&typeof Zt.property){let t=Zt;return Zt=er.prototype=null,t}return Zt=er.prototype=e??Object.create(null),new er}var oo=10;for(let e=0;e<=oo;e++)er();function In(e){return er(e)}function po(e,t="type"){In(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var hr=po;var tu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var co=hr(tu),gr=co;function lo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var v=lo;var mo=v(["Block","CommentBlock","MultiLine"]),ee=mo;var yo=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Sr=yo;function Do(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function fo(e,t){return t.some(r=>Do(e,r))}var ru=fo;function Eo({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Br=Eo;function rr(e,t){return t(e)||Xs(e,{getVisitorKeys:gr,predicate:t})}function Rt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||W(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Ae(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function uu(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Pr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var Ct=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),iu=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),X=v(["ArrayExpression","TupleExpression"]),se=v(["ObjectExpression","RecordExpression"]);function au(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Fe(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function jn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Fe(e.argument)}function te(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function vn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var kr=v(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Fo=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),we=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Mt=v(["FunctionExpression","ArrowFunctionExpression"]);function Co(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ln(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var H=v(["JSXElement","JSXFragment"]);function bt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Ir(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Bt(e,e.typeAnnotation)}var De=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function At(e){return W(e)||e.type==="BindExpression"&&!!e.object}var Ao=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Jt(e){return Br(e)||Sr(e)||Ao(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function To(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var xo=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ho(e){return ru(e,xo)}function Pt(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=oe(e);if(r.length===1){if(Ln(e)&&Pt(t))return Mt(r[0]);if(To(e.callee))return Ln(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||te(r[0]))&&ho(e.callee))return r[2]&&!Fe(r[2])?!1:(r.length===2?Mt(r[1]):Co(r[1])&&z(r[1]).length<=1)||Ln(r[1]);return!1}var pu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=pu(v(["CallExpression","OptionalCallExpression"])),W=pu(v(["MemberExpression","OptionalMemberExpression"]));function Mn(e,t=5){return cu(e,t)<=t}function cu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=cu(s,t-r)),r>t)return r}return r}var go=.25;function nr(e,t){let{printWidth:r}=t;if(d(e))return!1;let n=r*go;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||jn(e)&&!d(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:te(e)?Ze(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?nr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:kr(e)}function Oe(e,t){return H(t)?kt(t):d(t,h.Leading,r=>Z(e,k(r)))}function nu(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Lr(e,t){return(e.type==="TemplateLiteral"&&nu(e)||e.type==="TaggedTemplateExpression"&&nu(e.quasi))&&!Z(t,q(e),{backwards:!0})}function wr(e){if(!d(e))return!1;let t=_(!1,ct(e,h.Dangling),-1);return t&&!ee(t)}function lu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Mt(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of oe(r))if(Mt(n))return!0}return!1}function Or(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var So=new Set(["!","-","+","~"]);function be(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return be(e.expression,t);let r=n=>be(n,t-1);if(vn(e))return ze(e.pattern??e.regex.pattern)<=5;if(kr(e)||Fo(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(X(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||be(e.callee,t)){let n=oe(e);return n.length<=t&&n.every(r)}return!1}return W(e)?be(e.object,t)&&be(e.property,t):e.type==="UnaryExpression"&&So.has(e.operator)||e.type==="UpdateExpression"?be(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function mu(e){return e}function ae(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ie(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ie(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ie(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ie(e.callee,t);case"ConditionalExpression":return ie(e.test,t);case"UpdateExpression":return!e.prefix&&ie(e.argument,t);case"BindExpression":return e.object&&ie(e.object,t);case"SequenceExpression":return ie(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie(e.expression,t);default:return t(e)}}var su={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n={">>":!0,">>>":!0,"<<":!0};function sr(e,t){return!(tr(t)!==tr(e)||e==="**"||su[e]&&su[t]||t==="%"&&br[e]||e==="%"&&br[t]||t!==e&&br[t]&&br[e]||_n[e]&&_n[t])}var Bo=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function tr(e){return Bo.get(e)}function yu(e){return!!_n[e]||e==="|"||e==="^"||e==="&"}function Du(e){var r;if(e.rest)return!0;let t=z(e);return((r=_(!1,t,-1))==null?void 0:r.type)==="RestElement"}var wn=new WeakMap;function z(e){if(wn.has(e))return wn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),wn.set(e,t),t}function fu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var On=new WeakMap;function oe(e){if(On.has(e))return On.get(e);if(e.type==="ChainExpression")return oe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),On.set(e,t),t}function qt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>qt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Rn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function ur(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function kt(e){return(e==null?void 0:e.prettierIgnore)||d(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&h.Leading&&!r.leading||e&h.Trailing&&!r.trailing||e&h.Dangling&&(r.leading||r.trailing)||e&h.Block&&!ee(r)||e&h.Line&&!Ct(r)||e&h.First&&n!==0||e&h.Last&&n!==s.length-1||e&h.PrettierIgnore&&!ur(r)||t&&!t(r))};function d(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=Eu(t,r);return n?e.comments.some(n):!0}function ct(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Eu(t,r);return n?e.comments.filter(n):e.comments}var pe=(e,{originalText:t})=>jt(t,k(e));function lt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ce(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!bt(e))}var Ae=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ue=v(["UnionTypeAnnotation","TSUnionType"]),_r=v(["IntersectionTypeAnnotation","TSIntersectionType"]);var bo=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Wt=e=>{for(let t of e.quasis)delete t.value};function Fu(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:i}=e;te(i)||Fe(i)?t.key=String(i.value):i.type==="Identifier"&&(t.key=i.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Wt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Wt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Y(!1,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,p]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":X(p.value)&&Wt(p.value.elements[0]);break;case"template":p.value.type==="TemplateLiteral"&&Wt(p.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Wt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ee(a)&&["GraphQL","HTML"].some(p=>a.value===` ${p} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Wt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}Fu.ignoredProperties=bo;var Cu=Fu;var et="string",_e="array",tt="cursor",Xe="indent",Ye="align",rt="trim",le="group",Pe="fill",xe="if-break",He="indent-if-break",Ne="line-suffix",Ve="line-suffix-boundary",me="line",je="label",ve="break-parent",jr=new Set([tt,Xe,Ye,rt,le,Pe,xe,He,Ne,Ve,me,je,ve]);function Po(e){if(typeof e=="string")return et;if(Array.isArray(e))return _e;if(!e)return;let{type:t}=e;if(jr.has(t))return t}var nt=Po;var ko=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Io(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(nt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=ko([...jr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var Jn=class extends Error{name="InvalidDocError";constructor(t){super(Io(t)),this.doc=t}},Tt=Jn;var Au={};function Lo(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===Au){r(s.pop());continue}r&&s.push(u,Au);let i=nt(u);if(!i)throw new Tt(u);if((t==null?void 0:t(u))!==!1)switch(i){case _e:case Pe:{let a=i===_e?u:u.parts;for(let p=a.length,o=p-1;o>=0;--o)s.push(a[o]);break}case xe:s.push(u.flatContents,u.breakContents);break;case le:if(n&&u.expandedStates)for(let a=u.expandedStates.length,p=a-1;p>=0;--p)s.push(u.expandedStates[p]);else s.push(u.contents);break;case Ye:case Xe:case He:case je:case Ne:s.push(u.contents);break;case et:case tt:case rt:case Ve:case me:case ve:break;default:throw new Tt(u)}}}var qn=Lo;var Tu=()=>{},$e=Tu,vr=Tu;function f(e){return $e(e),{type:Xe,contents:e}}function he(e,t){return $e(t),{type:Ye,contents:t,n:e}}function l(e,t={}){return $e(e),vr(t.expandedStates,!0),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function du(e){return he(Number.NEGATIVE_INFINITY,e)}function Mr(e){return he(-1,e)}function Ke(e,t){return l(e[0],{...t,expandedStates:e})}function Rr(e){return vr(e),{type:Pe,parts:e}}function B(e,t="",r={}){return $e(e),t!==""&&$e(t),{type:xe,breakContents:e,flatContents:t,groupId:r.groupId}}function dt(e,t){return $e(e),{type:He,contents:e,groupId:t.groupId,negate:t.negate}}function Wn(e){return $e(e),{type:Ne,contents:e}}var ke={type:Ve},Ee={type:ve};var Gn={type:me,hard:!0},wo={type:me,hard:!0,literal:!0},x={type:me},E={type:me,soft:!0},F=[Gn,Ee],Jr=[wo,Ee],ir={type:tt};function b(e,t){$e(e),vr(t);let r=[];for(let n=0;n0){for(let s=0;s0){let t=_(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Su(e){let t=new Set,r=[];function n(u){if(u.type===ve&&hu(r),u.type===le){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===le&&r.pop().break&&hu(r)}qn(e,n,s,!0)}function _o(e){return e.type===me&&!e.hard?e.soft?"":" ":e.type===xe?e.flatContents:e}function ar(e){return mt(e,_o)}function jo(e){switch(nt(e)){case Pe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ye:case Xe:case He:case Ne:if(!e.contents)return"";break;case xe:if(!e.flatContents&&!e.breakContents)return"";break;case _e:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof _(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case et:case tt:case rt:case Ve:case me:case je:case ve:break;default:throw new Tt(e)}return e}function Gt(e){return mt(e,t=>jo(t))}function Ie(e,t=Jr){return mt(e,r=>typeof r=="string"?b(t,r.split(` +`)):r)}function vo(e){if(e.type===me)return!0}function Bu(e){return gu(e,vo,!1)}function or(e,t){return e.type===je?{...e,contents:t(e.contents)}:t(e)}function Mo(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var bu=Mo;function Pu(e,t){let r=e.node;if(Ct(r))return t.originalText.slice(q(r),k(r)).trimEnd();if(ee(r))return bu(r)?Ro(r):["/*",Ie(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Ro(e){let t=e.value.split(` +`);return["/*",b(F,t.map((r,n)=>n===0?r.trimEnd():" "+(nYo,ownLine:()=>Xo,remaining:()=>Ho});function Jo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Un(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Jo(e)}function ce(e,t){t.leading=!0,t.trailing=!1,Un(e,t)}function Le(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Un(e,t)}function V(e,t){t.leading=!1,t.trailing=!0,Un(e,t)}function qo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=We(e,n),n=Ot(e,n),n=_t(e,n),n=Ge(e,n);return n}var ut=qo;function Wo(e,t){let r=ut(e,t);return r===!1?"":e.charAt(r)}var ge=Wo;function Go(e,t,r){for(let n=t;nt(e))}function Yo(e){return[No,_u,Lu,vu,Yn,Hn,Iu,wu,ju,sp,ip,Vn,lp,Nn,Dp,fp,Fp].some(t=>t(e))}function Ho(e){return[Mu,Yn,Hn,Ko,rp,Ou,Vn,tp,ep,yp,Nn,mp].some(t=>t(e))}function It(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ce(r,t):Le(e,t)}function Xn(e,t){e.type==="BlockStatement"?It(e,t):ce(e,t)}function No({comment:e,followingNode:t}){return t&&ku(e)?(ce(t,e),!0):!1}function Yn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(ge(s,k(e))===")")return V(t,e),!0;if(t===r.consequent&&n===r.alternate){let i=ut(s,k(r.consequent));if(q(e)"?(Le(t,e),!0):!1}function rp({comment:e,enclosingNode:t,text:r}){return ge(r,k(e))!==")"?!1:t&&(Ru(t)&&z(t).length===0||lt(t)&&oe(t).length===0)?(Le(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&z(t.value).length===0?(Le(t.value,e),!0):!1}function np({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(V(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&ge(s,k(e))===")"?(V(t,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"?(V(t,e),!0):((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&Ru(r)&&ge(s,k(e))===")"?(V(t,e),!0):!ee(e)&&((r==null?void 0:r.type)==="FunctionDeclaration"||(r==null?void 0:r.type)==="FunctionExpression"||(r==null?void 0:r.type)==="ObjectMethod")&&(n==null?void 0:n.type)==="BlockStatement"&&r.body===n&&ut(s,k(e))===q(n)?(It(n,e),!0):!1}function ju({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(ce(t,e),!0):!1}function Nn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(V(t,e),!0):!1}function sp({comment:e,precedingNode:t,enclosingNode:r}){return L(r)&&t&&r.callee===t&&r.arguments.length>0?(ce(r.arguments[0],e),!0):!1}function up({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ue(r)?(ur(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(V(t,e),!0):!1):(Ue(n)&&ur(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function ip({comment:e,enclosingNode:t}){return Ce(t)?(ce(t,e),!0):!1}function Vn({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var s;return((s=r==null?void 0:r.body)==null?void 0:s.length)===0?(n?Le(r,e):ce(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!O(t.directives)?(n?Le(t,e):ce(t,e),!0):!1}function ap({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(ce(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return ce(r,e),!0;let s=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",u=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(s||u)&&Z(n,k(e))?(V(t,e),!0):!1}function op({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(ce(t,e),!0):!1}var pp=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),cp=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function lp({comment:e,enclosingNode:t,followingNode:r}){return pp.has(t==null?void 0:t.type)&&r&&(cp.has(r.type)||ee(e))?(ce(r,e),!0):!1}function mp({comment:e,enclosingNode:t,followingNode:r,text:n}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ge(n,k(e))===";"?(V(t,e),!0):!1}function Mu({comment:e,enclosingNode:t,followingNode:r}){if(ur(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(r==null?void 0:r.type)==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function yp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TSMappedType"?!1:(n==null?void 0:n.type)==="TSTypeParameter"&&n.name?(ce(n.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?(V(t.constraint,e),!0):!1}function Dp({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&Ct(e)?It(r,e):Le(t,e),!0)}function fp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Ue(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||_r(r))?(V(_(!1,t.types,-1),e),!0):!1}function Ep({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?V(r,e):Le(t,e),!0}function Fp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){var s;if(!n&&(r==null?void 0:r.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")){let u=((s=r.argument.loc)==null?void 0:s.start.line)!==t.right.loc.start.line,i=Ct(e)||e.loc.start.line===e.loc.end.line,a=e.loc.start.line===t.right.loc.start.line;if(u&&i&&a)return V(t.right,e),!0}return!1}var Ru=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]);var Cp=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);function Ap(e){return!Cp.has(e.type)}function Tp(e,t){var r;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((r=e.value)==null?void 0:r.type)==="FunctionExpression"&&z(e.value).length===0&&!e.value.returnType&&!O(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function Kn(e){let{node:t,parent:r}=e;return(H(t)||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||Ue(r)||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!kt(t)||Ue(r))}function dp(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=Y(!1,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function Ju(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` -`}}var Se=Symbol("MODE_BREAK"),at=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu(){return{value:"",length:0,queue:[]}}function Cp(e,t){return Qn(e,{type:"indent"},t)}function Ap(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||qu():t<0?Qn(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Qn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Qn(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let p of n)switch(p.type){case"indent":m(),r.useTabs?o(1):c(r.tabWidth);break;case"stringAlign":m(),s+=p.n,u+=p.n.length;break;case"numberAlign":i+=1,a+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return y(),{...e,value:s,length:u,queue:n};function o(p){s+=" ".repeat(p),u+=r.tabWidth*p}function c(p){s+=" ".repeat(p),u+=p}function m(){r.useTabs?D():y()}function D(){i>0&&o(i),C()}function y(){a>0&&c(a),C()}function C(){i=0,a=0}}function Zn(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===ar){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ar);return t}function Jr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:c,doc:m}=a.pop(),D=ut(m);switch(D){case rt:o.push(m),r-=et(m);break;case _e:case Pe:{let y=D===_e?m:m.parts;for(let C=y.length-1;C>=0;C--)a.push({mode:c,doc:y[C]});break}case Xe:case Ye:case He:case je:a.push({mode:c,doc:m.contents});break;case st:r+=Zn(o);break;case le:{if(u&&m.break)return!1;let y=m.break?Se:c,C=m.expandedStates&&y===Se?O(!1,m.expandedStates,-1):m.contents;a.push({mode:y,doc:C});break}case xe:{let C=(m.groupId?s[m.groupId]||at:c)===Se?m.breakContents:m.flatContents;C&&a.push({mode:c,doc:C});break}case me:if(c===Se||m.hard)return!0;m.soft||(o.push(" "),r--);break;case Ve:n=!0;break;case $e:if(n)return!1;break}}return!1}function es(e,t){let r={},n=t.printWidth,s=Ju(t.endOfLine),u=0,i=[{ind:qu(),mode:Se,doc:e}],a=[],o=!1,c=[],m=0;for(Su(e);i.length>0;){let{ind:y,mode:C,doc:p}=i.pop();switch(ut(p)){case rt:{let A=s!==` -`?N(!1,p,` -`,s):p;a.push(A),i.length>0&&(u+=et(A));break}case _e:for(let A=p.length-1;A>=0;A--)i.push({ind:y,mode:C,doc:p[A]});break;case nt:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(ar),m++;break;case Xe:i.push({ind:Cp(y,t),mode:C,doc:p.contents});break;case Ye:i.push({ind:Ap(y,p.n,t),mode:C,doc:p.contents});break;case st:u-=Zn(a);break;case le:switch(C){case at:if(!o){i.push({ind:y,mode:p.break?Se:at,doc:p.contents});break}case Se:{o=!1;let A={ind:y,mode:at,doc:p.contents},T=n-u,S=c.length>0;if(!p.break&&Jr(A,i,T,S,r))i.push(A);else if(p.expandedStates){let B=O(!1,p.expandedStates,-1);if(p.break){i.push({ind:y,mode:Se,doc:B});break}else for(let _=1;_=p.expandedStates.length){i.push({ind:y,mode:Se,doc:B});break}else{let J=p.expandedStates[_],j={ind:y,mode:at,doc:J};if(Jr(j,i,T,S,r)){i.push(j);break}}}else i.push({ind:y,mode:Se,doc:p.contents});break}}p.id&&(r[p.id]=O(!1,i,-1).mode);break;case Pe:{let A=n-u,{parts:T}=p;if(T.length===0)break;let[S,B]=T,_={ind:y,mode:at,doc:S},J={ind:y,mode:Se,doc:S},j=Jr(_,[],A,c.length>0,r,!0);if(T.length===1){j?i.push(_):i.push(J);break}let h={ind:y,mode:at,doc:B},W={ind:y,mode:Se,doc:B};if(T.length===2){j?i.push(h,_):i.push(W,J);break}T.splice(0,2);let Fe={ind:y,mode:C,doc:qt(T)},H=T[0];Jr({ind:y,mode:at,doc:[S,B,H]},[],A,c.length>0,r,!0)?i.push(Fe,h,_):j?i.push(Fe,W,_):i.push(Fe,W,J);break}case xe:case He:{let A=p.groupId?r[p.groupId]:C;if(A===Se){let T=p.type===xe?p.breakContents:p.negate?p.contents:f(p.contents);T&&i.push({ind:y,mode:C,doc:T})}if(A===at){let T=p.type===xe?p.flatContents:p.negate?f(p.contents):p.contents;T&&i.push({ind:y,mode:C,doc:T})}break}case Ve:c.push({ind:y,mode:C,doc:p.contents});break;case $e:c.length>0&&i.push({ind:y,mode:C,doc:Gn});break;case me:switch(C){case at:if(p.hard)o=!0;else{p.soft||(a.push(" "),u+=1);break}case Se:if(c.length>0){i.push({ind:y,mode:C,doc:p},...c.reverse()),c.length=0;break}p.literal?y.root?(a.push(s,y.root.value),u=y.root.length):(a.push(s),u=0):(u-=Zn(a),a.push(s+y.value),u=y.length);break}break;case je:i.push({ind:y,mode:C,doc:p.contents});break;case ve:break;default:throw new Ct(p)}i.length===0&&c.length>0&&(i.push(...c.reverse()),c.length=0)}let D=a.indexOf(ar);if(D!==-1){let y=a.indexOf(ar,D+1),C=a.slice(0,D).join(""),p=a.slice(D+1,y).join(""),A=a.slice(y+1).join("");return{formatted:C+p+A,cursorNodeStart:C.length,cursorNodeText:p}}return{formatted:a.join("")}}function Tp(e,t,r=0){let n=0;for(let s=r;s{if(i.push(t()),m.tail)return;let{tabWidth:D}=r,y=m.value.raw,C=y.includes(` -`)?Gu(y,D):o;o=C;let p=a[c],A=n[u][c],T=de(r.originalText,k(m),R(n.quasis[c+1]));if(!T){let B=es(p,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;B.includes(` -`)?T=!0:p=B}T&&(d(A)||A.type==="Identifier"||q(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Te(A)||De(A))&&(p=[f([E,p]),E]);let S=C===0&&y.endsWith(` -`)?he(Number.NEGATIVE_INFINITY,p):xu(p,C,D);i.push(l(["${",S,ke,"}"]))},"quasis"),i.push("`"),i}function Uu(e,t){let r=t("quasi");return it(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ke,r])}function xp(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(y=>"${"+es(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let y=1;yy.cells.length)),m=Array.from({length:c}).fill(0),D=[{cells:s},...o.filter(y=>y.cells.length>0)];for(let{cells:y}of D.filter(C=>!C.hasLineBreak))for(let[C,p]of y.entries())m[C]=Math.max(m[C],et(p));return i.push(ke,"`",f([F,P(F,D.map(y=>P(" | ",y.cells.map((C,p)=>y.hasLineBreak?C:C+" ".repeat(m[p]-et(C))))))]),F,"`"),i}}function hp(e,t){let{node:r}=e,n=t();return d(r)&&(n=l([f([E,n]),E])),["${",n,ke,"}"]}function Gt(e,t){return e.map(r=>hp(r,t),"expressions")}function Wr(e,t){return mt(e,r=>typeof r=="string"?t?N(!1,r,/(\\*)`/gu,"$1$1\\`"):ts(r):r)}function ts(e){return N(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var ns=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Nu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ae(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>U(n)&&s==="elements",r,...ns)||e.match(t,r,...ns)}function Xu(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ae(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...ns)}function rs(e,t){return d(e,g.Block|g.Leading,({value:r})=>r===` ${t} `)}function Gr({node:e,parent:t},r){return rs(e,r)||Sp(t)&&rs(t,r)||t.type==="ExpressionStatement"&&rs(t,r)}function Sp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Bp(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,D,y)=>y===0?D:m+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Gt(r,t),c=bp(a,o);if(!c)throw new Error("Couldn't insert all the expressions");return["`",f([F,c]),E,"`"]}function bp(e,t){if(!w(t))return e;let r=0,n=mt(Wt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?Ie(u):(r++,t[u])));return t.length===r?n:null}function Pp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Ur(e){return e.type==="Identifier"&&e.name==="styled"}function Yu(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function kp({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Ur(t.object)||Yu(t);case"CallExpression":return Ur(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Ur(t.callee.object.object)||Yu(t.callee.object))||t.callee.object.type==="CallExpression"&&Ur(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Ip({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Lp(e){if(Pp(e)||kp(e)||Ip(e)||Nu(e))return Bp}var Hu=Lp;async function wp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Gt(r,t),i=[];for(let a=0;a2&&y[0].trim()===""&&y[1].trim()==="",T=C>2&&y[C-1].trim()===""&&y[C-2].trim()==="",S=y.every(_=>/^\s*(?:#[^\n\r]*)?$/u.test(_));if(!m&&/#[^\n\r]*$/u.test(y[C-1]))return null;let B=null;S?B=Op(y):B=await e(D,{parser:"graphql"}),B?(B=Wr(B,!1),!c&&A&&i.push(""),i.push(B),!m&&T&&i.push("")):!c&&!m&&A&&i.push(""),p&&i.push(p)}return["`",f([F,P(F,i)]),F,"`"]}function Op(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:P(F,t)}function _p({node:e,parent:t}){return Gr({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function jp(e){if(_p(e))return wp}var Vu=jp;var ss=0;async function $u(e,t,r,n,s){let{node:u}=n,i=ss;ss=ss+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,B,_)=>B===_.length-1?S.value.cooked:S.value.cooked+a(B)).join(""),c=Gt(n,r),m=new RegExp(a(String.raw`(\d+)`),"gu"),D=0,y=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),C=mt(y,S=>{if(typeof S!="string")return S;let B=[],_=S.split(m);for(let J=0;J<_.length;J++){let j=_[J];if(J%2===0){j&&(j=ts(j),s.__embeddedInHtml&&(j=N(!1,j,/<\/(?=script\b)/giu,String.raw`<\/`)),B.push(j));continue}let h=Number(j);B.push(c[h])}return B}),p=/^\s/u.test(o)?" ":"",A=/\s$/u.test(o)?" ":"",T=s.htmlWhitespaceSensitivity==="ignore"?F:p&&A?x:null;return T?l(["`",f([T,l(C)]),T,"`"]):it({hug:!1},l(["`",p,D>1?f(l(C)):l(C),A,"`"]))}function vp(e){return Gr(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Mp=$u.bind(void 0,"html"),Rp=$u.bind(void 0,"angular");function Jp(e){if(vp(e))return Mp;if(Xu(e))return Rp}var Ku=Jp;async function qp(e,t,r){let{node:n}=r,s=N(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(o,c)=>"\\".repeat(c.length/2)+"`"),u=Wp(s),i=u!=="";i&&(s=N(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Wr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Rr,du(a)],E,"`"]}function Wp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Gp(e){if(Up(e))return qp}function Up({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var zu=Gp;function Np(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Xp(t))return;let r;for(let n of[Hu,Vu,Ku,zu])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&it({embed:!0,...u.label},u)}}function Xp({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Qu=Np;var Yp=/\*\/$/,Hp=/^\/\*\*?/,ri=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp=/(^|\s+)\/\/([^\n\r]*)/g,Zu=/^(\r?\n)+/,$p=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp=/(\r?\n|^) *\* ?/g,ni=[];function si(e){let t=e.match(ri);return t?t[0].trimStart():""}function ui(e){let t=e.match(ri),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ii(e){let t=` -`;e=N(!1,e.replace(Hp,"").replace(Yp,""),Kp,"$1");let r="";for(;r!==e;)r=e,e=N(!1,e,$p,`${t}$1 $2${t}`);e=e.replace(Zu,"").trimEnd();let n=Object.create(null),s=N(!1,e,ei,"").replace(Zu,"").trimEnd(),u;for(;u=ei.exec(e);){let i=N(!1,u[2],Vp,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...ni,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function ai({comments:e="",pragmas:t={}}){let r=` -`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(c=>ti(c,t[c])).map(c=>`${s} ${c}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let c=t[i[0]];return`${n} ${ti(i[0],c)[0]}${u}`}}let o=e.split(r).map(c=>`${s} ${c}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length>0?s+r:"")+a+u}function ti(e,t){return[...ni,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function zp(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var oi=zp;function Qp(e){let t=oi(e);t&&(e=e.slice(t.length+1));let r=si(e),{pragmas:n,comments:s}=ii(r);return{shebang:t,text:e,pragmas:n,comments:s}}function pi(e){let{shebang:t,text:r,pragmas:n,comments:s}=Qp(e),u=ui(r),i=ai({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} +`}}var Se=Symbol("MODE_BREAK"),it=Symbol("MODE_FLAT"),Ut=Symbol("cursor"),qu=Symbol("DOC_FILL_PRINTED_LENGTH");function Wu(){return{value:"",length:0,queue:[]}}function xp(e,t){return Qn(e,{type:"indent"},t)}function hp(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Wu():t<0?Qn(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Qn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Qn(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let c of n)switch(c.type){case"indent":m(),r.useTabs?p(1):o(r.tabWidth);break;case"stringAlign":m(),s+=c.n,u+=c.n.length;break;case"numberAlign":i+=1,a+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return D(),{...e,value:s,length:u,queue:n};function p(c){s+=" ".repeat(c),u+=r.tabWidth*c}function o(c){s+=" ".repeat(c),u+=c}function m(){r.useTabs?y():D()}function y(){i>0&&p(i),C()}function D(){a>0&&o(a),C()}function C(){i=0,a=0}}function zn(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===Ut){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Ut);return t}function qr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],p=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:o,doc:m}=a.pop(),y=nt(m);switch(y){case et:p.push(m),r-=ze(m);break;case _e:case Pe:{let D=y===_e?m:m.parts;for(let C=D.length-1;C>=0;C--)a.push({mode:o,doc:D[C]});break}case Xe:case Ye:case He:case je:a.push({mode:o,doc:m.contents});break;case rt:r+=zn(p);break;case le:{if(u&&m.break)return!1;let D=m.break?Se:o,C=m.expandedStates&&D===Se?_(!1,m.expandedStates,-1):m.contents;a.push({mode:D,doc:C});break}case xe:{let C=(m.groupId?s[m.groupId]||it:o)===Se?m.breakContents:m.flatContents;C&&a.push({mode:o,doc:C});break}case me:if(o===Se||m.hard)return!0;m.soft||(p.push(" "),r--);break;case Ne:n=!0;break;case Ve:if(n)return!1;break}}return!1}function Zn(e,t){let r={},n=t.printWidth,s=Ju(t.endOfLine),u=0,i=[{ind:Wu(),mode:Se,doc:e}],a=[],p=!1,o=[],m=0;for(Su(e);i.length>0;){let{ind:D,mode:C,doc:c}=i.pop();switch(nt(c)){case et:{let A=s!==` +`?Y(!1,c,` +`,s):c;a.push(A),i.length>0&&(u+=ze(A));break}case _e:for(let A=c.length-1;A>=0;A--)i.push({ind:D,mode:C,doc:c[A]});break;case tt:if(m>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Ut),m++;break;case Xe:i.push({ind:xp(D,t),mode:C,doc:c.contents});break;case Ye:i.push({ind:hp(D,c.n,t),mode:C,doc:c.contents});break;case rt:u-=zn(a);break;case le:switch(C){case it:if(!p){i.push({ind:D,mode:c.break?Se:it,doc:c.contents});break}case Se:{p=!1;let A={ind:D,mode:it,doc:c.contents},T=n-u,S=o.length>0;if(!c.break&&qr(A,i,T,S,r))i.push(A);else if(c.expandedStates){let g=_(!1,c.expandedStates,-1);if(c.break){i.push({ind:D,mode:Se,doc:g});break}else for(let M=1;M=c.expandedStates.length){i.push({ind:D,mode:Se,doc:g});break}else{let R=c.expandedStates[M],j={ind:D,mode:it,doc:R};if(qr(j,i,T,S,r)){i.push(j);break}}}else i.push({ind:D,mode:Se,doc:c.contents});break}}c.id&&(r[c.id]=_(!1,i,-1).mode);break;case Pe:{let A=n-u,T=c[qu]??0,{parts:S}=c,g=S.length-T;if(g===0)break;let M=S[T+0],R=S[T+1],j={ind:D,mode:it,doc:M},I={ind:D,mode:Se,doc:M},U=qr(j,[],A,o.length>0,r,!0);if(g===1){U?i.push(j):i.push(I);break}let P={ind:D,mode:it,doc:R},G={ind:D,mode:Se,doc:R};if(g===2){U?i.push(P,j):i.push(G,I);break}let ue=S[T+2],Q={ind:D,mode:C,doc:{...c,[qu]:T+2}};qr({ind:D,mode:it,doc:[M,R,ue]},[],A,o.length>0,r,!0)?i.push(Q,P,j):U?i.push(Q,G,j):i.push(Q,G,I);break}case xe:case He:{let A=c.groupId?r[c.groupId]:C;if(A===Se){let T=c.type===xe?c.breakContents:c.negate?c.contents:f(c.contents);T&&i.push({ind:D,mode:C,doc:T})}if(A===it){let T=c.type===xe?c.flatContents:c.negate?f(c.contents):c.contents;T&&i.push({ind:D,mode:C,doc:T})}break}case Ne:o.push({ind:D,mode:C,doc:c.contents});break;case Ve:o.length>0&&i.push({ind:D,mode:C,doc:Gn});break;case me:switch(C){case it:if(c.hard)p=!0;else{c.soft||(a.push(" "),u+=1);break}case Se:if(o.length>0){i.push({ind:D,mode:C,doc:c},...o.reverse()),o.length=0;break}c.literal?D.root?(a.push(s,D.root.value),u=D.root.length):(a.push(s),u=0):(u-=zn(a),a.push(s+D.value),u=D.length);break}break;case je:i.push({ind:D,mode:C,doc:c.contents});break;case ve:break;default:throw new Tt(c)}i.length===0&&o.length>0&&(i.push(...o.reverse()),o.length=0)}let y=a.indexOf(Ut);if(y!==-1){let D=a.indexOf(Ut,y+1);if(D===-1)return{formatted:a.filter(T=>T!==Ut).join("")};let C=a.slice(0,y).join(""),c=a.slice(y+1,D).join(""),A=a.slice(D+1).join("");return{formatted:C+c+A,cursorNodeStart:C.length,cursorNodeText:c}}return{formatted:a.join("")}}function gp(e,t,r=0){let n=0;for(let s=r;s{if(i.push(t()),m.tail)return;let{tabWidth:y}=r,D=m.value.raw,C=D.includes(` +`)?Uu(D,y):p;p=C;let c=a[o],A=n[u][o],T=Te(r.originalText,k(m),q(n.quasis[o+1]));if(!T){let g=Zn(c,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` +`)?T=!0:c=g}T&&(d(A)||A.type==="Identifier"||W(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Ae(A)||De(A))&&(c=[f([E,c]),E]);let S=C===0&&D.endsWith(` +`)?he(Number.NEGATIVE_INFINITY,c):xu(c,C,y);i.push(l(["${",S,ke,"}"]))},"quasis"),i.push("`"),i}function Xu(e,t){let r=t("quasi");return st(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ke,r])}function Bp(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(D=>"${"+Zn(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),p=[{hasLineBreak:!1,cells:[]}];for(let D=1;DD.cells.length)),m=Array.from({length:o}).fill(0),y=[{cells:s},...p.filter(D=>D.cells.length>0)];for(let{cells:D}of y.filter(C=>!C.hasLineBreak))for(let[C,c]of D.entries())m[C]=Math.max(m[C],ze(c));return i.push(ke,"`",f([F,b(F,y.map(D=>b(" | ",D.cells.map((C,c)=>D.hasLineBreak?C:C+" ".repeat(m[c]-ze(C))))))]),F,"`"),i}}function bp(e,t){let{node:r}=e,n=t();return d(r)&&(n=l([f([E,n]),E])),["${",n,ke,"}"]}function Xt(e,t){return e.map(r=>bp(r,t),"expressions")}function Gr(e,t){return mt(e,r=>typeof r=="string"?t?Y(!1,r,/(\\*)`/gu,"$1$1\\`"):es(r):r)}function es(e){return Y(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function Pp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var rs=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Yu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ce(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>X(n)&&s==="elements",r,...rs)||e.match(t,r,...rs)}function Hu(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ce(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...rs)}function ts(e,t){return d(e,h.Block|h.Leading,({value:r})=>r===` ${t} `)}function Ur({node:e,parent:t},r){return ts(e,r)||kp(t)&&ts(t,r)||t.type==="ExpressionStatement"&&ts(t,r)}function kp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Ip(e,t,r){let{node:n}=r,s=n.quasis.map(m=>m.value.raw),u=0,i=s.reduce((m,y,D)=>D===0?y:m+"@prettier-placeholder-"+u+++"-id"+y,""),a=await e(i,{parser:"scss"}),p=Xt(r,t),o=Lp(a,p);if(!o)throw new Error("Couldn't insert all the expressions");return["`",f([F,o]),E,"`"]}function Lp(e,t){if(!O(t))return e;let r=0,n=mt(Gt(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?Ie(u):(r++,t[u])));return t.length===r?n:null}function wp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Xr(e){return e.type==="Identifier"&&e.name==="styled"}function Nu(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function Op({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Xr(t.object)||Nu(t);case"CallExpression":return Xr(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Xr(t.callee.object.object)||Nu(t.callee.object))||t.callee.object.type==="CallExpression"&&Xr(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function _p({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function jp(e){if(wp(e)||Op(e)||_p(e)||Yu(e))return Ip}var Vu=jp;async function vp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Xt(r,t),i=[];for(let a=0;a2&&D[0].trim()===""&&D[1].trim()==="",T=C>2&&D[C-1].trim()===""&&D[C-2].trim()==="",S=D.every(M=>/^\s*(?:#[^\n\r]*)?$/u.test(M));if(!m&&/#[^\n\r]*$/u.test(D[C-1]))return null;let g=null;S?g=Mp(D):g=await e(y,{parser:"graphql"}),g?(g=Gr(g,!1),!o&&A&&i.push(""),i.push(g),!m&&T&&i.push("")):!o&&!m&&A&&i.push(""),c&&i.push(c)}return["`",f([F,b(F,i)]),F,"`"]}function Mp(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:b(F,t)}function Rp({node:e,parent:t}){return Ur({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Jp(e){if(Rp(e))return vp}var $u=Jp;var ns=0;async function Ku(e,t,r,n,s){let{node:u}=n,i=ns;ns=ns+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,p=u.quasis.map((S,g,M)=>g===M.length-1?S.value.cooked:S.value.cooked+a(g)).join(""),o=Xt(n,r),m=new RegExp(a(String.raw`(\d+)`),"gu"),y=0,D=await t(p,{parser:e,__onHtmlRoot(S){y=S.children.length}}),C=mt(D,S=>{if(typeof S!="string")return S;let g=[],M=S.split(m);for(let R=0;R1?f(l(C)):l(C),A,"`"]))}function qp(e){return Ur(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Wp=Ku.bind(void 0,"html"),Gp=Ku.bind(void 0,"angular");function Up(e){if(qp(e))return Wp;if(Hu(e))return Gp}var Qu=Up;async function Xp(e,t,r){let{node:n}=r,s=Y(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(p,o)=>"\\".repeat(o.length/2)+"`"),u=Yp(s),i=u!=="";i&&(s=Y(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Gr(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Jr,du(a)],E,"`"]}function Yp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Hp(e){if(Np(e))return Xp}function Np({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var zu=Hp;function Vp(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$p(t))return;let r;for(let n of[Vu,$u,Qu,zu])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&st({embed:!0,...u.label},u)}}function $p({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Zu=Vp;var Kp=/\*\/$/,Qp=/^\/\*\*?/,ni=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,zp=/(^|\s+)\/\/([^\n\r]*)/g,ei=/^(\r?\n)+/,Zp=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ti=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ec=/(\r?\n|^) *\* ?/g,si=[];function ui(e){let t=e.match(ni);return t?t[0].trimStart():""}function ii(e){let t=e.match(ni),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ai(e){let t=` +`;e=Y(!1,e.replace(Qp,"").replace(Kp,""),ec,"$1");let r="";for(;r!==e;)r=e,e=Y(!1,e,Zp,`${t}$1 $2${t}`);e=e.replace(ei,"").trimEnd();let n=Object.create(null),s=Y(!1,e,ti,"").replace(ei,"").trimEnd(),u;for(;u=ti.exec(e);){let i=Y(!1,u[2],zp,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...si,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function oi({comments:e="",pragmas:t={}}){let r=` +`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(o=>ri(o,t[o])).map(o=>`${s} ${o}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let o=t[i[0]];return`${n} ${ri(i[0],o)[0]}${u}`}}let p=e.split(r).map(o=>`${s} ${o}`).join(r)+r;return n+r+(e?p:"")+(e&&i.length>0?s+r:"")+a+u}function ri(e,t){return[...si,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function tc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var pi=tc;function rc(e){let t=pi(e);t&&(e=e.slice(t.length+1));let r=ui(e),{pragmas:n,comments:s}=ai(r);return{shebang:t,text:e,pragmas:n,comments:s}}function ci(e){let{shebang:t,text:r,pragmas:n,comments:s}=rc(e),u=ii(r),i=oi({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t} `:"")+i+(u.startsWith(` `)?` `:` -`)+u}function Zp(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),c=u(a);for(let m of n)s(m)>=o&&u(m)<=c&&i.add(m);return r.slice(o,c)}var ci=Zp;function us(e,t){var u,i,a,o,c,m,D,y,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&nc(r)&&or(e))return!0;if(ec(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let p=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(p&&ie(p,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let p=e.findAncestor(T=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),A=p?p.type==="ExpressionStatement"?p.expression:p.type==="ForStatement"?p.init:p.left:void 0;if(A&&ie(A,T=>T===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let p=e.findAncestor(A=>!Te(A));if(p!==s&&p.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let p=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(p&&ie(p,A=>A===r))return!0}if(r.type==="ObjectExpression"){let p=(o=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(p&&p.type!=="SequenceExpression"&&p.type!=="AssignmentExpression"&&ie(p,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&w(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return li(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!uc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(p,A)=>A==="returnType"&&p.type==="ArrowFunctionExpression")&&rc(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(p,A)=>A==="declarations"&&p.type==="VariableDeclaration",(p,A)=>A==="left"&&p.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&tc(e))return!0;if(r.operator==="|>"&&((c=r.extra)!=null&&c.parenthesized)){let p=e.grandparent;if(p.type==="BinaryExpression"&&p.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Te(r);case"ConditionalExpression":return Te(r)||au(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Te(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:p,type:A}=r;if(!p&&A!=="TSTypeAssertion")return!0;let T=er(p),S=s.operator,B=er(S);return B>T||n==="right"&&B===T||B===T&&!nr(S,p)?!0:B");default:return!1}case"TSFunctionType":if(e.match(p=>p.type==="TSFunctionType",(p,A)=>A==="typeAnnotation"&&p.type==="TSTypeAnnotation",(p,A)=>A==="returnType"&&p.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:p}=r.returnType||r.typeAnnotation;if(p.type==="TSTypePredicate"&&p.typeAnnotation&&(p=p.typeAnnotation.typeAnnotation),p.type==="TSInferType"&&p.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression")||e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypePredicate",(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression"))return!0;let p=s.type==="NullableTypeAnnotation"?e.grandparent:s;return p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="ArrayTypeAnnotation"||n==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&((m=r.returnType)==null?void 0:m.type)==="InferTypeAnnotation"&&((D=r.returnType)==null?void 0:D.typeParameter.bound)||p.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&K(r).some(A=>{var T;return((T=A.typeAnnotation)==null?void 0:T.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let p=e.grandparent;return p.type==="Program"||p.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let p=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&p.type==="ForStatement"&&(p.init===s||p.update===s)||n==="value"&&s.type==="Property"&&p.type==="ObjectPattern"&&p.properties.includes(s)||s.type==="NGChainedExpression")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((y=r.extra)==null?void 0:y.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(sc(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let p=r;for(;p;)switch(p.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":p=p.object;break;case"TaggedTemplateExpression":p=p.tag;break;case"TSNonNullExpression":p=p.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&q(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((C=r.extra)!=null&&C.parenthesized)||U(s)||n==="arguments"&&L(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!U(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!L(s)&&!Ae(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&q(s)}return!1}var ec=v(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function tc(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function rc(e){return tr(e,t=>t.type==="ObjectTypeAnnotation"&&tr(t,r=>r.type==="FunctionTypeAnnotation"))}function nc(e){return se(e)}function or(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(or);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(or);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(or);break;case"UnaryExpression":if(t.prefix)return e.callParent(or);break}return!1}function li(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!us(e,t):!jt(r)||n.type!=="ExportDefaultDeclaration"&&us(e,t)?!1:e.call(()=>li(e,t),...Pr(r))}function sc(e){let{node:t,parent:r,grandparent:n,key:s}=e;return!!((t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression")&&(s==="object"&&r.type==="MemberExpression"||s==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&n.type==="MemberExpression"&&n.object===r)||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression")&&(e.match(void 0,void 0,(u,i)=>i==="callee"&&(u.type==="CallExpression"&&!u.optional||u.type==="NewExpression")||i==="object"&&u.type==="MemberExpression"&&!u.optional)||e.match(void 0,void 0,(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))||e.match(()=>t.type==="CallExpression"||t.type==="MemberExpression",(u,i)=>i==="expression"&&u.type==="TSNonNullExpression",(u,i)=>i==="expression"&&u.type==="ChainExpression",(u,i)=>i==="object"&&u.type==="MemberExpression"))}function is(e){return e.type==="Identifier"?!0:q(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&is(e.object):!1}function uc(e){return e.type==="ChainExpression"&&(e=e.expression),is(e)||L(e)&&!e.optional&&is(e.callee)}var Be=us;function ic(e,t){let r=t-1;r=Ge(e,r,{backwards:!0}),r=Ue(e,r,{backwards:!0}),r=Ge(e,r,{backwards:!0});let n=Ue(e,r,{backwards:!0});return r!==n}var mi=ic;var ac=()=>!0;function as(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function oc(e,t){var m;let r=e.node,n=[as(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let D=te(u,a(r))?te(u,i(r),{backwards:!0})?F:x:" ";n.push(D)}else n.push(F);let c=Ue(u,Ge(u,a(r)));return c!==!1&&te(u,c)&&n.push(F),n}function pc(e,t,r){var c;let n=e.node,s=as(e,t),{printer:u,originalText:i,locStart:a}=t,o=(c=u.isBlockComment)==null?void 0:c.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||te(i,a(n),{backwards:!0})){let m=mi(i,a(n));return{doc:Wn([F,m?F:"",s]),isBlock:o,hasLineSuffix:!0}}return!o||r!=null&&r.hasLineSuffix?{doc:[Wn([" ",s]),Ee],isBlock:o,hasLineSuffix:!0}:{doc:[" ",s],isBlock:o,hasLineSuffix:!1}}function M(e,t,r={}){let{node:n}=e;if(!w(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=ac}=r,a=[];if(e.each(({node:c})=>{c.leading||c.trailing||c.marker!==u||!i(c)||a.push(as(e,t))},"comments"),a.length===0)return"";let o=P(F,a);return s?f([F,o]):o}function os(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:c,trailing:m}=o;c?u.push(oc(e,t)):m&&(a=pc(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function ye(e,t,r){let{leading:n,trailing:s}=os(e,r);return!n&&!s?t:ir(t,u=>[n,u,s])}var ps=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Me=ps;function cs(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Re,ls=class{constructor(t){Ws(this,Re);Gs(this,Re,new Set(t))}getLeadingWhitespaceCount(t){let r=pt(this,Re),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return pt(this,Re).has(t.charAt(0))}hasTrailingWhitespace(t){return pt(this,Re).has(O(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${cs([...pt(this,Re)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=pt(this,Re);return Array.prototype.every.call(t,n=>r.has(n))}};Re=new WeakMap;var yi=ls;var Nr=new yi(` -\r `),ms=e=>e===""||e===x||e===F||e===E;function cc(e,t,r){var _,J,j;let{node:n}=e;if(n.type==="JSXElement"&&gc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(h=>Sc(h)?{type:"JSXText",value:" ",raw:" "}:h);let i=n.children.some(X),a=n.children.filter(h=>h.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,c=ne(s)||i||o||a,m=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',y=m?" ":b([D,E]," "),C=((J=(_=n.openingElement)==null?void 0:_.name)==null?void 0:J.name)==="fbt",p=lc(e,t,r,y,C),A=n.children.some(h=>pr(h));for(let h=p.length-2;h>=0;h--){let W=p[h]===""&&p[h+1]==="",Fe=p[h]===F&&p[h+1]===""&&p[h+2]===F,H=(p[h]===E||p[h]===F)&&p[h+1]===""&&p[h+2]===y,ue=p[h]===y&&p[h+1]===""&&(p[h+2]===E||p[h+2]===F),Z=p[h]===y&&p[h+1]===""&&p[h+2]===y,It=p[h]===E&&p[h+1]===""&&p[h+2]===F||p[h]===F&&p[h+1]===""&&p[h+2]===E;Fe&&A||W||H||Z||It?p.splice(h,2):ue&&p.splice(h+1,2)}for(;p.length>0&&ms(O(!1,p,-1));)p.pop();for(;p.length>1&&ms(p[0])&&ms(p[1]);)p.shift(),p.shift();let T=[];for(let[h,W]of p.entries()){if(W===y){if(h===1&&p[h-1]===""){if(p.length===2){T.push(D);continue}T.push([D,F]);continue}else if(h===p.length-1){T.push(D);continue}else if(p[h-1]===""&&p[h-2]===F){T.push(D);continue}}T.push(W),ne(W)&&(c=!0)}let S=A?qt(T):l(T,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)&&(S=[Un,S,Un]),m)return S;let B=l([s,f([F,S]),F,u]);return c?B:ze([l([s,...p,u]),B])}function lc(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let o=fe(i);if(pr(i)){let c=Nr.split(o,!0);c[0]===""&&(u.push(""),c.shift(),/\n/u.test(c[0])?u.push(fi(s,c[1],i,a)):u.push(n),c.shift());let m;if(O(!1,c,-1)===""&&(c.pop(),m=c.pop()),c.length===0)return;for(let[D,y]of c.entries())D%2===1?u.push(x):u.push(y);m!==void 0?/\n/u.test(m)?u.push(fi(s,O(!1,u,-1),i,a)):u.push(n):u.push(Di(s,O(!1,u,-1),i,a))}else/\n/u.test(o)?o.match(/\n/gu).length>1&&u.push("",F):u.push("",n)}else{let o=r();if(u.push(o),a&&pr(a)){let m=Nr.trim(fe(a)),[D]=Nr.split(m);u.push(Di(s,D,i,a))}else u.push(F)}},"children"),u}function Di(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function fi(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc(e,t,r){let{parent:n}=e;if(mc.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=Be(e,r);return l([u?"":b("("),f([E,t]),E,u?"":b(")")],{shouldBreak:s})}function Dc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(Q(n.value)){let i=fe(n.value),a=N(!1,N(!1,i.slice(1,-1),"'","'"),""",'"'),o=xr(a,t.jsxSingleQuote);a=o==='"'?N(!1,a,'"',"""):N(!1,a,"'","'"),u=e.call(()=>ye(e,Ie(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function fc(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(U(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||X(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),ke,"}"]):l(["{",f([E,r("expression")]),E,ke,"}"])}function Ec(e,t,r){var a,o;let{node:n}=e,s=d(n.name)||d(n.typeParameters)||d(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&Q(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!s&&!d(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(c=>Q(c.value)&&c.value.value.includes(` -`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...Fc(n,t,s)],{shouldBreak:u})}function Fc(e,t,r){return e.selfClosing?[x,"/>"]:Cc(e,t,r)?[">"]:[E,">"]}function Cc(e,t,r){let n=e.attributes.length>0&&d(O(!1,e.attributes,-1),g.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function Ac(e,t,r){let{node:n}=e,s=[];s.push(""),s}function Tc(e,t){let{node:r}=e,n=d(r),s=d(r,g.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function dc(e,t,r){let n=ye(e,cc(e,t,r),t);return yc(e,n,t)}function xc(e,t){let{node:r}=e,n=d(r,g.Line);return[M(e,t,{indent:n}),n?F:""]}function hc(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!zn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return Dc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return P(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return P(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(e,t,r);case"JSXExpressionContainer":return fc(e,t,r);case"JSXFragment":case"JSXElement":return dc(e,t,r);case"JSXOpeningElement":return Ec(e,t,r);case"JSXClosingElement":return Ac(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(e,t);case"JSXEmptyExpression":return xc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me(n,"JSX")}}function gc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!pr(t)}function pr(e){return e.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function Sc(e){return e.type==="JSXExpressionContainer"&&Q(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Fi(e){let{node:t,parent:r}=e;if(!X(t)||!X(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!pr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&Bt(u.expression)}function Bc(e){return Bt(e.node)||Fi(e)}var Xr=Bc;var bc=0;function Yr(e,t,r){var J;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((J=e.root.extra)==null?void 0:J.__isUsingHackPipeline),c=ys(e,r,t,!1,a);if(a)return c;if(o)return l(c);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||q(s)&&!s.computed)return l([f([E,...c]),E]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ae(s),y=De(n.left)&&nr(n.operator,n.left.operator);if(m||Ut(n)&&!y||!Ut(n)&&D)return l(c);if(c.length===0)return"";let C=X(n.right),p=c.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===le),A=c.slice(0,p===-1?1:p+1),T=c.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++bc),B=l([...A,f(T)],{id:S});if(!C)return B;let _=O(!1,c,-1);return l([B,At(_,{groupId:S})])}function ys(e,t,r,n,s){var A;let{node:u}=e;if(!De(u))return[l(t())];let i=[];nr(u.operator,u.left.operator)?i=e.call(T=>ys(T,t,r,!0,s),"left"):i.push(l(t("left")));let a=Ut(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||Pc(e,r))&&!Oe(r.originalText,u.right),c=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",P([x,": "],e.map(()=>he(2,l(t())),"arguments"))])):"",D;if(a)D=[c," ",t("right"),m];else{let S=c==="|>"&&((A=e.root.extra)==null?void 0:A.__isUsingHackPipeline)?e.call(B=>ys(B,t,r,!0,s),"right"):t("right");D=[o?x:"",c,o?" ":x,S,m]}let{parent:y}=e,C=d(u.left,g.Trailing|g.Line),p=C||!(s&&u.type==="LogicalExpression")&&y.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(o?"":" ",p?l(D,{shouldBreak:C}):D),n&&d(u)){let T=Wt(ye(e,i,r));return T.type===Pe?T.parts:Array.isArray(T)?T:[T]}return i}function Ut(e){return e.type!=="LogicalExpression"?!1:!!(se(e.right)&&e.right.properties.length>0||U(e.right)&&e.right.elements.length>0||X(e.right))}var Ci=e=>e.type==="BinaryExpression"&&e.operator==="|";function Pc(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Ci(e.node)&&!e.hasAncestor(r=>!Ci(r)&&r.type!=="JsExpressionRoot")}function Ti(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+ct(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Yr(e,t,r);case"NGChainedExpression":return l(P([";",x],e.map(()=>Ic(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Ai(e)?" ":[";",x],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=Ai(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(s===2||s===3)&&(n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then"||n.key.name==="track"))&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Me(n,"Angular")}}function Ai({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}var kc=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Ic({node:e}){return tr(e,kc)}function Ds(e,t,r){let{node:n}=e;return l([P(x,e.map(r,"decorators")),hi(n,t)?F:x])}function di(e,t,r){return gi(e.node)?[P(F,e.map(r,"declaration","decorators")),F]:""}function xi(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!w(u)||gi(s)||Xr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||hi(n,t);return[e.key==="declaration"&&iu(s)?F:i?Ee:"",P(x,e.map(r,"decorators")),x]}function hi(e,t){return e.decorators.some(r=>te(t.originalText,k(r)))}function gi(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return w(t)&&ht(e,t[0])}var Dt=class extends Error{name="ArgExpansionBailout"};function Lc(e,t,r){let{node:n}=e,s=oe(n);if(s.length===0)return["(",M(e,t),")"];let u=s.length-1;if(_c(s)){let y=["("];return Rt(e,(C,p)=>{y.push(r()),p!==u&&y.push(", ")}),y.push(")"),y}let i=!1,a=[];Rt(e,({node:y},C)=>{let p=r();C===u||(pe(y,t)?(i=!0,p=[p,",",F,F]):p=[p,",",x]),a.push(p)});let o=n.type==="ImportExpression"||n.callee.type==="Import",c=!t.parser.startsWith("__ng_")&&!o&&ae(t,"all")?",":"";function m(){return l(["(",f([x,...a]),c,x,")"],{shouldBreak:!0})}if(i||e.parent.type!=="Decorator"&&lu(s))return m();if(Oc(s)){let y=a.slice(1);if(y.some(ne))return m();let C;try{C=r(Rn(n,0),{expandFirstArg:!0})}catch(p){if(p instanceof Dt)return m();throw p}return ne(C)?[Ee,ze([["(",l(C,{shouldBreak:!0}),", ",...y,")"],m()])]:ze([["(",C,", ",...y,")"],["(",l(C,{shouldBreak:!0}),", ",...y,")"],m()])}if(wc(s,a,t)){let y=a.slice(0,-1);if(y.some(ne))return m();let C;try{C=r(Rn(n,-1),{expandLastArg:!0})}catch(p){if(p instanceof Dt)return m();throw p}return ne(C)?[Ee,ze([["(",...y,l(C,{shouldBreak:!0}),")"],m()])]:ze([["(",...y,C,")"],["(",...y,l(C,{shouldBreak:!0}),")"],m()])}let D=["(",f([E,...a]),b(c),E,")"];return Or(e)?D:l(D,{shouldBreak:a.some(ne)||i})}function cr(e,t=!1){return se(e)&&(e.properties.length>0||d(e))||U(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&cr(e.expression)||Te(e)&&cr(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||jc(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&cr(e.body,!0)||se(e.body)||U(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||X(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function wc(e,t,r){var u,i;let n=O(!1,e,-1);if(e.length===1){let a=O(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=O(!1,e,-2);return!d(n,g.Leading)&&!d(n,g.Trailing)&&cr(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!U(n))&&!(e.length>1&&fs(n,r))}function Oc(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&vc(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Bi(r)&&!cr(r)}function Bi(e){if(e.type==="ParenthesizedExpression")return Bi(e.expression);if(Te(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return Mt(t)&&be(e.expression,1)}return lt(e)&&oe(e).length>1?!1:De(e)?be(e.left,1)&&be(e.right,1):vn(e)||be(e)}function _c(e){return e.length===2?Si(e,0):e.length===3?e[0].type==="Identifier"&&Si(e,1):!1}function Si(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&K(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>d(s))}function jc(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,g.Dangling))}function vc(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Ae(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Q(e.properties[0].value)&&e.properties[0].value.value==="module"}var lr=Lc;var Mc=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&oe(e).length>0);function bi(e,t,r){var c;let n=r("object"),s=Es(e,t,r),{node:u}=e,i=e.findAncestor(m=>!(q(m)||m.type==="TSNonNullExpression")),a=e.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),o=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!q(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(Mc(u.object)||((c=n.label)==null?void 0:c.memberChain));return it(n.label,[n,o?s:l(f([E,s]))])}function Es(e,t,r){let n=r("property"),{node:s}=e,u=V(e);return s.computed?!s.property||Ce(s.property)?[u,"[",n,"]"]:l([u,"[",f([E,n]),E,"]"]):[u,".",n]}function Pi(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Pi(e,t,r),"expression");let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(I){let{originalText:G}=t,ee=yt(G,k(I));return G.charAt(ee)===")"?ee!==!1&&Ot(G,ee+1):pe(I,t)}function a(I){let{node:G}=I;if(G.type==="ChainExpression")return I.call(()=>a(I),"expression");if(L(G)&&(Ft(G.callee)||L(G.callee))){let ee=i(G);u.unshift({node:G,hasTrailingEmptyLine:ee,printed:[ye(I,[V(I),Qe(I,t,r),lr(I,t,r)],t),ee?F:""]}),I.call(qe=>a(qe),"callee")}else Ft(G)?(u.unshift({node:G,needsParens:Be(I,t),printed:ye(I,q(G)?Es(I,t,r):Hr(I,t,r),t)}),I.call(ee=>a(ee),"object")):G.type==="TSNonNullExpression"?(u.unshift({node:G,printed:ye(I,"!",t)}),I.call(ee=>a(ee),"expression")):u.unshift({node:G,printed:r()})}let{node:o}=e;u.unshift({node:o,printed:[V(e),Qe(e,t,r),lr(e,t,r)]}),o.callee&&e.call(I=>a(I),"callee");let c=[],m=[u[0]],D=1;for(;D0&&c.push(m);function C(I){return/^[A-Z]|^[$_]+$/u.test(I)}function p(I){return I.length<=t.tabWidth}function A(I){var qe;let G=(qe=I[1][0])==null?void 0:qe.node.computed;if(I[0].length===1){let xt=I[0][0].node;return xt.type==="ThisExpression"||xt.type==="Identifier"&&(C(xt.name)||s&&p(xt.name)||G)}let ee=O(!1,I[0],-1).node;return q(ee)&&ee.property.type==="Identifier"&&(C(ee.property.name)||G)}let T=c.length>=2&&!d(c[1][0].node)&&A(c);function S(I){let G=I.map(ee=>ee.printed);return I.length>0&&O(!1,I,-1).needsParens?["(",...G,")"]:G}function B(I){return I.length===0?"":f([F,P(F,I.map(S))])}let _=c.map(S),J=_,j=T?3:2,h=c.flat(),W=h.slice(1,-1).some(I=>d(I.node,g.Leading))||h.slice(0,-1).some(I=>d(I.node,g.Trailing))||c[j]&&d(c[j][0].node,g.Leading);if(c.length<=j&&!W&&!c.some(I=>O(!1,I,-1).hasTrailingEmptyLine))return Or(e)?J:l(J);let Fe=O(!1,c[T?1:0],-1).node,H=!L(Fe)&&i(Fe),ue=[S(c[0]),T?c.slice(1,2).map(S):"",H?F:"",B(c.slice(T?2:1))],Z=u.map(({node:I})=>I).filter(L);function It(){let I=O(!1,O(!1,c,-1),-1).node,G=O(!1,_,-1);return L(I)&&ne(G)&&Z.slice(0,-1).some(ee=>ee.arguments.some(_t))}let $t;return W||Z.length>2&&Z.some(I=>!I.arguments.every(G=>be(G)))||_.slice(0,-1).some(ne)||It()?$t=l(ue):$t=[ne(J)||H?Ee:"",ze([J,ue])],it({memberChain:!0},$t)}var ki=Pi;function Vr(e,t,r){var m;let{node:n}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",i=V(e),a=oe(n),o=a.length===1&&Lr(a[0],t.originalText);if(o||Rc(e)||St(n,e.parent)){let D=[];if(Rt(e,()=>{D.push(r())}),!(o&&((m=D[0].label)!=null&&m.embed)))return[s?"new ":"",Ii(e,r),i,Qe(e,t,r),"(",P(", ",D),")"]}if(!u&&!s&&Ft(n.callee)&&!e.call(D=>Be(D,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return ki(e,t,r);let c=[s?"new ":"",Ii(e,r),i,Qe(e,t,r),lr(e,t,r)];return u||L(n.callee)?l(c):c}function Ii(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function Rc(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=oe(t);return t.callee.name==="require"?r.length===1&&Q(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Q(r[0])&&r[1].type==="ArrayExpression":!1}function Tt(e,t,r,n,s,u){let i=Jc(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return l([l(n),s,l(f([x,a]))]);case"never-break-after-operator":return l([l(n),s," ",a]);case"fluid":{let o=Symbol("assignment");return l([l(n),s,l(f(x),{id:o}),ke,At(a,{groupId:o})])}case"break-lhs":return l([n,s," ",l(a)]);case"chain":return[l(n),s,x,a];case"chain-tail":return[l(n),s,f([x,a])];case"chain-tail-arrow-chain":return[l(n),s,a];case"only-left":return n}}function wi(e,t,r){let{node:n}=e;return Tt(e,t,r,r("left"),[" ",n.operator],"right")}function Oi(e,t,r){return Tt(e,t,r,r("id")," =","init")}function Jc(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!$r(i);if(e.match($r,_i,y=>!a||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&$r(i.right)||Oe(t.originalText,i))return"break-after-operator";if(u.type==="ImportAttribute"||i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let m=Bu(n);if(Wc(u)||Xc(u)||Fs(u)&&m)return"break-lhs";let D=Hc(u,n,t);return e.call(()=>qc(e,t,r,D),s)?"break-after-operator":Gc(u)?"break-lhs":!m&&(D||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||Ce(i)||i.type==="ClassExpression")?"never-break-after-operator":"fluid"}function qc(e,t,r,n){let s=e.node;if(De(s)&&!Ut(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!Kc(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:c}=s;return De(c)&&!Ut(c)}let{consequent:a,alternate:o}=s;return a.type==="ConditionalExpression"||o.type==="ConditionalExpression"}case"ClassExpression":return w(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(Q(u)||e.call(()=>ji(e,t,r),...i))}function Wc(e){if(_i(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Ae(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function $r(e){return e.type==="AssignmentExpression"}function _i(e){return $r(e)||e.type==="VariableDeclarator"}function Gc(e){let t=Nc(e);if(w(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Uc=v(["TSTypeAliasDeclaration","TypeAlias"]);function Nc(e){var t;if(Uc(e))return(t=e.typeParameters)==null?void 0:t.params}function Xc(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Li(t.typeAnnotation);return w(r)&&r.length>1&&r.some(n=>w(Li(n))||n.type==="TSConditionalType")}function Fs(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var Yc=v(["TSTypeReference","GenericTypeAnnotation"]);function Li(e){var t;if(Yc(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function ji(e,t,r,n=!1){var i;let{node:s}=e,u=()=>ji(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(L(s)){if((i=Vr(e,t,r).label)!=null&&i.memberChain)return!1;let o=oe(s);return!(o.length===0||o.length===1&&rr(o[0],t))||Vc(s,r)?!1:e.call(u,"callee")}return q(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function Hc(e,t,r){return Ae(e)?(t=Wt(t),typeof t=="string"&&et(t)1)return!0;if(r.length===1){let s=r[0];if(Ne(s)||_r(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(ne(t(n)))return!0}return!1}function $c(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function Kc(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function Je(e,t,r,n,s){let u=e.node,i=K(u),a=s?Qe(e,r,t):"";if(i.length===0)return[a,"(",M(e,r,{filter:p=>ge(r.originalText,k(p))===")"}),")"];let{parent:o}=e,c=St(o),m=Cs(u),D=[];if(fu(e,(p,A)=>{let T=A===i.length-1;T&&u.rest&&D.push("..."),D.push(t()),!T&&(D.push(","),c||m?D.push(" "):pe(i[A],r)?D.push(F,F):D.push(x))}),n&&!Qc(e)){if(ne(a)||ne(D))throw new Dt;return l([ur(a),"(",ur(D),")"])}let y=i.every(p=>!w(p.decorators));return m&&y?[a,"(",...D,")"]:c?[a,"(",...D,")"]:(Ir(o)||ou(o)||o.type==="TypeAlias"||o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="FunctionTypeAnnotation"&&o.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&Mt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"||u.type==="HookTypeAnnotation"?["(",...D,")"]:D:[a,"(",f([E,...D]),b(!Du(u)&&ae(r,"all")?",":""),E,")"]}function Cs(e){if(!e)return!1;let t=K(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&we(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&we(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||se(r.right)&&r.right.properties.length===0||U(r.right)&&r.right.elements.length===0))}function zc(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function ot(e,t){var s;let r=zc(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return K(e).length===1&&(we(r)||ne(t))}function Qc(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function vi(e){let t=K(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}var Zc=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),el=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function tl(e){let{types:t}=e;if(t.some(n=>d(n)))return!1;let r=t.find(n=>el(n));return r?t.every(n=>n===r||Zc(n)):!1}function As(e){return Mt(e)||we(e)?!0:Ne(e)?tl(e):!1}function Mi(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[$(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Kr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[$(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Tt(e,t,r,u," =",i),n]}function zr(e,t,r){let n=!1;return l(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let o=r();if(s)return o;let c=we(i),m=we(u);return m&&c?[" & ",n?f(o):o]:!m&&!c?f([" &",x,o]):(a>1&&(n=!0),[" & ",a>1?f(o):o])},"types"))}function Qr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&(s.type!=="TSConditionalType"||!t.experimentalTernaries)&&(s.type!=="ConditionalTypeAnnotation"||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Oe(t.originalText,n)),i=As(n),a=e.map(m=>{let D=r();return i||(D=he(2,D)),ye(m,D,t)},"types");if(i)return P(" | ",a);let o=u&&!Oe(t.originalText,n),c=[b([o?x:"","| "]),P([x,"| "],a)];return Be(e,t)?l([f(c),E]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?l([f([b(["(",E]),c]),E,b(")")]):l(u?f(c):c)}function rl(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Ir(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&ht(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function Zr(e,t,r){let{node:n}=e,s=[Nt(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=Je(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(rl(e)?" => ":": ",r("returnType")):i.push(Y(e,r,n.returnType?"returnType":"typeAnnotation")),ot(n,i)&&(u=l(u)),s.push(u,i),l(s)}function en(e,t,r){return[r("objectType"),V(e),"[",r("indexType"),"]"]}function tn(e,t,r){return["infer ",r("typeParameter")]}function Ts(e,t,r){let{node:n}=e;return[n.postfix?"":r,Y(e,t),n.postfix?r:""]}function rn(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function nn(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var nl=new WeakSet;function Y(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Ri,r);(u==="=>"||u===":"&&d(n,g.Leading))&&(s=!0),nl.add(n)}return s?[" ",t(r)]:t(r)}var Ri=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function sn(e,t,r){let n=Ri(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function un(e){return[e("elementType"),"[]"]}function an({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function on(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Y(e,t)]:""]}function V(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||q(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function pn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var sl=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function $(e){let{node:t}=e;return t.declare||sl.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var ul=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Nt({node:e}){return e.abstract||ul.has(e.type)?"abstract ":""}function Qe(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Hr(e,t,r){return["::",r("callee")]}function ft(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:f([x,t])}function cn(e,t){return["...",t("argument"),Y(e,t)]}function Xt(e){return e.accessibility?e.accessibility+" ":""}function il(e,t,r,n){let{node:s}=e,u=s.inexact?"...":"";return d(s,g.Dangling)?l([r,u,M(e,t,{indent:!0}),E,n]):[r,u,n]}function Yt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",o=n[a];if(o.length===0)s.push(il(e,t,u,i));else{let c=O(!1,o,-1),m=(c==null?void 0:c.type)!=="RestElement"&&!n.inexact,D=c===null,y=Symbol("array"),C=!t.__inJestEach&&o.length>1&&o.every((T,S,B)=>{let _=T==null?void 0:T.type;if(!U(T)&&!se(T))return!1;let J=B[S+1];if(J&&_!==J.type)return!1;let j=U(T)?"elements":"properties";return T[j]&&T[j].length>1}),p=fs(n,t),A=m?D?",":ae(t)?p?b(",","",{groupId:y}):b(","):"":"";s.push(l([u,f([E,p?ol(e,t,r,A):[al(e,t,a,n.inexact,r),A],M(e,t)]),E,i],{shouldBreak:C,id:y}))}return s.push(V(e),Y(e,r)),s}function fs(e,t){return U(e)&&e.elements.length>1&&e.elements.every(r=>r&&(Ce(r)||jn(r)&&!d(r.argument))&&!d(r,g.Trailing|g.Line,n=>!te(t.originalText,R(n),{backwards:!0})))}function Ji({node:e},{originalText:t}){let r=s=>Lt(t,wt(t,s)),n=s=>t[s]===","?s:n(r(s+1));return Ot(t,n(k(e)))}function al(e,t,r,n,s){let u=[];return e.each(({node:i,isLast:a})=>{u.push(i?l(s()):""),(!a||n)&&u.push([",",x,i&&Ji(e,t)?E:""])},r),n&&u.push("..."),u}function ol(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(Ji(e,t)?[F,F]:d(i,g.Leading|g.Line)?F:x)},"elements"),qt(s)}var qi=new Proxy(()=>{},{get:()=>qi}),ln=qi;var pl=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\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0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,cl=e=>pl.test(e),Wi=cl;function ll(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Ze=ll;var mn=new WeakMap;function Ui(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Gi(e,t){return t.parser==="json"||t.parser==="jsonc"||!Q(e.key)||tt(fe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Wi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Ui(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function ml(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Ce(r)&&Ui(Ze(fe(r)))&&String(r.value)===Ze(fe(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&mn.get(e.parent))}function Et(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!mn.has(s)){let i=e.siblings.some(a=>!a.computed&&Q(a.key)&&!Gi(a,t));mn.set(s,i)}if(ml(e,t)){let i=tt(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>ye(a,i,t),"key")}return Gi(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!mn.get(s))?e.call(i=>ye(i,/^\d/u.test(u.value)?Ze(u.value):u.value,t),"key"):r("key")}function yn(e,t,r){let{node:n}=e;return n.shorthand?r("value"):Tt(e,t,r,Et(e,t,r),":","value")}var yl=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&>(r));function Dn(e,t,r,n){if(yl(e))return fn(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;L(m)&&(oe(m).length>1||K(s).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(u=!0)}let i=[$(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=Je(e,t,r,u),o=Ht(e,t),c=ot(s,o);return i.push(Qe(e,r,t),l([c?l(a):a,o]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function mr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(ln.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(Et(e,t,r),n.optional||n.key.optional?"?":"",n===u?fn(e,t,r):r("value")),i}function fn(e,t,r){let{node:n}=e,s=Je(e,r,t),u=Ht(e,r),i=vi(n),a=ot(n,u),o=[Qe(e,t,r),l([i?l(s,{shouldBreak:!0}):a?l(s):s,u])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function Dl(e){let t=K(e);return t.length===1&&!e.typeParameters&&!d(e,g.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function En(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Dl(r)}return!1}function Ht(e,t){let{node:r}=e,s=[Y(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function Ni(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let o=r("argument");fl(t,n.argument)?o=["(",f([F,o]),F,")"]:(De(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=l([b("("),f([E,o]),E,b(")")])),u.push(" ",o)}let i=d(n,g.Dangling),a=s&&i&&d(n,g.Last|g.Line);return a&&u.push(s),i&&u.push(" ",M(e,t)),a||u.push(s),u}function Xi(e,t,r){return["return",Ni(e,t,r)]}function Yi(e,t,r){return["throw",Ni(e,t,r)]}function fl(e,t){if(Oe(e.originalText,t)||d(t,g.Leading,r=>de(e.originalText,R(r),k(r)))&&!X(t))return!0;if(jt(t)){let r=t,n;for(;n=uu(r);)if(r=n,Oe(e.originalText,r))return!0}return!1}var ds=new WeakMap;function Hi(e){return ds.has(e)||ds.set(e,e.type==="ConditionalExpression"&&!ie(e,t=>t.type==="ObjectExpression")),ds.get(e)}var Vi=e=>e.type==="SequenceExpression";function $i(e,t,r,n={}){let s=[],u,i=[],a=!1,o=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",c;(function T(){let{node:S}=e,B=El(e,t,r,n);if(s.length===0)s.push(B);else{let{leading:_,trailing:J}=os(e,t);s.push([_,B]),i.unshift(J)}o&&(a||(a=S.returnType&&K(S).length>0||S.typeParameters||K(S).some(_=>_.type!=="Identifier"))),!o||S.body.type!=="ArrowFunctionExpression"?(u=r("body",n),c=S.body):e.call(T,"body")})();let m=!Oe(t.originalText,c)&&(Vi(c)||Fl(c,u,t)||!a&&Hi(c)),D=e.key==="callee"&<(e.parent),y=Symbol("arrow-chain"),C=Cl(e,n,{signatureDocs:s,shouldBreak:a}),p,A=!1;return o&&(D||n.assignmentLayout)&&(A=!0,p=n.assignmentLayout==="chain-tail-arrow-chain"||D&&!m),u=Al(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:c,shouldPutBodyOnSameLine:m}),l([l(A?f([E,C]):C,{shouldBreak:p,id:y})," =>",o?At(u,{groupId:y}):l(u),o&&D?b(E,"",{groupId:y}):""])}function El(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),En(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,o=Ht(e,r);if(a){if(ne(o))throw new Dt;o=l(ur(o))}u.push(l([Je(e,r,t,a,!0),o]))}let i=M(e,t,{filter(a){let o=yt(t.originalText,k(a));return o!==!1&&t.originalText.slice(o,o+2)==="=>"}});return i&&u.push(" ",i),u}function Fl(e,t,r){var n,s;return U(e)||se(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||X(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||Lr(e,r.originalText))}function Cl(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&<(s)||De(s)?l([r[0]," =>",f([x,P([" =>",x],r.slice(1))])],{shouldBreak:n}):u==="callee"&<(s)||t.assignmentLayout?l(P([" =>",x],r),{shouldBreak:n}):l(f(P([" =>",x],r)),{shouldBreak:n})}function Al(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:o}=e,c=r.expandLastArg&&ae(t,"all")?b(","):"",m=(r.expandLastArg||o.type==="JSXExpressionContainer")&&!d(a)?E:"";return i&&Hi(u)?[" ",l([b("","("),f([E,n]),b("",")"),c,m]),s]:(Vi(u)&&(n=l(["(",f([E,n]),E,")"])),i?[" ",n,s]:[f([x,n,s]),c,m])}var Tl=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let s=t[n];if(r(s,n,t))return s}}},Ki=Tl;function yr(e,t,r,n){let{node:s}=e,u=[],i=Ki(!1,s[n],a=>a.type!=="EmptyStatement");return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(F),pe(a,t)&&u.push(F)))},n),u}function Fn(e,t,r){let n=dl(e,t,r),{node:s,parent:u}=e;if(s.type==="Program"&&(u==null?void 0:u.type)!=="ModuleExpression")return n?[n,F]:"";let i=[];if(s.type==="StaticBlock"&&i.push("static "),i.push("{"),n)i.push(f([F,n]),F);else{let a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ComponentDeclaration"||u.type==="HookDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="ModuleExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||s.type==="StaticBlock"||i.push(F)}return i.push("}"),i}function dl(e,t,r){let{node:n}=e,s=w(n.directives),u=n.body.some(o=>o.type!=="EmptyStatement"),i=d(n,g.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(yr(e,t,r,"directives")),(u||i)&&(a.push(F),pe(O(!1,n.directives,-1),t)&&a.push(F))),u&&a.push(yr(e,t,r,"body")),i&&a.push(M(e,t)),a}function xl(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var Cn=xl;function hl(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function zi(e,t,r){let{node:n}=e;return l([n.variance?r("variance"):"","[",f([r("keyTparam")," in ",r("sourceType")]),"]",hl(n.optional),": ",r("propType")])}function xs(e,t){return e==="+"||e==="-"?e+t:t}function Qi(e,t,r){let{node:n}=e,s=de(t.originalText,R(n),R(n.typeParameter));return l(["{",f([t.bracketSpacing?x:E,l([r("typeParameter"),n.optional?xs(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?b(";"):""]),M(e,t),t.bracketSpacing?x:E,"}"],{shouldBreak:s})}var Dr=Cn("typeParameters");function gl(e,t,r){let{node:n}=e;return K(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Pt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=St(e.grandparent),i=e.match(c=>!(c[n].length===1&&we(c[n][0])),void 0,(c,m)=>m==="typeAnnotation",c=>c.type==="Identifier",Fs);if(s[n].length===0||!i&&(u||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||As(s[n][0]))))return["<",P(", ",e.map(r,n)),Sl(e,t),">"];let o=s.type==="TSTypeParameterInstantiation"?"":gl(e,t,n)?",":ae(t)?b(","):"";return l(["<",f([E,P([",",x],e.map(r,n))]),o,E,">"],{id:Dr(s)})}function Sl(e,t){let{node:r}=e;if(!d(r,g.Dangling))return"";let n=!d(r,g.Line),s=M(e,t,{indent:!n});return n?s:[s,F]}function An(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(xs(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(Y(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",l(f(x),{id:a}),ke,At(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),l(u)}var Zi=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Tn(e,t,r){let{node:n}=e,s=[$(e),Nt(e),"class"],u=d(n.id,g.Trailing)||d(n.typeParameters,g.Trailing)||d(n.superClass)||w(n.extends)||w(n.mixins)||w(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let o=[bl(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],c=e.call(m=>["extends ",ye(m,o,t)],"superClass");u?a.push(x,l(c)):a.push(" ",c)}else a.push(hs(e,t,r,"extends"));if(a.push(hs(e,t,r,"mixins"),hs(e,t,r,"implements")),u){let o;ta(n)?o=[...i,f(a)]:o=f([...i,a]),s.push(l(o,{id:ea(n)}))}else s.push(...i,...a);return s.push(" ",r("body")),s}var ea=Cn("heritageGroup");function gs(e){return b(F,"",{groupId:ea(e)})}function Bl(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function ta(e){return e.typeParameters&&!d(e.typeParameters,g.Trailing|g.Line)&&!Bl(e)}function hs(e,t,r,n){let{node:s}=e;if(!w(s[n]))return"";let u=M(e,t,{marker:n});return[ta(s)?b(" ",x,{groupId:Dr(s.typeParameters)}):x,u,u&&F,n,l(f([x,P([",",x],e.map(r,n))]))]}function bl(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?l(b(["(",f([E,n]),E,")"],n)):n}function dn(e,t,r){let{node:n}=e,s=[];return w(n.decorators)&&s.push(Ds(e,t,r)),s.push(Xt(n)),n.static&&s.push("static "),s.push(Nt(e)),n.override&&s.push("override "),s.push(mr(e,t,r)),s}function xn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";w(n.decorators)&&s.push(Ds(e,t,r)),s.push(Xt(n),$(e)),n.static&&s.push("static "),s.push(Nt(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(Et(e,t,r),V(e),pn(e),Y(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[Tt(e,t,r,s," =",i?void 0:"value"),u]}function ra(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&Zi(u)&&Pl(u,i)&&s.push(";"),a||(s.push(F),pe(u,t)&&s.push(F))},"body"),d(n,g.Dangling)&&s.push(M(e,t)),[w(n.body)?gs(e.parent):"","{",s.length>0?[f([F,s]),F]:"","}"]}function Pl(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(Zi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}function na(e,t){if(t.semi||Ss(e,t)||bs(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>sa(e,t),"expression"))}function sa(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!En(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(X(r))return!0}return Be(e,t)?!0:jt(r)?e.call(()=>sa(e,t),...Pr(r)):!1}function Ss({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&X(e.expression)&&t.type==="Program"&&t.body.length===1}function Bs(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return Bs(e.object)}return!1;case"Identifier":return!0;default:return!1}}function bs({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function ua(e,t,r){let n=[r("expression")];return bs(e,t)?Bs(e.node.expression)&&n.push(";"):Ss(e,t)||t.semi&&n.push(";"),n}function ia(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=P([",",x],n);return t.__isVueForBindingLeft?["(",f([E,l(s)]),E,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return P([",",x],n)}}function pa(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return aa(r);case"BigIntLiteral":return hn(r.extra.raw);case"NumericLiteral":return Ze(r.extra.raw);case"StringLiteral":return Ie(tt(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return Ze(r.value)+"m";case"DirectiveLiteral":return oa(r.extra.raw,t);case"Literal":{if(r.regex)return aa(r.regex);if(r.bigint)return hn(r.raw);if(r.decimal)return Ze(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?Ze(r.raw):typeof n=="string"?kl(e)?oa(r.raw,t):Ie(tt(r.raw,t)):String(n)}}}function kl(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function hn(e){return e.toLowerCase()}function aa({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function oa(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function Il(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let u=R(s);if(u>r)break;let i=k(s);if(ie.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function gn(e,t,r){let{node:n}=e,s=[di(e,t,r),$(e),"export",la(n)?" default":""],{declaration:u,exported:i}=n;return d(n,g.Dangling)&&(s.push(" ",M(e,t)),wr(n)&&s.push(F)),u?s.push(" ",r("declaration")):(s.push(Ol(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(ya(e,t,r)),s.push(ma(e,t,r),fa(e,t,r))),s.push(wl(n,t)),s}var Ll=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function wl(e,t){return t.semi&&(!e.declaration||la(e)&&!Ll(e.declaration))?";":""}function Ps(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function ks(e,t){return Ps(e.importKind,t)}function Ol(e){return Ps(e.exportKind)}function ma(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Da(n,t)&&s.push(" from"),s.push(" ",r("source")),s}function ya(e,t,r){let{node:n}=e;if(!Da(n,t))return"";let s=[" "];if(w(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Me(n,"specifier")},"specifiers"),s.push(P(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(o=>d(o))?s.push(l(["{",f([t.bracketSpacing?x:E,P([",",x],i)]),b(ae(t)?",":""),t.bracketSpacing?x:E,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Da(e,t){return e.type!=="ImportDeclaration"||w(e.specifiers)||e.importKind==="type"?!0:fr(t,R(e),R(e.source)).trimEnd().endsWith("from")}function _l(e,t){var n,s;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=fr(t,k(e.source),(s=e.attributes)!=null&&s[0]?R(e.attributes[0]):k(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||w(e.attributes)?"with":void 0}function fa(e,t,r){let{node:n}=e;if(!n.source)return"";let s=_l(n,t);if(!s)return"";let u=[` ${s} {`];return w(n.attributes)&&(t.bracketSpacing&&u.push(" "),u.push(P(", ",e.map(r,"attributes"))),t.bracketSpacing&&u.push(" ")),u.push("}"),u}function Ea(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",o=n[i],c=n[a],m="",D="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":o&&(m=r(i)),c&&!jl(n)&&(D=r(a)),[Ps(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&D?" as ":"",D]}function jl(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!eu(t,r))return!1;if(Q(t))return t.value===r.value&&fe(t)===fe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function dt(e,t,r){var j;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumBigIntBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let o=a.flatMap(h=>e.map(({node:W})=>({node:W,printed:r(),loc:R(W)}),h));a.length>1&&o.sort((h,W)=>h.loc-W.loc);let{parent:c,key:m}=e,D=u&&m==="body"&&(c.type==="InterfaceDeclaration"||c.type==="DeclareInterface"||c.type==="DeclareClass"),y=s.type==="TSInterfaceBody"||i||D||s.type==="ObjectPattern"&&c.type!=="FunctionDeclaration"&&c.type!=="FunctionExpression"&&c.type!=="ArrowFunctionExpression"&&c.type!=="ObjectMethod"&&c.type!=="ClassMethod"&&c.type!=="ClassPrivateMethod"&&c.type!=="AssignmentPattern"&&c.type!=="CatchClause"&&s.properties.some(h=>h.value&&(h.value.type==="ObjectPattern"||h.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&o.length>0&&de(t.originalText,R(s),o[0].loc),C=D?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?b(n,";"):",",p=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",A=s.exact?"|}":"}",T=[],S=o.map(h=>{let W=[...T,l(h.printed)];return T=[C,x],(h.node.type==="TSPropertySignature"||h.node.type==="TSMethodSignature"||h.node.type==="TSConstructSignatureDeclaration"||h.node.type==="TSCallSignatureDeclaration")&&d(h.node,g.PrettierIgnore)&&T.shift(),pe(h.node,t)&&T.push(F),W});if(s.inexact||s.hasUnknownMembers){let h;if(d(s,g.Dangling)){let W=d(s,g.Line);h=[M(e,t),W||te(t.originalText,k(O(!1,ct(s),-1)))?F:x,"..."]}else h=["..."];S.push([...T,...h])}let B=(j=O(!1,o,-1))==null?void 0:j.node,_=!(s.inexact||s.hasUnknownMembers||B&&(B.type==="RestElement"||(B.type==="TSPropertySignature"||B.type==="TSCallSignatureDeclaration"||B.type==="TSMethodSignature"||B.type==="TSConstructSignatureDeclaration")&&d(B,g.PrettierIgnore))),J;if(S.length===0){if(!d(s,g.Dangling))return[p,A,Y(e,r)];J=l([p,M(e,t,{indent:!0}),E,A,V(e),Y(e,r)])}else J=[D&&w(s.properties)?gs(c):"",p,f([t.bracketSpacing?x:E,...S]),b(_&&(C!==","||ae(t))?C:""),t.bracketSpacing?x:E,A,V(e),Y(e,r)];return e.match(h=>h.type==="ObjectPattern"&&!w(h.decorators),Is)||we(s)&&(e.match(void 0,(h,W)=>W==="typeAnnotation",(h,W)=>W==="typeAnnotation",Is)||e.match(void 0,(h,W)=>h.type==="FunctionTypeParam"&&W==="typeAnnotation",Is))||!y&&e.match(h=>h.type==="ObjectPattern",h=>h.type==="AssignmentExpression"||h.type==="VariableDeclarator")?J:l(J,{shouldBreak:y})}function Is(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Cs(e)}function vl(e){let t=[e];for(let r=0;ry[H]===n),p=y.type===n.type&&!C,A,T,S=0;do T=A||n,A=e.getParentNode(S),S++;while(A&&A.type===n.type&&a.every(H=>A[H]!==T));let B=A||y,_=T;if(s&&(X(n[a[0]])||X(o)||X(c)||vl(_))){D=!0,p=!0;let H=Z=>[b("("),f([E,Z]),E,b(")")],ue=Z=>Z.type==="NullLiteral"||Z.type==="Literal"&&Z.value===null||Z.type==="Identifier"&&Z.name==="undefined";m.push(" ? ",ue(o)?r(u):H(r(u))," : ",c.type===n.type||ue(c)?r(i):H(r(i)))}else{let H=Z=>t.useTabs?f(r(Z)):he(2,r(Z)),ue=[x,"? ",o.type===n.type?b("","("):"",H(u),o.type===n.type?b("",")"):"",x,": ",H(i)];m.push(y.type!==n.type||y[i]===n||C?ue:t.useTabs?Mr(f(ue)):he(Math.max(0,t.tabWidth-2),ue))}let J=[u,i,...a].some(H=>d(n[H],ue=>re(ue)&&de(t.originalText,R(ue),k(ue)))),j=H=>y===B?l(H,{shouldBreak:J}):J?[H,Ee]:H,h=!D&&(q(y)||y.type==="NGPipeExpression"&&y.left===n)&&!y.computed,W=Jl(e),Fe=j([Ml(e,t,r),p?m:f(m),s&&h&&!W?E:""]);return C||W?l([f([E,Fe]),E]):Fe}function ql(e,t){return(q(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Wl(e,t,r,n){return[...e.map(u=>ct(u)),ct(t),ct(r)].flat().some(u=>re(u)&&de(n.originalText,R(u),k(u)))}var Gl=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Ul(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let u=e.getParentNode(s);if(u.type==="ChainExpression"&&u.expression===n||L(u)&&u.callee===n||q(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Te(u)&&u.expression===n?(r=e.getParentNode(s+1),n=u):r=u}return n===t?!1:r[Gl.get(r.type)]===n}var Ls=e=>[b("("),f([E,e]),E,b(")")];function Vt(e,t,r,n){if(!t.experimentalTernaries)return Fa(e,t,r);let{node:s}=e,u=s.type==="ConditionalExpression",i=s.type==="TSConditionalType"||s.type==="ConditionalTypeAnnotation",a=u?"consequent":"trueType",o=u?"alternate":"falseType",c=u?["test"]:["checkType","extendsType"],m=s[a],D=s[o],y=c.map(We=>s[We]),{parent:C}=e,p=C.type===s.type,A=p&&c.some(We=>C[We]===s),T=p&&C[o]===s,S=m.type===s.type,B=D.type===s.type,_=B||T,J=t.tabWidth>2||t.useTabs,j,h,W=0;do h=j||s,j=e.getParentNode(W),W++;while(j&&j.type===s.type&&c.every(We=>j[We]!==h));let Fe=j||C,H=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(C.type==="AssignmentExpression"||C.type==="VariableDeclarator"||C.type==="ClassProperty"||C.type==="PropertyDefinition"||C.type==="ClassPrivateProperty"||C.type==="ObjectProperty"||C.type==="Property"),ue=(C.type==="ReturnStatement"||C.type==="ThrowStatement")&&!(S||B),Z=u&&Fe.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",It=Ul(e),$t=ql(s,C),I=i&&Be(e,t),G=J?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ee=Wl(y,m,D,t)||S||B,qe=!_&&!p&&!i&&(Z?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:rr(m,t)&&Mn(s.test,3)),xt=_||T||i&&!p||p&&u&&Mn(s.test,1)||qe,js=[];!S&&d(m,g.Dangling)&&e.call(We=>{js.push(M(We,t),F)},"consequent");let Kt=[];d(s.test,g.Dangling)&&e.call(We=>{Kt.push(M(We,t))},"test"),!B&&d(D,g.Dangling)&&e.call(We=>{Kt.push(M(We,t))},"alternate"),d(s,g.Dangling)&&Kt.push(M(e,t));let vs=Symbol("test"),Ma=Symbol("consequent"),Fr=Symbol("test-and-consequent"),Ra=u?[Ls(r("test")),s.test.type==="ConditionalExpression"?Ee:""]:[r("checkType")," ","extends"," ",s.extendsType.type==="TSConditionalType"||s.extendsType.type==="ConditionalTypeAnnotation"||s.extendsType.type==="TSMappedType"?r("extendsType"):l(Ls(r("extendsType")))],Ms=l([Ra," ?"],{id:vs}),Ja=r(a),Cr=f([S||Z&&(X(m)||p||_)?F:x,js,Ja]),qa=xt?l([Ms,_?Cr:b(Cr,l(Cr,{id:Ma}),{groupId:vs})],{id:Fr}):[Ms,Cr],kn=r(o),Rs=qe?b(kn,Mr(Ls(kn)),{groupId:Fr}):kn,zt=[qa,Kt.length>0?[f([F,Kt]),F]:B?F:qe?b(x," ",{groupId:Fr}):x,":",B?" ":J?xt?b(G,b(_||qe?" ":G," "),{groupId:Fr}):b(G," "):" ",B?Rs:l([f(Rs),Z&&!qe?E:""]),$t&&!It?E:"",ee?Ee:""];return H&&!ee?l(f([E,l(zt)])):H||ue?l(f(zt)):It||i&&A?l([f([E,zt]),I?E:""]):C===Fe?l(zt):zt}function Ca(e,t,r,n){let{node:s}=e;if(kr(s))return pa(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),F];case"File":return ia(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return ua(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(se(s.expression)||U(s.expression))?["(",r("expression"),")"]:l(["(",f([E,r("expression")]),E,")"]);case"AssignmentExpression":return wi(e,t,r);case"VariableDeclarator":return Oi(e,t,r);case"BinaryExpression":case"LogicalExpression":return Yr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return bi(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(l(f([E,Hr(e,t,r)]))),i;case"Identifier":return[s.name,V(e),pn(e),Y(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return cn(e,r);case"FunctionDeclaration":case"FunctionExpression":return Dn(e,r,t,n);case"ArrowFunctionExpression":return $i(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(L(a)&&a.callee===s||q(a)&&a.object===s){i=[f([E,...i]),E];let o=e.findAncestor(c=>c.type==="AwaitExpression"||c.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!ie(o.argument,c=>c===s))return l(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return gn(e,t,r);case"ImportDeclaration":return ca(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ea(e,t,r);case"ImportAttribute":return yn(e,t,r);case"Import":return"import";case"Program":case"BlockStatement":case"StaticBlock":return Fn(e,t,r);case"ClassBody":return ra(e,t,r);case"ThrowStatement":return Yi(e,t,r);case"ReturnStatement":return Xi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Vr(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return dt(e,t,r);case"Property":return gt(s)?mr(e,t,r):yn(e,t,r);case"ObjectProperty":return yn(e,t,r);case"ObjectMethod":return mr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Yt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let o=[];return e.each(({isFirst:c})=>{c?o.push(r()):o.push(",",f([x,r()]))},"expressions"),l(o)}return l(P([",",x],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/u.test(s.operator)&&i.push(" "),d(s.argument)?i.push(l(["(",f([E,r("argument")]),E,")"])):i.push(r("argument")),i;case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return Vt(e,t,r,n);case"VariableDeclaration":{let a=e.map(r,"declarations"),o=e.parent,c=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",m=s.declarations.some(y=>y.init),D;return a.length===1&&!d(s.declarations[0])?D=a[0]:a.length>0&&(D=f(a[0])),i=[$(e),s.kind,D?[" ",D]:"",f(a.slice(1).map(y=>[",",m&&!c?F:x,y]))],c&&o.body!==s||i.push(u),l(i)}case"WithStatement":return l(["with (",r("object"),")",ft(s.body,r("body"))]);case"IfStatement":{let a=ft(s.consequent,r("consequent")),o=l(["if (",l([f([E,r("test")]),E]),")",a]);if(i.push(o),s.alternate){let c=d(s.consequent,g.Trailing|g.Line)||wr(s),m=s.consequent.type==="BlockStatement"&&!c;i.push(m?" ":F),d(s,g.Dangling)&&i.push(M(e,t),c?F:" "),i.push("else",l(ft(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=ft(s.body,r("body")),o=M(e,t),c=o?[o,E]:"";return!s.init&&!s.test&&!s.update?[c,l(["for (;;)",a])]:[c,l(["for (",l([f([E,r("init"),";",x,r("test"),";",x,r("update")]),E]),")",a])]}case"WhileStatement":return l(["while (",l([f([E,r("test")]),E]),")",ft(s.body,r("body"))]);case"ForInStatement":return l(["for (",r("left")," in ",r("right"),")",ft(s.body,r("body"))]);case"ForOfStatement":return l(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",ft(s.body,r("body"))]);case"DoWhileStatement":{let a=ft(s.body,r("body"));return i=[l(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(F),i.push("while (",l([f([E,r("test")]),E]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,c=>!re(c)||c.leading&&te(t.originalText,k(c))||c.trailing&&te(t.originalText,R(c),{backwards:!0})),o=r("param");return["catch ",a?["(",f([E,o]),E,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[l(["switch (",f([E,r("discriminant")]),E,")"])," {",s.cases.length>0?f([F,P(F,e.map(({node:a,isLast:o})=>[r(),!o&&pe(a,t)?F:""],"cases"))]):"",F,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,g.Dangling)&&i.push(" ",M(e,t));let a=s.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=yr(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:f([F,o]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return Tn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return dn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return xn(e,t,r);case"TemplateElement":return Ie(s.value.raw);case"TemplateLiteral":return qr(e,r,t);case"TaggedTemplateExpression":return Uu(e,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Me(s,"ESTree")}}function Sn(e,t,r){let{parent:n,node:s,key:u}=e,i=[r("expression")];switch(s.type){case"AsConstExpression":i.push(" as const");break;case"AsExpression":case"TSAsExpression":i.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":i.push(" satisfies ",r("typeAnnotation"));break}return u==="callee"&&L(n)||u==="object"&&q(n)?l([f([E,...i]),E]):i}function Aa(e,t,r){let{node:n}=e,s=[$(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let u=Nl(e,r,t);return n.rendersType?s.push(l([u," ",r("rendersType")])):s.push(l([u])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function Nl(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",M(e,r,{filter:i=>ge(r.originalText,k(i))===")"}),")"];let u=[];return Yl(e,(i,a)=>{let o=a===s.length-1;o&&n.rest&&u.push("..."),u.push(t()),!o&&(u.push(","),pe(s[a],r)?u.push(F,F):u.push(x))}),["(",f([E,...u]),b(ae(r,"all")&&!Xl(n,s)?",":""),E,")"]}function Xl(e,t){var r;return e.rest||((r=O(!1,t,-1))==null?void 0:r.type)==="RestElement"}function Yl(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function Ta(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function da(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function xa(e,t,r){return dt(e,r,t)}function Bn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function ha(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumBigIntBody":s="bigint";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",xa(e,t,r)]}function bn(e,t,r){let{node:n}=e;return[$(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?xa(e,t,r):t("body")]}function Sa(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let u=Je(e,r,t,!1,!0),i=Ht(e,r),a=ot(n,i);return s.push(l([a?l(u):u,i]),n.body?" ":"",r("body")),s}function Ba(e,t,r){let{node:n}=e,s=[$(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function ga(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function ba(e,t,r){let{node:n}=e,s=[];s.push(ga(e)?"":"hook ");let u=Je(e,r,t,!1,!0),i=[];return i.push(ga(e)?": ":" => ",r("returnType")),ot(n,i)&&(u=l(u)),s.push(u,i),l(s)}function Pn(e,t,r){let{node:n}=e,s=[$(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,g.Trailing|g.Line);return w(n.extends)&&i.push(a?b(" ",x,{groupId:Dr(n.typeParameters)}):x,"extends ",(n.extends.length===1?mu:f)(P([",",x],e.map(r,"extends")))),d(n.id,g.Trailing)||w(n.extends)?a?s.push(l([...u,f(i)])):s.push(l(f([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),l(s)}function Pa(e,t,r){let{node:n}=e;if(Sr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Aa(e,t,r);case"ComponentParameter":return Ta(e,t,r);case"ComponentTypeParameter":return da(e,t,r);case"HookDeclaration":return Sa(e,t,r);case"DeclareHook":return Ba(e,t,r);case"HookTypeAnnotation":return ba(e,t,r);case"DeclareClass":return Tn(e,t,r);case"DeclareFunction":return[$(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Y(e,r),s];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[$(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return gn(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Mi(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Kr(e,t,r);case"IntersectionTypeAnnotation":return zr(e,t,r);case"UnionTypeAnnotation":return Qr(e,t,r);case"ConditionalTypeAnnotation":return Vt(e,t,r);case"InferTypeAnnotation":return tn(e,t,r);case"FunctionTypeAnnotation":return Zr(e,t,r);case"TupleTypeAnnotation":return Yt(e,t,r);case"TupleTypeLabeledElement":return nn(e,t,r);case"TupleTypeSpreadElement":return rn(e,t,r);case"GenericTypeAnnotation":return[r("id"),Pt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return en(e,t,r);case"TypeAnnotation":return sn(e,t,r);case"TypeParameter":return An(e,t,r);case"TypeofTypeAnnotation":return an(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return un(r);case"DeclareEnum":case"EnumDeclaration":return bn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return ha(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Bn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,V(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Pn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return ln.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return zi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Et(e,t,r),V(e),gt(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return dt(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",V(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return cn(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ie(tt(fe(n),t));case"NumberLiteralTypeAnnotation":return Ze(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return hn(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),Y(e,r),")"];case"TypePredicate":return on(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Pt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Sn(e,t,r)}}function ka(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Br(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(U(n.expression)||se(n.expression)),o=l(["<",f([E,r("typeAnnotation")]),E,">"]),c=[b("("),f([E,r("expression")]),E,b(")")];return a?ze([[o,r("expression")],[o,l(c,{shouldBreak:!0})],[o,r("expression")]]):l([o,r("expression")])}case"TSDeclareFunction":return Dn(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return Fn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return dt(e,t,r);case"TSTypeAliasDeclaration":return Kr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return dn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return xn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(n.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return qr(e,r,t);case"TSNamedTupleMember":return nn(e,t,r);case"TSRestType":return rn(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Pt(e,t,r,"params");case"TSTypeParameter":return An(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return Sn(e,t,r);case"TSArrayType":return un(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Et(e,t,r),V(e),Y(e,r)];case"TSParameterProperty":return[Xt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return an(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?b(ae(t)?",":""):"",o=l([f([E,P([", ",E],e.map(r,"parameters"))]),a,E]),c=e.parent.type==="ClassBody"&&e.key==="body";return[c&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?o:"","]",Y(e,r),c?s:""]}case"TSTypePredicate":return on(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",Pt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return en(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return Qi(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(Xt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",V(e));let o=Je(e,r,t,!1,!0),c=n.returnType?"returnType":"typeAnnotation",m=n[c],D=m?Y(e,r,c):"",y=ot(n,D);return u.push(y?l(o):o),m&&u.push(l(D)),l(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return bn(e,r,t);case"TSEnumMember":return Bn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",ks(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,o=a.type==="TSModuleDeclaration",c=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";if(o)u.push(".");else if(u.push($(e)),!(n.kind==="global"||n.global)){let D=n.kind??(Q(n.id)||fr(t,R(n),R(n.id)).trim().endsWith("module")?"module":"namespace");u.push(D," ")}return u.push(r("id")),c?u.push(r("body")):n.body?u.push(" ",l(r("body"))):u.push(s),u}case"TSConditionalType":return Vt(e,t,r);case"TSInferType":return tn(e,t,r);case"TSIntersectionType":return zr(e,t,r);case"TSUnionType":return Qr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Zr(e,t,r);case"TSTupleType":return Yt(e,t,r);case"TSTypeReference":return[r("typeName"),Pt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return sn(e,t,r);case"TSEmptyBodyFunctionExpression":return fn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ts(e,r,"?");case"TSJSDocNonNullableType":return Ts(e,r,"!");case"TSParenthesizedType":default:throw new Me(n,"TypeScript")}}function Hl(e,t,r,n){if(Xr(e))return ci(e,t);for(let s of[Ti,Ei,Pa,ka,Ca]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Vl=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function $l(e,t,r,n){var D;e.isRoot&&((D=t.__onHtmlBindingRoot)==null||D.call(t,e.node,t));let s=Hl(e,t,r,n);if(!s)return"";let{node:u}=e;if(Vl(u))return s;let i=w(u.decorators),a=xi(e,t,r),o=u.type==="ClassExpression";if(i&&!o)return ir(s,y=>l([a,y]));let c=Be(e,t),m=na(e,t);return!a&&!c&&!m?s:ir(s,y=>[m?";":"",c?"(":"",c&&o&&i?[f([x,a,y]),x]:[a,y],c?")":""])}var Ia=$l;var Kl={avoidAstMutation:!0};var La=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var Os={};Ar(Os,{getVisitorKeys:()=>Oa,massageAstNode:()=>ja,print:()=>Zl});var zl={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},wa=zl;var Ql=hr(wa),Oa=Ql;function Zl(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),F];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",f([F,P([",",F],s)]),F,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",f([F,P([",",F],e.map(r,"properties"))]),F,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return _a(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return _a(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Me(n,"JSON")}}function _a(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var em=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ja(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}ja.ignoredProperties=em;var Er={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kt="JavaScript",tm={arrowParens:{category:kt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Er.bracketSameLine,bracketSpacing:Er.bracketSpacing,jsxBracketSameLine:{category:kt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:kt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:kt,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Er.singleQuote,jsxSingleQuote:{category:kt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:kt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:kt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Er.singleAttributePerLine},va=tm;var rm={estree:ws,"estree-json":Os},nm=[...Us,...La];var $d=_s;export{$d as default,nm as languages,va as options,rm as printers}; +`)+u}function nc(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,p=s(a),o=u(a);for(let m of n)s(m)>=p&&u(m)<=o&&i.add(m);return r.slice(p,o)}var li=nc;function ss(e,t){var u,i,a,p,o,m,y,D,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&ac(r)&&pr(e))return!0;if(sc(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(c&&ie(c,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(T=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),A=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(A&&ie(A,T=>T===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let c=e.findAncestor(A=>!Ae(A));if(c!==s&&c.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&ie(c,A=>A===r))return!0}if(r.type==="ObjectExpression"){let c=(p=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:p.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&ie(c,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&O(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return mi(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!pc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression")&&ic(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(c,A)=>A==="declarations"&&c.type==="VariableDeclaration",(c,A)=>A==="left"&&c.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&uc(e))return!0;if(r.operator==="|>"&&((o=r.extra)!=null&&o.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Ae(r);case"ConditionalExpression":return Ae(r)||au(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Ae(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:A}=r;if(!c&&A!=="TSTypeAssertion")return!0;let T=tr(c),S=s.operator,g=tr(S);return g>T||n==="right"&&g===T||g===T&&!sr(S,c)?!0:g");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,A)=>A==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(n==="extendsType"&&s.type==="TSConditionalType"){if(r.type==="TSConditionalType")return!0;let{typeAnnotation:c}=r.returnType||r.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}if(n==="checkType"&&s.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((s.type==="TSUnionType"||s.type==="TSIntersectionType")&&s.types.length>1&&(!r.types||r.types.length>1))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression")||e.match(void 0,(A,T)=>T==="typeAnnotation"&&A.type==="TypePredicate",(A,T)=>T==="typeAnnotation"&&A.type==="TypeAnnotation",(A,T)=>T==="returnType"&&A.type==="ArrowFunctionExpression"))return!0;let c=s.type==="NullableTypeAnnotation"?e.grandparent:s;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||n==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&((m=r.returnType)==null?void 0:m.type)==="InferTypeAnnotation"&&((y=r.returnType)==null?void 0:y.typeParameter.bound)||c.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&z(r).some(A=>{var T;return((T=A.typeAnnotation)==null?void 0:T.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.type==="ConditionalTypeAnnotation"||n==="checkType"&&s.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&!s.directive){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return n==="object"&&s.type==="MemberExpression"&&typeof r.value=="number";case"AssignmentExpression":{let c=e.grandparent;return n==="body"&&s.type==="ArrowFunctionExpression"?!0:n==="key"&&(s.type==="ClassProperty"||s.type==="PropertyDefinition")&&s.computed||(n==="init"||n==="update")&&s.type==="ForStatement"?!1:s.type==="ExpressionStatement"?r.left.type==="ObjectPattern":!(n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||s.type==="SequenceExpression"&&c.type==="ForStatement"&&(c.init===s||c.update===s)||n==="value"&&s.type==="Property"&&c.type==="ObjectPattern"&&c.properties.includes(s)||s.type==="NGChainedExpression"||n==="node"&&s.type==="JsExpressionRoot")}case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||((D=r.extra)==null?void 0:D.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(s.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(oc(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let c=r;for(;c;)switch(c.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&W(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!((C=r.extra)!=null&&C.parenthesized)||X(s)||n==="arguments"&&L(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!X(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!L(s)&&!Ce(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression";case"TSInstantiationExpression":return n==="object"&&W(s)}return!1}var sc=v(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function uc(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ic(e){return rr(e,t=>t.type==="ObjectTypeAnnotation"&&rr(t,r=>r.type==="FunctionTypeAnnotation"))}function ac(e){return se(e)}function pr(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(pr);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(pr);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(pr);break;case"UnaryExpression":if(t.prefix)return e.callParent(pr);break}return!1}function mi(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!ss(e,t):!Rt(r)||n.type!=="ExportDefaultDeclaration"&&ss(e,t)?!1:e.call(()=>mi(e,t),...Pr(r))}function oc(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function us(e){return e.type==="Identifier"?!0:W(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&us(e.object):!1}function pc(e){return e.type==="ChainExpression"&&(e=e.expression),us(e)||L(e)&&!e.optional&&us(e.callee)}var Be=ss;function cc(e,t){let r=t-1;r=We(e,r,{backwards:!0}),r=Ge(e,r,{backwards:!0}),r=We(e,r,{backwards:!0});let n=Ge(e,r,{backwards:!0});return r!==n}var yi=cc;var lc=()=>!0;function is(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function mc(e,t){var m;let r=e.node,n=[is(e,t)],{printer:s,originalText:u,locStart:i,locEnd:a}=t;if((m=s.isBlockComment)==null?void 0:m.call(s,r)){let y=Z(u,a(r))?Z(u,i(r),{backwards:!0})?F:x:" ";n.push(y)}else n.push(F);let o=Ge(u,We(u,a(r)));return o!==!1&&Z(u,o)&&n.push(F),n}function yc(e,t,r){var o;let n=e.node,s=is(e,t),{printer:u,originalText:i,locStart:a}=t,p=(o=u.isBlockComment)==null?void 0:o.call(u,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Z(i,a(n),{backwards:!0})){let m=yi(i,a(n));return{doc:Wn([F,m?F:"",s]),isBlock:p,hasLineSuffix:!0}}return!p||r!=null&&r.hasLineSuffix?{doc:[Wn([" ",s]),Ee],isBlock:p,hasLineSuffix:!0}:{doc:[" ",s],isBlock:p,hasLineSuffix:!1}}function J(e,t,r={}){let{node:n}=e;if(!O(n==null?void 0:n.comments))return"";let{indent:s=!1,marker:u,filter:i=lc}=r,a=[];if(e.each(({node:o})=>{o.leading||o.trailing||o.marker!==u||!i(o)||a.push(is(e,t))},"comments"),a.length===0)return"";let p=b(F,a);return s?f([F,p]):p}function as(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let p=e.node;if(n!=null&&n.has(p))return;let{leading:o,trailing:m}=p;o?u.push(mc(e,t)):m&&(a=yc(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function ye(e,t,r){let{leading:n,trailing:s}=as(e,r);return!n&&!s?t:or(t,u=>[n,u,s])}var os=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Me=os;function ps(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Re,cs=class{constructor(t){qs(this,Re);Ws(this,Re,new Set(t))}getLeadingWhitespaceCount(t){let r=pt(this,Re),n=0;for(let s=0;s=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return pt(this,Re).has(t.charAt(0))}hasTrailingWhitespace(t){return pt(this,Re).has(_(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${ps([...pt(this,Re)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=pt(this,Re);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=pt(this,Re);return Array.prototype.every.call(t,n=>r.has(n))}};Re=new WeakMap;var Di=cs;var Yr=new Di(` +\r `),ls=e=>e===""||e===x||e===F||e===E;function Dc(e,t,r){var M,R,j,I,U;let{node:n}=e;if(n.type==="JSXElement"&&Pc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(P=>kc(P)?{type:"JSXText",value:" ",raw:" "}:P);let i=n.children.some(H),a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,p=n.type==="JSXElement"&&n.openingElement.attributes.length>1,o=re(s)||i||p||a,m=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',D=m?" ":B([y,E]," "),C=((R=(M=n.openingElement)==null?void 0:M.name)==null?void 0:R.name)==="fbt",c=fc(e,t,r,D,C),A=n.children.some(P=>cr(P));for(let P=c.length-2;P>=0;P--){let G=c[P]===""&&c[P+1]==="",ue=c[P]===F&&c[P+1]===""&&c[P+2]===F,Q=(c[P]===E||c[P]===F)&&c[P+1]===""&&c[P+2]===D,gt=c[P]===D&&c[P+1]===""&&(c[P+2]===E||c[P+2]===F),Ft=c[P]===D&&c[P+1]===""&&c[P+2]===D,w=c[P]===E&&c[P+1]===""&&c[P+2]===F||c[P]===F&&c[P+1]===""&&c[P+2]===E;ue&&A||G||Q||Ft||w?c.splice(P,2):gt&&c.splice(P+1,2)}for(;c.length>0&&ls(_(!1,c,-1));)c.pop();for(;c.length>1&&ls(c[0])&&ls(c[1]);)c.shift(),c.shift();let T=[];for(let[P,G]of c.entries()){if(G===D){if(P===1&&c[P-1]===""){if(c.length===2){T.push(y);continue}T.push([y,F]);continue}else if(P===c.length-1){T.push(y);continue}else if(c[P-1]===""&&c[P-2]===F){T.push(y);continue}}T.push(G),re(G)&&(o=!0)}let S=A?Rr(T):l(T,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)?S=[ir,S,ir]:((I=t.nodeBeforeCursor)==null?void 0:I.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?S=[ir,S]:((U=t.nodeAfterCursor)==null?void 0:U.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(S=[S,ir]),m)return S;let g=l([s,f([F,S]),F,u]);return o?g:Ke([l([s,...c,u]),g])}function fc(e,t,r,n,s){let u=[];return e.each(({node:i,next:a})=>{if(i.type==="JSXText"){let p=fe(i);if(cr(i)){let o=Yr.split(p,!0);o[0]===""&&(u.push(""),o.shift(),/\n/u.test(o[0])?u.push(Ei(s,o[1],i,a)):u.push(n),o.shift());let m;if(_(!1,o,-1)===""&&(o.pop(),m=o.pop()),o.length===0)return;for(let[y,D]of o.entries())y%2===1?u.push(x):u.push(D);m!==void 0?/\n/u.test(m)?u.push(Ei(s,_(!1,u,-1),i,a)):u.push(n):u.push(fi(s,_(!1,u,-1),i,a))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u.push("",F):u.push("",n)}else{let p=r();if(u.push(p),a&&cr(a)){let m=Yr.trim(fe(a)),[y]=Yr.split(m);u.push(fi(s,y,i,a))}else u.push(F)}},"children"),u}function fi(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function Ei(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var Ec=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Fc(e,t,r){let{parent:n}=e;if(Ec.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=Be(e,r);return l([u?"":B("("),f([E,t]),E,u?"":B(")")],{shouldBreak:s})}function Cc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(te(n.value)){let i=fe(n.value),a=Y(!1,Y(!1,i.slice(1,-1),"'","'"),""",'"'),p=xr(a,t.jsxSingleQuote);a=p==='"'?Y(!1,a,'"',"""):Y(!1,a,"'","'"),u=e.call(()=>ye(e,Ie(p+a+p),t),"value")}else u=r("value");s.push("=",u)}return s}function Ac(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!d(u)&&(X(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||H(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),ke,"}"]):l(["{",f([E,r("expression")]),E,ke,"}"])}function Tc(e,t,r){var a,p;let{node:n}=e,s=d(n.name)||d(n.typeParameters)||d(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&te(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!s&&!d(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(p=n.attributes)==null?void 0:p.some(o=>te(o.value)&&o.value.value.includes(` +`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...dc(n,t,s)],{shouldBreak:u})}function dc(e,t,r){return e.selfClosing?[x,"/>"]:xc(e,t,r)?[">"]:[E,">"]}function xc(e,t,r){let n=e.attributes.length>0&&d(_(!1,e.attributes,-1),h.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function hc(e,t,r){let{node:n}=e,s=[];s.push(""),s}function gc(e,t){let{node:r}=e,n=d(r),s=d(r,h.Line),u=r.type==="JSXOpeningFragment";return[u?"<":""]}function Sc(e,t,r){let n=ye(e,Dc(e,t,r),t);return Fc(e,n,t)}function Bc(e,t){let{node:r}=e,n=d(r,h.Line);return[J(e,t,{indent:n}),n?F:""]}function bc(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!d(s)||!Kn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Fi(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return Cc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return b(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return b(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return bc(e,t,r);case"JSXExpressionContainer":return Ac(e,t,r);case"JSXFragment":case"JSXElement":return Sc(e,t,r);case"JSXOpeningElement":return Tc(e,t,r);case"JSXClosingElement":return hc(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return gc(e,t);case"JSXEmptyExpression":return Bc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me(n,"JSX")}}function Pc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!cr(t)}function cr(e){return e.type==="JSXText"&&(Yr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function kc(e){return e.type==="JSXExpressionContainer"&&te(e.expression)&&e.expression.value===" "&&!d(e.expression)}function Ci(e){let{node:t,parent:r}=e;if(!H(t)||!H(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!cr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&kt(u.expression)}function Ic(e){return kt(e.node)||Ci(e)}var Hr=Ic;var Lc=0;function Nr(e,t,r){var R;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),p=n.operator==="|>"&&((R=e.root.extra)==null?void 0:R.__isUsingHackPipeline),o=ms(e,r,t,!1,a);if(a)return o;if(p)return l(o);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||W(s)&&!s.computed)return l([f([E,...o]),E]);let m=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",y=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ce(s),D=De(n.left)&&sr(n.operator,n.left.operator);if(m||Yt(n)&&!D||!Yt(n)&&y)return l(o);if(o.length===0)return"";let C=H(n.right),c=o.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===le),A=o.slice(0,c===-1?1:c+1),T=o.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++Lc),g=l([...A,f(T)],{id:S});if(!C)return g;let M=_(!1,o,-1);return l([g,dt(M,{groupId:S})])}function ms(e,t,r,n,s){var A;let{node:u}=e;if(!De(u))return[l(t())];let i=[];sr(u.operator,u.left.operator)?i=e.call(T=>ms(T,t,r,!0,s),"left"):i.push(l(t("left")));let a=Yt(u),p=(u.operator==="|>"||u.type==="NGPipeExpression"||wc(e,r))&&!Oe(r.originalText,u.right),o=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",b([x,": "],e.map(()=>he(2,l(t())),"arguments"))])):"",y;if(a)y=[o," ",t("right"),m];else{let S=o==="|>"&&((A=e.root.extra)==null?void 0:A.__isUsingHackPipeline)?e.call(g=>ms(g,t,r,!0,s),"right"):t("right");y=[p?x:"",o,p?" ":x,S,m]}let{parent:D}=e,C=d(u.left,h.Trailing|h.Line),c=C||!(s&&u.type==="LogicalExpression")&&D.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(p?"":" ",c?l(y,{shouldBreak:C}):y),n&&d(u)){let T=Gt(ye(e,i,r));return T.type===Pe?T.parts:Array.isArray(T)?T:[T]}return i}function Yt(e){return e.type!=="LogicalExpression"?!1:!!(se(e.right)&&e.right.properties.length>0||X(e.right)&&e.right.elements.length>0||H(e.right))}var Ai=e=>e.type==="BinaryExpression"&&e.operator==="|";function wc(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Ai(e.node)&&!e.hasAncestor(r=>!Ai(r)&&r.type!=="JsExpressionRoot")}function di(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),d(n.node)?" //"+ct(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Nr(e,t,r);case"NGChainedExpression":return l(b([";",x],e.map(()=>_c(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Ti(e)?" ":[";",x],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:u}=e,i=Ti(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(s===2||s===3)&&(n.key.name==="else"&&u.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&u.body[s-1].key.name==="then"||n.key.name==="track"))&&u.body[0].type==="NGMicrosyntaxExpression";return[r("key"),i?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Me(n,"Angular")}}function Ti({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}var Oc=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function _c({node:e}){return rr(e,Oc)}function ys(e,t,r){let{node:n}=e;return l([b(x,e.map(r,"decorators")),gi(n,t)?F:x])}function xi(e,t,r){return Si(e.node)?[b(F,e.map(r,"declaration","decorators")),F]:""}function hi(e,t,r){let{node:n,parent:s}=e,{decorators:u}=n;if(!O(u)||Si(s)||Hr(e))return"";let i=n.type==="ClassExpression"||n.type==="ClassDeclaration"||gi(n,t);return[e.key==="declaration"&&iu(s)?F:i?Ee:"",b(x,e.map(r,"decorators")),x]}function gi(e,t){return e.decorators.some(r=>Z(t.originalText,k(r)))}function Si(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return O(t)&&Bt(e,t[0])}var yt=class extends Error{name="ArgExpansionBailout"};function jc(e,t,r){let{node:n}=e,s=oe(n);if(s.length===0)return["(",J(e,t),")"];let u=s.length-1;if(Rc(s)){let y=["("];return qt(e,(D,C)=>{y.push(r()),C!==u&&y.push(", ")}),y.push(")"),y}let i=!1,a=[];qt(e,({node:y},D)=>{let C=r();D===u||(pe(y,t)?(i=!0,C=[C,",",F,F]):C=[C,",",x]),a.push(C)});let p=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&ae(t,"all")?",":"";function o(){return l(["(",f([x,...a]),p,x,")"],{shouldBreak:!0})}if(i||e.parent.type!=="Decorator"&&lu(s))return o();if(Mc(s)){let y=a.slice(1);if(y.some(re))return o();let D;try{D=r(Rn(n,0),{expandFirstArg:!0})}catch(C){if(C instanceof yt)return o();throw C}return re(D)?[Ee,Ke([["(",l(D,{shouldBreak:!0}),", ",...y,")"],o()])]:Ke([["(",D,", ",...y,")"],["(",l(D,{shouldBreak:!0}),", ",...y,")"],o()])}if(vc(s,a,t)){let y=a.slice(0,-1);if(y.some(re))return o();let D;try{D=r(Rn(n,-1),{expandLastArg:!0})}catch(C){if(C instanceof yt)return o();throw C}return re(D)?[Ee,Ke([["(",...y,l(D,{shouldBreak:!0}),")"],o()])]:Ke([["(",...y,D,")"],["(",...y,l(D,{shouldBreak:!0}),")"],o()])}let m=["(",f([E,...a]),B(p),E,")"];return Or(e)?m:l(m,{shouldBreak:a.some(re)||i})}function lr(e,t=!1){return se(e)&&(e.properties.length>0||d(e))||X(e)&&(e.elements.length>0||d(e))||e.type==="TSTypeAssertion"&&lr(e.expression)||Ae(e)&&lr(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||Jc(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&lr(e.body,!0)||se(e.body)||X(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||H(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function vc(e,t,r){var u,i;let n=_(!1,e,-1);if(e.length===1){let a=_(!1,t,-1);if((u=a.label)!=null&&u.embed&&((i=a.label)==null?void 0:i.hug)!==!1)return!0}let s=_(!1,e,-2);return!d(n,h.Leading)&&!d(n,h.Trailing)&&lr(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!X(n))&&!(e.length>1&&Ds(n,r))}function Mc(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&qc(r)?!0:!d(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&bi(r)&&!lr(r)}function bi(e){if(e.type==="ParenthesizedExpression")return bi(e.expression);if(Ae(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return Jt(t)&&be(e.expression,1)}return lt(e)&&oe(e).length>1?!1:De(e)?be(e.left,1)&&be(e.right,1):vn(e)||be(e)}function Rc(e){return e.length===2?Bi(e,0):e.length===3?e[0].type==="Identifier"&&Bi(e,1):!1}function Bi(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&z(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>d(s))}function Jc(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||d(e,h.Dangling))}function qc(e){return e.type==="ObjectExpression"&&e.properties.length===1&&Ce(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&te(e.properties[0].value)&&e.properties[0].value.value==="module"}var mr=jc;var Wc=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&oe(e).length>0);function Pi(e,t,r){var o;let n=r("object"),s=fs(e,t,r),{node:u}=e,i=e.findAncestor(m=>!(W(m)||m.type==="TSNonNullExpression")),a=e.findAncestor(m=>!(m.type==="ChainExpression"||m.type==="TSNonNullExpression")),p=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!W(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(Wc(u.object)||((o=n.label)==null?void 0:o.memberChain));return st(n.label,[n,p?s:l(f([E,s]))])}function fs(e,t,r){let n=r("property"),{node:s}=e,u=$(e);return s.computed?!s.property||Fe(s.property)?[u,"[",n,"]"]:l([u,"[",f([E,n]),E,"]"]):[u,".",n]}function ki(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>ki(e,t,r),"expression");let{parent:n}=e,s=!n||n.type==="ExpressionStatement",u=[];function i(w){let{originalText:ne}=t,de=ut(ne,k(w));return ne.charAt(de)===")"?de!==!1&&jt(ne,de+1):pe(w,t)}function a(){let{node:w}=e;if(w.type==="ChainExpression")return e.call(a,"expression");if(L(w)&&(At(w.callee)||L(w.callee))){let ne=i(w);u.unshift({node:w,hasTrailingEmptyLine:ne,printed:[ye(e,[$(e),Qe(e,t,r),mr(e,t,r)],t),ne?F:""]}),e.call(a,"callee")}else At(w)?(u.unshift({node:w,needsParens:Be(e,t),printed:ye(e,W(w)?fs(e,t,r):Vr(e,t,r),t)}),e.call(a,"object")):w.type==="TSNonNullExpression"?(u.unshift({node:w,printed:ye(e,"!",t)}),e.call(a,"expression")):u.unshift({node:w,printed:r()})}let{node:p}=e;u.unshift({node:p,printed:[$(e),Qe(e,t,r),mr(e,t,r)]}),p.callee&&e.call(a,"callee");let o=[],m=[u[0]],y=1;for(;y0&&o.push(m);function C(w){return/^[A-Z]|^[$_]+$/u.test(w)}function c(w){return w.length<=t.tabWidth}function A(w){var ot;let ne=(ot=w[1][0])==null?void 0:ot.node.computed;if(w[0].length===1){let St=w[0][0].node;return St.type==="ThisExpression"||St.type==="Identifier"&&(C(St.name)||s&&c(St.name)||ne)}let de=_(!1,w[0],-1).node;return W(de)&&de.property.type==="Identifier"&&(C(de.property.name)||ne)}let T=o.length>=2&&!d(o[1][0].node)&&A(o);function S(w){let ne=w.map(de=>de.printed);return w.length>0&&_(!1,w,-1).needsParens?["(",...ne,")"]:ne}function g(w){return w.length===0?"":f([F,b(F,w.map(S))])}let M=o.map(S),R=M,j=T?3:2,I=o.flat(),U=I.slice(1,-1).some(w=>d(w.node,h.Leading))||I.slice(0,-1).some(w=>d(w.node,h.Trailing))||o[j]&&d(o[j][0].node,h.Leading);if(o.length<=j&&!U&&!o.some(w=>_(!1,w,-1).hasTrailingEmptyLine))return Or(e)?R:l(R);let P=_(!1,o[T?1:0],-1).node,G=!L(P)&&i(P),ue=[S(o[0]),T?o.slice(1,2).map(S):"",G?F:"",g(o.slice(T?2:1))],Q=u.map(({node:w})=>w).filter(L);function gt(){let w=_(!1,_(!1,o,-1),-1).node,ne=_(!1,M,-1);return L(w)&&re(ne)&&Q.slice(0,-1).some(de=>de.arguments.some(Mt))}let Ft;return U||Q.length>2&&Q.some(w=>!w.arguments.every(ne=>be(ne)))||M.slice(0,-1).some(re)||gt()?Ft=l(ue):Ft=[re(R)||G?Ee:"",Ke([R,ue])],st({memberChain:!0},Ft)}var Ii=ki;function $r(e,t,r){var m;let{node:n}=e,s=n.type==="NewExpression",u=n.type==="ImportExpression",i=$(e),a=oe(n),p=a.length===1&&Lr(a[0],t.originalText);if(p||Gc(e)||Pt(n,e.parent)){let y=[];if(qt(e,()=>{y.push(r())}),!(p&&((m=y[0].label)!=null&&m.embed)))return[s?"new ":"",Li(e,r),i,Qe(e,t,r),"(",b(", ",y),")"]}if(!u&&!s&&At(n.callee)&&!e.call(y=>Be(y,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return Ii(e,t,r);let o=[s?"new ":"",Li(e,r),i,Qe(e,t,r),mr(e,t,r)];return u||L(n.callee)?l(o):o}function Li(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function Gc(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=oe(t);return t.callee.name==="require"?r.length===1&&te(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&te(r[0])&&r[1].type==="ArrayExpression":!1}function xt(e,t,r,n,s,u){let i=Uc(e,t,r,n,u),a=u?r(u,{assignmentLayout:i}):"";switch(i){case"break-after-operator":return l([l(n),s,l(f([x,a]))]);case"never-break-after-operator":return l([l(n),s," ",a]);case"fluid":{let p=Symbol("assignment");return l([l(n),s,l(f(x),{id:p}),ke,dt(a,{groupId:p})])}case"break-lhs":return l([n,s," ",l(a)]);case"chain":return[l(n),s,x,a];case"chain-tail":return[l(n),s,f([x,a])];case"chain-tail-arrow-chain":return[l(n),s,a];case"only-left":return n}}function Oi(e,t,r){let{node:n}=e;return xt(e,t,r,r("left"),[" ",n.operator],"right")}function _i(e,t,r){return xt(e,t,r,r("id")," =","init")}function Uc(e,t,r,n,s){let{node:u}=e,i=u[s];if(!i)return"only-left";let a=!Kr(i);if(e.match(Kr,ji,D=>!a||D.type!=="ExpressionStatement"&&D.type!=="VariableDeclaration"))return a?i.type==="ArrowFunctionExpression"&&i.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&Kr(i.right)||Oe(t.originalText,i))return"break-after-operator";if(u.type==="ImportAttribute"||i.type==="CallExpression"&&i.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let m=Bu(n);if(Yc(u)||$c(u)||Es(u)&&m)return"break-lhs";let y=Qc(u,n,t);return e.call(()=>Xc(e,t,r,y),s)?"break-after-operator":Hc(u)?"break-lhs":!m&&(y||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="BooleanLiteral"||Fe(i)||i.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Xc(e,t,r,n){let s=e.node;if(De(s)&&!Yt(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!el(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:o}=s;return De(o)&&!Yt(o)}let{consequent:a,alternate:p}=s;return a.type==="ConditionalExpression"||p.type==="ConditionalExpression"}case"ClassExpression":return O(s.decorators)}if(n)return!1;let u=s,i=[];for(;;)if(u.type==="UnaryExpression"||u.type==="AwaitExpression"||u.type==="YieldExpression"&&u.argument!==null)u=u.argument,i.push("argument");else if(u.type==="TSNonNullExpression")u=u.expression,i.push("expression");else break;return!!(te(u)||e.call(()=>vi(e,t,r),...i))}function Yc(e){if(ji(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Ce(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Kr(e){return e.type==="AssignmentExpression"}function ji(e){return Kr(e)||e.type==="VariableDeclarator"}function Hc(e){let t=Vc(e);if(O(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}var Nc=v(["TSTypeAliasDeclaration","TypeAlias"]);function Vc(e){var t;if(Nc(e))return(t=e.typeParameters)==null?void 0:t.params}function $c(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=wi(t.typeAnnotation);return O(r)&&r.length>1&&r.some(n=>O(wi(n))||n.type==="TSConditionalType")}function Es(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var Kc=v(["TSTypeReference","GenericTypeAnnotation"]);function wi(e){var t;if(Kc(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function vi(e,t,r,n=!1){var i;let{node:s}=e,u=()=>vi(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(u,"expression");if(L(s)){if((i=$r(e,t,r).label)!=null&&i.memberChain)return!1;let p=oe(s);return!(p.length===0||p.length===1&&nr(p[0],t))||zc(s,r)?!1:e.call(u,"callee")}return W(s)?e.call(u,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function Qc(e,t,r){return Ce(e)?(t=Gt(t),typeof t=="string"&&ze(t)1)return!0;if(r.length===1){let s=r[0];if(Ue(s)||_r(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(re(t(n)))return!0}return!1}function Zc(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function el(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function Je(e,t,r,n,s){let u=e.node,i=z(u),a=s?Qe(e,r,t):"";if(i.length===0)return[a,"(",J(e,r,{filter:c=>ge(r.originalText,k(c))===")"}),")"];let{parent:p}=e,o=Pt(p),m=Fs(u),y=[];if(fu(e,(c,A)=>{let T=A===i.length-1;T&&u.rest&&y.push("..."),y.push(t()),!T&&(y.push(","),o||m?y.push(" "):pe(i[A],r)?y.push(F,F):y.push(x))}),n&&!rl(e)){if(re(a)||re(y))throw new yt;return l([ar(a),"(",ar(y),")"])}let D=i.every(c=>!O(c.decorators));return m&&D?[a,"(",...y,")"]:o?[a,"(",...y,")"]:(Ir(p)||ou(p)||p.type==="TypeAlias"||p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="FunctionTypeAnnotation"&&p.returnType===u)&&i.length===1&&i[0].name===null&&u.this!==i[0]&&i[0].typeAnnotation&&u.typeParameters===null&&Jt(i[0].typeAnnotation)&&!u.rest?r.arrowParens==="always"||u.type==="HookTypeAnnotation"?["(",...y,")"]:y:[a,"(",f([E,...y]),B(!Du(u)&&ae(r,"all")?",":""),E,")"]}function Fs(e){if(!e)return!1;let t=z(e);if(t.length!==1)return!1;let[r]=t;return!d(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&we(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&we(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||se(r.right)&&r.right.properties.length===0||X(r.right)&&r.right.elements.length===0))}function tl(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function at(e,t){var s;let r=tl(e);if(!r)return!1;let n=(s=e.typeParameters)==null?void 0:s.params;if(n){if(n.length>1)return!1;if(n.length===1){let u=n[0];if(u.constraint||u.default)return!1}}return z(e).length===1&&(we(r)||re(t))}function rl(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function Mi(e){let t=z(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}var nl=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),sl=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function ul(e){let{types:t}=e;if(t.some(n=>d(n)))return!1;let r=t.find(n=>sl(n));return r?t.every(n=>n===r||nl(n)):!1}function Cs(e){return Jt(e)||we(e)?!0:Ue(e)?ul(e):!1}function Ri(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[K(e),"opaque type ",r("id"),r("typeParameters")];return s.supertype&&u.push(": ",r("supertype")),s.impltype&&u.push(" = ",r("impltype")),u.push(n),u}function Qr(e,t,r){let n=t.semi?";":"",{node:s}=e,u=[K(e)];u.push("type ",r("id"),r("typeParameters"));let i=s.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[xt(e,t,r,u," =",i),n]}function zr(e,t,r){let n=!1;return l(e.map(({isFirst:s,previous:u,node:i,index:a})=>{let p=r();if(s)return p;let o=we(i),m=we(u);return m&&o?[" & ",n?f(p):p]:!m&&!o?f([" &",x,p]):(a>1&&(n=!0),[" & ",a>1?f(p):p])},"types"))}function Zr(e,t,r){let{node:n}=e,{parent:s}=e,u=s.type!=="TypeParameterInstantiation"&&(s.type!=="TSConditionalType"||!t.experimentalTernaries)&&(s.type!=="ConditionalTypeAnnotation"||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((s.type==="TypeAlias"||s.type==="VariableDeclarator"||s.type==="TSTypeAliasDeclaration")&&Oe(t.originalText,n)),i=Cs(n),a=e.map(m=>{let y=r();return i||(y=he(2,y)),ye(m,y,t)},"types");if(i)return b(" | ",a);let p=u&&!Oe(t.originalText,n),o=[B([p?x:"","| "]),b([x,"| "],a)];return Be(e,t)?l([f(o),E]):(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?l([f([B(["(",E]),o]),E,B(")")]):l(u?f(o):o)}function il(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Ir(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&Bt(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function en(e,t,r){let{node:n}=e,s=[Ht(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let u=Je(e,r,t,!1,!0),i=[];return n.type==="FunctionTypeAnnotation"?i.push(il(e)?" => ":": ",r("returnType")):i.push(N(e,r,n.returnType?"returnType":"typeAnnotation")),at(n,i)&&(u=l(u)),s.push(u,i),l(s)}function tn(e,t,r){return[r("objectType"),$(e),"[",r("indexType"),"]"]}function rn(e,t,r){return["infer ",r("typeParameter")]}function As(e,t,r){let{node:n}=e;return[n.postfix?"":r,N(e,t),n.postfix?r:""]}function nn(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function sn(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}var al=new WeakSet;function N(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let u=e.call(Ji,r);(u==="=>"||u===":"&&d(n,h.Leading))&&(s=!0),al.add(n)}return s?[" ",t(r)]:t(r)}var Ji=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function un(e,t,r){let n=Ji(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function an(e){return[e("elementType"),"[]"]}function on({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function pn(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",N(e,t)]:""]}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||W(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function cn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var ol=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function K(e){let{node:t}=e;return t.declare||ol.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var pl=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Ht({node:e}){return e.abstract||pl.has(e.type)?"abstract ":""}function Qe(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function Vr(e,t,r){return["::",r("callee")]}function Dt(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:f([x,t])}function ln(e,t){return["...",t("argument"),N(e,t)]}function Nt(e){return e.accessibility?e.accessibility+" ":""}function cl(e,t,r,n){let{node:s}=e,u=s.inexact?"...":"";return d(s,h.Dangling)?l([r,u,J(e,t,{indent:!0}),E,n]):[r,u,n]}function Vt(e,t,r){let{node:n}=e,s=[],u=n.type==="TupleExpression"?"#[":"[",i="]",a=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",p=n[a];if(p.length===0)s.push(cl(e,t,u,i));else{let o=_(!1,p,-1),m=(o==null?void 0:o.type)!=="RestElement"&&!n.inexact,y=o===null,D=Symbol("array"),C=!t.__inJestEach&&p.length>1&&p.every((T,S,g)=>{let M=T==null?void 0:T.type;if(!X(T)&&!se(T))return!1;let R=g[S+1];if(R&&M!==R.type)return!1;let j=X(T)?"elements":"properties";return T[j]&&T[j].length>1}),c=Ds(n,t),A=m?y?",":ae(t)?c?B(",","",{groupId:D}):B(","):"":"";s.push(l([u,f([E,c?ml(e,t,r,A):[ll(e,t,a,n.inexact,r),A],J(e,t)]),E,i],{shouldBreak:C,id:D}))}return s.push($(e),N(e,r)),s}function Ds(e,t){return X(e)&&e.elements.length>1&&e.elements.every(r=>r&&(Fe(r)||jn(r)&&!d(r.argument))&&!d(r,h.Trailing|h.Line,n=>!Z(t.originalText,q(n),{backwards:!0})))}function qi({node:e},{originalText:t}){let r=s=>Ot(t,_t(t,s)),n=s=>t[s]===","?s:n(r(s+1));return jt(t,n(k(e)))}function ll(e,t,r,n,s){let u=[];return e.each(({node:i,isLast:a})=>{u.push(i?l(s()):""),(!a||n)&&u.push([",",x,i&&qi(e,t)?E:""])},r),n&&u.push("..."),u}function ml(e,t,r,n){let s=[];return e.each(({isLast:u,next:i})=>{s.push([r(),u?n:","]),u||s.push(qi(e,t)?[F,F]:d(i,h.Leading|h.Line)?F:x)},"elements"),Rr(s)}var yl=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0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\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Dl=e=>yl.test(e),Wi=Dl;function fl(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ft=fl;var mn=new WeakMap;function Ui(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Gi(e,t){return t.parser==="json"||t.parser==="jsonc"||!te(e.key)||Ze(fe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Wi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||Ui(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function El(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Fe(r)&&Ui(ft(fe(r)))&&String(r.value)===ft(fe(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&mn.get(e.parent))}function Et(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:u}=n;if(t.quoteProps==="consistent"&&!mn.has(s)){let i=e.siblings.some(a=>!a.computed&&te(a.key)&&!Gi(a,t));mn.set(s,i)}if(El(e,t)){let i=Ze(JSON.stringify(u.type==="Identifier"?u.name:u.value.toString()),t);return e.call(a=>ye(a,i,t),"key")}return Gi(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!mn.get(s))?e.call(i=>ye(i,/^\d/u.test(u.value)?ft(u.value):u.value,t),"key"):r("key")}function yn(e,t,r){let{node:n}=e;return n.shorthand?r("value"):xt(e,t,r,Et(e,t,r),":","value")}var Fl=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&bt(r));function Dn(e,t,r,n){if(Fl(e))return fn(e,r,t);let{node:s}=e,u=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:m}=e;L(m)&&(oe(m).length>1||z(s).every(y=>y.type==="Identifier"&&!y.typeAnnotation))&&(u=!0)}let i=[K(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?t("id"):""],a=Je(e,t,r,u),p=$t(e,t),o=at(s,p);return i.push(Qe(e,r,t),l([o?l(a):a,p]),s.body?" ":"",t("body")),r.semi&&(s.declare||!s.body)&&i.push(";"),i}function yr(e,t,r){let{node:n}=e,{kind:s}=n,u=n.value||n,i=[];return!s||s==="init"||s==="method"||s==="constructor"?u.async&&i.push("async "):(vt.ok(s==="get"||s==="set"),i.push(s," ")),u.generator&&i.push("*"),i.push(Et(e,t,r),n.optional||n.key.optional?"?":"",n===u?fn(e,t,r):r("value")),i}function fn(e,t,r){let{node:n}=e,s=Je(e,r,t),u=$t(e,r),i=Mi(n),a=at(n,u),p=[Qe(e,t,r),l([i?l(s,{shouldBreak:!0}):a?l(s):s,u])];return n.body?p.push(" ",r("body")):p.push(t.semi?";":""),p}function Cl(e){let t=z(e);return t.length===1&&!e.typeParameters&&!d(e,h.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!d(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function En(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return Cl(r)}return!1}function $t(e,t){let{node:r}=e,s=[N(e,t,"returnType")];return r.predicate&&s.push(t("predicate")),s}function Xi(e,t,r){let{node:n}=e,s=t.semi?";":"",u=[];if(n.argument){let p=r("argument");Al(t,n.argument)?p=["(",f([F,p]),F,")"]:(De(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(p=l([B("("),f([E,p]),E,B(")")])),u.push(" ",p)}let i=d(n,h.Dangling),a=s&&i&&d(n,h.Last|h.Line);return a&&u.push(s),i&&u.push(" ",J(e,t)),a||u.push(s),u}function Yi(e,t,r){return["return",Xi(e,t,r)]}function Hi(e,t,r){return["throw",Xi(e,t,r)]}function Al(e,t){if(Oe(e.originalText,t)||d(t,h.Leading,r=>Te(e.originalText,q(r),k(r)))&&!H(t))return!0;if(Rt(t)){let r=t,n;for(;n=uu(r);)if(r=n,Oe(e.originalText,r))return!0}return!1}var Ts=new WeakMap;function Ni(e){return Ts.has(e)||Ts.set(e,e.type==="ConditionalExpression"&&!ie(e,t=>t.type==="ObjectExpression")),Ts.get(e)}var Vi=e=>e.type==="SequenceExpression";function $i(e,t,r,n={}){let s=[],u,i=[],a=!1,p=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",o;(function S(){let{node:g}=e,M=Tl(e,t,r,n);if(s.length===0)s.push(M);else{let{leading:R,trailing:j}=as(e,t);s.push([R,M]),i.unshift(j)}p&&(a||(a=g.returnType&&z(g).length>0||g.typeParameters||z(g).some(R=>R.type!=="Identifier"))),!p||g.body.type!=="ArrowFunctionExpression"?(u=r("body",n),o=g.body):e.call(S,"body")})();let m=!Oe(t.originalText,o)&&(Vi(o)||dl(o,u,t)||!a&&Ni(o)),y=e.key==="callee"&<(e.parent),D=Symbol("arrow-chain"),C=xl(e,n,{signatureDocs:s,shouldBreak:a}),c=!1,A=!1,T=!1;return p&&(y||n.assignmentLayout)&&(A=!0,T=!d(e.node,h.Leading&h.Line),c=n.assignmentLayout==="chain-tail-arrow-chain"||y&&!m),u=hl(e,t,n,{bodyDoc:u,bodyComments:i,functionBody:o,shouldPutBodyOnSameLine:m}),l([l(A?f([T?E:"",C]):C,{shouldBreak:c,id:D})," =>",p?dt(u,{groupId:D}):l(u),p&&y?B(E,"",{groupId:D}):""])}function Tl(e,t,r,n){let{node:s}=e,u=[];if(s.async&&u.push("async "),En(e,t))u.push(r(["params",0]));else{let a=n.expandLastArg||n.expandFirstArg,p=$t(e,r);if(a){if(re(p))throw new yt;p=l(ar(p))}u.push(l([Je(e,r,t,a,!0),p]))}let i=J(e,t,{filter(a){let p=ut(t.originalText,k(a));return p!==!1&&t.originalText.slice(p,p+2)==="=>"}});return i&&u.push(" ",i),u}function dl(e,t,r){var n,s;return X(e)||se(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||H(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((s=t.label)==null?void 0:s.embed)||Lr(e,r.originalText))}function xl(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:u}=e;return u!=="callee"&<(s)||De(s)?l([r[0]," =>",f([x,b([" =>",x],r.slice(1))])],{shouldBreak:n}):u==="callee"&<(s)||t.assignmentLayout?l(b([" =>",x],r),{shouldBreak:n}):l(f(b([" =>",x],r)),{shouldBreak:n})}function hl(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:u,shouldPutBodyOnSameLine:i}){let{node:a,parent:p}=e,o=r.expandLastArg&&ae(t,"all")?B(","):"",m=(r.expandLastArg||p.type==="JSXExpressionContainer")&&!d(a)?E:"";return i&&Ni(u)?[" ",l([B("","("),f([E,n]),B("",")"),o,m]),s]:(Vi(u)&&(n=l(["(",f([E,n]),E,")"])),i?[" ",n,s]:[f([x,n,s]),o,m])}var gl=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let s=t[n];if(r(s,n,t))return s}}},Ki=gl;function Dr(e,t,r,n){let{node:s}=e,u=[],i=Ki(!1,s[n],a=>a.type!=="EmptyStatement");return e.each(({node:a})=>{a.type!=="EmptyStatement"&&(u.push(r()),a!==i&&(u.push(F),pe(a,t)&&u.push(F)))},n),u}function Fn(e,t,r){let n=Sl(e,t,r),{node:s,parent:u}=e;if(s.type==="Program"&&(u==null?void 0:u.type)!=="ModuleExpression")return n?[n,F]:"";let i=[];if(s.type==="StaticBlock"&&i.push("static "),i.push("{"),n)i.push(f([F,n]),F);else{let a=e.grandparent;u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"||u.type==="FunctionDeclaration"||u.type==="ComponentDeclaration"||u.type==="HookDeclaration"||u.type==="ObjectMethod"||u.type==="ClassMethod"||u.type==="ClassPrivateMethod"||u.type==="ForStatement"||u.type==="WhileStatement"||u.type==="DoWhileStatement"||u.type==="DoExpression"||u.type==="ModuleExpression"||u.type==="CatchClause"&&!a.finalizer||u.type==="TSModuleDeclaration"||s.type==="StaticBlock"||i.push(F)}return i.push("}"),i}function Sl(e,t,r){let{node:n}=e,s=O(n.directives),u=n.body.some(p=>p.type!=="EmptyStatement"),i=d(n,h.Dangling);if(!s&&!u&&!i)return"";let a=[];return s&&(a.push(Dr(e,t,r,"directives")),(u||i)&&(a.push(F),pe(_(!1,n.directives,-1),t)&&a.push(F))),u&&a.push(Dr(e,t,r,"body")),i&&a.push(J(e,t)),a}function Bl(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var Cn=Bl;function bl(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function Qi(e,t,r){let{node:n}=e;return l([n.variance?r("variance"):"","[",f([r("keyTparam")," in ",r("sourceType")]),"]",bl(n.optional),": ",r("propType")])}function ds(e,t){return e==="+"||e==="-"?e+t:t}function zi(e,t,r){let{node:n}=e,s=Te(t.originalText,q(n),q(n.typeParameter));return l(["{",f([t.bracketSpacing?x:E,l([r("typeParameter"),n.optional?ds(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?B(";"):""]),J(e,t),t.bracketSpacing?x:E,"}"],{shouldBreak:s})}var fr=Cn("typeParameters");function Pl(e,t,r){let{node:n}=e;return z(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Lt(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let u=Pt(e.grandparent),i=e.match(o=>!(o[n].length===1&&we(o[n][0])),void 0,(o,m)=>m==="typeAnnotation",o=>o.type==="Identifier",Es);if(s[n].length===0||!i&&(u||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||Cs(s[n][0]))))return["<",b(", ",e.map(r,n)),kl(e,t),">"];let p=s.type==="TSTypeParameterInstantiation"?"":Pl(e,t,n)?",":ae(t)?B(","):"";return l(["<",f([E,b([",",x],e.map(r,n))]),p,E,">"],{id:fr(s)})}function kl(e,t){let{node:r}=e;if(!d(r,h.Dangling))return"";let n=!d(r,h.Line),s=J(e,t,{indent:!n});return n?s:[s,F]}function An(e,t,r){let{node:n,parent:s}=e,u=[n.type==="TSTypeParameter"&&n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(s.type==="TSMappedType")return s.readonly&&u.push(ds(s.readonly,"readonly")," "),u.push("[",i),n.constraint&&u.push(" in ",r("constraint")),s.nameType&&u.push(" as ",e.callParent(()=>r("nameType"))),u.push("]"),u;if(n.variance&&u.push(r("variance")),n.in&&u.push("in "),n.out&&u.push("out "),u.push(i),n.bound&&(n.usesExtendsBound&&u.push(" extends "),u.push(N(e,r,"bound"))),n.constraint){let a=Symbol("constraint");u.push(" extends",l(f(x),{id:a}),ke,dt(r("constraint"),{groupId:a}))}return n.default&&u.push(" = ",r("default")),l(u)}var Zi=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Tn(e,t,r){let{node:n}=e,s=[K(e),Ht(e),"class"],u=d(n.id,h.Trailing)||d(n.typeParameters,h.Trailing)||d(n.superClass)||O(n.extends)||O(n.mixins)||O(n.implements),i=[],a=[];if(n.id&&i.push(" ",r("id")),i.push(r("typeParameters")),n.superClass){let m=[Ll(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],y=e.call(D=>["extends ",ye(D,m,t)],"superClass");u?a.push(x,l(y)):a.push(" ",y)}else a.push(xs(e,t,r,"extends"));a.push(xs(e,t,r,"mixins"),xs(e,t,r,"implements"));let p;if(u){let m;ra(n)?m=[...i,f(a)]:m=f([...i,a]),p=ea(n),s.push(l(m,{id:p}))}else s.push(...i,...a);let o=n.body;return u&&O(o.body)?s.push(B(F," ",{groupId:p})):s.push(" "),s.push(r("body")),s}var ea=Cn("heritageGroup");function ta(e){return B(F,"",{groupId:ea(e)})}function Il(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function ra(e){return e.typeParameters&&!d(e.typeParameters,h.Trailing|h.Line)&&!Il(e)}function xs(e,t,r,n){let{node:s}=e;if(!O(s[n]))return"";let u=J(e,t,{marker:n});return[ra(s)?B(" ",x,{groupId:fr(s.typeParameters)}):x,u,u&&F,n,l(f([x,b([",",x],e.map(r,n))]))]}function Ll(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?l(B(["(",f([E,n]),E,")"],n)):n}function dn(e,t,r){let{node:n}=e,s=[];return O(n.decorators)&&s.push(ys(e,t,r)),s.push(Nt(n)),n.static&&s.push("static "),s.push(Ht(e)),n.override&&s.push("override "),s.push(yr(e,t,r)),s}function xn(e,t,r){let{node:n}=e,s=[],u=t.semi?";":"";O(n.decorators)&&s.push(ys(e,t,r)),s.push(K(e),Nt(n)),n.static&&s.push("static "),s.push(Ht(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(Et(e,t,r),$(e),cn(e),N(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[xt(e,t,r,s," =",i?void 0:"value"),u]}function na(e,t,r){let{node:n}=e,s=[];return e.each(({node:u,next:i,isLast:a})=>{s.push(r()),!t.semi&&Zi(u)&&wl(u,i)&&s.push(";"),a||(s.push(F),pe(u,t)&&s.push(F))},"body"),d(n,h.Dangling)&&s.push(J(e,t)),["{",s.length>0?[f([F,s]),F]:"","}"]}function wl(e,t){var s;let{type:r,name:n}=e.key;if(!e.computed&&r==="Identifier"&&(n==="static"||n==="get"||n==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let u=(s=t.key)==null?void 0:s.name;if(u==="in"||u==="instanceof")return!0}if(Zi(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}var Ol=v(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function hs(e){return Ol(e)?hs(e.expression):e}var sa=v(["FunctionExpression","ArrowFunctionExpression"]);function ua(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function ia(e,t){if(t.semi||gs(e,t)||Ss(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>aa(e,t),"expression"))}function aa(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!En(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return Be(e,t)?!0:Rt(r)?e.call(()=>aa(e,t),...Pr(r)):!1}function gs({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&H(e.expression)&&t.type==="Program"&&t.body.length===1}function Ss({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function oa(e,t,r){let n=[r("expression")];if(Ss(e,t)){let s=hs(e.node.expression);(sa(s)||ua(s))&&n.push(";")}else gs(e,t)||t.semi&&n.push(";");return n}function pa(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=b([",",x],n);return t.__isVueForBindingLeft?["(",f([E,l(s)]),E,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return b([",",x],n)}}function ma(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return ca(r);case"BigIntLiteral":return hn(r.extra.raw);case"NumericLiteral":return ft(r.extra.raw);case"StringLiteral":return Ie(Ze(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return la(r.extra.raw,t);case"Literal":{if(r.regex)return ca(r.regex);if(r.bigint)return hn(r.raw);let{value:n}=r;return typeof n=="number"?ft(r.raw):typeof n=="string"?_l(e)?la(r.raw,t):Ie(Ze(r.raw,t)):String(n)}}}function _l(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function hn(e){return e.toLowerCase()}function ca({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function la(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function jl(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let u=q(s);if(u>r)break;let i=k(s);if(ie.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function gn(e,t,r){let{node:n}=e,s=[xi(e,t,r),K(e),"export",Da(n)?" default":""],{declaration:u,exported:i}=n;return d(n,h.Dangling)&&(s.push(" ",J(e,t)),wr(n)&&s.push(F)),u?s.push(" ",r("declaration")):(s.push(Rl(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),i&&s.push(" as ",r("exported"))):s.push(Ea(e,t,r)),s.push(fa(e,t,r),Ca(e,t,r))),s.push(Ml(n,t)),s}var vl=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Ml(e,t){return t.semi&&(!e.declaration||Da(e)&&!vl(e.declaration))?";":""}function bs(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Ps(e,t){return bs(e.importKind,t)}function Rl(e){return bs(e.exportKind)}function fa(e,t,r){let{node:n}=e;if(!n.source)return"";let s=[];return Fa(n,t)&&s.push(" from"),s.push(" ",r("source")),s}function Ea(e,t,r){let{node:n}=e;if(!Fa(n,t))return"";let s=[" "];if(O(n.specifiers)){let u=[],i=[];e.each(()=>{let a=e.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")u.push(r());else if(a==="ExportSpecifier"||a==="ImportSpecifier")i.push(r());else throw new Me(n,"specifier")},"specifiers"),s.push(b(", ",u)),i.length>0&&(u.length>0&&s.push(", "),i.length>1||u.length>0||n.specifiers.some(p=>d(p))?s.push(l(["{",f([t.bracketSpacing?x:E,b([",",x],i)]),B(ae(t)?",":""),t.bracketSpacing?x:E,"}"])):s.push(["{",t.bracketSpacing?" ":"",...i,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function Fa(e,t){return e.type!=="ImportDeclaration"||O(e.specifiers)||e.importKind==="type"?!0:Bs(t,q(e),q(e.source)).trimEnd().endsWith("from")}function Jl(e,t){var n,s;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=Bs(t,k(e.source),(s=e.attributes)!=null&&s[0]?q(e.attributes[0]):k(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||O(e.attributes)?"with":void 0}function Ca(e,t,r){let{node:n}=e;if(!n.source)return"";let s=Jl(n,t);if(!s)return"";let u=[` ${s} {`];return O(n.attributes)&&(t.bracketSpacing&&u.push(" "),u.push(b(", ",e.map(r,"attributes"))),t.bracketSpacing&&u.push(" ")),u.push("}"),u}function Aa(e,t,r){let{node:n}=e,{type:s}=n,u=s.startsWith("Import"),i=u?"imported":"local",a=u?"local":"exported",p=n[i],o=n[a],m="",y="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?m="*":p&&(m=r(i)),o&&!ql(n)&&(y=r(a)),[bs(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),m,m&&y?" as ":"",y]}function ql(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!eu(t,r))return!1;if(te(t))return t.value===r.value&&fe(t)===fe(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function ht(e,t,r){var j;let n=t.semi?";":"",{node:s}=e,u=s.type==="ObjectTypeAnnotation",i=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumBigIntBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",a=[s.type==="TSTypeLiteral"||i?"members":s.type==="TSInterfaceBody"?"body":"properties"];u&&a.push("indexers","callProperties","internalSlots");let p=a.flatMap(I=>e.map(({node:U})=>({node:U,printed:r(),loc:q(U)}),I));a.length>1&&p.sort((I,U)=>I.loc-U.loc);let{parent:o,key:m}=e,y=u&&m==="body"&&(o.type==="InterfaceDeclaration"||o.type==="DeclareInterface"||o.type==="DeclareClass"),D=s.type==="TSInterfaceBody"||i||y||s.type==="ObjectPattern"&&o.type!=="FunctionDeclaration"&&o.type!=="FunctionExpression"&&o.type!=="ArrowFunctionExpression"&&o.type!=="ObjectMethod"&&o.type!=="ClassMethod"&&o.type!=="ClassPrivateMethod"&&o.type!=="AssignmentPattern"&&o.type!=="CatchClause"&&s.properties.some(I=>I.value&&(I.value.type==="ObjectPattern"||I.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&p.length>0&&Te(t.originalText,q(s),p[0].loc),C=y?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?B(n,";"):",",c=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",A=s.exact?"|}":"}",T=[],S=p.map(I=>{let U=[...T,l(I.printed)];return T=[C,x],(I.node.type==="TSPropertySignature"||I.node.type==="TSMethodSignature"||I.node.type==="TSConstructSignatureDeclaration"||I.node.type==="TSCallSignatureDeclaration")&&d(I.node,h.PrettierIgnore)&&T.shift(),pe(I.node,t)&&T.push(F),U});if(s.inexact||s.hasUnknownMembers){let I;if(d(s,h.Dangling)){let U=d(s,h.Line);I=[J(e,t),U||Z(t.originalText,k(_(!1,ct(s),-1)))?F:x,"..."]}else I=["..."];S.push([...T,...I])}let g=(j=_(!1,p,-1))==null?void 0:j.node,M=!(s.inexact||s.hasUnknownMembers||g&&(g.type==="RestElement"||(g.type==="TSPropertySignature"||g.type==="TSCallSignatureDeclaration"||g.type==="TSMethodSignature"||g.type==="TSConstructSignatureDeclaration")&&d(g,h.PrettierIgnore))),R;if(S.length===0){if(!d(s,h.Dangling))return[c,A,N(e,r)];R=l([c,J(e,t,{indent:!0}),E,A,$(e),N(e,r)])}else R=[y&&O(s.properties)?ta(o):"",c,f([t.bracketSpacing?x:E,...S]),B(M&&(C!==","||ae(t))?C:""),t.bracketSpacing?x:E,A,$(e),N(e,r)];return e.match(I=>I.type==="ObjectPattern"&&!O(I.decorators),ks)||we(s)&&(e.match(void 0,(I,U)=>U==="typeAnnotation",(I,U)=>U==="typeAnnotation",ks)||e.match(void 0,(I,U)=>I.type==="FunctionTypeParam"&&U==="typeAnnotation",ks))||!D&&e.match(I=>I.type==="ObjectPattern",I=>I.type==="AssignmentExpression"||I.type==="VariableDeclarator")?R:l(R,{shouldBreak:D})}function ks(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Fs(e)}function Wl(e){let t=[e];for(let r=0;rD[G]===n),c=D.type===n.type&&!C,A,T,S=0;do T=A||n,A=e.getParentNode(S),S++;while(A&&A.type===n.type&&a.every(G=>A[G]!==T));let g=A||D,M=T;if(s&&(H(n[a[0]])||H(p)||H(o)||Wl(M))){y=!0,c=!0;let G=Q=>[B("("),f([E,Q]),E,B(")")],ue=Q=>Q.type==="NullLiteral"||Q.type==="Literal"&&Q.value===null||Q.type==="Identifier"&&Q.name==="undefined";m.push(" ? ",ue(p)?r(u):G(r(u))," : ",o.type===n.type||ue(o)?r(i):G(r(i)))}else{let G=Q=>t.useTabs?f(r(Q)):he(2,r(Q)),ue=[x,"? ",p.type===n.type?B("","("):"",G(u),p.type===n.type?B("",")"):"",x,": ",G(i)];m.push(D.type!==n.type||D[i]===n||C?ue:t.useTabs?Mr(f(ue)):he(Math.max(0,t.tabWidth-2),ue))}let R=[u,i,...a].some(G=>d(n[G],ue=>ee(ue)&&Te(t.originalText,q(ue),k(ue)))),j=G=>D===g?l(G,{shouldBreak:R}):R?[G,Ee]:G,I=!y&&(W(D)||D.type==="NGPipeExpression"&&D.left===n)&&!D.computed,U=Xl(e),P=j([Gl(e,t,r),c?m:f(m),s&&I&&!U?E:""]);return C||U?l([f([E,P]),E]):P}function Yl(e,t){return(W(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Hl(e,t,r,n){return[...e.map(u=>ct(u)),ct(t),ct(r)].flat().some(u=>ee(u)&&Te(n.originalText,q(u),k(u)))}var Nl=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Vl(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let u=e.getParentNode(s);if(u.type==="ChainExpression"&&u.expression===n||L(u)&&u.callee===n||W(u)&&u.object===n||u.type==="TSNonNullExpression"&&u.expression===n){n=u;continue}u.type==="NewExpression"&&u.callee===n||Ae(u)&&u.expression===n?(r=e.getParentNode(s+1),n=u):r=u}return n===t?!1:r[Nl.get(r.type)]===n}var Is=e=>[B("("),f([E,e]),E,B(")")];function Kt(e,t,r,n){if(!t.experimentalTernaries)return Ta(e,t,r);let{node:s}=e,u=s.type==="ConditionalExpression",i=s.type==="TSConditionalType"||s.type==="ConditionalTypeAnnotation",a=u?"consequent":"trueType",p=u?"alternate":"falseType",o=u?["test"]:["checkType","extendsType"],m=s[a],y=s[p],D=o.map(qe=>s[qe]),{parent:C}=e,c=C.type===s.type,A=c&&o.some(qe=>C[qe]===s),T=c&&C[p]===s,S=m.type===s.type,g=y.type===s.type,M=g||T,R=t.tabWidth>2||t.useTabs,j,I,U=0;do I=j||s,j=e.getParentNode(U),U++;while(j&&j.type===s.type&&o.every(qe=>j[qe]!==I));let P=j||C,G=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(C.type==="AssignmentExpression"||C.type==="VariableDeclarator"||C.type==="ClassProperty"||C.type==="PropertyDefinition"||C.type==="ClassPrivateProperty"||C.type==="ObjectProperty"||C.type==="Property"),ue=(C.type==="ReturnStatement"||C.type==="ThrowStatement")&&!(S||g),Q=u&&P.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",gt=Vl(e),Ft=Yl(s,C),w=i&&Be(e,t),ne=R?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",de=Hl(D,m,y,t)||S||g,ot=!M&&!c&&!i&&(Q?m.type==="NullLiteral"||m.type==="Literal"&&m.value===null:nr(m,t)&&Mn(s.test,3)),St=M||T||i&&!c||c&&u&&Mn(s.test,1)||ot,_s=[];!S&&d(m,h.Dangling)&&e.call(qe=>{_s.push(J(qe,t),F)},"consequent");let Qt=[];d(s.test,h.Dangling)&&e.call(qe=>{Qt.push(J(qe,t))},"test"),!g&&d(y,h.Dangling)&&e.call(qe=>{Qt.push(J(qe,t))},"alternate"),d(s,h.Dangling)&&Qt.push(J(e,t));let js=Symbol("test"),qa=Symbol("consequent"),Fr=Symbol("test-and-consequent"),Wa=u?[Is(r("test")),s.test.type==="ConditionalExpression"?Ee:""]:[r("checkType")," ","extends"," ",s.extendsType.type==="TSConditionalType"||s.extendsType.type==="ConditionalTypeAnnotation"||s.extendsType.type==="TSMappedType"?r("extendsType"):l(Is(r("extendsType")))],vs=l([Wa," ?"],{id:js}),Ga=r(a),Cr=f([S||Q&&(H(m)||c||M)?F:x,_s,Ga]),Ua=St?l([vs,M?Cr:B(Cr,l(Cr,{id:qa}),{groupId:js})],{id:Fr}):[vs,Cr],kn=r(p),Ms=ot?B(kn,Mr(Is(kn)),{groupId:Fr}):kn,zt=[Ua,Qt.length>0?[f([F,Qt]),F]:g?F:ot?B(x," ",{groupId:Fr}):x,":",g?" ":R?St?B(ne,B(M||ot?" ":ne," "),{groupId:Fr}):B(ne," "):" ",g?Ms:l([f(Ms),Q&&!ot?E:""]),Ft&&!gt?E:"",de?Ee:""];return G&&!de?l(f([E,l(zt)])):G||ue?l(f(zt)):gt||i&&A?l([f([E,zt]),w?E:""]):C===P?l(zt):zt}function da(e,t,r,n){let{node:s}=e;if(kr(s))return ma(e,t);let u=t.semi?";":"",i=[];switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),F];case"File":return pa(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return oa(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!d(s.expression)&&(se(s.expression)||X(s.expression))?["(",r("expression"),")"]:l(["(",f([E,r("expression")]),E,")"]);case"AssignmentExpression":return Oi(e,t,r);case"VariableDeclarator":return _i(e,t,r);case"BinaryExpression":case"LogicalExpression":return Nr(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Pi(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return s.object&&i.push(r("object")),i.push(l(f([E,Vr(e,t,r)]))),i;case"Identifier":return[s.name,$(e),cn(e),N(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return ln(e,r);case"FunctionDeclaration":case"FunctionExpression":return Dn(e,r,t,n);case"ArrowFunctionExpression":return $i(e,t,r,n);case"YieldExpression":return i.push("yield"),s.delegate&&i.push("*"),s.argument&&i.push(" ",r("argument")),i;case"AwaitExpression":if(i.push("await"),s.argument){i.push(" ",r("argument"));let{parent:a}=e;if(L(a)&&a.callee===s||W(a)&&a.object===s){i=[f([E,...i]),E];let p=e.findAncestor(o=>o.type==="AwaitExpression"||o.type==="BlockStatement");if((p==null?void 0:p.type)!=="AwaitExpression"||!ie(p.argument,o=>o===s))return l(i)}}return i;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return gn(e,t,r);case"ImportDeclaration":return ya(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Aa(e,t,r);case"ImportAttribute":return yn(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return Fn(e,t,r);case"ClassBody":return na(e,t,r);case"ThrowStatement":return Hi(e,t,r);case"ReturnStatement":return Yi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return $r(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ht(e,t,r);case"Property":return bt(s)?yr(e,t,r):yn(e,t,r);case"ObjectProperty":return yn(e,t,r);case"ObjectMethod":return yr(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Vt(e,t,r);case"SequenceExpression":{let{parent:a}=e;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let p=[];return e.each(({isFirst:o})=>{o?p.push(r()):p.push(",",f([x,r()]))},"expressions"),l(p)}return l(b([",",x],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),u];case"UnaryExpression":return i.push(s.operator),/[a-z]$/u.test(s.operator)&&i.push(" "),d(s.argument)?i.push(l(["(",f([E,r("argument")]),E,")"])):i.push(r("argument")),i;case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return Kt(e,t,r,n);case"VariableDeclaration":{let a=e.map(r,"declarations"),p=e.parent,o=p.type==="ForStatement"||p.type==="ForInStatement"||p.type==="ForOfStatement",m=s.declarations.some(D=>D.init),y;return a.length===1&&!d(s.declarations[0])?y=a[0]:a.length>0&&(y=f(a[0])),i=[K(e),s.kind,y?[" ",y]:"",f(a.slice(1).map(D=>[",",m&&!o?F:x,D]))],o&&p.body!==s||i.push(u),l(i)}case"WithStatement":return l(["with (",r("object"),")",Dt(s.body,r("body"))]);case"IfStatement":{let a=Dt(s.consequent,r("consequent")),p=l(["if (",l([f([E,r("test")]),E]),")",a]);if(i.push(p),s.alternate){let o=d(s.consequent,h.Trailing|h.Line)||wr(s),m=s.consequent.type==="BlockStatement"&&!o;i.push(m?" ":F),d(s,h.Dangling)&&i.push(J(e,t),o?F:" "),i.push("else",l(Dt(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return i}case"ForStatement":{let a=Dt(s.body,r("body")),p=J(e,t),o=p?[p,E]:"";return!s.init&&!s.test&&!s.update?[o,l(["for (;;)",a])]:[o,l(["for (",l([f([E,r("init"),";",x,r("test"),";",x,r("update")]),E]),")",a])]}case"WhileStatement":return l(["while (",l([f([E,r("test")]),E]),")",Dt(s.body,r("body"))]);case"ForInStatement":return l(["for (",r("left")," in ",r("right"),")",Dt(s.body,r("body"))]);case"ForOfStatement":return l(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",Dt(s.body,r("body"))]);case"DoWhileStatement":{let a=Dt(s.body,r("body"));return i=[l(["do",a])],s.body.type==="BlockStatement"?i.push(" "):i.push(F),i.push("while (",l([f([E,r("test")]),E]),")",u),i}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return i.push(s.type==="BreakStatement"?"break":"continue"),s.label&&i.push(" ",r("label")),i.push(u),i;case"LabeledStatement":return s.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let a=d(s.param,o=>!ee(o)||o.leading&&Z(t.originalText,k(o))||o.trailing&&Z(t.originalText,q(o),{backwards:!0})),p=r("param");return["catch ",a?["(",f([E,p]),E,") "]:["(",p,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[l(["switch (",f([E,r("discriminant")]),E,")"])," {",s.cases.length>0?f([F,b(F,e.map(({node:a,isLast:p})=>[r(),!p&&pe(a,t)?F:""],"cases"))]):"",F,"}"];case"SwitchCase":{s.test?i.push("case ",r("test"),":"):i.push("default:"),d(s,h.Dangling)&&i.push(" ",J(e,t));let a=s.consequent.filter(p=>p.type!=="EmptyStatement");if(a.length>0){let p=Dr(e,t,r,"consequent");i.push(a.length===1&&a[0].type==="BlockStatement"?[" ",p]:f([F,p]))}return i}case"DebuggerStatement":return["debugger",u];case"ClassDeclaration":case"ClassExpression":return Tn(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return dn(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return xn(e,t,r);case"TemplateElement":return Ie(s.value.raw);case"TemplateLiteral":return Wr(e,r,t);case"TaggedTemplateExpression":return Xu(e,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Me(s,"ESTree")}}function Sn(e,t,r){let{parent:n,node:s,key:u}=e,i=[r("expression")];switch(s.type){case"AsConstExpression":i.push(" as const");break;case"AsExpression":case"TSAsExpression":i.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":i.push(" satisfies ",r("typeAnnotation"));break}return u==="callee"&&L(n)||u==="object"&&W(n)?l([f([E,...i]),E]):i}function xa(e,t,r){let{node:n}=e,s=[K(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let u=$l(e,r,t);return n.rendersType?s.push(l([u," ",r("rendersType")])):s.push(l([u])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function $l(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",J(e,r,{filter:i=>ge(r.originalText,k(i))===")"}),")"];let u=[];return Ql(e,(i,a)=>{let p=a===s.length-1;p&&n.rest&&u.push("..."),u.push(t()),!p&&(u.push(","),pe(s[a],r)?u.push(F,F):u.push(x))}),["(",f([E,...u]),B(ae(r,"all")&&!Kl(n,s)?",":""),E,")"]}function Kl(e,t){var r;return e.rest||((r=_(!1,t,-1))==null?void 0:r.type)==="RestElement"}function Ql(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function ha(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function ga(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function Sa(e,t,r){return ht(e,r,t)}function Bn(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function Ba(e,t,r){let{node:n}=e,s;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":s="boolean";break;case"EnumNumberBody":s="number";break;case"EnumBigIntBody":s="bigint";break;case"EnumStringBody":s="string";break;case"EnumSymbolBody":s="symbol";break}return[s?`of ${s} `:"",Sa(e,t,r)]}function bn(e,t,r){let{node:n}=e;return[K(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?Sa(e,t,r):t("body")]}function Pa(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let u=Je(e,r,t,!1,!0),i=$t(e,r),a=at(n,i);return s.push(l([a?l(u):u,i]),n.body?" ":"",r("body")),s}function ka(e,t,r){let{node:n}=e,s=[K(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function ba(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function Ia(e,t,r){let{node:n}=e,s=[];s.push(ba(e)?"":"hook ");let u=Je(e,r,t,!1,!0),i=[];return i.push(ba(e)?": ":" => ",r("returnType")),at(n,i)&&(u=l(u)),s.push(u,i),l(s)}function Pn(e,t,r){let{node:n}=e,s=[K(e),"interface"],u=[],i=[];n.type!=="InterfaceTypeAnnotation"&&u.push(" ",r("id"),r("typeParameters"));let a=n.typeParameters&&!d(n.typeParameters,h.Trailing|h.Line);return O(n.extends)&&i.push(a?B(" ",x,{groupId:fr(n.typeParameters)}):x,"extends ",(n.extends.length===1?mu:f)(b([",",x],e.map(r,"extends")))),d(n.id,h.Trailing)||O(n.extends)?a?s.push(l([...u,f(i)])):s.push(l(f([...u,...i]))):s.push(...u,...i),s.push(" ",r("body")),l(s)}function La(e,t,r){let{node:n}=e;if(Sr(n))return n.type.slice(0,-14).toLowerCase();let s=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return xa(e,t,r);case"ComponentParameter":return ha(e,t,r);case"ComponentTypeParameter":return ga(e,t,r);case"HookDeclaration":return Pa(e,t,r);case"DeclareHook":return ka(e,t,r);case"HookTypeAnnotation":return Ia(e,t,r);case"DeclareClass":return Tn(e,t,r);case"DeclareFunction":return[K(e),"function ",r("id"),r("predicate"),s];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",N(e,r),s];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[K(e),n.kind??"var"," ",r("id"),s];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return gn(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return Ri(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Qr(e,t,r);case"IntersectionTypeAnnotation":return zr(e,t,r);case"UnionTypeAnnotation":return Zr(e,t,r);case"ConditionalTypeAnnotation":return Kt(e,t,r);case"InferTypeAnnotation":return rn(e,t,r);case"FunctionTypeAnnotation":return en(e,t,r);case"TupleTypeAnnotation":return Vt(e,t,r);case"TupleTypeLabeledElement":return sn(e,t,r);case"TupleTypeSpreadElement":return nn(e,t,r);case"GenericTypeAnnotation":return[r("id"),Lt(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return tn(e,t,r);case"TypeAnnotation":return un(e,t,r);case"TypeParameter":return An(e,t,r);case"TypeofTypeAnnotation":return on(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return an(r);case"DeclareEnum":case"EnumDeclaration":return bn(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Ba(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Bn(e,r);case"FunctionTypeParam":{let u=n.name?r("name"):e.parent.this===n?"this":"";return[u,$(e),u?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Pn(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:u}=n;return vt.ok(u==="plus"||u==="minus"),u==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return Qi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let u="";return n.proto?u="proto ":n.static&&(u="static "),[u,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Et(e,t,r),$(e),bt(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return ht(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",$(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return ln(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ie(Ze(fe(n),t));case"NumberLiteralTypeAnnotation":return ft(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return hn(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),N(e,r),")"];case"TypePredicate":return pn(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Lt(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Sn(e,t,r)}}function wa(e,t,r){var i;let{node:n}=e;if(!n.type.startsWith("TS"))return;if(Br(n))return n.type.slice(2,-7).toLowerCase();let s=t.semi?";":"",u=[];switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":{let a=!(X(n.expression)||se(n.expression)),p=l(["<",f([E,r("typeAnnotation")]),E,">"]),o=[B("("),f([E,r("expression")]),E,B(")")];return a?Ke([[p,r("expression")],[p,l(o,{shouldBreak:!0})],[p,r("expression")]]):l([p,r("expression")])}case"TSDeclareFunction":return Dn(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),s];case"TSModuleBlock":return Fn(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return ht(e,t,r);case"TSTypeAliasDeclaration":return Qr(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return dn(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return xn(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(n.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Wr(e,r,t);case"TSNamedTupleMember":return sn(e,t,r);case"TSRestType":return nn(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pn(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Lt(e,t,r,"params");case"TSTypeParameter":return An(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return Sn(e,t,r);case"TSArrayType":return an(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Et(e,t,r),$(e),N(e,r)];case"TSParameterProperty":return[Nt(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return on(e,r);case"TSIndexSignature":{let a=n.parameters.length>1?B(ae(t)?",":""):"",p=l([f([E,b([", ",E],e.map(r,"parameters"))]),a,E]),o=e.parent.type==="ClassBody"&&e.key==="body";return[o&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?p:"","]",N(e,r),o?s:""]}case"TSTypePredicate":return pn(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[n.isTypeOf?"typeof ":"","import(",r("argument"),")",n.qualifier?[".",r("qualifier")]:"",Lt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return tn(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return zi(e,t,r);case"TSMethodSignature":{let a=n.kind&&n.kind!=="method"?`${n.kind} `:"";u.push(Nt(n),a,n.computed?"[":"",r("key"),n.computed?"]":"",$(e));let p=Je(e,r,t,!1,!0),o=n.returnType?"returnType":"typeAnnotation",m=n[o],y=m?N(e,r,o):"",D=at(n,y);return u.push(D?l(p):p),m&&u.push(l(y)),l(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return bn(e,r,t);case"TSEnumMember":return Bn(e,r);case"TSImportEqualsDeclaration":return[n.isExport?"export ":"","import ",Ps(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:a}=e,p=a.type==="TSModuleDeclaration",o=((i=n.body)==null?void 0:i.type)==="TSModuleDeclaration";return p?u.push("."):(u.push(K(e)),n.kind!=="global"&&u.push(n.kind," ")),u.push(r("id")),o?u.push(r("body")):n.body?u.push(" ",l(r("body"))):u.push(s),u}case"TSConditionalType":return Kt(e,t,r);case"TSInferType":return rn(e,t,r);case"TSIntersectionType":return zr(e,t,r);case"TSUnionType":return Zr(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return en(e,t,r);case"TSTupleType":return Vt(e,t,r);case"TSTypeReference":return[r("typeName"),Lt(e,t,r,n.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return un(e,t,r);case"TSEmptyBodyFunctionExpression":return fn(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return As(e,r,"?");case"TSJSDocNonNullableType":return As(e,r,"!");case"TSParenthesizedType":default:throw new Me(n,"TypeScript")}}function zl(e,t,r,n){if(Hr(e))return li(e,t);for(let s of[di,Fi,La,wa,da]){let u=s(e,t,r,n);if(u!==void 0)return u}}var Zl=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function em(e,t,r,n){var y;e.isRoot&&((y=t.__onHtmlBindingRoot)==null||y.call(t,e.node,t));let s=zl(e,t,r,n);if(!s)return"";let{node:u}=e;if(Zl(u))return s;let i=O(u.decorators),a=hi(e,t,r),p=u.type==="ClassExpression";if(i&&!p)return or(s,D=>l([a,D]));let o=Be(e,t),m=ia(e,t);return!a&&!o&&!m?s:or(s,D=>[m?";":"",o?"(":"",o&&p&&i?[f([x,a,D]),x]:[a,D],o?")":""])}var Oa=em;var tm={avoidAstMutation:!0};var _a=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}];var ws={};Ar(ws,{getVisitorKeys:()=>va,massageAstNode:()=>Ra,print:()=>sm});var rm={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},ja=rm;var nm=hr(ja),va=nm;function sm(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),F];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",f([F,b([",",F],s)]),F,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",f([F,b([",",F],e.map(r,"properties"))]),F,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Ma(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Ma(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Me(n,"JSON")}}function Ma(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var um=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Ra(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Ra.ignoredProperties=um;var Er={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var wt="JavaScript",im={arrowParens:{category:wt,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Er.bracketSameLine,bracketSpacing:Er.bracketSpacing,jsxBracketSameLine:{category:wt,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:wt,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:wt,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Er.singleQuote,jsxSingleQuote:{category:wt,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:wt,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:wt,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Er.singleAttributePerLine},Ja=im;var am={estree:Ls,"estree-json":ws},om=[...Gs,..._a];var rx=Os;export{rx as default,om as languages,Ja as options,am as printers}; diff --git a/node_modules/prettier/plugins/flow.js b/node_modules/prettier/plugins/flow.js index f0b83aa4..c61a390f 100644 --- a/node_modules/prettier/plugins/flow.js +++ b/node_modules/prettier/plugins/flow.js @@ -1,19 +1,19 @@ -(function(i){function e(){var f=i();return f.default||f}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow=e()}})(function(){"use strict";var qI0=Object.create;var l5=Object.defineProperty;var BI0=Object.getOwnPropertyDescriptor;var XI0=Object.getOwnPropertyNames;var JI0=Object.getPrototypeOf,KI0=Object.prototype.hasOwnProperty;var YI0=(a0,ox)=>()=>(ox||a0((ox={exports:{}}).exports,ox),ox.exports),FK=(a0,ox)=>{for(var $x in ox)l5(a0,$x,{get:ox[$x],enumerable:!0})},LK=(a0,ox,$x,dr)=>{if(ox&&typeof ox=="object"||typeof ox=="function")for(let nr of XI0(ox))!KI0.call(a0,nr)&&nr!==$x&&l5(a0,nr,{get:()=>ox[nr],enumerable:!(dr=BI0(ox,nr))||dr.enumerable});return a0};var zI0=(a0,ox,$x)=>($x=a0!=null?qI0(JI0(a0)):{},LK(ox||!a0||!a0.__esModule?l5($x,"default",{value:a0,enumerable:!0}):$x,a0)),VI0=a0=>LK(l5({},"__esModule",{value:!0}),a0);var MK=YI0(AD=>{(function(a0){typeof globalThis!="object"&&(this?ox():(a0.defineProperty(a0.prototype,"_T_",{configurable:!0,get:ox}),_T_));function ox(){var $x=this||self;$x.globalThis=$x,delete a0.prototype._T_}})(Object);(function(a0){"use strict";var ox="symbol",$x=126548,dr="renders",nr=71127,Er="member_property",Mr=65007,Qe=66517,dn="jsx_attribute_value_expression",k5=119980,yn="function_declaration",ht="<2>",m5=68466,DD="%=",h5="??",d5=70080,Mp="&",dt="identifier",Up=72163,y5=71723,g5="properties",_5=183969,b5=68223,gn="function_return_annotation",w5=124903,T5=70106,RD=241,FD="(",LD=213,E5=120074,S5=70708,A5=71679,_n="logical",e1="camlinternalFormat.ml",bn="type_guard_annotation",I5=92975,MD=">>>",j5="RestElement",P5=67897,UD=179,N5="start",O5=113775,qp=126521,qD="%i",M3="`",BD="#",C5=43702,Bp=126,D5=110947,wn="function_identifier",Xp=119893,R5=70366,F5=65547,L5=43743,M5=-43,ro=8238,ov="implies",XD=",",eo=8286,Tn="keyof_type",U5=66717,Jp=12336,JD=201,q5=71338,Kp=11565,B5=69289,X5=55291,J5=73030,K5=70479,Y5=69572,z5=11623,En="tuple_spread_element",Sn="component_type_rest_param",to=8239,V5=64310,vv="@]",G5=42993,Yp=11558,zp="Map.bal",U3="public",KD=-32,lv="Literal",An="jsx_member_expression_identifier",In="for_in_assignment_pattern",W5=71450,Vp=126557,Ze=103,$5=12292,H5=110579,Gp=120597,Q5=13311,Z5=12348,jn="export_default_declaration_decl",Pn="tuple_type",xy=113663,Wp=170,ry=67413,YD="Assert_failure",zD="comments",q3="%S",Ut=127343600,ey=12341,ty=67646,VD="ENOTEMPTY",ny=72160,uy=70187,GD=222,iy=12343,WD=2147483647,fy=126624,cy=43442,sy=70312,ay=281,Nn="interface_type",no="new",oy=66256,$p=68296,vy=124908,Hp=126579,Qp=70107,ly=249,py=71167,On="union_type",x2=248,ky=126546,Cn="enum_bigint_member",$D=133,my=67871,hy=66955,HD=1027,Dn="class_declaration",Rn="optional_call",QD="a string",Zp=11703,ZD="<<",x4=126564,Fn="jsx_element",Ln="object_property_type",dy=94207,Mn="enum_declaration",yy=68023,gy=67669,_y=8318,xR="prefix",uo="this",by=126578,Un="if_consequent_statement",rR=-696510241,wy=66963,io="default",r4=72967,yt=101,eR="buffer.ml",Ty=74649,qt=65535,Ey=43709,tR=175,ta="component",nR="===",B3=117,qn="jsx_identifier",uR="EnumDefaultedMember",e4=70006,Sy=70161,Ay=126633,Iy=66965,Bn="member_property_expression",jy=101589,Py=64274,pv="function",Ny=66303,Oy=42954,Cy=126529,Dy=72191,Xn="new_",Ry=64433,t4=126559,Fy=72144,iR="==",na=-744106340,Ly=43359,My=171,fR="Printexc.handle_uncaught_exception",Uy=66735,qy=126534,By=74879,Xy=42785,n4=120629,X3="0o",cR="End_of_file",Jy=66175,sR="&=",Ky="nan",u4=126503,Jn="pattern_number_literal",Yy=43470,Kn="import_namespace_specifier",zy=77711,i4=70302,Yn="component_param",f4="@])",c4=126515,kv=118,_e="continue",Vy=43798,Gy=";@ ",Wy=74751,$y="src/parser/statement_parser.ml",Hy="rmdir",Qy=94177,zn="for_in_statement",aR=12520,oR="TypeParameterInstantiation",H0="",vR="**=",Zy=120126,lR=197,x9=67829,s4="_bigarr02",Vn="export_named_declaration_specifier",a4=": No such file or directory",Gn="render_type",o4=64319,r9=69926,Wn="pattern_object_p",pR="TypeAnnotation",$n="array_type",kR=290,J3="@[%s =@ ",e9=72847,Hn="export_default_declaration",v4=126590,t9=42774,n9=": Not a directory",mv="let",fo=12288,ne="argument",mR=1552,G1="/",l4="an identifier",ss="typeof",p4=68116,u9=182,Qn="declare_export_declaration_decl",i9=67589,f9=66771,K3="class",hR="tokens",k4=70281,m4=255,c9=43638,co="key",s9=69955,dR=">>",Zn="function_expression_or_method",a9=43587,Bt="block",o9=100351,h4="mixed",v9=66503,l9="ENOTDIR",p9=65135,x7="string_literal",be="@ ",k9=43334,r7="if_alternate_statement",m9=70448,d4=8485,e7="type_args",h9=69864,t7="if_statement",yR="+=",n7="typeof_identifier",y4="with",g4=65595,d9=64286,y9=71086,as="true",g9=69423,u7="catch_clause",_9="e",hv="asserts",gR=">>=",_4=131,b9=43388,w9=43887,B2=-48,T9=120779,_R=190,E9=194,i7="pattern_bigint_literal",S9=71351,A9=65629,f7="call",I9=-42,b4=126553,j9=43695,bR=177,P9=42124,N9=12703,O9=12442,C9=11718,w4=70449,T4=126547,D9=67462,os="left",c7="infer_type",R9=11742,F9=65597,E4="Unix.Unix_error",L9=122623,M9=124911,U9=72959,wR="inexact",q9="opaque",s7="object_internal_slot_property_type",TR="Enum `",so=65279,B9=71983,X9=12329,j2=110,a7="spread_property",ER="importKind",Y3=" =",o7="remote_identifier",v7="labeled_statement",l7="jsx_fragment",J9=120770,p7="function_param",ue=112,K9="exportKind",k7="binary",vs="`.",Y9=42511,SR="<=",m7="jsx_spread_attribute",R1="import",h7="typeof_member_identifier",z9=69414,V9=19967,S4=11687,G9=93823,AR=67714067,IR=209,W9=71903,jR=291,$9="of",H9=72e3,A4="typeArguments",d7="type_identifier",y7="pattern_array_element_pattern",I4=69744,dv=192,g7="class_element",_7="export_source",b7="component_param_pattern",Q9=42508,Z9=125124,PR="Unexpected token `",w7="for_in_left_declaration",T7="object_call_property_type",xg="abstract",rg=8584,eg=68786,tg=71999,j4=123214,ng=123565,P4=186,E7="class_implements_interface",N4=126536,ug=69749,NR="Invalid legacy octal ",ig=71295,fg=66927,S7="pattern_expression",cg=11679,sg=-61,O4=65141,ag=11694,A7="update_expression",OR="minus",we="debugger",og=71352,vg=65470,yv="number",lg=123627,C4=64322,D4=43471,I7="for_of_assignment_pattern",R4=126589,pg=43784,CR="Internal Error: Found object private prop",kg=183983,Hr="id",mg=123190,F4="finally",L4=120070,hg=72095,j7="as_expression",P7="syntax",dg=110591,ls="false",DR=-10,M4="AssignmentPattern",N7="typeof_expression",yg=43764,RR="FunctionTypeParam",O7="function_body_any",gg=126627,_g=71998,bg=126543,C7="call_type_arg",wg=64316,U4=64285,Tg=8454,FR=137,LR="**",D7="object_type_property_setter",Eg=68607,R7=108,Sg="out",Ag=68799,ao=65278,F7="jsx_member_expression",Ig=92728,oo="null",jg=66431,Pg=72249,Xt=128,q4=119994,Ng=66207,Og=43583,B4="else",X4=94179,J4=11735,Cg=64911,L7="jsx_attribute_name_namespaced",MR="!",Dg=42539,Rg=72250,Fg=71215,Lg=69746,Mg=65487,M7="pattern_object_property_key",UR=", ",Ug=8505,qg="=",Bg=64111,Xg=8507,K4=120134,Y4="while",Jg=120596,Kg=43002,z3="protected",Yg=68479,zg=43395,Vg=68252,qR="v",Gg=70278,Wg="rendersType",$g=70853,z4=120145,Hg=69297,Qg=73112,V4=8488,Zg=68351,x_=42655,U7="for_of_left_declaration",r_=44031,e_="Failure",t_=92159,q7="object_key_identifier",BR=195,vo="bigint",B7="import_default_specifier",gv=256,X7="member",XR="!==",J7="component_identifier",n_=73008,u_=72283,G4=126500,W4=120127,K7="jsx_attribute_name",Y7="for_statement_init",i_=67711,z7="private_name",$4="case",H4=8489,V7="import_specifier",f_=64279,c_=94098,s_=119974,G7="pattern_string_literal",a_=72969,JR=193,KR="!=",Q4=126520,o_=71944,v_=259,l_=42191,W7="generic_qualified_identifier_type",lo="implements",p_=194559,YR="%",V3="hasUnknownMembers",k_=71039,m_=211,h_=83526,$7="init",H7="jsx_attribute_value",d_=70271,po=240,Q7="function_type_return_annotation",y_=70018,g_="rest",Z7="readonly_type",__=512,b_=68095,w_=120003,Z4=126563,xk=71236,T_=69375,E_=68850,S_=70105,A_=43866,zR="T_RENDERS_QUESTION",rk=888960333,I_=43013,xu="assignment_pattern",j_="specifiers",VR=710,Jt="as",P_=120570,N_=11507,GR=260,WR=204,ru="jsx_element_name_identifier",eu="pattern_object_property_string_literal_key",tu="class_expression",O_=44002,C_=82943,_v="src/parser/type_parser.ml",bv="test",D_=64217,ek="package",$R="collect_comments",HR="Pervasives.do_at_exit",R_=125183,F_=42606,nu="tuple_element",uu="enum_boolean_member",L_=65312,tk=119981,M_=65495,nk=120085,QR=-80,U_=138,uk=126555,q_=65276,y2=128,ZR="{ ",iu="for_statement",fu="ts_satisfies",cu="class_method",ik="if",su="generic_type",Dr=113,B_=43071,X_=72001,J_=71131,K_=70002,xF="renders*",Y_=42888,fk=8469,G3="instanceof",z_=11502,ck=94178,V_=64321,G_=64913,rF="Division_by_zero",W_=92879,$_=71945,eF=185,H_=66938,sk=65535,Q_=113800,tF=": file descriptor already closed",ak=223,nF="*=",Z_=68899,au="switch_case",ou="pattern_array_element",vu="enum_string_member",lu="pattern_object_property_bigint_literal_key",uF="visit_trailing_comment",ok="export",vk=120122,lk=43823,xb=43792,rb=42527,eb=70726,pu="enum_defaulted_member",tb=68497,pk=72349,ku="program",mu="member_type_identifier",nb="object",hu="for_of_statement_lhs",ub=113791,ib=67391,du="jsx_spread_child",kk=126554,mk=8526,hk=43880,dk=69415,fb=43822,yu="pattern_identifier",cb=93052,ko="readonly",Te="name",sb=68119,ab=71494,ob=120121,yk=8486,iF=2047,gu="enum_symbol_body",fF="PropertyDefinition",vb=177976,_u="declare_class",lb=65489,pb=72367,kb=70440,bu="import_named_specifier",cF="Popping lex mode from empty stack",mb=68111,hb=66463,sF="*-/",db=43187,gk=8487,yb=11567,gb=67861,_b=` -`,bb=66383,wu="declare_interface",wb=-24976191,aF=238,Tb=-24,oF="@ }@]",Eb=43645,Sb=176,Ab=119976,_k=69959,Ib=126519,jb=";",vF="trailingComments",bk=65548,Tu="number_literal",wv=449540197,Pb=43704,wk=126584,Nb=8467,lF="||",Tk=11695,Ob="exported",Cb=120712,ps="void",pF="mixins",Db=92783,Rb=215,Eu="body_expression",kF="%ni",W3=">",Su="as_const_expression",Au="jsx_child",Fb=8516,Iu="optional_indexed_access_type",ju="typeof_type",Pu="spread_element",Lb=42963,mF="@[",Nu="component_params",Mb=43042,Ek="",Ou="function_",Sk="for",Ak=65575,Kt="params",Ub=168,hF="win32",mo=8202,dF="@",Ik="^",yF=164,xt="optional",qb=65574,$3="boolean",gF=139,Bb=12548,jk=120539,_F="Not_found",Pk=246,Cu="expression_statement",Xb="EBADF",Jb=66815,Du="module_ref_literal",Kb=55203,Ru="function_param_type",Yb=73064,Nk=70279,zb=110580,bF=233,Vb="<",wF=262,TF="visit_leading_comment",Gb=66855,Wb=66966,$b=66499,Hb=111355,Qb=68680,Zb=206,EF="--",xw=65497,Ok=11711,Fu="function_param_pattern",ho="constructor",rw=5760,SF="infinity",Ck=43642,bj0="fs",ew=92991,Dk=126544,tw=101640,Rk=72162,nw=67583,Fk=8468,F1="typeParameters",AF="elements",uw=71423,IF="Sys_blocked_io",Lu="interface_declaration",Mu="variable_declaration",Uu="function_rest_param",qu="type",iw="Invalid number ",fw=" : flags Open_rdonly and Open_wronly are not compatible",cw=69404,Bu="jsx_element_name_member_expression",Lk="keyof",Mk="never",Xu="with_",Yt=32768,jF="|=",Uk=70404,qk=70441,sw=42969,H3="declare",aw=73061,Ju="object_type",Ku="object_property_value_type",ow=69687,PF="Invalid binary/octal ",NF=230,vw=64324,OF="range",CF="infer",lw=120744,Yu="array_element",pw=70730,kw=43641,DF=166,mw=70461,hw=69890,dw=69487,yw=74862,gw=68149,Bk=73065,RF="%a",_w=72348,FF=172,zu="jsx_expression",bw=65663,ww=126495,LF=245,Tw=124907,Vu="member_property_identifier",MF=226,Ew=43615,Gu="comment",Xk=119965,Wu="catch_clause_pattern",$u="object_type_property_getter",UF=136,Sw=43019,Aw=67455,Jk=126628,qF=331416730,BF="the start of a statement",Iw=122654,jw="shorthand",Pw=43595,Nw=11710,Hu="typeof_qualified_identifier",Ow=72750,XF="elementType",Y2="typeAnnotation",Cw=124895,JF=162,Kk=11559,Dw=67382,KF="??=",Rw=72329,Fw="target",Qu="component_type",YF=284,zF=180,Lw=189,VF=8206,Mw=43513,Uw=173823,qw=126467,Zu="type_guard",Bw=43700,Xw=12783,Yk=8305,xi="type_annotation",Ee="break",zk=42999,Jw="namespace",Kw=65019,GF=160,Yw=70460,ri="expression_or_spread",zw=")",ei="class_private_field",Vw=55215,Gw=65338,Ww=40981,Q3="members",ti="import_declaration",$w=69634,Vk=94031,Hw="ENOENT",Qw=8457,WF="satisfies",ni="generic_identifier_type",ui="function_this_param",Zw=66993,ii="type_",xT=67423,rT=11557,eT=12799,Gk=239,tT=93026,nT=66377,uT=123180,$F=221,HF=-594953737,iT=67967,fT=43586,gt=105,QF="src/parser/flow_lexer.ml",cT=66559,fi="class_property_value",ZF=150,sT=67637,xL="closedir",aT=43010,oT=8521,Wk=69956,vT=42959,rL=212,lT=92735,$k="}",Z3="method",pT=11498,xl=247,ie="empty",ci=16777215,kT=161,mT=42887,ua=116,si="type_identifier_reference",Hk=126634,hT=68029,eL="regexp",dT=70414,rl=121,ai="template_literal_element",yT=8449,gT=126562,yo=12287,_T=-45,Qk=64297,Zk=126523,bT=43301,zt=111,wT=126498,TT=43776,tL="EEXIST",ET=119892,ST=43807,nL=4096,go=252,ks=255,AT=68295,oi="variable_declarator_pattern",vi="do_while",x8="catch",IT=66962,jT=120654,ms=125,li="label_identifier",PT=11263,NT=8525,pi="assignment",OT=191456,CT=43273,uL="%u",DT=65381,RT=110927,FT=65479,LT=120538,_o="await",MT=71487,UT="jsError",qT=110588,BT=120084,XT=42890,Tv=224,ki="object_key",JT=43696,KT=73647,YT=43761,zT=12295,VT=64967,r8=11647,iL=191,Vt=123,GT="generator",WT=123583,mi="for_of_statement",hi="enum_bigint_body",$T=110959,HT=92995,QT=120686,ZT="b",xE=119969,e8=126522,t8=64318,rE=71839,n8=126602,eE=65908,el=65536,fL=231,cL=-602162310,sL="comment_bounds",rt="-",aL=-55,di="pattern_object_property",tE=43493,nE=69505,uE=8471,iE=187,u8=120745,yi="enum_member_identifier",fE=71959,cE=66863,sE=65594,i8=253,f8='"',c8=70286,gi="jsx_attribute_value_literal",aE=68447,oL="the",oE="index out of bounds",_i="declare_export_declaration",bi="jsx_attribute",wi="class_extends",r2=122,z2=106,Ti="binding_pattern",vE=113807,lE=93951,Ev=119,pE="types",kE=8335,Ei="statement_fork_point",Sv="_",mE=65500,Si="function_type",hE=68220,Ai="statement_list",Av=-835925911,dE=123535,vL=258,s8=43815,lL=199,a8=120571,yE=67514,pL=274,kL="Property",o8=72713,mL="Unexpected ",v8=169,hL=", characters ",l8=43867,gE=42537,Ii="component_declaration",dL=" : is a directory",ji="object_key_number_literal",Yr=127,t1=-36,tl=912068366,nl="delete",ia=114,_E=120076,Pi="regexp_literal",bE=65370,wE=65481,l2="value",TE=68405,Iv="operator",ul="const",yL=283,Ni=109,p8="any",EE=69958,SE=70831,AE=73111,IE=72767,jE="Identifier",Oi="jsx_opening_attribute",Ci="conditional_type",PE="loc",NE=67071,k8=120004,OE=43492,CE=70005,gL=188,m8=72272,DE=11389,_L=251,RE=73055,h8=70280,d8=1114111,FE=66421,bL="Stack_overflow",LE=70301,ME=19903,fa="0x",UE=69967,qE=12447,y8=66512,wL=`Fatal error: exception %s -`,il=1e3,BE=69295,g8=120093,TL=">=",EL=149,_8=64325,Di="class_identifier",XE=119967,JE=68415,SL="end",Ri="enum_boolean_body",Fi="member_private_name",Li="super_expression",KE=71955,YE=126514,b8=67593,zE=66939,VE=12591,w8=126538,GE=110590,Mi="component_renders_annotation",WE=72703,$E=72105,T8=65598,HE=73727,E8=126504,S8=126551,QE=70143,fl="from",Ui="class_property",qi="enum_number_body",ZE=42559,xS=93759,rS=66994,Gt="right",AL=225,eS=67702,tS=65473,nS=43697,A8=70855,uS=119993,iS=72103,fS=178205,Bi="call_type_args",cS=66511,Xi="export_batch_specifier",Ji="component_type_param",Wt=782176664,bo="get",cl="local",IL=228,Ki="object_mapped_type_property",Yi="class_decorator",jL=220,zi="enum_body",PL="<<=",Vi="declare_namespace",sS=71956,aS=69839,jv="super",oS=173791,vS=71942,V2="expression",lS=72440,Pv=254,pS=70412,NL="renders?",Gi="try_catch",OL=32752,Wi="declare_module_exports",kS=12320,CL=134,mS=94175,sl="enum",DL=196,$i="import_source",hS=43814,dS=120069,Hi="while_",I8=126537,yS=43262,Qi="function_rest_param_type",gS=66378,j8=119996,Zi="declare_component",_S=73097,bS=70783,wS=43503,TS=131071,ES=11492,SS=92766,RL=173,AS=113770,IS=73029,jS=66978,xf="tagged_template",rf="jsx_element_name",ef="for_init_declaration",PS=123213,tf="object_indexer_property_type",nf="object_spread_property_type",P8=72970,N8=70854,NS=110930,al="var",FL=217,OS=119972,CS=69622,DS=63743,RS=42237,FS=870530776,O8="returnType",LL=56320,Nv="computed",LS=42735,uf="arg_list",MS=67461,ff="export_named_declaration",US=72817,qS=73439,BS=43782,XS=66775,JS=70655,C8="bool",KS=65140,YS=75075,zS=126651,VS=71947,GS=42961,WS=12735,$S=78894,HS=64262,ML=237,W1="interface",UL="Match_failure",QS=42962,ZS=69748,qL="leadingComments",cf="this_expression",ol=461894857,D8=12592,BL=8204,wo="hook",xA=119807,rA=66348,sf="declare_variable",eA=8348,af="optional_member",of=120,vf="arrow_function",tA=72768,nA=70851,lf="array",uA=43249,R8=126468,iA=177983,fA="compare: functional value",cA=126550,sA=64847,pf="binding_type_identifier",aA=120132,kf="function_params",oA=93071,vl=1024,vA=42783,XL=1039100673,JL="@{",lA=12352,pA=42653,kA=120628,mf="declare_function",hf="for_in_statement_lhs",mA=72271,hA=69807,dA=67826,df="syntax_opt",yf="object_key_bigint_literal",KL=243,yA=94032,YL="Undefined_recursive_module",zL=-1053382366,gA=72242,gf="variance_opt",_A=101631,bA="arguments",wA=72161,TA=8511,F8="unknown",EA=43560,VL="the end of an expression statement (`;`)",GL=1026,SA=12543,AA=11670,WL="?",IA=69247,L8=11631,$L=272,M8="line",jA=72202,_f="pattern_object_rest_property",bf=" ",PA=43487,Ov=115,NA=-673950933,wf="intersection_type",OA=120144,ll="is",CA=178207,DA=100343,HL="||=",QL="f",U8=8455,S1=102,Tf="pattern_object_property_number_literal_key",RA=70418,FA=8543,ZL="Internal Error: Found private field in object props",q8=126540,B8=119995,To=8287,Ef="indexed_access_type",Sf="export_named_specifier",xM=224,LA=124926,MA=-103,rM=167,X8=65344,J8=126530,UA=113788,qA=67505,BA="property",XA=43014,Se="return",hs=-85,JA=126601,eM=214,tM="children",Af="type_alias",K8=43259,KA=126583,YA=71958,zA=65613,VA=67431,Y8=126535,GA=69599,If="type_params",jf="object_key_computed",WA=124910,L1="variance",z8=11727,$A=66954,HA=126463,Pf="catch_body",QA=69445,Nf="type_param",Of="component_type_params",ZA=124902,V8=120687,nM="collect_comments_opt",xI=15,rI=120485,eI=70416,tI=125259,Cf="jsx_namespaced_name",nI=43712,uI=72712,uM="~",G8=12448,Df="jsx_member_expression_object",W8=126499,$8=-97,Rf="pattern_object_property_identifier_key",iM=219,Ff="component_body",Lf="opaque_type",Mf=".",iI=43009,fI="consequent",fM="SpreadElement",P2="body",cI=178,cM=202,Uf="jsx_opening_element",qf="declare_module",H8=67638,sI=8477,Bf="object_type_property",aI=110882,Xf="function_body",oI=94111,sM="module",aM="alternate",vI=67839,Eo=8191,lI=43881,oM=": closedir failed",ca="kind",Jf="tuple_labeled_element",So=-46,pI=67640,Kf="declare_type_alias",Q8=70750,kI=77808,pl="column",Yf="jsx_closing_element",mI=66977,hI="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",dI=65786,zf="function_expression",_t=104,Z8=11719,yI=11505,gI="mkdir",_I=70319,vM="Invalid_argument",bI=43738,wI=113817,Vf="bigint_literal",TI=70084,lM=278,EI=126566,xm="do",rm=42622,Gf="computed_key",Wf="pattern_object_property_computed_key",pM="fd ",em=126571,SI=126619,kM=140,sa="prototype",mM=208,AI=67004,kl=130,hM=242,dM=">>>=",II=68863,jI=11726,bt="raw",PI=64466,$f=107,NI=67679,Hf="enum_string_body",OI=244,yM="unreachable jsxtext",gM="*",CI=66335,DI=126570,_M=229,RI=" : file already exists",tm=184,FI=67807,LI=70753,Qf="boolean_literal",MI=65437,UI=70451,qI=67002,Cv=124,Zf="conditional",nm=43260,bM="Sys_error",BI=123135,ml="meta",XI=64109,xc="pattern_array_rest_element",JI=43255,um=67644,rc="pattern_object_rest_property_pattern",ec="sequence",KI=65855,YI=110951,zI=67643,tc="predicate_expression",Ae="static",VI=120512,GI="declaration",im=64317,WI=68437,fm=126558,nc="meta_property",$I=11564,uc="declare_enum",$t="pattern",HI=216,QI=68191,cm="undefined",sm=8319,am=120133,hl=132,ZI=42239,wM=-99,xj=124927,rj=120092,ej=43137,ic="component_rest_param",TM="expected *",tj=125251,EM="%li",nj=55242,uj=12294,fc="enum_number_member",aa="in",SM="\\\\",Ao=":",ij=68115,AM="Cygwin",fj=77823,cj=65615,om=70162,IM="/static/",sj=11519,aj=72966,oj=12686,vj=165,lj=183,dl=129,vm=72192,pj=42964,lm="try",pm=120655,kj=11702,jM="expressions",mj=2048,cc="class_body",hj=55238,PM=240,dj=66915,yj=43311,gj=43018,NM=235,_j=73648,OM="([^/]+)",bj=125258,wj=64829,Tj=68735,CM="++",DM=163,RM="qualification",FM=57343,LM=931,sc="default_opt",Ej=71235,MM=8472,Sj=71934,UM=205,qM=218,BM="callee",Aj=43711,Ij=64284,jj=43754,Pj=43790,XM="%Li",ac="pattern_array_rest_element_pattern",km="decorators",Nj=8304,oc="statement",mm=73062,vc="jsx_children",Oj=70492,Cj=64255,Dj=11630,Rj=1255,hm=67592,dm=43519,ym=64311,gm=12539,Fj="proto",_m=120513,Lj=68031,Io="source",yl="a",Mj=93047,Uj=92927,qj=126588,Bj=73458,Xj=67742,Jj=43714,JM=288,KM=236,Kj=-253313196,gl="label",YM="@[<2>{ ",bm=126539,wm=126552,Yj=120487,zM=268,VM="Out_of_memory",zj=605857695,Vj=94026,GM=267,Tm=126496,oa="async",WM=203,Em=126560,Gj=68287,lc="unary_expression",Wj=-26065557,$j=110587,Sm=120771,Hj=69762,Qj=126502,Dv="set",pc="object_",kc="template_literal",Zj=43258,mc="nullable_type",ds="int_of_string",$M="^=",Ie="predicate",Rv="string",Am=8450,HM="camlinternalMod.ml",xP=70285,ys="+",rP=110575,QM=198,hc="extends",ZM=-692038429,Im=67827,xU=210,rU=227,jm="explicitType",Pm=70452,eP=70497,Fv=63,_l="private",tP=64296,nP=67591,uP=92909,eU="T_JSX_TEXT",iP="Fatal error: exception ",fP=120137,Nm=68120,dc="pattern_array_e",cP=119964,sP=92862,aP=66461,tU="&&=",nU=174,n1=8231,yc="null_literal",uU="/=",oP=66811,Om=70108,vP=67504,lP=11686,pP=67001,kP=" : flags Open_text and Open_binary are not compatible",mP=43741,hP=66204,G2=8233,gc="type_annotation_hint",dP=123197,_c="object_property",iU="${",Cm=70480,fU="&&",bc="type_cast",Lv="%d",Dm=8484,cU=207,yP=70066,gP=68324,Rm=120713,sU=135,Fm=126556,$1="0",M1="yield",Lm=126591,et=100,_P=69551,wc="jsx_element_name_namespaced",aU=232,Tc="object_key_string_literal",Ec="function_this_param_type",Sc="pattern_object_property_pattern",je="throw",Pe="switch",oU=2048,Mm=119970,Ac="toplevel_statement_list",Mv=250,bP=12438,Ic="class_implements",jc="variable_declarator",wP=43713,Um=68096,TP=70457,EP=12538,SP=11734,vU="-=",lU=234,Pc="component_param_name",AP=43123,Nc="class_",pU="|",IP=200,jP=43518,PP=8483,Oc="jsx_attribute_name_identifier",NP=181;function tY(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function nY(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?qm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?qm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Bm(e);var i=x.c,c=e.c;if(x.t==4)if(t<=r)for(var v=0;v=0;v--)c[t+v]=i[r+v];else{for(var a=Math.min(u,i.length-r),v=0;v>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Xm(x){x.t==2?x.c+=Uv(x.l-x.c.length,"\0"):x.c=qm(x.c,0,x.c.length),x.t=0}function OP(x){if(x.length<24){for(var r=0;rYr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function kU(x){for(var r=H0,e=H0,t,u,i,c,v=0,a=x.length;v__?(e.substr(0,1),r+=e,e=H0,r+=x.slice(v,p)):e+=x.slice(v,p),p==a)break;v=p}c=1,++v=55295&&c<57344)&&(c=2)):(c=3,++v1114111)&&(c=3)))))),c<4?(v-=c,e+="\uFFFD"):c>qt?e+=String.fromCharCode(55232+(c>>10),LL+(c&1023)):e+=String.fromCharCode(c),e.length>vl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function _s(x,r,e){this.t=x,this.c=r,this.l=e}_s.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Xm(this);case 0:if(OP(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},_s.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:kU(x)},_s.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new _s(this.t,x,this.l)};function mU(x){return new _s(0,x,x.length)}function wj0(x){return x}function Cc(x){return mU(x)}function Dc(x,r,e,t,u){return gs(Cc(x),r,e,t,u),0}function hU(x){var r=a0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(a0.jsoo_static_env&&a0.jsoo_static_env[x])return a0.jsoo_static_env[x]}var CP=0;(function(){var x=hU("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(XD),e=0;e>>0>=x.l&&cY(),Vr(x,r,e)}function fe(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function bs(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:bs(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var p=new Array(t+1),_=0;_>>0>=x.length-1&&bl(),x}function sY(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function aY(x){return 0}var oY=Math.log2&&Math.log2(11235582092889474e291)==1020;function vY(x){if(oY)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function RP(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var dU=Math.pow(2,-24);function yU(x){throw x}function gU(){yU(U1.Division_by_zero)}function ir(x,r,e){this.lo=x&ci,this.mi=r&ci,this.hi=e&qt}ir.prototype.caml_custom="_j",ir.prototype.copy=function(){return new ir(this.lo,this.mi,this.hi)},ir.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new ir(x,r,e)},ir.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*dU|0)+this.mi*x.lo+this.lo*x.mi,t=(e*dU|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new ir(r,e,t)},ir.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},ir.prototype.isNeg=function(){return this.hi<<16<0},ir.prototype.and=function(x){return new ir(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},ir.prototype.or=function(x){return new ir(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},ir.prototype.xor=function(x){return new ir(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},ir.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new ir(this.lo<>24-x,this.hi<>24-x):x<48?new ir(0,this.lo<>48-x):new ir(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new ir(this.hi>>x-48,0,0)},ir.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new ir(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&qt):new ir(this.hi<<16>>x-32,e,e)},ir.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&ci,this.lo=this.lo<<1&ci},ir.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&ci,this.mi=(this.mi>>>1|this.hi<<23)&ci,this.hi=this.hi>>>1},ir.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new ir(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},ir.prototype.div=function(x){var r=this;x.isZero()&&gU();var e=r.hi^x.hi;r.hi&Yt&&(r=r.neg()),x.hi&Yt&&(x=x.neg());var t=r.udivmod(x).quotient;return e&Yt&&(t=t.neg()),t},ir.prototype.mod=function(x){var r=this;x.isZero()&&gU();var e=r.hi;r.hi&Yt&&(r=r.neg()),x.hi&Yt&&(x=x.neg());var t=r.udivmod(x).modulus;return e&Yt&&(t=t.neg()),t},ir.prototype.toInt=function(){return this.lo|this.mi<<24},ir.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},ir.prototype.toArray=function(){return[this.hi>>8,this.hi&ks,this.mi>>16,this.mi>>8&ks,this.mi&ks,this.lo>>16,this.lo>>8&ks,this.lo&ks]},ir.prototype.lo32=function(){return this.lo|(this.mi&ks)<<24},ir.prototype.hi32=function(){return this.mi>>>8&qt|this.hi<<16};function Jm(x,r,e){return new ir(x,r,e)}function Km(x){if(!isFinite(x))return isNaN(x)?Jm(1,0,OL):x>0?Jm(0,0,OL):Jm(0,0,65520);var r=x==0&&1/x==-1/0?Yt:x>=0?0:Yt;r&&(x=-x);var e=vY(x)+1023;e<=0?(e=0,x/=Math.pow(2,-GL)):(x/=Math.pow(2,e-HD),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var c=x|0;return u=u&xI|r|e<<4,Jm(c,i,u)}function wl(x){return x.toArray()}function _U(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==s4)for(var t=0;t>4;if(u==iF)return r|e|t&xI?NaN:t&Yt?-1/0:1/0;var i=Math.pow(2,-24),c=(r*i+e)*i+(t&xI);return u>0?(c+=16,c*=Math.pow(2,u-HD)):c*=Math.pow(2,-GL),t&Yt&&(c=-c),c}function MP(x){for(var r=x.length,e=1,t=0;t>>24&ks|(r&qt)<<8,r>>>16&qt)}function UP(x){return x.hi32()}function qP(x){return x.lo32()}var kY=s4;function va(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}va.prototype.caml_custom=kY,va.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||W2("bigarray.js: invalid offset"),this.dims.length!=x.length&&W2("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&bl(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&bl(),r=r*this.dims[e]+(x[e]-1);return r},va.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return pY(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Pv,t,u];default:return this.data[x]}},va.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=qP(r),this.data[x*2+1]=UP(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},va.prototype.fill=function(x){switch(this.kind){case 7:var r=qP(x),e=UP(x);if(r==e)this.data.fill(r);else for(var t=0;tc)return 1;if(i!=c){if(!r)return NaN;if(i==i)return 1;if(c==c)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function Bv(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}Bv.prototype=new va,Bv.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:W2("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&bl(),x},Bv.prototype.get=function(x){return this.data[x]},Bv.prototype.set=function(x,r){return this.data[x]=r,0},Bv.prototype.fill=function(x){return this.data.fill(x),0};function wU(x,r,e,t){var u=bU(x);return MP(e)*u!=t.length&&W2("length doesn't match dims"),r==0&&e.length==1&&u==1?new Bv(x,r,e,t):new va(x,r,e,t)}function q1(x){U1.Failure||(U1.Failure=[x2,e_,-3]),DP(U1.Failure,x)}function TU(x,r,e){var t=x.read32s();(t<0||t>16)&&q1("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&ks,c=u>>8&1,v=[];if(e==s4)for(var a=0;a>>17,r=SU(r,461845907),x^=r,x=x<<13|x>>>19,(x+(x<<2)|0)+-430675100|0}function mY(x,r){return x=ws(x,qP(r)),x=ws(x,UP(r)),x}function AU(x,r){return mY(x,Km(r))}function IU(x){var r=MP(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>gv&&(r=gv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=ws(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=ws(e,t)}break;case 4:case 5:r>y2&&(r=y2);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=ws(e,t);r&1&&(e=ws(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function XP(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function JP(x){return x instanceof _s}function NU(x){if(typeof x=="number")return il;if(JP(x))return go;if(XP(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=m4){var r=x[0]|0;return r==Pv?0:r}else{if(x instanceof String)return aR;if(typeof x=="string")return aR;if(x instanceof Number)return il;if(x&&x.caml_custom)return Rj;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function wt(x,r){return xr?1:0}function wY(x,r){return x.t&6&&Xm(x),r.t&6&&Xm(r),x.cr.c?1:0}function Ym(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=NU(x);if(u==Mv){x=x[1];continue}var i=NU(r);if(i==Mv){r=r[1];continue}if(u!==i)return u==il?i==Rj?PU(x,r,-1,e):-1:i==il?u==Rj?PU(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(aY(u)){W2("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=H0,x.t=2):(x.c=Uv(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Bm(x),e+=r;r0&&r===r||(x=x.replace(/_/g,H0),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,H0),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;q1("float_of_string")}function YP(x){x=x;var r=x.length;r>31&&W2("format_int: format too long");for(var e={justify:ys,signstyle:rt,filler:bf,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:QL},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function zP(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=rt)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=H0;if(x.justify==ys&&x.filler==bf)for(var u=e;u20?(S-=20,_/=Math.pow(10,S),_+=new Array(S+1).join($1),y>0&&(_=_+Mf+new Array(y+1).join($1)),_):_.toFixed(y)}var t,u=YP(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Ky,u.filler=bf;else if(!isFinite(r))t="inf",u.filler=bf;else switch(u.conv){case"e":var t=r.toExponential(i),c=t.length;t.charAt(c-3)==_9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var v=t.indexOf(_9),a=+t.slice(v+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var c=v-1;t.charAt(c)==$1;)c--;t.charAt(c)==Mf&&c--,t=t.slice(0,c+1)+t.slice(v),c=t.length,t.charAt(c-3)==_9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break}else{var p=i;if(a<0)p-=a+1,t=r.toFixed(p);else for(;t=r.toFixed(p),t.length>i+1;)p--;if(p){for(var c=t.length-1;t.charAt(c)==$1;)c--;t.charAt(c)==Mf&&c--,t=t.slice(0,c+1)}}break}return zP(u,t)}function zm(x,r){if(x==Lv)return H0+r;var e=YP(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=bf;var u=e.prec-t.length;u>0&&(t=Uv(u,$1)+t)}return zP(e,t)}var CU=0;function Ts(){return CU++}function DU(){return[0]}var Vm=[];function Wx(x,r,e){var t=x[1],u=Vm[e];if(u===void 0)for(var i=Vm.length;i>1|1,r__?(e.substr(0,1),r+=e,e=H0,r+=x.slice(i,v)):e+=x.slice(i,v),v==c)break;i=v}t>6),e+=String.fromCharCode(Xt|t&Fv)):t<55296||t>=FM?e+=String.fromCharCode(xM|t>>12,Xt|t>>6&Fv,Xt|t&Fv):t>=56319||i+1==c||(u=x.charCodeAt(i+1))FM?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(PM|t>>18,Xt|t>>12&Fv,Xt|t>>6&Fv,Xt|t&Fv)),e.length>vl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function Tt(x){return OP(x)?x:SY(x)}function AY(x,r,e){if(!isFinite(x))return isNaN(x)?Tt(Ky):Tt(x>0?SF:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?H0:ys,c=H0;if(t)c=rt;else switch(e){case 43:c=ys;break;case 32:c=bf;break;default:break}if(r>=0&&r<13){var v=Math.pow(2,r*4);x=Math.round(x*v)/v}var a=x.toString(16);if(r>=0){var p=a.indexOf(Mf);if(p<0)a+=Mf+Uv(r,$1);else{var _=p+1+r;a.length<_?a+=Uv(_-a.length,$1):a=a.substr(0,_)}}return Tt(c+fa+a+"p"+i+u.toString(10))}function IY(x){return+x.isZero()}function Gm(x){return new ir(x&ci,x>>24&ci,x>>31&qt)}function jY(x){return x.toInt()}function PY(x){return+x.isNeg()}function GP(x){return x.neg()}function RU(x,r){var e=YP(x);e.signedconv&&PY(r)&&(e.sign=-1,r=GP(r));var t=H0,u=Gm(e.base),i="0123456789abcdef";do{var c=r.udivmod(u);r=c.quotient,t=i.charAt(jY(c.modulus))+t}while(!IY(r));if(e.prec>=0){e.filler=bf;var v=e.prec-t.length;v>0&&(t=Uv(v,$1)+t)}return zP(e,t)}function Nx(x){return x.length}function F0(x,r){return x.charCodeAt(r)}function NY(x,r){return x.add(r)}function OY(x,r){return x.mul(r)}function WP(x,r){return x.ucompare(r)<0}function FU(x){var r=0,e=Nx(x),t=10,u=1;if(e>0)switch(F0(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=r2?x-87:-1}function El(x){var r=FU(x),e=r[0],t=r[1],u=r[2],i=Gm(u),c=new ir(ci,268435455,qt).udivmod(i).quotient,v=F0(x,e),a=Wm(v);(a<0||a>=u)&&q1(ds);for(var p=Gm(a);;)if(e++,v=F0(x,e),v!=95){if(a=Wm(v),a<0||a>=u)break;WP(c,p)&&q1(ds),a=Gm(a),p=NY(OY(i,p),a),WP(p,a)&&q1(ds)}return e!=Nx(x)&&q1(ds),u==10&&WP(new ir(0,0,Yt),p)&&q1(ds),t<0&&(p=GP(p)),p}function $m(x){return x.toFloat()}function tt(x){var r=FU(x),e=r[0],t=r[1],u=r[2],i=Nx(x),c=-1>>>0,v=e=u)&&q1(ds);var p=a;for(e++;e=u)break;p=u*p+a,p>c&&q1(ds)}return e!=i&&q1(ds),p=t*p,u==10&&(p|0)!=p&&q1(ds),p|0}function CY(x){return x.slice(1)}function Qx(x){return OP(x)?x:kU(x)}function DY(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function FY(x){return function(){for(var r=RY(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var XY=["E2BIG","EACCES","EAGAIN",Xb,"EBUSY","ECHILD","EDEADLK","EDOM",tL,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",Hw,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",l9,VD,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function Ss(x,r,e,t){var u=XY.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Tt(r||H0),Tt(e||H0)];return i}var qU={};function la(x){return qU[x]}function As(x,r){throw U0([0,x].concat(r))}function HP(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new _s(4,x,x.length)}function BU(x){Nr(x+a4)}function H1(x){this.data=x}H1.prototype=new LU,H1.prototype.constructor=H1,H1.prototype.truncate=function(x){var r=this.data;this.data=T2(x|0),gs(r,0,this.data,0,x)},H1.prototype.length=function(){return nt(this.data)},H1.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=T2(x+t),c=this.data;this.data=i,gs(c,0,this.data,0,u)}return gs(HP(r),e,this.data,x,t),0},H1.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=T2(t|0);gs(this.data,x,i,0,t),r.set(MU(i),e)}return t};function jo(x,r,e){this.file=r,this.name=x,this.flags=e}jo.prototype.err_closed=function(){Nr(this.name+tF)},jo.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},jo.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},jo.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},jo.prototype.close=function(){this.file=void 0};function v1(x,r){this.content={},this.root=x,this.lookupFun=r}v1.prototype.nm=function(x){return this.root+x},v1.prototype.create_dir_if_needed=function(x){for(var r=x.split(G1),e=H0,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=T2(t);return gs(HP(r),e,u,0,t),this.log(u.toUtf16()),0}Nr(this.fd+tF)},Il.prototype.read=function(x,r,e,t){Nr(this.fd+": file descriptor is write only")},Il.prototype.close=function(){this.log=void 0};function xh(x,r){return r==null&&(r=Qm.length),Qm[r]=x,r|0}function Sj0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Nr(x+fw),t.text&&t.binary&&Nr(x+kP);var u=JY(x),i=u.device.open(u.rest,t);return xh(i,void 0)}(function(){function x(r,e){return Sl()?UY(r,e):new Il(r,e)}xh(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),xh(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),xh(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function KY(x){var r=Qm[x];r.flags.wronly&&Nr(pM+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(el),refill:e};return Es[t.fd]=t,t.fd}function JU(x){var r=Qm[x];r.flags.rdonly&&Nr(pM+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(el),buffered:e};return Es[t.fd]=t,t.fd}function YY(){for(var x=0,r=0;ru.buffer.length){var i=new Uint8Array(u.buffer_curr+r.length);i.set(u.buffer),u.buffer=i}switch(u.buffered){case 0:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,Rc(x);break;case 1:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Rc(x);break;case 2:var c=r.lastIndexOf(10);c<0?(u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Rc(x)):(u.buffer.set(r.subarray(0,c+1),u.buffer_curr),u.buffer_curr+=c+1,Rc(x),u.buffer.set(r.subarray(c+1),u.buffer_curr),u.buffer_curr+=r.length-c-1);break}return 0}function VY(x,u,e,t){var u=MU(u);return zY(x,u,e,t)}function QP(x,r,e,t){return VY(x,Cc(r),e,t)}function KU(x,r){var e=String.fromCharCode(r);return QP(x,e,0,1),0}function jl(x,r){return+(Ym(x,r,!1)!=0)}function ZP(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function GY(x,r){return x[0]=Mv,x[1]=r,0}function Po(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:JP(x)||XP(x)?go:x instanceof Function||typeof x=="function"?xl:x&&x.caml_custom?m4:il}function WY(x){for(var r;x;)if(Qx(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:q1("caml_register_global: cannot locate "+t)}}U1[x+1]=r,e&&(U1[e]=r)}function xN(x,r){return qU[x]=r,0}function $Y(x){return x[2]=CU++,x}function Sr(x,r){return x===r?1:0}function HY(){W2(oE)}function N2(x,r){return r>>>0>=Nx(x)&&HY(),F0(x,r)}function I(x,r){return 1-Sr(x,r)}function A1(x){return x.t&6&&Xm(x),x.c}function QY(){return 2147483647/4|0}var ZY=a0.process&&a0.process.platform&&a0.process.platform==hF?AM:"Unix";function xz(){return[0,ZY,32,0]}function rz(){yU(U1.Not_found)}function YU(x){var r=hU(Qx(x));return r===void 0&&rz(),Tt(r)}function rN(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function l1(x,r){return{joo_tramp:x,joo_args:r}}function m0(x,r){if(r.fun)return x.fun=r.fun,0;if(typeof r=="function")return x.fun=r,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function O2(x){{if(x instanceof Array)return x;var r;return a0.RangeError&&x instanceof a0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||a0.InternalError&&x instanceof a0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=U1.Stack_overflow:x instanceof a0.Error&&la(UT)?r=[0,la(UT),x]:r=[0,U1.Failure,Tt(String(x))],x instanceof a0.Error&&(r.js_error=x),r}}function ez(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function tz(x){var r=H0;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&ez(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=FD;for(var u=e;ue&&(r+=UR);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof _s||typeof i=="string"?r+=f8+i.toString()+f8:r+=Sv}r+=zw}else x[0]==x2&&(r+=x[1]);return r}function zU(x){if(x instanceof Array&&(x[0]==0||x[0]==x2)){var r=la(fR);if(r)Hm(r,[x,!1]);else{var e=tz(x),t=la(HR);if(t&&Hm(t,[0]),console.error(iP+e),x.js_error)throw x.js_error}}else throw x}function nz(){var x=a0.process;x&&x.on?x.on("uncaughtException",function(r,e){zU(r),x.exit(2)}):a0.addEventListener&&a0.addEventListener("error",function(r){r.error&&zU(r.error)})}nz();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):bs(x,[r])}function k(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):bs(x,[r,e])}function B0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):bs(x,[r,e,t])}function St(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):bs(x,[r,e,t,u])}function I1(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):bs(x,[r,e,t,u,i])}function uz(x,r,e,t,u,i,c,v){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,c,v):bs(x,[r,e,t,u,i,c,v])}var R=void 0,eN=[x2,VM,-1],VU=[x2,bM,-2],Qt=[x2,e_,-3],tN=[x2,vM,-4],Fc=[x2,_F,-7],GU=[x2,UL,-8],WU=[x2,bL,-9],Ar=[x2,YD,-11],Pl=[x2,YL,-12],iz=[4,0,0,0,[12,45,[4,0,0,0,0]]],nN=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,hL,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Yv=[0,0,[0,0,0],[0,0,0]],Nl=[0,0,0,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ar,YD),Et(9,[x2,IF,DR],IF),Et(8,WU,bL),Et(7,GU,UL),Et(6,Fc,_F),Et(5,[x2,rF,-6],rF),Et(4,[x2,cR,-5],cR),Et(3,tN,vM),Et(2,Qt,e_),Et(1,VU,bM),Et(0,eN,VM);var fz="output_substring",cz=Mf,sz=as,az=ls,oz="CamlinternalLazy.Undefined",vz=SM,lz="\\'",pz="\\b",kz="\\t",mz="\\n",hz="\\r",dz="List.iter2",yz="tl",gz="hd",_z="String.blit / Bytes.blit_string",bz="Bytes.blit",wz="String.sub / Bytes.sub",Tz=H0,Ez="String.concat",Sz="Array.blit",Az="Array.sub",Iz=zp,jz=zp,Pz=zp,Nz=zp,Oz="Stdlib.Queue.Empty",Cz="Buffer.add_substring/add_subbytes",Dz="Buffer.add: cannot grow buffer",Rz=[0,eR,93,2],Fz=[0,eR,94,2],Lz="Buffer.sub",Mz="%c",Uz="%s",qz=qD,Bz=EM,Xz=kF,Jz=XM,Kz="%f",Yz="%B",zz="%{",Vz="%}",Gz="%(",Wz="%)",$z=RF,Hz="%t",Qz="%?",Zz="%r",xV="%_r",rV=[0,e1,850,23],eV=[0,e1,814,21],tV=[0,e1,815,21],nV=[0,e1,818,21],uV=[0,e1,819,21],iV=[0,e1,822,19],fV=[0,e1,823,19],cV=[0,e1,826,22],sV=[0,e1,827,22],aV=[0,e1,831,30],oV=[0,e1,832,30],vV=[0,e1,836,26],lV=[0,e1,837,26],pV=[0,e1,846,28],kV=[0,e1,847,28],mV=[0,e1,851,23],hV=[0,e1,1558,4],dV="Printf: bad conversion %[",yV=[0,e1,1626,39],gV=[0,e1,1649,31],_V=[0,e1,1650,31],bV="Printf: bad conversion %_",wV=JL,TV=mF,EV=JL,SV=mF,AV=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],IV=[0,0,4],jV=Ky,PV="neg_infinity",NV=SF,OV=Mf,CV=[0,Ze],DV="%+nd",RV="% nd",FV="%+ni",LV="% ni",MV="%nx",UV="%#nx",qV="%nX",BV="%#nX",XV="%no",JV="%#no",KV="%nd",YV=kF,zV="%nu",VV="%+ld",GV="% ld",WV="%+li",$V="% li",HV="%lx",QV="%#lx",ZV="%lX",xG="%#lX",rG="%lo",eG="%#lo",tG="%ld",nG=EM,uG="%lu",iG="%+Ld",fG="% Ld",cG="%+Li",sG="% Li",aG="%Lx",oG="%#Lx",vG="%LX",lG="%#LX",pG="%Lo",kG="%#Lo",mG="%Ld",hG=XM,dG="%Lu",yG="%+d",gG="% d",_G="%+i",bG="% i",wG="%x",TG="%#x",EG="%X",SG="%#X",AG="%o",IG="%#o",jG=Lv,PG=qD,NG=uL,OG=vv,CG="@}",DG="@?",RG=`@ -`,FG="@.",LG="@@",MG="@%",UG=dF,qG="CamlinternalFormat.Type_mismatch",BG=H0,XG=[0,[11,UR,[2,0,[2,0,0]]],", %s%s"],JG=[0,[11,iP,[2,0,[12,10,0]]],wL],KG=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s -`],YG="Fatal error: out of memory in uncaught exception handler",zG=[0,[11,iP,[2,0,[12,10,0]]],wL],VG=[0,[2,0,[12,10,0]],`%s -`],GG="Raised at",WG="Re-raised at",$G="Raised by primitive operation at",HG="Called from",QG=" (inlined)",ZG=H0,xW=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,hL,iz]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],rW=[0,[2,0,[11," unknown location",0]],"%s unknown location"],eW="Out of memory",tW="Stack overflow",nW="Pattern matching failed",uW="Assertion failed",iW="Undefined recursive module",fW=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],cW=H0,sW=H0,aW=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],oW=[0,[4,0,0,0,0],Lv],vW=[0,[3,0,0],q3],lW=Sv,pW=[0,H0,`(Cannot print locations: +(function(i){function e(){var f=i();return f.default||f}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow=e()}})(function(){"use strict";var jE0=Object.create;var td=Object.defineProperty;var CE0=Object.getOwnPropertyDescriptor;var OE0=Object.getOwnPropertyNames;var DE0=Object.getPrototypeOf,FE0=Object.prototype.hasOwnProperty;var RE0=(o0,vx)=>()=>(vx||o0((vx={exports:{}}).exports,vx),vx.exports),QY=(o0,vx)=>{for(var $x in vx)td(o0,$x,{get:vx[$x],enumerable:!0})},HY=(o0,vx,$x,Pr)=>{if(vx&&typeof vx=="object"||typeof vx=="function")for(let lr of OE0(vx))!FE0.call(o0,lr)&&lr!==$x&&td(o0,lr,{get:()=>vx[lr],enumerable:!(Pr=CE0(vx,lr))||Pr.enumerable});return o0};var LE0=(o0,vx,$x)=>($x=o0!=null?jE0(DE0(o0)):{},HY(vx||!o0||!o0.__esModule?td($x,"default",{value:o0,enumerable:!0}):$x,o0)),ME0=o0=>HY(td({},"__esModule",{value:!0}),o0);var ZY=RE0(fO=>{(function(o0){typeof globalThis!="object"&&(this?vx():(o0.defineProperty(o0.prototype,"_T_",{configurable:!0,get:vx}),_T_));function vx(){var $x=this||self;$x.globalThis=$x,delete o0.prototype._T_}})(Object);(function(o0){"use strict";var vx="loc",$x=70416,Pr=69748,lr=163,Ir=92159,L2=43587,ne="labeled_statement",pO="&=",Ks="int_of_string",ud=110591,id=92909,F4=11559,kO="regexp",fd=43301,R4=11703,cd=122654,Js=255,mO="%ni",sd=68252,hO=232,ad=42785,Nn="declare_variable",L4="while",od=66938,vd=70301,ld=124907,M4=126515,dO=218,jn="pattern_identifier",pd=67643,Cn="export_source",kd=216,md=64279,yO="Out_of_memory",hd=113788,gO="comments",dd=126624,wO="win32",On="object_key_bigint_literal",_O=185,q4=123214,Ro="constructor",yd=69955,Dn="import_declaration",gd=68437,wd="Failure",U4="Unix.Unix_error",_d=64255,bd=42539,Td=110579,Fn="export_default_declaration",Rn="jsx_attribute_name",B4=11727,Ed=43002,X4=126500,Ln="component_param_pattern",bO="collect_comments_opt",Mn="match_unary_pattern",qn="keyof_type",TO="Invalid binary/octal ",EO="range",Sd=170,Gs="false",Ad=43798,SO=", characters ",Un="object_type_property_getter",Pd=65547,Id=126467,Nd=65007,AO="guard",jd=42237,Cd=8318,Od=71215,Bn="object_property_type",Xn="type_alias",Dd=67742,Yn="function_body",Fd=68111,Y4=120745,Rd=71959,z4=43880,PO="Match_failure",zn="type_cast",st=109,Ws="void",Ld="generator",Md=125124,qd=101589,K4=94179,IO=">>>",J4=70404,Kn="optional_indexed_access_type",NO=310,y1="argument",Jn="object_property",Gn="object_type_property",Ud=67004,Bd=42783,Xd=68850,jO="@",Yd=43741,zd=43487,G4="object",CO="end",W4=126571,Kd=71956,OO=208,Jd=126566,Gd=67702,DO="EEXIST",Wn="this_expression",Wd=203,Vd=11507,$d=113807,V4=119893,Qd=42735,Fl="rest",Vn="null_literal",Rl="protected",Hd=43615,l1=8231,Zd=68149,xy=73727,ry=72348,ey=92995,s3=224,ty=11686,ny=43013,$n="assignment_pattern",uy=12329,Qn="function_type",a3=192,Hn="jsx_element_name",iy=70018,Zn="catch_clause_pattern",$4=126540,x7="template_literal",fy=120654,cy=68497,sy=67679,r7="readonly_type",ay=68735,oy="<",Q4=": No such file or directory",vy=66915,FO="!",e7="object_type",ly=43712,H4=64297,py=183969,ky=43503,my=67591,Lo=65278,hy=67669,t7="for_of_assignment_pattern",Ll="`",dy=11502,n7="catch_body",RO=258,yy=42191,Ma=-744106340,gy=182,Mo=":",LO="a string",wy=65663,_y=66978,by=71947,Z4=43519,Ty=71086,Ey=125258,Sy=12538,u7="expression_or_spread",MO="Printexc.handle_uncaught_exception",xp=69956,rp=120122,ep=247,qO=231,Ay=" : flags Open_rdonly and Open_wronly are not compatible",i7="statement_fork_point",UO=710,BO=-692038429,Re="static",Py=55203,Iy=64324,Ny=64111,XO="!==",jy=120132,Cy=124903,Ml="class",YO=222,f7="pattern_number_literal",Vs="kind",Oy=71903,c7="variable_declarator",s7="typeof_expression",Dy=126627,Fy=70084,zO=228,tp=70480,a7="class_private_field",Ry=239,np=120713,Zt=65535,o7="private_name",Ly=43137,v7="remote_identifier",My=70161,l7="label_identifier",qy="src/parser/statement_parser.ml",Uy=8335,By=19903,Xy=64310,qo="_",p7="for_init_declaration",KO="infer",Yy=64466,zy=43018,JO="tokens",Ky=92735,Jy=66954,Gy=65473,Wy=70285,k7="sequence",Vy="compare: functional value",$y=69890,ql=1e3,Qy=65487,Hy=42653,GO="\\\\",WO="%=",m7="match_member_pattern_base",Zy=72367,h7="function_rest_param",VO="/static/",x9=124911,r9=65276,up=126558,e9=11498,$O=137,d7="export_default_declaration_decl",t9="cases",ip=126602,y7="jsx_child",Le="continue",n9=42962,QO="importKind",s2=122,o3="Literal",g7="pattern_object_property_identifier_key",u9=42508,qa="in",i9=55238,f9=67071,c9=70831,s9=72161,a9=67462,HO="<<=",o9=43009,v9=66383,fp=67827,l9=72202,p9=69839,k9=66775,ZO="-=",Uo=8202,m9=70105,h9=120538,w7="for_in_left_declaration",d9="rendersType",cp=126563,y9=70708,sp=126523,xD=166,rD=202,g9=110951,$s="component",ap=126552,w9=66977,eD=213,_7="enum_member_identifier",tD=210,b7="enum_bigint_body",nD=">=",_9=126495,b9="specifiers",uD=-88,T9="=",E9=65338,Ul="members",iD=309,S9=123535,A9=43702,P9=72767,Bo="get",I9=126633,op=126536,N9=94098,j9="types",C9=113663,fD="Internal Error: Found private field in object props",T7="jsx_element",O9=70366,D9=110959,vp=120655,cD="trailingComments",v3=24029,F9=-100,B1="yield",E7="binding_pattern",sD=275,S7="typeof_identifier",aD="ENOTEMPTY",R9=-104,lp=126468,L9=1255,M9=120628,A7="pattern_object_property_string_literal_key",q9=8521,oD="leadingComments",vD=8204,Ua="@ ",U9=70319,Qs="left",B9=188,pp="case",X9=19967,kp=42622,Y9=43492,z9=113770,K9=42774,J9=183,mp=8468,P7="class_implements",hp=126579,l3="string",G9=211,e1=-48,W9=69926,V9=123213,I7="if_consequent_statement",$9=124927,p3="number",Q9=126546,H9=68119,Z9=70726,dp=70750,xg=65489,lD="SpreadElement",pD="callee",kD=193,rg=70492,eg=71934,mD=164,tg=110580,ng=12320,hD=300,yp="any",ue="/",N7="type_guard",I2="body",dD=272,ug=178,_e="pattern",yD="comment_bounds",gD=297,j7="binding_type_identifier",gp=187,C7="pattern_array_rest_element_pattern",wp="@])",ig=12543,fg=11623,wD="start",cg=67871,ie="interface",sg=8449,ag=67637,og=42961,_p=120085,vg=126463,_D="alternate",bD=-1053382366,lg=70143,TD="--",pg=68031,O7="jsx_expression",D7="type_identifier_reference",bp=11647,kg="proto",Pt="identifier",mg=43696,It="raw",hg=126529,dg=11564,Tp=126557,yg=64911,Ep=67592,gg=43493,wg=215,_g=110588,Bl=461894857,bg=92927,Tg=67861,Eg=119980,Sg=43042,Ag=66965,Pg=67391,k3="computed",ED="unreachable jsxtext",Ig=71167,Ng=42559,jg=72966,SD=303,Cg=180,AD=197,Sp=64319,Ap=169,PD="*",Xo=129,Og=66335,Xl="meta",Dg=43388,Pp=94178,at="optional",Ip="unknown",Fg=120121,Rg=123180,Np=8469,Lg=68220,ID="|",Mg=43187,qg=94207,Ug=124895,jp=120513,Bg=42527,Yo=8286,Xg=94177,Yl="var",F7="component_type_param",Yg=66421,zg=92991,Kg=68415,R7="comment",L7="match_pattern_array_element",zo=244,Cp="^",Jg=173791,ND=136,Gg=42890,Wg="ENOTDIR",Vg="??",$g=43711,Qg=66303,Hg=113800,Zg=42239,xw=12703,M7="variance_opt",q7="+",jD=">>>=",Op="mixed",rw=65613,ew=73029,tw=68191,CD="*=",Dp=8487,nw=8477,U7="toplevel_statement_list",Fp="never",Rp="do",Ba=125,uw=72249,OD="Pervasives.do_at_exit",DD="visit_trailing_comment",B7="jsx_closing_element",X7="jsx_namespaced_name",iw=124908,fw=126651,Y7="component_declaration",cw=15,z7="interface_type",K7="function_type_return_annotation",sw=64109,Lp=65595,Mp=126560,aw=110927,qp=65598,Up=8488,Hs="`.",FD=175,Bp="package",Xp="else",Yp=120771,ow=68023,RD="fd ",Ko=8238,zp=888960333,Kp=119965,vw=42655,J7="match_object_pattern",lw=11710,pw=119993,G7="boolean_literal",W7="statement_list",V7="function_param",$7="match_as_pattern",Q7="pattern_object_property_bigint_literal_key",Jp=69959,kw=120485,LD=240,mw=191456,H7="declare_enum",Gp=120597,Wp=70281,Z7="type_annotation",xu="spread_element",Vp=126544,hw=120069,Xa="key",dw=43583,yw="out",gw=` +`,MD="**=",ru="pattern_object_property_pattern",ww="e",_w=72712,qD="Internal Error: Found object private prop",bw="ENOENT",Tw=-42,eu="jsx_opening_attribute",Ew=67646,tu="component_type",Sw=64296,Aw=43887,UD="Division_by_zero",BD="EnumDefaultedMember",nu="typeof_member_identifier",Pw=43792,uu="match_member_pattern_property",iu="declare_export_declaration_decl",Iw=93026,fu="type_annotation_hint",Nw=42887,jw=43881,Cw=43761,$p=8526,XD=287,zl=119,Ow=43866,Dw=72847,Fw=8348,fe=101,Rw=94026,Qp=72272,YD="src/parser/flow_lexer.ml",Lw=120744,Jo=8191,m3="implies",Hp=255,Zp=11711,cu="match_unary_pattern_argument",Mw=71235,xk=68116,y2=100,su="match_expression",au="enum_body",rk=1114111,ou="assignment",qw=71955,ek=43260,vu="pattern_array_e",Uw=126583,zD="prefix",lu="class_body",tk="shorthand",Bw=171,Xw=66256,nk=-97,KD=" =",Yw=94032,zw=42606,Kw=71839,uk=120134,Jw=55291,Gw=92862,Ww=43019,Vw=126543,h3="function",$w=111355,Qw=11389,Hw=70753,Zw=43249,x_=64829,ik="line",pu="function_declaration",fk="undefined",JD="([^/]+)",r_=110947,e_=70002,GD="Cygwin",ku="as_expression",t_=12591,ck=64285,n_=2048,u_=73112,sk=126589,WD=225,ak=43259,VD=266,i_=72817,ok=64318,$D=172,QD=209,mu="match_binding_pattern",hu=" ",du="import_source",Kl="delete",HD="Enum `",vk=126553,f_=67001,Go="default",c_=11630,s_=206,yu="enum_bigint_member",a_=67504,lk=67593,o_=113791,v_=69572,gu="typeof_type",ZD=212,xF="%i",wu="function_this_param",l_=72329,Ya="0x",Wo=8239,p_=75075,rF=277,eF=57343,_u="pattern_bigint_literal",k_=12341,tF=201,Vo="hook",nF=": closedir failed",m_=42959,pk=119970,h_=278,d_=43560,uF="||=",bu="member_private_name",y_=120570,Tu="object_key_identifier",kk=223,iF="Not_found",fF=230,Eu="jsx_element_name_member_expression",Su="string_literal",g_=120596,w_=43807,__=69687,b_=63743,mk=72192,Au="member_property",T_=43262,Pu="class_declaration",cF="renders*",sF="%Li",E_=126578,Iu="jsx_attribute",d3=254,be="empty",Jl="label",Nu="object_internal_slot_property_type",hk=120133,S_=43359,Me="predicate",aF="??=",A_=43697,P_=-43,ju="default_opt",oF="the start of a statement",I_=67826,Cu="object_",Ou="class_element",dk=11631,yk=70855,Du="opaque_type",Fu="number_literal",vF=", ",gk=8319,wk=120004,_k=133,Ru="type_params",Lu="pattern_object_rest_property",X1="import",N_=72e3,j_=67413,C_=12343,O_=70080,Mu="intersection_type",p1=-36,D_=70005,bk="properties",F_=11679,R_=8483,L_=110587,lF=43520,qu="computed_key",pF=207,Uu="class_identifier",M_="Invalid number ",Bu="function_param_pattern",$o=12288,q_=113817,U_=70730,B_=178207,Tk=71236,kF=167,Xu="object_indexer_property_type",X_=64286,mF="TypeAnnotation",hF=220,Yu="type_identifier",zu="spread_property",Ku="jsx_attribute_value_expression",Y_=126519,Ek=70108,Sk=126,Ak=42999,za="prototype",z_=" : flags Open_text and Open_binary are not compatible",dF="**",Pk=43823,K_=": Not a directory",Ju="render_type",Ik=72349,y3="test",J_=43776,G_=92879,W_=11263,yF=241,V_=93052,Gu="nullable_type",$_=43704,Q_=64321,gF="Property",H_=72191,wF=165,Gl="instanceof",Z_=69247,_F=302,qe="name",Nk=126634,xb=8516,jk="typeArguments",rb=71127,Wu="jsx_spread_attribute",eb=66559,tb=44031,nb=43645,t1=8233,ub=71494,ib="opaque",Ck=72967,fb=70106,Vu="logical",bF="@[%s =@ ",Wl="0o",Ok=126554,cb=71351,Dk=8484,sb=72242,Fk=120687,g3=252,ab=183983,Vl="%S",$u="function_this_param_type",Rk="decorators",ob=43255,Qu="catch_clause",Ue="-",vb=67711,TF=": file descriptor already closed",Lk=64311,Mk=120539,lb="arguments",qk=73062,pb=173823,kb=42124,mb=72095,hb=125259,db=42969,Uk=70280,EF=12520,yb=69749,gb=70066,Hu="binary",Zu="for_in_statement",wb=43010,SF="^=",_b=126570,xi="for_statement",Bk=126584,ri="function_return_annotation",bb=72144,Tb=8505,ei="class_expression",Eb=120076,Sb=69807,Ab=40981,Pb=-24976191,Ib=72768,Nb=126550,Xk='"',ti="call_type_arg",AF="f",Qo="this",Yk=126628,PF="===",IF=56320,ni="declare_module_exports",jb=120512,ui=105,Cb=119974,Ob=71450,Db=71942,Fb=195,zk=120629,NF="/=",jF=">>",ii="declare_interface",CF=4096,fi="pattern_array_rest_element",Rb=71338,Kk=126520,ci="as_const_expression",OF="Popping lex mode from empty stack",DF="renders?",Lb=68405,si="member",ai="class_extends",Ho=12287,Jk=126590,Mb=66377,Ka="async",oi="pattern_array_element",w3=240,qb=69864,Zo="readonly",Ub=70460,Bb=120779,Xb=66378,vi="new_",Gk=126551,li="pattern_object_rest_property_pattern",pi="for_statement_init",Yb=43595,FF=293,Wk=68296,zb=120712,Kb=64217,Jb=69295,RF="||",Gb=";",Wb=70461,Vb=66939,LF="collect_comments",$b=279,ki="generic_type",Qb=68295,Hb=44002,Vk=72162,mi="object_call_property_type",$k=8305,Qk=119995,Hk="with",hi="class_property",MF="qualification",di="jsx_attribute_name_namespaced",yi="if_statement",gi="typeof_qualified_identifier",qF=238,Zb=65615,UF=176,n1="expression",Zk=126559,wi="jsx_attribute_value",_i="<2>",bi="component_param",x8="Map.bal",r8=132,xT=70412,rT=70440,BF="<<",e8="finally",XF="v",Ti="syntax_opt",Ei="meta_property",eT=12447,tT=67514,t8=12448,Si="object_mapped_type_property",xv="operator",YF="closedir",Ai="unary_expression",nT=126588,uT=70851,Pi="export_batch_specifier",_3="renders",zF=226,iT=73111,KF=221,Z0="",fT=66927,cT=64967,sT="elements",aT=67640,oT=43754,Ii="declare_export_declaration",vT=-26065557,lT=65855,$l="boolean",Zs="typeof",pT=124902,JF=139,kT=65629,GF=224,mT=43123,n8=70449,hT=12735,K2=107,u8=11719,WF="!=",Ni="call_type_args",b3="asserts",Ja=-46,dT="namespace",ji="match_pattern",Ci="for_of_statement_lhs",i8=126504,yT=69505,f8="for",gT=72703,c8=120127,s8=43471,wT=93047,VF="Undefined_recursive_module",$F=2147483647,Oi="template_literal_element",QF="Unexpected ",_T=101631,bT=65497,a8=68120,Di="import_default_specifier",xn="array",HF="expressions",TT=110930,ZF=204,Fi="while_",Ri="function_rest_param_type",Ga=63,ET=77808,xR="Unexpected token `",mr=114,Li="pattern_object_p",ST=65140,AT=123190,Mi="pattern_object_property_number_literal_key",Ql="enum",qi="conditional_type",Te=113,Ui="array_type",rR="minus",PT=43790,Bi="do_while",IT=11567,NT=11694,Hl=256,jT=119976,Xi="component_body",ce=111,CT=177976,eR=-56,o8=67644,OT=73439,Zl=951901561,tR="?",nR=")",v8=43867,l8=65575,DT=69445,uR="FunctionTypeParam",p8=119996,FT=65019,Yi="conditional",RT=11505,iR=135,LT=71295,MT=12799,qT=67382,zi="type_guard_annotation",Ki="object_key_computed",rn=123,Ji="pattern_object_property_key",UT=119892,BT=67505,XT=66962,Gi="with_",YT=43273,Wi="interface_declaration",k8="bool",zT=71945,KT="declaration",JT=11519,x6=">",GT=66771,m8="}",fR=8472,WT=43014,Vi="declare_function",Br=127,VT="RestElement",cR=190,$T=8467,sR="module",h8=126522,aR="Sys_blocked_io",$i="jsx_opening_element",Qi="object_key_number_literal",oR="|=",vR="mixins",QT=205,lR=217,d8="if",pR="+=",Hi="match_object_pattern_property_key",Zi="match_rest_pattern",xf="export_named_declaration_specifier",y8="try",g8="_bigarr02",HT=70479,en="right",ZT=245,xE=11718,rf="tuple_labeled_element",kR="TypeParameterInstantiation",rE="mkdir",eE=71999,tE=870530776,mR="@[",hR=-908856609,dR=331416730,nE=11670,uE=66735,iE=43709,w8=43642,fE=67002,cE=69375,ef="function_body_any",sE=119807,yR="Assert_failure",tf="function_identifier",aE=65479,r6=131,rv="new",nf="for_of_left_declaration",oE=120084,vE=100343,lE=73030,_8=70452,gR=134,pE=253,kE=42954,wR=227,uf="jsx_member_expression_object",ff="class_property_value",mE=120144,hE=66994,T3="set",dE=126498,cf="tuple_element",sf="arg_list",yE=65481,gE=8511,wE=42964,_E=11492,E3=-25,b8=126555,bE=71039,TE="exportKind",af="program",EE=70187,_R=173,Nt="as",S3=124,bR="visit_leading_comment",SE=110575,of="class_",AE=72440,PE=67897,TR=235,IE=8543,ER=141,vf=120,lf="match_object_pattern_property",e6=1024,NE=101640,SR=1027,AR=236,A3=246,PR="(",jE=66511,pf="regexp_literal",CE=65574,OE=43513,DE=43695,IR="&&",T8=11558,FE=66503,RE=93071,kf="pattern_expression",LE=65381,E8=126538,ME=12292,mf="import_namespace_specifier",hf="match_statement_case",qE=67583,UE=120137,BE=69622,XE=120770,YE=71131,ev=8287,zE=110590,KE=65135,JE="Fatal error: exception ",P3=118,GE=181,S8=11687,k1="camlinternalFormat.ml",WE=72959,VE=249,df="union_type",NR=8206,$E=73064,QE=70271,HE=92728,A8=65344,P8=11695,yf="class_decorator",ZE="the end of an expression statement (`;`)",xS=177983,rS=8457,jR=931,eS=66499,tS=94175,CR="#",OR=151,nS="Identifier",gf="for_in_statement_lhs",wf="pattern_string_literal",I8=70302,N8=126496,uS=66461,iS=82943,j8=8450,fS=72271,cS=70853,sS="of",DR="Stack_overflow",t6="hasUnknownMembers",n6="a",_f="variable_declarator_pattern",aS=73061,oS=77711,C8=64317,vS=73097,bf="enum_declaration",lS=66966,O8=189,pS=119964,Tf="type_param",jt=782176664,D8=65535,FR=-10,kS=64433,F8=43815,R8=94031,L8=73065,mS=69958,M8="property",Ef="jsx_children",Sf="member_property_identifier",hS=42537,u6="const",dS=70278,Af="enum_string_member",i6="local",Pf="jsx_element_name_identifier",yS=68223,q8="",gS=119967,U8=119994,wS=66993,If="jsx_member_expression_identifier",B8="explicitType",_S=67589,bS=65597,TS="exported",ES=94111,SS=113775,Nf="object_spread_property_type",AS=64847,jf="component_identifier",Cf="class_implements_interface",RR=162,LR=243,PS=12783,MR=`Fatal error: exception %s +`,X8=120093,f6="column",Of="component_rest_param",IS=70451,NS=70312,jS=69967,Y8=70279,CS=66463,OS=92975,z8=70286,Df="pattern_object_property_computed_key",Ff="object_key_string_literal",DS="jsError",Rf="type_args",FS=8304,qR="==",tv=115,Lf="declare_component",RS=120092,LS=43638,MS=66811,qS=43334,US=66863,BS=77823,Mf="optional_call",XS=126562,K8=70162,Be=104,YS=66963,nv="await",J8=70107,Y1="0",zS=72250,KS=8507,UR=291,JS=100351,G8="AssignmentPattern",qf="type",BR="%u",Uf="function_expression_or_method",GS=43470,XR=242,YR="camlinternalMod.ml",Bf="match_or_pattern",WS=72750,VS=69414,$S=65370,Xf="syntax",zR=32752,QS=42963,KR="End_of_file",HS=12294,ZS=8471,JR="elementType",xA=43782,GR="++",rA=43641,eA=71944,tA=126601,nA=78894,uA=-45,uv="null",WR=177,VR="satisfies",iA=131071,Yf="import_specifier",zf="class_method",Kf="type_",fA=126514,cA=8454,$R="inexact",sA=67807,aA=8525,oA=65470,vA=71352,Jf="tuple_spread_element",lA=219,pA="abstract",kA=73458,Xe="return",c6=65536,W8=126548,Gf="array_element",mA=-253313196,hA=186,V8="catch",Wf="infer_type",dA=12295,QR="Invalid legacy octal ",yA=69762,gA=43311,wA=65437,Vf="variable_declaration",HR=-696510241,$f="function_params",ZR=307,_A=64316,$8=11565,xL="infinity",bA="@]",TA=65908,Qf="extends",EA=66204,SA=43784,AA=11742,Q8=126503,Ye="debugger",PA=70457,xa=-86,s6=912068366,IA=68786,H8="keyof",Z8=69415,NA=12686,tn=127343600,Hf="declare_type_alias",rL="the",eL=233,Zf="jsx_element_name_namespaced",jA=72283,tL=161,xc="function_param_type",Ct=128,CA=-673950933,xm=126591,nL="Sys_error",OA=74649,DA=74862,a6="is",FA=43738,RA=68479,uL=196,rm=70854,rc="enum_boolean_member",ec="match_expression_case",em=72163,LA=92783,iL=281,tc="component_param_name",MA=68863,nn=32768,fL=2048,qA=64284,cL="@{",UA="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",tm=8455,nc="update_expression",BA=65500,o6="from",XA=68447,nm=12592,YA=92766,sL=">>=",z1=110,zA=66431,KA=43586,uc="jsx_identifier",JA=" : file already exists",M2=128,GA=71958,WA=66717,ic="enum_boolean_body",VA=64262,Vr="id",fc="component_renders_annotation",$A=42888,QA=8584,HA=73008,cc="enum_symbol_body",sc="declare_namespace",um=72713,ZA=55215,ac="object_property_value_type",oc="for_in_assignment_pattern",im=8485,xP=43395,aL=229,ra="true",rP=43743,vc="enum_number_member",oL=234,eP=72969,vL="expected *",g1=102,lL=200,v6="symbol",iv="source",tP=43714,lc="jsx_fragment",pc="jsx_attribute_name_identifier",l6="public",nP=43442,kc="pattern_object_property",uP=65786,iP=70783,fP=43713,cP=72160,pL="*-/",mc="export_named_specifier",hc="arrow_function",sP=122623,fm=70006,kL="${",aP=43814,dc="generic_qualified_identifier_type",mL=199,yc="jsx_spread_child",cm=8489,p6=184,hL=2047,oP=66955,gc="try_catch",vP=70497,dL=237,lP=67431,pP=125183,yL=-602162310,un="params",kP="consequent",mP=68029,hP=67829,dP=68095,wc="enum_string_body",yP=93823,gP=68351,wP=65495,_c="declare_module",bc="body_expression",_P=66175,gL=191,sm=70441,am=65141,om="&",Tc="super_expression",vm=126564,bP=72105,lS0="fs",ze="throw",TP=68287,EP=67839,Wa=116,SP=110882,AP=69404,PP=123197,fv=65279,I3="src/parser/type_parser.ml",IP=68115,wL=259,lm=126547,pm=126556,NP=73055,Ec="member_property_expression",Sc="enum_defaulted_member",jP=43071,CP=11726,Ac="component_type_rest_param",OP=68607,Pc="object_key",_L=160,K1="variance",DP=70655,FP=70414,N3="super",RP=123583,LP=65594,k6="method",MP=73648,m6=121,qP=93951,Ic="pattern_array_element_pattern",UP=43764,BP=42993,km=120145,XP=74879,YP=168,mm=8486,zP=72001,Nc="tagged_template",jc="module_ref_literal",KP=65312,cv="implements",JP=43700,GP=120003,bL="Invalid_argument",Cc=16777215,WP=83526,hm=69744,dm=12336,Oc="switch_case",TL=-61,Dc="optional_member",VP=64274,ym=64322,gm=126530,$P=71998,wm=72970,QP=13311,HP=73647,ZP=120074,j3="let",Fc="expression_statement",Rc="component_type_params",xI=512,rI=69634,eI=67461,tI=123627,nI=64913,EL="children",SL="PropertyDefinition",AL=1026,PL="%li",Lc="declare_class",uI=43258,Mc="indexed_access_type",IL=157,iI=124926,ea=112,fI="b",qc="predicate_expression",Uc="if_alternate_statement",h6="private",NL=-594953737,jL=140,cI="nan",sI=72103,_m=11735,Bc="statement",aI="rmdir",bm=66512,oI="match",CL=198,vI=11734,Xc="import_named_specifier",lI=69599,pI=68799,kI=194559,Yc="match_array_pattern",OL=174,zc="function_",Kc="bigint_literal",n2=248,Tm=67638,Em=126539,mI=11557,DL=214,hI=5760,Ke="break",fn="block",Jc="match_member_pattern",dI=123565,yI=66815,g2="value",FL=1039100673,gI=69746,wI=70448,_I=74751,Gc="init",bI=69551,Sm=65548,Wc="jsx_member_expression",Am=68096,sv=108,Pm=126521,TI=71487,Vc="match_statement",EI=178205,SI=12548,RL=" : is a directory",cn=".",AI=12348,C3=-835925911,J1="typeParameters",PI=66855,u1="typeAnnotation",av="bigint",$c="jsx_attribute_value_literal",II=194,LL="T_JSX_TEXT",NI=68466,Im=126537,ML=67714067,jI=69487,qL=271,Nm="export",CI=43822,jm=126499,OI=55242,Qc="member_type_identifier",DI=138,FI=71679,d6=130,RI=12438,LI=119969,Cm=12539,MI=119972,UL=",",qI=71423,UI="index out of bounds",Je=106,O3="%d",BL="T_RENDERS_QUESTION",Om=120571,Dm="returnType",BI=69423,Fm=120070,XL="%",y6=117,YL=179,XI="EBADF",YI=93759,Rm=64325,Hc="component_params",zI=66517,KI=67423,JI=605857695,GI=43518,zL=251,Zc="for_of_statement",WI=71983,KL="~",VI=12442,Ge="switch",$I=66207,Lm=126535,JL="&&=",QI=69289,HI=71723,xs="generic_identifier_type",ZI=126619,rs="object_type_property_setter",xN=70418,GL="<=",rN=125251,eN=11702,es="enum_number_body",D3=250,tN=124910,nN=69297,uN=67455,iN=42511,ts="ts_satisfies",WL=286,fN=68324,Mm="an identifier",cN=126534,sn=103,sN=120126,F3=449540197,g6="declare",aN=68899,oN=126502,ns="function_expression",VL=142,vN=123135,lN=67967,pN=120487,kN=120686,us="export_named_declaration",mN=66348,qm=119981,hN=12352,is="tuple_type",dN=68680,Um="target",fs="call";function dz(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function yz(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;tx.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new er(x,r,e)},er.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new er(r,e,t)},er.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new er(r,e,t)},er.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*ZL|0)+this.mi*x.lo+this.lo*x.mi,t=(e*ZL|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new er(r,e,t)},er.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},er.prototype.isNeg=function(){return this.hi<<16<0},er.prototype.and=function(x){return new er(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},er.prototype.or=function(x){return new er(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},er.prototype.xor=function(x){return new er(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},er.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new er(this.lo<>24-x,this.hi<>24-x):x<48?new er(0,this.lo<>48-x):new er(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new er(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new er(this.hi>>x-48,0,0)},er.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new er(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new er(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&Zt):new er(this.hi<<16>>x-32,e,e)},er.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&Cc,this.lo=this.lo<<1&Cc},er.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&Cc,this.mi=(this.mi>>>1|this.hi<<23)&Cc,this.hi=this.hi>>>1},er.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new er(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},er.prototype.div=function(x){var r=this;x.isZero()&&rM();var e=r.hi^x.hi;r.hi&nn&&(r=r.neg()),x.hi&nn&&(x=x.neg());var t=r.udivmod(x).quotient;return e&nn&&(t=t.neg()),t},er.prototype.mod=function(x){var r=this;x.isZero()&&rM();var e=r.hi;r.hi&nn&&(r=r.neg()),x.hi&nn&&(x=x.neg());var t=r.udivmod(x).modulus;return e&nn&&(t=t.neg()),t},er.prototype.toInt=function(){return this.lo|this.mi<<24},er.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},er.prototype.toArray=function(){return[this.hi>>8,this.hi&Js,this.mi>>16,this.mi>>8&Js,this.mi&Js,this.lo>>16,this.lo>>8&Js,this.lo&Js]},er.prototype.lo32=function(){return this.lo|(this.mi&Js)<<24},er.prototype.hi32=function(){return this.mi>>>8&Zt|this.hi<<16};function Tz(x,r){return new er(x&Cc,x>>>24&Js|(r&Zt)<<8,r>>>16&Zt)}function wN(x){return x.hi32()}function _N(x){return x.lo32()}function w6(){i1(UI)}var Ez=g8;function Va(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}Va.prototype.caml_custom=Ez,Va.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||i1("bigarray.js: invalid offset"),this.dims.length!=x.length&&i1("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&w6(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&w6(),r=r*this.dims[e]+(x[e]-1);return r},Va.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return Tz(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[d3,t,u];default:return this.data[x]}},Va.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=_N(r),this.data[x*2+1]=wN(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},Va.prototype.fill=function(x){switch(this.kind){case 7:var r=_N(x),e=wN(x);if(r==e)this.data.fill(r);else for(var t=0;tc)return 1;if(i!=c){if(!r)return NaN;if(i==i)return 1;if(c==c)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function L3(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}L3.prototype=new Va,L3.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:i1("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&w6(),x},L3.prototype.get=function(x){return this.data[x]},L3.prototype.set=function(x,r){return this.data[x]=r,0},L3.prototype.fill=function(x){return this.data.fill(x),0};function bN(x,r,e,t){var u=QL(x);return Xm(e)*u!=t.length&&i1("length doesn't match dims"),r==0&&e.length==1&&u==1?new L3(x,r,e,t):new Va(x,r,e,t)}function eM(x){return x.slice(1)}function Sz(x,r,e){var t=eM(e),u=HL(x,Xm(t));return bN(x,r,t,u)}function _6(x,r,e){return x.set(x.offset(r),e),0}function b6(x,r,e){var t=String.fromCharCode;if(r==0&&e<=CF&&e==x.length)return t.apply(null,x);for(var u=Z0;0=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?b6(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?b6(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Ym(e);var i=x.c,c=e.c;if(x.t==4)if(t<=r)for(var v=0;v=0;v--)c[t+v]=i[r+v];else{for(var a=Math.min(u,i.length-r),v=0;v>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function zm(x){x.t==2?x.c+=M3(x.l-x.c.length,"\0"):x.c=b6(x.c,0,x.c.length),x.t=0}function TN(x){if(x.length<24){for(var r=0;rBr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function tM(x){for(var r=Z0,e=Z0,t,u,i,c,v=0,a=x.length;vxI?(e.substr(0,1),r+=e,e=Z0,r+=x.slice(v,l)):e+=x.slice(v,l),l==a)break;v=l}c=1,++v=55295&&c<57344)&&(c=2)):(c=3,++v1114111)&&(c=3)))))),c<4?(v-=c,e+="\uFFFD"):c>Zt?e+=String.fromCharCode(55232+(c>>10),IF+(c&1023)):e+=String.fromCharCode(c),e.length>e6&&(e.substr(0,1),r+=e,e=Z0)}return r+e}function na(x,r,e){this.t=x,this.c=r,this.l=e}na.prototype.toString=function(){switch(this.t){case 9:return this.c;default:zm(this);case 0:if(TN(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},na.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:tM(x)},na.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new na(this.t,x,this.l)};function nM(x){return new na(0,x,x.length)}function kS0(x){return x}function Ot(x){return nM(x)}function cs(x,r,e,t,u){return ta(Ot(x),r,e,t,u),0}function q3(x){return new er(x[7]<<0|x[6]<<8|x[5]<<16,x[4]<<0|x[3]<<8|x[2]<<16,x[1]<<0|x[0]<<8)}function se(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function EN(){i1(UI)}function Az(x,r){r>>>0>=x.l-7&&EN();for(var e=new Array(8),t=0;t<8;t++)e[7-t]=se(x,r+t);return q3(e)}function Xr(x,r,e){if(e&=Js,x.t!=4){if(r==x.c.length)return x.c+=String.fromCharCode(e),r+1==x.l&&(x.t=0),0;Ym(x)}return x.c[r]=e,0}function ua(x,r,e){return r>>>0>=x.l&&EN(),Xr(x,r,e)}function U3(x){return x.toArray()}function Pz(x,r,e){r>>>0>=x.l-7&&EN();for(var t=U3(e),u=0;u<8;u++)Xr(x,r+7-u,t[u]);return 0}function ss(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:ss(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var l=new Array(t+1),m=0;m>>0>=x.length-1&&w6(),x}function Iz(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function Nz(x){return x==ZT?1:0}var jz=Math.log2&&Math.log2(11235582092889474e291)==1020;function Cz(x){if(jz)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function SN(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}function ot(x,r,e){return new er(x,r,e)}function Km(x){if(!isFinite(x))return isNaN(x)?ot(1,0,zR):x>0?ot(0,0,zR):ot(0,0,65520);var r=x==0&&1/x==-1/0?nn:x>=0?0:nn;r&&(x=-x);var e=Cz(x)+1023;e<=0?(e=0,x/=Math.pow(2,-AL)):(x/=Math.pow(2,e-SR),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var c=x|0;return u=u&cw|r|e<<4,ot(c,i,u)}function uM(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==g8)for(var t=0;t>4;if(u==hL)return r|e|t&cw?NaN:t&nn?-1/0:1/0;var i=Math.pow(2,-24),c=(r*i+e)*i+(t&cw);return u>0?(c+=16,c*=Math.pow(2,u-SR)):c*=Math.pow(2,-AL),t&nn&&(c=-c),c}function W1(x){G1.Failure||(G1.Failure=[n2,wd,-3]),gN(G1.Failure,x)}function iM(x,r,e){var t=x.read32s();(t<0||t>16)&&W1("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&Js,c=u>>8&1,v=[];if(e==g8)for(var a=0;a>>17,r=cM(r,461845907),x^=r,x=x<<13|x>>>19,(x+(x<<2)|0)+-430675100|0}function Oz(x,r){return x=ia(x,_N(r)),x=ia(x,wN(r)),x}function sM(x,r){return Oz(x,Km(r))}function aM(x){var r=Xm(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>Hl&&(r=Hl);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=ia(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=ia(e,t)}break;case 4:case 5:r>M2&&(r=M2);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=ia(e,t);r&1&&(e=ia(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function NN(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function jN(x){return x instanceof na}function lM(x){if(typeof x=="number")return ql;if(jN(x))return g3;if(NN(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=Hp){var r=x[0]|0;return r==d3?0:r}else{if(x instanceof String)return EF;if(typeof x=="string")return EF;if(x instanceof Number)return ql;if(x&&x.caml_custom)return L9;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function We(x,r){return xr?1:0}function Uz(x,r){return x.t&6&&zm(x),r.t&6&&zm(r),x.cr.c?1:0}function Jm(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=lM(x);if(u==D3){x=x[1];continue}var i=lM(r);if(i==D3){r=r[1];continue}if(u!==i)return u==ql?i==L9?vM(x,r,-1,e):-1:i==ql?u==L9?vM(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(Nz(u)){i1("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=Z0,x.t=2):(x.c=M3(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Ym(x),e+=r;r0&&r===r||(x=x.replace(/_/g,Z0),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,Z0),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;W1("float_of_string")}function ON(x){x=x;var r=x.length;r>31&&i1("format_int: format too long");for(var e={justify:q7,signstyle:Ue,filler:hu,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:AF},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function DN(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=Ue)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=Z0;if(x.justify==q7&&x.filler==hu)for(var u=e;u20?(T-=20,m/=Math.pow(10,T),m+=new Array(T+1).join(Y1),h>0&&(m=m+cn+new Array(h+1).join(Y1)),m):m.toFixed(h)}var t,u=ON(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=cI,u.filler=hu;else if(!isFinite(r))t="inf",u.filler=hu;else switch(u.conv){case"e":var t=r.toExponential(i),c=t.length;t.charAt(c-3)==ww&&(t=t.slice(0,c-1)+Y1+t.slice(c-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var v=t.indexOf(ww),a=+t.slice(v+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var c=v-1;t.charAt(c)==Y1;)c--;t.charAt(c)==cn&&c--,t=t.slice(0,c+1)+t.slice(v),c=t.length,t.charAt(c-3)==ww&&(t=t.slice(0,c-1)+Y1+t.slice(c-1));break}else{var l=i;if(a<0)l-=a+1,t=r.toFixed(l);else for(;t=r.toFixed(l),t.length>i+1;)l--;if(l){for(var c=t.length-1;t.charAt(c)==Y1;)c--;t.charAt(c)==cn&&c--,t=t.slice(0,c+1)}}break}return DN(u,t)}function Wm(x,r){if(x==O3)return Z0+r;var e=ON(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=hu;var u=e.prec-t.length;u>0&&(t=M3(u,Y1)+t)}return DN(e,t)}var mM=0;function as(){return mM++}function hM(){return[0]}var Vm=[];function Bx(x,r,e){var t=x[1],u=Vm[e];if(u===void 0)for(var i=Vm.length;i>1|1,rxI?(e.substr(0,1),r+=e,e=Z0,r+=x.slice(i,v)):e+=x.slice(i,v),v==c)break;i=v}t>6),e+=String.fromCharCode(Ct|t&Ga)):t<55296||t>=eF?e+=String.fromCharCode(GF|t>>12,Ct|t>>6&Ga,Ct|t&Ga):t>=56319||i+1==c||(u=x.charCodeAt(i+1))eF?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(LD|t>>18,Ct|t>>12&Ga,Ct|t>>6&Ga,Ct|t&Ga)),e.length>e6&&(e.substr(0,1),r+=e,e=Z0)}return r+e}function Dt(x){return TN(x)?x:Kz(x)}function Jz(x,r,e){if(!isFinite(x))return isNaN(x)?Dt(cI):Dt(x>0?xL:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?Z0:q7,c=Z0;if(t)c=Ue;else switch(e){case 43:c=q7;break;case 32:c=hu;break;default:break}if(r>=0&&r<13){var v=Math.pow(2,r*4);x=Math.round(x*v)/v}var a=x.toString(16);if(r>=0){var l=a.indexOf(cn);if(l<0)a+=cn+M3(r,Y1);else{var m=l+1+r;a.length>24&Cc,x>>31&Zt)}function Wz(x){return x.toInt()}function Vz(x){return+x.isNeg()}function RN(x){return x.neg()}function dM(x,r){var e=ON(x);e.signedconv&&Vz(r)&&(e.sign=-1,r=RN(r));var t=Z0,u=T6(e.base),i="0123456789abcdef";do{var c=r.udivmod(u);r=c.quotient,t=i.charAt(Wz(c.modulus))+t}while(!Gz(r));if(e.prec>=0){e.filler=hu;var v=e.prec-t.length;v>0&&(t=M3(v,Y1)+t)}return DN(e,t)}function Nx(x){return x.length}function J0(x,r){return x.charCodeAt(r)}function yM(x,r){return x.add(r)}function gM(x,r){return x.mul(r)}function LN(x,r){return x.ucompare(r)<0}function wM(x){var r=0,e=Nx(x),t=10,u=1;if(e>0)switch(J0(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=s2?x-87:-1}function ov(x){var r=wM(x),e=r[0],t=r[1],u=r[2],i=T6(u),c=new er(Cc,268435455,Zt).udivmod(i).quotient,v=J0(x,e),a=$m(v);(a<0||a>=u)&&W1(Ks);for(var l=T6(a);;)if(e++,v=J0(x,e),v!=95){if(a=$m(v),a<0||a>=u)break;LN(c,l)&&W1(Ks),a=T6(a),l=yM(gM(i,l),a),LN(l,a)&&W1(Ks)}return e!=Nx(x)&&W1(Ks),u==10&&LN(new er(0,0,nn),l)&&W1(Ks),t<0&&(l=RN(l)),l}function _M(x,r){return x.or(r)}function Qm(x){return x.toFloat()}function vt(x){var r=wM(x),e=r[0],t=r[1],u=r[2],i=Nx(x),c=-1>>>0,v=e=u)&&W1(Ks);var l=a;for(e++;e=u)break;l=u*l+a,l>c&&W1(Ks)}return e!=i&&W1(Ks),l=t*l,u==10&&(l|0)!=l&&W1(Ks),l|0}function Jx(x){return TN(x)?x:tM(x)}function $z(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function Hz(x){return function(){for(var r=Qz(x),e=new Array(r),t=0;t>>0&&MN(x,A3,zo)?0:1}function rK(x){return MN(x,zo,D3),0}function eK(x,r){return+(Jm(x,r,!1)<0)}function bM(x){return x}function tK(x,r){return x.get(x.offset(r))}function nK(x,r){return x.xor(r)}function uK(x,r){return x.shift_right_unsigned(r)}function iK(x,r){return x.shift_left(r)}function Zm(x){function r(B,K){return iK(B,K)}function e(B,K){return uK(B,K)}function t(B,K){return _M(B,K)}function u(B,K){return nK(B,K)}function i(B,K){return yM(B,K)}function c(B,K){return gM(B,K)}function v(B,K){return t(r(B,K),e(B,64-K))}function a(B,K){return tK(B,K)}function l(B,K,n0){return _6(B,K,n0)}var m=ov(bM("0xd1342543de82ef95")),h=ov(bM("0xdaba0b6eb09322e3")),T,M,z,b=x,N=a(b,0),j=a(b,1),I=a(b,2),F=a(b,3);T=i(j,I),T=c(u(T,e(T,32)),h),T=c(u(T,e(T,32)),h),T=u(T,e(T,32)),l(b,1,i(c(j,m),N));var M=I,z=F;return z=u(z,M),M=v(M,24),M=u(u(M,z),r(z,16)),z=v(z,37),l(b,2,M),l(b,3,z),T}function $a(e,r){e<0&&w6();var e=e+1|0,t=new Array(e);t[0]=0;for(var u=1;u>>32-m,a)}function e(c,v,a,l,m,h,T){return r(v&a|~v&l,c,v,m,h,T)}function t(c,v,a,l,m,h,T){return r(v&l|a&~l,c,v,m,h,T)}function u(c,v,a,l,m,h,T){return r(v^a^l,c,v,m,h,T)}function i(c,v,a,l,m,h,T){return r(a^(v|~l),c,v,m,h,T)}return function(c,v){var a=c[0],l=c[1],m=c[2],h=c[3];a=e(a,l,m,h,v[0],7,3614090360),h=e(h,a,l,m,v[1],12,3905402710),m=e(m,h,a,l,v[2],17,606105819),l=e(l,m,h,a,v[3],22,3250441966),a=e(a,l,m,h,v[4],7,4118548399),h=e(h,a,l,m,v[5],12,1200080426),m=e(m,h,a,l,v[6],17,2821735955),l=e(l,m,h,a,v[7],22,4249261313),a=e(a,l,m,h,v[8],7,1770035416),h=e(h,a,l,m,v[9],12,2336552879),m=e(m,h,a,l,v[10],17,4294925233),l=e(l,m,h,a,v[11],22,2304563134),a=e(a,l,m,h,v[12],7,1804603682),h=e(h,a,l,m,v[13],12,4254626195),m=e(m,h,a,l,v[14],17,2792965006),l=e(l,m,h,a,v[15],22,1236535329),a=t(a,l,m,h,v[1],5,4129170786),h=t(h,a,l,m,v[6],9,3225465664),m=t(m,h,a,l,v[11],14,643717713),l=t(l,m,h,a,v[0],20,3921069994),a=t(a,l,m,h,v[5],5,3593408605),h=t(h,a,l,m,v[10],9,38016083),m=t(m,h,a,l,v[15],14,3634488961),l=t(l,m,h,a,v[4],20,3889429448),a=t(a,l,m,h,v[9],5,568446438),h=t(h,a,l,m,v[14],9,3275163606),m=t(m,h,a,l,v[3],14,4107603335),l=t(l,m,h,a,v[8],20,1163531501),a=t(a,l,m,h,v[13],5,2850285829),h=t(h,a,l,m,v[2],9,4243563512),m=t(m,h,a,l,v[7],14,1735328473),l=t(l,m,h,a,v[12],20,2368359562),a=u(a,l,m,h,v[5],4,4294588738),h=u(h,a,l,m,v[8],11,2272392833),m=u(m,h,a,l,v[11],16,1839030562),l=u(l,m,h,a,v[14],23,4259657740),a=u(a,l,m,h,v[1],4,2763975236),h=u(h,a,l,m,v[4],11,1272893353),m=u(m,h,a,l,v[7],16,4139469664),l=u(l,m,h,a,v[10],23,3200236656),a=u(a,l,m,h,v[13],4,681279174),h=u(h,a,l,m,v[0],11,3936430074),m=u(m,h,a,l,v[3],16,3572445317),l=u(l,m,h,a,v[6],23,76029189),a=u(a,l,m,h,v[9],4,3654602809),h=u(h,a,l,m,v[12],11,3873151461),m=u(m,h,a,l,v[15],16,530742520),l=u(l,m,h,a,v[2],23,3299628645),a=i(a,l,m,h,v[0],6,4096336452),h=i(h,a,l,m,v[7],10,1126891415),m=i(m,h,a,l,v[14],15,2878612391),l=i(l,m,h,a,v[5],21,4237533241),a=i(a,l,m,h,v[12],6,1700485571),h=i(h,a,l,m,v[3],10,2399980690),m=i(m,h,a,l,v[10],15,4293915773),l=i(l,m,h,a,v[1],21,2240044497),a=i(a,l,m,h,v[8],6,1873313359),h=i(h,a,l,m,v[15],10,4264355552),m=i(m,h,a,l,v[6],15,2734768916),l=i(l,m,h,a,v[13],21,1309151649),a=i(a,l,m,h,v[4],6,4149444226),h=i(h,a,l,m,v[11],10,3174756917),m=i(m,h,a,l,v[2],15,718787259),l=i(l,m,h,a,v[9],21,3951481745),c[0]=x(a,c[0]),c[1]=x(l,c[1]),c[2]=x(m,c[2]),c[3]=x(h,c[3])}}();function cK(x,r,e){var t=x.len&Ga,u=0;if(x.len+=e,t){var i=64-t;if(e=64;)x.b8.set(r.subarray(u,u+64),0),x5(x.w,x.b32),e-=64,u+=64;e&&x.b8.set(r.subarray(u,u+e),0)}function sK(x){var r=x.len&Ga;if(x.b8[r]=Ct,r++,r>56){for(var e=r;e<64;e++)x.b8[e]=0;x5(x.w,x.b32);for(var e=0;e<56;e++)x.b8[e]=0}else for(var e=r;e<56;e++)x.b8[e]=0;x.b32[14]=x.len<<3,x.b32[15]=x.len>>29&536870911,x5(x.w,x.b32);for(var t=new Uint8Array(16),u=0;u<4;u++)for(var e=0;e<4;e++)t[u*4+e]=x.w[u]>>8*e&255;return t}function qN(x){return x.t!=4&&Ym(x),x.c}function aK(x){return b6(x,0,x.length)}function oK(x,r,e){var t=fK(),u=qN(x);return cK(t,u.subarray(r,r+e),e),aK(sK(t))}function vK(x,r,e){return oK(Ot(x),r,e)}function Ft(x){return x.l}function lK(){return 0}function jr(x){gN(G1.Sys_error,x)}var fa=new Array;function an(x){var r=fa[x];return r.opened||jr("Cannot flush a closed channel"),!r.buffer||r.buffer_curr==0||(r.output?r.output(b6(r.buffer,0,r.buffer_curr)):r.file.write(r.offset,r.buffer,0,r.buffer_curr),r.offset+=r.buffer_curr,r.buffer_curr=0),0}function TM(){}function mS0(x){for(var r=Nx(x),e=new Uint8Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var hK=["E2BIG","EACCES","EAGAIN",XI,"EBUSY","ECHILD","EDEADLK","EDOM",DO,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",bw,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",Wg,aD,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function ca(x,r,e,t){var u=hK.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Dt(r||Z0),Dt(e||Z0)];return i}var SM={};function Qa(x){return SM[x]}function sa(x,r){throw W0([0,x].concat(r))}function BN(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new na(4,x,x.length)}function AM(x){jr(x+Q4)}function ae(x){this.data=x}ae.prototype=new TM,ae.prototype.constructor=ae,ae.prototype.truncate=function(x){var r=this.data;this.data=S2(x|0),ta(r,0,this.data,0,x)},ae.prototype.length=function(){return Ft(this.data)},ae.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=S2(x+t),c=this.data;this.data=i,ta(c,0,this.data,0,u)}return ta(BN(r),e,this.data,x,t),0},ae.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=S2(t|0);ta(this.data,x,i,0,t),r.set(qN(i),e)}return t};function vv(x,r,e){this.file=r,this.name=x,this.flags=e}vv.prototype.err_closed=function(){jr(this.name+TF)},vv.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},vv.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},vv.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},vv.prototype.close=function(){this.file=void 0};function w1(x,r){this.content={},this.root=x,this.lookupFun=r}w1.prototype.nm=function(x){return this.root+x},w1.prototype.create_dir_if_needed=function(x){for(var r=x.split(ue),e=Z0,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=S2(t);return ta(BN(r),e,u,0,t),this.log(u.toUtf16()),0}jr(this.fd+TF)},A6.prototype.read=function(x,r,e,t){jr(this.fd+": file descriptor is write only")},A6.prototype.close=function(){this.log=void 0};function t5(x,r){return r==null&&(r=r5.length),r5[r]=x,r|0}function hS0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&jr(x+Ay),t.text&&t.binary&&jr(x+z_);var u=dK(x),i=u.device.open(u.rest,t);return t5(i,void 0)}(function(){function x(r,e){return E6()?pK(r,e):new A6(r,e)}t5(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),t5(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),t5(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function yK(x){var r=r5[x];r.flags.wronly&&jr(RD+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(c6),refill:e};return fa[t.fd]=t,t.fd}function IM(x){var r=r5[x];r.flags.rdonly&&jr(RD+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(c6),buffered:e};return fa[t.fd]=t,t.fd}function gK(){for(var x=0,r=0;ru.buffer.length){var i=new Uint8Array(u.buffer_curr+r.length);i.set(u.buffer),u.buffer=i}switch(u.buffered){case 0:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,an(x);break;case 1:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&an(x);break;case 2:var c=r.lastIndexOf(10);c<0?(u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&an(x)):(u.buffer.set(r.subarray(0,c+1),u.buffer_curr),u.buffer_curr+=c+1,an(x),u.buffer.set(r.subarray(c+1),u.buffer_curr),u.buffer_curr+=r.length-c-1);break}return 0}function _K(x,u,e,t){var u=qN(u);return wK(x,u,e,t)}function XN(x,r,e,t){return _K(x,Ot(r),e,t)}function NM(x,r){var e=String.fromCharCode(r);return XN(x,e,0,1),0}function lv(x,r){return+(Jm(x,r,!1)!=0)}function YN(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function pv(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:jN(x)||NN(x)?g3:x instanceof Function||typeof x=="function"?ep:x&&x.caml_custom?Hp:ql}function bK(x){var r={};if(x)for(var e=1;e=0?x=u:W1("caml_register_global: cannot locate "+t)}}G1[x+1]=r,e&&(G1[e]=r)}function zN(x,r){return SM[x]=r,0}function TK(x){return x[2]=mM++,x}function br(x,r){return x===r?1:0}function EK(){i1(UI)}function q2(x,r){return r>>>0>=Nx(x)&&EK(),J0(x,r)}function P(x,r){return 1-br(x,r)}function _1(x){return x.t&6&&zm(x),x.c}function SK(){return 2147483647/4|0}var AK=o0.process&&o0.process.platform&&o0.process.platform==wO?GD:"Unix";function PK(){return[0,AK,32,0]}function IK(){xM(G1.Not_found)}function jM(x){var r=$L(Jx(x));return r===void 0&&IK(),Dt(r)}function NK(){if(o0.crypto){if(o0.crypto.getRandomValues){var x=o0.crypto.getRandomValues(new Int32Array(4));return[0,x[0],x[1],x[2],x[3]]}else if(o0.crypto.randomBytes){var x=new Int32Array(o0.crypto.randomBytes(16).buffer);return[0,x[0],x[1],x[2],x[3]]}}var r=new Date().getTime(),e=r^4294967295*Math.random();return[0,e]}function n5(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function J2(x,r){return{joo_tramp:x,joo_args:r}}function Fr(x,r){if(r.fun)return x.fun=r.fun,0;if(typeof r=="function")return x.fun=r,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function U2(x){{if(x instanceof Array)return x;var r;return o0.RangeError&&x instanceof o0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||o0.InternalError&&x instanceof o0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=G1.Stack_overflow:x instanceof o0.Error&&Qa(DS)?r=[0,Qa(DS),x]:r=[0,G1.Failure,Dt(String(x))],x instanceof o0.Error&&(r.js_error=x),r}}function jK(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function CK(x){var r=Z0;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&jK(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=PR;for(var u=e;ue&&(r+=vF);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof na||typeof i=="string"?r+=Xk+i.toString()+Xk:r+=qo}r+=nR}else x[0]==n2&&(r+=x[1]);return r}function CM(x){if(x instanceof Array&&(x[0]==0||x[0]==n2)){var r=Qa(MO);if(r)Hm(r,[x,!1]);else{var e=CK(x),t=Qa(OD);if(t&&Hm(t,[0]),console.error(JE+e),x.js_error)throw x.js_error}}else throw x}function OK(){var x=o0.process;x&&x.on?x.on("uncaughtException",function(r,e){CM(r),x.exit(2)}):o0.addEventListener&&o0.addEventListener("error",function(r){r.error&&CM(r.error)})}OK();function d(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):ss(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):ss(x,[r,e])}function H0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):ss(x,[r,e,t])}function KN(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):ss(x,[r,e,t,u])}function JN(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):ss(x,[r,e,t,u,i])}function P6(x,r,e,t,u,i,c){return(x.l>=0?x.l:x.l=x.length)==6?x(r,e,t,u,i,c):ss(x,[r,e,t,u,i,c])}function DK(x,r,e,t,u,i,c,v){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,c,v):ss(x,[r,e,t,u,i,c,v])}var O=void 0,GN=[n2,yO,-1],OM=[n2,nL,-2],vn=[n2,wd,-3],u5=[n2,bL,-4],os=[n2,iF,-7],DM=[n2,PO,-8],FM=[n2,DR,-9],Nr=[n2,yR,-11],I6=[n2,VF,-12],FK=[4,0,0,0,[12,45,[4,0,0,0,0]]],WN=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,SO,[4,0,0,0,[12,45,[4,0,0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Oi,Wn,ze,U7,gc,ts,cf,rf,Jf,is,Kf,Xn,Z7,fu,Rf,zn,N7,zi,Yu,D7,Tf,Ru,s7,S7,nu,gi,gu,Ai,df,nc,Vf,c7,_f,K1,M7,Fi,Gi,B1],ln=[0,0,0];Rt(11,I6,VF),Rt(10,Nr,yR),Rt(9,[n2,aR,FR],aR),Rt(8,FM,DR),Rt(7,DM,PO),Rt(6,os,iF),Rt(5,[n2,UD,-6],UD),Rt(4,[n2,KR,-5],KR),Rt(3,u5,bL),Rt(2,vn,wd),Rt(1,OM,nL),Rt(0,GN,yO);function B2(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,B2(x[1])];case 1:return[1,B2(x[1])];case 2:return[2,B2(x[1])];case 3:return[3,B2(x[1])];case 4:return[4,B2(x[1])];case 5:return[5,B2(x[1])];case 6:return[6,B2(x[1])];case 7:return[7,B2(x[1])];case 8:var r=x[1];return[8,r,B2(x[2])];case 9:var e=x[1];return[9,e,e,B2(x[3])];case 10:return[10,B2(x[1])];case 11:return[11,B2(x[1])];case 12:return[12,B2(x[1])];case 13:return[13,B2(x[1])];default:return[14,B2(x[1])]}}function oe(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,oe(x[1],r)];case 1:return[1,oe(x[1],r)];case 2:return[2,oe(x[1],r)];case 3:return[3,oe(x[1],r)];case 4:return[4,oe(x[1],r)];case 5:return[5,oe(x[1],r)];case 6:return[6,oe(x[1],r)];case 7:return[7,oe(x[1],r)];case 8:var e=x[1];return[8,e,oe(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,oe(x[3],r)];case 10:return[10,oe(x[1],r)];case 11:return[11,oe(x[1],r)];case 12:return[12,oe(x[1],r)];case 13:return[13,oe(x[1],r)];default:return[14,oe(x[1],r)]}}function j2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,j2(x[1],r)];case 1:return[1,j2(x[1],r)];case 2:var e=x[1];return[2,e,j2(x[2],r)];case 3:var t=x[1];return[3,t,j2(x[2],r)];case 4:var u=x[3],i=x[2],c=x[1];return[4,c,i,u,j2(x[4],r)];case 5:var v=x[3],a=x[2],l=x[1];return[5,l,a,v,j2(x[4],r)];case 6:var m=x[3],h=x[2],T=x[1];return[6,T,h,m,j2(x[4],r)];case 7:var b=x[3],N=x[2],j=x[1];return[7,j,N,b,j2(x[4],r)];case 8:var I=x[3],F=x[2],M=x[1];return[8,M,F,I,j2(x[4],r)];case 9:var z=x[1];return[9,z,j2(x[2],r)];case 10:return[10,j2(x[1],r)];case 11:var B=x[1];return[11,B,j2(x[2],r)];case 12:var K=x[1];return[12,K,j2(x[2],r)];case 13:var n0=x[2],$=x[1];return[13,$,n0,j2(x[3],r)];case 14:var H=x[2],t0=x[1];return[14,t0,H,j2(x[3],r)];case 15:return[15,j2(x[1],r)];case 16:return[16,j2(x[1],r)];case 17:var c0=x[1];return[17,c0,j2(x[2],r)];case 18:var r0=x[1];return[18,r0,j2(x[2],r)];case 19:return[19,j2(x[1],r)];case 20:var v0=x[2],a0=x[1];return[20,a0,v0,j2(x[3],r)];case 21:var g0=x[1];return[21,g0,j2(x[2],r)];case 22:return[22,j2(x[1],r)];case 23:var i0=x[1];return[23,i0,j2(x[2],r)];default:var s0=x[2],d0=x[1];return[24,d0,s0,j2(x[3],r)]}}function Tx(x){throw W0([0,vn,x],1)}function R1(x){throw W0([0,u5,x],1)}function i5(x){return 0<=x?x:-x|0}var RK=ra,LK=Gs;function qx(x,r){var e=Nx(x),t=Nx(r),u=S2(e+t|0);return cs(x,0,u,0,e),cs(r,0,u,e,t),_1(u)}function Mx(x,r){if(!x)return r;var e=x[2],t=x[1];if(!e)return[0,t,r];var u=e[2],i=e[1];if(!u)return[0,t,[0,i,r]];for(var c=[0,u[1],v3],v=c,a=1,l=u[2];;){if(l){var m=l[2],h=l[1];if(m){var T=m[2],b=m[1];if(T){var N=[0,T[1],v3],j=T[2];v[1+a]=[0,h,[0,b,N]];var v=N,a=1,l=j;continue}v[1+a]=[0,h,[0,b,r]]}else v[1+a]=[0,h,r]}else v[1+a]=r;return[0,t,[0,i,c]]}}yK(0);var MM=IM(1),pn=IM(2),MK="output_substring";function N6(x,r){XN(x,r,0,Nx(r))}function qM(x,r,e,t){return 0<=e&&0<=t&&(Nx(r)-t|0)>=e?XN(x,r,e,t):R1(MK)}function UM(x){return N6(pn,x),NM(pn,10),an(pn)}var VN=[0,function(x){for(var r=gK(0);;){if(!r)return 0;var e=r[2],t=r[1];try{an(t)}catch(c){var u=U2(c);if(u[1]!==OM)throw W0(u,0)}var r=e}}],BM=[0,function(x){}];function $N(x){return d(BM[1],0),d(R3(VN),0)}zN(OD,$N);var XM=PK(0)[1],j6=(4*SK(0)|0)-1|0;function f5(x,r){return r?[0,d(x,r[1])]:0}function YM(x){return 25>>0?x:x-32|0}var qK="hd",UK="tl",BK="List.iter2";function aa(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function C6(x){return x?x[1]:Tx(qK)}function zM(x){return x?x[2]:Tx(UK)}function K3(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function ix(x){return K3(x,0)}function O6(x){if(!x)return 0;var r=x[1];return Mx(r,O6(x[2]))}function vs(x,r){if(!r)return 0;var e=r[2],t=r[1];if(!e)return[0,x(t),0];for(var u=e[2],i=e[1],c=x(t),v=[0,x(i),v3],a=v,l=1,m=u;;){if(m){var h=m[2],T=m[1];if(h){var b=h[2],N=h[1],j=x(T),I=[0,x(N),v3];a[1+l]=[0,j,I];var a=I,l=1,m=b;continue}a[1+l]=[0,x(T),0]}else a[1+l]=0;return[0,c,v]}}function c5(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,x(t[1]),e],t=u}}function b1(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];d(x,e[1]);var e=t}}function m1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=p(x,t,u[1]),u=i}}function QN(x,r,e){if(!r)return e;var t=r[1];return x(t,QN(x,r[2],e))}function KM(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],c=t[2];x(t[1],u[1]);var t=c,u=i;continue}}else if(!u)return;return R1(BK)}}function J3(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=d(x,e[1]);if(u)return u;var e=t}}function HN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=pM(e[1],x)===0?1:0;if(u)return u;var e=t}}function D6(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=e[1];if(x(u))for(var i=[0,u,v3],c=i,v=1,a=t;;){if(!a)return c[1+v]=0,i;var l=a[2],m=a[1];if(x(m)){var h=[0,m,v3];c[1+v]=h;var c=h,v=1,a=l}else var a=l}else var e=t}}var XK="String.sub / Bytes.sub",YK="Bytes.blit",zK="String.blit / Bytes.blit_string";function kv(x,r){var e=S2(x);return zz(e,0,x,r),e}function JM(x,r,e){if(0<=r&&0<=e&&(Ft(x)-e|0)>=r){var t=S2(e);return ta(x,r,t,0,e),t}return R1(XK)}function G3(x,r,e){return _1(JM(x,r,e))}function GM(x,r,e,t,u){if(0<=u&&0<=r&&(Ft(x)-u|0)>=r&&0<=t&&(Ft(e)-u|0)>=t){ta(x,r,e,t,u);return}return R1(YK)}function kn(x,r,e,t,u){if(0<=u&&0<=r&&(Nx(x)-u|0)>=r&&0<=t&&(Ft(e)-u|0)>=t){cs(x,r,e,t,u);return}return R1(zK)}var KK="String.concat",JK=Z0;function s5(x,r){return _1(kv(x,r))}function T1(x,r,e){return _1(JM(Ot(x),r,e))}function WM(x,r){if(!r)return JK;var e=Nx(x);x:{r:{for(var t=0,u=r,i=0;u;){var c=u[1];if(!u[2])break r;var v=(Nx(c)+e|0)+t|0,a=u[2],l=t<=v?v:R1(KK),t=l,u=a}var m=t;break x}var m=Nx(c)+t|0}for(var h=S2(m),T=i,b=r;;){if(b){var N=b[1];if(b[2]){var j=b[2];cs(N,0,h,T,Nx(N)),cs(x,0,h,T+Nx(N)|0,e);var T=(T+Nx(N)|0)+e|0,b=j;continue}cs(N,0,h,T,Nx(N))}return _1(h)}}function VM(x){var r=Ot(x);if(Ft(r)===0)var e=r;else{var t=Ft(r),u=S2(t);ta(r,0,u,0,t),Xr(u,0,YM(se(r,0)));var e=u}return _1(e)}function $M(x,r){var e=Nx(x),t=e<=Nx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(J0(r,u)!==J0(x,u))return 0;var u=u+1|0}}function QM(x,r){var e=[0,0],t=[0,Nx(r)],u=Nx(r)-1|0;if(u>=0)for(var i=u;;){if(J0(r,i)===x){var c=e[1];e[1]=[0,T1(r,i+1|0,(t[1]-i|0)-1|0),c],t[1]=i}var v=i-1|0;if(i===0)break;var i=v}var a=e[1];return[0,T1(r,0,t[1]),a]}function a5(x,r){return Az(Ot(x),r)}var GK="Array.blit";function HM(x,r,e,t,u){if(0<=u&&0<=r&&(x.length-1-u|0)>=r&&0<=t&&(e.length-1-u|0)>=t){dz(x,r,e,t,u);return}return R1(GK)}function ZM(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){x(r[1+u]);var i=u+1|0;if(e===u)break;var u=i}}function o5(x,r){var e=r.length-1;if(e===0)return[0];var t=$a(e,x(r[1])),u=e-1|0,i=1;if(u>=1)for(var c=i;;){t[1+c]=x(r[1+c]);var v=c+1|0;if(u===c)break;var c=v}return t}function F6(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];e;)var r=r+1|0,e=e[2];for(var i=$a(r,u),c=1,v=t;;){if(!v)return i;var a=v[2];i[1+c]=v[1];var c=c+1|0,v=a}}function xq(x){try{var r=[0,ov(x)];return r}catch(t){var e=U2(t);if(e[1]===vn)return 0;throw W0(e,0)}}var WK=x8,VK=x8,$K=x8,QK=x8;function ZN(x){function r(c){return c?c[5]:0}function e(c,v,a,l){var m=r(c),h=r(l),T=h<=m?m+1|0:h+1|0;return[0,c,v,a,l,T]}function t(c,v,a,l){var m=c?c[5]:0,h=l?l[5]:0;if((h+2|0)=h){var K=h<=m?m+1|0:h+1|0;return[0,c,v,a,l,K]}if(!l)return R1(QK);var n0=l[4],$=l[3],H=l[2],t0=l[1],c0=r(t0);if(c0<=r(n0))return e(e(c,v,a,t0),H,$,n0);if(!t0)return R1($K);var r0=t0[3],v0=t0[2],a0=t0[1],g0=e(t0[4],H,$,n0);return e(e(c,v,a,a0),v0,r0,g0)}function u(c,v,a){if(!a)return[0,0,c,v,0,1];var l=a[4],m=a[3],h=a[2],T=a[1],b=a[5],N=p(x[1],c,h);if(N===0)return m===v?a:[0,T,c,v,l,b];if(0<=N){var j=u(c,v,l);return l===j?a:t(T,h,m,j)}var I=u(c,v,T);return T===I?a:t(I,h,m,l)}function i(c,v,a){for(var l=v,m=a;;){if(!l)return m;var h=l[4],T=l[3],b=l[2],N=c(b,T,i(c,l[1],m)),l=h,m=N}}return[0,0,u,,,,,,,,,,,,,,,function(c,v){for(var a=v;;){if(!a)throw W0(os,1);var l=a[4],m=a[3],h=a[1],T=p(x[1],c,a[2]);if(T===0)return m;var b=0<=T?l:h,a=b}},,,,,,,i]}function R6(x){return[0,0,0]}function L6(x){x[1]=0,x[2]=0}function mv(x,r){r[1]=[0,x,r[1]],r[2]=r[2]+1|0}function W3(x){var r=x[1];if(!r)return 0;var e=r[1];return x[1]=r[2],x[2]=x[2]-1|0,[0,e]}function V3(x){var r=x[1];return r?[0,r[1]]:0}function rq(x){return[0,0,0,0]}function xj(x){x[1]=0,x[2]=0,x[3]=0}function rj(x,r){var e=[0,x,0],t=r[3];return t?(r[1]=r[1]+1|0,t[2]=e,r[3]=e,0):(r[1]=1,r[2]=e,r[3]=e,0)}var HK="Buffer.add: cannot grow buffer",ZK="Buffer.add_substring/add_subbytes";function $r(x){var r=1<=x?x:1,e=j6=(e+r|0));)t[1]=2*t[1]|0;j6=0)for(var c=i;;){Xr(t,c,x(se(r,c)));var v=c+1|0;if(u===c)break;var c=v}return t}var QJ=O3,HJ="%+d",ZJ="% d",xG=xF,rG="%+i",eG="% i",tG="%x",nG="%#x",uG="%X",iG="%#X",fG="%o",cG="%#o",sG=BR,aG="%Ld",oG="%+Ld",vG="% Ld",lG=sF,pG="%+Li",kG="% Li",mG="%Lx",hG="%#Lx",dG="%LX",yG="%#LX",gG="%Lo",wG="%#Lo",_G="%Lu",bG="%ld",TG="%+ld",EG="% ld",SG=PL,AG="%+li",PG="% li",IG="%lx",NG="%#lx",jG="%lX",CG="%#lX",OG="%lo",DG="%#lo",FG="%lu",RG="%nd",LG="%+nd",MG="% nd",qG=mO,UG="%+ni",BG="% ni",XG="%nx",YG="%#nx",zG="%nX",KG="%#nX",JG="%no",GG="%#no",WG="%nu",VG=[0,sn],$G=cn,QG="neg_infinity",HG=xL,ZG=cI,xW=[0,k1,1558,4],rW="Printf: bad conversion %[",eW=[0,k1,1626,39],tW=[0,k1,1649,31],nW=[0,k1,1650,31],uW="Printf: bad conversion %_",iW=cL,fW=mR,cW=cL,sW=mR;function v5(x,r){if(typeof x=="number")return[0,0,r];if(x[0]===0)return[0,[0,x[1],x[2]],r];if(typeof r!="number"&&r[0]===2)return[0,[1,x[1]],r[1]];throw W0(E1,1)}function q6(x,r,e){var t=v5(x,e);if(typeof r!="number")return[0,t[1],[0,r[1]],t[2]];if(!r)return[0,t[1],0,t[2]];var u=t[2];if(typeof u!="number"&&u[0]===2)return[0,t[1],1,u[1]];throw W0(E1,1)}function h2(x,r){if(typeof x=="number")return[0,0,r];switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var e=h2(x[1],r[1]);return[0,[0,e[1]],e[2]]}break;case 1:if(typeof r!="number"&&r[0]===0){var t=h2(x[1],r[1]);return[0,[1,t[1]],t[2]]}break;case 2:var u=x[2],i=v5(x[1],r),c=i[2],v=i[1];if(typeof c!="number"&&c[0]===1){var a=h2(u,c[1]);return[0,[2,v,a[1]],a[2]]}throw W0(E1,1);case 3:var l=x[2],m=v5(x[1],r),h=m[2],T=m[1];if(typeof h!="number"&&h[0]===1){var b=h2(l,h[1]);return[0,[3,T,b[1]],b[2]]}throw W0(E1,1);case 4:var N=x[4],j=x[1],I=q6(x[2],x[3],r),F=I[3],M=I[1];if(typeof F!="number"&&F[0]===2){var z=I[2],B=h2(N,F[1]);return[0,[4,j,M,z,B[1]],B[2]]}throw W0(E1,1);case 5:var K=x[4],n0=x[1],$=q6(x[2],x[3],r),H=$[3],t0=$[1];if(typeof H!="number"&&H[0]===3){var c0=$[2],r0=h2(K,H[1]);return[0,[5,n0,t0,c0,r0[1]],r0[2]]}throw W0(E1,1);case 6:var v0=x[4],a0=x[1],g0=q6(x[2],x[3],r),i0=g0[3],s0=g0[1];if(typeof i0!="number"&&i0[0]===4){var d0=g0[2],w0=h2(v0,i0[1]);return[0,[6,a0,s0,d0,w0[1]],w0[2]]}throw W0(E1,1);case 7:var M0=x[4],C0=x[1],D0=q6(x[2],x[3],r),I0=D0[3],j0=D0[1];if(typeof I0!="number"&&I0[0]===5){var y0=D0[2],Y0=h2(M0,I0[1]);return[0,[7,C0,j0,y0,Y0[1]],Y0[2]]}throw W0(E1,1);case 8:var L=x[4],N0=x[1],S0=q6(x[2],x[3],r),K0=S0[3],A0=S0[1];if(typeof K0!="number"&&K0[0]===6){var $0=S0[2],ex=h2(L,K0[1]);return[0,[8,N0,A0,$0,ex[1]],ex[2]]}throw W0(E1,1);case 9:var xx=x[2],tx=v5(x[1],r),z0=tx[2],px=tx[1];if(typeof z0!="number"&&z0[0]===7){var sx=h2(xx,z0[1]);return[0,[9,px,sx[1]],sx[2]]}throw W0(E1,1);case 10:var Q=h2(x[1],r);return[0,[10,Q[1]],Q[2]];case 11:var b0=x[1],U=h2(x[2],r);return[0,[11,b0,U[1]],U[2]];case 12:var h0=x[1],_0=h2(x[2],r);return[0,[12,h0,_0[1]],_0[2]];case 13:if(typeof r!="number"&&r[0]===8){var m0=r[1],T0=r[2],X=x[3],Gx=x[1];if(lv([0,x[2]],[0,m0]))throw W0(E1,1);var Px=h2(X,T0);return[0,[13,Gx,m0,Px[1]],Px[2]]}break;case 14:if(typeof r!="number"&&r[0]===9){var G0=r[1],Kr=r[3],S=x[3],G=x[2],rx=x[1],yx=[0,B2(G0)];if(lv([0,B2(G)],yx))throw W0(E1,1);var Ex=h2(S,B2(Kr));return[0,[14,rx,G0,Ex[1]],Ex[2]]}break;case 15:if(typeof r!="number"&&r[0]===10){var nx=h2(x[1],r[1]);return[0,[15,nx[1]],nx[2]]}break;case 16:if(typeof r!="number"&&r[0]===11){var p0=h2(x[1],r[1]);return[0,[16,p0[1]],p0[2]]}break;case 17:var Fx=x[1],Sx=h2(x[2],r);return[0,[17,Fx,Sx[1]],Sx[2]];case 18:var bx=x[2],B0=x[1];if(B0[0]===0){var Wx=B0[1],Yx=Wx[2],ax=h2(Wx[1],r),Qx=ax[1],kx=h2(bx,ax[2]);return[0,[18,[0,[0,Qx,Yx]],kx[1]],kx[2]]}var tr=B0[1],sr=tr[2],Mr=h2(tr[1],r),a2=Mr[1],_2=h2(bx,Mr[2]);return[0,[18,[1,[0,a2,sr]],_2[1]],_2[2]];case 19:if(typeof r!="number"&&r[0]===13){var i2=h2(x[1],r[1]);return[0,[19,i2[1]],i2[2]]}break;case 20:if(typeof r!="number"&&r[0]===1){var Q2=x[2],jx=x[1],_=h2(x[3],r[1]);return[0,[20,jx,Q2,_[1]],_[2]]}break;case 21:if(typeof r!="number"&&r[0]===2){var V=x[1],lx=h2(x[2],r[1]);return[0,[21,V,lx[1]],lx[2]]}break;case 23:var U0=x[2],ox=x[1];if(typeof ox!="number")switch(ox[0]){case 0:return Ve(ox,U0,r);case 1:return Ve(ox,U0,r);case 2:return Ve(ox,U0,r);case 3:return Ve(ox,U0,r);case 4:return Ve(ox,U0,r);case 5:return Ve(ox,U0,r);case 6:return Ve(ox,U0,r);case 7:return Ve(ox,U0,r);case 8:return Ve([8,ox[1],ox[2]],U0,r);case 9:var wx=ox[1],Cr=Ee(ox[2],U0,r),Hx=Cr[2];return[0,[23,[9,wx,Cr[1]],Hx[1]],Hx[2]];case 10:return Ve(ox,U0,r);default:return Ve(ox,U0,r)}switch(ox){case 0:return Ve(ox,U0,r);case 1:return Ve(ox,U0,r);case 2:if(typeof r!="number"&&r[0]===14){var Zr=h2(U0,r[1]);return[0,[23,2,Zr[1]],Zr[2]]}throw W0(E1,1);default:return Ve(ox,U0,r)}}throw W0(E1,1)}function Ve(x,r,e){var t=h2(r,e);return[0,[23,x,t[1]],t[2]]}function Ee(x,r,e){if(typeof x=="number")return[0,0,h2(r,e)];switch(x[0]){case 0:if(typeof e!="number"&&e[0]===0){var t=Ee(x[1],r,e[1]);return[0,[0,t[1]],t[2]]}break;case 1:if(typeof e!="number"&&e[0]===1){var u=Ee(x[1],r,e[1]);return[0,[1,u[1]],u[2]]}break;case 2:if(typeof e!="number"&&e[0]===2){var i=Ee(x[1],r,e[1]);return[0,[2,i[1]],i[2]]}break;case 3:if(typeof e!="number"&&e[0]===3){var c=Ee(x[1],r,e[1]);return[0,[3,c[1]],c[2]]}break;case 4:if(typeof e!="number"&&e[0]===4){var v=Ee(x[1],r,e[1]);return[0,[4,v[1]],v[2]]}break;case 5:if(typeof e!="number"&&e[0]===5){var a=Ee(x[1],r,e[1]);return[0,[5,a[1]],a[2]]}break;case 6:if(typeof e!="number"&&e[0]===6){var l=Ee(x[1],r,e[1]);return[0,[6,l[1]],l[2]]}break;case 7:if(typeof e!="number"&&e[0]===7){var m=Ee(x[1],r,e[1]);return[0,[7,m[1]],m[2]]}break;case 8:if(typeof e!="number"&&e[0]===8){var h=e[1],T=e[2],b=x[2];if(lv([0,x[1]],[0,h]))throw W0(E1,1);var N=Ee(b,r,T);return[0,[8,h,N[1]],N[2]]}break;case 9:if(typeof e!="number"&&e[0]===9){var j=e[2],I=e[1],F=e[3],M=x[3],z=x[2],B=x[1],K=[0,B2(I)];if(lv([0,B2(B)],K))throw W0(E1,1);var n0=[0,B2(j)];if(lv([0,B2(z)],n0))throw W0(E1,1);var $=M1(h1(c1(I),j)),H=$[4];$[2].call(null,O),H(O);var t0=Ee(B2(M),r,F),c0=t0[2];return[0,[9,I,j,c1(t0[1])],c0]}break;case 10:if(typeof e!="number"&&e[0]===10){var r0=Ee(x[1],r,e[1]);return[0,[10,r0[1]],r0[2]]}break;case 11:if(typeof e!="number"&&e[0]===11){var v0=Ee(x[1],r,e[1]);return[0,[11,v0[1]],v0[2]]}break;case 13:if(typeof e!="number"&&e[0]===13){var a0=Ee(x[1],r,e[1]);return[0,[13,a0[1]],a0[2]]}break;case 14:if(typeof e!="number"&&e[0]===14){var g0=Ee(x[1],r,e[1]);return[0,[14,g0[1]],g0[2]]}break}throw W0(E1,1)}function $e(x,r,e){var t=Nx(e),u=0<=r?x:0,i=i5(r);if(i<=t)return e;var c=u===2?48:32,v=kv(i,c);switch(u){case 0:kn(e,0,v,0,t);break;case 1:kn(e,0,v,i-t|0,t);break;default:x:if(0u){if(u!==32){if(43>u)break x;switch(u+P_|0){case 5:e:if(t<(e+2|0)&&1=(e+1|0))break x;var c=kv(e+1|0,48);return ua(c,0,u),kn(r,1,c,(e-t|0)+2|0,t-1|0),_1(c)}if(71<=u){if(5>>0)break x}else if(65>u)break x}if(t=0)for(var i=u;;){var c=se(r,i);x:{r:{e:{if(32<=c){var v=c-34|0;if(58>>0){if(93<=v)break e}else if(56>>0)break r;var a=1;break x}if(11<=c){if(c===13)break r}else if(8<=c)break r}var a=4;break x}var a=2}e[1]=e[1]+a|0;var l=i+1|0;if(t===i)break;var i=l}if(e[1]===Ft(r))var m=r;else{var h=S2(e[1]);e[1]=0;var T=Ft(r)-1|0,b=0;if(T>=0)for(var N=b;;){var j=se(r,N);x:{r:{e:{if(35<=j){if(j!==92){if(Br<=j)break e;break r}}else{if(32>j){if(14<=j)break e;switch(j){case 8:Xr(h,e[1],92),e[1]++,Xr(h,e[1],98);break x;case 9:Xr(h,e[1],92),e[1]++,Xr(h,e[1],Wa);break x;case 10:Xr(h,e[1],92),e[1]++,Xr(h,e[1],z1);break x;case 13:Xr(h,e[1],92),e[1]++,Xr(h,e[1],mr);break x;default:break e}}if(34>j)break r}Xr(h,e[1],92),e[1]++,Xr(h,e[1],j);break x}Xr(h,e[1],92),e[1]++,Xr(h,e[1],48+(j/y2|0)|0),e[1]++,Xr(h,e[1],48+((j/10|0)%10|0)|0),e[1]++,Xr(h,e[1],48+(j%10|0)|0);break x}Xr(h,e[1],j)}e[1]++;var I=N+1|0;if(T===N)break;var N=I}var m=h}var F=_1(m),M=Nx(F),z=kv(M+2|0,34);return cs(F,0,z,1,M),_1(z)}function aq(x,r){var e=i5(r),t=VG[1];switch(x[2]){case 0:var u=g1;break;case 1:var u=fe;break;case 2:var u=69;break;case 3:var u=sn;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=Be;break;case 7:var u=72;break;default:var u=70}var i=iq(16);switch($3(i,37),x[1]){case 0:break;case 1:$3(i,43);break;default:$3(i,32)}return 8<=x[2]&&$3(i,35),$3(i,46),L1(i,Z0+e),$3(i,u),cq(i)}function l5(x,r){if(13>x)return r;var e=[0,0],t=Nx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=J0(r,i)+e1>>>0&&e[1]++;var c=i+1|0;if(t===i)break;var i=c}var v=e[1],a=S2(Nx(r)+((v-1|0)/3|0)|0),l=[0,0];function m(F){ua(a,l[1],F),l[1]++}var h=[0,((v-1|0)%3|0)+1|0],T=Nx(r)-1|0,b=0;if(T>=0)for(var N=b;;){var j=J0(r,N);9>>0||(h[1]===0&&(m(95),h[1]=3),h[1]+=-1),m(j);var I=N+1|0;if(T===N)break;var N=I}return _1(a)}function oW(x,r){switch(x){case 1:var e=HJ;break;case 2:var e=ZJ;break;case 4:var e=rG;break;case 5:var e=eG;break;case 6:var e=tG;break;case 7:var e=nG;break;case 8:var e=uG;break;case 9:var e=iG;break;case 10:var e=fG;break;case 11:var e=cG;break;case 0:case 13:var e=QJ;break;case 3:case 14:var e=xG;break;default:var e=sG}return l5(x,Wm(e,r))}function vW(x,r){switch(x){case 1:var e=TG;break;case 2:var e=EG;break;case 4:var e=AG;break;case 5:var e=PG;break;case 6:var e=IG;break;case 7:var e=NG;break;case 8:var e=jG;break;case 9:var e=CG;break;case 10:var e=OG;break;case 11:var e=DG;break;case 0:case 13:var e=bG;break;case 3:case 14:var e=SG;break;default:var e=FG}return l5(x,Wm(e,r))}function lW(x,r){switch(x){case 1:var e=LG;break;case 2:var e=MG;break;case 4:var e=UG;break;case 5:var e=BG;break;case 6:var e=XG;break;case 7:var e=YG;break;case 8:var e=zG;break;case 9:var e=KG;break;case 10:var e=JG;break;case 11:var e=GG;break;case 0:case 13:var e=RG;break;case 3:case 14:var e=qG;break;default:var e=WG}return l5(x,Wm(e,r))}function pW(x,r){switch(x){case 1:var e=oG;break;case 2:var e=vG;break;case 4:var e=pG;break;case 5:var e=kG;break;case 6:var e=mG;break;case 7:var e=hG;break;case 8:var e=dG;break;case 9:var e=yG;break;case 10:var e=gG;break;case 11:var e=wG;break;case 0:case 13:var e=aG;break;case 3:case 14:var e=lG;break;default:var e=_G}return l5(x,dM(e,r))}function oa(x,r,e){function t(h){switch(x[1]){case 0:var T=45;break;case 1:var T=43;break;default:var T=32}return Jz(e,r,T)}function u(h){var T=Iz(e);return T===3?e<0?QG:HG:4<=T?ZG:h}switch(x[2]){case 5:for(var i=FN(aq(x,r),e),c=0,v=Nx(i);;){if(c===v)var a=0;else{var l=q2(i,c)+Ja|0;x:{if(23>>0){if(l===55)break x}else if(21>>0)break x;var c=c+1|0;continue}var a=1}var m=a?i:qx(i,$G);return u(m)}case 6:return t(O);case 7:return _1($J(YM,Ot(t(O))));case 8:return u(t(O));default:return FN(aq(x,r),e)}}function U6(x,r,e,t){for(var u=r,i=e,c=t;;){if(typeof c=="number")return u(i);switch(c[0]){case 0:var v=c[1];return function(y0){return Lr(u,[5,i,y0],v)};case 1:var a=c[1];return function(y0){x:{r:{if(40<=y0){if(y0===92){var N0=zJ;break x}if(Br>y0)break r}else{if(32<=y0){if(39>y0)break r;var N0=KJ;break x}if(14>y0)switch(y0){case 8:var N0=JJ;break x;case 9:var N0=GJ;break x;case 10:var N0=WJ;break x;case 13:var N0=VJ;break x}}var Y0=S2(4);Xr(Y0,0,92),Xr(Y0,1,48+(y0/y2|0)|0),Xr(Y0,2,48+((y0/10|0)%10|0)|0),Xr(Y0,3,48+(y0%10|0)|0);var N0=_1(Y0);break x}var L=S2(1);Xr(L,0,y0);var N0=_1(L)}var S0=Nx(N0),K0=kv(S0+2|0,39);return cs(N0,0,K0,1,S0),Lr(u,[4,i,_1(K0)],a)};case 2:return aj(u,i,c[2],c[1],function(y0){return y0});case 3:return aj(u,i,c[2],c[1],aW);case 4:return p5(u,i,c[4],c[2],c[3],oW,c[1]);case 5:return p5(u,i,c[4],c[2],c[3],vW,c[1]);case 6:return p5(u,i,c[4],c[2],c[3],lW,c[1]);case 7:return p5(u,i,c[4],c[2],c[3],pW,c[1]);case 8:var l=c[4],m=c[3],h=c[2],T=c[1];if(typeof h=="number"){if(typeof m=="number")return m?function(y0,Y0){return Lr(u,[4,i,oa(T,y0,Y0)],l)}:function(y0){return Lr(u,[4,i,oa(T,fj(T),y0)],l)};var b=m[1];return function(y0){return Lr(u,[4,i,oa(T,b,y0)],l)}}if(h[0]===0){var N=h[2],j=h[1];if(typeof m=="number")return m?function(y0,Y0){return Lr(u,[4,i,$e(j,N,oa(T,y0,Y0))],l)}:function(y0){return Lr(u,[4,i,$e(j,N,oa(T,fj(T),y0))],l)};var I=m[1];return function(y0){return Lr(u,[4,i,$e(j,N,oa(T,I,y0))],l)}}var F=h[1];if(typeof m=="number")return m?function(y0,Y0,L){return Lr(u,[4,i,$e(F,y0,oa(T,Y0,L))],l)}:function(y0,Y0){return Lr(u,[4,i,$e(F,y0,oa(T,fj(T),Y0))],l)};var M=m[1];return function(y0,Y0){return Lr(u,[4,i,$e(F,y0,oa(T,M,Y0))],l)};case 9:return aj(u,i,c[2],c[1],YJ);case 10:var i=[7,i],c=c[1];break;case 11:var i=[2,i,c[1]],c=c[2];break;case 12:var i=[3,i,c[1]],c=c[2];break;case 13:var z=c[3],B=c[2],K=iq(16);cj(K,B);var n0=cq(K);return function(y0){return Lr(u,[4,i,n0],z)};case 14:var $=c[3],H=c[2];return function(y0){var Y0=y0[1],L=h2(Y0,B2(c1(H)));if(typeof L[2]=="number")return Lr(u,i,j2(L[1],$));throw W0(E1,1)};case 15:var t0=c[1];return function(y0,Y0){return Lr(u,[6,i,function(L){return p(y0,L,Y0)}],t0)};case 16:var c0=c[1];return function(y0){return Lr(u,[6,i,y0],c0)};case 17:var i=[0,i,c[1]],c=c[2];break;case 18:var r0=c[1];if(r0[0]===0){let y0=i,Y0=u,L=c[2];var u=function(A0){return Lr(Y0,[1,y0,[0,A0]],L)},i=0,c=r0[1][1]}else{let y0=i,Y0=u,L=c[2];var u=function(A0){return Lr(Y0,[1,y0,[1,A0]],L)},i=0,c=r0[1][1]}break;case 19:throw W0([0,Nr,xW],1);case 20:var v0=c[3],a0=[8,i,rW];return function(y0){return Lr(u,a0,v0)};case 21:var g0=c[2];return function(y0){return Lr(u,[4,i,Wm(BR,y0)],g0)};case 22:var i0=c[1];return function(y0){return Lr(u,[5,i,y0],i0)};case 23:var s0=c[2],d0=c[1];if(typeof d0=="number")switch(d0){case 0:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 1:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 2:throw W0([0,Nr,eW],1);default:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0])}switch(d0[0]){case 0:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 1:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 2:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 3:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 4:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 5:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 6:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 7:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 8:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);case 9:var w0=d0[2];return x<50?sj(x+1|0,u,i,w0,s0):J2(sj,[0,u,i,w0,s0]);case 10:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0]);default:return x<50?v2(x+1|0,u,i,s0):J2(v2,[0,u,i,s0])}default:var M0=c[3],C0=c[1],D0=d(c[2],0);return x<50?oj(x+1|0,u,i,M0,C0,D0):J2(oj,[0,u,i,M0,C0,D0])}}}function Lr(x,r,e){return n5(U6(0,x,r,e))}function sj(x,r,e,t,u){if(typeof t=="number")return x<50?v2(x+1|0,r,e,u):J2(v2,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(B){return pt(r,e,i,u)};case 1:var c=t[1];return function(B){return pt(r,e,c,u)};case 2:var v=t[1];return function(B){return pt(r,e,v,u)};case 3:var a=t[1];return function(B){return pt(r,e,a,u)};case 4:var l=t[1];return function(B){return pt(r,e,l,u)};case 5:var m=t[1];return function(B){return pt(r,e,m,u)};case 6:var h=t[1];return function(B){return pt(r,e,h,u)};case 7:var T=t[1];return function(B){return pt(r,e,T,u)};case 8:var b=t[2];return function(B){return pt(r,e,b,u)};case 9:var N=t[3],j=t[2],I=h1(c1(t[1]),j);return function(B){return pt(r,e,oe(I,N),u)};case 10:var F=t[1];return function(B,K){return pt(r,e,F,u)};case 11:var M=t[1];return function(B){return pt(r,e,M,u)};case 12:var z=t[1];return function(B){return pt(r,e,z,u)};case 13:throw W0([0,Nr,tW],1);default:throw W0([0,Nr,nW],1)}}function pt(x,r,e,t){return n5(sj(0,x,r,e,t))}function v2(x,r,e,t){var u=[8,e,uW];return x<50?U6(x+1|0,r,u,t):J2(U6,[0,r,u,t])}function aj(x,r,e,t,u){if(typeof t=="number")return function(a){return Lr(x,[4,r,u(a)],e)};if(t[0]===0){var i=t[2],c=t[1];return function(a){return Lr(x,[4,r,$e(c,i,u(a))],e)}}var v=t[1];return function(a,l){return Lr(x,[4,r,$e(v,a,u(l))],e)}}function p5(x,r,e,t,u,i,c){if(typeof t=="number"){if(typeof u=="number")return u?function(b,N){return Lr(x,[4,r,Q3(b,i(c,N))],e)}:function(b){return Lr(x,[4,r,i(c,b)],e)};var v=u[1];return function(b){return Lr(x,[4,r,Q3(v,i(c,b))],e)}}if(t[0]===0){var a=t[2],l=t[1];if(typeof u=="number")return u?function(b,N){return Lr(x,[4,r,$e(l,a,Q3(b,i(c,N)))],e)}:function(b){return Lr(x,[4,r,$e(l,a,i(c,b))],e)};var m=u[1];return function(b){return Lr(x,[4,r,$e(l,a,Q3(m,i(c,b)))],e)}}var h=t[1];if(typeof u=="number")return u?function(b,N,j){return Lr(x,[4,r,$e(h,b,Q3(N,i(c,j)))],e)}:function(b,N){return Lr(x,[4,r,$e(h,b,i(c,N))],e)};var T=u[1];return function(b,N){return Lr(x,[4,r,$e(h,b,Q3(T,i(c,N)))],e)}}function oj(x,r,e,t,u,i){if(u){var c=u[1];return function(a){return kW(r,e,t,c,d(i,a))}}var v=[4,e,i];return x<50?U6(x+1|0,r,v,t):J2(U6,[0,r,v,t])}function kW(x,r,e,t,u){return n5(oj(0,x,r,e,t,u))}function va(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=sq(e[2]);return va(x,t),N6(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];va(x,c),N6(x,iW);var e=v}else{var a=i[1];va(x,c),N6(x,fW);var e=a}break;case 6:var l=e[2];return va(x,e[1]),d(l,x);case 7:va(x,e[1]),an(x);return;case 8:var m=e[2];return va(x,e[1]),R1(m);case 2:case 4:var h=e[2];return va(x,e[1]),N6(x,h);default:var T=e[2];va(x,e[1]),NM(x,T);return}}}function la(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=sq(e[2]);return la(x,t),ir(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];la(x,c),ir(x,cW);var e=v}else{var a=i[1];la(x,c),ir(x,sW);var e=a}break;case 6:var l=e[2];return la(x,e[1]),ir(x,d(l,0));case 7:var e=e[1];break;case 8:var m=e[2];return la(x,e[1]),R1(m);case 2:case 4:var h=e[2];return la(x,e[1]),ir(x,h);default:var T=e[2];return la(x,e[1]),lt(x,T)}}}function oq(x,r){return Lr(function(e){return va(x,e),0},0,r[1])}function vj(x){return oq(pn,x)}function ar(x){return Lr(function(r){var e=$r(64);return la(e,r),G2(e)},0,x[1])}var lj=[0,0],mW=cn,hW=[0,[3,0,0],Vl],dW=qo,yW=[0,[4,0,0,0,0],O3],gW=Z0,wW=[0,[11,vF,[2,0,[2,0,0]]],", %s%s"],_W=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],bW=Z0,TW=Z0,EW=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],SW="Out of memory",AW="Stack overflow",PW="Pattern matching failed",IW="Assertion failed",NW="Undefined recursive module",jW="Raised at",CW="Re-raised at",OW="Raised by primitive operation at",DW="Called from",FW=[0,[12,32,[4,0,0,0,0]]," %d"],RW=" (inlined)",LW=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line",[2,0,[11,SO,FK]]]]]]]]]],'%s %s in file "%s"%s, line%s, characters %d-%d'],MW=Z0,qW=[0,[11,"s ",[4,0,0,0,[12,45,[4,0,0,0,0]]]],"s %d-%d"],UW=[0,[2,0,[11," unknown location",0]],"%s unknown location"],BW=[0,[2,0,[12,10,0]],`%s +`];function pj(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return d(ar(yW),e);if(pv(e)===g3)return d(ar(hW),e);if(pv(e)!==pE)return dW;for(var t=FN("%.12g",e),u=0,i=Nx(t);;){if(i<=u)return qx(t,mW);var c=q2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function vq(x,r){if(x.length-1<=r)return gW;var e=vq(x,r+1|0),t=pj(x,r);return p(ar(wW),t,e)}function B6(x){x:{r:{for(var r=R3(lj);r;){e:{var e=r[2],t=r[1];try{var u=d(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===GN)return SW;if(x===FM)return AW;if(x[1]===DM){var c=x[2],v=c[3],a=c[2],l=c[1];return JN(ar(WN),l,a,v,v+5|0,PW)}if(x[1]===Nr){var m=x[2],h=m[3],T=m[2],b=m[1];return JN(ar(WN),b,T,h,h+6|0,IW)}if(x[1]===I6){var N=x[2],j=N[3],I=N[2],F=N[1];return JN(ar(WN),F,I,j,j+6|0,NW)}if(pv(x)===0){var M=x.length-1,z=x[1][1];if(2>>0)var B=vq(x,2),K=pj(x,1),n0=p(ar(_W),K,B);else switch(M){case 0:var n0=bW;break;case 1:var n0=TW;break;default:var $=pj(x,1),n0=d(ar(EW),$)}var H=[0,z,[0,n0]]}else var H=[0,x[1],0];var t0=H[2],c0=H[1];return t0?qx(c0,t0[1]):c0}function kj(x,r){var e=Bz(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=N2(e,i)[1+i];let n0=i;var v=function(H){return H?n0===0?jW:CW:n0===0?OW:DW};if(c[0]===0){if(c[3]===c[6])var a=c[3],h=d(ar(FW),a);else var l=c[6],m=c[3],h=p(ar(qW),m,l);var T=c[7],b=c[4],N=c[8]?RW:MW,j=c[2],I=c[9],F=v(c[1]),z=[0,DK(ar(LW),F,I,j,N,h,b,T)]}else if(c[1])var z=0;else var M=v(0),z=[0,d(ar(UW),M)];if(z){var B=z[1];d(oq(x,BW),B)}var K=i+1|0;if(t===i)break;var i=K}}function mj(x){for(;;){var r=R3(lj),e=1-Bm(lj,r,[0,x,r]);if(!e)return e}}var XW=[0,Z0,`(Cannot print locations: bytecode executable program file not found)`,`(Cannot print locations: bytecode executable program file appears to be corrupt)`,`(Cannot print locations: bytecode executable program file has wrong magic number)`,`(Cannot print locations: bytecode executable program file cannot be opened; - -- too many open files. Try running with OCAMLRUNPARAM=b=2)`],kW=[3,0,3],mW=Mf,hW=W3,dW="File_key.LibFile@ "],VW=[0,[3,0,0],q3],GW=[0,[17,0,[12,41,0]],f4],WW=[0,[12,40,[18,[1,[0,[11,ht,0],ht]],[11,"File_key.SourceFile",[17,[0,be,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],$W=[0,[3,0,0],q3],HW=[0,[17,0,[12,41,0]],f4],QW=[0,[12,40,[18,[1,[0,[11,ht,0],ht]],[11,"File_key.JsonFile",[17,[0,be,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],ZW=[0,[3,0,0],q3],x$=[0,[17,0,[12,41,0]],f4],r$=[0,[12,40,[18,[1,[0,[11,ht,0],ht]],[11,"File_key.ResourceFile",[17,[0,be,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],e$=[0,[3,0,0],q3],t$=[0,[17,0,[12,41,0]],f4],n$=[0,1],u$=[0,0],i$=[0,1],f$=[0,2],c$=[0,2],s$=[0,0],a$=[0,1],o$=[0,1],v$=[0,1],l$=[0,1],p$=[0,1],k$=[0,1],m$=[0,0,0],h$=[0,0,0],d$=[0,M1,Xu,Hi,gf,L1,oi,jc,Mu,A7,On,lc,ju,Hu,h7,n7,N7,If,Nf,si,d7,bn,Zu,bc,e7,gc,xi,Af,ii,Pn,En,Jf,nu,fu,Gi,Ac,je,cf,ai,kc,xf,df,P7,au,Pe,Li,x7,Ai,Ei,oc,a7,Pu,ec,Se,Gn,o7,Pi,Z7,ku,z7,tc,Ie,G7,rc,_f,eu,Sc,Tf,M7,Rf,Wf,lu,di,Wn,Jn,yu,S7,i7,ac,xc,y7,ou,dc,$t,af,Iu,Rn,Lf,D7,$u,Bf,Ju,nf,Ku,Ln,_c,Ki,Tc,ji,q7,jf,yf,ki,s7,tf,T7,pc,Tu,mc,yc,Xn,Du,nc,mu,Vu,Bn,Er,Fi,X7,_n,v7,li,Tn,du,m7,Uf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]],oF],pH=[0,[15,0],RF],kH="(Some ",mH=zw,hH="None",dH=[0,[18,[1,[0,[11,ht,0],ht]],[11,ZR,0]],YM],yH="Loc.source",gH=[0,[18,[1,[0,0,H0]],[2,0,[11,Y3,[17,[0,be,1,0],0]]]],J3],_H=[0,[17,0,0],vv],bH=[0,[12,59,[17,[0,be,1,0],0]],Gy],wH=N5,TH=[0,[18,[1,[0,0,H0]],[2,0,[11,Y3,[17,[0,be,1,0],0]]]],J3],EH=[0,[17,0,0],vv],SH=[0,[12,59,[17,[0,be,1,0],0]],Gy],AH="_end",IH=[0,[18,[1,[0,0,H0]],[2,0,[11,Y3,[17,[0,be,1,0],0]]]],J3],jH=[0,[17,0,0],vv],PH=[0,[17,[0,be,1,0],[12,ms,[17,0,0]]],oF],NH=H0,OH="Object literal may not have data and accessor property with the same name",CH="Object literal may not have multiple get/set accessors with the same name",DH="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",RH="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",FH="Async functions can only be declared at top level or immediately within another function.",LH="`await` is an invalid identifier in async functions",MH="`await` is not allowed in async function parameters.",UH="Computed properties must have a value.",qH="Constructor can't be an accessor.",BH="Constructor can't be an async function.",XH="Constructor can't be a generator.",JH="It is sufficient for your declare function to just have a Promise return type.",KH="async is an implementation detail and isn't necessary for your declare function statement. ",YH="`declare` modifier can only appear on class fields.",zH="Unexpected token `=`. Initializers are not allowed in a `declare`.",VH="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",GH="Classes may only have one constructor",WH="Rest element must be final element of an array pattern",$H="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",HH="Enum members are separated with `,`. Replace `;` with `,`.",QH="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",ZH="Expected an object pattern, array pattern, or an identifier but found an expression instead",xQ="Missing comma between export specifiers",rQ="Generators can only be declared at top level or immediately within another function.",eQ="Getter should have zero parameters",tQ="A getter cannot have a `this` parameter.",nQ="Illegal break statement",uQ="Illegal continue statement",iQ="Illegal return statement",fQ="Illegal Unicode escape",cQ="Missing comma between import specifiers",sQ="It cannot be used with `import type` or `import typeof` statements",aQ="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",oQ="Explicit inexact syntax cannot appear inside an explicit exact object type",vQ="Explicit inexact syntax can only appear inside an object type",lQ="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",pQ="Components use `renders` instead of `:` to annotate the render type of a component.",kQ="A bigint literal must be an integer",mQ="JSX value should be either an expression or a quoted JSX text",hQ="Invalid left-hand side in assignment",dQ="Invalid left-hand side in exponentiation expression",yQ="Invalid left-hand side in for-in",gQ="Invalid left-hand side in for-of",_Q="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",bQ="Invalid regular expression",wQ="A bigint literal cannot use exponential notation",TQ="Tuple spread elements cannot be optional.",EQ="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",SQ="`typeof` can only be used to get the type of variables.",AQ="JSX attributes must only be assigned a non-empty expression",IQ="Literals cannot be used as shorthand properties.",jQ="Malformed unicode",PQ="Object pattern can't contain methods",NQ="Expected at least one type parameter.",OQ="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",CQ="More than one default clause in switch statement",DQ="Illegal newline after throw",RQ="Illegal newline before arrow",FQ="Missing catch or finally after try",LQ="Const must be initialized",MQ="Destructuring assignment must be initialized",UQ="An optional chain may not be used in a `new` expression.",qQ="Template literals may not be used in an optional chain.",BQ="Rest parameter must be final parameter of an argument list",XQ="Private fields may not be deleted.",JQ="Private fields can only be referenced from within a class.",KQ="Rest property must be final property of an object pattern",YQ="Setter should have exactly one parameter",zQ="A setter cannot have a `this` parameter.",VQ="Catch variable may not be eval or arguments in strict mode",GQ="Delete of an unqualified identifier in strict mode.",WQ="Duplicate data property in object literal not allowed in strict mode",$Q="Function name may not be eval or arguments in strict mode",HQ="Assignment to eval or arguments is not allowed in strict mode",QQ="Postfix increment/decrement may not have eval or arguments operand in strict mode",ZQ="Prefix increment/decrement may not have eval or arguments operand in strict mode",xZ="Strict mode code may not include a with statement",rZ="Number literals with leading zeros are not allowed in strict mode.",eZ="Octal literals are not allowed in strict mode.",tZ="Strict mode function may not have duplicate parameter names",nZ="Parameter name eval or arguments is not allowed in strict mode",uZ='Illegal "use strict" directive in function with non-simple parameter list',iZ="Use of reserved word in strict mode",fZ="Variable name may not be eval or arguments in strict mode",cZ="You may not access a private field through the `super` keyword.",sZ="Flow does not support abstract classes.",aZ="Flow does not support template literal types.",oZ="A type annotation is required for the `this` parameter.",vZ="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",lZ="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",pZ="The `this` parameter cannot be optional.",kZ="The `this` parameter must be the first function parameter.",mZ="A trailing comma is not permitted after the rest element",hZ="Unexpected end of input",dZ="Explicit inexact syntax must come at the end of an object type",yZ="Opaque type aliases are not allowed in untyped mode",gZ="Unexpected proto modifier",_Z="Unexpected reserved word",bZ="Unexpected reserved type",wZ="Spreading a type is only allowed inside an object type",TZ="Unexpected static modifier",EZ="Unexpected `super` outside of a class method",SZ="`super()` is only valid in a class constructor",AZ="Type aliases are not allowed in untyped mode",IZ="Type annotations are not allowed in untyped mode",jZ="Type declarations are not allowed in untyped mode",PZ="Type exports are not allowed in untyped mode",NZ="Type imports are not allowed in untyped mode",OZ="Interfaces are not allowed in untyped mode",CZ="Unexpected variance sigil",DZ="Found a decorator in an unsupported position.",RZ="Invalid regular expression: missing /",FZ="Unexpected whitespace between `#` and identifier",LZ="`yield` is an invalid identifier in generators",MZ="Yield expression not allowed in formal parameter",UZ=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],qZ=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],BZ=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,vs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],XZ=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,vs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],JZ=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,vs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],KZ=[0,[11,TR,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],YZ="The `...` must come at the end of the enum body. Remove the trailing comma.",zZ="The `...` must come after all enum members. Move it to the end of the enum body.",VZ=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,vs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],GZ=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],WZ=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],$Z=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],HZ=[0,[11,TR,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],QZ=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,vs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],ZZ=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,vs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],x00=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,vs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],r00=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,vs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],e00=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],t00=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],n00="immediately within another function.",u00="In strict mode code, functions can only be declared at top level or ",i00="inside a block, or as the body of an if statement.",f00="In non-strict mode code, functions can only be declared at top level, ",c00="static ",s00=H0,a00="methods",o00="fields",v00=BD,l00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,vs,0]]]]]],"Classes may not have %s%s named `%s`."],p00=WL,k00=H0,m00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],h00="Remove the period.",d00="Indexed access uses bracket notation.",y00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],g00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],_00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],b00=[0,[11,PR,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],w00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],T00=H0,E00=z3,S00=" You can try using JavaScript private fields by prepending `#` to the field name.",A00=_l,I00=" Fields and methods are public by default. You can simply omit the `public` keyword.",j00=U3,P00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],N00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],O00=[0,[11,mL,[2,0,0]],"Unexpected %s"],C00=[0,[11,PR,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],D00=[0,[11,mL,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],R00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],F00="Parse_error.Error",L00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,Vt],[0,Wp,My],[0,NP,u9],[0,lj,tm],[0,P4,iE],[0,dv,Rb],[0,HI,xl],[0,x2,706],[0,VR,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,LM,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,mR,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,mj,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,nL,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,rw],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,BL,VF],[0,8255,8257],[0,8276,8277],[0,Yk,8306],[0,sm,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,Am,8451],[0,U8,8456],[0,8458,Fk],[0,fk,8470],[0,MM,8478],[0,Dm,d4],[0,yk,gk],[0,V4,H4],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,mk,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,Yp],[0,Kk,11560],[0,Kp,11566],[0,11568,11624],[0,L8,11632],[0,r8,11671],[0,11680,S4],[0,11688,Tk],[0,11696,Zp],[0,11704,Ok],[0,11712,Z8],[0,11720,z8],[0,11728,J4],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,Jp],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,G8],[0,12449,gm],[0,12540,12544],[0,12549,D8],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,rm],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,zk,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,K8,nm],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,D4,43482],[0,43488,dm],[0,43520,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,Ck,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,s8],[0,43816,lk],[0,43824,l8],[0,43868,hk],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,U4,Qk],[0,64298,ym],[0,64312,im],[0,t8,o4],[0,64320,C4],[0,64323,_8],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,O4],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,X8],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,el,bk],[0,65549,Ak],[0,65576,g4],[0,65596,T8],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,y8],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,hm,b8],[0,67594,H8],[0,67639,67641],[0,um,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,Im],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Um,68100],[0,68101,68103],[0,68108,p4],[0,68117,Nm],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,$p],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,dk,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,I4],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,Wk,_k],[0,69968,70004],[0,e4,70007],[0,70016,70085],[0,70089,70093],[0,70096,Qp],[0,Om,70109],[0,70144,om],[0,70163,70200],[0,70206,70207],[0,70272,Nk],[0,h8,k4],[0,70282,c8],[0,70287,i4],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,Uk],[0,70405,70413],[0,70415,70417],[0,70419,qk],[0,70442,w4],[0,70450,Pm],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,Cm,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,Q8,70752],[0,70784,N8],[0,A8,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,xk,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,Rk],[0,Up,72165],[0,vm,72255],[0,72263,72264],[0,m8,72346],[0,pk,72350],[0,72384,72441],[0,72704,o8],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,r4],[0,72968,P8],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,mm],[0,73063,Bk],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,Vk,94088],[0,94095,94112],[0,94176,ck],[0,X4,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,Xp],[0,119894,Xk],[0,119966,119968],[0,Mm,119971],[0,119973,119975],[0,119977,tk],[0,119982,q4],[0,B8,j8],[0,119997,k8],[0,120005,L4],[0,120071,120075],[0,120077,nk],[0,120086,g8],[0,120094,vk],[0,120123,W4],[0,120128,am],[0,K4,120135],[0,120138,z4],[0,120146,120486],[0,120488,_m],[0,120514,jk],[0,120540,a8],[0,120572,Gp],[0,120598,n4],[0,120630,pm],[0,120656,V8],[0,120688,Rm],[0,120714,u8],[0,120746,Sm],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,j4,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,R8],[0,126469,Tm],[0,126497,W8],[0,G4,126501],[0,u4,E8],[0,126505,c4],[0,126516,Q4],[0,qp,e8],[0,Zk,126524],[0,J8,126531],[0,Y8,N4],[0,I8,w8],[0,bm,q8],[0,126541,Dk],[0,126545,T4],[0,$x,126549],[0,S8,wm],[0,b4,kk],[0,uk,Fm],[0,Vp,fm],[0,t4,Em],[0,126561,Z4],[0,x4,126565],[0,126567,em],[0,126572,Hp],[0,126580,wk],[0,126585,R4],[0,v4,Lm],[0,126592,n8],[0,126603,126620],[0,126625,Jk],[0,126629,Hk],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],M00=[0,1,0],U00=[0,0,[0,1,0],[0,1,0]],q00=oL,B00="end of input",X00=yl,J00="template literal part",K00=yl,Y00=eL,z00=oL,V00=yl,G00=yv,W00=yl,$00=vo,H00=yl,Q00=Rv,Z00="an",xx0=dt,rx0=bf,ex0=[0,[11,"token `",[2,0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L20=G1,M20=$3,U20=C8,q20="T_LCURLY",B20="T_RCURLY",X20="T_LCURLYBAR",J20="T_RCURLYBAR",K20="T_LPAREN",Y20="T_RPAREN",z20="T_LBRACKET",V20="T_RBRACKET",G20="T_SEMICOLON",W20="T_COMMA",$20="T_PERIOD",H20="T_ARROW",Q20="T_ELLIPSIS",Z20="T_AT",x10="T_POUND",r10="T_FUNCTION",e10="T_IF",t10="T_IN",n10="T_INSTANCEOF",u10="T_RETURN",i10="T_SWITCH",f10="T_THIS",c10="T_THROW",s10="T_TRY",a10="T_VAR",o10="T_WHILE",v10="T_WITH",l10="T_CONST",p10="T_LET",k10="T_NULL",m10="T_FALSE",h10="T_TRUE",d10="T_BREAK",y10="T_CASE",g10="T_CATCH",_10="T_CONTINUE",b10="T_DEFAULT",w10="T_DO",T10="T_FINALLY",E10="T_FOR",S10="T_CLASS",A10="T_EXTENDS",I10="T_STATIC",j10="T_ELSE",P10="T_NEW",N10="T_DELETE",O10="T_TYPEOF",C10="T_VOID",D10="T_ENUM",R10="T_EXPORT",F10="T_IMPORT",L10="T_SUPER",M10="T_IMPLEMENTS",U10="T_INTERFACE",q10="T_PACKAGE",B10="T_PRIVATE",X10="T_PROTECTED",J10="T_PUBLIC",K10="T_YIELD",Y10="T_DEBUGGER",z10="T_DECLARE",V10="T_TYPE",G10="T_OPAQUE",W10="T_OF",$10="T_ASYNC",H10="T_AWAIT",Q10="T_CHECKS",Z10="T_RSHIFT3_ASSIGN",xe0="T_RSHIFT_ASSIGN",re0="T_LSHIFT_ASSIGN",ee0="T_BIT_XOR_ASSIGN",te0="T_BIT_OR_ASSIGN",ne0="T_BIT_AND_ASSIGN",ue0="T_MOD_ASSIGN",ie0="T_DIV_ASSIGN",fe0="T_MULT_ASSIGN",ce0="T_EXP_ASSIGN",se0="T_MINUS_ASSIGN",ae0="T_PLUS_ASSIGN",oe0="T_NULLISH_ASSIGN",ve0="T_AND_ASSIGN",le0="T_OR_ASSIGN",pe0="T_ASSIGN",ke0="T_PLING_PERIOD",me0="T_PLING_PLING",he0="T_PLING",de0="T_COLON",ye0="T_OR",ge0="T_AND",_e0="T_BIT_OR",be0="T_BIT_XOR",we0="T_BIT_AND",Te0="T_EQUAL",Ee0="T_NOT_EQUAL",Se0="T_STRICT_EQUAL",Ae0="T_STRICT_NOT_EQUAL",Ie0="T_LESS_THAN_EQUAL",je0="T_GREATER_THAN_EQUAL",Pe0="T_LESS_THAN",Ne0="T_GREATER_THAN",Oe0="T_LSHIFT",Ce0="T_RSHIFT",De0="T_RSHIFT3",Re0="T_PLUS",Fe0="T_MINUS",Le0="T_DIV",Me0="T_MULT",Ue0="T_EXP",qe0="T_MOD",Be0="T_NOT",Xe0="T_BIT_NOT",Je0="T_INCR",Ke0="T_DECR",Ye0="T_EOF",ze0="T_ANY_TYPE",Ve0="T_MIXED_TYPE",Ge0="T_EMPTY_TYPE",We0="T_NUMBER_TYPE",$e0="T_BIGINT_TYPE",He0="T_STRING_TYPE",Qe0="T_VOID_TYPE",Ze0="T_SYMBOL_TYPE",xt0="T_UNKNOWN_TYPE",rt0="T_NEVER_TYPE",et0="T_UNDEFINED_TYPE",tt0="T_KEYOF",nt0="T_READONLY",ut0="T_INFER",it0="T_IS",ft0="T_ASSERTS",ct0="T_IMPLIES",st0=zR,at0=zR,ot0="T_NUMBER",vt0="T_BIGINT",lt0="T_STRING",pt0="T_TEMPLATE_PART",kt0="T_IDENTIFIER",mt0="T_REGEXP",ht0="T_INTERPRETER",dt0="T_ERROR",yt0="T_JSX_IDENTIFIER",gt0=eU,_t0=eU,bt0="T_BOOLEAN_TYPE",wt0="T_NUMBER_SINGLETON_TYPE",Tt0="T_BIGINT_SINGLETON_TYPE",Et0=[0,QF,Lw,9],St0=[0,QF,Zb,9],At0=sF,It0="*/",jt0=sF,Pt0="unreachable line_comment",Nt0="unreachable string_quote",Ot0="\\",Ct0="unreachable template_part",Dt0=`\r -`,Rt0=_b,Ft0="unreachable regexp_class",Lt0=SM,Mt0="unreachable regexp_body",Ut0=H0,qt0=H0,Bt0=H0,Xt0=H0,Jt0=yM,Kt0="{'>'}",Yt0=W3,zt0="{'}'}",Vt0=$k,Gt0=fa,Wt0=jb,$t0=Mp,Ht0=yM,Qt0=fa,Zt0=jb,xn0=Mp,rn0="unreachable type_token wholenumber",en0="unreachable type_token wholebigint",tn0="unreachable type_token floatbigint",nn0="unreachable type_token scinumber",un0="unreachable type_token scibigint",in0="unreachable type_token hexnumber",fn0="unreachable type_token hexbigint",cn0="unreachable type_token legacyoctnumber",sn0="unreachable type_token octnumber",an0="unreachable type_token octbigint",on0="unreachable type_token binnumber",vn0="unreachable type_token bigbigint",ln0="unreachable type_token",pn0=TM,kn0=[11,1],mn0=[11,0],hn0="unreachable template_tail",dn0=H0,yn0=H0,gn0="unreachable jsx_child",_n0="unreachable jsx_tag",bn0=[0,lR],wn0=[0,913],Tn0=[0,dv],En0=[0,E9],Sn0=[0,JR],An0=[0,QM],In0=[0,8747],jn0=[0,mM],Pn0=[0,916],Nn0=[0,8225],On0=[0,935],Cn0=[0,lL],Dn0=[0,914],Rn0=[0,DL],Fn0=[0,BR],Ln0=[0,UM],Mn0=[0,915],Un0=[0,WM],qn0=[0,919],Bn0=[0,917],Xn0=[0,IP],Jn0=[0,cM],Kn0=[0,IR],Yn0=[0,924],zn0=[0,923],Vn0=[0,922],Gn0=[0,cU],Wn0=[0,921],$n0=[0,WR],Hn0=[0,Zb],Qn0=[0,JD],Zn0=[0,HI],x70=[0,927],r70=[0,937],e70=[0,xU],t70=[0,rL],n70=[0,m_],u70=[0,338],i70=[0,352],f70=[0,929],c70=[0,936],s70=[0,8243],a70=[0,928],o70=[0,934],v70=[0,eM],l70=[0,LD],p70=[0,933],k70=[0,FL],m70=[0,iM],h70=[0,qM],d70=[0,920],y70=[0,932],g70=[0,GD],_70=[0,zF],b70=[0,MF],w70=[0,AL],T70=[0,918],E70=[0,376],S70=[0,$F],A70=[0,926],I70=[0,jL],j70=[0,LM],P70=[0,925],N70=[0,39],O70=[0,8736],C70=[0,8743],D70=[0,38],R70=[0,945],F70=[0,8501],L70=[0,Tv],M70=[0,8226],U70=[0,DF],q70=[0,946],B70=[0,8222],X70=[0,IL],J70=[0,rU],K70=[0,8776],Y70=[0,_M],z70=[0,8773],V70=[0,9827],G70=[0,VR],W70=[0,967],$70=[0,JF],H70=[0,tm],Q70=[0,fL],Z70=[0,Sb],xu0=[0,8595],ru0=[0,8224],eu0=[0,8659],tu0=[0,yF],nu0=[0,8746],uu0=[0,8629],iu0=[0,v8],fu0=[0,8745],cu0=[0,8195],su0=[0,8709],au0=[0,aU],ou0=[0,lU],vu0=[0,bF],lu0=[0,xl],pu0=[0,9830],ku0=[0,8707],mu0=[0,8364],hu0=[0,NM],du0=[0,po],yu0=[0,951],gu0=[0,8801],_u0=[0,949],bu0=[0,8194],wu0=[0,8805],Tu0=[0,947],Eu0=[0,8260],Su0=[0,_R],Au0=[0,gL],Iu0=[0,Lw],ju0=[0,8704],Pu0=[0,aF],Nu0=[0,ML],Ou0=[0,8230],Cu0=[0,9829],Du0=[0,8596],Ru0=[0,8660],Fu0=[0,62],Lu0=[0,402],Mu0=[0,948],Uu0=[0,NF],qu0=[0,Gk],Bu0=[0,8712],Xu0=[0,iL],Ju0=[0,953],Ku0=[0,8734],Yu0=[0,8465],zu0=[0,KM],Vu0=[0,8220],Gu0=[0,8968],Wu0=[0,8592],$u0=[0,My],Hu0=[0,10216],Qu0=[0,955],Zu0=[0,8656],xi0=[0,954],ri0=[0,60],ei0=[0,8216],ti0=[0,8249],ni0=[0,VF],ui0=[0,9674],ii0=[0,8727],fi0=[0,8970],ci0=[0,GF],si0=[0,8711],ai0=[0,956],oi0=[0,8722],vi0=[0,lj],li0=[0,NP],pi0=[0,8212],ki0=[0,tR],mi0=[0,8804],hi0=[0,957],di0=[0,RD],yi0=[0,8836],gi0=[0,8713],_i0=[0,FF],bi0=[0,8715],wi0=[0,8800],Ti0=[0,8853],Ei0=[0,959],Si0=[0,969],Ai0=[0,8254],Ii0=[0,hM],ji0=[0,339],Pi0=[0,OI],Ni0=[0,KL],Oi0=[0,u9],Ci0=[0,Pk],Di0=[0,8855],Ri0=[0,LF],Fi0=[0,x2],Li0=[0,P4],Mi0=[0,Wp],Ui0=[0,DM],qi0=[0,bR],Bi0=[0,982],Xi0=[0,960],Ji0=[0,966],Ki0=[0,8869],Yi0=[0,8240],zi0=[0,8706],Vi0=[0,8744],Gi0=[0,8211],Wi0=[0,10217],$i0=[0,8730],Hi0=[0,8658],Qi0=[0,34],Zi0=[0,968],xf0=[0,8733],rf0=[0,8719],ef0=[0,961],tf0=[0,8971],nf0=[0,nU],uf0=[0,8476],if0=[0,8221],ff0=[0,8969],cf0=[0,8594],sf0=[0,iE],af0=[0,RL],of0=[0,rM],vf0=[0,8901],lf0=[0,353],pf0=[0,8218],kf0=[0,8217],mf0=[0,8250],hf0=[0,8835],df0=[0,8721],yf0=[0,8838],gf0=[0,8834],_f0=[0,9824],bf0=[0,8764],wf0=[0,962],Tf0=[0,963],Ef0=[0,8207],Sf0=[0,952],Af0=[0,8756],If0=[0,964],jf0=[0,ak],Pf0=[0,8839],Nf0=[0,UD],Of0=[0,cI],Cf0=[0,Mv],Df0=[0,8657],Rf0=[0,8482],Ff0=[0,Rb],Lf0=[0,732],Mf0=[0,Pv],Uf0=[0,8201],qf0=[0,977],Bf0=[0,MM],Xf0=[0,go],Jf0=[0,965],Kf0=[0,978],Yf0=[0,Ub],zf0=[0,ly],Vf0=[0,_L],Gf0=[0,BL],Wf0=[0,8205],$f0=[0,950],Hf0=[0,m4],Qf0=[0,vj],Zf0=[0,i8],xc0=[0,958],rc0=[0,8593],ec0=[0,eF],tc0=[0,8242],nc0=[0,kT],uc0="unreachable regexp",ic0="unreachable token wholenumber",fc0="unreachable token wholebigint",cc0="unreachable token floatbigint",sc0="unreachable token scinumber",ac0="unreachable token scibigint",oc0="unreachable token hexnumber",vc0="unreachable token hexbigint",lc0="unreachable token legacyoctnumber",pc0="unreachable token legacynonoctnumber",kc0="unreachable token octnumber",mc0="unreachable token octbigint",hc0="unreachable token bignumber",dc0="unreachable token bigint",yc0="unreachable token",gc0=TM,_c0=[7,"#!"],bc0="expected ?",wc0="unreachable string_escape",Tc0=$1,Ec0=X3,Sc0=X3,Ac0=$1,Ic0=ZT,jc0=QL,Pc0="n",Nc0="r",Oc0="t",Cc0=qR,Dc0=X3,Rc0=fa,Fc0=fa,Lc0="unreachable id_char",Mc0=fa,Uc0=fa,qc0=X3,Bc0=NR,Xc0=PF,Jc0=iw,Kc0=[24,"token ILLEGAL"],Yc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],zc0=[0,1],Vc0=[0,1],Gc0=cF,Wc0=cF,$c0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],Hc0=l4,Qc0="Peeking current location when not available",Zc0=[0,"src/parser/parser_env.ml",351,9],xs0="Internal Error: Tried to add_declared_private with outside of class scope.",rs0="Internal Error: `exit_class` called before a matching `enter_class`",es0=H0,ts0=[0,0,0],ns0=[0,0,0],us0="Parser_env.Try.Rollback",is0=H0,fs0=H0,cs0=[0,M1,Xu,Hi,uF,TF,gf,L1,oi,jc,Mu,A7,On,lc,ju,Hu,h7,n7,N7,If,Nf,si,d7,bn,Zu,bc,e7,gc,xi,Af,ii,Pn,En,Jf,nu,fu,Gi,Ac,je,cf,ai,kc,xf,df,P7,au,Pe,Li,x7,Ai,Ei,oc,a7,Pu,ec,Se,Gn,o7,Pi,Z7,ku,z7,tc,Ie,G7,rc,_f,eu,Sc,Tf,M7,Rf,Wf,lu,di,Wn,Jn,yu,S7,i7,ac,xc,y7,ou,dc,$t,af,Iu,Rn,Lf,D7,$u,Bf,Ju,nf,Ku,Ln,_c,Ki,Tc,ji,q7,jf,yf,ki,s7,tf,T7,pc,Tu,mc,yc,X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0,_v,1535,8],Ca0=[0,1],Da0=[0,_v,mR,8],Ra0="Can not have both `static` and `proto`",Fa0=Ae,La0=Fj,Ma0=[0,0,0,0],Ua0=[0,0],qa0=[0,[0,0,0,0,0]],Ba0="You should only call render_type after making sure the next token is a renders variant",Xa0=[0,"the end of a tuple type (no trailing comma is allowed in inexact tuple type)."],Ja0=ll,Ka0=hv,Ya0=ov,za0=[0,"a number literal type"],Va0=[0,0],Ga0=ta,Wa0=[0,0],$a0=[0,"a type"],Ha0=[0,0],Qa0=[0,0],Za0=[17,1],xo0=[17,0],ro0=[0,_v,m_,15],eo0=[0,_v,cI,15],to0=rt,no0=rt,uo0=M8,io0=pl,fo0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],co0=[0,0,0,0],so0="Offset_utils.Offset_lookup_failed",ao0=l2,oo0=OF,vo0=pl,lo0=M8,po0=SL,ko0=pl,mo0=M8,ho0=N5,do0=PE,yo0="normal",go0=qu,_o0="jsxTag",bo0="jsxChild",wo0="template",To0=eL,Eo0="context",So0=qu,Ao0=[6,0],Io0=[0,0],jo0=[0,1],Po0=[0,4],No0=[0,2],Oo0=[0,3],Co0=[0,0],Do0=rt,Ro0=[0,0,0,0,0,0],Fo0=[0,1],Lo0=[0,$y,1773,21],Mo0=[0,"a declaration, statement or export specifiers"],Uo0=[0,81],qo0=fl,Bo0=[0,H0,H0,0],Xo0=[0,QD],Jo0="exports",Ko0=Jw,Yo0=sM,zo0=[0,81],Vo0=ta,Go0=[0,70],Wo0=[0,0],$o0=[0,1],Ho0=[0,"the keyword `as`"],Qo0=[0,30],Zo0=[0,30],xv0=[0,0],rv0=[0,1],ev0=[0,QD],tv0=[0,"the keyword `from`"],nv0=[0,H0,H0,0],uv0=[0,VL],iv0="Label",fv0=[0,VL],cv0=[0,0,0],sv0=[0,40],av0=[0,$y,371,22],ov0=[0,39],vv0=[0,$y,390,22],lv0=[0,0],pv0="the token `;`",kv0=[0,0],mv0=[0,0],hv0=CR,dv0=[0,l4],yv0=CR,gv0=[24,dt],_v0=ta,bv0=[0,70],wv0=[0,H0,0],Tv0=Jt,Ev0=[0,70],Sv0=[0,70],Av0=pv,Iv0=[0,H0,0],jv0=[0,0,0],Pv0=[0,0,0],Nv0=[0,78],Ov0=G1,Cv0=G1,Dv0=[0,"a regular expression"],Rv0=H0,Fv0=H0,Lv0=H0,Mv0=[0,"src/parser/expression_parser.ml",1365,17],Uv0=[0,"a template literal part"],qv0=[0,[0,H0,H0],1],Bv0=[0,0],Xv0=X3,Jv0=NR,Kv0=iw,Yv0=iw,zv0=PF,Vv0=[0,70],Gv0=[0,1],Wv0=[0,1],$v0=[0,1],Hv0=[0,1],Qv0=[0,1],Zv0=Sv,x30=no,r30=[0,"the identifier `target`"],e30=[0,0],t30=R1,n30=ml,u30=ml,i30=jv,f30=[0,"either a call or access of `super`"],c30=jv,s30=[0,1],a30=[0,0],o30=[0,1],v30=[0,0],l30=[0,1],p30=[0,0],k30=[0,2],m30=[0,3],h30=[0,7],d30=[0,6],y30=[0,4],g30=[0,5],_30=[0,6],b30=[0,[0,17,[0,2]]],w30=[0,[0,18,[0,3]]],T30=[0,[0,19,[0,4]]],E30=[0,[0,0,[0,5]]],S30=[0,[0,1,[0,5]]],A30=[0,[0,2,[0,5]]],I30=[0,[0,3,[0,5]]],j30=[0,[0,5,[0,6]]],P30=[0,[0,7,[0,6]]],N30=[0,[0,4,[0,6]]],O30=[0,[0,6,[0,6]]],C30=[0,[0,8,[0,7]]],D30=[0,[0,9,[0,7]]],R30=[0,[0,10,[0,7]]],F30=[0,[0,11,[0,8]]],L30=[0,[0,12,[0,8]]],M30=[0,[0,15,[0,9]]],U30=[0,[0,13,[0,9]]],q30=[0,[0,14,[1,10]]],B30=[0,[0,16,[0,9]]],X30=[0,[0,21,[0,6]]],J30=[0,[0,20,[0,6]]],K30=[20,h5],Y30=[0,[0,8]],z30=[0,[0,7]],V30=[0,[0,6]],G30=[0,[0,10]],W30=[0,[0,9]],$30=[0,[0,11]],H30=[0,[0,5]],Q30=[0,[0,4]],Z30=[0,[0,2]],xl0=[0,[0,3]],rl0=[0,[0,1]],el0=[0,[0,0]],tl0=[0,[0,12]],nl0=[0,[0,13]],ul0=[0,[0,14]],il0=[0,0],fl0=Ao,cl0=Mf,sl0=[13,"JSX fragment"],al0=[0,Ut],ol0=[1,Ut],vl0=[0,H0,H0,0],ll0=[0,l4],pl0=H0,kl0=K3,ml0=[0,H0,0],hl0="unexpected PrivateName in Property, expected a PrivateField",dl0=[0,0,0],yl0=sa,gl0="Must be one of the above",_l0=[0,1],bl0=[0,1],wl0=[0,1],Tl0=sa,El0=sa,Sl0=qg,Al0="Internal Error: private name found in object props",Il0=[0,BF],jl0=[19,[0,0]],Pl0=[0,BF],Nl0=[0,0,0,0],Ol0=_b,Cl0="Nooo: ",Dl0=io,Rl0="Parser error: No such thing as an expression pattern!",Fl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Ll0=[0,"src/parser/parser_flow.ml",v8,28],Ml0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Ul0=OF,ql0=PE,Bl0=vF,Xl0=qL,Jl0=qL,Kl0=vF,Yl0=qu,zl0=zD,Vl0=P2,Gl0=l2,Wl0="InterpreterDirective",$l0="interpreter",Hl0="Program",Ql0=gl,Zl0="BreakStatement",x60=gl,r60="ContinueStatement",e60="DebuggerStatement",t60=Io,n60="DeclareExportAllDeclaration",u60=Io,i60=j_,f60=GI,c60=io,s60="DeclareExportDeclaration",a60=P2,o60=Hr,v60="DeclareModule",l60=Y2,p60="DeclareModuleExports",k60=P2,m60=Hr,h60="DeclareNamespace",d60=bv,y60=P2,g60="DoWhileStatement",_60="EmptyStatement",b60=K9,w60=GI,T60="ExportDefaultDeclaration",E60=K9,S60=Ob,A60=Io,I60="ExportAllDeclaration",j60=K9,P60=Io,N60=j_,O60=GI,C60="ExportNamedDeclaration",D60="directive",R60=V2,F60="ExpressionStatement",L60=P2,M60="update",U60=bv,q60=$7,B60="ForStatement",X60="each",J60=P2,K60=Gt,Y60=os,z60="ForInStatement",V60=_o,G60=P2,W60=Gt,$60=os,H60="ForOfStatement",Q60=aM,Z60=fI,xp0=bv,rp0="IfStatement",ep0=qu,tp0=ss,np0=l2,up0=ER,ip0=Io,fp0=j_,cp0="ImportDeclaration",sp0=P2,ap0=gl,op0="LabeledStatement",vp0=ne,lp0="ReturnStatement",pp0="cases",kp0="discriminant",mp0="SwitchStatement",hp0=ne,dp0="ThrowStatement",yp0="finalizer",gp0="handler",_p0=Bt,bp0="TryStatement",wp0=P2,Tp0=bv,Ep0="WhileStatement",Sp0=P2,Ap0=nb,Ip0="WithStatement",jp0=AF,Pp0="ArrayExpression",Np0=F1,Op0=O8,Cp0=V2,Dp0=Ie,Rp0=GT,Fp0=oa,Lp0=P2,Mp0=Kt,Up0=Hr,qp0="ArrowFunctionExpression",Bp0=V2,Xp0="AsConstExpression",Jp0=Y2,Kp0=V2,Yp0="AsExpression",zp0=qg,Vp0=Gt,Gp0=os,Wp0=Iv,$p0="AssignmentExpression",Hp0=Gt,Qp0=os,Zp0=Iv,x40="BinaryExpression",r40="CallExpression",e40=aM,t40=fI,n40=bv,u40="ConditionalExpression",i40=Io,f40="ImportExpression",c40=lF,s40=fU,a40=h5,o40=Gt,v40=os,l40=Iv,p40="LogicalExpression",k40="MemberExpression",m40=BA,h40=ml,d40="MetaProperty",y40=bA,g40=A4,_40=BM,b40="NewExpression",w40=g5,T40="ObjectExpression",E40=xt,S40="OptionalCallExpression",A40=xt,I40="OptionalMemberExpression",j40=jM,P40="SequenceExpression",N40="Super",O40="ThisExpression",C40=Y2,D40=V2,R40="TypeCastExpression",F40=Y2,L40=V2,M40="SatisfiesExpression",U40=ne,q40="AwaitExpression",B40=rt,X40=ys,J40=MR,K40=uM,Y40=ss,z40=ps,V40=nl,G40="matched above",W40=ne,$40=xR,H40=Iv,Q40="UnaryExpression",Z40=EF,xk0=CM,rk0=xR,ek0=ne,tk0=Iv,nk0="UpdateExpression",uk0="delegate",ik0=ne,fk0="YieldExpression",ck0="Unexpected FunctionDeclaration with BodyExpression",sk0="HookDeclaration",ak0=V2,ok0=Ie,vk0=GT,lk0=oa,pk0="FunctionDeclaration",kk0=F1,mk0=O8,hk0=P2,dk0=Kt,yk0=Hr,gk0="Unexpected FunctionExpression with BodyExpression",_k0=F1,bk0=O8,wk0=V2,Tk0=Ie,Ek0=GT,Sk0=oa,Ak0=P2,Ik0=Kt,jk0=Hr,Pk0="FunctionExpression",Nk0=xt,Ok0=Y2,Ck0=Te,Dk0=jE,Rk0=xt,Fk0=Y2,Lk0=Te,Mk0="PrivateIdentifier",Uk0=xt,qk0=Y2,Bk0=Te,Xk0=jE,Jk0=fI,Kk0=bv,Yk0="SwitchCase",zk0=P2,Vk0="param",Gk0="CatchClause",Wk0=P2,$k0="BlockStatement",Hk0=ca,Qk0=Hr,Zk0="DeclareVariable",x80="DeclareHook",r80=Ie,e80="DeclareFunction",t80=Hr,n80=pF,u80=lo,i80=hc,f80=P2,c80=F1,s80=Hr,a80="DeclareClass",o80=F1,v80=Wg,l80=Kt,p80=g_,k80=Kt,m80=Hr,h80="DeclareComponent",d80=F1,y80=Wg,g80=g_,_80=Kt,b80="ComponentTypeAnnotation",w80=xt,T80=Y2,E80=Te,S80="ComponentTypeParameter",A80=P2,I80=Hr,j80="DeclareEnum",P80=hc,N80=P2,O80=F1,C80=Hr,D80="DeclareInterface",R80=l2,F80=qu,L80=Ob,M80="ExportNamespaceSpecifier",U80=Gt,q80=F1,B80=Hr,X80="DeclareTypeAlias",J80=Gt,K80=F1,Y80=Hr,z80="TypeAlias",V80="DeclareOpaqueType",G80="OpaqueType",W80="supertype",$80="impltype",H80=F1,Q80=Hr,Z80="ClassDeclaration",xm0="ClassExpression",rm0=km,em0=lo,tm0="superTypeParameters",nm0="superClass",um0=F1,im0=P2,fm0=Hr,cm0=V2,sm0="Decorator",am0=F1,om0=Hr,vm0="ClassImplements",lm0=P2,pm0="ClassBody",km0=ho,mm0=Z3,hm0=bo,dm0=Dv,ym0=km,gm0=Nv,_m0=Ae,bm0=ca,wm0=l2,Tm0=co,Em0="MethodDefinition",Sm0=H3,Am0=km,Im0=L1,jm0=Ae,Pm0=Nv,Nm0=Y2,Om0=l2,Cm0=co,Dm0=fF,Rm0="Internal Error: Private name found in class prop",Fm0=H3,Lm0=km,Mm0=L1,Um0=Ae,qm0=Nv,Bm0=Y2,Xm0=l2,Jm0=co,Km0=fF,Ym0=F1,zm0=Wg,Vm0=Kt,Gm0=Hr,Wm0=P2,$m0="ComponentDeclaration",Hm0=ne,Qm0=j5,Zm0=Gt,xh0=os,rh0=M4,eh0=jw,th0=cl,nh0=Te,uh0="ComponentParameter",ih0=$7,fh0=Hr,ch0="EnumBigIntMember",sh0=Hr,ah0=uR,oh0=$7,vh0=Hr,lh0="EnumStringMember",ph0=Hr,kh0=uR,mh0=$7,hh0=Hr,dh0="EnumNumberMember",yh0=$7,gh0=Hr,_h0="EnumBooleanMember",bh0=V3,wh0=jm,Th0=Q3,Eh0="EnumBooleanBody",Sh0=V3,Ah0=jm,Ih0=Q3,jh0="EnumNumberBody",Ph0=V3,Nh0=jm,Oh0=Q3,Ch0="EnumStringBody",Dh0=V3,Rh0=Q3,Fh0="EnumSymbolBody",Lh0=V3,Mh0=jm,Uh0=Q3,qh0="EnumBigIntBody",Bh0=P2,Xh0=Hr,Jh0="EnumDeclaration",Kh0=hc,Yh0=P2,zh0=F1,Vh0=Hr,Gh0="InterfaceDeclaration",Wh0=F1,$h0=Hr,Hh0="InterfaceExtends",Qh0=Y2,Zh0=g5,xd0="ObjectPattern",rd0=Y2,ed0=AF,td0="ArrayPattern",nd0=Gt,ud0=os,id0=M4,fd0=Y2,cd0=Te,sd0=jE,ad0=ne,od0=j5,vd0=ne,ld0=j5,pd0=Gt,kd0=os,md0=M4,hd0=$7,dd0=$7,yd0=bo,gd0=Dv,_d0=ZL,bd0=Nv,wd0=jw,Td0=Z3,Ed0=ca,Sd0=l2,Ad0=co,Id0=kL,jd0=ne,Pd0=fM,Nd0=Gt,Od0=os,Cd0=M4,Dd0=Nv,Rd0=jw,Fd0=Z3,Ld0=ca,Md0=l2,Ud0=co,qd0=kL,Bd0=ne,Xd0=fM,Jd0=bt,Kd0=l2,Yd0=lv,zd0=H0,Vd0=bt,Gd0=vo,Wd0=l2,$d0=lv,Hd0=bt,Qd0=l2,Zd0=lv,x50=as,r50=ls,e50=bt,t50=l2,n50=lv,u50="flags",i50=$t,f50="regex",c50=bt,s50=l2,a50=lv,o50=bt,v50=l2,l50=lv,p50=jM,k50="quasis",m50="TemplateLiteral",h50="cooked",d50=bt,y50="tail",g50=l2,_50="TemplateElement",b50="quasi",w50="tag",T50="TaggedTemplateExpression",E50=al,S50=mv,A50=ul,I50=ca,j50="declarations",P50="VariableDeclaration",N50=$7,O50=Hr,C50="VariableDeclarator",D50="plus",R50=OR,F50=ko,L50=aa,M50=Sg,U50="in-out",q50=ca,B50="Variance",X50="AnyTypeAnnotation",J50="MixedTypeAnnotation",K50="EmptyTypeAnnotation",Y50="VoidTypeAnnotation",z50="NullLiteralTypeAnnotation",V50="SymbolTypeAnnotation",G50="NumberTypeAnnotation",W50="BigIntTypeAnnotation",$50="StringTypeAnnotation",H50="BooleanTypeAnnotation",Q50=Y2,Z50="NullableTypeAnnotation",xy0="UnknownTypeAnnotation",ry0="NeverTypeAnnotation",ey0="UndefinedTypeAnnotation",ty0=ca,ny0=Y2,uy0="parameterName",iy0="TypePredicate",fy0="HookTypeAnnotation",cy0="FunctionTypeAnnotation",sy0=uo,ay0=F1,oy0=g_,vy0=O8,ly0=Kt,py0=xt,ky0=Y2,my0=Te,hy0=RR,dy0=xt,yy0=Y2,gy0=Te,_y0=RR,by0=[0,0,0,0,0],wy0="internalSlots",Ty0="callProperties",Ey0="indexers",Sy0=g5,Ay0="exact",Iy0=wR,jy0="ObjectTypeAnnotation",Py0=ZL,Ny0="There should not be computed object type property keys",Oy0=$7,Cy0=bo,Dy0=Dv,Ry0=ca,Fy0=L1,Ly0=Fj,My0=Ae,Uy0=xt,qy0=Z3,By0=l2,Xy0=co,Jy0="ObjectTypeProperty",Ky0=ne,Yy0="ObjectTypeSpreadProperty",zy0=L1,Vy0=Ae,Gy0=l2,Wy0=co,$y0=Hr,Hy0="ObjectTypeIndexer",Qy0=Ae,Zy0=l2,x90="ObjectTypeCallProperty",r90=xt,e90=L1,t90="sourceType",n90="propType",u90="keyTparam",i90="ObjectTypeMappedTypeProperty",f90=l2,c90=Z3,s90=Ae,a90=xt,o90=Hr,v90="ObjectTypeInternalSlot",l90=P2,p90=hc,k90="InterfaceTypeAnnotation",m90=XF,h90="ArrayTypeAnnotation",d90="falseType",y90="trueType",g90="extendsType",_90="checkType",b90="ConditionalTypeAnnotation",w90="typeParameter",T90="InferTypeAnnotation",E90=Hr,S90=RM,A90="QualifiedTypeIdentifier",I90=F1,j90=Hr,P90="GenericTypeAnnotation",N90="indexType",O90="objectType",C90="IndexedAccessType",D90=xt,R90="OptionalIndexedAccessType",F90=pE,L90="UnionTypeAnnotation",M90=pE,U90="IntersectionTypeAnnotation",q90=A4,B90=ne,X90="TypeofTypeAnnotation",J90=Hr,K90=RM,Y90="QualifiedTypeofIdentifier",z90=ne,V90="KeyofTypeAnnotation",G90=dr,W90=NL,$90=xF,H90=Y2,Q90=Iv,Z90="TypeOperator",xg0=ko,rg0=wR,eg0="elementTypes",tg0="TupleTypeAnnotation",ng0=xt,ug0=L1,ig0=XF,fg0=gl,cg0="TupleTypeLabeledElement",sg0=Y2,ag0=gl,og0="TupleTypeSpreadElement",vg0=bt,lg0=l2,pg0="StringLiteralTypeAnnotation",kg0=bt,mg0=l2,hg0="NumberLiteralTypeAnnotation",dg0=bt,yg0=l2,gg0="BigIntLiteralTypeAnnotation",_g0=as,bg0=ls,wg0=bt,Tg0=l2,Eg0="BooleanLiteralTypeAnnotation",Sg0="ExistsTypeAnnotation",Ag0=Y2,Ig0=pR,jg0=Y2,Pg0=pR,Ng0=Kt,Og0="TypeParameterDeclaration",Cg0="usesExtendsBound",Dg0=io,Rg0=L1,Fg0="bound",Lg0=Te,Mg0="TypeParameter",Ug0=Kt,qg0=oR,Bg0=Kt,Xg0=oR,Jg0=Sv,Kg0=tM,Yg0="closingElement",zg0="openingElement",Vg0="JSXElement",Gg0="closingFragment",Wg0=tM,$g0="openingFragment",Hg0="JSXFragment",Qg0=A4,Zg0="selfClosing",x_0="attributes",r_0=Te,e_0="JSXOpeningElement",t_0="JSXOpeningFragment",n_0=Te,u_0="JSXClosingElement",i_0="JSXClosingFragment",f_0=l2,c_0=Te,s_0="JSXAttribute",a_0=ne,o_0="JSXSpreadAttribute",v_0="JSXEmptyExpression",l_0=V2,p_0="JSXExpressionContainer",k_0=V2,m_0="JSXSpreadChild",h_0=bt,d_0=l2,y_0="JSXText",g_0=BA,__0=nb,b_0="JSXMemberExpression",w_0=Te,T_0=Jw,E_0="JSXNamespacedName",S_0=Te,A_0="JSXIdentifier",I_0=Ob,j_0=cl,P_0="ExportSpecifier",N_0=cl,O_0="ImportDefaultSpecifier",C_0=cl,D_0="ImportNamespaceSpecifier",R_0=ER,F_0=cl,L_0="imported",M_0="ImportSpecifier",U_0="Line",q_0="Block",B_0=l2,X_0=l2,J_0="DeclaredPredicate",K_0="InferredPredicate",Y_0=bA,z_0=A4,V_0=BM,G_0=Nv,W_0=BA,$_0=nb,H_0="message",Q_0=PE,Z_0=SL,xb0=N5,rb0=Io,eb0=pl,tb0=M8,nb0=[0,M1,Xu,Hi,gf,L1,oi,jc,Mu,A7,On,lc,ju,Hu,h7,n7,N7,If,Nf,si,d7,bn,Zu,bc,e7,gc,xi,Af,ii,Pn,En,Jf,nu,fu,Gi,Ac,je,cf,ai,kc,xf,df,P7,au,Pe,Li,x7,Ai,Ei,oc,a7,Pu,ec,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,Hf,vu,gu,Xi,Hn,jn,ff,Vn,Sf,_7,V2,ri,Cu,In,w7,zn,hf,ef,I7,U7,mi,hu,iu,Y7,Ou,Xf,O7,yn,zf,Zn,wn,p7,Fu,Ru,kf,Uu,Qi,gn,ui,Ec,Si,Q7,ni,W7,su,dt,r7,Un,t7,R1,ti,B7,bu,Kn,$i,V7,Ef,c7,W1,Lu,Nn,wf,bi,K7,Oc,L7,H7,dn,gi,Au,vc,Yf,Fn,rf,ru,Bu,wc,zu,l7,qn,F7,An,Df,Cf,Oi,Uf,m7,du,Tn,li,v7,_n,X7,Fi,Er,Bn,Vu,mu,nc,Du,Xn,yc,mc,Tu,pc,T7,tf,s7,ki,yf,jf,q7,ji,Tc,Ki,_c,Ln,Ku,nf,Ju,Bf,$u,D7,Lf,Rn,Iu,af,$t,dc,ou,y7,xc,ac,i7,S7,yu,Jn,Wn,di,lu,Wf,Rf,M7,Tf,Sc,eu,_f,rc,G7,Ie,tc,z7,ku,Z7,Pi,o7,Gn,Se,ec,Pu,a7,oc,Ei,Ai,x7,Li,Pe,au,P7,df,xf,kc,ai,cf,je,Ac,Gi,fu,nu,Jf,En,Pn,ii,Af,xi,gc,e7,bc,Zu,bn,d7,si,Nf,If,N7,n7,h7,Hu,ju,lc,On,A7,Mu,jc,oi,L1,gf,Hi,Xu,M1],fb0="Jsoo_runtime.Error.Exn",cb0=[0,0],sb0="use_strict",ab0=pE,ob0="esproposal_decorators",vb0="enums",lb0="components",pb0="Internal error: ";function C2(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,C2(x[1])];case 1:return[1,C2(x[1])];case 2:return[2,C2(x[1])];case 3:return[3,C2(x[1])];case 4:return[4,C2(x[1])];case 5:return[5,C2(x[1])];case 6:return[6,C2(x[1])];case 7:return[7,C2(x[1])];case 8:var r=x[1];return[8,r,C2(x[2])];case 9:var e=x[1];return[9,e,e,C2(x[3])];case 10:return[10,C2(x[1])];case 11:return[11,C2(x[1])];case 12:return[12,C2(x[1])];case 13:return[13,C2(x[1])];default:return[14,C2(x[1])]}}function Q1(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,Q1(x[1],r)];case 1:return[1,Q1(x[1],r)];case 2:return[2,Q1(x[1],r)];case 3:return[3,Q1(x[1],r)];case 4:return[4,Q1(x[1],r)];case 5:return[5,Q1(x[1],r)];case 6:return[6,Q1(x[1],r)];case 7:return[7,Q1(x[1],r)];case 8:var e=x[1];return[8,e,Q1(x[2],r)];case 9:var t=x[2],u=x[1];return[9,u,t,Q1(x[3],r)];case 10:return[10,Q1(x[1],r)];case 11:return[11,Q1(x[1],r)];case 12:return[12,Q1(x[1],r)];case 13:return[13,Q1(x[1],r)];default:return[14,Q1(x[1],r)]}}function E2(x,r){if(typeof x=="number")return r;switch(x[0]){case 0:return[0,E2(x[1],r)];case 1:return[1,E2(x[1],r)];case 2:var e=x[1];return[2,e,E2(x[2],r)];case 3:var t=x[1];return[3,t,E2(x[2],r)];case 4:var u=x[3],i=x[2],c=x[1];return[4,c,i,u,E2(x[4],r)];case 5:var v=x[3],a=x[2],p=x[1];return[5,p,a,v,E2(x[4],r)];case 6:var _=x[3],y=x[2],S=x[1];return[6,S,y,_,E2(x[4],r)];case 7:var E=x[3],j=x[2],C=x[1];return[7,C,j,E,E2(x[4],r)];case 8:var P=x[3],O=x[2],F=x[1];return[8,F,O,P,E2(x[4],r)];case 9:var K=x[1];return[9,K,E2(x[2],r)];case 10:return[10,E2(x[1],r)];case 11:var U=x[1];return[11,U,E2(x[2],r)];case 12:var V=x[1];return[12,V,E2(x[2],r)];case 13:var Q=x[2],$=x[1];return[13,$,Q,E2(x[3],r)];case 14:var x0=x[2],e0=x[1];return[14,e0,x0,E2(x[3],r)];case 15:return[15,E2(x[1],r)];case 16:return[16,E2(x[1],r)];case 17:var Z=x[1];return[17,Z,E2(x[2],r)];case 18:var c0=x[1];return[18,c0,E2(x[2],r)];case 19:return[19,E2(x[1],r)];case 20:var d0=x[2],n0=x[1];return[20,n0,d0,E2(x[3],r)];case 21:var P0=x[1];return[21,P0,E2(x[2],r)];case 22:return[22,E2(x[1],r)];case 23:var h0=x[1];return[23,h0,E2(x[2],r)];default:var g0=x[2],v0=x[1];return[24,v0,g0,E2(x[3],r)]}}function uN(x,r,e){return x[1]===r?(x[1]=e,1):0}function gx(x){throw U0([0,Qt,x],1)}function B1(x){throw U0([0,tN,x],1)}function rh(x){return 0<=x?x:-x|0}var kb0=WD;function Bx(x,r){var e=Nx(x),t=Nx(r),u=T2(e+t|0);return Dc(x,0,u,0,e),Dc(r,0,u,e,t),A1(u)}function mb0(x){return x?sz:az}function Fx(x,r){if(!x)return r;var e=x[1];return[0,e,Fx(x[2],r)]}KY(0);var hb0=JU(1),Lc=JU(2);function db0(x){for(var r=YY(0);;){if(!r)return 0;var e=r[2],t=r[1];try{Rc(t)}catch(c){var u=O2(c);if(u[1]!==VU)throw U0(u,0)}var r=e}}function Ol(x,r){QP(x,r,0,Nx(r))}function QU(x){return Ol(Lc,x),KU(Lc,10),Rc(Lc)}var iN=[0,db0];function fN(x){return l(iN[1],0)}xN(HR,fN);var ZU=xz(0)[1],Cl=(4*QY(0)|0)-1|0,yb0=[x2,oz,Ts(0)];function gb0(x){throw U0(yb0,1)}function eh(x,r){return r?[0,l(x,r[1])]:0}function xq(x){return 25>>0?x:x+KD|0}function Is(x){for(var r=0,e=x;;){if(!e)return r;var r=r+1|0,e=e[2]}}function Dl(x){return x?x[1]:gx(gz)}function rq(x){return x?x[2]:gx(yz)}function zv(x,r){for(var e=x,t=r;;){if(!e)return t;var u=[0,e[1],t],e=e[2],t=u}}function vx(x){return zv(x,0)}function Rl(x){if(!x)return 0;var r=x[1];return Fx(r,Rl(x[2]))}function xn(x,r){if(!r)return 0;var e=r[2],t=x(r[1]);return[0,t,xn(x,e)]}function th(x,r){for(var e=0,t=r;;){if(!t)return e;var u=t[2],e=[0,x(t[1]),e],t=u}}function p1(x,r){for(var e=r;;){if(!e)return 0;var t=e[2];l(x,e[1]);var e=t}}function u1(x,r,e){for(var t=r,u=e;;){if(!u)return t;var i=u[2],t=k(x,t,u[1]),u=i}}function cN(x,r,e){if(!r)return e;var t=r[1];return x(t,cN(x,r[2],e))}function eq(x,r,e){for(var t=r,u=e;;){if(t){if(u){var i=u[2],c=t[2];x(t[1],u[1]);var t=c,u=i;continue}}else if(!u)return;return B1(dz)}}function sN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=x(e[1]);if(u)return u;var e=t}}function aN(x,r){for(var e=r;;){if(!e)return 0;var t=e[2],u=OU(e[1],x)===0?1:0;if(u)return u;var e=t}}function Fl(x){var r=0;return function(e){for(var t=r,u=e;;){if(!u)return vx(t);var i=u[2],c=u[1];if(x(c))var t=[0,c,t],u=i;else var u=i}}}function No(x,r){var e=T2(x);return EY(e,0,x,r),e}function tq(x){var r=nt(x),e=T2(r);return gs(x,0,e,0,r),e}function nq(x,r,e){if(0<=r&&0<=e&&(nt(x)-e|0)>=r){var t=T2(e);return gs(x,r,t,0,e),t}return B1(wz)}function Vv(x,r,e){return A1(nq(x,r,e))}function uq(x,r,e,t,u){if(0<=u&&0<=r&&(nt(x)-u|0)>=r&&0<=t&&(nt(e)-u|0)>=t){gs(x,r,e,t,u);return}return B1(bz)}function js(x,r,e,t,u){if(0<=u&&0<=r&&(Nx(x)-u|0)>=r&&0<=t&&(nt(e)-u|0)>=t){Dc(x,r,e,t,u);return}return B1(_z)}function nh(x,r){return A1(No(x,r))}function k1(x,r,e){return A1(nq(Cc(x),r,e))}function iq(x,r){if(!r)return Tz;var e=Nx(x);x:{r:{for(var t=0,u=r,i=0;u;){var c=u[1];if(!u[2])break r;var v=(Nx(c)+e|0)+t|0,a=u[2],p=t<=v?v:B1(Ez),t=p,u=a}var _=t;break x}var _=Nx(c)+t|0}for(var y=T2(_),S=i,E=r;;){if(E){var j=E[1];if(E[2]){var C=E[2];Dc(j,0,y,S,Nx(j)),Dc(x,0,y,S+Nx(j)|0,e);var S=(S+Nx(j)|0)+e|0,E=C;continue}Dc(j,0,y,S,Nx(j))}return A1(y)}}function fq(x){var r=Cc(x);if(nt(r)===0)var e=r;else{var t=tq(r);Vr(t,0,xq(fe(r,0)));var e=t}return A1(e)}function cq(x,r){var e=Nx(x),t=e<=Nx(r)?1:0;if(!t)return t;for(var u=0;;){if(u===e)return 1;if(F0(r,u)!==F0(x,u))return 0;var u=u+1|0}}function sq(x,r){var e=[0,0],t=[0,Nx(r)],u=Nx(r)-1|0;if(u>=0)for(var i=u;;){if(F0(r,i)===x){var c=e[1];e[1]=[0,k1(r,i+1|0,(t[1]-i|0)-1|0),c],t[1]=i}var v=i-1|0;if(i===0)break;var i=v}var a=e[1];return[0,k1(r,0,t[1]),a]}var _b0=ix;function aq(x,r){var e=r.length-1-1|0,t=0;if(e>=0)for(var u=t;;){x(r[1+u]);var i=u+1|0;if(e===u)break;var u=i}}function uh(x,r){var e=r.length-1;if(e===0)return[0];var t=Jv(e,x(r[1])),u=e-1|0,i=1;if(u>=1)for(var c=i;;){t[1+c]=x(r[1+c]);var v=c+1|0;if(u===c)break;var c=v}return t}function Ll(x){if(!x)return[0];for(var r=0,e=x,t=x[2],u=x[1];e;)var r=r+1|0,e=e[2];for(var i=Jv(r,u),c=1,v=t;;){if(!v)return i;var a=v[2];i[1+c]=v[1];var c=c+1|0,v=a}}function oq(x){try{var r=[0,El(x)];return r}catch(t){var e=O2(t);if(e[1]===Qt)return 0;throw U0(e,0)}}function oN(x){function r(a){return a?a[5]:0}function e(a,p,_,y){var S=r(a),E=r(y),j=E<=S?S+1|0:E+1|0;return[0,a,p,_,y,j]}function t(a,p,_,y){var S=a?a[5]:0,E=y?y[5]:0;if((E+2|0)=E){var $=E<=S?S+1|0:E+1|0;return[0,a,p,_,y,$]}if(!y)return B1(Nz);var x0=y[4],e0=y[3],Z=y[2],c0=y[1],d0=r(c0);if(d0<=r(x0))return e(e(a,p,_,c0),Z,e0,x0);if(!c0)return B1(Pz);var n0=c0[3],P0=c0[2],h0=c0[1],g0=e(c0[4],Z,e0,x0);return e(e(a,p,_,h0),P0,n0,g0)}var u=0;function i(a,p,_){if(!_)return[0,0,a,p,0,1];var y=_[4],S=_[3],E=_[2],j=_[1],C=_[5],P=k(x[1],a,E);if(P===0)return S===p?_:[0,j,a,p,y,C];if(0<=P){var O=i(a,p,y);return y===O?_:t(j,E,S,O)}var F=i(a,p,j);return j===F?_:t(F,E,S,y)}function c(a,p){for(var _=p;;){if(!_)throw U0(Fc,1);var y=_[4],S=_[3],E=_[1],j=k(x[1],a,_[2]);if(j===0)return S;var C=0<=j?y:E,_=C}}function v(a,p,_){for(var y=p,S=_;;){if(!y)return S;var E=y[4],j=y[3],C=y[2],P=a(C,j,v(a,y[1],S)),y=E,S=P}}return[0,u,,,i,,,,,,,,,v,,,,,,,,,,,,,,,c]}function Ml(x){return[0,0,0]}function Ul(x){x[1]=0,x[2]=0}function Oo(x,r){r[1]=[0,x,r[1]],r[2]=r[2]+1|0}function Gv(x){var r=x[1];if(!r)return 0;var e=r[1];return x[1]=r[2],x[2]=x[2]-1|0,[0,e]}function Wv(x){var r=x[1];return r?[0,r[1]]:0}var bb0=[x2,Oz,Ts(0)];function vq(x){return[0,0,0,0]}function vN(x){x[1]=0,x[2]=0,x[3]=0}function lN(x,r){var e=[0,x,0],t=r[3];return t?(r[1]=r[1]+1|0,t[2]=e,r[3]=e,0):(r[1]=1,r[2]=e,r[3]=e,0)}function Qr(x){var r=1<=x?x:1,e=Cl=(e+r|0));)t[1]=2*t[1]|0;Clx[3])throw U0([0,Ar,Rz],1);if(!((e+r|0)<=x[3]))throw U0([0,Ar,Fz],1)}function ut(x,r){var e=x[2];x[3]<=e&&pN(x,1),Vr(x[1],e,r),x[2]=e+1|0}function lq(x,r,e,t){var u=e<0?1:0;if(u)var c=u;else var i=t<0?1:0,c=i||((Nx(r)-t|0)u){if(u!==32){if(43>u)break x;switch(u+M5|0){case 5:e:if(t<(e+2|0)&&1=(e+1|0))break x;var c=No(e+1|0,48);return qv(c,0,u),js(r,1,c,(e-t|0)+2|0,t-1|0),A1(c)}if(71<=u){if(5>>0)break x}else if(65>u)break x}if(t>>0){if(33>>0)break e}else if(t===2)break;var r=r+1|0}break r}var u=Cc(x),i=[0,0],c=nt(u)-1|0,v=0;if(c>=0)for(var a=v;;){var p=fe(u,a);r:{e:{t:{if(32<=p){var _=p-34|0;if(58<_>>>0){if(93<=_)break t}else if(56<_-1>>>0)break e;var y=1;break r}if(11<=p){if(p===13)break e}else if(8<=p)break e}var y=4;break r}var y=2}i[1]=i[1]+y|0;var S=a+1|0;if(c===a)break;var a=S}if(i[1]===nt(u))var E=tq(u);else{var j=T2(i[1]);i[1]=0;var C=nt(u)-1|0,P=0;if(C>=0)for(var O=P;;){var F=fe(u,O);r:{e:{t:{if(35<=F){if(F!==92){if(Yr<=F)break t;break e}}else{if(32>F){if(14<=F)break t;switch(F){case 8:Vr(j,i[1],92),i[1]++,Vr(j,i[1],98);break r;case 9:Vr(j,i[1],92),i[1]++,Vr(j,i[1],ua);break r;case 10:Vr(j,i[1],92),i[1]++,Vr(j,i[1],j2);break r;case 13:Vr(j,i[1],92),i[1]++,Vr(j,i[1],ia);break r;default:break t}}if(34>F)break e}Vr(j,i[1],92),i[1]++,Vr(j,i[1],F);break r}Vr(j,i[1],92),i[1]++,Vr(j,i[1],48+(F/et|0)|0),i[1]++,Vr(j,i[1],48+((F/10|0)%10|0)|0),i[1]++,Vr(j,i[1],48+(F%10|0)|0);break r}Vr(j,i[1],F)}i[1]++;var K=O+1|0;if(C===O)break;var O=K}var E=j}var U=A1(E)}var V=Nx(U),Q=No(V+2|0,34);return Dc(U,0,Q,1,V),A1(Q)}function dq(x,r){var e=rh(r),t=CV[1];switch(x[2]){case 0:var u=S1;break;case 1:var u=yt;break;case 2:var u=69;break;case 3:var u=Ze;break;case 4:var u=71;break;case 5:var u=t;break;case 6:var u=_t;break;case 7:var u=72;break;default:var u=70}var i=pq(16);switch($v(i,37),x[1]){case 0:break;case 1:$v(i,43);break;default:$v(i,32)}return 8<=x[2]&&$v(i,35),$v(i,46),j1(i,H0+e),$v(i,u),mq(i)}function fh(x,r){if(13>x)return r;var e=[0,0],t=Nx(r)-1|0,u=0;if(t>=0)for(var i=u;;){9>=F0(r,i)+B2>>>0&&e[1]++;var c=i+1|0;if(t===i)break;var i=c}var v=e[1],a=T2(Nx(r)+((v-1|0)/3|0)|0),p=[0,0];function _(O){qv(a,p[1],O),p[1]++}var y=[0,((v-1|0)%3|0)+1|0],S=Nx(r)-1|0,E=0;if(S>=0)for(var j=E;;){var C=F0(r,j);9>>0||(y[1]===0&&(_(95),y[1]=3),y[1]+=-1),_(C);var P=j+1|0;if(S===j)break;var j=P}return A1(a)}function Tb0(x,r){switch(x){case 1:var e=yG;break;case 2:var e=gG;break;case 4:var e=_G;break;case 5:var e=bG;break;case 6:var e=wG;break;case 7:var e=TG;break;case 8:var e=EG;break;case 9:var e=SG;break;case 10:var e=AG;break;case 11:var e=IG;break;case 0:case 13:var e=jG;break;case 3:case 14:var e=PG;break;default:var e=NG}return fh(x,zm(e,r))}function Eb0(x,r){switch(x){case 1:var e=VV;break;case 2:var e=GV;break;case 4:var e=WV;break;case 5:var e=$V;break;case 6:var e=HV;break;case 7:var e=QV;break;case 8:var e=ZV;break;case 9:var e=xG;break;case 10:var e=rG;break;case 11:var e=eG;break;case 0:case 13:var e=tG;break;case 3:case 14:var e=nG;break;default:var e=uG}return fh(x,zm(e,r))}function Sb0(x,r){switch(x){case 1:var e=DV;break;case 2:var e=RV;break;case 4:var e=FV;break;case 5:var e=LV;break;case 6:var e=MV;break;case 7:var e=UV;break;case 8:var e=qV;break;case 9:var e=BV;break;case 10:var e=XV;break;case 11:var e=JV;break;case 0:case 13:var e=KV;break;case 3:case 14:var e=YV;break;default:var e=zV}return fh(x,zm(e,r))}function Ab0(x,r){switch(x){case 1:var e=iG;break;case 2:var e=fG;break;case 4:var e=cG;break;case 5:var e=sG;break;case 6:var e=aG;break;case 7:var e=oG;break;case 8:var e=vG;break;case 9:var e=lG;break;case 10:var e=pG;break;case 11:var e=kG;break;case 0:case 13:var e=mG;break;case 3:case 14:var e=hG;break;default:var e=dG}return fh(x,RU(e,r))}function Ps(x,r,e){function t(K){switch(x[1]){case 0:var U=45;break;case 1:var U=43;break;default:var U=32}return AY(e,r,U)}function u(K){var U=sY(e);return U===3?e<0?PV:NV:4<=U?jV:K}switch(x[2]){case 5:for(var i=VP(dq(x,r),e),c=0,v=Nx(i);;){if(c===v)var a=0;else{var p=N2(i,c)+So|0;x:{if(23

>>0){if(p===55)break x}else if(21>>0)break x;var c=c+1|0;continue}var a=1}var _=a?i:Bx(i,OV);return u(_)}case 6:return t(R);case 7:var y=Cc(t(R)),S=nt(y);if(S===0)var E=y;else{var j=T2(S),C=S-1|0,P=0;if(C>=0)for(var O=P;;){Vr(j,O,xq(fe(y,O)));var F=O+1|0;if(C===O)break;var O=F}var E=j}return A1(E);case 8:return u(t(R));default:return VP(dq(x,r),e)}}function ch(x,r,e,t,u,i,c){if(typeof t=="number"){if(typeof u=="number")return u?function(E,j){return Lr(x,[4,r,Hv(E,i(c,j))],e)}:function(E){return Lr(x,[4,r,i(c,E)],e)};var v=u[1];return function(E){return Lr(x,[4,r,Hv(v,i(c,E))],e)}}if(t[0]===0){var a=t[2],p=t[1];if(typeof u=="number")return u?function(E,j){return Lr(x,[4,r,Oe(p,a,Hv(E,i(c,j)))],e)}:function(E){return Lr(x,[4,r,Oe(p,a,i(c,E))],e)};var _=u[1];return function(E){return Lr(x,[4,r,Oe(p,a,Hv(_,i(c,E)))],e)}}var y=t[1];if(typeof u=="number")return u?function(E,j,C){return Lr(x,[4,r,Oe(y,E,Hv(j,i(c,C)))],e)}:function(E,j){return Lr(x,[4,r,Oe(y,E,i(c,j))],e)};var S=u[1];return function(E,j){return Lr(x,[4,r,Oe(y,E,Hv(S,i(c,j)))],e)}}function dN(x,r,e,t,u){if(typeof t=="number")return function(a){return Lr(x,[4,r,u(a)],e)};if(t[0]===0){var i=t[2],c=t[1];return function(a){return Lr(x,[4,r,Oe(c,i,u(a))],e)}}var v=t[1];return function(a,p){return Lr(x,[4,r,Oe(v,a,u(p))],e)}}function Bl(x,r,e,t){for(var u=r,i=e,c=t;;){if(typeof c=="number")return u(i);switch(c[0]){case 0:var v=c[1];return function(S0){return Lr(u,[5,i,S0],v)};case 1:var a=c[1];return function(S0){x:{r:{if(40<=S0){if(S0===92){var cx=vz;break x}if(Yr>S0)break r}else{if(32<=S0){if(39>S0)break r;var cx=lz;break x}if(14>S0)switch(S0){case 8:var cx=pz;break x;case 9:var cx=kz;break x;case 10:var cx=mz;break x;case 13:var cx=hz;break x}}var q0=T2(4);Vr(q0,0,92),Vr(q0,1,48+(S0/et|0)|0),Vr(q0,2,48+((S0/10|0)%10|0)|0),Vr(q0,3,48+(S0%10|0)|0);var cx=A1(q0);break x}var yx=T2(1);Vr(yx,0,S0);var cx=A1(yx)}var Dx=Nx(cx),Ix=No(Dx+2|0,39);return Dc(cx,0,Ix,1,Dx),Lr(u,[4,i,A1(Ix)],a)};case 2:var p=c[2],_=c[1];return dN(u,i,p,_,function(S0){return S0});case 3:return dN(u,i,c[2],c[1],wb0);case 4:return ch(u,i,c[4],c[2],c[3],Tb0,c[1]);case 5:return ch(u,i,c[4],c[2],c[3],Eb0,c[1]);case 6:return ch(u,i,c[4],c[2],c[3],Sb0,c[1]);case 7:return ch(u,i,c[4],c[2],c[3],Ab0,c[1]);case 8:var y=c[4],S=c[3],E=c[2],j=c[1];if(typeof E=="number"){if(typeof S=="number")return S?function(S0,q0){return Lr(u,[4,i,Ps(j,S0,q0)],y)}:function(S0){return Lr(u,[4,i,Ps(j,mN(j),S0)],y)};var C=S[1];return function(S0){return Lr(u,[4,i,Ps(j,C,S0)],y)}}if(E[0]===0){var P=E[2],O=E[1];if(typeof S=="number")return S?function(S0,q0){return Lr(u,[4,i,Oe(O,P,Ps(j,S0,q0))],y)}:function(S0){return Lr(u,[4,i,Oe(O,P,Ps(j,mN(j),S0))],y)};var F=S[1];return function(S0){return Lr(u,[4,i,Oe(O,P,Ps(j,F,S0))],y)}}var K=E[1];if(typeof S=="number")return S?function(S0,q0,yx){return Lr(u,[4,i,Oe(K,S0,Ps(j,q0,yx))],y)}:function(S0,q0){return Lr(u,[4,i,Oe(K,S0,Ps(j,mN(j),q0))],y)};var U=S[1];return function(S0,q0){return Lr(u,[4,i,Oe(K,S0,Ps(j,U,q0))],y)};case 9:return dN(u,i,c[2],c[1],mb0);case 10:var i=[7,i],c=c[1];break;case 11:var i=[2,i,c[1]],c=c[2];break;case 12:var i=[3,i,c[1]],c=c[2];break;case 13:var V=c[3],Q=c[2],$=pq(16);hN($,Q);var x0=mq($);return function(S0){return Lr(u,[4,i,x0],V)};case 14:var e0=c[3],Z=c[2];return function(S0){var q0=S0[1],yx=a2(q0,C2(Q2(Z)));if(typeof yx[2]=="number")return Lr(u,i,E2(yx[1],e0));throw U0(m1,1)};case 15:var c0=c[1];return function(S0,q0){return Lr(u,[6,i,function(yx){return k(S0,yx,q0)}],c0)};case 16:var d0=c[1];return function(S0){return Lr(u,[6,i,S0],d0)};case 17:var i=[0,i,c[1]],c=c[2];break;case 18:var n0=c[1];if(n0[0]===0)var P0=c[2],h0=n0[1][1],g0=0,u=function(S0,q0,yx){return function(cx){return Lr(q0,[1,S0,[0,cx]],yx)}}(i,u,P0),i=g0,c=h0;else var v0=c[2],p0=n0[1][1],w0=0,u=function(S0,q0,yx){return function(cx){return Lr(q0,[1,S0,[1,cx]],yx)}}(i,u,v0),i=w0,c=p0;break;case 19:throw U0([0,Ar,hV],1);case 20:var T0=c[3],E0=[8,i,dV];return function(S0){return Lr(u,E0,T0)};case 21:var N0=c[2];return function(S0){return Lr(u,[4,i,zm(uL,S0)],N0)};case 22:var X0=c[1];return function(S0){return Lr(u,[5,i,S0],X0)};case 23:var A0=c[2],rx=c[1];if(typeof rx=="number")switch(rx){case 0:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 1:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 2:throw U0([0,Ar,yV],1);default:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0])}switch(rx[0]){case 0:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 1:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 2:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 3:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 4:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 5:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 6:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 7:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 8:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);case 9:var B=rx[2];return x<50?yN(x+1|0,u,i,B,A0):l1(yN,[0,u,i,B,A0]);case 10:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0]);default:return x<50?u2(x+1|0,u,i,A0):l1(u2,[0,u,i,A0])}default:var G0=c[3],W0=c[1],Y0=l(c[2],0);return x<50?gN(x+1|0,u,i,G0,W0,Y0):l1(gN,[0,u,i,G0,W0,Y0])}}}function yN(x,r,e,t,u){if(typeof t=="number")return x<50?u2(x+1|0,r,e,u):l1(u2,[0,r,e,u]);switch(t[0]){case 0:var i=t[1];return function(U){return it(r,e,i,u)};case 1:var c=t[1];return function(U){return it(r,e,c,u)};case 2:var v=t[1];return function(U){return it(r,e,v,u)};case 3:var a=t[1];return function(U){return it(r,e,a,u)};case 4:var p=t[1];return function(U){return it(r,e,p,u)};case 5:var _=t[1];return function(U){return it(r,e,_,u)};case 6:var y=t[1];return function(U){return it(r,e,y,u)};case 7:var S=t[1];return function(U){return it(r,e,S,u)};case 8:var E=t[2];return function(U){return it(r,e,E,u)};case 9:var j=t[3],C=t[2],P=i1(Q2(t[1]),C);return function(U){return it(r,e,Q1(P,j),u)};case 10:var O=t[1];return function(U,V){return it(r,e,O,u)};case 11:var F=t[1];return function(U){return it(r,e,F,u)};case 12:var K=t[1];return function(U){return it(r,e,K,u)};case 13:throw U0([0,Ar,gV],1);default:throw U0([0,Ar,_V],1)}}function u2(x,r,e,t){var u=[8,e,bV];return x<50?Bl(x+1|0,r,u,t):l1(Bl,[0,r,u,t])}function gN(x,r,e,t,u,i){if(u){var c=u[1];return function(a){return Ib0(r,e,t,c,l(i,a))}}var v=[4,e,i];return x<50?Bl(x+1|0,r,v,t):l1(Bl,[0,r,v,t])}function Lr(x,r,e){return rN(Bl(0,x,r,e))}function it(x,r,e,t){return rN(yN(0,x,r,e,t))}function Ib0(x,r,e,t,u){return rN(gN(0,x,r,e,t,u))}function Ns(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=hq(e[2]);return Ns(x,t),Ol(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];Ns(x,c),Ol(x,wV);var e=v}else{var a=i[1];Ns(x,c),Ol(x,TV);var e=a}break;case 6:var p=e[2];return Ns(x,e[1]),l(p,x);case 7:Ns(x,e[1]),Rc(x);return;case 8:var _=e[2];return Ns(x,e[1]),B1(_);case 2:case 4:var y=e[2];return Ns(x,e[1]),Ol(x,y);default:var S=e[2];Ns(x,e[1]),KU(x,S);return}}}function Os(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1],u=hq(e[2]);return Os(x,t),ar(x,u);case 1:var i=e[2],c=e[1];if(i[0]===0){var v=i[1];Os(x,c),ar(x,EV);var e=v}else{var a=i[1];Os(x,c),ar(x,SV);var e=a}break;case 6:var p=e[2];return Os(x,e[1]),ar(x,l(p,0));case 7:var e=e[1];break;case 8:var _=e[2];return Os(x,e[1]),B1(_);case 2:case 4:var y=e[2];return Os(x,e[1]),ar(x,y);default:var S=e[2];return Os(x,e[1]),ut(x,S)}}}function yq(x,r){var e=r[1],t=0;return Lr(function(u){return Ns(x,u),0},t,e)}function _N(x){return yq(Lc,x)}function yr(x){var r=x[1];return Lr(function(e){var t=Qr(64);return Os(t,e),R2(t)},0,r)}var bN=[0,0];function wN(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return l(yr(oW),e);if(Po(e)===go)return l(yr(vW),e);if(Po(e)!==i8)return lW;for(var t=VP("%.12g",e),u=0,i=Nx(t);;){if(i<=u)return Bx(t,cz);var c=N2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function gq(x,r){if(x.length-1<=r)return BG;var e=gq(x,r+1|0),t=wN(x,r);return k(yr(XG),t,e)}function sh(x){x:{r:{for(var r=bN[1];r;){e:{var e=r[2],t=r[1];try{var u=l(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===eN)return eW;if(x===WU)return tW;if(x[1]===GU){var c=x[2],v=c[3],a=c[2],p=c[1];return I1(yr(nN),p,a,v,v+5|0,nW)}if(x[1]===Ar){var _=x[2],y=_[3],S=_[2],E=_[1];return I1(yr(nN),E,S,y,y+6|0,uW)}if(x[1]===Pl){var j=x[2],C=j[3],P=j[2],O=j[1];return I1(yr(nN),O,P,C,C+6|0,iW)}if(Po(x)!==0)return x[1];var F=x.length-1,K=x[1][1];if(2>>0)var U=gq(x,2),V=wN(x,1),Q=k(yr(fW),V,U);else switch(F){case 0:var Q=cW;break;case 1:var Q=sW;break;default:var $=wN(x,1),Q=l(yr(aW),$)}return Bx(K,Q)}function TN(x,r){var e=TY(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=$2(e,i)[1+i],v=function(U){return function(V){return V?U===0?GG:WG:U===0?$G:HG}}(i);if(c[0]===0)var a=c[5],p=c[4],_=c[3],y=c[6]?QG:ZG,S=c[2],E=c[7],j=v(c[1]),P=[0,uz(yr(xW),j,E,S,y,_,p,a)];else if(c[1])var P=0;else var C=v(0),P=[0,l(yr(rW),C)];if(P){var O=P[1];l(yq(x,VG),O)}var F=i+1|0;if(t===i)break;var i=F}}function _q(x){for(;;){var r=bN[1],e=1-uN(bN,r,[0,x,r]);if(!e)return e}}var jb0=pW.slice(),Pb0=[0];xN(fR,function(x,r){try{try{var e=r?Pb0:DU(0);try{fN(R)}catch{}try{var t=sh(x);l(_N(zG),t),TN(Lc,e);var u=MY(0);if(u<0){var i=rh(u);QU($2(jb0,i)[1+i])}var c=Rc(Lc),v=c}catch(E){var a=O2(E),p=sh(x);l(_N(JG),p),TN(Lc,e);var _=sh(a);l(_N(KG),_),TN(Lc,DU(0));var v=Rc(Lc)}var y=v}catch(E){var S=O2(E);if(S!==eN)throw U0(S,0);var y=QU(YG)}return y}catch{return 0}});var EN=[x2,DW,Ts(0)],ah=0,bq=-1;function Xl(x,r){return x[13]=x[13]+r[3]|0,lN(r,x[28])}var wq=1000000010;function SN(x,r){return B0(x[17],r,0,Nx(r))}function oh(x){return l(x[19],0)}function Tq(x,r,e){x[9]=x[9]-r|0,SN(x,e),x[11]=0}function vh(x,r){var e=I(r,H0);return e&&Tq(x,Nx(r),r)}function Co(x,r,e){var t=r[3],u=r[2];vh(x,r[1]),oh(x),x[11]=1;var i=(x[6]-e|0)+u|0,c=x[8],v=c<=i?c:i;return x[10]=v,x[9]=x[6]-x[10]|0,l(x[21],x[10]),vh(x,t)}function Eq(x,r){return Co(x,CW,r)}function Qv(x,r){var e=r[2],t=r[3];return vh(x,r[1]),x[9]=x[9]-e|0,l(x[20],e),vh(x,t)}function Nb0(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Wv(x[3]);if(!t)return;var u=t[1][1],i=function(Y0,V0){if(!V0)return[0,Y0,0];var ex=V0[1],Q0=V0[2];return LY(Y0,ex)?[0,Y0,V0]:[0,ex,i(Y0,Q0)]};u[1]=i(x[6]-x[9]|0,u[1]);return;case 1:Gv(x[2]);return;case 2:Gv(x[3]);return;case 3:var c=Wv(x[2]);return c?Eq(x,c[1][2]):oh(x);case 4:var v=x[10]!==(x[6]-x[9]|0)?1:0;if(!v)return v;var a=x[28],p=a[2];if(p){var _=p[1];if(p[2]){var y=p[2];a[1]=a[1]-1|0,a[2]=y;var S=[0,_]}else{vN(a);var S=[0,_]}}else var S=0;if(!S)return;var E=S[1],j=E[1];x[12]=x[12]-E[3]|0,x[9]=x[9]+j|0;return;default:var C=Gv(x[5]);return C?SN(x,l(x[25],C[1])):void 0}switch(e[0]){case 0:return Tq(x,r,e[1]);case 1:var P=e[2],O=e[1],F=P[1],K=P[2],U=Wv(x[2]);if(!U)return;var V=U[1],Q=V[2];switch(V[1]){case 0:return Qv(x,O);case 1:return Co(x,P,Q);case 2:return Co(x,P,Q);case 3:return x[9]<(r+Nx(F)|0)?Co(x,P,Q):Qv(x,O);case 4:return x[11]?Qv(x,O):x[9]<(r+Nx(F)|0)||((x[6]-Q|0)+K|0)h0){var n0=g0;continue}var v0=h0}else var v0=P0;var p0=v0;break}else var p0=$;var w0=p0-$|0;return 0<=w0?Qv(x,[0,PW,w0+e0|0,jW]):Co(x,[0,OW,p0+x0|0,NW],x[6]);case 3:var T0=e[2],E0=e[1];if(x[8]<(x[6]-x[9]|0)){var N0=Wv(x[2]);if(N0){var X0=N0[1],A0=X0[2],rx=X0[1];x[9]=rx-1>>>0&&Eq(x,A0)}else oh(x)}var B=x[9]-E0|0,G0=T0===1?1:x[9]=x[14]);)Nq(x,R);return x[13]=wq,Sq(x),r&&oh(x),x[12]=1,x[13]=1,vN(x[28]),AN(x[1]),Ul(x[2]),Ul(x[3]),Ul(x[4]),Ul(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Pq(x,0,3)}function PN(x,r,e){var t=x[14]=e)return B0(x[17],Dq,0,e);B0(x[17],Dq,0,80);var e=e+QR|0}}function Ob0(x){return x[1]===EN?Bx(_W,Bx(x[2],gW)):bW}function Cb0(x){return x[1]===EN?Bx(dW,Bx(x[2],hW)):yW}function Db0(x){return 0}function Rb0(x){return 0}function Fq(x,r){function e(S){return 0}function t(S){return 0}function u(S){return 0}var i=vq(R),c=[0,bq,kW,0];lN(c,i);var v=Ml(R);AN(v),Oo([0,1,c],v);var a=Ml(R),p=Ml(R),_=Ml(R),y=[0,v,Ml(R),_,p,a,78,10,68,78,0,1,1,1,1,kb0,mW,x,r,u,t,e,0,0,Ob0,Cb0,Db0,Rb0,i];return y[19]=function(S){return B0(y[17],wW,0,1)},y[20]=function(S){return Rq(y,S)},y[21]=function(S){return Rq(y,S)},y}function Lq(x){function r(e){return Rc(x)}return Fq(function(e,t,u){return 0<=t&&0<=u&&(Nx(e)-u|0)>=t?QP(x,e,t,u):B1(fz)},r)}function NN(x){function r(e){return 0}return Fq(function(e,t,u){return lq(x,e,t,u)},r)}var Fb0=__;function Mq(x){return Qr(Fb0)}var Lb0=Mq(R),Mb0=Lq(hb0),Ub0=Lq(Lc);NN(Lb0);function Uq(x,r){var e=Qr(16),t=NN(e);x(t,r),Kl(t,R);var u=e[2];if(2>u)return R2(e);var i=u-2|0,c=1;return 0<=i&&(e[2]-i|0)>=1?Vv(e[1],c,i):B1(Lz)}function Ce(x,r){if(typeof r!="number"){x:{r:{e:{switch(r[0]){case 0:var e=r[2];if(Ce(x,r[1]),typeof e=="number")switch(e){case 0:return Nq(x,R);case 1:return Oq(x,R);case 2:return Kl(x,R);case 3:var t=x[14]>>0)break;var $=$+1|0}break t}var x0=k1(O,Q,$-Q|0),e0=V($);t:n:{for(var Z=e0;;){if(Z===K)break n;var c0=N2(O,Z);if(48<=c0){if(58<=c0)break}else if(c0!==45)break;var Z=Z+1|0}break t}if(e0===Z)var d0=0;else try{var n0=tt(k1(O,e0,Z-e0|0)),d0=n0}catch(Dx){var P0=O2(Dx);if(P0[1]!==Qt)throw U0(P0,0);var d0=U(R)}V(Z)!==K&&U(R);t:{if(I(x0,H0)&&I(x0,ZT)){if(!I(x0,"h")){var h0=0;break t}if(!I(x0,"hov")){var h0=3;break t}if(!I(x0,"hv")){var h0=2;break t}if(I(x0,qR)){var h0=U(R);break t}var h0=1;break t}var h0=4}var F=[0,d0,h0]}return Pq(x,F[1],F[2]);case 2:var g0=r[1];if(typeof g0!="number"&&g0[0]===0){var v0=g0[2];if(typeof v0!="number"&&v0[0]===1){var p0=r[2],w0=v0[2],T0=g0[1];break r}}var W0=r[2],Y0=g0;break x;case 3:var E0=r[1];if(typeof E0!="number"&&E0[0]===0){var N0=E0[2];if(typeof N0!="number"&&N0[0]===1){var X0=r[2],A0=N0[2],rx=E0[1];break}}var Q0=r[2],S0=E0;break e;case 4:var B=r[1];if(typeof B!="number"&&B[0]===0){var G0=B[2];if(typeof G0!="number"&&G0[0]===1){var p0=r[2],w0=G0[2],T0=B[1];break r}}var W0=r[2],Y0=B;break x;case 5:var V0=r[1];if(typeof V0!="number"&&V0[0]===0){var ex=V0[2];if(typeof ex!="number"&&ex[0]===1){var X0=r[2],A0=ex[2],rx=V0[1];break}}var Q0=r[2],S0=V0;break e;case 6:var q0=r[2];return Ce(x,r[1]),l(q0,x);case 7:return Ce(x,r[1]),Kl(x,R);default:var yx=r[2];return Ce(x,r[1]),B1(yx)}return Ce(x,rx),PN(x,A0,nh(1,X0))}return Ce(x,S0),Jl(x,Q0)}return Ce(x,T0),PN(x,w0,p0)}return Ce(x,Y0),lh(x,W0)}}function e2(x){return function(r){var e=r[1],t=0;return Lr(function(u){return Ce(x,u),0},t,e)}}for(;;){var qq=iN[1],qb0=[0,1];if(!(1-uN(iN,qq,function(x,r){return function(e){return uN(x,1,0)&&(Kl(Mb0,R),Kl(Ub0,R)),l(r,0)}}(qb0,qq))))break}var Bb0=2;function Xb0(x){var r=[0,0],e=Nx(x)-1|0,t=0;if(e>=0)for(var u=t;;){var i=N2(x,u);r[1]=(ak*r[1]|0)+i|0;var c=u+1|0;if(e===u)break;var u=c}r[1]=r[1]&WD;var v=1073741823=0)for(var c=i;;){var v=(c*2|0)+3|0,a=$2(x,c)[1+c];$2(e,v)[1+v]=a;var p=c+1|0;if(u===c)break;var c=p}return[0,Bb0,e,Do[1],pa[1],0,0,Cs[1],0]}function ON(x,r){var e=x[2].length-1;if(e=0&&(t.length-1-e|0)>=0){tY(u,0,t,0,e);break x}B1(Sz)}x[2]=t}}var Kb0=[0,0];function CN(x){var r=x[2].length-1;return ON(x,r+1|0),r}function Yl(x,r){try{var e=Do[28].call(null,r,x[3]);return e}catch(i){var t=O2(i);if(t!==Fc)throw U0(t,0);var u=CN(x);return x[3]=Do[4].call(null,r,u,x[3]),x[4]=pa[4].call(null,u,1,x[4]),u}}function DN(x,r){return uh(function(e){return Yl(x,e)},r)}function Kq(x,r,e){if(Kb0[1]++,pa[28].call(null,r,x[4])){ON(x,r+1|0),$2(x[2],r)[1+r]=e;return}x[6]=[0,[0,r,e],x[6]]}function RN(x){if(x===0)return 0;for(var r=x.length-1-1|0,e=0;;){if(0>r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}}function FN(x,r){try{var e=Cs[28].call(null,r,x[7]);return e}catch(i){var t=O2(i);if(t!==Fc)throw U0(t,0);var u=x[1];return x[1]=u+1|0,I(r,H0)&&(x[7]=Cs[4].call(null,r,u,x[7])),u}}function LN(x){return Xv(x,0)?[0]:x}function MN(x,r,e,t,u,i){var c=u[2],v=u[4],a=RN(r),p=RN(e),_=RN(t),y=xn(function(v0){return Yl(x,v0)},p),S=xn(function(v0){return Yl(x,v0)},_);x[5]=[0,[0,x[3],x[4],x[6],x[7],y,a],x[5]];var E=Cs[1],j=x[7];function C(v0,p0,w0){return aN(v0,a)?Cs[4].call(null,v0,p0,w0):w0}x[7]=Cs[13].call(null,C,j,E);var P=[0,Do[1]],O=[0,pa[1]];eq(function(v0,p0){P[1]=Do[4].call(null,v0,p0,P[1]);var w0=O[1];try{var T0=pa[28].call(null,p0,x[4]),E0=T0}catch(X0){var N0=O2(X0);if(N0!==Fc)throw U0(N0,0);var E0=1}O[1]=pa[4].call(null,p0,E0,w0)},_,S),eq(function(v0,p0){P[1]=Do[4].call(null,v0,p0,P[1]),O[1]=pa[4].call(null,p0,0,O[1])},p,y),x[3]=P[1],x[4]=O[1];var F=0,K=x[6];x[6]=cN(function(v0,p0){return aN(v0[1],y)?p0:[0,v0,p0]},K,F);var U=i?l(c(x),v):c(x),V=Dl(x[5]),Q=V[6],$=V[5],x0=V[4],e0=V[3],Z=V[2],c0=V[1];x[5]=rq(x[5]),x[7]=u1(function(v0,p0){var w0=Cs[28].call(null,p0,x[7]);return Cs[4].call(null,p0,w0,v0)},x0,Q),x[3]=c0,x[4]=Z;var d0=x[6];x[6]=cN(function(v0,p0){return aN(v0[1],$)?p0:[0,v0,p0]},d0,e0);var n0=0,P0=LN(t),h0=[0,uh(function(v0){var p0=Yl(x,v0);try{for(var w0=x[6];;){if(!w0)throw U0(Fc,1);var T0=w0[1],E0=w0[2],N0=T0[2];if(OU(T0[1],p0)===0)return N0;var w0=E0}}catch(A0){var X0=O2(A0);if(X0===Fc)return $2(x[2],p0)[1+p0];throw U0(X0,0)}},P0),n0],g0=LN(r);return nY([0,[0,U],[0,uh(function(v0){try{var p0=Cs[28].call(null,v0,x[7]);return p0}catch(T0){var w0=O2(T0);throw w0===Fc?U0([0,Ar,RW],1):U0(w0,0)}},g0),h0]])}function ph(x,r){if(x===0)var e=Jq([0]);else{var t=Jq(uh(Xb0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var c=i;;){var v=(c*2|0)+2|0;t[3]=Do[4].call(null,x[1+c],v,t[3]),t[4]=pa[4].call(null,v,1,t[4]);var a=c+1|0;if(u===c)break;var c=a}var e=t}var p=r(e);return e[8]=vx(e[8]),ON(e,3+(($2(e[2],1)[2]*16|0)/32|0)|0),[0,l(p,0),r,,0]}function kh(x,r){if(x)return x;var e=ZP(x2,r[1]);return e[1]=r[2],$Y(e)}function UN(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;u;){var i=u[2];l(u[1],r);var u=i}return r}function mh(x){var r=CN(x);x:{if(r%2|0&&(2+(($2(x[2],1)[2]*16|0)/32|0)|0)>=r){var e=CN(x);break x}var e=r}return $2(x[2],e)[1+e]=0,e}function qN(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return;var u=e[1],i=$2(r,u)[1+u],c=function(Ur){e[1]++;var px=e[1];return $2(r,px)[1+px]},v=c(R);if(typeof v=="number")switch(v){case 0:var a=c(R),Yx=function(px){return function(w){return px}}(a);break;case 1:var p=c(R),Yx=function(px){return function(w){return w[1+px]}}(p);break;case 2:var _=c(R),y=c(R),Yx=function(px,w){return function(L){return L[1+px][1+w]}}(_,y);break;case 3:var S=c(R),Yx=function(px){return function(w){return l(w[1][1+px],w)}}(S);break;case 4:var E=c(R),Yx=function(px){return function(w,L){return w[1+px]=L,0}}(E);break;case 5:var j=c(R),C=c(R),Yx=function(px,w){return function(L){return l(px,w)}}(j,C);break;case 6:var P=c(R),O=c(R),Yx=function(px,w){return function(L){return l(px,L[1+w])}}(P,O);break;case 7:var F=c(R),K=c(R),U=c(R),Yx=function(px,w,L){return function(L0){return l(px,L0[1+w][1+L])}}(F,K,U);break;case 8:var V=c(R),Q=c(R),Yx=function(px,w){return function(L){return l(px,l(L[1][1+w],L))}}(V,Q);break;case 9:var $=c(R),x0=c(R),e0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,L)}}($,x0,e0);break;case 10:var Z=c(R),c0=c(R),d0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,L0[1+L])}}(Z,c0,d0);break;case 11:var n0=c(R),P0=c(R),h0=c(R),g0=c(R),Yx=function(px,w,L,L0){return function(sx){return k(px,w,sx[1+L][1+L0])}}(n0,P0,h0,g0);break;case 12:var v0=c(R),p0=c(R),w0=c(R),Yx=function(px,w,L){return function(L0){return k(px,w,l(L0[1][1+L],L0))}}(v0,p0,w0);break;case 13:var T0=c(R),E0=c(R),N0=c(R),Yx=function(px,w,L){return function(L0){return k(px,L0[1+w],L)}}(T0,E0,N0);break;case 14:var X0=c(R),A0=c(R),rx=c(R),B=c(R),Yx=function(px,w,L,L0){return function(sx){return k(px,sx[1+w][1+L],L0)}}(X0,A0,rx,B);break;case 15:var G0=c(R),W0=c(R),Y0=c(R),Yx=function(px,w,L){return function(L0){return k(px,l(L0[1][1+w],L0),L)}}(G0,W0,Y0);break;case 16:var V0=c(R),ex=c(R),Yx=function(px,w){return function(L){return k(L[1][1+px],L,w)}}(V0,ex);break;case 17:var Q0=c(R),S0=c(R),Yx=function(px,w){return function(L){return k(L[1][1+px],L,L[1+w])}}(Q0,S0);break;case 18:var q0=c(R),yx=c(R),cx=c(R),Yx=function(px,w,L){return function(L0){return k(L0[1][1+px],L0,L0[1+w][1+L])}}(q0,yx,cx);break;case 19:var Dx=c(R),Ix=c(R),Yx=function(px,w){return function(L){var L0=l(L[1][1+w],L);return k(L[1][1+px],L,L0)}}(Dx,Ix);break;case 20:var Xx=c(R),Z0=c(R);mh(x);var Yx=function(px,w){return function(L){return l(Wx(w,px,0),w)}}(Xx,Z0);break;case 21:var rr=c(R),xr=c(R);mh(x);var Yx=function(px,w){return function(L){var L0=L[1+w];return l(Wx(L0,px,0),L0)}}(rr,xr);break;case 22:var fr=c(R),Hx=c(R),Y=c(R);mh(x);var Yx=function(px,w,L){return function(L0){var sx=L0[1+w][1+L];return l(Wx(sx,px,0),sx)}}(fr,Hx,Y);break;default:var jx=c(R),hr=c(R);mh(x);var Yx=function(px,w){return function(L){var L0=l(L[1][1+w],L);return l(Wx(L0,px,0),L0)}}(jx,hr)}else var Yx=v;Kq(x,i,Yx),e[1]++}}function Yq(x,r){var e=r.length-1,t=ZP(0,e),u=e-1|0,i=0;if(u>=0)for(var c=i;;){var v=$2(r,c)[1+c];if(typeof v=="number")switch(v){case 0:var _=function(j){function C(P){var O=t[1+j];if(C===O)throw U0([0,Pl,x],1);return l(O,P)}return C}(c);break;case 1:var a=[];m0(a,[Pk,function(j,C){return function(P){var O=t[1+C];if(j===O)throw U0([0,Pl,x],1);var F=Po(O);if(Mv===F)return O[1];if(Pk!==F)return O;var K=O[1];O[1]=gb0;try{var U=l(K,0);return GY(O,U),U}catch(Q){var V=O2(Q);throw O[1]=function($){throw U0(V,0)},U0(V,0)}}}(a,c)]);var _=a;break;default:var p=function(j){throw U0([0,Pl,x],1)},_=[0,p,p,p,0]}else var _=v[0]===0?Yq(x,v[1]):v[1];t[1+c]=_;var y=c+1|0;if(u===c)break;var c=y}return t}function zq(x,r,e){if(Po(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=e[1+i],v=$2(x,i)[1+i];x:if(typeof v=="number"){if(v===2){if(Po(c)===0&&c.length-1===4){for(var a=0,p=r[1+i];;){p[1+a]=c[1+a];var _=a+1|0;if(a===3)break;var a=_}break x}throw U0([0,Ar,FW],1)}r[1+i]=c}else v[0]===0&&zq(v[1],r[1+i],c);var y=i+1|0;if(t===i)break;var i=y}return}throw U0([0,Ar,LW],1)}try{YU("TMPDIR")}catch(x){var Vq=O2(x);if(Vq!==Fc)throw U0(Vq,0)}try{YU("TEMP")}catch(x){var Gq=O2(x);if(Gq!==Fc)throw U0(Gq,0)}I(ZU,AM)&&I(ZU,"Win32");function Mc(x,r){function e(t){return ut(x,t)}return el<=r?(e(po|r>>>18|0),e(y2|(r>>>12|0)&63),e(y2|(r>>>6|0)&63),e(y2|r&63)):mj<=r?(e(Tv|r>>>12|0),e(y2|(r>>>6|0)&63),e(y2|r&63)):y2<=r?(e(dv|r>>>6|0),e(y2|r&63)):e(r)}var ka=[x2,qW,Ts(0)],Wq=0,$q=0,Hq=0,Qq=0,Zq=0,xB=0,rB=0,eB=0,tB=0,nB=0;function h(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r}function z(x,r){x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r}function kr(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],z(x,-1)}function d(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]}function Zv(x){x[3]=x[6],x[4]=x[7],x[5]=x[8]}function BN(x,r){x[6]=r}function hh(x){return x[3]-x[6]|0}function i2(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?uY(t,e,r):B1(Az)}function uB(x){var r=x[6];return $2(x[1],r)[1+r]}function zl(x,r,e,t){for(var u=[0,r],i=[0,e],c=[0,0];;){if(0>=i[1])return c[1];var v=x[1+u[1]];if(0>v)throw U0(ka,1);if(Yr>>18|0),Vr(t,c[1]+1|0,y2|(v>>>12|0)&63),Vr(t,c[1]+2|0,y2|(v>>>6|0)&63),Vr(t,c[1]+3|0,y2|v&63),c[1]=c[1]+4|0}else Vr(t,c[1],Tv|v>>>12|0),Vr(t,c[1]+1|0,y2|(v>>>6|0)&63),Vr(t,c[1]+2|0,y2|v&63),c[1]=c[1]+3|0;else Vr(t,c[1],dv|v>>>6|0),Vr(t,c[1]+1|0,y2|v&63),c[1]=c[1]+2|0;else Vr(t,c[1],v),c[1]++;u[1]++,i[1]+=-1}}function iB(x){for(var r=Nx(x),e=Jv(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],nB,tB,eB,rB,xB,Zq,Qq,Hq,$q,Wq];var i=F0(x,t[1]);x:{if(dv<=i){if(po>i){if(Tv>i){var c=F0(x,t[1]+1|0);if((c>>>6|0)!==2)throw U0(ka,1);e[1+u[1]]=(i&31)<<6|c&63,t[1]=t[1]+2|0;break x}var v=F0(x,t[1]+1|0),a=F0(x,t[1]+2|0),p=(i&15)<<12|(v&63)<<6|a&63,_=(v>>>6|0)!==2?1:0,y=_||((a>>>6|0)!==2?1:0);if(y)var E=y;else var S=55296<=p?1:0,E=S&&(p<=57343?1:0);if(E)throw U0(ka,1);e[1+u[1]]=p,t[1]=t[1]+3|0;break x}if(x2>i){var j=F0(x,t[1]+1|0),C=F0(x,t[1]+2|0),P=F0(x,t[1]+3|0),O=(j>>>6|0)!==2?1:0;if(O)var K=O;else var F=(C>>>6|0)!==2?1:0,K=F||((P>>>6|0)!==2?1:0);if(K)throw U0(ka,1);var U=(i&7)<<18|(j&63)<<12|(C&63)<<6|P&63;if(d8i){e[1+u[1]]=i,t[1]++;break x}throw U0(ka,1)}u[1]++}}function Vl(x,r,e){var t=x[6]+r|0,u=T2(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return Vv(u,0,zl(i,t,e,u));throw U0([0,Ar,UW],1)}function Ox(x){var r=x[6],e=x[3]-r|0,t=T2(e*4|0);return Vv(t,0,zl(x[1],r,e,t))}function dh(x,r){var e=x[6],t=x[3]-e|0,u=T2(t*4|0);return kN(r,u,0,zl(x[1],e,t,u))}function Gl(x){var r=x.length-1,e=T2(r*4|0);return Vv(e,0,zl(x,0,r,e))}function fB(x,r){x[3]=x[3]-r|0}function Uc(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function Ro(x,r,e,t){var u=Uc(x),i=Uc(t),c=i<=u?u+1|0:i+1|0;return c===1?[0,r,e]:[1,c,r,e,x,t]}function yh(x,r,e,t){var u=Uc(x),i=Uc(t),c=i<=u?u+1|0:i+1|0;return[1,c,r,e,x,t]}function cB(x,r,e,t){var u=Uc(x),i=Uc(t);if((i+2|0)=i)return Ro(x,r,e,t);var C=t[5],P=t[4],O=t[3],F=t[2],K=Uc(P);if(K<=Uc(C))return yh(Ro(x,r,e,P),F,O,C);var U=P[4],V=P[3],Q=P[2],$=Ro(P[5],F,O,C);return yh(Ro(x,r,e,U),Q,V,$)}var Yb0=0;function ma(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function Ds(x,r,e){x:{r:{if(typeof x=="number"){if(typeof e=="number")return[0,r];if(e[0]===1)break r}else{if(x[0]!==0){var t=x[1];if(typeof e!="number"&&e[0]===1){var u=e[1],i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}var c=t;break x}if(typeof e!="number"&&e[0]===1)break r}return[1,2,r,x,e]}var c=e[1]}return[1,c+1|0,r,x,e]}function gh(x,r,e){var t=ma(x),u=ma(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}function sB(x,r,e){var t=ma(x),u=ma(e);if((u+2|0)=u)return Ds(x,r,e);var S=e[4],E=e[3],j=e[2],C=ma(E);if(C<=ma(S))return gh(Ds(x,r,E),j,S);var P=E[3],O=E[2],F=Ds(E[4],j,S);return gh(Ds(x,r,P),O,F)}var XN=0;function aB(x){function r(e,t){if(typeof t=="number")return[0,e];if(t[0]===0){var u=t[1],i=k(x[1],e,u);return i===0?t:0<=i?Ds(t,e,XN):Ds([0,e],u,XN)}var c=t[4],v=t[3],a=t[2],p=k(x[1],e,a);if(p===0)return t;if(0<=p){var _=r(e,c);return c===_?t:sB(v,a,_)}var y=r(e,v);return v===y?t:sB(y,a,c)}return[0,XN,,function(e,t){for(var u=t;;){if(typeof u=="number")return 0;if(u[0]===0)return k(x[1],e,u[1])===0?1:0;var i=u[4],c=u[3],v=k(x[1],e,u[2]),a=v===0?1:0;if(a)return a;var p=0<=v?i:c,u=p}},r]}function oB(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}}function Cx(x,r){if(!r)return r;var e=r[1],t=l(x,e);return e===t?r:[0,t]}function R0(x,r,e,t,u){var i=k(x,r,e);return e===i?t:u(i)}function I0(x,r,e,t){var u=l(x,r);return r===u?e:t(u)}function X2(x,r){var e=r[1],t=r[2];return R0(x,e,t,r,function(u){return[0,e,u]})}function vB(x,r){return Cx(function(e){var t=e[1],u=e[2];return R0(x,t,u,e,function(i){return[0,t,i]})},r)}function wr(x,r){var e=u1(function(u,i){var c=u[2],v=u[1],a=l(x,i),p=c||(a!==i?1:0);return[0,[0,a,v],p]},h$,r),t=e[1];return e[2]?vx(t):r}var JN=ph(y$,function(x){var r=DN(x,d$),e=r[1],t=r[2],u=r[3],i=r[4],c=r[5],v=r[6],a=r[7],p=r[8],_=r[9],y=r[10],S=r[11],E=r[12],j=r[13],C=r[14],P=r[15],O=r[16],F=r[17],K=r[18],U=r[19],V=r[20],Q=r[21],$=r[22],x0=r[23],e0=r[24],Z=r[25],c0=r[26],d0=r[27],n0=r[28],P0=r[29],h0=r[30],g0=r[31],v0=r[32],p0=r[33],w0=r[34],T0=r[35],E0=r[36],N0=r[37],X0=r[38],A0=r[39],rx=r[40],B=r[41],G0=r[42],W0=r[43],Y0=r[44],V0=r[45],ex=r[46],Q0=r[47],S0=r[48],q0=r[49],yx=r[50],cx=r[51],Dx=r[52],Ix=r[53],Xx=r[54],Z0=r[55],rr=r[56],xr=r[57],fr=r[59],Hx=r[60],Y=r[61],jx=r[62],hr=r[63],Yx=r[64],Ur=r[65],px=r[66],w=r[67],L=r[68],L0=r[69],sx=r[70],lx=r[71],ax=r[72],Vx=r[73],_x=r[74],zx=r[75],Lx=r[76],M0=r[77],qr=r[78],Ex=r[79],$0=r[80],Gx=r[81],j0=r[82],cr=r[83],tx=r[84],Mx=r[85],b2=r[86],Ux=r[87],c1=r[88],Rr=r[89],U2=r[90],g=r[91],G=r[92],H=r[93],l0=r[94],J=r[95],s0=r[96],_0=r[97],y0=r[98],J0=r[99],Rx=r[et],kx=r[yt],Jx=r[S1],gr=r[Ze],Zx=r[_t],er=r[gt],Fr=r[z2],hx=r[$f],z1=r[R7],Ks=r[Ni],un=r[j2],fn=r[zt],Go=r[ue],Wo=r[Dr],$o=r[ia],Na=r[Ov],Ho=r[ua],st=r[B3],Ys=r[kv],Oa=r[Ev],Ca=r[of],at=r[rl],Gc=r[r2],_r=r[Vt],Da=r[Cv],Ra=r[ms],Qo=r[Bp],Fa=r[Yr],zs=r[y2],La=r[dl],Vs=r[kl],ot=r[_4],K2=r[hl],Wc=r[$D],cn=r[CL],Gs=r[sU],Ma=r[UF],Ws=r[FR],Ua=r[U_],qa=r[gF],Ba=r[kM],vt=r[141],Xa=r[142],Ja=r[143],Zo=r[144],xv=r[145],y3=r[146],sn=r[147],rv=r[148],an=r[EL],Ka=r[ZF],O6=r[151],$s=r[152],C6=r[153],D6=r[154],Xd=r[155],Jd=r[156],Kd=r[157],R6=r[158],F6=r[159],L6=r[GF],g3=r[kT],Yd=r[JF],zd=r[DM],X=r[yF],A=r[vj],D=r[DF],u0=r[rM],k0=r[Ub],C0=r[v8],nx=r[Wp],Sx=r[My],Px=r[FF],qx=r[RL],lr=r[nU],tr=r[tR],br=r[Sb],pr=r[bR],ur=r[cI],Tr=r[UD],Br=r[zF],Or=r[NP],Wr=r[u9],Pr=r[lj],t2=r[tm],p2=r[eF],o2=r[P4],n2=r[iE],c2=r[gL],w2=r[Lw],k2=r[_R],v2=r[iL],q2=r[dv],s1=r[JR],O1=r[E9],xe=r[BR],sr=r[DL],Xr=r[lR],Cr=r[QM],Jr=r[lL],bx=r[IP],le=r[JD],pe=r[cM],Re=r[WM],b1=r[WR],$r=r[UM],re=r[Zb],x1=r[cU],C1=r[mM],w1=r[IR],lt=r[xU],Rt=r[m_],Fe=r[rL],D1=r[LD],Le=r[eM],ke=r[Rb],ee=r[HI],a1=r[FL],Me=r[qM],V1=r[iM],Ft=r[jL],Ue=r[$F],qe=r[GD],r1=r[ak],T1=r[Tv],Be=r[AL],$c=r[MF],Hc=r[rU],Qc=r[IL],me=r[_M],Xe=r[NF],Lt=r[fL],Je=r[aU],E1=r[bF],on=r[lU],vn=r[NM],Zc=r[KM],Ke=r[ML],Ye=r[aF],ln=r[Gk],pn=r[po],he=r[RD],kn=r[hM],Hs=r[KL],xs=r[OI],Qs=r[LF],Ya=r[Pk],za=r[xl],ev=r[x2],tv=r[ly],nv=r[Mv],Zs=r[_L],_3=r[go],b3=r[i8],rs=r[Pv],Va=r[m4],uv=r[gv],w3=r[257],es=r[vL],iv=r[v_],fv=r[GR],xa=r[261],T3=r[wF],E3=r[263],S3=r[264],mn=r[265],A3=r[266],I3=r[GM],hn=r[zM],ts=r[269],j3=r[270],P3=r[271],Ga=r[$L],Wa=r[273],$a=r[pL],cv=r[275],Mt=r[276],de=r[277],te=r[lM],pt=r[279],ra=r[280],N3=r[ay],ea=r[282],ns=r[yL],ye=r[YF],sv=r[285],O3=r[286],Vd=r[287],Gd=r[JM],Wd=r[289],$d=r[kR],M6=r[jR],RC=r[58];function FC(n,s,f){var o=f[2],m=f[1],b=f[4],T=f[3],N=Cx(l(n[1][1+bx],n),m),q=k(n[1][1+B],n,o);return o===q&&m===N?f:[0,N,q,T,b]}function LC(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+pt],n,T),q=Cx(l(n[1][1+F],n),b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+B],n,o);return T===N&&m===i0&&b===q&&o===o0?f:[0,N,q,i0,o0]}function MC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function UC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+Hx],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function qC(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+v],n,s,b),q=Cx(l(n[1][1+bx],n),m);return b===N&&m===q?f:[0,T,[0,N,q]]}function Hd(n,s,f){var o=f[3],m=f[2],b=f[1],T=wr(k(n[1][1+a],n,m),b),N=k(n[1][1+B],n,o);return b===T&&o===N?f:[0,T,m,N]}function Qd(n,s,f){var o=f[4],m=f[2],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],b,f[3],T]}function BC(n,s,f){var o=f[3],m=f[2],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],b,T]}function XC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&Xv(N,m)&&q===o?f:[0,T,N,q]}function JC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function KC(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=X2(l(n[1][1+te],n),T);if(b)var q=b[1],i0=q[1],o0=q[2],O0=function(d2){return[0,[0,i0,d2]]},K0=R0(l(n[1][1+j3],n),i0,o0,b,O0);else var K0=b;if(m)var Ax=m[1],ux=Ax[1],Kr=Ax[2],m2=function(d2){return[0,[0,ux,d2]]},s2=R0(l(n[1][1+te],n),ux,Kr,m,m2);else var s2=m;var h2=k(n[1][1+B],n,o);return T===N&&b===K0&&m===s2&&o===h2?f:[0,N,K0,s2,h2]}function C3(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function Zd(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function YC(n,s){return s}function zC(n,s,f){var o=f[3],m=f[2],b=f[1],T=wr(l(n[1][1+X0],n),b),N=wr(l(n[1][1+bx],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function VC(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=X2(l(n[1][1+A0],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function x5(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=Cx(l(n[1][1+bx],n),b),q=k(n[1][1+Q0],n,m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function r5(n,s,f){var o=f[3],m=f[2],b=f[1],T=f[4],N=k(n[1][1+bx],n,b),q=wr(l(n[1][1+W0],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?f:[0,N,q,i0,T]}function GC(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function av(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function e5(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function t5(n,s){return[0,k(n[1][1+q0],n,s),0]}function WC(n,s){var f=l(n[1][1+S0],n),o=u1(function(b,T){var N=b[2],q=b[1],i0=l(f,T);if(!i0)return[0,q,1];if(i0[2])return[0,zv(i0,q),1];var o0=i0[1],O0=N||(T!==o0?1:0);return[0,[0,o0,q],O0]},m$,s),m=o[1];return o[2]?vx(m):s}function $C(n,s){return k(n[1][1+Q0],n,s)}function HC(n,s,f){var o=f[2],m=f[1],b=wr(l(n[1][1+bx],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function U6(n,s,f){var o=f[2],m=f[1],b=f[3],T=Cx(l(n[1][1+bx],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?f:[0,T,N,b]}function QC(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ur],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function n5(n,s){var f=s[2],o=f[3],m=f[2],b=m[2],T=m[1],N=f[1],q=s[1],i0=k(n[1][1+A],n,T),o0=Cx(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return i0===T&&o0===b&&O0===o?s:[0,q,[0,N,[0,i0,o0],O0]]}function ZC(n,s){var f=s[2],o=s[1],m=k(n[1][1+$],n,f);return Xv(m,f)?s:[0,o,m]}function u5(n,s){return k(n[1][1+bx],n,s)}function q6(n,s){var f=s[2],o=f[2],m=f[1],b=s[1];if(m)var T=m[1],N=function(o0){return[0,o0]},q=I0(l(n[1][1+bx],n),T,m,N);else var q=m;var i0=k(n[1][1+B],n,o);return m===q&&o===i0?s:[0,b,[0,q,i0]]}function i5(n,s){return k(n[1][1+bx],n,s)}function xD(n,s,f){return B0(n[1][1+cr],n,s,f)}function f5(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+qr],n,s,b),q=k(n[1][1+B],n,m);return N===b&&m===q?f:[0,T,[0,N,q]]}function B6(n,s,f){return B0(n[1][1+cr],n,s,f)}function rD(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+$0],n,s,b),q=k(n[1][1+r1],n,m);return b===N&&m===q?f:[0,T,[0,N,q]]}function X6(n,s,f){switch(f[0]){case 0:var o=f[1],m=function(N){return[0,N]};return I0(k(n[1][1+Gx],n,s),o,f,m);case 1:var b=f[1],T=function(N){return[1,N]};return I0(k(n[1][1+Ex],n,s),b,f,T);default:return f}}function eD(n,s,f){return B0(n[1][1+cr],n,s,f)}function tD(n,s,f){return B0(n[1][1+cr],n,s,f)}function nD(n,s,f){var o=f[2],m=o[2],b=o[1],T=f[1],N=B0(n[1][1+hr],n,s,b),q=k(n[1][1+B],n,m);return N===b&&m===q?f:[0,T,[0,N,q]]}function c5(n,s,f){return k(n[1][1+pn],n,f)}function uD(n,s,f){return B0(n[1][1+zx],n,s,f)}function J6(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+M0],n,s),o,m,f,b)}function iD(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+_x],n,s),o,m,f,b)}function fD(n,s,f){var o=f[1],m=f[2];function b(T){return[0,o,T]}return R0(k(n[1][1+jx],n,s),o,m,f,b)}function cD(n,s,f){switch(f[0]){case 0:var o=f[1],m=function(Ax){return[0,Ax]};return I0(k(n[1][1+Ur],n,s),o,f,m);case 1:var b=f[1],T=function(Ax){return[1,Ax]};return I0(k(n[1][1+w],n,s),b,f,T);case 2:var N=f[1],q=function(Ax){return[2,Ax]};return I0(k(n[1][1+lx],n,s),N,f,q);case 3:var i0=f[1],o0=function(Ax){return[3,Ax]};return I0(k(n[1][1+L0],n,s),i0,f,o0);default:var O0=f[1],K0=function(Ax){return[4,Ax]};return I0(k(n[1][1+sx],n,s),O0,f,K0)}}function s5(n,s,f){var o=f[2],m=o[4],b=o[3],T=o[2],N=o[1],q=f[1],i0=B0(n[1][1+L],n,s,N),o0=B0(n[1][1+px],n,s,T),O0=k(n[1][1+r1],n,b);x:if(m){if(i0[0]===3){var K0=o0[2];if(K0[0]===2){var ux=Sr(i0[1][2][1],K0[1][1][2][1]);break x}}var Ax=N===i0?1:0,ux=Ax&&(T===o0?1:0)}else var ux=m;return i0===N&&o0===T&&O0===b&&m===ux?f:[0,q,[0,i0,o0,O0,ux]]}function sD(n,s,f){if(f[0]===0){var o=f[1],m=function(N){return[0,N]};return I0(k(n[1][1+ax],n,s),o,f,m)}var b=f[1];function T(N){return[1,N]}return I0(k(n[1][1+Yx],n,s),b,f,T)}function D3(n,s,f,o){return B0(n[1][1+ea],n,f,o)}function aD(n,s,f,o){return B0(n[1][1+hx],n,f,o)}function oD(n,s,f,o){return B0(n[1][1+ex],n,f,o)}function vD(n,s,f){return k(n[1][1+A],n,f)}function lD(n,s,f){var o=f[2],m=f[1];switch(o[0]){case 0:var b=o[1],T=b[3],N=b[2],q=b[1],i0=wr(k(n[1][1+Vx],n,s),q),o0=k(n[1][1+Z],n,N),O0=k(n[1][1+B],n,T);x:{if(i0===q&&o0===N&&O0===T){var K0=o;break x}var K0=[0,[0,i0,o0,O0]]}var He=K0;break;case 1:var Ax=o[1],ux=Ax[3],Kr=Ax[2],m2=Ax[1],s2=wr(k(n[1][1+j0],n,s),m2),h2=k(n[1][1+Z],n,Kr),d2=k(n[1][1+B],n,ux);x:{if(ux===d2&&s2===m2&&h2===Kr){var o1=o;break x}var o1=[1,[0,s2,h2,d2]]}var He=o1;break;case 2:var ge=o[1],ze=ge[2],Ve=ge[1],kt=ge[3],Ge=B0(n[1][1+zx],n,s,Ve),We=k(n[1][1+Z],n,ze);x:{if(Ve===Ge&&ze===We){var $e=o;break x}var $e=[2,[0,Ge,We,kt]]}var He=$e;break;default:var us=o[1],is=function(fs){return[3,fs]},He=I0(l(n[1][1+Lx],n),us,o,is)}return o===He?f:[0,m,He]}function pD(n,s){return B0(n[1][1+cr],n,0,s)}function K6(n,s,f){var o=s?s[1]:0;return B0(n[1][1+cr],n,[0,o],f)}function kD(n,s){return k(n[1][1+ns],n,s)}function mD(n,s){return k(n[1][1+ns],n,s)}function hD(n,s){return B0(n[1][1+ra],n,k$,s)}function Y6(n,s,f){return B0(n[1][1+ra],n,[0,s],f)}function dD(n,s){return B0(n[1][1+ra],n,p$,s)}function yD(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+pt],n,N),i0=Cx(l(n[1][1+F],n),T),o0=Cx(l(n[1][1+n0],n),b),O0=Cx(l(n[1][1+n0],n),m),K0=k(n[1][1+B],n,o);return N===q&&b===o0&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function gD(n,s){return k(n[1][1+pn],n,s)}function z6(n,s){return k(n[1][1+A],n,s)}function V6(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+ea],n),f,o,s,m)}function R3(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+hx],n),f,o,s,m)}function F3(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+ex],n),f,o,s,m)}function a5(n,s){switch(s[0]){case 0:var f=s[1],o=function(ux){return[0,ux]};return I0(l(n[1][1+_0],n),f,s,o);case 1:var m=s[1],b=function(ux){return[1,ux]};return I0(l(n[1][1+y0],n),m,s,b);case 2:var T=s[1],N=function(ux){return[2,ux]};return I0(l(n[1][1+kx],n),T,s,N);case 3:var q=s[1],i0=function(ux){return[3,ux]};return I0(l(n[1][1+J0],n),q,s,i0);case 4:var o0=s[1],O0=function(ux){return[4,ux]};return I0(l(n[1][1+fr],n),o0,s,O0);default:var K0=s[1],Ax=function(ux){return[5,ux]};return I0(l(n[1][1+Rx],n),K0,s,Ax)}}function _D(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[3],b=f[2],T=f[1],N=k(n[1][1+Jx],n,T),q=k(n[1][1+bx],n,b);x:if(m){if(N[0]===3){var i0=q[2];if(i0[0]===10){var O0=Sr(N[1][2][1],i0[1][2][1]);break x}}var o0=T===N?1:0,O0=o0&&(b===q?1:0)}else var O0=m;return T===N&&b===q&&m===O0?s:[0,o,[0,N,q,O0]];case 1:var K0=f[2],Ax=f[1],ux=k(n[1][1+Jx],n,Ax),Kr=X2(l(n[1][1+Or],n),K0);return Ax===ux&&K0===Kr?s:[0,o,[1,ux,Kr]];case 2:var m2=f[3],s2=f[2],h2=f[1],d2=k(n[1][1+Jx],n,h2),o1=X2(l(n[1][1+Or],n),s2),ge=k(n[1][1+B],n,m2);return h2===d2&&s2===o1&&m2===ge?s:[0,o,[2,d2,o1,ge]];default:var ze=f[3],Ve=f[2],kt=f[1],Ge=k(n[1][1+Jx],n,kt),We=X2(l(n[1][1+Or],n),Ve),$e=k(n[1][1+B],n,ze);return kt===Ge&&Ve===We&&ze===$e?s:[0,o,[3,Ge,We,$e]]}}function bD(n,s,f){var o=f[2],m=f[1],b=wr(function(N){if(N[0]===0){var q=N[1],i0=k(n[1][1+J],n,q);return q===i0?N:[0,i0]}var o0=N[1],O0=k(n[1][1+yx],n,o0);return o0===O0?N:[1,O0]},m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function wD(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+bx],n,T),q=Cx(l(n[1][1+Ga],n),b),i0=Cx(l(n[1][1+M6],n),m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function o5(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+A],n,b),N=k(n[1][1+A],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function v5(n,s){return k(n[1][1+bx],n,s)}function TD(n,s){return k(n[1][1+fr],n,s)}function DT0(n,s){return k(n[1][1+A],n,s)}function RT0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+$o],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+st],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+Na],n),T,s,N)}}function FT0(n,s,f){var o=f[1],m=B0(n[1][1+Ys],n,s,o);return o===m?f:[0,m,f[2],f[3]]}function LT0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+Ho],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function MT0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+bx],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function UT0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+at],n,b),N=k(n[1][1+q0],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function qT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function BT0(n,s){return k(n[1][1+Ma],n,s)}function XT0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+La],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+Vs],n),m,s,b)}function JT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+zs],n,m),N=k(n[1][1+ot],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function KT0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ot],n,m),N=k(n[1][1+ot],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function YT0(n,s){return k(n[1][1+Vs],n,s)}function zT0(n,s){return k(n[1][1+Fa],n,s)}function VT0(n,s){return k(n[1][1+ot],n,s)}function GT0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+Ma],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+cn],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+Gs],n),T,s,N)}}function WT0(n,s){var f=s[2],o=s[1],m=k(n[1][1+bx],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function $T0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+B],n,o);if(!m)return o===b?f:[0,0,b];var T=m[1],N=k(n[1][1+bx],n,T);return T===N&&o===b?f:[0,[0,N],b]}function HT0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(K0){return[0,o,[0,K0]]};return R0(l(n[1][1+Ua],n),o,m,s,b);case 1:var T=f[1],N=function(K0){return[0,o,[1,K0]]};return R0(l(n[1][1+K2],n),o,T,s,N);case 2:var q=f[1],i0=function(K0){return[0,o,[2,K0]]};return R0(l(n[1][1+Wc],n),o,q,s,i0);case 3:var o0=f[1],O0=function(K0){return[0,o,[3,K0]]};return I0(l(n[1][1+_r],n),o0,s,O0);default:return s}}function QT0(n,s){var f=s[2],o=s[1],m=wr(l(n[1][1+vt],n),f);return f===m?s:[0,o,m]}function ZT0(n,s,f){return B0(n[1][1+ex],n,s,f)}function xE0(n,s,f){return B0(n[1][1+Wc],n,s,f)}function rE0(n,s){if(s[0]===0){var f=s[1],o=f[1],m=f[2],b=function(o0){return[0,[0,o,o0]]};return R0(l(n[1][1+Xa],n),o,m,s,b)}var T=s[1],N=T[1],q=T[2];function i0(o0){return[1,[0,N,o0]]}return R0(l(n[1][1+Ja],n),N,q,s,i0)}function eE0(n,s){return k(n[1][1+Fa],n,s)}function tE0(n,s){return k(n[1][1+ot],n,s)}function nE0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+y3],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+xv],n),m,s,b)}function uE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+sn],n,m),N=Cx(l(n[1][1+Zo],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function iE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function fE0(n,s){if(s[0]===0){var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+rv],n),f,s,o)}var m=s[1],b=m[1],T=m[2];function N(q){return[1,[0,b,q]]}return R0(l(n[1][1+Da],n),b,T,s,N)}function cE0(n,s){var f=s[2][1],o=s[1],m=k(n[1][1+Ws],n,f);return f===m?s:[0,o,[0,m]]}function sE0(n,s){var f=s[2],o=f[4],m=f[2],b=f[1],T=f[3],N=s[1],q=k(n[1][1+Ws],n,b),i0=Cx(l(n[1][1+Ga],n),m),o0=wr(l(n[1][1+Qo],n),o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,T,o0]]}function aE0(n,s,f){var o=f[4],m=f[3],b=k(n[1][1+Ba],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,f[1],f[2],b,T]}function oE0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Ra],n,T),q=Cx(l(n[1][1+qa],n),b),i0=k(n[1][1+Ba],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function vE0(n,s,f,o){var m=2<=s?k(n[1][1+zx],n,l$):l(n[1][1+pt],n);return l(m,o)}function lE0(n,s,f){var o=2<=s?k(n[1][1+zx],n,v$):l(n[1][1+pt],n);return l(o,f)}function pE0(n,s,f){var o=f[3],m=f[2],b=f[1];x:{r:{var T=f[4];if(s){e:{if(b)switch(b[1]){case 0:break r;case 1:break e}if(2<=s){var N=0,q=0;break x}}var N=1,q=0;break x}}var N=1,q=1}var i0=m?k(n[1][1+Z0],n,o):q?k(n[1][1+pt],n,o):B0(n[1][1+zx],n,a$,o);if(m)var o0=m[1],O0=N?l(n[1][1+pt],n):k(n[1][1+zx],n,o$),K0=I0(O0,o0,m,function(Ax){return[0,Ax]});else var K0=0;return m===K0&&o===i0?f:[0,b,K0,i0,T]}function kE0(n,s){return k(n[1][1+A],n,s)}function mE0(n,s,f){if(f[0]===0){var o=f[1],m=wr(k(n[1][1+R6],n,s),o);return o===m?f:[0,m]}var b=f[1],T=b[1],N=b[2];function q(i0){return[1,[0,T,i0]]}return R0(k(n[1][1+Kd],n,s),T,N,f,q)}function hE0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function dE0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=X2(l(n[1][1+Jd],n),T),i0=Cx(k(n[1][1+Xd],n,N),m),o0=Cx(function(K0){var Ax=K0[1],ux=K0[2],Kr=B0(n[1][1+F6],n,N,Ax);return Kr===Ax?K0:[0,Kr,ux]},b),O0=k(n[1][1+B],n,o);return T===q&&m===i0&&b===o0&&o===O0?f:[0,N,q,o0,i0,O0]}function yE0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Hx],n,T),q=B0(n[1][1+zd],n,m!==0?1:0,b),i0=l(n[1][1+X],n),o0=Cx(function(K0){return X2(i0,K0)},m),O0=k(n[1][1+B],n,o);return T===N&&b===q&&m===o0&&o===O0?f:[0,N,q,o0,O0]}function gE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+q0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function _E0(n,s,f){return k(n[1][1+q0],n,f)}function bE0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function wE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function TE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function EE0(n,s,f){return B0(n[1][1+$s],n,s,f)}function SE0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+pt],n,N),i0=Cx(l(n[1][1+F],n),T),o0=l(n[1][1+D],n),O0=wr(function(ux){return X2(o0,ux)},b),K0=X2(l(n[1][1+g],n),m),Ax=k(n[1][1+B],n,o);return q===N&&i0===T&&O0===b&&K0===m&&Ax===o?f:[0,q,i0,O0,K0,Ax]}function AE0(n,s){return k(n[1][1+V],n,s)}function IE0(n,s){return k(n[1][1+V],n,s)}function jE0(n,s){return k(n[1][1+A],n,s)}function PE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function NE0(n,s){return B0(n[1][1+zx],n,s$,s)}function OE0(n,s){return k(n[1][1+bx],n,s)}function CE0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+te],n),f,o,s,m)}function DE0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+p2],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+de],n),m,s,b)}function RE0(n,s){switch(s[0]){case 0:return s;case 1:var f=s[1],o=function(T){return[1,T]};return I0(l(n[1][1+c0],n),f,s,o);default:var m=s[1],b=function(T){return[2,T]};return I0(l(n[1][1+Q],n),m,s,b)}}function FE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ur],n,m),N=k(n[1][1+r1],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function LE0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+c0],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function ME0(n,s){var f=s[2],o=f[4],m=f[3],b=f[2],T=f[1],N=s[1],q=wr(l(n[1][1+Tr],n),b),i0=Cx(l(n[1][1+tr],n),m),o0=Cx(l(n[1][1+Px],n),T),O0=k(n[1][1+B],n,o);return b===q&&m===i0&&o===O0&&T===o0?s:[0,N,[0,o0,q,i0,O0]]}function UE0(n,s,f){var o=f[10],m=f[9],b=f[8],T=f[7],N=f[3],q=f[2],i0=f[1],o0=f[11],O0=f[6],K0=f[5],Ax=f[4],ux=Cx(l(n[1][1+Br],n),i0),Kr=Cx(l(n[1][1+F],n),m),m2=k(n[1][1+br],n,q),s2=k(n[1][1+qx],n,b),h2=k(n[1][1+t2],n,N),d2=Cx(l(n[1][1+Y],n),T),o1=k(n[1][1+B],n,o);return i0===ux&&q===m2&&N===h2&&T===d2&&b===s2&&m===Kr&&o===o1?f:[0,ux,m2,h2,Ax,K0,O0,d2,s2,Kr,o1,o0]}function qE0(n,s,f){return B0(n[1][1+o2],n,s,f)}function BE0(n,s,f){return B0(n[1][1+Or],n,s,f)}function XE0(n,s,f){return B0(n[1][1+o2],n,s,f)}function JE0(n,s){if(s[0]===0)return s;var f=s[2],o=s[1],m=k(n[1][1+Xx],n,f);return m===f?s:[1,o,m]}function KE0(n,s){if(s[0]===0)return s;var f=s[1];function o(m){return[1,m]}return I0(l(n[1][1+c0],n),f,s,o)}function YE0(n,s){var f=s[2],o=s[1];function m(b){return[0,o,b]}return I0(l(n[1][1+n0],n),f,s,m)}function zE0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(wx){return[0,o,[0,wx]]};return I0(l(n[1][1+B],n),m,s,b);case 1:var T=f[1],N=function(wx){return[0,o,[1,wx]]};return I0(l(n[1][1+B],n),T,s,N);case 2:var q=f[1],i0=function(wx){return[0,o,[2,wx]]};return I0(l(n[1][1+B],n),q,s,i0);case 3:var o0=f[1],O0=function(wx){return[0,o,[3,wx]]};return I0(l(n[1][1+B],n),o0,s,O0);case 4:var K0=f[1],Ax=function(wx){return[0,o,[4,wx]]};return I0(l(n[1][1+B],n),K0,s,Ax);case 5:var ux=f[1],Kr=function(wx){return[0,o,[5,wx]]};return I0(l(n[1][1+B],n),ux,s,Kr);case 6:var m2=f[1],s2=function(wx){return[0,o,[6,wx]]};return I0(l(n[1][1+B],n),m2,s,s2);case 7:var h2=f[1],d2=function(wx){return[0,o,[7,wx]]};return I0(l(n[1][1+B],n),h2,s,d2);case 8:var o1=f[2],ge=f[1],ze=function(wx){return[0,o,[8,ge,wx]]};return I0(l(n[1][1+B],n),o1,s,ze);case 9:var Ve=f[1],kt=function(wx){return[0,o,[9,wx]]};return I0(l(n[1][1+B],n),Ve,s,kt);case 10:var Ge=f[1],We=function(wx){return[0,o,[10,wx]]};return I0(l(n[1][1+B],n),Ge,s,We);case 11:var $e=f[1],us=function(wx){return[0,o,[11,wx]]};return I0(l(n[1][1+z1],n),$e,s,us);case 12:var is=f[1],He=function(wx){return[0,o,[12,wx]]};return R0(l(n[1][1+nx],n),o,is,s,He);case 13:var fs=f[1],Ha=function(wx){return[0,o,[13,wx]]};return R0(l(n[1][1+xs],n),o,fs,s,Ha);case 14:var Qa=f[1],Za=function(wx){return[0,o,[14,wx]]};return R0(l(n[1][1+g],n),o,Qa,s,Za);case 15:var xo=f[1],G6=function(wx){return[0,o,[15,wx]]};return R0(l(n[1][1+Ka],n),o,xo,s,G6);case 16:var W6=f[1],$6=function(wx){return[0,o,[16,wx]]};return I0(l(n[1][1+Gd],n),W6,s,$6);case 17:var H6=f[1],Q6=function(wx){return[0,o,[17,wx]]};return I0(l(n[1][1+Ye],n),H6,s,Q6);case 18:var Z6=f[1],xp=function(wx){return[0,o,[18,wx]]};return I0(l(n[1][1+C6],n),Z6,s,xp);case 19:var rp=f[1],ep=function(wx){return[0,o,[19,wx]]};return R0(l(n[1][1+D],n),o,rp,s,ep);case 20:var tp=f[1],np=function(wx){return[0,o,[20,wx]]};return R0(l(n[1][1+D6],n),o,tp,s,np);case 21:var up=f[1],ip=function(wx){return[0,o,[21,wx]]};return R0(l(n[1][1+Mx],n),o,up,s,ip);case 22:var fp=f[1],cp=function(wx){return[0,o,[22,wx]]};return R0(l(n[1][1+y],n),o,fp,s,cp);case 23:var sp=f[1],ap=function(wx){return[0,o,[23,wx]]};return R0(l(n[1][1+an],n),o,sp,s,ap);case 24:var op=f[1],vp=function(wx){return[0,o,[24,wx]]};return I0(l(n[1][1+E],n),op,s,vp);case 25:var lp=f[1],pp=function(wx){return[0,o,[25,wx]]};return I0(l(n[1][1+Gc],n),lp,s,pp);case 26:var kp=f[1],mp=function(wx){return[0,o,[26,wx]]};return I0(l(n[1][1+Xx],n),kp,s,mp);case 27:var hp=f[1],dp=function(wx){return[0,o,[27,wx]]};return I0(l(n[1][1+xr],n),hp,s,dp);case 28:var yp=f[1],gp=function(wx){return[0,o,[28,wx]]};return I0(l(n[1][1+P0],n),yp,s,gp);case 29:var _p=f[1],bp=function(wx){return[0,o,[29,wx]]};return R0(l(n[1][1+ex],n),o,_p,s,bp);case 30:var wp=f[1],Tp=function(wx){return[0,o,[30,wx]]};return R0(l(n[1][1+hx],n),o,wp,s,Tp);case 31:var Ep=f[1],Sp=function(wx){return[0,o,[31,wx]]};return R0(l(n[1][1+ea],n),o,Ep,s,Sp);case 32:var Ap=f[1],Ip=function(wx){return[0,o,[32,wx]]};return R0(l(n[1][1+Mt],n),o,Ap,s,Ip);case 33:var jp=f[1],Pp=function(wx){return[0,o,[33,wx]]};return I0(l(n[1][1+B],n),jp,s,Pp);case 34:var Np=f[1],Op=function(wx){return[0,o,[34,wx]]};return I0(l(n[1][1+B],n),Np,s,Op);default:var Cp=f[1],Dp=function(wx){return[0,o,[35,wx]]};return I0(l(n[1][1+B],n),Cp,s,Dp)}}function VE0(n,s,f){var o=f[2],m=f[1],b=m[3],T=m[2],N=m[1],q=k(n[1][1+n0],n,N),i0=k(n[1][1+n0],n,T),o0=wr(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return q===N&&i0===T&&o0===b&&O0===o?f:[0,[0,q,i0,o0],O0]}function GE0(n,s,f){var o=f[2],m=f[1],b=m[3],T=m[2],N=m[1],q=k(n[1][1+n0],n,N),i0=k(n[1][1+n0],n,T),o0=wr(l(n[1][1+n0],n),b),O0=k(n[1][1+B],n,o);return q===N&&i0===T&&o0===b&&O0===o?f:[0,[0,q,i0,o0],O0]}function WE0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function $E0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,f);return m===f?s:[0,o,m]}function HE0(n,s){var f=s[3],o=s[2],m=s[4],b=s[1],T=k(n[1][1+n0],n,o),N=k(n[1][1+i],n,f);return T===o&&N===f?s:[0,b,T,N,m]}function QE0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(o0){return[0,o,[0,o0]]};return I0(l(n[1][1+n0],n),m,s,b);case 1:var T=f[1],N=function(o0){return[0,o,[1,o0]]};return I0(l(n[1][1+g0],n),T,s,N);default:var q=f[1],i0=function(o0){return[0,o,[2,o0]]};return I0(l(n[1][1+h0],n),q,s,i0)}}function ZE0(n,s){var f=s[3],o=s[1],m=s[2],b=wr(l(n[1][1+v0],n),o),T=k(n[1][1+B],n,f);return o===b&&f===T?s:[0,b,m,T]}function xS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function rS0(n,s){var f=s[3],o=s[2],m=s[4],b=s[1],T=k(n[1][1+n0],n,o),N=k(n[1][1+B],n,f);return o===T&&f===N?s:[0,b,T,N,m]}function eS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function tS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+O],n,m),N=k(n[1][1+C],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function nS0(n,s){return k(n[1][1+A],n,s)}function uS0(n,s){return k(n[1][1+A],n,s)}function iS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+P],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+j],n),m,s,b)}function fS0(n,s){var f=s[3],o=s[2],m=s[1],b=k(n[1][1+O],n,m),T=Cx(l(n[1][1+e0],n),o),N=k(n[1][1+B],n,f);return m===b&&Xv(o,T)&&f===N?s:[0,b,T,N]}function cS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+K],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function sS0(n,s){var f=s[5],o=s[4],m=s[3],b=s[2],T=s[1],N=k(n[1][1+n0],n,T),q=k(n[1][1+n0],n,b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+n0],n,o),O0=k(n[1][1+B],n,f);return T===N&&b===q&&m===i0&&o===o0&&f===O0?s:[0,N,q,i0,o0,O0]}function aS0(n,s){var f=s[2],o=s[1],m=k(n[1][1+n0],n,o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,b]}function oS0(n,s,f){var o=f[6],m=f[5],b=f[4],T=f[3],N=f[2],q=f[1];return o===k(n[1][1+B],n,o)?f:[0,q,N,T,b,m,o]}function vS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+B],n,o);return o===N?f:[0,T,b,m,N]}function lS0(n,s,f){return k(n[1][1+B],n,f)}function pS0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+B],n,o);return o===b?f:[0,m,b]}function kS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function mS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function hS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function dS0(n,s,f){var o=f[1],m=f[2],b=B0(n[1][1+D6],n,s,o);return b===o?f:[0,b,m]}function yS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+n0],n,b),N=k(n[1][1+n0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function gS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+k0],n,b),N=Cx(l(n[1][1+e0],n),m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function _S0(n,s){var f=s[2],o=f[5],m=f[4],b=f[2],T=f[1],N=f[3],q=s[1],i0=k(n[1][1+Z],n,b),o0=k(n[1][1+i],n,m),O0=Cx(l(n[1][1+n0],n),o),K0=k(n[1][1+pt],n,T);return K0===T&&i0===b&&o0===m&&O0===o?s:[0,q,[0,K0,i0,N,o0,O0]]}function bS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+K],n),m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function wS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+n0],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function TS0(n,s){return Cx(l(n[1][1+c],n),s)}function ES0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+B],n,o);return o===T?s:[0,b,[0,m,T]]}function SS0(n,s){return k(n[1][1+A],n,s)}function AS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+k0],n,m),N=k(n[1][1+Wo],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function IS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+U],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+u0],n),m,s,b)}function jS0(n,s,f){var o=f[3],m=f[2],b=f[1],T=l(n[1][1+D],n),N=wr(function(o0){return X2(T,o0)},m),q=X2(l(n[1][1+g],n),b),i0=k(n[1][1+B],n,o);return N===m&&q===b&&o===i0?f:[0,q,N,i0]}function PS0(n,s){switch(s[0]){case 0:var f=s[1],o=function(ux){return[0,ux]};return I0(l(n[1][1+l0],n),f,s,o);case 1:var m=s[1],b=function(ux){return[1,ux]};return I0(l(n[1][1+G],n),m,s,b);case 2:var T=s[1],N=function(ux){return[2,ux]};return I0(l(n[1][1+Zx],n),T,s,N);case 3:var q=s[1],i0=function(ux){return[3,ux]};return I0(l(n[1][1+er],n),q,s,i0);case 4:var o0=s[1],O0=function(ux){return[4,ux]};return I0(l(n[1][1+gr],n),o0,s,O0);default:var K0=s[1],Ax=function(ux){return[5,ux]};return I0(l(n[1][1+s0],n),K0,s,Ax)}}function NS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=wr(l(n[1][1+U2],n),m),q=k(n[1][1+B],n,o);return N===m&&o===q?f:[0,T,b,N,q]}function OS0(n,s){var f=s[2],o=f[6],m=f[4],b=f[3],T=f[2],N=f[1],q=f[5],i0=s[1],o0=k(n[1][1+K],n,N),O0=k(n[1][1+n0],n,T),K0=k(n[1][1+n0],n,b),Ax=k(n[1][1+i],n,m),ux=k(n[1][1+B],n,o);return o0===N&&O0===T&&K0===b&&Ax===m&&ux===o?s:[0,i0,[0,o0,O0,K0,Ax,q,ux]]}function CS0(n,s){var f=s[2],o=f[3],m=f[1],b=m[2],T=m[1],N=f[2],q=s[1],i0=B0(n[1][1+nx],n,T,b),o0=k(n[1][1+B],n,o);return b===i0&&o===o0?s:[0,q,[0,[0,T,i0],N,o0]]}function DS0(n,s){var f=s[2],o=f[6],m=f[2],b=f[1],T=f[5],N=f[4],q=f[3],i0=s[1],o0=k(n[1][1+A],n,b),O0=k(n[1][1+n0],n,m),K0=k(n[1][1+B],n,o);return b===o0&&m===O0&&o===K0?s:[0,i0,[0,o0,O0,q,N,T,K0]]}function RS0(n,s){var f=s[2],o=f[6],m=f[5],b=f[3],T=f[2],N=f[4],q=f[1],i0=s[1],o0=k(n[1][1+n0],n,T),O0=k(n[1][1+n0],n,b),K0=k(n[1][1+i],n,m),Ax=k(n[1][1+B],n,o);return o0===T&&O0===b&&K0===m&&Ax===o?s:[0,i0,[0,q,o0,O0,N,K0,Ax]]}function FS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+n0],n,m),N=k(n[1][1+B],n,o);return T===m&&o===N?s:[0,b,[0,T,N]]}function LS0(n,s){var f=s[2],o=f[8],m=f[7],b=f[2],T=f[1],N=f[6],q=f[5],i0=f[4],o0=f[3],O0=s[1],K0=k(n[1][1+Jx],n,T),Ax=k(n[1][1+H],n,b),ux=k(n[1][1+i],n,m),Kr=k(n[1][1+B],n,o);return K0===T&&Ax===b&&ux===m&&Kr===o?s:[0,O0,[0,K0,Ax,o0,i0,q,N,ux,Kr]]}function MS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+nx],n),f,o,s,m)}function US0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+nx],n),f,o,s,m)}function qS0(n,s){switch(s[0]){case 0:var f=s[1],o=function(q){return[0,q]};return I0(l(n[1][1+n0],n),f,s,o);case 1:var m=s[1],b=function(q){return[1,q]};return I0(l(n[1][1+Rr],n),m,s,b);default:var T=s[1],N=function(q){return[2,q]};return I0(l(n[1][1+c1],n),T,s,N)}}function BS0(n,s){return k(n[1][1+A],n,s)}function XS0(n,s,f){var o=f[4],m=f[3],b=f[2],T=b[2],N=T[4],q=T[3],i0=T[2],o0=T[1],O0=f[1],K0=f[5],Ax=b[1],ux=Cx(l(n[1][1+F],n),O0),Kr=Cx(l(n[1][1+Sx],n),o0),m2=wr(l(n[1][1+pr],n),i0),s2=Cx(l(n[1][1+lr],n),q),h2=k(n[1][1+C0],n,m),d2=k(n[1][1+B],n,o),o1=k(n[1][1+B],n,N);return m2===i0&&s2===q&&h2===m&&ux===O0&&d2===o&&o1===N&&Kr===o0?f:[0,ux,[0,Ax,[0,Kr,m2,s2,o1]],h2,d2,K0]}function JS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+n0],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+$],n),m,s,b)}function KS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+c0],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function YS0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+pr],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?s:[0,b,[0,T,N]]}function zS0(n,s){var f=s[2],o=f[2],m=f[1],b=f[3],T=s[1],N=k(n[1][1+n0],n,o),q=Cx(l(n[1][1+A],n),m);return N===o&&q===m?s:[0,T,[0,q,N,b]]}function VS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function GS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+s1],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+bx],n),m,s,b)}function WS0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=Cx(l(n[1][1+n2],n),N),i0=Cx(l(n[1][1+Hx],n),T),o0=Cx(l(n[1][1+bx],n),b),O0=k(n[1][1+q0],n,m),K0=k(n[1][1+B],n,o);return N===q&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function $S0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function HS0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+v2],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+q2],n),m,s,b)}function QS0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=k(n[1][1+w2],n,T),i0=k(n[1][1+bx],n,b),o0=k(n[1][1+q0],n,m),O0=k(n[1][1+B],n,o);return T===q&&b===i0&&m===o0&&o===O0?f:[0,q,i0,o0,N,O0]}function ZS0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+p],n),f,o,s,m)}function xA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+sr],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+Xr],n),m,s,b)}function rA0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=k(n[1][1+O1],n,T),i0=k(n[1][1+bx],n,b),o0=k(n[1][1+q0],n,m),O0=k(n[1][1+B],n,o);return T===q&&b===i0&&m===o0&&o===O0?f:[0,q,i0,o0,N,O0]}function eA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+bx],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+cx],n),m,s,b)}function tA0(n,s,f){var o=f[3],m=f[1],b=f[2],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?f:[0,T,b,N]}function nA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+B],n,o);return o===T?f:[0,b,m,T]}function uA0(n,s){if(s[0]===0){var f=s[1],o=wr(l(n[1][1+Re],n),f);return f===o?s:[0,o]}var m=s[1],b=k(n[1][1+x1],n,m);return m===b?s:[1,b]}function iA0(n,s){var f=s[2],o=s[1],m=Cx(l(n[1][1+A],n),f);return f===m?s:[0,o,m]}function fA0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+A],n,m),N=Cx(l(n[1][1+A],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function cA0(n,s,f){var o=f[5],m=f[3],b=f[2],T=f[1],N=f[4],q=vB(l(n[1][1+le],n),m),i0=Cx(l(n[1][1+pe],n),b),o0=Cx(l(n[1][1+q0],n),T),O0=k(n[1][1+B],n,o);return m===q&&b===i0&&T===o0&&o===O0?f:[0,o0,i0,q,N,O0]}function sA0(n,s){if(s[0]===0){var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+q0],n),f,s,o)}var m=s[1];function b(T){return[1,T]}return I0(l(n[1][1+bx],n),m,s,b)}function aA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+$r],n,m),N=k(n[1][1+B],n,o);return T===m&&N===o?f:[0,b,T,N]}function oA0(n,s){return k(n[1][1+A],n,s)}function vA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function lA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function pA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function kA0(n,s){var f=s[2],o=f[1],m=f[2],b=s[1],T=k(n[1][1+D1],n,o);return o===T?s:[0,b,[0,T,m]]}function mA0(n,s){var f=s[2][1],o=s[1],m=k(n[1][1+D1],n,f);return f===m?s:[0,o,[0,m]]}function hA0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+V1],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function dA0(n,s){var f=s[3],o=s[1],m=wr(l(n[1][1+Le],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],b]}function yA0(n,s){var f=s[4],o=s[1];if(o[0]===0)var m=o[1],b=function(K0){return[0,K0]},T=l(n[1][1+Le],n),o0=I0(function(K0){return wr(T,K0)},m,o,b);else var N=o[1],q=function(K0){return[1,K0]},i0=l(n[1][1+w1],n),o0=I0(function(K0){return wr(i0,K0)},N,o,q);var O0=k(n[1][1+B],n,f);return o===o0&&f===O0?s:[0,o0,s[2],s[3],O0]}function gA0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+Rt],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function _A0(n,s){var f=s[4],o=s[1],m=wr(l(n[1][1+ee],n),o),b=k(n[1][1+B],n,f);return o===m&&f===b?s:[0,m,s[2],s[3],b]}function bA0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(ux){return[0,o,[0,ux]]};return I0(l(n[1][1+a1],n),m,s,b);case 1:var T=f[1],N=function(ux){return[0,o,[1,ux]]};return I0(l(n[1][1+Fe],n),T,s,N);case 2:var q=f[1],i0=function(ux){return[0,o,[2,ux]]};return I0(l(n[1][1+lt],n),q,s,i0);case 3:var o0=f[1],O0=function(ux){return[0,o,[3,ux]]};return I0(l(n[1][1+C1],n),o0,s,O0);default:var K0=f[1],Ax=function(ux){return[0,o,[4,ux]]};return I0(l(n[1][1+Ft],n),K0,s,Ax)}}function wA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=B0(n[1][1+zx],n,c$,b),N=k(n[1][1+Me],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function TA0(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function EA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+q0],n,b),N=k(n[1][1+Hx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function SA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=B0(n[1][1+zx],n,[0,m],T),q=k(n[1][1+c0],n,b),i0=k(n[1][1+B],n,o);return N===T&&q===b&&i0===o?f:[0,N,q,m,i0]}function AA0(n,s,f){return B0(n[1][1+d0],n,s,f)}function IA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=B0(n[1][1+zx],n,f$,b),N=X2(l(n[1][1+te],n),m),q=k(n[1][1+B],n,o);return T===b&&N===m&&o===q?f:[0,T,N,q]}function jA0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+c0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function PA0(n,s,f){var o=f[3],m=f[2],b=f[1],T=X2(l(n[1][1+te],n),m),N=k(n[1][1+B],n,o);return T===m&&o===N?f:[0,b,T,N]}function NA0(n,s,f){return B0(n[1][1+$s],n,s,f)}function OA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Br],n,T),q=k(n[1][1+c0],n,b),i0=Cx(l(n[1][1+Y],n),m),o0=k(n[1][1+B],n,o);return N===T&&q===b&&i0===m&&o0===o?f:[0,N,q,i0,o0]}function CA0(n,s){switch(s[0]){case 0:var f=s[1],o=f[2],m=f[1],b=B0(n[1][1+T1],n,m,o);return b===o?s:[0,[0,m,b]];case 1:var T=s[1],N=T[2],q=T[1],i0=B0(n[1][1+Xe],n,q,N);return i0===N?s:[1,[0,q,i0]];case 2:var o0=s[1],O0=o0[2],K0=o0[1],Ax=B0(n[1][1+vn],n,K0,O0);return Ax===O0?s:[2,[0,K0,Ax]];case 3:var ux=s[1],Kr=ux[2],m2=ux[1],s2=B0(n[1][1+on],n,m2,Kr);return s2===Kr?s:[3,[0,m2,s2]];case 4:var h2=s[1],d2=k(n[1][1+n0],n,h2);return d2===h2?s:[4,d2];case 5:var o1=s[1],ge=o1[2],ze=o1[1],Ve=B0(n[1][1+d0],n,ze,ge);return Ve===ge?s:[5,[0,ze,Ve]];case 6:var kt=s[1],Ge=kt[2],We=kt[1],$e=B0(n[1][1+Ux],n,We,Ge);return $e===Ge?s:[6,[0,We,$e]];case 7:var us=s[1],is=us[2],He=us[1],fs=B0(n[1][1+$s],n,He,is);return fs===is?s:[7,[0,He,fs]];default:var Ha=s[1],Qa=Ha[2],Za=Ha[1],xo=B0(n[1][1+ke],n,Za,Qa);return xo===Qa?s:[8,[0,Za,xo]]}}function DA0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=vB(l(n[1][1+le],n),m),i0=Cx(l(n[1][1+pe],n),b),o0=Cx(l(n[1][1+Lt],n),T),O0=k(n[1][1+B],n,o);return m===q&&b===i0&&T===o0&&o===O0?f:[0,N,o0,i0,q,O0]}function RA0(n,s,f){return B0(n[1][1+ke],n,s,f)}function FA0(n,s){var f=s[2],o=f[4],m=f[2],b=f[1],T=f[3],N=s[1],q=Cx(l(n[1][1+A],n),b),i0=k(n[1][1+n0],n,m),o0=k(n[1][1+B],n,o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,T,o0]]}function LA0(n,s){var f=s[2],o=f[2],m=f[1],b=f[3],T=s[1],N=k(n[1][1+tv],n,m),q=k(n[1][1+c0],n,o);return m===N&&o===q?s:[0,T,[0,N,q,b]]}function MA0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=wr(l(n[1][1+Hs],n),b),q=Cx(l(n[1][1+he],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function UA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=Cx(l(n[1][1+F],n),T),q=k(n[1][1+kn],n,b),i0=k(n[1][1+Ya],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function qA0(n,s,f){var o=f[5],m=f[4],b=f[3],T=f[2],N=f[1],q=k(n[1][1+Zs],n,N),i0=Cx(l(n[1][1+F],n),T),o0=k(n[1][1+kn],n,b),O0=k(n[1][1+Ya],n,m),K0=k(n[1][1+B],n,o);return N===q&&T===i0&&b===o0&&m===O0&&o===K0?f:[0,q,i0,o0,O0,K0]}function BA0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[4],N=f[3],q=f[2],i0=f[1],o0=k(n[1][1+xa],n,i0),O0=Cx(l(n[1][1+F],n),q),K0=X2(l(n[1][1+g],n),N),Ax=l(n[1][1+D],n),ux=Cx(function(d2){return X2(Ax,d2)},T),Kr=l(n[1][1+D],n),m2=wr(function(d2){return X2(Kr,d2)},b),s2=Cx(l(n[1][1+fv],n),m),h2=k(n[1][1+B],n,o);return o0===i0&&O0===q&&K0===N&&ux===T&&m2===b&&s2===m&&h2===o?f:[0,o0,O0,K0,ux,m2,s2,h2]}function XA0(n,s,f){var o=f[1],m=k(n[1][1+B],n,o);return o===m?f:[0,m]}function JA0(n,s,f){var o=f[2],m=f[1],b=Cx(l(n[1][1+at],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function KA0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+Hx],n,T),q=k(n[1][1+bx],n,b),i0=k(n[1][1+bx],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function YA0(n,s){var f=s[1],o=s[2];function m(b){return[0,f,b]}return R0(l(n[1][1+te],n),f,o,s,m)}function zA0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+ev],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function VA0(n,s){return B0(n[1][1+ra],n,i$,s)}function GA0(n,s){if(s[0]===0)return[0,k(n[1][1+A],n,s[1])];var f=s[1],o=f[1];return[1,[0,o,B0(n[1][1+ex],n,o,f[2])]]}function WA0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=f[4],N=s[1],q=k(n[1][1+tv],n,b),i0=k(n[1][1+ev],n,m),o0=k(n[1][1+r1],n,o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,i0,o0,T]]}function $A0(n,s){var f=s[2],o=f[3],m=f[2],b=f[1],T=s[1],N=wr(l(n[1][1+nv],n),b),q=Cx(l(n[1][1+Qs],n),m),i0=k(n[1][1+B],n,o);return b===N&&m===q&&o===i0?s:[0,T,[0,N,q,i0]]}function HA0(n,s){return B0(n[1][1+zx],n,u$,s)}function QA0(n,s,f){var o=f[6],m=f[5],b=f[4],T=f[3],N=f[2],q=f[1],i0=f[7],o0=k(n[1][1+Zs],n,q),O0=Cx(l(n[1][1+F],n),N),K0=k(n[1][1+za],n,T),Ax=k(n[1][1+b3],n,m),ux=k(n[1][1+Ya],n,b),Kr=k(n[1][1+B],n,o);return q===o0&&N===O0&&T===K0&&m===Ax&&b===ux&&o===Kr?f:[0,o0,O0,K0,ux,Ax,Kr,i0]}function ZA0(n,s){return Cx(l(n[1][1+bx],n),s)}function xI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[3],N=f[2],q=f[1],i0=k(n[1][1+fr],n,q),o0=k(n[1][1+Va],n,N),O0=k(n[1][1+Z],n,T),K0=k(n[1][1+i],n,b),Ax=wr(l(n[1][1+mn],n),m),ux=k(n[1][1+B],n,o);return q===i0&&N===o0&&O0===T&&K0===b&&Ax===m&&ux===o?f:[0,i0,o0,O0,f[4],K0,Ax,ux]}function rI0(n,s){if(typeof s=="number")return s;var f=s[1],o=k(n[1][1+bx],n,f);return f===o?s:[0,o]}function eI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[3],N=f[2],q=f[1],i0=k(n[1][1+Jx],n,q),o0=k(n[1][1+Va],n,N),O0=k(n[1][1+Z],n,T),K0=k(n[1][1+i],n,b),Ax=wr(l(n[1][1+mn],n),m),ux=k(n[1][1+B],n,o);return q===i0&&N===o0&&O0===T&&K0===b&&Ax===m&&ux===o?f:[0,i0,o0,O0,f[4],K0,Ax,ux]}function tI0(n,s,f){var o=f[6],m=f[5],b=f[3],T=f[2],N=k(n[1][1+Jx],n,T),q=X2(l(n[1][1+Or],n),b),i0=wr(l(n[1][1+mn],n),m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,f[1],N,q,f[4],i0,o0]}function nI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+U],n,m),N=Cx(l(n[1][1+e0],n),o);return m===T&&o===N?s:[0,b,[0,T,N]]}function uI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+iv],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function iI0(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],m=f[2],b=function(ux){return[0,[0,o,ux]]};return R0(l(n[1][1+es],n),o,m,s,b);case 1:var T=s[1],N=T[1],q=T[2],i0=function(ux){return[1,[0,N,ux]]};return R0(l(n[1][1+uv],n),N,q,s,i0);default:var o0=s[1],O0=o0[1],K0=o0[2],Ax=function(ux){return[2,[0,O0,ux]]};return R0(l(n[1][1+w3],n),O0,K0,s,Ax)}}function fI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=k(n[1][1+bx],n,m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function cI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+S3],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function sI0(n,s){return B0(n[1][1+zx],n,n$,s)}function aI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=Cx(l(n[1][1+e0],n),m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function oI0(n,s,f){var o=f[7],m=f[6],b=f[5],T=f[4],N=f[3],q=f[2],i0=f[1],o0=Cx(l(n[1][1+xa],n),i0),O0=Cx(l(n[1][1+F],n),N),K0=k(n[1][1+I3],n,q),Ax=l(n[1][1+T3],n),ux=Cx(function(h2){return X2(Ax,h2)},T),Kr=Cx(l(n[1][1+fv],n),b),m2=wr(l(n[1][1+mn],n),m),s2=k(n[1][1+B],n,o);return i0===o0&&q===K0&&T===ux&&b===Kr&&m===m2&&o===s2&&N===O0?f:[0,o0,K0,O0,ux,Kr,m2,s2]}function vI0(n,s,f){return B0(n[1][1+hn],n,s,f)}function lI0(n,s,f){return B0(n[1][1+hn],n,s,f)}function pI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=Cx(l(n[1][1+ts],n),b),N=k(n[1][1+P3],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,T,N,q]}function kI0(n,s){return X2(l(n[1][1+te],n),s)}function mI0(n,s){if(s[0]===0){var f=s[1],o=k(n[1][1+n0],n,f);return o===f?s:[0,o]}var m=s[1],b=m[2][1],T=m[1],N=k(n[1][1+B],n,b);return b===N?s:[1,[0,T,[0,N]]]}function hI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+Wa],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function dI0(n,s,f){var o=f[1],m=B0(n[1][1+$a],n,s,o);return o===m?f:[0,m,f[2],f[3]]}function yI0(n,s){var f=s[2],o=f[2],m=f[1],b=s[1],T=wr(l(n[1][1+Jr],n),m),N=k(n[1][1+B],n,o);return m===T&&o===N?s:[0,b,[0,T,N]]}function gI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=f[1],N=k(n[1][1+bx],n,T),q=Cx(l(n[1][1+Ga],n),b),i0=k(n[1][1+M6],n,m),o0=k(n[1][1+B],n,o);return T===N&&b===q&&m===i0&&o===o0?f:[0,N,q,i0,o0]}function _I0(n,s,f){var o=f[2],m=f[1],b=Cx(l(n[1][1+at],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function bI0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+Q0],n,m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function wI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+bx],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function TI0(n,s,f){var o=f[4],m=f[3],b=f[2],T=k(n[1][1+ns],n,b),N=k(n[1][1+bx],n,m),q=k(n[1][1+B],n,o);return b===T&&m===N&&o===q?f:[0,f[1],T,N,q]}function EI0(n,s,f){var o=f[3],m=f[2],b=f[1],T=k(n[1][1+bx],n,b),N=k(n[1][1+c0],n,m),q=k(n[1][1+B],n,o);return T===b&&N===m&&q===o?f:[0,T,N,q]}function SI0(n,s,f){var o=f[2],m=f[1],b=k(n[1][1+bx],n,m),T=k(n[1][1+B],n,o);return b===m&&T===o?f:[0,b,T]}function AI0(n,s,f){return B0(n[1][1+o2],n,s,f)}function II0(n,s){switch(s[0]){case 0:var f=s[1],o=function(T){return[0,T]};return I0(l(n[1][1+bx],n),f,s,o);case 1:var m=s[1],b=function(T){return[1,T]};return I0(l(n[1][1+cx],n),m,s,b);default:return s}}function jI0(n,s,f){var o=f[2],m=f[1],b=wr(l(n[1][1+Wd],n),m),T=k(n[1][1+B],n,o);return m===b&&o===T?f:[0,b,T]}function PI0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(dx){return[0,o,[0,dx]]};return R0(l(n[1][1+$d],n),o,m,s,b);case 1:var T=f[1],N=function(dx){return[0,o,[1,dx]]};return R0(l(n[1][1+Vd],n),o,T,s,N);case 2:var q=f[1],i0=function(dx){return[0,o,[2,dx]]};return R0(l(n[1][1+O3],n),o,q,s,i0);case 3:var o0=f[1],O0=function(dx){return[0,o,[3,dx]]};return R0(l(n[1][1+sv],n),o,o0,s,O0);case 4:var K0=f[1],Ax=function(dx){return[0,o,[4,dx]]};return R0(l(n[1][1+ye],n),o,K0,s,Ax);case 5:var ux=f[1],Kr=function(dx){return[0,o,[5,dx]]};return R0(l(n[1][1+N3],n),o,ux,s,Kr);case 6:var m2=f[1],s2=function(dx){return[0,o,[6,dx]]};return R0(l(n[1][1+$a],n),o,m2,s,s2);case 7:var h2=f[1],d2=function(dx){return[0,o,[7,dx]]};return R0(l(n[1][1+E3],n),o,h2,s,d2);case 8:var o1=f[1],ge=function(dx){return[0,o,[8,dx]]};return R0(l(n[1][1+ln],n),o,o1,s,ge);case 9:var ze=f[1],Ve=function(dx){return[0,o,[9,dx]]};return R0(l(n[1][1+Wr],n),o,ze,s,Ve);case 10:var kt=f[1],Ge=function(dx){return[0,o,[10,dx]]};return I0(l(n[1][1+A],n),kt,s,Ge);case 11:var We=f[1],$e=function(dx){return[0,o,[11,dx]]};return I0(k(n[1][1+g3],n,o),We,s,$e);case 12:var us=f[1],is=function(dx){return[0,o,[12,dx]]};return R0(l(n[1][1+Ua],n),o,us,s,is);case 13:var He=f[1],fs=function(dx){return[0,o,[13,dx]]};return R0(l(n[1][1+K2],n),o,He,s,fs);case 14:var Ha=f[1],Qa=function(dx){return[0,o,[14,dx]]};return R0(l(n[1][1+ex],n),o,Ha,s,Qa);case 15:var Za=f[1],xo=function(dx){return[0,o,[15,dx]]};return R0(l(n[1][1+Mt],n),o,Za,s,xo);case 16:var G6=f[1],W6=function(dx){return[0,o,[16,dx]]};return R0(l(n[1][1+Ks],n),o,G6,s,W6);case 17:var $6=f[1],H6=function(dx){return[0,o,[17,dx]]};return R0(l(n[1][1+hx],n),o,$6,s,H6);case 18:var Q6=f[1],Z6=function(dx){return[0,o,[18,dx]]};return R0(l(n[1][1+ea],n),o,Q6,s,Z6);case 19:var xp=f[1],rp=function(dx){return[0,o,[19,dx]]};return R0(l(n[1][1+rr],n),o,xp,s,rp);case 20:var ep=f[1],tp=function(dx){return[0,o,[20,dx]]};return R0(l(n[1][1+fn],n),o,ep,s,tp);case 21:var np=f[1],up=function(dx){return[0,o,[21,dx]]};return R0(l(n[1][1+Oa],n),o,np,s,up);case 22:var ip=f[1],fp=function(dx){return[0,o,[22,dx]]};return R0(l(n[1][1+Ys],n),o,ip,s,fp);case 23:var cp=f[1],sp=function(dx){return[0,o,[23,dx]]};return R0(l(n[1][1+Go],n),o,cp,s,sp);case 24:var ap=f[1],op=function(dx){return[0,o,[24,dx]]};return R0(l(n[1][1+un],n),o,ap,s,op);case 25:var vp=f[1],lp=function(dx){return[0,o,[25,dx]]};return R0(l(n[1][1+Fr],n),o,vp,s,lp);case 26:var pp=f[1],kp=function(dx){return[0,o,[26,dx]]};return I0(k(n[1][1+b2],n,o),pp,s,kp);case 27:var mp=f[1],hp=function(dx){return[0,o,[27,dx]]};return R0(l(n[1][1+tx],n),o,mp,s,hp);case 28:var dp=f[1],yp=function(dx){return[0,o,[28,dx]]};return R0(l(n[1][1+Dx],n),o,dp,s,yp);case 29:var gp=f[1],_p=function(dx){return[0,o,[29,dx]]};return R0(l(n[1][1+V0],n),o,gp,s,_p);case 30:var bp=f[1],wp=function(dx){return[0,o,[30,dx]]};return R0(l(n[1][1+rx],n),o,bp,s,wp);case 31:var Tp=f[1],Ep=function(dx){return[0,o,[31,dx]]};return R0(l(n[1][1+A0],n),o,Tp,s,Ep);case 32:var Sp=f[1],Ap=function(dx){return[0,o,[32,dx]]};return R0(l(n[1][1+N0],n),o,Sp,s,Ap);case 33:var Ip=f[1],jp=function(dx){return[0,o,[33,dx]]};return R0(l(n[1][1+x0],n),o,Ip,s,jp);case 34:var Pp=f[1],Np=function(dx){return[0,o,[34,dx]]};return R0(l(n[1][1+p0],n),o,Pp,s,Np);case 35:var Op=f[1],Cp=function(dx){return[0,o,[35,dx]]};return R0(l(n[1][1+S],n),o,Op,s,Cp);case 36:var Dp=f[1],wx=function(dx){return[0,o,[36,dx]]};return R0(l(n[1][1+_],n),o,Dp,s,wx);default:var ED=f[1],SD=function(dx){return[0,o,[37,dx]]};return R0(l(n[1][1+e],n),o,ED,s,SD)}}function NI0(n,s){var f=s[2],o=s[1],m=s[3],b=wr(l(n[1][1+rs],n),o),T=wr(l(n[1][1+rs],n),f);return o===b&&f===T?s:[0,b,T,m]}function OI0(n){var s=l(n[1][1+G0],n);return function(f){return Cx(s,f)}}function CI0(n,s){return s}function DI0(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var m=f[1],b=function(mx){return[0,o,[0,mx]]};return R0(l(n[1][1+te],n),o,m,s,b);case 1:var T=f[1],N=function(mx){return[0,o,[1,mx]]};return R0(l(n[1][1+cv],n),o,T,s,N);case 2:var q=f[1],i0=function(mx){return[0,o,[2,mx]]};return R0(l(n[1][1+A3],n),o,q,s,i0);case 3:var o0=f[1],O0=function(mx){return[0,o,[3,mx]]};return R0(l(n[1][1+_3],n),o,o0,s,O0);case 4:var K0=f[1],Ax=function(mx){return[0,o,[4,mx]]};return R0(l(n[1][1+Ke],n),o,K0,s,Ax);case 5:var ux=f[1],Kr=function(mx){return[0,o,[5,mx]]};return R0(l(n[1][1+Zc],n),o,ux,s,Kr);case 6:var m2=f[1],s2=function(mx){return[0,o,[6,mx]]};return R0(l(n[1][1+vn],n),o,m2,s,s2);case 7:var h2=f[1],d2=function(mx){return[0,o,[7,mx]]};return R0(l(n[1][1+on],n),o,h2,s,d2);case 8:var o1=f[1],ge=function(mx){return[0,o,[8,mx]]};return R0(l(n[1][1+E1],n),o,o1,s,ge);case 9:var ze=f[1],Ve=function(mx){return[0,o,[9,mx]]};return R0(l(n[1][1+Je],n),o,ze,s,Ve);case 10:var kt=f[1],Ge=function(mx){return[0,o,[10,mx]]};return R0(l(n[1][1+Xe],n),o,kt,s,Ge);case 11:var We=f[1],$e=function(mx){return[0,o,[11,mx]]};return R0(l(n[1][1+me],n),o,We,s,$e);case 12:var us=f[1],is=function(mx){return[0,o,[12,mx]]};return R0(l(n[1][1+Qc],n),o,us,s,is);case 13:var He=f[1],fs=function(mx){return[0,o,[13,mx]]};return R0(l(n[1][1+Hc],n),o,He,s,fs);case 14:var Ha=f[1],Qa=function(mx){return[0,o,[14,mx]]};return R0(l(n[1][1+$c],n),o,Ha,s,Qa);case 15:var Za=f[1],xo=function(mx){return[0,o,[15,mx]]};return R0(l(n[1][1+Be],n),o,Za,s,xo);case 16:var G6=f[1],W6=function(mx){return[0,o,[16,mx]]};return R0(l(n[1][1+Ux],n),o,G6,s,W6);case 17:var $6=f[1],H6=function(mx){return[0,o,[17,mx]]};return R0(l(n[1][1+T1],n),o,$6,s,H6);case 18:var Q6=f[1],Z6=function(mx){return[0,o,[18,mx]]};return R0(l(n[1][1+qe],n),o,Q6,s,Z6);case 19:var xp=f[1],rp=function(mx){return[0,o,[19,mx]]};return R0(l(n[1][1+Ue],n),o,xp,s,rp);case 20:var ep=f[1],tp=function(mx){return[0,o,[20,mx]]};return R0(l(n[1][1+ke],n),o,ep,s,tp);case 21:var np=f[1],up=function(mx){return[0,o,[21,mx]]};return R0(l(n[1][1+re],n),o,np,s,up);case 22:var ip=f[1],fp=function(mx){return[0,o,[22,mx]]};return R0(l(n[1][1+b1],n),o,ip,s,fp);case 23:var cp=f[1],sp=function(mx){return[0,o,[23,mx]]};return R0(l(n[1][1+Cr],n),o,cp,s,sp);case 24:var ap=f[1],op=function(mx){return[0,o,[24,mx]]};return R0(l(n[1][1+c2],n),o,ap,s,op);case 25:var vp=f[1],lp=function(mx){return[0,o,[25,mx]]};return R0(l(n[1][1+xe],n),o,vp,s,lp);case 26:var pp=f[1],kp=function(mx){return[0,o,[26,mx]]};return R0(l(n[1][1+k2],n),o,pp,s,kp);case 27:var mp=f[1],hp=function(mx){return[0,o,[27,mx]]};return R0(l(n[1][1+Pr],n),o,mp,s,hp);case 28:var dp=f[1],yp=function(mx){return[0,o,[28,mx]]};return R0(l(n[1][1+Yd],n),o,dp,s,yp);case 29:var gp=f[1],_p=function(mx){return[0,o,[29,mx]]};return R0(l(n[1][1+L6],n),o,gp,s,_p);case 30:var bp=f[1],wp=function(mx){return[0,o,[30,mx]]};return R0(l(n[1][1+O6],n),o,bp,s,wp);case 31:var Tp=f[1],Ep=function(mx){return[0,o,[31,mx]]};return R0(l(n[1][1+Ca],n),o,Tp,s,Ep);case 32:var Sp=f[1],Ap=function(mx){return[0,o,[32,mx]]};return R0(l(n[1][1+Ix],n),o,Sp,s,Ap);case 33:var Ip=f[1],jp=function(mx){return[0,o,[33,mx]]};return R0(l(n[1][1+Y0],n),o,Ip,s,jp);case 34:var Pp=f[1],Np=function(mx){return[0,o,[34,mx]]};return R0(l(n[1][1+E0],n),o,Pp,s,Np);case 35:var Op=f[1],Cp=function(mx){return[0,o,[35,mx]]};return R0(l(n[1][1+w0],n),o,Op,s,Cp);case 36:var Dp=f[1],wx=function(mx){return[0,o,[36,mx]]};return R0(l(n[1][1+d0],n),o,Dp,s,wx);case 37:var ED=f[1],SD=function(mx){return[0,o,[37,mx]]};return R0(l(n[1][1+Ux],n),o,ED,s,SD);case 38:var dx=f[1],RI0=function(mx){return[0,o,[38,mx]]};return R0(l(n[1][1+p],n),o,dx,s,RI0);case 39:var FI0=f[1],LI0=function(mx){return[0,o,[39,mx]]};return R0(l(n[1][1+u],n),o,FI0,s,LI0);default:var MI0=f[1],UI0=function(mx){return[0,o,[40,mx]]};return R0(l(n[1][1+t],n),o,MI0,s,UI0)}}return qN(x,[0,RC,function(n,s){var f=s[2],o=f[4],m=f[3],b=f[1],T=f[2],N=s[1],q=k(n[1][1+T0],n,b),i0=k(n[1][1+B],n,m),o0=wr(l(n[1][1+rs],n),o);return b===q&&m===i0&&o===o0?s:[0,N,[0,q,T,i0,o0]]},q0,DI0,rs,CI0,B,OI0,G0,NI0,bx,PI0,$d,jI0,Wd,II0,Vd,AI0,O3,SI0,sv,EI0,ye,TI0,N3,wI0,te,bI0,cv,_I0,$a,gI0,M6,yI0,b2,dI0,Ga,hI0,Wa,mI0,P3,kI0,j3,pI0,A3,lI0,E3,vI0,hn,oI0,T3,aI0,xa,sI0,I3,cI0,mn,fI0,S3,iI0,fv,uI0,iv,nI0,es,tI0,uv,eI0,Va,rI0,w3,xI0,r1,ZA0,_3,QA0,Zs,HA0,za,$A0,nv,WA0,tv,GA0,ev,VA0,Qs,zA0,b3,YA0,ln,KA0,Ke,JA0,Zc,XA0,vn,BA0,on,qA0,xs,UA0,kn,MA0,Hs,LA0,he,FA0,E1,RA0,Je,DA0,Lt,CA0,Xe,OA0,me,NA0,Qc,PA0,Hc,jA0,$c,IA0,Be,AA0,T1,SA0,qe,EA0,Ue,TA0,ke,wA0,Me,bA0,a1,_A0,Fe,gA0,lt,yA0,C1,dA0,Ft,hA0,Le,mA0,ee,kA0,Rt,pA0,w1,lA0,V1,vA0,D1,oA0,re,aA0,$r,sA0,b1,cA0,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V6,J0,z6,Rx,gD,Ux,yD,ur,dD,v,Y6,ts,hD,Xr,mD,q2,kD,ra,K6,ns,pD,cr,lD,zx,vD,jx,oD,_x,aD,M0,D3,Vx,sD,ax,s5,L,cD,Ur,fD,w,iD,lx,J6,L0,uD,sx,c5,Yx,nD,px,tD,hr,eD,j0,X6,Gx,rD,$0,B6,Ex,f5,qr,xD,Lx,i5,Y,q6,Hx,u5,Q,ZC,$,n5,tr,QC,Ix,U6,Dx,HC,T0,$C,Q0,WC,S0,t5,cx,e5,yx,av,V0,GC,Y0,r5,W0,x5,rx,VC,A0,zC,X0,YC,N0,Zd,E0,C3,w0,KC,x0,JC,p0,XC,S,BC,_,Qd,p,Hd,a,qC,u,UC,t,MC,d0,LC,e,FC]),function(n,s){return kh(s,x)}}),KN=function x(r,e,t){return x.fun(r,e,t)};m0(KN,function(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return u1(function(c){return function(v){var a=v[0]===0?v[1][2][2]:v[1][2][1];return B0(KN,x,c,a)}},r,u);case 1:var i=t[1][1];return u1(function(c){return function(v){return v[0]===2?c:B0(KN,x,c,v[1][2][1])}},r,i);case 2:return k(x,r,t[1][1]);default:return r}});var YN=function x(r){return x.fun(r)};function zb0(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return l(YN,r)}function Vb0(x){return x[0]===2?0:l(YN,x[1][2][1])}m0(YN,function(x){var r=x[2];switch(r[0]){case 0:return sN(zb0,r[1][1]);case 1:return sN(Vb0,r[1][1]);case 2:return 1;default:return 0}});function rn(x,r){return[0,r[1],[0,r[2],x]]}function lB(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]}function t0(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,lB([0,t],[0,u],0)]}function F2(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,lB([0,u],[0,i],e)]}function N1(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Fx(t[2],e[2])];return t0([0,Fx(e[1],t[1])],u,R)}var i=x}else var i=r;return i}function zN(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],c=t[1],v=[0,Fx(t[2],e[2])];return F2([0,Fx(u,c)],v,i,R)}var a=r[1];return F2([0,a[1]],[0,a[2]],0,R)}function pB(x,r){e2(x)(tH),l(e2(x)(uH),nH);var e=r[1];l(e2(x)(iH),e),e2(x)(fH),e2(x)(cH),l(e2(x)(aH),sH);var t=r[2];return l(e2(x)(oH),t),e2(x)(vH),e2(x)(lH)}var kB=function x(r,e){return x.fun(r,e)},Gb0=function x(r){return x.fun(r)};m0(kB,function(x,r){e2(x)(dH),l(e2(x)(gH),yH);var e=r[1];if(e){var t=e[1];switch(lh(x,kH),t[0]){case 0:var u=t[1];e2(x)(zW),l(e2(x)(VW),u),e2(x)(GW);break;case 1:var i=t[1];e2(x)(WW),l(e2(x)($W),i),e2(x)(HW);break;case 2:var c=t[1];e2(x)(QW),l(e2(x)(ZW),c),e2(x)(x$);break;default:var v=t[1];e2(x)(r$),l(e2(x)(e$),v),e2(x)(t$)}lh(x,mH)}else lh(x,hH);return e2(x)(_H),e2(x)(bH),l(e2(x)(TH),wH),pB(x,r[2]),e2(x)(EH),e2(x)(SH),l(e2(x)(IH),AH),pB(x,r[3]),e2(x)(jH),e2(x)(PH)}),m0(Gb0,function(x){var r=pH[1],e=Mq(R),t=NN(e);return k(Lr(function(u){Ce(t,u),jN(t,0);var i=R2(e);return e[2]=0,e[1]=e[4],e[3]=nt(e[1]),i},0,r),kB,x)});function Zr(x,r){return[0,x[1],x[2],r[3]]}function Rs(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e}function mB(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],c=oB(i),v=oB(u)-c|0,a=v===0?ix(u[1],i[1]):v;else var a=-1}else var a=e?1:0;if(a!==0)return a;var p=Rs(x[2],r[2]);return p===0?Rs(x[3],r[3]):p}function ha(x,r){return mB(x,r)===0?1:0}var hB=function x(r,e){return x.fun(r,e)};m0(hB,function(x,r){if(typeof x=="number"){var e=x;if(57<=e)switch(e){case 57:if(typeof r=="number"&&r===57)return 0;break;case 58:if(typeof r=="number"&&r===58)return 0;break;case 59:if(typeof r=="number"&&r===59)return 0;break;case 60:if(typeof r=="number"&&r===60)return 0;break;case 61:if(typeof r=="number"&&r===61)return 0;break;case 62:if(typeof r=="number"&&r===62)return 0;break;case 63:if(typeof r=="number"&&r===63)return 0;break;case 64:if(typeof r=="number"&&r===64)return 0;break;case 65:if(typeof r=="number"&&r===65)return 0;break;case 66:if(typeof r=="number"&&r===66)return 0;break;case 67:if(typeof r=="number"&&r===67)return 0;break;case 68:if(typeof r=="number"&&r===68)return 0;break;case 69:if(typeof r=="number"&&r===69)return 0;break;case 70:if(typeof r=="number"&&r===70)return 0;break;case 71:if(typeof r=="number"&&r===71)return 0;break;case 72:if(typeof r=="number"&&r===72)return 0;break;case 73:if(typeof r=="number"&&r===73)return 0;break;case 74:if(typeof r=="number"&&r===74)return 0;break;case 75:if(typeof r=="number"&&r===75)return 0;break;case 76:if(typeof r=="number"&&r===76)return 0;break;case 77:if(typeof r=="number"&&r===77)return 0;break;case 78:if(typeof r=="number"&&r===78)return 0;break;case 79:if(typeof r=="number"&&r===79)return 0;break;case 80:if(typeof r=="number"&&r===80)return 0;break;case 81:if(typeof r=="number"&&r===81)return 0;break;case 82:if(typeof r=="number"&&r===82)return 0;break;case 83:if(typeof r=="number"&&r===83)return 0;break;case 84:if(typeof r=="number"&&r===84)return 0;break;case 85:if(typeof r=="number"&&r===85)return 0;break;case 86:if(typeof r=="number"&&r===86)return 0;break;case 87:if(typeof r=="number"&&r===87)return 0;break;case 88:if(typeof r=="number"&&r===88)return 0;break;case 89:if(typeof r=="number"&&r===89)return 0;break;case 90:if(typeof r=="number"&&r===90)return 0;break;case 91:if(typeof r=="number"&&r===91)return 0;break;case 92:if(typeof r=="number"&&r===92)return 0;break;case 93:if(typeof r=="number"&&r===93)return 0;break;case 94:if(typeof r=="number"&&r===94)return 0;break;case 95:if(typeof r=="number"&&r===95)return 0;break;case 96:if(typeof r=="number"&&r===96)return 0;break;case 97:if(typeof r=="number"&&r===97)return 0;break;case 98:if(typeof r=="number"&&r===98)return 0;break;case 99:if(typeof r=="number"&&r===99)return 0;break;case 100:if(typeof r=="number"&&et===r)return 0;break;case 101:if(typeof r=="number"&&yt===r)return 0;break;case 102:if(typeof r=="number"&&S1===r)return 0;break;case 103:if(typeof r=="number"&&Ze===r)return 0;break;case 104:if(typeof r=="number"&&_t===r)return 0;break;case 105:if(typeof r=="number"&>===r)return 0;break;case 106:if(typeof r=="number"&&z2===r)return 0;break;case 107:if(typeof r=="number"&&$f===r)return 0;break;case 108:if(typeof r=="number"&&R7===r)return 0;break;case 109:if(typeof r=="number"&&Ni===r)return 0;break;case 110:if(typeof r=="number"&&j2===r)return 0;break;case 111:if(typeof r=="number"&&zt===r)return 0;break;default:if(typeof r=="number"&&ue<=r)return 0}else switch(e){case 0:if(typeof r=="number"&&!r)return 0;break;case 1:if(typeof r=="number"&&r===1)return 0;break;case 2:if(typeof r=="number"&&r===2)return 0;break;case 3:if(typeof r=="number"&&r===3)return 0;break;case 4:if(typeof r=="number"&&r===4)return 0;break;case 5:if(typeof r=="number"&&r===5)return 0;break;case 6:if(typeof r=="number"&&r===6)return 0;break;case 7:if(typeof r=="number"&&r===7)return 0;break;case 8:if(typeof r=="number"&&r===8)return 0;break;case 9:if(typeof r=="number"&&r===9)return 0;break;case 10:if(typeof r=="number"&&r===10)return 0;break;case 11:if(typeof r=="number"&&r===11)return 0;break;case 12:if(typeof r=="number"&&r===12)return 0;break;case 13:if(typeof r=="number"&&r===13)return 0;break;case 14:if(typeof r=="number"&&r===14)return 0;break;case 15:if(typeof r=="number"&&r===15)return 0;break;case 16:if(typeof r=="number"&&r===16)return 0;break;case 17:if(typeof r=="number"&&r===17)return 0;break;case 18:if(typeof r=="number"&&r===18)return 0;break;case 19:if(typeof r=="number"&&r===19)return 0;break;case 20:if(typeof r=="number"&&r===20)return 0;break;case 21:if(typeof r=="number"&&r===21)return 0;break;case 22:if(typeof r=="number"&&r===22)return 0;break;case 23:if(typeof r=="number"&&r===23)return 0;break;case 24:if(typeof r=="number"&&r===24)return 0;break;case 25:if(typeof r=="number"&&r===25)return 0;break;case 26:if(typeof r=="number"&&r===26)return 0;break;case 27:if(typeof r=="number"&&r===27)return 0;break;case 28:if(typeof r=="number"&&r===28)return 0;break;case 29:if(typeof r=="number"&&r===29)return 0;break;case 30:if(typeof r=="number"&&r===30)return 0;break;case 31:if(typeof r=="number"&&r===31)return 0;break;case 32:if(typeof r=="number"&&r===32)return 0;break;case 33:if(typeof r=="number"&&r===33)return 0;break;case 34:if(typeof r=="number"&&r===34)return 0;break;case 35:if(typeof r=="number"&&r===35)return 0;break;case 36:if(typeof r=="number"&&r===36)return 0;break;case 37:if(typeof r=="number"&&r===37)return 0;break;case 38:if(typeof r=="number"&&r===38)return 0;break;case 39:if(typeof r=="number"&&r===39)return 0;break;case 40:if(typeof r=="number"&&r===40)return 0;break;case 41:if(typeof r=="number"&&r===41)return 0;break;case 42:if(typeof r=="number"&&r===42)return 0;break;case 43:if(typeof r=="number"&&r===43)return 0;break;case 44:if(typeof r=="number"&&r===44)return 0;break;case 45:if(typeof r=="number"&&r===45)return 0;break;case 46:if(typeof r=="number"&&r===46)return 0;break;case 47:if(typeof r=="number"&&r===47)return 0;break;case 48:if(typeof r=="number"&&r===48)return 0;break;case 49:if(typeof r=="number"&&r===49)return 0;break;case 50:if(typeof r=="number"&&r===50)return 0;break;case 51:if(typeof r=="number"&&r===51)return 0;break;case 52:if(typeof r=="number"&&r===52)return 0;break;case 53:if(typeof r=="number"&&r===53)return 0;break;case 54:if(typeof r=="number"&&r===54)return 0;break;case 55:if(typeof r=="number"&&r===55)return 0;break;default:if(typeof r=="number"&&r===56)return 0}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0)return ix(x[1],r[1]);break;case 1:if(typeof r!="number"&&r[0]===1)return ix(x[1],r[1]);break;case 2:if(typeof r!="number"&&r[0]===2){var t=ix(x[1],r[1]),u=r[2],i=x[2];return t===0?ix(i,u):t}break;case 3:if(typeof r!="number"&&r[0]===3){var c=ix(x[1],r[1]),v=r[2],a=x[2];return c===0?ix(a,v):c}break;case 4:if(typeof r!="number"&&r[0]===4){var p=ix(x[1],r[1]),_=r[2],y=x[2];return p===0?ix(y,_):p}break;case 5:if(typeof r!="number"&&r[0]===5)return ix(x[1],r[1]);break;case 6:if(typeof r!="number"&&r[0]===6)return wt(x[1],r[1]);break;case 7:if(typeof r!="number"&&r[0]===7){var S=r[2],E=x[2],j=ix(x[1],r[1]);if(j!==0)return j;if(!E)return S?-1:0;var C=E[1];return S?ix(C,S[1]):1}break;case 8:if(typeof r!="number"&&r[0]===8)return ix(x[1],r[1]);break;case 9:if(typeof r!="number"&&r[0]===9){var P=r[2],O=x[2],F=ix(x[1],r[1]),K=r[3],U=x[3];if(F!==0)return F;if(O){var V=O[1];if(P){var Q=P[1];x:{switch(V){case 0:if(!Q){var e0=0;break x}break;case 1:if(Q===1){var e0=0;break x}break;case 2:if(Q===2){var e0=0;break x}break;case 3:if(Q===3){var e0=0;break x}break;default:if(4<=Q){var e0=0;break x}}var $=function(jx){switch(jx){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}},x0=$(Q),e0=wt($(V),x0)}var Z=e0}else var Z=1}else var Z=P?-1:0;return Z===0?ix(U,K):Z}break;case 10:if(typeof r!="number"&&r[0]===10){var c0=ix(x[1],r[1]),d0=r[2],n0=x[2];return c0===0?ix(n0,d0):c0}break;case 11:if(typeof r!="number"&&r[0]===11){var P0=ix(x[1],r[1]),h0=r[2],g0=x[2];return P0===0?ix(g0,h0):P0}break;case 12:if(typeof r!="number"&&r[0]===12)return ix(x[1],r[1]);break;case 13:if(typeof r!="number"&&r[0]===13)return ix(x[1],r[1]);break;case 14:if(typeof r!="number"&&r[0]===14)return wt(x[1],r[1]);break;case 15:if(typeof r!="number"&&r[0]===15){var v0=ix(x[1],r[1]),p0=r[4],w0=r[3],T0=r[2],E0=x[4],N0=x[3],X0=x[2];if(v0!==0)return v0;var A0=wt(X0,T0);if(A0!==0)return A0;var rx=wt(N0,w0);return rx===0?wt(E0,p0):rx}break;case 16:if(typeof r!="number"&&r[0]===16){var B=wt(x[1],r[1]),G0=r[2],W0=x[2];return B===0?ix(W0,G0):B}break;case 17:if(typeof r!="number"&&r[0]===17)return wt(x[1],r[1]);break;case 18:if(typeof r!="number"&&r[0]===18)return ix(x[1],r[1]);break;case 19:if(typeof r!="number"&&r[0]===19)return ix(x[1],r[1]);break;case 20:if(typeof r!="number"&&r[0]===20)return ix(x[1],r[1]);break;case 21:if(typeof r!="number"&&r[0]===21){var Y0=ix(x[1],r[1]),V0=r[2],ex=x[2];return Y0===0?ix(ex,V0):Y0}break;case 22:if(typeof r!="number"&&r[0]===22){var Q0=r[1],S0=x[1];if(ol===S0){if(ol===Q0)return 0}else if(tl<=S0){if(tl===Q0)return 0}else if(ZM===Q0)return 0;var q0=function(Hx){return ol===Hx?0:tl<=Hx?2:1},yx=q0(Q0);return wt(q0(S0),yx)}break;case 23:if(typeof r!="number"&&r[0]===23)return ix(x[1],r[1]);break;case 24:if(typeof r!="number"&&r[0]===24)return ix(x[1],r[1]);break;case 25:if(typeof r!="number"&&r[0]===25){var cx=ix(x[1],r[1]),Dx=r[2],Ix=x[2];return cx===0?ix(Ix,Dx):cx}break;case 26:if(typeof r!="number"&&r[0]===26){var Xx=ix(x[1],r[1]),Z0=r[2],rr=x[2];return Xx===0?ix(rr,Z0):Xx}break;default:if(typeof r!="number"&&r[0]===27)return ix(x[1],r[1])}function xr(Hx){if(typeof Hx!="number")switch(Hx[0]){case 0:return 16;case 1:return 17;case 2:return 19;case 3:return 20;case 4:return 21;case 5:return 22;case 6:return 23;case 7:return 24;case 8:return 26;case 9:return 27;case 10:return 28;case 11:return 30;case 12:return 31;case 13:return 33;case 14:return 36;case 15:return 48;case 16:return 51;case 17:return 53;case 18:return 61;case 19:return 70;case 20:return 79;case 21:return 86;case 22:return z2;case 23:return ia;case 24:return Ov;case 25:return Bp;case 26:return CL;default:return sU}var Y=Hx;if(57<=Y)switch(Y){case 57:return 77;case 58:return 78;case 59:return 80;case 60:return 81;case 61:return 82;case 62:return 83;case 63:return 84;case 64:return 85;case 65:return 87;case 66:return 88;case 67:return 89;case 68:return 90;case 69:return 91;case 70:return 92;case 71:return 93;case 72:return 94;case 73:return 95;case 74:return 96;case 75:return 97;case 76:return 98;case 77:return 99;case 78:return et;case 79:return yt;case 80:return S1;case 81:return Ze;case 82:return _t;case 83:return gt;case 84:return $f;case 85:return R7;case 86:return Ni;case 87:return j2;case 88:return zt;case 89:return ue;case 90:return Dr;case 91:return ua;case 92:return B3;case 93:return kv;case 94:return Ev;case 95:return of;case 96:return rl;case 97:return r2;case 98:return Vt;case 99:return Cv;case 100:return ms;case 101:return Yr;case 102:return y2;case 103:return dl;case 104:return kl;case 105:return _4;case 106:return hl;case 107:return $D;case 108:return UF;case 109:return FR;case 110:return U_;case 111:return gF;default:return kM}switch(Y){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;case 8:return 8;case 9:return 9;case 10:return 10;case 11:return 11;case 12:return 12;case 13:return 13;case 14:return 14;case 15:return 15;case 16:return 18;case 17:return 25;case 18:return 29;case 19:return 32;case 20:return 34;case 21:return 35;case 22:return 37;case 23:return 38;case 24:return 39;case 25:return 40;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 49;case 34:return 50;case 35:return 52;case 36:return 54;case 37:return 55;case 38:return 56;case 39:return 57;case 40:return 58;case 41:return 59;case 42:return 60;case 43:return 62;case 44:return 63;case 45:return 64;case 46:return 65;case 47:return 66;case 48:return 67;case 49:return 68;case 50:return 69;case 51:return 71;case 52:return 72;case 53:return 73;case 54:return 74;case 55:return 75;default:return 76}}var fr=xr(r);return wt(xr(x),fr)});var Wb0=[x2,F00,Ts(0)];function $b0(x){if(typeof x=="number"){var r=x;if(57<=r)switch(r){case 57:return LQ;case 58:return MQ;case 59:return UQ;case 60:return qQ;case 61:return BQ;case 62:return XQ;case 63:return JQ;case 64:return KQ;case 65:return YQ;case 66:return zQ;case 67:return VQ;case 68:return GQ;case 69:return WQ;case 70:return $Q;case 71:return HQ;case 72:return QQ;case 73:return ZQ;case 74:return xZ;case 75:return rZ;case 76:return eZ;case 77:return tZ;case 78:return nZ;case 79:return uZ;case 80:return iZ;case 81:return fZ;case 82:return cZ;case 83:return sZ;case 84:return aZ;case 85:return oZ;case 86:return vZ;case 87:return lZ;case 88:return pZ;case 89:return kZ;case 90:return mZ;case 91:return hZ;case 92:return dZ;case 93:return yZ;case 94:return gZ;case 95:return _Z;case 96:return bZ;case 97:return wZ;case 98:return TZ;case 99:return EZ;case 100:return SZ;case 101:return AZ;case 102:return IZ;case 103:return jZ;case 104:return PZ;case 105:return NZ;case 106:return OZ;case 107:return CZ;case 108:return DZ;case 109:return RZ;case 110:return FZ;case 111:return LZ;default:return MZ}switch(r){case 0:return OH;case 1:return CH;case 2:return DH;case 3:return RH;case 4:return FH;case 5:return LH;case 6:return MH;case 7:return UH;case 8:return qH;case 9:return BH;case 10:return XH;case 11:return Bx(KH,JH);case 12:return YH;case 13:return zH;case 14:return VH;case 15:return GH;case 16:return WH;case 17:return $H;case 18:return HH;case 19:return QH;case 20:return ZH;case 21:return xQ;case 22:return rQ;case 23:return eQ;case 24:return tQ;case 25:return nQ;case 26:return uQ;case 27:return iQ;case 28:return fQ;case 29:return cQ;case 30:return Bx(aQ,sQ);case 31:return oQ;case 32:return vQ;case 33:return lQ;case 34:return pQ;case 35:return kQ;case 36:return mQ;case 37:return hQ;case 38:return dQ;case 39:return yQ;case 40:return gQ;case 41:return _Q;case 42:return bQ;case 43:return wQ;case 44:return TQ;case 45:return EQ;case 46:return SQ;case 47:return AQ;case 48:return IQ;case 49:return jQ;case 50:return PQ;case 51:return NQ;case 52:return OQ;case 53:return CQ;case 54:return DQ;case 55:return RQ;default:return FQ}}switch(x[0]){case 0:var e=x[1];return l(yr(UZ),e);case 1:var t=x[1];return l(yr(qZ),t);case 2:var u=x[2],i=x[1];return k(yr(BZ),u,i);case 3:var c=x[2],v=x[1];return B0(yr(XZ),c,c,v);case 4:var a=x[2],p=x[1];return k(yr(JZ),a,p);case 5:var _=x[1];return l(yr(KZ),_);case 6:return x[1]?YZ:zZ;case 7:var y=x[2],S=x[1],E=l(yr(VZ),S);if(!y)return l(yr(WZ),E);var j=y[1];return k(yr(GZ),j,E);case 8:var C=x[1];return k(yr($Z),C,C);case 9:var P=x[3],O=x[2],F=x[1];if(!O)return k(yr(ZZ),P,F);var K=O[1];if(K===3)return k(yr(QZ),P,F);switch(K){case 0:var U=BW;break;case 1:var U=XW;break;case 2:var U=JW;break;case 3:var U=KW;break;default:var U=YW}return St(yr(HZ),F,U,P,U);case 10:var V=x[2],Q=x[1],$=fq(V);return B0(yr(x00),V,$,Q);case 11:var x0=x[2],e0=x[1];return k(yr(r00),x0,e0);case 12:var Z=x[1];return l(yr(e00),Z);case 13:var c0=x[1];return l(yr(t00),c0);case 14:return x[1]?Bx(u00,n00):Bx(f00,i00);case 15:var d0=x[1],n0=x[4],P0=x[3],h0=x[2]?c00:s00,g0=P0?a00:o00,v0=n0?Bx(v00,d0):d0;return B0(yr(l00),h0,g0,v0);case 16:var p0=x[2],w0=x[1],T0=sq(45,p0);if(T0)var E0=T0[1],N0=T0[2]?iq(NH,[0,E0,xn(fq,T0[2])]):E0;else var N0=p0;var X0=w0?p00:k00;return B0(yr(m00),p0,N0,X0);case 17:var A0=x[1]?h00:d00;return l(yr(y00),A0);case 18:var rx=x[1];return l(yr(g00),rx);case 19:var B=x[1];return l(yr(_00),B);case 20:var G0=x[1];return l(yr(b00),G0);case 21:var W0=x[2],Y0=x[1];return k(yr(w00),Y0,W0);case 22:var V0=x[1];if(ol===V0)var ex=I00,Q0=j00;else if(tl<=V0)var ex=T00,Q0=E00;else var ex=S00,Q0=A00;return k(yr(P00),Q0,ex);case 23:var S0=x[1];return l(yr(N00),S0);case 24:var q0=x[1];return l(yr(O00),q0);case 25:var yx=x[2],cx=x[1];return k(yr(C00),cx,yx);case 26:var Dx=x[2],Ix=x[1];return k(yr(D00),Ix,Dx);default:var Xx=x[1];return l(yr(R00),Xx)}}var dB=L00.slice();function VN(x){for(var r=0,e=dB.length-1-1|0;;){if(ex)return 1;var r=t+1|0}}}var yB=0;function gB(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]}function _B(x){return x[3][1]}function _h(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r}var GN=function x(r,e){return x.fun(r,e)},bB=function x(r,e){return x.fun(r,e)},WN=function x(r,e){return x.fun(r,e)},$N=function x(r,e){return x.fun(r,e)};m0(GN,function(x,r){if(typeof x=="number"){var e=x;if(67<=e)if(et<=e)switch(e){case 100:if(typeof r=="number"&&et===r)return 1;break;case 101:if(typeof r=="number"&&yt===r)return 1;break;case 102:if(typeof r=="number"&&S1===r)return 1;break;case 103:if(typeof r=="number"&&Ze===r)return 1;break;case 104:if(typeof r=="number"&&_t===r)return 1;break;case 105:if(typeof r=="number"&>===r)return 1;break;case 106:if(typeof r=="number"&&z2===r)return 1;break;case 107:if(typeof r=="number"&&$f===r)return 1;break;case 108:if(typeof r=="number"&&R7===r)return 1;break;case 109:if(typeof r=="number"&&Ni===r)return 1;break;case 110:if(typeof r=="number"&&j2===r)return 1;break;case 111:if(typeof r=="number"&&zt===r)return 1;break;case 112:if(typeof r=="number"&&ue===r)return 1;break;case 113:if(typeof r=="number"&&Dr===r)return 1;break;case 114:if(typeof r=="number"&&ia===r)return 1;break;case 115:if(typeof r=="number"&&Ov===r)return 1;break;case 116:if(typeof r=="number"&&ua===r)return 1;break;case 117:if(typeof r=="number"&&B3===r)return 1;break;case 118:if(typeof r=="number"&&kv===r)return 1;break;case 119:if(typeof r=="number"&&Ev===r)return 1;break;case 120:if(typeof r=="number"&&of===r)return 1;break;case 121:if(typeof r=="number"&&rl===r)return 1;break;case 122:if(typeof r=="number"&&r2===r)return 1;break;case 123:if(typeof r=="number"&&Vt===r)return 1;break;case 124:if(typeof r=="number"&&Cv===r)return 1;break;case 125:if(typeof r=="number"&&ms===r)return 1;break;case 126:if(typeof r=="number"&&Bp===r)return 1;break;case 127:if(typeof r=="number"&&Yr===r)return 1;break;case 128:if(typeof r=="number"&&y2===r)return 1;break;case 129:if(typeof r=="number"&&dl===r)return 1;break;case 130:if(typeof r=="number"&&kl===r)return 1;break;case 131:if(typeof r=="number"&&_4===r)return 1;break;default:if(typeof r=="number"&&hl<=r)return 1}else switch(e){case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;case 97:if(typeof r=="number"&&r===97)return 1;break;case 98:if(typeof r=="number"&&r===98)return 1;break;default:if(typeof r=="number"&&r===99)return 1}else if(34<=e)switch(e){case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;case 64:if(typeof r=="number"&&r===64)return 1;break;case 65:if(typeof r=="number"&&r===65)return 1;break;default:if(typeof r=="number"&&r===66)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;case 32:if(typeof r=="number"&&r===32)return 1;break;default:if(typeof r=="number"&&r===33)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=r[1],i=x[2],c=l(l(WN,x[1]),u);return c&&Sr(i,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var v=r[2],a=r[1],p=x[2],_=l(l($N,x[1]),a);return _&&Sr(p,v)}break;case 2:if(typeof r!="number"&&r[0]===2){var y=r[1],S=x[1],E=y[4],j=y[3],C=y[2],P=S[4],O=S[3],F=S[2],K=ha(S[1],y[1]),U=K&&Sr(F,C),V=U&&Sr(O,j);return V&&(P===E?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var Q=r[1],$=x[1],x0=Q[5],e0=Q[4],Z=Q[3],c0=Q[2],d0=$[5],n0=$[4],P0=$[3],h0=$[2],g0=ha($[1],Q[1]),v0=g0&&Sr(h0,c0),p0=v0&&Sr(P0,Z),w0=p0&&(n0===e0?1:0);return w0&&(d0===x0?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var T0=r[3],E0=r[2],N0=x[3],X0=x[2],A0=ha(x[1],r[1]),rx=A0&&Sr(X0,E0);return rx&&Sr(N0,T0)}break;case 5:if(typeof r!="number"&&r[0]===5){var B=r[3],G0=r[2],W0=x[3],Y0=x[2],V0=ha(x[1],r[1]),ex=V0&&Sr(Y0,G0);return ex&&Sr(W0,B)}break;case 6:if(typeof r!="number"&&r[0]===6){var Q0=r[2],S0=x[2],q0=ha(x[1],r[1]);return q0&&Sr(S0,Q0)}break;case 7:if(typeof r!="number"&&r[0]===7)return Sr(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var yx=Sr(x[1],r[1]),cx=r[2],Dx=x[2];return yx&&ha(Dx,cx)}break;case 9:if(typeof r!="number"&&r[0]===9){var Ix=r[3],Xx=r[2],Z0=x[3],rr=x[2],xr=ha(x[1],r[1]),fr=xr&&Sr(rr,Xx);return fr&&Sr(Z0,Ix)}break;case 10:if(typeof r!="number"&&r[0]===10){var Hx=r[3],Y=r[2],jx=x[3],hr=x[2],Yx=ha(x[1],r[1]),Ur=Yx&&Sr(hr,Y);return Ur&&Sr(jx,Hx)}break;case 11:if(typeof r!="number"&&r[0]===11){var px=r[1];return l(l(bB,x[1]),px)}break;case 12:if(typeof r!="number"&&r[0]===12){var w=r[3],L=r[2],L0=r[1],sx=x[3],lx=x[2],ax=l(l(WN,x[1]),L0),Vx=ax&&(lx==L?1:0);return Vx&&Sr(sx,w)}break;default:if(typeof r!="number"&&r[0]===13){var _x=r[2],zx=x[2],Lx=r[3],M0=r[1],qr=x[3],Ex=l(l($N,x[1]),M0);if(Ex){x:{if(zx){if(_x){var $0=Xv(zx[1],_x[1]);break x}}else if(!_x){var $0=1;break x}var $0=0}var Gx=$0}else var Gx=Ex;return Gx&&Sr(qr,Lx)}}return 0}),m0(bB,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0}),m0(WN,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}),m0($N,function(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0});function wB(x){if(typeof x!="number")switch(x[0]){case 0:return ot0;case 1:return vt0;case 2:return lt0;case 3:return pt0;case 4:return kt0;case 5:return mt0;case 6:return ht0;case 7:return dt0;case 8:return yt0;case 9:return gt0;case 10:return _t0;case 11:return bt0;case 12:return wt0;default:return Tt0}var r=x;if(67<=r){if(et<=r)switch(r){case 100:return Oe0;case 101:return Ce0;case 102:return De0;case 103:return Re0;case 104:return Fe0;case 105:return Le0;case 106:return Me0;case 107:return Ue0;case 108:return qe0;case 109:return Be0;case 110:return Xe0;case 111:return Je0;case 112:return Ke0;case 113:return Ye0;case 114:return ze0;case 115:return Ve0;case 116:return Ge0;case 117:return We0;case 118:return $e0;case 119:return He0;case 120:return Qe0;case 121:return Ze0;case 122:return xt0;case 123:return rt0;case 124:return et0;case 125:return tt0;case 126:return nt0;case 127:return ut0;case 128:return it0;case 129:return ft0;case 130:return ct0;case 131:return st0;default:return at0}switch(r){case 67:return Z10;case 68:return xe0;case 69:return re0;case 70:return ee0;case 71:return te0;case 72:return ne0;case 73:return ue0;case 74:return ie0;case 75:return fe0;case 76:return ce0;case 77:return se0;case 78:return ae0;case 79:return oe0;case 80:return ve0;case 81:return le0;case 82:return pe0;case 83:return ke0;case 84:return me0;case 85:return he0;case 86:return de0;case 87:return ye0;case 88:return ge0;case 89:return _e0;case 90:return be0;case 91:return we0;case 92:return Te0;case 93:return Ee0;case 94:return Se0;case 95:return Ae0;case 96:return Ie0;case 97:return je0;case 98:return Pe0;default:return Ne0}}if(34<=r)switch(r){case 34:return g10;case 35:return _10;case 36:return b10;case 37:return w10;case 38:return T10;case 39:return E10;case 40:return S10;case 41:return A10;case 42:return I10;case 43:return j10;case 44:return P10;case 45:return N10;case 46:return O10;case 47:return C10;case 48:return D10;case 49:return R10;case 50:return F10;case 51:return L10;case 52:return M10;case 53:return U10;case 54:return q10;case 55:return B10;case 56:return X10;case 57:return J10;case 58:return K10;case 59:return Y10;case 60:return z10;case 61:return V10;case 62:return G10;case 63:return W10;case 64:return $10;case 65:return H10;default:return Q10}switch(r){case 0:return q20;case 1:return B20;case 2:return X20;case 3:return J20;case 4:return K20;case 5:return Y20;case 6:return z20;case 7:return V20;case 8:return G20;case 9:return W20;case 10:return $20;case 11:return H20;case 12:return Q20;case 13:return Z20;case 14:return x10;case 15:return r10;case 16:return e10;case 17:return t10;case 18:return n10;case 19:return u10;case 20:return i10;case 21:return f10;case 22:return c10;case 23:return s10;case 24:return a10;case 25:return o10;case 26:return v10;case 27:return l10;case 28:return p10;case 29:return k10;case 30:return m10;case 31:return h10;case 32:return d10;default:return y10}}function HN(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?Bx(j20,Bx(u,I20)):t?Bx(N20,Bx(u,P20)):e?Bx(C20,Bx(u,O20)):Bx(R20,Bx(u,D20));case 4:return x[3];case 5:var i=x[2];return Bx(L20,Bx(i,Bx(F20,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?M20:U20;case 12:return x[3];default:return x[3]}var c=x;if(67<=c){if(et<=c)switch(c){case 100:return Wr0;case 101:return $r0;case 102:return Hr0;case 103:return Qr0;case 104:return Zr0;case 105:return x20;case 106:return r20;case 107:return e20;case 108:return t20;case 109:return n20;case 110:return u20;case 111:return i20;case 112:return f20;case 113:return c20;case 114:return s20;case 115:return a20;case 116:return o20;case 117:return v20;case 118:return l20;case 119:return p20;case 120:return k20;case 121:return m20;case 122:return h20;case 123:return d20;case 124:return y20;case 125:return g20;case 126:return _20;case 127:return b20;case 128:return w20;case 129:return T20;case 130:return E20;case 131:return S20;default:return A20}switch(c){case 67:return mr0;case 68:return hr0;case 69:return dr0;case 70:return yr0;case 71:return gr0;case 72:return _r0;case 73:return br0;case 74:return wr0;case 75:return Tr0;case 76:return Er0;case 77:return Sr0;case 78:return Ar0;case 79:return Ir0;case 80:return jr0;case 81:return Pr0;case 82:return Nr0;case 83:return Or0;case 84:return Cr0;case 85:return Dr0;case 86:return Rr0;case 87:return Fr0;case 88:return Lr0;case 89:return Mr0;case 90:return Ur0;case 91:return qr0;case 92:return Br0;case 93:return Xr0;case 94:return Jr0;case 95:return Kr0;case 96:return Yr0;case 97:return zr0;case 98:return Vr0;default:return Gr0}}if(34<=c)switch(c){case 34:return Lx0;case 35:return Mx0;case 36:return Ux0;case 37:return qx0;case 38:return Bx0;case 39:return Xx0;case 40:return Jx0;case 41:return Kx0;case 42:return Yx0;case 43:return zx0;case 44:return Vx0;case 45:return Gx0;case 46:return Wx0;case 47:return $x0;case 48:return Hx0;case 49:return Qx0;case 50:return Zx0;case 51:return xr0;case 52:return rr0;case 53:return er0;case 54:return tr0;case 55:return nr0;case 56:return ur0;case 57:return ir0;case 58:return fr0;case 59:return cr0;case 60:return sr0;case 61:return ar0;case 62:return or0;case 63:return vr0;case 64:return lr0;case 65:return pr0;default:return kr0}switch(c){case 0:return tx0;case 1:return nx0;case 2:return ux0;case 3:return ix0;case 4:return fx0;case 5:return cx0;case 6:return sx0;case 7:return ax0;case 8:return ox0;case 9:return vx0;case 10:return lx0;case 11:return px0;case 12:return kx0;case 13:return mx0;case 14:return hx0;case 15:return dx0;case 16:return yx0;case 17:return gx0;case 18:return _x0;case 19:return bx0;case 20:return wx0;case 21:return Tx0;case 22:return Ex0;case 23:return Sx0;case 24:return Ax0;case 25:return Ix0;case 26:return jx0;case 27:return Px0;case 28:return Nx0;case 29:return Ox0;case 30:return Cx0;case 31:return Dx0;case 32:return Rx0;default:return Fx0}}function bh(x){return l(yr(ex0),x)}function QN(x,r){var e=x?x[1]:0;x:{if(typeof r=="number"){if(Dr===r){var t=q00,u=B00;break x}}else switch(r[0]){case 3:var t=X00,u=J00;break x;case 5:var t=K00,u=Y00;break x;case 0:case 12:var t=V00,u=G00;break x;case 1:case 13:var t=W00,u=$00;break x;case 4:case 8:var t=Z00,u=xx0;break x;case 6:case 7:case 11:break;default:var t=H00,u=Q00;break x}var t=z00,u=bh(HN(r))}return e?Bx(t,Bx(rx0,u)):u}function Hb0(x){return Eo>>0)var t=d(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(z(x,2),wa(h(x))===0){var u=Lo(h(x));if(u===0)var t=Ir(h(x))===0&&Ir(h(x))===0&&Ir(h(x))===0?0:d(x);else if(u===1&&Ir(h(x))===0){for(;;){var i=Fo(h(x));if(i!==0)break}var t=i===1?0:d(x)}else var t=d(x)}else var t=d(x)}if(2>>0)throw U0([0,Ar,Et0],1);switch(t){case 0:break;case 1:return;default:if(!VN(uB(x))){fB(x,1);return}}}}function Vh(x,r){var e=r-x[3][2]|0;return[0,_B(x),e]}function Hl(x,r,e){var t=Vh(x,e),u=Vh(x,r);return[0,x[1],u,t]}function h1(x,r){return Vh(x,r[6])}function oe(x,r){return Vh(x,r[3])}function zr(x,r){return Hl(x,r[6],r[3])}function VB(x,r){x:if(typeof r!="number"){switch(r[0]){case 2:var e=r[1][1];break;case 3:return r[1][1];case 4:var e=r[1];break;case 5:return r[1];case 8:var e=r[2];break;case 9:return r[1];case 10:return r[1];default:break x}return e}return zr(x,x[2])}function d1(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]}function GB(x,r,e){return d1(x,r,[24,bh(e)])}function nO(x,r,e,t){return d1(x,r,[25,e,t])}function ft(x,r){return d1(x,r,Kc0)}function J1(x,r){var e=r[3],t=[0,_B(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]}function jt(x,r,e,t,u){var i=[0,x[1],r,e],c=R2(t),v=u?0:1;return[0,i,[0,v,c,x[7][3][1]>>0)var a=d(t);else switch(v){case 0:var a=2;break;case 1:for(;;){z(t,3);var p=h(t),_=-1>>0)return gx(Lc0);switch(a){case 0:var E=$B(i,e,t,2,0),j=E[1],C=tt(Bx(Mc0,E[2])),P=0<=C?1:0,O=P&&(C<=55295?1:0);if(O)var K=O;else var F=57344<=C?1:0,K=F&&(C<=d8?1:0);var U=K?WB(i,j,C):d1(i,j,28);Mc(u,C);var i=U;break;case 1:var V=$B(i,e,t,3,1),Q=V[1],$=tt(Bx(Uc0,V[2])),x0=WB(i,Q,$);Mc(u,$);var i=x0;break;case 2:return[0,i,R2(u)];default:dh(t,u)}}}function A2(x,r,e){var t=ft(x,zr(x,r));return Zv(r),e(t,r)}function Uo(x,r,e){for(var t=x;;){kr(e);var u=h(e),i=-1>>0)var c=d(e);else switch(i){case 0:for(;;){z(e,3);var v=h(e),a=-1>>0){var y=ft(t,zr(t,e));return[0,y,oe(y,e)]}switch(c){case 0:var S=J1(t,e);dh(e,r);var t=S;break;case 1:var E=t[4]?nO(t,zr(t,e),It0,At0):t;return[0,E,oe(E,e)];case 2:if(t[4])return[0,t,oe(t,e)];ar(r,jt0);break;default:dh(e,r)}}}function t3(x,r,e){for(;;){kr(e);var t=h(e),u=13>>0)var i=d(e);else switch(u){case 0:var i=0;break;case 1:for(;;){z(e,2);var c=h(e),v=-1>>0)return gx(Pt0);switch(i){case 0:return[0,x,oe(x,e)];case 1:var a=oe(x,e),p=a[2],_=a[1],y=J1(x,e);return[0,y,[0,_,p-hh(e)|0]];default:dh(e,r)}}}function QB(x,r){function e(Q){return z(Q,3),X1(h(Q))===0?2:d(Q)}kr(r);var t=h(r),u=of>>0)var i=d(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:z(r,15);var i=ae(h(r))===0?15:d(r);break;case 4:z(r,4);var i=X1(h(r))===0?e(r):d(r);break;case 5:z(r,11);var i=X1(h(r))===0?e(r):d(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:z(r,14);var c=Lo(h(r));if(c===0)var i=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?12:d(r);else if(c===1&&Ir(h(r))===0){for(;;){var v=Fo(h(r));if(v!==0)break}var i=v===1?13:d(r)}else var i=d(r);break;case 13:var i=10;break;default:z(r,14);var i=Ir(h(r))===0&&Ir(h(r))===0?1:d(r)}if(16>>0)return gx(wc0);switch(i){case 0:var a=Ox(r);return[0,x,a,i2(r),0];case 1:var p=Ox(r);return[0,x,p,[0,tt(Bx(Tc0,p))],0];case 2:var _=Ox(r),y=tt(Bx(Ec0,_));return gv<=y?[0,x,_,[0,y>>>3|0,48+(y&7)|0],1]:[0,x,_,[0,y],1];case 3:var S=Ox(r);return[0,x,S,[0,tt(Bx(Sc0,S))],1];case 4:return[0,x,Ac0,[0,0],0];case 5:return[0,x,Ic0,[0,8],0];case 6:return[0,x,jc0,[0,12],0];case 7:return[0,x,Pc0,[0,10],0];case 8:return[0,x,Nc0,[0,13],0];case 9:return[0,x,Oc0,[0,9],0];case 10:return[0,x,Cc0,[0,11],0];case 11:var E=Ox(r);return[0,x,E,[0,tt(Bx(Dc0,E))],1];case 12:var j=Ox(r);return[0,x,j,[0,tt(Bx(Rc0,k1(j,1,Nx(j)-1|0)))],0];case 13:var C=Ox(r),P=tt(Bx(Fc0,k1(C,2,Nx(C)-3|0))),O=d8>>0)var _=d(i);else switch(p){case 0:var _=3;break;case 1:for(;;){z(i,4);var y=h(i),S=-1>>0)return gx(Nt0);switch(_){case 0:var E=Ox(i);if(ar(t,E),Sr(r,E))return[0,c,oe(c,i),v];ar(e,E);break;case 1:ar(t,Ot0);var j=QB(c,i),C=j[4],P=j[3],O=j[2],F=j[1],K=C||v;ar(t,O),aq(function(P0){return Mc(e,P0)},P);var c=F,v=K;break;case 2:var U=Ox(i);ar(t,U);var V=J1(ft(c,zr(c,i)),i);return ar(e,U),[0,V,oe(V,i),v];case 3:var Q=Ox(i);ar(t,Q);var $=ft(c,zr(c,i));return ar(e,Q),[0,$,oe($,i),v];default:var x0=i[6],e0=i[3]-x0|0,Z=T2(e0*4|0),c0=zl(i[1],x0,e0,Z);kN(t,Z,0,c0),kN(e,Z,0,c0)}}}function xX(x,r,e,t){for(var u=x;;){kr(t);var i=h(t),c=96>>0)var v=d(t);else switch(c){case 0:var v=0;break;case 1:for(;;){z(t,6);var a=h(t),p=-1>>0)return gx(Ct0);switch(v){case 0:return[0,ft(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:ut(e,92);var S=QB(u,t),E=S[3],j=S[1];ar(e,S[2]),aq(function(O){return Mc(r,O)},E);var u=j;break;case 4:ar(e,Dt0),ar(r,Rt0);var u=J1(u,t);break;case 5:ar(e,Ox(t)),ut(r,10);var u=J1(u,t);break;default:var C=Ox(t);ar(e,C),ar(r,C)}}}function xw0(x,r){function e(g){for(;;)if(z(g,33),or(h(g))!==0)return d(g)}function t(g){z(g,32);var G=D2(h(g));if(G!==0)return G===1?e(g):d(g);for(;;)if(z(g,30),or(h(g))!==0)return d(g)}function u(g){z(g,31);var G=D2(h(g));if(G!==0)return G===1?e(g):d(g);for(;;)if(z(g,29),or(h(g))!==0)return d(g)}function i(g){z(g,34);var G=x3(h(g));if(2>>0)return d(g);switch(G){case 0:return e(g);case 1:x:for(;;){z(g,34);var H=Xc(h(g));if(3>>0)return d(g);switch(H){case 0:return e(g);case 1:break;case 2:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var l0=Xc(h(g));if(3>>0)return d(g);switch(l0){case 0:return e(g);case 1:break;case 2:break x;default:return u(g)}}}break;default:return u(g)}}function c(g){for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var G=LB(h(g));if(4>>0)return d(g);switch(G){case 0:return e(g);case 1:return i(g);case 2:break;case 3:break x;default:return t(g)}}}}function v(g){for(;;)if(z(g,23),or(h(g))!==0)return d(g)}function a(g){for(;;)if(z(g,23),or(h(g))!==0)return d(g)}function p(g){for(;;)if(z(g,15),or(h(g))!==0)return d(g)}function _(g){for(;;)if(z(g,15),or(h(g))!==0)return d(g)}function y(g){for(;;)if(z(g,11),or(h(g))!==0)return d(g)}function S(g){for(;;)if(z(g,11),or(h(g))!==0)return d(g)}function E(g){for(;;)if(z(g,17),or(h(g))!==0)return d(g)}function j(g){for(;;)if(z(g,17),or(h(g))!==0)return d(g)}function C(g){for(;;)if(z(g,19),or(h(g))!==0)return d(g)}function P(g){for(;;)if(z(g,27),or(h(g))!==0)return d(g)}function O(g){z(g,26);var G=D2(h(g));if(G!==0)return G===1?P(g):d(g);for(;;)if(z(g,25),or(h(g))!==0)return d(g)}function F(g){for(;;)if(z(g,27),or(h(g))!==0)return d(g)}function K(g){z(g,26);var G=D2(h(g));if(G!==0)return G===1?F(g):d(g);for(;;)if(z(g,25),or(h(g))!==0)return d(g)}function U(g){for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,28);var G=Xc(h(g));if(3>>0)return d(g);switch(G){case 0:return F(g);case 1:break;case 2:break x;default:return K(g)}}}}function V(g){z(g,33);var G=UB(h(g));if(3>>0)return d(g);switch(G){case 0:return e(g);case 1:var H=ya(h(g));if(H===0)for(;;){z(g,28);var l0=x3(h(g));if(2>>0)return d(g);switch(l0){case 0:return F(g);case 1:break;default:return K(g)}}else{if(H!==1)return d(g);for(;;){z(g,28);var J=Xc(h(g));if(3>>0)return d(g);switch(J){case 0:return F(g);case 1:break;case 2:return U(g);default:return K(g)}}}break;case 2:for(;;){z(g,28);var s0=x3(h(g));if(2>>0)return d(g);switch(s0){case 0:return P(g);case 1:break;default:return O(g)}}break;default:for(;;){z(g,28);var _0=Xc(h(g));if(3<_0>>>0)return d(g);switch(_0){case 0:return P(g);case 1:break;case 2:return U(g);default:return O(g)}}}}function Q(g){z(g,34);var G=jB(h(g));if(3>>0)return d(g);switch(G){case 0:return e(g);case 1:x:for(;;){z(g,34);var H=ga(h(g));if(4>>0)return d(g);switch(H){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var l0=ga(h(g));if(4>>0)return d(g);switch(l0){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}}break;case 2:return V(g);default:return u(g)}}function $(g){return qh(h(g))===0&&Fh(h(g))===0&&BB(h(g))===0&&NB(h(g))===0&&OB(h(g))===0&&Rh(h(g))===0&&Wl(h(g))===0&&qh(h(g))===0&&wa(h(g))===0&&tO(h(g))===0&&Mo(h(g))===0?3:d(g)}function x0(g){return z(g,3),KB(h(g))===0?3:d(g)}function e0(g){var G=Hb0(h(g));if(36>>0)return d(g);switch(G){case 0:return 98;case 1:return 99;case 2:if(z(g,1),qc(h(g))!==0)return d(g);for(;;)if(z(g,1),qc(h(g))!==0)return d(g);break;case 3:return 0;case 4:return z(g,0),ae(h(g))===0?0:d(g);case 5:return z(g,88),en(h(g))===0?(z(g,58),en(h(g))===0?54:d(g)):d(g);case 6:return 7;case 7:z(g,95);var H=h(g),l0=32>>0)return d(g);switch(_0){case 0:return z(g,83),en(h(g))===0?70:d(g);case 1:return 4;default:return 69}case 14:z(g,80);var y0=h(g),J0=42>>0)return d(g);switch(gr){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}for(;;){if(mr(h(g))!==0)return d(g);x:for(;;){z(g,34);var Zx=ga(h(g));if(4>>0)return d(g);switch(Zx){case 0:return e(g);case 1:break;case 2:return V(g);case 3:break x;default:return u(g)}}}break;case 18:z(g,93);var er=PB(h(g));if(2>>0)return d(g);switch(er){case 0:z(g,2);var Fr=jh(h(g));if(2>>0)return d(g);switch(Fr){case 0:for(;;){var hx=jh(h(g));if(2>>0)return d(g);switch(hx){case 0:break;case 1:return x0(g);default:return $(g)}}break;case 1:return x0(g);default:return $(g)}break;case 1:return 5;default:return 92}break;case 19:z(g,34);var z1=DB(h(g));if(8>>0)return d(g);switch(z1){case 0:return e(g);case 1:return Q(g);case 2:x:{r:for(;;){z(g,20);var Ks=qB(h(g));if(4>>0)return d(g);switch(Ks){case 0:return C(g);case 1:return i(g);case 2:break;case 3:break x;default:break r}}z(g,19);var un=D2(h(g));if(un!==0)return un===1?C(g):d(g);for(;;)if(z(g,19),or(h(g))!==0)return d(g)}x:for(;;){z(g,18);var fn=Ih(h(g));if(3>>0)return d(g);switch(fn){case 0:return j(g);case 1:return i(g);case 2:break;default:break x}}z(g,17);var Go=D2(h(g));if(Go!==0)return Go===1?j(g):d(g);for(;;)if(z(g,17),or(h(g))!==0)return d(g);break;case 3:x:for(;;){z(g,18);var Wo=Ih(h(g));if(3>>0)return d(g);switch(Wo){case 0:return E(g);case 1:return i(g);case 2:break;default:break x}}z(g,17);var $o=D2(h(g));if($o!==0)return $o===1?E(g):d(g);for(;;)if(z(g,17),or(h(g))!==0)return d(g);break;case 4:z(g,33);var Na=CB(h(g));if(Na===0)return e(g);if(Na!==1)return d(g);x:{r:for(;;){z(g,12);var Ho=Kh(h(g));if(3>>0)return d(g);switch(Ho){case 0:return S(g);case 1:break;case 2:break x;default:break r}}z(g,10);var st=D2(h(g));if(st!==0)return st===1?S(g):d(g);for(;;)if(z(g,9),or(h(g))!==0)return d(g)}x:for(;;){if(Bc(h(g))!==0)return d(g);r:for(;;){z(g,12);var Ys=Kh(h(g));if(3>>0)return d(g);switch(Ys){case 0:return y(g);case 1:break;case 2:break r;default:break x}}}z(g,10);var Oa=D2(h(g));if(Oa!==0)return Oa===1?y(g):d(g);for(;;)if(z(g,9),or(h(g))!==0)return d(g);break;case 5:return V(g);case 6:z(g,33);var Ca=RB(h(g));if(Ca===0)return e(g);if(Ca!==1)return d(g);x:{r:for(;;){z(g,16);var at=Xh(h(g));if(3>>0)return d(g);switch(at){case 0:return _(g);case 1:break;case 2:break x;default:break r}}z(g,14);var Gc=D2(h(g));if(Gc!==0)return Gc===1?_(g):d(g);for(;;)if(z(g,13),or(h(g))!==0)return d(g)}x:for(;;){if(X1(h(g))!==0)return d(g);r:for(;;){z(g,16);var _r=Xh(h(g));if(3<_r>>>0)return d(g);switch(_r){case 0:return p(g);case 1:break;case 2:break r;default:break x}}}z(g,14);var Da=D2(h(g));if(Da!==0)return Da===1?p(g):d(g);for(;;)if(z(g,13),or(h(g))!==0)return d(g);break;case 7:z(g,33);var Ra=SB(h(g));if(Ra===0)return e(g);if(Ra!==1)return d(g);x:{r:for(;;){z(g,24);var Qo=Yh(h(g));if(3>>0)return d(g);switch(Qo){case 0:return a(g);case 1:break;case 2:break x;default:break r}}z(g,22);var Fa=D2(h(g));if(Fa!==0)return Fa===1?a(g):d(g);for(;;)if(z(g,21),or(h(g))!==0)return d(g)}x:for(;;){if(Ir(h(g))!==0)return d(g);r:for(;;){z(g,24);var zs=Yh(h(g));if(3>>0)return d(g);switch(zs){case 0:return v(g);case 1:break;case 2:break r;default:break x}}}z(g,22);var La=D2(h(g));if(La!==0)return La===1?v(g):d(g);for(;;)if(z(g,21),or(h(g))!==0)return d(g);break;default:return t(g)}break;case 20:z(g,34);var Vs=Nh(h(g));if(5>>0)return d(g);switch(Vs){case 0:return e(g);case 1:return Q(g);case 2:for(;;){z(g,34);var ot=Nh(h(g));if(5>>0)return d(g);switch(ot){case 0:return e(g);case 1:return Q(g);case 2:break;case 3:return V(g);case 4:return c(g);default:return t(g)}}break;case 3:return V(g);case 4:return c(g);default:return t(g)}break;case 21:return 46;case 22:return 44;case 23:z(g,78);var K2=h(g),Wc=59>>0)return gx(yc0);var c0=Z;if(50>c0)switch(c0){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var d0=h1(x,r),n0=Qr(Yr),P0=Uo(x,n0,r),h0=P0[1];return[1,h0,jt(h0,d0,P0[2],n0,1)];case 3:var g0=Ox(r);if(!x[5]){var v0=h1(x,r),p0=Qr(Yr);ar(p0,k1(g0,2,Nx(g0)-2|0));var w0=Uo(x,p0,r),T0=w0[1];return[1,T0,jt(T0,v0,w0[2],p0,1)]}var E0=x[4]?GB(x,zr(x,r),g0):x,N0=_h(1,E0),X0=hh(r);return Sr(Vl(r,X0-1|0,1),Ao)&&I(Vl(r,X0-2|0,1),Ao)?[0,N0,86]:[2,N0];case 4:if(x[4])return[2,_h(0,x)];Zv(r),kr(r);var A0=IB(h(r))===0?0:d(r);return A0===0?[0,x,z2]:gx(gc0);case 5:var rx=h1(x,r),B=Qr(Yr),G0=t3(x,B,r),W0=G0[1];return[1,W0,jt(W0,rx,G0[2],B,0)];case 6:if(r[6]!==0)return[0,x,_c0];var Y0=h1(x,r),V0=Qr(Yr),ex=t3(x,V0,r),Q0=ex[1],S0=[0,Q0[1],Y0,ex[2]];return[0,Q0,[6,S0,R2(V0)]];case 7:var q0=Ox(r),yx=h1(x,r),cx=Qr(Yr),Dx=Qr(Yr);ar(Dx,q0);var Ix=ZB(x,q0,cx,Dx,0,r),Xx=Ix[1],Z0=Ix[3],rr=[0,Xx[1],yx,Ix[2]],xr=R2(Dx);return[0,Xx,[2,[0,rr,R2(cx),xr,Z0]]];case 8:var fr=Qr(Yr),Hx=Qr(Yr),Y=h1(x,r),jx=xX(x,fr,Hx,r),hr=jx[1],Yx=jx[2],Ur=oe(hr,r),px=[0,hr[1],Y,Ur],w=R2(Hx);return[0,hr,[3,[0,px,R2(fr),w,1,Yx]]];case 9:return A2(x,r,function(g,G){kr(G);x:if(se(h(G))===0&&Ch(h(G))===0&&Bc(h(G))===0){r:for(;;){var H=Sh(h(G));if(2>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(Bc(h(G))===0){e:for(;;){var l0=Sh(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,0,Ox(G)]]:gx(dc0)});case 10:return[0,x,[1,0,Ox(r)]];case 11:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&Ch(h(G))===0&&Bc(h(G))===0){for(;;){z(G,0);var H=Eh(h(G));if(H!==0)break}if(H===1)for(;;){if(Bc(h(G))===0){for(;;){z(G,0);var l0=Eh(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,0,Ox(G)]]:gx(hc0)});case 12:return[0,x,[0,0,Ox(r)]];case 13:return A2(x,r,function(g,G){kr(G);x:if(se(h(G))===0&&Mh(h(G))===0&&X1(h(G))===0){r:for(;;){var H=Oh(h(G));if(2>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(X1(h(G))===0){e:for(;;){var l0=Oh(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,1,Ox(G)]]:gx(mc0)});case 14:return[0,x,[1,1,Ox(r)]];case 15:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&Mh(h(G))===0&&X1(h(G))===0){for(;;){z(G,0);var H=Ph(h(G));if(H!==0)break}if(H===1)for(;;){if(X1(h(G))===0){for(;;){z(G,0);var l0=Ph(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,3,Ox(G)]]:gx(kc0)});case 16:return[0,x,[0,3,Ox(r)]];case 17:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0){for(;;){var H=h(G),l0=47>>0){var s0=d(G);break x}switch(H){case 0:break;case 1:break r;default:var s0=0;break x}}for(;;){r:{if(Ir(h(G))===0){e:for(;;){var l0=Ah(h(G));if(2>>0){var J=d(G);break r}switch(l0){case 0:break;case 1:break e;default:var J=0;break r}}continue}var J=d(G)}var s0=J;break}}else var s0=d(G);return s0===0?[0,g,[1,2,Ox(G)]]:gx(vc0)});case 22:return[0,x,[1,2,Ox(r)]];case 23:return A2(x,r,function(g,G){if(kr(G),se(h(G))===0&&wh(h(G))===0&&Ir(h(G))===0){for(;;){z(G,0);var H=Bh(h(G));if(H!==0)break}if(H===1)for(;;){if(Ir(h(G))===0){for(;;){z(G,0);var l0=Bh(h(G));if(l0!==0)break}if(l0===1)continue;var J=d(G)}else var J=d(G);var s0=J;break}else var s0=d(G)}else var s0=d(G);return s0===0?[0,g,[0,4,Ox(G)]]:gx(oc0)});case 24:return[0,x,[0,4,Ox(r)]];case 25:return A2(x,r,function(g,G){function H(er){for(;;){var Fr=At(h(er));if(2>>0)return d(er);switch(Fr){case 0:break;case 1:for(;;){if(mr(h(er))!==0)return d(er);x:for(;;){var hx=At(h(er));if(2>>0)return d(er);switch(hx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function l0(er){for(;;){var Fr=r3(h(er));if(Fr!==0)return Fr===1?0:d(er)}}function J(er){var Fr=zh(h(er));if(2>>0)return d(er);switch(Fr){case 0:var hx=ya(h(er));return hx===0?l0(er):hx===1?H(er):d(er);case 1:return l0(er);default:return H(er)}}function s0(er){var Fr=Uh(h(er));if(Fr!==0)return Fr===1?J(er):d(er);x:for(;;){var hx=Z1(h(er));if(2>>0)return d(er);switch(hx){case 0:break;case 1:return J(er);default:break x}}for(;;){if(mr(h(er))!==0)return d(er);x:for(;;){var z1=Z1(h(er));if(2>>0)return d(er);switch(z1){case 0:break;case 1:return J(er);default:break x}}}}kr(G);var _0=da(h(G));if(2<_0>>>0)var y0=d(G);else x:switch(_0){case 0:if(mr(h(G))===0){r:for(;;){var J0=Z1(h(G));if(2>>0){var y0=d(G);break x}switch(J0){case 0:break;case 1:var y0=J(G);break x;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var Rx=Z1(h(G));if(2>>0){var kx=d(G);break r}switch(Rx){case 0:break;case 1:var kx=J(G);break r;default:break e}}continue}var kx=d(G)}var y0=kx;break}}else var y0=d(G);break;case 1:var Jx=Th(h(G)),y0=Jx===0?s0(G):Jx===1?J(G):d(G);break;default:r:for(;;){var gr=Lh(h(G));if(2>>0){var y0=d(G);break}switch(gr){case 0:var y0=s0(G);break r;case 1:break;default:var y0=J(G);break r}}}if(y0!==0)return gx(ac0);var Zx=d1(g,zr(g,G),43);return[0,Zx,[1,2,Ox(G)]]});case 26:var L=d1(x,zr(x,r),43);return[0,L,[1,2,Ox(r)]];case 27:return A2(x,r,function(g,G){function H(Zx){for(;;){z(Zx,0);var er=_a(h(Zx));if(er!==0){if(er!==1)return d(Zx);for(;;){if(mr(h(Zx))!==0)return d(Zx);for(;;){z(Zx,0);var Fr=_a(h(Zx));if(Fr!==0)break}if(Fr!==1)return d(Zx)}}}}function l0(Zx){for(;;)if(z(Zx,0),mr(h(Zx))!==0)return d(Zx)}function J(Zx){var er=zh(h(Zx));if(2>>0)return d(Zx);switch(er){case 0:var Fr=ya(h(Zx));return Fr===0?l0(Zx):Fr===1?H(Zx):d(Zx);case 1:return l0(Zx);default:return H(Zx)}}function s0(Zx){var er=Uh(h(Zx));if(er!==0)return er===1?J(Zx):d(Zx);x:for(;;){var Fr=Z1(h(Zx));if(2>>0)return d(Zx);switch(Fr){case 0:break;case 1:return J(Zx);default:break x}}for(;;){if(mr(h(Zx))!==0)return d(Zx);x:for(;;){var hx=Z1(h(Zx));if(2>>0)return d(Zx);switch(hx){case 0:break;case 1:return J(Zx);default:break x}}}}kr(G);var _0=da(h(G));if(2<_0>>>0)var y0=d(G);else x:switch(_0){case 0:if(mr(h(G))===0){r:for(;;){var J0=Z1(h(G));if(2>>0){var y0=d(G);break x}switch(J0){case 0:break;case 1:var y0=J(G);break x;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var Rx=Z1(h(G));if(2>>0){var kx=d(G);break r}switch(Rx){case 0:break;case 1:var kx=J(G);break r;default:break e}}continue}var kx=d(G)}var y0=kx;break}}else var y0=d(G);break;case 1:var Jx=Th(h(G)),y0=Jx===0?s0(G):Jx===1?J(G):d(G);break;default:r:for(;;){var gr=Lh(h(G));if(2>>0){var y0=d(G);break}switch(gr){case 0:var y0=s0(G);break r;case 1:break;default:var y0=J(G);break r}}}return y0===0?[0,g,[0,4,Ox(G)]]:gx(sc0)});case 28:return[0,x,[0,4,Ox(r)]];case 29:return A2(x,r,function(g,G){function H(Jx){for(;;){var gr=At(h(Jx));if(2>>0)return d(Jx);switch(gr){case 0:break;case 1:for(;;){if(mr(h(Jx))!==0)return d(Jx);x:for(;;){var Zx=At(h(Jx));if(2>>0)return d(Jx);switch(Zx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function l0(Jx){var gr=r3(h(Jx));return gr===0?H(Jx):gr===1?0:d(Jx)}kr(G);var J=da(h(G));if(2>>0)var s0=d(G);else x:switch(J){case 0:var s0=mr(h(G))===0?H(G):d(G);break;case 1:for(;;){var _0=e3(h(G));if(_0===0){var s0=l0(G);break}if(_0!==1){var s0=d(G);break}}break;default:r:for(;;){var y0=ba(h(G));if(2>>0){var s0=d(G);break x}switch(y0){case 0:var s0=l0(G);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var J0=ba(h(G));if(2>>0){var Rx=d(G);break r}switch(J0){case 0:var Rx=l0(G);break r;case 1:break;default:break e}}continue}var Rx=d(G)}var s0=Rx;break}}if(s0!==0)return gx(cc0);var kx=d1(g,zr(g,G),35);return[0,kx,[1,2,Ox(G)]]});case 30:return A2(x,r,function(g,G){kr(G);var H=ya(h(G));x:if(H===0)for(;;){var l0=r3(h(G));if(l0!==0){if(l0===1){var y0=0;break}var y0=d(G);break}}else if(H===1){r:for(;;){var J=At(h(G));if(2>>0){var y0=d(G);break x}switch(J){case 0:break;case 1:break r;default:var y0=0;break x}}for(;;){r:{if(mr(h(G))===0){e:for(;;){var s0=At(h(G));if(2>>0){var _0=d(G);break r}switch(s0){case 0:break;case 1:break e;default:var _0=0;break r}}continue}var _0=d(G)}var y0=_0;break}}else var y0=d(G);return y0===0?[0,g,[1,2,Ox(G)]]:gx(fc0)});case 31:var L0=d1(x,zr(x,r),35);return[0,L0,[1,2,Ox(r)]];case 32:return[0,x,[1,2,Ox(r)]];case 33:return A2(x,r,function(g,G){function H(kx){for(;;){z(kx,0);var Jx=_a(h(kx));if(Jx!==0){if(Jx!==1)return d(kx);for(;;){if(mr(h(kx))!==0)return d(kx);for(;;){z(kx,0);var gr=_a(h(kx));if(gr!==0)break}if(gr!==1)return d(kx)}}}}function l0(kx){return z(kx,0),mr(h(kx))===0?H(kx):d(kx)}kr(G);var J=da(h(G));if(2>>0)var s0=d(G);else x:switch(J){case 0:var s0=mr(h(G))===0?H(G):d(G);break;case 1:for(;;){z(G,0);var _0=e3(h(G));if(_0===0){var s0=l0(G);break}if(_0!==1){var s0=d(G);break}}break;default:r:for(;;){z(G,0);var y0=ba(h(G));if(2>>0){var s0=d(G);break x}switch(y0){case 0:var s0=l0(G);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(G))===0){e:for(;;){z(G,0);var J0=ba(h(G));if(2>>0){var Rx=d(G);break r}switch(J0){case 0:var Rx=l0(G);break r;case 1:break;default:break e}}continue}var Rx=d(G)}var s0=Rx;break}}return s0===0?[0,g,[0,4,Ox(G)]]:gx(ic0)});case 34:return[0,x,[0,4,Ox(r)]];case 35:var sx=zr(x,r),lx=Ox(r);return[0,x,[4,sx,lx,lx]];case 36:return[0,x,0];case 37:return[0,x,1];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,6];case 41:return[0,x,7];case 42:return[0,x,12];case 43:return[0,x,10];case 44:return[0,x,8];case 45:return[0,x,9];case 46:return[0,x,86];case 47:Zv(r),kr(r);var ax=h(r),Vx=62=qr)return[0,x,18];var Ex=ix(M0,jv);if(0<=Ex){if(0>=Ex)return[0,x,51];var $0=ix(M0,ss);if(0<=$0){if(0>=$0)return[0,x,46];if(!I(M0,al))return[0,x,24];if(!I(M0,ps))return[0,x,47];if(!I(M0,Y4))return[0,x,25];if(!I(M0,y4))return[0,x,26];if(!I(M0,M1))return[0,x,58]}else{if(!I(M0,Pe))return[0,x,20];if(!I(M0,uo))return[0,x,21];if(!I(M0,je))return[0,x,22];if(!I(M0,as))return[0,x,31];if(!I(M0,lm))return[0,x,23];if(!I(M0,qu))return[0,x,61]}}else{var Gx=ix(M0,ek);if(0<=Gx){if(0>=Gx)return[0,x,54];if(!I(M0,_l))return[0,x,55];if(!I(M0,z3))return[0,x,56];if(!I(M0,U3))return[0,x,57];if(!I(M0,Se))return[0,x,19];if(!I(M0,Ae))return[0,x,42]}else{if(!I(M0,W1))return[0,x,53];if(!I(M0,mv))return[0,x,28];if(!I(M0,no))return[0,x,44];if(!I(M0,oo))return[0,x,29];if(!I(M0,$9))return[0,x,63];if(!I(M0,q9))return[0,x,62]}}}else{var j0=ix(M0,xm);if(0<=j0){if(0>=j0)return[0,x,37];var cr=ix(M0,Sk);if(0<=cr){if(0>=cr)return[0,x,39];if(!I(M0,pv))return[0,x,15];if(!I(M0,ik))return[0,x,16];if(!I(M0,lo))return[0,x,52];if(!I(M0,R1))return[0,x,50];if(!I(M0,aa))return[0,x,17]}else{if(!I(M0,B4))return[0,x,43];if(!I(M0,sl))return[0,x,48];if(!I(M0,ok))return[0,x,49];if(!I(M0,hc))return[0,x,41];if(!I(M0,ls))return[0,x,30];if(!I(M0,F4))return[0,x,38]}}else{var tx=ix(M0,ul);if(0<=tx){if(0>=tx)return[0,x,27];if(!I(M0,_e))return[0,x,35];if(!I(M0,we))return[0,x,59];if(!I(M0,H3))return[0,x,60];if(!I(M0,io))return[0,x,36];if(!I(M0,nl))return[0,x,45]}else{if(!I(M0,oa))return[0,x,64];if(!I(M0,_o))return[0,x,65];if(!I(M0,Ee))return[0,x,32];if(!I(M0,$4))return[0,x,33];if(!I(M0,x8))return[0,x,34];if(!I(M0,K3))return[0,x,40]}}}var Mx=i2(r),b2=HB(x,Mx),Ux=b2[2],c1=b2[1];return[0,c1,[4,Lx,Ux,Gl(Mx)]];case 98:var Rr=x[4]?d1(x,zr(x,r),91):x;return[0,Rr,Dr];default:var U2=ft(x,zr(x,r));return[0,U2,[7,Ox(r)]]}}function rw0(x,r,e){for(var t=x;;){kr(e);var u=h(e),i=92>>0)var c=d(e);else switch(i){case 0:var c=0;break;case 1:for(;;){z(e,7);var v=h(e),a=-1>>0)var c=d(e);else switch(_){case 0:var c=2;break;case 1:var c=1;break;default:z(e,1);var c=ae(h(e))===0?1:d(e)}}if(7>>0)return gx(Mt0);switch(c){case 0:return[0,d1(t,zr(t,e),Ni),Ut0];case 1:return[0,J1(d1(t,zr(t,e),Ni),e),qt0];case 2:ar(r,Ox(e));break;case 3:var y=Ox(e);return[0,t,k1(y,1,Nx(y)-1|0)];case 4:return[0,t,Bt0];case 5:ut(r,91);x:{r:{e:{t:{n:for(;;){kr(e);var S=h(e),E=93>>0)var j=d(e);else switch(E){case 0:var j=0;break;case 1:for(;;){z(e,5);var C=h(e),P=-1>>0)break r;switch(j){case 0:break e;case 1:ar(r,Lt0);break;case 2:ut(r,92),ut(r,93);break;case 3:break t;case 4:break n;default:ar(r,Ox(e))}}var K=J1(d1(t,zr(t,e),Ni),e);break x}ut(r,93);var K=t;break x}var K=t;break x}var K=gx(Ft0)}var t=K;break;case 6:return[0,J1(d1(t,zr(t,e),Ni),e),Xt0];default:ar(r,Ox(e))}}}function ew0(x,r){kr(r);var e=h(r),t=Eo>>0)var u=d(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(z(r,2),qc(h(r))===0){for(;z(r,2),qc(h(r))===0;);var u=d(r)}else var u=d(r);break;case 3:var u=1;break;case 4:z(r,1);var u=ae(h(r))===0?1:d(r);break;default:z(r,5);var i=Jh(h(r)),u=i===0?4:i===1?3:d(r)}if(6>>0)return gx(uc0);switch(u){case 0:return[0,x,Dr];case 1:return[2,J1(x,r)];case 2:return[2,x];case 3:var c=h1(x,r),v=Qr(Yr),a=t3(x,v,r),p=a[1];return[1,p,jt(p,c,a[2],v,0)];case 4:var _=h1(x,r),y=Qr(Yr),S=Uo(x,y,r),E=S[1];return[1,E,jt(E,_,S[2],y,1)];case 5:var j=h1(x,r),C=Qr(Yr),P=rw0(x,C,r),O=P[1],F=P[2],K=oe(O,r),U=[0,O[1],j,K];return[0,O,[5,U,R2(C),F]];default:var V=ft(x,zr(x,r));return[0,V,[7,Ox(r)]]}}function rX(x){var r=ix(x,"iexcl");if(0<=r){if(0>=r)return nc0;var e=ix(x,"prime");if(0<=e){if(0>=e)return tc0;var t=ix(x,"sup1");if(0<=t){if(0>=t)return ec0;var u=ix(x,"uarr");if(0<=u){if(0>=u)return rc0;var i=ix(x,"xi");if(0<=i){if(0>=i)return xc0;if(!I(x,"yacute"))return Zf0;if(!I(x,"yen"))return Qf0;if(!I(x,"yuml"))return Hf0;if(!I(x,"zeta"))return $f0;if(!I(x,"zwj"))return Wf0;if(!I(x,"zwnj"))return Gf0}else{if(!I(x,"ucirc"))return Vf0;if(!I(x,"ugrave"))return zf0;if(!I(x,"uml"))return Yf0;if(!I(x,"upsih"))return Kf0;if(!I(x,"upsilon"))return Jf0;if(!I(x,"uuml"))return Xf0;if(!I(x,"weierp"))return Bf0}}else{var c=ix(x,"thetasym");if(0<=c){if(0>=c)return qf0;if(!I(x,"thinsp"))return Uf0;if(!I(x,"thorn"))return Mf0;if(!I(x,"tilde"))return Lf0;if(!I(x,"times"))return Ff0;if(!I(x,"trade"))return Rf0;if(!I(x,"uArr"))return Df0;if(!I(x,"uacute"))return Cf0}else{if(!I(x,"sup2"))return Of0;if(!I(x,"sup3"))return Nf0;if(!I(x,"supe"))return Pf0;if(!I(x,"szlig"))return jf0;if(!I(x,"tau"))return If0;if(!I(x,"there4"))return Af0;if(!I(x,"theta"))return Sf0}}}else{var v=ix(x,"rlm");if(0<=v){if(0>=v)return Ef0;var a=ix(x,"sigma");if(0<=a){if(0>=a)return Tf0;if(!I(x,"sigmaf"))return wf0;if(!I(x,"sim"))return bf0;if(!I(x,"spades"))return _f0;if(!I(x,"sub"))return gf0;if(!I(x,"sube"))return yf0;if(!I(x,"sum"))return df0;if(!I(x,"sup"))return hf0}else{if(!I(x,"rsaquo"))return mf0;if(!I(x,"rsquo"))return kf0;if(!I(x,"sbquo"))return pf0;if(!I(x,"scaron"))return lf0;if(!I(x,"sdot"))return vf0;if(!I(x,"sect"))return of0;if(!I(x,"shy"))return af0}}else{var p=ix(x,"raquo");if(0<=p){if(0>=p)return sf0;if(!I(x,"rarr"))return cf0;if(!I(x,"rceil"))return ff0;if(!I(x,"rdquo"))return if0;if(!I(x,"real"))return uf0;if(!I(x,"reg"))return nf0;if(!I(x,"rfloor"))return tf0;if(!I(x,"rho"))return ef0}else{if(!I(x,"prod"))return rf0;if(!I(x,"prop"))return xf0;if(!I(x,"psi"))return Zi0;if(!I(x,"quot"))return Qi0;if(!I(x,"rArr"))return Hi0;if(!I(x,"radic"))return $i0;if(!I(x,"rang"))return Wi0}}}}else{var _=ix(x,"ndash");if(0<=_){if(0>=_)return Gi0;var y=ix(x,"or");if(0<=y){if(0>=y)return Vi0;var S=ix(x,"part");if(0<=S){if(0>=S)return zi0;if(!I(x,"permil"))return Yi0;if(!I(x,"perp"))return Ki0;if(!I(x,"phi"))return Ji0;if(!I(x,"pi"))return Xi0;if(!I(x,"piv"))return Bi0;if(!I(x,"plusmn"))return qi0;if(!I(x,"pound"))return Ui0}else{if(!I(x,"ordf"))return Mi0;if(!I(x,"ordm"))return Li0;if(!I(x,"oslash"))return Fi0;if(!I(x,"otilde"))return Ri0;if(!I(x,"otimes"))return Di0;if(!I(x,"ouml"))return Ci0;if(!I(x,"para"))return Oi0}}else{var E=ix(x,"oacute");if(0<=E){if(0>=E)return Ni0;if(!I(x,"ocirc"))return Pi0;if(!I(x,"oelig"))return ji0;if(!I(x,"ograve"))return Ii0;if(!I(x,"oline"))return Ai0;if(!I(x,"omega"))return Si0;if(!I(x,"omicron"))return Ei0;if(!I(x,"oplus"))return Ti0}else{if(!I(x,"ne"))return wi0;if(!I(x,"ni"))return bi0;if(!I(x,"not"))return _i0;if(!I(x,"notin"))return gi0;if(!I(x,"nsub"))return yi0;if(!I(x,"ntilde"))return di0;if(!I(x,"nu"))return hi0}}}else{var j=ix(x,"le");if(0<=j){if(0>=j)return mi0;var C=ix(x,"macr");if(0<=C){if(0>=C)return ki0;if(!I(x,"mdash"))return pi0;if(!I(x,"micro"))return li0;if(!I(x,"middot"))return vi0;if(!I(x,OR))return oi0;if(!I(x,"mu"))return ai0;if(!I(x,"nabla"))return si0;if(!I(x,"nbsp"))return ci0}else{if(!I(x,"lfloor"))return fi0;if(!I(x,"lowast"))return ii0;if(!I(x,"loz"))return ui0;if(!I(x,"lrm"))return ni0;if(!I(x,"lsaquo"))return ti0;if(!I(x,"lsquo"))return ei0;if(!I(x,"lt"))return ri0}}else{var P=ix(x,"kappa");if(0<=P){if(0>=P)return xi0;if(!I(x,"lArr"))return Zu0;if(!I(x,"lambda"))return Qu0;if(!I(x,"lang"))return Hu0;if(!I(x,"laquo"))return $u0;if(!I(x,"larr"))return Wu0;if(!I(x,"lceil"))return Gu0;if(!I(x,"ldquo"))return Vu0}else{if(!I(x,"igrave"))return zu0;if(!I(x,"image"))return Yu0;if(!I(x,"infin"))return Ku0;if(!I(x,"iota"))return Ju0;if(!I(x,"iquest"))return Xu0;if(!I(x,"isin"))return Bu0;if(!I(x,"iuml"))return qu0}}}}}else{var O=ix(x,"aelig");if(0<=O){if(0>=O)return Uu0;var F=ix(x,"delta");if(0<=F){if(0>=F)return Mu0;var K=ix(x,"fnof");if(0<=K){if(0>=K)return Lu0;var U=ix(x,"gt");if(0<=U){if(0>=U)return Fu0;if(!I(x,"hArr"))return Ru0;if(!I(x,"harr"))return Du0;if(!I(x,"hearts"))return Cu0;if(!I(x,"hellip"))return Ou0;if(!I(x,"iacute"))return Nu0;if(!I(x,"icirc"))return Pu0}else{if(!I(x,"forall"))return ju0;if(!I(x,"frac12"))return Iu0;if(!I(x,"frac14"))return Au0;if(!I(x,"frac34"))return Su0;if(!I(x,"frasl"))return Eu0;if(!I(x,"gamma"))return Tu0;if(!I(x,"ge"))return wu0}}else{var V=ix(x,"ensp");if(0<=V){if(0>=V)return bu0;if(!I(x,"epsilon"))return _u0;if(!I(x,"equiv"))return gu0;if(!I(x,"eta"))return yu0;if(!I(x,"eth"))return du0;if(!I(x,"euml"))return hu0;if(!I(x,"euro"))return mu0;if(!I(x,"exist"))return ku0}else{if(!I(x,"diams"))return pu0;if(!I(x,"divide"))return lu0;if(!I(x,"eacute"))return vu0;if(!I(x,"ecirc"))return ou0;if(!I(x,"egrave"))return au0;if(!I(x,ie))return su0;if(!I(x,"emsp"))return cu0}}}else{var Q=ix(x,"cap");if(0<=Q){if(0>=Q)return fu0;var $=ix(x,"copy");if(0<=$){if(0>=$)return iu0;if(!I(x,"crarr"))return uu0;if(!I(x,"cup"))return nu0;if(!I(x,"curren"))return tu0;if(!I(x,"dArr"))return eu0;if(!I(x,"dagger"))return ru0;if(!I(x,"darr"))return xu0;if(!I(x,"deg"))return Z70}else{if(!I(x,"ccedil"))return Q70;if(!I(x,"cedil"))return H70;if(!I(x,"cent"))return $70;if(!I(x,"chi"))return W70;if(!I(x,"circ"))return G70;if(!I(x,"clubs"))return V70;if(!I(x,"cong"))return z70}}else{var x0=ix(x,"aring");if(0<=x0){if(0>=x0)return Y70;if(!I(x,"asymp"))return K70;if(!I(x,"atilde"))return J70;if(!I(x,"auml"))return X70;if(!I(x,"bdquo"))return B70;if(!I(x,"beta"))return q70;if(!I(x,"brvbar"))return U70;if(!I(x,"bull"))return M70}else{if(!I(x,"agrave"))return L70;if(!I(x,"alefsym"))return F70;if(!I(x,"alpha"))return R70;if(!I(x,"amp"))return D70;if(!I(x,"and"))return C70;if(!I(x,"ang"))return O70;if(!I(x,"apos"))return N70}}}}else{var e0=ix(x,"Nu");if(0<=e0){if(0>=e0)return P70;var Z=ix(x,"Sigma");if(0<=Z){if(0>=Z)return j70;var c0=ix(x,"Uuml");if(0<=c0){if(0>=c0)return I70;if(!I(x,"Xi"))return A70;if(!I(x,"Yacute"))return S70;if(!I(x,"Yuml"))return E70;if(!I(x,"Zeta"))return T70;if(!I(x,"aacute"))return w70;if(!I(x,"acirc"))return b70;if(!I(x,"acute"))return _70}else{if(!I(x,"THORN"))return g70;if(!I(x,"Tau"))return y70;if(!I(x,"Theta"))return d70;if(!I(x,"Uacute"))return h70;if(!I(x,"Ucirc"))return m70;if(!I(x,"Ugrave"))return k70;if(!I(x,"Upsilon"))return p70}}else{var d0=ix(x,"Otilde");if(0<=d0){if(0>=d0)return l70;if(!I(x,"Ouml"))return v70;if(!I(x,"Phi"))return o70;if(!I(x,"Pi"))return a70;if(!I(x,"Prime"))return s70;if(!I(x,"Psi"))return c70;if(!I(x,"Rho"))return f70;if(!I(x,"Scaron"))return i70}else{if(!I(x,"OElig"))return u70;if(!I(x,"Oacute"))return n70;if(!I(x,"Ocirc"))return t70;if(!I(x,"Ograve"))return e70;if(!I(x,"Omega"))return r70;if(!I(x,"Omicron"))return x70;if(!I(x,"Oslash"))return Zn0}}}else{var n0=ix(x,"Eacute");if(0<=n0){if(0>=n0)return Qn0;var P0=ix(x,"Icirc");if(0<=P0){if(0>=P0)return Hn0;if(!I(x,"Igrave"))return $n0;if(!I(x,"Iota"))return Wn0;if(!I(x,"Iuml"))return Gn0;if(!I(x,"Kappa"))return Vn0;if(!I(x,"Lambda"))return zn0;if(!I(x,"Mu"))return Yn0;if(!I(x,"Ntilde"))return Kn0}else{if(!I(x,"Ecirc"))return Jn0;if(!I(x,"Egrave"))return Xn0;if(!I(x,"Epsilon"))return Bn0;if(!I(x,"Eta"))return qn0;if(!I(x,"Euml"))return Un0;if(!I(x,"Gamma"))return Mn0;if(!I(x,"Iacute"))return Ln0}}else{var h0=ix(x,"Atilde");if(0<=h0){if(0>=h0)return Fn0;if(!I(x,"Auml"))return Rn0;if(!I(x,"Beta"))return Dn0;if(!I(x,"Ccedil"))return Cn0;if(!I(x,"Chi"))return On0;if(!I(x,"Dagger"))return Nn0;if(!I(x,"Delta"))return Pn0;if(!I(x,"ETH"))return jn0}else{if(!I(x,"'int'"))return In0;if(!I(x,"AElig"))return An0;if(!I(x,"Aacute"))return Sn0;if(!I(x,"Acirc"))return En0;if(!I(x,"Agrave"))return Tn0;if(!I(x,"Alpha"))return wn0;if(!I(x,"Aring"))return bn0}}}}}return 0}function eX(x,r,e,t){for(var u=x;;){var i=function(d0){for(;;)if(z(d0,8),xO(h(d0))!==0)return d(d0)};kr(t);var c=h(t),v=ms>>0)var a=d(t);else switch(v){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:z(t,4);var a=ae(h(t))===0?4:d(t);break;case 4:z(t,8);var p=YB(h(t));if(p===0){var _=TB(h(t));if(_===0){for(;;){var y=EB(h(t));if(y!==0)break}var a=y===1?6:d(t)}else if(_===1&&Ir(h(t))===0){for(;;){var S=XB(h(t));if(S!==0)break}var a=S===1?5:d(t)}else var a=d(t)}else if(p===1&&or(h(t))===0){var E=It(h(t));if(E===0){var j=It(h(t));if(j===0){var C=It(h(t));if(C===0){var P=It(h(t));if(P===0){var O=It(h(t));if(O===0)var F=It(h(t)),a=F===0?MB(h(t))===0?7:d(t):F===1?7:d(t);else var a=O===1?7:d(t)}else var a=P===1?7:d(t)}else var a=C===1?7:d(t)}else var a=j===1?7:d(t)}else var a=E===1?7:d(t)}else var a=d(t);break;case 5:var a=0;break;case 6:z(t,1);var a=xO(h(t))===0?i(t):d(t);break;default:z(t,2);var a=xO(h(t))===0?i(t):d(t)}if(8>>0)return gx(Jt0);switch(a){case 0:return Zv(t),u;case 1:return nO(u,zr(u,t),Yt0,Kt0);case 2:return nO(u,zr(u,t),Vt0,zt0);case 3:return ft(u,zr(u,t));case 4:var K=Ox(t);ar(e,K),ar(r,K);var u=J1(u,t);break;case 5:var U=Ox(t),V=k1(U,3,Nx(U)-4|0);ar(e,U),Mc(r,tt(Bx(Gt0,V)));break;case 6:var Q=Ox(t),$=k1(Q,2,Nx(Q)-3|0);ar(e,Q),Mc(r,tt($));break;case 7:var x0=Ox(t),e0=k1(x0,1,Nx(x0)-2|0);ar(e,x0);var Z=rX(e0);Z?Mc(r,Z[1]):ar(r,Bx($t0,Bx(e0,Wt0)));break;default:var c0=Ox(t);ar(e,c0),ar(r,c0)}}}function tw0(x,r){kr(r);var e=Zb0(h(r));if(14>>0)var t=d(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(z(r,2),qc(h(r))===0){for(;z(r,2),qc(h(r))===0;);var t=d(r)}else var t=d(r);break;case 3:var t=1;break;case 4:z(r,1);var t=ae(h(r))===0?1:d(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:z(r,6);var u=Jh(h(r)),t=u===0?4:u===1?3:d(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(z(r,14),wa(h(r))===0){var i=Lo(h(r));if(i===0)var t=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?13:d(r);else if(i===1&&Ir(h(r))===0){for(;;){var c=Fo(h(r));if(c!==0)break}var t=c===1?13:d(r)}else var t=d(r)}else var t=d(r);break;default:var t=8}if(14>>0)return gx(_n0);switch(t){case 0:return[0,x,Dr];case 1:return[2,J1(x,r)];case 2:return[2,x];case 3:var v=h1(x,r),a=Qr(Yr),p=t3(x,a,r),_=p[1];return[1,_,jt(_,v,p[2],a,0)];case 4:var y=h1(x,r),S=Qr(Yr),E=Uo(x,S,r),j=E[1];return[1,j,jt(j,y,E[2],S,1)];case 5:return[0,x,98];case 6:return[0,x,gt];case 7:return[0,x,99];case 8:return[0,x,0];case 9:return[0,x,86];case 10:return[0,x,10];case 11:return[0,x,82];case 12:var C=Ox(r),P=h1(x,r),O=Qr(Yr),F=Qr(Yr);ar(F,C);for(var K=Sr(C,"'"),U=x;;){kr(r);var V=h(r),Q=39>>0)var $=d(r);else switch(Q){case 0:var $=2;break;case 1:for(;;){z(r,7);var x0=h(r),e0=-1>>0)var T0=gx(Ht0);else switch($){case 0:if(!K){ut(F,39),ut(O,39);continue}var T0=U;break;case 1:if(K){ut(F,34),ut(O,34);continue}var T0=U;break;case 2:var T0=ft(U,zr(U,r));break;case 3:var E0=Ox(r);ar(F,E0),ar(O,E0);var U=J1(U,r);continue;case 4:var N0=Ox(r),X0=k1(N0,3,Nx(N0)-4|0);ar(F,N0),Mc(O,tt(Bx(Qt0,X0)));continue;case 5:var A0=Ox(r),rx=k1(A0,2,Nx(A0)-3|0);ar(F,A0),Mc(O,tt(rx));continue;case 6:var B=Ox(r),G0=k1(B,1,Nx(B)-2|0);ar(F,B);var W0=rX(G0);W0?Mc(O,W0[1]):ar(O,Bx(xn0,Bx(G0,Zt0)));continue;default:var Y0=Ox(r);ar(F,Y0),ar(O,Y0);continue}var V0=oe(T0,r);ar(F,C);var ex=R2(O),Q0=R2(F);return[0,T0,[10,[0,T0[1],P,V0],ex,Q0]]}case 13:for(var S0=r[6];;){kr(r);var q0=h(r),yx=r2>>0)var cx=d(r);else switch(yx){case 0:var cx=1;break;case 1:var cx=2;break;case 2:var cx=0;break;default:if(z(r,2),wa(h(r))===0){var Dx=Lo(h(r));if(Dx===0)var cx=Ir(h(r))===0&&Ir(h(r))===0&&Ir(h(r))===0?0:d(r);else if(Dx===1&&Ir(h(r))===0){for(;;){var Ix=Fo(h(r));if(Ix!==0)break}var cx=Ix===1?0:d(r)}else var cx=d(r)}else var cx=d(r)}if(2>>0)throw U0([0,Ar,St0],1);switch(cx){case 0:continue;case 1:break;default:if(VN(uB(r)))continue;fB(r,1)}var Xx=r[3];BN(r,S0);var Z0=i2(r),rr=Hl(x,S0,Xx);return[0,x,[8,Gl(Z0),rr]]}default:return[0,x,[7,Ox(r)]]}}function nw0(x,r){kr(r);var e=h(r),t=-1>>0)var u=d(r);else switch(t){case 0:var u=5;break;case 1:if(z(r,1),qc(h(r))===0){for(;z(r,1),qc(h(r))===0;);var u=d(r)}else var u=d(r);break;case 2:var u=0;break;case 3:z(r,0);var u=ae(h(r))===0?0:d(r);break;case 4:z(r,5);var i=Jh(h(r)),u=i===0?3:i===1?2:d(r);break;default:var u=4}if(5>>0)return gx(hn0);switch(u){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var c=h1(x,r),v=Qr(Yr),a=t3(x,v,r),p=a[1];return[1,p,jt(p,c,a[2],v,0)];case 3:var _=h1(x,r),y=Qr(Yr),S=Uo(x,y,r),E=S[1];return[1,E,jt(E,_,S[2],y,1)];case 4:var j=h1(x,r),C=Qr(Yr),P=Qr(Yr),O=xX(x,C,P,r),F=O[1],K=O[2],U=oe(F,r),V=[0,F[1],j,U],Q=R2(P);return[0,F,[3,[0,V,R2(C),Q,0,K]]];default:var $=ft(x,zr(x,r));return[0,$,[3,[0,zr($,r),yn0,dn0,0,1]]]}}function uw0(x,r){function e(w){for(;;)if(z(w,29),or(h(w))!==0)return d(w)}function t(w){z(w,28);var L=D2(h(w));if(L!==0)return L===1?e(w):d(w);for(;;)if(z(w,26),or(h(w))!==0)return d(w)}function u(w){z(w,27);var L=D2(h(w));if(L!==0)return L===1?e(w):d(w);for(;;)if(z(w,25),or(h(w))!==0)return d(w)}function i(w){z(w,30);var L=x3(h(w));if(2>>0)return d(w);switch(L){case 0:return e(w);case 1:x:for(;;){z(w,30);var L0=Xc(h(w));if(3>>0)return d(w);switch(L0){case 0:return e(w);case 1:break;case 2:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var sx=Xc(h(w));if(3>>0)return d(w);switch(sx){case 0:return e(w);case 1:break;case 2:break x;default:return u(w)}}}break;default:return u(w)}}function c(w){for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var L=LB(h(w));if(4>>0)return d(w);switch(L){case 0:return e(w);case 1:return i(w);case 2:break;case 3:break x;default:return t(w)}}}}function v(w){for(;;)if(z(w,19),or(h(w))!==0)return d(w)}function a(w){for(;;)if(z(w,19),or(h(w))!==0)return d(w)}function p(w){for(;;)if(z(w,13),or(h(w))!==0)return d(w)}function _(w){for(;;)if(z(w,13),or(h(w))!==0)return d(w)}function y(w){for(;;)if(z(w,9),or(h(w))!==0)return d(w)}function S(w){for(;;)if(z(w,9),or(h(w))!==0)return d(w)}function E(w){for(;;)if(z(w,15),or(h(w))!==0)return d(w)}function j(w){z(w,15);var L=D2(h(w));if(L!==0)return L===1?E(w):d(w);for(;;)if(z(w,15),or(h(w))!==0)return d(w)}function C(w){for(;;)if(z(w,23),or(h(w))!==0)return d(w)}function P(w){z(w,22);var L=D2(h(w));if(L!==0)return L===1?C(w):d(w);for(;;)if(z(w,21),or(h(w))!==0)return d(w)}function O(w){for(;;)if(z(w,23),or(h(w))!==0)return d(w)}function F(w){z(w,22);var L=D2(h(w));if(L!==0)return L===1?O(w):d(w);for(;;)if(z(w,21),or(h(w))!==0)return d(w)}function K(w){for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,24);var L=Xc(h(w));if(3>>0)return d(w);switch(L){case 0:return O(w);case 1:break;case 2:break x;default:return F(w)}}}}function U(w){z(w,29);var L=UB(h(w));if(3>>0)return d(w);switch(L){case 0:return e(w);case 1:var L0=ya(h(w));if(L0===0)for(;;){z(w,24);var sx=x3(h(w));if(2>>0)return d(w);switch(sx){case 0:return O(w);case 1:break;default:return F(w)}}else{if(L0!==1)return d(w);for(;;){z(w,24);var lx=Xc(h(w));if(3>>0)return d(w);switch(lx){case 0:return O(w);case 1:break;case 2:return K(w);default:return F(w)}}}break;case 2:for(;;){z(w,24);var ax=x3(h(w));if(2>>0)return d(w);switch(ax){case 0:return C(w);case 1:break;default:return P(w)}}break;default:for(;;){z(w,24);var Vx=Xc(h(w));if(3>>0)return d(w);switch(Vx){case 0:return C(w);case 1:break;case 2:return K(w);default:return P(w)}}}}function V(w){z(w,30);var L=jB(h(w));if(3>>0)return d(w);switch(L){case 0:return e(w);case 1:x:for(;;){z(w,30);var L0=ga(h(w));if(4>>0)return d(w);switch(L0){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var sx=ga(h(w));if(4>>0)return d(w);switch(sx){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}}break;case 2:return U(w);default:return u(w)}}function Q(w){return qh(h(w))===0&&Fh(h(w))===0&&BB(h(w))===0&&NB(h(w))===0&&OB(h(w))===0&&Rh(h(w))===0&&Wl(h(w))===0&&qh(h(w))===0&&wa(h(w))===0&&tO(h(w))===0&&Mo(h(w))===0?3:d(w)}function $(w){return z(w,3),KB(h(w))===0?3:d(w)}function x0(w){var L=Qb0(h(w));if(31>>0)return d(w);switch(L){case 0:return 66;case 1:return 67;case 2:if(z(w,1),qc(h(w))!==0)return d(w);for(;;)if(z(w,1),qc(h(w))!==0)return d(w);break;case 3:return 0;case 4:return z(w,0),ae(h(w))===0?0:d(w);case 5:return 6;case 6:return 65;case 7:if(z(w,67),Wl(h(w))!==0)return d(w);var L0=h(w),sx=Ze>>0)return d(w);switch(Lx){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}for(;;){if(mr(h(w))!==0)return d(w);x:for(;;){z(w,30);var M0=ga(h(w));if(4>>0)return d(w);switch(M0){case 0:return e(w);case 1:break;case 2:return U(w);case 3:break x;default:return u(w)}}}break;case 16:z(w,67);var qr=Jh(h(w));if(qr!==0)return qr===1?5:d(w);z(w,2);var Ex=jh(h(w));if(2>>0)return d(w);switch(Ex){case 0:for(;;){var $0=jh(h(w));if(2<$0>>>0)return d(w);switch($0){case 0:break;case 1:return $(w);default:return Q(w)}}break;case 1:return $(w);default:return Q(w)}break;case 17:z(w,30);var Gx=DB(h(w));if(8>>0)return d(w);switch(Gx){case 0:return e(w);case 1:return V(w);case 2:x:for(;;){z(w,16);var j0=qB(h(w));if(4>>0)return d(w);switch(j0){case 0:return E(w);case 1:return i(w);case 2:break;case 3:break x;default:return j(w)}}for(;;){z(w,15);var cr=Ih(h(w));if(3>>0)return d(w);switch(cr){case 0:return E(w);case 1:return i(w);case 2:break;default:return j(w)}}break;case 3:for(;;){z(w,30);var tx=Ih(h(w));if(3>>0)return d(w);switch(tx){case 0:return e(w);case 1:return i(w);case 2:break;default:return t(w)}}break;case 4:z(w,29);var Mx=CB(h(w));if(Mx===0)return e(w);if(Mx!==1)return d(w);x:{r:for(;;){z(w,10);var b2=Kh(h(w));if(3>>0)return d(w);switch(b2){case 0:return S(w);case 1:break;case 2:break x;default:break r}}z(w,8);var Ux=D2(h(w));if(Ux!==0)return Ux===1?S(w):d(w);for(;;)if(z(w,7),or(h(w))!==0)return d(w)}x:for(;;){if(Bc(h(w))!==0)return d(w);r:for(;;){z(w,10);var c1=Kh(h(w));if(3>>0)return d(w);switch(c1){case 0:return y(w);case 1:break;case 2:break r;default:break x}}}z(w,8);var Rr=D2(h(w));if(Rr!==0)return Rr===1?y(w):d(w);for(;;)if(z(w,7),or(h(w))!==0)return d(w);break;case 5:return U(w);case 6:z(w,29);var U2=RB(h(w));if(U2===0)return e(w);if(U2!==1)return d(w);x:{r:for(;;){z(w,14);var g=Xh(h(w));if(3>>0)return d(w);switch(g){case 0:return _(w);case 1:break;case 2:break x;default:break r}}z(w,12);var G=D2(h(w));if(G!==0)return G===1?_(w):d(w);for(;;)if(z(w,11),or(h(w))!==0)return d(w)}x:for(;;){if(X1(h(w))!==0)return d(w);r:for(;;){z(w,14);var H=Xh(h(w));if(3>>0)return d(w);switch(H){case 0:return p(w);case 1:break;case 2:break r;default:break x}}}z(w,12);var l0=D2(h(w));if(l0!==0)return l0===1?p(w):d(w);for(;;)if(z(w,11),or(h(w))!==0)return d(w);break;case 7:z(w,29);var J=SB(h(w));if(J===0)return e(w);if(J!==1)return d(w);x:{r:for(;;){z(w,20);var s0=Yh(h(w));if(3>>0)return d(w);switch(s0){case 0:return a(w);case 1:break;case 2:break x;default:break r}}z(w,18);var _0=D2(h(w));if(_0!==0)return _0===1?a(w):d(w);for(;;)if(z(w,17),or(h(w))!==0)return d(w)}x:for(;;){if(Ir(h(w))!==0)return d(w);r:for(;;){z(w,20);var y0=Yh(h(w));if(3>>0)return d(w);switch(y0){case 0:return v(w);case 1:break;case 2:break r;default:break x}}}z(w,18);var J0=D2(h(w));if(J0!==0)return J0===1?v(w):d(w);for(;;)if(z(w,17),or(h(w))!==0)return d(w);break;default:return t(w)}break;case 18:z(w,30);var Rx=Nh(h(w));if(5>>0)return d(w);switch(Rx){case 0:return e(w);case 1:return V(w);case 2:for(;;){z(w,30);var kx=Nh(h(w));if(5>>0)return d(w);switch(kx){case 0:return e(w);case 1:return V(w);case 2:break;case 3:return U(w);case 4:return c(w);default:return t(w)}}break;case 3:return U(w);case 4:return c(w);default:return t(w)}break;case 19:return 44;case 20:return 42;case 21:return 49;case 22:z(w,51);var Jx=h(w),gr=61>>0)return gx(ln0);var Z=e0;if(34>Z)switch(Z){case 0:return[2,J1(x,r)];case 1:return[2,x];case 2:var c0=h1(x,r),d0=Qr(Yr),n0=Uo(x,d0,r),P0=n0[1];return[1,P0,jt(P0,c0,n0[2],d0,1)];case 3:var h0=Ox(r);if(!x[5]){var g0=h1(x,r),v0=Qr(Yr);ar(v0,h0);var p0=Uo(x,v0,r),w0=p0[1];return[1,w0,jt(w0,g0,p0[2],v0,1)]}var T0=x[4]?GB(x,zr(x,r),h0):x,E0=_h(1,T0),N0=hh(r);return Sr(Vl(r,N0-1|0,1),Ao)&&I(Vl(r,N0-2|0,1),Ao)?[0,E0,86]:[2,E0];case 4:if(x[4])return[2,_h(0,x)];Zv(r),kr(r);var X0=IB(h(r))===0?0:d(r);return X0===0?[0,x,z2]:gx(pn0);case 5:var A0=h1(x,r),rx=Qr(Yr),B=t3(x,rx,r),G0=B[1];return[1,G0,jt(G0,A0,B[2],rx,0)];case 6:var W0=Ox(r),Y0=h1(x,r),V0=Qr(Yr),ex=Qr(Yr);ar(ex,W0);var Q0=ZB(x,W0,V0,ex,0,r),S0=Q0[1],q0=Q0[3],yx=[0,S0[1],Y0,Q0[2]],cx=R2(ex);return[0,S0,[2,[0,yx,R2(V0),cx,q0]]];case 7:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&Ch(h(L))===0&&Bc(h(L))===0){r:for(;;){var L0=Sh(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(Bc(h(L))===0){e:for(;;){var sx=Sh(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(0,i2(L))]:gx(vn0)});case 8:return[0,x,Nt(0,i2(r))];case 9:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&Ch(h(L))===0&&Bc(h(L))===0){for(;;){z(L,0);var L0=Eh(h(L));if(L0!==0)break}if(L0===1)for(;;){if(Bc(h(L))===0){for(;;){z(L,0);var sx=Eh(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(0,i2(L))]:gx(on0)});case 10:return[0,x,Pt(0,i2(r))];case 11:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&Mh(h(L))===0&&X1(h(L))===0){r:for(;;){var L0=Oh(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(X1(h(L))===0){e:for(;;){var sx=Oh(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(1,i2(L))]:gx(an0)});case 12:return[0,x,Nt(1,i2(r))];case 13:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&Mh(h(L))===0&&X1(h(L))===0){for(;;){z(L,0);var L0=Ph(h(L));if(L0!==0)break}if(L0===1)for(;;){if(X1(h(L))===0){for(;;){z(L,0);var sx=Ph(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(3,i2(L))]:gx(sn0)});case 14:return[0,x,Pt(3,i2(r))];case 15:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&X1(h(L))===0){for(;;)if(z(L,0),X1(h(L))!==0){var L0=d(L);break}}else var L0=d(L);return L0===0?[0,w,Pt(1,i2(L))]:gx(cn0)});case 16:return[0,x,Pt(1,i2(r))];case 17:return A2(x,r,function(w,L){kr(L);x:if(se(h(L))===0&&wh(h(L))===0&&Ir(h(L))===0){r:for(;;){var L0=Ah(h(L));if(2>>0){var ax=d(L);break x}switch(L0){case 0:break;case 1:break r;default:var ax=0;break x}}for(;;){r:{if(Ir(h(L))===0){e:for(;;){var sx=Ah(h(L));if(2>>0){var lx=d(L);break r}switch(sx){case 0:break;case 1:break e;default:var lx=0;break r}}continue}var lx=d(L)}var ax=lx;break}}else var ax=d(L);return ax===0?[0,w,Nt(2,i2(L))]:gx(fn0)});case 18:return[0,x,Nt(2,i2(r))];case 19:return A2(x,r,function(w,L){if(kr(L),se(h(L))===0&&wh(h(L))===0&&Ir(h(L))===0){for(;;){z(L,0);var L0=Bh(h(L));if(L0!==0)break}if(L0===1)for(;;){if(Ir(h(L))===0){for(;;){z(L,0);var sx=Bh(h(L));if(sx!==0)break}if(sx===1)continue;var lx=d(L)}else var lx=d(L);var ax=lx;break}else var ax=d(L)}else var ax=d(L);return ax===0?[0,w,Pt(4,i2(L))]:gx(in0)});case 20:return[0,x,Pt(4,i2(r))];case 21:return A2(x,r,function(w,L){function L0(j0){for(;;){var cr=At(h(j0));if(2>>0)return d(j0);switch(cr){case 0:break;case 1:for(;;){if(mr(h(j0))!==0)return d(j0);x:for(;;){var tx=At(h(j0));if(2>>0)return d(j0);switch(tx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function sx(j0){for(;;){var cr=r3(h(j0));if(cr!==0)return cr===1?0:d(j0)}}function lx(j0){var cr=zh(h(j0));if(2>>0)return d(j0);switch(cr){case 0:var tx=ya(h(j0));return tx===0?sx(j0):tx===1?L0(j0):d(j0);case 1:return sx(j0);default:return L0(j0)}}function ax(j0){var cr=Uh(h(j0));if(cr!==0)return cr===1?lx(j0):d(j0);x:for(;;){var tx=Z1(h(j0));if(2>>0)return d(j0);switch(tx){case 0:break;case 1:return lx(j0);default:break x}}for(;;){if(mr(h(j0))!==0)return d(j0);x:for(;;){var Mx=Z1(h(j0));if(2>>0)return d(j0);switch(Mx){case 0:break;case 1:return lx(j0);default:break x}}}}kr(L);var Vx=da(h(L));if(2>>0)var _x=d(L);else x:switch(Vx){case 0:if(mr(h(L))===0){r:for(;;){var zx=Z1(h(L));if(2>>0){var _x=d(L);break x}switch(zx){case 0:break;case 1:var _x=lx(L);break x;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var Lx=Z1(h(L));if(2>>0){var M0=d(L);break r}switch(Lx){case 0:break;case 1:var M0=lx(L);break r;default:break e}}continue}var M0=d(L)}var _x=M0;break}}else var _x=d(L);break;case 1:var qr=Th(h(L)),_x=qr===0?ax(L):qr===1?lx(L):d(L);break;default:r:for(;;){var Ex=Lh(h(L));if(2>>0){var _x=d(L);break}switch(Ex){case 0:var _x=ax(L);break r;case 1:break;default:var _x=lx(L);break r}}}if(_x!==0)return gx(un0);var $0=i2(L),Gx=d1(w,zr(w,L),43);return[0,Gx,Nt(2,$0)]});case 22:var Dx=i2(r),Ix=d1(x,zr(x,r),43);return[0,Ix,Nt(2,Dx)];case 23:return A2(x,r,function(w,L){function L0($0){for(;;){z($0,0);var Gx=_a(h($0));if(Gx!==0){if(Gx!==1)return d($0);for(;;){if(mr(h($0))!==0)return d($0);for(;;){z($0,0);var j0=_a(h($0));if(j0!==0)break}if(j0!==1)return d($0)}}}}function sx($0){for(;;)if(z($0,0),mr(h($0))!==0)return d($0)}function lx($0){var Gx=zh(h($0));if(2>>0)return d($0);switch(Gx){case 0:var j0=ya(h($0));return j0===0?sx($0):j0===1?L0($0):d($0);case 1:return sx($0);default:return L0($0)}}function ax($0){var Gx=Uh(h($0));if(Gx!==0)return Gx===1?lx($0):d($0);x:for(;;){var j0=Z1(h($0));if(2>>0)return d($0);switch(j0){case 0:break;case 1:return lx($0);default:break x}}for(;;){if(mr(h($0))!==0)return d($0);x:for(;;){var cr=Z1(h($0));if(2>>0)return d($0);switch(cr){case 0:break;case 1:return lx($0);default:break x}}}}kr(L);var Vx=da(h(L));if(2>>0)var _x=d(L);else x:switch(Vx){case 0:if(mr(h(L))===0){r:for(;;){var zx=Z1(h(L));if(2>>0){var _x=d(L);break x}switch(zx){case 0:break;case 1:var _x=lx(L);break x;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var Lx=Z1(h(L));if(2>>0){var M0=d(L);break r}switch(Lx){case 0:break;case 1:var M0=lx(L);break r;default:break e}}continue}var M0=d(L)}var _x=M0;break}}else var _x=d(L);break;case 1:var qr=Th(h(L)),_x=qr===0?ax(L):qr===1?lx(L):d(L);break;default:r:for(;;){var Ex=Lh(h(L));if(2>>0){var _x=d(L);break}switch(Ex){case 0:var _x=ax(L);break r;case 1:break;default:var _x=lx(L);break r}}}return _x===0?[0,w,Pt(4,i2(L))]:gx(nn0)});case 24:return[0,x,Pt(4,i2(r))];case 25:return A2(x,r,function(w,L){function L0(Ex){for(;;){var $0=At(h(Ex));if(2<$0>>>0)return d(Ex);switch($0){case 0:break;case 1:for(;;){if(mr(h(Ex))!==0)return d(Ex);x:for(;;){var Gx=At(h(Ex));if(2>>0)return d(Ex);switch(Gx){case 0:break;case 1:break x;default:return 0}}}break;default:return 0}}}function sx(Ex){var $0=r3(h(Ex));return $0===0?L0(Ex):$0===1?0:d(Ex)}kr(L);var lx=da(h(L));if(2>>0)var ax=d(L);else x:switch(lx){case 0:var ax=mr(h(L))===0?L0(L):d(L);break;case 1:for(;;){var Vx=e3(h(L));if(Vx===0){var ax=sx(L);break}if(Vx!==1){var ax=d(L);break}}break;default:r:for(;;){var _x=ba(h(L));if(2<_x>>>0){var ax=d(L);break x}switch(_x){case 0:var ax=sx(L);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var zx=ba(h(L));if(2>>0){var Lx=d(L);break r}switch(zx){case 0:var Lx=sx(L);break r;case 1:break;default:break e}}continue}var Lx=d(L)}var ax=Lx;break}}if(ax!==0)return gx(tn0);var M0=i2(L),qr=d1(w,zr(w,L),35);return[0,qr,Nt(2,M0)]});case 26:return A2(x,r,function(w,L){kr(L);var L0=ya(h(L));x:if(L0===0)for(;;){var sx=r3(h(L));if(sx!==0){if(sx===1){var _x=0;break}var _x=d(L);break}}else if(L0===1){r:for(;;){var lx=At(h(L));if(2>>0){var _x=d(L);break x}switch(lx){case 0:break;case 1:break r;default:var _x=0;break x}}for(;;){r:{if(mr(h(L))===0){e:for(;;){var ax=At(h(L));if(2>>0){var Vx=d(L);break r}switch(ax){case 0:break;case 1:break e;default:var Vx=0;break r}}continue}var Vx=d(L)}var _x=Vx;break}}else var _x=d(L);return _x===0?[0,w,Nt(2,i2(L))]:gx(en0)});case 27:var Xx=i2(r),Z0=d1(x,zr(x,r),35);return[0,Z0,Nt(2,Xx)];case 28:return[0,x,Nt(2,i2(r))];case 29:return A2(x,r,function(w,L){function L0(M0){for(;;){z(M0,0);var qr=_a(h(M0));if(qr!==0){if(qr!==1)return d(M0);for(;;){if(mr(h(M0))!==0)return d(M0);for(;;){z(M0,0);var Ex=_a(h(M0));if(Ex!==0)break}if(Ex!==1)return d(M0)}}}}function sx(M0){return z(M0,0),mr(h(M0))===0?L0(M0):d(M0)}kr(L);var lx=da(h(L));if(2>>0)var ax=d(L);else x:switch(lx){case 0:var ax=mr(h(L))===0?L0(L):d(L);break;case 1:for(;;){z(L,0);var Vx=e3(h(L));if(Vx===0){var ax=sx(L);break}if(Vx!==1){var ax=d(L);break}}break;default:r:for(;;){z(L,0);var _x=ba(h(L));if(2<_x>>>0){var ax=d(L);break x}switch(_x){case 0:var ax=sx(L);break x;case 1:break;default:break r}}for(;;){r:{if(mr(h(L))===0){e:for(;;){z(L,0);var zx=ba(h(L));if(2>>0){var Lx=d(L);break r}switch(zx){case 0:var Lx=sx(L);break r;case 1:break;default:break e}}continue}var Lx=d(L)}var ax=Lx;break}}return ax===0?[0,w,Pt(4,i2(L))]:gx(rn0)});case 30:return[0,x,Pt(4,i2(r))];case 31:return[0,x,66];case 32:return[0,x,6];default:return[0,x,7]}switch(Z){case 34:return[0,x,0];case 35:return[0,x,1];case 36:return[0,x,2];case 37:return[0,x,3];case 38:return[0,x,4];case 39:return[0,x,5];case 40:return[0,x,12];case 41:return[0,x,10];case 42:return[0,x,8];case 43:return[0,x,9];case 44:return[0,x,86];case 45:return[0,x,83];case 46:return[0,x,85];case 47:return[0,x,6];case 48:return[0,x,7];case 49:return[0,x,98];case 50:return[0,x,99];case 51:return[0,x,82];case 52:return[0,x,85];case 53:return[0,x,z2];case 54:return[0,x,86];case 55:return[0,x,88];case 56:return[0,x,87];case 57:return[0,x,89];case 58:return[0,x,91];case 59:return[0,x,11];case 60:return[0,x,82];case 61:return[0,x,Ze];case 62:return[0,x,_t];case 63:return[0,x,_4];case 64:return[0,x,hl];case 65:var rr=r[6];zB(r);var xr=Hl(x,rr,r[3]);BN(r,rr);var fr=i2(r),Hx=HB(x,fr),Y=Hx[2],jx=Hx[1],hr=ix(Y,h4);if(0<=hr){if(0>=hr)return[0,jx,Ov];var Yx=ix(Y,ox);if(0<=Yx){if(0>=Yx)return[0,jx,rl];if(!I(Y,as))return[0,jx,31];if(!I(Y,ss))return[0,jx,46];if(!I(Y,cm))return[0,jx,Cv];if(!I(Y,F8))return[0,jx,r2];if(!I(Y,ps))return[0,jx,of]}else{if(!I(Y,Mk))return[0,jx,Vt];if(!I(Y,oo))return[0,jx,29];if(!I(Y,yv))return[0,jx,B3];if(!I(Y,ko))return[0,jx,Bp];if(!I(Y,Ae))return[0,jx,42];if(!I(Y,Rv))return[0,jx,Ev]}}else{var Ur=ix(Y,hc);if(0<=Ur){if(0>=Ur)return[0,jx,41];if(!I(Y,ls))return[0,jx,30];if(!I(Y,ov))return[0,jx,kl];if(!I(Y,CF))return[0,jx,Yr];if(!I(Y,W1))return[0,jx,53];if(!I(Y,ll))return[0,jx,y2];if(!I(Y,Lk))return[0,jx,ms]}else{if(!I(Y,p8))return[0,jx,ia];if(!I(Y,hv))return[0,jx,dl];if(!I(Y,vo))return[0,jx,kv];if(!I(Y,C8))return[0,jx,mn0];if(!I(Y,$3))return[0,jx,kn0];if(!I(Y,ie))return[0,jx,ua]}}return[0,jx,[4,xr,Y,Gl(fr)]];case 66:var px=x[4]?d1(x,zr(x,r),91):x;return[0,px,Dr];default:return[0,x,[7,Ox(r)]]}}function Ql(x){return function(r){var e=0,t=r;x:for(;;){var u=x(t,t[2]);switch(u[0]){case 0:break x;case 1:var i=u[2],c=u[1],e=[0,i,e],t=[0,c[1],c[2],c[3],c[4],c[5],c[6],i[1]];break;default:var t=u[1]}}var v=u[2],a=u[1],p=VB(a,v),_=e===0?0:vx(e),y=a[6];if(y===0)return[0,[0,a[1],a[2],a[3],a[4],a[5],a[6],p],[0,v,p,0,_]];var S=[0,v,p,vx(y),_];return[0,[0,a[1],a[2],a[3],a[4],a[5],yB,p],S]}}var iw0=Ql(ew0),fw0=Ql(tw0),cw0=Ql(nw0),sw0=Ql(uw0),aw0=Ql(xw0),y1=aB([0,_b0]);function Zl(x,r){return[0,0,0,r,gB(x)]}function Gh(x){var r=x[4];switch(x[3]){case 0:var e0=aw0(r);break;case 1:var e0=sw0(r);break;case 2:var e0=fw0(r);break;case 3:var e=oe(r,r[2]),t=Qr(Yr),u=Qr(Yr),i=r[2];kr(i);var c=h(i),v=Vt>>0)var a=d(i);else switch(v){case 0:var a=1;break;case 1:var a=4;break;case 2:var a=0;break;case 3:z(i,0);var a=ae(h(i))===0?0:d(i);break;case 4:var a=2;break;default:var a=3}if(4>>0)var p=gx(gn0);else switch(a){case 0:var _=Ox(i);ar(u,_),ar(t,_);var y=eX(J1(r,i),t,u,i),S=oe(y,i),E=R2(t),j=R2(u),p=[0,y,[9,[0,y[1],e,S],E,j]];break;case 1:var p=[0,r,Dr];break;case 2:var p=[0,r,98];break;case 3:var p=[0,r,0];break;default:Zv(i);var C=eX(r,t,u,i),P=oe(C,i),O=R2(t),F=R2(u),p=[0,C,[9,[0,C[1],e,P],O,F]]}var K=p[2],U=p[1],V=VB(U,K),Q=U[6];if(Q===0)var x0=[0,U,[0,K,V,0,0]];else var $=[0,K,V,vx(Q),0],x0=[0,[0,U[1],U[2],U[3],U[4],U[5],0,U[7]],$];var e0=x0;break;case 4:var e0=cw0(r);break;default:var e0=iw0(r)}var Z=e0[1],c0=e0[2],d0=[0,gB(Z),c0];return x[4]=Z,x[1]?x[2]=[0,d0]:x[1]=[0,d0],d0}function tX(x){var r=x[1];return r?r[1][2]:Gh(x)[2]}function n3(x){return Dl(x[24][1])}function g2(x){return x[28][4]}function D0(x,r){var e=r[2];x[1][1]=[0,[0,r[1],e],x[1][1]];var t=x[23];if(t)return k(t[1],x,e)}function x6(x,r){x[31][1]=r}function Ta(x,r){if(x===0)return tX(r[26][1]);if(x!==1)throw U0([0,Ar,Zc0],1);var e=r[26][1];e[1]||Gh(e);var t=e[2];return t?t[1][2]:Gh(e)[2]}function Fs(x,r){return x===r[5]?r:[0,r[1],r[2],r[3],r[4],x,r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function nX(x,r){return x===r[10]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],x,r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function uO(x,r){return x===r[18]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],x,r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function iO(x,r){return x===r[19]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],x,r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function uX(x,r){return x===r[20]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],x,r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function qo(x,r){return x===r[22]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],x,r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function fO(x,r){return x===r[14]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],x,r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function r6(x,r){return x===r[8]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],x,r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function e6(x,r){return x===r[12]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],x,r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Bo(x,r){return x===r[15]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],x,r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function cO(x,r){return x===r[16]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],x,r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function iX(x,r){return x===r[6]?r:[0,r[1],r[2],r[3],r[4],r[5],x,r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function fX(x,r){return x===r[7]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],x,r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function sO(x,r){return x===r[13]?r:[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],x,r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],r[23],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function Wh(x,r){return[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15],r[16],r[17],r[18],r[19],r[20],r[21],r[22],[0,x],r[24],r[25],r[26],r[27],r[28],r[29],r[30],r[31]]}function aO(x){function r(e){return D0(x,e)}return function(e){return p1(r,e)}}function u3(x){var r=x[4][1];return r?[0,r[1][2]]:0}function cX(x){var r=x[4][1];return r?[0,r[1][1]]:0}function sX(x){return[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],0,x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function aX(x,r,e,t){return[0,x[1],x[2],y1[1],x[4],x[5],0,0,0,0,0,1,x[12],x[13],x[14],x[15],x[16],x[17],e,r,x[20],t,x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]]}function i3(x){return I(x,lo)&&I(x,W1)&&I(x,mv)&&I(x,ek)&&I(x,_l)&&I(x,z3)&&I(x,U3)&&I(x,Ae)&&I(x,M1)?0:1}function Xo(x){return I(x,bA)&&I(x,"eval")?0:1}function $h(x){var r=ix(x,ik);x:{if(0<=r){if(0>>0){if(ue>=t+1>>>0)return 1}else if(t===6)return 0}return t6(x,r)}function c3(x){return lX(0,x)}function Ms(x,r){var e=vr(x,r);x:{if(typeof e=="number")switch(e){case 28:case 42:case 52:case 53:case 54:case 55:case 56:case 57:case 58:var t=1;break x}else if(e[0]===4){var t=i3(e[2]);break x}var t=0}if(t)return 1;x:{if(typeof e=="number")switch(e){case 14:case 48:case 60:case 61:case 62:case 63:case 64:case 65:case 126:break;default:break x}else if(e[0]!==4)break x;return 1}return 0}function Hh(x,r){return oX(r,vr(x,r))}function pX(x,r){var e=Ms(x,r);return e||Hh(x,r)}function Jc(x){return Ms(0,x)}function Ea(x){var r=M(x)===15?1:0;if(r)var e=r;else{var t=M(x)===64?1:0;if(t){var u=vr(1,x)===15?1:0;if(u)var i=f3(1,x)[2][1],e=fx(x)[3][1]===i?1:0;else var e=u}else var e=t}return e}function Qh(x){var r=M(x);if(typeof r!="number"&&r[0]===4&&!I(r[3],wo)){var e=x[28][1];if(e){var t=Ms(1,x);if(t)var u=f3(1,x)[2][1],i=fx(x)[3][1]===u?1:0;else var i=t}else var i=e;return i}return 0}function n6(x){var r=M(x);if(typeof r=="number")switch(r){case 13:case 40:return 1}else if(r[0]===4&&!I(r[3],xg)&&vr(1,x)===40)return 1;return 0}function lO(x){var r=x[28][1];if(r){var e=M(x);if(typeof e!="number"&&e[0]===4&&!I(e[3],ta)&&Ms(1,x))return 1;var t=0}else var t=r;return t}function pO(x){var r=M(x);return typeof r!="number"&&r[0]===4&&!I(r[3],dr)?1:0}function Kx(x,r){return D0(x,[0,fx(x),r])}function kX(x,r){var e=QN(0,r);return x?[26,e,x[1]]:[24,e]}function _2(x,r){var e=vO(r);return aO(r)(e),Kx(r,kX(x,M(r)))}function Zh(x){function r(e){return D0(x,[0,e[1],R7])}return function(e){return p1(r,e)}}function mX(x,r){var e=x[6]?B0(yr($c0),r,r,r):Hc0;return _2([0,e],x)}function Ot(x,r){var e=x[5];return e&&Kx(x,r)}function ct(x,r){var e=x[5],t=r[2],u=r[1];return e&&D0(x,[0,u,t])}function Jo(x,r){return D0(x,[0,r,[14,x[5]]])}function b0(x){var r=x[27][1];if(r){var e=r[1],t=n3(x),u=M(x);l(e,[0,fx(x),u,t])}var i=x[26][1],c=i[1],v=c?c[1][1]:Gh(i)[1];x[25][1]=v;var a=vO(x);aO(x)(a);var p=x[2][1],_=zv(Ta(0,x)[4],p);x[2][1]=_;var y=[0,Ta(0,x)];x[4][1]=y;var S=x[26][1];return S[2]?(S[1]=S[2],S[2]=0,0):(tX(S),S[1]=0,0)}function f2(x,r){var e=k(GN,M(x),r);return e&&b0(x),e}function L2(x,r){x[24][1]=[0,r,x[24][1]];var e=n3(x),t=Zl(x[25][1],e);x[26][1]=t}function J2(x){var r=x[24][1],e=r?r[2]:gx(Wc0);x[24][1]=e;var t=n3(x),u=Zl(x[25][1],t);x[26][1]=u}function xx(x){var r=fx(x);if(M(x)===9&&t6(1,x)){var e=f0(x),t=Ta(1,x)[4],u=Fx(e,Fl(function(c){return c[1][2][1]<=r[3][1]?1:0})(t));return x6(x,[0,r[3][1]+1|0,0]),u}var i=f0(x);return x6(x,r[3]),i}function Sa(x){var r=x[4][1];if(!r)return 0;var e=r[1][2],t=f0(x),u=Fl(function(i){return i[1][2][1]<=e[3][1]?1:0})(t);return x6(x,[0,e[3][1]+1|0,0]),u}function tn(x,r){return _2([0,QN(zc0,r)],x)}function W(x,r){return 1-k(GN,M(x),r)&&tn(x,r),b0(x)}function hX(x,r){var e=f2(x,r);return 1-e&&tn(x,r),e}function xd(x,r){hX(x,r)}function Kc(x,r){var e=M(x);x:{if(typeof e!="number"&&e[0]===4&&Sr(e[3],r))break x;_2([0,l(yr(Yc0),r)],x)}return b0(x)}var Yc=[x2,us0,Ts(0)];function dX(x,r,e){if(e){var t=e[1],u=t[1],i=t[2];if(r[27][1]=[0,u],!x)return x;for(var c=i[2];;){if(!c)return;var v=c[2];l(u,c[1]);var c=v}}}function kO(x,r){var e=x[27][1];if(e){var t=e[1],u=vq(R),i=[0,function(K){return lN(K,u)}];x[27][1]=i;var c=[0,[0,t,u]]}else var c=0;var v=x[31][1],a=x[25][1],p=x[24][1],_=x[4][1],y=x[2][1],S=x[1][1];try{var E=l(r,x);dX(1,x,c);var j=[0,E];return j}catch(F){var C=O2(F);if(C!==Yc)throw U0(C,0);dX(0,x,c),x[1][1]=S,x[2][1]=y,x[4][1]=_,x[24][1]=p,x[25][1]=a,x[31][1]=v;var P=n3(x),O=Zl(x[25][1],P);return x[26][1]=O,0}}function rd(x,r,e){var t=kO(x,e);return t?t[1]:r}function u6(x,r){var e=vx(r);if(!e)return r;var t=e[1],u=e[2],i=l(x,t);return t===i?r:vx([0,i,u])}var yX=ph(as0,function(x){var r=FN(x,fs0),e=DN(x,ss0),t=e[24],u=e[28],i=e[41],c=e[91],v=e[vj],a=e[IP],p=e[v_],_=e[GM],y=e[$L],S=e[jR],E=e[6],j=e[7],C=e[10],P=e[17],O=e[23],F=e[29],K=e[39],U=e[42],V=e[52],Q=e[61],$=e[z2],x0=e[j2],e0=e[ua],Z=e[kv],c0=e[Ev],d0=e[hl],n0=e[U_],P0=e[EL],h0=e[ZF],g0=e[kT],v0=e[Ub],p0=e[v8],w0=e[Wp],T0=e[Sb],E0=e[tm],N0=e[P4],X0=e[Gk],A0=e[po],rx=e[xl],B=e[go],G0=e[i8],W0=e[GR],Y0=e[wF],V0=e[zM],ex=e[pL],Q0=e[lM],S0=e[ay],q0=e[YF],yx=e[JM],cx=e[kR],Dx=MN(x,0,0,HU,JN,1)[1];function Ix(H,l0,J){var s0=J[2],_0=s0[2],y0=s0[1],J0=J[1];if(_0){var Rx=_0[1],kx=function(gr){return[0,J0,[0,y0,[0,gr]]]};return I0(l(H[1][1+a],H),Rx,J,kx)}function Jx(gr){return[0,J0,[0,gr,_0]]}return I0(k(H[1][1+E],H,l0),y0,J,Jx)}function Xx(H,l0,J){var s0=J[2],_0=J[1],y0=_0[3],J0=_0[2],Rx=_0[1];if(y0)var kx=u6(l(H[1][1+u],H),y0),Jx=J0;else var kx=0,Jx=k(H[1][1+u],H,J0);var gr=k(H[1][1+i],H,s0);return J0===Jx&&y0===kx&&s0===gr?J:[0,[0,Rx,Jx,kx],gr]}function Z0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function rr(H,l0,J){var s0=J[3];function _0(y0){return[0,J[1],J[2],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function xr(H,l0){var J=l0[3];function s0(_0){return[0,l0[1],l0[2],_0]}return I0(l(H[1][1+i],H),J,l0,s0)}function fr(H,l0,J){var s0=J[3];function _0(y0){return[0,J[1],J[2],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Hx(H,l0,J){var s0=J[2],_0=J[1],y0=u6(l(H[1][1+a],H),_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,y0,J0]}function Y(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function jx(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function hr(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Yx(H,l0,J){var s0=J[3],_0=J[2],y0=k(H[1][1+e0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],y0,J0]}function Ur(H,l0,J){var s0=J[4],_0=J[3],y0=J[2],J0=J[1],Rx=k(H[1][1+i],H,s0);if(_0){var kx=Cx(l(H[1][1+S],H),_0);return _0===kx&&s0===Rx?J:[0,J[1],J[2],kx,Rx]}if(y0){var Jx=Cx(l(H[1][1+y],H),y0);return y0===Jx&&s0===Rx?J:[0,J[1],Jx,J[3],Rx]}var gr=k(H[1][1+a],H,J0);return J0===gr&&s0===Rx?J:[0,gr,J[2],J[3],Rx]}function px(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function w(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function L(H,l0,J){var s0=J[4];function _0(y0){return[0,J[1],J[2],J[3],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function L0(H,l0,J){var s0=J[2],_0=J[1],y0=_0[3],J0=_0[2],Rx=_0[1];if(y0)var kx=u6(l(H[1][1+u],H),y0),Jx=J0;else var kx=0,Jx=k(H[1][1+u],H,J0);var gr=k(H[1][1+i],H,s0);return J0===Jx&&y0===kx&&s0===gr?J:[0,[0,Rx,Jx,kx],gr]}function sx(H,l0,J){var s0=J[3],_0=J[1],y0=X2(l(H[1][1+c],H),_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,y0,J[2],J0]}function lx(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function ax(H,l0){if(l0[0]===0){var J=l0[1],s0=function(Jx){return[0,Jx]};return I0(l(H[1][1+v],H),J,l0,s0)}var _0=l0[1],y0=_0[2],J0=y0[2],Rx=_0[1],kx=k(H[1][1+v],H,J0);return J0===kx?l0:[1,[0,Rx,[0,y0[1],kx]]]}function Vx(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+p0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0,J[5]]}function _x(H,l0){var J=l0[2],s0=l0[1],_0=J[4];function y0(J0){return[0,s0,[0,J[1],J[2],J[3],J0]]}return I0(l(H[1][1+i],H),_0,[0,s0,J],y0)}function zx(H,l0,J){var s0=J[10],_0=J[3],y0=k(H[1][1+E0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J[4],J[5],J[6],J[7],J[8],J[9],J0,J[11]]}function Lx(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function M0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function qr(H,l0){var J=l0[2],s0=l0[1],_0=J[3];function y0(J0){return[0,s0,[0,J[1],J[2],J0]]}return I0(l(H[1][1+i],H),_0,[0,s0,J],y0)}function Ex(H,l0,J){var s0=J[6],_0=J[5],y0=k(H[1][1+G0],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],J[3],J[4],y0,J0,J[7]]}function $0(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];if(s0===0){var J0=function(Jx){return[0,y0,[0,Jx,s0]]};return I0(l(H[1][1+v],H),_0,l0,J0)}function Rx(Jx){return[0,y0,[0,_0,Jx]]}var kx=l(H[1][1+t],H);return I0(function(Jx){return Cx(kx,Jx)},s0,l0,Rx)}function Gx(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(kx){return[0,y0,[0,kx,s0]]}var Rx=l(H[1][1+p],H);return I0(function(kx){return u6(Rx,kx)},_0,l0,J0)}function j0(H,l0,J){var s0=J[2],_0=J[1];if(s0===0){var y0=function(kx){return[0,kx,J[2],J[3]]};return I0(l(H[1][1+a],H),_0,J,y0)}function J0(kx){return[0,J[1],kx,J[3]]}var Rx=l(H[1][1+t],H);return I0(function(kx){return Cx(Rx,kx)},s0,J,J0)}function cr(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function tx(H,l0,J){var s0=J[7],_0=J[2],y0=k(H[1][1+_],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],y0,J[3],J[4],J[5],J[6],J0]}function Mx(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function b2(H,l0){var J=l0[2],s0=J[2],_0=J[1],y0=l0[1];function J0(Rx){return[0,y0,[0,_0,Rx]]}return I0(l(H[1][1+i],H),s0,l0,J0)}function Ux(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+S],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function c1(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}function Rr(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function U2(H,l0,J){var s0=J[4],_0=J[3],y0=k(H[1][1+a],H,_0),J0=k(H[1][1+i],H,s0);return _0===y0&&s0===J0?J:[0,J[1],J[2],y0,J0]}function g(H,l0){var J=l0[2];function s0(_0){return[0,l0[1],_0]}return I0(l(H[1][1+i],H),J,l0,s0)}function G(H,l0,J){var s0=J[2];function _0(y0){return[0,J[1],y0]}return I0(l(H[1][1+i],H),s0,J,_0)}return qN(x,[0,U,function(H,l0){var J=l0[2],s0=Fl(function(y0){return Rs(y0[1][2],H[1+r])<0?1:0})(J),_0=Is(s0);return Is(J)===_0?l0:[0,l0[1],s0,l0[3]]},cx,G,yx,g,q0,U2,S0,Rr,Q0,c1,ex,Ux,S,b2,y,Mx,V0,tx,_,cr,Y0,j0,W0,Gx,p,$0,B,Ex,rx,qr,A0,M0,X0,Lx,N0,zx,T0,_x,w0,Vx,v0,ax,g0,lx,h0,sx,P0,L0,n0,L,d0,w,c0,px,x0,Ur,Z,Yx,$,hr,c,jx,Q,Y,V,Hx,K,fr,F,xr,O,rr,P,Z0,C,Xx,j,Ix]),function(H,l0,J){var s0=kh(l0,x);return s0[1+r]=J,l(Dx,s0),UN(l0,s0,x)}});function ed(x){var r=u3(x);if(r)var e=r[1],t=vX(x)?(x6(x,e[3]),[0,k(yX[1],0,e[3])]):0,u=t;else var u=0;return[0,0,function(i,c){return u?c(u[1],i):i}]}function i6(x){var r=u3(x);if(r){var e=r[1];if(vX(x)){x6(x,e[3]);var t=Sa(x),u=[0,k(yX[1],0,[0,e[3][1]+1|0,0])],i=t}else var u=0,i=Sa(x)}else var u=0,i=0;return[0,i,function(c,v){return u?k(v,u[1],c):c}]}function I2(x){return K1(x)?i6(x):ed(x)}function Ct(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,Av,2),t,u)})}function Y1(x,r){if(!r)return 0;var e=r[1],t=I2(x)[2];return[0,k(t,e,function(u,i){return k(Wx(u,Wj,5),u,i)})]}function mO(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,AR,8),t,u)})}function s3(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-1045824777,9),t,u)})}function f6(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-455772979,10),t,u)})}function gX(x,r){if(!r)return 0;var e=r[1],t=I2(x)[2];return[0,k(t,e,function(u,i){return k(Wx(u,HF,13),u,i)})]}function nn(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,rR,14),t,u)})}function _X(x,r){var e=I2(x)[2];return k(e,r,function(t,u){var i=l(Wx(t,zL,16),t);return u6(function(c){return X2(i,c)},u)})}function bX(x,r){var e=I2(x)[2];return k(e,r,function(t,u){return k(Wx(t,-21476009,17),t,u)})}function ow0(x,r){var e=x[2],t=x[1];function u(c1){return N1(c1,r)}switch(e[0]){case 0:var i=e[1],c=zN(i[2],r),Ux=[0,[0,i[1],c]];break;case 1:var v=e[1],a=u(v[2]),Ux=[1,[0,v[1],a]];break;case 2:var p=e[1],_=u(p[7]),Ux=[2,[0,p[1],p[2],p[3],p[4],p[5],p[6],_]];break;case 3:var y=e[1],S=y[7],E=u(y[6]),Ux=[3,[0,y[1],y[2],y[3],y[4],y[5],E,S]];break;case 4:var j=e[1],C=u(j[2]),Ux=[4,[0,j[1],C]];break;case 5:var Ux=[5,[0,u(e[1][1])]];break;case 6:var P=e[1],O=u(P[7]),Ux=[6,[0,P[1],P[2],P[3],P[4],P[5],P[6],O]];break;case 7:var F=e[1],K=u(F[5]),Ux=[7,[0,F[1],F[2],F[3],F[4],K]];break;case 8:var U=e[1],V=u(U[3]),Ux=[8,[0,U[1],U[2],V]];break;case 9:var Q=e[1],$=u(Q[5]),Ux=[9,[0,Q[1],Q[2],Q[3],Q[4],$]];break;case 10:var x0=e[1],e0=u(x0[4]),Ux=[10,[0,x0[1],x0[2],x0[3],e0]];break;case 11:var Z=e[1],c0=u(Z[5]),Ux=[11,[0,Z[1],Z[2],Z[3],Z[4],c0]];break;case 12:var d0=e[1],n0=u(d0[3]),Ux=[12,[0,d0[1],d0[2],n0]];break;case 13:var P0=e[1],h0=u(P0[2]),Ux=[13,[0,P0[1],h0]];break;case 14:var g0=e[1],v0=u(g0[3]),Ux=[14,[0,g0[1],g0[2],v0]];break;case 15:var p0=e[1],w0=u(p0[4]),Ux=[15,[0,p0[1],p0[2],p0[3],w0]];break;case 16:var T0=e[1],E0=u(T0[5]),Ux=[16,[0,T0[1],T0[2],T0[3],T0[4],E0]];break;case 17:var N0=e[1],X0=u(N0[4]),Ux=[17,[0,N0[1],N0[2],N0[3],X0]];break;case 18:var A0=e[1],rx=u(A0[3]),Ux=[18,[0,A0[1],A0[2],rx]];break;case 19:var Ux=[19,[0,u(e[1][1])]];break;case 20:var B=e[1],G0=u(B[3]),Ux=[20,[0,B[1],B[2],G0]];break;case 21:var W0=e[1],Y0=u(W0[3]),Ux=[21,[0,W0[1],W0[2],Y0]];break;case 22:var V0=e[1],ex=u(V0[5]),Ux=[22,[0,V0[1],V0[2],V0[3],V0[4],ex]];break;case 23:var Q0=e[1],S0=u(Q0[3]),Ux=[23,[0,Q0[1],Q0[2],S0]];break;case 24:var q0=e[1],yx=u(q0[5]),Ux=[24,[0,q0[1],q0[2],q0[3],q0[4],yx]];break;case 25:var cx=e[1],Dx=u(cx[5]),Ux=[25,[0,cx[1],cx[2],cx[3],cx[4],Dx]];break;case 26:var Ix=e[1],Xx=u(Ix[5]),Ux=[26,[0,Ix[1],Ix[2],Ix[3],Ix[4],Xx]];break;case 27:var Z0=e[1],rr=Z0[11],xr=u(Z0[10]),Ux=[27,[0,Z0[1],Z0[2],Z0[3],Z0[4],Z0[5],Z0[6],Z0[7],Z0[8],Z0[9],xr,rr]];break;case 28:var fr=e[1],Hx=u(fr[4]),Ux=[28,[0,fr[1],fr[2],fr[3],Hx]];break;case 29:var Y=e[1],jx=u(Y[5]),Ux=[29,[0,Y[1],Y[2],Y[3],Y[4],jx]];break;case 30:var hr=e[1],Yx=u(hr[5]),Ux=[30,[0,hr[1],hr[2],hr[3],hr[4],Yx]];break;case 31:var Ur=e[1],px=u(Ur[3]),Ux=[31,[0,Ur[1],Ur[2],px]];break;case 32:var w=e[1],L=w[3],L0=u(w[2]),Ux=[32,[0,w[1],L0,L]];break;case 33:var sx=e[1],lx=sx[4],ax=u(sx[3]),Ux=[33,[0,sx[1],sx[2],ax,lx]];break;case 34:var Vx=e[1],_x=u(Vx[2]),Ux=[34,[0,Vx[1],_x]];break;case 35:var zx=e[1],Lx=u(zx[4]),Ux=[35,[0,zx[1],zx[2],zx[3],Lx]];break;case 36:var M0=e[1],qr=u(M0[4]),Ux=[36,[0,M0[1],M0[2],M0[3],qr]];break;case 37:var Ex=e[1],$0=u(Ex[5]),Ux=[37,[0,Ex[1],Ex[2],Ex[3],Ex[4],$0]];break;case 38:var Gx=e[1],j0=u(Gx[3]),Ux=[38,[0,Gx[1],Gx[2],j0]];break;case 39:var cr=e[1],tx=u(cr[3]),Ux=[39,[0,cr[1],cr[2],tx]];break;default:var Mx=e[1],b2=u(Mx[3]),Ux=[40,[0,Mx[1],Mx[2],b2]]}return[0,t,Ux]}ph(os0,function(x){var r=FN(x,is0),e=LN(cs0),t=e.length-1,u=$U.length-1,i=Jv(t+u|0,0),c=t-1|0,v=0;if(c>=0)for(var a=v;;){var p=Yl(x,$2(e,a)[1+a]);$2(i,a)[1+a]=p;var _=a+1|0;if(c===a)break;var a=_}var y=u-1|0,S=0;if(y>=0)for(var E=S;;){var j=E+t|0,C=FN(x,$2($U,E)[1+E]);$2(i,j)[1+j]=C;var P=E+1|0;if(y===E)break;var E=P}var O=i[4],F=i[5],K=i[vL],U=i[v_],V=i[297],Q=i[298],$=i[44],x0=i[gv],e0=i[yL],Z=MN(x,0,0,HU,JN,1)[1];function c0(v0,p0,w0){return k(v0[1][1+K],v0,w0[2]),w0}function d0(v0,p0){return k(v0[1][1+U],v0,p0),p0}function n0(v0,p0){var w0=p0[1],T0=v0[1+Q];if(T0){var E0=Rs(T0[1][1][2],w0[2])<0?1:0,N0=E0&&(v0[1+Q]=[0,p0],0);return N0}var X0=0<=Rs(w0[2],v0[1+r][3])?1:0,A0=X0&&(v0[1+Q]=[0,p0],0);return A0}function P0(v0,p0){var w0=p0[1],T0=v0[1+V];if(T0){var E0=Rs(w0[2],T0[1][1][2])<0?1:0,N0=E0&&(v0[1+V]=[0,p0],0);return N0}var X0=Rs(w0[2],v0[1+r][2])<0?1:0,A0=X0&&(v0[1+V]=[0,p0],0);return A0}function h0(v0,p0){return p0?k(v0[1][1+U],v0,p0[1]):0}function g0(v0,p0){var w0=p0[2],T0=p0[1];return p1(l(v0[1][1+F],v0),T0),p1(l(v0[1][1+O],v0),w0)}return qN(x,[0,x0,function(v0){return[0,v0[1+V],v0[1+Q]]},U,g0,K,h0,F,P0,O,n0,$,d0,e0,c0]),function(v0,p0,w0){var T0=kh(p0,x);return T0[1+r]=w0,l(Z,T0),T0[1+V]=0,T0[1+Q]=0,UN(p0,T0,x)}});function wX(x){var r=M(x);x:{if(typeof r=="number"){var e=r;if(50<=e)switch(e){case 50:var u=Vs0;break x;case 51:var u=Gs0;break x;case 52:var u=Ws0;break x;case 53:var u=$s0;break x;case 54:var u=Hs0;break x;case 55:var u=Qs0;break x;case 56:var u=Zs0;break x;case 57:var u=xa0;break x;case 58:var u=ra0;break x;case 59:var u=ea0;break x;case 60:var u=ta0;break x;case 61:var u=na0;break x;case 62:var u=ua0;break x;case 63:var u=ia0;break x;case 64:var u=fa0;break x;case 65:var u=ca0;break x;case 114:var u=sa0;break x;case 115:var u=aa0;break x;case 116:var u=oa0;break x;case 117:var u=va0;break x;case 118:var u=la0;break x;case 119:var u=pa0;break x;case 120:var u=ka0;break x;case 121:var u=ma0;break x;case 122:var u=ha0;break x;case 123:var u=da0;break x;case 124:var u=ya0;break x;case 125:var u=ga0;break x;case 126:var u=_a0;break x;case 128:var u=ba0;break x;case 129:var u=wa0;break x;case 130:var u=Ta0;break x}else switch(e){case 15:var u=vs0;break x;case 16:var u=ls0;break x;case 17:var u=ps0;break x;case 18:var u=ks0;break x;case 19:var u=ms0;break x;case 20:var u=hs0;break x;case 21:var u=ds0;break x;case 22:var u=ys0;break x;case 23:var u=gs0;break x;case 24:var u=_s0;break x;case 25:var u=bs0;break x;case 26:var u=ws0;break x;case 27:var u=Ts0;break x;case 28:var u=Es0;break x;case 29:var u=Ss0;break x;case 30:var u=As0;break x;case 31:var u=Is0;break x;case 32:var u=js0;break x;case 33:var u=Ps0;break x;case 34:var u=Ns0;break x;case 35:var u=Os0;break x;case 36:var u=Cs0;break x;case 37:var u=Ds0;break x;case 38:var u=Rs0;break x;case 39:var u=Fs0;break x;case 40:var u=Ls0;break x;case 41:var u=Ms0;break x;case 42:var u=Us0;break x;case 43:var u=qs0;break x;case 44:var u=Bs0;break x;case 45:var u=Xs0;break x;case 46:var u=Js0;break x;case 47:var u=Ks0;break x;case 48:var u=Ys0;break x;case 49:var u=zs0;break x}}else switch(r[0]){case 4:var u=r[2];break x;case 11:var t=r[1]?Ea0:Sa0,u=t;break x}_2(Aa0,x);var u=Ia0}return b0(x),u}function g1(x){var r=fx(x),e=f0(x),t=wX(x);return[0,r,[0,t,t0([0,e],[0,xx(x)],R)]]}function TX(x){var r=fx(x),e=f0(x);W(x,14);var t=fx(x),u=wX(x),i=t0([0,e],[0,xx(x)],R),c=Zr(r,t),v=t[2],a=r[3],p=a[1]===v[1]?1:0,_=p&&(a[2]===v[2]?1:0);return 1-_&&D0(x,[0,c,j2]),[0,c,[0,u,i]]}function Ko(x){var r=x[2],e=r[3]===0?1:0,t=r[2];if(!e)return e;for(var u=t;;){if(!u)return 1;var i=u[1][2],c=u[2];x:{if(i[1][2][0]===2&&!i[2]){var v=1;break x}var v=0}if(!v)return v;var u=c}}function c6(x){for(var r=x;;){var e=r[2];if(e[0]!==31)return 0;var t=e[1][2];if(t[2][0]===27)return 1;var r=t}}function td(x,r,e){var t=e[2][1],u=e[1];if(!I(t,_o)){var i=r[19];return i&&D0(r,[0,u,5])}if(I(t,mv)){if(!I(t,M1))return r[18]?D0(r,[0,u,95]):ct(r,[0,u,80])}else if(r[14])return D0(r,[0,u,[24,bh(t)]]);if(i3(t))return ct(r,[0,u,80]);if($h(t))return D0(r,[0,u,95]);if(x){var c=x[1];if(Xo(t))return ct(r,[0,u,c])}}function r0(x,r,e){var t=x?x[1]:fx(e),u=l(r,e),i=u3(e),c=i?Zr(t,i[1]):t;return[0,c,u]}function hO(x,r,e){var t=r0(x,r,e),u=t[2];return[0,[0,t[1],u[1]],u[2]]}function nd(x){L2(x,0);var r=M(x);J2(x);var e=vr(1,x);x:{r:{if(typeof r=="number"){if(r!==21)break x}else{if(r[0]!==4)break x;var t=r[3];if(I(t,hv)){if(!I(t,ov))e:{if(typeof e=="number"){if(e!==21)break e}else if(e[0]!==4)break e;break r}}else e:{if(typeof e=="number"){if(e!==21)break e}else if(e[0]!==4)break e;break r}}if(typeof e=="number"){if(y2!==e)break x}else if(e[0]!==4||I(e[3],ll))break x}return 1}return 0}function EX(x){switch(x){case 3:return 2;case 4:return 1;case 5:return 1;case 6:return 1;case 7:return 1;default:return 1}}function dO(x,r,e){if(e){var t=e[1];x:{if(t!==8232&&G2!==t){if(t===10){var u=6;break x}if(t===13){var u=5;break x}if(el<=t){var u=3;break x}if(mj<=t){var u=2;break x}if(y2<=t){var u=1;break x}var u=0;break x}var u=7}var i=u}else var i=4;return[0,i,x]}var vw0=[x2,so0,Ts(0)];function SX(x,r,e,t){try{var u=$2(x,r)[1+r];return u}catch(c){var i=O2(c);throw i[1]===tN?U0([0,vw0,e,B0(yr(fo0),t,r,x.length-1)],1):U0(i,0)}}function ud(x,r){if(r[1]===0&&r[2]===0)return 0;var e=SX(x,r[1]-1|0,r,uo0);return SX(e,r[2],r,io0)}function AX(x){var r=[0,Ro0,y1[1],0,0];function e(a){var p=M(a);x:if(typeof p=="number"){if(8<=p){if(10<=p)break x}else if(p!==1)break x;return 1}return 0}function t(a,p,_,y,S,E){var j=B0(x[24],a,S,E);if(_)var C=Bx(Do0,E),P=-j;else var C=E,P=j;var O=xx(a);return e(a)?[2,p,[0,P,C,t0([0,y],[0,O],R)]]:[0,p]}function u(a){var p=fx(a),_=f0(a),y=M(a);if(typeof y=="number")switch(y){case 104:b0(a);var S=M(a);return typeof S!="number"&&S[0]===0?t(a,p,1,_,S[1],S[2]):[0,p];case 30:case 31:b0(a);var E=xx(a);return e(a)?[1,p,[0,y===31?1:0,t0([0,_],[0,E],R)]]:[0,p]}else switch(y[0]){case 0:return t(a,p,0,_,y[1],y[2]);case 1:var j=y[2],C=B0(x[26],a,y[1],j),P=xx(a);return e(a)?[4,p,[0,C,j,t0([0,_],[0,P],R)]]:[0,p];case 2:var O=y[1],F=O[1],K=O[3],U=O[2];O[4]&&Ot(a,76),b0(a);var V=xx(a);return e(a)?[3,F,[0,U,K,t0([0,_],[0,V],R)]]:[0,F]}return b0(a),[0,p]}function i(a){var p=g1(a),_=M(a);x:{if(typeof _=="number"){if(_===82){W(a,82);var y=u(a);break x}if(_===86){Kx(a,[8,p[2][1]]),W(a,86);var y=u(a);break x}}var y=0}return[0,p,y]}var c=0;function v(a,p,_,y,S,E,j){var C=Is(S),P=Is(E);function O(K){return[2,[0,[0,E],_,y,j]]}function F(K){return[2,[0,[1,S],_,y,j]]}return C===0?O(R):P===0?F(R):C>>0){if(ue>=$+1>>>0)break}else if($===10){var x0=fx(P),e0=f0(P);b0(P);var Z=M(P);x:{r:if(typeof Z=="number"){var c0=Z-2|0;if(j2>>0){if(ue>>0)break r}else{if(c0!==7)break r;W(P,9);var d0=M(P);e:{t:if(typeof d0=="number"){if(d0!==1&&Dr!==d0)break t;var n0=1;break e}var n0=0}D0(P,[0,x0,[6,n0]])}break x}D0(P,[0,x0,Ao0])}var V=[0,V[1],V[2],1,e0];continue}}var P0=V[2],h0=V[1],g0=r0(c,i,P),v0=g0[2],p0=v0[2],w0=v0[1],T0=g0[1],E0=w0[2][1],N0=w0[1];x:if(Sr(E0,H0))var X0=V;else{var A0=N2(E0,0),rx=97<=A0?1:0,B=rx&&(A0<=r2?1:0);B&&D0(P,[0,N0,[10,E,E0]]),y1[3].call(null,E0,P0)&&D0(P,[0,N0,[4,E,E0]]);var G0=V[4],W0=V[3],Y0=y1[4].call(null,E0,P0),V0=[0,V[1],Y0,W0,G0],ex=function(Ex){return function($0,Gx){if(K&&K[1]!==$0)return D0(P,[0,Gx,[9,E,K,Ex]])}}(E0);if(typeof p0=="number"){if(K)switch(K[1]){case 0:D0(P,[0,T0,[3,E,E0]]);var X0=V0;break x;case 1:D0(P,[0,T0,[11,E,E0]]);var X0=V0;break x;case 4:D0(P,[0,T0,[2,E,E0]]);var X0=V0;break x}var X0=[0,[0,h0[1],h0[2],h0[3],h0[4],[0,[0,T0,[0,w0]],h0[5]]],Y0,W0,G0]}else switch(p0[0]){case 0:D0(P,[0,p0[1],[9,E,K,E0]]);var X0=V0;break;case 1:var Q0=p0[1],S0=p0[2];ex(0,Q0);var X0=[0,[0,[0,[0,T0,[0,w0,[0,Q0,S0]]],h0[1]],h0[2],h0[3],h0[4],h0[5]],Y0,W0,G0];break;case 2:var q0=p0[1],yx=p0[2];ex(1,q0);var X0=[0,[0,h0[1],[0,[0,T0,[0,w0,[0,q0,yx]]],h0[2]],h0[3],h0[4],h0[5]],Y0,W0,G0];break;case 3:var cx=p0[1],Dx=p0[2];ex(2,cx);var X0=[0,[0,h0[1],h0[2],[0,[0,T0,[0,w0,[0,cx,Dx]]],h0[3]],h0[4],h0[5]],Y0,W0,G0];break;default:var Ix=p0[1],Xx=p0[2];ex(4,Ix);var X0=[0,[0,h0[1],h0[2],h0[3],[0,[0,T0,[0,w0,[0,Ix,Xx]]],h0[4]],h0[5]],Y0,W0,G0]}}var Z0=M(P);x:{r:if(typeof Z0=="number"){var rr=Z0-2|0;if(j2>>0){if(ue>>0)break r}else{if(rr!==6)break r;Kx(P,18),W(P,8)}break x}W(P,9)}var V=X0}var xr=V[3],fr=V[4],Hx=vx(V[1][5]),Y=vx(V[1][4]),jx=vx(V[1][3]),hr=vx(V[1][2]),Yx=vx(V[1][1]),Ur=Fx(fr,f0(P));W(P,1);var px=M(P);x:{r:if(typeof px=="number"){if(px!==1&&Dr!==px)break r;var w=xx(P);break x}var w=K1(P)?Sa(P):0}var L=F2([0,U],[0,w],Ur,R);if(K){switch(K[1]){case 0:var L0=[0,[0,Yx,1,xr,L]];break;case 1:var L0=[1,[0,hr,1,xr,L]];break;case 2:var L0=v(P,E,1,xr,jx,Hx,L);break;case 3:var L0=[3,[0,Hx,xr,L]];break;default:var L0=[4,[0,Y,1,xr,L]]}var sx=L0}else{var lx=Is(Yx),ax=Is(hr),Vx=Is(Y),_x=Is(jx),zx=Is(Hx),Lx=function(Ex){return[2,[0,Io0,0,xr,L]]};x:{if(lx===0&&ax===0&&Vx===0){if(_x===0&&zx===0){var M0=Lx(R);break x}var M0=v(P,E,0,xr,jx,Hx,L);break x}if(ax===0&&Vx===0&&_x===0&&zx<=lx){p1(function($0){return D0(P,[0,$0[1],[3,E,$0[2][1][2][1]]])},Hx);var M0=[0,[0,Yx,0,xr,L]];break x}if(lx===0){if(Vx===0&&_x===0&&zx<=ax){p1(function($0){return D0(P,[0,$0[1],[11,E,$0[2][1][2][1]]])},Hx);var M0=[1,[0,hr,0,xr,L]];break x}if(ax===0&&_x===0&&zx<=Vx){p1(function($0){return D0(P,[0,$0[1],[11,E,$0[2][1][2][1]]])},Hx);var M0=[4,[0,Y,0,xr,L]];break x}}D0(P,[0,j,[5,E]]);var M0=Lx(R)}var sx=M0}return sx},p);return[0,S,C,t0([0,y],0,R)]}]}function a3(x){return[0,Ls(x)]}function id(x,r,e){if(typeof e=="number")return[0,x,r];if(e[0]===0){var t=e[1],u=ix(x,t),i=e[2];return u===0?i===r?e:[0,t,r]:0<=u?[1,2,x,r,e,0]:[1,2,x,r,0,e]}var c=e[5],v=e[4],a=e[3],p=e[2],_=ix(x,p),y=e[1];if(_===0)return a===r?e:[1,y,x,r,v,c];if(0<=_){var S=id(x,r,c);return c===S?e:cB(v,p,a,S)}var E=id(x,r,v);return v===E?e:cB(E,p,a,c)}var yO=aB([0,function(x,r){var e=r[2],t=x[2],u=mB(x[1],r[1]);return u===0?k(hB,t,e):u}]);function s6(x,r,e){var t=e[2][1],u=e[1];return Sr(t,H0)?r:y1[3].call(null,t,r)?(D0(x,[0,u,[0,t]]),r):y1[4].call(null,t,r)}function gO(x){return function(r){var e=r[2];switch(e[0]){case 0:var t=e[1][1];return u1(function(i,c){var v=c[0]===0?c[1][2][2]:c[1][2][1];return gO(i)(v)},x,t);case 1:var u=e[1][1];return u1(function(i,c){if(c[0]===2)return i;var v=c[1][2][1];return gO(i)(v)},x,u);case 2:return[0,e[1][1],x];default:return gx(Rl0)}}}var z0=Yq(Ll0,Fl0[1]);function fd(x,r,e){var t=x?x[1]:0,u=r?r[1]:0,i=fx(e),c=M(e);if(typeof c=="number")switch(c){case 103:var v=f0(e);return b0(e),[0,[0,i,[0,0,t0([0,v],0,R)]]];case 104:var a=f0(e);return b0(e),[0,[0,i,[0,1,t0([0,a],0,R)]]];case 126:if(t){var p=f0(e);return b0(e),[0,[0,i,[0,2,t0([0,p],0,R)]]]}break}else if(c[0]===4){var _=c[3];if(I(_,aa)){if(!I(_,Sg)&&u&&Hh(1,e)){var y=f0(e);return b0(e),[0,[0,i,[0,4,t0([0,y],0,R)]]]}}else if(u&&Hh(1,e)){var S=f0(e);b0(e);var E=M(e);x:{if(typeof E!="number"&&E[0]===4&&!I(E[3],Sg)){var j=fx(e);b0(e);var C=Zr(i,j),P=5;break x}var C=i,P=3}return[0,[0,C,[0,P,t0([0,S],0,R)]]]}}return 0}function IX(x,r,e,t,u){r===1&&Ot(u,76);var i=f0(u);b0(u);var c=xx(u);if(x)var v=t0([0,Fx(x[1],i)],[0,c],R),a=v,p=Bx(no0,t),_=-e;else var a=t0([0,i],[0,c],R),p=t,_=e;return[30,[0,_,p,a]]}function jX(x,r,e,t){var u=f0(t);b0(t);var i=xx(t);if(x)var c=t0([0,Fx(x[1],u)],[0,i],R),v=Bx(to0,e),a=c,p=v,_=eh(GP,r);else var a=t0([0,u],[0,i],R),p=e,_=r;return[31,[0,_,p,a]]}var Gr=function x(r){return x.fun(r)},o3=function x(r){return x.fun(r)},PX=function x(r){return x.fun(r)},NX=function x(r){return x.fun(r)},_O=function x(r,e,t){return x.fun(r,e,t)},cd=function x(r){return x.fun(r)},bO=function x(r,e,t,u){return x.fun(r,e,t,u)},wO=function x(r){return x.fun(r)},TO=function x(r,e,t,u){return x.fun(r,e,t,u)},EO=function x(r){return x.fun(r)},SO=function x(r,e){return x.fun(r,e)},sd=function x(r){return x.fun(r)},OX=function x(r){return x.fun(r)},ad=function x(r,e,t,u){return x.fun(r,e,t,u)},od=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},CX=function x(r){return x.fun(r)},DX=function x(r,e){return x.fun(r,e)},AO=function x(r){return x.fun(r)},RX=function x(r){return x.fun(r)},FX=function x(r){return x.fun(r)},LX=function x(r){return x.fun(r)},MX=function x(r){return x.fun(r)},vd=function x(r,e){return x.fun(r,e)},UX=function x(r){return x.fun(r)},qX=function x(r){return x.fun(r)},IO=function x(r){return x.fun(r)},a6=function x(r,e){return x.fun(r,e)},BX=function x(r){return x.fun(r)},Us=function x(r){return x.fun(r)},o6=function x(r){return x.fun(r)},XX=function x(r,e){return x.fun(r,e)},jO=function x(r){return x.fun(r)},JX=function x(r){return x.fun(r)},KX=function x(r){return x.fun(r)},YX=function x(r){return x.fun(r)},zX=function x(r){return x.fun(r)},v6=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},VX=function x(r){return x.fun(r)},PO=function x(r){return x.fun(r)},ld=function x(r){return x.fun(r)},NO=function x(r,e){return x.fun(r,e)},pd=function x(r,e,t,u){return x.fun(r,e,t,u)},OO=function x(r){return x.fun(r)},Aa=function x(r){return x.fun(r)},GX=function x(r){return x.fun(r)},Ia=function x(r){return x.fun(r)},kd=function x(r){return x.fun(r)},l6=function x(r){return x.fun(r)},CO=function x(r,e){return x.fun(r,e)},WX=function x(r,e){return x.fun(r,e)},$X=function x(r){return x.fun(r)},HX=function x(r){return x.fun(r)},md=function x(r){return x.fun(r)},QX=function x(r,e,t){return x.fun(r,e,t)};m0(Gr,function(x){return l(NX,x)}),m0(o3,function(x){return 1-g2(x)&&Kx(x,S1),r0(0,function(r){return W(r,86),l(Gr,r)},x)}),m0(PX,function(x){1-g2(x)&&Kx(x,S1);var r=fx(x);return W(x,86),nd(x)?[2,k(NO,x,r)]:[1,r0([0,r],Gr,x)]}),m0(NX,function(x){var r=fx(x),e=cO(0,x);return B0(_O,e,r,l(cd,e))}),m0(_O,function(x,r,e){var t=M(x);return typeof t=="number"&&t===41?r0([0,r],function(u){W(u,41);var i=l(cd,cO(1,u));xd(u,85);var c=l(Gr,u);xd(u,86);var v=l(Gr,u);return[17,[0,e,i,c,v,t0(0,[0,xx(u)],R)]]},x):e}),m0(cd,function(x){var r=fx(x);if(M(x)===89){var e=f0(x);b0(x);var t=e}else var t=0;return St(bO,x,[0,t],r,l(wO,x))}),m0(bO,function(x,r,e,t){var u=r?r[1]:0;if(M(x)!==89)return t;var i=[0,t,0];return r0([0,e],function(c){for(var v=i;;){if(!f2(c,89)){var a=vx(v);if(a){var p=a[2];if(p){var _=p[2],y=p[1],S=a[1];return[22,[0,[0,S,y,_],t0([0,u],0,R)]]}}throw U0([0,Ar,eo0],1)}var v=[0,l(wO,c),v]}},x)}),m0(wO,function(x){var r=fx(x);if(M(x)===91){var e=f0(x);b0(x);var t=e}else var t=0;return St(TO,x,[0,t],r,l(EO,x))}),m0(TO,function(x,r,e,t){var u=r?r[1]:0;if(M(x)!==91)return t;var i=[0,t,0];return r0([0,e],function(c){for(var v=i;;){if(!f2(c,91)){var a=vx(v);if(a){var p=a[2];if(p){var _=p[2],y=p[1],S=a[1];return[23,[0,[0,S,y,_],t0([0,u],0,R)]]}}throw U0([0,Ar,ro0],1)}var v=[0,l(EO,c),v]}},x)}),m0(EO,function(x){return k(SO,x,l(sd,x))}),m0(SO,function(x,r){var e=M(x);if(typeof e=="number"&&e===11&&!x[15]){var t=k(a6,x,r);return I1(v6,1,x,t[1],0,[0,t[1],[0,0,[0,t,0],0,0]])}return r}),m0(sd,function(x){var r=M(x);return typeof r=="number"&&r===85?r0(0,function(e){var t=f0(e);W(e,85);var u=t0([0,t],0,R);return[11,[0,l(sd,e),u]]},x):l(OX,x)}),m0(OX,function(x){var r=fx(x);return St(ad,0,x,r,l(FX,x))}),m0(ad,function(x,r,e,t){var u=x?x[1]:0;if(K1(r))return t;var i=M(r);if(typeof i=="number"){if(i===6)return b0(r),I1(od,u,0,r,e,t);if(i===10){var c=vr(1,r);return typeof c=="number"&&c===6?(Kx(r,Za0),W(r,10),W(r,6),I1(od,u,0,r,e,t)):(Kx(r,xo0),t)}if(i===83)return b0(r),M(r)!==6&&Kx(r,41),W(r,6),I1(od,1,1,r,e,t)}return t}),m0(od,function(x,r,e,t,u){return St(ad,[0,x],e,t,r0([0,t],function(i){if(!r&&f2(i,7))return[16,[0,u,t0(0,[0,xx(i)],R)]];var c=l(Gr,i);W(i,7);var v=[0,u,c,t0(0,[0,xx(i)],R)];return x?[21,[0,v,r]]:[20,v]},e))}),m0(CX,function(x){return k(DX,x,k(z0[13],0,x))}),m0(DX,function(x,r){for(var e=[0,r[1],[0,r]];;){var t=e[2],u=e[1];if(M(x)===10&&pX(1,x)){var i=r0([0,u],function(a){return function(p){return W(p,10),[0,a,g1(p)]}}(t),x),c=i[1],e=[0,c,[1,[0,c,i[2]]]];continue}return t}}),m0(AO,function(x){if(L2(x,0),M(x)===4){b0(x);var r=l(AO,x);W(x,5);var e=r}else var e=Jc(x)?[0,l(CX,x)]:(Kx(x,46),0);return J2(x),e}),m0(RX,function(x){return r0(0,function(r){var e=f0(r);W(r,46);var t=l(AO,r);if(!t)return Qa0;var u=t[1],i=K1(r)?0:l(kd,r);return[24,[0,u,i,t0([0,e],0,R)]]},x)}),m0(FX,function(x){var r=fx(x),e=M(x);x:{r:{if(typeof e=="number")switch(e){case 4:return l(YX,x);case 6:return l(qX,x);case 46:return l(RX,x);case 53:return r0(0,function($){var x0=f0($);b0($);var e0=l(OO,$),Z=e0[2],c0=e0[1];return[15,[0,Z,c0,t0([0,x0],0,R)]]},x);case 98:return l(zX,x);case 104:return r0(0,LX,x);case 106:var t=f0(x);return b0(x),[0,r,[10,t0([0,t],[0,xx(x)],R)]];case 125:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=l(Gr,$);return[25,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 126:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=l(Gr,$);return[27,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 127:return r0(0,function($){var x0=f0($);b0($);var e0=xx($),Z=r0(0,function(c0){var d0=l(Aa,c0);function n0(P0){if(1-f2(P0,41))throw U0(Yc,1);var h0=l(cd,P0);if(!P0[16]&&M(P0)===85)throw U0(Yc,1);return[1,[0,h0[1],h0]]}return[0,d0,rd(c0,[0,fx(c0)],n0),1,0,0]},$);return[18,[0,Z,t0([0,x0],[0,e0],R)]]},x);case 0:case 2:var u=St(pd,0,1,1,x);return[0,u[1],[14,u[2]]];case 131:case 132:break r;case 41:case 42:break;case 30:case 31:var i=f0(x);return b0(x),[0,r,[32,[0,e===31?1:0,t0([0,i],[0,xx(x)],R)]]];default:break x}else switch(e[0]){case 2:var c=e[1],v=c[3],a=c[2],p=c[1];c[4]&&Ot(x,76);var _=f0(x);return b0(x),[0,p,[29,[0,a,v,t0([0,_],[0,xx(x)],R)]]];case 4:var y=e[3];if(I(y,ta)){if(I(y,wo)){if(!I(y,dr))break r}else if(x[28][1]){var S=vr(1,x);e:if(typeof S=="number"){if(S!==4&&S!==98)break e;return l(VX,x)}var E=l(l6,x);return[0,E[1],[19,E[2]]]}}else if(x[28][1])return r0(0,function($){var x0=f0($);Kc($,Ga0);var e0=Y1($,l(Ia,$)),Z=l(jO,$);if(pO($))var n0=mO($,l(md,$)),P0=Z;else var c0=l(md,$),d0=I2($)[2],n0=c0,P0=k(d0,Z,function(h0,g0){return k(Wx(h0,420776873,12),h0,g0)});return[13,[0,e0,P0,n0,t0([0,x0],0,R)]]},x);break;case 7:if(I(e[1],M3))break x;return Kx(x,84),[0,r,Wa0];case 12:var j=e[3],C=e[2],P=e[1],O=0;return r0(0,function($){return IX(O,P,C,j,$)},x);case 13:var F=e[3],K=e[2],U=0;return r0(0,function($){return jX(U,K,F,$)},x);default:break x}var V=l(l6,x);return[0,V[1],[19,V[2]]]}return r0(0,function($){return[26,l(IO,$)]},x)}var Q=l(UX,x);return Q?[0,r,Q[1]]:(_2($a0,x),[0,r,Ha0])}),m0(LX,function(x){var r=f0(x);b0(x);var e=M(x);if(typeof e!="number")switch(e[0]){case 12:return IX([0,r],e[1],e[2],e[3],x);case 13:return jX([0,r],e[2],e[3],x)}return _2(za0,x),Va0}),m0(MX,function(x){x:{if(typeof x=="number")switch(x){case 29:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:break;default:break x}else if(x[0]!==11)break x;return 1}return 0}),m0(vd,function(x,r){var e=f0(x),t=r0(0,b0,x)[1],u=t0([0,e],[0,xx(x)],R);return[0,[19,[0,[0,rn(0,[0,t,r])],0,u]]]}),m0(UX,function(x){var r=f0(x),e=M(x);if(typeof e=="number")switch(e){case 29:return b0(x),[0,[4,t0([0,r],[0,xx(x)],R)]];case 114:return b0(x),[0,[0,t0([0,r],[0,xx(x)],R)]];case 115:return b0(x),[0,[1,t0([0,r],[0,xx(x)],R)]];case 116:return b0(x),[0,[2,t0([0,r],[0,xx(x)],R)]];case 117:return b0(x),[0,[5,t0([0,r],[0,xx(x)],R)]];case 118:return b0(x),[0,[6,t0([0,r],[0,xx(x)],R)]];case 119:return b0(x),[0,[7,t0([0,r],[0,xx(x)],R)]];case 120:return b0(x),[0,[3,t0([0,r],[0,xx(x)],R)]];case 121:return b0(x),[0,[9,t0([0,r],[0,xx(x)],R)]];case 122:return b0(x),[0,[33,t0([0,r],[0,xx(x)],R)]];case 123:return b0(x),[0,[34,t0([0,r],[0,xx(x)],R)]];case 124:return b0(x),[0,[35,t0([0,r],[0,xx(x)],R)]];case 128:return k(vd,x,Ja0);case 129:return k(vd,x,Ka0);case 130:return k(vd,x,Ya0)}else if(e[0]===11){var t=e[1];b0(x);var u=xx(x),i=t?-883944824:737456202;return[0,[8,i,t0([0,r],[0,u],R)]]}return 0}),m0(qX,function(x){return r0(0,function(r){var e=f0(r);W(r,6);for(var t=Bo(0,r),u=0;;){var i=M(t);x:{r:if(typeof i=="number"){if(i!==7&&Dr!==i)break r;var _=[0,vx(u),0];break x}var c=r0(0,function(E){if(!f2(E,12)){var j=M(E);r:{if(typeof j=="number"&&(Ze===j||_t===j&&Ms(1,E))){var C=fd(0,0,E);break r}var C=0}var P=Jc(E),O=vr(1,E);if(P&&typeof O=="number"&&1>=O+hs>>>0){var F=g1(E),K=f2(E,85);return W(E,86),[0,[1,[0,F,l(Gr,E),C,K]]]}var U=C?1:0;return U&&Kx(E,45),[0,[0,l(Gr,E)]]}var V=M(E);r:if(typeof V=="number"){if(10<=V){if(Dr!==V)break r}else{if(7>V)break r;switch(V-7|0){case 0:break;case 1:break r;default:return _2(Xa0,E),b0(E),0}}return 0}var Q=Jc(E),$=vr(1,E);r:{if(Q&&typeof $=="number"&&1>=$+hs>>>0){var x0=g1(E);M(E)===85&&(Kx(E,44),b0(E)),W(E,86);var e0=[0,x0];break r}var e0=0}return[0,[2,[0,e0,l(Gr,E)]]]},t),v=c[2],a=c[1];if(v){var p=[0,[0,a,v[1]],u];M(t)!==7&&W(t,9);var u=p;continue}var _=[0,vx(u),1]}var y=_[2],S=_[1];return W(r,7),[28,[0,S,y,t0([0,e],[0,xx(r)],R)]]}},x)}),m0(IO,function(x){var r=f0(x),e=M(x);x:{if(typeof e=="number")switch(e){case 131:var t=1;break x;case 132:var t=2;break x}else if(e[0]===4&&!I(e[3],dr)){var t=0;break x}var t=gx(Ba0)}var u=fx(x);b0(x);var i=xx(x),c=l(sd,x);return[0,u,c,t0([0,r],[0,i],R),t]}),m0(a6,function(x,r){return[0,r[1],[0,0,r,0]]}),m0(BX,function(x){return r0(0,function(r){L2(r,0);var e=k(z0[13],0,r);J2(r),1-g2(r)&&Kx(r,S1);var t=f2(r,85);return W(r,86),[0,[0,e],l(Gr,r),t]},x)});function ZX(x){var r=vr(1,x);return typeof r=="number"&&1>=r+hs>>>0?l(BX,x):k(a6,x,l(Gr,x))}function lw0(x,r,e){for(var t=r,u=e;;){var i=M(x);x:if(typeof i=="number")switch(i){case 5:case 12:case 113:var c=i===12?[0,r0(0,function(S){var E=f0(S);W(S,12);var j=t0([0,E],0,R);return[0,ZX(S),j]},x)]:0;return[0,t,vx(u),c,0]}else if(i[0]===4&&!I(i[3],uo)){if(vr(1,x)!==86&&vr(1,x)!==85)break x;var v=t!==0?1:0,a=v||(u!==0?1:0);a&&Kx(x,89);var p=r0(0,function(E){var j=f0(E);b0(E),M(E)===85&&Kx(E,88);var C=t0([0,j],0,R);return[0,l(o3,E),C]},x);M(x)!==5&&W(x,9);var t=[0,p];continue}var _=[0,ZX(x),u];M(x)!==5&&W(x,9);var u=_}}m0(Us,function(x){var r=0;return function(e){return lw0(x,r,e)}}),m0(o6,function(x){return r0(0,function(r){var e=f0(r);W(r,4);var t=k(Us,r,0),u=f0(r);W(r,5);var i=F2([0,e],[0,xx(r)],u,R);return[0,t[1],t[2],t[3],i]},x)}),m0(XX,function(x,r){for(var e=r;;){var t=M(x);x:if(typeof t=="number"){var u=t-5|0;if(7>>0){if(R7!==u)break x}else if(5>=u-1>>>0)break x;var i=t===12?[0,r0(0,function(a){var p=f0(a);W(a,12);var _=vr(1,a);r:{if(typeof _=="number"){if(_===85){L2(a,0);var y=k(z0[13],0,a);J2(a),W(a,85),W(a,86);var E=1,j=[0,y];break r}if(_===86){L2(a,0);var S=k(z0[13],0,a);J2(a),W(a,86);var E=0,j=[0,S];break r}}var E=0,j=0}var C=l(Gr,a);return[0,j,C,E,t0([0,p],0,R)]},x)]:0;return[0,vx(e),i,0]}var c=[0,r0(0,function(a){var p=M(a);x:{if(typeof p!="number"&&p[0]===2){var _=p[1],y=_[4],S=_[3],E=_[2],j=_[1];y&&Ot(a,76),W(a,[2,[0,j,E,S,y]]);var P=[1,[0,j,[0,E,S,t0(0,[0,xx(a)],R)]]];break x}L2(a,0);var C=k(z0[13],0,a);J2(a);var P=[0,C]}var O=f2(a,85);return[0,P,l(o3,a),O]},x),e];M(x)!==5&&W(x,9);var e=c}}),m0(jO,function(x){return r0(0,function(r){var e=f0(r);W(r,4);var t=k(XX,r,0),u=f0(r);W(r,5);var i=F2([0,e],[0,xx(r)],u,R);return[0,t[1],t[2],i]},x)}),m0(JX,function(x){var r=f0(x);W(x,4);var e=Bo(0,x),t=M(e);x:{r:{if(typeof t=="number")switch(t){case 5:var _=qa0;break x;case 131:var u=vr(1,e);e:{if(typeof u=="number"&&u===86){var i=[0,k(Us,e,0)];break e}var i=[1,l(Gr,e)]}var _=i;break x;case 42:break;case 12:case 113:var _=[0,k(Us,e,0)];break x;default:break r}else{if(t[0]!==4)break r;if(!I(t[3],dr)){var c=vr(1,e);e:{if(typeof c=="number"&&1>=c+hs>>>0){var v=[0,k(Us,e,0)];break e}var v=[1,l(Gr,e)]}var _=v;break x}}var _=l(KX,e);break x}if(l(MX,t)){var a=vr(1,e);r:{if(typeof a=="number"&&1>=a+hs>>>0){var p=[0,k(Us,e,0)];break r}var p=[1,l(Gr,e)]}var _=p}else var _=[1,l(Gr,e)]}if(_[0]===0)var y=_;else{var S=_[1];if(x[15])var E=_;else{var j=M(x);x:{if(typeof j=="number"){if(j===5){if(vr(1,x)===11){var C=[0,k(Us,x,[0,k(a6,x,S),0])];break x}var C=[1,S];break x}if(j===9){W(x,9);var C=[0,k(Us,x,[0,k(a6,x,S),0])];break x}}var C=_}var E=C}var y=E}var P=f0(x);W(x,5);var O=xx(x);if(y[0]===0)var F=y[1],K=F2([0,r],[0,O],P,R),U=[0,[0,F[1],F[2],F[3],K]];else var U=[1,B0(QX,y[1],r,O)];return U}),m0(KX,function(x){var r=vr(1,x);if(typeof r=="number"&&1>=r+hs>>>0)return[0,k(Us,x,0)];var e=fx(x),t=k(WX,x,l(Aa,x)),u=l(B0(ad,0,x,e),t),i=l(l(SO,x),u),c=l(k(l(TO,x),0,e),i),v=l(k(l(bO,x),0,e),c);return[1,l(k(_O,cO(0,x),e),v)]}),m0(YX,function(x){var r=fx(x),e=r0(0,JX,x),t=e[2],u=e[1];return t[0]===0?I1(v6,1,x,r,0,[0,u,t[1]]):t[1]}),m0(zX,function(x){var r=fx(x),e=Y1(x,l(Ia,x));return I1(v6,1,x,r,e,l(o6,x))}),m0(v6,function(x,r,e,t,u){return r0([0,e],function(i){return W(i,11),[12,[0,t,u,l(PO,i),0,x]]},r)}),m0(VX,function(x){var r=fx(x);b0(x);var e=Y1(x,l(Ia,x));return I1(v6,0,x,r,e,l(o6,x))}),m0(PO,function(x){return nd(x)?[1,l(ld,x)]:[0,l(Gr,x)]}),m0(ld,function(x){function r(e){var t=f0(e);W(e,y2);var u=Fx(t,f0(e));return[0,[0,l(Gr,e)],u]}return r0(0,function(e){var t=f0(e),u=f2(e,dl)?1:f2(e,kl)?2:0;L2(e,0);var i=g1(e);J2(e);x:if(u===2)var c=r(e),v=c[2],a=c[1];else{var p=M(e);if(typeof p=="number"&&y2===p){var _=r(e),v=_[2],a=_[1];break x}var v=0,a=0}return[0,u,[0,i,a],F2([0,t],0,v,R)]},x)}),m0(NO,function(x,r){return r0([0,r],ld,x)});function hd(x,r,e){return r0([0,r],function(t){var u=l(o6,t);return W(t,86),[0,e,u,l(PO,t),0,1]},x)}function xJ(x,r,e,t,u){var i=nn(x,t),c=hd(x,r,Y1(x,l(Ia,x))),v=[0,c[1],[12,c[2]]],a=[0,i,[0,v],0,e!==0?1:0,0,1,0,t0([0,u],0,R)];return[0,[0,v[1],a]]}function dd(x,r,e,t,u,i,c){var v=c[2],a=c[1];return 1-g2(x)&&Kx(x,S1),[0,r0([0,r],function(p){var _=f2(p,85),y=hX(p,86)?l(Gr,p):[0,a,Ua0];return[0,v,[0,y],_,t!==0?1:0,u!==0?1:0,0,e,t0([0,i],0,R)]},x)]}function p6(x,r){var e=M(r);if(typeof e=="number"&&10>e)switch(e){case 1:if(!x)return;break;case 3:if(x)return;break;case 8:case 9:return b0(r)}return tn(r,9)}function k6(x,r){if(r)return D0(x,[0,r[1][1],$f])}function m6(x,r){if(r)return D0(x,[0,r[1],94])}function pw0(x,r,e,t,u,i,c,v,a){for(var p=e,_=t,y=u,S=i,E=c,j=v;;){var C=M(x);if(typeof C=="number")switch(C){case 6:m6(x,E);var P=vr(1,x);if(typeof P=="number"&&P===6)return k6(x,y),[4,r0([0,a],function(B){var G0=Fx(j,f0(B));W(B,6),W(B,6);var W0=g1(B);W(B,7),W(B,7);var Y0=M(B);x:{r:if(typeof Y0=="number"){if(Y0!==4&&Y0!==98)break r;var V0=hd(B,a,Y1(B,l(Ia,B))),S0=0,q0=[0,V0[1],[12,V0[2]]],yx=1,cx=0;break x}var ex=f2(B,85),Q0=xx(B);W(B,86);var S0=Q0,q0=l(Gr,B),yx=0,cx=ex}return[0,W0,q0,cx,S!==0?1:0,yx,t0([0,G0],[0,S0],R)]},x)];var O=Fx(j,f0(x));W(x,6);var F=vr(1,x);return typeof F!="number"&&F[0]===4&&!I(F[3],aa)&&S===0?[5,r0([0,a],function(B){var G0=l(Aa,B),W0=G0[1];b0(B);var Y0=l(Gr,B);W(B,7);var V0=M(B);x:{r:{var ex=[0,G0,[0,W0],0,0,0];if(typeof V0=="number"){var Q0=V0+MA|0;if(1>>0){if(Q0!==-18)break r;b0(B);var S0=2}else var S0=Q0?(b0(B),W(B,85),1):(b0(B),W(B,85),0);var q0=S0;break x}}var q0=3}W(B,86);var yx=l(Gr,B);return[0,[0,W0,ex],yx,Y0,y,q0,t0([0,O],[0,xx(B)],R)]},x)]:[2,r0([0,a],function(B){if(vr(1,B)===86){var G0=g1(B);W(B,86);var W0=[0,G0]}else var W0=0;var Y0=l(Gr,B);W(B,7);var V0=xx(B);W(B,86);var ex=l(Gr,B);return[0,W0,Y0,ex,S!==0?1:0,y,t0([0,O],[0,V0],R)]},x)];case 42:if(p){if(y!==0)throw U0([0,Ar,Oa0],1);var K=[0,fx(x)],U=Fx(j,f0(x));b0(x);var p=0,_=0,S=K,j=U;continue}break;case 126:if(y===0){if(!Ms(1,x)&&vr(1,x)!==6)break;var p=0,_=0,y=fd(Ca0,0,x);continue}break;case 103:case 104:if(y===0){var p=0,_=0,y=fd(0,0,x);continue}break;case 4:case 98:return m6(x,E),k6(x,y),[3,r0([0,a],function(B){var G0=fx(B),W0=hd(B,G0,Y1(B,l(Ia,B)));return[0,W0,S!==0?1:0,t0([0,j],0,R)]},x)]}else if(C[0]===4&&!I(C[3],Fj)&&_){if(y!==0)throw U0([0,Ar,Da0],1);var V=[0,fx(x)],Q=Fx(j,f0(x));b0(x);var p=0,_=0,E=V,j=Q;continue}if(S){var $=S[1];if(E)return gx(Ra0);if(typeof C=="number"&&1>=C+hs>>>0)return dd(x,a,y,0,E,0,[0,$,[3,rn(t0([0,j],0,R),[0,$,Fa0])]])}else if(E){var x0=E[1];if(typeof C=="number"&&1>=C+hs>>>0)return dd(x,a,y,S,0,0,[0,x0,[3,rn(t0([0,j],0,R),[0,x0,La0])]])}var e0=function(B){L2(B,0);var G0=k(z0[20],0,B);return J2(B),G0},Z=f0(x),c0=e0(x),d0=c0[1],n0=c0[2];x:if(n0[0]===3){var P0=n0[1][2][1];if(I(P0,bo)&&I(P0,Dv))break x;var h0=M(x);if(typeof h0=="number"){var g0=h0-5|0;if(92>>0){if(94>=g0+1>>>0)return m6(x,E),k6(x,y),xJ(x,a,S,n0,j)}else if(1>=g0+QR>>>0)return dd(x,a,y,S,E,j,[0,d0,n0])}nn(x,n0);var v0=e0(x),p0=Sr(P0,bo),w0=Fx(j,Z);return m6(x,E),k6(x,y),[0,r0([0,a],function(B){var G0=v0[1],W0=nn(B,v0[2]),Y0=hd(B,a,0),V0=Y0[2][2];r:if(p0){var ex=V0[2];e:{if(!ex[1]){if(!ex[2]&&!ex[3])break e;D0(B,[0,G0,23]);break r}D0(B,[0,G0,24])}}else{var Q0=V0[2];if(Q0[1])D0(B,[0,G0,66]);else{var S0=Q0[2];e:{if(!Q0[3]){if(S0&&!S0[2])break e;D0(B,[0,G0,65]);break r}D0(B,[0,G0,65])}}}var q0=t0([0,w0],0,R),yx=0,cx=0,Dx=0,Ix=S!==0?1:0,Xx=0,Z0=p0?[1,Y0]:[2,Y0];return[0,W0,Z0,Xx,Ix,Dx,cx,yx,q0]},x)]}var T0=c0[2],E0=M(x);x:if(typeof E0=="number"){if(E0!==4&&E0!==98)break x;return m6(x,E),k6(x,y),xJ(x,a,S,T0,j)}var N0=S!==0?1:0;x:if(T0[0]===3){var X0=T0[1],A0=X0[2][1];r:{var rx=X0[1];if(r){if(!Sr(ho,A0)&&(!N0||!Sr(sa,A0)))break r;D0(x,[0,rx,[15,A0,N0,0,0]]);break x}}}return dd(x,a,y,S,E,j,[0,d0,T0])}}m0(pd,function(x,r,e,t){var u=r&&(M(t)===2?1:0),i=r&&1-u;return r0(0,function(c){var v=f0(c),a=u?2:0;W(c,a);var p=Bo(0,c);x:{r:{e:{t:{n:{var _=Ma0;u:for(;;){var y=_[3],S=_[2],E=_[1];if(x&&e)throw U0([0,Ar,Pa0],1);if(i&&!e)throw U0([0,Ar,Na0],1);var j=fx(p),C=M(p);if(typeof C=="number"){if(13<=C){if(Dr===C)break r}else if(C)switch(C-1|0){case 0:if(!u)break e;break;case 2:if(u)break t;break;case 11:if(!e){b0(p);var P=M(p);if(typeof P=="number"&&10>P)switch(P){case 1:case 3:case 8:case 9:D0(p,[0,j,32]),p6(u,p);continue}var O=vO(p);aO(p)(O),D0(p,[0,j,97]),b0(p),p6(u,p);continue}var F=f0(p);b0(p);var K=M(p);if(typeof K=="number"&&10>K)switch(K){case 1:case 3:case 8:case 9:p6(u,p);var U=M(p);if(typeof U=="number"){var V=U-1|0;if(2>=V>>>0)switch(V){case 0:if(i)break n;break;case 1:break;default:break u}}D0(p,[0,j,92]);continue}var Q=[1,r0([0,j],function(T0){return function(E0){var N0=t0([0,T0],0,R);return[0,l(Gr,E0),N0]}}(F),p)];p6(u,p);var _=[0,[0,Q,E],S,y];continue}}var $=pw0(p,x,x,x,0,0,0,0,j);p6(u,p);var _=[0,[0,$,E],S,y]}D0(p,[0,j,31]);var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),1,F];break x}var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),S,y];break x}var x0=[0,vx(E),S,y]}var e0=x0[3],Z=x0[2],c0=x0[1],d0=Fx(e0,f0(c)),n0=u?3:1;return W(c,n0),[0,u,Z,c0,F2([0,v],[0,xx(c)],d0,R)]},t)}),m0(OO,function(x){if(f2(x,41))for(var r=0;;){var e=[0,l(l6,x),r],t=M(x);if(typeof t=="number"&&t===9){W(x,9);var r=e;continue}var u=_X(x,vx(e));break}else var u=0;return[0,u,St(pd,0,0,0,x)]}),m0(Aa,function(x){var r=g1(x),e=r[2],t=e[1],u=r[1],i=e[2];return oO(t)&&D0(x,[0,u,96]),[0,u,[0,t,i]]}),m0(GX,function(x){return r0(0,function(r){var e=l(Aa,r),t=M(r);x:{if(typeof t=="number"){if(t===41){var u=1,i=u,c=[1,r0(0,function(p){return b0(p),l(Gr,p)},r)];break x}if(t===86){var i=0,c=[1,l(o3,r)];break x}}var i=0,c=[0,Ls(r)]}return[0,e,c,i]},x)});function rJ(x,r){var e=oX(x,r);if(e)var t=e;else{x:{if(typeof r=="number"&&1>=r+MA>>>0){var u=1;break x}var u=0}if(!u){x:{if(typeof r=="number")switch(r){case 15:case 29:case 30:case 31:case 41:case 42:case 46:case 53:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break;default:break x}else switch(r[0]){case 4:if(oO(r[3]))return 1;break x;case 11:break;default:break x}return 1}return 0}var t=u}return t}m0(Ia,function(x){if(M(x)!==98)return 0;1-g2(x)&&Kx(x,S1);var r=r0(0,function(t){var u=f0(t);W(t,98);for(var i=0,c=0;;){if(rJ(t,M(t)))var v=hO(0,function(O){return function(F){var K=fd(0,ja0,F),U=l(GX,F),V=U[2],Q=V[3],$=V[2],x0=V[1],e0=U[1],Z=M(F);x:{if(typeof Z=="number"&&Z===82){b0(F);var c0=1,d0=[0,l(Gr,F)];break x}O&&D0(F,[0,e0,52]);var c0=O,d0=0}return[0,[0,x0,$,Q,K,d0],c0]}}(i),t),a=v[2],p=[0,v[1],c];else var a=i,p=c;var _=M(t);x:{if(typeof _=="number"){var y=_+wM|0;if(14>>0){if(y===-90){b0(t);var i=a,c=p;continue}}else if(12>>0){var C=vx(p);break x}}r:{e:{t:{if(typeof _!="number"){if(_[0]!==4)break e;var S=_[3];if(!$h(S)){n:{if(I(S,_o)&&I(S,M1)){var E=0;break n}var E=1}if(!E){if(I(S,sl)){if(!I(S,lo))break t;if(I(S,qu))break e;break t}if(!t[28][2])break e;var j=1;break r}}var j=1;break r}switch(_){case 4:case 82:break;default:break e}}var j=1;break r}var j=0}if(!j){if(rJ(t,_)){tn(t,9);var i=a,c=p;continue}W(t,9);var i=a,c=p;continue}tn(t,99);var C=vx(p)}var P=f0(t);return xd(t,99),[0,C,F2([0,u],[0,xx(t)],P,R)]}},x),e=r[1];return r[2][1]||D0(x,[0,e,51]),[0,r]}),m0(kd,function(x){return M(x)===98?[0,r0(0,function(r){var e=f0(r);W(r,98);for(var t=Bo(0,r),u=0;;){var i=M(t);x:if(typeof i=="number"){if(i!==99&&Dr!==i)break x;var c=vx(u),v=f0(t);return W(t,99),[0,c,F2([0,e],[0,xx(t)],v,R)]}var a=[0,l(Gr,t),u];M(t)!==99&&W(t,9);var u=a}},x)]:0}),m0(l6,function(x){return k(CO,x,l(Aa,x))}),m0(CO,function(x,r){function e(t){for(var u=[0,r[1],[0,r]];;){var i=u[2],c=u[1];if(M(t)===10&&Hh(1,t)){var v=r0([0,c],function(S){return function(E){return W(E,10),[0,S,l(Aa,E)]}}(i),t),a=v[1],u=[0,a,[1,[0,a,v[2]]]];continue}if(M(t)===98)var p=I2(t)[2],_=k(p,i,function(y,S){return k(Wx(y,-860373976,61),y,S)});else var _=i;return[0,_,l(kd,t),0]}}return r0([0,r[1]],e,x)}),m0(WX,function(x,r){var e=k(CO,x,r);return[0,e[1],[19,e[2]]]}),m0($X,function(x){var r=M(x);return typeof r=="number"&&r===86?l(PX,x):[0,Ls(x)]}),m0(HX,function(x){var r=M(x);return typeof r=="number"&&r===86?[1,l(o3,x)]:[0,Ls(x)]}),m0(md,function(x){var r=M(x);x:{if(typeof r=="number")switch(r){case 86:var e=fx(x);1-g2(x)&&Kx(x,S1),Kx(x,34),b0(x);var t=r0(0,Gr,x);return[1,t[1],[0,e,t[2],0,0]];case 131:case 132:break;default:break x}else if(r[0]!==4||I(r[3],dr))break x;1-g2(x)&&Kx(x,S1);var u=r0([0,fx(x)],IO,x);return[1,u[1],u[2]]}return[0,Ls(x)]}),m0(QX,function(x,r,e){var t=x[2],u=x[1];function i(rr){return N1(rr,t0([0,r],[0,e],R))}switch(t[0]){case 0:var Z0=[0,i(t[1])];break;case 1:var Z0=[1,i(t[1])];break;case 2:var Z0=[2,i(t[1])];break;case 3:var Z0=[3,i(t[1])];break;case 4:var Z0=[4,i(t[1])];break;case 5:var Z0=[5,i(t[1])];break;case 6:var Z0=[6,i(t[1])];break;case 7:var Z0=[7,i(t[1])];break;case 8:var c=i(t[2]),Z0=[8,t[1],c];break;case 9:var Z0=[9,i(t[1])];break;case 10:var Z0=[10,i(t[1])];break;case 11:var v=t[1],a=i(v[2]),Z0=[11,[0,v[1],a]];break;case 12:var p=t[1],_=p[5],y=i(p[4]),Z0=[12,[0,p[1],p[2],p[3],y,_]];break;case 13:var S=t[1],E=i(S[4]),Z0=[13,[0,S[1],S[2],S[3],E]];break;case 14:var j=t[1],C=j[4],P=zN(C,t0([0,r],[0,e],R)),Z0=[14,[0,j[1],j[2],j[3],P]];break;case 15:var O=t[1],F=i(O[3]),Z0=[15,[0,O[1],O[2],F]];break;case 16:var K=t[1],U=i(K[2]),Z0=[16,[0,K[1],U]];break;case 17:var V=t[1],Q=i(V[5]),Z0=[17,[0,V[1],V[2],V[3],V[4],Q]];break;case 18:var $=t[1],x0=i($[2]),Z0=[18,[0,$[1],x0]];break;case 19:var e0=t[1],Z=i(e0[3]),Z0=[19,[0,e0[1],e0[2],Z]];break;case 20:var c0=t[1],d0=i(c0[3]),Z0=[20,[0,c0[1],c0[2],d0]];break;case 21:var n0=t[1],P0=n0[1],h0=n0[2],g0=i(P0[3]),Z0=[21,[0,[0,P0[1],P0[2],g0],h0]];break;case 22:var v0=t[1],p0=i(v0[2]),Z0=[22,[0,v0[1],p0]];break;case 23:var w0=t[1],T0=i(w0[2]),Z0=[23,[0,w0[1],T0]];break;case 24:var E0=t[1],N0=i(E0[3]),Z0=[24,[0,E0[1],E0[2],N0]];break;case 25:var X0=t[1],A0=i(X0[2]),Z0=[25,[0,X0[1],A0]];break;case 26:var rx=t[1],B=rx[4],G0=i(rx[3]),Z0=[26,[0,rx[1],rx[2],G0,B]];break;case 27:var W0=t[1],Y0=i(W0[2]),Z0=[27,[0,W0[1],Y0]];break;case 28:var V0=t[1],ex=i(V0[3]),Z0=[28,[0,V0[1],V0[2],ex]];break;case 29:var Q0=t[1],S0=i(Q0[3]),Z0=[29,[0,Q0[1],Q0[2],S0]];break;case 30:var q0=t[1],yx=i(q0[3]),Z0=[30,[0,q0[1],q0[2],yx]];break;case 31:var cx=t[1],Dx=i(cx[3]),Z0=[31,[0,cx[1],cx[2],Dx]];break;case 32:var Ix=t[1],Xx=i(Ix[2]),Z0=[32,[0,Ix[1],Xx]];break;case 33:var Z0=[33,i(t[1])];break;case 34:var Z0=[34,i(t[1])];break;default:var Z0=[35,i(t[1])]}return[0,u,Z0]});function eJ(x,r){if(M(x)!==4)return[0,0,t0([0,r],[0,xx(x)],R)];var e=Fx(r,f0(x));W(x,4),L2(x,0);var t=l(z0[9],x);return J2(x),W(x,5),[0,[0,t],t0([0,e],[0,xx(x)],R)]}function kw0(x){var r=f0(x);return W(x,66),eJ(x,r)}var mw0=0;function tJ(x){var r=Bo(0,x),e=M(r);return typeof e=="number"&&e===66?[0,r0(mw0,kw0,r)]:0}function hw0(x){var r=M(x);if(typeof r=="number"&&r===86){1-g2(x)&&Kx(x,S1);var e=Ls(x),t=fx(x);W(x,86);var u=M(x);if(typeof u=="number"&&u===66){var i=Bo(0,x);return[0,[0,e],[0,r0([0,t],function(a){var p=f0(a);return W(a,66),eJ(a,p)},i)]]}if(nd(x))return[0,[2,k(NO,x,t)],0];var c=[1,r0([0,t],Gr,x)],v=M(x)===66?s3(x,c):c;return[0,v,tJ(x)]}return[0,[0,Ls(x)],0]}function ve(x,r){var e=Fs(1,r);L2(e,1);var t=l(x,e);return J2(e),t}function qs(x){return ve(Gr,x)}function zc(x){return ve(Aa,x)}function De(x){return ve(Ia,x)}function nJ(x){return ve(kd,x)}function Yo(x){return ve(o3,x)}function DO(x){return ve(HX,x)}function RO(x){return ve($X,x)}function FO(x){return ve(hw0,x)}function uJ(x){return ve(l6,x)}function LO(x){return ve(md,x)}var dw0=AX(z0);function ja(x,r){var e=r[2],t=r[1],u=x[1];switch(e[0]){case 0:return u1(yw0,x,e[1][1]);case 1:return u1(gw0,x,e[1][1]);case 2:var i=e[1][1],c=i[2][1],v=x[2],a=x[1],p=i[1];y1[3].call(null,c,v)&&D0(a,[0,p,77]);var _=i[2][1],y=i[1];return Xo(_)&&ct(a,[0,y,78]),i3(_)&&ct(a,[0,y,80]),[0,a,y1[4].call(null,c,v)];default:return D0(u,[0,t,20]),x}}function yw0(x){return function(r){return r[0]===0?ja(x,r[1][2][2]):ja(x,r[1][2][1])}}function gw0(x){return function(r){switch(r[0]){case 0:return ja(x,r[1][2][1]);case 1:return ja(x,r[1][2][1]);default:return x}}}function iJ(x,r){var e=r[2],t=e[3],u=e[2],i=[0,x,y1[1]],c=u1(function(v,a){return ja(v,a[2][1])},i,u);t&&ja(c,t[1][2][1])}function fJ(x,r,e,t){var u=x[5],i=t[0]===0?Ko(t[1]):0,c=Fs(u?0:r,x),v=r||u||1-i;if(!v)return v;if(e){var a=e[1],p=a[2][1],_=a[1];Xo(p)&&ct(c,[0,_,70]),i3(p)&&ct(c,[0,_,80])}if(t[0]===0)return iJ(c,t[1]);var y=t[1][2],S=y[2],E=y[1],j=[0,Yv,[0,[0,xn(function(P){var O=P[2],F=O[1],K=O[4],U=O[3],V=O[2],Q=F[0]===0?[3,F[1]]:[0,[0,Yv,F[1][2]]];return[0,[0,Yv,[0,Q,V,U,K]]]},E),[0,Yv],0]]],C=ja([0,c,y1[1]],j);S&&ja(C,S[1][2][1])}function v3(x,r,e,t){return fJ(x,r,e,[0,t])}function cJ(x,r){if(r!==12)return 0;var e=f0(x),t=r0(0,function(c){return W(c,12),k(z0[18],c,78)},x),u=t[2],i=t[1];return[0,[0,i,u,t0([0,e],0,R)]]}var MO=function x(r,e){return x.fun(r,e)};function _w0(x){M(x)===21&&Kx(x,89);var r=k(z0[18],x,78),e=M(x)===82?(W(x,82),[0,l(z0[10],x)]):0;return[0,r,e]}var bw0=0;m0(MO,function(x,r){var e=M(x);x:if(typeof e=="number"){var t=e-5|0;if(7>>0){if(R7!==t)break x}else if(5>=t-1>>>0)break x;var u=cJ(x,e),i=eh(function(v){return[0,v[1],[0,v[2],v[3]]]},u);return M(x)!==5&&Kx(x,61),[0,vx(r),i]}var c=r0(bw0,_w0,x);return M(x)!==5&&W(x,9),k(MO,x,[0,c,r])});function l3(x,r){function e(u){var i=nX(1,uO(r,iO(x,u))),c=f0(i);W(i,4);x:{if(g2(i)&&M(i)===21){var v=f0(i),a=r0(0,function(F){return W(F,21),M(F)===86?[0,Yo(F)]:(Kx(F,85),0)},i),p=a[2],_=a[1];if(!p){var S=0;break x}var y=p[1];M(i)===9&&b0(i);var S=[0,[0,_,[0,y,t0([0,v],0,R)]]];break x}var S=0}var E=k(MO,i,0),j=E[2],C=E[1],P=f0(i);return W(i,5),[0,S,C,j,F2([0,c],[0,xx(i)],P,R)]}var t=0;return function(u){return r0(t,e,u)}}function sJ(x,r,e,t,u){var i=aX(x,r,e,u);return k(z0[16],t,i)}function h6(x,r,e,t,u){var i=sJ(x,r,e,t,u);return[0,[0,i[1]],i[2]]}function ww0(x,r,e,t){var u=fx(x),i=M(x);x:{if(typeof i=="number")switch(i){case 103:var c=f0(x);b0(x);var p=[0,[0,u,[0,0,t0([0,c],0,R)]]];break x;case 104:var v=f0(x);b0(x);var p=[0,[0,u,[0,1,t0([0,v],0,R)]]];break x}else if(i[0]===4&&!I(i[3],ko)&&r){var a=f0(x);b0(x);var p=[0,[0,u,[0,2,t0([0,a],0,R)]]];break x}var p=0}x:if(p){var _=p[1][1];if(!e&&!t)break x;return D0(x,[0,_,$f]),0}return p}function zo(x){if(z2!==M(x))return Pv0;var r=f0(x);return b0(x),[0,1,r]}function yd(x){if(M(x)===64&&!t6(1,x)){var r=f0(x);return b0(x),[0,1,r]}return jv0}function Tw0(x){var r=yd(x),e=r[1],t=r[2],u=r0(0,function(O){var F=f0(O),K=M(O);x:{if(typeof K=="number"){if(K===15){b0(O);var U=zo(O),Q=U[2],$=U[1],x0=1;break x}}else if(K[0]===4&&!I(K[3],wo)&&!e){b0(O);var Q=0,$=0,x0=0;break x}tn(O,K);var V=zo(O),Q=V[2],$=V[1],x0=1}var e0=Rl([0,t,[0,F,[0,Q,0]]]),Z=O[7],c0=M(O);x:{if(Z&&typeof c0=="number"){if(c0===4){var h0=0,g0=0;break x}if(c0===98){var d0=Y1(O,De(O)),n0=M(O)===4?0:[0,Ct(O,k(z0[13],Ev0,O))],h0=n0,g0=d0;break x}}var P0=Jc(O)?Ct(O,k(z0[13],Sv0,O)):(mX(O,Av0),[0,fx(O),Iv0]),h0=[0,P0],g0=Y1(O,De(O))}var v0=l3(e,$)(O),p0=M(O)===86?v0:f6(O,v0),w0=FO(O),T0=w0[2],E0=w0[1];if(T0)var N0=gX(O,T0),X0=E0;else var N0=T0,X0=s3(O,E0);return[0,$,x0,g0,h0,p0,X0,N0,e0]},x),i=u[2],c=i[5],v=i[4],a=i[1],p=i[8],_=i[7],y=i[6],S=i[3],E=i[2],j=u[1],C=h6(x,e,a,0,Ko(c)),P=C[1];return v3(x,C[2],v,c),[27,[0,v,c,P,e,a,E,_,y,S,t0([0,p],0,R),j]]}var Ew0=0;function d6(x){return r0(Ew0,Tw0,x)}function UO(x,r){var e=f0(r);W(r,x);var t=r[28][2];if(t)var u=x===27?1:0,i=u&&(M(r)===48?1:0);else var i=t;i&&Kx(r,19);for(var c=0,v=0;;){var a=r0(0,function(P){var O=k(z0[18],P,81);if(f2(P,82))var F=0,K=[0,l(z0[10],P)];else{var U=O[1];if(O[2][0]===2)var F=0,K=0;else var F=[0,[0,U,58]],K=0}return[0,[0,O,K],F]},r),p=a[2],_=p[2],y=[0,[0,a[1],p[1]],c],S=_?[0,_[1],v]:v;if(!f2(r,9)){var E=vx(S);return[0,vx(y),e,E]}var c=y,v=S}}var Sw0=24;function aJ(x){return UO(Sw0,x)}function oJ(x){var r=UO(27,fO(1,x)),e=r[1],t=r[3],u=r[2];return[0,e,u,vx(u1(function(i,c){return c[2][2]?i:[0,[0,c[1],57],i]},t,e))]}function vJ(x){return UO(28,fO(1,x))}function lJ(x){function r(t){return[20,dw0[1].call(null,x,t)]}var e=0;return function(t){return r0(e,r,t)}}var qO=function x(r,e){return x.fun(r,e)};function Aw0(x){var r=f0(x),e=M(x),t=vr(1,x);x:{r:if(typeof e!="number"&&e[0]===2){var u=e[1],i=u[4],c=u[3],v=u[2],a=u[1];e:{if(typeof t=="number")switch(t){case 85:case 86:break;default:break e}else{if(t[0]!==4)break e;if(I(t[3],Jt))break r}i&&Ot(x,76),W(x,[2,[0,a,v,c,i]]);var p=[1,[0,a,[0,v,c,t0([0,r],[0,xx(x)],R)]]];if(typeof t=="number"&&1>=t+hs>>>0){var _=t===85?1:0;Kx(x,[16,_,v]),_&&b0(x);var y=fx(x),C=0,P=[0,y,[2,[0,[0,y,wv0],DO(x),_]]],O=p;break x}b0(x);var C=0,P=k(z0[18],x,78),O=p;break x}}if(typeof t!="number"&&t[0]===4&&!I(t[3],Jt)){var S=[0,g1(x)];Kc(x,Tv0);var C=0,P=k(z0[18],x,78),O=S;break x}var E=B0(z0[14],x,0,78),j=E[2],C=1,P=[0,E[1],[2,j]],O=[0,j[1]]}var F=M(x)===82?(W(x,82),[0,l(z0[10],x)]):0;return[0,O,P,F,C]}var Iw0=0;m0(qO,function(x,r){var e=M(x);x:if(typeof e=="number"){var t=e-5|0;if(7>>0){if(R7!==t)break x}else if(5>=t-1>>>0)break x;var u=cJ(x,e),i=eh(function(v){return[0,v[1],[0,v[2],v[3]]]},u);return M(x)!==5&&Kx(x,61),[0,vx(r),i]}var c=r0(Iw0,Aw0,x);return M(x)!==5&&W(x,9),k(qO,x,[0,c,r])});function jw0(x){var r=nX(1,x),e=f0(r);W(r,4);var t=k(qO,r,0),u=t[2],i=t[1],c=f0(r);return W(r,5),[0,i,u,F2([0,e],[0,xx(r)],c,R)]}var Pw0=0;function Nw0(x){var r=r0(0,function(y){var S=f0(y);Kc(y,_v0);var E=Ct(y,k(z0[13],bv0,y)),j=Y1(y,De(y)),C=r0(Pw0,jw0,y);if(pO(y))var O=C;else var P=I2(y)[2],O=k(P,C,function(F,K){return k(Wx(F,842685896,11),F,K)});return[0,j,E,O,mO(y,LO(y)),S]},x),e=r[2],t=e[3],u=e[2],i=e[5],c=e[4],v=e[1],a=r[1],p=sJ(x,0,0,0,0),_=p[1];return fJ(x,p[2],[0,u],[1,t]),[3,[0,u,v,t,c,_,t0([0,i],0,R),a]]}var Ow0=0;function BO(x){return r0(Ow0,Nw0,x)}function f1(x,r){if(r[0]===0)return r[1];var e=r[2][1],t=r[1];return p1(function(u){return D0(x,u)},e),t}function XO(x,r,e){var t=x?x[1]:37;if(e[0]===0)var u=e[1];else{var i=e[2][2],c=e[1];p1(function(_){return D0(r,_)},i);var u=c}1-l(z0[23],u)&&D0(r,[0,u[1],t]);var v=u[2];x:if(v[0]===10){var a=u[1];if(Xo(v[1][2][1])){ct(r,[0,a,71]);break x}}return k(z0[19],r,u)}function JO(x,r){var e=zv(x[2],r[2]);return[0,zv(x[1],r[1]),e]}function pJ(x){var r=vx(x[2]);return[0,vx(x[1]),r]}function kJ(x,r){var e=x[0]===0?x[1]:x[1]-1|0,t=(r[0]===0,r[1]);return t<=e?1:0}var p3=function x(r){return x.fun(r)},Dt=function x(r){return x.fun(r)},mJ=function x(r){return x.fun(r)},KO=function x(r){return x.fun(r)},hJ=function x(r){return x.fun(r)},YO=function x(r){return x.fun(r)},dJ=function x(r){return x.fun(r)},yJ=function x(r){return x.fun(r)},y6=function x(r){return x.fun(r)},zO=function x(r){return x.fun(r)},VO=function x(r){return x.fun(r)},GO=function x(r){return x.fun(r)},gJ=function x(r){return x.fun(r)},WO=function x(r){return x.fun(r)},gd=function x(r){return x.fun(r)},$O=function x(r){return x.fun(r)},_J=function x(r){return x.fun(r)},Vo=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},HO=function x(r,e,t,u){return x.fun(r,e,t,u)},QO=function x(r){return x.fun(r)},_d=function x(r){return x.fun(r)},ZO=function x(r){return x.fun(r)},xC=function x(r,e,t,u,i){return x.fun(r,e,t,u,i)},bJ=function x(r,e,t,u){return x.fun(r,e,t,u)},rC=function x(r){return x.fun(r)},bd=function x(r,e,t){return x.fun(r,e,t)},wJ=function x(r){return x.fun(r)},wd=function x(r,e,t){return x.fun(r,e,t)},eC=function x(r){return x.fun(r)},TJ=function x(r){return x.fun(r)},tC=function x(r,e){return x.fun(r,e)},nC=function x(r,e,t,u){return x.fun(r,e,t,u)},EJ=function x(r){return x.fun(r)},uC=function x(r,e,t){return x.fun(r,e,t)},SJ=function x(r){return x.fun(r)},AJ=function x(r){return x.fun(r)},iC=function x(r){return x.fun(r)},Td=function x(r,e,t){return x.fun(r,e,t)};function Cw0(x){var r=x[2];switch(r[0]){case 23:var e=r[1],t=e[1][2][1];if(I(t,R1)){if(!I(t,no)&&!I(e[2][2][1],Fw))return 0}else if(!I(e[2][2][1],ml))return 0;break;case 0:case 10:case 22:case 25:break;default:return 0}return 1}function fC(x){var r=fx(x),e=l(YO,x),t=l(hJ,x);if(!t)return e;var u=t[1];return[0,r0([0,r],function(i){var c=XO(0,i,e);return[4,[0,u,c,l(Dt,i),0]]},x)]}function Dw0(x,r){if(typeof r=="number"&&r===80)return 0;throw U0(Yc,1)}function IJ(x){var r=Wh(Dw0,x),e=fC(r),t=M(r);if(typeof t=="number"){if(t===11)throw U0(Yc,1);if(t===86){var u=cX(r);x:{if(u){var i=u[1];if(typeof i=="number"&&i===5){var c=1;break x}}var c=0}if(c)throw U0(Yc,1)}}if(!Jc(r))return e;if(e[0]===0){var v=e[1][2];if(v[0]===10&&!I(v[1][2][1],oa)&&!K1(r))throw U0(Yc,1)}return e}m0(p3,function(x){var r=Jc(x);if(r){var e=M(x);x:{if(typeof e=="number"){if(e===58){if(x[18]){var t=0;break x}}else if(e===65&&x[19]){var t=0;break x}}var t=1}var u=t}else var u=r;var i=M(x);x:{r:if(typeof i=="number"){if(22<=i){if(i===58){if(x[18])return[0,l(mJ,x)];break r}if(i!==98)break r}else if(i!==4&&21>i)break r;break x}if(!u)return fC(x)}x:{if(i===64&&g2(x)&&vr(1,x)===98){var c=IJ,v=iC;break x}var c=iC,v=IJ}var a=kO(x,v);if(a)return a[1];var p=kO(x,c);return p?p[1]:fC(x)}),m0(Dt,function(x){return f1(x,l(p3,x))}),m0(mJ,function(x){return r0(0,function(r){r[10]&&Kx(r,ue);var e=f0(r),t=fx(r);W(r,58);var u=fx(r);if(c3(r))var i=0,c=0;else{var v=f2(r,z2),a=M(r);x:{r:if(typeof a=="number"){if(a!==86){if(10<=a)break r;switch(a){case 0:case 2:case 3:case 4:case 6:break r}}var p=0;break x}var p=1}x:{if(!v&&!p){var _=0;break x}var _=[0,l(Dt,r)]}var i=v,c=_}var y=c?0:xx(r),S=Zr(t,u);return[37,[0,c,t0([0,e],[0,y],R),i,S]]},x)}),m0(KO,function(x){var r=x[2];switch(r[0]){case 23:var e=r[1],t=e[1][2][1];if(I(t,R1)){if(!I(t,no)&&!I(e[2][2][1],Fw))return 0}else if(!I(e[2][2][1],ml))return 0;break;case 10:case 22:break;default:return 0}return 1}),m0(hJ,function(x){var r=M(x);x:{if(typeof r=="number"){var e=r-67|0;if(15>=e>>>0){switch(e){case 0:var t=Y30;break;case 1:var t=z30;break;case 2:var t=V30;break;case 3:var t=G30;break;case 4:var t=W30;break;case 5:var t=$30;break;case 6:var t=H30;break;case 7:var t=Q30;break;case 8:var t=Z30;break;case 9:var t=xl0;break;case 10:var t=rl0;break;case 11:var t=el0;break;case 12:var t=tl0;break;case 13:var t=nl0;break;case 14:var t=ul0;break;default:var t=il0}var u=t;break x}}var u=0}return u!==0&&b0(x),u}),m0(YO,function(x){var r=fx(x),e=l(yJ,x);if(M(x)!==85)return e;b0(x);var t=l(Dt,e6(0,x));W(x,86);var u=r0([0,r],Dt,x),i=u[2],c=u[1];return[0,[0,c,[8,[0,f1(x,e),t,i,0]]]]}),m0(dJ,function(x){return f1(x,l(YO,x))});function cC(x,r,e,t,u){var i=f1(x,r);return[0,[0,u,[21,[0,t,i,f1(x,e),0]]]]}function sC(x,r,e){for(var t=r,u=e;;){var i=M(x);if(typeof i=="number"&&i===88){b0(x);var c=r0(0,y6,x),v=c[2],a=Zr(u,c[1]),p=aC(0,x,cC(x,t,v,1,a),a),t=p[2],u=p[1];continue}return[0,u,t]}}function jJ(x,r,e){for(var t=r,u=e;;){var i=M(x);if(typeof i=="number"&&i===87){b0(x);var c=r0(0,y6,x),v=sC(x,c[2],c[1]),a=v[2],p=Zr(u,v[1]),_=aC(0,x,cC(x,t,a,0,p),p),t=_[2],u=_[1];continue}return[0,u,t]}}function aC(x,r,e,t){for(var u=x,i=e,c=t;;){var v=M(r);if(typeof v=="number"&&v===84){1-u&&Kx(r,K30),W(r,84);var a=r0(0,y6,r),p=a[2],_=a[1],y=M(r);x:{if(typeof y=="number"&&1>=y-87>>>0){Kx(r,[20,HN(y)]);var S=sC(r,p,_),E=jJ(r,S[2],S[1]),j=E[2],C=E[1];break x}var j=p,C=_}var P=Zr(c,C),u=1,i=cC(r,i,j,2,P),c=P;continue}return[0,c,i]}}m0(yJ,function(x){var r=r0(0,y6,x),e=r[2],t=r[1],u=M(x);x:{if(typeof u=="number"&&u===84){var c=aC(1,x,e,t);break x}var i=sC(x,e,t),c=jJ(x,i[2],i[1])}return c[2]});function oC(x,r,e,t){return[0,t,[5,[0,e,x,r,0]]]}m0(y6,function(x){for(var r=0;;){var e=r0(0,function(rx){var B=l(zO,rx)!==0?1:0;return[0,B,l(VO,e6(0,rx))]},x),t=e[2],u=t[2],i=t[1],c=e[1];x:if(M(x)===98&&u[0]===0&&u[1][2][0]===12){Kx(x,2);break x}var v=function(rx){return function(B,G0){for(var W0=B,Y0=G0;;){var V0=M(x);x:if(typeof V0!="number"&&V0[0]===4){var ex=V0[3];if(I(ex,Jt)&&I(ex,WF))break x;if(g2(x)){b0(x);var Q0=f1(x,Y0);r:{if(W0){var S0=W0[1],q0=S0[2],yx=W0[2],cx=S0[3],Dx=q0[1],Ix=S0[1];if(kJ(q0[2],_30)){var Xx=oC(Ix,Q0,Dx,Zr(cx,rx)),Z0=yx;break r}}var Xx=Q0,Z0=W0}var rr=Xx[1];if(Sr(ex,WF))var xr=qs(x),fr=xr[1],hr=[0,[0,Zr(rr,fr),[34,[0,Xx,[0,fr,xr],0]]]];else if(M(x)===27){var Hx=Zr(rr,fx(x));b0(x);var hr=[0,[0,Hx,[2,[0,Xx,0]]]]}else var Y=qs(x),jx=Y[1],hr=[0,[0,Zr(rr,jx),[3,[0,Xx,[0,jx,Y],0]]]];var W0=Z0,Y0=hr;continue}}return[0,W0,Y0]}}}(c)(r,u),a=v[2],p=v[1],_=M(x);x:{r:if(typeof _=="number"){var y=_-17|0;if(1>>0){if(72>y)break r;switch(y-72|0){case 0:var S=b30;break;case 1:var S=w30;break;case 2:var S=T30;break;case 3:var S=E30;break;case 4:var S=S30;break;case 5:var S=A30;break;case 6:var S=I30;break;case 7:var S=j30;break;case 8:var S=P30;break;case 9:var S=N30;break;case 10:var S=O30;break;case 11:var S=C30;break;case 12:var S=D30;break;case 13:var S=R30;break;case 14:var S=F30;break;case 15:var S=L30;break;case 16:var S=M30;break;case 17:var S=U30;break;case 18:var S=q30;break;case 19:var S=B30;break;default:break r}var E=S}else var E=y?X30:x[12]?0:J30;var j=E;break x}var j=0}if(j!==0&&b0(x),!p&&!j)return a;if(!j)break;var C=j[1],P=C[1],O=C[2],F=i&&(P===14?1:0);F&&D0(x,[0,c,38]);x:for(var K=f1(x,a),U=[0,P,O],V=c,Q=p;;){var $=U[2],x0=U[1];if(!Q)break x;var e0=Q[1],Z=e0[2],c0=Q[2],d0=e0[3],n0=Z[1],P0=e0[1];if(!kJ(Z[2],$))break;var h0=Zr(d0,V),K=oC(P0,K,n0,h0),U=[0,x0,$],V=h0,Q=c0}var r=[0,[0,K,[0,x0,$],V],Q]}for(var g0=f1(x,a),v0=c,p0=p;;){if(!p0)return[0,g0];var w0=p0[1],T0=p0[2],E0=w0[2][1],N0=w0[1],X0=Zr(w0[3],v0),g0=oC(N0,g0,E0,X0),v0=X0,p0=T0}}),m0(zO,function(x){var r=M(x);if(typeof r=="number"){if(48<=r){if(Ze<=r){if(zt>r)switch(r+MA|0){case 0:return l30;case 1:return p30;case 6:return k30;case 7:return m30}}else if(r===65&&x[19])return x[10]&&Kx(x,6),h30}else if(45<=r)switch(r+_T|0){case 0:return d30;case 1:return y30;default:return g30}}return 0}),m0(VO,function(x){var r=fx(x),e=f0(x),t=l(zO,x);if(t){var u=t[1];b0(x);var i=r0([0,r],GO,x),c=i[2],v=i[1];x:r:if(u===6){var a=c[2];switch(a[0]){case 10:ct(x,[0,v,68]);break;case 22:a[1][2][0]===1&&D0(x,[0,v,62]);break;default:break r}break x}return[0,[0,v,[35,[0,u,c,t0([0,e],0,R)]]]]}var p=M(x);x:{if(typeof p=="number"){if(zt===p){var _=v30;break x}if(ue===p){var _=o30;break x}}var _=0}if(!_)return l(gJ,x);var y=_[1];b0(x);var S=r0([0,r],GO,x),E=S[2],j=S[1];1-l(KO,E)&&D0(x,[0,E[1],37]);var C=E[2];x:if(C[0]===10&&Xo(C[1][2][1])){Ot(x,73);break x}return[0,[0,j,[36,[0,y,E,1,t0([0,e],0,R)]]]]}),m0(GO,function(x){return f1(x,l(VO,x))}),m0(gJ,function(x){var r=l(WO,x);if(K1(x))return r;var e=M(x);x:{if(typeof e=="number"){if(zt===e){var t=a30;break x}if(ue===e){var t=s30;break x}}var t=0}if(!t)return r;var u=t[1],i=f1(x,r);1-l(KO,i)&&D0(x,[0,i[1],37]);var c=i[2];x:if(c[0]===10&&Xo(c[1][2][1])){Ot(x,72);break x}var v=fx(x);b0(x);var a=xx(x),p=Zr(i[1],v);return[0,[0,p,[36,[0,u,i,0,t0(0,[0,a],R)]]]]}),m0(WO,function(x){var r=fx(x),e=1-x[17],t=0,u=x[17]===0?x:[0,x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],t,x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31]],i=M(u);x:{r:if(typeof i=="number"){var c=i-44|0;if(7>=c>>>0){switch(c){case 0:if(!e)break r;var v=[0,l(QO,u)];break;case 6:var v=[0,l(_J,u)];break;case 7:var v=[0,l($O,u)];break;default:break r}var a=v;break x}}var a=Ea(u)?[0,l(rC,u)]:l(eC,u)}return I1(Vo,0,0,u,r,a)}),m0(gd,function(x){return f1(x,l(WO,x))}),m0($O,function(x){switch(x[22]){case 0:var r=0,e=0;break;case 1:var r=0,e=1;break;default:var r=1,e=1}var t=fx(x),u=f0(x);W(x,51);var i=[0,t,[29,[0,t0([0,u],[0,xx(x)],R)]]],c=M(x);if(typeof c=="number"&&11>c)switch(c){case 4:var v=r?i:(D0(x,[0,t,et]),[0,t,[10,rn(0,[0,t,i30])]]);return St(HO,0,x,t,v);case 6:case 10:var a=e?i:(D0(x,[0,t,99]),[0,t,[10,rn(0,[0,t,c30])]]);return St(HO,0,x,t,a)}return e?_2(f30,x):D0(x,[0,t,99]),i}),m0(_J,function(x){return r0(0,function(r){var e=f0(r),t=fx(r);if(W(r,50),f2(r,10)){var u=rn(0,[0,t,t30]),i=fx(r);Kc(r,n30);var c=rn(0,[0,i,u30]);return[23,[0,u,c,t0([0,e],[0,xx(r)],R)]]}var v=f0(r);W(r,4);var a=B0(uC,[0,v],0,l(Dt,e6(0,r)));return W(r,5),[11,[0,a,t0([0,e],[0,xx(r)],R)]]},x)}),m0(Vo,function(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=I1(xC,[0,i],[0,c],e,t,u),a=cX(e);x:{if(a){var p=a[1];if(typeof p=="number"&&p===83){var _=1;break x}}var _=0}function y(P){var O=I2(P)[2];function F(K,U){return k(Wx(K,Wt,88),K,U)}return k(O,f1(P,v),F)}function S(P,O,F){var K=l(ZO,O),U=K[1],V=K[2],Q=Zr(t,U),$=[0,F,P,[0,U,V],0];x:{if(!_&&!c){var x0=[6,$];break x}var x0=[26,[0,$,Q,_]]}var e0=c||_;return I1(Vo,[0,i],[0,e0],O,t,[0,[0,Q,x0]])}if(e[13])return v;var E=M(e);if(typeof E=="number"){var j=E-98|0;if(2>>0){if(j===-94)return S(0,e,y(e))}else if(j!==1&&g2(e)){var C=Wh(function(P,O){throw U0(Yc,1)},e);return rd(C,v,function(P){var O=y(P);return S(l(_d,P),P,O)})}}return v}),m0(HO,function(x,r,e,t){var u=x?x[1]:1;return f1(r,I1(Vo,[0,u],0,r,e,[0,t]))}),m0(QO,function(x){return r0(0,function(r){var e=fx(r),t=f0(r);if(W(r,44),r[11]&&M(r)===10){var u=xx(r);b0(r);var i=rn(t0([0,t],[0,u],R),[0,e,x30]),c=M(r);return typeof c!="number"&&c[0]===4&&!I(c[3],Fw)?[23,[0,i,k(z0[13],0,r),0]]:(_2(r30,r),b0(r),[10,i])}var v=fx(r),a=M(r);x:{if(typeof a=="number"){if(a===44){var p=l(QO,r);break x}if(a===51){var p=l($O,sO(1,r));break x}}var p=Ea(r)?l(rC,r):l(TJ,r)}var _=St(bJ,e30,sO(1,r),v,p),y=M(r);x:{if(typeof y!="number"&&y[0]===3){var S=St(nC,r,v,_,y[1]);break x}var S=_}x:{r:if(M(r)!==4){if(g2(r)&&M(r)===98)break r;var j=S;break x}var E=I2(r)[2],j=k(E,S,function(F,K){return k(Wx(F,Wt,89),F,K)})}var C=g2(r)?rd(Wh(function(F,K){throw U0(Yc,1)},r),0,_d):0,P=M(r);x:{if(typeof P=="number"&&P===4){var O=[0,l(ZO,r)];break x}var O=0}return[24,[0,j,C,O,t0([0,t],0,R)]]},x)});function Rw0(x){var r=f0(x);W(x,98);for(var e=0;;){var t=M(x);x:if(typeof t=="number"){if(t!==99&&Dr!==t)break x;var u=vx(e),i=f0(x);W(x,99);var c=M(x)===4?I2(x)[1]:xx(x);return[0,u,F2([0,r],[0,c],i,R)]}var v=M(x);x:{if(typeof v!="number"&&v[0]===4&&!I(v[2],Sv)){var a=fx(x),p=f0(x);Kc(x,Zv0);var _=[1,[0,a,[0,t0([0,p],[0,xx(x)],R)]]];break x}var _=[0,qs(x)]}var y=[0,_,e];M(x)!==99&&W(x,9);var e=y}}m0(_d,function(x){L2(x,1);var r=M(x)===98?[0,r0(0,Rw0,x)]:0;return J2(x),r});function Fw0(x){var r=f0(x);W(x,12);var e=l(Dt,x);return[0,e,t0([0,r],0,R)]}m0(ZO,function(x){return r0(0,function(r){var e=f0(r);W(r,4);for(var t=0;;){var u=M(r);x:if(typeof u=="number"){if(u!==5&&Dr!==u)break x;var i=vx(t),c=f0(r);return W(r,5),[0,i,F2([0,e],[0,xx(r)],c,R)]}var v=M(r);x:{if(typeof v=="number"&&v===12){var a=[1,r0(0,Fw0,r)];break x}var a=[0,l(Dt,r)]}var p=[0,a,t];M(r)!==5&&W(r,9);var t=p}},x)});function PJ(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,p=sO(0,t),_=l(z0[7],p),y=fx(t);W(t,7);var S=xx(t),E=Zr(u,y),j=t0(0,[0,S],R),C=[0,f1(t,i),[2,_],j],P=v?[27,[0,C,E,a]]:[22,C];return I1(Vo,[0,c],[0,v],t,u,[0,[0,E,P]])}function NJ(x,r,e,t,u,i){var c=x?x[1]:1,v=r?r[1]:0,a=e?e[1]:0,p=M(t);x:{if(typeof p=="number"&&p===14){var _=TX(t),y=_[1],S=t[30][1],E=_[2][1];if(S){var j=S[1];t[30][1]=[0,[0,j[1],[0,[0,E,y],j[2]]],S[2]]}else D0(t,[0,y,63]);var P=[1,_],O=y;break x}var C=g1(t),P=[0,C],O=C[1]}var F=Zr(u,O);x:if(i[0]===0&&i[1][2][0]===29&&P[0]===1){D0(t,[0,F,82]);break x}var K=[0,f1(t,i),P,0],U=v?[27,[0,K,F,a]]:[22,K];return I1(Vo,[0,c],[0,v],t,u,[0,[0,F,U]])}m0(xC,function(x,r,e,t,u){var i=x?x[1]:1,c=r?r[1]:0,v=M(e);if(typeof v=="number")switch(v){case 6:return b0(e),PJ([0,i],[0,c],0,e,t,u);case 10:return b0(e),NJ([0,i],[0,c],0,e,t,u);case 83:1-i&&Kx(e,59),W(e,83);var a=M(e);if(typeof a=="number")switch(a){case 4:return u;case 6:return b0(e),PJ([0,i],Wv0,Gv0,e,t,u);case 98:if(g2(e))return u;break}else if(a[0]===3)return Kx(e,60),u;return NJ([0,i],Hv0,$v0,e,t,u)}else if(v[0]===3){var p=v[1];return c&&Kx(e,60),I1(Vo,Qv0,0,e,t,[0,St(nC,e,t,f1(e,u),p)])}return u}),m0(bJ,function(x,r,e,t){var u=x?x[1]:1;return f1(r,I1(xC,[0,u],0,r,e,[0,t]))}),m0(rC,function(x){return r0(0,function(r){var e=yd(r),t=e[1],u=e[2],i=r0(0,function(O){var F=f0(O);W(O,15);var K=zo(O),U=K[1],V=Rl([0,u,[0,F,[0,K[2],0]]]);if(M(O)===4)var Q=0,$=0;else{var x0=M(O);x:{if(typeof x0=="number"&&x0===98){var Z=0;break x}var e0=uO(U,iO(t,O)),Z=[0,Ct(e0,k(z0[13],Vv0,e0))]}var Q=Y1(O,De(O)),$=Z}var c0=qo(0,O),d0=t||c0[19],n0=l3(d0,U)(c0),P0=M(c0)===86?n0:f6(c0,n0),h0=FO(c0),g0=h0[2],v0=h0[1];if(g0)var p0=gX(c0,g0),w0=v0;else var p0=g0,w0=s3(c0,v0);return[0,$,P0,U,p0,w0,Q,V]},r),c=i[2],v=c[3],a=c[2],p=c[1],_=c[7],y=c[6],S=c[5],E=c[4],j=i[1],C=h6(r,t,v,1,Ko(a)),P=C[1];return v3(r,C[2],p,a),[9,[0,p,a,P,t,v,1,E,S,y,t0([0,_],0,R),j]]},x)}),m0(bd,function(x,r,e){switch(r){case 1:Ot(x,76);try{var t=$m(El(Bx(Xv0,e))),u=t}catch(S){var i=O2(S);if(i[1]!==Qt)throw U0(i,0);var u=gx(Bx(Jv0,e))}break;case 2:Ot(x,75);try{var c=KP(e),u=c}catch(S){var v=O2(S);if(v[1]!==Qt)throw U0(v,0);var u=gx(Bx(Kv0,e))}break;case 4:try{var a=KP(e),u=a}catch(S){var p=O2(S);if(p[1]!==Qt)throw U0(p,0);var u=gx(Bx(Yv0,e))}break;default:try{var _=$m(El(e)),u=_}catch(S){var y=O2(S);if(y[1]!==Qt)throw U0(y,0);var u=gx(Bx(zv0,e))}}return W(x,[0,r,e]),u}),m0(wJ,function(x){var r=Nx(x);x:{if(r!==0&&j2===N2(x,r-1|0)){var e=k1(x,0,r-1|0);break x}var e=x}return e}),m0(wd,function(x,r,e){var t=oq(l(wJ,e));return W(x,[1,r,e]),t}),m0(eC,function(x){var r=fx(x),e=f0(x),t=M(x);if(typeof t=="number")switch(t){case 0:var u=l(z0[12],x);return[1,[0,u[1],[25,u[2]]],u[3]];case 4:return[0,l(EJ,x)];case 6:var i=r0(0,SJ,x),c=i[2];return[1,[0,i[1],[0,c[1]]],c[2]];case 21:return b0(x),[0,[0,r,[32,[0,t0([0,e],[0,xx(x)],R)]]]];case 29:return b0(x),[0,[0,r,[16,t0([0,e],[0,xx(x)],R)]]];case 40:return[0,l(z0[22],x)];case 98:var v=l(z0[17],x),a=v[2],p=v[1],_=Ut<=a[1]?[13,a[2]]:[12,a[2]];return[0,[0,p,_]];case 30:case 31:return b0(x),[0,[0,r,[15,[0,t===31?1:0,t0([0,e],[0,xx(x)],R)]]]];case 74:case 105:return[0,l(AJ,x)]}else switch(t[0]){case 0:var y=t[2],S=B0(bd,x,t[1],y);return[0,[0,r,[17,[0,S,y,t0([0,e],[0,xx(x)],R)]]]];case 1:var E=t[2],j=B0(wd,x,t[1],E);return[0,[0,r,[18,[0,j,E,t0([0,e],[0,xx(x)],R)]]]];case 2:var C=t[1],P=C[3],O=C[2],F=C[1];C[4]&&Ot(x,76),b0(x);var K=t0([0,e],[0,xx(x)],R),U=x[28],V=U[6],Q=U[7];x:{if(V){var $=V[1];if(cq($,O)){var e0=[20,[0,O,F,Nx($),0,P,K]];break x}}if(Q){var x0=Q[1];if(cq(x0,O)){var e0=[20,[0,O,F,Nx(x0),1,P,K]];break x}}var e0=[14,[0,O,P,K]]}return[0,[0,F,e0]];case 3:var Z=k(tC,x,t[1]);return[0,[0,Z[1],[31,Z[2]]]];case 4:if(!I(t[3],xg)&&vr(1,x)===40)return[0,l(z0[22],x)];break}if(Jc(x)){var c0=k(z0[13],0,x);return[0,[0,c0[1],[10,c0]]]}_2(0,x);x:if(typeof t!="number"&&t[0]===7){b0(x);break x}return[0,[0,r,[16,t0([0,e],Bv0,R)]]]}),m0(TJ,function(x){return f1(x,l(eC,x))}),m0(tC,function(x,r){var e=r[5],t=r[1],u=r[3],i=r[2],c=f0(x);W(x,[3,r]);var v=[0,t,[0,[0,u,i],e]];if(e)var a=0,p=[0,v,0],_=t;else for(var y=[0,v,0],S=0;;){var E=l(z0[7],x),j=[0,E,S],C=M(x);x:{if(typeof C=="number"&&C===1){L2(x,4);var P=M(x);if(typeof P!="number"&&P[0]===3){var O=P[1],F=O[5],K=O[1],U=O[3],V=O[2];b0(x),J2(x);var Q=[0,[0,K,[0,[0,U,V],F]],y];if(F){var $=vx(j),c0=[0,K,vx(Q),$];break x}var y=Q,S=j;continue}throw U0([0,Ar,Mv0],1)}_2(Uv0,x);var x0=[0,E[1],qv0],e0=vx(j),Z=vx([0,x0,y]),c0=[0,E[1],Z,e0]}var a=c0[3],p=c0[2],_=c0[1];break}var d0=xx(x),n0=Zr(t,_);return[0,n0,[0,p,a,t0([0,c],[0,d0],R)]]}),m0(nC,function(x,r,e,t){var u=I2(x)[2],i=k(u,e,function(v,a){return k(Wx(v,Wt,3),v,a)}),c=k(tC,x,t);return[0,Zr(r,c[1]),[30,[0,i,c,0]]]}),m0(EJ,function(x){var r=f0(x),e=r0(0,function(v){W(v,4);var a=fx(v),p=l(Dt,v),_=M(v);x:{if(typeof _=="number"){if(_===9){var y=[0,B0(Td,v,a,[0,p,0])];break x}if(_===86){var y=[1,[0,p,Yo(v),0]];break x}}var y=[0,p]}return W(v,5),y},x),t=e[2],u=e[1],i=xx(x),c=t[0]===0?t[1]:[0,u,[33,t[1]]];return B0(uC,[0,r],[0,i],c)}),m0(uC,function(x,r,e){var t=e[2],u=e[1],i=x?x[1]:0,c=r?r[1]:0;function v(b2){return N1(b2,t0([0,i],[0,c],R))}function a(b2){return zN(b2,t0([0,i],[0,c],R))}switch(t[0]){case 0:var p=t[1],_=a(p[2]),Mx=[0,[0,p[1],_]];break;case 1:var y=t[1],S=y[11],E=v(y[10]),Mx=[1,[0,y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],E,S]];break;case 4:var j=t[1],C=v(j[4]),Mx=[4,[0,j[1],j[2],j[3],C]];break;case 5:var P=t[1],O=v(P[4]),Mx=[5,[0,P[1],P[2],P[3],O]];break;case 6:var F=t[1],K=v(F[4]),Mx=[6,[0,F[1],F[2],F[3],K]];break;case 7:var U=t[1],V=v(U[7]),Mx=[7,[0,U[1],U[2],U[3],U[4],U[5],U[6],V]];break;case 8:var Q=t[1],$=v(Q[4]),Mx=[8,[0,Q[1],Q[2],Q[3],$]];break;case 9:var x0=t[1],e0=x0[11],Z=v(x0[10]),Mx=[9,[0,x0[1],x0[2],x0[3],x0[4],x0[5],x0[6],x0[7],x0[8],x0[9],Z,e0]];break;case 10:var c0=t[1],d0=c0[2],n0=c0[1],P0=v(d0[2]),Mx=[10,[0,n0,[0,d0[1],P0]]];break;case 11:var h0=t[1],g0=v(h0[2]),Mx=[11,[0,h0[1],g0]];break;case 12:var v0=t[1],p0=v(v0[4]),Mx=[12,[0,v0[1],v0[2],v0[3],p0]];break;case 13:var w0=t[1],T0=v(w0[4]),Mx=[13,[0,w0[1],w0[2],w0[3],T0]];break;case 14:var E0=t[1],N0=v(E0[3]),Mx=[14,[0,E0[1],E0[2],N0]];break;case 15:var X0=t[1],A0=v(X0[2]),Mx=[15,[0,X0[1],A0]];break;case 16:var Mx=[16,v(t[1])];break;case 17:var rx=t[1],B=v(rx[3]),Mx=[17,[0,rx[1],rx[2],B]];break;case 18:var G0=t[1],W0=v(G0[3]),Mx=[18,[0,G0[1],G0[2],W0]];break;case 19:var Y0=t[1],V0=v(Y0[4]),Mx=[19,[0,Y0[1],Y0[2],Y0[3],V0]];break;case 20:var ex=t[1],Q0=v(ex[6]),Mx=[20,[0,ex[1],ex[2],ex[3],ex[4],ex[5],Q0]];break;case 21:var S0=t[1],q0=v(S0[4]),Mx=[21,[0,S0[1],S0[2],S0[3],q0]];break;case 22:var yx=t[1],cx=v(yx[3]),Mx=[22,[0,yx[1],yx[2],cx]];break;case 23:var Dx=t[1],Ix=v(Dx[3]),Mx=[23,[0,Dx[1],Dx[2],Ix]];break;case 24:var Xx=t[1],Z0=v(Xx[4]),Mx=[24,[0,Xx[1],Xx[2],Xx[3],Z0]];break;case 25:var rr=t[1],xr=a(rr[2]),Mx=[25,[0,rr[1],xr]];break;case 26:var fr=t[1],Hx=fr[1],Y=fr[3],jx=fr[2],hr=v(Hx[4]),Mx=[26,[0,[0,Hx[1],Hx[2],Hx[3],hr],jx,Y]];break;case 27:var Yx=t[1],Ur=Yx[1],px=Yx[3],w=Yx[2],L=v(Ur[3]),Mx=[27,[0,[0,Ur[1],Ur[2],L],w,px]];break;case 28:var L0=t[1],sx=v(L0[2]),Mx=[28,[0,L0[1],sx]];break;case 29:var Mx=[29,[0,v(t[1][1])]];break;case 30:var lx=t[1],ax=v(lx[3]),Mx=[30,[0,lx[1],lx[2],ax]];break;case 31:var Vx=t[1],_x=v(Vx[3]),Mx=[31,[0,Vx[1],Vx[2],_x]];break;case 32:var Mx=[32,[0,v(t[1][1])]];break;case 33:var zx=t[1],Lx=v(zx[3]),Mx=[33,[0,zx[1],zx[2],Lx]];break;case 35:var M0=t[1],qr=v(M0[3]),Mx=[35,[0,M0[1],M0[2],qr]];break;case 36:var Ex=t[1],$0=v(Ex[4]),Mx=[36,[0,Ex[1],Ex[2],Ex[3],$0]];break;case 37:var Gx=t[1],j0=Gx[4],cr=Gx[3],tx=v(Gx[2]),Mx=[37,[0,Gx[1],tx,cr,j0]];break;default:var Mx=t}return[0,u,Mx]}),m0(SJ,function(x){var r=f0(x);W(x,6);for(var e=[0,0,Zt];;){var t=e[2],u=e[1],i=M(x);x:if(typeof i=="number"){if(13<=i){if(Dr!==i)break x}else{if(7>i)break x;switch(i-7|0){case 0:break;case 2:var c=fx(x);b0(x);var e=[0,[0,[2,c],u],t];continue;case 5:var v=f0(x),a=r0(0,function(x0){b0(x0);var e0=l(p3,x0);return e0[0]===0?[0,e0[1],Zt]:[0,e0[1],e0[2]]},x),p=a[2],_=p[2],y=a[1],S=p[1],E=[1,[0,y,[0,S,t0([0,v],0,R)]]],j=M(x)===7?1:0;r:{if(!j&&vr(1,x)===7){var C=[0,_[1],[0,[0,y,16],_[2]]];break r}var C=_}1-j&&W(x,9);var e=[0,[0,E,u],JO(C,t)];continue;default:break x}}var P=pJ(t),O=vx(u),F=f0(x);return W(x,7),[0,[0,O,F2([0,r],[0,xx(x)],F,R)],P]}var K=l(p3,x);if(K[0]===0)var U=Zt,V=K[1];else var U=K[2],V=K[1];M(x)!==7&&W(x,9);var e=[0,[0,[0,V],u],JO(U,t)]}}),m0(AJ,function(x){L2(x,5);var r=fx(x),e=f0(x),t=M(x);x:{if(typeof t!="number"&&t[0]===5){var u=t[3],i=t[2];b0(x);var c=xx(x),v=c,a=u,p=i,_=Bx(Cv0,Bx(i,Bx(Ov0,u)));break x}_2(Dv0,x);var v=0,a=Rv0,p=Fv0,_=Lv0}J2(x);var y=Qr(Nx(a)),S=Nx(a)-1|0,E=0;if(S>=0)for(var j=E;;){var C=F0(a,j),P=C-100|0;x:if(21>=P>>>0)switch(P){case 0:case 3:case 5:case 9:case 15:case 17:case 21:ut(y,C);break x}var O=j+1|0;if(S===j)break;var j=O}var F=R2(y);return I(F,a)&&Kx(x,[18,a]),[0,r,[19,[0,p,F,_,t0([0,e],[0,v],R)]]]});function Lw0(x){return function(r){x:if(typeof r=="number"){if(61<=r){var e=r-62|0;if(49>=e>>>0){var t=e-15|0;if(9>>0)break x;switch(t){case 0:case 1:case 3:case 9:break;default:break x}}}else if(7<=r){if(r!==55)break x}else if(5>r)break x;return 0}throw U0(Yc,1)}}function Mw0(x){var r=M(x);if(typeof r=="number"&&!r){var e=k(z0[16],1,x);return[0,[0,e[1]],e[2]]}return[0,[1,l(z0[10],x)],0]}m0(iC,function(x){var r=Wh(Lw0,x),e=fx(r);if(vr(1,r)===11)var u=0,i=0;else var t=yd(r),u=t[2],i=t[1];var c=i||r[19],v=iO(c,r),a=v[18],p=r0(0,function(g0){var v0=Y1(g0,De(g0));if(Jc(g0)&&v0===0){var p0=k(z0[13],Nv0,g0),w0=p0[1],T0=[0,w0,[0,[0,w0,[2,[0,p0,[0,Ls(g0)],0]]],0]];return[0,v0,[0,w0,[0,0,[0,T0,0],0,0]],[0,[0,w0[1],w0[3],w0[3]]],0]}var E0=l3(c,a)(g0);iJ(g0,E0);var N0=FO(Bo(1,g0));return[0,v0,E0,N0[1],N0[2]]},v),_=p[2],y=_[2],S=y[2];x:{r:{var E=_[4],j=_[3],C=_[1],P=p[1];if(!S[1]){var O=S[2];if(!S[3]&&O)break r;var F=sX(v);break x}}var F=v}var K=y[2],U=K[1];if(U){var V=y[1];D0(F,[0,U[1][1],86]);var Q=[0,V,[0,0,K[2],K[3],K[4]]]}else var Q=y;var $=Ko(Q),x0=K1(F),e0=x0&&(M(F)===11?1:0);e0&&Kx(F,55),W(F,11);var Z=aX(sX(F),i,0,$),c0=r0(0,Mw0,Z),d0=c0[2],n0=d0[1],P0=c0[1];v3(Z,d0[2],0,Q);var h0=Zr(e,P0);return[0,[0,h0,[1,[0,0,Q,n0,i,0,1,E,j,C,t0([0,u],0,R),P]]]]}),m0(Td,function(x,r,e){return r0([0,r],function(t){for(var u=e;;){var i=M(t);if(typeof i=="number"&&i===9){b0(t);var u=[0,l(Dt,t),u];continue}return[28,[0,vx(u),0]]}},x)});function Uw0(x){var r=f0(x);b0(x);var e=t0([0,r],0,R),t=l(gd,x),u=K1(x)?i6(x):ed(x),i=u[2];return[0,k(i,t,function(c,v){return k(Wx(c,Wt,90),c,v)}),e]}function vC(x){if(!x[28][3])return 0;for(var r=0;;){var e=M(x);if(typeof e=="number"&&e===13){var r=[0,r0(0,Uw0,x),r];continue}return vx(r)}}function Pa(x,r){var e=x?x[1]:0,t=f0(r),u=M(r);if(typeof u=="number")switch(u){case 6:var i=r0(0,function(g0){var v0=f0(g0);W(g0,6);var p0=e6(0,g0),w0=l(z0[10],p0);return W(g0,7),[0,w0,t0([0,v0],[0,xx(g0)],R)]},r),c=i[1];return[0,c,[5,[0,c,i[2]]]];case 14:if(!e){var v=r0(0,function(g0){return b0(g0),[3,g1(g0)]},r),a=v[1],p=v[2];return D0(r,[0,a,63]),[0,a,p]}var _=TX(r),y=r[30][1],S=_[2][1],E=_[1];if(y){var j=y[1],C=y[2],P=j[2],O=[0,[0,y1[4].call(null,S,j[1]),P],C];r[30][1]=O}else gx(xs0);return[0,E,[4,_]]}else switch(u[0]){case 0:var F=u[2],K=u[1],U=fx(r),V=B0(bd,r,K,F);return[0,U,[1,[0,U,[0,V,F,t0([0,t],[0,xx(r)],R)]]]];case 1:var Q=u[2],$=u[1],x0=fx(r),e0=B0(wd,r,$,Q);return[0,x0,[2,[0,x0,[0,e0,Q,t0([0,t],[0,xx(r)],R)]]]];case 2:var Z=u[1],c0=Z[4],d0=Z[3],n0=Z[2],P0=Z[1];return c0&&Ot(r,76),W(r,[2,[0,P0,n0,d0,c0]]),[0,P0,[0,[0,P0,[0,n0,d0,t0([0,t],[0,xx(r)],R)]]]]}var h0=g1(r);return[0,h0[1],[3,h0]]}function Ed(x,r,e){var t=zo(x),u=t[1],i=t[2],c=Pa([0,r],x),v=c[1],a=0,p=nn(x,c[2]);return[0,p,r0(0,function(_){var y=qo(1,_),S=r0(0,function(U){var V=l3(0,0)(U),Q=0,$=M(U)===86?V:f6(U,V);x:if(e){var x0=$[2];r:{if(!x0[1]){if(!x0[2]&&!x0[3])break r;D0(U,[0,v,23]);break x}D0(U,[0,v,24])}}else{var e0=$[2];r:if(e0[1])D0(U,[0,v,66]);else{var Z=e0[2];if(Z&&!Z[2]&&!e0[3])break r;e0[3]?D0(U,[0,v,65]):D0(U,[0,v,65])}}return[0,Q,$,s3(U,RO(U))]},y),E=S[2],j=E[2],C=E[3],P=E[1],O=S[1],F=h6(y,a,u,0,Ko(j)),K=F[1];return v3(y,F[2],0,j),[0,0,j,K,a,u,1,0,C,P,t0([0,i],0,R),O]},x)]}function OJ(x){var r=l(p3,x);return r[0]===0?[0,r[1],Zt]:[0,r[1],r[2]]}function CJ(x,r){switch(r[0]){case 0:var e=r[1],t=e[1],u=e[2];return D0(x,[0,t,48]),[0,t,[14,u]];case 1:var i=r[1],c=i[1],v=i[2];return D0(x,[0,c,48]),[0,c,[17,v]];case 2:var a=r[1],p=a[1],_=a[2];return D0(x,[0,p,48]),[0,p,[18,_]];case 3:var y=r[1],S=y[2][1],E=y[1];return $h(S)?D0(x,[0,E,95]):i3(S)&&ct(x,[0,E,80]),[0,E,[10,y]];case 4:return gx(Al0);default:var j=r[1][2][1];return D0(x,[0,j[1],7]),j}}function DJ(x,r,e){function t(i){var c=qo(1,i),v=r0(0,function(C){var P=Y1(C,De(C)),O=l3(x,r)(C),F=M(C)===86?O:f6(C,O);return[0,P,F,s3(C,RO(C))]},c),a=v[2],p=a[2],_=a[3],y=a[1],S=v[1],E=h6(c,x,r,0,Ko(p)),j=E[1];return v3(c,E[2],0,p),[0,0,p,j,x,r,1,0,_,y,t0([0,e],0,R),S]}var u=0;return function(i){return r0(u,t,i)}}function RJ(x){return W(x,86),OJ(x)}function lC(x,r,e,t,u,i){var c=r0([0,r],function(a){if(!t&&!u){var p=M(a);x:if(typeof p=="number"){if(86<=p){if(p!==98){if(87<=p)break x;var _=RJ(a);return[0,[0,e,_[1],0],_[2]]}}else{if(p===82){if(e[0]===3)var y=e[1],S=fx(a),E=function(F){var K=f0(F);W(F,82);var U=xx(F),V=k(z0[19],F,[0,y[1],[10,y]]),Q=l(z0[10],F);return[4,[0,0,V,Q,t0([0,K],[0,U],R)]]},j=r0([0,y[1]],E,a),C=[0,j,[0,[0,[0,S,[24,bh(Sl0)]],0],0]];else var C=RJ(a);return[0,[0,e,C[1],1],C[2]]}if(10<=p)break x;switch(p){case 4:break;case 1:case 9:return[0,[0,e,CJ(a,e),1],Zt];default:break x}}var P=nn(a,e);return[0,[1,P,DJ(t,u,i)(a)],Zt]}return[0,[0,e,CJ(a,e),1],Zt]}var O=nn(a,e);return[0,[1,O,DJ(t,u,i)(a)],Zt]},x),v=c[2];return[0,[0,[0,c[1],v[1]]],v[2]]}function qw0(x){if(M(x)===12){var r=f0(x),e=r0(0,function(v0){return W(v0,12),OJ(v0)},x),t=e[2],u=t[2],i=t[1],c=e[1];return[0,[1,[0,c,[0,i,t0([0,r],0,R)]]],u]}var v=fx(x),a=vr(1,x);x:{r:if(typeof a=="number"){if(86<=a){if(a!==98&&87<=a)break r}else if(a!==82){if(10<=a)break r;switch(a){case 1:case 4:case 9:break;default:break r}}var _=0,y=0;break x}var p=yd(x),_=p[2],y=p[1]}var S=zo(x),E=S[1],j=Fx(_,S[2]),C=M(x);if(!y&&!E&&typeof C!="number"&&C[0]===4){var P=C[3];if(!I(P,bo)){var O=f0(x),F=Pa(0,x)[2],K=M(x);x:if(typeof K=="number"){if(86<=K){if(K!==98&&87<=K)break x}else if(K!==82){if(10<=K)break x;switch(K){case 1:case 4:case 9:break;default:break x}}return lC(x,v,F,0,0,0)}nn(x,F);var U=r0([0,v],function(v0){return Ed(v0,0,1)},x),V=U[2],Q=V[2],$=V[1],x0=U[1];return[0,[0,[0,x0,[2,$,Q,t0([0,O],0,R)]]],Zt]}if(!I(P,Dv)){var e0=f0(x),Z=Pa(0,x)[2],c0=M(x);x:if(typeof c0=="number"){if(86<=c0){if(c0!==98&&87<=c0)break x}else if(c0!==82){if(10<=c0)break x;switch(c0){case 1:case 4:case 9:break;default:break x}}return lC(x,v,Z,0,0,0)}nn(x,Z);var d0=r0([0,v],function(v0){return Ed(v0,0,0)},x),n0=d0[2],P0=n0[2],h0=n0[1],g0=d0[1];return[0,[0,[0,g0,[3,h0,P0,t0([0,e0],0,R)]]],Zt]}}return lC(x,v,Pa(0,x)[2],y,E,j)}function Bw0(x){var r=r0(0,function(t){var u=f0(t);W(t,0);x:for(var i=0,c=[0,0,Zt];;){var v=c[2],a=c[1],p=M(t);if(typeof p=="number"){if(p===1)break x;if(Dr===p)break}var _=qw0(t),y=_[1],S=_[2];r:{if(y[0]===1&&M(t)===9){var E=[0,fx(t)];break r}var E=0}var j=JO(S,v),C=M(t);r:{e:if(typeof C=="number"){var P=C-2|0;if(j2

>>0){if(ue>>0)break e}else{if(P!==7)break e;b0(t)}var U=j;break r}var O=QN(Vc0,9),F=kX([0,O],M(t)),K=[0,fx(t),F];f2(t,8);var U=[0,[0,K,j[1]],[0,K,j[2]]]}var i=E,c=[0,[0,y,a],U]}var V=i?[0,v[1],[0,[0,i[1],90],v[2]]]:v,Q=pJ(V),$=vx(a),x0=f0(t);return W(t,1),[0,[0,$,F2([0,u],[0,xx(t)],x0,R)],Q]},x),e=r[2];return[0,r[1],e[1],e[2]]}function Sd(x,r,e,t){var u=e[2][1],i=e[1];if(Sr(u,ho))return D0(x,[0,i,[15,u,0,XL===t?1:0,1]]),r;x:{r:{e:{for(var c=r;;){if(typeof c=="number")break r;if(c[0]===0)break e;var v=ix(u,c[2]),a=c[5],p=c[4],_=c[3];if(v===0)break;var y=0<=v?a:p,c=y}var E=[0,_];break x}var S=c[2];if(ix(u,c[1])===0){var E=[0,S];break x}var E=0;break x}var E=0}if(!E)return id(u,t,r);var j=E[1];x:r:{if(NA===t){if(zj===j)break r}else if(zj===t&&NA===j)break r;D0(x,[0,i,[1,u]]);break x}return id(u,qF,r)}function FJ(x,r){return r0(0,function(e){var t=r?f0(e):0;W(e,52);for(var u=0;;){var i=[0,r0(0,function(a){var p=zc(a);if(M(a)===98)var _=I2(a)[2],y=k(_,p,function(S,E){return k(Wx(S,Av,91),S,E)});else var y=p;return[0,y,nJ(a)]},e),u],c=M(e);if(typeof c=="number"&&c===9){W(e,9);var u=i;continue}var v=vx(i);return[0,v,t0([0,t],0,R)]}},x)}function pC(x){switch(x[0]){case 0:case 3:var r=x[1];return[0,[0,r[1],r[2][1]]];default:return 0}}function kC(x,r){if(r)return D0(x,[0,r[1][1],$f])}function mC(x,r){if(r)return D0(x,[0,r[1],12])}function LJ(x,r,e,t,u,i,c,v){var a=r0([0,r],function(C){var P=DO(C),O=M(C);x:if(i){if(typeof O=="number"&&O===82){Kx(C,13),b0(C);var F=0;break x}var F=0}else{if(typeof O=="number"&&O===82){b0(C);var K=qo(1,C),F=[0,l(z0[7],K)];break x}var F=1}var U=M(C);x:{if(typeof U=="number"&&9>U)switch(U){case 8:b0(C);var V=M(C);r:{e:if(typeof V=="number"){if(V!==1&&Dr!==V)break e;var Q=xx(C);break r}var Q=K1(C)?Sa(C):0}var v0=[0,t,P,F,Q];break x;case 4:case 6:_2(0,C);var v0=[0,t,P,F,0];break x}var $=M(C);r:{e:if(typeof $=="number"){if($!==1&&Dr!==$)break e;var x0=[0,,function(N0,X0){return N0}];break r}var x0=K1(C)?i6(C):ed(C)}if(typeof F=="number")if(P[0]===0)var e0=function(E0,N0){return k(Wx(E0,rR,94),E0,N0)},P0=F,h0=P,g0=k(x0[2],t,e0);else var Z=P[1],c0=function(E0,N0){return k(Wx(E0,Kj,95),E0,N0)},P0=F,h0=[1,k(x0[2],Z,c0)],g0=t;else var d0=F[1],n0=function(E0,N0){return k(Wx(E0,Wt,96),E0,N0)},P0=[0,k(x0[2],d0,n0)],h0=P,g0=t;var v0=[0,g0,h0,P0,0]}var p0=v0[3],w0=v0[2],T0=v0[1];return[0,T0,w0,p0,t0([0,v],[0,v0[4]],R)]},x),p=a[2],_=p[4],y=p[3],S=p[2],E=p[1],j=a[1];return E[0]===4?[2,[0,j,[0,E[1],y,S,u,c,e,_]]]:[1,[0,j,[0,E,y,S,u,c,e,_]]]}function hC(x,r,e,t,u,i,c,v,a,p){for(;;){var _=M(x);x:if(typeof _=="number"){var y=_-1|0;if(7>>0){var S=y-81|0;if(4>>0)break x;switch(S){case 3:_2(0,x),b0(x);continue;case 0:case 4:break;default:break x}}else if(5>=y-1>>>0)break x;if(!u&&!i)return LJ(x,r,e,t,c,v,a,p)}var E=M(x);x:{if(typeof E=="number"&&(E===4||E===98)){var j=0;break x}var j=c3(x)?1:0}if(j)return LJ(x,r,e,t,c,v,a,p);mC(x,v),kC(x,a);var C=pC(t);x:{if(c){if(C){var P=C[1],O=P[1];if(!I(P[2],sa)){D0(x,[0,O,[15,yl0,c,1,0]]);var U=qo(1,x),V=1;break x}}}else if(C){var F=C[1],K=F[1];if(!I(F[2],ho)){u&&D0(x,[0,K,9]),i&&D0(x,[0,K,10]);var U=qo(2,x),V=0;break x}}var U=qo(1,x),V=1}var Q=nn(U,t),$=r0(0,function(e0){var Z=r0(0,function(p0){var w0=Y1(p0,De(p0)),T0=l3(u,i)(p0),E0=M(p0)===86?T0:f6(p0,T0),N0=E0[2],X0=N0[1];x:{if(X0){var A0=X0[1][1],rx=E0[1];if(V===0){D0(p0,[0,A0,87]);var B=[0,rx,[0,0,N0[2],N0[3],N0[4]]];break x}}var B=E0}return[0,w0,B,s3(p0,RO(p0))]},e0),c0=Z[2],d0=c0[2],n0=c0[3],P0=c0[1],h0=Z[1],g0=h6(e0,u,i,0,Ko(d0)),v0=g0[1];return v3(e0,g0[2],0,d0),[0,0,d0,v0,u,i,1,0,n0,P0,0,h0]},U),x0=[0,V,Q,$,c,e,t0([0,p],0,R)];return[0,[0,Zr(r,$[1]),x0]]}}function dC(x,r){var e=vr(x,r);x:if(typeof e=="number"){if(86<=e){if(e!==98&&87<=e)break x}else if(e!==82){if(9<=e)break x;switch(e){case 1:case 4:case 8:break;default:break x}}return 1}return 0}var Xw0=0;function MJ(x){return dC(Xw0,x)}function Jw0(x){var r=fx(x),e=vC(x),t=M(x);x:{if(typeof t=="number"&&t===60&&!dC(1,x)){var u=[0,fx(x)],i=f0(x);b0(x);var c=i,v=u;break x}var c=0,v=0}var a=M(x);x:if(typeof a=="number"&&2>=a+aL>>>0&&Ms(1,x)){r:{if(typeof a=="number"){var p=a+aL|0;if(2>=p>>>0){switch(p){case 0:var _=ZM;break;case 1:var _=tl;break;default:var _=ol}var y=_;break r}}var y=gx(gl0)}Kx(x,[22,y]),b0(x);break x}var S=M(x)===42?1:0;if(S){var E=vr(1,x);x:{r:if(typeof E=="number"){if(87<=E){if(E!==98&&Dr!==E)break r}else{var j=E-9|0;if(76>>0){if(77>j)switch(j+9|0){case 1:case 4:case 8:break;default:break r}}else if(j!==73)break r}var C=0;break x}var C=1}var P=C}else var P=S;if(P){var O=f0(x);b0(x);var F=O}else var F=0;var K=M(x)===64?1:0;if(K)var U=1-dC(1,x),V=U&&1-t6(1,x);else var V=K;if(V){var Q=f0(x);b0(x);var $=Q}else var $=0;var x0=zo(x),e0=x0[1],Z=x0[2],c0=Ms(1,x),d0=c0||(vr(1,x)===6?1:0),n0=ww0(x,d0,V,e0);x:{if(!e0&&n0){var P0=zo(x),h0=P0[2],g0=P0[1];break x}var h0=Z,g0=e0}var v0=Rl([0,c,[0,F,[0,$,[0,h0,0]]]]),p0=M(x);if(!V&&!g0&&typeof p0!="number"&&p0[0]===4){var w0=p0[3];if(!I(w0,bo)){var T0=f0(x),E0=Pa(bl0,x)[2];if(MJ(x))return hC(x,r,e,E0,V,g0,P,v,n0,v0);mC(x,v),kC(x,n0),nn(x,E0);var N0=Fx(v0,T0),X0=r0([0,r],function(jx){return Ed(jx,1,1)},x),A0=X0[2],rx=A0[1],B=A0[2],G0=X0[1],W0=pC(rx);x:if(P){if(W0){var Y0=W0[1],V0=Y0[1];if(!I(Y0[2],sa)){D0(x,[0,V0,[15,El0,P,0,0]]);break x}}}else if(W0){var ex=W0[1],Q0=ex[1];if(!I(ex[2],ho)){D0(x,[0,Q0,8]);break x}}return[0,[0,G0,[0,2,rx,B,P,e,t0([0,N0],0,R)]]]}if(!I(w0,Dv)){var S0=f0(x),q0=Pa(_l0,x)[2];if(MJ(x))return hC(x,r,e,q0,V,g0,P,v,n0,v0);mC(x,v),kC(x,n0),nn(x,q0);var yx=Fx(v0,S0),cx=r0([0,r],function(jx){return Ed(jx,1,0)},x),Dx=cx[2],Ix=Dx[1],Xx=Dx[2],Z0=cx[1],rr=pC(Ix);x:if(P){if(rr){var xr=rr[1],fr=xr[1];if(!I(xr[2],sa)){D0(x,[0,fr,[15,Tl0,P,0,0]]);break x}}}else if(rr){var Hx=rr[1],Y=Hx[1];if(!I(Hx[2],ho)){D0(x,[0,Y,8]);break x}}return[0,[0,Z0,[0,3,Ix,Xx,P,e,t0([0,yx],0,R)]]]}}return hC(x,r,e,Pa(wl0,x)[2],V,g0,P,v,n0,v0)}function UJ(x,r,e,t){var u=x?x[1]:0,i=Fs(1,r),c=Fx(u,vC(i)),v=f0(i),a=M(i);x:if(typeof a!="number"&&a[0]===4&&!I(a[3],xg)){Kx(i,83),b0(i);break x}W(i,40);var p=fO(1,i),_=M(p);x:{r:if(e&&typeof _=="number"){if(52<=_){if(_!==98&&53<=_)break r}else if(_!==41&&_)break r;var E=0;break x}if(Jc(i))var y=k(z0[13],0,p),S=I2(i)[2],E=[0,k(S,y,function(Z,c0){return k(Wx(Z,Av,98),Z,c0)})];else{mX(i,kl0);var E=[0,[0,fx(i),ml0]]}}var j=De(i);if(j)var C=j[1],P=I2(i)[2],O=[0,k(P,C,function(Z,c0){return k(Wx(Z,Wj,97),Z,c0)})];else var O=0;var F=f0(i);if(f2(i,41))var K=r0(0,function(Z){var c0=l(gd,uO(0,Z));if(M(Z)===98)var d0=I2(Z)[2],n0=k(d0,c0,function(h0,g0){return k(Wx(h0,Wt,92),h0,g0)});else var n0=c0;var P0=nJ(Z);return[0,n0,P0,t0([0,F],0,R)]},i),U=K[1],V=K[2],Q=I2(i)[2],$=[0,[0,U,k(Q,V,function(Z,c0){return B0(Wx(Z,-663447790,93),Z,U,c0)})]];else var $=0;if(M(i)===52){1-g2(i)&&Kx(i,z2);var x0=[0,bX(i,FJ(i,1))]}else var x0=0;var e0=r0(0,function(Z){var c0=f0(Z);if(!f2(Z,0))return tn(Z,0),dl0;Z[30][1]=[0,[0,y1[1],0],Z[30][1]];for(var d0=0,n0=Yb0,P0=0;;){var h0=M(Z);if(typeof h0=="number"){var g0=h0-2|0;if(j2>>0){if(ue>=g0+1>>>0)break}else if(g0===6){W(Z,8);continue}}var v0=Jw0(Z);switch(v0[0]){case 0:var p0=v0[1],w0=p0[2],T0=p0[1];switch(w0[1]){case 0:if(w0[4])var cx=n0,Dx=d0;else{d0&&D0(Z,[0,T0,15]);var cx=n0,Dx=1}break;case 1:var E0=w0[2],N0=E0[0]===4?Sd(Z,n0,E0[1],XL):n0,cx=N0,Dx=d0;break;case 2:var X0=w0[2],A0=X0[0]===4?Sd(Z,n0,X0[1],NA):n0,cx=A0,Dx=d0;break;default:var rx=w0[2],B=rx[0]===4?Sd(Z,n0,rx[1],zj):n0,cx=B,Dx=d0}break;case 1:var G0=v0[1][2],W0=G0[4],Y0=G0[1];switch(Y0[0]){case 4:gx(hl0);break;case 0:case 3:var V0=Y0[1],ex=V0[2][1],Q0=Sr(ex,ho),S0=V0[1];if(Q0)var yx=Q0;else var q0=Sr(ex,sa),yx=q0&&W0;yx&&D0(Z,[0,S0,[15,ex,W0,0,0]]);break}var cx=n0,Dx=d0;break;default:var cx=Sd(Z,n0,v0[1][2][1],qF),Dx=d0}var d0=Dx,n0=cx,P0=[0,v0,P0]}var Ix=vx(P0);function Xx(L0,sx){return Fl(function(lx){return 1-y1[3].call(null,lx[1],L0)})(sx)}var Z0=Z[30][1];if(Z0){var rr=Z0[1],xr=rr[1];if(Z0[2]){var fr=Z0[2],Hx=Xx(xr,rr[2]),Y=Dl(fr),jx=Y[2],hr=Y[1],Yx=rq(fr),Ur=[0,[0,hr,Fx(jx,Hx)],Yx];Z[30][1]=Ur}else{var px=Xx(xr,rr[2]);p1(function(L0){return D0(Z,[0,L0[2],[23,L0[1]]])},px),Z[30][1]=0}}else gx(rs0);W(Z,1);var w=M(Z);x:{r:if(!t){if(typeof w=="number"&&(w===1||Dr===w))break r;if(K1(Z)){var L=Sa(Z);break x}var L=0;break x}var L=xx(Z)}return[0,Ix,t0([0,c0],[0,L],R)]},i);return[0,E,e0,O,$,x0,c,t0([0,v],0,R)]}function Ad(x,r){return r0(0,function(e){return[2,UJ([0,r],e,e[7],0)]},x)}function Kw0(x){return[7,UJ(0,x,1,1)]}var Yw0=0;function zw0(x){return r0(Yw0,Kw0,x)}var qJ=AX(z0);function BJ(x){var r=d6(x);x:if(x[5])Jo(x,r[1]);else{var e=r[2];r:if(e[0]===27){var t=e[1],u=r[1];if(t[4])D0(x,[0,u,4]);else{if(!t[5])break r;D0(x,[0,u,22])}break x}}return r}function Id(x,r){var e=r[4],t=r[3],u=r[2],i=r[1];e&&Ot(x,76);var c=f0(x);return W(x,[2,[0,i,u,t,e]]),[0,i,[0,u,t,t0([0,c],[0,xx(x)],R)]]}function Z2(x,r,e){var t=x?x[1]:pv0,u=r?r[1]:1,i=M(e);if(typeof i=="number"){var c=i-2|0;if(j2>>0){if(ue>=c+1>>>0){var v=function(p,_){return p};return[1,[0,xx(e),v]]}}else if(c===6){b0(e);var a=M(e);x:if(typeof a=="number"){if(a!==1&&Dr!==a)break x;return[0,xx(e)]}return K1(e)?[0,Sa(e)]:kv0}}return K1(e)?[1,i6(e)]:(u&&_2([0,t],e),mv0)}function Bs(x){var r=M(x);x:if(typeof r=="number"){if(r!==1&&Dr!==r)break x;var e=function(t,u){return t};return[0,xx(x),e]}return K1(x)?i6(x):ed(x)}function yC(x,r,e){var t=Z2(0,0,r);if(t[0]===0)return[0,t[1],e];var u=t[1][2],i=vx(e);if(i)var c=i[2],v=i[1],a=vx([0,k(u,v,function(p,_){return B0(Wx(p,634872468,62),p,x,_)}),c]);else var a=0;return[0,0,a]}var XJ=function x(r){return x.fun(r)},JJ=function x(r){return x.fun(r)},KJ=function x(r){return x.fun(r)},YJ=function x(r){return x.fun(r)},zJ=function x(r){return x.fun(r)},g6=function x(r,e){return x.fun(r,e)},VJ=function x(r){return x.fun(r)},GJ=function x(r){return x.fun(r)},_6=function x(r,e,t){return x.fun(r,e,t)},WJ=function x(r){return x.fun(r)},$J=function x(r){return x.fun(r)},b6=function x(r,e){return x.fun(r,e)},HJ=function x(r){return x.fun(r)},QJ=function x(r){return x.fun(r)},jd=function x(r,e){return x.fun(r,e)},ZJ=function x(r){return x.fun(r)},Pd=function x(r,e){return x.fun(r,e)},xK=function x(r){return x.fun(r)},rK=function x(r){return x.fun(r)},k3=function x(r,e,t){return x.fun(r,e,t)},gC=function x(r){return x.fun(r)},w6=function x(r,e,t){return x.fun(r,e,t)},T6=function x(r,e){return x.fun(r,e)},_C=function x(r){return x.fun(r)},eK=function x(r){return x.fun(r)},tK=function x(r){return x.fun(r)},nK=function x(r,e){return x.fun(r,e)},uK=function x(r,e){return x.fun(r,e)},iK=function x(r){return x.fun(r)},m3=function x(r){return x.fun(r)},Nd=function x(r,e,t){return x.fun(r,e,t)},bC=function x(r,e){return x.fun(r,e)},fK=function x(r,e){return x.fun(r,e)},wC=function x(r){return x.fun(r)};function Vw0(x){var r=f0(x);W(x,59);var e=M(x)===8?xx(x):0,t=Z2(0,0,x),u=t[0]===0?t[1]:t[1][1];return[5,[0,t0([0,r],[0,Fx(e,u)],R)]]}var Gw0=0;function Ww0(x){var r=f0(x);W(x,37);var e=r6(1,x),t=l(z0[2],e),u=1-x[5],i=u&&c6(t);i&&Jo(x,t[1]);var c=xx(x);W(x,25);var v=xx(x);W(x,4);var a=l(z0[7],x);W(x,5);var p=M(x)===8?xx(x):0,_=Z2(0,lv0,x),y=_[0]===0?Fx(p,_[1]):_[1][1];return[18,[0,t,a,t0([0,r],[0,Fx(c,Fx(v,y))],R)]]}var $w0=0;function cK(x,r,e){var t=e[2][1],u=e[1];if(!(t&&!t[1][2][2]&&!t[2]))return D0(x,[0,u,r])}function TC(x,r){if(!x[5]&&c6(r))return Jo(x,r[1])}function Hw0(x){var r=f0(x);W(x,39);var e=x[19],t=e&&f2(x,65),u=Fx(r,f0(x));W(x,4);var i=t0([0,u],0,R),c=M(x);x:{if(typeof c=="number"&&c===64){var v=1;break x}var v=0}var a=e6(1,x),p=M(a);x:{if(typeof p=="number"){if(24<=p){if(29>p)switch(p+Tb|0){case 0:var _=r0(0,aJ,a),y=_[2],S=y[3],E=y[1],j=_[1],e0=S,Z=[0,[1,[0,j,[0,E,0,t0([0,y[2]],0,R)]]]];break x;case 3:var C=r0(0,oJ,a),P=C[2],O=P[3],F=P[1],K=C[1],e0=O,Z=[0,[1,[0,K,[0,F,2,t0([0,P[2]],0,R)]]]];break x;case 4:if(vr(1,a)!==17){var U=r0(0,vJ,a),V=U[2],Q=V[3],$=V[1],x0=U[1],e0=Q,Z=[0,[1,[0,x0,[0,$,1,t0([0,V[2]],0,R)]]]];break x}break}}else if(p===8){var e0=0,Z=0;break x}}var e0=0,Z=[0,[0,l(z0[8],a)]]}var c0=M(x);if(typeof c0=="number"){if(c0===17){if(!Z)throw U0([0,Ar,vv0],1);var d0=Z[1];if(d0[0]===0)var n0=[1,XO(ov0,x,d0[1])];else{var P0=d0[1];cK(x,39,P0);var n0=[0,P0]}t?W(x,63):W(x,17);var h0=l(z0[7],x);W(x,5);var g0=r6(1,x),v0=l(z0[2],g0);return TC(x,v0),[25,[0,n0,h0,v0,0,i]]}if(c0===63){if(!Z)throw U0([0,Ar,av0],1);var p0=Z[1];if(p0[0]===0){var w0=XO(sv0,x,p0[1]),T0=1-t,E0=T0&&v;x:if(E0){var N0=w0[2];if(N0[0]===2){var X0=N0[1][1],A0=X0[1];if(!I(X0[2][1],oa)){D0(x,[0,A0,40]);break x}}}var rx=[1,w0]}else{var B=p0[1];cK(x,40,B);var rx=[0,B]}W(x,63);var G0=l(z0[10],x);W(x,5);var W0=r6(1,x),Y0=l(z0[2],W0);return TC(x,Y0),[26,[0,rx,G0,Y0,t,i]]}}if(p1(function(Xx){return D0(x,Xx)},e0),t?W(x,63):W(x,8),Z)var V0=Z[1],ex=V0[0]===0?[0,[1,f1(x,V0[1])]]:[0,[0,V0[1]]],Q0=ex;else var Q0=0;var S0=M(x);x:{if(typeof S0=="number"&&S0===8){var q0=0;break x}var q0=[0,l(z0[7],x)]}W(x,8);var yx=M(x);x:{if(typeof yx=="number"&&yx===5){var cx=0;break x}var cx=[0,l(z0[7],x)]}W(x,5);var Dx=r6(1,x),Ix=l(z0[2],Dx);return TC(x,Ix),[24,[0,Q0,q0,cx,Ix,i]]}var Qw0=0;function sK(x){var r=Ea(x)?BJ(x):l(z0[2],x),e=1-x[5],t=e&&c6(r);return t&&Jo(x,r[1]),r}function Zw0(x){var r=f0(x);W(x,43);var e=sK(x);return[0,e,t0([0,r],0,R)]}function xT0(x){var r=f0(x);W(x,16);var e=Fx(r,f0(x));W(x,4);var t=l(z0[7],x);W(x,5);var u=sK(x),i=M(x)===43?[0,r0(0,Zw0,x)]:0;return[28,[0,t,u,i,t0([0,e],0,R)]]}var rT0=0;function aK(x){return r0(rT0,xT0,x)}function eT0(x){1-x[11]&&Kx(x,27);var r=f0(x),e=fx(x);W(x,19);var t=M(x)===8?xx(x):0;x:{if(M(x)!==8&&!c3(x)){var u=[0,l(z0[7],x)];break x}var u=0}var i=Zr(e,fx(x)),c=Z2(0,0,x);x:{if(c[0]===0)var v=c[1];else{var a=c[1],p=a[1];if(u){var _=u[1],y=a[2],S=[0,k(y,_,function(O,F){return k(Wx(O,Wt,63),O,F)})],E=t;break x}var v=p}var S=u,E=Fx(t,v)}return[32,[0,S,t0([0,r],[0,E],R),i]]}var tT0=0;function nT0(x){var r=f0(x);W(x,20),W(x,4);var e=l(z0[7],x);W(x,5),W(x,0);for(var t=cv0;;){var u=t[2],i=t[1],c=M(x);x:if(typeof c=="number"){if(c!==1&&Dr!==c)break x;var v=vx(u);W(x,1);var a=Bs(x)[1],p=e[1];return[33,[0,e,v,t0([0,r],[0,a],R),p]]}var _=hO(0,function(S){return function(E){var j=f0(E),C=M(E);x:{if(typeof C=="number"&&C===36){S&&Kx(E,53),W(E,36);var P=xx(E),O=0;break x}W(E,33);var P=0,O=[0,l(z0[7],E)]}var F=S||(O===0?1:0);W(E,86);var K=Fx(P,Bs(E)[1]);function U(x0){x:if(typeof x0=="number"){var e0=x0-1|0;if(32>>0){if(e0!==35)break x}else if(30>=e0-1>>>0)break x;return 1}return 0}var V=1,Q=E[9]===1?E:[0,E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],V,E[10],E[11],E[12],E[13],E[14],E[15],E[16],E[17],E[18],E[19],E[20],E[21],E[22],E[23],E[24],E[25],E[26],E[27],E[28],E[29],E[30],E[31]],$=k(z0[4],U,Q);return[0,[0,O,$,t0([0,j],[0,K],R)],F]}}(i),x),t=[0,_[2],[0,_[1],u]]}}var uT0=0;function iT0(x){var r=f0(x),e=fx(x);W(x,22),K1(x)&&D0(x,[0,e,54]);var t=l(z0[7],x),u=Z2(0,0,x);if(u[0]===0)var v=t,a=u[1];else var i=u[1][2],c=0,v=k(i,t,function(p,_){return k(Wx(p,Wt,64),p,_)}),a=c;return[34,[0,v,t0([0,r],[0,a],R)]]}var fT0=0;function cT0(x){var r=f0(x);W(x,23);var e=l(z0[15],x);if(M(x)===34)var t=I2(x)[2],u=k(t,e,function(C,P){var O=P[1];return[0,O,B0(Wx(C,rk,4),C,O,P[2])]});else var u=e;var i=M(x);x:{if(typeof i=="number"&&i===34){var c=[0,r0(0,function(P){var O=f0(P);W(P,34);var F=xx(P);if(M(P)===4){W(P,4);var K=[0,k(z0[18],P,67)];W(P,5);var U=K}else var U=0;var V=l(z0[15],P);if(M(P)===38)var $=V;else var Q=Bs(P)[2],$=k(Q,V,function(x0,e0){var Z=e0[1];return[0,Z,B0(Wx(x0,rk,65),x0,Z,e0[2])]});return[0,U,$,t0([0,O],[0,F],R)]},x)];break x}var c=0}var v=M(x);x:{if(typeof v=="number"&&v===38){W(x,38);var a=l(z0[15],x),p=a[1],_=a[2],y=Bs(x)[2],S=[0,[0,p,k(y,_,function(P,O){return B0(Wx(P,rk,66),P,p,O)})]];break x}var S=0}var E=c===0?1:0,j=E&&(S===0?1:0);return j&&D0(x,[0,u[1],56]),[35,[0,u,c,S,t0([0,r],0,R)]]}var sT0=0;function aT0(x){var r=aJ(x),e=r[3],t=r[2],u=yC(0,x,r[1]),i=0,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var oT0=0;function vT0(x){var r=oJ(x),e=r[3],t=r[2],u=yC(2,x,r[1]),i=2,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var lT0=0;function pT0(x){var r=vJ(x),e=r[3],t=r[2],u=yC(1,x,r[1]),i=1,c=u[2],v=u[1];return p1(function(a){return D0(x,a)},e),[38,[0,c,i,t0([0,t],[0,v],R)]]}var kT0=0;function mT0(x){var r=f0(x);W(x,25);var e=Fx(r,f0(x));W(x,4);var t=l(z0[7],x);W(x,5);var u=r6(1,x),i=l(z0[2],u),c=1-x[5],v=c&&c6(i);return v&&Jo(x,i[1]),[39,[0,t,i,t0([0,e],0,R)]]}var hT0=0;function dT0(x){var r=f0(x),e=l(z0[7],x),t=M(x),u=e[2];if(u[0]===10&&typeof t=="number"&&t===86){var i=u[1],c=i[2][1],v=e[1];W(x,86),y1[3].call(null,c,x[3])&&D0(x,[0,v,[21,iv0,c]]);var a=x[31],p=x[30],_=x[29],y=x[28],S=x[27],E=x[26],j=x[25],C=x[24],P=x[23],O=x[22],F=x[21],K=x[20],U=x[19],V=x[18],Q=x[17],$=x[16],x0=x[15],e0=x[14],Z=x[13],c0=x[12],d0=x[11],n0=x[10],P0=x[9],h0=x[8],g0=x[7],v0=x[6],p0=x[5],w0=x[4],T0=y1[4].call(null,c,x[3]),E0=[0,x[1],x[2],T0,w0,p0,v0,g0,h0,P0,n0,d0,c0,Z,e0,x0,$,Q,V,U,K,F,O,P,C,j,E,S,y,_,p,a],N0=Ea(E0)?BJ(E0):l(z0[2],E0);return[31,[0,i,N0,t0([0,r],0,R)]]}var X0=Z2(fv0,0,x);if(X0[0]===0)var B=e,G0=X0[1];else var A0=X0[1][2],rx=0,B=k(A0,e,function(W0,Y0){return k(Wx(W0,Wt,67),W0,Y0)}),G0=rx;return[23,[0,B,0,t0(0,[0,G0],R)]]}var yT0=0;function gT0(x){var r=l(z0[7],x),e=Z2(uv0,0,x);if(e[0]===0)var i=r,c=e[1];else var t=e[1][2],u=0,i=k(t,r,function(E,j){return k(Wx(E,Wt,68),E,j)}),c=u;if(x[20]){var v=i[2];if(v[0]===14){var a=v[1][2];x:{if(1i)switch(i-53|0){case 0:return r0([0,u],function(a){1-g2(a)&&Kx(a,_t);var p=r0(0,l(b6,0),a),_=[0,p[1],[30,p[2]]];return[22,[0,[0,_],0,0,0,t0([0,t],0,R)]]},e);case 8:if(vr(1,e)!==0)return r0([0,u],function(a){1-g2(a)&&Kx(a,_t);var p=vr(1,a);if(typeof p=="number"){if(p===48)return Kx(a,17),W(a,61),[22,[0,0,0,0,0,t0([0,t],0,R)]];if(z2===p){W(a,61);var _=fx(a);W(a,z2);var y=l(m3,a),S=y[1];return[22,[0,0,[0,[1,[0,_,0]]],[0,S],0,t0([0,t],[0,y[2]],R)]]}}var E=r0(0,l(g6,0),a),j=[0,E[1],[36,E[2]]];return[22,[0,[0,j],0,0,0,t0([0,t],0,R)]]},e);break;case 9:return r0([0,u],function(a){var p=r0(0,function(y){return l(k(_6,0,0),y)},a),_=[0,p[1],[37,p[2]]];return[22,[0,[0,_],0,0,0,t0([0,t],0,R)]]},e)}}else if(i===36)return r0([0,u],function(a){var p=Fx(t,f0(a)),_=r0(0,function(U){return W(U,36)},a)[1],y=fX(1,a);x:{if(!Ea(y)&&!Qh(y)){if(n6(y)){var F=0,K=[0,Ad(y,x)];break x}if(M(y)===48){var F=0,K=[0,lJ(0)(y)];break x}if(lO(y)){var F=0,K=[0,BO(y)];break x}var S=l(z0[10],y),E=Z2(0,0,y);if(E[0]===0)var P=E[1],O=S;else var j=E[1][2],C=0,P=C,O=k(j,S,function(Q,$){return k(Wx(Q,Wt,86),Q,$)});var F=P,K=[1,O];break x}var F=0,K=[0,d6(y)]}return[21,[0,_,K,t0([0,p],[0,F],R)]]},e)}if(n6(e))return r0([0,u],function(a){var p=Ad(a,x);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e);if(!Ea(e)&&!Qh(e)){if(typeof i=="number"){var c=i+Tb|0;if(4>>0){if(c===24&&e[28][2])return r0([0,u],function(a){var p=k(z0[3],[0,x],a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}else if(1>>0)return r0([0,u],function(a){var p=k(z0[3],[0,x],a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}if(lO(e))return r0([0,u],function(a){var p=BO(a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e);if(typeof i=="number"&&z2===i)return r0([0,u],function(a){var p=fx(a);W(a,z2);var _=M(a);x:{if(typeof _!="number"&&_[0]===4&&!I(_[3],Jt)){b0(a);var y=[0,g1(a)];break x}var y=0}var S=l(m3,a),E=S[1];return[22,[0,0,[0,[1,[0,p,y]]],[0,E],1,t0([0,t],[0,S[2]],R)]]},e);var v=f2(e,61)?0:1;return f2(e,0)?r0([0,u],function(a){var p=B0(Nd,0,a,0);W(a,1);var _=M(a);x:{if(typeof _!="number"&&_[0]===4&&!I(_[3],fl)){var y=l(m3,a),j=y[2],C=[0,y[1]];break x}k(bC,a,p);var S=Z2(0,0,a),E=S[0]===0?S[1]:S[1][1],j=E,C=0}return[22,[0,0,[0,[0,p]],C,v,t0([0,t],[0,j],R)]]},e):(_2(Mo0,e),k(z0[3],[0,x],e))}return r0([0,u],function(a){Zh(a)(x);var p=d6(a);return[22,[0,[0,p],0,0,1,t0([0,t],0,R)]]},e)}),m0(wC,function(x){return r0(0,function(r){1-g2(r)&&Kx(r,Ze);var e=f0(r);W(r,60);var t=iX(1,Fs(1,r)),u=Fx(e,f0(t));W(t,49);var i=M(t);if(typeof i=="number")switch(i){case 36:var c=Fx(u,f0(t)),v=r0(0,function(Q0){return W(Q0,36)},t)[1],a=fX(1,t),p=M(a);x:{if(typeof p=="number")switch(p){case 15:var _=l(k3,0),y=0,V=y,Q=[0,[1,r0(0,function(q0){return k(_,0,q0)},a)]];break x;case 40:var V=0,Q=[0,[2,r0(0,l(jd,0),a)]];break x}else if(p[0]===4){var S=p[3];if(I(S,ta)){if(!I(S,wo)&&a[28][1]){var E=l(k3,0),j=0,V=j,Q=[0,[1,r0(0,function(q0){return k(E,0,q0)},a)]];break x}}else if(a[28][1]){var V=0,Q=[0,[3,r0(0,l(Pd,0),a)]];break x}}var C=qs(a),P=Z2(0,0,a);if(P[0]===0)var K=P[1],U=C;else var O=P[1][2],F=0,K=F,U=k(O,C,function(Q0,S0){return k(Wx(Q0,wv,87),Q0,S0)});var V=K,Q=[0,[4,U]]}return[9,[0,[0,v],Q,0,0,t0([0,c],[0,V],R)]];case 48:if(t[28][2]){var $=qJ[1],x0=r0(0,function(Q0){return $(0,Q0)},t);return[9,[0,0,[0,[8,x0]],0,0,t0([0,u],0,R)]]}break;case 53:var e0=r0(0,l(b6,0),t);return[9,[0,0,[0,[7,e0]],0,0,t0([0,u],0,R)]];case 61:var Z=r0(0,l(g6,0),t);return[9,[0,0,[0,[5,Z]],0,0,t0([0,u],0,R)]];case 62:var c0=r0(0,k(_6,Fo0,0),t);return[9,[0,0,[0,[6,c0]],0,0,t0([0,u],0,R)]];case 106:var d0=fx(t);W(t,z2);var n0=M(t);x:{if(typeof n0!="number"&&n0[0]===4&&!I(n0[3],Jt)){b0(t);var P0=[0,k(z0[13],0,t)];break x}var P0=0}var h0=l(m3,t),g0=h0[1];return[9,[0,0,0,[0,[1,[0,d0,P0]]],[0,g0],t0([0,u],[0,h0[2]],R)]];case 15:case 24:case 27:case 28:case 40:var v0=M(t);x:if(typeof v0=="number"){if(24<=v0){if(41<=v0)break x;switch(v0+Tb|0){case 0:var p0=[0,[0,r0(0,function(Q0){return B0(w6,0,Q0,0)},t)]];break;case 3:var p0=[0,[0,r0(0,function(Q0){return B0(w6,2,Q0,0)},t)]];break;case 4:var p0=[0,[0,r0(0,function(Q0){return B0(w6,1,Q0,0)},t)]];break;case 16:var p0=[0,[2,r0(0,l(jd,0),t)]];break;default:break x}var w0=p0}else{if(v0!==15)break x;var T0=l(k3,0),w0=[0,[1,r0(0,function(S0){return k(T0,0,S0)},t)]]}return[9,[0,0,w0,0,0,t0([0,u],0,R)]]}throw U0([0,Ar,Lo0],1)}else if(i[0]===4){var E0=i[3];if(I(E0,ta)){if(!I(E0,wo)&&t[28][1]){var N0=l(k3,0),X0=[0,[1,r0(0,function(Q0){return k(N0,0,Q0)},t)]];return[9,[0,0,X0,0,0,t0([0,u],0,R)]]}}else if(t[28][1]){var A0=[0,[3,r0(0,l(Pd,0),t)]];return[9,[0,0,A0,0,0,t0([0,u],0,R)]]}}W(t,0);var rx=B0(Nd,0,t,0);W(t,1);var B=M(t);x:{if(typeof B!="number"&&B[0]===4&&!I(B[3],fl)){var G0=l(m3,t),V0=G0[2],ex=[0,G0[1]];break x}k(bC,t,rx);var W0=Z2(0,0,t),Y0=W0[0]===0?W0[1]:W0[1][1],V0=Y0,ex=0}return[9,[0,0,0,[0,[0,rx]],ex,t0([0,u],[0,V0],R)]]},x)});var pK=function x(r,e){return x.fun(r,e)},kK=function x(r,e){return x.fun(r,e)},A6=function x(r,e){return x.fun(r,e)};function Rd(x,r){return function(e){if(!e)return vx(r);var t=e[1];if(t[0]!==0){var u=t[1],i=u[1];if(e[2]){var c=e[2];return D0(x,[0,i,64]),Rd(x,r)(c)}var v=u[2],a=v[2];return Rd(x,[0,[1,[0,i,[0,k(A6,x,v[1]),a]]],r])(0)}var p=t[1],_=p[2],y=e[2],S=p[1];switch(_[0]){case 0:var E=_[2],j=_[1],C=_[3];switch(j[0]){case 0:var P=[0,j[1]];break;case 1:var P=[1,j[1]];break;case 2:var P=[2,j[1]];break;case 3:var P=[3,j[1]];break;case 4:var P=gx(yv0);break;default:var P=[4,j[1]]}var O=E[2];x:{if(O[0]===4){var F=O[1];if(!F[1]){var K=[0,F[3]],U=F[2];break x}}var K=0,U=k(A6,x,E)}var V=[0,[0,[0,S,[0,P,U,K,C]]],r];break;case 1:D0(x,[0,_[2][1],50]);var V=r;break;default:D0(x,[0,_[2][1],gv0]);var V=r}return Rd(x,V)(y)}}m0(pK,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],c=a3(x);return[0,i,[0,[0,Rd(x,0)(u),c,t]]]});function mK(x,r){var e=r[1];return l(z0[23],r)?[0,k(A6,x,r)]:(D0(x,[0,e,37]),0)}function h3(x,r){return function(e){if(!e)return vx(r);var t=e[1];switch(t[0]){case 0:var u=t[1],i=u[2];if(i[0]===4){var c=i[1];if(!c[1]){var v=e[2];return h3(x,[0,[0,[0,u[1],[0,c[2],[0,c[3]]]]],r])(v)}}var a=e[2],p=mK(x,u);if(p)var _=p[1],y=[0,[0,[0,_[1],[0,_,0]]],r];else var y=r;return h3(x,y)(a);case 1:var S=t[1],E=S[1];if(e[2]){var j=e[2];return D0(x,[0,E,16]),h3(x,r)(j)}var C=S[2],P=C[2],O=mK(x,C[1]),F=O?[0,[1,[0,E,[0,O[1],P]]],r]:r;return h3(x,F)(0);default:var K=e[2];return h3(x,[0,[2,t[1]],r])(K)}}}m0(kK,function(x,r){var e=r[2],t=e[2],u=e[1],i=r[1],c=a3(x);return[0,i,[1,[0,h3(x,0)(u),c,t]]]}),m0(A6,function(x,r){var e=r[2],t=r[1];switch(e[0]){case 0:return k(kK,x,[0,t,e[1]]);case 10:var u=e[1],i=u[2][1],c=u[1];x:{if(x[5]&&Xo(i)){D0(x,[0,c,71]);break x}if(1-x[5]){if(x[18]&&Sr(i,M1)){D0(x,[0,c,zt]);break x}var v=x[19],a=v&&Sr(i,_o);a&&D0(x,[0,c,5])}}return[0,t,[2,[0,u,a3(x),0]]];case 25:return k(pK,x,[0,t,e[1]]);default:return[0,t,[3,[0,t,e]]]}});function I6(x,r){var e=M(x);if(typeof e=="number"){if(e===6)return r0(0,function(i){var c=f0(i);W(i,6);x:r:{var v=0;e:for(;;){var a=M(i);if(typeof a=="number"){if(13<=a){if(Dr===a)break r}else if(7<=a)switch(a-7|0){case 0:break e;case 2:var p=fx(i);W(i,9);var v=[0,[2,p],v];continue;case 5:var _=f0(i),y=r0(0,function($){return W($,12),I6($,r)},i),S=y[1],E=y[2],j=[1,[0,S,[0,E,t0([0,_],0,R)]]];M(i)!==7&&(D0(i,[0,S,16]),M(i)===9&&b0(i));var v=[0,j,v];continue}}var C=r0(0,function(Q){var $=I6(Q,r),x0=M(Q);t:{if(typeof x0=="number"&&x0===82){W(Q,82);var e0=[0,l(z0[10],Q)];break t}var e0=0}return[0,$,e0]},i),P=C[2],O=[0,[0,C[1],[0,P[1],P[2]]]];M(i)!==7&&W(i,9);var v=[0,O,v]}break x}var F=vx(v),K=f0(i);W(i,7);var U=M(i)===86?[1,Yo(i)]:a3(i);return[1,[0,F,U,F2([0,c],[0,xx(i)],K,R)]]},x);if(!e){var t=function(i){var c=M(i);return typeof c=="number"&&c===82?(W(i,82),[0,l(z0[10],i)]):0};return r0(0,function(i){var c=f0(i);W(i,0);x:for(var v=0,a=0,p=0;;){var _=M(i);if(typeof _=="number"){if(_===1)break x;if(Dr===_)break}r:if(M(i)===12)var y=f0(i),S=r0(0,function(B){return W(B,12),I6(B,r)},i),E=S[2],j=S[1],C=[0,[1,[0,j,[0,E,t0([0,y],0,R)]]]];else{var P=fx(i),O=k(z0[20],0,i),F=M(i);if(typeof F=="number"&&F===86){W(i,86);var K=r0([0,P],function(G0){var W0=I6(G0,r);return[0,W0,t(G0)]},i),U=K[2],V=O[2],Q=U[2],$=U[1],x0=K[1];switch(V[0]){case 0:var e0=[0,V[1]];break;case 1:var e0=[1,V[1]];break;case 2:var e0=[2,V[1]];break;case 3:var e0=[3,V[1]];break;case 4:var e0=gx(hv0);break;default:var e0=[4,V[1]]}var C=[0,[0,[0,x0,[0,e0,$,Q,0]]]];break r}var Z=O[2];if(Z[0]===3){var c0=Z[1],d0=c0[2][1],n0=c0[1];$h(d0)?D0(i,[0,n0,95]):i3(d0)&&ct(i,[0,n0,80]);var P0=r0([0,P],function(G0,W0){return function(Y0){var V0=[0,W0,[2,[0,G0,a3(Y0),0]]];return[0,V0,t(Y0)]}}(c0,n0),i),h0=P0[2],C=[0,[0,[0,P0[1],[0,[3,c0],h0[1],h0[2],1]]]]}else{_2(dv0,i);var C=0}}if(C){var g0=C[1],v0=g0[1][1],p0=v?(D0(i,[0,v0,64]),0):a;if(g0[0]===0)var T0=p0,E0=v;else var w0=M(i)===9?[0,fx(i)]:0,T0=w0,E0=1;M(i)!==1&&W(i,9);var v=E0,a=T0,p=[0,g0,p]}}a&&D0(i,[0,a[1],90]);var N0=vx(p),X0=f0(i);W(i,1);var A0=xx(i),rx=M(i)===86?[1,Yo(i)]:a3(i);return[0,[0,N0,rx,F2([0,c],[0,A0],X0,R)]]},x)}}var u=B0(z0[14],x,0,r);return[0,u[1],[2,u[2]]]}function Fd(x){var r=M(x);x:if(typeof r=="number"){var e=r+wM|0;if(6>>0){if(e!==14)break x}else if(4>=e-1>>>0)break x;return xx(x)}return K1(x)?Sa(x):0}function hK(x){return M(x)===1?0:[0,l(z0[7],x)]}function Xs(x){var r=fx(x),e=M(x);x:{if(typeof e!="number"&&e[0]===8){var t=e[1];break x}_2(ll0,x);var t=pl0}var u=f0(x);b0(x);var i=M(x);x:{r:if(typeof i=="number"){var c=i+DR|0;if(72>>0){if(c!==76)break r}else if(70>=c-1>>>0)break r;var v=xx(x);break x}var v=Fd(x)}return[0,r,[0,t,t0([0,u],[0,v],R)]]}function dK(x){var r=vr(1,x);if(typeof r=="number"){if(r===10)for(var e=r0(0,function(i){var c=[0,Xs(i)];return W(i,10),[0,c,Xs(i)]},x);;){var t=M(x);if(typeof t=="number"&&t===10){var u=e[1],e=r0([0,u],function(c){return function(v){return W(v,10),[0,[1,c],Xs(v)]}}(e),x);continue}return[2,e]}if(r===86)return[1,r0(0,function(i){var c=Xs(i);return W(i,86),[0,c,Xs(i)]},x)]}return[0,Xs(x)]}function j6(x,r){return Sr(x[2][1],r[2][1])}function yK(x,r){var e=x[2],t=e[1],u=r[2],i=u[1],c=e[2],v=u[2];x:{if(t[0]===0){var a=t[1];if(i[0]===0){var _=j6(a,i[1]);break x}}else{var p=t[1];if(i[0]!==0){var _=yK(p,i[1]);break x}}var _=0}return _&&j6(c,v)}function Ld(x,r){switch(x[0]){case 0:var e=x[1];if(r[0]===0)return j6(e,r[1]);break;case 1:var t=x[1];if(r[0]===1){var u=t[2],i=r[1][2],c=u[2],v=i[2],a=j6(u[1],i[1]);return a&&j6(c,v)}break;default:var p=x[1];if(r[0]===2)return yK(p,r[1])}return 0}function SC(x){switch(x[0]){case 0:return x[1][1];case 1:return x[1][1];default:return x[1][1]}}var gK=function x(r,e){return x.fun(r,e)},AC=function x(r,e){return x.fun(r,e)},IC=function x(r,e){return x.fun(r,e)};m0(gK,function(x,r){var e=M(r);if(typeof e=="number"){if(e===0){L2(r,0);var t=r0(0,function(S){W(S,0);var E=M(S);x:{if(typeof E=="number"&&E===12){var j=f0(S);W(S,12);var C=l(z0[10],S),F=[3,[0,C,t0([0,j],0,R)]];break x}var P=hK(S),O=P?0:f0(S),F=[2,[0,P,F2(0,0,O,R)]]}return W(S,1),F},r),u=t[2],i=t[1];return J2(r),[0,i,u]}}else if(e[0]===9){var c=e[3],v=e[2],a=e[1];return W(r,e),[0,a,[4,[0,v,c]]]}var p=k(IC,x,r),_=p[2],y=p[1];return Ut<=_[1]?[0,y,[1,_[2]]]:[0,y,[0,_[2]]]});function Md(x){switch(x[0]){case 0:return x[1][2][1];case 1:var r=x[1][2],e=r[1],t=Bx(fl0,r[2][2][1]);return Bx(e[2][1],t);default:var u=x[1][2],i=u[1],c=u[2],v=i[0]===0?i[1][2][1]:Md([2,i[1]]);return Bx(v,Bx(cl0,c[2][1]))}}m0(AC,function(x,r){var e=f0(r),t=r0(0,function(Lx){W(Lx,98);var M0=M(Lx);if(typeof M0=="number"){if(M0===99)return b0(Lx),al0}else if(M0[0]===8){var qr=dK(Lx);x:{if(g2(Lx)&&M(Lx)===98&>!==vr(1,Lx)){var Ex=rd(Lx,0,_d);break x}var Ex=0}for(var $0=0;;){var Gx=M(Lx);if(typeof Gx=="number"){if(Gx===0){var j0=f0(Lx);L2(Lx,0);var cr=r0(0,function(Rr){W(Rr,0),W(Rr,12);var U2=l(z0[10],Rr);return W(Rr,1),U2},Lx),tx=cr[2],Mx=cr[1];J2(Lx);var $0=[0,[1,[0,Mx,[0,tx,t0([0,j0],[0,Fd(Lx)],R)]]],$0];continue}}else if(Gx[0]===8){var $0=[0,[0,r0(0,function(Rr){var U2=vr(1,Rr);x:{if(typeof U2=="number"&&U2===86){var g=[1,r0(0,function(Fr){var hx=Xs(Fr);return W(Fr,86),[0,hx,Xs(Fr)]},Rr)];break x}var g=[0,Xs(Rr)]}var G=M(Rr);x:{if(typeof G=="number"&&G===82){W(Rr,82);var H=f0(Rr),l0=M(Rr);r:{if(typeof l0=="number"){if(l0===0){var J=f0(Rr);L2(Rr,0);var s0=r0(0,function(hx){W(hx,0);var z1=hK(hx);return W(hx,1),z1},Rr),_0=s0[1],y0=s0[2];J2(Rr);var J0=[0,y0,F2([0,J],[0,Fd(Rr)],0,R)];J0[1]||D0(Rr,[0,_0,47]);var gr=[0,[1,[0,_0,J0]]];break r}}else if(l0[0]===10){var Rx=l0[3],kx=l0[2],Jx=l0[1];W(Rr,l0);var gr=[0,[0,[0,Jx,[0,kx,Rx,t0([0,H],[0,Fd(Rr)],R)]]]];break r}Kx(Rr,36);var gr=[0,[0,[0,fx(Rr),vl0]]]}var Zx=gr;break x}var Zx=0}return[0,g,Zx]},Lx)],$0];continue}var b2=vx($0),Ux=[0,na,[0,qr,Ex,f2(Lx,gt),b2]];return f2(Lx,99)?[0,Ux]:(tn(Lx,99),[1,Ux])}}return tn(Lx,99),ol0},r);J2(r);var u=t[2];if(u[0]===0)var i=u[1],c=typeof i=="number"?0:i[2][3];else var c=1;if(c)var v=FS,a=v,p=r0(0,function(Lx){return 0},r);else{L2(r,3);var _=t[2][1],y=typeof _=="number"?0:[0,_[2][1]],S=fx(r);x:{r:{e:{t:for(var E=0;;){var j=u3(r);if(E&&y){var C=E[1],P=C[2],O=y[1],F=E[2];n:{if(P[0]===0){var K=P[1],U=K[2];if(U){var V=U[1][2][1],Q=1-Ld(K[1][2][1],V);if(Q){var $=Ld(O,V);break n}var $=Q;break n}}var $=0}if($)break r}var x0=M(r);if(typeof x0=="number"){if(x0===98){L2(r,2);var e0=M(r),Z=vr(1,r);if(typeof e0=="number"&&e0===98&&typeof Z=="number"){if(gt===Z)break t;if(Dr===Z)break}var c0=k(AC,y,r),d0=c0[2],n0=c0[1],P0=Ut<=d0[1]?[0,n0,[1,d0[2]]]:[0,n0,[0,d0[2]]],E=[0,P0,E];continue}if(Dr===x0)break e}var E=[0,k(gK,y,r),E]}var h0=r0(0,function($0){W($0,98),W($0,gt);var Gx=M($0);if(typeof Gx=="number"){if(Gx===99)return b0($0),Ut}else if(Gx[0]===8){var j0=dK($0);return xd($0,99),[0,na,[0,j0]]}return tn($0,99),Ut},r),g0=h0[2],v0=h0[1],p0=typeof g0=="number"?[0,Ut,v0]:[0,na,[0,v0,g0[2]]],w0=r[24][1];t:{if(w0){var T0=w0[2];if(T0){var E0=T0[2];break t}}var E0=gx(Gc0)}r[24][1]=E0;var N0=n3(r),X0=Zl(r[25][1],N0);r[26][1]=X0;var ex=[0,vx(E),,p0];break x}_2(0,r);var ex=[0,vx(E),,FS];break x}var A0=C[2];r:{if(A0[0]===0){var rx=A0[1],B=rx[2];if(B){var G0=B[1],W0=Zr(C[1],rx[3][1]),Y0=[0,na,G0],V0=[0,W0,[0,[0,rx[1],0,rx[3],rx[4]]]];break r}}var Y0=FS,V0=C}J2(r);var ex=[0,vx([0,V0,F]),,Y0]}var Q0=ex[3],S0=ex[1],q0=j?j[1]:S,a=Q0,p=[0,Zr(S,q0),S0]}var yx=xx(r);x:{r:if(typeof a!="number"){var cx=a[1];if(na===cx){var Dx=a[2],Ix=Dx[2][1],Xx=t[2],Z0=Dx[1];if(Xx[0]===0){var rr=Xx[1];if(typeof rr=="number")D0(r,[0,SC(Ix),sl0]);else{var xr=rr[2][1];e:if(1-Ld(Ix,xr)){if(x&&Ld(x[1],Ix)){var fr=[19,Md(xr)];D0(r,[0,SC(xr),fr]);break e}var Hx=[13,Md(xr)];D0(r,[0,SC(Ix),Hx])}}}var Y=Z0}else{if(Ut!==cx)break r;var jx=a[2],hr=t[2];if(hr[0]===0){var Yx=hr[1];typeof Yx!="number"&&D0(r,[0,jx,[13,Md(Yx[2][1])]])}var Y=jx}var Ur=Y;break x}var Ur=t[1]}var px=t[2][1],w=t[1];if(typeof px=="number"){x:{r:{var L=t0([0,e],[0,yx],R);if(typeof a!="number"){var L0=a[1];if(na===L0)var sx=a[2][1];else{if(Ut!==L0)break r;var sx=a[2]}var lx=sx;break x}}var lx=Ur}var ax=[0,Ut,[0,w,lx,p,L]]}else{var Vx=px[2];x:{var _x=t0([0,e],[0,yx],R);if(typeof a!="number"&&na===a[1]){var zx=[0,a[2]];break x}var zx=0}var ax=[0,na,[0,[0,w,Vx],zx,p,_x]]}return[0,Zr(t[1],Ur),ax]}),m0(IC,function(x,r){return L2(r,2),k(AC,x,r)});function _K(x,r){var e=g1(r);return td(x,r,e),e}var bK=function x(r){return x.fun(r)},jC=function x(r,e,t){return x.fun(r,e,t)},PC=function x(r){return x.fun(r)},wK=function x(r,e){return x.fun(r,e)},NC=function x(r,e){return x.fun(r,e)},OC=function x(r,e){return x.fun(r,e)},Ud=function x(r,e){return x.fun(r,e)},P6=function x(r,e){return x.fun(r,e)},qd=function x(r){return x.fun(r)},TK=function x(r){return x.fun(r)},EK=function x(r){return x.fun(r)},SK=function x(r,e,t){return x.fun(r,e,t)},AK=function x(r){return x.fun(r)},IK=function x(r){return x.fun(r)},ET0=l(IC,0);m0(bK,function(x){var r=M(x);x:{if(typeof r!="number"&&r[0]===6){var e=r[2],t=r[1];b0(x);var u=[0,[0,t,e]];break x}var u=0}var i=f0(x);x:{r:{for(var c=vx(i),v=5;c;){var a=c[2],p=c[1],_=p[2],y=p[1],S=_[2];e:{t:{for(var E=0,j=Nx(S);;){if(j<(E+5|0))break t;var C=Sr(k1(S,E,v),"@flow");if(C)break;var E=E+1|0}var P=C;break e}var P=0}if(P)break r;var c=a}var O=0;break x}x[31][1]=y[3];var O=vx([0,[0,y,_],a])}x:if(O===0){if(i){var F=i[1],K=F[2];if(!K[1]){var U=K[2],V=F[1];if(1<=Nx(U)&&N2(U,0)===42){x[31][1]=V[3];var Q=[0,F,0];break x}}}var Q=0}else var Q=O;var $=k(wK,x,function(n0){return 0}),x0=fx(x);W(x,Dr);var e0=y1[1];if(u1(function(n0,P0){var h0=P0[2];switch(h0[0]){case 21:return s6(x,n0,rn(0,[0,h0[1][1],Dl0]));case 22:var g0=h0[1],v0=g0[1];if(v0){if(!g0[2]){var p0=v0[1],w0=p0[2],T0=p0[1];x:{switch(w0[0]){case 38:var E0=w0[1][1],N0=0,X0=u1(function(Y0,V0){return u1(gO,Y0,[0,V0[2][1],0])},N0,E0);return u1(function(Y0,V0){return s6(x,Y0,V0)},n0,X0);case 2:case 27:var A0=w0[1][1];if(A0){var rx=A0[1];break x}break;case 3:case 20:case 30:case 36:case 37:var rx=w0[1][1];break x}return n0}return s6(x,n0,rn(0,[0,T0,rx[2][1]]))}}else{var B=g0[2];if(B){var G0=B[1];if(G0[0]!==0)return n0;var W0=G0[1];return u1(function(Y0,V0){var ex=V0[2],Q0=ex[2],S0=ex[1];return Q0?s6(x,Y0,Q0[1]):s6(x,Y0,S0)},n0,W0)}}return n0;default:return n0}},e0,$),$)var Z=Dl(vx($))[1],c0=Zr(Dl($)[1],Z);else var c0=x0;var d0=vx(x[2][1]);return[0,c0,[0,$,u,t0([0,Q],0,R),d0]]});function ST0(x,r,e,t){for(var u=x,i=t;;){var c=i[3],v=i[2],a=i[1],p=M(u);if(typeof p=="number"&&Dr===p)return[0,u,a,v,c];if(l(r,p))return[0,u,a,v,c];if(typeof p!="number"&&p[0]===2){var _=l(e,u),y=[0,_,v],S=_[2];if(S[0]===23){var E=S[1][2];if(E){var j=Sr(E[1],"use strict"),C=_[1],P=j&&1-u[21];P&&D0(u,[0,C,79]);var O=j?Fs(1,u):u,F=[0,p,a],K=c||j,u=O,i=[0,F,y,K];continue}}return[0,u,a,y,c]}return[0,u,a,v,c]}}m0(jC,function(x,r,e){var t=ST0(uX(1,x),r,e,Nl0),u=t[4],i=t[3],c=t[2],v=uX(0,t[1]),a=vx(c);return p1(function(p){if(typeof p!="number"&&p[0]===2){var _=p[1],y=_[4],S=_[1];return y&&ct(v,[0,S,76])}return gx(Bx(Cl0,Bx(wB(p),Ol0)))},a),[0,v,i,u]}),m0(PC,function(x){var r=vC(x),e=M(x);if(typeof e=="number"){var t=e-49|0;if(11>=t>>>0)switch(t){case 0:return k(fK,r,x);case 1:Zh(x)(r);var u=vr(1,x);x:{r:if(typeof u=="number"){if(u!==4&&u!==10)break r;var i=E6(x);break x}var i=Dd(x)}return i;case 11:if(vr(1,x)===49)return Zh(x)(r),l(wC,x);break}}return k(P6,[0,r],x)}),m0(wK,function(x,r){var e=B0(jC,x,r,PC),t=e[2],u=k(NC,r,e[1]);return u1(function(i,c){return[0,c,i]},u,t)}),m0(NC,function(x,r){for(var e=0;;){var t=M(r);if(typeof t=="number"&&Dr===t||l(x,t))return vx(e);var e=[0,l(PC,r),e]}}),m0(OC,function(x,r){var e=B0(jC,r,x,function(c){return k(P6,0,c)}),t=e[3],u=e[2],i=k(Ud,x,e[1]);return[0,u1(function(c,v){return[0,v,c]},i,u),t]}),m0(Ud,function(x,r){for(var e=0;;){var t=M(r);if(typeof t=="number"&&Dr===t||l(x,t))return vx(e);var e=[0,k(P6,0,r),e]}}),m0(P6,function(x,r){var e=x?x[1]:0;1-n6(r)&&Zh(r)(e);var t=M(r);if(typeof t=="number"){if(t===27)return r0(lT0,vT0,r);if(t===28)return r0(kT0,pT0,r)}if(!Ea(r)&&!Qh(r)){if(n6(r))return Ad(r,e);if(typeof t=="number"){var u=t+B2|0;if(14>=u>>>0)switch(u){case 0:if(r[28][2])return lJ(0)(r);break;case 5:return l(QJ,r);case 12:return k(uK,0,r);case 13:return l(GJ,r);case 14:return l($J,r)}}return lO(r)?BO(r):l(qd,r)}return d6(r)}),m0(qd,function(x){var r=M(x);if(typeof r=="number"&&ia>r)switch(r){case 0:return l(zJ,x);case 8:return l(XJ,x);case 16:return aK(x);case 19:return r0(tT0,eT0,x);case 20:return r0(uT0,nT0,x);case 22:return r0(fT0,iT0,x);case 23:return r0(sT0,cT0,x);case 24:return r0(oT0,aT0,x);case 25:return r0(hT0,mT0,x);case 26:return l(YJ,x);case 32:return l(JJ,x);case 35:return l(KJ,x);case 37:return r0($w0,Ww0,x);case 39:return r0(Qw0,Hw0,x);case 43:return aK(x);case 59:return r0(Gw0,Vw0,x);case 113:return _2(Il0,x),[0,fx(x),jl0];case 1:case 5:case 7:case 9:case 10:case 11:case 12:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:case 83:case 86:return _2(Pl0,x),b0(x),l(qd,x)}if(!Ea(x)&&!Qh(x)){if(typeof r=="number"&&r===28&&vr(1,x)===6){var e=f3(1,x);return D0(x,[0,Zr(fx(x),e),3]),E6(x)}return Jc(x)?r0(yT0,dT0,x):(n6(x)&&(_2(0,x),b0(x)),E6(x))}var t=d6(x);return Jo(x,t[1]),t}),m0(TK,function(x){var r=fx(x),e=l(Dt,x),t=M(x);return typeof t=="number"&&t===9?B0(Td,x,r,[0,e,0]):e}),m0(EK,function(x){var r=fx(x),e=l(p3,x),t=M(x);return typeof t=="number"&&t===9?[0,B0(Td,x,r,[0,f1(x,e),0])]:e}),m0(SK,function(x,r,e){var t=r?r[1]:0;return r0(0,function(u){var i=1-t,c=_K([0,e],u),v=i&&(M(u)===85?1:0);return v&&(1-g2(u)&&Kx(u,S1),W(u,85)),[0,c,DO(u),v]},x)}),m0(AK,function(x){var r=fx(x),e=f0(x);W(x,0);var t=k(Ud,function(v){return v===1?1:0},x),u=fx(x),i=t===0?f0(x):0;W(x,1);var c=[0,t,F2([0,e],[0,xx(x)],i,R)];return[0,Zr(r,u),c]}),m0(IK,function(x){function r(t){var u=f0(t);W(t,0);var i=k(OC,function(y){return y===1?1:0},t),c=i[1],v=i[2],a=c===0?f0(t):0;W(t,1);var p=M(t);x:{r:if(!x){if(typeof p=="number"&&(p===1||Dr===p))break r;if(K1(t)){var _=Sa(t);break x}var _=0;break x}var _=xx(t)}return[0,[0,c,F2([0,u],[0,_],a,R)],v]}var e=0;return function(t){return hO(e,r,t)}}),zq(Ml0[1],z0,[0,bK,qd,P6,Ud,OC,NC,TK,EK,dJ,Dt,gd,Bw0,_K,SK,AK,IK,ET0,I6,A6,Pa,Ad,zw0,Cw0,bd,Yo,wd]);var CC=[x2,fb0,Ts(0)],DC=[0,CC,[0]],AT0=ph(ub0,function(x){var r=DN(x,nb0)[41],e=MN(x,0,0,ib0,JN,1)[1];return Kq(x,r,function(t,u){return 0}),function(t,u){var i=kh(u,x);return l(e,i),UN(u,i,x)}}),IT0=Po(DC)===x2?DC:DC[1];xN(UT,IT0);var Js=a0,_1=null,jK=void 0;function jT0(x){throw x}function Bd(x){return 1-(x===jK?1:0)}Js.String,Js.RegExp,Js.Object,Js.Date,Js.Math;var PT0=Js.Array,NT0=Js.Error;function PK(x){return l(jT0,x)}Js.JSON,_q(function(x){return x[1]===CC?[0,Tt(x[2].toString())]:0}),_q(function(x){return x instanceof PT0?0:[0,Tt(x.toString())]});var NK=[0,0],OT0=Qx;function Vc(x){return DY(Ll(x))}function M2(x){return CY(Ll(x))}function jr(x,r){return M2(vx(th(x,r)))}function Tx(x,r){return r?l(x,r[1]):_1}function d3(x,r){return r[0]===0?_1:x(r[1])}function OK(x){return Vc([0,[0,tb0,x[1]],[0,[0,eb0,x[2]],0]])}function CK(x){var r=x[1],e=r?Qx(r[1][1]):_1,t=[0,[0,Z_0,OK(x[3])],0];return Vc([0,[0,rb0,e],[0,[0,xb0,OK(x[2])],t]])}function S2(x){if(!x)return 0;var r=x[1],e=r[1];return t0([0,e],[0,Fx(r[3],r[2])],R)}function N6(x,r,e){var t=r[e];return Bd(t)?t|0:x}function CT0(x,r){var e=Xv(r,jK)?{}:r,t=Tt(x),u=N6(Nl[5],e,sb0),i=N6(Nl[4],e,ab0),c=N6(Nl[3],e,ob0),v=N6(Nl[2],e,vb0),a=[0,N6(Nl[1],e,lb0),v,c,i,u,0,0],p=e[hR],_=Bd(p),y=_&&p|0,S=e[zD],E=Bd(S)?S|0:1,j=e.all_comments,C=Bd(j)?j|0:1,P=[0,0],O=y?[0,function(X){return P[1]=[0,X,P[1]],0}]:0,F=cb0[1],K=0;try{var U=0,V=iB(t),Q=U,$=V}catch(X){var x0=O2(X);if(x0!==ka)throw U0(x0,0);var e0=[0,[0,[0,K,Yv[2],Yv[3]],49],0],Q=e0,$=iB(es0)}var Z=[0,K,$,M00,0,a[4],yB,U00],c0=[0,Zl(Z,0)],d0=[0,[0,Q],[0,0],y1[1],[0,0],a[5],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,[0,ns0],[0,Z],c0,[0,O],a,K,[0,0],[0,ts0]],n0=l(z0[1],d0),P0=vx(d0[1][1]),h0=[0,yO[1],0],g0=vx(u1(function(X,A){var D=X[2],u0=X[1];return yO[3].call(null,A,u0)?[0,u0,D]:[0,yO[4].call(null,A,u0),[0,A,D]]},h0,P0)[2]);if(g0){var v0=g0[2],p0=g0[1];if(F)throw U0([0,Wb0,p0,v0],1)}NK[1]=0;var w0=Nx(t)-0|0,T0=Cc(t);x:{r:{for(var E0=0,N0=0;;){if(N0===w0)break r;var X0=fe(T0,N0);e:{if(0<=X0&&Yr>=X0){var A0=1;break e}if(E9<=X0&&ak>=X0){var A0=2;break e}if(Tv<=X0&&Gk>=X0){var A0=3;break e}if(po<=X0&&OI>=X0){var A0=4;break e}var A0=0}if(A0===0)var E0=dO(E0,N0,0),N0=N0+1|0;else{if((w0-N0|0)>>0)throw U0([0,Ar,MW],1);switch(rx){case 0:var G0=fe(T0,N0);break;case 1:var G0=(fe(T0,N0)&31)<<6|fe(T0,N0+1|0)&63;break;case 2:var G0=(fe(T0,N0)&15)<<12|(fe(T0,N0+1|0)&63)<<6|fe(T0,N0+2|0)&63;break;default:var G0=(fe(T0,N0)&7)<<18|(fe(T0,N0+1|0)&63)<<12|(fe(T0,N0+2|0)&63)<<6|fe(T0,N0+3|0)&63}var E0=dO(E0,N0,[0,G0]),N0=B}}var W0=dO(E0,N0,0);break x}var W0=E0}for(var Y0=co0,V0=vx([0,6,W0]);;){var ex=Y0[3],Q0=Y0[2],S0=Y0[1];if(!V0)break;var q0=V0[1];if(q0===5){var yx=V0[2];if(yx&&yx[1]===6){var cx=yx[2],Y0=[0,S0+2|0,0,[0,Ll(vx([0,S0,Q0])),ex]],V0=cx;continue}}else if(6>q0){var Dx=V0[2],Y0=[0,S0+EX(q0)|0,[0,S0,Q0],ex],V0=Dx;continue}var Ix=V0[2],Xx=[0,Ll(vx([0,S0,Q0])),ex],Y0=[0,S0+EX(q0)|0,0,Xx],V0=Ix}var Z0=Ll(vx(ex));if(E)var xr=n0;else var rr=l(AT0[1],0),xr=k(Wx(rr,-201766268,99),rr,n0);if(C)var Hx=xr;else var fr=xr[2],Hx=[0,xr[1],[0,fr[1],fr[2],fr[3],0]];function Y(X,A,D,u0){var k0=[0,ud(Z0,A[3]),0],C0=[0,[0,Ul0,M2([0,ud(Z0,A[2]),k0])],0],nx=Fx(C0,[0,[0,ql0,CK(A)],0]);if(D){var Sx=D[1],Px=Sx[1];if(Px){var qx=Sx[2];if(qx)var lr=[0,[0,Bl0,sn(qx)],0],tr=[0,[0,Xl0,sn(Px)],lr];else var tr=[0,[0,Jl0,sn(Px)],0];var ur=tr}else var br=Sx[2],pr=br?[0,[0,Kl0,sn(br)],0]:0,ur=pr;var Tr=ur}else var Tr=0;return Vc(zv(Fx(nx,Fx(Tr,[0,[0,Yl0,Qx(X)],0])),u0))}function jx(X){return jr(_x,X)}function hr(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,I50,Qx(Na(A[2]))],0];return Y(P50,k0,D,[0,[0,j50,jr(Ho,u0)],C0])}function Yx(X){var A=X[2],D=A[5],u0=A[4],k0=A[2],C0=A[1],nx=X[1],Sx=[0,[0,Kh0,jr(Rx,A[3])],0],Px=[0,[0,Yh0,at(0,u0)],Sx],qx=[0,[0,zh0,Tx(K2,k0)],Px];return Y(Gh0,nx,D,[0,[0,Vh0,j0(C0)],qx])}function Ur(X,A){var D=A[2],u0=D[7],k0=D[5],C0=D[4],nx=D[2],Sx=D[6],Px=D[3],qx=D[1],lr=A[1];if(C0)var tr=C0[1][2],br=tr[2],pr=tr[1],ur=N1(tr[3],u0),Tr=br,Br=[0,pr];else var ur=u0,Tr=0,Br=0;if(k0)var Or=k0[1][2],Wr=Or[1],Pr=N1(Or[2],ur),t2=Pr,p2=jr(s0,Wr);else var t2=ur,p2=M2(0);var o2=[0,[0,em0,p2],[0,[0,rm0,jr(J,Sx)],0]],n2=[0,[0,tm0,Tx(cn,Tr)],o2],c2=[0,[0,nm0,Tx(tx,Br)],n2],w2=[0,[0,um0,Tx(K2,Px)],c2],k2=nx[2],v2=k2[2],q2=nx[1],s1=[0,[0,im0,Y(pm0,q2,v2,[0,[0,lm0,jr(_0,k2[1])],0])],w2];return Y(X,lr,t2,[0,[0,fm0,Tx(j0,qx)],s1])}function px(X,A){var D=A[2],u0=D[5],k0=D[4],C0=D[3],nx=D[2],Sx=D[1],Px=A[1],qx=X?V80:G80,lr=[0,[0,W80,Tx(_r,k0)],0],tr=[0,[0,$80,Tx(_r,C0)],lr],br=[0,[0,H80,Tx(K2,nx)],tr];return Y(qx,Px,u0,[0,[0,Q80,j0(Sx)],br])}function w(X){var A=X[2],D=A[4],u0=A[2],k0=A[1],C0=X[1],nx=[0,[0,J80,_r(A[3])],0],Sx=[0,[0,K80,Tx(K2,u0)],nx];return Y(z80,C0,D,[0,[0,Y80,j0(k0)],Sx])}function L(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,A80,J0(A[2])],0];return Y(j80,k0,D,[0,[0,I80,j0(u0)],C0])}function L0(X){var A=X[2],D=A[3],u0=X[1],k0=A[5],C0=A[4],nx=A[2],Sx=A[1],Px=N1(S2(D[2][3]),k0),qx=D[2],lr=qx[1],tr=qx[2],br=[0,[0,o80,Tx(K2,nx)],0],pr=[0,[0,v80,ot(C0)],br],ur=[0,[0,l80,U2(lr)],pr],Tr=[0,[0,p80,Tx(G,tr)],ur],Br=[0,[0,k80,U2(lr)],Tr];return Y(h80,u0,Px,[0,[0,m80,j0(Sx)],Br])}function sx(X){var A=X[2],D=A[6],u0=A[4],k0=A[7],C0=A[5],nx=A[3],Sx=A[2],Px=A[1],qx=X[1],lr=M2(u0?[0,Rx(u0[1]),0]:0),tr=D?jr(s0,D[1][2][1]):M2(0),br=[0,[0,i80,lr],[0,[0,u80,tr],[0,[0,n80,jr(Rx,C0)],0]]],pr=[0,[0,f80,at(0,nx)],br],ur=[0,[0,c80,Tx(K2,Sx)],pr];return Y(a80,qx,k0,[0,[0,s80,j0(Px)],ur])}function lx(X){var A=X[2],D=A[2],u0=A[1],k0=A[4],C0=A[3],nx=X[1],Sx=Zr(u0[1],D[1]),Px=D[2][2];x:{if(Px[0]===12){var qx=Px[1][5];if(typeof qx=="number"&&!qx){var lr=0,tr=x80;break x}}var lr=[0,[0,r80,Tx(an,C0)],0],tr=e80}return Y(tr,nx,k0,Fx([0,[0,t80,b2(Sx,[0,u0,[1,D],0])],0],lr))}function ax(X){var A=X[2],D=A[2],u0=A[1],k0=A[4],C0=A[3],nx=X[1],Sx=Zr(u0[1],D[1]),Px=[0,[0,Hk0,Qx(Na(C0))],0];return Y(Zk0,nx,k0,[0,[0,Qk0,b2(Sx,[0,u0,[1,D],0])],Px])}function Vx(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Wk0,jx(A[1])],0];return Y($k0,u0,S2(D),k0)}function _x(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Vx([0,D,A[1]]);case 1:var u0=A[1],k0=u0[2];return Y(Zl0,D,k0,[0,[0,Ql0,Tx(j0,u0[1])],0]);case 2:return Ur(Z80,[0,D,A[1]]);case 3:var C0=A[1],nx=C0[3],Sx=C0[6],Px=C0[5],qx=C0[4],lr=C0[2],tr=C0[1],br=N1(S2(nx[2][3]),Sx),pr=[0,[0,Ym0,Tx(K2,lr)],0],ur=[0,[0,zm0,ot(qx)],pr],Tr=nx[2],Br=Tr[2],Or=Tr[1];if(Br)var Wr=Br[1],Pr=Wr[2],t2=Pr[2],p2=Wr[1],o2=Y(Qm0,p2,t2,[0,[0,Hm0,kx(Pr[1])],0]),n2=M2(vx([0,o2,th(y0,Or)]));else var n2=M2(xn(y0,Or));var c2=[0,[0,Gm0,j0(tr)],[0,[0,Vm0,n2],ur]];return Y($m0,D,br,[0,[0,Wm0,Vx(Px)],c2]);case 4:var w2=A[1],k2=w2[2];return Y(r60,D,k2,[0,[0,x60,Tx(j0,w2[1])],0]);case 5:return Y(e60,D,A[1][1],0);case 6:return sx([0,D,A[1]]);case 7:return L0([0,D,A[1]]);case 8:return L([0,D,A[1]]);case 9:var v2=A[1],q2=v2[5],s1=v2[4],O1=v2[3],xe=v2[2],sr=v2[1];if(O1){var Xr=O1[1];if(Xr[0]!==0&&!Xr[1][2])return Y(n60,D,q2,[0,[0,t60,Tx(Ex,s1)],0])}if(xe){var Cr=xe[1];switch(Cr[0]){case 0:var Jr=ax(Cr[1]);break;case 1:var Jr=lx(Cr[1]);break;case 2:var Jr=sx(Cr[1]);break;case 3:var Jr=L0(Cr[1]);break;case 4:var Jr=_r(Cr[1]);break;case 5:var Jr=w(Cr[1]);break;case 6:var Jr=px(1,Cr[1]);break;case 7:var Jr=Yx(Cr[1]);break;default:var Jr=L(Cr[1])}var bx=Jr}else var bx=_1;var le=[0,[0,u60,Tx(Ex,s1)],0],pe=[0,[0,f60,bx],[0,[0,i60,l0(O1)],le]],Re=sr?1:0;return Y(s60,D,q2,[0,[0,c60,!!Re],pe]);case 10:return lx([0,D,A[1]]);case 11:var b1=A[1],$r=b1[5],re=b1[4],x1=b1[2],C1=b1[1],w1=[0,[0,P80,jr(Rx,b1[3])],0],lt=[0,[0,N80,at(0,re)],w1],Rt=[0,[0,O80,Tx(K2,x1)],lt];return Y(D80,D,$r,[0,[0,C80,j0(C1)],Rt]);case 12:var Fe=A[1],D1=Fe[1],Le=Fe[3],ke=Fe[2],ee=D1[0]===0?j0(D1[1]):Ex(D1[1]);return Y(v60,D,Le,[0,[0,o60,ee],[0,[0,a60,Vx(ke)],0]]);case 13:var a1=A[1],Me=a1[2];return Y(p60,D,Me,[0,[0,l60,hx(a1[1])],0]);case 14:var V1=A[1],Ft=V1[3],Ue=V1[2],qe=j0(V1[1]);return Y(h60,D,Ft,[0,[0,m60,qe],[0,[0,k60,Vx(Ue)],0]]);case 15:var r1=A[1],T1=r1[4],Be=r1[2],$c=r1[1],Hc=[0,[0,U80,_r(r1[3])],0],Qc=[0,[0,q80,Tx(K2,Be)],Hc];return Y(X80,D,T1,[0,[0,B80,j0($c)],Qc]);case 16:return px(1,[0,D,A[1]]);case 17:return ax([0,D,A[1]]);case 18:var me=A[1],Xe=me[3],Lt=me[1],Je=[0,[0,d60,tx(me[2])],0];return Y(g60,D,Xe,[0,[0,y60,_x(Lt)],Je]);case 19:return Y(_60,D,A[1][1],0);case 20:var E1=A[1],on=E1[3],vn=E1[1],Zc=[0,[0,Bh0,J0(E1[2])],0];return Y(Jh0,D,on,[0,[0,Xh0,j0(vn)],Zc]);case 21:var Ke=A[1],Ye=Ke[2],ln=Ke[3],pn=Ye[0]===0?_x(Ye[1]):tx(Ye[1]);return Y(T60,D,ln,[0,[0,w60,pn],[0,[0,b60,Qx(H(1))],0]]);case 22:var he=A[1],kn=he[5],Hs=he[4],xs=he[3],Qs=he[2],Ya=he[1];if(Qs){var za=Qs[1];if(za[0]!==0){var ev=za[1][2],tv=[0,[0,E60,Qx(H(Hs))],0],nv=[0,[0,S60,Tx(j0,ev)],tv];return Y(I60,D,kn,[0,[0,A60,Tx(Ex,xs)],nv])}}var Zs=[0,[0,j60,Qx(H(Hs))],0],_3=[0,[0,P60,Tx(Ex,xs)],Zs],b3=[0,[0,N60,l0(Qs)],_3];return Y(C60,D,kn,[0,[0,O60,Tx(_x,Ya)],b3]);case 23:var rs=A[1],Va=rs[3],uv=rs[1],w3=[0,[0,D60,Tx(OT0,rs[2])],0];return Y(F60,D,Va,[0,[0,R60,tx(uv)],w3]);case 24:var es=A[1],iv=es[5],fv=es[4],xa=es[3],T3=es[2],E3=es[1],S3=function(z6){return z6[0]===0?hr(z6[1]):tx(z6[1])},mn=[0,[0,L60,_x(fv)],0],A3=[0,[0,M60,Tx(tx,xa)],mn],I3=[0,[0,U60,Tx(tx,T3)],A3];return Y(B60,D,iv,[0,[0,q60,Tx(S3,E3)],I3]);case 25:var hn=A[1],ts=hn[1],j3=hn[5],P3=hn[4],Ga=hn[3],Wa=hn[2],$a=ts[0]===0?hr(ts[1]):kx(ts[1]),cv=[0,[0,J60,_x(Ga)],[0,[0,X60,!!P3],0]];return Y(z60,D,j3,[0,[0,Y60,$a],[0,[0,K60,tx(Wa)],cv]]);case 26:var Mt=A[1],de=Mt[1],te=Mt[5],pt=Mt[4],ra=Mt[3],N3=Mt[2],ea=de[0]===0?hr(de[1]):kx(de[1]),ns=[0,[0,G60,_x(ra)],[0,[0,V60,!!pt],0]];return Y(H60,D,te,[0,[0,$60,ea],[0,[0,W60,tx(N3)],ns]]);case 27:var ye=A[1],sv=ye[3],O3=ye[2],Vd=ye[10],Gd=ye[9],Wd=ye[8],$d=ye[7],M6=ye[6],RC=ye[5],FC=ye[4],LC=O3[2][4],MC=ye[1],UC=sv[0]===0?sv[1]:gx(ck0),qC=N1(S2(LC),Vd);if(M6===0)var Hd=0,Qd=sk0;else var Hd=[0,[0,lk0,!!FC],[0,[0,vk0,!!RC],[0,[0,ok0,Tx(an,$d)],[0,[0,ak0,!1],0]]]],Qd=pk0;var BC=[0,[0,kk0,Tx(K2,Gd)],0],XC=[0,[0,mk0,z1(Wd)],BC],JC=[0,[0,hk0,Vx(UC)],XC],KC=[0,[0,dk0,Zx(O3)],JC];return Y(Qd,D,qC,Fx([0,[0,yk0,Tx(j0,MC)],KC],Hd));case 28:var C3=A[1],Zd=C3[3],YC=C3[4],zC=C3[2],VC=C3[1];if(Zd)var x5=Zd[1][2],r5=_x(ow0(x5[1],x5[2]));else var r5=_1;var GC=[0,[0,Z60,_x(zC)],[0,[0,Q60,r5],0]];return Y(rp0,D,YC,[0,[0,xp0,tx(VC)],GC]);case 29:var av=A[1],e5=av[4],t5=av[3],WC=av[5],$C=av[2],HC=av[1];if(e5){var U6=e5[1];if(U6[0]===0)var QC=U6[1],u5=xn(function(V6){var R3=V6[3],F3=V6[2],a5=V6[1],_D=F3?Zr(R3[1],F3[1][1]):R3[1],bD=F3?F3[1]:R3;x:{r:{var wD=0;if(a5){switch(a5[1]){case 0:var o5=qu;break;case 1:var o5=ss;break;default:break r}var v5=o5;break x}}var v5=_1}var TD=[0,[0,F_0,j0(bD)],[0,[0,R_0,v5],wD]];return Y(M_0,_D,0,[0,[0,L_0,j0(R3)],TD])},QC);else var n5=U6[1],ZC=n5[1],u5=[0,Y(D_0,ZC,0,[0,[0,C_0,j0(n5[2])],0]),0];var q6=u5}else var q6=0;if(t5)var i5=t5[1][1],xD=[0,[0,N_0,j0(i5)],0],f5=[0,Y(O_0,i5[1],0,xD),q6];else var f5=q6;switch(HC){case 0:var B6=ep0;break;case 1:var B6=tp0;break;default:var B6=np0}var rD=[0,[0,ip0,Ex($C)],[0,[0,up0,Qx(B6)],0]];return Y(cp0,D,WC,[0,[0,fp0,M2(f5)],rD]);case 30:return Yx([0,D,A[1]]);case 31:var X6=A[1],eD=X6[3],tD=X6[1],nD=[0,[0,sp0,_x(X6[2])],0];return Y(op0,D,eD,[0,[0,ap0,j0(tD)],nD]);case 32:var c5=A[1],uD=c5[2];return Y(lp0,D,uD,[0,[0,vp0,Tx(tx,c5[1])],0]);case 33:var J6=A[1],iD=J6[3],fD=J6[1],cD=[0,[0,pp0,jr(c1,J6[2])],0];return Y(mp0,D,iD,[0,[0,kp0,tx(fD)],cD]);case 34:var s5=A[1],sD=s5[2];return Y(dp0,D,sD,[0,[0,hp0,tx(s5[1])],0]);case 35:var D3=A[1],aD=D3[4],oD=D3[2],vD=D3[1],lD=[0,[0,yp0,Tx(Vx,D3[3])],0],pD=[0,[0,gp0,Tx(Rr,oD)],lD];return Y(bp0,D,aD,[0,[0,_p0,Vx(vD)],pD]);case 36:return w([0,D,A[1]]);case 37:return px(0,[0,D,A[1]]);case 38:return hr([0,D,A[1]]);case 39:var K6=A[1],kD=K6[3],mD=K6[1],hD=[0,[0,wp0,_x(K6[2])],0];return Y(Ep0,D,kD,[0,[0,Tp0,tx(mD)],hD]);default:var Y6=A[1],dD=Y6[3],yD=Y6[1],gD=[0,[0,Sp0,_x(Y6[2])],0];return Y(Ip0,D,dD,[0,[0,Ap0,tx(yD)],gD])}}function zx(X){var A=X[2],D=A[4],u0=A[3][2],k0=A[1],C0=X[1],nx=[0,[0,Gg0,Y(i_0,A[2],0,0)],0],Sx=[0,[0,Wg0,jr(Ba,u0)],nx];return Y(Hg0,C0,D,[0,[0,$g0,Y(t_0,k0,0,0)],Sx])}function Lx(X){var A=X[2],D=A[1],u0=A[4],k0=A[2],C0=X[1],nx=[0,[0,Kg0,jr(Ba,A[3][2])],0],Sx=[0,[0,Yg0,Tx(Ua,k0)],nx],Px=D[2],qx=Px[2],lr=Px[4],tr=Px[3],br=Px[1],pr=D[1],ur=qx?[0,[0,Qg0,Gs(qx[1])],0]:0,Tr=[0,[0,x_0,jr(Ws,lr)],[0,[0,Zg0,!!tr],0]];return Y(Vg0,C0,u0,[0,[0,zg0,Y(e_0,pr,0,Fx([0,[0,r_0,Zo(br)],Tr],ur))],Sx])}function M0(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,p50,jr(tx,A[2])],0];return Y(m50,k0,D,[0,[0,k50,jr($o,u0)],C0])}function qr(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D?x50:r50;return Y(n50,k0,u0,[0,[0,t50,!!D],[0,[0,e50,Qx(C0)],0]])}function Ex(X){var A=X[2];return Y(Zd0,X[1],A[3],[0,[0,Qd0,Qx(A[1])],[0,[0,Hd0,Qx(A[2])],0]])}function $0(X){var A=X[2],D=A[2],u0=A[1],k0=A[3],C0=X[1],nx=u0?RU(Lv,u0[1]):iq(zd0,sq(95,k1(D,0,Nx(D)-1|0)));return Y($d0,C0,k0,[0,[0,Wd0,_1],[0,[0,Gd0,Qx(nx)],[0,[0,Vd0,Qx(D)],0]]])}function Gx(X){var A=X[2];return Y(Yd0,X[1],A[3],[0,[0,Kd0,A[1]],[0,[0,Jd0,Qx(A[2])],0]])}function j0(X){var A=X[2];return Y(Dk0,X[1],A[2],[0,[0,Ck0,Qx(A[1])],[0,[0,Ok0,_1],[0,[0,Nk0,!1],0]]])}function cr(X){var A=X[2],D=A[3],u0=A[2],k0=A[10],C0=A[9],nx=A[8],Sx=A[7],Px=A[5],qx=A[4],lr=u0[2][4],tr=A[1],br=X[1],pr=D[0]===0?D[1]:gx(gk0),ur=N1(S2(lr),k0),Tr=[0,[0,_k0,Tx(K2,C0)],0],Br=[0,[0,wk0,!1],[0,[0,bk0,z1(nx)],Tr]],Or=[0,[0,Sk0,!!qx],[0,[0,Ek0,!!Px],[0,[0,Tk0,Tx(an,Sx)],Br]]],Wr=[0,[0,Ak0,Vx(pr)],Or],Pr=[0,[0,Ik0,Zx(u0)],Wr];return Y(Pk0,br,ur,[0,[0,jk0,Tx(j0,tr)],Pr])}function tx(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[2],C0=[0,[0,jp0,jr(Wo,u0[1])],0];return Y(Pp0,D,S2(k0),C0);case 1:var nx=A[1],Sx=nx[3],Px=nx[2],qx=nx[10],lr=nx[9],tr=nx[8],br=nx[7],pr=nx[4],ur=Px[2][4];if(Sx[0]===0)var Tr=0,Br=Vx(Sx[1]);else var Tr=1,Br=tx(Sx[1]);var Or=N1(S2(ur),qx),Wr=[0,[0,Np0,Tx(K2,lr)],0],Pr=[0,[0,Cp0,!!Tr],[0,[0,Op0,z1(tr)],Wr]],t2=[0,[0,Lp0,Br],[0,[0,Fp0,!!pr],[0,[0,Rp0,!1],[0,[0,Dp0,Tx(an,br)],Pr]]]];return Y(qp0,D,Or,[0,[0,Up0,_1],[0,[0,Mp0,Zx(Px)],t2]]);case 2:var p2=A[1],o2=p2[2];return Y(Xp0,D,o2,[0,[0,Bp0,tx(p2[1])],0]);case 3:var n2=A[1],c2=n2[3],w2=n2[1],k2=[0,[0,Jp0,_r(n2[2][2])],0];return Y(Yp0,D,c2,[0,[0,Kp0,tx(w2)],k2]);case 4:var v2=A[1],q2=v2[1],s1=v2[4],O1=v2[3],xe=v2[2];if(q2){switch(q2[1]){case 0:var sr=X$;break;case 1:var sr=J$;break;case 2:var sr=K$;break;case 3:var sr=Y$;break;case 4:var sr=z$;break;case 5:var sr=V$;break;case 6:var sr=G$;break;case 7:var sr=W$;break;case 8:var sr=$$;break;case 9:var sr=H$;break;case 10:var sr=Q$;break;case 11:var sr=Z$;break;case 12:var sr=xH;break;case 13:var sr=rH;break;default:var sr=eH}var Xr=sr}else var Xr=zp0;var Cr=[0,[0,Vp0,tx(O1)],0];return Y($p0,D,s1,[0,[0,Wp0,Qx(Xr)],[0,[0,Gp0,kx(xe)],Cr]]);case 5:var Jr=A[1],bx=Jr[4],le=Jr[2],pe=Jr[1],Re=[0,[0,Hp0,tx(Jr[3])],0],b1=[0,[0,Qp0,tx(le)],Re];switch(pe){case 0:var $r=g$;break;case 1:var $r=_$;break;case 2:var $r=b$;break;case 3:var $r=w$;break;case 4:var $r=T$;break;case 5:var $r=E$;break;case 6:var $r=S$;break;case 7:var $r=A$;break;case 8:var $r=I$;break;case 9:var $r=j$;break;case 10:var $r=P$;break;case 11:var $r=N$;break;case 12:var $r=O$;break;case 13:var $r=C$;break;case 14:var $r=D$;break;case 15:var $r=R$;break;case 16:var $r=F$;break;case 17:var $r=L$;break;case 18:var $r=M$;break;case 19:var $r=U$;break;case 20:var $r=q$;break;default:var $r=B$}return Y(x40,D,bx,[0,[0,Zp0,Qx($r)],b1]);case 6:var re=A[1],x1=re[4],C1=N1(S2(re[3][2][2]),x1);return Y(r40,D,C1,Ka(re));case 7:return Ur(xm0,[0,D,A[1]]);case 8:var w1=A[1],lt=w1[4],Rt=w1[2],Fe=w1[1],D1=[0,[0,e40,tx(w1[3])],0],Le=[0,[0,t40,tx(Rt)],D1];return Y(u40,D,lt,[0,[0,n40,tx(Fe)],Le]);case 9:return cr([0,D,A[1]]);case 10:return j0(A[1]);case 11:var ke=A[1],ee=ke[2];return Y(f40,D,ee,[0,[0,i40,tx(ke[1])],0]);case 12:return Lx([0,D,A[1]]);case 13:return zx([0,D,A[1]]);case 14:return Ex([0,D,A[1]]);case 15:return qr([0,D,A[1]]);case 16:return Y(l50,D,A[1],[0,[0,v50,_1],[0,[0,o50,oo],0]]);case 17:return Gx([0,D,A[1]]);case 18:return $0([0,D,A[1]]);case 19:var a1=A[1],Me=a1[2],V1=a1[1],Ft=a1[4],Ue=a1[3];try{var qe=new RegExp(Qx(V1),Qx(Me)),r1=qe}catch{var r1=_1}return Y(a50,D,Ft,[0,[0,s50,r1],[0,[0,c50,Qx(Ue)],[0,[0,f50,Vc([0,[0,i50,Qx(V1)],[0,[0,u50,Qx(Me)],0]])],0]]]);case 20:var T1=A[1];return Ex([0,D,[0,T1[1],T1[5],T1[6]]]);case 21:var Be=A[1],$c=Be[4],Hc=Be[3],Qc=Be[2];switch(Be[1]){case 0:var me=c40;break;case 1:var me=s40;break;default:var me=a40}var Xe=[0,[0,o40,tx(Hc)],0];return Y(p40,D,$c,[0,[0,l40,Qx(me)],[0,[0,v40,tx(Qc)],Xe]]);case 22:var Lt=A[1],Je=Lt[3];return Y(k40,D,Je,O6(Lt));case 23:var E1=A[1],on=E1[3],vn=E1[1],Zc=[0,[0,m40,j0(E1[2])],0];return Y(d40,D,on,[0,[0,h40,j0(vn)],Zc]);case 24:var Ke=A[1],Ye=Ke[4],ln=Ke[3],pn=Ke[2],he=Ke[1];if(ln)var kn=ln[1],Hs=N1(S2(kn[2][2]),Ye),xs=Hs,Qs=Ux(kn);else var xs=Ye,Qs=M2(0);var Ya=[0,[0,g40,Tx(Gs,pn)],[0,[0,y40,Qs],0]];return Y(b40,D,xs,[0,[0,_40,tx(he)],Ya]);case 25:var za=A[1],ev=za[2],tv=[0,[0,w40,jr(Ks,za[1])],0];return Y(T40,D,S2(ev),tv);case 26:var nv=A[1],Zs=nv[1],_3=nv[3],b3=Zs[4],rs=N1(S2(Zs[3][2][2]),b3);return Y(S40,D,rs,Fx(Ka(Zs),[0,[0,E40,!!_3],0]));case 27:var Va=A[1],uv=Va[1],w3=uv[3],es=[0,[0,A40,!!Va[3]],0];return Y(I40,D,w3,Fx(O6(uv),es));case 28:var iv=A[1],fv=iv[2];return Y(P40,D,fv,[0,[0,j40,jr(tx,iv[1])],0]);case 29:return Y(N40,D,A[1][1],0);case 30:var xa=A[1],T3=xa[3],E3=xa[1],S3=[0,[0,b50,M0(xa[2])],0];return Y(T50,D,T3,[0,[0,w50,tx(E3)],S3]);case 31:return M0([0,D,A[1]]);case 32:return Y(O40,D,A[1][1],0);case 33:var mn=A[1],A3=mn[3],I3=mn[1],hn=[0,[0,C40,hx(mn[2])],0];return Y(R40,D,A3,[0,[0,D40,tx(I3)],hn]);case 34:var ts=A[1],j3=ts[3],P3=ts[1],Ga=[0,[0,F40,_r(ts[2][2])],0];return Y(M40,D,j3,[0,[0,L40,tx(P3)],Ga]);case 35:var Wa=A[1],$a=Wa[3],cv=Wa[2],Mt=Wa[1];if(7<=Mt)return Y(q40,D,$a,[0,[0,U40,tx(cv)],0]);switch(Mt){case 0:var de=B40;break;case 1:var de=X40;break;case 2:var de=J40;break;case 3:var de=K40;break;case 4:var de=Y40;break;case 5:var de=z40;break;case 6:var de=V40;break;default:var de=gx(G40)}return Y(Q40,D,$a,[0,[0,H40,Qx(de)],[0,[0,$40,!0],[0,[0,W40,tx(cv)],0]]]);case 36:var te=A[1],pt=te[4],ra=te[3],N3=te[2],ea=te[1]?Z40:xk0;return Y(nk0,D,pt,[0,[0,tk0,Qx(ea)],[0,[0,ek0,tx(N3)],[0,[0,rk0,!!ra],0]]]);default:var ns=A[1],ye=ns[2],sv=[0,[0,uk0,!!ns[3]],0];return Y(fk0,D,ye,[0,[0,ik0,Tx(tx,ns[1])],sv])}}function Mx(X){var A=X[2];return Y(Mk0,X[1],A[2],[0,[0,Lk0,Qx(A[1])],[0,[0,Fk0,_1],[0,[0,Rk0,!1],0]]])}function b2(X,A){var D=A[1][2],u0=D[2],k0=D[1],C0=[0,[0,Uk0,!!A[3]],0];return Y(Xk0,X,u0,[0,[0,Bk0,Qx(k0)],[0,[0,qk0,d3(hx,A[2])],C0]])}function Ux(X){return jr(Go,X[2][1])}function c1(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,Jk0,jr(_x,A[2])],0];return Y(Yk0,k0,D,[0,[0,Kk0,Tx(tx,u0)],C0])}function Rr(X){var A=X[2],D=A[3],u0=A[1],k0=X[1],C0=[0,[0,zk0,Vx(A[2])],0];return Y(Gk0,k0,D,[0,[0,Vk0,Tx(kx,u0)],C0])}function U2(X){return M2(xn(function(A){var D=A[2];return g(0,D[3],A[1],[0,D[1]],D[2][2])},X))}function g(X,A,D,u0,k0){if(u0)var C0=u0[1],nx=C0[0]===0?Tx(j0,[0,C0[1]]):Tx(Ex,[0,C0[1]]),Sx=nx;else var Sx=Tx(j0,0);return Y(S80,D,X,[0,[0,E80,Sx],[0,[0,T80,_r(k0)],[0,[0,w80,!!A],0]]])}function G(X){var A=X[2],D=A[4],u0=A[3],k0=A[2],C0=A[1],nx=X[1];return g(D,u0,nx,eh(function(Sx){return[0,Sx]},C0),k0)}function H(X){return X?R80:F80}function l0(X){if(!X)return M2(0);var A=X[1];if(A[0]===0)return jr(y3,A[1]);var D=A[1],u0=D[2],k0=D[1];return M2(u0?[0,Y(M80,k0,0,[0,[0,L80,j0(u0[1])],0]),0]:0)}function J(X){var A=X[2],D=A[2],u0=X[1];return Y(sm0,u0,D,[0,[0,cm0,tx(A[1])],0])}function s0(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,am0,Tx(cn,A[2])],0];return Y(vm0,u0,0,[0,[0,om0,j0(D)],k0])}function _0(X){switch(X[0]){case 0:var A=X[1],D=A[2],u0=D[6],k0=D[2],C0=D[5],nx=D[4],Sx=D[3],Px=D[1],qx=A[1];switch(k0[0]){case 0:var pr=u0,ur=0,Tr=Ex(k0[1]);break;case 1:var pr=u0,ur=0,Tr=Gx(k0[1]);break;case 2:var pr=u0,ur=0,Tr=$0(k0[1]);break;case 3:var pr=u0,ur=0,Tr=j0(k0[1]);break;case 4:var pr=u0,ur=0,Tr=Mx(k0[1]);break;default:var lr=k0[1][2],tr=lr[1],br=N1(lr[2],u0),pr=br,ur=1,Tr=tx(tr)}switch(Px){case 0:var Br=km0;break;case 1:var Br=mm0;break;case 2:var Br=hm0;break;default:var Br=dm0}var Or=[0,[0,bm0,Qx(Br)],[0,[0,_m0,!!nx],[0,[0,gm0,!!ur],[0,[0,ym0,jr(J,C0)],0]]]];return Y(Em0,qx,pr,[0,[0,Tm0,Tr],[0,[0,wm0,cr(Sx)],Or]]);case 1:var Wr=X[1],Pr=Wr[2],t2=Pr[7],p2=Pr[6],o2=Pr[2],n2=Pr[1],c2=Pr[5],w2=Pr[4],k2=Pr[3],v2=Wr[1];switch(n2[0]){case 0:var sr=t2,Xr=0,Cr=Ex(n2[1]);break;case 1:var sr=t2,Xr=0,Cr=Gx(n2[1]);break;case 2:var sr=t2,Xr=0,Cr=$0(n2[1]);break;case 3:var sr=t2,Xr=0,Cr=j0(n2[1]);break;case 4:var q2=gx(Rm0),sr=q2[3],Xr=q2[2],Cr=q2[1];break;default:var s1=n2[1][2],O1=s1[1],xe=N1(s1[2],t2),sr=xe,Xr=1,Cr=tx(O1)}if(typeof o2=="number")if(o2)var Jr=0,bx=0;else var Jr=1,bx=0;else var Jr=0,bx=[0,o2[1]];var le=Jr?[0,[0,Fm0,!!Jr],0]:0,pe=p2===0?0:[0,[0,Lm0,jr(J,p2)],0],Re=Fx(pe,le),b1=[0,[0,qm0,!!Xr],[0,[0,Um0,!!w2],[0,[0,Mm0,Tx(st,c2)],0]]],$r=[0,[0,Bm0,d3(hx,k2)],b1];return Y(Km0,v2,sr,Fx([0,[0,Jm0,Cr],[0,[0,Xm0,Tx(tx,bx)],$r]],Re));default:var re=X[1],x1=re[2],C1=x1[6],w1=x1[2],lt=x1[7],Rt=x1[5],Fe=x1[4],D1=x1[3],Le=x1[1],ke=re[1];if(typeof w1=="number")if(w1)var ee=0,a1=0;else var ee=1,a1=0;else var ee=0,a1=[0,w1[1]];var Me=ee?[0,[0,Sm0,!!ee],0]:0,V1=C1===0?0:[0,[0,Am0,jr(J,C1)],0],Ft=Fx(V1,Me),Ue=[0,[0,Pm0,!1],[0,[0,jm0,!!Fe],[0,[0,Im0,Tx(st,Rt)],0]]],qe=[0,[0,Nm0,d3(hx,D1)],Ue],r1=[0,[0,Om0,Tx(tx,a1)],qe];return Y(Dm0,ke,lt,Fx([0,[0,Cm0,Mx(Le)],r1],Ft))}}function y0(X){var A=X[2],D=A[3],u0=A[2],k0=A[1],C0=X[1],nx=A[4],Sx=k0[0]===0?j0(k0[1]):Ex(k0[1]);if(D)var Px=[0,[0,Zm0,tx(D[1])],0],qx=Y(rh0,C0,0,[0,[0,xh0,kx(u0)],Px]);else var qx=kx(u0);return Y(uh0,C0,0,[0,[0,nh0,Sx],[0,[0,th0,qx],[0,[0,eh0,!!nx],0]]])}function J0(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[4],C0=u0[1],nx=[0,[0,wh0,!!u0[2]],[0,[0,bh0,!!u0[3]],0]],Sx=[0,[0,Th0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,yh0,qr(Xr[2])],0];return Y(_h0,Jr,0,[0,[0,gh0,j0(Cr)],bx])},C0)],nx];return Y(Eh0,D,S2(k0),Sx);case 1:var Px=A[1],qx=Px[4],lr=Px[1],tr=[0,[0,Ah0,!!Px[2]],[0,[0,Sh0,!!Px[3]],0]],br=[0,[0,Ih0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,mh0,Gx(Xr[2])],0];return Y(dh0,Jr,0,[0,[0,hh0,j0(Cr)],bx])},lr)],tr];return Y(jh0,D,S2(qx),br);case 2:var pr=A[1],ur=pr[1],Tr=pr[4],Br=pr[3],Or=pr[2];if(ur[0]===0)var Wr=ur[1],t2=xn(function(sr){var Xr=sr[1];return Y(kh0,Xr,0,[0,[0,ph0,j0(sr[2][1])],0])},Wr);else var Pr=ur[1],t2=xn(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,oh0,Ex(Xr[2])],0];return Y(lh0,Jr,0,[0,[0,vh0,j0(Cr)],bx])},Pr);var p2=[0,[0,Oh0,M2(t2)],[0,[0,Nh0,!!Or],[0,[0,Ph0,!!Br],0]]];return Y(Ch0,D,S2(Tr),p2);case 3:var o2=A[1],n2=o2[3],c2=o2[1],w2=[0,[0,Dh0,!!o2[2]],0],k2=[0,[0,Rh0,jr(function(sr){var Xr=sr[1];return Y(ah0,Xr,0,[0,[0,sh0,j0(sr[2][1])],0])},c2)],w2];return Y(Fh0,D,S2(n2),k2);default:var v2=A[1],q2=v2[4],s1=v2[1],O1=[0,[0,Mh0,!!v2[2]],[0,[0,Lh0,!!v2[3]],0]],xe=[0,[0,Uh0,jr(function(sr){var Xr=sr[2],Cr=Xr[1],Jr=sr[1],bx=[0,[0,ih0,$0(Xr[2])],0];return Y(ch0,Jr,0,[0,[0,fh0,j0(Cr)],bx])},s1)],O1];return Y(qh0,D,S2(q2),xe)}}function Rx(X){var A=X[2],D=A[1],u0=A[3],k0=A[2],C0=X[1],nx=D[0]===0?j0(D[1]):zs(D[1]);return Y(Hh0,C0,u0,[0,[0,$h0,nx],[0,[0,Wh0,Tx(cn,k0)],0]])}function kx(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=A[1],k0=u0[3],C0=u0[1],nx=[0,[0,Qh0,d3(hx,u0[2])],0],Sx=[0,[0,Zh0,jr(un,C0)],nx];return Y(xd0,D,S2(k0),Sx);case 1:var Px=A[1],qx=Px[3],lr=Px[1],tr=[0,[0,rd0,d3(hx,Px[2])],0],br=[0,[0,ed0,jr(Fr,lr)],tr];return Y(td0,D,S2(qx),br);case 2:return b2(D,A[1]);default:return tx(A[1])}}function Jx(X){var A=X[2],D=A[2],u0=A[1],k0=X[1];if(!D)return kx(u0);var C0=[0,[0,nd0,tx(D[1])],0];return Y(id0,k0,0,[0,[0,ud0,kx(u0)],C0])}function gr(X){var A=X[2],D=A[2],u0=X[1];return Y(sd0,u0,D,[0,[0,cd0,uo],[0,[0,fd0,hx(A[1])],0]])}function Zx(X){var A=X[2],D=A[3],u0=A[2],k0=A[1];if(D){var C0=D[1],nx=C0[2],Sx=nx[2],Px=C0[1],qx=Y(od0,Px,Sx,[0,[0,ad0,kx(nx[1])],0]),lr=vx([0,qx,th(Jx,u0)]),tr=k0?[0,gr(k0[1]),lr]:lr;return M2(tr)}var br=xn(Jx,u0),pr=k0?[0,gr(k0[1]),br]:br;return M2(pr)}function er(X,A){var D=A[2];return Y(ld0,X,D,[0,[0,vd0,kx(A[1])],0])}function Fr(X){switch(X[0]){case 0:var A=X[1],D=A[2],u0=D[2],k0=D[1],C0=A[1];if(!u0)return kx(k0);var nx=[0,[0,pd0,tx(u0[1])],0];return Y(md0,C0,0,[0,[0,kd0,kx(k0)],nx]);case 1:var Sx=X[1];return er(Sx[1],Sx[2]);default:return _1}}function hx(X){var A=X[1];return Y(Ig0,A,0,[0,[0,Ag0,_r(X[2])],0])}function z1(X){switch(X[0]){case 0:return _1;case 1:return hx(X[1]);default:var A=X[1],D=A[2],u0=A[1];return Y(Pg0,u0,0,[0,[0,jg0,Da([0,D[1],D[2]])],0])}}function Ks(X){if(X[0]===0){var A=X[1],D=A[2],u0=A[1];switch(D[0]){case 0:var k0=D[3],C0=D[1],ur=0,Tr=k0,Br=0,Or=hd0,Wr=tx(D[2]),Pr=C0;break;case 1:var nx=D[2],Sx=D[1],ur=0,Tr=0,Br=1,Or=dd0,Wr=cr([0,nx[1],nx[2]]),Pr=Sx;break;case 2:var Px=D[2],qx=D[3],lr=D[1],ur=qx,Tr=0,Br=0,Or=yd0,Wr=cr([0,Px[1],Px[2]]),Pr=lr;break;default:var tr=D[2],br=D[3],pr=D[1],ur=br,Tr=0,Br=0,Or=gd0,Wr=cr([0,tr[1],tr[2]]),Pr=pr}switch(Pr[0]){case 0:var c2=ur,w2=0,k2=Ex(Pr[1]);break;case 1:var c2=ur,w2=0,k2=Gx(Pr[1]);break;case 2:var c2=ur,w2=0,k2=$0(Pr[1]);break;case 3:var c2=ur,w2=0,k2=j0(Pr[1]);break;case 4:var t2=gx(_d0),c2=t2[3],w2=t2[2],k2=t2[1];break;default:var p2=Pr[1][2],o2=p2[1],n2=N1(p2[2],ur),c2=n2,w2=1,k2=tx(o2)}return Y(Id0,u0,c2,[0,[0,Ad0,k2],[0,[0,Sd0,Wr],[0,[0,Ed0,Qx(Or)],[0,[0,Td0,!!Br],[0,[0,wd0,!!Tr],[0,[0,bd0,!!w2],0]]]]]])}var v2=X[1],q2=v2[2],s1=q2[2],O1=v2[1];return Y(Pd0,O1,s1,[0,[0,jd0,tx(q2[1])],0])}function un(X){if(X[0]!==0){var A=X[1];return er(A[1],A[2])}var D=X[1],u0=D[2],k0=u0[3],C0=u0[2],nx=u0[1],Sx=u0[4],Px=D[1];switch(nx[0]){case 0:var tr=0,br=0,pr=Ex(nx[1]);break;case 1:var tr=0,br=0,pr=Gx(nx[1]);break;case 2:var tr=0,br=0,pr=$0(nx[1]);break;case 3:var tr=0,br=0,pr=j0(nx[1]);break;default:var qx=nx[1][2],lr=qx[2],tr=lr,br=1,pr=tx(qx[1])}if(k0)var ur=k0[1],Tr=Zr(C0[1],ur[1]),Br=[0,[0,Nd0,tx(ur)],0],Or=Y(Cd0,Tr,0,[0,[0,Od0,kx(C0)],Br]);else var Or=kx(C0);return Y(qd0,Px,tr,[0,[0,Ud0,pr],[0,[0,Md0,Or],[0,[0,Ld0,$7],[0,[0,Fd0,!1],[0,[0,Rd0,!!Sx],[0,[0,Dd0,!!br],0]]]]]])}function fn(X){var A=X[2],D=A[2],u0=X[1];return Y(Xd0,u0,D,[0,[0,Bd0,tx(A[1])],0])}function Go(X){return X[0]===0?tx(X[1]):fn(X[1])}function Wo(X){switch(X[0]){case 0:return tx(X[1]);case 1:return fn(X[1]);default:return _1}}function $o(X){var A=X[2],D=A[1],u0=A[2],k0=X[1];return Y(_50,k0,0,[0,[0,g50,Vc([0,[0,d50,Qx(D[1])],[0,[0,h50,Qx(D[2])],0]])],[0,[0,y50,!!u0],0]])}function Na(X){switch(X){case 0:return E50;case 1:return S50;default:return A50}}function Ho(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,N50,Tx(tx,A[2])],0];return Y(C50,u0,0,[0,[0,O50,kx(D)],k0])}function st(X){var A=X[2],D=A[2],u0=X[1];switch(A[1]){case 0:var k0=D50;break;case 1:var k0=R50;break;case 2:var k0=F50;break;case 3:var k0=L50;break;case 4:var k0=M50;break;default:var k0=U50}return Y(B50,u0,D,[0,[0,q50,Qx(k0)],0])}function Ys(X,A,D,u0){return Y(Z90,X,A,[0,[0,Q90,Qx(D)],[0,[0,H90,_r(u0)],0]])}function Oa(X,A){var D=A[3],u0=A[2];switch(A[4]){case 0:var k0=G90;break;case 1:var k0=W90;break;default:var k0=$90}return Ys(X,D,k0,u0)}function Ca(X){var A=X[2],D=A[1],u0=A[3],k0=A[2],C0=X[1],nx=D[0]===0?j0(D[1]):zs(D[1]);return Y(P90,C0,u0,[0,[0,j90,nx],[0,[0,I90,Tx(cn,k0)],0]])}function at(X,A){var D=A[2],u0=D[4],k0=D[3],C0=D[2],nx=D[1],Sx=A[1],Px=u1(function(Or,Wr){var Pr=Or[4],t2=Or[3],p2=Or[2],o2=Or[1];switch(Wr[0]){case 0:var n2=Wr[1],c2=n2[2],w2=c2[2],k2=c2[1],v2=c2[8],q2=c2[7],s1=c2[6],O1=c2[5],xe=c2[4],sr=c2[3],Xr=n2[1];switch(k2[0]){case 0:var Cr=Ex(k2[1]);break;case 1:var Cr=Gx(k2[1]);break;case 2:var Cr=$0(k2[1]);break;case 3:var Cr=j0(k2[1]);break;case 4:var Cr=gx(Py0);break;default:var Cr=gx(Ny0)}switch(w2[0]){case 0:var le=Oy0,pe=_r(w2[1]);break;case 1:var Jr=w2[1],le=Cy0,pe=Gc([0,Jr[1],Jr[2]]);break;default:var bx=w2[1],le=Dy0,pe=Gc([0,bx[1],bx[2]])}return[0,[0,Y(Jy0,Xr,v2,[0,[0,Xy0,Cr],[0,[0,By0,pe],[0,[0,qy0,!!s1],[0,[0,Uy0,!!sr],[0,[0,My0,!!xe],[0,[0,Ly0,!!O1],[0,[0,Fy0,Tx(st,q2)],[0,[0,Ry0,Qx(le)],0]]]]]]]]),o2],p2,t2,Pr];case 1:var Re=Wr[1],b1=Re[2],$r=b1[2],re=Re[1];return[0,[0,Y(Yy0,re,$r,[0,[0,Ky0,_r(b1[1])],0]),o2],p2,t2,Pr];case 2:var x1=Wr[1],C1=x1[2],w1=C1[6],lt=C1[4],Rt=C1[3],Fe=C1[2],D1=C1[1],Le=x1[1],ke=[0,[0,Vy0,!!lt],[0,[0,zy0,Tx(st,C1[5])],0]],ee=[0,[0,Gy0,_r(Rt)],ke],a1=[0,[0,Wy0,_r(Fe)],ee];return[0,o2,[0,Y(Hy0,Le,w1,[0,[0,$y0,Tx(j0,D1)],a1]),p2],t2,Pr];case 3:var Me=Wr[1],V1=Me[2],Ft=V1[3],Ue=Me[1],qe=[0,[0,Qy0,!!V1[2]],0];return[0,o2,p2,[0,Y(x90,Ue,Ft,[0,[0,Zy0,Gc(V1[1])],qe]),t2],Pr];case 4:var r1=Wr[1],T1=r1[2],Be=T1[6],$c=T1[5],Hc=T1[4],Qc=T1[3],me=T1[1],Xe=r1[1],Lt=[0,[0,a90,!!Qc],[0,[0,s90,!!Hc],[0,[0,c90,!!$c],[0,[0,f90,_r(T1[2])],0]]]];return[0,o2,p2,t2,[0,Y(v90,Xe,Be,[0,[0,o90,j0(me)],Lt]),Pr]];default:var Je=Wr[1],E1=Je[2],on=E1[6],vn=E1[4],Zc=E1[3],Ke=E1[2],Ye=E1[1],ln=Je[1],pn=0;switch(E1[5]){case 0:var he="PlusOptional";break;case 1:var he="MinusOptional";break;case 2:var he="Optional";break;default:var he=_1}var kn=[0,[0,e90,Tx(st,vn)],[0,[0,r90,he],pn]],Hs=[0,[0,t90,_r(Zc)],kn],xs=[0,[0,n90,_r(Ke)],Hs];return[0,[0,Y(i90,ln,on,[0,[0,u90,Wc(Ye)],xs]),o2],p2,t2,Pr]}},by0,k0),qx=Px[3],lr=Px[2],tr=Px[1],br=[0,[0,wy0,M2(vx(Px[4]))],0],pr=[0,[0,Ty0,M2(vx(qx))],br],ur=[0,[0,Ey0,M2(vx(lr))],pr],Tr=[0,[0,Ay0,!!nx],[0,[0,Sy0,M2(vx(tr))],ur]],Br=X?[0,[0,Iy0,!!C0],Tr]:Tr;return Y(jy0,Sx,S2(u0),Br)}function Gc(X){var A=X[2],D=A[5],u0=A[3],k0=A[2][2],C0=A[4],nx=k0[3],Sx=k0[2],Px=k0[1],qx=A[1],lr=X[1],tr=N1(S2(k0[4]),C0),br=D===0?fy0:cy0,pr=D===0?0:[0,[0,sy0,Tx(Fa,Px)],0],ur=[0,[0,ay0,Tx(K2,qx)],0],Tr=[0,[0,oy0,Tx(Qo,nx)],ur],Br=u0[0]===0?_r(u0[1]):Da(u0[1]),Or=[0,[0,vy0,Br],Tr];return Y(br,lr,tr,Fx([0,[0,ly0,jr(function(Wr){return Ra(0,Wr)},Sx)],Or],pr))}function _r(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Y(X50,D,A[1],0);case 1:return Y(J50,D,A[1],0);case 2:return Y(K50,D,A[1],0);case 3:return Y(Y50,D,A[1],0);case 4:return Y(z50,D,A[1],0);case 5:return Y(G50,D,A[1],0);case 6:return Y(W50,D,A[1],0);case 7:return Y($50,D,A[1],0);case 8:return Y(H50,D,A[2],0);case 9:return Y(V50,D,A[1],0);case 10:return Y(Sg0,D,A[1],0);case 11:var u0=A[1],k0=u0[2];return Y(Z50,D,k0,[0,[0,Q50,_r(u0[1])],0]);case 12:return Gc([0,D,A[1]]);case 13:var C0=A[1],nx=C0[2],Sx=C0[4],Px=C0[3],qx=C0[1],lr=N1(S2(nx[2][3]),Sx),tr=nx[2],br=tr[2],pr=tr[1],ur=[0,[0,d80,Tx(K2,qx)],0],Tr=[0,[0,y80,ot(Px)],ur],Br=[0,[0,g80,Tx(G,br)],Tr];return Y(b80,D,lr,[0,[0,_80,U2(pr)],Br]);case 14:return at(1,[0,D,A[1]]);case 15:var Or=A[1],Wr=Or[3],Pr=Or[2],t2=[0,[0,l90,at(0,Or[1])],0];return Y(k90,D,Wr,[0,[0,p90,jr(Rx,Pr)],t2]);case 16:var p2=A[1],o2=p2[2];return Y(h90,D,o2,[0,[0,m90,_r(p2[1])],0]);case 17:var n2=A[1],c2=n2[5],w2=n2[3],k2=n2[2],v2=n2[1],q2=[0,[0,d90,_r(n2[4])],0],s1=[0,[0,y90,_r(w2)],q2],O1=[0,[0,g90,_r(k2)],s1];return Y(b90,D,c2,[0,[0,_90,_r(v2)],O1]);case 18:var xe=A[1],sr=xe[2];return Y(T90,D,sr,[0,[0,w90,Wc(xe[1])],0]);case 19:return Ca([0,D,A[1]]);case 20:var Xr=A[1],Cr=Xr[3];return Y(C90,D,Cr,La(Xr));case 21:var Jr=A[1],bx=Jr[1],le=bx[3],pe=[0,[0,D90,!!Jr[2]],0];return Y(R90,D,le,Fx(La(bx),pe));case 22:var Re=A[1],b1=Re[1],$r=Re[2];return Y(L90,D,$r,[0,[0,F90,jr(_r,[0,b1[1],[0,b1[2],b1[3]]])],0]);case 23:var re=A[1],x1=re[1],C1=re[2];return Y(U90,D,C1,[0,[0,M90,jr(_r,[0,x1[1],[0,x1[2],x1[3]]])],0]);case 24:var w1=A[1],lt=w1[2],Rt=w1[3],Fe=w1[1],D1=lt?[0,[0,q90,cn(lt[1])],0]:0;return Y(X90,D,Rt,[0,[0,B90,Vs(Fe)],D1]);case 25:var Le=A[1],ke=Le[2];return Y(V90,D,ke,[0,[0,z90,_r(Le[1])],0]);case 26:return Oa(D,A[1]);case 27:var ee=A[1];return Ys(D,ee[2],xg0,ee[1]);case 28:var a1=A[1],Me=a1[3],V1=a1[1],Ft=[0,[0,rg0,!!a1[2]],0];return Y(tg0,D,Me,[0,[0,eg0,jr(function(me){var Xe=me[2],Lt=me[1];switch(Xe[0]){case 0:return _r(Xe[1]);case 1:var Je=Xe[1],E1=Je[2],on=Je[1],vn=[0,[0,ng0,!!Je[4]],0],Zc=[0,[0,ug0,Tx(st,Je[3])],vn],Ke=[0,[0,ig0,_r(E1)],Zc];return Y(cg0,Lt,0,[0,[0,fg0,j0(on)],Ke]);default:var Ye=Xe[1],ln=Ye[1],pn=[0,[0,sg0,_r(Ye[2])],0];return Y(og0,Lt,0,[0,[0,ag0,Tx(j0,ln)],pn])}},V1)],Ft]);case 29:var Ue=A[1];return Y(pg0,D,Ue[3],[0,[0,lg0,Qx(Ue[1])],[0,[0,vg0,Qx(Ue[2])],0]]);case 30:var qe=A[1];return Y(hg0,D,qe[3],[0,[0,mg0,qe[1]],[0,[0,kg0,Qx(qe[2])],0]]);case 31:var r1=A[1];return Y(gg0,D,r1[3],[0,[0,yg0,_1],[0,[0,dg0,Qx(r1[2])],0]]);case 32:var T1=A[1],Be=T1[1],$c=T1[2],Hc=0,Qc=Be?_g0:bg0;return Y(Eg0,D,$c,[0,[0,Tg0,!!Be],[0,[0,wg0,Qx(Qc)],Hc]]);case 33:return Y(xy0,D,A[1],0);case 34:return Y(ry0,D,A[1],0);default:return Y(ey0,D,A[1],0)}}function Da(X){var A=X[2],D=A[2],u0=A[3],k0=D[2],C0=D[1],nx=X[1];switch(A[1]){case 0:var Sx=_1;break;case 1:var Sx=hv;break;default:var Sx=ov}var Px=[0,[0,ny0,Tx(_r,k0)],[0,[0,ty0,Sx],0]],qx=[0,[0,uy0,j0(C0)],Px];return Y(iy0,nx,S2(u0),qx)}function Ra(X,A){var D=A[2],u0=D[1],k0=A[1],C0=[0,[0,py0,!!D[3]],0],nx=[0,[0,ky0,_r(D[2])],C0];return Y(hy0,k0,X,[0,[0,my0,Tx(j0,u0)],nx])}function Qo(X){var A=X[2];return Ra(A[2],A[1])}function Fa(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,yy0,_r(A[1][2])],[0,[0,dy0,!1],0]];return Y(_y0,u0,D,[0,[0,gy0,Tx(j0,0)],k0])}function zs(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D[0]===0?j0(D[1]):zs(D[1]);return Y(A90,k0,0,[0,[0,S90,C0],[0,[0,E90,j0(u0)],0]])}function La(X){var A=X[1],D=[0,[0,N90,_r(X[2])],0];return[0,[0,O90,_r(A)],D]}function Vs(X){if(X[0]===0)return j0(X[1]);var A=X[1],D=A[2],u0=D[2],k0=A[1],C0=Vs(D[1]);return Y(Y90,k0,0,[0,[0,K90,C0],[0,[0,J90,j0(u0)],0]])}function ot(X){return X[0]===0?_1:Oa(X[1],X[2])}function K2(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Ng0,jr(Wc,A[1])],0];return Y(Og0,u0,S2(D),k0)}function Wc(X){var A=X[2],D=A[1][2],u0=A[5],k0=A[4],C0=A[2],nx=D[2],Sx=D[1],Px=X[1],qx=A[3]?[0,[0,Cg0,!0],0]:0,lr=[0,[0,Dg0,Tx(_r,u0)],0],tr=[0,[0,Rg0,Tx(st,k0)],lr];return Y(Mg0,Px,nx,Fx([0,[0,Lg0,Qx(Sx)],[0,[0,Fg0,d3(hx,C0)],tr]],qx))}function cn(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Ug0,jr(_r,A[1])],0];return Y(qg0,u0,S2(D),k0)}function Gs(X){var A=X[2],D=A[2],u0=X[1],k0=[0,[0,Bg0,jr(Ma,A[1])],0];return Y(Xg0,u0,S2(D),k0)}function Ma(X){if(X[0]===0)return _r(X[1]);var A=X[1],D=A[1],u0=A[2][1];return Ca([0,D,[0,[0,rn(0,[0,D,Jg0])],0,u0]])}function Ws(X){if(X[0]===0){var A=X[1],D=A[2],u0=D[1],k0=D[2],C0=A[1],nx=u0[0]===0?vt(u0[1]):Xa(u0[1]);return Y(s_0,C0,0,[0,[0,c_0,nx],[0,[0,f_0,Tx(xv,k0)],0]])}var Sx=X[1],Px=Sx[2],qx=Px[2],lr=Sx[1];return Y(o_0,lr,qx,[0,[0,a_0,tx(Px[1])],0])}function Ua(X){var A=X[1];return Y(u_0,A,0,[0,[0,n_0,Zo(X[2][1])],0])}function qa(X){var A=X[2],D=A[1],u0=X[1],k0=A[2],C0=D?tx(D[1]):Y(v_0,[0,u0[1],[0,u0[2][1],u0[2][2]+1|0],[0,u0[3][1],u0[3][2]-1|0]],0,0);return Y(p_0,u0,S2(k0),[0,[0,l_0,C0],0])}function Ba(X){var A=X[2],D=X[1];switch(A[0]){case 0:return Lx([0,D,A[1]]);case 1:return zx([0,D,A[1]]);case 2:return qa([0,D,A[1]]);case 3:var u0=A[1],k0=u0[2];return Y(m_0,D,k0,[0,[0,k_0,tx(u0[1])],0]);default:var C0=A[1];return Y(y_0,D,0,[0,[0,d_0,Qx(C0[1])],[0,[0,h_0,Qx(C0[2])],0]])}}function vt(X){var A=X[2];return Y(A_0,X[1],A[2],[0,[0,S_0,Qx(A[1])],0])}function Xa(X){var A=X[2],D=A[1],u0=X[1],k0=[0,[0,w_0,vt(A[2])],0];return Y(E_0,u0,0,[0,[0,T_0,vt(D)],k0])}function Ja(X){var A=X[2],D=A[1],u0=A[2],k0=X[1],C0=D[0]===0?vt(D[1]):Ja(D[1]);return Y(b_0,k0,0,[0,[0,__0,C0],[0,[0,g_0,vt(u0)],0]])}function Zo(X){switch(X[0]){case 0:return vt(X[1]);case 1:return Xa(X[1]);default:return Ja(X[1])}}function xv(X){if(X[0]===0){var A=X[1];return Ex([0,A[1],A[2]])}var D=X[1];return qa([0,D[1],D[2]])}function y3(X){var A=X[2],D=A[2],u0=A[1],k0=X[1],C0=j0(D?D[1]:u0);return Y(P_0,k0,0,[0,[0,j_0,j0(u0)],[0,[0,I_0,C0],0]])}function sn(X){return jr(rv,X)}function rv(X){var A=X[2],D=X[1];if(A[1])var u0=A[2],k0=U_0;else var u0=A[2],k0=q_0;return Y(k0,D,0,[0,[0,B_0,Qx(u0)],0])}function an(X){var A=X[2],D=A[1],u0=A[2],k0=X[1];if(D)var C0=[0,[0,X_0,tx(D[1])],0],nx=J_0;else var C0=0,nx=K_0;return Y(nx,k0,u0,C0)}function Ka(X){var A=X[2],D=X[1],u0=[0,[0,Y_0,Ux(X[3])],0],k0=[0,[0,z_0,Tx(Gs,A)],u0];return[0,[0,V_0,tx(D)],k0]}function O6(X){var A=X[2],D=X[1];switch(A[0]){case 0:var u0=0,k0=j0(A[1]);break;case 1:var u0=0,k0=Mx(A[1]);break;default:var u0=1,k0=tx(A[1])}return[0,[0,$_0,tx(D)],[0,[0,W_0,k0],[0,[0,G_0,!!u0],0]]]}var $s=Hx[2],C6=$s[2],D6=$s[4],Xd=$s[3],Jd=Hx[1],Kd=jx($s[1]),R6=[0,[0,Vl0,Kd],[0,[0,zl0,sn(D6)],0]];if(C6)var F6=C6[1],L6=Fx(R6,[0,[0,$l0,Y(Wl0,F6[1],0,[0,[0,Gl0,Qx(F6[2])],0])],0]);else var L6=R6;var g3=Y(Hl0,Jd,Xd,L6),Yd=Fx(g0,NK[1]);if(g3.errors=jr(function(X){var A=X[1],D=[0,[0,H_0,Qx($b0(X[2]))],0];return Vc([0,[0,Q_0,CK(A)],D])},Yd),y){var zd=P[1];g3[hR]=M2(th(function(X){var A=X[2],D=X[1],u0=X[3],k0=[0,[0,ao0,Qx(HN(A))],0],C0=[0,ud(Z0,D[3]),0],nx=[0,[0,oo0,M2([0,ud(Z0,D[2]),C0])],k0],Sx=[0,[0,po0,Vc([0,[0,lo0,D[3][1]],[0,[0,vo0,D[3][2]],0]])],0],Px=[0,[0,do0,Vc([0,[0,ho0,Vc([0,[0,mo0,D[2][1]],[0,[0,ko0,D[2][2]],0]])],Sx])],nx];switch(u0){case 0:var qx=yo0;break;case 1:var qx=go0;break;case 2:var qx=_o0;break;case 3:var qx=bo0;break;case 4:var qx=wo0;break;default:var qx=To0}return Vc([0,[0,So0,Qx(wB(A))],[0,[0,Eo0,Qx(qx)],Px]])},zd))}return g3}if(typeof AD<"u")var DK=AD;else{var RK={};Js.flow=RK;var DK=RK}DK.parse=FY(function(x,r){try{var e=CT0(x,r);return e}catch(u){var t=O2(u);return t[1]===CC?PK(t[2]):PK(new NT0(Qx(Bx(pb0,sh(t)))))}}),fN(R)})(globalThis)});var _j0={};FK(_j0,{parsers:()=>CD});var CD={};FK(CD,{flow:()=>gj0});var eY=zI0(MK(),1);function GI0(a0,ox){let $x=new SyntaxError(a0+" ("+ox.loc.start.line+":"+ox.loc.start.column+")");return Object.assign($x,ox)}var UK=GI0;var WI0=(a0,ox,$x)=>{if(!(a0&&ox==null))return Array.isArray(ox)||typeof ox=="string"?ox[$x<0?ox.length+$x:$x]:ox.at($x)},ID=WI0;function $I0(a0){return Array.isArray(a0)&&a0.length>0}var qK=$I0;function mt(a0){var dr,nr,Er;let ox=((dr=a0.range)==null?void 0:dr[0])??a0.start,$x=(Er=((nr=a0.declaration)==null?void 0:nr.decorators)??a0.decorators)==null?void 0:Er[0];return $x?Math.min(mt($x),ox):ox}function cs(a0){var ox;return((ox=a0.range)==null?void 0:ox[1])??a0.end}function HI0(a0){let ox=new Set(a0);return $x=>ox.has($x==null?void 0:$x.type)}var BK=HI0;var QI0=BK(["Block","CommentBlock","MultiLine"]),Rp=QI0;function ZI0(a0){let ox=`*${a0.value}*`.split(` -`);return ox.length>1&&ox.every($x=>$x.trimStart()[0]==="*")}var jD=ZI0;function xj0(a0){return Rp(a0)&&a0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a0.value)}var XK=xj0;var Fp=null;function Lp(a0){if(Fp!==null&&typeof Fp.property){let ox=Fp;return Fp=Lp.prototype=null,ox}return Fp=Lp.prototype=a0??Object.create(null),new Lp}var rj0=10;for(let a0=0;a0<=rj0;a0++)Lp();function PD(a0){return Lp(a0)}function ej0(a0,ox="type"){PD(a0);function $x(dr){let nr=dr[ox],Er=a0[nr];if(!Array.isArray(Er))throw Object.assign(new Error(`Missing visitor keys for '${nr}'.`),{node:dr});return Er}return $x}var JK=ej0;var KK={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var tj0=JK(KK),YK=tj0;function ND(a0,ox){if(!(a0!==null&&typeof a0=="object"))return a0;if(Array.isArray(a0)){for(let dr=0;dr{var Mr;(Mr=Er.leadingComments)!=null&&Mr.some(XK)&&nr.add(mt(Er))}),a0=p5(a0,Er=>{if(Er.type==="ParenthesizedExpression"){let{expression:Mr}=Er;if(Mr.type==="TypeCastExpression")return Mr.range=[...Er.range],Mr;let Qe=mt(Er);if(!nr.has(Qe))return Mr.extra={...Mr.extra,parenthesized:!0},Mr}})}if(a0=p5(a0,nr=>{var Er;switch(nr.type){case"LogicalExpression":if(zK(nr))return OD(nr);break;case"VariableDeclaration":{let Mr=ID(!1,nr.declarations,-1);Mr!=null&&Mr.init&&dr[cs(Mr)]!==";"&&(nr.range=[mt(nr),cs(Mr)]);break}case"TSParenthesizedType":return nr.typeAnnotation;case"TSTypeParameter":if(typeof nr.name=="string"){let Mr=mt(nr);nr.name={type:"Identifier",name:nr.name,range:[Mr,Mr+nr.name.length]}}break;case"TopicReference":a0.extra={...a0.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":if($x==="meriyah"&&((Er=nr.exported)==null?void 0:Er.type)==="Identifier"){let{exported:Mr}=nr,Qe=dr.slice(mt(Mr),cs(Mr));(Qe.startsWith('"')||Qe.startsWith("'"))&&(nr.exported={...nr.exported,type:"Literal",value:nr.exported.name,raw:Qe})}break;case"TSUnionType":case"TSIntersectionType":if(nr.types.length===1)return nr.types[0];break}}),qK(a0.comments)){let nr=ID(!1,a0.comments,-1);for(let Er=a0.comments.length-2;Er>=0;Er--){let Mr=a0.comments[Er];cs(Mr)===mt(nr)&&Rp(Mr)&&Rp(nr)&&jD(Mr)&&jD(nr)&&(a0.comments.splice(Er+1,1),Mr.value+="*//*"+nr.value,Mr.range=[mt(Mr),cs(nr)]),nr=Mr}}return a0.type==="Program"&&(a0.range=[0,dr.length]),a0}function zK(a0){return a0.type==="LogicalExpression"&&a0.right.type==="LogicalExpression"&&a0.operator===a0.right.operator}function OD(a0){return zK(a0)?OD({type:"LogicalExpression",operator:a0.operator,left:OD({type:"LogicalExpression",operator:a0.operator,left:a0.left,right:a0.right.left,range:[mt(a0.left),cs(a0.right.left)]}),right:a0.right.right,range:[mt(a0),cs(a0)]}):a0}var VK=nj0;var uj0=(a0,ox,$x,dr)=>{if(!(a0&&ox==null))return ox.replaceAll?ox.replaceAll($x,dr):$x.global?ox.replace($x,dr):ox.split($x).join(dr)},L3=uj0;var ij0=/\*\/$/,fj0=/^\/\*\*?/,cj0=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,sj0=/(^|\s+)\/\/([^\n\r]*)/g,GK=/^(\r?\n)+/,aj0=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,WK=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,oj0=/(\r?\n|^) *\* ?/g,vj0=[];function $K(a0){let ox=a0.match(cj0);return ox?ox[0].trimStart():""}function HK(a0){let ox=` -`;a0=L3(!1,a0.replace(fj0,"").replace(ij0,""),oj0,"$1");let $x="";for(;$x!==a0;)$x=a0,a0=L3(!1,a0,aj0,`${ox}$1 $2${ox}`);a0=a0.replace(GK,"").trimEnd();let dr=Object.create(null),nr=L3(!1,a0,WK,"").replace(GK,"").trimEnd(),Er;for(;Er=WK.exec(a0);){let Mr=L3(!1,Er[2],sj0,"");if(typeof dr[Er[1]]=="string"||Array.isArray(dr[Er[1]])){let Qe=dr[Er[1]];dr[Er[1]]=[...vj0,...Array.isArray(Qe)?Qe:[Qe],Mr]}else dr[Er[1]]=Mr}return{comments:nr,pragmas:dr}}function lj0(a0){if(!a0.startsWith("#!"))return"";let ox=a0.indexOf(` -`);return ox===-1?a0:a0.slice(0,ox)}var QK=lj0;function pj0(a0){let ox=QK(a0);ox&&(a0=a0.slice(ox.length+1));let $x=$K(a0),{pragmas:dr,comments:nr}=HK($x);return{shebang:ox,text:a0,pragmas:dr,comments:nr}}function ZK(a0){let{pragmas:ox}=pj0(a0);return Object.prototype.hasOwnProperty.call(ox,"prettier")||Object.prototype.hasOwnProperty.call(ox,"format")}function kj0(a0){return a0=typeof a0=="function"?{parse:a0}:a0,{astFormat:"estree",hasPragma:ZK,locStart:mt,locEnd:cs,...a0}}var xY=kj0;function mj0(a0){return a0.charAt(0)==="#"&&a0.charAt(1)==="!"?"//"+a0.slice(2):a0}var rY=mj0;var hj0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function dj0(a0){let{message:ox,loc:{start:$x,end:dr}}=a0;return UK(ox,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:dr.line,column:dr.column+1}},cause:a0})}function yj0(a0){let ox=eY.default.parse(rY(a0),hj0),[$x]=ox.errors;if($x)throw dj0($x);return VK(ox,{text:a0})}var gj0=xY(yj0);return VI0(_j0);}); \ No newline at end of file + -- too many open files. Try running with OCAMLRUNPARAM=b=2)`].slice(),YW=[0,[11,JE,[2,0,[12,10,0]]],MR],zW=[0],KW="Fatal error: out of memory in uncaught exception handler",JW=[0,[11,JE,[2,0,[12,10,0]]],MR],GW=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s +`];zN(MO,function(x,r){try{try{var e=r?zW:hM(0);try{$N(O)}catch{}try{var t=B6(x);d(vj(YW),t),kj(pn,e);var u=lK(0);if(u<0){var i=i5(u);UM(N2(XW,i)[1+i])}var c=an(pn),v=c}catch(b){var a=U2(b),l=B6(x);d(vj(JW),l),kj(pn,e);var m=B6(a);d(vj(GW),m),kj(pn,hM(0));var v=an(pn)}var h=v}catch(b){var T=U2(b);if(T!==GN)throw W0(T,0);var h=UM(KW)}return h}catch{return 0}});var WW=[n2,"Stdlib.Fun.Finally_raised",as(0)],VW="Fun.Finally_raised: ";mj(function(x){return x[1]===WW?[0,qx(VW,B6(x[2]))]:0});var $W="Digest.BLAKE2: wrong hash size";function hj(x){var r=x[1]<1?1:0,e=r||(64i0){var a0=s0;continue}var d0=i0}else var d0=g0;var w0=d0;break}else var w0=$;var M0=w0-$|0;return 0<=M0?H3(x,[0,aV,M0+t0|0,sV]):dv(x,[0,vV,w0+H|0,oV],x[6]);case 3:var C0=e[2],D0=e[1];if(x[8]<(x[6]-x[9]|0)){var I0=V3(x[2]);if(I0){var j0=I0[1],y0=j0[2],Y0=j0[1];x[9]=Y0-1>>>0&&gq(x,y0)}else m5(x)}var L=x[9]-D0|0,N0=C0===1?1:x[9]=x[14]);)Sq(x,O);return x[13]=dq,wq(x),r&&m5(x),x[12]=1,x[13]=1,xj(x[28]),gj(x[1]),L6(x[2]),L6(x[3]),L6(x[4]),L6(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Eq(x,0,3)}function _j(x,r,e){var t=x[14]=e)return H0(x[17],Nq,0,e);H0(x[17],Nq,0,80);var e=e-80|0}}function EV(x){return x[1]===dj?qx(dV,qx(x[2],hV)):yV}function SV(x){return x[1]===dj?qx(wV,qx(x[2],gV)):_V}function AV(x){return 0}function PV(x){return 0}function Tj(x,r,e,t,u){var i=rq(O),c=[0,hq,bV,0];rj(c,i);var v=R6(O);gj(v),mv([0,1,c],v);var a=78,l=R6(O),m=R6(O),h=R6(O);return[0,v,R6(O),h,m,l,a,10,68,a,0,1,1,1,1,mV,TV,x,r,e,t,u,0,0,EV,SV,AV,PV,i]}function jq(x,r){var e=Tj(x,r,function(t){return 0},function(t){return 0},function(t){return 0});return e[19]=function(t){return bj(e,O)},e[20]=function(t){return Z3(e,t)},e[21]=function(t){return Z3(e,t)},e}function Cq(x){return jq(function(r,e,t){return qM(x,r,e,t)},function(r){return an(x)})}function Ej(x){return jq(function(r,e,t){return tj(x,r,e,t)},function(r){return 0})}var Sj=xI;function Oq(x){return $r(Sj)}var Dq=Oq(O),IV=Cq(MM),NV=Cq(pn),jV=Ej(Dq),Fq=ls(0,Oq);M6(Fq,Dq),M6(ls(0,function(x){return Ej(hv(Fq))}),jV);function Rq(x,r,e,t){return tj(hv(x),r,e,t)}function Lq(x,r,e){var t=hv(r),u=t[2];return qM(x,G2(t),0,u),an(x),t[2]=0,0}var Mq=ls(0,function(x){return $r(Sj)}),qq=ls(0,function(x){return $r(Sj)}),Uq=ls(0,function(x){var r=Tj(function(e,t,u){return Rq(Mq,e,t,u)},function(e){return Lq(MM,Mq,O)},function(e){return 0},function(e){return 0},function(e){return 0});return r[19]=function(e){return bj(r,O)},r[20]=function(e){return Z3(r,e)},r[21]=function(e){return Z3(r,e)},uq(function(e){return yv(r,O)}),r});M6(Uq,IV);var Bq=ls(0,function(x){var r=Tj(function(e,t,u){return Rq(qq,e,t,u)},function(e){return Lq(pn,qq,O)},function(e){return 0},function(e){return 0},function(e){return 0});return r[19]=function(e){return bj(r,O)},r[20]=function(e){return Z3(r,e)},r[21]=function(e){return Z3(r,e)},uq(function(e){return yv(r,O)}),r});M6(Bq,NV);var CV="Buffer.sub",OV=[0,0,4],DV=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],FV=Z0,RV=Z0,LV=Z0,MV=Z0;function Xq(x,r){var e=$r(16),t=Ej(e);x(t,r),yv(t,O);var u=e[2];if(2>u)return G2(e);var i=u-2|0,c=1;return 0<=i&&(e[2]-i|0)>=1?G3(e[1][1],c,i):R1(CV)}function kt(x,r){if(typeof r!="number"){x:{r:{e:{switch(r[0]){case 0:var e=r[2];if(kt(x,r[1]),typeof e=="number")switch(e){case 0:return Sq(x,O);case 1:return Aq(x,O);case 2:return yv(x,O);case 3:var t=x[14]>>0)break;var $=$+1|0}break t}var H=T1(F,n0,$-n0|0),t0=K($);t:n:{for(var c0=t0;;){if(c0===z)break n;var r0=q2(F,c0);if(48<=r0){if(58<=r0)break}else if(r0!==45)break;var c0=c0+1|0}break t}if(t0===c0)var v0=0;else try{var a0=vt(T1(F,t0,c0-t0|0)),v0=a0}catch(sx){var g0=U2(sx);if(g0[1]!==vn)throw W0(g0,0);var v0=B(O)}K(c0)!==z&&B(O);t:{if(P(H,Z0)&&P(H,fI)){if(!P(H,"h")){var i0=0;break t}if(!P(H,"hov")){var i0=3;break t}if(!P(H,"hv")){var i0=2;break t}if(P(H,XF)){var i0=B(O);break t}var i0=1;break t}var i0=4}var M=[0,v0,i0]}return Eq(x,M[1],M[2]);case 2:var s0=r[1];if(typeof s0!="number"&&s0[0]===0){var d0=s0[2];if(typeof d0!="number"&&d0[0]===1){var w0=r[2],M0=d0[2],C0=s0[1];break r}}var S0=r[2],K0=s0;break x;case 3:var D0=r[1];if(typeof D0!="number"&&D0[0]===0){var I0=D0[2];if(typeof I0!="number"&&I0[0]===1){var j0=r[2],y0=I0[2],Y0=D0[1];break}}var ex=r[2],xx=D0;break e;case 4:var L=r[1];if(typeof L!="number"&&L[0]===0){var N0=L[2];if(typeof N0!="number"&&N0[0]===1){var w0=r[2],M0=N0[2],C0=L[1];break r}}var S0=r[2],K0=L;break x;case 5:var A0=r[1];if(typeof A0!="number"&&A0[0]===0){var $0=A0[2];if(typeof $0!="number"&&$0[0]===1){var j0=r[2],y0=$0[2],Y0=A0[1];break}}var ex=r[2],xx=A0;break e;case 6:var tx=r[2];return kt(x,r[1]),d(tx,x);case 7:return kt(x,r[1]),yv(x,O);default:var z0=r[2];return kt(x,r[1]),R1(z0)}return kt(x,Y0),_j(x,y0,s5(1,j0))}return kt(x,xx),Y6(x,ex)}return kt(x,C0),_j(x,M0,w0)}return kt(x,K0),Iq(x,Nx(S0),S0)}}function s1(x){return function(r){return Lr(function(e){return kt(x,e),0},0,r[1])}}var qV="Array.sub",UV="first domain already spawned",BV=[0,"camlinternalOO.ml",$b,50],XV=[0,YR,72,5],YV=[0,YR,81,2],zV="/tmp",KV=cn,JV=[0,"src/wtf8.ml",65,9],GV=[0,"src/third-party/sedlex/flow_sedlexing.ml",VE,4],WV="Flow_sedlexing.MalFormed",VV=$l,$V=p3,QV=l3,HV=v6,ZV=av,x$=[0,[12,40,[18,[1,[0,[11,_i,0],_i]],[11,"File_key.LibFile",[17,[0,Ua,1,0],0]]]],"(@[<2>File_key.LibFile@ "],r$=[0,[3,0,0],Vl],e$=[0,[17,0,[12,41,0]],wp],t$=[0,[12,40,[18,[1,[0,[11,_i,0],_i]],[11,"File_key.SourceFile",[17,[0,Ua,1,0],0]]]],"(@[<2>File_key.SourceFile@ "],n$=[0,[3,0,0],Vl],u$=[0,[17,0,[12,41,0]],wp],i$=[0,[12,40,[18,[1,[0,[11,_i,0],_i]],[11,"File_key.JsonFile",[17,[0,Ua,1,0],0]]]],"(@[<2>File_key.JsonFile@ "],f$=[0,[3,0,0],Vl],c$=[0,[17,0,[12,41,0]],wp],s$=[0,[12,40,[18,[1,[0,[11,_i,0],_i]],[11,"File_key.ResourceFile",[17,[0,Ua,1,0],0]]]],"(@[<2>File_key.ResourceFile@ "],a$=[0,[3,0,0],Vl],o$=[0,[17,0,[12,41,0]],wp],v$=[0,1],l$=[0,0],p$=[0,1],k$=[0,2],m$=[0,2],h$=[0,0],d$=[0,1],y$=[0,1],g$=[0,1],w$=[0,1],_$=[0,2],b$=[0,1],T$=[0,1],E$=[0,0,0],S$=[0,0,0],A$=[0,B1,Gi,Fi,M7,K1,_f,c7,Vf,nc,df,Ai,gu,gi,nu,S7,s7,Ru,Tf,D7,Yu,zi,N7,zn,Rf,fu,Z7,Xn,Kf,is,Jf,rf,cf,ts,gc,U7,ze,Wn,Oi,x7,Nc,Ti,Xf,Oc,Ge,Tc,Su,W7,i7,Bc,zu,xu,k7,Xe,Ju,v7,pf,r7,af,o7,qc,Me,wf,li,Lu,A7,ru,Mi,Ji,g7,Df,Q7,kc,Li,f7,jn,kf,_u,C7,fi,Ic,oi,vu,_e,Dc,Kn,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_i,0],_i]],[11,"{ ",0]],"@[<2>{ "],lQ="Loc.line",pQ=[0,[18,[1,[0,0,Z0]],[2,0,[11,KD,[17,[0,Ua,1,0],0]]]],bF],kQ=[0,[4,0,0,0,0],O3],mQ=[0,[17,0,0],bA],hQ=[0,[12,59,[17,[0,Ua,1,0],0]],";@ "],dQ=f6,yQ=[0,[18,[1,[0,0,Z0]],[2,0,[11,KD,[17,[0,Ua,1,0],0]]]],bF],gQ=[0,[4,0,0,0,0],O3],wQ=[0,[17,0,0],bA],_Q=[0,[17,[0,Ua,1,0],[12,Ba,[17,0,0]]],"@ }@]"],bQ=Z0,TQ="Object literal may not have data and accessor property with the same name",EQ="Object literal may not have multiple get/set accessors with the same name",SQ="Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag",AQ="`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.",PQ="Async functions can only be declared at top level or immediately within another function.",IQ="`await` is an invalid identifier in async functions",NQ="`await` is not allowed in async function parameters.",jQ="Computed properties must have a value.",CQ="Constructor can't be an accessor.",OQ="Constructor can't be an async function.",DQ="Constructor can't be a generator.",FQ="It is sufficient for your declare function to just have a Promise return type.",RQ="async is an implementation detail and isn't necessary for your declare function statement. ",LQ="`declare` modifier can only appear on class fields.",MQ="Unexpected token `=`. Initializers are not allowed in a `declare`.",qQ="Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.",UQ="Classes may only have one constructor",BQ="Rest element must be final element of an array pattern",XQ="Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.",YQ="Enum members are separated with `,`. Replace `;` with `,`.",zQ="`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.",KQ="Expected an object pattern, array pattern, or an identifier but found an expression instead",JQ="Missing comma between export specifiers",GQ="Generators can only be declared at top level or immediately within another function.",WQ="Getter should have zero parameters",VQ="A getter cannot have a `this` parameter.",$Q="Illegal break statement",QQ="Illegal continue statement",HQ="Illegal return statement",ZQ="Illegal Unicode escape",xH="Missing comma between import specifiers",rH="It cannot be used with `import type` or `import typeof` statements",eH="The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ",tH="Explicit inexact syntax cannot appear inside an explicit exact object type",nH="Explicit inexact syntax can only appear inside an object type",uH="Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`",iH="A bigint literal must be an integer",fH="JSX value should be either an expression or a quoted JSX text",cH="Invalid left-hand side in assignment",sH="Invalid left-hand side in exponentiation expression",aH="Invalid left-hand side in for-in",oH="Invalid left-hand side in for-of",vH="Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.",lH="Invalid regular expression",pH="A bigint literal cannot use exponential notation",kH="Tuple spread elements cannot be optional.",mH="Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`",hH="`typeof` can only be used to get the type of variables.",dH="JSX attributes must only be assigned a non-empty expression",yH="Literals cannot be used as shorthand properties.",gH="Malformed unicode",wH="`match` only supports one argument",_H="Object pattern can't contain methods",bH="Expected at least one type parameter.",TH="Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",EH="More than one default clause in switch statement",SH="Illegal newline after throw",AH="Illegal newline before arrow",PH="Missing catch or finally after try",IH="Const must be initialized",NH="Destructuring assignment must be initialized",jH="An optional chain may not be used in a `new` expression.",CH="Template literals may not be used in an optional chain.",OH="Rest parameter must be final parameter of an argument list",DH="Private fields may not be deleted.",FH="Private fields can only be referenced from within a class.",RH="Rest property must be final property of an object pattern",LH="Setter should have exactly one parameter",MH="A setter cannot have a `this` parameter.",qH="Catch variable may not be eval or arguments in strict mode",UH="Delete of an unqualified identifier in strict mode.",BH="Duplicate data property in object literal not allowed in strict mode",XH="Function name may not be eval or arguments in strict mode",YH="Assignment to eval or arguments is not allowed in strict mode",zH="Postfix increment/decrement may not have eval or arguments operand in strict mode",KH="Prefix increment/decrement may not have eval or arguments operand in strict mode",JH="Strict mode code may not include a with statement",GH="Number literals with leading zeros are not allowed in strict mode.",WH="Octal literals are not allowed in strict mode.",VH="Strict mode function may not have duplicate parameter names",$H="Parameter name eval or arguments is not allowed in strict mode",QH='Illegal "use strict" directive in function with non-simple parameter list',HH="Use of reserved word in strict mode",ZH="Variable name may not be eval or arguments in strict mode",xZ="You may not access a private field through the `super` keyword.",rZ="Flow does not support abstract classes.",eZ="Flow does not support template literal types.",tZ="A type annotation is required for the `this` parameter.",nZ="Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.",uZ="Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",iZ="The `this` parameter cannot be optional.",fZ="The `this` parameter must be the first function parameter.",cZ="A trailing comma is not permitted after the rest element",sZ="Unexpected end of input",aZ="Explicit inexact syntax must come at the end of an object type",oZ="Opaque type aliases are not allowed in untyped mode",vZ="Unexpected proto modifier",lZ="Unexpected reserved word",pZ="Unexpected reserved type",kZ="Spreading a type is only allowed inside an object type",mZ="Unexpected static modifier",hZ="Unexpected `super` outside of a class method",dZ="`super()` is only valid in a class constructor",yZ="Type aliases are not allowed in untyped mode",gZ="Type annotations are not allowed in untyped mode",wZ="Type declarations are not allowed in untyped mode",_Z="Type exports are not allowed in untyped mode",bZ="Type imports are not allowed in untyped mode",TZ="Interfaces are not allowed in untyped mode",EZ="Unexpected variance sigil",SZ="Found a decorator in an unsupported position.",AZ="Invalid regular expression: missing /",PZ="Unexpected whitespace between `#` and identifier",IZ="`yield` is an invalid identifier in generators",NZ="Yield expression not allowed in formal parameter",jZ=[0,[11,"Duplicate export for `",[2,0,[12,96,0]]],"Duplicate export for `%s`"],CZ=[0,[11,"Private fields may only be declared once. `#",[2,0,[11,"` is declared more than once.",0]]],"Private fields may only be declared once. `#%s` is declared more than once."],OZ=[0,[11,"bigint enum members need to be initialized, e.g. `",[2,0,[11," = 1n,` in enum `",[2,0,[11,Hs,0]]]]],"bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."],DZ=[0,[11,"Boolean enum members need to be initialized. Use either `",[2,0,[11," = true,` or `",[2,0,[11," = false,` in enum `",[2,0,[11,Hs,0]]]]]]],"Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."],FZ=[0,[11,"Enum member names need to be unique, but the name `",[2,0,[11,"` has already been used before in enum `",[2,0,[11,Hs,0]]]]],"Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."],RZ=[0,[11,HD,[2,0,[11,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",0]]],"Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."],LZ="The `...` must come at the end of the enum body. Remove the trailing comma.",MZ="The `...` must come after all enum members. Move it to the end of the enum body.",qZ=[0,[11,"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `",[2,0,[11,Hs,0]]],"Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."],UZ=[0,[11,"Enum type `",[2,0,[11,"` is not valid. ",[2,0,0]]]],"Enum type `%s` is not valid. %s"],BZ=[0,[11,"Supplied enum type is not valid. ",[2,0,0]],"Supplied enum type is not valid. %s"],XZ=[0,[11,"Enum member names and initializers are separated with `=`. Replace `",[2,0,[11,":` with `",[2,0,[11," =`.",0]]]]],"Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."],YZ=[0,[11,HD,[2,0,[11,"` has type `",[2,0,[11,"`, so the initializer of `",[2,0,[11,"` needs to be a ",[2,0,[11," literal.",0]]]]]]]]],"Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."],zZ=[0,[11,"Symbol enum members cannot be initialized. Use `",[2,0,[11,",` in enum `",[2,0,[11,Hs,0]]]]],"Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."],KZ=[0,[11,"The enum member initializer for `",[2,0,[11,"` needs to be a literal (either a boolean, number, or string) in enum `",[2,0,[11,Hs,0]]]]],"The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."],JZ=[0,[11,"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `",[2,0,[11,"`, consider using `",[2,0,[11,"`, in enum `",[2,0,[11,Hs,0]]]]]]],"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."],GZ=[0,[11,"Number enum members need to be initialized, e.g. `",[2,0,[11," = 1,` in enum `",[2,0,[11,Hs,0]]]]],"Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."],WZ=[0,[11,"String enum members need to consistently either all use initializers, or use no initializers, in enum ",[2,0,[12,46,0]]],"String enum members need to consistently either all use initializers, or use no initializers, in enum %s."],VZ=[0,[11,"Expected corresponding JSX closing tag for ",[2,0,0]],"Expected corresponding JSX closing tag for %s"],$Z="immediately within another function.",QZ="In strict mode code, functions can only be declared at top level or ",HZ="inside a block, or as the body of an if statement.",ZZ="In non-strict mode code, functions can only be declared at top level, ",x00="static ",r00=Z0,e00="methods",t00="fields",n00=CR,u00=[0,[11,"Classes may not have ",[2,0,[2,0,[11," named `",[2,0,[11,Hs,0]]]]]],"Classes may not have %s%s named `%s`."],i00="Components use `renders` instead of `:` to annotate the render type of a component.",f00=tR,c00=Z0,s00=[0,[11,"String params require local bindings using `as` renaming. You can use `'",[2,0,[11,"' as ",[2,0,[2,0,[11,": ` ",0]]]]]],"String params require local bindings using `as` renaming. You can use `'%s' as %s%s: ` "],a00="Remove the period.",o00="Indexed access uses bracket notation.",v00=[0,[11,"Invalid indexed access. ",[2,0,[11," Use the format `T[K]`.",0]]],"Invalid indexed access. %s Use the format `T[K]`."],l00=[0,[11,"Invalid flags supplied to RegExp constructor '",[2,0,[12,39,0]]],"Invalid flags supplied to RegExp constructor '%s'"],p00=xn,k00=G4,m00=[0,[11,"In match ",[2,0,[11," pattern, the rest must be the last element in the pattern",0]]],"In match %s pattern, the rest must be the last element in the pattern"],h00=[0,[11,"JSX element ",[2,0,[11," has no corresponding closing tag.",0]]],"JSX element %s has no corresponding closing tag."],d00=[0,[11,xR,[2,0,[11,"`. Parentheses are required to combine `??` with `&&` or `||` expressions.",0]]],"Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."],y00=[0,[2,0,[11," '",[2,0,[11,"' has already been declared",0]]]],"%s '%s' has already been declared"],g00=Z0,w00=Rl,_00=" You can try using JavaScript private fields by prepending `#` to the field name.",b00=h6,T00=" Fields and methods are public by default. You can simply omit the `public` keyword.",E00=l6,S00=[0,[11,"Flow does not support using `",[2,0,[11,"` in classes.",[2,0,0]]]],"Flow does not support using `%s` in classes.%s"],A00=[0,[11,"Private fields must be declared before they can be referenced. `#",[2,0,[11,"` has not been declared.",0]]],"Private fields must be declared before they can be referenced. `#%s` has not been declared."],P00=[0,[11,QF,[2,0,0]],"Unexpected %s"],I00=[0,[11,xR,[2,0,[11,"`. Did you mean `",[2,0,[11,"`?",0]]]]],"Unexpected token `%s`. Did you mean `%s`?"],N00=[0,[11,QF,[2,0,[11,", expected ",[2,0,0]]]],"Unexpected %s, expected %s"],j00=[0,[11,"Undefined label '",[2,0,[12,39,0]]],"Undefined label '%s'"],C00="Parse_error.Error",O00=[0,[0,36,37],[0,48,58],[0,65,91],[0,95,96],[0,97,rn],[0,Sd,Bw],[0,GE,gy],[0,J9,p6],[0,hA,gp],[0,a3,wg],[0,kd,ep],[0,n2,706],[0,UO,722],[0,736,741],[0,748,749],[0,750,751],[0,768,885],[0,886,888],[0,890,894],[0,895,896],[0,902,907],[0,908,909],[0,910,930],[0,jR,1014],[0,1015,1154],[0,1155,1160],[0,1162,1328],[0,1329,1367],[0,1369,1370],[0,1376,1417],[0,1425,1470],[0,1471,1472],[0,1473,1475],[0,1476,1478],[0,1479,1480],[0,1488,1515],[0,1519,1523],[0,1552,1563],[0,1568,1642],[0,1646,1748],[0,1749,1757],[0,1759,1769],[0,1770,1789],[0,1791,1792],[0,1808,1867],[0,1869,1970],[0,1984,2038],[0,2042,2043],[0,2045,2046],[0,n_,2094],[0,2112,2140],[0,2144,2155],[0,2208,2229],[0,2230,2238],[0,2259,2274],[0,2275,2404],[0,2406,2416],[0,2417,2436],[0,2437,2445],[0,2447,2449],[0,2451,2473],[0,2474,2481],[0,2482,2483],[0,2486,2490],[0,2492,2501],[0,2503,2505],[0,2507,2511],[0,2519,2520],[0,2524,2526],[0,2527,2532],[0,2534,2546],[0,2556,2557],[0,2558,2559],[0,2561,2564],[0,2565,2571],[0,2575,2577],[0,2579,2601],[0,2602,2609],[0,2610,2612],[0,2613,2615],[0,2616,2618],[0,2620,2621],[0,2622,2627],[0,2631,2633],[0,2635,2638],[0,2641,2642],[0,2649,2653],[0,2654,2655],[0,2662,2678],[0,2689,2692],[0,2693,2702],[0,2703,2706],[0,2707,2729],[0,2730,2737],[0,2738,2740],[0,2741,2746],[0,2748,2758],[0,2759,2762],[0,2763,2766],[0,2768,2769],[0,2784,2788],[0,2790,2800],[0,2809,2816],[0,2817,2820],[0,2821,2829],[0,2831,2833],[0,2835,2857],[0,2858,2865],[0,2866,2868],[0,2869,2874],[0,2876,2885],[0,2887,2889],[0,2891,2894],[0,2902,2904],[0,2908,2910],[0,2911,2916],[0,2918,2928],[0,2929,2930],[0,2946,2948],[0,2949,2955],[0,2958,2961],[0,2962,2966],[0,2969,2971],[0,2972,2973],[0,2974,2976],[0,2979,2981],[0,2984,2987],[0,2990,3002],[0,3006,3011],[0,3014,3017],[0,3018,3022],[0,3024,3025],[0,3031,3032],[0,3046,3056],[0,3072,3085],[0,3086,3089],[0,3090,3113],[0,3114,3130],[0,3133,3141],[0,3142,3145],[0,3146,3150],[0,3157,3159],[0,3160,3163],[0,3168,3172],[0,3174,3184],[0,3200,3204],[0,3205,3213],[0,3214,3217],[0,3218,3241],[0,3242,3252],[0,3253,3258],[0,3260,3269],[0,3270,3273],[0,3274,3278],[0,3285,3287],[0,3294,3295],[0,3296,3300],[0,3302,3312],[0,3313,3315],[0,3328,3332],[0,3333,3341],[0,3342,3345],[0,3346,3397],[0,3398,3401],[0,3402,3407],[0,3412,3416],[0,3423,3428],[0,3430,3440],[0,3450,3456],[0,3458,3460],[0,3461,3479],[0,3482,3506],[0,3507,3516],[0,3517,3518],[0,3520,3527],[0,3530,3531],[0,3535,3541],[0,3542,3543],[0,3544,3552],[0,3558,3568],[0,3570,3572],[0,3585,3643],[0,3648,3663],[0,3664,3674],[0,3713,3715],[0,3716,3717],[0,3718,3723],[0,3724,3748],[0,3749,3750],[0,3751,3774],[0,3776,3781],[0,3782,3783],[0,3784,3790],[0,3792,3802],[0,3804,3808],[0,3840,3841],[0,3864,3866],[0,3872,3882],[0,3893,3894],[0,3895,3896],[0,3897,3898],[0,3902,3912],[0,3913,3949],[0,3953,3973],[0,3974,3992],[0,3993,4029],[0,4038,4039],[0,CF,4170],[0,4176,4254],[0,4256,4294],[0,4295,4296],[0,4301,4302],[0,4304,4347],[0,4348,4681],[0,4682,4686],[0,4688,4695],[0,4696,4697],[0,4698,4702],[0,4704,4745],[0,4746,4750],[0,4752,4785],[0,4786,4790],[0,4792,4799],[0,4800,4801],[0,4802,4806],[0,4808,4823],[0,4824,4881],[0,4882,4886],[0,4888,4955],[0,4957,4960],[0,4969,4978],[0,4992,5008],[0,5024,5110],[0,5112,5118],[0,5121,5741],[0,5743,hI],[0,5761,5787],[0,5792,5867],[0,5870,5881],[0,5888,5901],[0,5902,5909],[0,5920,5941],[0,5952,5972],[0,5984,5997],[0,5998,6001],[0,6002,6004],[0,6016,6100],[0,6103,6104],[0,6108,6110],[0,6112,6122],[0,6155,6158],[0,6160,6170],[0,6176,6265],[0,6272,6315],[0,6320,6390],[0,6400,6431],[0,6432,6444],[0,6448,6460],[0,6470,6510],[0,6512,6517],[0,6528,6572],[0,6576,6602],[0,6608,6619],[0,6656,6684],[0,6688,6751],[0,6752,6781],[0,6783,6794],[0,6800,6810],[0,6823,6824],[0,6832,6846],[0,6912,6988],[0,6992,7002],[0,7019,7028],[0,7040,7156],[0,7168,7224],[0,7232,7242],[0,7245,7294],[0,7296,7305],[0,7312,7355],[0,7357,7360],[0,7376,7379],[0,7380,7419],[0,7424,7674],[0,7675,7958],[0,7960,7966],[0,7968,8006],[0,8008,8014],[0,8016,8024],[0,8025,8026],[0,8027,8028],[0,8029,8030],[0,8031,8062],[0,8064,8117],[0,8118,8125],[0,8126,8127],[0,8130,8133],[0,8134,8141],[0,8144,8148],[0,8150,8156],[0,8160,8173],[0,8178,8181],[0,8182,8189],[0,vD,NR],[0,8255,8257],[0,8276,8277],[0,$k,8306],[0,gk,8320],[0,8336,8349],[0,8400,8413],[0,8417,8418],[0,8421,8433],[0,j8,8451],[0,tm,8456],[0,8458,mp],[0,Np,8470],[0,fR,8478],[0,Dk,im],[0,mm,Dp],[0,Up,cm],[0,8490,8506],[0,8508,8512],[0,8517,8522],[0,$p,8527],[0,8544,8585],[0,11264,11311],[0,11312,11359],[0,11360,11493],[0,11499,11508],[0,11520,T8],[0,F4,11560],[0,$8,11566],[0,11568,11624],[0,dk,11632],[0,bp,11671],[0,11680,S8],[0,11688,P8],[0,11696,R4],[0,11704,Zp],[0,11712,u8],[0,11720,B4],[0,11728,_m],[0,11736,11743],[0,11744,11776],[0,12293,12296],[0,12321,dm],[0,12337,12342],[0,12344,12349],[0,12353,12439],[0,12441,t8],[0,12449,Cm],[0,12540,12544],[0,12549,nm],[0,12593,12687],[0,12704,12731],[0,12784,12800],[0,13312,19894],[0,19968,40944],[0,40960,42125],[0,42192,42238],[0,42240,42509],[0,42512,42540],[0,42560,42608],[0,42612,kp],[0,42623,42738],[0,42775,42784],[0,42786,42889],[0,42891,42944],[0,42946,42951],[0,Ak,43048],[0,43072,43124],[0,43136,43206],[0,43216,43226],[0,43232,43256],[0,ak,ek],[0,43261,43310],[0,43312,43348],[0,43360,43389],[0,43392,43457],[0,s8,43482],[0,43488,Z4],[0,lF,43575],[0,43584,43598],[0,43600,43610],[0,43616,43639],[0,w8,43715],[0,43739,43742],[0,43744,43760],[0,43762,43767],[0,43777,43783],[0,43785,43791],[0,43793,43799],[0,43808,F8],[0,43816,Pk],[0,43824,v8],[0,43868,z4],[0,43888,44011],[0,44012,44014],[0,44016,44026],[0,44032,55204],[0,55216,55239],[0,55243,55292],[0,63744,64110],[0,64112,64218],[0,64256,64263],[0,64275,64280],[0,ck,H4],[0,64298,Lk],[0,64312,C8],[0,ok,Sp],[0,64320,ym],[0,64323,Rm],[0,64326,64434],[0,64467,64830],[0,64848,64912],[0,64914,64968],[0,65008,65020],[0,65024,65040],[0,65056,65072],[0,65075,65077],[0,65101,65104],[0,65136,am],[0,65142,65277],[0,65296,65306],[0,65313,65339],[0,65343,A8],[0,65345,65371],[0,65382,65471],[0,65474,65480],[0,65482,65488],[0,65490,65496],[0,65498,65501],[0,c6,Sm],[0,65549,l8],[0,65576,Lp],[0,65596,qp],[0,65599,65614],[0,65616,65630],[0,65664,65787],[0,65856,65909],[0,66045,66046],[0,66176,66205],[0,66208,66257],[0,66272,66273],[0,66304,66336],[0,66349,66379],[0,66384,66427],[0,66432,66462],[0,66464,66500],[0,66504,bm],[0,66513,66518],[0,66560,66718],[0,66720,66730],[0,66736,66772],[0,66776,66812],[0,66816,66856],[0,66864,66916],[0,67072,67383],[0,67392,67414],[0,67424,67432],[0,67584,67590],[0,Ep,lk],[0,67594,Tm],[0,67639,67641],[0,o8,67645],[0,67647,67670],[0,67680,67703],[0,67712,67743],[0,67808,fp],[0,67828,67830],[0,67840,67862],[0,67872,67898],[0,67968,68024],[0,68030,68032],[0,Am,68100],[0,68101,68103],[0,68108,xk],[0,68117,a8],[0,68121,68150],[0,68152,68155],[0,68159,68160],[0,68192,68221],[0,68224,68253],[0,68288,Wk],[0,68297,68327],[0,68352,68406],[0,68416,68438],[0,68448,68467],[0,68480,68498],[0,68608,68681],[0,68736,68787],[0,68800,68851],[0,68864,68904],[0,68912,68922],[0,69376,69405],[0,Z8,69416],[0,69424,69457],[0,69600,69623],[0,69632,69703],[0,69734,hm],[0,69759,69819],[0,69840,69865],[0,69872,69882],[0,69888,69941],[0,69942,69952],[0,xp,Jp],[0,69968,70004],[0,fm,70007],[0,70016,70085],[0,70089,70093],[0,70096,J8],[0,Ek,70109],[0,70144,K8],[0,70163,70200],[0,70206,70207],[0,70272,Y8],[0,Uk,Wp],[0,70282,z8],[0,70287,I8],[0,70303,70313],[0,70320,70379],[0,70384,70394],[0,70400,J4],[0,70405,70413],[0,70415,70417],[0,70419,sm],[0,70442,n8],[0,70450,_8],[0,70453,70458],[0,70459,70469],[0,70471,70473],[0,70475,70478],[0,tp,70481],[0,70487,70488],[0,70493,70500],[0,70502,70509],[0,70512,70517],[0,70656,70731],[0,70736,70746],[0,dp,70752],[0,70784,rm],[0,yk,70856],[0,70864,70874],[0,71040,71094],[0,71096,71105],[0,71128,71134],[0,71168,71233],[0,Tk,71237],[0,71248,71258],[0,71296,71353],[0,71360,71370],[0,71424,71451],[0,71453,71468],[0,71472,71482],[0,71680,71739],[0,71840,71914],[0,71935,71936],[0,72096,72104],[0,72106,72152],[0,72154,Vk],[0,em,72165],[0,mk,72255],[0,72263,72264],[0,Qp,72346],[0,Ik,72350],[0,72384,72441],[0,72704,um],[0,72714,72759],[0,72760,72769],[0,72784,72794],[0,72818,72848],[0,72850,72872],[0,72873,72887],[0,72960,Ck],[0,72968,wm],[0,72971,73015],[0,73018,73019],[0,73020,73022],[0,73023,73032],[0,73040,73050],[0,73056,qk],[0,73063,L8],[0,73066,73103],[0,73104,73106],[0,73107,73113],[0,73120,73130],[0,73440,73463],[0,73728,74650],[0,74752,74863],[0,74880,75076],[0,77824,78895],[0,82944,83527],[0,92160,92729],[0,92736,92767],[0,92768,92778],[0,92880,92910],[0,92912,92917],[0,92928,92983],[0,92992,92996],[0,93008,93018],[0,93027,93048],[0,93053,93072],[0,93760,93824],[0,93952,94027],[0,R8,94088],[0,94095,94112],[0,94176,Pp],[0,K4,94180],[0,94208,100344],[0,100352,101107],[0,110592,110879],[0,110928,110931],[0,110948,110952],[0,110960,111356],[0,113664,113771],[0,113776,113789],[0,113792,113801],[0,113808,113818],[0,113821,113823],[0,119141,119146],[0,119149,119155],[0,119163,119171],[0,119173,119180],[0,119210,119214],[0,119362,119365],[0,119808,V4],[0,119894,Kp],[0,119966,119968],[0,pk,119971],[0,119973,119975],[0,119977,qm],[0,119982,U8],[0,Qk,p8],[0,119997,wk],[0,120005,Fm],[0,120071,120075],[0,120077,_p],[0,120086,X8],[0,120094,rp],[0,120123,c8],[0,120128,hk],[0,uk,120135],[0,120138,km],[0,120146,120486],[0,120488,jp],[0,120514,Mk],[0,120540,Om],[0,120572,Gp],[0,120598,zk],[0,120630,vp],[0,120656,Fk],[0,120688,np],[0,120714,Y4],[0,120746,Yp],[0,120772,120780],[0,120782,120832],[0,121344,121399],[0,121403,121453],[0,121461,121462],[0,121476,121477],[0,121499,121504],[0,121505,121520],[0,122880,122887],[0,122888,122905],[0,122907,122914],[0,122915,122917],[0,122918,122923],[0,123136,123181],[0,123184,123198],[0,123200,123210],[0,q4,123215],[0,123584,123642],[0,124928,125125],[0,125136,125143],[0,125184,125260],[0,125264,125274],[0,126464,lp],[0,126469,N8],[0,126497,jm],[0,X4,126501],[0,Q8,i8],[0,126505,M4],[0,126516,Kk],[0,Pm,h8],[0,sp,126524],[0,gm,126531],[0,Lm,op],[0,Im,E8],[0,Em,$4],[0,126541,Vp],[0,126545,lm],[0,W8,126549],[0,Gk,ap],[0,vk,Ok],[0,b8,pm],[0,Tp,up],[0,Zk,Mp],[0,126561,cp],[0,vm,126565],[0,126567,W4],[0,126572,hp],[0,126580,Bk],[0,126585,sk],[0,Jk,xm],[0,126592,ip],[0,126603,126620],[0,126625,Yk],[0,126629,Nk],[0,126635,126652],[0,131072,173783],[0,173824,177973],[0,177984,178206],[0,178208,183970],[0,183984,191457],[0,194560,195102],[0,917760,918e3]],D00=[0,1,0],F00=[0,0,[0,1,0],[0,1,0]],R00=rL,L00="end of input",M00=n6,q00="template literal part",U00=n6,B00=kO,X00=rL,Y00=n6,z00=p3,K00=n6,J00=av,G00=n6,W00=l3,V00="an",$00=Pt,Q00=hu,H00=[0,[11,"token `",[2,0,[12,96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20=Ll,N20=m8,j20=m8,C20=kL,O20=ue,D20=ue,F20=$l,R20=k8,L20="T_LCURLY",M20="T_RCURLY",q20="T_LCURLYBAR",U20="T_RCURLYBAR",B20="T_LPAREN",X20="T_RPAREN",Y20="T_LBRACKET",z20="T_RBRACKET",K20="T_SEMICOLON",J20="T_COMMA",G20="T_PERIOD",W20="T_ARROW",V20="T_ELLIPSIS",$20="T_AT",Q20="T_POUND",H20="T_FUNCTION",Z20="T_IF",x10="T_IN",r10="T_INSTANCEOF",e10="T_RETURN",t10="T_SWITCH",n10="T_MATCH",u10="T_THIS",i10="T_THROW",f10="T_TRY",c10="T_VAR",s10="T_WHILE",a10="T_WITH",o10="T_CONST",v10="T_LET",l10="T_NULL",p10="T_FALSE",k10="T_TRUE",m10="T_BREAK",h10="T_CASE",d10="T_CATCH",y10="T_CONTINUE",g10="T_DEFAULT",w10="T_DO",_10="T_FINALLY",b10="T_FOR",T10="T_CLASS",E10="T_EXTENDS",S10="T_STATIC",A10="T_ELSE",P10="T_NEW",I10="T_DELETE",N10="T_TYPEOF",j10="T_VOID",C10="T_ENUM",O10="T_EXPORT",D10="T_IMPORT",F10="T_SUPER",R10="T_IMPLEMENTS",L10="T_INTERFACE",M10="T_PACKAGE",q10="T_PRIVATE",U10="T_PROTECTED",B10="T_PUBLIC",X10="T_YIELD",Y10="T_DEBUGGER",z10="T_DECLARE",K10="T_TYPE",J10="T_OPAQUE",G10="T_OF",W10="T_ASYNC",V10="T_AWAIT",$10="T_CHECKS",Q10="T_RSHIFT3_ASSIGN",H10="T_RSHIFT_ASSIGN",Z10="T_LSHIFT_ASSIGN",xe0="T_BIT_XOR_ASSIGN",re0="T_BIT_OR_ASSIGN",ee0="T_BIT_AND_ASSIGN",te0="T_MOD_ASSIGN",ne0="T_DIV_ASSIGN",ue0="T_MULT_ASSIGN",ie0="T_EXP_ASSIGN",fe0="T_MINUS_ASSIGN",ce0="T_PLUS_ASSIGN",se0="T_NULLISH_ASSIGN",ae0="T_AND_ASSIGN",oe0="T_OR_ASSIGN",ve0="T_ASSIGN",le0="T_PLING_PERIOD",pe0="T_PLING_PLING",ke0="T_PLING",me0="T_COLON",he0="T_OR",de0="T_AND",ye0="T_BIT_OR",ge0="T_BIT_XOR",we0="T_BIT_AND",_e0="T_EQUAL",be0="T_NOT_EQUAL",Te0="T_STRICT_EQUAL",Ee0="T_STRICT_NOT_EQUAL",Se0="T_LESS_THAN_EQUAL",Ae0="T_GREATER_THAN_EQUAL",Pe0="T_LESS_THAN",Ie0="T_GREATER_THAN",Ne0="T_LSHIFT",je0="T_RSHIFT",Ce0="T_RSHIFT3",Oe0="T_PLUS",De0="T_MINUS",Fe0="T_DIV",Re0="T_MULT",Le0="T_EXP",Me0="T_MOD",qe0="T_NOT",Ue0="T_BIT_NOT",Be0="T_INCR",Xe0="T_DECR",Ye0="T_EOF",ze0="T_ANY_TYPE",Ke0="T_MIXED_TYPE",Je0="T_EMPTY_TYPE",Ge0="T_NUMBER_TYPE",We0="T_BIGINT_TYPE",Ve0="T_STRING_TYPE",$e0="T_VOID_TYPE",Qe0="T_SYMBOL_TYPE",He0="T_UNKNOWN_TYPE",Ze0="T_NEVER_TYPE",xt0="T_UNDEFINED_TYPE",rt0="T_KEYOF",et0="T_READONLY",tt0="T_INFER",nt0="T_IS",ut0="T_ASSERTS",it0="T_IMPLIES",ft0=BL,ct0=BL,st0="T_NUMBER",at0="T_BIGINT",ot0="T_STRING",vt0="T_TEMPLATE_PART",lt0="T_IDENTIFIER",pt0="T_REGEXP",kt0="T_INTERPRETER",mt0="T_ERROR",ht0="T_JSX_IDENTIFIER",dt0=LL,yt0=LL,gt0="T_BOOLEAN_TYPE",wt0="T_NUMBER_SINGLETON_TYPE",_t0="T_BIGINT_SINGLETON_TYPE",bt0=[0,YD,O8,9],Tt0=[0,YD,s_,9],Et0=pL,St0="*/",At0=pL,Pt0="unreachable line_comment",It0="unreachable string_quote",Nt0="\\",jt0="unreachable template_part",Ct0=`\r +`,Ot0=gw,Dt0="unreachable regexp_class",Ft0=GO,Rt0="unreachable regexp_body",Lt0=Z0,Mt0=Z0,qt0=Z0,Ut0=Z0,Bt0=ED,Xt0="{'>'}",Yt0=x6,zt0="{'}'}",Kt0=m8,Jt0=Ya,Gt0=Gb,Wt0=om,Vt0=ED,$t0=Ya,Qt0=Gb,Ht0=om,Zt0="unreachable type_token wholenumber",xn0="unreachable type_token wholebigint",rn0="unreachable type_token floatbigint",en0="unreachable type_token scinumber",tn0="unreachable type_token scibigint",nn0="unreachable type_token hexnumber",un0="unreachable type_token hexbigint",in0="unreachable type_token legacyoctnumber",fn0="unreachable type_token octnumber",cn0="unreachable type_token octbigint",sn0="unreachable type_token binnumber",an0="unreachable type_token bigbigint",on0="unreachable type_token",vn0=vL,ln0=[11,1],pn0=[11,0],kn0="unreachable template_tail",mn0=Z0,hn0=Z0,dn0="unreachable jsx_child",yn0="unreachable jsx_tag",gn0=[0,AD],wn0=[0,913],_n0=[0,a3],bn0=[0,II],Tn0=[0,kD],En0=[0,CL],Sn0=[0,8747],An0=[0,OO],Pn0=[0,916],In0=[0,8225],Nn0=[0,935],jn0=[0,mL],Cn0=[0,914],On0=[0,uL],Dn0=[0,Fb],Fn0=[0,QT],Rn0=[0,915],Ln0=[0,Wd],Mn0=[0,919],qn0=[0,917],Un0=[0,lL],Bn0=[0,rD],Xn0=[0,QD],Yn0=[0,924],zn0=[0,923],Kn0=[0,922],Jn0=[0,pF],Gn0=[0,921],Wn0=[0,ZF],Vn0=[0,s_],$n0=[0,tF],Qn0=[0,kd],Hn0=[0,927],Zn0=[0,937],x70=[0,tD],r70=[0,ZD],e70=[0,G9],t70=[0,338],n70=[0,352],u70=[0,929],i70=[0,936],f70=[0,8243],c70=[0,928],s70=[0,934],a70=[0,DL],o70=[0,eD],v70=[0,933],l70=[0,lR],p70=[0,lA],k70=[0,dO],m70=[0,920],h70=[0,932],d70=[0,YO],y70=[0,Cg],g70=[0,zF],w70=[0,WD],_70=[0,918],b70=[0,376],T70=[0,KF],E70=[0,926],S70=[0,hF],A70=[0,jR],P70=[0,925],I70=[0,39],N70=[0,8736],j70=[0,8743],C70=[0,38],O70=[0,945],D70=[0,8501],F70=[0,s3],R70=[0,8226],L70=[0,xD],M70=[0,946],q70=[0,8222],U70=[0,zO],B70=[0,wR],X70=[0,8776],Y70=[0,aL],z70=[0,8773],K70=[0,9827],J70=[0,UO],G70=[0,967],W70=[0,RR],V70=[0,p6],$70=[0,qO],Q70=[0,UF],H70=[0,8595],Z70=[0,8224],xu0=[0,8659],ru0=[0,mD],eu0=[0,8746],tu0=[0,8629],nu0=[0,Ap],uu0=[0,8745],iu0=[0,8195],fu0=[0,8709],cu0=[0,hO],su0=[0,oL],au0=[0,eL],ou0=[0,ep],vu0=[0,9830],lu0=[0,8707],pu0=[0,8364],ku0=[0,TR],mu0=[0,w3],hu0=[0,951],du0=[0,8801],yu0=[0,949],gu0=[0,8194],wu0=[0,8805],_u0=[0,947],bu0=[0,8260],Tu0=[0,cR],Eu0=[0,B9],Su0=[0,O8],Au0=[0,8704],Pu0=[0,qF],Iu0=[0,dL],Nu0=[0,8230],ju0=[0,9829],Cu0=[0,8596],Ou0=[0,8660],Du0=[0,62],Fu0=[0,402],Ru0=[0,948],Lu0=[0,fF],Mu0=[0,Ry],qu0=[0,8712],Uu0=[0,gL],Bu0=[0,953],Xu0=[0,8734],Yu0=[0,8465],zu0=[0,AR],Ku0=[0,8220],Ju0=[0,8968],Gu0=[0,8592],Wu0=[0,Bw],Vu0=[0,10216],$u0=[0,955],Qu0=[0,8656],Hu0=[0,954],Zu0=[0,60],xi0=[0,8216],ri0=[0,8249],ei0=[0,NR],ti0=[0,9674],ni0=[0,8727],ui0=[0,8970],ii0=[0,_L],fi0=[0,8711],ci0=[0,956],si0=[0,8722],ai0=[0,J9],oi0=[0,GE],vi0=[0,8212],li0=[0,FD],pi0=[0,8804],ki0=[0,957],mi0=[0,yF],hi0=[0,8836],di0=[0,8713],yi0=[0,$D],gi0=[0,8715],wi0=[0,8800],_i0=[0,8853],bi0=[0,959],Ti0=[0,969],Ei0=[0,8254],Si0=[0,XR],Ai0=[0,339],Pi0=[0,zo],Ii0=[0,LR],Ni0=[0,gy],ji0=[0,A3],Ci0=[0,8855],Oi0=[0,ZT],Di0=[0,n2],Fi0=[0,hA],Ri0=[0,Sd],Li0=[0,lr],Mi0=[0,WR],qi0=[0,982],Ui0=[0,960],Bi0=[0,966],Xi0=[0,8869],Yi0=[0,8240],zi0=[0,8706],Ki0=[0,8744],Ji0=[0,8211],Gi0=[0,10217],Wi0=[0,8730],Vi0=[0,8658],$i0=[0,34],Qi0=[0,968],Hi0=[0,8733],Zi0=[0,8719],xf0=[0,961],rf0=[0,8971],ef0=[0,OL],tf0=[0,8476],nf0=[0,8221],uf0=[0,8969],if0=[0,8594],ff0=[0,gp],cf0=[0,_R],sf0=[0,kF],af0=[0,8901],of0=[0,353],vf0=[0,8218],lf0=[0,8217],pf0=[0,8250],kf0=[0,8835],mf0=[0,8721],hf0=[0,8838],df0=[0,8834],yf0=[0,9824],gf0=[0,8764],wf0=[0,962],_f0=[0,963],bf0=[0,8207],Tf0=[0,952],Ef0=[0,8756],Sf0=[0,964],Af0=[0,kk],Pf0=[0,8839],If0=[0,YL],Nf0=[0,ug],jf0=[0,D3],Cf0=[0,8657],Of0=[0,8482],Df0=[0,wg],Ff0=[0,732],Rf0=[0,d3],Lf0=[0,8201],Mf0=[0,977],qf0=[0,fR],Uf0=[0,g3],Bf0=[0,965],Xf0=[0,978],Yf0=[0,YP],zf0=[0,VE],Kf0=[0,zL],Jf0=[0,vD],Gf0=[0,8205],Wf0=[0,950],Vf0=[0,Hp],$f0=[0,wF],Qf0=[0,pE],Hf0=[0,958],Zf0=[0,8593],xc0=[0,_O],rc0=[0,8242],ec0=[0,tL],tc0="unreachable regexp",nc0="unreachable token wholenumber",uc0="unreachable token wholebigint",ic0="unreachable token floatbigint",fc0="unreachable token scinumber",cc0="unreachable token scibigint",sc0="unreachable token hexnumber",ac0="unreachable token hexbigint",oc0="unreachable token legacyoctnumber",vc0="unreachable token legacynonoctnumber",lc0="unreachable token octnumber",pc0="unreachable token octbigint",kc0="unreachable token bignumber",mc0="unreachable token bigint",hc0="unreachable token",dc0=vL,yc0=[7,"#!"],gc0="expected ?",wc0="unreachable string_escape",_c0=Y1,bc0=Wl,Tc0=Wl,Ec0=Y1,Sc0=fI,Ac0=AF,Pc0="n",Ic0="r",Nc0="t",jc0=XF,Cc0=Wl,Oc0=Ya,Dc0=Ya,Fc0="unreachable id_char",Rc0=Ya,Lc0=Ya,Mc0=Wl,qc0=QR,Uc0=TO,Bc0=M_,Xc0=[26,"token ILLEGAL"],Yc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],zc0=[0,1],Kc0=[0,1],Jc0=OF,Gc0=OF,Wc0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"],Vc0=Mm,$c0="Peeking current location when not available",Qc0=[0,"src/parser/parser_env.ml",365,9],Hc0="Internal Error: Tried to add_declared_private with outside of class scope.",Zc0="Internal Error: `exit_class` called before a matching `enter_class`",xs0=Z0,rs0=[0,0,0],es0=[0,0,0],ts0="Parser_env.Try.Rollback",ns0=Z0,us0=Z0,is0=[0,B1,Gi,Fi,DD,bR,M7,K1,_f,c7,Vf,nc,df,Ai,gu,gi,nu,S7,s7,Ru,Tf,D7,Yu,zi,N7,zn,Rf,fu,Z7,Xn,Kf,is,Jf,rf,cf,ts,gc,U7,ze,Wn,Oi,x7,Nc,Ti,Xf,Oc,Ge,Tc,Su,W7,i7,Bc,zu,xu,k7,Xe,Ju,v7,pf,r7,af,o7,qc,Me,wf,li,Lu,A7,ru,Mi,Ji,g7,Df,Q7,kc,Li,f7,jn,kf,_u,C7,fi,Ic,oi,vu,_e,Dc,Kn,Mf,Du,rs,Un,Gn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qs0=Xp,Us0=rv,Bs0=Kl,Xs0=Zs,Ys0=Ws,zs0=Ql,Ks0=Nm,Js0=X1,Gs0=N3,Ws0=cv,Vs0=ie,$s0=Bp,Qs0=h6,Hs0=Rl,Zs0=l6,xa0=B1,ra0=Ye,ea0=g6,ta0=qf,na0=ib,ua0=sS,ia0=Ka,fa0=nv,ca0=yp,sa0=Op,aa0=be,oa0=p3,va0=av,la0=l3,pa0=Ws,ka0=v6,ma0=Ip,ha0=Fp,da0=fk,ya0=H8,ga0=Zo,wa0=a6,_a0=b3,ba0=m3,Ta0=$l,Ea0=k8,Sa0=[0,Mm],Aa0=Z0,Pa0=[18,1],Ia0=[18,0],Na0=[0,0],ja0=$s,Ca0=[0,0],Oa0=[0,"a type"],Da0=[0,0],Fa0=[0,"a number literal type"],Ra0=[0,0],La0=a6,Ma0=b3,qa0=m3,Ua0="You should only call render_type after making sure the next token is a renders variant",Ba0=[0,[0,0,0,0,0]],Xa0=[0,0,0,0],Ya0=[0,1],za0=[0,I3,1436,6],Ka0=[0,I3,1439,6],Ja0=[0,I3,1542,8],Ga0=[0,1],Wa0=[0,I3,1559,8],Va0="Can not have both `static` and `proto`",$a0=Re,Qa0=kg,Ha0=[0,0],Za0=[0,"the end of a tuple type (no trailing comma is allowed in inexact tuple type)."],xo0=[0,I3,G9,15],ro0=[0,I3,ug,15],eo0=Ue,to0=Ue,no0=ik,uo0=f6,io0=[0,[11,"Failure while looking up ",[2,0,[11,". Index: ",[4,0,0,0,[11,". Length: ",[4,0,0,0,[12,46,0]]]]]]],"Failure while looking up %s. Index: %d. Length: %d."],fo0=[0,0,0,0],co0="Offset_utils.Offset_lookup_failed",so0=g2,ao0=EO,oo0=f6,vo0=ik,lo0=CO,po0=f6,ko0=ik,mo0=wD,ho0=vx,do0="normal",yo0=qf,go0="jsxTag",wo0="jsxChild",_o0="template",bo0=kO,To0="context",Eo0=qf,So0=[6,0],Ao0=[0,0],Po0=[0,1],Io0=[0,4],No0=[0,2],jo0=[0,3],Co0=[0,0],Oo0=Ue,Do0=[0,0,0,0,0,0],Fo0=[0,ZE],Ro0=[29,[0,0,0]],Lo0=[0,0],Mo0=[0,1],qo0=[0,1],Uo0=[0,0],Bo0=$s,Xo0=[0,70],Yo0=[0,81],zo0=sR,Ko0=dT,Jo0="exports",Go0=o6,Wo0=[0,Z0,Z0,0],Vo0=[0,LO],$o0=[0,81],Qo0=[0,"a declaration, statement or export specifiers"],Ho0=[0,1],Zo0=[0,qy,1872,21],xv0=[0,"the keyword `as`"],rv0=[0,30],ev0=[0,30],tv0=[0,0],nv0=[0,1],uv0=[0,LO],iv0=[0,"the keyword `from`"],fv0=[0,Z0,Z0,0],cv0=[0,ZE],sv0="Label",av0=[0,ZE],ov0=[0,0,0],vv0=[0,39],lv0=[0,qy,372,22],pv0=[0,38],kv0=[0,qy,391,22],mv0=[0,0],hv0="the token `;`",dv0=[0,0],yv0=[0,0],gv0=qD,wv0=[0,Mm],_v0=qD,bv0=[26,Pt],Tv0=$s,Ev0=[0,70],Sv0=[0,Z0,0],Av0=Nt,Pv0=[0,Z0,0],Iv0=[0,70],Nv0=[0,70],jv0=h3,Cv0=[0,Z0,0],Ov0=[0,0,0],Dv0=[0,0,0],Fv0=[0,[0,8]],Rv0=[0,[0,7]],Lv0=[0,[0,6]],Mv0=[0,[0,10]],qv0=[0,[0,9]],Uv0=[0,[0,11]],Bv0=[0,[0,5]],Xv0=[0,[0,4]],Yv0=[0,[0,2]],zv0=[0,[0,3]],Kv0=[0,[0,1]],Jv0=[0,[0,0]],Gv0=[0,[0,12]],Wv0=[0,[0,13]],Vv0=[0,[0,14]],$v0=[0,0],Qv0=[0,1],Hv0=[0,0],Zv0=[0,2],x30=[0,3],r30=[0,7],e30=[0,6],t30=[0,4],n30=[0,5],u30=[0,1],i30=[0,0],f30=[0,1],c30=[0,0],s30=N3,a30=[0,"either a call or access of `super`"],o30=N3,v30=X1,l30=Xl,p30=Xl,k30=rv,m30=[0,"the identifier `target`"],h30=[0,0],d30=[0,1],y30=[0,1],g30=[0,1],w30=[0,1],_30=[0,1],b30=[0,70],T30=Wl,E30=QR,S30=M_,A30=M_,P30=TO,I30=[29,[0,0,0]],N30=[0,0],j30=[0,1],C30=[0,0],O30=ue,D30=ue,F30=[0,"a regular expression"],R30=Z0,L30=Z0,M30=Z0,q30=[0,78],U30=[0,"src/parser/expression_parser.ml",1450,17],B30=[0,"a template literal part"],X30=[0,[0,Z0,Z0],1],Y30=qo,z30=[0,6],K30=[0,[0,17,[0,2]]],J30=[0,[0,18,[0,3]]],G30=[0,[0,19,[0,4]]],W30=[0,[0,0,[0,5]]],V30=[0,[0,1,[0,5]]],$30=[0,[0,2,[0,5]]],Q30=[0,[0,3,[0,5]]],H30=[0,[0,5,[0,6]]],Z30=[0,[0,7,[0,6]]],xl0=[0,[0,4,[0,6]]],rl0=[0,[0,6,[0,6]]],el0=[0,[0,8,[0,7]]],tl0=[0,[0,9,[0,7]]],nl0=[0,[0,10,[0,7]]],ul0=[0,[0,11,[0,8]]],il0=[0,[0,12,[0,8]]],fl0=[0,[0,15,[0,9]]],cl0=[0,[0,13,[0,9]]],sl0=[0,[0,14,[1,10]]],al0=[0,[0,16,[0,9]]],ol0=[0,[0,21,[0,6]]],vl0=[0,[0,20,[0,6]]],ll0=[22,Vg],pl0=[13,"JSX fragment"],kl0=Mo,ml0=cn,hl0=[0,tn],dl0=[1,tn],yl0=[0,Z0,Z0,0],gl0=[0,Mm],wl0=Z0,_l0=[0,"a number or string literal"],bl0=[0,Z0,'""',0],Tl0=[0,0],El0=[0,"a number literal"],Sl0=[0,[0,0,Y1,0]],Al0=[0,81],Pl0=[20,hR],Il0=[20,Zl],Nl0=Ml,jl0=[0,Z0,0],Cl0="unexpected PrivateName in Property, expected a PrivateField",Ol0=[0,0,0],Dl0=za,Fl0="Must be one of the above",Rl0=[0,1],Ll0=[0,1],Ml0=[0,1],ql0=za,Ul0=za,Bl0=T9,Xl0="Internal Error: private name found in object props",Yl0=[0,0,0,0],zl0=[0,oF],Kl0=[19,[0,0]],Jl0=[0,oF],Gl0=gw,Wl0="Nooo: ",Vl0=Go,$l0="Parser error: No such thing as an expression pattern!",Ql0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Hl0=[0,"src/parser/parser_flow.ml",Ap,28],Zl0=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],x60=EO,r60=vx,e60=cD,t60=oD,n60=oD,u60=cD,i60=qf,f60=gO,c60=I2,s60=g2,a60="InterpreterDirective",o60="interpreter",v60="Program",l60=Jl,p60="BreakStatement",k60=Jl,m60="ContinueStatement",h60="DebuggerStatement",d60=iv,y60="DeclareExportAllDeclaration",g60=iv,w60=b9,_60=KT,b60=Go,T60="DeclareExportDeclaration",E60=I2,S60=Vr,A60="DeclareModule",P60=u1,I60="DeclareModuleExports",N60=I2,j60=Vr,C60="DeclareNamespace",O60=y3,D60=I2,F60="DoWhileStatement",R60="EmptyStatement",L60=TE,M60=KT,q60="ExportDefaultDeclaration",U60=TE,B60=TS,X60=iv,Y60="ExportAllDeclaration",z60=TE,K60=iv,J60=b9,G60=KT,W60="ExportNamedDeclaration",V60="directive",$60=n1,Q60="ExpressionStatement",H60=I2,Z60="update",x40=y3,r40=Gc,e40="ForStatement",t40="each",n40=I2,u40=en,i40=Qs,f40="ForInStatement",c40=nv,s40=I2,a40=en,o40=Qs,v40="ForOfStatement",l40=_D,p40=kP,k40=y3,m40="IfStatement",h40=qf,d40=Zs,y40=g2,g40=QO,w40=iv,_40=b9,b40="ImportDeclaration",T40=I2,E40=Jl,S40="LabeledStatement",A40=t9,P40=y1,I40="MatchStatement",N40=y1,j40="ReturnStatement",C40=t9,O40="discriminant",D40="SwitchStatement",F40=y1,R40="ThrowStatement",L40="finalizer",M40="handler",q40=fn,U40="TryStatement",B40=I2,X40=y3,Y40="WhileStatement",z40=I2,K40=G4,J40="WithStatement",G40=sT,W40="ArrayExpression",V40=J1,$40=Dm,Q40=n1,H40=Me,Z40=Ld,xp0=Ka,rp0=I2,ep0=un,tp0=Vr,np0="ArrowFunctionExpression",up0=n1,ip0="AsConstExpression",fp0=u1,cp0=n1,sp0="AsExpression",ap0=T9,op0=en,vp0=Qs,lp0=xv,pp0="AssignmentExpression",kp0=en,mp0=Qs,hp0=xv,dp0="BinaryExpression",yp0="CallExpression",gp0=_D,wp0=kP,_p0=y3,bp0="ConditionalExpression",Tp0=iv,Ep0="ImportExpression",Sp0=RF,Ap0=IR,Pp0=Vg,Ip0=en,Np0=Qs,jp0=xv,Cp0="LogicalExpression",Op0=t9,Dp0=y1,Fp0="MatchExpression",Rp0="MemberExpression",Lp0=M8,Mp0=Xl,qp0="MetaProperty",Up0=lb,Bp0=jk,Xp0=pD,Yp0="NewExpression",zp0=bk,Kp0="ObjectExpression",Jp0=at,Gp0="OptionalCallExpression",Wp0=at,Vp0="OptionalMemberExpression",$p0=HF,Qp0="SequenceExpression",Hp0="Super",Zp0="ThisExpression",xk0=u1,rk0=n1,ek0="TypeCastExpression",tk0=u1,nk0=n1,uk0="SatisfiesExpression",ik0=y1,fk0="AwaitExpression",ck0=Ue,sk0=q7,ak0=FO,ok0=KL,vk0=Zs,lk0=Ws,pk0=Kl,kk0="matched above",mk0=y1,hk0=zD,dk0=xv,yk0="UnaryExpression",gk0=TD,wk0=GR,_k0=zD,bk0=y1,Tk0=xv,Ek0="UpdateExpression",Sk0="delegate",Ak0=y1,Pk0="YieldExpression",Ik0=AO,Nk0=I2,jk0=_e,Ck0="MatchExpressionCase",Ok0=AO,Dk0=I2,Fk0=_e,Rk0="MatchStatementCase",Lk0=tk,Mk0=_e,qk0=Xa,Uk0="MatchObjectPatternProperty",Bk0=M8,Xk0="base",Yk0="MatchMemberPattern",zk0="literal",Kk0="MatchLiteralPattern",Jk0="MatchWildcardPattern",Gk0=Ue,Wk0=q7,Vk0=y1,$k0=xv,Qk0="MatchUnaryPattern",Hk0=Fl,Zk0=bk,x80="MatchObjectPattern",r80=Fl,e80=sT,t80="MatchArrayPattern",n80="patterns",u80="MatchOrPattern",i80=Um,f80=_e,c80="MatchAsPattern",s80=Vr,a80="MatchIdentifierPattern",o80=Vs,v80=Vr,l80="MatchBindingPattern",p80=y1,k80="MatchRestPattern",m80="Unexpected FunctionDeclaration with BodyExpression",h80="HookDeclaration",d80=n1,y80=Me,g80=Ld,w80=Ka,_80="FunctionDeclaration",b80=J1,T80=Dm,E80=I2,S80=un,A80=Vr,P80="Unexpected FunctionExpression with BodyExpression",I80=J1,N80=Dm,j80=n1,C80=Me,O80=Ld,D80=Ka,F80=I2,R80=un,L80=Vr,M80="FunctionExpression",q80=at,U80=u1,B80=qe,X80=nS,Y80=at,z80=u1,K80=qe,J80="PrivateIdentifier",G80=at,W80=u1,V80=qe,$80=nS,Q80=kP,H80=y3,Z80="SwitchCase",xm0=I2,rm0="param",em0="CatchClause",tm0=I2,nm0="BlockStatement",um0=Vs,im0=Vr,fm0="DeclareVariable",cm0="DeclareHook",sm0=Me,am0="DeclareFunction",om0=Vr,vm0=vR,lm0=cv,pm0=Qf,km0=I2,mm0=J1,hm0=Vr,dm0="DeclareClass",ym0=J1,gm0=d9,wm0=un,_m0=Fl,bm0=un,Tm0=Vr,Em0="DeclareComponent",Sm0=J1,Am0=d9,Pm0=Fl,Im0=un,Nm0="ComponentTypeAnnotation",jm0=at,Cm0=u1,Om0=qe,Dm0="ComponentTypeParameter",Fm0=I2,Rm0=Vr,Lm0="DeclareEnum",Mm0=Qf,qm0=I2,Um0=J1,Bm0=Vr,Xm0="DeclareInterface",Ym0=g2,zm0=qf,Km0=TS,Jm0="ExportNamespaceSpecifier",Gm0=en,Wm0=J1,Vm0=Vr,$m0="DeclareTypeAlias",Qm0=en,Hm0=J1,Zm0=Vr,x50="TypeAlias",r50="DeclareOpaqueType",e50="OpaqueType",t50="supertype",n50="impltype",u50=J1,i50=Vr,f50="ClassDeclaration",c50="ClassExpression",s50=Rk,a50=cv,o50="superTypeParameters",v50="superClass",l50=J1,p50=I2,k50=Vr,m50=n1,h50="Decorator",d50=J1,y50=Vr,g50="ClassImplements",w50=I2,_50="ClassBody",b50=Ro,T50=k6,E50=Bo,S50=T3,A50=Rk,P50=k3,I50=Re,N50=Vs,j50=g2,C50=Xa,O50="MethodDefinition",D50=g6,F50=Rk,R50=K1,L50=Re,M50=k3,q50=u1,U50=g2,B50=Xa,X50=SL,Y50="Internal Error: Private name found in class prop",z50=g6,K50=Rk,J50=K1,G50=Re,W50=k3,V50=u1,$50=g2,Q50=Xa,H50=SL,Z50=J1,xh0=d9,rh0=un,eh0=Vr,th0=I2,nh0="ComponentDeclaration",uh0=y1,ih0=VT,fh0=en,ch0=Qs,sh0=G8,ah0=tk,oh0=i6,vh0=qe,lh0="ComponentParameter",ph0=Gc,kh0=Vr,mh0="EnumBigIntMember",hh0=Vr,dh0=BD,yh0=Gc,gh0=Vr,wh0="EnumStringMember",_h0=Vr,bh0=BD,Th0=Gc,Eh0=Vr,Sh0="EnumNumberMember",Ah0=Gc,Ph0=Vr,Ih0="EnumBooleanMember",Nh0=t6,jh0=B8,Ch0=Ul,Oh0="EnumBooleanBody",Dh0=t6,Fh0=B8,Rh0=Ul,Lh0="EnumNumberBody",Mh0=t6,qh0=B8,Uh0=Ul,Bh0="EnumStringBody",Xh0=t6,Yh0=Ul,zh0="EnumSymbolBody",Kh0=t6,Jh0=B8,Gh0=Ul,Wh0="EnumBigIntBody",Vh0=I2,$h0=Vr,Qh0="EnumDeclaration",Hh0=Qf,Zh0=I2,xd0=J1,rd0=Vr,ed0="InterfaceDeclaration",td0=J1,nd0=Vr,ud0="InterfaceExtends",id0=u1,fd0=bk,cd0="ObjectPattern",sd0=u1,ad0=sT,od0="ArrayPattern",vd0=en,ld0=Qs,pd0=G8,kd0=u1,md0=qe,hd0=nS,dd0=y1,yd0=VT,gd0=y1,wd0=VT,_d0=en,bd0=Qs,Td0=G8,Ed0=Gc,Sd0=Gc,Ad0=Bo,Pd0=T3,Id0=fD,Nd0=k3,jd0=tk,Cd0=k6,Od0=Vs,Dd0=g2,Fd0=Xa,Rd0=gF,Ld0=y1,Md0=lD,qd0=en,Ud0=Qs,Bd0=G8,Xd0=k3,Yd0=tk,zd0=k6,Kd0=Vs,Jd0=g2,Gd0=Xa,Wd0=gF,Vd0=y1,$d0=lD,Qd0=It,Hd0=g2,Zd0=o3,xy0=Z0,ry0=It,ey0=av,ty0=g2,ny0=o3,uy0=It,iy0=g2,fy0=o3,cy0=ra,sy0=Gs,ay0=It,oy0=g2,vy0=o3,ly0="flags",py0=_e,ky0="regex",my0=It,hy0=g2,dy0=o3,yy0=It,gy0=g2,wy0=o3,_y0=HF,by0="quasis",Ty0="TemplateLiteral",Ey0="cooked",Sy0=It,Ay0="tail",Py0=g2,Iy0="TemplateElement",Ny0="quasi",jy0="tag",Cy0="TaggedTemplateExpression",Oy0=Yl,Dy0=j3,Fy0=u6,Ry0=Vs,Ly0="declarations",My0="VariableDeclaration",qy0=Gc,Uy0=Vr,By0="VariableDeclarator",Xy0="plus",Yy0=rR,zy0=Zo,Ky0=qa,Jy0=yw,Gy0="in-out",Wy0=Vs,Vy0="Variance",$y0="AnyTypeAnnotation",Qy0="MixedTypeAnnotation",Hy0="EmptyTypeAnnotation",Zy0="VoidTypeAnnotation",x90="NullLiteralTypeAnnotation",r90="SymbolTypeAnnotation",e90="NumberTypeAnnotation",t90="BigIntTypeAnnotation",n90="StringTypeAnnotation",u90="BooleanTypeAnnotation",i90=u1,f90="NullableTypeAnnotation",c90="UnknownTypeAnnotation",s90="NeverTypeAnnotation",a90="UndefinedTypeAnnotation",o90=Vs,v90=u1,l90="parameterName",p90="TypePredicate",k90="HookTypeAnnotation",m90="FunctionTypeAnnotation",h90=Qo,d90=J1,y90=Fl,g90=Dm,w90=un,_90=at,b90=u1,T90=qe,E90=uR,S90=at,A90=u1,P90=qe,I90=uR,N90=[0,0,0,0,0],j90="internalSlots",C90="callProperties",O90="indexers",D90=bk,F90="exact",R90=$R,L90="ObjectTypeAnnotation",M90=fD,q90="There should not be computed object type property keys",U90=Gc,B90=Bo,X90=T3,Y90=Vs,z90=K1,K90=kg,J90=Re,G90=at,W90=k6,V90=g2,$90=Xa,Q90="ObjectTypeProperty",H90=y1,Z90="ObjectTypeSpreadProperty",xg0=K1,rg0=Re,eg0=g2,tg0=Xa,ng0=Vr,ug0="ObjectTypeIndexer",ig0=Re,fg0=g2,cg0="ObjectTypeCallProperty",sg0=at,ag0=K1,og0="sourceType",vg0="propType",lg0="keyTparam",pg0="ObjectTypeMappedTypeProperty",kg0=g2,mg0=k6,hg0=Re,dg0=at,yg0=Vr,gg0="ObjectTypeInternalSlot",wg0=I2,_g0=Qf,bg0="InterfaceTypeAnnotation",Tg0=JR,Eg0="ArrayTypeAnnotation",Sg0="falseType",Ag0="trueType",Pg0="extendsType",Ig0="checkType",Ng0="ConditionalTypeAnnotation",jg0="typeParameter",Cg0="InferTypeAnnotation",Og0=Vr,Dg0=MF,Fg0="QualifiedTypeIdentifier",Rg0=J1,Lg0=Vr,Mg0="GenericTypeAnnotation",qg0="indexType",Ug0="objectType",Bg0="IndexedAccessType",Xg0=at,Yg0="OptionalIndexedAccessType",zg0=j9,Kg0="UnionTypeAnnotation",Jg0=j9,Gg0="IntersectionTypeAnnotation",Wg0=jk,Vg0=y1,$g0="TypeofTypeAnnotation",Qg0=Vr,Hg0=MF,Zg0="QualifiedTypeofIdentifier",xw0=y1,rw0="KeyofTypeAnnotation",ew0=_3,tw0=DF,nw0=cF,uw0=u1,iw0=xv,fw0="TypeOperator",cw0=Zo,sw0=$R,aw0="elementTypes",ow0="TupleTypeAnnotation",vw0=at,lw0=K1,pw0=JR,kw0=Jl,mw0="TupleTypeLabeledElement",hw0=u1,dw0=Jl,yw0="TupleTypeSpreadElement",gw0=It,ww0=g2,_w0="StringLiteralTypeAnnotation",bw0=It,Tw0=g2,Ew0="NumberLiteralTypeAnnotation",Sw0=It,Aw0=g2,Pw0="BigIntLiteralTypeAnnotation",Iw0=ra,Nw0=Gs,jw0=It,Cw0=g2,Ow0="BooleanLiteralTypeAnnotation",Dw0="ExistsTypeAnnotation",Fw0=u1,Rw0=mF,Lw0=u1,Mw0=mF,qw0=un,Uw0="TypeParameterDeclaration",Bw0="usesExtendsBound",Xw0=Go,Yw0=K1,zw0="bound",Kw0=qe,Jw0="TypeParameter",Gw0=un,Ww0=kR,Vw0=un,$w0=kR,Qw0=qo,Hw0=EL,Zw0="closingElement",x_0="openingElement",r_0="JSXElement",e_0="closingFragment",t_0=EL,n_0="openingFragment",u_0="JSXFragment",i_0=jk,f_0="selfClosing",c_0="attributes",s_0=qe,a_0="JSXOpeningElement",o_0="JSXOpeningFragment",v_0=qe,l_0="JSXClosingElement",p_0="JSXClosingFragment",k_0=g2,m_0=qe,h_0="JSXAttribute",d_0=y1,y_0="JSXSpreadAttribute",g_0="JSXEmptyExpression",w_0=n1,__0="JSXExpressionContainer",b_0=n1,T_0="JSXSpreadChild",E_0=It,S_0=g2,A_0="JSXText",P_0=M8,I_0=G4,N_0="JSXMemberExpression",j_0=qe,C_0=dT,O_0="JSXNamespacedName",D_0=qe,F_0="JSXIdentifier",R_0=TS,L_0=i6,M_0="ExportSpecifier",q_0=i6,U_0="ImportDefaultSpecifier",B_0=i6,X_0="ImportNamespaceSpecifier",Y_0=QO,z_0=i6,K_0="imported",J_0="ImportSpecifier",G_0="Line",W_0="Block",V_0=g2,$_0=g2,Q_0="DeclaredPredicate",H_0="InferredPredicate",Z_0=lb,xb0=jk,rb0=pD,eb0=k3,tb0=M8,nb0=G4,ub0="message",ib0=vx,fb0=CO,cb0=wD,sb0=iv,ab0=f6,ob0=ik,vb0=[0,B1,Gi,Fi,M7,K1,_f,c7,Vf,nc,df,Ai,gu,gi,nu,S7,s7,Ru,Tf,D7,Yu,zi,N7,zn,Rf,fu,Z7,Xn,Kf,is,Jf,rf,cf,ts,gc,U7,ze,Wn,Oi,x7,Nc,Ti,Xf,Oc,Ge,Tc,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ined",as(0)];function Eb0(x,r){var e=Nx(r)-1|0,t=0;if(e>=0)for(var u=t;;){x(J0(r,u));var i=u+1|0;if(e===u)break;var u=i}}var Sb0=fx,Ab0=[0,0];function Pb0(x){var r=NK(0),e=pq(O),t=r.length-1,u=S2((t*8|0)+1|0),i=t-1|0,c=0;if(i>=0)for(var v=c;;){Pz(u,v*8|0,T6(N2(r,v)[1+v]));var a=v+1|0;if(i===v)break;var v=a}ua(u,t*8|0,1);var l=lq(u);ua(u,t*8|0,2);var m=lq(u),h=a5(m,8),T=a5(m,0),b=a5(l,8);return kq(e,a5(l,0),b,T,h),e}for(;;){var Yq=R3(VN);let x=[0,1],r=Yq;if(!(1-Bm(VN,Yq,function(e){return Bm(x,1,0)&&(yv(hv(Uq),O),yv(hv(Bq),O)),d(r,0)})))break}if(R3(Ab0))throw W0([0,u5,UV],1);var pa=ZN([0,fx]),gv=ZN([0,fx]),Ha=ZN([0,We]),zq=YN(0,0),Ib0=2,Nb0=[0,0];function Kq(x){return 2=0)for(var c=i;;){var v=(c*2|0)+3|0,a=N2(x,c)[1+c];N2(e,v)[1+v]=a;var l=c+1|0;if(u===c)break;var c=l}return[0,Ib0,e,gv[1],Ha[1],0,0,pa[1],0]}function Aj(x,r){var e=x[2].length-1;if(e=0)for(var u=t;;){var i=q2(x,u);r[1]=(kk*r[1]|0)+i|0;var c=u+1|0;if(e===u)break;var u=c}r[1]=r[1]&$F;var v=1073741823r)return e;var t=[0,x[1+r],e],r=r-1|0,e=t}}function jj(x,r){try{var e=pa[17].call(null,r,x[7]);return e}catch(i){var t=U2(i);if(t!==os)throw W0(t,0);var u=x[1];return x[1]=u+1|0,P(r,Z0)&&(x[7]=pa[2].call(null,r,u,x[7])),u}}function Cj(x){return B3(x,0)?[0]:x}function Oj(x,r,e,t,u,i){var c=u[2],v=u[4],a=Nj(r),l=Nj(e),m=Nj(t),h=vs(function(H){return z6(x,H)},l),T=vs(function(H){return z6(x,H)},m);x[5]=[0,[0,x[3],x[4],x[6],x[7],h,a],x[5]],x[7]=pa[24].call(null,function(H,t0,c0){return HN(H,a)?pa[2].call(null,H,t0,c0):c0},x[7],pa[1]);var b=[0,gv[1]],N=[0,Ha[1]];KM(function(H,t0){b[1]=gv[2].call(null,H,t0,b[1]);var c0=N[1];try{var r0=Ha[17].call(null,t0,x[4]),v0=r0}catch(g0){var a0=U2(g0);if(a0!==os)throw W0(a0,0);var v0=1}N[1]=Ha[2].call(null,t0,v0,c0)},m,T),KM(function(H,t0){b[1]=gv[2].call(null,H,t0,b[1]),N[1]=Ha[2].call(null,t0,0,N[1])},l,h),x[3]=b[1],x[4]=N[1],x[6]=QN(function(H,t0){return HN(H[1],h)?t0:[0,H,t0]},x[6],0);var j=i?d(c(x),v):c(x),I=C6(x[5]),F=I[6],M=I[5],z=I[4],B=I[3],K=I[2],n0=I[1];x[5]=zM(x[5]),x[7]=m1(function(H,t0){var c0=pa[17].call(null,t0,x[7]);return pa[2].call(null,t0,c0,H)},z,F),x[3]=n0,x[4]=K,x[6]=QN(function(H,t0){return HN(H[1],M)?t0:[0,H,t0]},x[6],B);var $=[0,o5(function(H){var t0=z6(x,H);try{for(var c0=x[6];;){if(!c0)throw W0(os,1);var r0=c0[1],v0=c0[2],a0=r0[2];if(pM(r0[1],t0)===0)return a0;var c0=v0}}catch(i0){var g0=U2(i0);if(g0===os)return N2(x[2],t0)[1+t0];throw W0(g0,0)}},Cj(t)),0];return yz([0,[0,j],[0,o5(function(H){try{var t0=pa[17].call(null,H,x[7]);return t0}catch(r0){var c0=U2(r0);throw c0===os?W0([0,Nr,BV],1):W0(c0,0)}},Cj(r)),$]])}function d5(x,r){if(x===0)var e=Jq([0]);else{var t=Jq(o5(jb0,x)),u=x.length-1-1|0,i=0;if(u>=0)for(var c=i;;){var v=(c*2|0)+2|0;t[3]=gv[2].call(null,x[1+c],v,t[3]),t[4]=Ha[2].call(null,v,1,t[4]);var a=c+1|0;if(u===c)break;var c=a}var e=t}var l=r(e);return e[8]=ix(e[8]),Aj(e,3+((N2(e[2],1)[2]*16|0)/32|0)|0),[0,d(l,0),r,,0]}function y5(x,r){if(x)return x;var e=YN(n2,r[1]);return e[1]=r[2],TK(e)}function Dj(x,r,e){if(x)return r;var t=e[8];if(t!==0)for(var u=t;u;){var i=u[2];d(u[1],r);var u=i}return r}function g5(x){var r=Pj(x);x:{if(r%2|0&&(2+((N2(x[2],1)[2]*16|0)/32|0)|0)>=r){var e=Pj(x);break x}var e=r}return N2(x[2],e)[1+e]=0,e}function Fj(x,r){for(var e=[0,0],t=r.length-1;;){if(e[1]>=t)return;var u=e[1],i=function(K0){e[1]++;var A0=e[1];return N2(r,A0)[1+A0]},c=N2(r,u)[1+u],v=i(O);if(typeof v=="number")switch(v){case 0:let K0=i(O);var S0=function(ux){return K0};break;case 1:let A0=i(O);var S0=function(ux){return ux[1+A0]};break;case 2:var a=i(O);let $0=a,ex=i(O);var S0=function(ux){return ux[1+$0][1+ex]};break;case 3:let xx=i(O);var S0=function(ux){return d(ux[1][1+xx],ux)};break;case 4:let tx=i(O);var S0=function(ux,Lx){return ux[1+tx]=Lx,0};break;case 5:var l=i(O);let z0=l,px=i(O);var S0=function(ux){return d(z0,px)};break;case 6:var m=i(O);let sx=m,Q=i(O);var S0=function(ux){return d(sx,ux[1+Q])};break;case 7:var h=i(O),T=i(O);let b0=h,U=T,h0=i(O);var S0=function(ux){return d(b0,ux[1+U][1+h0])};break;case 8:var b=i(O);let _0=b,m0=i(O);var S0=function(ux){return d(_0,d(ux[1][1+m0],ux))};break;case 9:var N=i(O),j=i(O);let T0=N,X=j,Gx=i(O);var S0=function(ux){return p(T0,X,Gx)};break;case 10:var I=i(O),F=i(O);let Px=I,G0=F,Kr=i(O);var S0=function(ux){return p(Px,G0,ux[1+Kr])};break;case 11:var M=i(O),z=i(O),B=i(O);let S=M,G=z,rx=B,yx=i(O);var S0=function(ux){return p(S,G,ux[1+rx][1+yx])};break;case 12:var K=i(O),n0=i(O);let Ex=K,nx=n0,p0=i(O);var S0=function(ux){return p(Ex,nx,d(ux[1][1+p0],ux))};break;case 13:var $=i(O),H=i(O);let Fx=$,Sx=H,bx=i(O);var S0=function(ux){return p(Fx,ux[1+Sx],bx)};break;case 14:var t0=i(O),c0=i(O),r0=i(O);let B0=t0,Wx=c0,Yx=r0,ax=i(O);var S0=function(ux){return p(B0,ux[1+Wx][1+Yx],ax)};break;case 15:var v0=i(O),a0=i(O);let Qx=v0,kx=a0,tr=i(O);var S0=function(ux){return p(Qx,d(ux[1][1+kx],ux),tr)};break;case 16:var g0=i(O);let sr=g0,Mr=i(O);var S0=function(ux){return p(ux[1][1+sr],ux,Mr)};break;case 17:var i0=i(O);let a2=i0,_2=i(O);var S0=function(ux){return p(ux[1][1+a2],ux,ux[1+_2])};break;case 18:var s0=i(O),d0=i(O);let i2=s0,Q2=d0,jx=i(O);var S0=function(ux){return p(ux[1][1+i2],ux,ux[1+Q2][1+jx])};break;case 19:var w0=i(O);let _=w0,V=i(O);var S0=function(ux){var Lx=d(ux[1][1+V],ux);return p(ux[1][1+_],ux,Lx)};break;case 20:var M0=i(O),C0=i(O);g5(x);let lx=M0,U0=C0;var S0=function(ux){return d(Bx(U0,lx,0),U0)};break;case 21:var D0=i(O),I0=i(O);g5(x);let ox=D0,wx=I0;var S0=function(ux){var Lx=ux[1+wx];return d(Bx(Lx,ox,0),Lx)};break;case 22:var j0=i(O),y0=i(O),Y0=i(O);g5(x);let Cr=j0,Hx=y0,Zr=Y0;var S0=function(ux){var Lx=ux[1+Hx][1+Zr];return d(Bx(Lx,Cr,0),Lx)};break;default:var L=i(O),N0=i(O);g5(x);let dr=L,Or=N0;var S0=function(ux){var Lx=d(ux[1][1+Or],ux);return d(Bx(Lx,dr,0),Lx)}}else var S0=v;Gq(x,c,S0),e[1]++}}function Wq(x,r){var e=r.length-1,t=YN(0,e),u=e-1|0,i=0;if(u>=0)for(var c=i;;){var v=N2(r,c)[1+c];if(typeof v=="number")switch(v){case 0:let N=c;var a=function(z){var B=t[1+N];if(j===B)throw W0([0,I6,x],1);return d(B,z)};let j=a;var h=a;break;case 1:var l=[];let I=l,F=c;Fr(l,[A3,function(z){var B=t[1+F];if(I===B)throw W0([0,I6,x],1);var K=pv(B);if(D3===K)return B[1];if(A3!==K&&zo!==K)return B;if(xK(B)!==0)throw W0(Tb0,1);var n0=B[1];B[1]=0;try{var $=d(n0,0);return B[1]=$,rK(B),$}catch(t0){var H=U2(t0);throw B[1]=function(c0){throw W0(H,0)},Zz(B),W0(H,0)}}]);var h=l;break;default:var m=function(z){throw W0([0,I6,x],1)},h=[0,m,m,m,0]}else var h=v[0]===0?Wq(x,v[1]):v[1];t[1+c]=h;var T=c+1|0;if(u===c)break;var c=T}return t}function Vq(x,r,e){if(pv(e)===0&&x.length-1<=e.length-1){var t=x.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=e[1+i],v=N2(x,i)[1+i];x:if(typeof v=="number"){if(v===2){if(pv(c)===0&&c.length-1===4){for(var a=0,l=r[1+i];;){l[1+a]=c[1+a];var m=a+1|0;if(a===3)break;var a=m}break x}throw W0([0,Nr,XV],1)}r[1+i]=c}else v[0]===0&&Vq(v[1],r[1+i],c);var h=i+1|0;if(t===i)break;var i=h}return}throw W0([0,Nr,YV],1)}try{var Ob0=jM("TMPDIR"),Rj=Ob0}catch(x){var $q=U2(x);if($q!==os)throw W0($q,0);var Rj=zV}var Db0=[0,,,,,,,,,,Rj];try{var Fb0=jM("TEMP"),Qq=Fb0}catch(x){var Hq=U2(x);if(Hq!==os)throw W0(Hq,0);var Qq=KV}var Rb0=[0,,,,,,,,,,Qq],Lb0=[0,,,,,,,,,,Rj],Mb0=P(XM,GD)?P(XM,"Win32")?Db0:Rb0:Lb0,qb0=Mb0[10];ls(0,Pb0),ls([0,function(x){return x}],function(x){return qb0});function ps(x,r){function e(t){return lt(x,t)}return c6<=r?(e(w3|r>>>18|0),e(M2|(r>>>12|0)&63),e(M2|(r>>>6|0)&63),e(M2|r&63)):n_<=r?(e(s3|r>>>12|0),e(M2|(r>>>6|0)&63),e(M2|r&63)):M2<=r?(e(a3|r>>>6|0),e(M2|r&63)):e(r)}var Za=[n2,WV,as(0)],Zq=0,xU=0,rU=0,eU=0,tU=0,nU=0,uU=0,iU=0,fU=0,cU=0;function y(x){if(x[3]===x[2])return-1;var r=x[1][1+x[3]];return x[3]=x[3]+1|0,r===10&&(x[5]!==0&&(x[5]=x[5]+1|0),x[4]=x[3]),r}function W(x,r){x[9]=x[3],x[10]=x[4],x[11]=x[5],x[12]=r}function or(x){return x[6]=x[3],x[7]=x[4],x[8]=x[5],W(x,-1)}function w(x){return x[3]=x[9],x[4]=x[10],x[5]=x[11],x[12]}function xl(x){x[3]=x[6],x[4]=x[7],x[5]=x[8]}function Lj(x,r){x[6]=r}function w5(x){return x[3]-x[6]|0}function l2(x){var r=x[3]-x[6]|0,e=x[6],t=x[1];return 0<=e&&0<=r&&(t.length-1-r|0)>=e?gz(t,e,r):R1(qV)}function sU(x){var r=x[6];return N2(x[1],r)[1+r]}function K6(x,r,e,t){for(var u=[0,r],i=[0,e],c=[0,0];;){if(0>=i[1])return c[1];var v=x[1+u[1]];if(0>v)throw W0(Za,1);if(Br>>18|0),Xr(t,c[1]+1|0,M2|(v>>>12|0)&63),Xr(t,c[1]+2|0,M2|(v>>>6|0)&63),Xr(t,c[1]+3|0,M2|v&63),c[1]=c[1]+4|0}else Xr(t,c[1],s3|v>>>12|0),Xr(t,c[1]+1|0,M2|(v>>>6|0)&63),Xr(t,c[1]+2|0,M2|v&63),c[1]=c[1]+3|0;else Xr(t,c[1],a3|v>>>6|0),Xr(t,c[1]+1|0,M2|v&63),c[1]=c[1]+2|0;else Xr(t,c[1],v),c[1]++;u[1]++,i[1]+=-1}}function aU(x){for(var r=Nx(x),e=$a(r,0),t=[0,0],u=[0,0];;){if(t[1]>=r)return[0,e,u[1],cU,fU,iU,uU,nU,tU,eU,rU,xU,Zq];var i=J0(x,t[1]);x:{if(a3<=i){if(w3>i){if(s3>i){var c=J0(x,t[1]+1|0);if((c>>>6|0)!==2)throw W0(Za,1);e[1+u[1]]=(i&31)<<6|c&63,t[1]=t[1]+2|0;break x}var v=J0(x,t[1]+1|0),a=J0(x,t[1]+2|0),l=(i&15)<<12|(v&63)<<6|a&63,m=(v>>>6|0)!==2?1:0,h=m||((a>>>6|0)!==2?1:0);if(h)var b=h;else var T=55296<=l?1:0,b=T&&(l<=57343?1:0);if(b)throw W0(Za,1);e[1+u[1]]=l,t[1]=t[1]+3|0;break x}if(n2>i){var N=J0(x,t[1]+1|0),j=J0(x,t[1]+2|0),I=J0(x,t[1]+3|0),F=(N>>>6|0)!==2?1:0;if(F)var z=F;else var M=(j>>>6|0)!==2?1:0,z=M||((I>>>6|0)!==2?1:0);if(z)throw W0(Za,1);var B=(i&7)<<18|(N&63)<<12|(j&63)<<6|I&63;if(rki){e[1+u[1]]=i,t[1]++;break x}throw W0(Za,1)}u[1]++}}function J6(x,r,e){var t=x[6]+r|0,u=S2(e*4|0),i=x[1];if((t+e|0)<=i.length-1)return G3(u,0,K6(i,t,e,u));throw W0([0,Nr,GV],1)}function Dx(x){var r=x[6],e=x[3]-r|0,t=S2(e*4|0);return G3(t,0,K6(x[1],r,e,t))}function _5(x,r){var e=x[6],t=x[3]-e|0,u=S2(t*4|0);return nj(r,u,0,K6(x[1],e,t,u))}function G6(x){var r=x.length-1,e=S2(r*4|0);return G3(e,0,K6(x,0,r,e))}function oU(x,r){x[3]=x[3]-r|0}function ks(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function wv(x,r,e,t){var u=ks(x),i=ks(t),c=i<=u?u+1|0:i+1|0;return c===1?[0,r,e]:[1,c,r,e,x,t]}function b5(x,r,e,t){var u=ks(x),i=ks(t),c=i<=u?u+1|0:i+1|0;return[1,c,r,e,x,t]}function vU(x,r,e,t){var u=ks(x),i=ks(t);if((i+2|0)=i)return wv(x,r,e,t);var j=t[5],I=t[4],F=t[3],M=t[2],z=ks(I);if(z<=ks(j))return b5(wv(x,r,e,I),M,F,j);var B=I[4],K=I[3],n0=I[2],$=wv(I[5],M,F,j);return b5(wv(x,r,e,B),n0,K,$)}function xo(x){return typeof x=="number"?0:x[0]===0?1:x[1]}function ka(x,r,e){x:{r:{if(typeof x=="number"){if(typeof e=="number")return[0,r];if(e[0]===1)break r}else{if(x[0]!==0){var t=x[1];if(typeof e!="number"&&e[0]===1){var u=e[1],i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}var c=t;break x}if(typeof e!="number"&&e[0]===1)break r}return[1,2,r,x,e]}var c=e[1]}return[1,c+1|0,r,x,e]}function T5(x,r,e){var t=xo(x),u=xo(e),i=u<=t?t+1|0:u+1|0;return[1,i,r,x,e]}function lU(x,r,e){var t=xo(x),u=xo(e);if((u+2|0)=u)return ka(x,r,e);var T=e[4],b=e[3],N=e[2],j=xo(b);if(j<=xo(T))return T5(ka(x,r,b),N,T);var I=b[3],F=b[2],M=ka(b[4],N,T);return T5(ka(x,r,I),F,M)}var Mj=0;function pU(x){function r(e,t){if(typeof t=="number")return[0,e];if(t[0]===0){var u=t[1],i=p(x[1],e,u);return i===0?t:0<=i?ka(t,e,Mj):ka([0,e],u,Mj)}var c=t[4],v=t[3],a=t[2],l=p(x[1],e,a);if(l===0)return t;if(0<=l){var m=r(e,c);return c===m?t:lU(v,a,m)}var h=r(e,v);return v===h?t:lU(h,a,c)}return[0,Mj,,function(e,t){for(var u=t;;){if(typeof u=="number")return 0;if(u[0]===0)return p(x[1],e,u[1])===0?1:0;var i=u[4],c=u[3],v=p(x[1],e,u[2]),a=v===0?1:0;if(a)return a;var l=0<=v?i:c,u=l}},r]}function kU(x){switch(x[0]){case 0:return 1;case 1:return 2;case 2:return 2;default:return 3}}function Ax(x,r){if(!r)return r;var e=r[1],t=d(x,e);return e===t?r:[0,t]}function O0(x,r,e,t,u){var i=p(x,r,e);return e===i?t:u(i)}function P0(x,r,e,t){var u=d(x,r);return r===u?e:t(u)}function W2(x,r){var e=r[1];return O0(x,e,r[2],r,function(t){return[0,e,t]})}function W6(x,r){return Ax(function(e){var t=e[1];return O0(x,t,e[2],e,function(u){return[0,t,u]})},r)}function fr(x,r){var e=m1(function(u,i){var c=u[2],v=u[1],a=d(x,i),l=c||(a!==i?1:0);return[0,[0,a,v],l]},S$,r),t=e[1];return e[2]?ix(t):r}var qj=d5(P$,function(x){var r=Ij(x,A$),e=r[1],t=r[2],u=r[3],i=r[4],c=r[5],v=r[6],a=r[7],l=r[8],m=r[9],h=r[10],T=r[11],b=r[12],N=r[13],j=r[14],I=r[15],F=r[16],M=r[17],z=r[18],B=r[19],K=r[20],n0=r[21],$=r[22],H=r[23],t0=r[24],c0=r[25],r0=r[26],v0=r[27],a0=r[28],g0=r[29],i0=r[30],s0=r[31],d0=r[32],w0=r[33],M0=r[34],C0=r[35],D0=r[36],I0=r[37],j0=r[38],y0=r[39],Y0=r[40],L=r[41],N0=r[42],S0=r[43],K0=r[44],A0=r[45],$0=r[46],ex=r[47],xx=r[48],tx=r[49],z0=r[50],px=r[51],sx=r[52],Q=r[53],b0=r[54],U=r[55],h0=r[56],_0=r[57],m0=r[59],T0=r[60],X=r[61],Gx=r[62],Px=r[63],G0=r[64],Kr=r[65],S=r[66],G=r[67],rx=r[68],yx=r[69],Ex=r[70],nx=r[71],p0=r[72],Fx=r[73],Sx=r[74],bx=r[75],B0=r[76],Wx=r[77],Yx=r[78],ax=r[79],Qx=r[80],kx=r[81],tr=r[82],sr=r[83],Mr=r[84],a2=r[85],_2=r[86],i2=r[87],Q2=r[88],jx=r[89],_=r[90],V=r[91],lx=r[92],U0=r[93],ox=r[94],wx=r[95],Cr=r[96],Hx=r[97],Zr=r[98],dr=r[99],Or=r[y2],x2=r[fe],ux=r[g1],Lx=r[sn],Zx=r[Be],qr=r[ui],Y2=r[Je],H2=r[K2],Kt=r[sv],dt=r[st],Jt=r[z1],C1=r[ce],q1=r[ea],b2=r[Te],wn=r[mr],_n=r[tv],bs=r[Wa],le=r[y6],Ze=r[P3],Ts=r[zl],Lv=r[vf],yt=r[m6],yr=r[s2],Ta=r[rn],Es=r[S3],gt=r[Ba],Mv=r[Sk],qv=r[Br],bn=r[M2],Ea=r[Xo],ko=r[d6],Sa=r[r6],Aa=r[r8],Pa=r[_k],mo=r[gR],Ss=r[iR],H1=r[ND],d1=r[$O],Ia=r[DI],As=r[JF],Gt=r[jL],Uv=r[ER],ho=r[VL],Bv=r[143],Xv=r[144],dl=r[145],Na=r[146],yo=r[147],go=r[148],ja=r[149],Ca=r[150],yl=r[OR],Ps=r[152],Yh=r[153],wo=r[154],T4=r[155],_o=r[156],gl=r[IL],E4=r[158],bo=r[159],S4=r[_L],zh=r[tL],Kh=r[RR],Jh=r[lr],Gh=r[mD],A4=r[wF],P4=r[xD],I4=r[kF],wl=r[YP],Y=r[Ap],A=r[Sd],D=r[Bw],f0=r[$D],k0=r[_R],R0=r[OL],Q0=r[FD],mx=r[UF],Ix=r[WR],Rx=r[ug],nr=r[YL],zx=r[Cg],ur=r[GE],kr=r[gy],rr=r[J9],Cx=r[p6],gr=r[_O],Er=r[hA],Jr=r[gp],Sr=r[B9],Gr=r[O8],k2=r[cR],P2=r[gL],Dr=r[a3],m2=r[kD],r2=r[II],Ar=r[Fb],wr=r[uL],f2=r[AD],Ur=r[CL],Qr=r[mL],T2=r[lL],Rr=r[tF],d2=r[rD],o2=r[Wd],c2=r[ZF],E2=r[QT],pe=r[s_],je=r[pF],xt=r[OO],U1=r[QD],e2=r[tD],Z1=r[G9],R2=r[ZD],wt=r[eD],O1=r[DL],_t=r[wg],Wt=r[kd],rt=r[lR],et=r[dO],Ox=r[lA],tt=r[hF],xe=r[KF],v1=r[YO],Ce=r[kk],Oe=r[s3],nt=r[WD],ut=r[zF],it=r[wR],r1=r[zO],bt=r[aL],Tt=r[fF],Is=r[qO],ft=r[hO],Vt=r[eL],D1=r[oL],Tn=r[TR],ke=r[AR],De=r[dL],$t=r[qF],Ns=r[Ry],En=r[w3],js=r[yF],re=r[XR],Et=r[LR],Cs=r[zo],Sn=r[ZT],Fe=r[A3],Os=r[ep],Ds=r[n2],To=r[VE],Eo=r[D3],Yv=r[zL],zv=r[g3],So=r[pE],Ao=r[d3],_l=r[Hp],Kv=r[Hl],bl=r[257],Tl=r[RO],Fs=r[wL],Po=r[260],Jv=r[261],El=r[262],Rs=r[263],Gv=r[264],Oa=r[265],Sl=r[VD],Wv=r[267],Io=r[268],Al=r[269],Da=r[270],Ls=r[qL],No=r[dD],jo=r[273],Fa=r[274],Pl=r[sD],Il=r[276],Nl=r[rF],Co=r[h_],An=r[$b],Ra=r[280],jl=r[iL],Oo=r[282],Vv=r[283],Ms=r[284],$v=r[285],St=r[WL],F1=r[XD],Qv=r[288],Hv=r[289],Cl=r[290],Do=r[UR],Fo=r[292],Zv=r[FF],Ol=r[294],x3=r[295],Wh=r[296],Qt=r[gD],Pn=r[298],r3=r[299],Vh=r[hD],qs=r[301],e3=r[_F],$h=r[SD],Qh=r[304],Hh=r[305],Zh=r[306],t3=r[ZR],N4=r[308],xd=r[iD],j4=r[NO];return Fj(x,[0,r[58],function(n,s){var f=s[2],o=f[4],k=f[3],g=f[1],E=f[2],C=s[1],R=p(n[1][1+C0],n,g),e0=p(n[1][1+L],n,k),l0=fr(d(n[1][1+jo],n),o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,E,e0,l0]]},tx,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+Qt],n),o,k,s,function(cx){return[0,o,[0,cx]]});case 1:var g=f[1];return O0(d(n[1][1+Ol],n),o,g,s,function(cx){return[0,o,[1,cx]]});case 2:var E=f[1];return O0(d(n[1][1+$v],n),o,E,s,function(cx){return[0,o,[2,cx]]});case 3:var C=f[1];return O0(d(n[1][1+Ls],n),o,C,s,function(cx){return[0,o,[3,cx]]});case 4:var R=f[1];return O0(d(n[1][1+Kv],n),o,R,s,function(cx){return[0,o,[4,cx]]});case 5:var e0=f[1];return O0(d(n[1][1+_l],n),o,e0,s,function(cx){return[0,o,[5,cx]]});case 6:var l0=f[1];return O0(d(n[1][1+Ao],n),o,l0,s,function(cx){return[0,o,[6,cx]]});case 7:var F0=f[1];return O0(d(n[1][1+So],n),o,F0,s,function(cx){return[0,o,[7,cx]]});case 8:var dx=f[1];return O0(d(n[1][1+zv],n),o,dx,s,function(cx){return[0,o,[8,cx]]});case 9:var Xx=f[1];return O0(d(n[1][1+Yv],n),o,Xx,s,function(cx){return[0,o,[9,cx]]});case 10:var Kx=f[1];return O0(d(n[1][1+To],n),o,Kx,s,function(cx){return[0,o,[10,cx]]});case 11:var _r=f[1];return O0(d(n[1][1+Ds],n),o,_r,s,function(cx){return[0,o,[11,cx]]});case 12:var t2=f[1];return O0(d(n[1][1+Os],n),o,t2,s,function(cx){return[0,o,[12,cx]]});case 13:var Wr=f[1];return O0(d(n[1][1+Fe],n),o,Wr,s,function(cx){return[0,o,[13,cx]]});case 14:var Vx=f[1];return O0(d(n[1][1+Sn],n),o,Vx,s,function(cx){return[0,o,[14,cx]]});case 15:var C2=f[1];return O0(d(n[1][1+Cs],n),o,C2,s,function(cx){return[0,o,[15,cx]]});case 16:var z2=f[1];return O0(d(n[1][1+i2],n),o,z2,s,function(cx){return[0,o,[16,cx]]});case 17:var ee=f[1];return O0(d(n[1][1+Et],n),o,ee,s,function(cx){return[0,o,[17,cx]]});case 18:var me=f[1];return O0(d(n[1][1+js],n),o,me,s,function(cx){return[0,o,[18,cx]]});case 19:var he=f[1];return O0(d(n[1][1+En],n),o,he,s,function(cx){return[0,o,[19,cx]]});case 20:var te=f[1];return O0(d(n[1][1+D1],n),o,te,s,function(cx){return[0,o,[20,cx]]});case 21:var de=f[1];return O0(d(n[1][1+nt],n),o,de,s,function(cx){return[0,o,[21,cx]]});case 22:var ye=f[1];return O0(d(n[1][1+Ce],n),o,ye,s,function(cx){return[0,o,[22,cx]]});case 23:var ge=f[1];return O0(d(n[1][1+rt],n),o,ge,s,function(cx){return[0,o,[23,cx]]});case 24:var At=f[1];return O0(d(n[1][1+je],n),o,At,s,function(cx){return[0,o,[24,cx]]});case 25:var we=f[1];return O0(d(n[1][1+O1],n),o,we,s,function(cx){return[0,o,[25,cx]]});case 26:var ct=f[1];return O0(d(n[1][1+U1],n),o,ct,s,function(cx){return[0,o,[26,cx]]});case 27:var Us=f[1];return O0(d(n[1][1+d2],n),o,Us,s,function(cx){return[0,o,[27,cx]]});case 28:var Bs=f[1];return O0(d(n[1][1+ur],n),o,Bs,s,function(cx){return[0,o,[28,cx]]});case 29:var Xs=f[1];return O0(d(n[1][1+nr],n),o,Xs,s,function(cx){return[0,o,[29,cx]]});case 30:var In=f[1];return O0(d(n[1][1+A],n),o,In,s,function(cx){return[0,o,[30,cx]]});case 31:var Ys=f[1];return O0(d(n[1][1+As],n),o,Ys,s,function(cx){return[0,o,[31,cx]]});case 32:var zs=f[1];return O0(d(n[1][1+yr],n),o,zs,s,function(cx){return[0,o,[32,cx]]});case 33:var n3=f[1];return O0(d(n[1][1+Q],n),o,n3,s,function(cx){return[0,o,[33,cx]]});case 34:var u3=f[1];return O0(d(n[1][1+K0],n),o,u3,s,function(cx){return[0,o,[34,cx]]});case 35:var i3=f[1];return O0(d(n[1][1+D0],n),o,i3,s,function(cx){return[0,o,[35,cx]]});case 36:var f3=f[1];return O0(d(n[1][1+M0],n),o,f3,s,function(cx){return[0,o,[36,cx]]});case 37:var _x=f[1];return O0(d(n[1][1+v0],n),o,_x,s,function(cx){return[0,o,[37,cx]]});case 38:var c3=f[1];return O0(d(n[1][1+i2],n),o,c3,s,function(cx){return[0,o,[38,cx]]});case 39:var hx=f[1];return O0(d(n[1][1+l],n),o,hx,s,function(cx){return[0,o,[39,cx]]});case 40:var tO=f[1];return O0(d(n[1][1+u],n),o,tO,s,function(cx){return[0,o,[40,cx]]});default:var nO=f[1];return O0(d(n[1][1+t],n),o,nO,s,function(cx){return[0,o,[41,cx]]})}},jo,function(n,s){return s},L,function(n){var s=d(n[1][1+N0],n);return function(f){return Ax(s,f)}},N0,function(n,s){var f=s[2],o=s[1],k=s[3],g=fr(d(n[1][1+jo],n),o),E=fr(d(n[1][1+jo],n),f);return o===g&&f===E?s:[0,g,E,k]},Ox,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+xd],n),o,k,s,function(hx){return[0,o,[0,hx]]});case 1:var g=f[1];return O0(d(n[1][1+Zh],n),o,g,s,function(hx){return[0,o,[1,hx]]});case 2:var E=f[1];return O0(d(n[1][1+Hh],n),o,E,s,function(hx){return[0,o,[2,hx]]});case 3:var C=f[1];return O0(d(n[1][1+Qh],n),o,C,s,function(hx){return[0,o,[3,hx]]});case 4:var R=f[1];return O0(d(n[1][1+$h],n),o,R,s,function(hx){return[0,o,[4,hx]]});case 5:var e0=f[1];return O0(d(n[1][1+Vh],n),o,e0,s,function(hx){return[0,o,[5,hx]]});case 6:var l0=f[1];return O0(d(n[1][1+Zv],n),o,l0,s,function(hx){return[0,o,[6,hx]]});case 7:var F0=f[1];return O0(d(n[1][1+Oo],n),o,F0,s,function(hx){return[0,o,[7,hx]]});case 8:var dx=f[1];return O0(d(n[1][1+Tl],n),o,dx,s,function(hx){return[0,o,[8,hx]]});case 9:var Xx=f[1];return O0(d(n[1][1+Rr],n),o,Xx,s,function(hx){return[0,o,[9,hx]]});case 10:var Kx=f[1];return P0(d(n[1][1+Cx],n),Kx,s,function(hx){return[0,o,[10,hx]]});case 11:var _r=f[1];return P0(p(n[1][1+zx],n,o),_r,s,function(hx){return[0,o,[11,hx]]});case 12:var t2=f[1];return O0(d(n[1][1+gl],n),o,t2,s,function(hx){return[0,o,[12,hx]]});case 13:var Wr=f[1];return O0(d(n[1][1+yl],n),o,Wr,s,function(hx){return[0,o,[13,hx]]});case 14:var Vx=f[1];return O0(d(n[1][1+$0],n),o,Vx,s,function(hx){return[0,o,[14,hx]]});case 15:var C2=f[1];return O0(d(n[1][1+x3],n),o,C2,s,function(hx){return[0,o,[15,hx]]});case 16:var z2=f[1];return O0(d(n[1][1+dt],n),o,z2,s,function(hx){return[0,o,[16,hx]]});case 17:var ee=f[1];return O0(d(n[1][1+H2],n),o,ee,s,function(hx){return[0,o,[17,hx]]});case 18:var me=f[1];return O0(d(n[1][1+qs],n),o,me,s,function(hx){return[0,o,[18,hx]]});case 19:var he=f[1];return O0(d(n[1][1+h0],n),o,he,s,function(hx){return[0,o,[19,hx]]});case 20:var te=f[1];return O0(d(n[1][1+C1],n),o,te,s,function(hx){return[0,o,[20,hx]]});case 21:var de=f[1];return O0(d(n[1][1+Ia],n),o,de,s,function(hx){return[0,o,[21,hx]]});case 22:var ye=f[1];return O0(d(n[1][1+mo],n),o,ye,s,function(hx){return[0,o,[22,hx]]});case 23:var ge=f[1];return O0(d(n[1][1+Ze],n),o,ge,s,function(hx){return[0,o,[23,hx]]});case 24:var At=f[1];return O0(d(n[1][1+q1],n),o,At,s,function(hx){return[0,o,[24,hx]]});case 25:var we=f[1];return O0(d(n[1][1+Jt],n),o,we,s,function(hx){return[0,o,[25,hx]]});case 26:var ct=f[1];return O0(d(n[1][1+Y2],n),o,ct,s,function(hx){return[0,o,[26,hx]]});case 27:var Us=f[1];return P0(p(n[1][1+_2],n,o),Us,s,function(hx){return[0,o,[27,hx]]});case 28:var Bs=f[1];return O0(d(n[1][1+Mr],n),o,Bs,s,function(hx){return[0,o,[28,hx]]});case 29:var Xs=f[1];return O0(d(n[1][1+sx],n),o,Xs,s,function(hx){return[0,o,[29,hx]]});case 30:var In=f[1];return O0(d(n[1][1+A0],n),o,In,s,function(hx){return[0,o,[30,hx]]});case 31:var Ys=f[1];return O0(d(n[1][1+Y0],n),o,Ys,s,function(hx){return[0,o,[31,hx]]});case 32:var zs=f[1];return O0(d(n[1][1+y0],n),o,zs,s,function(hx){return[0,o,[32,hx]]});case 33:var n3=f[1];return O0(d(n[1][1+I0],n),o,n3,s,function(hx){return[0,o,[33,hx]]});case 34:var u3=f[1];return O0(d(n[1][1+H],n),o,u3,s,function(hx){return[0,o,[34,hx]]});case 35:var i3=f[1];return O0(d(n[1][1+w0],n),o,i3,s,function(hx){return[0,o,[35,hx]]});case 36:var f3=f[1];return O0(d(n[1][1+T],n),o,f3,s,function(hx){return[0,o,[36,hx]]});case 37:var _x=f[1];return O0(d(n[1][1+m],n),o,_x,s,function(hx){return[0,o,[37,hx]]});default:var c3=f[1];return O0(d(n[1][1+e],n),o,c3,s,function(hx){return[0,o,[38,hx]]})}},xd,function(n,s,f){var o=f[2],k=f[1],g=fr(d(n[1][1+N4],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},N4,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+Ox],n),f,s,function(k){return[0,k]});case 1:var o=s[1];return P0(d(n[1][1+px],n),o,s,function(k){return[1,k]});default:return s}},Zh,function(n,s,f){return H0(n[1][1+E2],n,s,f)},Hh,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return g===k&&E===o?f:[0,g,E]},Qh,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},$h,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+e3],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},Vh,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+Ox],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},Qt,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+ex],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Ol,function(n,s,f){var o=f[2],k=f[1],g=Ax(d(n[1][1+Gt],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Zv,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Ox],n,E),R=Ax(d(n[1][1+Do],n),g),e0=p(n[1][1+j4],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},j4,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+et],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},_2,function(n,s,f){var o=f[1],k=H0(n[1][1+Zv],n,s,o);return o===k?f:[0,k,f[2],f[3]]},Do,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Fo],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Fo,function(n,s){if(s[0]===0){var f=s[1],o=p(n[1][1+a0],n,f);return o===f?s:[0,o]}var k=s[1],g=k[2][1],E=k[1],C=p(n[1][1+L],n,g);return g===C?s:[1,[0,E,[0,C]]]},Cl,function(n,s){return W2(d(n[1][1+Qt],n),s)},Hv,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=Ax(d(n[1][1+Qv],n),g),C=p(n[1][1+Cl],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},$v,function(n,s,f){return H0(n[1][1+F1],n,s,f)},Oo,function(n,s,f){return H0(n[1][1+F1],n,s,f)},F1,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[4],C=f[3],R=f[2],e0=f[1],l0=Ax(d(n[1][1+Ra],n),e0),F0=Ax(d(n[1][1+M],n),C),dx=p(n[1][1+St],n,R),Xx=d(n[1][1+jl],n),Kx=Ax(function(Vx){return W2(Xx,Vx)},E),_r=Ax(d(n[1][1+An],n),g),t2=fr(d(n[1][1+Ms],n),k),Wr=p(n[1][1+L],n,o);return e0===l0&&R===dx&&E===Kx&&g===_r&&k===t2&&o===Wr&&C===F0?f:[0,l0,dx,F0,Kx,_r,t2,Wr]},jl,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=Ax(d(n[1][1+t0],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Ra,function(n,s){return H0(n[1][1+bx],n,v$,s)},St,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Vv],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Ms,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Vv,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+Nl],n),o,k,s,function(F0){return[0,[0,o,F0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+Pl],n),E,C,s,function(F0){return[1,[0,E,F0]]});default:var R=s[1],e0=R[1],l0=R[2];return O0(d(n[1][1+Il],n),e0,l0,s,function(F0){return[2,[0,e0,F0]]})}},An,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+Co],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Co,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+B],n,k),C=Ax(d(n[1][1+t0],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},Nl,function(n,s,f){var o=f[6],k=f[5],g=f[3],E=f[2],C=p(n[1][1+ux],n,E),R=W2(d(n[1][1+T2],n),g),e0=fr(d(n[1][1+Ms],n),k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,f[1],C,R,f[4],e0,l0]},Pl,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[3],C=f[2],R=f[1],e0=p(n[1][1+ux],n,R),l0=p(n[1][1+Fa],n,C),F0=p(n[1][1+c0],n,E),dx=p(n[1][1+i],n,g),Xx=fr(d(n[1][1+Ms],n),k),Kx=p(n[1][1+L],n,o);return R===e0&&C===l0&&F0===E&&dx===g&&Xx===k&&Kx===o?f:[0,e0,l0,F0,f[4],dx,Xx,Kx]},Fa,function(n,s){if(typeof s=="number")return s;var f=s[1],o=p(n[1][1+Ox],n,f);return f===o?s:[0,o]},Il,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[3],C=f[2],R=f[1],e0=p(n[1][1+m0],n,R),l0=p(n[1][1+Fa],n,C),F0=p(n[1][1+c0],n,E),dx=p(n[1][1+i],n,g),Xx=fr(d(n[1][1+Ms],n),k),Kx=p(n[1][1+L],n,o);return R===e0&&C===l0&&F0===E&&dx===g&&Xx===k&&Kx===o?f:[0,e0,l0,F0,f[4],dx,Xx,Kx]},re,function(n,s){return Ax(d(n[1][1+Ox],n),s)},Ls,function(n,s,f){var o=f[6],k=f[5],g=f[4],E=f[3],C=f[2],R=f[1],e0=f[7],l0=p(n[1][1+Da],n,R),F0=Ax(d(n[1][1+M],n),C),dx=p(n[1][1+Sl],n,E),Xx=p(n[1][1+No],n,k),Kx=p(n[1][1+Oa],n,g),_r=p(n[1][1+L],n,o);return R===l0&&C===F0&&E===dx&&k===Xx&&g===Kx&&o===_r?f:[0,l0,F0,dx,Kx,Xx,_r,e0]},Da,function(n,s){return H0(n[1][1+bx],n,l$,s)},Sl,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=fr(d(n[1][1+Al],n),g),R=Ax(d(n[1][1+Gv],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Al,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=f[4],C=s[1],R=p(n[1][1+Io],n,g),e0=p(n[1][1+Wv],n,k),l0=p(n[1][1+re],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,l0,E]]},Io,function(n,s){if(s[0]===0)return[0,p(n[1][1+Cx],n,s[1])];var f=s[1],o=f[1];return[1,[0,o,H0(n[1][1+$0],n,o,f[2])]]},Wv,function(n,s){return H0(n[1][1+r3],n,p$,s)},Gv,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Wv],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},No,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Qt],n),f,o,s,function(k){return[0,f,k]})},Tl,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+T0],n,E),R=p(n[1][1+Ox],n,g),e0=p(n[1][1+Ox],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Kv,function(n,s,f){var o=f[2],k=f[1],g=Ax(d(n[1][1+Gt],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},_l,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},Ao,function(n,s,f){var o=f[7],k=f[6],g=f[5],E=f[4],C=f[3],R=f[2],e0=f[1],l0=p(n[1][1+Ra],n,e0),F0=Ax(d(n[1][1+M],n),R),dx=W2(d(n[1][1+V],n),C),Xx=d(n[1][1+gr],n),Kx=Ax(function(C2){return W2(Xx,C2)},E),_r=d(n[1][1+gr],n),t2=fr(function(C2){return W2(_r,C2)},g),Wr=Ax(d(n[1][1+An],n),k),Vx=p(n[1][1+L],n,o);return l0===e0&&F0===R&&dx===C&&Kx===E&&t2===g&&Wr===k&&Vx===o?f:[0,l0,F0,dx,Kx,t2,Wr,Vx]},So,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Da],n,C),e0=Ax(d(n[1][1+M],n),E),l0=p(n[1][1+Jv],n,g),F0=p(n[1][1+Oa],n,k),dx=p(n[1][1+L],n,o);return C===R&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},Rs,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=Ax(d(n[1][1+M],n),E),R=p(n[1][1+Jv],n,g),e0=p(n[1][1+Oa],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Jv,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=fr(d(n[1][1+El],n),g),R=Ax(d(n[1][1+Po],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},El,function(n,s){var f=s[2],o=f[2],k=f[1],g=f[3],E=s[1],C=p(n[1][1+Io],n,k),R=p(n[1][1+r0],n,o);return k===C&&o===R?s:[0,E,[0,C,R,g]]},Po,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=Ax(d(n[1][1+Cx],n),g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},zv,function(n,s,f){return H0(n[1][1+D1],n,s,f)},Yv,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=W6(d(n[1][1+tt],n),k),e0=Ax(d(n[1][1+xe],n),g),l0=Ax(d(n[1][1+Eo],n),E),F0=p(n[1][1+L],n,o);return k===R&&g===e0&&E===l0&&o===F0?f:[0,C,l0,e0,R,F0]},Eo,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[2],k=f[1],g=H0(n[1][1+Et],n,k,o);return g===o?s:[0,[0,k,g]];case 1:var E=s[1],C=E[2],R=E[1],e0=H0(n[1][1+To],n,R,C);return e0===C?s:[1,[0,R,e0]];case 2:var l0=s[1],F0=l0[2],dx=l0[1],Xx=H0(n[1][1+Ao],n,dx,F0);return Xx===F0?s:[2,[0,dx,Xx]];case 3:var Kx=s[1],_r=Kx[2],t2=Kx[1],Wr=H0(n[1][1+So],n,t2,_r);return Wr===_r?s:[3,[0,t2,Wr]];case 4:var Vx=s[1],C2=p(n[1][1+a0],n,Vx);return C2===Vx?s:[4,C2];case 5:var z2=s[1],ee=z2[2],me=z2[1],he=H0(n[1][1+v0],n,me,ee);return he===ee?s:[5,[0,me,he]];case 6:var te=s[1],de=te[2],ye=te[1],ge=H0(n[1][1+i2],n,ye,de);return ge===de?s:[6,[0,ye,ge]];case 7:var At=s[1],we=At[2],ct=At[1],Us=H0(n[1][1+D],n,ct,we);return Us===we?s:[7,[0,ct,Us]];default:var Bs=s[1],Xs=Bs[2],In=Bs[1],Ys=H0(n[1][1+D1],n,In,Xs);return Ys===Xs?s:[8,[0,In,Ys]]}},To,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Qr],n,E),R=p(n[1][1+r0],n,g),e0=Ax(d(n[1][1+X],n),k),l0=p(n[1][1+L],n,o);return C===E&&R===g&&e0===k&&l0===o?f:[0,C,R,e0,l0]},Ds,function(n,s,f){return H0(n[1][1+D],n,s,f)},Os,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=W2(d(n[1][1+Qt],n),k),C=p(n[1][1+L],n,o);return E===k&&o===C?f:[0,g,E,C]},Fe,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+r0],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Sn,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,k$,g),C=W2(d(n[1][1+Qt],n),k),R=p(n[1][1+L],n,o);return E===g&&C===k&&o===R?f:[0,E,C,R]},Cs,function(n,s,f){return H0(n[1][1+v0],n,s,f)},Et,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=H0(n[1][1+bx],n,[0,k],E),R=p(n[1][1+r0],n,g),e0=p(n[1][1+L],n,o);return C===E&&R===g&&e0===o?f:[0,C,R,k,e0]},js,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+tx],n,g),C=p(n[1][1+T0],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},En,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},D1,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,m$,g),C=p(n[1][1+De],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},De,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+ke],n),k,s,function(e0){return[0,o,[0,e0]]});case 1:var g=f[1];return P0(d(n[1][1+Is],n),g,s,function(e0){return[0,o,[1,e0]]});case 2:var E=f[1];return P0(d(n[1][1+bt],n),E,s,function(e0){return[0,o,[2,e0]]});case 3:var C=f[1];return P0(d(n[1][1+it],n),C,s,function(e0){return[0,o,[3,e0]]});default:var R=f[1];return P0(d(n[1][1+Ns],n),R,s,function(e0){return[0,o,[4,e0]]})}},ke,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+Tn],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},Is,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+Tt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},bt,function(n,s){var f=s[4],o=s[1];if(o[0]===0)var k=o[1],g=d(n[1][1+Vt],n),R=P0(function(l0){return fr(g,l0)},k,o,function(l0){return[0,l0]});else var E=o[1],C=d(n[1][1+r1],n),R=P0(function(l0){return fr(C,l0)},E,o,function(l0){return[1,l0]});var e0=p(n[1][1+L],n,f);return o===R&&f===e0?s:[0,R,s[2],s[3],e0]},it,function(n,s){var f=s[3],o=s[1],k=fr(d(n[1][1+Vt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],g]},Ns,function(n,s){var f=s[4],o=s[1],k=fr(d(n[1][1+$t],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,s[2],s[3],g]},Vt,function(n,s){var f=s[2][1],o=s[1],k=p(n[1][1+ft],n,f);return f===k?s:[0,o,[0,k]]},Tn,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},Tt,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},r1,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},$t,function(n,s){var f=s[2],o=f[1],k=f[2],g=s[1],E=p(n[1][1+ft],n,o);return o===E?s:[0,g,[0,E,k]]},ft,function(n,s){return p(n[1][1+Cx],n,s)},nt,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Oe],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?f:[0,g,E,C]},Oe,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+tx],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Ox],n),o,s,function(k){return[1,k]})},Ce,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=W6(d(n[1][1+tt],n),k),e0=Ax(d(n[1][1+xe],n),g),l0=Ax(d(n[1][1+tx],n),E),F0=p(n[1][1+L],n,o);return k===R&&g===e0&&E===l0&&o===F0?f:[0,l0,e0,R,C,F0]},v1,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Cx],n,k),C=Ax(d(n[1][1+Cx],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},ut,function(n,s){var f=s[2],o=s[1],k=Ax(d(n[1][1+Cx],n),f);return f===k?s:[0,o,k]},xe,function(n,s){if(s[0]===0){var f=s[1],o=fr(d(n[1][1+v1],n),f);return f===o?s:[0,o]}var k=s[1],g=p(n[1][1+ut],n,k);return k===g?s:[1,g]},tt,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},rt,function(n,s,f){var o=f[3],k=f[1],g=f[2],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,E,g,C]},et,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+Ox],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+px],n),o,s,function(k){return[1,k]})},O1,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=p(n[1][1+wt],n,E),e0=p(n[1][1+Ox],n,g),l0=p(n[1][1+tx],n,k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?f:[0,R,e0,l0,C,F0]},wt,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+_t],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Wt],n),o,s,function(k){return[1,k]})},_t,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},U1,function(n,s,f){var o=f[5],k=f[3],g=f[2],E=f[1],C=f[4],R=p(n[1][1+xt],n,E),e0=p(n[1][1+Ox],n,g),l0=p(n[1][1+tx],n,k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?f:[0,R,e0,l0,C,F0]},xt,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+e2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Z1],n),o,s,function(k){return[1,k]})},e2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},je,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=Ax(d(n[1][1+pe],n),C),e0=Ax(d(n[1][1+T0],n),E),l0=Ax(d(n[1][1+Ox],n),g),F0=p(n[1][1+tx],n,k),dx=p(n[1][1+L],n,o);return C===R&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},pe,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+R2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Ox],n),o,s,function(k){return[1,k]})},R2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+l],n),f,o,s,function(k){return[0,f,k]})},wr,function(n,s){var f=s[2],o=f[2],k=f[1],g=f[3],E=s[1],C=p(n[1][1+a0],n,o),R=Ax(d(n[1][1+Cx],n),k);return C===o&&R===k?s:[0,E,[0,R,C,g]]},m2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+wr],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},k2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+r0],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Sr,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+a0],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+$],n),o,s,function(k){return[1,k]})},Gr,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=g[2],C=E[4],R=E[3],e0=E[2],l0=E[1],F0=f[1],dx=f[5],Xx=g[1],Kx=Ax(d(n[1][1+M],n),F0),_r=Ax(d(n[1][1+k2],n),l0),t2=fr(d(n[1][1+wr],n),e0),Wr=Ax(d(n[1][1+m2],n),R),Vx=p(n[1][1+Sr],n,k),C2=p(n[1][1+L],n,o),z2=p(n[1][1+L],n,C);return t2===e0&&Wr===R&&Vx===k&&Kx===F0&&C2===o&&z2===C&&_r===l0?f:[0,Kx,[0,Xx,[0,_r,t2,Wr,z2]],Vx,C2,dx]},Gt,function(n,s){return p(n[1][1+Cx],n,s)},U0,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+a0],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+jx],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+Q2],n),k,s,function(g){return[2,g]})}},jx,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Gr],n),f,o,s,function(k){return[0,f,k]})},Q2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Gr],n),f,o,s,function(k){return[0,f,k]})},ox,function(n,s){var f=s[2],o=f[8],k=f[7],g=f[2],E=f[1],C=f[6],R=f[5],e0=f[4],l0=f[3],F0=s[1],dx=p(n[1][1+ux],n,E),Xx=p(n[1][1+U0],n,g),Kx=p(n[1][1+i],n,k),_r=p(n[1][1+L],n,o);return dx===E&&Xx===g&&Kx===k&&_r===o?s:[0,F0,[0,dx,Xx,l0,e0,R,C,Kx,_r]]},lx,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+a0],n,k),C=p(n[1][1+L],n,o);return E===k&&o===C?s:[0,g,[0,E,C]]},Zx,function(n,s){var f=s[2],o=f[6],k=f[5],g=f[3],E=f[2],C=f[4],R=f[1],e0=s[1],l0=p(n[1][1+a0],n,E),F0=p(n[1][1+a0],n,g),dx=p(n[1][1+i],n,k),Xx=p(n[1][1+L],n,o);return l0===E&&F0===g&&dx===k&&Xx===o?s:[0,e0,[0,R,l0,F0,C,dx,Xx]]},Lx,function(n,s){var f=s[2],o=f[6],k=f[2],g=f[1],E=f[5],C=f[4],R=f[3],e0=s[1],l0=p(n[1][1+Cx],n,g),F0=p(n[1][1+a0],n,k),dx=p(n[1][1+L],n,o);return g===l0&&k===F0&&o===dx?s:[0,e0,[0,l0,F0,R,C,E,dx]]},qr,function(n,s){var f=s[2],o=f[3],k=f[1],g=k[2],E=k[1],C=f[2],R=s[1],e0=H0(n[1][1+Gr],n,E,g),l0=p(n[1][1+L],n,o);return g===e0&&o===l0?s:[0,R,[0,[0,E,e0],C,l0]]},Cr,function(n,s){var f=s[2],o=f[6],k=f[4],g=f[3],E=f[2],C=f[1],R=f[5],e0=s[1],l0=p(n[1][1+z],n,C),F0=p(n[1][1+a0],n,E),dx=p(n[1][1+a0],n,g),Xx=p(n[1][1+i],n,k),Kx=p(n[1][1+L],n,o);return l0===C&&F0===E&&dx===g&&Xx===k&&Kx===o?s:[0,e0,[0,l0,F0,dx,Xx,R,Kx]]},V,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=fr(d(n[1][1+_],n),k),R=p(n[1][1+L],n,o);return C===k&&o===R?f:[0,E,g,C,R]},_,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+ox],n),f,s,function(R){return[0,R]});case 1:var o=s[1];return P0(d(n[1][1+lx],n),o,s,function(R){return[1,R]});case 2:var k=s[1];return P0(d(n[1][1+Zx],n),k,s,function(R){return[2,R]});case 3:var g=s[1];return P0(d(n[1][1+qr],n),g,s,function(R){return[3,R]});case 4:var E=s[1];return P0(d(n[1][1+Lx],n),E,s,function(R){return[4,R]});default:var C=s[1];return P0(d(n[1][1+Cr],n),C,s,function(R){return[5,R]})}},Y,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=d(n[1][1+gr],n),C=fr(function(l0){return W2(E,l0)},k),R=W2(d(n[1][1+V],n),g),e0=p(n[1][1+L],n,o);return C===k&&R===g&&o===e0?f:[0,R,C,e0]},Jr,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+B],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Er],n),o,s,function(k){return[1,k]})},Er,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Jr],n,k),C=p(n[1][1+b2],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},b2,function(n,s){return p(n[1][1+Cx],n,s)},c,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},i,function(n,s){return Ax(d(n[1][1+c],n),s)},t0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+a0],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},M,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=fr(d(n[1][1+z],n),k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},z,function(n,s){var f=s[2],o=f[5],k=f[4],g=f[2],E=f[1],C=f[3],R=s[1],e0=p(n[1][1+c0],n,g),l0=p(n[1][1+i],n,k),F0=Ax(d(n[1][1+a0],n),o),dx=p(n[1][1+Pn],n,E);return dx===E&&e0===g&&l0===k&&F0===o?s:[0,R,[0,dx,e0,C,l0,F0]]},gr,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Jr],n,g),C=Ax(d(n[1][1+t0],n),k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},k0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+a0],n,g),C=p(n[1][1+a0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},a2,function(n,s,f){var o=f[1],k=f[2],g=H0(n[1][1+k0],n,s,o);return g===o?f:[0,g,k]},$0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},H2,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},qs,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},x3,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+L],n,o);return o===g?f:[0,k,g]},dt,function(n,s,f){return p(n[1][1+L],n,f)},h0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+L],n,o);return o===C?f:[0,E,g,k,C]},C1,function(n,s,f){var o=f[6],k=f[5],g=f[4],E=f[3],C=f[2],R=f[1];return o===p(n[1][1+L],n,o)?f:[0,R,C,E,g,k,o]},Kt,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},bl,function(n,s){var f=s[5],o=s[4],k=s[3],g=s[2],E=s[1],C=p(n[1][1+a0],n,E),R=p(n[1][1+a0],n,g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+a0],n,o),F0=p(n[1][1+L],n,f);return E===C&&g===R&&k===e0&&o===l0&&f===F0?s:[0,C,R,e0,l0,F0]},f0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+z],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},b,function(n,s){var f=s[3],o=s[2],k=s[1],g=p(n[1][1+F],n,k),E=Ax(d(n[1][1+t0],n),o),C=p(n[1][1+L],n,f);return k===g&&B3(o,E)&&f===C?s:[0,g,E,C]},F,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+I],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+N],n),o,s,function(k){return[1,k]})},I,function(n,s){return p(n[1][1+Cx],n,s)},j,function(n,s){return p(n[1][1+Cx],n,s)},N,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+F],n,k),C=p(n[1][1+j],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Uv,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},b0,function(n,s){var f=s[3],o=s[2],k=s[4],g=s[1],E=p(n[1][1+a0],n,o),C=p(n[1][1+L],n,f);return o===E&&f===C?s:[0,g,E,C,k]},_0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},g0,function(n,s){var f=s[3],o=s[1],k=s[2],g=fr(d(n[1][1+d0],n),o),E=p(n[1][1+L],n,f);return o===g&&f===E?s:[0,g,k,E]},d0,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+a0],n),k,s,function(C){return[0,o,[0,C]]});case 1:var g=f[1];return P0(d(n[1][1+s0],n),g,s,function(C){return[0,o,[1,C]]});default:var E=f[1];return P0(d(n[1][1+i0],n),E,s,function(C){return[0,o,[2,C]]})}},s0,function(n,s){var f=s[3],o=s[2],k=s[4],g=s[1],E=p(n[1][1+a0],n,o),C=p(n[1][1+i],n,f);return E===o&&C===f?s:[0,g,E,C,k]},i0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,f);return k===f?s:[0,o,k]},t3,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+a0],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},h,function(n,s,f){var o=f[2],k=f[1],g=k[3],E=k[2],C=k[1],R=p(n[1][1+a0],n,C),e0=p(n[1][1+a0],n,E),l0=fr(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return R===C&&e0===E&&l0===g&&F0===o?f:[0,[0,R,e0,l0],F0]},wl,function(n,s,f){var o=f[2],k=f[1],g=k[3],E=k[2],C=k[1],R=p(n[1][1+a0],n,C),e0=p(n[1][1+a0],n,E),l0=fr(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return R===C&&e0===E&&l0===g&&F0===o?f:[0,[0,R,e0,l0],F0]},a0,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+L],n),k,s,function(_x){return[0,o,[0,_x]]});case 1:var g=f[1];return P0(d(n[1][1+L],n),g,s,function(_x){return[0,o,[1,_x]]});case 2:var E=f[1];return P0(d(n[1][1+L],n),E,s,function(_x){return[0,o,[2,_x]]});case 3:var C=f[1];return P0(d(n[1][1+L],n),C,s,function(_x){return[0,o,[3,_x]]});case 4:var R=f[1];return P0(d(n[1][1+L],n),R,s,function(_x){return[0,o,[4,_x]]});case 5:var e0=f[1];return P0(d(n[1][1+L],n),e0,s,function(_x){return[0,o,[5,_x]]});case 6:var l0=f[1];return P0(d(n[1][1+L],n),l0,s,function(_x){return[0,o,[6,_x]]});case 7:var F0=f[1];return P0(d(n[1][1+L],n),F0,s,function(_x){return[0,o,[7,_x]]});case 8:var dx=f[1],Xx=f[2];return P0(d(n[1][1+L],n),Xx,s,function(_x){return[0,o,[8,dx,_x]]});case 9:var Kx=f[1];return P0(d(n[1][1+L],n),Kx,s,function(_x){return[0,o,[9,_x]]});case 10:var _r=f[1];return P0(d(n[1][1+L],n),_r,s,function(_x){return[0,o,[10,_x]]});case 11:var t2=f[1];return P0(d(n[1][1+Kt],n),t2,s,function(_x){return[0,o,[11,_x]]});case 12:var Wr=f[1];return O0(d(n[1][1+Gr],n),o,Wr,s,function(_x){return[0,o,[12,_x]]});case 13:var Vx=f[1];return O0(d(n[1][1+Rs],n),o,Vx,s,function(_x){return[0,o,[13,_x]]});case 14:var C2=f[1];return O0(d(n[1][1+V],n),o,C2,s,function(_x){return[0,o,[14,_x]]});case 15:var z2=f[1];return O0(d(n[1][1+Y],n),o,z2,s,function(_x){return[0,o,[15,_x]]});case 16:var ee=f[1];return P0(d(n[1][1+t3],n),ee,s,function(_x){return[0,o,[16,_x]]});case 17:var me=f[1];return P0(d(n[1][1+bl],n),me,s,function(_x){return[0,o,[17,_x]]});case 18:var he=f[1];return P0(d(n[1][1+f0],n),he,s,function(_x){return[0,o,[18,_x]]});case 19:var te=f[1];return O0(d(n[1][1+gr],n),o,te,s,function(_x){return[0,o,[19,_x]]});case 20:var de=f[1];return O0(d(n[1][1+k0],n),o,de,s,function(_x){return[0,o,[20,_x]]});case 21:var ye=f[1];return O0(d(n[1][1+a2],n),o,ye,s,function(_x){return[0,o,[21,_x]]});case 22:var ge=f[1];return O0(d(n[1][1+h],n),o,ge,s,function(_x){return[0,o,[22,_x]]});case 23:var At=f[1];return O0(d(n[1][1+wl],n),o,At,s,function(_x){return[0,o,[23,_x]]});case 24:var we=f[1];return P0(d(n[1][1+b],n),we,s,function(_x){return[0,o,[24,_x]]});case 25:var ct=f[1];return P0(d(n[1][1+Uv],n),ct,s,function(_x){return[0,o,[25,_x]]});case 26:var Us=f[1];return P0(d(n[1][1+b0],n),Us,s,function(_x){return[0,o,[26,_x]]});case 27:var Bs=f[1];return P0(d(n[1][1+_0],n),Bs,s,function(_x){return[0,o,[27,_x]]});case 28:var Xs=f[1];return P0(d(n[1][1+g0],n),Xs,s,function(_x){return[0,o,[28,_x]]});case 29:var In=f[1];return O0(d(n[1][1+$0],n),o,In,s,function(_x){return[0,o,[29,_x]]});case 30:var Ys=f[1];return O0(d(n[1][1+H2],n),o,Ys,s,function(_x){return[0,o,[30,_x]]});case 31:var zs=f[1];return O0(d(n[1][1+qs],n),o,zs,s,function(_x){return[0,o,[31,_x]]});case 32:var n3=f[1];return O0(d(n[1][1+x3],n),o,n3,s,function(_x){return[0,o,[32,_x]]});case 33:var u3=f[1];return P0(d(n[1][1+L],n),u3,s,function(_x){return[0,o,[33,_x]]});case 34:var i3=f[1];return P0(d(n[1][1+L],n),i3,s,function(_x){return[0,o,[34,_x]]});default:var f3=f[1];return P0(d(n[1][1+L],n),f3,s,function(_x){return[0,o,[35,_x]]})}},r0,function(n,s){var f=s[1],o=s[2];return P0(d(n[1][1+a0],n),o,s,function(k){return[0,f,k]})},c0,function(n,s){if(s[0]===0)return s;var f=s[1];return P0(d(n[1][1+r0],n),f,s,function(o){return[1,o]})},Oa,function(n,s){if(s[0]===0)return s;var f=s[2],o=s[1],k=p(n[1][1+b0],n,f);return k===f?s:[1,o,k]},d2,function(n,s,f){return H0(n[1][1+E2],n,s,f)},Rr,function(n,s,f){return H0(n[1][1+T2],n,s,f)},T2,function(n,s,f){return H0(n[1][1+E2],n,s,f)},E2,function(n,s,f){var o=f[10],k=f[9],g=f[8],E=f[7],C=f[3],R=f[2],e0=f[1],l0=f[11],F0=f[6],dx=f[5],Xx=f[4],Kx=Ax(d(n[1][1+Qr],n),e0),_r=Ax(d(n[1][1+M],n),k),t2=p(n[1][1+Ar],n,R),Wr=p(n[1][1+Dr],n,g),Vx=p(n[1][1+o2],n,C),C2=Ax(d(n[1][1+X],n),E),z2=p(n[1][1+L],n,o);return e0===Kx&&R===t2&&C===Vx&&E===C2&&g===Wr&&k===_r&&o===z2?f:[0,Kx,t2,Vx,Xx,dx,F0,C2,Wr,_r,z2,l0]},Ar,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=fr(d(n[1][1+Ur],n),g),e0=Ax(d(n[1][1+r2],n),k),l0=Ax(d(n[1][1+P2],n),E),F0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===F0&&E===l0?s:[0,C,[0,l0,R,e0,F0]]},P2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+r0],n,k),C=p(n[1][1+L],n,o);return E===k&&C===o?s:[0,g,[0,E,C]]},Ur,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+f2],n,k),C=p(n[1][1+re],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Dr,function(n,s){switch(s[0]){case 0:return s;case 1:var f=s[1];return P0(d(n[1][1+r0],n),f,s,function(k){return[1,k]});default:var o=s[1];return P0(d(n[1][1+n0],n),o,s,function(k){return[2,k]})}},o2,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+c2],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Wh],n),o,s,function(k){return[1,k]})},c2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+Qt],n),f,o,s,function(k){return[0,f,k]})},Wh,function(n,s){return p(n[1][1+Ox],n,s)},Qr,function(n,s){return H0(n[1][1+bx],n,h$,s)},Cx,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},K,function(n,s){return p(n[1][1+Cx],n,s)},B,function(n,s){return p(n[1][1+K],n,s)},Pn,function(n,s){return p(n[1][1+K],n,s)},D,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Pn],n,C),e0=Ax(d(n[1][1+M],n),E),l0=d(n[1][1+gr],n),F0=fr(function(Kx){return W2(l0,Kx)},g),dx=W2(d(n[1][1+V],n),k),Xx=p(n[1][1+L],n,o);return R===C&&e0===E&&F0===g&&dx===k&&Xx===o?f:[0,R,e0,F0,dx,Xx]},A,function(n,s,f){return H0(n[1][1+D],n,s,f)},m0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},Fs,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},zx,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},kr,function(n,s,f){return p(n[1][1+tx],n,f)},rr,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+tx],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},ur,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+T0],n,E),R=H0(n[1][1+kr],n,k!==0?1:0,g),e0=d(n[1][1+rr],n),l0=Ax(function(dx){return W2(e0,dx)},k),F0=p(n[1][1+L],n,o);return E===C&&g===R&&k===l0&&o===F0?f:[0,C,R,l0,F0]},nr,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=W2(d(n[1][1+Q0],n),E),e0=Ax(p(n[1][1+R0],n,C),k),l0=Ax(function(dx){var Xx=dx[1],Kx=dx[2],_r=H0(n[1][1+Rx],n,C,Xx);return _r===Xx?dx:[0,_r,Kx]},g),F0=p(n[1][1+L],n,o);return E===R&&k===e0&&g===l0&&o===F0?f:[0,C,R,l0,e0,F0]},Q0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+L],n,o);return o===E?f:[0,g,k,E]},R0,function(n,s,f){if(f[0]===0){var o=f[1],k=fr(p(n[1][1+Ix],n,s),o);return o===k?f:[0,k]}var g=f[1],E=g[1],C=g[2];return O0(p(n[1][1+mx],n,s),E,C,f,function(R){return[1,[0,E,R]]})},U,function(n,s){return p(n[1][1+Cx],n,s)},Ix,function(n,s,f){var o=f[3],k=f[2],g=f[1];x:{r:{var E=f[4];if(s){e:{if(g)switch(g[1]){case 0:break r;case 1:break e}if(2<=s){var C=0,R=0;break x}}var C=1,R=0;break x}}var C=1,R=1}var e0=k?p(n[1][1+U],n,o):R?p(n[1][1+Pn],n,o):H0(n[1][1+bx],n,d$,o);if(k)var l0=k[1],F0=C?d(n[1][1+Pn],n):p(n[1][1+bx],n,y$),dx=P0(F0,l0,k,function(Xx){return[0,Xx]});else var dx=0;return k===dx&&o===e0?f:[0,g,dx,e0,E]},Rx,function(n,s,f){var o=2<=s?p(n[1][1+bx],n,g$):d(n[1][1+Pn],n);return d(o,f)},mx,function(n,s,f,o){var k=2<=s?p(n[1][1+bx],n,w$):d(n[1][1+Pn],n);return d(k,o)},gl,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Xv],n,E),R=Ax(d(n[1][1+E4],n),g),e0=p(n[1][1+bo],n,k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},yl,function(n,s,f){var o=f[4],k=f[3],g=p(n[1][1+bo],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],f[2],g,E]},Xv,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=p(n[1][1+_o],n,g),e0=Ax(d(n[1][1+Do],n),k),l0=fr(d(n[1][1+dl],n),o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},E4,function(n,s){var f=s[2][1],o=s[1],k=p(n[1][1+_o],n,f);return f===k?s:[0,o,[0,k]]},dl,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+I4],n),f,s,function(E){return[0,E]})}var o=s[1],k=o[1],g=o[2];return O0(d(n[1][1+Bv],n),k,g,s,function(E){return[1,[0,k,E]]})},Bv,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},I4,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+P4],n,k),C=Ax(d(n[1][1+Jh],n),o);return k===E&&o===C?s:[0,g,[0,E,C]]},P4,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+A4],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Gh],n),o,s,function(k){return[1,k]})},A4,function(n,s){return p(n[1][1+Ca],n,s)},Gh,function(n,s){return p(n[1][1+Na],n,s)},Jh,function(n,s){if(s[0]===0){var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+zh],n),o,k,s,function(R){return[0,[0,o,R]]})}var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+Kh],n),E,C,s,function(R){return[1,[0,E,R]]})},Kh,function(n,s,f){return H0(n[1][1+Ps],n,s,f)},zh,function(n,s,f){return H0(n[1][1+$0],n,s,f)},bo,function(n,s){var f=s[2],o=s[1],k=fr(d(n[1][1+S4],n),f);return f===k?s:[0,o,k]},S4,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return O0(d(n[1][1+gl],n),o,k,s,function(R){return[0,o,[0,R]]});case 1:var g=f[1];return O0(d(n[1][1+yl],n),o,g,s,function(R){return[0,o,[1,R]]});case 2:var E=f[1];return O0(d(n[1][1+Ps],n),o,E,s,function(R){return[0,o,[2,R]]});case 3:var C=f[1];return P0(d(n[1][1+ho],n),C,s,function(R){return[0,o,[3,R]]});default:return s}},Ps,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+L],n,o);if(!k)return o===g?f:[0,0,g];var E=k[1],C=p(n[1][1+Ox],n,E);return E===C&&o===g?f:[0,[0,C],g]},ho,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+Ox],n,o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},_o,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+T4],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+Yh],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+wo],n),k,s,function(g){return[2,g]})}},T4,function(n,s){return p(n[1][1+Ca],n,s)},Yh,function(n,s){return p(n[1][1+Na],n,s)},wo,function(n,s){return p(n[1][1+ja],n,s)},Na,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ca],n,k),C=p(n[1][1+Ca],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},ja,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+yo],n,k),C=p(n[1][1+Ca],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},yo,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+go],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+ja],n),o,s,function(k){return[1,k]})},go,function(n,s){return p(n[1][1+T4],n,s)},Ca,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+L],n,o);return o===E?s:[0,g,[0,k,E]]},As,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Gt],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Ia,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=p(n[1][1+Ox],n,g),C=p(n[1][1+Ox],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,f[1],E,C,R]},mo,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=fr(d(n[1][1+Pa],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Pa,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=p(n[1][1+gt],n,E),e0=p(n[1][1+Ox],n,g),l0=Ax(d(n[1][1+Ox],n),k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?s:[0,C,[0,E,g,l0,F0]]},yr,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=fr(d(n[1][1+yt],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},yt,function(n,s){var f=s[2],o=f[4],k=f[3],g=f[2],E=f[1],C=s[1],R=p(n[1][1+gt],n,E),e0=W2(d(n[1][1+Qt],n),g),l0=Ax(d(n[1][1+Ox],n),k),F0=p(n[1][1+L],n,o);return E===R&&g===e0&&k===l0&&o===F0?s:[0,C,[0,E,g,l0,F0]]},gt,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[1];return P0(d(n[1][1+L],n),k,s,function(Vx){return[0,o,[0,Vx]]});case 1:var g=f[1];return O0(d(n[1][1+H2],n),o,g,s,function(Vx){return[0,o,[1,Vx]]});case 2:var E=f[1];return O0(d(n[1][1+qs],n),o,E,s,function(Vx){return[0,o,[2,Vx]]});case 3:var C=f[1];return O0(d(n[1][1+$0],n),o,C,s,function(Vx){return[0,o,[3,Vx]]});case 4:var R=f[1];return O0(d(n[1][1+x3],n),o,R,s,function(Vx){return[0,o,[4,Vx]]});case 5:var e0=f[1];return P0(d(n[1][1+L],n),e0,s,function(Vx){return[0,o,[5,Vx]]});case 6:var l0=f[1];return P0(d(n[1][1+Lv],n),l0,s,function(Vx){return[0,o,[6,Vx]]});case 7:var F0=f[1];return O0(d(n[1][1+Ss],n),o,F0,s,function(Vx){return[0,o,[7,Vx]]});case 8:var dx=f[1];return P0(d(n[1][1+Cx],n),dx,s,function(Vx){return[0,o,[8,Vx]]});case 9:var Xx=f[1];return P0(d(n[1][1+Aa],n),Xx,s,function(Vx){return[0,o,[9,Vx]]});case 10:var Kx=f[1];return P0(d(n[1][1+Ea],n),Kx,s,function(Vx){return[0,o,[10,Vx]]});case 11:var _r=f[1];return P0(d(n[1][1+d1],n),_r,s,function(Vx){return[0,o,[11,Vx]]});case 12:var t2=f[1];return P0(d(n[1][1+Mv],n),t2,s,function(Vx){return[0,o,[12,Vx]]});default:var Wr=f[1];return P0(d(n[1][1+H1],n),Wr,s,function(Vx){return[0,o,[13,Vx]]})}},Lv,function(n,s){var f=s[3],o=s[2],k=o[1],g=s[1],E=o[2],C=O0(d(n[1][1+Ts],n),k,E,o,function(e0){return[0,k,e0]}),R=p(n[1][1+L],n,f);return o===C&&f===R?s:[0,g,C,R]},Ts,function(n,s,f){if(f[0]===0){var o=f[1];return O0(d(n[1][1+H2],n),s,o,f,function(g){return[0,g]})}var k=f[1];return O0(d(n[1][1+qs],n),s,k,f,function(g){return[1,g]})},Aa,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=p(n[1][1+Sa],n,g),R=p(n[1][1+ko],n,k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Sa,function(n,s){if(s[0]===0){var f=s[1];return P0(d(n[1][1+Cx],n),f,s,function(k){return[0,k]})}var o=s[1];return P0(d(n[1][1+Aa],n),o,s,function(k){return[1,k]})},ko,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+$0],n),o,k,s,function(e0){return[0,[0,o,e0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+H2],n),E,C,s,function(e0){return[1,[0,E,e0]]});default:var R=s[1];return P0(d(n[1][1+Cx],n),R,s,function(e0){return[2,e0]})}},Ss,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=H0(n[1][1+bx],n,[0,g],k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,g,E,C]},Ea,function(n,s){var f=s[3],o=s[2],k=s[1],g=fr(d(n[1][1+bn],n),k),E=W6(d(n[1][1+Ta],n),o),C=p(n[1][1+L],n,f);return k===g&&o===E&&f===C?s:[0,g,E,C]},bn,function(n,s){var f=s[2],o=f[4],k=f[2],g=f[1],E=f[3],C=s[1],R=p(n[1][1+qv],n,g),e0=p(n[1][1+gt],n,k),l0=p(n[1][1+L],n,o);return g===R&&k===e0&&o===l0?s:[0,C,[0,R,e0,E,l0]]},qv,function(n,s){switch(s[0]){case 0:var f=s[1],o=f[1],k=f[2];return O0(d(n[1][1+$0],n),o,k,s,function(e0){return[0,[0,o,e0]]});case 1:var g=s[1],E=g[1],C=g[2];return O0(d(n[1][1+H2],n),E,C,s,function(e0){return[1,[0,E,e0]]});default:var R=s[1];return P0(d(n[1][1+Cx],n),R,s,function(e0){return[2,e0]})}},d1,function(n,s){var f=s[3],o=s[2],k=s[1],g=fr(d(n[1][1+Es],n),k),E=W6(d(n[1][1+Ta],n),o),C=p(n[1][1+L],n,f);return k===g&&o===E&&f===C?s:[0,g,E,C]},Es,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+gt],n,f);return f===k?s:[0,o,k]},Ta,function(n,s,f){var o=f[2],k=f[1],g=W6(d(n[1][1+Ss],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},Mv,function(n,s){var f=s[2],o=s[1],k=fr(d(n[1][1+gt],n),o),g=p(n[1][1+L],n,f);return o===k&&f===g?s:[0,k,g]},H1,function(n,s){var f=s[3],o=s[2],k=s[1],g=p(n[1][1+gt],n,k);if(o[0]===0)var E=o[1],e0=P0(p(n[1][1+bx],n,_$),E,o,function(F0){return[0,F0]});else var C=o[1],R=o[2],e0=O0(d(n[1][1+Ss],n),C,R,o,function(F0){return[1,C,F0]});var l0=p(n[1][1+L],n,f);return k===g&&o===e0&&f===l0?s:[0,g,e0,l0]},Ze,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+bs],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Mr,function(n,s,f){var o=f[1],k=H0(n[1][1+Ze],n,s,o);return o===k?f:[0,k,f[2],f[3]]},bs,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+wn],n),f,s,function(g){return[0,g]});case 1:var o=s[1];return P0(d(n[1][1+le],n),o,s,function(g){return[1,g]});default:var k=s[1];return P0(d(n[1][1+_n],n),k,s,function(g){return[2,g]})}},wn,function(n,s){return p(n[1][1+Cx],n,s)},le,function(n,s){return p(n[1][1+m0],n,s)},_n,function(n,s){return p(n[1][1+Ox],n,s)},q1,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Cx],n,g),C=p(n[1][1+Cx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},Jt,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Ox],n,E),R=Ax(d(n[1][1+Do],n),g),e0=Ax(d(n[1][1+j4],n),k),l0=p(n[1][1+L],n,o);return E===C&&g===R&&k===e0&&o===l0?f:[0,C,R,e0,l0]},Y2,function(n,s,f){var o=f[2],k=f[1],g=fr(function(C){if(C[0]===0){var R=C[1],e0=p(n[1][1+wx],n,R);return R===e0?C:[0,e0]}var l0=C[1],F0=p(n[1][1+z0],n,l0);return l0===F0?C:[1,F0]},k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},wx,function(n,s){var f=s[2],o=s[1];switch(f[0]){case 0:var k=f[3],g=f[2],E=f[1],C=p(n[1][1+ux],n,E),R=p(n[1][1+Ox],n,g);x:if(k){if(C[0]===3){var e0=R[2];if(e0[0]===10){var F0=br(C[1][2][1],e0[1][2][1]);break x}}var l0=E===C?1:0,F0=l0&&(g===R?1:0)}else var F0=k;return E===C&&g===R&&k===F0?s:[0,o,[0,C,R,F0]];case 1:var dx=f[2],Xx=f[1],Kx=p(n[1][1+ux],n,Xx),_r=W2(d(n[1][1+T2],n),dx);return Xx===Kx&&dx===_r?s:[0,o,[1,Kx,_r]];case 2:var t2=f[3],Wr=f[2],Vx=f[1],C2=p(n[1][1+ux],n,Vx),z2=W2(d(n[1][1+T2],n),Wr),ee=p(n[1][1+L],n,t2);return Vx===C2&&Wr===z2&&t2===ee?s:[0,o,[2,C2,z2,ee]];default:var me=f[3],he=f[2],te=f[1],de=p(n[1][1+ux],n,te),ye=W2(d(n[1][1+T2],n),he),ge=p(n[1][1+L],n,me);return te===de&&he===ye&&me===ge?s:[0,o,[3,de,ye,ge]]}},ux,function(n,s){switch(s[0]){case 0:var f=s[1];return P0(d(n[1][1+Hx],n),f,s,function(R){return[0,R]});case 1:var o=s[1];return P0(d(n[1][1+Zr],n),o,s,function(R){return[1,R]});case 2:var k=s[1];return P0(d(n[1][1+x2],n),k,s,function(R){return[2,R]});case 3:var g=s[1];return P0(d(n[1][1+dr],n),g,s,function(R){return[3,R]});case 4:var E=s[1];return P0(d(n[1][1+m0],n),E,s,function(R){return[4,R]});default:var C=s[1];return P0(d(n[1][1+Or],n),C,s,function(R){return[5,R]})}},Hx,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+$0],n),f,o,s,function(k){return[0,f,k]})},Zr,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+H2],n),f,o,s,function(k){return[0,f,k]})},x2,function(n,s){var f=s[1],o=s[2];return O0(d(n[1][1+qs],n),f,o,s,function(k){return[0,f,k]})},dr,function(n,s){return p(n[1][1+Cx],n,s)},Or,function(n,s){return p(n[1][1+Fs],n,s)},i2,function(n,s,f){var o=f[5],k=f[4],g=f[3],E=f[2],C=f[1],R=p(n[1][1+Pn],n,C),e0=Ax(d(n[1][1+M],n),E),l0=Ax(d(n[1][1+a0],n),g),F0=Ax(d(n[1][1+a0],n),k),dx=p(n[1][1+L],n,o);return C===R&&g===l0&&E===e0&&g===l0&&k===F0&&o===dx?f:[0,R,e0,l0,F0,dx]},f2,function(n,s){return H0(n[1][1+r3],n,b$,s)},v,function(n,s,f){return H0(n[1][1+r3],n,[0,s],f)},Qv,function(n,s){return H0(n[1][1+r3],n,T$,s)},Wt,function(n,s){return p(n[1][1+e3],n,s)},Z1,function(n,s){return p(n[1][1+e3],n,s)},r3,function(n,s,f){var o=s?s[1]:0;return H0(n[1][1+sr],n,[0,o],f)},e3,function(n,s){return H0(n[1][1+sr],n,0,s)},sr,function(n,s,f){var o=f[2],k=f[1];switch(o[0]){case 0:var g=o[1],E=g[3],C=g[2],R=g[1],e0=fr(p(n[1][1+Fx],n,s),R),l0=p(n[1][1+c0],n,C),F0=p(n[1][1+L],n,E);x:{if(e0===R&&l0===C&&F0===E){var dx=o;break x}var dx=[0,[0,e0,l0,F0]]}var we=dx;break;case 1:var Xx=o[1],Kx=Xx[3],_r=Xx[2],t2=Xx[1],Wr=fr(p(n[1][1+tr],n,s),t2),Vx=p(n[1][1+c0],n,_r),C2=p(n[1][1+L],n,Kx);x:{if(Kx===C2&&Wr===t2&&Vx===_r){var z2=o;break x}var z2=[1,[0,Wr,Vx,C2]]}var we=z2;break;case 2:var ee=o[1],me=ee[2],he=ee[1],te=ee[3],de=H0(n[1][1+bx],n,s,he),ye=p(n[1][1+c0],n,me);x:{if(he===de&&me===ye){var ge=o;break x}var ge=[2,[0,de,ye,te]]}var we=ge;break;default:var At=o[1],we=P0(d(n[1][1+B0],n),At,o,function(ct){return[3,ct]})}return o===we?f:[0,k,we]},bx,function(n,s,f){return p(n[1][1+Cx],n,f)},Gx,function(n,s,f,o){return H0(n[1][1+$0],n,f,o)},Sx,function(n,s,f,o){return H0(n[1][1+H2],n,f,o)},Wx,function(n,s,f,o){return H0(n[1][1+qs],n,f,o)},Fx,function(n,s,f){if(f[0]===0){var o=f[1];return P0(p(n[1][1+p0],n,s),o,f,function(g){return[0,g]})}var k=f[1];return P0(p(n[1][1+G0],n,s),k,f,function(g){return[1,g]})},p0,function(n,s,f){var o=f[2],k=o[4],g=o[3],E=o[2],C=o[1],R=f[1],e0=H0(n[1][1+rx],n,s,C),l0=H0(n[1][1+S],n,s,E),F0=p(n[1][1+re],n,g);x:if(k){if(e0[0]===3){var dx=l0[2];if(dx[0]===2){var Kx=br(e0[1][2][1],dx[1][1][2][1]);break x}}var Xx=C===e0?1:0,Kx=Xx&&(E===l0?1:0)}else var Kx=k;return e0===C&&l0===E&&F0===g&&k===Kx?f:[0,R,[0,e0,l0,F0,Kx]]},rx,function(n,s,f){switch(f[0]){case 0:var o=f[1];return P0(p(n[1][1+Kr],n,s),o,f,function(R){return[0,R]});case 1:var k=f[1];return P0(p(n[1][1+G],n,s),k,f,function(R){return[1,R]});case 2:var g=f[1];return P0(p(n[1][1+nx],n,s),g,f,function(R){return[2,R]});case 3:var E=f[1];return P0(p(n[1][1+yx],n,s),E,f,function(R){return[3,R]});default:var C=f[1];return P0(p(n[1][1+Ex],n,s),C,f,function(R){return[4,R]})}},Kr,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Gx],n,s),o,k,f,function(g){return[0,o,g]})},G,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Sx],n,s),o,k,f,function(g){return[0,o,g]})},nx,function(n,s,f){var o=f[1],k=f[2];return O0(p(n[1][1+Wx],n,s),o,k,f,function(g){return[0,o,g]})},yx,function(n,s,f){return H0(n[1][1+bx],n,s,f)},Ex,function(n,s,f){return p(n[1][1+Fs],n,f)},G0,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Px],n,s,g),R=p(n[1][1+L],n,k);return C===g&&k===R?f:[0,E,[0,C,R]]},S,function(n,s,f){return H0(n[1][1+sr],n,s,f)},Px,function(n,s,f){return H0(n[1][1+sr],n,s,f)},tr,function(n,s,f){switch(f[0]){case 0:var o=f[1];return P0(p(n[1][1+kx],n,s),o,f,function(g){return[0,g]});case 1:var k=f[1];return P0(p(n[1][1+ax],n,s),k,f,function(g){return[1,g]});default:return f}},kx,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Qx],n,s,g),R=p(n[1][1+re],n,k);return g===C&&k===R?f:[0,E,[0,C,R]]},Qx,function(n,s,f){return H0(n[1][1+sr],n,s,f)},ax,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+Yx],n,s,g),R=p(n[1][1+L],n,k);return C===g&&k===R?f:[0,E,[0,C,R]]},Yx,function(n,s,f){return H0(n[1][1+sr],n,s,f)},B0,function(n,s){return p(n[1][1+Ox],n,s)},X,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1];if(k)var E=k[1],C=P0(d(n[1][1+Ox],n),E,k,function(e0){return[0,e0]});else var C=k;var R=p(n[1][1+L],n,o);return k===C&&o===R?s:[0,g,[0,C,R]]},T0,function(n,s){return p(n[1][1+Ox],n,s)},n0,function(n,s){var f=s[2],o=s[1],k=p(n[1][1+$],n,f);return B3(k,f)?s:[0,o,k]},$,function(n,s){var f=s[2],o=f[3],k=f[2],g=k[2],E=k[1],C=f[1],R=s[1],e0=p(n[1][1+Cx],n,E),l0=Ax(d(n[1][1+a0],n),g),F0=p(n[1][1+L],n,o);return e0===E&&l0===g&&F0===o?s:[0,R,[0,C,[0,e0,l0],F0]]},r2,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+f2],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},Q,function(n,s,f){var o=f[2],k=f[1],g=f[3],E=Ax(d(n[1][1+Ox],n),k),C=p(n[1][1+L],n,o);return k===E&&o===C?f:[0,E,C,g]},sx,function(n,s,f){var o=f[2],k=f[1],g=fr(d(n[1][1+Ox],n),k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},C0,function(n,s){return p(n[1][1+ex],n,s)},ex,function(n,s){var f=d(n[1][1+xx],n),o=m1(function(g,E){var C=g[2],R=g[1],e0=d(f,E);if(!e0)return[0,R,1];if(e0[2])return[0,K3(e0,R),1];var l0=e0[1],F0=C||(E!==l0?1:0);return[0,[0,l0,R],F0]},E$,s),k=o[1];return o[2]?ix(k):s},xx,function(n,s){return[0,p(n[1][1+tx],n,s),0]},px,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},z0,function(n,s){var f=s[2],o=f[2],k=f[1],g=s[1],E=p(n[1][1+Ox],n,k),C=p(n[1][1+L],n,o);return k===E&&o===C?s:[0,g,[0,E,C]]},A0,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},K0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=f[4],C=p(n[1][1+Ox],n,g),R=fr(d(n[1][1+S0],n),k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?f:[0,C,R,e0,E]},S0,function(n,s){var f=s[2],o=f[3],k=f[2],g=f[1],E=s[1],C=Ax(d(n[1][1+Ox],n),g),R=p(n[1][1+ex],n,k),e0=p(n[1][1+L],n,o);return g===C&&k===R&&o===e0?s:[0,E,[0,C,R,e0]]},Y0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=W2(d(n[1][1+y0],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},y0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=fr(d(n[1][1+j0],n),g),C=fr(d(n[1][1+Ox],n),k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},j0,function(n,s){return s},I0,function(n,s,f){var o=f[1],k=p(n[1][1+L],n,o);return o===k?f:[0,k]},D0,function(n,s,f){var o=f[2],k=f[1],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,g,E]},M0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=W2(d(n[1][1+Qt],n),E);if(g)var R=g[1],e0=R[1],l0=R[2],F0=O0(d(n[1][1+Hv],n),e0,l0,g,function(Wr){return[0,[0,e0,Wr]]});else var F0=g;if(k)var dx=k[1],Xx=dx[1],Kx=dx[2],_r=O0(d(n[1][1+Qt],n),Xx,Kx,k,function(Wr){return[0,[0,Xx,Wr]]});else var _r=k;var t2=p(n[1][1+L],n,o);return E===C&&g===F0&&k===_r&&o===t2?f:[0,C,F0,_r,t2]},H,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&C===k&&R===o?f:[0,E,C,R]},w0,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+r0],n,k),R=p(n[1][1+L],n,o);return E===g&&B3(C,k)&&R===o?f:[0,E,C,R]},T,function(n,s,f){var o=f[3],k=f[2],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],g,E]},m,function(n,s,f){var o=f[4],k=f[2],g=p(n[1][1+Ox],n,k),E=p(n[1][1+L],n,o);return k===g&&o===E?f:[0,f[1],g,f[3],E]},l,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=fr(p(n[1][1+a],n,k),g),C=p(n[1][1+L],n,o);return g===E&&o===C?f:[0,E,k,C]},a,function(n,s,f){var o=f[2],k=o[2],g=o[1],E=f[1],C=H0(n[1][1+v],n,s,g),R=Ax(d(n[1][1+Ox],n),k);return g===C&&k===R?f:[0,E,[0,C,R]]},u,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+T0],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},t,function(n,s,f){var o=f[3],k=f[2],g=f[1],E=p(n[1][1+Ox],n,g),C=p(n[1][1+tx],n,k),R=p(n[1][1+L],n,o);return g===E&&k===C&&o===R?f:[0,E,C,R]},v0,function(n,s,f){var o=f[4],k=f[3],g=f[2],E=f[1],C=p(n[1][1+Pn],n,E),R=Ax(d(n[1][1+M],n),g),e0=p(n[1][1+a0],n,k),l0=p(n[1][1+L],n,o);return E===C&&k===e0&&g===R&&o===l0?f:[0,C,R,e0,l0]},e,function(n,s,f){var o=f[2],k=f[1],g=f[4],E=f[3],C=Ax(d(n[1][1+Ox],n),k),R=p(n[1][1+L],n,o);return o===R&&k===C?f:[0,C,R,E,g]}]),function(n,s){return y5(s,x)}}),Uj=[];function mU(x,r,e){var t=e[2];switch(t[0]){case 0:var u=t[1][1];return m1(d(Uj[1],x),r,u);case 1:var i=t[1][1];return m1(d(Uj[2],x),r,i);case 2:return p(x,r,t[1][1]);default:return r}}Fr(Uj,[0,function(x,r){return function(e){var t=e[0]===0?e[1][2][2]:e[1][2][1];return mU(x,r,t)}},function(x,r){return function(e){return e[0]===2?r:mU(x,r,e[1][2][1])}}]);var Bj=[];function hU(x){var r=x[2];switch(r[0]){case 0:return J3(Bj[1],r[1][1]);case 1:return J3(Bj[2],r[1][1]);case 2:return 1;default:return 0}}Fr(Bj,[0,function(x){var r=x[0]===0?x[1][2][2]:x[1][2][1];return hU(r)},function(x){return x[0]===2?0:hU(x[1][2][1])}]);var E5=[];function Xj(x){var r=x[2];switch(r[0]){case 7:return 1;case 10:var e=r[1],t=e[1],u=d(E5[2],e[2]);return u||J3(E5[1],t);case 11:var i=r[1],c=i[1],v=d(E5[2],i[2]);return v||J3(function(a){return Xj(a[2])},c);case 12:return J3(Xj,r[1][1]);case 13:return 1;default:return 0}}Fr(E5,[0,function(x){return Xj(x[2][2])},function(x){return x&&x[1][2][1]?1:0}]);function mn(x,r){return[0,r[1],[0,r[2],x]]}function dU(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return[0,t,u,e]}function Z(x,r,e){var t=x?x[1]:0,u=r?r[1]:0;return!t&&!u?0:[0,dU([0,t],[0,u],0)]}function O2(x,r,e,t){var u=x?x[1]:0,i=r?r[1]:0;return!u&&!i&&!e?0:[0,dU([0,u],[0,i],e)]}function S1(x,r){if(x){if(r){var e=r[1],t=x[1],u=[0,Mx(t[2],e[2])];return Z([0,Mx(e[1],t[1])],u,O)}var i=x}else var i=r;return i}function S5(x,r){if(!r)return x;if(x){var e=r[1],t=x[1],u=e[1],i=t[3],c=t[1],v=[0,Mx(t[2],e[2])];return O2([0,Mx(u,c)],v,i,O)}var a=r[1];return O2([0,a[1]],[0,a[2]],0,O)}function yU(x,r){s1(x)(vQ),d(s1(x)(pQ),lQ);var e=r[1];d(s1(x)(kQ),e),s1(x)(mQ),s1(x)(hQ),d(s1(x)(yQ),dQ);var t=r[2];return d(s1(x)(gQ),t),s1(x)(wQ),s1(x)(_Q)}Fr([],[0,yU,yU,function(x,r){switch(r[0]){case 0:var e=r[1];return s1(x)(x$),d(s1(x)(r$),e),s1(x)(e$);case 1:var t=r[1];return s1(x)(t$),d(s1(x)(n$),t),s1(x)(u$);case 2:var u=r[1];return s1(x)(i$),d(s1(x)(f$),u),s1(x)(c$);default:var i=r[1];return s1(x)(s$),d(s1(x)(a$),i),s1(x)(o$)}}]);function Yr(x,r){return[0,x[1],x[2],r[3]]}function ma(x,r){var e=x[1]-r[1]|0;return e===0?x[2]-r[2]|0:e}function gU(x,r){var e=r[1],t=x[1];if(t){var u=t[1];if(e)var i=e[1],c=kU(i),v=kU(u)-c|0,a=v===0?fx(u[1],i[1]):v;else var a=-1}else var a=e?1:0;if(a!==0)return a;var l=ma(x[2],r[2]);return l===0?ma(x[3],r[3]):l}function ro(x,r){return gU(x,r)===0?1:0}var hr=[];Fr(hr,[0,function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r){switch(x){case 0:if(!r)return 0;break;case 1:if(r===1)return 0;break;case 2:if(r===2)return 0;break;case 3:if(r===3)return 0;break;default:if(4<=r)return 0}function e(u){switch(u){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;default:return 4}}var t=e(r);return We(e(x),t)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return We(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)},function(x,r,e){return fx(r,e)}]);var wU=O00.slice();function Yj(x){for(var r=0,e=wU.length-1-1|0;;){if(ex)return 1;var r=t+1|0}}}var _U=0;function bU(x){var r=x[2];return[0,x[1],[0,r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12]],x[3],x[4],x[5],x[6],x[7]]}function TU(x){return x[3][1]}function A5(x,r){return x!==r[4]?[0,r[1],r[2],r[3],x,r[5],r[6],r[7]]:r}var Qe=[];function EU(x,r){if(typeof x=="number"){var e=x;if(67<=e)if(fe<=e)switch(e){case 101:if(typeof r=="number"&&fe===r)return 1;break;case 102:if(typeof r=="number"&&g1===r)return 1;break;case 103:if(typeof r=="number"&&sn===r)return 1;break;case 104:if(typeof r=="number"&&Be===r)return 1;break;case 105:if(typeof r=="number"&&ui===r)return 1;break;case 106:if(typeof r=="number"&&Je===r)return 1;break;case 107:if(typeof r=="number"&&K2===r)return 1;break;case 108:if(typeof r=="number"&&sv===r)return 1;break;case 109:if(typeof r=="number"&&st===r)return 1;break;case 110:if(typeof r=="number"&&z1===r)return 1;break;case 111:if(typeof r=="number"&&ce===r)return 1;break;case 112:if(typeof r=="number"&&ea===r)return 1;break;case 113:if(typeof r=="number"&&Te===r)return 1;break;case 114:if(typeof r=="number"&&mr===r)return 1;break;case 115:if(typeof r=="number"&&tv===r)return 1;break;case 116:if(typeof r=="number"&&Wa===r)return 1;break;case 117:if(typeof r=="number"&&y6===r)return 1;break;case 118:if(typeof r=="number"&&P3===r)return 1;break;case 119:if(typeof r=="number"&&zl===r)return 1;break;case 120:if(typeof r=="number"&&vf===r)return 1;break;case 121:if(typeof r=="number"&&m6===r)return 1;break;case 122:if(typeof r=="number"&&s2===r)return 1;break;case 123:if(typeof r=="number"&&rn===r)return 1;break;case 124:if(typeof r=="number"&&S3===r)return 1;break;case 125:if(typeof r=="number"&&Ba===r)return 1;break;case 126:if(typeof r=="number"&&Sk===r)return 1;break;case 127:if(typeof r=="number"&&Br===r)return 1;break;case 128:if(typeof r=="number"&&M2===r)return 1;break;case 129:if(typeof r=="number"&&Xo===r)return 1;break;case 130:if(typeof r=="number"&&d6===r)return 1;break;case 131:if(typeof r=="number"&&r6===r)return 1;break;case 132:if(typeof r=="number"&&r8===r)return 1;break;default:if(typeof r=="number"&&_k<=r)return 1}else switch(e){case 67:if(typeof r=="number"&&r===67)return 1;break;case 68:if(typeof r=="number"&&r===68)return 1;break;case 69:if(typeof r=="number"&&r===69)return 1;break;case 70:if(typeof r=="number"&&r===70)return 1;break;case 71:if(typeof r=="number"&&r===71)return 1;break;case 72:if(typeof r=="number"&&r===72)return 1;break;case 73:if(typeof r=="number"&&r===73)return 1;break;case 74:if(typeof r=="number"&&r===74)return 1;break;case 75:if(typeof r=="number"&&r===75)return 1;break;case 76:if(typeof r=="number"&&r===76)return 1;break;case 77:if(typeof r=="number"&&r===77)return 1;break;case 78:if(typeof r=="number"&&r===78)return 1;break;case 79:if(typeof r=="number"&&r===79)return 1;break;case 80:if(typeof r=="number"&&r===80)return 1;break;case 81:if(typeof r=="number"&&r===81)return 1;break;case 82:if(typeof r=="number"&&r===82)return 1;break;case 83:if(typeof r=="number"&&r===83)return 1;break;case 84:if(typeof r=="number"&&r===84)return 1;break;case 85:if(typeof r=="number"&&r===85)return 1;break;case 86:if(typeof r=="number"&&r===86)return 1;break;case 87:if(typeof r=="number"&&r===87)return 1;break;case 88:if(typeof r=="number"&&r===88)return 1;break;case 89:if(typeof r=="number"&&r===89)return 1;break;case 90:if(typeof r=="number"&&r===90)return 1;break;case 91:if(typeof r=="number"&&r===91)return 1;break;case 92:if(typeof r=="number"&&r===92)return 1;break;case 93:if(typeof r=="number"&&r===93)return 1;break;case 94:if(typeof r=="number"&&r===94)return 1;break;case 95:if(typeof r=="number"&&r===95)return 1;break;case 96:if(typeof r=="number"&&r===96)return 1;break;case 97:if(typeof r=="number"&&r===97)return 1;break;case 98:if(typeof r=="number"&&r===98)return 1;break;case 99:if(typeof r=="number"&&r===99)return 1;break;default:if(typeof r=="number"&&y2===r)return 1}else if(34<=e)switch(e){case 34:if(typeof r=="number"&&r===34)return 1;break;case 35:if(typeof r=="number"&&r===35)return 1;break;case 36:if(typeof r=="number"&&r===36)return 1;break;case 37:if(typeof r=="number"&&r===37)return 1;break;case 38:if(typeof r=="number"&&r===38)return 1;break;case 39:if(typeof r=="number"&&r===39)return 1;break;case 40:if(typeof r=="number"&&r===40)return 1;break;case 41:if(typeof r=="number"&&r===41)return 1;break;case 42:if(typeof r=="number"&&r===42)return 1;break;case 43:if(typeof r=="number"&&r===43)return 1;break;case 44:if(typeof r=="number"&&r===44)return 1;break;case 45:if(typeof r=="number"&&r===45)return 1;break;case 46:if(typeof r=="number"&&r===46)return 1;break;case 47:if(typeof r=="number"&&r===47)return 1;break;case 48:if(typeof r=="number"&&r===48)return 1;break;case 49:if(typeof r=="number"&&r===49)return 1;break;case 50:if(typeof r=="number"&&r===50)return 1;break;case 51:if(typeof r=="number"&&r===51)return 1;break;case 52:if(typeof r=="number"&&r===52)return 1;break;case 53:if(typeof r=="number"&&r===53)return 1;break;case 54:if(typeof r=="number"&&r===54)return 1;break;case 55:if(typeof r=="number"&&r===55)return 1;break;case 56:if(typeof r=="number"&&r===56)return 1;break;case 57:if(typeof r=="number"&&r===57)return 1;break;case 58:if(typeof r=="number"&&r===58)return 1;break;case 59:if(typeof r=="number"&&r===59)return 1;break;case 60:if(typeof r=="number"&&r===60)return 1;break;case 61:if(typeof r=="number"&&r===61)return 1;break;case 62:if(typeof r=="number"&&r===62)return 1;break;case 63:if(typeof r=="number"&&r===63)return 1;break;case 64:if(typeof r=="number"&&r===64)return 1;break;case 65:if(typeof r=="number"&&r===65)return 1;break;default:if(typeof r=="number"&&r===66)return 1}else switch(e){case 0:if(typeof r=="number"&&!r)return 1;break;case 1:if(typeof r=="number"&&r===1)return 1;break;case 2:if(typeof r=="number"&&r===2)return 1;break;case 3:if(typeof r=="number"&&r===3)return 1;break;case 4:if(typeof r=="number"&&r===4)return 1;break;case 5:if(typeof r=="number"&&r===5)return 1;break;case 6:if(typeof r=="number"&&r===6)return 1;break;case 7:if(typeof r=="number"&&r===7)return 1;break;case 8:if(typeof r=="number"&&r===8)return 1;break;case 9:if(typeof r=="number"&&r===9)return 1;break;case 10:if(typeof r=="number"&&r===10)return 1;break;case 11:if(typeof r=="number"&&r===11)return 1;break;case 12:if(typeof r=="number"&&r===12)return 1;break;case 13:if(typeof r=="number"&&r===13)return 1;break;case 14:if(typeof r=="number"&&r===14)return 1;break;case 15:if(typeof r=="number"&&r===15)return 1;break;case 16:if(typeof r=="number"&&r===16)return 1;break;case 17:if(typeof r=="number"&&r===17)return 1;break;case 18:if(typeof r=="number"&&r===18)return 1;break;case 19:if(typeof r=="number"&&r===19)return 1;break;case 20:if(typeof r=="number"&&r===20)return 1;break;case 21:if(typeof r=="number"&&r===21)return 1;break;case 22:if(typeof r=="number"&&r===22)return 1;break;case 23:if(typeof r=="number"&&r===23)return 1;break;case 24:if(typeof r=="number"&&r===24)return 1;break;case 25:if(typeof r=="number"&&r===25)return 1;break;case 26:if(typeof r=="number"&&r===26)return 1;break;case 27:if(typeof r=="number"&&r===27)return 1;break;case 28:if(typeof r=="number"&&r===28)return 1;break;case 29:if(typeof r=="number"&&r===29)return 1;break;case 30:if(typeof r=="number"&&r===30)return 1;break;case 31:if(typeof r=="number"&&r===31)return 1;break;case 32:if(typeof r=="number"&&r===32)return 1;break;default:if(typeof r=="number"&&r===33)return 1}}else switch(x[0]){case 0:if(typeof r!="number"&&r[0]===0){var t=r[2],u=x[2],i=p(Qe[13],x[1],r[1]);return i&&br(u,t)}break;case 1:if(typeof r!="number"&&r[0]===1){var c=r[2],v=x[2],a=p(Qe[12],x[1],r[1]);return a&&br(v,c)}break;case 2:if(typeof r!="number"&&r[0]===2){var l=r[1],m=x[1],h=l[4],T=l[3],b=l[2],N=m[4],j=m[3],I=m[2],F=p(Qe[11],m[1],l[1]),M=F&&br(I,b),z=M&&br(j,T);return z&&(N===h?1:0)}break;case 3:if(typeof r!="number"&&r[0]===3){var B=r[1],K=x[1],n0=B[5],$=B[4],H=B[3],t0=B[2],c0=K[5],r0=K[4],v0=K[3],a0=K[2],g0=p(Qe[10],K[1],B[1]),i0=g0&&br(a0,t0),s0=i0&&br(v0,H),d0=s0&&(r0===$?1:0);return d0&&(c0===n0?1:0)}break;case 4:if(typeof r!="number"&&r[0]===4){var w0=r[3],M0=r[2],C0=x[3],D0=x[2],I0=p(Qe[9],x[1],r[1]),j0=I0&&br(D0,M0);return j0&&br(C0,w0)}break;case 5:if(typeof r!="number"&&r[0]===5){var y0=r[3],Y0=r[2],L=x[3],N0=x[2],S0=p(Qe[8],x[1],r[1]),K0=S0&&br(N0,Y0);return K0&&br(L,y0)}break;case 6:if(typeof r!="number"&&r[0]===6){var A0=r[2],$0=x[2],ex=p(Qe[7],x[1],r[1]);return ex&&br($0,A0)}break;case 7:if(typeof r!="number"&&r[0]===7)return br(x[1],r[1]);break;case 8:if(typeof r!="number"&&r[0]===8){var xx=br(x[1],r[1]),tx=r[2],z0=x[2];return xx&&p(Qe[6],z0,tx)}break;case 9:if(typeof r!="number"&&r[0]===9){var px=r[3],sx=r[2],Q=x[3],b0=x[2],U=p(Qe[5],x[1],r[1]),h0=U&&br(b0,sx);return h0&&br(Q,px)}break;case 10:if(typeof r!="number"&&r[0]===10){var _0=r[3],m0=r[2],T0=x[3],X=x[2],Gx=p(Qe[4],x[1],r[1]),Px=Gx&&br(X,m0);return Px&&br(T0,_0)}break;case 11:if(typeof r!="number"&&r[0]===11)return p(Qe[3],x[1],r[1]);break;case 12:if(typeof r!="number"&&r[0]===12){var G0=r[3],Kr=r[2],S=x[3],G=x[2],rx=p(Qe[2],x[1],r[1]),yx=rx&&(G==Kr?1:0);return yx&&br(S,G0)}break;default:if(typeof r!="number"&&r[0]===13){var Ex=r[2],nx=x[2],p0=r[3],Fx=x[3],Sx=p(Qe[1],x[1],r[1]);if(Sx){x:{if(nx){if(Ex){var bx=B3(nx[1],Ex[1]);break x}}else if(!Ex){var bx=1;break x}var bx=0}var B0=bx}else var B0=Sx;return B0&&br(Fx,p0)}}return 0}function SU(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;case 2:if(r===2)return 1;break;case 3:if(r===3)return 1;break;default:if(4<=r)return 1}return 0}function AU(x,r){switch(x){case 0:if(!r)return 1;break;case 1:if(r===1)return 1;break;default:if(2<=r)return 1}return 0}Fr(Qe,[0,AU,SU,function(x,r){if(x){if(r)return 1}else if(!r)return 1;return 0},ro,ro,ro,ro,ro,ro,ro,ro,AU,SU]);function PU(x){if(typeof x!="number")switch(x[0]){case 0:return st0;case 1:return at0;case 2:return ot0;case 3:return vt0;case 4:return lt0;case 5:return pt0;case 6:return kt0;case 7:return mt0;case 8:return ht0;case 9:return dt0;case 10:return yt0;case 11:return gt0;case 12:return wt0;default:return _t0}var r=x;if(67<=r){if(fe<=r)switch(r){case 101:return Ne0;case 102:return je0;case 103:return Ce0;case 104:return Oe0;case 105:return De0;case 106:return Fe0;case 107:return Re0;case 108:return Le0;case 109:return Me0;case 110:return qe0;case 111:return Ue0;case 112:return Be0;case 113:return Xe0;case 114:return Ye0;case 115:return ze0;case 116:return Ke0;case 117:return Je0;case 118:return Ge0;case 119:return We0;case 120:return Ve0;case 121:return $e0;case 122:return Qe0;case 123:return He0;case 124:return Ze0;case 125:return xt0;case 126:return rt0;case 127:return et0;case 128:return tt0;case 129:return nt0;case 130:return ut0;case 131:return it0;case 132:return ft0;default:return ct0}switch(r){case 67:return $10;case 68:return Q10;case 69:return H10;case 70:return Z10;case 71:return xe0;case 72:return re0;case 73:return ee0;case 74:return te0;case 75:return ne0;case 76:return ue0;case 77:return ie0;case 78:return fe0;case 79:return ce0;case 80:return se0;case 81:return ae0;case 82:return oe0;case 83:return ve0;case 84:return le0;case 85:return pe0;case 86:return ke0;case 87:return me0;case 88:return he0;case 89:return de0;case 90:return ye0;case 91:return ge0;case 92:return we0;case 93:return _e0;case 94:return be0;case 95:return Te0;case 96:return Ee0;case 97:return Se0;case 98:return Ae0;case 99:return Pe0;default:return Ie0}}if(34<=r)switch(r){case 34:return h10;case 35:return d10;case 36:return y10;case 37:return g10;case 38:return w10;case 39:return _10;case 40:return b10;case 41:return T10;case 42:return E10;case 43:return S10;case 44:return A10;case 45:return P10;case 46:return I10;case 47:return N10;case 48:return j10;case 49:return C10;case 50:return O10;case 51:return D10;case 52:return F10;case 53:return R10;case 54:return L10;case 55:return M10;case 56:return q10;case 57:return U10;case 58:return B10;case 59:return X10;case 60:return Y10;case 61:return z10;case 62:return K10;case 63:return J10;case 64:return G10;case 65:return W10;default:return V10}switch(r){case 0:return L20;case 1:return M20;case 2:return q20;case 3:return U20;case 4:return B20;case 5:return X20;case 6:return Y20;case 7:return z20;case 8:return K20;case 9:return J20;case 10:return G20;case 11:return W20;case 12:return V20;case 13:return $20;case 14:return Q20;case 15:return H20;case 16:return Z20;case 17:return x10;case 18:return r10;case 19:return e10;case 20:return t10;case 21:return n10;case 22:return u10;case 23:return i10;case 24:return f10;case 25:return c10;case 26:return s10;case 27:return a10;case 28:return o10;case 29:return v10;case 30:return l10;case 31:return p10;case 32:return k10;default:return m10}}function zj(x){if(typeof x!="number")switch(x[0]){case 0:return x[2];case 1:return x[2];case 2:return x[1][3];case 3:var r=x[1],e=r[5],t=r[4],u=r[3];return t&&e?qx(S20,qx(u,E20)):t?qx(P20,qx(u,A20)):e?qx(N20,qx(u,I20)):qx(C20,qx(u,j20));case 4:return x[3];case 5:var i=x[2];return qx(D20,qx(i,qx(O20,x[3])));case 6:return x[2];case 7:return x[1];case 8:return x[1];case 9:return x[3];case 10:return x[3];case 11:return x[1]?F20:R20;case 12:return x[3];default:return x[3]}var c=x;if(67<=c){if(fe<=c)switch(c){case 101:return Jr0;case 102:return Gr0;case 103:return Wr0;case 104:return Vr0;case 105:return $r0;case 106:return Qr0;case 107:return Hr0;case 108:return Zr0;case 109:return x20;case 110:return r20;case 111:return e20;case 112:return t20;case 113:return n20;case 114:return u20;case 115:return i20;case 116:return f20;case 117:return c20;case 118:return s20;case 119:return a20;case 120:return o20;case 121:return v20;case 122:return l20;case 123:return p20;case 124:return k20;case 125:return m20;case 126:return h20;case 127:return d20;case 128:return y20;case 129:return g20;case 130:return w20;case 131:return _20;case 132:return b20;default:return T20}switch(c){case 67:return vr0;case 68:return lr0;case 69:return pr0;case 70:return kr0;case 71:return mr0;case 72:return hr0;case 73:return dr0;case 74:return yr0;case 75:return gr0;case 76:return wr0;case 77:return _r0;case 78:return br0;case 79:return Tr0;case 80:return Er0;case 81:return Sr0;case 82:return Ar0;case 83:return Pr0;case 84:return Ir0;case 85:return Nr0;case 86:return jr0;case 87:return Cr0;case 88:return Or0;case 89:return Dr0;case 90:return Fr0;case 91:return Rr0;case 92:return Lr0;case 93:return Mr0;case 94:return qr0;case 95:return Ur0;case 96:return Br0;case 97:return Xr0;case 98:return Yr0;case 99:return zr0;default:return Kr0}}if(34<=c)switch(c){case 34:return Ox0;case 35:return Dx0;case 36:return Fx0;case 37:return Rx0;case 38:return Lx0;case 39:return Mx0;case 40:return qx0;case 41:return Ux0;case 42:return Bx0;case 43:return Xx0;case 44:return Yx0;case 45:return zx0;case 46:return Kx0;case 47:return Jx0;case 48:return Gx0;case 49:return Wx0;case 50:return Vx0;case 51:return $x0;case 52:return Qx0;case 53:return Hx0;case 54:return Zx0;case 55:return xr0;case 56:return rr0;case 57:return er0;case 58:return tr0;case 59:return nr0;case 60:return ur0;case 61:return ir0;case 62:return fr0;case 63:return cr0;case 64:return sr0;case 65:return ar0;default:return or0}switch(c){case 0:return Z00;case 1:return xx0;case 2:return rx0;case 3:return ex0;case 4:return tx0;case 5:return nx0;case 6:return ux0;case 7:return ix0;case 8:return fx0;case 9:return cx0;case 10:return sx0;case 11:return ax0;case 12:return ox0;case 13:return vx0;case 14:return lx0;case 15:return px0;case 16:return kx0;case 17:return mx0;case 18:return hx0;case 19:return dx0;case 20:return yx0;case 21:return gx0;case 22:return wx0;case 23:return _x0;case 24:return bx0;case 25:return Tx0;case 26:return Ex0;case 27:return Sx0;case 28:return Ax0;case 29:return Px0;case 30:return Ix0;case 31:return Nx0;case 32:return jx0;default:return Cx0}}function P5(x){return d(ar(H00),x)}function Kj(x,r){var e=x?x[1]:0;x:{if(typeof r=="number"){if(mr===r){var t=R00,u=L00;break x}}else switch(r[0]){case 3:var t=M00,u=q00;break x;case 5:var t=U00,u=B00;break x;case 0:case 12:var t=Y00,u=z00;break x;case 1:case 13:var t=K00,u=J00;break x;case 4:case 8:var t=V00,u=$00;break x;case 6:case 7:case 11:break;default:var t=G00,u=W00;break x}var t=X00,u=P5(zj(r))}return e?qx(t,qx(Q00,u)):u}function Ub0(x){return Jo>>0)var t=w(x);else switch(e){case 0:var t=1;break;case 1:var t=2;break;case 2:var t=0;break;default:if(W(x,2),fo(y(x))===0){var u=bv(y(x));if(u===0)var t=Tr(y(x))===0&&Tr(y(x))===0&&Tr(y(x))===0?0:w(x);else if(u===1&&Tr(y(x))===0){for(;;){var i=_v(y(x));if(i!==0)break}var t=i===1?0:w(x)}else var t=w(x)}else var t=w(x)}if(2>>0)throw W0([0,Nr,bt0],1);switch(t){case 0:break;case 1:return;default:if(!Yj(sU(x))){oU(x,1);return}}}}function Z5(x,r){var e=r-x[3][2]|0;return[0,TU(x),e]}function Q6(x,r,e){var t=Z5(x,e),u=Z5(x,r);return[0,x[1],u,t]}function A1(x,r){return Z5(x,r[6])}function Pe(x,r){return Z5(x,r[3])}function zr(x,r){return Q6(x,r[6],r[3])}function HU(x,r){x:if(typeof r!="number"){switch(r[0]){case 2:var e=r[1][1];break;case 3:return r[1][1];case 4:var e=r[1];break;case 5:return r[1];case 8:var e=r[2];break;case 9:return r[1];case 10:return r[1];default:break x}return e}return zr(x,x[2])}function P1(x,r,e){return[0,x[1],x[2],x[3],x[4],x[5],[0,[0,r,e],x[6]],x[7]]}function ZU(x,r,e){return P1(x,r,[26,P5(e)])}function Qj(x,r,e,t){return P1(x,r,[27,e,t])}function mt(x,r){return P1(x,r,Xc0)}function $1(x,r){var e=r[3],t=[0,TU(x)+1|0,e];return[0,x[1],x[2],t,x[4],x[5],x[6],x[7]]}function qt(x,r,e,t,u){var i=[0,x[1],r,e],c=G2(t),v=u?0:1;return[0,i,[0,v,c,x[7][3][1]>>0)var a=w(t);else switch(v){case 0:var a=2;break;case 1:for(;;){W(t,3);var l=y(t),m=-1>>0)return Tx(Fc0);switch(a){case 0:var b=rB(i,e,t,2,0),N=b[1],j=vt(qx(Rc0,b[2])),I=0<=j?1:0,F=I&&(j<=55295?1:0);if(F)var z=F;else var M=57344<=j?1:0,z=M&&(j<=rk?1:0);var B=z?xB(i,N,j):P1(i,N,28);ps(u,j);var i=B;break;case 1:var K=rB(i,e,t,3,1),n0=K[1],$=vt(qx(Lc0,K[2])),H=xB(i,n0,$);ps(u,$);var i=H;break;case 2:return[0,i,G2(u)];default:_5(t,u)}}}function D2(x,r,e){var t=mt(x,zr(x,r));return xl(r),e(t,r)}function Ev(x,r,e){for(var t=x;;){or(e);var u=y(e),i=-1>>0)var c=w(e);else switch(i){case 0:for(;;){W(e,3);var v=y(e),a=-1>>0){var h=mt(t,zr(t,e));return[0,h,Pe(h,e)]}switch(c){case 0:var T=$1(t,e);_5(e,r);var t=T;break;case 1:var b=t[4]?Qj(t,zr(t,e),St0,Et0):t;return[0,b,Pe(b,e)];case 2:if(t[4])return[0,t,Pe(t,e)];ir(r,At0);break;default:_5(e,r)}}}function nl(x,r,e){for(;;){or(e);var t=y(e),u=13>>0)var i=w(e);else switch(u){case 0:var i=0;break;case 1:for(;;){W(e,2);var c=y(e),v=-1>>0)return Tx(Pt0);switch(i){case 0:return[0,x,Pe(x,e)];case 1:var a=Pe(x,e),l=a[2],m=a[1],h=$1(x,e);return[0,h,[0,m,l-w5(e)|0]];default:_5(e,r)}}}function tB(x,r){function e(n0){return W(n0,3),V1(y(n0))===0?2:w(n0)}or(r);var t=y(r),u=vf>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:W(r,15);var i=Ae(y(r))===0?15:w(r);break;case 4:W(r,4);var i=V1(y(r))===0?e(r):w(r);break;case 5:W(r,11);var i=V1(y(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:W(r,14);var c=bv(y(r));if(c===0)var i=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?12:w(r);else if(c===1&&Tr(y(r))===0){for(;;){var v=_v(y(r));if(v!==0)break}var i=v===1?13:w(r)}else var i=w(r);break;case 13:var i=10;break;default:W(r,14);var i=Tr(y(r))===0&&Tr(y(r))===0?1:w(r)}if(16>>0)return Tx(wc0);switch(i){case 0:var a=Dx(r);return[0,x,a,l2(r),0];case 1:var l=Dx(r);return[0,x,l,[0,vt(qx(_c0,l))],0];case 2:var m=Dx(r),h=vt(qx(bc0,m));return Hl<=h?[0,x,m,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,m,[0,h],1];case 3:var T=Dx(r);return[0,x,T,[0,vt(qx(Tc0,T))],1];case 4:return[0,x,Ec0,[0,0],0];case 5:return[0,x,Sc0,[0,8],0];case 6:return[0,x,Ac0,[0,12],0];case 7:return[0,x,Pc0,[0,10],0];case 8:return[0,x,Ic0,[0,13],0];case 9:return[0,x,Nc0,[0,9],0];case 10:return[0,x,jc0,[0,11],0];case 11:var b=Dx(r);return[0,x,b,[0,vt(qx(Cc0,b))],1];case 12:var N=Dx(r);return[0,x,N,[0,vt(qx(Oc0,T1(N,1,Nx(N)-1|0)))],0];case 13:var j=Dx(r),I=vt(qx(Dc0,T1(j,2,Nx(j)-3|0))),F=rk>>0)var m=w(i);else switch(l){case 0:var m=3;break;case 1:for(;;){W(i,4);var h=y(i),T=-1>>0)return Tx(It0);switch(m){case 0:var b=Dx(i);if(ir(t,b),br(r,b))return[0,c,Pe(c,i),v];ir(e,b);break;case 1:ir(t,Nt0);var N=tB(c,i),j=N[4],I=N[3],F=N[2],M=N[1],z=j||v;ir(t,F),ZM(function(g0){return ps(e,g0)},I);var c=M,v=z;break;case 2:var B=Dx(i);ir(t,B);var K=$1(mt(c,zr(c,i)),i);return ir(e,B),[0,K,Pe(K,i),v];case 3:var n0=Dx(i);ir(t,n0);var $=mt(c,zr(c,i));return ir(e,n0),[0,$,Pe($,i),v];default:var H=i[6],t0=i[3]-H|0,c0=S2(t0*4|0),r0=K6(i[1],H,t0,c0);nj(t,c0,0,r0),nj(e,c0,0,r0)}}}function uB(x,r,e,t){for(var u=x;;){or(t);var i=y(t),c=96>>0)var v=w(t);else switch(c){case 0:var v=0;break;case 1:for(;;){W(t,6);var a=y(t),l=-1>>0)return Tx(jt0);switch(v){case 0:return[0,mt(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:lt(e,92);var T=tB(u,t),b=T[3],N=T[1];ir(e,T[2]),ZM(function(F){return ps(r,F)},b);var u=N;break;case 4:ir(e,Ct0),ir(r,Ot0);var u=$1(u,t);break;case 5:ir(e,Dx(t)),lt(r,10);var u=$1(u,t);break;default:var j=Dx(t);ir(e,j),ir(r,j)}}}function Yb0(x,r,e){for(var t=x;;){or(e);var u=y(e),i=92>>0)var c=w(e);else switch(i){case 0:var c=0;break;case 1:for(;;){W(e,7);var v=y(e),a=-1>>0)var c=w(e);else switch(m){case 0:var c=2;break;case 1:var c=1;break;default:W(e,1);var c=Ae(y(e))===0?1:w(e)}}if(7>>0)return Tx(Rt0);switch(c){case 0:return[0,P1(t,zr(t,e),st),Lt0];case 1:return[0,$1(P1(t,zr(t,e),st),e),Mt0];case 2:ir(r,Dx(e));break;case 3:var h=Dx(e);return[0,t,T1(h,1,Nx(h)-1|0)];case 4:return[0,t,qt0];case 5:lt(r,91);x:{r:{e:{t:{n:for(;;){or(e);var T=y(e),b=93>>0)var N=w(e);else switch(b){case 0:var N=0;break;case 1:for(;;){W(e,5);var j=y(e),I=-1>>0)break r;switch(N){case 0:break e;case 1:ir(r,Ft0);break;case 2:lt(r,92),lt(r,93);break;case 3:break t;case 4:break n;default:ir(r,Dx(e))}}var z=$1(P1(t,zr(t,e),st),e);break x}lt(r,93);var z=t;break x}var z=t;break x}var z=Tx(Dt0)}var t=z;break;case 6:return[0,$1(P1(t,zr(t,e),st),e),Ut0];default:ir(r,Dx(e))}}}function iB(x){var r=fx(x,"iexcl");if(0<=r){if(0>=r)return ec0;var e=fx(x,"prime");if(0<=e){if(0>=e)return rc0;var t=fx(x,"sup1");if(0<=t){if(0>=t)return xc0;var u=fx(x,"uarr");if(0<=u){if(0>=u)return Zf0;var i=fx(x,"xi");if(0<=i){if(0>=i)return Hf0;if(!P(x,"yacute"))return Qf0;if(!P(x,"yen"))return $f0;if(!P(x,"yuml"))return Vf0;if(!P(x,"zeta"))return Wf0;if(!P(x,"zwj"))return Gf0;if(!P(x,"zwnj"))return Jf0}else{if(!P(x,"ucirc"))return Kf0;if(!P(x,"ugrave"))return zf0;if(!P(x,"uml"))return Yf0;if(!P(x,"upsih"))return Xf0;if(!P(x,"upsilon"))return Bf0;if(!P(x,"uuml"))return Uf0;if(!P(x,"weierp"))return qf0}}else{var c=fx(x,"thetasym");if(0<=c){if(0>=c)return Mf0;if(!P(x,"thinsp"))return Lf0;if(!P(x,"thorn"))return Rf0;if(!P(x,"tilde"))return Ff0;if(!P(x,"times"))return Df0;if(!P(x,"trade"))return Of0;if(!P(x,"uArr"))return Cf0;if(!P(x,"uacute"))return jf0}else{if(!P(x,"sup2"))return Nf0;if(!P(x,"sup3"))return If0;if(!P(x,"supe"))return Pf0;if(!P(x,"szlig"))return Af0;if(!P(x,"tau"))return Sf0;if(!P(x,"there4"))return Ef0;if(!P(x,"theta"))return Tf0}}}else{var v=fx(x,"rlm");if(0<=v){if(0>=v)return bf0;var a=fx(x,"sigma");if(0<=a){if(0>=a)return _f0;if(!P(x,"sigmaf"))return wf0;if(!P(x,"sim"))return gf0;if(!P(x,"spades"))return yf0;if(!P(x,"sub"))return df0;if(!P(x,"sube"))return hf0;if(!P(x,"sum"))return mf0;if(!P(x,"sup"))return kf0}else{if(!P(x,"rsaquo"))return pf0;if(!P(x,"rsquo"))return lf0;if(!P(x,"sbquo"))return vf0;if(!P(x,"scaron"))return of0;if(!P(x,"sdot"))return af0;if(!P(x,"sect"))return sf0;if(!P(x,"shy"))return cf0}}else{var l=fx(x,"raquo");if(0<=l){if(0>=l)return ff0;if(!P(x,"rarr"))return if0;if(!P(x,"rceil"))return uf0;if(!P(x,"rdquo"))return nf0;if(!P(x,"real"))return tf0;if(!P(x,"reg"))return ef0;if(!P(x,"rfloor"))return rf0;if(!P(x,"rho"))return xf0}else{if(!P(x,"prod"))return Zi0;if(!P(x,"prop"))return Hi0;if(!P(x,"psi"))return Qi0;if(!P(x,"quot"))return $i0;if(!P(x,"rArr"))return Vi0;if(!P(x,"radic"))return Wi0;if(!P(x,"rang"))return Gi0}}}}else{var m=fx(x,"ndash");if(0<=m){if(0>=m)return Ji0;var h=fx(x,"or");if(0<=h){if(0>=h)return Ki0;var T=fx(x,"part");if(0<=T){if(0>=T)return zi0;if(!P(x,"permil"))return Yi0;if(!P(x,"perp"))return Xi0;if(!P(x,"phi"))return Bi0;if(!P(x,"pi"))return Ui0;if(!P(x,"piv"))return qi0;if(!P(x,"plusmn"))return Mi0;if(!P(x,"pound"))return Li0}else{if(!P(x,"ordf"))return Ri0;if(!P(x,"ordm"))return Fi0;if(!P(x,"oslash"))return Di0;if(!P(x,"otilde"))return Oi0;if(!P(x,"otimes"))return Ci0;if(!P(x,"ouml"))return ji0;if(!P(x,"para"))return Ni0}}else{var b=fx(x,"oacute");if(0<=b){if(0>=b)return Ii0;if(!P(x,"ocirc"))return Pi0;if(!P(x,"oelig"))return Ai0;if(!P(x,"ograve"))return Si0;if(!P(x,"oline"))return Ei0;if(!P(x,"omega"))return Ti0;if(!P(x,"omicron"))return bi0;if(!P(x,"oplus"))return _i0}else{if(!P(x,"ne"))return wi0;if(!P(x,"ni"))return gi0;if(!P(x,"not"))return yi0;if(!P(x,"notin"))return di0;if(!P(x,"nsub"))return hi0;if(!P(x,"ntilde"))return mi0;if(!P(x,"nu"))return ki0}}}else{var N=fx(x,"le");if(0<=N){if(0>=N)return pi0;var j=fx(x,"macr");if(0<=j){if(0>=j)return li0;if(!P(x,"mdash"))return vi0;if(!P(x,"micro"))return oi0;if(!P(x,"middot"))return ai0;if(!P(x,rR))return si0;if(!P(x,"mu"))return ci0;if(!P(x,"nabla"))return fi0;if(!P(x,"nbsp"))return ii0}else{if(!P(x,"lfloor"))return ui0;if(!P(x,"lowast"))return ni0;if(!P(x,"loz"))return ti0;if(!P(x,"lrm"))return ei0;if(!P(x,"lsaquo"))return ri0;if(!P(x,"lsquo"))return xi0;if(!P(x,"lt"))return Zu0}}else{var I=fx(x,"kappa");if(0<=I){if(0>=I)return Hu0;if(!P(x,"lArr"))return Qu0;if(!P(x,"lambda"))return $u0;if(!P(x,"lang"))return Vu0;if(!P(x,"laquo"))return Wu0;if(!P(x,"larr"))return Gu0;if(!P(x,"lceil"))return Ju0;if(!P(x,"ldquo"))return Ku0}else{if(!P(x,"igrave"))return zu0;if(!P(x,"image"))return Yu0;if(!P(x,"infin"))return Xu0;if(!P(x,"iota"))return Bu0;if(!P(x,"iquest"))return Uu0;if(!P(x,"isin"))return qu0;if(!P(x,"iuml"))return Mu0}}}}}else{var F=fx(x,"aelig");if(0<=F){if(0>=F)return Lu0;var M=fx(x,"delta");if(0<=M){if(0>=M)return Ru0;var z=fx(x,"fnof");if(0<=z){if(0>=z)return Fu0;var B=fx(x,"gt");if(0<=B){if(0>=B)return Du0;if(!P(x,"hArr"))return Ou0;if(!P(x,"harr"))return Cu0;if(!P(x,"hearts"))return ju0;if(!P(x,"hellip"))return Nu0;if(!P(x,"iacute"))return Iu0;if(!P(x,"icirc"))return Pu0}else{if(!P(x,"forall"))return Au0;if(!P(x,"frac12"))return Su0;if(!P(x,"frac14"))return Eu0;if(!P(x,"frac34"))return Tu0;if(!P(x,"frasl"))return bu0;if(!P(x,"gamma"))return _u0;if(!P(x,"ge"))return wu0}}else{var K=fx(x,"ensp");if(0<=K){if(0>=K)return gu0;if(!P(x,"epsilon"))return yu0;if(!P(x,"equiv"))return du0;if(!P(x,"eta"))return hu0;if(!P(x,"eth"))return mu0;if(!P(x,"euml"))return ku0;if(!P(x,"euro"))return pu0;if(!P(x,"exist"))return lu0}else{if(!P(x,"diams"))return vu0;if(!P(x,"divide"))return ou0;if(!P(x,"eacute"))return au0;if(!P(x,"ecirc"))return su0;if(!P(x,"egrave"))return cu0;if(!P(x,be))return fu0;if(!P(x,"emsp"))return iu0}}}else{var n0=fx(x,"cap");if(0<=n0){if(0>=n0)return uu0;var $=fx(x,"copy");if(0<=$){if(0>=$)return nu0;if(!P(x,"crarr"))return tu0;if(!P(x,"cup"))return eu0;if(!P(x,"curren"))return ru0;if(!P(x,"dArr"))return xu0;if(!P(x,"dagger"))return Z70;if(!P(x,"darr"))return H70;if(!P(x,"deg"))return Q70}else{if(!P(x,"ccedil"))return $70;if(!P(x,"cedil"))return V70;if(!P(x,"cent"))return W70;if(!P(x,"chi"))return G70;if(!P(x,"circ"))return J70;if(!P(x,"clubs"))return K70;if(!P(x,"cong"))return z70}}else{var H=fx(x,"aring");if(0<=H){if(0>=H)return Y70;if(!P(x,"asymp"))return X70;if(!P(x,"atilde"))return B70;if(!P(x,"auml"))return U70;if(!P(x,"bdquo"))return q70;if(!P(x,"beta"))return M70;if(!P(x,"brvbar"))return L70;if(!P(x,"bull"))return R70}else{if(!P(x,"agrave"))return F70;if(!P(x,"alefsym"))return D70;if(!P(x,"alpha"))return O70;if(!P(x,"amp"))return C70;if(!P(x,"and"))return j70;if(!P(x,"ang"))return N70;if(!P(x,"apos"))return I70}}}}else{var t0=fx(x,"Nu");if(0<=t0){if(0>=t0)return P70;var c0=fx(x,"Sigma");if(0<=c0){if(0>=c0)return A70;var r0=fx(x,"Uuml");if(0<=r0){if(0>=r0)return S70;if(!P(x,"Xi"))return E70;if(!P(x,"Yacute"))return T70;if(!P(x,"Yuml"))return b70;if(!P(x,"Zeta"))return _70;if(!P(x,"aacute"))return w70;if(!P(x,"acirc"))return g70;if(!P(x,"acute"))return y70}else{if(!P(x,"THORN"))return d70;if(!P(x,"Tau"))return h70;if(!P(x,"Theta"))return m70;if(!P(x,"Uacute"))return k70;if(!P(x,"Ucirc"))return p70;if(!P(x,"Ugrave"))return l70;if(!P(x,"Upsilon"))return v70}}else{var v0=fx(x,"Otilde");if(0<=v0){if(0>=v0)return o70;if(!P(x,"Ouml"))return a70;if(!P(x,"Phi"))return s70;if(!P(x,"Pi"))return c70;if(!P(x,"Prime"))return f70;if(!P(x,"Psi"))return i70;if(!P(x,"Rho"))return u70;if(!P(x,"Scaron"))return n70}else{if(!P(x,"OElig"))return t70;if(!P(x,"Oacute"))return e70;if(!P(x,"Ocirc"))return r70;if(!P(x,"Ograve"))return x70;if(!P(x,"Omega"))return Zn0;if(!P(x,"Omicron"))return Hn0;if(!P(x,"Oslash"))return Qn0}}}else{var a0=fx(x,"Eacute");if(0<=a0){if(0>=a0)return $n0;var g0=fx(x,"Icirc");if(0<=g0){if(0>=g0)return Vn0;if(!P(x,"Igrave"))return Wn0;if(!P(x,"Iota"))return Gn0;if(!P(x,"Iuml"))return Jn0;if(!P(x,"Kappa"))return Kn0;if(!P(x,"Lambda"))return zn0;if(!P(x,"Mu"))return Yn0;if(!P(x,"Ntilde"))return Xn0}else{if(!P(x,"Ecirc"))return Bn0;if(!P(x,"Egrave"))return Un0;if(!P(x,"Epsilon"))return qn0;if(!P(x,"Eta"))return Mn0;if(!P(x,"Euml"))return Ln0;if(!P(x,"Gamma"))return Rn0;if(!P(x,"Iacute"))return Fn0}}else{var i0=fx(x,"Atilde");if(0<=i0){if(0>=i0)return Dn0;if(!P(x,"Auml"))return On0;if(!P(x,"Beta"))return Cn0;if(!P(x,"Ccedil"))return jn0;if(!P(x,"Chi"))return Nn0;if(!P(x,"Dagger"))return In0;if(!P(x,"Delta"))return Pn0;if(!P(x,"ETH"))return An0}else{if(!P(x,"'int'"))return Sn0;if(!P(x,"AElig"))return En0;if(!P(x,"Aacute"))return Tn0;if(!P(x,"Acirc"))return bn0;if(!P(x,"Agrave"))return _n0;if(!P(x,"Alpha"))return wn0;if(!P(x,"Aring"))return gn0}}}}}return 0}function fB(x,r,e,t){for(var u=x;;){var i=function(v0){for(;;)if(W(v0,8),Gj(y(v0))!==0)return w(v0)};or(t);var c=y(t),v=Ba>>0)var a=w(t);else switch(v){case 0:var a=3;break;case 1:var a=i(t);break;case 2:var a=4;break;case 3:W(t,4);var a=Ae(y(t))===0?4:w(t);break;case 4:W(t,8);var l=$U(y(t));if(l===0){var m=IU(y(t));if(m===0){for(;;){var h=NU(y(t));if(h!==0)break}var a=h===1?6:w(t)}else if(m===1&&Tr(y(t))===0){for(;;){var T=GU(y(t));if(T!==0)break}var a=T===1?5:w(t)}else var a=w(t)}else if(l===1&&cr(y(t))===0){var b=Mt(y(t));if(b===0){var N=Mt(y(t));if(N===0){var j=Mt(y(t));if(j===0){var I=Mt(y(t));if(I===0){var F=Mt(y(t));if(F===0)var M=Mt(y(t)),a=M===0?YU(y(t))===0?7:w(t):M===1?7:w(t);else var a=F===1?7:w(t)}else var a=I===1?7:w(t)}else var a=j===1?7:w(t)}else var a=N===1?7:w(t)}else var a=b===1?7:w(t)}else var a=w(t);break;case 5:var a=0;break;case 6:W(t,1);var a=Gj(y(t))===0?i(t):w(t);break;default:W(t,2);var a=Gj(y(t))===0?i(t):w(t)}if(8>>0)return Tx(Bt0);switch(a){case 0:return xl(t),u;case 1:return Qj(u,zr(u,t),Yt0,Xt0);case 2:return Qj(u,zr(u,t),Kt0,zt0);case 3:return mt(u,zr(u,t));case 4:var z=Dx(t);ir(e,z),ir(r,z);var u=$1(u,t);break;case 5:var B=Dx(t),K=T1(B,3,Nx(B)-4|0);ir(e,B),ps(r,vt(qx(Jt0,K)));break;case 6:var n0=Dx(t),$=T1(n0,2,Nx(n0)-3|0);ir(e,n0),ps(r,vt($));break;case 7:var H=Dx(t),t0=T1(H,1,Nx(H)-2|0);ir(e,H);var c0=iB(t0);c0?ps(r,c0[1]):ir(r,qx(Wt0,qx(t0,Gt0)));break;default:var r0=Dx(t);ir(e,r0),ir(r,r0)}}}function H6(x){return function(r){var e=0,t=r;x:for(;;){var u=x(t,t[2]);switch(u[0]){case 0:break x;case 1:var i=u[2],c=u[1],e=[0,i,e],t=[0,c[1],c[2],c[3],c[4],c[5],c[6],i[1]];break;default:var t=u[1]}}var v=u[2],a=u[1],l=HU(a,v),m=e===0?0:ix(e),h=a[6];if(h===0)return[0,[0,a[1],a[2],a[3],a[4],a[5],a[6],l],[0,v,l,0,m]];var T=[0,v,l,ix(h),m];return[0,[0,a[1],a[2],a[3],a[4],a[5],_U,l],T]}}var zb0=H6(function(x,r){or(r);var e=y(r),t=Jo>>0)var u=w(r);else switch(t){case 0:var u=0;break;case 1:var u=6;break;case 2:if(W(r,2),ms(y(r))===0){for(;W(r,2),ms(y(r))===0;);var u=w(r)}else var u=w(r);break;case 3:var u=1;break;case 4:W(r,1);var u=Ae(y(r))===0?1:w(r);break;default:W(r,5);var i=V5(y(r)),u=i===0?4:i===1?3:w(r)}if(6>>0)return Tx(tc0);switch(u){case 0:return[0,x,mr];case 1:return[2,$1(x,r)];case 2:return[2,x];case 3:var c=A1(x,r),v=$r(Br),a=nl(x,v,r),l=a[1];return[1,l,qt(l,c,a[2],v,0)];case 4:var m=A1(x,r),h=$r(Br),T=Ev(x,h,r),b=T[1];return[1,b,qt(b,m,T[2],h,1)];case 5:var N=A1(x,r),j=$r(Br),I=Yb0(x,j,r),F=I[1],M=I[2],z=Pe(F,r),B=[0,F[1],N,z];return[0,F,[5,B,G2(j),M]];default:var K=mt(x,zr(x,r));return[0,K,[7,Dx(r)]]}}),Kb0=H6(function(x,r){or(r);var e=Xb0(y(r));if(14>>0)var t=w(r);else switch(e){case 0:var t=0;break;case 1:var t=14;break;case 2:if(W(r,2),ms(y(r))===0){for(;W(r,2),ms(y(r))===0;);var t=w(r)}else var t=w(r);break;case 3:var t=1;break;case 4:W(r,1);var t=Ae(y(r))===0?1:w(r);break;case 5:var t=12;break;case 6:var t=13;break;case 7:var t=10;break;case 8:W(r,6);var u=V5(y(r)),t=u===0?4:u===1?3:w(r);break;case 9:var t=9;break;case 10:var t=5;break;case 11:var t=11;break;case 12:var t=7;break;case 13:if(W(r,14),fo(y(r))===0){var i=bv(y(r));if(i===0)var t=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?13:w(r);else if(i===1&&Tr(y(r))===0){for(;;){var c=_v(y(r));if(c!==0)break}var t=c===1?13:w(r)}else var t=w(r)}else var t=w(r);break;default:var t=8}if(14>>0)return Tx(yn0);switch(t){case 0:return[0,x,mr];case 1:return[2,$1(x,r)];case 2:return[2,x];case 3:var v=A1(x,r),a=$r(Br),l=nl(x,a,r),m=l[1];return[1,m,qt(m,v,l[2],a,0)];case 4:var h=A1(x,r),T=$r(Br),b=Ev(x,T,r),N=b[1];return[1,N,qt(N,h,b[2],T,1)];case 5:return[0,x,99];case 6:return[0,x,Je];case 7:return[0,x,y2];case 8:return[0,x,0];case 9:return[0,x,87];case 10:return[0,x,10];case 11:return[0,x,83];case 12:var j=Dx(r),I=A1(x,r),F=$r(Br),M=$r(Br);ir(M,j);for(var z=br(j,"'"),B=x;;){or(r);var K=y(r),n0=39>>0)var $=w(r);else switch(n0){case 0:var $=2;break;case 1:for(;;){W(r,7);var H=y(r),t0=-1>>0)var C0=Tx(Vt0);else switch($){case 0:if(!z){lt(M,39),lt(F,39);continue}var C0=B;break;case 1:if(z){lt(M,34),lt(F,34);continue}var C0=B;break;case 2:var C0=mt(B,zr(B,r));break;case 3:var D0=Dx(r);ir(M,D0),ir(F,D0);var B=$1(B,r);continue;case 4:var I0=Dx(r),j0=T1(I0,3,Nx(I0)-4|0);ir(M,I0),ps(F,vt(qx($t0,j0)));continue;case 5:var y0=Dx(r),Y0=T1(y0,2,Nx(y0)-3|0);ir(M,y0),ps(F,vt(Y0));continue;case 6:var L=Dx(r),N0=T1(L,1,Nx(L)-2|0);ir(M,L);var S0=iB(N0);S0?ps(F,S0[1]):ir(F,qx(Ht0,qx(N0,Qt0)));continue;default:var K0=Dx(r);ir(M,K0),ir(F,K0);continue}var A0=Pe(C0,r);ir(M,j);var $0=G2(F),ex=G2(M);return[0,C0,[10,[0,C0[1],I,A0],$0,ex]]}case 13:for(var xx=r[6];;){or(r);var tx=y(r),z0=s2>>0)var px=w(r);else switch(z0){case 0:var px=1;break;case 1:var px=2;break;case 2:var px=0;break;default:if(W(r,2),fo(y(r))===0){var sx=bv(y(r));if(sx===0)var px=Tr(y(r))===0&&Tr(y(r))===0&&Tr(y(r))===0?0:w(r);else if(sx===1&&Tr(y(r))===0){for(;;){var Q=_v(y(r));if(Q!==0)break}var px=Q===1?0:w(r)}else var px=w(r)}else var px=w(r)}if(2>>0)throw W0([0,Nr,Tt0],1);switch(px){case 0:continue;case 1:break;default:if(Yj(sU(r)))continue;oU(r,1)}var b0=r[3];Lj(r,xx);var U=l2(r),h0=Q6(x,xx,b0);return[0,x,[8,G6(U),h0]]}default:return[0,x,[7,Dx(r)]]}}),Jb0=H6(function(x,r){or(r);var e=y(r),t=-1>>0)var u=w(r);else switch(t){case 0:var u=5;break;case 1:if(W(r,1),ms(y(r))===0){for(;W(r,1),ms(y(r))===0;);var u=w(r)}else var u=w(r);break;case 2:var u=0;break;case 3:W(r,0);var u=Ae(y(r))===0?0:w(r);break;case 4:W(r,5);var i=V5(y(r)),u=i===0?3:i===1?2:w(r);break;default:var u=4}if(5>>0)return Tx(kn0);switch(u){case 0:return[2,$1(x,r)];case 1:return[2,x];case 2:var c=A1(x,r),v=$r(Br),a=nl(x,v,r),l=a[1];return[1,l,qt(l,c,a[2],v,0)];case 3:var m=A1(x,r),h=$r(Br),T=Ev(x,h,r),b=T[1];return[1,b,qt(b,m,T[2],h,1)];case 4:var N=A1(x,r),j=$r(Br),I=$r(Br),F=uB(x,j,I,r),M=F[1],z=F[2],B=Pe(M,r),K=[0,M[1],N,B],n0=G2(I);return[0,M,[3,[0,K,G2(j),n0,0,z]]];default:var $=mt(x,zr(x,r));return[0,$,[3,[0,zr($,r),hn0,mn0,0,1]]]}}),Gb0=H6(function(x,r){function e(S){for(;;)if(W(S,29),cr(y(S))!==0)return w(S)}function t(S){W(S,29);var G=zU(y(S));if(3>>0)return w(S);switch(G){case 0:return e(S);case 1:var rx=to(y(S));if(rx===0)for(;;){W(S,24);var yx=rl(y(S));if(2>>0)return w(S);switch(yx){case 0:return u(S);case 1:break;default:return i(S)}}else{if(rx!==1)return w(S);for(;;){W(S,24);var Ex=ds(y(S));if(3>>0)return w(S);switch(Ex){case 0:return u(S);case 1:break;case 2:return c(S);default:return i(S)}}}break;case 2:for(;;){W(S,24);var nx=rl(y(S));if(2>>0)return w(S);switch(nx){case 0:return v(S);case 1:break;default:return a(S)}}break;default:for(;;){W(S,24);var p0=ds(y(S));if(3>>0)return w(S);switch(p0){case 0:return v(S);case 1:break;case 2:return c(S);default:return a(S)}}}}function u(S){for(;;)if(W(S,23),cr(y(S))!==0)return w(S)}function i(S){W(S,22);var G=X2(y(S));if(G!==0)return G===1?u(S):w(S);for(;;)if(W(S,21),cr(y(S))!==0)return w(S)}function c(S){for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,24);var G=ds(y(S));if(3>>0)return w(S);switch(G){case 0:return u(S);case 1:break;case 2:break x;default:return i(S)}}}}function v(S){for(;;)if(W(S,23),cr(y(S))!==0)return w(S)}function a(S){W(S,22);var G=X2(y(S));if(G!==0)return G===1?v(S):w(S);for(;;)if(W(S,21),cr(y(S))!==0)return w(S)}function l(S){W(S,27);var G=X2(y(S));if(G!==0)return G===1?e(S):w(S);for(;;)if(W(S,25),cr(y(S))!==0)return w(S)}function m(S){return W(S,3),VU(y(S))===0?3:w(S)}function h(S){return J5(y(S))===0&&X5(y(S))===0&&JU(y(S))===0&&RU(y(S))===0&&LU(y(S))===0&&B5(y(S))===0&&V6(y(S))===0&&J5(y(S))===0&&fo(y(S))===0&&$j(y(S))===0&&Tv(y(S))===0?3:w(S)}function T(S){W(S,30);var G=DU(y(S));if(3>>0)return w(S);switch(G){case 0:return e(S);case 1:x:for(;;){W(S,30);var rx=no(y(S));if(4>>0)return w(S);switch(rx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var yx=no(y(S));if(4>>0)return w(S);switch(yx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}}break;case 2:return t(S);default:return l(S)}}function b(S){for(;;)if(W(S,15),cr(y(S))!==0)return w(S)}function N(S){W(S,30);var G=rl(y(S));if(2>>0)return w(S);switch(G){case 0:return e(S);case 1:x:for(;;){W(S,30);var rx=ds(y(S));if(3>>0)return w(S);switch(rx){case 0:return e(S);case 1:break;case 2:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var yx=ds(y(S));if(3>>0)return w(S);switch(yx){case 0:return e(S);case 1:break;case 2:break x;default:return l(S)}}}break;default:return l(S)}}function j(S){W(S,15);var G=X2(y(S));if(G!==0)return G===1?b(S):w(S);for(;;)if(W(S,15),cr(y(S))!==0)return w(S)}function I(S){W(S,28);var G=X2(y(S));if(G!==0)return G===1?e(S):w(S);for(;;)if(W(S,26),cr(y(S))!==0)return w(S)}function F(S){for(;;)if(W(S,9),cr(y(S))!==0)return w(S)}function M(S){for(;;)if(W(S,9),cr(y(S))!==0)return w(S)}function z(S){for(;;)if(W(S,13),cr(y(S))!==0)return w(S)}function B(S){for(;;)if(W(S,13),cr(y(S))!==0)return w(S)}function K(S){for(;;)if(W(S,19),cr(y(S))!==0)return w(S)}function n0(S){for(;;)if(W(S,19),cr(y(S))!==0)return w(S)}function $(S){for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var G=XU(y(S));if(4>>0)return w(S);switch(G){case 0:return e(S);case 1:return N(S);case 2:break;case 3:break x;default:return I(S)}}}}or(r);var H=function(S){var G=Bb0(y(S));if(31>>0)return w(S);switch(G){case 0:return 66;case 1:return 67;case 2:if(W(S,1),ms(y(S))!==0)return w(S);for(;;)if(W(S,1),ms(y(S))!==0)return w(S);break;case 3:return 0;case 4:return W(S,0),Ae(y(S))===0?0:w(S);case 5:return 6;case 6:return 65;case 7:if(W(S,67),V6(y(S))!==0)return w(S);var rx=y(S),yx=sn>>0)return w(S);switch(bx){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}for(;;){if(vr(y(S))!==0)return w(S);x:for(;;){W(S,30);var B0=no(y(S));if(4>>0)return w(S);switch(B0){case 0:return e(S);case 1:break;case 2:return t(S);case 3:break x;default:return l(S)}}}break;case 16:W(S,67);var Wx=V5(y(S));if(Wx!==0)return Wx===1?5:w(S);W(S,2);var Yx=F5(y(S));if(2>>0)return w(S);switch(Yx){case 0:for(;;){var ax=F5(y(S));if(2>>0)return w(S);switch(ax){case 0:break;case 1:return m(S);default:return h(S)}}break;case 1:return m(S);default:return h(S)}break;case 17:W(S,30);var Qx=qU(y(S));if(8>>0)return w(S);switch(Qx){case 0:return e(S);case 1:return T(S);case 2:x:for(;;){W(S,16);var kx=KU(y(S));if(4>>0)return w(S);switch(kx){case 0:return b(S);case 1:return N(S);case 2:break;case 3:break x;default:return j(S)}}for(;;){W(S,15);var tr=D5(y(S));if(3